@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230814.0 → 0.0.0-nightly-20230816.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/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.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 _0x2e6f=['position','getAttribute','elementToElement','addClass','markBlockFormat','_commentsRepository','_customCallbacks','howMany','isDocumentOperation','_addThreadToSuggestion','filter','addUser','marker-count','registerPostFixer','rootName','insertContent','change:data','type','_enabledCommands','setSelection','documentSelection','deletion:discard','writer','substr','unbind','createPositionAfter','isUndo','requires','collaboration.channelId','change:_saved','fire','getShiftedBy','getSuggestions','insertion:','addSuggestion','change:activeMarkers','isBefore','locale','model','some','_createSuggestion','hasCommentThread','_setSuggestionRange','stopListening','CommentsRepository','get','isIntersectingWithRange','editor','_onDiscard','formatInline','isEqual','_getSuggestionData','item','isOwn','_rangeIsInLocalUserInsertion','value','createRange','commands','acceptAllSuggestions','forward','markerName','setTo','markMultiRangeBlockFormat','formatBlock:chain','from','trackChanges.trackFormatChanges','lowest','fromCharCode','execute','upcast','_refreshSuggestionsChain','change','range','formatBlock','getRanges','deletion','size','addRange','getUser','start','isLimit','track-changes-user-not-found','hasSuggestion','consumable','_adapter','_breakSuggestionMarker','addCommentThread','getCustomProperty','isCollapsed','_addSuggestionMarker','_model','isObject','schema','widget','values','splitPosition','batch','_trackFormatChanges','_cutOutSuggestionMarker','createPositionBefore','rejected','removeClass','editingDowncast','accepted','return','sort','differ','enableReadOnlyMode','isInContent','dataReady','stop','toJSON','markerToData','insertion:chain','getNearestSelectionRange','PENDING_ACTION_SUGGESTION','createdAt','_setSuggestionData','suggestionChanged','trackChangesCommand','forceDefaultExecution','high','getSuggestionCallback','_getExternalAuthor','getChanges','originalSuggestionId','then','markerReady','formatGroupId','getItems','_joinWithAdjacentSuggestions','backward','trackChanges','deletion:join','addMarkerName','newRange','group','_editor','normal','refresh','accept','isRemovable','isAtStart','suggestion-type','buildSuggestion','isExternal','getMultiRangeId','ck-suggestion-marker-formatBlock','isTouching','nodeBefore','getFirstMarker','markDeletion','markMultiRangeInsertion','removeMarker:suggestion:formatBlock','config','multi','name','createRangeIn','define','moveTargetPosition','addComment','updateMarker','suggestion:','isSelectable','deletion:','getAncestors','removeMarker','getSuggestion','isAtEnd','notReady','detach','external:','set','update:suggestion','deleteContent','elementEnd','parent','insertion','$marker','containsRange','map','isLocal','_mergeNestedSuggestions','formatInline:','track-changes-command-not-found','dataDowncast','_saved','Users','@external','resolve','skipNestingCheck','_getAuthorFromId','_suggestionFactory','consume','getIntersection','subType','creator','delete','getFirstRange','oldRange','_defaultCallbacks','addHighlight','element','options','plugins','addSuggestionData','ck-suggestion-marker','markers','$graveyard','markerNameToElements','toViewElement','mapper','splice','_suggestions','document','getDifference','updateSuggestion','before','deletion:chain','deletion:accept','selection','authoredAt','default','formatBlock:','catch','_registerDefaultCallbacks','conversion','showSuggestionHighlights','acceptSuggestion','ck-suggestion-marker--active','PendingActions','containsPosition','_findSuggestions','length','clone','_checkSuggestionCorrectness','getWalker','createElement','add','_descriptionFactory','author','hasComments','always','every','_isForcedDefaultExecutionBlock','low','next','suggestion','ck-suggestion-marker-','isInsideObject','split','track-changes-suggestion-not-found','isBlock','activeMarkers','markInsertion','markInlineFormat','discardAllSuggestions','acceptSelectedSuggestions','_suggestionState','end','attributes','removeAttribute','targetPosition','fetchCommentThread','markerToHighlight','join','commentThread','insert','removeMarkers','error-saving-suggestion-data-suggestion-discarded','editing','after','commandName','createPositionAt','push','never','isMultiRange','getLastMatchingPosition','for','_handleNewSuggestionMarker','addMarker:suggestion','authorName','isNextTo','track-changes-adapter-missing-getsuggestion','discardSuggestion','unbindElementFromMarkerName','enqueueChange','has','_splitMarkerName','_updateSuggestionData','containsRangeInObject','discard','dataToMarker','nodeAfter','adapter','includes','ready','clear','listenTo','insertion:join','enableCommand','_removeSuggestion','track-changes-suggestion-data-mismatch','discardSelectedSuggestions','elementStart','root','trackChanges.mergeNestedSuggestions','suggestionLoaded','removed','addMarker','$textProxy','formatBlock:discard','_joinSuggestions','formatInline:join','fromRange','previous','data','remove','multipleBlocks','track-changes-adapter-already-set','head','getChangedMarkers','formatInline:accept','formatInline:discard','isAfter','removeComment'];(function(_0x121598,_0x2e6fc6){const _0x14cbcd=function(_0x4af257){while(--_0x4af257){_0x121598['push'](_0x121598['shift']());}};_0x14cbcd(++_0x2e6fc6);}(_0x2e6f,0xb0));const _0x14cb=function(_0x121598,_0x2e6fc6){_0x121598=_0x121598-0x0;let _0x14cbcd=_0x2e6f[_0x121598];return _0x14cbcd;};import{Plugin as _0x314560,PendingActions as _0x3ae309}from'ckeditor5/src/core';import{LiveRange as _0x5dc836}from'ckeditor5/src/engine';import{CKEditorError as _0x34b54d,uid as _0x5690e6,priorities as _0x2bde68,logWarning as _0x408e6a}from'ckeditor5/src/utils';import{toWidget as _0x5ba8d2}from'ckeditor5/src/widget';import{Users as _0x46a6cc,hashObject as _0x1f4e06}from'ckeditor5-collaboration/src/collaboration-core';import _0x10a2c0 from'./commands/trackchangescommand';import _0x4c0e84 from'./commands/acceptsuggestioncommand';import _0x1bcbea from'./commands/discardsuggestioncommand';import _0x33e086 from'./commands/executeonallsuggestionscommand';import _0xaf72bb from'./commands/executeonselectedsuggestionscommand';import _0x12b5d0 from'./suggestion';import _0x4865e5 from'./suggestiondescriptionfactory';import _0xb53ee5 from'./integrations/alignment';import _0x489376 from'./integrations/basicstyles';import _0x3fbc65 from'./integrations/blockquote';import _0x25085d from'./integrations/ckbox';import _0x396cd4 from'./integrations/codeblock';import _0x58cd8d from'./integrations/comments';import _0x2510c5 from'./integrations/deletecommand';import _0x5201a4 from'./integrations/documentlist';import _0x4deb3c from'./integrations/entercommand';import _0x127e0f from'./integrations/findandreplace';import _0x493bb1 from'./integrations/font';import _0x410c5d from'./integrations/formatpainter';import _0x1cbfd5 from'./integrations/heading';import _0x263dc7 from'./integrations/highlight';import _0x57bc33 from'./integrations/horizontalline';import _0x11bf40 from'./integrations/htmlembed';import _0x58f29a from'./integrations/image';import _0x31d358 from'./integrations/imagereplace';import _0x73fcfb from'./integrations/importword';import _0x3f7773 from'./integrations/indent';import _0x471ba6 from'./integrations/inputcommand';import _0x4d3e4f from'./integrations/link';import _0x28c46d from'./integrations/list';import _0x5771e0 from'./integrations/listproperties';import _0x562cf5 from'./integrations/mediaembed';import _0x5494a2 from'./integrations/mention';import _0x26af03 from'./integrations/pagebreak';import _0x597637 from'./integrations/paragraph';import _0xa6ba5e from'./integrations/removeformat';import _0x3e697d from'./integrations/restrictededitingmode';import _0x41d680 from'./integrations/shiftentercommand';import _0x5c0bb0 from'./integrations/standardeditingmode';import _0x2f6673 from'./integrations/style';import _0x3f14e1 from'./integrations/table';import _0x575762 from'./integrations/tablemergesplit';import _0x44da4c from'./integrations/tableheadings';import _0x15b118 from'./integrations/tableclipboard';import _0x1a1d98 from'./integrations/tablecolumnresize';import _0x3bbaeb from'./integrations/template';import _0x387566 from'./integrations/tableofcontents';import _0x4c9260 from'./integrations/title';import _0x3f26ff from'./integrations/undo';import{getTranslation as _0x459574}from'./utils/common-translations';import _0x51d43f from'./integrations/tablecaption';import _0x33848a from'./integrations/documentlistproperties';import _0x517423 from'./integrations/tableproperties';export default class p extends _0x314560{static get[_0x14cb('0xb1')](){return[_0x14cb('0xc2'),_0x46a6cc,_0x3ae309,_0xb53ee5,_0x489376,_0x3fbc65,_0x25085d,_0x396cd4,_0x58cd8d,_0x2510c5,_0x5201a4,_0x33848a,_0x4deb3c,_0x127e0f,_0x493bb1,_0x410c5d,_0x1cbfd5,_0x263dc7,_0x57bc33,_0x11bf40,_0x58f29a,_0x31d358,_0x73fcfb,_0x3f7773,_0x471ba6,_0x4d3e4f,_0x28c46d,_0x5771e0,_0x562cf5,_0x5494a2,_0x26af03,_0x597637,_0xa6ba5e,_0x3e697d,_0x41d680,_0x5c0bb0,_0x2f6673,_0x3f14e1,_0x575762,_0x44da4c,_0x51d43f,_0x15b118,_0x1a1d98,_0x387566,_0x517423,_0x3bbaeb,_0x4c9260,_0x3f26ff];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5c459d){function _0x16b2e8(_0xbe3470){return _0xbe3470['map'](_0x425253=>String[_0x14cb('0xd9')](_0x425253))[_0x14cb('0x59')]('');}super(_0x5c459d),this[_0x14cb('0x142')](_0x14cb('0x4d'),[]),this['on'](_0x14cb('0xb9'),(_0x2eaea1,_0x3e9db1,_0x2f2d85,_0x55f911)=>{this[_0x14cb('0xf0')][_0x14cb('0xdd')](()=>{for(const _0x2085d2 of[..._0x55f911,..._0x2f2d85])this[_0x14cb('0xf0')]['markers'][_0x14cb('0x6f')](_0x2085d2)&&_0x5c459d[_0x14cb('0x5e')]['reconvertMarker'](_0x2085d2);});}),this[_0x14cb('0x3f')]=new _0x4865e5(this['editor'][_0x14cb('0xbc')][_0x14cb('0xf2')],this[_0x14cb('0xc5')][_0x14cb('0xbb')]),this[_0x14cb('0xea')]=null,this[_0x14cb('0x10')]=new Dt(this['editor']),this[_0x14cb('0x25')]=new Map(),this[_0x14cb('0x9b')]=_0x5c459d['plugins'][_0x14cb('0xc3')](_0x14cb('0xc2')),this[_0x14cb('0xa8')]=new Set(),this[_0x14cb('0xf0')]=this['editor'][_0x14cb('0xbc')],this[_0x14cb('0x52')]=new WeakMap(),this[_0x14cb('0x44')]=!0x1,_0x5c459d[_0x14cb('0x130')][_0x14cb('0x134')](_0x14cb('0xd7'),_0x14cb('0x2e')),this[_0x14cb('0xf7')]=_0x5c459d[_0x14cb('0x130')][_0x14cb('0xc3')](_0x14cb('0xd7')),_0x5c459d[_0x14cb('0x130')][_0x14cb('0x134')](_0x14cb('0x82'),!0x0),this[_0x14cb('0x6')]=_0x5c459d['config'][_0x14cb('0xc3')](_0x14cb('0x82')),this[_0x14cb('0x10d')]=new _0x10a2c0(_0x5c459d,this[_0x14cb('0xa8')]),this[_0x16b2e8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x16b2e8([0x34,0x30,0x34,0x36,0x31,0x36,0x32,0x38]);}['init'](){const _0x4f5fbd=this[_0x14cb('0xc5')];_0x4f5fbd[_0x14cb('0x32')][_0x14cb('0x66')]('editingDowncast')[_0x14cb('0x58')]({'model':'suggestion','view':_0x586a52=>{const {id:_0x3fce64,type:_0x1c3655}=this[_0x14cb('0x70')](_0x586a52[_0x14cb('0xd2')]),_0xde394e=[_0x14cb('0x1e'),_0x14cb('0x48')+_0x1c3655];let _0x3ac8e8=0xbb8;return this[_0x14cb('0x4d')][_0x14cb('0x77')](_0x586a52[_0x14cb('0xd2')])&&(_0xde394e['push']('ck-suggestion-marker--active'),_0x3ac8e8=0xbc2),'deletion'==_0x1c3655&&(_0x3ac8e8+=0x5),{'classes':_0xde394e,'attributes':{'data-suggestion':_0x3fce64},'priority':_0x3ac8e8};}}),_0x4f5fbd[_0x14cb('0x32')]['for'](_0x14cb('0x9'))[_0x14cb('0x3e')](_0x5bd9fa=>{_0x5bd9fa['on'](_0x14cb('0x68'),(_0x22b4ef,_0xc41a2e,_0x1f1df6)=>{if(!_0x1f1df6[_0x14cb('0x1b')][_0x14cb('0x33')])return;const _0x3d1226=_0xc41a2e[_0x14cb('0xca')];if(!_0x3d1226)return;const _0x54113a=_0x1f1df6[_0x14cb('0x23')]['toViewElement'](_0x3d1226);_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xf2')]['isObject'](_0x3d1226)&&_0x54113a&&!_0x54113a[_0x14cb('0xed')](_0x14cb('0xf3'))&&_0x54113a['is']('containerElement')&&_0x5ba8d2(_0x54113a,_0x1f1df6[_0x14cb('0xac')]);},{'priority':_0x14cb('0x10f')});}),_0x4f5fbd[_0x14cb('0x32')]['for'](_0x14cb('0x9'))[_0x14cb('0x58')]({'model':_0x14cb('0x47'),'view':(_0x58afe0,_0x353c76)=>{if(!_0x353c76['options'][_0x14cb('0x33')])return null;const {type:_0x4fafbe}=this[_0x14cb('0x70')](_0x58afe0[_0x14cb('0xd2')]);return{'classes':[_0x14cb('0x1e'),_0x14cb('0x48')+_0x4fafbe],'priority':0xbb8};}});const _0x1e0b34=({showActiveMarkers:_0xb345b5=!0x0}={})=>(_0x10d189,_0x5043cc,_0x45a9be)=>{if(!_0x5043cc['item'])return;if(_0x5043cc[_0x14cb('0xca')]['is'](_0x14cb('0x2c')))return void _0x45a9be['consumable'][_0x14cb('0x11')](_0x5043cc[_0x14cb('0xca')],_0x10d189[_0x14cb('0x132')]);const _0xd49a25=_0x45a9be[_0x14cb('0x23')][_0x14cb('0x22')](_0x5043cc['item']);if(!(_0x5043cc[_0x14cb('0xca')]['is'](_0x14cb('0x1a'))&&_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xf2')][_0x14cb('0x4c')](_0x5043cc[_0x14cb('0xca')])&&!_0xd49a25[_0x14cb('0xed')](_0x14cb('0x19'))))return;const {id:_0x1de2b2}=this[_0x14cb('0x70')](_0x5043cc[_0x14cb('0xd2')]);_0x45a9be[_0x14cb('0xac')][_0x14cb('0x99')]([_0x14cb('0x1e'),'ck-suggestion-marker-formatBlock'],_0xd49a25),_0x45a9be[_0x14cb('0xac')]['setAttribute']('data-suggestion',_0x1de2b2,_0xd49a25),_0x45a9be[_0x14cb('0x23')]['bindElementToMarker'](_0xd49a25,_0x5043cc[_0x14cb('0xd2')]),_0xb345b5&&(this[_0x14cb('0x4d')][_0x14cb('0x77')](_0x5043cc[_0x14cb('0xd2')])?_0x45a9be[_0x14cb('0xac')][_0x14cb('0x99')](_0x14cb('0x35'),_0xd49a25):_0x45a9be[_0x14cb('0xac')][_0x14cb('0xfb')](_0x14cb('0x35'),_0xd49a25));for(const _0x3b0360 of _0x4f5fbd['model'][_0x14cb('0x133')](_0x5043cc[_0x14cb('0xca')])[_0x14cb('0x117')]())_0x45a9be[_0x14cb('0xe9')][_0x14cb('0x11')](_0x3b0360,_0x10d189[_0x14cb('0x132')]);_0x45a9be['consumable']['consume'](_0x5043cc[_0x14cb('0xca')],_0x10d189['name']);};_0x4f5fbd[_0x14cb('0x32')]['for'](_0x14cb('0x9'))['add'](_0x5d6269=>{_0x5d6269['on']('addMarker:suggestion:formatBlock',(_0x498da2,_0xedea7a,_0x39d623)=>{_0x39d623['options'][_0x14cb('0x33')]&&_0x1e0b34({'showActiveMarkers':!0x1})(_0x498da2,_0xedea7a,_0x39d623);},{'priority':'highest'});}),_0x4f5fbd['conversion'][_0x14cb('0x66')]('dataDowncast')[_0x14cb('0x106')]({'model':'suggestion','view':(_0x4c848f,_0x56e436)=>_0x56e436['options'][_0x14cb('0x33')]?null:{'group':_0x14cb('0x47'),'name':_0x4c848f[_0x14cb('0xad')](0xb)}}),_0x4f5fbd[_0x14cb('0x32')][_0x14cb('0x66')](_0x14cb('0xdb'))[_0x14cb('0x98')]({'view':{'name':_0x14cb('0x47'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b02d6,{writer:_0x102468})=>{let _0x4312fe=_0x14cb('0x138')+_0x5b02d6[_0x14cb('0x97')](_0x14cb('0x125'))+':'+_0x5b02d6[_0x14cb('0x97')]('id');return _0x5b02d6[_0x14cb('0x97')](_0x14cb('0xa2'))&&(_0x4312fe+=':'+_0x5b02d6[_0x14cb('0x97')](_0x14cb('0xa2'))),_0x102468[_0x14cb('0x3d')](_0x14cb('0x2'),{'data-name':_0x4312fe});}}),_0x4f5fbd[_0x14cb('0x32')]['for'](_0x14cb('0xdb'))[_0x14cb('0x74')]({'view':_0x14cb('0x47')}),_0x4f5fbd['conversion'][_0x14cb('0x66')](_0x14cb('0xfc'))[_0x14cb('0x3e')](_0x26dcd8=>{_0x26dcd8['on']('addMarker:suggestion:formatBlock',_0x1e0b34(),{'priority':'high'});}),_0x4f5fbd[_0x14cb('0x32')]['for']('editingDowncast')[_0x14cb('0x3e')](_0x434216=>{_0x434216['on'](_0x14cb('0x12f'),(_0x1e11f6,_0x16d68f,_0x2b0835)=>{const _0x11ef9b=_0x2b0835[_0x14cb('0x23')][_0x14cb('0x21')](_0x16d68f[_0x14cb('0xd2')]);if(_0x11ef9b)for(const _0x4f18f8 of _0x11ef9b)_0x4f18f8[_0x14cb('0xed')](_0x14cb('0x19'))||(_0x2b0835[_0x14cb('0xac')]['removeClass'](['ck-suggestion-marker',_0x14cb('0x129'),_0x14cb('0x35')],_0x4f18f8),_0x2b0835[_0x14cb('0xac')][_0x14cb('0x55')]('data-suggestion',_0x4f18f8),_0x2b0835[_0x14cb('0x23')][_0x14cb('0x6d')](_0x4f18f8,_0x16d68f[_0x14cb('0xd2')]));},{'priority':_0x14cb('0x10f')});}),_0x4f5fbd[_0x14cb('0xbc')]['document'][_0x14cb('0xa3')](_0x5a3e8a=>{let _0x123e78=!0x1;const _0x1ac71c=Array['from'](_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0x26')][_0x14cb('0x100')][_0x14cb('0x91')]()),_0x9dde5c=new Set();for(const {name:_0x2a8a11,data:_0x413f61}of _0x1ac71c){const {group:_0x5552de,type:_0xcf18f0,id:_0x2635e1}=this['_splitMarkerName'](_0x2a8a11);if(_0x14cb('0x47')!==_0x5552de)continue;const _0x38d623=this['_suggestions'][_0x14cb('0xc3')](_0x2635e1);if(null!=_0x413f61['newRange']){_0x14cb('0xc7')==_0xcf18f0&&(_0x123e78=_0x123e78||Mt(_0x413f61[_0x14cb('0x11d')],_0x2a8a11,_0x5a3e8a,_0x4f5fbd[_0x14cb('0xbc')]['schema']));if(_0x413f61['newRange'][_0x14cb('0xee')]||_0x14cb('0x20')==_0x413f61[_0x14cb('0x11d')][_0x14cb('0x81')]['rootName']||_0x14cb('0xdf')==_0xcf18f0&&!Nt(_0x413f61[_0x14cb('0x11d')])||_0x14cb('0xe1')==_0xcf18f0&&!(!_t(_0x4cbd71=_0x413f61[_0x14cb('0x11d')])&&!function(_0x5d497e){return _0x5d497e['start']['parent']==_0x5d497e[_0x14cb('0x53')][_0x14cb('0x12b')]&&_0x5d497e[_0x14cb('0xe5')][_0x14cb('0x13e')];}(_0x4cbd71)))_0x5a3e8a[_0x14cb('0x13c')](_0x2a8a11),_0x123e78=!0x0;else{if(!_0x38d623||!_0x38d623['isInContent'])continue;_0x9dde5c[_0x14cb('0x3e')](_0x38d623);}}}var _0x4cbd71;return _0x9dde5c[_0x14cb('0xe2')]>0x0&&(_0x123e78=!!this[_0x14cb('0x118')](_0x9dde5c)||_0x123e78),_0x123e78;}),_0x4f5fbd['model']['document']['registerPostFixer'](_0x2dd4c3=>{let _0x436f02=!0x1;for(const _0x87b049 of _0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0x26')][_0x14cb('0x100')][_0x14cb('0x112')]()){if(_0x14cb('0x5b')!=_0x87b049[_0x14cb('0xa7')])continue;const _0x39032f=_0x87b049[_0x14cb('0x96')][_0x14cb('0xb5')](_0x87b049[_0x14cb('0x39')]);if(_0x39032f['isAtEnd'])for(const _0x324e95 of this[_0x14cb('0x25')][_0x14cb('0xf4')]()){if(_0x324e95[_0x14cb('0x64')]||!_0x324e95[_0x14cb('0x102')])continue;if('formatBlock'!=_0x324e95[_0x14cb('0xa7')])continue;const _0x39f3c1=_0x324e95[_0x14cb('0x16')]();if(_0x39f3c1[_0x14cb('0xe5')][_0x14cb('0x0')]!=_0x39f3c1[_0x14cb('0x53')][_0x14cb('0x0')]&&_0x39f3c1[_0x14cb('0x53')][_0x14cb('0xc8')](_0x87b049[_0x14cb('0x96')])){const _0x3cefc2=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xce')](_0x39f3c1[_0x14cb('0xe5')],_0x39032f);_0x2dd4c3['updateMarker'](_0x324e95[_0x14cb('0x12c')](),{'range':_0x3cefc2}),_0x436f02=!0x0;}}}return _0x436f02;}),_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0x1f')]['on'](_0x14cb('0x143'),(_0x4f0d99,_0xfc0069,_0x97d21b)=>{if(null==_0x97d21b){const {id:_0x58080c}=this['_splitMarkerName'](_0xfc0069['name']),_0x341e33=this[_0x14cb('0x25')]['get'](_0x58080c);_0x341e33&&_0x341e33[_0x14cb('0x11c')](_0xfc0069['name']);}}),_0x4f5fbd['model'][_0x14cb('0x26')]['on'](_0x14cb('0xa6'),()=>{const _0x404fc0=Array['from'](_0x4f5fbd[_0x14cb('0xbc')]['document'][_0x14cb('0x100')][_0x14cb('0x91')]())[_0x14cb('0xa0')](_0x11ba2d=>_0x14cb('0x47')===this[_0x14cb('0x70')](_0x11ba2d['name'])[_0x14cb('0x11e')]);if(0x0===_0x404fc0[_0x14cb('0x39')])return;_0x404fc0[_0x14cb('0xff')]((_0x5cc4fe,_0x4c621c)=>{const _0x46685d=_0x5cc4fe['data'][_0x14cb('0x17')],_0x52323a=_0x4c621c[_0x14cb('0x8c')][_0x14cb('0x17')];return null===_0x46685d&&null===_0x52323a?0x0:null===_0x46685d&&null!==_0x52323a?-0x1:null!==_0x46685d&&null===_0x52323a?0x1:_0x46685d[_0x14cb('0xe5')][_0x14cb('0xba')](_0x52323a[_0x14cb('0xe5')])?-0x1:0x1;});const _0x4487b0=new Set(),_0x51f99c=new Set();for(const {name:_0x5a6863,data:_0x458101}of _0x404fc0){const {id:_0x5ef2e6}=this[_0x14cb('0x70')](_0x5a6863);if(null===_0x458101[_0x14cb('0x17')]){const _0x932bd9=this[_0x14cb('0x67')](_0x5a6863);_0x51f99c[_0x14cb('0x3e')](_0x932bd9);}else{const _0x33b061=this[_0x14cb('0x25')][_0x14cb('0xc3')](_0x5ef2e6);null!==_0x458101[_0x14cb('0x11d')]||_0x33b061[_0x14cb('0x102')]?(_0x4487b0[_0x14cb('0x3e')](_0x33b061[_0x14cb('0x90')]),_0x51f99c[_0x14cb('0x3e')](_0x33b061)):this['_removeSuggestion'](_0x33b061);}}_0x51f99c[_0x14cb('0xe2')]>0x0&&this[_0x14cb('0xdc')](_0x51f99c);for(const _0x478c95 of _0x4487b0)this[_0x14cb('0xb4')](_0x14cb('0x10c'),_0x478c95);}),_0x4f5fbd[_0x14cb('0xbc')]['on']('applyOperation',(_0x35f09f,_0x2a1fc0)=>{const _0x1eca77=_0x2a1fc0[0x0];if(!this['_suggestions'][_0x14cb('0xe2')])return;if(!_0x1eca77[_0x14cb('0x9e')])return;if(_0x1eca77[_0x14cb('0xf6')][_0x14cb('0xb0')]||!_0x1eca77[_0x14cb('0xf6')][_0x14cb('0x5')])return;let _0x14cf23,_0x5e72d2;switch(_0x1eca77[_0x14cb('0xa7')]){case _0x14cb('0x5b'):_0x14cf23=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0x61')](_0x1eca77[_0x14cb('0x96')]),_0x5e72d2=_0x14cf23[_0x14cb('0xb5')](_0x1eca77[_0x14cb('0x9d')]);break;case _0x14cb('0x4a'):_0x14cf23=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0x61')](_0x1eca77[_0x14cb('0xf5')]),_0x5e72d2=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0x61')](_0x1eca77[_0x14cb('0x135')]);break;case'move':_0x14cf23=_0x4f5fbd[_0x14cb('0xbc')]['createPositionAt'](_0x1eca77[_0x14cb('0x56')]),_0x5e72d2=_0x14cf23[_0x14cb('0xb5')](_0x1eca77['howMany']);break;default:return;}const _0x4cc43e=_0x4f5fbd['model'][_0x14cb('0xce')](_0x14cf23,_0x5e72d2);_0x4f5fbd[_0x14cb('0xbc')]['change'](()=>{for(const {suggestion:_0x420fe1,meta:_0x4fcc30}of this[_0x14cb('0x38')](_0x4cc43e)){if(_0x420fe1[_0x14cb('0x64')])continue;if('formatInline'==_0x420fe1[_0x14cb('0xa7')])continue;const _0x491392=_0x420fe1[_0x14cb('0x8c')]&&_0x420fe1['data'][_0x14cb('0x8e')];(_0x14cb('0xdf')!=_0x420fe1[_0x14cb('0xa7')]||_0x14cb('0x4a')==_0x1eca77[_0x14cb('0xa7')]&&!_0x491392)&&(_0x4fcc30[_0x14cb('0x72')]||_0x14cb('0x1')==_0x420fe1[_0x14cb('0xa7')]&&_0x4fcc30[_0x14cb('0xcb')]||_0x420fe1['getFirstRange']()[_0x14cb('0x3')](_0x4cc43e)&&this[_0x14cb('0xeb')](_0x420fe1,_0x14cf23,_0x5e72d2));}});},{'priority':_0x14cb('0xd8')}),_0x4f5fbd[_0x14cb('0xbc')]['on']('deleteContent',(_0x27326f,_0x16557a)=>{const _0x4af67d=_0x16557a[0x0],_0x163534=_0x16557a[0x1];if(_0x163534&&_0x163534[_0x14cb('0x10e')])return;if(this[_0x14cb('0x44')])return;if(!this[_0x14cb('0x10d')]['value'])return;if(_0x4af67d[_0x14cb('0xee')])return;const _0x377a44=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xf2')],{start:_0x2b7d9a,end:_0x1e1621}=_0x4af67d['getFirstRange'](),_0x569383=_0x2b7d9a[_0x14cb('0x75')]&&_0x377a44['isLimit'](_0x2b7d9a[_0x14cb('0x75')])?null:_0x377a44['getNearestSelectionRange'](_0x2b7d9a,_0x14cb('0xd1')),_0xf16bd7=_0x1e1621['nodeBefore']&&_0x377a44[_0x14cb('0xe6')](_0x1e1621[_0x14cb('0x12b')])?null:_0x377a44[_0x14cb('0x108')](_0x1e1621,_0x14cb('0x119')),_0x3099b4=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xce')](_0x569383?_0x569383[_0x14cb('0xe5')]:_0x2b7d9a,_0xf16bd7?_0xf16bd7[_0x14cb('0x53')]:_0x1e1621);_0x4f5fbd[_0x14cb('0xbc')]['change'](_0x43a7c6=>{this[_0x14cb('0x12d')](_0x3099b4);const _0x494fc1=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xf2')][_0x14cb('0x108')](_0x3099b4[_0x14cb('0xe5')]);_0x4af67d['is'](_0x14cb('0xaa'))?_0x43a7c6[_0x14cb('0xa9')](_0x494fc1):_0x4af67d[_0x14cb('0xd3')](_0x494fc1);}),_0x27326f[_0x14cb('0x104')]();},{'priority':_0x2bde68[_0x14cb('0x120')]+0xa}),_0x4f5fbd[_0x14cb('0xbc')]['on'](_0x14cb('0xa5'),(_0x3c6c31,_0x188cb3)=>{const _0x489ed1=_0x188cb3[_0x188cb3['length']-0x1];_0x489ed1&&_0x489ed1[_0x14cb('0x10e')]||this[_0x14cb('0x44')]||this[_0x14cb('0x10d')]['value']&&(_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xdd')](()=>{let _0x1ea420=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xa5')](_0x188cb3[0x0],_0x188cb3[0x1],_0x188cb3[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ea420)return;_0x3c6c31[_0x14cb('0xfe')]=_0x1ea420[_0x14cb('0x3a')]();const _0x1827b3=_0x1ea420[_0x14cb('0x53')][_0x14cb('0x12b')],_0x5a2e89=_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0xf2')];_0x1827b3&&_0x5a2e89[_0x14cb('0x4c')](_0x1827b3)&&!_0x5a2e89[_0x14cb('0xf1')](_0x1827b3)&&(_0x1ea420=_0x4f5fbd['model'][_0x14cb('0xce')](_0x1ea420[_0x14cb('0xe5')],_0x4f5fbd[_0x14cb('0xbc')][_0x14cb('0x61')](_0x1827b3,_0x14cb('0x53')))),this[_0x14cb('0x4e')](_0x1ea420);}),_0x3c6c31[_0x14cb('0x104')]());},{'priority':_0x14cb('0x10f')}),this[_0x14cb('0xc5')][_0x14cb('0xcf')][_0x14cb('0x3e')](_0x14cb('0x11a'),this[_0x14cb('0x10d')]),this[_0x14cb('0x7c')](_0x14cb('0x11a'));const _0x54a9c0=new _0x4c0e84(_0x4f5fbd,this[_0x14cb('0x25')]);_0x4f5fbd[_0x14cb('0xcf')][_0x14cb('0x3e')](_0x14cb('0x34'),_0x54a9c0),this[_0x14cb('0x7c')](_0x14cb('0x34'));const _0x290b18=new _0x1bcbea(_0x4f5fbd,this['_suggestions']);_0x4f5fbd[_0x14cb('0xcf')]['add']('discardSuggestion',_0x290b18),this['enableCommand']('discardSuggestion'),_0x4f5fbd['commands']['add'](_0x14cb('0xd0'),new _0x33e086(_0x4f5fbd,_0x54a9c0,this['_suggestions'])),this[_0x14cb('0x7c')](_0x14cb('0xd0')),_0x4f5fbd[_0x14cb('0xcf')][_0x14cb('0x3e')](_0x14cb('0x50'),new _0x33e086(_0x4f5fbd,_0x290b18,this['_suggestions'])),this[_0x14cb('0x7c')](_0x14cb('0x50')),_0x4f5fbd[_0x14cb('0xcf')][_0x14cb('0x3e')](_0x14cb('0x51'),new _0xaf72bb(_0x4f5fbd,_0x54a9c0,this['_suggestions'])),this['enableCommand'](_0x14cb('0x51')),_0x4f5fbd[_0x14cb('0xcf')][_0x14cb('0x3e')](_0x14cb('0x7f'),new _0xaf72bb(_0x4f5fbd,_0x290b18,this[_0x14cb('0x25')])),this['enableCommand'](_0x14cb('0x7f'));const _0x5c9add=_0x4f5fbd[_0x14cb('0x1c')][_0x14cb('0xc3')](_0x14cb('0xc2'));this[_0x14cb('0x7a')](_0x5c9add,_0x14cb('0x136'),(_0x5591d3,{threadId:_0x5b2350})=>{const _0x484fbe=this[_0x14cb('0x25')]['get'](_0x5b2350);_0x484fbe&&_0x484fbe['commentThread']&&0x1===_0x484fbe[_0x14cb('0x5a')][_0x14cb('0x39')]&&this['_updateSuggestionData'](_0x5b2350,{'hasComments':!0x0});},{'priority':_0x14cb('0x45')}),this[_0x14cb('0x7a')](_0x5c9add,_0x14cb('0x95'),(_0x43e3e9,{threadId:_0x51f4b9})=>{const _0x376a16=this[_0x14cb('0x25')][_0x14cb('0xc3')](_0x51f4b9);_0x376a16&&_0x376a16['commentThread']&&!_0x376a16[_0x14cb('0x5a')][_0x14cb('0x39')]&&this['_updateSuggestionData'](_0x51f4b9,{'hasComments':!0x1});},{'priority':_0x14cb('0x45')});}set[_0x14cb('0x76')](_0x5885d9){if(this[_0x14cb('0xea')])throw new _0x34b54d(_0x14cb('0x8f'),this);this[_0x14cb('0xea')]=_0x5885d9;}get['adapter'](){return this[_0x14cb('0xea')];}['getSuggestions']({skipNotAttached:_0x4e5dda=!0x1,toJSON:_0x31b5ae=!0x1}={}){const _0x36b856=[];for(const _0x401836 of this[_0x14cb('0x25')]['values']())_0x4e5dda&&!_0x401836[_0x14cb('0x102')]||_0x36b856['push'](_0x401836);return _0x31b5ae?_0x36b856['map'](_0x77df0f=>_0x77df0f[_0x14cb('0x105')]()):_0x36b856;}[_0x14cb('0x13d')](_0x4c5488){const _0x19f2c6=this['_suggestions'][_0x14cb('0xc3')](_0x4c5488);if(!_0x19f2c6)throw new _0x34b54d(_0x14cb('0x4b'),this);return _0x19f2c6;}[_0x14cb('0xe8')](_0x48e860){return this[_0x14cb('0x25')][_0x14cb('0x6f')](_0x48e860);}[_0x14cb('0x1d')](_0x44acd2){const {authorId:_0x3e1637,id:_0x2dc3ce,attributes:_0x171c24}=_0x44acd2,[_0x9057b,_0x2b3515]=_0x44acd2[_0x14cb('0xa7')][_0x14cb('0x4a')](':'),_0x2db71b=this[_0x14cb('0x25')]['get'](_0x2dc3ce)||this[_0x14cb('0xbe')](_0x9057b,_0x2b3515,_0x2dc3ce,_0x3e1637,_0x171c24);if(this[_0x14cb('0x9f')](_0x2db71b),this[_0x14cb('0x3b')](_0x2db71b,_0x9057b,_0x2b3515||null,_0x3e1637),_0x2db71b[_0x14cb('0x10a')]=_0x44acd2['createdAt'],_0x171c24&&_0x171c24[_0x14cb('0xc')]){const _0x1e8857=_0x171c24[_0x14cb('0xc')],_0x34e909=this[_0x14cb('0x111')](_0x1e8857[_0x14cb('0x69')]);_0x2db71b[_0x14cb('0x2d')]=_0x1e8857['createdAt'],_0x2db71b[_0x14cb('0x40')]=_0x34e909,_0x2db71b[_0x14cb('0x127')]=!0x0;}else _0x2db71b[_0x14cb('0x2d')]=_0x44acd2['createdAt'];switch(_0x44acd2['data']&&(_0x2db71b[_0x14cb('0x8c')]=_0x44acd2[_0x14cb('0x8c')]),_0x44acd2[_0x14cb('0x54')]&&(_0x2db71b['attributes']=_0x44acd2['attributes']),this[_0x14cb('0xea')]&&this[_0x14cb('0xea')][_0x14cb('0xb8')]||(_0x2db71b[_0x14cb('0xa')]=!0x0),this[_0x14cb('0x52')]['get'](_0x2db71b)){case _0x14cb('0x13f'):this[_0x14cb('0x52')][_0x14cb('0x142')](_0x2db71b,'dataReady');break;case _0x14cb('0x115'):_0x2db71b[_0x14cb('0x102')]?(this[_0x14cb('0x52')][_0x14cb('0x142')](_0x2db71b,_0x14cb('0x78')),this[_0x14cb('0xb4')](_0x14cb('0x83'),_0x2db71b)):this[_0x14cb('0x52')][_0x14cb('0x142')](_0x2db71b,_0x14cb('0x84'));}return _0x2db71b;}[_0x14cb('0x34')](_0x1a6fd5){this[_0x14cb('0x10e')](()=>{this[_0x14cb('0xc5')][_0x14cb('0xbc')][_0x14cb('0xdd')](()=>{for(const _0x252ff3 of _0x1a6fd5['getAllAdjacentSuggestions']())_0x252ff3['accept']();});});}[_0x14cb('0x6c')](_0x4f9234){this[_0x14cb('0x10e')](()=>{this[_0x14cb('0xc5')][_0x14cb('0xbc')][_0x14cb('0xdd')](()=>{for(const _0x49ab43 of _0x4f9234['getAllAdjacentSuggestions']())_0x49ab43[_0x14cb('0x73')]();});});}[_0x14cb('0x7c')](_0x48b6c3,_0x10bbcb){const _0x275b53=this['editor'][_0x14cb('0xcf')][_0x14cb('0xc3')](_0x48b6c3);if(!_0x275b53)throw new _0x34b54d(_0x14cb('0x8'),this,{'commandName':_0x48b6c3});this[_0x14cb('0xa8')]['add'](_0x275b53),_0x10bbcb&&_0x275b53['on'](_0x14cb('0xda'),(_0x6b297c,_0x573caa)=>{this[_0x14cb('0x10d')][_0x14cb('0xcd')]&&(this[_0x14cb('0x44')]||_0x573caa[_0x14cb('0x39')]>0x0&&_0x573caa[_0x573caa['length']-0x1]&&_0x573caa[_0x573caa[_0x14cb('0x39')]-0x1][_0x14cb('0x10e')]||(_0x10bbcb((..._0x5458cc)=>_0x275b53[_0x14cb('0xda')](..._0x5458cc,{'forceDefaultExecution':!0x0}),..._0x573caa),_0x6b297c[_0x14cb('0x104')]()));},{'priority':_0x14cb('0x10f')});}[_0x14cb('0x10e')](_0x47a130){let _0x1e58f0,_0x24ec5f;const _0x453f0d=this[_0x14cb('0x44')];this[_0x14cb('0x44')]=!0x0;try{_0x1e58f0=_0x47a130();}catch(_0x16a764){_0x24ec5f=_0x16a764;}return _0x453f0d||(this[_0x14cb('0x44')]=!0x1),_0x24ec5f&&_0x34b54d['rethrowUnexpectedError'](_0x24ec5f,this),_0x1e58f0;}['markInsertion'](_0x13e9f9,_0x1689d6=null,_0x376f90={}){if(_0x13e9f9[_0x14cb('0xee')])return null;const _0xeabca9=this[_0x14cb('0xc5')][_0x14cb('0x1c')][_0x14cb('0xc3')](_0x14cb('0xb'))['me'];for(const {suggestion:_0x54ecd3,meta:_0x5821a7}of this['_findSuggestions'](_0x13e9f9,_0x14cb('0x1')))if(_0x5821a7[_0x14cb('0xcb')]){if(!_0x5821a7[_0x14cb('0x6a')]){if(!this[_0x14cb('0x6')]&&_0x5821a7[_0x14cb('0x72')])continue;return _0x54ecd3;}if(_0x1689d6==_0x54ecd3['subType']){const _0x1b42b1=_0x54ecd3[_0x14cb('0x16')]();return _0x1b42b1['start']['isEqual'](_0x13e9f9['end'])?this['_setSuggestionRange'](_0x54ecd3,this['_model'][_0x14cb('0xce')](_0x13e9f9[_0x14cb('0xe5')],_0x1b42b1[_0x14cb('0x53')])):this[_0x14cb('0xc0')](_0x54ecd3,this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x1b42b1[_0x14cb('0xe5')],_0x13e9f9[_0x14cb('0x53')])),_0x54ecd3;}}const _0x49a0a0=_0x5690e6(),_0x25c548=_0xeabca9['id'],_0x28ec7a=_0x1689d6?_0x14cb('0xb7')+_0x1689d6:'insertion',_0x2f1ba9=this['_setSuggestionData']({'id':_0x49a0a0,'type':_0x28ec7a,'createdAt':new Date(),'authorId':_0x25c548,'attributes':_0x376f90});return this['_addSuggestionMarker'](_0x28ec7a,_0x49a0a0,_0x25c548,_0x13e9f9),_0x2f1ba9;}[_0x14cb('0x12e')](_0x3de928,_0x82dbf0=_0x14cb('0x131'),_0x19f5ad={}){const _0x9bc794=this[_0x14cb('0xc5')]['plugins'][_0x14cb('0xc3')](_0x14cb('0xb'))['me'],_0x303812=this[_0x14cb('0x10')]['getSuggestionCallback'](_0x14cb('0x1'),_0x82dbf0,_0x14cb('0x59'));for(const _0x59f34e of this[_0x14cb('0xb6')]())if(_0x59f34e[_0x14cb('0x40')]['id']==_0x9bc794['id']&&_0x14cb('0x1')==_0x59f34e[_0x14cb('0xa7')]&&_0x59f34e[_0x14cb('0x13')]==_0x82dbf0&&(_0x303812(_0x59f34e['getRanges'](),_0x3de928)||_0x303812(_0x3de928,_0x59f34e[_0x14cb('0xe0')]()))){for(const _0x54951c of _0x3de928)_0x59f34e[_0x14cb('0xe3')](_0x54951c);return _0x59f34e;}if(this[_0x14cb('0x6')])for(const _0x532833 of _0x3de928)for(const {suggestion:_0x3b73a5,meta:_0x1d75a7}of this['_findSuggestions'](_0x532833,_0x14cb('0x1'))){if(!_0x1d75a7[_0x14cb('0xcb')])continue;let _0x1615d8=!0x0;for(const _0xd06458 of _0x3b73a5[_0x14cb('0xe0')]())for(const _0x220f7a of _0x3de928)if(!_0xd06458[_0x14cb('0x3')](_0x220f7a)){_0x1615d8=!0x1;break;}if(_0x1615d8)return _0x3b73a5;}const _0x26e78d=_0x5690e6(),_0x2b70ef=_0x9bc794['id'],_0x1228de=_0x14cb('0xb7')+_0x82dbf0,_0x11814e=this['_setSuggestionData']({'id':_0x26e78d,'type':_0x1228de,'createdAt':new Date(),'authorId':_0x2b70ef,'attributes':_0x19f5ad});for(const _0x1c93b4 of _0x3de928)this['_addSuggestionMarker'](_0x1228de,_0x26e78d,_0x2b70ef,_0x1c93b4,_0x12b5d0[_0x14cb('0x128')]());return _0x11814e;}[_0x14cb('0x4f')](_0x263350,_0x26fa66,_0x548759=null,_0x5f27e4={}){if(_0x548759=_0x548759||$t(_0x26fa66),_0x263350[_0x14cb('0xee')])return null;if(_0x14cb('0x63')===this['_trackFormatChanges']){const _0x2a4a1a=this[_0x14cb('0x10')][_0x14cb('0x110')](_0x14cb('0xc7'),_0x548759,_0x14cb('0x122'));return this[_0x14cb('0x10e')](()=>_0x2a4a1a([_0x263350],_0x26fa66,_0x5f27e4)),null;}const _0xed3479=this['editor'][_0x14cb('0x1c')]['get'](_0x14cb('0xb'))['me'],_0x2ff38c=[];if('always'!==this[_0x14cb('0xf7')])for(const {suggestion:_0x4e3a05,meta:_0x14e4b2}of this['_findSuggestions'](_0x263350,_0x14cb('0x1')))_0x14e4b2['isOwn']&&!_0x14e4b2['isInsideObject']&&_0x2ff38c[_0x14cb('0x62')](..._0x4e3a05['getRanges']());const _0x378354=function(_0x88bd18,_0x3e5b3a){const _0x5e420a=[];for(const _0x5f8d1f of _0x3e5b3a){const _0x25e469=_0x88bd18[_0x14cb('0x12')](_0x5f8d1f);_0x25e469&&_0x5e420a[_0x14cb('0x62')](_0x25e469);}return _0x5e420a;}(_0x263350,_0x2ff38c),_0x303121=function(_0x51fd10,_0x4bd849){const _0x45f06d=[_0x51fd10];for(const _0x2c8ed0 of _0x4bd849){let _0x5abbfc=0x0;for(;_0x5abbfc<_0x45f06d[_0x14cb('0x39')];){const _0x49c8c7=_0x45f06d[_0x5abbfc][_0x14cb('0x27')](_0x2c8ed0);_0x45f06d[_0x14cb('0x24')](_0x5abbfc,0x1,..._0x49c8c7),_0x5abbfc+=_0x49c8c7[_0x14cb('0x39')];}}return _0x45f06d;}(_0x263350,_0x2ff38c);_0x378354[_0x14cb('0x39')]&&this[_0x14cb('0xf0')][_0x14cb('0xdd')](()=>{for(const _0x4daf09 of _0x378354){const _0x1c4967=this[_0x14cb('0x10')][_0x14cb('0x110')](_0x14cb('0xc7'),_0x548759,'accept');this[_0x14cb('0x10e')](()=>_0x1c4967([_0x4daf09],_0x26fa66,_0x5f27e4));}});for(const _0x359395 of _0x303121){let _0xd329c7=null,_0x5a729a=_0x359395[_0x14cb('0xe5')],_0x349280=_0x359395[_0x14cb('0x53')];for(const {suggestion:_0x10b4f6,meta:_0x4c764a}of this['_findSuggestions'](_0x359395,_0x14cb('0xc7'))){if(!_0x4c764a[_0x14cb('0xcb')])continue;if(_0x10b4f6[_0x14cb('0x13')]!=_0x548759)continue;const _0x5be140=_0x10b4f6[_0x14cb('0x16')]();if(_0x5be140[_0x14cb('0x3')](_0x359395,!0x0))return null;_0x5a729a=_0x5a729a[_0x14cb('0xba')](_0x5be140[_0x14cb('0xe5')])?_0x5a729a:_0x5be140[_0x14cb('0xe5')],_0x349280=_0x349280[_0x14cb('0x94')](_0x5be140[_0x14cb('0x53')])?_0x349280:_0x5be140['end'],_0xd329c7?_0x5be140['start']['isBefore'](_0xd329c7[_0x14cb('0x16')]()[_0x14cb('0xe5')])?(_0xd329c7['removeMarkers'](),_0xd329c7=_0x10b4f6):_0x10b4f6['removeMarkers']():_0xd329c7=_0x10b4f6;}const _0x27488e=this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x5a729a,_0x349280);if(_0xd329c7)this[_0x14cb('0xc0')](_0xd329c7,_0x27488e);else{const _0x29ae84=_0x5690e6(),_0x1b61e0=_0xed3479['id'];this[_0x14cb('0x10b')]({'id':_0x29ae84,'type':_0x14cb('0x7')+_0x548759,'data':_0x26fa66,'createdAt':new Date(),'authorId':_0x1b61e0,'attributes':_0x5f27e4}),this[_0x14cb('0xef')](_0x14cb('0x7')+_0x548759,_0x29ae84,_0x1b61e0,_0x27488e);}}return null;}[_0x14cb('0x9a')](_0x348657,_0x58b946,_0x454d5a=[],_0x4d804e=null,_0x3b8678={}){_0x58b946[_0x14cb('0x116')]||(_0x58b946[_0x14cb('0x116')]=_0x58b946[_0x14cb('0x60')]),_0x58b946[_0x14cb('0x8e')]=_0x348657['is']('range'),_0x4d804e=_0x4d804e||$t(_0x58b946);const _0x1b4efc=_0x454d5a[_0x14cb('0x4')](_0x4d46e3=>Rt(_0x4d46e3,this[_0x14cb('0xf0')])),_0x1e3621=_0x348657['is'](_0x14cb('0xde'))?_0x348657:Rt(_0x348657,this['_model']);if(_0x14cb('0x63')===this['_trackFormatChanges']){const _0x4bffe6=this[_0x14cb('0x10')][_0x14cb('0x110')](_0x14cb('0xdf'),_0x4d804e,_0x14cb('0x122'));return this[_0x14cb('0x10e')](()=>_0x4bffe6([_0x1e3621],_0x58b946,_0x3b8678)),null;}_0x1b4efc[_0x14cb('0x62')](_0x1e3621);let _0xade63b=!0x0;for(const _0x5f037d of _0x1b4efc)if(!this['_rangeIsInLocalUserInsertion'](_0x5f037d)){_0xade63b=!0x1;break;}if(_0xade63b&&'always'!==this[_0x14cb('0xf7')]){const _0x2cfd3b=this[_0x14cb('0x10')][_0x14cb('0x110')](_0x14cb('0xdf'),_0x4d804e,_0x14cb('0x122'));return this['forceDefaultExecution'](()=>_0x2cfd3b([_0x1e3621],_0x58b946,_0x3b8678)),null;}let _0x1938ae=null,_0x4282cd=_0x1e3621[_0x14cb('0xe5')],_0x5eec2b=_0x1e3621[_0x14cb('0x53')];for(const {suggestion:_0x16cb4e,meta:_0x388392}of this[_0x14cb('0x38')](_0x1e3621,_0x14cb('0xdf'))){if(!_0x388392[_0x14cb('0xcb')]||_0x388392[_0x14cb('0x6a')]||_0x388392[_0x14cb('0x72')]||_0x388392[_0x14cb('0x49')])continue;if(_0x16cb4e[_0x14cb('0x8c')][_0x14cb('0x116')]!=_0x58b946[_0x14cb('0x116')])continue;const _0x3de5ab=_0x16cb4e[_0x14cb('0x16')]();if(_0x16cb4e[_0x14cb('0x13')]==_0x4d804e){if(_0x3de5ab[_0x14cb('0x3')](_0x1e3621,!0x0))return null;_0x4282cd=_0x4282cd[_0x14cb('0xba')](_0x3de5ab[_0x14cb('0xe5')])?_0x4282cd:_0x3de5ab[_0x14cb('0xe5')],_0x5eec2b=_0x5eec2b['isAfter'](_0x3de5ab[_0x14cb('0x53')])?_0x5eec2b:_0x3de5ab[_0x14cb('0x53')],_0x1938ae?_0x3de5ab[_0x14cb('0xe5')][_0x14cb('0xba')](_0x1938ae[_0x14cb('0x16')]()[_0x14cb('0xe5')])?(_0x1938ae[_0x14cb('0x5c')](),_0x1938ae=_0x16cb4e):_0x16cb4e[_0x14cb('0x5c')]():_0x1938ae=_0x16cb4e;}else{const _0x437d78=_0x1e3621[_0x14cb('0x12')](_0x3de5ab);this['_cutOutSuggestionMarker'](_0x16cb4e,_0x437d78);}}const _0x4bf0bc=this['editor']['plugins'][_0x14cb('0xc3')](_0x14cb('0xb'))['me'],_0x54392b=_0x5690e6(),_0x1cf689=_0x4bf0bc['id'];if(_0x1938ae)return this[_0x14cb('0xc0')](_0x1938ae,this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x4282cd,_0x5eec2b)),_0x1938ae;{const _0xfdcf49=this[_0x14cb('0x10b')]({'id':_0x54392b,'type':'formatBlock:'+_0x4d804e,'data':_0x58b946,'createdAt':new Date(),'authorId':_0x1cf689,'attributes':_0x3b8678});return this[_0x14cb('0xef')](_0x14cb('0x2f')+_0x4d804e,_0x54392b,_0x1cf689,this[_0x14cb('0xf0')]['createRange'](_0x4282cd,_0x5eec2b)),_0xfdcf49;}}[_0x14cb('0xd4')](_0xded37c,_0x5321a2,_0x5a415d=[],_0x2e9f1a=null,_0x2efd9f={}){_0x5321a2[_0x14cb('0x116')]||(_0x5321a2['formatGroupId']=_0x5321a2[_0x14cb('0x60')]);const _0x1e3378=_0xded37c[0x0];_0x5321a2[_0x14cb('0x8e')]=_0x1e3378['is'](_0x14cb('0xde')),_0x2e9f1a=_0x2e9f1a||$t(_0x5321a2);const _0x2c2a84=_0x5a415d[_0x14cb('0x4')](_0x4336c3=>Rt(_0x4336c3,this[_0x14cb('0xf0')])),_0x44ae26=_0x1e3378['is'](_0x14cb('0xde'))?_0xded37c:_0xded37c[_0x14cb('0x4')](_0x50181a=>Rt(_0x50181a,this[_0x14cb('0xf0')]));if(_0x14cb('0x63')===this[_0x14cb('0xf7')]){const _0x2ff399=this[_0x14cb('0x10')][_0x14cb('0x110')](_0x14cb('0xdf'),_0x2e9f1a,'accept');return this[_0x14cb('0x10e')](()=>_0x2ff399(_0x44ae26,_0x5321a2,_0x2efd9f)),null;}_0x2c2a84[_0x14cb('0x62')](..._0x44ae26);let _0x5380a1=!0x0;for(const _0x4e2849 of _0x2c2a84)if(!this[_0x14cb('0xcc')](_0x4e2849)){_0x5380a1=!0x1;break;}if(_0x5380a1&&_0x14cb('0x42')!==this[_0x14cb('0xf7')]){const _0x4029bf=this[_0x14cb('0x10')]['getSuggestionCallback'](_0x14cb('0xdf'),_0x2e9f1a,'accept');return this[_0x14cb('0x10e')](()=>_0x4029bf(_0x44ae26,_0x5321a2,_0x2efd9f)),null;}const _0x18bb9b=this['editor']['plugins']['get'](_0x14cb('0xb'))['me'];for(const _0x44bf6e of this[_0x14cb('0xb6')]()){if(_0x44bf6e['author']['id']!=_0x18bb9b['id'])continue;if(_0x14cb('0xdf')!=_0x44bf6e[_0x14cb('0xa7')]||_0x44bf6e[_0x14cb('0x8c')][_0x14cb('0x116')]!=_0x5321a2[_0x14cb('0x116')])continue;const _0x9be83d=_0x44bf6e['subType']==_0x2e9f1a;for(let _0x421b86=0x0;_0x421b86<_0x44ae26[_0x14cb('0x39')];_0x421b86++){const _0x498655=_0x44ae26[_0x421b86];for(const _0x2038a8 of _0x44bf6e['getMarkers']()){const _0x266ff5=_0x2038a8['getRange']();if(_0x498655[_0x14cb('0xc8')](_0x266ff5)){_0x9be83d?(_0x44ae26[_0x14cb('0x24')](_0x421b86,0x1),_0x421b86--):_0x44bf6e[_0x14cb('0x13c')](_0x2038a8[_0x14cb('0x132')]);break;}}}}if(0x0==_0x44ae26['length'])return null;const _0x5d9927=this[_0x14cb('0x10')][_0x14cb('0x110')]('formatBlock',_0x2e9f1a,'join');for(const _0x22044c of this[_0x14cb('0xb6')]())if(_0x22044c[_0x14cb('0x40')]['id']==_0x18bb9b['id']&&_0x14cb('0xdf')==_0x22044c[_0x14cb('0xa7')]&&_0x22044c['data']['formatGroupId']==_0x5321a2[_0x14cb('0x116')]&&_0x22044c[_0x14cb('0x13')]==_0x2e9f1a&&(_0x5d9927(_0x22044c[_0x14cb('0xe0')](),_0x44ae26)||_0x5d9927(_0x44ae26,_0x22044c[_0x14cb('0xe0')]()))){for(const _0x56b3ac of _0x44ae26)_0x22044c[_0x14cb('0xe3')](_0x56b3ac);return _0x22044c;}const _0x5330d3=_0x5690e6(),_0x233e44=_0x18bb9b['id'],_0x33d342=_0x14cb('0x2f')+_0x2e9f1a,_0x36a151=this['_setSuggestionData']({'id':_0x5330d3,'type':_0x33d342,'data':_0x5321a2,'createdAt':new Date(),'authorId':_0x233e44,'attributes':_0x2efd9f});for(const _0x58c4b3 of _0x44ae26)this['_addSuggestionMarker'](_0x33d342,_0x5330d3,_0x233e44,_0x58c4b3,_0x12b5d0['getMultiRangeId']());return _0x36a151;}[_0x14cb('0x12d')](_0x348a0d,_0x41e192=null,_0x704659={}){if(_0x348a0d['isCollapsed'])return null;const _0x139a43=this[_0x14cb('0xc5')][_0x14cb('0x1c')][_0x14cb('0xc3')](_0x14cb('0xb'))['me'],_0x99370e=new _0x5dc836(_0x348a0d[_0x14cb('0xe5')],_0x348a0d[_0x14cb('0x53')]);for(const {suggestion:_0x2825ce,meta:_0x482bc6}of this[_0x14cb('0x38')](_0x99370e,'insertion'))if(_0x482bc6[_0x14cb('0xcb')]&&!_0x482bc6[_0x14cb('0x6a')]){if(_0x2825ce[_0x14cb('0x64')]){const _0x36e546=_0x2825ce['getRanges']()[_0x14cb('0xa0')](_0x12712a=>'$graveyard'!=_0x12712a['root'][_0x14cb('0xa4')]);_0x36e546[_0x14cb('0x43')](_0x4ef422=>_0x99370e['containsRange'](_0x4ef422,!0x0))&&_0x2825ce[_0x14cb('0x73')]();if(_0x36e546[_0x14cb('0xbd')](_0xd1f835=>_0xd1f835['containsRange'](_0x99370e,!0x0))){const _0x2a8deb=this[_0x14cb('0x10')]['getSuggestionCallback'](_0x14cb('0xe1'),_0x41e192,_0x14cb('0x122'));return this['forceDefaultExecution'](()=>_0x2a8deb([_0x99370e],null,_0x704659)),null;}}else{const _0x27d449=_0x99370e[_0x14cb('0x12')](_0x2825ce[_0x14cb('0x16')]());null!==_0x27d449&&_0x2825ce[_0x14cb('0xc6')]([_0x27d449],null,_0x704659);}}if(_0x99370e[_0x14cb('0x140')](),_0x99370e[_0x14cb('0xee')]||_0x14cb('0x20')==_0x99370e[_0x14cb('0x81')][_0x14cb('0xa4')])return null;let _0x2fd7a0=null,_0x17035b=_0x99370e[_0x14cb('0xe5')],_0x492cea=_0x99370e['end'];for(const {suggestion:_0x350167,meta:_0x593813}of this[_0x14cb('0x38')](_0x99370e,_0x14cb('0xe1')))if(_0x593813[_0x14cb('0xcb')]){if(_0x350167['isMultiRange']&&this[_0x14cb('0x6')]){let _0x109a93=!0x0;for(const _0x1d8e51 of _0x350167['getRanges']()){if(_0x1d8e51[_0x14cb('0x3')](_0x99370e,!0x0))return _0x350167;_0x99370e[_0x14cb('0x3')](_0x1d8e51)||(_0x109a93=!0x1);}_0x109a93&&_0x350167['discard']();}else{const _0x42629a=_0x350167[_0x14cb('0x16')]();if(_0x42629a[_0x14cb('0x3')](_0x99370e,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x593813[_0x14cb('0x72')])continue;return _0x350167;}_0x17035b=_0x17035b[_0x14cb('0xba')](_0x42629a[_0x14cb('0xe5')])?_0x17035b:_0x42629a['start'],_0x492cea=_0x492cea['isAfter'](_0x42629a[_0x14cb('0x53')])?_0x492cea:_0x42629a[_0x14cb('0x53')],_0x2fd7a0?_0x42629a[_0x14cb('0xe5')][_0x14cb('0xba')](_0x2fd7a0['getFirstRange']()[_0x14cb('0xe5')])?(_0x2fd7a0['removeMarkers'](),_0x2fd7a0=_0x350167):_0x350167[_0x14cb('0x5c')]():_0x2fd7a0=_0x350167;}}if(_0x2fd7a0)return this[_0x14cb('0xc0')](_0x2fd7a0,this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x17035b,_0x492cea)),_0x2fd7a0;{const _0x49d685=_0x5690e6(),_0x5b596f=this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x17035b,_0x492cea),_0x59bbb8=_0x139a43['id'],_0x556356=_0x41e192?_0x14cb('0x13a')+_0x41e192:_0x14cb('0xe1'),_0x3fca3d=this[_0x14cb('0x10b')]({'id':_0x49d685,'type':_0x556356,'createdAt':new Date(),'authorId':_0x59bbb8,'attributes':_0x704659});return this[_0x14cb('0xef')](_0x556356,_0x49d685,_0x59bbb8,_0x5b596f),_0x3fca3d;}}['markMultiRangeDeletion'](_0xd7bdc6,_0x300cab=_0x14cb('0x131'),_0x19a2e2={}){const _0x597592=this['editor'][_0x14cb('0x1c')][_0x14cb('0xc3')]('Users')['me'],_0x4f4f14=_0xd7bdc6[_0x14cb('0x4')](_0x5a13fa=>new _0x5dc836(_0x5a13fa['start'],_0x5a13fa[_0x14cb('0x53')])),_0x5802e3=new Set();for(const _0x12de07 of _0x4f4f14)for(const {suggestion:_0x4c2373,meta:_0x378d82}of this[_0x14cb('0x38')](_0x12de07,'insertion'))_0x378d82['isOwn']&&!_0x378d82[_0x14cb('0x6a')]&&_0x5802e3['add'](_0x4c2373);for(const _0x24debc of _0x5802e3)if(_0x24debc[_0x14cb('0x64')]){const _0x27f2b=_0x24debc['getRanges']();(!_0x24debc[_0x14cb('0x54')]||!_0x24debc[_0x14cb('0x54')]['skipNestingCheck'])&&(_0x27f2b['every'](_0x3e830e=>_0x4f4f14['some'](_0x2921de=>_0x2921de['containsRange'](_0x3e830e,!0x0)))&&_0x24debc[_0x14cb('0x73')]());if(_0x4f4f14[_0x14cb('0x43')](_0x4d5d6e=>_0x27f2b['some'](_0x18851a=>_0x18851a['containsRange'](_0x4d5d6e,!0x0)))){const _0x1f706a=this['_suggestionFactory'][_0x14cb('0x110')](_0x14cb('0xe1'),_0x300cab,'accept');return this['forceDefaultExecution'](()=>_0x1f706a(_0xd7bdc6,null,_0x19a2e2)),null;}}else{const _0x39bcad=_0x24debc[_0x14cb('0x16')]();_0x4f4f14[_0x14cb('0xbd')](_0x5da647=>_0x5da647[_0x14cb('0x3')](_0x39bcad,!0x0))&&_0x24debc[_0x14cb('0x73')]();if(_0x4f4f14[_0x14cb('0x43')](_0x3daf68=>_0x39bcad['containsRange'](_0x3daf68,!0x0))){const _0x4cf5b9=this[_0x14cb('0x10')][_0x14cb('0x110')](_0x14cb('0xe1'),_0x300cab,'accept');return this[_0x14cb('0x10e')](()=>_0x4cf5b9(_0x4f4f14,null,_0x19a2e2)),null;}}const _0x4daaf1=this[_0x14cb('0x10')][_0x14cb('0x110')](_0x14cb('0xe1'),_0x300cab,_0x14cb('0x59'));let _0x157722=null;for(const _0x57929e of this['getSuggestions']())if(_0x57929e[_0x14cb('0x40')]['id']==_0x597592['id']&&_0x57929e[_0x14cb('0x102')]&&_0x14cb('0xe1')==_0x57929e[_0x14cb('0xa7')]&&_0x57929e['subType']==_0x300cab&&(_0x4daaf1(_0x57929e['getRanges'](),_0x4f4f14)||_0x4daaf1(_0x4f4f14,_0x57929e[_0x14cb('0xe0')]()))){if(_0x157722){if(_0x57929e[_0x14cb('0x5a')]&&_0x57929e[_0x14cb('0x5a')][_0x14cb('0x39')])continue;for(const _0x17aaa8 of _0x57929e[_0x14cb('0xe0')]())_0x157722[_0x14cb('0xc4')](_0x17aaa8)||_0x157722[_0x14cb('0xe3')](_0x17aaa8);_0x57929e['removeMarkers']();}else{_0x157722=_0x57929e;for(const _0x54f816 of _0x4f4f14)_0x57929e[_0x14cb('0xc4')](_0x54f816)||_0x57929e['addRange'](_0x54f816);}}if(_0x157722)return _0x157722;_0x5802e3[_0x14cb('0x79')]();for(const _0x2bbbbd of _0x4f4f14)for(const {suggestion:_0x260d54,meta:_0x32a9d3}of this[_0x14cb('0x38')](_0x2bbbbd,_0x14cb('0xe1')))_0x32a9d3[_0x14cb('0xcb')]&&_0x5802e3[_0x14cb('0x3e')](_0x260d54);for(const _0xf01f81 of _0x5802e3){const _0x3b25da=_0xf01f81[_0x14cb('0xe0')]();if(!_0x19a2e2||!_0x19a2e2[_0x14cb('0xe')]){if(_0x4f4f14['every'](_0x2baf4f=>_0x3b25da[_0x14cb('0xbd')](_0x37fe49=>_0x37fe49['containsRange'](_0x2baf4f,!0x0))))return _0xf01f81;}(!_0xf01f81[_0x14cb('0x54')]||!_0xf01f81[_0x14cb('0x54')][_0x14cb('0xe')])&&(_0x3b25da['every'](_0x4f3375=>_0x4f4f14['some'](_0x252704=>_0x252704[_0x14cb('0x3')](_0x4f3375,!0x0)))&&_0xf01f81[_0x14cb('0x73')]());}const _0x332322=_0x5690e6(),_0x584a4d=_0x597592['id'],_0x11ffe2=_0x14cb('0x13a')+_0x300cab,_0x1a384c=this['_setSuggestionData']({'id':_0x332322,'type':_0x11ffe2,'createdAt':new Date(),'authorId':_0x584a4d,'attributes':_0x19a2e2});for(const _0x1ce7e7 of _0x4f4f14)_0x1ce7e7['detach'](),_0x1ce7e7[_0x14cb('0xee')]||'$graveyard'==_0x1ce7e7[_0x14cb('0x81')][_0x14cb('0xa4')]||this['_addSuggestionMarker'](_0x11ffe2,_0x332322,_0x584a4d,_0x1ce7e7,_0x12b5d0['getMultiRangeId']());return _0x1a384c;}['_setSuggestionRange'](_0xbc2f81,_0x51bbb0){const _0x158d71=_0xbc2f81[_0x14cb('0x12c')]();this['_model'][_0x14cb('0xdd')](_0x236b43=>{_0x236b43['updateMarker'](_0x158d71,{'range':_0x51bbb0});});}[_0x14cb('0x9f')](_0x457b37){const _0x5e3dfc=_0x457b37['id'],_0x4d26b3=this[_0x14cb('0xc5')][_0x14cb('0x130')]['get'](_0x14cb('0xb2'));this['_commentsRepository'][_0x14cb('0xbf')](_0x5e3dfc)||this[_0x14cb('0x9b')][_0x14cb('0xec')]({'channelId':_0x4d26b3,'threadId':_0x5e3dfc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xe8faf9=this[_0x14cb('0x9b')]['getCommentThread'](_0x5e3dfc);_0xe8faf9[_0x14cb('0xae')](_0x14cb('0x123')),_0xe8faf9[_0x14cb('0x123')]=!0x1,_0x457b37[_0x14cb('0x5a')]=_0xe8faf9;}[_0x14cb('0x3b')](_0x5db84c,_0x1338ea,_0x160673,_0x5b353e){if(_0x5db84c[_0x14cb('0xa7')]!=_0x1338ea||_0x5db84c['subType']!=_0x160673||_0x5db84c['creator']['id']!=_0x5b353e)throw this[_0x14cb('0xc5')][_0x14cb('0x101')](_0x14cb('0x7e')),new _0x34b54d('track-changes-suggestion-data-mismatch',this);}[_0x14cb('0xf8')](_0x190f72,_0x32d3d7){const _0x32c1e5=_0x190f72[_0x14cb('0x16')]();if(_0x32d3d7[_0x14cb('0xc8')](_0x32c1e5))_0x190f72[_0x14cb('0x5c')]();else{if(_0x32c1e5[_0x14cb('0x3')](_0x32d3d7)){const _0x17034f=this[_0x14cb('0xf0')][_0x14cb('0x61')](_0x32d3d7['start'][_0x14cb('0x12b')],_0x14cb('0x53'));this['_setSuggestionRange'](_0x190f72,this['_model'][_0x14cb('0xce')](_0x32c1e5[_0x14cb('0xe5')],_0x17034f));const _0x14e9fe=_0x5690e6(),_0x578f2b=_0x190f72[_0x14cb('0x14')]['id'],_0x356f42=_0x190f72[_0x14cb('0xa7')]+':'+_0x190f72[_0x14cb('0x13')];this['_setSuggestionData']({'id':_0x14e9fe,'type':_0x356f42,'createdAt':new Date(),'authorId':_0x578f2b,'data':_0x190f72[_0x14cb('0x8c')],'attributes':_0x190f72[_0x14cb('0x54')]});const _0x411ff3=this['_model'][_0x14cb('0x61')](_0x32d3d7[_0x14cb('0x53')][_0x14cb('0x0')],_0x14cb('0x5f')),_0x2d2834=this['_model'][_0x14cb('0xce')](_0x411ff3,_0x32c1e5[_0x14cb('0x53')]);this[_0x14cb('0xef')](_0x356f42,_0x14e9fe,_0x578f2b,_0x2d2834);}else{if(_0x32c1e5[_0x14cb('0x37')](_0x32d3d7[_0x14cb('0xe5')])){const _0x453b4e=this[_0x14cb('0xf0')]['createPositionAt'](_0x32d3d7[_0x14cb('0xe5')][_0x14cb('0x12b')],'end');this[_0x14cb('0xc0')](_0x190f72,this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x32c1e5[_0x14cb('0xe5')],_0x453b4e));}else{const _0x5e85d7=this[_0x14cb('0xf0')][_0x14cb('0x61')](_0x32d3d7[_0x14cb('0x53')][_0x14cb('0x0')],_0x14cb('0x5f'));this[_0x14cb('0xc0')](_0x190f72,this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x5e85d7,_0x32c1e5[_0x14cb('0x53')]));}}}}[_0x14cb('0xcc')](_0x13cfd9){for(const {suggestion:_0x51f246,meta:_0x49dee3}of this[_0x14cb('0x38')](_0x13cfd9,'insertion')){if(!_0x49dee3[_0x14cb('0xcb')])continue;const _0x244561=_0x51f246[_0x14cb('0xe0')]();for(const _0x7246a8 of _0x244561)if(!_0x13cfd9[_0x14cb('0x27')](_0x7246a8)[_0x14cb('0x39')])return!0x0;}return!0x1;}[_0x14cb('0xf')](_0x380577){const _0x3855c1=this[_0x14cb('0xc5')][_0x14cb('0x1c')]['get'](_0x14cb('0xb'))[_0x14cb('0xe4')](_0x380577);if(!_0x3855c1)throw new _0x34b54d(_0x14cb('0xe7'),this);return _0x3855c1;}[_0x14cb('0x111')](_0x186bb2){const _0x52e67e=this[_0x14cb('0xc5')][_0x14cb('0x1c')][_0x14cb('0xc3')](_0x14cb('0xb')),_0x327100=_0x1f4e06(_0x14cb('0x141')+_0x186bb2),_0x16947f=_0x52e67e[_0x14cb('0xe4')](_0x327100);return _0x16947f||_0x52e67e[_0x14cb('0xa1')]({'id':_0x327100,'name':_0x186bb2});}[_0x14cb('0xbe')](_0x1ebf29,_0x32e665,_0x10ffe4,_0x4f5347,_0xba4e86){const _0x246835=this[_0x14cb('0xf')](_0x4f5347),_0x6c1515=this[_0x14cb('0x10')][_0x14cb('0x126')](_0x1ebf29,_0x32e665,_0x10ffe4,_0x246835,_0xba4e86,_0xe64513=>this[_0x14cb('0x71')](_0x10ffe4,{'attributes':_0xe64513}));return this[_0x14cb('0x7a')](_0x6c1515,_0x14cb('0x122'),()=>{this[_0x14cb('0x71')](_0x10ffe4,{'state':_0x14cb('0xfd')});},{'priority':_0x14cb('0x10f')}),this[_0x14cb('0x7a')](_0x6c1515,_0x14cb('0x73'),()=>{this['_updateSuggestionData'](_0x10ffe4,{'state':_0x14cb('0xfa')});},{'priority':_0x14cb('0x10f')}),this[_0x14cb('0x25')][_0x14cb('0x142')](_0x10ffe4,_0x6c1515),this[_0x14cb('0x52')][_0x14cb('0x142')](_0x6c1515,'notReady'),_0x6c1515;}[_0x14cb('0x70')](_0x12b21c){const _0x5e2ace=_0x12b21c['split'](':');return{'group':_0x5e2ace[0x0],'type':_0x5e2ace[0x1],'subType':_0x5e2ace['length']>=0x5?_0x5e2ace[0x2]:null,'id':_0x5e2ace[_0x14cb('0x39')]<0x5?_0x5e2ace[0x2]:_0x5e2ace[0x3],'authorId':_0x5e2ace[_0x14cb('0x39')]<0x5?_0x5e2ace[0x3]:_0x5e2ace[0x4],'markerCount':0x6==_0x5e2ace[_0x14cb('0x39')]?_0x5e2ace[0x5]:null};}[_0x14cb('0xeb')](_0x44573a,_0x273c46,_0x1e43e4){const _0xb43bad=_0x44573a['getFirstRange'](),_0x30ef6e=_0xb43bad[_0x14cb('0xe5')],_0x37bf60=_0xb43bad['end'];this[_0x14cb('0xc0')](_0x44573a,this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x30ef6e,_0x273c46));const _0x5ae1a4=_0x5690e6(),_0x4bb03c=_0x44573a[_0x14cb('0x14')]['id'],_0x269b95=_0x44573a['type']+(_0x44573a['subType']?':'+_0x44573a[_0x14cb('0x13')]:'');this['_setSuggestionData']({'id':_0x5ae1a4,'type':_0x269b95,'createdAt':new Date(),'authorId':_0x4bb03c,'originalSuggestionId':_0x44573a['id'],'attributes':_0x44573a[_0x14cb('0x54')],'data':_0x44573a[_0x14cb('0x8c')]}),'formatBlock'==_0x44573a[_0x14cb('0xa7')]&&(_0x1e43e4=this[_0x14cb('0xf0')][_0x14cb('0xf9')](_0x1e43e4[_0x14cb('0x0')])),this[_0x14cb('0xef')](_0x269b95,_0x5ae1a4,_0x4bb03c,this['_model'][_0x14cb('0xce')](_0x1e43e4,_0x37bf60));}[_0x14cb('0x38')](_0x312a1a,_0x3cb37b=null){const _0x79f1c3=[],_0x5902ce=this['_model'][_0x14cb('0xf2')],_0x3ddc4a=this[_0x14cb('0xc5')][_0x14cb('0x1c')][_0x14cb('0xc3')](_0x14cb('0xb'))['me'];for(const _0x2c4d71 of this[_0x14cb('0xb6')]())if(_0x2c4d71[_0x14cb('0x102')]&&(!_0x3cb37b||_0x2c4d71[_0x14cb('0xa7')]==_0x3cb37b))for(const _0x49ebb2 of _0x2c4d71[_0x14cb('0xe0')]()){const _0x5ca755=_0x312a1a['start']['isEqual'](_0x49ebb2[_0x14cb('0x53')])||_0x312a1a[_0x14cb('0x53')][_0x14cb('0xc8')](_0x49ebb2[_0x14cb('0xe5')]);if(_0x5ca755||_0x312a1a[_0x14cb('0x12')](_0x49ebb2)){const _0x288cb5=_0x312a1a[_0x14cb('0x3')](_0x49ebb2)&&Bt(_0x5902ce,_0x49ebb2[_0x14cb('0xe5')],_0x312a1a),_0x4c3644=_0x49ebb2[_0x14cb('0x3')](_0x312a1a)&&Bt(_0x5902ce,_0x312a1a[_0x14cb('0xe5')],_0x49ebb2);_0x79f1c3[_0x14cb('0x62')]({'suggestion':_0x2c4d71,'meta':{'isOwn':_0x3ddc4a==_0x2c4d71[_0x14cb('0x40')],'isNextTo':_0x5ca755,'isInsideObject':_0x288cb5,'containsRangeInObject':_0x4c3644}});break;}}return _0x79f1c3;}[_0x14cb('0xef')](_0x15dc9b,_0x22aa96,_0x233d57,_0x2692c4,_0x386abd){this[_0x14cb('0xf0')]['change'](_0x2a58b2=>{let _0x134777='suggestion:'+_0x15dc9b+':'+_0x22aa96+':'+_0x233d57;_0x386abd&&(_0x134777=_0x134777+':'+_0x386abd),_0x2a58b2[_0x14cb('0x85')](_0x134777,{'range':_0x2692c4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x14cb('0x7d')](_0x4d1315){const _0x1782b0=_0x4d1315[_0x14cb('0x8b')],_0x120842=_0x4d1315[_0x14cb('0x46')];_0x4d1315[_0x14cb('0x8b')]=null,null!=_0x1782b0&&(_0x1782b0[_0x14cb('0x46')]=null),_0x4d1315[_0x14cb('0x46')]=null,null!=_0x120842&&(_0x120842[_0x14cb('0x8b')]=null),'ready'==this[_0x14cb('0x52')]['get'](_0x4d1315)&&(this[_0x14cb('0x52')][_0x14cb('0x142')](_0x4d1315,'removed'),this[_0x14cb('0xb4')]('suggestionUnloaded',_0x4d1315,_0x1782b0,_0x120842));}[_0x14cb('0x10b')](_0x51a429){const _0x27eb15=_0x51a429['id'],_0x241a1f=this[_0x14cb('0x1d')](_0x51a429);if(this[_0x14cb('0xea')]&&this['_adapter'][_0x14cb('0xb8')]){const _0x46bb81=this['editor'][_0x14cb('0x1c')][_0x14cb('0xc3')]('PendingActions'),_0x5db204=_0x241a1f[_0x14cb('0x41')],_0x199ddc=_0x241a1f['subType']?_0x241a1f[_0x14cb('0xa7')]+':'+_0x241a1f['subType']:_0x241a1f['type'],_0x8ff131=this[_0x14cb('0xc5')][_0x14cb('0xbb')],_0x215732=_0x46bb81[_0x14cb('0x3e')](_0x459574(_0x8ff131,_0x14cb('0x109'))),_0x4da5b3={'id':_0x27eb15,'type':_0x199ddc,'hasComments':_0x5db204,'data':_0x51a429['data']||null,'originalSuggestionId':_0x51a429[_0x14cb('0x113')]||null,'attributes':_0x241a1f['attributes']};this[_0x14cb('0xea')][_0x14cb('0xb8')](_0x4da5b3)['then'](_0x42be64=>{_0x241a1f[_0x14cb('0xa')]=!0x0,_0x46bb81[_0x14cb('0x8d')](_0x215732),_0x42be64&&_0x42be64['createdAt']&&(this[_0x14cb('0x25')][_0x14cb('0xc3')](_0x27eb15)[_0x14cb('0x10a')]=_0x42be64[_0x14cb('0x10a')]);})[_0x14cb('0x30')](_0xbfbf00=>{throw _0x408e6a(_0x14cb('0x5d')),this[_0x14cb('0xc5')][_0x14cb('0xbc')][_0x14cb('0x6e')]({'isUndoable':!0x1},()=>{_0x241a1f[_0x14cb('0x73')]();}),_0x241a1f[_0x14cb('0xc1')](),this[_0x14cb('0x25')][_0x14cb('0x15')](_0x241a1f['id']),this['_suggestionState']['delete'](_0x241a1f),_0xbfbf00;});}return _0x241a1f;}[_0x14cb('0x71')](_0xe002a8,_0x170ae7){const _0x3c8db0=this[_0x14cb('0xc5')][_0x14cb('0x1c')][_0x14cb('0xc3')](_0x14cb('0x36')),_0x46ed37=this[_0x14cb('0x13d')](_0xe002a8);if(this[_0x14cb('0xea')]&&this['_adapter'][_0x14cb('0x28')]){if(_0x46ed37[_0x14cb('0xa')]){const _0x9d5c77=_0x3c8db0[_0x14cb('0x3e')](_0x459574(this[_0x14cb('0xc5')][_0x14cb('0xbb')],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe002a8,_0x170ae7)[_0x14cb('0x114')](()=>{_0x3c8db0[_0x14cb('0x8d')](_0x9d5c77);});}else _0x46ed37['on'](_0x14cb('0xb3'),()=>{this[_0x14cb('0x71')](_0xe002a8,_0x170ae7);});}}[_0x14cb('0xc9')](_0x561969){if(!this[_0x14cb('0xea')]||!this[_0x14cb('0xea')][_0x14cb('0x13d')])throw new _0x34b54d(_0x14cb('0x6b'),this);return this[_0x14cb('0xea')][_0x14cb('0x13d')](_0x561969);}[_0x14cb('0x67')](_0x1f36f0){const {id:_0x30a779,type:_0x57d64a,subType:_0x1efe72,authorId:_0x4a08fc}=this['_splitMarkerName'](_0x1f36f0),_0x8f1ac4=this[_0x14cb('0x25')][_0x14cb('0xc3')](_0x30a779)||this['_createSuggestion'](_0x57d64a,_0x1efe72,_0x30a779,_0x4a08fc,{});switch(this[_0x14cb('0x3b')](_0x8f1ac4,_0x57d64a,_0x1efe72,_0x4a08fc),this[_0x14cb('0x52')][_0x14cb('0xc3')](_0x8f1ac4)){case _0x14cb('0x13f'):this[_0x14cb('0xc9')](_0x30a779)[_0x14cb('0x114')](_0x52ff5e=>{let _0x526ba9=Promise[_0x14cb('0xd')]();_0x52ff5e['hasComments']&&(_0x526ba9=this[_0x14cb('0x9b')][_0x14cb('0x57')]({'channelId':this[_0x14cb('0xc5')]['config'][_0x14cb('0xc3')](_0x14cb('0xb2')),'threadId':_0x30a779})),_0x526ba9[_0x14cb('0x114')](()=>{this[_0x14cb('0x1d')](_0x52ff5e)[_0x14cb('0xa')]=!0x0;});}),this[_0x14cb('0x52')]['set'](_0x8f1ac4,_0x14cb('0x115'));break;case _0x14cb('0x84'):this['_updateSuggestionData'](_0x30a779,{'state':'open'});case _0x14cb('0x103'):this[_0x14cb('0x52')][_0x14cb('0x142')](_0x8f1ac4,'ready'),this['fire'](_0x14cb('0x83'),_0x8f1ac4);break;case _0x14cb('0x78'):this[_0x14cb('0xb4')](_0x14cb('0x10c'),_0x8f1ac4);}return _0x8f1ac4[_0x14cb('0x11c')](_0x1f36f0),_0x8f1ac4;}[_0x14cb('0xdc')](_0x6732ee){const _0x38300d=Array['from'](_0x6732ee)[_0x14cb('0xa0')](_0x149de8=>!_0x149de8[_0x14cb('0x64')]),_0x4c64a6=this['getSuggestions']({'skipNotAttached':!0x0})[_0x14cb('0xa0')](_0x233462=>!_0x233462[_0x14cb('0x64')]),_0x3847f2=_0x4c64a6[_0x14cb('0xa0')](_0x59d0a0=>!_0x6732ee[_0x14cb('0x6f')](_0x59d0a0)),_0x5f4254=new Map(_0x4c64a6['map'](_0x24be0e=>[_0x24be0e,this[_0x14cb('0x10')][_0x14cb('0x110')](_0x24be0e[_0x14cb('0xa7')],_0x24be0e[_0x14cb('0x13')],'chain')])),_0x4950e6=new Map(_0x4c64a6[_0x14cb('0x4')](_0x585c53=>[_0x585c53,_0x585c53[_0x14cb('0x16')]()])),_0x1fffb8=new Set(),_0xf720cb=new Set();for(let _0x1e2d26=0x0;_0x1e2d26<_0x38300d[_0x14cb('0x39')];_0x1e2d26++)_0x4c6abe(_0x38300d[_0x1e2d26],_0x38300d,_0x1e2d26+0x1);for(let _0x518d69=0x0;_0x518d69<_0x38300d[_0x14cb('0x39')];_0x518d69++)_0x4c6abe(_0x38300d[_0x518d69],_0x3847f2,0x0);for(let _0x6663bc=0x0;_0x6663bc<_0x38300d[_0x14cb('0x39')];_0x6663bc++){const _0x2614ff=_0x38300d[_0x6663bc];!_0xf720cb[_0x14cb('0x6f')](_0x2614ff)&&_0x2614ff['previous']&&(_0x2614ff[_0x14cb('0x8b')][_0x14cb('0x46')]===_0x2614ff&&(_0x2614ff[_0x14cb('0x8b')][_0x14cb('0x46')]=null),_0x2614ff[_0x14cb('0x8b')]=null),!_0x1fffb8['has'](_0x2614ff)&&_0x2614ff[_0x14cb('0x46')]&&(_0x2614ff[_0x14cb('0x46')][_0x14cb('0x8b')]===_0x2614ff&&(_0x2614ff[_0x14cb('0x46')][_0x14cb('0x8b')]=null),_0x2614ff[_0x14cb('0x46')]=null);}function _0x4c6abe(_0x7a5dc1,_0x53b948,_0x13a025){for(let _0x3a3aa4=_0x13a025;_0x3a3aa4<_0x53b948[_0x14cb('0x39')];_0x3a3aa4++){const _0x553031=_0x1727ae(_0x7a5dc1,_0x53b948[_0x3a3aa4]);_0x553031&&(_0x553031[0x0][_0x14cb('0x46')]=_0x553031[0x1],_0x553031[0x1][_0x14cb('0x8b')]=_0x553031[0x0],_0x1fffb8[_0x14cb('0x3e')](_0x553031[0x0]),_0xf720cb['add'](_0x553031[0x1]));}}function _0x1727ae(_0x287825,_0x20c2b1){if(_0x287825[_0x14cb('0x40')]['id']!==_0x20c2b1[_0x14cb('0x40')]['id'])return null;const _0xccf322=_0x5f4254['get'](_0x287825)(_0x287825,_0x20c2b1,_0x4950e6['get'](_0x287825),_0x4950e6[_0x14cb('0xc3')](_0x20c2b1));if(!_0xccf322)return null;return _0x5f4254[_0x14cb('0xc3')](_0x20c2b1)(_0x287825,_0x20c2b1,_0x4950e6[_0x14cb('0xc3')](_0x287825),_0x4950e6['get'](_0x20c2b1))?_0xccf322[0x1][_0x14cb('0x5a')]&&_0xccf322[0x1]['commentThread']['length']?null:_0xccf322:null;}}[_0x14cb('0x118')](_0x263056){const _0x2f91b2=Array[_0x14cb('0xd6')](_0x263056),_0x18530a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x49e2ec=_0x18530a['filter'](_0x5ea14e=>!_0x263056[_0x14cb('0x6f')](_0x5ea14e)),_0xfa5dd7=new Map(_0x2f91b2['map'](_0x2a8005=>[_0x2a8005,this[_0x14cb('0x10')][_0x14cb('0x110')](_0x2a8005[_0x14cb('0xa7')],_0x2a8005['subType'],_0x14cb('0x59'))])),_0x290243=new Map(_0x18530a[_0x14cb('0x4')](_0x2d1639=>[_0x2d1639,_0x2d1639['getRanges']()]));for(let _0x1b958c=0x0;_0x1b958c<_0x2f91b2['length'];_0x1b958c++){if(_0x2b00c4(this,_0x2f91b2[_0x1b958c],_0x2f91b2,_0x1b958c+0x1))return!0x0;}for(let _0x3a7ba0=0x0;_0x3a7ba0<_0x2f91b2[_0x14cb('0x39')];_0x3a7ba0++){if(_0x2b00c4(this,_0x2f91b2[_0x3a7ba0],_0x49e2ec,0x0))return!0x0;}return!0x1;function _0x2b00c4(_0x473505,_0x326934,_0xbef146,_0x93036c){for(let _0x3866e1=_0x93036c;_0x3866e1<_0xbef146['length'];_0x3866e1++){const _0x5ef2c1=_0xbef146[_0x3866e1];if(_0x5ef2c1[_0x14cb('0xa7')]!==_0x326934[_0x14cb('0xa7')]||_0x5ef2c1[_0x14cb('0x40')]['id']!==_0x326934['author']['id']||_0x5ef2c1[_0x14cb('0x13')]!==_0x326934[_0x14cb('0x13')])continue;const _0x498865=_0xfa5dd7[_0x14cb('0xc3')](_0x326934),_0x32635b=_0x290243['get'](_0x326934),_0x54eed2=_0x290243[_0x14cb('0xc3')](_0x5ef2c1),_0x2faf3a=_0x326934[_0x14cb('0x5a')]&&_0x326934[_0x14cb('0x5a')][_0x14cb('0x39')],_0x10a91d=_0x5ef2c1[_0x14cb('0x5a')]&&_0x5ef2c1[_0x14cb('0x5a')][_0x14cb('0x39')];if(!_0x2faf3a&&_0x498865(_0x54eed2,_0x32635b))return _0x473505[_0x14cb('0x88')](_0x5ef2c1,_0x326934),_0x290243[_0x14cb('0x15')](_0x326934),!0x0;if(!_0x10a91d&&_0x498865(_0x32635b,_0x54eed2))return _0x473505[_0x14cb('0x88')](_0x326934,_0x5ef2c1),_0x290243[_0x14cb('0x15')](_0x5ef2c1),!0x0;}return!0x1;}}[_0x14cb('0x88')](_0x420c12,_0x3c0790){if(_0x420c12['isMultiRange'])for(const _0x50225a of _0x3c0790['getRanges']())_0x420c12[_0x14cb('0xe3')](_0x50225a);else{const _0xb79ace=_0x3c0790[_0x14cb('0x16')]()['end'];this[_0x14cb('0xc0')](_0x420c12,this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x420c12['getFirstRange']()['start'],_0xb79ace));}_0x3c0790[_0x14cb('0x5c')]();}}class Dt{constructor(_0x24ee75){this[_0x14cb('0x11f')]=_0x24ee75,this[_0x14cb('0xf0')]=_0x24ee75['model'],this[_0x14cb('0x9c')]=new Map(),this[_0x14cb('0x18')]=new Map(),this[_0x14cb('0x31')]();}[_0x14cb('0x126')](_0x1b85b8,_0x434f8e,_0x2ff348,_0x1ed349,_0x38599b,_0x5ea72d){return new _0x12b5d0(this[_0x14cb('0xf0')],{'type':_0x1b85b8,'subType':_0x434f8e,'id':_0x2ff348,'author':_0x1ed349,'creator':_0x1ed349,'attributes':_0x38599b,'onAttributesChange':_0x5ea72d,'onAccept':(..._0x17449b)=>this[_0x14cb('0x110')](_0x1b85b8,_0x434f8e,_0x14cb('0x122'))(..._0x17449b),'onDiscard':(..._0x489ac3)=>this['getSuggestionCallback'](_0x1b85b8,_0x434f8e,'discard')(..._0x489ac3)});}['registerCustomCallback'](_0x27d291,_0x1f8d63,_0x1d79d,_0x912d2f){const _0x58eff0=_0x27d291+':'+_0x1f8d63+':'+_0x1d79d;this[_0x14cb('0x9c')][_0x14cb('0x142')](_0x58eff0,_0x912d2f);}['getSuggestionCallback'](_0x2ed06f,_0x314362,_0x15f6ab){const _0x4614c3=_0x2ed06f+':'+_0x314362+':'+_0x15f6ab;return this['_customCallbacks'][_0x14cb('0xc3')](_0x4614c3)||this[_0x14cb('0x18')][_0x14cb('0xc3')](_0x2ed06f+':'+_0x15f6ab);}[_0x14cb('0x31')](){const _0x32d5cc=()=>{},_0x3af620=_0x367d8b=>{_0x367d8b[_0x14cb('0xff')]((_0x24fa63,_0x4488cc)=>_0x24fa63[_0x14cb('0xe5')][_0x14cb('0xba')](_0x4488cc['start'])?0x1:-0x1),this[_0x14cb('0xf0')][_0x14cb('0xdd')](_0x5b56d8=>{for(const _0xa19cc8 of _0x367d8b){let _0x256eb0;_0x256eb0=_0xa19cc8[_0x14cb('0x53')][_0x14cb('0x13e')]&&_0xa19cc8[_0x14cb('0x53')][_0x14cb('0x0')]==_0xa19cc8[_0x14cb('0xe5')]['nodeAfter']?_0x5b56d8['createSelection'](_0xa19cc8['start'][_0x14cb('0x75')],'on'):_0x5b56d8['createSelection'](_0xa19cc8),this[_0x14cb('0xf0')][_0x14cb('0x144')](_0x256eb0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18805c=(_0x185439,_0x1034aa)=>{this[_0x14cb('0xf0')][_0x14cb('0xdd')](_0x4f9cae=>{const {commandName:_0x42b7a3,commandParams:_0x6a6cec=[]}=_0x1034aa,_0x3e9165=_0x185439[_0x14cb('0x4')](_0x3c0977=>(_t(_0x3c0977)&&(_0x3c0977=this[_0x14cb('0xf0')][_0x14cb('0xce')](_0x3c0977['end'])),_0x3c0977))[_0x14cb('0xa0')](_0x5dd3cf=>_0x14cb('0x20')!==_0x5dd3cf[_0x14cb('0x81')]['rootName']);if(_0x3e9165[_0x14cb('0x39')]<0x1)return;const _0x53ece1=Array['from'](this[_0x14cb('0xf0')][_0x14cb('0x26')]['selection'][_0x14cb('0xe0')]())['map'](_0xf9bd28=>_0x5dc836[_0x14cb('0x8a')](_0xf9bd28));_0x4f9cae[_0x14cb('0xa9')](_0x3e9165);for(const _0x62fbc7 of this[_0x14cb('0x11f')][_0x14cb('0xcf')][_0x14cb('0xcf')]())_0x62fbc7[_0x14cb('0x121')]();_0x6a6cec[_0x14cb('0x62')]({'forceDefaultExecution':!0x0}),this[_0x14cb('0x11f')][_0x14cb('0xda')](_0x42b7a3,..._0x6a6cec);const _0x2b522d=_0x53ece1[_0x14cb('0xa0')](_0x4af23b=>_0x14cb('0x20')!=_0x4af23b[_0x14cb('0x81')]['rootName']);_0x2b522d[_0x14cb('0x39')]>0x0&&_0x4f9cae[_0x14cb('0xa9')](_0x2b522d);for(const _0x23f2f4 of _0x53ece1)_0x23f2f4[_0x14cb('0x140')]();});},_0x58adc2=(_0x3c8ee4,_0x10d763)=>0x1==_0x3c8ee4[_0x14cb('0x39')]&&0x1==_0x10d763[_0x14cb('0x39')]&&_0x3c8ee4[0x0]['end'][_0x14cb('0xc8')](_0x10d763[0x0][_0x14cb('0xe5')]),_0x195b66=(_0x2ae5e8,_0x27f4ed,_0x1e353a,_0x36351f)=>xt(_0x2ae5e8,_0x27f4ed,_0x1e353a,_0x36351f,this[_0x14cb('0xf0')])?[_0x2ae5e8,_0x27f4ed]:xt(_0x27f4ed,_0x2ae5e8,_0x36351f,_0x1e353a,this[_0x14cb('0xf0')])?[_0x27f4ed,_0x2ae5e8]:null;this[_0x14cb('0x18')][_0x14cb('0x142')]('insertion:accept',_0x32d5cc),this[_0x14cb('0x18')]['set']('insertion:discard',_0x3af620),this['_defaultCallbacks'][_0x14cb('0x142')](_0x14cb('0x7b'),_0x58adc2),this[_0x14cb('0x18')][_0x14cb('0x142')](_0x14cb('0x107'),_0x195b66),this['_defaultCallbacks'][_0x14cb('0x142')](_0x14cb('0x2b'),_0x3af620),this[_0x14cb('0x18')][_0x14cb('0x142')](_0x14cb('0xab'),_0x32d5cc),this[_0x14cb('0x18')][_0x14cb('0x142')](_0x14cb('0x11b'),_0x58adc2),this[_0x14cb('0x18')][_0x14cb('0x142')](_0x14cb('0x2a'),_0x195b66),this['_defaultCallbacks'][_0x14cb('0x142')](_0x14cb('0x92'),_0x18805c),this['_defaultCallbacks'][_0x14cb('0x142')](_0x14cb('0x93'),_0x32d5cc),this['_defaultCallbacks']['set'](_0x14cb('0x89'),_0x58adc2),this[_0x14cb('0x18')][_0x14cb('0x142')]('formatInline:chain',_0x32d5cc),this['_defaultCallbacks'][_0x14cb('0x142')]('formatBlock:accept',_0x18805c),this['_defaultCallbacks'][_0x14cb('0x142')](_0x14cb('0x87'),_0x32d5cc),this[_0x14cb('0x18')][_0x14cb('0x142')]('formatBlock:join',_0x58adc2),this['_defaultCallbacks'][_0x14cb('0x142')](_0x14cb('0xd5'),_0x32d5cc);}}function Bt(_0x289e2d,_0x337e2b,_0x132203){for(const _0xb624c2 of _0x337e2b[_0x14cb('0x0')][_0x14cb('0x13b')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xb624c2['root']==_0xb624c2)return!0x1;if(!_0x132203['containsItem'](_0xb624c2))return!0x1;if(_0x289e2d['isObject'](_0xb624c2)||_0x289e2d['isLimit'](_0xb624c2))return!0x0;}return!0x1;}function _t(_0x141840){return _0x141840[_0x14cb('0x53')][_0x14cb('0x0')]==_0x141840['start'][_0x14cb('0x75')]&&_0x141840[_0x14cb('0x53')][_0x14cb('0x124')];}function Mt(_0x3a5489,_0x2465d8,_0x540b83,_0x4d547d){const _0x33639c=_0x2a3da3=>!_0x2a3da3[_0x14cb('0xca')]['is'](_0x14cb('0x86'))&&!_0x4d547d[_0x14cb('0xf1')](_0x2a3da3[_0x14cb('0xca')]),_0xf380dc=_0x3a5489[_0x14cb('0xe5')][_0x14cb('0x65')](_0x33639c),_0x2493ca=_0x3a5489['end'][_0x14cb('0x65')](_0x33639c,{'direction':_0x14cb('0x119')});return(!_0x3a5489['start'][_0x14cb('0xc8')](_0xf380dc)||!_0x3a5489[_0x14cb('0x53')][_0x14cb('0xc8')](_0x2493ca))&&(_0xf380dc[_0x14cb('0xba')](_0x2493ca)?_0x540b83[_0x14cb('0x137')](_0x2465d8,{'range':_0x540b83[_0x14cb('0xce')](_0xf380dc,_0x2493ca)}):_0x540b83[_0x14cb('0x13c')](_0x2465d8),!0x0);}function $t(_0x1f4b19){return _0x1f4e06(_0x1f4b19);}function Nt(_0x32ff76){const _0x57d766=_0x32ff76[_0x14cb('0xe5')][_0x14cb('0x75')];return _0x57d766&&_0x57d766['is'](_0x14cb('0x1a'));}function Rt(_0x15c313,_0x4508c0){const _0x4d2368=_0x4508c0[_0x14cb('0xf2')][_0x14cb('0xf1')](_0x15c313)||_0x4508c0[_0x14cb('0xf2')][_0x14cb('0x139')](_0x15c313);return _0x4508c0[_0x14cb('0xce')](_0x4508c0[_0x14cb('0x61')](_0x15c313,_0x14cb('0x29')),_0x4d2368?_0x4508c0[_0x14cb('0xaf')](_0x15c313):_0x4508c0[_0x14cb('0x61')](_0x15c313,_0x14cb('0x53')));}function xt(_0xf61d81,_0x38437a,_0xc2a8b0,_0x5dc056,_0xf4e903){if(_0xc2a8b0['end'][_0x14cb('0xc8')](_0x5dc056[_0x14cb('0xe5')]))return!0x0;if(_0xf61d81[_0x14cb('0xa7')]!=_0x38437a[_0x14cb('0xa7')])return!0x1;if(!_0xc2a8b0[_0x14cb('0x53')][_0x14cb('0x12a')](_0x5dc056[_0x14cb('0xe5')]))return!0x1;const _0x537671=_0xf4e903[_0x14cb('0xce')](_0xc2a8b0[_0x14cb('0x53')],_0x5dc056[_0x14cb('0xe5')])[_0x14cb('0x3c')]();for(const _0x9a87fc of _0x537671)if([_0x14cb('0x80'),_0x14cb('0x145')][_0x14cb('0x77')](_0x9a87fc[_0x14cb('0xa7')])&&_0xf4e903[_0x14cb('0xf2')][_0x14cb('0xe6')](_0x9a87fc[_0x14cb('0xca')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x2928=['isObject','group','creator','position','options','_mergeNestedSuggestions','createdAt','markMultiRangeDeletion','ready','_checkSuggestionCorrectness','ck-suggestion-marker-','multi','_addSuggestionMarker','filter','isMultiRange','markerName','rootName','_registerDefaultCallbacks','editing','formatBlock:','createRange','subType','_descriptionFactory','containsItem','stop','howMany','_suggestionFactory','reconvertMarker','createElement','catch','after','track-changes-user-not-found','getRange','trackChanges.trackFormatChanges','root','originalSuggestionId','setSelection','removeAttribute','markMultiRangeBlockFormat','pluginName','nodeBefore','suggestionLoaded','insertContent','isSelectable','TrackChangesEditing','return','CommentsRepository','createPositionAfter','toJSON','insert','containsRangeInObject','push','buildSuggestion','createRangeIn','widget','conversion','_isForcedDefaultExecutionBlock','addHighlight','config','_defaultCallbacks','PendingActions','never','schema','addMarker:suggestion:formatBlock','selection','addCommentThread','isExternal','bindElementToMarker','includes','_trackFormatChanges','item','formatBlock','backward','track-changes-adapter-missing-getsuggestion','_suggestionState','start','_setSuggestionRange','enqueueChange','data-suggestion','authorName','isAfter','fire','getMultiRangeId','formatInline:accept','model','size','every','getCustomProperty','some','dataDowncast','removeComment','hasCommentThread','formatBlock:discard','always','_handleNewSuggestionMarker','_addThreadToSuggestion','formatInline:discard','getFirstMarker','head','_updateSuggestionData','from','getMarkers','getUser','isEqual','update:suggestion','differ','hasComments','_adapter','next','splitPosition','$graveyard','add','formatInline','then','getNearestSelectionRange','_saved','isRemovable','_commentsRepository','acceptSuggestion','_editor','markerReady','ck-suggestion-marker','isInContent','forceDefaultExecution','name','markerNameToElements','suggestionChanged','change','_rangeIsInLocalUserInsertion','length','suggestion-type','mapper','getLastMatchingPosition','commands','removeMarkers','split','documentSelection','unbindElementFromMarkerName','deletion:accept','trackChanges.mergeNestedSuggestions','addMarkerName','moveTargetPosition','activeMarkers','_model','map','suggestion:','author','ck-suggestion-marker--active','setTo','data','get','highest','getFirstRange','_breakSuggestionMarker','listenTo','_findSuggestions','applyOperation','createPositionAt','track-changes-suggestion-data-mismatch','containsPosition','formatInline:chain','element','has','enableReadOnlyMode','addSuggestionData','ck-suggestion-marker-formatBlock','$marker','getSuggestionCallback','acceptAllSuggestions','_splitMarkerName','values','registerPostFixer','trackChanges','insertion:accept','splice','join','discardSelectedSuggestions','type','unbind','registerCustomCallback','previous','targetPosition','discardSuggestion','accept','isNextTo','authoredAt','value','document','removed','discardAllSuggestions','plugins','getSuggestion','markInsertion','markers','_refreshSuggestionsChain','low','addMarker:suggestion','_enabledCommands','createSelection','elementEnd','high','sort','remove','for','getItems','enableCommand','init','change:_saved','_createSuggestion','clone','getAttribute','@external','_onDiscard','commentThread','removeMarker','resolve','removeClass','containsRange','deletion:join','_joinSuggestions','forward','_setSuggestionData','formatInline:','collaboration.channelId','isIntersectingWithRange','getDifference','showSuggestionHighlights','newRange','execute','isLocal','isUndo','deletion','multipleBlocks','upcast','setAttribute','normal','isTouching','isLimit','insertion:chain','deletion:chain','substr','nodeAfter','updateMarker','trackChangesCommand','updateSuggestion','rejected','addComment','locale','consumable','chain','getIntersection','dataReady','discard','markMultiRangeInsertion','commandName','removeMarker:suggestion:formatBlock','isBlock','track-changes-suggestion-not-found','getChangedMarkers','getAllAdjacentSuggestions','deleteContent','getRanges','getShiftedBy','detach','default','notReady','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','addClass','change:data','writer','editor','getSuggestions','track-changes-command-not-found','Users','elementStart','define','insertion','markDeletion','editingDowncast','dataToMarker','error-saving-suggestion-data-suggestion-discarded','refresh','isAtEnd','skipNestingCheck','getWalker','delete','oldRange','addSuggestion','addRange','insertion:','getCommentThread','deletion:','isCollapsed','_getAuthorFromId','batch','adapter','isBefore','formatGroupId','markInlineFormat','external:','formatBlock:accept','isDocumentOperation','createPositionBefore','markerToHighlight','consume','PENDING_ACTION_SUGGESTION','isOwn','attributes','set','suggestion','_removeSuggestion','end','move','fromRange','parent','suggestionUnloaded','_cutOutSuggestionMarker','getAncestors','_suggestions','range','clear','_getSuggestionData','change:activeMarkers','_customCallbacks','isInsideObject'];(function(_0x276c62,_0x2928f7){const _0x7e0b26=function(_0x1f5715){while(--_0x1f5715){_0x276c62['push'](_0x276c62['shift']());}};_0x7e0b26(++_0x2928f7);}(_0x2928,0x109));const _0x7e0b=function(_0x276c62,_0x2928f7){_0x276c62=_0x276c62-0x0;let _0x7e0b26=_0x2928[_0x276c62];return _0x7e0b26;};import{Plugin as _0x321376,PendingActions as _0x520fbc}from'ckeditor5/src/core';import{LiveRange as _0x491aa7}from'ckeditor5/src/engine';import{CKEditorError as _0x58fb70,uid as _0x1862e6,priorities as _0xf969cc,logWarning as _0x2f4b48}from'ckeditor5/src/utils';import{toWidget as _0x37d5c8}from'ckeditor5/src/widget';import{Users as _0x3bd855,hashObject as _0x1685bc}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ab93a from'./commands/trackchangescommand';import _0x3b4901 from'./commands/acceptsuggestioncommand';import _0x433a42 from'./commands/discardsuggestioncommand';import _0x28e3b2 from'./commands/executeonallsuggestionscommand';import _0x16f9ac from'./commands/executeonselectedsuggestionscommand';import _0x232d62 from'./suggestion';import _0x929de5 from'./suggestiondescriptionfactory';import _0x46390a from'./integrations/alignment';import _0x5bc39d from'./integrations/basicstyles';import _0x3fabc7 from'./integrations/blockquote';import _0x5c8300 from'./integrations/ckbox';import _0x1336c0 from'./integrations/codeblock';import _0x5ebef3 from'./integrations/comments';import _0x501c8d from'./integrations/deletecommand';import _0x51bd62 from'./integrations/documentlist';import _0x13d70b from'./integrations/entercommand';import _0x84dcad from'./integrations/findandreplace';import _0x21b2af from'./integrations/font';import _0xa36196 from'./integrations/formatpainter';import _0x1f25b3 from'./integrations/heading';import _0x1aae36 from'./integrations/highlight';import _0x2813b1 from'./integrations/horizontalline';import _0x15fbd0 from'./integrations/htmlembed';import _0x1c9fb3 from'./integrations/image';import _0x1c9f51 from'./integrations/imagereplace';import _0x2ba43c from'./integrations/importword';import _0x16afbd from'./integrations/indent';import _0x28a733 from'./integrations/inputcommand';import _0x3fdfa3 from'./integrations/link';import _0x253459 from'./integrations/list';import _0x9d363 from'./integrations/listproperties';import _0x1cdd9f from'./integrations/mediaembed';import _0x47d786 from'./integrations/mention';import _0x498742 from'./integrations/pagebreak';import _0x20b1f8 from'./integrations/paragraph';import _0x4436ef from'./integrations/removeformat';import _0x47fb5a from'./integrations/restrictededitingmode';import _0x22659d from'./integrations/shiftentercommand';import _0x29deed from'./integrations/standardeditingmode';import _0x40b576 from'./integrations/style';import _0x4e4e61 from'./integrations/table';import _0x4b7877 from'./integrations/tablemergesplit';import _0x367a89 from'./integrations/tableheadings';import _0x14e9e3 from'./integrations/tableclipboard';import _0x31d3ab from'./integrations/tablecolumnresize';import _0x1051a8 from'./integrations/template';import _0x46015f from'./integrations/tableofcontents';import _0x5b2246 from'./integrations/title';import _0xe3760a from'./integrations/undo';import{getTranslation as _0x25f2c4}from'./utils/common-translations';import _0x3ddec0 from'./integrations/tablecaption';import _0x98523b from'./integrations/documentlistproperties';import _0x14be67 from'./integrations/tableproperties';export default class p extends _0x321376{static get['requires'](){return['CommentsRepository',_0x3bd855,_0x520fbc,_0x46390a,_0x5bc39d,_0x3fabc7,_0x5c8300,_0x1336c0,_0x5ebef3,_0x501c8d,_0x51bd62,_0x98523b,_0x13d70b,_0x84dcad,_0x21b2af,_0xa36196,_0x1f25b3,_0x1aae36,_0x2813b1,_0x15fbd0,_0x1c9fb3,_0x1c9f51,_0x2ba43c,_0x16afbd,_0x28a733,_0x3fdfa3,_0x253459,_0x9d363,_0x1cdd9f,_0x47d786,_0x498742,_0x20b1f8,_0x4436ef,_0x47fb5a,_0x22659d,_0x29deed,_0x40b576,_0x4e4e61,_0x4b7877,_0x367a89,_0x3ddec0,_0x14e9e3,_0x31d3ab,_0x46015f,_0x14be67,_0x1051a8,_0x5b2246,_0xe3760a];}static get[_0x7e0b('0x64')](){return _0x7e0b('0x69');}constructor(_0x2d1cf4){function _0x10c953(_0x2bb088){return _0x2bb088[_0x7e0b('0xcd')](_0x4309aa=>String['fromCharCode'](_0x4309aa))[_0x7e0b('0xec')]('');}super(_0x2d1cf4),this[_0x7e0b('0x2c')]('activeMarkers',[]),this['on'](_0x7e0b('0x3a'),(_0x53208a,_0x46fd8b,_0xbf4de6,_0x14352d)=>{this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](()=>{for(const _0x101118 of[..._0x14352d,..._0xbf4de6])this[_0x7e0b('0xcc')][_0x7e0b('0xfe')][_0x7e0b('0xdf')](_0x101118)&&_0x2d1cf4[_0x7e0b('0x4f')][_0x7e0b('0x58')](_0x101118);});}),this[_0x7e0b('0x53')]=new _0x929de5(this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x7b')],this[_0x7e0b('0x6')][_0x7e0b('0x134')]),this['_adapter']=null,this[_0x7e0b('0x57')]=new Dt(this['editor']),this[_0x7e0b('0x36')]=new Map(),this['_commentsRepository']=_0x2d1cf4[_0x7e0b('0xfb')]['get'](_0x7e0b('0x6b')),this['_enabledCommands']=new Set(),this[_0x7e0b('0xcc')]=this[_0x7e0b('0x6')][_0x7e0b('0x91')],this[_0x7e0b('0x87')]=new WeakMap(),this[_0x7e0b('0x75')]=!0x1,_0x2d1cf4[_0x7e0b('0x77')]['define']('trackChanges.trackFormatChanges',_0x7e0b('0x145')),this[_0x7e0b('0x82')]=_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x5e')),_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xb')](_0x7e0b('0xc8'),!0x0),this[_0x7e0b('0x42')]=_0x2d1cf4[_0x7e0b('0x77')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x7e0b('0x130')]=new _0x3ab93a(_0x2d1cf4,this['_enabledCommands']),this[_0x10c953([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10c953([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x32]);}[_0x7e0b('0x10b')](){const _0x3db3e4=this['editor'];_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0x27')]({'model':'suggestion','view':_0x4f3c62=>{const {id:_0x1432aa,type:_0x5142c5}=this['_splitMarkerName'](_0x4f3c62['markerName']),_0x2e185a=[_0x7e0b('0xb6'),_0x7e0b('0x47')+_0x5142c5];let _0x570db1=0xbb8;return this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x4f3c62['markerName'])&&(_0x2e185a['push'](_0x7e0b('0xd0')),_0x570db1=0xbc2),'deletion'==_0x5142c5&&(_0x570db1+=0x5),{'classes':_0x2e185a,'attributes':{'data-suggestion':_0x1432aa},'priority':_0x570db1};}}),_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x4ce6fa=>{_0x4ce6fa['on'](_0x7e0b('0x101'),(_0x517b73,_0x472d83,_0x38af86)=>{if(!_0x38af86['options'][_0x7e0b('0x11f')])return;const _0x1ca598=_0x472d83['item'];if(!_0x1ca598)return;const _0x40c0b3=_0x38af86[_0x7e0b('0xc0')]['toViewElement'](_0x1ca598);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1ca598)&&_0x40c0b3&&!_0x40c0b3[_0x7e0b('0x94')](_0x7e0b('0x73'))&&_0x40c0b3['is']('containerElement')&&_0x37d5c8(_0x40c0b3,_0x38af86['writer']);},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for'](_0x7e0b('0x96'))[_0x7e0b('0x27')]({'model':_0x7e0b('0x2d'),'view':(_0x21adf7,_0x2181a7)=>{if(!_0x2181a7[_0x7e0b('0x41')][_0x7e0b('0x11f')])return null;const {type:_0x3b0ad1}=this[_0x7e0b('0xe6')](_0x21adf7[_0x7e0b('0x4c')]);return{'classes':['ck-suggestion-marker',_0x7e0b('0x47')+_0x3b0ad1],'priority':0xbb8};}});const _0x41f028=({showActiveMarkers:_0x455852=!0x0}={})=>(_0x4c2214,_0x3a04f7,_0x10f6fc)=>{if(!_0x3a04f7[_0x7e0b('0x83')])return;if(_0x3a04f7[_0x7e0b('0x83')]['is'](_0x7e0b('0x7d')))return void _0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7[_0x7e0b('0x83')],_0x4c2214[_0x7e0b('0xb9')]);const _0x3ba81f=_0x10f6fc[_0x7e0b('0xc0')]['toViewElement'](_0x3a04f7[_0x7e0b('0x83')]);if(!(_0x3a04f7['item']['is'](_0x7e0b('0xde'))&&_0x3db3e4[_0x7e0b('0x91')]['schema'][_0x7e0b('0x13d')](_0x3a04f7['item'])&&!_0x3ba81f[_0x7e0b('0x94')](_0x7e0b('0x76'))))return;const {id:_0x3b99b2}=this[_0x7e0b('0xe6')](_0x3a04f7[_0x7e0b('0x4c')]);_0x10f6fc['writer']['addClass']([_0x7e0b('0xb6'),_0x7e0b('0xe2')],_0x3ba81f),_0x10f6fc[_0x7e0b('0x5')][_0x7e0b('0x127')](_0x7e0b('0x8b'),_0x3b99b2,_0x3ba81f),_0x10f6fc[_0x7e0b('0xc0')][_0x7e0b('0x80')](_0x3ba81f,_0x3a04f7[_0x7e0b('0x4c')]),_0x455852&&(this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x3a04f7['markerName'])?_0x10f6fc['writer'][_0x7e0b('0x3')](_0x7e0b('0xd0'),_0x3ba81f):_0x10f6fc['writer'][_0x7e0b('0x115')](_0x7e0b('0xd0'),_0x3ba81f));for(const _0x599772 of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x72')](_0x3a04f7[_0x7e0b('0x83')])[_0x7e0b('0x109')]())_0x10f6fc['consumable'][_0x7e0b('0x28')](_0x599772,_0x4c2214[_0x7e0b('0xb9')]);_0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7['item'],_0x4c2214['name']);};_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x55c3ae=>{_0x55c3ae['on'](_0x7e0b('0x7c'),(_0x6ff516,_0x12bb06,_0x1098c9)=>{_0x1098c9['options'][_0x7e0b('0x11f')]&&_0x41f028({'showActiveMarkers':!0x1})(_0x6ff516,_0x12bb06,_0x1098c9);},{'priority':_0x7e0b('0xd4')});}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x96'))['markerToData']({'model':_0x7e0b('0x2d'),'view':(_0x1a610b,_0x2459d7)=>_0x2459d7[_0x7e0b('0x41')][_0x7e0b('0x11f')]?null:{'group':_0x7e0b('0x2d'),'name':_0x1a610b[_0x7e0b('0x12d')](0xb)}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))['elementToElement']({'view':{'name':_0x7e0b('0x2d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b8e34,{writer:_0x8d5bc})=>{let _0x3ac5aa='suggestion:'+_0x5b8e34[_0x7e0b('0x10f')](_0x7e0b('0xbf'))+':'+_0x5b8e34['getAttribute']('id');return _0x5b8e34['getAttribute']('marker-count')&&(_0x3ac5aa+=':'+_0x5b8e34[_0x7e0b('0x10f')]('marker-count')),_0x8d5bc[_0x7e0b('0x59')](_0x7e0b('0xe3'),{'data-name':_0x3ac5aa});}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))[_0x7e0b('0xf')]({'view':'suggestion'}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0xac')](_0x379d06=>{_0x379d06['on'](_0x7e0b('0x7c'),_0x41f028(),{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for']('editingDowncast')[_0x7e0b('0xac')](_0x546f4b=>{_0x546f4b['on'](_0x7e0b('0x13c'),(_0x249c24,_0x3f78b8,_0x5b6170)=>{const _0x4683ee=_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xba')](_0x3f78b8[_0x7e0b('0x4c')]);if(_0x4683ee)for(const _0x27038a of _0x4683ee)_0x27038a[_0x7e0b('0x94')](_0x7e0b('0x76'))||(_0x5b6170['writer']['removeClass']([_0x7e0b('0xb6'),'ck-suggestion-marker-formatBlock',_0x7e0b('0xd0')],_0x27038a),_0x5b6170[_0x7e0b('0x5')][_0x7e0b('0x62')]('data-suggestion',_0x27038a),_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xc6')](_0x27038a,_0x3f78b8[_0x7e0b('0x4c')]));},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x68975=>{let _0x34306d=!0x1;const _0x5f3864=Array['from'](_0x3db3e4[_0x7e0b('0x91')]['document']['differ'][_0x7e0b('0x13f')]()),_0x304d04=new Set();for(const {name:_0x3e2fc0,data:_0x4206a2}of _0x5f3864){const {group:_0x343103,type:_0x22e4f9,id:_0x3680b8}=this['_splitMarkerName'](_0x3e2fc0);if(_0x7e0b('0x2d')!==_0x343103)continue;const _0x32b5aa=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x3680b8);if(null!=_0x4206a2['newRange']){_0x7e0b('0xad')==_0x22e4f9&&(_0x34306d=_0x34306d||Mt(_0x4206a2[_0x7e0b('0x120')],_0x3e2fc0,_0x68975,_0x3db3e4['model'][_0x7e0b('0x7b')]));if(_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x5f')][_0x7e0b('0x4d')]||_0x7e0b('0x84')==_0x22e4f9&&!Nt(_0x4206a2[_0x7e0b('0x120')])||'deletion'==_0x22e4f9&&!(!_t(_0x53f75b=_0x4206a2[_0x7e0b('0x120')])&&!function(_0x54668f){return _0x54668f['start'][_0x7e0b('0x32')]==_0x54668f[_0x7e0b('0x2f')]['nodeBefore']&&_0x54668f['start'][_0x7e0b('0x12')];}(_0x53f75b)))_0x68975[_0x7e0b('0x113')](_0x3e2fc0),_0x34306d=!0x0;else{if(!_0x32b5aa||!_0x32b5aa[_0x7e0b('0xb7')])continue;_0x304d04[_0x7e0b('0xac')](_0x32b5aa);}}}var _0x53f75b;return _0x304d04[_0x7e0b('0x92')]>0x0&&(_0x34306d=!!this[_0x7e0b('0x1')](_0x304d04)||_0x34306d),_0x34306d;}),_0x3db3e4['model'][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x3d829d=>{let _0x5d128f=!0x1;for(const _0x1279db of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')]['getChanges']()){if(_0x7e0b('0x6e')!=_0x1279db[_0x7e0b('0xee')])continue;const _0x214359=_0x1279db['position']['getShiftedBy'](_0x1279db[_0x7e0b('0xbe')]);if(_0x214359['isAtEnd'])for(const _0x36ce40 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]()){if(_0x36ce40['isMultiRange']||!_0x36ce40[_0x7e0b('0xb7')])continue;if(_0x7e0b('0x84')!=_0x36ce40[_0x7e0b('0xee')])continue;const _0x17595a=_0x36ce40[_0x7e0b('0xd5')]();if(_0x17595a['start'][_0x7e0b('0x32')]!=_0x17595a[_0x7e0b('0x2f')][_0x7e0b('0x32')]&&_0x17595a['end'][_0x7e0b('0xa4')](_0x1279db[_0x7e0b('0x40')])){const _0x455508=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x17595a['start'],_0x214359);_0x3d829d['updateMarker'](_0x36ce40[_0x7e0b('0x9e')](),{'range':_0x455508}),_0x5d128f=!0x0;}}}return _0x5d128f;}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xfe')]['on'](_0x7e0b('0xa5'),(_0x59db46,_0x286fbc,_0x4ce649)=>{if(null==_0x4ce649){const {id:_0x1144e1}=this['_splitMarkerName'](_0x286fbc[_0x7e0b('0xb9')]),_0x5b1f65=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x1144e1);_0x5b1f65&&_0x5b1f65[_0x7e0b('0xc9')](_0x286fbc[_0x7e0b('0xb9')]);}}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')]['on'](_0x7e0b('0x4'),()=>{const _0x418fd2=Array[_0x7e0b('0xa1')](_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')][_0x7e0b('0x13f')]())['filter'](_0xad5cd2=>_0x7e0b('0x2d')===this[_0x7e0b('0xe6')](_0xad5cd2[_0x7e0b('0xb9')])[_0x7e0b('0x3e')]);if(0x0===_0x418fd2[_0x7e0b('0xbe')])return;_0x418fd2[_0x7e0b('0x106')]((_0x5aafa4,_0x49912f)=>{const _0x8c6685=_0x5aafa4['data'][_0x7e0b('0x16')],_0x4321f5=_0x49912f['data'][_0x7e0b('0x16')];return null===_0x8c6685&&null===_0x4321f5?0x0:null===_0x8c6685&&null!==_0x4321f5?-0x1:null!==_0x8c6685&&null===_0x4321f5?0x1:_0x8c6685['start']['isBefore'](_0x4321f5[_0x7e0b('0x88')])?-0x1:0x1;});const _0x446e7b=new Set(),_0x43aaef=new Set();for(const {name:_0x5f19f4,data:_0x4c4081}of _0x418fd2){const {id:_0x4425c3}=this[_0x7e0b('0xe6')](_0x5f19f4);if(null===_0x4c4081[_0x7e0b('0x16')]){const _0x4ccecb=this[_0x7e0b('0x9b')](_0x5f19f4);_0x43aaef[_0x7e0b('0xac')](_0x4ccecb);}else{const _0xaaa503=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x4425c3);null!==_0x4c4081['newRange']||_0xaaa503[_0x7e0b('0xb7')]?(_0x446e7b[_0x7e0b('0xac')](_0xaaa503[_0x7e0b('0x9f')]),_0x43aaef['add'](_0xaaa503)):this[_0x7e0b('0x2e')](_0xaaa503);}}_0x43aaef['size']>0x0&&this[_0x7e0b('0xff')](_0x43aaef);for(const _0x21ccfb of _0x446e7b)this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x21ccfb);}),_0x3db3e4['model']['on'](_0x7e0b('0xd9'),(_0x4398bd,_0x59c986)=>{const _0x383316=_0x59c986[0x0];if(!this[_0x7e0b('0x36')]['size'])return;if(!_0x383316[_0x7e0b('0x25')])return;if(_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x123')]||!_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x122')])return;let _0x124e73,_0x1074e0;switch(_0x383316[_0x7e0b('0xee')]){case'insert':_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0x40')]),_0x1074e0=_0x124e73['getShiftedBy'](_0x383316[_0x7e0b('0x56')]);break;case _0x7e0b('0xc4'):_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xaa')]),_0x1074e0=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xca')]);break;case _0x7e0b('0x30'):_0x124e73=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xf2')]),_0x1074e0=_0x124e73[_0x7e0b('0x143')](_0x383316[_0x7e0b('0x56')]);break;default:return;}const _0x3d051c=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x124e73,_0x1074e0);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const {suggestion:_0x2f2bfb,meta:_0x71c7b}of this['_findSuggestions'](_0x3d051c)){if(_0x2f2bfb['isMultiRange'])continue;if(_0x7e0b('0xad')==_0x2f2bfb[_0x7e0b('0xee')])continue;const _0x26c107=_0x2f2bfb['data']&&_0x2f2bfb[_0x7e0b('0xd2')][_0x7e0b('0x125')];(_0x7e0b('0x84')!=_0x2f2bfb['type']||_0x7e0b('0xc4')==_0x383316['type']&&!_0x26c107)&&(_0x71c7b[_0x7e0b('0x6f')]||_0x7e0b('0xc')==_0x2f2bfb['type']&&_0x71c7b[_0x7e0b('0x2a')]||_0x2f2bfb['getFirstRange']()[_0x7e0b('0x116')](_0x3d051c)&&this[_0x7e0b('0xd6')](_0x2f2bfb,_0x124e73,_0x1074e0));}});},{'priority':'lowest'}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x141'),(_0x3dc275,_0x23ef7a)=>{const _0x581212=_0x23ef7a[0x0],_0x624f7a=_0x23ef7a[0x1];if(_0x624f7a&&_0x624f7a[_0x7e0b('0xb8')])return;if(this[_0x7e0b('0x75')])return;if(!this[_0x7e0b('0x130')][_0x7e0b('0xf7')])return;if(_0x581212[_0x7e0b('0x1c')])return;const _0x2cfdbe=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')],{start:_0x5db3fd,end:_0x181faa}=_0x581212[_0x7e0b('0xd5')](),_0x54954d=_0x5db3fd[_0x7e0b('0x12e')]&&_0x2cfdbe['isLimit'](_0x5db3fd[_0x7e0b('0x12e')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x5db3fd,_0x7e0b('0x119')),_0x2841dd=_0x181faa[_0x7e0b('0x65')]&&_0x2cfdbe[_0x7e0b('0x12a')](_0x181faa[_0x7e0b('0x65')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x181faa,_0x7e0b('0x85')),_0x140e06=_0x3db3e4['model'][_0x7e0b('0x51')](_0x54954d?_0x54954d[_0x7e0b('0x88')]:_0x5db3fd,_0x2841dd?_0x2841dd['end']:_0x181faa);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](_0xe243d7=>{this[_0x7e0b('0xd')](_0x140e06);const _0x3fe944=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0xaf')](_0x140e06[_0x7e0b('0x88')]);_0x581212['is'](_0x7e0b('0xc5'))?_0xe243d7[_0x7e0b('0x61')](_0x3fe944):_0x581212[_0x7e0b('0xd1')](_0x3fe944);}),_0x3dc275[_0x7e0b('0x55')]();},{'priority':_0xf969cc[_0x7e0b('0x128')]+0xa}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x67'),(_0x2b7587,_0x53d36c)=>{const _0xfa6446=_0x53d36c[_0x53d36c[_0x7e0b('0xbe')]-0x1];_0xfa6446&&_0xfa6446['forceDefaultExecution']||this[_0x7e0b('0x75')]||this[_0x7e0b('0x130')][_0x7e0b('0xf7')]&&(_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{let _0x310459=_0x3db3e4['model'][_0x7e0b('0x67')](_0x53d36c[0x0],_0x53d36c[0x1],_0x53d36c[0x2],{'forceDefaultExecution':!0x0});if(!_0x310459)return;_0x2b7587[_0x7e0b('0x6a')]=_0x310459[_0x7e0b('0x10e')]();const _0x28aead=_0x310459[_0x7e0b('0x2f')][_0x7e0b('0x65')],_0x7ca8d4=_0x3db3e4['model']['schema'];_0x28aead&&_0x7ca8d4[_0x7e0b('0x13d')](_0x28aead)&&!_0x7ca8d4['isObject'](_0x28aead)&&(_0x310459=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x310459[_0x7e0b('0x88')],_0x3db3e4[_0x7e0b('0x91')]['createPositionAt'](_0x28aead,_0x7e0b('0x2f')))),this[_0x7e0b('0xfd')](_0x310459);}),_0x2b7587['stop']());},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0x6')][_0x7e0b('0xc2')]['add'](_0x7e0b('0xe9'),this[_0x7e0b('0x130')]),this[_0x7e0b('0x10a')](_0x7e0b('0xe9'));const _0x2d6d1e=new _0x3b4901(_0x3db3e4,this[_0x7e0b('0x36')]);_0x3db3e4['commands'][_0x7e0b('0xac')]('acceptSuggestion',_0x2d6d1e),this['enableCommand'](_0x7e0b('0xb3'));const _0x2e76b4=new _0x433a42(_0x3db3e4,this['_suggestions']);_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xf3'),_0x2e76b4),this[_0x7e0b('0x10a')](_0x7e0b('0xf3')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xe5'),new _0x28e3b2(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0xe5')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xfa'),new _0x28e3b2(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this[_0x7e0b('0x10a')](_0x7e0b('0xfa')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0x2'),new _0x16f9ac(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0x2')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xed'),new _0x16f9ac(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this['enableCommand'](_0x7e0b('0xed'));const _0x2c5538=_0x3db3e4[_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x6b'));this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x133'),(_0x34e5dc,{threadId:_0x231807})=>{const _0x330e0f=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x231807);_0x330e0f&&_0x330e0f[_0x7e0b('0x112')]&&0x1===_0x330e0f[_0x7e0b('0x112')][_0x7e0b('0xbe')]&&this['_updateSuggestionData'](_0x231807,{'hasComments':!0x0});},{'priority':_0x7e0b('0x100')}),this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x97'),(_0xa2faeb,{threadId:_0x2538aa})=>{const _0x986047=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x2538aa);_0x986047&&_0x986047[_0x7e0b('0x112')]&&!_0x986047['commentThread'][_0x7e0b('0xbe')]&&this[_0x7e0b('0xa0')](_0x2538aa,{'hasComments':!0x1});},{'priority':_0x7e0b('0x100')});}set[_0x7e0b('0x1f')](_0xd29e1){if(this['_adapter'])throw new _0x58fb70('track-changes-adapter-already-set',this);this[_0x7e0b('0xa8')]=_0xd29e1;}get[_0x7e0b('0x1f')](){return this[_0x7e0b('0xa8')];}['getSuggestions']({skipNotAttached:_0x5eb0b2=!0x1,toJSON:_0x177403=!0x1}={}){const _0x269ae9=[];for(const _0x4112a2 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]())_0x5eb0b2&&!_0x4112a2[_0x7e0b('0xb7')]||_0x269ae9[_0x7e0b('0x70')](_0x4112a2);return _0x177403?_0x269ae9[_0x7e0b('0xcd')](_0x5742f6=>_0x5742f6[_0x7e0b('0x6d')]()):_0x269ae9;}[_0x7e0b('0xfc')](_0x295ae9){const _0x13074f=this[_0x7e0b('0x36')]['get'](_0x295ae9);if(!_0x13074f)throw new _0x58fb70(_0x7e0b('0x13e'),this);return _0x13074f;}['hasSuggestion'](_0x3e6869){return this[_0x7e0b('0x36')][_0x7e0b('0xdf')](_0x3e6869);}[_0x7e0b('0xe1')](_0x59d7a4){const {authorId:_0x33b11f,id:_0x24b98b,attributes:_0x4d5cc6}=_0x59d7a4,[_0x5e7706,_0x572aaf]=_0x59d7a4[_0x7e0b('0xee')][_0x7e0b('0xc4')](':'),_0x26c2a5=this[_0x7e0b('0x36')]['get'](_0x24b98b)||this[_0x7e0b('0x10d')](_0x5e7706,_0x572aaf,_0x24b98b,_0x33b11f,_0x4d5cc6);if(this[_0x7e0b('0x9c')](_0x26c2a5),this[_0x7e0b('0x46')](_0x26c2a5,_0x5e7706,_0x572aaf||null,_0x33b11f),_0x26c2a5[_0x7e0b('0x43')]=_0x59d7a4['createdAt'],_0x4d5cc6&&_0x4d5cc6[_0x7e0b('0x110')]){const _0x50ba99=_0x4d5cc6['@external'],_0x4b227c=this['_getExternalAuthor'](_0x50ba99[_0x7e0b('0x8c')]);_0x26c2a5[_0x7e0b('0xf6')]=_0x50ba99[_0x7e0b('0x43')],_0x26c2a5[_0x7e0b('0xcf')]=_0x4b227c,_0x26c2a5[_0x7e0b('0x7f')]=!0x0;}else _0x26c2a5[_0x7e0b('0xf6')]=_0x59d7a4[_0x7e0b('0x43')];switch(_0x59d7a4[_0x7e0b('0xd2')]&&(_0x26c2a5[_0x7e0b('0xd2')]=_0x59d7a4[_0x7e0b('0xd2')]),_0x59d7a4['attributes']&&(_0x26c2a5['attributes']=_0x59d7a4[_0x7e0b('0x2b')]),this['_adapter']&&this[_0x7e0b('0xa8')]['addSuggestion']||(_0x26c2a5[_0x7e0b('0xb0')]=!0x0),this['_suggestionState']['get'](_0x26c2a5)){case _0x7e0b('0x0'):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x138'));break;case _0x7e0b('0xb5'):_0x26c2a5[_0x7e0b('0xb7')]?(this['_suggestionState'][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x45')),this[_0x7e0b('0x8e')](_0x7e0b('0x66'),_0x26c2a5)):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0xf9'));}return _0x26c2a5;}[_0x7e0b('0xb3')](_0x89a8f0){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x19c168 of _0x89a8f0[_0x7e0b('0x140')]())_0x19c168[_0x7e0b('0xf4')]();});});}[_0x7e0b('0xf3')](_0x111c46){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x5692de of _0x111c46[_0x7e0b('0x140')]())_0x5692de['discard']();});});}[_0x7e0b('0x10a')](_0x24f15b,_0x17e2c0){const _0x5e0a72=this[_0x7e0b('0x6')][_0x7e0b('0xc2')][_0x7e0b('0xd3')](_0x24f15b);if(!_0x5e0a72)throw new _0x58fb70(_0x7e0b('0x8'),this,{'commandName':_0x24f15b});this[_0x7e0b('0x102')][_0x7e0b('0xac')](_0x5e0a72),_0x17e2c0&&_0x5e0a72['on']('execute',(_0x242d50,_0x3d5e4b)=>{this[_0x7e0b('0x130')]['value']&&(this[_0x7e0b('0x75')]||_0x3d5e4b[_0x7e0b('0xbe')]>0x0&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1]&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1][_0x7e0b('0xb8')]||(_0x17e2c0((..._0x4f6dde)=>_0x5e0a72[_0x7e0b('0x121')](..._0x4f6dde,{'forceDefaultExecution':!0x0}),..._0x3d5e4b),_0x242d50['stop']()));},{'priority':'high'});}[_0x7e0b('0xb8')](_0x4a43db){let _0x2adcbc,_0x2af685;const _0x4fe3d0=this[_0x7e0b('0x75')];this[_0x7e0b('0x75')]=!0x0;try{_0x2adcbc=_0x4a43db();}catch(_0x1d71aa){_0x2af685=_0x1d71aa;}return _0x4fe3d0||(this[_0x7e0b('0x75')]=!0x1),_0x2af685&&_0x58fb70['rethrowUnexpectedError'](_0x2af685,this),_0x2adcbc;}[_0x7e0b('0xfd')](_0xca550c,_0xb5c730=null,_0x1635e5={}){if(_0xca550c['isCollapsed'])return null;const _0x3b52bb=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'];for(const {suggestion:_0x256682,meta:_0xf6e4f9}of this[_0x7e0b('0xd8')](_0xca550c,_0x7e0b('0xc')))if(_0xf6e4f9[_0x7e0b('0x2a')]){if(!_0xf6e4f9['isNextTo']){if(!this[_0x7e0b('0x42')]&&_0xf6e4f9[_0x7e0b('0x6f')])continue;return _0x256682;}if(_0xb5c730==_0x256682[_0x7e0b('0x52')]){const _0x64c672=_0x256682[_0x7e0b('0xd5')]();return _0x64c672['start']['isEqual'](_0xca550c['end'])?this[_0x7e0b('0x89')](_0x256682,this['_model'][_0x7e0b('0x51')](_0xca550c['start'],_0x64c672[_0x7e0b('0x2f')])):this['_setSuggestionRange'](_0x256682,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x64c672[_0x7e0b('0x88')],_0xca550c[_0x7e0b('0x2f')])),_0x256682;}}const _0x31a99f=_0x1862e6(),_0x3b169d=_0x3b52bb['id'],_0x5b41c0=_0xb5c730?_0x7e0b('0x19')+_0xb5c730:_0x7e0b('0xc'),_0x1cfc09=this[_0x7e0b('0x11a')]({'id':_0x31a99f,'type':_0x5b41c0,'createdAt':new Date(),'authorId':_0x3b169d,'attributes':_0x1635e5});return this[_0x7e0b('0x49')](_0x5b41c0,_0x31a99f,_0x3b169d,_0xca550c),_0x1cfc09;}[_0x7e0b('0x13a')](_0x2bb7ab,_0x134322=_0x7e0b('0x48'),_0x4755fe={}){const _0x1fbdf3=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0xb7fad2=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('insertion',_0x134322,_0x7e0b('0xec'));for(const _0x31f79d of this[_0x7e0b('0x7')]())if(_0x31f79d['author']['id']==_0x1fbdf3['id']&&_0x7e0b('0xc')==_0x31f79d[_0x7e0b('0xee')]&&_0x31f79d[_0x7e0b('0x52')]==_0x134322&&(_0xb7fad2(_0x31f79d[_0x7e0b('0x142')](),_0x2bb7ab)||_0xb7fad2(_0x2bb7ab,_0x31f79d[_0x7e0b('0x142')]()))){for(const _0x5025a5 of _0x2bb7ab)_0x31f79d[_0x7e0b('0x18')](_0x5025a5);return _0x31f79d;}if(this['_mergeNestedSuggestions'])for(const _0x59aef7 of _0x2bb7ab)for(const {suggestion:_0x3a53b7,meta:_0x4e4ece}of this['_findSuggestions'](_0x59aef7,_0x7e0b('0xc'))){if(!_0x4e4ece[_0x7e0b('0x2a')])continue;let _0x2c651b=!0x0;for(const _0x427839 of _0x3a53b7[_0x7e0b('0x142')]())for(const _0x42a68d of _0x2bb7ab)if(!_0x427839[_0x7e0b('0x116')](_0x42a68d)){_0x2c651b=!0x1;break;}if(_0x2c651b)return _0x3a53b7;}const _0x4085b0=_0x1862e6(),_0xd6650=_0x1fbdf3['id'],_0x399b98=_0x7e0b('0x19')+_0x134322,_0x14321d=this[_0x7e0b('0x11a')]({'id':_0x4085b0,'type':_0x399b98,'createdAt':new Date(),'authorId':_0xd6650,'attributes':_0x4755fe});for(const _0x561506 of _0x2bb7ab)this['_addSuggestionMarker'](_0x399b98,_0x4085b0,_0xd6650,_0x561506,_0x232d62[_0x7e0b('0x8f')]());return _0x14321d;}[_0x7e0b('0x22')](_0x1c5c15,_0x1c071c,_0x49f541=null,_0x60eb4a={}){if(_0x49f541=_0x49f541||$t(_0x1c071c),_0x1c5c15[_0x7e0b('0x1c')])return null;if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x1d97d1=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0xad'),_0x49f541,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x1d97d1([_0x1c5c15],_0x1c071c,_0x60eb4a)),null;}const _0x4d684a=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x1bb58f=[];if('always'!==this[_0x7e0b('0x82')])for(const {suggestion:_0x402948,meta:_0x93e36e}of this['_findSuggestions'](_0x1c5c15,_0x7e0b('0xc')))_0x93e36e['isOwn']&&!_0x93e36e['isInsideObject']&&_0x1bb58f[_0x7e0b('0x70')](..._0x402948[_0x7e0b('0x142')]());const _0x1e8fa9=function(_0x51835e,_0x46c69e){const _0x314a8f=[];for(const _0x1a1b0b of _0x46c69e){const _0x1733e0=_0x51835e[_0x7e0b('0x137')](_0x1a1b0b);_0x1733e0&&_0x314a8f[_0x7e0b('0x70')](_0x1733e0);}return _0x314a8f;}(_0x1c5c15,_0x1bb58f),_0x54ac21=function(_0x499b44,_0x4453e3){const _0x1c1d17=[_0x499b44];for(const _0x4ecdd8 of _0x4453e3){let _0xbca074=0x0;for(;_0xbca074<_0x1c1d17[_0x7e0b('0xbe')];){const _0x3147f8=_0x1c1d17[_0xbca074][_0x7e0b('0x11e')](_0x4ecdd8);_0x1c1d17['splice'](_0xbca074,0x1,..._0x3147f8),_0xbca074+=_0x3147f8['length'];}}return _0x1c1d17;}(_0x1c5c15,_0x1bb58f);_0x1e8fa9[_0x7e0b('0xbe')]&&this[_0x7e0b('0xcc')]['change'](()=>{for(const _0x56494a of _0x1e8fa9){const _0xa401ca=this['_suggestionFactory'][_0x7e0b('0xe4')]('formatInline',_0x49f541,'accept');this[_0x7e0b('0xb8')](()=>_0xa401ca([_0x56494a],_0x1c071c,_0x60eb4a));}});for(const _0x38ec93 of _0x54ac21){let _0x3b6bda=null,_0x58533e=_0x38ec93[_0x7e0b('0x88')],_0x350aa0=_0x38ec93['end'];for(const {suggestion:_0x4ce2f7,meta:_0x40a755}of this[_0x7e0b('0xd8')](_0x38ec93,'formatInline')){if(!_0x40a755[_0x7e0b('0x2a')])continue;if(_0x4ce2f7[_0x7e0b('0x52')]!=_0x49f541)continue;const _0x4c2e34=_0x4ce2f7[_0x7e0b('0xd5')]();if(_0x4c2e34[_0x7e0b('0x116')](_0x38ec93,!0x0))return null;_0x58533e=_0x58533e[_0x7e0b('0x20')](_0x4c2e34[_0x7e0b('0x88')])?_0x58533e:_0x4c2e34['start'],_0x350aa0=_0x350aa0[_0x7e0b('0x8d')](_0x4c2e34['end'])?_0x350aa0:_0x4c2e34['end'],_0x3b6bda?_0x4c2e34[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3b6bda['getFirstRange']()[_0x7e0b('0x88')])?(_0x3b6bda[_0x7e0b('0xc3')](),_0x3b6bda=_0x4ce2f7):_0x4ce2f7[_0x7e0b('0xc3')]():_0x3b6bda=_0x4ce2f7;}const _0x5b8d7b=this[_0x7e0b('0xcc')]['createRange'](_0x58533e,_0x350aa0);if(_0x3b6bda)this[_0x7e0b('0x89')](_0x3b6bda,_0x5b8d7b);else{const _0x1e745c=_0x1862e6(),_0x5b9080=_0x4d684a['id'];this['_setSuggestionData']({'id':_0x1e745c,'type':_0x7e0b('0x11b')+_0x49f541,'data':_0x1c071c,'createdAt':new Date(),'authorId':_0x5b9080,'attributes':_0x60eb4a}),this[_0x7e0b('0x49')](_0x7e0b('0x11b')+_0x49f541,_0x1e745c,_0x5b9080,_0x5b8d7b);}}return null;}['markBlockFormat'](_0x36f9b7,_0x2364ea,_0x279a07=[],_0x447b4e=null,_0x201840={}){_0x2364ea[_0x7e0b('0x21')]||(_0x2364ea[_0x7e0b('0x21')]=_0x2364ea['commandName']),_0x2364ea[_0x7e0b('0x125')]=_0x36f9b7['is'](_0x7e0b('0x37')),_0x447b4e=_0x447b4e||$t(_0x2364ea);const _0x311dbe=_0x279a07['map'](_0x36ffcd=>Rt(_0x36ffcd,this['_model'])),_0x303bad=_0x36f9b7['is'](_0x7e0b('0x37'))?_0x36f9b7:Rt(_0x36f9b7,this[_0x7e0b('0xcc')]);if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x472997=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x472997([_0x303bad],_0x2364ea,_0x201840)),null;}_0x311dbe['push'](_0x303bad);let _0x547e44=!0x0;for(const _0x1e9b28 of _0x311dbe)if(!this[_0x7e0b('0xbd')](_0x1e9b28)){_0x547e44=!0x1;break;}if(_0x547e44&&_0x7e0b('0x9a')!==this[_0x7e0b('0x82')]){const _0x5df665=this['_suggestionFactory'][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x5df665([_0x303bad],_0x2364ea,_0x201840)),null;}let _0x3a01c9=null,_0x2d7d26=_0x303bad['start'],_0x10ff75=_0x303bad[_0x7e0b('0x2f')];for(const {suggestion:_0x3ac22f,meta:_0x51f309}of this[_0x7e0b('0xd8')](_0x303bad,_0x7e0b('0x84'))){if(!_0x51f309[_0x7e0b('0x2a')]||_0x51f309[_0x7e0b('0xf5')]||_0x51f309[_0x7e0b('0x6f')]||_0x51f309[_0x7e0b('0x3c')])continue;if(_0x3ac22f[_0x7e0b('0xd2')][_0x7e0b('0x21')]!=_0x2364ea[_0x7e0b('0x21')])continue;const _0x2e0ed9=_0x3ac22f[_0x7e0b('0xd5')]();if(_0x3ac22f['subType']==_0x447b4e){if(_0x2e0ed9[_0x7e0b('0x116')](_0x303bad,!0x0))return null;_0x2d7d26=_0x2d7d26[_0x7e0b('0x20')](_0x2e0ed9[_0x7e0b('0x88')])?_0x2d7d26:_0x2e0ed9['start'],_0x10ff75=_0x10ff75[_0x7e0b('0x8d')](_0x2e0ed9[_0x7e0b('0x2f')])?_0x10ff75:_0x2e0ed9[_0x7e0b('0x2f')],_0x3a01c9?_0x2e0ed9[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3a01c9[_0x7e0b('0xd5')]()['start'])?(_0x3a01c9[_0x7e0b('0xc3')](),_0x3a01c9=_0x3ac22f):_0x3ac22f[_0x7e0b('0xc3')]():_0x3a01c9=_0x3ac22f;}else{const _0x2bc298=_0x303bad[_0x7e0b('0x137')](_0x2e0ed9);this[_0x7e0b('0x34')](_0x3ac22f,_0x2bc298);}}const _0x45a94a=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0x1288fa=_0x1862e6(),_0x3ab646=_0x45a94a['id'];if(_0x3a01c9)return this[_0x7e0b('0x89')](_0x3a01c9,this['_model'][_0x7e0b('0x51')](_0x2d7d26,_0x10ff75)),_0x3a01c9;{const _0x26f148=this[_0x7e0b('0x11a')]({'id':_0x1288fa,'type':_0x7e0b('0x50')+_0x447b4e,'data':_0x2364ea,'createdAt':new Date(),'authorId':_0x3ab646,'attributes':_0x201840});return this['_addSuggestionMarker'](_0x7e0b('0x50')+_0x447b4e,_0x1288fa,_0x3ab646,this[_0x7e0b('0xcc')]['createRange'](_0x2d7d26,_0x10ff75)),_0x26f148;}}[_0x7e0b('0x63')](_0x46e1c6,_0x3e5e73,_0x4150fe=[],_0x6e4355=null,_0x3c12e4={}){_0x3e5e73[_0x7e0b('0x21')]||(_0x3e5e73[_0x7e0b('0x21')]=_0x3e5e73[_0x7e0b('0x13b')]);const _0x2de93c=_0x46e1c6[0x0];_0x3e5e73['multipleBlocks']=_0x2de93c['is'](_0x7e0b('0x37')),_0x6e4355=_0x6e4355||$t(_0x3e5e73);const _0xe10ca=_0x4150fe[_0x7e0b('0xcd')](_0x150e14=>Rt(_0x150e14,this[_0x7e0b('0xcc')])),_0x2eba05=_0x2de93c['is'](_0x7e0b('0x37'))?_0x46e1c6:_0x46e1c6[_0x7e0b('0xcd')](_0x1dd816=>Rt(_0x1dd816,this['_model']));if(_0x7e0b('0x7a')===this['_trackFormatChanges']){const _0xed68c3=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,'accept');return this[_0x7e0b('0xb8')](()=>_0xed68c3(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}_0xe10ca[_0x7e0b('0x70')](..._0x2eba05);let _0x3ab87a=!0x0;for(const _0x4a0079 of _0xe10ca)if(!this[_0x7e0b('0xbd')](_0x4a0079)){_0x3ab87a=!0x1;break;}if(_0x3ab87a&&_0x7e0b('0x9a')!==this['_trackFormatChanges']){const _0x228809=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x228809(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}const _0x4f5383=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'];for(const _0x48a5a1 of this['getSuggestions']()){if(_0x48a5a1['author']['id']!=_0x4f5383['id'])continue;if(_0x7e0b('0x84')!=_0x48a5a1[_0x7e0b('0xee')]||_0x48a5a1[_0x7e0b('0xd2')]['formatGroupId']!=_0x3e5e73[_0x7e0b('0x21')])continue;const _0x3a542c=_0x48a5a1[_0x7e0b('0x52')]==_0x6e4355;for(let _0xe60c5e=0x0;_0xe60c5e<_0x2eba05['length'];_0xe60c5e++){const _0x2b99b5=_0x2eba05[_0xe60c5e];for(const _0x1b9cee of _0x48a5a1[_0x7e0b('0xa2')]()){const _0x446ff6=_0x1b9cee[_0x7e0b('0x5d')]();if(_0x2b99b5[_0x7e0b('0xa4')](_0x446ff6)){_0x3a542c?(_0x2eba05[_0x7e0b('0xeb')](_0xe60c5e,0x1),_0xe60c5e--):_0x48a5a1[_0x7e0b('0x113')](_0x1b9cee['name']);break;}}}}if(0x0==_0x2eba05[_0x7e0b('0xbe')])return null;const _0x5d5abc=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x6e4355,_0x7e0b('0xec'));for(const _0x310c95 of this['getSuggestions']())if(_0x310c95[_0x7e0b('0xcf')]['id']==_0x4f5383['id']&&_0x7e0b('0x84')==_0x310c95[_0x7e0b('0xee')]&&_0x310c95[_0x7e0b('0xd2')][_0x7e0b('0x21')]==_0x3e5e73[_0x7e0b('0x21')]&&_0x310c95[_0x7e0b('0x52')]==_0x6e4355&&(_0x5d5abc(_0x310c95[_0x7e0b('0x142')](),_0x2eba05)||_0x5d5abc(_0x2eba05,_0x310c95[_0x7e0b('0x142')]()))){for(const _0x12c45f of _0x2eba05)_0x310c95['addRange'](_0x12c45f);return _0x310c95;}const _0x27953b=_0x1862e6(),_0x11e11f=_0x4f5383['id'],_0xaa4480=_0x7e0b('0x50')+_0x6e4355,_0x519e8a=this['_setSuggestionData']({'id':_0x27953b,'type':_0xaa4480,'data':_0x3e5e73,'createdAt':new Date(),'authorId':_0x11e11f,'attributes':_0x3c12e4});for(const _0xb1f0a9 of _0x2eba05)this['_addSuggestionMarker'](_0xaa4480,_0x27953b,_0x11e11f,_0xb1f0a9,_0x232d62[_0x7e0b('0x8f')]());return _0x519e8a;}[_0x7e0b('0xd')](_0x299b18,_0x3d1fcd=null,_0xc042cb={}){if(_0x299b18[_0x7e0b('0x1c')])return null;const _0x23065f=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x46c732=new _0x491aa7(_0x299b18[_0x7e0b('0x88')],_0x299b18[_0x7e0b('0x2f')]);for(const {suggestion:_0x1838be,meta:_0x25cd15}of this[_0x7e0b('0xd8')](_0x46c732,_0x7e0b('0xc')))if(_0x25cd15[_0x7e0b('0x2a')]&&!_0x25cd15[_0x7e0b('0xf5')]){if(_0x1838be[_0x7e0b('0x4b')]){const _0x20bad6=_0x1838be['getRanges']()[_0x7e0b('0x4a')](_0x5130a8=>_0x7e0b('0xab')!=_0x5130a8[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);_0x20bad6[_0x7e0b('0x93')](_0x508db2=>_0x46c732[_0x7e0b('0x116')](_0x508db2,!0x0))&&_0x1838be[_0x7e0b('0x139')]();if(_0x20bad6['some'](_0x4a6d1b=>_0x4a6d1b[_0x7e0b('0x116')](_0x46c732,!0x0))){const _0x42f404=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('deletion',_0x3d1fcd,_0x7e0b('0xf4'));return this['forceDefaultExecution'](()=>_0x42f404([_0x46c732],null,_0xc042cb)),null;}}else{const _0x263c37=_0x46c732[_0x7e0b('0x137')](_0x1838be['getFirstRange']());null!==_0x263c37&&_0x1838be[_0x7e0b('0x111')]([_0x263c37],null,_0xc042cb);}}if(_0x46c732[_0x7e0b('0x144')](),_0x46c732['isCollapsed']||_0x7e0b('0xab')==_0x46c732[_0x7e0b('0x5f')][_0x7e0b('0x4d')])return null;let _0x650384=null,_0x47e24e=_0x46c732['start'],_0x4b275e=_0x46c732[_0x7e0b('0x2f')];for(const {suggestion:_0x15cfd8,meta:_0x293a5d}of this[_0x7e0b('0xd8')](_0x46c732,'deletion'))if(_0x293a5d[_0x7e0b('0x2a')]){if(_0x15cfd8[_0x7e0b('0x4b')]&&this[_0x7e0b('0x42')]){let _0x3d5cd8=!0x0;for(const _0x453086 of _0x15cfd8[_0x7e0b('0x142')]()){if(_0x453086[_0x7e0b('0x116')](_0x46c732,!0x0))return _0x15cfd8;_0x46c732[_0x7e0b('0x116')](_0x453086)||(_0x3d5cd8=!0x1);}_0x3d5cd8&&_0x15cfd8[_0x7e0b('0x139')]();}else{const _0x5b23d4=_0x15cfd8[_0x7e0b('0xd5')]();if(_0x5b23d4[_0x7e0b('0x116')](_0x46c732,!0x0)){if(!this[_0x7e0b('0x42')]&&_0x293a5d[_0x7e0b('0x6f')])continue;return _0x15cfd8;}_0x47e24e=_0x47e24e[_0x7e0b('0x20')](_0x5b23d4[_0x7e0b('0x88')])?_0x47e24e:_0x5b23d4[_0x7e0b('0x88')],_0x4b275e=_0x4b275e[_0x7e0b('0x8d')](_0x5b23d4[_0x7e0b('0x2f')])?_0x4b275e:_0x5b23d4[_0x7e0b('0x2f')],_0x650384?_0x5b23d4[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x650384[_0x7e0b('0xd5')]()['start'])?(_0x650384['removeMarkers'](),_0x650384=_0x15cfd8):_0x15cfd8[_0x7e0b('0xc3')]():_0x650384=_0x15cfd8;}}if(_0x650384)return this['_setSuggestionRange'](_0x650384,this[_0x7e0b('0xcc')]['createRange'](_0x47e24e,_0x4b275e)),_0x650384;{const _0x5dccee=_0x1862e6(),_0x399c8e=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x47e24e,_0x4b275e),_0x36abf5=_0x23065f['id'],_0x359fca=_0x3d1fcd?_0x7e0b('0x1b')+_0x3d1fcd:_0x7e0b('0x124'),_0x28af88=this[_0x7e0b('0x11a')]({'id':_0x5dccee,'type':_0x359fca,'createdAt':new Date(),'authorId':_0x36abf5,'attributes':_0xc042cb});return this[_0x7e0b('0x49')](_0x359fca,_0x5dccee,_0x36abf5,_0x399c8e),_0x28af88;}}[_0x7e0b('0x44')](_0x264db5,_0x35c65b=_0x7e0b('0x48'),_0x5a1319={}){const _0x25f478=this[_0x7e0b('0x6')][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'],_0x30c39f=_0x264db5[_0x7e0b('0xcd')](_0x35ed13=>new _0x491aa7(_0x35ed13[_0x7e0b('0x88')],_0x35ed13[_0x7e0b('0x2f')])),_0xbabaae=new Set();for(const _0x54a1d8 of _0x30c39f)for(const {suggestion:_0x33a635,meta:_0x259d26}of this[_0x7e0b('0xd8')](_0x54a1d8,_0x7e0b('0xc')))_0x259d26[_0x7e0b('0x2a')]&&!_0x259d26[_0x7e0b('0xf5')]&&_0xbabaae[_0x7e0b('0xac')](_0x33a635);for(const _0x35cb04 of _0xbabaae)if(_0x35cb04[_0x7e0b('0x4b')]){const _0x28d7ba=_0x35cb04[_0x7e0b('0x142')]();(!_0x35cb04['attributes']||!_0x35cb04[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0x28d7ba['every'](_0x3ca08a=>_0x30c39f[_0x7e0b('0x95')](_0x3bcbc3=>_0x3bcbc3['containsRange'](_0x3ca08a,!0x0)))&&_0x35cb04[_0x7e0b('0x139')]());if(_0x30c39f[_0x7e0b('0x93')](_0x865c5=>_0x28d7ba[_0x7e0b('0x95')](_0x27c03c=>_0x27c03c[_0x7e0b('0x116')](_0x865c5,!0x0)))){const _0x2089ca=this['_suggestionFactory']['getSuggestionCallback'](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x2089ca(_0x264db5,null,_0x5a1319)),null;}}else{const _0x394533=_0x35cb04['getFirstRange']();_0x30c39f[_0x7e0b('0x95')](_0x4bc796=>_0x4bc796[_0x7e0b('0x116')](_0x394533,!0x0))&&_0x35cb04[_0x7e0b('0x139')]();if(_0x30c39f['every'](_0x1b1c32=>_0x394533['containsRange'](_0x1b1c32,!0x0))){const _0x53f96d=this[_0x7e0b('0x57')]['getSuggestionCallback']('deletion',_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x53f96d(_0x30c39f,null,_0x5a1319)),null;}}const _0x8e0b2b=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xec'));let _0x1db33f=null;for(const _0x42ee77 of this['getSuggestions']())if(_0x42ee77[_0x7e0b('0xcf')]['id']==_0x25f478['id']&&_0x42ee77[_0x7e0b('0xb7')]&&_0x7e0b('0x124')==_0x42ee77['type']&&_0x42ee77[_0x7e0b('0x52')]==_0x35c65b&&(_0x8e0b2b(_0x42ee77['getRanges'](),_0x30c39f)||_0x8e0b2b(_0x30c39f,_0x42ee77[_0x7e0b('0x142')]()))){if(_0x1db33f){if(_0x42ee77['commentThread']&&_0x42ee77[_0x7e0b('0x112')][_0x7e0b('0xbe')])continue;for(const _0x443fac of _0x42ee77['getRanges']())_0x1db33f[_0x7e0b('0x11d')](_0x443fac)||_0x1db33f[_0x7e0b('0x18')](_0x443fac);_0x42ee77[_0x7e0b('0xc3')]();}else{_0x1db33f=_0x42ee77;for(const _0x74112 of _0x30c39f)_0x42ee77[_0x7e0b('0x11d')](_0x74112)||_0x42ee77[_0x7e0b('0x18')](_0x74112);}}if(_0x1db33f)return _0x1db33f;_0xbabaae[_0x7e0b('0x38')]();for(const _0x17495c of _0x30c39f)for(const {suggestion:_0x20612d,meta:_0x507167}of this['_findSuggestions'](_0x17495c,_0x7e0b('0x124')))_0x507167[_0x7e0b('0x2a')]&&_0xbabaae[_0x7e0b('0xac')](_0x20612d);for(const _0x13c6b6 of _0xbabaae){const _0xb20573=_0x13c6b6[_0x7e0b('0x142')]();if(!_0x5a1319||!_0x5a1319[_0x7e0b('0x13')]){if(_0x30c39f[_0x7e0b('0x93')](_0x52207a=>_0xb20573[_0x7e0b('0x95')](_0x395e33=>_0x395e33['containsRange'](_0x52207a,!0x0))))return _0x13c6b6;}(!_0x13c6b6['attributes']||!_0x13c6b6[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0xb20573[_0x7e0b('0x93')](_0x1d24bc=>_0x30c39f[_0x7e0b('0x95')](_0x47fc67=>_0x47fc67[_0x7e0b('0x116')](_0x1d24bc,!0x0)))&&_0x13c6b6[_0x7e0b('0x139')]());}const _0x3ae1ed=_0x1862e6(),_0x2d0c2c=_0x25f478['id'],_0x343966='deletion:'+_0x35c65b,_0x3014ad=this[_0x7e0b('0x11a')]({'id':_0x3ae1ed,'type':_0x343966,'createdAt':new Date(),'authorId':_0x2d0c2c,'attributes':_0x5a1319});for(const _0x87c642 of _0x30c39f)_0x87c642[_0x7e0b('0x144')](),_0x87c642[_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x87c642[_0x7e0b('0x5f')]['rootName']||this[_0x7e0b('0x49')](_0x343966,_0x3ae1ed,_0x2d0c2c,_0x87c642,_0x232d62['getMultiRangeId']());return _0x3014ad;}[_0x7e0b('0x89')](_0x277bcb,_0x5ec64e){const _0xdda608=_0x277bcb[_0x7e0b('0x9e')]();this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x17ec8a=>{_0x17ec8a[_0x7e0b('0x12f')](_0xdda608,{'range':_0x5ec64e});});}[_0x7e0b('0x9c')](_0x320c47){const _0x279c5a=_0x320c47['id'],_0x7054d5=this[_0x7e0b('0x6')]['config'][_0x7e0b('0xd3')]('collaboration.channelId');this[_0x7e0b('0xb2')][_0x7e0b('0x98')](_0x279c5a)||this[_0x7e0b('0xb2')][_0x7e0b('0x7e')]({'channelId':_0x7054d5,'threadId':_0x279c5a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4dd02e=this[_0x7e0b('0xb2')][_0x7e0b('0x1a')](_0x279c5a);_0x4dd02e[_0x7e0b('0xef')](_0x7e0b('0xb1')),_0x4dd02e['isRemovable']=!0x1,_0x320c47[_0x7e0b('0x112')]=_0x4dd02e;}[_0x7e0b('0x46')](_0xa63780,_0x56887d,_0x32600f,_0x2753da){if(_0xa63780[_0x7e0b('0xee')]!=_0x56887d||_0xa63780['subType']!=_0x32600f||_0xa63780[_0x7e0b('0x3f')]['id']!=_0x2753da)throw this[_0x7e0b('0x6')][_0x7e0b('0xe0')](_0x7e0b('0xdb')),new _0x58fb70('track-changes-suggestion-data-mismatch',this);}[_0x7e0b('0x34')](_0x40532b,_0x22123c){const _0x335a3e=_0x40532b[_0x7e0b('0xd5')]();if(_0x22123c[_0x7e0b('0xa4')](_0x335a3e))_0x40532b[_0x7e0b('0xc3')]();else{if(_0x335a3e['containsRange'](_0x22123c)){const _0x76ec58=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this['_setSuggestionRange'](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0x76ec58));const _0x2cb229=_0x1862e6(),_0x5654c8=_0x40532b[_0x7e0b('0x3f')]['id'],_0x1a965e=_0x40532b[_0x7e0b('0xee')]+':'+_0x40532b[_0x7e0b('0x52')];this['_setSuggestionData']({'id':_0x2cb229,'type':_0x1a965e,'createdAt':new Date(),'authorId':_0x5654c8,'data':_0x40532b[_0x7e0b('0xd2')],'attributes':_0x40532b[_0x7e0b('0x2b')]});const _0xf3b54c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x2f')][_0x7e0b('0x32')],_0x7e0b('0x5b')),_0x2d1199=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0xf3b54c,_0x335a3e[_0x7e0b('0x2f')]);this['_addSuggestionMarker'](_0x1a965e,_0x2cb229,_0x5654c8,_0x2d1199);}else{if(_0x335a3e[_0x7e0b('0xdc')](_0x22123c[_0x7e0b('0x88')])){const _0xedaf8c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this[_0x7e0b('0x89')](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0xedaf8c));}else{const _0x455e20=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c['end']['parent'],_0x7e0b('0x5b'));this[_0x7e0b('0x89')](_0x40532b,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x455e20,_0x335a3e['end']));}}}}[_0x7e0b('0xbd')](_0x5cb8a7){for(const {suggestion:_0xd79f82,meta:_0x128edb}of this[_0x7e0b('0xd8')](_0x5cb8a7,_0x7e0b('0xc'))){if(!_0x128edb['isOwn'])continue;const _0x4de765=_0xd79f82[_0x7e0b('0x142')]();for(const _0x3dcc9e of _0x4de765)if(!_0x5cb8a7[_0x7e0b('0x11e')](_0x3dcc9e)[_0x7e0b('0xbe')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x589c04){const _0x1863b2=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')[_0x7e0b('0xa3')](_0x589c04);if(!_0x1863b2)throw new _0x58fb70(_0x7e0b('0x5c'),this);return _0x1863b2;}['_getExternalAuthor'](_0x58818f){const _0x577637=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9')),_0x3cd3ff=_0x1685bc(_0x7e0b('0x23')+_0x58818f),_0x3973f5=_0x577637['getUser'](_0x3cd3ff);return _0x3973f5||_0x577637['addUser']({'id':_0x3cd3ff,'name':_0x58818f});}[_0x7e0b('0x10d')](_0x812417,_0x5e45c3,_0x260b29,_0x332367,_0x3f49c6){const _0x4d9246=this[_0x7e0b('0x1d')](_0x332367),_0x26358a=this[_0x7e0b('0x57')][_0x7e0b('0x71')](_0x812417,_0x5e45c3,_0x260b29,_0x4d9246,_0x3f49c6,_0x4aa897=>this[_0x7e0b('0xa0')](_0x260b29,{'attributes':_0x4aa897}));return this['listenTo'](_0x26358a,_0x7e0b('0xf4'),()=>{this['_updateSuggestionData'](_0x260b29,{'state':'accepted'});},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0xd7')](_0x26358a,_0x7e0b('0x139'),()=>{this[_0x7e0b('0xa0')](_0x260b29,{'state':_0x7e0b('0x132')});},{'priority':'high'}),this[_0x7e0b('0x36')][_0x7e0b('0x2c')](_0x260b29,_0x26358a),this['_suggestionState']['set'](_0x26358a,_0x7e0b('0x0')),_0x26358a;}[_0x7e0b('0xe6')](_0x32fd19){const _0x2c77f0=_0x32fd19['split'](':');return{'group':_0x2c77f0[0x0],'type':_0x2c77f0[0x1],'subType':_0x2c77f0[_0x7e0b('0xbe')]>=0x5?_0x2c77f0[0x2]:null,'id':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x2]:_0x2c77f0[0x3],'authorId':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x3]:_0x2c77f0[0x4],'markerCount':0x6==_0x2c77f0[_0x7e0b('0xbe')]?_0x2c77f0[0x5]:null};}['_breakSuggestionMarker'](_0x31b3f4,_0x5c9ab7,_0x5914f5){const _0x2ada24=_0x31b3f4[_0x7e0b('0xd5')](),_0x45039e=_0x2ada24[_0x7e0b('0x88')],_0x42807e=_0x2ada24[_0x7e0b('0x2f')];this[_0x7e0b('0x89')](_0x31b3f4,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x45039e,_0x5c9ab7));const _0x9c365b=_0x1862e6(),_0x5312d8=_0x31b3f4[_0x7e0b('0x3f')]['id'],_0x59a7ae=_0x31b3f4['type']+(_0x31b3f4[_0x7e0b('0x52')]?':'+_0x31b3f4['subType']:'');this[_0x7e0b('0x11a')]({'id':_0x9c365b,'type':_0x59a7ae,'createdAt':new Date(),'authorId':_0x5312d8,'originalSuggestionId':_0x31b3f4['id'],'attributes':_0x31b3f4[_0x7e0b('0x2b')],'data':_0x31b3f4['data']}),_0x7e0b('0x84')==_0x31b3f4[_0x7e0b('0xee')]&&(_0x5914f5=this['_model'][_0x7e0b('0x26')](_0x5914f5[_0x7e0b('0x32')])),this[_0x7e0b('0x49')](_0x59a7ae,_0x9c365b,_0x5312d8,this['_model'][_0x7e0b('0x51')](_0x5914f5,_0x42807e));}[_0x7e0b('0xd8')](_0x2503d5,_0x22187c=null){const _0x486438=[],_0x45aef1=this['_model']['schema'],_0x2ca04e=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')]('Users')['me'];for(const _0x16f974 of this[_0x7e0b('0x7')]())if(_0x16f974[_0x7e0b('0xb7')]&&(!_0x22187c||_0x16f974[_0x7e0b('0xee')]==_0x22187c))for(const _0x38d4e1 of _0x16f974[_0x7e0b('0x142')]()){const _0x2298aa=_0x2503d5[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x2f')])||_0x2503d5[_0x7e0b('0x2f')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x88')]);if(_0x2298aa||_0x2503d5['getIntersection'](_0x38d4e1)){const _0x4968ee=_0x2503d5['containsRange'](_0x38d4e1)&&Bt(_0x45aef1,_0x38d4e1[_0x7e0b('0x88')],_0x2503d5),_0x3ef930=_0x38d4e1[_0x7e0b('0x116')](_0x2503d5)&&Bt(_0x45aef1,_0x2503d5[_0x7e0b('0x88')],_0x38d4e1);_0x486438[_0x7e0b('0x70')]({'suggestion':_0x16f974,'meta':{'isOwn':_0x2ca04e==_0x16f974[_0x7e0b('0xcf')],'isNextTo':_0x2298aa,'isInsideObject':_0x4968ee,'containsRangeInObject':_0x3ef930}});break;}}return _0x486438;}['_addSuggestionMarker'](_0x1dba94,_0x54cec8,_0x195ff6,_0x4b22ac,_0x48761f){this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x47979d=>{let _0x3a0465=_0x7e0b('0xce')+_0x1dba94+':'+_0x54cec8+':'+_0x195ff6;_0x48761f&&(_0x3a0465=_0x3a0465+':'+_0x48761f),_0x47979d['addMarker'](_0x3a0465,{'range':_0x4b22ac,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x7e0b('0x2e')](_0x47bf86){const _0x49b64e=_0x47bf86[_0x7e0b('0xf1')],_0x4cb72b=_0x47bf86[_0x7e0b('0xa9')];_0x47bf86[_0x7e0b('0xf1')]=null,null!=_0x49b64e&&(_0x49b64e[_0x7e0b('0xa9')]=null),_0x47bf86[_0x7e0b('0xa9')]=null,null!=_0x4cb72b&&(_0x4cb72b[_0x7e0b('0xf1')]=null),_0x7e0b('0x45')==this[_0x7e0b('0x87')]['get'](_0x47bf86)&&(this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x47bf86,'removed'),this[_0x7e0b('0x8e')](_0x7e0b('0x33'),_0x47bf86,_0x49b64e,_0x4cb72b));}[_0x7e0b('0x11a')](_0x366703){const _0x1bd044=_0x366703['id'],_0x38ce50=this[_0x7e0b('0xe1')](_0x366703);if(this[_0x7e0b('0xa8')]&&this[_0x7e0b('0xa8')][_0x7e0b('0x17')]){const _0x51a7db=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('PendingActions'),_0x5eb50d=_0x38ce50['hasComments'],_0x5c1c1c=_0x38ce50['subType']?_0x38ce50['type']+':'+_0x38ce50[_0x7e0b('0x52')]:_0x38ce50[_0x7e0b('0xee')],_0x455b9f=this[_0x7e0b('0x6')][_0x7e0b('0x134')],_0x32a96a=_0x51a7db[_0x7e0b('0xac')](_0x25f2c4(_0x455b9f,_0x7e0b('0x29'))),_0x1ada71={'id':_0x1bd044,'type':_0x5c1c1c,'hasComments':_0x5eb50d,'data':_0x366703['data']||null,'originalSuggestionId':_0x366703[_0x7e0b('0x60')]||null,'attributes':_0x38ce50['attributes']};this[_0x7e0b('0xa8')][_0x7e0b('0x17')](_0x1ada71)['then'](_0x3e3a8b=>{_0x38ce50[_0x7e0b('0xb0')]=!0x0,_0x51a7db[_0x7e0b('0x107')](_0x32a96a),_0x3e3a8b&&_0x3e3a8b[_0x7e0b('0x43')]&&(this['_suggestions'][_0x7e0b('0xd3')](_0x1bd044)[_0x7e0b('0x43')]=_0x3e3a8b[_0x7e0b('0x43')]);})[_0x7e0b('0x5a')](_0x2cf0a9=>{throw _0x2f4b48(_0x7e0b('0x10')),this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x8a')]({'isUndoable':!0x1},()=>{_0x38ce50[_0x7e0b('0x139')]();}),_0x38ce50['stopListening'](),this[_0x7e0b('0x36')][_0x7e0b('0x15')](_0x38ce50['id']),this[_0x7e0b('0x87')][_0x7e0b('0x15')](_0x38ce50),_0x2cf0a9;});}return _0x38ce50;}['_updateSuggestionData'](_0x2b0e1d,_0x283c51){const _0x1d07bb=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x79')),_0x479a9e=this[_0x7e0b('0xfc')](_0x2b0e1d);if(this[_0x7e0b('0xa8')]&&this['_adapter'][_0x7e0b('0x131')]){if(_0x479a9e[_0x7e0b('0xb0')]){const _0x1024b0=_0x1d07bb['add'](_0x25f2c4(this[_0x7e0b('0x6')]['locale'],_0x7e0b('0x29')));this[_0x7e0b('0xa8')][_0x7e0b('0x131')](_0x2b0e1d,_0x283c51)[_0x7e0b('0xae')](()=>{_0x1d07bb['remove'](_0x1024b0);});}else _0x479a9e['on'](_0x7e0b('0x10c'),()=>{this['_updateSuggestionData'](_0x2b0e1d,_0x283c51);});}}[_0x7e0b('0x39')](_0x549c35){if(!this[_0x7e0b('0xa8')]||!this[_0x7e0b('0xa8')][_0x7e0b('0xfc')])throw new _0x58fb70(_0x7e0b('0x86'),this);return this[_0x7e0b('0xa8')]['getSuggestion'](_0x549c35);}['_handleNewSuggestionMarker'](_0x309d92){const {id:_0x74948f,type:_0x334e56,subType:_0x188c97,authorId:_0x7ddaf6}=this[_0x7e0b('0xe6')](_0x309d92),_0x5d46f2=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x74948f)||this[_0x7e0b('0x10d')](_0x334e56,_0x188c97,_0x74948f,_0x7ddaf6,{});switch(this[_0x7e0b('0x46')](_0x5d46f2,_0x334e56,_0x188c97,_0x7ddaf6),this[_0x7e0b('0x87')][_0x7e0b('0xd3')](_0x5d46f2)){case _0x7e0b('0x0'):this[_0x7e0b('0x39')](_0x74948f)[_0x7e0b('0xae')](_0x2bc9c2=>{let _0x54ab26=Promise[_0x7e0b('0x114')]();_0x2bc9c2[_0x7e0b('0xa7')]&&(_0x54ab26=this[_0x7e0b('0xb2')]['fetchCommentThread']({'channelId':this[_0x7e0b('0x6')][_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x11c')),'threadId':_0x74948f})),_0x54ab26[_0x7e0b('0xae')](()=>{this[_0x7e0b('0xe1')](_0x2bc9c2)['_saved']=!0x0;});}),this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x5d46f2,_0x7e0b('0xb5'));break;case _0x7e0b('0xf9'):this[_0x7e0b('0xa0')](_0x74948f,{'state':'open'});case _0x7e0b('0x138'):this[_0x7e0b('0x87')]['set'](_0x5d46f2,_0x7e0b('0x45')),this[_0x7e0b('0x8e')]('suggestionLoaded',_0x5d46f2);break;case _0x7e0b('0x45'):this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x5d46f2);}return _0x5d46f2[_0x7e0b('0xc9')](_0x309d92),_0x5d46f2;}[_0x7e0b('0xff')](_0x3cde14){const _0x547ed0=Array[_0x7e0b('0xa1')](_0x3cde14)[_0x7e0b('0x4a')](_0x7f6afb=>!_0x7f6afb[_0x7e0b('0x4b')]),_0x255e6b=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0})[_0x7e0b('0x4a')](_0x433823=>!_0x433823[_0x7e0b('0x4b')]),_0x435280=_0x255e6b['filter'](_0x537a8d=>!_0x3cde14[_0x7e0b('0xdf')](_0x537a8d)),_0x96803f=new Map(_0x255e6b['map'](_0x14ca1f=>[_0x14ca1f,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x14ca1f[_0x7e0b('0xee')],_0x14ca1f[_0x7e0b('0x52')],_0x7e0b('0x136'))])),_0x3d12e7=new Map(_0x255e6b['map'](_0x2d1eb5=>[_0x2d1eb5,_0x2d1eb5['getFirstRange']()])),_0x469c83=new Set(),_0x288ac0=new Set();for(let _0x5009a4=0x0;_0x5009a4<_0x547ed0[_0x7e0b('0xbe')];_0x5009a4++)_0x2529fd(_0x547ed0[_0x5009a4],_0x547ed0,_0x5009a4+0x1);for(let _0x10e7eb=0x0;_0x10e7eb<_0x547ed0[_0x7e0b('0xbe')];_0x10e7eb++)_0x2529fd(_0x547ed0[_0x10e7eb],_0x435280,0x0);for(let _0x1ee8e3=0x0;_0x1ee8e3<_0x547ed0[_0x7e0b('0xbe')];_0x1ee8e3++){const _0x2f5dd0=_0x547ed0[_0x1ee8e3];!_0x288ac0[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xf1')]&&(_0x2f5dd0[_0x7e0b('0xf1')]['next']===_0x2f5dd0&&(_0x2f5dd0['previous'][_0x7e0b('0xa9')]=null),_0x2f5dd0[_0x7e0b('0xf1')]=null),!_0x469c83[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xa9')]&&(_0x2f5dd0['next'][_0x7e0b('0xf1')]===_0x2f5dd0&&(_0x2f5dd0[_0x7e0b('0xa9')]['previous']=null),_0x2f5dd0[_0x7e0b('0xa9')]=null);}function _0x2529fd(_0xdaf3da,_0x525ae1,_0x2a83ff){for(let _0x446f80=_0x2a83ff;_0x446f80<_0x525ae1[_0x7e0b('0xbe')];_0x446f80++){const _0x308cc8=_0x55c8e3(_0xdaf3da,_0x525ae1[_0x446f80]);_0x308cc8&&(_0x308cc8[0x0][_0x7e0b('0xa9')]=_0x308cc8[0x1],_0x308cc8[0x1][_0x7e0b('0xf1')]=_0x308cc8[0x0],_0x469c83[_0x7e0b('0xac')](_0x308cc8[0x0]),_0x288ac0['add'](_0x308cc8[0x1]));}}function _0x55c8e3(_0x1d8a79,_0x31eb6c){if(_0x1d8a79[_0x7e0b('0xcf')]['id']!==_0x31eb6c[_0x7e0b('0xcf')]['id'])return null;const _0x1f6a7d=_0x96803f[_0x7e0b('0xd3')](_0x1d8a79)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7['get'](_0x31eb6c));if(!_0x1f6a7d)return null;return _0x96803f[_0x7e0b('0xd3')](_0x31eb6c)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7[_0x7e0b('0xd3')](_0x31eb6c))?_0x1f6a7d[0x1][_0x7e0b('0x112')]&&_0x1f6a7d[0x1][_0x7e0b('0x112')]['length']?null:_0x1f6a7d:null;}}[_0x7e0b('0x1')](_0x1f63a4){const _0x4e7561=Array[_0x7e0b('0xa1')](_0x1f63a4),_0x1ed4ab=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0}),_0x1276d4=_0x1ed4ab[_0x7e0b('0x4a')](_0x88de27=>!_0x1f63a4['has'](_0x88de27)),_0x3aa887=new Map(_0x4e7561[_0x7e0b('0xcd')](_0x39253c=>[_0x39253c,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x39253c[_0x7e0b('0xee')],_0x39253c[_0x7e0b('0x52')],'join')])),_0x993455=new Map(_0x1ed4ab[_0x7e0b('0xcd')](_0x306e60=>[_0x306e60,_0x306e60[_0x7e0b('0x142')]()]));for(let _0x5d8f41=0x0;_0x5d8f41<_0x4e7561[_0x7e0b('0xbe')];_0x5d8f41++){if(_0x34e6d8(this,_0x4e7561[_0x5d8f41],_0x4e7561,_0x5d8f41+0x1))return!0x0;}for(let _0x4b45c4=0x0;_0x4b45c4<_0x4e7561[_0x7e0b('0xbe')];_0x4b45c4++){if(_0x34e6d8(this,_0x4e7561[_0x4b45c4],_0x1276d4,0x0))return!0x0;}return!0x1;function _0x34e6d8(_0x28102d,_0x467bc7,_0x27b67e,_0x1bbb3b){for(let _0x584968=_0x1bbb3b;_0x584968<_0x27b67e[_0x7e0b('0xbe')];_0x584968++){const _0x24447e=_0x27b67e[_0x584968];if(_0x24447e['type']!==_0x467bc7[_0x7e0b('0xee')]||_0x24447e[_0x7e0b('0xcf')]['id']!==_0x467bc7[_0x7e0b('0xcf')]['id']||_0x24447e[_0x7e0b('0x52')]!==_0x467bc7[_0x7e0b('0x52')])continue;const _0x201897=_0x3aa887[_0x7e0b('0xd3')](_0x467bc7),_0x1bfca2=_0x993455[_0x7e0b('0xd3')](_0x467bc7),_0x3496a9=_0x993455['get'](_0x24447e),_0x1e11a7=_0x467bc7['commentThread']&&_0x467bc7[_0x7e0b('0x112')]['length'],_0x295116=_0x24447e[_0x7e0b('0x112')]&&_0x24447e[_0x7e0b('0x112')][_0x7e0b('0xbe')];if(!_0x1e11a7&&_0x201897(_0x3496a9,_0x1bfca2))return _0x28102d[_0x7e0b('0x118')](_0x24447e,_0x467bc7),_0x993455['delete'](_0x467bc7),!0x0;if(!_0x295116&&_0x201897(_0x1bfca2,_0x3496a9))return _0x28102d['_joinSuggestions'](_0x467bc7,_0x24447e),_0x993455[_0x7e0b('0x15')](_0x24447e),!0x0;}return!0x1;}}[_0x7e0b('0x118')](_0x2927a7,_0x5442ec){if(_0x2927a7[_0x7e0b('0x4b')])for(const _0x2f22a6 of _0x5442ec['getRanges']())_0x2927a7[_0x7e0b('0x18')](_0x2f22a6);else{const _0x270e52=_0x5442ec[_0x7e0b('0xd5')]()['end'];this[_0x7e0b('0x89')](_0x2927a7,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x2927a7[_0x7e0b('0xd5')]()[_0x7e0b('0x88')],_0x270e52));}_0x5442ec[_0x7e0b('0xc3')]();}}class Dt{constructor(_0xd47833){this['_editor']=_0xd47833,this[_0x7e0b('0xcc')]=_0xd47833[_0x7e0b('0x91')],this[_0x7e0b('0x3b')]=new Map(),this[_0x7e0b('0x78')]=new Map(),this[_0x7e0b('0x4e')]();}[_0x7e0b('0x71')](_0x48045c,_0x363884,_0x3a9931,_0x374b16,_0x12741e,_0x2bacbc){return new _0x232d62(this[_0x7e0b('0xcc')],{'type':_0x48045c,'subType':_0x363884,'id':_0x3a9931,'author':_0x374b16,'creator':_0x374b16,'attributes':_0x12741e,'onAttributesChange':_0x2bacbc,'onAccept':(..._0x7ed563)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,_0x7e0b('0xf4'))(..._0x7ed563),'onDiscard':(..._0x412786)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,'discard')(..._0x412786)});}[_0x7e0b('0xf0')](_0x121069,_0x681c9c,_0x198eac,_0x21d725){const _0x3ee56d=_0x121069+':'+_0x681c9c+':'+_0x198eac;this[_0x7e0b('0x3b')]['set'](_0x3ee56d,_0x21d725);}[_0x7e0b('0xe4')](_0x1233eb,_0x4227e2,_0x1df37a){const _0x3f08ea=_0x1233eb+':'+_0x4227e2+':'+_0x1df37a;return this[_0x7e0b('0x3b')][_0x7e0b('0xd3')](_0x3f08ea)||this[_0x7e0b('0x78')][_0x7e0b('0xd3')](_0x1233eb+':'+_0x1df37a);}[_0x7e0b('0x4e')](){const _0x1c305a=()=>{},_0x4e563c=_0x278653=>{_0x278653[_0x7e0b('0x106')]((_0x5dcc5a,_0x5213df)=>_0x5dcc5a[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x5213df[_0x7e0b('0x88')])?0x1:-0x1),this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0xabd811=>{for(const _0x186086 of _0x278653){let _0x2a854e;_0x2a854e=_0x186086[_0x7e0b('0x2f')]['isAtEnd']&&_0x186086['end'][_0x7e0b('0x32')]==_0x186086['start'][_0x7e0b('0x12e')]?_0xabd811['createSelection'](_0x186086[_0x7e0b('0x88')][_0x7e0b('0x12e')],'on'):_0xabd811[_0x7e0b('0x103')](_0x186086),this[_0x7e0b('0xcc')][_0x7e0b('0x141')](_0x2a854e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18a1b2=(_0x4907b5,_0x227bb5)=>{this['_model'][_0x7e0b('0xbc')](_0x1bba84=>{const {commandName:_0x575e40,commandParams:_0x595e6b=[]}=_0x227bb5,_0x1034e5=_0x4907b5[_0x7e0b('0xcd')](_0x46e38f=>(_t(_0x46e38f)&&(_0x46e38f=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x46e38f[_0x7e0b('0x2f')])),_0x46e38f))[_0x7e0b('0x4a')](_0x4dce27=>'$graveyard'!==_0x4dce27[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);if(_0x1034e5[_0x7e0b('0xbe')]<0x1)return;const _0x5ba33c=Array[_0x7e0b('0xa1')](this['_model'][_0x7e0b('0xf8')][_0x7e0b('0x7d')]['getRanges']())['map'](_0x350b7f=>_0x491aa7[_0x7e0b('0x31')](_0x350b7f));_0x1bba84[_0x7e0b('0x61')](_0x1034e5);for(const _0x229aae of this[_0x7e0b('0xb4')][_0x7e0b('0xc2')][_0x7e0b('0xc2')]())_0x229aae[_0x7e0b('0x11')]();_0x595e6b[_0x7e0b('0x70')]({'forceDefaultExecution':!0x0}),this[_0x7e0b('0xb4')][_0x7e0b('0x121')](_0x575e40,..._0x595e6b);const _0x528e92=_0x5ba33c[_0x7e0b('0x4a')](_0x1ac59c=>'$graveyard'!=_0x1ac59c[_0x7e0b('0x5f')]['rootName']);_0x528e92['length']>0x0&&_0x1bba84['setSelection'](_0x528e92);for(const _0x28348a of _0x5ba33c)_0x28348a[_0x7e0b('0x144')]();});},_0x17817f=(_0x5106cc,_0x4282c3)=>0x1==_0x5106cc[_0x7e0b('0xbe')]&&0x1==_0x4282c3[_0x7e0b('0xbe')]&&_0x5106cc[0x0][_0x7e0b('0x2f')]['isEqual'](_0x4282c3[0x0][_0x7e0b('0x88')]),_0x26b62d=(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1)=>xt(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1,this[_0x7e0b('0xcc')])?[_0x1f1d85,_0x37807b]:xt(_0x37807b,_0x1f1d85,_0x299fd1,_0x4edfae,this[_0x7e0b('0xcc')])?[_0x37807b,_0x1f1d85]:null;this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xea'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('insertion:discard',_0x4e563c),this['_defaultCallbacks'][_0x7e0b('0x2c')]('insertion:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')](_0x7e0b('0x12b'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xc7'),_0x4e563c),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('deletion:discard',_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x117'),_0x17817f),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x12c'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x90'),_0x18a1b2),this['_defaultCallbacks']['set'](_0x7e0b('0x9d'),_0x1c305a),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatInline:join',_0x17817f),this[_0x7e0b('0x78')]['set'](_0x7e0b('0xdd'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x24'),_0x18a1b2),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x99'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('formatBlock:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatBlock:chain',_0x1c305a);}}function Bt(_0x7cdbb3,_0x585bb4,_0xfcb79b){for(const _0x4d0682 of _0x585bb4['parent'][_0x7e0b('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d0682['root']==_0x4d0682)return!0x1;if(!_0xfcb79b[_0x7e0b('0x54')](_0x4d0682))return!0x1;if(_0x7cdbb3['isObject'](_0x4d0682)||_0x7cdbb3[_0x7e0b('0x12a')](_0x4d0682))return!0x0;}return!0x1;}function _t(_0xcd12a6){return _0xcd12a6['end'][_0x7e0b('0x32')]==_0xcd12a6[_0x7e0b('0x88')]['nodeAfter']&&_0xcd12a6['end']['isAtStart'];}function Mt(_0x563208,_0x554fde,_0x3791c2,_0x2bd65d){const _0x155f4d=_0x5df75d=>!_0x5df75d['item']['is']('$textProxy')&&!_0x2bd65d[_0x7e0b('0x3d')](_0x5df75d[_0x7e0b('0x83')]),_0x2886a4=_0x563208[_0x7e0b('0x88')][_0x7e0b('0xc1')](_0x155f4d),_0x324c1c=_0x563208['end'][_0x7e0b('0xc1')](_0x155f4d,{'direction':'backward'});return(!_0x563208[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x2886a4)||!_0x563208['end']['isEqual'](_0x324c1c))&&(_0x2886a4['isBefore'](_0x324c1c)?_0x3791c2[_0x7e0b('0x12f')](_0x554fde,{'range':_0x3791c2[_0x7e0b('0x51')](_0x2886a4,_0x324c1c)}):_0x3791c2[_0x7e0b('0x113')](_0x554fde),!0x0);}function $t(_0x2120ff){return _0x1685bc(_0x2120ff);}function Nt(_0x526a58){const _0x5a52dd=_0x526a58[_0x7e0b('0x88')][_0x7e0b('0x12e')];return _0x5a52dd&&_0x5a52dd['is'](_0x7e0b('0xde'));}function Rt(_0x1f556a,_0x905b13){const _0x16dbb7=_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1f556a)||_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x68')](_0x1f556a);return _0x905b13['createRange'](_0x905b13[_0x7e0b('0xda')](_0x1f556a,'before'),_0x16dbb7?_0x905b13[_0x7e0b('0x6c')](_0x1f556a):_0x905b13['createPositionAt'](_0x1f556a,'end'));}function xt(_0x2ec874,_0xdcdf5,_0x42ca3a,_0x3cc74c,_0x2f36e9){if(_0x42ca3a['end'][_0x7e0b('0xa4')](_0x3cc74c[_0x7e0b('0x88')]))return!0x0;if(_0x2ec874[_0x7e0b('0xee')]!=_0xdcdf5['type'])return!0x1;if(!_0x42ca3a[_0x7e0b('0x2f')][_0x7e0b('0x129')](_0x3cc74c['start']))return!0x1;const _0x46cd38=_0x2f36e9[_0x7e0b('0x51')](_0x42ca3a['end'],_0x3cc74c[_0x7e0b('0x88')])[_0x7e0b('0x14')]();for(const _0x25b06a of _0x46cd38)if([_0x7e0b('0xa'),_0x7e0b('0x104')]['includes'](_0x25b06a[_0x7e0b('0xee')])&&_0x2f36e9[_0x7e0b('0x7b')][_0x7e0b('0x12a')](_0x25b06a[_0x7e0b('0x83')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5cb8=['commentThread','comments.maxCommentCharsWhenCollapsed','type','getByInnerView','isOn','_handleSuggestionControllerDelayed','CommentView','getAllAdjacentSuggestions','head','_descriptionFactory','arrowView','acceptAllSuggestions','model','acceptSelectedSuggestions','getDescriptions','getMarkerNames','innerView','push','acceptButton','descriptionParts','_viewToController','discardSelectedSuggestions','buttonView','_disableComments','commands','createAnnotation','has','change:activeAnnotations','editing','_initializeController','Annotations','init','EditorAnnotations','actionView','_destroyController','destroy','Discard\x20all\x20selected\x20suggestions','_bindAnnotationToEditors','from','mainView','refreshSelectedViews','hasSuggestion','Track\x20changes','lowest','isDirty','get','Accept\x20all\x20selected\x20suggestions','isMultiRange','discardButton','_createUIButton','delete','bind','clear','Accept\x20all\x20suggestions','some','requires','suggestion-','unbind','source','trackChanges.disableComments','getRanges','values','activeMarkers','change:previous','focus','suggestionUnloaded','_suggestionToController','size','registerAnnotation','getSuggestion','trackChanges','locale','config','define','filter','_handleControllerBuffer','TrackChangesUI','comments','createAnnotationView','view','execute','add','length','isEnabled','_updateController','addSourceCollector','CommentsUI','getMarkers','editor','button','_refreshActiveMarkers','plugins','isInContent','activeAnnotations','addComment','commandName','set','SuggestionThreadView','_annotationViews','separator','discardAllSuggestions','listenTo','trackChanges.SuggestionThreadView','map','CommentsRepository','toMany','getJoined','TrackChangesEditing'];(function(_0x52dfd5,_0x5cb8a5){const _0x369e93=function(_0x11cd41){while(--_0x11cd41){_0x52dfd5['push'](_0x52dfd5['shift']());}};_0x369e93(++_0x5cb8a5);}(_0x5cb8,0x1c0));const _0x369e=function(_0x52dfd5,_0x5cb8a5){_0x52dfd5=_0x52dfd5-0x0;let _0x369e93=_0x5cb8[_0x52dfd5];return _0x369e93;};import{Plugin as _0xf1c17d}from'ckeditor5/src/core';import{Collection as _0x48a5f1}from'ckeditor5/src/utils';import{Model as _0x245d65,SplitButtonView as _0x23c9b7,createDropdown as _0x285f00,addListToDropdown as _0x396e0f}from'ckeditor5/src/ui';import{Users as _0x576247,getDateTimeFormatter as _0x512c87,getAllMarkersDomElementsSorted as _0x18f16f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2da108 from'./trackchangesediting';import _0x4b27a4 from'./ui/suggestioncontroller';import _0x53df52 from'./ui/view/suggestionthreadview';import{getTranslation as _0x31e384}from'./utils/common-translations';import _0x403ff9 from'../theme/icons/track-changes.svg';export default class d extends _0xf1c17d{static get[_0x369e('0x27')](){return[_0x2da108,_0x576247,_0x369e('0x58'),_0x369e('0xe'),_0x369e('0x10')];}static get['pluginName'](){return _0x369e('0x3c');}constructor(_0x549761){super(_0x549761),this['_suggestionToController']=new Map(),this[_0x369e('0x4')]=new Map(),this[_0x369e('0x52')]=new Map(),this[_0x369e('0x3b')]=new Map();const _0x16a8b6=this[_0x369e('0x48')][_0x369e('0x38')];_0x16a8b6[_0x369e('0x39')](_0x369e('0x56'),_0x53df52),_0x16a8b6[_0x369e('0x39')](_0x369e('0x2b'),!0x1),this[_0x369e('0x7')]=_0x16a8b6[_0x369e('0x1d')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x306b4f,_0x4d009f){0x0===this[_0x369e('0x3b')][_0x369e('0x33')]&&setTimeout(()=>{for(const [_0xe0a38e,_0x31873c]of this[_0x369e('0x3b')]){const _0xa38bd2=this['_suggestionToController'][_0x369e('0xa')](_0xe0a38e);_0xa38bd2||_0x31873c?_0xa38bd2&&_0x31873c&&this[_0x369e('0x12')](_0xe0a38e):this[_0x369e('0xd')](_0xe0a38e);}this['editor'][_0x369e('0x4b')][_0x369e('0x1d')](_0x369e('0x10'))[_0x369e('0x18')](),this[_0x369e('0x4a')](),this[_0x369e('0x3b')][_0x369e('0x24')]();},0xa),this[_0x369e('0x3b')]['set'](_0x306b4f,_0x4d009f);}[_0x369e('0xf')](){const _0x5dcec3=this['editor'],_0x3b083f=_0x5dcec3[_0x369e('0x4b')]['get'](_0x369e('0x5b')),_0x3ead17=_0x5dcec3['plugins'][_0x369e('0x1d')](_0x369e('0xe')),_0x8281b0=_0x5dcec3[_0x369e('0x4b')]['get'](_0x369e('0x10')),_0x155568=_0x5dcec3[_0x369e('0x4b')][_0x369e('0x1d')](_0x369e('0x58'));_0x5dcec3['ui']['componentFactory'][_0x369e('0x41')](_0x369e('0x36'),_0x3f1bf1=>this[_0x369e('0x21')](_0x3f1bf1)),_0x8281b0[_0x369e('0x45')](()=>{const _0x17d926=[];for(const [_0x461f30,_0x5957c1]of Array[_0x369e('0x16')](this[_0x369e('0x32')])){const _0x5304c0=_0x461f30[_0x369e('0x63')](),_0x2c6a81=[];for(const _0x7ae18d of _0x5304c0){if(!_0x7ae18d['isInContent'])continue;if(_0x7ae18d[_0x369e('0x1f')]){_0x2c6a81['push'](..._0x7ae18d[_0x369e('0x2c')]());continue;}const _0x42bb3f=_0x7ae18d['getFirstRange']();if(_0x2c6a81[_0x369e('0x42')]>0x0){const _0x2cb7a0=_0x2c6a81[0x0][_0x369e('0x5a')](_0x42bb3f);if(_0x2cb7a0){_0x2c6a81[0x0]=_0x2cb7a0;continue;}}_0x2c6a81[_0x369e('0x1')](_0x42bb3f);}_0x17d926[_0x369e('0x1')]([_0x5957c1['view'],_0x2c6a81]);}return _0x17d926;}),this[_0x369e('0x55')](_0x3b083f,'suggestionLoaded',(_0x5ce754,_0x4603f3)=>{this[_0x369e('0x55')](_0x4603f3,_0x369e('0x2f'),(_0x282f1d,_0x33760d,_0x2bdfeb,_0x3406b7)=>{_0x4603f3[_0x369e('0x4c')]&&(null==_0x2bdfeb?(this[_0x369e('0x44')](_0x3406b7[_0x369e('0x64')]),this[_0x369e('0x61')](_0x4603f3,!0x1)):(this[_0x369e('0x44')](_0x2bdfeb[_0x369e('0x64')]),this[_0x369e('0x61')](_0x4603f3,!0x0)));}),null===_0x4603f3['previous']?this[_0x369e('0x61')](_0x4603f3,!0x1):this['_updateController'](_0x4603f3['head']);}),this[_0x369e('0x55')](_0x3b083f,_0x369e('0x31'),(_0x3d23f0,_0x467aac,_0x31d280)=>{this['stopListening'](_0x467aac,_0x369e('0x2f')),this[_0x369e('0x3b')][_0x369e('0x22')](_0x467aac);const _0x271b06=_0x31d280?_0x31d280[_0x369e('0x64')]:_0x467aac,_0x50c883=this[_0x369e('0x32')][_0x369e('0x1d')](_0x271b06);null!==_0x31d280&&this['_updateController'](_0x271b06),null===_0x31d280&&_0x50c883&&this[_0x369e('0x12')](_0x467aac);}),this[_0x369e('0x55')](_0x3b083f,'suggestionChanged',(_0x4b6d79,_0x1a6de1)=>{this[_0x369e('0x44')](_0x1a6de1);}),this[_0x369e('0x55')](_0x3ead17,_0x369e('0xb'),()=>{this[_0x369e('0x4a')]();}),this[_0x369e('0x55')](_0x155568,_0x369e('0x4e'),(_0x110e47,{threadId:_0x3bc44e,isFromAdapter:_0x27df1d})=>{if(_0x27df1d||!_0x3b083f[_0x369e('0x19')](_0x3bc44e))return;const _0x1d3d53=_0x3b083f[_0x369e('0x35')](_0x3bc44e);this['_suggestionToController'][_0x369e('0x1d')](_0x1d3d53)[_0x369e('0x3f')][_0x369e('0x30')]();},{'priority':_0x369e('0x1b')});}['_refreshActiveMarkers'](){const _0x17094d=this[_0x369e('0x48')][_0x369e('0x4b')][_0x369e('0x1d')]('Annotations'),_0x1130f4=this[_0x369e('0x48')][_0x369e('0x4b')][_0x369e('0x1d')](_0x369e('0x5b')),_0x1fedf8=Array[_0x369e('0x16')](_0x17094d[_0x369e('0x4d')],_0x54a446=>_0x54a446[_0x369e('0x0')])[_0x369e('0x3a')](_0x5eaaa2=>this[_0x369e('0x4')][_0x369e('0xa')](_0x5eaaa2)),_0x4f7f1f=[];for(const _0x240c2c of _0x1fedf8){const _0x50f6f7=this[_0x369e('0x4')][_0x369e('0x1d')](_0x240c2c)[_0x369e('0x68')]['getAllAdjacentSuggestions']();_0x4f7f1f[_0x369e('0x1')](..._0x50f6f7['reduce']((_0x1f8727,_0xa265f1)=>[..._0x1f8727,..._0xa265f1[_0x369e('0x6b')]()],[]));}_0x1130f4[_0x369e('0x2e')]=_0x4f7f1f;}[_0x369e('0x21')](_0x282952){const _0xe8d4b8=_0x285f00(_0x282952,_0x23c9b7),_0x15ac2f=this[_0x369e('0x48')][_0x369e('0x8')][_0x369e('0x1d')]('trackChanges'),_0x28bbb2=_0x31e384(_0x282952,_0x369e('0x1a'));_0xe8d4b8[_0x369e('0x6')]['set']({'tooltip':_0x28bbb2,'label':_0x28bbb2,'icon':_0x403ff9}),_0xe8d4b8[_0x369e('0x6')][_0x369e('0x23')]('isOn')['to'](_0x15ac2f,'value'),_0xe8d4b8[_0x369e('0x6')]['on'](_0x369e('0x40'),()=>{_0x15ac2f['execute'](),this[_0x369e('0x48')][_0x369e('0xc')][_0x369e('0x3f')][_0x369e('0x30')]();});const _0xb97962=new _0x48a5f1(),_0xbe0f70=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x28bbb2,'commandName':_0x369e('0x36')}},{'type':_0x369e('0x53')},{'type':_0x369e('0x49'),'model':{'withText':!0x0,'label':_0x31e384(_0x282952,_0x369e('0x25')),'commandName':_0x369e('0x67')}},{'type':'button','model':{'withText':!0x0,'label':_0x31e384(_0x282952,_0x369e('0x1e')),'commandName':_0x369e('0x69')}},{'type':'button','model':{'withText':!0x0,'label':_0x31e384(_0x282952,'Discard\x20all\x20suggestions'),'commandName':_0x369e('0x54')}},{'type':_0x369e('0x49'),'model':{'withText':!0x0,'label':_0x31e384(_0x282952,_0x369e('0x14')),'commandName':_0x369e('0x5')}}];for(const _0x1b3748 of _0xbe0f70){let _0x234a7e={'type':_0x369e('0x53')};if(_0x1b3748['model']){const _0xc3f188=new _0x245d65(_0x1b3748[_0x369e('0x68')]),_0x26641a=this[_0x369e('0x48')][_0x369e('0x8')]['get'](_0xc3f188['commandName']);_0xc3f188[_0x369e('0x23')](_0x369e('0x60'),_0x369e('0x43'))['to'](_0x26641a,'value','isEnabled'),_0x234a7e={'type':_0x1b3748[_0x369e('0x5e')],'model':_0xc3f188};}_0xb97962[_0x369e('0x41')](_0x234a7e);}_0x396e0f(_0xe8d4b8,_0xb97962);const _0x26ecbb=_0xbe0f70['filter'](_0x596432=>null!=_0x596432[_0x369e('0x68')])[_0x369e('0x57')](_0x3ad7f9=>this[_0x369e('0x48')][_0x369e('0x8')][_0x369e('0x1d')](_0x3ad7f9['model'][_0x369e('0x4f')])),_0x2fd0b7=_0xe8d4b8[_0x369e('0x6')];return _0x2fd0b7['actionView'][_0x369e('0x29')](_0x369e('0x43')),_0x2fd0b7[_0x369e('0x66')][_0x369e('0x29')](_0x369e('0x43')),_0x2fd0b7[_0x369e('0x11')][_0x369e('0x23')](_0x369e('0x43'))['to'](_0x15ac2f,_0x369e('0x43')),_0x2fd0b7[_0x369e('0x66')]['bind']('isEnabled')[_0x369e('0x59')](_0x26ecbb,'isEnabled',(..._0x570364)=>_0x570364[_0x369e('0x26')](_0xb6c5ee=>_0xb6c5ee)),_0xe8d4b8['on']('execute',_0x51567c=>{this['editor']['execute'](_0x51567c[_0x369e('0x2a')]['commandName']),this[_0x369e('0x48')]['editing'][_0x369e('0x3f')][_0x369e('0x30')]();}),_0xe8d4b8;}[_0x369e('0xd')](_0x2e8cef){const _0x4fcdd4=this[_0x369e('0x48')],_0x49cc94=_0x4fcdd4[_0x369e('0x38')],_0x506032=_0x4fcdd4[_0x369e('0x4b')]['get'](_0x369e('0xe')),_0x59fa1b=_0x4fcdd4[_0x369e('0x4b')][_0x369e('0x1d')](_0x369e('0x58')),_0x5027e6=_0x4fcdd4[_0x369e('0x4b')][_0x369e('0x1d')](_0x369e('0x10')),_0x145afc=_0x4fcdd4[_0x369e('0x4b')]['get'](_0x576247)['me'],_0x479117=_0x49cc94[_0x369e('0x1d')](_0x369e('0x36'))[_0x369e('0x51')],{CommentsListView:_0xb9f963,CommentThreadInputView:_0x53d4bb}=_0x4fcdd4['plugins'][_0x369e('0x1d')](_0x369e('0x46'));let _0x5ce1fd,_0x139ebe;this[_0x369e('0x52')][_0x369e('0xa')](_0x2e8cef['id'])?(_0x139ebe=this[_0x369e('0x52')]['get'](_0x2e8cef['id']),_0x5ce1fd=_0x139ebe['mainView']):(_0x5ce1fd=new _0x479117(_0x4fcdd4[_0x369e('0x37')],_0x2e8cef,_0x145afc,{'disableComments':this['_disableComments'],'editorConfig':_0x49cc94[_0x369e('0x1d')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x49cc94[_0x369e('0x1d')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x49cc94[_0x369e('0x1d')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x49cc94[_0x369e('0x1d')](_0x369e('0x5d')),'formatDateTime':_0x512c87(_0x49cc94[_0x369e('0x1d')]('locale')),'CommentView':_0x49cc94['get'](_0x369e('0x3d'))[_0x369e('0x62')],'CommentsListView':_0xb9f963,'CommentThreadInputView':_0x53d4bb}),_0x5ce1fd[_0x369e('0x2')]['on'](_0x369e('0x40'),()=>{_0x4fcdd4['editing'][_0x369e('0x3f')][_0x369e('0x30')]();}),_0x5ce1fd[_0x369e('0x20')]['on'](_0x369e('0x40'),()=>{_0x4fcdd4[_0x369e('0xc')][_0x369e('0x3f')]['focus']();}),_0x139ebe=_0x506032[_0x369e('0x3e')](this[_0x369e('0x48')][_0x369e('0x37')],_0x5ce1fd),_0x139ebe[_0x369e('0x23')]('isDirty')['to'](_0x5ce1fd,_0x369e('0x1c')),_0x139ebe[_0x369e('0x23')]('length')['to'](_0x5ce1fd),_0x139ebe[_0x369e('0x23')](_0x369e('0x5e'))['to'](_0x5ce1fd,'type',_0x2a740f=>_0x369e('0x28')+_0x2a740f),this[_0x369e('0x52')][_0x369e('0x50')](_0x2e8cef['id'],_0x139ebe));const _0x103c72=_0x59fa1b['createCommentThreadController'](_0x2e8cef[_0x369e('0x5c')],_0x5ce1fd),_0x43248a=new _0x4b27a4(_0x4fcdd4,_0x2e8cef,_0x5ce1fd,_0x103c72),_0x1f17e1=_0x2e8cef['getAllAdjacentSuggestions']()[_0x369e('0x3a')](_0x3632e1=>_0x3632e1[_0x369e('0x4c')]);_0x5ce1fd[_0x369e('0x3')]=_0x4fcdd4[_0x369e('0x4b')][_0x369e('0x1d')](_0x369e('0x5b'))['_descriptionFactory'][_0x369e('0x6a')](_0x1f17e1),this[_0x369e('0x32')][_0x369e('0x50')](_0x2e8cef,_0x43248a),this[_0x369e('0x4')][_0x369e('0x50')](_0x5ce1fd,_0x43248a);const _0x329732=_0x506032[_0x369e('0x9')]({'view':_0x139ebe,'target':()=>{const _0x5b241a=[],_0x12e2af=_0x2e8cef[_0x369e('0x63')]()[_0x369e('0x3a')](_0x4721fb=>_0x4721fb[_0x369e('0x4c')]);for(const _0x294219 of _0x12e2af)_0x5b241a['push'](..._0x294219[_0x369e('0x47')]());return _0x18f16f(_0x4fcdd4[_0x369e('0xc')],_0x5b241a);},'type':()=>_0x369e('0x28')+_0x43248a[_0x369e('0x3f')][_0x369e('0x5e')]});_0x59fa1b[_0x369e('0x15')](_0x5ce1fd,_0x329732),_0x506032[_0x369e('0x41')](_0x329732),_0x5027e6[_0x369e('0x34')](_0x329732);}[_0x369e('0x12')](_0x5d3b12){const _0x5d9e6b=this[_0x369e('0x48')]['plugins'][_0x369e('0x1d')]('Annotations'),_0x34036e=this['_suggestionToController'][_0x369e('0x1d')](_0x5d3b12),_0x358c72=_0x34036e['view'],_0x563d0d=_0x5d9e6b[_0x369e('0x5f')](_0x358c72);_0x563d0d&&_0x5d9e6b['remove'](_0x563d0d),this[_0x369e('0x32')][_0x369e('0x22')](_0x5d3b12),this[_0x369e('0x4')][_0x369e('0x22')](_0x358c72),_0x34036e[_0x369e('0x13')]();}[_0x369e('0x44')](_0xdb10bd){if(!_0xdb10bd[_0x369e('0x4c')]||!this[_0x369e('0x32')][_0x369e('0xa')](_0xdb10bd))return;const _0x26701d=this[_0x369e('0x48')]['plugins']['get'](_0x369e('0x5b')),_0x5ac0f4=this['_suggestionToController']['get'](_0xdb10bd),_0x266e74=_0xdb10bd[_0x369e('0x63')]();_0x5ac0f4['view'][_0x369e('0x3')]=_0x26701d[_0x369e('0x65')]['getDescriptions'](_0x266e74);}[_0x369e('0x13')](){for(const _0xca831e of this[_0x369e('0x32')]['keys']())this['_destroyController'](_0xca831e);for(const _0x2fc67e of this[_0x369e('0x52')][_0x369e('0x2d')]())_0x2fc67e[_0x369e('0x17')][_0x369e('0x13')]();super['destroy']();}}
|
|
23
|
+
const _0x10ad=['_handleSuggestionControllerDelayed','trackChanges','config','reduce','separator','size','execute','getDescriptions','getSuggestion','init','comments.maxCommentsWhenCollapsed','isInContent','_createUIButton','suggestionUnloaded','actionView','discardButton','_destroyController','acceptAllSuggestions','_handleControllerBuffer','createAnnotation','clear','commands','_initializeController','comments.maxCommentCharsWhenCollapsed','buttonView','isEnabled','bind','locale','arrowView','plugins','change:activeAnnotations','commentThread','isOn','add','acceptButton','getMarkers','comments','_updateController','getAllAdjacentSuggestions','mainView','registerAnnotation','trackChanges.SuggestionThreadView','focus','button','CommentsUI','TrackChangesUI','_descriptionFactory','Track\x20changes','Discard\x20all\x20selected\x20suggestions','hasSuggestion','_annotationViews','trackChanges.disableComments','Annotations','view','getFirstRange','Accept\x20all\x20selected\x20suggestions','_viewToController','CommentsRepository','unbind','listenTo','suggestion-','getJoined','switchbutton','previous','activeMarkers','comments.maxThreadTotalWeight','define','lowest','from','requires','keys','model','head','addSourceCollector','type','_disableComments','discardAllSuggestions','get','TrackChangesEditing','editor','createCommentThreadController','toMany','getRanges','change:previous','filter','values','activeAnnotations','discardSelectedSuggestions','value','EditorAnnotations','source','isMultiRange','destroy','_suggestionToController','comments.editorConfig','isDirty','set','Discard\x20all\x20suggestions','descriptionParts','length','has','editing','CommentView','acceptSelectedSuggestions','createAnnotationView','_refreshActiveMarkers','_bindAnnotationToEditors','innerView','delete','push'];(function(_0x21984c,_0x10ad0e){const _0x4694f8=function(_0x1ef25f){while(--_0x1ef25f){_0x21984c['push'](_0x21984c['shift']());}};_0x4694f8(++_0x10ad0e);}(_0x10ad,0xf1));const _0x4694=function(_0x21984c,_0x10ad0e){_0x21984c=_0x21984c-0x0;let _0x4694f8=_0x10ad[_0x21984c];return _0x4694f8;};import{Plugin as _0x3b41ad}from'ckeditor5/src/core';import{Collection as _0x1b6b62}from'ckeditor5/src/utils';import{Model as _0x4fcc01,SplitButtonView as _0x54e14f,createDropdown as _0xe20a07,addListToDropdown as _0x479dad}from'ckeditor5/src/ui';import{Users as _0x755b65,getDateTimeFormatter as _0x5c594e,getAllMarkersDomElementsSorted as _0x55558b}from'ckeditor5-collaboration/src/collaboration-core';import _0xb2eaa4 from'./trackchangesediting';import _0x4483a9 from'./ui/suggestioncontroller';import _0x177038 from'./ui/view/suggestionthreadview';import{getTranslation as _0x364151}from'./utils/common-translations';import _0x493945 from'../theme/icons/track-changes.svg';export default class d extends _0x3b41ad{static get[_0x4694('0x30')](){return[_0xb2eaa4,_0x755b65,_0x4694('0x24'),_0x4694('0x1f'),'EditorAnnotations'];}static get['pluginName'](){return _0x4694('0x18');}constructor(_0x31cef9){super(_0x31cef9),this[_0x4694('0x48')]=new Map(),this[_0x4694('0x23')]=new Map(),this[_0x4694('0x1d')]=new Map(),this[_0x4694('0x6b')]=new Map();const _0x4a743f=this['editor'][_0x4694('0x5b')];_0x4a743f['define'](_0x4694('0x14'),_0x177038),_0x4a743f[_0x4694('0x2d')](_0x4694('0x1e'),!0x1),this[_0x4694('0x36')]=_0x4a743f[_0x4694('0x38')]('trackChanges.disableComments');}[_0x4694('0x59')](_0x2e2a4c,_0x269afe){0x0===this['_handleControllerBuffer'][_0x4694('0x5e')]&&setTimeout(()=>{for(const [_0x55252e,_0x28b86b]of this[_0x4694('0x6b')]){const _0x42085f=this[_0x4694('0x48')][_0x4694('0x4f')](_0x55252e);_0x42085f||_0x28b86b?_0x42085f&&_0x28b86b&&this[_0x4694('0x69')](_0x55252e):this[_0x4694('0x1')](_0x55252e);}this['editor'][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x44'))['refreshSelectedViews'](),this[_0x4694('0x54')](),this[_0x4694('0x6b')][_0x4694('0x6d')]();},0xa),this[_0x4694('0x6b')][_0x4694('0x4b')](_0x2e2a4c,_0x269afe);}[_0x4694('0x62')](){const _0x10f51a=this[_0x4694('0x3a')],_0x1f0f06=_0x10f51a[_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x39')),_0x44765c=_0x10f51a[_0x4694('0x8')]['get'](_0x4694('0x1f')),_0x13e4bc=_0x10f51a[_0x4694('0x8')]['get'](_0x4694('0x44')),_0x663813=_0x10f51a[_0x4694('0x8')]['get']('CommentsRepository');_0x10f51a['ui']['componentFactory'][_0x4694('0xc')](_0x4694('0x5a'),_0x32d405=>this[_0x4694('0x65')](_0x32d405)),_0x13e4bc[_0x4694('0x34')](()=>{const _0x3dd77c=[];for(const [_0x370148,_0x4121cb]of Array[_0x4694('0x2f')](this[_0x4694('0x48')])){const _0x4345bc=_0x370148[_0x4694('0x11')](),_0x4afd57=[];for(const _0x2f9beb of _0x4345bc){if(!_0x2f9beb[_0x4694('0x64')])continue;if(_0x2f9beb[_0x4694('0x46')]){_0x4afd57['push'](..._0x2f9beb[_0x4694('0x3d')]());continue;}const _0x46c3ba=_0x2f9beb[_0x4694('0x21')]();if(_0x4afd57[_0x4694('0x4e')]>0x0){const _0x8f600e=_0x4afd57[0x0][_0x4694('0x28')](_0x46c3ba);if(_0x8f600e){_0x4afd57[0x0]=_0x8f600e;continue;}}_0x4afd57['push'](_0x46c3ba);}_0x3dd77c[_0x4694('0x58')]([_0x4121cb[_0x4694('0x20')],_0x4afd57]);}return _0x3dd77c;}),this['listenTo'](_0x1f0f06,'suggestionLoaded',(_0x2b3b0e,_0xfee3e8)=>{this[_0x4694('0x26')](_0xfee3e8,_0x4694('0x3e'),(_0x13db7d,_0x399357,_0x3b28f3,_0x2d652a)=>{_0xfee3e8[_0x4694('0x64')]&&(null==_0x3b28f3?(this[_0x4694('0x10')](_0x2d652a[_0x4694('0x33')]),this[_0x4694('0x59')](_0xfee3e8,!0x1)):(this[_0x4694('0x10')](_0x3b28f3[_0x4694('0x33')]),this['_handleSuggestionControllerDelayed'](_0xfee3e8,!0x0)));}),null===_0xfee3e8[_0x4694('0x2a')]?this[_0x4694('0x59')](_0xfee3e8,!0x1):this[_0x4694('0x10')](_0xfee3e8['head']);}),this['listenTo'](_0x1f0f06,_0x4694('0x66'),(_0x268481,_0x3c83f8,_0x15d08f)=>{this['stopListening'](_0x3c83f8,_0x4694('0x3e')),this['_handleControllerBuffer'][_0x4694('0x57')](_0x3c83f8);const _0x4d0119=_0x15d08f?_0x15d08f[_0x4694('0x33')]:_0x3c83f8,_0x4713ae=this[_0x4694('0x48')][_0x4694('0x38')](_0x4d0119);null!==_0x15d08f&&this[_0x4694('0x10')](_0x4d0119),null===_0x15d08f&&_0x4713ae&&this[_0x4694('0x69')](_0x3c83f8);}),this[_0x4694('0x26')](_0x1f0f06,'suggestionChanged',(_0x3479c2,_0x20bfbe)=>{this[_0x4694('0x10')](_0x20bfbe);}),this[_0x4694('0x26')](_0x44765c,_0x4694('0x9'),()=>{this[_0x4694('0x54')]();}),this['listenTo'](_0x663813,'addComment',(_0xc9d13f,{threadId:_0x183fd8,isFromAdapter:_0x3ffeda})=>{if(_0x3ffeda||!_0x1f0f06[_0x4694('0x1c')](_0x183fd8))return;const _0x3c2305=_0x1f0f06[_0x4694('0x61')](_0x183fd8);this['_suggestionToController'][_0x4694('0x38')](_0x3c2305)[_0x4694('0x20')]['focus']();},{'priority':_0x4694('0x2e')});}[_0x4694('0x54')](){const _0x233718=this[_0x4694('0x3a')][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x1f')),_0xbb86c7=this['editor'][_0x4694('0x8')][_0x4694('0x38')]('TrackChangesEditing'),_0x8ca89d=Array[_0x4694('0x2f')](_0x233718[_0x4694('0x41')],_0xc385e1=>_0xc385e1[_0x4694('0x56')])['filter'](_0x5b2203=>this['_viewToController']['has'](_0x5b2203)),_0x72895b=[];for(const _0x7a9952 of _0x8ca89d){const _0x5ce18f=this['_viewToController'][_0x4694('0x38')](_0x7a9952)[_0x4694('0x32')][_0x4694('0x11')]();_0x72895b[_0x4694('0x58')](..._0x5ce18f[_0x4694('0x5c')]((_0x19ff06,_0x4d4928)=>[..._0x19ff06,..._0x4d4928['getMarkerNames']()],[]));}_0xbb86c7[_0x4694('0x2b')]=_0x72895b;}[_0x4694('0x65')](_0x25ab86){const _0x3cf9ee=_0xe20a07(_0x25ab86,_0x54e14f),_0x2ac349=this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x4694('0x5a')),_0x52930f=_0x364151(_0x25ab86,_0x4694('0x1a'));_0x3cf9ee[_0x4694('0x3')][_0x4694('0x4b')]({'tooltip':_0x52930f,'label':_0x52930f,'icon':_0x493945}),_0x3cf9ee[_0x4694('0x3')][_0x4694('0x5')](_0x4694('0xb'))['to'](_0x2ac349,_0x4694('0x43')),_0x3cf9ee['buttonView']['on']('execute',()=>{_0x2ac349['execute'](),this[_0x4694('0x3a')][_0x4694('0x50')]['view'][_0x4694('0x15')]();});const _0x7675a6=new _0x1b6b62(),_0x344a2c=[{'type':_0x4694('0x29'),'model':{'withText':!0x0,'label':_0x52930f,'commandName':_0x4694('0x5a')}},{'type':_0x4694('0x5d')},{'type':'button','model':{'withText':!0x0,'label':_0x364151(_0x25ab86,'Accept\x20all\x20suggestions'),'commandName':_0x4694('0x6a')}},{'type':'button','model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x22')),'commandName':_0x4694('0x52')}},{'type':_0x4694('0x16'),'model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x4c')),'commandName':_0x4694('0x37')}},{'type':_0x4694('0x16'),'model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x1b')),'commandName':_0x4694('0x42')}}];for(const _0x32cdf0 of _0x344a2c){let _0xdd564b={'type':_0x4694('0x5d')};if(_0x32cdf0[_0x4694('0x32')]){const _0x534dbd=new _0x4fcc01(_0x32cdf0[_0x4694('0x32')]),_0x3505ad=this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x534dbd['commandName']);_0x534dbd[_0x4694('0x5')](_0x4694('0xb'),_0x4694('0x4'))['to'](_0x3505ad,_0x4694('0x43'),_0x4694('0x4')),_0xdd564b={'type':_0x32cdf0[_0x4694('0x35')],'model':_0x534dbd};}_0x7675a6[_0x4694('0xc')](_0xdd564b);}_0x479dad(_0x3cf9ee,_0x7675a6);const _0x2174cb=_0x344a2c['filter'](_0x4c8804=>null!=_0x4c8804['model'])['map'](_0x1ae731=>this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x1ae731[_0x4694('0x32')]['commandName'])),_0x2f9156=_0x3cf9ee[_0x4694('0x3')];return _0x2f9156[_0x4694('0x67')]['unbind'](_0x4694('0x4')),_0x2f9156['arrowView'][_0x4694('0x25')](_0x4694('0x4')),_0x2f9156[_0x4694('0x67')][_0x4694('0x5')](_0x4694('0x4'))['to'](_0x2ac349,_0x4694('0x4')),_0x2f9156[_0x4694('0x7')]['bind'](_0x4694('0x4'))[_0x4694('0x3c')](_0x2174cb,_0x4694('0x4'),(..._0x55dfec)=>_0x55dfec['some'](_0x418f64=>_0x418f64)),_0x3cf9ee['on'](_0x4694('0x5f'),_0x4bce4b=>{this[_0x4694('0x3a')][_0x4694('0x5f')](_0x4bce4b[_0x4694('0x45')]['commandName']),this[_0x4694('0x3a')][_0x4694('0x50')][_0x4694('0x20')][_0x4694('0x15')]();}),_0x3cf9ee;}['_initializeController'](_0xcfa19f){const _0x4b2bfc=this[_0x4694('0x3a')],_0x58c0cd=_0x4b2bfc[_0x4694('0x5b')],_0x14e07e=_0x4b2bfc[_0x4694('0x8')][_0x4694('0x38')]('Annotations'),_0x51015b=_0x4b2bfc['plugins'][_0x4694('0x38')](_0x4694('0x24')),_0x438d8f=_0x4b2bfc[_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x44')),_0x2c2c41=_0x4b2bfc['plugins']['get'](_0x755b65)['me'],_0x33403a=_0x58c0cd[_0x4694('0x38')]('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x73072,CommentThreadInputView:_0x16b891}=_0x4b2bfc['plugins'][_0x4694('0x38')](_0x4694('0x17'));let _0x438b47,_0x271f8b;this['_annotationViews']['has'](_0xcfa19f['id'])?(_0x271f8b=this[_0x4694('0x1d')][_0x4694('0x38')](_0xcfa19f['id']),_0x438b47=_0x271f8b[_0x4694('0x12')]):(_0x438b47=new _0x33403a(_0x4b2bfc['locale'],_0xcfa19f,_0x2c2c41,{'disableComments':this[_0x4694('0x36')],'editorConfig':_0x58c0cd[_0x4694('0x38')](_0x4694('0x49')),'maxCommentsWhenCollapsed':_0x58c0cd[_0x4694('0x38')](_0x4694('0x63')),'maxThreadTotalWeight':_0x58c0cd['get'](_0x4694('0x2c')),'maxCommentCharsWhenCollapsed':_0x58c0cd[_0x4694('0x38')](_0x4694('0x2')),'formatDateTime':_0x5c594e(_0x58c0cd[_0x4694('0x38')](_0x4694('0x6'))),'CommentView':_0x58c0cd[_0x4694('0x38')](_0x4694('0xf'))[_0x4694('0x51')],'CommentsListView':_0x73072,'CommentThreadInputView':_0x16b891}),_0x438b47[_0x4694('0xd')]['on']('execute',()=>{_0x4b2bfc[_0x4694('0x50')][_0x4694('0x20')][_0x4694('0x15')]();}),_0x438b47[_0x4694('0x68')]['on']('execute',()=>{_0x4b2bfc['editing']['view']['focus']();}),_0x271f8b=_0x14e07e[_0x4694('0x53')](this[_0x4694('0x3a')][_0x4694('0x6')],_0x438b47),_0x271f8b[_0x4694('0x5')](_0x4694('0x4a'))['to'](_0x438b47,_0x4694('0x4a')),_0x271f8b[_0x4694('0x5')](_0x4694('0x4e'))['to'](_0x438b47),_0x271f8b['bind'](_0x4694('0x35'))['to'](_0x438b47,'type',_0x3dd6f2=>_0x4694('0x27')+_0x3dd6f2),this['_annotationViews'][_0x4694('0x4b')](_0xcfa19f['id'],_0x271f8b));const _0x4f7fe8=_0x51015b[_0x4694('0x3b')](_0xcfa19f[_0x4694('0xa')],_0x438b47),_0x41067c=new _0x4483a9(_0x4b2bfc,_0xcfa19f,_0x438b47,_0x4f7fe8),_0x2b691c=_0xcfa19f[_0x4694('0x11')]()[_0x4694('0x3f')](_0x2d3d84=>_0x2d3d84[_0x4694('0x64')]);_0x438b47[_0x4694('0x4d')]=_0x4b2bfc[_0x4694('0x8')]['get'](_0x4694('0x39'))[_0x4694('0x19')][_0x4694('0x60')](_0x2b691c),this[_0x4694('0x48')][_0x4694('0x4b')](_0xcfa19f,_0x41067c),this[_0x4694('0x23')][_0x4694('0x4b')](_0x438b47,_0x41067c);const _0x1534c4=_0x14e07e[_0x4694('0x6c')]({'view':_0x271f8b,'target':()=>{const _0x40dcfc=[],_0x402ad4=_0xcfa19f[_0x4694('0x11')]()['filter'](_0x3bc7b6=>_0x3bc7b6[_0x4694('0x64')]);for(const _0x27b098 of _0x402ad4)_0x40dcfc[_0x4694('0x58')](..._0x27b098[_0x4694('0xe')]());return _0x55558b(_0x4b2bfc['editing'],_0x40dcfc);},'type':()=>_0x4694('0x27')+_0x41067c[_0x4694('0x20')][_0x4694('0x35')]});_0x51015b[_0x4694('0x55')](_0x438b47,_0x1534c4),_0x14e07e[_0x4694('0xc')](_0x1534c4),_0x438d8f[_0x4694('0x13')](_0x1534c4);}[_0x4694('0x69')](_0x338284){const _0x53fd3d=this[_0x4694('0x3a')][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x1f')),_0x2a7e5e=this[_0x4694('0x48')][_0x4694('0x38')](_0x338284),_0xee9b4f=_0x2a7e5e[_0x4694('0x20')],_0x42eef6=_0x53fd3d['getByInnerView'](_0xee9b4f);_0x42eef6&&_0x53fd3d['remove'](_0x42eef6),this[_0x4694('0x48')][_0x4694('0x57')](_0x338284),this[_0x4694('0x23')][_0x4694('0x57')](_0xee9b4f),_0x2a7e5e[_0x4694('0x47')]();}[_0x4694('0x10')](_0x53393a){if(!_0x53393a['isInContent']||!this[_0x4694('0x48')][_0x4694('0x4f')](_0x53393a))return;const _0x1ee460=this['editor'][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x39')),_0x226a39=this[_0x4694('0x48')][_0x4694('0x38')](_0x53393a),_0x35529a=_0x53393a['getAllAdjacentSuggestions']();_0x226a39[_0x4694('0x20')][_0x4694('0x4d')]=_0x1ee460['_descriptionFactory'][_0x4694('0x60')](_0x35529a);}[_0x4694('0x47')](){for(const _0x30ef65 of this[_0x4694('0x48')][_0x4694('0x31')]())this[_0x4694('0x69')](_0x30ef65);for(const _0x1f5c71 of this['_annotationViews'][_0x4694('0x40')]())_0x1f5c71[_0x4694('0x12')][_0x4694('0x47')]();super[_0x4694('0x47')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xed59=['destroy','locale','getRanges','stopListening','bind','canAccept','_discardCommand','execute','view','commands','_acceptCommand','_editor','canDiscard','unbind','get','model','_removePendingAction','isDirty','isEnabled','discardSuggestion','plugins','commentThreadController','acceptSuggestion','_pendingAction','PendingActions','canEditAt','_setPendingAction','listenTo'];(function(_0x1b729e,_0xed5982){const _0x50c06a=function(_0x2810d){while(--_0x2810d){_0x1b729e['push'](_0x1b729e['shift']());}};_0x50c06a(++_0xed5982);}(_0xed59,0xd7));const _0x50c0=function(_0x1b729e,_0xed5982){_0x1b729e=_0x1b729e-0x0;let _0x50c06a=_0xed59[_0x1b729e];return _0x50c06a;};import{ObservableMixin as _0x7c4a94}from'ckeditor5/src/utils';import{getTranslation as _0x26f88b}from'../utils/common-translations';export default class qt extends _0x7c4a94(){constructor(_0x47c8c5,_0x5969ac,_0x4bb745,_0x118b00){super(),this[_0x50c0('0x18')]=_0x5969ac,this[_0x50c0('0x11')]=_0x4bb745,this['commentThreadController']=_0x118b00,this[_0x50c0('0x14')]=_0x47c8c5,this[_0x50c0('0x13')]=_0x47c8c5[_0x50c0('0x12')][_0x50c0('0x17')](_0x50c0('0x3')),this['_discardCommand']=_0x47c8c5[_0x50c0('0x12')][_0x50c0('0x17')](_0x50c0('0x0')),this[_0x50c0('0x11')]['bind'](_0x50c0('0x1b'))['to'](this[_0x50c0('0x13')],this[_0x50c0('0xf')],(_0x20dfd0,_0x3e1a95)=>_0x20dfd0||_0x3e1a95),this[_0x50c0('0x11')][_0x50c0('0xd')](_0x50c0('0xe'))['to'](this[_0x50c0('0x13')],_0x50c0('0x1b'),_0x5a0eac=>_0x5a0eac&&this[_0x50c0('0x14')][_0x50c0('0x18')][_0x50c0('0x6')](_0x5969ac[_0x50c0('0xb')]())),this[_0x50c0('0x11')][_0x50c0('0xd')](_0x50c0('0x15'))['to'](this['_discardCommand'],'isEnabled',_0x4b1ee8=>_0x4b1ee8&&this[_0x50c0('0x14')]['model'][_0x50c0('0x6')](_0x5969ac[_0x50c0('0xb')]())),this['_pendingAction']=null,_0x4bb745['isDirty']&&this[_0x50c0('0x7')](),this['listenTo'](_0x4bb745,_0x50c0('0x3'),()=>this[_0x50c0('0x3')]()),this[_0x50c0('0x8')](_0x4bb745,_0x50c0('0x0'),()=>this[_0x50c0('0x0')]()),this[_0x50c0('0x8')](_0x4bb745,'change:isDirty',()=>{_0x4bb745[_0x50c0('0x1a')]?this[_0x50c0('0x7')]():this[_0x50c0('0x19')]();});}[_0x50c0('0x3')](){this[_0x50c0('0x13')][_0x50c0('0x10')](this[_0x50c0('0x18')]['id']);}[_0x50c0('0x0')](){this[_0x50c0('0xf')][_0x50c0('0x10')](this[_0x50c0('0x18')]['id']);}[_0x50c0('0x9')](){this[_0x50c0('0x11')][_0x50c0('0x16')]('isEnabled'),this[_0x50c0('0x11')][_0x50c0('0x16')](_0x50c0('0xe')),this[_0x50c0('0x11')]['unbind'](_0x50c0('0x15')),this[_0x50c0('0xc')](),this[_0x50c0('0x2')][_0x50c0('0x9')](),this[_0x50c0('0x4')]&&this[_0x50c0('0x19')]();}[_0x50c0('0x7')](){const _0x59ae8d=_0x26f88b(this[_0x50c0('0x14')][_0x50c0('0xa')],'PENDING_ACTION_SUGGESTION');this[_0x50c0('0x4')]=this[_0x50c0('0x14')][_0x50c0('0x1')][_0x50c0('0x17')](_0x50c0('0x5'))['add'](_0x59ae8d);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x50c0('0x14')][_0x50c0('0x1')][_0x50c0('0x17')](_0x50c0('0x5'))['remove'](this['_pendingAction']),this[_0x50c0('0x4')]=null;}}
|