@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230724.0 → 0.0.0-nightly-20230725.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +4 -0
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +4 -0
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +4 -0
- package/src/integrations/alignment.d.ts +4 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +4 -0
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +4 -0
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +4 -0
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +4 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +4 -0
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +4 -0
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +4 -0
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +4 -0
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +4 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +4 -0
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +4 -0
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +4 -0
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +4 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +4 -0
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +4 -0
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +4 -0
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +4 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +4 -0
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +4 -0
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +4 -0
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +4 -0
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +4 -0
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +4 -0
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +4 -0
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +4 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +4 -0
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +4 -0
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +4 -0
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +4 -0
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +4 -0
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +4 -0
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +4 -0
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +4 -0
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +4 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +4 -0
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -0
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +4 -0
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +4 -0
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +4 -0
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +4 -0
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +4 -0
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +4 -0
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +4 -0
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +11 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +4 -0
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +4 -0
- package/src/trackchangesdata.d.ts +4 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +4 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +4 -0
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +2 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +2 -2
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -0
- package/src/utils/utils.js +1 -1
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35be=['track-changes-data-invalid-editor-creator','config','Pagination','reduce','get','Users','pluginName','plugins','appendChild','document','trackChangesData','set','rootsAttributes','execute','_adapter','getRootsAttributes','getUser','model','name','getFullData','getRootNames','editor','editorCreator','push','users','TrackChangesDataGetter','destroy','TrackChangesEditing','addSuggestionData','getDataWithAcceptedSuggestions','getSuggestions','data','create','getDataWithDiscardedSuggestions','acceptAllSuggestions','createElement','init','define'];(function(_0x528076,_0x35be70){const _0x56c7c2=function(_0x5bd5de){while(--_0x5bd5de){_0x528076['push'](_0x528076['shift']());}};_0x56c7c2(++_0x35be70);}(_0x35be,0x1be));const _0x56c7=function(_0x528076,_0x35be70){_0x528076=_0x528076-0x0;let _0x56c7c2=_0x35be[_0x528076];return _0x56c7c2;};import{Plugin as _0x23af74}from'ckeditor5/src/core';import{CKEditorError as _0x1b9759}from'ckeditor5/src/utils';import _0x4afa74 from'./trackchangesediting';import{sanitizeEditorConfig as _0x5e2484}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x56c7('0xc')];export default class T extends _0x23af74{static get['requires'](){return[_0x4afa74];}static get[_0x56c7('0x10')](){return'TrackChangesData';}[_0x56c7('0x8')](){const _0x295888=this[_0x56c7('0x1f')];if(_0x295888[_0x56c7('0xb')][_0x56c7('0x9')]('trackChangesData.editorCreator',_0x272e07=>{const _0x4c2292=_0x295888['model'][_0x56c7('0x13')][_0x56c7('0x1e')]()[_0x56c7('0xd')]((_0x432418,_0x19c782)=>(_0x432418[_0x19c782]='',_0x432418),{});return _0x295888['constructor'][_0x56c7('0x4')](_0x4c2292,_0x272e07);}),'function'!=typeof _0x295888[_0x56c7('0xb')]['get'](_0x56c7('0x14'))['editorCreator'])throw new _0x1b9759(_0x56c7('0xa'));}[_0x56c7('0x1')](_0x5e5733){return v(this[_0x56c7('0x1f')],!0x0,_0x5e5733);}[_0x56c7('0x5')](_0x35aed8){return v(this[_0x56c7('0x1f')],!0x1,_0x35aed8);}}class P extends _0x23af74{static get[_0x56c7('0x10')](){return _0x56c7('0x23');}constructor(_0x3a3e80){super(_0x3a3e80),this['result']='end';}[_0x56c7('0x8')](){this[_0x56c7('0x1f')][_0x56c7('0x11')]['get']('CommentsRepository')[_0x56c7('0x18')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x56c7('0x1f')][_0x56c7('0x11')][_0x56c7('0xe')](_0x56c7('0x25'))[_0x56c7('0x18')]=null;}}function D(_0x110be7){return void 0x0!==_0x110be7['getRootsAttributes'];}async function v(_0x44e4e6,_0x2e545d,_0x175acf){const _0x4efe0d=_0x5e2484(_0x44e4e6,w);_0x4efe0d[_0x56c7('0x11')][_0x56c7('0x21')](_0x4afa74,P),_0x4efe0d[_0x56c7('0x16')]=D(_0x44e4e6)?_0x44e4e6[_0x56c7('0x19')]():void 0x0;const _0x2bed2e=document['createDocumentFragment'](),_0x330dea=_0x44e4e6['config'][_0x56c7('0xe')](_0x56c7('0x14'))[_0x56c7('0x20')],_0x13984c=await _0x330dea(_0x4efe0d,()=>function(_0x213369){const _0x483c41=document[_0x56c7('0x7')]('div');return _0x213369[_0x56c7('0x12')](_0x483c41),_0x483c41;}(_0x2bed2e));!function(_0x412290,_0xf5e9d6){const _0x4de69f=_0x412290[_0x56c7('0x1b')]['document'][_0x56c7('0x1e')]()[_0x56c7('0xd')]((_0x1846d2,_0x7333ac)=>(_0x1846d2[_0x7333ac]=_0x412290[_0x56c7('0x3')][_0x56c7('0xe')]({'rootName':_0x7333ac}),_0x1846d2),{}),_0x4014e9=_0x412290['plugins'][_0x56c7('0xe')](_0x56c7('0xf'))[_0x56c7('0x22')]['map'](_0x28a45c=>({'id':_0x28a45c['id'],'name':_0x28a45c[_0x56c7('0x1c')]})),_0x328ef5=_0x412290[_0x56c7('0x11')][_0x56c7('0xe')](_0x56c7('0x25'))[_0x56c7('0x2')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xffc4b4=_0xf5e9d6[_0x56c7('0x11')][_0x56c7('0xe')](_0x56c7('0xf')),_0x4761a8=_0xf5e9d6[_0x56c7('0x11')][_0x56c7('0xe')](_0x56c7('0x25'));for(const _0x3116b4 of _0x4014e9)_0xffc4b4[_0x56c7('0x1a')](_0x3116b4['id'])||_0xffc4b4['addUser'](_0x3116b4);_0xffc4b4['me']||_0xffc4b4['useAnonymousUser']();for(const _0x45453f of _0x328ef5)_0x4761a8[_0x56c7('0x0')](_0x45453f);_0xf5e9d6[_0x56c7('0x3')][_0x56c7('0x15')](_0x4de69f);}(_0x44e4e6,_0x13984c),_0x13984c[_0x56c7('0x17')](_0x2e545d?_0x56c7('0x6'):'discardAllSuggestions');const _0x287b1e=D(_0x13984c)?_0x13984c[_0x56c7('0x1d')](_0x175acf):_0x13984c['data']['get'](_0x175acf);return await _0x13984c[_0x56c7('0x24')](),_0x287b1e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30fe=['getChangedMarkers','elementEnd','before','getAttribute','ck-suggestion-marker-formatBlock','markerToHighlight','forceDefaultExecution','markers','editor','markMultiRangeDeletion','multipleBlocks','createPositionAt','_adapter','containsRange','markerName','authorName','_splitMarkerName','acceptAllSuggestions','addCommentThread','addUser','hasComments','authoredAt','_breakSuggestionMarker','suggestionLoaded','@external','isTouching','isLimit','nodeBefore','schema','ck-suggestion-marker-','_updateSuggestionData','get','_joinWithAdjacentSuggestions','trackChanges','unbind','containsItem','_defaultCallbacks','has','split','notReady','_handleNewSuggestionMarker','markMultiRangeInsertion','attributes','hasSuggestion','deletion:','length','open','position','collaboration.channelId','define','then','track-changes-suggestion-data-mismatch','markMultiRangeBlockFormat','remove','newRange','catch','commentThread','mapper','addMarkerName','insertion:discard','deletion:chain','getUser','sort','removed','howMany','isMultiRange','locale','nodeAfter','toViewElement','isOwn','element','setTo','change:activeMarkers','includes','substr','_checkSuggestionCorrectness','unbindElementFromMarkerName','activeMarkers','updateMarker','_suggestionState','CommentsRepository','_onDiscard','addClass','isInsideObject','_getAuthorFromId','isAfter','upcast','_suggestionFactory','creator','acceptSuggestion','_addSuggestionMarker','accept','_removeSuggestion','insertion:accept','_findSuggestions','buildSuggestion','marker-count','containsPosition','insertion:join','trackChanges.trackFormatChanges','fire','getIntersection','track-changes-user-not-found','addComment','suggestionChanged','for','selection','_editor','ready','end','discardSuggestion','showSuggestionHighlights','splice','fromRange','every','detach','parent','_customCallbacks','isObject','model','formatInline:join','insert','commandName','moveTargetPosition','addRange','deleteContent','getNearestSelectionRange','change:_saved','config','deletion:join','addMarker:suggestion:formatBlock','type','_model','getRange','name','group','formatGroupId','getFirstMarker','some','change','options','isDocumentOperation','applyOperation','createRangeIn','insertContent','execute','discardAllSuggestions','getSuggestions','getSuggestion','add','_saved','track-changes-command-not-found','delete','removeClass','batch','writer','formatBlock:accept','createPositionBefore','getChanges','isCollapsed','formatBlock:','_enabledCommands','accepted','isEqual','documentSelection','setAttribute','data','getMultiRangeId','addSuggestionData','enableReadOnlyMode','createRange','_mergeNestedSuggestions','targetPosition','init','widget','registerPostFixer','fetchCommentThread','move','consume','editingDowncast','removeMarker','setSelection','_joinSuggestions','_suggestions','low','map','ck-suggestion-marker','adapter','filter','getCommentThread','$marker','suggestion:','discard','listenTo','multi','removeMarkers','createPositionAfter','getRanges','fromCharCode','getFirstRange','clone','dataToMarker','consumable','splitPosition','next','plugins','values','suggestion-type','_isForcedDefaultExecutionBlock','previous','getShiftedBy','rejected','removeMarker:suggestion:formatBlock','head','formatBlock:discard','clear','track-changes-suggestion-not-found','getWalker','change:data','markBlockFormat','track-changes-adapter-already-set','getDifference','updateSuggestion','isNextTo','formatInline','never','hasCommentThread','isUndo','data-suggestion','createdAt','always','editing','_setSuggestionData','getAllAdjacentSuggestions','formatInline:','isAtEnd','_trackFormatChanges','getLastMatchingPosition','removeAttribute','track-changes-adapter-missing-getsuggestion','size','addHighlight','TrackChangesEditing','root','insertion','isIntersectingWithRange','formatInline:chain','formatInline:discard','rethrowUnexpectedError','after','getSuggestionCallback','push','_commentsRepository','_descriptionFactory','registerCustomCallback','dataDowncast','oldRange','createSelection','insertion:','bindElementToMarker','containsRangeInObject','join','getItems','deletion:accept','isBefore','deletion:discard','isInContent','isRemovable','return','elementToElement','suggestionUnloaded','set','getMarkers','skipNestingCheck','chain','item','normal','trackChanges.mergeNestedSuggestions','getCustomProperty','PENDING_ACTION_SUGGESTION','deletion','$graveyard','markerToData','isBlock','_getExternalAuthor','_createSuggestion','_addThreadToSuggestion','addSuggestion','acceptSelectedSuggestions','reconvertMarker','suggestion','isSelectable','stop','value','commands','range','isAtStart','_getSuggestionData','ck-suggestion-marker--active','formatInline:accept','trackChangesCommand','_setSuggestionRange','refresh','author','conversion','_registerDefaultCallbacks','enableCommand','markerReady','_rangeIsInLocalUserInsertion','markDeletion','addMarker:suggestion','differ','elementStart','_cutOutSuggestionMarker','_refreshSuggestionsChain','forward','lowest','insertion:chain','Users','rootName','markInsertion','document','start','subType','from','high','formatBlock'];(function(_0x357a0b,_0x30feb6){const _0xc64532=function(_0x4e78cb){while(--_0x4e78cb){_0x357a0b['push'](_0x357a0b['shift']());}};_0xc64532(++_0x30feb6);}(_0x30fe,0x144));const _0xc645=function(_0x357a0b,_0x30feb6){_0x357a0b=_0x357a0b-0x0;let _0xc64532=_0x30fe[_0x357a0b];return _0xc64532;};import{Plugin as _0xc99c7b,PendingActions as _0x50847a}from'ckeditor5/src/core';import{LiveRange as _0x2f0652}from'ckeditor5/src/engine';import{CKEditorError as _0x2aeeee,uid as _0x1fd70c,priorities as _0x1d64d8,logWarning as _0x29c143}from'ckeditor5/src/utils';import{toWidget as _0x47fab0}from'ckeditor5/src/widget';import{Users as _0x4f597a,hashObject as _0x196e19}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e122b from'./commands/trackchangescommand';import _0x2e5037 from'./commands/acceptsuggestioncommand';import _0x376053 from'./commands/discardsuggestioncommand';import _0x3ca962 from'./commands/executeonallsuggestionscommand';import _0x2d98d8 from'./commands/executeonselectedsuggestionscommand';import _0x47c5e9 from'./suggestion';import _0x158e6a from'./suggestiondescriptionfactory';import _0xf317bc from'./integrations/alignment';import _0x52ba81 from'./integrations/basicstyles';import _0x942884 from'./integrations/blockquote';import _0x460b27 from'./integrations/ckbox';import _0x33ea1d from'./integrations/codeblock';import _0x2d17aa from'./integrations/comments';import _0x3000e4 from'./integrations/deletecommand';import _0x403908 from'./integrations/documentlist';import _0xa82724 from'./integrations/entercommand';import _0x3ff9b5 from'./integrations/findandreplace';import _0x415615 from'./integrations/font';import _0x3eca19 from'./integrations/formatpainter';import _0x11266e from'./integrations/heading';import _0xa69b7 from'./integrations/highlight';import _0x21424d from'./integrations/horizontalline';import _0x508f69 from'./integrations/htmlembed';import _0x4b4378 from'./integrations/image';import _0x1858fc from'./integrations/imagereplace';import _0x3f1977 from'./integrations/importword';import _0x555d99 from'./integrations/indent';import _0x8ffcdd from'./integrations/inputcommand';import _0x2de4d1 from'./integrations/link';import _0x36d841 from'./integrations/list';import _0x288a01 from'./integrations/listproperties';import _0x12a106 from'./integrations/mediaembed';import _0x478e3d from'./integrations/mention';import _0x323729 from'./integrations/pagebreak';import _0x231e48 from'./integrations/paragraph';import _0x225c8f from'./integrations/removeformat';import _0x5cec92 from'./integrations/restrictededitingmode';import _0x2bdf9b from'./integrations/shiftentercommand';import _0x3502ce from'./integrations/standardeditingmode';import _0x5cc86b from'./integrations/style';import _0x2c3015 from'./integrations/table';import _0x35dde7 from'./integrations/tablemergesplit';import _0x4c7135 from'./integrations/tableheadings';import _0x36bd0c from'./integrations/tableclipboard';import _0x58de52 from'./integrations/tablecolumnresize';import _0x5b4983 from'./integrations/template';import _0xc4402 from'./integrations/tableofcontents';import _0x454f75 from'./integrations/title';import _0x23f80f from'./integrations/undo';import{getTranslation as _0x2545c9}from'./utils/common-translations';import _0x49fea9 from'./integrations/tablecaption';import _0x98e47a from'./integrations/documentlistproperties';import _0x24c564 from'./integrations/tableproperties';export default class p extends _0xc99c7b{static get['requires'](){return[_0xc645('0x53'),_0x4f597a,_0x50847a,_0xf317bc,_0x52ba81,_0x942884,_0x460b27,_0x33ea1d,_0x2d17aa,_0x3000e4,_0x403908,_0x98e47a,_0xa82724,_0x3ff9b5,_0x415615,_0x3eca19,_0x11266e,_0xa69b7,_0x21424d,_0x508f69,_0x4b4378,_0x1858fc,_0x3f1977,_0x555d99,_0x8ffcdd,_0x2de4d1,_0x36d841,_0x288a01,_0x12a106,_0x478e3d,_0x323729,_0x231e48,_0x225c8f,_0x5cec92,_0x2bdf9b,_0x3502ce,_0x5cc86b,_0x2c3015,_0x35dde7,_0x4c7135,_0x49fea9,_0x36bd0c,_0x58de52,_0xc4402,_0x24c564,_0x5b4983,_0x454f75,_0x23f80f];}static get['pluginName'](){return _0xc645('0xf5');}constructor(_0x4b6de4){function _0x618ddc(_0x17d77b){return _0x17d77b[_0xc645('0xbc')](_0x25c712=>String[_0xc645('0xc9')](_0x25c712))[_0xc645('0x108')]('');}super(_0x4b6de4),this[_0xc645('0x112')](_0xc645('0x50'),[]),this['on'](_0xc645('0x4b'),(_0x4e0a23,_0x2955d,_0x3cf64f,_0x1d251b)=>{this['_model']['change'](()=>{for(const _0x3ad534 of[..._0x1d251b,..._0x3cf64f])this['_model'][_0xc645('0xa')][_0xc645('0x28')](_0x3ad534)&&_0x4b6de4[_0xc645('0xea')][_0xc645('0x124')](_0x3ad534);});}),this[_0xc645('0x100')]=new _0x158e6a(this['editor'][_0xc645('0x7a')][_0xc645('0x1f')],this[_0xc645('0xb')][_0xc645('0x45')]),this[_0xc645('0xf')]=null,this[_0xc645('0x5a')]=new Dt(this['editor']),this[_0xc645('0xba')]=new Map(),this['_commentsRepository']=_0x4b6de4[_0xc645('0xd0')]['get'](_0xc645('0x53')),this[_0xc645('0xa4')]=new Set(),this['_model']=this[_0xc645('0xb')][_0xc645('0x7a')],this[_0xc645('0x52')]=new WeakMap(),this[_0xc645('0xd3')]=!0x1,_0x4b6de4[_0xc645('0x83')][_0xc645('0x34')](_0xc645('0x66'),'default'),this[_0xc645('0xef')]=_0x4b6de4[_0xc645('0x83')][_0xc645('0x22')]('trackChanges.trackFormatChanges'),_0x4b6de4[_0xc645('0x83')][_0xc645('0x34')](_0xc645('0x118'),!0x0),this[_0xc645('0xae')]=_0x4b6de4[_0xc645('0x83')]['get'](_0xc645('0x118')),this[_0xc645('0x12f')]=new _0x2e122b(_0x4b6de4,this['_enabledCommands']),this[_0x618ddc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x618ddc([0x34,0x30,0x34,0x36,0x31,0x34,0x34,0x38]);}[_0xc645('0xb0')](){const _0x1c91bb=this[_0xc645('0xb')];_0x1c91bb[_0xc645('0x133')]['for']('editingDowncast')['markerToHighlight']({'model':_0xc645('0x125'),'view':_0x55436f=>{const {id:_0xff662a,type:_0x48aac8}=this[_0xc645('0x13')](_0x55436f[_0xc645('0x11')]),_0x1800bb=[_0xc645('0xbd'),_0xc645('0x20')+_0x48aac8];let _0x263acf=0xbb8;return this['activeMarkers'][_0xc645('0x4c')](_0x55436f[_0xc645('0x11')])&&(_0x1800bb[_0xc645('0xfe')](_0xc645('0x12d')),_0x263acf=0xbc2),_0xc645('0x11b')==_0x48aac8&&(_0x263acf+=0x5),{'classes':_0x1800bb,'attributes':{'data-suggestion':_0xff662a},'priority':_0x263acf};}}),_0x1c91bb['conversion'][_0xc645('0x6c')](_0xc645('0x102'))[_0xc645('0x98')](_0x39b367=>{_0x39b367['on'](_0xc645('0x139'),(_0xfde89b,_0xb291ee,_0x28b9be)=>{if(!_0x28b9be[_0xc645('0x8f')]['showSuggestionHighlights'])return;const _0x3f462d=_0xb291ee[_0xc645('0x116')];if(!_0x3f462d)return;const _0x2d7688=_0x28b9be[_0xc645('0x3c')]['toViewElement'](_0x3f462d);_0x1c91bb[_0xc645('0x7a')]['schema']['isObject'](_0x3f462d)&&_0x2d7688&&!_0x2d7688['getCustomProperty'](_0xc645('0xb1'))&&_0x2d7688['is']('containerElement')&&_0x47fab0(_0x2d7688,_0x28b9be[_0xc645('0x9e')]);},{'priority':_0xc645('0x1')});}),_0x1c91bb['conversion'][_0xc645('0x6c')]('dataDowncast')[_0xc645('0x8')]({'model':'suggestion','view':(_0x54f025,_0x4c8100)=>{if(!_0x4c8100[_0xc645('0x8f')]['showSuggestionHighlights'])return null;const {type:_0x3298d8}=this['_splitMarkerName'](_0x54f025[_0xc645('0x11')]);return{'classes':[_0xc645('0xbd'),_0xc645('0x20')+_0x3298d8],'priority':0xbb8};}});const _0x353599=({showActiveMarkers:_0x2baffc=!0x0}={})=>(_0x7f705b,_0x3e6572,_0x2d9d00)=>{if(!_0x3e6572['item'])return;if(_0x3e6572['item']['is'](_0xc645('0x6d')))return void _0x2d9d00[_0xc645('0xcd')][_0xc645('0xb5')](_0x3e6572[_0xc645('0x116')],_0x7f705b[_0xc645('0x89')]);const _0x38310=_0x2d9d00['mapper'][_0xc645('0x47')](_0x3e6572[_0xc645('0x116')]);if(!(_0x3e6572[_0xc645('0x116')]['is'](_0xc645('0x49'))&&_0x1c91bb['model'][_0xc645('0x1f')][_0xc645('0x11e')](_0x3e6572[_0xc645('0x116')])&&!_0x38310[_0xc645('0x119')]('addHighlight')))return;const {id:_0x8d3f54}=this[_0xc645('0x13')](_0x3e6572[_0xc645('0x11')]);_0x2d9d00[_0xc645('0x9e')][_0xc645('0x55')]([_0xc645('0xbd'),_0xc645('0x7')],_0x38310),_0x2d9d00[_0xc645('0x9e')][_0xc645('0xa8')](_0xc645('0xe7'),_0x8d3f54,_0x38310),_0x2d9d00['mapper'][_0xc645('0x106')](_0x38310,_0x3e6572[_0xc645('0x11')]),_0x2baffc&&(this[_0xc645('0x50')][_0xc645('0x4c')](_0x3e6572[_0xc645('0x11')])?_0x2d9d00[_0xc645('0x9e')][_0xc645('0x55')]('ck-suggestion-marker--active',_0x38310):_0x2d9d00[_0xc645('0x9e')][_0xc645('0x9c')](_0xc645('0x12d'),_0x38310));for(const _0x16b78 of _0x1c91bb[_0xc645('0x7a')][_0xc645('0x92')](_0x3e6572[_0xc645('0x116')])[_0xc645('0x109')]())_0x2d9d00[_0xc645('0xcd')][_0xc645('0xb5')](_0x16b78,_0x7f705b['name']);_0x2d9d00[_0xc645('0xcd')]['consume'](_0x3e6572[_0xc645('0x116')],_0x7f705b['name']);};_0x1c91bb[_0xc645('0x133')][_0xc645('0x6c')]('dataDowncast')[_0xc645('0x98')](_0x582b02=>{_0x582b02['on'](_0xc645('0x85'),(_0x4e8718,_0x11b400,_0x31db22)=>{_0x31db22['options'][_0xc645('0x72')]&&_0x353599({'showActiveMarkers':!0x1})(_0x4e8718,_0x11b400,_0x31db22);},{'priority':'highest'});}),_0x1c91bb['conversion'][_0xc645('0x6c')](_0xc645('0x102'))[_0xc645('0x11d')]({'model':_0xc645('0x125'),'view':(_0x14c533,_0x5d250a)=>_0x5d250a['options'][_0xc645('0x72')]?null:{'group':_0xc645('0x125'),'name':_0x14c533[_0xc645('0x4d')](0xb)}}),_0x1c91bb[_0xc645('0x133')]['for']('upcast')[_0xc645('0x110')]({'view':{'name':_0xc645('0x125'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4297ef,{writer:_0x541fa9})=>{let _0x418264=_0xc645('0xc2')+_0x4297ef[_0xc645('0x6')](_0xc645('0xd2'))+':'+_0x4297ef[_0xc645('0x6')]('id');return _0x4297ef[_0xc645('0x6')](_0xc645('0x63'))&&(_0x418264+=':'+_0x4297ef['getAttribute']('marker-count')),_0x541fa9['createElement'](_0xc645('0xc1'),{'data-name':_0x418264});}}),_0x1c91bb[_0xc645('0x133')][_0xc645('0x6c')](_0xc645('0x59'))[_0xc645('0xcc')]({'view':'suggestion'}),_0x1c91bb['conversion'][_0xc645('0x6c')]('editingDowncast')['add'](_0x32f068=>{_0x32f068['on'](_0xc645('0x85'),_0x353599(),{'priority':_0xc645('0x1')});}),_0x1c91bb[_0xc645('0x133')]['for'](_0xc645('0xb6'))[_0xc645('0x98')](_0x41ecff=>{_0x41ecff['on'](_0xc645('0xd7'),(_0xdfaf4c,_0x398868,_0x2c8427)=>{const _0x3bfe1b=_0x2c8427[_0xc645('0x3c')]['markerNameToElements'](_0x398868[_0xc645('0x11')]);if(_0x3bfe1b)for(const _0x4a5ef4 of _0x3bfe1b)_0x4a5ef4[_0xc645('0x119')](_0xc645('0xf4'))||(_0x2c8427['writer'][_0xc645('0x9c')]([_0xc645('0xbd'),_0xc645('0x7'),_0xc645('0x12d')],_0x4a5ef4),_0x2c8427[_0xc645('0x9e')][_0xc645('0xf1')](_0xc645('0xe7'),_0x4a5ef4),_0x2c8427[_0xc645('0x3c')][_0xc645('0x4f')](_0x4a5ef4,_0x398868[_0xc645('0x11')]));},{'priority':_0xc645('0x1')});}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')][_0xc645('0xb2')](_0xf85426=>{let _0x32a023=!0x1;const _0xe05f07=Array[_0xc645('0x0')](_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')]['differ'][_0xc645('0x3')]()),_0x444bdf=new Set();for(const {name:_0xb51c32,data:_0x54ec8c}of _0xe05f07){const {group:_0x2e6684,type:_0x314c75,id:_0x2dd033}=this[_0xc645('0x13')](_0xb51c32);if(_0xc645('0x125')!==_0x2e6684)continue;const _0x10dad5=this['_suggestions'][_0xc645('0x22')](_0x2dd033);if(null!=_0x54ec8c[_0xc645('0x39')]){_0xc645('0xe3')==_0x314c75&&(_0x32a023=_0x32a023||Mt(_0x54ec8c[_0xc645('0x39')],_0xb51c32,_0xf85426,_0x1c91bb[_0xc645('0x7a')][_0xc645('0x1f')]));if(_0x54ec8c[_0xc645('0x39')][_0xc645('0xa2')]||_0xc645('0x11c')==_0x54ec8c[_0xc645('0x39')][_0xc645('0xf6')][_0xc645('0x142')]||_0xc645('0x2')==_0x314c75&&!Nt(_0x54ec8c[_0xc645('0x39')])||'deletion'==_0x314c75&&!(!_t(_0x245f1e=_0x54ec8c[_0xc645('0x39')])&&!function(_0x394fbf){return _0x394fbf[_0xc645('0x145')][_0xc645('0x77')]==_0x394fbf[_0xc645('0x70')]['nodeBefore']&&_0x394fbf['start'][_0xc645('0xee')];}(_0x245f1e)))_0xf85426['removeMarker'](_0xb51c32),_0x32a023=!0x0;else{if(!_0x10dad5||!_0x10dad5[_0xc645('0x10d')])continue;_0x444bdf['add'](_0x10dad5);}}}var _0x245f1e;return _0x444bdf[_0xc645('0xf3')]>0x0&&(_0x32a023=!!this[_0xc645('0x23')](_0x444bdf)||_0x32a023),_0x32a023;}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')][_0xc645('0xb2')](_0x2aa7e4=>{let _0x4087f2=!0x1;for(const _0x20d35c of _0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')]['differ'][_0xc645('0xa1')]()){if(_0xc645('0x7c')!=_0x20d35c['type'])continue;const _0x82866f=_0x20d35c[_0xc645('0x32')]['getShiftedBy'](_0x20d35c[_0xc645('0x30')]);if(_0x82866f['isAtEnd'])for(const _0x456633 of this['_suggestions'][_0xc645('0xd1')]()){if(_0x456633[_0xc645('0x44')]||!_0x456633[_0xc645('0x10d')])continue;if(_0xc645('0x2')!=_0x456633[_0xc645('0x86')])continue;const _0x3d9d51=_0x456633[_0xc645('0xca')]();if(_0x3d9d51[_0xc645('0x145')][_0xc645('0x77')]!=_0x3d9d51['end'][_0xc645('0x77')]&&_0x3d9d51['end'][_0xc645('0xa6')](_0x20d35c[_0xc645('0x32')])){const _0x1b25f3=_0x1c91bb['model']['createRange'](_0x3d9d51[_0xc645('0x145')],_0x82866f);_0x2aa7e4[_0xc645('0x51')](_0x456633[_0xc645('0x8c')](),{'range':_0x1b25f3}),_0x4087f2=!0x0;}}}return _0x4087f2;}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0xa')]['on']('update:suggestion',(_0x24221d,_0x5f079e,_0xf3ffa1)=>{if(null==_0xf3ffa1){const {id:_0x729b47}=this[_0xc645('0x13')](_0x5f079e['name']),_0x25934a=this[_0xc645('0xba')][_0xc645('0x22')](_0x729b47);_0x25934a&&_0x25934a[_0xc645('0x3d')](_0x5f079e[_0xc645('0x89')]);}}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')]['on'](_0xc645('0xdd'),()=>{const _0x7c1bd=Array['from'](_0x1c91bb['model'][_0xc645('0x144')][_0xc645('0x13a')][_0xc645('0x3')]())[_0xc645('0xbf')](_0x3fbd1c=>'suggestion'===this[_0xc645('0x13')](_0x3fbd1c[_0xc645('0x89')])[_0xc645('0x8a')]);if(0x0===_0x7c1bd[_0xc645('0x30')])return;_0x7c1bd[_0xc645('0x41')]((_0x3c1c69,_0x8ce2c3)=>{const _0x34ec5a=_0x3c1c69['data'][_0xc645('0x103')],_0x10932f=_0x8ce2c3[_0xc645('0xa9')][_0xc645('0x103')];return null===_0x34ec5a&&null===_0x10932f?0x0:null===_0x34ec5a&&null!==_0x10932f?-0x1:null!==_0x34ec5a&&null===_0x10932f?0x1:_0x34ec5a['start'][_0xc645('0x10b')](_0x10932f[_0xc645('0x145')])?-0x1:0x1;});const _0x1da981=new Set(),_0xf69cb4=new Set();for(const {name:_0x429ccf,data:_0x4e9769}of _0x7c1bd){const {id:_0x184f3a}=this[_0xc645('0x13')](_0x429ccf);if(null===_0x4e9769[_0xc645('0x103')]){const _0xc6a910=this[_0xc645('0x2b')](_0x429ccf);_0xf69cb4[_0xc645('0x98')](_0xc6a910);}else{const _0x239f9e=this[_0xc645('0xba')]['get'](_0x184f3a);null!==_0x4e9769[_0xc645('0x39')]||_0x239f9e[_0xc645('0x10d')]?(_0x1da981[_0xc645('0x98')](_0x239f9e[_0xc645('0xd8')]),_0xf69cb4['add'](_0x239f9e)):this['_removeSuggestion'](_0x239f9e);}}_0xf69cb4['size']>0x0&&this[_0xc645('0x13d')](_0xf69cb4);for(const _0x39fd70 of _0x1da981)this[_0xc645('0x67')](_0xc645('0x6b'),_0x39fd70);}),_0x1c91bb[_0xc645('0x7a')]['on'](_0xc645('0x91'),(_0x2b57d4,_0x53cb74)=>{const _0xd13501=_0x53cb74[0x0];if(!this['_suggestions'][_0xc645('0xf3')])return;if(!_0xd13501[_0xc645('0x90')])return;if(_0xd13501[_0xc645('0x9d')][_0xc645('0xe6')]||!_0xd13501[_0xc645('0x9d')]['isLocal'])return;let _0x545017,_0x1dfcfe;switch(_0xd13501[_0xc645('0x86')]){case'insert':_0x545017=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0x32')]),_0x1dfcfe=_0x545017[_0xc645('0xd5')](_0xd13501[_0xc645('0x43')]);break;case _0xc645('0x29'):_0x545017=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0xce')]),_0x1dfcfe=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0x7e')]);break;case _0xc645('0xb4'):_0x545017=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0xaf')]),_0x1dfcfe=_0x545017[_0xc645('0xd5')](_0xd13501[_0xc645('0x43')]);break;default:return;}const _0x3b9fde=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xad')](_0x545017,_0x1dfcfe);_0x1c91bb[_0xc645('0x7a')][_0xc645('0x8e')](()=>{for(const {suggestion:_0x1dc2de,meta:_0x391f97}of this['_findSuggestions'](_0x3b9fde)){if(_0x1dc2de[_0xc645('0x44')])continue;if('formatInline'==_0x1dc2de[_0xc645('0x86')])continue;const _0x2f63b8=_0x1dc2de['data']&&_0x1dc2de['data'][_0xc645('0xd')];('formatBlock'!=_0x1dc2de[_0xc645('0x86')]||_0xc645('0x29')==_0xd13501['type']&&!_0x2f63b8)&&(_0x391f97[_0xc645('0x107')]||'insertion'==_0x1dc2de[_0xc645('0x86')]&&_0x391f97[_0xc645('0x48')]||_0x1dc2de['getFirstRange']()[_0xc645('0x10')](_0x3b9fde)&&this['_breakSuggestionMarker'](_0x1dc2de,_0x545017,_0x1dfcfe));}});},{'priority':_0xc645('0x13f')}),_0x1c91bb['model']['on'](_0xc645('0x80'),(_0x496dc9,_0x5510af)=>{const _0x20149c=_0x5510af[0x0],_0x252514=_0x5510af[0x1];if(_0x252514&&_0x252514[_0xc645('0x9')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0xc645('0x12f')][_0xc645('0x128')])return;if(_0x20149c['isCollapsed'])return;const _0x277fc4=_0x1c91bb['model'][_0xc645('0x1f')],{start:_0x382e0b,end:_0x20ada6}=_0x20149c[_0xc645('0xca')](),_0x20c716=_0x382e0b[_0xc645('0x46')]&&_0x277fc4[_0xc645('0x1d')](_0x382e0b[_0xc645('0x46')])?null:_0x277fc4[_0xc645('0x81')](_0x382e0b,_0xc645('0x13e')),_0x37416a=_0x20ada6['nodeBefore']&&_0x277fc4['isLimit'](_0x20ada6[_0xc645('0x1e')])?null:_0x277fc4[_0xc645('0x81')](_0x20ada6,'backward'),_0x16aacd=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xad')](_0x20c716?_0x20c716['start']:_0x382e0b,_0x37416a?_0x37416a[_0xc645('0x70')]:_0x20ada6);_0x1c91bb[_0xc645('0x7a')]['change'](_0x369a7b=>{this[_0xc645('0x138')](_0x16aacd);const _0x270573=_0x1c91bb[_0xc645('0x7a')][_0xc645('0x1f')]['getNearestSelectionRange'](_0x16aacd[_0xc645('0x145')]);_0x20149c['is'](_0xc645('0xa7'))?_0x369a7b[_0xc645('0xb8')](_0x270573):_0x20149c[_0xc645('0x4a')](_0x270573);}),_0x496dc9[_0xc645('0x127')]();},{'priority':_0x1d64d8[_0xc645('0x117')]+0xa}),_0x1c91bb[_0xc645('0x7a')]['on'](_0xc645('0x93'),(_0x5f0cb3,_0xbc501)=>{const _0x1781b2=_0xbc501[_0xbc501[_0xc645('0x30')]-0x1];_0x1781b2&&_0x1781b2[_0xc645('0x9')]||this[_0xc645('0xd3')]||this[_0xc645('0x12f')][_0xc645('0x128')]&&(_0x1c91bb[_0xc645('0x7a')]['change'](()=>{let _0x36f7aa=_0x1c91bb['model'][_0xc645('0x93')](_0xbc501[0x0],_0xbc501[0x1],_0xbc501[0x2],{'forceDefaultExecution':!0x0});if(!_0x36f7aa)return;_0x5f0cb3[_0xc645('0x10f')]=_0x36f7aa[_0xc645('0xcb')]();const _0x33086c=_0x36f7aa[_0xc645('0x70')]['nodeBefore'],_0x1c6959=_0x1c91bb[_0xc645('0x7a')][_0xc645('0x1f')];_0x33086c&&_0x1c6959[_0xc645('0x11e')](_0x33086c)&&!_0x1c6959['isObject'](_0x33086c)&&(_0x36f7aa=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xad')](_0x36f7aa[_0xc645('0x145')],_0x1c91bb['model']['createPositionAt'](_0x33086c,'end'))),this[_0xc645('0x143')](_0x36f7aa);}),_0x5f0cb3[_0xc645('0x127')]());},{'priority':'high'}),this[_0xc645('0xb')][_0xc645('0x129')][_0xc645('0x98')](_0xc645('0x24'),this[_0xc645('0x12f')]),this[_0xc645('0x135')]('trackChanges');const _0x24a177=new _0x2e5037(_0x1c91bb,this[_0xc645('0xba')]);_0x1c91bb['commands'][_0xc645('0x98')](_0xc645('0x5c'),_0x24a177),this['enableCommand']('acceptSuggestion');const _0x31bbe5=new _0x376053(_0x1c91bb,this[_0xc645('0xba')]);_0x1c91bb[_0xc645('0x129')][_0xc645('0x98')](_0xc645('0x71'),_0x31bbe5),this['enableCommand'](_0xc645('0x71')),_0x1c91bb['commands']['add'](_0xc645('0x14'),new _0x3ca962(_0x1c91bb,_0x24a177,this['_suggestions'])),this['enableCommand'](_0xc645('0x14')),_0x1c91bb[_0xc645('0x129')][_0xc645('0x98')](_0xc645('0x95'),new _0x3ca962(_0x1c91bb,_0x31bbe5,this[_0xc645('0xba')])),this['enableCommand'](_0xc645('0x95')),_0x1c91bb[_0xc645('0x129')]['add'](_0xc645('0x123'),new _0x2d98d8(_0x1c91bb,_0x24a177,this[_0xc645('0xba')])),this['enableCommand'](_0xc645('0x123')),_0x1c91bb[_0xc645('0x129')][_0xc645('0x98')]('discardSelectedSuggestions',new _0x2d98d8(_0x1c91bb,_0x31bbe5,this[_0xc645('0xba')])),this[_0xc645('0x135')]('discardSelectedSuggestions');const _0x2b0a8a=_0x1c91bb[_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x53'));this['listenTo'](_0x2b0a8a,_0xc645('0x6a'),(_0x1d78a2,{threadId:_0x4c62fe})=>{const _0x2b4fe0=this['_suggestions'][_0xc645('0x22')](_0x4c62fe);_0x2b4fe0&&_0x2b4fe0[_0xc645('0x3b')]&&0x1===_0x2b4fe0[_0xc645('0x3b')][_0xc645('0x30')]&&this[_0xc645('0x21')](_0x4c62fe,{'hasComments':!0x0});},{'priority':'low'}),this[_0xc645('0xc4')](_0x2b0a8a,'removeComment',(_0x2070fd,{threadId:_0x2fb574})=>{const _0x2f7b0e=this[_0xc645('0xba')]['get'](_0x2fb574);_0x2f7b0e&&_0x2f7b0e[_0xc645('0x3b')]&&!_0x2f7b0e[_0xc645('0x3b')]['length']&&this['_updateSuggestionData'](_0x2fb574,{'hasComments':!0x1});},{'priority':_0xc645('0xbb')});}set[_0xc645('0xbe')](_0x59682d){if(this[_0xc645('0xf')])throw new _0x2aeeee(_0xc645('0xdf'),this);this[_0xc645('0xf')]=_0x59682d;}get[_0xc645('0xbe')](){return this[_0xc645('0xf')];}['getSuggestions']({skipNotAttached:_0x35c8a0=!0x1,toJSON:_0x18931b=!0x1}={}){const _0x322680=[];for(const _0x6d02fe of this[_0xc645('0xba')]['values']())_0x35c8a0&&!_0x6d02fe[_0xc645('0x10d')]||_0x322680[_0xc645('0xfe')](_0x6d02fe);return _0x18931b?_0x322680[_0xc645('0xbc')](_0x32b2cf=>_0x32b2cf['toJSON']()):_0x322680;}['getSuggestion'](_0xdea5ad){const _0x3e995b=this[_0xc645('0xba')][_0xc645('0x22')](_0xdea5ad);if(!_0x3e995b)throw new _0x2aeeee(_0xc645('0xdb'),this);return _0x3e995b;}[_0xc645('0x2e')](_0x3462f3){return this[_0xc645('0xba')][_0xc645('0x28')](_0x3462f3);}[_0xc645('0xab')](_0x1f4d49){const {authorId:_0x8ba155,id:_0x3bcd7c,attributes:_0x5e0193}=_0x1f4d49,[_0x594013,_0x15cb6f]=_0x1f4d49[_0xc645('0x86')][_0xc645('0x29')](':'),_0x29fd5e=this[_0xc645('0xba')][_0xc645('0x22')](_0x3bcd7c)||this[_0xc645('0x120')](_0x594013,_0x15cb6f,_0x3bcd7c,_0x8ba155,_0x5e0193);if(this[_0xc645('0x121')](_0x29fd5e),this[_0xc645('0x4e')](_0x29fd5e,_0x594013,_0x15cb6f||null,_0x8ba155),_0x29fd5e[_0xc645('0xe8')]=_0x1f4d49[_0xc645('0xe8')],_0x5e0193&&_0x5e0193[_0xc645('0x1b')]){const _0x3c96b8=_0x5e0193[_0xc645('0x1b')],_0x1a112a=this[_0xc645('0x11f')](_0x3c96b8[_0xc645('0x12')]);_0x29fd5e[_0xc645('0x18')]=_0x3c96b8['createdAt'],_0x29fd5e['author']=_0x1a112a,_0x29fd5e['isExternal']=!0x0;}else _0x29fd5e[_0xc645('0x18')]=_0x1f4d49[_0xc645('0xe8')];switch(_0x1f4d49['data']&&(_0x29fd5e['data']=_0x1f4d49['data']),_0x1f4d49[_0xc645('0x2d')]&&(_0x29fd5e[_0xc645('0x2d')]=_0x1f4d49[_0xc645('0x2d')]),this[_0xc645('0xf')]&&this[_0xc645('0xf')][_0xc645('0x122')]||(_0x29fd5e[_0xc645('0x99')]=!0x0),this[_0xc645('0x52')][_0xc645('0x22')](_0x29fd5e)){case _0xc645('0x2a'):this[_0xc645('0x52')][_0xc645('0x112')](_0x29fd5e,'dataReady');break;case _0xc645('0x136'):_0x29fd5e[_0xc645('0x10d')]?(this[_0xc645('0x52')]['set'](_0x29fd5e,_0xc645('0x6f')),this[_0xc645('0x67')](_0xc645('0x1a'),_0x29fd5e)):this[_0xc645('0x52')][_0xc645('0x112')](_0x29fd5e,'removed');}return _0x29fd5e;}[_0xc645('0x5c')](_0x5439a7){this[_0xc645('0x9')](()=>{this[_0xc645('0xb')][_0xc645('0x7a')]['change'](()=>{for(const _0x30131f of _0x5439a7[_0xc645('0xec')]())_0x30131f[_0xc645('0x5e')]();});});}[_0xc645('0x71')](_0x2d51cc){this[_0xc645('0x9')](()=>{this[_0xc645('0xb')]['model'][_0xc645('0x8e')](()=>{for(const _0x2783cb of _0x2d51cc[_0xc645('0xec')]())_0x2783cb[_0xc645('0xc3')]();});});}[_0xc645('0x135')](_0x40264a,_0x1fc61e){const _0x411a6=this[_0xc645('0xb')][_0xc645('0x129')]['get'](_0x40264a);if(!_0x411a6)throw new _0x2aeeee(_0xc645('0x9a'),this,{'commandName':_0x40264a});this[_0xc645('0xa4')][_0xc645('0x98')](_0x411a6),_0x1fc61e&&_0x411a6['on'](_0xc645('0x94'),(_0x1b2b40,_0x22e8ce)=>{this[_0xc645('0x12f')]['value']&&(this[_0xc645('0xd3')]||_0x22e8ce[_0xc645('0x30')]>0x0&&_0x22e8ce[_0x22e8ce[_0xc645('0x30')]-0x1]&&_0x22e8ce[_0x22e8ce[_0xc645('0x30')]-0x1][_0xc645('0x9')]||(_0x1fc61e((..._0x302fae)=>_0x411a6[_0xc645('0x94')](..._0x302fae,{'forceDefaultExecution':!0x0}),..._0x22e8ce),_0x1b2b40[_0xc645('0x127')]()));},{'priority':_0xc645('0x1')});}[_0xc645('0x9')](_0x2988a1){let _0x459771,_0x2db65e;const _0x2a0ff6=this[_0xc645('0xd3')];this[_0xc645('0xd3')]=!0x0;try{_0x459771=_0x2988a1();}catch(_0x24c41b){_0x2db65e=_0x24c41b;}return _0x2a0ff6||(this[_0xc645('0xd3')]=!0x1),_0x2db65e&&_0x2aeeee[_0xc645('0xfb')](_0x2db65e,this),_0x459771;}[_0xc645('0x143')](_0x8c773a,_0x2da4ee=null,_0x2c2dcc={}){if(_0x8c773a[_0xc645('0xa2')])return null;const _0x13bc47=this['editor']['plugins']['get'](_0xc645('0x141'))['me'];for(const {suggestion:_0x3c8207,meta:_0x26e407}of this[_0xc645('0x61')](_0x8c773a,_0xc645('0xf7')))if(_0x26e407['isOwn']){if(!_0x26e407[_0xc645('0xe2')]){if(!this[_0xc645('0xae')]&&_0x26e407[_0xc645('0x107')])continue;return _0x3c8207;}if(_0x2da4ee==_0x3c8207[_0xc645('0x146')]){const _0x4b4ef9=_0x3c8207[_0xc645('0xca')]();return _0x4b4ef9[_0xc645('0x145')][_0xc645('0xa6')](_0x8c773a[_0xc645('0x70')])?this[_0xc645('0x130')](_0x3c8207,this[_0xc645('0x87')][_0xc645('0xad')](_0x8c773a['start'],_0x4b4ef9[_0xc645('0x70')])):this[_0xc645('0x130')](_0x3c8207,this['_model'][_0xc645('0xad')](_0x4b4ef9['start'],_0x8c773a[_0xc645('0x70')])),_0x3c8207;}}const _0x14e16c=_0x1fd70c(),_0x15d257=_0x13bc47['id'],_0x1fbfa4=_0x2da4ee?'insertion:'+_0x2da4ee:_0xc645('0xf7'),_0x44ee41=this[_0xc645('0xeb')]({'id':_0x14e16c,'type':_0x1fbfa4,'createdAt':new Date(),'authorId':_0x15d257,'attributes':_0x2c2dcc});return this[_0xc645('0x5d')](_0x1fbfa4,_0x14e16c,_0x15d257,_0x8c773a),_0x44ee41;}[_0xc645('0x2c')](_0x1a7f0d,_0x10c239=_0xc645('0xc5'),_0x404478={}){const _0x533a2f=this[_0xc645('0xb')][_0xc645('0xd0')]['get'](_0xc645('0x141'))['me'],_0x1dcb75=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0xf7'),_0x10c239,_0xc645('0x108'));for(const _0x19b74c of this[_0xc645('0x96')]())if(_0x19b74c['author']['id']==_0x533a2f['id']&&_0xc645('0xf7')==_0x19b74c[_0xc645('0x86')]&&_0x19b74c[_0xc645('0x146')]==_0x10c239&&(_0x1dcb75(_0x19b74c[_0xc645('0xc8')](),_0x1a7f0d)||_0x1dcb75(_0x1a7f0d,_0x19b74c[_0xc645('0xc8')]()))){for(const _0x420b7a of _0x1a7f0d)_0x19b74c[_0xc645('0x7f')](_0x420b7a);return _0x19b74c;}if(this[_0xc645('0xae')])for(const _0x5d85aa of _0x1a7f0d)for(const {suggestion:_0x1f743a,meta:_0x5b36e5}of this[_0xc645('0x61')](_0x5d85aa,_0xc645('0xf7'))){if(!_0x5b36e5[_0xc645('0x48')])continue;let _0x50fd36=!0x0;for(const _0x567f02 of _0x1f743a[_0xc645('0xc8')]())for(const _0x455549 of _0x1a7f0d)if(!_0x567f02['containsRange'](_0x455549)){_0x50fd36=!0x1;break;}if(_0x50fd36)return _0x1f743a;}const _0x180cdb=_0x1fd70c(),_0xd8cf78=_0x533a2f['id'],_0x2d7111=_0xc645('0x105')+_0x10c239,_0x2327f9=this[_0xc645('0xeb')]({'id':_0x180cdb,'type':_0x2d7111,'createdAt':new Date(),'authorId':_0xd8cf78,'attributes':_0x404478});for(const _0x23160e of _0x1a7f0d)this[_0xc645('0x5d')](_0x2d7111,_0x180cdb,_0xd8cf78,_0x23160e,_0x47c5e9[_0xc645('0xaa')]());return _0x2327f9;}['markInlineFormat'](_0x5b8fe4,_0x17481a,_0x4790dd=null,_0x34c176={}){if(_0x4790dd=_0x4790dd||$t(_0x17481a),_0x5b8fe4[_0xc645('0xa2')])return null;if(_0xc645('0xe4')===this[_0xc645('0xef')]){const _0x2c9df1=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0xe3'),_0x4790dd,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x2c9df1([_0x5b8fe4],_0x17481a,_0x34c176)),null;}const _0x5cf4a3=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x141'))['me'],_0x5190f4=[];if(_0xc645('0xe9')!==this['_trackFormatChanges'])for(const {suggestion:_0x29ef6c,meta:_0x4637f1}of this[_0xc645('0x61')](_0x5b8fe4,_0xc645('0xf7')))_0x4637f1['isOwn']&&!_0x4637f1[_0xc645('0x56')]&&_0x5190f4[_0xc645('0xfe')](..._0x29ef6c[_0xc645('0xc8')]());const _0x42902e=function(_0x15cb92,_0x484fc3){const _0x4cadf3=[];for(const _0x47c67f of _0x484fc3){const _0x35da45=_0x15cb92[_0xc645('0x68')](_0x47c67f);_0x35da45&&_0x4cadf3[_0xc645('0xfe')](_0x35da45);}return _0x4cadf3;}(_0x5b8fe4,_0x5190f4),_0x59788e=function(_0x11773b,_0x1b1919){const _0x5d0f32=[_0x11773b];for(const _0x3ed642 of _0x1b1919){let _0x49381e=0x0;for(;_0x49381e<_0x5d0f32['length'];){const _0x737bdb=_0x5d0f32[_0x49381e][_0xc645('0xe0')](_0x3ed642);_0x5d0f32[_0xc645('0x73')](_0x49381e,0x1,..._0x737bdb),_0x49381e+=_0x737bdb[_0xc645('0x30')];}}return _0x5d0f32;}(_0x5b8fe4,_0x5190f4);_0x42902e[_0xc645('0x30')]&&this['_model'][_0xc645('0x8e')](()=>{for(const _0x4aa244 of _0x42902e){const _0x107d06=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0xe3'),_0x4790dd,_0xc645('0x5e'));this[_0xc645('0x9')](()=>_0x107d06([_0x4aa244],_0x17481a,_0x34c176));}});for(const _0x40ade9 of _0x59788e){let _0x1b1674=null,_0x177bf4=_0x40ade9[_0xc645('0x145')],_0x1ad2f6=_0x40ade9[_0xc645('0x70')];for(const {suggestion:_0x2eca02,meta:_0x372e95}of this[_0xc645('0x61')](_0x40ade9,_0xc645('0xe3'))){if(!_0x372e95['isOwn'])continue;if(_0x2eca02['subType']!=_0x4790dd)continue;const _0x1dc0d9=_0x2eca02[_0xc645('0xca')]();if(_0x1dc0d9[_0xc645('0x10')](_0x40ade9,!0x0))return null;_0x177bf4=_0x177bf4['isBefore'](_0x1dc0d9[_0xc645('0x145')])?_0x177bf4:_0x1dc0d9[_0xc645('0x145')],_0x1ad2f6=_0x1ad2f6[_0xc645('0x58')](_0x1dc0d9['end'])?_0x1ad2f6:_0x1dc0d9[_0xc645('0x70')],_0x1b1674?_0x1dc0d9[_0xc645('0x145')][_0xc645('0x10b')](_0x1b1674[_0xc645('0xca')]()[_0xc645('0x145')])?(_0x1b1674[_0xc645('0xc6')](),_0x1b1674=_0x2eca02):_0x2eca02[_0xc645('0xc6')]():_0x1b1674=_0x2eca02;}const _0x286158=this[_0xc645('0x87')][_0xc645('0xad')](_0x177bf4,_0x1ad2f6);if(_0x1b1674)this[_0xc645('0x130')](_0x1b1674,_0x286158);else{const _0x175b4f=_0x1fd70c(),_0x805af2=_0x5cf4a3['id'];this[_0xc645('0xeb')]({'id':_0x175b4f,'type':_0xc645('0xed')+_0x4790dd,'data':_0x17481a,'createdAt':new Date(),'authorId':_0x805af2,'attributes':_0x34c176}),this[_0xc645('0x5d')](_0xc645('0xed')+_0x4790dd,_0x175b4f,_0x805af2,_0x286158);}}return null;}[_0xc645('0xde')](_0x3dbd83,_0x4526f8,_0xaf67f0=[],_0x19ad34=null,_0x35177f={}){_0x4526f8['formatGroupId']||(_0x4526f8[_0xc645('0x8b')]=_0x4526f8[_0xc645('0x7d')]),_0x4526f8[_0xc645('0xd')]=_0x3dbd83['is'](_0xc645('0x12a')),_0x19ad34=_0x19ad34||$t(_0x4526f8);const _0x4e48c7=_0xaf67f0[_0xc645('0xbc')](_0x47d8c9=>Rt(_0x47d8c9,this[_0xc645('0x87')])),_0x21ebf3=_0x3dbd83['is']('range')?_0x3dbd83:Rt(_0x3dbd83,this[_0xc645('0x87')]);if(_0xc645('0xe4')===this[_0xc645('0xef')]){const _0x1fd6ac=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0x2'),_0x19ad34,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x1fd6ac([_0x21ebf3],_0x4526f8,_0x35177f)),null;}_0x4e48c7['push'](_0x21ebf3);let _0x3f6bd7=!0x0;for(const _0x5a8258 of _0x4e48c7)if(!this[_0xc645('0x137')](_0x5a8258)){_0x3f6bd7=!0x1;break;}if(_0x3f6bd7&&_0xc645('0xe9')!==this[_0xc645('0xef')]){const _0x3ddaa3=this['_suggestionFactory'][_0xc645('0xfd')](_0xc645('0x2'),_0x19ad34,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x3ddaa3([_0x21ebf3],_0x4526f8,_0x35177f)),null;}let _0x5a5443=null,_0x1ded8a=_0x21ebf3[_0xc645('0x145')],_0x3e7cdf=_0x21ebf3[_0xc645('0x70')];for(const {suggestion:_0x314fe0,meta:_0x3839f9}of this['_findSuggestions'](_0x21ebf3,_0xc645('0x2'))){if(!_0x3839f9['isOwn']||_0x3839f9[_0xc645('0xe2')]||_0x3839f9[_0xc645('0x107')]||_0x3839f9[_0xc645('0x56')])continue;if(_0x314fe0[_0xc645('0xa9')]['formatGroupId']!=_0x4526f8['formatGroupId'])continue;const _0x3033c1=_0x314fe0[_0xc645('0xca')]();if(_0x314fe0[_0xc645('0x146')]==_0x19ad34){if(_0x3033c1[_0xc645('0x10')](_0x21ebf3,!0x0))return null;_0x1ded8a=_0x1ded8a[_0xc645('0x10b')](_0x3033c1[_0xc645('0x145')])?_0x1ded8a:_0x3033c1['start'],_0x3e7cdf=_0x3e7cdf['isAfter'](_0x3033c1[_0xc645('0x70')])?_0x3e7cdf:_0x3033c1[_0xc645('0x70')],_0x5a5443?_0x3033c1[_0xc645('0x145')][_0xc645('0x10b')](_0x5a5443[_0xc645('0xca')]()[_0xc645('0x145')])?(_0x5a5443[_0xc645('0xc6')](),_0x5a5443=_0x314fe0):_0x314fe0['removeMarkers']():_0x5a5443=_0x314fe0;}else{const _0x3a9b26=_0x21ebf3['getIntersection'](_0x3033c1);this['_cutOutSuggestionMarker'](_0x314fe0,_0x3a9b26);}}const _0x54d8ac=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x141'))['me'],_0x20b3ca=_0x1fd70c(),_0x4c353f=_0x54d8ac['id'];if(_0x5a5443)return this[_0xc645('0x130')](_0x5a5443,this[_0xc645('0x87')][_0xc645('0xad')](_0x1ded8a,_0x3e7cdf)),_0x5a5443;{const _0x41b1e2=this['_setSuggestionData']({'id':_0x20b3ca,'type':_0xc645('0xa3')+_0x19ad34,'data':_0x4526f8,'createdAt':new Date(),'authorId':_0x4c353f,'attributes':_0x35177f});return this[_0xc645('0x5d')](_0xc645('0xa3')+_0x19ad34,_0x20b3ca,_0x4c353f,this['_model'][_0xc645('0xad')](_0x1ded8a,_0x3e7cdf)),_0x41b1e2;}}[_0xc645('0x37')](_0x314305,_0x37a3b2,_0x265d3a=[],_0x40a09f=null,_0x198fa2={}){_0x37a3b2[_0xc645('0x8b')]||(_0x37a3b2[_0xc645('0x8b')]=_0x37a3b2['commandName']);const _0x416453=_0x314305[0x0];_0x37a3b2[_0xc645('0xd')]=_0x416453['is'](_0xc645('0x12a')),_0x40a09f=_0x40a09f||$t(_0x37a3b2);const _0x36ad8e=_0x265d3a[_0xc645('0xbc')](_0x4a7a66=>Rt(_0x4a7a66,this[_0xc645('0x87')])),_0x4b3ab8=_0x416453['is']('range')?_0x314305:_0x314305[_0xc645('0xbc')](_0x31915c=>Rt(_0x31915c,this[_0xc645('0x87')]));if(_0xc645('0xe4')===this[_0xc645('0xef')]){const _0x2bed79=this[_0xc645('0x5a')][_0xc645('0xfd')]('formatBlock',_0x40a09f,'accept');return this[_0xc645('0x9')](()=>_0x2bed79(_0x4b3ab8,_0x37a3b2,_0x198fa2)),null;}_0x36ad8e[_0xc645('0xfe')](..._0x4b3ab8);let _0x5973be=!0x0;for(const _0xf8bc08 of _0x36ad8e)if(!this[_0xc645('0x137')](_0xf8bc08)){_0x5973be=!0x1;break;}if(_0x5973be&&_0xc645('0xe9')!==this[_0xc645('0xef')]){const _0xba38b1=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0x2'),_0x40a09f,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0xba38b1(_0x4b3ab8,_0x37a3b2,_0x198fa2)),null;}const _0x3e9241=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('Users')['me'];for(const _0x42dc28 of this[_0xc645('0x96')]()){if(_0x42dc28[_0xc645('0x132')]['id']!=_0x3e9241['id'])continue;if('formatBlock'!=_0x42dc28[_0xc645('0x86')]||_0x42dc28[_0xc645('0xa9')][_0xc645('0x8b')]!=_0x37a3b2['formatGroupId'])continue;const _0x19c055=_0x42dc28[_0xc645('0x146')]==_0x40a09f;for(let _0x194f8e=0x0;_0x194f8e<_0x4b3ab8[_0xc645('0x30')];_0x194f8e++){const _0x37217e=_0x4b3ab8[_0x194f8e];for(const _0x4c77d2 of _0x42dc28[_0xc645('0x113')]()){const _0x2e53eb=_0x4c77d2[_0xc645('0x88')]();if(_0x37217e[_0xc645('0xa6')](_0x2e53eb)){_0x19c055?(_0x4b3ab8[_0xc645('0x73')](_0x194f8e,0x1),_0x194f8e--):_0x42dc28[_0xc645('0xb7')](_0x4c77d2['name']);break;}}}}if(0x0==_0x4b3ab8['length'])return null;const _0x1eb32b=this[_0xc645('0x5a')]['getSuggestionCallback'](_0xc645('0x2'),_0x40a09f,'join');for(const _0x341cfa of this['getSuggestions']())if(_0x341cfa[_0xc645('0x132')]['id']==_0x3e9241['id']&&_0xc645('0x2')==_0x341cfa[_0xc645('0x86')]&&_0x341cfa[_0xc645('0xa9')][_0xc645('0x8b')]==_0x37a3b2[_0xc645('0x8b')]&&_0x341cfa[_0xc645('0x146')]==_0x40a09f&&(_0x1eb32b(_0x341cfa[_0xc645('0xc8')](),_0x4b3ab8)||_0x1eb32b(_0x4b3ab8,_0x341cfa[_0xc645('0xc8')]()))){for(const _0x55ea63 of _0x4b3ab8)_0x341cfa[_0xc645('0x7f')](_0x55ea63);return _0x341cfa;}const _0x2d3b9f=_0x1fd70c(),_0xa3daf1=_0x3e9241['id'],_0x4d1d05=_0xc645('0xa3')+_0x40a09f,_0x53b2ad=this[_0xc645('0xeb')]({'id':_0x2d3b9f,'type':_0x4d1d05,'data':_0x37a3b2,'createdAt':new Date(),'authorId':_0xa3daf1,'attributes':_0x198fa2});for(const _0x4aae9f of _0x4b3ab8)this[_0xc645('0x5d')](_0x4d1d05,_0x2d3b9f,_0xa3daf1,_0x4aae9f,_0x47c5e9[_0xc645('0xaa')]());return _0x53b2ad;}[_0xc645('0x138')](_0x3a87aa,_0x3c34ed=null,_0x22badb={}){if(_0x3a87aa[_0xc645('0xa2')])return null;const _0x28ca7b=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('Users')['me'],_0x1de743=new _0x2f0652(_0x3a87aa[_0xc645('0x145')],_0x3a87aa[_0xc645('0x70')]);for(const {suggestion:_0x2d06d3,meta:_0x39369e}of this[_0xc645('0x61')](_0x1de743,_0xc645('0xf7')))if(_0x39369e[_0xc645('0x48')]&&!_0x39369e[_0xc645('0xe2')]){if(_0x2d06d3[_0xc645('0x44')]){const _0x5157c5=_0x2d06d3[_0xc645('0xc8')]()['filter'](_0x2e6e84=>_0xc645('0x11c')!=_0x2e6e84[_0xc645('0xf6')][_0xc645('0x142')]);_0x5157c5[_0xc645('0x75')](_0x8f73c0=>_0x1de743[_0xc645('0x10')](_0x8f73c0,!0x0))&&_0x2d06d3['discard']();if(_0x5157c5[_0xc645('0x8d')](_0x6d3475=>_0x6d3475[_0xc645('0x10')](_0x1de743,!0x0))){const _0x5d366d=this['_suggestionFactory'][_0xc645('0xfd')](_0xc645('0x11b'),_0x3c34ed,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x5d366d([_0x1de743],null,_0x22badb)),null;}}else{const _0x23741e=_0x1de743['getIntersection'](_0x2d06d3['getFirstRange']());null!==_0x23741e&&_0x2d06d3[_0xc645('0x54')]([_0x23741e],null,_0x22badb);}}if(_0x1de743[_0xc645('0x76')](),_0x1de743[_0xc645('0xa2')]||_0xc645('0x11c')==_0x1de743[_0xc645('0xf6')][_0xc645('0x142')])return null;let _0x34df3b=null,_0x156afa=_0x1de743[_0xc645('0x145')],_0x59795d=_0x1de743[_0xc645('0x70')];for(const {suggestion:_0x20dc89,meta:_0x4ddce4}of this[_0xc645('0x61')](_0x1de743,_0xc645('0x11b')))if(_0x4ddce4[_0xc645('0x48')]){if(_0x20dc89[_0xc645('0x44')]&&this[_0xc645('0xae')]){let _0x1adb63=!0x0;for(const _0x2f48b1 of _0x20dc89['getRanges']()){if(_0x2f48b1[_0xc645('0x10')](_0x1de743,!0x0))return _0x20dc89;_0x1de743['containsRange'](_0x2f48b1)||(_0x1adb63=!0x1);}_0x1adb63&&_0x20dc89['discard']();}else{const _0x36565a=_0x20dc89[_0xc645('0xca')]();if(_0x36565a[_0xc645('0x10')](_0x1de743,!0x0)){if(!this[_0xc645('0xae')]&&_0x4ddce4[_0xc645('0x107')])continue;return _0x20dc89;}_0x156afa=_0x156afa[_0xc645('0x10b')](_0x36565a[_0xc645('0x145')])?_0x156afa:_0x36565a['start'],_0x59795d=_0x59795d[_0xc645('0x58')](_0x36565a[_0xc645('0x70')])?_0x59795d:_0x36565a[_0xc645('0x70')],_0x34df3b?_0x36565a[_0xc645('0x145')][_0xc645('0x10b')](_0x34df3b['getFirstRange']()['start'])?(_0x34df3b[_0xc645('0xc6')](),_0x34df3b=_0x20dc89):_0x20dc89[_0xc645('0xc6')]():_0x34df3b=_0x20dc89;}}if(_0x34df3b)return this[_0xc645('0x130')](_0x34df3b,this[_0xc645('0x87')][_0xc645('0xad')](_0x156afa,_0x59795d)),_0x34df3b;{const _0x2b5d87=_0x1fd70c(),_0x150ced=this['_model'][_0xc645('0xad')](_0x156afa,_0x59795d),_0xc2f3a2=_0x28ca7b['id'],_0x46b04a=_0x3c34ed?_0xc645('0x2f')+_0x3c34ed:'deletion',_0x171837=this[_0xc645('0xeb')]({'id':_0x2b5d87,'type':_0x46b04a,'createdAt':new Date(),'authorId':_0xc2f3a2,'attributes':_0x22badb});return this[_0xc645('0x5d')](_0x46b04a,_0x2b5d87,_0xc2f3a2,_0x150ced),_0x171837;}}[_0xc645('0xc')](_0x4d4a07,_0x326385=_0xc645('0xc5'),_0x2238e7={}){const _0x373d73=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('Users')['me'],_0x370302=_0x4d4a07['map'](_0x21e70f=>new _0x2f0652(_0x21e70f['start'],_0x21e70f[_0xc645('0x70')])),_0x26b8d=new Set();for(const _0x3d671d of _0x370302)for(const {suggestion:_0x2cf02b,meta:_0x5c3a3e}of this['_findSuggestions'](_0x3d671d,_0xc645('0xf7')))_0x5c3a3e[_0xc645('0x48')]&&!_0x5c3a3e[_0xc645('0xe2')]&&_0x26b8d['add'](_0x2cf02b);for(const _0x366d5c of _0x26b8d)if(_0x366d5c[_0xc645('0x44')]){const _0xdb410c=_0x366d5c[_0xc645('0xc8')]();(!_0x366d5c['attributes']||!_0x366d5c[_0xc645('0x2d')][_0xc645('0x114')])&&(_0xdb410c['every'](_0x345c9e=>_0x370302['some'](_0x368fb0=>_0x368fb0[_0xc645('0x10')](_0x345c9e,!0x0)))&&_0x366d5c['discard']());if(_0x370302[_0xc645('0x75')](_0x56c2e1=>_0xdb410c['some'](_0x3d77ca=>_0x3d77ca['containsRange'](_0x56c2e1,!0x0)))){const _0x13bd93=this['_suggestionFactory']['getSuggestionCallback'](_0xc645('0x11b'),_0x326385,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x13bd93(_0x4d4a07,null,_0x2238e7)),null;}}else{const _0x15f11a=_0x366d5c[_0xc645('0xca')]();_0x370302['some'](_0x49fe6a=>_0x49fe6a[_0xc645('0x10')](_0x15f11a,!0x0))&&_0x366d5c[_0xc645('0xc3')]();if(_0x370302[_0xc645('0x75')](_0x2a40c9=>_0x15f11a[_0xc645('0x10')](_0x2a40c9,!0x0))){const _0x51536d=this[_0xc645('0x5a')][_0xc645('0xfd')]('deletion',_0x326385,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x51536d(_0x370302,null,_0x2238e7)),null;}}const _0x5319da=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0x11b'),_0x326385,_0xc645('0x108'));let _0x5b9853=null;for(const _0xb0232d of this['getSuggestions']())if(_0xb0232d[_0xc645('0x132')]['id']==_0x373d73['id']&&_0xb0232d[_0xc645('0x10d')]&&_0xc645('0x11b')==_0xb0232d['type']&&_0xb0232d[_0xc645('0x146')]==_0x326385&&(_0x5319da(_0xb0232d[_0xc645('0xc8')](),_0x370302)||_0x5319da(_0x370302,_0xb0232d[_0xc645('0xc8')]()))){if(_0x5b9853){if(_0xb0232d['commentThread']&&_0xb0232d[_0xc645('0x3b')][_0xc645('0x30')])continue;for(const _0x381f5e of _0xb0232d[_0xc645('0xc8')]())_0x5b9853[_0xc645('0xf8')](_0x381f5e)||_0x5b9853[_0xc645('0x7f')](_0x381f5e);_0xb0232d['removeMarkers']();}else{_0x5b9853=_0xb0232d;for(const _0x3e2087 of _0x370302)_0xb0232d['isIntersectingWithRange'](_0x3e2087)||_0xb0232d['addRange'](_0x3e2087);}}if(_0x5b9853)return _0x5b9853;_0x26b8d[_0xc645('0xda')]();for(const _0x383b0c of _0x370302)for(const {suggestion:_0x59f268,meta:_0x3bbeef}of this[_0xc645('0x61')](_0x383b0c,_0xc645('0x11b')))_0x3bbeef[_0xc645('0x48')]&&_0x26b8d[_0xc645('0x98')](_0x59f268);for(const _0x1c834b of _0x26b8d){const _0x2993fa=_0x1c834b[_0xc645('0xc8')]();if(!_0x2238e7||!_0x2238e7[_0xc645('0x114')]){if(_0x370302[_0xc645('0x75')](_0x1a10ec=>_0x2993fa['some'](_0x282efd=>_0x282efd[_0xc645('0x10')](_0x1a10ec,!0x0))))return _0x1c834b;}(!_0x1c834b[_0xc645('0x2d')]||!_0x1c834b[_0xc645('0x2d')][_0xc645('0x114')])&&(_0x2993fa[_0xc645('0x75')](_0x5be21a=>_0x370302[_0xc645('0x8d')](_0x10fd08=>_0x10fd08['containsRange'](_0x5be21a,!0x0)))&&_0x1c834b[_0xc645('0xc3')]());}const _0xe591da=_0x1fd70c(),_0x11ef36=_0x373d73['id'],_0x597d2c=_0xc645('0x2f')+_0x326385,_0x47d566=this['_setSuggestionData']({'id':_0xe591da,'type':_0x597d2c,'createdAt':new Date(),'authorId':_0x11ef36,'attributes':_0x2238e7});for(const _0x1c4de6 of _0x370302)_0x1c4de6['detach'](),_0x1c4de6['isCollapsed']||_0xc645('0x11c')==_0x1c4de6['root'][_0xc645('0x142')]||this['_addSuggestionMarker'](_0x597d2c,_0xe591da,_0x11ef36,_0x1c4de6,_0x47c5e9['getMultiRangeId']());return _0x47d566;}[_0xc645('0x130')](_0x4df38a,_0x83b033){const _0x1f2da2=_0x4df38a['getFirstMarker']();this[_0xc645('0x87')][_0xc645('0x8e')](_0x3221c1=>{_0x3221c1['updateMarker'](_0x1f2da2,{'range':_0x83b033});});}[_0xc645('0x121')](_0xedf409){const _0x2da0db=_0xedf409['id'],_0x180517=this['editor'][_0xc645('0x83')][_0xc645('0x22')](_0xc645('0x33'));this[_0xc645('0xff')][_0xc645('0xe5')](_0x2da0db)||this[_0xc645('0xff')][_0xc645('0x15')]({'channelId':_0x180517,'threadId':_0x2da0db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f2d5d=this[_0xc645('0xff')][_0xc645('0xc0')](_0x2da0db);_0x1f2d5d[_0xc645('0x25')](_0xc645('0x10e')),_0x1f2d5d[_0xc645('0x10e')]=!0x1,_0xedf409[_0xc645('0x3b')]=_0x1f2d5d;}['_checkSuggestionCorrectness'](_0x2cafba,_0x49d6c7,_0x368d58,_0x23a9e5){if(_0x2cafba[_0xc645('0x86')]!=_0x49d6c7||_0x2cafba[_0xc645('0x146')]!=_0x368d58||_0x2cafba['creator']['id']!=_0x23a9e5)throw this[_0xc645('0xb')][_0xc645('0xac')](_0xc645('0x36')),new _0x2aeeee('track-changes-suggestion-data-mismatch',this);}[_0xc645('0x13c')](_0x2e6939,_0x540bdf){const _0x40563d=_0x2e6939['getFirstRange']();if(_0x540bdf[_0xc645('0xa6')](_0x40563d))_0x2e6939[_0xc645('0xc6')]();else{if(_0x40563d[_0xc645('0x10')](_0x540bdf)){const _0x24ba71=this[_0xc645('0x87')][_0xc645('0xe')](_0x540bdf[_0xc645('0x145')][_0xc645('0x1e')],_0xc645('0x70'));this['_setSuggestionRange'](_0x2e6939,this[_0xc645('0x87')][_0xc645('0xad')](_0x40563d['start'],_0x24ba71));const _0x3a2b3a=_0x1fd70c(),_0x395ad5=_0x2e6939[_0xc645('0x5b')]['id'],_0x4f92e6=_0x2e6939[_0xc645('0x86')]+':'+_0x2e6939[_0xc645('0x146')];this['_setSuggestionData']({'id':_0x3a2b3a,'type':_0x4f92e6,'createdAt':new Date(),'authorId':_0x395ad5,'data':_0x2e6939['data'],'attributes':_0x2e6939[_0xc645('0x2d')]});const _0x13158a=this[_0xc645('0x87')][_0xc645('0xe')](_0x540bdf['end'][_0xc645('0x77')],_0xc645('0xfc')),_0x26fe4b=this[_0xc645('0x87')][_0xc645('0xad')](_0x13158a,_0x40563d['end']);this['_addSuggestionMarker'](_0x4f92e6,_0x3a2b3a,_0x395ad5,_0x26fe4b);}else{if(_0x40563d[_0xc645('0x64')](_0x540bdf[_0xc645('0x145')])){const _0x4fd927=this[_0xc645('0x87')]['createPositionAt'](_0x540bdf[_0xc645('0x145')][_0xc645('0x1e')],_0xc645('0x70'));this[_0xc645('0x130')](_0x2e6939,this['_model']['createRange'](_0x40563d[_0xc645('0x145')],_0x4fd927));}else{const _0x14a99b=this[_0xc645('0x87')][_0xc645('0xe')](_0x540bdf['end'][_0xc645('0x77')],_0xc645('0xfc'));this[_0xc645('0x130')](_0x2e6939,this[_0xc645('0x87')][_0xc645('0xad')](_0x14a99b,_0x40563d[_0xc645('0x70')]));}}}}[_0xc645('0x137')](_0x2dcee4){for(const {suggestion:_0x400fb3,meta:_0x2b673b}of this[_0xc645('0x61')](_0x2dcee4,_0xc645('0xf7'))){if(!_0x2b673b[_0xc645('0x48')])continue;const _0x37df43=_0x400fb3['getRanges']();for(const _0xd9ffa2 of _0x37df43)if(!_0x2dcee4['getDifference'](_0xd9ffa2)[_0xc645('0x30')])return!0x0;}return!0x1;}[_0xc645('0x57')](_0x52ab63){const _0x5515c3=this[_0xc645('0xb')]['plugins'][_0xc645('0x22')](_0xc645('0x141'))['getUser'](_0x52ab63);if(!_0x5515c3)throw new _0x2aeeee(_0xc645('0x69'),this);return _0x5515c3;}[_0xc645('0x11f')](_0x1a03ae){const _0x35224d=this['editor']['plugins']['get'](_0xc645('0x141')),_0x15d0af=_0x196e19('external:'+_0x1a03ae),_0x5ef361=_0x35224d[_0xc645('0x40')](_0x15d0af);return _0x5ef361||_0x35224d[_0xc645('0x16')]({'id':_0x15d0af,'name':_0x1a03ae});}[_0xc645('0x120')](_0x5417de,_0x3ef751,_0x16fe4a,_0x550442,_0x199ab){const _0x46eeb1=this[_0xc645('0x57')](_0x550442),_0x5673d8=this[_0xc645('0x5a')][_0xc645('0x62')](_0x5417de,_0x3ef751,_0x16fe4a,_0x46eeb1,_0x199ab,_0x237664=>this[_0xc645('0x21')](_0x16fe4a,{'attributes':_0x237664}));return this[_0xc645('0xc4')](_0x5673d8,_0xc645('0x5e'),()=>{this[_0xc645('0x21')](_0x16fe4a,{'state':_0xc645('0xa5')});},{'priority':_0xc645('0x1')}),this[_0xc645('0xc4')](_0x5673d8,_0xc645('0xc3'),()=>{this[_0xc645('0x21')](_0x16fe4a,{'state':_0xc645('0xd6')});},{'priority':_0xc645('0x1')}),this[_0xc645('0xba')][_0xc645('0x112')](_0x16fe4a,_0x5673d8),this[_0xc645('0x52')][_0xc645('0x112')](_0x5673d8,'notReady'),_0x5673d8;}[_0xc645('0x13')](_0x2757d2){const _0x3ca0f9=_0x2757d2[_0xc645('0x29')](':');return{'group':_0x3ca0f9[0x0],'type':_0x3ca0f9[0x1],'subType':_0x3ca0f9[_0xc645('0x30')]>=0x5?_0x3ca0f9[0x2]:null,'id':_0x3ca0f9[_0xc645('0x30')]<0x5?_0x3ca0f9[0x2]:_0x3ca0f9[0x3],'authorId':_0x3ca0f9[_0xc645('0x30')]<0x5?_0x3ca0f9[0x3]:_0x3ca0f9[0x4],'markerCount':0x6==_0x3ca0f9['length']?_0x3ca0f9[0x5]:null};}[_0xc645('0x19')](_0x1c476c,_0x454b57,_0x5df399){const _0xe83b24=_0x1c476c[_0xc645('0xca')](),_0x1f823e=_0xe83b24[_0xc645('0x145')],_0x349844=_0xe83b24[_0xc645('0x70')];this[_0xc645('0x130')](_0x1c476c,this[_0xc645('0x87')][_0xc645('0xad')](_0x1f823e,_0x454b57));const _0x4d2ea9=_0x1fd70c(),_0x59ae7b=_0x1c476c[_0xc645('0x5b')]['id'],_0x350381=_0x1c476c[_0xc645('0x86')]+(_0x1c476c['subType']?':'+_0x1c476c[_0xc645('0x146')]:'');this['_setSuggestionData']({'id':_0x4d2ea9,'type':_0x350381,'createdAt':new Date(),'authorId':_0x59ae7b,'originalSuggestionId':_0x1c476c['id'],'attributes':_0x1c476c[_0xc645('0x2d')],'data':_0x1c476c[_0xc645('0xa9')]}),_0xc645('0x2')==_0x1c476c[_0xc645('0x86')]&&(_0x5df399=this[_0xc645('0x87')][_0xc645('0xa0')](_0x5df399[_0xc645('0x77')])),this[_0xc645('0x5d')](_0x350381,_0x4d2ea9,_0x59ae7b,this[_0xc645('0x87')][_0xc645('0xad')](_0x5df399,_0x349844));}[_0xc645('0x61')](_0xccb5d3,_0x161dcd=null){const _0x28e065=[],_0x4e811a=this[_0xc645('0x87')]['schema'],_0xa7d054=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x141'))['me'];for(const _0x2cd698 of this[_0xc645('0x96')]())if(_0x2cd698['isInContent']&&(!_0x161dcd||_0x2cd698[_0xc645('0x86')]==_0x161dcd))for(const _0x372eed of _0x2cd698[_0xc645('0xc8')]()){const _0x369f68=_0xccb5d3[_0xc645('0x145')][_0xc645('0xa6')](_0x372eed['end'])||_0xccb5d3['end']['isEqual'](_0x372eed['start']);if(_0x369f68||_0xccb5d3[_0xc645('0x68')](_0x372eed)){const _0x3634df=_0xccb5d3[_0xc645('0x10')](_0x372eed)&&Bt(_0x4e811a,_0x372eed[_0xc645('0x145')],_0xccb5d3),_0x49307b=_0x372eed[_0xc645('0x10')](_0xccb5d3)&&Bt(_0x4e811a,_0xccb5d3[_0xc645('0x145')],_0x372eed);_0x28e065[_0xc645('0xfe')]({'suggestion':_0x2cd698,'meta':{'isOwn':_0xa7d054==_0x2cd698[_0xc645('0x132')],'isNextTo':_0x369f68,'isInsideObject':_0x3634df,'containsRangeInObject':_0x49307b}});break;}}return _0x28e065;}[_0xc645('0x5d')](_0x38a142,_0x26a732,_0x266ae4,_0x1d0a80,_0x1f8944){this[_0xc645('0x87')][_0xc645('0x8e')](_0x30f217=>{let _0x1891fe='suggestion:'+_0x38a142+':'+_0x26a732+':'+_0x266ae4;_0x1f8944&&(_0x1891fe=_0x1891fe+':'+_0x1f8944),_0x30f217['addMarker'](_0x1891fe,{'range':_0x1d0a80,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xc645('0x5f')](_0x27662a){const _0x1a65a7=_0x27662a[_0xc645('0xd4')],_0x194073=_0x27662a[_0xc645('0xcf')];_0x27662a[_0xc645('0xd4')]=null,null!=_0x1a65a7&&(_0x1a65a7['next']=null),_0x27662a[_0xc645('0xcf')]=null,null!=_0x194073&&(_0x194073[_0xc645('0xd4')]=null),_0xc645('0x6f')==this[_0xc645('0x52')][_0xc645('0x22')](_0x27662a)&&(this[_0xc645('0x52')][_0xc645('0x112')](_0x27662a,_0xc645('0x42')),this[_0xc645('0x67')](_0xc645('0x111'),_0x27662a,_0x1a65a7,_0x194073));}[_0xc645('0xeb')](_0x22dc2b){const _0x4cf979=_0x22dc2b['id'],_0x46a9dd=this[_0xc645('0xab')](_0x22dc2b);if(this[_0xc645('0xf')]&&this[_0xc645('0xf')][_0xc645('0x122')]){const _0x444da2=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('PendingActions'),_0x14579f=_0x46a9dd[_0xc645('0x17')],_0xaeeabe=_0x46a9dd[_0xc645('0x146')]?_0x46a9dd[_0xc645('0x86')]+':'+_0x46a9dd[_0xc645('0x146')]:_0x46a9dd[_0xc645('0x86')],_0x12aeeb=this['editor'][_0xc645('0x45')],_0x16830a=_0x444da2[_0xc645('0x98')](_0x2545c9(_0x12aeeb,_0xc645('0x11a'))),_0x2dcd86={'id':_0x4cf979,'type':_0xaeeabe,'hasComments':_0x14579f,'data':_0x22dc2b[_0xc645('0xa9')]||null,'originalSuggestionId':_0x22dc2b['originalSuggestionId']||null,'attributes':_0x46a9dd['attributes']};this[_0xc645('0xf')][_0xc645('0x122')](_0x2dcd86)[_0xc645('0x35')](_0x4aa06f=>{_0x46a9dd[_0xc645('0x99')]=!0x0,_0x444da2[_0xc645('0x38')](_0x16830a),_0x4aa06f&&_0x4aa06f[_0xc645('0xe8')]&&(this[_0xc645('0xba')]['get'](_0x4cf979)[_0xc645('0xe8')]=_0x4aa06f[_0xc645('0xe8')]);})[_0xc645('0x3a')](_0x192c4f=>{throw _0x29c143('error-saving-suggestion-data-suggestion-discarded'),this[_0xc645('0xb')][_0xc645('0x7a')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x46a9dd[_0xc645('0xc3')]();}),_0x46a9dd['stopListening'](),this[_0xc645('0xba')][_0xc645('0x9b')](_0x46a9dd['id']),this[_0xc645('0x52')][_0xc645('0x9b')](_0x46a9dd),_0x192c4f;});}return _0x46a9dd;}[_0xc645('0x21')](_0x46f3f4,_0x2cb5a0){const _0x4d63fb=this[_0xc645('0xb')]['plugins']['get']('PendingActions'),_0x1475bd=this[_0xc645('0x97')](_0x46f3f4);if(this[_0xc645('0xf')]&&this[_0xc645('0xf')]['updateSuggestion']){if(_0x1475bd[_0xc645('0x99')]){const _0x4810c7=_0x4d63fb[_0xc645('0x98')](_0x2545c9(this['editor'][_0xc645('0x45')],'PENDING_ACTION_SUGGESTION'));this[_0xc645('0xf')][_0xc645('0xe1')](_0x46f3f4,_0x2cb5a0)['then'](()=>{_0x4d63fb[_0xc645('0x38')](_0x4810c7);});}else _0x1475bd['on'](_0xc645('0x82'),()=>{this[_0xc645('0x21')](_0x46f3f4,_0x2cb5a0);});}}[_0xc645('0x12c')](_0x59cba9){if(!this[_0xc645('0xf')]||!this['_adapter']['getSuggestion'])throw new _0x2aeeee(_0xc645('0xf2'),this);return this[_0xc645('0xf')][_0xc645('0x97')](_0x59cba9);}[_0xc645('0x2b')](_0x14dbea){const {id:_0x3d61c5,type:_0x161fa2,subType:_0x3fdb7c,authorId:_0x3020a0}=this[_0xc645('0x13')](_0x14dbea),_0x253ead=this['_suggestions']['get'](_0x3d61c5)||this[_0xc645('0x120')](_0x161fa2,_0x3fdb7c,_0x3d61c5,_0x3020a0,{});switch(this['_checkSuggestionCorrectness'](_0x253ead,_0x161fa2,_0x3fdb7c,_0x3020a0),this[_0xc645('0x52')][_0xc645('0x22')](_0x253ead)){case _0xc645('0x2a'):this[_0xc645('0x12c')](_0x3d61c5)[_0xc645('0x35')](_0x4ba42d=>{let _0x1accfd=Promise['resolve']();_0x4ba42d[_0xc645('0x17')]&&(_0x1accfd=this[_0xc645('0xff')][_0xc645('0xb3')]({'channelId':this[_0xc645('0xb')][_0xc645('0x83')][_0xc645('0x22')](_0xc645('0x33')),'threadId':_0x3d61c5})),_0x1accfd[_0xc645('0x35')](()=>{this[_0xc645('0xab')](_0x4ba42d)[_0xc645('0x99')]=!0x0;});}),this[_0xc645('0x52')]['set'](_0x253ead,_0xc645('0x136'));break;case _0xc645('0x42'):this[_0xc645('0x21')](_0x3d61c5,{'state':_0xc645('0x31')});case'dataReady':this[_0xc645('0x52')][_0xc645('0x112')](_0x253ead,_0xc645('0x6f')),this[_0xc645('0x67')](_0xc645('0x1a'),_0x253ead);break;case _0xc645('0x6f'):this['fire'](_0xc645('0x6b'),_0x253ead);}return _0x253ead['addMarkerName'](_0x14dbea),_0x253ead;}[_0xc645('0x13d')](_0x1257e2){const _0x1aea3c=Array[_0xc645('0x0')](_0x1257e2)[_0xc645('0xbf')](_0x356b26=>!_0x356b26['isMultiRange']),_0x1bbb4c=this[_0xc645('0x96')]({'skipNotAttached':!0x0})['filter'](_0x3ac904=>!_0x3ac904[_0xc645('0x44')]),_0x51a83f=_0x1bbb4c[_0xc645('0xbf')](_0x368f51=>!_0x1257e2[_0xc645('0x28')](_0x368f51)),_0x5803ab=new Map(_0x1bbb4c[_0xc645('0xbc')](_0x51fcfb=>[_0x51fcfb,this[_0xc645('0x5a')]['getSuggestionCallback'](_0x51fcfb[_0xc645('0x86')],_0x51fcfb[_0xc645('0x146')],_0xc645('0x115'))])),_0x20b161=new Map(_0x1bbb4c['map'](_0x1173a6=>[_0x1173a6,_0x1173a6[_0xc645('0xca')]()])),_0x53f996=new Set(),_0x37ec92=new Set();for(let _0x13140c=0x0;_0x13140c<_0x1aea3c[_0xc645('0x30')];_0x13140c++)_0x1f03e9(_0x1aea3c[_0x13140c],_0x1aea3c,_0x13140c+0x1);for(let _0x267e88=0x0;_0x267e88<_0x1aea3c[_0xc645('0x30')];_0x267e88++)_0x1f03e9(_0x1aea3c[_0x267e88],_0x51a83f,0x0);for(let _0x1ec1c3=0x0;_0x1ec1c3<_0x1aea3c[_0xc645('0x30')];_0x1ec1c3++){const _0x9277a9=_0x1aea3c[_0x1ec1c3];!_0x37ec92[_0xc645('0x28')](_0x9277a9)&&_0x9277a9['previous']&&(_0x9277a9['previous']['next']===_0x9277a9&&(_0x9277a9['previous'][_0xc645('0xcf')]=null),_0x9277a9[_0xc645('0xd4')]=null),!_0x53f996[_0xc645('0x28')](_0x9277a9)&&_0x9277a9[_0xc645('0xcf')]&&(_0x9277a9['next'][_0xc645('0xd4')]===_0x9277a9&&(_0x9277a9[_0xc645('0xcf')][_0xc645('0xd4')]=null),_0x9277a9[_0xc645('0xcf')]=null);}function _0x1f03e9(_0x45c476,_0x182000,_0x372aff){for(let _0x5a5475=_0x372aff;_0x5a5475<_0x182000[_0xc645('0x30')];_0x5a5475++){const _0x3edfe0=_0x4aea5f(_0x45c476,_0x182000[_0x5a5475]);_0x3edfe0&&(_0x3edfe0[0x0][_0xc645('0xcf')]=_0x3edfe0[0x1],_0x3edfe0[0x1][_0xc645('0xd4')]=_0x3edfe0[0x0],_0x53f996[_0xc645('0x98')](_0x3edfe0[0x0]),_0x37ec92[_0xc645('0x98')](_0x3edfe0[0x1]));}}function _0x4aea5f(_0x690f55,_0x55aa90){if(_0x690f55[_0xc645('0x132')]['id']!==_0x55aa90[_0xc645('0x132')]['id'])return null;const _0x1dd004=_0x5803ab['get'](_0x690f55)(_0x690f55,_0x55aa90,_0x20b161[_0xc645('0x22')](_0x690f55),_0x20b161[_0xc645('0x22')](_0x55aa90));if(!_0x1dd004)return null;return _0x5803ab['get'](_0x55aa90)(_0x690f55,_0x55aa90,_0x20b161['get'](_0x690f55),_0x20b161[_0xc645('0x22')](_0x55aa90))?_0x1dd004[0x1]['commentThread']&&_0x1dd004[0x1][_0xc645('0x3b')][_0xc645('0x30')]?null:_0x1dd004:null;}}[_0xc645('0x23')](_0x46b1ea){const _0x3bbf8a=Array[_0xc645('0x0')](_0x46b1ea),_0x1818e6=this[_0xc645('0x96')]({'skipNotAttached':!0x0}),_0x55846b=_0x1818e6[_0xc645('0xbf')](_0xff3995=>!_0x46b1ea[_0xc645('0x28')](_0xff3995)),_0x240e4c=new Map(_0x3bbf8a['map'](_0x50af89=>[_0x50af89,this['_suggestionFactory']['getSuggestionCallback'](_0x50af89['type'],_0x50af89[_0xc645('0x146')],_0xc645('0x108'))])),_0x3cdf47=new Map(_0x1818e6[_0xc645('0xbc')](_0x1d9c5d=>[_0x1d9c5d,_0x1d9c5d[_0xc645('0xc8')]()]));for(let _0x343798=0x0;_0x343798<_0x3bbf8a[_0xc645('0x30')];_0x343798++){if(_0x25bafb(this,_0x3bbf8a[_0x343798],_0x3bbf8a,_0x343798+0x1))return!0x0;}for(let _0x43e575=0x0;_0x43e575<_0x3bbf8a[_0xc645('0x30')];_0x43e575++){if(_0x25bafb(this,_0x3bbf8a[_0x43e575],_0x55846b,0x0))return!0x0;}return!0x1;function _0x25bafb(_0x165566,_0x5ab9d4,_0x161e79,_0x3f3013){for(let _0x5e514d=_0x3f3013;_0x5e514d<_0x161e79[_0xc645('0x30')];_0x5e514d++){const _0x55a425=_0x161e79[_0x5e514d];if(_0x55a425[_0xc645('0x86')]!==_0x5ab9d4[_0xc645('0x86')]||_0x55a425[_0xc645('0x132')]['id']!==_0x5ab9d4[_0xc645('0x132')]['id']||_0x55a425[_0xc645('0x146')]!==_0x5ab9d4[_0xc645('0x146')])continue;const _0x5d47e2=_0x240e4c['get'](_0x5ab9d4),_0x58fd3b=_0x3cdf47['get'](_0x5ab9d4),_0x4df30b=_0x3cdf47[_0xc645('0x22')](_0x55a425),_0x47ea32=_0x5ab9d4[_0xc645('0x3b')]&&_0x5ab9d4[_0xc645('0x3b')]['length'],_0x5cf83e=_0x55a425[_0xc645('0x3b')]&&_0x55a425['commentThread'][_0xc645('0x30')];if(!_0x47ea32&&_0x5d47e2(_0x4df30b,_0x58fd3b))return _0x165566['_joinSuggestions'](_0x55a425,_0x5ab9d4),_0x3cdf47[_0xc645('0x9b')](_0x5ab9d4),!0x0;if(!_0x5cf83e&&_0x5d47e2(_0x58fd3b,_0x4df30b))return _0x165566[_0xc645('0xb9')](_0x5ab9d4,_0x55a425),_0x3cdf47['delete'](_0x55a425),!0x0;}return!0x1;}}[_0xc645('0xb9')](_0x39e9fa,_0x1a40ed){if(_0x39e9fa[_0xc645('0x44')])for(const _0x33ace5 of _0x1a40ed[_0xc645('0xc8')]())_0x39e9fa['addRange'](_0x33ace5);else{const _0xafc8f6=_0x1a40ed[_0xc645('0xca')]()[_0xc645('0x70')];this['_setSuggestionRange'](_0x39e9fa,this[_0xc645('0x87')]['createRange'](_0x39e9fa[_0xc645('0xca')]()[_0xc645('0x145')],_0xafc8f6));}_0x1a40ed['removeMarkers']();}}class Dt{constructor(_0x301e21){this[_0xc645('0x6e')]=_0x301e21,this[_0xc645('0x87')]=_0x301e21[_0xc645('0x7a')],this[_0xc645('0x78')]=new Map(),this[_0xc645('0x27')]=new Map(),this[_0xc645('0x134')]();}[_0xc645('0x62')](_0x437517,_0x230e68,_0x519977,_0x203e81,_0x3929c5,_0x4090b0){return new _0x47c5e9(this[_0xc645('0x87')],{'type':_0x437517,'subType':_0x230e68,'id':_0x519977,'author':_0x203e81,'creator':_0x203e81,'attributes':_0x3929c5,'onAttributesChange':_0x4090b0,'onAccept':(..._0x19a8e6)=>this[_0xc645('0xfd')](_0x437517,_0x230e68,_0xc645('0x5e'))(..._0x19a8e6),'onDiscard':(..._0x2170ca)=>this[_0xc645('0xfd')](_0x437517,_0x230e68,'discard')(..._0x2170ca)});}[_0xc645('0x101')](_0x2e58b9,_0x2e9059,_0x4beffc,_0x1e0230){const _0x3ddc19=_0x2e58b9+':'+_0x2e9059+':'+_0x4beffc;this[_0xc645('0x78')]['set'](_0x3ddc19,_0x1e0230);}[_0xc645('0xfd')](_0x46ed40,_0x203846,_0xb390d8){const _0xfaab0c=_0x46ed40+':'+_0x203846+':'+_0xb390d8;return this[_0xc645('0x78')][_0xc645('0x22')](_0xfaab0c)||this[_0xc645('0x27')][_0xc645('0x22')](_0x46ed40+':'+_0xb390d8);}[_0xc645('0x134')](){const _0x93f33f=()=>{},_0x4e9317=_0x27c9d3=>{_0x27c9d3[_0xc645('0x41')]((_0x5b45d3,_0x4b40b8)=>_0x5b45d3[_0xc645('0x145')][_0xc645('0x10b')](_0x4b40b8['start'])?0x1:-0x1),this[_0xc645('0x87')]['change'](_0x15c7f4=>{for(const _0x6384b5 of _0x27c9d3){let _0xe5b4a5;_0xe5b4a5=_0x6384b5[_0xc645('0x70')]['isAtEnd']&&_0x6384b5[_0xc645('0x70')][_0xc645('0x77')]==_0x6384b5[_0xc645('0x145')]['nodeAfter']?_0x15c7f4[_0xc645('0x104')](_0x6384b5[_0xc645('0x145')][_0xc645('0x46')],'on'):_0x15c7f4[_0xc645('0x104')](_0x6384b5),this[_0xc645('0x87')][_0xc645('0x80')](_0xe5b4a5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5cef71=(_0x536580,_0xa58bd9)=>{this[_0xc645('0x87')][_0xc645('0x8e')](_0x536dd6=>{const {commandName:_0x43f66d,commandParams:_0x4d84cd=[]}=_0xa58bd9,_0x8f6b8a=_0x536580['map'](_0x36c18c=>(_t(_0x36c18c)&&(_0x36c18c=this['_model'][_0xc645('0xad')](_0x36c18c[_0xc645('0x70')])),_0x36c18c))[_0xc645('0xbf')](_0x599fae=>_0xc645('0x11c')!==_0x599fae[_0xc645('0xf6')][_0xc645('0x142')]);if(_0x8f6b8a[_0xc645('0x30')]<0x1)return;const _0x1f2ea1=Array[_0xc645('0x0')](this[_0xc645('0x87')]['document']['selection'][_0xc645('0xc8')]())[_0xc645('0xbc')](_0x2f3fe5=>_0x2f0652[_0xc645('0x74')](_0x2f3fe5));_0x536dd6[_0xc645('0xb8')](_0x8f6b8a);for(const _0x5b657f of this[_0xc645('0x6e')][_0xc645('0x129')][_0xc645('0x129')]())_0x5b657f[_0xc645('0x131')]();_0x4d84cd[_0xc645('0xfe')]({'forceDefaultExecution':!0x0}),this[_0xc645('0x6e')][_0xc645('0x94')](_0x43f66d,..._0x4d84cd);const _0x5458b9=_0x1f2ea1['filter'](_0x1804cd=>'$graveyard'!=_0x1804cd['root'][_0xc645('0x142')]);_0x5458b9[_0xc645('0x30')]>0x0&&_0x536dd6[_0xc645('0xb8')](_0x5458b9);for(const _0x27d262 of _0x1f2ea1)_0x27d262['detach']();});},_0x2f7ea6=(_0x288c9b,_0x28c40f)=>0x1==_0x288c9b[_0xc645('0x30')]&&0x1==_0x28c40f['length']&&_0x288c9b[0x0][_0xc645('0x70')][_0xc645('0xa6')](_0x28c40f[0x0]['start']),_0x173d58=(_0x13da11,_0x24d5cc,_0x38db82,_0x1ef570)=>xt(_0x13da11,_0x24d5cc,_0x38db82,_0x1ef570,this[_0xc645('0x87')])?[_0x13da11,_0x24d5cc]:xt(_0x24d5cc,_0x13da11,_0x1ef570,_0x38db82,this[_0xc645('0x87')])?[_0x24d5cc,_0x13da11]:null;this['_defaultCallbacks'][_0xc645('0x112')](_0xc645('0x60'),_0x93f33f),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x3e'),_0x4e9317),this['_defaultCallbacks']['set'](_0xc645('0x65'),_0x2f7ea6),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x140'),_0x173d58),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x10a'),_0x4e9317),this[_0xc645('0x27')]['set'](_0xc645('0x10c'),_0x93f33f),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x84'),_0x2f7ea6),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x3f'),_0x173d58),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x12e'),_0x5cef71),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0xfa'),_0x93f33f),this['_defaultCallbacks'][_0xc645('0x112')](_0xc645('0x7b'),_0x2f7ea6),this[_0xc645('0x27')]['set'](_0xc645('0xf9'),_0x93f33f),this[_0xc645('0x27')]['set'](_0xc645('0x9f'),_0x5cef71),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0xd9'),_0x93f33f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f7ea6),this[_0xc645('0x27')][_0xc645('0x112')]('formatBlock:chain',_0x93f33f);}}function Bt(_0x48ea39,_0x110c14,_0x30766a){for(const _0x4b45e6 of _0x110c14[_0xc645('0x77')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b45e6[_0xc645('0xf6')]==_0x4b45e6)return!0x1;if(!_0x30766a[_0xc645('0x26')](_0x4b45e6))return!0x1;if(_0x48ea39[_0xc645('0x79')](_0x4b45e6)||_0x48ea39[_0xc645('0x1d')](_0x4b45e6))return!0x0;}return!0x1;}function _t(_0xd5d921){return _0xd5d921[_0xc645('0x70')]['parent']==_0xd5d921[_0xc645('0x145')][_0xc645('0x46')]&&_0xd5d921[_0xc645('0x70')][_0xc645('0x12b')];}function Mt(_0xb8e247,_0x6ae310,_0x2f6a34,_0x5978a9){const _0x5b03a4=_0x53e753=>!_0x53e753[_0xc645('0x116')]['is']('$textProxy')&&!_0x5978a9[_0xc645('0x79')](_0x53e753[_0xc645('0x116')]),_0x2786ce=_0xb8e247[_0xc645('0x145')]['getLastMatchingPosition'](_0x5b03a4),_0x4c0c6b=_0xb8e247['end'][_0xc645('0xf0')](_0x5b03a4,{'direction':'backward'});return(!_0xb8e247[_0xc645('0x145')]['isEqual'](_0x2786ce)||!_0xb8e247[_0xc645('0x70')]['isEqual'](_0x4c0c6b))&&(_0x2786ce['isBefore'](_0x4c0c6b)?_0x2f6a34[_0xc645('0x51')](_0x6ae310,{'range':_0x2f6a34[_0xc645('0xad')](_0x2786ce,_0x4c0c6b)}):_0x2f6a34[_0xc645('0xb7')](_0x6ae310),!0x0);}function $t(_0xc01472){return _0x196e19(_0xc01472);}function Nt(_0x112e38){const _0x3b7557=_0x112e38[_0xc645('0x145')][_0xc645('0x46')];return _0x3b7557&&_0x3b7557['is'](_0xc645('0x49'));}function Rt(_0x12ade8,_0x107505){const _0x39a279=_0x107505['schema'][_0xc645('0x79')](_0x12ade8)||_0x107505[_0xc645('0x1f')][_0xc645('0x126')](_0x12ade8);return _0x107505['createRange'](_0x107505['createPositionAt'](_0x12ade8,_0xc645('0x5')),_0x39a279?_0x107505[_0xc645('0xc7')](_0x12ade8):_0x107505['createPositionAt'](_0x12ade8,_0xc645('0x70')));}function xt(_0x40fcc6,_0x108281,_0xba6381,_0x34c8e6,_0x6b008){if(_0xba6381[_0xc645('0x70')][_0xc645('0xa6')](_0x34c8e6[_0xc645('0x145')]))return!0x0;if(_0x40fcc6[_0xc645('0x86')]!=_0x108281[_0xc645('0x86')])return!0x1;if(!_0xba6381[_0xc645('0x70')][_0xc645('0x1c')](_0x34c8e6['start']))return!0x1;const _0x3bbae6=_0x6b008[_0xc645('0xad')](_0xba6381[_0xc645('0x70')],_0x34c8e6[_0xc645('0x145')])[_0xc645('0xdc')]();for(const _0x4fa406 of _0x3bbae6)if([_0xc645('0x13b'),_0xc645('0x4')][_0xc645('0x4c')](_0x4fa406[_0xc645('0x86')])&&_0x6b008['schema'][_0xc645('0x1d')](_0x4fa406[_0xc645('0x116')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x18cf=['addMarker:suggestion:formatBlock','selection','isInsideObject','subType','$textProxy','data-suggestion','addSuggestionData','acceptSuggestion','_addSuggestionMarker','delete','forward','data','length','getShiftedBy','filter','name','getMarkers','values','insertContent','containsPosition','suggestionChanged','plugins','_editor','always','dataToMarker','ck-suggestion-marker-formatBlock','_updateSuggestionData','skipNestingCheck','commandName','deletion','_registerDefaultCallbacks','creator','external:','getSuggestionCallback','_saved','_mergeNestedSuggestions','detach','listenTo','addClass','upcast','change:data','fire','schema','containsItem','define','_defaultCallbacks','hasComments','addSuggestion','$graveyard','isLimit','formatInline:join','_getAuthorFromId','discardSuggestion','conversion','createPositionAfter','removeClass','removeMarker','_customCallbacks','authoredAt','sort','Users','join','multi','enableReadOnlyMode','batch','isObject','commentThread','_suggestionState','markMultiRangeBlockFormat','every','_removeSuggestion','model','suggestion-type','type','deletion:','createdAt','addMarker','config','position','isOwn','_breakSuggestionMarker','writer','insertion:accept','value','_setSuggestionData','isAfter','_checkSuggestionCorrectness','formatBlock:','lowest','oldRange','accepted','addRange','setSelection','suggestion:','originalSuggestionId','addHighlight','accept','fetchCommentThread','ck-suggestion-marker','isRemovable','fromRange','commands','documentSelection','setTo','discardSelectedSuggestions','createRangeIn','newRange','_setSuggestionRange','isMultiRange','_addThreadToSuggestion','markDeletion','dataReady','item','elementEnd','@external','author','_enabledCommands','change:activeMarkers','splice','then','deletion:accept','markerReady','isBlock','_joinWithAdjacentSuggestions','forceDefaultExecution','getItems','toJSON','formatInline:chain','low','discard','differ','deletion:discard','nodeAfter','editingDowncast','insertion:','_createSuggestion','root','getChangedMarkers','_model','markerToHighlight','size','remove','editor','_cutOutSuggestionMarker','ck-suggestion-marker--active','collaboration.channelId','notReady','highest','getNearestSelectionRange','_adapter','formatBlock:join','registerCustomCallback','dataDowncast','markInlineFormat','registerPostFixer','removeMarkers','add','substr','fromCharCode','set','isAtEnd','_findSuggestions','trackChanges.mergeNestedSuggestions','has','createPositionAt','group','PENDING_ACTION_SUGGESTION','isExternal','insert','removed','track-changes-suggestion-not-found','targetPosition','suggestionLoaded','insertion:chain','getDifference','_refreshSuggestionsChain','updateMarker','isNextTo','suggestionUnloaded','getIntersection','moveTargetPosition','isUndo','parent','end','formatBlock:chain','_trackFormatChanges','push','_rangeIsInLocalUserInsertion','getFirstMarker','getChanges','consume','enqueueChange','update:suggestion','from','getSuggestion','refresh','getRanges','addComment','init','isEqual','removeMarker:suggestion:formatBlock','isTouching','mapper','_suggestionFactory','multipleBlocks','backward','addMarkerName','hasSuggestion','formatBlock','formatBlock:accept','consumable','howMany','insertion:discard','after','trackChanges.trackFormatChanges','never','track-changes-command-not-found','_getExternalAuthor','isIntersectingWithRange','isLocal','trackChanges','containerElement','getSuggestions','markers','document','rootName','enableCommand','chain','createSelection','catch','discardAllSuggestions','acceptAllSuggestions','formatInline:','execute','createRange','containsRangeInObject','map','rejected','stop','hasCommentThread','nodeBefore','get','_isForcedDefaultExecutionBlock','trackChangesCommand','range','_getSuggestionData','options','track-changes-suggestion-data-mismatch','_onDiscard','getRange','_splitMarkerName','clear','next','PendingActions','formatInline:discard','containsRange','insertion','return','high','marker-count','getAttribute','getMultiRangeId','change','isBefore','isInContent','_commentsRepository','split','track-changes-adapter-already-set','default','requires','TrackChangesEditing','createElement','start','element','isDocumentOperation','ck-suggestion-marker-','elementStart','getCommentThread','addUser','addMarker:suggestion','previous','CommentsRepository','ready','includes','getAllAdjacentSuggestions','formatInline:accept','getFirstRange','markerName','_suggestions','showSuggestionHighlights','getAncestors','updateSuggestion','attributes','acceptSelectedSuggestions','toViewElement','formatGroupId','isCollapsed','$marker','markMultiRangeInsertion','_joinSuggestions','formatInline','deletion:chain','track-changes-user-not-found','suggestion','some','for','authorName','activeMarkers','locale','getUser','removeAttribute','bindElementToMarker','change:_saved'];(function(_0x11b36e,_0x18cfc8){const _0x3ffe2b=function(_0x118b97){while(--_0x118b97){_0x11b36e['push'](_0x11b36e['shift']());}};_0x3ffe2b(++_0x18cfc8);}(_0x18cf,0xae));const _0x3ffe=function(_0x11b36e,_0x18cfc8){_0x11b36e=_0x11b36e-0x0;let _0x3ffe2b=_0x18cf[_0x11b36e];return _0x3ffe2b;};import{Plugin as _0x1c3905,PendingActions as _0x2201d8}from'ckeditor5/src/core';import{LiveRange as _0x2a7d37}from'ckeditor5/src/engine';import{CKEditorError as _0x37a43b,uid as _0x3a1dd6,priorities as _0x39ca25,logWarning as _0x3d2ca4}from'ckeditor5/src/utils';import{toWidget as _0xcd7f04}from'ckeditor5/src/widget';import{Users as _0x3fe405,hashObject as _0x56ef00}from'ckeditor5-collaboration/src/collaboration-core';import _0x55cdc0 from'./commands/trackchangescommand';import _0x216fc3 from'./commands/acceptsuggestioncommand';import _0x12920a from'./commands/discardsuggestioncommand';import _0x2892b6 from'./commands/executeonallsuggestionscommand';import _0x3f5cb8 from'./commands/executeonselectedsuggestionscommand';import _0x5dd847 from'./suggestion';import _0x547b5c from'./suggestiondescriptionfactory';import _0x3b86b1 from'./integrations/alignment';import _0x39e887 from'./integrations/basicstyles';import _0x1657d7 from'./integrations/blockquote';import _0x212c2b from'./integrations/ckbox';import _0x1ded42 from'./integrations/codeblock';import _0x176bae from'./integrations/comments';import _0x561b8f from'./integrations/deletecommand';import _0x279e24 from'./integrations/documentlist';import _0x2b57aa from'./integrations/entercommand';import _0x6558e from'./integrations/findandreplace';import _0x34db2b from'./integrations/font';import _0x381856 from'./integrations/formatpainter';import _0x3ef23f from'./integrations/heading';import _0x560c1a from'./integrations/highlight';import _0x21eacb from'./integrations/horizontalline';import _0x53412d from'./integrations/htmlembed';import _0x599b4c from'./integrations/image';import _0x552ce3 from'./integrations/imagereplace';import _0x237581 from'./integrations/importword';import _0x150838 from'./integrations/indent';import _0x41cd65 from'./integrations/inputcommand';import _0x32f146 from'./integrations/link';import _0x2c8a1a from'./integrations/list';import _0x7a8538 from'./integrations/listproperties';import _0x8816b7 from'./integrations/mediaembed';import _0x5a1340 from'./integrations/mention';import _0x409189 from'./integrations/pagebreak';import _0x361501 from'./integrations/paragraph';import _0x2345a5 from'./integrations/removeformat';import _0x362bbc from'./integrations/restrictededitingmode';import _0x1383b1 from'./integrations/shiftentercommand';import _0x401a61 from'./integrations/standardeditingmode';import _0x1db17f from'./integrations/style';import _0x1eefca from'./integrations/table';import _0x45b15d from'./integrations/tablemergesplit';import _0x388447 from'./integrations/tableheadings';import _0x379b05 from'./integrations/tableclipboard';import _0xca3534 from'./integrations/tablecolumnresize';import _0x36d4c2 from'./integrations/template';import _0x4a7291 from'./integrations/tableofcontents';import _0x286fbd from'./integrations/title';import _0x2a245e from'./integrations/undo';import{getTranslation as _0x34e506}from'./utils/common-translations';import _0x1d8b1f from'./integrations/tablecaption';import _0x1f3f43 from'./integrations/documentlistproperties';import _0xcf2f83 from'./integrations/tableproperties';export default class p extends _0x1c3905{static get[_0x3ffe('0x5f')](){return['CommentsRepository',_0x3fe405,_0x2201d8,_0x3b86b1,_0x39e887,_0x1657d7,_0x212c2b,_0x1ded42,_0x176bae,_0x561b8f,_0x279e24,_0x1f3f43,_0x2b57aa,_0x6558e,_0x34db2b,_0x381856,_0x3ef23f,_0x560c1a,_0x21eacb,_0x53412d,_0x599b4c,_0x552ce3,_0x237581,_0x150838,_0x41cd65,_0x32f146,_0x2c8a1a,_0x7a8538,_0x8816b7,_0x5a1340,_0x409189,_0x361501,_0x2345a5,_0x362bbc,_0x1383b1,_0x401a61,_0x1db17f,_0x1eefca,_0x45b15d,_0x388447,_0x1d8b1f,_0x379b05,_0xca3534,_0x4a7291,_0xcf2f83,_0x36d4c2,_0x286fbd,_0x2a245e];}static get['pluginName'](){return _0x3ffe('0x60');}constructor(_0x1cac92){function _0x2b3d68(_0xdd53d7){return _0xdd53d7[_0x3ffe('0x3e')](_0x2d0d0f=>String[_0x3ffe('0x129')](_0x2d0d0f))[_0x3ffe('0xc8')]('');}super(_0x1cac92),this[_0x3ffe('0x12a')](_0x3ffe('0x85'),[]),this['on'](_0x3ffe('0x100'),(_0x10ed88,_0x1a0009,_0x33d72e,_0x582bee)=>{this[_0x3ffe('0x115')]['change'](()=>{for(const _0xfbf8be of[..._0x582bee,..._0x33d72e])this[_0x3ffe('0x115')]['markers'][_0x3ffe('0x12e')](_0xfbf8be)&&_0x1cac92['editing']['reconvertMarker'](_0xfbf8be);});}),this['_descriptionFactory']=new _0x547b5c(this[_0x3ffe('0x119')][_0x3ffe('0xd2')][_0x3ffe('0xb5')],this[_0x3ffe('0x119')]['locale']),this[_0x3ffe('0x120')]=null,this[_0x3ffe('0x1d')]=new Dt(this[_0x3ffe('0x119')]),this[_0x3ffe('0x72')]=new Map(),this[_0x3ffe('0x5b')]=_0x1cac92['plugins'][_0x3ffe('0x43')]('CommentsRepository'),this[_0x3ffe('0xff')]=new Set(),this[_0x3ffe('0x115')]=this[_0x3ffe('0x119')][_0x3ffe('0xd2')],this[_0x3ffe('0xce')]=new WeakMap(),this[_0x3ffe('0x44')]=!0x1,_0x1cac92['config'][_0x3ffe('0xb7')](_0x3ffe('0x28'),_0x3ffe('0x5e')),this[_0x3ffe('0xb')]=_0x1cac92['config']['get'](_0x3ffe('0x28')),_0x1cac92[_0x3ffe('0xd8')][_0x3ffe('0xb7')](_0x3ffe('0x12d'),!0x0),this['_mergeNestedSuggestions']=_0x1cac92[_0x3ffe('0xd8')][_0x3ffe('0x43')](_0x3ffe('0x12d')),this[_0x3ffe('0x45')]=new _0x55cdc0(_0x1cac92,this[_0x3ffe('0xff')]),this[_0x2b3d68([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2b3d68([0x34,0x30,0x34,0x36,0x31,0x34,0x35,0x30]);}[_0x3ffe('0x18')](){const _0x41ed79=this[_0x3ffe('0x119')];_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x110'))['markerToHighlight']({'model':_0x3ffe('0x81'),'view':_0xd1559c=>{const {id:_0x427629,type:_0x4afe94}=this[_0x3ffe('0x4c')](_0xd1559c[_0x3ffe('0x71')]),_0x4f1b3e=['ck-suggestion-marker',_0x3ffe('0x65')+_0x4afe94];let _0x5b0270=0xbb8;return this['activeMarkers'][_0x3ffe('0x6d')](_0xd1559c[_0x3ffe('0x71')])&&(_0x4f1b3e[_0x3ffe('0xc')](_0x3ffe('0x11b')),_0x5b0270=0xbc2),_0x3ffe('0xa8')==_0x4afe94&&(_0x5b0270+=0x5),{'classes':_0x4f1b3e,'attributes':{'data-suggestion':_0x427629},'priority':_0x5b0270};}}),_0x41ed79['conversion']['for'](_0x3ffe('0x123'))[_0x3ffe('0x127')](_0x309b28=>{_0x309b28['on'](_0x3ffe('0x69'),(_0x59deca,_0x2f353b,_0x114592)=>{if(!_0x114592[_0x3ffe('0x48')]['showSuggestionHighlights'])return;const _0x42aa98=_0x2f353b['item'];if(!_0x42aa98)return;const _0x511f03=_0x114592['mapper'][_0x3ffe('0x78')](_0x42aa98);_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')][_0x3ffe('0xcc')](_0x42aa98)&&_0x511f03&&!_0x511f03['getCustomProperty']('widget')&&_0x511f03['is'](_0x3ffe('0x2f'))&&_0xcd7f04(_0x511f03,_0x114592[_0x3ffe('0xdc')]);},{'priority':_0x3ffe('0x54')});}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x123'))[_0x3ffe('0x116')]({'model':_0x3ffe('0x81'),'view':(_0x563bdc,_0x1e264b)=>{if(!_0x1e264b['options'][_0x3ffe('0x73')])return null;const {type:_0x77dafa}=this['_splitMarkerName'](_0x563bdc[_0x3ffe('0x71')]);return{'classes':['ck-suggestion-marker',_0x3ffe('0x65')+_0x77dafa],'priority':0xbb8};}});const _0x4e858e=({showActiveMarkers:_0x4f46b8=!0x0}={})=>(_0x582e39,_0xb44aa9,_0x2008b2)=>{if(!_0xb44aa9['item'])return;if(_0xb44aa9[_0x3ffe('0xfb')]['is'](_0x3ffe('0x8c')))return void _0x2008b2[_0x3ffe('0x24')][_0x3ffe('0x10')](_0xb44aa9[_0x3ffe('0xfb')],_0x582e39[_0x3ffe('0x9a')]);const _0x3c99b5=_0x2008b2[_0x3ffe('0x1c')][_0x3ffe('0x78')](_0xb44aa9['item']);if(!(_0xb44aa9['item']['is'](_0x3ffe('0x63'))&&_0x41ed79['model']['schema'][_0x3ffe('0x105')](_0xb44aa9['item'])&&!_0x3c99b5['getCustomProperty'](_0x3ffe('0xea'))))return;const {id:_0x2ec355}=this[_0x3ffe('0x4c')](_0xb44aa9[_0x3ffe('0x71')]);_0x2008b2['writer']['addClass']([_0x3ffe('0xed'),_0x3ffe('0xa4')],_0x3c99b5),_0x2008b2[_0x3ffe('0xdc')]['setAttribute'](_0x3ffe('0x90'),_0x2ec355,_0x3c99b5),_0x2008b2[_0x3ffe('0x1c')][_0x3ffe('0x89')](_0x3c99b5,_0xb44aa9['markerName']),_0x4f46b8&&(this[_0x3ffe('0x85')][_0x3ffe('0x6d')](_0xb44aa9[_0x3ffe('0x71')])?_0x2008b2[_0x3ffe('0xdc')][_0x3ffe('0xb1')](_0x3ffe('0x11b'),_0x3c99b5):_0x2008b2[_0x3ffe('0xdc')][_0x3ffe('0xc2')](_0x3ffe('0x11b'),_0x3c99b5));for(const _0x4b6c86 of _0x41ed79['model'][_0x3ffe('0xf4')](_0xb44aa9[_0x3ffe('0xfb')])[_0x3ffe('0x108')]())_0x2008b2[_0x3ffe('0x24')][_0x3ffe('0x10')](_0x4b6c86,_0x582e39[_0x3ffe('0x9a')]);_0x2008b2[_0x3ffe('0x24')][_0x3ffe('0x10')](_0xb44aa9[_0x3ffe('0xfb')],_0x582e39[_0x3ffe('0x9a')]);};_0x41ed79[_0x3ffe('0xc0')]['for']('dataDowncast')[_0x3ffe('0x127')](_0x52c29a=>{_0x52c29a['on']('addMarker:suggestion:formatBlock',(_0x1a157f,_0x383027,_0x35e5b8)=>{_0x35e5b8['options'][_0x3ffe('0x73')]&&_0x4e858e({'showActiveMarkers':!0x1})(_0x1a157f,_0x383027,_0x35e5b8);},{'priority':_0x3ffe('0x11e')});}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x123'))['markerToData']({'model':_0x3ffe('0x81'),'view':(_0x3c2f52,_0x39008c)=>_0x39008c[_0x3ffe('0x48')][_0x3ffe('0x73')]?null:{'group':_0x3ffe('0x81'),'name':_0x3c2f52[_0x3ffe('0x128')](0xb)}}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0xb2'))['elementToElement']({'view':{'name':_0x3ffe('0x81'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5befae,{writer:_0x584a44})=>{let _0x3ad7a9=_0x3ffe('0xe8')+_0x5befae[_0x3ffe('0x56')](_0x3ffe('0xd3'))+':'+_0x5befae[_0x3ffe('0x56')]('id');return _0x5befae[_0x3ffe('0x56')](_0x3ffe('0x55'))&&(_0x3ad7a9+=':'+_0x5befae['getAttribute'](_0x3ffe('0x55'))),_0x584a44[_0x3ffe('0x61')](_0x3ffe('0x7b'),{'data-name':_0x3ad7a9});}}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0xb2'))[_0x3ffe('0xa3')]({'view':'suggestion'}),_0x41ed79[_0x3ffe('0xc0')][_0x3ffe('0x83')](_0x3ffe('0x110'))[_0x3ffe('0x127')](_0x55a147=>{_0x55a147['on'](_0x3ffe('0x8b'),_0x4e858e(),{'priority':'high'});}),_0x41ed79[_0x3ffe('0xc0')]['for'](_0x3ffe('0x110'))['add'](_0x39d796=>{_0x39d796['on'](_0x3ffe('0x1a'),(_0x27c740,_0x3f9510,_0x196fb7)=>{const _0x1581ee=_0x196fb7[_0x3ffe('0x1c')]['markerNameToElements'](_0x3f9510[_0x3ffe('0x71')]);if(_0x1581ee)for(const _0x2ae357 of _0x1581ee)_0x2ae357['getCustomProperty'](_0x3ffe('0xea'))||(_0x196fb7[_0x3ffe('0xdc')][_0x3ffe('0xc2')]([_0x3ffe('0xed'),_0x3ffe('0xa4'),_0x3ffe('0x11b')],_0x2ae357),_0x196fb7[_0x3ffe('0xdc')][_0x3ffe('0x88')](_0x3ffe('0x90'),_0x2ae357),_0x196fb7[_0x3ffe('0x1c')]['unbindElementFromMarkerName'](_0x2ae357,_0x3f9510[_0x3ffe('0x71')]));},{'priority':_0x3ffe('0x54')});}),_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')]['registerPostFixer'](_0x30f52d=>{let _0x150520=!0x1;const _0x1fc72b=Array['from'](_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')]['differ'][_0x3ffe('0x114')]()),_0x4d05e1=new Set();for(const {name:_0x441e84,data:_0x4f7c3a}of _0x1fc72b){const {group:_0x39d63d,type:_0x4177f4,id:_0x5e2fc8}=this[_0x3ffe('0x4c')](_0x441e84);if(_0x3ffe('0x81')!==_0x39d63d)continue;const _0x1d1fef=this['_suggestions'][_0x3ffe('0x43')](_0x5e2fc8);if(null!=_0x4f7c3a[_0x3ffe('0xf5')]){_0x3ffe('0x7e')==_0x4177f4&&(_0x150520=_0x150520||Mt(_0x4f7c3a['newRange'],_0x441e84,_0x30f52d,_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')]));if(_0x4f7c3a[_0x3ffe('0xf5')][_0x3ffe('0x7a')]||_0x3ffe('0xbb')==_0x4f7c3a[_0x3ffe('0xf5')]['root'][_0x3ffe('0x33')]||_0x3ffe('0x22')==_0x4177f4&&!Nt(_0x4f7c3a[_0x3ffe('0xf5')])||_0x3ffe('0xa8')==_0x4177f4&&!(!_t(_0x1fe840=_0x4f7c3a[_0x3ffe('0xf5')])&&!function(_0x8a10af){return _0x8a10af[_0x3ffe('0x62')]['parent']==_0x8a10af['end'][_0x3ffe('0x42')]&&_0x8a10af[_0x3ffe('0x62')][_0x3ffe('0x12b')];}(_0x1fe840)))_0x30f52d[_0x3ffe('0xc3')](_0x441e84),_0x150520=!0x0;else{if(!_0x1d1fef||!_0x1d1fef[_0x3ffe('0x5a')])continue;_0x4d05e1['add'](_0x1d1fef);}}}var _0x1fe840;return _0x4d05e1['size']>0x0&&(_0x150520=!!this['_joinWithAdjacentSuggestions'](_0x4d05e1)||_0x150520),_0x150520;}),_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')][_0x3ffe('0x125')](_0x51e36a=>{let _0x24f1c5=!0x1;for(const _0x37c835 of _0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x32')][_0x3ffe('0x10d')][_0x3ffe('0xf')]()){if(_0x3ffe('0x133')!=_0x37c835[_0x3ffe('0xd4')])continue;const _0x41fcf8=_0x37c835['position'][_0x3ffe('0x98')](_0x37c835['length']);if(_0x41fcf8[_0x3ffe('0x12b')])for(const _0x253cd8 of this[_0x3ffe('0x72')]['values']()){if(_0x253cd8['isMultiRange']||!_0x253cd8['isInContent'])continue;if(_0x3ffe('0x22')!=_0x253cd8[_0x3ffe('0xd4')])continue;const _0x2593a6=_0x253cd8[_0x3ffe('0x70')]();if(_0x2593a6[_0x3ffe('0x62')][_0x3ffe('0x8')]!=_0x2593a6['end'][_0x3ffe('0x8')]&&_0x2593a6[_0x3ffe('0x9')][_0x3ffe('0x19')](_0x37c835['position'])){const _0x9a3a37=_0x41ed79[_0x3ffe('0xd2')]['createRange'](_0x2593a6[_0x3ffe('0x62')],_0x41fcf8);_0x51e36a[_0x3ffe('0x2')](_0x253cd8[_0x3ffe('0xe')](),{'range':_0x9a3a37}),_0x24f1c5=!0x0;}}}return _0x24f1c5;}),_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x31')]['on'](_0x3ffe('0x12'),(_0x25871e,_0x3a607b,_0x14d12c)=>{if(null==_0x14d12c){const {id:_0x5729eb}=this[_0x3ffe('0x4c')](_0x3a607b[_0x3ffe('0x9a')]),_0xa8866b=this['_suggestions'][_0x3ffe('0x43')](_0x5729eb);_0xa8866b&&_0xa8866b[_0x3ffe('0x20')](_0x3a607b['name']);}}),_0x41ed79['model'][_0x3ffe('0x32')]['on'](_0x3ffe('0xb3'),()=>{const _0x42429a=Array[_0x3ffe('0x13')](_0x41ed79[_0x3ffe('0xd2')]['document'][_0x3ffe('0x10d')][_0x3ffe('0x114')]())[_0x3ffe('0x99')](_0x587c8c=>_0x3ffe('0x81')===this[_0x3ffe('0x4c')](_0x587c8c[_0x3ffe('0x9a')])[_0x3ffe('0x130')]);if(0x0===_0x42429a[_0x3ffe('0x97')])return;_0x42429a[_0x3ffe('0xc6')]((_0x1c907e,_0x14bd4d)=>{const _0xdeda2f=_0x1c907e[_0x3ffe('0x96')]['oldRange'],_0x3111f6=_0x14bd4d[_0x3ffe('0x96')][_0x3ffe('0xe4')];return null===_0xdeda2f&&null===_0x3111f6?0x0:null===_0xdeda2f&&null!==_0x3111f6?-0x1:null!==_0xdeda2f&&null===_0x3111f6?0x1:_0xdeda2f[_0x3ffe('0x62')][_0x3ffe('0x59')](_0x3111f6[_0x3ffe('0x62')])?-0x1:0x1;});const _0x37b2b1=new Set(),_0x44822d=new Set();for(const {name:_0x537000,data:_0x511800}of _0x42429a){const {id:_0x2ba919}=this['_splitMarkerName'](_0x537000);if(null===_0x511800[_0x3ffe('0xe4')]){const _0xde054d=this['_handleNewSuggestionMarker'](_0x537000);_0x44822d[_0x3ffe('0x127')](_0xde054d);}else{const _0x192189=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x2ba919);null!==_0x511800[_0x3ffe('0xf5')]||_0x192189[_0x3ffe('0x5a')]?(_0x37b2b1['add'](_0x192189['head']),_0x44822d[_0x3ffe('0x127')](_0x192189)):this[_0x3ffe('0xd1')](_0x192189);}}_0x44822d[_0x3ffe('0x117')]>0x0&&this[_0x3ffe('0x1')](_0x44822d);for(const _0x8ee8d2 of _0x37b2b1)this[_0x3ffe('0xb4')](_0x3ffe('0x9f'),_0x8ee8d2);}),_0x41ed79['model']['on']('applyOperation',(_0x1fee63,_0x12ee36)=>{const _0x4ffc88=_0x12ee36[0x0];if(!this[_0x3ffe('0x72')][_0x3ffe('0x117')])return;if(!_0x4ffc88[_0x3ffe('0x64')])return;if(_0x4ffc88[_0x3ffe('0xcb')][_0x3ffe('0x7')]||!_0x4ffc88[_0x3ffe('0xcb')][_0x3ffe('0x2d')])return;let _0x506964,_0x5317c7;switch(_0x4ffc88[_0x3ffe('0xd4')]){case _0x3ffe('0x133'):_0x506964=_0x41ed79[_0x3ffe('0xd2')]['createPositionAt'](_0x4ffc88[_0x3ffe('0xd9')]),_0x5317c7=_0x506964[_0x3ffe('0x98')](_0x4ffc88[_0x3ffe('0x25')]);break;case _0x3ffe('0x5c'):_0x506964=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x12f')](_0x4ffc88['splitPosition']),_0x5317c7=_0x41ed79[_0x3ffe('0xd2')]['createPositionAt'](_0x4ffc88[_0x3ffe('0x6')]);break;case'move':_0x506964=_0x41ed79['model']['createPositionAt'](_0x4ffc88[_0x3ffe('0x136')]),_0x5317c7=_0x506964[_0x3ffe('0x98')](_0x4ffc88['howMany']);break;default:return;}const _0x59ca5f=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x3c')](_0x506964,_0x5317c7);_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{for(const {suggestion:_0x577018,meta:_0x833f46}of this[_0x3ffe('0x12c')](_0x59ca5f)){if(_0x577018[_0x3ffe('0xf7')])continue;if(_0x3ffe('0x7e')==_0x577018[_0x3ffe('0xd4')])continue;const _0x20a197=_0x577018[_0x3ffe('0x96')]&&_0x577018[_0x3ffe('0x96')][_0x3ffe('0x1e')];(_0x3ffe('0x22')!=_0x577018[_0x3ffe('0xd4')]||_0x3ffe('0x5c')==_0x4ffc88[_0x3ffe('0xd4')]&&!_0x20a197)&&(_0x833f46[_0x3ffe('0x3d')]||_0x3ffe('0x52')==_0x577018[_0x3ffe('0xd4')]&&_0x833f46[_0x3ffe('0xda')]||_0x577018[_0x3ffe('0x70')]()[_0x3ffe('0x51')](_0x59ca5f)&&this['_breakSuggestionMarker'](_0x577018,_0x506964,_0x5317c7));}});},{'priority':_0x3ffe('0xe3')}),_0x41ed79[_0x3ffe('0xd2')]['on']('deleteContent',(_0x35f15e,_0x49cad8)=>{const _0x1db778=_0x49cad8[0x0],_0x53d8f5=_0x49cad8[0x1];if(_0x53d8f5&&_0x53d8f5[_0x3ffe('0x107')])return;if(this[_0x3ffe('0x44')])return;if(!this[_0x3ffe('0x45')]['value'])return;if(_0x1db778[_0x3ffe('0x7a')])return;const _0x370d70=_0x41ed79['model'][_0x3ffe('0xb5')],{start:_0x1ad092,end:_0x567c69}=_0x1db778[_0x3ffe('0x70')](),_0x4fa254=_0x1ad092[_0x3ffe('0x10f')]&&_0x370d70[_0x3ffe('0xbc')](_0x1ad092[_0x3ffe('0x10f')])?null:_0x370d70['getNearestSelectionRange'](_0x1ad092,_0x3ffe('0x95')),_0x1118e9=_0x567c69[_0x3ffe('0x42')]&&_0x370d70['isLimit'](_0x567c69[_0x3ffe('0x42')])?null:_0x370d70[_0x3ffe('0x11f')](_0x567c69,_0x3ffe('0x1f')),_0x274fb0=_0x41ed79['model'][_0x3ffe('0x3c')](_0x4fa254?_0x4fa254[_0x3ffe('0x62')]:_0x1ad092,_0x1118e9?_0x1118e9['end']:_0x567c69);_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x58')](_0x354382=>{this['markDeletion'](_0x274fb0);const _0x12ddf9=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')][_0x3ffe('0x11f')](_0x274fb0[_0x3ffe('0x62')]);_0x1db778['is'](_0x3ffe('0xf1'))?_0x354382[_0x3ffe('0xe7')](_0x12ddf9):_0x1db778[_0x3ffe('0xf2')](_0x12ddf9);}),_0x35f15e[_0x3ffe('0x40')]();},{'priority':_0x39ca25['normal']+0xa}),_0x41ed79[_0x3ffe('0xd2')]['on'](_0x3ffe('0x9d'),(_0x3b633b,_0x361454)=>{const _0x550e99=_0x361454[_0x361454[_0x3ffe('0x97')]-0x1];_0x550e99&&_0x550e99[_0x3ffe('0x107')]||this[_0x3ffe('0x44')]||this[_0x3ffe('0x45')][_0x3ffe('0xde')]&&(_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{let _0x43236f=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0x9d')](_0x361454[0x0],_0x361454[0x1],_0x361454[0x2],{'forceDefaultExecution':!0x0});if(!_0x43236f)return;_0x3b633b[_0x3ffe('0x53')]=_0x43236f['clone']();const _0x4bb99c=_0x43236f[_0x3ffe('0x9')][_0x3ffe('0x42')],_0x4de3c1=_0x41ed79[_0x3ffe('0xd2')][_0x3ffe('0xb5')];_0x4bb99c&&_0x4de3c1[_0x3ffe('0x105')](_0x4bb99c)&&!_0x4de3c1[_0x3ffe('0xcc')](_0x4bb99c)&&(_0x43236f=_0x41ed79[_0x3ffe('0xd2')]['createRange'](_0x43236f[_0x3ffe('0x62')],_0x41ed79[_0x3ffe('0xd2')]['createPositionAt'](_0x4bb99c,_0x3ffe('0x9')))),this['markInsertion'](_0x43236f);}),_0x3b633b[_0x3ffe('0x40')]());},{'priority':'high'}),this[_0x3ffe('0x119')]['commands'][_0x3ffe('0x127')](_0x3ffe('0x2e'),this[_0x3ffe('0x45')]),this['enableCommand'](_0x3ffe('0x2e'));const _0x233916=new _0x216fc3(_0x41ed79,this['_suggestions']);_0x41ed79['commands'][_0x3ffe('0x127')](_0x3ffe('0x92'),_0x233916),this[_0x3ffe('0x34')](_0x3ffe('0x92'));const _0x43a95a=new _0x12920a(_0x41ed79,this[_0x3ffe('0x72')]);_0x41ed79[_0x3ffe('0xf0')][_0x3ffe('0x127')](_0x3ffe('0xbf'),_0x43a95a),this[_0x3ffe('0x34')]('discardSuggestion'),_0x41ed79[_0x3ffe('0xf0')][_0x3ffe('0x127')](_0x3ffe('0x39'),new _0x2892b6(_0x41ed79,_0x233916,this[_0x3ffe('0x72')])),this['enableCommand'](_0x3ffe('0x39')),_0x41ed79['commands'][_0x3ffe('0x127')](_0x3ffe('0x38'),new _0x2892b6(_0x41ed79,_0x43a95a,this[_0x3ffe('0x72')])),this[_0x3ffe('0x34')]('discardAllSuggestions'),_0x41ed79[_0x3ffe('0xf0')]['add'](_0x3ffe('0x77'),new _0x3f5cb8(_0x41ed79,_0x233916,this[_0x3ffe('0x72')])),this[_0x3ffe('0x34')](_0x3ffe('0x77')),_0x41ed79[_0x3ffe('0xf0')]['add']('discardSelectedSuggestions',new _0x3f5cb8(_0x41ed79,_0x43a95a,this[_0x3ffe('0x72')])),this['enableCommand'](_0x3ffe('0xf3'));const _0x3e979c=_0x41ed79[_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0x6b'));this[_0x3ffe('0xb0')](_0x3e979c,_0x3ffe('0x17'),(_0x365412,{threadId:_0x233cea})=>{const _0x50d71a=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x233cea);_0x50d71a&&_0x50d71a[_0x3ffe('0xcd')]&&0x1===_0x50d71a[_0x3ffe('0xcd')][_0x3ffe('0x97')]&&this[_0x3ffe('0xa5')](_0x233cea,{'hasComments':!0x0});},{'priority':_0x3ffe('0x10b')}),this[_0x3ffe('0xb0')](_0x3e979c,'removeComment',(_0x5d5dd1,{threadId:_0x4d2c6b})=>{const _0x18f1d9=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x4d2c6b);_0x18f1d9&&_0x18f1d9[_0x3ffe('0xcd')]&&!_0x18f1d9[_0x3ffe('0xcd')]['length']&&this[_0x3ffe('0xa5')](_0x4d2c6b,{'hasComments':!0x1});},{'priority':_0x3ffe('0x10b')});}set['adapter'](_0x44bf0e){if(this[_0x3ffe('0x120')])throw new _0x37a43b(_0x3ffe('0x5d'),this);this[_0x3ffe('0x120')]=_0x44bf0e;}get['adapter'](){return this['_adapter'];}[_0x3ffe('0x30')]({skipNotAttached:_0x48025a=!0x1,toJSON:_0x26d24c=!0x1}={}){const _0x2908ec=[];for(const _0x2baa2a of this[_0x3ffe('0x72')][_0x3ffe('0x9c')]())_0x48025a&&!_0x2baa2a[_0x3ffe('0x5a')]||_0x2908ec[_0x3ffe('0xc')](_0x2baa2a);return _0x26d24c?_0x2908ec['map'](_0x30d3d9=>_0x30d3d9[_0x3ffe('0x109')]()):_0x2908ec;}[_0x3ffe('0x14')](_0x37b0be){const _0x560310=this[_0x3ffe('0x72')]['get'](_0x37b0be);if(!_0x560310)throw new _0x37a43b(_0x3ffe('0x135'),this);return _0x560310;}[_0x3ffe('0x21')](_0x1c35cd){return this[_0x3ffe('0x72')]['has'](_0x1c35cd);}[_0x3ffe('0x91')](_0x470084){const {authorId:_0x52573a,id:_0x472f2b,attributes:_0x16f6fa}=_0x470084,[_0x11aae3,_0x1b05c7]=_0x470084[_0x3ffe('0xd4')][_0x3ffe('0x5c')](':'),_0x44f2be=this['_suggestions']['get'](_0x472f2b)||this[_0x3ffe('0x112')](_0x11aae3,_0x1b05c7,_0x472f2b,_0x52573a,_0x16f6fa);if(this[_0x3ffe('0xf8')](_0x44f2be),this[_0x3ffe('0xe1')](_0x44f2be,_0x11aae3,_0x1b05c7||null,_0x52573a),_0x44f2be[_0x3ffe('0xd6')]=_0x470084[_0x3ffe('0xd6')],_0x16f6fa&&_0x16f6fa[_0x3ffe('0xfd')]){const _0x5e884a=_0x16f6fa[_0x3ffe('0xfd')],_0x3139e2=this[_0x3ffe('0x2b')](_0x5e884a[_0x3ffe('0x84')]);_0x44f2be[_0x3ffe('0xc5')]=_0x5e884a[_0x3ffe('0xd6')],_0x44f2be[_0x3ffe('0xfe')]=_0x3139e2,_0x44f2be[_0x3ffe('0x132')]=!0x0;}else _0x44f2be[_0x3ffe('0xc5')]=_0x470084[_0x3ffe('0xd6')];switch(_0x470084[_0x3ffe('0x96')]&&(_0x44f2be['data']=_0x470084['data']),_0x470084[_0x3ffe('0x76')]&&(_0x44f2be[_0x3ffe('0x76')]=_0x470084[_0x3ffe('0x76')]),this[_0x3ffe('0x120')]&&this[_0x3ffe('0x120')][_0x3ffe('0xba')]||(_0x44f2be[_0x3ffe('0xad')]=!0x0),this[_0x3ffe('0xce')][_0x3ffe('0x43')](_0x44f2be)){case _0x3ffe('0x11d'):this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x44f2be,'dataReady');break;case _0x3ffe('0x104'):_0x44f2be[_0x3ffe('0x5a')]?(this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x44f2be,_0x3ffe('0x6c')),this[_0x3ffe('0xb4')]('suggestionLoaded',_0x44f2be)):this['_suggestionState']['set'](_0x44f2be,_0x3ffe('0x134'));}return _0x44f2be;}[_0x3ffe('0x92')](_0x4b0785){this[_0x3ffe('0x107')](()=>{this['editor'][_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{for(const _0x1fde88 of _0x4b0785[_0x3ffe('0x6e')]())_0x1fde88['accept']();});});}[_0x3ffe('0xbf')](_0x5a426a){this['forceDefaultExecution'](()=>{this[_0x3ffe('0x119')][_0x3ffe('0xd2')][_0x3ffe('0x58')](()=>{for(const _0x32a605 of _0x5a426a[_0x3ffe('0x6e')]())_0x32a605['discard']();});});}[_0x3ffe('0x34')](_0x1d5d1b,_0x5c7d54){const _0x2d16c2=this['editor'][_0x3ffe('0xf0')][_0x3ffe('0x43')](_0x1d5d1b);if(!_0x2d16c2)throw new _0x37a43b(_0x3ffe('0x2a'),this,{'commandName':_0x1d5d1b});this[_0x3ffe('0xff')]['add'](_0x2d16c2),_0x5c7d54&&_0x2d16c2['on'](_0x3ffe('0x3b'),(_0x35a0cd,_0xc2c01)=>{this['trackChangesCommand'][_0x3ffe('0xde')]&&(this[_0x3ffe('0x44')]||_0xc2c01['length']>0x0&&_0xc2c01[_0xc2c01[_0x3ffe('0x97')]-0x1]&&_0xc2c01[_0xc2c01[_0x3ffe('0x97')]-0x1]['forceDefaultExecution']||(_0x5c7d54((..._0xe5d5fb)=>_0x2d16c2[_0x3ffe('0x3b')](..._0xe5d5fb,{'forceDefaultExecution':!0x0}),..._0xc2c01),_0x35a0cd[_0x3ffe('0x40')]()));},{'priority':_0x3ffe('0x54')});}[_0x3ffe('0x107')](_0x169a52){let _0x3cb340,_0x123349;const _0x1dcf2f=this[_0x3ffe('0x44')];this[_0x3ffe('0x44')]=!0x0;try{_0x3cb340=_0x169a52();}catch(_0x1ef9bf){_0x123349=_0x1ef9bf;}return _0x1dcf2f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x123349&&_0x37a43b['rethrowUnexpectedError'](_0x123349,this),_0x3cb340;}['markInsertion'](_0x4238c6,_0x222bf8=null,_0x4248f7={}){if(_0x4238c6[_0x3ffe('0x7a')])return null;const _0x17d413=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'];for(const {suggestion:_0x3e68a8,meta:_0x1c58c7}of this[_0x3ffe('0x12c')](_0x4238c6,_0x3ffe('0x52')))if(_0x1c58c7[_0x3ffe('0xda')]){if(!_0x1c58c7['isNextTo']){if(!this[_0x3ffe('0xae')]&&_0x1c58c7[_0x3ffe('0x3d')])continue;return _0x3e68a8;}if(_0x222bf8==_0x3e68a8['subType']){const _0x26ca76=_0x3e68a8[_0x3ffe('0x70')]();return _0x26ca76['start']['isEqual'](_0x4238c6[_0x3ffe('0x9')])?this['_setSuggestionRange'](_0x3e68a8,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x4238c6[_0x3ffe('0x62')],_0x26ca76[_0x3ffe('0x9')])):this[_0x3ffe('0xf6')](_0x3e68a8,this['_model'][_0x3ffe('0x3c')](_0x26ca76[_0x3ffe('0x62')],_0x4238c6[_0x3ffe('0x9')])),_0x3e68a8;}}const _0x24f41e=_0x3a1dd6(),_0x300f69=_0x17d413['id'],_0x4fe603=_0x222bf8?_0x3ffe('0x111')+_0x222bf8:'insertion',_0x29fcf3=this[_0x3ffe('0xdf')]({'id':_0x24f41e,'type':_0x4fe603,'createdAt':new Date(),'authorId':_0x300f69,'attributes':_0x4248f7});return this[_0x3ffe('0x93')](_0x4fe603,_0x24f41e,_0x300f69,_0x4238c6),_0x29fcf3;}[_0x3ffe('0x7c')](_0x4ce8f0,_0x5550c7='multi',_0x43d522={}){const _0x1f10cb=this['editor'][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'],_0x25063a=this['_suggestionFactory'][_0x3ffe('0xac')](_0x3ffe('0x52'),_0x5550c7,_0x3ffe('0xc8'));for(const _0x15bff4 of this[_0x3ffe('0x30')]())if(_0x15bff4[_0x3ffe('0xfe')]['id']==_0x1f10cb['id']&&_0x3ffe('0x52')==_0x15bff4[_0x3ffe('0xd4')]&&_0x15bff4[_0x3ffe('0x8e')]==_0x5550c7&&(_0x25063a(_0x15bff4[_0x3ffe('0x16')](),_0x4ce8f0)||_0x25063a(_0x4ce8f0,_0x15bff4[_0x3ffe('0x16')]()))){for(const _0x52df03 of _0x4ce8f0)_0x15bff4[_0x3ffe('0xe6')](_0x52df03);return _0x15bff4;}if(this[_0x3ffe('0xae')])for(const _0x13a295 of _0x4ce8f0)for(const {suggestion:_0x2d863b,meta:_0x3ecffe}of this[_0x3ffe('0x12c')](_0x13a295,_0x3ffe('0x52'))){if(!_0x3ecffe[_0x3ffe('0xda')])continue;let _0x19d7ca=!0x0;for(const _0x41e857 of _0x2d863b[_0x3ffe('0x16')]())for(const _0x276ce3 of _0x4ce8f0)if(!_0x41e857[_0x3ffe('0x51')](_0x276ce3)){_0x19d7ca=!0x1;break;}if(_0x19d7ca)return _0x2d863b;}const _0x4bb53b=_0x3a1dd6(),_0x33c0e6=_0x1f10cb['id'],_0x5eabef=_0x3ffe('0x111')+_0x5550c7,_0x3c2403=this['_setSuggestionData']({'id':_0x4bb53b,'type':_0x5eabef,'createdAt':new Date(),'authorId':_0x33c0e6,'attributes':_0x43d522});for(const _0x14e53e of _0x4ce8f0)this[_0x3ffe('0x93')](_0x5eabef,_0x4bb53b,_0x33c0e6,_0x14e53e,_0x5dd847[_0x3ffe('0x57')]());return _0x3c2403;}[_0x3ffe('0x124')](_0x53e1f8,_0x48eaed,_0xe5a466=null,_0xef3eb2={}){if(_0xe5a466=_0xe5a466||$t(_0x48eaed),_0x53e1f8[_0x3ffe('0x7a')])return null;if(_0x3ffe('0x29')===this[_0x3ffe('0xb')]){const _0x4b2e0a=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0x7e'),_0xe5a466,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x4b2e0a([_0x53e1f8],_0x48eaed,_0xef3eb2)),null;}const _0x5bbe75=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'],_0x2a87a0=[];if(_0x3ffe('0xa2')!==this[_0x3ffe('0xb')])for(const {suggestion:_0x26550b,meta:_0x10670e}of this['_findSuggestions'](_0x53e1f8,_0x3ffe('0x52')))_0x10670e[_0x3ffe('0xda')]&&!_0x10670e['isInsideObject']&&_0x2a87a0[_0x3ffe('0xc')](..._0x26550b[_0x3ffe('0x16')]());const _0x3f521f=function(_0x33c6b3,_0x2af523){const _0x7895b6=[];for(const _0x4d9bd9 of _0x2af523){const _0x353e72=_0x33c6b3['getIntersection'](_0x4d9bd9);_0x353e72&&_0x7895b6[_0x3ffe('0xc')](_0x353e72);}return _0x7895b6;}(_0x53e1f8,_0x2a87a0),_0x600250=function(_0x561e1d,_0x3a92bf){const _0x5dfc3b=[_0x561e1d];for(const _0x3ec168 of _0x3a92bf){let _0x29c17a=0x0;for(;_0x29c17a<_0x5dfc3b[_0x3ffe('0x97')];){const _0x40a9e5=_0x5dfc3b[_0x29c17a][_0x3ffe('0x0')](_0x3ec168);_0x5dfc3b[_0x3ffe('0x101')](_0x29c17a,0x1,..._0x40a9e5),_0x29c17a+=_0x40a9e5[_0x3ffe('0x97')];}}return _0x5dfc3b;}(_0x53e1f8,_0x2a87a0);_0x3f521f[_0x3ffe('0x97')]&&this[_0x3ffe('0x115')][_0x3ffe('0x58')](()=>{for(const _0x335fb9 of _0x3f521f){const _0x31db77=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0x7e'),_0xe5a466,_0x3ffe('0xeb'));this[_0x3ffe('0x107')](()=>_0x31db77([_0x335fb9],_0x48eaed,_0xef3eb2));}});for(const _0x37f208 of _0x600250){let _0x58eff8=null,_0x2bd37b=_0x37f208['start'],_0x4c0d31=_0x37f208[_0x3ffe('0x9')];for(const {suggestion:_0x23f6de,meta:_0x3f124c}of this[_0x3ffe('0x12c')](_0x37f208,_0x3ffe('0x7e'))){if(!_0x3f124c[_0x3ffe('0xda')])continue;if(_0x23f6de[_0x3ffe('0x8e')]!=_0xe5a466)continue;const _0x50042d=_0x23f6de[_0x3ffe('0x70')]();if(_0x50042d[_0x3ffe('0x51')](_0x37f208,!0x0))return null;_0x2bd37b=_0x2bd37b[_0x3ffe('0x59')](_0x50042d[_0x3ffe('0x62')])?_0x2bd37b:_0x50042d[_0x3ffe('0x62')],_0x4c0d31=_0x4c0d31[_0x3ffe('0xe0')](_0x50042d[_0x3ffe('0x9')])?_0x4c0d31:_0x50042d['end'],_0x58eff8?_0x50042d[_0x3ffe('0x62')]['isBefore'](_0x58eff8['getFirstRange']()[_0x3ffe('0x62')])?(_0x58eff8['removeMarkers'](),_0x58eff8=_0x23f6de):_0x23f6de[_0x3ffe('0x126')]():_0x58eff8=_0x23f6de;}const _0x4d6245=this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x2bd37b,_0x4c0d31);if(_0x58eff8)this['_setSuggestionRange'](_0x58eff8,_0x4d6245);else{const _0x26ef27=_0x3a1dd6(),_0x57ec56=_0x5bbe75['id'];this['_setSuggestionData']({'id':_0x26ef27,'type':_0x3ffe('0x3a')+_0xe5a466,'data':_0x48eaed,'createdAt':new Date(),'authorId':_0x57ec56,'attributes':_0xef3eb2}),this[_0x3ffe('0x93')](_0x3ffe('0x3a')+_0xe5a466,_0x26ef27,_0x57ec56,_0x4d6245);}}return null;}['markBlockFormat'](_0x5ce431,_0x55dee0,_0x5ec108=[],_0x728d52=null,_0x16be80={}){_0x55dee0['formatGroupId']||(_0x55dee0['formatGroupId']=_0x55dee0[_0x3ffe('0xa7')]),_0x55dee0[_0x3ffe('0x1e')]=_0x5ce431['is']('range'),_0x728d52=_0x728d52||$t(_0x55dee0);const _0x5da4df=_0x5ec108[_0x3ffe('0x3e')](_0x32c790=>Rt(_0x32c790,this[_0x3ffe('0x115')])),_0x55cafa=_0x5ce431['is']('range')?_0x5ce431:Rt(_0x5ce431,this[_0x3ffe('0x115')]);if(_0x3ffe('0x29')===this[_0x3ffe('0xb')]){const _0x1510c5=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0x22'),_0x728d52,'accept');return this[_0x3ffe('0x107')](()=>_0x1510c5([_0x55cafa],_0x55dee0,_0x16be80)),null;}_0x5da4df[_0x3ffe('0xc')](_0x55cafa);let _0x405d30=!0x0;for(const _0x5d9e7b of _0x5da4df)if(!this[_0x3ffe('0xd')](_0x5d9e7b)){_0x405d30=!0x1;break;}if(_0x405d30&&_0x3ffe('0xa2')!==this[_0x3ffe('0xb')]){const _0x14205b=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('formatBlock',_0x728d52,_0x3ffe('0xeb'));return this[_0x3ffe('0x107')](()=>_0x14205b([_0x55cafa],_0x55dee0,_0x16be80)),null;}let _0x53f3e1=null,_0x185aac=_0x55cafa[_0x3ffe('0x62')],_0x5e3b07=_0x55cafa[_0x3ffe('0x9')];for(const {suggestion:_0x54bc66,meta:_0x435677}of this[_0x3ffe('0x12c')](_0x55cafa,'formatBlock')){if(!_0x435677[_0x3ffe('0xda')]||_0x435677[_0x3ffe('0x3')]||_0x435677[_0x3ffe('0x3d')]||_0x435677[_0x3ffe('0x8d')])continue;if(_0x54bc66[_0x3ffe('0x96')][_0x3ffe('0x79')]!=_0x55dee0['formatGroupId'])continue;const _0x4319c4=_0x54bc66['getFirstRange']();if(_0x54bc66['subType']==_0x728d52){if(_0x4319c4[_0x3ffe('0x51')](_0x55cafa,!0x0))return null;_0x185aac=_0x185aac[_0x3ffe('0x59')](_0x4319c4[_0x3ffe('0x62')])?_0x185aac:_0x4319c4[_0x3ffe('0x62')],_0x5e3b07=_0x5e3b07[_0x3ffe('0xe0')](_0x4319c4[_0x3ffe('0x9')])?_0x5e3b07:_0x4319c4['end'],_0x53f3e1?_0x4319c4['start'][_0x3ffe('0x59')](_0x53f3e1[_0x3ffe('0x70')]()[_0x3ffe('0x62')])?(_0x53f3e1[_0x3ffe('0x126')](),_0x53f3e1=_0x54bc66):_0x54bc66[_0x3ffe('0x126')]():_0x53f3e1=_0x54bc66;}else{const _0x346d55=_0x55cafa['getIntersection'](_0x4319c4);this['_cutOutSuggestionMarker'](_0x54bc66,_0x346d55);}}const _0x1fdd64=this['editor'][_0x3ffe('0xa0')][_0x3ffe('0x43')]('Users')['me'],_0x473222=_0x3a1dd6(),_0x5a4d5d=_0x1fdd64['id'];if(_0x53f3e1)return this['_setSuggestionRange'](_0x53f3e1,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x185aac,_0x5e3b07)),_0x53f3e1;{const _0x36b0f4=this['_setSuggestionData']({'id':_0x473222,'type':_0x3ffe('0xe2')+_0x728d52,'data':_0x55dee0,'createdAt':new Date(),'authorId':_0x5a4d5d,'attributes':_0x16be80});return this['_addSuggestionMarker'](_0x3ffe('0xe2')+_0x728d52,_0x473222,_0x5a4d5d,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x185aac,_0x5e3b07)),_0x36b0f4;}}[_0x3ffe('0xcf')](_0x510267,_0x1586c9,_0x4fd92b=[],_0x3d4cd4=null,_0x405482={}){_0x1586c9[_0x3ffe('0x79')]||(_0x1586c9[_0x3ffe('0x79')]=_0x1586c9[_0x3ffe('0xa7')]);const _0x5d870b=_0x510267[0x0];_0x1586c9['multipleBlocks']=_0x5d870b['is'](_0x3ffe('0x46')),_0x3d4cd4=_0x3d4cd4||$t(_0x1586c9);const _0x2fbca3=_0x4fd92b[_0x3ffe('0x3e')](_0x47fcb6=>Rt(_0x47fcb6,this[_0x3ffe('0x115')])),_0xb9153f=_0x5d870b['is'](_0x3ffe('0x46'))?_0x510267:_0x510267[_0x3ffe('0x3e')](_0x52439f=>Rt(_0x52439f,this[_0x3ffe('0x115')]));if(_0x3ffe('0x29')===this[_0x3ffe('0xb')]){const _0x7c0d46=this['_suggestionFactory']['getSuggestionCallback'](_0x3ffe('0x22'),_0x3d4cd4,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x7c0d46(_0xb9153f,_0x1586c9,_0x405482)),null;}_0x2fbca3[_0x3ffe('0xc')](..._0xb9153f);let _0x1f5aa3=!0x0;for(const _0x519922 of _0x2fbca3)if(!this[_0x3ffe('0xd')](_0x519922)){_0x1f5aa3=!0x1;break;}if(_0x1f5aa3&&_0x3ffe('0xa2')!==this['_trackFormatChanges']){const _0x8987d0=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('formatBlock',_0x3d4cd4,_0x3ffe('0xeb'));return this[_0x3ffe('0x107')](()=>_0x8987d0(_0xb9153f,_0x1586c9,_0x405482)),null;}const _0x6888f1=this['editor']['plugins'][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'];for(const _0x205763 of this['getSuggestions']()){if(_0x205763[_0x3ffe('0xfe')]['id']!=_0x6888f1['id'])continue;if('formatBlock'!=_0x205763[_0x3ffe('0xd4')]||_0x205763[_0x3ffe('0x96')][_0x3ffe('0x79')]!=_0x1586c9[_0x3ffe('0x79')])continue;const _0x8a11ef=_0x205763[_0x3ffe('0x8e')]==_0x3d4cd4;for(let _0x64f8d2=0x0;_0x64f8d2<_0xb9153f[_0x3ffe('0x97')];_0x64f8d2++){const _0x20f5e0=_0xb9153f[_0x64f8d2];for(const _0x54baf6 of _0x205763[_0x3ffe('0x9b')]()){const _0x2b5f5b=_0x54baf6[_0x3ffe('0x4b')]();if(_0x20f5e0['isEqual'](_0x2b5f5b)){_0x8a11ef?(_0xb9153f['splice'](_0x64f8d2,0x1),_0x64f8d2--):_0x205763['removeMarker'](_0x54baf6[_0x3ffe('0x9a')]);break;}}}}if(0x0==_0xb9153f[_0x3ffe('0x97')])return null;const _0x3e3c06=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('formatBlock',_0x3d4cd4,'join');for(const _0x5ce9c1 of this[_0x3ffe('0x30')]())if(_0x5ce9c1[_0x3ffe('0xfe')]['id']==_0x6888f1['id']&&_0x3ffe('0x22')==_0x5ce9c1[_0x3ffe('0xd4')]&&_0x5ce9c1[_0x3ffe('0x96')][_0x3ffe('0x79')]==_0x1586c9[_0x3ffe('0x79')]&&_0x5ce9c1[_0x3ffe('0x8e')]==_0x3d4cd4&&(_0x3e3c06(_0x5ce9c1[_0x3ffe('0x16')](),_0xb9153f)||_0x3e3c06(_0xb9153f,_0x5ce9c1[_0x3ffe('0x16')]()))){for(const _0x21e589 of _0xb9153f)_0x5ce9c1['addRange'](_0x21e589);return _0x5ce9c1;}const _0x10df83=_0x3a1dd6(),_0x46ad7b=_0x6888f1['id'],_0x4c6568=_0x3ffe('0xe2')+_0x3d4cd4,_0x555a4b=this[_0x3ffe('0xdf')]({'id':_0x10df83,'type':_0x4c6568,'data':_0x1586c9,'createdAt':new Date(),'authorId':_0x46ad7b,'attributes':_0x405482});for(const _0xfcb27b of _0xb9153f)this[_0x3ffe('0x93')](_0x4c6568,_0x10df83,_0x46ad7b,_0xfcb27b,_0x5dd847['getMultiRangeId']());return _0x555a4b;}[_0x3ffe('0xf9')](_0x3d5fa9,_0xbbe07b=null,_0x676a04={}){if(_0x3d5fa9[_0x3ffe('0x7a')])return null;const _0x497972=this[_0x3ffe('0x119')]['plugins'][_0x3ffe('0x43')]('Users')['me'],_0x2f0169=new _0x2a7d37(_0x3d5fa9['start'],_0x3d5fa9[_0x3ffe('0x9')]);for(const {suggestion:_0x72efa6,meta:_0x54bf56}of this[_0x3ffe('0x12c')](_0x2f0169,_0x3ffe('0x52')))if(_0x54bf56[_0x3ffe('0xda')]&&!_0x54bf56[_0x3ffe('0x3')]){if(_0x72efa6[_0x3ffe('0xf7')]){const _0x435691=_0x72efa6[_0x3ffe('0x16')]()[_0x3ffe('0x99')](_0x544158=>_0x3ffe('0xbb')!=_0x544158['root']['rootName']);_0x435691[_0x3ffe('0xd0')](_0x208ede=>_0x2f0169[_0x3ffe('0x51')](_0x208ede,!0x0))&&_0x72efa6[_0x3ffe('0x10c')]();if(_0x435691[_0x3ffe('0x82')](_0x56d026=>_0x56d026[_0x3ffe('0x51')](_0x2f0169,!0x0))){const _0x3d987d=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0xa8'),_0xbbe07b,_0x3ffe('0xeb'));return this[_0x3ffe('0x107')](()=>_0x3d987d([_0x2f0169],null,_0x676a04)),null;}}else{const _0x39c912=_0x2f0169[_0x3ffe('0x5')](_0x72efa6[_0x3ffe('0x70')]());null!==_0x39c912&&_0x72efa6[_0x3ffe('0x4a')]([_0x39c912],null,_0x676a04);}}if(_0x2f0169[_0x3ffe('0xaf')](),_0x2f0169['isCollapsed']||'$graveyard'==_0x2f0169[_0x3ffe('0x113')][_0x3ffe('0x33')])return null;let _0x1c9777=null,_0x1ab0e7=_0x2f0169[_0x3ffe('0x62')],_0x24483b=_0x2f0169[_0x3ffe('0x9')];for(const {suggestion:_0xdcbb61,meta:_0x5c6442}of this['_findSuggestions'](_0x2f0169,_0x3ffe('0xa8')))if(_0x5c6442[_0x3ffe('0xda')]){if(_0xdcbb61['isMultiRange']&&this[_0x3ffe('0xae')]){let _0x4777bf=!0x0;for(const _0x37be49 of _0xdcbb61['getRanges']()){if(_0x37be49[_0x3ffe('0x51')](_0x2f0169,!0x0))return _0xdcbb61;_0x2f0169['containsRange'](_0x37be49)||(_0x4777bf=!0x1);}_0x4777bf&&_0xdcbb61[_0x3ffe('0x10c')]();}else{const _0x33e657=_0xdcbb61[_0x3ffe('0x70')]();if(_0x33e657[_0x3ffe('0x51')](_0x2f0169,!0x0)){if(!this[_0x3ffe('0xae')]&&_0x5c6442[_0x3ffe('0x3d')])continue;return _0xdcbb61;}_0x1ab0e7=_0x1ab0e7[_0x3ffe('0x59')](_0x33e657[_0x3ffe('0x62')])?_0x1ab0e7:_0x33e657[_0x3ffe('0x62')],_0x24483b=_0x24483b[_0x3ffe('0xe0')](_0x33e657[_0x3ffe('0x9')])?_0x24483b:_0x33e657['end'],_0x1c9777?_0x33e657[_0x3ffe('0x62')]['isBefore'](_0x1c9777[_0x3ffe('0x70')]()['start'])?(_0x1c9777[_0x3ffe('0x126')](),_0x1c9777=_0xdcbb61):_0xdcbb61['removeMarkers']():_0x1c9777=_0xdcbb61;}}if(_0x1c9777)return this['_setSuggestionRange'](_0x1c9777,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x1ab0e7,_0x24483b)),_0x1c9777;{const _0x49d3d2=_0x3a1dd6(),_0x58626e=this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x1ab0e7,_0x24483b),_0x4ea5b8=_0x497972['id'],_0x1895bd=_0xbbe07b?_0x3ffe('0xd5')+_0xbbe07b:_0x3ffe('0xa8'),_0x22c6a0=this[_0x3ffe('0xdf')]({'id':_0x49d3d2,'type':_0x1895bd,'createdAt':new Date(),'authorId':_0x4ea5b8,'attributes':_0x676a04});return this[_0x3ffe('0x93')](_0x1895bd,_0x49d3d2,_0x4ea5b8,_0x58626e),_0x22c6a0;}}['markMultiRangeDeletion'](_0x2fc496,_0x4d7b6d=_0x3ffe('0xc9'),_0x394495={}){const _0x13a3af=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'],_0x537127=_0x2fc496[_0x3ffe('0x3e')](_0x45cf99=>new _0x2a7d37(_0x45cf99['start'],_0x45cf99[_0x3ffe('0x9')])),_0x317c52=new Set();for(const _0xab0ba5 of _0x537127)for(const {suggestion:_0x285d68,meta:_0x30f5d4}of this[_0x3ffe('0x12c')](_0xab0ba5,_0x3ffe('0x52')))_0x30f5d4['isOwn']&&!_0x30f5d4[_0x3ffe('0x3')]&&_0x317c52[_0x3ffe('0x127')](_0x285d68);for(const _0x1a0e1e of _0x317c52)if(_0x1a0e1e[_0x3ffe('0xf7')]){const _0x47ddaa=_0x1a0e1e[_0x3ffe('0x16')]();(!_0x1a0e1e[_0x3ffe('0x76')]||!_0x1a0e1e['attributes']['skipNestingCheck'])&&(_0x47ddaa[_0x3ffe('0xd0')](_0xcde0d=>_0x537127['some'](_0x349c68=>_0x349c68['containsRange'](_0xcde0d,!0x0)))&&_0x1a0e1e[_0x3ffe('0x10c')]());if(_0x537127[_0x3ffe('0xd0')](_0x480d9d=>_0x47ddaa['some'](_0x136326=>_0x136326[_0x3ffe('0x51')](_0x480d9d,!0x0)))){const _0x1bed05=this['_suggestionFactory'][_0x3ffe('0xac')](_0x3ffe('0xa8'),_0x4d7b6d,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x1bed05(_0x2fc496,null,_0x394495)),null;}}else{const _0x1a4263=_0x1a0e1e[_0x3ffe('0x70')]();_0x537127['some'](_0x5906b4=>_0x5906b4[_0x3ffe('0x51')](_0x1a4263,!0x0))&&_0x1a0e1e[_0x3ffe('0x10c')]();if(_0x537127[_0x3ffe('0xd0')](_0x5cc71c=>_0x1a4263[_0x3ffe('0x51')](_0x5cc71c,!0x0))){const _0x3d7071=this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0x3ffe('0xa8'),_0x4d7b6d,_0x3ffe('0xeb'));return this['forceDefaultExecution'](()=>_0x3d7071(_0x537127,null,_0x394495)),null;}}const _0x354d60=this[_0x3ffe('0x1d')][_0x3ffe('0xac')]('deletion',_0x4d7b6d,'join');let _0x266056=null;for(const _0x2d2065 of this[_0x3ffe('0x30')]())if(_0x2d2065[_0x3ffe('0xfe')]['id']==_0x13a3af['id']&&_0x2d2065['isInContent']&&_0x3ffe('0xa8')==_0x2d2065['type']&&_0x2d2065[_0x3ffe('0x8e')]==_0x4d7b6d&&(_0x354d60(_0x2d2065['getRanges'](),_0x537127)||_0x354d60(_0x537127,_0x2d2065[_0x3ffe('0x16')]()))){if(_0x266056){if(_0x2d2065[_0x3ffe('0xcd')]&&_0x2d2065[_0x3ffe('0xcd')][_0x3ffe('0x97')])continue;for(const _0x58f6ac of _0x2d2065[_0x3ffe('0x16')]())_0x266056[_0x3ffe('0x2c')](_0x58f6ac)||_0x266056[_0x3ffe('0xe6')](_0x58f6ac);_0x2d2065[_0x3ffe('0x126')]();}else{_0x266056=_0x2d2065;for(const _0x3681fa of _0x537127)_0x2d2065[_0x3ffe('0x2c')](_0x3681fa)||_0x2d2065[_0x3ffe('0xe6')](_0x3681fa);}}if(_0x266056)return _0x266056;_0x317c52[_0x3ffe('0x4d')]();for(const _0x1ae67d of _0x537127)for(const {suggestion:_0x261e1b,meta:_0x19bf70}of this[_0x3ffe('0x12c')](_0x1ae67d,_0x3ffe('0xa8')))_0x19bf70[_0x3ffe('0xda')]&&_0x317c52[_0x3ffe('0x127')](_0x261e1b);for(const _0x51cd51 of _0x317c52){const _0x2e3e44=_0x51cd51[_0x3ffe('0x16')]();if(!_0x394495||!_0x394495[_0x3ffe('0xa6')]){if(_0x537127[_0x3ffe('0xd0')](_0x4fbd76=>_0x2e3e44[_0x3ffe('0x82')](_0x228205=>_0x228205[_0x3ffe('0x51')](_0x4fbd76,!0x0))))return _0x51cd51;}(!_0x51cd51[_0x3ffe('0x76')]||!_0x51cd51[_0x3ffe('0x76')]['skipNestingCheck'])&&(_0x2e3e44['every'](_0x499d66=>_0x537127[_0x3ffe('0x82')](_0x476a5a=>_0x476a5a[_0x3ffe('0x51')](_0x499d66,!0x0)))&&_0x51cd51['discard']());}const _0x25b4a1=_0x3a1dd6(),_0x2526e8=_0x13a3af['id'],_0x1b5edc='deletion:'+_0x4d7b6d,_0x5449ba=this[_0x3ffe('0xdf')]({'id':_0x25b4a1,'type':_0x1b5edc,'createdAt':new Date(),'authorId':_0x2526e8,'attributes':_0x394495});for(const _0x597d3b of _0x537127)_0x597d3b[_0x3ffe('0xaf')](),_0x597d3b[_0x3ffe('0x7a')]||'$graveyard'==_0x597d3b[_0x3ffe('0x113')][_0x3ffe('0x33')]||this[_0x3ffe('0x93')](_0x1b5edc,_0x25b4a1,_0x2526e8,_0x597d3b,_0x5dd847[_0x3ffe('0x57')]());return _0x5449ba;}[_0x3ffe('0xf6')](_0x212866,_0x1945ef){const _0x5e860e=_0x212866[_0x3ffe('0xe')]();this[_0x3ffe('0x115')][_0x3ffe('0x58')](_0x3d39b2=>{_0x3d39b2[_0x3ffe('0x2')](_0x5e860e,{'range':_0x1945ef});});}[_0x3ffe('0xf8')](_0x56810c){const _0x3a6160=_0x56810c['id'],_0x4d3e7c=this[_0x3ffe('0x119')]['config'][_0x3ffe('0x43')](_0x3ffe('0x11c'));this[_0x3ffe('0x5b')][_0x3ffe('0x41')](_0x3a6160)||this[_0x3ffe('0x5b')]['addCommentThread']({'channelId':_0x4d3e7c,'threadId':_0x3a6160,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xdb65e0=this[_0x3ffe('0x5b')][_0x3ffe('0x67')](_0x3a6160);_0xdb65e0['unbind'](_0x3ffe('0xee')),_0xdb65e0[_0x3ffe('0xee')]=!0x1,_0x56810c[_0x3ffe('0xcd')]=_0xdb65e0;}[_0x3ffe('0xe1')](_0x1e1f92,_0x1f6ad1,_0x2db023,_0x2b4a4d){if(_0x1e1f92['type']!=_0x1f6ad1||_0x1e1f92[_0x3ffe('0x8e')]!=_0x2db023||_0x1e1f92[_0x3ffe('0xaa')]['id']!=_0x2b4a4d)throw this['editor'][_0x3ffe('0xca')](_0x3ffe('0x49')),new _0x37a43b(_0x3ffe('0x49'),this);}[_0x3ffe('0x11a')](_0x24afa0,_0x71eba1){const _0x54ac01=_0x24afa0[_0x3ffe('0x70')]();if(_0x71eba1[_0x3ffe('0x19')](_0x54ac01))_0x24afa0['removeMarkers']();else{if(_0x54ac01[_0x3ffe('0x51')](_0x71eba1)){const _0xa17a1=this['_model'][_0x3ffe('0x12f')](_0x71eba1[_0x3ffe('0x62')][_0x3ffe('0x42')],'end');this[_0x3ffe('0xf6')](_0x24afa0,this[_0x3ffe('0x115')]['createRange'](_0x54ac01['start'],_0xa17a1));const _0x265416=_0x3a1dd6(),_0x5227d6=_0x24afa0[_0x3ffe('0xaa')]['id'],_0x395224=_0x24afa0[_0x3ffe('0xd4')]+':'+_0x24afa0[_0x3ffe('0x8e')];this[_0x3ffe('0xdf')]({'id':_0x265416,'type':_0x395224,'createdAt':new Date(),'authorId':_0x5227d6,'data':_0x24afa0[_0x3ffe('0x96')],'attributes':_0x24afa0[_0x3ffe('0x76')]});const _0x4da968=this[_0x3ffe('0x115')]['createPositionAt'](_0x71eba1['end'][_0x3ffe('0x8')],_0x3ffe('0x27')),_0x4103cf=this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x4da968,_0x54ac01['end']);this[_0x3ffe('0x93')](_0x395224,_0x265416,_0x5227d6,_0x4103cf);}else{if(_0x54ac01[_0x3ffe('0x9e')](_0x71eba1[_0x3ffe('0x62')])){const _0x28acc0=this[_0x3ffe('0x115')][_0x3ffe('0x12f')](_0x71eba1[_0x3ffe('0x62')][_0x3ffe('0x42')],'end');this[_0x3ffe('0xf6')](_0x24afa0,this['_model']['createRange'](_0x54ac01[_0x3ffe('0x62')],_0x28acc0));}else{const _0x54c46d=this[_0x3ffe('0x115')]['createPositionAt'](_0x71eba1['end']['parent'],_0x3ffe('0x27'));this['_setSuggestionRange'](_0x24afa0,this[_0x3ffe('0x115')]['createRange'](_0x54c46d,_0x54ac01[_0x3ffe('0x9')]));}}}}[_0x3ffe('0xd')](_0x990059){for(const {suggestion:_0x518c1b,meta:_0x3fdf28}of this['_findSuggestions'](_0x990059,'insertion')){if(!_0x3fdf28[_0x3ffe('0xda')])continue;const _0x294382=_0x518c1b[_0x3ffe('0x16')]();for(const _0x508aa1 of _0x294382)if(!_0x990059['getDifference'](_0x508aa1)[_0x3ffe('0x97')])return!0x0;}return!0x1;}[_0x3ffe('0xbe')](_0x525347){const _0x6a15c6=this[_0x3ffe('0x119')]['plugins']['get'](_0x3ffe('0xc7'))[_0x3ffe('0x87')](_0x525347);if(!_0x6a15c6)throw new _0x37a43b(_0x3ffe('0x80'),this);return _0x6a15c6;}[_0x3ffe('0x2b')](_0x1aa5e9){const _0x3c8bcd=this[_0x3ffe('0x119')][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7')),_0x4000b0=_0x56ef00(_0x3ffe('0xab')+_0x1aa5e9),_0x55eadc=_0x3c8bcd[_0x3ffe('0x87')](_0x4000b0);return _0x55eadc||_0x3c8bcd[_0x3ffe('0x68')]({'id':_0x4000b0,'name':_0x1aa5e9});}[_0x3ffe('0x112')](_0x33efa4,_0x280ec9,_0x1a5dc7,_0x3fd152,_0xcb1b75){const _0x55dd74=this[_0x3ffe('0xbe')](_0x3fd152),_0x5846d6=this[_0x3ffe('0x1d')]['buildSuggestion'](_0x33efa4,_0x280ec9,_0x1a5dc7,_0x55dd74,_0xcb1b75,_0x2111d1=>this[_0x3ffe('0xa5')](_0x1a5dc7,{'attributes':_0x2111d1}));return this['listenTo'](_0x5846d6,_0x3ffe('0xeb'),()=>{this['_updateSuggestionData'](_0x1a5dc7,{'state':_0x3ffe('0xe5')});},{'priority':_0x3ffe('0x54')}),this[_0x3ffe('0xb0')](_0x5846d6,'discard',()=>{this[_0x3ffe('0xa5')](_0x1a5dc7,{'state':_0x3ffe('0x3f')});},{'priority':_0x3ffe('0x54')}),this[_0x3ffe('0x72')][_0x3ffe('0x12a')](_0x1a5dc7,_0x5846d6),this['_suggestionState']['set'](_0x5846d6,_0x3ffe('0x11d')),_0x5846d6;}[_0x3ffe('0x4c')](_0x1070bb){const _0x2448e4=_0x1070bb[_0x3ffe('0x5c')](':');return{'group':_0x2448e4[0x0],'type':_0x2448e4[0x1],'subType':_0x2448e4[_0x3ffe('0x97')]>=0x5?_0x2448e4[0x2]:null,'id':_0x2448e4[_0x3ffe('0x97')]<0x5?_0x2448e4[0x2]:_0x2448e4[0x3],'authorId':_0x2448e4['length']<0x5?_0x2448e4[0x3]:_0x2448e4[0x4],'markerCount':0x6==_0x2448e4[_0x3ffe('0x97')]?_0x2448e4[0x5]:null};}[_0x3ffe('0xdb')](_0x722a34,_0x314d3d,_0x1f2d8b){const _0x5d6e0c=_0x722a34[_0x3ffe('0x70')](),_0x4f6137=_0x5d6e0c[_0x3ffe('0x62')],_0xa17232=_0x5d6e0c[_0x3ffe('0x9')];this[_0x3ffe('0xf6')](_0x722a34,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x4f6137,_0x314d3d));const _0x5c57df=_0x3a1dd6(),_0x30e3a2=_0x722a34['creator']['id'],_0x5375f0=_0x722a34[_0x3ffe('0xd4')]+(_0x722a34[_0x3ffe('0x8e')]?':'+_0x722a34['subType']:'');this[_0x3ffe('0xdf')]({'id':_0x5c57df,'type':_0x5375f0,'createdAt':new Date(),'authorId':_0x30e3a2,'originalSuggestionId':_0x722a34['id'],'attributes':_0x722a34[_0x3ffe('0x76')],'data':_0x722a34[_0x3ffe('0x96')]}),_0x3ffe('0x22')==_0x722a34[_0x3ffe('0xd4')]&&(_0x1f2d8b=this[_0x3ffe('0x115')]['createPositionBefore'](_0x1f2d8b[_0x3ffe('0x8')])),this[_0x3ffe('0x93')](_0x5375f0,_0x5c57df,_0x30e3a2,this[_0x3ffe('0x115')][_0x3ffe('0x3c')](_0x1f2d8b,_0xa17232));}[_0x3ffe('0x12c')](_0xbb3341,_0x54447a=null){const _0x1b63dc=[],_0x183e80=this[_0x3ffe('0x115')][_0x3ffe('0xb5')],_0x4b9b9c=this['editor'][_0x3ffe('0xa0')][_0x3ffe('0x43')](_0x3ffe('0xc7'))['me'];for(const _0x4099e3 of this['getSuggestions']())if(_0x4099e3['isInContent']&&(!_0x54447a||_0x4099e3[_0x3ffe('0xd4')]==_0x54447a))for(const _0x461bca of _0x4099e3[_0x3ffe('0x16')]()){const _0x227b6c=_0xbb3341['start'][_0x3ffe('0x19')](_0x461bca[_0x3ffe('0x9')])||_0xbb3341[_0x3ffe('0x9')]['isEqual'](_0x461bca['start']);if(_0x227b6c||_0xbb3341[_0x3ffe('0x5')](_0x461bca)){const _0x21269b=_0xbb3341[_0x3ffe('0x51')](_0x461bca)&&Bt(_0x183e80,_0x461bca[_0x3ffe('0x62')],_0xbb3341),_0x104786=_0x461bca[_0x3ffe('0x51')](_0xbb3341)&&Bt(_0x183e80,_0xbb3341['start'],_0x461bca);_0x1b63dc[_0x3ffe('0xc')]({'suggestion':_0x4099e3,'meta':{'isOwn':_0x4b9b9c==_0x4099e3[_0x3ffe('0xfe')],'isNextTo':_0x227b6c,'isInsideObject':_0x21269b,'containsRangeInObject':_0x104786}});break;}}return _0x1b63dc;}['_addSuggestionMarker'](_0x13d151,_0x60f370,_0x151640,_0x33f330,_0xd81f9b){this['_model'][_0x3ffe('0x58')](_0x3f604a=>{let _0x4464d3=_0x3ffe('0xe8')+_0x13d151+':'+_0x60f370+':'+_0x151640;_0xd81f9b&&(_0x4464d3=_0x4464d3+':'+_0xd81f9b),_0x3f604a[_0x3ffe('0xd7')](_0x4464d3,{'range':_0x33f330,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ffe('0xd1')](_0x2f4be8){const _0x1b934f=_0x2f4be8[_0x3ffe('0x6a')],_0x3a1298=_0x2f4be8[_0x3ffe('0x4e')];_0x2f4be8[_0x3ffe('0x6a')]=null,null!=_0x1b934f&&(_0x1b934f[_0x3ffe('0x4e')]=null),_0x2f4be8['next']=null,null!=_0x3a1298&&(_0x3a1298[_0x3ffe('0x6a')]=null),'ready'==this[_0x3ffe('0xce')]['get'](_0x2f4be8)&&(this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x2f4be8,_0x3ffe('0x134')),this[_0x3ffe('0xb4')](_0x3ffe('0x4'),_0x2f4be8,_0x1b934f,_0x3a1298));}[_0x3ffe('0xdf')](_0x1e4c13){const _0x161365=_0x1e4c13['id'],_0x1e49a1=this[_0x3ffe('0x91')](_0x1e4c13);if(this['_adapter']&&this[_0x3ffe('0x120')][_0x3ffe('0xba')]){const _0x1e7c8b=this[_0x3ffe('0x119')]['plugins'][_0x3ffe('0x43')](_0x3ffe('0x4f')),_0x10a00b=_0x1e49a1['hasComments'],_0x400933=_0x1e49a1[_0x3ffe('0x8e')]?_0x1e49a1[_0x3ffe('0xd4')]+':'+_0x1e49a1[_0x3ffe('0x8e')]:_0x1e49a1['type'],_0x1efba6=this[_0x3ffe('0x119')][_0x3ffe('0x86')],_0x204d5a=_0x1e7c8b[_0x3ffe('0x127')](_0x34e506(_0x1efba6,_0x3ffe('0x131'))),_0x2ab233={'id':_0x161365,'type':_0x400933,'hasComments':_0x10a00b,'data':_0x1e4c13[_0x3ffe('0x96')]||null,'originalSuggestionId':_0x1e4c13[_0x3ffe('0xe9')]||null,'attributes':_0x1e49a1['attributes']};this[_0x3ffe('0x120')][_0x3ffe('0xba')](_0x2ab233)['then'](_0x42cd27=>{_0x1e49a1['_saved']=!0x0,_0x1e7c8b[_0x3ffe('0x118')](_0x204d5a),_0x42cd27&&_0x42cd27[_0x3ffe('0xd6')]&&(this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x161365)[_0x3ffe('0xd6')]=_0x42cd27['createdAt']);})[_0x3ffe('0x37')](_0x393c29=>{throw _0x3d2ca4('error-saving-suggestion-data-suggestion-discarded'),this[_0x3ffe('0x119')]['model'][_0x3ffe('0x11')]({'isUndoable':!0x1},()=>{_0x1e49a1['discard']();}),_0x1e49a1['stopListening'](),this[_0x3ffe('0x72')][_0x3ffe('0x94')](_0x1e49a1['id']),this[_0x3ffe('0xce')][_0x3ffe('0x94')](_0x1e49a1),_0x393c29;});}return _0x1e49a1;}['_updateSuggestionData'](_0x13baad,_0xbec283){const _0x2c1bf1=this['editor']['plugins']['get'](_0x3ffe('0x4f')),_0x44cb4c=this[_0x3ffe('0x14')](_0x13baad);if(this[_0x3ffe('0x120')]&&this[_0x3ffe('0x120')][_0x3ffe('0x75')]){if(_0x44cb4c[_0x3ffe('0xad')]){const _0x39da6c=_0x2c1bf1[_0x3ffe('0x127')](_0x34e506(this[_0x3ffe('0x119')]['locale'],_0x3ffe('0x131')));this[_0x3ffe('0x120')]['updateSuggestion'](_0x13baad,_0xbec283)[_0x3ffe('0x102')](()=>{_0x2c1bf1[_0x3ffe('0x118')](_0x39da6c);});}else _0x44cb4c['on'](_0x3ffe('0x8a'),()=>{this[_0x3ffe('0xa5')](_0x13baad,_0xbec283);});}}[_0x3ffe('0x47')](_0x44102d){if(!this[_0x3ffe('0x120')]||!this[_0x3ffe('0x120')][_0x3ffe('0x14')])throw new _0x37a43b('track-changes-adapter-missing-getsuggestion',this);return this[_0x3ffe('0x120')]['getSuggestion'](_0x44102d);}['_handleNewSuggestionMarker'](_0x51d13f){const {id:_0x49d567,type:_0x5823be,subType:_0x12e58c,authorId:_0x3346d4}=this[_0x3ffe('0x4c')](_0x51d13f),_0x2736ff=this[_0x3ffe('0x72')][_0x3ffe('0x43')](_0x49d567)||this[_0x3ffe('0x112')](_0x5823be,_0x12e58c,_0x49d567,_0x3346d4,{});switch(this[_0x3ffe('0xe1')](_0x2736ff,_0x5823be,_0x12e58c,_0x3346d4),this[_0x3ffe('0xce')][_0x3ffe('0x43')](_0x2736ff)){case'notReady':this[_0x3ffe('0x47')](_0x49d567)['then'](_0x5c1485=>{let _0x420b7e=Promise['resolve']();_0x5c1485[_0x3ffe('0xb9')]&&(_0x420b7e=this[_0x3ffe('0x5b')][_0x3ffe('0xec')]({'channelId':this['editor'][_0x3ffe('0xd8')][_0x3ffe('0x43')]('collaboration.channelId'),'threadId':_0x49d567})),_0x420b7e['then'](()=>{this['addSuggestionData'](_0x5c1485)[_0x3ffe('0xad')]=!0x0;});}),this['_suggestionState'][_0x3ffe('0x12a')](_0x2736ff,_0x3ffe('0x104'));break;case _0x3ffe('0x134'):this[_0x3ffe('0xa5')](_0x49d567,{'state':'open'});case _0x3ffe('0xfa'):this[_0x3ffe('0xce')][_0x3ffe('0x12a')](_0x2736ff,_0x3ffe('0x6c')),this[_0x3ffe('0xb4')](_0x3ffe('0x137'),_0x2736ff);break;case _0x3ffe('0x6c'):this['fire'](_0x3ffe('0x9f'),_0x2736ff);}return _0x2736ff[_0x3ffe('0x20')](_0x51d13f),_0x2736ff;}['_refreshSuggestionsChain'](_0x469b0d){const _0x116181=Array[_0x3ffe('0x13')](_0x469b0d)[_0x3ffe('0x99')](_0x2d81c6=>!_0x2d81c6[_0x3ffe('0xf7')]),_0x25682f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x139d6d=>!_0x139d6d[_0x3ffe('0xf7')]),_0x4aef36=_0x25682f[_0x3ffe('0x99')](_0x36c6f2=>!_0x469b0d[_0x3ffe('0x12e')](_0x36c6f2)),_0x310f12=new Map(_0x25682f[_0x3ffe('0x3e')](_0xdbcc82=>[_0xdbcc82,this[_0x3ffe('0x1d')][_0x3ffe('0xac')](_0xdbcc82['type'],_0xdbcc82['subType'],_0x3ffe('0x35'))])),_0x123ae7=new Map(_0x25682f[_0x3ffe('0x3e')](_0x4fe362=>[_0x4fe362,_0x4fe362[_0x3ffe('0x70')]()])),_0x2343f7=new Set(),_0x316d42=new Set();for(let _0x411733=0x0;_0x411733<_0x116181['length'];_0x411733++)_0xd2a2cc(_0x116181[_0x411733],_0x116181,_0x411733+0x1);for(let _0x819fa9=0x0;_0x819fa9<_0x116181['length'];_0x819fa9++)_0xd2a2cc(_0x116181[_0x819fa9],_0x4aef36,0x0);for(let _0x4db932=0x0;_0x4db932<_0x116181[_0x3ffe('0x97')];_0x4db932++){const _0x169984=_0x116181[_0x4db932];!_0x316d42['has'](_0x169984)&&_0x169984[_0x3ffe('0x6a')]&&(_0x169984[_0x3ffe('0x6a')][_0x3ffe('0x4e')]===_0x169984&&(_0x169984['previous'][_0x3ffe('0x4e')]=null),_0x169984['previous']=null),!_0x2343f7[_0x3ffe('0x12e')](_0x169984)&&_0x169984[_0x3ffe('0x4e')]&&(_0x169984[_0x3ffe('0x4e')]['previous']===_0x169984&&(_0x169984[_0x3ffe('0x4e')][_0x3ffe('0x6a')]=null),_0x169984[_0x3ffe('0x4e')]=null);}function _0xd2a2cc(_0x587c12,_0x3ff766,_0x3fa9de){for(let _0x487c4a=_0x3fa9de;_0x487c4a<_0x3ff766['length'];_0x487c4a++){const _0x40e953=_0x3dee1d(_0x587c12,_0x3ff766[_0x487c4a]);_0x40e953&&(_0x40e953[0x0][_0x3ffe('0x4e')]=_0x40e953[0x1],_0x40e953[0x1]['previous']=_0x40e953[0x0],_0x2343f7[_0x3ffe('0x127')](_0x40e953[0x0]),_0x316d42[_0x3ffe('0x127')](_0x40e953[0x1]));}}function _0x3dee1d(_0x39f968,_0x9acfb8){if(_0x39f968[_0x3ffe('0xfe')]['id']!==_0x9acfb8[_0x3ffe('0xfe')]['id'])return null;const _0x3be2f0=_0x310f12['get'](_0x39f968)(_0x39f968,_0x9acfb8,_0x123ae7['get'](_0x39f968),_0x123ae7[_0x3ffe('0x43')](_0x9acfb8));if(!_0x3be2f0)return null;return _0x310f12[_0x3ffe('0x43')](_0x9acfb8)(_0x39f968,_0x9acfb8,_0x123ae7['get'](_0x39f968),_0x123ae7[_0x3ffe('0x43')](_0x9acfb8))?_0x3be2f0[0x1][_0x3ffe('0xcd')]&&_0x3be2f0[0x1][_0x3ffe('0xcd')][_0x3ffe('0x97')]?null:_0x3be2f0:null;}}[_0x3ffe('0x106')](_0x296deb){const _0x23ddd0=Array['from'](_0x296deb),_0x134785=this[_0x3ffe('0x30')]({'skipNotAttached':!0x0}),_0x2bd0af=_0x134785['filter'](_0x20f334=>!_0x296deb[_0x3ffe('0x12e')](_0x20f334)),_0xcdc094=new Map(_0x23ddd0[_0x3ffe('0x3e')](_0x1b8719=>[_0x1b8719,this[_0x3ffe('0x1d')]['getSuggestionCallback'](_0x1b8719[_0x3ffe('0xd4')],_0x1b8719[_0x3ffe('0x8e')],_0x3ffe('0xc8'))])),_0x178f1b=new Map(_0x134785[_0x3ffe('0x3e')](_0x17f2a4=>[_0x17f2a4,_0x17f2a4[_0x3ffe('0x16')]()]));for(let _0x745a90=0x0;_0x745a90<_0x23ddd0['length'];_0x745a90++){if(_0x40afa9(this,_0x23ddd0[_0x745a90],_0x23ddd0,_0x745a90+0x1))return!0x0;}for(let _0x5a7aad=0x0;_0x5a7aad<_0x23ddd0[_0x3ffe('0x97')];_0x5a7aad++){if(_0x40afa9(this,_0x23ddd0[_0x5a7aad],_0x2bd0af,0x0))return!0x0;}return!0x1;function _0x40afa9(_0x3f3d23,_0x252263,_0x3ee6c7,_0x4330fd){for(let _0x5d7398=_0x4330fd;_0x5d7398<_0x3ee6c7[_0x3ffe('0x97')];_0x5d7398++){const _0x463b5e=_0x3ee6c7[_0x5d7398];if(_0x463b5e[_0x3ffe('0xd4')]!==_0x252263[_0x3ffe('0xd4')]||_0x463b5e[_0x3ffe('0xfe')]['id']!==_0x252263['author']['id']||_0x463b5e['subType']!==_0x252263[_0x3ffe('0x8e')])continue;const _0x5166b9=_0xcdc094['get'](_0x252263),_0x369a9f=_0x178f1b[_0x3ffe('0x43')](_0x252263),_0x18ea78=_0x178f1b['get'](_0x463b5e),_0xa9750c=_0x252263[_0x3ffe('0xcd')]&&_0x252263[_0x3ffe('0xcd')]['length'],_0x4df74f=_0x463b5e['commentThread']&&_0x463b5e[_0x3ffe('0xcd')][_0x3ffe('0x97')];if(!_0xa9750c&&_0x5166b9(_0x18ea78,_0x369a9f))return _0x3f3d23[_0x3ffe('0x7d')](_0x463b5e,_0x252263),_0x178f1b[_0x3ffe('0x94')](_0x252263),!0x0;if(!_0x4df74f&&_0x5166b9(_0x369a9f,_0x18ea78))return _0x3f3d23[_0x3ffe('0x7d')](_0x252263,_0x463b5e),_0x178f1b[_0x3ffe('0x94')](_0x463b5e),!0x0;}return!0x1;}}[_0x3ffe('0x7d')](_0xe34ac,_0xb91545){if(_0xe34ac[_0x3ffe('0xf7')])for(const _0x468b38 of _0xb91545['getRanges']())_0xe34ac['addRange'](_0x468b38);else{const _0x5111b8=_0xb91545['getFirstRange']()[_0x3ffe('0x9')];this[_0x3ffe('0xf6')](_0xe34ac,this['_model']['createRange'](_0xe34ac['getFirstRange']()['start'],_0x5111b8));}_0xb91545[_0x3ffe('0x126')]();}}class Dt{constructor(_0x180b5c){this[_0x3ffe('0xa1')]=_0x180b5c,this['_model']=_0x180b5c['model'],this[_0x3ffe('0xc4')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3ffe('0xa9')]();}['buildSuggestion'](_0x28d909,_0x228353,_0x3f309f,_0x487ce0,_0x5ee557,_0x3edb3c){return new _0x5dd847(this['_model'],{'type':_0x28d909,'subType':_0x228353,'id':_0x3f309f,'author':_0x487ce0,'creator':_0x487ce0,'attributes':_0x5ee557,'onAttributesChange':_0x3edb3c,'onAccept':(..._0x39ea6e)=>this[_0x3ffe('0xac')](_0x28d909,_0x228353,_0x3ffe('0xeb'))(..._0x39ea6e),'onDiscard':(..._0x1ed2e2)=>this['getSuggestionCallback'](_0x28d909,_0x228353,_0x3ffe('0x10c'))(..._0x1ed2e2)});}[_0x3ffe('0x122')](_0x5541e9,_0x36b192,_0x4bfd6b,_0x185181){const _0x371690=_0x5541e9+':'+_0x36b192+':'+_0x4bfd6b;this[_0x3ffe('0xc4')][_0x3ffe('0x12a')](_0x371690,_0x185181);}[_0x3ffe('0xac')](_0x1de212,_0x37ce2e,_0x16d260){const _0x321a2b=_0x1de212+':'+_0x37ce2e+':'+_0x16d260;return this[_0x3ffe('0xc4')]['get'](_0x321a2b)||this['_defaultCallbacks'][_0x3ffe('0x43')](_0x1de212+':'+_0x16d260);}[_0x3ffe('0xa9')](){const _0x45c8ac=()=>{},_0x1ce29a=_0x1b505a=>{_0x1b505a[_0x3ffe('0xc6')]((_0x1e38c7,_0x65f4a2)=>_0x1e38c7[_0x3ffe('0x62')]['isBefore'](_0x65f4a2[_0x3ffe('0x62')])?0x1:-0x1),this[_0x3ffe('0x115')][_0x3ffe('0x58')](_0x4dd55f=>{for(const _0x41cb86 of _0x1b505a){let _0x1a2fd7;_0x1a2fd7=_0x41cb86[_0x3ffe('0x9')][_0x3ffe('0x12b')]&&_0x41cb86['end'][_0x3ffe('0x8')]==_0x41cb86[_0x3ffe('0x62')][_0x3ffe('0x10f')]?_0x4dd55f['createSelection'](_0x41cb86[_0x3ffe('0x62')][_0x3ffe('0x10f')],'on'):_0x4dd55f[_0x3ffe('0x36')](_0x41cb86),this[_0x3ffe('0x115')]['deleteContent'](_0x1a2fd7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3e74d9=(_0x1a3a72,_0x12601)=>{this['_model']['change'](_0x3339e1=>{const {commandName:_0x44eb51,commandParams:_0x18c37c=[]}=_0x12601,_0x9299e5=_0x1a3a72[_0x3ffe('0x3e')](_0x4c3e06=>(_t(_0x4c3e06)&&(_0x4c3e06=this[_0x3ffe('0x115')]['createRange'](_0x4c3e06[_0x3ffe('0x9')])),_0x4c3e06))[_0x3ffe('0x99')](_0x5b9c7f=>_0x3ffe('0xbb')!==_0x5b9c7f[_0x3ffe('0x113')][_0x3ffe('0x33')]);if(_0x9299e5[_0x3ffe('0x97')]<0x1)return;const _0x41514f=Array[_0x3ffe('0x13')](this[_0x3ffe('0x115')][_0x3ffe('0x32')][_0x3ffe('0x8c')][_0x3ffe('0x16')]())[_0x3ffe('0x3e')](_0x2762f1=>_0x2a7d37[_0x3ffe('0xef')](_0x2762f1));_0x3339e1[_0x3ffe('0xe7')](_0x9299e5);for(const _0xb41e6b of this[_0x3ffe('0xa1')][_0x3ffe('0xf0')][_0x3ffe('0xf0')]())_0xb41e6b[_0x3ffe('0x15')]();_0x18c37c[_0x3ffe('0xc')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x3ffe('0x3b')](_0x44eb51,..._0x18c37c);const _0x15d5c0=_0x41514f['filter'](_0x5ac104=>_0x3ffe('0xbb')!=_0x5ac104[_0x3ffe('0x113')]['rootName']);_0x15d5c0[_0x3ffe('0x97')]>0x0&&_0x3339e1['setSelection'](_0x15d5c0);for(const _0x3e057f of _0x41514f)_0x3e057f[_0x3ffe('0xaf')]();});},_0x222b67=(_0x40f0cf,_0xfce462)=>0x1==_0x40f0cf[_0x3ffe('0x97')]&&0x1==_0xfce462[_0x3ffe('0x97')]&&_0x40f0cf[0x0][_0x3ffe('0x9')][_0x3ffe('0x19')](_0xfce462[0x0][_0x3ffe('0x62')]),_0x2556ff=(_0x97e2c4,_0x4bbcd1,_0x1e2e88,_0x3641c)=>xt(_0x97e2c4,_0x4bbcd1,_0x1e2e88,_0x3641c,this[_0x3ffe('0x115')])?[_0x97e2c4,_0x4bbcd1]:xt(_0x4bbcd1,_0x97e2c4,_0x3641c,_0x1e2e88,this['_model'])?[_0x4bbcd1,_0x97e2c4]:null;this['_defaultCallbacks']['set'](_0x3ffe('0xdd'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x26'),_0x1ce29a),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')]('insertion:join',_0x222b67),this[_0x3ffe('0xb8')]['set'](_0x3ffe('0x138'),_0x2556ff),this['_defaultCallbacks']['set'](_0x3ffe('0x103'),_0x1ce29a),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x10e'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')]('deletion:join',_0x222b67),this['_defaultCallbacks']['set'](_0x3ffe('0x7f'),_0x2556ff),this['_defaultCallbacks'][_0x3ffe('0x12a')](_0x3ffe('0x6f'),_0x3e74d9),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x50'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0xbd'),_0x222b67),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x10a'),_0x45c8ac),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0x23'),_0x3e74d9),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')]('formatBlock:discard',_0x45c8ac),this['_defaultCallbacks'][_0x3ffe('0x12a')](_0x3ffe('0x121'),_0x222b67),this[_0x3ffe('0xb8')][_0x3ffe('0x12a')](_0x3ffe('0xa'),_0x45c8ac);}}function Bt(_0x58e26e,_0x549688,_0x3a7748){for(const _0x5a7616 of _0x549688['parent'][_0x3ffe('0x74')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a7616[_0x3ffe('0x113')]==_0x5a7616)return!0x1;if(!_0x3a7748[_0x3ffe('0xb6')](_0x5a7616))return!0x1;if(_0x58e26e[_0x3ffe('0xcc')](_0x5a7616)||_0x58e26e['isLimit'](_0x5a7616))return!0x0;}return!0x1;}function _t(_0x3c8db9){return _0x3c8db9[_0x3ffe('0x9')][_0x3ffe('0x8')]==_0x3c8db9[_0x3ffe('0x62')][_0x3ffe('0x10f')]&&_0x3c8db9[_0x3ffe('0x9')]['isAtStart'];}function Mt(_0x180bb6,_0x55366e,_0x20d403,_0x4f3f66){const _0x2e134c=_0x2f9bc2=>!_0x2f9bc2[_0x3ffe('0xfb')]['is'](_0x3ffe('0x8f'))&&!_0x4f3f66['isObject'](_0x2f9bc2[_0x3ffe('0xfb')]),_0x43863b=_0x180bb6['start']['getLastMatchingPosition'](_0x2e134c),_0x5dc9ca=_0x180bb6['end']['getLastMatchingPosition'](_0x2e134c,{'direction':_0x3ffe('0x1f')});return(!_0x180bb6['start'][_0x3ffe('0x19')](_0x43863b)||!_0x180bb6[_0x3ffe('0x9')][_0x3ffe('0x19')](_0x5dc9ca))&&(_0x43863b[_0x3ffe('0x59')](_0x5dc9ca)?_0x20d403[_0x3ffe('0x2')](_0x55366e,{'range':_0x20d403[_0x3ffe('0x3c')](_0x43863b,_0x5dc9ca)}):_0x20d403['removeMarker'](_0x55366e),!0x0);}function $t(_0x48e281){return _0x56ef00(_0x48e281);}function Nt(_0x335dd2){const _0x5bd6ba=_0x335dd2[_0x3ffe('0x62')][_0x3ffe('0x10f')];return _0x5bd6ba&&_0x5bd6ba['is']('element');}function Rt(_0x1daef1,_0x535cc4){const _0x1e0d4a=_0x535cc4[_0x3ffe('0xb5')][_0x3ffe('0xcc')](_0x1daef1)||_0x535cc4[_0x3ffe('0xb5')]['isSelectable'](_0x1daef1);return _0x535cc4['createRange'](_0x535cc4[_0x3ffe('0x12f')](_0x1daef1,'before'),_0x1e0d4a?_0x535cc4[_0x3ffe('0xc1')](_0x1daef1):_0x535cc4['createPositionAt'](_0x1daef1,_0x3ffe('0x9')));}function xt(_0x5a520e,_0x3681bb,_0x38ee3e,_0x15f5cb,_0x14581b){if(_0x38ee3e['end'][_0x3ffe('0x19')](_0x15f5cb[_0x3ffe('0x62')]))return!0x0;if(_0x5a520e[_0x3ffe('0xd4')]!=_0x3681bb[_0x3ffe('0xd4')])return!0x1;if(!_0x38ee3e[_0x3ffe('0x9')][_0x3ffe('0x1b')](_0x15f5cb[_0x3ffe('0x62')]))return!0x1;const _0x2df109=_0x14581b[_0x3ffe('0x3c')](_0x38ee3e[_0x3ffe('0x9')],_0x15f5cb[_0x3ffe('0x62')])['getWalker']();for(const _0x1c1eeb of _0x2df109)if([_0x3ffe('0x66'),_0x3ffe('0xfc')][_0x3ffe('0x6d')](_0x1c1eeb[_0x3ffe('0xd4')])&&_0x14581b['schema']['isLimit'](_0x1c1eeb[_0x3ffe('0xfb')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.d.ts
CHANGED
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3755=['_handleControllerBuffer','get','addComment','keys','CommentsRepository','TrackChangesEditing','acceptButton','Accept\x20all\x20suggestions','getMarkers','trackChanges.SuggestionThreadView','separator','_disableComments','requires','_destroyController','destroy','size','previous','createAnnotationView','getFirstRange','_suggestionToController','add','innerView','refreshSelectedViews','_initializeController','suggestionLoaded','init','descriptionParts','SuggestionThreadView','acceptAllSuggestions','filter','delete','focus','clear','_viewToController','_handleSuggestionControllerDelayed','push','editor','_descriptionFactory','lowest','commentThread','buttonView','addSourceCollector','discardButton','registerAnnotation','plugins','_createUIButton','execute','some','trackChanges','locale','view','change:activeAnnotations','isInContent','arrowView','isMultiRange','model','getDescriptions','Track\x20changes','from','head','change:previous','getByInnerView','button','actionView','_refreshActiveMarkers','length','_annotationViews','createCommentThreadController','mainView','acceptSelectedSuggestions','comments.editorConfig','getAllAdjacentSuggestions','has','comments.maxCommentsWhenCollapsed','getSuggestion','Annotations','getMarkerNames','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','suggestionUnloaded','comments.maxCommentCharsWhenCollapsed','isOn','define','set','trackChanges.disableComments','remove','value','TrackChangesUI','values','listenTo','commands','isEnabled','suggestionChanged','activeMarkers','comments.maxThreadTotalWeight','config','editing','suggestion-','unbind','discardSelectedSuggestions','bind','getJoined','map','reduce','_updateController','commandName'];(function(_0x32a80e,_0x375598){const _0x4b70df=function(_0x51193b){while(--_0x51193b){_0x32a80e['push'](_0x32a80e['shift']());}};_0x4b70df(++_0x375598);}(_0x3755,0x71));const _0x4b70=function(_0x32a80e,_0x375598){_0x32a80e=_0x32a80e-0x0;let _0x4b70df=_0x3755[_0x32a80e];return _0x4b70df;};import{Plugin as _0x2e1ce4}from'ckeditor5/src/core';import{Collection as _0x29cb1d}from'ckeditor5/src/utils';import{Model as _0x4dbb76,SplitButtonView as _0x25780a,createDropdown as _0x558890,addListToDropdown as _0x17aaff}from'ckeditor5/src/ui';import{Users as _0x3391b0,getDateTimeFormatter as _0x2ac6b9,getAllMarkersDomElementsSorted as _0x3ea15a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2426c5 from'./trackchangesediting';import _0x9776ca from'./ui/suggestioncontroller';import _0xd1de93 from'./ui/view/suggestionthreadview';import{getTranslation as _0xbe3170}from'./utils/common-translations';import _0x37b67b from'../theme/icons/track-changes.svg';export default class d extends _0x2e1ce4{static get[_0x4b70('0x5')](){return[_0x2426c5,_0x3391b0,_0x4b70('0x67'),_0x4b70('0x44'),'EditorAnnotations'];}static get['pluginName'](){return _0x4b70('0x50');}constructor(_0x272745){super(_0x272745),this[_0x4b70('0xc')]=new Map(),this[_0x4b70('0x1a')]=new Map(),this['_annotationViews']=new Map(),this[_0x4b70('0x63')]=new Map();const _0x1dc2bc=this[_0x4b70('0x1d')][_0x4b70('0x58')];_0x1dc2bc[_0x4b70('0x4b')](_0x4b70('0x2'),_0xd1de93),_0x1dc2bc[_0x4b70('0x4b')](_0x4b70('0x4d'),!0x1),this[_0x4b70('0x4')]=_0x1dc2bc[_0x4b70('0x64')]('trackChanges.disableComments');}[_0x4b70('0x1b')](_0x428a45,_0x2babf1){0x0===this['_handleControllerBuffer'][_0x4b70('0x8')]&&setTimeout(()=>{for(const [_0x2ed565,_0x2afdb1]of this[_0x4b70('0x63')]){const _0x411109=this[_0x4b70('0xc')]['has'](_0x2ed565);_0x411109||_0x2afdb1?_0x411109&&_0x2afdb1&&this[_0x4b70('0x6')](_0x2ed565):this[_0x4b70('0x10')](_0x2ed565);}this[_0x4b70('0x1d')][_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x46'))[_0x4b70('0xf')](),this[_0x4b70('0x39')](),this[_0x4b70('0x63')][_0x4b70('0x19')]();},0xa),this[_0x4b70('0x63')][_0x4b70('0x4c')](_0x428a45,_0x2babf1);}[_0x4b70('0x12')](){const _0x10bc95=this[_0x4b70('0x1d')],_0x55800f=_0x10bc95[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x68')),_0x4ed78d=_0x10bc95[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x44')),_0x5dc98a=_0x10bc95[_0x4b70('0x25')]['get'](_0x4b70('0x46')),_0x2f80c4=_0x10bc95[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x67'));_0x10bc95['ui']['componentFactory']['add']('trackChanges',_0x2392c5=>this[_0x4b70('0x26')](_0x2392c5)),_0x5dc98a[_0x4b70('0x22')](()=>{const _0x7ca6c6=[];for(const [_0x57f551,_0x24b60e]of Array[_0x4b70('0x33')](this[_0x4b70('0xc')])){const _0x4a6817=_0x57f551[_0x4b70('0x40')](),_0x591b37=[];for(const _0x22d1eb of _0x4a6817){if(!_0x22d1eb['isInContent'])continue;if(_0x22d1eb[_0x4b70('0x2f')]){_0x591b37[_0x4b70('0x1c')](..._0x22d1eb['getRanges']());continue;}const _0x720ccb=_0x22d1eb[_0x4b70('0xb')]();if(_0x591b37[_0x4b70('0x3a')]>0x0){const _0x4306fc=_0x591b37[0x0][_0x4b70('0x5e')](_0x720ccb);if(_0x4306fc){_0x591b37[0x0]=_0x4306fc;continue;}}_0x591b37[_0x4b70('0x1c')](_0x720ccb);}_0x7ca6c6['push']([_0x24b60e['view'],_0x591b37]);}return _0x7ca6c6;}),this[_0x4b70('0x52')](_0x55800f,_0x4b70('0x11'),(_0x1180da,_0x1ec86d)=>{this['listenTo'](_0x1ec86d,_0x4b70('0x35'),(_0x5a7055,_0x3e39c7,_0x3e9f2b,_0x44c798)=>{_0x1ec86d[_0x4b70('0x2d')]&&(null==_0x3e9f2b?(this[_0x4b70('0x61')](_0x44c798['head']),this[_0x4b70('0x1b')](_0x1ec86d,!0x1)):(this[_0x4b70('0x61')](_0x3e9f2b[_0x4b70('0x34')]),this[_0x4b70('0x1b')](_0x1ec86d,!0x0)));}),null===_0x1ec86d[_0x4b70('0x9')]?this[_0x4b70('0x1b')](_0x1ec86d,!0x1):this[_0x4b70('0x61')](_0x1ec86d[_0x4b70('0x34')]);}),this[_0x4b70('0x52')](_0x55800f,_0x4b70('0x48'),(_0x1597c0,_0x58e6db,_0x14f600)=>{this['stopListening'](_0x58e6db,_0x4b70('0x35')),this[_0x4b70('0x63')][_0x4b70('0x17')](_0x58e6db);const _0x317bc5=_0x14f600?_0x14f600[_0x4b70('0x34')]:_0x58e6db,_0x5277f0=this[_0x4b70('0xc')]['get'](_0x317bc5);null!==_0x14f600&&this[_0x4b70('0x61')](_0x317bc5),null===_0x14f600&&_0x5277f0&&this[_0x4b70('0x6')](_0x58e6db);}),this[_0x4b70('0x52')](_0x55800f,_0x4b70('0x55'),(_0x10dc1e,_0xb82213)=>{this['_updateController'](_0xb82213);}),this[_0x4b70('0x52')](_0x4ed78d,_0x4b70('0x2c'),()=>{this[_0x4b70('0x39')]();}),this[_0x4b70('0x52')](_0x2f80c4,_0x4b70('0x65'),(_0x11c07a,{threadId:_0x5f3e7d,isFromAdapter:_0x106162})=>{if(_0x106162||!_0x55800f['hasSuggestion'](_0x5f3e7d))return;const _0xc564c6=_0x55800f[_0x4b70('0x43')](_0x5f3e7d);this[_0x4b70('0xc')][_0x4b70('0x64')](_0xc564c6)['view']['focus']();},{'priority':_0x4b70('0x1f')});}[_0x4b70('0x39')](){const _0x52f5b4=this[_0x4b70('0x1d')][_0x4b70('0x25')]['get'](_0x4b70('0x44')),_0x24f7ab=this['editor'][_0x4b70('0x25')]['get'](_0x4b70('0x68')),_0xab240c=Array[_0x4b70('0x33')](_0x52f5b4['activeAnnotations'],_0x3b1a46=>_0x3b1a46[_0x4b70('0xe')])[_0x4b70('0x16')](_0x1ae9f9=>this['_viewToController'][_0x4b70('0x41')](_0x1ae9f9)),_0xc66b51=[];for(const _0x527b4d of _0xab240c){const _0x5436ef=this[_0x4b70('0x1a')]['get'](_0x527b4d)[_0x4b70('0x30')]['getAllAdjacentSuggestions']();_0xc66b51[_0x4b70('0x1c')](..._0x5436ef[_0x4b70('0x60')]((_0x5f1929,_0x5882ad)=>[..._0x5f1929,..._0x5882ad[_0x4b70('0x45')]()],[]));}_0x24f7ab[_0x4b70('0x56')]=_0xc66b51;}[_0x4b70('0x26')](_0x22a700){const _0x9fe04d=_0x558890(_0x22a700,_0x25780a),_0x33c9da=this[_0x4b70('0x1d')][_0x4b70('0x53')][_0x4b70('0x64')]('trackChanges'),_0x440d41=_0xbe3170(_0x22a700,_0x4b70('0x32'));_0x9fe04d[_0x4b70('0x21')]['set']({'tooltip':_0x440d41,'label':_0x440d41,'icon':_0x37b67b}),_0x9fe04d[_0x4b70('0x21')][_0x4b70('0x5d')](_0x4b70('0x4a'))['to'](_0x33c9da,'value'),_0x9fe04d[_0x4b70('0x21')]['on']('execute',()=>{_0x33c9da[_0x4b70('0x27')](),this[_0x4b70('0x1d')][_0x4b70('0x59')]['view'][_0x4b70('0x18')]();});const _0x186a4f=new _0x29cb1d(),_0x2410e4=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x440d41,'commandName':_0x4b70('0x29')}},{'type':_0x4b70('0x3')},{'type':_0x4b70('0x37'),'model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,_0x4b70('0x0')),'commandName':_0x4b70('0x15')}},{'type':'button','model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x4b70('0x3e')}},{'type':_0x4b70('0x37'),'model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x4b70('0x37'),'model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,_0x4b70('0x47')),'commandName':_0x4b70('0x5c')}}];for(const _0x525091 of _0x2410e4){let _0x2dbbc6={'type':_0x4b70('0x3')};if(_0x525091['model']){const _0x53a687=new _0x4dbb76(_0x525091[_0x4b70('0x30')]),_0x308d66=this[_0x4b70('0x1d')]['commands'][_0x4b70('0x64')](_0x53a687[_0x4b70('0x62')]);_0x53a687['bind']('isOn',_0x4b70('0x54'))['to'](_0x308d66,_0x4b70('0x4f'),_0x4b70('0x54')),_0x2dbbc6={'type':_0x525091['type'],'model':_0x53a687};}_0x186a4f['add'](_0x2dbbc6);}_0x17aaff(_0x9fe04d,_0x186a4f);const _0x138277=_0x2410e4[_0x4b70('0x16')](_0x5448db=>null!=_0x5448db[_0x4b70('0x30')])[_0x4b70('0x5f')](_0x44deed=>this[_0x4b70('0x1d')]['commands'][_0x4b70('0x64')](_0x44deed[_0x4b70('0x30')][_0x4b70('0x62')])),_0x4a6500=_0x9fe04d[_0x4b70('0x21')];return _0x4a6500[_0x4b70('0x38')][_0x4b70('0x5b')]('isEnabled'),_0x4a6500[_0x4b70('0x2e')][_0x4b70('0x5b')](_0x4b70('0x54')),_0x4a6500['actionView'][_0x4b70('0x5d')](_0x4b70('0x54'))['to'](_0x33c9da,_0x4b70('0x54')),_0x4a6500[_0x4b70('0x2e')]['bind']('isEnabled')['toMany'](_0x138277,_0x4b70('0x54'),(..._0x1d6ddf)=>_0x1d6ddf[_0x4b70('0x28')](_0x4d6b72=>_0x4d6b72)),_0x9fe04d['on'](_0x4b70('0x27'),_0x2dba79=>{this[_0x4b70('0x1d')][_0x4b70('0x27')](_0x2dba79['source'][_0x4b70('0x62')]),this[_0x4b70('0x1d')][_0x4b70('0x59')][_0x4b70('0x2b')][_0x4b70('0x18')]();}),_0x9fe04d;}[_0x4b70('0x10')](_0x46a8e5){const _0x334055=this[_0x4b70('0x1d')],_0x76fbf=_0x334055[_0x4b70('0x58')],_0x3cae8e=_0x334055[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x44')),_0x5dc7a1=_0x334055['plugins'][_0x4b70('0x64')](_0x4b70('0x67')),_0x19e0d2=_0x334055[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x46')),_0x335436=_0x334055[_0x4b70('0x25')][_0x4b70('0x64')](_0x3391b0)['me'],_0x580898=_0x76fbf[_0x4b70('0x64')](_0x4b70('0x29'))[_0x4b70('0x14')],{CommentsListView:_0x19226e,CommentThreadInputView:_0x200263}=_0x334055[_0x4b70('0x25')]['get']('CommentsUI');let _0x423839,_0x12f219;this[_0x4b70('0x3b')][_0x4b70('0x41')](_0x46a8e5['id'])?(_0x12f219=this['_annotationViews'][_0x4b70('0x64')](_0x46a8e5['id']),_0x423839=_0x12f219[_0x4b70('0x3d')]):(_0x423839=new _0x580898(_0x334055[_0x4b70('0x2a')],_0x46a8e5,_0x335436,{'disableComments':this[_0x4b70('0x4')],'editorConfig':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x3f')),'maxCommentsWhenCollapsed':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x42')),'maxThreadTotalWeight':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x57')),'maxCommentCharsWhenCollapsed':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x49')),'formatDateTime':_0x2ac6b9(_0x76fbf[_0x4b70('0x64')](_0x4b70('0x2a'))),'CommentView':_0x76fbf[_0x4b70('0x64')]('comments')['CommentView'],'CommentsListView':_0x19226e,'CommentThreadInputView':_0x200263}),_0x423839[_0x4b70('0x69')]['on'](_0x4b70('0x27'),()=>{_0x334055['editing'][_0x4b70('0x2b')][_0x4b70('0x18')]();}),_0x423839[_0x4b70('0x23')]['on'](_0x4b70('0x27'),()=>{_0x334055['editing'][_0x4b70('0x2b')][_0x4b70('0x18')]();}),_0x12f219=_0x3cae8e[_0x4b70('0xa')](this['editor'][_0x4b70('0x2a')],_0x423839),_0x12f219[_0x4b70('0x5d')]('isDirty')['to'](_0x423839,'isDirty'),_0x12f219[_0x4b70('0x5d')](_0x4b70('0x3a'))['to'](_0x423839),_0x12f219[_0x4b70('0x5d')]('type')['to'](_0x423839,'type',_0x39fffd=>_0x4b70('0x5a')+_0x39fffd),this[_0x4b70('0x3b')][_0x4b70('0x4c')](_0x46a8e5['id'],_0x12f219));const _0xc07c81=_0x5dc7a1[_0x4b70('0x3c')](_0x46a8e5[_0x4b70('0x20')],_0x423839),_0x4385eb=new _0x9776ca(_0x334055,_0x46a8e5,_0x423839,_0xc07c81),_0x45505d=_0x46a8e5['getAllAdjacentSuggestions']()[_0x4b70('0x16')](_0x4d0c50=>_0x4d0c50['isInContent']);_0x423839[_0x4b70('0x13')]=_0x334055[_0x4b70('0x25')]['get']('TrackChangesEditing')[_0x4b70('0x1e')][_0x4b70('0x31')](_0x45505d),this['_suggestionToController'][_0x4b70('0x4c')](_0x46a8e5,_0x4385eb),this['_viewToController']['set'](_0x423839,_0x4385eb);const _0x352b9c=_0x3cae8e['createAnnotation']({'view':_0x12f219,'target':()=>{const _0xfdd7f8=[],_0x369be1=_0x46a8e5[_0x4b70('0x40')]()[_0x4b70('0x16')](_0x5b4dbe=>_0x5b4dbe['isInContent']);for(const _0x29dce8 of _0x369be1)_0xfdd7f8[_0x4b70('0x1c')](..._0x29dce8[_0x4b70('0x1')]());return _0x3ea15a(_0x334055['editing'],_0xfdd7f8);},'type':()=>'suggestion-'+_0x4385eb[_0x4b70('0x2b')]['type']});_0x3cae8e[_0x4b70('0xd')](_0x352b9c),_0x19e0d2[_0x4b70('0x24')](_0x352b9c);}['_destroyController'](_0x38516c){const _0x260280=this[_0x4b70('0x1d')][_0x4b70('0x25')]['get'](_0x4b70('0x44')),_0x2cdf36=this[_0x4b70('0xc')][_0x4b70('0x64')](_0x38516c),_0x1f52ef=_0x2cdf36[_0x4b70('0x2b')],_0x50b2e7=_0x260280[_0x4b70('0x36')](_0x1f52ef);_0x50b2e7&&_0x260280[_0x4b70('0x4e')](_0x50b2e7),this[_0x4b70('0xc')][_0x4b70('0x17')](_0x38516c),this[_0x4b70('0x1a')]['delete'](_0x1f52ef),_0x2cdf36['destroy']();}[_0x4b70('0x61')](_0x1c29cc){if(!_0x1c29cc[_0x4b70('0x2d')]||!this[_0x4b70('0xc')][_0x4b70('0x41')](_0x1c29cc))return;const _0x2ba40f=this[_0x4b70('0x1d')][_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x68')),_0x12fffa=this[_0x4b70('0xc')]['get'](_0x1c29cc),_0x5133cb=_0x1c29cc['getAllAdjacentSuggestions']();_0x12fffa['view']['descriptionParts']=_0x2ba40f[_0x4b70('0x1e')][_0x4b70('0x31')](_0x5133cb);}[_0x4b70('0x7')](){for(const _0x1ffcf8 of this[_0x4b70('0xc')][_0x4b70('0x66')]())this[_0x4b70('0x6')](_0x1ffcf8);for(const _0x4e9dc7 of this[_0x4b70('0x3b')][_0x4b70('0x51')]())_0x4e9dc7[_0x4b70('0x3d')][_0x4b70('0x7')]();super['destroy']();}}
|
|
23
|
+
const _0x41ae=['value','editor','filter','_destroyController','reduce','_handleControllerBuffer','bind','head','acceptAllSuggestions','Annotations','_viewToController','trackChanges','listenTo','componentFactory','buttonView','focus','discardSelectedSuggestions','TrackChangesUI','suggestionUnloaded','CommentsRepository','Discard\x20all\x20suggestions','suggestionChanged','descriptionParts','createAnnotationView','delete','EditorAnnotations','activeAnnotations','_updateController','set','type','createCommentThreadController','comments.maxCommentsWhenCollapsed','view','destroy','map','clear','discardButton','execute','some','isEnabled','getSuggestion','mainView','isMultiRange','actionView','values','getMarkers','_descriptionFactory','commandName','_initializeController','_refreshActiveMarkers','SuggestionThreadView','commentThread','keys','_suggestionToController','registerAnnotation','getAllAdjacentSuggestions','change:activeAnnotations','push','TrackChangesEditing','button','Track\x20changes','lowest','suggestionLoaded','unbind','source','editing','plugins','getDescriptions','separator','CommentView','define','get','isDirty','pluginName','isInContent','discardAllSuggestions','addSourceCollector','switchbutton','_annotationViews','_handleSuggestionControllerDelayed','comments.editorConfig','length','getRanges','toMany','has','add','config','comments.maxThreadTotalWeight','suggestion-','isOn','acceptButton','CommentsUI','trackChanges.disableComments','commands','Accept\x20all\x20suggestions','innerView','arrowView','previous','change:previous','stopListening','activeMarkers','Discard\x20all\x20selected\x20suggestions','remove','locale','Accept\x20all\x20selected\x20suggestions','model'];(function(_0x167264,_0x41ae7a){const _0x165de8=function(_0x3fc6f0){while(--_0x3fc6f0){_0x167264['push'](_0x167264['shift']());}};_0x165de8(++_0x41ae7a);}(_0x41ae,0xc2));const _0x165d=function(_0x167264,_0x41ae7a){_0x167264=_0x167264-0x0;let _0x165de8=_0x41ae[_0x167264];return _0x165de8;};import{Plugin as _0x59ee3a}from'ckeditor5/src/core';import{Collection as _0x40137f}from'ckeditor5/src/utils';import{Model as _0x45336b,SplitButtonView as _0x1f7ed2,createDropdown as _0x58339c,addListToDropdown as _0x483ae3}from'ckeditor5/src/ui';import{Users as _0x4bc01b,getDateTimeFormatter as _0x43624b,getAllMarkersDomElementsSorted as _0x386b9b}from'ckeditor5-collaboration/src/collaboration-core';import _0x33868e from'./trackchangesediting';import _0x5bd343 from'./ui/suggestioncontroller';import _0x589f92 from'./ui/view/suggestionthreadview';import{getTranslation as _0x4035de}from'./utils/common-translations';import _0x19688f from'../theme/icons/track-changes.svg';export default class d extends _0x59ee3a{static get['requires'](){return[_0x33868e,_0x4bc01b,'CommentsRepository',_0x165d('0x1b'),_0x165d('0x2b')];}static get[_0x165d('0x5b')](){return _0x165d('0x23');}constructor(_0x11b04e){super(_0x11b04e),this[_0x165d('0x47')]=new Map(),this[_0x165d('0x1c')]=new Map(),this[_0x165d('0x60')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x1df469=this[_0x165d('0x13')][_0x165d('0x68')];_0x1df469[_0x165d('0x58')]('trackChanges.SuggestionThreadView',_0x589f92),_0x1df469[_0x165d('0x58')](_0x165d('0x4'),!0x1),this['_disableComments']=_0x1df469[_0x165d('0x59')](_0x165d('0x4'));}[_0x165d('0x61')](_0xea1ced,_0x214e5e){0x0===this[_0x165d('0x17')]['size']&&setTimeout(()=>{for(const [_0x573bb3,_0x187d48]of this[_0x165d('0x17')]){const _0x486e8e=this[_0x165d('0x47')]['has'](_0x573bb3);_0x486e8e||_0x187d48?_0x486e8e&&_0x187d48&&this[_0x165d('0x15')](_0x573bb3):this[_0x165d('0x42')](_0x573bb3);}this[_0x165d('0x13')][_0x165d('0x54')][_0x165d('0x59')](_0x165d('0x2b'))['refreshSelectedViews'](),this[_0x165d('0x43')](),this[_0x165d('0x17')][_0x165d('0x35')]();},0xa),this['_handleControllerBuffer'][_0x165d('0x2e')](_0xea1ced,_0x214e5e);}['init'](){const _0xc12883=this[_0x165d('0x13')],_0x5d29b4=_0xc12883[_0x165d('0x54')][_0x165d('0x59')](_0x165d('0x4c')),_0x409510=_0xc12883[_0x165d('0x54')]['get'](_0x165d('0x1b')),_0x3119ad=_0xc12883['plugins'][_0x165d('0x59')](_0x165d('0x2b')),_0xb932cc=_0xc12883[_0x165d('0x54')][_0x165d('0x59')]('CommentsRepository');_0xc12883['ui'][_0x165d('0x1f')][_0x165d('0x67')](_0x165d('0x1d'),_0x2057eb=>this['_createUIButton'](_0x2057eb)),_0x3119ad[_0x165d('0x5e')](()=>{const _0x3af6d7=[];for(const [_0x398782,_0x298f92]of Array['from'](this['_suggestionToController'])){const _0x509d1c=_0x398782[_0x165d('0x49')](),_0x40c8d7=[];for(const _0x36f913 of _0x509d1c){if(!_0x36f913['isInContent'])continue;if(_0x36f913[_0x165d('0x3c')]){_0x40c8d7[_0x165d('0x4b')](..._0x36f913[_0x165d('0x64')]());continue;}const _0x3b9115=_0x36f913['getFirstRange']();if(_0x40c8d7[_0x165d('0x63')]>0x0){const _0x5338ea=_0x40c8d7[0x0]['getJoined'](_0x3b9115);if(_0x5338ea){_0x40c8d7[0x0]=_0x5338ea;continue;}}_0x40c8d7['push'](_0x3b9115);}_0x3af6d7[_0x165d('0x4b')]([_0x298f92[_0x165d('0x32')],_0x40c8d7]);}return _0x3af6d7;}),this[_0x165d('0x1e')](_0x5d29b4,_0x165d('0x50'),(_0x5f1150,_0x25d9f2)=>{this['listenTo'](_0x25d9f2,_0x165d('0xa'),(_0x14500e,_0x3a769b,_0x42694e,_0x428fd0)=>{_0x25d9f2['isInContent']&&(null==_0x42694e?(this[_0x165d('0x2d')](_0x428fd0['head']),this[_0x165d('0x61')](_0x25d9f2,!0x1)):(this[_0x165d('0x2d')](_0x42694e[_0x165d('0x19')]),this[_0x165d('0x61')](_0x25d9f2,!0x0)));}),null===_0x25d9f2[_0x165d('0x9')]?this['_handleSuggestionControllerDelayed'](_0x25d9f2,!0x1):this[_0x165d('0x2d')](_0x25d9f2[_0x165d('0x19')]);}),this[_0x165d('0x1e')](_0x5d29b4,_0x165d('0x24'),(_0x585830,_0x52ee91,_0x1da41e)=>{this[_0x165d('0xb')](_0x52ee91,_0x165d('0xa')),this[_0x165d('0x17')][_0x165d('0x2a')](_0x52ee91);const _0x11e22c=_0x1da41e?_0x1da41e['head']:_0x52ee91,_0x1d5bea=this[_0x165d('0x47')][_0x165d('0x59')](_0x11e22c);null!==_0x1da41e&&this['_updateController'](_0x11e22c),null===_0x1da41e&&_0x1d5bea&&this[_0x165d('0x15')](_0x52ee91);}),this[_0x165d('0x1e')](_0x5d29b4,_0x165d('0x27'),(_0x5158fa,_0x28fca1)=>{this['_updateController'](_0x28fca1);}),this[_0x165d('0x1e')](_0x409510,_0x165d('0x4a'),()=>{this['_refreshActiveMarkers']();}),this[_0x165d('0x1e')](_0xb932cc,'addComment',(_0x215ab6,{threadId:_0x49b0ad,isFromAdapter:_0xf27a47})=>{if(_0xf27a47||!_0x5d29b4['hasSuggestion'](_0x49b0ad))return;const _0x1c60b5=_0x5d29b4[_0x165d('0x3a')](_0x49b0ad);this[_0x165d('0x47')][_0x165d('0x59')](_0x1c60b5)[_0x165d('0x32')][_0x165d('0x21')]();},{'priority':_0x165d('0x4f')});}[_0x165d('0x43')](){const _0x2a88d7=this[_0x165d('0x13')][_0x165d('0x54')][_0x165d('0x59')](_0x165d('0x1b')),_0x137a81=this['editor']['plugins'][_0x165d('0x59')](_0x165d('0x4c')),_0x4bafb0=Array['from'](_0x2a88d7[_0x165d('0x2c')],_0x40c2f2=>_0x40c2f2[_0x165d('0x7')])['filter'](_0x23b458=>this[_0x165d('0x1c')][_0x165d('0x66')](_0x23b458)),_0x53265f=[];for(const _0x52c572 of _0x4bafb0){const _0x538cb2=this[_0x165d('0x1c')]['get'](_0x52c572)[_0x165d('0x11')][_0x165d('0x49')]();_0x53265f[_0x165d('0x4b')](..._0x538cb2[_0x165d('0x16')]((_0x3ed5cc,_0x55beb7)=>[..._0x3ed5cc,..._0x55beb7['getMarkerNames']()],[]));}_0x137a81[_0x165d('0xc')]=_0x53265f;}['_createUIButton'](_0xbe75de){const _0x22fbb5=_0x58339c(_0xbe75de,_0x1f7ed2),_0x9bb3a9=this[_0x165d('0x13')][_0x165d('0x5')][_0x165d('0x59')]('trackChanges'),_0x4586bb=_0x4035de(_0xbe75de,_0x165d('0x4e'));_0x22fbb5[_0x165d('0x20')][_0x165d('0x2e')]({'tooltip':_0x4586bb,'label':_0x4586bb,'icon':_0x19688f}),_0x22fbb5[_0x165d('0x20')][_0x165d('0x18')](_0x165d('0x1'))['to'](_0x9bb3a9,_0x165d('0x12')),_0x22fbb5[_0x165d('0x20')]['on'](_0x165d('0x37'),()=>{_0x9bb3a9[_0x165d('0x37')](),this[_0x165d('0x13')][_0x165d('0x53')]['view'][_0x165d('0x21')]();});const _0x503769=new _0x40137f(),_0x37fea8=[{'type':_0x165d('0x5f'),'model':{'withText':!0x0,'label':_0x4586bb,'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0x6')),'commandName':_0x165d('0x1a')}},{'type':_0x165d('0x4d'),'model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0x10')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x165d('0x4d'),'model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0x26')),'commandName':_0x165d('0x5d')}},{'type':_0x165d('0x4d'),'model':{'withText':!0x0,'label':_0x4035de(_0xbe75de,_0x165d('0xd')),'commandName':_0x165d('0x22')}}];for(const _0x396cca of _0x37fea8){let _0x564211={'type':_0x165d('0x56')};if(_0x396cca[_0x165d('0x11')]){const _0xb8e751=new _0x45336b(_0x396cca['model']),_0x3ea106=this[_0x165d('0x13')][_0x165d('0x5')][_0x165d('0x59')](_0xb8e751[_0x165d('0x41')]);_0xb8e751['bind'](_0x165d('0x1'),_0x165d('0x39'))['to'](_0x3ea106,_0x165d('0x12'),_0x165d('0x39')),_0x564211={'type':_0x396cca[_0x165d('0x2f')],'model':_0xb8e751};}_0x503769['add'](_0x564211);}_0x483ae3(_0x22fbb5,_0x503769);const _0x430d9e=_0x37fea8[_0x165d('0x14')](_0x26e233=>null!=_0x26e233['model'])[_0x165d('0x34')](_0x3fd8b6=>this[_0x165d('0x13')]['commands']['get'](_0x3fd8b6['model'][_0x165d('0x41')])),_0x503c6b=_0x22fbb5[_0x165d('0x20')];return _0x503c6b[_0x165d('0x3d')][_0x165d('0x51')]('isEnabled'),_0x503c6b[_0x165d('0x8')][_0x165d('0x51')]('isEnabled'),_0x503c6b[_0x165d('0x3d')]['bind'](_0x165d('0x39'))['to'](_0x9bb3a9,_0x165d('0x39')),_0x503c6b[_0x165d('0x8')][_0x165d('0x18')](_0x165d('0x39'))[_0x165d('0x65')](_0x430d9e,_0x165d('0x39'),(..._0x5ba628)=>_0x5ba628[_0x165d('0x38')](_0x2cec88=>_0x2cec88)),_0x22fbb5['on'](_0x165d('0x37'),_0x27ff5a=>{this[_0x165d('0x13')][_0x165d('0x37')](_0x27ff5a[_0x165d('0x52')][_0x165d('0x41')]),this[_0x165d('0x13')][_0x165d('0x53')][_0x165d('0x32')]['focus']();}),_0x22fbb5;}[_0x165d('0x42')](_0x2744fe){const _0x48d3ae=this[_0x165d('0x13')],_0xe112a6=_0x48d3ae[_0x165d('0x68')],_0x3062ab=_0x48d3ae[_0x165d('0x54')]['get']('Annotations'),_0x430d12=_0x48d3ae[_0x165d('0x54')]['get'](_0x165d('0x25')),_0x1a3f7d=_0x48d3ae[_0x165d('0x54')][_0x165d('0x59')]('EditorAnnotations'),_0x1b7b7f=_0x48d3ae[_0x165d('0x54')]['get'](_0x4bc01b)['me'],_0x527b60=_0xe112a6[_0x165d('0x59')](_0x165d('0x1d'))[_0x165d('0x44')],{CommentsListView:_0x157adb,CommentThreadInputView:_0x50053f}=_0x48d3ae['plugins'][_0x165d('0x59')](_0x165d('0x3'));let _0x39e0f5,_0x39225d;this[_0x165d('0x60')][_0x165d('0x66')](_0x2744fe['id'])?(_0x39225d=this[_0x165d('0x60')][_0x165d('0x59')](_0x2744fe['id']),_0x39e0f5=_0x39225d[_0x165d('0x3b')]):(_0x39e0f5=new _0x527b60(_0x48d3ae['locale'],_0x2744fe,_0x1b7b7f,{'disableComments':this['_disableComments'],'editorConfig':_0xe112a6['get'](_0x165d('0x62')),'maxCommentsWhenCollapsed':_0xe112a6[_0x165d('0x59')](_0x165d('0x31')),'maxThreadTotalWeight':_0xe112a6[_0x165d('0x59')](_0x165d('0x69')),'maxCommentCharsWhenCollapsed':_0xe112a6[_0x165d('0x59')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x43624b(_0xe112a6[_0x165d('0x59')](_0x165d('0xf'))),'CommentView':_0xe112a6[_0x165d('0x59')]('comments')[_0x165d('0x57')],'CommentsListView':_0x157adb,'CommentThreadInputView':_0x50053f}),_0x39e0f5[_0x165d('0x2')]['on'](_0x165d('0x37'),()=>{_0x48d3ae['editing'][_0x165d('0x32')][_0x165d('0x21')]();}),_0x39e0f5[_0x165d('0x36')]['on']('execute',()=>{_0x48d3ae[_0x165d('0x53')][_0x165d('0x32')]['focus']();}),_0x39225d=_0x3062ab[_0x165d('0x29')](this[_0x165d('0x13')][_0x165d('0xf')],_0x39e0f5),_0x39225d[_0x165d('0x18')](_0x165d('0x5a'))['to'](_0x39e0f5,_0x165d('0x5a')),_0x39225d[_0x165d('0x18')](_0x165d('0x63'))['to'](_0x39e0f5),_0x39225d[_0x165d('0x18')](_0x165d('0x2f'))['to'](_0x39e0f5,_0x165d('0x2f'),_0x280c26=>_0x165d('0x0')+_0x280c26),this[_0x165d('0x60')]['set'](_0x2744fe['id'],_0x39225d));const _0x48f641=_0x430d12[_0x165d('0x30')](_0x2744fe[_0x165d('0x45')],_0x39e0f5),_0x18eae0=new _0x5bd343(_0x48d3ae,_0x2744fe,_0x39e0f5,_0x48f641),_0x56c4e1=_0x2744fe[_0x165d('0x49')]()['filter'](_0x1fb89d=>_0x1fb89d[_0x165d('0x5c')]);_0x39e0f5[_0x165d('0x28')]=_0x48d3ae[_0x165d('0x54')]['get'](_0x165d('0x4c'))[_0x165d('0x40')][_0x165d('0x55')](_0x56c4e1),this[_0x165d('0x47')][_0x165d('0x2e')](_0x2744fe,_0x18eae0),this[_0x165d('0x1c')][_0x165d('0x2e')](_0x39e0f5,_0x18eae0);const _0x167c66=_0x3062ab['createAnnotation']({'view':_0x39225d,'target':()=>{const _0x1d2d4a=[],_0x2b93e1=_0x2744fe[_0x165d('0x49')]()[_0x165d('0x14')](_0xa0868d=>_0xa0868d['isInContent']);for(const _0x25ccda of _0x2b93e1)_0x1d2d4a['push'](..._0x25ccda[_0x165d('0x3f')]());return _0x386b9b(_0x48d3ae['editing'],_0x1d2d4a);},'type':()=>_0x165d('0x0')+_0x18eae0[_0x165d('0x32')][_0x165d('0x2f')]});_0x3062ab[_0x165d('0x67')](_0x167c66),_0x1a3f7d[_0x165d('0x48')](_0x167c66);}[_0x165d('0x15')](_0x2b7e0d){const _0x32bf94=this[_0x165d('0x13')]['plugins'][_0x165d('0x59')](_0x165d('0x1b')),_0x2440eb=this[_0x165d('0x47')][_0x165d('0x59')](_0x2b7e0d),_0x31962f=_0x2440eb[_0x165d('0x32')],_0x2f921c=_0x32bf94['getByInnerView'](_0x31962f);_0x2f921c&&_0x32bf94[_0x165d('0xe')](_0x2f921c),this['_suggestionToController'][_0x165d('0x2a')](_0x2b7e0d),this[_0x165d('0x1c')][_0x165d('0x2a')](_0x31962f),_0x2440eb[_0x165d('0x33')]();}[_0x165d('0x2d')](_0x28ea06){if(!_0x28ea06['isInContent']||!this[_0x165d('0x47')][_0x165d('0x66')](_0x28ea06))return;const _0x353185=this[_0x165d('0x13')]['plugins']['get']('TrackChangesEditing'),_0x9a8747=this['_suggestionToController'][_0x165d('0x59')](_0x28ea06),_0x4bdb7f=_0x28ea06['getAllAdjacentSuggestions']();_0x9a8747[_0x165d('0x32')][_0x165d('0x28')]=_0x353185[_0x165d('0x40')][_0x165d('0x55')](_0x4bdb7f);}[_0x165d('0x33')](){for(const _0x1e19c1 of this[_0x165d('0x47')][_0x165d('0x46')]())this['_destroyController'](_0x1e19c1);for(const _0x158ee4 of this[_0x165d('0x60')][_0x165d('0x3e')]())_0x158ee4[_0x165d('0x3b')]['destroy']();super[_0x165d('0x33')]();}}
|
|
@@ -1,5 +1,6 @@
|
|
|
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
5
|
import type { Editor } from 'ckeditor5/src/core';
|
|
5
6
|
import type Suggestion from '../suggestion';
|