@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.1
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/README.md +0 -1
- package/build/track-changes.js +2 -2
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +6 -2
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +6 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +6 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +5 -1
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +16 -12
- package/src/index.js +2 -2
- package/src/integrations/alignment.d.ts +5 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +5 -1
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +5 -1
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +5 -1
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +5 -1
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +5 -1
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +6 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +5 -1
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +7 -3
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +6 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +5 -1
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +5 -1
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +5 -1
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +5 -1
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +5 -1
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +5 -1
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +5 -1
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +5 -1
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +7 -3
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +5 -1
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +5 -1
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +6 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +5 -1
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +5 -1
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +7 -3
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +5 -1
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +5 -1
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +5 -1
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +5 -1
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +5 -1
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +5 -1
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +6 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +5 -1
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +5 -1
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +5 -1
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +6 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +4 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +8 -4
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +6 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +6 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +5 -1
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +8 -4
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +5 -1
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +5 -1
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +5 -1
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +7 -3
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +15 -5
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +5 -5
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +10 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +5 -1
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +55 -51
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +7 -3
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +7 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +7 -7
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +8 -4
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5bbc=['high','push','updateSuggestion','_removeSuggestion','getWalker','removeMarkers','getDifference','consume','formatGroupId','formatBlock:accept','addClass','getAllAdjacentSuggestions','acceptAllSuggestions','ck-suggestion-marker','trackChanges','formatBlock:join','detach','isInsideObject','markerName','_addSuggestionMarker','_breakSuggestionMarker','_trackFormatChanges','_joinWithAdjacentSuggestions','isBlock','element','removeMarker:suggestion:formatBlock','isUndo','removeClass','never','ck-suggestion-marker-','schema','addMarker:suggestion','isMultiRange','markerToHighlight','isAtEnd','deletion:','updateMarker','discardSelectedSuggestions','toJSON','previous','every','split','_addThreadToSuggestion','skipNestingCheck','createPositionAt','parent','isExternal','substr','addSuggestionData','resolve','_findSuggestions','next','ck-suggestion-marker--active','marker-count','markMultiRangeInsertion','execute','group','insertion','filter','options','formatInline:','discard','_onDiscard','editing','addHighlight','markDeletion','unbindElementFromMarkerName','low','deletion:discard','update:suggestion','suggestion:','trackChangesCommand','_adapter','$graveyard','insertion:chain','insert','name','markers','trackChanges.trackFormatChanges','_suggestionFactory','_joinSuggestions','refresh','editor','markerReady','insertion:accept','hasComments','position','documentSelection','getLastMatchingPosition','_model','removeAttribute','track-changes-command-not-found','createRangeIn','isOwn','discardAllSuggestions','accept','createdAt','getCustomProperty','join','_saved','track-changes-adapter-already-set','howMany','createElement','rethrowUnexpectedError','getAttribute','markInsertion','suggestion','track-changes-suggestion-data-mismatch','backward','insertion:discard','differ','document','attributes','createRange','default','always','reconvertMarker','deletion:chain','_createSuggestion','setAttribute','_rangeIsInLocalUserInsertion','_getAuthorFromId','oldRange','markMultiRangeDeletion','Users','_commentsRepository','clear','getRange','getChangedMarkers','containsItem','removeComment','pluginName','formatBlock','splice','setTo','getCommentThread','$marker','nodeBefore','batch','value','elementEnd','isCollapsed','_enabledCommands','_splitMarkerName','then','bindElementToMarker','adapter','registerCustomCallback','containsRange','isIntersectingWithRange','_isForcedDefaultExecutionBlock','catch','_descriptionFactory','formatInline:join','isEqual','open','originalSuggestionId','ck-suggestion-marker-formatBlock','addRange','_mergeNestedSuggestions','selection','isDocumentOperation','authoredAt','isNextTo','hasCommentThread','consumable','for','targetPosition','toViewElement','upcast','rootName','applyOperation','forceDefaultExecution','isBefore','containsRangeInObject','getIntersection','createSelection','nodeAfter','multi','define','_checkSuggestionCorrectness','stopListening','_setSuggestionRange','chain','commentThread','_suggestionState','head','rejected','trackChanges.mergeNestedSuggestions','normal','isAfter','change','requires','author','$textProxy','item','suggestionUnloaded','insertion:join','dataDowncast','newRange','PENDING_ACTION_SUGGESTION','removed','_cutOutSuggestionMarker','editingDowncast','showSuggestionHighlights','range','addSuggestion','CommentsRepository','model','includes','size','plugins','PendingActions','markMultiRangeBlockFormat','getRanges','get','some','conversion','_suggestions','track-changes-suggestion-not-found','config','fire','_defaultCallbacks','containerElement','moveTargetPosition','_setSuggestionData','notReady','error-saving-suggestion-data-suggestion-discarded','stop','insertContent','fromRange','creator','getSuggestions','_registerDefaultCallbacks','createPositionBefore','_getExternalAuthor','listenTo','commands','map','markerToData','addMarker:suggestion:formatBlock','commandName','getFirstRange','isLimit','acceptSelectedSuggestions','mapper','formatBlock:','_customCallbacks','elementToElement','getAncestors','track-changes-adapter-missing-getsuggestion','getFirstMarker','getSuggestion','buildSuggestion','length','TrackChangesEditing','values','_updateSuggestionData','setSelection','formatInline','ready','isRemovable','dataToMarker','discardSuggestion','suggestionChanged','enqueueChange','forward','activeMarkers','type','acceptSuggestion','enableCommand','collaboration.channelId','getSuggestionCallback','subType','highest','end','formatBlock:discard','writer','deleteContent','move','_handleNewSuggestionMarker','from','multipleBlocks','markBlockFormat','registerPostFixer','isInContent','fetchCommentThread','removeMarker','insertion:','set','isLocal','getNearestSelectionRange','root','getShiftedBy','deletion','has','@external','isObject','formatInline:discard','change:_saved','clone','locale','start','addMarkerName','_editor','remove','getUser','delete','dataReady','suggestionLoaded','data','isTouching','add'];(function(_0x1be480,_0x5bbce1){const _0x540709=function(_0x540302){while(--_0x540302){_0x1be480['push'](_0x1be480['shift']());}};_0x540709(++_0x5bbce1);}(_0x5bbc,0xd9));const _0x5407=function(_0x1be480,_0x5bbce1){_0x1be480=_0x1be480-0x0;let _0x540709=_0x5bbc[_0x1be480];return _0x540709;};import{Plugin as _0x559d86,PendingActions as _0x31ddb5}from'ckeditor5/src/core.js';import{LiveRange as _0x376084}from'ckeditor5/src/engine.js';import{CKEditorError as _0x468b33,uid as _0x3f2a4c,priorities as _0x22ed0b,logWarning as _0x7a3173}from'ckeditor5/src/utils.js';import{toWidget as _0x3eb375}from'ckeditor5/src/widget.js';import{Users as _0x342db6,hashObject as _0x3bf0e7}from'ckeditor5-collaboration';import _0x896c8e from'./commands/trackchangescommand.js';import _0x2e24c2 from'./commands/acceptsuggestioncommand.js';import _0x4dd945 from'./commands/discardsuggestioncommand.js';import _0x5d31d7 from'./commands/executeonallsuggestionscommand.js';import _0x16a204 from'./commands/executeonselectedsuggestionscommand.js';import _0x37741b from'./suggestion.js';import _0x5163ba from'./suggestiondescriptionfactory.js';import _0x38a610 from'./integrations/alignment.js';import _0x3f838d from'./integrations/basicstyles.js';import _0x758172 from'./integrations/blockquote.js';import _0x431657 from'./integrations/ckbox.js';import _0x1bcdd0 from'./integrations/codeblock.js';import _0x2fd025 from'./integrations/comments.js';import _0x104f23 from'./integrations/deletecommand.js';import _0xebc9d6 from'./integrations/documentlist.js';import _0x22e1fe from'./integrations/entercommand.js';import _0x168df3 from'./integrations/findandreplace.js';import _0x486ee8 from'./integrations/font.js';import _0x1a0730 from'./integrations/formatpainter.js';import _0x5766a5 from'./integrations/heading.js';import _0x2304a6 from'./integrations/highlight.js';import _0xc47f5d from'./integrations/horizontalline.js';import _0x48613c from'./integrations/htmlembed.js';import _0x4d5158 from'./integrations/image.js';import _0x3cd642 from'./integrations/imagereplace.js';import _0x3e80cc from'./integrations/importword.js';import _0x2a7883 from'./integrations/indent.js';import _0x5b8e07 from'./integrations/inputcommand.js';import _0x40ceb1 from'./integrations/link.js';import _0x513295 from'./integrations/list.js';import _0x444b8a from'./integrations/listproperties.js';import _0x50d66e from'./integrations/mediaembed.js';import _0x27f6b3 from'./integrations/mention.js';import _0x516918 from'./integrations/pagebreak.js';import _0x154a5a from'./integrations/paragraph.js';import _0x5465a3 from'./integrations/removeformat.js';import _0x4528f9 from'./integrations/restrictededitingmode.js';import _0x46ea33 from'./integrations/shiftentercommand.js';import _0x9eb300 from'./integrations/standardeditingmode.js';import _0x31b84e from'./integrations/style.js';import _0x102d77 from'./integrations/table.js';import _0x499c61 from'./integrations/tablemergesplit.js';import _0x5707d4 from'./integrations/tableheadings.js';import _0x47ac76 from'./integrations/tableclipboard.js';import _0x1690f0 from'./integrations/tablecolumnresize.js';import _0x4ab979 from'./integrations/template.js';import _0x3c06c2 from'./integrations/tableofcontents.js';import _0x1c3d42 from'./integrations/title.js';import _0x89e8b5 from'./integrations/undo.js';import{getTranslation as _0x59c829}from'./utils/common-translations.js';import _0x34d785 from'./integrations/tablecaption.js';import _0x17f744 from'./integrations/documentlistproperties.js';import _0x4ecf2e from'./integrations/tableproperties.js';export default class p extends _0x559d86{static get[_0x5407('0x120')](){return[_0x5407('0x12f'),_0x342db6,_0x31ddb5,_0x38a610,_0x3f838d,_0x758172,_0x431657,_0x1bcdd0,_0x2fd025,_0x104f23,_0xebc9d6,_0x17f744,_0x22e1fe,_0x168df3,_0x486ee8,_0x1a0730,_0x5766a5,_0x2304a6,_0xc47f5d,_0x48613c,_0x4d5158,_0x3cd642,_0x3e80cc,_0x2a7883,_0x5b8e07,_0x40ceb1,_0x513295,_0x444b8a,_0x50d66e,_0x27f6b3,_0x516918,_0x154a5a,_0x5465a3,_0x4528f9,_0x46ea33,_0x9eb300,_0x31b84e,_0x102d77,_0x499c61,_0x5707d4,_0x34d785,_0x47ac76,_0x1690f0,_0x3c06c2,_0x4ecf2e,_0x4ab979,_0x1c3d42,_0x89e8b5];}static get[_0x5407('0xe3')](){return _0x5407('0x26');}constructor(_0x1b887f){function _0x403dff(_0x15e28f){return _0x15e28f[_0x5407('0x15')](_0x2db561=>String['fromCharCode'](_0x2db561))[_0x5407('0xc2')]('');}super(_0x1b887f),this[_0x5407('0x48')]('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c5624,_0x3974fa,_0x486dfc,_0xee6d07)=>{this[_0x5407('0xb9')][_0x5407('0x11f')](()=>{for(const _0x5e2991 of[..._0xee6d07,..._0x486dfc])this[_0x5407('0xb9')][_0x5407('0xad')][_0x5407('0x4e')](_0x5e2991)&&_0x1b887f[_0x5407('0x9f')][_0x5407('0xd4')](_0x5e2991);});}),this[_0x5407('0xf8')]=new _0x5163ba(this[_0x5407('0xb2')][_0x5407('0x130')][_0x5407('0x7e')],this['editor'][_0x5407('0x54')]),this[_0x5407('0xa8')]=null,this[_0x5407('0xaf')]=new Ct(this[_0x5407('0xb2')]),this[_0x5407('0x1')]=new Map(),this['_commentsRepository']=_0x1b887f['plugins'][_0x5407('0x137')](_0x5407('0x12f')),this[_0x5407('0xee')]=new Set(),this[_0x5407('0xb9')]=this[_0x5407('0xb2')][_0x5407('0x130')],this[_0x5407('0x119')]=new WeakMap(),this[_0x5407('0xf6')]=!0x1,_0x1b887f['config'][_0x5407('0x113')](_0x5407('0xae'),_0x5407('0xd2')),this['_trackFormatChanges']=_0x1b887f[_0x5407('0x3')][_0x5407('0x137')](_0x5407('0xae')),_0x1b887f[_0x5407('0x3')][_0x5407('0x113')](_0x5407('0x11c'),!0x0),this['_mergeNestedSuggestions']=_0x1b887f[_0x5407('0x3')][_0x5407('0x137')](_0x5407('0x11c')),this[_0x5407('0xa7')]=new _0x896c8e(_0x1b887f,this[_0x5407('0xee')]),this[_0x403dff([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x403dff([0x34,0x30,0x34,0x36,0x31,0x34,0x33,0x34]);}['init'](){const _0x31f731=this[_0x5407('0xb2')];_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))[_0x5407('0x81')]({'model':_0x5407('0xca'),'view':_0x34e6da=>{const {id:_0x5a62e5,type:_0x20cec6}=this['_splitMarkerName'](_0x34e6da[_0x5407('0x72')]),_0x52a0e2=[_0x5407('0x6d'),_0x5407('0x7d')+_0x20cec6];let _0x381f47=0xbb8;return this[_0x5407('0x32')][_0x5407('0x131')](_0x34e6da[_0x5407('0x72')])&&(_0x52a0e2[_0x5407('0x61')](_0x5407('0x94')),_0x381f47=0xbc2),'deletion'==_0x20cec6&&(_0x381f47+=0x5),{'classes':_0x52a0e2,'attributes':{'data-suggestion':_0x5a62e5},'priority':_0x381f47};}}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x126'))[_0x5407('0x5f')](_0xb4904a=>{_0xb4904a['on'](_0x5407('0x7f'),(_0x3e541c,_0x561231,_0x34f742)=>{if(!_0x34f742[_0x5407('0x9b')][_0x5407('0x12c')])return;const _0x2a3c77=_0x561231[_0x5407('0x123')];if(!_0x2a3c77)return;const _0x156038=_0x34f742[_0x5407('0x1c')]['toViewElement'](_0x2a3c77);_0x31f731[_0x5407('0x130')]['schema'][_0x5407('0x50')](_0x2a3c77)&&_0x156038&&!_0x156038[_0x5407('0xc1')]('widget')&&_0x156038['is'](_0x5407('0x6'))&&_0x3eb375(_0x156038,_0x34f742['writer']);},{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x126'))[_0x5407('0x81')]({'model':'suggestion','view':(_0x459d5f,_0x2bb55e)=>{if(!_0x2bb55e[_0x5407('0x9b')][_0x5407('0x12c')])return null;const {type:_0x202792}=this['_splitMarkerName'](_0x459d5f[_0x5407('0x72')]);return{'classes':['ck-suggestion-marker',_0x5407('0x7d')+_0x202792],'priority':0xbb8};}});const _0x3398d3=({showActiveMarkers:_0x195d01=!0x0}={})=>(_0x5c4a4c,_0x1d4d48,_0x490822)=>{if(!_0x1d4d48['item'])return;if(_0x1d4d48['item']['is'](_0x5407('0x100')))return void _0x490822['consumable'][_0x5407('0x67')](_0x1d4d48[_0x5407('0x123')],_0x5c4a4c[_0x5407('0xac')]);const _0x454a29=_0x490822[_0x5407('0x1c')][_0x5407('0x108')](_0x1d4d48[_0x5407('0x123')]);if(!(_0x1d4d48[_0x5407('0x123')]['is'](_0x5407('0x78'))&&_0x31f731['model'][_0x5407('0x7e')][_0x5407('0x77')](_0x1d4d48['item'])&&!_0x454a29[_0x5407('0xc1')](_0x5407('0xa0'))))return;const {id:_0x5a9627}=this[_0x5407('0xef')](_0x1d4d48[_0x5407('0x72')]);_0x490822['writer']['addClass'](['ck-suggestion-marker',_0x5407('0xfd')],_0x454a29),_0x490822[_0x5407('0x3c')][_0x5407('0xd7')]('data-suggestion',_0x5a9627,_0x454a29),_0x490822['mapper'][_0x5407('0xf1')](_0x454a29,_0x1d4d48[_0x5407('0x72')]),_0x195d01&&(this[_0x5407('0x32')][_0x5407('0x131')](_0x1d4d48[_0x5407('0x72')])?_0x490822['writer'][_0x5407('0x6a')](_0x5407('0x94'),_0x454a29):_0x490822['writer']['removeClass'](_0x5407('0x94'),_0x454a29));for(const _0x287529 of _0x31f731[_0x5407('0x130')][_0x5407('0xbc')](_0x1d4d48[_0x5407('0x123')])['getItems']())_0x490822[_0x5407('0x105')]['consume'](_0x287529,_0x5c4a4c['name']);_0x490822[_0x5407('0x105')]['consume'](_0x1d4d48['item'],_0x5c4a4c[_0x5407('0xac')]);};_0x31f731['conversion']['for'](_0x5407('0x126'))[_0x5407('0x5f')](_0xfd99ef=>{_0xfd99ef['on']('addMarker:suggestion:formatBlock',(_0x43df5f,_0x3ca2a2,_0x4e3fd2)=>{_0x4e3fd2[_0x5407('0x9b')]['showSuggestionHighlights']&&_0x3398d3({'showActiveMarkers':!0x1})(_0x43df5f,_0x3ca2a2,_0x4e3fd2);},{'priority':_0x5407('0x39')});}),_0x31f731[_0x5407('0x0')]['for'](_0x5407('0x126'))[_0x5407('0x16')]({'model':_0x5407('0xca'),'view':(_0x501c0e,_0x304396)=>_0x304396['options'][_0x5407('0x12c')]?null:{'group':_0x5407('0xca'),'name':_0x501c0e[_0x5407('0x8f')](0xb)}}),_0x31f731['conversion'][_0x5407('0x106')](_0x5407('0x109'))[_0x5407('0x1f')]({'view':{'name':_0x5407('0xca'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x45cd1f,{writer:_0x256e92})=>{let _0x139f3=_0x5407('0xa6')+_0x45cd1f[_0x5407('0xc8')]('suggestion-type')+':'+_0x45cd1f[_0x5407('0xc8')]('id');return _0x45cd1f[_0x5407('0xc8')](_0x5407('0x95'))&&(_0x139f3+=':'+_0x45cd1f[_0x5407('0xc8')](_0x5407('0x95'))),_0x256e92[_0x5407('0xc6')](_0x5407('0xe8'),{'data-name':_0x139f3});}}),_0x31f731[_0x5407('0x0')]['for'](_0x5407('0x109'))[_0x5407('0x2d')]({'view':_0x5407('0xca')}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))[_0x5407('0x5f')](_0x1f636f=>{_0x1f636f['on'](_0x5407('0x17'),_0x3398d3(),{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))['add'](_0x3bc62d=>{_0x3bc62d['on'](_0x5407('0x79'),(_0x44f246,_0x3df9d8,_0x1ea96a)=>{const _0x53f780=_0x1ea96a[_0x5407('0x1c')]['markerNameToElements'](_0x3df9d8['markerName']);if(_0x53f780)for(const _0x4c8e0c of _0x53f780)_0x4c8e0c[_0x5407('0xc1')](_0x5407('0xa0'))||(_0x1ea96a[_0x5407('0x3c')][_0x5407('0x7b')]([_0x5407('0x6d'),'ck-suggestion-marker-formatBlock',_0x5407('0x94')],_0x4c8e0c),_0x1ea96a[_0x5407('0x3c')][_0x5407('0xba')]('data-suggestion',_0x4c8e0c),_0x1ea96a[_0x5407('0x1c')][_0x5407('0xa2')](_0x4c8e0c,_0x3df9d8[_0x5407('0x72')]));},{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x130')]['document'][_0x5407('0x43')](_0x530055=>{let _0x53c5e9=!0x1;const _0x1c8734=Array[_0x5407('0x40')](_0x31f731[_0x5407('0x130')][_0x5407('0xcf')][_0x5407('0xce')][_0x5407('0xe0')]()),_0x33790f=new Set();for(const {name:_0x2bf8e1,data:_0x2a67bd}of _0x1c8734){const {group:_0x6eff5f,type:_0x17f34d,id:_0xb85d2}=this[_0x5407('0xef')](_0x2bf8e1);if(_0x5407('0xca')!==_0x6eff5f)continue;const _0x416a02=this['_suggestions'][_0x5407('0x137')](_0xb85d2);if(null!=_0x2a67bd[_0x5407('0x127')]){_0x5407('0x2a')==_0x17f34d&&(_0x53c5e9=_0x53c5e9||_t(_0x2a67bd[_0x5407('0x127')],_0x2bf8e1,_0x530055,_0x31f731[_0x5407('0x130')]['schema']));if(_0x2a67bd[_0x5407('0x127')]['isCollapsed']||'$graveyard'==_0x2a67bd['newRange'][_0x5407('0x4b')][_0x5407('0x10a')]||_0x5407('0xe4')==_0x17f34d&&!$t(_0x2a67bd[_0x5407('0x127')])||_0x5407('0x4d')==_0x17f34d&&!(!Bt(_0x1db81e=_0x2a67bd[_0x5407('0x127')])&&!function(_0x3911b1){return _0x3911b1[_0x5407('0x55')][_0x5407('0x8d')]==_0x3911b1[_0x5407('0x3a')][_0x5407('0xe9')]&&_0x3911b1['start'][_0x5407('0x82')];}(_0x1db81e)))_0x530055[_0x5407('0x46')](_0x2bf8e1),_0x53c5e9=!0x0;else{if(!_0x416a02||!_0x416a02[_0x5407('0x44')])continue;_0x33790f[_0x5407('0x5f')](_0x416a02);}}}var _0x1db81e;return _0x33790f[_0x5407('0x132')]>0x0&&(_0x53c5e9=!!this[_0x5407('0x76')](_0x33790f)||_0x53c5e9),_0x53c5e9;}),_0x31f731['model']['document'][_0x5407('0x43')](_0x52b02a=>{let _0x3aec76=!0x1;for(const _0x381511 of _0x31f731[_0x5407('0x130')][_0x5407('0xcf')]['differ']['getChanges']()){if(_0x5407('0xab')!=_0x381511[_0x5407('0x33')])continue;const _0xb9cf78=_0x381511[_0x5407('0xb6')][_0x5407('0x4c')](_0x381511[_0x5407('0x25')]);if(_0xb9cf78[_0x5407('0x82')])for(const _0x1ba677 of this[_0x5407('0x1')]['values']()){if(_0x1ba677[_0x5407('0x80')]||!_0x1ba677[_0x5407('0x44')])continue;if(_0x5407('0xe4')!=_0x1ba677['type'])continue;const _0x23f7bf=_0x1ba677['getFirstRange']();if(_0x23f7bf[_0x5407('0x55')][_0x5407('0x8d')]!=_0x23f7bf[_0x5407('0x3a')][_0x5407('0x8d')]&&_0x23f7bf[_0x5407('0x3a')][_0x5407('0xfa')](_0x381511['position'])){const _0x3d3569=_0x31f731[_0x5407('0x130')][_0x5407('0xd1')](_0x23f7bf[_0x5407('0x55')],_0xb9cf78);_0x52b02a[_0x5407('0x84')](_0x1ba677[_0x5407('0x22')](),{'range':_0x3d3569}),_0x3aec76=!0x0;}}}return _0x3aec76;}),_0x31f731[_0x5407('0x130')]['markers']['on'](_0x5407('0xa5'),(_0x25f95b,_0xb18858,_0x1d3213)=>{if(null==_0x1d3213){const {id:_0x3ff2d7}=this[_0x5407('0xef')](_0xb18858[_0x5407('0xac')]),_0x34975b=this[_0x5407('0x1')][_0x5407('0x137')](_0x3ff2d7);_0x34975b&&_0x34975b[_0x5407('0x56')](_0xb18858[_0x5407('0xac')]);}}),_0x31f731[_0x5407('0x130')][_0x5407('0xcf')]['on']('change:data',()=>{const _0x4cc04e=Array[_0x5407('0x40')](_0x31f731[_0x5407('0x130')][_0x5407('0xcf')][_0x5407('0xce')][_0x5407('0xe0')]())[_0x5407('0x9a')](_0x5a0145=>_0x5407('0xca')===this[_0x5407('0xef')](_0x5a0145['name'])[_0x5407('0x98')]);if(0x0===_0x4cc04e[_0x5407('0x25')])return;_0x4cc04e['sort']((_0x378660,_0x27f6af)=>{const _0x4a4d28=_0x378660[_0x5407('0x5d')][_0x5407('0xda')],_0x4d203e=_0x27f6af[_0x5407('0x5d')][_0x5407('0xda')];return null===_0x4a4d28&&null===_0x4d203e?0x0:null===_0x4a4d28&&null!==_0x4d203e?-0x1:null!==_0x4a4d28&&null===_0x4d203e?0x1:_0x4a4d28[_0x5407('0x55')][_0x5407('0x10d')](_0x4d203e[_0x5407('0x55')])?-0x1:0x1;});const _0x19b60c=new Set(),_0x4702d7=new Set();for(const {name:_0x13bcee,data:_0x2d7e48}of _0x4cc04e){const {id:_0x45b3da}=this[_0x5407('0xef')](_0x13bcee);if(null===_0x2d7e48['oldRange']){const _0x1375c1=this[_0x5407('0x3f')](_0x13bcee);_0x4702d7['add'](_0x1375c1);}else{const _0x177d9e=this['_suggestions'][_0x5407('0x137')](_0x45b3da);null!==_0x2d7e48['newRange']||_0x177d9e[_0x5407('0x44')]?(_0x19b60c[_0x5407('0x5f')](_0x177d9e[_0x5407('0x11a')]),_0x4702d7[_0x5407('0x5f')](_0x177d9e)):this[_0x5407('0x63')](_0x177d9e);}}_0x4702d7[_0x5407('0x132')]>0x0&&this['_refreshSuggestionsChain'](_0x4702d7);for(const _0x148506 of _0x19b60c)this[_0x5407('0x4')]('suggestionChanged',_0x148506);}),_0x31f731[_0x5407('0x130')]['on'](_0x5407('0x10b'),(_0xd1113e,_0x23ec62)=>{const _0x504291=_0x23ec62[0x0];if(!this[_0x5407('0x1')]['size'])return;if(!_0x504291[_0x5407('0x101')])return;if(_0x504291[_0x5407('0xea')][_0x5407('0x7a')]||!_0x504291[_0x5407('0xea')][_0x5407('0x49')])return;let _0x5ae816,_0x3185a1;switch(_0x504291[_0x5407('0x33')]){case _0x5407('0xab'):_0x5ae816=_0x31f731[_0x5407('0x130')]['createPositionAt'](_0x504291[_0x5407('0xb6')]),_0x3185a1=_0x5ae816['getShiftedBy'](_0x504291[_0x5407('0xc5')]);break;case _0x5407('0x89'):_0x5ae816=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291['splitPosition']),_0x3185a1=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291[_0x5407('0x7')]);break;case _0x5407('0x3e'):_0x5ae816=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291[_0x5407('0x107')]),_0x3185a1=_0x5ae816[_0x5407('0x4c')](_0x504291['howMany']);break;default:return;}const _0x3b597a=_0x31f731['model'][_0x5407('0xd1')](_0x5ae816,_0x3185a1);_0x31f731[_0x5407('0x130')]['change'](()=>{for(const {suggestion:_0x126c04,meta:_0x5e4ac2}of this[_0x5407('0x92')](_0x3b597a)){if(_0x126c04[_0x5407('0x80')])continue;if(_0x5407('0x2a')==_0x126c04['type'])continue;const _0x2b5c51=_0x126c04[_0x5407('0x5d')]&&_0x126c04['data'][_0x5407('0x41')];(_0x5407('0xe4')!=_0x126c04[_0x5407('0x33')]||_0x5407('0x89')==_0x504291[_0x5407('0x33')]&&!_0x2b5c51)&&(_0x5e4ac2[_0x5407('0x10e')]||_0x5407('0x99')==_0x126c04['type']&&_0x5e4ac2[_0x5407('0xbd')]||_0x126c04['getFirstRange']()[_0x5407('0xf4')](_0x3b597a)&&this[_0x5407('0x74')](_0x126c04,_0x5ae816,_0x3185a1));}});},{'priority':'lowest'}),_0x31f731[_0x5407('0x130')]['on']('deleteContent',(_0x423ae5,_0x176f1d)=>{const _0x405433=_0x176f1d[0x0],_0x220296=_0x176f1d[0x1];if(_0x220296&&_0x220296[_0x5407('0x10c')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5407('0xa7')][_0x5407('0xeb')])return;if(_0x405433[_0x5407('0xed')])return;const _0x42dfb5=_0x31f731[_0x5407('0x130')]['schema'],{start:_0x8fd354,end:_0x3bb0c7}=_0x405433[_0x5407('0x19')](),_0x3042dc=_0x8fd354[_0x5407('0x111')]&&_0x42dfb5[_0x5407('0x1a')](_0x8fd354[_0x5407('0x111')])?null:_0x42dfb5[_0x5407('0x4a')](_0x8fd354,_0x5407('0x31')),_0x45d74a=_0x3bb0c7[_0x5407('0xe9')]&&_0x42dfb5['isLimit'](_0x3bb0c7[_0x5407('0xe9')])?null:_0x42dfb5[_0x5407('0x4a')](_0x3bb0c7,_0x5407('0xcc')),_0x4e3655=_0x31f731[_0x5407('0x130')]['createRange'](_0x3042dc?_0x3042dc[_0x5407('0x55')]:_0x8fd354,_0x45d74a?_0x45d74a[_0x5407('0x3a')]:_0x3bb0c7);_0x31f731[_0x5407('0x130')][_0x5407('0x11f')](_0x38297a=>{this[_0x5407('0xa1')](_0x4e3655);const _0x15646e=_0x31f731[_0x5407('0x130')][_0x5407('0x7e')]['getNearestSelectionRange'](_0x4e3655[_0x5407('0x55')]);_0x405433['is'](_0x5407('0xb7'))?_0x38297a[_0x5407('0x29')](_0x15646e):_0x405433[_0x5407('0xe6')](_0x15646e);}),_0x423ae5[_0x5407('0xb')]();},{'priority':_0x22ed0b[_0x5407('0x11d')]+0xa}),_0x31f731['model']['on'](_0x5407('0xc'),(_0x38c7f7,_0x2965cd)=>{const _0x4e5bdb=_0x2965cd[_0x2965cd['length']-0x1];_0x4e5bdb&&_0x4e5bdb[_0x5407('0x10c')]||this[_0x5407('0xf6')]||this[_0x5407('0xa7')][_0x5407('0xeb')]&&(_0x31f731['model'][_0x5407('0x11f')](()=>{let _0x11ef77=_0x31f731[_0x5407('0x130')]['insertContent'](_0x2965cd[0x0],_0x2965cd[0x1],_0x2965cd[0x2],{'forceDefaultExecution':!0x0});if(!_0x11ef77)return;_0x38c7f7['return']=_0x11ef77[_0x5407('0x53')]();const _0x1fb275=_0x11ef77[_0x5407('0x3a')]['nodeBefore'],_0x378a8a=_0x31f731[_0x5407('0x130')]['schema'];_0x1fb275&&_0x378a8a['isBlock'](_0x1fb275)&&!_0x378a8a[_0x5407('0x50')](_0x1fb275)&&(_0x11ef77=_0x31f731['model'][_0x5407('0xd1')](_0x11ef77[_0x5407('0x55')],_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x1fb275,_0x5407('0x3a')))),this[_0x5407('0xc9')](_0x11ef77);}),_0x38c7f7[_0x5407('0xb')]());},{'priority':_0x5407('0x60')}),this[_0x5407('0xb2')]['commands']['add'](_0x5407('0x6e'),this[_0x5407('0xa7')]),this['enableCommand']('trackChanges');const _0x3d4455=new _0x2e24c2(_0x31f731,this[_0x5407('0x1')]);_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x34'),_0x3d4455),this[_0x5407('0x35')](_0x5407('0x34'));const _0x4ca597=new _0x4dd945(_0x31f731,this[_0x5407('0x1')]);_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x2e'),_0x4ca597),this[_0x5407('0x35')](_0x5407('0x2e')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x6c'),new _0x5d31d7(_0x31f731,_0x3d4455,this[_0x5407('0x1')])),this['enableCommand'](_0x5407('0x6c')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0xbe'),new _0x5d31d7(_0x31f731,_0x4ca597,this['_suggestions'])),this[_0x5407('0x35')](_0x5407('0xbe')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x1b'),new _0x16a204(_0x31f731,_0x3d4455,this[_0x5407('0x1')])),this[_0x5407('0x35')]('acceptSelectedSuggestions'),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x85'),new _0x16a204(_0x31f731,_0x4ca597,this[_0x5407('0x1')])),this['enableCommand'](_0x5407('0x85'));const _0x21e86a=_0x31f731[_0x5407('0x133')]['get']('CommentsRepository');this[_0x5407('0x13')](_0x21e86a,'addComment',(_0x384622,{threadId:_0x9c9c27})=>{const _0x134709=this[_0x5407('0x1')][_0x5407('0x137')](_0x9c9c27);_0x134709&&_0x134709[_0x5407('0x118')]&&0x1===_0x134709[_0x5407('0x118')]['length']&&this[_0x5407('0x28')](_0x9c9c27,{'hasComments':!0x0});},{'priority':'low'}),this[_0x5407('0x13')](_0x21e86a,_0x5407('0xe2'),(_0x48348a,{threadId:_0x33056c})=>{const _0x2cbacc=this[_0x5407('0x1')][_0x5407('0x137')](_0x33056c);_0x2cbacc&&_0x2cbacc[_0x5407('0x118')]&&!_0x2cbacc[_0x5407('0x118')][_0x5407('0x25')]&&this[_0x5407('0x28')](_0x33056c,{'hasComments':!0x1});},{'priority':_0x5407('0xa3')});}set[_0x5407('0xf2')](_0x5c3bde){if(this[_0x5407('0xa8')])throw new _0x468b33(_0x5407('0xc4'),this);this[_0x5407('0xa8')]=_0x5c3bde;}get[_0x5407('0xf2')](){return this['_adapter'];}[_0x5407('0xf')]({skipNotAttached:_0x1c655c=!0x1,toJSON:_0x23c4bd=!0x1}={}){const _0x5ed8de=[];for(const _0x11fb7f of this[_0x5407('0x1')][_0x5407('0x27')]())_0x1c655c&&!_0x11fb7f['isInContent']||_0x5ed8de['push'](_0x11fb7f);return _0x23c4bd?_0x5ed8de['map'](_0x4afa25=>_0x4afa25[_0x5407('0x86')]()):_0x5ed8de;}[_0x5407('0x23')](_0x529fad){const _0x53315a=this[_0x5407('0x1')][_0x5407('0x137')](_0x529fad);if(!_0x53315a)throw new _0x468b33(_0x5407('0x2'),this);return _0x53315a;}['hasSuggestion'](_0x4106e9){return this['_suggestions']['has'](_0x4106e9);}['addSuggestionData'](_0x4e3b2f){const {authorId:_0x341c45,id:_0xe4d5a5,attributes:_0x113736}=_0x4e3b2f,[_0x4d0aed,_0x5a5f6c]=_0x4e3b2f['type'][_0x5407('0x89')](':'),_0x31ff49=this[_0x5407('0x1')][_0x5407('0x137')](_0xe4d5a5)||this[_0x5407('0xd6')](_0x4d0aed,_0x5a5f6c,_0xe4d5a5,_0x341c45,_0x113736);if(this[_0x5407('0x8a')](_0x31ff49),this['_checkSuggestionCorrectness'](_0x31ff49,_0x4d0aed,_0x5a5f6c||null,_0x341c45),_0x31ff49[_0x5407('0xc0')]=_0x4e3b2f[_0x5407('0xc0')],_0x113736&&_0x113736[_0x5407('0x4f')]){const _0x367a0b=_0x113736[_0x5407('0x4f')],_0x1bbfdc=this['_getExternalAuthor'](_0x367a0b['authorName']);_0x31ff49[_0x5407('0x102')]=_0x367a0b[_0x5407('0xc0')],_0x31ff49[_0x5407('0x121')]=_0x1bbfdc,_0x31ff49[_0x5407('0x8e')]=!0x0;}else _0x31ff49['authoredAt']=_0x4e3b2f['createdAt'];switch(_0x4e3b2f[_0x5407('0x5d')]&&(_0x31ff49[_0x5407('0x5d')]=_0x4e3b2f[_0x5407('0x5d')]),_0x4e3b2f[_0x5407('0xd0')]&&(_0x31ff49[_0x5407('0xd0')]=_0x4e3b2f[_0x5407('0xd0')]),this['_adapter']&&this[_0x5407('0xa8')][_0x5407('0x12e')]||(_0x31ff49[_0x5407('0xc3')]=!0x0),this[_0x5407('0x119')][_0x5407('0x137')](_0x31ff49)){case _0x5407('0x9'):this[_0x5407('0x119')][_0x5407('0x48')](_0x31ff49,_0x5407('0x5b'));break;case'markerReady':_0x31ff49['isInContent']?(this[_0x5407('0x119')]['set'](_0x31ff49,_0x5407('0x2b')),this[_0x5407('0x4')](_0x5407('0x5c'),_0x31ff49)):this[_0x5407('0x119')][_0x5407('0x48')](_0x31ff49,_0x5407('0x129'));}return _0x31ff49;}[_0x5407('0x34')](_0x587827){this[_0x5407('0x10c')](()=>{this['editor'][_0x5407('0x130')][_0x5407('0x11f')](()=>{for(const _0x4f5f48 of _0x587827['getAllAdjacentSuggestions']())_0x4f5f48['accept']();});});}[_0x5407('0x2e')](_0x99f2f2){this['forceDefaultExecution'](()=>{this[_0x5407('0xb2')]['model'][_0x5407('0x11f')](()=>{for(const _0x425af3 of _0x99f2f2[_0x5407('0x6b')]())_0x425af3[_0x5407('0x9d')]();});});}['enableCommand'](_0x46135e,_0x29f397){const _0x5e18e1=this[_0x5407('0xb2')]['commands'][_0x5407('0x137')](_0x46135e);if(!_0x5e18e1)throw new _0x468b33(_0x5407('0xbb'),this,{'commandName':_0x46135e});this['_enabledCommands']['add'](_0x5e18e1),_0x29f397&&_0x5e18e1['on'](_0x5407('0x97'),(_0x4d14e0,_0x245612)=>{this[_0x5407('0xa7')]['value']&&(this[_0x5407('0xf6')]||_0x245612['length']>0x0&&_0x245612[_0x245612['length']-0x1]&&_0x245612[_0x245612[_0x5407('0x25')]-0x1][_0x5407('0x10c')]||(_0x29f397((..._0x1296e3)=>_0x5e18e1[_0x5407('0x97')](..._0x1296e3,{'forceDefaultExecution':!0x0}),..._0x245612),_0x4d14e0[_0x5407('0xb')]()));},{'priority':_0x5407('0x60')});}[_0x5407('0x10c')](_0x47d674){let _0x1b80e5,_0x1de276;const _0x28d19a=this[_0x5407('0xf6')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b80e5=_0x47d674();}catch(_0x57a085){_0x1de276=_0x57a085;}return _0x28d19a||(this[_0x5407('0xf6')]=!0x1),_0x1de276&&_0x468b33[_0x5407('0xc7')](_0x1de276,this),_0x1b80e5;}[_0x5407('0xc9')](_0x56217f,_0x36c9d9=null,_0x3d7efd={}){if(_0x56217f[_0x5407('0xed')])return null;const _0x4c5eba=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const {suggestion:_0x1a9252,meta:_0x374f30}of this['_findSuggestions'](_0x56217f,_0x5407('0x99')))if(_0x374f30[_0x5407('0xbd')]){if(!_0x374f30[_0x5407('0x103')]){if(!this[_0x5407('0xff')]&&_0x374f30[_0x5407('0x10e')])continue;return _0x1a9252;}if(_0x36c9d9==_0x1a9252[_0x5407('0x38')]){const _0x5efcde=_0x1a9252[_0x5407('0x19')]();return _0x5efcde[_0x5407('0x55')][_0x5407('0xfa')](_0x56217f['end'])?this[_0x5407('0x116')](_0x1a9252,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x56217f['start'],_0x5efcde['end'])):this[_0x5407('0x116')](_0x1a9252,this[_0x5407('0xb9')]['createRange'](_0x5efcde[_0x5407('0x55')],_0x56217f[_0x5407('0x3a')])),_0x1a9252;}}const _0x5cd2dc=_0x3f2a4c(),_0x14fa5d=_0x4c5eba['id'],_0x2ed401=_0x36c9d9?'insertion:'+_0x36c9d9:_0x5407('0x99'),_0x1a7120=this[_0x5407('0x8')]({'id':_0x5cd2dc,'type':_0x2ed401,'createdAt':new Date(),'authorId':_0x14fa5d,'attributes':_0x3d7efd});return this[_0x5407('0x73')](_0x2ed401,_0x5cd2dc,_0x14fa5d,_0x56217f),_0x1a7120;}[_0x5407('0x96')](_0x4da630,_0x3a6f1c=_0x5407('0x112'),_0x2848d1={}){const _0x1ca94b=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x3b1a9c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a6f1c,_0x5407('0xc2'));for(const _0x5e955e of this[_0x5407('0xf')]())if(_0x5e955e[_0x5407('0x121')]['id']==_0x1ca94b['id']&&'insertion'==_0x5e955e['type']&&_0x5e955e[_0x5407('0x38')]==_0x3a6f1c&&(_0x3b1a9c(_0x5e955e[_0x5407('0x136')](),_0x4da630)||_0x3b1a9c(_0x4da630,_0x5e955e[_0x5407('0x136')]()))){for(const _0x18126 of _0x4da630)_0x5e955e[_0x5407('0xfe')](_0x18126);return _0x5e955e;}if(this[_0x5407('0xff')])for(const _0x353c71 of _0x4da630)for(const {suggestion:_0x6b278c,meta:_0x81f3ae}of this[_0x5407('0x92')](_0x353c71,_0x5407('0x99'))){if(!_0x81f3ae['isOwn'])continue;let _0x1f01c4=!0x0;for(const _0x50b074 of _0x6b278c['getRanges']())for(const _0x2dfa68 of _0x4da630)if(!_0x50b074['containsRange'](_0x2dfa68)){_0x1f01c4=!0x1;break;}if(_0x1f01c4)return _0x6b278c;}const _0x45b6bd=_0x3f2a4c(),_0x51f4f5=_0x1ca94b['id'],_0x3af5e5=_0x5407('0x47')+_0x3a6f1c,_0x29fe41=this['_setSuggestionData']({'id':_0x45b6bd,'type':_0x3af5e5,'createdAt':new Date(),'authorId':_0x51f4f5,'attributes':_0x2848d1});for(const _0x2a08cc of _0x4da630)this[_0x5407('0x73')](_0x3af5e5,_0x45b6bd,_0x51f4f5,_0x2a08cc,_0x37741b['getMultiRangeId']());return _0x29fe41;}['markInlineFormat'](_0x4f0f31,_0x1bddd8,_0x176f5e=null,_0x5c0e05={}){if(_0x176f5e=_0x176f5e||Mt(_0x1bddd8),_0x4f0f31[_0x5407('0xed')])return null;if(_0x5407('0x7c')===this[_0x5407('0x75')]){const _0x36baf9=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x2a'),_0x176f5e,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x36baf9([_0x4f0f31],_0x1bddd8,_0x5c0e05)),null;}const _0x1afe22=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x2e5f37=[];if(_0x5407('0xd3')!==this['_trackFormatChanges'])for(const {suggestion:_0xbf9ef6,meta:_0x3b6997}of this[_0x5407('0x92')](_0x4f0f31,_0x5407('0x99')))_0x3b6997[_0x5407('0xbd')]&&!_0x3b6997[_0x5407('0x71')]&&_0x2e5f37[_0x5407('0x61')](..._0xbf9ef6['getRanges']());const _0x2bbe3d=function(_0x1139ed,_0x370b12){const _0x52f65f=[];for(const _0x59685d of _0x370b12){const _0x41e9ff=_0x1139ed[_0x5407('0x10f')](_0x59685d);_0x41e9ff&&_0x52f65f['push'](_0x41e9ff);}return _0x52f65f;}(_0x4f0f31,_0x2e5f37),_0x1a52f6=function(_0x581776,_0x4ad772){const _0x1bc89c=[_0x581776];for(const _0x10f8cd of _0x4ad772){let _0xd2f4=0x0;for(;_0xd2f4<_0x1bc89c[_0x5407('0x25')];){const _0x2f3f06=_0x1bc89c[_0xd2f4][_0x5407('0x66')](_0x10f8cd);_0x1bc89c[_0x5407('0xe5')](_0xd2f4,0x1,..._0x2f3f06),_0xd2f4+=_0x2f3f06['length'];}}return _0x1bc89c;}(_0x4f0f31,_0x2e5f37);_0x2bbe3d[_0x5407('0x25')]&&this[_0x5407('0xb9')][_0x5407('0x11f')](()=>{for(const _0x3714fb of _0x2bbe3d){const _0x595c4a=this[_0x5407('0xaf')]['getSuggestionCallback'](_0x5407('0x2a'),_0x176f5e,'accept');this[_0x5407('0x10c')](()=>_0x595c4a([_0x3714fb],_0x1bddd8,_0x5c0e05));}});for(const _0x1884f1 of _0x1a52f6){let _0x1eacd1=null,_0x103ea1=_0x1884f1[_0x5407('0x55')],_0x1b4778=_0x1884f1[_0x5407('0x3a')];for(const {suggestion:_0x23d292,meta:_0x1419bc}of this[_0x5407('0x92')](_0x1884f1,_0x5407('0x2a'))){if(!_0x1419bc[_0x5407('0xbd')])continue;if(_0x23d292[_0x5407('0x38')]!=_0x176f5e)continue;const _0x3a6fff=_0x23d292[_0x5407('0x19')]();if(_0x3a6fff[_0x5407('0xf4')](_0x1884f1,!0x0))return null;_0x103ea1=_0x103ea1[_0x5407('0x10d')](_0x3a6fff['start'])?_0x103ea1:_0x3a6fff[_0x5407('0x55')],_0x1b4778=_0x1b4778[_0x5407('0x11e')](_0x3a6fff[_0x5407('0x3a')])?_0x1b4778:_0x3a6fff[_0x5407('0x3a')],_0x1eacd1?_0x3a6fff[_0x5407('0x55')][_0x5407('0x10d')](_0x1eacd1[_0x5407('0x19')]()[_0x5407('0x55')])?(_0x1eacd1['removeMarkers'](),_0x1eacd1=_0x23d292):_0x23d292[_0x5407('0x65')]():_0x1eacd1=_0x23d292;}const _0x13162e=this['_model'][_0x5407('0xd1')](_0x103ea1,_0x1b4778);if(_0x1eacd1)this[_0x5407('0x116')](_0x1eacd1,_0x13162e);else{const _0xb0c371=_0x3f2a4c(),_0x3c0d23=_0x1afe22['id'];this[_0x5407('0x8')]({'id':_0xb0c371,'type':_0x5407('0x9c')+_0x176f5e,'data':_0x1bddd8,'createdAt':new Date(),'authorId':_0x3c0d23,'attributes':_0x5c0e05}),this[_0x5407('0x73')](_0x5407('0x9c')+_0x176f5e,_0xb0c371,_0x3c0d23,_0x13162e);}}return null;}[_0x5407('0x42')](_0x1ab1ef,_0x22e2e4,_0x1ae6b9=[],_0x3fb056=null,_0xe93115={}){_0x22e2e4[_0x5407('0x68')]||(_0x22e2e4[_0x5407('0x68')]=_0x22e2e4[_0x5407('0x18')]),_0x22e2e4[_0x5407('0x41')]=_0x1ab1ef['is'](_0x5407('0x12d')),_0x3fb056=_0x3fb056||Mt(_0x22e2e4);const _0xec9abd=_0x1ae6b9[_0x5407('0x15')](_0x8e35f0=>Nt(_0x8e35f0,this[_0x5407('0xb9')])),_0x317a68=_0x1ab1ef['is']('range')?_0x1ab1ef:Nt(_0x1ab1ef,this[_0x5407('0xb9')]);if(_0x5407('0x7c')===this[_0x5407('0x75')]){const _0x54e05a=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x3fb056,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x54e05a([_0x317a68],_0x22e2e4,_0xe93115)),null;}_0xec9abd[_0x5407('0x61')](_0x317a68);let _0x34cac4=!0x0;for(const _0x2ae9c6 of _0xec9abd)if(!this['_rangeIsInLocalUserInsertion'](_0x2ae9c6)){_0x34cac4=!0x1;break;}if(_0x34cac4&&_0x5407('0xd3')!==this[_0x5407('0x75')]){const _0x22e931=this[_0x5407('0xaf')]['getSuggestionCallback']('formatBlock',_0x3fb056,'accept');return this[_0x5407('0x10c')](()=>_0x22e931([_0x317a68],_0x22e2e4,_0xe93115)),null;}let _0x550139=null,_0xd11d82=_0x317a68[_0x5407('0x55')],_0x36bd12=_0x317a68['end'];for(const {suggestion:_0x5b07f5,meta:_0x4b386f}of this['_findSuggestions'](_0x317a68,'formatBlock')){if(!_0x4b386f[_0x5407('0xbd')]||_0x4b386f[_0x5407('0x103')]||_0x4b386f[_0x5407('0x10e')]||_0x4b386f['isInsideObject'])continue;if(_0x5b07f5['data'][_0x5407('0x68')]!=_0x22e2e4[_0x5407('0x68')])continue;const _0x47d635=_0x5b07f5[_0x5407('0x19')]();if(_0x5b07f5[_0x5407('0x38')]==_0x3fb056){if(_0x47d635[_0x5407('0xf4')](_0x317a68,!0x0))return null;_0xd11d82=_0xd11d82[_0x5407('0x10d')](_0x47d635[_0x5407('0x55')])?_0xd11d82:_0x47d635['start'],_0x36bd12=_0x36bd12[_0x5407('0x11e')](_0x47d635[_0x5407('0x3a')])?_0x36bd12:_0x47d635['end'],_0x550139?_0x47d635[_0x5407('0x55')][_0x5407('0x10d')](_0x550139['getFirstRange']()[_0x5407('0x55')])?(_0x550139[_0x5407('0x65')](),_0x550139=_0x5b07f5):_0x5b07f5[_0x5407('0x65')]():_0x550139=_0x5b07f5;}else{const _0x25d4d2=_0x317a68[_0x5407('0x10f')](_0x47d635);this['_cutOutSuggestionMarker'](_0x5b07f5,_0x25d4d2);}}const _0x34dcc7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')]('Users')['me'],_0x47f4c1=_0x3f2a4c(),_0x5ee070=_0x34dcc7['id'];if(_0x550139)return this[_0x5407('0x116')](_0x550139,this['_model'][_0x5407('0xd1')](_0xd11d82,_0x36bd12)),_0x550139;{const _0x3e29e=this[_0x5407('0x8')]({'id':_0x47f4c1,'type':_0x5407('0x1d')+_0x3fb056,'data':_0x22e2e4,'createdAt':new Date(),'authorId':_0x5ee070,'attributes':_0xe93115});return this[_0x5407('0x73')]('formatBlock:'+_0x3fb056,_0x47f4c1,_0x5ee070,this[_0x5407('0xb9')][_0x5407('0xd1')](_0xd11d82,_0x36bd12)),_0x3e29e;}}[_0x5407('0x135')](_0x23e8cb,_0x5a7010,_0x4ffcd4=[],_0x492a66=null,_0x36a9a2={}){_0x5a7010[_0x5407('0x68')]||(_0x5a7010[_0x5407('0x68')]=_0x5a7010[_0x5407('0x18')]);const _0x17bdf4=_0x23e8cb[0x0];_0x5a7010[_0x5407('0x41')]=_0x17bdf4['is'](_0x5407('0x12d')),_0x492a66=_0x492a66||Mt(_0x5a7010);const _0x3572d6=_0x4ffcd4[_0x5407('0x15')](_0x10855f=>Nt(_0x10855f,this['_model'])),_0xdfe8bc=_0x17bdf4['is'](_0x5407('0x12d'))?_0x23e8cb:_0x23e8cb['map'](_0x1bb88b=>Nt(_0x1bb88b,this['_model']));if('never'===this[_0x5407('0x75')]){const _0x76eeeb=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x492a66,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x76eeeb(_0xdfe8bc,_0x5a7010,_0x36a9a2)),null;}_0x3572d6[_0x5407('0x61')](..._0xdfe8bc);let _0x19a8d3=!0x0;for(const _0x21e3e1 of _0x3572d6)if(!this[_0x5407('0xd8')](_0x21e3e1)){_0x19a8d3=!0x1;break;}if(_0x19a8d3&&_0x5407('0xd3')!==this[_0x5407('0x75')]){const _0x56139b=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x492a66,'accept');return this[_0x5407('0x10c')](()=>_0x56139b(_0xdfe8bc,_0x5a7010,_0x36a9a2)),null;}const _0x55c17b=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const _0xc9eefa of this[_0x5407('0xf')]()){if(_0xc9eefa[_0x5407('0x121')]['id']!=_0x55c17b['id'])continue;if('formatBlock'!=_0xc9eefa[_0x5407('0x33')]||_0xc9eefa[_0x5407('0x5d')][_0x5407('0x68')]!=_0x5a7010['formatGroupId'])continue;const _0x3b0943=_0xc9eefa[_0x5407('0x38')]==_0x492a66;for(let _0x29139b=0x0;_0x29139b<_0xdfe8bc[_0x5407('0x25')];_0x29139b++){const _0x53dc23=_0xdfe8bc[_0x29139b];for(const _0x20f1f8 of _0xc9eefa['getMarkers']()){const _0x45f008=_0x20f1f8[_0x5407('0xdf')]();if(_0x53dc23[_0x5407('0xfa')](_0x45f008)){_0x3b0943?(_0xdfe8bc[_0x5407('0xe5')](_0x29139b,0x1),_0x29139b--):_0xc9eefa['removeMarker'](_0x20f1f8[_0x5407('0xac')]);break;}}}}if(0x0==_0xdfe8bc[_0x5407('0x25')])return null;const _0xdbcb3b=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0xe4'),_0x492a66,_0x5407('0xc2'));for(const _0x2fce30 of this['getSuggestions']())if(_0x2fce30[_0x5407('0x121')]['id']==_0x55c17b['id']&&_0x5407('0xe4')==_0x2fce30[_0x5407('0x33')]&&_0x2fce30['data'][_0x5407('0x68')]==_0x5a7010[_0x5407('0x68')]&&_0x2fce30[_0x5407('0x38')]==_0x492a66&&(_0xdbcb3b(_0x2fce30[_0x5407('0x136')](),_0xdfe8bc)||_0xdbcb3b(_0xdfe8bc,_0x2fce30[_0x5407('0x136')]()))){for(const _0x27d7fa of _0xdfe8bc)_0x2fce30[_0x5407('0xfe')](_0x27d7fa);return _0x2fce30;}const _0x3805dd=_0x3f2a4c(),_0x144660=_0x55c17b['id'],_0x45e75b='formatBlock:'+_0x492a66,_0x20b75f=this[_0x5407('0x8')]({'id':_0x3805dd,'type':_0x45e75b,'data':_0x5a7010,'createdAt':new Date(),'authorId':_0x144660,'attributes':_0x36a9a2});for(const _0x270f9e of _0xdfe8bc)this[_0x5407('0x73')](_0x45e75b,_0x3805dd,_0x144660,_0x270f9e,_0x37741b['getMultiRangeId']());return _0x20b75f;}[_0x5407('0xa1')](_0x5f5c34,_0x3fef5f=null,_0x93c9f={}){if(_0x5f5c34[_0x5407('0xed')])return null;const _0x52155d=this['editor'][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x37e479=new _0x376084(_0x5f5c34[_0x5407('0x55')],_0x5f5c34['end']);for(const {suggestion:_0x451fc4,meta:_0x308765}of this[_0x5407('0x92')](_0x37e479,_0x5407('0x99')))if(_0x308765[_0x5407('0xbd')]&&!_0x308765[_0x5407('0x103')]){if(_0x451fc4['isMultiRange']){const _0x18617a=_0x451fc4[_0x5407('0x136')]()[_0x5407('0x9a')](_0x531a61=>'$graveyard'!=_0x531a61['root'][_0x5407('0x10a')]);_0x18617a['every'](_0x5a1f12=>_0x37e479[_0x5407('0xf4')](_0x5a1f12,!0x0))&&_0x451fc4[_0x5407('0x9d')]();if(_0x18617a[_0x5407('0x138')](_0x101dad=>_0x101dad['containsRange'](_0x37e479,!0x0))){const _0x5b389a=this[_0x5407('0xaf')][_0x5407('0x37')]('deletion',_0x3fef5f,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x5b389a([_0x37e479],null,_0x93c9f)),null;}}else{const _0x10236b=_0x37e479['getIntersection'](_0x451fc4['getFirstRange']());null!==_0x10236b&&_0x451fc4[_0x5407('0x9e')]([_0x10236b],null,_0x93c9f);}}if(_0x37e479[_0x5407('0x70')](),_0x37e479[_0x5407('0xed')]||'$graveyard'==_0x37e479['root'][_0x5407('0x10a')])return null;let _0x45e1c1=null,_0x37c831=_0x37e479[_0x5407('0x55')],_0x8b288a=_0x37e479[_0x5407('0x3a')];for(const {suggestion:_0x534a56,meta:_0x4f13bb}of this[_0x5407('0x92')](_0x37e479,_0x5407('0x4d')))if(_0x4f13bb[_0x5407('0xbd')]){if(_0x534a56['isMultiRange']&&this['_mergeNestedSuggestions']){let _0x46a981=!0x0;for(const _0x4e7393 of _0x534a56['getRanges']()){if(_0x4e7393[_0x5407('0xf4')](_0x37e479,!0x0))return _0x534a56;_0x37e479[_0x5407('0xf4')](_0x4e7393)||(_0x46a981=!0x1);}_0x46a981&&_0x534a56['discard']();}else{const _0x3f40a3=_0x534a56[_0x5407('0x19')]();if(_0x3f40a3['containsRange'](_0x37e479,!0x0)){if(!this[_0x5407('0xff')]&&_0x4f13bb[_0x5407('0x10e')])continue;return _0x534a56;}_0x37c831=_0x37c831[_0x5407('0x10d')](_0x3f40a3[_0x5407('0x55')])?_0x37c831:_0x3f40a3[_0x5407('0x55')],_0x8b288a=_0x8b288a['isAfter'](_0x3f40a3[_0x5407('0x3a')])?_0x8b288a:_0x3f40a3['end'],_0x45e1c1?_0x3f40a3[_0x5407('0x55')][_0x5407('0x10d')](_0x45e1c1[_0x5407('0x19')]()[_0x5407('0x55')])?(_0x45e1c1[_0x5407('0x65')](),_0x45e1c1=_0x534a56):_0x534a56[_0x5407('0x65')]():_0x45e1c1=_0x534a56;}}if(_0x45e1c1)return this[_0x5407('0x116')](_0x45e1c1,this[_0x5407('0xb9')]['createRange'](_0x37c831,_0x8b288a)),_0x45e1c1;{const _0x2a3e36=_0x3f2a4c(),_0x49262a=this[_0x5407('0xb9')]['createRange'](_0x37c831,_0x8b288a),_0xb151ad=_0x52155d['id'],_0x4e2a14=_0x3fef5f?_0x5407('0x83')+_0x3fef5f:_0x5407('0x4d'),_0x30959c=this[_0x5407('0x8')]({'id':_0x2a3e36,'type':_0x4e2a14,'createdAt':new Date(),'authorId':_0xb151ad,'attributes':_0x93c9f});return this[_0x5407('0x73')](_0x4e2a14,_0x2a3e36,_0xb151ad,_0x49262a),_0x30959c;}}[_0x5407('0xdb')](_0x35c99e,_0x4b8f90=_0x5407('0x112'),_0x1d6542={}){const _0x30a66c=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x5c11b9=_0x35c99e[_0x5407('0x15')](_0x96f060=>new _0x376084(_0x96f060[_0x5407('0x55')],_0x96f060[_0x5407('0x3a')])),_0x140702=new Set();for(const _0x48ae50 of _0x5c11b9)for(const {suggestion:_0x44c7e6,meta:_0x4d13cd}of this[_0x5407('0x92')](_0x48ae50,_0x5407('0x99')))_0x4d13cd[_0x5407('0xbd')]&&!_0x4d13cd[_0x5407('0x103')]&&_0x140702[_0x5407('0x5f')](_0x44c7e6);for(const _0x217add of _0x140702)if(_0x217add['isMultiRange']){const _0x35cc04=_0x217add[_0x5407('0x136')]();(!_0x217add[_0x5407('0xd0')]||!_0x217add[_0x5407('0xd0')]['skipNestingCheck'])&&(_0x35cc04[_0x5407('0x88')](_0x1e57f5=>_0x5c11b9[_0x5407('0x138')](_0x134f48=>_0x134f48[_0x5407('0xf4')](_0x1e57f5,!0x0)))&&_0x217add[_0x5407('0x9d')]());if(_0x5c11b9[_0x5407('0x88')](_0x437a74=>_0x35cc04[_0x5407('0x138')](_0x3a5844=>_0x3a5844[_0x5407('0xf4')](_0x437a74,!0x0)))){const _0x3d2c5e=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x3d2c5e(_0x35c99e,null,_0x1d6542)),null;}}else{const _0xb00579=_0x217add[_0x5407('0x19')]();_0x5c11b9[_0x5407('0x138')](_0x1ba4be=>_0x1ba4be['containsRange'](_0xb00579,!0x0))&&_0x217add[_0x5407('0x9d')]();if(_0x5c11b9[_0x5407('0x88')](_0x3b167c=>_0xb00579[_0x5407('0xf4')](_0x3b167c,!0x0))){const _0x3393cf=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x3393cf(_0x5c11b9,null,_0x1d6542)),null;}}const _0x59fc98=this['_suggestionFactory'][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,'join');let _0x1731dd=null;for(const _0x29fe67 of this[_0x5407('0xf')]())if(_0x29fe67['author']['id']==_0x30a66c['id']&&_0x29fe67[_0x5407('0x44')]&&_0x5407('0x4d')==_0x29fe67[_0x5407('0x33')]&&_0x29fe67['subType']==_0x4b8f90&&(_0x59fc98(_0x29fe67[_0x5407('0x136')](),_0x5c11b9)||_0x59fc98(_0x5c11b9,_0x29fe67[_0x5407('0x136')]()))){if(_0x1731dd){if(_0x29fe67[_0x5407('0x118')]&&_0x29fe67[_0x5407('0x118')]['length'])continue;for(const _0x2a306b of _0x29fe67[_0x5407('0x136')]())_0x1731dd['isIntersectingWithRange'](_0x2a306b)||_0x1731dd['addRange'](_0x2a306b);_0x29fe67[_0x5407('0x65')]();}else{_0x1731dd=_0x29fe67;for(const _0x1fb95e of _0x5c11b9)_0x29fe67[_0x5407('0xf5')](_0x1fb95e)||_0x29fe67[_0x5407('0xfe')](_0x1fb95e);}}if(_0x1731dd)return _0x1731dd;_0x140702[_0x5407('0xde')]();for(const _0x37b712 of _0x5c11b9)for(const {suggestion:_0x3c11dc,meta:_0x204062}of this['_findSuggestions'](_0x37b712,'deletion'))_0x204062[_0x5407('0xbd')]&&_0x140702[_0x5407('0x5f')](_0x3c11dc);for(const _0x171971 of _0x140702){const _0x1e563e=_0x171971[_0x5407('0x136')]();if(!_0x1d6542||!_0x1d6542[_0x5407('0x8b')]){if(_0x5c11b9[_0x5407('0x88')](_0x1bde42=>_0x1e563e[_0x5407('0x138')](_0x4f916e=>_0x4f916e[_0x5407('0xf4')](_0x1bde42,!0x0))))return _0x171971;}(!_0x171971['attributes']||!_0x171971[_0x5407('0xd0')][_0x5407('0x8b')])&&(_0x1e563e[_0x5407('0x88')](_0x3f34d7=>_0x5c11b9[_0x5407('0x138')](_0x190cc7=>_0x190cc7['containsRange'](_0x3f34d7,!0x0)))&&_0x171971[_0x5407('0x9d')]());}const _0x9e643=_0x3f2a4c(),_0x56cc48=_0x30a66c['id'],_0x4a5cba=_0x5407('0x83')+_0x4b8f90,_0x2e9401=this[_0x5407('0x8')]({'id':_0x9e643,'type':_0x4a5cba,'createdAt':new Date(),'authorId':_0x56cc48,'attributes':_0x1d6542});for(const _0x2c189c of _0x5c11b9)_0x2c189c[_0x5407('0x70')](),_0x2c189c['isCollapsed']||_0x5407('0xa9')==_0x2c189c[_0x5407('0x4b')][_0x5407('0x10a')]||this['_addSuggestionMarker'](_0x4a5cba,_0x9e643,_0x56cc48,_0x2c189c,_0x37741b['getMultiRangeId']());return _0x2e9401;}[_0x5407('0x116')](_0x2eb010,_0x5338f8){const _0x5d1b6d=_0x2eb010['getFirstMarker']();this[_0x5407('0xb9')]['change'](_0x115dbc=>{_0x115dbc['updateMarker'](_0x5d1b6d,{'range':_0x5338f8});});}['_addThreadToSuggestion'](_0x5966e9){const _0x286f9d=_0x5966e9['id'],_0x5854b1=this[_0x5407('0xb2')]['config'][_0x5407('0x137')](_0x5407('0x36'));this[_0x5407('0xdd')][_0x5407('0x104')](_0x286f9d)||this[_0x5407('0xdd')]['addCommentThread']({'channelId':_0x5854b1,'threadId':_0x286f9d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x230424=this['_commentsRepository'][_0x5407('0xe7')](_0x286f9d);_0x230424['unbind'](_0x5407('0x2c')),_0x230424['isRemovable']=!0x1,_0x5966e9['commentThread']=_0x230424;}['_checkSuggestionCorrectness'](_0x49333c,_0x58ff25,_0x148050,_0x3e5e12){if(_0x49333c[_0x5407('0x33')]!=_0x58ff25||_0x49333c[_0x5407('0x38')]!=_0x148050||_0x49333c[_0x5407('0xe')]['id']!=_0x3e5e12)throw this[_0x5407('0xb2')]['enableReadOnlyMode'](_0x5407('0xcb')),new _0x468b33(_0x5407('0xcb'),this);}[_0x5407('0x12a')](_0x402bb7,_0x35cf16){const _0x639e5e=_0x402bb7[_0x5407('0x19')]();if(_0x35cf16[_0x5407('0xfa')](_0x639e5e))_0x402bb7[_0x5407('0x65')]();else{if(_0x639e5e['containsRange'](_0x35cf16)){const _0x58d401=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16['start']['nodeBefore'],_0x5407('0x3a'));this[_0x5407('0x116')](_0x402bb7,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x639e5e['start'],_0x58d401));const _0x3c4c34=_0x3f2a4c(),_0x112bdc=_0x402bb7['creator']['id'],_0x5b8524=_0x402bb7['type']+':'+_0x402bb7[_0x5407('0x38')];this['_setSuggestionData']({'id':_0x3c4c34,'type':_0x5b8524,'createdAt':new Date(),'authorId':_0x112bdc,'data':_0x402bb7['data'],'attributes':_0x402bb7[_0x5407('0xd0')]});const _0x49006e=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16['end'][_0x5407('0x8d')],'after'),_0x19b2db=this[_0x5407('0xb9')][_0x5407('0xd1')](_0x49006e,_0x639e5e[_0x5407('0x3a')]);this[_0x5407('0x73')](_0x5b8524,_0x3c4c34,_0x112bdc,_0x19b2db);}else{if(_0x639e5e['containsPosition'](_0x35cf16['start'])){const _0x59b3b9=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16[_0x5407('0x55')][_0x5407('0xe9')],_0x5407('0x3a'));this[_0x5407('0x116')](_0x402bb7,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x639e5e[_0x5407('0x55')],_0x59b3b9));}else{const _0x52a0c5=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16[_0x5407('0x3a')]['parent'],'after');this[_0x5407('0x116')](_0x402bb7,this['_model'][_0x5407('0xd1')](_0x52a0c5,_0x639e5e[_0x5407('0x3a')]));}}}}[_0x5407('0xd8')](_0x382473){for(const {suggestion:_0x466ab8,meta:_0x15e7bb}of this[_0x5407('0x92')](_0x382473,_0x5407('0x99'))){if(!_0x15e7bb[_0x5407('0xbd')])continue;const _0x4dff35=_0x466ab8['getRanges']();for(const _0x5f2f58 of _0x4dff35)if(!_0x382473[_0x5407('0x66')](_0x5f2f58)[_0x5407('0x25')])return!0x0;}return!0x1;}[_0x5407('0xd9')](_0x133457){const _0x4f2365=this[_0x5407('0xb2')]['plugins'][_0x5407('0x137')]('Users')[_0x5407('0x59')](_0x133457);if(!_0x4f2365)throw new _0x468b33('track-changes-user-not-found',this);return _0x4f2365;}[_0x5407('0x12')](_0x43b990){const _0x2882a7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc')),_0x9a4776=_0x3bf0e7('external:'+_0x43b990),_0xccea98=_0x2882a7[_0x5407('0x59')](_0x9a4776);return _0xccea98||_0x2882a7['addUser']({'id':_0x9a4776,'name':_0x43b990});}[_0x5407('0xd6')](_0x37235f,_0x13fd9f,_0x41f71b,_0x5d2b58,_0xb2669b){const _0x26e1a4=this[_0x5407('0xd9')](_0x5d2b58),_0x3a78ee=this[_0x5407('0xaf')][_0x5407('0x24')](_0x37235f,_0x13fd9f,_0x41f71b,_0x26e1a4,_0xb2669b,_0x3c3aca=>this[_0x5407('0x28')](_0x41f71b,{'attributes':_0x3c3aca}));return this[_0x5407('0x13')](_0x3a78ee,_0x5407('0xbf'),()=>{this[_0x5407('0x28')](_0x41f71b,{'state':'accepted'});},{'priority':_0x5407('0x60')}),this[_0x5407('0x13')](_0x3a78ee,_0x5407('0x9d'),()=>{this['_updateSuggestionData'](_0x41f71b,{'state':_0x5407('0x11b')});},{'priority':_0x5407('0x60')}),this['_suggestions']['set'](_0x41f71b,_0x3a78ee),this[_0x5407('0x119')][_0x5407('0x48')](_0x3a78ee,'notReady'),_0x3a78ee;}['_splitMarkerName'](_0x7be8e4){const _0x26592b=_0x7be8e4[_0x5407('0x89')](':');return{'group':_0x26592b[0x0],'type':_0x26592b[0x1],'subType':_0x26592b['length']>=0x5?_0x26592b[0x2]:null,'id':_0x26592b[_0x5407('0x25')]<0x5?_0x26592b[0x2]:_0x26592b[0x3],'authorId':_0x26592b[_0x5407('0x25')]<0x5?_0x26592b[0x3]:_0x26592b[0x4],'markerCount':0x6==_0x26592b[_0x5407('0x25')]?_0x26592b[0x5]:null};}[_0x5407('0x74')](_0x470716,_0x966252,_0x2dbef8){const _0x13d95c=_0x470716[_0x5407('0x19')](),_0x5ab35f=_0x13d95c[_0x5407('0x55')],_0x5bf575=_0x13d95c[_0x5407('0x3a')];this[_0x5407('0x116')](_0x470716,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x5ab35f,_0x966252));const _0x9635a4=_0x3f2a4c(),_0x598211=_0x470716['creator']['id'],_0xe6751a=_0x470716[_0x5407('0x33')]+(_0x470716[_0x5407('0x38')]?':'+_0x470716['subType']:'');this[_0x5407('0x8')]({'id':_0x9635a4,'type':_0xe6751a,'createdAt':new Date(),'authorId':_0x598211,'originalSuggestionId':_0x470716['id'],'attributes':_0x470716[_0x5407('0xd0')],'data':_0x470716[_0x5407('0x5d')]}),_0x5407('0xe4')==_0x470716[_0x5407('0x33')]&&(_0x2dbef8=this[_0x5407('0xb9')][_0x5407('0x11')](_0x2dbef8['parent'])),this[_0x5407('0x73')](_0xe6751a,_0x9635a4,_0x598211,this['_model'][_0x5407('0xd1')](_0x2dbef8,_0x5bf575));}[_0x5407('0x92')](_0x5bab05,_0x48449f=null){const _0x3f995e=[],_0x2ed9ab=this[_0x5407('0xb9')][_0x5407('0x7e')],_0x5e33e7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const _0x3e3f60 of this[_0x5407('0xf')]())if(_0x3e3f60[_0x5407('0x44')]&&(!_0x48449f||_0x3e3f60[_0x5407('0x33')]==_0x48449f))for(const _0x1870b9 of _0x3e3f60[_0x5407('0x136')]()){const _0x13f98b=_0x5bab05[_0x5407('0x55')][_0x5407('0xfa')](_0x1870b9[_0x5407('0x3a')])||_0x5bab05[_0x5407('0x3a')][_0x5407('0xfa')](_0x1870b9[_0x5407('0x55')]);if(_0x13f98b||_0x5bab05[_0x5407('0x10f')](_0x1870b9)){const _0x478350=_0x5bab05[_0x5407('0xf4')](_0x1870b9)&&Dt(_0x2ed9ab,_0x1870b9[_0x5407('0x55')],_0x5bab05),_0x4552c6=_0x1870b9[_0x5407('0xf4')](_0x5bab05)&&Dt(_0x2ed9ab,_0x5bab05[_0x5407('0x55')],_0x1870b9);_0x3f995e[_0x5407('0x61')]({'suggestion':_0x3e3f60,'meta':{'isOwn':_0x5e33e7==_0x3e3f60['author'],'isNextTo':_0x13f98b,'isInsideObject':_0x478350,'containsRangeInObject':_0x4552c6}});break;}}return _0x3f995e;}[_0x5407('0x73')](_0x4150b1,_0x2f0e5b,_0x4871b4,_0x4a44ed,_0x5f2040){this[_0x5407('0xb9')][_0x5407('0x11f')](_0x1508b5=>{let _0x19d5c6=_0x5407('0xa6')+_0x4150b1+':'+_0x2f0e5b+':'+_0x4871b4;_0x5f2040&&(_0x19d5c6=_0x19d5c6+':'+_0x5f2040),_0x1508b5['addMarker'](_0x19d5c6,{'range':_0x4a44ed,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5407('0x63')](_0x1871f2){const _0x49b846=_0x1871f2['previous'],_0x4c7f03=_0x1871f2['next'];_0x1871f2[_0x5407('0x87')]=null,null!=_0x49b846&&(_0x49b846[_0x5407('0x93')]=null),_0x1871f2[_0x5407('0x93')]=null,null!=_0x4c7f03&&(_0x4c7f03['previous']=null),_0x5407('0x2b')==this['_suggestionState'][_0x5407('0x137')](_0x1871f2)&&(this[_0x5407('0x119')][_0x5407('0x48')](_0x1871f2,_0x5407('0x129')),this[_0x5407('0x4')](_0x5407('0x124'),_0x1871f2,_0x49b846,_0x4c7f03));}[_0x5407('0x8')](_0x526df2){const _0x87f9a=_0x526df2['id'],_0x5121f4=this[_0x5407('0x90')](_0x526df2);if(this[_0x5407('0xa8')]&&this[_0x5407('0xa8')][_0x5407('0x12e')]){const _0x244b20=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0x134')),_0x10c803=_0x5121f4[_0x5407('0xb5')],_0x48f3f2=_0x5121f4[_0x5407('0x38')]?_0x5121f4[_0x5407('0x33')]+':'+_0x5121f4[_0x5407('0x38')]:_0x5121f4[_0x5407('0x33')],_0x435cd7=this['editor'][_0x5407('0x54')],_0x326257=_0x244b20[_0x5407('0x5f')](_0x59c829(_0x435cd7,_0x5407('0x128'))),_0x101a49={'id':_0x87f9a,'type':_0x48f3f2,'hasComments':_0x10c803,'data':_0x526df2[_0x5407('0x5d')]||null,'originalSuggestionId':_0x526df2[_0x5407('0xfc')]||null,'attributes':_0x5121f4[_0x5407('0xd0')]};this[_0x5407('0xa8')][_0x5407('0x12e')](_0x101a49)[_0x5407('0xf0')](_0x53d3a4=>{_0x5121f4[_0x5407('0xc3')]=!0x0,_0x244b20[_0x5407('0x58')](_0x326257),_0x53d3a4&&_0x53d3a4[_0x5407('0xc0')]&&(this['_suggestions']['get'](_0x87f9a)[_0x5407('0xc0')]=_0x53d3a4['createdAt']);})[_0x5407('0xf7')](_0xb88dad=>{throw _0x7a3173(_0x5407('0xa')),this[_0x5407('0xb2')][_0x5407('0x130')][_0x5407('0x30')]({'isUndoable':!0x1},()=>{_0x5121f4['discard']();}),_0x5121f4[_0x5407('0x115')](),this[_0x5407('0x1')]['delete'](_0x5121f4['id']),this[_0x5407('0x119')]['delete'](_0x5121f4),_0xb88dad;});}return _0x5121f4;}[_0x5407('0x28')](_0x1ad47d,_0xd64f35){const _0x35b7c4=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')]('PendingActions'),_0x39df03=this[_0x5407('0x23')](_0x1ad47d);if(this[_0x5407('0xa8')]&&this[_0x5407('0xa8')][_0x5407('0x62')]){if(_0x39df03[_0x5407('0xc3')]){const _0x3b56c8=_0x35b7c4[_0x5407('0x5f')](_0x59c829(this['editor']['locale'],_0x5407('0x128')));this[_0x5407('0xa8')][_0x5407('0x62')](_0x1ad47d,_0xd64f35)['then'](()=>{_0x35b7c4[_0x5407('0x58')](_0x3b56c8);});}else _0x39df03['on'](_0x5407('0x52'),()=>{this[_0x5407('0x28')](_0x1ad47d,_0xd64f35);});}}['_getSuggestionData'](_0x5c31f0){if(!this[_0x5407('0xa8')]||!this[_0x5407('0xa8')][_0x5407('0x23')])throw new _0x468b33(_0x5407('0x21'),this);return this[_0x5407('0xa8')][_0x5407('0x23')](_0x5c31f0);}['_handleNewSuggestionMarker'](_0x38f255){const {id:_0x3de4b2,type:_0x37cc00,subType:_0xdc8a72,authorId:_0x337df7}=this[_0x5407('0xef')](_0x38f255),_0x2dee6c=this[_0x5407('0x1')][_0x5407('0x137')](_0x3de4b2)||this['_createSuggestion'](_0x37cc00,_0xdc8a72,_0x3de4b2,_0x337df7,{});switch(this[_0x5407('0x114')](_0x2dee6c,_0x37cc00,_0xdc8a72,_0x337df7),this['_suggestionState'][_0x5407('0x137')](_0x2dee6c)){case'notReady':this['_getSuggestionData'](_0x3de4b2)[_0x5407('0xf0')](_0x1834af=>{let _0x55bc7e=Promise[_0x5407('0x91')]();_0x1834af[_0x5407('0xb5')]&&(_0x55bc7e=this[_0x5407('0xdd')][_0x5407('0x45')]({'channelId':this[_0x5407('0xb2')][_0x5407('0x3')][_0x5407('0x137')](_0x5407('0x36')),'threadId':_0x3de4b2})),_0x55bc7e[_0x5407('0xf0')](()=>{this['addSuggestionData'](_0x1834af)[_0x5407('0xc3')]=!0x0;});}),this[_0x5407('0x119')]['set'](_0x2dee6c,_0x5407('0xb3'));break;case _0x5407('0x129'):this[_0x5407('0x28')](_0x3de4b2,{'state':_0x5407('0xfb')});case'dataReady':this[_0x5407('0x119')]['set'](_0x2dee6c,'ready'),this[_0x5407('0x4')](_0x5407('0x5c'),_0x2dee6c);break;case _0x5407('0x2b'):this[_0x5407('0x4')](_0x5407('0x2f'),_0x2dee6c);}return _0x2dee6c['addMarkerName'](_0x38f255),_0x2dee6c;}['_refreshSuggestionsChain'](_0x540702){const _0x561cbc=Array[_0x5407('0x40')](_0x540702)['filter'](_0x439f5f=>!_0x439f5f['isMultiRange']),_0x15fd3c=this[_0x5407('0xf')]({'skipNotAttached':!0x0})[_0x5407('0x9a')](_0x40e401=>!_0x40e401[_0x5407('0x80')]),_0x4d7acf=_0x15fd3c[_0x5407('0x9a')](_0x2ceab9=>!_0x540702[_0x5407('0x4e')](_0x2ceab9)),_0x3eb1a2=new Map(_0x15fd3c['map'](_0x5a164f=>[_0x5a164f,this[_0x5407('0xaf')][_0x5407('0x37')](_0x5a164f[_0x5407('0x33')],_0x5a164f[_0x5407('0x38')],_0x5407('0x117'))])),_0x5c4a5b=new Map(_0x15fd3c[_0x5407('0x15')](_0xf3e1c3=>[_0xf3e1c3,_0xf3e1c3[_0x5407('0x19')]()])),_0x3dd52a=new Set(),_0x1c8ea7=new Set();for(let _0x53f01d=0x0;_0x53f01d<_0x561cbc[_0x5407('0x25')];_0x53f01d++)_0x255aec(_0x561cbc[_0x53f01d],_0x561cbc,_0x53f01d+0x1);for(let _0x2d0820=0x0;_0x2d0820<_0x561cbc[_0x5407('0x25')];_0x2d0820++)_0x255aec(_0x561cbc[_0x2d0820],_0x4d7acf,0x0);for(let _0x7e18c=0x0;_0x7e18c<_0x561cbc['length'];_0x7e18c++){const _0x48b9e8=_0x561cbc[_0x7e18c];!_0x1c8ea7[_0x5407('0x4e')](_0x48b9e8)&&_0x48b9e8[_0x5407('0x87')]&&(_0x48b9e8[_0x5407('0x87')]['next']===_0x48b9e8&&(_0x48b9e8[_0x5407('0x87')]['next']=null),_0x48b9e8[_0x5407('0x87')]=null),!_0x3dd52a['has'](_0x48b9e8)&&_0x48b9e8[_0x5407('0x93')]&&(_0x48b9e8['next'][_0x5407('0x87')]===_0x48b9e8&&(_0x48b9e8[_0x5407('0x93')][_0x5407('0x87')]=null),_0x48b9e8[_0x5407('0x93')]=null);}function _0x255aec(_0x3e572f,_0x406d87,_0x1f83fe){for(let _0x4ce062=_0x1f83fe;_0x4ce062<_0x406d87[_0x5407('0x25')];_0x4ce062++){const _0x3d28f0=_0x558690(_0x3e572f,_0x406d87[_0x4ce062]);_0x3d28f0&&(_0x3d28f0[0x0][_0x5407('0x93')]=_0x3d28f0[0x1],_0x3d28f0[0x1][_0x5407('0x87')]=_0x3d28f0[0x0],_0x3dd52a[_0x5407('0x5f')](_0x3d28f0[0x0]),_0x1c8ea7[_0x5407('0x5f')](_0x3d28f0[0x1]));}}function _0x558690(_0x5d2425,_0x5db22b){if(_0x5d2425['author']['id']!==_0x5db22b['author']['id'])return null;const _0x39a8ea=_0x3eb1a2[_0x5407('0x137')](_0x5d2425)(_0x5d2425,_0x5db22b,_0x5c4a5b[_0x5407('0x137')](_0x5d2425),_0x5c4a5b[_0x5407('0x137')](_0x5db22b));if(!_0x39a8ea)return null;return _0x3eb1a2['get'](_0x5db22b)(_0x5d2425,_0x5db22b,_0x5c4a5b[_0x5407('0x137')](_0x5d2425),_0x5c4a5b[_0x5407('0x137')](_0x5db22b))?_0x39a8ea[0x1][_0x5407('0x118')]&&_0x39a8ea[0x1]['commentThread'][_0x5407('0x25')]?null:_0x39a8ea:null;}}[_0x5407('0x76')](_0x32b779){const _0x44a796=Array[_0x5407('0x40')](_0x32b779),_0x87053c=this[_0x5407('0xf')]({'skipNotAttached':!0x0}),_0x1ec9a5=_0x87053c[_0x5407('0x9a')](_0x2c4db1=>!_0x32b779[_0x5407('0x4e')](_0x2c4db1)),_0x1147f0=new Map(_0x44a796[_0x5407('0x15')](_0x5bfd88=>[_0x5bfd88,this[_0x5407('0xaf')]['getSuggestionCallback'](_0x5bfd88[_0x5407('0x33')],_0x5bfd88['subType'],'join')])),_0x2afba6=new Map(_0x87053c[_0x5407('0x15')](_0x519c91=>[_0x519c91,_0x519c91[_0x5407('0x136')]()]));for(let _0x4d70d8=0x0;_0x4d70d8<_0x44a796[_0x5407('0x25')];_0x4d70d8++){if(_0x20b362(this,_0x44a796[_0x4d70d8],_0x44a796,_0x4d70d8+0x1))return!0x0;}for(let _0x3d5e82=0x0;_0x3d5e82<_0x44a796['length'];_0x3d5e82++){if(_0x20b362(this,_0x44a796[_0x3d5e82],_0x1ec9a5,0x0))return!0x0;}return!0x1;function _0x20b362(_0x47bce7,_0x236a80,_0x424cb7,_0x32e291){for(let _0x13493=_0x32e291;_0x13493<_0x424cb7[_0x5407('0x25')];_0x13493++){const _0x1dc9f8=_0x424cb7[_0x13493];if(_0x1dc9f8['type']!==_0x236a80[_0x5407('0x33')]||_0x1dc9f8[_0x5407('0x121')]['id']!==_0x236a80[_0x5407('0x121')]['id']||_0x1dc9f8[_0x5407('0x38')]!==_0x236a80[_0x5407('0x38')])continue;const _0x6551aa=_0x1147f0['get'](_0x236a80),_0x1c6a60=_0x2afba6[_0x5407('0x137')](_0x236a80),_0x4dd7ad=_0x2afba6[_0x5407('0x137')](_0x1dc9f8),_0x4d405d=_0x236a80['commentThread']&&_0x236a80[_0x5407('0x118')][_0x5407('0x25')],_0x493038=_0x1dc9f8[_0x5407('0x118')]&&_0x1dc9f8[_0x5407('0x118')]['length'];if(!_0x4d405d&&_0x6551aa(_0x4dd7ad,_0x1c6a60))return _0x47bce7[_0x5407('0xb0')](_0x1dc9f8,_0x236a80),_0x2afba6[_0x5407('0x5a')](_0x236a80),!0x0;if(!_0x493038&&_0x6551aa(_0x1c6a60,_0x4dd7ad))return _0x47bce7[_0x5407('0xb0')](_0x236a80,_0x1dc9f8),_0x2afba6[_0x5407('0x5a')](_0x1dc9f8),!0x0;}return!0x1;}}[_0x5407('0xb0')](_0x2e6523,_0x30d87b){if(_0x2e6523[_0x5407('0x80')])for(const _0x2a24dc of _0x30d87b[_0x5407('0x136')]())_0x2e6523['addRange'](_0x2a24dc);else{const _0x3d363e=_0x30d87b['getFirstRange']()[_0x5407('0x3a')];this[_0x5407('0x116')](_0x2e6523,this[_0x5407('0xb9')]['createRange'](_0x2e6523[_0x5407('0x19')]()[_0x5407('0x55')],_0x3d363e));}_0x30d87b[_0x5407('0x65')]();}}class Ct{constructor(_0xefd03f){this[_0x5407('0x57')]=_0xefd03f,this[_0x5407('0xb9')]=_0xefd03f[_0x5407('0x130')],this[_0x5407('0x1e')]=new Map(),this[_0x5407('0x5')]=new Map(),this[_0x5407('0x10')]();}[_0x5407('0x24')](_0x21f009,_0x4da7fd,_0x42f761,_0x51cb71,_0x532874,_0x15df96){return new _0x37741b(this[_0x5407('0xb9')],{'type':_0x21f009,'subType':_0x4da7fd,'id':_0x42f761,'author':_0x51cb71,'creator':_0x51cb71,'attributes':_0x532874,'onAttributesChange':_0x15df96,'onAccept':(..._0x4feea1)=>this[_0x5407('0x37')](_0x21f009,_0x4da7fd,_0x5407('0xbf'))(..._0x4feea1),'onDiscard':(..._0x50b944)=>this[_0x5407('0x37')](_0x21f009,_0x4da7fd,_0x5407('0x9d'))(..._0x50b944)});}[_0x5407('0xf3')](_0xabd2ef,_0x3079e6,_0x4f022b,_0x2c7fe6){const _0x38203b=_0xabd2ef+':'+_0x3079e6+':'+_0x4f022b;this[_0x5407('0x1e')]['set'](_0x38203b,_0x2c7fe6);}[_0x5407('0x37')](_0xb2c6d8,_0x2a8ee7,_0x4a321b){const _0x28139f=_0xb2c6d8+':'+_0x2a8ee7+':'+_0x4a321b;return this[_0x5407('0x1e')]['get'](_0x28139f)||this[_0x5407('0x5')][_0x5407('0x137')](_0xb2c6d8+':'+_0x4a321b);}[_0x5407('0x10')](){const _0x570ff7=()=>{},_0x8b334f=_0x123078=>{_0x123078['sort']((_0x36c242,_0x7be825)=>_0x36c242[_0x5407('0x55')][_0x5407('0x10d')](_0x7be825['start'])?0x1:-0x1),this[_0x5407('0xb9')]['change'](_0x5037ec=>{for(const _0x4b91db of _0x123078){let _0x4b719b;_0x4b719b=_0x4b91db['end'][_0x5407('0x82')]&&_0x4b91db['end'][_0x5407('0x8d')]==_0x4b91db[_0x5407('0x55')][_0x5407('0x111')]?_0x5037ec[_0x5407('0x110')](_0x4b91db[_0x5407('0x55')]['nodeAfter'],'on'):_0x5037ec[_0x5407('0x110')](_0x4b91db),this['_model'][_0x5407('0x3d')](_0x4b719b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b346c=(_0x4f3688,_0x49f062)=>{this[_0x5407('0xb9')]['change'](_0x55d78b=>{const {commandName:_0x2e87fd,commandParams:_0xfb5426=[]}=_0x49f062,_0x19826b=_0x4f3688[_0x5407('0x15')](_0x5e1455=>(Bt(_0x5e1455)&&(_0x5e1455=this['_model'][_0x5407('0xd1')](_0x5e1455[_0x5407('0x3a')])),_0x5e1455))[_0x5407('0x9a')](_0x2670f6=>_0x5407('0xa9')!==_0x2670f6[_0x5407('0x4b')][_0x5407('0x10a')]);if(_0x19826b[_0x5407('0x25')]<0x1)return;const _0x17899e=Array[_0x5407('0x40')](this[_0x5407('0xb9')][_0x5407('0xcf')][_0x5407('0x100')][_0x5407('0x136')]())[_0x5407('0x15')](_0xc68c4d=>_0x376084[_0x5407('0xd')](_0xc68c4d));_0x55d78b[_0x5407('0x29')](_0x19826b);for(const _0x2906dc of this['_editor'][_0x5407('0x14')][_0x5407('0x14')]())_0x2906dc[_0x5407('0xb1')]();_0xfb5426['push']({'forceDefaultExecution':!0x0}),this[_0x5407('0x57')][_0x5407('0x97')](_0x2e87fd,..._0xfb5426);const _0x268171=_0x17899e[_0x5407('0x9a')](_0x3ee5c8=>_0x5407('0xa9')!=_0x3ee5c8[_0x5407('0x4b')][_0x5407('0x10a')]);_0x268171[_0x5407('0x25')]>0x0&&_0x55d78b[_0x5407('0x29')](_0x268171);for(const _0x5ef506 of _0x17899e)_0x5ef506['detach']();});},_0x3797ad=(_0xa1cbb,_0x4f298c)=>0x1==_0xa1cbb[_0x5407('0x25')]&&0x1==_0x4f298c[_0x5407('0x25')]&&_0xa1cbb[0x0][_0x5407('0x3a')]['isEqual'](_0x4f298c[0x0]['start']),_0x9157d0=(_0x184443,_0x36dfa9,_0x2ae650,_0x11b886)=>Rt(_0x184443,_0x36dfa9,_0x2ae650,_0x11b886,this[_0x5407('0xb9')])?[_0x184443,_0x36dfa9]:Rt(_0x36dfa9,_0x184443,_0x11b886,_0x2ae650,this[_0x5407('0xb9')])?[_0x36dfa9,_0x184443]:null;this[_0x5407('0x5')]['set'](_0x5407('0xb4'),_0x570ff7),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xcd'),_0x8b334f),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x125'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xaa'),_0x9157d0),this[_0x5407('0x5')]['set']('deletion:accept',_0x8b334f),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xa4'),_0x570ff7),this['_defaultCallbacks'][_0x5407('0x48')]('deletion:join',_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xd5'),_0x9157d0),this[_0x5407('0x5')]['set']('formatInline:accept',_0x3b346c),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x51'),_0x570ff7),this[_0x5407('0x5')]['set'](_0x5407('0xf9'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')]('formatInline:chain',_0x570ff7),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x69'),_0x3b346c),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x3b'),_0x570ff7),this['_defaultCallbacks'][_0x5407('0x48')](_0x5407('0x6f'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')]('formatBlock:chain',_0x570ff7);}}function Dt(_0x4ec0da,_0xfe8f50,_0x1260e7){for(const _0x2349b5 of _0xfe8f50[_0x5407('0x8d')][_0x5407('0x20')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2349b5[_0x5407('0x4b')]==_0x2349b5)return!0x1;if(!_0x1260e7[_0x5407('0xe1')](_0x2349b5))return!0x1;if(_0x4ec0da['isObject'](_0x2349b5)||_0x4ec0da['isLimit'](_0x2349b5))return!0x0;}return!0x1;}function Bt(_0x6cae33){return _0x6cae33[_0x5407('0x3a')][_0x5407('0x8d')]==_0x6cae33[_0x5407('0x55')][_0x5407('0x111')]&&_0x6cae33['end']['isAtStart'];}function _t(_0x175027,_0x2abb50,_0x5d2734,_0x401f1f){const _0x46c80d=_0x581da6=>!_0x581da6[_0x5407('0x123')]['is'](_0x5407('0x122'))&&!_0x401f1f[_0x5407('0x50')](_0x581da6[_0x5407('0x123')]),_0x352eac=_0x175027[_0x5407('0x55')]['getLastMatchingPosition'](_0x46c80d),_0x37eefa=_0x175027['end'][_0x5407('0xb8')](_0x46c80d,{'direction':_0x5407('0xcc')});return(!_0x175027['start']['isEqual'](_0x352eac)||!_0x175027[_0x5407('0x3a')][_0x5407('0xfa')](_0x37eefa))&&(_0x352eac[_0x5407('0x10d')](_0x37eefa)?_0x5d2734[_0x5407('0x84')](_0x2abb50,{'range':_0x5d2734[_0x5407('0xd1')](_0x352eac,_0x37eefa)}):_0x5d2734[_0x5407('0x46')](_0x2abb50),!0x0);}function Mt(_0x2a4432){return _0x3bf0e7(_0x2a4432);}function $t(_0x3b210c){const _0x351ee9=_0x3b210c[_0x5407('0x55')][_0x5407('0x111')];return _0x351ee9&&_0x351ee9['is'](_0x5407('0x78'));}function Nt(_0x361bf0,_0x115052){const _0x5b988e=_0x115052[_0x5407('0x7e')]['isObject'](_0x361bf0)||_0x115052['schema']['isSelectable'](_0x361bf0);return _0x115052['createRange'](_0x115052['createPositionAt'](_0x361bf0,'before'),_0x5b988e?_0x115052['createPositionAfter'](_0x361bf0):_0x115052['createPositionAt'](_0x361bf0,'end'));}function Rt(_0x31ea03,_0x54301d,_0x5f514c,_0x2b2c7c,_0xe033bc){if(_0x5f514c[_0x5407('0x3a')]['isEqual'](_0x2b2c7c[_0x5407('0x55')]))return!0x0;if(_0x31ea03['type']!=_0x54301d['type'])return!0x1;if(!_0x5f514c[_0x5407('0x3a')][_0x5407('0x5e')](_0x2b2c7c[_0x5407('0x55')]))return!0x1;const _0xf72343=_0xe033bc[_0x5407('0xd1')](_0x5f514c['end'],_0x2b2c7c['start'])[_0x5407('0x64')]();for(const _0x408ad3 of _0xf72343)if(['elementStart',_0x5407('0xec')]['includes'](_0x408ad3[_0x5407('0x33')])&&_0xe033bc['schema'][_0x5407('0x1a')](_0x408ad3[_0x5407('0x123')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x6c41=['hasCommentThread','getSuggestionCallback','showSuggestionHighlights','_setSuggestionData','elementStart','updateSuggestion','forceDefaultExecution','isSelectable','widget','_getAuthorFromId','hasSuggestion','isLocal','markers','collaboration.channelId','editing','creator','type','_findSuggestions','accepted','formatBlock','for','toJSON','oldRange','removeComment','mapper','discard','@external','add','marker-count','insertion','authorName','_handleNewSuggestionMarker','targetPosition','backward','getNearestSelectionRange','getMultiRangeId','includes','createPositionAt','ck-suggestion-marker--active','root','createRangeIn','isNextTo','selection','trackChanges.mergeNestedSuggestions','markerToHighlight','_trackFormatChanges','discardSuggestion','setAttribute','start','push','formatBlock:discard','clear','formatInline:join','multipleBlocks','commentThread','deletion:','_saved','insertion:accept','_registerDefaultCallbacks','suggestion-type','_adapter','removed','data-suggestion','suggestion:','fetchCommentThread','acceptSelectedSuggestions','containsRangeInObject','forward','_onDiscard','schema','insertion:discard','$marker','_mergeNestedSuggestions','isAtStart','getMarkers','deleteContent','getItems','formatBlock:','deletion:accept','always','deletion:discard','default','_joinWithAdjacentSuggestions','map','buildSuggestion','addMarkerName','_rangeIsInLocalUserInsertion','_splitMarkerName','track-changes-adapter-missing-getsuggestion','formatGroupId','isAfter','change','addMarker:suggestion','_refreshSuggestionsChain','addMarker:suggestion:formatBlock','hasComments','howMany','removeMarker:suggestion:formatBlock','dataToMarker','_getExternalAuthor','return','detach','editingDowncast','formatInline:discard','reconvertMarker','isOwn','suggestionUnloaded','trackChangesCommand','ready','_removeSuggestion','discardSelectedSuggestions','registerPostFixer','discardAllSuggestions','markInsertion','addMarker','acceptAllSuggestions','attributes','trackChanges.trackFormatChanges','getRanges','getUser','external:','markDeletion','consume','get','batch','addUser','never','options','newRange','model','addSuggestion','createElement','split','PENDING_ACTION_SUGGESTION','fire','multi','skipNestingCheck','document','getCommentThread','removeMarkers','_isForcedDefaultExecutionBlock','formatInline','_suggestionFactory','author','group','_commentsRepository','differ','nodeBefore','_customCallbacks','isLimit','nodeAfter','previous','_joinSuggestions','editor','deletion:join','some','delete','insertion:','_createSuggestion','next','track-changes-adapter-already-set','updateMarker','isTouching','formatInline:accept','name','moveTargetPosition','getFirstRange','after','authoredAt','addHighlight','track-changes-suggestion-data-mismatch','stop','isEqual','low','set','markerReady','markerName','from','rethrowUnexpectedError','markerToData','_suggestions','isUndo','normal','getShiftedBy','define','_breakSuggestionMarker','fromRange','execute','init','stopListening','unbind','clone','toViewElement','containsRange','consumable','unbindElementFromMarkerName','item','pluginName','high','sort','has','_cutOutSuggestionMarker','addComment','getRange','isCollapsed','conversion','suggestion','config','removeMarker','getSuggestion','containerElement','formatInline:chain','ck-suggestion-marker-formatBlock','end','insert','upcast','isBefore','_checkSuggestionCorrectness','range','bindElementToMarker','registerCustomCallback','documentSelection','markBlockFormat','getIntersection','PendingActions','_defaultCallbacks','deletion','addSuggestionData','enableCommand','_descriptionFactory','Users','size','suggestionLoaded','element','setSelection','createRange','_model','_editor','insertion:join','getSuggestions','getAncestors','trackChanges','isAtEnd','_getSuggestionData','lowest','getChanges','formatBlock:chain','deletion:chain','containsItem','then','_addSuggestionMarker','activeMarkers','plugins','suggestionChanged','markMultiRangeDeletion','$graveyard','requires','ck-suggestion-marker','listenTo','getLastMatchingPosition','accept','commands','formatBlock:accept','acceptSuggestion','isBlock','isInContent','originalSuggestionId','adapter','position','isObject','formatInline:','writer','rootName','join','isMultiRange','_enabledCommands','refresh','highest','CommentsRepository','locale','getFirstMarker','_addThreadToSuggestion','insertContent','_suggestionState','TrackChangesEditing','markMultiRangeInsertion','length','isExternal','elementEnd','parent','_setSuggestionRange','notReady','addClass','isRemovable','splice','subType','track-changes-command-not-found','track-changes-suggestion-not-found','elementToElement','open','filter','setTo','createdAt','getCustomProperty','getAttribute','every','createPositionAfter','commandName','formatBlock:join','_updateSuggestionData','dataDowncast','isIntersectingWithRange','value','addRange','getDifference','getChangedMarkers','data'];(function(_0x5c6a60,_0x6c4125){const _0x7b1d8f=function(_0x22991a){while(--_0x22991a){_0x5c6a60['push'](_0x5c6a60['shift']());}};_0x7b1d8f(++_0x6c4125);}(_0x6c41,0x1e8));const _0x7b1d=function(_0x5c6a60,_0x6c4125){_0x5c6a60=_0x5c6a60-0x0;let _0x7b1d8f=_0x6c41[_0x5c6a60];return _0x7b1d8f;};import{Plugin as _0x418a15,PendingActions as _0x365adc}from'ckeditor5/src/core';import{LiveRange as _0x4e3075}from'ckeditor5/src/engine';import{CKEditorError as _0x39da4f,uid as _0x26317d,priorities as _0x51e1ab,logWarning as _0x4736cc}from'ckeditor5/src/utils';import{toWidget as _0x5a8685}from'ckeditor5/src/widget';import{Users as _0x544e31,hashObject as _0x1c57e1}from'ckeditor5-collaboration/src/collaboration-core';import _0x87cf19 from'./commands/trackchangescommand';import _0x5f093d from'./commands/acceptsuggestioncommand';import _0x40e317 from'./commands/discardsuggestioncommand';import _0x4ce6d9 from'./commands/executeonallsuggestionscommand';import _0x1015b7 from'./commands/executeonselectedsuggestionscommand';import _0x5731e0 from'./suggestion';import _0x7d5b19 from'./suggestiondescriptionfactory';import _0x48e375 from'./integrations/alignment';import _0x43437d from'./integrations/basicstyles';import _0xea45ec from'./integrations/blockquote';import _0x441526 from'./integrations/ckbox';import _0x3d0f8d from'./integrations/codeblock';import _0x55f928 from'./integrations/comments';import _0x59a7f8 from'./integrations/deletecommand';import _0x5a4166 from'./integrations/documentlist';import _0x307c46 from'./integrations/entercommand';import _0x500e64 from'./integrations/findandreplace';import _0x56cef8 from'./integrations/font';import _0x508ffc from'./integrations/formatpainter';import _0x317bbe from'./integrations/heading';import _0x24f2ba from'./integrations/highlight';import _0x503e9c from'./integrations/horizontalline';import _0x3e62bf from'./integrations/htmlembed';import _0x16e96f from'./integrations/image';import _0xbadbba from'./integrations/imagereplace';import _0x4eb073 from'./integrations/importword';import _0x4df470 from'./integrations/indent';import _0xc52b0d from'./integrations/inputcommand';import _0x2a79d7 from'./integrations/link';import _0x13c39a from'./integrations/list';import _0x363ef6 from'./integrations/listproperties';import _0x59df26 from'./integrations/mediaembed';import _0x3bb08d from'./integrations/mention';import _0x333bf3 from'./integrations/pagebreak';import _0x47ac9e from'./integrations/paragraph';import _0x1fb170 from'./integrations/removeformat';import _0x547022 from'./integrations/restrictededitingmode';import _0x42a415 from'./integrations/shiftentercommand';import _0x43da7c from'./integrations/standardeditingmode';import _0x122fa5 from'./integrations/style';import _0x37aa8a from'./integrations/table';import _0x55d5e8 from'./integrations/tablemergesplit';import _0x979762 from'./integrations/tableheadings';import _0x2b86a0 from'./integrations/tableclipboard';import _0x443133 from'./integrations/tablecolumnresize';import _0x19ff20 from'./integrations/template';import _0x1f2643 from'./integrations/tableofcontents';import _0xb35901 from'./integrations/title';import _0xe736d4 from'./integrations/undo';import{getTranslation as _0x327a39}from'./utils/common-translations';import _0x59123f from'./integrations/tablecaption';import _0x1abc54 from'./integrations/documentlistproperties';import _0x4288be from'./integrations/tableproperties';export default class p extends _0x418a15{static get[_0x7b1d('0x55')](){return['CommentsRepository',_0x544e31,_0x365adc,_0x48e375,_0x43437d,_0xea45ec,_0x441526,_0x3d0f8d,_0x55f928,_0x59a7f8,_0x5a4166,_0x1abc54,_0x307c46,_0x500e64,_0x56cef8,_0x508ffc,_0x317bbe,_0x24f2ba,_0x503e9c,_0x3e62bf,_0x16e96f,_0xbadbba,_0x4eb073,_0x4df470,_0xc52b0d,_0x2a79d7,_0x13c39a,_0x363ef6,_0x59df26,_0x3bb08d,_0x333bf3,_0x47ac9e,_0x1fb170,_0x547022,_0x42a415,_0x43da7c,_0x122fa5,_0x37aa8a,_0x55d5e8,_0x979762,_0x59123f,_0x2b86a0,_0x443133,_0x1f2643,_0x4288be,_0x19ff20,_0xb35901,_0xe736d4];}static get[_0x7b1d('0x1a')](){return _0x7b1d('0x71');}constructor(_0x233215){function _0x4cd3dd(_0x3f8378){return _0x3f8378[_0x7b1d('0xe5')](_0x58b455=>String['fromCharCode'](_0x58b455))[_0x7b1d('0x66')]('');}super(_0x233215),this[_0x7b1d('0x3')](_0x7b1d('0x50'),[]),this['on']('change:activeMarkers',(_0x505ad0,_0x4ea929,_0x250335,_0x1d17bc)=>{this[_0x7b1d('0x41')][_0x7b1d('0xed')](()=>{for(const _0x8a1a5b of[..._0x1d17bc,..._0x250335])this['_model']['markers'][_0x7b1d('0x1d')](_0x8a1a5b)&&_0x233215[_0x7b1d('0xa0')][_0x7b1d('0xfa')](_0x8a1a5b);});}),this[_0x7b1d('0x3a')]=new _0x7d5b19(this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xd7')],this['editor'][_0x7b1d('0x6c')]),this[_0x7b1d('0xce')]=null,this[_0x7b1d('0x120')]=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x7b1d('0x123')]=_0x233215['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x6b')),this[_0x7b1d('0x68')]=new Set(),this[_0x7b1d('0x41')]=this[_0x7b1d('0x12b')][_0x7b1d('0x113')],this[_0x7b1d('0x70')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x233215['config'][_0x7b1d('0xd')]('trackChanges.trackFormatChanges',_0x7b1d('0xe3')),this[_0x7b1d('0xbf')]=_0x233215[_0x7b1d('0x24')]['get'](_0x7b1d('0x107')),_0x233215[_0x7b1d('0x24')]['define'](_0x7b1d('0xbd'),!0x0),this[_0x7b1d('0xda')]=_0x233215[_0x7b1d('0x24')][_0x7b1d('0x10d')](_0x7b1d('0xbd')),this['trackChangesCommand']=new _0x87cf19(_0x233215,this[_0x7b1d('0x68')]),this[_0x4cd3dd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4cd3dd([0x34,0x30,0x34,0x36,0x31,0x36,0x32,0x30]);}[_0x7b1d('0x11')](){const _0x5d0b71=this[_0x7b1d('0x12b')];_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0xf8'))[_0x7b1d('0xbe')]({'model':_0x7b1d('0x23'),'view':_0x517757=>{const {id:_0x4d0b91,type:_0x29009f}=this[_0x7b1d('0xe9')](_0x517757[_0x7b1d('0x5')]),_0x408f28=[_0x7b1d('0x56'),'ck-suggestion-marker-'+_0x29009f];let _0x438f8f=0xbb8;return this[_0x7b1d('0x50')][_0x7b1d('0xb6')](_0x517757[_0x7b1d('0x5')])&&(_0x408f28[_0x7b1d('0xc3')](_0x7b1d('0xb8')),_0x438f8f=0xbc2),_0x7b1d('0x37')==_0x29009f&&(_0x438f8f+=0x5),{'classes':_0x408f28,'attributes':{'data-suggestion':_0x4d0b91},'priority':_0x438f8f};}}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0x8b'))[_0x7b1d('0xad')](_0x5c5da0=>{_0x5c5da0['on'](_0x7b1d('0xee'),(_0x5566c5,_0xbf9fae,_0x75d9ed)=>{if(!_0x75d9ed[_0x7b1d('0x111')][_0x7b1d('0x94')])return;const _0x4e9778=_0xbf9fae[_0x7b1d('0x19')];if(!_0x4e9778)return;const _0x35cbdf=_0x75d9ed[_0x7b1d('0xaa')][_0x7b1d('0x15')](_0x4e9778);_0x5d0b71['model'][_0x7b1d('0xd7')][_0x7b1d('0x62')](_0x4e9778)&&_0x35cbdf&&!_0x35cbdf[_0x7b1d('0x84')](_0x7b1d('0x9a'))&&_0x35cbdf['is'](_0x7b1d('0x27'))&&_0x5a8685(_0x35cbdf,_0x75d9ed[_0x7b1d('0x64')]);},{'priority':'high'});}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')]('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x104220,_0x137e85)=>{if(!_0x137e85['options'][_0x7b1d('0x94')])return null;const {type:_0x30a5c6}=this['_splitMarkerName'](_0x104220['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x30a5c6],'priority':0xbb8};}});const _0x5a6701=({showActiveMarkers:_0x74fb90=!0x0}={})=>(_0x20d009,_0x336479,_0xdca6ea)=>{if(!_0x336479[_0x7b1d('0x19')])return;if(_0x336479[_0x7b1d('0x19')]['is'](_0x7b1d('0xbc')))return void _0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x336479['item'],_0x20d009[_0x7b1d('0x136')]);const _0x53a118=_0xdca6ea[_0x7b1d('0xaa')][_0x7b1d('0x15')](_0x336479[_0x7b1d('0x19')]);if(!(_0x336479[_0x7b1d('0x19')]['is'](_0x7b1d('0x3e'))&&_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')][_0x7b1d('0x5d')](_0x336479[_0x7b1d('0x19')])&&!_0x53a118[_0x7b1d('0x84')](_0x7b1d('0x13b'))))return;const {id:_0x2321da}=this[_0x7b1d('0xe9')](_0x336479[_0x7b1d('0x5')]);_0xdca6ea[_0x7b1d('0x64')][_0x7b1d('0x79')]([_0x7b1d('0x56'),_0x7b1d('0x29')],_0x53a118),_0xdca6ea[_0x7b1d('0x64')][_0x7b1d('0xc1')](_0x7b1d('0xd0'),_0x2321da,_0x53a118),_0xdca6ea[_0x7b1d('0xaa')][_0x7b1d('0x30')](_0x53a118,_0x336479[_0x7b1d('0x5')]),_0x74fb90&&(this[_0x7b1d('0x50')][_0x7b1d('0xb6')](_0x336479[_0x7b1d('0x5')])?_0xdca6ea['writer']['addClass'](_0x7b1d('0xb8'),_0x53a118):_0xdca6ea[_0x7b1d('0x64')]['removeClass'](_0x7b1d('0xb8'),_0x53a118));for(const _0x4c105b of _0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xba')](_0x336479[_0x7b1d('0x19')])[_0x7b1d('0xde')]())_0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x4c105b,_0x20d009['name']);_0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x336479['item'],_0x20d009[_0x7b1d('0x136')]);};_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0x8b'))[_0x7b1d('0xad')](_0xe2a418=>{_0xe2a418['on'](_0x7b1d('0xf0'),(_0x19679b,_0x11a0be,_0x4ce4a1)=>{_0x4ce4a1[_0x7b1d('0x111')]['showSuggestionHighlights']&&_0x5a6701({'showActiveMarkers':!0x1})(_0x19679b,_0x11a0be,_0x4ce4a1);},{'priority':_0x7b1d('0x6a')});}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')]('dataDowncast')[_0x7b1d('0x8')]({'model':'suggestion','view':(_0x26eee1,_0x36fac6)=>_0x36fac6[_0x7b1d('0x111')][_0x7b1d('0x94')]?null:{'group':_0x7b1d('0x23'),'name':_0x26eee1['substr'](0xb)}}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0x2c'))[_0x7b1d('0x7f')]({'view':{'name':_0x7b1d('0x23'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x386ab9,{writer:_0x4b440b})=>{let _0x687160=_0x7b1d('0xd1')+_0x386ab9[_0x7b1d('0x85')](_0x7b1d('0xcd'))+':'+_0x386ab9[_0x7b1d('0x85')]('id');return _0x386ab9[_0x7b1d('0x85')]('marker-count')&&(_0x687160+=':'+_0x386ab9[_0x7b1d('0x85')](_0x7b1d('0xae'))),_0x4b440b[_0x7b1d('0x115')](_0x7b1d('0xd9'),{'data-name':_0x687160});}}),_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0x2c'))[_0x7b1d('0xf4')]({'view':_0x7b1d('0x23')}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0xf8'))['add'](_0x3a08ff=>{_0x3a08ff['on'](_0x7b1d('0xf0'),_0x5a6701(),{'priority':_0x7b1d('0x1b')});}),_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0xf8'))[_0x7b1d('0xad')](_0x20c3ad=>{_0x20c3ad['on'](_0x7b1d('0xf3'),(_0x4a20e6,_0x33e111,_0x17e08f)=>{const _0x265483=_0x17e08f[_0x7b1d('0xaa')]['markerNameToElements'](_0x33e111['markerName']);if(_0x265483)for(const _0x3b5706 of _0x265483)_0x3b5706[_0x7b1d('0x84')](_0x7b1d('0x13b'))||(_0x17e08f[_0x7b1d('0x64')]['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b5706),_0x17e08f[_0x7b1d('0x64')]['removeAttribute'](_0x7b1d('0xd0'),_0x3b5706),_0x17e08f['mapper'][_0x7b1d('0x18')](_0x3b5706,_0x33e111[_0x7b1d('0x5')]));},{'priority':_0x7b1d('0x1b')});}),_0x5d0b71['model'][_0x7b1d('0x11b')][_0x7b1d('0x101')](_0x3cbedf=>{let _0x475370=!0x1;const _0x271c3b=Array['from'](_0x5d0b71['model']['document'][_0x7b1d('0x124')][_0x7b1d('0x90')]()),_0x245728=new Set();for(const {name:_0x3a2ecf,data:_0x1b09bf}of _0x271c3b){const {group:_0x4eed2a,type:_0x42adbe,id:_0x118613}=this[_0x7b1d('0xe9')](_0x3a2ecf);if(_0x7b1d('0x23')!==_0x4eed2a)continue;const _0x4f9fcc=this['_suggestions']['get'](_0x118613);if(null!=_0x1b09bf[_0x7b1d('0x112')]){_0x7b1d('0x11f')==_0x42adbe&&(_0x475370=_0x475370||Mt(_0x1b09bf[_0x7b1d('0x112')],_0x3a2ecf,_0x3cbedf,_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')]));if(_0x1b09bf[_0x7b1d('0x112')][_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x1b09bf[_0x7b1d('0x112')][_0x7b1d('0xb9')][_0x7b1d('0x65')]||_0x7b1d('0xa5')==_0x42adbe&&!Nt(_0x1b09bf[_0x7b1d('0x112')])||'deletion'==_0x42adbe&&!(!_t(_0x563838=_0x1b09bf[_0x7b1d('0x112')])&&!function(_0x53d591){return _0x53d591[_0x7b1d('0xc2')][_0x7b1d('0x76')]==_0x53d591['end'][_0x7b1d('0x125')]&&_0x53d591[_0x7b1d('0xc2')][_0x7b1d('0x47')];}(_0x563838)))_0x3cbedf['removeMarker'](_0x3a2ecf),_0x475370=!0x0;else{if(!_0x4f9fcc||!_0x4f9fcc[_0x7b1d('0x5e')])continue;_0x245728[_0x7b1d('0xad')](_0x4f9fcc);}}}var _0x563838;return _0x245728[_0x7b1d('0x3c')]>0x0&&(_0x475370=!!this[_0x7b1d('0xe4')](_0x245728)||_0x475370),_0x475370;}),_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x11b')][_0x7b1d('0x101')](_0x1bd238=>{let _0x17b545=!0x1;for(const _0xef8bdd of _0x5d0b71[_0x7b1d('0x113')]['document'][_0x7b1d('0x124')][_0x7b1d('0x4a')]()){if(_0x7b1d('0x2b')!=_0xef8bdd[_0x7b1d('0xa2')])continue;const _0x3620a2=_0xef8bdd[_0x7b1d('0x61')][_0x7b1d('0xc')](_0xef8bdd[_0x7b1d('0x73')]);if(_0x3620a2[_0x7b1d('0x47')])for(const _0x24c4e7 of this[_0x7b1d('0x9')]['values']()){if(_0x24c4e7[_0x7b1d('0x67')]||!_0x24c4e7[_0x7b1d('0x5e')])continue;if(_0x7b1d('0xa5')!=_0x24c4e7['type'])continue;const _0x1cb854=_0x24c4e7[_0x7b1d('0x138')]();if(_0x1cb854[_0x7b1d('0xc2')][_0x7b1d('0x76')]!=_0x1cb854[_0x7b1d('0x2a')][_0x7b1d('0x76')]&&_0x1cb854['end'][_0x7b1d('0x1')](_0xef8bdd[_0x7b1d('0x61')])){const _0x55b4d8=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x40')](_0x1cb854['start'],_0x3620a2);_0x1bd238[_0x7b1d('0x133')](_0x24c4e7['getFirstMarker'](),{'range':_0x55b4d8}),_0x17b545=!0x0;}}}return _0x17b545;}),_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x9e')]['on']('update:suggestion',(_0x2a4b1f,_0x530e79,_0x55bc8e)=>{if(null==_0x55bc8e){const {id:_0x592524}=this['_splitMarkerName'](_0x530e79[_0x7b1d('0x136')]),_0x3dc0e6=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x592524);_0x3dc0e6&&_0x3dc0e6[_0x7b1d('0xe7')](_0x530e79[_0x7b1d('0x136')]);}}),_0x5d0b71['model'][_0x7b1d('0x11b')]['on']('change:data',()=>{const _0x4546f8=Array['from'](_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x11b')]['differ'][_0x7b1d('0x90')]())[_0x7b1d('0x81')](_0x388740=>_0x7b1d('0x23')===this[_0x7b1d('0xe9')](_0x388740[_0x7b1d('0x136')])[_0x7b1d('0x122')]);if(0x0===_0x4546f8['length'])return;_0x4546f8[_0x7b1d('0x1c')]((_0x463a75,_0x3ce219)=>{const _0x22f020=_0x463a75['data'][_0x7b1d('0xa8')],_0x382163=_0x3ce219['data'][_0x7b1d('0xa8')];return null===_0x22f020&&null===_0x382163?0x0:null===_0x22f020&&null!==_0x382163?-0x1:null!==_0x22f020&&null===_0x382163?0x1:_0x22f020[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x382163[_0x7b1d('0xc2')])?-0x1:0x1;});const _0x56a4f9=new Set(),_0x52170d=new Set();for(const {name:_0x17ba1c,data:_0x215c66}of _0x4546f8){const {id:_0xc8d99f}=this['_splitMarkerName'](_0x17ba1c);if(null===_0x215c66['oldRange']){const _0x5c075d=this[_0x7b1d('0xb1')](_0x17ba1c);_0x52170d['add'](_0x5c075d);}else{const _0xeda5b5=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0xc8d99f);null!==_0x215c66['newRange']||_0xeda5b5[_0x7b1d('0x5e')]?(_0x56a4f9['add'](_0xeda5b5['head']),_0x52170d['add'](_0xeda5b5)):this[_0x7b1d('0xff')](_0xeda5b5);}}_0x52170d[_0x7b1d('0x3c')]>0x0&&this[_0x7b1d('0xef')](_0x52170d);for(const _0x89e09e of _0x56a4f9)this[_0x7b1d('0x118')](_0x7b1d('0x52'),_0x89e09e);}),_0x5d0b71[_0x7b1d('0x113')]['on']('applyOperation',(_0x1117ef,_0xc2782e)=>{const _0x4f7fb3=_0xc2782e[0x0];if(!this['_suggestions'][_0x7b1d('0x3c')])return;if(!_0x4f7fb3['isDocumentOperation'])return;if(_0x4f7fb3['batch'][_0x7b1d('0xa')]||!_0x4f7fb3[_0x7b1d('0x10e')][_0x7b1d('0x9d')])return;let _0xcebf87,_0x548108;switch(_0x4f7fb3[_0x7b1d('0xa2')]){case _0x7b1d('0x2b'):_0xcebf87=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x4f7fb3['position']),_0x548108=_0xcebf87[_0x7b1d('0xc')](_0x4f7fb3[_0x7b1d('0xf2')]);break;case _0x7b1d('0x116'):_0xcebf87=_0x5d0b71['model'][_0x7b1d('0xb7')](_0x4f7fb3['splitPosition']),_0x548108=_0x5d0b71['model'][_0x7b1d('0xb7')](_0x4f7fb3[_0x7b1d('0x137')]);break;case'move':_0xcebf87=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x4f7fb3[_0x7b1d('0xb2')]),_0x548108=_0xcebf87[_0x7b1d('0xc')](_0x4f7fb3[_0x7b1d('0xf2')]);break;default:return;}const _0x2f283c=_0x5d0b71[_0x7b1d('0x113')]['createRange'](_0xcebf87,_0x548108);_0x5d0b71['model'][_0x7b1d('0xed')](()=>{for(const {suggestion:_0x619d85,meta:_0x267913}of this[_0x7b1d('0xa3')](_0x2f283c)){if(_0x619d85['isMultiRange'])continue;if(_0x7b1d('0x11f')==_0x619d85[_0x7b1d('0xa2')])continue;const _0x4c8d0e=_0x619d85[_0x7b1d('0x91')]&&_0x619d85[_0x7b1d('0x91')][_0x7b1d('0xc7')];('formatBlock'!=_0x619d85[_0x7b1d('0xa2')]||'split'==_0x4f7fb3[_0x7b1d('0xa2')]&&!_0x4c8d0e)&&(_0x267913['containsRangeInObject']||'insertion'==_0x619d85[_0x7b1d('0xa2')]&&_0x267913['isOwn']||_0x619d85['getFirstRange']()[_0x7b1d('0x16')](_0x2f283c)&&this[_0x7b1d('0xe')](_0x619d85,_0xcebf87,_0x548108));}});},{'priority':_0x7b1d('0x49')}),_0x5d0b71[_0x7b1d('0x113')]['on'](_0x7b1d('0xdd'),(_0x3173b2,_0x2ac952)=>{const _0x43e8db=_0x2ac952[0x0],_0x324818=_0x2ac952[0x1];if(_0x324818&&_0x324818[_0x7b1d('0x98')])return;if(this[_0x7b1d('0x11e')])return;if(!this[_0x7b1d('0xfd')][_0x7b1d('0x8d')])return;if(_0x43e8db[_0x7b1d('0x21')])return;const _0x13cd92=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')],{start:_0x57708d,end:_0x5bb989}=_0x43e8db[_0x7b1d('0x138')](),_0x17027e=_0x57708d[_0x7b1d('0x128')]&&_0x13cd92[_0x7b1d('0x127')](_0x57708d[_0x7b1d('0x128')])?null:_0x13cd92[_0x7b1d('0xb4')](_0x57708d,_0x7b1d('0xd5')),_0x4b862d=_0x5bb989[_0x7b1d('0x125')]&&_0x13cd92['isLimit'](_0x5bb989[_0x7b1d('0x125')])?null:_0x13cd92[_0x7b1d('0xb4')](_0x5bb989,'backward'),_0x197654=_0x5d0b71[_0x7b1d('0x113')]['createRange'](_0x17027e?_0x17027e[_0x7b1d('0xc2')]:_0x57708d,_0x4b862d?_0x4b862d[_0x7b1d('0x2a')]:_0x5bb989);_0x5d0b71['model'][_0x7b1d('0xed')](_0x335d27=>{this[_0x7b1d('0x10b')](_0x197654);const _0x2c9ac8=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')][_0x7b1d('0xb4')](_0x197654[_0x7b1d('0xc2')]);_0x43e8db['is'](_0x7b1d('0x32'))?_0x335d27['setSelection'](_0x2c9ac8):_0x43e8db[_0x7b1d('0x82')](_0x2c9ac8);}),_0x3173b2[_0x7b1d('0x0')]();},{'priority':_0x51e1ab[_0x7b1d('0xb')]+0xa}),_0x5d0b71[_0x7b1d('0x113')]['on'](_0x7b1d('0x6f'),(_0x448b8a,_0x3aaea2)=>{const _0x4f1266=_0x3aaea2[_0x3aaea2[_0x7b1d('0x73')]-0x1];_0x4f1266&&_0x4f1266[_0x7b1d('0x98')]||this[_0x7b1d('0x11e')]||this[_0x7b1d('0xfd')]['value']&&(_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{let _0x4dcc16=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x6f')](_0x3aaea2[0x0],_0x3aaea2[0x1],_0x3aaea2[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dcc16)return;_0x448b8a[_0x7b1d('0xf6')]=_0x4dcc16[_0x7b1d('0x14')]();const _0x2b8ac2=_0x4dcc16[_0x7b1d('0x2a')]['nodeBefore'],_0x567af3=_0x5d0b71['model'][_0x7b1d('0xd7')];_0x2b8ac2&&_0x567af3['isBlock'](_0x2b8ac2)&&!_0x567af3[_0x7b1d('0x62')](_0x2b8ac2)&&(_0x4dcc16=_0x5d0b71['model'][_0x7b1d('0x40')](_0x4dcc16['start'],_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x2b8ac2,'end'))),this[_0x7b1d('0x103')](_0x4dcc16);}),_0x448b8a['stop']());},{'priority':'high'}),this['editor'][_0x7b1d('0x5a')][_0x7b1d('0xad')](_0x7b1d('0x46'),this[_0x7b1d('0xfd')]),this[_0x7b1d('0x39')](_0x7b1d('0x46'));const _0x54f003=new _0x5f093d(_0x5d0b71,this[_0x7b1d('0x9')]);_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')]('acceptSuggestion',_0x54f003),this[_0x7b1d('0x39')](_0x7b1d('0x5c'));const _0x527924=new _0x40e317(_0x5d0b71,this[_0x7b1d('0x9')]);_0x5d0b71[_0x7b1d('0x5a')]['add'](_0x7b1d('0xc0'),_0x527924),this[_0x7b1d('0x39')](_0x7b1d('0xc0')),_0x5d0b71['commands'][_0x7b1d('0xad')]('acceptAllSuggestions',new _0x4ce6d9(_0x5d0b71,_0x54f003,this[_0x7b1d('0x9')])),this[_0x7b1d('0x39')](_0x7b1d('0x105')),_0x5d0b71[_0x7b1d('0x5a')]['add'](_0x7b1d('0x102'),new _0x4ce6d9(_0x5d0b71,_0x527924,this[_0x7b1d('0x9')])),this[_0x7b1d('0x39')](_0x7b1d('0x102')),_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')]('acceptSelectedSuggestions',new _0x1015b7(_0x5d0b71,_0x54f003,this[_0x7b1d('0x9')])),this['enableCommand'](_0x7b1d('0xd3')),_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')](_0x7b1d('0x100'),new _0x1015b7(_0x5d0b71,_0x527924,this[_0x7b1d('0x9')])),this['enableCommand'](_0x7b1d('0x100'));const _0x16dbe8=_0x5d0b71[_0x7b1d('0x51')][_0x7b1d('0x10d')](_0x7b1d('0x6b'));this[_0x7b1d('0x57')](_0x16dbe8,_0x7b1d('0x1f'),(_0x1675c7,{threadId:_0x2437e0})=>{const _0x76f16=this['_suggestions'][_0x7b1d('0x10d')](_0x2437e0);_0x76f16&&_0x76f16[_0x7b1d('0xc8')]&&0x1===_0x76f16[_0x7b1d('0xc8')][_0x7b1d('0x73')]&&this['_updateSuggestionData'](_0x2437e0,{'hasComments':!0x0});},{'priority':_0x7b1d('0x2')}),this[_0x7b1d('0x57')](_0x16dbe8,_0x7b1d('0xa9'),(_0x5b8f9e,{threadId:_0x5a9903})=>{const _0x33788b=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x5a9903);_0x33788b&&_0x33788b[_0x7b1d('0xc8')]&&!_0x33788b[_0x7b1d('0xc8')][_0x7b1d('0x73')]&&this[_0x7b1d('0x8a')](_0x5a9903,{'hasComments':!0x1});},{'priority':_0x7b1d('0x2')});}set['adapter'](_0x2f79f2){if(this[_0x7b1d('0xce')])throw new _0x39da4f(_0x7b1d('0x132'),this);this[_0x7b1d('0xce')]=_0x2f79f2;}get[_0x7b1d('0x60')](){return this[_0x7b1d('0xce')];}['getSuggestions']({skipNotAttached:_0x5b86e7=!0x1,toJSON:_0x3b7a2d=!0x1}={}){const _0x398952=[];for(const _0x47b72a of this[_0x7b1d('0x9')]['values']())_0x5b86e7&&!_0x47b72a[_0x7b1d('0x5e')]||_0x398952[_0x7b1d('0xc3')](_0x47b72a);return _0x3b7a2d?_0x398952['map'](_0x40089c=>_0x40089c[_0x7b1d('0xa7')]()):_0x398952;}[_0x7b1d('0x26')](_0xb8deda){const _0x32d47a=this[_0x7b1d('0x9')]['get'](_0xb8deda);if(!_0x32d47a)throw new _0x39da4f(_0x7b1d('0x7e'),this);return _0x32d47a;}[_0x7b1d('0x9c')](_0x942c6e){return this[_0x7b1d('0x9')]['has'](_0x942c6e);}[_0x7b1d('0x38')](_0x44de29){const {authorId:_0x40c2ac,id:_0x7530a7,attributes:_0x26e6c8}=_0x44de29,[_0x368c9c,_0x3aa6f1]=_0x44de29['type'][_0x7b1d('0x116')](':'),_0x3a8abe=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x7530a7)||this['_createSuggestion'](_0x368c9c,_0x3aa6f1,_0x7530a7,_0x40c2ac,_0x26e6c8);if(this[_0x7b1d('0x6e')](_0x3a8abe),this[_0x7b1d('0x2e')](_0x3a8abe,_0x368c9c,_0x3aa6f1||null,_0x40c2ac),_0x3a8abe[_0x7b1d('0x83')]=_0x44de29[_0x7b1d('0x83')],_0x26e6c8&&_0x26e6c8[_0x7b1d('0xac')]){const _0x555f86=_0x26e6c8[_0x7b1d('0xac')],_0x27e7f0=this[_0x7b1d('0xf5')](_0x555f86[_0x7b1d('0xb0')]);_0x3a8abe['authoredAt']=_0x555f86[_0x7b1d('0x83')],_0x3a8abe[_0x7b1d('0x121')]=_0x27e7f0,_0x3a8abe[_0x7b1d('0x74')]=!0x0;}else _0x3a8abe[_0x7b1d('0x13a')]=_0x44de29[_0x7b1d('0x83')];switch(_0x44de29['data']&&(_0x3a8abe[_0x7b1d('0x91')]=_0x44de29['data']),_0x44de29[_0x7b1d('0x106')]&&(_0x3a8abe[_0x7b1d('0x106')]=_0x44de29[_0x7b1d('0x106')]),this[_0x7b1d('0xce')]&&this['_adapter']['addSuggestion']||(_0x3a8abe[_0x7b1d('0xca')]=!0x0),this[_0x7b1d('0x70')]['get'](_0x3a8abe)){case _0x7b1d('0x78'):this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x3a8abe,'dataReady');break;case _0x7b1d('0x4'):_0x3a8abe[_0x7b1d('0x5e')]?(this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x3a8abe,_0x7b1d('0xfe')),this[_0x7b1d('0x118')](_0x7b1d('0x3d'),_0x3a8abe)):this['_suggestionState'][_0x7b1d('0x3')](_0x3a8abe,'removed');}return _0x3a8abe;}['acceptSuggestion'](_0x4125e8){this['forceDefaultExecution'](()=>{this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{for(const _0x10ec9c of _0x4125e8['getAllAdjacentSuggestions']())_0x10ec9c[_0x7b1d('0x59')]();});});}[_0x7b1d('0xc0')](_0x4e299d){this[_0x7b1d('0x98')](()=>{this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{for(const _0x108bdf of _0x4e299d['getAllAdjacentSuggestions']())_0x108bdf[_0x7b1d('0xab')]();});});}[_0x7b1d('0x39')](_0x3a2f10,_0x3dc764){const _0x55f9d0=this[_0x7b1d('0x12b')][_0x7b1d('0x5a')][_0x7b1d('0x10d')](_0x3a2f10);if(!_0x55f9d0)throw new _0x39da4f(_0x7b1d('0x7d'),this,{'commandName':_0x3a2f10});this[_0x7b1d('0x68')][_0x7b1d('0xad')](_0x55f9d0),_0x3dc764&&_0x55f9d0['on'](_0x7b1d('0x10'),(_0x59d762,_0x6fe91c)=>{this[_0x7b1d('0xfd')][_0x7b1d('0x8d')]&&(this[_0x7b1d('0x11e')]||_0x6fe91c[_0x7b1d('0x73')]>0x0&&_0x6fe91c[_0x6fe91c[_0x7b1d('0x73')]-0x1]&&_0x6fe91c[_0x6fe91c['length']-0x1][_0x7b1d('0x98')]||(_0x3dc764((..._0x1b518d)=>_0x55f9d0[_0x7b1d('0x10')](..._0x1b518d,{'forceDefaultExecution':!0x0}),..._0x6fe91c),_0x59d762['stop']()));},{'priority':'high'});}[_0x7b1d('0x98')](_0x4860f9){let _0x492b40,_0x69a2a3;const _0x5ccbcf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x492b40=_0x4860f9();}catch(_0x712823){_0x69a2a3=_0x712823;}return _0x5ccbcf||(this[_0x7b1d('0x11e')]=!0x1),_0x69a2a3&&_0x39da4f[_0x7b1d('0x7')](_0x69a2a3,this),_0x492b40;}[_0x7b1d('0x103')](_0x16d7f2,_0x3592dd=null,_0x2f31b1={}){if(_0x16d7f2[_0x7b1d('0x21')])return null;const _0x1ae020=this[_0x7b1d('0x12b')]['plugins']['get'](_0x7b1d('0x3b'))['me'];for(const {suggestion:_0x7c2e54,meta:_0x42de34}of this[_0x7b1d('0xa3')](_0x16d7f2,_0x7b1d('0xaf')))if(_0x42de34[_0x7b1d('0xfb')]){if(!_0x42de34[_0x7b1d('0xbb')]){if(!this[_0x7b1d('0xda')]&&_0x42de34[_0x7b1d('0xd4')])continue;return _0x7c2e54;}if(_0x3592dd==_0x7c2e54[_0x7b1d('0x7c')]){const _0xa12a63=_0x7c2e54[_0x7b1d('0x138')]();return _0xa12a63[_0x7b1d('0xc2')]['isEqual'](_0x16d7f2[_0x7b1d('0x2a')])?this[_0x7b1d('0x77')](_0x7c2e54,this['_model'][_0x7b1d('0x40')](_0x16d7f2[_0x7b1d('0xc2')],_0xa12a63[_0x7b1d('0x2a')])):this[_0x7b1d('0x77')](_0x7c2e54,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xa12a63[_0x7b1d('0xc2')],_0x16d7f2[_0x7b1d('0x2a')])),_0x7c2e54;}}const _0x2aab88=_0x26317d(),_0x30821a=_0x1ae020['id'],_0x336664=_0x3592dd?_0x7b1d('0x12f')+_0x3592dd:_0x7b1d('0xaf'),_0x150876=this[_0x7b1d('0x95')]({'id':_0x2aab88,'type':_0x336664,'createdAt':new Date(),'authorId':_0x30821a,'attributes':_0x2f31b1});return this['_addSuggestionMarker'](_0x336664,_0x2aab88,_0x30821a,_0x16d7f2),_0x150876;}[_0x7b1d('0x72')](_0x48f3e0,_0x2ee870=_0x7b1d('0x119'),_0xb2c76a={}){const _0x52dccb=this[_0x7b1d('0x12b')]['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x3b'))['me'],_0x126327=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xaf'),_0x2ee870,_0x7b1d('0x66'));for(const _0x55037c of this[_0x7b1d('0x44')]())if(_0x55037c[_0x7b1d('0x121')]['id']==_0x52dccb['id']&&'insertion'==_0x55037c[_0x7b1d('0xa2')]&&_0x55037c[_0x7b1d('0x7c')]==_0x2ee870&&(_0x126327(_0x55037c[_0x7b1d('0x108')](),_0x48f3e0)||_0x126327(_0x48f3e0,_0x55037c['getRanges']()))){for(const _0x5ca992 of _0x48f3e0)_0x55037c[_0x7b1d('0x8e')](_0x5ca992);return _0x55037c;}if(this[_0x7b1d('0xda')])for(const _0x6916ed of _0x48f3e0)for(const {suggestion:_0x24668c,meta:_0x1ccfe2}of this[_0x7b1d('0xa3')](_0x6916ed,_0x7b1d('0xaf'))){if(!_0x1ccfe2['isOwn'])continue;let _0x3b4916=!0x0;for(const _0x4b7c75 of _0x24668c[_0x7b1d('0x108')]())for(const _0x7cee0b of _0x48f3e0)if(!_0x4b7c75[_0x7b1d('0x16')](_0x7cee0b)){_0x3b4916=!0x1;break;}if(_0x3b4916)return _0x24668c;}const _0x1ab8fe=_0x26317d(),_0x148547=_0x52dccb['id'],_0x1114bc=_0x7b1d('0x12f')+_0x2ee870,_0x566435=this['_setSuggestionData']({'id':_0x1ab8fe,'type':_0x1114bc,'createdAt':new Date(),'authorId':_0x148547,'attributes':_0xb2c76a});for(const _0x16ef94 of _0x48f3e0)this[_0x7b1d('0x4f')](_0x1114bc,_0x1ab8fe,_0x148547,_0x16ef94,_0x5731e0[_0x7b1d('0xb5')]());return _0x566435;}['markInlineFormat'](_0x2b6bf9,_0x5cfb44,_0x1899f3=null,_0x1a4de1={}){if(_0x1899f3=_0x1899f3||$t(_0x5cfb44),_0x2b6bf9[_0x7b1d('0x21')])return null;if(_0x7b1d('0x110')===this[_0x7b1d('0xbf')]){const _0x30fa65=this[_0x7b1d('0x120')][_0x7b1d('0x93')]('formatInline',_0x1899f3,_0x7b1d('0x59'));return this['forceDefaultExecution'](()=>_0x30fa65([_0x2b6bf9],_0x5cfb44,_0x1a4de1)),null;}const _0xf52e69=this['editor']['plugins']['get'](_0x7b1d('0x3b'))['me'],_0x5eaa85=[];if(_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')])for(const {suggestion:_0x5ee9f4,meta:_0x10c34a}of this[_0x7b1d('0xa3')](_0x2b6bf9,_0x7b1d('0xaf')))_0x10c34a[_0x7b1d('0xfb')]&&!_0x10c34a['isInsideObject']&&_0x5eaa85[_0x7b1d('0xc3')](..._0x5ee9f4[_0x7b1d('0x108')]());const _0x566fb6=function(_0x2bf47d,_0x1bee68){const _0x38a545=[];for(const _0x57e4bb of _0x1bee68){const _0x3973e5=_0x2bf47d['getIntersection'](_0x57e4bb);_0x3973e5&&_0x38a545[_0x7b1d('0xc3')](_0x3973e5);}return _0x38a545;}(_0x2b6bf9,_0x5eaa85),_0x4a32e9=function(_0x31f9a6,_0x333fc2){const _0x507d4e=[_0x31f9a6];for(const _0x212aec of _0x333fc2){let _0x5185eb=0x0;for(;_0x5185eb<_0x507d4e[_0x7b1d('0x73')];){const _0x4bd4ab=_0x507d4e[_0x5185eb]['getDifference'](_0x212aec);_0x507d4e['splice'](_0x5185eb,0x1,..._0x4bd4ab),_0x5185eb+=_0x4bd4ab[_0x7b1d('0x73')];}}return _0x507d4e;}(_0x2b6bf9,_0x5eaa85);_0x566fb6[_0x7b1d('0x73')]&&this[_0x7b1d('0x41')][_0x7b1d('0xed')](()=>{for(const _0x251ca6 of _0x566fb6){const _0x531128=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0x11f'),_0x1899f3,_0x7b1d('0x59'));this[_0x7b1d('0x98')](()=>_0x531128([_0x251ca6],_0x5cfb44,_0x1a4de1));}});for(const _0x39d02a of _0x4a32e9){let _0x9fd8d2=null,_0x4b948d=_0x39d02a[_0x7b1d('0xc2')],_0x382575=_0x39d02a['end'];for(const {suggestion:_0x3a2e8b,meta:_0x2902b9}of this[_0x7b1d('0xa3')](_0x39d02a,_0x7b1d('0x11f'))){if(!_0x2902b9[_0x7b1d('0xfb')])continue;if(_0x3a2e8b[_0x7b1d('0x7c')]!=_0x1899f3)continue;const _0x46fe38=_0x3a2e8b[_0x7b1d('0x138')]();if(_0x46fe38[_0x7b1d('0x16')](_0x39d02a,!0x0))return null;_0x4b948d=_0x4b948d[_0x7b1d('0x2d')](_0x46fe38[_0x7b1d('0xc2')])?_0x4b948d:_0x46fe38[_0x7b1d('0xc2')],_0x382575=_0x382575['isAfter'](_0x46fe38[_0x7b1d('0x2a')])?_0x382575:_0x46fe38[_0x7b1d('0x2a')],_0x9fd8d2?_0x46fe38[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x9fd8d2[_0x7b1d('0x138')]()['start'])?(_0x9fd8d2['removeMarkers'](),_0x9fd8d2=_0x3a2e8b):_0x3a2e8b[_0x7b1d('0x11d')]():_0x9fd8d2=_0x3a2e8b;}const _0x215d9f=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x4b948d,_0x382575);if(_0x9fd8d2)this[_0x7b1d('0x77')](_0x9fd8d2,_0x215d9f);else{const _0x433694=_0x26317d(),_0x8d37da=_0xf52e69['id'];this[_0x7b1d('0x95')]({'id':_0x433694,'type':_0x7b1d('0x63')+_0x1899f3,'data':_0x5cfb44,'createdAt':new Date(),'authorId':_0x8d37da,'attributes':_0x1a4de1}),this[_0x7b1d('0x4f')]('formatInline:'+_0x1899f3,_0x433694,_0x8d37da,_0x215d9f);}}return null;}[_0x7b1d('0x33')](_0x686f32,_0x187e3e,_0x35c17a=[],_0x13a8ee=null,_0x3cf6cb={}){_0x187e3e[_0x7b1d('0xeb')]||(_0x187e3e['formatGroupId']=_0x187e3e[_0x7b1d('0x88')]),_0x187e3e[_0x7b1d('0xc7')]=_0x686f32['is'](_0x7b1d('0x2f')),_0x13a8ee=_0x13a8ee||$t(_0x187e3e);const _0x36179a=_0x35c17a['map'](_0x475232=>Rt(_0x475232,this[_0x7b1d('0x41')])),_0x3f519b=_0x686f32['is'](_0x7b1d('0x2f'))?_0x686f32:Rt(_0x686f32,this[_0x7b1d('0x41')]);if(_0x7b1d('0x110')===this[_0x7b1d('0xbf')]){const _0x1b8e6b=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x13a8ee,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x1b8e6b([_0x3f519b],_0x187e3e,_0x3cf6cb)),null;}_0x36179a[_0x7b1d('0xc3')](_0x3f519b);let _0x2f1675=!0x0;for(const _0x450647 of _0x36179a)if(!this[_0x7b1d('0xe8')](_0x450647)){_0x2f1675=!0x1;break;}if(_0x2f1675&&_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')]){const _0x17bfab=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x13a8ee,_0x7b1d('0x59'));return this['forceDefaultExecution'](()=>_0x17bfab([_0x3f519b],_0x187e3e,_0x3cf6cb)),null;}let _0x31d05a=null,_0xcff07e=_0x3f519b[_0x7b1d('0xc2')],_0x21694f=_0x3f519b[_0x7b1d('0x2a')];for(const {suggestion:_0x1bf28d,meta:_0x459f24}of this['_findSuggestions'](_0x3f519b,'formatBlock')){if(!_0x459f24[_0x7b1d('0xfb')]||_0x459f24['isNextTo']||_0x459f24[_0x7b1d('0xd4')]||_0x459f24['isInsideObject'])continue;if(_0x1bf28d[_0x7b1d('0x91')]['formatGroupId']!=_0x187e3e['formatGroupId'])continue;const _0x5b62a9=_0x1bf28d['getFirstRange']();if(_0x1bf28d[_0x7b1d('0x7c')]==_0x13a8ee){if(_0x5b62a9[_0x7b1d('0x16')](_0x3f519b,!0x0))return null;_0xcff07e=_0xcff07e['isBefore'](_0x5b62a9['start'])?_0xcff07e:_0x5b62a9['start'],_0x21694f=_0x21694f[_0x7b1d('0xec')](_0x5b62a9[_0x7b1d('0x2a')])?_0x21694f:_0x5b62a9[_0x7b1d('0x2a')],_0x31d05a?_0x5b62a9[_0x7b1d('0xc2')]['isBefore'](_0x31d05a['getFirstRange']()['start'])?(_0x31d05a[_0x7b1d('0x11d')](),_0x31d05a=_0x1bf28d):_0x1bf28d[_0x7b1d('0x11d')]():_0x31d05a=_0x1bf28d;}else{const _0x3a79b3=_0x3f519b[_0x7b1d('0x34')](_0x5b62a9);this[_0x7b1d('0x1e')](_0x1bf28d,_0x3a79b3);}}const _0x503402=this['editor']['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x3b'))['me'],_0xf3d4dd=_0x26317d(),_0x27d719=_0x503402['id'];if(_0x31d05a)return this[_0x7b1d('0x77')](_0x31d05a,this[_0x7b1d('0x41')]['createRange'](_0xcff07e,_0x21694f)),_0x31d05a;{const _0x398748=this[_0x7b1d('0x95')]({'id':_0xf3d4dd,'type':_0x7b1d('0xdf')+_0x13a8ee,'data':_0x187e3e,'createdAt':new Date(),'authorId':_0x27d719,'attributes':_0x3cf6cb});return this['_addSuggestionMarker']('formatBlock:'+_0x13a8ee,_0xf3d4dd,_0x27d719,this['_model'][_0x7b1d('0x40')](_0xcff07e,_0x21694f)),_0x398748;}}['markMultiRangeBlockFormat'](_0x359108,_0x56fa7a,_0x17f68d=[],_0x2421d5=null,_0x51d067={}){_0x56fa7a['formatGroupId']||(_0x56fa7a[_0x7b1d('0xeb')]=_0x56fa7a[_0x7b1d('0x88')]);const _0x5cf8c8=_0x359108[0x0];_0x56fa7a[_0x7b1d('0xc7')]=_0x5cf8c8['is'](_0x7b1d('0x2f')),_0x2421d5=_0x2421d5||$t(_0x56fa7a);const _0x2978c0=_0x17f68d[_0x7b1d('0xe5')](_0x18b9d0=>Rt(_0x18b9d0,this[_0x7b1d('0x41')])),_0x305b47=_0x5cf8c8['is']('range')?_0x359108:_0x359108['map'](_0x45f1da=>Rt(_0x45f1da,this[_0x7b1d('0x41')]));if('never'===this[_0x7b1d('0xbf')]){const _0x424be8=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x2421d5,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x424be8(_0x305b47,_0x56fa7a,_0x51d067)),null;}_0x2978c0['push'](..._0x305b47);let _0x3261c6=!0x0;for(const _0xc34413 of _0x2978c0)if(!this[_0x7b1d('0xe8')](_0xc34413)){_0x3261c6=!0x1;break;}if(_0x3261c6&&_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')]){const _0x14b9c6=this['_suggestionFactory'][_0x7b1d('0x93')]('formatBlock',_0x2421d5,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x14b9c6(_0x305b47,_0x56fa7a,_0x51d067)),null;}const _0x147149=this[_0x7b1d('0x12b')][_0x7b1d('0x51')][_0x7b1d('0x10d')]('Users')['me'];for(const _0x28622a of this[_0x7b1d('0x44')]()){if(_0x28622a['author']['id']!=_0x147149['id'])continue;if(_0x7b1d('0xa5')!=_0x28622a['type']||_0x28622a[_0x7b1d('0x91')][_0x7b1d('0xeb')]!=_0x56fa7a[_0x7b1d('0xeb')])continue;const _0x507de8=_0x28622a[_0x7b1d('0x7c')]==_0x2421d5;for(let _0x4bf4f0=0x0;_0x4bf4f0<_0x305b47['length'];_0x4bf4f0++){const _0x4e4703=_0x305b47[_0x4bf4f0];for(const _0x113666 of _0x28622a[_0x7b1d('0xdc')]()){const _0x128cd6=_0x113666[_0x7b1d('0x20')]();if(_0x4e4703[_0x7b1d('0x1')](_0x128cd6)){_0x507de8?(_0x305b47[_0x7b1d('0x7b')](_0x4bf4f0,0x1),_0x4bf4f0--):_0x28622a['removeMarker'](_0x113666[_0x7b1d('0x136')]);break;}}}}if(0x0==_0x305b47[_0x7b1d('0x73')])return null;const _0x4ab579=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x2421d5,_0x7b1d('0x66'));for(const _0x16b8ea of this[_0x7b1d('0x44')]())if(_0x16b8ea[_0x7b1d('0x121')]['id']==_0x147149['id']&&_0x7b1d('0xa5')==_0x16b8ea['type']&&_0x16b8ea['data'][_0x7b1d('0xeb')]==_0x56fa7a[_0x7b1d('0xeb')]&&_0x16b8ea[_0x7b1d('0x7c')]==_0x2421d5&&(_0x4ab579(_0x16b8ea[_0x7b1d('0x108')](),_0x305b47)||_0x4ab579(_0x305b47,_0x16b8ea[_0x7b1d('0x108')]()))){for(const _0x571c14 of _0x305b47)_0x16b8ea['addRange'](_0x571c14);return _0x16b8ea;}const _0x3f236a=_0x26317d(),_0x472eff=_0x147149['id'],_0xe0788f=_0x7b1d('0xdf')+_0x2421d5,_0x1d7d2e=this[_0x7b1d('0x95')]({'id':_0x3f236a,'type':_0xe0788f,'data':_0x56fa7a,'createdAt':new Date(),'authorId':_0x472eff,'attributes':_0x51d067});for(const _0x53b8b3 of _0x305b47)this[_0x7b1d('0x4f')](_0xe0788f,_0x3f236a,_0x472eff,_0x53b8b3,_0x5731e0[_0x7b1d('0xb5')]());return _0x1d7d2e;}['markDeletion'](_0x4a9a07,_0x1a3ed4=null,_0x52b858={}){if(_0x4a9a07[_0x7b1d('0x21')])return null;const _0x2e917f=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get'](_0x7b1d('0x3b'))['me'],_0x2af0d8=new _0x4e3075(_0x4a9a07[_0x7b1d('0xc2')],_0x4a9a07[_0x7b1d('0x2a')]);for(const {suggestion:_0x4abc00,meta:_0xadabf8}of this[_0x7b1d('0xa3')](_0x2af0d8,_0x7b1d('0xaf')))if(_0xadabf8[_0x7b1d('0xfb')]&&!_0xadabf8['isNextTo']){if(_0x4abc00[_0x7b1d('0x67')]){const _0x12cf01=_0x4abc00[_0x7b1d('0x108')]()['filter'](_0x3108e7=>_0x7b1d('0x54')!=_0x3108e7[_0x7b1d('0xb9')][_0x7b1d('0x65')]);_0x12cf01[_0x7b1d('0x86')](_0xf98761=>_0x2af0d8[_0x7b1d('0x16')](_0xf98761,!0x0))&&_0x4abc00['discard']();if(_0x12cf01[_0x7b1d('0x12d')](_0x3fa1ba=>_0x3fa1ba[_0x7b1d('0x16')](_0x2af0d8,!0x0))){const _0x542bef=this[_0x7b1d('0x120')][_0x7b1d('0x93')]('deletion',_0x1a3ed4,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x542bef([_0x2af0d8],null,_0x52b858)),null;}}else{const _0x2753d0=_0x2af0d8['getIntersection'](_0x4abc00[_0x7b1d('0x138')]());null!==_0x2753d0&&_0x4abc00[_0x7b1d('0xd6')]([_0x2753d0],null,_0x52b858);}}if(_0x2af0d8[_0x7b1d('0xf7')](),_0x2af0d8[_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x2af0d8[_0x7b1d('0xb9')]['rootName'])return null;let _0x94cd69=null,_0xf6f2cf=_0x2af0d8[_0x7b1d('0xc2')],_0x8c22d4=_0x2af0d8[_0x7b1d('0x2a')];for(const {suggestion:_0x5a99f1,meta:_0x3010f1}of this[_0x7b1d('0xa3')](_0x2af0d8,_0x7b1d('0x37')))if(_0x3010f1['isOwn']){if(_0x5a99f1[_0x7b1d('0x67')]&&this[_0x7b1d('0xda')]){let _0xb8c35c=!0x0;for(const _0x357ee9 of _0x5a99f1[_0x7b1d('0x108')]()){if(_0x357ee9['containsRange'](_0x2af0d8,!0x0))return _0x5a99f1;_0x2af0d8[_0x7b1d('0x16')](_0x357ee9)||(_0xb8c35c=!0x1);}_0xb8c35c&&_0x5a99f1[_0x7b1d('0xab')]();}else{const _0x163c20=_0x5a99f1[_0x7b1d('0x138')]();if(_0x163c20[_0x7b1d('0x16')](_0x2af0d8,!0x0)){if(!this[_0x7b1d('0xda')]&&_0x3010f1[_0x7b1d('0xd4')])continue;return _0x5a99f1;}_0xf6f2cf=_0xf6f2cf[_0x7b1d('0x2d')](_0x163c20['start'])?_0xf6f2cf:_0x163c20[_0x7b1d('0xc2')],_0x8c22d4=_0x8c22d4['isAfter'](_0x163c20[_0x7b1d('0x2a')])?_0x8c22d4:_0x163c20[_0x7b1d('0x2a')],_0x94cd69?_0x163c20[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x94cd69[_0x7b1d('0x138')]()[_0x7b1d('0xc2')])?(_0x94cd69[_0x7b1d('0x11d')](),_0x94cd69=_0x5a99f1):_0x5a99f1['removeMarkers']():_0x94cd69=_0x5a99f1;}}if(_0x94cd69)return this['_setSuggestionRange'](_0x94cd69,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xf6f2cf,_0x8c22d4)),_0x94cd69;{const _0x1fe3b9=_0x26317d(),_0x5ada44=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xf6f2cf,_0x8c22d4),_0x28d276=_0x2e917f['id'],_0x1688ee=_0x1a3ed4?_0x7b1d('0xc9')+_0x1a3ed4:_0x7b1d('0x37'),_0x4d4092=this['_setSuggestionData']({'id':_0x1fe3b9,'type':_0x1688ee,'createdAt':new Date(),'authorId':_0x28d276,'attributes':_0x52b858});return this[_0x7b1d('0x4f')](_0x1688ee,_0x1fe3b9,_0x28d276,_0x5ada44),_0x4d4092;}}[_0x7b1d('0x53')](_0x573a53,_0x14484a=_0x7b1d('0x119'),_0x5f20e8={}){const _0x5e7b9a=this[_0x7b1d('0x12b')][_0x7b1d('0x51')][_0x7b1d('0x10d')]('Users')['me'],_0x3ac735=_0x573a53['map'](_0x1c7424=>new _0x4e3075(_0x1c7424['start'],_0x1c7424[_0x7b1d('0x2a')])),_0x819bbc=new Set();for(const _0x2192d9 of _0x3ac735)for(const {suggestion:_0x6679c9,meta:_0x39d49c}of this[_0x7b1d('0xa3')](_0x2192d9,'insertion'))_0x39d49c['isOwn']&&!_0x39d49c['isNextTo']&&_0x819bbc[_0x7b1d('0xad')](_0x6679c9);for(const _0x323396 of _0x819bbc)if(_0x323396[_0x7b1d('0x67')]){const _0xdc2e07=_0x323396['getRanges']();(!_0x323396[_0x7b1d('0x106')]||!_0x323396[_0x7b1d('0x106')]['skipNestingCheck'])&&(_0xdc2e07['every'](_0x560a1f=>_0x3ac735['some'](_0x9e835a=>_0x9e835a['containsRange'](_0x560a1f,!0x0)))&&_0x323396[_0x7b1d('0xab')]());if(_0x3ac735[_0x7b1d('0x86')](_0x4f329c=>_0xdc2e07[_0x7b1d('0x12d')](_0x5eba39=>_0x5eba39[_0x7b1d('0x16')](_0x4f329c,!0x0)))){const _0x2a888c=this['_suggestionFactory'][_0x7b1d('0x93')](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x2a888c(_0x573a53,null,_0x5f20e8)),null;}}else{const _0x16cd7c=_0x323396[_0x7b1d('0x138')]();_0x3ac735[_0x7b1d('0x12d')](_0x50973d=>_0x50973d[_0x7b1d('0x16')](_0x16cd7c,!0x0))&&_0x323396['discard']();if(_0x3ac735['every'](_0xabf51=>_0x16cd7c['containsRange'](_0xabf51,!0x0))){const _0x5ceab1=this['_suggestionFactory']['getSuggestionCallback'](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x5ceab1(_0x3ac735,null,_0x5f20e8)),null;}}const _0x5660bd=this[_0x7b1d('0x120')]['getSuggestionCallback'](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x66'));let _0x5b935b=null;for(const _0x5c770f of this['getSuggestions']())if(_0x5c770f[_0x7b1d('0x121')]['id']==_0x5e7b9a['id']&&_0x5c770f[_0x7b1d('0x5e')]&&_0x7b1d('0x37')==_0x5c770f[_0x7b1d('0xa2')]&&_0x5c770f[_0x7b1d('0x7c')]==_0x14484a&&(_0x5660bd(_0x5c770f['getRanges'](),_0x3ac735)||_0x5660bd(_0x3ac735,_0x5c770f[_0x7b1d('0x108')]()))){if(_0x5b935b){if(_0x5c770f[_0x7b1d('0xc8')]&&_0x5c770f[_0x7b1d('0xc8')]['length'])continue;for(const _0x5bb6f6 of _0x5c770f[_0x7b1d('0x108')]())_0x5b935b['isIntersectingWithRange'](_0x5bb6f6)||_0x5b935b[_0x7b1d('0x8e')](_0x5bb6f6);_0x5c770f[_0x7b1d('0x11d')]();}else{_0x5b935b=_0x5c770f;for(const _0x4e5ceb of _0x3ac735)_0x5c770f[_0x7b1d('0x8c')](_0x4e5ceb)||_0x5c770f[_0x7b1d('0x8e')](_0x4e5ceb);}}if(_0x5b935b)return _0x5b935b;_0x819bbc[_0x7b1d('0xc5')]();for(const _0x394702 of _0x3ac735)for(const {suggestion:_0x14903c,meta:_0x5b6552}of this[_0x7b1d('0xa3')](_0x394702,_0x7b1d('0x37')))_0x5b6552[_0x7b1d('0xfb')]&&_0x819bbc[_0x7b1d('0xad')](_0x14903c);for(const _0x432895 of _0x819bbc){const _0x4f4990=_0x432895[_0x7b1d('0x108')]();if(!_0x5f20e8||!_0x5f20e8[_0x7b1d('0x11a')]){if(_0x3ac735[_0x7b1d('0x86')](_0x3ebea2=>_0x4f4990['some'](_0x244911=>_0x244911[_0x7b1d('0x16')](_0x3ebea2,!0x0))))return _0x432895;}(!_0x432895[_0x7b1d('0x106')]||!_0x432895[_0x7b1d('0x106')][_0x7b1d('0x11a')])&&(_0x4f4990['every'](_0x3566fb=>_0x3ac735[_0x7b1d('0x12d')](_0x3b7710=>_0x3b7710[_0x7b1d('0x16')](_0x3566fb,!0x0)))&&_0x432895[_0x7b1d('0xab')]());}const _0x18b57a=_0x26317d(),_0x23fc39=_0x5e7b9a['id'],_0x28b50b=_0x7b1d('0xc9')+_0x14484a,_0x3842ee=this[_0x7b1d('0x95')]({'id':_0x18b57a,'type':_0x28b50b,'createdAt':new Date(),'authorId':_0x23fc39,'attributes':_0x5f20e8});for(const _0x489e9e of _0x3ac735)_0x489e9e[_0x7b1d('0xf7')](),_0x489e9e[_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x489e9e['root'][_0x7b1d('0x65')]||this['_addSuggestionMarker'](_0x28b50b,_0x18b57a,_0x23fc39,_0x489e9e,_0x5731e0[_0x7b1d('0xb5')]());return _0x3842ee;}[_0x7b1d('0x77')](_0x5b4663,_0x2b9b77){const _0x20e2ff=_0x5b4663[_0x7b1d('0x6d')]();this[_0x7b1d('0x41')]['change'](_0x4817b8=>{_0x4817b8[_0x7b1d('0x133')](_0x20e2ff,{'range':_0x2b9b77});});}[_0x7b1d('0x6e')](_0x16f9b3){const _0x3ba3de=_0x16f9b3['id'],_0x384678=this['editor'][_0x7b1d('0x24')]['get'](_0x7b1d('0x9f'));this[_0x7b1d('0x123')][_0x7b1d('0x92')](_0x3ba3de)||this[_0x7b1d('0x123')]['addCommentThread']({'channelId':_0x384678,'threadId':_0x3ba3de,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5059f2=this[_0x7b1d('0x123')][_0x7b1d('0x11c')](_0x3ba3de);_0x5059f2[_0x7b1d('0x13')]('isRemovable'),_0x5059f2[_0x7b1d('0x7a')]=!0x1,_0x16f9b3['commentThread']=_0x5059f2;}[_0x7b1d('0x2e')](_0xc849e6,_0x20b01d,_0x474be8,_0x3da3aa){if(_0xc849e6[_0x7b1d('0xa2')]!=_0x20b01d||_0xc849e6[_0x7b1d('0x7c')]!=_0x474be8||_0xc849e6['creator']['id']!=_0x3da3aa)throw this[_0x7b1d('0x12b')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39da4f(_0x7b1d('0x13c'),this);}[_0x7b1d('0x1e')](_0x420f08,_0x2ab442){const _0x3cc895=_0x420f08[_0x7b1d('0x138')]();if(_0x2ab442[_0x7b1d('0x1')](_0x3cc895))_0x420f08[_0x7b1d('0x11d')]();else{if(_0x3cc895['containsRange'](_0x2ab442)){const _0x47e32f=this['_model'][_0x7b1d('0xb7')](_0x2ab442['start'][_0x7b1d('0x125')],_0x7b1d('0x2a'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x3cc895['start'],_0x47e32f));const _0x36263b=_0x26317d(),_0x419176=_0x420f08[_0x7b1d('0xa1')]['id'],_0x2365ef=_0x420f08[_0x7b1d('0xa2')]+':'+_0x420f08[_0x7b1d('0x7c')];this[_0x7b1d('0x95')]({'id':_0x36263b,'type':_0x2365ef,'createdAt':new Date(),'authorId':_0x419176,'data':_0x420f08['data'],'attributes':_0x420f08['attributes']});const _0x369af5=this['_model']['createPositionAt'](_0x2ab442[_0x7b1d('0x2a')][_0x7b1d('0x76')],'after'),_0x203f31=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x369af5,_0x3cc895['end']);this['_addSuggestionMarker'](_0x2365ef,_0x36263b,_0x419176,_0x203f31);}else{if(_0x3cc895['containsPosition'](_0x2ab442[_0x7b1d('0xc2')])){const _0x2bab5b=this[_0x7b1d('0x41')][_0x7b1d('0xb7')](_0x2ab442[_0x7b1d('0xc2')][_0x7b1d('0x125')],_0x7b1d('0x2a'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x3cc895['start'],_0x2bab5b));}else{const _0x334b15=this[_0x7b1d('0x41')]['createPositionAt'](_0x2ab442[_0x7b1d('0x2a')][_0x7b1d('0x76')],_0x7b1d('0x139'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')]['createRange'](_0x334b15,_0x3cc895['end']));}}}}[_0x7b1d('0xe8')](_0x5bd3e3){for(const {suggestion:_0x75e31e,meta:_0x22ffd8}of this[_0x7b1d('0xa3')](_0x5bd3e3,_0x7b1d('0xaf'))){if(!_0x22ffd8[_0x7b1d('0xfb')])continue;const _0xb9116c=_0x75e31e[_0x7b1d('0x108')]();for(const _0x4f7066 of _0xb9116c)if(!_0x5bd3e3[_0x7b1d('0x8f')](_0x4f7066)[_0x7b1d('0x73')])return!0x0;}return!0x1;}[_0x7b1d('0x9b')](_0xbf6f5f){const _0x21653b=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get']('Users')[_0x7b1d('0x109')](_0xbf6f5f);if(!_0x21653b)throw new _0x39da4f('track-changes-user-not-found',this);return _0x21653b;}[_0x7b1d('0xf5')](_0xb76820){const _0x399ff0=this[_0x7b1d('0x12b')]['plugins']['get']('Users'),_0xbbac54=_0x1c57e1(_0x7b1d('0x10a')+_0xb76820),_0x536e8e=_0x399ff0['getUser'](_0xbbac54);return _0x536e8e||_0x399ff0[_0x7b1d('0x10f')]({'id':_0xbbac54,'name':_0xb76820});}['_createSuggestion'](_0x97bde9,_0x4bd434,_0x143793,_0xa3c5f7,_0x26db28){const _0x3270f6=this[_0x7b1d('0x9b')](_0xa3c5f7),_0x1c6155=this[_0x7b1d('0x120')][_0x7b1d('0xe6')](_0x97bde9,_0x4bd434,_0x143793,_0x3270f6,_0x26db28,_0x4ba5c5=>this['_updateSuggestionData'](_0x143793,{'attributes':_0x4ba5c5}));return this[_0x7b1d('0x57')](_0x1c6155,_0x7b1d('0x59'),()=>{this[_0x7b1d('0x8a')](_0x143793,{'state':_0x7b1d('0xa4')});},{'priority':_0x7b1d('0x1b')}),this[_0x7b1d('0x57')](_0x1c6155,'discard',()=>{this[_0x7b1d('0x8a')](_0x143793,{'state':'rejected'});},{'priority':_0x7b1d('0x1b')}),this[_0x7b1d('0x9')][_0x7b1d('0x3')](_0x143793,_0x1c6155),this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x1c6155,_0x7b1d('0x78')),_0x1c6155;}[_0x7b1d('0xe9')](_0x2407d2){const _0x1a3da7=_0x2407d2[_0x7b1d('0x116')](':');return{'group':_0x1a3da7[0x0],'type':_0x1a3da7[0x1],'subType':_0x1a3da7[_0x7b1d('0x73')]>=0x5?_0x1a3da7[0x2]:null,'id':_0x1a3da7[_0x7b1d('0x73')]<0x5?_0x1a3da7[0x2]:_0x1a3da7[0x3],'authorId':_0x1a3da7[_0x7b1d('0x73')]<0x5?_0x1a3da7[0x3]:_0x1a3da7[0x4],'markerCount':0x6==_0x1a3da7['length']?_0x1a3da7[0x5]:null};}[_0x7b1d('0xe')](_0x287f20,_0x93bbce,_0x191e1f){const _0x437510=_0x287f20[_0x7b1d('0x138')](),_0x2a7ae4=_0x437510[_0x7b1d('0xc2')],_0x4121c5=_0x437510[_0x7b1d('0x2a')];this[_0x7b1d('0x77')](_0x287f20,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x2a7ae4,_0x93bbce));const _0x48ef12=_0x26317d(),_0x321046=_0x287f20[_0x7b1d('0xa1')]['id'],_0x494dd4=_0x287f20[_0x7b1d('0xa2')]+(_0x287f20['subType']?':'+_0x287f20[_0x7b1d('0x7c')]:'');this[_0x7b1d('0x95')]({'id':_0x48ef12,'type':_0x494dd4,'createdAt':new Date(),'authorId':_0x321046,'originalSuggestionId':_0x287f20['id'],'attributes':_0x287f20[_0x7b1d('0x106')],'data':_0x287f20[_0x7b1d('0x91')]}),'formatBlock'==_0x287f20[_0x7b1d('0xa2')]&&(_0x191e1f=this['_model']['createPositionBefore'](_0x191e1f['parent'])),this[_0x7b1d('0x4f')](_0x494dd4,_0x48ef12,_0x321046,this['_model'][_0x7b1d('0x40')](_0x191e1f,_0x4121c5));}[_0x7b1d('0xa3')](_0x466ced,_0x3b2ac9=null){const _0x58fe04=[],_0x378eef=this[_0x7b1d('0x41')][_0x7b1d('0xd7')],_0x46935e=this['editor']['plugins'][_0x7b1d('0x10d')]('Users')['me'];for(const _0x5a5221 of this[_0x7b1d('0x44')]())if(_0x5a5221[_0x7b1d('0x5e')]&&(!_0x3b2ac9||_0x5a5221[_0x7b1d('0xa2')]==_0x3b2ac9))for(const _0x7709c3 of _0x5a5221['getRanges']()){const _0x25119a=_0x466ced[_0x7b1d('0xc2')][_0x7b1d('0x1')](_0x7709c3[_0x7b1d('0x2a')])||_0x466ced[_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x7709c3[_0x7b1d('0xc2')]);if(_0x25119a||_0x466ced['getIntersection'](_0x7709c3)){const _0x1565aa=_0x466ced[_0x7b1d('0x16')](_0x7709c3)&&Bt(_0x378eef,_0x7709c3[_0x7b1d('0xc2')],_0x466ced),_0xd8948e=_0x7709c3[_0x7b1d('0x16')](_0x466ced)&&Bt(_0x378eef,_0x466ced[_0x7b1d('0xc2')],_0x7709c3);_0x58fe04['push']({'suggestion':_0x5a5221,'meta':{'isOwn':_0x46935e==_0x5a5221[_0x7b1d('0x121')],'isNextTo':_0x25119a,'isInsideObject':_0x1565aa,'containsRangeInObject':_0xd8948e}});break;}}return _0x58fe04;}[_0x7b1d('0x4f')](_0x482250,_0x6291a,_0x1ddcfa,_0x347467,_0x2ea174){this[_0x7b1d('0x41')]['change'](_0x506ec6=>{let _0x12ddca='suggestion:'+_0x482250+':'+_0x6291a+':'+_0x1ddcfa;_0x2ea174&&(_0x12ddca=_0x12ddca+':'+_0x2ea174),_0x506ec6[_0x7b1d('0x104')](_0x12ddca,{'range':_0x347467,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x364c9e){const _0x6f105e=_0x364c9e['previous'],_0x4a8f73=_0x364c9e['next'];_0x364c9e[_0x7b1d('0x129')]=null,null!=_0x6f105e&&(_0x6f105e['next']=null),_0x364c9e[_0x7b1d('0x131')]=null,null!=_0x4a8f73&&(_0x4a8f73['previous']=null),_0x7b1d('0xfe')==this[_0x7b1d('0x70')][_0x7b1d('0x10d')](_0x364c9e)&&(this['_suggestionState'][_0x7b1d('0x3')](_0x364c9e,_0x7b1d('0xcf')),this[_0x7b1d('0x118')](_0x7b1d('0xfc'),_0x364c9e,_0x6f105e,_0x4a8f73));}[_0x7b1d('0x95')](_0x5767b3){const _0x253db0=_0x5767b3['id'],_0x312ef6=this['addSuggestionData'](_0x5767b3);if(this[_0x7b1d('0xce')]&&this[_0x7b1d('0xce')][_0x7b1d('0x114')]){const _0x4af59f=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get']('PendingActions'),_0x225e2c=_0x312ef6[_0x7b1d('0xf1')],_0x391ea9=_0x312ef6[_0x7b1d('0x7c')]?_0x312ef6['type']+':'+_0x312ef6[_0x7b1d('0x7c')]:_0x312ef6[_0x7b1d('0xa2')],_0xee9b09=this['editor'][_0x7b1d('0x6c')],_0x65fed1=_0x4af59f[_0x7b1d('0xad')](_0x327a39(_0xee9b09,_0x7b1d('0x117'))),_0x373d59={'id':_0x253db0,'type':_0x391ea9,'hasComments':_0x225e2c,'data':_0x5767b3[_0x7b1d('0x91')]||null,'originalSuggestionId':_0x5767b3[_0x7b1d('0x5f')]||null,'attributes':_0x312ef6[_0x7b1d('0x106')]};this[_0x7b1d('0xce')][_0x7b1d('0x114')](_0x373d59)['then'](_0x1d46a8=>{_0x312ef6[_0x7b1d('0xca')]=!0x0,_0x4af59f['remove'](_0x65fed1),_0x1d46a8&&_0x1d46a8['createdAt']&&(this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x253db0)[_0x7b1d('0x83')]=_0x1d46a8[_0x7b1d('0x83')]);})['catch'](_0x2f9dc4=>{throw _0x4736cc('error-saving-suggestion-data-suggestion-discarded'),this[_0x7b1d('0x12b')][_0x7b1d('0x113')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x312ef6['discard']();}),_0x312ef6[_0x7b1d('0x12')](),this['_suggestions']['delete'](_0x312ef6['id']),this[_0x7b1d('0x70')][_0x7b1d('0x12e')](_0x312ef6),_0x2f9dc4;});}return _0x312ef6;}[_0x7b1d('0x8a')](_0x4d49c5,_0x24a1f3){const _0x135fd5=this['editor'][_0x7b1d('0x51')][_0x7b1d('0x10d')](_0x7b1d('0x35')),_0x58909e=this['getSuggestion'](_0x4d49c5);if(this[_0x7b1d('0xce')]&&this[_0x7b1d('0xce')]['updateSuggestion']){if(_0x58909e['_saved']){const _0x5cf052=_0x135fd5[_0x7b1d('0xad')](_0x327a39(this[_0x7b1d('0x12b')][_0x7b1d('0x6c')],_0x7b1d('0x117')));this[_0x7b1d('0xce')][_0x7b1d('0x97')](_0x4d49c5,_0x24a1f3)[_0x7b1d('0x4e')](()=>{_0x135fd5['remove'](_0x5cf052);});}else _0x58909e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d49c5,_0x24a1f3);});}}[_0x7b1d('0x48')](_0x5e2759){if(!this[_0x7b1d('0xce')]||!this['_adapter'][_0x7b1d('0x26')])throw new _0x39da4f(_0x7b1d('0xea'),this);return this[_0x7b1d('0xce')]['getSuggestion'](_0x5e2759);}[_0x7b1d('0xb1')](_0x569418){const {id:_0x4aaeaa,type:_0x383b1,subType:_0xa1afe1,authorId:_0x4b392e}=this[_0x7b1d('0xe9')](_0x569418),_0x59b58d=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x4aaeaa)||this[_0x7b1d('0x130')](_0x383b1,_0xa1afe1,_0x4aaeaa,_0x4b392e,{});switch(this[_0x7b1d('0x2e')](_0x59b58d,_0x383b1,_0xa1afe1,_0x4b392e),this[_0x7b1d('0x70')][_0x7b1d('0x10d')](_0x59b58d)){case _0x7b1d('0x78'):this[_0x7b1d('0x48')](_0x4aaeaa)[_0x7b1d('0x4e')](_0x4d7840=>{let _0x270b9e=Promise['resolve']();_0x4d7840[_0x7b1d('0xf1')]&&(_0x270b9e=this[_0x7b1d('0x123')][_0x7b1d('0xd2')]({'channelId':this[_0x7b1d('0x12b')]['config'][_0x7b1d('0x10d')](_0x7b1d('0x9f')),'threadId':_0x4aaeaa})),_0x270b9e[_0x7b1d('0x4e')](()=>{this['addSuggestionData'](_0x4d7840)[_0x7b1d('0xca')]=!0x0;});}),this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x59b58d,_0x7b1d('0x4'));break;case _0x7b1d('0xcf'):this[_0x7b1d('0x8a')](_0x4aaeaa,{'state':_0x7b1d('0x80')});case'dataReady':this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x59b58d,_0x7b1d('0xfe')),this[_0x7b1d('0x118')]('suggestionLoaded',_0x59b58d);break;case _0x7b1d('0xfe'):this['fire'](_0x7b1d('0x52'),_0x59b58d);}return _0x59b58d[_0x7b1d('0xe7')](_0x569418),_0x59b58d;}[_0x7b1d('0xef')](_0x5dc9bf){const _0x35d51d=Array[_0x7b1d('0x6')](_0x5dc9bf)[_0x7b1d('0x81')](_0x22e74a=>!_0x22e74a[_0x7b1d('0x67')]),_0x5a6de3=this[_0x7b1d('0x44')]({'skipNotAttached':!0x0})[_0x7b1d('0x81')](_0x5f2b92=>!_0x5f2b92[_0x7b1d('0x67')]),_0x36c94c=_0x5a6de3[_0x7b1d('0x81')](_0x4c24d8=>!_0x5dc9bf[_0x7b1d('0x1d')](_0x4c24d8)),_0x42e4ad=new Map(_0x5a6de3['map'](_0xa102c8=>[_0xa102c8,this['_suggestionFactory'][_0x7b1d('0x93')](_0xa102c8[_0x7b1d('0xa2')],_0xa102c8[_0x7b1d('0x7c')],'chain')])),_0x26ea89=new Map(_0x5a6de3[_0x7b1d('0xe5')](_0x131bc2=>[_0x131bc2,_0x131bc2['getFirstRange']()])),_0x452c0=new Set(),_0x850022=new Set();for(let _0x2036d2=0x0;_0x2036d2<_0x35d51d['length'];_0x2036d2++)_0x387330(_0x35d51d[_0x2036d2],_0x35d51d,_0x2036d2+0x1);for(let _0x2d51ef=0x0;_0x2d51ef<_0x35d51d[_0x7b1d('0x73')];_0x2d51ef++)_0x387330(_0x35d51d[_0x2d51ef],_0x36c94c,0x0);for(let _0x19bcd6=0x0;_0x19bcd6<_0x35d51d[_0x7b1d('0x73')];_0x19bcd6++){const _0x22f050=_0x35d51d[_0x19bcd6];!_0x850022[_0x7b1d('0x1d')](_0x22f050)&&_0x22f050['previous']&&(_0x22f050['previous'][_0x7b1d('0x131')]===_0x22f050&&(_0x22f050[_0x7b1d('0x129')][_0x7b1d('0x131')]=null),_0x22f050['previous']=null),!_0x452c0[_0x7b1d('0x1d')](_0x22f050)&&_0x22f050[_0x7b1d('0x131')]&&(_0x22f050['next'][_0x7b1d('0x129')]===_0x22f050&&(_0x22f050['next'][_0x7b1d('0x129')]=null),_0x22f050['next']=null);}function _0x387330(_0x4c12ef,_0x2300fc,_0x24634c){for(let _0x480e3d=_0x24634c;_0x480e3d<_0x2300fc[_0x7b1d('0x73')];_0x480e3d++){const _0x3452f1=_0x22e9c9(_0x4c12ef,_0x2300fc[_0x480e3d]);_0x3452f1&&(_0x3452f1[0x0][_0x7b1d('0x131')]=_0x3452f1[0x1],_0x3452f1[0x1][_0x7b1d('0x129')]=_0x3452f1[0x0],_0x452c0['add'](_0x3452f1[0x0]),_0x850022[_0x7b1d('0xad')](_0x3452f1[0x1]));}}function _0x22e9c9(_0x2299a5,_0x246672){if(_0x2299a5['author']['id']!==_0x246672[_0x7b1d('0x121')]['id'])return null;const _0xc9de34=_0x42e4ad[_0x7b1d('0x10d')](_0x2299a5)(_0x2299a5,_0x246672,_0x26ea89[_0x7b1d('0x10d')](_0x2299a5),_0x26ea89[_0x7b1d('0x10d')](_0x246672));if(!_0xc9de34)return null;return _0x42e4ad[_0x7b1d('0x10d')](_0x246672)(_0x2299a5,_0x246672,_0x26ea89[_0x7b1d('0x10d')](_0x2299a5),_0x26ea89['get'](_0x246672))?_0xc9de34[0x1]['commentThread']&&_0xc9de34[0x1][_0x7b1d('0xc8')][_0x7b1d('0x73')]?null:_0xc9de34:null;}}[_0x7b1d('0xe4')](_0xed93ab){const _0x349c24=Array[_0x7b1d('0x6')](_0xed93ab),_0x47bd60=this[_0x7b1d('0x44')]({'skipNotAttached':!0x0}),_0x1cb30c=_0x47bd60['filter'](_0x27aa9d=>!_0xed93ab[_0x7b1d('0x1d')](_0x27aa9d)),_0x3e41b9=new Map(_0x349c24[_0x7b1d('0xe5')](_0xd0a61d=>[_0xd0a61d,this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0xd0a61d[_0x7b1d('0xa2')],_0xd0a61d[_0x7b1d('0x7c')],_0x7b1d('0x66'))])),_0x27a0d6=new Map(_0x47bd60[_0x7b1d('0xe5')](_0x4bc1b7=>[_0x4bc1b7,_0x4bc1b7[_0x7b1d('0x108')]()]));for(let _0x35d58e=0x0;_0x35d58e<_0x349c24[_0x7b1d('0x73')];_0x35d58e++){if(_0x28ce7d(this,_0x349c24[_0x35d58e],_0x349c24,_0x35d58e+0x1))return!0x0;}for(let _0x1b2a48=0x0;_0x1b2a48<_0x349c24[_0x7b1d('0x73')];_0x1b2a48++){if(_0x28ce7d(this,_0x349c24[_0x1b2a48],_0x1cb30c,0x0))return!0x0;}return!0x1;function _0x28ce7d(_0xd8fe29,_0x23f650,_0x4aeb79,_0xbe5da8){for(let _0x2d21ac=_0xbe5da8;_0x2d21ac<_0x4aeb79[_0x7b1d('0x73')];_0x2d21ac++){const _0x3d7d2d=_0x4aeb79[_0x2d21ac];if(_0x3d7d2d[_0x7b1d('0xa2')]!==_0x23f650['type']||_0x3d7d2d[_0x7b1d('0x121')]['id']!==_0x23f650[_0x7b1d('0x121')]['id']||_0x3d7d2d[_0x7b1d('0x7c')]!==_0x23f650[_0x7b1d('0x7c')])continue;const _0x48603b=_0x3e41b9[_0x7b1d('0x10d')](_0x23f650),_0x39e7c8=_0x27a0d6[_0x7b1d('0x10d')](_0x23f650),_0x3e1a11=_0x27a0d6[_0x7b1d('0x10d')](_0x3d7d2d),_0x5a67a3=_0x23f650['commentThread']&&_0x23f650[_0x7b1d('0xc8')]['length'],_0x111e38=_0x3d7d2d['commentThread']&&_0x3d7d2d['commentThread'][_0x7b1d('0x73')];if(!_0x5a67a3&&_0x48603b(_0x3e1a11,_0x39e7c8))return _0xd8fe29[_0x7b1d('0x12a')](_0x3d7d2d,_0x23f650),_0x27a0d6[_0x7b1d('0x12e')](_0x23f650),!0x0;if(!_0x111e38&&_0x48603b(_0x39e7c8,_0x3e1a11))return _0xd8fe29[_0x7b1d('0x12a')](_0x23f650,_0x3d7d2d),_0x27a0d6[_0x7b1d('0x12e')](_0x3d7d2d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2cab1d,_0x3eb0c8){if(_0x2cab1d['isMultiRange'])for(const _0x3fb9af of _0x3eb0c8[_0x7b1d('0x108')]())_0x2cab1d[_0x7b1d('0x8e')](_0x3fb9af);else{const _0x5e02e9=_0x3eb0c8[_0x7b1d('0x138')]()['end'];this[_0x7b1d('0x77')](_0x2cab1d,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x2cab1d[_0x7b1d('0x138')]()[_0x7b1d('0xc2')],_0x5e02e9));}_0x3eb0c8[_0x7b1d('0x11d')]();}}class Dt{constructor(_0x15860b){this[_0x7b1d('0x42')]=_0x15860b,this['_model']=_0x15860b['model'],this[_0x7b1d('0x126')]=new Map(),this[_0x7b1d('0x36')]=new Map(),this[_0x7b1d('0xcc')]();}[_0x7b1d('0xe6')](_0x2c0ac7,_0x3e88c9,_0xaf7393,_0x58e931,_0x40446f,_0x1e6c09){return new _0x5731e0(this[_0x7b1d('0x41')],{'type':_0x2c0ac7,'subType':_0x3e88c9,'id':_0xaf7393,'author':_0x58e931,'creator':_0x58e931,'attributes':_0x40446f,'onAttributesChange':_0x1e6c09,'onAccept':(..._0xb45da3)=>this[_0x7b1d('0x93')](_0x2c0ac7,_0x3e88c9,_0x7b1d('0x59'))(..._0xb45da3),'onDiscard':(..._0xb67044)=>this[_0x7b1d('0x93')](_0x2c0ac7,_0x3e88c9,_0x7b1d('0xab'))(..._0xb67044)});}[_0x7b1d('0x31')](_0x59608d,_0x7bbe42,_0x29225f,_0x438171){const _0x3fa89e=_0x59608d+':'+_0x7bbe42+':'+_0x29225f;this[_0x7b1d('0x126')][_0x7b1d('0x3')](_0x3fa89e,_0x438171);}[_0x7b1d('0x93')](_0x3208b8,_0x49b534,_0x3a3178){const _0x531032=_0x3208b8+':'+_0x49b534+':'+_0x3a3178;return this[_0x7b1d('0x126')]['get'](_0x531032)||this['_defaultCallbacks'][_0x7b1d('0x10d')](_0x3208b8+':'+_0x3a3178);}['_registerDefaultCallbacks'](){const _0x235e67=()=>{},_0x4975c1=_0xfb64a8=>{_0xfb64a8[_0x7b1d('0x1c')]((_0x1cb678,_0x51aba9)=>_0x1cb678[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x51aba9[_0x7b1d('0xc2')])?0x1:-0x1),this[_0x7b1d('0x41')][_0x7b1d('0xed')](_0x21b75b=>{for(const _0x24734e of _0xfb64a8){let _0x41e75c;_0x41e75c=_0x24734e[_0x7b1d('0x2a')][_0x7b1d('0x47')]&&_0x24734e[_0x7b1d('0x2a')][_0x7b1d('0x76')]==_0x24734e[_0x7b1d('0xc2')][_0x7b1d('0x128')]?_0x21b75b['createSelection'](_0x24734e[_0x7b1d('0xc2')]['nodeAfter'],'on'):_0x21b75b['createSelection'](_0x24734e),this[_0x7b1d('0x41')][_0x7b1d('0xdd')](_0x41e75c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x521021=(_0xa22aa5,_0x16f0d0)=>{this[_0x7b1d('0x41')][_0x7b1d('0xed')](_0x13b763=>{const {commandName:_0x304cd5,commandParams:_0x18c5e4=[]}=_0x16f0d0,_0x29cda3=_0xa22aa5[_0x7b1d('0xe5')](_0x136467=>(_t(_0x136467)&&(_0x136467=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x136467[_0x7b1d('0x2a')])),_0x136467))[_0x7b1d('0x81')](_0x5e2c49=>_0x7b1d('0x54')!==_0x5e2c49[_0x7b1d('0xb9')][_0x7b1d('0x65')]);if(_0x29cda3['length']<0x1)return;const _0x4de3c6=Array[_0x7b1d('0x6')](this[_0x7b1d('0x41')][_0x7b1d('0x11b')][_0x7b1d('0xbc')][_0x7b1d('0x108')]())[_0x7b1d('0xe5')](_0x2b023b=>_0x4e3075[_0x7b1d('0xf')](_0x2b023b));_0x13b763[_0x7b1d('0x3f')](_0x29cda3);for(const _0x52a964 of this[_0x7b1d('0x42')][_0x7b1d('0x5a')][_0x7b1d('0x5a')]())_0x52a964[_0x7b1d('0x69')]();_0x18c5e4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x304cd5,..._0x18c5e4);const _0x158f70=_0x4de3c6[_0x7b1d('0x81')](_0x1274cd=>_0x7b1d('0x54')!=_0x1274cd[_0x7b1d('0xb9')][_0x7b1d('0x65')]);_0x158f70[_0x7b1d('0x73')]>0x0&&_0x13b763[_0x7b1d('0x3f')](_0x158f70);for(const _0x575b93 of _0x4de3c6)_0x575b93[_0x7b1d('0xf7')]();});},_0x6839c2=(_0x442de8,_0x5083a9)=>0x1==_0x442de8[_0x7b1d('0x73')]&&0x1==_0x5083a9[_0x7b1d('0x73')]&&_0x442de8[0x0][_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x5083a9[0x0][_0x7b1d('0xc2')]),_0x3e63ff=(_0x24e3cd,_0x3208b5,_0xe7bc5,_0x5ba2ac)=>xt(_0x24e3cd,_0x3208b5,_0xe7bc5,_0x5ba2ac,this[_0x7b1d('0x41')])?[_0x24e3cd,_0x3208b5]:xt(_0x3208b5,_0x24e3cd,_0x5ba2ac,_0xe7bc5,this[_0x7b1d('0x41')])?[_0x3208b5,_0x24e3cd]:null;this[_0x7b1d('0x36')]['set'](_0x7b1d('0xcb'),_0x235e67),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xd8'),_0x4975c1),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x43'),_0x6839c2),this[_0x7b1d('0x36')]['set']('insertion:chain',_0x3e63ff),this[_0x7b1d('0x36')]['set'](_0x7b1d('0xe0'),_0x4975c1),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xe2'),_0x235e67),this[_0x7b1d('0x36')]['set'](_0x7b1d('0x12c'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x4c'),_0x3e63ff),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x135'),_0x521021),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xf9'),_0x235e67),this['_defaultCallbacks'][_0x7b1d('0x3')](_0x7b1d('0xc6'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x28'),_0x235e67),this[_0x7b1d('0x36')]['set'](_0x7b1d('0x5b'),_0x521021),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xc4'),_0x235e67),this['_defaultCallbacks'][_0x7b1d('0x3')](_0x7b1d('0x89'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x4b'),_0x235e67);}}function Bt(_0x478b86,_0xd71a2e,_0x15a82e){for(const _0x5e9dab of _0xd71a2e[_0x7b1d('0x76')][_0x7b1d('0x45')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e9dab[_0x7b1d('0xb9')]==_0x5e9dab)return!0x1;if(!_0x15a82e[_0x7b1d('0x4d')](_0x5e9dab))return!0x1;if(_0x478b86[_0x7b1d('0x62')](_0x5e9dab)||_0x478b86['isLimit'](_0x5e9dab))return!0x0;}return!0x1;}function _t(_0x43f288){return _0x43f288['end'][_0x7b1d('0x76')]==_0x43f288[_0x7b1d('0xc2')][_0x7b1d('0x128')]&&_0x43f288['end'][_0x7b1d('0xdb')];}function Mt(_0x29bec1,_0x45fd6b,_0x1a8d55,_0x5289eb){const _0x286f13=_0x1198d6=>!_0x1198d6[_0x7b1d('0x19')]['is']('$textProxy')&&!_0x5289eb[_0x7b1d('0x62')](_0x1198d6[_0x7b1d('0x19')]),_0x478636=_0x29bec1['start'][_0x7b1d('0x58')](_0x286f13),_0xac7398=_0x29bec1[_0x7b1d('0x2a')][_0x7b1d('0x58')](_0x286f13,{'direction':_0x7b1d('0xb3')});return(!_0x29bec1[_0x7b1d('0xc2')][_0x7b1d('0x1')](_0x478636)||!_0x29bec1['end'][_0x7b1d('0x1')](_0xac7398))&&(_0x478636[_0x7b1d('0x2d')](_0xac7398)?_0x1a8d55[_0x7b1d('0x133')](_0x45fd6b,{'range':_0x1a8d55[_0x7b1d('0x40')](_0x478636,_0xac7398)}):_0x1a8d55[_0x7b1d('0x25')](_0x45fd6b),!0x0);}function $t(_0x40774e){return _0x1c57e1(_0x40774e);}function Nt(_0x20eaf1){const _0x25356e=_0x20eaf1[_0x7b1d('0xc2')][_0x7b1d('0x128')];return _0x25356e&&_0x25356e['is']('element');}function Rt(_0x599fb7,_0x5a0125){const _0x42a3cb=_0x5a0125[_0x7b1d('0xd7')][_0x7b1d('0x62')](_0x599fb7)||_0x5a0125[_0x7b1d('0xd7')][_0x7b1d('0x99')](_0x599fb7);return _0x5a0125['createRange'](_0x5a0125['createPositionAt'](_0x599fb7,'before'),_0x42a3cb?_0x5a0125[_0x7b1d('0x87')](_0x599fb7):_0x5a0125[_0x7b1d('0xb7')](_0x599fb7,'end'));}function xt(_0x2e0f61,_0x4f65c4,_0x5beb4c,_0x1466f5,_0x53e565){if(_0x5beb4c[_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x1466f5[_0x7b1d('0xc2')]))return!0x0;if(_0x2e0f61[_0x7b1d('0xa2')]!=_0x4f65c4['type'])return!0x1;if(!_0x5beb4c['end'][_0x7b1d('0x134')](_0x1466f5[_0x7b1d('0xc2')]))return!0x1;const _0x188f66=_0x53e565[_0x7b1d('0x40')](_0x5beb4c[_0x7b1d('0x2a')],_0x1466f5[_0x7b1d('0xc2')])['getWalker']();for(const _0x526546 of _0x188f66)if([_0x7b1d('0x96'),_0x7b1d('0x75')]['includes'](_0x526546[_0x7b1d('0xa2')])&&_0x53e565[_0x7b1d('0xd7')]['isLimit'](_0x526546[_0x7b1d('0x19')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/trackchangesui
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
5
|
-
import { Users } from 'ckeditor5-collaboration';
|
|
6
|
-
import TrackChangesEditing from './trackchangesediting
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
10
|
+
import TrackChangesEditing from './trackchangesediting';
|
|
7
11
|
/**
|
|
8
12
|
* Provides UI for track changes plugin.
|
|
9
13
|
*
|
package/src/trackchangesui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e3d=['discardSelectedSuggestions','comments','stopListening','_destroyController','discardButton','unbind','buttonView','locale','TrackChangesEditing','define','execute','comments.maxThreadTotalWeight','_suggestionToController','clear','CommentsRepository','switchbutton','change:activeAnnotations','plugins','init','listenTo','createAnnotationView','commandName','isEnabled','EditorAnnotations','suggestionLoaded','view','get','trackChanges','separator','addSourceCollector','discardAllSuggestions','_viewToController','length','set','comments.editorConfig','suggestionChanged','isDirty','requires','getMarkers','change:previous','trackChanges.disableComments','_refreshActiveMarkers','pluginName','descriptionParts','mainView','_descriptionFactory','model','_handleSuggestionControllerDelayed','push','value','Accept\x20all\x20suggestions','TrackChangesUI','getByInnerView','registerAnnotation','toMany','actionView','hasSuggestion','isOn','add','createCommentThreadController','CommentsUI','_updateController','delete','filter','type','activeAnnotations','map','bind','has','commands','Annotations','editing','button','acceptSelectedSuggestions','getAllAdjacentSuggestions','destroy','getFirstRange','acceptButton','_handleControllerBuffer','addComment','Accept\x20all\x20selected\x20suggestions','innerView','getDescriptions','Track\x20changes','refreshSelectedViews','_initializeController','config','getJoined','_annotationViews','head','values','suggestionUnloaded','isInContent','trackChanges.SuggestionThreadView','comments.maxCommentCharsWhenCollapsed','SuggestionThreadView','suggestion-','acceptAllSuggestions','remove','activeMarkers','size','comments.maxCommentsWhenCollapsed','keys','editor','lowest','_disableComments','getRanges','from','componentFactory','reduce','focus'];(function(_0x260ed6,_0x4e3d57){const _0xcb6b10=function(_0x52d4e1){while(--_0x52d4e1){_0x260ed6['push'](_0x260ed6['shift']());}};_0xcb6b10(++_0x4e3d57);}(_0x4e3d,0x104));const _0xcb6b=function(_0x260ed6,_0x4e3d57){_0x260ed6=_0x260ed6-0x0;let _0xcb6b10=_0x4e3d[_0x260ed6];return _0xcb6b10;};import{Plugin as _0x1285cc}from'ckeditor5/src/core.js';import{Collection as _0x2807c0}from'ckeditor5/src/utils.js';import{Model as _0x5c86a8,SplitButtonView as _0x11c077,createDropdown as _0x585c72,addListToDropdown as _0x5ab85a}from'ckeditor5/src/ui.js';import{Users as _0x5af069,getDateTimeFormatter as _0x1de0fa,getAllMarkersDomElementsSorted as _0x4b0274}from'ckeditor5-collaboration';import _0x301c9a from'./trackchangesediting.js';import _0x2c716a from'./ui/suggestioncontroller.js';import _0x4fba5f from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x1979a6}from'./utils/common-translations.js';import _0x5185d5 from'../theme/icons/track-changes.svg';export default class d extends _0x1285cc{static get[_0xcb6b('0x6e')](){return[_0x301c9a,_0x5af069,_0xcb6b('0x57'),'Annotations',_0xcb6b('0x60')];}static get[_0xcb6b('0x4')](){return _0xcb6b('0xd');}constructor(_0x30e8e1){super(_0x30e8e1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0xcb6b('0x32')]=new Map(),this[_0xcb6b('0x28')]=new Map();const _0x1cb69c=this[_0xcb6b('0x41')]['config'];_0x1cb69c[_0xcb6b('0x52')](_0xcb6b('0x37'),_0x4fba5f),_0x1cb69c[_0xcb6b('0x52')](_0xcb6b('0x2'),!0x1),this[_0xcb6b('0x43')]=_0x1cb69c['get'](_0xcb6b('0x2'));}[_0xcb6b('0x9')](_0x93ffd1,_0x39c880){0x0===this['_handleControllerBuffer'][_0xcb6b('0x3e')]&&setTimeout(()=>{for(const [_0x55bf9e,_0x26bf51]of this[_0xcb6b('0x28')]){const _0x422099=this['_suggestionToController']['has'](_0x55bf9e);_0x422099||_0x26bf51?_0x422099&&_0x26bf51&&this[_0xcb6b('0x4c')](_0x55bf9e):this['_initializeController'](_0x55bf9e);}this[_0xcb6b('0x41')][_0xcb6b('0x5a')]['get']('EditorAnnotations')[_0xcb6b('0x2e')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0xcb6b('0x56')]();},0xa),this[_0xcb6b('0x28')][_0xcb6b('0x6a')](_0x93ffd1,_0x39c880);}[_0xcb6b('0x5b')](){const _0x47bc79=this[_0xcb6b('0x41')],_0x4735a1=_0x47bc79[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x3d539d=_0x47bc79[_0xcb6b('0x5a')]['get'](_0xcb6b('0x20')),_0x17d5c4=_0x47bc79[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x60')),_0x4e187f=_0x47bc79[_0xcb6b('0x5a')]['get']('CommentsRepository');_0x47bc79['ui'][_0xcb6b('0x46')][_0xcb6b('0x14')](_0xcb6b('0x64'),_0x195da0=>this['_createUIButton'](_0x195da0)),_0x17d5c4[_0xcb6b('0x66')](()=>{const _0x59c8f3=[];for(const [_0x10869b,_0x33a4d4]of Array[_0xcb6b('0x45')](this[_0xcb6b('0x55')])){const _0x35eaca=_0x10869b[_0xcb6b('0x24')](),_0x261c22=[];for(const _0x5c009f of _0x35eaca){if(!_0x5c009f[_0xcb6b('0x36')])continue;if(_0x5c009f['isMultiRange']){_0x261c22[_0xcb6b('0xa')](..._0x5c009f[_0xcb6b('0x44')]());continue;}const _0x526e8f=_0x5c009f[_0xcb6b('0x26')]();if(_0x261c22[_0xcb6b('0x69')]>0x0){const _0x390ac9=_0x261c22[0x0][_0xcb6b('0x31')](_0x526e8f);if(_0x390ac9){_0x261c22[0x0]=_0x390ac9;continue;}}_0x261c22[_0xcb6b('0xa')](_0x526e8f);}_0x59c8f3[_0xcb6b('0xa')]([_0x33a4d4[_0xcb6b('0x62')],_0x261c22]);}return _0x59c8f3;}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x61'),(_0x4f4a63,_0x20f70c)=>{this[_0xcb6b('0x5c')](_0x20f70c,'change:previous',(_0x51d6f5,_0x52e0a5,_0x314bd7,_0x301c65)=>{_0x20f70c[_0xcb6b('0x36')]&&(null==_0x314bd7?(this[_0xcb6b('0x17')](_0x301c65[_0xcb6b('0x33')]),this[_0xcb6b('0x9')](_0x20f70c,!0x1)):(this[_0xcb6b('0x17')](_0x314bd7[_0xcb6b('0x33')]),this[_0xcb6b('0x9')](_0x20f70c,!0x0)));}),null===_0x20f70c['previous']?this['_handleSuggestionControllerDelayed'](_0x20f70c,!0x1):this[_0xcb6b('0x17')](_0x20f70c[_0xcb6b('0x33')]);}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x35'),(_0x3ed55e,_0xb208bf,_0x19d2d2)=>{this[_0xcb6b('0x4b')](_0xb208bf,_0xcb6b('0x1')),this['_handleControllerBuffer'][_0xcb6b('0x18')](_0xb208bf);const _0x520862=_0x19d2d2?_0x19d2d2[_0xcb6b('0x33')]:_0xb208bf,_0x1bbcbd=this[_0xcb6b('0x55')][_0xcb6b('0x63')](_0x520862);null!==_0x19d2d2&&this[_0xcb6b('0x17')](_0x520862),null===_0x19d2d2&&_0x1bbcbd&&this[_0xcb6b('0x4c')](_0xb208bf);}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x6c'),(_0x2a671f,_0x281833)=>{this[_0xcb6b('0x17')](_0x281833);}),this[_0xcb6b('0x5c')](_0x3d539d,_0xcb6b('0x59'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e187f,_0xcb6b('0x29'),(_0x464ae0,{threadId:_0x473360,isFromAdapter:_0xa3898f})=>{if(_0xa3898f||!_0x4735a1[_0xcb6b('0x12')](_0x473360))return;const _0xa3f9a9=_0x4735a1['getSuggestion'](_0x473360);this['_suggestionToController'][_0xcb6b('0x63')](_0xa3f9a9)[_0xcb6b('0x62')][_0xcb6b('0x48')]();},{'priority':_0xcb6b('0x42')});}[_0xcb6b('0x3')](){const _0x34cd61=this['editor'][_0xcb6b('0x5a')]['get'](_0xcb6b('0x20')),_0x17dbd3=this[_0xcb6b('0x41')][_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x7b5ea9=Array[_0xcb6b('0x45')](_0x34cd61[_0xcb6b('0x1b')],_0x79e147=>_0x79e147[_0xcb6b('0x2b')])[_0xcb6b('0x19')](_0x4f6df2=>this[_0xcb6b('0x68')][_0xcb6b('0x1e')](_0x4f6df2)),_0x50108c=[];for(const _0x474673 of _0x7b5ea9){const _0x13dfc8=this['_viewToController'][_0xcb6b('0x63')](_0x474673)[_0xcb6b('0x8')][_0xcb6b('0x24')]();_0x50108c['push'](..._0x13dfc8[_0xcb6b('0x47')]((_0x136a86,_0x574181)=>[..._0x136a86,..._0x574181['getMarkerNames']()],[]));}_0x17dbd3[_0xcb6b('0x3d')]=_0x50108c;}['_createUIButton'](_0x57339d){const _0x57e457=_0x585c72(_0x57339d,_0x11c077),_0x514a5a=this[_0xcb6b('0x41')][_0xcb6b('0x1f')]['get'](_0xcb6b('0x64')),_0x5b1d1c=_0x1979a6(_0x57339d,_0xcb6b('0x2d'));_0x57e457[_0xcb6b('0x4f')][_0xcb6b('0x6a')]({'tooltip':_0x5b1d1c,'label':_0x5b1d1c,'icon':_0x5185d5}),_0x57e457[_0xcb6b('0x4f')][_0xcb6b('0x1d')]('isOn')['to'](_0x514a5a,_0xcb6b('0xb')),_0x57e457[_0xcb6b('0x4f')]['on'](_0xcb6b('0x53'),()=>{_0x514a5a[_0xcb6b('0x53')](),this[_0xcb6b('0x41')][_0xcb6b('0x21')][_0xcb6b('0x62')][_0xcb6b('0x48')]();});const _0x4963fe=new _0x2807c0(),_0x2a4205=[{'type':_0xcb6b('0x58'),'model':{'withText':!0x0,'label':_0x5b1d1c,'commandName':_0xcb6b('0x64')}},{'type':_0xcb6b('0x65')},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,_0xcb6b('0xc')),'commandName':_0xcb6b('0x3b')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,_0xcb6b('0x2a')),'commandName':_0xcb6b('0x23')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,'Discard\x20all\x20suggestions'),'commandName':_0xcb6b('0x67')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xcb6b('0x49')}}];for(const _0x51cf73 of _0x2a4205){let _0x55c75e={'type':_0xcb6b('0x65')};if(_0x51cf73[_0xcb6b('0x8')]){const _0x515a1a=new _0x5c86a8(_0x51cf73['model']),_0x4cd8a3=this[_0xcb6b('0x41')][_0xcb6b('0x1f')][_0xcb6b('0x63')](_0x515a1a[_0xcb6b('0x5e')]);_0x515a1a[_0xcb6b('0x1d')](_0xcb6b('0x13'),_0xcb6b('0x5f'))['to'](_0x4cd8a3,_0xcb6b('0xb'),_0xcb6b('0x5f')),_0x55c75e={'type':_0x51cf73[_0xcb6b('0x1a')],'model':_0x515a1a};}_0x4963fe[_0xcb6b('0x14')](_0x55c75e);}_0x5ab85a(_0x57e457,_0x4963fe);const _0x3dd4cd=_0x2a4205[_0xcb6b('0x19')](_0x26a065=>null!=_0x26a065[_0xcb6b('0x8')])[_0xcb6b('0x1c')](_0x2199a6=>this[_0xcb6b('0x41')][_0xcb6b('0x1f')][_0xcb6b('0x63')](_0x2199a6[_0xcb6b('0x8')][_0xcb6b('0x5e')])),_0x2cd613=_0x57e457['buttonView'];return _0x2cd613[_0xcb6b('0x11')][_0xcb6b('0x4e')]('isEnabled'),_0x2cd613['arrowView'][_0xcb6b('0x4e')](_0xcb6b('0x5f')),_0x2cd613[_0xcb6b('0x11')][_0xcb6b('0x1d')](_0xcb6b('0x5f'))['to'](_0x514a5a,_0xcb6b('0x5f')),_0x2cd613['arrowView'][_0xcb6b('0x1d')]('isEnabled')[_0xcb6b('0x10')](_0x3dd4cd,_0xcb6b('0x5f'),(..._0x54e219)=>_0x54e219['some'](_0x5925bb=>_0x5925bb)),_0x57e457['on']('execute',_0x10efd8=>{this['editor'][_0xcb6b('0x53')](_0x10efd8['source'][_0xcb6b('0x5e')]),this['editor'][_0xcb6b('0x21')][_0xcb6b('0x62')][_0xcb6b('0x48')]();}),_0x57e457;}[_0xcb6b('0x2f')](_0x4076d1){const _0xde2a51=this[_0xcb6b('0x41')],_0x4db8b4=_0xde2a51[_0xcb6b('0x30')],_0x49ed1c=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x20')),_0x3b5247=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')]('CommentsRepository'),_0x13c0fc=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x60')),_0x5470f7=_0xde2a51['plugins'][_0xcb6b('0x63')](_0x5af069)['me'],_0xccdf37=_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x64'))[_0xcb6b('0x39')],{CommentsListView:_0x40a555,CommentThreadInputView:_0xb97f0f}=_0xde2a51['plugins']['get'](_0xcb6b('0x16'));let _0x4a30ed,_0x2a92d8;this[_0xcb6b('0x32')][_0xcb6b('0x1e')](_0x4076d1['id'])?(_0x2a92d8=this[_0xcb6b('0x32')]['get'](_0x4076d1['id']),_0x4a30ed=_0x2a92d8[_0xcb6b('0x6')]):(_0x4a30ed=new _0xccdf37(_0xde2a51['locale'],_0x4076d1,_0x5470f7,{'disableComments':this[_0xcb6b('0x43')],'editorConfig':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x6b')),'maxCommentsWhenCollapsed':_0x4db8b4['get'](_0xcb6b('0x3f')),'maxThreadTotalWeight':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x54')),'maxCommentCharsWhenCollapsed':_0x4db8b4['get'](_0xcb6b('0x38')),'formatDateTime':_0x1de0fa(_0x4db8b4['get'](_0xcb6b('0x50'))),'CommentView':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x4a'))['CommentView'],'CommentsListView':_0x40a555,'CommentThreadInputView':_0xb97f0f}),_0x4a30ed[_0xcb6b('0x27')]['on']('execute',()=>{_0xde2a51[_0xcb6b('0x21')][_0xcb6b('0x62')]['focus']();}),_0x4a30ed[_0xcb6b('0x4d')]['on'](_0xcb6b('0x53'),()=>{_0xde2a51[_0xcb6b('0x21')][_0xcb6b('0x62')]['focus']();}),_0x2a92d8=_0x49ed1c[_0xcb6b('0x5d')](this[_0xcb6b('0x41')][_0xcb6b('0x50')],_0x4a30ed),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x6d'))['to'](_0x4a30ed,_0xcb6b('0x6d')),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x69'))['to'](_0x4a30ed),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x1a'))['to'](_0x4a30ed,'type',_0x2592e3=>'suggestion-'+_0x2592e3),this[_0xcb6b('0x32')][_0xcb6b('0x6a')](_0x4076d1['id'],_0x2a92d8));const _0x3288ed=_0x3b5247[_0xcb6b('0x15')](_0x4076d1['commentThread'],_0x4a30ed),_0x460e41=new _0x2c716a(_0xde2a51,_0x4076d1,_0x4a30ed,_0x3288ed),_0x4f29c4=_0x4076d1['getAllAdjacentSuggestions']()[_0xcb6b('0x19')](_0x4c98fe=>_0x4c98fe[_0xcb6b('0x36')]);_0x4a30ed[_0xcb6b('0x5')]=_0xde2a51[_0xcb6b('0x5a')]['get']('TrackChangesEditing')[_0xcb6b('0x7')]['getDescriptions'](_0x4f29c4),this[_0xcb6b('0x55')][_0xcb6b('0x6a')](_0x4076d1,_0x460e41),this[_0xcb6b('0x68')][_0xcb6b('0x6a')](_0x4a30ed,_0x460e41);const _0x588f4c=_0x49ed1c['createAnnotation']({'view':_0x2a92d8,'target':()=>{const _0x8aa6d7=[],_0x11da54=_0x4076d1[_0xcb6b('0x24')]()[_0xcb6b('0x19')](_0x5c1e8d=>_0x5c1e8d[_0xcb6b('0x36')]);for(const _0x42311d of _0x11da54)_0x8aa6d7['push'](..._0x42311d[_0xcb6b('0x0')]());return _0x4b0274(_0xde2a51[_0xcb6b('0x21')],_0x8aa6d7);},'type':()=>_0xcb6b('0x3a')+_0x460e41[_0xcb6b('0x62')][_0xcb6b('0x1a')]});_0x49ed1c[_0xcb6b('0x14')](_0x588f4c),_0x13c0fc[_0xcb6b('0xf')](_0x588f4c);}['_destroyController'](_0xefff1d){const _0x3db804=this[_0xcb6b('0x41')]['plugins'][_0xcb6b('0x63')](_0xcb6b('0x20')),_0x2c9072=this['_suggestionToController'][_0xcb6b('0x63')](_0xefff1d),_0x3b09e5=_0x2c9072[_0xcb6b('0x62')],_0x290fd4=_0x3db804[_0xcb6b('0xe')](_0x3b09e5);_0x290fd4&&_0x3db804[_0xcb6b('0x3c')](_0x290fd4),this[_0xcb6b('0x55')][_0xcb6b('0x18')](_0xefff1d),this['_viewToController']['delete'](_0x3b09e5),_0x2c9072[_0xcb6b('0x25')]();}[_0xcb6b('0x17')](_0x3c9453){if(!_0x3c9453[_0xcb6b('0x36')]||!this[_0xcb6b('0x55')][_0xcb6b('0x1e')](_0x3c9453))return;const _0x15b04c=this[_0xcb6b('0x41')][_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x576d54=this['_suggestionToController']['get'](_0x3c9453),_0x17df05=_0x3c9453['getAllAdjacentSuggestions']();_0x576d54[_0xcb6b('0x62')]['descriptionParts']=_0x15b04c[_0xcb6b('0x7')][_0xcb6b('0x2c')](_0x17df05);}[_0xcb6b('0x25')](){for(const _0xd38de7 of this[_0xcb6b('0x55')][_0xcb6b('0x40')]())this[_0xcb6b('0x4c')](_0xd38de7);for(const _0x3f8196 of this[_0xcb6b('0x32')][_0xcb6b('0x34')]())_0x3f8196[_0xcb6b('0x6')][_0xcb6b('0x25')]();super[_0xcb6b('0x25')]();}}
|
|
23
|
+
const _0x384c=['_suggestionToController','acceptSelectedSuggestions','destroy','Track\x20changes','separator','_disableComments','TrackChangesUI','comments','_viewToController','button','SuggestionThreadView','value','clear','suggestionLoaded','listenTo','registerAnnotation','discardAllSuggestions','commandName','filter','getSuggestion','getMarkers','delete','config','commentThread','discardButton','has','innerView','model','lowest','activeAnnotations','comments.maxThreadTotalWeight','EditorAnnotations','set','keys','define','init','CommentView','add','isInContent','actionView','_initializeController','Annotations','_annotationViews','stopListening','editor','CommentsRepository','trackChanges.disableComments','switchbutton','_refreshActiveMarkers','commands','reduce','trackChanges','TrackChangesEditing','isDirty','Accept\x20all\x20selected\x20suggestions','hasSuggestion','pluginName','remove','size','requires','plugins','getJoined','view','_handleSuggestionControllerDelayed','Discard\x20all\x20selected\x20suggestions','isOn','type','length','get','descriptionParts','isEnabled','editing','acceptAllSuggestions','unbind','_handleControllerBuffer','_descriptionFactory','createAnnotation','activeMarkers','mainView','_updateController','map','refreshSelectedViews','suggestionChanged','componentFactory','getDescriptions','createCommentThreadController','_bindAnnotationToEditors','acceptButton','change:previous','previous','comments.editorConfig','Discard\x20all\x20suggestions','locale','getRanges','bind','_createUIButton','trackChanges.SuggestionThreadView','values','push','comments.maxCommentsWhenCollapsed','execute','addSourceCollector','_destroyController','toMany','head','focus','buttonView','arrowView','suggestionUnloaded','getAllAdjacentSuggestions','discardSelectedSuggestions','isMultiRange','getFirstRange','suggestion-','from','some'];(function(_0xe12b4f,_0x384ccc){const _0x2f584b=function(_0xca69c6){while(--_0xca69c6){_0xe12b4f['push'](_0xe12b4f['shift']());}};_0x2f584b(++_0x384ccc);}(_0x384c,0x9f));const _0x2f58=function(_0xe12b4f,_0x384ccc){_0xe12b4f=_0xe12b4f-0x0;let _0x2f584b=_0x384c[_0xe12b4f];return _0x2f584b;};import{Plugin as _0x352bc5}from'ckeditor5/src/core';import{Collection as _0x56b27d}from'ckeditor5/src/utils';import{Model as _0xf1cec8,SplitButtonView as _0x267fb8,createDropdown as _0x238ea0,addListToDropdown as _0x4db84a}from'ckeditor5/src/ui';import{Users as _0x32a995,getDateTimeFormatter as _0x570f7c,getAllMarkersDomElementsSorted as _0x42ea1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x40c609 from'./trackchangesediting';import _0x2fd209 from'./ui/suggestioncontroller';import _0xc7883f from'./ui/view/suggestionthreadview';import{getTranslation as _0x4d7042}from'./utils/common-translations';import _0x24f261 from'../theme/icons/track-changes.svg';export default class d extends _0x352bc5{static get[_0x2f58('0x10')](){return[_0x40c609,_0x32a995,_0x2f58('0x2'),_0x2f58('0x72'),_0x2f58('0x68')];}static get[_0x2f58('0xd')](){return _0x2f58('0x4f');}constructor(_0x1d19ff){super(_0x1d19ff),this['_suggestionToController']=new Map(),this[_0x2f58('0x51')]=new Map(),this[_0x2f58('0x73')]=new Map(),this[_0x2f58('0x1f')]=new Map();const _0x10f5ac=this[_0x2f58('0x1')][_0x2f58('0x5f')];_0x10f5ac[_0x2f58('0x6b')](_0x2f58('0x35'),_0xc7883f),_0x10f5ac[_0x2f58('0x6b')](_0x2f58('0x3'),!0x1),this[_0x2f58('0x4e')]=_0x10f5ac[_0x2f58('0x19')](_0x2f58('0x3'));}['_handleSuggestionControllerDelayed'](_0x92d7a5,_0x9fcdef){0x0===this[_0x2f58('0x1f')][_0x2f58('0xf')]&&setTimeout(()=>{for(const [_0xcec82b,_0x55b5b9]of this[_0x2f58('0x1f')]){const _0x120bdd=this[_0x2f58('0x49')][_0x2f58('0x62')](_0xcec82b);_0x120bdd||_0x55b5b9?_0x120bdd&&_0x55b5b9&&this['_destroyController'](_0xcec82b):this['_initializeController'](_0xcec82b);}this[_0x2f58('0x1')]['plugins'][_0x2f58('0x19')](_0x2f58('0x68'))[_0x2f58('0x26')](),this[_0x2f58('0x5')](),this[_0x2f58('0x1f')][_0x2f58('0x55')]();},0xa),this[_0x2f58('0x1f')]['set'](_0x92d7a5,_0x9fcdef);}[_0x2f58('0x6c')](){const _0x36edf6=this['editor'],_0x1499d4=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x2aac33=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')]('Annotations'),_0x924406=_0x36edf6[_0x2f58('0x11')]['get'](_0x2f58('0x68')),_0x3b0ed9=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')]('CommentsRepository');_0x36edf6['ui'][_0x2f58('0x28')][_0x2f58('0x6e')](_0x2f58('0x8'),_0x2feab1=>this[_0x2f58('0x34')](_0x2feab1)),_0x924406[_0x2f58('0x3a')](()=>{const _0xbf56e6=[];for(const [_0x1c2416,_0xd38811]of Array[_0x2f58('0x47')](this[_0x2f58('0x49')])){const _0x1e7cb5=_0x1c2416[_0x2f58('0x42')](),_0x4e871a=[];for(const _0x14ffd0 of _0x1e7cb5){if(!_0x14ffd0['isInContent'])continue;if(_0x14ffd0[_0x2f58('0x44')]){_0x4e871a[_0x2f58('0x37')](..._0x14ffd0[_0x2f58('0x32')]());continue;}const _0x487bfd=_0x14ffd0[_0x2f58('0x45')]();if(_0x4e871a[_0x2f58('0x18')]>0x0){const _0xf8a29=_0x4e871a[0x0][_0x2f58('0x12')](_0x487bfd);if(_0xf8a29){_0x4e871a[0x0]=_0xf8a29;continue;}}_0x4e871a[_0x2f58('0x37')](_0x487bfd);}_0xbf56e6[_0x2f58('0x37')]([_0xd38811['view'],_0x4e871a]);}return _0xbf56e6;}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x56'),(_0x400a8b,_0x220501)=>{this[_0x2f58('0x57')](_0x220501,_0x2f58('0x2d'),(_0x3143db,_0x2e22b7,_0x31c91b,_0x3fa04b)=>{_0x220501[_0x2f58('0x6f')]&&(null==_0x31c91b?(this[_0x2f58('0x24')](_0x3fa04b['head']),this[_0x2f58('0x14')](_0x220501,!0x1)):(this[_0x2f58('0x24')](_0x31c91b[_0x2f58('0x3d')]),this[_0x2f58('0x14')](_0x220501,!0x0)));}),null===_0x220501[_0x2f58('0x2e')]?this[_0x2f58('0x14')](_0x220501,!0x1):this[_0x2f58('0x24')](_0x220501[_0x2f58('0x3d')]);}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x41'),(_0x119e22,_0x53d92a,_0x1274ee)=>{this[_0x2f58('0x0')](_0x53d92a,'change:previous'),this['_handleControllerBuffer'][_0x2f58('0x5e')](_0x53d92a);const _0x4a0d46=_0x1274ee?_0x1274ee[_0x2f58('0x3d')]:_0x53d92a,_0x21baa5=this['_suggestionToController'][_0x2f58('0x19')](_0x4a0d46);null!==_0x1274ee&&this[_0x2f58('0x24')](_0x4a0d46),null===_0x1274ee&&_0x21baa5&&this[_0x2f58('0x3b')](_0x53d92a);}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x27'),(_0x3a36d2,_0x25b856)=>{this[_0x2f58('0x24')](_0x25b856);}),this[_0x2f58('0x57')](_0x2aac33,'change:activeAnnotations',()=>{this[_0x2f58('0x5')]();}),this[_0x2f58('0x57')](_0x3b0ed9,'addComment',(_0x392348,{threadId:_0x5e32e6,isFromAdapter:_0x7743fb})=>{if(_0x7743fb||!_0x1499d4[_0x2f58('0xc')](_0x5e32e6))return;const _0x1d4fa4=_0x1499d4[_0x2f58('0x5c')](_0x5e32e6);this['_suggestionToController']['get'](_0x1d4fa4)[_0x2f58('0x13')][_0x2f58('0x3e')]();},{'priority':_0x2f58('0x65')});}[_0x2f58('0x5')](){const _0x1cb937=this['editor'][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x72')),_0x31a986=this['editor'][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x5202ae=Array[_0x2f58('0x47')](_0x1cb937[_0x2f58('0x66')],_0xa32b67=>_0xa32b67[_0x2f58('0x63')])[_0x2f58('0x5b')](_0x3fdefb=>this['_viewToController'][_0x2f58('0x62')](_0x3fdefb)),_0x178377=[];for(const _0x6997ce of _0x5202ae){const _0x389e63=this[_0x2f58('0x51')][_0x2f58('0x19')](_0x6997ce)['model'][_0x2f58('0x42')]();_0x178377[_0x2f58('0x37')](..._0x389e63[_0x2f58('0x7')]((_0x4156fa,_0x2c8156)=>[..._0x4156fa,..._0x2c8156['getMarkerNames']()],[]));}_0x31a986[_0x2f58('0x22')]=_0x178377;}[_0x2f58('0x34')](_0x9dd5a1){const _0x508906=_0x238ea0(_0x9dd5a1,_0x267fb8),_0x4889a8=this[_0x2f58('0x1')][_0x2f58('0x6')]['get'](_0x2f58('0x8')),_0x5b5190=_0x4d7042(_0x9dd5a1,_0x2f58('0x4c'));_0x508906['buttonView'][_0x2f58('0x69')]({'tooltip':_0x5b5190,'label':_0x5b5190,'icon':_0x24f261}),_0x508906[_0x2f58('0x3f')][_0x2f58('0x33')](_0x2f58('0x16'))['to'](_0x4889a8,_0x2f58('0x54')),_0x508906[_0x2f58('0x3f')]['on'](_0x2f58('0x39'),()=>{_0x4889a8[_0x2f58('0x39')](),this[_0x2f58('0x1')][_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();});const _0x1a7883=new _0x56b27d(),_0x1cb9a6=[{'type':_0x2f58('0x4'),'model':{'withText':!0x0,'label':_0x5b5190,'commandName':_0x2f58('0x8')}},{'type':_0x2f58('0x4d')},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,'Accept\x20all\x20suggestions'),'commandName':_0x2f58('0x1d')}},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0xb')),'commandName':_0x2f58('0x4a')}},{'type':'button','model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0x30')),'commandName':_0x2f58('0x59')}},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0x15')),'commandName':_0x2f58('0x43')}}];for(const _0x1df81a of _0x1cb9a6){let _0x1ce192={'type':_0x2f58('0x4d')};if(_0x1df81a[_0x2f58('0x64')]){const _0x5e4517=new _0xf1cec8(_0x1df81a[_0x2f58('0x64')]),_0x2cca1d=this['editor'][_0x2f58('0x6')][_0x2f58('0x19')](_0x5e4517[_0x2f58('0x5a')]);_0x5e4517[_0x2f58('0x33')](_0x2f58('0x16'),_0x2f58('0x1b'))['to'](_0x2cca1d,'value',_0x2f58('0x1b')),_0x1ce192={'type':_0x1df81a[_0x2f58('0x17')],'model':_0x5e4517};}_0x1a7883['add'](_0x1ce192);}_0x4db84a(_0x508906,_0x1a7883);const _0x51eae4=_0x1cb9a6[_0x2f58('0x5b')](_0xd07a55=>null!=_0xd07a55[_0x2f58('0x64')])[_0x2f58('0x25')](_0x4e7baf=>this[_0x2f58('0x1')][_0x2f58('0x6')][_0x2f58('0x19')](_0x4e7baf[_0x2f58('0x64')]['commandName'])),_0x169135=_0x508906['buttonView'];return _0x169135['actionView'][_0x2f58('0x1e')](_0x2f58('0x1b')),_0x169135[_0x2f58('0x40')][_0x2f58('0x1e')](_0x2f58('0x1b')),_0x169135[_0x2f58('0x70')][_0x2f58('0x33')](_0x2f58('0x1b'))['to'](_0x4889a8,'isEnabled'),_0x169135[_0x2f58('0x40')]['bind'](_0x2f58('0x1b'))[_0x2f58('0x3c')](_0x51eae4,_0x2f58('0x1b'),(..._0x4cf9a0)=>_0x4cf9a0[_0x2f58('0x48')](_0x177677=>_0x177677)),_0x508906['on'](_0x2f58('0x39'),_0x27d77b=>{this[_0x2f58('0x1')][_0x2f58('0x39')](_0x27d77b['source'][_0x2f58('0x5a')]),this[_0x2f58('0x1')][_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x508906;}[_0x2f58('0x71')](_0x87eb07){const _0x469882=this[_0x2f58('0x1')],_0x6ddc1b=_0x469882[_0x2f58('0x5f')],_0x51b615=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x72')),_0x2e131e=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x2')),_0x5dd44e=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x68')),_0x5f1d70=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x32a995)['me'],_0x581c50=_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x8'))[_0x2f58('0x53')],{CommentsListView:_0x37d678,CommentThreadInputView:_0x5087ce}=_0x469882[_0x2f58('0x11')]['get']('CommentsUI');let _0x1accf3,_0x874de8;this[_0x2f58('0x73')]['has'](_0x87eb07['id'])?(_0x874de8=this[_0x2f58('0x73')][_0x2f58('0x19')](_0x87eb07['id']),_0x1accf3=_0x874de8['mainView']):(_0x1accf3=new _0x581c50(_0x469882[_0x2f58('0x31')],_0x87eb07,_0x5f1d70,{'disableComments':this[_0x2f58('0x4e')],'editorConfig':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x2f')),'maxCommentsWhenCollapsed':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x38')),'maxThreadTotalWeight':_0x6ddc1b['get'](_0x2f58('0x67')),'maxCommentCharsWhenCollapsed':_0x6ddc1b[_0x2f58('0x19')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x570f7c(_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x31'))),'CommentView':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x50'))[_0x2f58('0x6d')],'CommentsListView':_0x37d678,'CommentThreadInputView':_0x5087ce}),_0x1accf3[_0x2f58('0x2c')]['on'](_0x2f58('0x39'),()=>{_0x469882['editing'][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x1accf3[_0x2f58('0x61')]['on']('execute',()=>{_0x469882[_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x874de8=_0x51b615['createAnnotationView'](this[_0x2f58('0x1')][_0x2f58('0x31')],_0x1accf3),_0x874de8[_0x2f58('0x33')](_0x2f58('0xa'))['to'](_0x1accf3,_0x2f58('0xa')),_0x874de8['bind']('length')['to'](_0x1accf3),_0x874de8[_0x2f58('0x33')]('type')['to'](_0x1accf3,_0x2f58('0x17'),_0x5c27a7=>_0x2f58('0x46')+_0x5c27a7),this[_0x2f58('0x73')][_0x2f58('0x69')](_0x87eb07['id'],_0x874de8));const _0x2af094=_0x2e131e[_0x2f58('0x2a')](_0x87eb07[_0x2f58('0x60')],_0x1accf3),_0x1ebfc3=new _0x2fd209(_0x469882,_0x87eb07,_0x1accf3,_0x2af094),_0x305a39=_0x87eb07[_0x2f58('0x42')]()['filter'](_0x15ecbf=>_0x15ecbf[_0x2f58('0x6f')]);_0x1accf3[_0x2f58('0x1a')]=_0x469882[_0x2f58('0x11')]['get'](_0x2f58('0x9'))['_descriptionFactory'][_0x2f58('0x29')](_0x305a39),this[_0x2f58('0x49')][_0x2f58('0x69')](_0x87eb07,_0x1ebfc3),this[_0x2f58('0x51')][_0x2f58('0x69')](_0x1accf3,_0x1ebfc3);const _0x44687c=_0x51b615[_0x2f58('0x21')]({'view':_0x874de8,'target':()=>{const _0x3c65d2=[],_0x1aa527=_0x87eb07['getAllAdjacentSuggestions']()[_0x2f58('0x5b')](_0x410500=>_0x410500[_0x2f58('0x6f')]);for(const _0x32c0c7 of _0x1aa527)_0x3c65d2['push'](..._0x32c0c7[_0x2f58('0x5d')]());return _0x42ea1f(_0x469882[_0x2f58('0x1c')],_0x3c65d2);},'type':()=>_0x2f58('0x46')+_0x1ebfc3['view'][_0x2f58('0x17')]});_0x2e131e[_0x2f58('0x2b')](_0x1accf3,_0x44687c),_0x51b615['add'](_0x44687c),_0x5dd44e[_0x2f58('0x58')](_0x44687c);}[_0x2f58('0x3b')](_0x17eb75){const _0x3f7789=this['editor']['plugins'][_0x2f58('0x19')](_0x2f58('0x72')),_0x12fe5d=this['_suggestionToController'][_0x2f58('0x19')](_0x17eb75),_0x1d6c09=_0x12fe5d[_0x2f58('0x13')],_0xebf044=_0x3f7789['getByInnerView'](_0x1d6c09);_0xebf044&&_0x3f7789[_0x2f58('0xe')](_0xebf044),this[_0x2f58('0x49')][_0x2f58('0x5e')](_0x17eb75),this['_viewToController'][_0x2f58('0x5e')](_0x1d6c09),_0x12fe5d[_0x2f58('0x4b')]();}[_0x2f58('0x24')](_0x5676f9){if(!_0x5676f9['isInContent']||!this['_suggestionToController'][_0x2f58('0x62')](_0x5676f9))return;const _0x1a8f51=this[_0x2f58('0x1')][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x32e70d=this['_suggestionToController'][_0x2f58('0x19')](_0x5676f9),_0x114916=_0x5676f9[_0x2f58('0x42')]();_0x32e70d[_0x2f58('0x13')][_0x2f58('0x1a')]=_0x1a8f51[_0x2f58('0x20')][_0x2f58('0x29')](_0x114916);}['destroy'](){for(const _0xa72cea of this[_0x2f58('0x49')][_0x2f58('0x6a')]())this[_0x2f58('0x3b')](_0xa72cea);for(const _0x4b00fb of this[_0x2f58('0x73')][_0x2f58('0x36')]())_0x4b00fb[_0x2f58('0x23')][_0x2f58('0x4b')]();super[_0x2f58('0x4b')]();}}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
|
-
import type { Editor } from 'ckeditor5/src/core
|
|
5
|
-
import type Suggestion from '../suggestion
|
|
6
|
-
import type BaseSuggestionThreadView from './view/basesuggestionthreadview
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
import type BaseSuggestionThreadView from './view/basesuggestionthreadview';
|
|
7
8
|
import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
|
|
8
9
|
declare const SuggestionController_base: {
|
|
9
|
-
new (): import("ckeditor5/src/utils
|
|
10
|
-
prototype: import("ckeditor5/src/utils
|
|
10
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
11
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* A controller for a suggestion.
|