@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230831.0 → 0.0.0-nightly-20230901.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-20230901.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-20230901.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230901.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 _0x2983=['data','isExternal','head','createPositionAt','never','_joinSuggestions','isOwn','sort','containsRangeInObject','createdAt','rootName','pluginName','size','addSuggestionData','change:data','catch','oldRange','deletion:','consume','requires','trackChanges.trackFormatChanges','accepted','_commentsRepository','dataDowncast','writer','formatInline:chain','$marker','ready','isIntersectingWithRange','insertion:discard','editingDowncast','_setSuggestionData','push','always','editing','fetchCommentThread','addSuggestion','suggestion:','_mergeNestedSuggestions','_updateSuggestionData','getCommentThread','markerReady','getSuggestions','move','_isDataLoaded','update:suggestion','hasComments','_getExternalAuthor','_cutOutSuggestionMarker','highest','plugins','delete','removed','length','track-changes-adapter-missing-getsuggestion','isUndo','stopListening','formatBlock:discard','markerToHighlight','updateSuggestion','set','containsRange','ck-suggestion-marker-formatBlock','_saved','accept','commentThread','track-changes-user-not-found','fromRange','_joinWithAdjacentSuggestions','isBlock','has','suggestionLoaded','value','insertion','differ','ck-suggestion-marker-','isEqual','_onDiscard','CommentsRepository','createPositionAfter','createPositionBefore','formatInline:join','getNearestSelectionRange','suggestion-type','deletion:join','change:_saved','options','suggestion','createRangeIn','consumable','addMarker:suggestion:formatBlock','isNextTo','isCollapsed','dataReady','get','mapper','type','forward','_getAuthorFromId','then','discardSuggestion','for','formatBlock:accept','open','from','assign','hasSuggestion','bindElementToMarker','author','forceDefaultExecution','addMarkerName','root','insert','markMultiRangeDeletion','getMarkers','markInsertion','deletion:accept','_defaultCallbacks','targetPosition','some','setSelection','nodeAfter','schema','addMarker','isRemovable','getLastMatchingPosition','listenTo','acceptAllSuggestions','values','getIntersection','elementStart','newRange','track-changes-adapter-already-set','getShiftedBy','locale','formatInline:accept','markInlineFormat','subType','getSuggestionCallback','suggestionChanged','_removeSuggestion','buildSuggestion','isObject','addUser','includes','@external','isInContent','collaboration.channelId','removeMarkers','track-changes-suggestion-not-found','editor','getChanges','removeComment','_suggestionState','filter','stop','previous','isAtStart','batch','external:','PENDING_ACTION_SUGGESTION','getCustomProperty','formatGroupId','toViewElement','keys','$graveyard','lowest','element','getFirstRange','_handleNewSuggestionMarker','name','addComment','removeMarker:suggestion:formatBlock','_trackFormatChanges','next','authoredAt','originalSuggestionId','attributes','containsItem','markerNameToElements','widget','clone','moveTargetPosition','default','resolve','_setSuggestionRange','trackChanges','isInsideObject','isLocal','_isForcedDefaultExecutionBlock','model','track-changes-suggestion-data-mismatch','execute','creator','getFirstMarker','_addSuggestionMarker','discard','_getSuggestionData','addRange','backward','upcast','add','remove','deletion','fire','getRanges','_rangeIsInLocalUserInsertion','multipleBlocks','item','formatBlock:join','getSuggestion','getDifference','detach','authorName','activeMarkers','end','change:activeMarkers','data-suggestion','_suggestionFactory','formatBlock','_customCallbacks','isAfter','multi','suggestionUnloaded','map','_model','updateMarker','parent','_enabledCommands','ck-suggestion-marker--active','getUser','_editor','split','before','markers','documentSelection','high','formatInline','splice','isMultiRange','conversion','getMultiRangeId','trackChangesCommand','_refreshSuggestionsChain','formatInline:discard','getAttribute','_breakSuggestionMarker','addHighlight','init','unbind','isBefore','TrackChangesEditing','markMultiRangeInsertion','rejected','insertion:','showSuggestionHighlights','_adapter','containsPosition','discardAllSuggestions','deletion:chain','low','createRange','getRange','splitPosition','hasCommentThread','registerPostFixer','_createSuggestion','isLimit','$textProxy','enableCommand','markerName','enableReadOnlyMode','unbindElementFromMarkerName','PendingActions','_addThreadToSuggestion','formatBlock:chain','Users','document','start','addClass','ck-suggestion-marker','skipNestingCheck','substr','refresh','insertContent','createSelection','_suggestions','notReady','howMany','nodeBefore','getAllAdjacentSuggestions','acceptSuggestion','join','removeAttribute','_splitMarkerName','_registerDefaultCallbacks','acceptSelectedSuggestions','marker-count','commandName','containerElement','_findSuggestions','markDeletion','range','change','insertion:join','trackChanges.mergeNestedSuggestions','chain','dataToMarker','config','createElement','_checkSuggestionCorrectness','position','every','commands','getChangedMarkers','addMarker:suggestion'];(function(_0x32f40c,_0x2983aa){const _0x3f7800=function(_0x4840ee){while(--_0x4840ee){_0x32f40c['push'](_0x32f40c['shift']());}};_0x3f7800(++_0x2983aa);}(_0x2983,0x13a));const _0x3f78=function(_0x32f40c,_0x2983aa){_0x32f40c=_0x32f40c-0x0;let _0x3f7800=_0x2983[_0x32f40c];return _0x3f7800;};import{Plugin as _0x5d2f4f,PendingActions as _0x2320a5}from'ckeditor5/src/core';import{LiveRange as _0x4b8f82}from'ckeditor5/src/engine';import{CKEditorError as _0x400b29,uid as _0x418993,priorities as _0x372a5a,logWarning as _0x46fa9c}from'ckeditor5/src/utils';import{toWidget as _0x3228a9}from'ckeditor5/src/widget';import{Users as _0x11ba72,hashObject as _0x3abb0f}from'ckeditor5-collaboration/src/collaboration-core';import _0x22766f from'./commands/trackchangescommand';import _0x14c77f from'./commands/acceptsuggestioncommand';import _0x522ba1 from'./commands/discardsuggestioncommand';import _0x5f4998 from'./commands/executeonallsuggestionscommand';import _0x1686f1 from'./commands/executeonselectedsuggestionscommand';import _0x49aee1 from'./suggestion';import _0x52f1c8 from'./suggestiondescriptionfactory';import _0x24ae3c from'./integrations/alignment';import _0x2625f9 from'./integrations/basicstyles';import _0x2b6359 from'./integrations/blockquote';import _0x598ab2 from'./integrations/ckbox';import _0x3e7f4c from'./integrations/codeblock';import _0x1494f2 from'./integrations/comments';import _0x421aaf from'./integrations/deletecommand';import _0xf0e564 from'./integrations/documentlist';import _0x3d35c6 from'./integrations/entercommand';import _0x3532db from'./integrations/findandreplace';import _0x4d2acc from'./integrations/font';import _0x3e7b86 from'./integrations/formatpainter';import _0x3a9734 from'./integrations/heading';import _0x103cee from'./integrations/highlight';import _0x40a8bb from'./integrations/horizontalline';import _0x515eac from'./integrations/htmlembed';import _0x828745 from'./integrations/image';import _0x147183 from'./integrations/imagereplace';import _0x5a0945 from'./integrations/importword';import _0x41316e from'./integrations/indent';import _0x3ab921 from'./integrations/inputcommand';import _0x9242aa from'./integrations/link';import _0x1f3be7 from'./integrations/list';import _0xd287f2 from'./integrations/listproperties';import _0x1b9a09 from'./integrations/mediaembed';import _0x5478b3 from'./integrations/mention';import _0x49a53c from'./integrations/pagebreak';import _0x4048f4 from'./integrations/paragraph';import _0x5432b5 from'./integrations/removeformat';import _0x9e98f3 from'./integrations/restrictededitingmode';import _0x29c26f from'./integrations/shiftentercommand';import _0x3ee5d9 from'./integrations/standardeditingmode';import _0xb84f99 from'./integrations/style';import _0x4c22a3 from'./integrations/table';import _0x2c5488 from'./integrations/tablemergesplit';import _0x53b72d from'./integrations/tableheadings';import _0x48a740 from'./integrations/tableclipboard';import _0x1274a3 from'./integrations/tablecolumnresize';import _0x5756fb from'./integrations/template';import _0x37faca from'./integrations/tableofcontents';import _0x4a416c from'./integrations/title';import _0x56f780 from'./integrations/undo';import{getTranslation as _0x304cd0}from'./utils/common-translations';import _0x4d9eda from'./integrations/tablecaption';import _0x548624 from'./integrations/documentlistproperties';import _0x4fcfbc from'./integrations/tableproperties';import{isEqual as _0x4b2408}from'lodash-es';export default class p extends _0x5d2f4f{static get[_0x3f78('0x15')](){return[_0x3f78('0x50'),_0x11ba72,_0x2320a5,_0x24ae3c,_0x2625f9,_0x2b6359,_0x598ab2,_0x3e7f4c,_0x1494f2,_0x421aaf,_0xf0e564,_0x548624,_0x3d35c6,_0x3532db,_0x4d2acc,_0x3e7b86,_0x3a9734,_0x103cee,_0x40a8bb,_0x515eac,_0x828745,_0x147183,_0x5a0945,_0x41316e,_0x3ab921,_0x9242aa,_0x1f3be7,_0xd287f2,_0x1b9a09,_0x5478b3,_0x49a53c,_0x4048f4,_0x5432b5,_0x9e98f3,_0x29c26f,_0x3ee5d9,_0xb84f99,_0x4c22a3,_0x2c5488,_0x53b72d,_0x4d9eda,_0x48a740,_0x1274a3,_0x37faca,_0x4fcfbc,_0x5756fb,_0x4a416c,_0x56f780];}static get[_0x3f78('0xd')](){return _0x3f78('0xfd');}constructor(_0x76f12b){function _0xec8596(_0x28c917){return _0x28c917[_0x3f78('0xe2')](_0x4c4647=>String['fromCharCode'](_0x4c4647))[_0x3f78('0x126')]('');}super(_0x76f12b),this[_0x3f78('0x3e')](_0x3f78('0xd8'),[]),this['on'](_0x3f78('0xda'),(_0x1026aa,_0x476d56,_0x2a3a02,_0x3b6e37)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](()=>{for(const _0x43c157 of[..._0x3b6e37,..._0x2a3a02])this[_0x3f78('0xe3')]['markers']['has'](_0x43c157)&&_0x76f12b[_0x3f78('0x24')]['reconvertMarker'](_0x43c157);});}),this['_descriptionFactory']=new _0x52f1c8(this[_0x3f78('0x98')][_0x3f78('0xc0')][_0x3f78('0x7c')],this[_0x3f78('0x98')][_0x3f78('0x88')]),this[_0x3f78('0x102')]=null,this[_0x3f78('0xdc')]=new Dt(this[_0x3f78('0x98')]),this[_0x3f78('0x120')]=new Map(),this[_0x3f78('0x18')]=_0x76f12b[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50')),this[_0x3f78('0xe6')]=new Set(),this['_model']=this[_0x3f78('0x98')][_0x3f78('0xc0')],this[_0x3f78('0x9b')]=new WeakMap(),this[_0x3f78('0xbf')]=!0x1,_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x16'),_0x3f78('0xb9')),this[_0x3f78('0xaf')]=_0x76f12b[_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x16')),_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x133'),!0x0),this[_0x3f78('0x28')]=_0x76f12b['config'][_0x3f78('0x60')](_0x3f78('0x133')),this[_0x3f78('0xf4')]=new _0x22766f(_0x76f12b,this['_enabledCommands']),this[_0xec8596([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xec8596([0x34,0x30,0x34,0x36,0x31,0x36,0x36,0x32]);}[_0x3f78('0xfa')](){const _0x48add5=this[_0x3f78('0x98')];_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))['markerToHighlight']({'model':_0x3f78('0x59'),'view':_0x1998e0=>{const {id:_0x54f821,type:_0x2009c0}=this[_0x3f78('0x128')](_0x1998e0[_0x3f78('0x110')]),_0x2f929a=[_0x3f78('0x11a'),_0x3f78('0x4d')+_0x2009c0];let _0x26093a=0xbb8;return this[_0x3f78('0xd8')]['includes'](_0x1998e0['markerName'])&&(_0x2f929a[_0x3f78('0x22')](_0x3f78('0xe7')),_0x26093a=0xbc2),_0x3f78('0xcd')==_0x2009c0&&(_0x26093a+=0x5),{'classes':_0x2f929a,'attributes':{'data-suggestion':_0x54f821},'priority':_0x26093a};}}),_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))['add'](_0x8a9f9f=>{_0x8a9f9f['on'](_0x3f78('0x1'),(_0x3be6c1,_0x2c1463,_0x5cd680)=>{if(!_0x5cd680['options'][_0x3f78('0x101')])return;const _0x195611=_0x2c1463['item'];if(!_0x195611)return;const _0xdab9ed=_0x5cd680[_0x3f78('0x61')][_0x3f78('0xa5')](_0x195611);_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')][_0x3f78('0x90')](_0x195611)&&_0xdab9ed&&!_0xdab9ed[_0x3f78('0xa3')](_0x3f78('0xb6'))&&_0xdab9ed['is'](_0x3f78('0x12d'))&&_0x3228a9(_0xdab9ed,_0x5cd680['writer']);},{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('dataDowncast')[_0x3f78('0x3c')]({'model':_0x3f78('0x59'),'view':(_0x152f69,_0xbf5be8)=>{if(!_0xbf5be8[_0x3f78('0x58')][_0x3f78('0x101')])return null;const {type:_0x53a5d7}=this[_0x3f78('0x128')](_0x152f69['markerName']);return{'classes':[_0x3f78('0x11a'),'ck-suggestion-marker-'+_0x53a5d7],'priority':0xbb8};}});const _0x151bc8=({showActiveMarkers:_0x442768=!0x0}={})=>(_0x1871b2,_0x1f49fb,_0x368a8f)=>{if(!_0x1f49fb[_0x3f78('0xd2')])return;if(_0x1f49fb['item']['is']('selection'))return void _0x368a8f['consumable']['consume'](_0x1f49fb['item'],_0x1871b2[_0x3f78('0xac')]);const _0x1a6d20=_0x368a8f[_0x3f78('0x61')][_0x3f78('0xa5')](_0x1f49fb[_0x3f78('0xd2')]);if(!(_0x1f49fb[_0x3f78('0xd2')]['is']('element')&&_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['isBlock'](_0x1f49fb['item'])&&!_0x1a6d20[_0x3f78('0xa3')](_0x3f78('0xf9'))))return;const {id:_0x3aff99}=this[_0x3f78('0x128')](_0x1f49fb['markerName']);_0x368a8f['writer'][_0x3f78('0x119')](['ck-suggestion-marker',_0x3f78('0x40')],_0x1a6d20),_0x368a8f[_0x3f78('0x1a')]['setAttribute'](_0x3f78('0xdb'),_0x3aff99,_0x1a6d20),_0x368a8f[_0x3f78('0x61')][_0x3f78('0x6d')](_0x1a6d20,_0x1f49fb[_0x3f78('0x110')]),_0x442768&&(this[_0x3f78('0xd8')][_0x3f78('0x92')](_0x1f49fb['markerName'])?_0x368a8f[_0x3f78('0x1a')][_0x3f78('0x119')](_0x3f78('0xe7'),_0x1a6d20):_0x368a8f[_0x3f78('0x1a')]['removeClass']('ck-suggestion-marker--active',_0x1a6d20));for(const _0x507db5 of _0x48add5[_0x3f78('0xc0')][_0x3f78('0x5a')](_0x1f49fb['item'])['getItems']())_0x368a8f[_0x3f78('0x5b')][_0x3f78('0x14')](_0x507db5,_0x1871b2[_0x3f78('0xac')]);_0x368a8f[_0x3f78('0x5b')]['consume'](_0x1f49fb[_0x3f78('0xd2')],_0x1871b2[_0x3f78('0xac')]);};_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))[_0x3f78('0xcb')](_0x24ef8d=>{_0x24ef8d['on'](_0x3f78('0x5c'),(_0x5f3a89,_0x174cf8,_0x39087f)=>{_0x39087f[_0x3f78('0x58')][_0x3f78('0x101')]&&_0x151bc8({'showActiveMarkers':!0x1})(_0x5f3a89,_0x174cf8,_0x39087f);},{'priority':_0x3f78('0x33')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x19'))['markerToData']({'model':'suggestion','view':(_0x2f01ff,_0x4043a7)=>_0x4043a7[_0x3f78('0x58')][_0x3f78('0x101')]?null:{'group':'suggestion','name':_0x2f01ff[_0x3f78('0x11c')](0xb)}}),_0x48add5[_0x3f78('0xf2')]['for'](_0x3f78('0xca'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xeec12e,{writer:_0x165ae3})=>{let _0x193666=_0x3f78('0x27')+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x55'))+':'+_0xeec12e[_0x3f78('0xf7')]('id');return _0xeec12e[_0x3f78('0xf7')]('marker-count')&&(_0x193666+=':'+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x12b'))),_0x165ae3[_0x3f78('0x137')](_0x3f78('0x1c'),{'data-name':_0x193666});}}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0xca'))[_0x3f78('0x135')]({'view':'suggestion'}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))[_0x3f78('0xcb')](_0x354c46=>{_0x354c46['on']('addMarker:suggestion:formatBlock',_0x151bc8(),{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('editingDowncast')[_0x3f78('0xcb')](_0x4192a1=>{_0x4192a1['on'](_0x3f78('0xae'),(_0x3781de,_0x101623,_0x53cff0)=>{const _0x4a9a34=_0x53cff0['mapper'][_0x3f78('0xb5')](_0x101623[_0x3f78('0x110')]);if(_0x4a9a34)for(const _0x5e12e3 of _0x4a9a34)_0x5e12e3['getCustomProperty'](_0x3f78('0xf9'))||(_0x53cff0[_0x3f78('0x1a')]['removeClass']([_0x3f78('0x11a'),_0x3f78('0x40'),'ck-suggestion-marker--active'],_0x5e12e3),_0x53cff0[_0x3f78('0x1a')][_0x3f78('0x127')](_0x3f78('0xdb'),_0x5e12e3),_0x53cff0[_0x3f78('0x61')][_0x3f78('0x112')](_0x5e12e3,_0x101623[_0x3f78('0x110')]));},{'priority':_0x3f78('0xee')});}),_0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x10b')](_0x3887b8=>{let _0x3d0968=!0x1;const _0x3fd563=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')]['document']['differ'][_0x3f78('0x0')]()),_0xabe217=new Set();for(const {name:_0x4a5222,data:_0x33fcff}of _0x3fd563){const {group:_0xf1e615,type:_0x3ad08a,id:_0x464253}=this['_splitMarkerName'](_0x4a5222);if(_0x3f78('0x59')!==_0xf1e615)continue;const _0x34f53f=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x464253);if(null!=_0x33fcff[_0x3f78('0x85')]){_0x3f78('0xef')==_0x3ad08a&&(_0x3d0968=_0x3d0968||Mt(_0x33fcff[_0x3f78('0x85')],_0x4a5222,_0x3887b8,_0x48add5[_0x3f78('0xc0')]['schema']));if(_0x33fcff[_0x3f78('0x85')]['isCollapsed']||'$graveyard'==_0x33fcff[_0x3f78('0x85')]['root']['rootName']||'formatBlock'==_0x3ad08a&&!Nt(_0x33fcff[_0x3f78('0x85')])||_0x3f78('0xcd')==_0x3ad08a&&!(!_t(_0xf96b01=_0x33fcff[_0x3f78('0x85')])&&!function(_0x3023ad){return _0x3023ad[_0x3f78('0x118')][_0x3f78('0xe5')]==_0x3023ad[_0x3f78('0xd9')][_0x3f78('0x123')]&&_0x3023ad[_0x3f78('0x118')]['isAtEnd'];}(_0xf96b01)))_0x3887b8['removeMarker'](_0x4a5222),_0x3d0968=!0x0;else{if(!_0x34f53f||!_0x34f53f[_0x3f78('0x94')])continue;_0xabe217[_0x3f78('0xcb')](_0x34f53f);}}}var _0xf96b01;return _0xabe217[_0x3f78('0xe')]>0x0&&(_0x3d0968=!!this[_0x3f78('0x46')](_0xabe217)||_0x3d0968),_0x3d0968;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')][_0x3f78('0x10b')](_0xb4e143=>{let _0x49b52c=!0x1;for(const _0x5d1fcf of _0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x4c')][_0x3f78('0x99')]()){if(_0x3f78('0x72')!=_0x5d1fcf[_0x3f78('0x62')])continue;const _0x288495=_0x5d1fcf[_0x3f78('0x139')]['getShiftedBy'](_0x5d1fcf[_0x3f78('0x37')]);if(_0x288495['isAtEnd'])for(const _0x23d958 of this['_suggestions'][_0x3f78('0x82')]()){if(_0x23d958[_0x3f78('0xf1')]||!_0x23d958[_0x3f78('0x94')])continue;if(_0x3f78('0xdd')!=_0x23d958['type'])continue;const _0x1fe70d=_0x23d958[_0x3f78('0xaa')]();if(_0x1fe70d[_0x3f78('0x118')][_0x3f78('0xe5')]!=_0x1fe70d[_0x3f78('0xd9')][_0x3f78('0xe5')]&&_0x1fe70d['end'][_0x3f78('0x4e')](_0x5d1fcf['position'])){const _0x4cf601=_0x48add5['model'][_0x3f78('0x107')](_0x1fe70d[_0x3f78('0x118')],_0x288495);_0xb4e143[_0x3f78('0xe4')](_0x23d958[_0x3f78('0xc4')](),{'range':_0x4cf601}),_0x49b52c=!0x0;}}}return _0x49b52c;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0xec')]['on'](_0x3f78('0x2f'),(_0x20ba08,_0x18bb10,_0x112382)=>{if(null==_0x112382){const {id:_0x1a7ea7}=this['_splitMarkerName'](_0x18bb10['name']),_0x933994=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x1a7ea7);_0x933994&&_0x933994[_0x3f78('0x70')](_0x18bb10[_0x3f78('0xac')]);}}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['on'](_0x3f78('0x10'),()=>{const _0x482723=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['differ'][_0x3f78('0x0')]())[_0x3f78('0x9c')](_0x487135=>_0x3f78('0x59')===this[_0x3f78('0x128')](_0x487135['name'])['group']);if(0x0===_0x482723['length'])return;_0x482723[_0x3f78('0x9')]((_0xdc5519,_0x53a4de)=>{const _0x1f8099=_0xdc5519[_0x3f78('0x2')][_0x3f78('0x12')],_0xd21b26=_0x53a4de['data']['oldRange'];return null===_0x1f8099&&null===_0xd21b26?0x0:null===_0x1f8099&&null!==_0xd21b26?-0x1:null!==_0x1f8099&&null===_0xd21b26?0x1:_0x1f8099[_0x3f78('0x118')]['isBefore'](_0xd21b26[_0x3f78('0x118')])?-0x1:0x1;});const _0x3230df=new Set(),_0x3e6be8=new Set();for(const {name:_0x3de78c,data:_0x134078}of _0x482723){const {id:_0x4f67e6}=this[_0x3f78('0x128')](_0x3de78c);if(null===_0x134078[_0x3f78('0x12')]){const _0x4e4923=this[_0x3f78('0xab')](_0x3de78c);_0x3e6be8[_0x3f78('0xcb')](_0x4e4923);}else{const _0x22306b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x4f67e6);null!==_0x134078[_0x3f78('0x85')]||_0x22306b[_0x3f78('0x94')]?(_0x3230df[_0x3f78('0xcb')](_0x22306b[_0x3f78('0x4')]),_0x3e6be8[_0x3f78('0xcb')](_0x22306b)):this[_0x3f78('0x8e')](_0x22306b);}}_0x3e6be8[_0x3f78('0xe')]>0x0&&this[_0x3f78('0xf5')](_0x3e6be8);for(const _0x1c69d7 of _0x3230df)this['fire']('suggestionChanged',_0x1c69d7);}),_0x48add5['model']['on']('applyOperation',(_0xa37e2e,_0x2f6e36)=>{const _0xb58e36=_0x2f6e36[0x0];if(!this[_0x3f78('0x120')][_0x3f78('0xe')])return;if(!_0xb58e36['isDocumentOperation'])return;if(_0xb58e36[_0x3f78('0xa0')][_0x3f78('0x39')]||!_0xb58e36['batch'][_0x3f78('0xbe')])return;let _0x4f7b56,_0x5281c6;switch(_0xb58e36[_0x3f78('0x62')]){case'insert':_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x139')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36[_0x3f78('0x122')]);break;case _0x3f78('0xea'):_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x109')]),_0x5281c6=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0xb8')]);break;case _0x3f78('0x2d'):_0x4f7b56=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x78')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36['howMany']);break;default:return;}const _0x588a9e=_0x48add5['model'][_0x3f78('0x107')](_0x4f7b56,_0x5281c6);_0x48add5['model'][_0x3f78('0x131')](()=>{for(const {suggestion:_0x1f0762,meta:_0x6c07b7}of this[_0x3f78('0x12e')](_0x588a9e)){if(_0x1f0762[_0x3f78('0xf1')])continue;if(_0x3f78('0xef')==_0x1f0762[_0x3f78('0x62')])continue;const _0x2840e7=_0x1f0762[_0x3f78('0x2')]&&_0x1f0762[_0x3f78('0x2')][_0x3f78('0xd1')];(_0x3f78('0xdd')!=_0x1f0762['type']||_0x3f78('0xea')==_0xb58e36[_0x3f78('0x62')]&&!_0x2840e7)&&(_0x6c07b7[_0x3f78('0xa')]||_0x3f78('0x4b')==_0x1f0762[_0x3f78('0x62')]&&_0x6c07b7[_0x3f78('0x8')]||_0x1f0762[_0x3f78('0xaa')]()[_0x3f78('0x3f')](_0x588a9e)&&this['_breakSuggestionMarker'](_0x1f0762,_0x4f7b56,_0x5281c6));}});},{'priority':_0x3f78('0xa8')}),_0x48add5[_0x3f78('0xc0')]['on']('deleteContent',(_0x5a3f4b,_0x587955)=>{const _0x3e97b9=_0x587955[0x0],_0x3f7cae=_0x587955[0x1];if(_0x3f7cae&&_0x3f7cae[_0x3f78('0x6f')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3f78('0x4a')])return;if(_0x3e97b9[_0x3f78('0x5e')])return;const _0x4aa9f8=_0x48add5[_0x3f78('0xc0')]['schema'],{start:_0x428226,end:_0x52ac3e}=_0x3e97b9['getFirstRange'](),_0x5d1907=_0x428226[_0x3f78('0x7b')]&&_0x4aa9f8[_0x3f78('0x10d')](_0x428226[_0x3f78('0x7b')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x428226,_0x3f78('0x63')),_0x330d49=_0x52ac3e[_0x3f78('0x123')]&&_0x4aa9f8['isLimit'](_0x52ac3e[_0x3f78('0x123')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x52ac3e,_0x3f78('0xc9')),_0x40e439=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x107')](_0x5d1907?_0x5d1907['start']:_0x428226,_0x330d49?_0x330d49['end']:_0x52ac3e);_0x48add5[_0x3f78('0xc0')]['change'](_0x4e857d=>{this[_0x3f78('0x12f')](_0x40e439);const _0x335049=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['getNearestSelectionRange'](_0x40e439[_0x3f78('0x118')]);_0x3e97b9['is'](_0x3f78('0xed'))?_0x4e857d[_0x3f78('0x7a')](_0x335049):_0x3e97b9['setTo'](_0x335049);}),_0x5a3f4b[_0x3f78('0x9d')]();},{'priority':_0x372a5a['normal']+0xa}),_0x48add5[_0x3f78('0xc0')]['on'](_0x3f78('0x11e'),(_0x3c2084,_0x3e2ff5)=>{const _0x182567=_0x3e2ff5[_0x3e2ff5[_0x3f78('0x37')]-0x1];_0x182567&&_0x182567[_0x3f78('0x6f')]||this['_isForcedDefaultExecutionBlock']||this[_0x3f78('0xf4')][_0x3f78('0x4a')]&&(_0x48add5['model'][_0x3f78('0x131')](()=>{let _0x252b2a=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x11e')](_0x3e2ff5[0x0],_0x3e2ff5[0x1],_0x3e2ff5[0x2],{'forceDefaultExecution':!0x0});if(!_0x252b2a)return;_0x3c2084['return']=_0x252b2a[_0x3f78('0xb7')]();const _0x3b45d7=_0x252b2a[_0x3f78('0xd9')][_0x3f78('0x123')],_0x1dd888=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')];_0x3b45d7&&_0x1dd888[_0x3f78('0x47')](_0x3b45d7)&&!_0x1dd888[_0x3f78('0x90')](_0x3b45d7)&&(_0x252b2a=_0x48add5[_0x3f78('0xc0')]['createRange'](_0x252b2a[_0x3f78('0x118')],_0x48add5['model'][_0x3f78('0x5')](_0x3b45d7,_0x3f78('0xd9')))),this[_0x3f78('0x75')](_0x252b2a);}),_0x3c2084[_0x3f78('0x9d')]());},{'priority':'high'}),this['editor'][_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0xbc'),this[_0x3f78('0xf4')]),this[_0x3f78('0x10f')]('trackChanges');const _0x2a7225=new _0x14c77f(_0x48add5,this[_0x3f78('0x120')]);_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x125'),_0x2a7225),this[_0x3f78('0x10f')](_0x3f78('0x125'));const _0x3e1c08=new _0x522ba1(_0x48add5,this['_suggestions']);_0x48add5[_0x3f78('0x13b')]['add']('discardSuggestion',_0x3e1c08),this[_0x3f78('0x10f')]('discardSuggestion'),_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x81'),new _0x5f4998(_0x48add5,_0x2a7225,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')](_0x3f78('0x81')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x104'),new _0x5f4998(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this['enableCommand'](_0x3f78('0x104')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x12a'),new _0x1686f1(_0x48add5,_0x2a7225,this['_suggestions'])),this[_0x3f78('0x10f')]('acceptSelectedSuggestions'),_0x48add5[_0x3f78('0x13b')]['add']('discardSelectedSuggestions',new _0x1686f1(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')]('discardSelectedSuggestions');const _0x36c241=_0x48add5[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50'));this[_0x3f78('0x80')](_0x36c241,_0x3f78('0xad'),(_0x2f5e3a,{threadId:_0x3c72ad})=>{const _0x166037=this['_suggestions'][_0x3f78('0x60')](_0x3c72ad);_0x166037&&_0x166037[_0x3f78('0x43')]&&0x1===_0x166037[_0x3f78('0x43')]['length']&&this['_updateSuggestionData'](_0x3c72ad,{'hasComments':!0x0});},{'priority':_0x3f78('0x106')}),this[_0x3f78('0x80')](_0x36c241,_0x3f78('0x9a'),(_0x4ed059,{threadId:_0x2fc3dc})=>{const _0x243da3=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x2fc3dc);_0x243da3&&_0x243da3[_0x3f78('0x43')]&&!_0x243da3[_0x3f78('0x43')][_0x3f78('0x37')]&&this['_updateSuggestionData'](_0x2fc3dc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e0b47){if(this[_0x3f78('0x102')])throw new _0x400b29(_0x3f78('0x86'),this);this[_0x3f78('0x102')]=_0x5e0b47;}get['adapter'](){return this[_0x3f78('0x102')];}[_0x3f78('0x2c')]({skipNotAttached:_0x19a845=!0x1,toJSON:_0x547551=!0x1}={}){const _0x571e59=[];for(const _0xaba4ae of this[_0x3f78('0x120')][_0x3f78('0x82')]())_0x19a845&&!_0xaba4ae[_0x3f78('0x94')]||_0x571e59[_0x3f78('0x22')](_0xaba4ae);return _0x547551?_0x571e59['map'](_0x21cac1=>_0x21cac1['toJSON']()):_0x571e59;}[_0x3f78('0xd4')](_0x318bfc){const _0xa8e94=this['_suggestions'][_0x3f78('0x60')](_0x318bfc);if(!_0xa8e94)throw new _0x400b29(_0x3f78('0x97'),this);return _0xa8e94;}[_0x3f78('0x6c')](_0x1bbae5){return this[_0x3f78('0x120')][_0x3f78('0x48')](_0x1bbae5);}[_0x3f78('0xf')](_0x3efd7d){const {authorId:_0x1b0916,id:_0x3b3842,attributes:_0x452c52}=_0x3efd7d,[_0x1c16bb,_0x328ec8]=_0x3efd7d[_0x3f78('0x62')][_0x3f78('0xea')](':'),_0x575a0b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x3b3842)||this[_0x3f78('0x10c')](_0x1c16bb,_0x328ec8,_0x3b3842,_0x1b0916,_0x452c52);if(this[_0x3f78('0x114')](_0x575a0b),this[_0x3f78('0x138')](_0x575a0b,_0x1c16bb,_0x328ec8||null,_0x1b0916),_0x575a0b[_0x3f78('0xb')]=_0x3efd7d['createdAt'],_0x575a0b['_isDataLoaded']=!0x0,_0x452c52&&_0x452c52[_0x3f78('0x93')]){const _0x567cfd=_0x452c52[_0x3f78('0x93')],_0x31020b=this[_0x3f78('0x31')](_0x567cfd[_0x3f78('0xd7')]);_0x575a0b[_0x3f78('0xb1')]=_0x567cfd[_0x3f78('0xb')],_0x575a0b['author']=_0x31020b,_0x575a0b[_0x3f78('0x3')]=!0x0;}else _0x575a0b[_0x3f78('0xb1')]=_0x3efd7d[_0x3f78('0xb')];switch(_0x3efd7d[_0x3f78('0x2')]&&(_0x575a0b[_0x3f78('0x2')]=_0x3efd7d['data']),_0x3efd7d[_0x3f78('0xb3')]&&(_0x575a0b[_0x3f78('0xb3')]=_0x3efd7d[_0x3f78('0xb3')]),this[_0x3f78('0x102')]&&this[_0x3f78('0x102')][_0x3f78('0x26')]||(_0x575a0b[_0x3f78('0x41')]=!0x0),this['_suggestionState'][_0x3f78('0x60')](_0x575a0b)){case _0x3f78('0x121'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x5f'));break;case _0x3f78('0x2b'):_0x575a0b['isInContent']?(this[_0x3f78('0xf5')](new Set([_0x575a0b])),this['_joinWithAdjacentSuggestions'](new Set([_0x575a0b])),this['_suggestionState'][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x575a0b)):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x36'));}return _0x575a0b;}[_0x3f78('0x125')](_0x53b904){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x78636a of _0x53b904[_0x3f78('0x124')]())_0x78636a[_0x3f78('0x42')]();});});}[_0x3f78('0x66')](_0x54950f){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x5dc9a5 of _0x54950f[_0x3f78('0x124')]())_0x5dc9a5[_0x3f78('0xc6')]();});});}[_0x3f78('0x10f')](_0x3e086a,_0x5643f3){const _0x274fb6=this['editor'][_0x3f78('0x13b')][_0x3f78('0x60')](_0x3e086a);if(!_0x274fb6)throw new _0x400b29('track-changes-command-not-found',this,{'commandName':_0x3e086a});this[_0x3f78('0xe6')][_0x3f78('0xcb')](_0x274fb6),_0x5643f3&&_0x274fb6['on'](_0x3f78('0xc2'),(_0x296d78,_0x49dcdd)=>{this[_0x3f78('0xf4')]['value']&&(this[_0x3f78('0xbf')]||_0x49dcdd[_0x3f78('0x37')]>0x0&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1]&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1][_0x3f78('0x6f')]||(_0x5643f3((..._0x1930d5)=>_0x274fb6[_0x3f78('0xc2')](..._0x1930d5,{'forceDefaultExecution':!0x0}),..._0x49dcdd),_0x296d78[_0x3f78('0x9d')]()));},{'priority':_0x3f78('0xee')});}[_0x3f78('0x6f')](_0x1e9d89){let _0x111958,_0x2dd5d1;const _0x299e50=this[_0x3f78('0xbf')];this[_0x3f78('0xbf')]=!0x0;try{_0x111958=_0x1e9d89();}catch(_0x281ddf){_0x2dd5d1=_0x281ddf;}return _0x299e50||(this[_0x3f78('0xbf')]=!0x1),_0x2dd5d1&&_0x400b29['rethrowUnexpectedError'](_0x2dd5d1,this),_0x111958;}[_0x3f78('0x75')](_0x335542,_0x59d657=null,_0x581854={}){if(_0x335542[_0x3f78('0x5e')])return null;const _0x4d321b=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];for(const {suggestion:_0x422822,meta:_0x31fcee}of this['_findSuggestions'](_0x335542,_0x3f78('0x4b')))if(_0x31fcee[_0x3f78('0x8')]){if(!_0x31fcee['isNextTo']){if(_0x31fcee[_0x3f78('0xa')]){if(!this[_0x3f78('0x28')]||!Ut(_0x422822,_0x581854))continue;return _0x422822;}if(Ut(_0x422822,_0x581854))return _0x422822;this[_0x3f78('0xf8')](_0x422822,_0x335542[_0x3f78('0x118')],_0x335542['end']);break;}if(_0x59d657==_0x422822[_0x3f78('0x8b')]&&Ut(_0x422822,_0x581854)){const _0x3abe75=_0x422822[_0x3f78('0xaa')]();return _0x3abe75[_0x3f78('0x118')]['isEqual'](_0x335542[_0x3f78('0xd9')])?this[_0x3f78('0xbb')](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x335542[_0x3f78('0x118')],_0x3abe75['end'])):this['_setSuggestionRange'](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x3abe75['start'],_0x335542[_0x3f78('0xd9')])),_0x422822;}}const _0x1a80fe=_0x418993(),_0x5da009=_0x4d321b['id'],_0x2eb922=_0x59d657?_0x3f78('0x100')+_0x59d657:_0x3f78('0x4b'),_0x2d5a67=this[_0x3f78('0x21')]({'id':_0x1a80fe,'type':_0x2eb922,'createdAt':new Date(),'authorId':_0x5da009,'attributes':_0x581854});return this['_addSuggestionMarker'](_0x2eb922,_0x1a80fe,_0x5da009,_0x335542),_0x2d5a67;}[_0x3f78('0xfe')](_0x5d3302,_0x216a27=_0x3f78('0xe0'),_0x4c703c={}){const _0xe0905b=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x23b355=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0x4b'),_0x216a27,_0x3f78('0x126'));for(const _0x49a831 of this[_0x3f78('0x2c')]())if(_0x49a831['author']['id']==_0xe0905b['id']&&_0x3f78('0x4b')==_0x49a831[_0x3f78('0x62')]&&_0x49a831[_0x3f78('0x8b')]==_0x216a27&&Ut(_0x49a831,_0x4c703c)&&(_0x23b355(_0x49a831[_0x3f78('0xcf')](),_0x5d3302)||_0x23b355(_0x5d3302,_0x49a831[_0x3f78('0xcf')]()))){for(const _0x549fc2 of _0x5d3302)_0x49a831[_0x3f78('0xc8')](_0x549fc2);return _0x49a831;}for(const {suggestion:_0x460fe6,meta:_0x2a6f51}of this['_findSuggestions'](_0x5d3302,_0x3f78('0x4b'))){if(!_0x2a6f51[_0x3f78('0x8')])continue;if(!this[_0x3f78('0x28')]&&_0x2a6f51[_0x3f78('0xa')])continue;if(!Ut(_0x460fe6,_0x4c703c))continue;let _0x3aa11f=!0x0;for(const _0x2ca876 of _0x460fe6[_0x3f78('0xcf')]())for(const _0x5438ca of _0x5d3302)if(!_0x2ca876['containsRange'](_0x5438ca)){_0x3aa11f=!0x1;break;}if(_0x3aa11f)return _0x460fe6;}const _0xcc833a=_0x418993(),_0x412348=_0xe0905b['id'],_0x2a3b53=_0x3f78('0x100')+_0x216a27,_0x2d4d37=this[_0x3f78('0x21')]({'id':_0xcc833a,'type':_0x2a3b53,'createdAt':new Date(),'authorId':_0x412348,'attributes':_0x4c703c});for(const _0x100807 of _0x5d3302)this[_0x3f78('0xc5')](_0x2a3b53,_0xcc833a,_0x412348,_0x100807,_0x49aee1['getMultiRangeId']());return _0x2d4d37;}[_0x3f78('0x8a')](_0x4c3146,_0x363bd1,_0x4dd6c8=null,_0x2508fc={}){if(_0x4dd6c8=_0x4dd6c8||$t(_0x363bd1),_0x4c3146[_0x3f78('0x5e')])return null;if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x4f8977=this[_0x3f78('0xdc')]['getSuggestionCallback']('formatInline',_0x4dd6c8,'accept');return this[_0x3f78('0x6f')](()=>_0x4f8977([_0x4c3146],_0x363bd1,_0x2508fc)),null;}const _0x5713b4=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x43f808=[];if(_0x3f78('0x23')!==this[_0x3f78('0xaf')])for(const {suggestion:_0x12b3a3,meta:_0x509877}of this[_0x3f78('0x12e')](_0x4c3146,_0x3f78('0x4b')))_0x509877[_0x3f78('0x8')]&&!_0x509877[_0x3f78('0xbd')]&&_0x43f808['push'](..._0x12b3a3[_0x3f78('0xcf')]());const _0x1a0327=function(_0x429c7c,_0x10cde5){const _0xb03ec3=[];for(const _0x231a6d of _0x10cde5){const _0xc9c6d5=_0x429c7c[_0x3f78('0x83')](_0x231a6d);_0xc9c6d5&&_0xb03ec3[_0x3f78('0x22')](_0xc9c6d5);}return _0xb03ec3;}(_0x4c3146,_0x43f808),_0x1ed82f=function(_0x4353aa,_0x233fb5){const _0x42ce89=[_0x4353aa];for(const _0x2d8443 of _0x233fb5){let _0x49a476=0x0;for(;_0x49a476<_0x42ce89[_0x3f78('0x37')];){const _0x42e6d5=_0x42ce89[_0x49a476][_0x3f78('0xd5')](_0x2d8443);_0x42ce89[_0x3f78('0xf0')](_0x49a476,0x1,..._0x42e6d5),_0x49a476+=_0x42e6d5[_0x3f78('0x37')];}}return _0x42ce89;}(_0x4c3146,_0x43f808);_0x1a0327['length']&&this['_model'][_0x3f78('0x131')](()=>{for(const _0x13773f of _0x1a0327){const _0x3b6a6d=this['_suggestionFactory'][_0x3f78('0x8c')](_0x3f78('0xef'),_0x4dd6c8,'accept');this[_0x3f78('0x6f')](()=>_0x3b6a6d([_0x13773f],_0x363bd1,_0x2508fc));}});for(const _0x2c1f37 of _0x1ed82f){let _0x4cff7c=null,_0x4a09f2=_0x2c1f37[_0x3f78('0x118')],_0x46f7a2=_0x2c1f37[_0x3f78('0xd9')];for(const {suggestion:_0x2788a9,meta:_0x21c2c7}of this[_0x3f78('0x12e')](_0x2c1f37,_0x3f78('0xef'))){if(!_0x21c2c7[_0x3f78('0x8')])continue;if(_0x2788a9['subType']!=_0x4dd6c8)continue;if(!Ut(_0x2788a9,_0x2508fc))continue;const _0x3c8086=_0x2788a9['getFirstRange']();if(_0x3c8086[_0x3f78('0x3f')](_0x2c1f37,!0x0))return null;_0x4a09f2=_0x4a09f2['isBefore'](_0x3c8086[_0x3f78('0x118')])?_0x4a09f2:_0x3c8086[_0x3f78('0x118')],_0x46f7a2=_0x46f7a2[_0x3f78('0xdf')](_0x3c8086[_0x3f78('0xd9')])?_0x46f7a2:_0x3c8086[_0x3f78('0xd9')],_0x4cff7c?_0x3c8086[_0x3f78('0x118')][_0x3f78('0xfc')](_0x4cff7c['getFirstRange']()[_0x3f78('0x118')])?(_0x4cff7c[_0x3f78('0x96')](),_0x4cff7c=_0x2788a9):_0x2788a9[_0x3f78('0x96')]():_0x4cff7c=_0x2788a9;}const _0x34b8b2=this[_0x3f78('0xe3')]['createRange'](_0x4a09f2,_0x46f7a2);if(_0x4cff7c)this[_0x3f78('0xbb')](_0x4cff7c,_0x34b8b2);else{const _0x412a8c=_0x418993(),_0x3363b8=_0x5713b4['id'];this['_setSuggestionData']({'id':_0x412a8c,'type':'formatInline:'+_0x4dd6c8,'data':_0x363bd1,'createdAt':new Date(),'authorId':_0x3363b8,'attributes':_0x2508fc}),this[_0x3f78('0xc5')]('formatInline:'+_0x4dd6c8,_0x412a8c,_0x3363b8,_0x34b8b2);}}return null;}['markBlockFormat'](_0x3c4e60,_0x4ce830,_0x36d718=[],_0x109238=null,_0x143b1f={}){_0x4ce830[_0x3f78('0xa4')]||(_0x4ce830[_0x3f78('0xa4')]=_0x4ce830['commandName']),_0x4ce830[_0x3f78('0xd1')]=_0x3c4e60['is'](_0x3f78('0x130')),_0x109238=_0x109238||$t(_0x4ce830);const _0x29f1bb=_0x36d718[_0x3f78('0xe2')](_0x1d7e58=>Rt(_0x1d7e58,this[_0x3f78('0xe3')])),_0x35a3bf=_0x3c4e60['is']('range')?_0x3c4e60:Rt(_0x3c4e60,this['_model']);if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x568bb0=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this['forceDefaultExecution'](()=>_0x568bb0([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}_0x29f1bb['push'](_0x35a3bf);let _0x54ef25=!0x0;for(const _0x59771d of _0x29f1bb)if(!this[_0x3f78('0xd0')](_0x59771d)){_0x54ef25=!0x1;break;}if(_0x54ef25&&_0x3f78('0x23')!==this['_trackFormatChanges']){const _0x9d6da3=this['_suggestionFactory']['getSuggestionCallback'](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x9d6da3([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}let _0x4c67d4=null,_0x130bba=_0x35a3bf[_0x3f78('0x118')],_0x46462c=_0x35a3bf[_0x3f78('0xd9')];for(const {suggestion:_0x3545cd,meta:_0x18c58f}of this[_0x3f78('0x12e')](_0x35a3bf,_0x3f78('0xdd'))){if(!_0x18c58f[_0x3f78('0x8')])continue;if(_0x18c58f[_0x3f78('0x5d')]||_0x18c58f[_0x3f78('0xa')]||_0x18c58f['isInsideObject'])continue;if(_0x3545cd[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x4ce830[_0x3f78('0xa4')])continue;if(!Ut(_0x3545cd,_0x143b1f))continue;const _0x27be74=_0x3545cd['getFirstRange']();if(_0x3545cd['subType']==_0x109238){if(_0x27be74['containsRange'](_0x35a3bf,!0x0))return null;_0x130bba=_0x130bba[_0x3f78('0xfc')](_0x27be74[_0x3f78('0x118')])?_0x130bba:_0x27be74[_0x3f78('0x118')],_0x46462c=_0x46462c[_0x3f78('0xdf')](_0x27be74['end'])?_0x46462c:_0x27be74[_0x3f78('0xd9')],_0x4c67d4?_0x27be74['start'][_0x3f78('0xfc')](_0x4c67d4[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x4c67d4[_0x3f78('0x96')](),_0x4c67d4=_0x3545cd):_0x3545cd[_0x3f78('0x96')]():_0x4c67d4=_0x3545cd;}else{const _0x11bf5b=_0x35a3bf[_0x3f78('0x83')](_0x27be74);this[_0x3f78('0x32')](_0x3545cd,_0x11bf5b);}}const _0x510f71=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x5f5053=_0x418993(),_0x5d2651=_0x510f71['id'];if(_0x4c67d4)return this[_0x3f78('0xbb')](_0x4c67d4,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0x4c67d4;{const _0xf86234=this[_0x3f78('0x21')]({'id':_0x5f5053,'type':'formatBlock:'+_0x109238,'data':_0x4ce830,'createdAt':new Date(),'authorId':_0x5d2651,'attributes':_0x143b1f});return this[_0x3f78('0xc5')]('formatBlock:'+_0x109238,_0x5f5053,_0x5d2651,this['_model'][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0xf86234;}}['markMultiRangeBlockFormat'](_0x33af54,_0x25940c,_0x9df773=[],_0x1f5f00=null,_0x30c9c5={}){_0x25940c['formatGroupId']||(_0x25940c[_0x3f78('0xa4')]=_0x25940c[_0x3f78('0x12c')]);const _0x17ea3f=_0x33af54[0x0];_0x25940c[_0x3f78('0xd1')]=_0x17ea3f['is'](_0x3f78('0x130')),_0x1f5f00=_0x1f5f00||$t(_0x25940c);const _0x18fced=_0x9df773[_0x3f78('0xe2')](_0x6b313d=>Rt(_0x6b313d,this[_0x3f78('0xe3')])),_0x17a797=_0x17ea3f['is'](_0x3f78('0x130'))?_0x33af54:_0x33af54[_0x3f78('0xe2')](_0x184f70=>Rt(_0x184f70,this['_model']));if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x319f28=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x319f28(_0x17a797,_0x25940c,_0x30c9c5)),null;}_0x18fced[_0x3f78('0x22')](..._0x17a797);let _0x8903f7=!0x0;for(const _0x38f797 of _0x18fced)if(!this[_0x3f78('0xd0')](_0x38f797)){_0x8903f7=!0x1;break;}if(_0x8903f7&&_0x3f78('0x23')!==this[_0x3f78('0xaf')]){const _0x10c716=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x10c716(_0x17a797,_0x25940c,_0x30c9c5)),null;}const _0x2f3a85=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'];for(const _0x3f8a47 of this[_0x3f78('0x2c')]()){if(_0x3f8a47['author']['id']!=_0x2f3a85['id'])continue;if(_0x3f78('0xdd')!=_0x3f8a47[_0x3f78('0x62')]||_0x3f8a47[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x25940c[_0x3f78('0xa4')])continue;if(!Ut(_0x3f8a47,_0x30c9c5))continue;const _0x2e4553=_0x3f8a47[_0x3f78('0x8b')]==_0x1f5f00;for(let _0x9aad5a=0x0;_0x9aad5a<_0x17a797[_0x3f78('0x37')];_0x9aad5a++){const _0x3372dc=_0x17a797[_0x9aad5a];for(const _0x136bb8 of _0x3f8a47[_0x3f78('0x74')]()){const _0x146cb1=_0x136bb8[_0x3f78('0x108')]();if(_0x3372dc[_0x3f78('0x4e')](_0x146cb1)){_0x2e4553?(_0x17a797[_0x3f78('0xf0')](_0x9aad5a,0x1),_0x9aad5a--):_0x3f8a47['removeMarker'](_0x136bb8[_0x3f78('0xac')]);break;}}}}if(0x0==_0x17a797[_0x3f78('0x37')])return null;const _0x2913ff=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x126'));for(const _0xf25cac of this['getSuggestions']())if(_0xf25cac['author']['id']==_0x2f3a85['id']&&'formatBlock'==_0xf25cac['type']&&_0xf25cac[_0x3f78('0x2')][_0x3f78('0xa4')]==_0x25940c[_0x3f78('0xa4')]&&_0xf25cac[_0x3f78('0x8b')]==_0x1f5f00&&Ut(_0xf25cac,_0x30c9c5)&&(_0x2913ff(_0xf25cac[_0x3f78('0xcf')](),_0x17a797)||_0x2913ff(_0x17a797,_0xf25cac['getRanges']()))){for(const _0x101db0 of _0x17a797)_0xf25cac['addRange'](_0x101db0);return _0xf25cac;}const _0x62f1ee=_0x418993(),_0x4ebe2e=_0x2f3a85['id'],_0x3973b3='formatBlock:'+_0x1f5f00,_0x40e13b=this[_0x3f78('0x21')]({'id':_0x62f1ee,'type':_0x3973b3,'data':_0x25940c,'createdAt':new Date(),'authorId':_0x4ebe2e,'attributes':_0x30c9c5});for(const _0x1d0671 of _0x17a797)this['_addSuggestionMarker'](_0x3973b3,_0x62f1ee,_0x4ebe2e,_0x1d0671,_0x49aee1[_0x3f78('0xf3')]());return _0x40e13b;}['markDeletion'](_0x57c9db,_0x11b815=null,_0x42a425={}){if(_0x57c9db['isCollapsed'])return null;const _0x496d37=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x329d3e=new _0x4b8f82(_0x57c9db[_0x3f78('0x118')],_0x57c9db[_0x3f78('0xd9')]);for(const {suggestion:_0x428acf,meta:_0x447275}of this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0x4b')))if(_0x447275[_0x3f78('0x8')]&&!_0x447275[_0x3f78('0x5d')]){if(_0x428acf[_0x3f78('0xf1')]){const _0x20b47a=_0x428acf[_0x3f78('0xcf')]()[_0x3f78('0x9c')](_0x35487e=>_0x3f78('0xa7')!=_0x35487e[_0x3f78('0x71')]['rootName']);_0x20b47a[_0x3f78('0x13a')](_0x8684b2=>_0x329d3e[_0x3f78('0x3f')](_0x8684b2,!0x0))&&_0x428acf['discard']();if(_0x20b47a[_0x3f78('0x79')](_0x5f1efa=>_0x5f1efa[_0x3f78('0x3f')](_0x329d3e,!0x0))){const _0x102c9b=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x11b815,'accept');return this['forceDefaultExecution'](()=>_0x102c9b([_0x329d3e],null,_0x42a425)),null;}}else{const _0x216869=_0x329d3e[_0x3f78('0x83')](_0x428acf[_0x3f78('0xaa')]());null!==_0x216869&&_0x428acf[_0x3f78('0x4f')]([_0x216869],null,_0x42a425);}}if(_0x329d3e['detach'](),_0x329d3e[_0x3f78('0x5e')]||_0x3f78('0xa7')==_0x329d3e['root']['rootName'])return null;let _0x2cdd3b=null,_0xfec3d8=_0x329d3e[_0x3f78('0x118')],_0x23576e=_0x329d3e[_0x3f78('0xd9')];const _0x296106=this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0xcd'));for(const {suggestion:_0x4792a5,meta:_0x3cb365}of _0x296106){const _0x28cf7d=this['_model'][_0x3f78('0x107')](_0xfec3d8,_0x23576e);if(_0x3cb365[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x3cb365[_0x3f78('0xa')]&&!_0x3cb365[_0x3f78('0xbd')])){if(_0x4792a5['isMultiRange']){if(!Ut(_0x4792a5,_0x42a425))continue;let _0x39611c=!0x0;for(const _0xc3a7e1 of _0x4792a5[_0x3f78('0xcf')]()){if(_0xc3a7e1[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;_0x28cf7d[_0x3f78('0x3f')](_0xc3a7e1)||(_0x39611c=!0x1);}_0x39611c&&_0x4792a5[_0x3f78('0xc6')]();}else{const _0x2d05ff=_0x4792a5[_0x3f78('0xaa')]();if(_0x2d05ff[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;if(!Ut(_0x4792a5,_0x42a425)){_0x28cf7d[_0x3f78('0x3f')](_0x2d05ff)?_0x4792a5[_0x3f78('0x96')]():_0x2d05ff['containsPosition'](_0xfec3d8)?_0xfec3d8=_0x2d05ff[_0x3f78('0xd9')]:_0x2d05ff[_0x3f78('0x103')](_0x23576e)&&(_0x23576e=_0x2d05ff[_0x3f78('0x118')]);continue;}_0xfec3d8=_0xfec3d8[_0x3f78('0xfc')](_0x2d05ff['start'])?_0xfec3d8:_0x2d05ff[_0x3f78('0x118')],_0x23576e=_0x23576e[_0x3f78('0xdf')](_0x2d05ff[_0x3f78('0xd9')])?_0x23576e:_0x2d05ff['end'],_0x42a425=Object[_0x3f78('0x6b')]({},_0x4792a5[_0x3f78('0xb3')]),_0x2cdd3b?_0x2d05ff[_0x3f78('0x118')][_0x3f78('0xfc')](_0x2cdd3b[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x2cdd3b[_0x3f78('0x96')](),_0x2cdd3b=_0x4792a5):_0x4792a5[_0x3f78('0x96')]():_0x2cdd3b=_0x4792a5;}}}if(_0x2cdd3b)return this[_0x3f78('0xbb')](_0x2cdd3b,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e)),_0x2cdd3b;{const _0x8be7dd=_0x418993(),_0x4a8782=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e),_0x24d8dc=_0x496d37['id'],_0x1f72cc=_0x11b815?_0x3f78('0x13')+_0x11b815:_0x3f78('0xcd'),_0x272abc=this[_0x3f78('0x21')]({'id':_0x8be7dd,'type':_0x1f72cc,'createdAt':new Date(),'authorId':_0x24d8dc,'attributes':_0x42a425});return this[_0x3f78('0xc5')](_0x1f72cc,_0x8be7dd,_0x24d8dc,_0x4a8782),_0x272abc;}}[_0x3f78('0x73')](_0xd7244,_0x1ebd98=_0x3f78('0xe0'),_0x36ca5d={}){const _0x4674f2=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'],_0x205ea2=_0xd7244[_0x3f78('0xe2')](_0x5df00c=>new _0x4b8f82(_0x5df00c[_0x3f78('0x118')],_0x5df00c[_0x3f78('0xd9')])),_0x5bd86f=new Set();for(const {suggestion:_0x2b7201,meta:_0x28ceec}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0x4b')))_0x28ceec[_0x3f78('0x8')]&&!_0x28ceec['isNextTo']&&_0x5bd86f[_0x3f78('0xcb')](_0x2b7201);for(const _0x16dbf2 of _0x5bd86f)if(_0x16dbf2[_0x3f78('0xf1')]){const _0x78aeb=_0x16dbf2[_0x3f78('0xcf')]();(!_0x16dbf2[_0x3f78('0xb3')]||!_0x16dbf2['attributes']['skipNestingCheck'])&&(_0x78aeb[_0x3f78('0x13a')](_0x46ce90=>_0x205ea2['some'](_0x26ea9a=>_0x26ea9a['containsRange'](_0x46ce90,!0x0)))&&_0x16dbf2[_0x3f78('0xc6')]());if(_0x205ea2[_0x3f78('0x13a')](_0x4fa6fe=>_0x78aeb[_0x3f78('0x79')](_0x527ef1=>_0x527ef1[_0x3f78('0x3f')](_0x4fa6fe,!0x0)))){const _0x139c48=this[_0x3f78('0xdc')][_0x3f78('0x8c')]('deletion',_0x1ebd98,'accept');return this['forceDefaultExecution'](()=>_0x139c48(_0xd7244,null,_0x36ca5d)),null;}}else{const _0x2771f6=_0x16dbf2[_0x3f78('0xaa')]();_0x205ea2[_0x3f78('0x79')](_0x368989=>_0x368989['containsRange'](_0x2771f6,!0x0))&&_0x16dbf2[_0x3f78('0xc6')]();if(_0x205ea2['every'](_0x20a42f=>_0x2771f6[_0x3f78('0x3f')](_0x20a42f,!0x0))){const _0x8db062=this['_suggestionFactory'][_0x3f78('0x8c')]('deletion',_0x1ebd98,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x8db062(_0x205ea2,null,_0x36ca5d)),null;}}const _0x2abf22=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x1ebd98,'join');let _0x2051a3=null;for(const _0x56c534 of this[_0x3f78('0x2c')]())if(_0x56c534[_0x3f78('0x6e')]['id']==_0x4674f2['id']&&_0x56c534[_0x3f78('0x94')]&&_0x3f78('0xcd')==_0x56c534[_0x3f78('0x62')]&&_0x56c534[_0x3f78('0x8b')]==_0x1ebd98&&Ut(_0x56c534,_0x36ca5d)&&(_0x2abf22(_0x56c534['getRanges'](),_0x205ea2)||_0x2abf22(_0x205ea2,_0x56c534[_0x3f78('0xcf')]()))){if(_0x2051a3){if(_0x56c534[_0x3f78('0x43')]&&_0x56c534[_0x3f78('0x43')][_0x3f78('0x37')])continue;for(const _0x313404 of _0x56c534[_0x3f78('0xcf')]())_0x2051a3[_0x3f78('0x1e')](_0x313404)||_0x2051a3[_0x3f78('0xc8')](_0x313404);_0x56c534[_0x3f78('0x96')]();}else{_0x2051a3=_0x56c534;for(const _0x50c67c of _0x205ea2)_0x56c534['isIntersectingWithRange'](_0x50c67c)||_0x56c534['addRange'](_0x50c67c);}}if(_0x2051a3)return _0x2051a3;_0x5bd86f['clear']();for(const {suggestion:_0x3ae4c4,meta:_0x34257a}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0xcd')))_0x34257a[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x34257a['containsRangeInObject']&&!_0x34257a[_0x3f78('0xbd')])&&Ut(_0x3ae4c4,_0x36ca5d)&&_0x5bd86f[_0x3f78('0xcb')](_0x3ae4c4);for(const _0x4ae299 of _0x5bd86f){const _0x108f8e=_0x4ae299[_0x3f78('0xcf')]();if(!_0x36ca5d||!_0x36ca5d[_0x3f78('0x11b')]){if(_0x205ea2[_0x3f78('0x13a')](_0x5231f9=>_0x108f8e['some'](_0x5e3ac4=>_0x5e3ac4[_0x3f78('0x3f')](_0x5231f9,!0x0))))return _0x4ae299;}(!_0x4ae299['attributes']||!_0x4ae299['attributes'][_0x3f78('0x11b')])&&(_0x108f8e[_0x3f78('0x13a')](_0xb05d56=>_0x205ea2[_0x3f78('0x79')](_0x516ca7=>_0x516ca7[_0x3f78('0x3f')](_0xb05d56,!0x0)))&&_0x4ae299[_0x3f78('0xc6')]());}const _0x43bfbe=_0x418993(),_0x3c1503=_0x4674f2['id'],_0x4501a6=_0x3f78('0x13')+_0x1ebd98,_0x5d44b0=this[_0x3f78('0x21')]({'id':_0x43bfbe,'type':_0x4501a6,'createdAt':new Date(),'authorId':_0x3c1503,'attributes':_0x36ca5d});for(const _0x253b6b of _0x205ea2)_0x253b6b['detach'](),_0x253b6b['isCollapsed']||'$graveyard'==_0x253b6b[_0x3f78('0x71')]['rootName']||this['_addSuggestionMarker'](_0x4501a6,_0x43bfbe,_0x3c1503,_0x253b6b,_0x49aee1[_0x3f78('0xf3')]());return _0x5d44b0;}[_0x3f78('0xbb')](_0x77f6f9,_0x2e0813){const _0x29df6d=_0x77f6f9['getFirstMarker']();this[_0x3f78('0xe3')]['change'](_0x5d1821=>{_0x5d1821[_0x3f78('0xe4')](_0x29df6d,{'range':_0x2e0813});});}['_addThreadToSuggestion'](_0x4d872e){const _0xe9c359=_0x4d872e['id'],_0x373d9d=this[_0x3f78('0x98')][_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x95'));this[_0x3f78('0x18')][_0x3f78('0x10a')](_0xe9c359)||this['_commentsRepository']['addCommentThread']({'channelId':_0x373d9d,'threadId':_0xe9c359,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15fa5a=this[_0x3f78('0x18')][_0x3f78('0x2a')](_0xe9c359);_0x15fa5a[_0x3f78('0xfb')]('isRemovable'),_0x15fa5a[_0x3f78('0x7e')]=!0x1,_0x4d872e[_0x3f78('0x43')]=_0x15fa5a;}[_0x3f78('0x138')](_0x39d072,_0x2a7846,_0x5160ef,_0xf159cf){if(_0x39d072[_0x3f78('0x62')]!=_0x2a7846||_0x39d072[_0x3f78('0x8b')]!=_0x5160ef||_0x39d072[_0x3f78('0xc3')]['id']!=_0xf159cf)throw this['editor'][_0x3f78('0x111')](_0x3f78('0xc1')),new _0x400b29(_0x3f78('0xc1'),this);}[_0x3f78('0x32')](_0x42e82c,_0x5270ee){const _0x514634=_0x42e82c[_0x3f78('0xaa')]();if(_0x5270ee[_0x3f78('0x4e')](_0x514634))_0x42e82c[_0x3f78('0x96')]();else{if(_0x514634['containsRange'](_0x5270ee)){const _0x3be3e3=this['_model'][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x3be3e3));const _0x30250b=_0x418993(),_0x2485c5=_0x42e82c[_0x3f78('0xc3')]['id'],_0x3b8f56=_0x42e82c[_0x3f78('0x62')]+':'+_0x42e82c[_0x3f78('0x8b')];this['_setSuggestionData']({'id':_0x30250b,'type':_0x3b8f56,'createdAt':new Date(),'authorId':_0x2485c5,'data':_0x42e82c[_0x3f78('0x2')],'attributes':_0x42e82c[_0x3f78('0xb3')]});const _0x3ede23=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after'),_0x1cb952=this['_model'][_0x3f78('0x107')](_0x3ede23,_0x514634[_0x3f78('0xd9')]);this[_0x3f78('0xc5')](_0x3b8f56,_0x30250b,_0x2485c5,_0x1cb952);}else{if(_0x514634[_0x3f78('0x103')](_0x5270ee[_0x3f78('0x118')])){const _0x461ce1=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x461ce1));}else{const _0x1be8e3=this[_0x3f78('0xe3')]['createPositionAt'](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after');this[_0x3f78('0xbb')](_0x42e82c,this['_model'][_0x3f78('0x107')](_0x1be8e3,_0x514634[_0x3f78('0xd9')]));}}}}['_rangeIsInLocalUserInsertion'](_0x58f11b){for(const {suggestion:_0x26b983,meta:_0x51f48a}of this[_0x3f78('0x12e')](_0x58f11b,_0x3f78('0x4b'))){if(!_0x51f48a['isOwn'])continue;const _0x306839=_0x26b983[_0x3f78('0xcf')]();for(const _0x1953bf of _0x306839)if(!_0x58f11b[_0x3f78('0xd5')](_0x1953bf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x44c33d){const _0x57915c=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))[_0x3f78('0xe8')](_0x44c33d);if(!_0x57915c)throw new _0x400b29(_0x3f78('0x44'),this);return _0x57915c;}[_0x3f78('0x31')](_0x4f5e3d){const _0x192c08=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users'),_0x10acda=_0x3abb0f(_0x3f78('0xa1')+_0x4f5e3d),_0x16b4b1=_0x192c08[_0x3f78('0xe8')](_0x10acda);return _0x16b4b1||_0x192c08[_0x3f78('0x91')]({'id':_0x10acda,'name':_0x4f5e3d});}[_0x3f78('0x10c')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x5eb878,_0x2d5b3f){const _0x54e67b=this[_0x3f78('0x64')](_0x5eb878),_0x5dd636=this[_0x3f78('0xdc')][_0x3f78('0x8f')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x54e67b,_0x2d5b3f,_0x46dcc8=>this[_0x3f78('0x29')](_0x1f1801,{'attributes':_0x46dcc8}));return this['listenTo'](_0x5dd636,'accept',()=>{this[_0x3f78('0x29')](_0x1f1801,{'state':_0x3f78('0x17')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x80')](_0x5dd636,_0x3f78('0xc6'),()=>{this['_updateSuggestionData'](_0x1f1801,{'state':_0x3f78('0xff')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x120')][_0x3f78('0x3e')](_0x1f1801,_0x5dd636),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5dd636,'notReady'),_0x5dd636;}[_0x3f78('0x128')](_0x5ad0f1){const _0x410dc9=_0x5ad0f1[_0x3f78('0xea')](':');return{'group':_0x410dc9[0x0],'type':_0x410dc9[0x1],'subType':_0x410dc9[_0x3f78('0x37')]>=0x5?_0x410dc9[0x2]:null,'id':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x2]:_0x410dc9[0x3],'authorId':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x3]:_0x410dc9[0x4],'markerCount':0x6==_0x410dc9[_0x3f78('0x37')]?_0x410dc9[0x5]:null};}[_0x3f78('0xf8')](_0x54b35f,_0x48e259,_0xbdcea7){const _0x31ccb8=_0x54b35f['getFirstRange'](),_0x370b7a=_0x31ccb8['start'],_0x35384f=_0x31ccb8[_0x3f78('0xd9')];this[_0x3f78('0xbb')](_0x54b35f,this[_0x3f78('0xe3')]['createRange'](_0x370b7a,_0x48e259));const _0x1d91a1=_0x418993(),_0x40eb6f=_0x54b35f[_0x3f78('0xc3')]['id'],_0x2b09d8=_0x54b35f[_0x3f78('0x62')]+(_0x54b35f['subType']?':'+_0x54b35f[_0x3f78('0x8b')]:'');this[_0x3f78('0x21')]({'id':_0x1d91a1,'type':_0x2b09d8,'createdAt':new Date(),'authorId':_0x40eb6f,'originalSuggestionId':_0x54b35f['id'],'attributes':_0x54b35f[_0x3f78('0xb3')],'data':_0x54b35f[_0x3f78('0x2')]}),_0x3f78('0xdd')==_0x54b35f[_0x3f78('0x62')]&&(_0xbdcea7=this['_model'][_0x3f78('0x52')](_0xbdcea7['parent'])),this[_0x3f78('0xc5')](_0x2b09d8,_0x1d91a1,_0x40eb6f,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xbdcea7,_0x35384f));}[_0x3f78('0x12e')](_0x5b6057,_0x25e0e8=null){const _0x306b95=[],_0x1cc226=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];Array['isArray'](_0x5b6057)||(_0x5b6057=[_0x5b6057]);for(const _0x44c347 of this[_0x3f78('0x2c')]()){if(!_0x44c347['isInContent'])continue;if(_0x25e0e8&&_0x44c347[_0x3f78('0x62')]!=_0x25e0e8)continue;let _0x10680a=!0x1;for(const _0x4a6187 of _0x44c347['getRanges']()){for(const _0x204891 of _0x5b6057){const _0x5a66ff=_0x204891[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4a6187[_0x3f78('0xd9')])||_0x204891[_0x3f78('0xd9')][_0x3f78('0x4e')](_0x4a6187['start']);if(_0x5a66ff||_0x204891[_0x3f78('0x83')](_0x4a6187)){const _0x1b8a1d=_0x204891[_0x3f78('0x3f')](_0x4a6187)&&Bt(this['_model'][_0x3f78('0x7c')],_0x4a6187[_0x3f78('0x118')],_0x204891),_0x424719=_0x4a6187[_0x3f78('0x3f')](_0x204891)&&Bt(this[_0x3f78('0xe3')][_0x3f78('0x7c')],_0x204891[_0x3f78('0x118')],_0x4a6187);_0x306b95[_0x3f78('0x22')]({'suggestion':_0x44c347,'meta':{'isOwn':_0x1cc226==_0x44c347[_0x3f78('0x6e')],'isNextTo':_0x5a66ff,'isInsideObject':_0x1b8a1d,'containsRangeInObject':_0x424719}}),_0x10680a=!0x0;break;}}if(_0x10680a)break;}}return _0x306b95;}['_addSuggestionMarker'](_0x179ed6,_0x3da8a5,_0x3dc42c,_0x55424,_0x213d4b){this[_0x3f78('0xe3')]['change'](_0x4a0da7=>{let _0x367f6c=_0x3f78('0x27')+_0x179ed6+':'+_0x3da8a5+':'+_0x3dc42c;_0x213d4b&&(_0x367f6c=_0x367f6c+':'+_0x213d4b),_0x4a0da7[_0x3f78('0x7d')](_0x367f6c,{'range':_0x55424,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3f78('0x8e')](_0x18a893){const _0xdf386b=_0x18a893['previous'],_0xa6caba=_0x18a893[_0x3f78('0xb0')];_0x18a893[_0x3f78('0x9e')]=null,null!=_0xdf386b&&(_0xdf386b[_0x3f78('0xb0')]=null),_0x18a893['next']=null,null!=_0xa6caba&&(_0xa6caba[_0x3f78('0x9e')]=null),'ready'==this[_0x3f78('0x9b')][_0x3f78('0x60')](_0x18a893)&&(this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x18a893,_0x3f78('0x36')),this['fire'](_0x3f78('0xe1'),_0x18a893,_0xdf386b,_0xa6caba));}[_0x3f78('0x21')](_0x2822f9){const _0x12c42a=_0x2822f9['id'],_0x498d07=this[_0x3f78('0xf')](_0x2822f9);if(this['_adapter']&&this[_0x3f78('0x102')][_0x3f78('0x26')]){const _0xeb7cc9=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x113')),_0x36bd38=_0x498d07['hasComments'],_0x590047=_0x498d07['subType']?_0x498d07['type']+':'+_0x498d07[_0x3f78('0x8b')]:_0x498d07[_0x3f78('0x62')],_0xccff6f=this[_0x3f78('0x98')][_0x3f78('0x88')],_0x435965=_0xeb7cc9[_0x3f78('0xcb')](_0x304cd0(_0xccff6f,'PENDING_ACTION_SUGGESTION')),_0x45fa87={'id':_0x12c42a,'type':_0x590047,'hasComments':_0x36bd38,'data':_0x2822f9['data']||null,'originalSuggestionId':_0x2822f9[_0x3f78('0xb2')]||null,'attributes':_0x498d07[_0x3f78('0xb3')]};this[_0x3f78('0x102')]['addSuggestion'](_0x45fa87)[_0x3f78('0x65')](_0x4006b5=>{_0x498d07['_saved']=!0x0,_0xeb7cc9[_0x3f78('0xcc')](_0x435965),_0x4006b5&&_0x4006b5[_0x3f78('0xb')]&&(this['_suggestions'][_0x3f78('0x60')](_0x12c42a)[_0x3f78('0xb')]=_0x4006b5[_0x3f78('0xb')]);})[_0x3f78('0x11')](_0x598398=>{throw _0x46fa9c('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x3f78('0xc0')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x498d07[_0x3f78('0xc6')]();}),_0x498d07[_0x3f78('0x3a')](),this['_suggestions']['delete'](_0x498d07['id']),this[_0x3f78('0x9b')][_0x3f78('0x35')](_0x498d07),_0x598398;});}return _0x498d07;}[_0x3f78('0x29')](_0xf3ba2e,_0x1d0fe9){const _0x1e57b0=this[_0x3f78('0x98')]['plugins']['get']('PendingActions'),_0x21f104=this['getSuggestion'](_0xf3ba2e);if(this[_0x3f78('0x102')]&&this['_adapter'][_0x3f78('0x3d')]){if(_0x21f104[_0x3f78('0x41')]){const _0x40937f=_0x1e57b0[_0x3f78('0xcb')](_0x304cd0(this['editor'][_0x3f78('0x88')],_0x3f78('0xa2')));this[_0x3f78('0x102')][_0x3f78('0x3d')](_0xf3ba2e,_0x1d0fe9)['then'](()=>{_0x1e57b0[_0x3f78('0xcc')](_0x40937f);});}else _0x21f104['on'](_0x3f78('0x57'),()=>{this['_updateSuggestionData'](_0xf3ba2e,_0x1d0fe9);});}}['_getSuggestionData'](_0x28f1ba){if(!this['_adapter']||!this[_0x3f78('0x102')][_0x3f78('0xd4')])throw new _0x400b29(_0x3f78('0x38'),this);return this[_0x3f78('0x102')][_0x3f78('0xd4')](_0x28f1ba);}[_0x3f78('0xab')](_0x220d07){const {id:_0x289923,type:_0x4c8b32,subType:_0xc2b56a,authorId:_0x4958bb}=this[_0x3f78('0x128')](_0x220d07),_0x5b0a37=this[_0x3f78('0x120')]['get'](_0x289923)||this[_0x3f78('0x10c')](_0x4c8b32,_0xc2b56a,_0x289923,_0x4958bb,{});switch(this['_checkSuggestionCorrectness'](_0x5b0a37,_0x4c8b32,_0xc2b56a,_0x4958bb),this['_suggestionState']['get'](_0x5b0a37)){case _0x3f78('0x121'):this[_0x3f78('0xc7')](_0x289923)[_0x3f78('0x65')](_0x23349a=>{let _0x442cb2=Promise[_0x3f78('0xba')]();_0x23349a[_0x3f78('0x30')]&&(_0x442cb2=this[_0x3f78('0x18')][_0x3f78('0x25')]({'channelId':this['editor'][_0x3f78('0x136')]['get'](_0x3f78('0x95')),'threadId':_0x289923})),_0x442cb2[_0x3f78('0x65')](()=>{this[_0x3f78('0xf')](_0x23349a)[_0x3f78('0x41')]=!0x0;});}),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x2b'));break;case'removed':this['_updateSuggestionData'](_0x289923,{'state':_0x3f78('0x69')});case _0x3f78('0x5f'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x5b0a37);break;case _0x3f78('0x1d'):this[_0x3f78('0xce')](_0x3f78('0x8d'),_0x5b0a37);}return _0x5b0a37[_0x3f78('0x70')](_0x220d07),_0x5b0a37;}[_0x3f78('0xf5')](_0x11c698){const _0x4d28a1=Array[_0x3f78('0x6a')](_0x11c698)[_0x3f78('0x9c')](_0x578933=>!_0x578933[_0x3f78('0xf1')]),_0x1d16b9=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0})['filter'](_0x4b1dfd=>!_0x4b1dfd['isMultiRange']),_0x20d5d0=_0x1d16b9['filter'](_0x345553=>!_0x11c698[_0x3f78('0x48')](_0x345553)),_0x1a455e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x5a46b1=>[_0x5a46b1,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x5a46b1['type'],_0x5a46b1['subType'],_0x3f78('0x134'))])),_0x4a423e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x432264=>[_0x432264,_0x432264[_0x3f78('0xaa')]()])),_0x1c9b48=new Set(),_0x25fd43=new Set();for(let _0x4d7529=0x0;_0x4d7529<_0x4d28a1[_0x3f78('0x37')];_0x4d7529++)_0x21fd4d(_0x4d28a1[_0x4d7529],_0x4d28a1,_0x4d7529+0x1);for(let _0x1b86f1=0x0;_0x1b86f1<_0x4d28a1['length'];_0x1b86f1++)_0x21fd4d(_0x4d28a1[_0x1b86f1],_0x20d5d0,0x0);for(let _0x1b5140=0x0;_0x1b5140<_0x4d28a1[_0x3f78('0x37')];_0x1b5140++){const _0x3a929b=_0x4d28a1[_0x1b5140];!_0x25fd43[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0x9e')]&&(_0x3a929b[_0x3f78('0x9e')]['next']===_0x3a929b&&(_0x3a929b[_0x3f78('0x9e')][_0x3f78('0xb0')]=null),_0x3a929b['previous']=null),!_0x1c9b48[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0xb0')]&&(_0x3a929b['next'][_0x3f78('0x9e')]===_0x3a929b&&(_0x3a929b['next'][_0x3f78('0x9e')]=null),_0x3a929b['next']=null);}function _0x21fd4d(_0x2f98be,_0x2b58aa,_0x2d6c0e){for(let _0x42c234=_0x2d6c0e;_0x42c234<_0x2b58aa[_0x3f78('0x37')];_0x42c234++){const _0x575093=_0x345040(_0x2f98be,_0x2b58aa[_0x42c234]);_0x575093&&(_0x575093[0x0][_0x3f78('0xb0')]=_0x575093[0x1],_0x575093[0x1][_0x3f78('0x9e')]=_0x575093[0x0],_0x1c9b48[_0x3f78('0xcb')](_0x575093[0x0]),_0x25fd43[_0x3f78('0xcb')](_0x575093[0x1]));}}function _0x345040(_0x101541,_0x5f517f){if(_0x101541[_0x3f78('0x6e')]['id']!==_0x5f517f[_0x3f78('0x6e')]['id'])return null;const _0x2a34a3=_0x1a455e[_0x3f78('0x60')](_0x101541)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f));if(!_0x2a34a3)return null;return _0x1a455e[_0x3f78('0x60')](_0x5f517f)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f))?_0x2a34a3[0x1][_0x3f78('0x43')]&&_0x2a34a3[0x1][_0x3f78('0x43')][_0x3f78('0x37')]?null:_0x2a34a3:null;}}[_0x3f78('0x46')](_0x5da3c8){const _0x582bb8=Array[_0x3f78('0x6a')](_0x5da3c8),_0x555ef3=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0}),_0x1a479e=_0x555ef3[_0x3f78('0x9c')](_0x3043c0=>!_0x5da3c8[_0x3f78('0x48')](_0x3043c0)),_0x38c053=new Map(_0x582bb8['map'](_0x25814a=>[_0x25814a,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x25814a[_0x3f78('0x62')],_0x25814a[_0x3f78('0x8b')],_0x3f78('0x126'))])),_0x57e407=new Map(_0x555ef3[_0x3f78('0xe2')](_0x742cf0=>[_0x742cf0,_0x742cf0[_0x3f78('0xcf')]()]));for(let _0x15bf0c=0x0;_0x15bf0c<_0x582bb8['length'];_0x15bf0c++){if(_0x51d5f3(this,_0x582bb8[_0x15bf0c],_0x582bb8,_0x15bf0c+0x1))return!0x0;}for(let _0x29556a=0x0;_0x29556a<_0x582bb8[_0x3f78('0x37')];_0x29556a++){if(_0x51d5f3(this,_0x582bb8[_0x29556a],_0x1a479e,0x0))return!0x0;}return!0x1;function _0x51d5f3(_0x3fd78f,_0x3691ab,_0x3d12fe,_0x29f7dd){for(let _0x402cf1=_0x29f7dd;_0x402cf1<_0x3d12fe[_0x3f78('0x37')];_0x402cf1++){const _0x25164e=_0x3d12fe[_0x402cf1];if(_0x25164e[_0x3f78('0x62')]!==_0x3691ab[_0x3f78('0x62')]||_0x25164e['author']['id']!==_0x3691ab['author']['id']||_0x25164e[_0x3f78('0x8b')]!==_0x3691ab[_0x3f78('0x8b')])continue;if(!xt(_0x3691ab,_0x25164e))continue;const _0x2323a2=_0x38c053[_0x3f78('0x60')](_0x3691ab),_0x2553fa=_0x57e407[_0x3f78('0x60')](_0x3691ab),_0x9c9e99=_0x57e407[_0x3f78('0x60')](_0x25164e),_0x18d3fa=_0x3691ab[_0x3f78('0x43')]&&_0x3691ab[_0x3f78('0x43')][_0x3f78('0x37')],_0x324b1f=_0x25164e['commentThread']&&_0x25164e[_0x3f78('0x43')][_0x3f78('0x37')];if(!_0x18d3fa&&_0x2323a2(_0x9c9e99,_0x2553fa))return _0x3fd78f[_0x3f78('0x7')](_0x25164e,_0x3691ab),_0x57e407['delete'](_0x3691ab),!0x0;if(!_0x324b1f&&_0x2323a2(_0x2553fa,_0x9c9e99))return _0x3fd78f[_0x3f78('0x7')](_0x3691ab,_0x25164e),_0x57e407[_0x3f78('0x35')](_0x25164e),!0x0;}return!0x1;}}[_0x3f78('0x7')](_0xc0a22c,_0x1ba28c){if(_0xc0a22c[_0x3f78('0xf1')])for(const _0x2e83e2 of _0x1ba28c[_0x3f78('0xcf')]())_0xc0a22c['addRange'](_0x2e83e2);else{const _0x480801=_0x1ba28c['getFirstRange']()['end'];this[_0x3f78('0xbb')](_0xc0a22c,this[_0x3f78('0xe3')]['createRange'](_0xc0a22c['getFirstRange']()[_0x3f78('0x118')],_0x480801));}_0x1ba28c[_0x3f78('0x96')]();}}class Dt{constructor(_0x528fea){this['_editor']=_0x528fea,this[_0x3f78('0xe3')]=_0x528fea[_0x3f78('0xc0')],this[_0x3f78('0xde')]=new Map(),this[_0x3f78('0x77')]=new Map(),this[_0x3f78('0x129')]();}[_0x3f78('0x8f')](_0x3c5efa,_0x20dec6,_0x330eb5,_0x71fe91,_0x117515,_0xb9b740){return new _0x49aee1(this[_0x3f78('0xe3')],{'type':_0x3c5efa,'subType':_0x20dec6,'id':_0x330eb5,'author':_0x71fe91,'creator':_0x71fe91,'attributes':_0x117515,'onAttributesChange':_0xb9b740,'onAccept':(..._0x108fd8)=>this[_0x3f78('0x8c')](_0x3c5efa,_0x20dec6,'accept')(..._0x108fd8),'onDiscard':(..._0x3a6fe5)=>this['getSuggestionCallback'](_0x3c5efa,_0x20dec6,'discard')(..._0x3a6fe5)});}['registerCustomCallback'](_0x153479,_0x40f9a5,_0x5ebcee,_0x315469){const _0x10fa4f=_0x153479+':'+_0x40f9a5+':'+_0x5ebcee;this['_customCallbacks']['set'](_0x10fa4f,_0x315469);}[_0x3f78('0x8c')](_0x4e4706,_0x472852,_0x44175b){const _0xc24567=_0x4e4706+':'+_0x472852+':'+_0x44175b;return this[_0x3f78('0xde')]['get'](_0xc24567)||this[_0x3f78('0x77')]['get'](_0x4e4706+':'+_0x44175b);}[_0x3f78('0x129')](){const _0x36d9bd=()=>!0x1,_0x446313=_0x31f30b=>{_0x31f30b['sort']((_0x38e636,_0x3e6166)=>_0x38e636['start']['isBefore'](_0x3e6166[_0x3f78('0x118')])?0x1:-0x1),this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x1ee8ad=>{for(const _0x46f333 of _0x31f30b){let _0x2a4947;_0x2a4947=_0x46f333[_0x3f78('0xd9')]['isAtEnd']&&_0x46f333[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x46f333['start'][_0x3f78('0x7b')]?_0x1ee8ad[_0x3f78('0x11f')](_0x46f333[_0x3f78('0x118')][_0x3f78('0x7b')],'on'):_0x1ee8ad['createSelection'](_0x46f333),this['_model']['deleteContent'](_0x2a4947,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5cdfee=(_0x3f5ac1,_0x36642b)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x2133ee=>{const {commandName:_0x40fbee,commandParams:_0x5a580=[]}=_0x36642b,_0x2628e0=_0x3f5ac1[_0x3f78('0xe2')](_0xe0c9da=>(_t(_0xe0c9da)&&(_0xe0c9da=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xe0c9da['end'])),_0xe0c9da))[_0x3f78('0x9c')](_0x46f9bc=>_0x3f78('0xa7')!==_0x46f9bc[_0x3f78('0x71')][_0x3f78('0xc')]);if(_0x2628e0['length']<0x1)return;const _0x214087=Array[_0x3f78('0x6a')](this[_0x3f78('0xe3')]['document']['selection']['getRanges']())[_0x3f78('0xe2')](_0x2fb243=>_0x4b8f82[_0x3f78('0x45')](_0x2fb243));_0x2133ee['setSelection'](_0x2628e0);for(const _0x2590fe of this[_0x3f78('0xe9')]['commands'][_0x3f78('0x13b')]())_0x2590fe[_0x3f78('0x11d')]();_0x5a580['push']({'forceDefaultExecution':!0x0}),this[_0x3f78('0xe9')]['execute'](_0x40fbee,..._0x5a580);const _0x3f74c0=_0x214087[_0x3f78('0x9c')](_0xe24fa3=>_0x3f78('0xa7')!=_0xe24fa3[_0x3f78('0x71')][_0x3f78('0xc')]);_0x3f74c0[_0x3f78('0x37')]>0x0&&_0x2133ee[_0x3f78('0x7a')](_0x3f74c0);for(const _0x1f9a4f of _0x214087)_0x1f9a4f[_0x3f78('0xd6')]();});},_0x357c00=(_0x212404,_0x21acf3)=>0x1==_0x212404[_0x3f78('0x37')]&&0x1==_0x21acf3['length']&&_0x212404[0x0]['end'][_0x3f78('0x4e')](_0x21acf3[0x0][_0x3f78('0x118')]),_0x31ad18=(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d)=>jt(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d,this[_0x3f78('0xe3')])?[_0x2ba0ee,_0x21cd34]:jt(_0x21cd34,_0x2ba0ee,_0xcfe02d,_0x1d074a,this['_model'])?[_0x21cd34,_0x2ba0ee]:null;this[_0x3f78('0x77')][_0x3f78('0x3e')]('insertion:accept',_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x1f'),_0x446313),this[_0x3f78('0x77')]['set'](_0x3f78('0x132'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')]('insertion:chain',_0x31ad18),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x76'),_0x446313),this[_0x3f78('0x77')]['set']('deletion:discard',_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x56'),_0x357c00),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x105'),_0x31ad18),this[_0x3f78('0x77')]['set'](_0x3f78('0x89'),_0x5cdfee),this[_0x3f78('0x77')]['set'](_0x3f78('0xf6'),_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x53'),_0x357c00),this[_0x3f78('0x77')]['set'](_0x3f78('0x1b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x68'),_0x5cdfee),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x3b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0xd3'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x115'),_0x36d9bd);}}function Bt(_0x22ff8e,_0x3feb97,_0x1572f4){for(const _0x52c3bc of _0x3feb97[_0x3f78('0xe5')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52c3bc[_0x3f78('0x71')]==_0x52c3bc)return!0x1;if(!_0x1572f4[_0x3f78('0xb4')](_0x52c3bc))return!0x1;if(_0x22ff8e[_0x3f78('0x90')](_0x52c3bc)||_0x22ff8e[_0x3f78('0x10d')](_0x52c3bc))return!0x0;}return!0x1;}function _t(_0x188a7b){return _0x188a7b[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x188a7b[_0x3f78('0x118')][_0x3f78('0x7b')]&&_0x188a7b['end'][_0x3f78('0x9f')];}function Mt(_0x439e71,_0x17b806,_0x404635,_0x100f10){const _0x33fb9c=_0x1c5879=>!_0x1c5879[_0x3f78('0xd2')]['is'](_0x3f78('0x10e'))&&!_0x100f10[_0x3f78('0x90')](_0x1c5879[_0x3f78('0xd2')]),_0x4af227=_0x439e71['start'][_0x3f78('0x7f')](_0x33fb9c),_0x3609f1=_0x439e71['end'][_0x3f78('0x7f')](_0x33fb9c,{'direction':_0x3f78('0xc9')});return(!_0x439e71[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4af227)||!_0x439e71[_0x3f78('0xd9')]['isEqual'](_0x3609f1))&&(_0x4af227[_0x3f78('0xfc')](_0x3609f1)?_0x404635[_0x3f78('0xe4')](_0x17b806,{'range':_0x404635[_0x3f78('0x107')](_0x4af227,_0x3609f1)}):_0x404635['removeMarker'](_0x17b806),!0x0);}function $t(_0xcdb461){return _0x3abb0f(_0xcdb461);}function Nt(_0x5d29c9){const _0xc044b2=_0x5d29c9[_0x3f78('0x118')][_0x3f78('0x7b')];return _0xc044b2&&_0xc044b2['is'](_0x3f78('0xa9'));}function Rt(_0x14ca12,_0x589dad){const _0x109dcb=_0x589dad[_0x3f78('0x7c')][_0x3f78('0x90')](_0x14ca12)||_0x589dad['schema']['isSelectable'](_0x14ca12);return _0x589dad[_0x3f78('0x107')](_0x589dad['createPositionAt'](_0x14ca12,_0x3f78('0xeb')),_0x109dcb?_0x589dad[_0x3f78('0x51')](_0x14ca12):_0x589dad[_0x3f78('0x5')](_0x14ca12,_0x3f78('0xd9')));}function jt(_0x3597d8,_0x31dd78,_0x4b39b8,_0x4f465a,_0xf2ef83){if(!xt(_0x3597d8,_0x31dd78))return!0x1;if(_0x4b39b8['end'][_0x3f78('0x4e')](_0x4f465a['start']))return!0x0;if(_0x3597d8['type']!=_0x31dd78[_0x3f78('0x62')])return!0x1;if(!_0x4b39b8[_0x3f78('0xd9')]['isTouching'](_0x4f465a[_0x3f78('0x118')]))return!0x1;const _0x320cde=_0xf2ef83['createRange'](_0x4b39b8[_0x3f78('0xd9')],_0x4f465a['start'])['getWalker']();for(const _0x51c56c of _0x320cde)if([_0x3f78('0x84'),'elementEnd'][_0x3f78('0x92')](_0x51c56c[_0x3f78('0x62')])&&_0xf2ef83[_0x3f78('0x7c')][_0x3f78('0x10d')](_0x51c56c['item']))return!0x1;return!0x0;}function xt(_0x59e6f1,_0x390e2f){return!(!_0x59e6f1[_0x3f78('0x2e')]||!_0x390e2f[_0x3f78('0x2e')])&&_0x4b2408(_0x59e6f1[_0x3f78('0xb3')],_0x390e2f['attributes']);}function Ut(_0x1d68b1,_0x466d9e){const _0x1c1259=Ot(_0x1d68b1[_0x3f78('0xb3')]),_0x1fe3d0=Ot(_0x466d9e);if(!_0x1d68b1[_0x3f78('0x2e')])return!0x1;for(const _0x22ad86 of Object[_0x3f78('0xa6')](_0x1fe3d0))if(!_0x4b2408(_0x1c1259[_0x22ad86],_0x1fe3d0[_0x22ad86]))return!0x1;return!0x0;}function Ot(_0x4928d8){const _0xdbf634=Object[_0x3f78('0x6b')]({},_0x4928d8);return delete _0xdbf634[_0x3f78('0x11b')],delete _0xdbf634['tablePasteChainId'],_0xdbf634;}
|
|
23
|
+
const _0x130d=['_handleNewSuggestionMarker','getAttribute','markerReady','getAllAdjacentSuggestions','deletion:join','change:activeMarkers','for','listenTo','discard','dataDowncast','insertion','detach','trackChanges.trackFormatChanges','registerCustomCallback','includes','mapper','value','element','low','isRemovable','track-changes-adapter-already-set','locale','markBlockFormat','_addThreadToSuggestion','trackChanges.mergeNestedSuggestions','createdAt','multipleBlocks','isCollapsed','deletion','deletion:discard','move','addClass','size','_isForcedDefaultExecutionBlock','map','item','set','next','_getSuggestionData','_model','markMultiRangeBlockFormat','howMany','addHighlight','refresh','get','assign','isAtEnd','dataToMarker','start','_addSuggestionMarker','formatInline:join','formatBlock:','$marker','isLimit','deletion:chain','never','getChangedMarkers','addSuggestionData','external:','_getExternalAuthor','markMultiRangeInsertion','schema','_breakSuggestionMarker','_onDiscard','isLocal','addMarkerName','_updateSuggestionData','_trackFormatChanges','writer','getSuggestions','backward','suggestion-type','default','getFirstRange','newRange','fire','formatInline','hasComments','deletion:accept','getItems','every','getCustomProperty','toViewElement','formatBlock','formatInline:discard','activeMarkers','removeComment','execute','from','define','_findSuggestions','isExternal','fromRange','after','suggestionChanged','splice','_suggestionFactory','$graveyard','always','before','_enabledCommands','markerToHighlight','name','isAfter','_cutOutSuggestionMarker','_getAuthorFromId','filter','widget','commands','getSuggestionCallback','document','highest','isDocumentOperation','suggestion:','forceDefaultExecution','resolve','PendingActions','formatGroupId','targetPosition','formatInline:chain','_commentsRepository','stop','discardSuggestion','acceptAllSuggestions','adapter','rootName','_registerDefaultCallbacks','_rangeIsInLocalUserInsertion','rejected','discardSelectedSuggestions','lowest','removeMarker','unbind','root','isTouching','then','insertContent','getUser','originalSuggestionId','track-changes-suggestion-not-found','catch','end','removed','change:_saved','getDifference','isEqual','enableReadOnlyMode','isMultiRange','formatBlock:accept','pluginName','track-changes-command-not-found','parent','getIntersection','markerName','containsPosition','has','upcast','remove','containsRangeInObject','suggestion','values','getShiftedBy','splitPosition','clear','unbindElementFromMarkerName','plugins','notReady','setTo','elementStart','removeMarker:suggestion:formatBlock','insertion:','formatInline:','getCommentThread','suggestionLoaded','_createSuggestion','_joinSuggestions','trackChanges','updateSuggestion','formatBlock:join','data-suggestion','isInContent','insertion:join','consume','keys','getRanges','trackChangesCommand','stopListening','sort','createPositionAt','setAttribute','_refreshSuggestionsChain','isIntersectingWithRange','removeMarkers','editor','forward','some','showSuggestionHighlights','markMultiRangeDeletion','addSuggestion','registerPostFixer','chain','createElement','model','isAtStart','ck-suggestion-marker','_defaultCallbacks','commandName','differ','position','selection','containsRange','rethrowUnexpectedError','createRange','oldRange','accept','acceptSuggestion','reconvertMarker','creator','isBefore','moveTargetPosition','push','isObject','getNearestSelectionRange','addMarker:suggestion:formatBlock','@external','author','containerElement','markerNameToElements','change:data','_editor','_isDataLoaded','_checkSuggestionCorrectness','return','split','data','suggestionUnloaded','_setSuggestionData','high','markDeletion','_joinWithAdjacentSuggestions','ck-suggestion-marker--active','getAncestors','deletion:','_saved','_splitMarkerName','PENDING_ACTION_SUGGESTION','buildSuggestion','consumable','isOwn','getLastMatchingPosition','createRangeIn','authorName','markers','skipNestingCheck','isNextTo','hasSuggestion','discardAllSuggestions','_suggestions','type','getSuggestion','ck-suggestion-marker-','attributes','nodeAfter','deleteContent','clone','delete','markInlineFormat','_adapter','createSelection','previous','removeClass','editingDowncast','head','getWalker','nodeBefore','dataReady','ready','setSelection','addRange','addMarker:suggestion','_suggestionState','normal','updateMarker','_customCallbacks','$textProxy','elementEnd','CommentsRepository','length','config','insertion:discard','update:suggestion','isInsideObject','isBlock','getMultiRangeId','containsItem','insertion:chain','_setSuggestionRange','change','ck-suggestion-marker-formatBlock','applyOperation','_mergeNestedSuggestions','track-changes-suggestion-data-mismatch','_removeSuggestion','join','commentThread','batch','createPositionBefore','markerToData','subType','options','range','Users','marker-count','enableCommand','toJSON','insert','isArray','collaboration.channelId','isSelectable','add','conversion','init'];(function(_0x11eac8,_0x130d12){const _0x318b0b=function(_0x31ef97){while(--_0x31ef97){_0x11eac8['push'](_0x11eac8['shift']());}};_0x318b0b(++_0x130d12);}(_0x130d,0xaf));const _0x318b=function(_0x11eac8,_0x130d12){_0x11eac8=_0x11eac8-0x0;let _0x318b0b=_0x130d[_0x11eac8];return _0x318b0b;};import{Plugin as _0x3bd050,PendingActions as _0xe2e500}from'ckeditor5/src/core';import{LiveRange as _0x193c99}from'ckeditor5/src/engine';import{CKEditorError as _0x9c88af,uid as _0xb76451,priorities as _0x33cdd2,logWarning as _0x44a3a4}from'ckeditor5/src/utils';import{toWidget as _0x2554e9}from'ckeditor5/src/widget';import{Users as _0x4ba8f1,hashObject as _0x32b850}from'ckeditor5-collaboration/src/collaboration-core';import _0x5d1eae from'./commands/trackchangescommand';import _0xd041ae from'./commands/acceptsuggestioncommand';import _0x494d25 from'./commands/discardsuggestioncommand';import _0x46f959 from'./commands/executeonallsuggestionscommand';import _0x9ce9e9 from'./commands/executeonselectedsuggestionscommand';import _0x114fbf from'./suggestion';import _0x4813a6 from'./suggestiondescriptionfactory';import _0x9adeec from'./integrations/alignment';import _0x5a1a13 from'./integrations/basicstyles';import _0x2eb290 from'./integrations/blockquote';import _0x3dbda1 from'./integrations/ckbox';import _0x19dbc5 from'./integrations/codeblock';import _0x33f937 from'./integrations/comments';import _0x1a0c91 from'./integrations/deletecommand';import _0x3fbe0e from'./integrations/documentlist';import _0x386123 from'./integrations/entercommand';import _0xc3644d from'./integrations/findandreplace';import _0x3602f3 from'./integrations/font';import _0x478dc1 from'./integrations/formatpainter';import _0x39c4b6 from'./integrations/heading';import _0x402de7 from'./integrations/highlight';import _0x317b60 from'./integrations/horizontalline';import _0x41c515 from'./integrations/htmlembed';import _0x5903f2 from'./integrations/image';import _0x3b7b07 from'./integrations/imagereplace';import _0x1262e3 from'./integrations/importword';import _0x3227ff from'./integrations/indent';import _0x43b5f6 from'./integrations/inputcommand';import _0x130998 from'./integrations/link';import _0x70a7e2 from'./integrations/list';import _0x262240 from'./integrations/listproperties';import _0x180dc2 from'./integrations/mediaembed';import _0x4f340b from'./integrations/mention';import _0x58a5aa from'./integrations/pagebreak';import _0x3b255a from'./integrations/paragraph';import _0x5dcf33 from'./integrations/removeformat';import _0x1d503f from'./integrations/restrictededitingmode';import _0x16c956 from'./integrations/shiftentercommand';import _0x3a3f11 from'./integrations/standardeditingmode';import _0x332826 from'./integrations/style';import _0x35b92e from'./integrations/table';import _0x34ca09 from'./integrations/tablemergesplit';import _0x45c19a from'./integrations/tableheadings';import _0x26c513 from'./integrations/tableclipboard';import _0x5a870d from'./integrations/tablecolumnresize';import _0x39ad82 from'./integrations/template';import _0x59d6a2 from'./integrations/tableofcontents';import _0x459ff9 from'./integrations/title';import _0x1f399c from'./integrations/undo';import{getTranslation as _0x228ed3}from'./utils/common-translations';import _0x5a51fd from'./integrations/tablecaption';import _0x22a8d2 from'./integrations/documentlistproperties';import _0x2d808e from'./integrations/tableproperties';import{isEqual as _0x419ddc}from'lodash-es';export default class p extends _0x3bd050{static get['requires'](){return[_0x318b('0x6f'),_0x4ba8f1,_0xe2e500,_0x9adeec,_0x5a1a13,_0x2eb290,_0x3dbda1,_0x19dbc5,_0x33f937,_0x1a0c91,_0x3fbe0e,_0x22a8d2,_0x386123,_0xc3644d,_0x3602f3,_0x478dc1,_0x39c4b6,_0x402de7,_0x317b60,_0x41c515,_0x5903f2,_0x3b7b07,_0x1262e3,_0x3227ff,_0x43b5f6,_0x130998,_0x70a7e2,_0x262240,_0x180dc2,_0x4f340b,_0x58a5aa,_0x3b255a,_0x5dcf33,_0x1d503f,_0x16c956,_0x3a3f11,_0x332826,_0x35b92e,_0x34ca09,_0x45c19a,_0x5a51fd,_0x26c513,_0x5a870d,_0x59d6a2,_0x2d808e,_0x39ad82,_0x459ff9,_0x1f399c];}static get[_0x318b('0x128')](){return'TrackChangesEditing';}constructor(_0x1a0bc5){function _0x570bd3(_0x2f2e94){return _0x2f2e94[_0x318b('0xb5')](_0x5ee0e5=>String['fromCharCode'](_0x5ee0e5))[_0x318b('0x80')]('');}super(_0x1a0bc5),this[_0x318b('0xb7')]('activeMarkers',[]),this['on'](_0x318b('0x98'),(_0x46ce64,_0x405dd5,_0x54f517,_0x569b24)=>{this[_0x318b('0xba')][_0x318b('0x7a')](()=>{for(const _0x57e70d of[..._0x569b24,..._0x54f517])this[_0x318b('0xba')]['markers']['has'](_0x57e70d)&&_0x1a0bc5['editing'][_0x318b('0x29')](_0x57e70d);});}),this['_descriptionFactory']=new _0x4813a6(this[_0x318b('0x12')][_0x318b('0x1b')][_0x318b('0xd0')],this[_0x318b('0x12')]['locale']),this[_0x318b('0x5c')]=null,this['_suggestionFactory']=new Dt(this[_0x318b('0x12')]),this[_0x318b('0x52')]=new Map(),this[_0x318b('0x10b')]=_0x1a0bc5['plugins'][_0x318b('0xbf')]('CommentsRepository'),this[_0x318b('0xf7')]=new Set(),this[_0x318b('0xba')]=this[_0x318b('0x12')][_0x318b('0x1b')],this[_0x318b('0x69')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1a0bc5[_0x318b('0x71')][_0x318b('0xec')](_0x318b('0x9f'),_0x318b('0xdb')),this[_0x318b('0xd6')]=_0x1a0bc5[_0x318b('0x71')]['get'](_0x318b('0x9f')),_0x1a0bc5[_0x318b('0x71')][_0x318b('0xec')](_0x318b('0xab'),!0x0),this[_0x318b('0x7d')]=_0x1a0bc5[_0x318b('0x71')][_0x318b('0xbf')](_0x318b('0xab')),this['trackChangesCommand']=new _0x5d1eae(_0x1a0bc5,this[_0x318b('0xf7')]),this[_0x570bd3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x570bd3([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x32]);}[_0x318b('0x92')](){const _0x4bc095=this[_0x318b('0x12')];_0x4bc095[_0x318b('0x91')][_0x318b('0x99')]('editingDowncast')[_0x318b('0xf8')]({'model':_0x318b('0x132'),'view':_0x692e9a=>{const {id:_0x4cf35c,type:_0x24b2d0}=this[_0x318b('0x45')](_0x692e9a[_0x318b('0x12c')]),_0xc381b=[_0x318b('0x1d'),_0x318b('0x55')+_0x24b2d0];let _0x59d07e=0xbb8;return this[_0x318b('0xe8')][_0x318b('0xa1')](_0x692e9a['markerName'])&&(_0xc381b['push'](_0x318b('0x41')),_0x59d07e=0xbc2),_0x318b('0xaf')==_0x24b2d0&&(_0x59d07e+=0x5),{'classes':_0xc381b,'attributes':{'data-suggestion':_0x4cf35c},'priority':_0x59d07e};}}),_0x4bc095[_0x318b('0x91')]['for'](_0x318b('0x9c'))[_0x318b('0x90')](_0x5cefc6=>{_0x5cefc6['on'](_0x318b('0x68'),(_0x52ce56,_0x2b73d3,_0x13d045)=>{if(!_0x13d045[_0x318b('0x86')][_0x318b('0x15')])return;const _0x5f36a5=_0x2b73d3['item'];if(!_0x5f36a5)return;const _0x10a910=_0x13d045[_0x318b('0xa2')][_0x318b('0xe5')](_0x5f36a5);_0x4bc095[_0x318b('0x1b')][_0x318b('0xd0')][_0x318b('0x2e')](_0x5f36a5)&&_0x10a910&&!_0x10a910[_0x318b('0xe4')](_0x318b('0xfe'))&&_0x10a910['is'](_0x318b('0x33'))&&_0x2554e9(_0x10a910,_0x13d045[_0x318b('0xd7')]);},{'priority':_0x318b('0x3e')});}),_0x4bc095['conversion'][_0x318b('0x99')]('dataDowncast')[_0x318b('0xf8')]({'model':_0x318b('0x132'),'view':(_0x48f22f,_0x2f5961)=>{if(!_0x2f5961[_0x318b('0x86')][_0x318b('0x15')])return null;const {type:_0x27ec40}=this['_splitMarkerName'](_0x48f22f[_0x318b('0x12c')]);return{'classes':[_0x318b('0x1d'),'ck-suggestion-marker-'+_0x27ec40],'priority':0xbb8};}});const _0x5ad1c=({showActiveMarkers:_0x5cda06=!0x0}={})=>(_0x5afb68,_0x5d47fc,_0x3f568a)=>{if(!_0x5d47fc[_0x318b('0xb6')])return;if(_0x5d47fc['item']['is'](_0x318b('0x22')))return void _0x3f568a[_0x318b('0x48')][_0x318b('0x7')](_0x5d47fc['item'],_0x5afb68[_0x318b('0xf9')]);const _0x37c844=_0x3f568a[_0x318b('0xa2')][_0x318b('0xe5')](_0x5d47fc['item']);if(!(_0x5d47fc[_0x318b('0xb6')]['is'](_0x318b('0xa4'))&&_0x4bc095[_0x318b('0x1b')]['schema'][_0x318b('0x75')](_0x5d47fc[_0x318b('0xb6')])&&!_0x37c844[_0x318b('0xe4')](_0x318b('0xbd'))))return;const {id:_0xc5c7da}=this[_0x318b('0x45')](_0x5d47fc['markerName']);_0x3f568a[_0x318b('0xd7')][_0x318b('0xb2')](['ck-suggestion-marker',_0x318b('0x7b')],_0x37c844),_0x3f568a[_0x318b('0xd7')][_0x318b('0xe')](_0x318b('0x4'),_0xc5c7da,_0x37c844),_0x3f568a[_0x318b('0xa2')]['bindElementToMarker'](_0x37c844,_0x5d47fc['markerName']),_0x5cda06&&(this[_0x318b('0xe8')][_0x318b('0xa1')](_0x5d47fc[_0x318b('0x12c')])?_0x3f568a[_0x318b('0xd7')][_0x318b('0xb2')](_0x318b('0x41'),_0x37c844):_0x3f568a[_0x318b('0xd7')][_0x318b('0x5f')]('ck-suggestion-marker--active',_0x37c844));for(const _0x2accdb of _0x4bc095['model'][_0x318b('0x4b')](_0x5d47fc[_0x318b('0xb6')])[_0x318b('0xe2')]())_0x3f568a['consumable'][_0x318b('0x7')](_0x2accdb,_0x5afb68[_0x318b('0xf9')]);_0x3f568a[_0x318b('0x48')]['consume'](_0x5d47fc['item'],_0x5afb68[_0x318b('0xf9')]);};_0x4bc095[_0x318b('0x91')][_0x318b('0x99')](_0x318b('0x9c'))['add'](_0x2f062e=>{_0x2f062e['on']('addMarker:suggestion:formatBlock',(_0x5f8c56,_0x4dab76,_0x185d32)=>{_0x185d32['options']['showSuggestionHighlights']&&_0x5ad1c({'showActiveMarkers':!0x1})(_0x5f8c56,_0x4dab76,_0x185d32);},{'priority':_0x318b('0x102')});}),_0x4bc095[_0x318b('0x91')][_0x318b('0x99')](_0x318b('0x9c'))[_0x318b('0x84')]({'model':'suggestion','view':(_0x121262,_0x1a17ba)=>_0x1a17ba[_0x318b('0x86')]['showSuggestionHighlights']?null:{'group':_0x318b('0x132'),'name':_0x121262['substr'](0xb)}}),_0x4bc095[_0x318b('0x91')]['for'](_0x318b('0x12f'))['elementToElement']({'view':{'name':_0x318b('0x132'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1fabf4,{writer:_0x50a934})=>{let _0x12c36d=_0x318b('0x104')+_0x1fabf4[_0x318b('0x94')](_0x318b('0xda'))+':'+_0x1fabf4[_0x318b('0x94')]('id');return _0x1fabf4[_0x318b('0x94')](_0x318b('0x89'))&&(_0x12c36d+=':'+_0x1fabf4['getAttribute']('marker-count')),_0x50a934[_0x318b('0x1a')](_0x318b('0xc7'),{'data-name':_0x12c36d});}}),_0x4bc095[_0x318b('0x91')][_0x318b('0x99')](_0x318b('0x12f'))[_0x318b('0xc2')]({'view':_0x318b('0x132')}),_0x4bc095['conversion'][_0x318b('0x99')]('editingDowncast')[_0x318b('0x90')](_0x57aa02=>{_0x57aa02['on'](_0x318b('0x30'),_0x5ad1c(),{'priority':_0x318b('0x3e')});}),_0x4bc095['conversion']['for'](_0x318b('0x60'))[_0x318b('0x90')](_0x137a3d=>{_0x137a3d['on'](_0x318b('0x13c'),(_0x240bbe,_0x399edb,_0x2952b5)=>{const _0x3264c9=_0x2952b5[_0x318b('0xa2')][_0x318b('0x34')](_0x399edb[_0x318b('0x12c')]);if(_0x3264c9)for(const _0x1d02c9 of _0x3264c9)_0x1d02c9['getCustomProperty'](_0x318b('0xbd'))||(_0x2952b5['writer'][_0x318b('0x5f')]([_0x318b('0x1d'),_0x318b('0x7b'),_0x318b('0x41')],_0x1d02c9),_0x2952b5[_0x318b('0xd7')]['removeAttribute']('data-suggestion',_0x1d02c9),_0x2952b5['mapper'][_0x318b('0x137')](_0x1d02c9,_0x399edb[_0x318b('0x12c')]));},{'priority':_0x318b('0x3e')});}),_0x4bc095[_0x318b('0x1b')][_0x318b('0x101')][_0x318b('0x18')](_0x43cede=>{let _0x50cde6=!0x1;const _0x26d628=Array[_0x318b('0xeb')](_0x4bc095[_0x318b('0x1b')][_0x318b('0x101')][_0x318b('0x20')][_0x318b('0xcb')]()),_0xf1652=new Set();for(const {name:_0x5e4556,data:_0x247e04}of _0x26d628){const {group:_0x59f495,type:_0x7c53cb,id:_0x266260}=this[_0x318b('0x45')](_0x5e4556);if(_0x318b('0x132')!==_0x59f495)continue;const _0x438448=this[_0x318b('0x52')]['get'](_0x266260);if(null!=_0x247e04[_0x318b('0xdd')]){'formatInline'==_0x7c53cb&&(_0x50cde6=_0x50cde6||Mt(_0x247e04['newRange'],_0x5e4556,_0x43cede,_0x4bc095[_0x318b('0x1b')][_0x318b('0xd0')]));if(_0x247e04[_0x318b('0xdd')][_0x318b('0xae')]||_0x318b('0xf4')==_0x247e04[_0x318b('0xdd')][_0x318b('0x118')][_0x318b('0x110')]||'formatBlock'==_0x7c53cb&&!Nt(_0x247e04[_0x318b('0xdd')])||_0x318b('0xaf')==_0x7c53cb&&!(!_t(_0x4a64ad=_0x247e04[_0x318b('0xdd')])&&!function(_0x43cf19){return _0x43cf19[_0x318b('0xc3')]['parent']==_0x43cf19['end']['nodeBefore']&&_0x43cf19['start'][_0x318b('0xc1')];}(_0x4a64ad)))_0x43cede[_0x318b('0x116')](_0x5e4556),_0x50cde6=!0x0;else{if(!_0x438448||!_0x438448[_0x318b('0x5')])continue;_0xf1652[_0x318b('0x90')](_0x438448);}}}var _0x4a64ad;return _0xf1652[_0x318b('0xb3')]>0x0&&(_0x50cde6=!!this[_0x318b('0x40')](_0xf1652)||_0x50cde6),_0x50cde6;}),_0x4bc095['model'][_0x318b('0x101')][_0x318b('0x18')](_0x44dbb9=>{let _0x2ea569=!0x1;for(const _0x402c47 of _0x4bc095[_0x318b('0x1b')][_0x318b('0x101')]['differ']['getChanges']()){if(_0x318b('0x8c')!=_0x402c47[_0x318b('0x53')])continue;const _0x51cafb=_0x402c47[_0x318b('0x21')][_0x318b('0x134')](_0x402c47[_0x318b('0x70')]);if(_0x51cafb[_0x318b('0xc1')])for(const _0x3f817a of this[_0x318b('0x52')][_0x318b('0x133')]()){if(_0x3f817a[_0x318b('0x126')]||!_0x3f817a[_0x318b('0x5')])continue;if('formatBlock'!=_0x3f817a['type'])continue;const _0x1f88ad=_0x3f817a[_0x318b('0xdc')]();if(_0x1f88ad[_0x318b('0xc3')]['parent']!=_0x1f88ad[_0x318b('0x120')][_0x318b('0x12a')]&&_0x1f88ad[_0x318b('0x120')][_0x318b('0x124')](_0x402c47[_0x318b('0x21')])){const _0x509b84=_0x4bc095['model'][_0x318b('0x25')](_0x1f88ad[_0x318b('0xc3')],_0x51cafb);_0x44dbb9[_0x318b('0x6b')](_0x3f817a['getFirstMarker'](),{'range':_0x509b84}),_0x2ea569=!0x0;}}}return _0x2ea569;}),_0x4bc095[_0x318b('0x1b')][_0x318b('0x4d')]['on'](_0x318b('0x73'),(_0xd0974d,_0x11783c,_0x588b9a)=>{if(null==_0x588b9a){const {id:_0x13b702}=this['_splitMarkerName'](_0x11783c['name']),_0x3ebb05=this[_0x318b('0x52')]['get'](_0x13b702);_0x3ebb05&&_0x3ebb05[_0x318b('0xd4')](_0x11783c[_0x318b('0xf9')]);}}),_0x4bc095[_0x318b('0x1b')]['document']['on'](_0x318b('0x35'),()=>{const _0x308bfc=Array[_0x318b('0xeb')](_0x4bc095[_0x318b('0x1b')]['document']['differ'][_0x318b('0xcb')]())[_0x318b('0xfd')](_0x175035=>_0x318b('0x132')===this[_0x318b('0x45')](_0x175035[_0x318b('0xf9')])['group']);if(0x0===_0x308bfc[_0x318b('0x70')])return;_0x308bfc[_0x318b('0xc')]((_0x50a88e,_0x1bd24d)=>{const _0x4edec4=_0x50a88e[_0x318b('0x3b')]['oldRange'],_0x4fd1ab=_0x1bd24d[_0x318b('0x3b')][_0x318b('0x26')];return null===_0x4edec4&&null===_0x4fd1ab?0x0:null===_0x4edec4&&null!==_0x4fd1ab?-0x1:null!==_0x4edec4&&null===_0x4fd1ab?0x1:_0x4edec4[_0x318b('0xc3')][_0x318b('0x2b')](_0x4fd1ab['start'])?-0x1:0x1;});const _0x41e0b4=new Set(),_0x505a48=new Set();for(const {name:_0x3de015,data:_0x3496cb}of _0x308bfc){const {id:_0x464767}=this[_0x318b('0x45')](_0x3de015);if(null===_0x3496cb[_0x318b('0x26')]){const _0x491b4d=this[_0x318b('0x93')](_0x3de015);_0x505a48[_0x318b('0x90')](_0x491b4d);}else{const _0x248857=this[_0x318b('0x52')][_0x318b('0xbf')](_0x464767);null!==_0x3496cb[_0x318b('0xdd')]||_0x248857['isInContent']?(_0x41e0b4[_0x318b('0x90')](_0x248857[_0x318b('0x61')]),_0x505a48['add'](_0x248857)):this['_removeSuggestion'](_0x248857);}}_0x505a48[_0x318b('0xb3')]>0x0&&this[_0x318b('0xf')](_0x505a48);for(const _0x257aec of _0x41e0b4)this[_0x318b('0xde')]('suggestionChanged',_0x257aec);}),_0x4bc095[_0x318b('0x1b')]['on'](_0x318b('0x7c'),(_0x4fdc61,_0x2c8754)=>{const _0x4a9fa6=_0x2c8754[0x0];if(!this[_0x318b('0x52')]['size'])return;if(!_0x4a9fa6[_0x318b('0x103')])return;if(_0x4a9fa6[_0x318b('0x82')]['isUndo']||!_0x4a9fa6['batch'][_0x318b('0xd3')])return;let _0x2d6ebe,_0x2e1498;switch(_0x4a9fa6[_0x318b('0x53')]){case _0x318b('0x8c'):_0x2d6ebe=_0x4bc095[_0x318b('0x1b')][_0x318b('0xd')](_0x4a9fa6['position']),_0x2e1498=_0x2d6ebe['getShiftedBy'](_0x4a9fa6[_0x318b('0xbc')]);break;case _0x318b('0x3a'):_0x2d6ebe=_0x4bc095[_0x318b('0x1b')][_0x318b('0xd')](_0x4a9fa6[_0x318b('0x135')]),_0x2e1498=_0x4bc095[_0x318b('0x1b')][_0x318b('0xd')](_0x4a9fa6[_0x318b('0x2c')]);break;case _0x318b('0xb1'):_0x2d6ebe=_0x4bc095[_0x318b('0x1b')][_0x318b('0xd')](_0x4a9fa6[_0x318b('0x109')]),_0x2e1498=_0x2d6ebe['getShiftedBy'](_0x4a9fa6[_0x318b('0xbc')]);break;default:return;}const _0x25441b=_0x4bc095[_0x318b('0x1b')][_0x318b('0x25')](_0x2d6ebe,_0x2e1498);_0x4bc095[_0x318b('0x1b')][_0x318b('0x7a')](()=>{for(const {suggestion:_0x2f04e1,meta:_0x19d584}of this[_0x318b('0xed')](_0x25441b)){if(_0x2f04e1[_0x318b('0x126')])continue;if(_0x318b('0xdf')==_0x2f04e1[_0x318b('0x53')])continue;const _0x348b78=_0x2f04e1[_0x318b('0x3b')]&&_0x2f04e1[_0x318b('0x3b')][_0x318b('0xad')];(_0x318b('0xe6')!=_0x2f04e1[_0x318b('0x53')]||_0x318b('0x3a')==_0x4a9fa6[_0x318b('0x53')]&&!_0x348b78)&&(_0x19d584[_0x318b('0x131')]||_0x318b('0x9d')==_0x2f04e1[_0x318b('0x53')]&&_0x19d584[_0x318b('0x49')]||_0x2f04e1['getFirstRange']()[_0x318b('0x23')](_0x25441b)&&this['_breakSuggestionMarker'](_0x2f04e1,_0x2d6ebe,_0x2e1498));}});},{'priority':_0x318b('0x115')}),_0x4bc095[_0x318b('0x1b')]['on'](_0x318b('0x58'),(_0xfd2688,_0xaf7001)=>{const _0x4e0e45=_0xaf7001[0x0],_0x30530c=_0xaf7001[0x1];if(_0x30530c&&_0x30530c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x318b('0xa3')])return;if(_0x4e0e45[_0x318b('0xae')])return;const _0x3cdf3c=_0x4bc095[_0x318b('0x1b')][_0x318b('0xd0')],{start:_0x5a29a0,end:_0x40c53d}=_0x4e0e45['getFirstRange'](),_0x1a9ab6=_0x5a29a0[_0x318b('0x57')]&&_0x3cdf3c[_0x318b('0xc8')](_0x5a29a0[_0x318b('0x57')])?null:_0x3cdf3c[_0x318b('0x2f')](_0x5a29a0,_0x318b('0x13')),_0x36f022=_0x40c53d['nodeBefore']&&_0x3cdf3c[_0x318b('0xc8')](_0x40c53d[_0x318b('0x63')])?null:_0x3cdf3c[_0x318b('0x2f')](_0x40c53d,_0x318b('0xd9')),_0x1d9d2f=_0x4bc095[_0x318b('0x1b')][_0x318b('0x25')](_0x1a9ab6?_0x1a9ab6[_0x318b('0xc3')]:_0x5a29a0,_0x36f022?_0x36f022[_0x318b('0x120')]:_0x40c53d);_0x4bc095['model'][_0x318b('0x7a')](_0x233489=>{this[_0x318b('0x3f')](_0x1d9d2f);const _0x45008f=_0x4bc095[_0x318b('0x1b')][_0x318b('0xd0')]['getNearestSelectionRange'](_0x1d9d2f[_0x318b('0xc3')]);_0x4e0e45['is']('documentSelection')?_0x233489[_0x318b('0x66')](_0x45008f):_0x4e0e45[_0x318b('0x13a')](_0x45008f);}),_0xfd2688[_0x318b('0x10c')]();},{'priority':_0x33cdd2[_0x318b('0x6a')]+0xa}),_0x4bc095['model']['on']('insertContent',(_0x22136d,_0x239b2c)=>{const _0x158d87=_0x239b2c[_0x239b2c['length']-0x1];_0x158d87&&_0x158d87[_0x318b('0x105')]||this['_isForcedDefaultExecutionBlock']||this[_0x318b('0xa')][_0x318b('0xa3')]&&(_0x4bc095[_0x318b('0x1b')][_0x318b('0x7a')](()=>{let _0x2c9dcb=_0x4bc095[_0x318b('0x1b')][_0x318b('0x11b')](_0x239b2c[0x0],_0x239b2c[0x1],_0x239b2c[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c9dcb)return;_0x22136d[_0x318b('0x39')]=_0x2c9dcb[_0x318b('0x59')]();const _0x199a76=_0x2c9dcb[_0x318b('0x120')][_0x318b('0x63')],_0x397568=_0x4bc095[_0x318b('0x1b')]['schema'];_0x199a76&&_0x397568[_0x318b('0x75')](_0x199a76)&&!_0x397568[_0x318b('0x2e')](_0x199a76)&&(_0x2c9dcb=_0x4bc095[_0x318b('0x1b')][_0x318b('0x25')](_0x2c9dcb[_0x318b('0xc3')],_0x4bc095[_0x318b('0x1b')][_0x318b('0xd')](_0x199a76,_0x318b('0x120')))),this['markInsertion'](_0x2c9dcb);}),_0x22136d[_0x318b('0x10c')]());},{'priority':_0x318b('0x3e')}),this[_0x318b('0x12')][_0x318b('0xff')][_0x318b('0x90')](_0x318b('0x1'),this['trackChangesCommand']),this[_0x318b('0x8a')](_0x318b('0x1'));const _0x17f717=new _0xd041ae(_0x4bc095,this['_suggestions']);_0x4bc095['commands']['add']('acceptSuggestion',_0x17f717),this[_0x318b('0x8a')]('acceptSuggestion');const _0x5b60f0=new _0x494d25(_0x4bc095,this['_suggestions']);_0x4bc095[_0x318b('0xff')][_0x318b('0x90')](_0x318b('0x10d'),_0x5b60f0),this['enableCommand'](_0x318b('0x10d')),_0x4bc095[_0x318b('0xff')][_0x318b('0x90')](_0x318b('0x10e'),new _0x46f959(_0x4bc095,_0x17f717,this['_suggestions'])),this[_0x318b('0x8a')](_0x318b('0x10e')),_0x4bc095[_0x318b('0xff')][_0x318b('0x90')](_0x318b('0x51'),new _0x46f959(_0x4bc095,_0x5b60f0,this[_0x318b('0x52')])),this[_0x318b('0x8a')](_0x318b('0x51')),_0x4bc095[_0x318b('0xff')][_0x318b('0x90')]('acceptSelectedSuggestions',new _0x9ce9e9(_0x4bc095,_0x17f717,this[_0x318b('0x52')])),this[_0x318b('0x8a')]('acceptSelectedSuggestions'),_0x4bc095[_0x318b('0xff')][_0x318b('0x90')](_0x318b('0x114'),new _0x9ce9e9(_0x4bc095,_0x5b60f0,this[_0x318b('0x52')])),this[_0x318b('0x8a')](_0x318b('0x114'));const _0x3d4995=_0x4bc095[_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x6f'));this[_0x318b('0x9a')](_0x3d4995,'addComment',(_0x6d0cca,{threadId:_0x426c80})=>{const _0x2f7221=this['_suggestions'][_0x318b('0xbf')](_0x426c80);_0x2f7221&&_0x2f7221[_0x318b('0x81')]&&0x1===_0x2f7221[_0x318b('0x81')][_0x318b('0x70')]&&this[_0x318b('0xd5')](_0x426c80,{'hasComments':!0x0});},{'priority':'low'}),this[_0x318b('0x9a')](_0x3d4995,_0x318b('0xe9'),(_0x2be456,{threadId:_0x412f3d})=>{const _0x122f2=this[_0x318b('0x52')][_0x318b('0xbf')](_0x412f3d);_0x122f2&&_0x122f2[_0x318b('0x81')]&&!_0x122f2[_0x318b('0x81')][_0x318b('0x70')]&&this[_0x318b('0xd5')](_0x412f3d,{'hasComments':!0x1});},{'priority':_0x318b('0xa5')});}set[_0x318b('0x10f')](_0x36ee25){if(this['_adapter'])throw new _0x9c88af(_0x318b('0xa7'),this);this[_0x318b('0x5c')]=_0x36ee25;}get[_0x318b('0x10f')](){return this[_0x318b('0x5c')];}[_0x318b('0xd8')]({skipNotAttached:_0x1f220e=!0x1,toJSON:_0x1eacbf=!0x1}={}){const _0x492117=[];for(const _0x16e217 of this[_0x318b('0x52')][_0x318b('0x133')]())_0x1f220e&&!_0x16e217[_0x318b('0x5')]||_0x492117[_0x318b('0x2d')](_0x16e217);return _0x1eacbf?_0x492117[_0x318b('0xb5')](_0x16233c=>_0x16233c[_0x318b('0x8b')]()):_0x492117;}['getSuggestion'](_0x102c31){const _0x4c7b05=this[_0x318b('0x52')]['get'](_0x102c31);if(!_0x4c7b05)throw new _0x9c88af(_0x318b('0x11e'),this);return _0x4c7b05;}[_0x318b('0x50')](_0x26057e){return this[_0x318b('0x52')][_0x318b('0x12e')](_0x26057e);}[_0x318b('0xcc')](_0x19770f){const {authorId:_0x158f34,id:_0x11bc2b,attributes:_0x4945f0}=_0x19770f,[_0x38d076,_0x2056a4]=_0x19770f[_0x318b('0x53')][_0x318b('0x3a')](':'),_0x36069e=this[_0x318b('0x52')]['get'](_0x11bc2b)||this[_0x318b('0x141')](_0x38d076,_0x2056a4,_0x11bc2b,_0x158f34,_0x4945f0);if(this['_addThreadToSuggestion'](_0x36069e),this[_0x318b('0x38')](_0x36069e,_0x38d076,_0x2056a4||null,_0x158f34),_0x36069e[_0x318b('0xac')]=_0x19770f['createdAt'],_0x36069e['_isDataLoaded']=!0x0,_0x4945f0&&_0x4945f0['@external']){const _0xe363e0=_0x4945f0[_0x318b('0x31')],_0x5fbe2e=this[_0x318b('0xce')](_0xe363e0[_0x318b('0x4c')]);_0x36069e['authoredAt']=_0xe363e0['createdAt'],_0x36069e[_0x318b('0x32')]=_0x5fbe2e,_0x36069e[_0x318b('0xee')]=!0x0;}else _0x36069e['authoredAt']=_0x19770f[_0x318b('0xac')];switch(_0x19770f[_0x318b('0x3b')]&&(_0x36069e['data']=_0x19770f[_0x318b('0x3b')]),_0x19770f[_0x318b('0x56')]&&(_0x36069e[_0x318b('0x56')]=_0x19770f['attributes']),this[_0x318b('0x5c')]&&this[_0x318b('0x5c')][_0x318b('0x17')]||(_0x36069e[_0x318b('0x44')]=!0x0),this[_0x318b('0x69')][_0x318b('0xbf')](_0x36069e)){case _0x318b('0x139'):this[_0x318b('0x69')][_0x318b('0xb7')](_0x36069e,_0x318b('0x64'));break;case _0x318b('0x95'):_0x36069e[_0x318b('0x5')]?(this[_0x318b('0xf')](new Set([_0x36069e])),this[_0x318b('0x40')](new Set([_0x36069e])),this['_suggestionState'][_0x318b('0xb7')](_0x36069e,_0x318b('0x65')),this[_0x318b('0xde')](_0x318b('0x140'),_0x36069e)):this[_0x318b('0x69')][_0x318b('0xb7')](_0x36069e,'removed');}return _0x36069e;}[_0x318b('0x28')](_0x148782){this[_0x318b('0x105')](()=>{this[_0x318b('0x12')][_0x318b('0x1b')][_0x318b('0x7a')](()=>{for(const _0x3015f7 of _0x148782['getAllAdjacentSuggestions']())_0x3015f7['accept']();});});}[_0x318b('0x10d')](_0x127a3b){this[_0x318b('0x105')](()=>{this[_0x318b('0x12')][_0x318b('0x1b')][_0x318b('0x7a')](()=>{for(const _0xd659e2 of _0x127a3b[_0x318b('0x96')]())_0xd659e2[_0x318b('0x9b')]();});});}['enableCommand'](_0x57062a,_0x1750bd){const _0x1ed9fe=this[_0x318b('0x12')][_0x318b('0xff')]['get'](_0x57062a);if(!_0x1ed9fe)throw new _0x9c88af(_0x318b('0x129'),this,{'commandName':_0x57062a});this[_0x318b('0xf7')][_0x318b('0x90')](_0x1ed9fe),_0x1750bd&&_0x1ed9fe['on']('execute',(_0x46786b,_0x5c6ecd)=>{this[_0x318b('0xa')][_0x318b('0xa3')]&&(this[_0x318b('0xb4')]||_0x5c6ecd[_0x318b('0x70')]>0x0&&_0x5c6ecd[_0x5c6ecd[_0x318b('0x70')]-0x1]&&_0x5c6ecd[_0x5c6ecd[_0x318b('0x70')]-0x1][_0x318b('0x105')]||(_0x1750bd((..._0x33a288)=>_0x1ed9fe[_0x318b('0xea')](..._0x33a288,{'forceDefaultExecution':!0x0}),..._0x5c6ecd),_0x46786b[_0x318b('0x10c')]()));},{'priority':'high'});}[_0x318b('0x105')](_0x1640d4){let _0x1cc44c,_0x340f6e;const _0x37f76a=this[_0x318b('0xb4')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1cc44c=_0x1640d4();}catch(_0x32581e){_0x340f6e=_0x32581e;}return _0x37f76a||(this[_0x318b('0xb4')]=!0x1),_0x340f6e&&_0x9c88af[_0x318b('0x24')](_0x340f6e,this),_0x1cc44c;}['markInsertion'](_0x1b6ac0,_0x3e3543=null,_0x4f4a6d={}){if(_0x1b6ac0['isCollapsed'])return null;const _0xd51f90=this[_0x318b('0x12')][_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x88'))['me'];for(const {suggestion:_0x3bf2b6,meta:_0x2c7fe7}of this['_findSuggestions'](_0x1b6ac0,_0x318b('0x9d')))if(_0x2c7fe7[_0x318b('0x49')]){if(!_0x2c7fe7['isNextTo']){if(_0x2c7fe7[_0x318b('0x131')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x3bf2b6,_0x4f4a6d))continue;return _0x3bf2b6;}if(Ut(_0x3bf2b6,_0x4f4a6d))return _0x3bf2b6;this['_breakSuggestionMarker'](_0x3bf2b6,_0x1b6ac0[_0x318b('0xc3')],_0x1b6ac0[_0x318b('0x120')]);break;}if(_0x3e3543==_0x3bf2b6[_0x318b('0x85')]&&Ut(_0x3bf2b6,_0x4f4a6d)){const _0x45c7e5=_0x3bf2b6[_0x318b('0xdc')]();return _0x45c7e5['start']['isEqual'](_0x1b6ac0[_0x318b('0x120')])?this[_0x318b('0x79')](_0x3bf2b6,this[_0x318b('0xba')]['createRange'](_0x1b6ac0[_0x318b('0xc3')],_0x45c7e5[_0x318b('0x120')])):this[_0x318b('0x79')](_0x3bf2b6,this[_0x318b('0xba')][_0x318b('0x25')](_0x45c7e5[_0x318b('0xc3')],_0x1b6ac0[_0x318b('0x120')])),_0x3bf2b6;}}const _0x2cb7af=_0xb76451(),_0x2f9b52=_0xd51f90['id'],_0x51fe2c=_0x3e3543?_0x318b('0x13d')+_0x3e3543:'insertion',_0x3962ca=this[_0x318b('0x3d')]({'id':_0x2cb7af,'type':_0x51fe2c,'createdAt':new Date(),'authorId':_0x2f9b52,'attributes':_0x4f4a6d});return this[_0x318b('0xc4')](_0x51fe2c,_0x2cb7af,_0x2f9b52,_0x1b6ac0),_0x3962ca;}[_0x318b('0xcf')](_0x321345,_0x42174e='multi',_0x347e2e={}){const _0x407a6c=this[_0x318b('0x12')][_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x88'))['me'],_0x489e61=this[_0x318b('0xf3')][_0x318b('0x100')](_0x318b('0x9d'),_0x42174e,_0x318b('0x80'));for(const _0x37b736 of this[_0x318b('0xd8')]())if(_0x37b736['author']['id']==_0x407a6c['id']&&_0x318b('0x9d')==_0x37b736['type']&&_0x37b736[_0x318b('0x85')]==_0x42174e&&Ut(_0x37b736,_0x347e2e)&&(_0x489e61(_0x37b736[_0x318b('0x9')](),_0x321345)||_0x489e61(_0x321345,_0x37b736[_0x318b('0x9')]()))){for(const _0x3092db of _0x321345)_0x37b736['addRange'](_0x3092db);return _0x37b736;}for(const {suggestion:_0x3549f1,meta:_0x41cc52}of this['_findSuggestions'](_0x321345,_0x318b('0x9d'))){if(!_0x41cc52[_0x318b('0x49')])continue;if(!this[_0x318b('0x7d')]&&_0x41cc52['containsRangeInObject'])continue;if(!Ut(_0x3549f1,_0x347e2e))continue;let _0x27c4d8=!0x0;for(const _0xfc3724 of _0x3549f1[_0x318b('0x9')]())for(const _0x29ee8c of _0x321345)if(!_0xfc3724[_0x318b('0x23')](_0x29ee8c)){_0x27c4d8=!0x1;break;}if(_0x27c4d8)return _0x3549f1;}const _0x1eb5da=_0xb76451(),_0x10ea05=_0x407a6c['id'],_0x5bda7d='insertion:'+_0x42174e,_0x87f52f=this[_0x318b('0x3d')]({'id':_0x1eb5da,'type':_0x5bda7d,'createdAt':new Date(),'authorId':_0x10ea05,'attributes':_0x347e2e});for(const _0x3daba2 of _0x321345)this[_0x318b('0xc4')](_0x5bda7d,_0x1eb5da,_0x10ea05,_0x3daba2,_0x114fbf[_0x318b('0x76')]());return _0x87f52f;}[_0x318b('0x5b')](_0x2ddd02,_0x235acb,_0x12c158=null,_0x5a4bfc={}){if(_0x12c158=_0x12c158||$t(_0x235acb),_0x2ddd02[_0x318b('0xae')])return null;if(_0x318b('0xca')===this[_0x318b('0xd6')]){const _0x403077=this[_0x318b('0xf3')][_0x318b('0x100')](_0x318b('0xdf'),_0x12c158,_0x318b('0x27'));return this[_0x318b('0x105')](()=>_0x403077([_0x2ddd02],_0x235acb,_0x5a4bfc)),null;}const _0x3d086e=this[_0x318b('0x12')][_0x318b('0x138')][_0x318b('0xbf')]('Users')['me'],_0x32efc7=[];if('always'!==this[_0x318b('0xd6')])for(const {suggestion:_0x14447e,meta:_0x4f261f}of this[_0x318b('0xed')](_0x2ddd02,_0x318b('0x9d')))_0x4f261f[_0x318b('0x49')]&&!_0x4f261f['isInsideObject']&&_0x32efc7[_0x318b('0x2d')](..._0x14447e[_0x318b('0x9')]());const _0x2d489a=function(_0x46cea5,_0x593c6d){const _0x3a89fe=[];for(const _0x34c6ac of _0x593c6d){const _0x244cf8=_0x46cea5[_0x318b('0x12b')](_0x34c6ac);_0x244cf8&&_0x3a89fe[_0x318b('0x2d')](_0x244cf8);}return _0x3a89fe;}(_0x2ddd02,_0x32efc7),_0x5352a6=function(_0x4dd47c,_0x1e917a){const _0x4b9c8b=[_0x4dd47c];for(const _0x10b2e6 of _0x1e917a){let _0x5520c0=0x0;for(;_0x5520c0<_0x4b9c8b[_0x318b('0x70')];){const _0x50af04=_0x4b9c8b[_0x5520c0][_0x318b('0x123')](_0x10b2e6);_0x4b9c8b[_0x318b('0xf2')](_0x5520c0,0x1,..._0x50af04),_0x5520c0+=_0x50af04['length'];}}return _0x4b9c8b;}(_0x2ddd02,_0x32efc7);_0x2d489a[_0x318b('0x70')]&&this['_model'][_0x318b('0x7a')](()=>{for(const _0x55dc23 of _0x2d489a){const _0x14e3e8=this[_0x318b('0xf3')][_0x318b('0x100')](_0x318b('0xdf'),_0x12c158,_0x318b('0x27'));this[_0x318b('0x105')](()=>_0x14e3e8([_0x55dc23],_0x235acb,_0x5a4bfc));}});for(const _0x248805 of _0x5352a6){let _0xc0f90=null,_0x22a080=_0x248805['start'],_0x1aee3d=_0x248805['end'];for(const {suggestion:_0x8e4f99,meta:_0x9303d1}of this[_0x318b('0xed')](_0x248805,_0x318b('0xdf'))){if(!_0x9303d1['isOwn'])continue;if(_0x8e4f99[_0x318b('0x85')]!=_0x12c158)continue;if(!Ut(_0x8e4f99,_0x5a4bfc))continue;const _0xc8b833=_0x8e4f99['getFirstRange']();if(_0xc8b833[_0x318b('0x23')](_0x248805,!0x0))return null;_0x22a080=_0x22a080[_0x318b('0x2b')](_0xc8b833[_0x318b('0xc3')])?_0x22a080:_0xc8b833['start'],_0x1aee3d=_0x1aee3d['isAfter'](_0xc8b833['end'])?_0x1aee3d:_0xc8b833[_0x318b('0x120')],_0xc0f90?_0xc8b833[_0x318b('0xc3')][_0x318b('0x2b')](_0xc0f90['getFirstRange']()['start'])?(_0xc0f90[_0x318b('0x11')](),_0xc0f90=_0x8e4f99):_0x8e4f99[_0x318b('0x11')]():_0xc0f90=_0x8e4f99;}const _0x1f469b=this[_0x318b('0xba')][_0x318b('0x25')](_0x22a080,_0x1aee3d);if(_0xc0f90)this['_setSuggestionRange'](_0xc0f90,_0x1f469b);else{const _0x24044b=_0xb76451(),_0x130eda=_0x3d086e['id'];this[_0x318b('0x3d')]({'id':_0x24044b,'type':'formatInline:'+_0x12c158,'data':_0x235acb,'createdAt':new Date(),'authorId':_0x130eda,'attributes':_0x5a4bfc}),this[_0x318b('0xc4')](_0x318b('0x13e')+_0x12c158,_0x24044b,_0x130eda,_0x1f469b);}}return null;}[_0x318b('0xa9')](_0x20d2d9,_0x58198a,_0x70d472=[],_0x1971a8=null,_0x2a5f1b={}){_0x58198a[_0x318b('0x108')]||(_0x58198a[_0x318b('0x108')]=_0x58198a[_0x318b('0x1f')]),_0x58198a[_0x318b('0xad')]=_0x20d2d9['is']('range'),_0x1971a8=_0x1971a8||$t(_0x58198a);const _0x1c00a8=_0x70d472[_0x318b('0xb5')](_0x236478=>Rt(_0x236478,this['_model'])),_0x528515=_0x20d2d9['is'](_0x318b('0x87'))?_0x20d2d9:Rt(_0x20d2d9,this[_0x318b('0xba')]);if(_0x318b('0xca')===this[_0x318b('0xd6')]){const _0xa03efc=this[_0x318b('0xf3')][_0x318b('0x100')](_0x318b('0xe6'),_0x1971a8,'accept');return this[_0x318b('0x105')](()=>_0xa03efc([_0x528515],_0x58198a,_0x2a5f1b)),null;}_0x1c00a8['push'](_0x528515);let _0x31876e=!0x0;for(const _0x26a5a3 of _0x1c00a8)if(!this[_0x318b('0x112')](_0x26a5a3)){_0x31876e=!0x1;break;}if(_0x31876e&&_0x318b('0xf5')!==this[_0x318b('0xd6')]){const _0x2d95b2=this['_suggestionFactory'][_0x318b('0x100')](_0x318b('0xe6'),_0x1971a8,_0x318b('0x27'));return this[_0x318b('0x105')](()=>_0x2d95b2([_0x528515],_0x58198a,_0x2a5f1b)),null;}let _0x3bf943=null,_0x5046ed=_0x528515[_0x318b('0xc3')],_0x2417b7=_0x528515[_0x318b('0x120')];for(const {suggestion:_0x38b2d2,meta:_0xd868bc}of this[_0x318b('0xed')](_0x528515,_0x318b('0xe6'))){if(!_0xd868bc[_0x318b('0x49')])continue;if(_0xd868bc[_0x318b('0x4f')]||_0xd868bc[_0x318b('0x131')]||_0xd868bc['isInsideObject'])continue;if(_0x38b2d2[_0x318b('0x3b')][_0x318b('0x108')]!=_0x58198a[_0x318b('0x108')])continue;if(!Ut(_0x38b2d2,_0x2a5f1b))continue;const _0x424fcb=_0x38b2d2[_0x318b('0xdc')]();if(_0x38b2d2[_0x318b('0x85')]==_0x1971a8){if(_0x424fcb[_0x318b('0x23')](_0x528515,!0x0))return null;_0x5046ed=_0x5046ed['isBefore'](_0x424fcb[_0x318b('0xc3')])?_0x5046ed:_0x424fcb['start'],_0x2417b7=_0x2417b7[_0x318b('0xfa')](_0x424fcb[_0x318b('0x120')])?_0x2417b7:_0x424fcb['end'],_0x3bf943?_0x424fcb[_0x318b('0xc3')][_0x318b('0x2b')](_0x3bf943[_0x318b('0xdc')]()['start'])?(_0x3bf943[_0x318b('0x11')](),_0x3bf943=_0x38b2d2):_0x38b2d2[_0x318b('0x11')]():_0x3bf943=_0x38b2d2;}else{const _0x5d4db6=_0x528515['getIntersection'](_0x424fcb);this[_0x318b('0xfb')](_0x38b2d2,_0x5d4db6);}}const _0x4e08ec=this['editor'][_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x88'))['me'],_0x4f60c5=_0xb76451(),_0x25dc12=_0x4e08ec['id'];if(_0x3bf943)return this[_0x318b('0x79')](_0x3bf943,this['_model'][_0x318b('0x25')](_0x5046ed,_0x2417b7)),_0x3bf943;{const _0x45647f=this[_0x318b('0x3d')]({'id':_0x4f60c5,'type':_0x318b('0xc6')+_0x1971a8,'data':_0x58198a,'createdAt':new Date(),'authorId':_0x25dc12,'attributes':_0x2a5f1b});return this[_0x318b('0xc4')](_0x318b('0xc6')+_0x1971a8,_0x4f60c5,_0x25dc12,this[_0x318b('0xba')][_0x318b('0x25')](_0x5046ed,_0x2417b7)),_0x45647f;}}[_0x318b('0xbb')](_0x4fff34,_0x3dfa67,_0x18ee75=[],_0x5ada9f=null,_0x5d33c5={}){_0x3dfa67[_0x318b('0x108')]||(_0x3dfa67['formatGroupId']=_0x3dfa67['commandName']);const _0x1293ae=_0x4fff34[0x0];_0x3dfa67[_0x318b('0xad')]=_0x1293ae['is']('range'),_0x5ada9f=_0x5ada9f||$t(_0x3dfa67);const _0x5b939d=_0x18ee75['map'](_0x34d775=>Rt(_0x34d775,this[_0x318b('0xba')])),_0x2ba0c8=_0x1293ae['is'](_0x318b('0x87'))?_0x4fff34:_0x4fff34['map'](_0x3d884c=>Rt(_0x3d884c,this[_0x318b('0xba')]));if(_0x318b('0xca')===this['_trackFormatChanges']){const _0xef6aee=this[_0x318b('0xf3')][_0x318b('0x100')](_0x318b('0xe6'),_0x5ada9f,_0x318b('0x27'));return this['forceDefaultExecution'](()=>_0xef6aee(_0x2ba0c8,_0x3dfa67,_0x5d33c5)),null;}_0x5b939d[_0x318b('0x2d')](..._0x2ba0c8);let _0xf683c9=!0x0;for(const _0x36152c of _0x5b939d)if(!this[_0x318b('0x112')](_0x36152c)){_0xf683c9=!0x1;break;}if(_0xf683c9&&'always'!==this[_0x318b('0xd6')]){const _0x46500b=this[_0x318b('0xf3')][_0x318b('0x100')](_0x318b('0xe6'),_0x5ada9f,_0x318b('0x27'));return this[_0x318b('0x105')](()=>_0x46500b(_0x2ba0c8,_0x3dfa67,_0x5d33c5)),null;}const _0x50128a=this[_0x318b('0x12')][_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x88'))['me'];for(const _0x4380d5 of this[_0x318b('0xd8')]()){if(_0x4380d5[_0x318b('0x32')]['id']!=_0x50128a['id'])continue;if(_0x318b('0xe6')!=_0x4380d5[_0x318b('0x53')]||_0x4380d5[_0x318b('0x3b')][_0x318b('0x108')]!=_0x3dfa67[_0x318b('0x108')])continue;if(!Ut(_0x4380d5,_0x5d33c5))continue;const _0x2c9093=_0x4380d5[_0x318b('0x85')]==_0x5ada9f;for(let _0x52232=0x0;_0x52232<_0x2ba0c8[_0x318b('0x70')];_0x52232++){const _0x5cc284=_0x2ba0c8[_0x52232];for(const _0x4323c3 of _0x4380d5['getMarkers']()){const _0x460ee5=_0x4323c3['getRange']();if(_0x5cc284[_0x318b('0x124')](_0x460ee5)){_0x2c9093?(_0x2ba0c8[_0x318b('0xf2')](_0x52232,0x1),_0x52232--):_0x4380d5[_0x318b('0x116')](_0x4323c3[_0x318b('0xf9')]);break;}}}}if(0x0==_0x2ba0c8[_0x318b('0x70')])return null;const _0x4b1542=this[_0x318b('0xf3')]['getSuggestionCallback'](_0x318b('0xe6'),_0x5ada9f,_0x318b('0x80'));for(const _0x30f0a6 of this[_0x318b('0xd8')]())if(_0x30f0a6[_0x318b('0x32')]['id']==_0x50128a['id']&&'formatBlock'==_0x30f0a6[_0x318b('0x53')]&&_0x30f0a6[_0x318b('0x3b')]['formatGroupId']==_0x3dfa67['formatGroupId']&&_0x30f0a6['subType']==_0x5ada9f&&Ut(_0x30f0a6,_0x5d33c5)&&(_0x4b1542(_0x30f0a6[_0x318b('0x9')](),_0x2ba0c8)||_0x4b1542(_0x2ba0c8,_0x30f0a6['getRanges']()))){for(const _0x46cfc2 of _0x2ba0c8)_0x30f0a6[_0x318b('0x67')](_0x46cfc2);return _0x30f0a6;}const _0x45e385=_0xb76451(),_0x120f9e=_0x50128a['id'],_0x5e4fac=_0x318b('0xc6')+_0x5ada9f,_0x5eda63=this[_0x318b('0x3d')]({'id':_0x45e385,'type':_0x5e4fac,'data':_0x3dfa67,'createdAt':new Date(),'authorId':_0x120f9e,'attributes':_0x5d33c5});for(const _0x3bcf47 of _0x2ba0c8)this['_addSuggestionMarker'](_0x5e4fac,_0x45e385,_0x120f9e,_0x3bcf47,_0x114fbf[_0x318b('0x76')]());return _0x5eda63;}['markDeletion'](_0x440f44,_0x5c195b=null,_0x28d233={}){if(_0x440f44[_0x318b('0xae')])return null;const _0x43f1c7=this[_0x318b('0x12')][_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x88'))['me'],_0x576f8c=new _0x193c99(_0x440f44['start'],_0x440f44[_0x318b('0x120')]);for(const {suggestion:_0x5db04b,meta:_0x480309}of this[_0x318b('0xed')](_0x576f8c,_0x318b('0x9d')))if(_0x480309[_0x318b('0x49')]&&!_0x480309[_0x318b('0x4f')]){if(_0x5db04b['isMultiRange']){const _0xb20061=_0x5db04b[_0x318b('0x9')]()[_0x318b('0xfd')](_0x2cefc5=>'$graveyard'!=_0x2cefc5[_0x318b('0x118')]['rootName']);_0xb20061[_0x318b('0xe3')](_0xfba6a8=>_0x576f8c[_0x318b('0x23')](_0xfba6a8,!0x0))&&_0x5db04b['discard']();if(_0xb20061[_0x318b('0x14')](_0x3c6632=>_0x3c6632[_0x318b('0x23')](_0x576f8c,!0x0))){const _0x534597=this[_0x318b('0xf3')]['getSuggestionCallback']('deletion',_0x5c195b,'accept');return this[_0x318b('0x105')](()=>_0x534597([_0x576f8c],null,_0x28d233)),null;}}else{const _0x1220ef=_0x576f8c[_0x318b('0x12b')](_0x5db04b[_0x318b('0xdc')]());null!==_0x1220ef&&_0x5db04b[_0x318b('0xd2')]([_0x1220ef],null,_0x28d233);}}if(_0x576f8c['detach'](),_0x576f8c[_0x318b('0xae')]||'$graveyard'==_0x576f8c[_0x318b('0x118')]['rootName'])return null;let _0x50523b=null,_0x835718=_0x576f8c[_0x318b('0xc3')],_0x2922a1=_0x576f8c[_0x318b('0x120')];const _0x719280=this[_0x318b('0xed')](_0x576f8c,_0x318b('0xaf'));for(const {suggestion:_0xc97487,meta:_0x4185bc}of _0x719280){const _0x4a4519=this[_0x318b('0xba')][_0x318b('0x25')](_0x835718,_0x2922a1);if(_0x4185bc[_0x318b('0x49')]&&(this[_0x318b('0x7d')]||!_0x4185bc[_0x318b('0x131')]&&!_0x4185bc[_0x318b('0x74')])){if(_0xc97487[_0x318b('0x126')]){if(!Ut(_0xc97487,_0x28d233))continue;let _0x326b8f=!0x0;for(const _0x375ebb of _0xc97487[_0x318b('0x9')]()){if(_0x375ebb[_0x318b('0x23')](_0x4a4519,!0x0))return _0xc97487;_0x4a4519[_0x318b('0x23')](_0x375ebb)||(_0x326b8f=!0x1);}_0x326b8f&&_0xc97487['discard']();}else{const _0x53c810=_0xc97487[_0x318b('0xdc')]();if(_0x53c810[_0x318b('0x23')](_0x4a4519,!0x0))return _0xc97487;if(!Ut(_0xc97487,_0x28d233)){_0x4a4519[_0x318b('0x23')](_0x53c810)?_0xc97487[_0x318b('0x11')]():_0x53c810[_0x318b('0x12d')](_0x835718)?_0x835718=_0x53c810[_0x318b('0x120')]:_0x53c810[_0x318b('0x12d')](_0x2922a1)&&(_0x2922a1=_0x53c810[_0x318b('0xc3')]);continue;}_0x835718=_0x835718[_0x318b('0x2b')](_0x53c810[_0x318b('0xc3')])?_0x835718:_0x53c810[_0x318b('0xc3')],_0x2922a1=_0x2922a1[_0x318b('0xfa')](_0x53c810[_0x318b('0x120')])?_0x2922a1:_0x53c810[_0x318b('0x120')],_0x28d233=Object[_0x318b('0xc0')]({},_0xc97487['attributes']),_0x50523b?_0x53c810[_0x318b('0xc3')][_0x318b('0x2b')](_0x50523b['getFirstRange']()['start'])?(_0x50523b['removeMarkers'](),_0x50523b=_0xc97487):_0xc97487[_0x318b('0x11')]():_0x50523b=_0xc97487;}}}if(_0x50523b)return this[_0x318b('0x79')](_0x50523b,this[_0x318b('0xba')][_0x318b('0x25')](_0x835718,_0x2922a1)),_0x50523b;{const _0xdf437a=_0xb76451(),_0x4f524e=this[_0x318b('0xba')][_0x318b('0x25')](_0x835718,_0x2922a1),_0x320a4a=_0x43f1c7['id'],_0x401898=_0x5c195b?_0x318b('0x43')+_0x5c195b:'deletion',_0x156dee=this[_0x318b('0x3d')]({'id':_0xdf437a,'type':_0x401898,'createdAt':new Date(),'authorId':_0x320a4a,'attributes':_0x28d233});return this[_0x318b('0xc4')](_0x401898,_0xdf437a,_0x320a4a,_0x4f524e),_0x156dee;}}[_0x318b('0x16')](_0x376ea4,_0x344ffe='multi',_0x4519d6={}){const _0x5c561b=this[_0x318b('0x12')][_0x318b('0x138')][_0x318b('0xbf')]('Users')['me'],_0x219717=_0x376ea4[_0x318b('0xb5')](_0x51fe25=>new _0x193c99(_0x51fe25['start'],_0x51fe25[_0x318b('0x120')])),_0x4069df=new Set();for(const {suggestion:_0x404e2f,meta:_0x762136}of this[_0x318b('0xed')](_0x219717,_0x318b('0x9d')))_0x762136[_0x318b('0x49')]&&!_0x762136[_0x318b('0x4f')]&&_0x4069df[_0x318b('0x90')](_0x404e2f);for(const _0x98045a of _0x4069df)if(_0x98045a['isMultiRange']){const _0x3aa590=_0x98045a[_0x318b('0x9')]();(!_0x98045a['attributes']||!_0x98045a[_0x318b('0x56')][_0x318b('0x4e')])&&(_0x3aa590[_0x318b('0xe3')](_0x5a9627=>_0x219717[_0x318b('0x14')](_0x3ca4bf=>_0x3ca4bf['containsRange'](_0x5a9627,!0x0)))&&_0x98045a['discard']());if(_0x219717['every'](_0x1cff33=>_0x3aa590[_0x318b('0x14')](_0x52a312=>_0x52a312['containsRange'](_0x1cff33,!0x0)))){const _0x393525=this['_suggestionFactory'][_0x318b('0x100')]('deletion',_0x344ffe,_0x318b('0x27'));return this[_0x318b('0x105')](()=>_0x393525(_0x376ea4,null,_0x4519d6)),null;}}else{const _0x4a0286=_0x98045a[_0x318b('0xdc')]();_0x219717[_0x318b('0x14')](_0x56e992=>_0x56e992['containsRange'](_0x4a0286,!0x0))&&_0x98045a['discard']();if(_0x219717[_0x318b('0xe3')](_0xd0e39f=>_0x4a0286[_0x318b('0x23')](_0xd0e39f,!0x0))){const _0x395638=this[_0x318b('0xf3')][_0x318b('0x100')](_0x318b('0xaf'),_0x344ffe,'accept');return this['forceDefaultExecution'](()=>_0x395638(_0x219717,null,_0x4519d6)),null;}}const _0x18849a=this[_0x318b('0xf3')]['getSuggestionCallback'](_0x318b('0xaf'),_0x344ffe,'join');let _0x1ba344=null;for(const _0x210db5 of this[_0x318b('0xd8')]())if(_0x210db5[_0x318b('0x32')]['id']==_0x5c561b['id']&&_0x210db5[_0x318b('0x5')]&&_0x318b('0xaf')==_0x210db5[_0x318b('0x53')]&&_0x210db5['subType']==_0x344ffe&&Ut(_0x210db5,_0x4519d6)&&(_0x18849a(_0x210db5['getRanges'](),_0x219717)||_0x18849a(_0x219717,_0x210db5['getRanges']()))){if(_0x1ba344){if(_0x210db5[_0x318b('0x81')]&&_0x210db5['commentThread'][_0x318b('0x70')])continue;for(const _0x90cf8e of _0x210db5['getRanges']())_0x1ba344[_0x318b('0x10')](_0x90cf8e)||_0x1ba344[_0x318b('0x67')](_0x90cf8e);_0x210db5[_0x318b('0x11')]();}else{_0x1ba344=_0x210db5;for(const _0x39f2db of _0x219717)_0x210db5[_0x318b('0x10')](_0x39f2db)||_0x210db5[_0x318b('0x67')](_0x39f2db);}}if(_0x1ba344)return _0x1ba344;_0x4069df[_0x318b('0x136')]();for(const {suggestion:_0x5466f7,meta:_0x5e25d7}of this[_0x318b('0xed')](_0x219717,_0x318b('0xaf')))_0x5e25d7[_0x318b('0x49')]&&(this[_0x318b('0x7d')]||!_0x5e25d7[_0x318b('0x131')]&&!_0x5e25d7[_0x318b('0x74')])&&Ut(_0x5466f7,_0x4519d6)&&_0x4069df['add'](_0x5466f7);for(const _0xe44d83 of _0x4069df){const _0x4c2700=_0xe44d83[_0x318b('0x9')]();if(!_0x4519d6||!_0x4519d6[_0x318b('0x4e')]){if(_0x219717[_0x318b('0xe3')](_0x13d656=>_0x4c2700[_0x318b('0x14')](_0x5c51f8=>_0x5c51f8['containsRange'](_0x13d656,!0x0))))return _0xe44d83;}(!_0xe44d83[_0x318b('0x56')]||!_0xe44d83[_0x318b('0x56')][_0x318b('0x4e')])&&(_0x4c2700[_0x318b('0xe3')](_0x3505ef=>_0x219717[_0x318b('0x14')](_0x19774c=>_0x19774c[_0x318b('0x23')](_0x3505ef,!0x0)))&&_0xe44d83['discard']());}const _0xb39cf0=_0xb76451(),_0x29e88c=_0x5c561b['id'],_0x2bafcf='deletion:'+_0x344ffe,_0x2e41bf=this['_setSuggestionData']({'id':_0xb39cf0,'type':_0x2bafcf,'createdAt':new Date(),'authorId':_0x29e88c,'attributes':_0x4519d6});for(const _0x53f616 of _0x219717)_0x53f616['detach'](),_0x53f616['isCollapsed']||'$graveyard'==_0x53f616['root']['rootName']||this['_addSuggestionMarker'](_0x2bafcf,_0xb39cf0,_0x29e88c,_0x53f616,_0x114fbf['getMultiRangeId']());return _0x2e41bf;}['_setSuggestionRange'](_0x57e6e9,_0x151ec6){const _0x18e9e1=_0x57e6e9['getFirstMarker']();this[_0x318b('0xba')][_0x318b('0x7a')](_0x479097=>{_0x479097[_0x318b('0x6b')](_0x18e9e1,{'range':_0x151ec6});});}[_0x318b('0xaa')](_0x5b796d){const _0xe30a83=_0x5b796d['id'],_0x586e98=this[_0x318b('0x12')][_0x318b('0x71')][_0x318b('0xbf')](_0x318b('0x8e'));this[_0x318b('0x10b')]['hasCommentThread'](_0xe30a83)||this['_commentsRepository']['addCommentThread']({'channelId':_0x586e98,'threadId':_0xe30a83,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d13de=this[_0x318b('0x10b')][_0x318b('0x13f')](_0xe30a83);_0x3d13de[_0x318b('0x117')](_0x318b('0xa6')),_0x3d13de[_0x318b('0xa6')]=!0x1,_0x5b796d['commentThread']=_0x3d13de;}[_0x318b('0x38')](_0x56aff3,_0x2459d4,_0x46a128,_0x466d21){if(_0x56aff3[_0x318b('0x53')]!=_0x2459d4||_0x56aff3[_0x318b('0x85')]!=_0x46a128||_0x56aff3[_0x318b('0x2a')]['id']!=_0x466d21)throw this[_0x318b('0x12')][_0x318b('0x125')](_0x318b('0x7e')),new _0x9c88af(_0x318b('0x7e'),this);}['_cutOutSuggestionMarker'](_0x5e35e7,_0x4a6053){const _0x529ae0=_0x5e35e7[_0x318b('0xdc')]();if(_0x4a6053[_0x318b('0x124')](_0x529ae0))_0x5e35e7[_0x318b('0x11')]();else{if(_0x529ae0[_0x318b('0x23')](_0x4a6053)){const _0x35ecf8=this['_model'][_0x318b('0xd')](_0x4a6053[_0x318b('0xc3')][_0x318b('0x63')],_0x318b('0x120'));this['_setSuggestionRange'](_0x5e35e7,this[_0x318b('0xba')][_0x318b('0x25')](_0x529ae0[_0x318b('0xc3')],_0x35ecf8));const _0x4b0a4c=_0xb76451(),_0x47189d=_0x5e35e7[_0x318b('0x2a')]['id'],_0x315385=_0x5e35e7[_0x318b('0x53')]+':'+_0x5e35e7[_0x318b('0x85')];this[_0x318b('0x3d')]({'id':_0x4b0a4c,'type':_0x315385,'createdAt':new Date(),'authorId':_0x47189d,'data':_0x5e35e7[_0x318b('0x3b')],'attributes':_0x5e35e7['attributes']});const _0x24aba5=this[_0x318b('0xba')][_0x318b('0xd')](_0x4a6053['end'][_0x318b('0x12a')],_0x318b('0xf0')),_0x50d67d=this[_0x318b('0xba')][_0x318b('0x25')](_0x24aba5,_0x529ae0[_0x318b('0x120')]);this[_0x318b('0xc4')](_0x315385,_0x4b0a4c,_0x47189d,_0x50d67d);}else{if(_0x529ae0['containsPosition'](_0x4a6053[_0x318b('0xc3')])){const _0x3a0252=this[_0x318b('0xba')]['createPositionAt'](_0x4a6053[_0x318b('0xc3')][_0x318b('0x63')],_0x318b('0x120'));this['_setSuggestionRange'](_0x5e35e7,this[_0x318b('0xba')]['createRange'](_0x529ae0['start'],_0x3a0252));}else{const _0xcb6cee=this[_0x318b('0xba')]['createPositionAt'](_0x4a6053[_0x318b('0x120')]['parent'],'after');this[_0x318b('0x79')](_0x5e35e7,this[_0x318b('0xba')][_0x318b('0x25')](_0xcb6cee,_0x529ae0[_0x318b('0x120')]));}}}}[_0x318b('0x112')](_0x4e6a4a){for(const {suggestion:_0x10fec3,meta:_0x525824}of this[_0x318b('0xed')](_0x4e6a4a,_0x318b('0x9d'))){if(!_0x525824[_0x318b('0x49')])continue;const _0x46924b=_0x10fec3[_0x318b('0x9')]();for(const _0x121e5d of _0x46924b)if(!_0x4e6a4a['getDifference'](_0x121e5d)[_0x318b('0x70')])return!0x0;}return!0x1;}[_0x318b('0xfc')](_0x1a5780){const _0x3338d7=this[_0x318b('0x12')]['plugins'][_0x318b('0xbf')](_0x318b('0x88'))[_0x318b('0x11c')](_0x1a5780);if(!_0x3338d7)throw new _0x9c88af('track-changes-user-not-found',this);return _0x3338d7;}[_0x318b('0xce')](_0x26f081){const _0x32cb49=this['editor'][_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x88')),_0x4cc2a3=_0x32b850(_0x318b('0xcd')+_0x26f081),_0x2457ff=_0x32cb49[_0x318b('0x11c')](_0x4cc2a3);return _0x2457ff||_0x32cb49['addUser']({'id':_0x4cc2a3,'name':_0x26f081});}[_0x318b('0x141')](_0x12e4d4,_0x4a58b3,_0xa9b8b0,_0x10fc3d,_0x50fc27){const _0x579580=this[_0x318b('0xfc')](_0x10fc3d),_0x119728=this[_0x318b('0xf3')]['buildSuggestion'](_0x12e4d4,_0x4a58b3,_0xa9b8b0,_0x579580,_0x50fc27,_0x55c658=>this[_0x318b('0xd5')](_0xa9b8b0,{'attributes':_0x55c658}));return this['listenTo'](_0x119728,_0x318b('0x27'),()=>{this[_0x318b('0xd5')](_0xa9b8b0,{'state':'accepted'});},{'priority':_0x318b('0x3e')}),this[_0x318b('0x9a')](_0x119728,_0x318b('0x9b'),()=>{this['_updateSuggestionData'](_0xa9b8b0,{'state':_0x318b('0x113')});},{'priority':'high'}),this['_suggestions']['set'](_0xa9b8b0,_0x119728),this[_0x318b('0x69')][_0x318b('0xb7')](_0x119728,_0x318b('0x139')),_0x119728;}['_splitMarkerName'](_0x619ad4){const _0x302035=_0x619ad4[_0x318b('0x3a')](':');return{'group':_0x302035[0x0],'type':_0x302035[0x1],'subType':_0x302035[_0x318b('0x70')]>=0x5?_0x302035[0x2]:null,'id':_0x302035[_0x318b('0x70')]<0x5?_0x302035[0x2]:_0x302035[0x3],'authorId':_0x302035[_0x318b('0x70')]<0x5?_0x302035[0x3]:_0x302035[0x4],'markerCount':0x6==_0x302035[_0x318b('0x70')]?_0x302035[0x5]:null};}[_0x318b('0xd1')](_0xaf5b25,_0x260fea,_0x5c6a99){const _0x4ad318=_0xaf5b25[_0x318b('0xdc')](),_0x5b1071=_0x4ad318[_0x318b('0xc3')],_0x4b4b34=_0x4ad318[_0x318b('0x120')];this[_0x318b('0x79')](_0xaf5b25,this['_model'][_0x318b('0x25')](_0x5b1071,_0x260fea));const _0x59aff5=_0xb76451(),_0x43a0de=_0xaf5b25['creator']['id'],_0x2bc103=_0xaf5b25[_0x318b('0x53')]+(_0xaf5b25['subType']?':'+_0xaf5b25[_0x318b('0x85')]:'');this[_0x318b('0x3d')]({'id':_0x59aff5,'type':_0x2bc103,'createdAt':new Date(),'authorId':_0x43a0de,'originalSuggestionId':_0xaf5b25['id'],'attributes':_0xaf5b25[_0x318b('0x56')],'data':_0xaf5b25[_0x318b('0x3b')]}),_0x318b('0xe6')==_0xaf5b25[_0x318b('0x53')]&&(_0x5c6a99=this[_0x318b('0xba')][_0x318b('0x83')](_0x5c6a99[_0x318b('0x12a')])),this[_0x318b('0xc4')](_0x2bc103,_0x59aff5,_0x43a0de,this[_0x318b('0xba')][_0x318b('0x25')](_0x5c6a99,_0x4b4b34));}['_findSuggestions'](_0x3efc80,_0x8718cf=null){const _0x22a8dc=[],_0x4cd6f9=this['editor'][_0x318b('0x138')][_0x318b('0xbf')]('Users')['me'];Array[_0x318b('0x8d')](_0x3efc80)||(_0x3efc80=[_0x3efc80]);for(const _0x4c3c06 of this[_0x318b('0xd8')]()){if(!_0x4c3c06[_0x318b('0x5')])continue;if(_0x8718cf&&_0x4c3c06['type']!=_0x8718cf)continue;let _0x5878e4=!0x1;for(const _0x173b36 of _0x4c3c06['getRanges']()){for(const _0x3f2369 of _0x3efc80){const _0x39ac89=_0x3f2369[_0x318b('0xc3')][_0x318b('0x124')](_0x173b36[_0x318b('0x120')])||_0x3f2369[_0x318b('0x120')][_0x318b('0x124')](_0x173b36[_0x318b('0xc3')]);if(_0x39ac89||_0x3f2369[_0x318b('0x12b')](_0x173b36)){const _0x13f06f=_0x3f2369[_0x318b('0x23')](_0x173b36)&&Bt(this[_0x318b('0xba')][_0x318b('0xd0')],_0x173b36['start'],_0x3f2369),_0x1aea5d=_0x173b36['containsRange'](_0x3f2369)&&Bt(this[_0x318b('0xba')][_0x318b('0xd0')],_0x3f2369[_0x318b('0xc3')],_0x173b36);_0x22a8dc[_0x318b('0x2d')]({'suggestion':_0x4c3c06,'meta':{'isOwn':_0x4cd6f9==_0x4c3c06[_0x318b('0x32')],'isNextTo':_0x39ac89,'isInsideObject':_0x13f06f,'containsRangeInObject':_0x1aea5d}}),_0x5878e4=!0x0;break;}}if(_0x5878e4)break;}}return _0x22a8dc;}['_addSuggestionMarker'](_0x39adba,_0x14d673,_0x518c90,_0x2e773f,_0x24bf9f){this['_model'][_0x318b('0x7a')](_0x392e84=>{let _0x2a5841=_0x318b('0x104')+_0x39adba+':'+_0x14d673+':'+_0x518c90;_0x24bf9f&&(_0x2a5841=_0x2a5841+':'+_0x24bf9f),_0x392e84['addMarker'](_0x2a5841,{'range':_0x2e773f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x318b('0x7f')](_0x44985c){const _0x31fe91=_0x44985c[_0x318b('0x5e')],_0x553e8b=_0x44985c[_0x318b('0xb8')];_0x44985c[_0x318b('0x5e')]=null,null!=_0x31fe91&&(_0x31fe91[_0x318b('0xb8')]=null),_0x44985c[_0x318b('0xb8')]=null,null!=_0x553e8b&&(_0x553e8b[_0x318b('0x5e')]=null),_0x318b('0x65')==this[_0x318b('0x69')][_0x318b('0xbf')](_0x44985c)&&(this[_0x318b('0x69')][_0x318b('0xb7')](_0x44985c,_0x318b('0x121')),this['fire'](_0x318b('0x3c'),_0x44985c,_0x31fe91,_0x553e8b));}[_0x318b('0x3d')](_0x558361){const _0x2d4ae7=_0x558361['id'],_0x5f4d3f=this[_0x318b('0xcc')](_0x558361);if(this[_0x318b('0x5c')]&&this[_0x318b('0x5c')]['addSuggestion']){const _0x1124fd=this[_0x318b('0x12')]['plugins'][_0x318b('0xbf')](_0x318b('0x107')),_0x489561=_0x5f4d3f[_0x318b('0xe0')],_0x5ad27d=_0x5f4d3f[_0x318b('0x85')]?_0x5f4d3f[_0x318b('0x53')]+':'+_0x5f4d3f[_0x318b('0x85')]:_0x5f4d3f['type'],_0x549aa7=this['editor']['locale'],_0x258be6=_0x1124fd[_0x318b('0x90')](_0x228ed3(_0x549aa7,_0x318b('0x46'))),_0xec959a={'id':_0x2d4ae7,'type':_0x5ad27d,'hasComments':_0x489561,'data':_0x558361[_0x318b('0x3b')]||null,'originalSuggestionId':_0x558361[_0x318b('0x11d')]||null,'attributes':_0x5f4d3f['attributes']};this[_0x318b('0x5c')][_0x318b('0x17')](_0xec959a)[_0x318b('0x11a')](_0x83e39b=>{_0x5f4d3f['_saved']=!0x0,_0x1124fd[_0x318b('0x130')](_0x258be6),_0x83e39b&&_0x83e39b[_0x318b('0xac')]&&(this[_0x318b('0x52')]['get'](_0x2d4ae7)['createdAt']=_0x83e39b[_0x318b('0xac')]);})[_0x318b('0x11f')](_0x5cb19e=>{throw _0x44a3a4('error-saving-suggestion-data-suggestion-discarded'),this[_0x318b('0x12')][_0x318b('0x1b')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x5f4d3f['discard']();}),_0x5f4d3f[_0x318b('0xb')](),this['_suggestions'][_0x318b('0x5a')](_0x5f4d3f['id']),this[_0x318b('0x69')][_0x318b('0x5a')](_0x5f4d3f),_0x5cb19e;});}return _0x5f4d3f;}['_updateSuggestionData'](_0x3241b,_0x2126bf){const _0x143733=this[_0x318b('0x12')][_0x318b('0x138')][_0x318b('0xbf')](_0x318b('0x107')),_0x38aa5d=this[_0x318b('0x54')](_0x3241b);if(this[_0x318b('0x5c')]&&this[_0x318b('0x5c')]['updateSuggestion']){if(_0x38aa5d[_0x318b('0x44')]){const _0x12ab8b=_0x143733[_0x318b('0x90')](_0x228ed3(this['editor'][_0x318b('0xa8')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x318b('0x2')](_0x3241b,_0x2126bf)['then'](()=>{_0x143733[_0x318b('0x130')](_0x12ab8b);});}else _0x38aa5d['on'](_0x318b('0x122'),()=>{this[_0x318b('0xd5')](_0x3241b,_0x2126bf);});}}['_getSuggestionData'](_0x26259e){if(!this['_adapter']||!this[_0x318b('0x5c')][_0x318b('0x54')])throw new _0x9c88af('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26259e);}[_0x318b('0x93')](_0x13e43f){const {id:_0x188dd0,type:_0xe94466,subType:_0x5e07cb,authorId:_0x1706fd}=this[_0x318b('0x45')](_0x13e43f),_0x1f61f5=this[_0x318b('0x52')][_0x318b('0xbf')](_0x188dd0)||this[_0x318b('0x141')](_0xe94466,_0x5e07cb,_0x188dd0,_0x1706fd,{});switch(this[_0x318b('0x38')](_0x1f61f5,_0xe94466,_0x5e07cb,_0x1706fd),this[_0x318b('0x69')][_0x318b('0xbf')](_0x1f61f5)){case _0x318b('0x139'):this[_0x318b('0xb9')](_0x188dd0)['then'](_0x563b1e=>{let _0x1a9233=Promise[_0x318b('0x106')]();_0x563b1e[_0x318b('0xe0')]&&(_0x1a9233=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor'][_0x318b('0x71')]['get'](_0x318b('0x8e')),'threadId':_0x188dd0})),_0x1a9233['then'](()=>{this[_0x318b('0xcc')](_0x563b1e)[_0x318b('0x44')]=!0x0;});}),this['_suggestionState']['set'](_0x1f61f5,_0x318b('0x95'));break;case _0x318b('0x121'):this[_0x318b('0xd5')](_0x188dd0,{'state':'open'});case'dataReady':this[_0x318b('0x69')][_0x318b('0xb7')](_0x1f61f5,_0x318b('0x65')),this['fire'](_0x318b('0x140'),_0x1f61f5);break;case _0x318b('0x65'):this[_0x318b('0xde')](_0x318b('0xf1'),_0x1f61f5);}return _0x1f61f5[_0x318b('0xd4')](_0x13e43f),_0x1f61f5;}['_refreshSuggestionsChain'](_0x270e67){const _0xafd697=Array[_0x318b('0xeb')](_0x270e67)[_0x318b('0xfd')](_0x518a8e=>!_0x518a8e['isMultiRange']),_0x251c03=this[_0x318b('0xd8')]({'skipNotAttached':!0x0})['filter'](_0x2591bc=>!_0x2591bc[_0x318b('0x126')]),_0x517a47=_0x251c03[_0x318b('0xfd')](_0x1d1862=>!_0x270e67[_0x318b('0x12e')](_0x1d1862)),_0xbd0b91=new Map(_0x251c03[_0x318b('0xb5')](_0x106a43=>[_0x106a43,this[_0x318b('0xf3')][_0x318b('0x100')](_0x106a43[_0x318b('0x53')],_0x106a43['subType'],_0x318b('0x19'))])),_0x40ff0e=new Map(_0x251c03['map'](_0x52ee0e=>[_0x52ee0e,_0x52ee0e['getFirstRange']()])),_0x17f4c3=new Set(),_0x2e6f96=new Set();for(let _0x5cedc7=0x0;_0x5cedc7<_0xafd697['length'];_0x5cedc7++)_0x4b4fa3(_0xafd697[_0x5cedc7],_0xafd697,_0x5cedc7+0x1);for(let _0x48220d=0x0;_0x48220d<_0xafd697['length'];_0x48220d++)_0x4b4fa3(_0xafd697[_0x48220d],_0x517a47,0x0);for(let _0x514b7a=0x0;_0x514b7a<_0xafd697[_0x318b('0x70')];_0x514b7a++){const _0x3fc498=_0xafd697[_0x514b7a];!_0x2e6f96[_0x318b('0x12e')](_0x3fc498)&&_0x3fc498[_0x318b('0x5e')]&&(_0x3fc498[_0x318b('0x5e')][_0x318b('0xb8')]===_0x3fc498&&(_0x3fc498[_0x318b('0x5e')][_0x318b('0xb8')]=null),_0x3fc498[_0x318b('0x5e')]=null),!_0x17f4c3['has'](_0x3fc498)&&_0x3fc498[_0x318b('0xb8')]&&(_0x3fc498[_0x318b('0xb8')][_0x318b('0x5e')]===_0x3fc498&&(_0x3fc498[_0x318b('0xb8')][_0x318b('0x5e')]=null),_0x3fc498[_0x318b('0xb8')]=null);}function _0x4b4fa3(_0x3f2770,_0x18c310,_0x1028f9){for(let _0x22f300=_0x1028f9;_0x22f300<_0x18c310[_0x318b('0x70')];_0x22f300++){const _0xc3871d=_0x13eb31(_0x3f2770,_0x18c310[_0x22f300]);_0xc3871d&&(_0xc3871d[0x0][_0x318b('0xb8')]=_0xc3871d[0x1],_0xc3871d[0x1]['previous']=_0xc3871d[0x0],_0x17f4c3[_0x318b('0x90')](_0xc3871d[0x0]),_0x2e6f96[_0x318b('0x90')](_0xc3871d[0x1]));}}function _0x13eb31(_0x5bcd64,_0x434243){if(_0x5bcd64[_0x318b('0x32')]['id']!==_0x434243[_0x318b('0x32')]['id'])return null;const _0x46c47c=_0xbd0b91['get'](_0x5bcd64)(_0x5bcd64,_0x434243,_0x40ff0e[_0x318b('0xbf')](_0x5bcd64),_0x40ff0e['get'](_0x434243));if(!_0x46c47c)return null;return _0xbd0b91[_0x318b('0xbf')](_0x434243)(_0x5bcd64,_0x434243,_0x40ff0e[_0x318b('0xbf')](_0x5bcd64),_0x40ff0e[_0x318b('0xbf')](_0x434243))?_0x46c47c[0x1][_0x318b('0x81')]&&_0x46c47c[0x1][_0x318b('0x81')][_0x318b('0x70')]?null:_0x46c47c:null;}}[_0x318b('0x40')](_0x38c6c1){const _0x402d83=Array[_0x318b('0xeb')](_0x38c6c1),_0x39728c=this[_0x318b('0xd8')]({'skipNotAttached':!0x0}),_0x4f68a0=_0x39728c[_0x318b('0xfd')](_0x28c804=>!_0x38c6c1[_0x318b('0x12e')](_0x28c804)),_0x247111=new Map(_0x402d83[_0x318b('0xb5')](_0xc5c436=>[_0xc5c436,this['_suggestionFactory'][_0x318b('0x100')](_0xc5c436[_0x318b('0x53')],_0xc5c436[_0x318b('0x85')],'join')])),_0x448a1a=new Map(_0x39728c[_0x318b('0xb5')](_0x3e0214=>[_0x3e0214,_0x3e0214['getRanges']()]));for(let _0x1e4295=0x0;_0x1e4295<_0x402d83['length'];_0x1e4295++){if(_0xb0da1b(this,_0x402d83[_0x1e4295],_0x402d83,_0x1e4295+0x1))return!0x0;}for(let _0x2fa470=0x0;_0x2fa470<_0x402d83[_0x318b('0x70')];_0x2fa470++){if(_0xb0da1b(this,_0x402d83[_0x2fa470],_0x4f68a0,0x0))return!0x0;}return!0x1;function _0xb0da1b(_0x382a1e,_0x4ec231,_0x999551,_0x28f58b){for(let _0x5c006b=_0x28f58b;_0x5c006b<_0x999551['length'];_0x5c006b++){const _0x2580d1=_0x999551[_0x5c006b];if(_0x2580d1['type']!==_0x4ec231[_0x318b('0x53')]||_0x2580d1[_0x318b('0x32')]['id']!==_0x4ec231[_0x318b('0x32')]['id']||_0x2580d1['subType']!==_0x4ec231[_0x318b('0x85')])continue;if(!xt(_0x4ec231,_0x2580d1))continue;const _0x1e26b9=_0x247111['get'](_0x4ec231),_0x1c2b46=_0x448a1a[_0x318b('0xbf')](_0x4ec231),_0x5170ba=_0x448a1a['get'](_0x2580d1),_0x157bd6=_0x4ec231[_0x318b('0x81')]&&_0x4ec231[_0x318b('0x81')]['length'],_0x2dae58=_0x2580d1[_0x318b('0x81')]&&_0x2580d1[_0x318b('0x81')][_0x318b('0x70')];if(!_0x157bd6&&_0x1e26b9(_0x5170ba,_0x1c2b46))return _0x382a1e[_0x318b('0x0')](_0x2580d1,_0x4ec231),_0x448a1a[_0x318b('0x5a')](_0x4ec231),!0x0;if(!_0x2dae58&&_0x1e26b9(_0x1c2b46,_0x5170ba))return _0x382a1e[_0x318b('0x0')](_0x4ec231,_0x2580d1),_0x448a1a[_0x318b('0x5a')](_0x2580d1),!0x0;}return!0x1;}}[_0x318b('0x0')](_0x29ca8e,_0x268aa6){if(_0x29ca8e[_0x318b('0x126')])for(const _0x101b7b of _0x268aa6['getRanges']())_0x29ca8e['addRange'](_0x101b7b);else{const _0x3ca23b=_0x268aa6['getFirstRange']()[_0x318b('0x120')];this[_0x318b('0x79')](_0x29ca8e,this[_0x318b('0xba')][_0x318b('0x25')](_0x29ca8e['getFirstRange']()['start'],_0x3ca23b));}_0x268aa6[_0x318b('0x11')]();}}class Dt{constructor(_0x4310eb){this[_0x318b('0x36')]=_0x4310eb,this[_0x318b('0xba')]=_0x4310eb[_0x318b('0x1b')],this[_0x318b('0x6c')]=new Map(),this[_0x318b('0x1e')]=new Map(),this[_0x318b('0x111')]();}[_0x318b('0x47')](_0x5159c7,_0x409ded,_0x23867a,_0x2c7f87,_0x209b1a,_0x2c6a1d){return new _0x114fbf(this[_0x318b('0xba')],{'type':_0x5159c7,'subType':_0x409ded,'id':_0x23867a,'author':_0x2c7f87,'creator':_0x2c7f87,'attributes':_0x209b1a,'onAttributesChange':_0x2c6a1d,'onAccept':(..._0x537e43)=>this[_0x318b('0x100')](_0x5159c7,_0x409ded,'accept')(..._0x537e43),'onDiscard':(..._0x2c25e1)=>this[_0x318b('0x100')](_0x5159c7,_0x409ded,_0x318b('0x9b'))(..._0x2c25e1)});}[_0x318b('0xa0')](_0x588c4b,_0x3a4298,_0x37bdf7,_0x229e23){const _0x3cc802=_0x588c4b+':'+_0x3a4298+':'+_0x37bdf7;this[_0x318b('0x6c')]['set'](_0x3cc802,_0x229e23);}[_0x318b('0x100')](_0x50859a,_0x36a2e6,_0x3fd1d5){const _0xbbf6f3=_0x50859a+':'+_0x36a2e6+':'+_0x3fd1d5;return this['_customCallbacks'][_0x318b('0xbf')](_0xbbf6f3)||this[_0x318b('0x1e')][_0x318b('0xbf')](_0x50859a+':'+_0x3fd1d5);}[_0x318b('0x111')](){const _0x28cac2=()=>!0x1,_0x306afd=_0x4eaa56=>{_0x4eaa56[_0x318b('0xc')]((_0x2e7cfe,_0x147270)=>_0x2e7cfe[_0x318b('0xc3')][_0x318b('0x2b')](_0x147270[_0x318b('0xc3')])?0x1:-0x1),this[_0x318b('0xba')][_0x318b('0x7a')](_0x2050ba=>{for(const _0xf88163 of _0x4eaa56){let _0x3a2aff;_0x3a2aff=_0xf88163['end'][_0x318b('0xc1')]&&_0xf88163[_0x318b('0x120')]['parent']==_0xf88163[_0x318b('0xc3')][_0x318b('0x57')]?_0x2050ba[_0x318b('0x5d')](_0xf88163[_0x318b('0xc3')][_0x318b('0x57')],'on'):_0x2050ba[_0x318b('0x5d')](_0xf88163),this['_model']['deleteContent'](_0x3a2aff,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b28d0=(_0x45ec07,_0x18db2b)=>{this['_model'][_0x318b('0x7a')](_0x31c5e8=>{const {commandName:_0x567fc9,commandParams:_0x9cc353=[]}=_0x18db2b,_0x431e0f=_0x45ec07[_0x318b('0xb5')](_0x24400c=>(_t(_0x24400c)&&(_0x24400c=this['_model'][_0x318b('0x25')](_0x24400c[_0x318b('0x120')])),_0x24400c))[_0x318b('0xfd')](_0x4e1ccb=>_0x318b('0xf4')!==_0x4e1ccb[_0x318b('0x118')][_0x318b('0x110')]);if(_0x431e0f[_0x318b('0x70')]<0x1)return;const _0x11c459=Array[_0x318b('0xeb')](this[_0x318b('0xba')][_0x318b('0x101')][_0x318b('0x22')]['getRanges']())[_0x318b('0xb5')](_0xc4b5f9=>_0x193c99[_0x318b('0xef')](_0xc4b5f9));_0x31c5e8[_0x318b('0x66')](_0x431e0f);for(const _0x3bd4f4 of this[_0x318b('0x36')][_0x318b('0xff')][_0x318b('0xff')]())_0x3bd4f4[_0x318b('0xbe')]();_0x9cc353[_0x318b('0x2d')]({'forceDefaultExecution':!0x0}),this[_0x318b('0x36')][_0x318b('0xea')](_0x567fc9,..._0x9cc353);const _0x4dae30=_0x11c459[_0x318b('0xfd')](_0x473b72=>_0x318b('0xf4')!=_0x473b72[_0x318b('0x118')][_0x318b('0x110')]);_0x4dae30[_0x318b('0x70')]>0x0&&_0x31c5e8[_0x318b('0x66')](_0x4dae30);for(const _0x4eb2bc of _0x11c459)_0x4eb2bc[_0x318b('0x9e')]();});},_0x25b7a8=(_0x42a31b,_0x47a58d)=>0x1==_0x42a31b[_0x318b('0x70')]&&0x1==_0x47a58d[_0x318b('0x70')]&&_0x42a31b[0x0][_0x318b('0x120')][_0x318b('0x124')](_0x47a58d[0x0][_0x318b('0xc3')]),_0x42bfc7=(_0x39f751,_0x26e698,_0x4e336f,_0x4d7c82)=>jt(_0x39f751,_0x26e698,_0x4e336f,_0x4d7c82,this[_0x318b('0xba')])?[_0x39f751,_0x26e698]:jt(_0x26e698,_0x39f751,_0x4d7c82,_0x4e336f,this[_0x318b('0xba')])?[_0x26e698,_0x39f751]:null;this['_defaultCallbacks'][_0x318b('0xb7')]('insertion:accept',_0x28cac2),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0x72'),_0x306afd),this[_0x318b('0x1e')]['set'](_0x318b('0x6'),_0x25b7a8),this[_0x318b('0x1e')]['set'](_0x318b('0x78'),_0x42bfc7),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0xe1'),_0x306afd),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0xb0'),_0x28cac2),this['_defaultCallbacks'][_0x318b('0xb7')](_0x318b('0x97'),_0x25b7a8),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0xc9'),_0x42bfc7),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b28d0),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0xe7'),_0x28cac2),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0xc5'),_0x25b7a8),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0x10a'),_0x28cac2),this[_0x318b('0x1e')][_0x318b('0xb7')](_0x318b('0x127'),_0x3b28d0),this[_0x318b('0x1e')][_0x318b('0xb7')]('formatBlock:discard',_0x28cac2),this[_0x318b('0x1e')]['set'](_0x318b('0x3'),_0x25b7a8),this[_0x318b('0x1e')][_0x318b('0xb7')]('formatBlock:chain',_0x28cac2);}}function Bt(_0x264209,_0x548f04,_0x455cb6){for(const _0x321402 of _0x548f04['parent'][_0x318b('0x42')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x321402['root']==_0x321402)return!0x1;if(!_0x455cb6[_0x318b('0x77')](_0x321402))return!0x1;if(_0x264209[_0x318b('0x2e')](_0x321402)||_0x264209[_0x318b('0xc8')](_0x321402))return!0x0;}return!0x1;}function _t(_0x2113b7){return _0x2113b7[_0x318b('0x120')][_0x318b('0x12a')]==_0x2113b7[_0x318b('0xc3')][_0x318b('0x57')]&&_0x2113b7['end'][_0x318b('0x1c')];}function Mt(_0x4d7e99,_0x51a42b,_0x392db7,_0x380a62){const _0x22aa47=_0x570339=>!_0x570339[_0x318b('0xb6')]['is'](_0x318b('0x6d'))&&!_0x380a62[_0x318b('0x2e')](_0x570339['item']),_0x10abc0=_0x4d7e99['start'][_0x318b('0x4a')](_0x22aa47),_0x5545b9=_0x4d7e99[_0x318b('0x120')][_0x318b('0x4a')](_0x22aa47,{'direction':_0x318b('0xd9')});return(!_0x4d7e99[_0x318b('0xc3')]['isEqual'](_0x10abc0)||!_0x4d7e99[_0x318b('0x120')][_0x318b('0x124')](_0x5545b9))&&(_0x10abc0['isBefore'](_0x5545b9)?_0x392db7['updateMarker'](_0x51a42b,{'range':_0x392db7['createRange'](_0x10abc0,_0x5545b9)}):_0x392db7[_0x318b('0x116')](_0x51a42b),!0x0);}function $t(_0xdbe39c){return _0x32b850(_0xdbe39c);}function Nt(_0x22faa6){const _0x119426=_0x22faa6[_0x318b('0xc3')]['nodeAfter'];return _0x119426&&_0x119426['is']('element');}function Rt(_0x11f80e,_0x762f59){const _0x1c51f1=_0x762f59[_0x318b('0xd0')]['isObject'](_0x11f80e)||_0x762f59[_0x318b('0xd0')][_0x318b('0x8f')](_0x11f80e);return _0x762f59['createRange'](_0x762f59[_0x318b('0xd')](_0x11f80e,_0x318b('0xf6')),_0x1c51f1?_0x762f59['createPositionAfter'](_0x11f80e):_0x762f59[_0x318b('0xd')](_0x11f80e,_0x318b('0x120')));}function jt(_0x540e5c,_0x1cd303,_0x5e3456,_0x9cc23,_0x3fe09b){if(!xt(_0x540e5c,_0x1cd303))return!0x1;if(_0x5e3456[_0x318b('0x120')][_0x318b('0x124')](_0x9cc23[_0x318b('0xc3')]))return!0x0;if(_0x540e5c[_0x318b('0x53')]!=_0x1cd303[_0x318b('0x53')])return!0x1;if(!_0x5e3456[_0x318b('0x120')][_0x318b('0x119')](_0x9cc23[_0x318b('0xc3')]))return!0x1;const _0x3c4d27=_0x3fe09b['createRange'](_0x5e3456[_0x318b('0x120')],_0x9cc23['start'])[_0x318b('0x62')]();for(const _0x221bab of _0x3c4d27)if([_0x318b('0x13b'),_0x318b('0x6e')][_0x318b('0xa1')](_0x221bab['type'])&&_0x3fe09b['schema'][_0x318b('0xc8')](_0x221bab[_0x318b('0xb6')]))return!0x1;return!0x0;}function xt(_0x30d7e8,_0x4b886b){return!(!_0x30d7e8['_isDataLoaded']||!_0x4b886b[_0x318b('0x37')])&&_0x419ddc(_0x30d7e8[_0x318b('0x56')],_0x4b886b[_0x318b('0x56')]);}function Ut(_0x22c1c1,_0x7c067d){const _0x19b876=Ot(_0x22c1c1[_0x318b('0x56')]),_0x34c164=Ot(_0x7c067d);if(!_0x22c1c1[_0x318b('0x37')])return!0x1;for(const _0x48515f of Object[_0x318b('0x8')](_0x34c164))if(!_0x419ddc(_0x19b876[_0x48515f],_0x34c164[_0x48515f]))return!0x1;return!0x0;}function Ot(_0x6f0f0d){const _0x21379a=Object[_0x318b('0xc0')]({},_0x6f0f0d);return delete _0x21379a[_0x318b('0x4e')],delete _0x21379a['tablePasteChainId'],_0x21379a;}
|