@ckeditor/ckeditor5-track-changes 40.0.0 → 40.1.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/LICENSE.md +3 -3
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +76 -0
- package/lang/translations/az.po +76 -0
- package/lang/translations/bg.po +76 -0
- package/lang/translations/bn.po +76 -0
- package/lang/translations/ca.po +76 -0
- package/lang/translations/cs.po +76 -0
- package/lang/translations/da.po +76 -0
- package/lang/translations/de.po +76 -0
- package/lang/translations/el.po +76 -0
- package/lang/translations/en-au.po +76 -0
- package/lang/translations/en.po +76 -0
- package/lang/translations/es.po +76 -0
- package/lang/translations/et.po +76 -0
- package/lang/translations/fi.po +76 -0
- package/lang/translations/fr.po +76 -0
- package/lang/translations/gl.po +76 -0
- package/lang/translations/he.po +76 -0
- package/lang/translations/hi.po +76 -0
- package/lang/translations/hr.po +76 -0
- package/lang/translations/hu.po +76 -0
- package/lang/translations/id.po +76 -0
- package/lang/translations/it.po +76 -0
- package/lang/translations/ja.po +76 -0
- package/lang/translations/ko.po +76 -0
- package/lang/translations/lt.po +76 -0
- package/lang/translations/lv.po +76 -0
- package/lang/translations/ms.po +76 -0
- package/lang/translations/nl.po +76 -0
- package/lang/translations/no.po +76 -0
- package/lang/translations/pl.po +76 -0
- package/lang/translations/pt-br.po +94 -18
- package/lang/translations/pt.po +76 -0
- package/lang/translations/ro.po +76 -0
- package/lang/translations/ru.po +76 -0
- package/lang/translations/sk.po +76 -0
- package/lang/translations/sq.po +76 -0
- package/lang/translations/sr-latn.po +76 -0
- package/lang/translations/sr.po +76 -0
- package/lang/translations/sv.po +76 -0
- package/lang/translations/th.po +76 -0
- package/lang/translations/tk.po +76 -0
- package/lang/translations/tr.po +76 -0
- package/lang/translations/tt.po +76 -0
- package/lang/translations/uk.po +76 -0
- package/lang/translations/ur.po +76 -0
- package/lang/translations/vi.po +76 -0
- package/lang/translations/zh-cn.po +76 -0
- package/lang/translations/zh.po +76 -0
- package/package.json +3 -3
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -17
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +17 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31d6=['mapper','addClass','_findSuggestions','assign','delete','addRange','getSuggestionCallback','getAttribute','for','low','containsPosition','addMarker','ck-suggestion-marker--active','options','formatGroupId','error-saving-suggestion-data-suggestion-discarded','name','trackChanges.trackFormatChanges','_checkSuggestionCorrectness','trackChanges.mergeNestedSuggestions','push','stopListening','has','markerReady','root','Users','formatBlock','_createSuggestion','getShiftedBy','_breakSuggestionMarker','data-suggestion','ready','_addSuggestionMarker','containsRangeInObject','formatBlock:','type','createRangeIn','deleteContent','containsRange','insertion','getUser','getRanges','isCollapsed','consumable','define','_customCallbacks','splice','editingDowncast','collaboration.channelId','isAfter','isIntersectingWithRange','external:','hasComments','backward','_isDataLoaded','element','toViewElement','reconvertMarker','insertion:discard','isBefore','catch','parent','formatInline:','_defaultCallbacks','acceptAllSuggestions','fetchCommentThread','always','TrackChangesEditing','stop','remove','formatInline:accept','removeComment','showSuggestionHighlights','isBlock','formatBlock:discard','isUndo','setAttribute','_adapter','marker-count','editor','_rangeIsInLocalUserInsertion','length','_getAuthorFromId','getAllAdjacentSuggestions','documentSelection','model','isOwn','accept','value','isAtEnd','applyOperation','change:_saved','trackChangesCommand','commands','activeMarkers','_getSuggestionData','PendingActions','_cutOutSuggestionMarker','position','formatInline','getMultiRangeId','plugins','sort','widget','after','_splitMarkerName','getLastMatchingPosition','acceptSelectedSuggestions','ck-suggestion-marker-','chain','discardSelectedSuggestions','track-changes-adapter-already-set','locale','setSelection','subType','execute','getSuggestions','_joinSuggestions','_model','track-changes-suggestion-not-found','dataToMarker','createdAt','previous','_joinWithAdjacentSuggestions','skipNestingCheck','isTouching','end','createRange','rejected','removed','insertContent','listenTo','splitPosition','range','_commentsRepository','removeMarker','setTo','isAtStart','map','creator','containsItem','fire','multipleBlocks','multi','markInsertion','suggestionChanged','_registerDefaultCallbacks','tablePasteChainId','addMarkerName','includes','isLimit','isLocal','adapter','getWalker','join','enableCommand','values','_setSuggestionRange','from','formatInline:chain','formatBlock:accept','_trackFormatChanges','markInlineFormat','conversion','_refreshSuggestionsChain','registerCustomCallback','suggestionLoaded','open','attributes','some','dataReady','forward','addMarker:suggestion','formatInline:discard','getSuggestion','getFirstRange','_suggestionFactory','update:suggestion','data','clear','size','addSuggestionData','isInContent','item','init','detach','elementEnd','add','getChangedMarkers','addSuggestion','set','enableReadOnlyMode','_descriptionFactory','change','@external','markDeletion','formatBlock:join','enqueueChange','unbindElementFromMarkerName','rootName','nodeBefore','pluginName','_suggestionState','addComment','ck-suggestion-marker-formatBlock','author','isInsideObject','move','trackChanges','markerToData','deletion','suggestion','default','_editor','newRange','removeAttribute','getItems','deletion:join','createPositionAt','markers','markerNameToElements','buildSuggestion','removeMarker:suggestion:formatBlock','change:activeMarkers','isObject','never','_suggestions','formatInline:join','removeClass','_handleNewSuggestionMarker','document','_saved','getAncestors','insertion:accept','substr','filter','_addThreadToSuggestion','CommentsRepository','addMarker:suggestion:formatBlock','consume','getCustomProperty','getFirstMarker','every','addHighlight','discard','bindElementToMarker','ck-suggestion-marker','split','_setSuggestionData','deletion:chain','authoredAt','deletion:','toJSON','return','keys','get','_enabledCommands','oldRange','accepted','originalSuggestionId','insertion:','$graveyard','getRange','then','requires','hasSuggestion','markerToHighlight','updateSuggestion','_isForcedDefaultExecutionBlock','isNextTo','normal','removeMarkers','high','containerElement','insert','acceptSuggestion','editing','forceDefaultExecution','getNearestSelectionRange','isRemovable','batch','markMultiRangeDeletion','start','_getExternalAuthor','howMany','writer','registerPostFixer','highest','fromRange','track-changes-user-not-found','schema','nodeAfter','unbind','selection','updateMarker','lowest','group','_updateSuggestionData','config','differ','dataDowncast','markBlockFormat','isEqual','getMarkers','getIntersection','createSelection','deletion:accept','markerName','isMultiRange','notReady','deletion:discard','discardAllSuggestions','_mergeNestedSuggestions','next','commentThread'];(function(_0x503ad9,_0x31d6a2){const _0x3583da=function(_0xe81e0){while(--_0xe81e0){_0x503ad9['push'](_0x503ad9['shift']());}};_0x3583da(++_0x31d6a2);}(_0x31d6,0x1b5));const _0x3583=function(_0x503ad9,_0x31d6a2){_0x503ad9=_0x503ad9-0x0;let _0x3583da=_0x31d6[_0x503ad9];return _0x3583da;};import{Plugin as _0x3e1d65,PendingActions as _0x5b742c}from'ckeditor5/src/core';import{LiveRange as _0x24eb6d}from'ckeditor5/src/engine';import{CKEditorError as _0x39b874,uid as _0x4c8182,priorities as _0x58c41a,logWarning as _0x3cfe69}from'ckeditor5/src/utils';import{toWidget as _0x406b88}from'ckeditor5/src/widget';import{Users as _0x1351a6,hashObject as _0x1364bd}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ed11d from'./commands/trackchangescommand';import _0x39a0a6 from'./commands/acceptsuggestioncommand';import _0x4297c9 from'./commands/discardsuggestioncommand';import _0x44de1f from'./commands/executeonallsuggestionscommand';import _0x4a7d33 from'./commands/executeonselectedsuggestionscommand';import _0x5a7c05 from'./suggestion';import _0x66d89e from'./suggestiondescriptionfactory';import _0x3b4dc9 from'./integrations/aiassistant';import _0xbc4ad5 from'./integrations/alignment';import _0x5a109a from'./integrations/basicstyles';import _0x46469d from'./integrations/blockquote';import _0x263543 from'./integrations/ckbox';import _0x42356a from'./integrations/codeblock';import _0x75222 from'./integrations/comments';import _0x1c4ce5 from'./integrations/deletecommand';import _0x1bd0e6 from'./integrations/documentlist';import _0x41b09f from'./integrations/entercommand';import _0x1e7cf3 from'./integrations/findandreplace';import _0x15d245 from'./integrations/font';import _0x39d90d from'./integrations/formatpainter';import _0x3bea3d from'./integrations/heading';import _0x366c88 from'./integrations/highlight';import _0x6b533e from'./integrations/horizontalline';import _0x46a818 from'./integrations/htmlembed';import _0x256d7b from'./integrations/image';import _0x20fc42 from'./integrations/imagereplace';import _0x1c11d5 from'./integrations/importword';import _0x5f1e43 from'./integrations/indent';import _0x17832f from'./integrations/inputcommand';import _0x315b1d from'./integrations/link';import _0xc55c7f from'./integrations/list';import _0x2483e9 from'./integrations/listproperties';import _0x573e68 from'./integrations/mediaembed';import _0x2bb334 from'./integrations/mention';import _0x5bf22c from'./integrations/pagebreak';import _0x55e738 from'./integrations/paragraph';import _0x4b8397 from'./integrations/removeformat';import _0x1c74b1 from'./integrations/restrictededitingmode';import _0x22910d from'./integrations/shiftentercommand';import _0x2d2030 from'./integrations/standardeditingmode';import _0x4afd42 from'./integrations/style';import _0x585b65 from'./integrations/table';import _0x38bed7 from'./integrations/tablemergesplit';import _0x556bea from'./integrations/tableheadings';import _0x376e87 from'./integrations/tableclipboard';import _0x4c34d5 from'./integrations/tablecolumnresize';import _0x3e3d24 from'./integrations/template';import _0x4f543e from'./integrations/tableofcontents';import _0x195310 from'./integrations/title';import _0x59c61e from'./integrations/undo';import{getTranslation as _0x5cceb4}from'./utils/common-translations';import _0xa088b9 from'./integrations/tablecaption';import _0x344e6f from'./integrations/documentlistproperties';import _0x32ade3 from'./integrations/tableproperties';import{isEqual as _0x49a667}from'lodash-es';export default class p extends _0x3e1d65{static get[_0x3583('0x8e')](){return['CommentsRepository',_0x1351a6,_0x5b742c,_0x3b4dc9,_0xbc4ad5,_0x5a109a,_0x46469d,_0x263543,_0x42356a,_0x75222,_0x1c4ce5,_0x1bd0e6,_0x344e6f,_0x41b09f,_0x1e7cf3,_0x15d245,_0x39d90d,_0x3bea3d,_0x366c88,_0x6b533e,_0x46a818,_0x256d7b,_0x20fc42,_0x1c11d5,_0x5f1e43,_0x17832f,_0x315b1d,_0xc55c7f,_0x2483e9,_0x573e68,_0x2bb334,_0x5bf22c,_0x55e738,_0x4b8397,_0x1c74b1,_0x22910d,_0x2d2030,_0x4afd42,_0x585b65,_0x38bed7,_0x556bea,_0xa088b9,_0x376e87,_0x4c34d5,_0x4f543e,_0x32ade3,_0x3e3d24,_0x195310,_0x59c61e];}static get[_0x3583('0x4f')](){return _0x3583('0x104');}constructor(_0x32e093){function _0x42d078(_0x3be864){return _0x3be864[_0x3583('0x10')](_0x349fad=>String['fromCharCode'](_0x349fad))[_0x3583('0x20')]('');}super(_0x32e093),this['set']('activeMarkers',[]),this['on'](_0x3583('0x65'),(_0x21f34c,_0x36e710,_0x15538b,_0x288e8f)=>{this[_0x3583('0x137')]['change'](()=>{for(const _0x2e05bf of[..._0x288e8f,..._0x15538b])this[_0x3583('0x137')][_0x3583('0x61')][_0x3583('0xd7')](_0x2e05bf)&&_0x32e093[_0x3583('0x9a')][_0x3583('0xfa')](_0x2e05bf);});}),this[_0x3583('0x46')]=new _0x66d89e(this[_0x3583('0x110')][_0x3583('0x116')]['schema'],this[_0x3583('0x110')][_0x3583('0x131')]),this[_0x3583('0x10e')]=null,this[_0x3583('0x36')]=new Bt(this['editor']),this[_0x3583('0x68')]=new Map(),this[_0x3583('0xc')]=_0x32e093[_0x3583('0x126')][_0x3583('0x85')]('CommentsRepository'),this[_0x3583('0x86')]=new Set(),this[_0x3583('0x137')]=this[_0x3583('0x110')][_0x3583('0x116')],this[_0x3583('0x50')]=new WeakMap(),this[_0x3583('0x92')]=!0x1,_0x32e093['config'][_0x3583('0xed')](_0x3583('0xd2'),_0x3583('0x5a')),this[_0x3583('0x27')]=_0x32e093[_0x3583('0xb0')][_0x3583('0x85')](_0x3583('0xd2')),_0x32e093[_0x3583('0xb0')][_0x3583('0xed')](_0x3583('0xd4'),!0x0),this[_0x3583('0xbe')]=_0x32e093[_0x3583('0xb0')][_0x3583('0x85')](_0x3583('0xd4')),this[_0x3583('0x11d')]=new _0x5ed11d(_0x32e093,this[_0x3583('0x86')]),this[_0x42d078([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x42d078([0x34,0x30,0x34,0x36,0x32,0x30,0x30,0x38]);}[_0x3583('0x3e')](){const _0x490951=this[_0x3583('0x110')];_0x490951[_0x3583('0x29')][_0x3583('0xc9')](_0x3583('0xf0'))['markerToHighlight']({'model':'suggestion','view':_0xbf1b14=>{const {id:_0x2ed52d,type:_0x2912d1}=this[_0x3583('0x12a')](_0xbf1b14['markerName']),_0x45e420=[_0x3583('0x7c'),_0x3583('0x12d')+_0x2912d1];let _0x123349=0xbb8;return this[_0x3583('0x11f')][_0x3583('0x1b')](_0xbf1b14[_0x3583('0xb9')])&&(_0x45e420[_0x3583('0xd5')](_0x3583('0xcd')),_0x123349=0xbc2),_0x3583('0x58')==_0x2912d1&&(_0x123349+=0x5),{'classes':_0x45e420,'attributes':{'data-suggestion':_0x2ed52d},'priority':_0x123349};}}),_0x490951[_0x3583('0x29')][_0x3583('0xc9')](_0x3583('0xb2'))[_0x3583('0x41')](_0x357ebf=>{_0x357ebf['on'](_0x3583('0x32'),(_0x441900,_0x10e24f,_0x338207)=>{if(!_0x338207['options'][_0x3583('0x109')])return;const _0x284d3b=_0x10e24f['item'];if(!_0x284d3b)return;const _0x19dfa6=_0x338207[_0x3583('0xc1')][_0x3583('0xf9')](_0x284d3b);_0x490951[_0x3583('0x116')]['schema']['isObject'](_0x284d3b)&&_0x19dfa6&&!_0x19dfa6[_0x3583('0x76')](_0x3583('0x128'))&&_0x19dfa6['is'](_0x3583('0x97'))&&_0x406b88(_0x19dfa6,_0x338207[_0x3583('0xa3')]);},{'priority':_0x3583('0x96')});}),_0x490951[_0x3583('0x29')][_0x3583('0xc9')]('dataDowncast')[_0x3583('0x90')]({'model':_0x3583('0x59'),'view':(_0x39649c,_0x48810d)=>{if(!_0x48810d[_0x3583('0xce')][_0x3583('0x109')])return null;const {type:_0x3be68b}=this[_0x3583('0x12a')](_0x39649c[_0x3583('0xb9')]);return{'classes':['ck-suggestion-marker',_0x3583('0x12d')+_0x3be68b],'priority':0xbb8};}});const _0x17ac81=({showActiveMarkers:_0x980139=!0x0}={})=>(_0x35a8ad,_0x30ffbc,_0x364d1c)=>{if(!_0x30ffbc['item'])return;if(_0x30ffbc[_0x3583('0x3d')]['is'](_0x3583('0xab')))return void _0x364d1c[_0x3583('0xec')][_0x3583('0x75')](_0x30ffbc[_0x3583('0x3d')],_0x35a8ad['name']);const _0xc7fb51=_0x364d1c[_0x3583('0xc1')]['toViewElement'](_0x30ffbc[_0x3583('0x3d')]);if(!(_0x30ffbc[_0x3583('0x3d')]['is'](_0x3583('0xf8'))&&_0x490951['model'][_0x3583('0xa8')][_0x3583('0x10a')](_0x30ffbc[_0x3583('0x3d')])&&!_0xc7fb51['getCustomProperty'](_0x3583('0x79'))))return;const {id:_0x4873a1}=this[_0x3583('0x12a')](_0x30ffbc[_0x3583('0xb9')]);_0x364d1c[_0x3583('0xa3')][_0x3583('0xc2')]([_0x3583('0x7c'),_0x3583('0x52')],_0xc7fb51),_0x364d1c[_0x3583('0xa3')][_0x3583('0x10d')]('data-suggestion',_0x4873a1,_0xc7fb51),_0x364d1c['mapper'][_0x3583('0x7b')](_0xc7fb51,_0x30ffbc[_0x3583('0xb9')]),_0x980139&&(this[_0x3583('0x11f')]['includes'](_0x30ffbc[_0x3583('0xb9')])?_0x364d1c[_0x3583('0xa3')][_0x3583('0xc2')](_0x3583('0xcd'),_0xc7fb51):_0x364d1c[_0x3583('0xa3')][_0x3583('0x6a')](_0x3583('0xcd'),_0xc7fb51));for(const _0x5bd18f of _0x490951['model'][_0x3583('0xe5')](_0x30ffbc[_0x3583('0x3d')])[_0x3583('0x5e')]())_0x364d1c[_0x3583('0xec')][_0x3583('0x75')](_0x5bd18f,_0x35a8ad[_0x3583('0xd1')]);_0x364d1c['consumable'][_0x3583('0x75')](_0x30ffbc[_0x3583('0x3d')],_0x35a8ad[_0x3583('0xd1')]);};_0x490951[_0x3583('0x29')][_0x3583('0xc9')](_0x3583('0xb2'))[_0x3583('0x41')](_0x5aaa50=>{_0x5aaa50['on'](_0x3583('0x74'),(_0x24af6e,_0x5129e1,_0x45eee6)=>{_0x45eee6[_0x3583('0xce')][_0x3583('0x109')]&&_0x17ac81({'showActiveMarkers':!0x1})(_0x24af6e,_0x5129e1,_0x45eee6);},{'priority':_0x3583('0xa5')});}),_0x490951['conversion']['for']('dataDowncast')[_0x3583('0x57')]({'model':'suggestion','view':(_0x1f7595,_0x309777)=>_0x309777[_0x3583('0xce')][_0x3583('0x109')]?null:{'group':_0x3583('0x59'),'name':_0x1f7595[_0x3583('0x70')](0xb)}}),_0x490951['conversion'][_0x3583('0xc9')]('upcast')['elementToElement']({'view':{'name':_0x3583('0x59'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39caeb,{writer:_0x4755ca})=>{let _0x4c2433='suggestion:'+_0x39caeb[_0x3583('0xc8')]('suggestion-type')+':'+_0x39caeb['getAttribute']('id');return _0x39caeb[_0x3583('0xc8')](_0x3583('0x10f'))&&(_0x4c2433+=':'+_0x39caeb[_0x3583('0xc8')](_0x3583('0x10f'))),_0x4755ca['createElement']('$marker',{'data-name':_0x4c2433});}}),_0x490951[_0x3583('0x29')]['for']('upcast')[_0x3583('0x139')]({'view':_0x3583('0x59')}),_0x490951[_0x3583('0x29')][_0x3583('0xc9')](_0x3583('0xf0'))[_0x3583('0x41')](_0xae0b3e=>{_0xae0b3e['on']('addMarker:suggestion:formatBlock',_0x17ac81(),{'priority':_0x3583('0x96')});}),_0x490951[_0x3583('0x29')][_0x3583('0xc9')](_0x3583('0xf0'))[_0x3583('0x41')](_0x380b01=>{_0x380b01['on'](_0x3583('0x64'),(_0x50af86,_0x29503f,_0x3d5b6f)=>{const _0x434999=_0x3d5b6f['mapper'][_0x3583('0x62')](_0x29503f[_0x3583('0xb9')]);if(_0x434999)for(const _0x4dd573 of _0x434999)_0x4dd573[_0x3583('0x76')](_0x3583('0x79'))||(_0x3d5b6f[_0x3583('0xa3')]['removeClass']([_0x3583('0x7c'),'ck-suggestion-marker-formatBlock',_0x3583('0xcd')],_0x4dd573),_0x3d5b6f[_0x3583('0xa3')][_0x3583('0x5d')](_0x3583('0xdf'),_0x4dd573),_0x3d5b6f[_0x3583('0xc1')][_0x3583('0x4c')](_0x4dd573,_0x29503f['markerName']));},{'priority':'high'});}),_0x490951[_0x3583('0x116')][_0x3583('0x6c')][_0x3583('0xa4')](_0x51d8ea=>{let _0x55a623=!0x1;const _0x3d41a5=Array[_0x3583('0x24')](_0x490951[_0x3583('0x116')]['document'][_0x3583('0xb1')][_0x3583('0x42')]()),_0x58cb69=new Set();for(const {name:_0x1442a4,data:_0x231e2d}of _0x3d41a5){const {group:_0x212c87,type:_0x14834a,id:_0x77f257}=this['_splitMarkerName'](_0x1442a4);if(_0x3583('0x59')!==_0x212c87)continue;const _0x36680c=this[_0x3583('0x68')]['get'](_0x77f257);if(null!=_0x231e2d[_0x3583('0x5c')]){_0x3583('0x124')==_0x14834a&&(_0x55a623=_0x55a623||$t(_0x231e2d[_0x3583('0x5c')],_0x1442a4,_0x51d8ea,_0x490951[_0x3583('0x116')][_0x3583('0xa8')]));if(_0x231e2d[_0x3583('0x5c')]['isCollapsed']||_0x3583('0x8b')==_0x231e2d[_0x3583('0x5c')][_0x3583('0xd9')]['rootName']||_0x3583('0xdb')==_0x14834a&&!Rt(_0x231e2d[_0x3583('0x5c')])||'deletion'==_0x14834a&&!(!Mt(_0x50e553=_0x231e2d[_0x3583('0x5c')])&&!function(_0x1925ba){return _0x1925ba[_0x3583('0xa0')]['parent']==_0x1925ba[_0x3583('0x4')]['nodeBefore']&&_0x1925ba['start']['isAtEnd'];}(_0x50e553)))_0x51d8ea[_0x3583('0xd')](_0x1442a4),_0x55a623=!0x0;else{if(!_0x36680c||!_0x36680c[_0x3583('0x3c')])continue;_0x58cb69[_0x3583('0x41')](_0x36680c);}}}var _0x50e553;return _0x58cb69['size']>0x0&&(_0x55a623=!!this['_joinWithAdjacentSuggestions'](_0x58cb69)||_0x55a623),_0x55a623;}),_0x490951[_0x3583('0x116')][_0x3583('0x6c')][_0x3583('0xa4')](_0x474907=>{let _0x12f008=!0x1;for(const _0x4cef84 of _0x490951[_0x3583('0x116')][_0x3583('0x6c')][_0x3583('0xb1')]['getChanges']()){if(_0x3583('0x98')!=_0x4cef84['type'])continue;const _0x1bf85e=_0x4cef84[_0x3583('0x123')][_0x3583('0xdd')](_0x4cef84['length']);if(_0x1bf85e[_0x3583('0x11a')])for(const _0x24ad87 of this[_0x3583('0x68')][_0x3583('0x22')]()){if(_0x24ad87[_0x3583('0xba')]||!_0x24ad87[_0x3583('0x3c')])continue;if(_0x3583('0xdb')!=_0x24ad87[_0x3583('0xe4')])continue;const _0x37dca2=_0x24ad87[_0x3583('0x35')]();if(_0x37dca2['start'][_0x3583('0xfe')]!=_0x37dca2[_0x3583('0x4')][_0x3583('0xfe')]&&_0x37dca2[_0x3583('0x4')][_0x3583('0xb4')](_0x4cef84[_0x3583('0x123')])){const _0x1555b9=_0x490951[_0x3583('0x116')][_0x3583('0x5')](_0x37dca2[_0x3583('0xa0')],_0x1bf85e);_0x474907['updateMarker'](_0x24ad87[_0x3583('0x77')](),{'range':_0x1555b9}),_0x12f008=!0x0;}}}return _0x12f008;}),_0x490951[_0x3583('0x116')][_0x3583('0x61')]['on'](_0x3583('0x37'),(_0x111160,_0x4720fb,_0x2b8e7c)=>{if(null==_0x2b8e7c){const {id:_0x43b0f4}=this['_splitMarkerName'](_0x4720fb[_0x3583('0xd1')]),_0x18f04e=this[_0x3583('0x68')][_0x3583('0x85')](_0x43b0f4);_0x18f04e&&_0x18f04e[_0x3583('0x1a')](_0x4720fb[_0x3583('0xd1')]);}}),_0x490951[_0x3583('0x116')][_0x3583('0x6c')]['on']('change:data',()=>{const _0x828a75=Array[_0x3583('0x24')](_0x490951['model'][_0x3583('0x6c')][_0x3583('0xb1')][_0x3583('0x42')]())[_0x3583('0x71')](_0x5cb7b1=>'suggestion'===this[_0x3583('0x12a')](_0x5cb7b1['name'])[_0x3583('0xae')]);if(0x0===_0x828a75[_0x3583('0x112')])return;_0x828a75[_0x3583('0x127')]((_0x2e95ea,_0x51b336)=>{const _0x598b9c=_0x2e95ea[_0x3583('0x38')]['oldRange'],_0x4e1879=_0x51b336[_0x3583('0x38')][_0x3583('0x87')];return null===_0x598b9c&&null===_0x4e1879?0x0:null===_0x598b9c&&null!==_0x4e1879?-0x1:null!==_0x598b9c&&null===_0x4e1879?0x1:_0x598b9c[_0x3583('0xa0')][_0x3583('0xfc')](_0x4e1879[_0x3583('0xa0')])?-0x1:0x1;});const _0xf27c5a=new Set(),_0x58c3a9=new Set();for(const {name:_0x5b63fa,data:_0x485dee}of _0x828a75){const {id:_0x1c33a7}=this['_splitMarkerName'](_0x5b63fa);if(null===_0x485dee[_0x3583('0x87')]){const _0x3bae9f=this[_0x3583('0x6b')](_0x5b63fa);_0x58c3a9[_0x3583('0x41')](_0x3bae9f);}else{const _0x5322ce=this[_0x3583('0x68')][_0x3583('0x85')](_0x1c33a7);null!==_0x485dee[_0x3583('0x5c')]||_0x5322ce['isInContent']?(_0xf27c5a[_0x3583('0x41')](_0x5322ce['head']),_0x58c3a9[_0x3583('0x41')](_0x5322ce)):this['_removeSuggestion'](_0x5322ce);}}_0x58c3a9[_0x3583('0x3a')]>0x0&&this['_refreshSuggestionsChain'](_0x58c3a9);for(const _0x1ca1e2 of _0xf27c5a)this[_0x3583('0x13')](_0x3583('0x17'),_0x1ca1e2);}),_0x490951[_0x3583('0x116')]['on'](_0x3583('0x11b'),(_0x4ecfcc,_0x2bc678)=>{const _0x13ee6d=_0x2bc678[0x0];if(!this[_0x3583('0x68')][_0x3583('0x3a')])return;if(!_0x13ee6d['isDocumentOperation'])return;if(_0x13ee6d[_0x3583('0x9e')][_0x3583('0x10c')]||!_0x13ee6d['batch'][_0x3583('0x1d')])return;let _0xaed74c,_0x25f6d6;switch(_0x13ee6d[_0x3583('0xe4')]){case _0x3583('0x98'):_0xaed74c=_0x490951[_0x3583('0x116')][_0x3583('0x60')](_0x13ee6d['position']),_0x25f6d6=_0xaed74c[_0x3583('0xdd')](_0x13ee6d[_0x3583('0xa2')]);break;case _0x3583('0x7d'):_0xaed74c=_0x490951['model'][_0x3583('0x60')](_0x13ee6d[_0x3583('0xa')]),_0x25f6d6=_0x490951[_0x3583('0x116')]['createPositionAt'](_0x13ee6d['moveTargetPosition']);break;case _0x3583('0x55'):_0xaed74c=_0x490951['model'][_0x3583('0x60')](_0x13ee6d['targetPosition']),_0x25f6d6=_0xaed74c[_0x3583('0xdd')](_0x13ee6d['howMany']);break;default:return;}const _0x58b737=_0x490951[_0x3583('0x116')][_0x3583('0x5')](_0xaed74c,_0x25f6d6);_0x490951[_0x3583('0x116')]['change'](()=>{for(const {suggestion:_0x14bac7,meta:_0x181f69}of this[_0x3583('0xc3')](_0x58b737)){if(_0x14bac7[_0x3583('0xba')])continue;if('formatInline'==_0x14bac7[_0x3583('0xe4')])continue;const _0x4c75d6=_0x14bac7['data']&&_0x14bac7['data'][_0x3583('0x14')];(_0x3583('0xdb')!=_0x14bac7['type']||'split'==_0x13ee6d[_0x3583('0xe4')]&&!_0x4c75d6)&&(_0x181f69[_0x3583('0xe2')]||_0x3583('0xe8')==_0x14bac7[_0x3583('0xe4')]&&_0x181f69['isOwn']||_0x14bac7[_0x3583('0x35')]()['containsRange'](_0x58b737)&&this['_breakSuggestionMarker'](_0x14bac7,_0xaed74c,_0x25f6d6));}});},{'priority':_0x3583('0xad')}),_0x490951[_0x3583('0x116')]['on'](_0x3583('0xe6'),(_0x431a97,_0x38e79d)=>{const _0x5957bb=_0x38e79d[0x0],_0x2d21fe=_0x38e79d[0x1];if(_0x2d21fe&&_0x2d21fe[_0x3583('0x9b')])return;if(this[_0x3583('0x92')])return;if(!this[_0x3583('0x11d')]['value'])return;if(_0x5957bb[_0x3583('0xeb')])return;const _0x5e1d2f=_0x490951[_0x3583('0x116')]['schema'],{start:_0x4887d2,end:_0x51fb10}=_0x5957bb[_0x3583('0x35')](),_0x574999=_0x4887d2[_0x3583('0xa9')]&&_0x5e1d2f[_0x3583('0x1c')](_0x4887d2[_0x3583('0xa9')])?null:_0x5e1d2f[_0x3583('0x9c')](_0x4887d2,_0x3583('0x31')),_0x4a9e14=_0x51fb10[_0x3583('0x4e')]&&_0x5e1d2f[_0x3583('0x1c')](_0x51fb10[_0x3583('0x4e')])?null:_0x5e1d2f[_0x3583('0x9c')](_0x51fb10,_0x3583('0xf6')),_0x2d9489=_0x490951[_0x3583('0x116')][_0x3583('0x5')](_0x574999?_0x574999[_0x3583('0xa0')]:_0x4887d2,_0x4a9e14?_0x4a9e14['end']:_0x51fb10);_0x490951[_0x3583('0x116')][_0x3583('0x47')](_0x84bae7=>{this[_0x3583('0x49')](_0x2d9489);const _0x301305=_0x490951['model'][_0x3583('0xa8')][_0x3583('0x9c')](_0x2d9489['start']);_0x5957bb['is'](_0x3583('0x115'))?_0x84bae7['setSelection'](_0x301305):_0x5957bb[_0x3583('0xe')](_0x301305);}),_0x431a97[_0x3583('0x105')]();},{'priority':_0x58c41a[_0x3583('0x94')]+0xa}),_0x490951['model']['on'](_0x3583('0x8'),(_0x41722d,_0x516418)=>{const _0x24bfb8=_0x516418[_0x516418[_0x3583('0x112')]-0x1];_0x24bfb8&&_0x24bfb8[_0x3583('0x9b')]||this[_0x3583('0x92')]||this[_0x3583('0x11d')][_0x3583('0x119')]&&(_0x490951['model'][_0x3583('0x47')](()=>{let _0x45a8e0=_0x490951[_0x3583('0x116')]['insertContent'](_0x516418[0x0],_0x516418[0x1],_0x516418[0x2],{'forceDefaultExecution':!0x0});if(!_0x45a8e0)return;_0x41722d[_0x3583('0x83')]=_0x45a8e0['clone']();const _0x554297=_0x45a8e0[_0x3583('0x4')][_0x3583('0x4e')],_0x1ba3fc=_0x490951[_0x3583('0x116')][_0x3583('0xa8')];_0x554297&&_0x1ba3fc['isBlock'](_0x554297)&&!_0x1ba3fc[_0x3583('0x66')](_0x554297)&&(_0x45a8e0=_0x490951['model'][_0x3583('0x5')](_0x45a8e0[_0x3583('0xa0')],_0x490951['model']['createPositionAt'](_0x554297,_0x3583('0x4')))),this['markInsertion'](_0x45a8e0);}),_0x41722d[_0x3583('0x105')]());},{'priority':_0x3583('0x96')}),this[_0x3583('0x110')][_0x3583('0x11e')]['add'](_0x3583('0x56'),this[_0x3583('0x11d')]),this[_0x3583('0x21')](_0x3583('0x56'));const _0x265c1e=new _0x39a0a6(_0x490951,this['_suggestions']);_0x490951[_0x3583('0x11e')]['add']('acceptSuggestion',_0x265c1e),this['enableCommand'](_0x3583('0x99'));const _0x4b313d=new _0x4297c9(_0x490951,this[_0x3583('0x68')]);_0x490951[_0x3583('0x11e')][_0x3583('0x41')]('discardSuggestion',_0x4b313d),this[_0x3583('0x21')]('discardSuggestion'),_0x490951[_0x3583('0x11e')]['add'](_0x3583('0x101'),new _0x44de1f(_0x490951,_0x265c1e,this[_0x3583('0x68')])),this[_0x3583('0x21')](_0x3583('0x101')),_0x490951[_0x3583('0x11e')][_0x3583('0x41')](_0x3583('0xbd'),new _0x44de1f(_0x490951,_0x4b313d,this[_0x3583('0x68')])),this['enableCommand'](_0x3583('0xbd')),_0x490951[_0x3583('0x11e')][_0x3583('0x41')](_0x3583('0x12c'),new _0x4a7d33(_0x490951,_0x265c1e,this[_0x3583('0x68')])),this[_0x3583('0x21')](_0x3583('0x12c')),_0x490951[_0x3583('0x11e')][_0x3583('0x41')](_0x3583('0x12f'),new _0x4a7d33(_0x490951,_0x4b313d,this[_0x3583('0x68')])),this[_0x3583('0x21')](_0x3583('0x12f'));const _0x5908b4=_0x490951[_0x3583('0x126')]['get'](_0x3583('0x73'));this[_0x3583('0x9')](_0x5908b4,_0x3583('0x51'),(_0x57537b,{threadId:_0x47533c})=>{const _0x3de601=this[_0x3583('0x68')][_0x3583('0x85')](_0x47533c);_0x3de601&&_0x3de601[_0x3583('0xc0')]&&0x1===_0x3de601[_0x3583('0xc0')][_0x3583('0x112')]&&this['_updateSuggestionData'](_0x47533c,{'hasComments':!0x0});},{'priority':_0x3583('0xca')}),this[_0x3583('0x9')](_0x5908b4,_0x3583('0x108'),(_0xb6594,{threadId:_0x51c106})=>{const _0x2e8f23=this['_suggestions'][_0x3583('0x85')](_0x51c106);_0x2e8f23&&_0x2e8f23[_0x3583('0xc0')]&&!_0x2e8f23[_0x3583('0xc0')][_0x3583('0x112')]&&this[_0x3583('0xaf')](_0x51c106,{'hasComments':!0x1});},{'priority':'low'});}set[_0x3583('0x1e')](_0x578bfa){if(this[_0x3583('0x10e')])throw new _0x39b874(_0x3583('0x130'),this);this[_0x3583('0x10e')]=_0x578bfa;}get['adapter'](){return this[_0x3583('0x10e')];}[_0x3583('0x135')]({skipNotAttached:_0x439a83=!0x1,toJSON:_0x4229a1=!0x1}={}){const _0x22300d=[];for(const _0x4fdfba of this[_0x3583('0x68')]['values']())_0x439a83&&!_0x4fdfba[_0x3583('0x3c')]||_0x22300d[_0x3583('0xd5')](_0x4fdfba);return _0x4229a1?_0x22300d[_0x3583('0x10')](_0x22defa=>_0x22defa[_0x3583('0x82')]()):_0x22300d;}[_0x3583('0x34')](_0x2d866b){const _0x3039ed=this[_0x3583('0x68')][_0x3583('0x85')](_0x2d866b);if(!_0x3039ed)throw new _0x39b874(_0x3583('0x138'),this);return _0x3039ed;}[_0x3583('0x8f')](_0x4c3430){return this[_0x3583('0x68')][_0x3583('0xd7')](_0x4c3430);}[_0x3583('0x3b')](_0x2a4839){const {authorId:_0x4485bd,id:_0x193df1,attributes:_0x335311}=_0x2a4839,[_0x3ba176,_0x1e0c2f]=_0x2a4839[_0x3583('0xe4')]['split'](':'),_0x8e72b8=this[_0x3583('0x68')][_0x3583('0x85')](_0x193df1)||this[_0x3583('0xdc')](_0x3ba176,_0x1e0c2f,_0x193df1,_0x4485bd,_0x335311);if(this[_0x3583('0x72')](_0x8e72b8),this[_0x3583('0xd3')](_0x8e72b8,_0x3ba176,_0x1e0c2f||null,_0x4485bd),_0x8e72b8[_0x3583('0x13a')]=_0x2a4839[_0x3583('0x13a')],_0x8e72b8[_0x3583('0xf7')]=!0x0,_0x335311&&_0x335311[_0x3583('0x48')]){const _0x144885=_0x335311[_0x3583('0x48')],_0x52c031=this[_0x3583('0xa1')](_0x144885['authorName']);_0x8e72b8[_0x3583('0x80')]=_0x144885['createdAt'],_0x8e72b8[_0x3583('0x53')]=_0x52c031,_0x8e72b8['isExternal']=!0x0;}else _0x8e72b8[_0x3583('0x80')]=_0x2a4839[_0x3583('0x13a')];switch(_0x2a4839[_0x3583('0x38')]&&(_0x8e72b8[_0x3583('0x38')]=_0x2a4839[_0x3583('0x38')]),_0x2a4839[_0x3583('0x2e')]&&(_0x8e72b8['attributes']=_0x2a4839[_0x3583('0x2e')]),this[_0x3583('0x10e')]&&this['_adapter']['addSuggestion']||(_0x8e72b8[_0x3583('0x6d')]=!0x0),this[_0x3583('0x50')][_0x3583('0x85')](_0x8e72b8)){case'notReady':this['_suggestionState'][_0x3583('0x44')](_0x8e72b8,_0x3583('0x30'));break;case _0x3583('0xd8'):_0x8e72b8[_0x3583('0x3c')]?(this['_refreshSuggestionsChain'](new Set([_0x8e72b8])),this[_0x3583('0x1')](new Set([_0x8e72b8])),this[_0x3583('0x50')][_0x3583('0x44')](_0x8e72b8,_0x3583('0xe0')),this[_0x3583('0x13')](_0x3583('0x2c'),_0x8e72b8)):this[_0x3583('0x50')][_0x3583('0x44')](_0x8e72b8,_0x3583('0x7'));}return _0x8e72b8;}[_0x3583('0x99')](_0xe513bb){this[_0x3583('0x9b')](()=>{this['editor'][_0x3583('0x116')][_0x3583('0x47')](()=>{for(const _0x14b5c4 of _0xe513bb['getAllAdjacentSuggestions']())_0x14b5c4[_0x3583('0x118')]();});});}['discardSuggestion'](_0x574802){this[_0x3583('0x9b')](()=>{this['editor']['model'][_0x3583('0x47')](()=>{for(const _0x5897e8 of _0x574802[_0x3583('0x114')]())_0x5897e8[_0x3583('0x7a')]();});});}[_0x3583('0x21')](_0x21ad15,_0x3d6738){const _0x5afbe5=this[_0x3583('0x110')][_0x3583('0x11e')]['get'](_0x21ad15);if(!_0x5afbe5)throw new _0x39b874('track-changes-command-not-found',this,{'commandName':_0x21ad15});this[_0x3583('0x86')][_0x3583('0x41')](_0x5afbe5),_0x3d6738&&_0x5afbe5['on'](_0x3583('0x134'),(_0x13b8de,_0x6d31f9)=>{this['trackChangesCommand'][_0x3583('0x119')]&&(this[_0x3583('0x92')]||_0x6d31f9[_0x3583('0x112')]>0x0&&_0x6d31f9[_0x6d31f9['length']-0x1]&&_0x6d31f9[_0x6d31f9[_0x3583('0x112')]-0x1][_0x3583('0x9b')]||(_0x3d6738((..._0x18bc39)=>_0x5afbe5[_0x3583('0x134')](..._0x18bc39,{'forceDefaultExecution':!0x0}),..._0x6d31f9),_0x13b8de[_0x3583('0x105')]()));},{'priority':_0x3583('0x96')});}[_0x3583('0x9b')](_0x52f254){let _0x5c8fb0,_0x28c839;const _0x56c0ee=this['_isForcedDefaultExecutionBlock'];this[_0x3583('0x92')]=!0x0;try{_0x5c8fb0=_0x52f254();}catch(_0x35a627){_0x28c839=_0x35a627;}return _0x56c0ee||(this[_0x3583('0x92')]=!0x1),_0x28c839&&_0x39b874['rethrowUnexpectedError'](_0x28c839,this),_0x5c8fb0;}[_0x3583('0x16')](_0x4125f4,_0x3d347b=null,_0xdc147f={}){if(_0x4125f4[_0x3583('0xeb')])return null;const _0x4ad225=this['editor'][_0x3583('0x126')][_0x3583('0x85')](_0x3583('0xda'))['me'];for(const {suggestion:_0x2748f5,meta:_0x393f7}of this[_0x3583('0xc3')](_0x4125f4,_0x3583('0xe8')))if(_0x393f7[_0x3583('0x117')]){if(!_0x393f7[_0x3583('0x93')]){if(_0x393f7['containsRangeInObject']){if(!this[_0x3583('0xbe')]||!Ot(_0x2748f5,_0xdc147f))continue;return _0x2748f5;}if(Ot(_0x2748f5,_0xdc147f))return _0x2748f5;this[_0x3583('0xde')](_0x2748f5,_0x4125f4['start'],_0x4125f4['end']);break;}if(_0x3d347b==_0x2748f5[_0x3583('0x133')]&&Ot(_0x2748f5,_0xdc147f)){const _0x23b831=_0x2748f5[_0x3583('0x35')]();return _0x23b831['start'][_0x3583('0xb4')](_0x4125f4[_0x3583('0x4')])?this[_0x3583('0x23')](_0x2748f5,this[_0x3583('0x137')]['createRange'](_0x4125f4['start'],_0x23b831['end'])):this[_0x3583('0x23')](_0x2748f5,this[_0x3583('0x137')]['createRange'](_0x23b831[_0x3583('0xa0')],_0x4125f4[_0x3583('0x4')])),_0x2748f5;}}const _0x31c675=_0x4c8182(),_0x345d9a=_0x4ad225['id'],_0x585cd2=_0x3d347b?_0x3583('0x8a')+_0x3d347b:_0x3583('0xe8'),_0x3d0676=this[_0x3583('0x7e')]({'id':_0x31c675,'type':_0x585cd2,'createdAt':new Date(),'authorId':_0x345d9a,'attributes':_0xdc147f});return this['_addSuggestionMarker'](_0x585cd2,_0x31c675,_0x345d9a,_0x4125f4),_0x3d0676;}['markMultiRangeInsertion'](_0x4c7bad,_0x53337f=_0x3583('0x15'),_0x4eaa34={}){const _0x552ad6=this[_0x3583('0x110')]['plugins']['get']('Users')['me'],_0x1a49af=this[_0x3583('0x36')][_0x3583('0xc7')](_0x3583('0xe8'),_0x53337f,_0x3583('0x20'));for(const _0x54c18d of this[_0x3583('0x135')]())if(_0x54c18d[_0x3583('0x53')]['id']==_0x552ad6['id']&&'insertion'==_0x54c18d['type']&&_0x54c18d[_0x3583('0x133')]==_0x53337f&&Ot(_0x54c18d,_0x4eaa34)&&(_0x1a49af(_0x54c18d[_0x3583('0xea')](),_0x4c7bad)||_0x1a49af(_0x4c7bad,_0x54c18d[_0x3583('0xea')]()))){for(const _0x2fd794 of _0x4c7bad)_0x54c18d[_0x3583('0xc6')](_0x2fd794);return _0x54c18d;}for(const {suggestion:_0x293a44,meta:_0x5642ec}of this[_0x3583('0xc3')](_0x4c7bad,_0x3583('0xe8'))){if(!_0x5642ec[_0x3583('0x117')])continue;if(!this[_0x3583('0xbe')]&&_0x5642ec[_0x3583('0xe2')])continue;if(!Ot(_0x293a44,_0x4eaa34))continue;let _0x9b8a7a=!0x0;for(const _0x59c852 of _0x293a44[_0x3583('0xea')]())for(const _0x1dab8e of _0x4c7bad)if(!_0x59c852[_0x3583('0xe7')](_0x1dab8e)){_0x9b8a7a=!0x1;break;}if(_0x9b8a7a)return _0x293a44;}const _0x465b4d=_0x4c8182(),_0xee8cfe=_0x552ad6['id'],_0x57d769=_0x3583('0x8a')+_0x53337f,_0x2b8581=this[_0x3583('0x7e')]({'id':_0x465b4d,'type':_0x57d769,'createdAt':new Date(),'authorId':_0xee8cfe,'attributes':_0x4eaa34});for(const _0x2c7048 of _0x4c7bad)this[_0x3583('0xe1')](_0x57d769,_0x465b4d,_0xee8cfe,_0x2c7048,_0x5a7c05[_0x3583('0x125')]());return _0x2b8581;}[_0x3583('0x28')](_0x25310a,_0x155856,_0x3b1417=null,_0x58da00={}){if(_0x3b1417=_0x3b1417||Nt(_0x155856),_0x25310a[_0x3583('0xeb')])return null;if(_0x3583('0x67')===this[_0x3583('0x27')]){const _0x17ff49=this['_suggestionFactory'][_0x3583('0xc7')](_0x3583('0x124'),_0x3b1417,'accept');return this[_0x3583('0x9b')](()=>_0x17ff49([_0x25310a],_0x155856,_0x58da00)),null;}const _0x3cca85=this['editor'][_0x3583('0x126')][_0x3583('0x85')](_0x3583('0xda'))['me'],_0x4b5664=[];if(_0x3583('0x103')!==this['_trackFormatChanges'])for(const {suggestion:_0x301a83,meta:_0x2cd2c5}of this[_0x3583('0xc3')](_0x25310a,_0x3583('0xe8')))_0x2cd2c5[_0x3583('0x117')]&&!_0x2cd2c5[_0x3583('0x54')]&&_0x4b5664[_0x3583('0xd5')](..._0x301a83['getRanges']());const _0xf08b12=function(_0x2e25b3,_0x32aeff){const _0x319b44=[];for(const _0x40fef1 of _0x32aeff){const _0x2ac6b4=_0x2e25b3[_0x3583('0xb6')](_0x40fef1);_0x2ac6b4&&_0x319b44[_0x3583('0xd5')](_0x2ac6b4);}return _0x319b44;}(_0x25310a,_0x4b5664),_0x413b5d=function(_0xdd4e76,_0x41615b){const _0x5933c5=[_0xdd4e76];for(const _0x1be673 of _0x41615b){let _0x4b2b72=0x0;for(;_0x4b2b72<_0x5933c5[_0x3583('0x112')];){const _0x576a49=_0x5933c5[_0x4b2b72]['getDifference'](_0x1be673);_0x5933c5[_0x3583('0xef')](_0x4b2b72,0x1,..._0x576a49),_0x4b2b72+=_0x576a49['length'];}}return _0x5933c5;}(_0x25310a,_0x4b5664);_0xf08b12['length']&&this[_0x3583('0x137')][_0x3583('0x47')](()=>{for(const _0x45525c of _0xf08b12){const _0x2cc9c4=this[_0x3583('0x36')][_0x3583('0xc7')](_0x3583('0x124'),_0x3b1417,_0x3583('0x118'));this[_0x3583('0x9b')](()=>_0x2cc9c4([_0x45525c],_0x155856,_0x58da00));}});for(const _0x9a9eb8 of _0x413b5d){let _0x2a36b2=null,_0x59421d=_0x9a9eb8['start'],_0x9d2c2=_0x9a9eb8['end'];for(const {suggestion:_0x12a9fa,meta:_0x54578d}of this[_0x3583('0xc3')](_0x9a9eb8,_0x3583('0x124'))){if(!_0x54578d[_0x3583('0x117')])continue;if(_0x12a9fa['subType']!=_0x3b1417)continue;if(!Ot(_0x12a9fa,_0x58da00))continue;const _0x448d45=_0x12a9fa[_0x3583('0x35')]();if(_0x448d45[_0x3583('0xe7')](_0x9a9eb8,!0x0))return null;_0x59421d=_0x59421d['isBefore'](_0x448d45[_0x3583('0xa0')])?_0x59421d:_0x448d45[_0x3583('0xa0')],_0x9d2c2=_0x9d2c2[_0x3583('0xf2')](_0x448d45[_0x3583('0x4')])?_0x9d2c2:_0x448d45[_0x3583('0x4')],_0x2a36b2?_0x448d45[_0x3583('0xa0')][_0x3583('0xfc')](_0x2a36b2[_0x3583('0x35')]()[_0x3583('0xa0')])?(_0x2a36b2['removeMarkers'](),_0x2a36b2=_0x12a9fa):_0x12a9fa[_0x3583('0x95')]():_0x2a36b2=_0x12a9fa;}const _0x4ac25e=this[_0x3583('0x137')][_0x3583('0x5')](_0x59421d,_0x9d2c2);if(_0x2a36b2)this[_0x3583('0x23')](_0x2a36b2,_0x4ac25e);else{const _0x11009=_0x4c8182(),_0x27d70e=_0x3cca85['id'];this[_0x3583('0x7e')]({'id':_0x11009,'type':'formatInline:'+_0x3b1417,'data':_0x155856,'createdAt':new Date(),'authorId':_0x27d70e,'attributes':_0x58da00}),this[_0x3583('0xe1')](_0x3583('0xff')+_0x3b1417,_0x11009,_0x27d70e,_0x4ac25e);}}return null;}[_0x3583('0xb3')](_0x44b96b,_0x499570,_0x440490=[],_0x1abff5=null,_0xf2dd28={}){_0x499570['formatGroupId']||(_0x499570[_0x3583('0xcf')]=_0x499570['commandName']),_0x499570[_0x3583('0x14')]=_0x44b96b['is']('range'),_0x1abff5=_0x1abff5||Nt(_0x499570);const _0x39453e=_0x440490[_0x3583('0x10')](_0x5421b0=>jt(_0x5421b0,this[_0x3583('0x137')])),_0x5e36b3=_0x44b96b['is']('range')?_0x44b96b:jt(_0x44b96b,this[_0x3583('0x137')]);if(_0x3583('0x67')===this['_trackFormatChanges']){const _0x4f1e5a=this[_0x3583('0x36')]['getSuggestionCallback'](_0x3583('0xdb'),_0x1abff5,_0x3583('0x118'));return this[_0x3583('0x9b')](()=>_0x4f1e5a([_0x5e36b3],_0x499570,_0xf2dd28)),null;}_0x39453e['push'](_0x5e36b3);let _0x5a2eee=!0x0;for(const _0x47e846 of _0x39453e)if(!this[_0x3583('0x111')](_0x47e846)){_0x5a2eee=!0x1;break;}if(_0x5a2eee&&_0x3583('0x103')!==this[_0x3583('0x27')]){const _0x3db29e=this['_suggestionFactory'][_0x3583('0xc7')](_0x3583('0xdb'),_0x1abff5,_0x3583('0x118'));return this[_0x3583('0x9b')](()=>_0x3db29e([_0x5e36b3],_0x499570,_0xf2dd28)),null;}let _0x19e1b4=null,_0x4792bd=_0x5e36b3[_0x3583('0xa0')],_0x3282dd=_0x5e36b3[_0x3583('0x4')];for(const {suggestion:_0x23d1cc,meta:_0x430235}of this[_0x3583('0xc3')](_0x5e36b3,_0x3583('0xdb'))){if(!_0x430235[_0x3583('0x117')])continue;if(_0x430235[_0x3583('0x93')]||_0x430235[_0x3583('0xe2')]||_0x430235[_0x3583('0x54')])continue;if(_0x23d1cc[_0x3583('0x38')][_0x3583('0xcf')]!=_0x499570['formatGroupId'])continue;if(!Ot(_0x23d1cc,_0xf2dd28))continue;const _0x55058c=_0x23d1cc['getFirstRange']();if(_0x23d1cc[_0x3583('0x133')]==_0x1abff5){if(_0x55058c[_0x3583('0xe7')](_0x5e36b3,!0x0))return null;_0x4792bd=_0x4792bd[_0x3583('0xfc')](_0x55058c[_0x3583('0xa0')])?_0x4792bd:_0x55058c['start'],_0x3282dd=_0x3282dd['isAfter'](_0x55058c[_0x3583('0x4')])?_0x3282dd:_0x55058c[_0x3583('0x4')],_0x19e1b4?_0x55058c['start']['isBefore'](_0x19e1b4[_0x3583('0x35')]()[_0x3583('0xa0')])?(_0x19e1b4[_0x3583('0x95')](),_0x19e1b4=_0x23d1cc):_0x23d1cc[_0x3583('0x95')]():_0x19e1b4=_0x23d1cc;}else{const _0x49e3ab=_0x5e36b3[_0x3583('0xb6')](_0x55058c);this['_cutOutSuggestionMarker'](_0x23d1cc,_0x49e3ab);}}const _0x198291=this['editor'][_0x3583('0x126')][_0x3583('0x85')]('Users')['me'],_0x2e2f56=_0x4c8182(),_0x33c16c=_0x198291['id'];if(_0x19e1b4)return this[_0x3583('0x23')](_0x19e1b4,this['_model'][_0x3583('0x5')](_0x4792bd,_0x3282dd)),_0x19e1b4;{const _0x1dd03d=this[_0x3583('0x7e')]({'id':_0x2e2f56,'type':_0x3583('0xe3')+_0x1abff5,'data':_0x499570,'createdAt':new Date(),'authorId':_0x33c16c,'attributes':_0xf2dd28});return this['_addSuggestionMarker']('formatBlock:'+_0x1abff5,_0x2e2f56,_0x33c16c,this[_0x3583('0x137')]['createRange'](_0x4792bd,_0x3282dd)),_0x1dd03d;}}['markMultiRangeBlockFormat'](_0x54c719,_0x23435c,_0x4ac12a=[],_0x2be9bd=null,_0x1d3e16={}){_0x23435c[_0x3583('0xcf')]||(_0x23435c[_0x3583('0xcf')]=_0x23435c['commandName']);const _0x1e5228=_0x54c719[0x0];_0x23435c[_0x3583('0x14')]=_0x1e5228['is'](_0x3583('0xb')),_0x2be9bd=_0x2be9bd||Nt(_0x23435c);const _0x53dc6b=_0x4ac12a['map'](_0x3ab396=>jt(_0x3ab396,this[_0x3583('0x137')])),_0x36ad11=_0x1e5228['is'](_0x3583('0xb'))?_0x54c719:_0x54c719['map'](_0x1b109a=>jt(_0x1b109a,this[_0x3583('0x137')]));if(_0x3583('0x67')===this[_0x3583('0x27')]){const _0x2dbf30=this['_suggestionFactory'][_0x3583('0xc7')]('formatBlock',_0x2be9bd,'accept');return this['forceDefaultExecution'](()=>_0x2dbf30(_0x36ad11,_0x23435c,_0x1d3e16)),null;}_0x53dc6b[_0x3583('0xd5')](..._0x36ad11);let _0x3ee758=!0x0;for(const _0x51c088 of _0x53dc6b)if(!this[_0x3583('0x111')](_0x51c088)){_0x3ee758=!0x1;break;}if(_0x3ee758&&_0x3583('0x103')!==this[_0x3583('0x27')]){const _0x464dd4=this[_0x3583('0x36')]['getSuggestionCallback'](_0x3583('0xdb'),_0x2be9bd,_0x3583('0x118'));return this[_0x3583('0x9b')](()=>_0x464dd4(_0x36ad11,_0x23435c,_0x1d3e16)),null;}const _0x382edd=this[_0x3583('0x110')]['plugins'][_0x3583('0x85')](_0x3583('0xda'))['me'];for(const _0x39473a of this[_0x3583('0x135')]()){if(_0x39473a[_0x3583('0x53')]['id']!=_0x382edd['id'])continue;if(_0x3583('0xdb')!=_0x39473a[_0x3583('0xe4')]||_0x39473a[_0x3583('0x38')]['formatGroupId']!=_0x23435c[_0x3583('0xcf')])continue;if(!Ot(_0x39473a,_0x1d3e16))continue;const _0x420549=_0x39473a[_0x3583('0x133')]==_0x2be9bd;for(let _0x59df51=0x0;_0x59df51<_0x36ad11['length'];_0x59df51++){const _0x354a5c=_0x36ad11[_0x59df51];for(const _0x3a1b00 of _0x39473a[_0x3583('0xb5')]()){const _0x3817ca=_0x3a1b00[_0x3583('0x8c')]();if(_0x354a5c[_0x3583('0xb4')](_0x3817ca)){_0x420549?(_0x36ad11[_0x3583('0xef')](_0x59df51,0x1),_0x59df51--):_0x39473a[_0x3583('0xd')](_0x3a1b00['name']);break;}}}}if(0x0==_0x36ad11[_0x3583('0x112')])return null;const _0x125d29=this[_0x3583('0x36')][_0x3583('0xc7')](_0x3583('0xdb'),_0x2be9bd,_0x3583('0x20'));for(const _0x4b8362 of this[_0x3583('0x135')]())if(_0x4b8362[_0x3583('0x53')]['id']==_0x382edd['id']&&'formatBlock'==_0x4b8362[_0x3583('0xe4')]&&_0x4b8362[_0x3583('0x38')][_0x3583('0xcf')]==_0x23435c[_0x3583('0xcf')]&&_0x4b8362[_0x3583('0x133')]==_0x2be9bd&&Ot(_0x4b8362,_0x1d3e16)&&(_0x125d29(_0x4b8362[_0x3583('0xea')](),_0x36ad11)||_0x125d29(_0x36ad11,_0x4b8362['getRanges']()))){for(const _0x489342 of _0x36ad11)_0x4b8362[_0x3583('0xc6')](_0x489342);return _0x4b8362;}const _0x1d9e65=_0x4c8182(),_0x128c8a=_0x382edd['id'],_0x870f73=_0x3583('0xe3')+_0x2be9bd,_0x5028ab=this[_0x3583('0x7e')]({'id':_0x1d9e65,'type':_0x870f73,'data':_0x23435c,'createdAt':new Date(),'authorId':_0x128c8a,'attributes':_0x1d3e16});for(const _0x3eab03 of _0x36ad11)this['_addSuggestionMarker'](_0x870f73,_0x1d9e65,_0x128c8a,_0x3eab03,_0x5a7c05['getMultiRangeId']());return _0x5028ab;}['markDeletion'](_0x229eca,_0x7a8ac=null,_0x591334={}){if(_0x229eca[_0x3583('0xeb')])return null;const _0x488c1e=this[_0x3583('0x110')][_0x3583('0x126')][_0x3583('0x85')](_0x3583('0xda'))['me'],_0xa867bf=new _0x24eb6d(_0x229eca[_0x3583('0xa0')],_0x229eca[_0x3583('0x4')]);for(const {suggestion:_0x3abf01,meta:_0x22c000}of this[_0x3583('0xc3')](_0xa867bf,_0x3583('0xe8')))if(_0x22c000['isOwn']&&!_0x22c000['isNextTo']){if(_0x3abf01[_0x3583('0xba')]){const _0x5e5ad2=_0x3abf01[_0x3583('0xea')]()['filter'](_0x3f9797=>'$graveyard'!=_0x3f9797['root']['rootName']);_0x5e5ad2[_0x3583('0x78')](_0x30db88=>_0xa867bf[_0x3583('0xe7')](_0x30db88,!0x0))&&_0x3abf01['discard']();if(_0x5e5ad2['some'](_0x5edc3f=>_0x5edc3f[_0x3583('0xe7')](_0xa867bf,!0x0))){const _0x59fd9c=this[_0x3583('0x36')][_0x3583('0xc7')]('deletion',_0x7a8ac,_0x3583('0x118'));return this[_0x3583('0x9b')](()=>_0x59fd9c([_0xa867bf],null,_0x591334)),null;}}else{const _0x5d0b46=_0xa867bf['getIntersection'](_0x3abf01[_0x3583('0x35')]());null!==_0x5d0b46&&_0x3abf01['_onDiscard']([_0x5d0b46],null,_0x591334);}}if(_0xa867bf['detach'](),_0xa867bf[_0x3583('0xeb')]||_0x3583('0x8b')==_0xa867bf['root']['rootName'])return null;let _0xd90634=null,_0x64e200=_0xa867bf[_0x3583('0xa0')],_0x3136d3=_0xa867bf['end'];const _0x430753=this[_0x3583('0xc3')](_0xa867bf,_0x3583('0x58'));for(const {suggestion:_0x59e276,meta:_0x39542}of _0x430753){const _0x4ca2c1=this['_model']['createRange'](_0x64e200,_0x3136d3);if(_0x39542[_0x3583('0x117')]&&(this[_0x3583('0xbe')]||!_0x39542[_0x3583('0xe2')]&&!_0x39542['isInsideObject'])){if(_0x59e276[_0x3583('0xba')]){if(!Ot(_0x59e276,_0x591334))continue;let _0x26ca2d=!0x0;for(const _0x49816a of _0x59e276['getRanges']()){if(_0x49816a['containsRange'](_0x4ca2c1,!0x0))return _0x59e276;_0x4ca2c1[_0x3583('0xe7')](_0x49816a)||(_0x26ca2d=!0x1);}_0x26ca2d&&_0x59e276[_0x3583('0x7a')]();}else{const _0x1a4606=_0x59e276[_0x3583('0x35')]();if(_0x1a4606[_0x3583('0xe7')](_0x4ca2c1,!0x0))return _0x59e276;if(!Ot(_0x59e276,_0x591334)){_0x4ca2c1[_0x3583('0xe7')](_0x1a4606)?_0x59e276[_0x3583('0x95')]():_0x1a4606[_0x3583('0xcb')](_0x64e200)?_0x64e200=_0x1a4606[_0x3583('0x4')]:_0x1a4606[_0x3583('0xcb')](_0x3136d3)&&(_0x3136d3=_0x1a4606['start']);continue;}_0x64e200=_0x64e200[_0x3583('0xfc')](_0x1a4606[_0x3583('0xa0')])?_0x64e200:_0x1a4606[_0x3583('0xa0')],_0x3136d3=_0x3136d3[_0x3583('0xf2')](_0x1a4606[_0x3583('0x4')])?_0x3136d3:_0x1a4606[_0x3583('0x4')],_0x591334=Object[_0x3583('0xc4')]({},_0x59e276[_0x3583('0x2e')]),_0xd90634?_0x1a4606['start']['isBefore'](_0xd90634['getFirstRange']()[_0x3583('0xa0')])?(_0xd90634[_0x3583('0x95')](),_0xd90634=_0x59e276):_0x59e276['removeMarkers']():_0xd90634=_0x59e276;}}}if(_0xd90634)return this[_0x3583('0x23')](_0xd90634,this['_model']['createRange'](_0x64e200,_0x3136d3)),_0xd90634;{const _0x4a633d=_0x4c8182(),_0x7045db=this[_0x3583('0x137')][_0x3583('0x5')](_0x64e200,_0x3136d3),_0x570af5=_0x488c1e['id'],_0xb3d3df=_0x7a8ac?'deletion:'+_0x7a8ac:_0x3583('0x58'),_0x26b07f=this[_0x3583('0x7e')]({'id':_0x4a633d,'type':_0xb3d3df,'createdAt':new Date(),'authorId':_0x570af5,'attributes':_0x591334});return this[_0x3583('0xe1')](_0xb3d3df,_0x4a633d,_0x570af5,_0x7045db),_0x26b07f;}}[_0x3583('0x9f')](_0x3157ce,_0x214a8b=_0x3583('0x15'),_0x1ce818={}){const _0x58c6c1=this[_0x3583('0x110')][_0x3583('0x126')][_0x3583('0x85')](_0x3583('0xda'))['me'],_0x447a28=_0x3157ce['map'](_0x2a0a8e=>new _0x24eb6d(_0x2a0a8e[_0x3583('0xa0')],_0x2a0a8e[_0x3583('0x4')])),_0x43ab92=new Set();for(const {suggestion:_0x2ff944,meta:_0x230a40}of this[_0x3583('0xc3')](_0x447a28,_0x3583('0xe8')))_0x230a40['isOwn']&&!_0x230a40[_0x3583('0x93')]&&_0x43ab92[_0x3583('0x41')](_0x2ff944);for(const _0x136bb0 of _0x43ab92)if(_0x136bb0['isMultiRange']){const _0x32d287=_0x136bb0[_0x3583('0xea')]();(!_0x136bb0['attributes']||!_0x136bb0['attributes']['skipNestingCheck'])&&(_0x32d287[_0x3583('0x78')](_0x5d3ecd=>_0x447a28['some'](_0x31fd14=>_0x31fd14[_0x3583('0xe7')](_0x5d3ecd,!0x0)))&&_0x136bb0['discard']());if(_0x447a28[_0x3583('0x78')](_0x1e47cd=>_0x32d287[_0x3583('0x2f')](_0x307e8b=>_0x307e8b[_0x3583('0xe7')](_0x1e47cd,!0x0)))){const _0x553768=this['_suggestionFactory'][_0x3583('0xc7')](_0x3583('0x58'),_0x214a8b,_0x3583('0x118'));return this[_0x3583('0x9b')](()=>_0x553768(_0x3157ce,null,_0x1ce818)),null;}}else{const _0x54a159=_0x136bb0[_0x3583('0x35')]();_0x447a28[_0x3583('0x2f')](_0x1db0c3=>_0x1db0c3[_0x3583('0xe7')](_0x54a159,!0x0))&&_0x136bb0['discard']();if(_0x447a28[_0x3583('0x78')](_0x44a7f6=>_0x54a159[_0x3583('0xe7')](_0x44a7f6,!0x0))){const _0x1d372a=this[_0x3583('0x36')]['getSuggestionCallback'](_0x3583('0x58'),_0x214a8b,'accept');return this[_0x3583('0x9b')](()=>_0x1d372a(_0x447a28,null,_0x1ce818)),null;}}const _0x227ae7=this[_0x3583('0x36')]['getSuggestionCallback'](_0x3583('0x58'),_0x214a8b,_0x3583('0x20'));let _0x4ca570=null;for(const _0x437f3e of this[_0x3583('0x135')]())if(_0x437f3e[_0x3583('0x53')]['id']==_0x58c6c1['id']&&_0x437f3e[_0x3583('0x3c')]&&_0x3583('0x58')==_0x437f3e['type']&&_0x437f3e[_0x3583('0x133')]==_0x214a8b&&Ot(_0x437f3e,_0x1ce818)&&(_0x227ae7(_0x437f3e['getRanges'](),_0x447a28)||_0x227ae7(_0x447a28,_0x437f3e[_0x3583('0xea')]()))){if(_0x4ca570){if(_0x437f3e['commentThread']&&_0x437f3e[_0x3583('0xc0')][_0x3583('0x112')])continue;for(const _0x1d0892 of _0x437f3e[_0x3583('0xea')]())_0x4ca570[_0x3583('0xf3')](_0x1d0892)||_0x4ca570[_0x3583('0xc6')](_0x1d0892);_0x437f3e[_0x3583('0x95')]();}else{_0x4ca570=_0x437f3e;for(const _0x2f489b of _0x447a28)_0x437f3e[_0x3583('0xf3')](_0x2f489b)||_0x437f3e[_0x3583('0xc6')](_0x2f489b);}}if(_0x4ca570)return _0x4ca570;_0x43ab92[_0x3583('0x39')]();for(const {suggestion:_0xde80de,meta:_0x15f47a}of this[_0x3583('0xc3')](_0x447a28,_0x3583('0x58')))_0x15f47a[_0x3583('0x117')]&&(this[_0x3583('0xbe')]||!_0x15f47a[_0x3583('0xe2')]&&!_0x15f47a[_0x3583('0x54')])&&Ot(_0xde80de,_0x1ce818)&&_0x43ab92[_0x3583('0x41')](_0xde80de);for(const _0x51be5e of _0x43ab92){const _0x1c87e5=_0x51be5e[_0x3583('0xea')]();if(!_0x1ce818||!_0x1ce818[_0x3583('0x2')]){if(_0x447a28[_0x3583('0x78')](_0x3d8873=>_0x1c87e5[_0x3583('0x2f')](_0x37e1b9=>_0x37e1b9[_0x3583('0xe7')](_0x3d8873,!0x0))))return _0x51be5e;}(!_0x51be5e['attributes']||!_0x51be5e[_0x3583('0x2e')][_0x3583('0x2')])&&(_0x1c87e5[_0x3583('0x78')](_0x477b4f=>_0x447a28[_0x3583('0x2f')](_0x2ce9e7=>_0x2ce9e7[_0x3583('0xe7')](_0x477b4f,!0x0)))&&_0x51be5e[_0x3583('0x7a')]());}const _0x325c9a=_0x4c8182(),_0x480dac=_0x58c6c1['id'],_0x1dcb91=_0x3583('0x81')+_0x214a8b,_0x16489c=this[_0x3583('0x7e')]({'id':_0x325c9a,'type':_0x1dcb91,'createdAt':new Date(),'authorId':_0x480dac,'attributes':_0x1ce818});for(const _0x3fb055 of _0x447a28)_0x3fb055[_0x3583('0x3f')](),_0x3fb055['isCollapsed']||_0x3583('0x8b')==_0x3fb055['root']['rootName']||this['_addSuggestionMarker'](_0x1dcb91,_0x325c9a,_0x480dac,_0x3fb055,_0x5a7c05['getMultiRangeId']());return _0x16489c;}[_0x3583('0x23')](_0x4fb9bf,_0x431095){const _0xd04e5d=_0x4fb9bf[_0x3583('0x77')]();this[_0x3583('0x137')]['change'](_0x845b2d=>{_0x845b2d['updateMarker'](_0xd04e5d,{'range':_0x431095});});}['_addThreadToSuggestion'](_0xb129ed){const _0x2164d5=_0xb129ed['id'],_0x20e543=this[_0x3583('0x110')][_0x3583('0xb0')][_0x3583('0x85')](_0x3583('0xf1'));this[_0x3583('0xc')]['hasCommentThread'](_0x2164d5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x20e543,'threadId':_0x2164d5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbbf5cc=this[_0x3583('0xc')]['getCommentThread'](_0x2164d5);_0xbbf5cc[_0x3583('0xaa')](_0x3583('0x9d')),_0xbbf5cc[_0x3583('0x9d')]=!0x1,_0xb129ed[_0x3583('0xc0')]=_0xbbf5cc;}['_checkSuggestionCorrectness'](_0x4e6580,_0x490056,_0x209f49,_0x3ac61c){if(_0x4e6580[_0x3583('0xe4')]!=_0x490056||_0x4e6580[_0x3583('0x133')]!=_0x209f49||_0x4e6580['creator']['id']!=_0x3ac61c)throw this[_0x3583('0x110')][_0x3583('0x45')]('track-changes-suggestion-data-mismatch'),new _0x39b874('track-changes-suggestion-data-mismatch',this);}[_0x3583('0x122')](_0x4db438,_0x4f03cd){const _0x4dd54d=_0x4db438[_0x3583('0x35')]();if(_0x4f03cd[_0x3583('0xb4')](_0x4dd54d))_0x4db438[_0x3583('0x95')]();else{if(_0x4dd54d[_0x3583('0xe7')](_0x4f03cd)){const _0x7c9643=this[_0x3583('0x137')][_0x3583('0x60')](_0x4f03cd[_0x3583('0xa0')][_0x3583('0x4e')],_0x3583('0x4'));this['_setSuggestionRange'](_0x4db438,this[_0x3583('0x137')][_0x3583('0x5')](_0x4dd54d['start'],_0x7c9643));const _0x54c3cf=_0x4c8182(),_0x4a4352=_0x4db438[_0x3583('0x11')]['id'],_0x1b3501=_0x4db438[_0x3583('0xe4')]+':'+_0x4db438[_0x3583('0x133')];this['_setSuggestionData']({'id':_0x54c3cf,'type':_0x1b3501,'createdAt':new Date(),'authorId':_0x4a4352,'data':_0x4db438[_0x3583('0x38')],'attributes':_0x4db438[_0x3583('0x2e')]});const _0x4ebf6a=this[_0x3583('0x137')][_0x3583('0x60')](_0x4f03cd[_0x3583('0x4')][_0x3583('0xfe')],_0x3583('0x129')),_0x5e6f1c=this[_0x3583('0x137')][_0x3583('0x5')](_0x4ebf6a,_0x4dd54d['end']);this[_0x3583('0xe1')](_0x1b3501,_0x54c3cf,_0x4a4352,_0x5e6f1c);}else{if(_0x4dd54d['containsPosition'](_0x4f03cd[_0x3583('0xa0')])){const _0x5d0ca2=this['_model']['createPositionAt'](_0x4f03cd[_0x3583('0xa0')][_0x3583('0x4e')],'end');this[_0x3583('0x23')](_0x4db438,this['_model']['createRange'](_0x4dd54d[_0x3583('0xa0')],_0x5d0ca2));}else{const _0x100024=this[_0x3583('0x137')][_0x3583('0x60')](_0x4f03cd[_0x3583('0x4')][_0x3583('0xfe')],_0x3583('0x129'));this[_0x3583('0x23')](_0x4db438,this['_model'][_0x3583('0x5')](_0x100024,_0x4dd54d['end']));}}}}[_0x3583('0x111')](_0x8c9207){for(const {suggestion:_0x295ac9,meta:_0x356c3a}of this[_0x3583('0xc3')](_0x8c9207,_0x3583('0xe8'))){if(!_0x356c3a['isOwn'])continue;const _0x4cadc7=_0x295ac9[_0x3583('0xea')]();for(const _0x1d408a of _0x4cadc7)if(!_0x8c9207['getDifference'](_0x1d408a)[_0x3583('0x112')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xe6d0ad){const _0x1e315e=this[_0x3583('0x110')][_0x3583('0x126')][_0x3583('0x85')]('Users')[_0x3583('0xe9')](_0xe6d0ad);if(!_0x1e315e)throw new _0x39b874(_0x3583('0xa7'),this);return _0x1e315e;}['_getExternalAuthor'](_0xa63a3e){const _0x310e0e=this[_0x3583('0x110')][_0x3583('0x126')][_0x3583('0x85')](_0x3583('0xda')),_0x2c7fd3=_0x1364bd(_0x3583('0xf4')+_0xa63a3e),_0x37263e=_0x310e0e[_0x3583('0xe9')](_0x2c7fd3);return _0x37263e||_0x310e0e['addUser']({'id':_0x2c7fd3,'name':_0xa63a3e});}['_createSuggestion'](_0x11291f,_0x1b7168,_0x10dfd5,_0x18c41a,_0x306f83){const _0x1b1932=this[_0x3583('0x113')](_0x18c41a),_0x3568d9=this[_0x3583('0x36')][_0x3583('0x63')](_0x11291f,_0x1b7168,_0x10dfd5,_0x1b1932,_0x306f83,_0x1c125d=>this[_0x3583('0xaf')](_0x10dfd5,{'attributes':_0x1c125d}));return this[_0x3583('0x9')](_0x3568d9,_0x3583('0x118'),()=>{this['_updateSuggestionData'](_0x10dfd5,{'state':_0x3583('0x88')});},{'priority':_0x3583('0x96')}),this[_0x3583('0x9')](_0x3568d9,_0x3583('0x7a'),()=>{this[_0x3583('0xaf')](_0x10dfd5,{'state':_0x3583('0x6')});},{'priority':_0x3583('0x96')}),this[_0x3583('0x68')]['set'](_0x10dfd5,_0x3568d9),this[_0x3583('0x50')][_0x3583('0x44')](_0x3568d9,_0x3583('0xbb')),_0x3568d9;}[_0x3583('0x12a')](_0x443a53){const _0x500a90=_0x443a53[_0x3583('0x7d')](':');return{'group':_0x500a90[0x0],'type':_0x500a90[0x1],'subType':_0x500a90['length']>=0x5?_0x500a90[0x2]:null,'id':_0x500a90['length']<0x5?_0x500a90[0x2]:_0x500a90[0x3],'authorId':_0x500a90[_0x3583('0x112')]<0x5?_0x500a90[0x3]:_0x500a90[0x4],'markerCount':0x6==_0x500a90[_0x3583('0x112')]?_0x500a90[0x5]:null};}[_0x3583('0xde')](_0x5e0623,_0x452b76,_0x11f431){const _0x36ccb5=_0x5e0623[_0x3583('0x35')](),_0x32e35a=_0x36ccb5[_0x3583('0xa0')],_0x35235e=_0x36ccb5['end'];this[_0x3583('0x23')](_0x5e0623,this[_0x3583('0x137')][_0x3583('0x5')](_0x32e35a,_0x452b76));const _0x3357f7=_0x4c8182(),_0x49ff58=_0x5e0623[_0x3583('0x11')]['id'],_0x33ef88=_0x5e0623[_0x3583('0xe4')]+(_0x5e0623[_0x3583('0x133')]?':'+_0x5e0623[_0x3583('0x133')]:'');this[_0x3583('0x7e')]({'id':_0x3357f7,'type':_0x33ef88,'createdAt':new Date(),'authorId':_0x49ff58,'originalSuggestionId':_0x5e0623['id'],'attributes':_0x5e0623[_0x3583('0x2e')],'data':_0x5e0623[_0x3583('0x38')]}),'formatBlock'==_0x5e0623['type']&&(_0x11f431=this['_model']['createPositionBefore'](_0x11f431['parent'])),this[_0x3583('0xe1')](_0x33ef88,_0x3357f7,_0x49ff58,this['_model']['createRange'](_0x11f431,_0x35235e));}[_0x3583('0xc3')](_0x5ccc1a,_0x5bb884=null){const _0x412446=[],_0x1d59eb=this[_0x3583('0x110')][_0x3583('0x126')][_0x3583('0x85')](_0x3583('0xda'))['me'];Array['isArray'](_0x5ccc1a)||(_0x5ccc1a=[_0x5ccc1a]);for(const _0x4b3136 of this[_0x3583('0x135')]()){if(!_0x4b3136['isInContent'])continue;if(_0x5bb884&&_0x4b3136['type']!=_0x5bb884)continue;let _0x5c9667=!0x1;for(const _0x4f5250 of _0x4b3136[_0x3583('0xea')]()){for(const _0xa7442e of _0x5ccc1a){const _0x59e897=_0xa7442e[_0x3583('0xa0')][_0x3583('0xb4')](_0x4f5250[_0x3583('0x4')])||_0xa7442e['end']['isEqual'](_0x4f5250[_0x3583('0xa0')]);if(_0x59e897||_0xa7442e[_0x3583('0xb6')](_0x4f5250)){const _0x443eba=_0xa7442e[_0x3583('0xe7')](_0x4f5250)&&_t(this[_0x3583('0x137')][_0x3583('0xa8')],_0x4f5250['start'],_0xa7442e),_0x416a1a=_0x4f5250[_0x3583('0xe7')](_0xa7442e)&&_t(this[_0x3583('0x137')][_0x3583('0xa8')],_0xa7442e['start'],_0x4f5250);_0x412446[_0x3583('0xd5')]({'suggestion':_0x4b3136,'meta':{'isOwn':_0x1d59eb==_0x4b3136[_0x3583('0x53')],'isNextTo':_0x59e897,'isInsideObject':_0x443eba,'containsRangeInObject':_0x416a1a}}),_0x5c9667=!0x0;break;}}if(_0x5c9667)break;}}return _0x412446;}[_0x3583('0xe1')](_0x281258,_0x510d56,_0x22e3e3,_0x123c77,_0x2e43e9){this[_0x3583('0x137')][_0x3583('0x47')](_0x1fac6e=>{let _0x569184='suggestion:'+_0x281258+':'+_0x510d56+':'+_0x22e3e3;_0x2e43e9&&(_0x569184=_0x569184+':'+_0x2e43e9),_0x1fac6e[_0x3583('0xcc')](_0x569184,{'range':_0x123c77,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3bd6d4){const _0x15899e=_0x3bd6d4[_0x3583('0x0')],_0xd86279=_0x3bd6d4['next'];_0x3bd6d4[_0x3583('0x0')]=null,null!=_0x15899e&&(_0x15899e['next']=null),_0x3bd6d4[_0x3583('0xbf')]=null,null!=_0xd86279&&(_0xd86279['previous']=null),'ready'==this[_0x3583('0x50')][_0x3583('0x85')](_0x3bd6d4)&&(this['_suggestionState'][_0x3583('0x44')](_0x3bd6d4,_0x3583('0x7')),this[_0x3583('0x13')]('suggestionUnloaded',_0x3bd6d4,_0x15899e,_0xd86279));}[_0x3583('0x7e')](_0x3e0345){const _0xb2be42=_0x3e0345['id'],_0x52c6f5=this[_0x3583('0x3b')](_0x3e0345);if(this[_0x3583('0x10e')]&&this[_0x3583('0x10e')][_0x3583('0x43')]){const _0x498e52=this[_0x3583('0x110')][_0x3583('0x126')][_0x3583('0x85')]('PendingActions'),_0x24f72a=_0x52c6f5[_0x3583('0xf5')],_0x367bad=_0x52c6f5[_0x3583('0x133')]?_0x52c6f5['type']+':'+_0x52c6f5[_0x3583('0x133')]:_0x52c6f5[_0x3583('0xe4')],_0x4caaef=this[_0x3583('0x110')][_0x3583('0x131')],_0x236bbc=_0x498e52[_0x3583('0x41')](_0x5cceb4(_0x4caaef,'PENDING_ACTION_SUGGESTION')),_0x10a0f3={'id':_0xb2be42,'type':_0x367bad,'hasComments':_0x24f72a,'data':_0x3e0345['data']||null,'originalSuggestionId':_0x3e0345[_0x3583('0x89')]||null,'attributes':_0x52c6f5[_0x3583('0x2e')]};this[_0x3583('0x10e')][_0x3583('0x43')](_0x10a0f3)[_0x3583('0x8d')](_0x283f9d=>{_0x52c6f5[_0x3583('0x6d')]=!0x0,_0x498e52['remove'](_0x236bbc),_0x283f9d&&_0x283f9d['createdAt']&&(this[_0x3583('0x68')][_0x3583('0x85')](_0xb2be42)[_0x3583('0x13a')]=_0x283f9d[_0x3583('0x13a')]);})[_0x3583('0xfd')](_0x13272b=>{throw _0x3cfe69(_0x3583('0xd0')),this[_0x3583('0x110')][_0x3583('0x116')][_0x3583('0x4b')]({'isUndoable':!0x1},()=>{_0x52c6f5[_0x3583('0x7a')]();}),_0x52c6f5[_0x3583('0xd6')](),this[_0x3583('0x68')][_0x3583('0xc5')](_0x52c6f5['id']),this[_0x3583('0x50')][_0x3583('0xc5')](_0x52c6f5),_0x13272b;});}return _0x52c6f5;}[_0x3583('0xaf')](_0x188872,_0x1bbd37){const _0xa8c016=this[_0x3583('0x110')][_0x3583('0x126')][_0x3583('0x85')](_0x3583('0x121')),_0x5d579f=this['getSuggestion'](_0x188872);if(this[_0x3583('0x10e')]&&this[_0x3583('0x10e')]['updateSuggestion']){if(_0x5d579f['_saved']){const _0x352ef8=_0xa8c016[_0x3583('0x41')](_0x5cceb4(this[_0x3583('0x110')]['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x3583('0x91')](_0x188872,_0x1bbd37)[_0x3583('0x8d')](()=>{_0xa8c016[_0x3583('0x106')](_0x352ef8);});}else _0x5d579f['on'](_0x3583('0x11c'),()=>{this[_0x3583('0xaf')](_0x188872,_0x1bbd37);});}}[_0x3583('0x120')](_0xf612ef){if(!this[_0x3583('0x10e')]||!this['_adapter'][_0x3583('0x34')])throw new _0x39b874('track-changes-adapter-missing-getsuggestion',this);return this[_0x3583('0x10e')]['getSuggestion'](_0xf612ef);}[_0x3583('0x6b')](_0x52c215){const {id:_0x505893,type:_0x1eb734,subType:_0x377f8d,authorId:_0x1c0199}=this[_0x3583('0x12a')](_0x52c215),_0x2279ba=this['_suggestions']['get'](_0x505893)||this[_0x3583('0xdc')](_0x1eb734,_0x377f8d,_0x505893,_0x1c0199,{});switch(this[_0x3583('0xd3')](_0x2279ba,_0x1eb734,_0x377f8d,_0x1c0199),this['_suggestionState']['get'](_0x2279ba)){case _0x3583('0xbb'):this[_0x3583('0x120')](_0x505893)[_0x3583('0x8d')](_0x4ef20c=>{let _0x27afab=Promise['resolve']();_0x4ef20c[_0x3583('0xf5')]&&(_0x27afab=this[_0x3583('0xc')][_0x3583('0x102')]({'channelId':this[_0x3583('0x110')][_0x3583('0xb0')]['get'](_0x3583('0xf1')),'threadId':_0x505893})),_0x27afab[_0x3583('0x8d')](()=>{this['addSuggestionData'](_0x4ef20c)[_0x3583('0x6d')]=!0x0;});}),this['_suggestionState'][_0x3583('0x44')](_0x2279ba,_0x3583('0xd8'));break;case _0x3583('0x7'):this[_0x3583('0xaf')](_0x505893,{'state':_0x3583('0x2d')});case _0x3583('0x30'):this[_0x3583('0x50')][_0x3583('0x44')](_0x2279ba,'ready'),this['fire'](_0x3583('0x2c'),_0x2279ba);break;case _0x3583('0xe0'):this['fire'](_0x3583('0x17'),_0x2279ba);}return _0x2279ba['addMarkerName'](_0x52c215),_0x2279ba;}[_0x3583('0x2a')](_0x40fc7c){const _0x27eefc=Array[_0x3583('0x24')](_0x40fc7c)[_0x3583('0x71')](_0x5e74cd=>!_0x5e74cd[_0x3583('0xba')]),_0x4df7f2=this[_0x3583('0x135')]({'skipNotAttached':!0x0})[_0x3583('0x71')](_0x5b5ec5=>!_0x5b5ec5[_0x3583('0xba')]),_0x95f67b=_0x4df7f2[_0x3583('0x71')](_0x33dce8=>!_0x40fc7c[_0x3583('0xd7')](_0x33dce8)),_0x144e3a=new Map(_0x4df7f2[_0x3583('0x10')](_0x1e1b6a=>[_0x1e1b6a,this['_suggestionFactory'][_0x3583('0xc7')](_0x1e1b6a[_0x3583('0xe4')],_0x1e1b6a[_0x3583('0x133')],_0x3583('0x12e'))])),_0x66c30a=new Map(_0x4df7f2[_0x3583('0x10')](_0x196ee2=>[_0x196ee2,_0x196ee2[_0x3583('0x35')]()])),_0x82a75a=new Set(),_0x4de85c=new Set();for(let _0x120157=0x0;_0x120157<_0x27eefc[_0x3583('0x112')];_0x120157++)_0x3498d7(_0x27eefc[_0x120157],_0x27eefc,_0x120157+0x1);for(let _0x3ba325=0x0;_0x3ba325<_0x27eefc[_0x3583('0x112')];_0x3ba325++)_0x3498d7(_0x27eefc[_0x3ba325],_0x95f67b,0x0);for(let _0x291b73=0x0;_0x291b73<_0x27eefc['length'];_0x291b73++){const _0x3f184c=_0x27eefc[_0x291b73];!_0x4de85c[_0x3583('0xd7')](_0x3f184c)&&_0x3f184c[_0x3583('0x0')]&&(_0x3f184c[_0x3583('0x0')][_0x3583('0xbf')]===_0x3f184c&&(_0x3f184c['previous']['next']=null),_0x3f184c[_0x3583('0x0')]=null),!_0x82a75a[_0x3583('0xd7')](_0x3f184c)&&_0x3f184c[_0x3583('0xbf')]&&(_0x3f184c[_0x3583('0xbf')][_0x3583('0x0')]===_0x3f184c&&(_0x3f184c[_0x3583('0xbf')][_0x3583('0x0')]=null),_0x3f184c['next']=null);}function _0x3498d7(_0x3e44fb,_0x11a88a,_0x31791d){for(let _0x5347f3=_0x31791d;_0x5347f3<_0x11a88a[_0x3583('0x112')];_0x5347f3++){const _0xe557f6=_0x4274fb(_0x3e44fb,_0x11a88a[_0x5347f3]);_0xe557f6&&(_0xe557f6[0x0][_0x3583('0xbf')]=_0xe557f6[0x1],_0xe557f6[0x1][_0x3583('0x0')]=_0xe557f6[0x0],_0x82a75a[_0x3583('0x41')](_0xe557f6[0x0]),_0x4de85c[_0x3583('0x41')](_0xe557f6[0x1]));}}function _0x4274fb(_0x2040b5,_0x42f635){if(_0x2040b5['author']['id']!==_0x42f635[_0x3583('0x53')]['id'])return null;const _0x1c4680=_0x144e3a[_0x3583('0x85')](_0x2040b5)(_0x2040b5,_0x42f635,_0x66c30a[_0x3583('0x85')](_0x2040b5),_0x66c30a['get'](_0x42f635));if(!_0x1c4680)return null;return _0x144e3a['get'](_0x42f635)(_0x2040b5,_0x42f635,_0x66c30a['get'](_0x2040b5),_0x66c30a[_0x3583('0x85')](_0x42f635))?_0x1c4680[0x1][_0x3583('0xc0')]&&_0x1c4680[0x1]['commentThread'][_0x3583('0x112')]?null:_0x1c4680:null;}}[_0x3583('0x1')](_0x94b0f8){const _0x3a6d8b=Array['from'](_0x94b0f8),_0x5b3d29=this[_0x3583('0x135')]({'skipNotAttached':!0x0}),_0x116f0c=_0x5b3d29[_0x3583('0x71')](_0x1a9fbb=>!_0x94b0f8[_0x3583('0xd7')](_0x1a9fbb)),_0x547efd=new Map(_0x3a6d8b[_0x3583('0x10')](_0x5402c9=>[_0x5402c9,this[_0x3583('0x36')][_0x3583('0xc7')](_0x5402c9[_0x3583('0xe4')],_0x5402c9[_0x3583('0x133')],_0x3583('0x20'))])),_0x3b5709=new Map(_0x5b3d29['map'](_0x58b21c=>[_0x58b21c,_0x58b21c[_0x3583('0xea')]()]));for(let _0x55766a=0x0;_0x55766a<_0x3a6d8b[_0x3583('0x112')];_0x55766a++){if(_0x23e208(this,_0x3a6d8b[_0x55766a],_0x3a6d8b,_0x55766a+0x1))return!0x0;}for(let _0x5d93ed=0x0;_0x5d93ed<_0x3a6d8b['length'];_0x5d93ed++){if(_0x23e208(this,_0x3a6d8b[_0x5d93ed],_0x116f0c,0x0))return!0x0;}return!0x1;function _0x23e208(_0x45b944,_0xec9735,_0x4702ec,_0x2bdb00){for(let _0x2b6cd9=_0x2bdb00;_0x2b6cd9<_0x4702ec[_0x3583('0x112')];_0x2b6cd9++){const _0x5d5919=_0x4702ec[_0x2b6cd9];if(_0x5d5919[_0x3583('0xe4')]!==_0xec9735[_0x3583('0xe4')]||_0x5d5919[_0x3583('0x53')]['id']!==_0xec9735[_0x3583('0x53')]['id']||_0x5d5919[_0x3583('0x133')]!==_0xec9735['subType'])continue;if(!Ut(_0xec9735,_0x5d5919))continue;const _0x53f62c=_0x547efd[_0x3583('0x85')](_0xec9735),_0xfddf8a=_0x3b5709[_0x3583('0x85')](_0xec9735),_0xb01dac=_0x3b5709[_0x3583('0x85')](_0x5d5919),_0x170b90=_0xec9735[_0x3583('0xc0')]&&_0xec9735['commentThread']['length'],_0x2aa30f=_0x5d5919[_0x3583('0xc0')]&&_0x5d5919[_0x3583('0xc0')][_0x3583('0x112')];if(!_0x170b90&&_0x53f62c(_0xb01dac,_0xfddf8a))return _0x45b944[_0x3583('0x136')](_0x5d5919,_0xec9735),_0x3b5709['delete'](_0xec9735),!0x0;if(!_0x2aa30f&&_0x53f62c(_0xfddf8a,_0xb01dac))return _0x45b944[_0x3583('0x136')](_0xec9735,_0x5d5919),_0x3b5709['delete'](_0x5d5919),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2decef,_0x109194){if(_0x2decef[_0x3583('0xba')])for(const _0x239c98 of _0x109194[_0x3583('0xea')]())_0x2decef['addRange'](_0x239c98);else{const _0x16d0a1=_0x109194[_0x3583('0x35')]()[_0x3583('0x4')];this[_0x3583('0x23')](_0x2decef,this[_0x3583('0x137')][_0x3583('0x5')](_0x2decef[_0x3583('0x35')]()[_0x3583('0xa0')],_0x16d0a1));}_0x109194[_0x3583('0x95')]();}}class Bt{constructor(_0x421023){this[_0x3583('0x5b')]=_0x421023,this[_0x3583('0x137')]=_0x421023['model'],this[_0x3583('0xee')]=new Map(),this[_0x3583('0x100')]=new Map(),this[_0x3583('0x18')]();}[_0x3583('0x63')](_0x5a8420,_0x54d98f,_0x586c68,_0x414e42,_0x36a0af,_0x39f0c){return new _0x5a7c05(this[_0x3583('0x137')],{'type':_0x5a8420,'subType':_0x54d98f,'id':_0x586c68,'author':_0x414e42,'creator':_0x414e42,'attributes':_0x36a0af,'onAttributesChange':_0x39f0c,'onAccept':(..._0x5e579a)=>this[_0x3583('0xc7')](_0x5a8420,_0x54d98f,_0x3583('0x118'))(..._0x5e579a),'onDiscard':(..._0x2d4716)=>this[_0x3583('0xc7')](_0x5a8420,_0x54d98f,_0x3583('0x7a'))(..._0x2d4716)});}[_0x3583('0x2b')](_0x43e27b,_0x4bdb66,_0x1198bb,_0x4d1dc8){const _0x2e00f1=_0x43e27b+':'+_0x4bdb66+':'+_0x1198bb;this[_0x3583('0xee')][_0x3583('0x44')](_0x2e00f1,_0x4d1dc8);}['getSuggestionCallback'](_0x4c7085,_0x3a890c,_0x4d2be5){const _0x44177f=_0x4c7085+':'+_0x3a890c+':'+_0x4d2be5;return this[_0x3583('0xee')][_0x3583('0x85')](_0x44177f)||this['_defaultCallbacks'][_0x3583('0x85')](_0x4c7085+':'+_0x4d2be5);}[_0x3583('0x18')](){const _0x5be7e2=()=>!0x1,_0x2da63c=_0x4ba130=>{_0x4ba130[_0x3583('0x127')]((_0x3ba024,_0x256854)=>_0x3ba024[_0x3583('0xa0')][_0x3583('0xfc')](_0x256854[_0x3583('0xa0')])?0x1:-0x1),this[_0x3583('0x137')][_0x3583('0x47')](_0x34c535=>{for(const _0x361f0c of _0x4ba130){let _0x19a753;_0x19a753=_0x361f0c[_0x3583('0x4')][_0x3583('0x11a')]&&_0x361f0c['end'][_0x3583('0xfe')]==_0x361f0c['start'][_0x3583('0xa9')]?_0x34c535[_0x3583('0xb7')](_0x361f0c[_0x3583('0xa0')][_0x3583('0xa9')],'on'):_0x34c535[_0x3583('0xb7')](_0x361f0c),this['_model'][_0x3583('0xe6')](_0x19a753,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x437939=(_0x587565,_0x275581)=>{this[_0x3583('0x137')][_0x3583('0x47')](_0x44d96b=>{const {commandName:_0x24ae16,commandParams:_0x2a0dbb=[]}=_0x275581,_0x3dc39c=_0x587565[_0x3583('0x10')](_0x66354e=>(Mt(_0x66354e)&&(_0x66354e=this[_0x3583('0x137')][_0x3583('0x5')](_0x66354e[_0x3583('0x4')])),_0x66354e))[_0x3583('0x71')](_0x43befd=>_0x3583('0x8b')!==_0x43befd[_0x3583('0xd9')][_0x3583('0x4d')]);if(_0x3dc39c[_0x3583('0x112')]<0x1)return;const _0x486d04=Array[_0x3583('0x24')](this[_0x3583('0x137')][_0x3583('0x6c')][_0x3583('0xab')]['getRanges']())[_0x3583('0x10')](_0x3c0356=>_0x24eb6d[_0x3583('0xa6')](_0x3c0356));_0x44d96b['setSelection'](_0x3dc39c);for(const _0x19a294 of this[_0x3583('0x5b')][_0x3583('0x11e')]['commands']())_0x19a294['refresh']();_0x2a0dbb[_0x3583('0xd5')]({'forceDefaultExecution':!0x0}),this[_0x3583('0x5b')][_0x3583('0x134')](_0x24ae16,..._0x2a0dbb);const _0x4b96eb=_0x486d04['filter'](_0x862844=>_0x3583('0x8b')!=_0x862844['root']['rootName']);_0x4b96eb[_0x3583('0x112')]>0x0&&_0x44d96b[_0x3583('0x132')](_0x4b96eb);for(const _0x1333b8 of _0x486d04)_0x1333b8[_0x3583('0x3f')]();});},_0x38450b=(_0x3930a7,_0x2d586f)=>0x1==_0x3930a7['length']&&0x1==_0x2d586f[_0x3583('0x112')]&&_0x3930a7[0x0]['end'][_0x3583('0xb4')](_0x2d586f[0x0][_0x3583('0xa0')]),_0x2f051c=(_0x747e36,_0x2d9da9,_0x30a0b7,_0x2927fb)=>xt(_0x747e36,_0x2d9da9,_0x30a0b7,_0x2927fb,this['_model'])?[_0x747e36,_0x2d9da9]:xt(_0x2d9da9,_0x747e36,_0x2927fb,_0x30a0b7,this[_0x3583('0x137')])?[_0x2d9da9,_0x747e36]:null;this['_defaultCallbacks']['set'](_0x3583('0x6f'),_0x5be7e2),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0xfb'),_0x2da63c),this[_0x3583('0x100')]['set']('insertion:join',_0x38450b),this['_defaultCallbacks'][_0x3583('0x44')]('insertion:chain',_0x2f051c),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0xb8'),_0x2da63c),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0xbc'),_0x5be7e2),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0x5f'),_0x38450b),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0x7f'),_0x2f051c),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0x107'),_0x437939),this['_defaultCallbacks'][_0x3583('0x44')](_0x3583('0x33'),_0x5be7e2),this[_0x3583('0x100')]['set'](_0x3583('0x69'),_0x38450b),this[_0x3583('0x100')]['set'](_0x3583('0x25'),_0x5be7e2),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0x26'),_0x437939),this[_0x3583('0x100')][_0x3583('0x44')](_0x3583('0x10b'),_0x5be7e2),this[_0x3583('0x100')]['set'](_0x3583('0x4a'),_0x38450b),this[_0x3583('0x100')][_0x3583('0x44')]('formatBlock:chain',_0x5be7e2);}}function _t(_0x4b1449,_0x416715,_0x1b418f){for(const _0x3f0cbe of _0x416715[_0x3583('0xfe')][_0x3583('0x6e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f0cbe[_0x3583('0xd9')]==_0x3f0cbe)return!0x1;if(!_0x1b418f[_0x3583('0x12')](_0x3f0cbe))return!0x1;if(_0x4b1449[_0x3583('0x66')](_0x3f0cbe)||_0x4b1449['isLimit'](_0x3f0cbe))return!0x0;}return!0x1;}function Mt(_0x35b7da){return _0x35b7da['end']['parent']==_0x35b7da['start'][_0x3583('0xa9')]&&_0x35b7da[_0x3583('0x4')][_0x3583('0xf')];}function $t(_0x6825fb,_0x11f394,_0x59ae68,_0x2d7d8e){const _0x1dd8d2=_0x5157d1=>!_0x5157d1[_0x3583('0x3d')]['is']('$textProxy')&&!_0x2d7d8e[_0x3583('0x66')](_0x5157d1[_0x3583('0x3d')]),_0x4112f4=_0x6825fb['start'][_0x3583('0x12b')](_0x1dd8d2),_0x3044d7=_0x6825fb[_0x3583('0x4')]['getLastMatchingPosition'](_0x1dd8d2,{'direction':_0x3583('0xf6')});return(!_0x6825fb[_0x3583('0xa0')]['isEqual'](_0x4112f4)||!_0x6825fb[_0x3583('0x4')][_0x3583('0xb4')](_0x3044d7))&&(_0x4112f4[_0x3583('0xfc')](_0x3044d7)?_0x59ae68[_0x3583('0xac')](_0x11f394,{'range':_0x59ae68['createRange'](_0x4112f4,_0x3044d7)}):_0x59ae68[_0x3583('0xd')](_0x11f394),!0x0);}function Nt(_0x3b2b96){return _0x1364bd(_0x3b2b96);}function Rt(_0x52a1e9){const _0x5cea1b=_0x52a1e9[_0x3583('0xa0')]['nodeAfter'];return _0x5cea1b&&_0x5cea1b['is']('element');}function jt(_0x1e0eff,_0x14d593){const _0x405476=_0x14d593[_0x3583('0xa8')][_0x3583('0x66')](_0x1e0eff)||_0x14d593[_0x3583('0xa8')]['isSelectable'](_0x1e0eff);return _0x14d593['createRange'](_0x14d593['createPositionAt'](_0x1e0eff,'before'),_0x405476?_0x14d593['createPositionAfter'](_0x1e0eff):_0x14d593[_0x3583('0x60')](_0x1e0eff,_0x3583('0x4')));}function xt(_0x3b0c7d,_0x4ece2d,_0x582dbb,_0x3707ed,_0x11fdd2){if(!Ut(_0x3b0c7d,_0x4ece2d))return!0x1;if(_0x582dbb[_0x3583('0x4')][_0x3583('0xb4')](_0x3707ed[_0x3583('0xa0')]))return!0x0;if(_0x3b0c7d['type']!=_0x4ece2d[_0x3583('0xe4')])return!0x1;if(!_0x582dbb[_0x3583('0x4')][_0x3583('0x3')](_0x3707ed['start']))return!0x1;const _0x1d2a31=_0x11fdd2[_0x3583('0x5')](_0x582dbb[_0x3583('0x4')],_0x3707ed[_0x3583('0xa0')])[_0x3583('0x1f')]();for(const _0x28f2fd of _0x1d2a31)if(['elementStart',_0x3583('0x40')][_0x3583('0x1b')](_0x28f2fd[_0x3583('0xe4')])&&_0x11fdd2['schema'][_0x3583('0x1c')](_0x28f2fd[_0x3583('0x3d')]))return!0x1;return!0x0;}function Ut(_0x35ea3c,_0x487db2){return!(!_0x35ea3c[_0x3583('0xf7')]||!_0x487db2[_0x3583('0xf7')])&&_0x49a667(_0x35ea3c['attributes'],_0x487db2[_0x3583('0x2e')]);}function Ot(_0x48a4ca,_0x198d2b){const _0x326190=Et(_0x48a4ca['attributes']),_0x29f931=Et(_0x198d2b);if(!_0x48a4ca['_isDataLoaded'])return!0x1;for(const _0x2f5159 of Object[_0x3583('0x84')](_0x29f931))if(!_0x49a667(_0x326190[_0x2f5159],_0x29f931[_0x2f5159]))return!0x1;return!0x0;}function Et(_0x3182f9){const _0x56dd4a=Object[_0x3583('0xc4')]({},_0x3182f9);return delete _0x56dd4a[_0x3583('0x2')],delete _0x56dd4a[_0x3583('0x19')],_0x56dd4a;}
|
|
23
|
+
const _0x2891=['track-changes-command-not-found','batch','_updateSuggestionData','setAttribute','_findSuggestions','markAttributeChange','getCustomProperty','_recordAttributeChanges','getUser','createRange','getFirstRange','previous','rootName','model','formatBlock:','getAncestors','markInlineFormat','originalSuggestionId','item','removeAttribute','_saved','consumable','options','getSuggestions','markerName','@external','removeMarker','values','discardSelectedSuggestions','isNextTo','_recordAttributeSuggestionsFromVersion','commandName','addSuggestionData','getSuggestion','warn','markMultiRangeBlockFormat','track-changes-adapter-missing-getsuggestion','isInsideObject','getShiftedBy','deletion:','detach','fromRange','_inlineAttributeKeys','containsItem','suggestion:attribute:','formatBlock:accept','_enabledCommands','isBefore','suggestionUnloaded','nodeBefore','backward','never','_getMarkerAnnouncementText','deletion:chain','addAttribute','differ','track-changes-enable-command-twice','high','deletion:join','_setSuggestionData','before','addHighlight','selection','acceptSuggestion','activeMarkers','external:','formatBlock','isEqual','suggestionChanged','containerElement','isIntersecting','_suggestionState','ENTER','commands','update:suggestion','trackChanges','_isForcedDefaultExecutionBlock','CommentsRepository','_onDiscard','change:_saved','ready','resolve','getOperations','filter','hasCommentThread','setTo','suggestionLoaded','announce','unshift','comments','fetchCommentThread','toUpperCase','define','isAtStart','discardSuggestion','track-changes-suggestion-not-found','PENDING_ACTION_SUGGESTION','push','isAfter','remove','rethrowUnexpectedError','_getAuthorFromId','_removeSuggestion','collaboration.channelId','some','registerCustomCallback','trackChanges.mergeNestedSuggestions','track-changes-suggestion-data-mismatch','change:data','_createSuggestion','elementEnd','startsWith','size','isObject','consume','createElement','map','reconvertMarker','addCommentThread','root','removed','_breakSuggestionMarker','splitPosition','enqueueChange','attributes','accept','_handleNewSuggestionMarker','_commentsRepository','containsRangeInObject','author','removeMarker:suggestion:formatBlock','_suggestionFactory','value','formatInline','removeMarkers','_registerInlineAttribute','commentThread','editingDowncast','then','addRange','dataReady','authorName','addMarker:suggestion:attribute','forEach','name','removeClass','getNearestSelectionRange','rename','_suggestions','_splitMarkerName','data','_addThreadToSuggestion','config','default','widget','_refreshAttributeSuggestionsChain','delete','history','acceptSelectedSuggestions','ck-suggestion-marker','start','_registerDefaultCallbacks','rejected','after','_getAttributeKeyFromSubType','notReady','getWalker','createPositionAt','writer','isMultiRange','FORMATTING','isLocal','buildSuggestion','get','isUndo','_registerBlockAttribute','trackChangesCommand','_blockAttributeKeys','updateMarker','element','_checkSuggestionCorrectness','formatInline:chain','createSelection','createRangeOn','isOwn','containsPosition','key','listenTo','elementStart','suggestion','addMarkerName','plugins','_model','moveTargetPosition','$graveyard','requires','assign','formatBlock:discard','stop','_reduceSuggestionAttributeRange','getMultiRangeId','has','creator','mapper','position','_addSuggestionMarker','includes','PendingActions','nodeAfter','_getExternalAuthor','isLimit','version','dataDowncast','getCommentThread','hasSuggestion','chain','isCollapsed','fire','$textProxy','isIntersectingWithRange','targetPosition','discardAllSuggestions','highest','upcast','deletion:accept','markDeletion','hasComments','getRange','markBlockFormat','discard','deletion:discard','execute','_defaultCallbacks','clone','_adapter','always','attribute','addUser','enableReadOnlyMode','meta','_processAttributeSuggestions','adapter','concat','open','keys','attributeKey','unbind','format','add','conversion','getChanges','_reduceExistingSuggestions','length','set','TrackChangesEditing','attribute:discard','substring','formatInline:','documentSelection','addMarker:suggestion:formatBlock','oldRange','getChangedMarkers','_refreshSuggestionsChain','updateSuggestion','_editor','enableCommand','isRemovable','isExternal','markInsertion','getAttribute','suggestion:','move','multipleBlocks','document','fromCharCode','setSelection','schema','toViewElement','markerToData','change:activeMarkers','dataToMarker','_cutOutSuggestionMarker','insertion:discard','getIntersection','attributeNewValue','addMarker','_joinSuggestions','split','type','multi','createRangeIn','addSuggestion','insert','addClass','$marker','applyOperation','insertion:join','locale','forceDefaultExecution','_trackFormatChanges','createPositionBefore','pluginName','lowest','newValue','markMultiRangeDeletion','skipNestingCheck','attribute:join','deletion','parent','oldValue','ck-suggestion-marker-formatInline','acceptAllSuggestions','ck-suggestion-marker--active','$text','every','removeComment','sort','_customCallbacks','low','_isDataLoaded','getDifference','elementToElement','init','attributeOldValue','insertion','addComment','markerNameToElements','return','pop','isInContent','_getSuggestionData','isAtEnd','end','_initAriaMarkerChangeAnnouncements','createdAt','$elementName','marker-count','attribute:accept','ariaLiveAnnouncer','markerToHighlight','groupId','Users','_joinWithAdjacentSuggestions','isTouching','formatInline:accept','ck-suggestion-marker-formatBlock','getFirstMarker','getSuggestionCallback','howMany','isBlock','for','subType','formatInline:join','getRanges','_isBlockAttribute','containsRange','getAllAdjacentSuggestions','editor','toJSON','formatGroupId','showSuggestionHighlights','registerPostFixer','_rangeIsInLocalUserInsertion','getLastMatchingPosition','find','change','next','catch','_setSuggestionRange','changeAttribute','normal','join','_mergeNestedSuggestions','addMarker:suggestion','formatBlock:chain','_enableDefaultAttributesIntegration','markMultiRangeInsertion','splice','newName','from','authoredAt','clear','newRange','range','_processAttributeChanges','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.'];(function(_0xc3c85d,_0x28912f){const _0x439e9d=function(_0x241bd1){while(--_0x241bd1){_0xc3c85d['push'](_0xc3c85d['shift']());}};_0x439e9d(++_0x28912f);}(_0x2891,0x97));const _0x439e=function(_0xc3c85d,_0x28912f){_0xc3c85d=_0xc3c85d-0x0;let _0x439e9d=_0x2891[_0xc3c85d];return _0x439e9d;};import{Plugin as _0xb5740b,PendingActions as _0x48b18f}from'ckeditor5/src/core';import{LiveRange as _0x5d4469}from'ckeditor5/src/engine';import{CKEditorError as _0x316ab1,uid as _0x1990b4,priorities as _0x121d4a,logWarning as _0x189efa}from'ckeditor5/src/utils';import{toWidget as _0x2ba5c7}from'ckeditor5/src/widget';import{Users as _0x27ca29,hashObject as _0xf5555,surroundingMarkersDetector as _0x56de40}from'ckeditor5-collaboration/src/collaboration-core';import _0x140afb from'./commands/trackchangescommand';import _0x51a034 from'./commands/acceptsuggestioncommand';import _0x284540 from'./commands/discardsuggestioncommand';import _0x7353a0 from'./commands/executeonallsuggestionscommand';import _0x51fe86 from'./commands/executeonselectedsuggestionscommand';import _0x5b5191 from'./suggestion';import _0x4c2e37 from'./suggestiondescriptionfactory';import _0xff436d from'./integrations/aiassistant';import _0x3779c6 from'./integrations/alignment';import _0x3f3199 from'./integrations/basicstyles';import _0x3a1bd3 from'./integrations/blockquote';import _0x40e4e8 from'./integrations/ckbox';import _0x194967 from'./integrations/codeblock';import _0x455dee from'./integrations/comments';import _0x496034 from'./integrations/deletecommand';import _0x458830 from'./integrations/documentlist';import _0x44773f from'./integrations/documentlistproperties';import _0x5943d9 from'./integrations/entercommand';import _0x246de8 from'./integrations/findandreplace';import _0x4295a8 from'./integrations/font';import _0x21e31f from'./integrations/formatpainter';import _0x2321f3 from'./integrations/heading';import _0x5e7e0e from'./integrations/highlight';import _0x58f566 from'./integrations/horizontalline';import _0x19d6b9 from'./integrations/htmlembed';import _0x50a6b4 from'./integrations/image';import _0x2be66d from'./integrations/imagereplace';import _0x414b62 from'./integrations/imagestyle';import _0x10f290 from'./integrations/importword';import _0x210cf6 from'./integrations/indent';import _0x6dee9d from'./integrations/inputcommand';import _0x1f99a1 from'./integrations/link';import _0x2f5d38 from'./integrations/list';import _0x50b71b from'./integrations/listproperties';import _0x4928eb from'./integrations/mediaembed';import _0x334590 from'./integrations/mention';import _0x4196b8 from'./integrations/pagebreak';import _0x3ce299 from'./integrations/paragraph';import _0x521475 from'./integrations/removeformat';import _0x368ea9 from'./integrations/restrictededitingmode';import _0x357818 from'./integrations/shiftentercommand';import _0xcdcfa3 from'./integrations/standardeditingmode';import _0x388006 from'./integrations/style';import _0x23da1c from'./integrations/table';import _0x4b84e7 from'./integrations/tablemergesplit';import _0x340a03 from'./integrations/tableheadings';import _0x439cc8 from'./integrations/tableclipboard';import _0xfc6d3 from'./integrations/tablecolumnresize';import _0x2bf240 from'./integrations/template';import _0x3a2c3a from'./integrations/tableofcontents';import _0x49b43a from'./integrations/title';import _0x1e1584 from'./integrations/undo';import _0x465142 from'./integrations/tablecaption';import _0x342e07 from'./integrations/tableproperties';import{getTranslation as _0x1027b4}from'./utils/common-translations';import{isEqual as _0x42d7a6,omit as _0x2e307b}from'lodash-es';export const renameAttributeKey=_0x439e('0xb8');export default class p extends _0xb5740b{static get[_0x439e('0x2c')](){return[_0x439e('0x138'),_0x27ca29,_0x48b18f,_0xff436d,_0x3779c6,_0x3f3199,_0x3a1bd3,_0x40e4e8,_0x194967,_0x455dee,_0x496034,_0x458830,_0x44773f,_0x5943d9,_0x246de8,_0x4295a8,_0x21e31f,_0x2321f3,_0x5e7e0e,_0x58f566,_0x19d6b9,_0x50a6b4,_0x414b62,_0x2be66d,_0x10f290,_0x210cf6,_0x6dee9d,_0x1f99a1,_0x2f5d38,_0x50b71b,_0x4928eb,_0x334590,_0x4196b8,_0x3ce299,_0x521475,_0x368ea9,_0x357818,_0xcdcfa3,_0x388006,_0x23da1c,_0x4b84e7,_0x340a03,_0x465142,_0x439cc8,_0xfc6d3,_0x3a2c3a,_0x342e07,_0x2bf240,_0x49b43a,_0x1e1584];}static get[_0x439e('0x96')](){return _0x439e('0x67');}constructor(_0x4a5c11){function _0x2ecdd4(_0x275789){return _0x275789[_0x439e('0x15f')](_0x29340d=>String[_0x439e('0x7b')](_0x29340d))[_0x439e('0xdc')]('');}super(_0x4a5c11),this[_0x439e('0x109')]=null,this[_0x439e('0x66')](_0x439e('0x12b'),[]),this['on'](_0x439e('0x80'),(_0x43f0d5,_0x4a4ac6,_0x564759,_0x4071c3)=>{this[_0x439e('0x29')][_0x439e('0xd6')](()=>{for(const _0x488b2e of[..._0x4071c3,..._0x564759])this[_0x439e('0x29')]['markers']['has'](_0x488b2e)&&_0x4a5c11['editing'][_0x439e('0x160')](_0x488b2e);});}),this['_descriptionFactory']=new _0x4c2e37(this[_0x439e('0xce')][_0x439e('0xf8')][_0x439e('0x7d')],this[_0x439e('0xce')][_0x439e('0x92')]),this[_0x439e('0x53')]=null,this[_0x439e('0x16e')]=new Bt(this[_0x439e('0xce')]),this[_0x439e('0x17f')]=new Map(),this[_0x439e('0x16a')]=_0x4a5c11[_0x439e('0x28')][_0x439e('0x16')]('CommentsRepository'),this[_0x439e('0x119')]=new Set(),this[_0x439e('0x29')]=this[_0x439e('0xce')][_0x439e('0xf8')],this['_suggestionState']=new WeakMap(),this[_0x439e('0x137')]=!0x1,this['_blockAttributeKeys']=new Set([_0x439e('0xb8')]),this[_0x439e('0x115')]=new Set(),_0x4a5c11[_0x439e('0x1')]['define']('trackChanges.trackFormatChanges',_0x439e('0x2')),this[_0x439e('0x94')]=_0x4a5c11['config'][_0x439e('0x16')]('trackChanges.trackFormatChanges'),_0x4a5c11[_0x439e('0x1')][_0x439e('0x147')](_0x439e('0x155'),!0x0),this[_0x439e('0xdd')]=_0x4a5c11['config']['get'](_0x439e('0x155')),this['trackChangesCommand']=new _0x140afb(_0x4a5c11,this[_0x439e('0x119')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2ecdd4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2ecdd4([0x34,0x30,0x34,0x36,0x32,0x32,0x33,0x30]);}[_0x439e('0xab')](){const _0x332b58=this[_0x439e('0xce')],_0x91a2bc=(_0x45f3f0,_0x30b344)=>{if('attribute'!=_0x45f3f0)return'ck-suggestion-marker-'+_0x45f3f0;const _0x28c7b1=_0x30b344[_0x439e('0x88')]('|')[0x0];return this[_0x439e('0xcb')](_0x28c7b1)?_0x439e('0xc2'):_0x439e('0x9f');};_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x174'))['markerToHighlight']({'model':_0x439e('0x26'),'view':_0x4e95b4=>{const {id:_0x132278,type:_0x2a1926,subType:_0x542348}=this[_0x439e('0x180')](_0x4e95b4[_0x439e('0x103')]),_0x1713fd=[_0x439e('0x8'),_0x91a2bc(_0x2a1926,_0x542348)];let _0x479e71=0xbb8;return this['activeMarkers'][_0x439e('0x37')](_0x4e95b4['markerName'])&&(_0x1713fd[_0x439e('0x14c')](_0x439e('0xa1')),_0x479e71=0xbc2),_0x439e('0x9c')==_0x2a1926&&(_0x479e71+=0x5),{'classes':_0x1713fd,'attributes':{'data-suggestion':_0x132278},'priority':_0x479e71};}}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0x61')](_0x5c1b86=>{_0x5c1b86['on'](_0x439e('0xde'),(_0x4ee577,_0x17cad3,_0x25b21c)=>{if(!_0x25b21c[_0x439e('0x101')]['showSuggestionHighlights'])return;const _0x1c5d2e=_0x17cad3[_0x439e('0xfd')];if(!_0x1c5d2e)return;const _0x1f5c8d=_0x25b21c[_0x439e('0x34')]['toViewElement'](_0x1c5d2e);_0x332b58['model'][_0x439e('0x7d')]['isObject'](_0x1c5d2e)&&_0x1f5c8d&&!_0x1f5c8d[_0x439e('0xf1')](_0x439e('0x3'))&&_0x1f5c8d['is'](_0x439e('0x130'))&&_0x2ba5c7(_0x1f5c8d,_0x25b21c[_0x439e('0x11')]);},{'priority':_0x439e('0x124')});}),_0x332b58['conversion'][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0xbc')]({'model':'suggestion','view':(_0x1ccda0,_0x5b2f81)=>{if(!_0x5b2f81[_0x439e('0x101')][_0x439e('0xd1')])return null;const {type:_0x255ce8,subType:_0x169533}=this[_0x439e('0x180')](_0x1ccda0[_0x439e('0x103')]);return{'classes':['ck-suggestion-marker',_0x91a2bc(_0x255ce8,_0x169533)],'priority':0xbb8};}});const _0x92fc44=({showActiveMarkers:_0x38acd7=!0x0,isAttributeSuggestion:_0x51319e=!0x1}={})=>(_0x5c842d,_0x34889d,_0x3faa94)=>{if(!_0x34889d[_0x439e('0xfd')])return;const {id:_0x2a7262}=this['_splitMarkerName'](_0x34889d[_0x439e('0x103')]);if(_0x51319e){const _0x5d0c96=this[_0x439e('0x17f')][_0x439e('0x16')](_0x2a7262),_0x315570=this['_getAttributeKeyFromSubType'](_0x5d0c96);if(!this[_0x439e('0xcb')](_0x315570))return;}if(_0x34889d[_0x439e('0xfd')]['is'](_0x439e('0x129')))return void _0x3faa94['consumable'][_0x439e('0x15d')](_0x34889d[_0x439e('0xfd')],_0x5c842d['name']);const _0x355e70=_0x3faa94[_0x439e('0x34')][_0x439e('0x7e')](_0x34889d[_0x439e('0xfd')]);if(_0x34889d[_0x439e('0xfd')]['is'](_0x439e('0x1c'))&&_0x332b58[_0x439e('0xf8')][_0x439e('0x7d')][_0x439e('0xc6')](_0x34889d[_0x439e('0xfd')])&&!_0x355e70['getCustomProperty'](_0x439e('0x128'))){_0x3faa94['writer'][_0x439e('0x8e')]([_0x439e('0x8'),_0x439e('0xc2')],_0x355e70),_0x3faa94[_0x439e('0x11')][_0x439e('0xee')]('data-suggestion',_0x2a7262,_0x355e70),_0x3faa94[_0x439e('0x34')]['bindElementToMarker'](_0x355e70,_0x34889d[_0x439e('0x103')]),_0x38acd7&&(this[_0x439e('0x12b')][_0x439e('0x37')](_0x34889d[_0x439e('0x103')])?_0x3faa94[_0x439e('0x11')]['addClass'](_0x439e('0xa1'),_0x355e70):_0x3faa94[_0x439e('0x11')][_0x439e('0x17c')](_0x439e('0xa1'),_0x355e70));for(const _0x2577f3 of _0x332b58[_0x439e('0xf8')][_0x439e('0x8b')](_0x34889d[_0x439e('0xfd')])['getItems']())_0x3faa94[_0x439e('0x100')][_0x439e('0x15d')](_0x2577f3,_0x5c842d[_0x439e('0x17b')]);_0x3faa94['consumable'][_0x439e('0x15d')](_0x34889d[_0x439e('0xfd')],_0x5c842d[_0x439e('0x17b')]);}};_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0x61')](_0x399bba=>{_0x399bba['on'](_0x439e('0x6c'),(_0x5a5b7d,_0x3f0afa,_0x480842)=>{_0x480842[_0x439e('0x101')][_0x439e('0xd1')]&&_0x92fc44({'showActiveMarkers':!0x1})(_0x5a5b7d,_0x3f0afa,_0x480842);},{'priority':_0x439e('0x47')});}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))['add'](_0x59a787=>{_0x59a787['on']('addMarker:suggestion:attribute',(_0x4c6160,_0x19582d,_0x5574bc)=>{_0x5574bc[_0x439e('0x101')][_0x439e('0xd1')]&&_0x92fc44({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4c6160,_0x19582d,_0x5574bc);},{'priority':_0x439e('0x47')});}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0x7f')]({'model':_0x439e('0x26'),'view':(_0x34f734,_0xc2c52d)=>_0xc2c52d[_0x439e('0x101')][_0x439e('0xd1')]?null:{'group':_0x439e('0x26'),'name':_0x34f734['substr'](0xb)}}),_0x332b58['conversion']['for'](_0x439e('0x48'))[_0x439e('0xaa')]({'view':{'name':_0x439e('0x26'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x10b3a2,{writer:_0x481913})=>{let _0x48f19e=_0x439e('0x77')+_0x10b3a2[_0x439e('0x76')]('suggestion-type')+':'+_0x10b3a2['getAttribute']('id');return _0x10b3a2[_0x439e('0x76')]('marker-count')&&(_0x48f19e+=':'+_0x10b3a2[_0x439e('0x76')](_0x439e('0xb9'))),_0x481913[_0x439e('0x15e')](_0x439e('0x8f'),{'data-name':_0x48f19e});}}),_0x332b58['conversion']['for'](_0x439e('0x48'))[_0x439e('0x81')]({'view':_0x439e('0x26')}),_0x332b58['conversion'][_0x439e('0xc7')]('editingDowncast')['add'](_0x45706f=>{_0x45706f['on'](_0x439e('0x6c'),_0x92fc44(),{'priority':_0x439e('0x124')});}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')]('editingDowncast')[_0x439e('0x61')](_0x3ca407=>{_0x3ca407['on'](_0x439e('0x179'),_0x92fc44({'isAttributeSuggestion':!0x0}),{'priority':_0x439e('0x124')});}),_0x332b58[_0x439e('0x62')]['for'](_0x439e('0x174'))[_0x439e('0x61')](_0x18b7a9=>{_0x18b7a9['on'](_0x439e('0x16d'),(_0x36efe1,_0x423d7f,_0x2471b8)=>{const _0x8039f8=_0x2471b8[_0x439e('0x34')][_0x439e('0xaf')](_0x423d7f['markerName']);if(_0x8039f8)for(const _0x399f33 of _0x8039f8)_0x399f33['getCustomProperty'](_0x439e('0x128'))||(_0x2471b8['writer'][_0x439e('0x17c')]([_0x439e('0x8'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x399f33),_0x2471b8[_0x439e('0x11')][_0x439e('0xfe')]('data-suggestion',_0x399f33),_0x2471b8['mapper']['unbindElementFromMarkerName'](_0x399f33,_0x423d7f[_0x439e('0x103')]));},{'priority':_0x439e('0x124')});}),_0x332b58['conversion'][_0x439e('0xc7')](_0x439e('0x174'))[_0x439e('0x61')](_0x3212ad=>{_0x3212ad['on']('removeMarker:suggestion:attribute',(_0x1932fe,_0x5314ee,_0x314a05)=>{const _0x193ae3=_0x314a05[_0x439e('0x34')][_0x439e('0xaf')](_0x5314ee['markerName']);if(!_0x193ae3)return;const {id:_0x3572cc}=this[_0x439e('0x180')](_0x5314ee[_0x439e('0x103')]),_0xf7d0ee=this[_0x439e('0x17f')]['get'](_0x3572cc),_0x2956b3=this[_0x439e('0xd')](_0xf7d0ee);if(this[_0x439e('0xcb')](_0x2956b3))for(const _0x4e469e of _0x193ae3)_0x4e469e[_0x439e('0xf1')]('addHighlight')||(_0x314a05['writer'][_0x439e('0x17c')]([_0x439e('0x8'),_0x439e('0xc2'),_0x439e('0xa1')],_0x4e469e),_0x314a05[_0x439e('0x11')][_0x439e('0xfe')]('data-suggestion',_0x4e469e),_0x314a05[_0x439e('0x34')]['unbindElementFromMarkerName'](_0x4e469e,_0x5314ee[_0x439e('0x103')]));},{'priority':'high'});}),_0x332b58[_0x439e('0xf8')]['document']['registerPostFixer'](_0x1ed4fc=>{let _0x1f5b88=!0x1;const _0x58ff62=Array[_0x439e('0xe4')](_0x332b58[_0x439e('0xf8')]['document'][_0x439e('0x122')]['getChangedMarkers']()),_0x7f7df=new Set();for(const {name:_0x161503,data:_0x483547}of _0x58ff62){const {group:_0x475325,type:_0x15195a,subType:_0x685b4d,id:_0x13e707}=this[_0x439e('0x180')](_0x161503);if(_0x439e('0x26')!==_0x475325)continue;const _0x513d0c=this[_0x439e('0x17f')]['get'](_0x13e707);if(null!=_0x483547['newRange']){_0x439e('0x170')==_0x15195a&&(_0x1f5b88=_0x1f5b88||Et(_0x483547[_0x439e('0xe7')],_0x161503,_0x1ed4fc,_0x332b58[_0x439e('0xf8')]['schema']));const _0x12f29a=_0x439e('0x55')==_0x15195a&&this[_0x439e('0xcb')](_0x685b4d['split']('|')[0x0]);if(_0x483547[_0x439e('0xe7')][_0x439e('0x41')]||_0x439e('0x2b')==_0x483547[_0x439e('0xe7')][_0x439e('0x162')][_0x439e('0xf7')]||_0x439e('0x12d')==_0x15195a&&!jt(_0x483547[_0x439e('0xe7')])||_0x12f29a&&!jt(_0x483547[_0x439e('0xe7')])||'deletion'==_0x15195a&&!(!xt(_0x4e93f4=_0x483547['newRange'])&&!function(_0x1aedd5){return _0x1aedd5[_0x439e('0x9')]['parent']==_0x1aedd5[_0x439e('0xb5')][_0x439e('0x11c')]&&_0x1aedd5[_0x439e('0x9')]['isAtEnd'];}(_0x4e93f4)))_0x1ed4fc['removeMarker'](_0x161503),_0x1f5b88=!0x0;else{if(!_0x513d0c||!_0x513d0c[_0x439e('0xb2')])continue;_0x7f7df[_0x439e('0x61')](_0x513d0c);}}}var _0x4e93f4;return _0x7f7df[_0x439e('0x15b')]>0x0&&(_0x1f5b88=!!this[_0x439e('0xbf')](_0x7f7df)||_0x1f5b88),_0x1f5b88;}),_0x332b58[_0x439e('0xf8')]['document'][_0x439e('0xd2')](_0x2b126e=>{let _0xc3902b=!0x1;for(const _0x23a666 of _0x332b58[_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x122')]['getChanges']())if(_0x439e('0x8d')==_0x23a666['type'])for(const _0x5433f8 of this[_0x439e('0x17f')][_0x439e('0x106')]()){if(_0x5433f8[_0x439e('0x12')]||!_0x5433f8[_0x439e('0xb2')])continue;const _0xb5c9c9=_0x439e('0x12d')==_0x5433f8[_0x439e('0x89')],_0x45d341=this[_0x439e('0xd')](_0x5433f8),_0x47a90e=_0x45d341&&this[_0x439e('0xcb')](_0x45d341);if(!_0xb5c9c9&&!_0x47a90e)continue;const _0x4b8117=_0x5433f8[_0x439e('0xf5')]();if(_0x4b8117[_0x439e('0x9')]['parent']!=_0x4b8117[_0x439e('0xb5')]['parent']&&!_0x4b8117[_0x439e('0xb5')][_0x439e('0xb4')]){const _0x1d439c=_0x332b58['model'][_0x439e('0x10')](_0x4b8117[_0x439e('0x9')][_0x439e('0x39')],'end'),_0xc1d44a=_0x332b58[_0x439e('0xf8')][_0x439e('0xf4')](_0x4b8117[_0x439e('0x9')],_0x1d439c);_0x2b126e['updateMarker'](_0x5433f8[_0x439e('0xc3')](),{'range':_0xc1d44a}),_0xc3902b=!0x0;}}return _0xc3902b;}),_0x332b58[_0x439e('0xf8')][_0x439e('0x7a')]['registerPostFixer'](_0x873eb3=>this[_0x439e('0xe9')](_0x873eb3)),_0x332b58['model'][_0x439e('0x7a')][_0x439e('0xd2')](_0x10e8bd=>!_0x10e8bd[_0x439e('0xec')][_0x439e('0x14')]&&this[_0x439e('0x59')](_0x10e8bd)),_0x332b58['model']['markers']['on'](_0x439e('0x135'),(_0x44a9c7,_0xa82a95,_0x2aed27)=>{if(null==_0x2aed27){const {id:_0x56df16}=this['_splitMarkerName'](_0xa82a95[_0x439e('0x17b')]),_0x36f175=this['_suggestions'][_0x439e('0x16')](_0x56df16);_0x36f175&&_0x36f175['addMarkerName'](_0xa82a95[_0x439e('0x17b')]);}}),_0x332b58[_0x439e('0xf8')][_0x439e('0x7a')]['on'](_0x439e('0x157'),()=>{const _0x22d0a5=Array['from'](_0x332b58[_0x439e('0xf8')][_0x439e('0x7a')]['differ'][_0x439e('0x6e')]())['filter'](_0x42e52b=>_0x439e('0x26')===this['_splitMarkerName'](_0x42e52b[_0x439e('0x17b')])['group']);if(0x0===_0x22d0a5['length'])return;_0x22d0a5[_0x439e('0xa5')]((_0x3c5397,_0x5c1a78)=>{const _0x4c3b5a=_0x3c5397[_0x439e('0x181')]['oldRange'],_0x562d99=_0x5c1a78[_0x439e('0x181')][_0x439e('0x6d')];return null===_0x4c3b5a&&null===_0x562d99?0x0:null===_0x4c3b5a&&null!==_0x562d99?-0x1:null!==_0x4c3b5a&&null===_0x562d99?0x1:_0x4c3b5a[_0x439e('0x9')][_0x439e('0x11a')](_0x562d99['start'])?-0x1:0x1;});const _0x582371=new Set(),_0x53ac68=new Set();for(const {name:_0x58e5c5,data:_0x4cf6f0}of _0x22d0a5){const {id:_0x1514e3}=this[_0x439e('0x180')](_0x58e5c5);if(null===_0x4cf6f0[_0x439e('0x6d')]){const _0xcc2cb2=this[_0x439e('0x169')](_0x58e5c5);_0x53ac68[_0x439e('0x61')](_0xcc2cb2);}else{const _0x4f5f84=this[_0x439e('0x17f')][_0x439e('0x16')](_0x1514e3);null!==_0x4cf6f0[_0x439e('0xe7')]||_0x4f5f84[_0x439e('0xb2')]?(_0x582371[_0x439e('0x61')](_0x4f5f84['head']),_0x53ac68[_0x439e('0x61')](_0x4f5f84)):this['_removeSuggestion'](_0x4f5f84);}}_0x53ac68[_0x439e('0x15b')]>0x0&&this[_0x439e('0x6f')](_0x53ac68);for(const _0x4c1bc4 of _0x582371)this[_0x439e('0x42')](_0x439e('0x12f'),_0x4c1bc4);}),_0x332b58[_0x439e('0xf8')]['on'](_0x439e('0x90'),(_0xd814d9,_0x297d5c)=>{const _0x119f95=_0x297d5c[0x0];if(!this[_0x439e('0x17f')][_0x439e('0x15b')])return;if(!_0x119f95['isDocumentOperation'])return;if(_0x119f95[_0x439e('0xec')][_0x439e('0x17')]||!_0x119f95[_0x439e('0xec')][_0x439e('0x14')])return;let _0x912aab,_0x230bb8;switch(_0x119f95[_0x439e('0x89')]){case _0x439e('0x8d'):_0x912aab=_0x332b58[_0x439e('0xf8')][_0x439e('0x10')](_0x119f95['position']),_0x230bb8=_0x912aab['getShiftedBy'](_0x119f95[_0x439e('0xc5')]);break;case _0x439e('0x88'):_0x912aab=_0x332b58['model'][_0x439e('0x10')](_0x119f95[_0x439e('0x165')]),_0x230bb8=_0x332b58[_0x439e('0xf8')][_0x439e('0x10')](_0x119f95[_0x439e('0x2a')]);break;case _0x439e('0x78'):_0x912aab=_0x332b58[_0x439e('0xf8')][_0x439e('0x10')](_0x119f95[_0x439e('0x45')]),_0x230bb8=_0x912aab[_0x439e('0x111')](_0x119f95['howMany']);break;default:return;}const _0xe31760=_0x332b58['model'][_0x439e('0xf4')](_0x912aab,_0x230bb8);_0x332b58[_0x439e('0xf8')]['change'](()=>{for(const {suggestion:_0x3e1924,meta:_0x151e50}of this['_findSuggestions'](_0xe31760)){if(_0x3e1924['isMultiRange'])continue;if('formatInline'==_0x3e1924[_0x439e('0x89')])continue;const _0x212b05=this[_0x439e('0xd')](_0x3e1924);if(_0x212b05&&this['_isBlockAttribute'](_0x212b05)&&_0x439e('0x88')!=_0x119f95[_0x439e('0x89')])continue;const _0x18cea0=_0x3e1924[_0x439e('0x181')]&&_0x3e1924[_0x439e('0x181')][_0x439e('0x79')];(_0x439e('0x12d')!=_0x3e1924[_0x439e('0x89')]||_0x439e('0x88')==_0x119f95[_0x439e('0x89')]&&!_0x18cea0)&&(_0x151e50[_0x439e('0x16b')]||_0x439e('0xad')==_0x3e1924['type']&&_0x151e50[_0x439e('0x21')]||_0x3e1924[_0x439e('0xf5')]()[_0x439e('0xcc')](_0xe31760)&&this[_0x439e('0x164')](_0x3e1924,_0x912aab,_0x230bb8));}});},{'priority':_0x439e('0x97')}),_0x332b58[_0x439e('0xf8')]['on']('deleteContent',(_0x7d2170,_0x5e6182)=>{const _0x45d277=_0x5e6182[0x0],_0x236e3a=_0x5e6182[0x1];if(_0x236e3a&&_0x236e3a['forceDefaultExecution'])return;if(this[_0x439e('0x137')])return;if(!this['trackChangesCommand'][_0x439e('0x16f')])return;if(_0x45d277['isCollapsed'])return;const _0x56e457=_0x332b58['model'][_0x439e('0x7d')],{start:_0x1373dc,end:_0x5836d8}=_0x45d277[_0x439e('0xf5')](),_0x139b7f=_0x1373dc['nodeAfter']&&_0x56e457[_0x439e('0x3b')](_0x1373dc[_0x439e('0x39')])?null:_0x56e457[_0x439e('0x17d')](_0x1373dc,'forward'),_0xb03ef1=_0x5836d8['nodeBefore']&&_0x56e457[_0x439e('0x3b')](_0x5836d8['nodeBefore'])?null:_0x56e457[_0x439e('0x17d')](_0x5836d8,_0x439e('0x11d')),_0x4b721e=_0x332b58['model']['createRange'](_0x139b7f?_0x139b7f[_0x439e('0x9')]:_0x1373dc,_0xb03ef1?_0xb03ef1['end']:_0x5836d8);_0x332b58[_0x439e('0xf8')][_0x439e('0xd6')](_0x4ef398=>{this[_0x439e('0x4a')](_0x4b721e);const _0x39907a=_0x332b58[_0x439e('0xf8')][_0x439e('0x7d')]['getNearestSelectionRange'](_0x4b721e[_0x439e('0x9')]);_0x45d277['is'](_0x439e('0x6b'))?_0x4ef398[_0x439e('0x7c')](_0x39907a):_0x45d277[_0x439e('0x140')](_0x39907a);}),_0x7d2170[_0x439e('0x2f')]();},{'priority':_0x121d4a[_0x439e('0xdb')]+0xa}),_0x332b58['model']['on']('insertContent',(_0x18aad8,_0x41973e)=>{const _0x4522a3=_0x41973e[_0x41973e[_0x439e('0x65')]-0x1];_0x4522a3&&_0x4522a3[_0x439e('0x93')]||this[_0x439e('0x137')]||this['trackChangesCommand'][_0x439e('0x16f')]&&(_0x332b58[_0x439e('0xf8')][_0x439e('0xd6')](()=>{let _0x303a54=_0x332b58[_0x439e('0xf8')]['insertContent'](_0x41973e[0x0],_0x41973e[0x1],_0x41973e[0x2],{'forceDefaultExecution':!0x0});if(!_0x303a54)return;_0x18aad8[_0x439e('0xb0')]=_0x303a54[_0x439e('0x52')]();const _0x28b76d=_0x303a54[_0x439e('0xb5')]['nodeBefore'],_0x51811e=_0x332b58['model'][_0x439e('0x7d')];_0x28b76d&&_0x51811e['isBlock'](_0x28b76d)&&!_0x51811e[_0x439e('0x15c')](_0x28b76d)&&(_0x303a54=_0x332b58[_0x439e('0xf8')][_0x439e('0xf4')](_0x303a54[_0x439e('0x9')],_0x332b58[_0x439e('0xf8')]['createPositionAt'](_0x28b76d,'end'))),this[_0x439e('0x75')](_0x303a54);}),_0x18aad8['stop']());},{'priority':_0x439e('0x124')}),this[_0x439e('0xce')][_0x439e('0x134')][_0x439e('0x61')](_0x439e('0x136'),this[_0x439e('0x19')]),this[_0x439e('0x72')](_0x439e('0x136'));const _0x2bbda2=new _0x51a034(_0x332b58,this[_0x439e('0x17f')]);_0x332b58[_0x439e('0x134')][_0x439e('0x61')]('acceptSuggestion',_0x2bbda2),this['enableCommand'](_0x439e('0x12a'));const _0x37c4a3=new _0x284540(_0x332b58,this[_0x439e('0x17f')]);_0x332b58['commands'][_0x439e('0x61')](_0x439e('0x149'),_0x37c4a3),this[_0x439e('0x72')](_0x439e('0x149')),_0x332b58['commands'][_0x439e('0x61')](_0x439e('0xa0'),new _0x7353a0(_0x332b58,_0x2bbda2,this[_0x439e('0x17f')])),this[_0x439e('0x72')](_0x439e('0xa0')),_0x332b58[_0x439e('0x134')][_0x439e('0x61')](_0x439e('0x46'),new _0x7353a0(_0x332b58,_0x37c4a3,this[_0x439e('0x17f')])),this[_0x439e('0x72')](_0x439e('0x46')),_0x332b58[_0x439e('0x134')]['add'](_0x439e('0x7'),new _0x51fe86(_0x332b58,_0x2bbda2,this[_0x439e('0x17f')])),this[_0x439e('0x72')]('acceptSelectedSuggestions'),_0x332b58[_0x439e('0x134')][_0x439e('0x61')](_0x439e('0x107'),new _0x51fe86(_0x332b58,_0x37c4a3,this[_0x439e('0x17f')])),this[_0x439e('0x72')](_0x439e('0x107'));const _0x502463=_0x332b58[_0x439e('0x28')][_0x439e('0x16')](_0x439e('0x138'));this[_0x439e('0x24')](_0x502463,_0x439e('0xae'),(_0x3069b6,{threadId:_0x406804})=>{const _0x4255d9=this[_0x439e('0x17f')][_0x439e('0x16')](_0x406804);_0x4255d9&&_0x4255d9[_0x439e('0x173')]&&0x1===_0x4255d9[_0x439e('0x173')][_0x439e('0x65')]&&this[_0x439e('0xed')](_0x406804,{'hasComments':!0x0});},{'priority':_0x439e('0xa7')}),this[_0x439e('0x24')](_0x502463,_0x439e('0xa4'),(_0x45c29b,{threadId:_0x4ede74})=>{const _0x180c66=this[_0x439e('0x17f')][_0x439e('0x16')](_0x4ede74);_0x180c66&&_0x180c66[_0x439e('0x173')]&&!_0x180c66['commentThread']['length']&&this[_0x439e('0xed')](_0x4ede74,{'hasComments':!0x1});},{'priority':_0x439e('0xa7')});}set[_0x439e('0x5a')](_0x9fbdb){if(this[_0x439e('0x53')])throw new _0x316ab1('track-changes-adapter-already-set',this);this[_0x439e('0x53')]=_0x9fbdb;}get['adapter'](){return this[_0x439e('0x53')];}[_0x439e('0x102')]({skipNotAttached:_0x20df3e=!0x1,toJSON:_0xa1a949=!0x1}={}){const _0x2b72df=[];for(const _0x4da944 of this[_0x439e('0x17f')][_0x439e('0x106')]())_0x20df3e&&!_0x4da944[_0x439e('0xb2')]||_0x2b72df['push'](_0x4da944);return _0xa1a949?_0x2b72df[_0x439e('0x15f')](_0x57dd64=>_0x57dd64[_0x439e('0xcf')]()):_0x2b72df;}[_0x439e('0x10c')](_0x18c286){const _0x1b55d7=this[_0x439e('0x17f')][_0x439e('0x16')](_0x18c286);if(!_0x1b55d7)throw new _0x316ab1(_0x439e('0x14a'),this);return _0x1b55d7;}[_0x439e('0x3f')](_0x2a2c56){return this[_0x439e('0x17f')][_0x439e('0x32')](_0x2a2c56);}[_0x439e('0x10b')](_0x54e8ed){const {authorId:_0x117788,id:_0x3b31c2,attributes:_0x5ef0e2}=_0x54e8ed,[_0x3a0b76,_0xb5c64b]=_0x54e8ed[_0x439e('0x89')][_0x439e('0x88')](':'),_0x41ea07=this[_0x439e('0x17f')]['get'](_0x3b31c2)||this[_0x439e('0x158')](_0x3a0b76,_0xb5c64b,_0x3b31c2,_0x117788,_0x5ef0e2);if(this[_0x439e('0x0')](_0x41ea07),this[_0x439e('0x1d')](_0x41ea07,_0x3a0b76,_0xb5c64b||null,_0x117788),_0x41ea07[_0x439e('0xb7')]=_0x54e8ed['createdAt'],_0x41ea07['_isDataLoaded']=!0x0,_0x5ef0e2&&_0x5ef0e2[_0x439e('0x104')]){const _0x18893e=_0x5ef0e2[_0x439e('0x104')],_0x345859=this[_0x439e('0x3a')](_0x18893e[_0x439e('0x178')]);_0x41ea07[_0x439e('0xe5')]=_0x18893e[_0x439e('0xb7')],_0x41ea07[_0x439e('0x16c')]=_0x345859,_0x41ea07[_0x439e('0x74')]=!0x0;}else _0x41ea07[_0x439e('0xe5')]=_0x54e8ed[_0x439e('0xb7')];switch(_0x54e8ed[_0x439e('0x181')]&&(_0x41ea07[_0x439e('0x181')]=_0x54e8ed[_0x439e('0x181')]),_0x54e8ed[_0x439e('0x167')]&&(_0x41ea07[_0x439e('0x167')]=_0x54e8ed[_0x439e('0x167')]),this[_0x439e('0x53')]&&this[_0x439e('0x53')][_0x439e('0x8c')]||(_0x41ea07[_0x439e('0xff')]=!0x0),this['_suggestionState']['get'](_0x41ea07)){case _0x439e('0xe'):this[_0x439e('0x132')][_0x439e('0x66')](_0x41ea07,'dataReady');break;case'markerReady':_0x41ea07[_0x439e('0xb2')]?(this[_0x439e('0x6f')](new Set([_0x41ea07])),this[_0x439e('0xbf')](new Set([_0x41ea07])),this[_0x439e('0x132')][_0x439e('0x66')](_0x41ea07,_0x439e('0x13b')),this[_0x439e('0x42')](_0x439e('0x141'),_0x41ea07)):this[_0x439e('0x132')][_0x439e('0x66')](_0x41ea07,_0x439e('0x163'));}return _0x41ea07;}[_0x439e('0x12a')](_0x20f616){this[_0x439e('0x93')](()=>{this[_0x439e('0xce')]['model'][_0x439e('0xd6')](()=>{for(const _0x1be62b of _0x20f616['getAllAdjacentSuggestions']())_0x1be62b[_0x439e('0x168')]();});});}['discardSuggestion'](_0x5b4ec4){this['forceDefaultExecution'](()=>{this[_0x439e('0xce')]['model'][_0x439e('0xd6')](()=>{for(const _0x23c695 of _0x5b4ec4[_0x439e('0xcd')]())_0x23c695[_0x439e('0x4e')]();});});}['enableCommand'](_0x53bbcd,_0x56abde){const _0x45960f=this[_0x439e('0xce')][_0x439e('0x134')][_0x439e('0x16')](_0x53bbcd);if(!_0x45960f)throw new _0x316ab1(_0x439e('0xeb'),this,{'commandName':_0x53bbcd});if(this['_enabledCommands']['has'](_0x45960f))throw new _0x316ab1(_0x439e('0x123'),this,{'commandName':_0x53bbcd});this['_enabledCommands'][_0x439e('0x61')](_0x45960f),_0x56abde&&_0x45960f['on'](_0x439e('0x50'),(_0x3723e2,_0x348e00)=>{this['trackChangesCommand'][_0x439e('0x16f')]&&(this[_0x439e('0x137')]||(_0x348e00['length']>0x0&&_0x348e00[_0x348e00[_0x439e('0x65')]-0x1]&&_0x348e00[_0x348e00[_0x439e('0x65')]-0x1][_0x439e('0x93')]?_0x348e00[_0x439e('0xb1')]():(_0x3723e2[_0x439e('0xb0')]=_0x56abde((..._0x55cdc6)=>_0x45960f[_0x439e('0x50')](..._0x55cdc6,{'forceDefaultExecution':!0x0}),..._0x348e00),_0x3723e2[_0x439e('0x2f')]())));},{'priority':'high'});}[_0x439e('0x93')](_0x333f65){let _0x162711,_0x2390e4;const _0x3fb903=this[_0x439e('0x137')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x162711=_0x333f65();}catch(_0x5a6328){_0x2390e4=_0x5a6328;}return _0x3fb903||(this[_0x439e('0x137')]=!0x1),_0x2390e4&&_0x316ab1[_0x439e('0x14f')](_0x2390e4,this),_0x162711;}[_0x439e('0x75')](_0x5a00d6,_0x577c2b=null,_0x16f3db={}){if(_0x5a00d6['isCollapsed'])return null;const _0xa63d2c=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'];for(const {suggestion:_0x39c345,meta:_0x598600}of this['_findSuggestions'](_0x5a00d6,_0x439e('0xad')))if(_0x598600[_0x439e('0x21')]){if(!_0x598600['isNextTo']){if(_0x598600[_0x439e('0x16b')]){if(!this[_0x439e('0xdd')]||!Ft(_0x39c345,_0x16f3db))continue;return _0x39c345;}if(Ft(_0x39c345,_0x16f3db))return _0x39c345;this[_0x439e('0x164')](_0x39c345,_0x5a00d6[_0x439e('0x9')],_0x5a00d6[_0x439e('0xb5')]);break;}if(_0x577c2b==_0x39c345[_0x439e('0xc8')]&&Ft(_0x39c345,_0x16f3db)){const _0x2e9c85=_0x39c345[_0x439e('0xf5')]();return _0x2e9c85[_0x439e('0x9')][_0x439e('0x12e')](_0x5a00d6['end'])?this[_0x439e('0xd9')](_0x39c345,this[_0x439e('0x29')][_0x439e('0xf4')](_0x5a00d6[_0x439e('0x9')],_0x2e9c85[_0x439e('0xb5')])):this[_0x439e('0xd9')](_0x39c345,this[_0x439e('0x29')]['createRange'](_0x2e9c85[_0x439e('0x9')],_0x5a00d6[_0x439e('0xb5')])),_0x39c345;}}const _0x510fcc=_0x1990b4(),_0x2997bd=_0xa63d2c['id'],_0x277985=_0x577c2b?'insertion:'+_0x577c2b:_0x439e('0xad'),_0xbf2e65=this[_0x439e('0x126')]({'id':_0x510fcc,'type':_0x277985,'createdAt':new Date(),'authorId':_0x2997bd,'attributes':_0x16f3db});return this['_addSuggestionMarker'](_0x277985,_0x510fcc,_0x2997bd,_0x5a00d6),_0xbf2e65;}[_0x439e('0xe1')](_0x36e5c6,_0x4325bc=_0x439e('0x8a'),_0x4b40f4={}){const _0x505442=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'],_0x574675=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0xad'),_0x4325bc,_0x439e('0xdc'));for(const _0x31f632 of this[_0x439e('0x102')]())if(_0x31f632[_0x439e('0x16c')]['id']==_0x505442['id']&&_0x439e('0xad')==_0x31f632[_0x439e('0x89')]&&_0x31f632[_0x439e('0xc8')]==_0x4325bc&&Ft(_0x31f632,_0x4b40f4)&&(_0x574675(_0x31f632['getRanges'](),_0x36e5c6)||_0x574675(_0x36e5c6,_0x31f632[_0x439e('0xca')]()))){for(const _0x361ad2 of _0x36e5c6)_0x31f632[_0x439e('0x176')](_0x361ad2);return _0x31f632;}for(const {suggestion:_0x2294a1,meta:_0x88f9c6}of this[_0x439e('0xef')](_0x36e5c6,_0x439e('0xad'))){if(!_0x88f9c6[_0x439e('0x21')])continue;if(!this[_0x439e('0xdd')]&&_0x88f9c6[_0x439e('0x16b')])continue;if(!Ft(_0x2294a1,_0x4b40f4))continue;let _0x1c78d8=!0x0;for(const _0x239485 of _0x2294a1[_0x439e('0xca')]())for(const _0x3a3a5a of _0x36e5c6)if(!_0x239485[_0x439e('0xcc')](_0x3a3a5a)){_0x1c78d8=!0x1;break;}if(_0x1c78d8)return _0x2294a1;}const _0x5aae96=_0x1990b4(),_0x3d295a=_0x505442['id'],_0x346e23='insertion:'+_0x4325bc,_0x3c807d=this[_0x439e('0x126')]({'id':_0x5aae96,'type':_0x346e23,'createdAt':new Date(),'authorId':_0x3d295a,'attributes':_0x4b40f4});for(const _0x2ce9fa of _0x36e5c6)this[_0x439e('0x36')](_0x346e23,_0x5aae96,_0x3d295a,_0x2ce9fa,_0x5b5191[_0x439e('0x31')]());return _0x3c807d;}[_0x439e('0xfb')](_0x6c3a93,_0x569327,_0x172ed9=null,_0x385f1f={}){if(_0x172ed9=_0x172ed9||Rt(_0x569327),_0x6c3a93[_0x439e('0x41')])return null;if(_0x439e('0x11e')===this['_trackFormatChanges']){const _0x4e9550=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x170'),_0x172ed9,'accept');return this['forceDefaultExecution'](()=>_0x4e9550([_0x6c3a93],_0x569327,_0x385f1f)),null;}const _0x5ce8e4=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')]('Users')['me'],_0x18ec3f=[];if(_0x439e('0x54')!==this[_0x439e('0x94')])for(const {suggestion:_0x5af049,meta:_0x2ee26e}of this['_findSuggestions'](_0x6c3a93,_0x439e('0xad')))_0x2ee26e[_0x439e('0x21')]&&!_0x2ee26e['isInsideObject']&&_0x18ec3f[_0x439e('0x14c')](..._0x5af049[_0x439e('0xca')]());const _0x28e32c=function(_0x22b32a,_0x5f5ce6){const _0x2e630d=[];for(const _0x1d55d4 of _0x5f5ce6){const _0x2276a3=_0x22b32a['getIntersection'](_0x1d55d4);_0x2276a3&&_0x2e630d['push'](_0x2276a3);}return _0x2e630d;}(_0x6c3a93,_0x18ec3f),_0x11a7b8=function(_0x48a76f,_0x11f567){const _0xac9e3a=[_0x48a76f];for(const _0x29bee3 of _0x11f567){let _0x2b266b=0x0;for(;_0x2b266b<_0xac9e3a[_0x439e('0x65')];){const _0x58cb78=_0xac9e3a[_0x2b266b][_0x439e('0xa9')](_0x29bee3);_0xac9e3a[_0x439e('0xe2')](_0x2b266b,0x1,..._0x58cb78),_0x2b266b+=_0x58cb78[_0x439e('0x65')];}}return _0xac9e3a;}(_0x6c3a93,_0x18ec3f);_0x28e32c[_0x439e('0x65')]&&this['_model']['change'](()=>{for(const _0x2c4a6e of _0x28e32c){const _0x191908=this['_suggestionFactory'][_0x439e('0xc4')](_0x439e('0x170'),_0x172ed9,_0x439e('0x168'));this['forceDefaultExecution'](()=>_0x191908([_0x2c4a6e],_0x569327,_0x385f1f));}});for(const _0x168efd of _0x11a7b8){let _0x3915c5=null,_0x462fa7=_0x168efd[_0x439e('0x9')],_0x38293f=_0x168efd['end'];for(const {suggestion:_0x4280fd,meta:_0x5aaadd}of this['_findSuggestions'](_0x168efd,_0x439e('0x170'))){if(!_0x5aaadd[_0x439e('0x21')])continue;if(_0x4280fd[_0x439e('0xc8')]!=_0x172ed9)continue;if(!Ft(_0x4280fd,_0x385f1f))continue;const _0x5b87e4=_0x4280fd['getFirstRange']();if(_0x5b87e4[_0x439e('0xcc')](_0x168efd,!0x0))return null;_0x462fa7=_0x462fa7['isBefore'](_0x5b87e4[_0x439e('0x9')])?_0x462fa7:_0x5b87e4['start'],_0x38293f=_0x38293f[_0x439e('0x14d')](_0x5b87e4[_0x439e('0xb5')])?_0x38293f:_0x5b87e4[_0x439e('0xb5')],_0x3915c5?_0x5b87e4[_0x439e('0x9')][_0x439e('0x11a')](_0x3915c5['getFirstRange']()['start'])?(_0x3915c5[_0x439e('0x171')](),_0x3915c5=_0x4280fd):_0x4280fd['removeMarkers']():_0x3915c5=_0x4280fd;}const _0x3ea219=this[_0x439e('0x29')]['createRange'](_0x462fa7,_0x38293f);if(_0x3915c5)this[_0x439e('0xd9')](_0x3915c5,_0x3ea219);else{const _0x32dc8e=_0x1990b4(),_0x376454=_0x5ce8e4['id'];this[_0x439e('0x126')]({'id':_0x32dc8e,'type':'formatInline:'+_0x172ed9,'data':_0x569327,'createdAt':new Date(),'authorId':_0x376454,'attributes':_0x385f1f}),this[_0x439e('0x36')](_0x439e('0x6a')+_0x172ed9,_0x32dc8e,_0x376454,_0x3ea219);}}return null;}[_0x439e('0x4d')](_0x5ecf47,_0x2c3cef,_0x314efe=[],_0x4a5bfc=null,_0x121fa7={}){_0x2c3cef[_0x439e('0xd0')]||(_0x2c3cef[_0x439e('0xd0')]=_0x2c3cef[_0x439e('0x10a')]),_0x2c3cef[_0x439e('0x79')]=_0x5ecf47['is'](_0x439e('0xe8')),_0x4a5bfc=_0x4a5bfc||Rt(_0x2c3cef);const _0x48c407=_0x314efe[_0x439e('0x15f')](_0x46b628=>Ut(_0x46b628,this[_0x439e('0x29')])),_0x191e73=_0x5ecf47['is'](_0x439e('0xe8'))?_0x5ecf47:Ut(_0x5ecf47,this[_0x439e('0x29')]);if('never'===this[_0x439e('0x94')]){const _0x19cbec=this['_suggestionFactory'][_0x439e('0xc4')](_0x439e('0x12d'),_0x4a5bfc,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0x19cbec([_0x191e73],_0x2c3cef,_0x121fa7)),null;}_0x48c407[_0x439e('0x14c')](_0x191e73);let _0x315ea6=!0x0;for(const _0x823dc7 of _0x48c407)if(!this[_0x439e('0xd3')](_0x823dc7)){_0x315ea6=!0x1;break;}if(_0x315ea6&&_0x439e('0x54')!==this[_0x439e('0x94')]){const _0x13f483=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x4a5bfc,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0x13f483([_0x191e73],_0x2c3cef,_0x121fa7)),null;}let _0x3b8278=null,_0x1c0a2b=_0x191e73['start'],_0x57f904=_0x191e73[_0x439e('0xb5')];for(const {suggestion:_0x224c05,meta:_0x49bb3a}of this['_findSuggestions'](_0x191e73,'formatBlock')){if(!_0x49bb3a[_0x439e('0x21')])continue;if(_0x49bb3a[_0x439e('0x108')]||_0x49bb3a[_0x439e('0x16b')]||_0x49bb3a[_0x439e('0x110')])continue;if(_0x224c05[_0x439e('0x181')][_0x439e('0xd0')]!=_0x2c3cef[_0x439e('0xd0')])continue;if(!Ft(_0x224c05,_0x121fa7))continue;const _0x58b7d7=_0x224c05['getFirstRange']();if(_0x224c05['subType']==_0x4a5bfc){if(_0x58b7d7[_0x439e('0xcc')](_0x191e73,!0x0))return null;_0x1c0a2b=_0x1c0a2b[_0x439e('0x11a')](_0x58b7d7[_0x439e('0x9')])?_0x1c0a2b:_0x58b7d7[_0x439e('0x9')],_0x57f904=_0x57f904[_0x439e('0x14d')](_0x58b7d7[_0x439e('0xb5')])?_0x57f904:_0x58b7d7[_0x439e('0xb5')],_0x3b8278?_0x58b7d7[_0x439e('0x9')][_0x439e('0x11a')](_0x3b8278[_0x439e('0xf5')]()['start'])?(_0x3b8278[_0x439e('0x171')](),_0x3b8278=_0x224c05):_0x224c05[_0x439e('0x171')]():_0x3b8278=_0x224c05;}else{const _0x20da2b=_0x191e73['getIntersection'](_0x58b7d7);this[_0x439e('0x82')](_0x224c05,_0x20da2b);}}const _0x52c946=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'],_0x8e7589=_0x1990b4(),_0x5c001b=_0x52c946['id'];if(_0x3b8278)return this[_0x439e('0xd9')](_0x3b8278,this['_model']['createRange'](_0x1c0a2b,_0x57f904)),_0x3b8278;{const _0x18efcb=this[_0x439e('0x126')]({'id':_0x8e7589,'type':'formatBlock:'+_0x4a5bfc,'data':_0x2c3cef,'createdAt':new Date(),'authorId':_0x5c001b,'attributes':_0x121fa7});return this[_0x439e('0x36')](_0x439e('0xf9')+_0x4a5bfc,_0x8e7589,_0x5c001b,this[_0x439e('0x29')][_0x439e('0xf4')](_0x1c0a2b,_0x57f904)),_0x18efcb;}}[_0x439e('0x10e')](_0x55cec7,_0x47ee97,_0x2902f4=[],_0x65e828=null,_0x23babf={}){_0x47ee97[_0x439e('0xd0')]||(_0x47ee97[_0x439e('0xd0')]=_0x47ee97[_0x439e('0x10a')]);const _0xc0a93a=_0x55cec7[0x0];_0x47ee97['multipleBlocks']=_0xc0a93a['is'](_0x439e('0xe8')),_0x65e828=_0x65e828||Rt(_0x47ee97);const _0x435136=_0x2902f4[_0x439e('0x15f')](_0x420a0a=>Ut(_0x420a0a,this['_model'])),_0x571c97=_0xc0a93a['is'](_0x439e('0xe8'))?_0x55cec7:_0x55cec7[_0x439e('0x15f')](_0x4b3506=>Ut(_0x4b3506,this['_model']));if(_0x439e('0x11e')===this[_0x439e('0x94')]){const _0x64683c=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x65e828,'accept');return this[_0x439e('0x93')](()=>_0x64683c(_0x571c97,_0x47ee97,_0x23babf)),null;}_0x435136[_0x439e('0x14c')](..._0x571c97);let _0x30ebca=!0x0;for(const _0xa2e78a of _0x435136)if(!this[_0x439e('0xd3')](_0xa2e78a)){_0x30ebca=!0x1;break;}if(_0x30ebca&&_0x439e('0x54')!==this[_0x439e('0x94')]){const _0xeab250=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x65e828,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0xeab250(_0x571c97,_0x47ee97,_0x23babf)),null;}const _0x5a2ac1=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe'))['me'];for(const _0x3d78a5 of this[_0x439e('0x102')]()){if(_0x3d78a5[_0x439e('0x16c')]['id']!=_0x5a2ac1['id'])continue;if('formatBlock'!=_0x3d78a5[_0x439e('0x89')]||_0x3d78a5[_0x439e('0x181')][_0x439e('0xd0')]!=_0x47ee97[_0x439e('0xd0')])continue;if(!Ft(_0x3d78a5,_0x23babf))continue;const _0x59f44f=_0x3d78a5['subType']==_0x65e828;for(let _0x5e076e=0x0;_0x5e076e<_0x571c97['length'];_0x5e076e++){const _0x2520ab=_0x571c97[_0x5e076e];for(const _0x1ab24f of _0x3d78a5['getMarkers']()){const _0x3dda5c=_0x1ab24f[_0x439e('0x4c')]();if(_0x2520ab[_0x439e('0x12e')](_0x3dda5c)){_0x59f44f?(_0x571c97['splice'](_0x5e076e,0x1),_0x5e076e--):_0x3d78a5['removeMarker'](_0x1ab24f[_0x439e('0x17b')]);break;}}}}if(0x0==_0x571c97['length'])return null;const _0x4983c2=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x65e828,_0x439e('0xdc'));for(const _0x1a9ee1 of this[_0x439e('0x102')]())if(_0x1a9ee1[_0x439e('0x16c')]['id']==_0x5a2ac1['id']&&_0x439e('0x12d')==_0x1a9ee1[_0x439e('0x89')]&&_0x1a9ee1['data']['formatGroupId']==_0x47ee97[_0x439e('0xd0')]&&_0x1a9ee1[_0x439e('0xc8')]==_0x65e828&&Ft(_0x1a9ee1,_0x23babf)&&(_0x4983c2(_0x1a9ee1[_0x439e('0xca')](),_0x571c97)||_0x4983c2(_0x571c97,_0x1a9ee1[_0x439e('0xca')]()))){for(const _0x4df071 of _0x571c97)_0x1a9ee1['addRange'](_0x4df071);return _0x1a9ee1;}const _0x2e1a6e=_0x1990b4(),_0x163a03=_0x5a2ac1['id'],_0x29020b=_0x439e('0xf9')+_0x65e828,_0x51c4f0=this['_setSuggestionData']({'id':_0x2e1a6e,'type':_0x29020b,'data':_0x47ee97,'createdAt':new Date(),'authorId':_0x163a03,'attributes':_0x23babf});for(const _0x2e58e1 of _0x571c97)this[_0x439e('0x36')](_0x29020b,_0x2e1a6e,_0x163a03,_0x2e58e1,_0x5b5191[_0x439e('0x31')]());return _0x51c4f0;}[_0x439e('0x4a')](_0x1a484c,_0x555456=null,_0x36b132={}){if(_0x1a484c['isCollapsed'])return null;const _0x1b0ac7=this['editor'][_0x439e('0x28')][_0x439e('0x16')]('Users')['me'],_0x31c849=new _0x5d4469(_0x1a484c[_0x439e('0x9')],_0x1a484c[_0x439e('0xb5')]);for(const {suggestion:_0x38bf8c,meta:_0x3188da}of this[_0x439e('0xef')](_0x31c849,_0x439e('0xad')))if(_0x3188da['isOwn']&&!_0x3188da[_0x439e('0x108')]){if(_0x38bf8c[_0x439e('0x12')]){const _0x31cb36=_0x38bf8c['getRanges']()[_0x439e('0x13e')](_0x1ddd4f=>_0x439e('0x2b')!=_0x1ddd4f[_0x439e('0x162')][_0x439e('0xf7')]);_0x31cb36[_0x439e('0xa3')](_0x58017f=>_0x31c849[_0x439e('0xcc')](_0x58017f,!0x0))&&_0x38bf8c[_0x439e('0x4e')]();if(_0x31cb36[_0x439e('0x153')](_0x27062c=>_0x27062c[_0x439e('0xcc')](_0x31c849,!0x0))){const _0x54712c=this['_suggestionFactory'][_0x439e('0xc4')](_0x439e('0x9c'),_0x555456,_0x439e('0x168'));return this['forceDefaultExecution'](()=>_0x54712c([_0x31c849],null,_0x36b132)),null;}}else{const _0xfa809c=_0x31c849[_0x439e('0x84')](_0x38bf8c[_0x439e('0xf5')]());null!==_0xfa809c&&_0x38bf8c[_0x439e('0x139')]([_0xfa809c],null,_0x36b132);}}if(_0x31c849[_0x439e('0x113')](),_0x31c849[_0x439e('0x41')]||_0x439e('0x2b')==_0x31c849[_0x439e('0x162')][_0x439e('0xf7')])return null;let _0x2ebaad=null,_0x48ba44=_0x31c849[_0x439e('0x9')],_0x4838ff=_0x31c849[_0x439e('0xb5')];const _0x5635a5=this[_0x439e('0xef')](_0x31c849,'deletion');for(const {suggestion:_0x2e001f,meta:_0x1d14fb}of _0x5635a5){const _0x456d1e=this[_0x439e('0x29')][_0x439e('0xf4')](_0x48ba44,_0x4838ff);if(_0x1d14fb[_0x439e('0x21')]&&(this[_0x439e('0xdd')]||!_0x1d14fb['containsRangeInObject']&&!_0x1d14fb['isInsideObject'])){if(_0x2e001f[_0x439e('0x12')]){if(!Ft(_0x2e001f,_0x36b132))continue;let _0x4dc7d2=!0x0;for(const _0x2024e8 of _0x2e001f[_0x439e('0xca')]()){if(_0x2024e8[_0x439e('0xcc')](_0x456d1e,!0x0))return _0x2e001f;_0x456d1e[_0x439e('0xcc')](_0x2024e8)||(_0x4dc7d2=!0x1);}_0x4dc7d2&&_0x2e001f[_0x439e('0x4e')]();}else{const _0x382710=_0x2e001f[_0x439e('0xf5')]();if(_0x382710[_0x439e('0xcc')](_0x456d1e,!0x0))return _0x2e001f;if(!Ft(_0x2e001f,_0x36b132)){_0x456d1e[_0x439e('0xcc')](_0x382710)?_0x2e001f['removeMarkers']():_0x382710[_0x439e('0x22')](_0x48ba44)?_0x48ba44=_0x382710[_0x439e('0xb5')]:_0x382710['containsPosition'](_0x4838ff)&&(_0x4838ff=_0x382710[_0x439e('0x9')]);continue;}_0x48ba44=_0x48ba44[_0x439e('0x11a')](_0x382710['start'])?_0x48ba44:_0x382710[_0x439e('0x9')],_0x4838ff=_0x4838ff[_0x439e('0x14d')](_0x382710[_0x439e('0xb5')])?_0x4838ff:_0x382710[_0x439e('0xb5')],_0x36b132=Object['assign']({},_0x2e001f[_0x439e('0x167')]),_0x2ebaad?_0x382710[_0x439e('0x9')][_0x439e('0x11a')](_0x2ebaad[_0x439e('0xf5')]()[_0x439e('0x9')])?(_0x2ebaad[_0x439e('0x171')](),_0x2ebaad=_0x2e001f):_0x2e001f[_0x439e('0x171')]():_0x2ebaad=_0x2e001f;}}}if(_0x2ebaad)return this['_setSuggestionRange'](_0x2ebaad,this['_model'][_0x439e('0xf4')](_0x48ba44,_0x4838ff)),_0x2ebaad;{const _0x2305dd=_0x1990b4(),_0x364b01=this['_model'][_0x439e('0xf4')](_0x48ba44,_0x4838ff),_0x45713a=_0x1b0ac7['id'],_0x2aaef=_0x555456?_0x439e('0x112')+_0x555456:'deletion',_0x542653=this[_0x439e('0x126')]({'id':_0x2305dd,'type':_0x2aaef,'createdAt':new Date(),'authorId':_0x45713a,'attributes':_0x36b132});return this['_addSuggestionMarker'](_0x2aaef,_0x2305dd,_0x45713a,_0x364b01),_0x542653;}}[_0x439e('0x99')](_0x5d11c7,_0x464f92=_0x439e('0x8a'),_0x41b464={}){const _0x47ba67=this['editor']['plugins'][_0x439e('0x16')](_0x439e('0xbe'))['me'],_0x404cdf=_0x5d11c7[_0x439e('0x15f')](_0x57fafb=>new _0x5d4469(_0x57fafb[_0x439e('0x9')],_0x57fafb[_0x439e('0xb5')])),_0x4239ec=new Set();for(const {suggestion:_0x5e67d9,meta:_0x20d877}of this['_findSuggestions'](_0x404cdf,_0x439e('0xad')))_0x20d877[_0x439e('0x21')]&&!_0x20d877[_0x439e('0x108')]&&_0x4239ec['add'](_0x5e67d9);for(const _0x331ba5 of _0x4239ec)if(_0x331ba5[_0x439e('0x12')]){const _0x1690ee=_0x331ba5['getRanges']();(!_0x331ba5[_0x439e('0x167')]||!_0x331ba5['attributes'][_0x439e('0x9a')])&&(_0x1690ee[_0x439e('0xa3')](_0x1b78d6=>_0x404cdf['some'](_0x44832b=>_0x44832b[_0x439e('0xcc')](_0x1b78d6,!0x0)))&&_0x331ba5[_0x439e('0x4e')]());if(_0x404cdf['every'](_0x14ee5b=>_0x1690ee[_0x439e('0x153')](_0x172715=>_0x172715[_0x439e('0xcc')](_0x14ee5b,!0x0)))){const _0x5677e7=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x9c'),_0x464f92,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0x5677e7(_0x5d11c7,null,_0x41b464)),null;}}else{const _0x1587b3=_0x331ba5[_0x439e('0xf5')]();_0x404cdf[_0x439e('0x153')](_0x1a601f=>_0x1a601f['containsRange'](_0x1587b3,!0x0))&&_0x331ba5['discard']();if(_0x404cdf[_0x439e('0xa3')](_0xba9ae0=>_0x1587b3['containsRange'](_0xba9ae0,!0x0))){const _0x1c651a=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x9c'),_0x464f92,_0x439e('0x168'));return this['forceDefaultExecution'](()=>_0x1c651a(_0x404cdf,null,_0x41b464)),null;}}const _0xdba20=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x9c'),_0x464f92,'join');let _0x384764=null;for(const _0x2a56e7 of this[_0x439e('0x102')]())if(_0x2a56e7[_0x439e('0x16c')]['id']==_0x47ba67['id']&&_0x2a56e7[_0x439e('0xb2')]&&_0x439e('0x9c')==_0x2a56e7['type']&&_0x2a56e7[_0x439e('0xc8')]==_0x464f92&&Ft(_0x2a56e7,_0x41b464)&&(_0xdba20(_0x2a56e7['getRanges'](),_0x404cdf)||_0xdba20(_0x404cdf,_0x2a56e7[_0x439e('0xca')]()))){if(_0x384764){if(_0x2a56e7[_0x439e('0x173')]&&_0x2a56e7['commentThread'][_0x439e('0x65')])continue;for(const _0x3265e0 of _0x2a56e7[_0x439e('0xca')]())_0x384764[_0x439e('0x44')](_0x3265e0)||_0x384764['addRange'](_0x3265e0);_0x2a56e7['removeMarkers']();}else{_0x384764=_0x2a56e7;for(const _0x44703f of _0x404cdf)_0x2a56e7['isIntersectingWithRange'](_0x44703f)||_0x2a56e7[_0x439e('0x176')](_0x44703f);}}if(_0x384764)return _0x384764;_0x4239ec[_0x439e('0xe6')]();for(const {suggestion:_0xf96c82,meta:_0xdc1c2e}of this['_findSuggestions'](_0x404cdf,_0x439e('0x9c')))_0xdc1c2e['isOwn']&&(this[_0x439e('0xdd')]||!_0xdc1c2e[_0x439e('0x16b')]&&!_0xdc1c2e[_0x439e('0x110')])&&Ft(_0xf96c82,_0x41b464)&&_0x4239ec[_0x439e('0x61')](_0xf96c82);for(const _0x4825e0 of _0x4239ec){const _0x57f742=_0x4825e0[_0x439e('0xca')]();if(!_0x41b464||!_0x41b464[_0x439e('0x9a')]){if(_0x404cdf[_0x439e('0xa3')](_0xb61195=>_0x57f742[_0x439e('0x153')](_0x419e4d=>_0x419e4d['containsRange'](_0xb61195,!0x0))))return _0x4825e0;}(!_0x4825e0[_0x439e('0x167')]||!_0x4825e0[_0x439e('0x167')][_0x439e('0x9a')])&&(_0x57f742[_0x439e('0xa3')](_0x9890d=>_0x404cdf[_0x439e('0x153')](_0x39eec0=>_0x39eec0[_0x439e('0xcc')](_0x9890d,!0x0)))&&_0x4825e0[_0x439e('0x4e')]());}const _0x1746d5=_0x1990b4(),_0x4b59f1=_0x47ba67['id'],_0x434bba=_0x439e('0x112')+_0x464f92,_0x2c1e06=this[_0x439e('0x126')]({'id':_0x1746d5,'type':_0x434bba,'createdAt':new Date(),'authorId':_0x4b59f1,'attributes':_0x41b464});for(const _0xc1bcc8 of _0x404cdf)_0xc1bcc8[_0x439e('0x113')](),_0xc1bcc8[_0x439e('0x41')]||'$graveyard'==_0xc1bcc8[_0x439e('0x162')]['rootName']||this['_addSuggestionMarker'](_0x434bba,_0x1746d5,_0x4b59f1,_0xc1bcc8,_0x5b5191[_0x439e('0x31')]());return _0x2c1e06;}[_0x439e('0xf0')](_0x46ff33,_0x204f30,_0x529f31,_0x1f06a0,_0x5d680b){if(_0x46ff33[_0x439e('0x41')])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc57bb0=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe'))['me']['id'],_0x390db2=Array[_0x439e('0xe4')](this[_0x439e('0x17f')]['values']())[_0x439e('0x13e')](_0x2aeb55=>_0x439e('0x55')==_0x2aeb55[_0x439e('0x89')]&&_0x2aeb55[_0x439e('0x181')][_0x439e('0x23')]==_0x204f30&&_0x2aeb55[_0x439e('0x44')](_0x46ff33));if(_0x439e('0x2')===this[_0x439e('0x94')]){const _0x2ea816=this[_0x439e('0xef')](_0x46ff33,'insertion')[_0x439e('0x13e')](({meta:_0x2412fb})=>_0x2412fb[_0x439e('0x21')]&&!_0x2412fb[_0x439e('0x110')]&&!_0x2412fb[_0x439e('0x108')])['map'](({suggestion:_0x2dd3bc})=>_0x2dd3bc);_0x390db2[_0x439e('0x143')](..._0x2ea816);}const _0x160ef9=new Map([[_0x46ff33,_0x529f31]]);for(const _0x2ec390 of _0x390db2){const _0x5b277d=_0x439e('0x55')==_0x2ec390[_0x439e('0x89')]?_0x2ec390[_0x439e('0x181')][_0x439e('0x9e')]:void 0x0,_0x1368af=_0x2ec390[_0x439e('0xf5')](),_0x291c53=Array[_0x439e('0xe4')](_0x160ef9[_0x439e('0x5d')]())[_0x439e('0xd5')](_0x2c5551=>_0x2c5551['isIntersecting'](_0x1368af));_0x291c53&&(_0x160ef9[_0x439e('0x5')](_0x291c53),_0x291c53[_0x439e('0xa9')](_0x1368af)[_0x439e('0x17a')](_0xcfc9d6=>{_0x160ef9[_0x439e('0x66')](_0xcfc9d6,_0x529f31);}),'insertion'!=_0x2ec390['type']&&_0x5b277d!=_0x1f06a0&&_0x160ef9[_0x439e('0x66')](_0x291c53[_0x439e('0x84')](_0x1368af),_0x5b277d));}const _0x5649c9=[];for(const [_0x24a14,_0x28c0ec]of _0x160ef9){const _0x542350=_0x1990b4(),_0x408fe9={'key':_0x204f30,'oldValue':_0x28c0ec,'newValue':_0x1f06a0};_0x204f30[_0x439e('0x65')]>0x25&&console[_0x439e('0x10d')](_0x439e('0xea'),{'key':_0x204f30});const _0x3b5349=('attribute:'+(_0x204f30+'|'+Rt({'newValue':_0x1f06a0})))[_0x439e('0x69')](0x0,0x3c),_0x130cf1=this[_0x439e('0x126')]({'id':_0x542350,'type':_0x3b5349,'data':_0x408fe9,'createdAt':new Date(),'authorId':_0xc57bb0,'attributes':_0x5d680b});_0x5649c9['push'](_0x130cf1),this[_0x439e('0x36')](_0x3b5349,_0x542350,_0xc57bb0,_0x24a14);}return _0x5649c9;}[_0x439e('0x18')](_0x5925d3){this['_blockAttributeKeys'][_0x439e('0x61')](_0x5925d3);}[_0x439e('0x172')](_0x52e065){this[_0x439e('0x115')][_0x439e('0x61')](_0x52e065);}[_0x439e('0xe0')](_0x38e0af,_0x4074b5=[],_0x460c5b=[]){this['enableCommand'](_0x38e0af,(_0x374d98,..._0x166422)=>{this['_recordAttributeChanges'](()=>{_0x374d98(..._0x166422);});});for(const _0xd2c3e2 of _0x4074b5)this[_0x439e('0x172')](_0xd2c3e2);for(const _0x82ad5d of _0x460c5b)this['_registerBlockAttribute'](_0x82ad5d);}[_0x439e('0xd9')](_0x1b5e79,_0x3049bd){const _0x2ef680=_0x1b5e79['getFirstMarker']();this[_0x439e('0x29')]['change'](_0x18760b=>{_0x18760b[_0x439e('0x1b')](_0x2ef680,{'range':_0x3049bd});});}[_0x439e('0x0')](_0x40beeb){const _0x33657a=_0x40beeb['id'],_0x5ebfd7=this[_0x439e('0xce')]['config']['get'](_0x439e('0x152'));this[_0x439e('0x16a')][_0x439e('0x13f')](_0x33657a)||this[_0x439e('0x16a')][_0x439e('0x161')]({'channelId':_0x5ebfd7,'threadId':_0x33657a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x451071=this[_0x439e('0x16a')][_0x439e('0x3e')](_0x33657a);_0x451071[_0x439e('0x5f')](_0x439e('0x73')),_0x451071[_0x439e('0x73')]=!0x1,_0x40beeb[_0x439e('0x173')]=_0x451071;}['_checkSuggestionCorrectness'](_0x5f080a,_0x353a28,_0xe7049f,_0x35015f){if(_0x5f080a[_0x439e('0x89')]!=_0x353a28||_0x5f080a[_0x439e('0xc8')]!=_0xe7049f||_0x5f080a[_0x439e('0x33')]['id']!=_0x35015f)throw this[_0x439e('0xce')][_0x439e('0x57')](_0x439e('0x156')),new _0x316ab1(_0x439e('0x156'),this);}[_0x439e('0x82')](_0x5732b3,_0x5f3dae){const _0x3b4cbf=_0x5732b3[_0x439e('0xf5')]();if(_0x5f3dae[_0x439e('0x12e')](_0x3b4cbf))_0x5732b3[_0x439e('0x171')]();else{if(_0x3b4cbf['containsRange'](_0x5f3dae)){const _0x42808a=this[_0x439e('0x29')]['createPositionAt'](_0x5f3dae[_0x439e('0x9')]['nodeBefore'],_0x439e('0xb5'));this[_0x439e('0xd9')](_0x5732b3,this[_0x439e('0x29')]['createRange'](_0x3b4cbf['start'],_0x42808a));const _0x455a43=_0x1990b4(),_0x89102=_0x5732b3[_0x439e('0x33')]['id'],_0x97d361=_0x5732b3[_0x439e('0x89')]+':'+_0x5732b3[_0x439e('0xc8')];this['_setSuggestionData']({'id':_0x455a43,'type':_0x97d361,'createdAt':new Date(),'authorId':_0x89102,'data':_0x5732b3[_0x439e('0x181')],'attributes':_0x5732b3[_0x439e('0x167')]});const _0xb1fa50=this['_model']['createPositionAt'](_0x5f3dae[_0x439e('0xb5')][_0x439e('0x9d')],_0x439e('0xc')),_0x5c83bd=this[_0x439e('0x29')][_0x439e('0xf4')](_0xb1fa50,_0x3b4cbf[_0x439e('0xb5')]);this[_0x439e('0x36')](_0x97d361,_0x455a43,_0x89102,_0x5c83bd);}else{if(_0x3b4cbf[_0x439e('0x22')](_0x5f3dae[_0x439e('0x9')])){const _0x1469ff=this[_0x439e('0x29')][_0x439e('0x10')](_0x5f3dae[_0x439e('0x9')][_0x439e('0x11c')],_0x439e('0xb5'));this[_0x439e('0xd9')](_0x5732b3,this[_0x439e('0x29')][_0x439e('0xf4')](_0x3b4cbf[_0x439e('0x9')],_0x1469ff));}else{const _0xb0e1e6=this['_model'][_0x439e('0x10')](_0x5f3dae[_0x439e('0xb5')][_0x439e('0x9d')],'after');this[_0x439e('0xd9')](_0x5732b3,this['_model']['createRange'](_0xb0e1e6,_0x3b4cbf[_0x439e('0xb5')]));}}}}[_0x439e('0xd3')](_0x35855a){for(const {suggestion:_0x5171bf,meta:_0x43f620}of this[_0x439e('0xef')](_0x35855a,_0x439e('0xad'))){if(!_0x43f620[_0x439e('0x21')])continue;const _0x580632=_0x5171bf[_0x439e('0xca')]();for(const _0x54d592 of _0x580632)if(!_0x35855a[_0x439e('0xa9')](_0x54d592)[_0x439e('0x65')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x520c5d){const _0x3b0920=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe'))[_0x439e('0xf3')](_0x520c5d);if(!_0x3b0920)throw new _0x316ab1('track-changes-user-not-found',this);return _0x3b0920;}[_0x439e('0x3a')](_0x57f6b3){const _0x23e71a=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe')),_0x191237=_0xf5555(_0x439e('0x12c')+_0x57f6b3),_0x511eb7=_0x23e71a['getUser'](_0x191237);return _0x511eb7||_0x23e71a[_0x439e('0x56')]({'id':_0x191237,'name':_0x57f6b3});}['_createSuggestion'](_0x1b7497,_0x42b070,_0x266348,_0x18bd98,_0x37555c){const _0x3ef560=this[_0x439e('0x150')](_0x18bd98),_0x16aeb1=this['_suggestionFactory'][_0x439e('0x15')](_0x1b7497,_0x42b070,_0x266348,_0x3ef560,_0x37555c,_0x3c89d8=>this[_0x439e('0xed')](_0x266348,{'attributes':_0x3c89d8}));return this[_0x439e('0x24')](_0x16aeb1,_0x439e('0x168'),()=>{this[_0x439e('0xed')](_0x266348,{'state':'accepted'});},{'priority':_0x439e('0x124')}),this[_0x439e('0x24')](_0x16aeb1,_0x439e('0x4e'),()=>{this[_0x439e('0xed')](_0x266348,{'state':_0x439e('0xb')});},{'priority':_0x439e('0x124')}),this[_0x439e('0x17f')][_0x439e('0x66')](_0x266348,_0x16aeb1),this[_0x439e('0x132')][_0x439e('0x66')](_0x16aeb1,_0x439e('0xe')),_0x16aeb1;}[_0x439e('0x180')](_0x5af011){const _0x253eaf=_0x5af011[_0x439e('0x88')](':');return{'group':_0x253eaf[0x0],'type':_0x253eaf[0x1],'subType':_0x253eaf['length']>=0x5?_0x253eaf[0x2]:null,'id':_0x253eaf['length']<0x5?_0x253eaf[0x2]:_0x253eaf[0x3],'authorId':_0x253eaf[_0x439e('0x65')]<0x5?_0x253eaf[0x3]:_0x253eaf[0x4],'markerCount':0x6==_0x253eaf[_0x439e('0x65')]?_0x253eaf[0x5]:null};}[_0x439e('0x164')](_0x13ef03,_0xedfb72,_0x41bafa){const _0x963091=_0x13ef03[_0x439e('0xf5')](),_0x48e50a=_0x963091[_0x439e('0x9')],_0x55a3a6=_0x963091['end'];this[_0x439e('0xd9')](_0x13ef03,this[_0x439e('0x29')][_0x439e('0xf4')](_0x48e50a,_0xedfb72));const _0x3df39b=_0x1990b4(),_0x4e1a06=_0x13ef03[_0x439e('0x33')]['id'],_0x82b40=_0x13ef03['type']+(_0x13ef03[_0x439e('0xc8')]?':'+_0x13ef03[_0x439e('0xc8')]:'');this['_setSuggestionData']({'id':_0x3df39b,'type':_0x82b40,'createdAt':new Date(),'authorId':_0x4e1a06,'originalSuggestionId':_0x13ef03['id'],'attributes':_0x13ef03[_0x439e('0x167')],'data':_0x13ef03[_0x439e('0x181')]});const _0x596795=this[_0x439e('0xd')](_0x13ef03);(_0x439e('0x12d')==_0x13ef03['type']||_0x596795&&this[_0x439e('0xcb')](_0x596795))&&(_0x41bafa=this[_0x439e('0x29')][_0x439e('0x95')](_0x41bafa[_0x439e('0x9d')])),this[_0x439e('0x36')](_0x82b40,_0x3df39b,_0x4e1a06,this['_model'][_0x439e('0xf4')](_0x41bafa,_0x55a3a6));}[_0x439e('0xef')](_0x15ec08,_0x4aad48=null){const _0x32759f=[],_0x4bd7d5=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'];Array['isArray'](_0x15ec08)||(_0x15ec08=[_0x15ec08]);for(const _0x13b926 of this['getSuggestions']()){if(!_0x13b926['isInContent'])continue;if(_0x4aad48&&_0x13b926[_0x439e('0x89')]!=_0x4aad48)continue;let _0x3dce60=!0x1;for(const _0x5d8f29 of _0x13b926[_0x439e('0xca')]()){for(const _0x37a3ad of _0x15ec08){const _0x31443c=_0x37a3ad['start'][_0x439e('0x12e')](_0x5d8f29[_0x439e('0xb5')])||_0x37a3ad[_0x439e('0xb5')][_0x439e('0x12e')](_0x5d8f29[_0x439e('0x9')]);if(_0x31443c||_0x37a3ad[_0x439e('0x84')](_0x5d8f29)){const _0x3324e4=_0x37a3ad[_0x439e('0xcc')](_0x5d8f29)&&Tt(this[_0x439e('0x29')][_0x439e('0x7d')],_0x5d8f29[_0x439e('0x9')],_0x37a3ad),_0x5660a0=_0x5d8f29[_0x439e('0xcc')](_0x37a3ad)&&Tt(this[_0x439e('0x29')][_0x439e('0x7d')],_0x37a3ad[_0x439e('0x9')],_0x5d8f29);_0x32759f[_0x439e('0x14c')]({'suggestion':_0x13b926,'meta':{'isOwn':_0x4bd7d5==_0x13b926['author'],'isNextTo':_0x31443c,'isInsideObject':_0x3324e4,'containsRangeInObject':_0x5660a0}}),_0x3dce60=!0x0;break;}}if(_0x3dce60)break;}}return _0x32759f;}[_0x439e('0x36')](_0x3148ed,_0x320d6b,_0x5090e6,_0x1b04bb,_0x3ac91d){this[_0x439e('0x29')][_0x439e('0xd6')](_0x253520=>{let _0x51c873='suggestion:'+_0x3148ed+':'+_0x320d6b+':'+_0x5090e6;_0x3ac91d&&(_0x51c873=_0x51c873+':'+_0x3ac91d),_0x253520[_0x439e('0x86')](_0x51c873,{'range':_0x1b04bb,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x439e('0x151')](_0x42971b){const _0x3897ed=_0x42971b[_0x439e('0xf6')],_0x2aeeae=_0x42971b[_0x439e('0xd7')];_0x42971b[_0x439e('0xf6')]=null,_0x42971b[_0x439e('0xd7')]=null,null!=_0x3897ed&&(_0x3897ed['next']=_0x2aeeae),null!=_0x2aeeae&&(_0x2aeeae['previous']=_0x3897ed),_0x439e('0x13b')==this[_0x439e('0x132')]['get'](_0x42971b)&&(this[_0x439e('0x132')][_0x439e('0x66')](_0x42971b,_0x439e('0x163')),this[_0x439e('0x42')](_0x439e('0x11b'),_0x42971b,_0x3897ed,_0x2aeeae));}[_0x439e('0x126')](_0x54f73d){const _0x21bffd=_0x54f73d['id'],_0x1a0cc4=this[_0x439e('0x10b')](_0x54f73d);if(this[_0x439e('0x53')]&&this['_adapter'][_0x439e('0x8c')]){const _0x151547=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0x38')),_0x130255=_0x1a0cc4[_0x439e('0x4b')],_0x3e1509=_0x1a0cc4[_0x439e('0xc8')]?_0x1a0cc4[_0x439e('0x89')]+':'+_0x1a0cc4[_0x439e('0xc8')]:_0x1a0cc4[_0x439e('0x89')],_0x338ea2=this[_0x439e('0xce')][_0x439e('0x92')],_0x408ae3=_0x151547[_0x439e('0x61')](_0x1027b4(_0x338ea2,_0x439e('0x14b'))),_0x11890f={'id':_0x21bffd,'type':_0x3e1509,'hasComments':_0x130255,'data':_0x54f73d['data']||null,'originalSuggestionId':_0x54f73d[_0x439e('0xfc')]||null,'attributes':_0x1a0cc4[_0x439e('0x167')]};this[_0x439e('0x53')][_0x439e('0x8c')](_0x11890f)[_0x439e('0x175')](_0x7efeb9=>{_0x1a0cc4[_0x439e('0xff')]=!0x0,_0x151547[_0x439e('0x14e')](_0x408ae3),_0x7efeb9&&_0x7efeb9[_0x439e('0xb7')]&&(this[_0x439e('0x17f')]['get'](_0x21bffd)['createdAt']=_0x7efeb9[_0x439e('0xb7')]);})[_0x439e('0xd8')](_0x332449=>{throw _0x189efa('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x439e('0xf8')][_0x439e('0x166')]({'isUndoable':!0x1},()=>{_0x1a0cc4[_0x439e('0x4e')]();}),_0x1a0cc4['stopListening'](),this[_0x439e('0x17f')][_0x439e('0x5')](_0x1a0cc4['id']),this['_suggestionState'][_0x439e('0x5')](_0x1a0cc4),_0x332449;});}return _0x1a0cc4;}[_0x439e('0xcb')](_0x7baf0d){return this[_0x439e('0x1a')]['has'](_0x7baf0d);}['_getAttributeKeyFromSubType'](_0x463cba){return _0x439e('0x55')==_0x463cba[_0x439e('0x89')]&&_0x463cba[_0x439e('0xc8')]['split']('|')[0x0];}['_updateSuggestionData'](_0x34de02,_0x2dc190){const _0x571397=this[_0x439e('0xce')]['plugins'][_0x439e('0x16')](_0x439e('0x38')),_0x21e75d=this[_0x439e('0x10c')](_0x34de02);if(this[_0x439e('0x53')]&&this['_adapter'][_0x439e('0x70')]){if(_0x21e75d[_0x439e('0xff')]){const _0x1e76e9=_0x571397[_0x439e('0x61')](_0x1027b4(this['editor'][_0x439e('0x92')],_0x439e('0x14b')));this[_0x439e('0x53')][_0x439e('0x70')](_0x34de02,_0x2dc190)[_0x439e('0x175')](()=>{_0x571397[_0x439e('0x14e')](_0x1e76e9);});}else _0x21e75d['on'](_0x439e('0x13a'),()=>{this[_0x439e('0xed')](_0x34de02,_0x2dc190);});}}['_getSuggestionData'](_0x458999){if(!this['_adapter']||!this[_0x439e('0x53')][_0x439e('0x10c')])throw new _0x316ab1(_0x439e('0x10f'),this);return this[_0x439e('0x53')]['getSuggestion'](_0x458999);}['_handleNewSuggestionMarker'](_0x544a1f){const {id:_0x1d11ee,type:_0x13acb9,subType:_0x21837d,authorId:_0x540e13}=this[_0x439e('0x180')](_0x544a1f),_0x1ae29e=this[_0x439e('0x17f')][_0x439e('0x16')](_0x1d11ee)||this[_0x439e('0x158')](_0x13acb9,_0x21837d,_0x1d11ee,_0x540e13,{});switch(this[_0x439e('0x1d')](_0x1ae29e,_0x13acb9,_0x21837d,_0x540e13),this[_0x439e('0x132')][_0x439e('0x16')](_0x1ae29e)){case'notReady':this[_0x439e('0xb3')](_0x1d11ee)[_0x439e('0x175')](_0x26db17=>{let _0x379135=Promise[_0x439e('0x13c')]();_0x26db17[_0x439e('0x4b')]&&(_0x379135=this[_0x439e('0x16a')][_0x439e('0x145')]({'channelId':this[_0x439e('0xce')]['config']['get'](_0x439e('0x152')),'threadId':_0x1d11ee})),_0x379135[_0x439e('0x175')](()=>{this[_0x439e('0x10b')](_0x26db17)[_0x439e('0xff')]=!0x0;});}),this[_0x439e('0x132')][_0x439e('0x66')](_0x1ae29e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d11ee,{'state':_0x439e('0x5c')});case _0x439e('0x177'):this['_suggestionState'][_0x439e('0x66')](_0x1ae29e,'ready'),this['fire'](_0x439e('0x141'),_0x1ae29e);break;case _0x439e('0x13b'):this[_0x439e('0x42')](_0x439e('0x12f'),_0x1ae29e);}return _0x1ae29e[_0x439e('0x27')](_0x544a1f),_0x1ae29e;}['_refreshSuggestionsChain'](_0x9315fa){const _0x181674=Array[_0x439e('0xe4')](_0x9315fa),_0x9e650=_0x181674['filter'](_0x5eeb91=>_0x439e('0x55')==_0x5eeb91[_0x439e('0x89')]);this['_refreshAttributeSuggestionsChain'](_0x9e650);const _0x4a80ea=_0x181674[_0x439e('0x13e')](_0xed3a95=>!_0xed3a95[_0x439e('0x12')]&&_0x439e('0x55')!=_0xed3a95['type']),_0x5efd89=this['getSuggestions']({'skipNotAttached':!0x0})[_0x439e('0x13e')](_0x40b571=>!_0x40b571[_0x439e('0x12')]&&_0x439e('0x55')!=_0x40b571['type']),_0x5ca9a7=_0x5efd89[_0x439e('0x13e')](_0x5aaca2=>!_0x9315fa['has'](_0x5aaca2)),_0x5602b0=new Map(_0x5efd89[_0x439e('0x15f')](_0x32b320=>[_0x32b320,this[_0x439e('0x16e')][_0x439e('0xc4')](_0x32b320[_0x439e('0x89')],_0x32b320[_0x439e('0xc8')],_0x439e('0x40'))])),_0x55973c=new Map(_0x5efd89[_0x439e('0x15f')](_0x4b153f=>[_0x4b153f,_0x4b153f[_0x439e('0xf5')]()])),_0x4afc4e=new Set(),_0x3e94b0=new Set();for(let _0x4794b0=0x0;_0x4794b0<_0x4a80ea['length'];_0x4794b0++)_0xb672a2(_0x4a80ea[_0x4794b0],_0x4a80ea,_0x4794b0+0x1);for(let _0x59a9de=0x0;_0x59a9de<_0x4a80ea[_0x439e('0x65')];_0x59a9de++)_0xb672a2(_0x4a80ea[_0x59a9de],_0x5ca9a7,0x0);const _0x27331c=new Set();for(let _0x48fe09=0x0;_0x48fe09<_0x4a80ea['length'];_0x48fe09++){const _0x4c7d7f=_0x4a80ea[_0x48fe09];!_0x3e94b0[_0x439e('0x32')](_0x4c7d7f)&&_0x4c7d7f[_0x439e('0xf6')]&&(_0x27331c[_0x439e('0x61')](_0x4c7d7f['previous']),_0x4c7d7f[_0x439e('0xf6')][_0x439e('0xd7')]===_0x4c7d7f&&(_0x4c7d7f[_0x439e('0xf6')][_0x439e('0xd7')]=null),_0x4c7d7f[_0x439e('0xf6')]=null),!_0x4afc4e['has'](_0x4c7d7f)&&_0x4c7d7f[_0x439e('0xd7')]&&(_0x27331c['add'](_0x4c7d7f[_0x439e('0xd7')]),_0x4c7d7f[_0x439e('0xd7')]['previous']===_0x4c7d7f&&(_0x4c7d7f['next'][_0x439e('0xf6')]=null),_0x4c7d7f[_0x439e('0xd7')]=null);}function _0xb672a2(_0x3d51dd,_0x2ac2ee,_0x373f05){for(let _0xf19ee2=_0x373f05;_0xf19ee2<_0x2ac2ee['length'];_0xf19ee2++){const _0x6f5fd5=_0x54f82a(_0x3d51dd,_0x2ac2ee[_0xf19ee2]);_0x6f5fd5&&(_0x6f5fd5[0x0][_0x439e('0xd7')]=_0x6f5fd5[0x1],_0x6f5fd5[0x1]['previous']=_0x6f5fd5[0x0],_0x4afc4e['add'](_0x6f5fd5[0x0]),_0x3e94b0[_0x439e('0x61')](_0x6f5fd5[0x1]));}}function _0x54f82a(_0x14171e,_0x5b6fdd){if(_0x14171e[_0x439e('0x16c')]['id']!==_0x5b6fdd[_0x439e('0x16c')]['id'])return null;const _0x38c340=_0x5602b0[_0x439e('0x16')](_0x14171e)(_0x14171e,_0x5b6fdd,_0x55973c['get'](_0x14171e),_0x55973c[_0x439e('0x16')](_0x5b6fdd));if(!_0x38c340)return null;return _0x5602b0[_0x439e('0x16')](_0x5b6fdd)(_0x14171e,_0x5b6fdd,_0x55973c[_0x439e('0x16')](_0x14171e),_0x55973c[_0x439e('0x16')](_0x5b6fdd))?_0x38c340[0x1][_0x439e('0x173')]&&_0x38c340[0x1][_0x439e('0x173')][_0x439e('0x65')]?null:_0x38c340:null;}_0x27331c[_0x439e('0x15b')]&&this[_0x439e('0x6f')](_0x27331c);}[_0x439e('0x4')](_0x4f38f9){if(0x0==_0x4f38f9[_0x439e('0x65')])return;const _0x5eebc6=this[_0x439e('0x102')]({'skipNotAttached':!0x0})[_0x439e('0x13e')](_0x42f822=>_0x439e('0x55')==_0x42f822[_0x439e('0x89')]&&_0x42f822['_isDataLoaded']),_0x12d6c5=[],_0x240d47=new Map();for(const _0x455926 of _0x5eebc6){const _0x2af183=_0xf5555(_0x455926[_0x439e('0x167')]);_0x240d47[_0x439e('0x32')](_0x2af183)||(_0x240d47[_0x439e('0x66')](_0x2af183,_0x12d6c5['length']),_0x12d6c5['push']([]));const _0x3ea60c=_0x240d47[_0x439e('0x16')](_0x2af183);_0x12d6c5[_0x3ea60c]['push'](_0x455926);}!function(){_0x12d6c5[_0x439e('0xa5')]((_0x59ca70,_0x51b74e)=>{const _0x1e648d=_0x59ca70[0x0]['createdAt'],_0x3b8618=_0x51b74e[0x0]['createdAt'];return _0x1e648d==_0x3b8618?_0x59ca70[0x0][_0x439e('0x167')]['groupId']<_0x51b74e[0x0][_0x439e('0x167')]['groupId']?-0x1:0x1:_0x1e648d<_0x3b8618?-0x1:0x1;});for(const _0x577ca6 of _0x12d6c5)_0x577ca6['sort']((_0x235eff,_0x137e0d)=>_0x235eff['id']<_0x137e0d['id']?-0x1:0x1);}();for(let _0x4d56c6=0x0;_0x4d56c6<_0x12d6c5['length'];_0x4d56c6++){if(0x0==_0x12d6c5[_0x4d56c6][_0x439e('0x65')])continue;const _0x273924=[];for(let _0x4805cc=_0x4d56c6+0x1;_0x4805cc<_0x12d6c5['length'];_0x4805cc++)0x0!=_0x12d6c5[_0x4805cc][_0x439e('0x65')]&&_0x2974b0(_0x12d6c5[_0x4d56c6],_0x12d6c5[_0x4805cc])&&_0x273924[_0x439e('0x14c')](_0x4805cc);for(const _0x4c6d9b of _0x273924)_0x12d6c5[_0x4d56c6]=_0x12d6c5[_0x4d56c6][_0x439e('0x5b')](_0x12d6c5[_0x4c6d9b]),_0x12d6c5[_0x4c6d9b]=[];}for(const _0x3d718d of _0x12d6c5)for(let _0x299260=0x0;_0x299260<_0x3d718d['length'];_0x299260++)_0x3d718d[_0x299260][_0x439e('0xd7')]=_0x3d718d[_0x299260+0x1]||null;for(const _0x387b7f of _0x12d6c5)for(let _0x45631=0x0;_0x45631<_0x387b7f[_0x439e('0x65')];_0x45631++)_0x387b7f[_0x45631]['previous']=_0x387b7f[_0x45631-0x1]||null;function _0x2974b0(_0x3e1d06,_0xb4378a){if(_0x3e1d06[0x0]['author']!==_0xb4378a[0x0][_0x439e('0x16c')])return!0x1;if(!function(_0x406d2a,_0xf0aec7){if(!_0x406d2a[_0x439e('0x4b')]&&!_0xf0aec7[_0x439e('0x4b')])return!0x0;if(_0x406d2a[_0x439e('0x4b')]&&_0xf0aec7['hasComments'])return!0x1;if(_0x406d2a['hasComments']&&_0xf0aec7['createdAt']<_0x406d2a['commentThread'][_0x439e('0x144')]['get'](0x0)['createdAt'])return!0x0;if(_0xf0aec7['hasComments']&&_0x406d2a[_0x439e('0xb7')]<_0xf0aec7[_0x439e('0x173')][_0x439e('0x144')][_0x439e('0x16')](0x0)[_0x439e('0xb7')])return!0x0;return!0x1;}(_0x3e1d06[0x0],_0xb4378a[0x0]))return!0x1;const _0x2eac05=_0x2e307b(_0x3e1d06[0x0][_0x439e('0x167')],_0x439e('0xbd')),_0x58633d=_0x2e307b(_0xb4378a[0x0][_0x439e('0x167')],_0x439e('0xbd'));if(!_0x42d7a6(_0x2eac05,_0x58633d))return!0x1;return!!_0x3e1d06[_0x439e('0xa3')](_0x12a54e=>_0xb4378a[_0x439e('0x153')](_0x2f9ca7=>_0x12a54e[_0x439e('0xf5')]()['isEqual'](_0x2f9ca7['getFirstRange']())))&&_0xb4378a[_0x439e('0xa3')](_0x440892=>_0x3e1d06[_0x439e('0x153')](_0x5a7164=>_0x440892['getFirstRange']()['isEqual'](_0x5a7164['getFirstRange']())));}}[_0x439e('0xbf')](_0xf5df91){const _0x47971c=Array[_0x439e('0xe4')](_0xf5df91),_0x597677=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4efa0e=_0x597677['filter'](_0x16d7e2=>!_0xf5df91[_0x439e('0x32')](_0x16d7e2)),_0x265b6c=new Map(_0x47971c['map'](_0x3073a9=>[_0x3073a9,this['_suggestionFactory'][_0x439e('0xc4')](_0x3073a9[_0x439e('0x89')],_0x3073a9[_0x439e('0xc8')],'join')])),_0x5d915f=new Map(_0x597677['map'](_0x25ac10=>[_0x25ac10,_0x25ac10[_0x439e('0xca')]()]));for(let _0x589b2f=0x0;_0x589b2f<_0x47971c[_0x439e('0x65')];_0x589b2f++){if(_0x7ef5ca(this,_0x47971c[_0x589b2f],_0x47971c,_0x589b2f+0x1))return!0x0;}for(let _0x46feb=0x0;_0x46feb<_0x47971c[_0x439e('0x65')];_0x46feb++){if(_0x7ef5ca(this,_0x47971c[_0x46feb],_0x4efa0e,0x0))return!0x0;}return!0x1;function _0x7ef5ca(_0x4a4915,_0x28ac73,_0x381865,_0x126a05){for(let _0x46436e=_0x126a05;_0x46436e<_0x381865[_0x439e('0x65')];_0x46436e++){const _0x2d735f=_0x381865[_0x46436e];if(_0x2d735f[_0x439e('0x89')]!==_0x28ac73['type']||_0x2d735f['author']['id']!==_0x28ac73[_0x439e('0x16c')]['id']||_0x2d735f['subType']!==_0x28ac73[_0x439e('0xc8')])continue;if(!Vt(_0x28ac73,_0x2d735f))continue;if(_0x439e('0x55')==_0x28ac73[_0x439e('0x89')]&&_0x28ac73[_0x439e('0x181')][_0x439e('0x9e')]!=_0x2d735f[_0x439e('0x181')][_0x439e('0x9e')])continue;if(_0x439e('0x55')==_0x28ac73['type']&&_0x4a4915[_0x439e('0xcb')](_0x28ac73[_0x439e('0x181')][_0x439e('0x23')]))continue;const _0x4f7c60=_0x265b6c[_0x439e('0x16')](_0x28ac73),_0x42a8e8=_0x5d915f['get'](_0x28ac73),_0x39978a=_0x5d915f[_0x439e('0x16')](_0x2d735f),_0x3f5a1d=_0x28ac73['commentThread']&&_0x28ac73[_0x439e('0x173')]['length'],_0x4dbee6=_0x2d735f[_0x439e('0x173')]&&_0x2d735f[_0x439e('0x173')][_0x439e('0x65')];if(!_0x3f5a1d&&_0x4f7c60(_0x39978a,_0x42a8e8))return _0x4a4915[_0x439e('0x87')](_0x2d735f,_0x28ac73),_0x5d915f['delete'](_0x28ac73),!0x0;if(!_0x4dbee6&&_0x4f7c60(_0x42a8e8,_0x39978a))return _0x4a4915[_0x439e('0x87')](_0x28ac73,_0x2d735f),_0x5d915f['delete'](_0x2d735f),!0x0;}return!0x1;}}[_0x439e('0x87')](_0x35b6e1,_0x5ca312){if(_0x35b6e1[_0x439e('0x12')])for(const _0x7a41b of _0x5ca312[_0x439e('0xca')]())_0x35b6e1[_0x439e('0x176')](_0x7a41b);else{const _0x2767c=_0x5ca312['getFirstRange']()['end'];this['_setSuggestionRange'](_0x35b6e1,this[_0x439e('0x29')][_0x439e('0xf4')](_0x35b6e1['getFirstRange']()[_0x439e('0x9')],_0x2767c));}_0x5ca312['removeMarkers']();}[_0x439e('0x11f')](_0x581459,_0x74de6d){const _0x232817=_0x581459[_0x439e('0x15a')](_0x439e('0x60'))||_0x581459['startsWith'](_0x439e('0x55'))?_0x439e('0x13'):_0x581459[_0x439e('0x146')]();return _0x1027b4(this['editor'][_0x439e('0x92')],_0x74de6d+'_'+_0x232817+'_SUGGESTION_ANNOUNCEMENT');}[_0x439e('0xb6')](){const _0x3e9fb7=this[_0x439e('0xce')];_0x56de40(this[_0x439e('0x29')],({left:_0x744e28,entered:_0x12dec2})=>{const _0x44f12e=[];for(const _0x48b5d5 of _0x744e28){const {group:_0x5ead15,type:_0x138e20}=this[_0x439e('0x180')](_0x48b5d5['name']);if('suggestion'===_0x5ead15){_0x44f12e['push'](this[_0x439e('0x11f')](_0x138e20,'LEAVE'));break;}}for(const _0x56075c of _0x12dec2){const {group:_0x15eacf,type:_0x3eadf4}=this['_splitMarkerName'](_0x56075c[_0x439e('0x17b')]);if('suggestion'===_0x15eacf){_0x44f12e[_0x439e('0x14c')](this['_getMarkerAnnouncementText'](_0x3eadf4,_0x439e('0x133')));break;}}_0x44f12e[_0x439e('0x65')]&&_0x3e9fb7['ui'][_0x439e('0xbb')][_0x439e('0x142')](_0x439e('0x136'),_0x44f12e[_0x439e('0xdc')]('\x20'));});}[_0x439e('0xe9')](_0x1b1028){if(null!==this[_0x439e('0x109')])return!0x1;const _0x29ad8c=this[_0x439e('0xce')],_0x2243be=_0x29ad8c[_0x439e('0xf8')][_0x439e('0x7a')]['differ'][_0x439e('0x63')]();if(0x0==_0x2243be[_0x439e('0x65')])return!0x1;const _0x3c5c3d=[],_0xa93262=_0x2243be[_0x439e('0x13e')](_0x6ad1b3=>_0x439e('0x55')==_0x6ad1b3[_0x439e('0x89')]),_0x238c8c=_0x2243be[_0x439e('0x13e')](_0x42b362=>_0x439e('0x8d')==_0x42b362[_0x439e('0x89')]&&'$text'!=_0x42b362[_0x439e('0x17b')]),_0x15690c=_0x2243be[_0x439e('0x13e')](_0x36f824=>'remove'==_0x36f824[_0x439e('0x89')]&&_0x439e('0xa2')!=_0x36f824[_0x439e('0x17b')]);for(const _0x167ebb of _0xa93262)_0x3c5c3d[_0x439e('0x14c')]({'key':_0x167ebb[_0x439e('0x5e')],'newValue':_0x167ebb[_0x439e('0x85')],'oldValue':_0x167ebb[_0x439e('0xac')],'range':_0x157e2c(_0x167ebb[_0x439e('0xe8')])});for(const _0x59f89a of _0x238c8c){const _0x53106=_0x15690c[_0x439e('0xd5')](_0xcfa012=>_0xcfa012['position']['isEqual'](_0x59f89a[_0x439e('0x35')]));_0x53106&&_0x3c5c3d[_0x439e('0x14c')]({'key':_0x439e('0xb8'),'newValue':_0x59f89a[_0x439e('0x17b')],'oldValue':_0x53106[_0x439e('0x17b')],'range':_0x29ad8c['model'][_0x439e('0x20')](_0x59f89a['position'][_0x439e('0x39')])});}return 0x0!=_0x3c5c3d['length']&&this[_0x439e('0x64')](_0x1b1028,_0x3c5c3d);function _0x157e2c(_0x1310aa){return null==_0x1310aa[_0x439e('0xb5')][_0x439e('0x11c')]&&_0x1310aa['end'][_0x439e('0x9d')]==_0x1310aa[_0x439e('0x9')][_0x439e('0x39')]?Ut(_0x1310aa['start'][_0x439e('0x39')],_0x29ad8c[_0x439e('0xf8')]):_0x1310aa;}}[_0x439e('0x59')](_0x44d5ff){let _0x3f0582=!0x1;const _0x2723bb=this[_0x439e('0xce')][_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x122')][_0x439e('0x6e')]()['filter'](_0x50dda3=>_0x50dda3[_0x439e('0x181')][_0x439e('0xe7')]&&_0x50dda3[_0x439e('0x17b')]['startsWith'](_0x439e('0x117')));for(const _0x4f0cf0 of _0x2723bb){const {subType:_0x1d539a,id:_0x2d5f91}=this[_0x439e('0x180')](_0x4f0cf0[_0x439e('0x17b')]),_0x288e24=_0x1d539a[_0x439e('0x88')]('|')[0x0];for(const _0x24c51a of this[_0x439e('0x102')]({'skipNotAttached':!0x0}))_0x24c51a['id']!=_0x2d5f91&&_0x439e('0x55')==_0x24c51a[_0x439e('0x89')]&&_0x24c51a[_0x439e('0x181')]&&_0x24c51a['data'][_0x439e('0x23')]==_0x288e24&&_0x24c51a[_0x439e('0xf5')]()[_0x439e('0x131')](_0x4f0cf0['data'][_0x439e('0xe7')])&&(this[_0x439e('0x30')](_0x24c51a,_0x4f0cf0[_0x439e('0x181')][_0x439e('0xe7')],_0x44d5ff),_0x3f0582=!0x0);}return _0x3f0582;}[_0x439e('0xf2')](_0x49c01d){if(null!==this[_0x439e('0x109')])return void _0x49c01d();const _0x3ee421=this[_0x439e('0xce')];this[_0x439e('0x109')]=_0x3ee421[_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x3c')],_0x49c01d();const _0x93589=new Map();for(const _0x47de51 of _0x3ee421[_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x6')][_0x439e('0x13d')](this[_0x439e('0x109')]))if([_0x439e('0x17e'),_0x439e('0x121'),_0x439e('0xfe'),_0x439e('0xda')][_0x439e('0x37')](_0x47de51[_0x439e('0x89')])){const _0x596634=_0x47de51[_0x439e('0xec')],_0x123cca=_0x93589[_0x439e('0x16')](_0x596634)||[];_0x123cca[_0x439e('0x14c')](_0x47de51),_0x93589[_0x439e('0x66')](_0x596634,_0x123cca);}this[_0x439e('0x109')]=null;for(const [_0x20cee6,_0x2c26a5]of _0x93589){const _0x2a88a7=_0x1990b4();_0x3ee421[_0x439e('0xf8')]['enqueueChange'](_0x20cee6,_0x416b1b=>{const _0x14501b=[];for(const _0x46558b of _0x2c26a5){let _0x35792d,_0x1f74d7,_0x1b239e,_0x30da6c;if(_0x439e('0x17e')==_0x46558b[_0x439e('0x89')]){const _0x5e1f05=_0x46558b;_0x35792d=Ut(_0x5e1f05[_0x439e('0x35')][_0x439e('0x39')],_0x3ee421[_0x439e('0xf8')]),_0x1f74d7=_0x439e('0xb8'),_0x1b239e=_0x5e1f05[_0x439e('0xe3')],_0x30da6c=_0x5e1f05['oldName'];}else{const _0x1bdf82=_0x46558b,_0x5d8cf9=this[_0x439e('0xcb')](_0x1bdf82['key']),_0x5c86e4=this[_0x439e('0x115')][_0x439e('0x32')](_0x1bdf82[_0x439e('0x23')]);if(!_0x5d8cf9&&!_0x5c86e4)continue;_0x35792d=_0x5d8cf9?Ut(_0x1bdf82[_0x439e('0xe8')]['start'][_0x439e('0x39')],_0x3ee421[_0x439e('0xf8')]):_0x1bdf82['range'],_0x1f74d7=_0x1bdf82[_0x439e('0x23')],_0x1b239e=_0x439e('0xfe')==_0x46558b[_0x439e('0x89')]?void 0x0:_0x1bdf82[_0x439e('0x98')],_0x30da6c=_0x1bdf82['oldValue'];}this[_0x439e('0xf0')](_0x35792d,_0x1f74d7,_0x30da6c,_0x1b239e,{'groupId':_0x2a88a7}),_0x14501b[_0x439e('0x14c')]({'range':_0x35792d,'key':_0x1f74d7,'newValue':_0x1b239e,'oldValue':_0x30da6c});}this[_0x439e('0x64')](_0x416b1b,_0x14501b);});}}[_0x439e('0x64')](_0x54dd30,_0x282a43){if(0x0==_0x282a43[_0x439e('0x65')])return!0x1;let _0x5e959c=!0x1;for(const _0x37774c of _0x282a43){const _0x241261=this[_0x439e('0xef')](_0x37774c[_0x439e('0xe8')],_0x439e('0x55'))[_0x439e('0x13e')](_0x10438e=>!_0x10438e[_0x439e('0x58')][_0x439e('0x108')])[_0x439e('0x15f')](_0x130623=>_0x130623[_0x439e('0x26')]),_0x27c5a9=_0xf5555({'newValue':_0x37774c[_0x439e('0x98')]});_0x241261['filter'](_0x23f0d5=>{const [_0x4e3b1d,_0x865120]=_0x23f0d5[_0x439e('0xc8')]['split']('|');return _0x4e3b1d==_0x37774c[_0x439e('0x23')]&&_0x865120!=_0x27c5a9;})[_0x439e('0x17a')](_0x21334f=>{this[_0x439e('0x30')](_0x21334f,_0x37774c['range'],_0x54dd30),_0x5e959c=!0x0;});}return _0x5e959c;}['_reduceSuggestionAttributeRange'](_0x375a29,_0x571cde,_0x269221){const _0x156267=_0x375a29[_0x439e('0xf5')]()['getDifference'](_0x571cde);0x0!==_0x156267['length']?0x1!==_0x156267[_0x439e('0x65')]?this[_0x439e('0x164')](_0x375a29,_0x571cde[_0x439e('0x9')],_0x571cde[_0x439e('0xb5')]):this[_0x439e('0xd9')](_0x375a29,_0x156267[0x0]):_0x269221[_0x439e('0x105')](_0x375a29[_0x439e('0xc3')]());}}class Bt{constructor(_0x3b6b58){this[_0x439e('0x71')]=_0x3b6b58,this['_model']=_0x3b6b58['model'],this[_0x439e('0xa6')]=new Map(),this[_0x439e('0x51')]=new Map(),this['_registerDefaultCallbacks']();}[_0x439e('0x15')](_0x733284,_0xd759f4,_0x1b921d,_0x58fcc1,_0x16a4c7,_0xe9ceea){return new _0x5b5191(this[_0x439e('0x29')],{'type':_0x733284,'subType':_0xd759f4,'id':_0x1b921d,'author':_0x58fcc1,'creator':_0x58fcc1,'attributes':_0x16a4c7,'onAttributesChange':_0xe9ceea,'onAccept':(..._0x1776cb)=>this['getSuggestionCallback'](_0x733284,_0xd759f4,'accept')(..._0x1776cb),'onDiscard':(..._0x22118f)=>this[_0x439e('0xc4')](_0x733284,_0xd759f4,_0x439e('0x4e'))(..._0x22118f)});}[_0x439e('0x154')](_0x478e2a,_0xf8d2aa,_0x5f3450,_0x5826af){const _0x20683d=_0x478e2a+':'+_0xf8d2aa+':'+_0x5f3450;this[_0x439e('0xa6')][_0x439e('0x66')](_0x20683d,_0x5826af);}['getSuggestionCallback'](_0x25b1c0,_0x49f2c2,_0x1930d2){const _0x2ea77d=_0x25b1c0+':'+_0x49f2c2+':'+_0x1930d2;return this['_customCallbacks'][_0x439e('0x16')](_0x2ea77d)||this['_defaultCallbacks'][_0x439e('0x16')](_0x25b1c0+':'+_0x1930d2);}[_0x439e('0xa')](){const _0x3fe1f2=()=>!0x1,_0x3c5434=_0x58f995=>{_0x58f995[_0x439e('0xa5')]((_0x1476fc,_0x144efe)=>_0x1476fc[_0x439e('0x9')][_0x439e('0x11a')](_0x144efe[_0x439e('0x9')])?0x1:-0x1),this['_model'][_0x439e('0xd6')](_0x5a3db5=>{for(const _0x395891 of _0x58f995){let _0x36372e;_0x36372e=_0x395891[_0x439e('0xb5')][_0x439e('0xb4')]&&_0x395891['end'][_0x439e('0x9d')]==_0x395891[_0x439e('0x9')][_0x439e('0x39')]?_0x5a3db5[_0x439e('0x1f')](_0x395891[_0x439e('0x9')][_0x439e('0x39')],'on'):_0x5a3db5['createSelection'](_0x395891),this['_model']['deleteContent'](_0x36372e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xfd33b8=(_0x32cacb,_0x448759)=>{_0x448759&&this['_model']['change'](_0x217ad1=>{const {commandName:_0x1da7d8,commandParams:_0x24f75e=[]}=_0x448759,_0x9301a7=_0x32cacb[_0x439e('0x15f')](_0x2c56e8=>(xt(_0x2c56e8)&&(_0x2c56e8=this['_model'][_0x439e('0xf4')](_0x2c56e8[_0x439e('0xb5')])),_0x2c56e8))[_0x439e('0x13e')](_0x44f795=>'$graveyard'!==_0x44f795[_0x439e('0x162')][_0x439e('0xf7')]);if(_0x9301a7['length']<0x1)return;const _0xb4331=Array[_0x439e('0xe4')](this['_model'][_0x439e('0x7a')][_0x439e('0x129')][_0x439e('0xca')]())['map'](_0x15f6c2=>_0x5d4469[_0x439e('0x114')](_0x15f6c2));_0x217ad1[_0x439e('0x7c')](_0x9301a7);for(const _0x13ab47 of this[_0x439e('0x71')][_0x439e('0x134')]['commands']())_0x13ab47['refresh']();_0x24f75e['push']({'forceDefaultExecution':!0x0}),this[_0x439e('0x71')][_0x439e('0x50')](_0x1da7d8,..._0x24f75e);const _0x20454d=_0xb4331['filter'](_0x44a35a=>_0x439e('0x2b')!=_0x44a35a['root']['rootName']);_0x20454d[_0x439e('0x65')]>0x0&&_0x217ad1[_0x439e('0x7c')](_0x20454d);for(const _0x1af951 of _0xb4331)_0x1af951[_0x439e('0x113')]();});},_0x50417d=(_0x2157b5,_0x3e9111)=>0x1==_0x2157b5[_0x439e('0x65')]&&0x1==_0x3e9111[_0x439e('0x65')]&&_0x2157b5[0x0][_0x439e('0xb5')][_0x439e('0x12e')](_0x3e9111[0x0][_0x439e('0x9')]),_0x11909b=(_0xec5420,_0x37eb7f,_0x5b47ec,_0x2bf9b3)=>Ot(_0xec5420,_0x37eb7f,_0x5b47ec,_0x2bf9b3,this[_0x439e('0x29')])?[_0xec5420,_0x37eb7f]:Ot(_0x37eb7f,_0xec5420,_0x2bf9b3,_0x5b47ec,this[_0x439e('0x29')])?[_0x37eb7f,_0xec5420]:null;this[_0x439e('0x51')][_0x439e('0x66')]('insertion:accept',_0x3fe1f2),this['_defaultCallbacks'][_0x439e('0x66')](_0x439e('0x83'),_0x3c5434),this[_0x439e('0x51')]['set'](_0x439e('0x91'),_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')]('insertion:chain',_0x11909b),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x49'),_0x3c5434),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x4f'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x125'),_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x120'),_0x11909b),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xc1'),_0xfd33b8),this[_0x439e('0x51')][_0x439e('0x66')]('formatInline:discard',_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xc9'),_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x1e'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x118'),_0xfd33b8),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x2e'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')]('formatBlock:join',_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xdf'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xba'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x68'),(_0xc3fe57,_0x2b9b08)=>{if(!_0x2b9b08)return;const _0x3ce1e6=this[_0x439e('0x71')][_0x439e('0x28')][_0x439e('0x16')](p);this[_0x439e('0x29')][_0x439e('0xd6')](_0x262837=>{if(_0x439e('0xb8')==_0x2b9b08[_0x439e('0x23')])for(const _0x127473 of _0xc3fe57){const _0x562e02=_0x127473[_0x439e('0x9')][_0x439e('0x39')],_0x34b92b=_0x2b9b08[_0x439e('0x9e')];_0x262837[_0x439e('0x17e')](_0x562e02,_0x34b92b);}else{if(_0x3ce1e6[_0x439e('0xcb')](_0x2b9b08['key']))for(const _0xda6cfd of _0xc3fe57)void 0x0!==_0x2b9b08[_0x439e('0x9e')]?_0x262837[_0x439e('0xee')](_0x2b9b08[_0x439e('0x23')],_0x2b9b08[_0x439e('0x9e')],_0xda6cfd[_0x439e('0x9')]['nodeAfter']):_0x262837[_0x439e('0xfe')](_0x2b9b08['key'],_0xda6cfd[_0x439e('0x9')]['nodeAfter']);else for(const _0x1447e of _0xc3fe57)_0x2b9b08[_0x439e('0x9e')]?_0x262837[_0x439e('0xee')](_0x2b9b08[_0x439e('0x23')],_0x2b9b08[_0x439e('0x9e')],_0x1447e):_0x262837['removeAttribute'](_0x2b9b08[_0x439e('0x23')],_0x1447e);}});}),this[_0x439e('0x51')]['set'](_0x439e('0x9b'),_0x50417d);}}function Tt(_0x1fff19,_0x625bd4,_0x5296fe){for(const _0x3c4fa9 of _0x625bd4['parent'][_0x439e('0xfa')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c4fa9[_0x439e('0x162')]==_0x3c4fa9)return!0x1;if(!_0x5296fe[_0x439e('0x116')](_0x3c4fa9))return!0x1;if(_0x1fff19['isObject'](_0x3c4fa9)||_0x1fff19[_0x439e('0x3b')](_0x3c4fa9))return!0x0;}return!0x1;}function xt(_0x1ffba0){return _0x1ffba0[_0x439e('0xb5')]['parent']==_0x1ffba0[_0x439e('0x9')][_0x439e('0x39')]&&_0x1ffba0[_0x439e('0xb5')][_0x439e('0x148')];}function Et(_0x19a469,_0x137c92,_0x466802,_0x3bce56){const _0x1af504=_0x4fc904=>!_0x4fc904[_0x439e('0xfd')]['is'](_0x439e('0x43'))&&!_0x3bce56[_0x439e('0x15c')](_0x4fc904[_0x439e('0xfd')]),_0x269049=_0x19a469[_0x439e('0x9')]['getLastMatchingPosition'](_0x1af504),_0x58cb7b=_0x19a469[_0x439e('0xb5')][_0x439e('0xd4')](_0x1af504,{'direction':_0x439e('0x11d')});return(!_0x19a469[_0x439e('0x9')][_0x439e('0x12e')](_0x269049)||!_0x19a469[_0x439e('0xb5')][_0x439e('0x12e')](_0x58cb7b))&&(_0x269049[_0x439e('0x11a')](_0x58cb7b)?_0x466802['updateMarker'](_0x137c92,{'range':_0x466802[_0x439e('0xf4')](_0x269049,_0x58cb7b)}):_0x466802[_0x439e('0x105')](_0x137c92),!0x0);}function Rt(_0x4c3866){return _0xf5555(_0x4c3866);}function jt(_0x1beb5f){const _0x46b554=_0x1beb5f[_0x439e('0x9')][_0x439e('0x39')];return _0x46b554&&_0x46b554['is'](_0x439e('0x1c'));}function Ut(_0x2c4116,_0x299515){const _0x593481=_0x299515['schema']['isObject'](_0x2c4116)||_0x299515[_0x439e('0x7d')]['isSelectable'](_0x2c4116);return _0x299515[_0x439e('0xf4')](_0x299515[_0x439e('0x10')](_0x2c4116,_0x439e('0x127')),_0x593481?_0x299515['createPositionAfter'](_0x2c4116):_0x299515[_0x439e('0x10')](_0x2c4116,_0x439e('0xb5')));}function Ot(_0x2ad377,_0x40c0e7,_0x25c207,_0x2e429c,_0x221d9a){if(!Vt(_0x2ad377,_0x40c0e7))return!0x1;if(_0x25c207['end']['isEqual'](_0x2e429c[_0x439e('0x9')]))return!0x0;if(_0x2ad377['type']!=_0x40c0e7[_0x439e('0x89')])return!0x1;if(!_0x25c207[_0x439e('0xb5')][_0x439e('0xc0')](_0x2e429c['start']))return!0x1;const _0x4841db=_0x221d9a[_0x439e('0xf4')](_0x25c207[_0x439e('0xb5')],_0x2e429c[_0x439e('0x9')])[_0x439e('0xf')]();for(const _0x3d5d1a of _0x4841db)if([_0x439e('0x25'),_0x439e('0x159')][_0x439e('0x37')](_0x3d5d1a[_0x439e('0x89')])&&_0x221d9a[_0x439e('0x7d')][_0x439e('0x3b')](_0x3d5d1a[_0x439e('0xfd')]))return!0x1;return!0x0;}function Vt(_0x26b52f,_0xe56fd0){return!(!_0x26b52f['_isDataLoaded']||!_0xe56fd0[_0x439e('0xa8')])&&_0x42d7a6(_0x26b52f[_0x439e('0x167')],_0xe56fd0[_0x439e('0x167')]);}function Ft(_0x434106,_0x1ab8e8){const _0x56e9d4=Gt(_0x434106['attributes']),_0x7fa22b=Gt(_0x1ab8e8);if(!_0x434106[_0x439e('0xa8')])return!0x1;for(const _0x363bea of Object['keys'](_0x7fa22b))if(!_0x42d7a6(_0x56e9d4[_0x363bea],_0x7fa22b[_0x363bea]))return!0x1;return!0x0;}function Gt(_0x2749e5){const _0x167466=Object[_0x439e('0x2d')]({},_0x2749e5);return delete _0x167466[_0x439e('0x9a')],delete _0x167466['tablePasteChainId'],_0x167466;}
|
package/src/trackchangesui.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/trackchangesui
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
10
|
-
import TrackChangesEditing from './trackchangesediting';
|
|
11
|
-
/**
|
|
12
|
-
* Provides UI for track changes plugin.
|
|
13
|
-
*
|
|
14
|
-
* This plugin displays {@link module:track-changes/suggestion~Suggestion suggestions} as a
|
|
15
|
-
* {@link module:comments/annotations/annotations~Annotations}.
|
|
16
|
-
*/
|
|
17
|
-
export default class TrackChangesUI extends Plugin {
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
static get requires(): readonly [typeof TrackChangesEditing, typeof Users, "CommentsRepository", "Annotations", "EditorAnnotations"];
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
static get pluginName(): "TrackChangesUI";
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
constructor(editor: Editor);
|
|
30
|
-
/**
|
|
31
|
-
* @inheritDoc
|
|
32
|
-
*/
|
|
33
|
-
init(): void;
|
|
34
|
-
/**
|
|
35
|
-
* @inheritDoc
|
|
36
|
-
*/
|
|
37
|
-
destroy(): void;
|
|
38
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/trackchangesui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
10
|
+
import TrackChangesEditing from './trackchangesediting';
|
|
11
|
+
/**
|
|
12
|
+
* Provides UI for track changes plugin.
|
|
13
|
+
*
|
|
14
|
+
* This plugin displays {@link module:track-changes/suggestion~Suggestion suggestions} as a
|
|
15
|
+
* {@link module:comments/annotations/annotations~Annotations}.
|
|
16
|
+
*/
|
|
17
|
+
export default class TrackChangesUI extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof TrackChangesEditing, typeof Users, "CommentsRepository", "Annotations", "EditorAnnotations"];
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "TrackChangesUI";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
constructor(editor: Editor);
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
init(): void;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
destroy(): void;
|
|
38
|
+
}
|