@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230929.0 → 0.0.0-nightly-20231001.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231001.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20231001.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231001.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5455=['isIntersectingWithRange','isDocumentOperation','fire','keys','getFirstMarker','fetchCommentThread','assign','isNextTo','consumable','addHighlight','author','getDifference','differ','@external','deletion:chain','forceDefaultExecution','insertion:discard','getAllAdjacentSuggestions','_refreshSuggestionsChain','options','consume','_setSuggestionData','applyOperation','range','unbind','createSelection','markBlockFormat','showSuggestionHighlights','commandName','filter','suggestionUnloaded','isEqual','selection','collaboration.channelId','nodeBefore','ck-suggestion-marker-formatBlock','isSelectable','formatInline:','_updateSuggestionData','ck-suggestion-marker-','nodeAfter','change','_joinWithAdjacentSuggestions','_commentsRepository','formatGroupId','PENDING_ACTION_SUGGESTION','isRemovable','acceptAllSuggestions','multi','_suggestionFactory','plugins','discardSelectedSuggestions','change:_saved','_checkSuggestionCorrectness','end','_findSuggestions','has','stop','ready','bindElementToMarker','_suggestionState','addSuggestion','stopListening','howMany','editor','createRange','insertion:chain','getShiftedBy','isAtEnd','next','deletion','_adapter','formatInline:accept','init','setSelection','always','getWalker','parent','markDeletion','commands','elementStart','_createSuggestion','elementEnd','getSuggestion','listenTo','remove','getAncestors','removeMarkers','name','_removeSuggestion','CommentsRepository','insertion:accept','deletion:accept','markerName','clone','suggestion-type','authorName','ck-suggestion-marker','_isForcedDefaultExecutionBlock','dataToMarker','tablePasteChainId','every','splitPosition','isInsideObject','$graveyard','reconvertMarker','insert','fromRange','_splitMarkerName','isBlock','updateMarker','activeMarkers','originalSuggestionId','getItems','getMarkers','createdAt','isBefore','_model','backward','hasSuggestion','getRange','includes','set','isAfter','document','position','head','_rangeIsInLocalUserInsertion','attributes','$textProxy','Users','markMultiRangeBlockFormat','addMarkerName','_breakSuggestionMarker','getFirstRange','suggestion','toViewElement','isInContent','formatInline:join','isCollapsed','splice','_getAuthorFromId','_joinSuggestions','commentThread','move','track-changes-user-not-found','join','containsRangeInObject','elementToElement','track-changes-suggestion-data-mismatch','formatInline','acceptSuggestion','getSuggestionCallback','_defaultCallbacks','moveTargetPosition','enqueueChange','widget','containsRange','before','marker-count','markerToHighlight','type','_descriptionFactory','size','createRangeIn','subType','isTouching','PendingActions','pluginName','formatBlock:join','deleteContent','createElement','$marker','root','_onDiscard','change:data','isUndo','formatBlock:accept','update:suggestion','after','markInlineFormat','markMultiRangeInsertion','never','addMarker:suggestion:formatBlock','setTo','addMarker:suggestion','for','newRange','authoredAt','sort','_addSuggestionMarker','_registerDefaultCallbacks','_getExternalAuthor','getMultiRangeId','suggestionLoaded','locale','markerToData','accept','delete','removeMarker','push','getNearestSelectionRange','forward','schema','getRanges','markerReady','isOwn','updateSuggestion','enableCommand','getCustomProperty','map','discardAllSuggestions','_getSuggestionData','trackChanges.trackFormatChanges','suggestion:','trackChanges','_addThreadToSuggestion','isExternal','registerCustomCallback','conversion','config','requires','detach','isObject','removeComment','isMultiRange','default','low','trackChangesCommand','_saved','_suggestions','isLocal','setAttribute','insertion','previous','upcast','formatBlock:chain','_isDataLoaded','creator','formatBlock','item','clear','open','discard','writer','deletion:join','track-changes-adapter-missing-getsuggestion','isLimit','then','skipNestingCheck','getAttribute','removed','addSuggestionData','addRange','get','editingDowncast','addUser','mapper','high','length','getChanges','group','markerNameToElements','containsPosition','formatBlock:','_customCallbacks','some','execute','_cutOutSuggestionMarker','getIntersection','ck-suggestion-marker--active','_handleNewSuggestionMarker','error-saving-suggestion-data-suggestion-discarded','define','model','element','markInsertion','buildSuggestion','acceptSelectedSuggestions','track-changes-suggestion-not-found','formatBlock:discard','registerPostFixer','notReady','_setSuggestionRange','data','track-changes-command-not-found','from','enableReadOnlyMode','insertion:','addComment','dataDowncast','discardSuggestion','getSuggestions','_trackFormatChanges','getUser','oldRange','data-suggestion','_editor','_enabledCommands','deletion:','formatInline:chain','unbindElementFromMarkerName','documentSelection','addClass','_mergeNestedSuggestions','values','createPositionAt','start','suggestionChanged','add','insertContent','markers','substr','split','insertion:join','dataReady','accepted','rootName','multipleBlocks','hasCommentThread','getLastMatchingPosition'];(function(_0x2e8c84,_0x545548){const _0x565f40=function(_0x374f12){while(--_0x374f12){_0x2e8c84['push'](_0x2e8c84['shift']());}};_0x565f40(++_0x545548);}(_0x5455,0x127));const _0x565f=function(_0x2e8c84,_0x545548){_0x2e8c84=_0x2e8c84-0x0;let _0x565f40=_0x5455[_0x2e8c84];return _0x565f40;};import{Plugin as _0x5c46cb,PendingActions as _0x39062b}from'ckeditor5/src/core';import{LiveRange as _0x3e0e55}from'ckeditor5/src/engine';import{CKEditorError as _0x519a29,uid as _0x3fee06,priorities as _0x3271a4,logWarning as _0x20ab34}from'ckeditor5/src/utils';import{toWidget as _0xe5001f}from'ckeditor5/src/widget';import{Users as _0x26da2c,hashObject as _0xc80832}from'ckeditor5-collaboration/src/collaboration-core';import _0x544354 from'./commands/trackchangescommand';import _0x375940 from'./commands/acceptsuggestioncommand';import _0x44f332 from'./commands/discardsuggestioncommand';import _0x14f898 from'./commands/executeonallsuggestionscommand';import _0xea128b from'./commands/executeonselectedsuggestionscommand';import _0x95cc51 from'./suggestion';import _0x3ea5ea from'./suggestiondescriptionfactory';import _0x5c1862 from'./integrations/aiassistant';import _0x3fdc38 from'./integrations/alignment';import _0xd38b98 from'./integrations/basicstyles';import _0x378b41 from'./integrations/blockquote';import _0x15aace from'./integrations/ckbox';import _0xb3758c from'./integrations/codeblock';import _0x224cdf from'./integrations/comments';import _0x487b4e from'./integrations/deletecommand';import _0x4a3a70 from'./integrations/documentlist';import _0x2f57f9 from'./integrations/entercommand';import _0x3ba491 from'./integrations/findandreplace';import _0x1ec171 from'./integrations/font';import _0x4daa27 from'./integrations/formatpainter';import _0x19dc0b from'./integrations/heading';import _0x5e1459 from'./integrations/highlight';import _0x177138 from'./integrations/horizontalline';import _0x20498d from'./integrations/htmlembed';import _0x49f629 from'./integrations/image';import _0x9b47e0 from'./integrations/imagereplace';import _0x1e3448 from'./integrations/importword';import _0x5a9ba9 from'./integrations/indent';import _0x21320c from'./integrations/inputcommand';import _0x1083f9 from'./integrations/link';import _0x357d97 from'./integrations/list';import _0x93bc7a from'./integrations/listproperties';import _0xc644b1 from'./integrations/mediaembed';import _0x29b6fb from'./integrations/mention';import _0x3fbb88 from'./integrations/pagebreak';import _0x171405 from'./integrations/paragraph';import _0x4f626d from'./integrations/removeformat';import _0x44c373 from'./integrations/restrictededitingmode';import _0x5097eb from'./integrations/shiftentercommand';import _0x4d4f61 from'./integrations/standardeditingmode';import _0x3953ae from'./integrations/style';import _0x15f566 from'./integrations/table';import _0x49dcc9 from'./integrations/tablemergesplit';import _0x4b1c44 from'./integrations/tableheadings';import _0xdf7e52 from'./integrations/tableclipboard';import _0x16a4ed from'./integrations/tablecolumnresize';import _0x28ba1e from'./integrations/template';import _0x36602c from'./integrations/tableofcontents';import _0x528aee from'./integrations/title';import _0x430cef from'./integrations/undo';import{getTranslation as _0x2e54cc}from'./utils/common-translations';import _0x2383ad from'./integrations/tablecaption';import _0x47fe50 from'./integrations/documentlistproperties';import _0x11f868 from'./integrations/tableproperties';import{isEqual as _0x40c2d4}from'lodash-es';export default class p extends _0x5c46cb{static get[_0x565f('0xf7')](){return[_0x565f('0x74'),_0x26da2c,_0x39062b,_0x5c1862,_0x3fdc38,_0xd38b98,_0x378b41,_0x15aace,_0xb3758c,_0x224cdf,_0x487b4e,_0x4a3a70,_0x47fe50,_0x2f57f9,_0x3ba491,_0x1ec171,_0x4daa27,_0x19dc0b,_0x5e1459,_0x177138,_0x20498d,_0x49f629,_0x9b47e0,_0x1e3448,_0x5a9ba9,_0x21320c,_0x1083f9,_0x357d97,_0x93bc7a,_0xc644b1,_0x29b6fb,_0x3fbb88,_0x171405,_0x4f626d,_0x44c373,_0x5097eb,_0x4d4f61,_0x3953ae,_0x15f566,_0x49dcc9,_0x4b1c44,_0x2383ad,_0xdf7e52,_0x16a4ed,_0x36602c,_0x11f868,_0x28ba1e,_0x528aee,_0x430cef];}static get[_0x565f('0xc2')](){return'TrackChangesEditing';}constructor(_0x2da410){function _0xb2b41a(_0x3b2739){return _0x3b2739[_0x565f('0xec')](_0x1215be=>String['fromCharCode'](_0x1215be))[_0x565f('0xac')]('');}super(_0x2da410),this['set'](_0x565f('0x89'),[]),this['on']('change:activeMarkers',(_0x5b242d,_0x505852,_0xdb782c,_0x7a9499)=>{this[_0x565f('0x8f')][_0x565f('0x43')](()=>{for(const _0x4c622a of[..._0x7a9499,..._0xdb782c])this[_0x565f('0x8f')][_0x565f('0x10')][_0x565f('0x52')](_0x4c622a)&&_0x2da410['editing'][_0x565f('0x83')](_0x4c622a);});}),this[_0x565f('0xbc')]=new _0x3ea5ea(this[_0x565f('0x5a')][_0x565f('0x12c')][_0x565f('0xe5')],this[_0x565f('0x5a')][_0x565f('0xdd')]),this[_0x565f('0x61')]=null,this[_0x565f('0x4b')]=new Bt(this[_0x565f('0x5a')]),this[_0x565f('0x100')]=new Map(),this[_0x565f('0x45')]=_0x2da410[_0x565f('0x4c')]['get'](_0x565f('0x74')),this[_0x565f('0x3')]=new Set(),this[_0x565f('0x8f')]=this['editor'][_0x565f('0x12c')],this[_0x565f('0x56')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2da410[_0x565f('0xf6')]['define'](_0x565f('0xef'),_0x565f('0xfc')),this[_0x565f('0x13f')]=_0x2da410[_0x565f('0xf6')][_0x565f('0x118')](_0x565f('0xef')),_0x2da410[_0x565f('0xf6')][_0x565f('0x12b')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2da410[_0x565f('0xf6')][_0x565f('0x118')]('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x544354(_0x2da410,this[_0x565f('0x3')]),this[_0xb2b41a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xb2b41a([0x34,0x30,0x34,0x36,0x31,0x38,0x35,0x38]);}[_0x565f('0x63')](){const _0x39bc84=this[_0x565f('0x5a')];_0x39bc84[_0x565f('0xf5')][_0x565f('0xd4')](_0x565f('0x119'))[_0x565f('0xba')]({'model':_0x565f('0xa1'),'view':_0x338c07=>{const {id:_0x126909,type:_0x30a731}=this[_0x565f('0x86')](_0x338c07['markerName']),_0xbfc255=[_0x565f('0x7b'),_0x565f('0x41')+_0x30a731];let _0x2a794c=0xbb8;return this[_0x565f('0x89')][_0x565f('0x93')](_0x338c07[_0x565f('0x77')])&&(_0xbfc255[_0x565f('0xe2')](_0x565f('0x128')),_0x2a794c=0xbc2),_0x565f('0x60')==_0x30a731&&(_0x2a794c+=0x5),{'classes':_0xbfc255,'attributes':{'data-suggestion':_0x126909},'priority':_0x2a794c};}}),_0x39bc84[_0x565f('0xf5')][_0x565f('0xd4')](_0x565f('0x13c'))['add'](_0x28da7c=>{_0x28da7c['on'](_0x565f('0xd3'),(_0x2c52b1,_0x31af8c,_0x2c07b1)=>{if(!_0x2c07b1['options'][_0x565f('0x35')])return;const _0x123b41=_0x31af8c[_0x565f('0x10a')];if(!_0x123b41)return;const _0x23663f=_0x2c07b1[_0x565f('0x11b')][_0x565f('0xa2')](_0x123b41);_0x39bc84[_0x565f('0x12c')][_0x565f('0xe5')][_0x565f('0xf9')](_0x123b41)&&_0x23663f&&!_0x23663f[_0x565f('0xeb')](_0x565f('0xb6'))&&_0x23663f['is']('containerElement')&&_0xe5001f(_0x23663f,_0x2c07b1[_0x565f('0x10e')]);},{'priority':_0x565f('0x11c')});}),_0x39bc84[_0x565f('0xf5')]['for'](_0x565f('0x13c'))[_0x565f('0xba')]({'model':_0x565f('0xa1'),'view':(_0xcd3eb8,_0x1b8ac4)=>{if(!_0x1b8ac4[_0x565f('0x2d')][_0x565f('0x35')])return null;const {type:_0x5162e5}=this[_0x565f('0x86')](_0xcd3eb8['markerName']);return{'classes':[_0x565f('0x7b'),_0x565f('0x41')+_0x5162e5],'priority':0xbb8};}});const _0x163a3=({showActiveMarkers:_0x1db8bb=!0x0}={})=>(_0x4579de,_0x2f1330,_0x541abc)=>{if(!_0x2f1330[_0x565f('0x10a')])return;if(_0x2f1330[_0x565f('0x10a')]['is'](_0x565f('0x3a')))return void _0x541abc[_0x565f('0x22')][_0x565f('0x2e')](_0x2f1330[_0x565f('0x10a')],_0x4579de[_0x565f('0x72')]);const _0x3bbc59=_0x541abc[_0x565f('0x11b')]['toViewElement'](_0x2f1330['item']);if(!(_0x2f1330[_0x565f('0x10a')]['is'](_0x565f('0x12d'))&&_0x39bc84['model'][_0x565f('0xe5')][_0x565f('0x87')](_0x2f1330[_0x565f('0x10a')])&&!_0x3bbc59[_0x565f('0xeb')]('addHighlight')))return;const {id:_0x2c205f}=this[_0x565f('0x86')](_0x2f1330['markerName']);_0x541abc[_0x565f('0x10e')][_0x565f('0x8')]([_0x565f('0x7b'),_0x565f('0x3d')],_0x3bbc59),_0x541abc[_0x565f('0x10e')][_0x565f('0x102')](_0x565f('0x1'),_0x2c205f,_0x3bbc59),_0x541abc[_0x565f('0x11b')][_0x565f('0x55')](_0x3bbc59,_0x2f1330[_0x565f('0x77')]),_0x1db8bb&&(this[_0x565f('0x89')][_0x565f('0x93')](_0x2f1330['markerName'])?_0x541abc['writer'][_0x565f('0x8')](_0x565f('0x128'),_0x3bbc59):_0x541abc[_0x565f('0x10e')]['removeClass'](_0x565f('0x128'),_0x3bbc59));for(const _0x1d9a9f of _0x39bc84[_0x565f('0x12c')][_0x565f('0xbe')](_0x2f1330[_0x565f('0x10a')])[_0x565f('0x8b')]())_0x541abc[_0x565f('0x22')][_0x565f('0x2e')](_0x1d9a9f,_0x4579de[_0x565f('0x72')]);_0x541abc['consumable'][_0x565f('0x2e')](_0x2f1330[_0x565f('0x10a')],_0x4579de['name']);};_0x39bc84[_0x565f('0xf5')]['for'](_0x565f('0x13c'))[_0x565f('0xe')](_0x3257b1=>{_0x3257b1['on']('addMarker:suggestion:formatBlock',(_0x3bc44a,_0x8719a,_0x52516d)=>{_0x52516d['options'][_0x565f('0x35')]&&_0x163a3({'showActiveMarkers':!0x1})(_0x3bc44a,_0x8719a,_0x52516d);},{'priority':'highest'});}),_0x39bc84['conversion'][_0x565f('0xd4')](_0x565f('0x13c'))[_0x565f('0xde')]({'model':_0x565f('0xa1'),'view':(_0x2f0dca,_0x777914)=>_0x777914[_0x565f('0x2d')][_0x565f('0x35')]?null:{'group':'suggestion','name':_0x2f0dca[_0x565f('0x11')](0xb)}}),_0x39bc84[_0x565f('0xf5')][_0x565f('0xd4')](_0x565f('0x105'))[_0x565f('0xae')]({'view':{'name':_0x565f('0xa1'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x340d72,{writer:_0x481129})=>{let _0x52a21d='suggestion:'+_0x340d72[_0x565f('0x114')](_0x565f('0x79'))+':'+_0x340d72['getAttribute']('id');return _0x340d72['getAttribute'](_0x565f('0xb9'))&&(_0x52a21d+=':'+_0x340d72[_0x565f('0x114')](_0x565f('0xb9'))),_0x481129[_0x565f('0xc5')](_0x565f('0xc6'),{'data-name':_0x52a21d});}}),_0x39bc84['conversion'][_0x565f('0xd4')](_0x565f('0x105'))[_0x565f('0x7d')]({'view':_0x565f('0xa1')}),_0x39bc84[_0x565f('0xf5')][_0x565f('0xd4')]('editingDowncast')['add'](_0x2ecd16=>{_0x2ecd16['on'](_0x565f('0xd1'),_0x163a3(),{'priority':'high'});}),_0x39bc84[_0x565f('0xf5')][_0x565f('0xd4')](_0x565f('0x119'))['add'](_0x58048f=>{_0x58048f['on']('removeMarker:suggestion:formatBlock',(_0x30faf1,_0x4915b2,_0x4b1dfd)=>{const _0x2d4c1c=_0x4b1dfd['mapper'][_0x565f('0x120')](_0x4915b2['markerName']);if(_0x2d4c1c)for(const _0x31fffa of _0x2d4c1c)_0x31fffa['getCustomProperty'](_0x565f('0x23'))||(_0x4b1dfd[_0x565f('0x10e')]['removeClass']([_0x565f('0x7b'),'ck-suggestion-marker-formatBlock',_0x565f('0x128')],_0x31fffa),_0x4b1dfd[_0x565f('0x10e')]['removeAttribute']('data-suggestion',_0x31fffa),_0x4b1dfd[_0x565f('0x11b')][_0x565f('0x6')](_0x31fffa,_0x4915b2[_0x565f('0x77')]));},{'priority':_0x565f('0x11c')});}),_0x39bc84[_0x565f('0x12c')]['document'][_0x565f('0x133')](_0x9168e3=>{let _0xdfd822=!0x1;const _0x1ba9e0=Array['from'](_0x39bc84[_0x565f('0x12c')][_0x565f('0x96')]['differ']['getChangedMarkers']()),_0x27cb5a=new Set();for(const {name:_0xfe3178,data:_0x113c18}of _0x1ba9e0){const {group:_0x252b86,type:_0x16a249,id:_0x217fc4}=this['_splitMarkerName'](_0xfe3178);if(_0x565f('0xa1')!==_0x252b86)continue;const _0x2413a8=this['_suggestions'][_0x565f('0x118')](_0x217fc4);if(null!=_0x113c18[_0x565f('0xd5')]){_0x565f('0xb0')==_0x16a249&&(_0xdfd822=_0xdfd822||$t(_0x113c18[_0x565f('0xd5')],_0xfe3178,_0x9168e3,_0x39bc84['model']['schema']));if(_0x113c18[_0x565f('0xd5')][_0x565f('0xa5')]||'$graveyard'==_0x113c18[_0x565f('0xd5')][_0x565f('0xc7')][_0x565f('0x16')]||_0x565f('0x109')==_0x16a249&&!Rt(_0x113c18[_0x565f('0xd5')])||'deletion'==_0x16a249&&!(!Mt(_0x3c9449=_0x113c18[_0x565f('0xd5')])&&!function(_0x10e9e5){return _0x10e9e5[_0x565f('0xc')][_0x565f('0x67')]==_0x10e9e5[_0x565f('0x50')][_0x565f('0x3c')]&&_0x10e9e5[_0x565f('0xc')][_0x565f('0x5e')];}(_0x3c9449)))_0x9168e3['removeMarker'](_0xfe3178),_0xdfd822=!0x0;else{if(!_0x2413a8||!_0x2413a8[_0x565f('0xa3')])continue;_0x27cb5a[_0x565f('0xe')](_0x2413a8);}}}var _0x3c9449;return _0x27cb5a[_0x565f('0xbd')]>0x0&&(_0xdfd822=!!this['_joinWithAdjacentSuggestions'](_0x27cb5a)||_0xdfd822),_0xdfd822;}),_0x39bc84['model'][_0x565f('0x96')][_0x565f('0x133')](_0xdc38=>{let _0x2badce=!0x1;for(const _0x3b9e99 of _0x39bc84[_0x565f('0x12c')][_0x565f('0x96')][_0x565f('0x26')][_0x565f('0x11e')]()){if(_0x565f('0x84')!=_0x3b9e99[_0x565f('0xbb')])continue;const _0x51c9cb=_0x3b9e99[_0x565f('0x97')][_0x565f('0x5d')](_0x3b9e99[_0x565f('0x11d')]);if(_0x51c9cb[_0x565f('0x5e')])for(const _0x1e1217 of this[_0x565f('0x100')][_0x565f('0xa')]()){if(_0x1e1217[_0x565f('0xfb')]||!_0x1e1217['isInContent'])continue;if(_0x565f('0x109')!=_0x1e1217[_0x565f('0xbb')])continue;const _0x3022ef=_0x1e1217['getFirstRange']();if(_0x3022ef[_0x565f('0xc')][_0x565f('0x67')]!=_0x3022ef['end'][_0x565f('0x67')]&&_0x3022ef[_0x565f('0x50')][_0x565f('0x39')](_0x3b9e99[_0x565f('0x97')])){const _0x2c693e=_0x39bc84[_0x565f('0x12c')]['createRange'](_0x3022ef[_0x565f('0xc')],_0x51c9cb);_0xdc38[_0x565f('0x88')](_0x1e1217['getFirstMarker'](),{'range':_0x2c693e}),_0x2badce=!0x0;}}}return _0x2badce;}),_0x39bc84['model']['markers']['on'](_0x565f('0xcc'),(_0x4e6697,_0x1dff49,_0x4ca1fa)=>{if(null==_0x4ca1fa){const {id:_0x62355d}=this[_0x565f('0x86')](_0x1dff49['name']),_0x1080d8=this[_0x565f('0x100')][_0x565f('0x118')](_0x62355d);_0x1080d8&&_0x1080d8[_0x565f('0x9e')](_0x1dff49[_0x565f('0x72')]);}}),_0x39bc84[_0x565f('0x12c')][_0x565f('0x96')]['on'](_0x565f('0xc9'),()=>{const _0x12efc7=Array[_0x565f('0x138')](_0x39bc84[_0x565f('0x12c')]['document'][_0x565f('0x26')]['getChangedMarkers']())[_0x565f('0x37')](_0x243cef=>'suggestion'===this[_0x565f('0x86')](_0x243cef['name'])[_0x565f('0x11f')]);if(0x0===_0x12efc7[_0x565f('0x11d')])return;_0x12efc7[_0x565f('0xd7')]((_0x4d0be9,_0x4bedfc)=>{const _0x40d871=_0x4d0be9[_0x565f('0x136')][_0x565f('0x0')],_0x3d0589=_0x4bedfc['data']['oldRange'];return null===_0x40d871&&null===_0x3d0589?0x0:null===_0x40d871&&null!==_0x3d0589?-0x1:null!==_0x40d871&&null===_0x3d0589?0x1:_0x40d871[_0x565f('0xc')][_0x565f('0x8e')](_0x3d0589['start'])?-0x1:0x1;});const _0xab4d08=new Set(),_0xc9b6b4=new Set();for(const {name:_0x36a1c2,data:_0x448de1}of _0x12efc7){const {id:_0x2d9278}=this['_splitMarkerName'](_0x36a1c2);if(null===_0x448de1[_0x565f('0x0')]){const _0x32fef5=this[_0x565f('0x129')](_0x36a1c2);_0xc9b6b4[_0x565f('0xe')](_0x32fef5);}else{const _0x2ddee1=this[_0x565f('0x100')][_0x565f('0x118')](_0x2d9278);null!==_0x448de1[_0x565f('0xd5')]||_0x2ddee1['isInContent']?(_0xab4d08[_0x565f('0xe')](_0x2ddee1[_0x565f('0x98')]),_0xc9b6b4[_0x565f('0xe')](_0x2ddee1)):this['_removeSuggestion'](_0x2ddee1);}}_0xc9b6b4[_0x565f('0xbd')]>0x0&&this[_0x565f('0x2c')](_0xc9b6b4);for(const _0x35650d of _0xab4d08)this[_0x565f('0x1c')](_0x565f('0xd'),_0x35650d);}),_0x39bc84[_0x565f('0x12c')]['on'](_0x565f('0x30'),(_0x5bda81,_0x1d215c)=>{const _0x128b8c=_0x1d215c[0x0];if(!this[_0x565f('0x100')][_0x565f('0xbd')])return;if(!_0x128b8c[_0x565f('0x1b')])return;if(_0x128b8c['batch'][_0x565f('0xca')]||!_0x128b8c['batch'][_0x565f('0x101')])return;let _0x5f1efc,_0x3f2800;switch(_0x128b8c['type']){case _0x565f('0x84'):_0x5f1efc=_0x39bc84['model']['createPositionAt'](_0x128b8c['position']),_0x3f2800=_0x5f1efc[_0x565f('0x5d')](_0x128b8c[_0x565f('0x59')]);break;case'split':_0x5f1efc=_0x39bc84['model'][_0x565f('0xb')](_0x128b8c[_0x565f('0x80')]),_0x3f2800=_0x39bc84[_0x565f('0x12c')][_0x565f('0xb')](_0x128b8c[_0x565f('0xb4')]);break;case _0x565f('0xaa'):_0x5f1efc=_0x39bc84[_0x565f('0x12c')][_0x565f('0xb')](_0x128b8c['targetPosition']),_0x3f2800=_0x5f1efc['getShiftedBy'](_0x128b8c[_0x565f('0x59')]);break;default:return;}const _0x4ef6a7=_0x39bc84[_0x565f('0x12c')][_0x565f('0x5b')](_0x5f1efc,_0x3f2800);_0x39bc84[_0x565f('0x12c')][_0x565f('0x43')](()=>{for(const {suggestion:_0xc6925d,meta:_0x1e97a5}of this[_0x565f('0x51')](_0x4ef6a7)){if(_0xc6925d[_0x565f('0xfb')])continue;if(_0x565f('0xb0')==_0xc6925d[_0x565f('0xbb')])continue;const _0x3a3a7f=_0xc6925d[_0x565f('0x136')]&&_0xc6925d['data'][_0x565f('0x17')];('formatBlock'!=_0xc6925d[_0x565f('0xbb')]||'split'==_0x128b8c[_0x565f('0xbb')]&&!_0x3a3a7f)&&(_0x1e97a5[_0x565f('0xad')]||'insertion'==_0xc6925d['type']&&_0x1e97a5[_0x565f('0xe8')]||_0xc6925d[_0x565f('0xa0')]()['containsRange'](_0x4ef6a7)&&this[_0x565f('0x9f')](_0xc6925d,_0x5f1efc,_0x3f2800));}});},{'priority':'lowest'}),_0x39bc84[_0x565f('0x12c')]['on'](_0x565f('0xc4'),(_0x253da6,_0xb8f4a1)=>{const _0x1db0d9=_0xb8f4a1[0x0],_0x1f4eb3=_0xb8f4a1[0x1];if(_0x1f4eb3&&_0x1f4eb3['forceDefaultExecution'])return;if(this[_0x565f('0x7c')])return;if(!this[_0x565f('0xfe')]['value'])return;if(_0x1db0d9['isCollapsed'])return;const _0x422a32=_0x39bc84[_0x565f('0x12c')][_0x565f('0xe5')],{start:_0x5de66f,end:_0x7ac24e}=_0x1db0d9[_0x565f('0xa0')](),_0x5ecdec=_0x5de66f['nodeAfter']&&_0x422a32['isLimit'](_0x5de66f['nodeAfter'])?null:_0x422a32[_0x565f('0xe3')](_0x5de66f,_0x565f('0xe4')),_0x53c869=_0x7ac24e[_0x565f('0x3c')]&&_0x422a32[_0x565f('0x111')](_0x7ac24e[_0x565f('0x3c')])?null:_0x422a32[_0x565f('0xe3')](_0x7ac24e,_0x565f('0x90')),_0x2fa79d=_0x39bc84[_0x565f('0x12c')][_0x565f('0x5b')](_0x5ecdec?_0x5ecdec[_0x565f('0xc')]:_0x5de66f,_0x53c869?_0x53c869[_0x565f('0x50')]:_0x7ac24e);_0x39bc84['model'][_0x565f('0x43')](_0x1c37ad=>{this['markDeletion'](_0x2fa79d);const _0x4cd6bd=_0x39bc84[_0x565f('0x12c')]['schema']['getNearestSelectionRange'](_0x2fa79d['start']);_0x1db0d9['is'](_0x565f('0x7'))?_0x1c37ad[_0x565f('0x64')](_0x4cd6bd):_0x1db0d9[_0x565f('0xd2')](_0x4cd6bd);}),_0x253da6[_0x565f('0x53')]();},{'priority':_0x3271a4['normal']+0xa}),_0x39bc84['model']['on'](_0x565f('0xf'),(_0x4c27bf,_0x56d5ce)=>{const _0xc7fbc9=_0x56d5ce[_0x56d5ce['length']-0x1];_0xc7fbc9&&_0xc7fbc9[_0x565f('0x29')]||this['_isForcedDefaultExecutionBlock']||this[_0x565f('0xfe')]['value']&&(_0x39bc84[_0x565f('0x12c')][_0x565f('0x43')](()=>{let _0x579416=_0x39bc84[_0x565f('0x12c')][_0x565f('0xf')](_0x56d5ce[0x0],_0x56d5ce[0x1],_0x56d5ce[0x2],{'forceDefaultExecution':!0x0});if(!_0x579416)return;_0x4c27bf['return']=_0x579416[_0x565f('0x78')]();const _0xb8b4e2=_0x579416[_0x565f('0x50')][_0x565f('0x3c')],_0x5f2a7e=_0x39bc84[_0x565f('0x12c')][_0x565f('0xe5')];_0xb8b4e2&&_0x5f2a7e[_0x565f('0x87')](_0xb8b4e2)&&!_0x5f2a7e[_0x565f('0xf9')](_0xb8b4e2)&&(_0x579416=_0x39bc84[_0x565f('0x12c')]['createRange'](_0x579416[_0x565f('0xc')],_0x39bc84[_0x565f('0x12c')]['createPositionAt'](_0xb8b4e2,'end'))),this[_0x565f('0x12e')](_0x579416);}),_0x4c27bf[_0x565f('0x53')]());},{'priority':_0x565f('0x11c')}),this['editor']['commands'][_0x565f('0xe')](_0x565f('0xf1'),this['trackChangesCommand']),this['enableCommand'](_0x565f('0xf1'));const _0x461ad8=new _0x375940(_0x39bc84,this[_0x565f('0x100')]);_0x39bc84[_0x565f('0x69')][_0x565f('0xe')](_0x565f('0xb1'),_0x461ad8),this[_0x565f('0xea')](_0x565f('0xb1'));const _0x498eea=new _0x44f332(_0x39bc84,this[_0x565f('0x100')]);_0x39bc84[_0x565f('0x69')][_0x565f('0xe')]('discardSuggestion',_0x498eea),this[_0x565f('0xea')]('discardSuggestion'),_0x39bc84[_0x565f('0x69')][_0x565f('0xe')](_0x565f('0x49'),new _0x14f898(_0x39bc84,_0x461ad8,this[_0x565f('0x100')])),this[_0x565f('0xea')](_0x565f('0x49')),_0x39bc84[_0x565f('0x69')]['add']('discardAllSuggestions',new _0x14f898(_0x39bc84,_0x498eea,this['_suggestions'])),this['enableCommand'](_0x565f('0xed')),_0x39bc84[_0x565f('0x69')][_0x565f('0xe')]('acceptSelectedSuggestions',new _0xea128b(_0x39bc84,_0x461ad8,this[_0x565f('0x100')])),this['enableCommand'](_0x565f('0x130')),_0x39bc84[_0x565f('0x69')]['add'](_0x565f('0x4d'),new _0xea128b(_0x39bc84,_0x498eea,this[_0x565f('0x100')])),this[_0x565f('0xea')](_0x565f('0x4d'));const _0x217d19=_0x39bc84[_0x565f('0x4c')][_0x565f('0x118')](_0x565f('0x74'));this[_0x565f('0x6e')](_0x217d19,_0x565f('0x13b'),(_0x3f146a,{threadId:_0x4f8191})=>{const _0x1c16de=this[_0x565f('0x100')]['get'](_0x4f8191);_0x1c16de&&_0x1c16de[_0x565f('0xa9')]&&0x1===_0x1c16de[_0x565f('0xa9')][_0x565f('0x11d')]&&this['_updateSuggestionData'](_0x4f8191,{'hasComments':!0x0});},{'priority':_0x565f('0xfd')}),this['listenTo'](_0x217d19,_0x565f('0xfa'),(_0x52ee6c,{threadId:_0x44ebc8})=>{const _0xe41ecf=this[_0x565f('0x100')][_0x565f('0x118')](_0x44ebc8);_0xe41ecf&&_0xe41ecf[_0x565f('0xa9')]&&!_0xe41ecf[_0x565f('0xa9')]['length']&&this[_0x565f('0x40')](_0x44ebc8,{'hasComments':!0x1});},{'priority':_0x565f('0xfd')});}set['adapter'](_0x478856){if(this[_0x565f('0x61')])throw new _0x519a29('track-changes-adapter-already-set',this);this[_0x565f('0x61')]=_0x478856;}get['adapter'](){return this[_0x565f('0x61')];}[_0x565f('0x13e')]({skipNotAttached:_0x3e9c07=!0x1,toJSON:_0x524bf2=!0x1}={}){const _0x5a19fe=[];for(const _0x556c06 of this['_suggestions'][_0x565f('0xa')]())_0x3e9c07&&!_0x556c06[_0x565f('0xa3')]||_0x5a19fe[_0x565f('0xe2')](_0x556c06);return _0x524bf2?_0x5a19fe[_0x565f('0xec')](_0x59e7d1=>_0x59e7d1['toJSON']()):_0x5a19fe;}[_0x565f('0x6d')](_0x1fae03){const _0x175765=this[_0x565f('0x100')][_0x565f('0x118')](_0x1fae03);if(!_0x175765)throw new _0x519a29(_0x565f('0x131'),this);return _0x175765;}[_0x565f('0x91')](_0x1f73ce){return this[_0x565f('0x100')]['has'](_0x1f73ce);}[_0x565f('0x116')](_0x58f110){const {authorId:_0x7c0169,id:_0x347292,attributes:_0x212ee9}=_0x58f110,[_0x15b626,_0x5d9d35]=_0x58f110[_0x565f('0xbb')][_0x565f('0x12')](':'),_0x16263f=this['_suggestions'][_0x565f('0x118')](_0x347292)||this[_0x565f('0x6b')](_0x15b626,_0x5d9d35,_0x347292,_0x7c0169,_0x212ee9);if(this[_0x565f('0xf2')](_0x16263f),this[_0x565f('0x4f')](_0x16263f,_0x15b626,_0x5d9d35||null,_0x7c0169),_0x16263f['createdAt']=_0x58f110[_0x565f('0x8d')],_0x16263f['_isDataLoaded']=!0x0,_0x212ee9&&_0x212ee9['@external']){const _0x361b08=_0x212ee9[_0x565f('0x27')],_0x2bccc5=this[_0x565f('0xda')](_0x361b08[_0x565f('0x7a')]);_0x16263f[_0x565f('0xd6')]=_0x361b08[_0x565f('0x8d')],_0x16263f[_0x565f('0x24')]=_0x2bccc5,_0x16263f[_0x565f('0xf3')]=!0x0;}else _0x16263f[_0x565f('0xd6')]=_0x58f110[_0x565f('0x8d')];switch(_0x58f110[_0x565f('0x136')]&&(_0x16263f[_0x565f('0x136')]=_0x58f110[_0x565f('0x136')]),_0x58f110[_0x565f('0x9a')]&&(_0x16263f['attributes']=_0x58f110[_0x565f('0x9a')]),this[_0x565f('0x61')]&&this[_0x565f('0x61')]['addSuggestion']||(_0x16263f['_saved']=!0x0),this[_0x565f('0x56')][_0x565f('0x118')](_0x16263f)){case'notReady':this['_suggestionState'][_0x565f('0x94')](_0x16263f,_0x565f('0x14'));break;case'markerReady':_0x16263f[_0x565f('0xa3')]?(this[_0x565f('0x2c')](new Set([_0x16263f])),this[_0x565f('0x44')](new Set([_0x16263f])),this[_0x565f('0x56')][_0x565f('0x94')](_0x16263f,_0x565f('0x54')),this[_0x565f('0x1c')](_0x565f('0xdc'),_0x16263f)):this[_0x565f('0x56')][_0x565f('0x94')](_0x16263f,'removed');}return _0x16263f;}[_0x565f('0xb1')](_0x325bc0){this[_0x565f('0x29')](()=>{this[_0x565f('0x5a')][_0x565f('0x12c')][_0x565f('0x43')](()=>{for(const _0x108bcc of _0x325bc0[_0x565f('0x2b')]())_0x108bcc['accept']();});});}[_0x565f('0x13d')](_0x571963){this[_0x565f('0x29')](()=>{this[_0x565f('0x5a')][_0x565f('0x12c')]['change'](()=>{for(const _0x269a66 of _0x571963[_0x565f('0x2b')]())_0x269a66[_0x565f('0x10d')]();});});}[_0x565f('0xea')](_0x595b90,_0x537aaf){const _0x34385c=this[_0x565f('0x5a')][_0x565f('0x69')][_0x565f('0x118')](_0x595b90);if(!_0x34385c)throw new _0x519a29(_0x565f('0x137'),this,{'commandName':_0x595b90});this[_0x565f('0x3')][_0x565f('0xe')](_0x34385c),_0x537aaf&&_0x34385c['on'](_0x565f('0x125'),(_0x1d8e1c,_0x3701d6)=>{this['trackChangesCommand']['value']&&(this[_0x565f('0x7c')]||_0x3701d6[_0x565f('0x11d')]>0x0&&_0x3701d6[_0x3701d6['length']-0x1]&&_0x3701d6[_0x3701d6[_0x565f('0x11d')]-0x1][_0x565f('0x29')]||(_0x537aaf((..._0x5bd1cf)=>_0x34385c['execute'](..._0x5bd1cf,{'forceDefaultExecution':!0x0}),..._0x3701d6),_0x1d8e1c['stop']()));},{'priority':_0x565f('0x11c')});}[_0x565f('0x29')](_0x6d3f84){let _0x1e914b,_0x1d8f45;const _0x146b27=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e914b=_0x6d3f84();}catch(_0x37e45c){_0x1d8f45=_0x37e45c;}return _0x146b27||(this[_0x565f('0x7c')]=!0x1),_0x1d8f45&&_0x519a29['rethrowUnexpectedError'](_0x1d8f45,this),_0x1e914b;}['markInsertion'](_0xbc9061,_0x25bb32=null,_0x32d525={}){if(_0xbc9061[_0x565f('0xa5')])return null;const _0xc9700f=this['editor'][_0x565f('0x4c')][_0x565f('0x118')](_0x565f('0x9c'))['me'];for(const {suggestion:_0x41085b,meta:_0x72f38b}of this[_0x565f('0x51')](_0xbc9061,_0x565f('0x103')))if(_0x72f38b[_0x565f('0xe8')]){if(!_0x72f38b[_0x565f('0x21')]){if(_0x72f38b[_0x565f('0xad')]){if(!this[_0x565f('0x9')]||!Ot(_0x41085b,_0x32d525))continue;return _0x41085b;}if(Ot(_0x41085b,_0x32d525))return _0x41085b;this[_0x565f('0x9f')](_0x41085b,_0xbc9061[_0x565f('0xc')],_0xbc9061[_0x565f('0x50')]);break;}if(_0x25bb32==_0x41085b[_0x565f('0xbf')]&&Ot(_0x41085b,_0x32d525)){const _0x530e44=_0x41085b[_0x565f('0xa0')]();return _0x530e44[_0x565f('0xc')][_0x565f('0x39')](_0xbc9061[_0x565f('0x50')])?this[_0x565f('0x135')](_0x41085b,this[_0x565f('0x8f')][_0x565f('0x5b')](_0xbc9061['start'],_0x530e44['end'])):this[_0x565f('0x135')](_0x41085b,this[_0x565f('0x8f')][_0x565f('0x5b')](_0x530e44[_0x565f('0xc')],_0xbc9061[_0x565f('0x50')])),_0x41085b;}}const _0x58bfa8=_0x3fee06(),_0x46286a=_0xc9700f['id'],_0x50ed9f=_0x25bb32?_0x565f('0x13a')+_0x25bb32:_0x565f('0x103'),_0x44af81=this[_0x565f('0x2f')]({'id':_0x58bfa8,'type':_0x50ed9f,'createdAt':new Date(),'authorId':_0x46286a,'attributes':_0x32d525});return this[_0x565f('0xd8')](_0x50ed9f,_0x58bfa8,_0x46286a,_0xbc9061),_0x44af81;}[_0x565f('0xcf')](_0x3d9797,_0x2e1877=_0x565f('0x4a'),_0x459201={}){const _0x49e67d=this[_0x565f('0x5a')][_0x565f('0x4c')]['get'](_0x565f('0x9c'))['me'],_0x47019d=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x103'),_0x2e1877,_0x565f('0xac'));for(const _0x500be9 of this[_0x565f('0x13e')]())if(_0x500be9[_0x565f('0x24')]['id']==_0x49e67d['id']&&_0x565f('0x103')==_0x500be9[_0x565f('0xbb')]&&_0x500be9['subType']==_0x2e1877&&Ot(_0x500be9,_0x459201)&&(_0x47019d(_0x500be9['getRanges'](),_0x3d9797)||_0x47019d(_0x3d9797,_0x500be9[_0x565f('0xe6')]()))){for(const _0x5623e4 of _0x3d9797)_0x500be9['addRange'](_0x5623e4);return _0x500be9;}for(const {suggestion:_0x2efc21,meta:_0x35a146}of this[_0x565f('0x51')](_0x3d9797,_0x565f('0x103'))){if(!_0x35a146[_0x565f('0xe8')])continue;if(!this[_0x565f('0x9')]&&_0x35a146['containsRangeInObject'])continue;if(!Ot(_0x2efc21,_0x459201))continue;let _0x188a50=!0x0;for(const _0xefd5ef of _0x2efc21[_0x565f('0xe6')]())for(const _0x2a1af5 of _0x3d9797)if(!_0xefd5ef[_0x565f('0xb7')](_0x2a1af5)){_0x188a50=!0x1;break;}if(_0x188a50)return _0x2efc21;}const _0x3a4cc7=_0x3fee06(),_0x122daa=_0x49e67d['id'],_0x28f545='insertion:'+_0x2e1877,_0x35a3a5=this[_0x565f('0x2f')]({'id':_0x3a4cc7,'type':_0x28f545,'createdAt':new Date(),'authorId':_0x122daa,'attributes':_0x459201});for(const _0x4b3575 of _0x3d9797)this[_0x565f('0xd8')](_0x28f545,_0x3a4cc7,_0x122daa,_0x4b3575,_0x95cc51[_0x565f('0xdb')]());return _0x35a3a5;}[_0x565f('0xce')](_0x30b0df,_0x2c82d0,_0x1db1d9=null,_0x5dd122={}){if(_0x1db1d9=_0x1db1d9||Nt(_0x2c82d0),_0x30b0df[_0x565f('0xa5')])return null;if('never'===this[_0x565f('0x13f')]){const _0x3aa5db=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0xb0'),_0x1db1d9,_0x565f('0xdf'));return this[_0x565f('0x29')](()=>_0x3aa5db([_0x30b0df],_0x2c82d0,_0x5dd122)),null;}const _0x11491a=this[_0x565f('0x5a')][_0x565f('0x4c')][_0x565f('0x118')](_0x565f('0x9c'))['me'],_0x3ee221=[];if(_0x565f('0x65')!==this[_0x565f('0x13f')])for(const {suggestion:_0x5e7930,meta:_0x5bb9e9}of this[_0x565f('0x51')](_0x30b0df,_0x565f('0x103')))_0x5bb9e9[_0x565f('0xe8')]&&!_0x5bb9e9[_0x565f('0x81')]&&_0x3ee221[_0x565f('0xe2')](..._0x5e7930[_0x565f('0xe6')]());const _0x286893=function(_0x10c48e,_0x83cb8b){const _0x521794=[];for(const _0x138a85 of _0x83cb8b){const _0x498ba3=_0x10c48e[_0x565f('0x127')](_0x138a85);_0x498ba3&&_0x521794['push'](_0x498ba3);}return _0x521794;}(_0x30b0df,_0x3ee221),_0x39b997=function(_0x4bfb44,_0x571577){const _0x236d4f=[_0x4bfb44];for(const _0x5d578e of _0x571577){let _0x1322eb=0x0;for(;_0x1322eb<_0x236d4f[_0x565f('0x11d')];){const _0x110ff6=_0x236d4f[_0x1322eb]['getDifference'](_0x5d578e);_0x236d4f[_0x565f('0xa6')](_0x1322eb,0x1,..._0x110ff6),_0x1322eb+=_0x110ff6[_0x565f('0x11d')];}}return _0x236d4f;}(_0x30b0df,_0x3ee221);_0x286893[_0x565f('0x11d')]&&this['_model'][_0x565f('0x43')](()=>{for(const _0x1f3923 of _0x286893){const _0x5052e1=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0xb0'),_0x1db1d9,_0x565f('0xdf'));this[_0x565f('0x29')](()=>_0x5052e1([_0x1f3923],_0x2c82d0,_0x5dd122));}});for(const _0x4ceec5 of _0x39b997){let _0x22c379=null,_0x4be65f=_0x4ceec5[_0x565f('0xc')],_0x2c1516=_0x4ceec5[_0x565f('0x50')];for(const {suggestion:_0xc5d39c,meta:_0x1838b1}of this[_0x565f('0x51')](_0x4ceec5,_0x565f('0xb0'))){if(!_0x1838b1[_0x565f('0xe8')])continue;if(_0xc5d39c[_0x565f('0xbf')]!=_0x1db1d9)continue;if(!Ot(_0xc5d39c,_0x5dd122))continue;const _0x4442f7=_0xc5d39c[_0x565f('0xa0')]();if(_0x4442f7[_0x565f('0xb7')](_0x4ceec5,!0x0))return null;_0x4be65f=_0x4be65f[_0x565f('0x8e')](_0x4442f7[_0x565f('0xc')])?_0x4be65f:_0x4442f7['start'],_0x2c1516=_0x2c1516[_0x565f('0x95')](_0x4442f7[_0x565f('0x50')])?_0x2c1516:_0x4442f7[_0x565f('0x50')],_0x22c379?_0x4442f7[_0x565f('0xc')][_0x565f('0x8e')](_0x22c379[_0x565f('0xa0')]()[_0x565f('0xc')])?(_0x22c379[_0x565f('0x71')](),_0x22c379=_0xc5d39c):_0xc5d39c[_0x565f('0x71')]():_0x22c379=_0xc5d39c;}const _0x64c2fe=this['_model'][_0x565f('0x5b')](_0x4be65f,_0x2c1516);if(_0x22c379)this[_0x565f('0x135')](_0x22c379,_0x64c2fe);else{const _0x316588=_0x3fee06(),_0x17ff0f=_0x11491a['id'];this['_setSuggestionData']({'id':_0x316588,'type':_0x565f('0x3f')+_0x1db1d9,'data':_0x2c82d0,'createdAt':new Date(),'authorId':_0x17ff0f,'attributes':_0x5dd122}),this['_addSuggestionMarker'](_0x565f('0x3f')+_0x1db1d9,_0x316588,_0x17ff0f,_0x64c2fe);}}return null;}[_0x565f('0x34')](_0x56c154,_0x2d0d8c,_0x1df9a3=[],_0x1c487c=null,_0x2b7770={}){_0x2d0d8c[_0x565f('0x46')]||(_0x2d0d8c['formatGroupId']=_0x2d0d8c[_0x565f('0x36')]),_0x2d0d8c[_0x565f('0x17')]=_0x56c154['is'](_0x565f('0x31')),_0x1c487c=_0x1c487c||Nt(_0x2d0d8c);const _0x105d37=_0x1df9a3[_0x565f('0xec')](_0x5c3dac=>jt(_0x5c3dac,this[_0x565f('0x8f')])),_0xe93bad=_0x56c154['is'](_0x565f('0x31'))?_0x56c154:jt(_0x56c154,this[_0x565f('0x8f')]);if(_0x565f('0xd0')===this[_0x565f('0x13f')]){const _0x50ee65=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x109'),_0x1c487c,_0x565f('0xdf'));return this[_0x565f('0x29')](()=>_0x50ee65([_0xe93bad],_0x2d0d8c,_0x2b7770)),null;}_0x105d37[_0x565f('0xe2')](_0xe93bad);let _0x5942cd=!0x0;for(const _0x54345 of _0x105d37)if(!this[_0x565f('0x99')](_0x54345)){_0x5942cd=!0x1;break;}if(_0x5942cd&&_0x565f('0x65')!==this[_0x565f('0x13f')]){const _0x21f010=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x109'),_0x1c487c,_0x565f('0xdf'));return this[_0x565f('0x29')](()=>_0x21f010([_0xe93bad],_0x2d0d8c,_0x2b7770)),null;}let _0x5d5c01=null,_0x54fb67=_0xe93bad[_0x565f('0xc')],_0x5e6c66=_0xe93bad[_0x565f('0x50')];for(const {suggestion:_0x1c095e,meta:_0x419571}of this[_0x565f('0x51')](_0xe93bad,_0x565f('0x109'))){if(!_0x419571['isOwn'])continue;if(_0x419571[_0x565f('0x21')]||_0x419571['containsRangeInObject']||_0x419571[_0x565f('0x81')])continue;if(_0x1c095e['data']['formatGroupId']!=_0x2d0d8c['formatGroupId'])continue;if(!Ot(_0x1c095e,_0x2b7770))continue;const _0x5bd1f8=_0x1c095e[_0x565f('0xa0')]();if(_0x1c095e[_0x565f('0xbf')]==_0x1c487c){if(_0x5bd1f8[_0x565f('0xb7')](_0xe93bad,!0x0))return null;_0x54fb67=_0x54fb67[_0x565f('0x8e')](_0x5bd1f8[_0x565f('0xc')])?_0x54fb67:_0x5bd1f8[_0x565f('0xc')],_0x5e6c66=_0x5e6c66['isAfter'](_0x5bd1f8[_0x565f('0x50')])?_0x5e6c66:_0x5bd1f8[_0x565f('0x50')],_0x5d5c01?_0x5bd1f8[_0x565f('0xc')][_0x565f('0x8e')](_0x5d5c01[_0x565f('0xa0')]()['start'])?(_0x5d5c01[_0x565f('0x71')](),_0x5d5c01=_0x1c095e):_0x1c095e[_0x565f('0x71')]():_0x5d5c01=_0x1c095e;}else{const _0x24e263=_0xe93bad[_0x565f('0x127')](_0x5bd1f8);this[_0x565f('0x126')](_0x1c095e,_0x24e263);}}const _0x233f64=this['editor']['plugins']['get'](_0x565f('0x9c'))['me'],_0x3e189d=_0x3fee06(),_0x4cc0e8=_0x233f64['id'];if(_0x5d5c01)return this[_0x565f('0x135')](_0x5d5c01,this[_0x565f('0x8f')][_0x565f('0x5b')](_0x54fb67,_0x5e6c66)),_0x5d5c01;{const _0x23a85e=this[_0x565f('0x2f')]({'id':_0x3e189d,'type':_0x565f('0x122')+_0x1c487c,'data':_0x2d0d8c,'createdAt':new Date(),'authorId':_0x4cc0e8,'attributes':_0x2b7770});return this['_addSuggestionMarker']('formatBlock:'+_0x1c487c,_0x3e189d,_0x4cc0e8,this[_0x565f('0x8f')]['createRange'](_0x54fb67,_0x5e6c66)),_0x23a85e;}}[_0x565f('0x9d')](_0x833e00,_0x2e5871,_0x134d82=[],_0x1cddbf=null,_0x171a72={}){_0x2e5871['formatGroupId']||(_0x2e5871['formatGroupId']=_0x2e5871['commandName']);const _0x19a9e5=_0x833e00[0x0];_0x2e5871[_0x565f('0x17')]=_0x19a9e5['is'](_0x565f('0x31')),_0x1cddbf=_0x1cddbf||Nt(_0x2e5871);const _0x30634d=_0x134d82[_0x565f('0xec')](_0x47f945=>jt(_0x47f945,this[_0x565f('0x8f')])),_0x41aeb5=_0x19a9e5['is'](_0x565f('0x31'))?_0x833e00:_0x833e00[_0x565f('0xec')](_0x5c84d0=>jt(_0x5c84d0,this['_model']));if(_0x565f('0xd0')===this['_trackFormatChanges']){const _0x972b2a=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x109'),_0x1cddbf,'accept');return this[_0x565f('0x29')](()=>_0x972b2a(_0x41aeb5,_0x2e5871,_0x171a72)),null;}_0x30634d['push'](..._0x41aeb5);let _0x2c2bba=!0x0;for(const _0x2ee840 of _0x30634d)if(!this[_0x565f('0x99')](_0x2ee840)){_0x2c2bba=!0x1;break;}if(_0x2c2bba&&_0x565f('0x65')!==this['_trackFormatChanges']){const _0x3a9a17=this[_0x565f('0x4b')][_0x565f('0xb2')]('formatBlock',_0x1cddbf,_0x565f('0xdf'));return this['forceDefaultExecution'](()=>_0x3a9a17(_0x41aeb5,_0x2e5871,_0x171a72)),null;}const _0x398950=this[_0x565f('0x5a')]['plugins'][_0x565f('0x118')](_0x565f('0x9c'))['me'];for(const _0x5eaf2a of this[_0x565f('0x13e')]()){if(_0x5eaf2a[_0x565f('0x24')]['id']!=_0x398950['id'])continue;if(_0x565f('0x109')!=_0x5eaf2a[_0x565f('0xbb')]||_0x5eaf2a[_0x565f('0x136')][_0x565f('0x46')]!=_0x2e5871[_0x565f('0x46')])continue;if(!Ot(_0x5eaf2a,_0x171a72))continue;const _0x57ecad=_0x5eaf2a[_0x565f('0xbf')]==_0x1cddbf;for(let _0x1cafb0=0x0;_0x1cafb0<_0x41aeb5[_0x565f('0x11d')];_0x1cafb0++){const _0x32af3f=_0x41aeb5[_0x1cafb0];for(const _0x2aa322 of _0x5eaf2a[_0x565f('0x8c')]()){const _0x3bb849=_0x2aa322[_0x565f('0x92')]();if(_0x32af3f[_0x565f('0x39')](_0x3bb849)){_0x57ecad?(_0x41aeb5[_0x565f('0xa6')](_0x1cafb0,0x1),_0x1cafb0--):_0x5eaf2a[_0x565f('0xe1')](_0x2aa322[_0x565f('0x72')]);break;}}}}if(0x0==_0x41aeb5[_0x565f('0x11d')])return null;const _0x3982bd=this['_suggestionFactory'][_0x565f('0xb2')]('formatBlock',_0x1cddbf,_0x565f('0xac'));for(const _0xb121ab of this[_0x565f('0x13e')]())if(_0xb121ab['author']['id']==_0x398950['id']&&_0x565f('0x109')==_0xb121ab[_0x565f('0xbb')]&&_0xb121ab[_0x565f('0x136')][_0x565f('0x46')]==_0x2e5871[_0x565f('0x46')]&&_0xb121ab[_0x565f('0xbf')]==_0x1cddbf&&Ot(_0xb121ab,_0x171a72)&&(_0x3982bd(_0xb121ab[_0x565f('0xe6')](),_0x41aeb5)||_0x3982bd(_0x41aeb5,_0xb121ab[_0x565f('0xe6')]()))){for(const _0x2395a2 of _0x41aeb5)_0xb121ab[_0x565f('0x117')](_0x2395a2);return _0xb121ab;}const _0x478dbf=_0x3fee06(),_0x233af6=_0x398950['id'],_0x3f2b1f=_0x565f('0x122')+_0x1cddbf,_0x2f5c2f=this['_setSuggestionData']({'id':_0x478dbf,'type':_0x3f2b1f,'data':_0x2e5871,'createdAt':new Date(),'authorId':_0x233af6,'attributes':_0x171a72});for(const _0x5d3108 of _0x41aeb5)this['_addSuggestionMarker'](_0x3f2b1f,_0x478dbf,_0x233af6,_0x5d3108,_0x95cc51[_0x565f('0xdb')]());return _0x2f5c2f;}[_0x565f('0x68')](_0x1b03f3,_0x48aab8=null,_0x1bd708={}){if(_0x1b03f3[_0x565f('0xa5')])return null;const _0x379d05=this[_0x565f('0x5a')]['plugins'][_0x565f('0x118')](_0x565f('0x9c'))['me'],_0x54109b=new _0x3e0e55(_0x1b03f3[_0x565f('0xc')],_0x1b03f3['end']);for(const {suggestion:_0x56d738,meta:_0x2399e6}of this[_0x565f('0x51')](_0x54109b,_0x565f('0x103')))if(_0x2399e6['isOwn']&&!_0x2399e6[_0x565f('0x21')]){if(_0x56d738['isMultiRange']){const _0x550c30=_0x56d738[_0x565f('0xe6')]()[_0x565f('0x37')](_0x362854=>_0x565f('0x82')!=_0x362854['root'][_0x565f('0x16')]);_0x550c30[_0x565f('0x7f')](_0x52d89b=>_0x54109b[_0x565f('0xb7')](_0x52d89b,!0x0))&&_0x56d738[_0x565f('0x10d')]();if(_0x550c30[_0x565f('0x124')](_0x4858b8=>_0x4858b8[_0x565f('0xb7')](_0x54109b,!0x0))){const _0x1f32d6=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x60'),_0x48aab8,'accept');return this['forceDefaultExecution'](()=>_0x1f32d6([_0x54109b],null,_0x1bd708)),null;}}else{const _0x44cc2e=_0x54109b[_0x565f('0x127')](_0x56d738[_0x565f('0xa0')]());null!==_0x44cc2e&&_0x56d738[_0x565f('0xc8')]([_0x44cc2e],null,_0x1bd708);}}if(_0x54109b['detach'](),_0x54109b['isCollapsed']||'$graveyard'==_0x54109b[_0x565f('0xc7')]['rootName'])return null;let _0x3efca6=null,_0x2831de=_0x54109b[_0x565f('0xc')],_0x167ca9=_0x54109b[_0x565f('0x50')];const _0xe606af=this[_0x565f('0x51')](_0x54109b,_0x565f('0x60'));for(const {suggestion:_0x426511,meta:_0x53a010}of _0xe606af){const _0x211af7=this[_0x565f('0x8f')][_0x565f('0x5b')](_0x2831de,_0x167ca9);if(_0x53a010[_0x565f('0xe8')]&&(this[_0x565f('0x9')]||!_0x53a010[_0x565f('0xad')]&&!_0x53a010[_0x565f('0x81')])){if(_0x426511[_0x565f('0xfb')]){if(!Ot(_0x426511,_0x1bd708))continue;let _0x478cb4=!0x0;for(const _0x52ef61 of _0x426511[_0x565f('0xe6')]()){if(_0x52ef61['containsRange'](_0x211af7,!0x0))return _0x426511;_0x211af7[_0x565f('0xb7')](_0x52ef61)||(_0x478cb4=!0x1);}_0x478cb4&&_0x426511['discard']();}else{const _0x4011a8=_0x426511['getFirstRange']();if(_0x4011a8['containsRange'](_0x211af7,!0x0))return _0x426511;if(!Ot(_0x426511,_0x1bd708)){_0x211af7['containsRange'](_0x4011a8)?_0x426511['removeMarkers']():_0x4011a8[_0x565f('0x121')](_0x2831de)?_0x2831de=_0x4011a8['end']:_0x4011a8[_0x565f('0x121')](_0x167ca9)&&(_0x167ca9=_0x4011a8[_0x565f('0xc')]);continue;}_0x2831de=_0x2831de[_0x565f('0x8e')](_0x4011a8[_0x565f('0xc')])?_0x2831de:_0x4011a8[_0x565f('0xc')],_0x167ca9=_0x167ca9['isAfter'](_0x4011a8[_0x565f('0x50')])?_0x167ca9:_0x4011a8['end'],_0x1bd708=Object['assign']({},_0x426511[_0x565f('0x9a')]),_0x3efca6?_0x4011a8[_0x565f('0xc')]['isBefore'](_0x3efca6[_0x565f('0xa0')]()[_0x565f('0xc')])?(_0x3efca6[_0x565f('0x71')](),_0x3efca6=_0x426511):_0x426511[_0x565f('0x71')]():_0x3efca6=_0x426511;}}}if(_0x3efca6)return this[_0x565f('0x135')](_0x3efca6,this[_0x565f('0x8f')][_0x565f('0x5b')](_0x2831de,_0x167ca9)),_0x3efca6;{const _0x30f2f5=_0x3fee06(),_0x1b74eb=this[_0x565f('0x8f')]['createRange'](_0x2831de,_0x167ca9),_0x34bca2=_0x379d05['id'],_0x166ff6=_0x48aab8?'deletion:'+_0x48aab8:'deletion',_0x1c1dab=this['_setSuggestionData']({'id':_0x30f2f5,'type':_0x166ff6,'createdAt':new Date(),'authorId':_0x34bca2,'attributes':_0x1bd708});return this[_0x565f('0xd8')](_0x166ff6,_0x30f2f5,_0x34bca2,_0x1b74eb),_0x1c1dab;}}['markMultiRangeDeletion'](_0x3571a5,_0x18975c='multi',_0x4d182a={}){const _0x420da3=this[_0x565f('0x5a')][_0x565f('0x4c')][_0x565f('0x118')]('Users')['me'],_0x1222c5=_0x3571a5[_0x565f('0xec')](_0x37b076=>new _0x3e0e55(_0x37b076[_0x565f('0xc')],_0x37b076[_0x565f('0x50')])),_0x193d3d=new Set();for(const {suggestion:_0x5a8ddb,meta:_0x5e58c5}of this[_0x565f('0x51')](_0x1222c5,_0x565f('0x103')))_0x5e58c5['isOwn']&&!_0x5e58c5[_0x565f('0x21')]&&_0x193d3d[_0x565f('0xe')](_0x5a8ddb);for(const _0xd9222e of _0x193d3d)if(_0xd9222e[_0x565f('0xfb')]){const _0x27b6e7=_0xd9222e[_0x565f('0xe6')]();(!_0xd9222e[_0x565f('0x9a')]||!_0xd9222e[_0x565f('0x9a')]['skipNestingCheck'])&&(_0x27b6e7[_0x565f('0x7f')](_0x1eefbd=>_0x1222c5[_0x565f('0x124')](_0x766d13=>_0x766d13[_0x565f('0xb7')](_0x1eefbd,!0x0)))&&_0xd9222e[_0x565f('0x10d')]());if(_0x1222c5[_0x565f('0x7f')](_0x34cd2f=>_0x27b6e7[_0x565f('0x124')](_0xb8a742=>_0xb8a742[_0x565f('0xb7')](_0x34cd2f,!0x0)))){const _0x4e2383=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x60'),_0x18975c,_0x565f('0xdf'));return this[_0x565f('0x29')](()=>_0x4e2383(_0x3571a5,null,_0x4d182a)),null;}}else{const _0x582aca=_0xd9222e[_0x565f('0xa0')]();_0x1222c5['some'](_0x21ec40=>_0x21ec40['containsRange'](_0x582aca,!0x0))&&_0xd9222e[_0x565f('0x10d')]();if(_0x1222c5[_0x565f('0x7f')](_0x222a9a=>_0x582aca[_0x565f('0xb7')](_0x222a9a,!0x0))){const _0x80e27c=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x60'),_0x18975c,_0x565f('0xdf'));return this[_0x565f('0x29')](()=>_0x80e27c(_0x1222c5,null,_0x4d182a)),null;}}const _0x25b124=this[_0x565f('0x4b')][_0x565f('0xb2')](_0x565f('0x60'),_0x18975c,'join');let _0x1ecd14=null;for(const _0x243593 of this[_0x565f('0x13e')]())if(_0x243593['author']['id']==_0x420da3['id']&&_0x243593[_0x565f('0xa3')]&&'deletion'==_0x243593[_0x565f('0xbb')]&&_0x243593[_0x565f('0xbf')]==_0x18975c&&Ot(_0x243593,_0x4d182a)&&(_0x25b124(_0x243593[_0x565f('0xe6')](),_0x1222c5)||_0x25b124(_0x1222c5,_0x243593['getRanges']()))){if(_0x1ecd14){if(_0x243593[_0x565f('0xa9')]&&_0x243593[_0x565f('0xa9')]['length'])continue;for(const _0x427e19 of _0x243593['getRanges']())_0x1ecd14[_0x565f('0x1a')](_0x427e19)||_0x1ecd14['addRange'](_0x427e19);_0x243593[_0x565f('0x71')]();}else{_0x1ecd14=_0x243593;for(const _0x4c4b44 of _0x1222c5)_0x243593['isIntersectingWithRange'](_0x4c4b44)||_0x243593[_0x565f('0x117')](_0x4c4b44);}}if(_0x1ecd14)return _0x1ecd14;_0x193d3d[_0x565f('0x10b')]();for(const {suggestion:_0x3516ed,meta:_0x55f0f6}of this[_0x565f('0x51')](_0x1222c5,_0x565f('0x60')))_0x55f0f6[_0x565f('0xe8')]&&(this['_mergeNestedSuggestions']||!_0x55f0f6[_0x565f('0xad')]&&!_0x55f0f6[_0x565f('0x81')])&&Ot(_0x3516ed,_0x4d182a)&&_0x193d3d[_0x565f('0xe')](_0x3516ed);for(const _0x326f22 of _0x193d3d){const _0x3f5845=_0x326f22['getRanges']();if(!_0x4d182a||!_0x4d182a['skipNestingCheck']){if(_0x1222c5[_0x565f('0x7f')](_0x1fd8ea=>_0x3f5845[_0x565f('0x124')](_0x3d184b=>_0x3d184b[_0x565f('0xb7')](_0x1fd8ea,!0x0))))return _0x326f22;}(!_0x326f22[_0x565f('0x9a')]||!_0x326f22[_0x565f('0x9a')][_0x565f('0x113')])&&(_0x3f5845[_0x565f('0x7f')](_0x27c0e2=>_0x1222c5[_0x565f('0x124')](_0x281656=>_0x281656[_0x565f('0xb7')](_0x27c0e2,!0x0)))&&_0x326f22['discard']());}const _0x28aa3c=_0x3fee06(),_0x2a4574=_0x420da3['id'],_0x504171=_0x565f('0x4')+_0x18975c,_0xc6a3fc=this[_0x565f('0x2f')]({'id':_0x28aa3c,'type':_0x504171,'createdAt':new Date(),'authorId':_0x2a4574,'attributes':_0x4d182a});for(const _0x4930c5 of _0x1222c5)_0x4930c5[_0x565f('0xf8')](),_0x4930c5[_0x565f('0xa5')]||'$graveyard'==_0x4930c5[_0x565f('0xc7')][_0x565f('0x16')]||this['_addSuggestionMarker'](_0x504171,_0x28aa3c,_0x2a4574,_0x4930c5,_0x95cc51[_0x565f('0xdb')]());return _0xc6a3fc;}[_0x565f('0x135')](_0x5e73a9,_0x396bb1){const _0x560fd1=_0x5e73a9[_0x565f('0x1e')]();this[_0x565f('0x8f')]['change'](_0x2a396f=>{_0x2a396f[_0x565f('0x88')](_0x560fd1,{'range':_0x396bb1});});}[_0x565f('0xf2')](_0x5653e5){const _0xf771db=_0x5653e5['id'],_0xb651d5=this[_0x565f('0x5a')][_0x565f('0xf6')][_0x565f('0x118')](_0x565f('0x3b'));this[_0x565f('0x45')][_0x565f('0x18')](_0xf771db)||this[_0x565f('0x45')]['addCommentThread']({'channelId':_0xb651d5,'threadId':_0xf771db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27b2ab=this['_commentsRepository']['getCommentThread'](_0xf771db);_0x27b2ab[_0x565f('0x32')](_0x565f('0x48')),_0x27b2ab['isRemovable']=!0x1,_0x5653e5[_0x565f('0xa9')]=_0x27b2ab;}[_0x565f('0x4f')](_0xf2c06e,_0x5992a5,_0x2c98f5,_0x5833d9){if(_0xf2c06e[_0x565f('0xbb')]!=_0x5992a5||_0xf2c06e[_0x565f('0xbf')]!=_0x2c98f5||_0xf2c06e[_0x565f('0x108')]['id']!=_0x5833d9)throw this[_0x565f('0x5a')][_0x565f('0x139')](_0x565f('0xaf')),new _0x519a29(_0x565f('0xaf'),this);}[_0x565f('0x126')](_0x14409a,_0x20a412){const _0x23db55=_0x14409a['getFirstRange']();if(_0x20a412[_0x565f('0x39')](_0x23db55))_0x14409a['removeMarkers']();else{if(_0x23db55[_0x565f('0xb7')](_0x20a412)){const _0x20998a=this[_0x565f('0x8f')][_0x565f('0xb')](_0x20a412[_0x565f('0xc')][_0x565f('0x3c')],_0x565f('0x50'));this['_setSuggestionRange'](_0x14409a,this[_0x565f('0x8f')]['createRange'](_0x23db55[_0x565f('0xc')],_0x20998a));const _0x500a63=_0x3fee06(),_0x41c8d4=_0x14409a['creator']['id'],_0x2c2482=_0x14409a[_0x565f('0xbb')]+':'+_0x14409a[_0x565f('0xbf')];this[_0x565f('0x2f')]({'id':_0x500a63,'type':_0x2c2482,'createdAt':new Date(),'authorId':_0x41c8d4,'data':_0x14409a['data'],'attributes':_0x14409a[_0x565f('0x9a')]});const _0x1ed05c=this[_0x565f('0x8f')][_0x565f('0xb')](_0x20a412[_0x565f('0x50')]['parent'],_0x565f('0xcd')),_0x189a03=this[_0x565f('0x8f')][_0x565f('0x5b')](_0x1ed05c,_0x23db55['end']);this[_0x565f('0xd8')](_0x2c2482,_0x500a63,_0x41c8d4,_0x189a03);}else{if(_0x23db55['containsPosition'](_0x20a412[_0x565f('0xc')])){const _0x2791d8=this[_0x565f('0x8f')][_0x565f('0xb')](_0x20a412['start'][_0x565f('0x3c')],_0x565f('0x50'));this[_0x565f('0x135')](_0x14409a,this['_model']['createRange'](_0x23db55[_0x565f('0xc')],_0x2791d8));}else{const _0xa346b9=this['_model'][_0x565f('0xb')](_0x20a412[_0x565f('0x50')][_0x565f('0x67')],_0x565f('0xcd'));this[_0x565f('0x135')](_0x14409a,this['_model']['createRange'](_0xa346b9,_0x23db55['end']));}}}}[_0x565f('0x99')](_0x1ebe11){for(const {suggestion:_0x3b2333,meta:_0x313b3f}of this[_0x565f('0x51')](_0x1ebe11,_0x565f('0x103'))){if(!_0x313b3f['isOwn'])continue;const _0x401004=_0x3b2333[_0x565f('0xe6')]();for(const _0x2dedcc of _0x401004)if(!_0x1ebe11[_0x565f('0x25')](_0x2dedcc)[_0x565f('0x11d')])return!0x0;}return!0x1;}[_0x565f('0xa7')](_0x264c38){const _0x2ec605=this[_0x565f('0x5a')]['plugins'][_0x565f('0x118')](_0x565f('0x9c'))[_0x565f('0x140')](_0x264c38);if(!_0x2ec605)throw new _0x519a29(_0x565f('0xab'),this);return _0x2ec605;}[_0x565f('0xda')](_0x3a4229){const _0x4fccf0=this[_0x565f('0x5a')][_0x565f('0x4c')]['get']('Users'),_0x1b8fae=_0xc80832('external:'+_0x3a4229),_0x4082d2=_0x4fccf0[_0x565f('0x140')](_0x1b8fae);return _0x4082d2||_0x4fccf0[_0x565f('0x11a')]({'id':_0x1b8fae,'name':_0x3a4229});}[_0x565f('0x6b')](_0x53694f,_0x313427,_0x318f1c,_0x220b0f,_0x17d889){const _0x2e80bb=this[_0x565f('0xa7')](_0x220b0f),_0x441dad=this[_0x565f('0x4b')][_0x565f('0x12f')](_0x53694f,_0x313427,_0x318f1c,_0x2e80bb,_0x17d889,_0x1e284b=>this[_0x565f('0x40')](_0x318f1c,{'attributes':_0x1e284b}));return this[_0x565f('0x6e')](_0x441dad,_0x565f('0xdf'),()=>{this['_updateSuggestionData'](_0x318f1c,{'state':_0x565f('0x15')});},{'priority':'high'}),this[_0x565f('0x6e')](_0x441dad,_0x565f('0x10d'),()=>{this['_updateSuggestionData'](_0x318f1c,{'state':'rejected'});},{'priority':_0x565f('0x11c')}),this[_0x565f('0x100')]['set'](_0x318f1c,_0x441dad),this['_suggestionState']['set'](_0x441dad,'notReady'),_0x441dad;}[_0x565f('0x86')](_0x22b813){const _0x56a4ec=_0x22b813['split'](':');return{'group':_0x56a4ec[0x0],'type':_0x56a4ec[0x1],'subType':_0x56a4ec['length']>=0x5?_0x56a4ec[0x2]:null,'id':_0x56a4ec['length']<0x5?_0x56a4ec[0x2]:_0x56a4ec[0x3],'authorId':_0x56a4ec['length']<0x5?_0x56a4ec[0x3]:_0x56a4ec[0x4],'markerCount':0x6==_0x56a4ec[_0x565f('0x11d')]?_0x56a4ec[0x5]:null};}[_0x565f('0x9f')](_0x4920af,_0x28a875,_0xc79263){const _0xdbddb5=_0x4920af[_0x565f('0xa0')](),_0x25d00d=_0xdbddb5[_0x565f('0xc')],_0x3a8c42=_0xdbddb5[_0x565f('0x50')];this['_setSuggestionRange'](_0x4920af,this['_model'][_0x565f('0x5b')](_0x25d00d,_0x28a875));const _0xb2fa4a=_0x3fee06(),_0x23203b=_0x4920af[_0x565f('0x108')]['id'],_0x21f1e7=_0x4920af[_0x565f('0xbb')]+(_0x4920af[_0x565f('0xbf')]?':'+_0x4920af['subType']:'');this[_0x565f('0x2f')]({'id':_0xb2fa4a,'type':_0x21f1e7,'createdAt':new Date(),'authorId':_0x23203b,'originalSuggestionId':_0x4920af['id'],'attributes':_0x4920af['attributes'],'data':_0x4920af[_0x565f('0x136')]}),_0x565f('0x109')==_0x4920af['type']&&(_0xc79263=this[_0x565f('0x8f')]['createPositionBefore'](_0xc79263[_0x565f('0x67')])),this[_0x565f('0xd8')](_0x21f1e7,_0xb2fa4a,_0x23203b,this['_model'][_0x565f('0x5b')](_0xc79263,_0x3a8c42));}[_0x565f('0x51')](_0x389091,_0x450743=null){const _0x3461d2=[],_0x52fc92=this[_0x565f('0x5a')][_0x565f('0x4c')][_0x565f('0x118')](_0x565f('0x9c'))['me'];Array['isArray'](_0x389091)||(_0x389091=[_0x389091]);for(const _0x2c19e7 of this[_0x565f('0x13e')]()){if(!_0x2c19e7[_0x565f('0xa3')])continue;if(_0x450743&&_0x2c19e7[_0x565f('0xbb')]!=_0x450743)continue;let _0x4f9c5f=!0x1;for(const _0x2d3cc1 of _0x2c19e7['getRanges']()){for(const _0x2964e8 of _0x389091){const _0x534bf4=_0x2964e8['start'][_0x565f('0x39')](_0x2d3cc1[_0x565f('0x50')])||_0x2964e8[_0x565f('0x50')][_0x565f('0x39')](_0x2d3cc1[_0x565f('0xc')]);if(_0x534bf4||_0x2964e8[_0x565f('0x127')](_0x2d3cc1)){const _0x28b4a8=_0x2964e8[_0x565f('0xb7')](_0x2d3cc1)&&_t(this[_0x565f('0x8f')][_0x565f('0xe5')],_0x2d3cc1[_0x565f('0xc')],_0x2964e8),_0x411b8f=_0x2d3cc1['containsRange'](_0x2964e8)&&_t(this[_0x565f('0x8f')]['schema'],_0x2964e8[_0x565f('0xc')],_0x2d3cc1);_0x3461d2[_0x565f('0xe2')]({'suggestion':_0x2c19e7,'meta':{'isOwn':_0x52fc92==_0x2c19e7[_0x565f('0x24')],'isNextTo':_0x534bf4,'isInsideObject':_0x28b4a8,'containsRangeInObject':_0x411b8f}}),_0x4f9c5f=!0x0;break;}}if(_0x4f9c5f)break;}}return _0x3461d2;}['_addSuggestionMarker'](_0x34e53e,_0x1090e1,_0xf19eec,_0x5e3641,_0x29d2df){this['_model'][_0x565f('0x43')](_0x44e280=>{let _0x4cd1f6=_0x565f('0xf0')+_0x34e53e+':'+_0x1090e1+':'+_0xf19eec;_0x29d2df&&(_0x4cd1f6=_0x4cd1f6+':'+_0x29d2df),_0x44e280['addMarker'](_0x4cd1f6,{'range':_0x5e3641,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x565f('0x73')](_0x3a5088){const _0x2145e1=_0x3a5088[_0x565f('0x104')],_0xb320b6=_0x3a5088[_0x565f('0x5f')];_0x3a5088['previous']=null,null!=_0x2145e1&&(_0x2145e1[_0x565f('0x5f')]=null),_0x3a5088[_0x565f('0x5f')]=null,null!=_0xb320b6&&(_0xb320b6['previous']=null),'ready'==this[_0x565f('0x56')][_0x565f('0x118')](_0x3a5088)&&(this['_suggestionState'][_0x565f('0x94')](_0x3a5088,'removed'),this[_0x565f('0x1c')](_0x565f('0x38'),_0x3a5088,_0x2145e1,_0xb320b6));}[_0x565f('0x2f')](_0x19d46d){const _0x2c43e4=_0x19d46d['id'],_0x547eab=this['addSuggestionData'](_0x19d46d);if(this[_0x565f('0x61')]&&this[_0x565f('0x61')][_0x565f('0x57')]){const _0x2b65b5=this[_0x565f('0x5a')][_0x565f('0x4c')]['get'](_0x565f('0xc1')),_0xeecbde=_0x547eab['hasComments'],_0x43dd22=_0x547eab[_0x565f('0xbf')]?_0x547eab[_0x565f('0xbb')]+':'+_0x547eab[_0x565f('0xbf')]:_0x547eab[_0x565f('0xbb')],_0x1d8b94=this['editor']['locale'],_0x5277e9=_0x2b65b5[_0x565f('0xe')](_0x2e54cc(_0x1d8b94,'PENDING_ACTION_SUGGESTION')),_0x2b368f={'id':_0x2c43e4,'type':_0x43dd22,'hasComments':_0xeecbde,'data':_0x19d46d[_0x565f('0x136')]||null,'originalSuggestionId':_0x19d46d[_0x565f('0x8a')]||null,'attributes':_0x547eab[_0x565f('0x9a')]};this[_0x565f('0x61')]['addSuggestion'](_0x2b368f)[_0x565f('0x112')](_0x125b50=>{_0x547eab[_0x565f('0xff')]=!0x0,_0x2b65b5[_0x565f('0x6f')](_0x5277e9),_0x125b50&&_0x125b50['createdAt']&&(this[_0x565f('0x100')]['get'](_0x2c43e4)['createdAt']=_0x125b50[_0x565f('0x8d')]);})['catch'](_0x453112=>{throw _0x20ab34(_0x565f('0x12a')),this[_0x565f('0x5a')][_0x565f('0x12c')][_0x565f('0xb5')]({'isUndoable':!0x1},()=>{_0x547eab[_0x565f('0x10d')]();}),_0x547eab[_0x565f('0x58')](),this[_0x565f('0x100')][_0x565f('0xe0')](_0x547eab['id']),this[_0x565f('0x56')][_0x565f('0xe0')](_0x547eab),_0x453112;});}return _0x547eab;}[_0x565f('0x40')](_0x366e1d,_0x2e00b4){const _0xfe90eb=this[_0x565f('0x5a')]['plugins'][_0x565f('0x118')](_0x565f('0xc1')),_0x43d8d6=this['getSuggestion'](_0x366e1d);if(this[_0x565f('0x61')]&&this[_0x565f('0x61')][_0x565f('0xe9')]){if(_0x43d8d6[_0x565f('0xff')]){const _0x563f31=_0xfe90eb[_0x565f('0xe')](_0x2e54cc(this[_0x565f('0x5a')][_0x565f('0xdd')],_0x565f('0x47')));this['_adapter'][_0x565f('0xe9')](_0x366e1d,_0x2e00b4)['then'](()=>{_0xfe90eb['remove'](_0x563f31);});}else _0x43d8d6['on'](_0x565f('0x4e'),()=>{this['_updateSuggestionData'](_0x366e1d,_0x2e00b4);});}}[_0x565f('0xee')](_0x342599){if(!this['_adapter']||!this[_0x565f('0x61')][_0x565f('0x6d')])throw new _0x519a29(_0x565f('0x110'),this);return this[_0x565f('0x61')][_0x565f('0x6d')](_0x342599);}[_0x565f('0x129')](_0x31f03f){const {id:_0x26608d,type:_0x54fcf5,subType:_0x36be65,authorId:_0x4b5a86}=this[_0x565f('0x86')](_0x31f03f),_0xb33654=this[_0x565f('0x100')][_0x565f('0x118')](_0x26608d)||this[_0x565f('0x6b')](_0x54fcf5,_0x36be65,_0x26608d,_0x4b5a86,{});switch(this[_0x565f('0x4f')](_0xb33654,_0x54fcf5,_0x36be65,_0x4b5a86),this['_suggestionState']['get'](_0xb33654)){case _0x565f('0x134'):this[_0x565f('0xee')](_0x26608d)['then'](_0xdcead3=>{let _0x40f1db=Promise['resolve']();_0xdcead3['hasComments']&&(_0x40f1db=this[_0x565f('0x45')][_0x565f('0x1f')]({'channelId':this[_0x565f('0x5a')][_0x565f('0xf6')]['get'](_0x565f('0x3b')),'threadId':_0x26608d})),_0x40f1db[_0x565f('0x112')](()=>{this[_0x565f('0x116')](_0xdcead3)[_0x565f('0xff')]=!0x0;});}),this['_suggestionState'][_0x565f('0x94')](_0xb33654,_0x565f('0xe7'));break;case _0x565f('0x115'):this[_0x565f('0x40')](_0x26608d,{'state':_0x565f('0x10c')});case _0x565f('0x14'):this['_suggestionState']['set'](_0xb33654,_0x565f('0x54')),this['fire'](_0x565f('0xdc'),_0xb33654);break;case'ready':this[_0x565f('0x1c')](_0x565f('0xd'),_0xb33654);}return _0xb33654[_0x565f('0x9e')](_0x31f03f),_0xb33654;}[_0x565f('0x2c')](_0x1e10f8){const _0x304d7e=Array[_0x565f('0x138')](_0x1e10f8)[_0x565f('0x37')](_0x2266b3=>!_0x2266b3['isMultiRange']),_0x2aac05=this[_0x565f('0x13e')]({'skipNotAttached':!0x0})[_0x565f('0x37')](_0x16ff9d=>!_0x16ff9d[_0x565f('0xfb')]),_0x1e7cf3=_0x2aac05[_0x565f('0x37')](_0xd9c500=>!_0x1e10f8[_0x565f('0x52')](_0xd9c500)),_0x3b4e1b=new Map(_0x2aac05[_0x565f('0xec')](_0xad2289=>[_0xad2289,this[_0x565f('0x4b')]['getSuggestionCallback'](_0xad2289[_0x565f('0xbb')],_0xad2289['subType'],'chain')])),_0x181607=new Map(_0x2aac05['map'](_0x359bc6=>[_0x359bc6,_0x359bc6['getFirstRange']()])),_0x5b9a4e=new Set(),_0x1d1cfa=new Set();for(let _0x5e052e=0x0;_0x5e052e<_0x304d7e[_0x565f('0x11d')];_0x5e052e++)_0x1154a1(_0x304d7e[_0x5e052e],_0x304d7e,_0x5e052e+0x1);for(let _0x54e6fc=0x0;_0x54e6fc<_0x304d7e[_0x565f('0x11d')];_0x54e6fc++)_0x1154a1(_0x304d7e[_0x54e6fc],_0x1e7cf3,0x0);for(let _0x210361=0x0;_0x210361<_0x304d7e[_0x565f('0x11d')];_0x210361++){const _0xfb47f4=_0x304d7e[_0x210361];!_0x1d1cfa['has'](_0xfb47f4)&&_0xfb47f4[_0x565f('0x104')]&&(_0xfb47f4['previous']['next']===_0xfb47f4&&(_0xfb47f4[_0x565f('0x104')]['next']=null),_0xfb47f4[_0x565f('0x104')]=null),!_0x5b9a4e[_0x565f('0x52')](_0xfb47f4)&&_0xfb47f4[_0x565f('0x5f')]&&(_0xfb47f4[_0x565f('0x5f')][_0x565f('0x104')]===_0xfb47f4&&(_0xfb47f4[_0x565f('0x5f')]['previous']=null),_0xfb47f4['next']=null);}function _0x1154a1(_0x3714fc,_0x505346,_0x2a3551){for(let _0x982d93=_0x2a3551;_0x982d93<_0x505346[_0x565f('0x11d')];_0x982d93++){const _0x128d05=_0x4cdd00(_0x3714fc,_0x505346[_0x982d93]);_0x128d05&&(_0x128d05[0x0][_0x565f('0x5f')]=_0x128d05[0x1],_0x128d05[0x1][_0x565f('0x104')]=_0x128d05[0x0],_0x5b9a4e[_0x565f('0xe')](_0x128d05[0x0]),_0x1d1cfa[_0x565f('0xe')](_0x128d05[0x1]));}}function _0x4cdd00(_0x395e06,_0x5594da){if(_0x395e06[_0x565f('0x24')]['id']!==_0x5594da['author']['id'])return null;const _0x20ac64=_0x3b4e1b[_0x565f('0x118')](_0x395e06)(_0x395e06,_0x5594da,_0x181607[_0x565f('0x118')](_0x395e06),_0x181607[_0x565f('0x118')](_0x5594da));if(!_0x20ac64)return null;return _0x3b4e1b[_0x565f('0x118')](_0x5594da)(_0x395e06,_0x5594da,_0x181607['get'](_0x395e06),_0x181607[_0x565f('0x118')](_0x5594da))?_0x20ac64[0x1][_0x565f('0xa9')]&&_0x20ac64[0x1]['commentThread'][_0x565f('0x11d')]?null:_0x20ac64:null;}}[_0x565f('0x44')](_0x15aea9){const _0x2dc3e7=Array[_0x565f('0x138')](_0x15aea9),_0x248290=this[_0x565f('0x13e')]({'skipNotAttached':!0x0}),_0x30a56b=_0x248290[_0x565f('0x37')](_0x110631=>!_0x15aea9[_0x565f('0x52')](_0x110631)),_0x15067d=new Map(_0x2dc3e7[_0x565f('0xec')](_0x19decf=>[_0x19decf,this[_0x565f('0x4b')][_0x565f('0xb2')](_0x19decf[_0x565f('0xbb')],_0x19decf['subType'],_0x565f('0xac'))])),_0x4c8db4=new Map(_0x248290[_0x565f('0xec')](_0x341a1d=>[_0x341a1d,_0x341a1d[_0x565f('0xe6')]()]));for(let _0x5ebdc6=0x0;_0x5ebdc6<_0x2dc3e7[_0x565f('0x11d')];_0x5ebdc6++){if(_0x4e90cd(this,_0x2dc3e7[_0x5ebdc6],_0x2dc3e7,_0x5ebdc6+0x1))return!0x0;}for(let _0x315f18=0x0;_0x315f18<_0x2dc3e7['length'];_0x315f18++){if(_0x4e90cd(this,_0x2dc3e7[_0x315f18],_0x30a56b,0x0))return!0x0;}return!0x1;function _0x4e90cd(_0x18a235,_0x121a78,_0x138ff3,_0x34b41f){for(let _0x25eff3=_0x34b41f;_0x25eff3<_0x138ff3[_0x565f('0x11d')];_0x25eff3++){const _0x45916a=_0x138ff3[_0x25eff3];if(_0x45916a[_0x565f('0xbb')]!==_0x121a78[_0x565f('0xbb')]||_0x45916a['author']['id']!==_0x121a78[_0x565f('0x24')]['id']||_0x45916a[_0x565f('0xbf')]!==_0x121a78[_0x565f('0xbf')])continue;if(!Ut(_0x121a78,_0x45916a))continue;const _0x42131b=_0x15067d[_0x565f('0x118')](_0x121a78),_0x482a11=_0x4c8db4['get'](_0x121a78),_0x4a1484=_0x4c8db4[_0x565f('0x118')](_0x45916a),_0x123b21=_0x121a78['commentThread']&&_0x121a78['commentThread'][_0x565f('0x11d')],_0x570395=_0x45916a[_0x565f('0xa9')]&&_0x45916a[_0x565f('0xa9')][_0x565f('0x11d')];if(!_0x123b21&&_0x42131b(_0x4a1484,_0x482a11))return _0x18a235[_0x565f('0xa8')](_0x45916a,_0x121a78),_0x4c8db4['delete'](_0x121a78),!0x0;if(!_0x570395&&_0x42131b(_0x482a11,_0x4a1484))return _0x18a235[_0x565f('0xa8')](_0x121a78,_0x45916a),_0x4c8db4[_0x565f('0xe0')](_0x45916a),!0x0;}return!0x1;}}[_0x565f('0xa8')](_0x856827,_0x26d1bc){if(_0x856827[_0x565f('0xfb')])for(const _0x2c98b0 of _0x26d1bc[_0x565f('0xe6')]())_0x856827[_0x565f('0x117')](_0x2c98b0);else{const _0x15e3f2=_0x26d1bc[_0x565f('0xa0')]()['end'];this[_0x565f('0x135')](_0x856827,this['_model'][_0x565f('0x5b')](_0x856827[_0x565f('0xa0')]()[_0x565f('0xc')],_0x15e3f2));}_0x26d1bc[_0x565f('0x71')]();}}class Bt{constructor(_0x1651d0){this[_0x565f('0x2')]=_0x1651d0,this['_model']=_0x1651d0['model'],this[_0x565f('0x123')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x565f('0xd9')]();}[_0x565f('0x12f')](_0xca8b40,_0x49de66,_0x3459bf,_0x22ca1d,_0x463317,_0x1d60d0){return new _0x95cc51(this['_model'],{'type':_0xca8b40,'subType':_0x49de66,'id':_0x3459bf,'author':_0x22ca1d,'creator':_0x22ca1d,'attributes':_0x463317,'onAttributesChange':_0x1d60d0,'onAccept':(..._0x3cab92)=>this['getSuggestionCallback'](_0xca8b40,_0x49de66,'accept')(..._0x3cab92),'onDiscard':(..._0x697bab)=>this[_0x565f('0xb2')](_0xca8b40,_0x49de66,_0x565f('0x10d'))(..._0x697bab)});}[_0x565f('0xf4')](_0x5d0a2d,_0x153ea0,_0x5d969f,_0x4f52ae){const _0x1930ad=_0x5d0a2d+':'+_0x153ea0+':'+_0x5d969f;this['_customCallbacks'][_0x565f('0x94')](_0x1930ad,_0x4f52ae);}[_0x565f('0xb2')](_0x5bc8fa,_0x2039ba,_0x33b140){const _0x4c1a48=_0x5bc8fa+':'+_0x2039ba+':'+_0x33b140;return this[_0x565f('0x123')][_0x565f('0x118')](_0x4c1a48)||this['_defaultCallbacks'][_0x565f('0x118')](_0x5bc8fa+':'+_0x33b140);}[_0x565f('0xd9')](){const _0x5338e6=()=>!0x1,_0x56fdda=_0x1f6dde=>{_0x1f6dde[_0x565f('0xd7')]((_0x3030a5,_0x3ea1c7)=>_0x3030a5[_0x565f('0xc')][_0x565f('0x8e')](_0x3ea1c7[_0x565f('0xc')])?0x1:-0x1),this[_0x565f('0x8f')][_0x565f('0x43')](_0x151e97=>{for(const _0x4aad1a of _0x1f6dde){let _0xc084a3;_0xc084a3=_0x4aad1a['end']['isAtEnd']&&_0x4aad1a['end'][_0x565f('0x67')]==_0x4aad1a[_0x565f('0xc')][_0x565f('0x42')]?_0x151e97[_0x565f('0x33')](_0x4aad1a['start'][_0x565f('0x42')],'on'):_0x151e97[_0x565f('0x33')](_0x4aad1a),this[_0x565f('0x8f')][_0x565f('0xc4')](_0xc084a3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x35a12f=(_0x3d7aee,_0x3e7bcb)=>{this[_0x565f('0x8f')]['change'](_0x335a71=>{const {commandName:_0x2dfa14,commandParams:_0x23d474=[]}=_0x3e7bcb,_0x577154=_0x3d7aee[_0x565f('0xec')](_0x2700ed=>(Mt(_0x2700ed)&&(_0x2700ed=this[_0x565f('0x8f')][_0x565f('0x5b')](_0x2700ed[_0x565f('0x50')])),_0x2700ed))[_0x565f('0x37')](_0x286bd6=>_0x565f('0x82')!==_0x286bd6[_0x565f('0xc7')]['rootName']);if(_0x577154[_0x565f('0x11d')]<0x1)return;const _0xd7eac6=Array[_0x565f('0x138')](this[_0x565f('0x8f')][_0x565f('0x96')][_0x565f('0x3a')]['getRanges']())[_0x565f('0xec')](_0x4db4fa=>_0x3e0e55[_0x565f('0x85')](_0x4db4fa));_0x335a71[_0x565f('0x64')](_0x577154);for(const _0x570bb4 of this[_0x565f('0x2')]['commands'][_0x565f('0x69')]())_0x570bb4['refresh']();_0x23d474[_0x565f('0xe2')]({'forceDefaultExecution':!0x0}),this[_0x565f('0x2')]['execute'](_0x2dfa14,..._0x23d474);const _0x553724=_0xd7eac6[_0x565f('0x37')](_0x4627cb=>_0x565f('0x82')!=_0x4627cb['root']['rootName']);_0x553724[_0x565f('0x11d')]>0x0&&_0x335a71[_0x565f('0x64')](_0x553724);for(const _0x511a77 of _0xd7eac6)_0x511a77[_0x565f('0xf8')]();});},_0x138bb2=(_0x455db2,_0x2cfc0c)=>0x1==_0x455db2[_0x565f('0x11d')]&&0x1==_0x2cfc0c['length']&&_0x455db2[0x0]['end']['isEqual'](_0x2cfc0c[0x0][_0x565f('0xc')]),_0x1a421c=(_0x410c5e,_0x350125,_0x446c1c,_0x239f16)=>xt(_0x410c5e,_0x350125,_0x446c1c,_0x239f16,this[_0x565f('0x8f')])?[_0x410c5e,_0x350125]:xt(_0x350125,_0x410c5e,_0x239f16,_0x446c1c,this[_0x565f('0x8f')])?[_0x350125,_0x410c5e]:null;this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0x75'),_0x5338e6),this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0x2a'),_0x56fdda),this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0x13'),_0x138bb2),this[_0x565f('0xb3')]['set'](_0x565f('0x5c'),_0x1a421c),this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0x76'),_0x56fdda),this[_0x565f('0xb3')][_0x565f('0x94')]('deletion:discard',_0x5338e6),this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0x10f'),_0x138bb2),this[_0x565f('0xb3')]['set'](_0x565f('0x28'),_0x1a421c),this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0x62'),_0x35a12f),this[_0x565f('0xb3')][_0x565f('0x94')]('formatInline:discard',_0x5338e6),this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0xa4'),_0x138bb2),this[_0x565f('0xb3')][_0x565f('0x94')](_0x565f('0x5'),_0x5338e6),this['_defaultCallbacks'][_0x565f('0x94')](_0x565f('0xcb'),_0x35a12f),this['_defaultCallbacks']['set'](_0x565f('0x132'),_0x5338e6),this['_defaultCallbacks'][_0x565f('0x94')](_0x565f('0xc3'),_0x138bb2),this['_defaultCallbacks'][_0x565f('0x94')](_0x565f('0x106'),_0x5338e6);}}function _t(_0x3f2dfd,_0x4a0f70,_0x528752){for(const _0x15077b of _0x4a0f70[_0x565f('0x67')][_0x565f('0x70')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x15077b['root']==_0x15077b)return!0x1;if(!_0x528752['containsItem'](_0x15077b))return!0x1;if(_0x3f2dfd[_0x565f('0xf9')](_0x15077b)||_0x3f2dfd[_0x565f('0x111')](_0x15077b))return!0x0;}return!0x1;}function Mt(_0x1a5fb4){return _0x1a5fb4[_0x565f('0x50')][_0x565f('0x67')]==_0x1a5fb4['start'][_0x565f('0x42')]&&_0x1a5fb4['end']['isAtStart'];}function $t(_0x3619ff,_0x38e81b,_0x49e66b,_0x39fd06){const _0x326eaf=_0x1ea6d0=>!_0x1ea6d0[_0x565f('0x10a')]['is'](_0x565f('0x9b'))&&!_0x39fd06[_0x565f('0xf9')](_0x1ea6d0[_0x565f('0x10a')]),_0x4c5d26=_0x3619ff[_0x565f('0xc')]['getLastMatchingPosition'](_0x326eaf),_0x42cdf1=_0x3619ff[_0x565f('0x50')][_0x565f('0x19')](_0x326eaf,{'direction':_0x565f('0x90')});return(!_0x3619ff['start']['isEqual'](_0x4c5d26)||!_0x3619ff['end']['isEqual'](_0x42cdf1))&&(_0x4c5d26['isBefore'](_0x42cdf1)?_0x49e66b[_0x565f('0x88')](_0x38e81b,{'range':_0x49e66b[_0x565f('0x5b')](_0x4c5d26,_0x42cdf1)}):_0x49e66b[_0x565f('0xe1')](_0x38e81b),!0x0);}function Nt(_0x3811c3){return _0xc80832(_0x3811c3);}function Rt(_0x3fca7a){const _0x4be811=_0x3fca7a['start'][_0x565f('0x42')];return _0x4be811&&_0x4be811['is']('element');}function jt(_0x1c3ef8,_0x736efa){const _0x2013c0=_0x736efa[_0x565f('0xe5')][_0x565f('0xf9')](_0x1c3ef8)||_0x736efa['schema'][_0x565f('0x3e')](_0x1c3ef8);return _0x736efa[_0x565f('0x5b')](_0x736efa[_0x565f('0xb')](_0x1c3ef8,_0x565f('0xb8')),_0x2013c0?_0x736efa['createPositionAfter'](_0x1c3ef8):_0x736efa[_0x565f('0xb')](_0x1c3ef8,_0x565f('0x50')));}function xt(_0x31f734,_0x1d4db7,_0x2293d3,_0x512e71,_0x3894a1){if(!Ut(_0x31f734,_0x1d4db7))return!0x1;if(_0x2293d3[_0x565f('0x50')]['isEqual'](_0x512e71[_0x565f('0xc')]))return!0x0;if(_0x31f734[_0x565f('0xbb')]!=_0x1d4db7[_0x565f('0xbb')])return!0x1;if(!_0x2293d3[_0x565f('0x50')][_0x565f('0xc0')](_0x512e71['start']))return!0x1;const _0x121c8d=_0x3894a1[_0x565f('0x5b')](_0x2293d3[_0x565f('0x50')],_0x512e71[_0x565f('0xc')])[_0x565f('0x66')]();for(const _0xa73f7c of _0x121c8d)if([_0x565f('0x6a'),_0x565f('0x6c')][_0x565f('0x93')](_0xa73f7c['type'])&&_0x3894a1[_0x565f('0xe5')][_0x565f('0x111')](_0xa73f7c[_0x565f('0x10a')]))return!0x1;return!0x0;}function Ut(_0x16cad2,_0x965333){return!(!_0x16cad2[_0x565f('0x107')]||!_0x965333[_0x565f('0x107')])&&_0x40c2d4(_0x16cad2[_0x565f('0x9a')],_0x965333['attributes']);}function Ot(_0x1214f2,_0x36b1e7){const _0x524816=Et(_0x1214f2[_0x565f('0x9a')]),_0x561191=Et(_0x36b1e7);if(!_0x1214f2[_0x565f('0x107')])return!0x1;for(const _0xf181c8 of Object[_0x565f('0x1d')](_0x561191))if(!_0x40c2d4(_0x524816[_0xf181c8],_0x561191[_0xf181c8]))return!0x1;return!0x0;}function Et(_0x29b0e4){const _0x52fc84=Object[_0x565f('0x20')]({},_0x29b0e4);return delete _0x52fc84[_0x565f('0x113')],delete _0x52fc84[_0x565f('0x7e')],_0x52fc84;}
|
|
23
|
+
const _0x3769=['showSuggestionHighlights','_suggestionFactory','next','isDocumentOperation','selection','forceDefaultExecution','addRange','pluginName','_cutOutSuggestionMarker','change:_saved','stopListening','containsRange','every','lowest','addUser','includes','rootName','default','always','_editor','_suggestions','getLastMatchingPosition','formatBlock:accept','getItems','remove','addCommentThread','suggestion:','hasComments','attributes','commands','activeMarkers','nodeBefore','_suggestionState','track-changes-suggestion-not-found','oldRange','setTo','notReady','upcast','elementToElement','_handleNewSuggestionMarker','markInsertion','_setSuggestionRange','highest','markerToHighlight','join','insertion:','insertion','formatInline:chain','getFirstRange','removed','tablePasteChainId','isCollapsed','execute','getNearestSelectionRange','normal','config','add','markerReady','_getSuggestionData','_isForcedDefaultExecutionBlock','track-changes-user-not-found','batch','insertion:discard','differ','splitPosition','removeMarkers','addSuggestion','high','_addThreadToSuggestion','push','formatBlock:join','options','Users','insertContent','size','ck-suggestion-marker-formatBlock','_setSuggestionData','set','getAllAdjacentSuggestions','delete','addHighlight','ready','markInlineFormat','removeMarker:suggestion:formatBlock','discard','suggestionLoaded','parent','_commentsRepository','removeAttribute','toViewElement','markMultiRangeDeletion','ck-suggestion-marker','data','rejected','setSelection','_mergeNestedSuggestions','_checkSuggestionCorrectness','_createSuggestion','schema','authorName','discardSuggestion','_descriptionFactory','registerPostFixer','head','suggestion-type','resolve','model','assign','data-suggestion','change:activeMarkers','containsPosition','define','getSuggestion','formatGroupId','move','createPositionAt','listenTo','getMultiRangeId','markMultiRangeBlockFormat','has','$textProxy','consumable','isEqual','nodeAfter','splice','fire','CommentsRepository','isBefore','setAttribute','for','getDifference','dataToMarker','containsRangeInObject','_getAuthorFromId','dataDowncast','isNextTo','createRange','unbindElementFromMarkerName','init','deletion:join','PENDING_ACTION_SUGGESTION','marker-count','markers','get','chain','originalSuggestionId','_saved','addSuggestionData','some','isObject','before','_model','fetchCommentThread','@external','isOwn','update:suggestion','_trackFormatChanges','formatInline:join','then','skipNestingCheck','addMarker:suggestion','multipleBlocks','TrackChangesEditing','suggestionUnloaded','createPositionBefore','isMultiRange','plugins','isInContent','acceptSelectedSuggestions','locale','getAttribute','accept','range','editingDowncast','hasSuggestion','moveTargetPosition','multi','dataReady','createElement','suggestion','creator','forward','formatBlock','formatInline:discard','addClass','enqueueChange','adapter','detach','trackChanges.trackFormatChanges','refresh','ck-suggestion-marker-','getCommentThread','_refreshSuggestionsChain','removeMarker','isRemovable','formatInline','value','after','position','$graveyard','keys','getRanges','conversion','_removeSuggestion','isLimit','low','_onDiscard','discardAllSuggestions','howMany','end','values','_findSuggestions','_getExternalAuthor','getIntersection','fromCharCode','addMarkerName','trackChanges','elementStart','root','return','reconvertMarker','consume','isAtEnd','_adapter','bindElementToMarker','deleteContent','trackChanges.mergeNestedSuggestions','change','group','item','clear','collaboration.channelId','element','getRange','_isDataLoaded','editor','widget','containsItem','formatBlock:','isAfter','trackChangesCommand','writer','accepted','suggestionChanged','editing','updateMarker','_joinWithAdjacentSuggestions','_customCallbacks','deletion:accept','track-changes-suggestion-data-mismatch','subType','fromRange','insertion:join','isExternal','authoredAt','_updateSuggestionData','getAncestors','isArray','author','documentSelection','formatInline:','_rangeIsInLocalUserInsertion','_registerDefaultCallbacks','enableCommand','split','insertion:chain','formatBlock:chain','commandName','toJSON','mapper','type','newRange','ck-suggestion-marker--active','commentThread','updateSuggestion','name','getSuggestionCallback','acceptSuggestion','addMarker:suggestion:formatBlock','deletion:discard','filter','markMultiRangeInsertion','length','_defaultCallbacks','isUndo','createRangeIn','isTouching','start','deletion','getCustomProperty','addMarker','track-changes-command-not-found','change:data','map','getSuggestions','isBlock','markerName','createdAt','_splitMarkerName','deletion:','stop','isInsideObject','document','_breakSuggestionMarker','never','insert','createSelection','previous','backward','markBlockFormat','deletion:chain','containerElement','sort','getFirstMarker','registerCustomCallback','_enabledCommands','getChangedMarkers','from','isIntersectingWithRange','elementEnd','_joinSuggestions','getWalker','_addSuggestionMarker','isSelectable','discardSelectedSuggestions','PendingActions','getShiftedBy'];(function(_0x2d1632,_0x37692c){const _0x33556f=function(_0x5477da){while(--_0x5477da){_0x2d1632['push'](_0x2d1632['shift']());}};_0x33556f(++_0x37692c);}(_0x3769,0x121));const _0x3355=function(_0x2d1632,_0x37692c){_0x2d1632=_0x2d1632-0x0;let _0x33556f=_0x3769[_0x2d1632];return _0x33556f;};import{Plugin as _0x426609,PendingActions as _0x300cdf}from'ckeditor5/src/core';import{LiveRange as _0x3bb391}from'ckeditor5/src/engine';import{CKEditorError as _0x3c873b,uid as _0x140e3b,priorities as _0x3fe394,logWarning as _0x48fb86}from'ckeditor5/src/utils';import{toWidget as _0x478498}from'ckeditor5/src/widget';import{Users as _0x21658c,hashObject as _0x2967d9}from'ckeditor5-collaboration/src/collaboration-core';import _0x5822bb from'./commands/trackchangescommand';import _0x41736e from'./commands/acceptsuggestioncommand';import _0xe7026d from'./commands/discardsuggestioncommand';import _0x4eb4e3 from'./commands/executeonallsuggestionscommand';import _0x11ef8a from'./commands/executeonselectedsuggestionscommand';import _0x46901b from'./suggestion';import _0x2d6a86 from'./suggestiondescriptionfactory';import _0x39f901 from'./integrations/aiassistant';import _0x3a30ef from'./integrations/alignment';import _0x4b2288 from'./integrations/basicstyles';import _0x2d09c4 from'./integrations/blockquote';import _0x37cd28 from'./integrations/ckbox';import _0xd81c3d from'./integrations/codeblock';import _0x40a4b3 from'./integrations/comments';import _0x4008ac from'./integrations/deletecommand';import _0x32a8ce from'./integrations/documentlist';import _0x577e3a from'./integrations/entercommand';import _0x52168b from'./integrations/findandreplace';import _0x455232 from'./integrations/font';import _0x208661 from'./integrations/formatpainter';import _0x413ad6 from'./integrations/heading';import _0x48a50b from'./integrations/highlight';import _0x2b96d2 from'./integrations/horizontalline';import _0xb8c34b from'./integrations/htmlembed';import _0xf89998 from'./integrations/image';import _0x548995 from'./integrations/imagereplace';import _0x47b845 from'./integrations/importword';import _0x380778 from'./integrations/indent';import _0x293469 from'./integrations/inputcommand';import _0x478650 from'./integrations/link';import _0x349070 from'./integrations/list';import _0x3ea990 from'./integrations/listproperties';import _0x3f38a1 from'./integrations/mediaembed';import _0x4debd2 from'./integrations/mention';import _0x26a86f from'./integrations/pagebreak';import _0x497bce from'./integrations/paragraph';import _0x1756a4 from'./integrations/removeformat';import _0x35a07b from'./integrations/restrictededitingmode';import _0x2bfb30 from'./integrations/shiftentercommand';import _0x6b3cca from'./integrations/standardeditingmode';import _0x415918 from'./integrations/style';import _0x5dca4d from'./integrations/table';import _0x4b0f33 from'./integrations/tablemergesplit';import _0x34590e from'./integrations/tableheadings';import _0x5ed1fc from'./integrations/tableclipboard';import _0x26c962 from'./integrations/tablecolumnresize';import _0x2e71d5 from'./integrations/template';import _0x3288cf from'./integrations/tableofcontents';import _0x755ba9 from'./integrations/title';import _0x3f965b from'./integrations/undo';import{getTranslation as _0x5723bb}from'./utils/common-translations';import _0x2236b2 from'./integrations/tablecaption';import _0x539110 from'./integrations/documentlistproperties';import _0x2b8bb0 from'./integrations/tableproperties';import{isEqual as _0x19e7de}from'lodash-es';export default class p extends _0x426609{static get['requires'](){return[_0x3355('0xa4'),_0x21658c,_0x300cdf,_0x39f901,_0x3a30ef,_0x4b2288,_0x2d09c4,_0x37cd28,_0xd81c3d,_0x40a4b3,_0x4008ac,_0x32a8ce,_0x539110,_0x577e3a,_0x52168b,_0x455232,_0x208661,_0x413ad6,_0x48a50b,_0x2b96d2,_0xb8c34b,_0xf89998,_0x548995,_0x47b845,_0x380778,_0x293469,_0x478650,_0x349070,_0x3ea990,_0x3f38a1,_0x4debd2,_0x26a86f,_0x497bce,_0x1756a4,_0x35a07b,_0x2bfb30,_0x6b3cca,_0x415918,_0x5dca4d,_0x4b0f33,_0x34590e,_0x2236b2,_0x5ed1fc,_0x26c962,_0x3288cf,_0x2b8bb0,_0x2e71d5,_0x755ba9,_0x3f965b];}static get[_0x3355('0x2d')](){return _0x3355('0xc8');}constructor(_0x596433){function _0x107da4(_0x2ec972){return _0x2ec972['map'](_0x3844bc=>String[_0x3355('0xfc')](_0x3844bc))[_0x3355('0x52')]('');}super(_0x596433),this[_0x3355('0x73')](_0x3355('0x44'),[]),this['on'](_0x3355('0x93'),(_0x251cb1,_0x41a3ea,_0x37855e,_0x114d93)=>{this['_model'][_0x3355('0x109')](()=>{for(const _0x22c28c of[..._0x114d93,..._0x37855e])this[_0x3355('0xbd')]['markers'][_0x3355('0x9d')](_0x22c28c)&&_0x596433[_0x3355('0x11a')][_0x3355('0x102')](_0x22c28c);});}),this[_0x3355('0x8b')]=new _0x2d6a86(this[_0x3355('0x111')][_0x3355('0x90')][_0x3355('0x88')],this[_0x3355('0x111')][_0x3355('0xcf')]),this[_0x3355('0x105')]=null,this[_0x3355('0x27')]=new Bt(this[_0x3355('0x111')]),this['_suggestions']=new Map(),this[_0x3355('0x7d')]=_0x596433['plugins'][_0x3355('0xb5')]('CommentsRepository'),this[_0x3355('0x1a')]=new Set(),this[_0x3355('0xbd')]=this[_0x3355('0x111')][_0x3355('0x90')],this[_0x3355('0x46')]=new WeakMap(),this[_0x3355('0x61')]=!0x1,_0x596433[_0x3355('0x5d')][_0x3355('0x95')](_0x3355('0xe2'),_0x3355('0x37')),this['_trackFormatChanges']=_0x596433[_0x3355('0x5d')][_0x3355('0xb5')](_0x3355('0xe2')),_0x596433[_0x3355('0x5d')][_0x3355('0x95')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x596433['config'][_0x3355('0xb5')](_0x3355('0x108')),this[_0x3355('0x116')]=new _0x5822bb(_0x596433,this[_0x3355('0x1a')]),this[_0x107da4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x107da4([0x34,0x30,0x34,0x36,0x32,0x30,0x30,0x32]);}[_0x3355('0xb0')](){const _0x2aafb5=this['editor'];_0x2aafb5['conversion'][_0x3355('0xa7')]('editingDowncast')[_0x3355('0x51')]({'model':_0x3355('0xd9'),'view':_0xa18280=>{const {id:_0x5d1c42,type:_0x1e0eda}=this[_0x3355('0x9')](_0xa18280['markerName']),_0x1a6560=['ck-suggestion-marker',_0x3355('0xe4')+_0x1e0eda];let _0x56b547=0xbb8;return this[_0x3355('0x44')][_0x3355('0x35')](_0xa18280[_0x3355('0x7')])&&(_0x1a6560[_0x3355('0x6b')](_0x3355('0x136')),_0x56b547=0xbc2),_0x3355('0x146')==_0x1e0eda&&(_0x56b547+=0x5),{'classes':_0x1a6560,'attributes':{'data-suggestion':_0x5d1c42},'priority':_0x56b547};}}),_0x2aafb5['conversion']['for'](_0x3355('0xac'))[_0x3355('0x5e')](_0x342c0a=>{_0x342c0a['on'](_0x3355('0xc6'),(_0x55e742,_0x232a49,_0x3f651f)=>{if(!_0x3f651f[_0x3355('0x6d')][_0x3355('0x26')])return;const _0x13e6a0=_0x232a49[_0x3355('0x10b')];if(!_0x13e6a0)return;const _0x136f7d=_0x3f651f[_0x3355('0x133')][_0x3355('0x7f')](_0x13e6a0);_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')]['isObject'](_0x13e6a0)&&_0x136f7d&&!_0x136f7d[_0x3355('0x0')](_0x3355('0x112'))&&_0x136f7d['is'](_0x3355('0x16'))&&_0x478498(_0x136f7d,_0x3f651f[_0x3355('0x117')]);},{'priority':'high'});}),_0x2aafb5[_0x3355('0xf0')][_0x3355('0xa7')](_0x3355('0xac'))[_0x3355('0x51')]({'model':_0x3355('0xd9'),'view':(_0x491ad3,_0x4b45b4)=>{if(!_0x4b45b4['options'][_0x3355('0x26')])return null;const {type:_0x41893c}=this[_0x3355('0x9')](_0x491ad3[_0x3355('0x7')]);return{'classes':['ck-suggestion-marker',_0x3355('0xe4')+_0x41893c],'priority':0xbb8};}});const _0x577701=({showActiveMarkers:_0x4c3fda=!0x0}={})=>(_0x51129a,_0x2909e2,_0x48cdff)=>{if(!_0x2909e2[_0x3355('0x10b')])return;if(_0x2909e2['item']['is'](_0x3355('0x2a')))return void _0x48cdff[_0x3355('0x9f')][_0x3355('0x103')](_0x2909e2[_0x3355('0x10b')],_0x51129a['name']);const _0xf53220=_0x48cdff[_0x3355('0x133')]['toViewElement'](_0x2909e2[_0x3355('0x10b')]);if(!(_0x2909e2['item']['is'](_0x3355('0x10e'))&&_0x2aafb5['model'][_0x3355('0x88')][_0x3355('0x6')](_0x2909e2[_0x3355('0x10b')])&&!_0xf53220[_0x3355('0x0')](_0x3355('0x76'))))return;const {id:_0x2e7a5c}=this[_0x3355('0x9')](_0x2909e2['markerName']);_0x48cdff[_0x3355('0x117')][_0x3355('0xde')]([_0x3355('0x81'),_0x3355('0x71')],_0xf53220),_0x48cdff['writer'][_0x3355('0xa6')](_0x3355('0x92'),_0x2e7a5c,_0xf53220),_0x48cdff['mapper'][_0x3355('0x106')](_0xf53220,_0x2909e2[_0x3355('0x7')]),_0x4c3fda&&(this[_0x3355('0x44')]['includes'](_0x2909e2[_0x3355('0x7')])?_0x48cdff['writer'][_0x3355('0xde')](_0x3355('0x136'),_0xf53220):_0x48cdff['writer']['removeClass'](_0x3355('0x136'),_0xf53220));for(const _0x7171ce of _0x2aafb5[_0x3355('0x90')][_0x3355('0x143')](_0x2909e2['item'])[_0x3355('0x3d')]())_0x48cdff[_0x3355('0x9f')][_0x3355('0x103')](_0x7171ce,_0x51129a[_0x3355('0x139')]);_0x48cdff[_0x3355('0x9f')][_0x3355('0x103')](_0x2909e2[_0x3355('0x10b')],_0x51129a[_0x3355('0x139')]);};_0x2aafb5[_0x3355('0xf0')]['for'](_0x3355('0xac'))[_0x3355('0x5e')](_0x435f54=>{_0x435f54['on'](_0x3355('0x13c'),(_0x5000d4,_0x34a092,_0x1afd1a)=>{_0x1afd1a[_0x3355('0x6d')][_0x3355('0x26')]&&_0x577701({'showActiveMarkers':!0x1})(_0x5000d4,_0x34a092,_0x1afd1a);},{'priority':_0x3355('0x50')});}),_0x2aafb5[_0x3355('0xf0')][_0x3355('0xa7')]('dataDowncast')['markerToData']({'model':_0x3355('0xd9'),'view':(_0x10d078,_0x2273e4)=>_0x2273e4[_0x3355('0x6d')][_0x3355('0x26')]?null:{'group':'suggestion','name':_0x10d078['substr'](0xb)}}),_0x2aafb5[_0x3355('0xf0')]['for']('upcast')[_0x3355('0x4c')]({'view':{'name':_0x3355('0xd9'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x379801,{writer:_0x4f93cc})=>{let _0xcdb14=_0x3355('0x40')+_0x379801[_0x3355('0xd0')](_0x3355('0x8e'))+':'+_0x379801[_0x3355('0xd0')]('id');return _0x379801[_0x3355('0xd0')](_0x3355('0xb3'))&&(_0xcdb14+=':'+_0x379801['getAttribute'](_0x3355('0xb3'))),_0x4f93cc[_0x3355('0xd8')]('$marker',{'data-name':_0xcdb14});}}),_0x2aafb5[_0x3355('0xf0')][_0x3355('0xa7')](_0x3355('0x4b'))[_0x3355('0xa9')]({'view':_0x3355('0xd9')}),_0x2aafb5[_0x3355('0xf0')]['for'](_0x3355('0xd3'))[_0x3355('0x5e')](_0xa4b73c=>{_0xa4b73c['on']('addMarker:suggestion:formatBlock',_0x577701(),{'priority':_0x3355('0x69')});}),_0x2aafb5['conversion'][_0x3355('0xa7')](_0x3355('0xd3'))[_0x3355('0x5e')](_0x49aadc=>{_0x49aadc['on'](_0x3355('0x79'),(_0x5ec09d,_0x364190,_0x4549d4)=>{const _0x17c8fb=_0x4549d4[_0x3355('0x133')]['markerNameToElements'](_0x364190[_0x3355('0x7')]);if(_0x17c8fb)for(const _0x18f9da of _0x17c8fb)_0x18f9da[_0x3355('0x0')](_0x3355('0x76'))||(_0x4549d4['writer']['removeClass'](['ck-suggestion-marker',_0x3355('0x71'),'ck-suggestion-marker--active'],_0x18f9da),_0x4549d4[_0x3355('0x117')][_0x3355('0x7e')]('data-suggestion',_0x18f9da),_0x4549d4[_0x3355('0x133')][_0x3355('0xaf')](_0x18f9da,_0x364190['markerName']));},{'priority':_0x3355('0x69')});}),_0x2aafb5['model'][_0x3355('0xd')][_0x3355('0x8c')](_0x507bf9=>{let _0x209bdb=!0x1;const _0x45ab4a=Array['from'](_0x2aafb5['model'][_0x3355('0xd')]['differ'][_0x3355('0x1b')]()),_0x1f2d6f=new Set();for(const {name:_0x4458f0,data:_0x62d565}of _0x45ab4a){const {group:_0x2b83f1,type:_0x3b62d0,id:_0x27d07d}=this[_0x3355('0x9')](_0x4458f0);if(_0x3355('0xd9')!==_0x2b83f1)continue;const _0x30a1ab=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x27d07d);if(null!=_0x62d565[_0x3355('0x135')]){'formatInline'==_0x3b62d0&&(_0x209bdb=_0x209bdb||$t(_0x62d565['newRange'],_0x4458f0,_0x507bf9,_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')]));if(_0x62d565['newRange'][_0x3355('0x59')]||_0x3355('0xed')==_0x62d565[_0x3355('0x135')][_0x3355('0x100')][_0x3355('0x36')]||_0x3355('0xdc')==_0x3b62d0&&!Rt(_0x62d565[_0x3355('0x135')])||_0x3355('0x146')==_0x3b62d0&&!(!Mt(_0x3a8b1d=_0x62d565['newRange'])&&!function(_0x23a465){return _0x23a465[_0x3355('0x145')]['parent']==_0x23a465[_0x3355('0xf7')][_0x3355('0x45')]&&_0x23a465[_0x3355('0x145')][_0x3355('0x104')];}(_0x3a8b1d)))_0x507bf9[_0x3355('0xe7')](_0x4458f0),_0x209bdb=!0x0;else{if(!_0x30a1ab||!_0x30a1ab[_0x3355('0xcd')])continue;_0x1f2d6f[_0x3355('0x5e')](_0x30a1ab);}}}var _0x3a8b1d;return _0x1f2d6f[_0x3355('0x70')]>0x0&&(_0x209bdb=!!this[_0x3355('0x11c')](_0x1f2d6f)||_0x209bdb),_0x209bdb;}),_0x2aafb5[_0x3355('0x90')][_0x3355('0xd')][_0x3355('0x8c')](_0x4573ef=>{let _0x4c69e9=!0x1;for(const _0x32caa3 of _0x2aafb5['model'][_0x3355('0xd')][_0x3355('0x65')]['getChanges']()){if(_0x3355('0x10')!=_0x32caa3[_0x3355('0x134')])continue;const _0x1a9421=_0x32caa3[_0x3355('0xec')][_0x3355('0x25')](_0x32caa3['length']);if(_0x1a9421[_0x3355('0x104')])for(const _0x51c128 of this[_0x3355('0x3a')][_0x3355('0xf8')]()){if(_0x51c128[_0x3355('0xcb')]||!_0x51c128[_0x3355('0xcd')])continue;if('formatBlock'!=_0x51c128[_0x3355('0x134')])continue;const _0x355c5e=_0x51c128[_0x3355('0x56')]();if(_0x355c5e[_0x3355('0x145')][_0x3355('0x7c')]!=_0x355c5e[_0x3355('0xf7')][_0x3355('0x7c')]&&_0x355c5e[_0x3355('0xf7')][_0x3355('0xa0')](_0x32caa3[_0x3355('0xec')])){const _0x11fddc=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x355c5e[_0x3355('0x145')],_0x1a9421);_0x4573ef[_0x3355('0x11b')](_0x51c128[_0x3355('0x18')](),{'range':_0x11fddc}),_0x4c69e9=!0x0;}}}return _0x4c69e9;}),_0x2aafb5['model'][_0x3355('0xb4')]['on'](_0x3355('0xc1'),(_0x35d9b2,_0x232582,_0x4b8c50)=>{if(null==_0x4b8c50){const {id:_0x403d91}=this[_0x3355('0x9')](_0x232582['name']),_0x55481d=this[_0x3355('0x3a')]['get'](_0x403d91);_0x55481d&&_0x55481d[_0x3355('0xfd')](_0x232582[_0x3355('0x139')]);}}),_0x2aafb5[_0x3355('0x90')]['document']['on'](_0x3355('0x3'),()=>{const _0x5ca5b0=Array[_0x3355('0x1c')](_0x2aafb5[_0x3355('0x90')][_0x3355('0xd')][_0x3355('0x65')][_0x3355('0x1b')]())[_0x3355('0x13e')](_0x100575=>_0x3355('0xd9')===this[_0x3355('0x9')](_0x100575[_0x3355('0x139')])[_0x3355('0x10a')]);if(0x0===_0x5ca5b0[_0x3355('0x140')])return;_0x5ca5b0[_0x3355('0x17')]((_0xd7585a,_0x2f962d)=>{const _0x14f655=_0xd7585a['data'][_0x3355('0x48')],_0x2315ce=_0x2f962d['data'][_0x3355('0x48')];return null===_0x14f655&&null===_0x2315ce?0x0:null===_0x14f655&&null!==_0x2315ce?-0x1:null!==_0x14f655&&null===_0x2315ce?0x1:_0x14f655[_0x3355('0x145')][_0x3355('0xa5')](_0x2315ce[_0x3355('0x145')])?-0x1:0x1;});const _0x1a4538=new Set(),_0x5a8c19=new Set();for(const {name:_0x16c27f,data:_0x58799a}of _0x5ca5b0){const {id:_0x56e5ea}=this[_0x3355('0x9')](_0x16c27f);if(null===_0x58799a['oldRange']){const _0x237ba9=this['_handleNewSuggestionMarker'](_0x16c27f);_0x5a8c19[_0x3355('0x5e')](_0x237ba9);}else{const _0x558897=this['_suggestions']['get'](_0x56e5ea);null!==_0x58799a['newRange']||_0x558897[_0x3355('0xcd')]?(_0x1a4538[_0x3355('0x5e')](_0x558897[_0x3355('0x8d')]),_0x5a8c19[_0x3355('0x5e')](_0x558897)):this[_0x3355('0xf1')](_0x558897);}}_0x5a8c19[_0x3355('0x70')]>0x0&&this[_0x3355('0xe6')](_0x5a8c19);for(const _0x295398 of _0x1a4538)this[_0x3355('0xa3')](_0x3355('0x119'),_0x295398);}),_0x2aafb5[_0x3355('0x90')]['on']('applyOperation',(_0x3e27a3,_0x476ad8)=>{const _0x1a3dc0=_0x476ad8[0x0];if(!this['_suggestions'][_0x3355('0x70')])return;if(!_0x1a3dc0[_0x3355('0x29')])return;if(_0x1a3dc0[_0x3355('0x63')][_0x3355('0x142')]||!_0x1a3dc0[_0x3355('0x63')]['isLocal'])return;let _0x8a9fc9,_0x32f8e1;switch(_0x1a3dc0[_0x3355('0x134')]){case'insert':_0x8a9fc9=_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x1a3dc0[_0x3355('0xec')]),_0x32f8e1=_0x8a9fc9['getShiftedBy'](_0x1a3dc0[_0x3355('0xf6')]);break;case'split':_0x8a9fc9=_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x1a3dc0[_0x3355('0x66')]),_0x32f8e1=_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x1a3dc0[_0x3355('0xd5')]);break;case _0x3355('0x98'):_0x8a9fc9=_0x2aafb5[_0x3355('0x90')]['createPositionAt'](_0x1a3dc0['targetPosition']),_0x32f8e1=_0x8a9fc9[_0x3355('0x25')](_0x1a3dc0[_0x3355('0xf6')]);break;default:return;}const _0x27ab13=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x8a9fc9,_0x32f8e1);_0x2aafb5['model'][_0x3355('0x109')](()=>{for(const {suggestion:_0xf979eb,meta:_0x4427a5}of this[_0x3355('0xf9')](_0x27ab13)){if(_0xf979eb[_0x3355('0xcb')])continue;if(_0x3355('0xe9')==_0xf979eb[_0x3355('0x134')])continue;const _0x27046a=_0xf979eb[_0x3355('0x82')]&&_0xf979eb[_0x3355('0x82')][_0x3355('0xc7')];(_0x3355('0xdc')!=_0xf979eb[_0x3355('0x134')]||'split'==_0x1a3dc0[_0x3355('0x134')]&&!_0x27046a)&&(_0x4427a5['containsRangeInObject']||_0x3355('0x54')==_0xf979eb[_0x3355('0x134')]&&_0x4427a5[_0x3355('0xc0')]||_0xf979eb[_0x3355('0x56')]()[_0x3355('0x31')](_0x27ab13)&&this[_0x3355('0xe')](_0xf979eb,_0x8a9fc9,_0x32f8e1));}});},{'priority':_0x3355('0x33')}),_0x2aafb5['model']['on'](_0x3355('0x107'),(_0x575ec1,_0x361976)=>{const _0x3bce03=_0x361976[0x0],_0x542b45=_0x361976[0x1];if(_0x542b45&&_0x542b45['forceDefaultExecution'])return;if(this[_0x3355('0x61')])return;if(!this['trackChangesCommand'][_0x3355('0xea')])return;if(_0x3bce03['isCollapsed'])return;const _0x1233bf=_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')],{start:_0x3c04ce,end:_0x3fc550}=_0x3bce03[_0x3355('0x56')](),_0x643818=_0x3c04ce[_0x3355('0xa1')]&&_0x1233bf[_0x3355('0xf2')](_0x3c04ce[_0x3355('0xa1')])?null:_0x1233bf[_0x3355('0x5b')](_0x3c04ce,_0x3355('0xdb')),_0x53a4f1=_0x3fc550[_0x3355('0x45')]&&_0x1233bf[_0x3355('0xf2')](_0x3fc550[_0x3355('0x45')])?null:_0x1233bf[_0x3355('0x5b')](_0x3fc550,_0x3355('0x13')),_0x2d5a85=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x643818?_0x643818[_0x3355('0x145')]:_0x3c04ce,_0x53a4f1?_0x53a4f1[_0x3355('0xf7')]:_0x3fc550);_0x2aafb5[_0x3355('0x90')][_0x3355('0x109')](_0x766ffa=>{this['markDeletion'](_0x2d5a85);const _0x996b3c=_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')][_0x3355('0x5b')](_0x2d5a85[_0x3355('0x145')]);_0x3bce03['is'](_0x3355('0x129'))?_0x766ffa[_0x3355('0x84')](_0x996b3c):_0x3bce03[_0x3355('0x49')](_0x996b3c);}),_0x575ec1['stop']();},{'priority':_0x3fe394[_0x3355('0x5c')]+0xa}),_0x2aafb5['model']['on'](_0x3355('0x6f'),(_0xfddc75,_0x26abc8)=>{const _0x27e39b=_0x26abc8[_0x26abc8['length']-0x1];_0x27e39b&&_0x27e39b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x3355('0x116')]['value']&&(_0x2aafb5[_0x3355('0x90')][_0x3355('0x109')](()=>{let _0x21c9f0=_0x2aafb5['model'][_0x3355('0x6f')](_0x26abc8[0x0],_0x26abc8[0x1],_0x26abc8[0x2],{'forceDefaultExecution':!0x0});if(!_0x21c9f0)return;_0xfddc75[_0x3355('0x101')]=_0x21c9f0['clone']();const _0x2a938c=_0x21c9f0[_0x3355('0xf7')][_0x3355('0x45')],_0x76cdb9=_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')];_0x2a938c&&_0x76cdb9[_0x3355('0x6')](_0x2a938c)&&!_0x76cdb9[_0x3355('0xbb')](_0x2a938c)&&(_0x21c9f0=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x21c9f0[_0x3355('0x145')],_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x2a938c,_0x3355('0xf7')))),this[_0x3355('0x4e')](_0x21c9f0);}),_0xfddc75[_0x3355('0xb')]());},{'priority':_0x3355('0x69')}),this[_0x3355('0x111')][_0x3355('0x43')]['add'](_0x3355('0xfe'),this[_0x3355('0x116')]),this[_0x3355('0x12d')]('trackChanges');const _0xffe18b=new _0x41736e(_0x2aafb5,this['_suggestions']);_0x2aafb5[_0x3355('0x43')][_0x3355('0x5e')](_0x3355('0x13b'),_0xffe18b),this[_0x3355('0x12d')](_0x3355('0x13b'));const _0x2ffef8=new _0xe7026d(_0x2aafb5,this['_suggestions']);_0x2aafb5[_0x3355('0x43')]['add'](_0x3355('0x8a'),_0x2ffef8),this['enableCommand'](_0x3355('0x8a')),_0x2aafb5[_0x3355('0x43')][_0x3355('0x5e')]('acceptAllSuggestions',new _0x4eb4e3(_0x2aafb5,_0xffe18b,this['_suggestions'])),this[_0x3355('0x12d')]('acceptAllSuggestions'),_0x2aafb5[_0x3355('0x43')][_0x3355('0x5e')](_0x3355('0xf5'),new _0x4eb4e3(_0x2aafb5,_0x2ffef8,this['_suggestions'])),this['enableCommand'](_0x3355('0xf5')),_0x2aafb5['commands'][_0x3355('0x5e')]('acceptSelectedSuggestions',new _0x11ef8a(_0x2aafb5,_0xffe18b,this[_0x3355('0x3a')])),this[_0x3355('0x12d')](_0x3355('0xce')),_0x2aafb5['commands']['add'](_0x3355('0x23'),new _0x11ef8a(_0x2aafb5,_0x2ffef8,this[_0x3355('0x3a')])),this['enableCommand'](_0x3355('0x23'));const _0x3ed1ee=_0x2aafb5['plugins']['get'](_0x3355('0xa4'));this[_0x3355('0x9a')](_0x3ed1ee,'addComment',(_0x519aee,{threadId:_0x5534a7})=>{const _0x322166=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x5534a7);_0x322166&&_0x322166[_0x3355('0x137')]&&0x1===_0x322166[_0x3355('0x137')][_0x3355('0x140')]&&this[_0x3355('0x125')](_0x5534a7,{'hasComments':!0x0});},{'priority':_0x3355('0xf3')}),this[_0x3355('0x9a')](_0x3ed1ee,'removeComment',(_0x536ddc,{threadId:_0x9edf93})=>{const _0x597b28=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x9edf93);_0x597b28&&_0x597b28[_0x3355('0x137')]&&!_0x597b28[_0x3355('0x137')][_0x3355('0x140')]&&this[_0x3355('0x125')](_0x9edf93,{'hasComments':!0x1});},{'priority':'low'});}set[_0x3355('0xe0')](_0x4138b8){if(this[_0x3355('0x105')])throw new _0x3c873b('track-changes-adapter-already-set',this);this[_0x3355('0x105')]=_0x4138b8;}get[_0x3355('0xe0')](){return this['_adapter'];}[_0x3355('0x5')]({skipNotAttached:_0xc3fe90=!0x1,toJSON:_0x8fcdfb=!0x1}={}){const _0x52d462=[];for(const _0x410644 of this[_0x3355('0x3a')][_0x3355('0xf8')]())_0xc3fe90&&!_0x410644[_0x3355('0xcd')]||_0x52d462[_0x3355('0x6b')](_0x410644);return _0x8fcdfb?_0x52d462[_0x3355('0x4')](_0x3dc210=>_0x3dc210[_0x3355('0x132')]()):_0x52d462;}[_0x3355('0x96')](_0xe7e7cf){const _0x16578a=this[_0x3355('0x3a')][_0x3355('0xb5')](_0xe7e7cf);if(!_0x16578a)throw new _0x3c873b(_0x3355('0x47'),this);return _0x16578a;}[_0x3355('0xd4')](_0x7c1e93){return this[_0x3355('0x3a')][_0x3355('0x9d')](_0x7c1e93);}[_0x3355('0xb9')](_0x2a2f74){const {authorId:_0x3dd37,id:_0x4ece6d,attributes:_0x59a0da}=_0x2a2f74,[_0xe39fe7,_0x28d362]=_0x2a2f74['type']['split'](':'),_0x50c1df=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x4ece6d)||this['_createSuggestion'](_0xe39fe7,_0x28d362,_0x4ece6d,_0x3dd37,_0x59a0da);if(this[_0x3355('0x6a')](_0x50c1df),this['_checkSuggestionCorrectness'](_0x50c1df,_0xe39fe7,_0x28d362||null,_0x3dd37),_0x50c1df['createdAt']=_0x2a2f74[_0x3355('0x8')],_0x50c1df[_0x3355('0x110')]=!0x0,_0x59a0da&&_0x59a0da[_0x3355('0xbf')]){const _0x278f84=_0x59a0da[_0x3355('0xbf')],_0x57369d=this[_0x3355('0xfa')](_0x278f84[_0x3355('0x89')]);_0x50c1df['authoredAt']=_0x278f84['createdAt'],_0x50c1df[_0x3355('0x128')]=_0x57369d,_0x50c1df[_0x3355('0x123')]=!0x0;}else _0x50c1df[_0x3355('0x124')]=_0x2a2f74[_0x3355('0x8')];switch(_0x2a2f74['data']&&(_0x50c1df['data']=_0x2a2f74['data']),_0x2a2f74['attributes']&&(_0x50c1df[_0x3355('0x42')]=_0x2a2f74[_0x3355('0x42')]),this[_0x3355('0x105')]&&this['_adapter'][_0x3355('0x68')]||(_0x50c1df[_0x3355('0xb8')]=!0x0),this[_0x3355('0x46')]['get'](_0x50c1df)){case _0x3355('0x4a'):this[_0x3355('0x46')][_0x3355('0x73')](_0x50c1df,_0x3355('0xd7'));break;case'markerReady':_0x50c1df[_0x3355('0xcd')]?(this[_0x3355('0xe6')](new Set([_0x50c1df])),this[_0x3355('0x11c')](new Set([_0x50c1df])),this['_suggestionState'][_0x3355('0x73')](_0x50c1df,_0x3355('0x77')),this[_0x3355('0xa3')](_0x3355('0x7b'),_0x50c1df)):this['_suggestionState'][_0x3355('0x73')](_0x50c1df,_0x3355('0x57'));}return _0x50c1df;}[_0x3355('0x13b')](_0x5483cd){this['forceDefaultExecution'](()=>{this['editor'][_0x3355('0x90')]['change'](()=>{for(const _0x3f9bd5 of _0x5483cd[_0x3355('0x74')]())_0x3f9bd5['accept']();});});}[_0x3355('0x8a')](_0x8fed8b){this[_0x3355('0x2b')](()=>{this[_0x3355('0x111')][_0x3355('0x90')][_0x3355('0x109')](()=>{for(const _0x1d0e08 of _0x8fed8b[_0x3355('0x74')]())_0x1d0e08[_0x3355('0x7a')]();});});}[_0x3355('0x12d')](_0x3b735a,_0x2c1f5b){const _0x1beb3e=this['editor'][_0x3355('0x43')][_0x3355('0xb5')](_0x3b735a);if(!_0x1beb3e)throw new _0x3c873b(_0x3355('0x2'),this,{'commandName':_0x3b735a});this[_0x3355('0x1a')][_0x3355('0x5e')](_0x1beb3e),_0x2c1f5b&&_0x1beb3e['on'](_0x3355('0x5a'),(_0x3ade07,_0x2c61a4)=>{this[_0x3355('0x116')][_0x3355('0xea')]&&(this[_0x3355('0x61')]||_0x2c61a4[_0x3355('0x140')]>0x0&&_0x2c61a4[_0x2c61a4[_0x3355('0x140')]-0x1]&&_0x2c61a4[_0x2c61a4[_0x3355('0x140')]-0x1]['forceDefaultExecution']||(_0x2c1f5b((..._0x44c8e7)=>_0x1beb3e[_0x3355('0x5a')](..._0x44c8e7,{'forceDefaultExecution':!0x0}),..._0x2c61a4),_0x3ade07[_0x3355('0xb')]()));},{'priority':_0x3355('0x69')});}['forceDefaultExecution'](_0x3d0e96){let _0x573973,_0x2602e3;const _0x44a37e=this[_0x3355('0x61')];this[_0x3355('0x61')]=!0x0;try{_0x573973=_0x3d0e96();}catch(_0x574aec){_0x2602e3=_0x574aec;}return _0x44a37e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2602e3&&_0x3c873b['rethrowUnexpectedError'](_0x2602e3,this),_0x573973;}['markInsertion'](_0x53c3f5,_0x2a1368=null,_0x4df9f4={}){if(_0x53c3f5[_0x3355('0x59')])return null;const _0x14bb4c=this[_0x3355('0x111')][_0x3355('0xcc')]['get']('Users')['me'];for(const {suggestion:_0x529b00,meta:_0x25d464}of this[_0x3355('0xf9')](_0x53c3f5,_0x3355('0x54')))if(_0x25d464['isOwn']){if(!_0x25d464[_0x3355('0xad')]){if(_0x25d464[_0x3355('0xaa')]){if(!this[_0x3355('0x85')]||!Ot(_0x529b00,_0x4df9f4))continue;return _0x529b00;}if(Ot(_0x529b00,_0x4df9f4))return _0x529b00;this[_0x3355('0xe')](_0x529b00,_0x53c3f5['start'],_0x53c3f5[_0x3355('0xf7')]);break;}if(_0x2a1368==_0x529b00[_0x3355('0x120')]&&Ot(_0x529b00,_0x4df9f4)){const _0x7bc077=_0x529b00[_0x3355('0x56')]();return _0x7bc077[_0x3355('0x145')][_0x3355('0xa0')](_0x53c3f5[_0x3355('0xf7')])?this[_0x3355('0x4f')](_0x529b00,this[_0x3355('0xbd')][_0x3355('0xae')](_0x53c3f5[_0x3355('0x145')],_0x7bc077[_0x3355('0xf7')])):this['_setSuggestionRange'](_0x529b00,this[_0x3355('0xbd')][_0x3355('0xae')](_0x7bc077['start'],_0x53c3f5[_0x3355('0xf7')])),_0x529b00;}}const _0x4a4e99=_0x140e3b(),_0x284d35=_0x14bb4c['id'],_0x5da89d=_0x2a1368?'insertion:'+_0x2a1368:_0x3355('0x54'),_0x23733c=this['_setSuggestionData']({'id':_0x4a4e99,'type':_0x5da89d,'createdAt':new Date(),'authorId':_0x284d35,'attributes':_0x4df9f4});return this[_0x3355('0x21')](_0x5da89d,_0x4a4e99,_0x284d35,_0x53c3f5),_0x23733c;}[_0x3355('0x13f')](_0x1d6c5d,_0x24cdbd=_0x3355('0xd6'),_0xbcc58={}){const _0x55f747=this[_0x3355('0x111')][_0x3355('0xcc')][_0x3355('0xb5')](_0x3355('0x6e'))['me'],_0x2abcdd=this['_suggestionFactory'][_0x3355('0x13a')](_0x3355('0x54'),_0x24cdbd,_0x3355('0x52'));for(const _0x505003 of this[_0x3355('0x5')]())if(_0x505003[_0x3355('0x128')]['id']==_0x55f747['id']&&_0x3355('0x54')==_0x505003[_0x3355('0x134')]&&_0x505003[_0x3355('0x120')]==_0x24cdbd&&Ot(_0x505003,_0xbcc58)&&(_0x2abcdd(_0x505003['getRanges'](),_0x1d6c5d)||_0x2abcdd(_0x1d6c5d,_0x505003['getRanges']()))){for(const _0x39d1dc of _0x1d6c5d)_0x505003[_0x3355('0x2c')](_0x39d1dc);return _0x505003;}for(const {suggestion:_0x23c7bd,meta:_0x369635}of this[_0x3355('0xf9')](_0x1d6c5d,_0x3355('0x54'))){if(!_0x369635[_0x3355('0xc0')])continue;if(!this['_mergeNestedSuggestions']&&_0x369635[_0x3355('0xaa')])continue;if(!Ot(_0x23c7bd,_0xbcc58))continue;let _0x1d561d=!0x0;for(const _0x736290 of _0x23c7bd[_0x3355('0xef')]())for(const _0xc24660 of _0x1d6c5d)if(!_0x736290[_0x3355('0x31')](_0xc24660)){_0x1d561d=!0x1;break;}if(_0x1d561d)return _0x23c7bd;}const _0x54e56e=_0x140e3b(),_0x5c83ca=_0x55f747['id'],_0x36882b=_0x3355('0x53')+_0x24cdbd,_0x5d76b6=this['_setSuggestionData']({'id':_0x54e56e,'type':_0x36882b,'createdAt':new Date(),'authorId':_0x5c83ca,'attributes':_0xbcc58});for(const _0x11cbb8 of _0x1d6c5d)this[_0x3355('0x21')](_0x36882b,_0x54e56e,_0x5c83ca,_0x11cbb8,_0x46901b[_0x3355('0x9b')]());return _0x5d76b6;}[_0x3355('0x78')](_0x4803e6,_0x293826,_0x170cd4=null,_0x87c1cc={}){if(_0x170cd4=_0x170cd4||Nt(_0x293826),_0x4803e6[_0x3355('0x59')])return null;if(_0x3355('0xf')===this[_0x3355('0xc2')]){const _0x5eda66=this[_0x3355('0x27')]['getSuggestionCallback']('formatInline',_0x170cd4,_0x3355('0xd1'));return this['forceDefaultExecution'](()=>_0x5eda66([_0x4803e6],_0x293826,_0x87c1cc)),null;}const _0x4f9ea1=this[_0x3355('0x111')]['plugins'][_0x3355('0xb5')]('Users')['me'],_0x13e506=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x386e2c,meta:_0xe4c0f7}of this['_findSuggestions'](_0x4803e6,'insertion'))_0xe4c0f7['isOwn']&&!_0xe4c0f7['isInsideObject']&&_0x13e506[_0x3355('0x6b')](..._0x386e2c[_0x3355('0xef')]());const _0x27dbfa=function(_0x52338e,_0xe52dc9){const _0x58e277=[];for(const _0x4339b0 of _0xe52dc9){const _0x106ea0=_0x52338e[_0x3355('0xfb')](_0x4339b0);_0x106ea0&&_0x58e277[_0x3355('0x6b')](_0x106ea0);}return _0x58e277;}(_0x4803e6,_0x13e506),_0x5df502=function(_0x192af4,_0x4061bf){const _0x1dae15=[_0x192af4];for(const _0x7341c1 of _0x4061bf){let _0x490874=0x0;for(;_0x490874<_0x1dae15[_0x3355('0x140')];){const _0xb3c0f9=_0x1dae15[_0x490874][_0x3355('0xa8')](_0x7341c1);_0x1dae15[_0x3355('0xa2')](_0x490874,0x1,..._0xb3c0f9),_0x490874+=_0xb3c0f9[_0x3355('0x140')];}}return _0x1dae15;}(_0x4803e6,_0x13e506);_0x27dbfa['length']&&this['_model'][_0x3355('0x109')](()=>{for(const _0x6fb746 of _0x27dbfa){const _0x7767ee=this[_0x3355('0x27')]['getSuggestionCallback'](_0x3355('0xe9'),_0x170cd4,_0x3355('0xd1'));this[_0x3355('0x2b')](()=>_0x7767ee([_0x6fb746],_0x293826,_0x87c1cc));}});for(const _0x28824c of _0x5df502){let _0x359a86=null,_0x5d6f5c=_0x28824c['start'],_0x541c55=_0x28824c[_0x3355('0xf7')];for(const {suggestion:_0x4799df,meta:_0x596cab}of this[_0x3355('0xf9')](_0x28824c,_0x3355('0xe9'))){if(!_0x596cab[_0x3355('0xc0')])continue;if(_0x4799df[_0x3355('0x120')]!=_0x170cd4)continue;if(!Ot(_0x4799df,_0x87c1cc))continue;const _0x10a9e6=_0x4799df[_0x3355('0x56')]();if(_0x10a9e6['containsRange'](_0x28824c,!0x0))return null;_0x5d6f5c=_0x5d6f5c['isBefore'](_0x10a9e6[_0x3355('0x145')])?_0x5d6f5c:_0x10a9e6[_0x3355('0x145')],_0x541c55=_0x541c55[_0x3355('0x115')](_0x10a9e6[_0x3355('0xf7')])?_0x541c55:_0x10a9e6[_0x3355('0xf7')],_0x359a86?_0x10a9e6[_0x3355('0x145')][_0x3355('0xa5')](_0x359a86[_0x3355('0x56')]()[_0x3355('0x145')])?(_0x359a86[_0x3355('0x67')](),_0x359a86=_0x4799df):_0x4799df[_0x3355('0x67')]():_0x359a86=_0x4799df;}const _0x4c97ff=this[_0x3355('0xbd')]['createRange'](_0x5d6f5c,_0x541c55);if(_0x359a86)this['_setSuggestionRange'](_0x359a86,_0x4c97ff);else{const _0xca41da=_0x140e3b(),_0x270cca=_0x4f9ea1['id'];this[_0x3355('0x72')]({'id':_0xca41da,'type':_0x3355('0x12a')+_0x170cd4,'data':_0x293826,'createdAt':new Date(),'authorId':_0x270cca,'attributes':_0x87c1cc}),this['_addSuggestionMarker'](_0x3355('0x12a')+_0x170cd4,_0xca41da,_0x270cca,_0x4c97ff);}}return null;}[_0x3355('0x14')](_0x26ea0c,_0x32f14c,_0x24115c=[],_0x2d0049=null,_0x36747a={}){_0x32f14c[_0x3355('0x97')]||(_0x32f14c[_0x3355('0x97')]=_0x32f14c[_0x3355('0x131')]),_0x32f14c[_0x3355('0xc7')]=_0x26ea0c['is'](_0x3355('0xd2')),_0x2d0049=_0x2d0049||Nt(_0x32f14c);const _0x37b70e=_0x24115c['map'](_0x6e04b9=>jt(_0x6e04b9,this[_0x3355('0xbd')])),_0x1c15da=_0x26ea0c['is'](_0x3355('0xd2'))?_0x26ea0c:jt(_0x26ea0c,this[_0x3355('0xbd')]);if(_0x3355('0xf')===this[_0x3355('0xc2')]){const _0x4a9275=this['_suggestionFactory'][_0x3355('0x13a')](_0x3355('0xdc'),_0x2d0049,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0x4a9275([_0x1c15da],_0x32f14c,_0x36747a)),null;}_0x37b70e[_0x3355('0x6b')](_0x1c15da);let _0x2446e6=!0x0;for(const _0x4843f6 of _0x37b70e)if(!this[_0x3355('0x12b')](_0x4843f6)){_0x2446e6=!0x1;break;}if(_0x2446e6&&_0x3355('0x38')!==this[_0x3355('0xc2')]){const _0xc73c14=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0xdc'),_0x2d0049,_0x3355('0xd1'));return this['forceDefaultExecution'](()=>_0xc73c14([_0x1c15da],_0x32f14c,_0x36747a)),null;}let _0x12ed4b=null,_0x15b18c=_0x1c15da[_0x3355('0x145')],_0x5aefe8=_0x1c15da[_0x3355('0xf7')];for(const {suggestion:_0xd21378,meta:_0x4fdc2f}of this[_0x3355('0xf9')](_0x1c15da,_0x3355('0xdc'))){if(!_0x4fdc2f[_0x3355('0xc0')])continue;if(_0x4fdc2f[_0x3355('0xad')]||_0x4fdc2f[_0x3355('0xaa')]||_0x4fdc2f[_0x3355('0xc')])continue;if(_0xd21378[_0x3355('0x82')][_0x3355('0x97')]!=_0x32f14c['formatGroupId'])continue;if(!Ot(_0xd21378,_0x36747a))continue;const _0x5ea031=_0xd21378['getFirstRange']();if(_0xd21378[_0x3355('0x120')]==_0x2d0049){if(_0x5ea031[_0x3355('0x31')](_0x1c15da,!0x0))return null;_0x15b18c=_0x15b18c[_0x3355('0xa5')](_0x5ea031[_0x3355('0x145')])?_0x15b18c:_0x5ea031['start'],_0x5aefe8=_0x5aefe8[_0x3355('0x115')](_0x5ea031[_0x3355('0xf7')])?_0x5aefe8:_0x5ea031['end'],_0x12ed4b?_0x5ea031[_0x3355('0x145')][_0x3355('0xa5')](_0x12ed4b[_0x3355('0x56')]()[_0x3355('0x145')])?(_0x12ed4b[_0x3355('0x67')](),_0x12ed4b=_0xd21378):_0xd21378[_0x3355('0x67')]():_0x12ed4b=_0xd21378;}else{const _0x8ca8c5=_0x1c15da['getIntersection'](_0x5ea031);this['_cutOutSuggestionMarker'](_0xd21378,_0x8ca8c5);}}const _0x54b965=this['editor'][_0x3355('0xcc')]['get'](_0x3355('0x6e'))['me'],_0xbe4433=_0x140e3b(),_0x2de249=_0x54b965['id'];if(_0x12ed4b)return this['_setSuggestionRange'](_0x12ed4b,this['_model'][_0x3355('0xae')](_0x15b18c,_0x5aefe8)),_0x12ed4b;{const _0x485321=this[_0x3355('0x72')]({'id':_0xbe4433,'type':_0x3355('0x114')+_0x2d0049,'data':_0x32f14c,'createdAt':new Date(),'authorId':_0x2de249,'attributes':_0x36747a});return this[_0x3355('0x21')](_0x3355('0x114')+_0x2d0049,_0xbe4433,_0x2de249,this[_0x3355('0xbd')][_0x3355('0xae')](_0x15b18c,_0x5aefe8)),_0x485321;}}[_0x3355('0x9c')](_0x59f0f8,_0x843498,_0x648772=[],_0x1e30a8=null,_0xa8cef2={}){_0x843498['formatGroupId']||(_0x843498['formatGroupId']=_0x843498[_0x3355('0x131')]);const _0x44194d=_0x59f0f8[0x0];_0x843498[_0x3355('0xc7')]=_0x44194d['is'](_0x3355('0xd2')),_0x1e30a8=_0x1e30a8||Nt(_0x843498);const _0x4a8b86=_0x648772['map'](_0x4a9d20=>jt(_0x4a9d20,this['_model'])),_0x5d3d1d=_0x44194d['is'](_0x3355('0xd2'))?_0x59f0f8:_0x59f0f8[_0x3355('0x4')](_0x1d245a=>jt(_0x1d245a,this[_0x3355('0xbd')]));if(_0x3355('0xf')===this[_0x3355('0xc2')]){const _0x4b9af6=this['_suggestionFactory'][_0x3355('0x13a')](_0x3355('0xdc'),_0x1e30a8,'accept');return this[_0x3355('0x2b')](()=>_0x4b9af6(_0x5d3d1d,_0x843498,_0xa8cef2)),null;}_0x4a8b86[_0x3355('0x6b')](..._0x5d3d1d);let _0x26e1ea=!0x0;for(const _0x278a81 of _0x4a8b86)if(!this['_rangeIsInLocalUserInsertion'](_0x278a81)){_0x26e1ea=!0x1;break;}if(_0x26e1ea&&'always'!==this[_0x3355('0xc2')]){const _0x3efde3=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0xdc'),_0x1e30a8,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0x3efde3(_0x5d3d1d,_0x843498,_0xa8cef2)),null;}const _0x55b5d7=this[_0x3355('0x111')][_0x3355('0xcc')]['get'](_0x3355('0x6e'))['me'];for(const _0x459df4 of this[_0x3355('0x5')]()){if(_0x459df4[_0x3355('0x128')]['id']!=_0x55b5d7['id'])continue;if(_0x3355('0xdc')!=_0x459df4['type']||_0x459df4[_0x3355('0x82')][_0x3355('0x97')]!=_0x843498['formatGroupId'])continue;if(!Ot(_0x459df4,_0xa8cef2))continue;const _0x1f75c4=_0x459df4['subType']==_0x1e30a8;for(let _0x597373=0x0;_0x597373<_0x5d3d1d['length'];_0x597373++){const _0x5d1214=_0x5d3d1d[_0x597373];for(const _0x6508d6 of _0x459df4['getMarkers']()){const _0x197c1c=_0x6508d6[_0x3355('0x10f')]();if(_0x5d1214['isEqual'](_0x197c1c)){_0x1f75c4?(_0x5d3d1d[_0x3355('0xa2')](_0x597373,0x1),_0x597373--):_0x459df4[_0x3355('0xe7')](_0x6508d6[_0x3355('0x139')]);break;}}}}if(0x0==_0x5d3d1d[_0x3355('0x140')])return null;const _0x5ebc5e=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0xdc'),_0x1e30a8,_0x3355('0x52'));for(const _0x59ae87 of this[_0x3355('0x5')]())if(_0x59ae87[_0x3355('0x128')]['id']==_0x55b5d7['id']&&'formatBlock'==_0x59ae87[_0x3355('0x134')]&&_0x59ae87[_0x3355('0x82')]['formatGroupId']==_0x843498['formatGroupId']&&_0x59ae87[_0x3355('0x120')]==_0x1e30a8&&Ot(_0x59ae87,_0xa8cef2)&&(_0x5ebc5e(_0x59ae87[_0x3355('0xef')](),_0x5d3d1d)||_0x5ebc5e(_0x5d3d1d,_0x59ae87['getRanges']()))){for(const _0xc6e428 of _0x5d3d1d)_0x59ae87[_0x3355('0x2c')](_0xc6e428);return _0x59ae87;}const _0x394b5c=_0x140e3b(),_0x443c12=_0x55b5d7['id'],_0x34234a=_0x3355('0x114')+_0x1e30a8,_0x36eb1f=this[_0x3355('0x72')]({'id':_0x394b5c,'type':_0x34234a,'data':_0x843498,'createdAt':new Date(),'authorId':_0x443c12,'attributes':_0xa8cef2});for(const _0x1595c2 of _0x5d3d1d)this['_addSuggestionMarker'](_0x34234a,_0x394b5c,_0x443c12,_0x1595c2,_0x46901b[_0x3355('0x9b')]());return _0x36eb1f;}['markDeletion'](_0x1f6d82,_0x566c78=null,_0x45addf={}){if(_0x1f6d82[_0x3355('0x59')])return null;const _0x33a214=this['editor'][_0x3355('0xcc')][_0x3355('0xb5')](_0x3355('0x6e'))['me'],_0x41ecd2=new _0x3bb391(_0x1f6d82[_0x3355('0x145')],_0x1f6d82['end']);for(const {suggestion:_0x56b914,meta:_0x3cc922}of this[_0x3355('0xf9')](_0x41ecd2,_0x3355('0x54')))if(_0x3cc922['isOwn']&&!_0x3cc922[_0x3355('0xad')]){if(_0x56b914[_0x3355('0xcb')]){const _0x3c3ed0=_0x56b914[_0x3355('0xef')]()['filter'](_0x46fb3f=>_0x3355('0xed')!=_0x46fb3f[_0x3355('0x100')][_0x3355('0x36')]);_0x3c3ed0['every'](_0x191d10=>_0x41ecd2[_0x3355('0x31')](_0x191d10,!0x0))&&_0x56b914[_0x3355('0x7a')]();if(_0x3c3ed0[_0x3355('0xba')](_0xfa9458=>_0xfa9458[_0x3355('0x31')](_0x41ecd2,!0x0))){const _0x2db2fc=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0x146'),_0x566c78,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0x2db2fc([_0x41ecd2],null,_0x45addf)),null;}}else{const _0x430a43=_0x41ecd2[_0x3355('0xfb')](_0x56b914[_0x3355('0x56')]());null!==_0x430a43&&_0x56b914[_0x3355('0xf4')]([_0x430a43],null,_0x45addf);}}if(_0x41ecd2['detach'](),_0x41ecd2['isCollapsed']||_0x3355('0xed')==_0x41ecd2[_0x3355('0x100')]['rootName'])return null;let _0x3fda65=null,_0x339b9a=_0x41ecd2[_0x3355('0x145')],_0x425cdb=_0x41ecd2['end'];const _0x2626d4=this['_findSuggestions'](_0x41ecd2,_0x3355('0x146'));for(const {suggestion:_0x3324c8,meta:_0x3dba89}of _0x2626d4){const _0x36f5bb=this[_0x3355('0xbd')][_0x3355('0xae')](_0x339b9a,_0x425cdb);if(_0x3dba89[_0x3355('0xc0')]&&(this[_0x3355('0x85')]||!_0x3dba89[_0x3355('0xaa')]&&!_0x3dba89['isInsideObject'])){if(_0x3324c8[_0x3355('0xcb')]){if(!Ot(_0x3324c8,_0x45addf))continue;let _0x1bea87=!0x0;for(const _0x32858e of _0x3324c8[_0x3355('0xef')]()){if(_0x32858e[_0x3355('0x31')](_0x36f5bb,!0x0))return _0x3324c8;_0x36f5bb[_0x3355('0x31')](_0x32858e)||(_0x1bea87=!0x1);}_0x1bea87&&_0x3324c8[_0x3355('0x7a')]();}else{const _0x4ad3d2=_0x3324c8[_0x3355('0x56')]();if(_0x4ad3d2[_0x3355('0x31')](_0x36f5bb,!0x0))return _0x3324c8;if(!Ot(_0x3324c8,_0x45addf)){_0x36f5bb[_0x3355('0x31')](_0x4ad3d2)?_0x3324c8['removeMarkers']():_0x4ad3d2[_0x3355('0x94')](_0x339b9a)?_0x339b9a=_0x4ad3d2[_0x3355('0xf7')]:_0x4ad3d2[_0x3355('0x94')](_0x425cdb)&&(_0x425cdb=_0x4ad3d2[_0x3355('0x145')]);continue;}_0x339b9a=_0x339b9a['isBefore'](_0x4ad3d2[_0x3355('0x145')])?_0x339b9a:_0x4ad3d2[_0x3355('0x145')],_0x425cdb=_0x425cdb[_0x3355('0x115')](_0x4ad3d2[_0x3355('0xf7')])?_0x425cdb:_0x4ad3d2[_0x3355('0xf7')],_0x45addf=Object[_0x3355('0x91')]({},_0x3324c8[_0x3355('0x42')]),_0x3fda65?_0x4ad3d2['start']['isBefore'](_0x3fda65['getFirstRange']()['start'])?(_0x3fda65[_0x3355('0x67')](),_0x3fda65=_0x3324c8):_0x3324c8[_0x3355('0x67')]():_0x3fda65=_0x3324c8;}}}if(_0x3fda65)return this[_0x3355('0x4f')](_0x3fda65,this[_0x3355('0xbd')][_0x3355('0xae')](_0x339b9a,_0x425cdb)),_0x3fda65;{const _0x562739=_0x140e3b(),_0xa14e3b=this[_0x3355('0xbd')][_0x3355('0xae')](_0x339b9a,_0x425cdb),_0x2b4be1=_0x33a214['id'],_0x447e5e=_0x566c78?_0x3355('0xa')+_0x566c78:_0x3355('0x146'),_0xbeb961=this[_0x3355('0x72')]({'id':_0x562739,'type':_0x447e5e,'createdAt':new Date(),'authorId':_0x2b4be1,'attributes':_0x45addf});return this['_addSuggestionMarker'](_0x447e5e,_0x562739,_0x2b4be1,_0xa14e3b),_0xbeb961;}}[_0x3355('0x80')](_0x48ec4e,_0x5380b9='multi',_0x3644ba={}){const _0xe7987a=this[_0x3355('0x111')]['plugins'][_0x3355('0xb5')]('Users')['me'],_0x5de55e=_0x48ec4e['map'](_0x41b754=>new _0x3bb391(_0x41b754['start'],_0x41b754['end'])),_0x4a6a8a=new Set();for(const {suggestion:_0x38aa15,meta:_0x331d2a}of this[_0x3355('0xf9')](_0x5de55e,_0x3355('0x54')))_0x331d2a[_0x3355('0xc0')]&&!_0x331d2a[_0x3355('0xad')]&&_0x4a6a8a[_0x3355('0x5e')](_0x38aa15);for(const _0x10a971 of _0x4a6a8a)if(_0x10a971['isMultiRange']){const _0x2017aa=_0x10a971[_0x3355('0xef')]();(!_0x10a971[_0x3355('0x42')]||!_0x10a971['attributes'][_0x3355('0xc5')])&&(_0x2017aa[_0x3355('0x32')](_0x20e712=>_0x5de55e[_0x3355('0xba')](_0x51f432=>_0x51f432[_0x3355('0x31')](_0x20e712,!0x0)))&&_0x10a971[_0x3355('0x7a')]());if(_0x5de55e['every'](_0x9d3b88=>_0x2017aa[_0x3355('0xba')](_0x4f61c7=>_0x4f61c7[_0x3355('0x31')](_0x9d3b88,!0x0)))){const _0x1b1a5c=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0x146'),_0x5380b9,'accept');return this['forceDefaultExecution'](()=>_0x1b1a5c(_0x48ec4e,null,_0x3644ba)),null;}}else{const _0x5b6676=_0x10a971[_0x3355('0x56')]();_0x5de55e['some'](_0x4f06cf=>_0x4f06cf['containsRange'](_0x5b6676,!0x0))&&_0x10a971['discard']();if(_0x5de55e[_0x3355('0x32')](_0x665c79=>_0x5b6676[_0x3355('0x31')](_0x665c79,!0x0))){const _0xd586f8=this[_0x3355('0x27')]['getSuggestionCallback'](_0x3355('0x146'),_0x5380b9,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0xd586f8(_0x5de55e,null,_0x3644ba)),null;}}const _0x50b203=this[_0x3355('0x27')]['getSuggestionCallback'](_0x3355('0x146'),_0x5380b9,_0x3355('0x52'));let _0x28bd46=null;for(const _0x431462 of this[_0x3355('0x5')]())if(_0x431462[_0x3355('0x128')]['id']==_0xe7987a['id']&&_0x431462[_0x3355('0xcd')]&&_0x3355('0x146')==_0x431462[_0x3355('0x134')]&&_0x431462['subType']==_0x5380b9&&Ot(_0x431462,_0x3644ba)&&(_0x50b203(_0x431462['getRanges'](),_0x5de55e)||_0x50b203(_0x5de55e,_0x431462['getRanges']()))){if(_0x28bd46){if(_0x431462[_0x3355('0x137')]&&_0x431462['commentThread'][_0x3355('0x140')])continue;for(const _0xc37e8a of _0x431462['getRanges']())_0x28bd46[_0x3355('0x1d')](_0xc37e8a)||_0x28bd46[_0x3355('0x2c')](_0xc37e8a);_0x431462[_0x3355('0x67')]();}else{_0x28bd46=_0x431462;for(const _0x211b19 of _0x5de55e)_0x431462[_0x3355('0x1d')](_0x211b19)||_0x431462['addRange'](_0x211b19);}}if(_0x28bd46)return _0x28bd46;_0x4a6a8a[_0x3355('0x10c')]();for(const {suggestion:_0x4f2fd0,meta:_0x213d97}of this[_0x3355('0xf9')](_0x5de55e,_0x3355('0x146')))_0x213d97[_0x3355('0xc0')]&&(this[_0x3355('0x85')]||!_0x213d97['containsRangeInObject']&&!_0x213d97['isInsideObject'])&&Ot(_0x4f2fd0,_0x3644ba)&&_0x4a6a8a[_0x3355('0x5e')](_0x4f2fd0);for(const _0x51b482 of _0x4a6a8a){const _0x1588db=_0x51b482[_0x3355('0xef')]();if(!_0x3644ba||!_0x3644ba['skipNestingCheck']){if(_0x5de55e[_0x3355('0x32')](_0x25d00a=>_0x1588db[_0x3355('0xba')](_0x2fffb4=>_0x2fffb4['containsRange'](_0x25d00a,!0x0))))return _0x51b482;}(!_0x51b482[_0x3355('0x42')]||!_0x51b482[_0x3355('0x42')]['skipNestingCheck'])&&(_0x1588db[_0x3355('0x32')](_0x291251=>_0x5de55e[_0x3355('0xba')](_0xf4e7fd=>_0xf4e7fd['containsRange'](_0x291251,!0x0)))&&_0x51b482['discard']());}const _0x18b0f8=_0x140e3b(),_0xc6deda=_0xe7987a['id'],_0x52b81e='deletion:'+_0x5380b9,_0x18b169=this[_0x3355('0x72')]({'id':_0x18b0f8,'type':_0x52b81e,'createdAt':new Date(),'authorId':_0xc6deda,'attributes':_0x3644ba});for(const _0x170c4 of _0x5de55e)_0x170c4[_0x3355('0xe1')](),_0x170c4[_0x3355('0x59')]||_0x3355('0xed')==_0x170c4[_0x3355('0x100')][_0x3355('0x36')]||this[_0x3355('0x21')](_0x52b81e,_0x18b0f8,_0xc6deda,_0x170c4,_0x46901b[_0x3355('0x9b')]());return _0x18b169;}[_0x3355('0x4f')](_0x800b3b,_0x46ace3){const _0x4d2762=_0x800b3b['getFirstMarker']();this[_0x3355('0xbd')][_0x3355('0x109')](_0x16da41=>{_0x16da41['updateMarker'](_0x4d2762,{'range':_0x46ace3});});}[_0x3355('0x6a')](_0x2df725){const _0x257daa=_0x2df725['id'],_0x1a279b=this[_0x3355('0x111')]['config']['get'](_0x3355('0x10d'));this['_commentsRepository']['hasCommentThread'](_0x257daa)||this[_0x3355('0x7d')][_0x3355('0x3f')]({'channelId':_0x1a279b,'threadId':_0x257daa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x288b53=this[_0x3355('0x7d')][_0x3355('0xe5')](_0x257daa);_0x288b53['unbind'](_0x3355('0xe8')),_0x288b53['isRemovable']=!0x1,_0x2df725[_0x3355('0x137')]=_0x288b53;}[_0x3355('0x86')](_0x3e5cdc,_0x4711ac,_0x47c5a2,_0xdb27c){if(_0x3e5cdc[_0x3355('0x134')]!=_0x4711ac||_0x3e5cdc[_0x3355('0x120')]!=_0x47c5a2||_0x3e5cdc[_0x3355('0xda')]['id']!=_0xdb27c)throw this[_0x3355('0x111')]['enableReadOnlyMode'](_0x3355('0x11f')),new _0x3c873b('track-changes-suggestion-data-mismatch',this);}[_0x3355('0x2e')](_0x589174,_0x1d3f55){const _0x22735f=_0x589174[_0x3355('0x56')]();if(_0x1d3f55[_0x3355('0xa0')](_0x22735f))_0x589174[_0x3355('0x67')]();else{if(_0x22735f[_0x3355('0x31')](_0x1d3f55)){const _0x3bfc67=this[_0x3355('0xbd')][_0x3355('0x99')](_0x1d3f55[_0x3355('0x145')][_0x3355('0x45')],'end');this[_0x3355('0x4f')](_0x589174,this['_model'][_0x3355('0xae')](_0x22735f['start'],_0x3bfc67));const _0x58c839=_0x140e3b(),_0x2d5d88=_0x589174[_0x3355('0xda')]['id'],_0x47b688=_0x589174[_0x3355('0x134')]+':'+_0x589174[_0x3355('0x120')];this['_setSuggestionData']({'id':_0x58c839,'type':_0x47b688,'createdAt':new Date(),'authorId':_0x2d5d88,'data':_0x589174[_0x3355('0x82')],'attributes':_0x589174[_0x3355('0x42')]});const _0x233f19=this[_0x3355('0xbd')][_0x3355('0x99')](_0x1d3f55[_0x3355('0xf7')][_0x3355('0x7c')],'after'),_0x4c9cee=this[_0x3355('0xbd')][_0x3355('0xae')](_0x233f19,_0x22735f[_0x3355('0xf7')]);this[_0x3355('0x21')](_0x47b688,_0x58c839,_0x2d5d88,_0x4c9cee);}else{if(_0x22735f[_0x3355('0x94')](_0x1d3f55[_0x3355('0x145')])){const _0x433d9b=this[_0x3355('0xbd')]['createPositionAt'](_0x1d3f55[_0x3355('0x145')][_0x3355('0x45')],_0x3355('0xf7'));this['_setSuggestionRange'](_0x589174,this['_model'][_0x3355('0xae')](_0x22735f[_0x3355('0x145')],_0x433d9b));}else{const _0x5810f7=this[_0x3355('0xbd')][_0x3355('0x99')](_0x1d3f55[_0x3355('0xf7')][_0x3355('0x7c')],_0x3355('0xeb'));this['_setSuggestionRange'](_0x589174,this[_0x3355('0xbd')][_0x3355('0xae')](_0x5810f7,_0x22735f[_0x3355('0xf7')]));}}}}[_0x3355('0x12b')](_0x38447e){for(const {suggestion:_0x536809,meta:_0x3d277c}of this[_0x3355('0xf9')](_0x38447e,_0x3355('0x54'))){if(!_0x3d277c['isOwn'])continue;const _0x3ed146=_0x536809['getRanges']();for(const _0x43882f of _0x3ed146)if(!_0x38447e['getDifference'](_0x43882f)[_0x3355('0x140')])return!0x0;}return!0x1;}[_0x3355('0xab')](_0x3d7f53){const _0x5b476c=this[_0x3355('0x111')][_0x3355('0xcc')]['get']('Users')['getUser'](_0x3d7f53);if(!_0x5b476c)throw new _0x3c873b(_0x3355('0x62'),this);return _0x5b476c;}['_getExternalAuthor'](_0x11184a){const _0x194cea=this['editor']['plugins'][_0x3355('0xb5')]('Users'),_0x10ea19=_0x2967d9('external:'+_0x11184a),_0x3389a9=_0x194cea['getUser'](_0x10ea19);return _0x3389a9||_0x194cea[_0x3355('0x34')]({'id':_0x10ea19,'name':_0x11184a});}[_0x3355('0x87')](_0x1a50d8,_0x308abd,_0x5ef8cf,_0x40702c,_0x443bdd){const _0x19e0b2=this[_0x3355('0xab')](_0x40702c),_0x10f49b=this[_0x3355('0x27')]['buildSuggestion'](_0x1a50d8,_0x308abd,_0x5ef8cf,_0x19e0b2,_0x443bdd,_0x381748=>this[_0x3355('0x125')](_0x5ef8cf,{'attributes':_0x381748}));return this['listenTo'](_0x10f49b,'accept',()=>{this['_updateSuggestionData'](_0x5ef8cf,{'state':_0x3355('0x118')});},{'priority':_0x3355('0x69')}),this[_0x3355('0x9a')](_0x10f49b,_0x3355('0x7a'),()=>{this[_0x3355('0x125')](_0x5ef8cf,{'state':_0x3355('0x83')});},{'priority':_0x3355('0x69')}),this[_0x3355('0x3a')][_0x3355('0x73')](_0x5ef8cf,_0x10f49b),this['_suggestionState'][_0x3355('0x73')](_0x10f49b,'notReady'),_0x10f49b;}[_0x3355('0x9')](_0x366bfd){const _0xa898e8=_0x366bfd[_0x3355('0x12e')](':');return{'group':_0xa898e8[0x0],'type':_0xa898e8[0x1],'subType':_0xa898e8[_0x3355('0x140')]>=0x5?_0xa898e8[0x2]:null,'id':_0xa898e8[_0x3355('0x140')]<0x5?_0xa898e8[0x2]:_0xa898e8[0x3],'authorId':_0xa898e8['length']<0x5?_0xa898e8[0x3]:_0xa898e8[0x4],'markerCount':0x6==_0xa898e8[_0x3355('0x140')]?_0xa898e8[0x5]:null};}[_0x3355('0xe')](_0x41a0ad,_0x21688b,_0x562340){const _0x3d9a1a=_0x41a0ad[_0x3355('0x56')](),_0x504ecc=_0x3d9a1a['start'],_0x7bb9fa=_0x3d9a1a[_0x3355('0xf7')];this[_0x3355('0x4f')](_0x41a0ad,this[_0x3355('0xbd')]['createRange'](_0x504ecc,_0x21688b));const _0xe7d48=_0x140e3b(),_0x43af98=_0x41a0ad[_0x3355('0xda')]['id'],_0x3812f1=_0x41a0ad[_0x3355('0x134')]+(_0x41a0ad[_0x3355('0x120')]?':'+_0x41a0ad[_0x3355('0x120')]:'');this[_0x3355('0x72')]({'id':_0xe7d48,'type':_0x3812f1,'createdAt':new Date(),'authorId':_0x43af98,'originalSuggestionId':_0x41a0ad['id'],'attributes':_0x41a0ad[_0x3355('0x42')],'data':_0x41a0ad[_0x3355('0x82')]}),_0x3355('0xdc')==_0x41a0ad['type']&&(_0x562340=this[_0x3355('0xbd')][_0x3355('0xca')](_0x562340[_0x3355('0x7c')])),this[_0x3355('0x21')](_0x3812f1,_0xe7d48,_0x43af98,this[_0x3355('0xbd')]['createRange'](_0x562340,_0x7bb9fa));}[_0x3355('0xf9')](_0xcdb7f6,_0x3f8986=null){const _0x5dc696=[],_0x2a0b36=this[_0x3355('0x111')][_0x3355('0xcc')]['get']('Users')['me'];Array[_0x3355('0x127')](_0xcdb7f6)||(_0xcdb7f6=[_0xcdb7f6]);for(const _0x3e5484 of this[_0x3355('0x5')]()){if(!_0x3e5484['isInContent'])continue;if(_0x3f8986&&_0x3e5484[_0x3355('0x134')]!=_0x3f8986)continue;let _0x45835e=!0x1;for(const _0x12c06e of _0x3e5484[_0x3355('0xef')]()){for(const _0x1c46e5 of _0xcdb7f6){const _0x36e655=_0x1c46e5[_0x3355('0x145')]['isEqual'](_0x12c06e['end'])||_0x1c46e5['end'][_0x3355('0xa0')](_0x12c06e['start']);if(_0x36e655||_0x1c46e5['getIntersection'](_0x12c06e)){const _0x13d71f=_0x1c46e5[_0x3355('0x31')](_0x12c06e)&&_t(this[_0x3355('0xbd')]['schema'],_0x12c06e[_0x3355('0x145')],_0x1c46e5),_0x4ac8cd=_0x12c06e[_0x3355('0x31')](_0x1c46e5)&&_t(this['_model'][_0x3355('0x88')],_0x1c46e5[_0x3355('0x145')],_0x12c06e);_0x5dc696[_0x3355('0x6b')]({'suggestion':_0x3e5484,'meta':{'isOwn':_0x2a0b36==_0x3e5484[_0x3355('0x128')],'isNextTo':_0x36e655,'isInsideObject':_0x13d71f,'containsRangeInObject':_0x4ac8cd}}),_0x45835e=!0x0;break;}}if(_0x45835e)break;}}return _0x5dc696;}['_addSuggestionMarker'](_0x2a641c,_0x37552b,_0xe29064,_0x12a024,_0x1d76f4){this[_0x3355('0xbd')]['change'](_0x2f76f0=>{let _0x1916b3=_0x3355('0x40')+_0x2a641c+':'+_0x37552b+':'+_0xe29064;_0x1d76f4&&(_0x1916b3=_0x1916b3+':'+_0x1d76f4),_0x2f76f0[_0x3355('0x1')](_0x1916b3,{'range':_0x12a024,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3355('0xf1')](_0x3d2e0b){const _0x266a90=_0x3d2e0b[_0x3355('0x12')],_0x31331e=_0x3d2e0b[_0x3355('0x28')];_0x3d2e0b[_0x3355('0x12')]=null,null!=_0x266a90&&(_0x266a90['next']=null),_0x3d2e0b[_0x3355('0x28')]=null,null!=_0x31331e&&(_0x31331e['previous']=null),_0x3355('0x77')==this[_0x3355('0x46')][_0x3355('0xb5')](_0x3d2e0b)&&(this[_0x3355('0x46')][_0x3355('0x73')](_0x3d2e0b,'removed'),this[_0x3355('0xa3')](_0x3355('0xc9'),_0x3d2e0b,_0x266a90,_0x31331e));}[_0x3355('0x72')](_0x4fa685){const _0x33903f=_0x4fa685['id'],_0x2bc474=this[_0x3355('0xb9')](_0x4fa685);if(this[_0x3355('0x105')]&&this[_0x3355('0x105')][_0x3355('0x68')]){const _0x206417=this[_0x3355('0x111')][_0x3355('0xcc')][_0x3355('0xb5')](_0x3355('0x24')),_0xb134ee=_0x2bc474[_0x3355('0x41')],_0xdc29d1=_0x2bc474[_0x3355('0x120')]?_0x2bc474[_0x3355('0x134')]+':'+_0x2bc474[_0x3355('0x120')]:_0x2bc474[_0x3355('0x134')],_0x362462=this[_0x3355('0x111')][_0x3355('0xcf')],_0x2937e6=_0x206417['add'](_0x5723bb(_0x362462,_0x3355('0xb2'))),_0x124834={'id':_0x33903f,'type':_0xdc29d1,'hasComments':_0xb134ee,'data':_0x4fa685[_0x3355('0x82')]||null,'originalSuggestionId':_0x4fa685[_0x3355('0xb7')]||null,'attributes':_0x2bc474[_0x3355('0x42')]};this['_adapter']['addSuggestion'](_0x124834)[_0x3355('0xc4')](_0x4f9cde=>{_0x2bc474[_0x3355('0xb8')]=!0x0,_0x206417[_0x3355('0x3e')](_0x2937e6),_0x4f9cde&&_0x4f9cde[_0x3355('0x8')]&&(this[_0x3355('0x3a')]['get'](_0x33903f)[_0x3355('0x8')]=_0x4f9cde[_0x3355('0x8')]);})['catch'](_0x549848=>{throw _0x48fb86('error-saving-suggestion-data-suggestion-discarded'),this[_0x3355('0x111')][_0x3355('0x90')][_0x3355('0xdf')]({'isUndoable':!0x1},()=>{_0x2bc474['discard']();}),_0x2bc474[_0x3355('0x30')](),this[_0x3355('0x3a')][_0x3355('0x75')](_0x2bc474['id']),this[_0x3355('0x46')]['delete'](_0x2bc474),_0x549848;});}return _0x2bc474;}['_updateSuggestionData'](_0x15e3dd,_0x34fd21){const _0x47bfe0=this[_0x3355('0x111')]['plugins'][_0x3355('0xb5')](_0x3355('0x24')),_0xdb6e4e=this[_0x3355('0x96')](_0x15e3dd);if(this['_adapter']&&this[_0x3355('0x105')][_0x3355('0x138')]){if(_0xdb6e4e[_0x3355('0xb8')]){const _0x53890f=_0x47bfe0['add'](_0x5723bb(this['editor'][_0x3355('0xcf')],'PENDING_ACTION_SUGGESTION'));this[_0x3355('0x105')]['updateSuggestion'](_0x15e3dd,_0x34fd21)['then'](()=>{_0x47bfe0['remove'](_0x53890f);});}else _0xdb6e4e['on'](_0x3355('0x2f'),()=>{this[_0x3355('0x125')](_0x15e3dd,_0x34fd21);});}}[_0x3355('0x60')](_0x171799){if(!this[_0x3355('0x105')]||!this[_0x3355('0x105')][_0x3355('0x96')])throw new _0x3c873b('track-changes-adapter-missing-getsuggestion',this);return this[_0x3355('0x105')][_0x3355('0x96')](_0x171799);}[_0x3355('0x4d')](_0x192cef){const {id:_0x47361f,type:_0x5810bb,subType:_0x39b2c1,authorId:_0x58a52d}=this[_0x3355('0x9')](_0x192cef),_0x1b5607=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x47361f)||this['_createSuggestion'](_0x5810bb,_0x39b2c1,_0x47361f,_0x58a52d,{});switch(this[_0x3355('0x86')](_0x1b5607,_0x5810bb,_0x39b2c1,_0x58a52d),this[_0x3355('0x46')][_0x3355('0xb5')](_0x1b5607)){case _0x3355('0x4a'):this[_0x3355('0x60')](_0x47361f)[_0x3355('0xc4')](_0xade6eb=>{let _0x4717e8=Promise[_0x3355('0x8f')]();_0xade6eb[_0x3355('0x41')]&&(_0x4717e8=this[_0x3355('0x7d')][_0x3355('0xbe')]({'channelId':this[_0x3355('0x111')][_0x3355('0x5d')][_0x3355('0xb5')]('collaboration.channelId'),'threadId':_0x47361f})),_0x4717e8['then'](()=>{this['addSuggestionData'](_0xade6eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1b5607,_0x3355('0x5f'));break;case _0x3355('0x57'):this[_0x3355('0x125')](_0x47361f,{'state':'open'});case _0x3355('0xd7'):this[_0x3355('0x46')][_0x3355('0x73')](_0x1b5607,_0x3355('0x77')),this['fire']('suggestionLoaded',_0x1b5607);break;case _0x3355('0x77'):this[_0x3355('0xa3')]('suggestionChanged',_0x1b5607);}return _0x1b5607[_0x3355('0xfd')](_0x192cef),_0x1b5607;}[_0x3355('0xe6')](_0x219739){const _0x188c2b=Array[_0x3355('0x1c')](_0x219739)[_0x3355('0x13e')](_0x550ef9=>!_0x550ef9[_0x3355('0xcb')]),_0x532d0d=this[_0x3355('0x5')]({'skipNotAttached':!0x0})['filter'](_0xb42ca4=>!_0xb42ca4[_0x3355('0xcb')]),_0x1464ec=_0x532d0d['filter'](_0x10e7b0=>!_0x219739[_0x3355('0x9d')](_0x10e7b0)),_0x2d707b=new Map(_0x532d0d[_0x3355('0x4')](_0x27912a=>[_0x27912a,this[_0x3355('0x27')]['getSuggestionCallback'](_0x27912a[_0x3355('0x134')],_0x27912a[_0x3355('0x120')],_0x3355('0xb6'))])),_0x270ab4=new Map(_0x532d0d[_0x3355('0x4')](_0x2f9bbd=>[_0x2f9bbd,_0x2f9bbd[_0x3355('0x56')]()])),_0x479d4d=new Set(),_0x3ce288=new Set();for(let _0x29380a=0x0;_0x29380a<_0x188c2b[_0x3355('0x140')];_0x29380a++)_0x2e432d(_0x188c2b[_0x29380a],_0x188c2b,_0x29380a+0x1);for(let _0x1f22fb=0x0;_0x1f22fb<_0x188c2b['length'];_0x1f22fb++)_0x2e432d(_0x188c2b[_0x1f22fb],_0x1464ec,0x0);for(let _0x5ba0f9=0x0;_0x5ba0f9<_0x188c2b[_0x3355('0x140')];_0x5ba0f9++){const _0x522e31=_0x188c2b[_0x5ba0f9];!_0x3ce288['has'](_0x522e31)&&_0x522e31[_0x3355('0x12')]&&(_0x522e31[_0x3355('0x12')][_0x3355('0x28')]===_0x522e31&&(_0x522e31[_0x3355('0x12')][_0x3355('0x28')]=null),_0x522e31['previous']=null),!_0x479d4d[_0x3355('0x9d')](_0x522e31)&&_0x522e31[_0x3355('0x28')]&&(_0x522e31['next'][_0x3355('0x12')]===_0x522e31&&(_0x522e31[_0x3355('0x28')][_0x3355('0x12')]=null),_0x522e31[_0x3355('0x28')]=null);}function _0x2e432d(_0xe34db5,_0x13edd8,_0x29e2b0){for(let _0x12b20a=_0x29e2b0;_0x12b20a<_0x13edd8['length'];_0x12b20a++){const _0x287e8f=_0x67ae3(_0xe34db5,_0x13edd8[_0x12b20a]);_0x287e8f&&(_0x287e8f[0x0][_0x3355('0x28')]=_0x287e8f[0x1],_0x287e8f[0x1][_0x3355('0x12')]=_0x287e8f[0x0],_0x479d4d[_0x3355('0x5e')](_0x287e8f[0x0]),_0x3ce288[_0x3355('0x5e')](_0x287e8f[0x1]));}}function _0x67ae3(_0x13a8d8,_0x56727f){if(_0x13a8d8[_0x3355('0x128')]['id']!==_0x56727f['author']['id'])return null;const _0x163360=_0x2d707b['get'](_0x13a8d8)(_0x13a8d8,_0x56727f,_0x270ab4[_0x3355('0xb5')](_0x13a8d8),_0x270ab4[_0x3355('0xb5')](_0x56727f));if(!_0x163360)return null;return _0x2d707b['get'](_0x56727f)(_0x13a8d8,_0x56727f,_0x270ab4['get'](_0x13a8d8),_0x270ab4[_0x3355('0xb5')](_0x56727f))?_0x163360[0x1]['commentThread']&&_0x163360[0x1]['commentThread'][_0x3355('0x140')]?null:_0x163360:null;}}[_0x3355('0x11c')](_0x14aad3){const _0x5db74e=Array[_0x3355('0x1c')](_0x14aad3),_0x43717e=this[_0x3355('0x5')]({'skipNotAttached':!0x0}),_0x1ea55d=_0x43717e[_0x3355('0x13e')](_0x495c2a=>!_0x14aad3[_0x3355('0x9d')](_0x495c2a)),_0x4e14f7=new Map(_0x5db74e['map'](_0xb24d1d=>[_0xb24d1d,this['_suggestionFactory'][_0x3355('0x13a')](_0xb24d1d['type'],_0xb24d1d[_0x3355('0x120')],_0x3355('0x52'))])),_0x555ef7=new Map(_0x43717e[_0x3355('0x4')](_0x134a09=>[_0x134a09,_0x134a09['getRanges']()]));for(let _0x20decb=0x0;_0x20decb<_0x5db74e['length'];_0x20decb++){if(_0x4cd08b(this,_0x5db74e[_0x20decb],_0x5db74e,_0x20decb+0x1))return!0x0;}for(let _0x53392e=0x0;_0x53392e<_0x5db74e[_0x3355('0x140')];_0x53392e++){if(_0x4cd08b(this,_0x5db74e[_0x53392e],_0x1ea55d,0x0))return!0x0;}return!0x1;function _0x4cd08b(_0x6eb923,_0x247182,_0x470285,_0x211577){for(let _0x414fef=_0x211577;_0x414fef<_0x470285[_0x3355('0x140')];_0x414fef++){const _0x4093b5=_0x470285[_0x414fef];if(_0x4093b5[_0x3355('0x134')]!==_0x247182[_0x3355('0x134')]||_0x4093b5[_0x3355('0x128')]['id']!==_0x247182[_0x3355('0x128')]['id']||_0x4093b5[_0x3355('0x120')]!==_0x247182[_0x3355('0x120')])continue;if(!Ut(_0x247182,_0x4093b5))continue;const _0x1cb87c=_0x4e14f7[_0x3355('0xb5')](_0x247182),_0x15da2b=_0x555ef7[_0x3355('0xb5')](_0x247182),_0x367ada=_0x555ef7[_0x3355('0xb5')](_0x4093b5),_0xf31b15=_0x247182['commentThread']&&_0x247182['commentThread'][_0x3355('0x140')],_0xcdb8a0=_0x4093b5[_0x3355('0x137')]&&_0x4093b5[_0x3355('0x137')][_0x3355('0x140')];if(!_0xf31b15&&_0x1cb87c(_0x367ada,_0x15da2b))return _0x6eb923[_0x3355('0x1f')](_0x4093b5,_0x247182),_0x555ef7[_0x3355('0x75')](_0x247182),!0x0;if(!_0xcdb8a0&&_0x1cb87c(_0x15da2b,_0x367ada))return _0x6eb923[_0x3355('0x1f')](_0x247182,_0x4093b5),_0x555ef7[_0x3355('0x75')](_0x4093b5),!0x0;}return!0x1;}}[_0x3355('0x1f')](_0x7f26a4,_0xf1c7ba){if(_0x7f26a4[_0x3355('0xcb')])for(const _0xd42eb7 of _0xf1c7ba[_0x3355('0xef')]())_0x7f26a4[_0x3355('0x2c')](_0xd42eb7);else{const _0x1fc8eb=_0xf1c7ba[_0x3355('0x56')]()[_0x3355('0xf7')];this[_0x3355('0x4f')](_0x7f26a4,this[_0x3355('0xbd')][_0x3355('0xae')](_0x7f26a4[_0x3355('0x56')]()[_0x3355('0x145')],_0x1fc8eb));}_0xf1c7ba['removeMarkers']();}}class Bt{constructor(_0x52fc33){this[_0x3355('0x39')]=_0x52fc33,this['_model']=_0x52fc33[_0x3355('0x90')],this[_0x3355('0x11d')]=new Map(),this[_0x3355('0x141')]=new Map(),this[_0x3355('0x12c')]();}['buildSuggestion'](_0xa5087,_0x3b94aa,_0xbdc920,_0x1af579,_0x44b1ac,_0xb80467){return new _0x46901b(this[_0x3355('0xbd')],{'type':_0xa5087,'subType':_0x3b94aa,'id':_0xbdc920,'author':_0x1af579,'creator':_0x1af579,'attributes':_0x44b1ac,'onAttributesChange':_0xb80467,'onAccept':(..._0x548160)=>this[_0x3355('0x13a')](_0xa5087,_0x3b94aa,_0x3355('0xd1'))(..._0x548160),'onDiscard':(..._0x1e49e7)=>this[_0x3355('0x13a')](_0xa5087,_0x3b94aa,'discard')(..._0x1e49e7)});}[_0x3355('0x19')](_0x5b25b9,_0x572103,_0x58d44a,_0x5b45c3){const _0x86aa94=_0x5b25b9+':'+_0x572103+':'+_0x58d44a;this[_0x3355('0x11d')][_0x3355('0x73')](_0x86aa94,_0x5b45c3);}['getSuggestionCallback'](_0x1c3493,_0x2a1000,_0x457267){const _0x14be3f=_0x1c3493+':'+_0x2a1000+':'+_0x457267;return this[_0x3355('0x11d')]['get'](_0x14be3f)||this[_0x3355('0x141')][_0x3355('0xb5')](_0x1c3493+':'+_0x457267);}[_0x3355('0x12c')](){const _0x5b84d5=()=>!0x1,_0x3087a3=_0x3b5bc7=>{_0x3b5bc7[_0x3355('0x17')]((_0x3284b2,_0x28d503)=>_0x3284b2[_0x3355('0x145')][_0x3355('0xa5')](_0x28d503[_0x3355('0x145')])?0x1:-0x1),this['_model'][_0x3355('0x109')](_0xf36436=>{for(const _0x5def1d of _0x3b5bc7){let _0x1dc730;_0x1dc730=_0x5def1d[_0x3355('0xf7')]['isAtEnd']&&_0x5def1d[_0x3355('0xf7')][_0x3355('0x7c')]==_0x5def1d[_0x3355('0x145')][_0x3355('0xa1')]?_0xf36436[_0x3355('0x11')](_0x5def1d[_0x3355('0x145')]['nodeAfter'],'on'):_0xf36436[_0x3355('0x11')](_0x5def1d),this[_0x3355('0xbd')][_0x3355('0x107')](_0x1dc730,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c4166=(_0xd2195a,_0x1bbb5f)=>{this['_model']['change'](_0x34461b=>{const {commandName:_0x52648c,commandParams:_0x4e8780=[]}=_0x1bbb5f,_0x62bdf8=_0xd2195a[_0x3355('0x4')](_0x5cad61=>(Mt(_0x5cad61)&&(_0x5cad61=this[_0x3355('0xbd')][_0x3355('0xae')](_0x5cad61[_0x3355('0xf7')])),_0x5cad61))[_0x3355('0x13e')](_0x265077=>_0x3355('0xed')!==_0x265077[_0x3355('0x100')]['rootName']);if(_0x62bdf8[_0x3355('0x140')]<0x1)return;const _0x3f1921=Array[_0x3355('0x1c')](this[_0x3355('0xbd')][_0x3355('0xd')][_0x3355('0x2a')][_0x3355('0xef')]())[_0x3355('0x4')](_0x6a1b51=>_0x3bb391[_0x3355('0x121')](_0x6a1b51));_0x34461b['setSelection'](_0x62bdf8);for(const _0x82ddc8 of this[_0x3355('0x39')]['commands'][_0x3355('0x43')]())_0x82ddc8[_0x3355('0xe3')]();_0x4e8780[_0x3355('0x6b')]({'forceDefaultExecution':!0x0}),this[_0x3355('0x39')]['execute'](_0x52648c,..._0x4e8780);const _0x5e60a5=_0x3f1921[_0x3355('0x13e')](_0x617efc=>_0x3355('0xed')!=_0x617efc[_0x3355('0x100')][_0x3355('0x36')]);_0x5e60a5[_0x3355('0x140')]>0x0&&_0x34461b[_0x3355('0x84')](_0x5e60a5);for(const _0x101f38 of _0x3f1921)_0x101f38[_0x3355('0xe1')]();});},_0x2cc2ba=(_0x287c27,_0x5dfdeb)=>0x1==_0x287c27[_0x3355('0x140')]&&0x1==_0x5dfdeb[_0x3355('0x140')]&&_0x287c27[0x0]['end']['isEqual'](_0x5dfdeb[0x0][_0x3355('0x145')]),_0x474dd1=(_0x8497ae,_0x753803,_0x537b2f,_0x63e87e)=>xt(_0x8497ae,_0x753803,_0x537b2f,_0x63e87e,this[_0x3355('0xbd')])?[_0x8497ae,_0x753803]:xt(_0x753803,_0x8497ae,_0x63e87e,_0x537b2f,this[_0x3355('0xbd')])?[_0x753803,_0x8497ae]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5b84d5),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x64'),_0x3087a3),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x122'),_0x2cc2ba),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x12f'),_0x474dd1),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x11e'),_0x3087a3),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x13d'),_0x5b84d5),this['_defaultCallbacks']['set'](_0x3355('0xb1'),_0x2cc2ba),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x15'),_0x474dd1),this[_0x3355('0x141')][_0x3355('0x73')]('formatInline:accept',_0x2c4166),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0xdd'),_0x5b84d5),this[_0x3355('0x141')]['set'](_0x3355('0xc3'),_0x2cc2ba),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x55'),_0x5b84d5),this['_defaultCallbacks'][_0x3355('0x73')](_0x3355('0x3c'),_0x2c4166),this[_0x3355('0x141')][_0x3355('0x73')]('formatBlock:discard',_0x5b84d5),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x6c'),_0x2cc2ba),this['_defaultCallbacks'][_0x3355('0x73')](_0x3355('0x130'),_0x5b84d5);}}function _t(_0x1eaf07,_0x3bea6c,_0x250bbf){for(const _0x4136a4 of _0x3bea6c[_0x3355('0x7c')][_0x3355('0x126')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4136a4[_0x3355('0x100')]==_0x4136a4)return!0x1;if(!_0x250bbf[_0x3355('0x113')](_0x4136a4))return!0x1;if(_0x1eaf07[_0x3355('0xbb')](_0x4136a4)||_0x1eaf07['isLimit'](_0x4136a4))return!0x0;}return!0x1;}function Mt(_0x2b2f5f){return _0x2b2f5f['end'][_0x3355('0x7c')]==_0x2b2f5f[_0x3355('0x145')]['nodeAfter']&&_0x2b2f5f['end']['isAtStart'];}function $t(_0x2c923d,_0x522f62,_0x24d780,_0x1d3237){const _0x342304=_0x4ae348=>!_0x4ae348['item']['is'](_0x3355('0x9e'))&&!_0x1d3237[_0x3355('0xbb')](_0x4ae348['item']),_0x52ca66=_0x2c923d[_0x3355('0x145')][_0x3355('0x3b')](_0x342304),_0x1c402e=_0x2c923d[_0x3355('0xf7')][_0x3355('0x3b')](_0x342304,{'direction':_0x3355('0x13')});return(!_0x2c923d[_0x3355('0x145')]['isEqual'](_0x52ca66)||!_0x2c923d[_0x3355('0xf7')][_0x3355('0xa0')](_0x1c402e))&&(_0x52ca66[_0x3355('0xa5')](_0x1c402e)?_0x24d780[_0x3355('0x11b')](_0x522f62,{'range':_0x24d780[_0x3355('0xae')](_0x52ca66,_0x1c402e)}):_0x24d780[_0x3355('0xe7')](_0x522f62),!0x0);}function Nt(_0x1d3dfe){return _0x2967d9(_0x1d3dfe);}function Rt(_0x259f67){const _0x5da79c=_0x259f67[_0x3355('0x145')][_0x3355('0xa1')];return _0x5da79c&&_0x5da79c['is']('element');}function jt(_0x4b3600,_0x4481a4){const _0x4cef5e=_0x4481a4[_0x3355('0x88')][_0x3355('0xbb')](_0x4b3600)||_0x4481a4[_0x3355('0x88')][_0x3355('0x22')](_0x4b3600);return _0x4481a4[_0x3355('0xae')](_0x4481a4[_0x3355('0x99')](_0x4b3600,_0x3355('0xbc')),_0x4cef5e?_0x4481a4['createPositionAfter'](_0x4b3600):_0x4481a4[_0x3355('0x99')](_0x4b3600,_0x3355('0xf7')));}function xt(_0x533208,_0x23009d,_0x525277,_0x521f0a,_0xd97bbf){if(!Ut(_0x533208,_0x23009d))return!0x1;if(_0x525277[_0x3355('0xf7')]['isEqual'](_0x521f0a[_0x3355('0x145')]))return!0x0;if(_0x533208[_0x3355('0x134')]!=_0x23009d[_0x3355('0x134')])return!0x1;if(!_0x525277['end'][_0x3355('0x144')](_0x521f0a[_0x3355('0x145')]))return!0x1;const _0x110f2e=_0xd97bbf[_0x3355('0xae')](_0x525277['end'],_0x521f0a[_0x3355('0x145')])[_0x3355('0x20')]();for(const _0x3fbd93 of _0x110f2e)if([_0x3355('0xff'),_0x3355('0x1e')][_0x3355('0x35')](_0x3fbd93[_0x3355('0x134')])&&_0xd97bbf[_0x3355('0x88')][_0x3355('0xf2')](_0x3fbd93[_0x3355('0x10b')]))return!0x1;return!0x0;}function Ut(_0x29e9fa,_0x1fae66){return!(!_0x29e9fa[_0x3355('0x110')]||!_0x1fae66['_isDataLoaded'])&&_0x19e7de(_0x29e9fa['attributes'],_0x1fae66[_0x3355('0x42')]);}function Ot(_0x21c7f0,_0x4dd584){const _0x362c17=Et(_0x21c7f0[_0x3355('0x42')]),_0x174415=Et(_0x4dd584);if(!_0x21c7f0[_0x3355('0x110')])return!0x1;for(const _0x32121e of Object[_0x3355('0xee')](_0x174415))if(!_0x19e7de(_0x362c17[_0x32121e],_0x174415[_0x32121e]))return!0x1;return!0x0;}function Et(_0x43bef2){const _0x5aad85=Object[_0x3355('0x91')]({},_0x43bef2);return delete _0x5aad85['skipNestingCheck'],delete _0x5aad85[_0x3355('0x58')],_0x5aad85;}
|