@ckeditor/ckeditor5-track-changes 36.0.1 → 37.0.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 (127) hide show
  1. package/build/track-changes.js +1 -1
  2. package/ckeditor5-metadata.json +10 -0
  3. package/package.json +20 -5
  4. package/src/augmentation.d.ts +36 -0
  5. package/src/augmentation.js +23 -0
  6. package/src/commands/acceptsuggestioncommand.d.ts +20 -0
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +20 -0
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +22 -0
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +12 -0
  17. package/src/index.js +1 -1
  18. package/src/integrations/alignment.d.ts +13 -0
  19. package/src/integrations/alignment.js +1 -1
  20. package/src/integrations/basicstyles.d.ts +13 -0
  21. package/src/integrations/basicstyles.js +1 -1
  22. package/src/integrations/blockquote.d.ts +13 -0
  23. package/src/integrations/blockquote.js +1 -1
  24. package/src/integrations/ckbox.d.ts +13 -0
  25. package/src/integrations/ckbox.js +1 -1
  26. package/src/integrations/codeblock.d.ts +13 -0
  27. package/src/integrations/codeblock.js +1 -1
  28. package/src/integrations/comments.d.ts +10 -0
  29. package/src/integrations/comments.js +1 -1
  30. package/src/integrations/deletecommand.d.ts +12 -0
  31. package/src/integrations/deletecommand.js +1 -1
  32. package/src/integrations/documentlist.d.ts +13 -0
  33. package/src/integrations/documentlist.js +1 -1
  34. package/src/integrations/documentlistproperties.d.ts +25 -0
  35. package/src/integrations/documentlistproperties.js +1 -1
  36. package/src/integrations/entercommand.d.ts +11 -0
  37. package/src/integrations/entercommand.js +1 -1
  38. package/src/integrations/findandreplace.d.ts +17 -0
  39. package/src/integrations/findandreplace.js +1 -1
  40. package/src/integrations/font.d.ts +13 -0
  41. package/src/integrations/font.js +1 -1
  42. package/src/integrations/heading.d.ts +13 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +13 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +13 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +13 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +13 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +19 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +14 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +13 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +11 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +13 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +13 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +25 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +13 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +13 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +13 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +13 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +13 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +13 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +11 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +13 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +14 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +38 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +17 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +17 -0
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +22 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +17 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +17 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableproperties.d.ts +23 -0
  97. package/src/integrations/tableproperties.js +1 -1
  98. package/src/integrations/title.d.ts +13 -0
  99. package/src/integrations/title.js +1 -1
  100. package/src/integrations/undo.d.ts +13 -0
  101. package/src/integrations/undo.js +1 -1
  102. package/src/integrations/utils.d.ts +17 -0
  103. package/src/integrations/utils.js +1 -1
  104. package/src/suggestion.d.ts +266 -0
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.d.ts +151 -0
  107. package/src/suggestiondescriptionfactory.js +1 -1
  108. package/src/trackchanges.d.ts +222 -0
  109. package/src/trackchanges.js +1 -1
  110. package/src/trackchangesconfig.d.ts +53 -0
  111. package/src/trackchangesconfig.js +23 -0
  112. package/src/trackchangesdata.d.ts +38 -0
  113. package/src/trackchangesdata.js +1 -1
  114. package/src/trackchangesediting.d.ts +391 -0
  115. package/src/trackchangesediting.js +1 -1
  116. package/src/trackchangesui.d.ts +34 -0
  117. package/src/trackchangesui.js +1 -1
  118. package/src/ui/suggestioncontroller.d.ts +36 -0
  119. package/src/ui/suggestioncontroller.js +1 -1
  120. package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
  121. package/src/ui/view/basesuggestionthreadview.js +1 -1
  122. package/src/ui/view/suggestionthreadview.d.ts +184 -0
  123. package/src/ui/view/suggestionthreadview.js +1 -1
  124. package/src/utils/common-translations.d.ts +5 -0
  125. package/src/utils/common-translations.js +1 -1
  126. package/src/utils/utils.d.ts +26 -0
  127. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4544=['_cutOutSuggestionMarker','change','_editor','deletion:discard','range','error-saving-suggestion-data-suggestion-discarded','_isForcedDefaultExecutionBlock','name','split','authoredAt','ck-suggestion-marker-','locale','discardSuggestion','formatInline','getAncestors','addMarker:suggestion:formatBlock','getRanges','dataReady','substr','after','requires','_adapter','insertion:','dataToMarker','newRange','suggestionChanged','accept','dataDowncast','track-changes-adapter-already-set','isAfter','execute','data','markers','formatGroupId','skipNestingCheck','commands','acceptSuggestion','_defaultCallbacks','_customCallbacks','getFirstRange','data-suggestion','next','some','addRange','addSuggestionData','containsRangeInObject','join','adapter','fetchCommentThread','_suggestionFactory','_enabledCommands','commentThread','isBefore','getSuggestion','documentSelection','createRangeIn','move','clone','isAtEnd','_onDiscard','deletion:','has','bindElementToMarker','addComment','subType','head','forceDefaultExecution','getUser','markerReady','_suggestions','markMultiRangeDeletion','showSuggestionHighlights','get','getDifference','writer','getMarkers','_commentsRepository','size','update:suggestion','markerName','getIntersection','position','author','CommentsRepository','_checkSuggestionCorrectness','formatBlock:join','$marker','trackChanges','every','_handleNewSuggestionMarker','removed','removeAttribute','formatBlock','targetPosition','insertion:join','enableCommand','getAllAdjacentSuggestions','conversion','PendingActions','hasComments','markMultiRangeBlockFormat','sort','multipleBlocks','unbind','suggestion','delete','trackChanges.trackFormatChanges','plugins','isLocal','suggestion:','activeMarkers','mapper','deleteContent','deletion:chain','change:activeMarkers','isIntersectingWithRange','track-changes-adapter-missing-getsuggestion','listenTo','element','end','_setSuggestionRange','deletion','getShiftedBy','insertContent','type','remove','deletion:accept','marker-count','insertion','removeMarker','value','filter','isLimit','formatBlock:discard','document','_removeSuggestion','_getExternalAuthor','removeMarkers','formatInline:discard','includes','toViewElement','track-changes-command-not-found','_saved','@external','accepted','_joinSuggestions','isCollapsed','getSuggestionCallback','Users','map','consume','addSuggestion','low','resolve','schema','consumable','_suggestionState','createSelection','getChangedMarkers','containsPosition','upcast','start','acceptSelectedSuggestions','_createSuggestion','formatBlock:accept','_model','getNearestSelectionRange','_rangeIsInLocalUserInsertion','_refreshSuggestionsChain','discard','detach','ck-suggestion-marker-formatBlock','previous','isObject','length','markMultiRangeInsertion','push','fromCharCode','collaboration.channelId','isDocumentOperation','group','enqueueChange','TrackChangesEditing','track-changes-suggestion-not-found','unbindElementFromMarkerName','getSuggestions','createPositionAt','define','open','discardAllSuggestions','_getAuthorFromId','editor','trackChangesCommand','isRemovable','addMarkerName','registerPostFixer','buildSuggestion','isSelectable','track-changes-suggestion-data-mismatch','for','formatInline:join','updateMarker','discardSelectedSuggestions','markInlineFormat','elementStart','lowest','normal','nodeBefore','insert','differ','markerToData','containsItem','root','ready','acceptAllSuggestions','then','getCustomProperty','createdAt','external:','batch','removeClass','_descriptionFactory','creator','from','highest','_updateSuggestionData','isInContent','model','high','markBlockFormat','markInsertion','_trackFormatChanges','ck-suggestion-marker--active','containerElement','clear','getMultiRangeId','add','catch','set','setAttribute','markerNameToElements','formatInline:','createPositionBefore','widget','isMultiRange','getRange','attributes','splice','ck-suggestion-marker','fire','getFirstMarker','registerCustomCallback','getAttribute','insertion:chain','item','rethrowUnexpectedError','rootName','removeMarker:suggestion:formatBlock','suggestionUnloaded','commandName','addHighlight','isEqual','editingDowncast','getLastMatchingPosition','parent','isAtStart','change:data','isNextTo','oldRange','elementEnd','fromRange','before','stop','_findSuggestions','selection','stopListening','isBlock','createElement','originalSuggestionId','_splitMarkerName','formatBlock:','addClass','isOwn','isInsideObject','insertion:accept','options','containsRange','refresh','_addSuggestionMarker','pluginName','init','_registerDefaultCallbacks','_setSuggestionData','backward','nodeAfter','deletion:join','markerToHighlight','setSelection','createRange','forward','notReady','config','addMarker','values','multi','_joinWithAdjacentSuggestions','editing','applyOperation','_addThreadToSuggestion','formatInline:accept','updateSuggestion','addMarker:suggestion','$graveyard'];(function(_0x26ddfc,_0x4544c8){const _0x10a833=function(_0x2692cb){while(--_0x2692cb){_0x26ddfc['push'](_0x26ddfc['shift']());}};_0x10a833(++_0x4544c8);}(_0x4544,0x107));const _0x10a8=function(_0x26ddfc,_0x4544c8){_0x26ddfc=_0x26ddfc-0x0;let _0x10a833=_0x4544[_0x26ddfc];return _0x10a833;};import{Plugin as _0x25b1da,PendingActions as _0xb747bc}from'ckeditor5/src/core';import{LiveRange as _0x1ee699}from'ckeditor5/src/engine';import{CKEditorError as _0x57d3ea,uid as _0x57911e,priorities as _0x2878f6,EmitterMixin as _0x3b29d5,mix as _0x2a95b8,logWarning as _0xbfee5c}from'ckeditor5/src/utils';import{toWidget as _0x42b4fc}from'ckeditor5/src/widget';import{Users as _0x227919,hashObject as _0x1dda37}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b4463 from'./commands/trackchangescommand';import _0x386c4c from'./commands/acceptsuggestioncommand';import _0x17d4da from'./commands/discardsuggestioncommand';import _0x1041d9 from'./commands/executeonallsuggestionscommand';import _0x58d9e3 from'./commands/executeonselectedsuggestionscommand';import _0x2ac191 from'./suggestion';import _0x40eec9 from'./suggestiondescriptionfactory';import _0x1e54c7 from'./integrations/alignment';import _0x3163b3 from'./integrations/basicstyles';import _0x54b332 from'./integrations/blockquote';import _0x5c724a from'./integrations/ckbox';import _0x2be774 from'./integrations/codeblock';import _0x4da576 from'./integrations/comments';import _0x1c3054 from'./integrations/deletecommand';import _0x5a9610 from'./integrations/documentlist';import _0x4250f3 from'./integrations/entercommand';import _0x13b73c from'./integrations/findandreplace';import _0x72d3bf from'./integrations/font';import _0xac0a4b from'./integrations/heading';import _0x460088 from'./integrations/highlight';import _0x28c3e5 from'./integrations/horizontalline';import _0x5ad5ca from'./integrations/htmlembed';import _0x274860 from'./integrations/image';import _0x3d2c17 from'./integrations/imagereplace';import _0x277b6e from'./integrations/importword';import _0x55e8e6 from'./integrations/indent';import _0x858589 from'./integrations/inputcommand';import _0x606e7d from'./integrations/link';import _0x19a446 from'./integrations/list';import _0x2a62fa from'./integrations/listproperties';import _0xf4702 from'./integrations/mediaembed';import _0x3f776d from'./integrations/mention';import _0x2d3285 from'./integrations/pagebreak';import _0x8fb530 from'./integrations/paragraph';import _0x2e2c15 from'./integrations/removeformat';import _0x38abc9 from'./integrations/restrictededitingmode';import _0x632245 from'./integrations/shiftentercommand';import _0x2763f5 from'./integrations/standardeditingmode';import _0x22f0fd from'./integrations/style';import _0x4dc774 from'./integrations/table';import _0x4d0784 from'./integrations/tablemergesplit';import _0x3b79fe from'./integrations/tableheadings';import _0x329ae1 from'./integrations/tableclipboard';import _0x3e255a from'./integrations/tablecolumnresize';import _0x487469 from'./integrations/title';import _0x3378f4 from'./integrations/undo';import{getTranslation as _0x422247}from'./utils/common-translations';import _0x2ead95 from'./integrations/tablecaption';import _0xd9df0c from'./integrations/documentlistproperties';import _0x48d5c3 from'./integrations/tableproperties';export default class p extends _0x25b1da{static get[_0x10a8('0x46')](){return[_0x10a8('0x85'),_0x227919,_0xb747bc,_0x1e54c7,_0x3163b3,_0x54b332,_0x5c724a,_0x2be774,_0x4da576,_0x1c3054,_0x5a9610,_0xd9df0c,_0x4250f3,_0x13b73c,_0x72d3bf,_0xac0a4b,_0x460088,_0x28c3e5,_0x5ad5ca,_0x274860,_0x3d2c17,_0x277b6e,_0x55e8e6,_0x858589,_0x606e7d,_0x19a446,_0x2a62fa,_0xf4702,_0x3f776d,_0x2d3285,_0x8fb530,_0x2e2c15,_0x38abc9,_0x632245,_0x2763f5,_0x22f0fd,_0x4dc774,_0x4d0784,_0x3b79fe,_0x2ead95,_0x329ae1,_0x3e255a,_0x48d5c3,_0x487469,_0x3378f4];}static get[_0x10a8('0x1a')](){return _0x10a8('0xe8');}constructor(_0x59d86c){function _0x2aaba0(_0x56ba34){return _0x56ba34[_0x10a8('0xc7')](_0x54c837=>String[_0x10a8('0xe3')](_0x54c837))[_0x10a8('0x60')]('');}super(_0x59d86c),this[_0x10a8('0x120')](_0x10a8('0xa0'),[]),this['on'](_0x10a8('0xa4'),(_0x52c22e,_0x438331,_0x2fa347,_0x2bbab1)=>{this[_0x10a8('0xd7')][_0x10a8('0x33')](()=>{for(const _0x1646bf of[..._0x2bbab1,..._0x2fa347])this[_0x10a8('0xd7')][_0x10a8('0x52')][_0x10a8('0x6f')](_0x1646bf)&&_0x59d86c[_0x10a8('0x2b')]['reconvertMarker'](_0x1646bf);});}),this[_0x10a8('0x10f')]=new _0x40eec9(this[_0x10a8('0xf1')][_0x10a8('0x115')][_0x10a8('0xcc')],this[_0x10a8('0xf1')][_0x10a8('0x3d')]),this[_0x10a8('0x47')]=null,this[_0x10a8('0x63')]=new Dt(this[_0x10a8('0xf1')]),this['_suggestions']=new Map(),this[_0x10a8('0x7e')]=_0x59d86c[_0x10a8('0x9d')]['get'](_0x10a8('0x85')),this[_0x10a8('0x64')]=new Set(),this[_0x10a8('0xd7')]=this['editor'][_0x10a8('0x115')],this[_0x10a8('0xce')]=new WeakMap(),this[_0x10a8('0x38')]=!0x1,_0x59d86c[_0x10a8('0x26')][_0x10a8('0xed')](_0x10a8('0x9c'),!0x0),this[_0x10a8('0x119')]=_0x59d86c['config']['get'](_0x10a8('0x9c')),this[_0x2aaba0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2aaba0([0x34,0x30,0x34,0x36,0x30,0x34,0x31,0x34]);}[_0x10a8('0x1b')](){const _0x4e2fda=this[_0x10a8('0xf1')];_0x4e2fda['conversion'][_0x10a8('0xf9')](_0x10a8('0x138'))[_0x10a8('0x21')]({'model':'suggestion','view':_0x3849c5=>{const {id:_0x35ac2b,type:_0x2f458c}=this[_0x10a8('0x10')](_0x3849c5[_0x10a8('0x81')]),_0x12e18e=[_0x10a8('0x12a'),_0x10a8('0x3c')+_0x2f458c];let _0x4d9d4a=0xbb8;return this['activeMarkers'][_0x10a8('0xbd')](_0x3849c5[_0x10a8('0x81')])&&(_0x12e18e['push'](_0x10a8('0x11a')),_0x4d9d4a=0xbc2),'deletion'==_0x2f458c&&(_0x4d9d4a+=0x5),{'classes':_0x12e18e,'attributes':{'data-suggestion':_0x35ac2b},'priority':_0x4d9d4a};}}),_0x4e2fda[_0x10a8('0x93')][_0x10a8('0xf9')](_0x10a8('0x4d'))['add'](_0x17708c=>{_0x17708c['on'](_0x10a8('0x30'),(_0x98b12d,_0x54c820,_0x57b2c7)=>{if(!_0x57b2c7[_0x10a8('0x16')]['showSuggestionHighlights'])return;const _0x29af52=_0x54c820['item'];if(!_0x29af52)return;const _0x370a7b=_0x57b2c7[_0x10a8('0xa1')][_0x10a8('0xbe')](_0x29af52);_0x4e2fda['model'][_0x10a8('0xcc')][_0x10a8('0xdf')](_0x29af52)&&_0x370a7b&&!_0x370a7b[_0x10a8('0x10a')](_0x10a8('0x125'))&&_0x370a7b['is'](_0x10a8('0x11b'))&&_0x42b4fc(_0x370a7b,_0x57b2c7[_0x10a8('0x7c')]);},{'priority':_0x10a8('0x116')});}),_0x4e2fda['conversion'][_0x10a8('0xf9')]('dataDowncast')[_0x10a8('0x21')]({'model':_0x10a8('0x9a'),'view':(_0x5360e6,_0x2ba5c0)=>{if(!_0x2ba5c0['options'][_0x10a8('0x79')])return null;const {type:_0x1b1f89}=this['_splitMarkerName'](_0x5360e6[_0x10a8('0x81')]);return{'classes':[_0x10a8('0x12a'),_0x10a8('0x3c')+_0x1b1f89],'priority':0xbb8};}});const _0x3d177e=({showActiveMarkers:_0x36ac60=!0x0}={})=>(_0x2e0681,_0x5340d7,_0x42d990)=>{if(!_0x5340d7[_0x10a8('0x130')])return;if(_0x5340d7[_0x10a8('0x130')]['is']('selection'))return void _0x42d990[_0x10a8('0xcd')][_0x10a8('0xc8')](_0x5340d7[_0x10a8('0x130')],_0x2e0681['name']);const _0x1056fc=_0x42d990[_0x10a8('0xa1')][_0x10a8('0xbe')](_0x5340d7[_0x10a8('0x130')]);if(!(_0x5340d7[_0x10a8('0x130')]['is'](_0x10a8('0xa8'))&&_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')]['isBlock'](_0x5340d7['item'])&&!_0x1056fc[_0x10a8('0x10a')](_0x10a8('0x136'))))return;const {id:_0x2c2340}=this['_splitMarkerName'](_0x5340d7['markerName']);_0x42d990[_0x10a8('0x7c')][_0x10a8('0x12')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1056fc),_0x42d990[_0x10a8('0x7c')][_0x10a8('0x121')](_0x10a8('0x5a'),_0x2c2340,_0x1056fc),_0x42d990[_0x10a8('0xa1')][_0x10a8('0x70')](_0x1056fc,_0x5340d7['markerName']),_0x36ac60&&(this[_0x10a8('0xa0')][_0x10a8('0xbd')](_0x5340d7[_0x10a8('0x81')])?_0x42d990['writer'][_0x10a8('0x12')](_0x10a8('0x11a'),_0x1056fc):_0x42d990[_0x10a8('0x7c')][_0x10a8('0x10e')]('ck-suggestion-marker--active',_0x1056fc));for(const _0x5f1294 of _0x4e2fda[_0x10a8('0x115')][_0x10a8('0x69')](_0x5340d7[_0x10a8('0x130')])['getItems']())_0x42d990[_0x10a8('0xcd')]['consume'](_0x5f1294,_0x2e0681[_0x10a8('0x39')]);_0x42d990['consumable']['consume'](_0x5340d7[_0x10a8('0x130')],_0x2e0681[_0x10a8('0x39')]);};_0x4e2fda['conversion'][_0x10a8('0xf9')](_0x10a8('0x4d'))[_0x10a8('0x11e')](_0x1062a7=>{_0x1062a7['on'](_0x10a8('0x41'),(_0x2fdb65,_0x40a2a1,_0x215949)=>{_0x215949['options'][_0x10a8('0x79')]&&_0x3d177e({'showActiveMarkers':!0x1})(_0x2fdb65,_0x40a2a1,_0x215949);},{'priority':_0x10a8('0x112')});}),_0x4e2fda[_0x10a8('0x93')]['for'](_0x10a8('0x4d'))[_0x10a8('0x104')]({'model':_0x10a8('0x9a'),'view':(_0x281d6d,_0x5c8793)=>_0x5c8793[_0x10a8('0x16')][_0x10a8('0x79')]?null:{'group':'suggestion','name':_0x281d6d[_0x10a8('0x44')](_0x10a8('0x9a')[_0x10a8('0xe0')]+0x1)}}),_0x4e2fda[_0x10a8('0x93')]['for'](_0x10a8('0xd2'))['elementToElement']({'view':{'name':_0x10a8('0x9a'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x51232d,{writer:_0x15a6f6})=>{let _0x3e16ff='suggestion:'+_0x51232d[_0x10a8('0x12e')]('suggestion-type')+':'+_0x51232d[_0x10a8('0x12e')]('id');return _0x51232d[_0x10a8('0x12e')](_0x10a8('0xb1'))&&(_0x3e16ff+=':'+_0x51232d['getAttribute']('marker-count')),_0x15a6f6[_0x10a8('0xe')](_0x10a8('0x88'),{'data-name':_0x3e16ff});}}),_0x4e2fda[_0x10a8('0x93')][_0x10a8('0xf9')](_0x10a8('0xd2'))[_0x10a8('0x49')]({'view':_0x10a8('0x9a')}),_0x4e2fda[_0x10a8('0x93')][_0x10a8('0xf9')](_0x10a8('0x138'))[_0x10a8('0x11e')](_0x3daf97=>{_0x3daf97['on'](_0x10a8('0x41'),_0x3d177e(),{'priority':'high'});}),_0x4e2fda['conversion']['for'](_0x10a8('0x138'))[_0x10a8('0x11e')](_0x1ca006=>{_0x1ca006['on'](_0x10a8('0x133'),(_0x11f9c8,_0x48c7c0,_0x4b8de5)=>{const _0x5c83c4=_0x4b8de5[_0x10a8('0xa1')][_0x10a8('0x122')](_0x48c7c0[_0x10a8('0x81')]);if(_0x5c83c4)for(const _0x3fddc6 of _0x5c83c4)_0x3fddc6[_0x10a8('0x10a')](_0x10a8('0x136'))||(_0x4b8de5[_0x10a8('0x7c')][_0x10a8('0x10e')]([_0x10a8('0x12a'),_0x10a8('0xdd'),_0x10a8('0x11a')],_0x3fddc6),_0x4b8de5['writer'][_0x10a8('0x8d')]('data-suggestion',_0x3fddc6),_0x4b8de5['mapper'][_0x10a8('0xea')](_0x3fddc6,_0x48c7c0[_0x10a8('0x81')]));},{'priority':'high'});}),_0x4e2fda['model']['document'][_0x10a8('0xf5')](_0x1b3ddf=>{let _0x271f25=!0x1;const _0x529147=Array[_0x10a8('0x111')](_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xb8')][_0x10a8('0x103')][_0x10a8('0xd0')]()),_0x18c020=new Set();for(const {name:_0x58ecec,data:_0x980595}of _0x529147){const {group:_0x337283,type:_0x519c65,id:_0x25a5e2}=this[_0x10a8('0x10')](_0x58ecec);if(_0x10a8('0x9a')!==_0x337283)continue;const _0x4a7173=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x25a5e2);if(null!=_0x980595[_0x10a8('0x4a')]){_0x10a8('0x3f')==_0x519c65&&(_0x271f25=_0x271f25||_t(_0x980595['newRange'],_0x58ecec,_0x1b3ddf,_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')]));if(_0x980595[_0x10a8('0x4a')][_0x10a8('0xc4')]||_0x10a8('0x31')==_0x980595['newRange'][_0x10a8('0x106')]['rootName']||_0x10a8('0x8e')==_0x519c65&&!$t(_0x980595[_0x10a8('0x4a')])||_0x10a8('0xab')==_0x519c65&&!(!Bt(_0x378917=_0x980595[_0x10a8('0x4a')])&&!function(_0x2b4f08){return _0x2b4f08[_0x10a8('0xd3')][_0x10a8('0x1')]==_0x2b4f08[_0x10a8('0xa9')][_0x10a8('0x101')]&&_0x2b4f08['start'][_0x10a8('0x6c')];}(_0x378917)))_0x1b3ddf[_0x10a8('0xb3')](_0x58ecec),_0x271f25=!0x0;else{if(!_0x4a7173||!_0x4a7173[_0x10a8('0x114')])continue;_0x18c020[_0x10a8('0x11e')](_0x4a7173);}}}var _0x378917;return _0x18c020[_0x10a8('0x7f')]>0x0&&(_0x271f25=!!this[_0x10a8('0x2a')](_0x18c020)||_0x271f25),_0x271f25;}),_0x4e2fda['model']['document'][_0x10a8('0xf5')](_0x384919=>{let _0x13b80b=!0x1;for(const _0x1bacde of _0x4e2fda[_0x10a8('0x115')]['document'][_0x10a8('0x103')]['getChanges']()){if(_0x10a8('0x102')!=_0x1bacde[_0x10a8('0xae')])continue;const _0x5eb6fc=_0x1bacde[_0x10a8('0x83')][_0x10a8('0xac')](_0x1bacde[_0x10a8('0xe0')]);if(_0x5eb6fc[_0x10a8('0x6c')])for(const _0x4c6d19 of this[_0x10a8('0x77')][_0x10a8('0x28')]()){if(_0x4c6d19[_0x10a8('0x126')]||!_0x4c6d19[_0x10a8('0x114')])continue;if(_0x10a8('0x8e')!=_0x4c6d19[_0x10a8('0xae')])continue;const _0x3961ae=_0x4c6d19[_0x10a8('0x59')]();if(_0x3961ae[_0x10a8('0xd3')]['parent']!=_0x3961ae['end'][_0x10a8('0x1')]&&_0x3961ae[_0x10a8('0xa9')][_0x10a8('0x137')](_0x1bacde['position'])){const _0x389521=_0x4e2fda['model'][_0x10a8('0x23')](_0x3961ae[_0x10a8('0xd3')],_0x5eb6fc);_0x384919[_0x10a8('0xfb')](_0x4c6d19[_0x10a8('0x12c')](),{'range':_0x389521}),_0x13b80b=!0x0;}}}return _0x13b80b;}),_0x4e2fda['model'][_0x10a8('0x52')]['on'](_0x10a8('0x80'),(_0x606df9,_0x1e8305,_0x4b81b1)=>{if(null==_0x4b81b1){const {id:_0x5bcbbc}=this['_splitMarkerName'](_0x1e8305[_0x10a8('0x39')]),_0x1cfebc=this[_0x10a8('0x77')]['get'](_0x5bcbbc);_0x1cfebc&&_0x1cfebc[_0x10a8('0xf4')](_0x1e8305['name']);}}),_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xb8')]['on'](_0x10a8('0x3'),()=>{const _0x929fd6=Array[_0x10a8('0x111')](_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xb8')]['differ'][_0x10a8('0xd0')]())[_0x10a8('0xb5')](_0xa1fa03=>_0x10a8('0x9a')===this[_0x10a8('0x10')](_0xa1fa03[_0x10a8('0x39')])[_0x10a8('0xe6')]);if(0x0===_0x929fd6[_0x10a8('0xe0')])return;_0x929fd6['sort']((_0x5e6773,_0x396387)=>{const _0x1f49a5=_0x5e6773[_0x10a8('0x51')][_0x10a8('0x5')],_0xa7fa16=_0x396387[_0x10a8('0x51')][_0x10a8('0x5')];return null===_0x1f49a5&&null===_0xa7fa16?0x0:null===_0x1f49a5&&null!==_0xa7fa16?-0x1:null!==_0x1f49a5&&null===_0xa7fa16?0x1:_0x1f49a5[_0x10a8('0xd3')][_0x10a8('0x66')](_0xa7fa16[_0x10a8('0xd3')])?-0x1:0x1;});const _0x4dcdbb=new Set(),_0x43f77f=new Set();for(const {name:_0x20279a,data:_0x5ccf75}of _0x929fd6){const {id:_0x169d44}=this['_splitMarkerName'](_0x20279a);if(null===_0x5ccf75[_0x10a8('0x5')]){const _0x51d7ba=this[_0x10a8('0x8b')](_0x20279a);_0x43f77f[_0x10a8('0x11e')](_0x51d7ba);}else{const _0x3a1376=this['_suggestions'][_0x10a8('0x7a')](_0x169d44);null!==_0x5ccf75['newRange']||_0x3a1376[_0x10a8('0x114')]?(_0x4dcdbb['add'](_0x3a1376[_0x10a8('0x73')]),_0x43f77f[_0x10a8('0x11e')](_0x3a1376)):this[_0x10a8('0xb9')](_0x3a1376);}}_0x43f77f[_0x10a8('0x7f')]>0x0&&this[_0x10a8('0xda')](_0x43f77f);for(const _0x1afec7 of _0x4dcdbb)this[_0x10a8('0x12b')](_0x10a8('0x4b'),_0x1afec7);}),_0x4e2fda[_0x10a8('0x115')]['on'](_0x10a8('0x2c'),(_0x129705,_0x5099fa)=>{const _0xbfa1cf=_0x5099fa[0x0];if(!this[_0x10a8('0x77')][_0x10a8('0x7f')])return;if(!_0xbfa1cf[_0x10a8('0xe5')])return;if(_0xbfa1cf[_0x10a8('0x10d')]['isUndo']||!_0xbfa1cf['batch'][_0x10a8('0x9e')])return;let _0x325ce1,_0x239fec;switch(_0xbfa1cf[_0x10a8('0xae')]){case'insert':_0x325ce1=_0x4e2fda[_0x10a8('0x115')]['createPositionAt'](_0xbfa1cf[_0x10a8('0x83')]),_0x239fec=_0x325ce1[_0x10a8('0xac')](_0xbfa1cf['howMany']);break;case _0x10a8('0x3a'):_0x325ce1=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xec')](_0xbfa1cf['splitPosition']),_0x239fec=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xec')](_0xbfa1cf['moveTargetPosition']);break;case _0x10a8('0x6a'):_0x325ce1=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xec')](_0xbfa1cf[_0x10a8('0x8f')]),_0x239fec=_0x325ce1['getShiftedBy'](_0xbfa1cf['howMany']);break;default:return;}const _0x5b2de6=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x23')](_0x325ce1,_0x239fec);_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x33')](()=>{for(const {suggestion:_0x251d8c,meta:_0x5a89e5}of this['_findSuggestions'](_0x5b2de6)){if(_0x251d8c['isMultiRange'])continue;if(_0x10a8('0x3f')==_0x251d8c[_0x10a8('0xae')])continue;const _0x249131=_0x251d8c['data']&&_0x251d8c[_0x10a8('0x51')][_0x10a8('0x98')];('formatBlock'!=_0x251d8c['type']||_0x10a8('0x3a')==_0xbfa1cf[_0x10a8('0xae')]&&!_0x249131)&&(_0x5a89e5['containsRangeInObject']||_0x10a8('0xb2')==_0x251d8c[_0x10a8('0xae')]&&_0x5a89e5['isOwn']||_0x251d8c[_0x10a8('0x59')]()[_0x10a8('0x17')](_0x5b2de6)&&this['_breakSuggestionMarker'](_0x251d8c,_0x325ce1,_0x239fec));}});},{'priority':_0x10a8('0xff')}),_0x4e2fda[_0x10a8('0x115')]['on'](_0x10a8('0xa2'),(_0x1b1ae6,_0xc1fa44)=>{const _0x19f40d=_0xc1fa44[0x0],_0x3b1d07=_0xc1fa44[0x1];if(_0x3b1d07&&_0x3b1d07[_0x10a8('0x74')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x10a8('0xf2')][_0x10a8('0xb4')])return;if(_0x19f40d['isCollapsed'])return;const _0x2a16ac=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')],{start:_0x18e87d,end:_0x10aaef}=_0x19f40d[_0x10a8('0x59')](),_0xefd793=_0x18e87d[_0x10a8('0x1f')]&&_0x2a16ac['isLimit'](_0x18e87d[_0x10a8('0x1f')])?null:_0x2a16ac['getNearestSelectionRange'](_0x18e87d,_0x10a8('0x24')),_0x14238c=_0x10aaef[_0x10a8('0x101')]&&_0x2a16ac[_0x10a8('0xb6')](_0x10aaef[_0x10a8('0x101')])?null:_0x2a16ac[_0x10a8('0xd8')](_0x10aaef,_0x10a8('0x1e')),_0x264438=_0x4e2fda['model'][_0x10a8('0x23')](_0xefd793?_0xefd793[_0x10a8('0xd3')]:_0x18e87d,_0x14238c?_0x14238c[_0x10a8('0xa9')]:_0x10aaef);_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x33')](_0x13ee8d=>{this['markDeletion'](_0x264438);const _0xa3531b=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')][_0x10a8('0xd8')](_0x264438[_0x10a8('0xd3')]);_0x19f40d['is'](_0x10a8('0x68'))?_0x13ee8d[_0x10a8('0x22')](_0xa3531b):_0x19f40d['setTo'](_0xa3531b);}),_0x1b1ae6['stop']();},{'priority':_0x2878f6[_0x10a8('0x100')]+0xa}),_0x4e2fda[_0x10a8('0x115')]['on'](_0x10a8('0xad'),(_0xb4e56,_0xf3d3b2)=>{const _0x8a2d8b=_0xf3d3b2[_0xf3d3b2['length']-0x1];_0x8a2d8b&&_0x8a2d8b[_0x10a8('0x74')]||this[_0x10a8('0x38')]||this[_0x10a8('0xf2')][_0x10a8('0xb4')]&&(_0x4e2fda[_0x10a8('0x115')][_0x10a8('0x33')](()=>{let _0x4f8cdd=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xad')](_0xf3d3b2[0x0],_0xf3d3b2[0x1],_0xf3d3b2[0x2],_0xf3d3b2[0x3],{'forceDefaultExecution':!0x0});if(!_0x4f8cdd)return;_0xb4e56['return']=_0x4f8cdd[_0x10a8('0x6b')]();const _0x3ce3a4=_0x4f8cdd[_0x10a8('0xa9')][_0x10a8('0x101')],_0x1b1a5d=_0x4e2fda[_0x10a8('0x115')][_0x10a8('0xcc')];_0x3ce3a4&&_0x1b1a5d[_0x10a8('0xd')](_0x3ce3a4)&&!_0x1b1a5d['isObject'](_0x3ce3a4)&&(_0x4f8cdd=_0x4e2fda['model'][_0x10a8('0x23')](_0x4f8cdd[_0x10a8('0xd3')],_0x4e2fda[_0x10a8('0x115')]['createPositionAt'](_0x3ce3a4,'end'))),this[_0x10a8('0x118')](_0x4f8cdd);}),_0xb4e56[_0x10a8('0x9')]());},{'priority':_0x10a8('0x116')}),this[_0x10a8('0xf2')]=new _0x2b4463(_0x4e2fda,this[_0x10a8('0x64')]),this[_0x10a8('0xf1')]['commands'][_0x10a8('0x11e')](_0x10a8('0x89'),this[_0x10a8('0xf2')]),this[_0x10a8('0x91')](_0x10a8('0x89'));const _0x39511c=new _0x386c4c(_0x4e2fda,this[_0x10a8('0x77')]);_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')](_0x10a8('0x56'),_0x39511c),this[_0x10a8('0x91')]('acceptSuggestion');const _0x367954=new _0x17d4da(_0x4e2fda,this[_0x10a8('0x77')]);_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')]('discardSuggestion',_0x367954),this[_0x10a8('0x91')](_0x10a8('0x3e')),_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')]('acceptAllSuggestions',new _0x1041d9(_0x4e2fda,_0x39511c,this[_0x10a8('0x77')])),this[_0x10a8('0x91')](_0x10a8('0x108')),_0x4e2fda[_0x10a8('0x55')][_0x10a8('0x11e')](_0x10a8('0xef'),new _0x1041d9(_0x4e2fda,_0x367954,this[_0x10a8('0x77')])),this[_0x10a8('0x91')](_0x10a8('0xef')),_0x4e2fda[_0x10a8('0x55')]['add']('acceptSelectedSuggestions',new _0x58d9e3(_0x4e2fda,_0x39511c,this[_0x10a8('0x77')])),this[_0x10a8('0x91')](_0x10a8('0xd4')),_0x4e2fda['commands'][_0x10a8('0x11e')](_0x10a8('0xfc'),new _0x58d9e3(_0x4e2fda,_0x367954,this[_0x10a8('0x77')])),this[_0x10a8('0x91')]('discardSelectedSuggestions');const _0x41d51d=_0x4e2fda[_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0x85'));this[_0x10a8('0xa7')](_0x41d51d,_0x10a8('0x71'),(_0xaa0a3,{threadId:_0x298584})=>{const _0x471779=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x298584);_0x471779&&_0x471779[_0x10a8('0x65')]&&0x1===_0x471779[_0x10a8('0x65')][_0x10a8('0xe0')]&&this[_0x10a8('0x113')](_0x298584,{'hasComments':!0x0});},{'priority':_0x10a8('0xca')}),this[_0x10a8('0xa7')](_0x41d51d,'removeComment',(_0xa6106e,{threadId:_0x55e37e})=>{const _0x58da74=this['_suggestions'][_0x10a8('0x7a')](_0x55e37e);_0x58da74&&_0x58da74['commentThread']&&!_0x58da74['commentThread'][_0x10a8('0xe0')]&&this[_0x10a8('0x113')](_0x55e37e,{'hasComments':!0x1});},{'priority':_0x10a8('0xca')});}set['adapter'](_0x4d2877){if(this[_0x10a8('0x47')])throw new _0x57d3ea(_0x10a8('0x4e'),this);this['_adapter']=_0x4d2877;}get[_0x10a8('0x61')](){return this[_0x10a8('0x47')];}[_0x10a8('0xeb')]({skipNotAttached:_0x45b791=!0x1,toJSON:_0x339e87=!0x1}={}){const _0x5e2ca2=[];for(const _0x753a1b of this['_suggestions']['values']())_0x45b791&&!_0x753a1b[_0x10a8('0x114')]||_0x5e2ca2[_0x10a8('0xe2')](_0x753a1b);return _0x339e87?_0x5e2ca2[_0x10a8('0xc7')](_0xc8d7e9=>_0xc8d7e9['toJSON']()):_0x5e2ca2;}[_0x10a8('0x67')](_0x5a49d4){const _0x18ea91=this['_suggestions'][_0x10a8('0x7a')](_0x5a49d4);if(!_0x18ea91)throw new _0x57d3ea(_0x10a8('0xe9'),this);return _0x18ea91;}['hasSuggestion'](_0xcb8289){return this['_suggestions'][_0x10a8('0x6f')](_0xcb8289);}[_0x10a8('0x5e')](_0x458e87){const {authorId:_0x2f62fb,id:_0x29009a,attributes:_0x3359db}=_0x458e87,[_0x120b6c,_0x400f29]=_0x458e87[_0x10a8('0xae')][_0x10a8('0x3a')](':'),_0x52ddc3=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x29009a)||this[_0x10a8('0xd5')](_0x120b6c,_0x400f29,_0x29009a,_0x2f62fb,_0x3359db);if(this[_0x10a8('0x2d')](_0x52ddc3),this['_checkSuggestionCorrectness'](_0x52ddc3,_0x120b6c,_0x400f29||null,_0x2f62fb),_0x52ddc3['createdAt']=_0x458e87[_0x10a8('0x10b')],_0x3359db&&_0x3359db[_0x10a8('0xc1')]){const {authorName:_0x34eb7e,createdAt:_0x4e0849}=_0x3359db[_0x10a8('0xc1')],_0x515e0b=this[_0x10a8('0xba')](_0x34eb7e);_0x52ddc3[_0x10a8('0x3b')]=_0x4e0849,_0x52ddc3[_0x10a8('0x84')]=_0x515e0b,_0x52ddc3['isExternal']=!0x0;}else _0x52ddc3[_0x10a8('0x3b')]=_0x458e87[_0x10a8('0x10b')];switch(_0x458e87[_0x10a8('0x51')]&&(_0x52ddc3[_0x10a8('0x51')]=_0x458e87['data']),_0x458e87[_0x10a8('0x128')]&&(_0x52ddc3[_0x10a8('0x128')]=_0x458e87[_0x10a8('0x128')]),this[_0x10a8('0x47')]&&this[_0x10a8('0x47')][_0x10a8('0xc9')]||(_0x52ddc3['_saved']=!0x0),this['_suggestionState'][_0x10a8('0x7a')](_0x52ddc3)){case _0x10a8('0x25'):this[_0x10a8('0xce')][_0x10a8('0x120')](_0x52ddc3,_0x10a8('0x43'));break;case _0x10a8('0x76'):_0x52ddc3[_0x10a8('0x114')]?(this[_0x10a8('0xce')][_0x10a8('0x120')](_0x52ddc3,_0x10a8('0x107')),this['fire']('suggestionLoaded',_0x52ddc3)):this['_suggestionState'][_0x10a8('0x120')](_0x52ddc3,_0x10a8('0x8c'));}return _0x52ddc3;}[_0x10a8('0x56')](_0x437ce1){this['forceDefaultExecution'](()=>{this['editor'][_0x10a8('0x115')][_0x10a8('0x33')](()=>{for(const _0x4f0b08 of _0x437ce1[_0x10a8('0x92')]())_0x4f0b08[_0x10a8('0x4c')]();});});}[_0x10a8('0x3e')](_0x4e18ca){this[_0x10a8('0x74')](()=>{this[_0x10a8('0xf1')][_0x10a8('0x115')]['change'](()=>{for(const _0x45cefe of _0x4e18ca[_0x10a8('0x92')]())_0x45cefe[_0x10a8('0xdb')]();});});}[_0x10a8('0x91')](_0x168ec6,_0x17a11d){const _0x25f623=this['editor'][_0x10a8('0x55')][_0x10a8('0x7a')](_0x168ec6);if(!_0x25f623)throw new _0x57d3ea(_0x10a8('0xbf'),this,{'commandName':_0x168ec6});this[_0x10a8('0x64')][_0x10a8('0x11e')](_0x25f623),_0x17a11d&&_0x25f623['on'](_0x10a8('0x50'),(_0x4cdf11,_0x3e0190)=>{this[_0x10a8('0xf2')][_0x10a8('0xb4')]&&(this[_0x10a8('0x38')]||_0x3e0190['length']>0x0&&_0x3e0190[_0x3e0190[_0x10a8('0xe0')]-0x1]&&_0x3e0190[_0x3e0190[_0x10a8('0xe0')]-0x1][_0x10a8('0x74')]||(_0x17a11d((..._0x5145c7)=>_0x25f623['execute'](..._0x5145c7,{'forceDefaultExecution':!0x0}),..._0x3e0190),_0x4cdf11[_0x10a8('0x9')]()));},{'priority':_0x10a8('0x116')});}['forceDefaultExecution'](_0x197d0f){let _0x397ab3,_0x3bcef6;const _0xc12c42=this[_0x10a8('0x38')];this[_0x10a8('0x38')]=!0x0;try{_0x397ab3=_0x197d0f();}catch(_0x58bcd6){_0x3bcef6=_0x58bcd6;}return _0xc12c42||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3bcef6&&_0x57d3ea[_0x10a8('0x131')](_0x3bcef6,this),_0x397ab3;}['markInsertion'](_0x1cb7ff,_0x251b60=null,_0x4d9882={}){if(_0x1cb7ff[_0x10a8('0xc4')])return null;const _0x205ac6=this['editor'][_0x10a8('0x9d')]['get'](_0x10a8('0xc6'))['me'];for(const {suggestion:_0x25c00e,meta:_0x162d0e}of this[_0x10a8('0xa')](_0x1cb7ff,_0x10a8('0xb2')))if(_0x162d0e['isOwn']){if(!_0x162d0e['isNextTo'])return _0x25c00e;if(_0x251b60==_0x25c00e[_0x10a8('0x72')]){const _0x2a0d6a=_0x25c00e['getFirstRange']();return _0x2a0d6a['start'][_0x10a8('0x137')](_0x1cb7ff[_0x10a8('0xa9')])?this[_0x10a8('0xaa')](_0x25c00e,this['_model']['createRange'](_0x1cb7ff[_0x10a8('0xd3')],_0x2a0d6a[_0x10a8('0xa9')])):this[_0x10a8('0xaa')](_0x25c00e,this['_model'][_0x10a8('0x23')](_0x2a0d6a['start'],_0x1cb7ff[_0x10a8('0xa9')])),_0x25c00e;}}const _0x1ffe33=_0x57911e(),_0x2fed7e=_0x205ac6['id'],_0x377668=_0x251b60?_0x10a8('0x48')+_0x251b60:_0x10a8('0xb2'),_0x30cfb1=this[_0x10a8('0x1d')]({'id':_0x1ffe33,'type':_0x377668,'createdAt':new Date(),'authorId':_0x2fed7e,'attributes':_0x4d9882});return this[_0x10a8('0x19')](_0x377668,_0x1ffe33,_0x2fed7e,_0x1cb7ff),_0x30cfb1;}[_0x10a8('0xe1')](_0x2a3586,_0xad3773=_0x10a8('0x29'),_0x46ba47={}){const _0x1f363f=this[_0x10a8('0xf1')]['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0xc0c700=this[_0x10a8('0x63')]['getSuggestionCallback'](_0x10a8('0xb2'),_0xad3773,'join');for(const _0x54e7d6 of this[_0x10a8('0xeb')]())if(_0x54e7d6[_0x10a8('0x84')]['id']==_0x1f363f['id']&&_0x10a8('0xb2')==_0x54e7d6[_0x10a8('0xae')]&&_0x54e7d6['subType']==_0xad3773&&(_0xc0c700(_0x54e7d6[_0x10a8('0x42')](),_0x2a3586)||_0xc0c700(_0x2a3586,_0x54e7d6['getRanges']()))){for(const _0x3bab21 of _0x2a3586)_0x54e7d6[_0x10a8('0x5d')](_0x3bab21);return _0x54e7d6;}for(const _0x7c6dcc of _0x2a3586)for(const {suggestion:_0x4f420b,meta:_0x5edd65}of this[_0x10a8('0xa')](_0x7c6dcc,'insertion')){if(!_0x5edd65[_0x10a8('0x13')])continue;let _0x28b125=!0x0;for(const _0x46d268 of _0x4f420b[_0x10a8('0x42')]())for(const _0xa5a7d of _0x2a3586)if(!_0x46d268[_0x10a8('0x17')](_0xa5a7d)){_0x28b125=!0x1;break;}if(_0x28b125)return _0x4f420b;}const _0x1bbc30=_0x57911e(),_0x1b7e00=_0x1f363f['id'],_0x2f08da=_0x10a8('0x48')+_0xad3773,_0x3dbe89=this[_0x10a8('0x1d')]({'id':_0x1bbc30,'type':_0x2f08da,'createdAt':new Date(),'authorId':_0x1b7e00,'attributes':_0x46ba47});for(const _0x3070ca of _0x2a3586)this[_0x10a8('0x19')](_0x2f08da,_0x1bbc30,_0x1b7e00,_0x3070ca,_0x2ac191[_0x10a8('0x11d')]());return _0x3dbe89;}[_0x10a8('0xfd')](_0x169ab4,_0x21d61d,_0x6baa11=null,_0x49add5={}){if(_0x6baa11=_0x6baa11||Mt(_0x21d61d),_0x169ab4['isCollapsed'])return;if(!0x1===this[_0x10a8('0x119')]){const _0x2b2ed8=this[_0x10a8('0x63')]['getSuggestionCallback']('formatInline',_0x6baa11,_0x10a8('0x4c'));return void this[_0x10a8('0x74')](()=>_0x2b2ed8([_0x169ab4],_0x21d61d,_0x49add5));}const _0x459ef4=this[_0x10a8('0xf1')]['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0xcb6a20=[];for(const {suggestion:_0x4cfd57,meta:_0x3d54a0}of this[_0x10a8('0xa')](_0x169ab4,'insertion'))_0x3d54a0[_0x10a8('0x13')]&&!_0x3d54a0[_0x10a8('0x14')]&&_0xcb6a20['push'](..._0x4cfd57[_0x10a8('0x42')]());const _0xfc105=function(_0x35867b,_0xd7dcad){const _0x1b8626=[];for(const _0x52903f of _0xd7dcad){const _0x568fd5=_0x35867b[_0x10a8('0x82')](_0x52903f);_0x568fd5&&_0x1b8626['push'](_0x568fd5);}return _0x1b8626;}(_0x169ab4,_0xcb6a20),_0x4d3f25=function(_0x13eb01,_0x4a2192){const _0x376cdd=[_0x13eb01];for(const _0x418640 of _0x4a2192){let _0x47798d=0x0;for(;_0x47798d<_0x376cdd[_0x10a8('0xe0')];){const _0x1edda8=_0x376cdd[_0x47798d][_0x10a8('0x7b')](_0x418640);_0x376cdd[_0x10a8('0x129')](_0x47798d,0x1,..._0x1edda8),_0x47798d+=_0x1edda8['length'];}}return _0x376cdd;}(_0x169ab4,_0xcb6a20);_0xfc105['length']&&this[_0x10a8('0xd7')][_0x10a8('0x33')](()=>{for(const _0x40a5c1 of _0xfc105){const _0x3516eb=this[_0x10a8('0x63')][_0x10a8('0xc5')]('formatInline',_0x6baa11,_0x10a8('0x4c'));this[_0x10a8('0x74')](()=>_0x3516eb([_0x40a5c1],_0x21d61d,_0x49add5));}});for(const _0x12ce7b of _0x4d3f25){let _0x3aae25=null,_0x5e060b=_0x12ce7b[_0x10a8('0xd3')],_0x498015=_0x12ce7b[_0x10a8('0xa9')];for(const {suggestion:_0x479d63,meta:_0x39e9e0}of this['_findSuggestions'](_0x12ce7b,'formatInline')){if(!_0x39e9e0['isOwn'])continue;if(_0x479d63[_0x10a8('0x72')]!=_0x6baa11)continue;const _0x5944a4=_0x479d63[_0x10a8('0x59')]();if(_0x5944a4[_0x10a8('0x17')](_0x12ce7b,!0x0))return;_0x5e060b=_0x5e060b['isBefore'](_0x5944a4['start'])?_0x5e060b:_0x5944a4[_0x10a8('0xd3')],_0x498015=_0x498015[_0x10a8('0x4f')](_0x5944a4['end'])?_0x498015:_0x5944a4[_0x10a8('0xa9')],_0x3aae25?_0x5944a4[_0x10a8('0xd3')][_0x10a8('0x66')](_0x3aae25['getFirstRange']()[_0x10a8('0xd3')])?(_0x3aae25[_0x10a8('0xbb')](),_0x3aae25=_0x479d63):_0x479d63[_0x10a8('0xbb')]():_0x3aae25=_0x479d63;}const _0x882695=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x5e060b,_0x498015);if(_0x3aae25)this[_0x10a8('0xaa')](_0x3aae25,_0x882695);else{const _0x1eb486=_0x57911e(),_0x311d74=_0x459ef4['id'];this[_0x10a8('0x1d')]({'id':_0x1eb486,'type':_0x10a8('0x123')+_0x6baa11,'data':_0x21d61d,'createdAt':new Date(),'authorId':_0x311d74,'attributes':_0x49add5}),this[_0x10a8('0x19')](_0x10a8('0x123')+_0x6baa11,_0x1eb486,_0x311d74,_0x882695);}}}[_0x10a8('0x117')](_0xc60e46,_0x19ba89,_0x4fd7ff=[],_0x8d178d=null,_0x44f5a5={}){_0x19ba89[_0x10a8('0x53')]||(_0x19ba89['formatGroupId']=_0x19ba89[_0x10a8('0x135')]),_0x19ba89[_0x10a8('0x98')]=_0xc60e46['is'](_0x10a8('0x36')),_0x8d178d=_0x8d178d||Mt(_0x19ba89);const _0x36deeb=_0x4fd7ff[_0x10a8('0xc7')](_0x43ff1a=>Nt(_0x43ff1a,this[_0x10a8('0xd7')])),_0x17cab1=_0xc60e46['is'](_0x10a8('0x36'))?_0xc60e46:Nt(_0xc60e46,this[_0x10a8('0xd7')]);if(!0x1===this[_0x10a8('0x119')]){const _0x5ac367=this['_suggestionFactory'][_0x10a8('0xc5')]('formatBlock',_0x8d178d,_0x10a8('0x4c'));return void this[_0x10a8('0x74')](()=>_0x5ac367([_0x17cab1],_0x19ba89,_0x44f5a5));}_0x36deeb[_0x10a8('0xe2')](_0x17cab1);let _0x157eb8=!0x0;for(const _0x10e7ac of _0x36deeb)if(!this[_0x10a8('0xd9')](_0x10e7ac)){_0x157eb8=!0x1;break;}if(_0x157eb8){const _0x248fdb=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0x8e'),_0x8d178d,_0x10a8('0x4c'));return void this['forceDefaultExecution'](()=>_0x248fdb([_0x17cab1],_0x19ba89,_0x44f5a5));}let _0x5965f9=null,_0x46a122=_0x17cab1[_0x10a8('0xd3')],_0xc6b8bf=_0x17cab1[_0x10a8('0xa9')];for(const {suggestion:_0x422495,meta:_0x466f88}of this[_0x10a8('0xa')](_0x17cab1,_0x10a8('0x8e'))){if(!_0x466f88[_0x10a8('0x13')]||_0x466f88[_0x10a8('0x4')]||_0x466f88[_0x10a8('0x5f')]||_0x466f88[_0x10a8('0x14')])continue;if(_0x422495[_0x10a8('0x51')][_0x10a8('0x53')]!=_0x19ba89[_0x10a8('0x53')])continue;const _0x363d73=_0x422495[_0x10a8('0x59')]();if(_0x422495[_0x10a8('0x72')]==_0x8d178d){if(_0x363d73['containsRange'](_0x17cab1,!0x0))return;_0x46a122=_0x46a122[_0x10a8('0x66')](_0x363d73['start'])?_0x46a122:_0x363d73[_0x10a8('0xd3')],_0xc6b8bf=_0xc6b8bf[_0x10a8('0x4f')](_0x363d73[_0x10a8('0xa9')])?_0xc6b8bf:_0x363d73[_0x10a8('0xa9')],_0x5965f9?_0x363d73['start'][_0x10a8('0x66')](_0x5965f9[_0x10a8('0x59')]()[_0x10a8('0xd3')])?(_0x5965f9[_0x10a8('0xbb')](),_0x5965f9=_0x422495):_0x422495[_0x10a8('0xbb')]():_0x5965f9=_0x422495;}else{const _0x4e9968=_0x17cab1[_0x10a8('0x82')](_0x363d73);this[_0x10a8('0x32')](_0x422495,_0x4e9968);}}const _0x532557=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0x680e3f=_0x57911e(),_0x1174a5=_0x532557['id'];_0x5965f9?this[_0x10a8('0xaa')](_0x5965f9,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x46a122,_0xc6b8bf)):(this[_0x10a8('0x1d')]({'id':_0x680e3f,'type':_0x10a8('0x11')+_0x8d178d,'data':_0x19ba89,'createdAt':new Date(),'authorId':_0x1174a5,'attributes':_0x44f5a5}),this['_addSuggestionMarker'](_0x10a8('0x11')+_0x8d178d,_0x680e3f,_0x1174a5,this[_0x10a8('0xd7')]['createRange'](_0x46a122,_0xc6b8bf)));}[_0x10a8('0x96')](_0x354dc4,_0x46250f,_0xced70f=[],_0x3b0bae=null,_0x733f99={}){_0x46250f['formatGroupId']||(_0x46250f[_0x10a8('0x53')]=_0x46250f[_0x10a8('0x135')]);const _0x2a8436=_0x354dc4[0x0];_0x46250f[_0x10a8('0x98')]=_0x2a8436['is'](_0x10a8('0x36')),_0x3b0bae=_0x3b0bae||Mt(_0x46250f);const _0x13d25b=_0xced70f[_0x10a8('0xc7')](_0x5de694=>Nt(_0x5de694,this['_model'])),_0x27142a=_0x2a8436['is'](_0x10a8('0x36'))?_0x354dc4:_0x354dc4['map'](_0x32c3b5=>Nt(_0x32c3b5,this[_0x10a8('0xd7')]));if(!0x1===this['_trackFormatChanges']){const _0x3fd71f=this[_0x10a8('0x63')]['getSuggestionCallback'](_0x10a8('0x8e'),_0x3b0bae,_0x10a8('0x4c'));return void this['forceDefaultExecution'](()=>_0x3fd71f(_0x27142a,_0x46250f,_0x733f99));}_0x13d25b['push'](..._0x27142a);let _0x354700=!0x0;for(const _0x180f1b of _0x13d25b)if(!this['_rangeIsInLocalUserInsertion'](_0x180f1b)){_0x354700=!0x1;break;}if(_0x354700){const _0x28d5de=this['_suggestionFactory']['getSuggestionCallback'](_0x10a8('0x8e'),_0x3b0bae,_0x10a8('0x4c'));return void this[_0x10a8('0x74')](()=>_0x28d5de(_0x27142a,_0x46250f,_0x733f99));}const _0x5a262d=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'];for(const _0x48c86e of this[_0x10a8('0xeb')]()){if(_0x48c86e[_0x10a8('0x84')]['id']!=_0x5a262d['id'])continue;if('formatBlock'!=_0x48c86e[_0x10a8('0xae')]||_0x48c86e[_0x10a8('0x51')][_0x10a8('0x53')]!=_0x46250f[_0x10a8('0x53')])continue;const _0xdf105f=_0x48c86e[_0x10a8('0x72')]==_0x3b0bae;for(let _0x1d59bd=0x0;_0x1d59bd<_0x27142a['length'];_0x1d59bd++){const _0x26fddf=_0x27142a[_0x1d59bd];for(const _0x4c1b1f of _0x48c86e[_0x10a8('0x7d')]()){const _0x5cc566=_0x4c1b1f[_0x10a8('0x127')]();if(_0x26fddf[_0x10a8('0x137')](_0x5cc566)){_0xdf105f?(_0x27142a[_0x10a8('0x129')](_0x1d59bd,0x1),_0x1d59bd--):_0x48c86e['removeMarker'](_0x4c1b1f[_0x10a8('0x39')]);break;}}}}if(0x0==_0x27142a[_0x10a8('0xe0')])return;const _0x1d2c1c=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0x8e'),_0x3b0bae,_0x10a8('0x60'));for(const _0x53366b of this[_0x10a8('0xeb')]())if(_0x53366b[_0x10a8('0x84')]['id']==_0x5a262d['id']&&_0x10a8('0x8e')==_0x53366b[_0x10a8('0xae')]&&_0x53366b['data'][_0x10a8('0x53')]==_0x46250f[_0x10a8('0x53')]&&_0x53366b['subType']==_0x3b0bae&&(_0x1d2c1c(_0x53366b['getRanges'](),_0x27142a)||_0x1d2c1c(_0x27142a,_0x53366b['getRanges']()))){for(const _0x3f2450 of _0x27142a)_0x53366b[_0x10a8('0x5d')](_0x3f2450);return _0x53366b;}const _0x17d729=_0x57911e(),_0x5c9818=_0x5a262d['id'],_0x5536ef=_0x10a8('0x11')+_0x3b0bae,_0x3fa18d=this[_0x10a8('0x1d')]({'id':_0x17d729,'type':_0x5536ef,'data':_0x46250f,'createdAt':new Date(),'authorId':_0x5c9818,'attributes':_0x733f99});for(const _0x2b805d of _0x27142a)this[_0x10a8('0x19')](_0x5536ef,_0x17d729,_0x5c9818,_0x2b805d,_0x2ac191[_0x10a8('0x11d')]());return _0x3fa18d;}['markDeletion'](_0x4e8c4d,_0x56ee8f=null,_0x3b6a07={}){if(_0x4e8c4d[_0x10a8('0xc4')])return null;const _0x93a77=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0x3b7255=new _0x1ee699(_0x4e8c4d[_0x10a8('0xd3')],_0x4e8c4d[_0x10a8('0xa9')]);for(const {suggestion:_0x3255c4,meta:_0xc01548}of this[_0x10a8('0xa')](_0x3b7255,_0x10a8('0xb2')))if(_0xc01548[_0x10a8('0x13')]&&!_0xc01548[_0x10a8('0x4')]){if(_0x3255c4['isMultiRange']){const _0x13cc74=_0x3255c4[_0x10a8('0x42')]()['filter'](_0x313877=>'$graveyard'!=_0x313877['root'][_0x10a8('0x132')]);_0x13cc74[_0x10a8('0x8a')](_0x508871=>_0x3b7255['containsRange'](_0x508871,!0x0))&&_0x3255c4['discard']();if(_0x13cc74[_0x10a8('0x5c')](_0x30c882=>_0x30c882['containsRange'](_0x3b7255,!0x0))){const _0xd5277d=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0xab'),_0x56ee8f,_0x10a8('0x4c'));return this[_0x10a8('0x74')](()=>_0xd5277d([_0x3b7255],null,_0x3b6a07)),null;}}else{const _0x229f4b=_0x3b7255[_0x10a8('0x82')](_0x3255c4[_0x10a8('0x59')]());_0x3255c4[_0x10a8('0x6d')]([_0x229f4b],null,_0x3b6a07);}}if(_0x3b7255[_0x10a8('0xdc')](),_0x3b7255[_0x10a8('0xc4')]||_0x10a8('0x31')==_0x3b7255[_0x10a8('0x106')][_0x10a8('0x132')])return null;let _0x184b24=null,_0x25a247=_0x3b7255[_0x10a8('0xd3')],_0x4415ea=_0x3b7255[_0x10a8('0xa9')];for(const {suggestion:_0x493a93,meta:_0x31c35b}of this[_0x10a8('0xa')](_0x3b7255,_0x10a8('0xab')))if(_0x31c35b[_0x10a8('0x13')]){if(_0x493a93[_0x10a8('0x126')]){let _0xc4b65e=!0x0;for(const _0x6a5f93 of _0x493a93[_0x10a8('0x42')]()){if(_0x6a5f93[_0x10a8('0x17')](_0x3b7255,!0x0))return _0x493a93;_0x3b7255[_0x10a8('0x17')](_0x6a5f93)||(_0xc4b65e=!0x1);}_0xc4b65e&&_0x493a93[_0x10a8('0xdb')]();}else{const _0x4a2c09=_0x493a93['getFirstRange']();if(_0x4a2c09[_0x10a8('0x17')](_0x3b7255,!0x0))return _0x493a93;_0x25a247=_0x25a247['isBefore'](_0x4a2c09[_0x10a8('0xd3')])?_0x25a247:_0x4a2c09[_0x10a8('0xd3')],_0x4415ea=_0x4415ea[_0x10a8('0x4f')](_0x4a2c09['end'])?_0x4415ea:_0x4a2c09['end'],_0x184b24?_0x4a2c09[_0x10a8('0xd3')][_0x10a8('0x66')](_0x184b24[_0x10a8('0x59')]()[_0x10a8('0xd3')])?(_0x184b24['removeMarkers'](),_0x184b24=_0x493a93):_0x493a93['removeMarkers']():_0x184b24=_0x493a93;}}if(_0x184b24)return this[_0x10a8('0xaa')](_0x184b24,this['_model'][_0x10a8('0x23')](_0x25a247,_0x4415ea)),_0x184b24;{const _0x878365=_0x57911e(),_0x4992d4=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x25a247,_0x4415ea),_0x5d1384=_0x93a77['id'],_0x5a124f=_0x56ee8f?_0x10a8('0x6e')+_0x56ee8f:'deletion',_0x181d38=this['_setSuggestionData']({'id':_0x878365,'type':_0x5a124f,'createdAt':new Date(),'authorId':_0x5d1384,'attributes':_0x3b6a07});return this[_0x10a8('0x19')](_0x5a124f,_0x878365,_0x5d1384,_0x4992d4),_0x181d38;}}[_0x10a8('0x78')](_0x326398,_0x33bea3=_0x10a8('0x29'),_0x2cb98b={}){const _0x2efd8a=this['editor']['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))['me'],_0x4c046b=_0x326398['map'](_0x102ed3=>new _0x1ee699(_0x102ed3[_0x10a8('0xd3')],_0x102ed3[_0x10a8('0xa9')])),_0x46e848=new Set();for(const _0x3ee6c5 of _0x4c046b)for(const {suggestion:_0x2de142,meta:_0x3c1a3a}of this['_findSuggestions'](_0x3ee6c5,_0x10a8('0xb2')))_0x3c1a3a['isOwn']&&!_0x3c1a3a[_0x10a8('0x4')]&&_0x46e848['add'](_0x2de142);for(const _0x4d2156 of _0x46e848)if(_0x4d2156['isMultiRange']){const _0x2b2acb=_0x4d2156[_0x10a8('0x42')]();(!_0x4d2156['attributes']||!_0x4d2156[_0x10a8('0x128')][_0x10a8('0x54')])&&(_0x2b2acb['every'](_0x1a6650=>_0x4c046b[_0x10a8('0x5c')](_0x26a2dd=>_0x26a2dd[_0x10a8('0x17')](_0x1a6650,!0x0)))&&_0x4d2156[_0x10a8('0xdb')]());if(_0x4c046b[_0x10a8('0x8a')](_0x4f668d=>_0x2b2acb[_0x10a8('0x5c')](_0x33af2e=>_0x33af2e[_0x10a8('0x17')](_0x4f668d,!0x0)))){const _0x4dffdc=this[_0x10a8('0x63')][_0x10a8('0xc5')]('deletion',_0x33bea3,_0x10a8('0x4c'));return this[_0x10a8('0x74')](()=>_0x4dffdc(_0x326398,null,_0x2cb98b)),null;}}else{const _0x117dde=_0x4d2156[_0x10a8('0x59')]();_0x4c046b['some'](_0x152389=>_0x152389['containsRange'](_0x117dde,!0x0))&&_0x4d2156['discard']();if(_0x4c046b['every'](_0x145269=>_0x117dde[_0x10a8('0x17')](_0x145269,!0x0))){const _0x4cb842=this['_suggestionFactory'][_0x10a8('0xc5')](_0x10a8('0xab'),_0x33bea3,'accept');return this[_0x10a8('0x74')](()=>_0x4cb842(_0x4c046b,null,_0x2cb98b)),null;}}const _0x3f5294=this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x10a8('0xab'),_0x33bea3,_0x10a8('0x60'));let _0x35ceea=null;for(const _0x3fdf4b of this[_0x10a8('0xeb')]())if(_0x3fdf4b[_0x10a8('0x84')]['id']==_0x2efd8a['id']&&_0x3fdf4b['isInContent']&&_0x10a8('0xab')==_0x3fdf4b[_0x10a8('0xae')]&&_0x3fdf4b[_0x10a8('0x72')]==_0x33bea3&&(_0x3f5294(_0x3fdf4b['getRanges'](),_0x4c046b)||_0x3f5294(_0x4c046b,_0x3fdf4b[_0x10a8('0x42')]()))){if(_0x35ceea){if(_0x3fdf4b[_0x10a8('0x65')]&&_0x3fdf4b[_0x10a8('0x65')]['length'])continue;for(const _0x3040b9 of _0x3fdf4b[_0x10a8('0x42')]())_0x35ceea[_0x10a8('0xa5')](_0x3040b9)||_0x35ceea[_0x10a8('0x5d')](_0x3040b9);_0x3fdf4b[_0x10a8('0xbb')]();}else{_0x35ceea=_0x3fdf4b;for(const _0x2e7052 of _0x4c046b)_0x3fdf4b['isIntersectingWithRange'](_0x2e7052)||_0x3fdf4b[_0x10a8('0x5d')](_0x2e7052);}}if(_0x35ceea)return _0x35ceea;_0x46e848[_0x10a8('0x11c')]();for(const _0x47c43f of _0x4c046b)for(const {suggestion:_0x5e3c9a,meta:_0x292071}of this['_findSuggestions'](_0x47c43f,'deletion'))_0x292071['isOwn']&&_0x46e848[_0x10a8('0x11e')](_0x5e3c9a);for(const _0x4b705c of _0x46e848){const _0x2b6c5d=_0x4b705c[_0x10a8('0x42')]();if(!_0x2cb98b||!_0x2cb98b[_0x10a8('0x54')]){if(_0x4c046b['every'](_0x3109e2=>_0x2b6c5d[_0x10a8('0x5c')](_0x59aa15=>_0x59aa15['containsRange'](_0x3109e2,!0x0))))return _0x4b705c;}(!_0x4b705c[_0x10a8('0x128')]||!_0x4b705c[_0x10a8('0x128')]['skipNestingCheck'])&&(_0x2b6c5d[_0x10a8('0x8a')](_0x4e23fb=>_0x4c046b[_0x10a8('0x5c')](_0xa34875=>_0xa34875['containsRange'](_0x4e23fb,!0x0)))&&_0x4b705c['discard']());}const _0x2f8a37=_0x57911e(),_0x559279=_0x2efd8a['id'],_0x53e357=_0x10a8('0x6e')+_0x33bea3,_0xb5dd52=this[_0x10a8('0x1d')]({'id':_0x2f8a37,'type':_0x53e357,'createdAt':new Date(),'authorId':_0x559279,'attributes':_0x2cb98b});for(const _0x25d0d2 of _0x4c046b)_0x25d0d2[_0x10a8('0xdc')](),_0x25d0d2[_0x10a8('0xc4')]||_0x10a8('0x31')==_0x25d0d2[_0x10a8('0x106')][_0x10a8('0x132')]||this['_addSuggestionMarker'](_0x53e357,_0x2f8a37,_0x559279,_0x25d0d2,_0x2ac191[_0x10a8('0x11d')]());return _0xb5dd52;}['_setSuggestionRange'](_0x533295,_0x24025d){const _0x5cd8fe=_0x533295[_0x10a8('0x12c')]();this[_0x10a8('0xd7')][_0x10a8('0x33')](_0x5b146f=>{_0x5b146f[_0x10a8('0xfb')](_0x5cd8fe,{'range':_0x24025d});});}[_0x10a8('0x2d')](_0xbe6f3f){const _0x25fd4a=_0xbe6f3f['id'],_0x91b7a5=this[_0x10a8('0xf1')][_0x10a8('0x26')]['get'](_0x10a8('0xe4'));this['_commentsRepository']['hasCommentThread'](_0x25fd4a)||this[_0x10a8('0x7e')]['addCommentThread']({'channelId':_0x91b7a5,'threadId':_0x25fd4a});const _0x46dd06=this[_0x10a8('0x7e')]['getCommentThread'](_0x25fd4a);_0x46dd06[_0x10a8('0x99')](_0x10a8('0xf3')),_0x46dd06[_0x10a8('0xf3')]=!0x1,_0xbe6f3f[_0x10a8('0x65')]=_0x46dd06;}[_0x10a8('0x86')](_0xbea4d7,_0x996c5c,_0x562b1f,_0x330a54){if(_0xbea4d7[_0x10a8('0xae')]!=_0x996c5c||_0xbea4d7['subType']!=_0x562b1f||_0xbea4d7[_0x10a8('0x110')]['id']!=_0x330a54)throw this[_0x10a8('0xf1')]['enableReadOnlyMode'](_0x10a8('0xf8')),new _0x57d3ea(_0x10a8('0xf8'),this);}[_0x10a8('0x32')](_0x575637,_0x66b603){const _0x54c568=_0x575637[_0x10a8('0x59')]();if(_0x66b603[_0x10a8('0x137')](_0x54c568))_0x575637[_0x10a8('0xbb')]();else{if(_0x54c568[_0x10a8('0x17')](_0x66b603)){const _0x45b7d7=this['_model']['createPositionAt'](_0x66b603[_0x10a8('0xd3')]['nodeBefore'],_0x10a8('0xa9'));this[_0x10a8('0xaa')](_0x575637,this[_0x10a8('0xd7')]['createRange'](_0x54c568[_0x10a8('0xd3')],_0x45b7d7));const _0x28f7fd=_0x57911e(),_0x32502c=_0x575637[_0x10a8('0x110')]['id'],_0x2184c5=_0x575637[_0x10a8('0xae')]+':'+_0x575637[_0x10a8('0x72')];this[_0x10a8('0x1d')]({'id':_0x28f7fd,'type':_0x2184c5,'createdAt':new Date(),'authorId':_0x32502c,'data':_0x575637[_0x10a8('0x51')],'attributes':_0x575637[_0x10a8('0x128')]});const _0x46e845=this[_0x10a8('0xd7')][_0x10a8('0xec')](_0x66b603[_0x10a8('0xa9')][_0x10a8('0x1')],_0x10a8('0x45')),_0x5b8297=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x46e845,_0x54c568[_0x10a8('0xa9')]);this[_0x10a8('0x19')](_0x2184c5,_0x28f7fd,_0x32502c,_0x5b8297);}else{if(_0x54c568[_0x10a8('0xd1')](_0x66b603[_0x10a8('0xd3')])){const _0x33714=this[_0x10a8('0xd7')][_0x10a8('0xec')](_0x66b603[_0x10a8('0xd3')][_0x10a8('0x101')],_0x10a8('0xa9'));this[_0x10a8('0xaa')](_0x575637,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x54c568['start'],_0x33714));}else{const _0x1c9c2c=this['_model'][_0x10a8('0xec')](_0x66b603[_0x10a8('0xa9')]['parent'],'after');this[_0x10a8('0xaa')](_0x575637,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x1c9c2c,_0x54c568['end']));}}}}[_0x10a8('0xd9')](_0x736491){for(const {suggestion:_0x3533da,meta:_0x5d0b1f}of this[_0x10a8('0xa')](_0x736491,_0x10a8('0xb2'))){if(!_0x5d0b1f[_0x10a8('0x13')])continue;const _0x1f8a31=_0x3533da[_0x10a8('0x42')]();for(const _0x47600c of _0x1f8a31)if(!_0x736491['getDifference'](_0x47600c)[_0x10a8('0xe0')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43f2cf){const _0x3a9785=this[_0x10a8('0xf1')]['plugins'][_0x10a8('0x7a')](_0x10a8('0xc6'))[_0x10a8('0x75')](_0x43f2cf);if(!_0x3a9785)throw new _0x57d3ea('track-changes-user-not-found',this);return _0x3a9785;}[_0x10a8('0xba')](_0x2f1be9){const _0x4cd323=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0xc6')),_0x57068a=_0x1dda37(_0x10a8('0x10c')+_0x2f1be9),_0x2b57d0=_0x4cd323[_0x10a8('0x75')](_0x57068a);return _0x2b57d0||_0x4cd323['addUser']({'id':_0x57068a,'name':_0x2f1be9});}['_createSuggestion'](_0x15e9cc,_0xc147fe,_0x34a9ed,_0xd5c622,_0x22424b){const _0x51dfde=this[_0x10a8('0xf0')](_0xd5c622),_0x55c81c=this[_0x10a8('0x63')][_0x10a8('0xf6')](_0x15e9cc,_0xc147fe,_0x34a9ed,_0x51dfde,_0x22424b,_0x30a041=>this[_0x10a8('0x113')](_0x34a9ed,{'attributes':_0x30a041}));return this[_0x10a8('0xa7')](_0x55c81c,_0x10a8('0x4c'),()=>{this[_0x10a8('0x113')](_0x34a9ed,{'state':_0x10a8('0xc2')});},{'priority':_0x10a8('0x116')}),this[_0x10a8('0xa7')](_0x55c81c,_0x10a8('0xdb'),()=>{this[_0x10a8('0x113')](_0x34a9ed,{'state':'rejected'});},{'priority':_0x10a8('0x116')}),this['_suggestions'][_0x10a8('0x120')](_0x34a9ed,_0x55c81c),this['_suggestionState'][_0x10a8('0x120')](_0x55c81c,_0x10a8('0x25')),_0x55c81c;}['_splitMarkerName'](_0x2d29b7){const _0x45ed98=_0x2d29b7[_0x10a8('0x3a')](':');return{'group':_0x45ed98[0x0],'type':_0x45ed98[0x1],'subType':_0x45ed98[_0x10a8('0xe0')]>=0x5?_0x45ed98[0x2]:null,'id':_0x45ed98[_0x10a8('0xe0')]<0x5?_0x45ed98[0x2]:_0x45ed98[0x3],'authorId':_0x45ed98[_0x10a8('0xe0')]<0x5?_0x45ed98[0x3]:_0x45ed98[0x4],'markerCount':0x6==_0x45ed98[_0x10a8('0xe0')]?_0x45ed98[0x5]:null};}['_breakSuggestionMarker'](_0x2935ef,_0xeed2ce,_0x2cf5f7){const _0x3fc568=_0x2935ef['getFirstRange'](),_0x4b2e20=_0x3fc568[_0x10a8('0xd3')],_0x265998=_0x3fc568[_0x10a8('0xa9')];this[_0x10a8('0xaa')](_0x2935ef,this[_0x10a8('0xd7')]['createRange'](_0x4b2e20,_0xeed2ce));const _0x1d8922=_0x57911e(),_0x5769da=_0x2935ef['creator']['id'],_0x36ab7d=_0x2935ef[_0x10a8('0xae')]+(_0x2935ef['subType']?':'+_0x2935ef[_0x10a8('0x72')]:'');this['_setSuggestionData']({'id':_0x1d8922,'type':_0x36ab7d,'createdAt':new Date(),'authorId':_0x5769da,'originalSuggestionId':_0x2935ef['id'],'attributes':_0x2935ef[_0x10a8('0x128')],'data':_0x2935ef[_0x10a8('0x51')]}),_0x10a8('0x8e')==_0x2935ef[_0x10a8('0xae')]&&(_0x2cf5f7=this['_model'][_0x10a8('0x124')](_0x2cf5f7['parent'])),this[_0x10a8('0x19')](_0x36ab7d,_0x1d8922,_0x5769da,this['_model'][_0x10a8('0x23')](_0x2cf5f7,_0x265998));}[_0x10a8('0xa')](_0x22b1f1,_0x3ede6d=null){const _0x11f4d6=[],_0x405102=this['_model'][_0x10a8('0xcc')],_0x39088b=this[_0x10a8('0xf1')][_0x10a8('0x9d')]['get']('Users')['me'];for(const _0x910241 of this['getSuggestions']())if(_0x910241['isInContent']&&(!_0x3ede6d||_0x910241['type']==_0x3ede6d))for(const _0x299e16 of _0x910241[_0x10a8('0x42')]()){const _0xea1b9f=_0x22b1f1['start'][_0x10a8('0x137')](_0x299e16[_0x10a8('0xa9')])||_0x22b1f1[_0x10a8('0xa9')][_0x10a8('0x137')](_0x299e16[_0x10a8('0xd3')]);if(_0xea1b9f||_0x22b1f1[_0x10a8('0x82')](_0x299e16)){const _0x2fee4a=_0x22b1f1[_0x10a8('0x17')](_0x299e16)&&Ct(_0x405102,_0x299e16['start'],_0x22b1f1),_0x543c4f=_0x299e16[_0x10a8('0x17')](_0x22b1f1)&&Ct(_0x405102,_0x22b1f1[_0x10a8('0xd3')],_0x299e16);_0x11f4d6['push']({'suggestion':_0x910241,'meta':{'isOwn':_0x39088b==_0x910241['author'],'isNextTo':_0xea1b9f,'isInsideObject':_0x2fee4a,'containsRangeInObject':_0x543c4f}});break;}}return _0x11f4d6;}[_0x10a8('0x19')](_0xb35bce,_0x2c5783,_0x285053,_0x1ef897,_0x4772f5=null){this[_0x10a8('0xd7')][_0x10a8('0x33')](_0x4b13fa=>{let _0x200ed5=_0x10a8('0x9f')+_0xb35bce+':'+_0x2c5783+':'+_0x285053;_0x4772f5&&(_0x200ed5=_0x200ed5+':'+_0x4772f5),_0x4b13fa[_0x10a8('0x27')](_0x200ed5,{'range':_0x1ef897,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x10a8('0xb9')](_0x2cdf4d){const _0x54c98a=_0x2cdf4d[_0x10a8('0xde')],_0x39fa92=_0x2cdf4d[_0x10a8('0x5b')];_0x2cdf4d[_0x10a8('0xde')]=null,null!=_0x54c98a&&(_0x54c98a[_0x10a8('0x5b')]=null),_0x2cdf4d['next']=null,null!=_0x39fa92&&(_0x39fa92[_0x10a8('0xde')]=null),_0x10a8('0x107')==this[_0x10a8('0xce')][_0x10a8('0x7a')](_0x2cdf4d)&&(this[_0x10a8('0xce')][_0x10a8('0x120')](_0x2cdf4d,_0x10a8('0x8c')),this['fire'](_0x10a8('0x134'),_0x2cdf4d,_0x54c98a,_0x39fa92));}[_0x10a8('0x1d')](_0x441e7e){const _0x1956a7=_0x441e7e['id'],_0x361503=this['addSuggestionData'](_0x441e7e);if(this[_0x10a8('0x47')]&&this['_adapter']['addSuggestion']){const _0x32208b=this[_0x10a8('0xf1')]['plugins']['get'](_0x10a8('0x94')),_0x5f036e=_0x361503[_0x10a8('0x95')],_0x575de9=_0x361503[_0x10a8('0x72')]?_0x361503['type']+':'+_0x361503[_0x10a8('0x72')]:_0x361503[_0x10a8('0xae')],_0x26daf2=this[_0x10a8('0xf1')][_0x10a8('0x3d')],_0x24e7bf=_0x32208b[_0x10a8('0x11e')](_0x422247(_0x26daf2,'PENDING_ACTION_SUGGESTION')),_0xc181a3={'id':_0x1956a7,'type':_0x575de9,'hasComments':_0x5f036e,'data':_0x441e7e['data']||null,'originalSuggestionId':_0x441e7e[_0x10a8('0xf')]||null,'attributes':_0x361503['attributes']};this['_adapter'][_0x10a8('0xc9')](_0xc181a3)[_0x10a8('0x109')](_0x443b56=>{_0x361503[_0x10a8('0xc0')]=!0x0,_0x32208b[_0x10a8('0xaf')](_0x24e7bf),_0x443b56&&_0x443b56['createdAt']&&(this['_suggestions'][_0x10a8('0x7a')](_0x1956a7)[_0x10a8('0x10b')]=_0x443b56[_0x10a8('0x10b')]);})[_0x10a8('0x11f')](_0x48d308=>{throw _0xbfee5c(_0x10a8('0x37')),this[_0x10a8('0xf1')][_0x10a8('0x115')][_0x10a8('0xe7')]({'isUndoable':!0x1},()=>{_0x361503[_0x10a8('0xdb')]();}),_0x361503[_0x10a8('0xc')](),this['_suggestions'][_0x10a8('0x9b')](_0x361503['id']),this[_0x10a8('0xce')][_0x10a8('0x9b')](_0x361503),_0x48d308;});}return _0x361503;}[_0x10a8('0x113')](_0x29ca01,_0xfee8d3){const _0x479339=this[_0x10a8('0xf1')][_0x10a8('0x9d')][_0x10a8('0x7a')](_0x10a8('0x94')),_0x74d4a3=this['_suggestions'][_0x10a8('0x7a')](_0x29ca01);if(this[_0x10a8('0x47')]&&this[_0x10a8('0x47')][_0x10a8('0x2f')]){if(_0x74d4a3[_0x10a8('0xc0')]){const _0x599121=_0x479339[_0x10a8('0x11e')](_0x422247(this['editor'][_0x10a8('0x3d')],'PENDING_ACTION_SUGGESTION'));this[_0x10a8('0x47')][_0x10a8('0x2f')](_0x29ca01,_0xfee8d3)['then'](()=>{_0x479339[_0x10a8('0xaf')](_0x599121);});}else _0x74d4a3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29ca01,_0xfee8d3);});}}['_getSuggestionData'](_0x12a229){if(!this[_0x10a8('0x47')]||!this['_adapter'][_0x10a8('0x67')])throw new _0x57d3ea(_0x10a8('0xa6'),this);return this[_0x10a8('0x47')]['getSuggestion'](_0x12a229);}[_0x10a8('0x8b')](_0x345427){const {id:_0x3f5911,type:_0x3546a2,subType:_0x18fe6b,authorId:_0x388aa0}=this[_0x10a8('0x10')](_0x345427),_0x2d3172=this[_0x10a8('0x77')][_0x10a8('0x7a')](_0x3f5911)||this['_createSuggestion'](_0x3546a2,_0x18fe6b,_0x3f5911,_0x388aa0);switch(this['_checkSuggestionCorrectness'](_0x2d3172,_0x3546a2,_0x18fe6b,_0x388aa0),this['_suggestionState'][_0x10a8('0x7a')](_0x2d3172)){case _0x10a8('0x25'):this['_getSuggestionData'](_0x3f5911)[_0x10a8('0x109')](_0x535a06=>{let _0x20b99d=Promise[_0x10a8('0xcb')]();_0x535a06[_0x10a8('0x95')]&&(_0x20b99d=this['_commentsRepository'][_0x10a8('0x62')]({'channelId':this['editor'][_0x10a8('0x26')][_0x10a8('0x7a')](_0x10a8('0xe4')),'threadId':_0x3f5911})),_0x20b99d[_0x10a8('0x109')](()=>{this[_0x10a8('0x5e')](_0x535a06)[_0x10a8('0xc0')]=!0x0;});}),this[_0x10a8('0xce')][_0x10a8('0x120')](_0x2d3172,'markerReady');break;case _0x10a8('0x8c'):this[_0x10a8('0x113')](_0x3f5911,{'state':_0x10a8('0xee')});case _0x10a8('0x43'):this[_0x10a8('0xce')][_0x10a8('0x120')](_0x2d3172,'ready'),this['fire']('suggestionLoaded',_0x2d3172);break;case'ready':this[_0x10a8('0x12b')](_0x10a8('0x4b'),_0x2d3172);}return _0x2d3172[_0x10a8('0xf4')](_0x345427),_0x2d3172;}[_0x10a8('0xda')](_0x56120){const _0x39d08c=Array[_0x10a8('0x111')](_0x56120)[_0x10a8('0xb5')](_0x5886ab=>!_0x5886ab[_0x10a8('0x126')]),_0x1e6a27=this[_0x10a8('0xeb')]({'skipNotAttached':!0x0})[_0x10a8('0xb5')](_0x4dd708=>!_0x4dd708['isMultiRange']),_0x3a3637=_0x1e6a27['filter'](_0x337335=>!_0x56120[_0x10a8('0x6f')](_0x337335)),_0x387603=new Map(_0x1e6a27[_0x10a8('0xc7')](_0x3ecf19=>[_0x3ecf19,this['_suggestionFactory'][_0x10a8('0xc5')](_0x3ecf19['type'],_0x3ecf19[_0x10a8('0x72')],'chain')])),_0x1c6b5b=new Map(_0x1e6a27['map'](_0x355661=>[_0x355661,_0x355661[_0x10a8('0x59')]()])),_0x37f839=new Set(),_0x28b081=new Set();for(let _0x538419=0x0;_0x538419<_0x39d08c['length'];_0x538419++)_0x2762a3(_0x39d08c[_0x538419],_0x39d08c,_0x538419+0x1);for(let _0x380457=0x0;_0x380457<_0x39d08c[_0x10a8('0xe0')];_0x380457++)_0x2762a3(_0x39d08c[_0x380457],_0x3a3637,0x0);for(let _0x1b9fb7=0x0;_0x1b9fb7<_0x39d08c[_0x10a8('0xe0')];_0x1b9fb7++){const _0x243a15=_0x39d08c[_0x1b9fb7];!_0x28b081[_0x10a8('0x6f')](_0x243a15)&&_0x243a15[_0x10a8('0xde')]&&(_0x243a15['previous'][_0x10a8('0x5b')]===_0x243a15&&(_0x243a15[_0x10a8('0xde')][_0x10a8('0x5b')]=null),_0x243a15[_0x10a8('0xde')]=null),!_0x37f839[_0x10a8('0x6f')](_0x243a15)&&_0x243a15[_0x10a8('0x5b')]&&(_0x243a15[_0x10a8('0x5b')]['previous']===_0x243a15&&(_0x243a15['next'][_0x10a8('0xde')]=null),_0x243a15['next']=null);}function _0x2762a3(_0x12d0e2,_0x2dd50d,_0x3d4b16){for(let _0x134321=_0x3d4b16;_0x134321<_0x2dd50d[_0x10a8('0xe0')];_0x134321++){const _0x50d834=_0x251707(_0x12d0e2,_0x2dd50d[_0x134321]);_0x50d834&&(_0x50d834[0x0][_0x10a8('0x5b')]=_0x50d834[0x1],_0x50d834[0x1][_0x10a8('0xde')]=_0x50d834[0x0],_0x37f839[_0x10a8('0x11e')](_0x50d834[0x0]),_0x28b081['add'](_0x50d834[0x1]));}}function _0x251707(_0x5d37a0,_0x3d9085){if(_0x5d37a0[_0x10a8('0x84')]['id']!==_0x3d9085[_0x10a8('0x84')]['id'])return null;const _0x4beb93=_0x387603[_0x10a8('0x7a')](_0x5d37a0)(_0x5d37a0,_0x3d9085,_0x1c6b5b['get'](_0x5d37a0),_0x1c6b5b[_0x10a8('0x7a')](_0x3d9085));if(!_0x4beb93)return null;return _0x387603[_0x10a8('0x7a')](_0x3d9085)(_0x5d37a0,_0x3d9085,_0x1c6b5b[_0x10a8('0x7a')](_0x5d37a0),_0x1c6b5b[_0x10a8('0x7a')](_0x3d9085))?_0x4beb93[0x1][_0x10a8('0x65')]&&_0x4beb93[0x1][_0x10a8('0x65')]['length']?null:_0x4beb93:null;}}[_0x10a8('0x2a')](_0xc3411c){const _0x463d45=Array[_0x10a8('0x111')](_0xc3411c),_0x5497e4=this[_0x10a8('0xeb')]({'skipNotAttached':!0x0}),_0x7efc1f=_0x5497e4[_0x10a8('0xb5')](_0x8ca259=>!_0xc3411c['has'](_0x8ca259)),_0x4864f8=new Map(_0x463d45[_0x10a8('0xc7')](_0x29d6cc=>[_0x29d6cc,this[_0x10a8('0x63')][_0x10a8('0xc5')](_0x29d6cc[_0x10a8('0xae')],_0x29d6cc[_0x10a8('0x72')],_0x10a8('0x60'))])),_0x236428=new Map(_0x5497e4[_0x10a8('0xc7')](_0x57d56c=>[_0x57d56c,_0x57d56c[_0x10a8('0x42')]()]));for(let _0x3c2c94=0x0;_0x3c2c94<_0x463d45[_0x10a8('0xe0')];_0x3c2c94++){if(_0x33cdc3(this,_0x463d45[_0x3c2c94],_0x463d45,_0x3c2c94+0x1))return!0x0;}for(let _0x15cee0=0x0;_0x15cee0<_0x463d45[_0x10a8('0xe0')];_0x15cee0++){if(_0x33cdc3(this,_0x463d45[_0x15cee0],_0x7efc1f,0x0))return!0x0;}return!0x1;function _0x33cdc3(_0x116e3e,_0x326386,_0x53233b,_0x5735b7){for(let _0x2941d4=_0x5735b7;_0x2941d4<_0x53233b['length'];_0x2941d4++){const _0x55aa46=_0x53233b[_0x2941d4];if(_0x55aa46[_0x10a8('0xae')]!==_0x326386[_0x10a8('0xae')]||_0x55aa46[_0x10a8('0x84')]['id']!==_0x326386[_0x10a8('0x84')]['id']||_0x55aa46[_0x10a8('0x72')]!==_0x326386[_0x10a8('0x72')])continue;const _0x187b8f=_0x4864f8[_0x10a8('0x7a')](_0x326386),_0x48d803=_0x236428['get'](_0x326386),_0x5be8df=_0x236428['get'](_0x55aa46),_0x1688c9=_0x326386[_0x10a8('0x65')]&&_0x326386[_0x10a8('0x65')][_0x10a8('0xe0')],_0x426214=_0x55aa46[_0x10a8('0x65')]&&_0x55aa46[_0x10a8('0x65')][_0x10a8('0xe0')];if(!_0x1688c9&&_0x187b8f(_0x5be8df,_0x48d803))return _0x116e3e[_0x10a8('0xc3')](_0x55aa46,_0x326386),_0x236428['delete'](_0x326386),!0x0;if(!_0x426214&&_0x187b8f(_0x48d803,_0x5be8df))return _0x116e3e[_0x10a8('0xc3')](_0x326386,_0x55aa46),_0x236428[_0x10a8('0x9b')](_0x55aa46),!0x0;}return!0x1;}}[_0x10a8('0xc3')](_0x239980,_0x20f935){if(_0x239980[_0x10a8('0x126')])for(const _0x663835 of _0x20f935[_0x10a8('0x42')]())_0x239980[_0x10a8('0x5d')](_0x663835);else{const _0x4a8dd2=_0x20f935[_0x10a8('0x59')]()[_0x10a8('0xa9')];this['_setSuggestionRange'](_0x239980,this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x239980['getFirstRange']()['start'],_0x4a8dd2));}_0x20f935[_0x10a8('0xbb')]();}}_0x2a95b8(p,_0x3b29d5);class Dt{constructor(_0x13f0e6){this[_0x10a8('0x34')]=_0x13f0e6,this[_0x10a8('0xd7')]=_0x13f0e6[_0x10a8('0x115')],this[_0x10a8('0x58')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x10a8('0x1c')]();}[_0x10a8('0xf6')](_0x1d2401,_0x4f8350,_0xdff6c5,_0x32a977,_0x3af457,_0x23e6bc){return new _0x2ac191(this['_model'],{'type':_0x1d2401,'subType':_0x4f8350,'id':_0xdff6c5,'author':_0x32a977,'creator':_0x32a977,'attributes':_0x3af457,'onAttributesChange':_0x23e6bc,'onAccept':(..._0x29b4f7)=>this['getSuggestionCallback'](_0x1d2401,_0x4f8350,_0x10a8('0x4c'))(..._0x29b4f7),'onDiscard':(..._0x122847)=>this[_0x10a8('0xc5')](_0x1d2401,_0x4f8350,_0x10a8('0xdb'))(..._0x122847)});}[_0x10a8('0x12d')](_0x5d9fb0,_0x11c9b0,_0x4aac2e,_0x12ddd6){const _0xfa5560=_0x5d9fb0+':'+_0x11c9b0+':'+_0x4aac2e;this['_customCallbacks'][_0x10a8('0x120')](_0xfa5560,_0x12ddd6);}[_0x10a8('0xc5')](_0xf1ab93,_0x250cc5,_0x286baa){const _0x2a353d=_0xf1ab93+':'+_0x250cc5+':'+_0x286baa;return this[_0x10a8('0x58')][_0x10a8('0x7a')](_0x2a353d)||this[_0x10a8('0x57')][_0x10a8('0x7a')](_0xf1ab93+':'+_0x286baa);}[_0x10a8('0x1c')](){const _0x163826=()=>{},_0x1b325b=_0x559649=>{_0x559649[_0x10a8('0x97')]((_0x423b42,_0x3512f7)=>_0x423b42[_0x10a8('0xd3')][_0x10a8('0x66')](_0x3512f7[_0x10a8('0xd3')])?0x1:-0x1),this[_0x10a8('0xd7')]['change'](_0x57a7bc=>{for(const _0x17c727 of _0x559649){let _0x154bd4;_0x154bd4=_0x17c727['end']['isAtEnd']&&_0x17c727['end'][_0x10a8('0x1')]==_0x17c727[_0x10a8('0xd3')][_0x10a8('0x1f')]?_0x57a7bc[_0x10a8('0xcf')](_0x17c727['start'][_0x10a8('0x1f')],'on'):_0x57a7bc[_0x10a8('0xcf')](_0x17c727),this[_0x10a8('0xd7')][_0x10a8('0xa2')](_0x154bd4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x20db98=(_0x23ec37,_0x347b75)=>{this[_0x10a8('0xd7')][_0x10a8('0x33')](_0x244709=>{const {commandName:_0x3a26d9,commandParams:_0x3e97de=[]}=_0x347b75,_0x3a04a7=_0x23ec37['map'](_0x1381cc=>(Bt(_0x1381cc)&&(_0x1381cc=this[_0x10a8('0xd7')][_0x10a8('0x23')](_0x1381cc[_0x10a8('0xa9')])),_0x1381cc))[_0x10a8('0xb5')](_0x2d9f0f=>_0x10a8('0x31')!==_0x2d9f0f[_0x10a8('0x106')]['rootName']);if(_0x3a04a7[_0x10a8('0xe0')]<0x1)return;const _0x320a54=Array[_0x10a8('0x111')](this['_model'][_0x10a8('0xb8')][_0x10a8('0xb')]['getRanges']())['map'](_0x236977=>_0x1ee699[_0x10a8('0x7')](_0x236977));_0x244709[_0x10a8('0x22')](_0x3a04a7);for(const _0x22d223 of this[_0x10a8('0x34')][_0x10a8('0x55')][_0x10a8('0x55')]())_0x22d223[_0x10a8('0x18')]();_0x3e97de['push']({'forceDefaultExecution':!0x0}),this[_0x10a8('0x34')][_0x10a8('0x50')](_0x3a26d9,..._0x3e97de);const _0x1f58ad=_0x320a54[_0x10a8('0xb5')](_0x166907=>_0x10a8('0x31')!=_0x166907[_0x10a8('0x106')]['rootName']);_0x1f58ad[_0x10a8('0xe0')]>0x0&&_0x244709[_0x10a8('0x22')](_0x1f58ad);for(const _0x3937a7 of _0x320a54)_0x3937a7['detach']();});},_0x1dc7a0=(_0x4fc9cf,_0x463910)=>0x1==_0x4fc9cf[_0x10a8('0xe0')]&&0x1==_0x463910['length']&&_0x4fc9cf[0x0][_0x10a8('0xa9')][_0x10a8('0x137')](_0x463910[0x0]['start']),_0x1dbb64=(_0x3d940d,_0x3d395f,_0x596a89,_0x251687)=>Rt(_0x3d940d,_0x3d395f,_0x596a89,_0x251687,this[_0x10a8('0xd7')])?[_0x3d940d,_0x3d395f]:Rt(_0x3d395f,_0x3d940d,_0x251687,_0x596a89,this[_0x10a8('0xd7')])?[_0x3d395f,_0x3d940d]:null;this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0x15'),_0x163826),this[_0x10a8('0x57')][_0x10a8('0x120')]('insertion:discard',_0x1b325b),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0x90'),_0x1dc7a0),this[_0x10a8('0x57')]['set'](_0x10a8('0x12f'),_0x1dbb64),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0xb0'),_0x1b325b),this['_defaultCallbacks']['set'](_0x10a8('0x35'),_0x163826),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0x20'),_0x1dc7a0),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0xa3'),_0x1dbb64),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0x2e'),_0x20db98),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0xbc'),_0x163826),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0xfa'),_0x1dc7a0),this[_0x10a8('0x57')]['set']('formatInline:chain',_0x163826),this[_0x10a8('0x57')][_0x10a8('0x120')](_0x10a8('0xd6'),_0x20db98),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0xb7'),_0x163826),this['_defaultCallbacks'][_0x10a8('0x120')](_0x10a8('0x87'),_0x1dc7a0),this[_0x10a8('0x57')][_0x10a8('0x120')]('formatBlock:chain',_0x163826);}}function Ct(_0x165c53,_0x256582,_0x37cf8b){for(const _0x22ca44 of _0x256582[_0x10a8('0x1')][_0x10a8('0x40')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x22ca44[_0x10a8('0x106')]==_0x22ca44)return!0x1;if(!_0x37cf8b[_0x10a8('0x105')](_0x22ca44))return!0x1;if(_0x165c53[_0x10a8('0xdf')](_0x22ca44)||_0x165c53[_0x10a8('0xb6')](_0x22ca44))return!0x0;}}function Bt(_0x369e48){return _0x369e48[_0x10a8('0xa9')][_0x10a8('0x1')]==_0x369e48[_0x10a8('0xd3')][_0x10a8('0x1f')]&&_0x369e48['end'][_0x10a8('0x2')];}function _t(_0x5083b7,_0x3780c1,_0x140dcd,_0x4cf289){const _0x4db1c7=_0x2af9c7=>!_0x2af9c7[_0x10a8('0x130')]['is']('textProxy')&&!_0x4cf289[_0x10a8('0xdf')](_0x2af9c7['item']),_0x171318=_0x5083b7[_0x10a8('0xd3')][_0x10a8('0x0')](_0x4db1c7),_0x3cd101=_0x5083b7[_0x10a8('0xa9')][_0x10a8('0x0')](_0x4db1c7,{'direction':_0x10a8('0x1e')});return(!_0x5083b7[_0x10a8('0xd3')][_0x10a8('0x137')](_0x171318)||!_0x5083b7[_0x10a8('0xa9')][_0x10a8('0x137')](_0x3cd101))&&(_0x171318[_0x10a8('0x66')](_0x3cd101)?_0x140dcd[_0x10a8('0xfb')](_0x3780c1,{'range':_0x140dcd[_0x10a8('0x23')](_0x171318,_0x3cd101)}):_0x140dcd[_0x10a8('0xb3')](_0x3780c1),!0x0);}function Mt(_0x4f3d57){return _0x1dda37(_0x4f3d57);}function $t(_0xf68923){const _0x403d14=_0xf68923['start'][_0x10a8('0x1f')];return _0x403d14&&_0x403d14['is']('element');}function Nt(_0x21973f,_0x3a9265){const _0x4a4709=_0x3a9265[_0x10a8('0xcc')][_0x10a8('0xdf')](_0x21973f)||_0x3a9265['schema'][_0x10a8('0xf7')](_0x21973f);return _0x3a9265[_0x10a8('0x23')](_0x3a9265['createPositionAt'](_0x21973f,_0x10a8('0x8')),_0x4a4709?_0x3a9265['createPositionAfter'](_0x21973f):_0x3a9265['createPositionAt'](_0x21973f,_0x10a8('0xa9')));}function Rt(_0x171c0a,_0x291b39,_0x4f07e4,_0x545379,_0x2cbadb){if(_0x4f07e4[_0x10a8('0xa9')]['isEqual'](_0x545379['start']))return!0x0;if(_0x171c0a['type']!=_0x291b39[_0x10a8('0xae')])return!0x1;if(!_0x4f07e4['end']['isTouching'](_0x545379[_0x10a8('0xd3')]))return!0x1;const _0x5a6132=_0x2cbadb[_0x10a8('0x23')](_0x4f07e4[_0x10a8('0xa9')],_0x545379[_0x10a8('0xd3')])['getWalker']();for(const _0x17c832 of _0x5a6132)if([_0x10a8('0xfe'),_0x10a8('0x6')]['includes'](_0x17c832['type'])&&_0x2cbadb[_0x10a8('0xcc')]['isLimit'](_0x17c832[_0x10a8('0x130')]))return!0x1;return!0x0;}
23
+ const _0x1f4b=['_refreshSuggestionsChain','createElement','enableCommand','originalSuggestionId','hasCommentThread','value','from','open','pluginName','formatInline:accept','collaboration.channelId','suggestion','insertion:discard','deletion:accept','suggestionLoaded','removed','ck-suggestion-marker','_getSuggestionData','rethrowUnexpectedError','substr','showSuggestionHighlights','_handleNewSuggestionMarker','getAttribute','delete','getNearestSelectionRange','enableReadOnlyMode','options','acceptSelectedSuggestions','containsPosition','track-changes-suggestion-not-found','_trackFormatChanges','getShiftedBy','splice','subType','markerNameToElements','_saved','_updateSuggestionData','_breakSuggestionMarker','isDocumentOperation','setTo','isAfter','notReady','createPositionAfter','getMultiRangeId','containsItem','hasSuggestion','insertion','values','deleteContent','sort','deletion:chain','add','isAtEnd','track-changes-adapter-already-set','insertion:chain','_editor','formatBlock:discard','setSelection','formatBlock','commandName','config','isObject','PENDING_ACTION_SUGGESTION','attributes','createRangeIn','getIntersection','_checkSuggestionCorrectness','containsRange','init','then','move','addClass','conversion','plugins','isBlock','isNextTo','formatBlock:','size','deletion:join','deletion:discard','getChangedMarkers','join','_customCallbacks','filter','detach','isMultiRange','formatGroupId','$marker','catch','markerToData','TrackChangesEditing','updateMarker','track-changes-command-not-found','position','markers','map','markMultiRangeBlockFormat','after','isLocal','creator','containsRangeInObject','upcast','_getAuthorFromId','nodeAfter','low','getFirstMarker','addHighlight','getAllAdjacentSuggestions','getMarkers','getSuggestion','removeClass','newRange','markerName','range','_addSuggestionMarker','getItems','has','markerReady','rejected','documentSelection','listenTo','isExternal','authoredAt','deletion:','isAtStart','getCustomProperty','parent','selection','group','dataToMarker','accept','elementStart','type','addMarker','isSelectable','root','removeComment','removeMarker','_rangeIsInLocalUserInsertion','isEqual','elementToElement','addSuggestion','chain','error-saving-suggestion-data-suggestion-discarded','_cutOutSuggestionMarker','setAttribute','_removeSuggestion','differ','formatBlock:chain','every','_getExternalAuthor','stop','_commentsRepository','execute','addMarkerName','getWalker','suggestionChanged','createPositionBefore','addMarker:suggestion:formatBlock','markDeletion','next','registerPostFixer','suggestion:','adapter','authorName','fromCharCode','change:activeMarkers','CommentsRepository','_enabledCommands','addRange','before','getFirstRange','discardSelectedSuggestions','for','consumable','length','change','toJSON','marker-count','getUser','schema','trackChanges','data','lowest','commands','removeAttribute','refresh','model','name','isCollapsed','_onDiscard','previous','remove','document','_defaultCallbacks','_suggestionFactory','buildSuggestion','acceptAllSuggestions','unbindElementFromMarkerName','getSuggestions','dataDowncast','normal','discardSuggestion','_joinWithAdjacentSuggestions','markMultiRangeDeletion','isInContent','markerToHighlight','define','getLastMatchingPosition','getSuggestionCallback','createRange','_suggestions','discardAllSuggestions','insertContent','multipleBlocks','ready','rootName','ck-suggestion-marker-formatBlock','markInlineFormat','markBlockFormat','forceDefaultExecution','elementEnd','Users','hasComments','ck-suggestion-marker-','multi','addSuggestionData','backward','ck-suggestion-marker--active','editor','getCommentThread','trackChanges.trackFormatChanges','splitPosition','createSelection','moveTargetPosition','insertion:','createPositionAt','reconvertMarker','accepted','isBefore','addUser','formatInline:join','toViewElement','_registerDefaultCallbacks','_addThreadToSuggestion','isOwn','editingDowncast','writer','forward','update:suggestion','_setSuggestionData','change:_saved','_setSuggestionRange','skipNestingCheck','containerElement','howMany','removeMarkers','fromRange','high','_createSuggestion','_adapter','highest','includes','isRemovable','locale','fire','@external','clone','deletion','formatInline:discard','dataReady','data-suggestion','oldRange','getRange','element','discard','split','$textProxy','addMarker:suggestion','removeMarker:suggestion:formatBlock','_isForcedDefaultExecutionBlock','acceptSuggestion','batch','commentThread','track-changes-adapter-missing-getsuggestion','_splitMarkerName','mapper','markMultiRangeInsertion','_suggestionState','set','_descriptionFactory','$graveyard','push','addComment','consume','get','some','resolve','track-changes-suggestion-data-mismatch','isTouching','item','nodeBefore','widget','getRanges','author','addCommentThread','end','_joinSuggestions','external:','start','formatBlock:accept','insert','track-changes-user-not-found','activeMarkers','formatInline:','markInsertion','_findSuggestions','isLimit','createdAt','formatInline','_model','trackChangesCommand'];(function(_0x3c7776,_0x1f4be2){const _0x3efbe6=function(_0x199e00){while(--_0x199e00){_0x3c7776['push'](_0x3c7776['shift']());}};_0x3efbe6(++_0x1f4be2);}(_0x1f4b,0x162));const _0x3efb=function(_0x3c7776,_0x1f4be2){_0x3c7776=_0x3c7776-0x0;let _0x3efbe6=_0x1f4b[_0x3c7776];return _0x3efbe6;};import{Plugin as _0x54a62b,PendingActions as _0x48441d}from'ckeditor5/src/core';import{LiveRange as _0x12e3b7}from'ckeditor5/src/engine';import{CKEditorError as _0x432566,uid as _0x12ed5b,priorities as _0x5b5f35,logWarning as _0x31de96}from'ckeditor5/src/utils';import{toWidget as _0x1d702e}from'ckeditor5/src/widget';import{Users as _0x2649a1,hashObject as _0x90c1fd}from'ckeditor5-collaboration/src/collaboration-core';import _0x5b9ffa from'./commands/trackchangescommand';import _0x18aa3d from'./commands/acceptsuggestioncommand';import _0x202999 from'./commands/discardsuggestioncommand';import _0x12b9bb from'./commands/executeonallsuggestionscommand';import _0x43fd6b from'./commands/executeonselectedsuggestionscommand';import _0x3dc7ba from'./suggestion';import _0x33188 from'./suggestiondescriptionfactory';import _0x51c9f7 from'./integrations/alignment';import _0x47e73d from'./integrations/basicstyles';import _0x2bfa37 from'./integrations/blockquote';import _0xd5bee3 from'./integrations/ckbox';import _0x1e5bf2 from'./integrations/codeblock';import _0x1cc7a5 from'./integrations/comments';import _0x335098 from'./integrations/deletecommand';import _0x50b682 from'./integrations/documentlist';import _0x50d510 from'./integrations/entercommand';import _0x2294a4 from'./integrations/findandreplace';import _0x2e30f0 from'./integrations/font';import _0x336a90 from'./integrations/heading';import _0x1ce02d from'./integrations/highlight';import _0x247a18 from'./integrations/horizontalline';import _0x1ca3a2 from'./integrations/htmlembed';import _0x3350fd from'./integrations/image';import _0x1078a9 from'./integrations/imagereplace';import _0x520029 from'./integrations/importword';import _0x5b17dc from'./integrations/indent';import _0x279555 from'./integrations/inputcommand';import _0x452169 from'./integrations/link';import _0x4e958c from'./integrations/list';import _0x262d69 from'./integrations/listproperties';import _0x59ec00 from'./integrations/mediaembed';import _0x17df65 from'./integrations/mention';import _0x9adfa1 from'./integrations/pagebreak';import _0x2ef849 from'./integrations/paragraph';import _0x42e5b8 from'./integrations/removeformat';import _0x2f3694 from'./integrations/restrictededitingmode';import _0x50bac0 from'./integrations/shiftentercommand';import _0x4c1ead from'./integrations/standardeditingmode';import _0x49f051 from'./integrations/style';import _0x29b48d from'./integrations/table';import _0x4b981d from'./integrations/tablemergesplit';import _0xc4c037 from'./integrations/tableheadings';import _0x59568e from'./integrations/tableclipboard';import _0x18bec1 from'./integrations/tablecolumnresize';import _0xb4dd03 from'./integrations/title';import _0x934692 from'./integrations/undo';import{getTranslation as _0x7f5023}from'./utils/common-translations';import _0x247bed from'./integrations/tablecaption';import _0x4b1b85 from'./integrations/documentlistproperties';import _0x35a5c5 from'./integrations/tableproperties';export default class p extends _0x54a62b{static get['requires'](){return[_0x3efb('0x87'),_0x2649a1,_0x48441d,_0x51c9f7,_0x47e73d,_0x2bfa37,_0xd5bee3,_0x1e5bf2,_0x1cc7a5,_0x335098,_0x50b682,_0x4b1b85,_0x50d510,_0x2294a4,_0x2e30f0,_0x336a90,_0x1ce02d,_0x247a18,_0x1ca3a2,_0x3350fd,_0x1078a9,_0x520029,_0x5b17dc,_0x279555,_0x452169,_0x4e958c,_0x262d69,_0x59ec00,_0x17df65,_0x9adfa1,_0x2ef849,_0x42e5b8,_0x2f3694,_0x50bac0,_0x4c1ead,_0x49f051,_0x29b48d,_0x4b981d,_0xc4c037,_0x247bed,_0x59568e,_0x18bec1,_0x35a5c5,_0xb4dd03,_0x934692];}static get[_0x3efb('0x12a')](){return _0x3efb('0x3a');}constructor(_0x1ecfb9){function _0x1a5ce8(_0x26f1ce){return _0x26f1ce['map'](_0x47df87=>String[_0x3efb('0x85')](_0x47df87))[_0x3efb('0x31')]('');}super(_0x1ecfb9),this[_0x3efb('0x101')](_0x3efb('0x119'),[]),this['on'](_0x3efb('0x86'),(_0x1a2ee3,_0x471421,_0xed941f,_0x16fff3)=>{this['_model'][_0x3efb('0x90')](()=>{for(const _0xa8e691 of[..._0x16fff3,..._0xed941f])this[_0x3efb('0x120')][_0x3efb('0x3e')]['has'](_0xa8e691)&&_0x1ecfb9['editing'][_0x3efb('0xcd')](_0xa8e691);});}),this[_0x3efb('0x102')]=new _0x33188(this[_0x3efb('0xc5')]['model'][_0x3efb('0x94')],this[_0x3efb('0xc5')][_0x3efb('0xe8')]),this[_0x3efb('0xe4')]=null,this[_0x3efb('0xa3')]=new vt(this['editor']),this[_0x3efb('0xb3')]=new Map(),this[_0x3efb('0x78')]=_0x1ecfb9[_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0x87')),this[_0x3efb('0x88')]=new Set(),this[_0x3efb('0x120')]=this[_0x3efb('0xc5')][_0x3efb('0x9b')],this[_0x3efb('0x100')]=new WeakMap(),this[_0x3efb('0xf8')]=!0x1,_0x1ecfb9[_0x3efb('0x1c')][_0x3efb('0xaf')](_0x3efb('0xc7'),!0x0),this['_trackFormatChanges']=_0x1ecfb9[_0x3efb('0x1c')][_0x3efb('0x107')](_0x3efb('0xc7')),this[_0x3efb('0x121')]=new _0x5b9ffa(_0x1ecfb9,this[_0x3efb('0x88')]),this[_0x1a5ce8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1a5ce8([0x34,0x30,0x34,0x36,0x30,0x38,0x31,0x30]);}[_0x3efb('0x24')](){const _0xbb5404=this[_0x3efb('0xc5')];_0xbb5404['conversion']['for'](_0x3efb('0xd6'))['markerToHighlight']({'model':'suggestion','view':_0x416c37=>{const {id:_0x2d2612,type:_0x246627}=this[_0x3efb('0xfd')](_0x416c37['markerName']),_0x27636f=['ck-suggestion-marker',_0x3efb('0xc0')+_0x246627];let _0x29eb1f=0xbb8;return this[_0x3efb('0x119')]['includes'](_0x416c37['markerName'])&&(_0x27636f[_0x3efb('0x104')]('ck-suggestion-marker--active'),_0x29eb1f=0xbc2),_0x3efb('0xec')==_0x246627&&(_0x29eb1f+=0x5),{'classes':_0x27636f,'attributes':{'data-suggestion':_0x2d2612},'priority':_0x29eb1f};}}),_0xbb5404[_0x3efb('0x28')]['for']('dataDowncast')[_0x3efb('0x13')](_0x3cf618=>{_0x3cf618['on'](_0x3efb('0xf6'),(_0x4c168a,_0x3e9d7b,_0x1d1ef3)=>{if(!_0x1d1ef3[_0x3efb('0x13c')][_0x3efb('0x136')])return;const _0x52b217=_0x3e9d7b[_0x3efb('0x10c')];if(!_0x52b217)return;const _0x1b60c4=_0x1d1ef3[_0x3efb('0xfe')][_0x3efb('0xd2')](_0x52b217);_0xbb5404[_0x3efb('0x9b')]['schema'][_0x3efb('0x1d')](_0x52b217)&&_0x1b60c4&&!_0x1b60c4['getCustomProperty'](_0x3efb('0x10e'))&&_0x1b60c4['is'](_0x3efb('0xde'))&&_0x1d702e(_0x1b60c4,_0x1d1ef3['writer']);},{'priority':_0x3efb('0xe2')});}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0xa8'))[_0x3efb('0xae')]({'model':_0x3efb('0x12d'),'view':(_0x4e6933,_0x1b8993)=>{if(!_0x1b8993['options']['showSuggestionHighlights'])return null;const {type:_0x24e4a0}=this[_0x3efb('0xfd')](_0x4e6933['markerName']);return{'classes':[_0x3efb('0x132'),_0x3efb('0xc0')+_0x24e4a0],'priority':0xbb8};}});const _0x480bfc=({showActiveMarkers:_0x2bc0a6=!0x0}={})=>(_0x2c8e14,_0x3c0661,_0x100171)=>{if(!_0x3c0661['item'])return;if(_0x3c0661[_0x3efb('0x10c')]['is'](_0x3efb('0x5f')))return void _0x100171[_0x3efb('0x8e')][_0x3efb('0x106')](_0x3c0661[_0x3efb('0x10c')],_0x2c8e14['name']);const _0x106715=_0x100171[_0x3efb('0xfe')][_0x3efb('0xd2')](_0x3c0661['item']);if(!(_0x3c0661[_0x3efb('0x10c')]['is'](_0x3efb('0xf2'))&&_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x94')][_0x3efb('0x2a')](_0x3c0661[_0x3efb('0x10c')])&&!_0x106715[_0x3efb('0x5d')](_0x3efb('0x4a'))))return;const {id:_0x2beb51}=this[_0x3efb('0xfd')](_0x3c0661[_0x3efb('0x50')]);_0x100171[_0x3efb('0xd7')][_0x3efb('0x27')](['ck-suggestion-marker',_0x3efb('0xb9')],_0x106715),_0x100171[_0x3efb('0xd7')][_0x3efb('0x71')](_0x3efb('0xef'),_0x2beb51,_0x106715),_0x100171[_0x3efb('0xfe')]['bindElementToMarker'](_0x106715,_0x3c0661[_0x3efb('0x50')]),_0x2bc0a6&&(this['activeMarkers']['includes'](_0x3c0661[_0x3efb('0x50')])?_0x100171[_0x3efb('0xd7')][_0x3efb('0x27')](_0x3efb('0xc4'),_0x106715):_0x100171[_0x3efb('0xd7')][_0x3efb('0x4e')](_0x3efb('0xc4'),_0x106715));for(const _0xf0124 of _0xbb5404['model'][_0x3efb('0x20')](_0x3c0661['item'])[_0x3efb('0x53')]())_0x100171[_0x3efb('0x8e')]['consume'](_0xf0124,_0x2c8e14[_0x3efb('0x9c')]);_0x100171[_0x3efb('0x8e')]['consume'](_0x3c0661[_0x3efb('0x10c')],_0x2c8e14[_0x3efb('0x9c')]);};_0xbb5404['conversion'][_0x3efb('0x8d')](_0x3efb('0xa8'))[_0x3efb('0x13')](_0x322d9d=>{_0x322d9d['on'](_0x3efb('0x7e'),(_0xac62b,_0xe073d5,_0x3e1fc3)=>{_0x3e1fc3[_0x3efb('0x13c')]['showSuggestionHighlights']&&_0x480bfc({'showActiveMarkers':!0x1})(_0xac62b,_0xe073d5,_0x3e1fc3);},{'priority':_0x3efb('0xe5')});}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0xa8'))[_0x3efb('0x39')]({'model':_0x3efb('0x12d'),'view':(_0xfeae5,_0x264004)=>_0x264004[_0x3efb('0x13c')][_0x3efb('0x136')]?null:{'group':_0x3efb('0x12d'),'name':_0xfeae5[_0x3efb('0x135')]('suggestion'[_0x3efb('0x8f')]+0x1)}}),_0xbb5404[_0x3efb('0x28')]['for'](_0x3efb('0x45'))[_0x3efb('0x6c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2b7ea9,{writer:_0x2858f3})=>{let _0x2a2051=_0x3efb('0x82')+_0x2b7ea9[_0x3efb('0x138')]('suggestion-type')+':'+_0x2b7ea9[_0x3efb('0x138')]('id');return _0x2b7ea9['getAttribute'](_0x3efb('0x92'))&&(_0x2a2051+=':'+_0x2b7ea9[_0x3efb('0x138')](_0x3efb('0x92'))),_0x2858f3[_0x3efb('0x123')](_0x3efb('0x37'),{'data-name':_0x2a2051});}}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0x45'))[_0x3efb('0x61')]({'view':_0x3efb('0x12d')}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0xd6'))[_0x3efb('0x13')](_0xe98f14=>{_0xe98f14['on'](_0x3efb('0x7e'),_0x480bfc(),{'priority':_0x3efb('0xe2')});}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')]('editingDowncast')['add'](_0x2b6b5b=>{_0x2b6b5b['on'](_0x3efb('0xf7'),(_0x541c68,_0x3dd1bb,_0x57c00a)=>{const _0x5015fa=_0x57c00a[_0x3efb('0xfe')][_0x3efb('0x2')](_0x3dd1bb[_0x3efb('0x50')]);if(_0x5015fa)for(const _0x174768 of _0x5015fa)_0x174768[_0x3efb('0x5d')]('addHighlight')||(_0x57c00a[_0x3efb('0xd7')]['removeClass'](['ck-suggestion-marker',_0x3efb('0xb9'),_0x3efb('0xc4')],_0x174768),_0x57c00a[_0x3efb('0xd7')][_0x3efb('0x99')]('data-suggestion',_0x174768),_0x57c00a[_0x3efb('0xfe')][_0x3efb('0xa6')](_0x174768,_0x3dd1bb[_0x3efb('0x50')]));},{'priority':_0x3efb('0xe2')});}),_0xbb5404[_0x3efb('0x9b')]['document']['registerPostFixer'](_0x319324=>{let _0x2ad0a8=!0x1;const _0x4edd53=Array[_0x3efb('0x128')](_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xa1')][_0x3efb('0x73')][_0x3efb('0x30')]()),_0x33e9af=new Set();for(const {name:_0x4d421b,data:_0x3cc859}of _0x4edd53){const {group:_0x2356e6,type:_0x4a5db5,id:_0x54d2e6}=this[_0x3efb('0xfd')](_0x4d421b);if(_0x3efb('0x12d')!==_0x2356e6)continue;const _0x83383b=this[_0x3efb('0xb3')]['get'](_0x54d2e6);if(null!=_0x3cc859[_0x3efb('0x4f')]){'formatInline'==_0x4a5db5&&(_0x2ad0a8=_0x2ad0a8||Ct(_0x3cc859[_0x3efb('0x4f')],_0x4d421b,_0x319324,_0xbb5404['model'][_0x3efb('0x94')]));if(_0x3cc859[_0x3efb('0x4f')][_0x3efb('0x9d')]||_0x3efb('0x103')==_0x3cc859['newRange']['root'][_0x3efb('0xb8')]||_0x3efb('0x1a')==_0x4a5db5&&!_t(_0x3cc859[_0x3efb('0x4f')])||'deletion'==_0x4a5db5&&!(!Dt(_0x4476a8=_0x3cc859[_0x3efb('0x4f')])&&!function(_0xd64297){return _0xd64297[_0x3efb('0x115')][_0x3efb('0x5e')]==_0xd64297[_0x3efb('0x112')]['nodeBefore']&&_0xd64297['start'][_0x3efb('0x14')];}(_0x4476a8)))_0x319324[_0x3efb('0x69')](_0x4d421b),_0x2ad0a8=!0x0;else{if(!_0x83383b||!_0x83383b['isInContent'])continue;_0x33e9af['add'](_0x83383b);}}}var _0x4476a8;return _0x33e9af[_0x3efb('0x2d')]>0x0&&(_0x2ad0a8=!!this['_joinWithAdjacentSuggestions'](_0x33e9af)||_0x2ad0a8),_0x2ad0a8;}),_0xbb5404[_0x3efb('0x9b')]['document'][_0x3efb('0x81')](_0x1a24c9=>{let _0x4f5b34=!0x1;for(const _0x4d05a7 of _0xbb5404[_0x3efb('0x9b')][_0x3efb('0xa1')][_0x3efb('0x73')]['getChanges']()){if(_0x3efb('0x117')!=_0x4d05a7[_0x3efb('0x64')])continue;const _0x428ad4=_0x4d05a7['position'][_0x3efb('0x141')](_0x4d05a7[_0x3efb('0x8f')]);if(_0x428ad4[_0x3efb('0x14')])for(const _0x44394e of this['_suggestions']['values']()){if(_0x44394e['isMultiRange']||!_0x44394e[_0x3efb('0xad')])continue;if(_0x3efb('0x1a')!=_0x44394e[_0x3efb('0x64')])continue;const _0x1d2a76=_0x44394e['getFirstRange']();if(_0x1d2a76['start'][_0x3efb('0x5e')]!=_0x1d2a76[_0x3efb('0x112')][_0x3efb('0x5e')]&&_0x1d2a76['end'][_0x3efb('0x6b')](_0x4d05a7[_0x3efb('0x3d')])){const _0x35161a=_0xbb5404['model']['createRange'](_0x1d2a76[_0x3efb('0x115')],_0x428ad4);_0x1a24c9[_0x3efb('0x3b')](_0x44394e[_0x3efb('0x49')](),{'range':_0x35161a}),_0x4f5b34=!0x0;}}}return _0x4f5b34;}),_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x3e')]['on'](_0x3efb('0xd9'),(_0x4ffdda,_0x5bec42,_0x2f6424)=>{if(null==_0x2f6424){const {id:_0x3df6b8}=this[_0x3efb('0xfd')](_0x5bec42[_0x3efb('0x9c')]),_0x14597c=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x3df6b8);_0x14597c&&_0x14597c['addMarkerName'](_0x5bec42[_0x3efb('0x9c')]);}}),_0xbb5404[_0x3efb('0x9b')]['document']['on']('change:data',()=>{const _0xb5a694=Array[_0x3efb('0x128')](_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xa1')]['differ'][_0x3efb('0x30')]())[_0x3efb('0x33')](_0x2180ed=>'suggestion'===this[_0x3efb('0xfd')](_0x2180ed[_0x3efb('0x9c')])[_0x3efb('0x60')]);if(0x0===_0xb5a694[_0x3efb('0x8f')])return;_0xb5a694[_0x3efb('0x11')]((_0xcccffb,_0xa4588c)=>{const _0x373dbc=_0xcccffb[_0x3efb('0x96')][_0x3efb('0xf0')],_0x2e3501=_0xa4588c[_0x3efb('0x96')][_0x3efb('0xf0')];return null===_0x373dbc&&null===_0x2e3501?0x0:null===_0x373dbc&&null!==_0x2e3501?-0x1:null!==_0x373dbc&&null===_0x2e3501?0x1:_0x373dbc[_0x3efb('0x115')][_0x3efb('0xcf')](_0x2e3501[_0x3efb('0x115')])?-0x1:0x1;});const _0x169c43=new Set(),_0x2de4da=new Set();for(const {name:_0x574137,data:_0xba5d92}of _0xb5a694){const {id:_0x5e191c}=this[_0x3efb('0xfd')](_0x574137);if(null===_0xba5d92[_0x3efb('0xf0')]){const _0x5b54ec=this[_0x3efb('0x137')](_0x574137);_0x2de4da['add'](_0x5b54ec);}else{const _0x21eb97=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x5e191c);null!==_0xba5d92[_0x3efb('0x4f')]||_0x21eb97[_0x3efb('0xad')]?(_0x169c43[_0x3efb('0x13')](_0x21eb97['head']),_0x2de4da[_0x3efb('0x13')](_0x21eb97)):this[_0x3efb('0x72')](_0x21eb97);}}_0x2de4da[_0x3efb('0x2d')]>0x0&&this[_0x3efb('0x122')](_0x2de4da);for(const _0x305afc of _0x169c43)this['fire'](_0x3efb('0x7c'),_0x305afc);}),_0xbb5404[_0x3efb('0x9b')]['on']('applyOperation',(_0x6f4382,_0x3365fa)=>{const _0x5bf7d6=_0x3365fa[0x0];if(!this[_0x3efb('0xb3')]['size'])return;if(!_0x5bf7d6[_0x3efb('0x6')])return;if(_0x5bf7d6['batch']['isUndo']||!_0x5bf7d6[_0x3efb('0xfa')][_0x3efb('0x42')])return;let _0x3c0ddf,_0x1cfa03;switch(_0x5bf7d6[_0x3efb('0x64')]){case _0x3efb('0x117'):_0x3c0ddf=_0xbb5404['model'][_0x3efb('0xcc')](_0x5bf7d6[_0x3efb('0x3d')]),_0x1cfa03=_0x3c0ddf['getShiftedBy'](_0x5bf7d6['howMany']);break;case _0x3efb('0xf4'):_0x3c0ddf=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xcc')](_0x5bf7d6[_0x3efb('0xc8')]),_0x1cfa03=_0xbb5404['model']['createPositionAt'](_0x5bf7d6[_0x3efb('0xca')]);break;case _0x3efb('0x26'):_0x3c0ddf=_0xbb5404[_0x3efb('0x9b')]['createPositionAt'](_0x5bf7d6['targetPosition']),_0x1cfa03=_0x3c0ddf[_0x3efb('0x141')](_0x5bf7d6[_0x3efb('0xdf')]);break;default:return;}const _0x5d7deb=_0xbb5404['model'][_0x3efb('0xb2')](_0x3c0ddf,_0x1cfa03);_0xbb5404[_0x3efb('0x9b')]['change'](()=>{for(const {suggestion:_0x123c5a,meta:_0x38a571}of this[_0x3efb('0x11c')](_0x5d7deb)){if(_0x123c5a[_0x3efb('0x35')])continue;if(_0x3efb('0x11f')==_0x123c5a[_0x3efb('0x64')])continue;const _0x693db7=_0x123c5a[_0x3efb('0x96')]&&_0x123c5a[_0x3efb('0x96')][_0x3efb('0xb6')];('formatBlock'!=_0x123c5a[_0x3efb('0x64')]||_0x3efb('0xf4')==_0x5bf7d6[_0x3efb('0x64')]&&!_0x693db7)&&(_0x38a571['containsRangeInObject']||'insertion'==_0x123c5a[_0x3efb('0x64')]&&_0x38a571['isOwn']||_0x123c5a['getFirstRange']()[_0x3efb('0x23')](_0x5d7deb)&&this[_0x3efb('0x5')](_0x123c5a,_0x3c0ddf,_0x1cfa03));}});},{'priority':_0x3efb('0x97')}),_0xbb5404[_0x3efb('0x9b')]['on'](_0x3efb('0x10'),(_0x317565,_0x7aaaef)=>{const _0x94526e=_0x7aaaef[0x0],_0x31b4d0=_0x7aaaef[0x1];if(_0x31b4d0&&_0x31b4d0[_0x3efb('0xbc')])return;if(this[_0x3efb('0xf8')])return;if(!this[_0x3efb('0x121')]['value'])return;if(_0x94526e['isCollapsed'])return;const _0x223897=_0xbb5404[_0x3efb('0x9b')]['schema'],{start:_0x4d2f29,end:_0x490ce8}=_0x94526e['getFirstRange'](),_0x5609ec=_0x4d2f29[_0x3efb('0x47')]&&_0x223897[_0x3efb('0x11d')](_0x4d2f29['nodeAfter'])?null:_0x223897[_0x3efb('0x13a')](_0x4d2f29,_0x3efb('0xd8')),_0x3488a7=_0x490ce8[_0x3efb('0x10d')]&&_0x223897[_0x3efb('0x11d')](_0x490ce8[_0x3efb('0x10d')])?null:_0x223897[_0x3efb('0x13a')](_0x490ce8,_0x3efb('0xc3')),_0x34c7d6=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xb2')](_0x5609ec?_0x5609ec['start']:_0x4d2f29,_0x3488a7?_0x3488a7['end']:_0x490ce8);_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x90')](_0x5cf0d6=>{this[_0x3efb('0x7f')](_0x34c7d6);const _0x118825=_0xbb5404[_0x3efb('0x9b')]['schema'][_0x3efb('0x13a')](_0x34c7d6[_0x3efb('0x115')]);_0x94526e['is'](_0x3efb('0x57'))?_0x5cf0d6['setSelection'](_0x118825):_0x94526e[_0x3efb('0x7')](_0x118825);}),_0x317565[_0x3efb('0x77')]();},{'priority':_0x5b5f35[_0x3efb('0xa9')]+0xa}),_0xbb5404[_0x3efb('0x9b')]['on'](_0x3efb('0xb5'),(_0x1b62a7,_0x3e4175)=>{const _0x527224=_0x3e4175[_0x3e4175[_0x3efb('0x8f')]-0x1];_0x527224&&_0x527224[_0x3efb('0xbc')]||this[_0x3efb('0xf8')]||this[_0x3efb('0x121')]['value']&&(_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x90')](()=>{let _0xdea8f9=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xb5')](_0x3e4175[0x0],_0x3e4175[0x1],_0x3e4175[0x2],{'forceDefaultExecution':!0x0});if(!_0xdea8f9)return;_0x1b62a7['return']=_0xdea8f9[_0x3efb('0xeb')]();const _0x5b4ad1=_0xdea8f9[_0x3efb('0x112')][_0x3efb('0x10d')],_0x54ddc0=_0xbb5404[_0x3efb('0x9b')]['schema'];_0x5b4ad1&&_0x54ddc0[_0x3efb('0x2a')](_0x5b4ad1)&&!_0x54ddc0[_0x3efb('0x1d')](_0x5b4ad1)&&(_0xdea8f9=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xb2')](_0xdea8f9[_0x3efb('0x115')],_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xcc')](_0x5b4ad1,_0x3efb('0x112')))),this[_0x3efb('0x11b')](_0xdea8f9);}),_0x1b62a7['stop']());},{'priority':_0x3efb('0xe2')}),this[_0x3efb('0xc5')][_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0x95'),this[_0x3efb('0x121')]),this[_0x3efb('0x124')](_0x3efb('0x95'));const _0x2c2fa4=new _0x18aa3d(_0xbb5404,this[_0x3efb('0xb3')]);_0xbb5404['commands']['add'](_0x3efb('0xf9'),_0x2c2fa4),this[_0x3efb('0x124')](_0x3efb('0xf9'));const _0x16760a=new _0x202999(_0xbb5404,this[_0x3efb('0xb3')]);_0xbb5404[_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0xaa'),_0x16760a),this[_0x3efb('0x124')]('discardSuggestion'),_0xbb5404[_0x3efb('0x98')]['add'](_0x3efb('0xa5'),new _0x12b9bb(_0xbb5404,_0x2c2fa4,this[_0x3efb('0xb3')])),this[_0x3efb('0x124')](_0x3efb('0xa5')),_0xbb5404[_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0xb4'),new _0x12b9bb(_0xbb5404,_0x16760a,this[_0x3efb('0xb3')])),this[_0x3efb('0x124')]('discardAllSuggestions'),_0xbb5404[_0x3efb('0x98')]['add']('acceptSelectedSuggestions',new _0x43fd6b(_0xbb5404,_0x2c2fa4,this['_suggestions'])),this[_0x3efb('0x124')](_0x3efb('0x13d')),_0xbb5404[_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0x8c'),new _0x43fd6b(_0xbb5404,_0x16760a,this[_0x3efb('0xb3')])),this[_0x3efb('0x124')](_0x3efb('0x8c'));const _0x4f7acc=_0xbb5404[_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0x87'));this[_0x3efb('0x58')](_0x4f7acc,_0x3efb('0x105'),(_0x5ef00b,{threadId:_0x283c20})=>{const _0x2f597d=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x283c20);_0x2f597d&&_0x2f597d['commentThread']&&0x1===_0x2f597d[_0x3efb('0xfb')]['length']&&this['_updateSuggestionData'](_0x283c20,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4f7acc,_0x3efb('0x68'),(_0x4cf17b,{threadId:_0x328401})=>{const _0x4bda75=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x328401);_0x4bda75&&_0x4bda75[_0x3efb('0xfb')]&&!_0x4bda75['commentThread']['length']&&this['_updateSuggestionData'](_0x328401,{'hasComments':!0x1});},{'priority':_0x3efb('0x48')});}set[_0x3efb('0x83')](_0x41f718){if(this['_adapter'])throw new _0x432566(_0x3efb('0x15'),this);this[_0x3efb('0xe4')]=_0x41f718;}get[_0x3efb('0x83')](){return this[_0x3efb('0xe4')];}['getSuggestions']({skipNotAttached:_0x2a02ea=!0x1,toJSON:_0x9780bb=!0x1}={}){const _0x359110=[];for(const _0x51c9b0 of this[_0x3efb('0xb3')][_0x3efb('0xf')]())_0x2a02ea&&!_0x51c9b0[_0x3efb('0xad')]||_0x359110[_0x3efb('0x104')](_0x51c9b0);return _0x9780bb?_0x359110[_0x3efb('0x3f')](_0x55c859=>_0x55c859[_0x3efb('0x91')]()):_0x359110;}['getSuggestion'](_0x133fd3){const _0x10cc36=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x133fd3);if(!_0x10cc36)throw new _0x432566(_0x3efb('0x13f'),this);return _0x10cc36;}[_0x3efb('0xd')](_0x28a820){return this['_suggestions'][_0x3efb('0x54')](_0x28a820);}['addSuggestionData'](_0x290320){const {authorId:_0x4cf31e,id:_0x9b206f,attributes:_0xe479cf}=_0x290320,[_0x4e0606,_0x548025]=_0x290320[_0x3efb('0x64')][_0x3efb('0xf4')](':'),_0x36cd90=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x9b206f)||this[_0x3efb('0xe3')](_0x4e0606,_0x548025,_0x9b206f,_0x4cf31e,_0xe479cf);if(this[_0x3efb('0xd4')](_0x36cd90),this[_0x3efb('0x22')](_0x36cd90,_0x4e0606,_0x548025||null,_0x4cf31e),_0x36cd90[_0x3efb('0x11e')]=_0x290320['createdAt'],_0xe479cf&&_0xe479cf[_0x3efb('0xea')]){const _0x4d4a00=_0xe479cf[_0x3efb('0xea')],_0x2da367=this[_0x3efb('0x76')](_0x4d4a00[_0x3efb('0x84')]);_0x36cd90[_0x3efb('0x5a')]=_0x4d4a00['createdAt'],_0x36cd90[_0x3efb('0x110')]=_0x2da367,_0x36cd90[_0x3efb('0x59')]=!0x0;}else _0x36cd90['authoredAt']=_0x290320['createdAt'];switch(_0x290320[_0x3efb('0x96')]&&(_0x36cd90[_0x3efb('0x96')]=_0x290320['data']),_0x290320[_0x3efb('0x1f')]&&(_0x36cd90[_0x3efb('0x1f')]=_0x290320[_0x3efb('0x1f')]),this[_0x3efb('0xe4')]&&this[_0x3efb('0xe4')]['addSuggestion']||(_0x36cd90['_saved']=!0x0),this[_0x3efb('0x100')][_0x3efb('0x107')](_0x36cd90)){case _0x3efb('0x9'):this[_0x3efb('0x100')][_0x3efb('0x101')](_0x36cd90,'dataReady');break;case _0x3efb('0x55'):_0x36cd90[_0x3efb('0xad')]?(this[_0x3efb('0x100')][_0x3efb('0x101')](_0x36cd90,_0x3efb('0xb7')),this[_0x3efb('0xe9')](_0x3efb('0x130'),_0x36cd90)):this['_suggestionState'][_0x3efb('0x101')](_0x36cd90,'removed');}return _0x36cd90;}[_0x3efb('0xf9')](_0x51b2c0){this[_0x3efb('0xbc')](()=>{this[_0x3efb('0xc5')]['model'][_0x3efb('0x90')](()=>{for(const _0x502275 of _0x51b2c0['getAllAdjacentSuggestions']())_0x502275['accept']();});});}[_0x3efb('0xaa')](_0x3226cc){this[_0x3efb('0xbc')](()=>{this[_0x3efb('0xc5')][_0x3efb('0x9b')][_0x3efb('0x90')](()=>{for(const _0x28f4dd of _0x3226cc[_0x3efb('0x4b')]())_0x28f4dd[_0x3efb('0xf3')]();});});}[_0x3efb('0x124')](_0x11afeb,_0x34911c){const _0x5419a2=this['editor'][_0x3efb('0x98')]['get'](_0x11afeb);if(!_0x5419a2)throw new _0x432566(_0x3efb('0x3c'),this,{'commandName':_0x11afeb});this[_0x3efb('0x88')][_0x3efb('0x13')](_0x5419a2),_0x34911c&&_0x5419a2['on'](_0x3efb('0x79'),(_0x321f5b,_0xecdfaa)=>{this[_0x3efb('0x121')][_0x3efb('0x127')]&&(this[_0x3efb('0xf8')]||_0xecdfaa[_0x3efb('0x8f')]>0x0&&_0xecdfaa[_0xecdfaa['length']-0x1]&&_0xecdfaa[_0xecdfaa[_0x3efb('0x8f')]-0x1][_0x3efb('0xbc')]||(_0x34911c((..._0x4f1a1b)=>_0x5419a2[_0x3efb('0x79')](..._0x4f1a1b,{'forceDefaultExecution':!0x0}),..._0xecdfaa),_0x321f5b[_0x3efb('0x77')]()));},{'priority':_0x3efb('0xe2')});}[_0x3efb('0xbc')](_0x3753a3){let _0x3581df,_0xae0283;const _0xb39b65=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3581df=_0x3753a3();}catch(_0x1435bb){_0xae0283=_0x1435bb;}return _0xb39b65||(this[_0x3efb('0xf8')]=!0x1),_0xae0283&&_0x432566[_0x3efb('0x134')](_0xae0283,this),_0x3581df;}[_0x3efb('0x11b')](_0x159cc8,_0x5bb94a=null,_0x5d6819={}){if(_0x159cc8[_0x3efb('0x9d')])return null;const _0x48da84=this['editor'][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'];for(const {suggestion:_0x3e6963,meta:_0x3b805f}of this[_0x3efb('0x11c')](_0x159cc8,_0x3efb('0xe')))if(_0x3b805f['isOwn']){if(!_0x3b805f['isNextTo'])return _0x3e6963;if(_0x5bb94a==_0x3e6963['subType']){const _0x45c522=_0x3e6963[_0x3efb('0x8b')]();return _0x45c522['start'][_0x3efb('0x6b')](_0x159cc8['end'])?this[_0x3efb('0xdc')](_0x3e6963,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x159cc8[_0x3efb('0x115')],_0x45c522['end'])):this[_0x3efb('0xdc')](_0x3e6963,this['_model'][_0x3efb('0xb2')](_0x45c522['start'],_0x159cc8['end'])),_0x3e6963;}}const _0xd6e2f6=_0x12ed5b(),_0x4cd580=_0x48da84['id'],_0x279395=_0x5bb94a?_0x3efb('0xcb')+_0x5bb94a:_0x3efb('0xe'),_0x542580=this[_0x3efb('0xda')]({'id':_0xd6e2f6,'type':_0x279395,'createdAt':new Date(),'authorId':_0x4cd580,'attributes':_0x5d6819});return this[_0x3efb('0x52')](_0x279395,_0xd6e2f6,_0x4cd580,_0x159cc8),_0x542580;}[_0x3efb('0xff')](_0x57830c,_0x36baaf=_0x3efb('0xc1'),_0x50702b={}){const _0x1549e9=this['editor'][_0x3efb('0x29')]['get'](_0x3efb('0xbe'))['me'],_0x162384=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xe'),_0x36baaf,'join');for(const _0x12e156 of this[_0x3efb('0xa7')]())if(_0x12e156[_0x3efb('0x110')]['id']==_0x1549e9['id']&&_0x3efb('0xe')==_0x12e156[_0x3efb('0x64')]&&_0x12e156[_0x3efb('0x1')]==_0x36baaf&&(_0x162384(_0x12e156[_0x3efb('0x10f')](),_0x57830c)||_0x162384(_0x57830c,_0x12e156['getRanges']()))){for(const _0x19abe0 of _0x57830c)_0x12e156[_0x3efb('0x89')](_0x19abe0);return _0x12e156;}for(const _0x42242b of _0x57830c)for(const {suggestion:_0x418b53,meta:_0x6eedaf}of this['_findSuggestions'](_0x42242b,_0x3efb('0xe'))){if(!_0x6eedaf[_0x3efb('0xd5')])continue;let _0x359366=!0x0;for(const _0x2d7e5e of _0x418b53[_0x3efb('0x10f')]())for(const _0x574628 of _0x57830c)if(!_0x2d7e5e[_0x3efb('0x23')](_0x574628)){_0x359366=!0x1;break;}if(_0x359366)return _0x418b53;}const _0xa5cd60=_0x12ed5b(),_0x519a55=_0x1549e9['id'],_0x4fae54=_0x3efb('0xcb')+_0x36baaf,_0x3fa664=this[_0x3efb('0xda')]({'id':_0xa5cd60,'type':_0x4fae54,'createdAt':new Date(),'authorId':_0x519a55,'attributes':_0x50702b});for(const _0x4700d5 of _0x57830c)this[_0x3efb('0x52')](_0x4fae54,_0xa5cd60,_0x519a55,_0x4700d5,_0x3dc7ba['getMultiRangeId']());return _0x3fa664;}[_0x3efb('0xba')](_0x2a362f,_0x35500f,_0x21fb2b=null,_0x2e24e={}){if(_0x21fb2b=_0x21fb2b||Bt(_0x35500f),_0x2a362f[_0x3efb('0x9d')])return null;if(!0x1===this['_trackFormatChanges']){const _0x2df912=this[_0x3efb('0xa3')]['getSuggestionCallback']('formatInline',_0x21fb2b,'accept');return this['forceDefaultExecution'](()=>_0x2df912([_0x2a362f],_0x35500f,_0x2e24e)),null;}const _0x41f9ea=this['editor'][_0x3efb('0x29')]['get'](_0x3efb('0xbe'))['me'],_0x3788cb=[];for(const {suggestion:_0x5ebac3,meta:_0x1dd071}of this[_0x3efb('0x11c')](_0x2a362f,_0x3efb('0xe')))_0x1dd071['isOwn']&&!_0x1dd071['isInsideObject']&&_0x3788cb[_0x3efb('0x104')](..._0x5ebac3['getRanges']());const _0x56ed5d=function(_0x293e58,_0x4ec7c1){const _0x52b466=[];for(const _0x232849 of _0x4ec7c1){const _0xe08c3a=_0x293e58[_0x3efb('0x21')](_0x232849);_0xe08c3a&&_0x52b466[_0x3efb('0x104')](_0xe08c3a);}return _0x52b466;}(_0x2a362f,_0x3788cb),_0x9f896a=function(_0x3cf7ea,_0x565437){const _0x1719c2=[_0x3cf7ea];for(const _0x42e6cb of _0x565437){let _0x153bce=0x0;for(;_0x153bce<_0x1719c2[_0x3efb('0x8f')];){const _0x57c475=_0x1719c2[_0x153bce]['getDifference'](_0x42e6cb);_0x1719c2['splice'](_0x153bce,0x1,..._0x57c475),_0x153bce+=_0x57c475[_0x3efb('0x8f')];}}return _0x1719c2;}(_0x2a362f,_0x3788cb);_0x56ed5d[_0x3efb('0x8f')]&&this['_model'][_0x3efb('0x90')](()=>{for(const _0x2777ef of _0x56ed5d){const _0x32c2c4=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x11f'),_0x21fb2b,_0x3efb('0x62'));this[_0x3efb('0xbc')](()=>_0x32c2c4([_0x2777ef],_0x35500f,_0x2e24e));}});for(const _0x10fee5 of _0x9f896a){let _0x28691c=null,_0x176eec=_0x10fee5[_0x3efb('0x115')],_0x13bd72=_0x10fee5[_0x3efb('0x112')];for(const {suggestion:_0x41265d,meta:_0x577adb}of this[_0x3efb('0x11c')](_0x10fee5,_0x3efb('0x11f'))){if(!_0x577adb[_0x3efb('0xd5')])continue;if(_0x41265d[_0x3efb('0x1')]!=_0x21fb2b)continue;const _0x224c51=_0x41265d['getFirstRange']();if(_0x224c51[_0x3efb('0x23')](_0x10fee5,!0x0))return null;_0x176eec=_0x176eec[_0x3efb('0xcf')](_0x224c51[_0x3efb('0x115')])?_0x176eec:_0x224c51[_0x3efb('0x115')],_0x13bd72=_0x13bd72[_0x3efb('0x8')](_0x224c51[_0x3efb('0x112')])?_0x13bd72:_0x224c51[_0x3efb('0x112')],_0x28691c?_0x224c51['start'][_0x3efb('0xcf')](_0x28691c['getFirstRange']()[_0x3efb('0x115')])?(_0x28691c[_0x3efb('0xe0')](),_0x28691c=_0x41265d):_0x41265d[_0x3efb('0xe0')]():_0x28691c=_0x41265d;}const _0x3da723=this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x176eec,_0x13bd72);if(_0x28691c)this[_0x3efb('0xdc')](_0x28691c,_0x3da723);else{const _0x4e504c=_0x12ed5b(),_0x399052=_0x41f9ea['id'];this[_0x3efb('0xda')]({'id':_0x4e504c,'type':'formatInline:'+_0x21fb2b,'data':_0x35500f,'createdAt':new Date(),'authorId':_0x399052,'attributes':_0x2e24e}),this['_addSuggestionMarker'](_0x3efb('0x11a')+_0x21fb2b,_0x4e504c,_0x399052,_0x3da723);}}return null;}[_0x3efb('0xbb')](_0x78b217,_0x51e39b,_0xdf292d=[],_0x2ca47d=null,_0x1aa9e4={}){_0x51e39b[_0x3efb('0x36')]||(_0x51e39b['formatGroupId']=_0x51e39b[_0x3efb('0x1b')]),_0x51e39b[_0x3efb('0xb6')]=_0x78b217['is'](_0x3efb('0x51')),_0x2ca47d=_0x2ca47d||Bt(_0x51e39b);const _0x138554=_0xdf292d[_0x3efb('0x3f')](_0xa5a418=>Mt(_0xa5a418,this[_0x3efb('0x120')])),_0x44d52d=_0x78b217['is'](_0x3efb('0x51'))?_0x78b217:Mt(_0x78b217,this[_0x3efb('0x120')]);if(!0x1===this[_0x3efb('0x140')]){const _0xb2ecc7=this[_0x3efb('0xa3')]['getSuggestionCallback'](_0x3efb('0x1a'),_0x2ca47d,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0xb2ecc7([_0x44d52d],_0x51e39b,_0x1aa9e4)),null;}_0x138554[_0x3efb('0x104')](_0x44d52d);let _0x5a9a52=!0x0;for(const _0x297646 of _0x138554)if(!this[_0x3efb('0x6a')](_0x297646)){_0x5a9a52=!0x1;break;}if(_0x5a9a52){const _0x1287d4=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x1a'),_0x2ca47d,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0x1287d4([_0x44d52d],_0x51e39b,_0x1aa9e4)),null;}let _0x5bcf8a=null,_0x5a32a5=_0x44d52d[_0x3efb('0x115')],_0x2f92a9=_0x44d52d[_0x3efb('0x112')];for(const {suggestion:_0x125473,meta:_0x5e1302}of this[_0x3efb('0x11c')](_0x44d52d,_0x3efb('0x1a'))){if(!_0x5e1302[_0x3efb('0xd5')]||_0x5e1302[_0x3efb('0x2b')]||_0x5e1302[_0x3efb('0x44')]||_0x5e1302['isInsideObject'])continue;if(_0x125473[_0x3efb('0x96')][_0x3efb('0x36')]!=_0x51e39b[_0x3efb('0x36')])continue;const _0x4dc0d1=_0x125473[_0x3efb('0x8b')]();if(_0x125473['subType']==_0x2ca47d){if(_0x4dc0d1[_0x3efb('0x23')](_0x44d52d,!0x0))return null;_0x5a32a5=_0x5a32a5[_0x3efb('0xcf')](_0x4dc0d1[_0x3efb('0x115')])?_0x5a32a5:_0x4dc0d1[_0x3efb('0x115')],_0x2f92a9=_0x2f92a9[_0x3efb('0x8')](_0x4dc0d1[_0x3efb('0x112')])?_0x2f92a9:_0x4dc0d1[_0x3efb('0x112')],_0x5bcf8a?_0x4dc0d1[_0x3efb('0x115')][_0x3efb('0xcf')](_0x5bcf8a[_0x3efb('0x8b')]()[_0x3efb('0x115')])?(_0x5bcf8a['removeMarkers'](),_0x5bcf8a=_0x125473):_0x125473[_0x3efb('0xe0')]():_0x5bcf8a=_0x125473;}else{const _0x106548=_0x44d52d[_0x3efb('0x21')](_0x4dc0d1);this[_0x3efb('0x70')](_0x125473,_0x106548);}}const _0x3698b9=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'],_0x22f5f0=_0x12ed5b(),_0x423bb4=_0x3698b9['id'];if(_0x5bcf8a)return this[_0x3efb('0xdc')](_0x5bcf8a,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x5a32a5,_0x2f92a9)),_0x5bcf8a;{const _0x59c998=this[_0x3efb('0xda')]({'id':_0x22f5f0,'type':_0x3efb('0x2c')+_0x2ca47d,'data':_0x51e39b,'createdAt':new Date(),'authorId':_0x423bb4,'attributes':_0x1aa9e4});return this[_0x3efb('0x52')](_0x3efb('0x2c')+_0x2ca47d,_0x22f5f0,_0x423bb4,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x5a32a5,_0x2f92a9)),_0x59c998;}}[_0x3efb('0x40')](_0x1625d6,_0xac4414,_0x27c7a6=[],_0x31b289=null,_0x5ad86b={}){_0xac4414[_0x3efb('0x36')]||(_0xac4414['formatGroupId']=_0xac4414[_0x3efb('0x1b')]);const _0x3ce1bf=_0x1625d6[0x0];_0xac4414[_0x3efb('0xb6')]=_0x3ce1bf['is'](_0x3efb('0x51')),_0x31b289=_0x31b289||Bt(_0xac4414);const _0x309974=_0x27c7a6[_0x3efb('0x3f')](_0x2a2590=>Mt(_0x2a2590,this[_0x3efb('0x120')])),_0x483342=_0x3ce1bf['is'](_0x3efb('0x51'))?_0x1625d6:_0x1625d6['map'](_0x42b417=>Mt(_0x42b417,this[_0x3efb('0x120')]));if(!0x1===this[_0x3efb('0x140')]){const _0x33a868=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x1a'),_0x31b289,_0x3efb('0x62'));return this['forceDefaultExecution'](()=>_0x33a868(_0x483342,_0xac4414,_0x5ad86b)),null;}_0x309974['push'](..._0x483342);let _0x1a0645=!0x0;for(const _0x766f65 of _0x309974)if(!this['_rangeIsInLocalUserInsertion'](_0x766f65)){_0x1a0645=!0x1;break;}if(_0x1a0645){const _0x1e5402=this['_suggestionFactory']['getSuggestionCallback'](_0x3efb('0x1a'),_0x31b289,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0x1e5402(_0x483342,_0xac4414,_0x5ad86b)),null;}const _0x14f0c8=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'];for(const _0x310ae0 of this[_0x3efb('0xa7')]()){if(_0x310ae0[_0x3efb('0x110')]['id']!=_0x14f0c8['id'])continue;if('formatBlock'!=_0x310ae0[_0x3efb('0x64')]||_0x310ae0[_0x3efb('0x96')][_0x3efb('0x36')]!=_0xac4414['formatGroupId'])continue;const _0x23854b=_0x310ae0[_0x3efb('0x1')]==_0x31b289;for(let _0x41948d=0x0;_0x41948d<_0x483342['length'];_0x41948d++){const _0x2ca757=_0x483342[_0x41948d];for(const _0x38a26e of _0x310ae0[_0x3efb('0x4c')]()){const _0x14418b=_0x38a26e[_0x3efb('0xf1')]();if(_0x2ca757[_0x3efb('0x6b')](_0x14418b)){_0x23854b?(_0x483342[_0x3efb('0x0')](_0x41948d,0x1),_0x41948d--):_0x310ae0[_0x3efb('0x69')](_0x38a26e[_0x3efb('0x9c')]);break;}}}}if(0x0==_0x483342['length'])return null;const _0x3f4118=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x1a'),_0x31b289,'join');for(const _0xc3b937 of this[_0x3efb('0xa7')]())if(_0xc3b937[_0x3efb('0x110')]['id']==_0x14f0c8['id']&&_0x3efb('0x1a')==_0xc3b937['type']&&_0xc3b937[_0x3efb('0x96')]['formatGroupId']==_0xac4414[_0x3efb('0x36')]&&_0xc3b937[_0x3efb('0x1')]==_0x31b289&&(_0x3f4118(_0xc3b937[_0x3efb('0x10f')](),_0x483342)||_0x3f4118(_0x483342,_0xc3b937['getRanges']()))){for(const _0x3030b3 of _0x483342)_0xc3b937[_0x3efb('0x89')](_0x3030b3);return _0xc3b937;}const _0x4be4ad=_0x12ed5b(),_0x35bb21=_0x14f0c8['id'],_0xd3fb25=_0x3efb('0x2c')+_0x31b289,_0x40b036=this[_0x3efb('0xda')]({'id':_0x4be4ad,'type':_0xd3fb25,'data':_0xac4414,'createdAt':new Date(),'authorId':_0x35bb21,'attributes':_0x5ad86b});for(const _0x214457 of _0x483342)this[_0x3efb('0x52')](_0xd3fb25,_0x4be4ad,_0x35bb21,_0x214457,_0x3dc7ba['getMultiRangeId']());return _0x40b036;}[_0x3efb('0x7f')](_0x5bc7a1,_0x77bf20=null,_0x21d785={}){if(_0x5bc7a1[_0x3efb('0x9d')])return null;const _0x5b5319=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'],_0x1b57d8=new _0x12e3b7(_0x5bc7a1[_0x3efb('0x115')],_0x5bc7a1[_0x3efb('0x112')]);for(const {suggestion:_0x7b47d,meta:_0x3cca66}of this[_0x3efb('0x11c')](_0x1b57d8,_0x3efb('0xe')))if(_0x3cca66['isOwn']&&!_0x3cca66[_0x3efb('0x2b')]){if(_0x7b47d[_0x3efb('0x35')]){const _0x2bde24=_0x7b47d[_0x3efb('0x10f')]()[_0x3efb('0x33')](_0x1a3278=>_0x3efb('0x103')!=_0x1a3278['root'][_0x3efb('0xb8')]);_0x2bde24[_0x3efb('0x75')](_0x491891=>_0x1b57d8[_0x3efb('0x23')](_0x491891,!0x0))&&_0x7b47d['discard']();if(_0x2bde24['some'](_0x7fdddc=>_0x7fdddc[_0x3efb('0x23')](_0x1b57d8,!0x0))){const _0x5605c9=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xec'),_0x77bf20,_0x3efb('0x62'));return this['forceDefaultExecution'](()=>_0x5605c9([_0x1b57d8],null,_0x21d785)),null;}}else{const _0x309709=_0x1b57d8['getIntersection'](_0x7b47d['getFirstRange']());_0x7b47d[_0x3efb('0x9e')]([_0x309709],null,_0x21d785);}}if(_0x1b57d8['detach'](),_0x1b57d8['isCollapsed']||_0x3efb('0x103')==_0x1b57d8[_0x3efb('0x67')][_0x3efb('0xb8')])return null;let _0x5db28f=null,_0x39c5c7=_0x1b57d8[_0x3efb('0x115')],_0x2069c3=_0x1b57d8[_0x3efb('0x112')];for(const {suggestion:_0x5d71e4,meta:_0x220d13}of this[_0x3efb('0x11c')](_0x1b57d8,_0x3efb('0xec')))if(_0x220d13[_0x3efb('0xd5')]){if(_0x5d71e4['isMultiRange']){let _0x32ceae=!0x0;for(const _0x479fd1 of _0x5d71e4[_0x3efb('0x10f')]()){if(_0x479fd1[_0x3efb('0x23')](_0x1b57d8,!0x0))return _0x5d71e4;_0x1b57d8['containsRange'](_0x479fd1)||(_0x32ceae=!0x1);}_0x32ceae&&_0x5d71e4['discard']();}else{const _0x5d92a0=_0x5d71e4[_0x3efb('0x8b')]();if(_0x5d92a0['containsRange'](_0x1b57d8,!0x0))return _0x5d71e4;_0x39c5c7=_0x39c5c7[_0x3efb('0xcf')](_0x5d92a0[_0x3efb('0x115')])?_0x39c5c7:_0x5d92a0[_0x3efb('0x115')],_0x2069c3=_0x2069c3[_0x3efb('0x8')](_0x5d92a0['end'])?_0x2069c3:_0x5d92a0[_0x3efb('0x112')],_0x5db28f?_0x5d92a0[_0x3efb('0x115')][_0x3efb('0xcf')](_0x5db28f['getFirstRange']()[_0x3efb('0x115')])?(_0x5db28f[_0x3efb('0xe0')](),_0x5db28f=_0x5d71e4):_0x5d71e4[_0x3efb('0xe0')]():_0x5db28f=_0x5d71e4;}}if(_0x5db28f)return this[_0x3efb('0xdc')](_0x5db28f,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x39c5c7,_0x2069c3)),_0x5db28f;{const _0x3c6fae=_0x12ed5b(),_0x46d96d=this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x39c5c7,_0x2069c3),_0x345ca2=_0x5b5319['id'],_0x30589c=_0x77bf20?_0x3efb('0x5b')+_0x77bf20:'deletion',_0x2432ff=this[_0x3efb('0xda')]({'id':_0x3c6fae,'type':_0x30589c,'createdAt':new Date(),'authorId':_0x345ca2,'attributes':_0x21d785});return this[_0x3efb('0x52')](_0x30589c,_0x3c6fae,_0x345ca2,_0x46d96d),_0x2432ff;}}[_0x3efb('0xac')](_0x26f715,_0x21ad83=_0x3efb('0xc1'),_0x5037b7={}){const _0x3cf737=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')]('Users')['me'],_0x5dd690=_0x26f715[_0x3efb('0x3f')](_0x2c4a07=>new _0x12e3b7(_0x2c4a07[_0x3efb('0x115')],_0x2c4a07[_0x3efb('0x112')])),_0x205890=new Set();for(const _0x1ef275 of _0x5dd690)for(const {suggestion:_0x79cf10,meta:_0x459b53}of this[_0x3efb('0x11c')](_0x1ef275,'insertion'))_0x459b53['isOwn']&&!_0x459b53['isNextTo']&&_0x205890[_0x3efb('0x13')](_0x79cf10);for(const _0x4ce2ab of _0x205890)if(_0x4ce2ab[_0x3efb('0x35')]){const _0x1ff6e7=_0x4ce2ab['getRanges']();(!_0x4ce2ab[_0x3efb('0x1f')]||!_0x4ce2ab[_0x3efb('0x1f')]['skipNestingCheck'])&&(_0x1ff6e7['every'](_0x268972=>_0x5dd690['some'](_0x4db1ae=>_0x4db1ae['containsRange'](_0x268972,!0x0)))&&_0x4ce2ab[_0x3efb('0xf3')]());if(_0x5dd690[_0x3efb('0x75')](_0x1d0e6c=>_0x1ff6e7[_0x3efb('0x108')](_0x56780a=>_0x56780a[_0x3efb('0x23')](_0x1d0e6c,!0x0)))){const _0x3cb1b1=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xec'),_0x21ad83,'accept');return this[_0x3efb('0xbc')](()=>_0x3cb1b1(_0x26f715,null,_0x5037b7)),null;}}else{const _0x54c3f2=_0x4ce2ab[_0x3efb('0x8b')]();_0x5dd690[_0x3efb('0x108')](_0x2f3ced=>_0x2f3ced[_0x3efb('0x23')](_0x54c3f2,!0x0))&&_0x4ce2ab[_0x3efb('0xf3')]();if(_0x5dd690['every'](_0x202bc8=>_0x54c3f2[_0x3efb('0x23')](_0x202bc8,!0x0))){const _0x40585=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xec'),_0x21ad83,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0x40585(_0x5dd690,null,_0x5037b7)),null;}}const _0x3e2444=this[_0x3efb('0xa3')]['getSuggestionCallback'](_0x3efb('0xec'),_0x21ad83,_0x3efb('0x31'));let _0xc9d123=null;for(const _0x24c283 of this['getSuggestions']())if(_0x24c283[_0x3efb('0x110')]['id']==_0x3cf737['id']&&_0x24c283[_0x3efb('0xad')]&&_0x3efb('0xec')==_0x24c283[_0x3efb('0x64')]&&_0x24c283['subType']==_0x21ad83&&(_0x3e2444(_0x24c283['getRanges'](),_0x5dd690)||_0x3e2444(_0x5dd690,_0x24c283[_0x3efb('0x10f')]()))){if(_0xc9d123){if(_0x24c283[_0x3efb('0xfb')]&&_0x24c283[_0x3efb('0xfb')]['length'])continue;for(const _0xe34c9c of _0x24c283[_0x3efb('0x10f')]())_0xc9d123['isIntersectingWithRange'](_0xe34c9c)||_0xc9d123[_0x3efb('0x89')](_0xe34c9c);_0x24c283[_0x3efb('0xe0')]();}else{_0xc9d123=_0x24c283;for(const _0x4103e9 of _0x5dd690)_0x24c283['isIntersectingWithRange'](_0x4103e9)||_0x24c283[_0x3efb('0x89')](_0x4103e9);}}if(_0xc9d123)return _0xc9d123;_0x205890['clear']();for(const _0x1143d5 of _0x5dd690)for(const {suggestion:_0x85ee85,meta:_0x45c554}of this[_0x3efb('0x11c')](_0x1143d5,_0x3efb('0xec')))_0x45c554['isOwn']&&_0x205890[_0x3efb('0x13')](_0x85ee85);for(const _0x180121 of _0x205890){const _0x33608e=_0x180121[_0x3efb('0x10f')]();if(!_0x5037b7||!_0x5037b7[_0x3efb('0xdd')]){if(_0x5dd690[_0x3efb('0x75')](_0x5d60ae=>_0x33608e[_0x3efb('0x108')](_0x57c651=>_0x57c651[_0x3efb('0x23')](_0x5d60ae,!0x0))))return _0x180121;}(!_0x180121[_0x3efb('0x1f')]||!_0x180121['attributes'][_0x3efb('0xdd')])&&(_0x33608e[_0x3efb('0x75')](_0x5c8fe3=>_0x5dd690['some'](_0xdb5685=>_0xdb5685[_0x3efb('0x23')](_0x5c8fe3,!0x0)))&&_0x180121[_0x3efb('0xf3')]());}const _0x59b7f3=_0x12ed5b(),_0x438c5e=_0x3cf737['id'],_0x9ffadf=_0x3efb('0x5b')+_0x21ad83,_0x385b91=this[_0x3efb('0xda')]({'id':_0x59b7f3,'type':_0x9ffadf,'createdAt':new Date(),'authorId':_0x438c5e,'attributes':_0x5037b7});for(const _0x402ffd of _0x5dd690)_0x402ffd[_0x3efb('0x34')](),_0x402ffd[_0x3efb('0x9d')]||_0x3efb('0x103')==_0x402ffd[_0x3efb('0x67')][_0x3efb('0xb8')]||this[_0x3efb('0x52')](_0x9ffadf,_0x59b7f3,_0x438c5e,_0x402ffd,_0x3dc7ba[_0x3efb('0xb')]());return _0x385b91;}[_0x3efb('0xdc')](_0x41e377,_0x367b6a){const _0x379681=_0x41e377[_0x3efb('0x49')]();this[_0x3efb('0x120')][_0x3efb('0x90')](_0x400939=>{_0x400939[_0x3efb('0x3b')](_0x379681,{'range':_0x367b6a});});}[_0x3efb('0xd4')](_0x11fab9){const _0x3c7dfe=_0x11fab9['id'],_0x2ceb96=this[_0x3efb('0xc5')][_0x3efb('0x1c')][_0x3efb('0x107')]('collaboration.channelId');this[_0x3efb('0x78')][_0x3efb('0x126')](_0x3c7dfe)||this[_0x3efb('0x78')][_0x3efb('0x111')]({'channelId':_0x2ceb96,'threadId':_0x3c7dfe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x16090e=this[_0x3efb('0x78')][_0x3efb('0xc6')](_0x3c7dfe);_0x16090e['unbind']('isRemovable'),_0x16090e[_0x3efb('0xe7')]=!0x1,_0x11fab9[_0x3efb('0xfb')]=_0x16090e;}[_0x3efb('0x22')](_0x2af68c,_0x590e67,_0x5876ec,_0x19f21a){if(_0x2af68c[_0x3efb('0x64')]!=_0x590e67||_0x2af68c['subType']!=_0x5876ec||_0x2af68c[_0x3efb('0x43')]['id']!=_0x19f21a)throw this[_0x3efb('0xc5')][_0x3efb('0x13b')](_0x3efb('0x10a')),new _0x432566(_0x3efb('0x10a'),this);}[_0x3efb('0x70')](_0x3225c0,_0x2c342a){const _0x50666c=_0x3225c0[_0x3efb('0x8b')]();if(_0x2c342a[_0x3efb('0x6b')](_0x50666c))_0x3225c0[_0x3efb('0xe0')]();else{if(_0x50666c['containsRange'](_0x2c342a)){const _0x3e6353=this[_0x3efb('0x120')][_0x3efb('0xcc')](_0x2c342a[_0x3efb('0x115')]['nodeBefore'],'end');this[_0x3efb('0xdc')](_0x3225c0,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x50666c[_0x3efb('0x115')],_0x3e6353));const _0x49cf08=_0x12ed5b(),_0x67ed64=_0x3225c0[_0x3efb('0x43')]['id'],_0x1f8843=_0x3225c0[_0x3efb('0x64')]+':'+_0x3225c0['subType'];this[_0x3efb('0xda')]({'id':_0x49cf08,'type':_0x1f8843,'createdAt':new Date(),'authorId':_0x67ed64,'data':_0x3225c0[_0x3efb('0x96')],'attributes':_0x3225c0[_0x3efb('0x1f')]});const _0x2e9991=this[_0x3efb('0x120')]['createPositionAt'](_0x2c342a[_0x3efb('0x112')][_0x3efb('0x5e')],_0x3efb('0x41')),_0x294228=this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x2e9991,_0x50666c[_0x3efb('0x112')]);this[_0x3efb('0x52')](_0x1f8843,_0x49cf08,_0x67ed64,_0x294228);}else{if(_0x50666c[_0x3efb('0x13e')](_0x2c342a[_0x3efb('0x115')])){const _0x6e7938=this[_0x3efb('0x120')][_0x3efb('0xcc')](_0x2c342a[_0x3efb('0x115')]['nodeBefore'],_0x3efb('0x112'));this[_0x3efb('0xdc')](_0x3225c0,this[_0x3efb('0x120')]['createRange'](_0x50666c['start'],_0x6e7938));}else{const _0x4964eb=this[_0x3efb('0x120')][_0x3efb('0xcc')](_0x2c342a[_0x3efb('0x112')][_0x3efb('0x5e')],_0x3efb('0x41'));this[_0x3efb('0xdc')](_0x3225c0,this['_model'][_0x3efb('0xb2')](_0x4964eb,_0x50666c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x559133){for(const {suggestion:_0xda35a9,meta:_0x30d78f}of this[_0x3efb('0x11c')](_0x559133,_0x3efb('0xe'))){if(!_0x30d78f['isOwn'])continue;const _0x23e754=_0xda35a9['getRanges']();for(const _0x28aa0c of _0x23e754)if(!_0x559133['getDifference'](_0x28aa0c)[_0x3efb('0x8f')])return!0x0;}return!0x1;}[_0x3efb('0x46')](_0x31ecb3){const _0x1d2dd5=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))[_0x3efb('0x93')](_0x31ecb3);if(!_0x1d2dd5)throw new _0x432566(_0x3efb('0x118'),this);return _0x1d2dd5;}[_0x3efb('0x76')](_0x1e650d){const _0x372247=this['editor']['plugins'][_0x3efb('0x107')]('Users'),_0x41dba1=_0x90c1fd(_0x3efb('0x114')+_0x1e650d),_0x4a5cc0=_0x372247['getUser'](_0x41dba1);return _0x4a5cc0||_0x372247[_0x3efb('0xd0')]({'id':_0x41dba1,'name':_0x1e650d});}['_createSuggestion'](_0xf9cd3a,_0x35da4a,_0x3eca68,_0x5ce927,_0x3f64eb){const _0x1cef88=this[_0x3efb('0x46')](_0x5ce927),_0x4d5696=this[_0x3efb('0xa3')][_0x3efb('0xa4')](_0xf9cd3a,_0x35da4a,_0x3eca68,_0x1cef88,_0x3f64eb,_0x690838=>this[_0x3efb('0x4')](_0x3eca68,{'attributes':_0x690838}));return this[_0x3efb('0x58')](_0x4d5696,_0x3efb('0x62'),()=>{this['_updateSuggestionData'](_0x3eca68,{'state':_0x3efb('0xce')});},{'priority':'high'}),this['listenTo'](_0x4d5696,_0x3efb('0xf3'),()=>{this[_0x3efb('0x4')](_0x3eca68,{'state':_0x3efb('0x56')});},{'priority':_0x3efb('0xe2')}),this[_0x3efb('0xb3')][_0x3efb('0x101')](_0x3eca68,_0x4d5696),this[_0x3efb('0x100')][_0x3efb('0x101')](_0x4d5696,_0x3efb('0x9')),_0x4d5696;}[_0x3efb('0xfd')](_0x351d13){const _0x5b389b=_0x351d13[_0x3efb('0xf4')](':');return{'group':_0x5b389b[0x0],'type':_0x5b389b[0x1],'subType':_0x5b389b[_0x3efb('0x8f')]>=0x5?_0x5b389b[0x2]:null,'id':_0x5b389b[_0x3efb('0x8f')]<0x5?_0x5b389b[0x2]:_0x5b389b[0x3],'authorId':_0x5b389b['length']<0x5?_0x5b389b[0x3]:_0x5b389b[0x4],'markerCount':0x6==_0x5b389b[_0x3efb('0x8f')]?_0x5b389b[0x5]:null};}[_0x3efb('0x5')](_0x4467e7,_0x3cd1b0,_0x4a0c1){const _0x3fc27a=_0x4467e7['getFirstRange'](),_0x497939=_0x3fc27a[_0x3efb('0x115')],_0xdddfa3=_0x3fc27a['end'];this[_0x3efb('0xdc')](_0x4467e7,this['_model'][_0x3efb('0xb2')](_0x497939,_0x3cd1b0));const _0x507690=_0x12ed5b(),_0x236f3f=_0x4467e7[_0x3efb('0x43')]['id'],_0x3cfa85=_0x4467e7[_0x3efb('0x64')]+(_0x4467e7[_0x3efb('0x1')]?':'+_0x4467e7[_0x3efb('0x1')]:'');this[_0x3efb('0xda')]({'id':_0x507690,'type':_0x3cfa85,'createdAt':new Date(),'authorId':_0x236f3f,'originalSuggestionId':_0x4467e7['id'],'attributes':_0x4467e7['attributes'],'data':_0x4467e7[_0x3efb('0x96')]}),'formatBlock'==_0x4467e7[_0x3efb('0x64')]&&(_0x4a0c1=this['_model'][_0x3efb('0x7d')](_0x4a0c1[_0x3efb('0x5e')])),this['_addSuggestionMarker'](_0x3cfa85,_0x507690,_0x236f3f,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x4a0c1,_0xdddfa3));}[_0x3efb('0x11c')](_0x25885d,_0x357f60=null){const _0x498079=[],_0x15fa54=this[_0x3efb('0x120')]['schema'],_0x1dbc05=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'];for(const _0x155592 of this[_0x3efb('0xa7')]())if(_0x155592['isInContent']&&(!_0x357f60||_0x155592['type']==_0x357f60))for(const _0x3c948c of _0x155592[_0x3efb('0x10f')]()){const _0x271cb4=_0x25885d['start'][_0x3efb('0x6b')](_0x3c948c[_0x3efb('0x112')])||_0x25885d[_0x3efb('0x112')][_0x3efb('0x6b')](_0x3c948c['start']);if(_0x271cb4||_0x25885d[_0x3efb('0x21')](_0x3c948c)){const _0x55db5c=_0x25885d[_0x3efb('0x23')](_0x3c948c)&&At(_0x15fa54,_0x3c948c[_0x3efb('0x115')],_0x25885d),_0x3387af=_0x3c948c[_0x3efb('0x23')](_0x25885d)&&At(_0x15fa54,_0x25885d[_0x3efb('0x115')],_0x3c948c);_0x498079[_0x3efb('0x104')]({'suggestion':_0x155592,'meta':{'isOwn':_0x1dbc05==_0x155592[_0x3efb('0x110')],'isNextTo':_0x271cb4,'isInsideObject':_0x55db5c,'containsRangeInObject':_0x3387af}});break;}}return _0x498079;}[_0x3efb('0x52')](_0x3c8235,_0x21c0d7,_0x44ef9b,_0x1c9583,_0x5c632a){this['_model'][_0x3efb('0x90')](_0x544844=>{let _0x5a63d4=_0x3efb('0x82')+_0x3c8235+':'+_0x21c0d7+':'+_0x44ef9b;_0x5c632a&&(_0x5a63d4=_0x5a63d4+':'+_0x5c632a),_0x544844[_0x3efb('0x65')](_0x5a63d4,{'range':_0x1c9583,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31e391){const _0x4733d8=_0x31e391[_0x3efb('0x9f')],_0x12bfdd=_0x31e391['next'];_0x31e391[_0x3efb('0x9f')]=null,null!=_0x4733d8&&(_0x4733d8['next']=null),_0x31e391['next']=null,null!=_0x12bfdd&&(_0x12bfdd[_0x3efb('0x9f')]=null),'ready'==this['_suggestionState'][_0x3efb('0x107')](_0x31e391)&&(this['_suggestionState'][_0x3efb('0x101')](_0x31e391,_0x3efb('0x131')),this[_0x3efb('0xe9')]('suggestionUnloaded',_0x31e391,_0x4733d8,_0x12bfdd));}[_0x3efb('0xda')](_0x42e343){const _0x4d4c5b=_0x42e343['id'],_0x29005c=this['addSuggestionData'](_0x42e343);if(this['_adapter']&&this[_0x3efb('0xe4')][_0x3efb('0x6d')]){const _0x522bb0=this['editor'][_0x3efb('0x29')][_0x3efb('0x107')]('PendingActions'),_0x22e312=_0x29005c[_0x3efb('0xbf')],_0x10c46a=_0x29005c[_0x3efb('0x1')]?_0x29005c['type']+':'+_0x29005c[_0x3efb('0x1')]:_0x29005c[_0x3efb('0x64')],_0x11e187=this[_0x3efb('0xc5')][_0x3efb('0xe8')],_0x1cf735=_0x522bb0[_0x3efb('0x13')](_0x7f5023(_0x11e187,'PENDING_ACTION_SUGGESTION')),_0x49e130={'id':_0x4d4c5b,'type':_0x10c46a,'hasComments':_0x22e312,'data':_0x42e343[_0x3efb('0x96')]||null,'originalSuggestionId':_0x42e343[_0x3efb('0x125')]||null,'attributes':_0x29005c[_0x3efb('0x1f')]};this[_0x3efb('0xe4')][_0x3efb('0x6d')](_0x49e130)['then'](_0xc6f01b=>{_0x29005c[_0x3efb('0x3')]=!0x0,_0x522bb0['remove'](_0x1cf735),_0xc6f01b&&_0xc6f01b[_0x3efb('0x11e')]&&(this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x4d4c5b)[_0x3efb('0x11e')]=_0xc6f01b[_0x3efb('0x11e')]);})[_0x3efb('0x38')](_0x556c96=>{throw _0x31de96(_0x3efb('0x6f')),this['editor'][_0x3efb('0x9b')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x29005c[_0x3efb('0xf3')]();}),_0x29005c['stopListening'](),this[_0x3efb('0xb3')][_0x3efb('0x139')](_0x29005c['id']),this[_0x3efb('0x100')][_0x3efb('0x139')](_0x29005c),_0x556c96;});}return _0x29005c;}[_0x3efb('0x4')](_0x300b9a,_0x39894a){const _0x428bd7=this[_0x3efb('0xc5')]['plugins'][_0x3efb('0x107')]('PendingActions'),_0x5aa90c=this[_0x3efb('0x4d')](_0x300b9a);if(this[_0x3efb('0xe4')]&&this[_0x3efb('0xe4')]['updateSuggestion']){if(_0x5aa90c[_0x3efb('0x3')]){const _0x5df1de=_0x428bd7[_0x3efb('0x13')](_0x7f5023(this[_0x3efb('0xc5')][_0x3efb('0xe8')],_0x3efb('0x1e')));this['_adapter']['updateSuggestion'](_0x300b9a,_0x39894a)['then'](()=>{_0x428bd7[_0x3efb('0xa0')](_0x5df1de);});}else _0x5aa90c['on'](_0x3efb('0xdb'),()=>{this[_0x3efb('0x4')](_0x300b9a,_0x39894a);});}}[_0x3efb('0x133')](_0x7e4da5){if(!this['_adapter']||!this['_adapter'][_0x3efb('0x4d')])throw new _0x432566(_0x3efb('0xfc'),this);return this[_0x3efb('0xe4')]['getSuggestion'](_0x7e4da5);}[_0x3efb('0x137')](_0x12cf8c){const {id:_0x21b15a,type:_0x2f7683,subType:_0x989cf7,authorId:_0x187ffd}=this[_0x3efb('0xfd')](_0x12cf8c),_0x2e4fa1=this[_0x3efb('0xb3')]['get'](_0x21b15a)||this[_0x3efb('0xe3')](_0x2f7683,_0x989cf7,_0x21b15a,_0x187ffd,{});switch(this[_0x3efb('0x22')](_0x2e4fa1,_0x2f7683,_0x989cf7,_0x187ffd),this[_0x3efb('0x100')]['get'](_0x2e4fa1)){case _0x3efb('0x9'):this[_0x3efb('0x133')](_0x21b15a)['then'](_0xd07d18=>{let _0x1656d3=Promise[_0x3efb('0x109')]();_0xd07d18[_0x3efb('0xbf')]&&(_0x1656d3=this[_0x3efb('0x78')]['fetchCommentThread']({'channelId':this[_0x3efb('0xc5')][_0x3efb('0x1c')]['get'](_0x3efb('0x12c')),'threadId':_0x21b15a})),_0x1656d3[_0x3efb('0x25')](()=>{this[_0x3efb('0xc2')](_0xd07d18)[_0x3efb('0x3')]=!0x0;});}),this[_0x3efb('0x100')]['set'](_0x2e4fa1,_0x3efb('0x55'));break;case _0x3efb('0x131'):this[_0x3efb('0x4')](_0x21b15a,{'state':_0x3efb('0x129')});case _0x3efb('0xee'):this[_0x3efb('0x100')][_0x3efb('0x101')](_0x2e4fa1,_0x3efb('0xb7')),this[_0x3efb('0xe9')](_0x3efb('0x130'),_0x2e4fa1);break;case _0x3efb('0xb7'):this['fire'](_0x3efb('0x7c'),_0x2e4fa1);}return _0x2e4fa1[_0x3efb('0x7a')](_0x12cf8c),_0x2e4fa1;}[_0x3efb('0x122')](_0x15b82c){const _0x4bdae9=Array[_0x3efb('0x128')](_0x15b82c)[_0x3efb('0x33')](_0x628a6=>!_0x628a6[_0x3efb('0x35')]),_0x2f5dd5=this[_0x3efb('0xa7')]({'skipNotAttached':!0x0})[_0x3efb('0x33')](_0x528b3c=>!_0x528b3c['isMultiRange']),_0x44ba54=_0x2f5dd5[_0x3efb('0x33')](_0x1cff44=>!_0x15b82c['has'](_0x1cff44)),_0x800693=new Map(_0x2f5dd5[_0x3efb('0x3f')](_0xa1b45f=>[_0xa1b45f,this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0xa1b45f[_0x3efb('0x64')],_0xa1b45f[_0x3efb('0x1')],_0x3efb('0x6e'))])),_0x180854=new Map(_0x2f5dd5['map'](_0xb409c=>[_0xb409c,_0xb409c[_0x3efb('0x8b')]()])),_0x32c9a4=new Set(),_0x4c7dbf=new Set();for(let _0x4fc4ab=0x0;_0x4fc4ab<_0x4bdae9[_0x3efb('0x8f')];_0x4fc4ab++)_0x1c7c3d(_0x4bdae9[_0x4fc4ab],_0x4bdae9,_0x4fc4ab+0x1);for(let _0x233482=0x0;_0x233482<_0x4bdae9[_0x3efb('0x8f')];_0x233482++)_0x1c7c3d(_0x4bdae9[_0x233482],_0x44ba54,0x0);for(let _0x3cc8f3=0x0;_0x3cc8f3<_0x4bdae9[_0x3efb('0x8f')];_0x3cc8f3++){const _0x23944a=_0x4bdae9[_0x3cc8f3];!_0x4c7dbf[_0x3efb('0x54')](_0x23944a)&&_0x23944a[_0x3efb('0x9f')]&&(_0x23944a[_0x3efb('0x9f')]['next']===_0x23944a&&(_0x23944a[_0x3efb('0x9f')][_0x3efb('0x80')]=null),_0x23944a[_0x3efb('0x9f')]=null),!_0x32c9a4[_0x3efb('0x54')](_0x23944a)&&_0x23944a[_0x3efb('0x80')]&&(_0x23944a[_0x3efb('0x80')][_0x3efb('0x9f')]===_0x23944a&&(_0x23944a[_0x3efb('0x80')][_0x3efb('0x9f')]=null),_0x23944a[_0x3efb('0x80')]=null);}function _0x1c7c3d(_0x2f0d50,_0x1fe955,_0x4a6c7a){for(let _0xdb52ce=_0x4a6c7a;_0xdb52ce<_0x1fe955['length'];_0xdb52ce++){const _0x276629=_0x59786e(_0x2f0d50,_0x1fe955[_0xdb52ce]);_0x276629&&(_0x276629[0x0]['next']=_0x276629[0x1],_0x276629[0x1][_0x3efb('0x9f')]=_0x276629[0x0],_0x32c9a4[_0x3efb('0x13')](_0x276629[0x0]),_0x4c7dbf[_0x3efb('0x13')](_0x276629[0x1]));}}function _0x59786e(_0x2b2a74,_0x3f928e){if(_0x2b2a74[_0x3efb('0x110')]['id']!==_0x3f928e[_0x3efb('0x110')]['id'])return null;const _0x327973=_0x800693['get'](_0x2b2a74)(_0x2b2a74,_0x3f928e,_0x180854[_0x3efb('0x107')](_0x2b2a74),_0x180854[_0x3efb('0x107')](_0x3f928e));if(!_0x327973)return null;return _0x800693['get'](_0x3f928e)(_0x2b2a74,_0x3f928e,_0x180854[_0x3efb('0x107')](_0x2b2a74),_0x180854[_0x3efb('0x107')](_0x3f928e))?_0x327973[0x1]['commentThread']&&_0x327973[0x1][_0x3efb('0xfb')][_0x3efb('0x8f')]?null:_0x327973:null;}}[_0x3efb('0xab')](_0x3af2a2){const _0x54a540=Array[_0x3efb('0x128')](_0x3af2a2),_0x38e18e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2a457a=_0x38e18e[_0x3efb('0x33')](_0x1db6b9=>!_0x3af2a2['has'](_0x1db6b9)),_0x13f772=new Map(_0x54a540[_0x3efb('0x3f')](_0x536395=>[_0x536395,this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x536395[_0x3efb('0x64')],_0x536395[_0x3efb('0x1')],_0x3efb('0x31'))])),_0x199e8b=new Map(_0x38e18e['map'](_0x238450=>[_0x238450,_0x238450['getRanges']()]));for(let _0x2daedd=0x0;_0x2daedd<_0x54a540[_0x3efb('0x8f')];_0x2daedd++){if(_0x4daad7(this,_0x54a540[_0x2daedd],_0x54a540,_0x2daedd+0x1))return!0x0;}for(let _0x43de21=0x0;_0x43de21<_0x54a540['length'];_0x43de21++){if(_0x4daad7(this,_0x54a540[_0x43de21],_0x2a457a,0x0))return!0x0;}return!0x1;function _0x4daad7(_0x4e8a2b,_0x2ce7fd,_0x29f4bd,_0x55e6a6){for(let _0x432b72=_0x55e6a6;_0x432b72<_0x29f4bd[_0x3efb('0x8f')];_0x432b72++){const _0x36defb=_0x29f4bd[_0x432b72];if(_0x36defb['type']!==_0x2ce7fd[_0x3efb('0x64')]||_0x36defb[_0x3efb('0x110')]['id']!==_0x2ce7fd[_0x3efb('0x110')]['id']||_0x36defb['subType']!==_0x2ce7fd[_0x3efb('0x1')])continue;const _0x33cc98=_0x13f772[_0x3efb('0x107')](_0x2ce7fd),_0x50ec97=_0x199e8b['get'](_0x2ce7fd),_0x38ba69=_0x199e8b[_0x3efb('0x107')](_0x36defb),_0x5d5c09=_0x2ce7fd[_0x3efb('0xfb')]&&_0x2ce7fd[_0x3efb('0xfb')][_0x3efb('0x8f')],_0x140dc0=_0x36defb[_0x3efb('0xfb')]&&_0x36defb[_0x3efb('0xfb')][_0x3efb('0x8f')];if(!_0x5d5c09&&_0x33cc98(_0x38ba69,_0x50ec97))return _0x4e8a2b[_0x3efb('0x113')](_0x36defb,_0x2ce7fd),_0x199e8b[_0x3efb('0x139')](_0x2ce7fd),!0x0;if(!_0x140dc0&&_0x33cc98(_0x50ec97,_0x38ba69))return _0x4e8a2b[_0x3efb('0x113')](_0x2ce7fd,_0x36defb),_0x199e8b[_0x3efb('0x139')](_0x36defb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5dd328,_0x3ce5f4){if(_0x5dd328[_0x3efb('0x35')])for(const _0x42feef of _0x3ce5f4[_0x3efb('0x10f')]())_0x5dd328['addRange'](_0x42feef);else{const _0x336bc8=_0x3ce5f4[_0x3efb('0x8b')]()[_0x3efb('0x112')];this[_0x3efb('0xdc')](_0x5dd328,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x5dd328[_0x3efb('0x8b')]()[_0x3efb('0x115')],_0x336bc8));}_0x3ce5f4[_0x3efb('0xe0')]();}}class vt{constructor(_0x37b3ad){this[_0x3efb('0x17')]=_0x37b3ad,this[_0x3efb('0x120')]=_0x37b3ad['model'],this[_0x3efb('0x32')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3efb('0xd3')]();}['buildSuggestion'](_0x1f53ba,_0x379a11,_0x501e2d,_0x276876,_0x35b550,_0x456ade){return new _0x3dc7ba(this['_model'],{'type':_0x1f53ba,'subType':_0x379a11,'id':_0x501e2d,'author':_0x276876,'creator':_0x276876,'attributes':_0x35b550,'onAttributesChange':_0x456ade,'onAccept':(..._0x3e5cf0)=>this[_0x3efb('0xb1')](_0x1f53ba,_0x379a11,_0x3efb('0x62'))(..._0x3e5cf0),'onDiscard':(..._0x559203)=>this[_0x3efb('0xb1')](_0x1f53ba,_0x379a11,_0x3efb('0xf3'))(..._0x559203)});}['registerCustomCallback'](_0x300d54,_0x2fef58,_0x506db3,_0x1b67ae){const _0x2379d2=_0x300d54+':'+_0x2fef58+':'+_0x506db3;this[_0x3efb('0x32')][_0x3efb('0x101')](_0x2379d2,_0x1b67ae);}[_0x3efb('0xb1')](_0x2bde42,_0x11072b,_0x1da280){const _0x451ef9=_0x2bde42+':'+_0x11072b+':'+_0x1da280;return this[_0x3efb('0x32')][_0x3efb('0x107')](_0x451ef9)||this['_defaultCallbacks'][_0x3efb('0x107')](_0x2bde42+':'+_0x1da280);}['_registerDefaultCallbacks'](){const _0x17ef0c=()=>{},_0x262b86=_0x2f408d=>{_0x2f408d[_0x3efb('0x11')]((_0x6cb813,_0x1a06a8)=>_0x6cb813[_0x3efb('0x115')][_0x3efb('0xcf')](_0x1a06a8['start'])?0x1:-0x1),this[_0x3efb('0x120')][_0x3efb('0x90')](_0x483deb=>{for(const _0x474256 of _0x2f408d){let _0x33a431;_0x33a431=_0x474256[_0x3efb('0x112')][_0x3efb('0x14')]&&_0x474256[_0x3efb('0x112')][_0x3efb('0x5e')]==_0x474256[_0x3efb('0x115')][_0x3efb('0x47')]?_0x483deb['createSelection'](_0x474256['start'][_0x3efb('0x47')],'on'):_0x483deb[_0x3efb('0xc9')](_0x474256),this['_model']['deleteContent'](_0x33a431,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c89a1=(_0x10edb3,_0x20d357)=>{this[_0x3efb('0x120')][_0x3efb('0x90')](_0x51bb9f=>{const {commandName:_0x2822d8,commandParams:_0x1b31da=[]}=_0x20d357,_0x57da0b=_0x10edb3[_0x3efb('0x3f')](_0xbd4392=>(Dt(_0xbd4392)&&(_0xbd4392=this['_model']['createRange'](_0xbd4392[_0x3efb('0x112')])),_0xbd4392))[_0x3efb('0x33')](_0x343c3a=>'$graveyard'!==_0x343c3a['root'][_0x3efb('0xb8')]);if(_0x57da0b[_0x3efb('0x8f')]<0x1)return;const _0x5e3a61=Array[_0x3efb('0x128')](this[_0x3efb('0x120')][_0x3efb('0xa1')][_0x3efb('0x5f')][_0x3efb('0x10f')]())[_0x3efb('0x3f')](_0x3e2439=>_0x12e3b7[_0x3efb('0xe1')](_0x3e2439));_0x51bb9f['setSelection'](_0x57da0b);for(const _0xdab0fb of this[_0x3efb('0x17')]['commands'][_0x3efb('0x98')]())_0xdab0fb[_0x3efb('0x9a')]();_0x1b31da[_0x3efb('0x104')]({'forceDefaultExecution':!0x0}),this[_0x3efb('0x17')]['execute'](_0x2822d8,..._0x1b31da);const _0x4e606a=_0x5e3a61[_0x3efb('0x33')](_0x1906da=>_0x3efb('0x103')!=_0x1906da[_0x3efb('0x67')][_0x3efb('0xb8')]);_0x4e606a[_0x3efb('0x8f')]>0x0&&_0x51bb9f[_0x3efb('0x19')](_0x4e606a);for(const _0x145f8d of _0x5e3a61)_0x145f8d[_0x3efb('0x34')]();});},_0x346cbe=(_0x2bfa67,_0x487554)=>0x1==_0x2bfa67[_0x3efb('0x8f')]&&0x1==_0x487554[_0x3efb('0x8f')]&&_0x2bfa67[0x0]['end']['isEqual'](_0x487554[0x0][_0x3efb('0x115')]),_0x48cd22=(_0x2fdfbf,_0x4971da,_0x38aa37,_0xfcab78)=>$t(_0x2fdfbf,_0x4971da,_0x38aa37,_0xfcab78,this[_0x3efb('0x120')])?[_0x2fdfbf,_0x4971da]:$t(_0x4971da,_0x2fdfbf,_0xfcab78,_0x38aa37,this[_0x3efb('0x120')])?[_0x4971da,_0x2fdfbf]:null;this[_0x3efb('0xa2')]['set']('insertion:accept',_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x12e'),_0x262b86),this[_0x3efb('0xa2')][_0x3efb('0x101')]('insertion:join',_0x346cbe),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x16'),_0x48cd22),this['_defaultCallbacks'][_0x3efb('0x101')](_0x3efb('0x12f'),_0x262b86),this['_defaultCallbacks']['set'](_0x3efb('0x2f'),_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x2e'),_0x346cbe),this['_defaultCallbacks']['set'](_0x3efb('0x12'),_0x48cd22),this[_0x3efb('0xa2')]['set'](_0x3efb('0x12b'),_0x2c89a1),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0xed'),_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0xd1'),_0x346cbe),this[_0x3efb('0xa2')][_0x3efb('0x101')]('formatInline:chain',_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x116'),_0x2c89a1),this['_defaultCallbacks']['set'](_0x3efb('0x18'),_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')]('formatBlock:join',_0x346cbe),this['_defaultCallbacks'][_0x3efb('0x101')](_0x3efb('0x74'),_0x17ef0c);}}function At(_0x58f978,_0x1109d3,_0x3d4825){for(const _0x3336b7 of _0x1109d3[_0x3efb('0x5e')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3336b7['root']==_0x3336b7)return!0x1;if(!_0x3d4825[_0x3efb('0xc')](_0x3336b7))return!0x1;if(_0x58f978[_0x3efb('0x1d')](_0x3336b7)||_0x58f978[_0x3efb('0x11d')](_0x3336b7))return!0x0;}return!0x1;}function Dt(_0x4762b0){return _0x4762b0[_0x3efb('0x112')][_0x3efb('0x5e')]==_0x4762b0[_0x3efb('0x115')][_0x3efb('0x47')]&&_0x4762b0[_0x3efb('0x112')][_0x3efb('0x5c')];}function Ct(_0x26d6e4,_0x43ac5b,_0x570cc1,_0x41c469){const _0xfeb7a2=_0x44a397=>!_0x44a397['item']['is'](_0x3efb('0xf5'))&&!_0x41c469[_0x3efb('0x1d')](_0x44a397[_0x3efb('0x10c')]),_0x22aa52=_0x26d6e4[_0x3efb('0x115')][_0x3efb('0xb0')](_0xfeb7a2),_0x5ded53=_0x26d6e4[_0x3efb('0x112')]['getLastMatchingPosition'](_0xfeb7a2,{'direction':_0x3efb('0xc3')});return(!_0x26d6e4[_0x3efb('0x115')][_0x3efb('0x6b')](_0x22aa52)||!_0x26d6e4[_0x3efb('0x112')][_0x3efb('0x6b')](_0x5ded53))&&(_0x22aa52[_0x3efb('0xcf')](_0x5ded53)?_0x570cc1[_0x3efb('0x3b')](_0x43ac5b,{'range':_0x570cc1[_0x3efb('0xb2')](_0x22aa52,_0x5ded53)}):_0x570cc1[_0x3efb('0x69')](_0x43ac5b),!0x0);}function Bt(_0x5baade){return _0x90c1fd(_0x5baade);}function _t(_0x40e1f7){const _0x4c08fd=_0x40e1f7[_0x3efb('0x115')][_0x3efb('0x47')];return _0x4c08fd&&_0x4c08fd['is'](_0x3efb('0xf2'));}function Mt(_0x6a9c9b,_0x143a36){const _0x35b8a1=_0x143a36[_0x3efb('0x94')]['isObject'](_0x6a9c9b)||_0x143a36[_0x3efb('0x94')][_0x3efb('0x66')](_0x6a9c9b);return _0x143a36[_0x3efb('0xb2')](_0x143a36[_0x3efb('0xcc')](_0x6a9c9b,_0x3efb('0x8a')),_0x35b8a1?_0x143a36[_0x3efb('0xa')](_0x6a9c9b):_0x143a36[_0x3efb('0xcc')](_0x6a9c9b,'end'));}function $t(_0x1409b5,_0xed97e5,_0x825298,_0x11cc7c,_0x103af0){if(_0x825298[_0x3efb('0x112')][_0x3efb('0x6b')](_0x11cc7c['start']))return!0x0;if(_0x1409b5[_0x3efb('0x64')]!=_0xed97e5[_0x3efb('0x64')])return!0x1;if(!_0x825298[_0x3efb('0x112')][_0x3efb('0x10b')](_0x11cc7c['start']))return!0x1;const _0x84923f=_0x103af0['createRange'](_0x825298['end'],_0x11cc7c['start'])[_0x3efb('0x7b')]();for(const _0x1e7003 of _0x84923f)if([_0x3efb('0x63'),_0x3efb('0xbd')][_0x3efb('0xe6')](_0x1e7003['type'])&&_0x103af0[_0x3efb('0x94')][_0x3efb('0x11d')](_0x1e7003[_0x3efb('0x10c')]))return!0x1;return!0x0;}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @module track-changes/trackchangesui
3
+ */
4
+ import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides UI for track changes plugin.
7
+ *
8
+ * This plugin displays {@link module:track-changes/suggestion~Suggestion suggestions} as a
9
+ * {@link module:comments/annotations/annotations~Annotations}.
10
+ *
11
+ * @extends module:core/plugin~Plugin
12
+ */
13
+ export default class TrackChangesUI extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get requires(): PluginDependencies;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): 'TrackChangesUI';
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(editor: Editor);
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ destroy(): void;
34
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x259f=['getJoined','mainView','change:activeAnnotations','isOn','createAnnotationView','suggestionChanged','trackChanges.disableComments','_createUIButton','Annotations','CommentView','suggestion-','hasSuggestion','editor','define','activeMarkers','trackChanges','_annotationViews','createCommentThreadController','map','view','isEnabled','locale','from','length','suggestionLoaded','destroy','_updateController','getRanges','_handleSuggestionControllerDelayed','addComment','comments.editorConfig','head','remove','CommentsRepository','filter','suggestionUnloaded','pluginName','_suggestionToController','Accept\x20all\x20selected\x20suggestions','TrackChangesEditing','push','CommentsUI','value','refreshSelectedViews','init','TrackChangesUI','execute','addSourceCollector','getDescriptions','focus','componentFactory','bind','editing','Accept\x20all\x20suggestions','config','trackChanges.SuggestionThreadView','Track\x20changes','isMultiRange','set','keys','discardButton','get','model','acceptAllSuggestions','comments.maxThreadTotalWeight','listenTo','_handleControllerBuffer','unbind','Discard\x20all\x20selected\x20suggestions','getAllAdjacentSuggestions','commandName','acceptSelectedSuggestions','innerView','delete','_descriptionFactory','createAnnotation','discardSelectedSuggestions','_refreshActiveMarkers','actionView','some','commentThread','stopListening','_disableComments','comments.maxCommentsWhenCollapsed','registerAnnotation','buttonView','EditorAnnotations','separator','plugins','reduce','button','change:previous','add','isInContent','descriptionParts','comments.maxCommentCharsWhenCollapsed','type','_viewToController','_destroyController','commands','arrowView','getMarkerNames','getSuggestion','activeAnnotations'];(function(_0x353808,_0x259f9e){const _0x1c26b2=function(_0x129e56){while(--_0x129e56){_0x353808['push'](_0x353808['shift']());}};_0x1c26b2(++_0x259f9e);}(_0x259f,0x143));const _0x1c26=function(_0x353808,_0x259f9e){_0x353808=_0x353808-0x0;let _0x1c26b2=_0x259f[_0x353808];return _0x1c26b2;};import{Plugin as _0x3b1ba6}from'ckeditor5/src/core';import{Collection as _0x3bc8d8}from'ckeditor5/src/utils';import{Model as _0x45cc2c,SplitButtonView as _0x2f9082,createDropdown as _0x37fe47,addListToDropdown as _0x25bb73}from'ckeditor5/src/ui';import{Users as _0x5b013f,getDateTimeFormatter as _0x2669e4,getAllMarkersDomElementsSorted as _0x23b763}from'ckeditor5-collaboration/src/collaboration-core';import _0x290aa4 from'./trackchangesediting';import _0x150ccd from'./ui/suggestioncontroller';import _0x3fe325 from'./ui/view/suggestionthreadview';import{getTranslation as _0x13ca5a}from'./utils/common-translations';import _0x253a9d from'../theme/icons/track-changes.svg';export default class d extends _0x3b1ba6{static get['requires'](){return[_0x290aa4,_0x5b013f,_0x1c26('0x16'),_0x1c26('0x65'),_0x1c26('0x4b')];}static get[_0x1c26('0x19')](){return _0x1c26('0x22');}constructor(_0x159cb6){super(_0x159cb6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x1c26('0x37')]=new Map();const _0x5d334c=this[_0x1c26('0x1')][_0x1c26('0x2b')];_0x5d334c[_0x1c26('0x2')](_0x1c26('0x2c'),_0x3fe325),_0x5d334c[_0x1c26('0x2')](_0x1c26('0x63'),!0x1),this[_0x1c26('0x47')]=_0x5d334c[_0x1c26('0x32')](_0x1c26('0x63'));}[_0x1c26('0x11')](_0x3ac3b6,_0xcd14c4){0x0===this[_0x1c26('0x37')]['size']&&setTimeout(()=>{for(const [_0x1f267c,_0x459f2e]of this[_0x1c26('0x37')]){const _0x9e787a=this[_0x1c26('0x1a')]['has'](_0x1f267c);_0x9e787a||_0x459f2e?_0x9e787a&&_0x459f2e&&this[_0x1c26('0x57')](_0x1f267c):this['_initializeController'](_0x1f267c);}this[_0x1c26('0x1')]['plugins']['get'](_0x1c26('0x4b'))[_0x1c26('0x20')](),this[_0x1c26('0x42')](),this[_0x1c26('0x37')]['clear']();},0xa),this['_handleControllerBuffer'][_0x1c26('0x2f')](_0x3ac3b6,_0xcd14c4);}[_0x1c26('0x21')](){const _0x4ea51a=this[_0x1c26('0x1')],_0x446067=_0x4ea51a[_0x1c26('0x4d')][_0x1c26('0x32')](_0x290aa4),_0x54a0e8=_0x4ea51a['plugins'][_0x1c26('0x32')]('Annotations'),_0x2ede1b=_0x4ea51a[_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x4b')),_0x644f7e=_0x4ea51a['plugins']['get']('CommentsRepository');_0x4ea51a['ui'][_0x1c26('0x27')][_0x1c26('0x51')]('trackChanges',_0x7052c6=>this[_0x1c26('0x64')](_0x7052c6)),_0x2ede1b[_0x1c26('0x24')](()=>{const _0x15231a=[];for(const [_0x2ed9ad,_0x2375a8]of Array[_0x1c26('0xb')](this[_0x1c26('0x1a')])){const _0x139d4e=_0x2ed9ad['getAllAdjacentSuggestions'](),_0x41eac6=[];for(const _0x5663cd of _0x139d4e){if(!_0x5663cd[_0x1c26('0x52')])continue;if(_0x5663cd[_0x1c26('0x2e')]){_0x41eac6[_0x1c26('0x1d')](..._0x5663cd[_0x1c26('0x10')]());continue;}const _0x4bfcdf=_0x5663cd['getFirstRange']();if(_0x41eac6[_0x1c26('0xc')]>0x0){const _0x4cc7f6=_0x41eac6[0x0][_0x1c26('0x5d')](_0x4bfcdf);if(_0x4cc7f6){_0x41eac6[0x0]=_0x4cc7f6;continue;}}_0x41eac6[_0x1c26('0x1d')](_0x4bfcdf);}_0x15231a[_0x1c26('0x1d')]([_0x2375a8[_0x1c26('0x8')],_0x41eac6]);}return _0x15231a;}),this[_0x1c26('0x36')](_0x446067,_0x1c26('0xd'),(_0x5b1c36,_0xc3395c)=>{this[_0x1c26('0x36')](_0xc3395c,_0x1c26('0x50'),(_0x1759b9,_0x4f8783,_0x21f97b,_0x3ff627)=>{_0xc3395c['isInContent']&&(null==_0x21f97b?(this['_updateController'](_0x3ff627[_0x1c26('0x14')]),this['_handleSuggestionControllerDelayed'](_0xc3395c,!0x1)):(this['_updateController'](_0x21f97b[_0x1c26('0x14')]),this[_0x1c26('0x11')](_0xc3395c,!0x0)));}),null===_0xc3395c['previous']?this[_0x1c26('0x11')](_0xc3395c,!0x1):this['_updateController'](_0xc3395c[_0x1c26('0x14')]);}),this['listenTo'](_0x446067,_0x1c26('0x18'),(_0x4309e2,_0x227b19,_0x72e61f)=>{this[_0x1c26('0x46')](_0x227b19,'change:previous'),this[_0x1c26('0x37')]['delete'](_0x227b19);const _0x147e59=_0x72e61f?_0x72e61f[_0x1c26('0x14')]:_0x227b19,_0x5ddb21=this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x147e59);null!==_0x72e61f&&this[_0x1c26('0xf')](_0x147e59),null===_0x72e61f&&_0x5ddb21&&this[_0x1c26('0x57')](_0x227b19);}),this[_0x1c26('0x36')](_0x446067,_0x1c26('0x62'),(_0xf02c35,_0x17081d)=>{this[_0x1c26('0xf')](_0x17081d);}),this[_0x1c26('0x36')](_0x54a0e8,_0x1c26('0x5f'),()=>{this[_0x1c26('0x42')]();}),this[_0x1c26('0x36')](_0x644f7e,_0x1c26('0x12'),(_0x1c3993,{threadId:_0x92374,isFromAdapter:_0x1f07eb})=>{if(_0x1f07eb||!_0x446067[_0x1c26('0x0')](_0x92374))return;const _0x3464b9=_0x446067[_0x1c26('0x5b')](_0x92374);this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x3464b9)[_0x1c26('0x8')][_0x1c26('0x26')]();},{'priority':'lowest'});}[_0x1c26('0x42')](){const _0x182046=this[_0x1c26('0x1')][_0x1c26('0x4d')]['get']('Annotations'),_0x42d2d6=this['editor']['plugins'][_0x1c26('0x32')](_0x290aa4),_0x14ab4d=Array[_0x1c26('0xb')](_0x182046[_0x1c26('0x5c')],_0x1c3a95=>_0x1c3a95[_0x1c26('0x3d')])[_0x1c26('0x17')](_0x111ac7=>this[_0x1c26('0x56')]['has'](_0x111ac7)),_0x7453c=[];for(const _0x59e100 of _0x14ab4d){const _0x349813=this['_viewToController'][_0x1c26('0x32')](_0x59e100)[_0x1c26('0x33')][_0x1c26('0x3a')]();_0x7453c[_0x1c26('0x1d')](..._0x349813[_0x1c26('0x4e')]((_0x4eb2d9,_0x1b79a8)=>[..._0x4eb2d9,..._0x1b79a8[_0x1c26('0x5a')]()],[]));}_0x42d2d6[_0x1c26('0x3')]=_0x7453c;}[_0x1c26('0x64')](_0x240d81){const _0x1b96b6=_0x37fe47(_0x240d81,_0x2f9082),_0x1f6c17=this[_0x1c26('0x1')][_0x1c26('0x58')]['get'](_0x1c26('0x4')),_0x9f80a1=_0x13ca5a(_0x240d81,_0x1c26('0x2d'));_0x1b96b6[_0x1c26('0x4a')]['set']({'tooltip':_0x9f80a1,'label':_0x9f80a1,'icon':_0x253a9d}),_0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x28')](_0x1c26('0x60'))['to'](_0x1f6c17,_0x1c26('0x1f')),_0x1b96b6['buttonView']['on']('execute',()=>{_0x1f6c17[_0x1c26('0x23')](),this[_0x1c26('0x1')][_0x1c26('0x29')][_0x1c26('0x8')][_0x1c26('0x26')]();});const _0x39bbbe=new _0x3bc8d8(),_0x50210d=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x9f80a1,'commandName':'trackChanges'}},{'type':_0x1c26('0x4c')},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,_0x1c26('0x2a')),'commandName':_0x1c26('0x34')}},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,_0x1c26('0x1b')),'commandName':_0x1c26('0x3c')}},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x1c26('0x4f'),'model':{'withText':!0x0,'label':_0x13ca5a(_0x240d81,_0x1c26('0x39')),'commandName':_0x1c26('0x41')}}];for(const _0x28c1d5 of _0x50210d){const _0x242c40={'type':_0x28c1d5[_0x1c26('0x55')]};if(_0x28c1d5[_0x1c26('0x33')]){const _0x479e3c=new _0x45cc2c(_0x28c1d5['model']),_0x3a960a=this[_0x1c26('0x1')]['commands'][_0x1c26('0x32')](_0x479e3c[_0x1c26('0x3b')]);_0x479e3c[_0x1c26('0x28')](_0x1c26('0x60'),'isEnabled')['to'](_0x3a960a,_0x1c26('0x1f'),_0x1c26('0x9')),_0x242c40[_0x1c26('0x33')]=_0x479e3c;}_0x39bbbe[_0x1c26('0x51')](_0x242c40);}_0x25bb73(_0x1b96b6,_0x39bbbe);const _0x292013=_0x50210d[_0x1c26('0x17')](_0x134a14=>null!=_0x134a14[_0x1c26('0x33')])[_0x1c26('0x7')](_0x2488cb=>this['editor'][_0x1c26('0x58')][_0x1c26('0x32')](_0x2488cb[_0x1c26('0x33')][_0x1c26('0x3b')]));return _0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x43')]['unbind'](_0x1c26('0x9')),_0x1b96b6[_0x1c26('0x4a')]['arrowView'][_0x1c26('0x38')](_0x1c26('0x9')),_0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x43')][_0x1c26('0x28')]('isEnabled')['to'](_0x1f6c17,'isEnabled'),_0x1b96b6[_0x1c26('0x4a')][_0x1c26('0x59')][_0x1c26('0x28')](_0x1c26('0x9'))['toMany'](_0x292013,'isEnabled',(..._0x1cb3ef)=>_0x1cb3ef[_0x1c26('0x44')](_0x567d30=>_0x567d30)),_0x1b96b6['on'](_0x1c26('0x23'),_0x2f974b=>{this[_0x1c26('0x1')][_0x1c26('0x23')](_0x2f974b['source'][_0x1c26('0x3b')]),this['editor'][_0x1c26('0x29')][_0x1c26('0x8')][_0x1c26('0x26')]();}),_0x1b96b6;}['_initializeController'](_0x55d761){const _0x4b6fef=this[_0x1c26('0x1')],_0x1bc1fc=_0x4b6fef['config'],_0x474f60=_0x4b6fef[_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x65')),_0x47615a=_0x4b6fef['plugins'][_0x1c26('0x32')]('CommentsRepository'),_0x1f54c8=_0x4b6fef[_0x1c26('0x4d')]['get'](_0x1c26('0x4b')),_0x466123=_0x4b6fef[_0x1c26('0x4d')]['get'](_0x5b013f)['me'],_0x59ee3c=_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x4'))['SuggestionThreadView'],{CommentsListView:_0x465736,CommentThreadInputView:_0x1e5c80}=_0x4b6fef['plugins'][_0x1c26('0x32')](_0x1c26('0x1e'));let _0xed1ee4,_0x1d3a0d;this['_annotationViews']['has'](_0x55d761['id'])?(_0x1d3a0d=this['_annotationViews'][_0x1c26('0x32')](_0x55d761['id']),_0xed1ee4=_0x1d3a0d['mainView']):(_0xed1ee4=new _0x59ee3c(_0x4b6fef['locale'],_0x55d761,_0x466123,{'disableComments':this[_0x1c26('0x47')],'editorConfig':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x13')),'maxCommentsWhenCollapsed':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x48')),'maxThreadTotalWeight':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x35')),'maxCommentCharsWhenCollapsed':_0x1bc1fc[_0x1c26('0x32')](_0x1c26('0x54')),'formatDateTime':_0x2669e4(_0x1bc1fc['get'](_0x1c26('0xa'))),'CommentView':_0x1bc1fc[_0x1c26('0x32')]('comments')[_0x1c26('0x66')],'CommentsListView':_0x465736,'CommentThreadInputView':_0x1e5c80}),_0xed1ee4['acceptButton']['on'](_0x1c26('0x23'),()=>{_0x4b6fef['editing']['view']['focus']();}),_0xed1ee4[_0x1c26('0x31')]['on'](_0x1c26('0x23'),()=>{_0x4b6fef[_0x1c26('0x29')][_0x1c26('0x8')][_0x1c26('0x26')]();}),_0x1d3a0d=_0x474f60[_0x1c26('0x61')](this[_0x1c26('0x1')][_0x1c26('0xa')],_0xed1ee4),_0x1d3a0d[_0x1c26('0x28')]('isDirty')['to'](_0xed1ee4,'isDirty'),_0x1d3a0d['bind'](_0x1c26('0xc'))['to'](_0xed1ee4),_0x1d3a0d[_0x1c26('0x28')](_0x1c26('0x55'))['to'](_0xed1ee4,_0x1c26('0x55'),_0x59365b=>_0x1c26('0x67')+_0x59365b),this[_0x1c26('0x5')]['set'](_0x55d761['id'],_0x1d3a0d));const _0x5dc991=_0x47615a[_0x1c26('0x6')](_0x55d761[_0x1c26('0x45')],_0xed1ee4),_0x5b53be=new _0x150ccd(_0x4b6fef,_0x55d761,_0xed1ee4,_0x5dc991),_0x2abac7=_0x55d761[_0x1c26('0x3a')]()[_0x1c26('0x17')](_0x27b602=>_0x27b602['isInContent']);_0xed1ee4['descriptionParts']=_0x4b6fef[_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x1c'))[_0x1c26('0x3f')]['getDescriptions'](_0x2abac7),this[_0x1c26('0x1a')][_0x1c26('0x2f')](_0x55d761,_0x5b53be),this['_viewToController'][_0x1c26('0x2f')](_0xed1ee4,_0x5b53be);const _0xc8536f=_0x474f60[_0x1c26('0x40')]({'view':_0x1d3a0d,'target':()=>{const _0xf31735=[],_0x1bf893=_0x55d761[_0x1c26('0x3a')]()[_0x1c26('0x17')](_0x325ae7=>_0x325ae7[_0x1c26('0x52')]);for(const _0x444896 of _0x1bf893)_0xf31735[_0x1c26('0x1d')](..._0x444896['getMarkers']());return _0x23b763(_0x4b6fef[_0x1c26('0x29')],_0xf31735);},'type':()=>_0x1c26('0x67')+_0x5b53be[_0x1c26('0x8')][_0x1c26('0x55')]});_0x474f60[_0x1c26('0x51')](_0xc8536f),_0x1f54c8[_0x1c26('0x49')](_0xc8536f);}[_0x1c26('0x57')](_0x3172ba){const _0x35bc1b=this['editor'][_0x1c26('0x4d')][_0x1c26('0x32')](_0x1c26('0x65')),_0x4adfa8=this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x3172ba),_0x36000d=_0x4adfa8['view'],_0x898b71=_0x35bc1b['getByInnerView'](_0x36000d);_0x898b71&&_0x35bc1b[_0x1c26('0x15')](_0x898b71),this['_suggestionToController'][_0x1c26('0x3e')](_0x3172ba),this[_0x1c26('0x56')][_0x1c26('0x3e')](_0x36000d),_0x4adfa8[_0x1c26('0xe')]();}[_0x1c26('0xf')](_0x3733dc){if(!_0x3733dc[_0x1c26('0x52')]||!this[_0x1c26('0x1a')]['has'](_0x3733dc))return;const _0xab93cf=this['editor'][_0x1c26('0x4d')]['get'](_0x1c26('0x1c')),_0x5800d3=this[_0x1c26('0x1a')][_0x1c26('0x32')](_0x3733dc),_0x14c069=_0x3733dc[_0x1c26('0x3a')]();_0x5800d3['view'][_0x1c26('0x53')]=_0xab93cf[_0x1c26('0x3f')][_0x1c26('0x25')](_0x14c069);}[_0x1c26('0xe')](){for(const _0x53a14d of this[_0x1c26('0x1a')][_0x1c26('0x30')]())this[_0x1c26('0x57')](_0x53a14d);for(const _0x5f05da of this[_0x1c26('0x5')]['values']())_0x5f05da[_0x1c26('0x5e')][_0x1c26('0xe')]();super[_0x1c26('0xe')]();}}
23
+ const _0x3452=['registerAnnotation','SuggestionThreadView','createAnnotationView','config','isOn','suggestionLoaded','commentThread','CommentView','commands','_refreshActiveMarkers','trackChanges.SuggestionThreadView','descriptionParts','editor','Discard\x20all\x20suggestions','Track\x20changes','focus','_handleControllerBuffer','_descriptionFactory','bind','comments.maxCommentsWhenCollapsed','locale','buttonView','activeMarkers','hasSuggestion','comments.maxThreadTotalWeight','isMultiRange','value','listenTo','define','editing','_handleSuggestionControllerDelayed','trackChanges.disableComments','discardAllSuggestions','view','_updateController','_createUIButton','unbind','_suggestionToController','pluginName','values','destroy','plugins','getSuggestion','source','getFirstRange','filter','comments','isInContent','add','getMarkerNames','acceptAllSuggestions','execute','some','innerView','delete','EditorAnnotations','_annotationViews','size','discardButton','componentFactory','button','suggestionChanged','stopListening','refreshSelectedViews','actionView','change:previous','model','createCommentThreadController','getByInnerView','init','type','TrackChangesEditing','_destroyController','acceptSelectedSuggestions','push','suggestion-','set','reduce','activeAnnotations','_disableComments','mainView','trackChanges','toMany','Annotations','addComment','getRanges','remove','previous','arrowView','Discard\x20all\x20selected\x20suggestions','from','getAllAdjacentSuggestions','isEnabled','_viewToController','has','addSourceCollector','Accept\x20all\x20suggestions','comments.maxCommentCharsWhenCollapsed','keys','CommentsUI','getJoined','switchbutton','commandName','get','isDirty','Accept\x20all\x20selected\x20suggestions','length','getDescriptions','head','separator','change:activeAnnotations','requires'];(function(_0x356f7e,_0x3452e8){const _0x3ce1bf=function(_0x50324b){while(--_0x50324b){_0x356f7e['push'](_0x356f7e['shift']());}};_0x3ce1bf(++_0x3452e8);}(_0x3452,0x72));const _0x3ce1=function(_0x356f7e,_0x3452e8){_0x356f7e=_0x356f7e-0x0;let _0x3ce1bf=_0x3452[_0x356f7e];return _0x3ce1bf;};import{Plugin as _0x327a75}from'ckeditor5/src/core';import{Collection as _0x5d3611}from'ckeditor5/src/utils';import{Model as _0x481a92,SplitButtonView as _0xc650fd,createDropdown as _0x228168,addListToDropdown as _0x36df0a}from'ckeditor5/src/ui';import{Users as _0x432f34,getDateTimeFormatter as _0x38e33a,getAllMarkersDomElementsSorted as _0x2ad89a}from'ckeditor5-collaboration/src/collaboration-core';import _0x4679e0 from'./trackchangesediting';import _0x34528f from'./ui/suggestioncontroller';import _0x44158d from'./ui/view/suggestionthreadview';import{getTranslation as _0x38b805}from'./utils/common-translations';import _0x478e96 from'../theme/icons/track-changes.svg';export default class d extends _0x327a75{static get[_0x3ce1('0x6d')](){return[_0x4679e0,_0x432f34,'CommentsRepository',_0x3ce1('0x51'),_0x3ce1('0x35')];}static get[_0x3ce1('0x24')](){return'TrackChangesUI';}constructor(_0x1a27c2){super(_0x1a27c2),this[_0x3ce1('0x23')]=new Map(),this[_0x3ce1('0x5b')]=new Map(),this[_0x3ce1('0x36')]=new Map(),this[_0x3ce1('0xe')]=new Map();const _0x262d97=this[_0x3ce1('0xa')][_0x3ce1('0x1')];_0x262d97[_0x3ce1('0x1a')](_0x3ce1('0x8'),_0x44158d),_0x262d97[_0x3ce1('0x1a')](_0x3ce1('0x1d'),!0x1),this[_0x3ce1('0x4d')]=_0x262d97[_0x3ce1('0x65')](_0x3ce1('0x1d'));}['_handleSuggestionControllerDelayed'](_0x4a0a2d,_0x2083ca){0x0===this['_handleControllerBuffer'][_0x3ce1('0x37')]&&setTimeout(()=>{for(const [_0x4489,_0x3c6db2]of this['_handleControllerBuffer']){const _0x31e7da=this[_0x3ce1('0x23')][_0x3ce1('0x5c')](_0x4489);_0x31e7da||_0x3c6db2?_0x31e7da&&_0x3c6db2&&this[_0x3ce1('0x46')](_0x4489):this['_initializeController'](_0x4489);}this[_0x3ce1('0xa')][_0x3ce1('0x27')]['get'](_0x3ce1('0x35'))[_0x3ce1('0x3d')](),this[_0x3ce1('0x7')](),this[_0x3ce1('0xe')]['clear']();},0xa),this['_handleControllerBuffer'][_0x3ce1('0x4a')](_0x4a0a2d,_0x2083ca);}[_0x3ce1('0x43')](){const _0x31ed48=this[_0x3ce1('0xa')],_0x29c090=_0x31ed48['plugins']['get'](_0x3ce1('0x45')),_0x1b4bca=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x51')),_0x4f4401=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x35')),_0x55e3a2=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')]('CommentsRepository');_0x31ed48['ui'][_0x3ce1('0x39')][_0x3ce1('0x2e')](_0x3ce1('0x4f'),_0xdad239=>this['_createUIButton'](_0xdad239)),_0x4f4401[_0x3ce1('0x5d')](()=>{const _0x2f44ca=[];for(const [_0x517e4f,_0x189e53]of Array['from'](this[_0x3ce1('0x23')])){const _0x294f6a=_0x517e4f[_0x3ce1('0x59')](),_0x402acf=[];for(const _0x4e897a of _0x294f6a){if(!_0x4e897a['isInContent'])continue;if(_0x4e897a[_0x3ce1('0x17')]){_0x402acf[_0x3ce1('0x48')](..._0x4e897a[_0x3ce1('0x53')]());continue;}const _0x4d77b3=_0x4e897a[_0x3ce1('0x2a')]();if(_0x402acf[_0x3ce1('0x68')]>0x0){const _0x5962b1=_0x402acf[0x0][_0x3ce1('0x62')](_0x4d77b3);if(_0x5962b1){_0x402acf[0x0]=_0x5962b1;continue;}}_0x402acf[_0x3ce1('0x48')](_0x4d77b3);}_0x2f44ca[_0x3ce1('0x48')]([_0x189e53[_0x3ce1('0x1f')],_0x402acf]);}return _0x2f44ca;}),this[_0x3ce1('0x19')](_0x29c090,_0x3ce1('0x3'),(_0x3a977c,_0x372a98)=>{this[_0x3ce1('0x19')](_0x372a98,_0x3ce1('0x3f'),(_0x4b65e8,_0x39eddf,_0x19118e,_0x37c982)=>{_0x372a98[_0x3ce1('0x2d')]&&(null==_0x19118e?(this['_updateController'](_0x37c982[_0x3ce1('0x6a')]),this[_0x3ce1('0x1c')](_0x372a98,!0x1)):(this[_0x3ce1('0x20')](_0x19118e[_0x3ce1('0x6a')]),this[_0x3ce1('0x1c')](_0x372a98,!0x0)));}),null===_0x372a98[_0x3ce1('0x55')]?this[_0x3ce1('0x1c')](_0x372a98,!0x1):this[_0x3ce1('0x20')](_0x372a98[_0x3ce1('0x6a')]);}),this['listenTo'](_0x29c090,'suggestionUnloaded',(_0x50ef10,_0x386785,_0x169272)=>{this[_0x3ce1('0x3c')](_0x386785,_0x3ce1('0x3f')),this[_0x3ce1('0xe')][_0x3ce1('0x34')](_0x386785);const _0x3f279d=_0x169272?_0x169272[_0x3ce1('0x6a')]:_0x386785,_0x164a42=this[_0x3ce1('0x23')][_0x3ce1('0x65')](_0x3f279d);null!==_0x169272&&this[_0x3ce1('0x20')](_0x3f279d),null===_0x169272&&_0x164a42&&this[_0x3ce1('0x46')](_0x386785);}),this[_0x3ce1('0x19')](_0x29c090,_0x3ce1('0x3b'),(_0x5f302e,_0x2c1377)=>{this[_0x3ce1('0x20')](_0x2c1377);}),this[_0x3ce1('0x19')](_0x1b4bca,_0x3ce1('0x6c'),()=>{this['_refreshActiveMarkers']();}),this[_0x3ce1('0x19')](_0x55e3a2,_0x3ce1('0x52'),(_0x24e845,{threadId:_0x1ec517,isFromAdapter:_0x8998bd})=>{if(_0x8998bd||!_0x29c090[_0x3ce1('0x15')](_0x1ec517))return;const _0x410d1f=_0x29c090[_0x3ce1('0x28')](_0x1ec517);this['_suggestionToController'][_0x3ce1('0x65')](_0x410d1f)[_0x3ce1('0x1f')][_0x3ce1('0xd')]();},{'priority':'lowest'});}[_0x3ce1('0x7')](){const _0x24fd34=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x51')),_0xe5c419=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')]('TrackChangesEditing'),_0x1edf86=Array[_0x3ce1('0x58')](_0x24fd34[_0x3ce1('0x4c')],_0xfe41ba=>_0xfe41ba[_0x3ce1('0x33')])[_0x3ce1('0x2b')](_0x3fb3f5=>this[_0x3ce1('0x5b')]['has'](_0x3fb3f5)),_0xa6d1f3=[];for(const _0xb625ce of _0x1edf86){const _0x518d41=this['_viewToController'][_0x3ce1('0x65')](_0xb625ce)['model'][_0x3ce1('0x59')]();_0xa6d1f3[_0x3ce1('0x48')](..._0x518d41[_0x3ce1('0x4b')]((_0x4e2b7a,_0x16508b)=>[..._0x4e2b7a,..._0x16508b[_0x3ce1('0x2f')]()],[]));}_0xe5c419[_0x3ce1('0x14')]=_0xa6d1f3;}[_0x3ce1('0x21')](_0x24eeb0){const _0x2b68da=_0x228168(_0x24eeb0,_0xc650fd),_0x2b691d=this['editor']['commands'][_0x3ce1('0x65')](_0x3ce1('0x4f')),_0x228c1d=_0x38b805(_0x24eeb0,_0x3ce1('0xc'));_0x2b68da['buttonView']['set']({'tooltip':_0x228c1d,'label':_0x228c1d,'icon':_0x478e96}),_0x2b68da['buttonView']['bind'](_0x3ce1('0x2'))['to'](_0x2b691d,_0x3ce1('0x18')),_0x2b68da[_0x3ce1('0x13')]['on'](_0x3ce1('0x31'),()=>{_0x2b691d[_0x3ce1('0x31')](),this[_0x3ce1('0xa')][_0x3ce1('0x1b')]['view'][_0x3ce1('0xd')]();});const _0x2867c2=new _0x5d3611(),_0x471339=[{'type':_0x3ce1('0x63'),'model':{'withText':!0x0,'label':_0x228c1d,'commandName':_0x3ce1('0x4f')}},{'type':_0x3ce1('0x6b')},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x5e')),'commandName':_0x3ce1('0x30')}},{'type':'button','model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x67')),'commandName':_0x3ce1('0x47')}},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0xb')),'commandName':_0x3ce1('0x1e')}},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x57')),'commandName':'discardSelectedSuggestions'}}];for(const _0x24c495 of _0x471339){let _0x32d9e6={'type':_0x3ce1('0x6b')};if(_0x24c495[_0x3ce1('0x40')]){const _0xcaa9d2=new _0x481a92(_0x24c495[_0x3ce1('0x40')]),_0x1ce873=this[_0x3ce1('0xa')][_0x3ce1('0x6')]['get'](_0xcaa9d2[_0x3ce1('0x64')]);_0xcaa9d2[_0x3ce1('0x10')]('isOn',_0x3ce1('0x5a'))['to'](_0x1ce873,_0x3ce1('0x18'),_0x3ce1('0x5a')),_0x32d9e6={'type':_0x24c495[_0x3ce1('0x44')],'model':_0xcaa9d2};}_0x2867c2[_0x3ce1('0x2e')](_0x32d9e6);}_0x36df0a(_0x2b68da,_0x2867c2);const _0x1026be=_0x471339[_0x3ce1('0x2b')](_0x2b32a4=>null!=_0x2b32a4[_0x3ce1('0x40')])['map'](_0x3a9931=>this[_0x3ce1('0xa')]['commands'][_0x3ce1('0x65')](_0x3a9931['model'][_0x3ce1('0x64')])),_0x300543=_0x2b68da[_0x3ce1('0x13')];return _0x300543[_0x3ce1('0x3e')][_0x3ce1('0x22')](_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x56')]['unbind'](_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x3e')][_0x3ce1('0x10')](_0x3ce1('0x5a'))['to'](_0x2b691d,_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x56')][_0x3ce1('0x10')]('isEnabled')[_0x3ce1('0x50')](_0x1026be,_0x3ce1('0x5a'),(..._0x4fcfd6)=>_0x4fcfd6[_0x3ce1('0x32')](_0x28b3c0=>_0x28b3c0)),_0x2b68da['on'](_0x3ce1('0x31'),_0x3b3b28=>{this[_0x3ce1('0xa')][_0x3ce1('0x31')](_0x3b3b28[_0x3ce1('0x29')][_0x3ce1('0x64')]),this['editor'][_0x3ce1('0x1b')]['view'][_0x3ce1('0xd')]();}),_0x2b68da;}['_initializeController'](_0x5e5923){const _0x18733c=this[_0x3ce1('0xa')],_0x2c0bcd=_0x18733c['config'],_0x17a94b=_0x18733c[_0x3ce1('0x27')]['get'](_0x3ce1('0x51')),_0x4523ba=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')]('CommentsRepository'),_0x3fe47b=_0x18733c[_0x3ce1('0x27')]['get'](_0x3ce1('0x35')),_0x43a9ae=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x432f34)['me'],_0x478ddc=_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x4f'))[_0x3ce1('0x6f')],{CommentsListView:_0x4731c9,CommentThreadInputView:_0x24d377}=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x61'));let _0x5c8225,_0x355feb;this[_0x3ce1('0x36')][_0x3ce1('0x5c')](_0x5e5923['id'])?(_0x355feb=this['_annotationViews'][_0x3ce1('0x65')](_0x5e5923['id']),_0x5c8225=_0x355feb['mainView']):(_0x5c8225=new _0x478ddc(_0x18733c[_0x3ce1('0x12')],_0x5e5923,_0x43a9ae,{'disableComments':this[_0x3ce1('0x4d')],'editorConfig':_0x2c0bcd[_0x3ce1('0x65')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2c0bcd['get'](_0x3ce1('0x11')),'maxThreadTotalWeight':_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x16')),'maxCommentCharsWhenCollapsed':_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x5f')),'formatDateTime':_0x38e33a(_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x12'))),'CommentView':_0x2c0bcd['get'](_0x3ce1('0x2c'))[_0x3ce1('0x5')],'CommentsListView':_0x4731c9,'CommentThreadInputView':_0x24d377}),_0x5c8225['acceptButton']['on']('execute',()=>{_0x18733c['editing'][_0x3ce1('0x1f')][_0x3ce1('0xd')]();}),_0x5c8225[_0x3ce1('0x38')]['on'](_0x3ce1('0x31'),()=>{_0x18733c[_0x3ce1('0x1b')][_0x3ce1('0x1f')][_0x3ce1('0xd')]();}),_0x355feb=_0x17a94b[_0x3ce1('0x0')](this[_0x3ce1('0xa')][_0x3ce1('0x12')],_0x5c8225),_0x355feb[_0x3ce1('0x10')]('isDirty')['to'](_0x5c8225,_0x3ce1('0x66')),_0x355feb[_0x3ce1('0x10')](_0x3ce1('0x68'))['to'](_0x5c8225),_0x355feb[_0x3ce1('0x10')](_0x3ce1('0x44'))['to'](_0x5c8225,_0x3ce1('0x44'),_0x2fea59=>_0x3ce1('0x49')+_0x2fea59),this[_0x3ce1('0x36')][_0x3ce1('0x4a')](_0x5e5923['id'],_0x355feb));const _0x4e9ac8=_0x4523ba[_0x3ce1('0x41')](_0x5e5923[_0x3ce1('0x4')],_0x5c8225),_0x39944f=new _0x34528f(_0x18733c,_0x5e5923,_0x5c8225,_0x4e9ac8),_0x1fa958=_0x5e5923[_0x3ce1('0x59')]()['filter'](_0x2a405a=>_0x2a405a['isInContent']);_0x5c8225['descriptionParts']=_0x18733c[_0x3ce1('0x27')]['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x1fa958),this[_0x3ce1('0x23')][_0x3ce1('0x4a')](_0x5e5923,_0x39944f),this[_0x3ce1('0x5b')][_0x3ce1('0x4a')](_0x5c8225,_0x39944f);const _0x36ef08=_0x17a94b['createAnnotation']({'view':_0x355feb,'target':()=>{const _0x250703=[],_0x5cbd1a=_0x5e5923[_0x3ce1('0x59')]()[_0x3ce1('0x2b')](_0x35b5ee=>_0x35b5ee[_0x3ce1('0x2d')]);for(const _0x2ca038 of _0x5cbd1a)_0x250703['push'](..._0x2ca038['getMarkers']());return _0x2ad89a(_0x18733c['editing'],_0x250703);},'type':()=>_0x3ce1('0x49')+_0x39944f[_0x3ce1('0x1f')][_0x3ce1('0x44')]});_0x17a94b[_0x3ce1('0x2e')](_0x36ef08),_0x3fe47b[_0x3ce1('0x6e')](_0x36ef08);}[_0x3ce1('0x46')](_0x27cd81){const _0x169528=this['editor'][_0x3ce1('0x27')][_0x3ce1('0x65')]('Annotations'),_0x18d8f2=this[_0x3ce1('0x23')][_0x3ce1('0x65')](_0x27cd81),_0x535a05=_0x18d8f2[_0x3ce1('0x1f')],_0x542f62=_0x169528[_0x3ce1('0x42')](_0x535a05);_0x542f62&&_0x169528[_0x3ce1('0x54')](_0x542f62),this[_0x3ce1('0x23')][_0x3ce1('0x34')](_0x27cd81),this[_0x3ce1('0x5b')][_0x3ce1('0x34')](_0x535a05),_0x18d8f2[_0x3ce1('0x26')]();}['_updateController'](_0x5c8fa7){if(!_0x5c8fa7[_0x3ce1('0x2d')]||!this[_0x3ce1('0x23')][_0x3ce1('0x5c')](_0x5c8fa7))return;const _0x4c1f09=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x45')),_0x4eaeb5=this['_suggestionToController'][_0x3ce1('0x65')](_0x5c8fa7),_0xf128da=_0x5c8fa7['getAllAdjacentSuggestions']();_0x4eaeb5[_0x3ce1('0x1f')][_0x3ce1('0x9')]=_0x4c1f09[_0x3ce1('0xf')][_0x3ce1('0x69')](_0xf128da);}['destroy'](){for(const _0x48427d of this[_0x3ce1('0x23')][_0x3ce1('0x60')]())this[_0x3ce1('0x46')](_0x48427d);for(const _0x43422e of this[_0x3ce1('0x36')][_0x3ce1('0x25')]())_0x43422e[_0x3ce1('0x4e')][_0x3ce1('0x26')]();super[_0x3ce1('0x26')]();}}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @module track-changes/ui/suggestioncontroller
3
+ */
4
+ import type { Editor } from 'ckeditor5/src/core';
5
+ import type Suggestion from '../suggestion';
6
+ import type BaseSuggestionThreadView from './view/basesuggestionthreadview';
7
+ import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
8
+ declare const SuggestionController_base: {
9
+ new (): import("ckeditor5/src/utils").Observable;
10
+ prototype: import("ckeditor5/src/utils").Observable;
11
+ };
12
+ /**
13
+ * A controller for a suggestion.
14
+ *
15
+ * It takes a suggestion thread view, listens to events fired by that view and based on them performs actions
16
+ * on the provided suggestion model.
17
+ */
18
+ export default class SuggestionController extends SuggestionController_base {
19
+ model: Suggestion;
20
+ view: BaseSuggestionThreadView;
21
+ commentThreadController: CommentThreadController;
22
+ constructor(editor: Editor, model: Suggestion, view: BaseSuggestionThreadView, commentThreadController: CommentThreadController);
23
+ /**
24
+ * Accepts the suggestion that belongs to this controller.
25
+ */
26
+ acceptSuggestion(): void;
27
+ /**
28
+ * Discards the suggestion that belongs to this controller.
29
+ */
30
+ discardSuggestion(): void;
31
+ /**
32
+ * Destroys `SuggestionController` instance.
33
+ */
34
+ destroy(): void;
35
+ }
36
+ export {};