@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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/CHANGELOG.md +15 -15
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- 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 +78 -2
- package/lang/translations/az.po +77 -1
- package/lang/translations/bg.po +78 -2
- package/lang/translations/bn.po +78 -2
- package/lang/translations/ca.po +78 -2
- package/lang/translations/cs.po +78 -2
- package/lang/translations/da.po +78 -2
- package/lang/translations/de.po +78 -2
- package/lang/translations/el.po +78 -2
- package/lang/translations/en-au.po +78 -2
- package/lang/translations/en.po +78 -2
- package/lang/translations/es.po +78 -2
- package/lang/translations/et.po +78 -2
- package/lang/translations/fi.po +78 -2
- package/lang/translations/fr.po +78 -2
- package/lang/translations/gl.po +90 -14
- package/lang/translations/he.po +78 -2
- package/lang/translations/hi.po +78 -2
- package/lang/translations/hr.po +78 -2
- package/lang/translations/hu.po +78 -2
- package/lang/translations/id.po +78 -2
- package/lang/translations/it.po +78 -2
- package/lang/translations/ja.po +78 -2
- package/lang/translations/ko.po +78 -2
- package/lang/translations/lt.po +78 -2
- package/lang/translations/lv.po +78 -2
- package/lang/translations/ms.po +78 -2
- package/lang/translations/nl.po +78 -2
- package/lang/translations/no.po +78 -2
- package/lang/translations/pl.po +78 -2
- package/lang/translations/pt-br.po +96 -20
- package/lang/translations/pt.po +78 -2
- package/lang/translations/ro.po +78 -2
- package/lang/translations/ru.po +78 -2
- package/lang/translations/sk.po +78 -2
- package/lang/translations/sq.po +77 -1
- package/lang/translations/sr-latn.po +78 -2
- package/lang/translations/sr.po +78 -2
- package/lang/translations/sv.po +78 -2
- package/lang/translations/th.po +78 -2
- package/lang/translations/tk.po +77 -1
- package/lang/translations/tr.po +78 -2
- package/lang/translations/tt.po +77 -1
- package/lang/translations/uk.po +78 -2
- package/lang/translations/ur.po +77 -1
- package/lang/translations/vi.po +78 -2
- package/lang/translations/zh-cn.po +78 -2
- package/lang/translations/zh.po +78 -2
- 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 _0x3d2a=['isUndo','trackChangesCommand','some','stopListening','set','add','subType','execute','join','_setSuggestionRange','notReady','ariaLiveAnnouncer','_joinWithAdjacentSuggestions','change:activeMarkers','value','addCommentThread','getDifference','_SUGGESTION_ANNOUNCEMENT','discardSelectedSuggestions','options','insertion:','_customCallbacks','createPositionAfter','oldName','type','element','markerToData','formatBlock:accept','setAttribute','markInsertion','map','attribute','root','isSelectable','hasComments','rootName','unshift','showSuggestionHighlights','upcast','delete','_registerInlineAttribute','_recordAttributeChanges','differ','$marker','comments','rethrowUnexpectedError','author','data','formatBlock','markMultiRangeInsertion','track-changes-adapter-missing-getsuggestion','changeAttribute','writer','push','_inlineAttributeKeys','isCollapsed','consume','model','editingDowncast','plugins','trackChanges.trackFormatChanges','track-changes-command-not-found','createSelection','keys','data-suggestion','getAttribute','from','authorName','range','suggestion-type','formatBlock:chain','discardAllSuggestions','isRemovable','elementToElement','isObject','ck-suggestion-marker','_updateSuggestionData','unbindElementFromMarkerName','createRange','_getAuthorFromId','deletion:','rename','_handleNewSuggestionMarker','oldRange','move','creator','item','$elementName','insert','trackChanges.mergeNestedSuggestions','selection','formatBlock:join','document','deletion:accept','insertion:chain','default','markerName','isLocal','define','key','oldValue','listenTo','_suggestionFactory','discardSuggestion','_trackFormatChanges','change','createPositionAt','track-changes-user-not-found','getMarkers','containsRangeInObject','getNearestSelectionRange','fetchCommentThread','suggestion','mapper','next','getShiftedBy','start','_mergeNestedSuggestions','suggestion:attribute:','formatInline:discard','remove','announce','version','high','formatInline:','skipNestingCheck','FORMATTING','addClass','_blockAttributeKeys','$graveyard','Users','for','createPositionBefore','insertion','commandName','before','error-saving-suggestion-data-suggestion-discarded','CommentsRepository','$text','nodeBefore','_registerDefaultCallbacks','_commentsRepository','splice','_initAriaMarkerChangeAnnouncements','every','_processAttributeSuggestions','consumable','always','fromCharCode','_suggestions','_model','suggestionChanged','multipleBlocks','deletion','ck-suggestion-marker-','createRangeIn','normal','PENDING_ACTION_SUGGESTION','enableReadOnlyMode','isBefore','tablePasteChainId','lowest','track-changes-adapter-already-set','get','concat','markerToHighlight','conversion','elementStart','adapter','_isDataLoaded','ck-suggestion-marker--active','isEqual','$textProxy','pop','markAttributeChange','getIntersection','getChanges','setSelection','getChangedMarkers','removeAttribute','batch','_getSuggestionData','substring','splitPosition','_editor','_createSuggestion','formatGroupId','suggestion:','_processAttributeChanges','_suggestionState','updateSuggestion','_refreshAttributeSuggestionsChain','getRange','activeMarkers','addRange','markMultiRangeDeletion','isOwn','registerCustomCallback','startsWith','addMarker:suggestion:attribute','addSuggestion','rejected','isTouching','getAllAdjacentSuggestions','authoredAt','containsPosition','accept','_enableDefaultAttributesIntegration','addSuggestionData','originalSuggestionId','markInlineFormat','isBlock','_joinSuggestions','_removeSuggestion','substr','_enabledCommands','_splitMarkerName','length','forceDefaultExecution','getMultiRangeId','multi','newRange','_reduceSuggestionAttributeRange','_setSuggestionData','accepted','acceptSuggestion','_checkSuggestionCorrectness','group','insertion:accept','removeMarker:suggestion:attribute','_getMarkerAnnouncementText','collaboration.channelId','registerPostFixer','discard','name','getCustomProperty','containsItem','ready','previous','_breakSuggestionMarker','highest','fire','targetPosition','after','_recordAttributeSuggestionsFromVersion','history','includes','getWalker','enableCommand','formatBlock:discard','hasCommentThread','updateMarker','schema','commentThread','addMarker','ck-suggestion-marker-formatBlock','reconvertMarker','buildSuggestion','split','parent','has','containsRange','createdAt','PendingActions','TrackChangesEditing','track-changes-suggestion-data-mismatch','_reduceExistingSuggestions','getFirstMarker','toUpperCase','addAttribute','trackChanges','formatInline','deletion:join','getSuggestions','requires','low','acceptAllSuggestions','chain','addMarker:suggestion','getFirstRange','isExternal','find','markerReady','howMany','setTo','stop','return','_registerBlockAttribute','isInsideObject','forward','position','_addSuggestionMarker','isAtEnd','_cutOutSuggestionMarker','track-changes-enable-command-twice','dataReady','getRanges','commands','_addThreadToSuggestion','removeMarkers','meta','getItems','_isBlockAttribute','getLastMatchingPosition','suggestionLoaded','getContainedElement','moveTargetPosition','_isForcedDefaultExecutionBlock','acceptSelectedSuggestions','dataToMarker','insertion:join','LEAVE','_adapter','clone','attributes','_rangeIsInLocalUserInsertion','never','attributeNewValue','newValue','markers','update:suggestion','addComment','editor','applyOperation','addMarkerName','attributeOldValue','backward','getSuggestionCallback','sort','newName','filter','_refreshSuggestionsChain','nodeAfter','removeMarker','addHighlight','removed','markerNameToElements','attributeKey','isInContent','change:data','formatInline:accept','head','assign','@external','getUser','groupId','getSuggestion','refresh','formatBlock:','isAfter','end','isIntersecting','values','addMarker:suggestion:formatBlock','then','bindElementToMarker','config','clear','_getExternalAuthor','isLimit','forEach','init','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.','isNextTo','dataDowncast','isMultiRange','_findSuggestions','detach','locale','createRangeOn','toViewElement','isDocumentOperation','markDeletion','_saved','containerElement','_defaultCallbacks','marker-count','isAtStart'];(function(_0x3eb775,_0x3d2aef){const _0x24f21b=function(_0x2e6767){while(--_0x2e6767){_0x3eb775['push'](_0x3eb775['shift']());}};_0x24f21b(++_0x3d2aef);}(_0x3d2a,0x16b));const _0x24f2=function(_0x3eb775,_0x3d2aef){_0x3eb775=_0x3eb775-0x0;let _0x24f21b=_0x3d2a[_0x3eb775];return _0x24f21b;};import{Plugin as _0x357723,PendingActions as _0x4bdfad}from'ckeditor5/src/core';import{LiveRange as _0x353646}from'ckeditor5/src/engine';import{CKEditorError as _0x1937ba,uid as _0x4f0f07,priorities as _0x222b66,logWarning as _0x40d91e}from'ckeditor5/src/utils';import{toWidget as _0x1fcbde}from'ckeditor5/src/widget';import{Users as _0x98077b,hashObject as _0x232543,surroundingMarkersDetector as _0x492056}from'ckeditor5-collaboration/src/collaboration-core';import _0x2bfdb2 from'./commands/trackchangescommand';import _0x2a8fbb from'./commands/acceptsuggestioncommand';import _0x491c74 from'./commands/discardsuggestioncommand';import _0x547392 from'./commands/executeonallsuggestionscommand';import _0x13151f from'./commands/executeonselectedsuggestionscommand';import _0x897dd2 from'./suggestion';import _0x268df3 from'./suggestiondescriptionfactory';import _0x10ac8d from'./integrations/aiassistant';import _0x534c7c from'./integrations/alignment';import _0x4646e1 from'./integrations/basicstyles';import _0x28d659 from'./integrations/blockquote';import _0x171a31 from'./integrations/ckbox';import _0x2683ba from'./integrations/codeblock';import _0x16061c from'./integrations/comments';import _0x261a55 from'./integrations/deletecommand';import _0xdc7d3a from'./integrations/documentlist';import _0x34c47e from'./integrations/documentlistproperties';import _0x494961 from'./integrations/entercommand';import _0x688a2f from'./integrations/findandreplace';import _0x5667b0 from'./integrations/font';import _0xfbc7b9 from'./integrations/formatpainter';import _0x3b72ae from'./integrations/heading';import _0x184bd0 from'./integrations/highlight';import _0x387499 from'./integrations/horizontalline';import _0xfa4dcd from'./integrations/htmlembed';import _0x3bf7d7 from'./integrations/image';import _0x3aa902 from'./integrations/imagereplace';import _0x3ce75e from'./integrations/imagestyle';import _0x3d0d4f from'./integrations/importword';import _0x3d2af7 from'./integrations/indent';import _0x6ae1c4 from'./integrations/inputcommand';import _0x190643 from'./integrations/link';import _0x2a31bb from'./integrations/list';import _0x3fec6b from'./integrations/listproperties';import _0x744e7d from'./integrations/mediaembed';import _0x1de16c from'./integrations/mention';import _0x44510c from'./integrations/pagebreak';import _0x24dd38 from'./integrations/paragraph';import _0x561647 from'./integrations/removeformat';import _0x241604 from'./integrations/restrictededitingmode';import _0x43b96f from'./integrations/shiftentercommand';import _0xdfeb80 from'./integrations/standardeditingmode';import _0x701369 from'./integrations/style';import _0x8d2fc8 from'./integrations/table';import _0x2b2a5c from'./integrations/tablemergesplit';import _0x238db8 from'./integrations/tableheadings';import _0x2d1f31 from'./integrations/tableclipboard';import _0x31ff58 from'./integrations/tablecolumnresize';import _0x3c8e4e from'./integrations/template';import _0x300480 from'./integrations/tableofcontents';import _0x58f26c from'./integrations/title';import _0x36ea7d from'./integrations/undo';import _0x588a60 from'./integrations/tablecaption';import _0x4afdc0 from'./integrations/tableproperties';import{getTranslation as _0x46785b}from'./utils/common-translations';import{isEqual as _0x57a851,omit as _0x35f41d}from'lodash-es';export const renameAttributeKey=_0x24f2('0x66');export default class p extends _0x357723{static get[_0x24f2('0x121')](){return[_0x24f2('0x98'),_0x98077b,_0x4bdfad,_0x10ac8d,_0x534c7c,_0x4646e1,_0x28d659,_0x171a31,_0x2683ba,_0x16061c,_0x261a55,_0xdc7d3a,_0x34c47e,_0x494961,_0x688a2f,_0x5667b0,_0xfbc7b9,_0x3b72ae,_0x184bd0,_0x387499,_0xfa4dcd,_0x3bf7d7,_0x3ce75e,_0x3aa902,_0x3d0d4f,_0x3d2af7,_0x6ae1c4,_0x190643,_0x2a31bb,_0x3fec6b,_0x744e7d,_0x1de16c,_0x44510c,_0x24dd38,_0x561647,_0x241604,_0x43b96f,_0xdfeb80,_0x701369,_0x8d2fc8,_0x2b2a5c,_0x238db8,_0x588a60,_0x2d1f31,_0x31ff58,_0x300480,_0x4afdc0,_0x3c8e4e,_0x58f26c,_0x36ea7d];}static get['pluginName'](){return _0x24f2('0x117');}constructor(_0x3bbc2c){function _0x5396c1(_0x50b1b3){return _0x50b1b3[_0x24f2('0x2d')](_0x2308b6=>String[_0x24f2('0xa3')](_0x2308b6))[_0x24f2('0x17')]('');}super(_0x3bbc2c),this[_0x24f2('0x103')]=null,this['set'](_0x24f2('0xd0'),[]),this['on'](_0x24f2('0x1c'),(_0x577238,_0xc257d5,_0x52df2f,_0x3d626)=>{this[_0x24f2('0xa5')][_0x24f2('0x78')](()=>{for(const _0x38faa2 of[..._0x3d626,..._0x52df2f])this[_0x24f2('0xa5')][_0x24f2('0x14e')][_0x24f2('0x113')](_0x38faa2)&&_0x3bbc2c['editing'][_0x24f2('0x10f')](_0x38faa2);});}),this['_descriptionFactory']=new _0x268df3(this[_0x24f2('0x151')]['model'][_0x24f2('0x10b')],this[_0x24f2('0x151')][_0x24f2('0x5')]),this[_0x24f2('0x147')]=null,this['_suggestionFactory']=new Bt(this[_0x24f2('0x151')]),this[_0x24f2('0xa4')]=new Map(),this[_0x24f2('0x9c')]=_0x3bbc2c['plugins'][_0x24f2('0xb2')](_0x24f2('0x98')),this[_0x24f2('0xe6')]=new Set(),this['_model']=this[_0x24f2('0x151')][_0x24f2('0x48')],this[_0x24f2('0xcc')]=new WeakMap(),this[_0x24f2('0x142')]=!0x1,this[_0x24f2('0x8f')]=new Set([_0x24f2('0x66')]),this[_0x24f2('0x45')]=new Set(),_0x3bbc2c[_0x24f2('0x173')][_0x24f2('0x71')]('trackChanges.trackFormatChanges',_0x24f2('0x6e')),this['_trackFormatChanges']=_0x3bbc2c['config']['get'](_0x24f2('0x4b')),_0x3bbc2c[_0x24f2('0x173')][_0x24f2('0x71')](_0x24f2('0x68'),!0x0),this[_0x24f2('0x84')]=_0x3bbc2c[_0x24f2('0x173')]['get'](_0x24f2('0x68')),this[_0x24f2('0x10')]=new _0x2bfdb2(_0x3bbc2c,this[_0x24f2('0xe6')]),this[_0x24f2('0x9e')](),this[_0x5396c1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5396c1([0x34,0x30,0x34,0x36,0x32,0x34,0x32,0x34]);}[_0x24f2('0x178')](){const _0x3d7e7e=this[_0x24f2('0x151')],_0x486833=(_0x326ff3,_0x12c2ed)=>{if(_0x24f2('0x2e')!=_0x326ff3)return _0x24f2('0xa9')+_0x326ff3;const _0x326df0=_0x12c2ed[_0x24f2('0x111')]('|')[0x0];return this['_isBlockAttribute'](_0x326df0)?_0x24f2('0x10e'):'ck-suggestion-marker-formatInline';};_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))['markerToHighlight']({'model':_0x24f2('0x7f'),'view':_0x288293=>{const {id:_0x8c0e63,type:_0x9ad9d2,subType:_0x205f78}=this[_0x24f2('0xe7')](_0x288293[_0x24f2('0x6f')]),_0x245f9f=[_0x24f2('0x5a'),_0x486833(_0x9ad9d2,_0x205f78)];let _0x4bc2eb=0xbb8;return this[_0x24f2('0xd0')][_0x24f2('0x105')](_0x288293[_0x24f2('0x6f')])&&(_0x245f9f[_0x24f2('0x44')](_0x24f2('0xb9')),_0x4bc2eb=0xbc2),_0x24f2('0xa8')==_0x9ad9d2&&(_0x4bc2eb+=0x5),{'classes':_0x245f9f,'attributes':{'data-suggestion':_0x8c0e63},'priority':_0x4bc2eb};}}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x1'))[_0x24f2('0x14')](_0x30c8a2=>{_0x30c8a2['on'](_0x24f2('0x125'),(_0x10e54c,_0xa15bfe,_0x2432da)=>{if(!_0x2432da[_0x24f2('0x22')]['showSuggestionHighlights'])return;const _0x17b0b9=_0xa15bfe[_0x24f2('0x65')];if(!_0x17b0b9)return;const _0x140307=_0x2432da[_0x24f2('0x80')]['toViewElement'](_0x17b0b9);_0x3d7e7e['model'][_0x24f2('0x10b')][_0x24f2('0x59')](_0x17b0b9)&&_0x140307&&!_0x140307[_0x24f2('0xfa')]('widget')&&_0x140307['is'](_0x24f2('0xb'))&&_0x1fcbde(_0x140307,_0x2432da[_0x24f2('0x43')]);},{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x1'))[_0x24f2('0xb4')]({'model':'suggestion','view':(_0x2780a3,_0x29be78)=>{if(!_0x29be78[_0x24f2('0x22')]['showSuggestionHighlights'])return null;const {type:_0x30ba0d,subType:_0x245b0f}=this['_splitMarkerName'](_0x2780a3[_0x24f2('0x6f')]);return{'classes':['ck-suggestion-marker',_0x486833(_0x30ba0d,_0x245b0f)],'priority':0xbb8};}});const _0x46eefa=({showActiveMarkers:_0x5c8c4e=!0x0,isAttributeSuggestion:_0x920ba4=!0x1}={})=>(_0x1b3e5b,_0x47180e,_0x364709)=>{if(!_0x47180e[_0x24f2('0x65')])return;const {id:_0x42d753}=this[_0x24f2('0xe7')](_0x47180e['markerName']);if(_0x920ba4){const _0x55ce5f=Pt(this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x42d753));if(!this[_0x24f2('0x13d')](_0x55ce5f))return;}if(_0x47180e[_0x24f2('0x65')]['is'](_0x24f2('0x69')))return void _0x364709[_0x24f2('0xa1')][_0x24f2('0x47')](_0x47180e['item'],_0x1b3e5b[_0x24f2('0xf9')]);const _0x952d78=_0x364709[_0x24f2('0x80')][_0x24f2('0x7')](_0x47180e[_0x24f2('0x65')]);if(_0x47180e[_0x24f2('0x65')]['is']('element')&&_0x3d7e7e['model'][_0x24f2('0x10b')][_0x24f2('0xe2')](_0x47180e[_0x24f2('0x65')])&&!_0x952d78[_0x24f2('0xfa')](_0x24f2('0x15d'))){_0x364709[_0x24f2('0x43')]['addClass']([_0x24f2('0x5a'),_0x24f2('0x10e')],_0x952d78),_0x364709[_0x24f2('0x43')][_0x24f2('0x2b')]('data-suggestion',_0x42d753,_0x952d78),_0x364709[_0x24f2('0x80')][_0x24f2('0x172')](_0x952d78,_0x47180e[_0x24f2('0x6f')]),_0x5c8c4e&&(this[_0x24f2('0xd0')][_0x24f2('0x105')](_0x47180e[_0x24f2('0x6f')])?_0x364709[_0x24f2('0x43')][_0x24f2('0x8e')](_0x24f2('0xb9'),_0x952d78):_0x364709['writer']['removeClass'](_0x24f2('0xb9'),_0x952d78));for(const _0x2075d6 of _0x3d7e7e[_0x24f2('0x48')][_0x24f2('0xaa')](_0x47180e[_0x24f2('0x65')])[_0x24f2('0x13c')]())_0x364709[_0x24f2('0xa1')][_0x24f2('0x47')](_0x2075d6,_0x1b3e5b[_0x24f2('0xf9')]);_0x364709[_0x24f2('0xa1')][_0x24f2('0x47')](_0x47180e[_0x24f2('0x65')],_0x1b3e5b[_0x24f2('0xf9')]);}};_0x3d7e7e['conversion']['for'](_0x24f2('0x1'))[_0x24f2('0x14')](_0x13775d=>{_0x13775d['on'](_0x24f2('0x170'),(_0x24bbe2,_0x2a2a9b,_0x2285f1)=>{_0x2285f1['options'][_0x24f2('0x34')]&&_0x46eefa({'showActiveMarkers':!0x1})(_0x24bbe2,_0x2a2a9b,_0x2285f1);},{'priority':_0x24f2('0xff')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x1'))['add'](_0x554ac7=>{_0x554ac7['on'](_0x24f2('0xd6'),(_0x2b6d70,_0x51d725,_0x3040b3)=>{_0x3040b3['options'][_0x24f2('0x34')]&&_0x46eefa({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b6d70,_0x51d725,_0x3040b3);},{'priority':_0x24f2('0xff')});}),_0x3d7e7e['conversion'][_0x24f2('0x92')](_0x24f2('0x1'))[_0x24f2('0x29')]({'model':_0x24f2('0x7f'),'view':(_0x2eb972,_0x50ca19)=>_0x50ca19[_0x24f2('0x22')][_0x24f2('0x34')]?null:{'group':_0x24f2('0x7f'),'name':_0x2eb972[_0x24f2('0xe5')](0xb)}}),_0x3d7e7e[_0x24f2('0xb5')]['for'](_0x24f2('0x35'))[_0x24f2('0x58')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x36c841,{writer:_0x24d5d3})=>{let _0x10b0d1=_0x24f2('0xca')+_0x36c841['getAttribute'](_0x24f2('0x54'))+':'+_0x36c841[_0x24f2('0x50')]('id');return _0x36c841['getAttribute'](_0x24f2('0xd'))&&(_0x10b0d1+=':'+_0x36c841['getAttribute'](_0x24f2('0xd'))),_0x24d5d3['createElement'](_0x24f2('0x3a'),{'data-name':_0x10b0d1});}}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x35'))[_0x24f2('0x144')]({'view':_0x24f2('0x7f')}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))[_0x24f2('0x14')](_0x3351be=>{_0x3351be['on']('addMarker:suggestion:formatBlock',_0x46eefa(),{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')]['for'](_0x24f2('0x49'))[_0x24f2('0x14')](_0x130665=>{_0x130665['on'](_0x24f2('0xd6'),_0x46eefa({'isAttributeSuggestion':!0x0}),{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))[_0x24f2('0x14')](_0xfe60d2=>{_0xfe60d2['on']('removeMarker:suggestion:formatBlock',(_0x7f5072,_0x1843ce,_0x43f96a)=>{const _0x9f7b2b=_0x43f96a[_0x24f2('0x80')]['markerNameToElements'](_0x1843ce[_0x24f2('0x6f')]);if(_0x9f7b2b)for(const _0x15319d of _0x9f7b2b)_0x15319d[_0x24f2('0xfa')](_0x24f2('0x15d'))||(_0x43f96a[_0x24f2('0x43')]['removeClass']([_0x24f2('0x5a'),_0x24f2('0x10e'),_0x24f2('0xb9')],_0x15319d),_0x43f96a[_0x24f2('0x43')]['removeAttribute'](_0x24f2('0x4f'),_0x15319d),_0x43f96a[_0x24f2('0x80')][_0x24f2('0x5c')](_0x15319d,_0x1843ce[_0x24f2('0x6f')]));},{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0xb5')][_0x24f2('0x92')](_0x24f2('0x49'))[_0x24f2('0x14')](_0x25a72a=>{_0x25a72a['on'](_0x24f2('0xf4'),(_0x393c93,_0x1ab11b,_0x5a1180)=>{const _0x2cf71d=_0x5a1180[_0x24f2('0x80')][_0x24f2('0x15f')](_0x1ab11b[_0x24f2('0x6f')]);if(!_0x2cf71d)return;const {id:_0x7974d1}=this[_0x24f2('0xe7')](_0x1ab11b[_0x24f2('0x6f')]),_0x285803=Pt(this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x7974d1));if(this[_0x24f2('0x13d')](_0x285803))for(const _0x16fee3 of _0x2cf71d)_0x16fee3[_0x24f2('0xfa')](_0x24f2('0x15d'))||(_0x5a1180[_0x24f2('0x43')]['removeClass']([_0x24f2('0x5a'),_0x24f2('0x10e'),_0x24f2('0xb9')],_0x16fee3),_0x5a1180['writer'][_0x24f2('0xc2')]('data-suggestion',_0x16fee3),_0x5a1180['mapper']['unbindElementFromMarkerName'](_0x16fee3,_0x1ab11b[_0x24f2('0x6f')]));},{'priority':_0x24f2('0x8a')});}),_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0xf7')](_0x3bf2fa=>{let _0x101e08=!0x1;const _0x8e5228=Array[_0x24f2('0x51')](_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0x39')]['getChangedMarkers']()),_0x25cb92=new Set();for(const {name:_0x528d21,data:_0x55e019}of _0x8e5228){const {group:_0x20b5e2,type:_0x2afee4,subType:_0x596c61,id:_0x22f1ed}=this[_0x24f2('0xe7')](_0x528d21);if(_0x24f2('0x7f')!==_0x20b5e2)continue;const _0x1bd4ce=this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x22f1ed);if(null!=_0x55e019[_0x24f2('0xec')]){_0x24f2('0x11e')==_0x2afee4&&(_0x101e08=_0x101e08||Et(_0x55e019['newRange'],_0x528d21,_0x3bf2fa,_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x10b')]));const _0x31023d=_0x24f2('0x2e')==_0x2afee4&&this[_0x24f2('0x13d')](_0x596c61[_0x24f2('0x111')]('|')[0x0]);if(_0x55e019[_0x24f2('0xec')][_0x24f2('0x46')]||'$graveyard'==_0x55e019[_0x24f2('0xec')][_0x24f2('0x2f')][_0x24f2('0x32')]||_0x24f2('0x3f')==_0x2afee4&&!jt(_0x55e019[_0x24f2('0xec')])||_0x31023d&&!jt(_0x55e019[_0x24f2('0xec')])||_0x24f2('0xa8')==_0x2afee4&&!(!xt(_0x5d1148=_0x55e019['newRange'])&&!function(_0x58e42f){return _0x58e42f[_0x24f2('0x83')][_0x24f2('0x112')]==_0x58e42f[_0x24f2('0x16d')][_0x24f2('0x9a')]&&_0x58e42f[_0x24f2('0x83')][_0x24f2('0x133')];}(_0x5d1148)))_0x3bf2fa[_0x24f2('0x15c')](_0x528d21),_0x101e08=!0x0;else{if(!_0x1bd4ce||!_0x1bd4ce['isInContent'])continue;_0x25cb92[_0x24f2('0x14')](_0x1bd4ce);}}}var _0x5d1148;return _0x25cb92['size']>0x0&&(_0x101e08=!!this[_0x24f2('0x1b')](_0x25cb92)||_0x101e08),_0x101e08;}),_0x3d7e7e[_0x24f2('0x48')]['document'][_0x24f2('0xf7')](_0x56a994=>{let _0x21cab6=!0x1;for(const _0x476cba of _0x3d7e7e['model']['document'][_0x24f2('0x39')][_0x24f2('0xbf')]())if(_0x24f2('0x67')==_0x476cba[_0x24f2('0x27')])for(const _0x3984af of this[_0x24f2('0xa4')][_0x24f2('0x16f')]()){if(_0x3984af[_0x24f2('0x2')]||!_0x3984af[_0x24f2('0x161')])continue;const _0x1a22b1=_0x24f2('0x3f')==_0x3984af['type'],_0x442043=Pt(_0x3984af),_0x4ba761=_0x442043&&this[_0x24f2('0x13d')](_0x442043);if(!_0x1a22b1&&!_0x4ba761)continue;const _0x4eba95=_0x3984af[_0x24f2('0x126')]();if(_0x4eba95[_0x24f2('0x83')]['parent']!=_0x4eba95[_0x24f2('0x16d')]['parent']&&!_0x4eba95[_0x24f2('0x16d')][_0x24f2('0x133')]){const _0x5b0d83=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x79')](_0x4eba95[_0x24f2('0x83')]['nodeAfter'],_0x24f2('0x16d')),_0xcb332e=_0x3d7e7e['model']['createRange'](_0x4eba95[_0x24f2('0x83')],_0x5b0d83);_0x56a994[_0x24f2('0x10a')](_0x3984af[_0x24f2('0x11a')](),{'range':_0xcb332e}),_0x21cab6=!0x0;}}return _0x21cab6;}),_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0xf7')](_0x183432=>this[_0x24f2('0xcb')](_0x183432)),_0x3d7e7e['model'][_0x24f2('0x6b')]['registerPostFixer'](_0x32257f=>!_0x32257f[_0x24f2('0xc3')][_0x24f2('0x70')]&&this['_processAttributeSuggestions'](_0x32257f)),_0x3d7e7e[_0x24f2('0x48')]['markers']['on'](_0x24f2('0x14f'),(_0x305b38,_0x25f289,_0x87de23)=>{if(null==_0x87de23){const {id:_0xbd01a8}=this[_0x24f2('0xe7')](_0x25f289[_0x24f2('0xf9')]),_0x2ff3ce=this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0xbd01a8);_0x2ff3ce&&_0x2ff3ce[_0x24f2('0x153')](_0x25f289[_0x24f2('0xf9')]);}}),_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')]['on'](_0x24f2('0x162'),()=>{const _0x40dab7=Array[_0x24f2('0x51')](_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x6b')][_0x24f2('0x39')]['getChangedMarkers']())[_0x24f2('0x159')](_0x476e4b=>'suggestion'===this[_0x24f2('0xe7')](_0x476e4b[_0x24f2('0xf9')])[_0x24f2('0xf2')]);if(0x0===_0x40dab7[_0x24f2('0xe8')])return;_0x40dab7[_0x24f2('0x157')]((_0x56ba5b,_0x59a881)=>{const _0x50bcf1=_0x56ba5b[_0x24f2('0x3e')][_0x24f2('0x62')],_0x2fc0f8=_0x59a881[_0x24f2('0x3e')][_0x24f2('0x62')];return null===_0x50bcf1&&null===_0x2fc0f8?0x0:null===_0x50bcf1&&null!==_0x2fc0f8?-0x1:null!==_0x50bcf1&&null===_0x2fc0f8?0x1:_0x50bcf1[_0x24f2('0x83')][_0x24f2('0xae')](_0x2fc0f8[_0x24f2('0x83')])?-0x1:0x1;});const _0x528952=new Set(),_0x4f5c38=new Set();for(const {name:_0x3e4282,data:_0x45cbb7}of _0x40dab7){const {id:_0x37b328}=this[_0x24f2('0xe7')](_0x3e4282);if(null===_0x45cbb7[_0x24f2('0x62')]){const _0x29401e=this[_0x24f2('0x61')](_0x3e4282);_0x4f5c38[_0x24f2('0x14')](_0x29401e);}else{const _0x19d0e2=this[_0x24f2('0xa4')]['get'](_0x37b328);null!==_0x45cbb7[_0x24f2('0xec')]||_0x19d0e2[_0x24f2('0x161')]?(_0x528952[_0x24f2('0x14')](_0x19d0e2[_0x24f2('0x164')]),_0x4f5c38[_0x24f2('0x14')](_0x19d0e2)):this[_0x24f2('0xe4')](_0x19d0e2);}}_0x4f5c38['size']>0x0&&this[_0x24f2('0x15a')](_0x4f5c38);for(const _0x42eb06 of _0x528952)this[_0x24f2('0x100')](_0x24f2('0xa6'),_0x42eb06);}),_0x3d7e7e[_0x24f2('0x48')]['on'](_0x24f2('0x152'),(_0x5c42d3,_0x20a01f)=>{const _0x2eb888=_0x20a01f[0x0];if(!this[_0x24f2('0xa4')]['size'])return;if(!_0x2eb888[_0x24f2('0x8')])return;if(_0x2eb888[_0x24f2('0xc3')][_0x24f2('0xf')]||!_0x2eb888[_0x24f2('0xc3')]['isLocal'])return;let _0x1bd635,_0x3e61ed;switch(_0x2eb888[_0x24f2('0x27')]){case _0x24f2('0x67'):_0x1bd635=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x79')](_0x2eb888[_0x24f2('0x131')]),_0x3e61ed=_0x1bd635['getShiftedBy'](_0x2eb888[_0x24f2('0x12a')]);break;case _0x24f2('0x111'):_0x1bd635=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x79')](_0x2eb888[_0x24f2('0xc6')]),_0x3e61ed=_0x3d7e7e['model'][_0x24f2('0x79')](_0x2eb888[_0x24f2('0x141')]);break;case _0x24f2('0x63'):_0x1bd635=_0x3d7e7e[_0x24f2('0x48')]['createPositionAt'](_0x2eb888[_0x24f2('0x101')]),_0x3e61ed=_0x1bd635[_0x24f2('0x82')](_0x2eb888['howMany']);break;default:return;}const _0x563602=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x5d')](_0x1bd635,_0x3e61ed);_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x78')](()=>{for(const {suggestion:_0x3ba849,meta:_0x1d65cc}of this[_0x24f2('0x3')](_0x563602)){if(_0x3ba849['isMultiRange'])continue;if(_0x24f2('0x11e')==_0x3ba849['type'])continue;const _0x4f43e3=Pt(_0x3ba849);if(_0x4f43e3&&this['_isBlockAttribute'](_0x4f43e3)&&_0x24f2('0x111')!=_0x2eb888['type'])continue;const _0x5d8a26=_0x3ba849['data']&&_0x3ba849[_0x24f2('0x3e')][_0x24f2('0xa7')];('formatBlock'!=_0x3ba849['type']||'split'==_0x2eb888[_0x24f2('0x27')]&&!_0x5d8a26)&&(_0x1d65cc[_0x24f2('0x7c')]||_0x24f2('0x94')==_0x3ba849[_0x24f2('0x27')]&&_0x1d65cc['isOwn']||_0x3ba849[_0x24f2('0x126')]()[_0x24f2('0x114')](_0x563602)&&this[_0x24f2('0xfe')](_0x3ba849,_0x1bd635,_0x3e61ed));}});},{'priority':_0x24f2('0xb0')}),_0x3d7e7e['model']['on']('deleteContent',(_0x548fe5,_0x3501cc)=>{const _0x16855e=_0x3501cc[0x0],_0x2b8198=_0x3501cc[0x1];if(_0x2b8198&&_0x2b8198[_0x24f2('0xe9')])return;if(this[_0x24f2('0x142')])return;if(!this[_0x24f2('0x10')]['value'])return;if(_0x16855e[_0x24f2('0x46')])return;const _0x128ec6=_0x3d7e7e[_0x24f2('0x48')]['schema'],{start:_0x29ebff,end:_0x5ac4e5}=_0x16855e[_0x24f2('0x126')](),_0x893621=_0x29ebff[_0x24f2('0x15b')]&&_0x128ec6[_0x24f2('0x176')](_0x29ebff['nodeAfter'])?null:_0x128ec6[_0x24f2('0x7d')](_0x29ebff,_0x24f2('0x130')),_0x6fc348=_0x5ac4e5[_0x24f2('0x9a')]&&_0x128ec6[_0x24f2('0x176')](_0x5ac4e5[_0x24f2('0x9a')])?null:_0x128ec6[_0x24f2('0x7d')](_0x5ac4e5,_0x24f2('0x155')),_0x4dc869=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x5d')](_0x893621?_0x893621[_0x24f2('0x83')]:_0x29ebff,_0x6fc348?_0x6fc348['end']:_0x5ac4e5);_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x78')](_0xf15765=>{this[_0x24f2('0x9')](_0x4dc869);const _0x2d63e1=_0x3d7e7e['model'][_0x24f2('0x10b')]['getNearestSelectionRange'](_0x4dc869['start']);_0x16855e['is']('documentSelection')?_0xf15765[_0x24f2('0xc0')](_0x2d63e1):_0x16855e[_0x24f2('0x12b')](_0x2d63e1);}),_0x548fe5['stop']();},{'priority':_0x222b66[_0x24f2('0xab')]+0xa}),_0x3d7e7e['model']['on']('insertContent',(_0x35b7f0,_0x506a41)=>{const _0x1941f4=_0x506a41[_0x506a41[_0x24f2('0xe8')]-0x1];_0x1941f4&&_0x1941f4[_0x24f2('0xe9')]||this[_0x24f2('0x142')]||this[_0x24f2('0x10')][_0x24f2('0x1d')]&&(_0x3d7e7e['model'][_0x24f2('0x78')](()=>{let _0x4b9b28=_0x3d7e7e['model']['insertContent'](_0x506a41[0x0],_0x506a41[0x1],_0x506a41[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b9b28)return;_0x35b7f0[_0x24f2('0x12d')]=_0x4b9b28[_0x24f2('0x148')]();const _0x36c102=_0x4b9b28[_0x24f2('0x16d')][_0x24f2('0x9a')],_0x3fb381=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x10b')];_0x36c102&&_0x3fb381[_0x24f2('0xe2')](_0x36c102)&&!_0x3fb381[_0x24f2('0x59')](_0x36c102)&&(_0x4b9b28=_0x3d7e7e[_0x24f2('0x48')][_0x24f2('0x5d')](_0x4b9b28[_0x24f2('0x83')],_0x3d7e7e['model'][_0x24f2('0x79')](_0x36c102,_0x24f2('0x16d')))),this[_0x24f2('0x2c')](_0x4b9b28);}),_0x35b7f0['stop']());},{'priority':_0x24f2('0x8a')}),this[_0x24f2('0x151')]['commands'][_0x24f2('0x14')](_0x24f2('0x11d'),this[_0x24f2('0x10')]),this['enableCommand']('trackChanges');const _0x3d55ff=new _0x2a8fbb(_0x3d7e7e,this['_suggestions']);_0x3d7e7e[_0x24f2('0x138')]['add'](_0x24f2('0xf0'),_0x3d55ff),this[_0x24f2('0x107')]('acceptSuggestion');const _0x599473=new _0x491c74(_0x3d7e7e,this['_suggestions']);_0x3d7e7e['commands'][_0x24f2('0x14')](_0x24f2('0x76'),_0x599473),this[_0x24f2('0x107')]('discardSuggestion'),_0x3d7e7e['commands']['add'](_0x24f2('0x123'),new _0x547392(_0x3d7e7e,_0x3d55ff,this[_0x24f2('0xa4')])),this[_0x24f2('0x107')](_0x24f2('0x123')),_0x3d7e7e['commands']['add'](_0x24f2('0x56'),new _0x547392(_0x3d7e7e,_0x599473,this[_0x24f2('0xa4')])),this[_0x24f2('0x107')](_0x24f2('0x56')),_0x3d7e7e[_0x24f2('0x138')][_0x24f2('0x14')](_0x24f2('0x143'),new _0x13151f(_0x3d7e7e,_0x3d55ff,this[_0x24f2('0xa4')])),this['enableCommand'](_0x24f2('0x143')),_0x3d7e7e[_0x24f2('0x138')][_0x24f2('0x14')](_0x24f2('0x21'),new _0x13151f(_0x3d7e7e,_0x599473,this['_suggestions'])),this['enableCommand'](_0x24f2('0x21'));const _0x33b409=_0x3d7e7e[_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x98'));this['listenTo'](_0x33b409,_0x24f2('0x150'),(_0x2bbd09,{threadId:_0x5c1d9c})=>{const _0x52eae4=this['_suggestions']['get'](_0x5c1d9c);_0x52eae4&&_0x52eae4[_0x24f2('0x10c')]&&0x1===_0x52eae4[_0x24f2('0x10c')][_0x24f2('0xe8')]&&this[_0x24f2('0x5b')](_0x5c1d9c,{'hasComments':!0x0});},{'priority':_0x24f2('0x122')}),this['listenTo'](_0x33b409,'removeComment',(_0x56d7ee,{threadId:_0x5249d4})=>{const _0x4149ea=this['_suggestions'][_0x24f2('0xb2')](_0x5249d4);_0x4149ea&&_0x4149ea[_0x24f2('0x10c')]&&!_0x4149ea[_0x24f2('0x10c')][_0x24f2('0xe8')]&&this[_0x24f2('0x5b')](_0x5249d4,{'hasComments':!0x1});},{'priority':'low'});}set[_0x24f2('0xb7')](_0x3a7ec0){if(this[_0x24f2('0x147')])throw new _0x1937ba(_0x24f2('0xb1'),this);this[_0x24f2('0x147')]=_0x3a7ec0;}get[_0x24f2('0xb7')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x242f4c=!0x1,toJSON:_0x3f1720=!0x1}={}){const _0x4d4841=[];for(const _0x3e3084 of this[_0x24f2('0xa4')]['values']())_0x242f4c&&!_0x3e3084[_0x24f2('0x161')]||_0x4d4841[_0x24f2('0x44')](_0x3e3084);return _0x3f1720?_0x4d4841[_0x24f2('0x2d')](_0x59b628=>_0x59b628['toJSON']()):_0x4d4841;}[_0x24f2('0x169')](_0x4d4f4e){const _0x5c0d2a=this[_0x24f2('0xa4')]['get'](_0x4d4f4e);if(!_0x5c0d2a)throw new _0x1937ba('track-changes-suggestion-not-found',this);return _0x5c0d2a;}['hasSuggestion'](_0x13011e){return this[_0x24f2('0xa4')][_0x24f2('0x113')](_0x13011e);}[_0x24f2('0xdf')](_0x5210e9){const {authorId:_0x572429,id:_0x182bca,attributes:_0x1e43b2}=_0x5210e9,[_0x32d4d4,_0x1fdbf8]=_0x5210e9[_0x24f2('0x27')][_0x24f2('0x111')](':'),_0x30d39d=this[_0x24f2('0xa4')][_0x24f2('0xb2')](_0x182bca)||this[_0x24f2('0xc8')](_0x32d4d4,_0x1fdbf8,_0x182bca,_0x572429,_0x1e43b2);if(this[_0x24f2('0x139')](_0x30d39d),this[_0x24f2('0xf1')](_0x30d39d,_0x32d4d4,_0x1fdbf8||null,_0x572429),_0x30d39d[_0x24f2('0x115')]=_0x5210e9['createdAt'],_0x30d39d[_0x24f2('0xb8')]=!0x0,_0x1e43b2&&_0x1e43b2[_0x24f2('0x166')]){const _0x7df383=_0x1e43b2[_0x24f2('0x166')],_0x4ca1e6=this[_0x24f2('0x175')](_0x7df383[_0x24f2('0x52')]);_0x30d39d[_0x24f2('0xdb')]=_0x7df383[_0x24f2('0x115')],_0x30d39d[_0x24f2('0x3d')]=_0x4ca1e6,_0x30d39d[_0x24f2('0x127')]=!0x0;}else _0x30d39d[_0x24f2('0xdb')]=_0x5210e9[_0x24f2('0x115')];switch(_0x5210e9[_0x24f2('0x3e')]&&(_0x30d39d[_0x24f2('0x3e')]=_0x5210e9[_0x24f2('0x3e')]),_0x5210e9['attributes']&&(_0x30d39d[_0x24f2('0x149')]=_0x5210e9[_0x24f2('0x149')]),this[_0x24f2('0x147')]&&this[_0x24f2('0x147')][_0x24f2('0xd7')]||(_0x30d39d[_0x24f2('0xa')]=!0x0),this[_0x24f2('0xcc')][_0x24f2('0xb2')](_0x30d39d)){case _0x24f2('0x19'):this[_0x24f2('0xcc')]['set'](_0x30d39d,'dataReady');break;case _0x24f2('0x129'):_0x30d39d[_0x24f2('0x161')]?(this[_0x24f2('0x15a')](new Set([_0x30d39d])),this[_0x24f2('0x1b')](new Set([_0x30d39d])),this[_0x24f2('0xcc')][_0x24f2('0x13')](_0x30d39d,_0x24f2('0xfc')),this[_0x24f2('0x100')](_0x24f2('0x13f'),_0x30d39d)):this[_0x24f2('0xcc')]['set'](_0x30d39d,_0x24f2('0x15e'));}return _0x30d39d;}[_0x24f2('0xf0')](_0xede858){this[_0x24f2('0xe9')](()=>{this['editor'][_0x24f2('0x48')][_0x24f2('0x78')](()=>{for(const _0x18ede6 of _0xede858[_0x24f2('0xda')]())_0x18ede6['accept']();});});}['discardSuggestion'](_0x48ea0a){this['forceDefaultExecution'](()=>{this[_0x24f2('0x151')][_0x24f2('0x48')]['change'](()=>{for(const _0x58a15b of _0x48ea0a[_0x24f2('0xda')]())_0x58a15b[_0x24f2('0xf8')]();});});}[_0x24f2('0x107')](_0xa5a271,_0xb8d8b9){const _0x1e7569=this['editor']['commands']['get'](_0xa5a271);if(!_0x1e7569)throw new _0x1937ba(_0x24f2('0x4c'),this,{'commandName':_0xa5a271});if(this[_0x24f2('0xe6')][_0x24f2('0x113')](_0x1e7569))throw new _0x1937ba(_0x24f2('0x135'),this,{'commandName':_0xa5a271});this['_enabledCommands'][_0x24f2('0x14')](_0x1e7569),_0xb8d8b9&&_0x1e7569['on']('execute',(_0x77b402,_0x34a9a4)=>{this[_0x24f2('0x10')]['value']&&(this[_0x24f2('0x142')]||(_0x34a9a4[_0x24f2('0xe8')]>0x0&&_0x34a9a4[_0x34a9a4[_0x24f2('0xe8')]-0x1]&&_0x34a9a4[_0x34a9a4[_0x24f2('0xe8')]-0x1]['forceDefaultExecution']?_0x34a9a4[_0x24f2('0xbc')]():(_0x77b402[_0x24f2('0x12d')]=_0xb8d8b9((..._0x882fef)=>_0x1e7569[_0x24f2('0x16')](..._0x882fef,{'forceDefaultExecution':!0x0}),..._0x34a9a4),_0x77b402[_0x24f2('0x12c')]())));},{'priority':'high'});}[_0x24f2('0xe9')](_0x165c2d){let _0x399299,_0x1d2878;const _0x3d0f19=this['_isForcedDefaultExecutionBlock'];this[_0x24f2('0x142')]=!0x0;try{_0x399299=_0x165c2d();}catch(_0x3bd8c4){_0x1d2878=_0x3bd8c4;}return _0x3d0f19||(this[_0x24f2('0x142')]=!0x1),_0x1d2878&&_0x1937ba[_0x24f2('0x3c')](_0x1d2878,this),_0x399299;}['markInsertion'](_0x504c6b,_0x51eb86=null,_0x298b0a={}){if(_0x504c6b['isCollapsed'])return null;const _0x4c62f9=this['editor'][_0x24f2('0x4a')]['get']('Users')['me'];for(const {suggestion:_0x38ce83,meta:_0x5ab8fb}of this[_0x24f2('0x3')](_0x504c6b,_0x24f2('0x94')))if(_0x5ab8fb[_0x24f2('0xd3')]){if(!_0x5ab8fb[_0x24f2('0x0')]){if(_0x5ab8fb[_0x24f2('0x7c')]){if(!this[_0x24f2('0x84')]||!Gt(_0x38ce83,_0x298b0a))continue;return _0x38ce83;}if(Gt(_0x38ce83,_0x298b0a))return _0x38ce83;this[_0x24f2('0xfe')](_0x38ce83,_0x504c6b['start'],_0x504c6b['end']);break;}if(_0x51eb86==_0x38ce83[_0x24f2('0x15')]&&Gt(_0x38ce83,_0x298b0a)){const _0x1f3333=_0x38ce83[_0x24f2('0x126')]();return _0x1f3333['start'][_0x24f2('0xba')](_0x504c6b['end'])?this['_setSuggestionRange'](_0x38ce83,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x504c6b['start'],_0x1f3333[_0x24f2('0x16d')])):this[_0x24f2('0x18')](_0x38ce83,this['_model'][_0x24f2('0x5d')](_0x1f3333['start'],_0x504c6b[_0x24f2('0x16d')])),_0x38ce83;}}const _0x5ee35b=_0x4f0f07(),_0x3af831=_0x4c62f9['id'],_0x41c16b=_0x51eb86?_0x24f2('0x23')+_0x51eb86:_0x24f2('0x94'),_0x1650f9=this[_0x24f2('0xee')]({'id':_0x5ee35b,'type':_0x41c16b,'createdAt':new Date(),'authorId':_0x3af831,'attributes':_0x298b0a});return this[_0x24f2('0x132')](_0x41c16b,_0x5ee35b,_0x3af831,_0x504c6b),_0x1650f9;}[_0x24f2('0x40')](_0x1bbaea,_0x1e1778='multi',_0x112a7d={}){const _0x5c46b5=this[_0x24f2('0x151')][_0x24f2('0x4a')]['get']('Users')['me'],_0x1f63c8=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0x94'),_0x1e1778,_0x24f2('0x17'));for(const _0x57ae87 of this[_0x24f2('0x120')]())if(_0x57ae87[_0x24f2('0x3d')]['id']==_0x5c46b5['id']&&_0x24f2('0x94')==_0x57ae87['type']&&_0x57ae87['subType']==_0x1e1778&&Gt(_0x57ae87,_0x112a7d)&&(_0x1f63c8(_0x57ae87[_0x24f2('0x137')](),_0x1bbaea)||_0x1f63c8(_0x1bbaea,_0x57ae87[_0x24f2('0x137')]()))){for(const _0x64460d of _0x1bbaea)_0x57ae87[_0x24f2('0xd1')](_0x64460d);return _0x57ae87;}for(const {suggestion:_0x1154fc,meta:_0x218d9f}of this[_0x24f2('0x3')](_0x1bbaea,_0x24f2('0x94'))){if(!_0x218d9f[_0x24f2('0xd3')])continue;if(!this[_0x24f2('0x84')]&&_0x218d9f[_0x24f2('0x7c')])continue;if(!Gt(_0x1154fc,_0x112a7d))continue;let _0xca75d5=!0x0;for(const _0x52759a of _0x1154fc[_0x24f2('0x137')]())for(const _0xabe3ee of _0x1bbaea)if(!_0x52759a[_0x24f2('0x114')](_0xabe3ee)){_0xca75d5=!0x1;break;}if(_0xca75d5)return _0x1154fc;}const _0x1e4d36=_0x4f0f07(),_0x27dbcc=_0x5c46b5['id'],_0x341ac0=_0x24f2('0x23')+_0x1e1778,_0x1c4340=this[_0x24f2('0xee')]({'id':_0x1e4d36,'type':_0x341ac0,'createdAt':new Date(),'authorId':_0x27dbcc,'attributes':_0x112a7d});for(const _0x22499f of _0x1bbaea)this[_0x24f2('0x132')](_0x341ac0,_0x1e4d36,_0x27dbcc,_0x22499f,_0x897dd2['getMultiRangeId']());return _0x1c4340;}[_0x24f2('0xe1')](_0x4494b1,_0x5ba860,_0x2d5ab0=null,_0x30fae9={}){if(_0x2d5ab0=_0x2d5ab0||Rt(_0x5ba860),_0x4494b1[_0x24f2('0x46')])return null;if(_0x24f2('0x14b')===this['_trackFormatChanges']){const _0x97d4c1=this[_0x24f2('0x75')][_0x24f2('0x156')]('formatInline',_0x2d5ab0,_0x24f2('0xdd'));return this['forceDefaultExecution'](()=>_0x97d4c1([_0x4494b1],_0x5ba860,_0x30fae9)),null;}const _0x569a33=this[_0x24f2('0x151')]['plugins'][_0x24f2('0xb2')](_0x24f2('0x91'))['me'],_0x36035c=[];if(_0x24f2('0xa2')!==this[_0x24f2('0x77')])for(const {suggestion:_0x2882a5,meta:_0xa8eaa6}of this['_findSuggestions'](_0x4494b1,_0x24f2('0x94')))_0xa8eaa6['isOwn']&&!_0xa8eaa6[_0x24f2('0x12f')]&&_0x36035c[_0x24f2('0x44')](..._0x2882a5[_0x24f2('0x137')]());const _0x48c65a=function(_0x2f3372,_0x504635){const _0x9e9888=[];for(const _0x2250fd of _0x504635){const _0x196d47=_0x2f3372[_0x24f2('0xbe')](_0x2250fd);_0x196d47&&_0x9e9888[_0x24f2('0x44')](_0x196d47);}return _0x9e9888;}(_0x4494b1,_0x36035c),_0x51898a=function(_0x41b2f5,_0x4f4366){const _0x1c2295=[_0x41b2f5];for(const _0x27c9e0 of _0x4f4366){let _0x2fcaf2=0x0;for(;_0x2fcaf2<_0x1c2295['length'];){const _0x25e99e=_0x1c2295[_0x2fcaf2][_0x24f2('0x1f')](_0x27c9e0);_0x1c2295['splice'](_0x2fcaf2,0x1,..._0x25e99e),_0x2fcaf2+=_0x25e99e[_0x24f2('0xe8')];}}return _0x1c2295;}(_0x4494b1,_0x36035c);_0x48c65a[_0x24f2('0xe8')]&&this[_0x24f2('0xa5')][_0x24f2('0x78')](()=>{for(const _0xdcba75 of _0x48c65a){const _0x1e7ca7=this['_suggestionFactory'][_0x24f2('0x156')](_0x24f2('0x11e'),_0x2d5ab0,_0x24f2('0xdd'));this['forceDefaultExecution'](()=>_0x1e7ca7([_0xdcba75],_0x5ba860,_0x30fae9));}});for(const _0x24f103 of _0x51898a){let _0x1bb5cc=null,_0xde2737=_0x24f103['start'],_0x26ebfc=_0x24f103['end'];for(const {suggestion:_0x2e13a5,meta:_0x50aaaa}of this['_findSuggestions'](_0x24f103,_0x24f2('0x11e'))){if(!_0x50aaaa[_0x24f2('0xd3')])continue;if(_0x2e13a5[_0x24f2('0x15')]!=_0x2d5ab0)continue;if(!Gt(_0x2e13a5,_0x30fae9))continue;const _0x24e485=_0x2e13a5[_0x24f2('0x126')]();if(_0x24e485[_0x24f2('0x114')](_0x24f103,!0x0))return null;_0xde2737=_0xde2737[_0x24f2('0xae')](_0x24e485[_0x24f2('0x83')])?_0xde2737:_0x24e485[_0x24f2('0x83')],_0x26ebfc=_0x26ebfc[_0x24f2('0x16c')](_0x24e485[_0x24f2('0x16d')])?_0x26ebfc:_0x24e485['end'],_0x1bb5cc?_0x24e485['start'][_0x24f2('0xae')](_0x1bb5cc[_0x24f2('0x126')]()['start'])?(_0x1bb5cc[_0x24f2('0x13a')](),_0x1bb5cc=_0x2e13a5):_0x2e13a5[_0x24f2('0x13a')]():_0x1bb5cc=_0x2e13a5;}const _0x20af0a=this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0xde2737,_0x26ebfc);if(_0x1bb5cc)this['_setSuggestionRange'](_0x1bb5cc,_0x20af0a);else{const _0x4cc525=_0x4f0f07(),_0x47e1e1=_0x569a33['id'];this[_0x24f2('0xee')]({'id':_0x4cc525,'type':_0x24f2('0x8b')+_0x2d5ab0,'data':_0x5ba860,'createdAt':new Date(),'authorId':_0x47e1e1,'attributes':_0x30fae9}),this[_0x24f2('0x132')]('formatInline:'+_0x2d5ab0,_0x4cc525,_0x47e1e1,_0x20af0a);}}return null;}['markBlockFormat'](_0x91b2b9,_0x21c697,_0x33768c=[],_0x2c565f=null,_0x102371={}){_0x21c697[_0x24f2('0xc9')]||(_0x21c697[_0x24f2('0xc9')]=_0x21c697['commandName']),_0x21c697['multipleBlocks']=_0x91b2b9['is']('range'),_0x2c565f=_0x2c565f||Rt(_0x21c697);const _0x231b83=_0x33768c[_0x24f2('0x2d')](_0xe3c181=>Ut(_0xe3c181,this['_model'])),_0x1ad07e=_0x91b2b9['is']('range')?_0x91b2b9:Ut(_0x91b2b9,this[_0x24f2('0xa5')]);if('never'===this[_0x24f2('0x77')]){const _0x773c73=this[_0x24f2('0x75')]['getSuggestionCallback'](_0x24f2('0x3f'),_0x2c565f,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x773c73([_0x1ad07e],_0x21c697,_0x102371)),null;}_0x231b83['push'](_0x1ad07e);let _0x1c8335=!0x0;for(const _0x4c8f8c of _0x231b83)if(!this[_0x24f2('0x14a')](_0x4c8f8c)){_0x1c8335=!0x1;break;}if(_0x1c8335&&'always'!==this['_trackFormatChanges']){const _0x168c12=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0x3f'),_0x2c565f,'accept');return this[_0x24f2('0xe9')](()=>_0x168c12([_0x1ad07e],_0x21c697,_0x102371)),null;}let _0x1f9024=null,_0x5793dc=_0x1ad07e[_0x24f2('0x83')],_0x238642=_0x1ad07e[_0x24f2('0x16d')];for(const {suggestion:_0x41b517,meta:_0x1f62a8}of this[_0x24f2('0x3')](_0x1ad07e,_0x24f2('0x3f'))){if(!_0x1f62a8[_0x24f2('0xd3')])continue;if(_0x1f62a8[_0x24f2('0x0')]||_0x1f62a8[_0x24f2('0x7c')]||_0x1f62a8[_0x24f2('0x12f')])continue;if(_0x41b517[_0x24f2('0x3e')][_0x24f2('0xc9')]!=_0x21c697[_0x24f2('0xc9')])continue;if(!Gt(_0x41b517,_0x102371))continue;const _0xc9cc55=_0x41b517[_0x24f2('0x126')]();if(_0x41b517['subType']==_0x2c565f){if(_0xc9cc55['containsRange'](_0x1ad07e,!0x0))return null;_0x5793dc=_0x5793dc[_0x24f2('0xae')](_0xc9cc55[_0x24f2('0x83')])?_0x5793dc:_0xc9cc55['start'],_0x238642=_0x238642[_0x24f2('0x16c')](_0xc9cc55[_0x24f2('0x16d')])?_0x238642:_0xc9cc55[_0x24f2('0x16d')],_0x1f9024?_0xc9cc55[_0x24f2('0x83')][_0x24f2('0xae')](_0x1f9024[_0x24f2('0x126')]()[_0x24f2('0x83')])?(_0x1f9024[_0x24f2('0x13a')](),_0x1f9024=_0x41b517):_0x41b517[_0x24f2('0x13a')]():_0x1f9024=_0x41b517;}else{const _0x1319c8=_0x1ad07e[_0x24f2('0xbe')](_0xc9cc55);this[_0x24f2('0x134')](_0x41b517,_0x1319c8);}}const _0xc9b7b2=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'],_0x5c25db=_0x4f0f07(),_0x33e21e=_0xc9b7b2['id'];if(_0x1f9024)return this[_0x24f2('0x18')](_0x1f9024,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x5793dc,_0x238642)),_0x1f9024;{const _0x3636e5=this[_0x24f2('0xee')]({'id':_0x5c25db,'type':_0x24f2('0x16b')+_0x2c565f,'data':_0x21c697,'createdAt':new Date(),'authorId':_0x33e21e,'attributes':_0x102371});return this[_0x24f2('0x132')](_0x24f2('0x16b')+_0x2c565f,_0x5c25db,_0x33e21e,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x5793dc,_0x238642)),_0x3636e5;}}['markMultiRangeBlockFormat'](_0x21d96a,_0x38e2cd,_0x289ddc=[],_0x15f1a6=null,_0x1e894f={}){_0x38e2cd['formatGroupId']||(_0x38e2cd[_0x24f2('0xc9')]=_0x38e2cd[_0x24f2('0x95')]);const _0x20ea98=_0x21d96a[0x0];_0x38e2cd[_0x24f2('0xa7')]=_0x20ea98['is'](_0x24f2('0x53')),_0x15f1a6=_0x15f1a6||Rt(_0x38e2cd);const _0x275c9=_0x289ddc['map'](_0x47f531=>Ut(_0x47f531,this[_0x24f2('0xa5')])),_0x219d2c=_0x20ea98['is'](_0x24f2('0x53'))?_0x21d96a:_0x21d96a['map'](_0x320e95=>Ut(_0x320e95,this[_0x24f2('0xa5')]));if(_0x24f2('0x14b')===this[_0x24f2('0x77')]){const _0x1afa19=this[_0x24f2('0x75')]['getSuggestionCallback'](_0x24f2('0x3f'),_0x15f1a6,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x1afa19(_0x219d2c,_0x38e2cd,_0x1e894f)),null;}_0x275c9['push'](..._0x219d2c);let _0x1abbad=!0x0;for(const _0x34f9cb of _0x275c9)if(!this[_0x24f2('0x14a')](_0x34f9cb)){_0x1abbad=!0x1;break;}if(_0x1abbad&&_0x24f2('0xa2')!==this[_0x24f2('0x77')]){const _0x58a514=this[_0x24f2('0x75')][_0x24f2('0x156')]('formatBlock',_0x15f1a6,'accept');return this[_0x24f2('0xe9')](()=>_0x58a514(_0x219d2c,_0x38e2cd,_0x1e894f)),null;}const _0x4c84db=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'];for(const _0x18a24a of this[_0x24f2('0x120')]()){if(_0x18a24a[_0x24f2('0x3d')]['id']!=_0x4c84db['id'])continue;if(_0x24f2('0x3f')!=_0x18a24a[_0x24f2('0x27')]||_0x18a24a[_0x24f2('0x3e')][_0x24f2('0xc9')]!=_0x38e2cd[_0x24f2('0xc9')])continue;if(!Gt(_0x18a24a,_0x1e894f))continue;const _0x4eb0fe=_0x18a24a['subType']==_0x15f1a6;for(let _0x1eb591=0x0;_0x1eb591<_0x219d2c['length'];_0x1eb591++){const _0x5cffe0=_0x219d2c[_0x1eb591];for(const _0x97cfe6 of _0x18a24a[_0x24f2('0x7b')]()){const _0x424be7=_0x97cfe6[_0x24f2('0xcf')]();if(_0x5cffe0[_0x24f2('0xba')](_0x424be7)){_0x4eb0fe?(_0x219d2c[_0x24f2('0x9d')](_0x1eb591,0x1),_0x1eb591--):_0x18a24a[_0x24f2('0x15c')](_0x97cfe6[_0x24f2('0xf9')]);break;}}}}if(0x0==_0x219d2c[_0x24f2('0xe8')])return null;const _0x4e1433=this[_0x24f2('0x75')]['getSuggestionCallback']('formatBlock',_0x15f1a6,_0x24f2('0x17'));for(const _0x4e4345 of this[_0x24f2('0x120')]())if(_0x4e4345[_0x24f2('0x3d')]['id']==_0x4c84db['id']&&_0x24f2('0x3f')==_0x4e4345['type']&&_0x4e4345[_0x24f2('0x3e')][_0x24f2('0xc9')]==_0x38e2cd[_0x24f2('0xc9')]&&_0x4e4345[_0x24f2('0x15')]==_0x15f1a6&&Gt(_0x4e4345,_0x1e894f)&&(_0x4e1433(_0x4e4345[_0x24f2('0x137')](),_0x219d2c)||_0x4e1433(_0x219d2c,_0x4e4345[_0x24f2('0x137')]()))){for(const _0x5eec84 of _0x219d2c)_0x4e4345[_0x24f2('0xd1')](_0x5eec84);return _0x4e4345;}const _0x1a8453=_0x4f0f07(),_0x48f5f8=_0x4c84db['id'],_0x183f6d=_0x24f2('0x16b')+_0x15f1a6,_0x140a63=this[_0x24f2('0xee')]({'id':_0x1a8453,'type':_0x183f6d,'data':_0x38e2cd,'createdAt':new Date(),'authorId':_0x48f5f8,'attributes':_0x1e894f});for(const _0xcbdec0 of _0x219d2c)this['_addSuggestionMarker'](_0x183f6d,_0x1a8453,_0x48f5f8,_0xcbdec0,_0x897dd2[_0x24f2('0xea')]());return _0x140a63;}[_0x24f2('0x9')](_0x195652,_0x8bcf47=null,_0x5bde1b={}){if(_0x195652[_0x24f2('0x46')])return null;const _0x180d35=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'],_0x474b44=new _0x353646(_0x195652[_0x24f2('0x83')],_0x195652['end']);for(const {suggestion:_0x47671c,meta:_0x4852fe}of this[_0x24f2('0x3')](_0x474b44,'insertion'))if(_0x4852fe[_0x24f2('0xd3')]&&!_0x4852fe[_0x24f2('0x0')]){if(_0x47671c['isMultiRange']){const _0x1fdfbb=_0x47671c[_0x24f2('0x137')]()[_0x24f2('0x159')](_0x5c5b80=>_0x24f2('0x90')!=_0x5c5b80['root'][_0x24f2('0x32')]);_0x1fdfbb[_0x24f2('0x9f')](_0xf4717=>_0x474b44[_0x24f2('0x114')](_0xf4717,!0x0))&&_0x47671c[_0x24f2('0xf8')]();if(_0x1fdfbb[_0x24f2('0x11')](_0x7b6d40=>_0x7b6d40[_0x24f2('0x114')](_0x474b44,!0x0))){const _0x12f513=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x8bcf47,_0x24f2('0xdd'));return this['forceDefaultExecution'](()=>_0x12f513([_0x474b44],null,_0x5bde1b)),null;}}else{const _0x266473=_0x474b44['getIntersection'](_0x47671c['getFirstRange']());null!==_0x266473&&_0x47671c['_onDiscard']([_0x266473],null,_0x5bde1b);}}if(_0x474b44['detach'](),_0x474b44[_0x24f2('0x46')]||'$graveyard'==_0x474b44[_0x24f2('0x2f')][_0x24f2('0x32')])return null;let _0x39a79d=null,_0x428752=_0x474b44[_0x24f2('0x83')],_0x258bb3=_0x474b44[_0x24f2('0x16d')];const _0xba9af1=this[_0x24f2('0x3')](_0x474b44,'deletion');for(const {suggestion:_0x29e544,meta:_0x40c8d2}of _0xba9af1){const _0x14ca5f=this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x428752,_0x258bb3);if(_0x40c8d2[_0x24f2('0xd3')]&&(this['_mergeNestedSuggestions']||!_0x40c8d2[_0x24f2('0x7c')]&&!_0x40c8d2[_0x24f2('0x12f')])){if(_0x29e544[_0x24f2('0x2')]){if(!Gt(_0x29e544,_0x5bde1b))continue;let _0x1f5685=!0x0;for(const _0x928770 of _0x29e544[_0x24f2('0x137')]()){if(_0x928770[_0x24f2('0x114')](_0x14ca5f,!0x0))return _0x29e544;_0x14ca5f[_0x24f2('0x114')](_0x928770)||(_0x1f5685=!0x1);}_0x1f5685&&_0x29e544[_0x24f2('0xf8')]();}else{const _0x106dd4=_0x29e544[_0x24f2('0x126')]();if(_0x106dd4[_0x24f2('0x114')](_0x14ca5f,!0x0))return _0x29e544;if(!Gt(_0x29e544,_0x5bde1b)){_0x14ca5f[_0x24f2('0x114')](_0x106dd4)?_0x29e544[_0x24f2('0x13a')]():_0x106dd4[_0x24f2('0xdc')](_0x428752)?_0x428752=_0x106dd4[_0x24f2('0x16d')]:_0x106dd4['containsPosition'](_0x258bb3)&&(_0x258bb3=_0x106dd4['start']);continue;}_0x428752=_0x428752[_0x24f2('0xae')](_0x106dd4[_0x24f2('0x83')])?_0x428752:_0x106dd4[_0x24f2('0x83')],_0x258bb3=_0x258bb3[_0x24f2('0x16c')](_0x106dd4[_0x24f2('0x16d')])?_0x258bb3:_0x106dd4['end'],_0x5bde1b=Object[_0x24f2('0x165')]({},_0x29e544['attributes']),_0x39a79d?_0x106dd4[_0x24f2('0x83')][_0x24f2('0xae')](_0x39a79d['getFirstRange']()[_0x24f2('0x83')])?(_0x39a79d[_0x24f2('0x13a')](),_0x39a79d=_0x29e544):_0x29e544[_0x24f2('0x13a')]():_0x39a79d=_0x29e544;}}}if(_0x39a79d)return this['_setSuggestionRange'](_0x39a79d,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x428752,_0x258bb3)),_0x39a79d;{const _0x3b98cd=_0x4f0f07(),_0x36e1b5=this['_model']['createRange'](_0x428752,_0x258bb3),_0x496d25=_0x180d35['id'],_0x2ed416=_0x8bcf47?_0x24f2('0x5f')+_0x8bcf47:'deletion',_0x207d06=this['_setSuggestionData']({'id':_0x3b98cd,'type':_0x2ed416,'createdAt':new Date(),'authorId':_0x496d25,'attributes':_0x5bde1b});return this[_0x24f2('0x132')](_0x2ed416,_0x3b98cd,_0x496d25,_0x36e1b5),_0x207d06;}}[_0x24f2('0xd2')](_0x5de69b,_0x1c9bc1=_0x24f2('0xeb'),_0x6519ff={}){const _0x9c248a=this['editor'][_0x24f2('0x4a')][_0x24f2('0xb2')]('Users')['me'],_0x5924ae=_0x5de69b[_0x24f2('0x2d')](_0x41e904=>new _0x353646(_0x41e904[_0x24f2('0x83')],_0x41e904[_0x24f2('0x16d')])),_0x49d57c=new Set();for(const {suggestion:_0x478159,meta:_0x346e01}of this[_0x24f2('0x3')](_0x5924ae,'insertion'))_0x346e01[_0x24f2('0xd3')]&&!_0x346e01[_0x24f2('0x0')]&&_0x49d57c[_0x24f2('0x14')](_0x478159);for(const _0x1d81ac of _0x49d57c)if(_0x1d81ac['isMultiRange']){const _0x52a01f=_0x1d81ac['getRanges']();(!_0x1d81ac[_0x24f2('0x149')]||!_0x1d81ac[_0x24f2('0x149')][_0x24f2('0x8c')])&&(_0x52a01f[_0x24f2('0x9f')](_0x39828a=>_0x5924ae[_0x24f2('0x11')](_0x32e76c=>_0x32e76c['containsRange'](_0x39828a,!0x0)))&&_0x1d81ac[_0x24f2('0xf8')]());if(_0x5924ae[_0x24f2('0x9f')](_0x26dfd6=>_0x52a01f[_0x24f2('0x11')](_0x4aa55b=>_0x4aa55b['containsRange'](_0x26dfd6,!0x0)))){const _0x19f20b=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0xa8'),_0x1c9bc1,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x19f20b(_0x5de69b,null,_0x6519ff)),null;}}else{const _0x664a06=_0x1d81ac[_0x24f2('0x126')]();_0x5924ae[_0x24f2('0x11')](_0x43f332=>_0x43f332[_0x24f2('0x114')](_0x664a06,!0x0))&&_0x1d81ac['discard']();if(_0x5924ae[_0x24f2('0x9f')](_0x19a314=>_0x664a06[_0x24f2('0x114')](_0x19a314,!0x0))){const _0x35d387=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9bc1,_0x24f2('0xdd'));return this[_0x24f2('0xe9')](()=>_0x35d387(_0x5924ae,null,_0x6519ff)),null;}}const _0x570714=this[_0x24f2('0x75')][_0x24f2('0x156')](_0x24f2('0xa8'),_0x1c9bc1,'join');let _0x4f6fae=null;for(const _0x21f223 of this['getSuggestions']())if(_0x21f223['author']['id']==_0x9c248a['id']&&_0x21f223[_0x24f2('0x161')]&&_0x24f2('0xa8')==_0x21f223['type']&&_0x21f223['subType']==_0x1c9bc1&&Gt(_0x21f223,_0x6519ff)&&(_0x570714(_0x21f223[_0x24f2('0x137')](),_0x5924ae)||_0x570714(_0x5924ae,_0x21f223[_0x24f2('0x137')]()))){if(_0x4f6fae){if(_0x21f223[_0x24f2('0x10c')]&&_0x21f223[_0x24f2('0x10c')][_0x24f2('0xe8')])continue;for(const _0x28d997 of _0x21f223['getRanges']())_0x4f6fae['isIntersectingWithRange'](_0x28d997)||_0x4f6fae[_0x24f2('0xd1')](_0x28d997);_0x21f223[_0x24f2('0x13a')]();}else{_0x4f6fae=_0x21f223;for(const _0x19c987 of _0x5924ae)_0x21f223['isIntersectingWithRange'](_0x19c987)||_0x21f223[_0x24f2('0xd1')](_0x19c987);}}if(_0x4f6fae)return _0x4f6fae;_0x49d57c[_0x24f2('0x174')]();for(const {suggestion:_0x4051f7,meta:_0x10dfae}of this[_0x24f2('0x3')](_0x5924ae,'deletion'))_0x10dfae[_0x24f2('0xd3')]&&(this[_0x24f2('0x84')]||!_0x10dfae[_0x24f2('0x7c')]&&!_0x10dfae[_0x24f2('0x12f')])&&Gt(_0x4051f7,_0x6519ff)&&_0x49d57c[_0x24f2('0x14')](_0x4051f7);for(const _0x4c863b of _0x49d57c){const _0x3f605e=_0x4c863b['getRanges']();if(!_0x6519ff||!_0x6519ff[_0x24f2('0x8c')]){if(_0x5924ae[_0x24f2('0x9f')](_0x3a9d06=>_0x3f605e[_0x24f2('0x11')](_0x41235f=>_0x41235f['containsRange'](_0x3a9d06,!0x0))))return _0x4c863b;}(!_0x4c863b[_0x24f2('0x149')]||!_0x4c863b[_0x24f2('0x149')][_0x24f2('0x8c')])&&(_0x3f605e[_0x24f2('0x9f')](_0x232ce1=>_0x5924ae[_0x24f2('0x11')](_0x1e69ee=>_0x1e69ee[_0x24f2('0x114')](_0x232ce1,!0x0)))&&_0x4c863b[_0x24f2('0xf8')]());}const _0x6b2713=_0x4f0f07(),_0x1510c0=_0x9c248a['id'],_0x2a6f49=_0x24f2('0x5f')+_0x1c9bc1,_0x22f30c=this[_0x24f2('0xee')]({'id':_0x6b2713,'type':_0x2a6f49,'createdAt':new Date(),'authorId':_0x1510c0,'attributes':_0x6519ff});for(const _0x5086d4 of _0x5924ae)_0x5086d4[_0x24f2('0x4')](),_0x5086d4[_0x24f2('0x46')]||_0x24f2('0x90')==_0x5086d4[_0x24f2('0x2f')][_0x24f2('0x32')]||this[_0x24f2('0x132')](_0x2a6f49,_0x6b2713,_0x1510c0,_0x5086d4,_0x897dd2[_0x24f2('0xea')]());return _0x22f30c;}[_0x24f2('0xbd')](_0x35c10e,_0x205eb4,_0x1c7f4a,_0x74909d,_0x248fc8){if(_0x35c10e[_0x24f2('0x46')])return[];if('never'===this[_0x24f2('0x77')])return[];const _0x2de5d4=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me']['id'],_0x18b5ff=Array[_0x24f2('0x51')](this[_0x24f2('0xa4')][_0x24f2('0x16f')]())[_0x24f2('0x159')](_0x47d435=>_0x24f2('0x2e')==_0x47d435[_0x24f2('0x27')]&&_0x47d435['data'][_0x24f2('0x72')]==_0x205eb4&&_0x47d435['isIntersectingWithRange'](_0x35c10e));if('default'===this[_0x24f2('0x77')]){const _0xb1e44b=this[_0x24f2('0x3')](_0x35c10e,_0x24f2('0x94'))[_0x24f2('0x159')](({meta:_0x45263e})=>_0x45263e[_0x24f2('0xd3')]&&!_0x45263e[_0x24f2('0x12f')]&&!_0x45263e[_0x24f2('0x0')])[_0x24f2('0x2d')](({suggestion:_0x160bb6})=>_0x160bb6);_0x18b5ff[_0x24f2('0x33')](..._0xb1e44b);}const _0x1a07ff=new Map([[_0x35c10e,_0x1c7f4a]]);for(const _0x2f789a of _0x18b5ff){const _0x261ad1=_0x24f2('0x2e')==_0x2f789a[_0x24f2('0x27')]?_0x2f789a[_0x24f2('0x3e')]['oldValue']:void 0x0,_0xa49337=_0x2f789a['getFirstRange'](),_0x269d95=Array[_0x24f2('0x51')](_0x1a07ff[_0x24f2('0x4e')]())[_0x24f2('0x128')](_0x47a609=>_0x47a609[_0x24f2('0x16e')](_0xa49337));if(!_0x269d95)continue;const _0x313224=_0x269d95[_0x24f2('0x1f')](_0xa49337);this[_0x24f2('0x13d')](_0x205eb4)&&'insertion'==_0x2f789a['type']&&0x0!=_0x313224[_0x24f2('0xe8')]||(_0x1a07ff[_0x24f2('0x36')](_0x269d95),_0x313224[_0x24f2('0x177')](_0xb54925=>{_0x1a07ff['set'](_0xb54925,_0x1c7f4a);}),_0x24f2('0x94')!=_0x2f789a[_0x24f2('0x27')]&&_0x261ad1!=_0x74909d&&_0x1a07ff[_0x24f2('0x13')](_0x269d95['getIntersection'](_0xa49337),_0x261ad1));}const _0x1eb0fa=[];for(const [_0x41e2d5,_0x10fd87]of _0x1a07ff){const _0x75e3f2=_0x4f0f07(),_0x434de8={'key':_0x205eb4,'oldValue':_0x10fd87,'newValue':_0x74909d};_0x205eb4['length']>0x25&&console['warn'](_0x24f2('0x179'),{'key':_0x205eb4});const _0x325677=('attribute:'+(_0x205eb4+'|'+Rt({'newValue':_0x74909d})))[_0x24f2('0xc5')](0x0,0x3c),_0x5cd322=this['_setSuggestionData']({'id':_0x75e3f2,'type':_0x325677,'data':_0x434de8,'createdAt':new Date(),'authorId':_0x2de5d4,'attributes':_0x248fc8});_0x1eb0fa['push'](_0x5cd322),this['_addSuggestionMarker'](_0x325677,_0x75e3f2,_0x2de5d4,_0x41e2d5);}return _0x1eb0fa;}[_0x24f2('0x12e')](_0x5c3f09){this[_0x24f2('0x8f')][_0x24f2('0x14')](_0x5c3f09);}['_registerInlineAttribute'](_0x5c1133){this[_0x24f2('0x45')][_0x24f2('0x14')](_0x5c1133);}[_0x24f2('0xde')](_0x3552f7,_0x11c292=[],_0x342d49=[]){this[_0x24f2('0x107')](_0x3552f7,(_0x583f9a,..._0x208fe9)=>{this['_recordAttributeChanges'](()=>{_0x583f9a(..._0x208fe9);});});for(const _0x5c7efb of _0x11c292)this[_0x24f2('0x37')](_0x5c7efb);for(const _0x2e5aeb of _0x342d49)this[_0x24f2('0x12e')](_0x2e5aeb);}[_0x24f2('0x18')](_0x2440be,_0x56a49d){const _0x19efb5=_0x2440be[_0x24f2('0x11a')]();this[_0x24f2('0xa5')][_0x24f2('0x78')](_0x2e6b3f=>{_0x2e6b3f['updateMarker'](_0x19efb5,{'range':_0x56a49d});});}['_addThreadToSuggestion'](_0x1110d2){const _0x36a563=_0x1110d2['id'],_0x415e96=this[_0x24f2('0x151')][_0x24f2('0x173')]['get'](_0x24f2('0xf6'));this['_commentsRepository'][_0x24f2('0x109')](_0x36a563)||this[_0x24f2('0x9c')][_0x24f2('0x1e')]({'channelId':_0x415e96,'threadId':_0x36a563,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x482ac5=this[_0x24f2('0x9c')]['getCommentThread'](_0x36a563);_0x482ac5['unbind']('isRemovable'),_0x482ac5[_0x24f2('0x57')]=!0x1,_0x1110d2[_0x24f2('0x10c')]=_0x482ac5;}[_0x24f2('0xf1')](_0x577a07,_0x33d7af,_0x12e158,_0xb2f6fd){if(_0x577a07[_0x24f2('0x27')]!=_0x33d7af||_0x577a07[_0x24f2('0x15')]!=_0x12e158||_0x577a07[_0x24f2('0x64')]['id']!=_0xb2f6fd)throw this[_0x24f2('0x151')][_0x24f2('0xad')]('track-changes-suggestion-data-mismatch'),new _0x1937ba(_0x24f2('0x118'),this);}[_0x24f2('0x134')](_0x45dd5b,_0x766a8e){const _0xfa70a0=_0x45dd5b[_0x24f2('0x126')]();if(_0x766a8e['isEqual'](_0xfa70a0))_0x45dd5b['removeMarkers']();else{if(_0xfa70a0[_0x24f2('0x114')](_0x766a8e)){const _0x5da62c=this['_model'][_0x24f2('0x79')](_0x766a8e[_0x24f2('0x83')][_0x24f2('0x9a')],'end');this['_setSuggestionRange'](_0x45dd5b,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0xfa70a0['start'],_0x5da62c));const _0xf2493c=_0x4f0f07(),_0x531d0c=_0x45dd5b[_0x24f2('0x64')]['id'],_0x44a802=_0x45dd5b[_0x24f2('0x27')]+':'+_0x45dd5b[_0x24f2('0x15')];this['_setSuggestionData']({'id':_0xf2493c,'type':_0x44a802,'createdAt':new Date(),'authorId':_0x531d0c,'data':_0x45dd5b[_0x24f2('0x3e')],'attributes':_0x45dd5b[_0x24f2('0x149')]});const _0xc34d00=this[_0x24f2('0xa5')]['createPositionAt'](_0x766a8e[_0x24f2('0x16d')][_0x24f2('0x112')],_0x24f2('0x102')),_0x1d4eae=this['_model']['createRange'](_0xc34d00,_0xfa70a0[_0x24f2('0x16d')]);this[_0x24f2('0x132')](_0x44a802,_0xf2493c,_0x531d0c,_0x1d4eae);}else{if(_0xfa70a0[_0x24f2('0xdc')](_0x766a8e[_0x24f2('0x83')])){const _0xd2928b=this['_model']['createPositionAt'](_0x766a8e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45dd5b,this['_model'][_0x24f2('0x5d')](_0xfa70a0[_0x24f2('0x83')],_0xd2928b));}else{const _0x7ad4ce=this['_model'][_0x24f2('0x79')](_0x766a8e['end'][_0x24f2('0x112')],_0x24f2('0x102'));this['_setSuggestionRange'](_0x45dd5b,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x7ad4ce,_0xfa70a0['end']));}}}}[_0x24f2('0x14a')](_0x1f8ca8){for(const {suggestion:_0x3ee735,meta:_0x207b0d}of this[_0x24f2('0x3')](_0x1f8ca8,_0x24f2('0x94'))){if(!_0x207b0d[_0x24f2('0xd3')])continue;const _0x333888=_0x3ee735['getRanges']();for(const _0x4dd76d of _0x333888)if(!_0x1f8ca8['getDifference'](_0x4dd76d)['length'])return!0x0;}return!0x1;}[_0x24f2('0x5e')](_0x11684e){const _0x2f1700=this['editor'][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))[_0x24f2('0x167')](_0x11684e);if(!_0x2f1700)throw new _0x1937ba(_0x24f2('0x7a'),this);return _0x2f1700;}[_0x24f2('0x175')](_0x52fa40){const _0x56dcab=this[_0x24f2('0x151')]['plugins']['get'](_0x24f2('0x91')),_0x2b9f60=_0x232543('external:'+_0x52fa40),_0xcc6728=_0x56dcab[_0x24f2('0x167')](_0x2b9f60);return _0xcc6728||_0x56dcab['addUser']({'id':_0x2b9f60,'name':_0x52fa40});}['_createSuggestion'](_0x228ce8,_0x96d104,_0x310935,_0x2cb6af,_0x5c66b8){const _0x388c56=this[_0x24f2('0x5e')](_0x2cb6af),_0xc183dd=this[_0x24f2('0x75')][_0x24f2('0x110')](_0x228ce8,_0x96d104,_0x310935,_0x388c56,_0x5c66b8,_0x1959eb=>this[_0x24f2('0x5b')](_0x310935,{'attributes':_0x1959eb}));return this[_0x24f2('0x74')](_0xc183dd,_0x24f2('0xdd'),()=>{this[_0x24f2('0x5b')](_0x310935,{'state':_0x24f2('0xef')});},{'priority':_0x24f2('0x8a')}),this[_0x24f2('0x74')](_0xc183dd,_0x24f2('0xf8'),()=>{this[_0x24f2('0x5b')](_0x310935,{'state':_0x24f2('0xd8')});},{'priority':_0x24f2('0x8a')}),this[_0x24f2('0xa4')]['set'](_0x310935,_0xc183dd),this[_0x24f2('0xcc')][_0x24f2('0x13')](_0xc183dd,'notReady'),_0xc183dd;}[_0x24f2('0xe7')](_0x2c26f3){const _0x33d50f=_0x2c26f3[_0x24f2('0x111')](':');return{'group':_0x33d50f[0x0],'type':_0x33d50f[0x1],'subType':_0x33d50f['length']>=0x5?_0x33d50f[0x2]:null,'id':_0x33d50f[_0x24f2('0xe8')]<0x5?_0x33d50f[0x2]:_0x33d50f[0x3],'authorId':_0x33d50f[_0x24f2('0xe8')]<0x5?_0x33d50f[0x3]:_0x33d50f[0x4],'markerCount':0x6==_0x33d50f[_0x24f2('0xe8')]?_0x33d50f[0x5]:null};}[_0x24f2('0xfe')](_0x1d441b,_0x39aae7,_0x10a6a7){const _0x552a20=_0x1d441b[_0x24f2('0x126')](),_0x2e8a21=_0x552a20[_0x24f2('0x83')],_0xe85e56=_0x552a20[_0x24f2('0x16d')];this[_0x24f2('0x18')](_0x1d441b,this['_model'][_0x24f2('0x5d')](_0x2e8a21,_0x39aae7));const _0x777bf8=_0x4f0f07(),_0x2a32a1=_0x1d441b['creator']['id'],_0x19de86=_0x1d441b[_0x24f2('0x27')]+(_0x1d441b['subType']?':'+_0x1d441b[_0x24f2('0x15')]:'');this[_0x24f2('0xee')]({'id':_0x777bf8,'type':_0x19de86,'createdAt':new Date(),'authorId':_0x2a32a1,'originalSuggestionId':_0x1d441b['id'],'attributes':_0x1d441b['attributes'],'data':_0x1d441b[_0x24f2('0x3e')]});const _0x6e6b54=Pt(_0x1d441b);(_0x24f2('0x3f')==_0x1d441b[_0x24f2('0x27')]||_0x6e6b54&&this[_0x24f2('0x13d')](_0x6e6b54))&&(_0x10a6a7=this[_0x24f2('0xa5')][_0x24f2('0x93')](_0x10a6a7[_0x24f2('0x112')])),this['_addSuggestionMarker'](_0x19de86,_0x777bf8,_0x2a32a1,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x10a6a7,_0xe85e56));}[_0x24f2('0x3')](_0x2e731a,_0x2e99fb=null){const _0x58f65f=[],_0x5a7f5e=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x91'))['me'];Array['isArray'](_0x2e731a)||(_0x2e731a=[_0x2e731a]);for(const _0x567d40 of this[_0x24f2('0x120')]()){if(!_0x567d40[_0x24f2('0x161')])continue;if(_0x2e99fb&&_0x567d40[_0x24f2('0x27')]!=_0x2e99fb)continue;let _0x13b940=!0x1;for(const _0x158bca of _0x567d40[_0x24f2('0x137')]()){for(const _0x3dce3e of _0x2e731a){const _0x3ed8b4=_0x3dce3e[_0x24f2('0x83')][_0x24f2('0xba')](_0x158bca['end'])||_0x3dce3e[_0x24f2('0x16d')]['isEqual'](_0x158bca[_0x24f2('0x83')]);if(_0x3ed8b4||_0x3dce3e[_0x24f2('0xbe')](_0x158bca)){const _0x176450=_0x3dce3e['containsRange'](_0x158bca)&&Tt(this['_model'][_0x24f2('0x10b')],_0x158bca[_0x24f2('0x83')],_0x3dce3e),_0x23e0cd=_0x158bca['containsRange'](_0x3dce3e)&&Tt(this[_0x24f2('0xa5')][_0x24f2('0x10b')],_0x3dce3e[_0x24f2('0x83')],_0x158bca);_0x58f65f[_0x24f2('0x44')]({'suggestion':_0x567d40,'meta':{'isOwn':_0x5a7f5e==_0x567d40['author'],'isNextTo':_0x3ed8b4,'isInsideObject':_0x176450,'containsRangeInObject':_0x23e0cd}}),_0x13b940=!0x0;break;}}if(_0x13b940)break;}}return _0x58f65f;}[_0x24f2('0x132')](_0x7be702,_0x203c3c,_0x12fb90,_0x21c416,_0x8c8207){this['_model'][_0x24f2('0x78')](_0x8ec817=>{let _0x4d4e55=_0x24f2('0xca')+_0x7be702+':'+_0x203c3c+':'+_0x12fb90;_0x8c8207&&(_0x4d4e55=_0x4d4e55+':'+_0x8c8207),_0x8ec817[_0x24f2('0x10d')](_0x4d4e55,{'range':_0x21c416,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x24f2('0xe4')](_0x227a13){const _0x45a5c7=_0x227a13[_0x24f2('0xfd')],_0x388c9b=_0x227a13[_0x24f2('0x81')];_0x227a13[_0x24f2('0xfd')]=null,_0x227a13['next']=null,null!=_0x45a5c7&&(_0x45a5c7['next']=_0x388c9b),null!=_0x388c9b&&(_0x388c9b[_0x24f2('0xfd')]=_0x45a5c7),_0x24f2('0xfc')==this[_0x24f2('0xcc')][_0x24f2('0xb2')](_0x227a13)&&(this[_0x24f2('0xcc')]['set'](_0x227a13,_0x24f2('0x15e')),this[_0x24f2('0x100')]('suggestionUnloaded',_0x227a13,_0x45a5c7,_0x388c9b));}[_0x24f2('0xee')](_0x49fe40){const _0x31d57a=_0x49fe40['id'],_0x18cec7=this[_0x24f2('0xdf')](_0x49fe40);if(this[_0x24f2('0x147')]&&this['_adapter'][_0x24f2('0xd7')]){const _0x45d842=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x116')),_0x559aa5=_0x18cec7[_0x24f2('0x31')],_0x1fc9a1=_0x18cec7[_0x24f2('0x15')]?_0x18cec7[_0x24f2('0x27')]+':'+_0x18cec7[_0x24f2('0x15')]:_0x18cec7[_0x24f2('0x27')],_0x3725c7=this[_0x24f2('0x151')]['locale'],_0x5100ca=_0x45d842[_0x24f2('0x14')](_0x46785b(_0x3725c7,_0x24f2('0xac'))),_0x19f3ba={'id':_0x31d57a,'type':_0x1fc9a1,'hasComments':_0x559aa5,'data':_0x49fe40[_0x24f2('0x3e')]||null,'originalSuggestionId':_0x49fe40[_0x24f2('0xe0')]||null,'attributes':_0x18cec7[_0x24f2('0x149')]};this['_adapter'][_0x24f2('0xd7')](_0x19f3ba)[_0x24f2('0x171')](_0x2ada96=>{_0x18cec7[_0x24f2('0xa')]=!0x0,_0x45d842[_0x24f2('0x87')](_0x5100ca),_0x2ada96&&_0x2ada96[_0x24f2('0x115')]&&(this[_0x24f2('0xa4')]['get'](_0x31d57a)[_0x24f2('0x115')]=_0x2ada96[_0x24f2('0x115')]);})['catch'](_0x35aacd=>{throw _0x40d91e(_0x24f2('0x97')),this['editor'][_0x24f2('0x48')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x18cec7[_0x24f2('0xf8')]();}),_0x18cec7[_0x24f2('0x12')](),this['_suggestions'][_0x24f2('0x36')](_0x18cec7['id']),this[_0x24f2('0xcc')][_0x24f2('0x36')](_0x18cec7),_0x35aacd;});}return _0x18cec7;}[_0x24f2('0x13d')](_0x1253da){return this['_blockAttributeKeys'][_0x24f2('0x113')](_0x1253da);}[_0x24f2('0x5b')](_0x59508b,_0x427f0a){const _0xe629f4=this[_0x24f2('0x151')][_0x24f2('0x4a')][_0x24f2('0xb2')](_0x24f2('0x116')),_0x4bea3a=this['getSuggestion'](_0x59508b);if(this[_0x24f2('0x147')]&&this['_adapter'][_0x24f2('0xcd')]){if(_0x4bea3a[_0x24f2('0xa')]){const _0xb6521b=_0xe629f4['add'](_0x46785b(this['editor'][_0x24f2('0x5')],_0x24f2('0xac')));this[_0x24f2('0x147')][_0x24f2('0xcd')](_0x59508b,_0x427f0a)[_0x24f2('0x171')](()=>{_0xe629f4['remove'](_0xb6521b);});}else _0x4bea3a['on']('change:_saved',()=>{this[_0x24f2('0x5b')](_0x59508b,_0x427f0a);});}}[_0x24f2('0xc4')](_0x5466b3){if(!this[_0x24f2('0x147')]||!this[_0x24f2('0x147')][_0x24f2('0x169')])throw new _0x1937ba(_0x24f2('0x41'),this);return this[_0x24f2('0x147')][_0x24f2('0x169')](_0x5466b3);}[_0x24f2('0x61')](_0x5013eb){const {id:_0x9646f1,type:_0x4f25d8,subType:_0x514a8e,authorId:_0x4f1257}=this[_0x24f2('0xe7')](_0x5013eb),_0xfa5953=this[_0x24f2('0xa4')]['get'](_0x9646f1)||this[_0x24f2('0xc8')](_0x4f25d8,_0x514a8e,_0x9646f1,_0x4f1257,{});switch(this[_0x24f2('0xf1')](_0xfa5953,_0x4f25d8,_0x514a8e,_0x4f1257),this[_0x24f2('0xcc')][_0x24f2('0xb2')](_0xfa5953)){case _0x24f2('0x19'):this[_0x24f2('0xc4')](_0x9646f1)['then'](_0x57829=>{let _0x240069=Promise['resolve']();_0x57829[_0x24f2('0x31')]&&(_0x240069=this['_commentsRepository'][_0x24f2('0x7e')]({'channelId':this[_0x24f2('0x151')][_0x24f2('0x173')]['get'](_0x24f2('0xf6')),'threadId':_0x9646f1})),_0x240069[_0x24f2('0x171')](()=>{this[_0x24f2('0xdf')](_0x57829)[_0x24f2('0xa')]=!0x0;});}),this[_0x24f2('0xcc')][_0x24f2('0x13')](_0xfa5953,_0x24f2('0x129'));break;case _0x24f2('0x15e'):this[_0x24f2('0x5b')](_0x9646f1,{'state':'open'});case _0x24f2('0x136'):this[_0x24f2('0xcc')]['set'](_0xfa5953,_0x24f2('0xfc')),this[_0x24f2('0x100')](_0x24f2('0x13f'),_0xfa5953);break;case _0x24f2('0xfc'):this[_0x24f2('0x100')](_0x24f2('0xa6'),_0xfa5953);}return _0xfa5953[_0x24f2('0x153')](_0x5013eb),_0xfa5953;}[_0x24f2('0x15a')](_0xe0c8fd){const _0x33e2ac=Array[_0x24f2('0x51')](_0xe0c8fd),_0x26fc4f=_0x33e2ac['filter'](_0x30fa21=>'attribute'==_0x30fa21[_0x24f2('0x27')]);this[_0x24f2('0xce')](_0x26fc4f);const _0x421424=_0x33e2ac['filter'](_0x4627=>!_0x4627[_0x24f2('0x2')]&&_0x24f2('0x2e')!=_0x4627[_0x24f2('0x27')]),_0x56edaa=this[_0x24f2('0x120')]({'skipNotAttached':!0x0})['filter'](_0x81fc69=>!_0x81fc69[_0x24f2('0x2')]&&_0x24f2('0x2e')!=_0x81fc69[_0x24f2('0x27')]),_0x565abd=_0x56edaa[_0x24f2('0x159')](_0x278ba6=>!_0xe0c8fd[_0x24f2('0x113')](_0x278ba6)),_0x15dc01=new Map(_0x56edaa['map'](_0x133f46=>[_0x133f46,this[_0x24f2('0x75')]['getSuggestionCallback'](_0x133f46[_0x24f2('0x27')],_0x133f46['subType'],_0x24f2('0x124'))])),_0x2b3adf=new Map(_0x56edaa[_0x24f2('0x2d')](_0x87d50f=>[_0x87d50f,_0x87d50f[_0x24f2('0x126')]()])),_0x35806f=new Set(),_0x11f1b3=new Set();for(let _0x135a42=0x0;_0x135a42<_0x421424['length'];_0x135a42++)_0xee1b33(_0x421424[_0x135a42],_0x421424,_0x135a42+0x1);for(let _0x1377f7=0x0;_0x1377f7<_0x421424[_0x24f2('0xe8')];_0x1377f7++)_0xee1b33(_0x421424[_0x1377f7],_0x565abd,0x0);const _0x3937db=new Set();for(let _0x36770d=0x0;_0x36770d<_0x421424[_0x24f2('0xe8')];_0x36770d++){const _0x2629cd=_0x421424[_0x36770d];!_0x11f1b3[_0x24f2('0x113')](_0x2629cd)&&_0x2629cd[_0x24f2('0xfd')]&&(_0x3937db['add'](_0x2629cd[_0x24f2('0xfd')]),_0x2629cd['previous']['next']===_0x2629cd&&(_0x2629cd['previous']['next']=null),_0x2629cd[_0x24f2('0xfd')]=null),!_0x35806f[_0x24f2('0x113')](_0x2629cd)&&_0x2629cd[_0x24f2('0x81')]&&(_0x3937db['add'](_0x2629cd[_0x24f2('0x81')]),_0x2629cd['next'][_0x24f2('0xfd')]===_0x2629cd&&(_0x2629cd['next']['previous']=null),_0x2629cd['next']=null);}function _0xee1b33(_0x2ff590,_0x3b903f,_0x12a5f2){for(let _0x4ad2c0=_0x12a5f2;_0x4ad2c0<_0x3b903f[_0x24f2('0xe8')];_0x4ad2c0++){const _0x49f9ab=_0x3b3fe(_0x2ff590,_0x3b903f[_0x4ad2c0]);_0x49f9ab&&(_0x49f9ab[0x0]['next']=_0x49f9ab[0x1],_0x49f9ab[0x1][_0x24f2('0xfd')]=_0x49f9ab[0x0],_0x35806f['add'](_0x49f9ab[0x0]),_0x11f1b3[_0x24f2('0x14')](_0x49f9ab[0x1]));}}function _0x3b3fe(_0x2ae43d,_0x3fcc60){if(_0x2ae43d['author']['id']!==_0x3fcc60[_0x24f2('0x3d')]['id'])return null;const _0x4a3ddd=_0x15dc01[_0x24f2('0xb2')](_0x2ae43d)(_0x2ae43d,_0x3fcc60,_0x2b3adf[_0x24f2('0xb2')](_0x2ae43d),_0x2b3adf[_0x24f2('0xb2')](_0x3fcc60));if(!_0x4a3ddd)return null;return _0x15dc01[_0x24f2('0xb2')](_0x3fcc60)(_0x2ae43d,_0x3fcc60,_0x2b3adf[_0x24f2('0xb2')](_0x2ae43d),_0x2b3adf[_0x24f2('0xb2')](_0x3fcc60))?_0x4a3ddd[0x1][_0x24f2('0x10c')]&&_0x4a3ddd[0x1][_0x24f2('0x10c')][_0x24f2('0xe8')]?null:_0x4a3ddd:null;}_0x3937db['size']&&this[_0x24f2('0x15a')](_0x3937db);}['_refreshAttributeSuggestionsChain'](_0x390390){if(0x0==_0x390390[_0x24f2('0xe8')])return;const _0x538d0b=this[_0x24f2('0x120')]({'skipNotAttached':!0x0})[_0x24f2('0x159')](_0x463f7d=>_0x24f2('0x2e')==_0x463f7d['type']&&_0x463f7d[_0x24f2('0xb8')]),_0x187655=[],_0x54b602=new Map();for(const _0x3c3064 of _0x538d0b){const _0x29c91c=_0x232543(_0x3c3064[_0x24f2('0x149')]);_0x54b602[_0x24f2('0x113')](_0x29c91c)||(_0x54b602[_0x24f2('0x13')](_0x29c91c,_0x187655[_0x24f2('0xe8')]),_0x187655[_0x24f2('0x44')]([]));const _0x5e6b14=_0x54b602[_0x24f2('0xb2')](_0x29c91c);_0x187655[_0x5e6b14][_0x24f2('0x44')](_0x3c3064);}!function(){_0x187655[_0x24f2('0x157')]((_0xdac247,_0x59b765)=>{const _0x4871ef=_0xdac247[0x0][_0x24f2('0x115')],_0x121c35=_0x59b765[0x0][_0x24f2('0x115')];return _0x4871ef==_0x121c35?_0xdac247[0x0][_0x24f2('0x149')][_0x24f2('0x168')]<_0x59b765[0x0][_0x24f2('0x149')][_0x24f2('0x168')]?-0x1:0x1:_0x4871ef<_0x121c35?-0x1:0x1;});for(const _0x3938c6 of _0x187655)_0x3938c6[_0x24f2('0x157')]((_0x35a94c,_0x3f967e)=>_0x35a94c['id']<_0x3f967e['id']?-0x1:0x1);}();for(let _0x1f3e66=0x0;_0x1f3e66<_0x187655[_0x24f2('0xe8')];_0x1f3e66++){if(0x0==_0x187655[_0x1f3e66]['length'])continue;const _0x38d3f3=[];for(let _0x14edd7=_0x1f3e66+0x1;_0x14edd7<_0x187655[_0x24f2('0xe8')];_0x14edd7++)0x0!=_0x187655[_0x14edd7][_0x24f2('0xe8')]&&_0x1eaa84(_0x187655[_0x1f3e66],_0x187655[_0x14edd7])&&_0x38d3f3['push'](_0x14edd7);for(const _0x1c92cc of _0x38d3f3)_0x187655[_0x1f3e66]=_0x187655[_0x1f3e66][_0x24f2('0xb3')](_0x187655[_0x1c92cc]),_0x187655[_0x1c92cc]=[];}for(const _0x16187b of _0x187655)for(let _0x1e4b76=0x0;_0x1e4b76<_0x16187b[_0x24f2('0xe8')];_0x1e4b76++)_0x16187b[_0x1e4b76][_0x24f2('0x81')]=_0x16187b[_0x1e4b76+0x1]||null;for(const _0x47a8ce of _0x187655)for(let _0x3769e1=0x0;_0x3769e1<_0x47a8ce['length'];_0x3769e1++)_0x47a8ce[_0x3769e1]['previous']=_0x47a8ce[_0x3769e1-0x1]||null;function _0x1eaa84(_0x3fb731,_0x10327a){if(_0x3fb731[0x0]['author']!==_0x10327a[0x0][_0x24f2('0x3d')])return!0x1;if(!function(_0x3f83c2,_0x32baa0){if(!_0x3f83c2[_0x24f2('0x31')]&&!_0x32baa0['hasComments'])return!0x0;if(_0x3f83c2[_0x24f2('0x31')]&&_0x32baa0[_0x24f2('0x31')])return!0x1;if(_0x3f83c2[_0x24f2('0x31')]&&_0x32baa0['createdAt']<_0x3f83c2[_0x24f2('0x10c')][_0x24f2('0x3b')][_0x24f2('0xb2')](0x0)[_0x24f2('0x115')])return!0x0;if(_0x32baa0['hasComments']&&_0x3f83c2[_0x24f2('0x115')]<_0x32baa0[_0x24f2('0x10c')][_0x24f2('0x3b')][_0x24f2('0xb2')](0x0)[_0x24f2('0x115')])return!0x0;return!0x1;}(_0x3fb731[0x0],_0x10327a[0x0]))return!0x1;const _0xe2b539=_0x35f41d(_0x3fb731[0x0][_0x24f2('0x149')],_0x24f2('0x168')),_0x32ba32=_0x35f41d(_0x10327a[0x0]['attributes'],_0x24f2('0x168'));if(!_0x57a851(_0xe2b539,_0x32ba32))return!0x1;return!!_0x3fb731[_0x24f2('0x9f')](_0x3f703f=>_0x10327a['some'](_0x5ceb10=>_0x3f703f['getFirstRange']()['isEqual'](_0x5ceb10['getFirstRange']())))&&_0x10327a[_0x24f2('0x9f')](_0x3e1526=>_0x3fb731[_0x24f2('0x11')](_0x33d3c3=>_0x3e1526['getFirstRange']()[_0x24f2('0xba')](_0x33d3c3[_0x24f2('0x126')]())));}}[_0x24f2('0x1b')](_0x15be85){const _0x313b1b=Array[_0x24f2('0x51')](_0x15be85),_0x535d17=this['getSuggestions']({'skipNotAttached':!0x0}),_0x37d7a0=_0x535d17[_0x24f2('0x159')](_0x46363b=>!_0x15be85[_0x24f2('0x113')](_0x46363b)),_0x5c5ce4=new Map(_0x313b1b[_0x24f2('0x2d')](_0x555e39=>[_0x555e39,this[_0x24f2('0x75')][_0x24f2('0x156')](_0x555e39['type'],_0x555e39[_0x24f2('0x15')],'join')])),_0x8a2dc=new Map(_0x535d17[_0x24f2('0x2d')](_0x3cb04f=>[_0x3cb04f,_0x3cb04f['getRanges']()]));for(let _0xd563d9=0x0;_0xd563d9<_0x313b1b['length'];_0xd563d9++){if(_0xc2511f(this,_0x313b1b[_0xd563d9],_0x313b1b,_0xd563d9+0x1))return!0x0;}for(let _0x4c1ccc=0x0;_0x4c1ccc<_0x313b1b[_0x24f2('0xe8')];_0x4c1ccc++){if(_0xc2511f(this,_0x313b1b[_0x4c1ccc],_0x37d7a0,0x0))return!0x0;}return!0x1;function _0xc2511f(_0x3583e8,_0x4741dd,_0x2e1b2e,_0x2f4da4){for(let _0x230231=_0x2f4da4;_0x230231<_0x2e1b2e['length'];_0x230231++){const _0x3c2f44=_0x2e1b2e[_0x230231];if(_0x3c2f44[_0x24f2('0x27')]!==_0x4741dd[_0x24f2('0x27')]||_0x3c2f44[_0x24f2('0x3d')]['id']!==_0x4741dd['author']['id']||_0x3c2f44['subType']!==_0x4741dd[_0x24f2('0x15')])continue;if(!Vt(_0x4741dd,_0x3c2f44))continue;if('attribute'==_0x4741dd[_0x24f2('0x27')]&&_0x4741dd['data'][_0x24f2('0x73')]!=_0x3c2f44[_0x24f2('0x3e')][_0x24f2('0x73')])continue;if(_0x24f2('0x2e')==_0x4741dd[_0x24f2('0x27')]&&_0x3583e8[_0x24f2('0x13d')](_0x4741dd[_0x24f2('0x3e')]['key']))continue;if(_0x24f2('0x3f')==_0x4741dd[_0x24f2('0x27')]){const _0x197828=_0x3583e8[_0x24f2('0x151')][_0x24f2('0x48')],_0x1af861=_0x4741dd[_0x24f2('0x140')]();if(_0x1af861&&(_0x197828[_0x24f2('0x10b')][_0x24f2('0x59')](_0x1af861)||_0x197828['schema'][_0x24f2('0x176')](_0x1af861)))continue;}const _0x2a7e1a=_0x5c5ce4[_0x24f2('0xb2')](_0x4741dd),_0x4d80a3=_0x8a2dc[_0x24f2('0xb2')](_0x4741dd),_0x1e2630=_0x8a2dc[_0x24f2('0xb2')](_0x3c2f44),_0x3e5d3f=_0x4741dd[_0x24f2('0x10c')]&&_0x4741dd[_0x24f2('0x10c')][_0x24f2('0xe8')],_0x5b59bc=_0x3c2f44[_0x24f2('0x10c')]&&_0x3c2f44[_0x24f2('0x10c')][_0x24f2('0xe8')];if(!_0x3e5d3f&&_0x2a7e1a(_0x1e2630,_0x4d80a3))return _0x3583e8['_joinSuggestions'](_0x3c2f44,_0x4741dd),_0x8a2dc[_0x24f2('0x36')](_0x4741dd),!0x0;if(!_0x5b59bc&&_0x2a7e1a(_0x4d80a3,_0x1e2630))return _0x3583e8[_0x24f2('0xe3')](_0x4741dd,_0x3c2f44),_0x8a2dc[_0x24f2('0x36')](_0x3c2f44),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4be695,_0x518641){if(_0x4be695[_0x24f2('0x2')])for(const _0x173dd4 of _0x518641[_0x24f2('0x137')]())_0x4be695[_0x24f2('0xd1')](_0x173dd4);else{const _0x507140=_0x518641[_0x24f2('0x126')]()[_0x24f2('0x16d')];this[_0x24f2('0x18')](_0x4be695,this[_0x24f2('0xa5')][_0x24f2('0x5d')](_0x4be695[_0x24f2('0x126')]()['start'],_0x507140));}_0x518641['removeMarkers']();}[_0x24f2('0xf5')](_0xd3f382,_0x2c6ffa){const _0x3c508a=_0xd3f382[_0x24f2('0xd5')]('format')||_0xd3f382[_0x24f2('0xd5')](_0x24f2('0x2e'))?_0x24f2('0x8d'):_0xd3f382[_0x24f2('0x11b')]();return _0x46785b(this[_0x24f2('0x151')][_0x24f2('0x5')],_0x2c6ffa+'_'+_0x3c508a+_0x24f2('0x20'));}[_0x24f2('0x9e')](){const _0x300f68=this['editor'];_0x492056(this['_model'],({left:_0x2bf37c,entered:_0x1ed2b9})=>{const _0x44e70f=[];for(const _0x5d8a7b of _0x2bf37c){const {group:_0xdb1f85,type:_0x21edec}=this[_0x24f2('0xe7')](_0x5d8a7b[_0x24f2('0xf9')]);if(_0x24f2('0x7f')===_0xdb1f85){_0x44e70f['push'](this[_0x24f2('0xf5')](_0x21edec,_0x24f2('0x146')));break;}}for(const _0x3d4edd of _0x1ed2b9){const {group:_0x41c251,type:_0x3e3651}=this[_0x24f2('0xe7')](_0x3d4edd[_0x24f2('0xf9')]);if('suggestion'===_0x41c251){_0x44e70f[_0x24f2('0x44')](this['_getMarkerAnnouncementText'](_0x3e3651,'ENTER'));break;}}_0x44e70f[_0x24f2('0xe8')]&&_0x300f68['ui'][_0x24f2('0x1a')][_0x24f2('0x88')](_0x24f2('0x11d'),_0x44e70f[_0x24f2('0x17')]('\x20'));});}[_0x24f2('0xcb')](_0x30a4ad){if(null!==this[_0x24f2('0x103')])return!0x1;const _0x1312ca=this[_0x24f2('0x151')],_0x1d39f4=_0x1312ca['model'][_0x24f2('0x6b')][_0x24f2('0x39')]['getChanges']();if(0x0==_0x1d39f4[_0x24f2('0xe8')])return!0x1;const _0x15e8ef=[],_0x40acd0=_0x1d39f4[_0x24f2('0x159')](_0x14bbb6=>_0x24f2('0x2e')==_0x14bbb6[_0x24f2('0x27')]),_0x270e7e=_0x1d39f4['filter'](_0x59c781=>_0x24f2('0x67')==_0x59c781['type']&&_0x24f2('0x99')!=_0x59c781['name']),_0x2e5652=_0x1d39f4[_0x24f2('0x159')](_0x30f01b=>_0x24f2('0x87')==_0x30f01b[_0x24f2('0x27')]&&'$text'!=_0x30f01b['name']);for(const _0x46b1ff of _0x40acd0)_0x15e8ef[_0x24f2('0x44')]({'key':_0x46b1ff[_0x24f2('0x160')],'newValue':_0x46b1ff[_0x24f2('0x14c')],'oldValue':_0x46b1ff[_0x24f2('0x154')],'range':_0x599448(_0x46b1ff['range'])});for(const _0x570cfc of _0x270e7e){const _0x48c0a5=_0x2e5652[_0x24f2('0x128')](_0x3a8fdd=>_0x3a8fdd[_0x24f2('0x131')][_0x24f2('0xba')](_0x570cfc['position']));_0x48c0a5&&_0x15e8ef[_0x24f2('0x44')]({'key':'$elementName','newValue':_0x570cfc[_0x24f2('0xf9')],'oldValue':_0x48c0a5[_0x24f2('0xf9')],'range':_0x1312ca[_0x24f2('0x48')][_0x24f2('0x6')](_0x570cfc[_0x24f2('0x131')][_0x24f2('0x15b')])});}return 0x0!=_0x15e8ef[_0x24f2('0xe8')]&&this[_0x24f2('0x119')](_0x30a4ad,_0x15e8ef);function _0x599448(_0x50c3ba){return null==_0x50c3ba[_0x24f2('0x16d')][_0x24f2('0x9a')]&&_0x50c3ba[_0x24f2('0x16d')][_0x24f2('0x112')]==_0x50c3ba[_0x24f2('0x83')][_0x24f2('0x15b')]?Ut(_0x50c3ba[_0x24f2('0x83')][_0x24f2('0x15b')],_0x1312ca['model']):_0x50c3ba;}}[_0x24f2('0xa0')](_0x27e8b0){let _0x1ab10f=!0x1;const _0x226ecb=this[_0x24f2('0x151')]['model'][_0x24f2('0x6b')][_0x24f2('0x39')][_0x24f2('0xc1')]()[_0x24f2('0x159')](_0x937f25=>_0x937f25['data'][_0x24f2('0xec')]&&_0x937f25['name']['startsWith'](_0x24f2('0x85')));for(const _0x354deb of _0x226ecb){const {subType:_0x394474,id:_0x1a1422}=this[_0x24f2('0xe7')](_0x354deb[_0x24f2('0xf9')]),_0x529f5b=_0x394474[_0x24f2('0x111')]('|')[0x0];for(const _0x435334 of this[_0x24f2('0x120')]({'skipNotAttached':!0x0}))_0x435334['id']!=_0x1a1422&&_0x24f2('0x2e')==_0x435334['type']&&_0x435334[_0x24f2('0x3e')]&&_0x435334[_0x24f2('0x3e')][_0x24f2('0x72')]==_0x529f5b&&_0x435334[_0x24f2('0x126')]()[_0x24f2('0x16e')](_0x354deb[_0x24f2('0x3e')][_0x24f2('0xec')])&&(this[_0x24f2('0xed')](_0x435334,_0x354deb[_0x24f2('0x3e')][_0x24f2('0xec')],_0x27e8b0),_0x1ab10f=!0x0);}return _0x1ab10f;}[_0x24f2('0x38')](_0x274d3c){if(null!==this[_0x24f2('0x103')])return void _0x274d3c();const _0x20950a=this[_0x24f2('0x151')];this[_0x24f2('0x103')]=_0x20950a['model'][_0x24f2('0x6b')][_0x24f2('0x89')],_0x274d3c();const _0x5e2f91=new Map();for(const _0x1d0ae3 of _0x20950a[_0x24f2('0x48')]['document'][_0x24f2('0x104')]['getOperations'](this[_0x24f2('0x103')]))if([_0x24f2('0x60'),_0x24f2('0x11c'),_0x24f2('0xc2'),_0x24f2('0x42')]['includes'](_0x1d0ae3['type'])){const _0x2e6d9a=_0x1d0ae3[_0x24f2('0xc3')],_0x41e02a=_0x5e2f91[_0x24f2('0xb2')](_0x2e6d9a)||[];_0x41e02a['push'](_0x1d0ae3),_0x5e2f91[_0x24f2('0x13')](_0x2e6d9a,_0x41e02a);}this[_0x24f2('0x103')]=null;for(const [_0x4d0c3c,_0x519c48]of _0x5e2f91){const _0x5c3d4a=_0x4f0f07();_0x20950a[_0x24f2('0x48')]['enqueueChange'](_0x4d0c3c,_0x45ae4b=>{const _0x227082=[];for(const _0x225919 of _0x519c48){let _0x16ce2b,_0x4a3eff,_0x2d8bf0,_0x2014a4;if(_0x24f2('0x60')==_0x225919[_0x24f2('0x27')]){const _0x3934fa=_0x225919;_0x16ce2b=Ut(_0x3934fa[_0x24f2('0x131')][_0x24f2('0x15b')],_0x20950a[_0x24f2('0x48')]),_0x4a3eff=_0x24f2('0x66'),_0x2d8bf0=_0x3934fa[_0x24f2('0x158')],_0x2014a4=_0x3934fa[_0x24f2('0x26')];}else{const _0x58385e=_0x225919,_0x310f87=this['_isBlockAttribute'](_0x58385e['key']),_0xa67d11=this[_0x24f2('0x45')]['has'](_0x58385e['key']);if(!_0x310f87&&!_0xa67d11)continue;_0x16ce2b=_0x310f87?Ut(_0x58385e[_0x24f2('0x53')]['start'][_0x24f2('0x15b')],_0x20950a['model']):_0x58385e[_0x24f2('0x53')],_0x4a3eff=_0x58385e[_0x24f2('0x72')],_0x2d8bf0=_0x24f2('0xc2')==_0x225919[_0x24f2('0x27')]?void 0x0:_0x58385e[_0x24f2('0x14d')],_0x2014a4=_0x58385e[_0x24f2('0x73')];}this['markAttributeChange'](_0x16ce2b,_0x4a3eff,_0x2014a4,_0x2d8bf0,{'groupId':_0x5c3d4a}),_0x227082['push']({'range':_0x16ce2b,'key':_0x4a3eff,'newValue':_0x2d8bf0,'oldValue':_0x2014a4});}this['_reduceExistingSuggestions'](_0x45ae4b,_0x227082);});}}[_0x24f2('0x119')](_0x559583,_0x3451b2){if(0x0==_0x3451b2[_0x24f2('0xe8')])return!0x1;let _0xd35416=!0x1;for(const _0x5c0d44 of _0x3451b2){const _0x2cf948=this[_0x24f2('0x3')](_0x5c0d44[_0x24f2('0x53')],_0x24f2('0x2e'))[_0x24f2('0x159')](_0x4f963c=>!_0x4f963c[_0x24f2('0x13b')][_0x24f2('0x0')])[_0x24f2('0x2d')](_0x76a17d=>_0x76a17d[_0x24f2('0x7f')]),_0x3fbe14=_0x232543({'newValue':_0x5c0d44[_0x24f2('0x14d')]});_0x2cf948[_0x24f2('0x159')](_0x5ae6ba=>{const [_0x35e2e8,_0x27ac9b]=_0x5ae6ba[_0x24f2('0x15')][_0x24f2('0x111')]('|');return _0x35e2e8==_0x5c0d44[_0x24f2('0x72')]&&_0x27ac9b!=_0x3fbe14;})[_0x24f2('0x177')](_0x55528f=>{this[_0x24f2('0xed')](_0x55528f,_0x5c0d44[_0x24f2('0x53')],_0x559583),_0xd35416=!0x0;});}return _0xd35416;}['_reduceSuggestionAttributeRange'](_0x25c2e4,_0x488924,_0xefebab){const _0x3ec868=_0x25c2e4[_0x24f2('0x126')]()[_0x24f2('0x1f')](_0x488924);0x0!==_0x3ec868[_0x24f2('0xe8')]?0x1!==_0x3ec868['length']?this[_0x24f2('0xfe')](_0x25c2e4,_0x488924[_0x24f2('0x83')],_0x488924[_0x24f2('0x16d')]):this[_0x24f2('0x18')](_0x25c2e4,_0x3ec868[0x0]):_0xefebab[_0x24f2('0x15c')](_0x25c2e4['getFirstMarker']());}}class Bt{constructor(_0x236e1f){this[_0x24f2('0xc7')]=_0x236e1f,this[_0x24f2('0xa5')]=_0x236e1f[_0x24f2('0x48')],this[_0x24f2('0x24')]=new Map(),this[_0x24f2('0xc')]=new Map(),this[_0x24f2('0x9b')]();}['buildSuggestion'](_0x22aa51,_0x9f2078,_0x5f581d,_0x5a6dcc,_0x28e9f0,_0x484fdb){return new _0x897dd2(this[_0x24f2('0xa5')],{'type':_0x22aa51,'subType':_0x9f2078,'id':_0x5f581d,'author':_0x5a6dcc,'creator':_0x5a6dcc,'attributes':_0x28e9f0,'onAttributesChange':_0x484fdb,'onAccept':(..._0x643d0)=>this['getSuggestionCallback'](_0x22aa51,_0x9f2078,'accept')(..._0x643d0),'onDiscard':(..._0x586766)=>this[_0x24f2('0x156')](_0x22aa51,_0x9f2078,_0x24f2('0xf8'))(..._0x586766)});}[_0x24f2('0xd4')](_0x5279ca,_0x1053c1,_0x188323,_0x2e4806){const _0x3c6fdd=_0x5279ca+':'+_0x1053c1+':'+_0x188323;this[_0x24f2('0x24')]['set'](_0x3c6fdd,_0x2e4806);}['getSuggestionCallback'](_0x454330,_0x665a69,_0x460a5d){const _0x21b7b6=_0x454330+':'+_0x665a69+':'+_0x460a5d;return this['_customCallbacks'][_0x24f2('0xb2')](_0x21b7b6)||this[_0x24f2('0xc')]['get'](_0x454330+':'+_0x460a5d);}['_registerDefaultCallbacks'](){const _0x4d1622=()=>!0x1,_0x4d4b53=_0x1c9500=>{_0x1c9500['sort']((_0x1dcb61,_0x39dde9)=>_0x1dcb61[_0x24f2('0x83')][_0x24f2('0xae')](_0x39dde9[_0x24f2('0x83')])?0x1:-0x1),this[_0x24f2('0xa5')][_0x24f2('0x78')](_0x1cff28=>{for(const _0x4ef710 of _0x1c9500){let _0x3f41f9;_0x3f41f9=_0x4ef710[_0x24f2('0x16d')][_0x24f2('0x133')]&&_0x4ef710[_0x24f2('0x16d')][_0x24f2('0x112')]==_0x4ef710[_0x24f2('0x83')][_0x24f2('0x15b')]?_0x1cff28[_0x24f2('0x4d')](_0x4ef710[_0x24f2('0x83')][_0x24f2('0x15b')],'on'):_0x1cff28['createSelection'](_0x4ef710),this[_0x24f2('0xa5')]['deleteContent'](_0x3f41f9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x38d2b4=(_0x262078,_0x4b8ff5)=>{_0x4b8ff5&&this[_0x24f2('0xa5')][_0x24f2('0x78')](_0x4378f1=>{const {commandName:_0x134dcf,commandParams:_0x2620fb=[]}=_0x4b8ff5,_0x15f2a0=_0x262078['map'](_0x29e3c3=>(xt(_0x29e3c3)&&(_0x29e3c3=this['_model']['createRange'](_0x29e3c3[_0x24f2('0x16d')])),_0x29e3c3))['filter'](_0x5ce462=>_0x24f2('0x90')!==_0x5ce462[_0x24f2('0x2f')][_0x24f2('0x32')]);if(_0x15f2a0[_0x24f2('0xe8')]<0x1)return;const _0x4921ce=Array['from'](this[_0x24f2('0xa5')][_0x24f2('0x6b')]['selection']['getRanges']())[_0x24f2('0x2d')](_0x5530e7=>_0x353646['fromRange'](_0x5530e7));_0x4378f1[_0x24f2('0xc0')](_0x15f2a0);for(const _0x3917e3 of this['_editor'][_0x24f2('0x138')]['commands']())_0x3917e3[_0x24f2('0x16a')]();_0x2620fb[_0x24f2('0x44')]({'forceDefaultExecution':!0x0}),this[_0x24f2('0xc7')][_0x24f2('0x16')](_0x134dcf,..._0x2620fb);const _0x2d8397=_0x4921ce[_0x24f2('0x159')](_0x124943=>_0x24f2('0x90')!=_0x124943[_0x24f2('0x2f')][_0x24f2('0x32')]);_0x2d8397[_0x24f2('0xe8')]>0x0&&_0x4378f1[_0x24f2('0xc0')](_0x2d8397);for(const _0x21b54c of _0x4921ce)_0x21b54c[_0x24f2('0x4')]();});},_0x13c505=(_0x5d4b01,_0x6c667)=>0x1==_0x5d4b01[_0x24f2('0xe8')]&&0x1==_0x6c667['length']&&_0x5d4b01[0x0][_0x24f2('0x16d')][_0x24f2('0xba')](_0x6c667[0x0][_0x24f2('0x83')]),_0x58b662=(_0xd459c,_0x42b9a4,_0x191313,_0x5caecf)=>Ot(_0xd459c,_0x42b9a4,_0x191313,_0x5caecf,this[_0x24f2('0xa5')])?[_0xd459c,_0x42b9a4]:Ot(_0x42b9a4,_0xd459c,_0x5caecf,_0x191313,this[_0x24f2('0xa5')])?[_0x42b9a4,_0xd459c]:null;this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0xf3'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('insertion:discard',_0x4d4b53),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x145'),_0x13c505),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x6d'),_0x58b662),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x6c'),_0x4d4b53),this['_defaultCallbacks'][_0x24f2('0x13')]('deletion:discard',_0x4d1622),this[_0x24f2('0xc')]['set'](_0x24f2('0x11f'),_0x13c505),this[_0x24f2('0xc')][_0x24f2('0x13')]('deletion:chain',_0x58b662),this['_defaultCallbacks'][_0x24f2('0x13')](_0x24f2('0x163'),_0x38d2b4),this['_defaultCallbacks'][_0x24f2('0x13')](_0x24f2('0x86'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('formatInline:join',_0x13c505),this['_defaultCallbacks'][_0x24f2('0x13')]('formatInline:chain',_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x2a'),_0x38d2b4),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x108'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x6a'),_0x13c505),this[_0x24f2('0xc')][_0x24f2('0x13')](_0x24f2('0x55'),_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('attribute:accept',_0x4d1622),this[_0x24f2('0xc')][_0x24f2('0x13')]('attribute:discard',(_0x5317b3,_0x3d5207)=>{if(!_0x3d5207)return;const _0x578153=this[_0x24f2('0xc7')][_0x24f2('0x4a')][_0x24f2('0xb2')](p);this['_model'][_0x24f2('0x78')](_0x25ccb0=>{if(_0x24f2('0x66')==_0x3d5207[_0x24f2('0x72')])for(const _0x4d8d29 of _0x5317b3){const _0xc5afbe=_0x4d8d29[_0x24f2('0x83')][_0x24f2('0x15b')],_0x3cc3c4=_0x3d5207[_0x24f2('0x73')];_0x25ccb0[_0x24f2('0x60')](_0xc5afbe,_0x3cc3c4);}else{if(_0x578153[_0x24f2('0x13d')](_0x3d5207[_0x24f2('0x72')]))for(const _0x5150be of _0x5317b3)void 0x0!==_0x3d5207[_0x24f2('0x73')]?_0x25ccb0['setAttribute'](_0x3d5207[_0x24f2('0x72')],_0x3d5207[_0x24f2('0x73')],_0x5150be[_0x24f2('0x83')]['nodeAfter']):_0x25ccb0[_0x24f2('0xc2')](_0x3d5207[_0x24f2('0x72')],_0x5150be[_0x24f2('0x83')][_0x24f2('0x15b')]);else for(const _0x59cff9 of _0x5317b3)_0x3d5207[_0x24f2('0x73')]?_0x25ccb0[_0x24f2('0x2b')](_0x3d5207[_0x24f2('0x72')],_0x3d5207[_0x24f2('0x73')],_0x59cff9):_0x25ccb0['removeAttribute'](_0x3d5207[_0x24f2('0x72')],_0x59cff9);}});}),this[_0x24f2('0xc')][_0x24f2('0x13')]('attribute:join',_0x13c505);}}function Tt(_0x273299,_0x46f4f0,_0x586a4c){for(const _0x8b23cf of _0x46f4f0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x8b23cf['root']==_0x8b23cf)return!0x1;if(!_0x586a4c[_0x24f2('0xfb')](_0x8b23cf))return!0x1;if(_0x273299[_0x24f2('0x59')](_0x8b23cf)||_0x273299['isLimit'](_0x8b23cf))return!0x0;}return!0x1;}function xt(_0x502659){return _0x502659[_0x24f2('0x16d')]['parent']==_0x502659[_0x24f2('0x83')][_0x24f2('0x15b')]&&_0x502659[_0x24f2('0x16d')][_0x24f2('0xe')];}function Et(_0x3549a8,_0x507c35,_0x383b5c,_0x40e741){const _0x1a95e3=_0x3cfad4=>!_0x3cfad4[_0x24f2('0x65')]['is'](_0x24f2('0xbb'))&&!_0x40e741[_0x24f2('0x59')](_0x3cfad4[_0x24f2('0x65')]),_0x14f80b=_0x3549a8[_0x24f2('0x83')][_0x24f2('0x13e')](_0x1a95e3),_0x3a76ed=_0x3549a8[_0x24f2('0x16d')][_0x24f2('0x13e')](_0x1a95e3,{'direction':_0x24f2('0x155')});return(!_0x3549a8[_0x24f2('0x83')]['isEqual'](_0x14f80b)||!_0x3549a8[_0x24f2('0x16d')]['isEqual'](_0x3a76ed))&&(_0x14f80b[_0x24f2('0xae')](_0x3a76ed)?_0x383b5c[_0x24f2('0x10a')](_0x507c35,{'range':_0x383b5c[_0x24f2('0x5d')](_0x14f80b,_0x3a76ed)}):_0x383b5c[_0x24f2('0x15c')](_0x507c35),!0x0);}function Rt(_0x4e4b35){return _0x232543(_0x4e4b35);}function jt(_0x919ea){const _0x100465=_0x919ea[_0x24f2('0x83')][_0x24f2('0x15b')];return _0x100465&&_0x100465['is'](_0x24f2('0x28'));}function Ut(_0xfbcc69,_0x5d9832){const _0x3cdd03=_0x5d9832[_0x24f2('0x10b')][_0x24f2('0x59')](_0xfbcc69)||_0x5d9832[_0x24f2('0x10b')][_0x24f2('0x30')](_0xfbcc69);return _0x5d9832[_0x24f2('0x5d')](_0x5d9832[_0x24f2('0x79')](_0xfbcc69,_0x24f2('0x96')),_0x3cdd03?_0x5d9832[_0x24f2('0x25')](_0xfbcc69):_0x5d9832[_0x24f2('0x79')](_0xfbcc69,_0x24f2('0x16d')));}function Ot(_0x3a745e,_0x2526b2,_0x3b0665,_0x157c78,_0x9e4424){if(!Vt(_0x3a745e,_0x2526b2))return!0x1;if(_0x3b0665[_0x24f2('0x16d')][_0x24f2('0xba')](_0x157c78[_0x24f2('0x83')]))return!0x0;if(_0x3a745e[_0x24f2('0x27')]!=_0x2526b2[_0x24f2('0x27')])return!0x1;if(!_0x3b0665[_0x24f2('0x16d')][_0x24f2('0xd9')](_0x157c78[_0x24f2('0x83')]))return!0x1;const _0x4160be=_0x9e4424[_0x24f2('0x5d')](_0x3b0665[_0x24f2('0x16d')],_0x157c78[_0x24f2('0x83')])[_0x24f2('0x106')]();for(const _0x4dec67 of _0x4160be)if([_0x24f2('0xb6'),'elementEnd'][_0x24f2('0x105')](_0x4dec67[_0x24f2('0x27')])&&_0x9e4424[_0x24f2('0x10b')][_0x24f2('0x176')](_0x4dec67[_0x24f2('0x65')]))return!0x1;return!0x0;}function Vt(_0x3a30e4,_0x234923){return!(!_0x3a30e4['_isDataLoaded']||!_0x234923['_isDataLoaded'])&&_0x57a851(_0x3a30e4[_0x24f2('0x149')],_0x234923['attributes']);}function Gt(_0x245881,_0x13705d){const _0x4333d0=Ft(_0x245881[_0x24f2('0x149')]),_0x5cc03e=Ft(_0x13705d);if(!_0x245881[_0x24f2('0xb8')])return!0x1;for(const _0x4c540e of Object['keys'](_0x5cc03e))if(!_0x57a851(_0x4333d0[_0x4c540e],_0x5cc03e[_0x4c540e]))return!0x1;return!0x0;}function Ft(_0x329747){const _0x215c55=Object[_0x24f2('0x165')]({},_0x329747);return delete _0x215c55[_0x24f2('0x8c')],delete _0x215c55[_0x24f2('0xaf')],_0x215c55;}function Pt(_0x58a8a1){return _0x24f2('0x2e')==_0x58a8a1[_0x24f2('0x27')]?_0x58a8a1[_0x24f2('0x15')][_0x24f2('0x111')]('|')[0x0]:null;}
|
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
|
+
}
|