@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231013.0 → 0.0.0-nightly-20231014.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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2e2c=['plugins','isArray','_commentsRepository','range','removeMarkers','discardSelectedSuggestions','data','track-changes-suggestion-not-found','getSuggestion','_registerDefaultCallbacks','discard','some','_splitMarkerName','buildSuggestion','options','markers','getShiftedBy','delete','isInContent','markMultiRangeInsertion','insertContent','createdAt','getWalker','discardSuggestion','registerCustomCallback','isExternal','suggestion','assign','includes','head','updateSuggestion','_enabledCommands','createPositionBefore','insertion:accept','createElement','_updateSuggestionData','$graveyard','commandName','accept','$marker','ck-suggestion-marker','insert','getAttribute','unbind','rootName','stopListening','consume','_joinSuggestions','define','deleteContent','addMarker','getRange','elementEnd','split','conversion','move','every','formatBlock:chain','getSuggestions','addHighlight','removeMarker:suggestion:formatBlock','trackChanges.mergeNestedSuggestions','getAllAdjacentSuggestions','getLastMatchingPosition','getAncestors','dataToMarker','isAtEnd','formatBlock:','insertion:','fire','item','model','@external','hasCommentThread','getCustomProperty','open','then','toJSON','update:suggestion','authorName','removeClass','change:activeMarkers','document','multipleBlocks','getDifference','addCommentThread','createSelection','containsPosition','isCollapsed','getIntersection','markInsertion','_addSuggestionMarker','deletion:accept','writer','normal','originalSuggestionId','keys','data-suggestion','from','_cutOutSuggestionMarker','formatInline:discard','trackChangesCommand','set','removeMarker','rethrowUnexpectedError','isMultiRange','addMarker:suggestion:formatBlock','applyOperation','createRangeIn','fromCharCode','editor','default','stop','isOwn','containsRange','getRanges','_defaultCallbacks','_isDataLoaded','markMultiRangeDeletion','_createSuggestion','insertion:chain','reconvertMarker','group','locale','isRemovable','setTo','howMany','accepted','fromRange','never','_suggestionState','addRange','differ','toViewElement','dataDowncast','get','TrackChangesEditing','return','removed','suggestionChanged','insertion:join','formatInline:join','_rangeIsInLocalUserInsertion','isLocal','isUndo','enableCommand','_refreshSuggestionsChain','authoredAt','showSuggestionHighlights','elementStart','trackChanges','fetchCommentThread','PENDING_ACTION_SUGGESTION','_onDiscard','addMarker:suggestion','nodeBefore','acceptSelectedSuggestions','_getAuthorFromId','external:','commands','position','author','dataReady','insertion','ready','highest','getChanges','ck-suggestion-marker-','adapter','isDocumentOperation','addMarkerName','track-changes-adapter-missing-getsuggestion','subType','_setSuggestionRange','name','_model','multi','collaboration.channelId','marker-count','track-changes-user-not-found','clear','_removeSuggestion','getItems','_findSuggestions','addSuggestion','addComment','markerName','for','markMultiRangeBlockFormat','length','_handleNewSuggestionMarker','isAtStart','rejected','moveTargetPosition','_joinWithAdjacentSuggestions','notReady','addSuggestionData','schema','_trackFormatChanges','formatInline','_breakSuggestionMarker','suggestion:','add','_adapter','deletion:discard','high','markBlockFormat','markDeletion','trackChanges.trackFormatChanges','has','registerPostFixer','PendingActions','type','batch','ck-suggestion-marker--active','nodeAfter','element','previous','_suggestions','$textProxy','start','markerToHighlight','isInsideObject','root','_saved','insertion:discard','getFirstMarker','always','activeMarkers','getSuggestionCallback','splitPosition','suggestion-type','createRange','documentSelection','getNearestSelectionRange','values','next','editingDowncast','change','containsRangeInObject','markInlineFormat','sort','attributes','removeAttribute','skipNestingCheck','formatInline:','editing','getChangedMarkers','mapper','end','createPositionAfter','widget','formatBlock:discard','resolve','acceptSuggestion','track-changes-suggestion-data-mismatch','join','value','_mergeNestedSuggestions','creator','getUser','_setSuggestionData','updateMarker','push','low','listenTo','backward','map','CommentsRepository','newRange','_checkSuggestionCorrectness','_getSuggestionData','targetPosition','_getExternalAuthor','deletion','setSelection','unbindElementFromMarkerName','execute','catch','upcast','getMultiRangeId','change:data','consumable','detach','change:_saved','setAttribute','splice','getMarkers','chain','track-changes-adapter-already-set','addUser','parent','remove','config','Users','getFirstRange','markerReady','filter','clone','formatGroupId','forceDefaultExecution','formatBlock','createPositionAt','_descriptionFactory','isLimit','enableReadOnlyMode','isAfter','isObject','elementToElement','refresh','containerElement','addClass','suggestionUnloaded','deletion:chain','isEqual','isBefore','_suggestionFactory','_addThreadToSuggestion','_editor','oldRange','after','track-changes-command-not-found','_isForcedDefaultExecutionBlock','discardAllSuggestions','deletion:','hasComments','isBlock','getCommentThread','selection','isNextTo','commentThread','size'];(function(_0x2a8f6a,_0x2e2ce6){const _0xd7d5e8=function(_0xfdb2f6){while(--_0xfdb2f6){_0x2a8f6a['push'](_0x2a8f6a['shift']());}};_0xd7d5e8(++_0x2e2ce6);}(_0x2e2c,0x116));const _0xd7d5=function(_0x2a8f6a,_0x2e2ce6){_0x2a8f6a=_0x2a8f6a-0x0;let _0xd7d5e8=_0x2e2c[_0x2a8f6a];return _0xd7d5e8;};import{Plugin as _0x1eb152,PendingActions as _0x209ef7}from'ckeditor5/src/core';import{LiveRange as _0x4124e0}from'ckeditor5/src/engine';import{CKEditorError as _0x5f4b85,uid as _0x54a3ae,priorities as _0x44bf20,logWarning as _0x5bc8db}from'ckeditor5/src/utils';import{toWidget as _0x47eabb}from'ckeditor5/src/widget';import{Users as _0x440293,hashObject as _0x5f0bfa}from'ckeditor5-collaboration/src/collaboration-core';import _0x4991a5 from'./commands/trackchangescommand';import _0x1e97f5 from'./commands/acceptsuggestioncommand';import _0x3d70ca from'./commands/discardsuggestioncommand';import _0xc1bff from'./commands/executeonallsuggestionscommand';import _0x5dba22 from'./commands/executeonselectedsuggestionscommand';import _0x28f913 from'./suggestion';import _0x25ed08 from'./suggestiondescriptionfactory';import _0x2a06dd from'./integrations/aiassistant';import _0x334501 from'./integrations/alignment';import _0x47d74d from'./integrations/basicstyles';import _0x2069fb from'./integrations/blockquote';import _0x30d142 from'./integrations/ckbox';import _0x2bc8d9 from'./integrations/codeblock';import _0xc54738 from'./integrations/comments';import _0x34e739 from'./integrations/deletecommand';import _0x3f468e from'./integrations/documentlist';import _0x43617d from'./integrations/entercommand';import _0x4e32e6 from'./integrations/findandreplace';import _0x41de5a from'./integrations/font';import _0x587bb9 from'./integrations/formatpainter';import _0xdd1c53 from'./integrations/heading';import _0x29c16b from'./integrations/highlight';import _0x28a748 from'./integrations/horizontalline';import _0x231f89 from'./integrations/htmlembed';import _0x596956 from'./integrations/image';import _0x11e490 from'./integrations/imagereplace';import _0x42556f from'./integrations/importword';import _0x2084ad from'./integrations/indent';import _0xb6d4c1 from'./integrations/inputcommand';import _0x1fe9ea from'./integrations/link';import _0xe7b065 from'./integrations/list';import _0x35cc3b from'./integrations/listproperties';import _0x386b51 from'./integrations/mediaembed';import _0x189af9 from'./integrations/mention';import _0x466d4e from'./integrations/pagebreak';import _0x3557a4 from'./integrations/paragraph';import _0x5ea974 from'./integrations/removeformat';import _0x2b4018 from'./integrations/restrictededitingmode';import _0xfad2a7 from'./integrations/shiftentercommand';import _0x1479ad from'./integrations/standardeditingmode';import _0x373e7f from'./integrations/style';import _0x22020d from'./integrations/table';import _0x556f76 from'./integrations/tablemergesplit';import _0x317356 from'./integrations/tableheadings';import _0x5e86a9 from'./integrations/tableclipboard';import _0x4cba19 from'./integrations/tablecolumnresize';import _0x1ba043 from'./integrations/template';import _0x11d98d from'./integrations/tableofcontents';import _0x35d799 from'./integrations/title';import _0x5597b2 from'./integrations/undo';import{getTranslation as _0x767fc4}from'./utils/common-translations';import _0x5a5119 from'./integrations/tablecaption';import _0x12e613 from'./integrations/documentlistproperties';import _0x4d264a from'./integrations/tableproperties';import{isEqual as _0x4566a5}from'lodash-es';export default class p extends _0x1eb152{static get['requires'](){return['CommentsRepository',_0x440293,_0x209ef7,_0x2a06dd,_0x334501,_0x47d74d,_0x2069fb,_0x30d142,_0x2bc8d9,_0xc54738,_0x34e739,_0x3f468e,_0x12e613,_0x43617d,_0x4e32e6,_0x41de5a,_0x587bb9,_0xdd1c53,_0x29c16b,_0x28a748,_0x231f89,_0x596956,_0x11e490,_0x42556f,_0x2084ad,_0xb6d4c1,_0x1fe9ea,_0xe7b065,_0x35cc3b,_0x386b51,_0x189af9,_0x466d4e,_0x3557a4,_0x5ea974,_0x2b4018,_0xfad2a7,_0x1479ad,_0x373e7f,_0x22020d,_0x556f76,_0x317356,_0x5a5119,_0x5e86a9,_0x4cba19,_0x11d98d,_0x4d264a,_0x1ba043,_0x35d799,_0x5597b2];}static get['pluginName'](){return _0xd7d5('0xbe');}constructor(_0x19e4ec){function _0xf75006(_0x58c6d1){return _0x58c6d1[_0xd7d5('0x141')](_0x3453b3=>String[_0xd7d5('0xa3')](_0x3453b3))[_0xd7d5('0x136')]('');}super(_0x19e4ec),this[_0xd7d5('0x9c')]('activeMarkers',[]),this['on'](_0xd7d5('0x87'),(_0x1e1380,_0x64f2f3,_0x22ec04,_0x2d8c88)=>{this[_0xd7d5('0xe5')][_0xd7d5('0x124')](()=>{for(const _0x12f49c of[..._0x2d8c88,..._0x22ec04])this[_0xd7d5('0xe5')][_0xd7d5('0x45')][_0xd7d5('0x107')](_0x12f49c)&&_0x19e4ec[_0xd7d5('0x12c')][_0xd7d5('0xaf')](_0x12f49c);});}),this[_0xd7d5('0x19')]=new _0x25ed08(this[_0xd7d5('0xa4')][_0xd7d5('0x7d')][_0xd7d5('0xfb')],this[_0xd7d5('0xa4')]['locale']),this[_0xd7d5('0x101')]=null,this[_0xd7d5('0x26')]=new Bt(this[_0xd7d5('0xa4')]),this[_0xd7d5('0x110')]=new Map(),this[_0xd7d5('0x38')]=_0x19e4ec[_0xd7d5('0x36')][_0xd7d5('0xbd')](_0xd7d5('0x142')),this[_0xd7d5('0x55')]=new Set(),this[_0xd7d5('0xe5')]=this[_0xd7d5('0xa4')][_0xd7d5('0x7d')],this[_0xd7d5('0xb8')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x19e4ec[_0xd7d5('0xf')][_0xd7d5('0x66')]('trackChanges.trackFormatChanges',_0xd7d5('0xa5')),this[_0xd7d5('0xfc')]=_0x19e4ec[_0xd7d5('0xf')][_0xd7d5('0xbd')](_0xd7d5('0x106')),_0x19e4ec[_0xd7d5('0xf')][_0xd7d5('0x66')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0xd7d5('0x138')]=_0x19e4ec[_0xd7d5('0xf')]['get'](_0xd7d5('0x73')),this[_0xd7d5('0x9b')]=new _0x4991a5(_0x19e4ec,this[_0xd7d5('0x55')]),this[_0xf75006([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xf75006([0x34,0x30,0x34,0x36,0x32,0x30,0x32,0x36]);}['init'](){const _0x3899f0=this[_0xd7d5('0xa4')];_0x3899f0['conversion'][_0xd7d5('0xf1')]('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x164905=>{const {id:_0x48499b,type:_0x5b7a5d}=this['_splitMarkerName'](_0x164905[_0xd7d5('0xf0')]),_0x4369c8=[_0xd7d5('0x5e'),_0xd7d5('0xdd')+_0x5b7a5d];let _0x4b4daf=0xbb8;return this[_0xd7d5('0x11a')][_0xd7d5('0x52')](_0x164905[_0xd7d5('0xf0')])&&(_0x4369c8[_0xd7d5('0x13d')]('ck-suggestion-marker--active'),_0x4b4daf=0xbc2),_0xd7d5('0x148')==_0x5b7a5d&&(_0x4b4daf+=0x5),{'classes':_0x4369c8,'attributes':{'data-suggestion':_0x48499b},'priority':_0x4b4daf};}}),_0x3899f0['conversion'][_0xd7d5('0xf1')]('dataDowncast')[_0xd7d5('0x100')](_0x196f80=>{_0x196f80['on'](_0xd7d5('0xd0'),(_0x597ee7,_0x535c04,_0x3752ed)=>{if(!_0x3752ed[_0xd7d5('0x44')][_0xd7d5('0xca')])return;const _0x110305=_0x535c04['item'];if(!_0x110305)return;const _0x198777=_0x3752ed['mapper'][_0xd7d5('0xbb')](_0x110305);_0x3899f0[_0xd7d5('0x7d')]['schema'][_0xd7d5('0x1d')](_0x110305)&&_0x198777&&!_0x198777[_0xd7d5('0x80')](_0xd7d5('0x131'))&&_0x198777['is'](_0xd7d5('0x20'))&&_0x47eabb(_0x198777,_0x3752ed[_0xd7d5('0x93')]);},{'priority':'high'});}),_0x3899f0[_0xd7d5('0x6c')][_0xd7d5('0xf1')](_0xd7d5('0xbc'))[_0xd7d5('0x113')]({'model':'suggestion','view':(_0x209729,_0x45675a)=>{if(!_0x45675a[_0xd7d5('0x44')]['showSuggestionHighlights'])return null;const {type:_0x2fc1b2}=this['_splitMarkerName'](_0x209729[_0xd7d5('0xf0')]);return{'classes':[_0xd7d5('0x5e'),_0xd7d5('0xdd')+_0x2fc1b2],'priority':0xbb8};}});const _0x104239=({showActiveMarkers:_0x532fbb=!0x0}={})=>(_0x44f623,_0x37e3b4,_0x48375a)=>{if(!_0x37e3b4[_0xd7d5('0x7c')])return;if(_0x37e3b4[_0xd7d5('0x7c')]['is'](_0xd7d5('0x32')))return void _0x48375a[_0xd7d5('0x4')]['consume'](_0x37e3b4['item'],_0x44f623[_0xd7d5('0xe4')]);const _0x180414=_0x48375a[_0xd7d5('0x12e')]['toViewElement'](_0x37e3b4[_0xd7d5('0x7c')]);if(!(_0x37e3b4[_0xd7d5('0x7c')]['is'](_0xd7d5('0x10e'))&&_0x3899f0[_0xd7d5('0x7d')]['schema'][_0xd7d5('0x30')](_0x37e3b4[_0xd7d5('0x7c')])&&!_0x180414[_0xd7d5('0x80')](_0xd7d5('0x71'))))return;const {id:_0x51e142}=this[_0xd7d5('0x42')](_0x37e3b4['markerName']);_0x48375a[_0xd7d5('0x93')][_0xd7d5('0x21')]([_0xd7d5('0x5e'),'ck-suggestion-marker-formatBlock'],_0x180414),_0x48375a['writer'][_0xd7d5('0x7')](_0xd7d5('0x97'),_0x51e142,_0x180414),_0x48375a[_0xd7d5('0x12e')]['bindElementToMarker'](_0x180414,_0x37e3b4['markerName']),_0x532fbb&&(this[_0xd7d5('0x11a')][_0xd7d5('0x52')](_0x37e3b4[_0xd7d5('0xf0')])?_0x48375a[_0xd7d5('0x93')][_0xd7d5('0x21')](_0xd7d5('0x10c'),_0x180414):_0x48375a[_0xd7d5('0x93')]['removeClass'](_0xd7d5('0x10c'),_0x180414));for(const _0x3a4985 of _0x3899f0['model'][_0xd7d5('0xa2')](_0x37e3b4[_0xd7d5('0x7c')])[_0xd7d5('0xec')]())_0x48375a[_0xd7d5('0x4')][_0xd7d5('0x64')](_0x3a4985,_0x44f623[_0xd7d5('0xe4')]);_0x48375a[_0xd7d5('0x4')][_0xd7d5('0x64')](_0x37e3b4[_0xd7d5('0x7c')],_0x44f623['name']);};_0x3899f0[_0xd7d5('0x6c')]['for'](_0xd7d5('0xbc'))[_0xd7d5('0x100')](_0x1dff09=>{_0x1dff09['on'](_0xd7d5('0xa0'),(_0x1f4ae5,_0xea7636,_0x269e52)=>{_0x269e52['options'][_0xd7d5('0xca')]&&_0x104239({'showActiveMarkers':!0x1})(_0x1f4ae5,_0xea7636,_0x269e52);},{'priority':_0xd7d5('0xdb')});}),_0x3899f0['conversion'][_0xd7d5('0xf1')]('dataDowncast')['markerToData']({'model':_0xd7d5('0x50'),'view':(_0x9f7437,_0x3ff2b7)=>_0x3ff2b7[_0xd7d5('0x44')][_0xd7d5('0xca')]?null:{'group':_0xd7d5('0x50'),'name':_0x9f7437['substr'](0xb)}}),_0x3899f0[_0xd7d5('0x6c')][_0xd7d5('0xf1')](_0xd7d5('0x1'))[_0xd7d5('0x1e')]({'view':{'name':_0xd7d5('0x50'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x108979,{writer:_0x408484})=>{let _0xf8a66b=_0xd7d5('0xff')+_0x108979[_0xd7d5('0x60')](_0xd7d5('0x11d'))+':'+_0x108979['getAttribute']('id');return _0x108979[_0xd7d5('0x60')](_0xd7d5('0xe8'))&&(_0xf8a66b+=':'+_0x108979[_0xd7d5('0x60')](_0xd7d5('0xe8'))),_0x408484[_0xd7d5('0x58')](_0xd7d5('0x5d'),{'data-name':_0xf8a66b});}}),_0x3899f0['conversion']['for'](_0xd7d5('0x1'))[_0xd7d5('0x77')]({'view':'suggestion'}),_0x3899f0['conversion']['for']('editingDowncast')['add'](_0x55264=>{_0x55264['on'](_0xd7d5('0xa0'),_0x104239(),{'priority':_0xd7d5('0x103')});}),_0x3899f0[_0xd7d5('0x6c')][_0xd7d5('0xf1')](_0xd7d5('0x123'))['add'](_0x457873=>{_0x457873['on'](_0xd7d5('0x72'),(_0x40c390,_0x2122f3,_0x12c9e1)=>{const _0x21abc5=_0x12c9e1[_0xd7d5('0x12e')]['markerNameToElements'](_0x2122f3['markerName']);if(_0x21abc5)for(const _0x905b32 of _0x21abc5)_0x905b32['getCustomProperty'](_0xd7d5('0x71'))||(_0x12c9e1['writer'][_0xd7d5('0x86')]([_0xd7d5('0x5e'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x905b32),_0x12c9e1[_0xd7d5('0x93')][_0xd7d5('0x129')](_0xd7d5('0x97'),_0x905b32),_0x12c9e1['mapper'][_0xd7d5('0x14a')](_0x905b32,_0x2122f3['markerName']));},{'priority':_0xd7d5('0x103')});}),_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x88')][_0xd7d5('0x108')](_0x5359b0=>{let _0x30e053=!0x1;const _0x2551c5=Array[_0xd7d5('0x98')](_0x3899f0[_0xd7d5('0x7d')]['document'][_0xd7d5('0xba')][_0xd7d5('0x12d')]()),_0xa3b9ab=new Set();for(const {name:_0x1a07c5,data:_0x5bf057}of _0x2551c5){const {group:_0xce5dd8,type:_0x287f0f,id:_0x11e290}=this[_0xd7d5('0x42')](_0x1a07c5);if(_0xd7d5('0x50')!==_0xce5dd8)continue;const _0x40bc78=this[_0xd7d5('0x110')][_0xd7d5('0xbd')](_0x11e290);if(null!=_0x5bf057[_0xd7d5('0x143')]){_0xd7d5('0xfd')==_0x287f0f&&(_0x30e053=_0x30e053||$t(_0x5bf057[_0xd7d5('0x143')],_0x1a07c5,_0x5359b0,_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0xfb')]));if(_0x5bf057['newRange'][_0xd7d5('0x8e')]||_0xd7d5('0x5a')==_0x5bf057[_0xd7d5('0x143')][_0xd7d5('0x115')][_0xd7d5('0x62')]||_0xd7d5('0x17')==_0x287f0f&&!Rt(_0x5bf057[_0xd7d5('0x143')])||_0xd7d5('0x148')==_0x287f0f&&!(!Mt(_0x304195=_0x5bf057['newRange'])&&!function(_0x5370f9){return _0x5370f9[_0xd7d5('0x112')][_0xd7d5('0xd')]==_0x5370f9[_0xd7d5('0x12f')]['nodeBefore']&&_0x5370f9[_0xd7d5('0x112')][_0xd7d5('0x78')];}(_0x304195)))_0x5359b0[_0xd7d5('0x9d')](_0x1a07c5),_0x30e053=!0x0;else{if(!_0x40bc78||!_0x40bc78['isInContent'])continue;_0xa3b9ab[_0xd7d5('0x100')](_0x40bc78);}}}var _0x304195;return _0xa3b9ab[_0xd7d5('0x35')]>0x0&&(_0x30e053=!!this[_0xd7d5('0xf8')](_0xa3b9ab)||_0x30e053),_0x30e053;}),_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x88')]['registerPostFixer'](_0x27d9f6=>{let _0x538845=!0x1;for(const _0x29e5ca of _0x3899f0[_0xd7d5('0x7d')]['document']['differ'][_0xd7d5('0xdc')]()){if(_0xd7d5('0x5f')!=_0x29e5ca[_0xd7d5('0x10a')])continue;const _0x18ae33=_0x29e5ca[_0xd7d5('0xd6')]['getShiftedBy'](_0x29e5ca[_0xd7d5('0xf3')]);if(_0x18ae33[_0xd7d5('0x78')])for(const _0x22b774 of this['_suggestions'][_0xd7d5('0x121')]()){if(_0x22b774['isMultiRange']||!_0x22b774[_0xd7d5('0x48')])continue;if(_0xd7d5('0x17')!=_0x22b774['type'])continue;const _0x11c703=_0x22b774[_0xd7d5('0x11')]();if(_0x11c703[_0xd7d5('0x112')]['parent']!=_0x11c703[_0xd7d5('0x12f')][_0xd7d5('0xd')]&&_0x11c703[_0xd7d5('0x12f')]['isEqual'](_0x29e5ca[_0xd7d5('0xd6')])){const _0x306937=_0x3899f0['model'][_0xd7d5('0x11e')](_0x11c703[_0xd7d5('0x112')],_0x18ae33);_0x27d9f6[_0xd7d5('0x13c')](_0x22b774[_0xd7d5('0x118')](),{'range':_0x306937}),_0x538845=!0x0;}}}return _0x538845;}),_0x3899f0[_0xd7d5('0x7d')]['markers']['on'](_0xd7d5('0x84'),(_0x4be1d6,_0x1d1b16,_0x3998fb)=>{if(null==_0x3998fb){const {id:_0x4f2d3c}=this['_splitMarkerName'](_0x1d1b16[_0xd7d5('0xe4')]),_0x24020b=this[_0xd7d5('0x110')][_0xd7d5('0xbd')](_0x4f2d3c);_0x24020b&&_0x24020b[_0xd7d5('0xe0')](_0x1d1b16['name']);}}),_0x3899f0['model'][_0xd7d5('0x88')]['on'](_0xd7d5('0x3'),()=>{const _0x1046c3=Array['from'](_0x3899f0['model'][_0xd7d5('0x88')][_0xd7d5('0xba')][_0xd7d5('0x12d')]())['filter'](_0x40a06e=>'suggestion'===this[_0xd7d5('0x42')](_0x40a06e['name'])[_0xd7d5('0xb0')]);if(0x0===_0x1046c3['length'])return;_0x1046c3['sort']((_0x147e3,_0x35596b)=>{const _0x1571c3=_0x147e3[_0xd7d5('0x3c')][_0xd7d5('0x29')],_0x5dadb2=_0x35596b[_0xd7d5('0x3c')][_0xd7d5('0x29')];return null===_0x1571c3&&null===_0x5dadb2?0x0:null===_0x1571c3&&null!==_0x5dadb2?-0x1:null!==_0x1571c3&&null===_0x5dadb2?0x1:_0x1571c3['start'][_0xd7d5('0x25')](_0x5dadb2['start'])?-0x1:0x1;});const _0xc612ed=new Set(),_0x53bb31=new Set();for(const {name:_0x9dfe22,data:_0x23b5cb}of _0x1046c3){const {id:_0x39935e}=this[_0xd7d5('0x42')](_0x9dfe22);if(null===_0x23b5cb['oldRange']){const _0x3558a8=this[_0xd7d5('0xf4')](_0x9dfe22);_0x53bb31['add'](_0x3558a8);}else{const _0x391895=this['_suggestions'][_0xd7d5('0xbd')](_0x39935e);null!==_0x23b5cb[_0xd7d5('0x143')]||_0x391895[_0xd7d5('0x48')]?(_0xc612ed[_0xd7d5('0x100')](_0x391895[_0xd7d5('0x53')]),_0x53bb31[_0xd7d5('0x100')](_0x391895)):this[_0xd7d5('0xeb')](_0x391895);}}_0x53bb31[_0xd7d5('0x35')]>0x0&&this['_refreshSuggestionsChain'](_0x53bb31);for(const _0x57c6b4 of _0xc612ed)this[_0xd7d5('0x7b')]('suggestionChanged',_0x57c6b4);}),_0x3899f0[_0xd7d5('0x7d')]['on'](_0xd7d5('0xa1'),(_0x48433a,_0x5c3a4b)=>{const _0x4ccf14=_0x5c3a4b[0x0];if(!this[_0xd7d5('0x110')][_0xd7d5('0x35')])return;if(!_0x4ccf14[_0xd7d5('0xdf')])return;if(_0x4ccf14[_0xd7d5('0x10b')][_0xd7d5('0xc6')]||!_0x4ccf14[_0xd7d5('0x10b')][_0xd7d5('0xc5')])return;let _0xdcf7c2,_0x127537;switch(_0x4ccf14[_0xd7d5('0x10a')]){case _0xd7d5('0x5f'):_0xdcf7c2=_0x3899f0[_0xd7d5('0x7d')]['createPositionAt'](_0x4ccf14[_0xd7d5('0xd6')]),_0x127537=_0xdcf7c2[_0xd7d5('0x46')](_0x4ccf14[_0xd7d5('0xb4')]);break;case'split':_0xdcf7c2=_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x18')](_0x4ccf14[_0xd7d5('0x11c')]),_0x127537=_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x18')](_0x4ccf14[_0xd7d5('0xf7')]);break;case _0xd7d5('0x6d'):_0xdcf7c2=_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x18')](_0x4ccf14[_0xd7d5('0x146')]),_0x127537=_0xdcf7c2[_0xd7d5('0x46')](_0x4ccf14['howMany']);break;default:return;}const _0x4dc096=_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x11e')](_0xdcf7c2,_0x127537);_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x124')](()=>{for(const {suggestion:_0x1a5239,meta:_0x3a3262}of this[_0xd7d5('0xed')](_0x4dc096)){if(_0x1a5239[_0xd7d5('0x9f')])continue;if(_0xd7d5('0xfd')==_0x1a5239['type'])continue;const _0x4cf0c7=_0x1a5239[_0xd7d5('0x3c')]&&_0x1a5239['data'][_0xd7d5('0x89')];(_0xd7d5('0x17')!=_0x1a5239[_0xd7d5('0x10a')]||_0xd7d5('0x6b')==_0x4ccf14[_0xd7d5('0x10a')]&&!_0x4cf0c7)&&(_0x3a3262[_0xd7d5('0x125')]||'insertion'==_0x1a5239[_0xd7d5('0x10a')]&&_0x3a3262['isOwn']||_0x1a5239[_0xd7d5('0x11')]()['containsRange'](_0x4dc096)&&this[_0xd7d5('0xfe')](_0x1a5239,_0xdcf7c2,_0x127537));}});},{'priority':'lowest'}),_0x3899f0[_0xd7d5('0x7d')]['on'](_0xd7d5('0x67'),(_0x5724ca,_0x3cffda)=>{const _0x4e09ec=_0x3cffda[0x0],_0x242e00=_0x3cffda[0x1];if(_0x242e00&&_0x242e00[_0xd7d5('0x16')])return;if(this[_0xd7d5('0x2c')])return;if(!this[_0xd7d5('0x9b')][_0xd7d5('0x137')])return;if(_0x4e09ec['isCollapsed'])return;const _0x3db16a=_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0xfb')],{start:_0x332dca,end:_0x1733f6}=_0x4e09ec[_0xd7d5('0x11')](),_0x51b029=_0x332dca[_0xd7d5('0x10d')]&&_0x3db16a[_0xd7d5('0x1a')](_0x332dca['nodeAfter'])?null:_0x3db16a[_0xd7d5('0x120')](_0x332dca,'forward'),_0x1fbbd5=_0x1733f6['nodeBefore']&&_0x3db16a[_0xd7d5('0x1a')](_0x1733f6[_0xd7d5('0xd1')])?null:_0x3db16a['getNearestSelectionRange'](_0x1733f6,_0xd7d5('0x140')),_0xfcff65=_0x3899f0[_0xd7d5('0x7d')]['createRange'](_0x51b029?_0x51b029[_0xd7d5('0x112')]:_0x332dca,_0x1fbbd5?_0x1fbbd5[_0xd7d5('0x12f')]:_0x1733f6);_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x124')](_0x4e2c3d=>{this[_0xd7d5('0x105')](_0xfcff65);const _0x483e66=_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0xfb')][_0xd7d5('0x120')](_0xfcff65[_0xd7d5('0x112')]);_0x4e09ec['is'](_0xd7d5('0x11f'))?_0x4e2c3d[_0xd7d5('0x149')](_0x483e66):_0x4e09ec[_0xd7d5('0xb3')](_0x483e66);}),_0x5724ca[_0xd7d5('0xa6')]();},{'priority':_0x44bf20[_0xd7d5('0x94')]+0xa}),_0x3899f0[_0xd7d5('0x7d')]['on'](_0xd7d5('0x4a'),(_0x569fa0,_0xd85f31)=>{const _0x159e1a=_0xd85f31[_0xd85f31[_0xd7d5('0xf3')]-0x1];_0x159e1a&&_0x159e1a[_0xd7d5('0x16')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0xd7d5('0x137')]&&(_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x124')](()=>{let _0x52c3db=_0x3899f0[_0xd7d5('0x7d')]['insertContent'](_0xd85f31[0x0],_0xd85f31[0x1],_0xd85f31[0x2],{'forceDefaultExecution':!0x0});if(!_0x52c3db)return;_0x569fa0[_0xd7d5('0xbf')]=_0x52c3db[_0xd7d5('0x14')]();const _0x9ea6de=_0x52c3db[_0xd7d5('0x12f')][_0xd7d5('0xd1')],_0x1189ea=_0x3899f0['model']['schema'];_0x9ea6de&&_0x1189ea[_0xd7d5('0x30')](_0x9ea6de)&&!_0x1189ea[_0xd7d5('0x1d')](_0x9ea6de)&&(_0x52c3db=_0x3899f0['model']['createRange'](_0x52c3db[_0xd7d5('0x112')],_0x3899f0[_0xd7d5('0x7d')][_0xd7d5('0x18')](_0x9ea6de,_0xd7d5('0x12f')))),this[_0xd7d5('0x90')](_0x52c3db);}),_0x569fa0[_0xd7d5('0xa6')]());},{'priority':'high'}),this[_0xd7d5('0xa4')][_0xd7d5('0xd5')][_0xd7d5('0x100')](_0xd7d5('0xcc'),this[_0xd7d5('0x9b')]),this[_0xd7d5('0xc7')]('trackChanges');const _0xb155b5=new _0x1e97f5(_0x3899f0,this[_0xd7d5('0x110')]);_0x3899f0[_0xd7d5('0xd5')][_0xd7d5('0x100')](_0xd7d5('0x134'),_0xb155b5),this[_0xd7d5('0xc7')](_0xd7d5('0x134'));const _0xdae108=new _0x3d70ca(_0x3899f0,this[_0xd7d5('0x110')]);_0x3899f0['commands'][_0xd7d5('0x100')]('discardSuggestion',_0xdae108),this[_0xd7d5('0xc7')](_0xd7d5('0x4d')),_0x3899f0[_0xd7d5('0xd5')]['add']('acceptAllSuggestions',new _0xc1bff(_0x3899f0,_0xb155b5,this['_suggestions'])),this[_0xd7d5('0xc7')]('acceptAllSuggestions'),_0x3899f0[_0xd7d5('0xd5')][_0xd7d5('0x100')](_0xd7d5('0x2d'),new _0xc1bff(_0x3899f0,_0xdae108,this[_0xd7d5('0x110')])),this[_0xd7d5('0xc7')](_0xd7d5('0x2d')),_0x3899f0['commands']['add'](_0xd7d5('0xd2'),new _0x5dba22(_0x3899f0,_0xb155b5,this[_0xd7d5('0x110')])),this[_0xd7d5('0xc7')](_0xd7d5('0xd2')),_0x3899f0[_0xd7d5('0xd5')][_0xd7d5('0x100')](_0xd7d5('0x3b'),new _0x5dba22(_0x3899f0,_0xdae108,this[_0xd7d5('0x110')])),this[_0xd7d5('0xc7')]('discardSelectedSuggestions');const _0x404c1c=_0x3899f0[_0xd7d5('0x36')][_0xd7d5('0xbd')](_0xd7d5('0x142'));this[_0xd7d5('0x13f')](_0x404c1c,_0xd7d5('0xef'),(_0x545b3e,{threadId:_0x4779fb})=>{const _0x29f045=this[_0xd7d5('0x110')]['get'](_0x4779fb);_0x29f045&&_0x29f045['commentThread']&&0x1===_0x29f045[_0xd7d5('0x34')][_0xd7d5('0xf3')]&&this[_0xd7d5('0x59')](_0x4779fb,{'hasComments':!0x0});},{'priority':_0xd7d5('0x13e')}),this[_0xd7d5('0x13f')](_0x404c1c,'removeComment',(_0x1b0de8,{threadId:_0xb9665a})=>{const _0x3dc663=this[_0xd7d5('0x110')]['get'](_0xb9665a);_0x3dc663&&_0x3dc663[_0xd7d5('0x34')]&&!_0x3dc663['commentThread'][_0xd7d5('0xf3')]&&this['_updateSuggestionData'](_0xb9665a,{'hasComments':!0x1});},{'priority':'low'});}set[_0xd7d5('0xde')](_0x318370){if(this[_0xd7d5('0x101')])throw new _0x5f4b85(_0xd7d5('0xb'),this);this['_adapter']=_0x318370;}get[_0xd7d5('0xde')](){return this['_adapter'];}[_0xd7d5('0x70')]({skipNotAttached:_0x38ac2f=!0x1,toJSON:_0x59c663=!0x1}={}){const _0x482731=[];for(const _0x380232 of this[_0xd7d5('0x110')][_0xd7d5('0x121')]())_0x38ac2f&&!_0x380232['isInContent']||_0x482731[_0xd7d5('0x13d')](_0x380232);return _0x59c663?_0x482731[_0xd7d5('0x141')](_0x1c54df=>_0x1c54df[_0xd7d5('0x83')]()):_0x482731;}[_0xd7d5('0x3e')](_0x16e205){const _0x249e54=this[_0xd7d5('0x110')][_0xd7d5('0xbd')](_0x16e205);if(!_0x249e54)throw new _0x5f4b85(_0xd7d5('0x3d'),this);return _0x249e54;}['hasSuggestion'](_0x2e55d5){return this[_0xd7d5('0x110')][_0xd7d5('0x107')](_0x2e55d5);}[_0xd7d5('0xfa')](_0x523e18){const {authorId:_0x5256c8,id:_0x27a032,attributes:_0x390b06}=_0x523e18,[_0x3c0a8e,_0xb7880d]=_0x523e18[_0xd7d5('0x10a')][_0xd7d5('0x6b')](':'),_0x572f19=this[_0xd7d5('0x110')][_0xd7d5('0xbd')](_0x27a032)||this[_0xd7d5('0xad')](_0x3c0a8e,_0xb7880d,_0x27a032,_0x5256c8,_0x390b06);if(this['_addThreadToSuggestion'](_0x572f19),this['_checkSuggestionCorrectness'](_0x572f19,_0x3c0a8e,_0xb7880d||null,_0x5256c8),_0x572f19[_0xd7d5('0x4b')]=_0x523e18[_0xd7d5('0x4b')],_0x572f19[_0xd7d5('0xab')]=!0x0,_0x390b06&&_0x390b06[_0xd7d5('0x7e')]){const _0x58b958=_0x390b06['@external'],_0x1e6f71=this['_getExternalAuthor'](_0x58b958[_0xd7d5('0x85')]);_0x572f19[_0xd7d5('0xc9')]=_0x58b958[_0xd7d5('0x4b')],_0x572f19[_0xd7d5('0xd7')]=_0x1e6f71,_0x572f19[_0xd7d5('0x4f')]=!0x0;}else _0x572f19['authoredAt']=_0x523e18['createdAt'];switch(_0x523e18['data']&&(_0x572f19[_0xd7d5('0x3c')]=_0x523e18[_0xd7d5('0x3c')]),_0x523e18[_0xd7d5('0x128')]&&(_0x572f19[_0xd7d5('0x128')]=_0x523e18['attributes']),this['_adapter']&&this[_0xd7d5('0x101')][_0xd7d5('0xee')]||(_0x572f19['_saved']=!0x0),this[_0xd7d5('0xb8')][_0xd7d5('0xbd')](_0x572f19)){case _0xd7d5('0xf9'):this[_0xd7d5('0xb8')][_0xd7d5('0x9c')](_0x572f19,'dataReady');break;case _0xd7d5('0x12'):_0x572f19[_0xd7d5('0x48')]?(this['_refreshSuggestionsChain'](new Set([_0x572f19])),this[_0xd7d5('0xf8')](new Set([_0x572f19])),this['_suggestionState'][_0xd7d5('0x9c')](_0x572f19,_0xd7d5('0xda')),this[_0xd7d5('0x7b')]('suggestionLoaded',_0x572f19)):this[_0xd7d5('0xb8')][_0xd7d5('0x9c')](_0x572f19,'removed');}return _0x572f19;}[_0xd7d5('0x134')](_0x385d9b){this[_0xd7d5('0x16')](()=>{this[_0xd7d5('0xa4')][_0xd7d5('0x7d')][_0xd7d5('0x124')](()=>{for(const _0x5a0f5b of _0x385d9b[_0xd7d5('0x74')]())_0x5a0f5b[_0xd7d5('0x5c')]();});});}[_0xd7d5('0x4d')](_0x18ca70){this[_0xd7d5('0x16')](()=>{this[_0xd7d5('0xa4')][_0xd7d5('0x7d')]['change'](()=>{for(const _0x68b6a2 of _0x18ca70[_0xd7d5('0x74')]())_0x68b6a2[_0xd7d5('0x40')]();});});}['enableCommand'](_0x32a704,_0x106b58){const _0x5f06a7=this[_0xd7d5('0xa4')][_0xd7d5('0xd5')][_0xd7d5('0xbd')](_0x32a704);if(!_0x5f06a7)throw new _0x5f4b85(_0xd7d5('0x2b'),this,{'commandName':_0x32a704});this[_0xd7d5('0x55')][_0xd7d5('0x100')](_0x5f06a7),_0x106b58&&_0x5f06a7['on'](_0xd7d5('0x14b'),(_0x3ce8fb,_0x4d9509)=>{this[_0xd7d5('0x9b')][_0xd7d5('0x137')]&&(this[_0xd7d5('0x2c')]||_0x4d9509[_0xd7d5('0xf3')]>0x0&&_0x4d9509[_0x4d9509[_0xd7d5('0xf3')]-0x1]&&_0x4d9509[_0x4d9509['length']-0x1]['forceDefaultExecution']||(_0x106b58((..._0x524f0c)=>_0x5f06a7['execute'](..._0x524f0c,{'forceDefaultExecution':!0x0}),..._0x4d9509),_0x3ce8fb[_0xd7d5('0xa6')]()));},{'priority':_0xd7d5('0x103')});}[_0xd7d5('0x16')](_0x3837c2){let _0x22cccf,_0x1b5198;const _0x145351=this[_0xd7d5('0x2c')];this[_0xd7d5('0x2c')]=!0x0;try{_0x22cccf=_0x3837c2();}catch(_0x444c24){_0x1b5198=_0x444c24;}return _0x145351||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b5198&&_0x5f4b85[_0xd7d5('0x9e')](_0x1b5198,this),_0x22cccf;}[_0xd7d5('0x90')](_0x2cf9bc,_0x305239=null,_0x3e9c11={}){if(_0x2cf9bc['isCollapsed'])return null;const _0x1e2684=this[_0xd7d5('0xa4')]['plugins'][_0xd7d5('0xbd')]('Users')['me'];for(const {suggestion:_0x1249b1,meta:_0x2bc671}of this[_0xd7d5('0xed')](_0x2cf9bc,'insertion'))if(_0x2bc671[_0xd7d5('0xa7')]){if(!_0x2bc671['isNextTo']){if(_0x2bc671['containsRangeInObject']){if(!this[_0xd7d5('0x138')]||!Ot(_0x1249b1,_0x3e9c11))continue;return _0x1249b1;}if(Ot(_0x1249b1,_0x3e9c11))return _0x1249b1;this[_0xd7d5('0xfe')](_0x1249b1,_0x2cf9bc[_0xd7d5('0x112')],_0x2cf9bc[_0xd7d5('0x12f')]);break;}if(_0x305239==_0x1249b1[_0xd7d5('0xe2')]&&Ot(_0x1249b1,_0x3e9c11)){const _0x4f179f=_0x1249b1['getFirstRange']();return _0x4f179f[_0xd7d5('0x112')][_0xd7d5('0x24')](_0x2cf9bc['end'])?this[_0xd7d5('0xe3')](_0x1249b1,this['_model'][_0xd7d5('0x11e')](_0x2cf9bc['start'],_0x4f179f['end'])):this[_0xd7d5('0xe3')](_0x1249b1,this[_0xd7d5('0xe5')][_0xd7d5('0x11e')](_0x4f179f['start'],_0x2cf9bc[_0xd7d5('0x12f')])),_0x1249b1;}}const _0x841b35=_0x54a3ae(),_0x22263c=_0x1e2684['id'],_0x46af7d=_0x305239?_0xd7d5('0x7a')+_0x305239:_0xd7d5('0xd9'),_0x541468=this['_setSuggestionData']({'id':_0x841b35,'type':_0x46af7d,'createdAt':new Date(),'authorId':_0x22263c,'attributes':_0x3e9c11});return this[_0xd7d5('0x91')](_0x46af7d,_0x841b35,_0x22263c,_0x2cf9bc),_0x541468;}[_0xd7d5('0x49')](_0x3d534c,_0x2727c8=_0xd7d5('0xe6'),_0xbf40fd={}){const _0x4308cd=this[_0xd7d5('0xa4')][_0xd7d5('0x36')][_0xd7d5('0xbd')]('Users')['me'],_0x26518d=this[_0xd7d5('0x26')][_0xd7d5('0x11b')](_0xd7d5('0xd9'),_0x2727c8,_0xd7d5('0x136'));for(const _0x5b1efb of this[_0xd7d5('0x70')]())if(_0x5b1efb[_0xd7d5('0xd7')]['id']==_0x4308cd['id']&&_0xd7d5('0xd9')==_0x5b1efb[_0xd7d5('0x10a')]&&_0x5b1efb[_0xd7d5('0xe2')]==_0x2727c8&&Ot(_0x5b1efb,_0xbf40fd)&&(_0x26518d(_0x5b1efb[_0xd7d5('0xa9')](),_0x3d534c)||_0x26518d(_0x3d534c,_0x5b1efb[_0xd7d5('0xa9')]()))){for(const _0x50bceb of _0x3d534c)_0x5b1efb['addRange'](_0x50bceb);return _0x5b1efb;}for(const {suggestion:_0x4ff11e,meta:_0x36d955}of this['_findSuggestions'](_0x3d534c,_0xd7d5('0xd9'))){if(!_0x36d955[_0xd7d5('0xa7')])continue;if(!this['_mergeNestedSuggestions']&&_0x36d955['containsRangeInObject'])continue;if(!Ot(_0x4ff11e,_0xbf40fd))continue;let _0x3c8e5c=!0x0;for(const _0x442f8b of _0x4ff11e[_0xd7d5('0xa9')]())for(const _0xb50fab of _0x3d534c)if(!_0x442f8b[_0xd7d5('0xa8')](_0xb50fab)){_0x3c8e5c=!0x1;break;}if(_0x3c8e5c)return _0x4ff11e;}const _0x59e4da=_0x54a3ae(),_0x309543=_0x4308cd['id'],_0xd1145=_0xd7d5('0x7a')+_0x2727c8,_0x4c3f91=this[_0xd7d5('0x13b')]({'id':_0x59e4da,'type':_0xd1145,'createdAt':new Date(),'authorId':_0x309543,'attributes':_0xbf40fd});for(const _0x13eef7 of _0x3d534c)this[_0xd7d5('0x91')](_0xd1145,_0x59e4da,_0x309543,_0x13eef7,_0x28f913['getMultiRangeId']());return _0x4c3f91;}[_0xd7d5('0x126')](_0x57d5b4,_0x22757c,_0x51c182=null,_0x28b6e1={}){if(_0x51c182=_0x51c182||Nt(_0x22757c),_0x57d5b4[_0xd7d5('0x8e')])return null;if('never'===this[_0xd7d5('0xfc')]){const _0x378348=this[_0xd7d5('0x26')]['getSuggestionCallback']('formatInline',_0x51c182,_0xd7d5('0x5c'));return this[_0xd7d5('0x16')](()=>_0x378348([_0x57d5b4],_0x22757c,_0x28b6e1)),null;}const _0x4f818a=this['editor'][_0xd7d5('0x36')][_0xd7d5('0xbd')](_0xd7d5('0x10'))['me'],_0x15af73=[];if(_0xd7d5('0x119')!==this[_0xd7d5('0xfc')])for(const {suggestion:_0x23fd96,meta:_0x13b1af}of this[_0xd7d5('0xed')](_0x57d5b4,_0xd7d5('0xd9')))_0x13b1af[_0xd7d5('0xa7')]&&!_0x13b1af[_0xd7d5('0x114')]&&_0x15af73[_0xd7d5('0x13d')](..._0x23fd96[_0xd7d5('0xa9')]());const _0x5c2096=function(_0x3f6452,_0x583718){const _0x597ef8=[];for(const _0x5fc522 of _0x583718){const _0x1d8e39=_0x3f6452[_0xd7d5('0x8f')](_0x5fc522);_0x1d8e39&&_0x597ef8[_0xd7d5('0x13d')](_0x1d8e39);}return _0x597ef8;}(_0x57d5b4,_0x15af73),_0x5be3d3=function(_0x367266,_0x275502){const _0x4edce3=[_0x367266];for(const _0x20ebbf of _0x275502){let _0x4e1232=0x0;for(;_0x4e1232<_0x4edce3['length'];){const _0x18daea=_0x4edce3[_0x4e1232][_0xd7d5('0x8a')](_0x20ebbf);_0x4edce3[_0xd7d5('0x8')](_0x4e1232,0x1,..._0x18daea),_0x4e1232+=_0x18daea[_0xd7d5('0xf3')];}}return _0x4edce3;}(_0x57d5b4,_0x15af73);_0x5c2096[_0xd7d5('0xf3')]&&this['_model'][_0xd7d5('0x124')](()=>{for(const _0x336d1a of _0x5c2096){const _0x2855c9=this[_0xd7d5('0x26')][_0xd7d5('0x11b')]('formatInline',_0x51c182,'accept');this['forceDefaultExecution'](()=>_0x2855c9([_0x336d1a],_0x22757c,_0x28b6e1));}});for(const _0x4c4164 of _0x5be3d3){let _0x1d5487=null,_0x5f186e=_0x4c4164[_0xd7d5('0x112')],_0x561824=_0x4c4164[_0xd7d5('0x12f')];for(const {suggestion:_0x2daf68,meta:_0x21aa6d}of this[_0xd7d5('0xed')](_0x4c4164,_0xd7d5('0xfd'))){if(!_0x21aa6d[_0xd7d5('0xa7')])continue;if(_0x2daf68['subType']!=_0x51c182)continue;if(!Ot(_0x2daf68,_0x28b6e1))continue;const _0x2173b7=_0x2daf68[_0xd7d5('0x11')]();if(_0x2173b7['containsRange'](_0x4c4164,!0x0))return null;_0x5f186e=_0x5f186e[_0xd7d5('0x25')](_0x2173b7[_0xd7d5('0x112')])?_0x5f186e:_0x2173b7[_0xd7d5('0x112')],_0x561824=_0x561824['isAfter'](_0x2173b7[_0xd7d5('0x12f')])?_0x561824:_0x2173b7['end'],_0x1d5487?_0x2173b7[_0xd7d5('0x112')]['isBefore'](_0x1d5487['getFirstRange']()[_0xd7d5('0x112')])?(_0x1d5487['removeMarkers'](),_0x1d5487=_0x2daf68):_0x2daf68[_0xd7d5('0x3a')]():_0x1d5487=_0x2daf68;}const _0x4d46e6=this['_model'][_0xd7d5('0x11e')](_0x5f186e,_0x561824);if(_0x1d5487)this['_setSuggestionRange'](_0x1d5487,_0x4d46e6);else{const _0x1d8c53=_0x54a3ae(),_0x3aed22=_0x4f818a['id'];this[_0xd7d5('0x13b')]({'id':_0x1d8c53,'type':'formatInline:'+_0x51c182,'data':_0x22757c,'createdAt':new Date(),'authorId':_0x3aed22,'attributes':_0x28b6e1}),this['_addSuggestionMarker'](_0xd7d5('0x12b')+_0x51c182,_0x1d8c53,_0x3aed22,_0x4d46e6);}}return null;}[_0xd7d5('0x104')](_0x371e9e,_0x587308,_0x4eb25d=[],_0xad7383=null,_0x3e973d={}){_0x587308[_0xd7d5('0x15')]||(_0x587308[_0xd7d5('0x15')]=_0x587308[_0xd7d5('0x5b')]),_0x587308[_0xd7d5('0x89')]=_0x371e9e['is'](_0xd7d5('0x39')),_0xad7383=_0xad7383||Nt(_0x587308);const _0x15f8a5=_0x4eb25d[_0xd7d5('0x141')](_0x1a5d10=>jt(_0x1a5d10,this[_0xd7d5('0xe5')])),_0x20b371=_0x371e9e['is'](_0xd7d5('0x39'))?_0x371e9e:jt(_0x371e9e,this[_0xd7d5('0xe5')]);if(_0xd7d5('0xb7')===this[_0xd7d5('0xfc')]){const _0x5cea8d=this['_suggestionFactory'][_0xd7d5('0x11b')](_0xd7d5('0x17'),_0xad7383,_0xd7d5('0x5c'));return this['forceDefaultExecution'](()=>_0x5cea8d([_0x20b371],_0x587308,_0x3e973d)),null;}_0x15f8a5[_0xd7d5('0x13d')](_0x20b371);let _0x22b71e=!0x0;for(const _0xc57191 of _0x15f8a5)if(!this[_0xd7d5('0xc4')](_0xc57191)){_0x22b71e=!0x1;break;}if(_0x22b71e&&_0xd7d5('0x119')!==this[_0xd7d5('0xfc')]){const _0x18a76e=this[_0xd7d5('0x26')][_0xd7d5('0x11b')](_0xd7d5('0x17'),_0xad7383,_0xd7d5('0x5c'));return this[_0xd7d5('0x16')](()=>_0x18a76e([_0x20b371],_0x587308,_0x3e973d)),null;}let _0x4a49b4=null,_0x2557a3=_0x20b371['start'],_0x391a16=_0x20b371[_0xd7d5('0x12f')];for(const {suggestion:_0x4d5dc1,meta:_0x46cda5}of this['_findSuggestions'](_0x20b371,_0xd7d5('0x17'))){if(!_0x46cda5['isOwn'])continue;if(_0x46cda5[_0xd7d5('0x33')]||_0x46cda5[_0xd7d5('0x125')]||_0x46cda5[_0xd7d5('0x114')])continue;if(_0x4d5dc1['data'][_0xd7d5('0x15')]!=_0x587308['formatGroupId'])continue;if(!Ot(_0x4d5dc1,_0x3e973d))continue;const _0x12c961=_0x4d5dc1[_0xd7d5('0x11')]();if(_0x4d5dc1[_0xd7d5('0xe2')]==_0xad7383){if(_0x12c961[_0xd7d5('0xa8')](_0x20b371,!0x0))return null;_0x2557a3=_0x2557a3[_0xd7d5('0x25')](_0x12c961[_0xd7d5('0x112')])?_0x2557a3:_0x12c961['start'],_0x391a16=_0x391a16[_0xd7d5('0x1c')](_0x12c961[_0xd7d5('0x12f')])?_0x391a16:_0x12c961[_0xd7d5('0x12f')],_0x4a49b4?_0x12c961[_0xd7d5('0x112')][_0xd7d5('0x25')](_0x4a49b4['getFirstRange']()[_0xd7d5('0x112')])?(_0x4a49b4[_0xd7d5('0x3a')](),_0x4a49b4=_0x4d5dc1):_0x4d5dc1[_0xd7d5('0x3a')]():_0x4a49b4=_0x4d5dc1;}else{const _0x265241=_0x20b371['getIntersection'](_0x12c961);this['_cutOutSuggestionMarker'](_0x4d5dc1,_0x265241);}}const _0x1222b6=this[_0xd7d5('0xa4')][_0xd7d5('0x36')][_0xd7d5('0xbd')](_0xd7d5('0x10'))['me'],_0x4c6d90=_0x54a3ae(),_0x423863=_0x1222b6['id'];if(_0x4a49b4)return this[_0xd7d5('0xe3')](_0x4a49b4,this[_0xd7d5('0xe5')][_0xd7d5('0x11e')](_0x2557a3,_0x391a16)),_0x4a49b4;{const _0x59db4e=this['_setSuggestionData']({'id':_0x4c6d90,'type':_0xd7d5('0x79')+_0xad7383,'data':_0x587308,'createdAt':new Date(),'authorId':_0x423863,'attributes':_0x3e973d});return this['_addSuggestionMarker'](_0xd7d5('0x79')+_0xad7383,_0x4c6d90,_0x423863,this[_0xd7d5('0xe5')]['createRange'](_0x2557a3,_0x391a16)),_0x59db4e;}}[_0xd7d5('0xf2')](_0xd5cf0b,_0xd9c830,_0x52c40a=[],_0x3c51a6=null,_0x21bc00={}){_0xd9c830[_0xd7d5('0x15')]||(_0xd9c830['formatGroupId']=_0xd9c830[_0xd7d5('0x5b')]);const _0x4e31d7=_0xd5cf0b[0x0];_0xd9c830[_0xd7d5('0x89')]=_0x4e31d7['is'](_0xd7d5('0x39')),_0x3c51a6=_0x3c51a6||Nt(_0xd9c830);const _0x5068ea=_0x52c40a['map'](_0x48bc02=>jt(_0x48bc02,this[_0xd7d5('0xe5')])),_0x38b7b5=_0x4e31d7['is'](_0xd7d5('0x39'))?_0xd5cf0b:_0xd5cf0b[_0xd7d5('0x141')](_0x2d53db=>jt(_0x2d53db,this[_0xd7d5('0xe5')]));if('never'===this[_0xd7d5('0xfc')]){const _0x32d53d=this[_0xd7d5('0x26')]['getSuggestionCallback'](_0xd7d5('0x17'),_0x3c51a6,_0xd7d5('0x5c'));return this[_0xd7d5('0x16')](()=>_0x32d53d(_0x38b7b5,_0xd9c830,_0x21bc00)),null;}_0x5068ea[_0xd7d5('0x13d')](..._0x38b7b5);let _0x197c70=!0x0;for(const _0x578b43 of _0x5068ea)if(!this[_0xd7d5('0xc4')](_0x578b43)){_0x197c70=!0x1;break;}if(_0x197c70&&'always'!==this['_trackFormatChanges']){const _0x2deef3=this[_0xd7d5('0x26')]['getSuggestionCallback'](_0xd7d5('0x17'),_0x3c51a6,'accept');return this[_0xd7d5('0x16')](()=>_0x2deef3(_0x38b7b5,_0xd9c830,_0x21bc00)),null;}const _0x9f1ed9=this[_0xd7d5('0xa4')][_0xd7d5('0x36')][_0xd7d5('0xbd')]('Users')['me'];for(const _0x511bca of this[_0xd7d5('0x70')]()){if(_0x511bca[_0xd7d5('0xd7')]['id']!=_0x9f1ed9['id'])continue;if(_0xd7d5('0x17')!=_0x511bca['type']||_0x511bca['data'][_0xd7d5('0x15')]!=_0xd9c830[_0xd7d5('0x15')])continue;if(!Ot(_0x511bca,_0x21bc00))continue;const _0x10ee76=_0x511bca[_0xd7d5('0xe2')]==_0x3c51a6;for(let _0x40ac32=0x0;_0x40ac32<_0x38b7b5[_0xd7d5('0xf3')];_0x40ac32++){const _0x25013e=_0x38b7b5[_0x40ac32];for(const _0x131b1a of _0x511bca[_0xd7d5('0x9')]()){const _0x302e98=_0x131b1a[_0xd7d5('0x69')]();if(_0x25013e[_0xd7d5('0x24')](_0x302e98)){_0x10ee76?(_0x38b7b5['splice'](_0x40ac32,0x1),_0x40ac32--):_0x511bca[_0xd7d5('0x9d')](_0x131b1a[_0xd7d5('0xe4')]);break;}}}}if(0x0==_0x38b7b5[_0xd7d5('0xf3')])return null;const _0x550c91=this[_0xd7d5('0x26')]['getSuggestionCallback']('formatBlock',_0x3c51a6,_0xd7d5('0x136'));for(const _0x4428fb of this[_0xd7d5('0x70')]())if(_0x4428fb[_0xd7d5('0xd7')]['id']==_0x9f1ed9['id']&&_0xd7d5('0x17')==_0x4428fb['type']&&_0x4428fb[_0xd7d5('0x3c')][_0xd7d5('0x15')]==_0xd9c830[_0xd7d5('0x15')]&&_0x4428fb[_0xd7d5('0xe2')]==_0x3c51a6&&Ot(_0x4428fb,_0x21bc00)&&(_0x550c91(_0x4428fb[_0xd7d5('0xa9')](),_0x38b7b5)||_0x550c91(_0x38b7b5,_0x4428fb[_0xd7d5('0xa9')]()))){for(const _0x58188e of _0x38b7b5)_0x4428fb[_0xd7d5('0xb9')](_0x58188e);return _0x4428fb;}const _0x49a59f=_0x54a3ae(),_0x472953=_0x9f1ed9['id'],_0x3c8b5c=_0xd7d5('0x79')+_0x3c51a6,_0x5638e8=this[_0xd7d5('0x13b')]({'id':_0x49a59f,'type':_0x3c8b5c,'data':_0xd9c830,'createdAt':new Date(),'authorId':_0x472953,'attributes':_0x21bc00});for(const _0x1584b4 of _0x38b7b5)this['_addSuggestionMarker'](_0x3c8b5c,_0x49a59f,_0x472953,_0x1584b4,_0x28f913[_0xd7d5('0x2')]());return _0x5638e8;}[_0xd7d5('0x105')](_0x174ca3,_0x2d4973=null,_0xd2df55={}){if(_0x174ca3[_0xd7d5('0x8e')])return null;const _0x4d980f=this[_0xd7d5('0xa4')][_0xd7d5('0x36')][_0xd7d5('0xbd')]('Users')['me'],_0x50d151=new _0x4124e0(_0x174ca3[_0xd7d5('0x112')],_0x174ca3[_0xd7d5('0x12f')]);for(const {suggestion:_0x1b110b,meta:_0x212949}of this[_0xd7d5('0xed')](_0x50d151,_0xd7d5('0xd9')))if(_0x212949[_0xd7d5('0xa7')]&&!_0x212949[_0xd7d5('0x33')]){if(_0x1b110b[_0xd7d5('0x9f')]){const _0x3a32f2=_0x1b110b['getRanges']()[_0xd7d5('0x13')](_0x2548de=>'$graveyard'!=_0x2548de[_0xd7d5('0x115')][_0xd7d5('0x62')]);_0x3a32f2[_0xd7d5('0x6e')](_0x3b7a8b=>_0x50d151[_0xd7d5('0xa8')](_0x3b7a8b,!0x0))&&_0x1b110b['discard']();if(_0x3a32f2[_0xd7d5('0x41')](_0x2f8bed=>_0x2f8bed['containsRange'](_0x50d151,!0x0))){const _0x34bc58=this[_0xd7d5('0x26')][_0xd7d5('0x11b')]('deletion',_0x2d4973,'accept');return this[_0xd7d5('0x16')](()=>_0x34bc58([_0x50d151],null,_0xd2df55)),null;}}else{const _0x50ec3e=_0x50d151[_0xd7d5('0x8f')](_0x1b110b[_0xd7d5('0x11')]());null!==_0x50ec3e&&_0x1b110b[_0xd7d5('0xcf')]([_0x50ec3e],null,_0xd2df55);}}if(_0x50d151['detach'](),_0x50d151[_0xd7d5('0x8e')]||_0xd7d5('0x5a')==_0x50d151[_0xd7d5('0x115')]['rootName'])return null;let _0x35c58f=null,_0x54d130=_0x50d151['start'],_0x35919e=_0x50d151['end'];const _0x1ac40d=this['_findSuggestions'](_0x50d151,_0xd7d5('0x148'));for(const {suggestion:_0x3cd6b2,meta:_0x487e58}of _0x1ac40d){const _0x128f89=this['_model'][_0xd7d5('0x11e')](_0x54d130,_0x35919e);if(_0x487e58['isOwn']&&(this['_mergeNestedSuggestions']||!_0x487e58['containsRangeInObject']&&!_0x487e58[_0xd7d5('0x114')])){if(_0x3cd6b2[_0xd7d5('0x9f')]){if(!Ot(_0x3cd6b2,_0xd2df55))continue;let _0x3029e7=!0x0;for(const _0x451f54 of _0x3cd6b2[_0xd7d5('0xa9')]()){if(_0x451f54['containsRange'](_0x128f89,!0x0))return _0x3cd6b2;_0x128f89['containsRange'](_0x451f54)||(_0x3029e7=!0x1);}_0x3029e7&&_0x3cd6b2[_0xd7d5('0x40')]();}else{const _0x28244b=_0x3cd6b2[_0xd7d5('0x11')]();if(_0x28244b[_0xd7d5('0xa8')](_0x128f89,!0x0))return _0x3cd6b2;if(!Ot(_0x3cd6b2,_0xd2df55)){_0x128f89[_0xd7d5('0xa8')](_0x28244b)?_0x3cd6b2[_0xd7d5('0x3a')]():_0x28244b[_0xd7d5('0x8d')](_0x54d130)?_0x54d130=_0x28244b[_0xd7d5('0x12f')]:_0x28244b[_0xd7d5('0x8d')](_0x35919e)&&(_0x35919e=_0x28244b[_0xd7d5('0x112')]);continue;}_0x54d130=_0x54d130[_0xd7d5('0x25')](_0x28244b[_0xd7d5('0x112')])?_0x54d130:_0x28244b[_0xd7d5('0x112')],_0x35919e=_0x35919e[_0xd7d5('0x1c')](_0x28244b[_0xd7d5('0x12f')])?_0x35919e:_0x28244b['end'],_0xd2df55=Object[_0xd7d5('0x51')]({},_0x3cd6b2[_0xd7d5('0x128')]),_0x35c58f?_0x28244b[_0xd7d5('0x112')][_0xd7d5('0x25')](_0x35c58f['getFirstRange']()[_0xd7d5('0x112')])?(_0x35c58f[_0xd7d5('0x3a')](),_0x35c58f=_0x3cd6b2):_0x3cd6b2[_0xd7d5('0x3a')]():_0x35c58f=_0x3cd6b2;}}}if(_0x35c58f)return this['_setSuggestionRange'](_0x35c58f,this['_model'][_0xd7d5('0x11e')](_0x54d130,_0x35919e)),_0x35c58f;{const _0x2cca07=_0x54a3ae(),_0xa71479=this[_0xd7d5('0xe5')]['createRange'](_0x54d130,_0x35919e),_0x9bef52=_0x4d980f['id'],_0x19616d=_0x2d4973?_0xd7d5('0x2e')+_0x2d4973:_0xd7d5('0x148'),_0x4f5c05=this['_setSuggestionData']({'id':_0x2cca07,'type':_0x19616d,'createdAt':new Date(),'authorId':_0x9bef52,'attributes':_0xd2df55});return this[_0xd7d5('0x91')](_0x19616d,_0x2cca07,_0x9bef52,_0xa71479),_0x4f5c05;}}[_0xd7d5('0xac')](_0x480185,_0x4af8a6=_0xd7d5('0xe6'),_0x28697a={}){const _0x189253=this['editor']['plugins'][_0xd7d5('0xbd')](_0xd7d5('0x10'))['me'],_0x5db4c5=_0x480185[_0xd7d5('0x141')](_0x37523a=>new _0x4124e0(_0x37523a[_0xd7d5('0x112')],_0x37523a[_0xd7d5('0x12f')])),_0x1f8687=new Set();for(const {suggestion:_0x1d8c04,meta:_0x92b176}of this[_0xd7d5('0xed')](_0x5db4c5,_0xd7d5('0xd9')))_0x92b176[_0xd7d5('0xa7')]&&!_0x92b176[_0xd7d5('0x33')]&&_0x1f8687[_0xd7d5('0x100')](_0x1d8c04);for(const _0x4b4028 of _0x1f8687)if(_0x4b4028[_0xd7d5('0x9f')]){const _0x59eca7=_0x4b4028[_0xd7d5('0xa9')]();(!_0x4b4028['attributes']||!_0x4b4028[_0xd7d5('0x128')][_0xd7d5('0x12a')])&&(_0x59eca7[_0xd7d5('0x6e')](_0x4e0bf1=>_0x5db4c5['some'](_0x5881ab=>_0x5881ab['containsRange'](_0x4e0bf1,!0x0)))&&_0x4b4028[_0xd7d5('0x40')]());if(_0x5db4c5[_0xd7d5('0x6e')](_0x42f726=>_0x59eca7[_0xd7d5('0x41')](_0x59b159=>_0x59b159[_0xd7d5('0xa8')](_0x42f726,!0x0)))){const _0x52ba31=this[_0xd7d5('0x26')][_0xd7d5('0x11b')](_0xd7d5('0x148'),_0x4af8a6,_0xd7d5('0x5c'));return this['forceDefaultExecution'](()=>_0x52ba31(_0x480185,null,_0x28697a)),null;}}else{const _0x4182fa=_0x4b4028[_0xd7d5('0x11')]();_0x5db4c5[_0xd7d5('0x41')](_0x317c16=>_0x317c16[_0xd7d5('0xa8')](_0x4182fa,!0x0))&&_0x4b4028[_0xd7d5('0x40')]();if(_0x5db4c5[_0xd7d5('0x6e')](_0x401812=>_0x4182fa[_0xd7d5('0xa8')](_0x401812,!0x0))){const _0x1a585e=this[_0xd7d5('0x26')]['getSuggestionCallback'](_0xd7d5('0x148'),_0x4af8a6,_0xd7d5('0x5c'));return this[_0xd7d5('0x16')](()=>_0x1a585e(_0x5db4c5,null,_0x28697a)),null;}}const _0x1b5fbf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4af8a6,_0xd7d5('0x136'));let _0x1378c9=null;for(const _0x198c4e of this[_0xd7d5('0x70')]())if(_0x198c4e[_0xd7d5('0xd7')]['id']==_0x189253['id']&&_0x198c4e[_0xd7d5('0x48')]&&'deletion'==_0x198c4e['type']&&_0x198c4e[_0xd7d5('0xe2')]==_0x4af8a6&&Ot(_0x198c4e,_0x28697a)&&(_0x1b5fbf(_0x198c4e['getRanges'](),_0x5db4c5)||_0x1b5fbf(_0x5db4c5,_0x198c4e[_0xd7d5('0xa9')]()))){if(_0x1378c9){if(_0x198c4e[_0xd7d5('0x34')]&&_0x198c4e['commentThread'][_0xd7d5('0xf3')])continue;for(const _0x54a2bf of _0x198c4e['getRanges']())_0x1378c9['isIntersectingWithRange'](_0x54a2bf)||_0x1378c9[_0xd7d5('0xb9')](_0x54a2bf);_0x198c4e['removeMarkers']();}else{_0x1378c9=_0x198c4e;for(const _0x4a0555 of _0x5db4c5)_0x198c4e['isIntersectingWithRange'](_0x4a0555)||_0x198c4e[_0xd7d5('0xb9')](_0x4a0555);}}if(_0x1378c9)return _0x1378c9;_0x1f8687[_0xd7d5('0xea')]();for(const {suggestion:_0x2607cc,meta:_0x32b092}of this[_0xd7d5('0xed')](_0x5db4c5,_0xd7d5('0x148')))_0x32b092['isOwn']&&(this[_0xd7d5('0x138')]||!_0x32b092[_0xd7d5('0x125')]&&!_0x32b092[_0xd7d5('0x114')])&&Ot(_0x2607cc,_0x28697a)&&_0x1f8687[_0xd7d5('0x100')](_0x2607cc);for(const _0xcbe378 of _0x1f8687){const _0x3abda6=_0xcbe378[_0xd7d5('0xa9')]();if(!_0x28697a||!_0x28697a[_0xd7d5('0x12a')]){if(_0x5db4c5[_0xd7d5('0x6e')](_0x504db4=>_0x3abda6[_0xd7d5('0x41')](_0x1bcf42=>_0x1bcf42[_0xd7d5('0xa8')](_0x504db4,!0x0))))return _0xcbe378;}(!_0xcbe378[_0xd7d5('0x128')]||!_0xcbe378[_0xd7d5('0x128')][_0xd7d5('0x12a')])&&(_0x3abda6[_0xd7d5('0x6e')](_0x4e80b9=>_0x5db4c5[_0xd7d5('0x41')](_0x4c570f=>_0x4c570f[_0xd7d5('0xa8')](_0x4e80b9,!0x0)))&&_0xcbe378[_0xd7d5('0x40')]());}const _0x49b56b=_0x54a3ae(),_0x34edc8=_0x189253['id'],_0x21c078='deletion:'+_0x4af8a6,_0x578693=this['_setSuggestionData']({'id':_0x49b56b,'type':_0x21c078,'createdAt':new Date(),'authorId':_0x34edc8,'attributes':_0x28697a});for(const _0x2aeb14 of _0x5db4c5)_0x2aeb14[_0xd7d5('0x5')](),_0x2aeb14[_0xd7d5('0x8e')]||_0xd7d5('0x5a')==_0x2aeb14[_0xd7d5('0x115')][_0xd7d5('0x62')]||this[_0xd7d5('0x91')](_0x21c078,_0x49b56b,_0x34edc8,_0x2aeb14,_0x28f913['getMultiRangeId']());return _0x578693;}[_0xd7d5('0xe3')](_0x27e10f,_0x19b5cf){const _0x322a31=_0x27e10f[_0xd7d5('0x118')]();this['_model']['change'](_0x363022=>{_0x363022[_0xd7d5('0x13c')](_0x322a31,{'range':_0x19b5cf});});}[_0xd7d5('0x27')](_0x7d2a56){const _0x2fc090=_0x7d2a56['id'],_0x4354d4=this['editor'][_0xd7d5('0xf')][_0xd7d5('0xbd')](_0xd7d5('0xe7'));this[_0xd7d5('0x38')][_0xd7d5('0x7f')](_0x2fc090)||this[_0xd7d5('0x38')][_0xd7d5('0x8b')]({'channelId':_0x4354d4,'threadId':_0x2fc090,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xfec5a9=this[_0xd7d5('0x38')][_0xd7d5('0x31')](_0x2fc090);_0xfec5a9[_0xd7d5('0x61')]('isRemovable'),_0xfec5a9[_0xd7d5('0xb2')]=!0x1,_0x7d2a56[_0xd7d5('0x34')]=_0xfec5a9;}[_0xd7d5('0x144')](_0x246198,_0x299b69,_0x5a2ec7,_0x1f70cc){if(_0x246198[_0xd7d5('0x10a')]!=_0x299b69||_0x246198[_0xd7d5('0xe2')]!=_0x5a2ec7||_0x246198[_0xd7d5('0x139')]['id']!=_0x1f70cc)throw this[_0xd7d5('0xa4')][_0xd7d5('0x1b')](_0xd7d5('0x135')),new _0x5f4b85(_0xd7d5('0x135'),this);}[_0xd7d5('0x99')](_0x2279c1,_0x589709){const _0x5dc186=_0x2279c1[_0xd7d5('0x11')]();if(_0x589709[_0xd7d5('0x24')](_0x5dc186))_0x2279c1[_0xd7d5('0x3a')]();else{if(_0x5dc186[_0xd7d5('0xa8')](_0x589709)){const _0x27d0cd=this['_model'][_0xd7d5('0x18')](_0x589709[_0xd7d5('0x112')][_0xd7d5('0xd1')],_0xd7d5('0x12f'));this[_0xd7d5('0xe3')](_0x2279c1,this[_0xd7d5('0xe5')][_0xd7d5('0x11e')](_0x5dc186[_0xd7d5('0x112')],_0x27d0cd));const _0x452812=_0x54a3ae(),_0x51d46a=_0x2279c1[_0xd7d5('0x139')]['id'],_0x42d0b0=_0x2279c1[_0xd7d5('0x10a')]+':'+_0x2279c1[_0xd7d5('0xe2')];this[_0xd7d5('0x13b')]({'id':_0x452812,'type':_0x42d0b0,'createdAt':new Date(),'authorId':_0x51d46a,'data':_0x2279c1[_0xd7d5('0x3c')],'attributes':_0x2279c1[_0xd7d5('0x128')]});const _0x290fc8=this[_0xd7d5('0xe5')]['createPositionAt'](_0x589709[_0xd7d5('0x12f')][_0xd7d5('0xd')],_0xd7d5('0x2a')),_0x269eae=this[_0xd7d5('0xe5')]['createRange'](_0x290fc8,_0x5dc186['end']);this[_0xd7d5('0x91')](_0x42d0b0,_0x452812,_0x51d46a,_0x269eae);}else{if(_0x5dc186[_0xd7d5('0x8d')](_0x589709[_0xd7d5('0x112')])){const _0x19be60=this['_model'][_0xd7d5('0x18')](_0x589709[_0xd7d5('0x112')][_0xd7d5('0xd1')],'end');this[_0xd7d5('0xe3')](_0x2279c1,this[_0xd7d5('0xe5')][_0xd7d5('0x11e')](_0x5dc186[_0xd7d5('0x112')],_0x19be60));}else{const _0x4a1779=this['_model'][_0xd7d5('0x18')](_0x589709[_0xd7d5('0x12f')]['parent'],_0xd7d5('0x2a'));this['_setSuggestionRange'](_0x2279c1,this[_0xd7d5('0xe5')]['createRange'](_0x4a1779,_0x5dc186[_0xd7d5('0x12f')]));}}}}[_0xd7d5('0xc4')](_0x580d56){for(const {suggestion:_0x2a450b,meta:_0xedb676}of this[_0xd7d5('0xed')](_0x580d56,_0xd7d5('0xd9'))){if(!_0xedb676[_0xd7d5('0xa7')])continue;const _0x23b282=_0x2a450b['getRanges']();for(const _0x30c74f of _0x23b282)if(!_0x580d56[_0xd7d5('0x8a')](_0x30c74f)[_0xd7d5('0xf3')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b9e56){const _0x583c15=this[_0xd7d5('0xa4')][_0xd7d5('0x36')]['get'](_0xd7d5('0x10'))[_0xd7d5('0x13a')](_0x1b9e56);if(!_0x583c15)throw new _0x5f4b85(_0xd7d5('0xe9'),this);return _0x583c15;}[_0xd7d5('0x147')](_0x619f98){const _0x28db07=this[_0xd7d5('0xa4')]['plugins']['get'](_0xd7d5('0x10')),_0x4286e6=_0x5f0bfa(_0xd7d5('0xd4')+_0x619f98),_0x187e0b=_0x28db07[_0xd7d5('0x13a')](_0x4286e6);return _0x187e0b||_0x28db07[_0xd7d5('0xc')]({'id':_0x4286e6,'name':_0x619f98});}[_0xd7d5('0xad')](_0x262054,_0x913337,_0x1264c7,_0x47dbaf,_0x1111be){const _0x3f9440=this[_0xd7d5('0xd3')](_0x47dbaf),_0x7eebc8=this[_0xd7d5('0x26')]['buildSuggestion'](_0x262054,_0x913337,_0x1264c7,_0x3f9440,_0x1111be,_0x21df25=>this[_0xd7d5('0x59')](_0x1264c7,{'attributes':_0x21df25}));return this[_0xd7d5('0x13f')](_0x7eebc8,_0xd7d5('0x5c'),()=>{this[_0xd7d5('0x59')](_0x1264c7,{'state':_0xd7d5('0xb5')});},{'priority':_0xd7d5('0x103')}),this['listenTo'](_0x7eebc8,_0xd7d5('0x40'),()=>{this[_0xd7d5('0x59')](_0x1264c7,{'state':_0xd7d5('0xf6')});},{'priority':_0xd7d5('0x103')}),this[_0xd7d5('0x110')][_0xd7d5('0x9c')](_0x1264c7,_0x7eebc8),this[_0xd7d5('0xb8')][_0xd7d5('0x9c')](_0x7eebc8,_0xd7d5('0xf9')),_0x7eebc8;}['_splitMarkerName'](_0x3296e1){const _0x35bf2c=_0x3296e1[_0xd7d5('0x6b')](':');return{'group':_0x35bf2c[0x0],'type':_0x35bf2c[0x1],'subType':_0x35bf2c[_0xd7d5('0xf3')]>=0x5?_0x35bf2c[0x2]:null,'id':_0x35bf2c['length']<0x5?_0x35bf2c[0x2]:_0x35bf2c[0x3],'authorId':_0x35bf2c['length']<0x5?_0x35bf2c[0x3]:_0x35bf2c[0x4],'markerCount':0x6==_0x35bf2c[_0xd7d5('0xf3')]?_0x35bf2c[0x5]:null};}['_breakSuggestionMarker'](_0x215de4,_0x30855a,_0x23f242){const _0x2392db=_0x215de4[_0xd7d5('0x11')](),_0x5c787=_0x2392db['start'],_0x449f62=_0x2392db[_0xd7d5('0x12f')];this[_0xd7d5('0xe3')](_0x215de4,this['_model'][_0xd7d5('0x11e')](_0x5c787,_0x30855a));const _0x2be167=_0x54a3ae(),_0x37b1bf=_0x215de4[_0xd7d5('0x139')]['id'],_0x556c94=_0x215de4['type']+(_0x215de4[_0xd7d5('0xe2')]?':'+_0x215de4['subType']:'');this[_0xd7d5('0x13b')]({'id':_0x2be167,'type':_0x556c94,'createdAt':new Date(),'authorId':_0x37b1bf,'originalSuggestionId':_0x215de4['id'],'attributes':_0x215de4[_0xd7d5('0x128')],'data':_0x215de4[_0xd7d5('0x3c')]}),_0xd7d5('0x17')==_0x215de4[_0xd7d5('0x10a')]&&(_0x23f242=this[_0xd7d5('0xe5')][_0xd7d5('0x56')](_0x23f242['parent'])),this[_0xd7d5('0x91')](_0x556c94,_0x2be167,_0x37b1bf,this[_0xd7d5('0xe5')][_0xd7d5('0x11e')](_0x23f242,_0x449f62));}[_0xd7d5('0xed')](_0xdf6991,_0x6276f4=null){const _0x21b9b2=[],_0x328647=this[_0xd7d5('0xa4')][_0xd7d5('0x36')][_0xd7d5('0xbd')](_0xd7d5('0x10'))['me'];Array[_0xd7d5('0x37')](_0xdf6991)||(_0xdf6991=[_0xdf6991]);for(const _0x15d5f7 of this['getSuggestions']()){if(!_0x15d5f7[_0xd7d5('0x48')])continue;if(_0x6276f4&&_0x15d5f7[_0xd7d5('0x10a')]!=_0x6276f4)continue;let _0x13d0bd=!0x1;for(const _0xbc4dfc of _0x15d5f7[_0xd7d5('0xa9')]()){for(const _0x1a0539 of _0xdf6991){const _0x42588f=_0x1a0539[_0xd7d5('0x112')][_0xd7d5('0x24')](_0xbc4dfc['end'])||_0x1a0539[_0xd7d5('0x12f')][_0xd7d5('0x24')](_0xbc4dfc[_0xd7d5('0x112')]);if(_0x42588f||_0x1a0539[_0xd7d5('0x8f')](_0xbc4dfc)){const _0x2587cc=_0x1a0539[_0xd7d5('0xa8')](_0xbc4dfc)&&_t(this[_0xd7d5('0xe5')][_0xd7d5('0xfb')],_0xbc4dfc[_0xd7d5('0x112')],_0x1a0539),_0x473408=_0xbc4dfc['containsRange'](_0x1a0539)&&_t(this[_0xd7d5('0xe5')]['schema'],_0x1a0539['start'],_0xbc4dfc);_0x21b9b2[_0xd7d5('0x13d')]({'suggestion':_0x15d5f7,'meta':{'isOwn':_0x328647==_0x15d5f7['author'],'isNextTo':_0x42588f,'isInsideObject':_0x2587cc,'containsRangeInObject':_0x473408}}),_0x13d0bd=!0x0;break;}}if(_0x13d0bd)break;}}return _0x21b9b2;}[_0xd7d5('0x91')](_0x153d32,_0x23cd3c,_0x50a04a,_0x1b59ca,_0x1a8369){this['_model'][_0xd7d5('0x124')](_0x630c3e=>{let _0x3da6d1='suggestion:'+_0x153d32+':'+_0x23cd3c+':'+_0x50a04a;_0x1a8369&&(_0x3da6d1=_0x3da6d1+':'+_0x1a8369),_0x630c3e[_0xd7d5('0x68')](_0x3da6d1,{'range':_0x1b59ca,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xd7d5('0xeb')](_0x17fc54){const _0x1bff8c=_0x17fc54[_0xd7d5('0x10f')],_0x13c4ec=_0x17fc54[_0xd7d5('0x122')];_0x17fc54[_0xd7d5('0x10f')]=null,null!=_0x1bff8c&&(_0x1bff8c[_0xd7d5('0x122')]=null),_0x17fc54[_0xd7d5('0x122')]=null,null!=_0x13c4ec&&(_0x13c4ec[_0xd7d5('0x10f')]=null),'ready'==this[_0xd7d5('0xb8')][_0xd7d5('0xbd')](_0x17fc54)&&(this[_0xd7d5('0xb8')][_0xd7d5('0x9c')](_0x17fc54,_0xd7d5('0xc0')),this[_0xd7d5('0x7b')](_0xd7d5('0x22'),_0x17fc54,_0x1bff8c,_0x13c4ec));}['_setSuggestionData'](_0x41846a){const _0x399640=_0x41846a['id'],_0x14d445=this['addSuggestionData'](_0x41846a);if(this[_0xd7d5('0x101')]&&this[_0xd7d5('0x101')][_0xd7d5('0xee')]){const _0x493d48=this[_0xd7d5('0xa4')][_0xd7d5('0x36')]['get']('PendingActions'),_0x4b0807=_0x14d445[_0xd7d5('0x2f')],_0x2317e8=_0x14d445[_0xd7d5('0xe2')]?_0x14d445[_0xd7d5('0x10a')]+':'+_0x14d445['subType']:_0x14d445[_0xd7d5('0x10a')],_0x18741b=this[_0xd7d5('0xa4')][_0xd7d5('0xb1')],_0x2bc081=_0x493d48[_0xd7d5('0x100')](_0x767fc4(_0x18741b,'PENDING_ACTION_SUGGESTION')),_0x188f73={'id':_0x399640,'type':_0x2317e8,'hasComments':_0x4b0807,'data':_0x41846a[_0xd7d5('0x3c')]||null,'originalSuggestionId':_0x41846a[_0xd7d5('0x95')]||null,'attributes':_0x14d445[_0xd7d5('0x128')]};this['_adapter'][_0xd7d5('0xee')](_0x188f73)[_0xd7d5('0x82')](_0x3bd638=>{_0x14d445[_0xd7d5('0x116')]=!0x0,_0x493d48[_0xd7d5('0xe')](_0x2bc081),_0x3bd638&&_0x3bd638[_0xd7d5('0x4b')]&&(this[_0xd7d5('0x110')]['get'](_0x399640)['createdAt']=_0x3bd638[_0xd7d5('0x4b')]);})[_0xd7d5('0x0')](_0xaa9cd0=>{throw _0x5bc8db('error-saving-suggestion-data-suggestion-discarded'),this[_0xd7d5('0xa4')][_0xd7d5('0x7d')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x14d445[_0xd7d5('0x40')]();}),_0x14d445[_0xd7d5('0x63')](),this[_0xd7d5('0x110')][_0xd7d5('0x47')](_0x14d445['id']),this[_0xd7d5('0xb8')][_0xd7d5('0x47')](_0x14d445),_0xaa9cd0;});}return _0x14d445;}[_0xd7d5('0x59')](_0x3b4ff2,_0xe85d6d){const _0x3c9e23=this[_0xd7d5('0xa4')][_0xd7d5('0x36')][_0xd7d5('0xbd')](_0xd7d5('0x109')),_0x26088d=this['getSuggestion'](_0x3b4ff2);if(this[_0xd7d5('0x101')]&&this[_0xd7d5('0x101')][_0xd7d5('0x54')]){if(_0x26088d[_0xd7d5('0x116')]){const _0x487c29=_0x3c9e23[_0xd7d5('0x100')](_0x767fc4(this[_0xd7d5('0xa4')][_0xd7d5('0xb1')],_0xd7d5('0xce')));this[_0xd7d5('0x101')][_0xd7d5('0x54')](_0x3b4ff2,_0xe85d6d)[_0xd7d5('0x82')](()=>{_0x3c9e23[_0xd7d5('0xe')](_0x487c29);});}else _0x26088d['on'](_0xd7d5('0x6'),()=>{this[_0xd7d5('0x59')](_0x3b4ff2,_0xe85d6d);});}}[_0xd7d5('0x145')](_0x1b763b){if(!this[_0xd7d5('0x101')]||!this['_adapter'][_0xd7d5('0x3e')])throw new _0x5f4b85(_0xd7d5('0xe1'),this);return this['_adapter'][_0xd7d5('0x3e')](_0x1b763b);}['_handleNewSuggestionMarker'](_0x44e9c6){const {id:_0x3bb4c3,type:_0x38957a,subType:_0x5eeb52,authorId:_0x3c636e}=this[_0xd7d5('0x42')](_0x44e9c6),_0x37da56=this[_0xd7d5('0x110')][_0xd7d5('0xbd')](_0x3bb4c3)||this[_0xd7d5('0xad')](_0x38957a,_0x5eeb52,_0x3bb4c3,_0x3c636e,{});switch(this[_0xd7d5('0x144')](_0x37da56,_0x38957a,_0x5eeb52,_0x3c636e),this['_suggestionState']['get'](_0x37da56)){case'notReady':this[_0xd7d5('0x145')](_0x3bb4c3)[_0xd7d5('0x82')](_0x5733e4=>{let _0x5e5f6d=Promise[_0xd7d5('0x133')]();_0x5733e4[_0xd7d5('0x2f')]&&(_0x5e5f6d=this[_0xd7d5('0x38')][_0xd7d5('0xcd')]({'channelId':this['editor']['config'][_0xd7d5('0xbd')](_0xd7d5('0xe7')),'threadId':_0x3bb4c3})),_0x5e5f6d[_0xd7d5('0x82')](()=>{this['addSuggestionData'](_0x5733e4)[_0xd7d5('0x116')]=!0x0;});}),this[_0xd7d5('0xb8')][_0xd7d5('0x9c')](_0x37da56,_0xd7d5('0x12'));break;case _0xd7d5('0xc0'):this[_0xd7d5('0x59')](_0x3bb4c3,{'state':_0xd7d5('0x81')});case _0xd7d5('0xd8'):this[_0xd7d5('0xb8')][_0xd7d5('0x9c')](_0x37da56,'ready'),this['fire']('suggestionLoaded',_0x37da56);break;case _0xd7d5('0xda'):this[_0xd7d5('0x7b')](_0xd7d5('0xc1'),_0x37da56);}return _0x37da56['addMarkerName'](_0x44e9c6),_0x37da56;}[_0xd7d5('0xc8')](_0x1591fb){const _0x2c5866=Array[_0xd7d5('0x98')](_0x1591fb)['filter'](_0x27f67e=>!_0x27f67e['isMultiRange']),_0x56aa3c=this['getSuggestions']({'skipNotAttached':!0x0})[_0xd7d5('0x13')](_0x8251b7=>!_0x8251b7[_0xd7d5('0x9f')]),_0x35796f=_0x56aa3c[_0xd7d5('0x13')](_0x2cb0e4=>!_0x1591fb[_0xd7d5('0x107')](_0x2cb0e4)),_0x58bb41=new Map(_0x56aa3c[_0xd7d5('0x141')](_0x2123c1=>[_0x2123c1,this[_0xd7d5('0x26')][_0xd7d5('0x11b')](_0x2123c1[_0xd7d5('0x10a')],_0x2123c1['subType'],_0xd7d5('0xa'))])),_0xa511d3=new Map(_0x56aa3c[_0xd7d5('0x141')](_0x1b2112=>[_0x1b2112,_0x1b2112[_0xd7d5('0x11')]()])),_0x3fcdf4=new Set(),_0x1c2d37=new Set();for(let _0x4a7c2d=0x0;_0x4a7c2d<_0x2c5866[_0xd7d5('0xf3')];_0x4a7c2d++)_0x1128f8(_0x2c5866[_0x4a7c2d],_0x2c5866,_0x4a7c2d+0x1);for(let _0x256c32=0x0;_0x256c32<_0x2c5866['length'];_0x256c32++)_0x1128f8(_0x2c5866[_0x256c32],_0x35796f,0x0);for(let _0x50c69e=0x0;_0x50c69e<_0x2c5866['length'];_0x50c69e++){const _0x52641b=_0x2c5866[_0x50c69e];!_0x1c2d37[_0xd7d5('0x107')](_0x52641b)&&_0x52641b[_0xd7d5('0x10f')]&&(_0x52641b[_0xd7d5('0x10f')]['next']===_0x52641b&&(_0x52641b[_0xd7d5('0x10f')][_0xd7d5('0x122')]=null),_0x52641b[_0xd7d5('0x10f')]=null),!_0x3fcdf4[_0xd7d5('0x107')](_0x52641b)&&_0x52641b[_0xd7d5('0x122')]&&(_0x52641b[_0xd7d5('0x122')]['previous']===_0x52641b&&(_0x52641b[_0xd7d5('0x122')]['previous']=null),_0x52641b[_0xd7d5('0x122')]=null);}function _0x1128f8(_0x381ca5,_0x182049,_0x350dc5){for(let _0x124ebb=_0x350dc5;_0x124ebb<_0x182049[_0xd7d5('0xf3')];_0x124ebb++){const _0x30e118=_0x214a37(_0x381ca5,_0x182049[_0x124ebb]);_0x30e118&&(_0x30e118[0x0][_0xd7d5('0x122')]=_0x30e118[0x1],_0x30e118[0x1]['previous']=_0x30e118[0x0],_0x3fcdf4['add'](_0x30e118[0x0]),_0x1c2d37['add'](_0x30e118[0x1]));}}function _0x214a37(_0x39ba69,_0x53b5c2){if(_0x39ba69[_0xd7d5('0xd7')]['id']!==_0x53b5c2[_0xd7d5('0xd7')]['id'])return null;const _0x15f778=_0x58bb41[_0xd7d5('0xbd')](_0x39ba69)(_0x39ba69,_0x53b5c2,_0xa511d3[_0xd7d5('0xbd')](_0x39ba69),_0xa511d3[_0xd7d5('0xbd')](_0x53b5c2));if(!_0x15f778)return null;return _0x58bb41['get'](_0x53b5c2)(_0x39ba69,_0x53b5c2,_0xa511d3[_0xd7d5('0xbd')](_0x39ba69),_0xa511d3[_0xd7d5('0xbd')](_0x53b5c2))?_0x15f778[0x1][_0xd7d5('0x34')]&&_0x15f778[0x1]['commentThread']['length']?null:_0x15f778:null;}}[_0xd7d5('0xf8')](_0x23c08d){const _0x436928=Array[_0xd7d5('0x98')](_0x23c08d),_0x87f929=this[_0xd7d5('0x70')]({'skipNotAttached':!0x0}),_0x2f0ede=_0x87f929['filter'](_0x3c3e7c=>!_0x23c08d['has'](_0x3c3e7c)),_0x50aaa9=new Map(_0x436928[_0xd7d5('0x141')](_0xa4a0e6=>[_0xa4a0e6,this[_0xd7d5('0x26')]['getSuggestionCallback'](_0xa4a0e6[_0xd7d5('0x10a')],_0xa4a0e6[_0xd7d5('0xe2')],_0xd7d5('0x136'))])),_0x186d06=new Map(_0x87f929[_0xd7d5('0x141')](_0x450f9f=>[_0x450f9f,_0x450f9f[_0xd7d5('0xa9')]()]));for(let _0x1b7fa1=0x0;_0x1b7fa1<_0x436928['length'];_0x1b7fa1++){if(_0x28661b(this,_0x436928[_0x1b7fa1],_0x436928,_0x1b7fa1+0x1))return!0x0;}for(let _0x39c579=0x0;_0x39c579<_0x436928['length'];_0x39c579++){if(_0x28661b(this,_0x436928[_0x39c579],_0x2f0ede,0x0))return!0x0;}return!0x1;function _0x28661b(_0x17ebee,_0x50b813,_0x261232,_0x5aec32){for(let _0x5ab546=_0x5aec32;_0x5ab546<_0x261232[_0xd7d5('0xf3')];_0x5ab546++){const _0x2b6120=_0x261232[_0x5ab546];if(_0x2b6120['type']!==_0x50b813[_0xd7d5('0x10a')]||_0x2b6120[_0xd7d5('0xd7')]['id']!==_0x50b813[_0xd7d5('0xd7')]['id']||_0x2b6120[_0xd7d5('0xe2')]!==_0x50b813[_0xd7d5('0xe2')])continue;if(!Ut(_0x50b813,_0x2b6120))continue;const _0xe33d37=_0x50aaa9[_0xd7d5('0xbd')](_0x50b813),_0x53ef91=_0x186d06[_0xd7d5('0xbd')](_0x50b813),_0x337a7d=_0x186d06[_0xd7d5('0xbd')](_0x2b6120),_0x39cd9d=_0x50b813['commentThread']&&_0x50b813[_0xd7d5('0x34')][_0xd7d5('0xf3')],_0x1dc0b4=_0x2b6120['commentThread']&&_0x2b6120[_0xd7d5('0x34')][_0xd7d5('0xf3')];if(!_0x39cd9d&&_0xe33d37(_0x337a7d,_0x53ef91))return _0x17ebee[_0xd7d5('0x65')](_0x2b6120,_0x50b813),_0x186d06[_0xd7d5('0x47')](_0x50b813),!0x0;if(!_0x1dc0b4&&_0xe33d37(_0x53ef91,_0x337a7d))return _0x17ebee[_0xd7d5('0x65')](_0x50b813,_0x2b6120),_0x186d06[_0xd7d5('0x47')](_0x2b6120),!0x0;}return!0x1;}}[_0xd7d5('0x65')](_0x201308,_0x562b8f){if(_0x201308[_0xd7d5('0x9f')])for(const _0x3a4149 of _0x562b8f['getRanges']())_0x201308[_0xd7d5('0xb9')](_0x3a4149);else{const _0x5ec70d=_0x562b8f['getFirstRange']()[_0xd7d5('0x12f')];this['_setSuggestionRange'](_0x201308,this[_0xd7d5('0xe5')][_0xd7d5('0x11e')](_0x201308[_0xd7d5('0x11')]()[_0xd7d5('0x112')],_0x5ec70d));}_0x562b8f[_0xd7d5('0x3a')]();}}class Bt{constructor(_0x2efa64){this[_0xd7d5('0x28')]=_0x2efa64,this['_model']=_0x2efa64[_0xd7d5('0x7d')],this['_customCallbacks']=new Map(),this[_0xd7d5('0xaa')]=new Map(),this[_0xd7d5('0x3f')]();}[_0xd7d5('0x43')](_0x2f4687,_0x128598,_0x382b94,_0x5d88e0,_0x5416e3,_0x46da15){return new _0x28f913(this[_0xd7d5('0xe5')],{'type':_0x2f4687,'subType':_0x128598,'id':_0x382b94,'author':_0x5d88e0,'creator':_0x5d88e0,'attributes':_0x5416e3,'onAttributesChange':_0x46da15,'onAccept':(..._0x3e77b3)=>this[_0xd7d5('0x11b')](_0x2f4687,_0x128598,_0xd7d5('0x5c'))(..._0x3e77b3),'onDiscard':(..._0x22cccc)=>this['getSuggestionCallback'](_0x2f4687,_0x128598,_0xd7d5('0x40'))(..._0x22cccc)});}[_0xd7d5('0x4e')](_0x11bf50,_0x3c88e0,_0x455281,_0x3ebebf){const _0x3079f7=_0x11bf50+':'+_0x3c88e0+':'+_0x455281;this['_customCallbacks'][_0xd7d5('0x9c')](_0x3079f7,_0x3ebebf);}[_0xd7d5('0x11b')](_0x3f7cad,_0x129b33,_0x2dcf0f){const _0x571aac=_0x3f7cad+':'+_0x129b33+':'+_0x2dcf0f;return this['_customCallbacks'][_0xd7d5('0xbd')](_0x571aac)||this['_defaultCallbacks'][_0xd7d5('0xbd')](_0x3f7cad+':'+_0x2dcf0f);}['_registerDefaultCallbacks'](){const _0x2db4d7=()=>!0x1,_0xa92b3c=_0xefd79d=>{_0xefd79d[_0xd7d5('0x127')]((_0x2449ab,_0x5ac5ba)=>_0x2449ab[_0xd7d5('0x112')]['isBefore'](_0x5ac5ba[_0xd7d5('0x112')])?0x1:-0x1),this['_model'][_0xd7d5('0x124')](_0x2e5ca1=>{for(const _0x3ddf3e of _0xefd79d){let _0x94e945;_0x94e945=_0x3ddf3e[_0xd7d5('0x12f')][_0xd7d5('0x78')]&&_0x3ddf3e[_0xd7d5('0x12f')][_0xd7d5('0xd')]==_0x3ddf3e['start'][_0xd7d5('0x10d')]?_0x2e5ca1[_0xd7d5('0x8c')](_0x3ddf3e[_0xd7d5('0x112')][_0xd7d5('0x10d')],'on'):_0x2e5ca1[_0xd7d5('0x8c')](_0x3ddf3e),this['_model']['deleteContent'](_0x94e945,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x226a73=(_0x4c252a,_0x2a2195)=>{this[_0xd7d5('0xe5')][_0xd7d5('0x124')](_0x1bd754=>{const {commandName:_0x41089e,commandParams:_0x452268=[]}=_0x2a2195,_0x1a3b2a=_0x4c252a[_0xd7d5('0x141')](_0xc71726=>(Mt(_0xc71726)&&(_0xc71726=this[_0xd7d5('0xe5')][_0xd7d5('0x11e')](_0xc71726[_0xd7d5('0x12f')])),_0xc71726))[_0xd7d5('0x13')](_0x32c4aa=>_0xd7d5('0x5a')!==_0x32c4aa[_0xd7d5('0x115')]['rootName']);if(_0x1a3b2a[_0xd7d5('0xf3')]<0x1)return;const _0x32f502=Array[_0xd7d5('0x98')](this['_model'][_0xd7d5('0x88')][_0xd7d5('0x32')]['getRanges']())[_0xd7d5('0x141')](_0x207fbc=>_0x4124e0[_0xd7d5('0xb6')](_0x207fbc));_0x1bd754[_0xd7d5('0x149')](_0x1a3b2a);for(const _0x29faf9 of this[_0xd7d5('0x28')]['commands'][_0xd7d5('0xd5')]())_0x29faf9[_0xd7d5('0x1f')]();_0x452268[_0xd7d5('0x13d')]({'forceDefaultExecution':!0x0}),this[_0xd7d5('0x28')][_0xd7d5('0x14b')](_0x41089e,..._0x452268);const _0x3c03df=_0x32f502[_0xd7d5('0x13')](_0x48f9b6=>_0xd7d5('0x5a')!=_0x48f9b6['root'][_0xd7d5('0x62')]);_0x3c03df[_0xd7d5('0xf3')]>0x0&&_0x1bd754['setSelection'](_0x3c03df);for(const _0x4a9af8 of _0x32f502)_0x4a9af8['detach']();});},_0x334064=(_0x4f25ee,_0x400a89)=>0x1==_0x4f25ee[_0xd7d5('0xf3')]&&0x1==_0x400a89[_0xd7d5('0xf3')]&&_0x4f25ee[0x0][_0xd7d5('0x12f')][_0xd7d5('0x24')](_0x400a89[0x0][_0xd7d5('0x112')]),_0x67a3d9=(_0x2bd81b,_0x4725ec,_0x213042,_0x20b30c)=>xt(_0x2bd81b,_0x4725ec,_0x213042,_0x20b30c,this[_0xd7d5('0xe5')])?[_0x2bd81b,_0x4725ec]:xt(_0x4725ec,_0x2bd81b,_0x20b30c,_0x213042,this[_0xd7d5('0xe5')])?[_0x4725ec,_0x2bd81b]:null;this[_0xd7d5('0xaa')]['set'](_0xd7d5('0x57'),_0x2db4d7),this[_0xd7d5('0xaa')]['set'](_0xd7d5('0x117'),_0xa92b3c),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')](_0xd7d5('0xc2'),_0x334064),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')](_0xd7d5('0xae'),_0x67a3d9),this['_defaultCallbacks'][_0xd7d5('0x9c')](_0xd7d5('0x92'),_0xa92b3c),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')](_0xd7d5('0x102'),_0x2db4d7),this[_0xd7d5('0xaa')]['set']('deletion:join',_0x334064),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')](_0xd7d5('0x23'),_0x67a3d9),this['_defaultCallbacks']['set']('formatInline:accept',_0x226a73),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')](_0xd7d5('0x9a'),_0x2db4d7),this['_defaultCallbacks'][_0xd7d5('0x9c')](_0xd7d5('0xc3'),_0x334064),this['_defaultCallbacks'][_0xd7d5('0x9c')]('formatInline:chain',_0x2db4d7),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')]('formatBlock:accept',_0x226a73),this['_defaultCallbacks']['set'](_0xd7d5('0x132'),_0x2db4d7),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')]('formatBlock:join',_0x334064),this[_0xd7d5('0xaa')][_0xd7d5('0x9c')](_0xd7d5('0x6f'),_0x2db4d7);}}function _t(_0x416887,_0x13fa6b,_0x249544){for(const _0x4f1cae of _0x13fa6b[_0xd7d5('0xd')][_0xd7d5('0x76')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f1cae[_0xd7d5('0x115')]==_0x4f1cae)return!0x1;if(!_0x249544['containsItem'](_0x4f1cae))return!0x1;if(_0x416887[_0xd7d5('0x1d')](_0x4f1cae)||_0x416887[_0xd7d5('0x1a')](_0x4f1cae))return!0x0;}return!0x1;}function Mt(_0x153b19){return _0x153b19['end'][_0xd7d5('0xd')]==_0x153b19[_0xd7d5('0x112')][_0xd7d5('0x10d')]&&_0x153b19[_0xd7d5('0x12f')][_0xd7d5('0xf5')];}function $t(_0x58b255,_0x550e72,_0x1213c6,_0x3491a2){const _0x324dad=_0x14dfbb=>!_0x14dfbb['item']['is'](_0xd7d5('0x111'))&&!_0x3491a2['isObject'](_0x14dfbb['item']),_0x4c982d=_0x58b255[_0xd7d5('0x112')][_0xd7d5('0x75')](_0x324dad),_0x3ef3fb=_0x58b255[_0xd7d5('0x12f')]['getLastMatchingPosition'](_0x324dad,{'direction':'backward'});return(!_0x58b255['start'][_0xd7d5('0x24')](_0x4c982d)||!_0x58b255[_0xd7d5('0x12f')][_0xd7d5('0x24')](_0x3ef3fb))&&(_0x4c982d[_0xd7d5('0x25')](_0x3ef3fb)?_0x1213c6[_0xd7d5('0x13c')](_0x550e72,{'range':_0x1213c6[_0xd7d5('0x11e')](_0x4c982d,_0x3ef3fb)}):_0x1213c6['removeMarker'](_0x550e72),!0x0);}function Nt(_0x402562){return _0x5f0bfa(_0x402562);}function Rt(_0x4eb3a1){const _0x58ccc2=_0x4eb3a1[_0xd7d5('0x112')][_0xd7d5('0x10d')];return _0x58ccc2&&_0x58ccc2['is']('element');}function jt(_0x5859e4,_0x263af4){const _0x25e411=_0x263af4[_0xd7d5('0xfb')][_0xd7d5('0x1d')](_0x5859e4)||_0x263af4[_0xd7d5('0xfb')]['isSelectable'](_0x5859e4);return _0x263af4['createRange'](_0x263af4[_0xd7d5('0x18')](_0x5859e4,'before'),_0x25e411?_0x263af4[_0xd7d5('0x130')](_0x5859e4):_0x263af4[_0xd7d5('0x18')](_0x5859e4,_0xd7d5('0x12f')));}function xt(_0x53a0f3,_0x5c1128,_0x43962f,_0x342852,_0x1899e3){if(!Ut(_0x53a0f3,_0x5c1128))return!0x1;if(_0x43962f['end'][_0xd7d5('0x24')](_0x342852['start']))return!0x0;if(_0x53a0f3[_0xd7d5('0x10a')]!=_0x5c1128[_0xd7d5('0x10a')])return!0x1;if(!_0x43962f[_0xd7d5('0x12f')]['isTouching'](_0x342852['start']))return!0x1;const _0x39393a=_0x1899e3[_0xd7d5('0x11e')](_0x43962f[_0xd7d5('0x12f')],_0x342852[_0xd7d5('0x112')])[_0xd7d5('0x4c')]();for(const _0x1e0ff6 of _0x39393a)if([_0xd7d5('0xcb'),_0xd7d5('0x6a')][_0xd7d5('0x52')](_0x1e0ff6[_0xd7d5('0x10a')])&&_0x1899e3[_0xd7d5('0xfb')][_0xd7d5('0x1a')](_0x1e0ff6[_0xd7d5('0x7c')]))return!0x1;return!0x0;}function Ut(_0x1555a2,_0xc0c543){return!(!_0x1555a2[_0xd7d5('0xab')]||!_0xc0c543[_0xd7d5('0xab')])&&_0x4566a5(_0x1555a2[_0xd7d5('0x128')],_0xc0c543[_0xd7d5('0x128')]);}function Ot(_0x3d63fb,_0x1e7e4e){const _0x151c8f=Et(_0x3d63fb['attributes']),_0x5e7471=Et(_0x1e7e4e);if(!_0x3d63fb['_isDataLoaded'])return!0x1;for(const _0x3f5290 of Object[_0xd7d5('0x96')](_0x5e7471))if(!_0x4566a5(_0x151c8f[_0x3f5290],_0x5e7471[_0x3f5290]))return!0x1;return!0x0;}function Et(_0xed2c71){const _0x8ea73f=Object[_0xd7d5('0x51')]({},_0xed2c71);return delete _0x8ea73f[_0xd7d5('0x12a')],delete _0x8ea73f['tablePasteChainId'],_0x8ea73f;}
|
|
23
|
+
const _0x1092=['getIntersection','highest','isAfter','deletion:join','addClass','originalSuggestionId','containsRange','_createSuggestion','external:','addSuggestion','deleteContent','assign','error-saving-suggestion-data-suggestion-discarded','getSuggestion','formatInline:chain','for','length','hasComments','subType','lowest','isBefore','trackChanges.mergeNestedSuggestions','newRange','formatInline:discard','markMultiRangeBlockFormat','elementStart','isExternal','map','define','values','isIntersectingWithRange','attributes','addCommentThread','addMarker:suggestion','unbindElementFromMarkerName','batch','marker-count','setSelection','removeMarkers','refresh','get','_getAuthorFromId','_addSuggestionMarker','formatInline:','addSuggestionData','deletion','nodeBefore','isCollapsed','suggestionUnloaded','data-suggestion','_breakSuggestionMarker','deletion:accept','creator','change:activeMarkers','insertion:accept','_trackFormatChanges','forceDefaultExecution','_enabledCommands','markers','formatBlock:join','push','removed','never','discardSelectedSuggestions','multi','oldRange','_getSuggestionData','multipleBlocks','Users','fromRange','getAllAdjacentSuggestions','data','suggestion-type','buildSuggestion','_model','getMarkers','stopListening','showSuggestionHighlights','start','markMultiRangeDeletion','_removeSuggestion','_setSuggestionRange','formatInline','remove','change:_saved','rejected','getUser','join','toJSON','getAttribute','markerReady','_registerDefaultCallbacks','locale','init','track-changes-suggestion-data-mismatch','root','trackChanges.trackFormatChanges','updateSuggestion','document','_addThreadToSuggestion','getAncestors','createPositionBefore','insertion:chain','stop','trackChanges','activeMarkers','always','authoredAt','isBlock','consume','_suggestionState','editor','_adapter','insert','after','range','formatBlock:chain','moveTargetPosition','open','_joinSuggestions','$textProxy','isInsideObject','getChanges','_refreshSuggestionsChain','_suggestions','addMarker','_findSuggestions','_updateSuggestionData','removeAttribute','elementToElement','split','accept','getCustomProperty','suggestion','addHighlight','isLimit','registerPostFixer','splitPosition','mapper','isArray','addComment','track-changes-command-not-found','getCommentThread','formatGroupId','deletion:','addRange','name','set','discardAllSuggestions','tablePasteChainId','acceptSelectedSuggestions','add','conversion','authorName','hasSuggestion','markMultiRangeInsertion','getRange','change','track-changes-adapter-missing-getsuggestion','unbind','ready','filter','includes','editingDowncast','options','chain','_editor','createdAt','skipNestingCheck','registerCustomCallback','formatInline:join','reconvertMarker','rethrowUnexpectedError','_onDiscard','_isDataLoaded','type','_saved','consumable','markerName','markBlockFormat','createRangeIn','end','isUndo','return','markerToHighlight','clear','listenTo','formatBlock:accept','_cutOutSuggestionMarker','previous','bindElementToMarker','next','some','suggestionLoaded','TrackChangesEditing','isAtEnd','high','delete','isEqual','enableCommand','createSelection','ck-suggestion-marker-','dataDowncast','element','requires','nodeAfter','head','howMany','addMarkerName','substr','addMarker:suggestion:formatBlock','selection','position','commands','_customCallbacks','getNearestSelectionRange','has','parent','forward','rootName','ck-suggestion-marker--active','getRanges','change:data','$graveyard','insertion','keys','acceptAllSuggestions','schema','updateMarker','removeMarker','discard','isDocumentOperation','config','dataReady','suggestionChanged','CommentsRepository','author','setAttribute','isSelectable','markInsertion','accepted','adapter','ck-suggestion-marker-formatBlock','_commentsRepository','enqueueChange','widget','plugins','_joinWithAdjacentSuggestions','markDeletion','createPositionAt','getSuggestions','createRange','getFirstMarker','track-changes-adapter-already-set','track-changes-suggestion-not-found','getMultiRangeId','default','commandName','_getExternalAuthor','_checkSuggestionCorrectness','formatBlock:','discardSuggestion','getSuggestionCallback','setTo','differ','getFirstRange','markerNameToElements','execute','value','_suggestionFactory','_isForcedDefaultExecutionBlock','isInContent','isMultiRange','formatBlock','from','containsRangeInObject','isNextTo','trackChangesCommand','catch','getShiftedBy','splice','collaboration.channelId','documentSelection','targetPosition','ck-suggestion-marker','insertContent','item','every','notReady','sort','suggestion:','clone','_defaultCallbacks','_setSuggestionData','getChangedMarkers','acceptSuggestion','size','containsPosition','PENDING_ACTION_SUGGESTION','fire','containsItem','_rangeIsInLocalUserInsertion','upcast','PendingActions','detach','backward','writer','_mergeNestedSuggestions','createElement','pluginName','removeClass','commentThread','isOwn','toViewElement','model','$marker','_splitMarkerName','isObject','isAtStart','fromCharCode'];(function(_0x4639bc,_0x109226){const _0x389e41=function(_0x355ccc){while(--_0x355ccc){_0x4639bc['push'](_0x4639bc['shift']());}};_0x389e41(++_0x109226);}(_0x1092,0x18b));const _0x389e=function(_0x4639bc,_0x109226){_0x4639bc=_0x4639bc-0x0;let _0x389e41=_0x1092[_0x4639bc];return _0x389e41;};import{Plugin as _0x2757f2,PendingActions as _0xb80bda}from'ckeditor5/src/core';import{LiveRange as _0x2b7e22}from'ckeditor5/src/engine';import{CKEditorError as _0x446f02,uid as _0x2d3e82,priorities as _0x38c21e,logWarning as _0x4001e4}from'ckeditor5/src/utils';import{toWidget as _0x15c174}from'ckeditor5/src/widget';import{Users as _0x19c95a,hashObject as _0x220e2f}from'ckeditor5-collaboration/src/collaboration-core';import _0x151d22 from'./commands/trackchangescommand';import _0x5f41e6 from'./commands/acceptsuggestioncommand';import _0x4a102b from'./commands/discardsuggestioncommand';import _0x20932d from'./commands/executeonallsuggestionscommand';import _0x1a8e13 from'./commands/executeonselectedsuggestionscommand';import _0x516b3f from'./suggestion';import _0xd83b2d from'./suggestiondescriptionfactory';import _0x4510dc from'./integrations/aiassistant';import _0x56604e from'./integrations/alignment';import _0x57a516 from'./integrations/basicstyles';import _0x4b1799 from'./integrations/blockquote';import _0x8bb5d8 from'./integrations/ckbox';import _0x896723 from'./integrations/codeblock';import _0x3ac185 from'./integrations/comments';import _0x55264f from'./integrations/deletecommand';import _0x4141d4 from'./integrations/documentlist';import _0x505942 from'./integrations/entercommand';import _0xb169f1 from'./integrations/findandreplace';import _0xd91cd1 from'./integrations/font';import _0xe90ff2 from'./integrations/formatpainter';import _0x4f0251 from'./integrations/heading';import _0x313a0f from'./integrations/highlight';import _0x4aa7d5 from'./integrations/horizontalline';import _0x478e53 from'./integrations/htmlembed';import _0x1527b7 from'./integrations/image';import _0x588e16 from'./integrations/imagereplace';import _0x11f366 from'./integrations/importword';import _0x4d9cc7 from'./integrations/indent';import _0x4ee7f7 from'./integrations/inputcommand';import _0x3930ce from'./integrations/link';import _0x2bce1f from'./integrations/list';import _0x2074b4 from'./integrations/listproperties';import _0x53f9a2 from'./integrations/mediaembed';import _0x341004 from'./integrations/mention';import _0x409ea6 from'./integrations/pagebreak';import _0x4770f7 from'./integrations/paragraph';import _0x2bba10 from'./integrations/removeformat';import _0x2f5620 from'./integrations/restrictededitingmode';import _0x27fae9 from'./integrations/shiftentercommand';import _0x52f0b8 from'./integrations/standardeditingmode';import _0x500fcd from'./integrations/style';import _0x318a80 from'./integrations/table';import _0x164c7a from'./integrations/tablemergesplit';import _0x479b08 from'./integrations/tableheadings';import _0xd38b35 from'./integrations/tableclipboard';import _0x6e6d3d from'./integrations/tablecolumnresize';import _0x329cfe from'./integrations/template';import _0x4f74a7 from'./integrations/tableofcontents';import _0x5cb570 from'./integrations/title';import _0x13f099 from'./integrations/undo';import{getTranslation as _0x1789a5}from'./utils/common-translations';import _0x6e8a22 from'./integrations/tablecaption';import _0x541bd7 from'./integrations/documentlistproperties';import _0x588970 from'./integrations/tableproperties';import{isEqual as _0x499793}from'lodash-es';export default class p extends _0x2757f2{static get[_0x389e('0x81')](){return['CommentsRepository',_0x19c95a,_0xb80bda,_0x4510dc,_0x56604e,_0x57a516,_0x4b1799,_0x8bb5d8,_0x896723,_0x3ac185,_0x55264f,_0x4141d4,_0x541bd7,_0x505942,_0xb169f1,_0xd91cd1,_0xe90ff2,_0x4f0251,_0x313a0f,_0x4aa7d5,_0x478e53,_0x1527b7,_0x588e16,_0x11f366,_0x4d9cc7,_0x4ee7f7,_0x3930ce,_0x2bce1f,_0x2074b4,_0x53f9a2,_0x341004,_0x409ea6,_0x4770f7,_0x2bba10,_0x2f5620,_0x27fae9,_0x52f0b8,_0x500fcd,_0x318a80,_0x164c7a,_0x479b08,_0x6e8a22,_0xd38b35,_0x6e6d3d,_0x4f74a7,_0x588970,_0x329cfe,_0x5cb570,_0x13f099];}static get[_0x389e('0xea')](){return _0x389e('0x77');}constructor(_0x47879a){function _0x1de6b2(_0x410d33){return _0x410d33[_0x389e('0x110')](_0x16b277=>String[_0x389e('0xf4')](_0x16b277))[_0x389e('0xc')]('');}super(_0x47879a),this[_0x389e('0x48')](_0x389e('0x1e'),[]),this['on'](_0x389e('0x12a'),(_0x4380bc,_0x5508bf,_0x8690ce,_0x524ed7)=>{this[_0x389e('0x13f')]['change'](()=>{for(const _0x1db8d1 of[..._0x524ed7,..._0x8690ce])this[_0x389e('0x13f')][_0x389e('0x12f')]['has'](_0x1db8d1)&&_0x47879a['editing'][_0x389e('0x60')](_0x1db8d1);});}),this['_descriptionFactory']=new _0xd83b2d(this[_0x389e('0x24')][_0x389e('0xef')][_0x389e('0x98')],this[_0x389e('0x24')][_0x389e('0x11')]),this[_0x389e('0x25')]=null,this[_0x389e('0xc2')]=new Bt(this[_0x389e('0x24')]),this[_0x389e('0x31')]=new Map(),this[_0x389e('0xa8')]=_0x47879a[_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0xa0')),this[_0x389e('0x12e')]=new Set(),this['_model']=this[_0x389e('0x24')]['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x47879a[_0x389e('0x9d')][_0x389e('0x111')]('trackChanges.trackFormatChanges',_0x389e('0xb5')),this[_0x389e('0x12c')]=_0x47879a[_0x389e('0x9d')][_0x389e('0x11d')](_0x389e('0x15')),_0x47879a[_0x389e('0x9d')][_0x389e('0x111')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x389e('0xe8')]=_0x47879a[_0x389e('0x9d')][_0x389e('0x11d')](_0x389e('0x10a')),this['trackChangesCommand']=new _0x151d22(_0x47879a,this[_0x389e('0x12e')]),this[_0x1de6b2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1de6b2([0x34,0x30,0x34,0x36,0x32,0x30,0x32,0x38]);}[_0x389e('0x12')](){const _0x2df8a1=this[_0x389e('0x24')];_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x58'))[_0x389e('0x6d')]({'model':_0x389e('0x3a'),'view':_0x412303=>{const {id:_0x4bc993,type:_0x5d9a34}=this[_0x389e('0xf1')](_0x412303['markerName']),_0x505b3a=['ck-suggestion-marker',_0x389e('0x7e')+_0x5d9a34];let _0xe3957a=0xbb8;return this['activeMarkers']['includes'](_0x412303['markerName'])&&(_0x505b3a[_0x389e('0x131')]('ck-suggestion-marker--active'),_0xe3957a=0xbc2),'deletion'==_0x5d9a34&&(_0xe3957a+=0x5),{'classes':_0x505b3a,'attributes':{'data-suggestion':_0x4bc993},'priority':_0xe3957a};}}),_0x2df8a1['conversion'][_0x389e('0x104')]('dataDowncast')[_0x389e('0x4c')](_0x17c07=>{_0x17c07['on'](_0x389e('0x116'),(_0x31ff29,_0x46975b,_0xd4b0a5)=>{if(!_0xd4b0a5['options'][_0x389e('0x2')])return;const _0x23134e=_0x46975b['item'];if(!_0x23134e)return;const _0x1f7433=_0xd4b0a5[_0x389e('0x3f')][_0x389e('0xee')](_0x23134e);_0x2df8a1['model'][_0x389e('0x98')][_0x389e('0xf2')](_0x23134e)&&_0x1f7433&&!_0x1f7433[_0x389e('0x39')](_0x389e('0xaa'))&&_0x1f7433['is']('containerElement')&&_0x15c174(_0x1f7433,_0xd4b0a5[_0x389e('0xe7')]);},{'priority':_0x389e('0x79')});}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x7f'))[_0x389e('0x6d')]({'model':_0x389e('0x3a'),'view':(_0x56e295,_0xc0d023)=>{if(!_0xc0d023[_0x389e('0x59')][_0x389e('0x2')])return null;const {type:_0x55671d}=this['_splitMarkerName'](_0x56e295[_0x389e('0x67')]);return{'classes':[_0x389e('0xd1'),'ck-suggestion-marker-'+_0x55671d],'priority':0xbb8};}});const _0x337dbc=({showActiveMarkers:_0x28da72=!0x0}={})=>(_0x413cd3,_0x454448,_0x3959ef)=>{if(!_0x454448['item'])return;if(_0x454448[_0x389e('0xd3')]['is'](_0x389e('0x88')))return void _0x3959ef[_0x389e('0x66')]['consume'](_0x454448[_0x389e('0xd3')],_0x413cd3[_0x389e('0x47')]);const _0xe73bb9=_0x3959ef[_0x389e('0x3f')][_0x389e('0xee')](_0x454448[_0x389e('0xd3')]);if(!(_0x454448['item']['is']('element')&&_0x2df8a1[_0x389e('0xef')][_0x389e('0x98')][_0x389e('0x21')](_0x454448['item'])&&!_0xe73bb9[_0x389e('0x39')](_0x389e('0x3b'))))return;const {id:_0x64fe3a}=this[_0x389e('0xf1')](_0x454448['markerName']);_0x3959ef[_0x389e('0xe7')][_0x389e('0xf9')]([_0x389e('0xd1'),_0x389e('0xa7')],_0xe73bb9),_0x3959ef['writer'][_0x389e('0xa2')](_0x389e('0x126'),_0x64fe3a,_0xe73bb9),_0x3959ef[_0x389e('0x3f')][_0x389e('0x73')](_0xe73bb9,_0x454448[_0x389e('0x67')]),_0x28da72&&(this[_0x389e('0x1e')][_0x389e('0x57')](_0x454448[_0x389e('0x67')])?_0x3959ef['writer'][_0x389e('0xf9')](_0x389e('0x91'),_0xe73bb9):_0x3959ef[_0x389e('0xe7')]['removeClass'](_0x389e('0x91'),_0xe73bb9));for(const _0x3c47f0 of _0x2df8a1[_0x389e('0xef')][_0x389e('0x69')](_0x454448['item'])['getItems']())_0x3959ef[_0x389e('0x66')][_0x389e('0x22')](_0x3c47f0,_0x413cd3['name']);_0x3959ef[_0x389e('0x66')][_0x389e('0x22')](_0x454448[_0x389e('0xd3')],_0x413cd3[_0x389e('0x47')]);};_0x2df8a1['conversion'][_0x389e('0x104')](_0x389e('0x7f'))[_0x389e('0x4c')](_0x523658=>{_0x523658['on']('addMarker:suggestion:formatBlock',(_0x43172d,_0x54e976,_0x485d0f)=>{_0x485d0f[_0x389e('0x59')]['showSuggestionHighlights']&&_0x337dbc({'showActiveMarkers':!0x1})(_0x43172d,_0x54e976,_0x485d0f);},{'priority':_0x389e('0xf6')});}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x7f'))['markerToData']({'model':_0x389e('0x3a'),'view':(_0xc26d97,_0x2c3203)=>_0x2c3203['options'][_0x389e('0x2')]?null:{'group':'suggestion','name':_0xc26d97[_0x389e('0x86')](0xb)}}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0xe3'))[_0x389e('0x36')]({'view':{'name':_0x389e('0x3a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b077a,{writer:_0x116ef4})=>{let _0x3c01ae='suggestion:'+_0x5b077a['getAttribute'](_0x389e('0x13d'))+':'+_0x5b077a['getAttribute']('id');return _0x5b077a[_0x389e('0xe')](_0x389e('0x119'))&&(_0x3c01ae+=':'+_0x5b077a[_0x389e('0xe')](_0x389e('0x119'))),_0x116ef4[_0x389e('0xe9')](_0x389e('0xf0'),{'data-name':_0x3c01ae});}}),_0x2df8a1['conversion'][_0x389e('0x104')](_0x389e('0xe3'))['dataToMarker']({'view':_0x389e('0x3a')}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x58'))[_0x389e('0x4c')](_0x4b4772=>{_0x4b4772['on'](_0x389e('0x87'),_0x337dbc(),{'priority':'high'});}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')]('editingDowncast')['add'](_0x3889bb=>{_0x3889bb['on']('removeMarker:suggestion:formatBlock',(_0x3c8589,_0x1863b5,_0x590d8c)=>{const _0x129416=_0x590d8c[_0x389e('0x3f')][_0x389e('0xbf')](_0x1863b5[_0x389e('0x67')]);if(_0x129416)for(const _0xd02327 of _0x129416)_0xd02327[_0x389e('0x39')]('addHighlight')||(_0x590d8c[_0x389e('0xe7')][_0x389e('0xeb')]([_0x389e('0xd1'),_0x389e('0xa7'),'ck-suggestion-marker--active'],_0xd02327),_0x590d8c[_0x389e('0xe7')][_0x389e('0x35')](_0x389e('0x126'),_0xd02327),_0x590d8c['mapper'][_0x389e('0x117')](_0xd02327,_0x1863b5[_0x389e('0x67')]));},{'priority':_0x389e('0x79')});}),_0x2df8a1[_0x389e('0xef')]['document'][_0x389e('0x3d')](_0x41edeb=>{let _0x43e587=!0x1;const _0x100fbe=Array['from'](_0x2df8a1[_0x389e('0xef')][_0x389e('0x17')][_0x389e('0xbd')][_0x389e('0xdb')]()),_0x377cf4=new Set();for(const {name:_0x25b30c,data:_0x396fd3}of _0x100fbe){const {group:_0x45c9df,type:_0x275048,id:_0xdbe36c}=this[_0x389e('0xf1')](_0x25b30c);if(_0x389e('0x3a')!==_0x45c9df)continue;const _0x49566f=this[_0x389e('0x31')]['get'](_0xdbe36c);if(null!=_0x396fd3[_0x389e('0x10b')]){'formatInline'==_0x275048&&(_0x43e587=_0x43e587||$t(_0x396fd3[_0x389e('0x10b')],_0x25b30c,_0x41edeb,_0x2df8a1['model'][_0x389e('0x98')]));if(_0x396fd3[_0x389e('0x10b')][_0x389e('0x124')]||_0x389e('0x94')==_0x396fd3[_0x389e('0x10b')][_0x389e('0x14')][_0x389e('0x90')]||_0x389e('0xc6')==_0x275048&&!Rt(_0x396fd3[_0x389e('0x10b')])||_0x389e('0x122')==_0x275048&&!(!Mt(_0x113abf=_0x396fd3[_0x389e('0x10b')])&&!function(_0x4956cb){return _0x4956cb[_0x389e('0x3')]['parent']==_0x4956cb[_0x389e('0x6a')][_0x389e('0x123')]&&_0x4956cb[_0x389e('0x3')][_0x389e('0x78')];}(_0x113abf)))_0x41edeb[_0x389e('0x9a')](_0x25b30c),_0x43e587=!0x0;else{if(!_0x49566f||!_0x49566f['isInContent'])continue;_0x377cf4['add'](_0x49566f);}}}var _0x113abf;return _0x377cf4[_0x389e('0xdd')]>0x0&&(_0x43e587=!!this[_0x389e('0xac')](_0x377cf4)||_0x43e587),_0x43e587;}),_0x2df8a1[_0x389e('0xef')][_0x389e('0x17')]['registerPostFixer'](_0xb4cf2=>{let _0x2c57d6=!0x1;for(const _0x40b64a of _0x2df8a1[_0x389e('0xef')][_0x389e('0x17')][_0x389e('0xbd')][_0x389e('0x2f')]()){if(_0x389e('0x26')!=_0x40b64a[_0x389e('0x64')])continue;const _0x442b8f=_0x40b64a[_0x389e('0x89')][_0x389e('0xcc')](_0x40b64a[_0x389e('0x105')]);if(_0x442b8f[_0x389e('0x78')])for(const _0x287a38 of this['_suggestions'][_0x389e('0x112')]()){if(_0x287a38['isMultiRange']||!_0x287a38['isInContent'])continue;if(_0x389e('0xc6')!=_0x287a38[_0x389e('0x64')])continue;const _0x247ed8=_0x287a38[_0x389e('0xbe')]();if(_0x247ed8[_0x389e('0x3')][_0x389e('0x8e')]!=_0x247ed8[_0x389e('0x6a')][_0x389e('0x8e')]&&_0x247ed8[_0x389e('0x6a')]['isEqual'](_0x40b64a['position'])){const _0x323c16=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x247ed8[_0x389e('0x3')],_0x442b8f);_0xb4cf2[_0x389e('0x99')](_0x287a38[_0x389e('0xb1')](),{'range':_0x323c16}),_0x2c57d6=!0x0;}}}return _0x2c57d6;}),_0x2df8a1[_0x389e('0xef')][_0x389e('0x12f')]['on']('update:suggestion',(_0x38cc12,_0x3a7614,_0x18f571)=>{if(null==_0x18f571){const {id:_0x18a051}=this['_splitMarkerName'](_0x3a7614[_0x389e('0x47')]),_0x42a57e=this[_0x389e('0x31')][_0x389e('0x11d')](_0x18a051);_0x42a57e&&_0x42a57e[_0x389e('0x85')](_0x3a7614[_0x389e('0x47')]);}}),_0x2df8a1[_0x389e('0xef')][_0x389e('0x17')]['on'](_0x389e('0x93'),()=>{const _0x4030b7=Array['from'](_0x2df8a1[_0x389e('0xef')]['document']['differ']['getChangedMarkers']())[_0x389e('0x56')](_0x27150a=>_0x389e('0x3a')===this[_0x389e('0xf1')](_0x27150a[_0x389e('0x47')])['group']);if(0x0===_0x4030b7[_0x389e('0x105')])return;_0x4030b7['sort']((_0x41d160,_0x22400e)=>{const _0x5ac6e3=_0x41d160[_0x389e('0x13c')][_0x389e('0x136')],_0x46bae7=_0x22400e[_0x389e('0x13c')][_0x389e('0x136')];return null===_0x5ac6e3&&null===_0x46bae7?0x0:null===_0x5ac6e3&&null!==_0x46bae7?-0x1:null!==_0x5ac6e3&&null===_0x46bae7?0x1:_0x5ac6e3['start'][_0x389e('0x109')](_0x46bae7[_0x389e('0x3')])?-0x1:0x1;});const _0x4d9e6c=new Set(),_0x29acd7=new Set();for(const {name:_0x12c7c2,data:_0x29ef5a}of _0x4030b7){const {id:_0x557add}=this[_0x389e('0xf1')](_0x12c7c2);if(null===_0x29ef5a[_0x389e('0x136')]){const _0x5034bd=this['_handleNewSuggestionMarker'](_0x12c7c2);_0x29acd7['add'](_0x5034bd);}else{const _0x4780b6=this[_0x389e('0x31')]['get'](_0x557add);null!==_0x29ef5a[_0x389e('0x10b')]||_0x4780b6[_0x389e('0xc4')]?(_0x4d9e6c[_0x389e('0x4c')](_0x4780b6[_0x389e('0x83')]),_0x29acd7[_0x389e('0x4c')](_0x4780b6)):this['_removeSuggestion'](_0x4780b6);}}_0x29acd7['size']>0x0&&this[_0x389e('0x30')](_0x29acd7);for(const _0x1557d9 of _0x4d9e6c)this[_0x389e('0xe0')](_0x389e('0x9f'),_0x1557d9);}),_0x2df8a1[_0x389e('0xef')]['on']('applyOperation',(_0x4b6968,_0x41c214)=>{const _0x338578=_0x41c214[0x0];if(!this['_suggestions']['size'])return;if(!_0x338578[_0x389e('0x9c')])return;if(_0x338578[_0x389e('0x118')][_0x389e('0x6b')]||!_0x338578['batch']['isLocal'])return;let _0x25e43e,_0x4e8c55;switch(_0x338578[_0x389e('0x64')]){case'insert':_0x25e43e=_0x2df8a1[_0x389e('0xef')][_0x389e('0xae')](_0x338578[_0x389e('0x89')]),_0x4e8c55=_0x25e43e[_0x389e('0xcc')](_0x338578[_0x389e('0x84')]);break;case _0x389e('0x37'):_0x25e43e=_0x2df8a1[_0x389e('0xef')][_0x389e('0xae')](_0x338578[_0x389e('0x3e')]),_0x4e8c55=_0x2df8a1['model'][_0x389e('0xae')](_0x338578[_0x389e('0x2a')]);break;case'move':_0x25e43e=_0x2df8a1['model'][_0x389e('0xae')](_0x338578[_0x389e('0xd0')]),_0x4e8c55=_0x25e43e[_0x389e('0xcc')](_0x338578[_0x389e('0x84')]);break;default:return;}const _0x5f05b1=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x25e43e,_0x4e8c55);_0x2df8a1[_0x389e('0xef')][_0x389e('0x52')](()=>{for(const {suggestion:_0x5af63d,meta:_0x38f502}of this[_0x389e('0x33')](_0x5f05b1)){if(_0x5af63d[_0x389e('0xc5')])continue;if('formatInline'==_0x5af63d[_0x389e('0x64')])continue;const _0x1cb9d0=_0x5af63d[_0x389e('0x13c')]&&_0x5af63d[_0x389e('0x13c')][_0x389e('0x138')];(_0x389e('0xc6')!=_0x5af63d[_0x389e('0x64')]||_0x389e('0x37')==_0x338578[_0x389e('0x64')]&&!_0x1cb9d0)&&(_0x38f502[_0x389e('0xc8')]||_0x389e('0x95')==_0x5af63d[_0x389e('0x64')]&&_0x38f502[_0x389e('0xed')]||_0x5af63d['getFirstRange']()[_0x389e('0xfb')](_0x5f05b1)&&this[_0x389e('0x127')](_0x5af63d,_0x25e43e,_0x4e8c55));}});},{'priority':_0x389e('0x108')}),_0x2df8a1[_0x389e('0xef')]['on'](_0x389e('0xff'),(_0x5a7e09,_0x1cc91b)=>{const _0x1d78d4=_0x1cc91b[0x0],_0x5f0cd0=_0x1cc91b[0x1];if(_0x5f0cd0&&_0x5f0cd0[_0x389e('0x12d')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x389e('0xca')][_0x389e('0xc1')])return;if(_0x1d78d4['isCollapsed'])return;const _0x4764a6=_0x2df8a1['model'][_0x389e('0x98')],{start:_0x42b16a,end:_0x58c4e3}=_0x1d78d4['getFirstRange'](),_0x26db5a=_0x42b16a[_0x389e('0x82')]&&_0x4764a6[_0x389e('0x3c')](_0x42b16a[_0x389e('0x82')])?null:_0x4764a6['getNearestSelectionRange'](_0x42b16a,_0x389e('0x8f')),_0x3ef862=_0x58c4e3[_0x389e('0x123')]&&_0x4764a6[_0x389e('0x3c')](_0x58c4e3[_0x389e('0x123')])?null:_0x4764a6[_0x389e('0x8c')](_0x58c4e3,_0x389e('0xe6')),_0x57200c=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x26db5a?_0x26db5a[_0x389e('0x3')]:_0x42b16a,_0x3ef862?_0x3ef862['end']:_0x58c4e3);_0x2df8a1['model'][_0x389e('0x52')](_0x454d62=>{this[_0x389e('0xad')](_0x57200c);const _0x31b96a=_0x2df8a1['model'][_0x389e('0x98')][_0x389e('0x8c')](_0x57200c[_0x389e('0x3')]);_0x1d78d4['is'](_0x389e('0xcf'))?_0x454d62['setSelection'](_0x31b96a):_0x1d78d4[_0x389e('0xbc')](_0x31b96a);}),_0x5a7e09['stop']();},{'priority':_0x38c21e['normal']+0xa}),_0x2df8a1[_0x389e('0xef')]['on'](_0x389e('0xd2'),(_0x5d09d0,_0x4b4721)=>{const _0x5daef8=_0x4b4721[_0x4b4721['length']-0x1];_0x5daef8&&_0x5daef8['forceDefaultExecution']||this[_0x389e('0xc3')]||this['trackChangesCommand'][_0x389e('0xc1')]&&(_0x2df8a1[_0x389e('0xef')]['change'](()=>{let _0x4dc5b9=_0x2df8a1['model'][_0x389e('0xd2')](_0x4b4721[0x0],_0x4b4721[0x1],_0x4b4721[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dc5b9)return;_0x5d09d0['return']=_0x4dc5b9[_0x389e('0xd8')]();const _0x3fe654=_0x4dc5b9[_0x389e('0x6a')]['nodeBefore'],_0x3cd362=_0x2df8a1[_0x389e('0xef')][_0x389e('0x98')];_0x3fe654&&_0x3cd362['isBlock'](_0x3fe654)&&!_0x3cd362[_0x389e('0xf2')](_0x3fe654)&&(_0x4dc5b9=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x4dc5b9['start'],_0x2df8a1[_0x389e('0xef')]['createPositionAt'](_0x3fe654,_0x389e('0x6a')))),this[_0x389e('0xa4')](_0x4dc5b9);}),_0x5d09d0[_0x389e('0x1c')]());},{'priority':_0x389e('0x79')}),this[_0x389e('0x24')]['commands'][_0x389e('0x4c')]('trackChanges',this[_0x389e('0xca')]),this[_0x389e('0x7c')](_0x389e('0x1d'));const _0x58322d=new _0x5f41e6(_0x2df8a1,this[_0x389e('0x31')]);_0x2df8a1[_0x389e('0x8a')][_0x389e('0x4c')](_0x389e('0xdc'),_0x58322d),this[_0x389e('0x7c')](_0x389e('0xdc'));const _0x4cc450=new _0x4a102b(_0x2df8a1,this[_0x389e('0x31')]);_0x2df8a1['commands']['add']('discardSuggestion',_0x4cc450),this[_0x389e('0x7c')](_0x389e('0xba')),_0x2df8a1[_0x389e('0x8a')]['add'](_0x389e('0x97'),new _0x20932d(_0x2df8a1,_0x58322d,this[_0x389e('0x31')])),this[_0x389e('0x7c')]('acceptAllSuggestions'),_0x2df8a1[_0x389e('0x8a')][_0x389e('0x4c')](_0x389e('0x49'),new _0x20932d(_0x2df8a1,_0x4cc450,this[_0x389e('0x31')])),this[_0x389e('0x7c')](_0x389e('0x49')),_0x2df8a1[_0x389e('0x8a')][_0x389e('0x4c')](_0x389e('0x4b'),new _0x1a8e13(_0x2df8a1,_0x58322d,this[_0x389e('0x31')])),this[_0x389e('0x7c')]('acceptSelectedSuggestions'),_0x2df8a1[_0x389e('0x8a')]['add'](_0x389e('0x134'),new _0x1a8e13(_0x2df8a1,_0x4cc450,this[_0x389e('0x31')])),this[_0x389e('0x7c')](_0x389e('0x134'));const _0x211df0=_0x2df8a1['plugins'][_0x389e('0x11d')]('CommentsRepository');this['listenTo'](_0x211df0,_0x389e('0x41'),(_0x1b6a97,{threadId:_0x55d490})=>{const _0x1daacf=this['_suggestions'][_0x389e('0x11d')](_0x55d490);_0x1daacf&&_0x1daacf[_0x389e('0xec')]&&0x1===_0x1daacf[_0x389e('0xec')]['length']&&this[_0x389e('0x34')](_0x55d490,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x211df0,'removeComment',(_0x18b100,{threadId:_0x1c96b3})=>{const _0x30ea70=this[_0x389e('0x31')]['get'](_0x1c96b3);_0x30ea70&&_0x30ea70['commentThread']&&!_0x30ea70[_0x389e('0xec')]['length']&&this[_0x389e('0x34')](_0x1c96b3,{'hasComments':!0x1});},{'priority':'low'});}set[_0x389e('0xa6')](_0x417f8b){if(this[_0x389e('0x25')])throw new _0x446f02(_0x389e('0xb2'),this);this[_0x389e('0x25')]=_0x417f8b;}get[_0x389e('0xa6')](){return this[_0x389e('0x25')];}[_0x389e('0xaf')]({skipNotAttached:_0x220ae4=!0x1,toJSON:_0x5c0a93=!0x1}={}){const _0x37229d=[];for(const _0x4aab58 of this[_0x389e('0x31')][_0x389e('0x112')]())_0x220ae4&&!_0x4aab58['isInContent']||_0x37229d[_0x389e('0x131')](_0x4aab58);return _0x5c0a93?_0x37229d[_0x389e('0x110')](_0xabf341=>_0xabf341[_0x389e('0xd')]()):_0x37229d;}[_0x389e('0x102')](_0xdd37d0){const _0x10f69c=this[_0x389e('0x31')][_0x389e('0x11d')](_0xdd37d0);if(!_0x10f69c)throw new _0x446f02(_0x389e('0xb3'),this);return _0x10f69c;}[_0x389e('0x4f')](_0x481c43){return this[_0x389e('0x31')]['has'](_0x481c43);}['addSuggestionData'](_0x52ebbf){const {authorId:_0x271a5a,id:_0x179344,attributes:_0x5a3886}=_0x52ebbf,[_0x45cdc5,_0x1619d6]=_0x52ebbf[_0x389e('0x64')]['split'](':'),_0xa63e2=this['_suggestions']['get'](_0x179344)||this['_createSuggestion'](_0x45cdc5,_0x1619d6,_0x179344,_0x271a5a,_0x5a3886);if(this[_0x389e('0x18')](_0xa63e2),this['_checkSuggestionCorrectness'](_0xa63e2,_0x45cdc5,_0x1619d6||null,_0x271a5a),_0xa63e2[_0x389e('0x5c')]=_0x52ebbf[_0x389e('0x5c')],_0xa63e2[_0x389e('0x63')]=!0x0,_0x5a3886&&_0x5a3886['@external']){const _0x166655=_0x5a3886['@external'],_0x12fdf8=this[_0x389e('0xb7')](_0x166655[_0x389e('0x4e')]);_0xa63e2[_0x389e('0x20')]=_0x166655['createdAt'],_0xa63e2[_0x389e('0xa1')]=_0x12fdf8,_0xa63e2[_0x389e('0x10f')]=!0x0;}else _0xa63e2[_0x389e('0x20')]=_0x52ebbf[_0x389e('0x5c')];switch(_0x52ebbf[_0x389e('0x13c')]&&(_0xa63e2[_0x389e('0x13c')]=_0x52ebbf[_0x389e('0x13c')]),_0x52ebbf[_0x389e('0x114')]&&(_0xa63e2[_0x389e('0x114')]=_0x52ebbf[_0x389e('0x114')]),this[_0x389e('0x25')]&&this[_0x389e('0x25')][_0x389e('0xfe')]||(_0xa63e2[_0x389e('0x65')]=!0x0),this[_0x389e('0x23')][_0x389e('0x11d')](_0xa63e2)){case _0x389e('0xd5'):this[_0x389e('0x23')][_0x389e('0x48')](_0xa63e2,'dataReady');break;case'markerReady':_0xa63e2[_0x389e('0xc4')]?(this['_refreshSuggestionsChain'](new Set([_0xa63e2])),this[_0x389e('0xac')](new Set([_0xa63e2])),this[_0x389e('0x23')][_0x389e('0x48')](_0xa63e2,_0x389e('0x55')),this[_0x389e('0xe0')](_0x389e('0x76'),_0xa63e2)):this[_0x389e('0x23')][_0x389e('0x48')](_0xa63e2,'removed');}return _0xa63e2;}[_0x389e('0xdc')](_0x1511db){this[_0x389e('0x12d')](()=>{this[_0x389e('0x24')][_0x389e('0xef')][_0x389e('0x52')](()=>{for(const _0x473d15 of _0x1511db[_0x389e('0x13b')]())_0x473d15[_0x389e('0x38')]();});});}['discardSuggestion'](_0x3e41a6){this[_0x389e('0x12d')](()=>{this['editor'][_0x389e('0xef')][_0x389e('0x52')](()=>{for(const _0x1d5201 of _0x3e41a6[_0x389e('0x13b')]())_0x1d5201[_0x389e('0x9b')]();});});}[_0x389e('0x7c')](_0x589292,_0x3743cf){const _0x21a98f=this[_0x389e('0x24')]['commands'][_0x389e('0x11d')](_0x589292);if(!_0x21a98f)throw new _0x446f02(_0x389e('0x42'),this,{'commandName':_0x589292});this[_0x389e('0x12e')][_0x389e('0x4c')](_0x21a98f),_0x3743cf&&_0x21a98f['on'](_0x389e('0xc0'),(_0x3622fb,_0x3b6a3a)=>{this[_0x389e('0xca')][_0x389e('0xc1')]&&(this[_0x389e('0xc3')]||_0x3b6a3a[_0x389e('0x105')]>0x0&&_0x3b6a3a[_0x3b6a3a[_0x389e('0x105')]-0x1]&&_0x3b6a3a[_0x3b6a3a[_0x389e('0x105')]-0x1][_0x389e('0x12d')]||(_0x3622fb[_0x389e('0x6c')]=_0x3743cf((..._0x140214)=>_0x21a98f[_0x389e('0xc0')](..._0x140214,{'forceDefaultExecution':!0x0}),..._0x3b6a3a),_0x3622fb['stop']()));},{'priority':'high'});}[_0x389e('0x12d')](_0x1a33bc){let _0x41d564,_0x28700b;const _0x435f29=this[_0x389e('0xc3')];this[_0x389e('0xc3')]=!0x0;try{_0x41d564=_0x1a33bc();}catch(_0x2dda93){_0x28700b=_0x2dda93;}return _0x435f29||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x28700b&&_0x446f02[_0x389e('0x61')](_0x28700b,this),_0x41d564;}[_0x389e('0xa4')](_0x2afdec,_0x2d45d7=null,_0x38bdac={}){if(_0x2afdec['isCollapsed'])return null;const _0x30f321=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'];for(const {suggestion:_0x407e02,meta:_0x5d9840}of this['_findSuggestions'](_0x2afdec,_0x389e('0x95')))if(_0x5d9840[_0x389e('0xed')]){if(!_0x5d9840[_0x389e('0xc9')]){if(_0x5d9840[_0x389e('0xc8')]){if(!this[_0x389e('0xe8')]||!Ot(_0x407e02,_0x38bdac))continue;return _0x407e02;}if(Ot(_0x407e02,_0x38bdac))return _0x407e02;this['_breakSuggestionMarker'](_0x407e02,_0x2afdec[_0x389e('0x3')],_0x2afdec[_0x389e('0x6a')]);break;}if(_0x2d45d7==_0x407e02[_0x389e('0x107')]&&Ot(_0x407e02,_0x38bdac)){const _0x19173b=_0x407e02['getFirstRange']();return _0x19173b['start'][_0x389e('0x7b')](_0x2afdec[_0x389e('0x6a')])?this[_0x389e('0x6')](_0x407e02,this['_model'][_0x389e('0xb0')](_0x2afdec['start'],_0x19173b[_0x389e('0x6a')])):this[_0x389e('0x6')](_0x407e02,this['_model'][_0x389e('0xb0')](_0x19173b[_0x389e('0x3')],_0x2afdec[_0x389e('0x6a')])),_0x407e02;}}const _0x1979c8=_0x2d3e82(),_0x195d6a=_0x30f321['id'],_0x5f4546=_0x2d45d7?'insertion:'+_0x2d45d7:_0x389e('0x95'),_0x2d24dd=this[_0x389e('0xda')]({'id':_0x1979c8,'type':_0x5f4546,'createdAt':new Date(),'authorId':_0x195d6a,'attributes':_0x38bdac});return this[_0x389e('0x11f')](_0x5f4546,_0x1979c8,_0x195d6a,_0x2afdec),_0x2d24dd;}[_0x389e('0x50')](_0x4fa24c,_0xe297ca=_0x389e('0x135'),_0x5bfd85={}){const _0x4ab07a=this['editor'][_0x389e('0xab')][_0x389e('0x11d')]('Users')['me'],_0x43d26f=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x95'),_0xe297ca,_0x389e('0xc'));for(const _0x4be408 of this[_0x389e('0xaf')]())if(_0x4be408[_0x389e('0xa1')]['id']==_0x4ab07a['id']&&'insertion'==_0x4be408[_0x389e('0x64')]&&_0x4be408['subType']==_0xe297ca&&Ot(_0x4be408,_0x5bfd85)&&(_0x43d26f(_0x4be408['getRanges'](),_0x4fa24c)||_0x43d26f(_0x4fa24c,_0x4be408['getRanges']()))){for(const _0x4c2fb9 of _0x4fa24c)_0x4be408['addRange'](_0x4c2fb9);return _0x4be408;}for(const {suggestion:_0x398ea6,meta:_0x1ea96b}of this[_0x389e('0x33')](_0x4fa24c,_0x389e('0x95'))){if(!_0x1ea96b[_0x389e('0xed')])continue;if(!this[_0x389e('0xe8')]&&_0x1ea96b[_0x389e('0xc8')])continue;if(!Ot(_0x398ea6,_0x5bfd85))continue;let _0x54246a=!0x0;for(const _0x411293 of _0x398ea6['getRanges']())for(const _0x167a53 of _0x4fa24c)if(!_0x411293[_0x389e('0xfb')](_0x167a53)){_0x54246a=!0x1;break;}if(_0x54246a)return _0x398ea6;}const _0x1ee0c9=_0x2d3e82(),_0x4868d0=_0x4ab07a['id'],_0x2e2381='insertion:'+_0xe297ca,_0x195317=this[_0x389e('0xda')]({'id':_0x1ee0c9,'type':_0x2e2381,'createdAt':new Date(),'authorId':_0x4868d0,'attributes':_0x5bfd85});for(const _0x2e8bcc of _0x4fa24c)this['_addSuggestionMarker'](_0x2e2381,_0x1ee0c9,_0x4868d0,_0x2e8bcc,_0x516b3f[_0x389e('0xb4')]());return _0x195317;}['markInlineFormat'](_0x895111,_0x52c863,_0x4ee902=null,_0x403f65={}){if(_0x4ee902=_0x4ee902||Nt(_0x52c863),_0x895111[_0x389e('0x124')])return null;if(_0x389e('0x133')===this[_0x389e('0x12c')]){const _0x1969b0=this[_0x389e('0xc2')]['getSuggestionCallback'](_0x389e('0x7'),_0x4ee902,_0x389e('0x38'));return this[_0x389e('0x12d')](()=>_0x1969b0([_0x895111],_0x52c863,_0x403f65)),null;}const _0x30d393=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'],_0x4ae664=[];if(_0x389e('0x1f')!==this[_0x389e('0x12c')])for(const {suggestion:_0x2484d6,meta:_0x3066b0}of this[_0x389e('0x33')](_0x895111,_0x389e('0x95')))_0x3066b0['isOwn']&&!_0x3066b0[_0x389e('0x2e')]&&_0x4ae664['push'](..._0x2484d6[_0x389e('0x92')]());const _0x3f257b=function(_0x47febc,_0x18b3ff){const _0x530cc1=[];for(const _0x3a8b69 of _0x18b3ff){const _0x2f9125=_0x47febc[_0x389e('0xf5')](_0x3a8b69);_0x2f9125&&_0x530cc1[_0x389e('0x131')](_0x2f9125);}return _0x530cc1;}(_0x895111,_0x4ae664),_0x3946f6=function(_0x317736,_0x1a7b49){const _0x20a185=[_0x317736];for(const _0x46080f of _0x1a7b49){let _0x1cc566=0x0;for(;_0x1cc566<_0x20a185['length'];){const _0x2a8d35=_0x20a185[_0x1cc566]['getDifference'](_0x46080f);_0x20a185[_0x389e('0xcd')](_0x1cc566,0x1,..._0x2a8d35),_0x1cc566+=_0x2a8d35['length'];}}return _0x20a185;}(_0x895111,_0x4ae664);_0x3f257b[_0x389e('0x105')]&&this['_model'][_0x389e('0x52')](()=>{for(const _0x2dbfb1 of _0x3f257b){const _0x86d8c0=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x7'),_0x4ee902,'accept');this[_0x389e('0x12d')](()=>_0x86d8c0([_0x2dbfb1],_0x52c863,_0x403f65));}});for(const _0x3b10b4 of _0x3946f6){let _0xd5d7ae=null,_0x41efd9=_0x3b10b4[_0x389e('0x3')],_0x32f710=_0x3b10b4[_0x389e('0x6a')];for(const {suggestion:_0x37ee33,meta:_0x38d810}of this[_0x389e('0x33')](_0x3b10b4,_0x389e('0x7'))){if(!_0x38d810[_0x389e('0xed')])continue;if(_0x37ee33[_0x389e('0x107')]!=_0x4ee902)continue;if(!Ot(_0x37ee33,_0x403f65))continue;const _0xa1161a=_0x37ee33[_0x389e('0xbe')]();if(_0xa1161a[_0x389e('0xfb')](_0x3b10b4,!0x0))return null;_0x41efd9=_0x41efd9[_0x389e('0x109')](_0xa1161a[_0x389e('0x3')])?_0x41efd9:_0xa1161a['start'],_0x32f710=_0x32f710[_0x389e('0xf7')](_0xa1161a[_0x389e('0x6a')])?_0x32f710:_0xa1161a[_0x389e('0x6a')],_0xd5d7ae?_0xa1161a[_0x389e('0x3')][_0x389e('0x109')](_0xd5d7ae[_0x389e('0xbe')]()[_0x389e('0x3')])?(_0xd5d7ae[_0x389e('0x11b')](),_0xd5d7ae=_0x37ee33):_0x37ee33['removeMarkers']():_0xd5d7ae=_0x37ee33;}const _0x3c6c02=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x41efd9,_0x32f710);if(_0xd5d7ae)this[_0x389e('0x6')](_0xd5d7ae,_0x3c6c02);else{const _0x464f66=_0x2d3e82(),_0x251cc3=_0x30d393['id'];this[_0x389e('0xda')]({'id':_0x464f66,'type':'formatInline:'+_0x4ee902,'data':_0x52c863,'createdAt':new Date(),'authorId':_0x251cc3,'attributes':_0x403f65}),this['_addSuggestionMarker'](_0x389e('0x120')+_0x4ee902,_0x464f66,_0x251cc3,_0x3c6c02);}}return null;}[_0x389e('0x68')](_0x3bdbf9,_0x3f9545,_0x2520d4=[],_0x287c72=null,_0x409bec={}){_0x3f9545[_0x389e('0x44')]||(_0x3f9545[_0x389e('0x44')]=_0x3f9545[_0x389e('0xb6')]),_0x3f9545['multipleBlocks']=_0x3bdbf9['is']('range'),_0x287c72=_0x287c72||Nt(_0x3f9545);const _0x5cc2d8=_0x2520d4[_0x389e('0x110')](_0x16322e=>jt(_0x16322e,this['_model'])),_0xe57ee=_0x3bdbf9['is'](_0x389e('0x28'))?_0x3bdbf9:jt(_0x3bdbf9,this[_0x389e('0x13f')]);if('never'===this['_trackFormatChanges']){const _0x4f54ee=this[_0x389e('0xc2')][_0x389e('0xbb')]('formatBlock',_0x287c72,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x4f54ee([_0xe57ee],_0x3f9545,_0x409bec)),null;}_0x5cc2d8[_0x389e('0x131')](_0xe57ee);let _0x49c39f=!0x0;for(const _0x5863a3 of _0x5cc2d8)if(!this[_0x389e('0xe2')](_0x5863a3)){_0x49c39f=!0x1;break;}if(_0x49c39f&&_0x389e('0x1f')!==this[_0x389e('0x12c')]){const _0x5b963a=this['_suggestionFactory'][_0x389e('0xbb')](_0x389e('0xc6'),_0x287c72,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x5b963a([_0xe57ee],_0x3f9545,_0x409bec)),null;}let _0x81d8fb=null,_0x19adbf=_0xe57ee[_0x389e('0x3')],_0x25895e=_0xe57ee['end'];for(const {suggestion:_0x3c9dae,meta:_0x36d8f3}of this[_0x389e('0x33')](_0xe57ee,'formatBlock')){if(!_0x36d8f3[_0x389e('0xed')])continue;if(_0x36d8f3[_0x389e('0xc9')]||_0x36d8f3[_0x389e('0xc8')]||_0x36d8f3[_0x389e('0x2e')])continue;if(_0x3c9dae[_0x389e('0x13c')][_0x389e('0x44')]!=_0x3f9545[_0x389e('0x44')])continue;if(!Ot(_0x3c9dae,_0x409bec))continue;const _0x30918f=_0x3c9dae['getFirstRange']();if(_0x3c9dae[_0x389e('0x107')]==_0x287c72){if(_0x30918f[_0x389e('0xfb')](_0xe57ee,!0x0))return null;_0x19adbf=_0x19adbf[_0x389e('0x109')](_0x30918f[_0x389e('0x3')])?_0x19adbf:_0x30918f[_0x389e('0x3')],_0x25895e=_0x25895e[_0x389e('0xf7')](_0x30918f[_0x389e('0x6a')])?_0x25895e:_0x30918f[_0x389e('0x6a')],_0x81d8fb?_0x30918f['start']['isBefore'](_0x81d8fb[_0x389e('0xbe')]()[_0x389e('0x3')])?(_0x81d8fb['removeMarkers'](),_0x81d8fb=_0x3c9dae):_0x3c9dae[_0x389e('0x11b')]():_0x81d8fb=_0x3c9dae;}else{const _0x4e9d68=_0xe57ee['getIntersection'](_0x30918f);this['_cutOutSuggestionMarker'](_0x3c9dae,_0x4e9d68);}}const _0x3fcd7e=this['editor'][_0x389e('0xab')]['get'](_0x389e('0x139'))['me'],_0x462d49=_0x2d3e82(),_0x7ccc5e=_0x3fcd7e['id'];if(_0x81d8fb)return this[_0x389e('0x6')](_0x81d8fb,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x19adbf,_0x25895e)),_0x81d8fb;{const _0x39a20f=this[_0x389e('0xda')]({'id':_0x462d49,'type':'formatBlock:'+_0x287c72,'data':_0x3f9545,'createdAt':new Date(),'authorId':_0x7ccc5e,'attributes':_0x409bec});return this['_addSuggestionMarker']('formatBlock:'+_0x287c72,_0x462d49,_0x7ccc5e,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x19adbf,_0x25895e)),_0x39a20f;}}[_0x389e('0x10d')](_0x6a5726,_0x5e9c34,_0x125225=[],_0x38c80c=null,_0x6b912f={}){_0x5e9c34['formatGroupId']||(_0x5e9c34[_0x389e('0x44')]=_0x5e9c34['commandName']);const _0x490746=_0x6a5726[0x0];_0x5e9c34[_0x389e('0x138')]=_0x490746['is'](_0x389e('0x28')),_0x38c80c=_0x38c80c||Nt(_0x5e9c34);const _0x1e8581=_0x125225['map'](_0x4b20bf=>jt(_0x4b20bf,this[_0x389e('0x13f')])),_0x5e4812=_0x490746['is'](_0x389e('0x28'))?_0x6a5726:_0x6a5726[_0x389e('0x110')](_0x59c11a=>jt(_0x59c11a,this['_model']));if(_0x389e('0x133')===this[_0x389e('0x12c')]){const _0x4c5370=this[_0x389e('0xc2')]['getSuggestionCallback'](_0x389e('0xc6'),_0x38c80c,'accept');return this[_0x389e('0x12d')](()=>_0x4c5370(_0x5e4812,_0x5e9c34,_0x6b912f)),null;}_0x1e8581[_0x389e('0x131')](..._0x5e4812);let _0x4247fe=!0x0;for(const _0x3e17fd of _0x1e8581)if(!this[_0x389e('0xe2')](_0x3e17fd)){_0x4247fe=!0x1;break;}if(_0x4247fe&&_0x389e('0x1f')!==this[_0x389e('0x12c')]){const _0x3fa55e=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0xc6'),_0x38c80c,'accept');return this[_0x389e('0x12d')](()=>_0x3fa55e(_0x5e4812,_0x5e9c34,_0x6b912f)),null;}const _0x18fcde=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'];for(const _0x14b077 of this['getSuggestions']()){if(_0x14b077[_0x389e('0xa1')]['id']!=_0x18fcde['id'])continue;if(_0x389e('0xc6')!=_0x14b077['type']||_0x14b077['data'][_0x389e('0x44')]!=_0x5e9c34[_0x389e('0x44')])continue;if(!Ot(_0x14b077,_0x6b912f))continue;const _0x101077=_0x14b077[_0x389e('0x107')]==_0x38c80c;for(let _0x7a989=0x0;_0x7a989<_0x5e4812[_0x389e('0x105')];_0x7a989++){const _0x580d27=_0x5e4812[_0x7a989];for(const _0x5d9944 of _0x14b077[_0x389e('0x0')]()){const _0x4d0446=_0x5d9944[_0x389e('0x51')]();if(_0x580d27[_0x389e('0x7b')](_0x4d0446)){_0x101077?(_0x5e4812['splice'](_0x7a989,0x1),_0x7a989--):_0x14b077[_0x389e('0x9a')](_0x5d9944[_0x389e('0x47')]);break;}}}}if(0x0==_0x5e4812[_0x389e('0x105')])return null;const _0x26dde9=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0xc6'),_0x38c80c,_0x389e('0xc'));for(const _0x3bd5aa of this[_0x389e('0xaf')]())if(_0x3bd5aa['author']['id']==_0x18fcde['id']&&_0x389e('0xc6')==_0x3bd5aa[_0x389e('0x64')]&&_0x3bd5aa[_0x389e('0x13c')][_0x389e('0x44')]==_0x5e9c34[_0x389e('0x44')]&&_0x3bd5aa[_0x389e('0x107')]==_0x38c80c&&Ot(_0x3bd5aa,_0x6b912f)&&(_0x26dde9(_0x3bd5aa[_0x389e('0x92')](),_0x5e4812)||_0x26dde9(_0x5e4812,_0x3bd5aa['getRanges']()))){for(const _0x10dc0c of _0x5e4812)_0x3bd5aa[_0x389e('0x46')](_0x10dc0c);return _0x3bd5aa;}const _0x17f2f5=_0x2d3e82(),_0x4f84f1=_0x18fcde['id'],_0x5b3369=_0x389e('0xb9')+_0x38c80c,_0x1c875b=this[_0x389e('0xda')]({'id':_0x17f2f5,'type':_0x5b3369,'data':_0x5e9c34,'createdAt':new Date(),'authorId':_0x4f84f1,'attributes':_0x6b912f});for(const _0x3129d4 of _0x5e4812)this['_addSuggestionMarker'](_0x5b3369,_0x17f2f5,_0x4f84f1,_0x3129d4,_0x516b3f[_0x389e('0xb4')]());return _0x1c875b;}['markDeletion'](_0x2317bc,_0x4bfc0f=null,_0x25cab1={}){if(_0x2317bc['isCollapsed'])return null;const _0x412870=this['editor']['plugins']['get']('Users')['me'],_0x39c6a6=new _0x2b7e22(_0x2317bc[_0x389e('0x3')],_0x2317bc['end']);for(const {suggestion:_0x109d32,meta:_0x525404}of this[_0x389e('0x33')](_0x39c6a6,_0x389e('0x95')))if(_0x525404[_0x389e('0xed')]&&!_0x525404['isNextTo']){if(_0x109d32['isMultiRange']){const _0x23b7c3=_0x109d32[_0x389e('0x92')]()[_0x389e('0x56')](_0x3a49f7=>_0x389e('0x94')!=_0x3a49f7[_0x389e('0x14')][_0x389e('0x90')]);_0x23b7c3[_0x389e('0xd4')](_0x1eb89b=>_0x39c6a6[_0x389e('0xfb')](_0x1eb89b,!0x0))&&_0x109d32[_0x389e('0x9b')]();if(_0x23b7c3[_0x389e('0x75')](_0x41bdb6=>_0x41bdb6[_0x389e('0xfb')](_0x39c6a6,!0x0))){const _0x1e05f2=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x122'),_0x4bfc0f,_0x389e('0x38'));return this[_0x389e('0x12d')](()=>_0x1e05f2([_0x39c6a6],null,_0x25cab1)),null;}}else{const _0x386a1b=_0x39c6a6[_0x389e('0xf5')](_0x109d32[_0x389e('0xbe')]());null!==_0x386a1b&&_0x109d32[_0x389e('0x62')]([_0x386a1b],null,_0x25cab1);}}if(_0x39c6a6[_0x389e('0xe5')](),_0x39c6a6['isCollapsed']||'$graveyard'==_0x39c6a6[_0x389e('0x14')][_0x389e('0x90')])return null;let _0x4cb005=null,_0x1b0a3a=_0x39c6a6[_0x389e('0x3')],_0x1a4c5f=_0x39c6a6[_0x389e('0x6a')];const _0x103f9e=this[_0x389e('0x33')](_0x39c6a6,_0x389e('0x122'));for(const {suggestion:_0x4e3f32,meta:_0x2517dd}of _0x103f9e){const _0x3b81cc=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1b0a3a,_0x1a4c5f);if(_0x2517dd[_0x389e('0xed')]&&(this[_0x389e('0xe8')]||!_0x2517dd[_0x389e('0xc8')]&&!_0x2517dd[_0x389e('0x2e')])){if(_0x4e3f32['isMultiRange']){if(!Ot(_0x4e3f32,_0x25cab1))continue;let _0x4d8fcc=!0x0;for(const _0x3b9c7e of _0x4e3f32[_0x389e('0x92')]()){if(_0x3b9c7e[_0x389e('0xfb')](_0x3b81cc,!0x0))return _0x4e3f32;_0x3b81cc[_0x389e('0xfb')](_0x3b9c7e)||(_0x4d8fcc=!0x1);}_0x4d8fcc&&_0x4e3f32[_0x389e('0x9b')]();}else{const _0x871ae2=_0x4e3f32['getFirstRange']();if(_0x871ae2[_0x389e('0xfb')](_0x3b81cc,!0x0))return _0x4e3f32;if(!Ot(_0x4e3f32,_0x25cab1)){_0x3b81cc[_0x389e('0xfb')](_0x871ae2)?_0x4e3f32['removeMarkers']():_0x871ae2[_0x389e('0xde')](_0x1b0a3a)?_0x1b0a3a=_0x871ae2['end']:_0x871ae2[_0x389e('0xde')](_0x1a4c5f)&&(_0x1a4c5f=_0x871ae2[_0x389e('0x3')]);continue;}_0x1b0a3a=_0x1b0a3a[_0x389e('0x109')](_0x871ae2[_0x389e('0x3')])?_0x1b0a3a:_0x871ae2[_0x389e('0x3')],_0x1a4c5f=_0x1a4c5f[_0x389e('0xf7')](_0x871ae2['end'])?_0x1a4c5f:_0x871ae2[_0x389e('0x6a')],_0x25cab1=Object[_0x389e('0x100')]({},_0x4e3f32[_0x389e('0x114')]),_0x4cb005?_0x871ae2[_0x389e('0x3')][_0x389e('0x109')](_0x4cb005[_0x389e('0xbe')]()['start'])?(_0x4cb005['removeMarkers'](),_0x4cb005=_0x4e3f32):_0x4e3f32['removeMarkers']():_0x4cb005=_0x4e3f32;}}}if(_0x4cb005)return this[_0x389e('0x6')](_0x4cb005,this['_model'][_0x389e('0xb0')](_0x1b0a3a,_0x1a4c5f)),_0x4cb005;{const _0x1a42dc=_0x2d3e82(),_0x5ad361=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1b0a3a,_0x1a4c5f),_0x2cb93f=_0x412870['id'],_0x2016a4=_0x4bfc0f?_0x389e('0x45')+_0x4bfc0f:_0x389e('0x122'),_0x5ca9ac=this[_0x389e('0xda')]({'id':_0x1a42dc,'type':_0x2016a4,'createdAt':new Date(),'authorId':_0x2cb93f,'attributes':_0x25cab1});return this[_0x389e('0x11f')](_0x2016a4,_0x1a42dc,_0x2cb93f,_0x5ad361),_0x5ca9ac;}}[_0x389e('0x4')](_0x45ad6f,_0x2e3ef7='multi',_0x5421f0={}){const _0x4a7a57=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'],_0x25fb3c=_0x45ad6f['map'](_0x315abe=>new _0x2b7e22(_0x315abe[_0x389e('0x3')],_0x315abe[_0x389e('0x6a')])),_0x2ea77e=new Set();for(const {suggestion:_0x5979fc,meta:_0x3c5f08}of this['_findSuggestions'](_0x25fb3c,_0x389e('0x95')))_0x3c5f08['isOwn']&&!_0x3c5f08[_0x389e('0xc9')]&&_0x2ea77e[_0x389e('0x4c')](_0x5979fc);for(const _0x1e46d1 of _0x2ea77e)if(_0x1e46d1[_0x389e('0xc5')]){const _0x5d3415=_0x1e46d1[_0x389e('0x92')]();(!_0x1e46d1['attributes']||!_0x1e46d1[_0x389e('0x114')][_0x389e('0x5d')])&&(_0x5d3415['every'](_0x1cb929=>_0x25fb3c[_0x389e('0x75')](_0x20f45a=>_0x20f45a[_0x389e('0xfb')](_0x1cb929,!0x0)))&&_0x1e46d1[_0x389e('0x9b')]());if(_0x25fb3c[_0x389e('0xd4')](_0x552752=>_0x5d3415[_0x389e('0x75')](_0x3575f5=>_0x3575f5[_0x389e('0xfb')](_0x552752,!0x0)))){const _0x4d6e37=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x122'),_0x2e3ef7,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x4d6e37(_0x45ad6f,null,_0x5421f0)),null;}}else{const _0x21e0d2=_0x1e46d1[_0x389e('0xbe')]();_0x25fb3c['some'](_0x222611=>_0x222611[_0x389e('0xfb')](_0x21e0d2,!0x0))&&_0x1e46d1['discard']();if(_0x25fb3c[_0x389e('0xd4')](_0x1e4c0c=>_0x21e0d2[_0x389e('0xfb')](_0x1e4c0c,!0x0))){const _0x4fdbb1=this[_0x389e('0xc2')]['getSuggestionCallback'](_0x389e('0x122'),_0x2e3ef7,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x4fdbb1(_0x25fb3c,null,_0x5421f0)),null;}}const _0x28be74=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x122'),_0x2e3ef7,'join');let _0x52fdcd=null;for(const _0x540283 of this['getSuggestions']())if(_0x540283[_0x389e('0xa1')]['id']==_0x4a7a57['id']&&_0x540283['isInContent']&&_0x389e('0x122')==_0x540283[_0x389e('0x64')]&&_0x540283[_0x389e('0x107')]==_0x2e3ef7&&Ot(_0x540283,_0x5421f0)&&(_0x28be74(_0x540283[_0x389e('0x92')](),_0x25fb3c)||_0x28be74(_0x25fb3c,_0x540283[_0x389e('0x92')]()))){if(_0x52fdcd){if(_0x540283[_0x389e('0xec')]&&_0x540283[_0x389e('0xec')][_0x389e('0x105')])continue;for(const _0x201d08 of _0x540283[_0x389e('0x92')]())_0x52fdcd[_0x389e('0x113')](_0x201d08)||_0x52fdcd[_0x389e('0x46')](_0x201d08);_0x540283[_0x389e('0x11b')]();}else{_0x52fdcd=_0x540283;for(const _0x3bc33c of _0x25fb3c)_0x540283[_0x389e('0x113')](_0x3bc33c)||_0x540283[_0x389e('0x46')](_0x3bc33c);}}if(_0x52fdcd)return _0x52fdcd;_0x2ea77e[_0x389e('0x6e')]();for(const {suggestion:_0x328439,meta:_0x4b7e9c}of this[_0x389e('0x33')](_0x25fb3c,'deletion'))_0x4b7e9c[_0x389e('0xed')]&&(this['_mergeNestedSuggestions']||!_0x4b7e9c[_0x389e('0xc8')]&&!_0x4b7e9c['isInsideObject'])&&Ot(_0x328439,_0x5421f0)&&_0x2ea77e[_0x389e('0x4c')](_0x328439);for(const _0x1c6af0 of _0x2ea77e){const _0x3184f2=_0x1c6af0[_0x389e('0x92')]();if(!_0x5421f0||!_0x5421f0[_0x389e('0x5d')]){if(_0x25fb3c[_0x389e('0xd4')](_0x5cfc5b=>_0x3184f2[_0x389e('0x75')](_0x260882=>_0x260882[_0x389e('0xfb')](_0x5cfc5b,!0x0))))return _0x1c6af0;}(!_0x1c6af0[_0x389e('0x114')]||!_0x1c6af0[_0x389e('0x114')][_0x389e('0x5d')])&&(_0x3184f2['every'](_0x3fed5b=>_0x25fb3c['some'](_0x49c9b4=>_0x49c9b4[_0x389e('0xfb')](_0x3fed5b,!0x0)))&&_0x1c6af0['discard']());}const _0x8fac09=_0x2d3e82(),_0x146d73=_0x4a7a57['id'],_0x5ba542=_0x389e('0x45')+_0x2e3ef7,_0x44f48d=this['_setSuggestionData']({'id':_0x8fac09,'type':_0x5ba542,'createdAt':new Date(),'authorId':_0x146d73,'attributes':_0x5421f0});for(const _0x24b2b9 of _0x25fb3c)_0x24b2b9['detach'](),_0x24b2b9[_0x389e('0x124')]||_0x389e('0x94')==_0x24b2b9['root'][_0x389e('0x90')]||this['_addSuggestionMarker'](_0x5ba542,_0x8fac09,_0x146d73,_0x24b2b9,_0x516b3f[_0x389e('0xb4')]());return _0x44f48d;}['_setSuggestionRange'](_0x4e01cf,_0x1a09b4){const _0x4e3fb1=_0x4e01cf['getFirstMarker']();this[_0x389e('0x13f')][_0x389e('0x52')](_0x2ba14d=>{_0x2ba14d[_0x389e('0x99')](_0x4e3fb1,{'range':_0x1a09b4});});}['_addThreadToSuggestion'](_0x374bc9){const _0x149f77=_0x374bc9['id'],_0x39b1ef=this[_0x389e('0x24')][_0x389e('0x9d')][_0x389e('0x11d')]('collaboration.channelId');this[_0x389e('0xa8')]['hasCommentThread'](_0x149f77)||this['_commentsRepository'][_0x389e('0x115')]({'channelId':_0x39b1ef,'threadId':_0x149f77,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x299dfd=this[_0x389e('0xa8')][_0x389e('0x43')](_0x149f77);_0x299dfd[_0x389e('0x54')]('isRemovable'),_0x299dfd['isRemovable']=!0x1,_0x374bc9[_0x389e('0xec')]=_0x299dfd;}[_0x389e('0xb8')](_0x38dce6,_0x33b762,_0x56afd7,_0x3261ed){if(_0x38dce6[_0x389e('0x64')]!=_0x33b762||_0x38dce6[_0x389e('0x107')]!=_0x56afd7||_0x38dce6[_0x389e('0x129')]['id']!=_0x3261ed)throw this['editor']['enableReadOnlyMode'](_0x389e('0x13')),new _0x446f02(_0x389e('0x13'),this);}[_0x389e('0x71')](_0x1c2d28,_0x36163c){const _0x1e6ecd=_0x1c2d28['getFirstRange']();if(_0x36163c[_0x389e('0x7b')](_0x1e6ecd))_0x1c2d28[_0x389e('0x11b')]();else{if(_0x1e6ecd['containsRange'](_0x36163c)){const _0x1c5fe3=this[_0x389e('0x13f')][_0x389e('0xae')](_0x36163c[_0x389e('0x3')][_0x389e('0x123')],'end');this[_0x389e('0x6')](_0x1c2d28,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1e6ecd[_0x389e('0x3')],_0x1c5fe3));const _0x2809c3=_0x2d3e82(),_0x178063=_0x1c2d28[_0x389e('0x129')]['id'],_0x429301=_0x1c2d28['type']+':'+_0x1c2d28['subType'];this[_0x389e('0xda')]({'id':_0x2809c3,'type':_0x429301,'createdAt':new Date(),'authorId':_0x178063,'data':_0x1c2d28[_0x389e('0x13c')],'attributes':_0x1c2d28[_0x389e('0x114')]});const _0x400ea6=this['_model'][_0x389e('0xae')](_0x36163c[_0x389e('0x6a')]['parent'],'after'),_0x2a7db7=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x400ea6,_0x1e6ecd[_0x389e('0x6a')]);this[_0x389e('0x11f')](_0x429301,_0x2809c3,_0x178063,_0x2a7db7);}else{if(_0x1e6ecd['containsPosition'](_0x36163c['start'])){const _0x57923e=this[_0x389e('0x13f')][_0x389e('0xae')](_0x36163c['start'][_0x389e('0x123')],_0x389e('0x6a'));this['_setSuggestionRange'](_0x1c2d28,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1e6ecd[_0x389e('0x3')],_0x57923e));}else{const _0x34233d=this[_0x389e('0x13f')]['createPositionAt'](_0x36163c[_0x389e('0x6a')][_0x389e('0x8e')],_0x389e('0x27'));this[_0x389e('0x6')](_0x1c2d28,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x34233d,_0x1e6ecd[_0x389e('0x6a')]));}}}}[_0x389e('0xe2')](_0x595691){for(const {suggestion:_0x116cf8,meta:_0x3ac9b3}of this[_0x389e('0x33')](_0x595691,'insertion')){if(!_0x3ac9b3[_0x389e('0xed')])continue;const _0x221356=_0x116cf8['getRanges']();for(const _0x5bb099 of _0x221356)if(!_0x595691['getDifference'](_0x5bb099)['length'])return!0x0;}return!0x1;}[_0x389e('0x11e')](_0x1b1e96){const _0x21d198=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')]('Users')[_0x389e('0xb')](_0x1b1e96);if(!_0x21d198)throw new _0x446f02('track-changes-user-not-found',this);return _0x21d198;}[_0x389e('0xb7')](_0x2fcd4e){const _0x29b9cc=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139')),_0x391f78=_0x220e2f(_0x389e('0xfd')+_0x2fcd4e),_0x16762a=_0x29b9cc[_0x389e('0xb')](_0x391f78);return _0x16762a||_0x29b9cc['addUser']({'id':_0x391f78,'name':_0x2fcd4e});}[_0x389e('0xfc')](_0x325d37,_0x83fc8b,_0x3464c2,_0x3b46e0,_0x40498a){const _0x1c1047=this[_0x389e('0x11e')](_0x3b46e0),_0x2de47c=this[_0x389e('0xc2')][_0x389e('0x13e')](_0x325d37,_0x83fc8b,_0x3464c2,_0x1c1047,_0x40498a,_0xe5e05c=>this[_0x389e('0x34')](_0x3464c2,{'attributes':_0xe5e05c}));return this[_0x389e('0x6f')](_0x2de47c,_0x389e('0x38'),()=>{this[_0x389e('0x34')](_0x3464c2,{'state':_0x389e('0xa5')});},{'priority':_0x389e('0x79')}),this[_0x389e('0x6f')](_0x2de47c,'discard',()=>{this[_0x389e('0x34')](_0x3464c2,{'state':_0x389e('0xa')});},{'priority':'high'}),this[_0x389e('0x31')]['set'](_0x3464c2,_0x2de47c),this['_suggestionState']['set'](_0x2de47c,'notReady'),_0x2de47c;}[_0x389e('0xf1')](_0x14c450){const _0x1e594c=_0x14c450['split'](':');return{'group':_0x1e594c[0x0],'type':_0x1e594c[0x1],'subType':_0x1e594c[_0x389e('0x105')]>=0x5?_0x1e594c[0x2]:null,'id':_0x1e594c[_0x389e('0x105')]<0x5?_0x1e594c[0x2]:_0x1e594c[0x3],'authorId':_0x1e594c[_0x389e('0x105')]<0x5?_0x1e594c[0x3]:_0x1e594c[0x4],'markerCount':0x6==_0x1e594c[_0x389e('0x105')]?_0x1e594c[0x5]:null};}['_breakSuggestionMarker'](_0x62f6a6,_0x349da0,_0x4efaa9){const _0xcc2d08=_0x62f6a6[_0x389e('0xbe')](),_0x1b345f=_0xcc2d08['start'],_0x3ba174=_0xcc2d08[_0x389e('0x6a')];this[_0x389e('0x6')](_0x62f6a6,this['_model'][_0x389e('0xb0')](_0x1b345f,_0x349da0));const _0x3f1ece=_0x2d3e82(),_0x1ff233=_0x62f6a6[_0x389e('0x129')]['id'],_0x6be643=_0x62f6a6[_0x389e('0x64')]+(_0x62f6a6['subType']?':'+_0x62f6a6[_0x389e('0x107')]:'');this[_0x389e('0xda')]({'id':_0x3f1ece,'type':_0x6be643,'createdAt':new Date(),'authorId':_0x1ff233,'originalSuggestionId':_0x62f6a6['id'],'attributes':_0x62f6a6[_0x389e('0x114')],'data':_0x62f6a6[_0x389e('0x13c')]}),_0x389e('0xc6')==_0x62f6a6[_0x389e('0x64')]&&(_0x4efaa9=this[_0x389e('0x13f')][_0x389e('0x1a')](_0x4efaa9[_0x389e('0x8e')])),this[_0x389e('0x11f')](_0x6be643,_0x3f1ece,_0x1ff233,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x4efaa9,_0x3ba174));}[_0x389e('0x33')](_0x1e80c6,_0x44240f=null){const _0x142c00=[],_0x7ac116=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'];Array[_0x389e('0x40')](_0x1e80c6)||(_0x1e80c6=[_0x1e80c6]);for(const _0x227251 of this[_0x389e('0xaf')]()){if(!_0x227251['isInContent'])continue;if(_0x44240f&&_0x227251[_0x389e('0x64')]!=_0x44240f)continue;let _0x4a097b=!0x1;for(const _0x1c4360 of _0x227251[_0x389e('0x92')]()){for(const _0xcbee5d of _0x1e80c6){const _0x1cc9de=_0xcbee5d['start'][_0x389e('0x7b')](_0x1c4360[_0x389e('0x6a')])||_0xcbee5d[_0x389e('0x6a')][_0x389e('0x7b')](_0x1c4360[_0x389e('0x3')]);if(_0x1cc9de||_0xcbee5d[_0x389e('0xf5')](_0x1c4360)){const _0x3954fb=_0xcbee5d[_0x389e('0xfb')](_0x1c4360)&&_t(this[_0x389e('0x13f')][_0x389e('0x98')],_0x1c4360[_0x389e('0x3')],_0xcbee5d),_0x273243=_0x1c4360[_0x389e('0xfb')](_0xcbee5d)&&_t(this[_0x389e('0x13f')][_0x389e('0x98')],_0xcbee5d[_0x389e('0x3')],_0x1c4360);_0x142c00[_0x389e('0x131')]({'suggestion':_0x227251,'meta':{'isOwn':_0x7ac116==_0x227251['author'],'isNextTo':_0x1cc9de,'isInsideObject':_0x3954fb,'containsRangeInObject':_0x273243}}),_0x4a097b=!0x0;break;}}if(_0x4a097b)break;}}return _0x142c00;}['_addSuggestionMarker'](_0xff6b40,_0x344d18,_0xcd54fb,_0x6a9b1c,_0x48bec8){this[_0x389e('0x13f')][_0x389e('0x52')](_0x1541e1=>{let _0x753a05=_0x389e('0xd7')+_0xff6b40+':'+_0x344d18+':'+_0xcd54fb;_0x48bec8&&(_0x753a05=_0x753a05+':'+_0x48bec8),_0x1541e1[_0x389e('0x32')](_0x753a05,{'range':_0x6a9b1c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x389e('0x5')](_0x84f56d){const _0x3bd1b7=_0x84f56d[_0x389e('0x72')],_0xd85da2=_0x84f56d['next'];_0x84f56d['previous']=null,null!=_0x3bd1b7&&(_0x3bd1b7[_0x389e('0x74')]=null),_0x84f56d[_0x389e('0x74')]=null,null!=_0xd85da2&&(_0xd85da2[_0x389e('0x72')]=null),_0x389e('0x55')==this[_0x389e('0x23')][_0x389e('0x11d')](_0x84f56d)&&(this[_0x389e('0x23')][_0x389e('0x48')](_0x84f56d,_0x389e('0x132')),this[_0x389e('0xe0')](_0x389e('0x125'),_0x84f56d,_0x3bd1b7,_0xd85da2));}[_0x389e('0xda')](_0x40ad53){const _0x445b62=_0x40ad53['id'],_0x581a2d=this[_0x389e('0x121')](_0x40ad53);if(this[_0x389e('0x25')]&&this[_0x389e('0x25')][_0x389e('0xfe')]){const _0x5c75dd=this['editor'][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0xe4')),_0x452140=_0x581a2d[_0x389e('0x106')],_0x3ef7c1=_0x581a2d[_0x389e('0x107')]?_0x581a2d['type']+':'+_0x581a2d[_0x389e('0x107')]:_0x581a2d[_0x389e('0x64')],_0x1150ca=this[_0x389e('0x24')][_0x389e('0x11')],_0x3ce131=_0x5c75dd['add'](_0x1789a5(_0x1150ca,_0x389e('0xdf'))),_0x148666={'id':_0x445b62,'type':_0x3ef7c1,'hasComments':_0x452140,'data':_0x40ad53[_0x389e('0x13c')]||null,'originalSuggestionId':_0x40ad53[_0x389e('0xfa')]||null,'attributes':_0x581a2d[_0x389e('0x114')]};this[_0x389e('0x25')][_0x389e('0xfe')](_0x148666)['then'](_0x45a63c=>{_0x581a2d[_0x389e('0x65')]=!0x0,_0x5c75dd[_0x389e('0x8')](_0x3ce131),_0x45a63c&&_0x45a63c[_0x389e('0x5c')]&&(this[_0x389e('0x31')]['get'](_0x445b62)[_0x389e('0x5c')]=_0x45a63c[_0x389e('0x5c')]);})[_0x389e('0xcb')](_0x49458b=>{throw _0x4001e4(_0x389e('0x101')),this[_0x389e('0x24')][_0x389e('0xef')][_0x389e('0xa9')]({'isUndoable':!0x1},()=>{_0x581a2d[_0x389e('0x9b')]();}),_0x581a2d[_0x389e('0x1')](),this[_0x389e('0x31')][_0x389e('0x7a')](_0x581a2d['id']),this[_0x389e('0x23')][_0x389e('0x7a')](_0x581a2d),_0x49458b;});}return _0x581a2d;}[_0x389e('0x34')](_0x4cc2f4,_0x481e54){const _0xac8131=this[_0x389e('0x24')][_0x389e('0xab')]['get'](_0x389e('0xe4')),_0x44b100=this[_0x389e('0x102')](_0x4cc2f4);if(this['_adapter']&&this[_0x389e('0x25')]['updateSuggestion']){if(_0x44b100[_0x389e('0x65')]){const _0x3f57a9=_0xac8131[_0x389e('0x4c')](_0x1789a5(this[_0x389e('0x24')][_0x389e('0x11')],_0x389e('0xdf')));this[_0x389e('0x25')][_0x389e('0x16')](_0x4cc2f4,_0x481e54)['then'](()=>{_0xac8131[_0x389e('0x8')](_0x3f57a9);});}else _0x44b100['on'](_0x389e('0x9'),()=>{this[_0x389e('0x34')](_0x4cc2f4,_0x481e54);});}}[_0x389e('0x137')](_0x148b4e){if(!this[_0x389e('0x25')]||!this[_0x389e('0x25')]['getSuggestion'])throw new _0x446f02(_0x389e('0x53'),this);return this['_adapter']['getSuggestion'](_0x148b4e);}['_handleNewSuggestionMarker'](_0x5be4a2){const {id:_0x1ff509,type:_0x40e6ad,subType:_0x4ff871,authorId:_0x43cfa0}=this['_splitMarkerName'](_0x5be4a2),_0x2a649b=this[_0x389e('0x31')][_0x389e('0x11d')](_0x1ff509)||this[_0x389e('0xfc')](_0x40e6ad,_0x4ff871,_0x1ff509,_0x43cfa0,{});switch(this[_0x389e('0xb8')](_0x2a649b,_0x40e6ad,_0x4ff871,_0x43cfa0),this[_0x389e('0x23')][_0x389e('0x11d')](_0x2a649b)){case _0x389e('0xd5'):this['_getSuggestionData'](_0x1ff509)['then'](_0x462c8b=>{let _0xad6459=Promise['resolve']();_0x462c8b[_0x389e('0x106')]&&(_0xad6459=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x389e('0x24')][_0x389e('0x9d')]['get'](_0x389e('0xce')),'threadId':_0x1ff509})),_0xad6459['then'](()=>{this[_0x389e('0x121')](_0x462c8b)[_0x389e('0x65')]=!0x0;});}),this['_suggestionState']['set'](_0x2a649b,_0x389e('0xf'));break;case'removed':this['_updateSuggestionData'](_0x1ff509,{'state':_0x389e('0x2b')});case _0x389e('0x9e'):this[_0x389e('0x23')]['set'](_0x2a649b,_0x389e('0x55')),this[_0x389e('0xe0')](_0x389e('0x76'),_0x2a649b);break;case _0x389e('0x55'):this[_0x389e('0xe0')]('suggestionChanged',_0x2a649b);}return _0x2a649b[_0x389e('0x85')](_0x5be4a2),_0x2a649b;}[_0x389e('0x30')](_0x508502){const _0x5236cb=Array[_0x389e('0xc7')](_0x508502)[_0x389e('0x56')](_0x4428fd=>!_0x4428fd[_0x389e('0xc5')]),_0x175b0c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x296e24=>!_0x296e24[_0x389e('0xc5')]),_0xea41ad=_0x175b0c[_0x389e('0x56')](_0x140b9d=>!_0x508502['has'](_0x140b9d)),_0x545d71=new Map(_0x175b0c[_0x389e('0x110')](_0x313448=>[_0x313448,this[_0x389e('0xc2')][_0x389e('0xbb')](_0x313448[_0x389e('0x64')],_0x313448[_0x389e('0x107')],_0x389e('0x5a'))])),_0x15d553=new Map(_0x175b0c[_0x389e('0x110')](_0x1bba0c=>[_0x1bba0c,_0x1bba0c[_0x389e('0xbe')]()])),_0x31ad58=new Set(),_0x3b061e=new Set();for(let _0x5db838=0x0;_0x5db838<_0x5236cb[_0x389e('0x105')];_0x5db838++)_0x878db6(_0x5236cb[_0x5db838],_0x5236cb,_0x5db838+0x1);for(let _0x293acc=0x0;_0x293acc<_0x5236cb[_0x389e('0x105')];_0x293acc++)_0x878db6(_0x5236cb[_0x293acc],_0xea41ad,0x0);for(let _0x4669e4=0x0;_0x4669e4<_0x5236cb['length'];_0x4669e4++){const _0x28f0aa=_0x5236cb[_0x4669e4];!_0x3b061e[_0x389e('0x8d')](_0x28f0aa)&&_0x28f0aa[_0x389e('0x72')]&&(_0x28f0aa['previous']['next']===_0x28f0aa&&(_0x28f0aa[_0x389e('0x72')][_0x389e('0x74')]=null),_0x28f0aa[_0x389e('0x72')]=null),!_0x31ad58[_0x389e('0x8d')](_0x28f0aa)&&_0x28f0aa[_0x389e('0x74')]&&(_0x28f0aa[_0x389e('0x74')]['previous']===_0x28f0aa&&(_0x28f0aa[_0x389e('0x74')][_0x389e('0x72')]=null),_0x28f0aa['next']=null);}function _0x878db6(_0x21c480,_0x17b747,_0x4c67f1){for(let _0x2cd840=_0x4c67f1;_0x2cd840<_0x17b747[_0x389e('0x105')];_0x2cd840++){const _0x15afd2=_0x924da4(_0x21c480,_0x17b747[_0x2cd840]);_0x15afd2&&(_0x15afd2[0x0][_0x389e('0x74')]=_0x15afd2[0x1],_0x15afd2[0x1][_0x389e('0x72')]=_0x15afd2[0x0],_0x31ad58[_0x389e('0x4c')](_0x15afd2[0x0]),_0x3b061e[_0x389e('0x4c')](_0x15afd2[0x1]));}}function _0x924da4(_0x145b11,_0x13a9c8){if(_0x145b11['author']['id']!==_0x13a9c8[_0x389e('0xa1')]['id'])return null;const _0x2c79e1=_0x545d71[_0x389e('0x11d')](_0x145b11)(_0x145b11,_0x13a9c8,_0x15d553['get'](_0x145b11),_0x15d553['get'](_0x13a9c8));if(!_0x2c79e1)return null;return _0x545d71[_0x389e('0x11d')](_0x13a9c8)(_0x145b11,_0x13a9c8,_0x15d553[_0x389e('0x11d')](_0x145b11),_0x15d553['get'](_0x13a9c8))?_0x2c79e1[0x1][_0x389e('0xec')]&&_0x2c79e1[0x1][_0x389e('0xec')][_0x389e('0x105')]?null:_0x2c79e1:null;}}[_0x389e('0xac')](_0x1dddfa){const _0x42d6c9=Array[_0x389e('0xc7')](_0x1dddfa),_0x1a5811=this['getSuggestions']({'skipNotAttached':!0x0}),_0xff26de=_0x1a5811['filter'](_0x101f30=>!_0x1dddfa[_0x389e('0x8d')](_0x101f30)),_0x3eda4d=new Map(_0x42d6c9[_0x389e('0x110')](_0x538bf9=>[_0x538bf9,this[_0x389e('0xc2')][_0x389e('0xbb')](_0x538bf9[_0x389e('0x64')],_0x538bf9[_0x389e('0x107')],'join')])),_0x17da7c=new Map(_0x1a5811['map'](_0x55b073=>[_0x55b073,_0x55b073[_0x389e('0x92')]()]));for(let _0xa745ac=0x0;_0xa745ac<_0x42d6c9[_0x389e('0x105')];_0xa745ac++){if(_0x2e7951(this,_0x42d6c9[_0xa745ac],_0x42d6c9,_0xa745ac+0x1))return!0x0;}for(let _0x2ab98a=0x0;_0x2ab98a<_0x42d6c9[_0x389e('0x105')];_0x2ab98a++){if(_0x2e7951(this,_0x42d6c9[_0x2ab98a],_0xff26de,0x0))return!0x0;}return!0x1;function _0x2e7951(_0x572d90,_0x5bf87e,_0x2fb895,_0x49306a){for(let _0x426bcf=_0x49306a;_0x426bcf<_0x2fb895[_0x389e('0x105')];_0x426bcf++){const _0x1edeff=_0x2fb895[_0x426bcf];if(_0x1edeff['type']!==_0x5bf87e[_0x389e('0x64')]||_0x1edeff[_0x389e('0xa1')]['id']!==_0x5bf87e[_0x389e('0xa1')]['id']||_0x1edeff[_0x389e('0x107')]!==_0x5bf87e[_0x389e('0x107')])continue;if(!Ut(_0x5bf87e,_0x1edeff))continue;const _0x517d1e=_0x3eda4d['get'](_0x5bf87e),_0x191c7e=_0x17da7c[_0x389e('0x11d')](_0x5bf87e),_0x4c9a16=_0x17da7c[_0x389e('0x11d')](_0x1edeff),_0x5365ec=_0x5bf87e['commentThread']&&_0x5bf87e['commentThread']['length'],_0x46a5f9=_0x1edeff[_0x389e('0xec')]&&_0x1edeff[_0x389e('0xec')][_0x389e('0x105')];if(!_0x5365ec&&_0x517d1e(_0x4c9a16,_0x191c7e))return _0x572d90[_0x389e('0x2c')](_0x1edeff,_0x5bf87e),_0x17da7c[_0x389e('0x7a')](_0x5bf87e),!0x0;if(!_0x46a5f9&&_0x517d1e(_0x191c7e,_0x4c9a16))return _0x572d90[_0x389e('0x2c')](_0x5bf87e,_0x1edeff),_0x17da7c[_0x389e('0x7a')](_0x1edeff),!0x0;}return!0x1;}}[_0x389e('0x2c')](_0x548ab8,_0x53f88e){if(_0x548ab8[_0x389e('0xc5')])for(const _0x5dcca9 of _0x53f88e[_0x389e('0x92')]())_0x548ab8[_0x389e('0x46')](_0x5dcca9);else{const _0x2e4bde=_0x53f88e[_0x389e('0xbe')]()[_0x389e('0x6a')];this[_0x389e('0x6')](_0x548ab8,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x548ab8['getFirstRange']()[_0x389e('0x3')],_0x2e4bde));}_0x53f88e['removeMarkers']();}}class Bt{constructor(_0x298d52){this[_0x389e('0x5b')]=_0x298d52,this[_0x389e('0x13f')]=_0x298d52['model'],this[_0x389e('0x8b')]=new Map(),this[_0x389e('0xd9')]=new Map(),this[_0x389e('0x10')]();}[_0x389e('0x13e')](_0x5dc942,_0x357258,_0x566374,_0x2cf4e6,_0x39dfd8,_0x1d7354){return new _0x516b3f(this['_model'],{'type':_0x5dc942,'subType':_0x357258,'id':_0x566374,'author':_0x2cf4e6,'creator':_0x2cf4e6,'attributes':_0x39dfd8,'onAttributesChange':_0x1d7354,'onAccept':(..._0x23344f)=>this[_0x389e('0xbb')](_0x5dc942,_0x357258,_0x389e('0x38'))(..._0x23344f),'onDiscard':(..._0x4fafda)=>this['getSuggestionCallback'](_0x5dc942,_0x357258,_0x389e('0x9b'))(..._0x4fafda)});}[_0x389e('0x5e')](_0x55d046,_0x384919,_0x2d1017,_0x5d669d){const _0x54d33a=_0x55d046+':'+_0x384919+':'+_0x2d1017;this[_0x389e('0x8b')][_0x389e('0x48')](_0x54d33a,_0x5d669d);}[_0x389e('0xbb')](_0x4f4393,_0x3783fd,_0x4d5ddf){const _0x26efc4=_0x4f4393+':'+_0x3783fd+':'+_0x4d5ddf;return this[_0x389e('0x8b')][_0x389e('0x11d')](_0x26efc4)||this['_defaultCallbacks']['get'](_0x4f4393+':'+_0x4d5ddf);}[_0x389e('0x10')](){const _0x2bebf9=()=>!0x1,_0x40fa5c=_0xdf46f6=>{_0xdf46f6[_0x389e('0xd6')]((_0x25070b,_0x3fb407)=>_0x25070b[_0x389e('0x3')]['isBefore'](_0x3fb407[_0x389e('0x3')])?0x1:-0x1),this[_0x389e('0x13f')][_0x389e('0x52')](_0x12bbe8=>{for(const _0x3dec5c of _0xdf46f6){let _0x1cbf83;_0x1cbf83=_0x3dec5c[_0x389e('0x6a')][_0x389e('0x78')]&&_0x3dec5c[_0x389e('0x6a')][_0x389e('0x8e')]==_0x3dec5c[_0x389e('0x3')][_0x389e('0x82')]?_0x12bbe8[_0x389e('0x7d')](_0x3dec5c[_0x389e('0x3')][_0x389e('0x82')],'on'):_0x12bbe8[_0x389e('0x7d')](_0x3dec5c),this[_0x389e('0x13f')][_0x389e('0xff')](_0x1cbf83,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x518d74=(_0x202948,_0xab34a3)=>{this[_0x389e('0x13f')][_0x389e('0x52')](_0x51fd02=>{const {commandName:_0x3149a8,commandParams:_0x113a1d=[]}=_0xab34a3,_0x32b361=_0x202948[_0x389e('0x110')](_0x284d9f=>(Mt(_0x284d9f)&&(_0x284d9f=this[_0x389e('0x13f')]['createRange'](_0x284d9f[_0x389e('0x6a')])),_0x284d9f))['filter'](_0x5a2d90=>_0x389e('0x94')!==_0x5a2d90[_0x389e('0x14')][_0x389e('0x90')]);if(_0x32b361['length']<0x1)return;const _0x1a01b8=Array[_0x389e('0xc7')](this[_0x389e('0x13f')]['document'][_0x389e('0x88')]['getRanges']())[_0x389e('0x110')](_0x40ecf8=>_0x2b7e22[_0x389e('0x13a')](_0x40ecf8));_0x51fd02[_0x389e('0x11a')](_0x32b361);for(const _0x505352 of this[_0x389e('0x5b')]['commands']['commands']())_0x505352[_0x389e('0x11c')]();_0x113a1d[_0x389e('0x131')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x389e('0xc0')](_0x3149a8,..._0x113a1d);const _0x1038f4=_0x1a01b8[_0x389e('0x56')](_0x39ae73=>'$graveyard'!=_0x39ae73[_0x389e('0x14')][_0x389e('0x90')]);_0x1038f4[_0x389e('0x105')]>0x0&&_0x51fd02[_0x389e('0x11a')](_0x1038f4);for(const _0xa37d3a of _0x1a01b8)_0xa37d3a['detach']();});},_0x4bdab6=(_0x4ff19c,_0x34f40d)=>0x1==_0x4ff19c[_0x389e('0x105')]&&0x1==_0x34f40d[_0x389e('0x105')]&&_0x4ff19c[0x0]['end']['isEqual'](_0x34f40d[0x0][_0x389e('0x3')]),_0x469b22=(_0x2bc123,_0x32c2df,_0x463ae1,_0x2cafbf)=>xt(_0x2bc123,_0x32c2df,_0x463ae1,_0x2cafbf,this[_0x389e('0x13f')])?[_0x2bc123,_0x32c2df]:xt(_0x32c2df,_0x2bc123,_0x2cafbf,_0x463ae1,this['_model'])?[_0x32c2df,_0x2bc123]:null;this[_0x389e('0xd9')]['set'](_0x389e('0x12b'),_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')]('insertion:discard',_0x40fa5c),this[_0x389e('0xd9')][_0x389e('0x48')]('insertion:join',_0x4bdab6),this['_defaultCallbacks']['set'](_0x389e('0x1b'),_0x469b22),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x128'),_0x40fa5c),this[_0x389e('0xd9')][_0x389e('0x48')]('deletion:discard',_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0xf8'),_0x4bdab6),this['_defaultCallbacks'][_0x389e('0x48')]('deletion:chain',_0x469b22),this[_0x389e('0xd9')]['set']('formatInline:accept',_0x518d74),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x10c'),_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x5f'),_0x4bdab6),this['_defaultCallbacks']['set'](_0x389e('0x103'),_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x70'),_0x518d74),this[_0x389e('0xd9')][_0x389e('0x48')]('formatBlock:discard',_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x130'),_0x4bdab6),this['_defaultCallbacks']['set'](_0x389e('0x29'),_0x2bebf9);}}function _t(_0x5775af,_0x374f2b,_0x22fc59){for(const _0x19ae42 of _0x374f2b['parent'][_0x389e('0x19')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19ae42[_0x389e('0x14')]==_0x19ae42)return!0x1;if(!_0x22fc59[_0x389e('0xe1')](_0x19ae42))return!0x1;if(_0x5775af[_0x389e('0xf2')](_0x19ae42)||_0x5775af[_0x389e('0x3c')](_0x19ae42))return!0x0;}return!0x1;}function Mt(_0x19daa4){return _0x19daa4[_0x389e('0x6a')][_0x389e('0x8e')]==_0x19daa4[_0x389e('0x3')][_0x389e('0x82')]&&_0x19daa4[_0x389e('0x6a')][_0x389e('0xf3')];}function $t(_0x28334d,_0x43daf7,_0x111210,_0x5af18d){const _0x5a0cbb=_0x21b51e=>!_0x21b51e['item']['is'](_0x389e('0x2d'))&&!_0x5af18d['isObject'](_0x21b51e[_0x389e('0xd3')]),_0x1286e1=_0x28334d['start']['getLastMatchingPosition'](_0x5a0cbb),_0x93546b=_0x28334d[_0x389e('0x6a')]['getLastMatchingPosition'](_0x5a0cbb,{'direction':'backward'});return(!_0x28334d[_0x389e('0x3')][_0x389e('0x7b')](_0x1286e1)||!_0x28334d[_0x389e('0x6a')]['isEqual'](_0x93546b))&&(_0x1286e1[_0x389e('0x109')](_0x93546b)?_0x111210[_0x389e('0x99')](_0x43daf7,{'range':_0x111210['createRange'](_0x1286e1,_0x93546b)}):_0x111210[_0x389e('0x9a')](_0x43daf7),!0x0);}function Nt(_0x31a00b){return _0x220e2f(_0x31a00b);}function Rt(_0x557bef){const _0x193548=_0x557bef['start'][_0x389e('0x82')];return _0x193548&&_0x193548['is'](_0x389e('0x80'));}function jt(_0x2156d8,_0x4e5904){const _0x3750e8=_0x4e5904[_0x389e('0x98')][_0x389e('0xf2')](_0x2156d8)||_0x4e5904['schema'][_0x389e('0xa3')](_0x2156d8);return _0x4e5904[_0x389e('0xb0')](_0x4e5904[_0x389e('0xae')](_0x2156d8,'before'),_0x3750e8?_0x4e5904['createPositionAfter'](_0x2156d8):_0x4e5904['createPositionAt'](_0x2156d8,'end'));}function xt(_0x2ffa2a,_0x13d7cf,_0x1c7135,_0x494a9c,_0x4d3a5c){if(!Ut(_0x2ffa2a,_0x13d7cf))return!0x1;if(_0x1c7135[_0x389e('0x6a')][_0x389e('0x7b')](_0x494a9c['start']))return!0x0;if(_0x2ffa2a[_0x389e('0x64')]!=_0x13d7cf[_0x389e('0x64')])return!0x1;if(!_0x1c7135[_0x389e('0x6a')]['isTouching'](_0x494a9c[_0x389e('0x3')]))return!0x1;const _0x2c9f18=_0x4d3a5c[_0x389e('0xb0')](_0x1c7135[_0x389e('0x6a')],_0x494a9c[_0x389e('0x3')])['getWalker']();for(const _0x21ece0 of _0x2c9f18)if([_0x389e('0x10e'),'elementEnd'][_0x389e('0x57')](_0x21ece0[_0x389e('0x64')])&&_0x4d3a5c[_0x389e('0x98')]['isLimit'](_0x21ece0[_0x389e('0xd3')]))return!0x1;return!0x0;}function Ut(_0x1f455a,_0x31bc75){return!(!_0x1f455a['_isDataLoaded']||!_0x31bc75['_isDataLoaded'])&&_0x499793(_0x1f455a[_0x389e('0x114')],_0x31bc75['attributes']);}function Ot(_0x1cec6c,_0x7ae529){const _0x849269=Et(_0x1cec6c[_0x389e('0x114')]),_0x331e1c=Et(_0x7ae529);if(!_0x1cec6c[_0x389e('0x63')])return!0x1;for(const _0x26342e of Object[_0x389e('0x96')](_0x331e1c))if(!_0x499793(_0x849269[_0x26342e],_0x331e1c[_0x26342e]))return!0x1;return!0x0;}function Et(_0x2f94e3){const _0x5512c8=Object[_0x389e('0x100')]({},_0x2f94e3);return delete _0x5512c8[_0x389e('0x5d')],delete _0x5512c8[_0x389e('0x4a')],_0x5512c8;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5ac6=['filter','button','Annotations','from','comments','define','head','suggestion-','isDirty','values','createAnnotation','createCommentThreadController','discardSelectedSuggestions','registerAnnotation','discardButton','suggestionLoaded','focus','isEnabled','getAllAdjacentSuggestions','listenTo','comments.maxCommentCharsWhenCollapsed','_disableComments','TrackChangesUI','pluginName','value','some','Discard\x20all\x20selected\x20suggestions','getMarkerNames','actionView','commands','Accept\x20all\x20selected\x20suggestions','componentFactory','type','_unbindEditors','addComment','isInContent','getSuggestion','_destroyController','clear','_handleSuggestionControllerDelayed','destroy','descriptionParts','EditorAnnotations','_updateController','getDescriptions','length','view','buttonView','innerView','trackChanges','refreshSelectedViews','activeMarkers','discardAllSuggestions','comments.editorConfig','trackChanges.SuggestionThreadView','size','addSourceCollector','get','mainView','delete','_handleControllerBuffer','change:previous','separator','keys','previous','editor','acceptAllSuggestions','Discard\x20all\x20suggestions','_bindAnnotationToEditors','execute','bind','push','getFirstRange','getMarkers','init','_createUIButton','remove','_annotationViews','editing','switchbutton','acceptSelectedSuggestions','_initializeController','_suggestionToController','has','model','suggestionUnloaded','add','getByInnerView','_viewToController','map','Track\x20changes','CommentsRepository','isOn','CommentView','source','config','hasSuggestion','TrackChangesEditing','comments.maxThreadTotalWeight','requires','_refreshActiveMarkers','locale','set','plugins','arrowView','trackChanges.disableComments','commandName','_descriptionFactory','toMany','suggestionChanged'];(function(_0x46c8e8,_0x5ac661){const _0x1bc4ce=function(_0x316dbe){while(--_0x316dbe){_0x46c8e8['push'](_0x46c8e8['shift']());}};_0x1bc4ce(++_0x5ac661);}(_0x5ac6,0x18d));const _0x1bc4=function(_0x46c8e8,_0x5ac661){_0x46c8e8=_0x46c8e8-0x0;let _0x1bc4ce=_0x5ac6[_0x46c8e8];return _0x1bc4ce;};import{Plugin as _0x55723d}from'ckeditor5/src/core';import{Collection as _0xb05ed8}from'ckeditor5/src/utils';import{Model as _0x5f369f,SplitButtonView as _0x41efbf,createDropdown as _0x36b65a,addListToDropdown as _0x4154fe}from'ckeditor5/src/ui';import{Users as _0x2cee90,getDateTimeFormatter as _0x4c3bf2,getAllMarkersDomElementsSorted as _0x4c7f69}from'ckeditor5-collaboration/src/collaboration-core';import _0xf9b7ed from'./trackchangesediting';import _0x473578 from'./ui/suggestioncontroller';import _0x555bf1 from'./ui/view/suggestionthreadview';import{getTranslation as _0x120537}from'./utils/common-translations';import _0x14aca1 from'../theme/icons/track-changes.svg';export default class d extends _0x55723d{static get[_0x1bc4('0x20')](){return[_0xf9b7ed,_0x2cee90,_0x1bc4('0x18'),_0x1bc4('0x2d'),_0x1bc4('0x55')];}static get[_0x1bc4('0x42')](){return _0x1bc4('0x41');}constructor(_0x4b563a){super(_0x4b563a),this[_0x1bc4('0xf')]=new Map(),this[_0x1bc4('0x15')]=new Map(),this[_0x1bc4('0xa')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x24d09d=this['editor'][_0x1bc4('0x1c')];_0x24d09d[_0x1bc4('0x30')](_0x1bc4('0x61'),_0x555bf1),_0x24d09d[_0x1bc4('0x30')](_0x1bc4('0x26'),!0x1),this[_0x1bc4('0x40')]=_0x24d09d[_0x1bc4('0x64')](_0x1bc4('0x26'));}[_0x1bc4('0x52')](_0x2c653c,_0x18b687){0x0===this['_handleControllerBuffer'][_0x1bc4('0x62')]&&setTimeout(()=>{for(const [_0x3d358f,_0x1bdc1d]of this['_handleControllerBuffer']){const _0x22e1ca=this[_0x1bc4('0xf')]['has'](_0x3d358f);_0x22e1ca||_0x1bdc1d?_0x22e1ca&&_0x1bdc1d&&this[_0x1bc4('0x50')](_0x3d358f):this[_0x1bc4('0xe')](_0x3d358f);}this[_0x1bc4('0x6c')]['plugins']['get'](_0x1bc4('0x55'))[_0x1bc4('0x5d')](),this[_0x1bc4('0x21')](),this[_0x1bc4('0x67')][_0x1bc4('0x51')]();},0xa),this[_0x1bc4('0x67')][_0x1bc4('0x23')](_0x2c653c,_0x18b687);}[_0x1bc4('0x7')](){const _0x21b749=this[_0x1bc4('0x6c')],_0xb128e9=_0x21b749['plugins'][_0x1bc4('0x64')]('TrackChangesEditing'),_0x15b53e=_0x21b749[_0x1bc4('0x24')][_0x1bc4('0x64')](_0x1bc4('0x2d')),_0x3f1b0d=_0x21b749[_0x1bc4('0x24')][_0x1bc4('0x64')]('EditorAnnotations'),_0x901883=_0x21b749['plugins'][_0x1bc4('0x64')](_0x1bc4('0x18'));_0x21b749['ui'][_0x1bc4('0x4a')][_0x1bc4('0x13')]('trackChanges',_0x115a55=>this[_0x1bc4('0x8')](_0x115a55)),_0x3f1b0d[_0x1bc4('0x63')](()=>{const _0x1c0cce=[];for(const [_0x19dc42,_0x15493c]of Array[_0x1bc4('0x2e')](this[_0x1bc4('0xf')])){const _0x3ade29=_0x19dc42[_0x1bc4('0x3d')](),_0x4a7fb0=[];for(const _0x82cd6f of _0x3ade29){if(!_0x82cd6f[_0x1bc4('0x4e')])continue;if(_0x82cd6f['isMultiRange']){_0x4a7fb0[_0x1bc4('0x4')](..._0x82cd6f['getRanges']());continue;}const _0x4a439d=_0x82cd6f[_0x1bc4('0x5')]();if(_0x4a7fb0[_0x1bc4('0x58')]>0x0){const _0x15c306=_0x4a7fb0[0x0]['getJoined'](_0x4a439d);if(_0x15c306){_0x4a7fb0[0x0]=_0x15c306;continue;}}_0x4a7fb0[_0x1bc4('0x4')](_0x4a439d);}_0x1c0cce[_0x1bc4('0x4')]([_0x15493c[_0x1bc4('0x59')],_0x4a7fb0]);}return _0x1c0cce;}),this[_0x1bc4('0x3e')](_0xb128e9,_0x1bc4('0x3a'),(_0x5b51b2,_0x3d3488)=>{this[_0x1bc4('0x3e')](_0x3d3488,_0x1bc4('0x68'),(_0x52b9c7,_0x2c341d,_0x9a1385,_0x59829f)=>{_0x3d3488[_0x1bc4('0x4e')]&&(null==_0x9a1385?(this['_updateController'](_0x59829f[_0x1bc4('0x31')]),this[_0x1bc4('0x52')](_0x3d3488,!0x1)):(this[_0x1bc4('0x56')](_0x9a1385[_0x1bc4('0x31')]),this[_0x1bc4('0x52')](_0x3d3488,!0x0)));}),null===_0x3d3488[_0x1bc4('0x6b')]?this[_0x1bc4('0x52')](_0x3d3488,!0x1):this[_0x1bc4('0x56')](_0x3d3488['head']);}),this[_0x1bc4('0x3e')](_0xb128e9,_0x1bc4('0x12'),(_0x412851,_0x1d83af,_0xa1691c)=>{this['stopListening'](_0x1d83af,_0x1bc4('0x68')),this['_handleControllerBuffer'][_0x1bc4('0x66')](_0x1d83af);const _0x1c4651=_0xa1691c?_0xa1691c[_0x1bc4('0x31')]:_0x1d83af,_0x4bc572=this[_0x1bc4('0xf')][_0x1bc4('0x64')](_0x1c4651);null!==_0xa1691c&&this['_updateController'](_0x1c4651),null===_0xa1691c&&_0x4bc572&&this[_0x1bc4('0x50')](_0x1d83af);}),this[_0x1bc4('0x3e')](_0xb128e9,_0x1bc4('0x2a'),(_0x2d3e7b,_0x2f0304)=>{this[_0x1bc4('0x56')](_0x2f0304);}),this['listenTo'](_0x15b53e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this[_0x1bc4('0x3e')](_0x901883,_0x1bc4('0x4d'),(_0x314858,{threadId:_0xc0141e,isFromAdapter:_0x5f43f2})=>{if(_0x5f43f2||!_0xb128e9[_0x1bc4('0x1d')](_0xc0141e))return;const _0x5ab405=_0xb128e9[_0x1bc4('0x4f')](_0xc0141e);this[_0x1bc4('0xf')][_0x1bc4('0x64')](_0x5ab405)['view'][_0x1bc4('0x3b')]();},{'priority':'lowest'});}[_0x1bc4('0x21')](){const _0x26b0c3=this[_0x1bc4('0x6c')][_0x1bc4('0x24')][_0x1bc4('0x64')](_0x1bc4('0x2d')),_0x55bae4=this[_0x1bc4('0x6c')][_0x1bc4('0x24')][_0x1bc4('0x64')](_0x1bc4('0x1e')),_0x18fbbc=Array[_0x1bc4('0x2e')](_0x26b0c3['activeAnnotations'],_0x342cd9=>_0x342cd9[_0x1bc4('0x5b')])[_0x1bc4('0x2b')](_0x3d3143=>this[_0x1bc4('0x15')][_0x1bc4('0x10')](_0x3d3143)),_0x2996e7=[];for(const _0x5901fa of _0x18fbbc){const _0x501dde=this[_0x1bc4('0x15')]['get'](_0x5901fa)[_0x1bc4('0x11')][_0x1bc4('0x3d')]();_0x2996e7[_0x1bc4('0x4')](..._0x501dde['reduce']((_0x598080,_0x1c100c)=>[..._0x598080,..._0x1c100c[_0x1bc4('0x46')]()],[]));}_0x55bae4[_0x1bc4('0x5e')]=_0x2996e7;}['_createUIButton'](_0x200bf2){const _0x6cadb5=_0x36b65a(_0x200bf2,_0x41efbf),_0x5bb2df=this[_0x1bc4('0x6c')][_0x1bc4('0x48')][_0x1bc4('0x64')](_0x1bc4('0x5c')),_0x27b175=_0x120537(_0x200bf2,_0x1bc4('0x17'));_0x6cadb5[_0x1bc4('0x5a')][_0x1bc4('0x23')]({'tooltip':_0x27b175,'label':_0x27b175,'icon':_0x14aca1}),_0x6cadb5['buttonView'][_0x1bc4('0x3')]('isOn')['to'](_0x5bb2df,_0x1bc4('0x43')),_0x6cadb5[_0x1bc4('0x5a')]['on'](_0x1bc4('0x2'),()=>{_0x5bb2df[_0x1bc4('0x2')](),this['editor'][_0x1bc4('0xb')][_0x1bc4('0x59')][_0x1bc4('0x3b')]();});const _0x2b41e6=new _0xb05ed8(),_0x1f2142=[{'type':_0x1bc4('0xc'),'model':{'withText':!0x0,'label':_0x27b175,'commandName':_0x1bc4('0x5c')}},{'type':_0x1bc4('0x69')},{'type':'button','model':{'withText':!0x0,'label':_0x120537(_0x200bf2,'Accept\x20all\x20suggestions'),'commandName':_0x1bc4('0x6d')}},{'type':'button','model':{'withText':!0x0,'label':_0x120537(_0x200bf2,_0x1bc4('0x49')),'commandName':_0x1bc4('0xd')}},{'type':_0x1bc4('0x2c'),'model':{'withText':!0x0,'label':_0x120537(_0x200bf2,_0x1bc4('0x0')),'commandName':_0x1bc4('0x5f')}},{'type':_0x1bc4('0x2c'),'model':{'withText':!0x0,'label':_0x120537(_0x200bf2,_0x1bc4('0x45')),'commandName':_0x1bc4('0x37')}}];for(const _0xe5be10 of _0x1f2142){let _0x2573c6={'type':_0x1bc4('0x69')};if(_0xe5be10[_0x1bc4('0x11')]){const _0x44ba31=new _0x5f369f(_0xe5be10['model']),_0x3e2c61=this['editor'][_0x1bc4('0x48')]['get'](_0x44ba31['commandName']);_0x44ba31[_0x1bc4('0x3')](_0x1bc4('0x19'),_0x1bc4('0x3c'))['to'](_0x3e2c61,'value',_0x1bc4('0x3c')),_0x2573c6={'type':_0xe5be10[_0x1bc4('0x4b')],'model':_0x44ba31};}_0x2b41e6[_0x1bc4('0x13')](_0x2573c6);}_0x4154fe(_0x6cadb5,_0x2b41e6);const _0x2f022c=_0x1f2142['filter'](_0x257e89=>null!=_0x257e89[_0x1bc4('0x11')])[_0x1bc4('0x16')](_0x2a3358=>this[_0x1bc4('0x6c')][_0x1bc4('0x48')][_0x1bc4('0x64')](_0x2a3358['model'][_0x1bc4('0x27')])),_0x52c2fc=_0x6cadb5['buttonView'];return _0x52c2fc[_0x1bc4('0x47')]['unbind'](_0x1bc4('0x3c')),_0x52c2fc[_0x1bc4('0x25')]['unbind'](_0x1bc4('0x3c')),_0x52c2fc['actionView'][_0x1bc4('0x3')](_0x1bc4('0x3c'))['to'](_0x5bb2df,'isEnabled'),_0x52c2fc[_0x1bc4('0x25')][_0x1bc4('0x3')](_0x1bc4('0x3c'))[_0x1bc4('0x29')](_0x2f022c,_0x1bc4('0x3c'),(..._0x5ae8bc)=>_0x5ae8bc[_0x1bc4('0x44')](_0x1ce205=>_0x1ce205)),_0x6cadb5['on']('execute',_0x3dffce=>{this[_0x1bc4('0x6c')][_0x1bc4('0x2')](_0x3dffce[_0x1bc4('0x1b')]['commandName']),this[_0x1bc4('0x6c')][_0x1bc4('0xb')][_0x1bc4('0x59')][_0x1bc4('0x3b')]();}),_0x6cadb5;}[_0x1bc4('0xe')](_0x4bc602){const _0x3bc8f9=this['editor'],_0x577c0d=_0x3bc8f9[_0x1bc4('0x1c')],_0x340368=_0x3bc8f9[_0x1bc4('0x24')][_0x1bc4('0x64')](_0x1bc4('0x2d')),_0xe9a09c=_0x3bc8f9[_0x1bc4('0x24')][_0x1bc4('0x64')](_0x1bc4('0x18')),_0x361d41=_0x3bc8f9[_0x1bc4('0x24')][_0x1bc4('0x64')](_0x1bc4('0x55')),_0x11d48b=_0x3bc8f9[_0x1bc4('0x24')][_0x1bc4('0x64')](_0x2cee90)['me'],_0x2a145b=_0x577c0d[_0x1bc4('0x64')]('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3bc531,CommentThreadInputView:_0x2f62c3}=_0x3bc8f9[_0x1bc4('0x24')][_0x1bc4('0x64')]('CommentsUI');let _0x64d93b,_0x12e2ba;this[_0x1bc4('0xa')][_0x1bc4('0x10')](_0x4bc602['id'])?(_0x12e2ba=this[_0x1bc4('0xa')]['get'](_0x4bc602['id']),_0x64d93b=_0x12e2ba['mainView']):(_0x64d93b=new _0x2a145b(_0x3bc8f9[_0x1bc4('0x22')],_0x4bc602,_0x11d48b,{'disableComments':this['_disableComments'],'editorConfig':_0x577c0d[_0x1bc4('0x64')](_0x1bc4('0x60')),'maxCommentsWhenCollapsed':_0x577c0d[_0x1bc4('0x64')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x577c0d['get'](_0x1bc4('0x1f')),'maxCommentCharsWhenCollapsed':_0x577c0d[_0x1bc4('0x64')](_0x1bc4('0x3f')),'formatDateTime':_0x4c3bf2(_0x577c0d[_0x1bc4('0x64')]('locale')),'CommentView':_0x577c0d[_0x1bc4('0x64')](_0x1bc4('0x2f'))[_0x1bc4('0x1a')],'CommentsListView':_0x3bc531,'CommentThreadInputView':_0x2f62c3}),_0x64d93b['acceptButton']['on'](_0x1bc4('0x2'),()=>{_0x3bc8f9[_0x1bc4('0xb')][_0x1bc4('0x59')]['focus']();}),_0x64d93b[_0x1bc4('0x39')]['on'](_0x1bc4('0x2'),()=>{_0x3bc8f9[_0x1bc4('0xb')][_0x1bc4('0x59')][_0x1bc4('0x3b')]();}),_0x12e2ba=_0x340368['createAnnotationView'](this[_0x1bc4('0x6c')][_0x1bc4('0x22')],_0x64d93b),_0x12e2ba[_0x1bc4('0x3')](_0x1bc4('0x33'))['to'](_0x64d93b,_0x1bc4('0x33')),_0x12e2ba[_0x1bc4('0x3')](_0x1bc4('0x58'))['to'](_0x64d93b),_0x12e2ba[_0x1bc4('0x3')](_0x1bc4('0x4b'))['to'](_0x64d93b,_0x1bc4('0x4b'),_0x30a599=>_0x1bc4('0x32')+_0x30a599),this['_annotationViews']['set'](_0x4bc602['id'],_0x12e2ba));const _0xb8e803=_0xe9a09c[_0x1bc4('0x36')](_0x4bc602['commentThread'],_0x64d93b),_0x464bfe=new _0x473578(_0x3bc8f9,_0x4bc602,_0x64d93b,_0xb8e803),_0x2d7c59=_0x4bc602[_0x1bc4('0x3d')]()['filter'](_0xa40bd3=>_0xa40bd3[_0x1bc4('0x4e')]);_0x64d93b[_0x1bc4('0x54')]=_0x3bc8f9[_0x1bc4('0x24')][_0x1bc4('0x64')](_0x1bc4('0x1e'))[_0x1bc4('0x28')]['getDescriptions'](_0x2d7c59),this['_suggestionToController'][_0x1bc4('0x23')](_0x4bc602,_0x464bfe),this['_viewToController'][_0x1bc4('0x23')](_0x64d93b,_0x464bfe);const _0xfd1f87=_0x340368[_0x1bc4('0x35')]({'view':_0x12e2ba,'target':()=>{const _0x31c655=[],_0x7e6737=_0x4bc602[_0x1bc4('0x3d')]()['filter'](_0x19a0cb=>_0x19a0cb[_0x1bc4('0x4e')]);for(const _0x3f7f50 of _0x7e6737)_0x31c655[_0x1bc4('0x4')](..._0x3f7f50[_0x1bc4('0x6')]());return _0x4c7f69(_0x3bc8f9[_0x1bc4('0xb')],_0x31c655);},'type':()=>_0x1bc4('0x32')+_0x464bfe[_0x1bc4('0x59')][_0x1bc4('0x4b')]});_0xe9a09c[_0x1bc4('0x1')](_0x64d93b,_0xfd1f87),_0x340368['add'](_0xfd1f87),_0x361d41[_0x1bc4('0x38')](_0xfd1f87);}[_0x1bc4('0x50')](_0x5541cf){const _0x4838aa=this[_0x1bc4('0x6c')][_0x1bc4('0x24')]['get'](_0x1bc4('0x18')),_0x48a8c9=this[_0x1bc4('0x6c')][_0x1bc4('0x24')][_0x1bc4('0x64')]('Annotations'),_0xdc694a=this[_0x1bc4('0xf')]['get'](_0x5541cf),_0x1dfaa7=_0xdc694a[_0x1bc4('0x59')],_0xfab1fe=_0x48a8c9[_0x1bc4('0x14')](_0x1dfaa7);_0x4838aa[_0x1bc4('0x4c')](_0x1dfaa7),_0xfab1fe&&_0x48a8c9[_0x1bc4('0x9')](_0xfab1fe),this[_0x1bc4('0xf')][_0x1bc4('0x66')](_0x5541cf),this[_0x1bc4('0x15')][_0x1bc4('0x66')](_0x1dfaa7),_0xdc694a['destroy']();}[_0x1bc4('0x56')](_0x3beba6){if(!_0x3beba6['isInContent']||!this[_0x1bc4('0xf')]['has'](_0x3beba6))return;const _0x189857=this['editor']['plugins'][_0x1bc4('0x64')](_0x1bc4('0x1e')),_0x582ba1=this[_0x1bc4('0xf')]['get'](_0x3beba6),_0x306b38=_0x3beba6[_0x1bc4('0x3d')]();_0x582ba1['view'][_0x1bc4('0x54')]=_0x189857[_0x1bc4('0x28')][_0x1bc4('0x57')](_0x306b38);}[_0x1bc4('0x53')](){for(const _0x5cd9c7 of this[_0x1bc4('0xf')][_0x1bc4('0x6a')]())this[_0x1bc4('0x50')](_0x5cd9c7);for(const _0x5a758a of this[_0x1bc4('0xa')][_0x1bc4('0x34')]())_0x5a758a[_0x1bc4('0x65')][_0x1bc4('0x53')]();super[_0x1bc4('0x53')]();}}
|
|
23
|
+
const _0x4f8a=['comments.maxCommentCharsWhenCollapsed','trackChanges','createAnnotationView','type','comments.maxThreadTotalWeight','destroy','comments.maxCommentsWhenCollapsed','_refreshActiveMarkers','execute','toMany','createAnnotation','add','getSuggestion','TrackChangesUI','change:activeAnnotations','buttonView','getMarkers','_createUIButton','addSourceCollector','comments','head','editing','push','innerView','values','get','TrackChangesEditing','comments.editorConfig','requires','filter','descriptionParts','Annotations','SuggestionThreadView','Accept\x20all\x20selected\x20suggestions','_initializeController','value','actionView','suggestion-','pluginName','_handleSuggestionControllerDelayed','unbind','define','delete','EditorAnnotations','some','lowest','acceptButton','getJoined','CommentsRepository','length','change:previous','has','clear','bind','_annotationViews','set','focus','locale','Accept\x20all\x20suggestions','getFirstRange','keys','listenTo','from','commandName','button','_descriptionFactory','_suggestionToController','_updateController','plugins','_unbindEditors','isOn','suggestionUnloaded','_bindAnnotationToEditors','separator','registerAnnotation','arrowView','commands','view','getAllAdjacentSuggestions','isDirty','_disableComments','_destroyController','suggestionLoaded','isEnabled','isInContent','trackChanges.disableComments','refreshSelectedViews','_viewToController','_handleControllerBuffer','getByInnerView','editor','getDescriptions','model','Track\x20changes','mainView','hasSuggestion'];(function(_0x5d0642,_0x4f8a07){const _0x3e40e6=function(_0x10c70f){while(--_0x10c70f){_0x5d0642['push'](_0x5d0642['shift']());}};_0x3e40e6(++_0x4f8a07);}(_0x4f8a,0x1eb));const _0x3e40=function(_0x5d0642,_0x4f8a07){_0x5d0642=_0x5d0642-0x0;let _0x3e40e6=_0x4f8a[_0x5d0642];return _0x3e40e6;};import{Plugin as _0x20fee2}from'ckeditor5/src/core';import{Collection as _0x1916ed}from'ckeditor5/src/utils';import{Model as _0x385836,SplitButtonView as _0x1673d0,createDropdown as _0x3e17dc,addListToDropdown as _0x81838f}from'ckeditor5/src/ui';import{Users as _0xf73ff8,getDateTimeFormatter as _0x1b8af2,getAllMarkersDomElementsSorted as _0x1650aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x21187d from'./trackchangesediting';import _0x542a66 from'./ui/suggestioncontroller';import _0x490e79 from'./ui/view/suggestionthreadview';import{getTranslation as _0xe79c4c}from'./utils/common-translations';import _0x5986e2 from'../theme/icons/track-changes.svg';export default class d extends _0x20fee2{static get[_0x3e40('0x11')](){return[_0x21187d,_0xf73ff8,_0x3e40('0x25'),_0x3e40('0x14'),_0x3e40('0x20')];}static get[_0x3e40('0x1b')](){return _0x3e40('0x2');}constructor(_0xe51d49){super(_0xe51d49),this[_0x3e40('0x37')]=new Map(),this['_viewToController']=new Map(),this[_0x3e40('0x2b')]=new Map(),this[_0x3e40('0x4d')]=new Map();const _0x5d62e0=this['editor']['config'];_0x5d62e0[_0x3e40('0x1e')]('trackChanges.SuggestionThreadView',_0x490e79),_0x5d62e0['define'](_0x3e40('0x4a'),!0x1),this['_disableComments']=_0x5d62e0[_0x3e40('0xe')](_0x3e40('0x4a'));}[_0x3e40('0x1c')](_0x23b033,_0x80b762){0x0===this[_0x3e40('0x4d')]['size']&&setTimeout(()=>{for(const [_0x27325b,_0x1dcf45]of this[_0x3e40('0x4d')]){const _0x2df3b5=this['_suggestionToController'][_0x3e40('0x28')](_0x27325b);_0x2df3b5||_0x1dcf45?_0x2df3b5&&_0x1dcf45&&this[_0x3e40('0x46')](_0x27325b):this[_0x3e40('0x17')](_0x27325b);}this[_0x3e40('0x4f')][_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x20'))[_0x3e40('0x4b')](),this[_0x3e40('0x5c')](),this[_0x3e40('0x4d')][_0x3e40('0x29')]();},0xa),this['_handleControllerBuffer'][_0x3e40('0x2c')](_0x23b033,_0x80b762);}['init'](){const _0x3b64a4=this[_0x3e40('0x4f')],_0x3487c7=_0x3b64a4['plugins']['get']('TrackChangesEditing'),_0x496f65=_0x3b64a4[_0x3e40('0x39')]['get']('Annotations'),_0xc68643=_0x3b64a4['plugins']['get'](_0x3e40('0x20')),_0x475395=_0x3b64a4[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x25'));_0x3b64a4['ui']['componentFactory']['add'](_0x3e40('0x56'),_0x5dcd36=>this[_0x3e40('0x6')](_0x5dcd36)),_0xc68643[_0x3e40('0x7')](()=>{const _0x59ec43=[];for(const [_0x4fdeb2,_0x4706e9]of Array[_0x3e40('0x33')](this[_0x3e40('0x37')])){const _0xb2a31c=_0x4fdeb2['getAllAdjacentSuggestions'](),_0x542a32=[];for(const _0x508484 of _0xb2a31c){if(!_0x508484[_0x3e40('0x49')])continue;if(_0x508484['isMultiRange']){_0x542a32['push'](..._0x508484['getRanges']());continue;}const _0x4c3a35=_0x508484[_0x3e40('0x30')]();if(_0x542a32[_0x3e40('0x26')]>0x0){const _0x584b37=_0x542a32[0x0][_0x3e40('0x24')](_0x4c3a35);if(_0x584b37){_0x542a32[0x0]=_0x584b37;continue;}}_0x542a32[_0x3e40('0xb')](_0x4c3a35);}_0x59ec43['push']([_0x4706e9[_0x3e40('0x42')],_0x542a32]);}return _0x59ec43;}),this[_0x3e40('0x32')](_0x3487c7,_0x3e40('0x47'),(_0x56fcb9,_0x532630)=>{this[_0x3e40('0x32')](_0x532630,_0x3e40('0x27'),(_0x16c0c2,_0x559508,_0x147a74,_0x381f9a)=>{_0x532630[_0x3e40('0x49')]&&(null==_0x147a74?(this[_0x3e40('0x38')](_0x381f9a[_0x3e40('0x9')]),this['_handleSuggestionControllerDelayed'](_0x532630,!0x1)):(this[_0x3e40('0x38')](_0x147a74[_0x3e40('0x9')]),this[_0x3e40('0x1c')](_0x532630,!0x0)));}),null===_0x532630['previous']?this[_0x3e40('0x1c')](_0x532630,!0x1):this[_0x3e40('0x38')](_0x532630['head']);}),this[_0x3e40('0x32')](_0x3487c7,_0x3e40('0x3c'),(_0x449347,_0x1b6495,_0x163b08)=>{this['stopListening'](_0x1b6495,'change:previous'),this['_handleControllerBuffer'][_0x3e40('0x1f')](_0x1b6495);const _0x1f55af=_0x163b08?_0x163b08[_0x3e40('0x9')]:_0x1b6495,_0x3ac98e=this['_suggestionToController'][_0x3e40('0xe')](_0x1f55af);null!==_0x163b08&&this[_0x3e40('0x38')](_0x1f55af),null===_0x163b08&&_0x3ac98e&&this[_0x3e40('0x46')](_0x1b6495);}),this[_0x3e40('0x32')](_0x3487c7,'suggestionChanged',(_0x34519c,_0x7b7b50)=>{this[_0x3e40('0x38')](_0x7b7b50);}),this[_0x3e40('0x32')](_0x496f65,_0x3e40('0x3'),()=>{this['_refreshActiveMarkers']();}),this[_0x3e40('0x32')](_0x475395,'addComment',(_0x4053a8,{threadId:_0x2893ae,isFromAdapter:_0x49ec28})=>{if(_0x49ec28||!_0x3487c7[_0x3e40('0x54')](_0x2893ae))return;const _0x53e097=_0x3487c7[_0x3e40('0x1')](_0x2893ae);this[_0x3e40('0x37')][_0x3e40('0xe')](_0x53e097)['view'][_0x3e40('0x2d')]();},{'priority':_0x3e40('0x22')});}[_0x3e40('0x5c')](){const _0x26556d=this[_0x3e40('0x4f')]['plugins'][_0x3e40('0xe')](_0x3e40('0x14')),_0x57041f=this[_0x3e40('0x4f')]['plugins'][_0x3e40('0xe')](_0x3e40('0xf')),_0x9f3714=Array['from'](_0x26556d['activeAnnotations'],_0x677053=>_0x677053[_0x3e40('0xc')])[_0x3e40('0x12')](_0x216766=>this['_viewToController'][_0x3e40('0x28')](_0x216766)),_0x4a53fc=[];for(const _0x280236 of _0x9f3714){const _0x4bcbcb=this['_viewToController'][_0x3e40('0xe')](_0x280236)[_0x3e40('0x51')][_0x3e40('0x43')]();_0x4a53fc['push'](..._0x4bcbcb['reduce']((_0x11970e,_0x54d869)=>[..._0x11970e,..._0x54d869['getMarkerNames']()],[]));}_0x57041f['activeMarkers']=_0x4a53fc;}[_0x3e40('0x6')](_0x510dd0){const _0x22ad15=_0x3e17dc(_0x510dd0,_0x1673d0),_0x5e7a3e=this[_0x3e40('0x4f')][_0x3e40('0x41')][_0x3e40('0xe')](_0x3e40('0x56')),_0x4b1b3c=_0xe79c4c(_0x510dd0,_0x3e40('0x52'));_0x22ad15[_0x3e40('0x4')][_0x3e40('0x2c')]({'tooltip':_0x4b1b3c,'label':_0x4b1b3c,'icon':_0x5986e2}),_0x22ad15[_0x3e40('0x4')][_0x3e40('0x2a')](_0x3e40('0x3b'))['to'](_0x5e7a3e,_0x3e40('0x18')),_0x22ad15[_0x3e40('0x4')]['on'](_0x3e40('0x5d'),()=>{_0x5e7a3e['execute'](),this[_0x3e40('0x4f')][_0x3e40('0xa')][_0x3e40('0x42')][_0x3e40('0x2d')]();});const _0x66471d=new _0x1916ed(),_0x39783f=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4b1b3c,'commandName':_0x3e40('0x56')}},{'type':_0x3e40('0x3e')},{'type':_0x3e40('0x35'),'model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,_0x3e40('0x2f')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,_0x3e40('0x16')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x3e40('0x35'),'model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x3fbac5 of _0x39783f){let _0x281d4b={'type':'separator'};if(_0x3fbac5[_0x3e40('0x51')]){const _0x2d3c06=new _0x385836(_0x3fbac5['model']),_0x517f51=this[_0x3e40('0x4f')][_0x3e40('0x41')][_0x3e40('0xe')](_0x2d3c06[_0x3e40('0x34')]);_0x2d3c06['bind'](_0x3e40('0x3b'),_0x3e40('0x48'))['to'](_0x517f51,_0x3e40('0x18'),_0x3e40('0x48')),_0x281d4b={'type':_0x3fbac5[_0x3e40('0x58')],'model':_0x2d3c06};}_0x66471d[_0x3e40('0x0')](_0x281d4b);}_0x81838f(_0x22ad15,_0x66471d);const _0x17ef21=_0x39783f[_0x3e40('0x12')](_0x4d3555=>null!=_0x4d3555[_0x3e40('0x51')])['map'](_0x5e8d6d=>this['editor'][_0x3e40('0x41')][_0x3e40('0xe')](_0x5e8d6d[_0x3e40('0x51')][_0x3e40('0x34')])),_0x19086a=_0x22ad15[_0x3e40('0x4')];return _0x19086a[_0x3e40('0x19')][_0x3e40('0x1d')](_0x3e40('0x48')),_0x19086a[_0x3e40('0x40')][_0x3e40('0x1d')](_0x3e40('0x48')),_0x19086a[_0x3e40('0x19')]['bind'](_0x3e40('0x48'))['to'](_0x5e7a3e,'isEnabled'),_0x19086a[_0x3e40('0x40')][_0x3e40('0x2a')]('isEnabled')[_0x3e40('0x5e')](_0x17ef21,_0x3e40('0x48'),(..._0x4a1673)=>_0x4a1673[_0x3e40('0x21')](_0x3c3e49=>_0x3c3e49)),_0x22ad15['on']('execute',_0x3b7740=>{this[_0x3e40('0x4f')][_0x3e40('0x5d')](_0x3b7740['source'][_0x3e40('0x34')]),this[_0x3e40('0x4f')][_0x3e40('0xa')][_0x3e40('0x42')][_0x3e40('0x2d')]();}),_0x22ad15;}[_0x3e40('0x17')](_0x260aea){const _0x3f3bd9=this['editor'],_0x4e6a30=_0x3f3bd9['config'],_0x13b1d3=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x14')),_0x3f62f6=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x25')),_0x5b23bb=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x20')),_0xe085d9=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0xf73ff8)['me'],_0xed7496=_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x56'))[_0x3e40('0x15')],{CommentsListView:_0xc669e2,CommentThreadInputView:_0x2441d5}=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')]('CommentsUI');let _0x516440,_0x3bbaf0;this[_0x3e40('0x2b')]['has'](_0x260aea['id'])?(_0x3bbaf0=this[_0x3e40('0x2b')][_0x3e40('0xe')](_0x260aea['id']),_0x516440=_0x3bbaf0[_0x3e40('0x53')]):(_0x516440=new _0xed7496(_0x3f3bd9[_0x3e40('0x2e')],_0x260aea,_0xe085d9,{'disableComments':this[_0x3e40('0x45')],'editorConfig':_0x4e6a30['get'](_0x3e40('0x10')),'maxCommentsWhenCollapsed':_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x5b')),'maxThreadTotalWeight':_0x4e6a30['get'](_0x3e40('0x59')),'maxCommentCharsWhenCollapsed':_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x55')),'formatDateTime':_0x1b8af2(_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x2e'))),'CommentView':_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x8'))['CommentView'],'CommentsListView':_0xc669e2,'CommentThreadInputView':_0x2441d5}),_0x516440[_0x3e40('0x23')]['on'](_0x3e40('0x5d'),()=>{_0x3f3bd9[_0x3e40('0xa')][_0x3e40('0x42')]['focus']();}),_0x516440['discardButton']['on']('execute',()=>{_0x3f3bd9[_0x3e40('0xa')][_0x3e40('0x42')][_0x3e40('0x2d')]();}),_0x3bbaf0=_0x13b1d3[_0x3e40('0x57')](this[_0x3e40('0x4f')][_0x3e40('0x2e')],_0x516440),_0x3bbaf0[_0x3e40('0x2a')](_0x3e40('0x44'))['to'](_0x516440,'isDirty'),_0x3bbaf0['bind'](_0x3e40('0x26'))['to'](_0x516440),_0x3bbaf0[_0x3e40('0x2a')](_0x3e40('0x58'))['to'](_0x516440,_0x3e40('0x58'),_0x12fa0f=>_0x3e40('0x1a')+_0x12fa0f),this[_0x3e40('0x2b')][_0x3e40('0x2c')](_0x260aea['id'],_0x3bbaf0));const _0x116858=_0x3f62f6['createCommentThreadController'](_0x260aea['commentThread'],_0x516440),_0xce900a=new _0x542a66(_0x3f3bd9,_0x260aea,_0x516440,_0x116858),_0x4302fb=_0x260aea[_0x3e40('0x43')]()['filter'](_0x3383d7=>_0x3383d7[_0x3e40('0x49')]);_0x516440['descriptionParts']=_0x3f3bd9[_0x3e40('0x39')]['get'](_0x3e40('0xf'))[_0x3e40('0x36')][_0x3e40('0x50')](_0x4302fb),this[_0x3e40('0x37')][_0x3e40('0x2c')](_0x260aea,_0xce900a),this[_0x3e40('0x4c')][_0x3e40('0x2c')](_0x516440,_0xce900a);const _0x510b87=_0x13b1d3[_0x3e40('0x5f')]({'view':_0x3bbaf0,'target':()=>{const _0xb030d=[],_0x5e6a6d=_0x260aea[_0x3e40('0x43')]()[_0x3e40('0x12')](_0x38bec3=>_0x38bec3[_0x3e40('0x49')]);for(const _0x2f4f39 of _0x5e6a6d)_0xb030d['push'](..._0x2f4f39[_0x3e40('0x5')]());return _0x1650aa(_0x3f3bd9[_0x3e40('0xa')],_0xb030d);},'type':()=>_0x3e40('0x1a')+_0xce900a[_0x3e40('0x42')][_0x3e40('0x58')]});_0x3f62f6[_0x3e40('0x3d')](_0x516440,_0x510b87),_0x13b1d3[_0x3e40('0x0')](_0x510b87),_0x5b23bb[_0x3e40('0x3f')](_0x510b87);}['_destroyController'](_0x1c9cd4){const _0x2da080=this[_0x3e40('0x4f')]['plugins'][_0x3e40('0xe')](_0x3e40('0x25')),_0x5b81ed=this[_0x3e40('0x4f')][_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x14')),_0x29e1f3=this[_0x3e40('0x37')][_0x3e40('0xe')](_0x1c9cd4),_0x557e25=_0x29e1f3[_0x3e40('0x42')],_0x2e83af=_0x5b81ed[_0x3e40('0x4e')](_0x557e25);_0x2da080[_0x3e40('0x3a')](_0x557e25),_0x2e83af&&_0x5b81ed['remove'](_0x2e83af),this[_0x3e40('0x37')][_0x3e40('0x1f')](_0x1c9cd4),this[_0x3e40('0x4c')][_0x3e40('0x1f')](_0x557e25),_0x29e1f3[_0x3e40('0x5a')]();}[_0x3e40('0x38')](_0x2f6438){if(!_0x2f6438['isInContent']||!this[_0x3e40('0x37')][_0x3e40('0x28')](_0x2f6438))return;const _0xc8bae4=this[_0x3e40('0x4f')][_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0xf')),_0x22df9f=this[_0x3e40('0x37')][_0x3e40('0xe')](_0x2f6438),_0xf5a4bc=_0x2f6438[_0x3e40('0x43')]();_0x22df9f[_0x3e40('0x42')][_0x3e40('0x13')]=_0xc8bae4[_0x3e40('0x36')][_0x3e40('0x50')](_0xf5a4bc);}['destroy'](){for(const _0xba9e9c of this[_0x3e40('0x37')][_0x3e40('0x31')]())this[_0x3e40('0x46')](_0xba9e9c);for(const _0x5b0554 of this[_0x3e40('0x2b')][_0x3e40('0xd')]())_0x5b0554[_0x3e40('0x53')][_0x3e40('0x5a')]();super[_0x3e40('0x5a')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4be1=['destroy','acceptSuggestion','canDiscard','get','unbind','plugins','_pendingAction','commentThreadController','canAccept','locale','_editor','_acceptCommand','change:isDirty','execute','_removePendingAction','view','PendingActions','discardSuggestion','listenTo','canEditAt','_setPendingAction','_discardCommand','bind','PENDING_ACTION_SUGGESTION','getRanges','isEnabled','commands','isDirty','model'];(function(_0x1d20c1,_0x4be105){const _0x1a15a8=function(_0x41ac7d){while(--_0x41ac7d){_0x1d20c1['push'](_0x1d20c1['shift']());}};_0x1a15a8(++_0x4be105);}(_0x4be1,0xde));const _0x1a15=function(_0x1d20c1,_0x4be105){_0x1d20c1=_0x1d20c1-0x0;let _0x1a15a8=_0x4be1[_0x1d20c1];return _0x1a15a8;};import{ObservableMixin as _0x428061}from'ckeditor5/src/utils';import{getTranslation as _0xf50e3c}from'../utils/common-translations';export default class Gt extends _0x428061(){constructor(_0x32754b,_0x48754a,_0x1c0009,_0x5f08d2){super(),this[_0x1a15('0x9')]=_0x48754a,this[_0x1a15('0x19')]=_0x1c0009,this['commentThreadController']=_0x5f08d2,this['_editor']=_0x32754b,this[_0x1a15('0x15')]=_0x32754b[_0x1a15('0x7')][_0x1a15('0xd')](_0x1a15('0xb')),this[_0x1a15('0x2')]=_0x32754b[_0x1a15('0x7')]['get'](_0x1a15('0x1b')),this[_0x1a15('0x19')][_0x1a15('0x3')](_0x1a15('0x6'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4bd85f,_0xe86206)=>_0x4bd85f||_0xe86206),this[_0x1a15('0x19')][_0x1a15('0x3')](_0x1a15('0x12'))['to'](this[_0x1a15('0x15')],_0x1a15('0x6'),_0x2a4c5d=>_0x2a4c5d&&this[_0x1a15('0x14')]['model'][_0x1a15('0x0')](_0x48754a[_0x1a15('0x5')]())),this['view'][_0x1a15('0x3')](_0x1a15('0xc'))['to'](this[_0x1a15('0x2')],_0x1a15('0x6'),_0x12731a=>_0x12731a&&this[_0x1a15('0x14')][_0x1a15('0x9')][_0x1a15('0x0')](_0x48754a[_0x1a15('0x5')]())),this['_pendingAction']=null,_0x1c0009[_0x1a15('0x8')]&&this[_0x1a15('0x1')](),this[_0x1a15('0x1c')](_0x1c0009,_0x1a15('0xb'),()=>this[_0x1a15('0xb')]()),this[_0x1a15('0x1c')](_0x1c0009,_0x1a15('0x1b'),()=>this[_0x1a15('0x1b')]()),this[_0x1a15('0x1c')](_0x1c0009,_0x1a15('0x16'),()=>{_0x1c0009[_0x1a15('0x8')]?this[_0x1a15('0x1')]():this[_0x1a15('0x18')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1a15('0x17')](this['model']['id']);}[_0x1a15('0x1b')](){this[_0x1a15('0x2')][_0x1a15('0x17')](this[_0x1a15('0x9')]['id']);}['destroy'](){this[_0x1a15('0x19')][_0x1a15('0xe')](_0x1a15('0x6')),this[_0x1a15('0x19')][_0x1a15('0xe')]('canAccept'),this[_0x1a15('0x19')][_0x1a15('0xe')](_0x1a15('0xc')),this['stopListening'](),this[_0x1a15('0x11')][_0x1a15('0xa')](),this['_pendingAction']&&this[_0x1a15('0x18')]();}[_0x1a15('0x1')](){const _0x21eb0a=_0xf50e3c(this[_0x1a15('0x14')][_0x1a15('0x13')],_0x1a15('0x4'));this[_0x1a15('0x10')]=this['_editor']['plugins']['get'](_0x1a15('0x1a'))['add'](_0x21eb0a);}[_0x1a15('0x18')](){null!==this[_0x1a15('0x10')]&&this[_0x1a15('0x14')][_0x1a15('0xf')][_0x1a15('0xd')]('PendingActions')['remove'](this[_0x1a15('0x10')]),this['_pendingAction']=null;}}
|