@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240118.0 → 0.0.0-nightly-20240119.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-20240118.0",
3
+ "version": "0.0.0-nightly-20240119.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -40,8 +40,8 @@
40
40
  "CHANGELOG.md"
41
41
  ],
42
42
  "dependencies": {
43
- "ckeditor5": "0.0.0-nightly-20240118.0",
44
- "ckeditor5-collaboration": "0.0.0-nightly-20240118.0",
43
+ "ckeditor5": "0.0.0-nightly-20240119.0",
44
+ "ckeditor5-collaboration": "0.0.0-nightly-20240119.0",
45
45
  "lodash-es": "4.17.21"
46
46
  },
47
47
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f43=['_breakSuggestionMarker','_isDataLoaded','getSuggestions','track-changes-command-not-found','end','previous','assign','model','setSelection','markDeletion','createdAt','getFirstRange','ready','conversion','filter','getMultiRangeId','_inlineAttributeKeys','acceptSuggestion','tablePasteChainId','elementEnd','trackChanges','_rangeIsInLocalUserInsertion','getIntersection','createRangeOn','addSuggestionData','registerPostFixer','value','attribute:accept','howMany','mapper','suggestionUnloaded','multi','unbindElementFromMarkerName','batch','LEAVE','_afterChanges','author','map','suggestion','getWalker','_onDiscard','attributeNewValue','getMarkers','acceptSelectedSuggestions','addRange','stop','_trackFormatChanges','define','size','containsRange','newRange','isCollapsed','createPositionAfter','markAttributeChange','$elementName','discardSuggestion','documentSelection','isEqual','get','split','getNearestSelectionRange','_handleNewSuggestionMarker','collaboration.channelId','showSuggestionHighlights','PENDING_ACTION_SUGGESTION','isObject','change:data','isDocumentOperation','isExternal','announce','$graveyard','addUser','_saved','attribute:join','formatInline:','detach','isTouching','_adapter','upcast','_reduceExistingSuggestions','isBefore','insertion:discard','splitPosition','getUser','_processAttributeChanges','_SUGGESTION_ANNOUNCEMENT','splice','isIntersectingWithRange','insertion:','data','oldRange','dataToMarker','deleteContent','unbind','_recordAttributeSuggestions','low','hasCommentThread','hasSuggestion','_registerBlockAttribute','length','_editor','_refreshSuggestionsChain','track-changes-adapter-missing-getsuggestion','return','after','change:activeMarkers','_defaultCallbacks','for','skipNestingCheck','item','_reduceSuggestionAttributeRange','_isBlockAttribute','markMultiRangeDeletion','getRange','acceptAllSuggestions','$text','updateMarker','deletion:accept','suggestion:attribute:','enableReadOnlyMode','isNextTo','removeMarker:suggestion:attribute','formatInline','subType','_processAttributeSuggestions','backward','isAfter','deletion:discard','getAllAdjacentSuggestions','position','formatInline:accept','add','rootName','change','key','isBlock','_setSuggestionData','removeClass','commentThread','type','containsPosition','attribute','oldValue','FORMATTING','registerCustomCallback','getDifference','addHighlight','set','isLocal','createRange','markerReady','nodeAfter','dataDowncast','formatGroupId','every','isSelectable','toViewElement','forceDefaultExecution','head','isLimit','discard','deletion:','attributes','attribute:discard','track-changes-enable-command-twice','buildSuggestion','attributeKey','range','pluginName','formatInline:discard','getSuggestionCallback','then','move','forward','insertion:chain','removeMarkers','activeMarkers','getChanges','@external','isIntersecting','suggestion:','groupId','ck-suggestion-marker-','consume','formatInline:chain','addCommentThread','editingDowncast','_element','getChangedMarkers','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','join','createRangeIn','accept','toUpperCase','remove','some','rethrowUnexpectedError','init','trackChanges.trackFormatChanges','removeAttribute','hasComments','suggestion-type','_joinSuggestions','high','containerElement','getRanges','markMultiRangeInsertion','insertContent','never','commands','multipleBlocks','catch','warn','isAtStart','includes','isOwn','trackChangesCommand','_registerInlineAttribute','elementStart','containsRangeInObject','enqueueChange','updateSuggestion','unshift','markInsertion','resolve','concat','fromCharCode','addMarkerName','_suggestionFactory','_getSuggestionData','keys','_suggestionState','insertion:join','_cutOutSuggestionMarker','default','getItems','suggestionChanged','_removeSuggestion','comments','_getMarkerAnnouncementText','group','markerName','setTo','removeMarker','createPositionAt','discardSelectedSuggestions','markInlineFormat','fire','deletion:join','editor','_blockAttributeKeys','clone','chain','consumable','_getAttributeKey','_getExternalAuthor','$textProxy','insertion:accept','_checkSuggestionCorrectness','sort','marker-count','_splitMarkerName','isMultiRange','creator','addMarker','addComment','data-suggestion','forEach','addMarker:suggestion:attribute','addSuggestion','$marker','execute','from','_isForcedDefaultExecutionBlock','nodeBefore','widget','always','deletion','getCustomProperty','schema','_addThreadToSuggestion','setAttribute','elementToElement','startsWith','addMarker:suggestion:formatBlock','getLastMatchingPosition','delete','containsItem','plugins','requires','_setSuggestionRange','highest','start','rename','_descriptionFactory','_createSuggestion','ck-suggestion-marker','getAttribute','PendingActions','track-changes-suggestion-data-mismatch','getSuggestion','fetchCommentThread','authoredAt','clear','commandName','_mergeNestedSuggestions','markerToHighlight','listenTo','CommentsRepository','insertion','values','_isRegisteredAttribute','moveTargetPosition','writer','differ','formatBlock','insert','_findSuggestions','isInsideObject','substr','_refreshAttributeSuggestionsChain','substring','name','_addSuggestionMarker','adapter','targetPosition','has','ariaLiveAnnouncer','root','_getAuthorFromId','push','_model','dataReady','enableCommand','Users','isRemovable','find','suggestionLoaded','refresh','_recordAttributeChanges','getFirstMarker','getAncestors','notReady','newValue','_updateSuggestionData','ck-suggestion-marker-formatBlock','formatBlock:discard','options','createSelection','selection','applyOperation','discardAllSuggestions','next','locale','isInContent','update:suggestion','ck-suggestion-marker--active','trackChanges.mergeNestedSuggestions','_joinWithAdjacentSuggestions','_commentsRepository','attributeOldValue','accepted','document','_suggestions','meta','originalSuggestionId','markerNameToElements','config','parent','before','formatBlock:','_customCallbacks','formatBlock:accept','isAtEnd','_enabledCommands','_initAriaMarkerChangeAnnouncements'];(function(_0x3a7cbb,_0x4f43b5){const _0x187100=function(_0x126abb){while(--_0x126abb){_0x3a7cbb['push'](_0x3a7cbb['shift']());}};_0x187100(++_0x4f43b5);}(_0x4f43,0x159));const _0x1871=function(_0x3a7cbb,_0x4f43b5){_0x3a7cbb=_0x3a7cbb-0x0;let _0x187100=_0x4f43[_0x3a7cbb];return _0x187100;};import{Plugin as _0x15ce80,PendingActions as _0x266458}from'ckeditor5/src/core.js';import{LiveRange as _0x190336}from'ckeditor5/src/engine.js';import{CKEditorError as _0x24b5be,uid as _0x3e11ea,priorities as _0x58a9df,logWarning as _0x11b174}from'ckeditor5/src/utils.js';import{toWidget as _0x23a4d1}from'ckeditor5/src/widget.js';import{Users as _0x41debe,hashObject as _0x25e8fa,surroundingMarkersDetector as _0x13cdd5}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x898ff3 from'./commands/trackchangescommand.js';import _0x1d703f from'./commands/acceptsuggestioncommand.js';import _0x80516d from'./commands/discardsuggestioncommand.js';import _0x4ed6df from'./commands/executeonallsuggestionscommand.js';import _0x53036d from'./commands/executeonselectedsuggestionscommand.js';import _0x3e227c from'./suggestion.js';import _0x8982a from'./suggestiondescriptionfactory.js';import _0x232e7b from'./integrations/aiassistant.js';import _0x3146af from'./integrations/alignment.js';import _0x58dd11 from'./integrations/basicstyles.js';import _0x57d49a from'./integrations/blockquote.js';import _0x5587e8 from'./integrations/casechange.js';import _0x4aec43 from'./integrations/ckbox.js';import _0x2bc1d4 from'./integrations/codeblock.js';import _0x579758 from'./integrations/comments.js';import _0x4e84c2 from'./integrations/deletecommand.js';import _0x35e5c9 from'./integrations/list.js';import _0x3f2c9a from'./integrations/listproperties.js';import _0xf31259 from'./integrations/entercommand.js';import _0x5736af from'./integrations/findandreplace.js';import _0x2bfef2 from'./integrations/font.js';import _0xfa2d8c from'./integrations/formatpainter.js';import _0x23b584 from'./integrations/heading.js';import _0x539887 from'./integrations/highlight.js';import _0x49c7a8 from'./integrations/horizontalline.js';import _0x5adafb from'./integrations/htmlembed.js';import _0x2d1ea2 from'./integrations/image.js';import _0x766031 from'./integrations/imagereplace.js';import _0x2a7414 from'./integrations/imagestyle.js';import _0x44c1dd from'./integrations/importword.js';import _0x3853b7 from'./integrations/indent.js';import _0x383cf9 from'./integrations/inputcommand.js';import _0x54c430 from'./integrations/link.js';import _0x4162b0 from'./integrations/legacylist.js';import _0x2ca5c2 from'./integrations/legacylistproperties.js';import _0xd64ba9 from'./integrations/mediaembed.js';import _0x5d266f from'./integrations/mention.js';import _0x48ddee from'./integrations/pagebreak.js';import _0x2c25d2 from'./integrations/paragraph.js';import _0x317528 from'./integrations/removeformat.js';import _0x5a71cb from'./integrations/restrictededitingmode.js';import _0x241ca4 from'./integrations/shiftentercommand.js';import _0x26c029 from'./integrations/standardeditingmode.js';import _0x136bc1 from'./integrations/style.js';import _0x233d68 from'./integrations/table.js';import _0x4b47bd from'./integrations/tablemergesplit.js';import _0x3ac5bf from'./integrations/tableheadings.js';import _0x242328 from'./integrations/tableclipboard.js';import _0x4c8a38 from'./integrations/tablecolumnresize.js';import _0x1dcdc9 from'./integrations/template.js';import _0x3b5be4 from'./integrations/tableofcontents.js';import _0x1b37a0 from'./integrations/title.js';import _0x3230ce from'./integrations/undo.js';import _0x4e7741 from'./integrations/tablecaption.js';import _0x16e642 from'./integrations/tableproperties.js';import{getTranslation as _0x33b9dc}from'./utils/common-translations.js';import{isEqual as _0x373ca2,omit as _0x5377cc}from'lodash-es';export const renameAttributeKey='$elementName';export default class p extends _0x15ce80{static get[_0x1871('0x140')](){return['CommentsRepository',_0x41debe,_0x266458,_0x232e7b,_0x3146af,_0x58dd11,_0x57d49a,_0x4aec43,_0x5587e8,_0x2bc1d4,_0x579758,_0x4e84c2,_0xf31259,_0x5736af,_0x2bfef2,_0xfa2d8c,_0x23b584,_0x539887,_0x49c7a8,_0x5adafb,_0x2d1ea2,_0x2a7414,_0x766031,_0x44c1dd,_0x3853b7,_0x383cf9,_0x4162b0,_0x2ca5c2,_0x54c430,_0x35e5c9,_0x3f2c9a,_0xd64ba9,_0x5d266f,_0x48ddee,_0x2c25d2,_0x317528,_0x5a71cb,_0x241ca4,_0x26c029,_0x136bc1,_0x233d68,_0x4b47bd,_0x3ac5bf,_0x4e7741,_0x242328,_0x4c8a38,_0x3b5be4,_0x16e642,_0x1dcdc9,_0x1b37a0,_0x3230ce];}static get[_0x1871('0xc7')](){return'TrackChangesEditing';}constructor(_0x407ea5){function _0x50dd33(_0x595725){return _0x595725[_0x1871('0x44')](_0x14a435=>String[_0x1871('0x101')](_0x14a435))[_0x1871('0xdd')]('');}super(_0x407ea5),this[_0x1871('0x7d')]=!0x1,this[_0x1871('0xb2')]('activeMarkers',[]),this['on'](_0x1871('0x88'),(_0x3c6440,_0x15a050,_0x4ae201,_0x3dc5e5)=>{this[_0x1871('0x16a')]['change'](()=>{for(const _0x5d5972 of[..._0x3dc5e5,..._0x4ae201])this[_0x1871('0x16a')]['markers'][_0x1871('0x165')](_0x5d5972)&&_0x407ea5['editing']['reconvertMarker'](_0x5d5972);});}),this[_0x1871('0x145')]=new _0x8982a(this[_0x1871('0x118')]['model']['schema'],this[_0x1871('0x118')][_0x1871('0x8')]),this[_0x1871('0x6c')]=null,this['_suggestionFactory']=new Bt(this[_0x1871('0x118')]),this['_suggestions']=new Map(),this[_0x1871('0xe')]=_0x407ea5[_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x153')),this[_0x1871('0x1d')]=new Set(),this[_0x1871('0x16a')]=this[_0x1871('0x118')][_0x1871('0x26')],this['_suggestionState']=new WeakMap(),this[_0x1871('0x130')]=!0x1,this[_0x1871('0x119')]=new Set([_0x1871('0x55')]),this[_0x1871('0x2f')]=new Set(),_0x407ea5[_0x1871('0x16')][_0x1871('0x4e')](_0x1871('0xe5'),_0x1871('0x109')),this[_0x1871('0x4d')]=_0x407ea5[_0x1871('0x16')]['get'](_0x1871('0xe5')),_0x407ea5['config'][_0x1871('0x4e')](_0x1871('0xc'),!0x0),this[_0x1871('0x150')]=_0x407ea5[_0x1871('0x16')]['get'](_0x1871('0xc')),this['trackChangesCommand']=new _0x898ff3(_0x407ea5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x50dd33([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x50dd33([0x34,0x30,0x34,0x38,0x30,0x32,0x33,0x36]);}[_0x1871('0xe4')](){const _0x319ee2=this[_0x1871('0x118')],_0x3be87c=(_0x592a79,_0x397698)=>{if(_0x1871('0xac')!=_0x592a79)return _0x1871('0xd5')+_0x592a79;const _0x36b964=_0x397698[_0x1871('0x5a')]('|')[0x0];return this[_0x1871('0x8e')](_0x36b964)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x319ee2['conversion'][_0x1871('0x8a')](_0x1871('0xd9'))[_0x1871('0x151')]({'model':'suggestion','view':_0x1c4aaa=>{const {id:_0x1086f1,type:_0x169096,subType:_0x43f05b}=this['_splitMarkerName'](_0x1c4aaa[_0x1871('0x110')]),_0x392bbb=[_0x1871('0x147'),_0x3be87c(_0x169096,_0x43f05b)];let _0x367618=0xbb8;return this[_0x1871('0xcf')][_0x1871('0xf5')](_0x1c4aaa[_0x1871('0x110')])&&(_0x392bbb[_0x1871('0x169')](_0x1871('0xb')),_0x367618=0xbc2),_0x1871('0x134')==_0x169096&&(_0x367618+=0x5),{'classes':_0x392bbb,'attributes':{'data-suggestion':_0x1086f1},'priority':_0x367618};}}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xb7'))['add'](_0x35503f=>{_0x35503f['on']('addMarker:suggestion',(_0x3ae932,_0x2f8141,_0x3130ea)=>{if(!_0x3130ea['options'][_0x1871('0x5e')])return;const _0xd3a5b7=_0x2f8141[_0x1871('0x8c')];if(!_0xd3a5b7)return;const _0x16534a=_0x3130ea[_0x1871('0x3c')]['toViewElement'](_0xd3a5b7);_0x319ee2[_0x1871('0x26')][_0x1871('0x136')][_0x1871('0x60')](_0xd3a5b7)&&_0x16534a&&!_0x16534a[_0x1871('0x135')](_0x1871('0x132'))&&_0x16534a['is'](_0x1871('0xeb'))&&_0x23a4d1(_0x16534a,_0x3130ea[_0x1871('0x158')]);},{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xb7'))['markerToHighlight']({'model':'suggestion','view':(_0x3113a0,_0x27cdb6)=>{if(!_0x27cdb6[_0x1871('0x2')][_0x1871('0x5e')])return null;const {type:_0x1239e8,subType:_0x138b7c}=this[_0x1871('0x124')](_0x3113a0[_0x1871('0x110')]);return{'classes':[_0x1871('0x147'),_0x3be87c(_0x1239e8,_0x138b7c)],'priority':0xbb8};}});const _0x1ba69c=({showActiveMarkers:_0x280b2b=!0x0,isAttributeSuggestion:_0x510f32=!0x1}={})=>(_0x450ca1,_0x4df287,_0x5d637e)=>{if(!_0x4df287[_0x1871('0x8c')])return;const {id:_0x256776}=this[_0x1871('0x124')](_0x4df287[_0x1871('0x110')]);if(_0x510f32){const _0x222f6e=this[_0x1871('0x12')]['get'](_0x256776),_0x5a2729=this['_getAttributeKey'](_0x222f6e);if(!this[_0x1871('0x8e')](_0x5a2729))return;}if(_0x4df287['item']['is'](_0x1871('0x4')))return void _0x5d637e['consumable']['consume'](_0x4df287['item'],_0x450ca1[_0x1871('0x161')]);const _0x55fae6=_0x5d637e[_0x1871('0x3c')][_0x1871('0xbb')](_0x4df287['item']);if(_0x4df287[_0x1871('0x8c')]['is']('element')&&_0x319ee2[_0x1871('0x26')][_0x1871('0x136')][_0x1871('0xa6')](_0x4df287['item'])&&!_0x55fae6['getCustomProperty'](_0x1871('0xb1'))){_0x5d637e[_0x1871('0x158')]['addClass']([_0x1871('0x147'),_0x1871('0x0')],_0x55fae6),_0x5d637e['writer'][_0x1871('0x138')](_0x1871('0x129'),_0x256776,_0x55fae6),_0x5d637e[_0x1871('0x3c')]['bindElementToMarker'](_0x55fae6,_0x4df287['markerName']),_0x280b2b&&(this[_0x1871('0xcf')]['includes'](_0x4df287[_0x1871('0x110')])?_0x5d637e['writer']['addClass']('ck-suggestion-marker--active',_0x55fae6):_0x5d637e[_0x1871('0x158')][_0x1871('0xa8')](_0x1871('0xb'),_0x55fae6));for(const _0x1467b9 of _0x319ee2[_0x1871('0x26')][_0x1871('0xde')](_0x4df287[_0x1871('0x8c')])[_0x1871('0x10a')]())_0x5d637e[_0x1871('0x11c')]['consume'](_0x1467b9,_0x450ca1['name']);_0x5d637e['consumable'][_0x1871('0xd6')](_0x4df287['item'],_0x450ca1[_0x1871('0x161')]);}};_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')]('dataDowncast')[_0x1871('0xa2')](_0x7d0456=>{_0x7d0456['on'](_0x1871('0x13b'),(_0x50cb44,_0x1501a3,_0x353292)=>{_0x353292[_0x1871('0x2')][_0x1871('0x5e')]&&_0x1ba69c({'showActiveMarkers':!0x1})(_0x50cb44,_0x1501a3,_0x353292);},{'priority':_0x1871('0x142')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xb7'))[_0x1871('0xa2')](_0x40a6f4=>{_0x40a6f4['on'](_0x1871('0x12b'),(_0x252929,_0x3d34d0,_0xee599c)=>{_0xee599c[_0x1871('0x2')][_0x1871('0x5e')]&&_0x1ba69c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x252929,_0x3d34d0,_0xee599c);},{'priority':_0x1871('0x142')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')]('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x252b78,_0x30aa51)=>_0x30aa51['options'][_0x1871('0x5e')]?null:{'group':'suggestion','name':_0x252b78[_0x1871('0x15e')](0xb)}}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0x6d'))[_0x1871('0x139')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x353638,{writer:_0x5924b9})=>{let _0x481b96='suggestion:'+_0x353638[_0x1871('0x148')](_0x1871('0xe8'))+':'+_0x353638[_0x1871('0x148')]('id');return _0x353638[_0x1871('0x148')]('marker-count')&&(_0x481b96+=':'+_0x353638['getAttribute'](_0x1871('0x123'))),_0x5924b9['createElement'](_0x1871('0x12d'),{'data-name':_0x481b96});}}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0x6d'))[_0x1871('0x7a')]({'view':_0x1871('0x45')}),_0x319ee2['conversion'][_0x1871('0x8a')](_0x1871('0xd9'))['add'](_0x51b49d=>{_0x51b49d['on'](_0x1871('0x13b'),_0x1ba69c(),{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')]['for'](_0x1871('0xd9'))[_0x1871('0xa2')](_0xf02166=>{_0xf02166['on'](_0x1871('0x12b'),_0x1ba69c({'isAttributeSuggestion':!0x0}),{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')]['for'](_0x1871('0xd9'))['add'](_0x38d115=>{_0x38d115['on']('removeMarker:suggestion:formatBlock',(_0xa3563a,_0x3132dc,_0x416736)=>{const _0xa27be=_0x416736[_0x1871('0x3c')][_0x1871('0x15')](_0x3132dc[_0x1871('0x110')]);if(_0xa27be)for(const _0x401651 of _0xa27be)_0x401651[_0x1871('0x135')](_0x1871('0xb1'))||(_0x416736[_0x1871('0x158')][_0x1871('0xa8')](['ck-suggestion-marker',_0x1871('0x0'),'ck-suggestion-marker--active'],_0x401651),_0x416736[_0x1871('0x158')][_0x1871('0xe6')]('data-suggestion',_0x401651),_0x416736['mapper'][_0x1871('0x3f')](_0x401651,_0x3132dc[_0x1871('0x110')]));},{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xd9'))['add'](_0x561376=>{_0x561376['on'](_0x1871('0x98'),(_0x365086,_0x439a1d,_0x23aa80)=>{const _0x496f91=_0x23aa80[_0x1871('0x3c')][_0x1871('0x15')](_0x439a1d[_0x1871('0x110')]);if(!_0x496f91)return;const {id:_0x1e813f}=this[_0x1871('0x124')](_0x439a1d['markerName']),_0x54e34b=this[_0x1871('0x12')]['get'](_0x1e813f),_0x4c1d34=this['_getAttributeKey'](_0x54e34b);if(this[_0x1871('0x8e')](_0x4c1d34))for(const _0x14ab1a of _0x496f91)_0x14ab1a['getCustomProperty']('addHighlight')||(_0x23aa80['writer'][_0x1871('0xa8')](['ck-suggestion-marker',_0x1871('0x0'),_0x1871('0xb')],_0x14ab1a),_0x23aa80['writer']['removeAttribute'](_0x1871('0x129'),_0x14ab1a),_0x23aa80['mapper']['unbindElementFromMarkerName'](_0x14ab1a,_0x439a1d[_0x1871('0x110')]));},{'priority':_0x1871('0xea')});}),_0x319ee2['model'][_0x1871('0x11')]['registerPostFixer'](_0x16094a=>{let _0x11fb8f=!0x1;const _0x471605=Array[_0x1871('0x12f')](_0x319ee2[_0x1871('0x26')]['document'][_0x1871('0x159')][_0x1871('0xdb')]()),_0x5711ed=new Set();for(const {name:_0x21c336,data:_0x1c048c}of _0x471605){const {group:_0x4a5980,type:_0x34c9d9,subType:_0x32f6c2,id:_0x282b21}=this[_0x1871('0x124')](_0x21c336);if(_0x1871('0x45')!==_0x4a5980)continue;const _0x3b4a42=this[_0x1871('0x12')][_0x1871('0x59')](_0x282b21);if(null!=_0x1c048c[_0x1871('0x51')]){'formatInline'==_0x34c9d9&&(_0x11fb8f=_0x11fb8f||Tt(_0x1c048c['newRange'],_0x21c336,_0x16094a,_0x319ee2[_0x1871('0x26')][_0x1871('0x136')]));const _0x3a03d4=_0x1871('0xac')==_0x34c9d9&&this['_isBlockAttribute'](_0x32f6c2[_0x1871('0x5a')]('|')[0x0]);if(_0x1c048c['newRange'][_0x1871('0x52')]||_0x1871('0x65')==_0x1c048c['newRange'][_0x1871('0x167')][_0x1871('0xa3')]||'formatBlock'==_0x34c9d9&&!Vt(_0x1c048c['newRange'])||_0x3a03d4&&!Vt(_0x1c048c['newRange'])||_0x1871('0x134')==_0x34c9d9&&!(!Rt(_0x5e4bb5=_0x1c048c[_0x1871('0x51')])&&!function(_0x26f6eb){return _0x26f6eb[_0x1871('0x143')][_0x1871('0x17')]==_0x26f6eb[_0x1871('0x23')][_0x1871('0x131')]&&_0x26f6eb[_0x1871('0x143')][_0x1871('0x1c')];}(_0x5e4bb5)))_0x16094a[_0x1871('0x112')](_0x21c336),_0x11fb8f=!0x0;else{if(!_0x3b4a42||!_0x3b4a42['isInContent'])continue;_0x5711ed[_0x1871('0xa2')](_0x3b4a42);}}}var _0x5e4bb5;return _0x5711ed['size']>0x0&&(_0x11fb8f=!!this['_joinWithAdjacentSuggestions'](_0x5711ed)||_0x11fb8f),_0x11fb8f;}),_0x319ee2[_0x1871('0x26')][_0x1871('0x11')]['registerPostFixer'](_0x15eca8=>{let _0x50be18=!0x1;for(const _0x483c9d of _0x319ee2['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xd0')]())if(_0x1871('0x15b')==_0x483c9d[_0x1871('0xaa')])for(const _0x15bf49 of this[_0x1871('0x12')][_0x1871('0x155')]()){if(_0x15bf49[_0x1871('0x125')]||!_0x15bf49['isInContent'])continue;const _0x9c15c='formatBlock'==_0x15bf49[_0x1871('0xaa')],_0x42b415=this[_0x1871('0x11d')](_0x15bf49),_0x1cbb52=_0x42b415&&this['_isBlockAttribute'](_0x42b415);if(!_0x9c15c&&!_0x1cbb52)continue;const _0x34955d=_0x15bf49['getFirstRange']();if(_0x34955d[_0x1871('0x143')]['parent']!=_0x34955d['end'][_0x1871('0x17')]&&!_0x34955d[_0x1871('0x23')]['isAtEnd']){const _0x4f5ac0=_0x319ee2['model'][_0x1871('0x113')](_0x34955d[_0x1871('0x143')]['nodeAfter'],_0x1871('0x23')),_0x2600a7=_0x319ee2['model'][_0x1871('0xb4')](_0x34955d[_0x1871('0x143')],_0x4f5ac0);_0x15eca8[_0x1871('0x93')](_0x15bf49[_0x1871('0x173')](),{'range':_0x2600a7}),_0x50be18=!0x0;}}return _0x50be18;}),_0x319ee2[_0x1871('0x26')]['document'][_0x1871('0x38')](_0x1a3805=>this[_0x1871('0x73')](_0x1a3805)),_0x319ee2[_0x1871('0x26')]['document'][_0x1871('0x38')](_0x2e0442=>!_0x2e0442[_0x1871('0x40')]['isLocal']&&this[_0x1871('0x9b')](_0x2e0442)),_0x319ee2[_0x1871('0x26')]['on'](_0x1871('0x42'),()=>{this[_0x1871('0x7d')]=!0x1;}),_0x319ee2[_0x1871('0x26')][_0x1871('0x11')]['on'](_0x1871('0x61'),(_0x44bccc,_0x2035b0)=>{if(!_0x2035b0[_0x1871('0xb3')]||_0x2035b0['isUndo'])return;if(!this[_0x1871('0x7d')])return;const _0x583f67=_0x319ee2['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xd0')]();if(0x0==_0x583f67[_0x1871('0x82')])return;const _0xe2ebbb=[],_0x342933=_0x583f67[_0x1871('0x2d')](_0x4e7998=>_0x1871('0xac')==_0x4e7998[_0x1871('0xaa')]),_0x78a905=_0x583f67[_0x1871('0x2d')](_0x278989=>_0x1871('0x15b')==_0x278989[_0x1871('0xaa')]&&_0x1871('0x92')!=_0x278989['name']),_0x324993=_0x583f67[_0x1871('0x2d')](_0x579cac=>'remove'==_0x579cac['type']&&_0x1871('0x92')!=_0x579cac[_0x1871('0x161')]);for(const _0x21675d of _0x342933)this[_0x1871('0x156')](_0x21675d[_0x1871('0xc5')])&&_0xe2ebbb[_0x1871('0x169')]({'key':_0x21675d[_0x1871('0xc5')],'newValue':_0x21675d['attributeNewValue'],'oldValue':_0x21675d['attributeOldValue'],'range':Ut(_0x21675d[_0x1871('0xc6')],_0x319ee2[_0x1871('0x26')])});for(const _0x299182 of _0x78a905){const _0x4aedce=_0x324993[_0x1871('0x16f')](_0xe74e39=>_0xe74e39[_0x1871('0xda')]===_0x299182[_0x1871('0xda')]);if(_0x4aedce){const _0x304105=Ot(_0x299182[_0x1871('0xa0')][_0x1871('0xb6')],_0x319ee2[_0x1871('0x26')]);_0x4aedce[_0x1871('0x161')]!==_0x299182[_0x1871('0x161')]&&_0xe2ebbb[_0x1871('0x169')]({'key':_0x1871('0x55'),'newValue':_0x299182['name'],'oldValue':_0x4aedce[_0x1871('0x161')],'range':_0x304105});for(const [_0x524f78,_0x3cbbeb]of _0x4aedce['attributes']){if(!this[_0x1871('0x156')](_0x524f78))continue;const _0x13911d=_0x299182['attributes'][_0x1871('0x59')](_0x524f78);_0x3cbbeb!==_0x13911d&&_0xe2ebbb[_0x1871('0x169')]({'key':_0x524f78,'newValue':_0x13911d,'oldValue':_0x3cbbeb,'range':_0x304105});}for(const [_0xa30308,_0x171a9b]of _0x299182[_0x1871('0xc1')])this[_0x1871('0x156')](_0xa30308)&&(_0x4aedce['attributes']['has'](_0xa30308)||_0xe2ebbb[_0x1871('0x169')]({'key':_0xa30308,'newValue':_0x171a9b,'oldValue':null,'range':_0x304105}));}}0x0!=_0xe2ebbb[_0x1871('0x82')]&&_0x319ee2[_0x1871('0x26')][_0x1871('0xfb')](_0x2035b0,_0x317296=>{const _0xc71fd7=_0x3e11ea();for(const {range:_0x1eacf6,key:_0x20c726,oldValue:_0x2be495,newValue:_0x4bb130}of _0xe2ebbb)this[_0x1871('0x54')](_0x1eacf6,_0x20c726,_0x2be495,_0x4bb130,{'groupId':_0xc71fd7});this['_reduceExistingSuggestions'](_0x317296,_0xe2ebbb);});},{'priority':'lowest'}),_0x319ee2[_0x1871('0x26')]['markers']['on'](_0x1871('0xa'),(_0x46bc2a,_0x4f13cf,_0x267a6c)=>{if(null==_0x267a6c){const {id:_0x195621}=this[_0x1871('0x124')](_0x4f13cf[_0x1871('0x161')]),_0x23dc61=this['_suggestions'][_0x1871('0x59')](_0x195621);_0x23dc61&&_0x23dc61[_0x1871('0x102')](_0x4f13cf[_0x1871('0x161')]);}}),_0x319ee2[_0x1871('0x26')][_0x1871('0x11')]['on'](_0x1871('0x61'),()=>{const _0x2235e8=Array['from'](_0x319ee2['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xdb')]())['filter'](_0x2e444b=>_0x1871('0x45')===this['_splitMarkerName'](_0x2e444b[_0x1871('0x161')])[_0x1871('0x10f')]);if(0x0===_0x2235e8['length'])return;_0x2235e8['sort']((_0x126aca,_0x54f22e)=>{const _0x479a9f=_0x126aca[_0x1871('0x78')][_0x1871('0x79')],_0x376220=_0x54f22e[_0x1871('0x78')][_0x1871('0x79')];return null===_0x479a9f&&null===_0x376220?0x0:null===_0x479a9f&&null!==_0x376220?-0x1:null!==_0x479a9f&&null===_0x376220?0x1:_0x479a9f[_0x1871('0x143')][_0x1871('0x6f')](_0x376220[_0x1871('0x143')])?-0x1:0x1;});const _0x483e46=new Set(),_0x5b9a77=new Set();for(const {name:_0x58d7ba,data:_0x28bf44}of _0x2235e8){const {id:_0x2bd32f}=this[_0x1871('0x124')](_0x58d7ba);if(null===_0x28bf44[_0x1871('0x79')]){const _0x21786e=this[_0x1871('0x5c')](_0x58d7ba);_0x5b9a77[_0x1871('0xa2')](_0x21786e);}else{const _0x3e165a=this[_0x1871('0x12')][_0x1871('0x59')](_0x2bd32f);null!==_0x28bf44[_0x1871('0x51')]||_0x3e165a[_0x1871('0x9')]?(_0x483e46[_0x1871('0xa2')](_0x3e165a[_0x1871('0xbd')]),_0x5b9a77[_0x1871('0xa2')](_0x3e165a)):this[_0x1871('0x10c')](_0x3e165a);}}_0x5b9a77[_0x1871('0x4f')]>0x0&&this[_0x1871('0x84')](_0x5b9a77);for(const _0x41b531 of _0x483e46)this['fire'](_0x1871('0x10b'),_0x41b531);}),_0x319ee2[_0x1871('0x26')]['on'](_0x1871('0x5'),(_0x476a47,_0x5ab51b)=>{const _0x4972a8=_0x5ab51b[0x0];if(!this[_0x1871('0x12')][_0x1871('0x4f')])return;if(!_0x4972a8[_0x1871('0x62')])return;if(_0x4972a8['batch']['isUndo']||!_0x4972a8[_0x1871('0x40')]['isLocal'])return;let _0x2ecf11,_0x1a8e9a;switch(_0x4972a8[_0x1871('0xaa')]){case _0x1871('0x15b'):_0x2ecf11=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0xa0')]),_0x1a8e9a=_0x2ecf11['getShiftedBy'](_0x4972a8[_0x1871('0x3b')]);break;case'split':_0x2ecf11=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0x71')]),_0x1a8e9a=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0x157')]);break;case _0x1871('0xcb'):_0x2ecf11=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0x164')]),_0x1a8e9a=_0x2ecf11['getShiftedBy'](_0x4972a8[_0x1871('0x3b')]);break;default:return;}const _0xadc6e4=_0x319ee2[_0x1871('0x26')][_0x1871('0xb4')](_0x2ecf11,_0x1a8e9a);_0x319ee2[_0x1871('0x26')][_0x1871('0xa4')](()=>{for(const {suggestion:_0x5d825f,meta:_0x5761c2}of this[_0x1871('0x15c')](_0xadc6e4)){if(_0x5d825f[_0x1871('0x125')])continue;if('formatInline'==_0x5d825f[_0x1871('0xaa')])continue;const _0x567337=this[_0x1871('0x11d')](_0x5d825f);if(_0x567337&&this['_isBlockAttribute'](_0x567337)&&_0x1871('0x5a')!=_0x4972a8[_0x1871('0xaa')])continue;const _0x5cb802=_0x5d825f[_0x1871('0x78')]&&_0x5d825f[_0x1871('0x78')]['multipleBlocks'];(_0x1871('0x15a')!=_0x5d825f[_0x1871('0xaa')]||_0x1871('0x5a')==_0x4972a8[_0x1871('0xaa')]&&!_0x5cb802)&&(_0x5761c2[_0x1871('0xfa')]||_0x1871('0x154')==_0x5d825f[_0x1871('0xaa')]&&_0x5761c2['isOwn']||_0x5d825f[_0x1871('0x2a')]()[_0x1871('0x50')](_0xadc6e4)&&this[_0x1871('0x1f')](_0x5d825f,_0x2ecf11,_0x1a8e9a));}});},{'priority':'lowest'}),_0x319ee2[_0x1871('0x26')]['on'](_0x1871('0x7b'),(_0x3a584b,_0x19daeb)=>{const _0xa0607b=_0x19daeb[0x0],_0x785a8a=_0x19daeb[0x1];if(_0x785a8a&&_0x785a8a[_0x1871('0xbc')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x1871('0xf7')][_0x1871('0x39')])return;if(_0xa0607b[_0x1871('0x52')])return;const _0x14d0cd=_0x319ee2[_0x1871('0x26')][_0x1871('0x136')],{start:_0x289684,end:_0x85f019}=_0xa0607b[_0x1871('0x2a')](),_0x367493=_0x289684['nodeAfter']&&_0x14d0cd[_0x1871('0xbe')](_0x289684['nodeAfter'])?null:_0x14d0cd[_0x1871('0x5b')](_0x289684,_0x1871('0xcc')),_0x8dd8c0=_0x85f019['nodeBefore']&&_0x14d0cd[_0x1871('0xbe')](_0x85f019[_0x1871('0x131')])?null:_0x14d0cd['getNearestSelectionRange'](_0x85f019,_0x1871('0x9c')),_0x3105cb=_0x319ee2[_0x1871('0x26')][_0x1871('0xb4')](_0x367493?_0x367493[_0x1871('0x143')]:_0x289684,_0x8dd8c0?_0x8dd8c0[_0x1871('0x23')]:_0x85f019);_0x319ee2[_0x1871('0x26')][_0x1871('0xa4')](_0x2601c6=>{this[_0x1871('0x28')](_0x3105cb);const _0x35991e=_0x319ee2['model'][_0x1871('0x136')]['getNearestSelectionRange'](_0x3105cb[_0x1871('0x143')]);_0xa0607b['is'](_0x1871('0x57'))?_0x2601c6[_0x1871('0x27')](_0x35991e):_0xa0607b[_0x1871('0x111')](_0x35991e);}),_0x3a584b[_0x1871('0x4c')]();},{'priority':_0x58a9df['normal']+0xa}),_0x319ee2[_0x1871('0x26')]['on']('insertContent',(_0x4e8640,_0x17a826)=>{const _0x275674=_0x17a826[_0x17a826['length']-0x1];_0x275674&&_0x275674[_0x1871('0xbc')]||this[_0x1871('0x130')]||this[_0x1871('0xf7')][_0x1871('0x39')]&&(_0x319ee2[_0x1871('0x26')][_0x1871('0xa4')](()=>{let _0x3714fb=_0x319ee2[_0x1871('0x26')][_0x1871('0xee')](_0x17a826[0x0],_0x17a826[0x1],_0x17a826[0x2],{'forceDefaultExecution':!0x0});if(!_0x3714fb)return;_0x4e8640[_0x1871('0x86')]=_0x3714fb[_0x1871('0x11a')]();const _0x53689c=_0x3714fb['end'][_0x1871('0x131')],_0x41f37e=_0x319ee2[_0x1871('0x26')]['schema'];_0x53689c&&_0x41f37e[_0x1871('0xa6')](_0x53689c)&&!_0x41f37e[_0x1871('0x60')](_0x53689c)&&(_0x3714fb=_0x319ee2[_0x1871('0x26')][_0x1871('0xb4')](_0x3714fb[_0x1871('0x143')],_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x53689c,'end'))),this['markInsertion'](_0x3714fb);}),_0x4e8640[_0x1871('0x4c')]());},{'priority':_0x1871('0xea')}),this[_0x1871('0x118')]['commands'][_0x1871('0xa2')](_0x1871('0x33'),this[_0x1871('0xf7')]),this[_0x1871('0x16c')](_0x1871('0x33'));const _0x2a1237=new _0x1d703f(_0x319ee2,this[_0x1871('0x12')]);_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')]('acceptSuggestion',_0x2a1237),this[_0x1871('0x16c')](_0x1871('0x30'));const _0x52a61d=new _0x80516d(_0x319ee2,this[_0x1871('0x12')]);_0x319ee2[_0x1871('0xf0')]['add']('discardSuggestion',_0x52a61d),this[_0x1871('0x16c')](_0x1871('0x56')),_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')](_0x1871('0x91'),new _0x4ed6df(_0x319ee2,_0x2a1237,this[_0x1871('0x12')])),this[_0x1871('0x16c')]('acceptAllSuggestions'),_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')](_0x1871('0x6'),new _0x4ed6df(_0x319ee2,_0x52a61d,this['_suggestions'])),this[_0x1871('0x16c')](_0x1871('0x6')),_0x319ee2['commands'][_0x1871('0xa2')](_0x1871('0x4a'),new _0x53036d(_0x319ee2,_0x2a1237,this[_0x1871('0x12')])),this[_0x1871('0x16c')]('acceptSelectedSuggestions'),_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')](_0x1871('0x114'),new _0x53036d(_0x319ee2,_0x52a61d,this[_0x1871('0x12')])),this[_0x1871('0x16c')]('discardSelectedSuggestions');const _0x50c47a=_0x319ee2[_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x153'));this[_0x1871('0x152')](_0x50c47a,_0x1871('0x128'),(_0x137664,{threadId:_0x56aec7})=>{const _0x366e42=this[_0x1871('0x12')][_0x1871('0x59')](_0x56aec7);_0x366e42&&_0x366e42['commentThread']&&0x1===_0x366e42[_0x1871('0xa9')]['length']&&this[_0x1871('0x177')](_0x56aec7,{'hasComments':!0x0});},{'priority':_0x1871('0x7e')}),this[_0x1871('0x152')](_0x50c47a,'removeComment',(_0x52cfd2,{threadId:_0x182fce})=>{const _0x1b763a=this[_0x1871('0x12')]['get'](_0x182fce);_0x1b763a&&_0x1b763a[_0x1871('0xa9')]&&!_0x1b763a['commentThread'][_0x1871('0x82')]&&this['_updateSuggestionData'](_0x182fce,{'hasComments':!0x1});},{'priority':_0x1871('0x7e')});}set[_0x1871('0x163')](_0x135905){if(this[_0x1871('0x6c')])throw new _0x24b5be('track-changes-adapter-already-set',this);this[_0x1871('0x6c')]=_0x135905;}get[_0x1871('0x163')](){return this['_adapter'];}[_0x1871('0x21')]({skipNotAttached:_0xd2e876=!0x1,toJSON:_0x122757=!0x1}={}){const _0xcb7a4a=[];for(const _0x3903cf of this['_suggestions'][_0x1871('0x155')]())_0xd2e876&&!_0x3903cf[_0x1871('0x9')]||_0xcb7a4a[_0x1871('0x169')](_0x3903cf);return _0x122757?_0xcb7a4a[_0x1871('0x44')](_0x2a5ff8=>_0x2a5ff8['toJSON']()):_0xcb7a4a;}['getSuggestion'](_0x124ed5){const _0x33c738=this['_suggestions']['get'](_0x124ed5);if(!_0x33c738)throw new _0x24b5be('track-changes-suggestion-not-found',this);return _0x33c738;}[_0x1871('0x80')](_0x1f919c){return this[_0x1871('0x12')][_0x1871('0x165')](_0x1f919c);}[_0x1871('0x37')](_0x4b2075){const {authorId:_0x279522,id:_0x52618a,attributes:_0x3cfd0f}=_0x4b2075,[_0x5d967d,_0x8f9609]=_0x4b2075[_0x1871('0xaa')][_0x1871('0x5a')](':'),_0x22054a=this[_0x1871('0x12')][_0x1871('0x59')](_0x52618a)||this[_0x1871('0x146')](_0x5d967d,_0x8f9609,_0x52618a,_0x279522,_0x3cfd0f);if(this[_0x1871('0x137')](_0x22054a),this[_0x1871('0x121')](_0x22054a,_0x5d967d,_0x8f9609||null,_0x279522),_0x22054a['createdAt']=_0x4b2075[_0x1871('0x29')],_0x22054a[_0x1871('0x20')]=!0x0,_0x3cfd0f&&_0x3cfd0f[_0x1871('0xd1')]){const _0x470c76=_0x3cfd0f[_0x1871('0xd1')],_0x295486=this[_0x1871('0x11e')](_0x470c76['authorName']);_0x22054a['authoredAt']=_0x470c76['createdAt'],_0x22054a['author']=_0x295486,_0x22054a[_0x1871('0x63')]=!0x0;}else _0x22054a[_0x1871('0x14d')]=_0x4b2075['createdAt'];switch(_0x4b2075[_0x1871('0x78')]&&(_0x22054a['data']=_0x4b2075[_0x1871('0x78')]),_0x4b2075[_0x1871('0xc1')]&&(_0x22054a[_0x1871('0xc1')]=_0x4b2075[_0x1871('0xc1')]),this[_0x1871('0x6c')]&&this[_0x1871('0x6c')]['addSuggestion']||(_0x22054a[_0x1871('0x67')]=!0x0),this[_0x1871('0x106')]['get'](_0x22054a)){case _0x1871('0x175'):this[_0x1871('0x106')][_0x1871('0xb2')](_0x22054a,'dataReady');break;case'markerReady':_0x22054a['isInContent']?(this[_0x1871('0xd')](new Set([_0x22054a])),this[_0x1871('0x84')](new Set([_0x22054a])),this[_0x1871('0x106')][_0x1871('0xb2')](_0x22054a,_0x1871('0x2b')),this['fire'](_0x1871('0x170'),_0x22054a)):this[_0x1871('0x106')][_0x1871('0xb2')](_0x22054a,'removed');}return _0x22054a;}[_0x1871('0x30')](_0x4e6ce8){this[_0x1871('0xbc')](()=>{this[_0x1871('0x118')][_0x1871('0x26')][_0x1871('0xa4')](()=>{for(const _0x155c1a of _0x4e6ce8[_0x1871('0x9f')]())_0x155c1a[_0x1871('0xdf')]();});});}['discardSuggestion'](_0x416082){this[_0x1871('0xbc')](()=>{this[_0x1871('0x118')][_0x1871('0x26')][_0x1871('0xa4')](()=>{for(const _0xf11f99 of _0x416082[_0x1871('0x9f')]())_0xf11f99[_0x1871('0xbf')]();});});}[_0x1871('0x16c')](_0xd8b59a,_0x5e34c0){const _0xc3ebe=this[_0x1871('0x118')][_0x1871('0xf0')][_0x1871('0x59')](_0xd8b59a);if(!_0xc3ebe)throw new _0x24b5be(_0x1871('0x22'),this,{'commandName':_0xd8b59a});if(this[_0x1871('0x1d')][_0x1871('0x165')](_0xc3ebe))throw new _0x24b5be(_0x1871('0xc3'),this,{'commandName':_0xd8b59a});this['_enabledCommands'][_0x1871('0xa2')](_0xc3ebe),_0x5e34c0&&_0xc3ebe['on'](_0x1871('0x12e'),(_0x533ac2,_0x1fc262)=>{this['trackChangesCommand'][_0x1871('0x39')]&&(this[_0x1871('0x130')]||(_0x1fc262[_0x1871('0x82')]>0x0&&_0x1fc262[_0x1fc262[_0x1871('0x82')]-0x1]&&_0x1fc262[_0x1fc262['length']-0x1][_0x1871('0xbc')]?_0x1fc262['pop']():(_0x533ac2[_0x1871('0x86')]=_0x5e34c0((..._0x4f1634)=>_0xc3ebe[_0x1871('0x12e')](..._0x4f1634,{'forceDefaultExecution':!0x0}),..._0x1fc262),_0x533ac2[_0x1871('0x4c')]())));},{'priority':_0x1871('0xea')});}[_0x1871('0xbc')](_0x5d3a33){let _0xdca913,_0x2284de;const _0x14c20e=this[_0x1871('0x130')];this[_0x1871('0x130')]=!0x0;try{_0xdca913=_0x5d3a33();}catch(_0x48a9ae){_0x2284de=_0x48a9ae;}return _0x14c20e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2284de&&_0x24b5be[_0x1871('0xe3')](_0x2284de,this),_0xdca913;}[_0x1871('0xfe')](_0x30182b,_0x2e81ec=null,_0x1dff16={}){if(_0x30182b[_0x1871('0x52')])return null;const _0x204d30=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')]('Users')['me'];for(const {suggestion:_0x274534,meta:_0x179fd7}of this[_0x1871('0x15c')](_0x30182b,_0x1871('0x154')))if(_0x179fd7[_0x1871('0xf6')]){if(!_0x179fd7['isNextTo']){if(_0x179fd7[_0x1871('0xfa')]){if(!this[_0x1871('0x150')]||!Pt(_0x274534,_0x1dff16))continue;return _0x274534;}if(Pt(_0x274534,_0x1dff16))return _0x274534;this[_0x1871('0x1f')](_0x274534,_0x30182b[_0x1871('0x143')],_0x30182b[_0x1871('0x23')]);break;}if(_0x2e81ec==_0x274534[_0x1871('0x9a')]&&Pt(_0x274534,_0x1dff16)){const _0xde30fb=_0x274534[_0x1871('0x2a')]();return _0xde30fb[_0x1871('0x143')][_0x1871('0x58')](_0x30182b['end'])?this[_0x1871('0x141')](_0x274534,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x30182b[_0x1871('0x143')],_0xde30fb[_0x1871('0x23')])):this[_0x1871('0x141')](_0x274534,this[_0x1871('0x16a')][_0x1871('0xb4')](_0xde30fb[_0x1871('0x143')],_0x30182b[_0x1871('0x23')])),_0x274534;}}const _0x1801ce=_0x3e11ea(),_0x1da502=_0x204d30['id'],_0x2a5d08=_0x2e81ec?_0x1871('0x77')+_0x2e81ec:_0x1871('0x154'),_0x51bd4a=this['_setSuggestionData']({'id':_0x1801ce,'type':_0x2a5d08,'createdAt':new Date(),'authorId':_0x1da502,'attributes':_0x1dff16});return this[_0x1871('0x162')](_0x2a5d08,_0x1801ce,_0x1da502,_0x30182b),_0x51bd4a;}[_0x1871('0xed')](_0x58853a,_0x11a926='multi',_0x21e609={}){const _0x2a8ac1=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me'],_0x3640d6=this['_suggestionFactory']['getSuggestionCallback'](_0x1871('0x154'),_0x11a926,_0x1871('0xdd'));for(const _0x506a44 of this[_0x1871('0x21')]())if(_0x506a44[_0x1871('0x43')]['id']==_0x2a8ac1['id']&&_0x1871('0x154')==_0x506a44[_0x1871('0xaa')]&&_0x506a44[_0x1871('0x9a')]==_0x11a926&&Pt(_0x506a44,_0x21e609)&&(_0x3640d6(_0x506a44['getRanges'](),_0x58853a)||_0x3640d6(_0x58853a,_0x506a44['getRanges']()))){for(const _0x222892 of _0x58853a)_0x506a44[_0x1871('0x4b')](_0x222892);return _0x506a44;}for(const {suggestion:_0x152b16,meta:_0x1a0cf9}of this[_0x1871('0x15c')](_0x58853a,_0x1871('0x154'))){if(!_0x1a0cf9['isOwn'])continue;if(!this[_0x1871('0x150')]&&_0x1a0cf9[_0x1871('0xfa')])continue;if(!Pt(_0x152b16,_0x21e609))continue;let _0x10190d=!0x0;for(const _0x56ac4b of _0x152b16[_0x1871('0xec')]())for(const _0x459472 of _0x58853a)if(!_0x56ac4b[_0x1871('0x50')](_0x459472)){_0x10190d=!0x1;break;}if(_0x10190d)return _0x152b16;}const _0x342146=_0x3e11ea(),_0x493491=_0x2a8ac1['id'],_0x23e3e7='insertion:'+_0x11a926,_0x4c37e8=this[_0x1871('0xa7')]({'id':_0x342146,'type':_0x23e3e7,'createdAt':new Date(),'authorId':_0x493491,'attributes':_0x21e609});for(const _0x528198 of _0x58853a)this[_0x1871('0x162')](_0x23e3e7,_0x342146,_0x493491,_0x528198,_0x3e227c[_0x1871('0x2e')]());return _0x4c37e8;}[_0x1871('0x115')](_0x30cc94,_0x47a94e,_0x24302d=null,_0x1538eb={}){if(_0x24302d=_0x24302d||Et(_0x47a94e),_0x30cc94[_0x1871('0x52')])return null;if(_0x1871('0xef')===this[_0x1871('0x4d')]){const _0x248612=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x99'),_0x24302d,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0x248612([_0x30cc94],_0x47a94e,_0x1538eb)),null;}const _0x2627b3=this[_0x1871('0x118')][_0x1871('0x13f')]['get']('Users')['me'],_0x45f676=[];if(_0x1871('0x133')!==this['_trackFormatChanges'])for(const {suggestion:_0x4246b2,meta:_0x10f16f}of this['_findSuggestions'](_0x30cc94,_0x1871('0x154')))_0x10f16f[_0x1871('0xf6')]&&!_0x10f16f[_0x1871('0x15d')]&&_0x45f676[_0x1871('0x169')](..._0x4246b2[_0x1871('0xec')]());const _0x3985ab=function(_0x2bb199,_0xc3c699){const _0x1422ee=[];for(const _0x51d4e3 of _0xc3c699){const _0x58b65b=_0x2bb199[_0x1871('0x35')](_0x51d4e3);_0x58b65b&&_0x1422ee[_0x1871('0x169')](_0x58b65b);}return _0x1422ee;}(_0x30cc94,_0x45f676),_0xc07926=function(_0xd21b40,_0x483280){const _0x4aec37=[_0xd21b40];for(const _0x79abf of _0x483280){let _0x2a38de=0x0;for(;_0x2a38de<_0x4aec37['length'];){const _0x433e1e=_0x4aec37[_0x2a38de]['getDifference'](_0x79abf);_0x4aec37[_0x1871('0x75')](_0x2a38de,0x1,..._0x433e1e),_0x2a38de+=_0x433e1e[_0x1871('0x82')];}}return _0x4aec37;}(_0x30cc94,_0x45f676);_0x3985ab['length']&&this['_model'][_0x1871('0xa4')](()=>{for(const _0x1ba1f3 of _0x3985ab){const _0x51f0f4=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x99'),_0x24302d,'accept');this[_0x1871('0xbc')](()=>_0x51f0f4([_0x1ba1f3],_0x47a94e,_0x1538eb));}});for(const _0x48db43 of _0xc07926){let _0x26e99d=null,_0x506de8=_0x48db43[_0x1871('0x143')],_0x5003e9=_0x48db43[_0x1871('0x23')];for(const {suggestion:_0x35a03c,meta:_0x5a80c5}of this[_0x1871('0x15c')](_0x48db43,_0x1871('0x99'))){if(!_0x5a80c5['isOwn'])continue;if(_0x35a03c['subType']!=_0x24302d)continue;if(!Pt(_0x35a03c,_0x1538eb))continue;const _0xd572f1=_0x35a03c[_0x1871('0x2a')]();if(_0xd572f1[_0x1871('0x50')](_0x48db43,!0x0))return null;_0x506de8=_0x506de8[_0x1871('0x6f')](_0xd572f1[_0x1871('0x143')])?_0x506de8:_0xd572f1[_0x1871('0x143')],_0x5003e9=_0x5003e9[_0x1871('0x9d')](_0xd572f1[_0x1871('0x23')])?_0x5003e9:_0xd572f1[_0x1871('0x23')],_0x26e99d?_0xd572f1['start'][_0x1871('0x6f')](_0x26e99d[_0x1871('0x2a')]()['start'])?(_0x26e99d[_0x1871('0xce')](),_0x26e99d=_0x35a03c):_0x35a03c[_0x1871('0xce')]():_0x26e99d=_0x35a03c;}const _0x46d198=this[_0x1871('0x16a')][_0x1871('0xb4')](_0x506de8,_0x5003e9);if(_0x26e99d)this[_0x1871('0x141')](_0x26e99d,_0x46d198);else{const _0x11256d=_0x3e11ea(),_0x2e5498=_0x2627b3['id'];this[_0x1871('0xa7')]({'id':_0x11256d,'type':'formatInline:'+_0x24302d,'data':_0x47a94e,'createdAt':new Date(),'authorId':_0x2e5498,'attributes':_0x1538eb}),this[_0x1871('0x162')](_0x1871('0x69')+_0x24302d,_0x11256d,_0x2e5498,_0x46d198);}}return null;}['markBlockFormat'](_0x1b3e77,_0xe412e6,_0xd3ee64=[],_0x509555=null,_0x47b2e2={}){_0xe412e6[_0x1871('0xb8')]||(_0xe412e6['formatGroupId']=_0xe412e6[_0x1871('0x14f')]),_0xe412e6[_0x1871('0xf1')]=_0x1b3e77['is'](_0x1871('0xc6')),_0x509555=_0x509555||Et(_0xe412e6);const _0x4b676f=_0xd3ee64['map'](_0x42b536=>Ot(_0x42b536,this['_model'])),_0x406a8a=_0x1b3e77['is'](_0x1871('0xc6'))?_0x1b3e77:Ot(_0x1b3e77,this['_model']);if('never'===this[_0x1871('0x4d')]){const _0x455cf8=this[_0x1871('0x103')]['getSuggestionCallback']('formatBlock',_0x509555,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0x455cf8([_0x406a8a],_0xe412e6,_0x47b2e2)),null;}_0x4b676f['push'](_0x406a8a);let _0x40be2d=!0x0;for(const _0x3e5808 of _0x4b676f)if(!this[_0x1871('0x34')](_0x3e5808)){_0x40be2d=!0x1;break;}if(_0x40be2d&&_0x1871('0x133')!==this[_0x1871('0x4d')]){const _0x442554=this[_0x1871('0x103')][_0x1871('0xc9')](_0x1871('0x15a'),_0x509555,_0x1871('0xdf'));return this[_0x1871('0xbc')](()=>_0x442554([_0x406a8a],_0xe412e6,_0x47b2e2)),null;}let _0x374ad7=null,_0x5e656a=_0x406a8a[_0x1871('0x143')],_0x14898a=_0x406a8a['end'];for(const {suggestion:_0x3b7485,meta:_0x4a96b9}of this[_0x1871('0x15c')](_0x406a8a,_0x1871('0x15a'))){if(!_0x4a96b9[_0x1871('0xf6')])continue;if(_0x4a96b9[_0x1871('0x97')]||_0x4a96b9[_0x1871('0xfa')]||_0x4a96b9[_0x1871('0x15d')])continue;if(_0x3b7485[_0x1871('0x78')][_0x1871('0xb8')]!=_0xe412e6['formatGroupId'])continue;if(!Pt(_0x3b7485,_0x47b2e2))continue;const _0x5d0f44=_0x3b7485[_0x1871('0x2a')]();if(_0x3b7485[_0x1871('0x9a')]==_0x509555){if(_0x5d0f44[_0x1871('0x50')](_0x406a8a,!0x0))return null;_0x5e656a=_0x5e656a[_0x1871('0x6f')](_0x5d0f44['start'])?_0x5e656a:_0x5d0f44[_0x1871('0x143')],_0x14898a=_0x14898a[_0x1871('0x9d')](_0x5d0f44[_0x1871('0x23')])?_0x14898a:_0x5d0f44[_0x1871('0x23')],_0x374ad7?_0x5d0f44['start'][_0x1871('0x6f')](_0x374ad7['getFirstRange']()['start'])?(_0x374ad7[_0x1871('0xce')](),_0x374ad7=_0x3b7485):_0x3b7485[_0x1871('0xce')]():_0x374ad7=_0x3b7485;}else{const _0x388e9f=_0x406a8a['getIntersection'](_0x5d0f44);this['_cutOutSuggestionMarker'](_0x3b7485,_0x388e9f);}}const _0x10b842=this[_0x1871('0x118')]['plugins'][_0x1871('0x59')](_0x1871('0x16d'))['me'],_0x20cea8=_0x3e11ea(),_0x3d1ed6=_0x10b842['id'];if(_0x374ad7)return this['_setSuggestionRange'](_0x374ad7,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x5e656a,_0x14898a)),_0x374ad7;{const _0x112b7d=this['_setSuggestionData']({'id':_0x20cea8,'type':_0x1871('0x19')+_0x509555,'data':_0xe412e6,'createdAt':new Date(),'authorId':_0x3d1ed6,'attributes':_0x47b2e2});return this[_0x1871('0x162')](_0x1871('0x19')+_0x509555,_0x20cea8,_0x3d1ed6,this[_0x1871('0x16a')]['createRange'](_0x5e656a,_0x14898a)),_0x112b7d;}}['markMultiRangeBlockFormat'](_0x2b1be8,_0x470eaf,_0x34125d=[],_0x27647d=null,_0x3acecc={}){_0x470eaf[_0x1871('0xb8')]||(_0x470eaf[_0x1871('0xb8')]=_0x470eaf[_0x1871('0x14f')]);const _0x35d5fe=_0x2b1be8[0x0];_0x470eaf[_0x1871('0xf1')]=_0x35d5fe['is'](_0x1871('0xc6')),_0x27647d=_0x27647d||Et(_0x470eaf);const _0x438ca1=_0x34125d[_0x1871('0x44')](_0x5eba66=>Ot(_0x5eba66,this[_0x1871('0x16a')])),_0x2b1334=_0x35d5fe['is'](_0x1871('0xc6'))?_0x2b1be8:_0x2b1be8['map'](_0x1af19c=>Ot(_0x1af19c,this[_0x1871('0x16a')]));if('never'===this['_trackFormatChanges']){const _0x573223=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x15a'),_0x27647d,_0x1871('0xdf'));return this[_0x1871('0xbc')](()=>_0x573223(_0x2b1334,_0x470eaf,_0x3acecc)),null;}_0x438ca1['push'](..._0x2b1334);let _0x1d9cac=!0x0;for(const _0x5129a9 of _0x438ca1)if(!this[_0x1871('0x34')](_0x5129a9)){_0x1d9cac=!0x1;break;}if(_0x1d9cac&&_0x1871('0x133')!==this['_trackFormatChanges']){const _0x16d2d1=this[_0x1871('0x103')][_0x1871('0xc9')](_0x1871('0x15a'),_0x27647d,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0x16d2d1(_0x2b1334,_0x470eaf,_0x3acecc)),null;}const _0x1c63fa=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me'];for(const _0x1ffc05 of this['getSuggestions']()){if(_0x1ffc05[_0x1871('0x43')]['id']!=_0x1c63fa['id'])continue;if(_0x1871('0x15a')!=_0x1ffc05[_0x1871('0xaa')]||_0x1ffc05[_0x1871('0x78')][_0x1871('0xb8')]!=_0x470eaf[_0x1871('0xb8')])continue;if(!Pt(_0x1ffc05,_0x3acecc))continue;const _0x356d47=_0x1ffc05[_0x1871('0x9a')]==_0x27647d;for(let _0x5cddb2=0x0;_0x5cddb2<_0x2b1334['length'];_0x5cddb2++){const _0xad5a25=_0x2b1334[_0x5cddb2];for(const _0x594839 of _0x1ffc05[_0x1871('0x49')]()){const _0xb22f67=_0x594839[_0x1871('0x90')]();if(_0xad5a25[_0x1871('0x58')](_0xb22f67)){_0x356d47?(_0x2b1334[_0x1871('0x75')](_0x5cddb2,0x1),_0x5cddb2--):_0x1ffc05[_0x1871('0x112')](_0x594839[_0x1871('0x161')]);break;}}}}if(0x0==_0x2b1334[_0x1871('0x82')])return null;const _0x3c4712=this['_suggestionFactory'][_0x1871('0xc9')]('formatBlock',_0x27647d,_0x1871('0xdd'));for(const _0x1327cb of this[_0x1871('0x21')]())if(_0x1327cb['author']['id']==_0x1c63fa['id']&&_0x1871('0x15a')==_0x1327cb[_0x1871('0xaa')]&&_0x1327cb[_0x1871('0x78')]['formatGroupId']==_0x470eaf[_0x1871('0xb8')]&&_0x1327cb['subType']==_0x27647d&&Pt(_0x1327cb,_0x3acecc)&&(_0x3c4712(_0x1327cb['getRanges'](),_0x2b1334)||_0x3c4712(_0x2b1334,_0x1327cb[_0x1871('0xec')]()))){for(const _0x5343eb of _0x2b1334)_0x1327cb[_0x1871('0x4b')](_0x5343eb);return _0x1327cb;}const _0x14c723=_0x3e11ea(),_0x206efa=_0x1c63fa['id'],_0x49ec7c=_0x1871('0x19')+_0x27647d,_0x4f9c29=this[_0x1871('0xa7')]({'id':_0x14c723,'type':_0x49ec7c,'data':_0x470eaf,'createdAt':new Date(),'authorId':_0x206efa,'attributes':_0x3acecc});for(const _0x5b2a53 of _0x2b1334)this[_0x1871('0x162')](_0x49ec7c,_0x14c723,_0x206efa,_0x5b2a53,_0x3e227c['getMultiRangeId']());return _0x4f9c29;}[_0x1871('0x28')](_0x3e0369,_0x116bf7=null,_0x42804c={}){if(_0x3e0369[_0x1871('0x52')])return null;const _0x2ee3a4=this['editor'][_0x1871('0x13f')][_0x1871('0x59')]('Users')['me'],_0x1195b7=new _0x190336(_0x3e0369['start'],_0x3e0369[_0x1871('0x23')]);for(const {suggestion:_0x51a9c9,meta:_0x2df935}of this[_0x1871('0x15c')](_0x1195b7,_0x1871('0x154')))if(_0x2df935[_0x1871('0xf6')]&&!_0x2df935[_0x1871('0x97')]){if(_0x51a9c9[_0x1871('0x125')]){const _0x141963=_0x51a9c9[_0x1871('0xec')]()['filter'](_0xdf87e9=>_0x1871('0x65')!=_0xdf87e9[_0x1871('0x167')][_0x1871('0xa3')]);_0x141963[_0x1871('0xb9')](_0x6380c2=>_0x1195b7[_0x1871('0x50')](_0x6380c2,!0x0))&&_0x51a9c9[_0x1871('0xbf')]();if(_0x141963[_0x1871('0xe2')](_0x4325dc=>_0x4325dc[_0x1871('0x50')](_0x1195b7,!0x0))){const _0x1ccede=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x134'),_0x116bf7,'accept');return this['forceDefaultExecution'](()=>_0x1ccede([_0x1195b7],null,_0x42804c)),null;}}else{const _0x2c9013=_0x1195b7[_0x1871('0x35')](_0x51a9c9[_0x1871('0x2a')]());null!==_0x2c9013&&_0x51a9c9[_0x1871('0x47')]([_0x2c9013],null,_0x42804c);}}if(_0x1195b7[_0x1871('0x6a')](),_0x1195b7[_0x1871('0x52')]||'$graveyard'==_0x1195b7[_0x1871('0x167')][_0x1871('0xa3')])return null;let _0x4c2a2f=null,_0xb8f21f=_0x1195b7[_0x1871('0x143')],_0x244b42=_0x1195b7['end'];const _0x358473=this[_0x1871('0x15c')](_0x1195b7,_0x1871('0x134'));for(const {suggestion:_0x284e95,meta:_0x47bf55}of _0x358473){const _0x1d567e=this[_0x1871('0x16a')][_0x1871('0xb4')](_0xb8f21f,_0x244b42);if(_0x47bf55[_0x1871('0xf6')]&&(this[_0x1871('0x150')]||!_0x47bf55[_0x1871('0xfa')]&&!_0x47bf55['isInsideObject'])){if(_0x284e95[_0x1871('0x125')]){if(!Pt(_0x284e95,_0x42804c))continue;let _0x128fb7=!0x0;for(const _0x52b883 of _0x284e95['getRanges']()){if(_0x52b883['containsRange'](_0x1d567e,!0x0))return _0x284e95;_0x1d567e['containsRange'](_0x52b883)||(_0x128fb7=!0x1);}_0x128fb7&&_0x284e95['discard']();}else{const _0x2cd751=_0x284e95[_0x1871('0x2a')]();if(_0x2cd751['containsRange'](_0x1d567e,!0x0))return _0x284e95;if(!Pt(_0x284e95,_0x42804c)){_0x1d567e[_0x1871('0x50')](_0x2cd751)?_0x284e95[_0x1871('0xce')]():_0x2cd751['containsPosition'](_0xb8f21f)?_0xb8f21f=_0x2cd751[_0x1871('0x23')]:_0x2cd751[_0x1871('0xab')](_0x244b42)&&(_0x244b42=_0x2cd751['start']);continue;}_0xb8f21f=_0xb8f21f[_0x1871('0x6f')](_0x2cd751['start'])?_0xb8f21f:_0x2cd751[_0x1871('0x143')],_0x244b42=_0x244b42['isAfter'](_0x2cd751[_0x1871('0x23')])?_0x244b42:_0x2cd751[_0x1871('0x23')],_0x42804c=Object[_0x1871('0x25')]({},_0x284e95['attributes']),_0x4c2a2f?_0x2cd751['start'][_0x1871('0x6f')](_0x4c2a2f[_0x1871('0x2a')]()[_0x1871('0x143')])?(_0x4c2a2f[_0x1871('0xce')](),_0x4c2a2f=_0x284e95):_0x284e95[_0x1871('0xce')]():_0x4c2a2f=_0x284e95;}}}if(_0x4c2a2f)return this[_0x1871('0x141')](_0x4c2a2f,this['_model']['createRange'](_0xb8f21f,_0x244b42)),_0x4c2a2f;{const _0x50d94f=_0x3e11ea(),_0x362e04=this['_model'][_0x1871('0xb4')](_0xb8f21f,_0x244b42),_0x5943d0=_0x2ee3a4['id'],_0x2b16ad=_0x116bf7?'deletion:'+_0x116bf7:'deletion',_0x4d9989=this[_0x1871('0xa7')]({'id':_0x50d94f,'type':_0x2b16ad,'createdAt':new Date(),'authorId':_0x5943d0,'attributes':_0x42804c});return this['_addSuggestionMarker'](_0x2b16ad,_0x50d94f,_0x5943d0,_0x362e04),_0x4d9989;}}[_0x1871('0x8f')](_0xed51c5,_0x3c86fa=_0x1871('0x3e'),_0x420f6c={}){const _0x276f90=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me'],_0x5c0145=_0xed51c5['map'](_0x3118d2=>new _0x190336(_0x3118d2['start'],_0x3118d2[_0x1871('0x23')])),_0x2293ec=new Set();for(const {suggestion:_0x2ae751,meta:_0x46dd4f}of this['_findSuggestions'](_0x5c0145,_0x1871('0x154')))_0x46dd4f[_0x1871('0xf6')]&&!_0x46dd4f[_0x1871('0x97')]&&_0x2293ec[_0x1871('0xa2')](_0x2ae751);for(const _0x10bf1e of _0x2293ec)if(_0x10bf1e[_0x1871('0x125')]){const _0x3d6683=_0x10bf1e[_0x1871('0xec')]();(!_0x10bf1e['attributes']||!_0x10bf1e[_0x1871('0xc1')]['skipNestingCheck'])&&(_0x3d6683[_0x1871('0xb9')](_0x4ba5e4=>_0x5c0145['some'](_0x37fa49=>_0x37fa49[_0x1871('0x50')](_0x4ba5e4,!0x0)))&&_0x10bf1e[_0x1871('0xbf')]());if(_0x5c0145[_0x1871('0xb9')](_0x4bbdee=>_0x3d6683[_0x1871('0xe2')](_0x51a1c0=>_0x51a1c0[_0x1871('0x50')](_0x4bbdee,!0x0)))){const _0xbaa759=this[_0x1871('0x103')][_0x1871('0xc9')](_0x1871('0x134'),_0x3c86fa,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0xbaa759(_0xed51c5,null,_0x420f6c)),null;}}else{const _0xb367df=_0x10bf1e[_0x1871('0x2a')]();_0x5c0145[_0x1871('0xe2')](_0x4f5bd6=>_0x4f5bd6[_0x1871('0x50')](_0xb367df,!0x0))&&_0x10bf1e[_0x1871('0xbf')]();if(_0x5c0145[_0x1871('0xb9')](_0x3744a1=>_0xb367df[_0x1871('0x50')](_0x3744a1,!0x0))){const _0x516924=this[_0x1871('0x103')][_0x1871('0xc9')]('deletion',_0x3c86fa,'accept');return this[_0x1871('0xbc')](()=>_0x516924(_0x5c0145,null,_0x420f6c)),null;}}const _0x5e14cf=this['_suggestionFactory'][_0x1871('0xc9')]('deletion',_0x3c86fa,_0x1871('0xdd'));let _0x1c3f07=null;for(const _0x10c25d of this['getSuggestions']())if(_0x10c25d['author']['id']==_0x276f90['id']&&_0x10c25d['isInContent']&&_0x1871('0x134')==_0x10c25d[_0x1871('0xaa')]&&_0x10c25d[_0x1871('0x9a')]==_0x3c86fa&&Pt(_0x10c25d,_0x420f6c)&&(_0x5e14cf(_0x10c25d[_0x1871('0xec')](),_0x5c0145)||_0x5e14cf(_0x5c0145,_0x10c25d[_0x1871('0xec')]()))){if(_0x1c3f07){if(_0x10c25d[_0x1871('0xa9')]&&_0x10c25d[_0x1871('0xa9')][_0x1871('0x82')])continue;for(const _0x3eed49 of _0x10c25d[_0x1871('0xec')]())_0x1c3f07[_0x1871('0x76')](_0x3eed49)||_0x1c3f07[_0x1871('0x4b')](_0x3eed49);_0x10c25d[_0x1871('0xce')]();}else{_0x1c3f07=_0x10c25d;for(const _0x386f9a of _0x5c0145)_0x10c25d[_0x1871('0x76')](_0x386f9a)||_0x10c25d[_0x1871('0x4b')](_0x386f9a);}}if(_0x1c3f07)return _0x1c3f07;_0x2293ec[_0x1871('0x14e')]();for(const {suggestion:_0x37dab1,meta:_0x129510}of this[_0x1871('0x15c')](_0x5c0145,_0x1871('0x134')))_0x129510['isOwn']&&(this[_0x1871('0x150')]||!_0x129510[_0x1871('0xfa')]&&!_0x129510['isInsideObject'])&&Pt(_0x37dab1,_0x420f6c)&&_0x2293ec[_0x1871('0xa2')](_0x37dab1);for(const _0x3f04e7 of _0x2293ec){const _0x51be69=_0x3f04e7['getRanges']();if(!_0x420f6c||!_0x420f6c[_0x1871('0x8b')]){if(_0x5c0145[_0x1871('0xb9')](_0xb25d9d=>_0x51be69[_0x1871('0xe2')](_0x5d754f=>_0x5d754f[_0x1871('0x50')](_0xb25d9d,!0x0))))return _0x3f04e7;}(!_0x3f04e7[_0x1871('0xc1')]||!_0x3f04e7[_0x1871('0xc1')]['skipNestingCheck'])&&(_0x51be69[_0x1871('0xb9')](_0x2b7b3d=>_0x5c0145['some'](_0x25a2a2=>_0x25a2a2['containsRange'](_0x2b7b3d,!0x0)))&&_0x3f04e7['discard']());}const _0x1f2397=_0x3e11ea(),_0x54060e=_0x276f90['id'],_0x495c1d=_0x1871('0xc0')+_0x3c86fa,_0x3322ea=this[_0x1871('0xa7')]({'id':_0x1f2397,'type':_0x495c1d,'createdAt':new Date(),'authorId':_0x54060e,'attributes':_0x420f6c});for(const _0x1442ee of _0x5c0145)_0x1442ee['detach'](),_0x1442ee['isCollapsed']||_0x1871('0x65')==_0x1442ee[_0x1871('0x167')][_0x1871('0xa3')]||this[_0x1871('0x162')](_0x495c1d,_0x1f2397,_0x54060e,_0x1442ee,_0x3e227c['getMultiRangeId']());return _0x3322ea;}[_0x1871('0x54')](_0x55394f,_0x32eb67,_0x5f49ef,_0x3e172c,_0x3d1efa){if(_0x55394f[_0x1871('0x52')])return[];if(_0x1871('0xef')===this[_0x1871('0x4d')])return[];const _0x48c466=this['editor'][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me']['id'],_0x451706=Array[_0x1871('0x12f')](this[_0x1871('0x12')][_0x1871('0x155')]())['filter'](_0x4d29f7=>_0x1871('0xac')==_0x4d29f7[_0x1871('0xaa')]&&_0x4d29f7[_0x1871('0x78')][_0x1871('0xa5')]==_0x32eb67&&_0x4d29f7['isIntersectingWithRange'](_0x55394f));if(_0x1871('0x109')===this[_0x1871('0x4d')]){const _0x385b6d=this[_0x1871('0x15c')](_0x55394f,_0x1871('0x154'))[_0x1871('0x2d')](({meta:_0xdb7753})=>_0xdb7753[_0x1871('0xf6')]&&!_0xdb7753[_0x1871('0x15d')]&&!_0xdb7753[_0x1871('0x97')])[_0x1871('0x44')](({suggestion:_0x2aeec3})=>_0x2aeec3);_0x451706[_0x1871('0xfd')](..._0x385b6d);}const _0x55bf5c=new Map([[_0x55394f,_0x5f49ef]]);for(const _0x2861ad of _0x451706){const _0x3c3714=_0x1871('0xac')==_0x2861ad['type']?_0x2861ad[_0x1871('0x78')]['oldValue']:void 0x0,_0xc6cf38=_0x2861ad['getFirstRange'](),_0x47886f=Array[_0x1871('0x12f')](_0x55bf5c['keys']())['find'](_0x1fe38c=>_0x1fe38c[_0x1871('0xd2')](_0xc6cf38));if(!_0x47886f)continue;const _0x24b5a0=_0x47886f[_0x1871('0xb0')](_0xc6cf38);this[_0x1871('0x8e')](_0x32eb67)&&'insertion'==_0x2861ad['type']&&0x0!=_0x24b5a0['length']||(_0x55bf5c[_0x1871('0x13d')](_0x47886f),_0x24b5a0[_0x1871('0x12a')](_0x222746=>{_0x55bf5c[_0x1871('0xb2')](_0x222746,_0x5f49ef);}),_0x1871('0x154')!=_0x2861ad[_0x1871('0xaa')]&&_0x3c3714!=_0x3e172c&&_0x55bf5c[_0x1871('0xb2')](_0x47886f['getIntersection'](_0xc6cf38),_0x3c3714));}const _0x1bdab4=[];for(const [_0x13e3db,_0x1053fa]of _0x55bf5c){const _0x5b0ace=_0x3e11ea(),_0x5888de={'key':_0x32eb67,'oldValue':_0x1053fa,'newValue':_0x3e172c};_0x32eb67[_0x1871('0x82')]>0x25&&console[_0x1871('0xf3')](_0x1871('0xdc'),{'key':_0x32eb67});const _0x371dc9=('attribute:'+(_0x32eb67+'|'+Et({'newValue':_0x3e172c})))[_0x1871('0x160')](0x0,0x3c),_0x2a4f2c=this[_0x1871('0xa7')]({'id':_0x5b0ace,'type':_0x371dc9,'data':_0x5888de,'createdAt':new Date(),'authorId':_0x48c466,'attributes':_0x3d1efa});_0x1bdab4[_0x1871('0x169')](_0x2a4f2c),this[_0x1871('0x162')](_0x371dc9,_0x5b0ace,_0x48c466,_0x13e3db);}return _0x1bdab4;}['_registerBlockAttribute'](_0x5ccbb8){this[_0x1871('0x119')]['add'](_0x5ccbb8);}[_0x1871('0xf8')](_0x4acffa){this[_0x1871('0x2f')][_0x1871('0xa2')](_0x4acffa);}['_enableDefaultAttributesIntegration'](_0x5be5fc,_0x25c550=[],_0x9c22a6=[]){this[_0x1871('0x16c')](_0x5be5fc,(_0x37cce4,..._0x41dd58)=>{this[_0x1871('0x172')](()=>{_0x37cce4(..._0x41dd58);});});for(const _0x471bc5 of _0x25c550)this[_0x1871('0xf8')](_0x471bc5);for(const _0x12ebde of _0x9c22a6)this[_0x1871('0x81')](_0x12ebde);}[_0x1871('0x11d')](_0x3fee97){return _0x1871('0xac')==_0x3fee97[_0x1871('0xaa')]?_0x3fee97[_0x1871('0x9a')]['split']('|')[0x0]:null;}[_0x1871('0x141')](_0x1c3a17,_0x47d934){const _0x52ae08=_0x1c3a17[_0x1871('0x173')]();this[_0x1871('0x16a')][_0x1871('0xa4')](_0x554f60=>{_0x554f60[_0x1871('0x93')](_0x52ae08,{'range':_0x47d934});});}['_addThreadToSuggestion'](_0x84f6d9){const _0x28bc48=_0x84f6d9['id'],_0x331060=this[_0x1871('0x118')][_0x1871('0x16')][_0x1871('0x59')](_0x1871('0x5d'));this[_0x1871('0xe')][_0x1871('0x7f')](_0x28bc48)||this[_0x1871('0xe')][_0x1871('0xd8')]({'channelId':_0x331060,'threadId':_0x28bc48,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x826b09=this[_0x1871('0xe')]['getCommentThread'](_0x28bc48);_0x826b09[_0x1871('0x7c')](_0x1871('0x16e')),_0x826b09[_0x1871('0x16e')]=!0x1,_0x84f6d9[_0x1871('0xa9')]=_0x826b09;}[_0x1871('0x121')](_0xb40e9c,_0x1acf83,_0x21ed56,_0x50c0e0){if(_0xb40e9c[_0x1871('0xaa')]!=_0x1acf83||_0xb40e9c[_0x1871('0x9a')]!=_0x21ed56||_0xb40e9c['creator']['id']!=_0x50c0e0)throw this[_0x1871('0x118')][_0x1871('0x96')](_0x1871('0x14a')),new _0x24b5be(_0x1871('0x14a'),this);}[_0x1871('0x108')](_0x20676a,_0x312f29){const _0x1ead5f=_0x20676a[_0x1871('0x2a')]();if(_0x312f29[_0x1871('0x58')](_0x1ead5f))_0x20676a['removeMarkers']();else{if(_0x1ead5f[_0x1871('0x50')](_0x312f29)){const _0x447a61=this[_0x1871('0x16a')]['createPositionAt'](_0x312f29['start']['nodeBefore'],_0x1871('0x23'));this[_0x1871('0x141')](_0x20676a,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x1ead5f[_0x1871('0x143')],_0x447a61));const _0x24ba2c=_0x3e11ea(),_0x4d5ad7=_0x20676a[_0x1871('0x126')]['id'],_0x19002e=_0x20676a[_0x1871('0xaa')]+':'+_0x20676a[_0x1871('0x9a')];this[_0x1871('0xa7')]({'id':_0x24ba2c,'type':_0x19002e,'createdAt':new Date(),'authorId':_0x4d5ad7,'data':_0x20676a['data'],'attributes':_0x20676a[_0x1871('0xc1')]});const _0xb50b7b=this[_0x1871('0x16a')][_0x1871('0x113')](_0x312f29[_0x1871('0x23')][_0x1871('0x17')],_0x1871('0x87')),_0x3929=this[_0x1871('0x16a')][_0x1871('0xb4')](_0xb50b7b,_0x1ead5f[_0x1871('0x23')]);this[_0x1871('0x162')](_0x19002e,_0x24ba2c,_0x4d5ad7,_0x3929);}else{if(_0x1ead5f[_0x1871('0xab')](_0x312f29['start'])){const _0x35028f=this[_0x1871('0x16a')][_0x1871('0x113')](_0x312f29[_0x1871('0x143')][_0x1871('0x131')],_0x1871('0x23'));this[_0x1871('0x141')](_0x20676a,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x1ead5f['start'],_0x35028f));}else{const _0x4e5cb9=this['_model']['createPositionAt'](_0x312f29[_0x1871('0x23')][_0x1871('0x17')],_0x1871('0x87'));this[_0x1871('0x141')](_0x20676a,this['_model'][_0x1871('0xb4')](_0x4e5cb9,_0x1ead5f[_0x1871('0x23')]));}}}}[_0x1871('0x34')](_0x4c6a6d){for(const {suggestion:_0x58a9aa,meta:_0x468626}of this['_findSuggestions'](_0x4c6a6d,'insertion')){if(!_0x468626[_0x1871('0xf6')])continue;const _0x2a578e=_0x58a9aa[_0x1871('0xec')]();for(const _0x431659 of _0x2a578e)if(!_0x4c6a6d[_0x1871('0xb0')](_0x431659)['length'])return!0x0;}return!0x1;}[_0x1871('0x168')](_0x10bb4b){const _0x5c32d4=this[_0x1871('0x118')]['plugins'][_0x1871('0x59')]('Users')[_0x1871('0x72')](_0x10bb4b);if(!_0x5c32d4)throw new _0x24b5be('track-changes-user-not-found',this);return _0x5c32d4;}[_0x1871('0x11e')](_0x2c2f37){const _0x4cdb59=this[_0x1871('0x118')]['plugins']['get'](_0x1871('0x16d')),_0x32a656=_0x25e8fa('external:'+_0x2c2f37),_0x4b8090=_0x4cdb59[_0x1871('0x72')](_0x32a656);return _0x4b8090||_0x4cdb59[_0x1871('0x66')]({'id':_0x32a656,'name':_0x2c2f37});}['_createSuggestion'](_0x572160,_0x2e4734,_0x2b92bc,_0x49d987,_0x28df3d){const _0x5b3263=this[_0x1871('0x168')](_0x49d987),_0x1d660c=this[_0x1871('0x103')][_0x1871('0xc4')](_0x572160,_0x2e4734,_0x2b92bc,_0x5b3263,_0x28df3d,_0x533a8d=>{this['_updateSuggestionData'](_0x2b92bc,{'attributes':_0x533a8d});const _0x102922=this[_0x1871('0x14b')](_0x2b92bc);this[_0x1871('0xd')](new Set([_0x102922])),this[_0x1871('0x84')](new Set([_0x102922]));});return this[_0x1871('0x152')](_0x1d660c,_0x1871('0xdf'),()=>{this[_0x1871('0x177')](_0x2b92bc,{'state':_0x1871('0x10')});},{'priority':_0x1871('0xea')}),this['listenTo'](_0x1d660c,_0x1871('0xbf'),()=>{this['_updateSuggestionData'](_0x2b92bc,{'state':'rejected'});},{'priority':'high'}),this[_0x1871('0x12')][_0x1871('0xb2')](_0x2b92bc,_0x1d660c),this[_0x1871('0x106')][_0x1871('0xb2')](_0x1d660c,_0x1871('0x175')),_0x1d660c;}[_0x1871('0x124')](_0x2fcb78){const _0x139692=_0x2fcb78[_0x1871('0x5a')](':');return{'group':_0x139692[0x0],'type':_0x139692[0x1],'subType':_0x139692[_0x1871('0x82')]>=0x5?_0x139692[0x2]:null,'id':_0x139692[_0x1871('0x82')]<0x5?_0x139692[0x2]:_0x139692[0x3],'authorId':_0x139692[_0x1871('0x82')]<0x5?_0x139692[0x3]:_0x139692[0x4],'markerCount':0x6==_0x139692['length']?_0x139692[0x5]:null};}[_0x1871('0x1f')](_0x1db0fd,_0x1d5bfd,_0x281685){const _0x4cfeb1=_0x1db0fd['getFirstRange'](),_0x25f024=_0x4cfeb1['start'],_0x43760f=_0x4cfeb1[_0x1871('0x23')];this[_0x1871('0x141')](_0x1db0fd,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x25f024,_0x1d5bfd));const _0x5846d0=_0x3e11ea(),_0x323f11=_0x1db0fd['creator']['id'],_0x3233dc=_0x1db0fd[_0x1871('0xaa')]+(_0x1db0fd[_0x1871('0x9a')]?':'+_0x1db0fd[_0x1871('0x9a')]:'');this[_0x1871('0xa7')]({'id':_0x5846d0,'type':_0x3233dc,'createdAt':new Date(),'authorId':_0x323f11,'originalSuggestionId':_0x1db0fd['id'],'attributes':_0x1db0fd[_0x1871('0xc1')],'data':_0x1db0fd['data']});const _0xafb0d9=this[_0x1871('0x11d')](_0x1db0fd);(_0x1871('0x15a')==_0x1db0fd['type']||_0xafb0d9&&this[_0x1871('0x8e')](_0xafb0d9))&&(_0x281685=this['_model']['createPositionBefore'](_0x281685['parent'])),this['_addSuggestionMarker'](_0x3233dc,_0x5846d0,_0x323f11,this[_0x1871('0x16a')]['createRange'](_0x281685,_0x43760f));}[_0x1871('0x15c')](_0x3a6877,_0x296761=null){const _0x1d9a0e=[],_0x4e0d2f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a6877)||(_0x3a6877=[_0x3a6877]);for(const _0x42604d of this[_0x1871('0x21')]()){if(!_0x42604d[_0x1871('0x9')])continue;if(_0x296761&&_0x42604d[_0x1871('0xaa')]!=_0x296761)continue;let _0x54f0ea=!0x1;for(const _0x2ec91b of _0x42604d[_0x1871('0xec')]()){for(const _0x411141 of _0x3a6877){const _0x4d6965=_0x411141[_0x1871('0x143')][_0x1871('0x58')](_0x2ec91b[_0x1871('0x23')])||_0x411141[_0x1871('0x23')][_0x1871('0x58')](_0x2ec91b['start']);if(_0x4d6965||_0x411141['getIntersection'](_0x2ec91b)){const _0x3a2adb=_0x411141['containsRange'](_0x2ec91b)&&xt(this['_model']['schema'],_0x2ec91b['start'],_0x411141),_0x374801=_0x2ec91b[_0x1871('0x50')](_0x411141)&&xt(this['_model'][_0x1871('0x136')],_0x411141['start'],_0x2ec91b);_0x1d9a0e[_0x1871('0x169')]({'suggestion':_0x42604d,'meta':{'isOwn':_0x4e0d2f==_0x42604d[_0x1871('0x43')],'isNextTo':_0x4d6965,'isInsideObject':_0x3a2adb,'containsRangeInObject':_0x374801}}),_0x54f0ea=!0x0;break;}}if(_0x54f0ea)break;}}return _0x1d9a0e;}[_0x1871('0x162')](_0x449359,_0x1c8940,_0x500741,_0x477b39,_0x18ceeb){this[_0x1871('0x16a')][_0x1871('0xa4')](_0x384b3a=>{let _0x182eb3=_0x1871('0xd3')+_0x449359+':'+_0x1c8940+':'+_0x500741;_0x18ceeb&&(_0x182eb3=_0x182eb3+':'+_0x18ceeb),_0x384b3a[_0x1871('0x127')](_0x182eb3,{'range':_0x477b39,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1871('0x10c')](_0x5b92cc){const _0x5d7ece=_0x5b92cc['previous'],_0x2f9114=_0x5b92cc[_0x1871('0x7')];_0x5b92cc[_0x1871('0x24')]=null,_0x5b92cc[_0x1871('0x7')]=null,null!=_0x5d7ece&&_0x5d7ece[_0x1871('0x7')]==_0x5b92cc&&(_0x5d7ece[_0x1871('0x7')]=_0x2f9114),null!=_0x2f9114&&_0x2f9114[_0x1871('0x24')]==_0x5b92cc&&(_0x2f9114[_0x1871('0x24')]=_0x5d7ece),_0x1871('0x2b')==this[_0x1871('0x106')][_0x1871('0x59')](_0x5b92cc)&&(this[_0x1871('0x106')][_0x1871('0xb2')](_0x5b92cc,'removed'),this[_0x1871('0x116')](_0x1871('0x3d'),_0x5b92cc,_0x5d7ece,_0x2f9114));}[_0x1871('0xa7')](_0x4007ec){const _0x5b2186=_0x4007ec['id'],_0x21ac8b=this['addSuggestionData'](_0x4007ec);if(this[_0x1871('0x6c')]&&this[_0x1871('0x6c')][_0x1871('0x12c')]){const _0x476aba=this['editor'][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x149')),_0x392542=_0x21ac8b[_0x1871('0xe7')],_0x33fd95=_0x21ac8b[_0x1871('0x9a')]?_0x21ac8b['type']+':'+_0x21ac8b['subType']:_0x21ac8b[_0x1871('0xaa')],_0x2e158c=this[_0x1871('0x118')][_0x1871('0x8')],_0x122d11=_0x476aba[_0x1871('0xa2')](_0x33b9dc(_0x2e158c,_0x1871('0x5f'))),_0x5e2272={'id':_0x5b2186,'type':_0x33fd95,'hasComments':_0x392542,'data':_0x4007ec['data']||null,'originalSuggestionId':_0x4007ec[_0x1871('0x14')]||null,'attributes':_0x21ac8b[_0x1871('0xc1')]};this[_0x1871('0x6c')][_0x1871('0x12c')](_0x5e2272)[_0x1871('0xca')](_0x29a994=>{_0x21ac8b['_saved']=!0x0,_0x476aba[_0x1871('0xe1')](_0x122d11),_0x29a994&&_0x29a994[_0x1871('0x29')]&&(this['_suggestions'][_0x1871('0x59')](_0x5b2186)[_0x1871('0x29')]=_0x29a994[_0x1871('0x29')]);})[_0x1871('0xf2')](_0x1e01a0=>{throw _0x11b174('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x1871('0x26')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x21ac8b[_0x1871('0xbf')]();}),_0x21ac8b['stopListening'](),this[_0x1871('0x12')]['delete'](_0x21ac8b['id']),this[_0x1871('0x106')][_0x1871('0x13d')](_0x21ac8b),_0x1e01a0;});}return _0x21ac8b;}[_0x1871('0x8e')](_0x3dc38b){return this[_0x1871('0x119')][_0x1871('0x165')](_0x3dc38b);}[_0x1871('0x177')](_0x4ffac5,_0x19e77b){const _0x123ef4=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x149')),_0x98a8af=this[_0x1871('0x14b')](_0x4ffac5);if(this[_0x1871('0x6c')]&&this['_adapter'][_0x1871('0xfc')]){if(_0x98a8af['_saved']){const _0x13085e=_0x123ef4[_0x1871('0xa2')](_0x33b9dc(this[_0x1871('0x118')][_0x1871('0x8')],_0x1871('0x5f')));this['_adapter']['updateSuggestion'](_0x4ffac5,_0x19e77b)['then'](()=>{_0x123ef4[_0x1871('0xe1')](_0x13085e);});}else _0x98a8af['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ffac5,_0x19e77b);});}}[_0x1871('0x104')](_0x2a6840){if(!this[_0x1871('0x6c')]||!this['_adapter'][_0x1871('0x14b')])throw new _0x24b5be(_0x1871('0x85'),this);return this['_adapter'][_0x1871('0x14b')](_0x2a6840);}[_0x1871('0x5c')](_0x1bf514){const {id:_0x4f2efa,type:_0x33bfd0,subType:_0x2fc49a,authorId:_0x5b26a9}=this['_splitMarkerName'](_0x1bf514),_0x189ae1=this[_0x1871('0x12')][_0x1871('0x59')](_0x4f2efa)||this[_0x1871('0x146')](_0x33bfd0,_0x2fc49a,_0x4f2efa,_0x5b26a9,{});switch(this[_0x1871('0x121')](_0x189ae1,_0x33bfd0,_0x2fc49a,_0x5b26a9),this[_0x1871('0x106')][_0x1871('0x59')](_0x189ae1)){case _0x1871('0x175'):this[_0x1871('0x104')](_0x4f2efa)[_0x1871('0xca')](_0x1a551e=>{let _0x1f5136=Promise[_0x1871('0xff')]();_0x1a551e[_0x1871('0xe7')]&&(_0x1f5136=this[_0x1871('0xe')][_0x1871('0x14c')]({'channelId':this[_0x1871('0x118')][_0x1871('0x16')][_0x1871('0x59')](_0x1871('0x5d')),'threadId':_0x4f2efa})),_0x1f5136[_0x1871('0xca')](()=>{this[_0x1871('0x37')](_0x1a551e)[_0x1871('0x67')]=!0x0;});}),this[_0x1871('0x106')][_0x1871('0xb2')](_0x189ae1,_0x1871('0xb5'));break;case'removed':this[_0x1871('0x177')](_0x4f2efa,{'state':'open'});case _0x1871('0x16b'):this[_0x1871('0x106')]['set'](_0x189ae1,_0x1871('0x2b')),this[_0x1871('0x116')]('suggestionLoaded',_0x189ae1);break;case'ready':this[_0x1871('0x116')](_0x1871('0x10b'),_0x189ae1);}return _0x189ae1[_0x1871('0x102')](_0x1bf514),_0x189ae1;}['_refreshSuggestionsChain'](_0x2a7ebf){const _0x23c749=Array['from'](_0x2a7ebf),_0x218dbc=_0x23c749[_0x1871('0x2d')](_0x54fd47=>_0x1871('0xac')==_0x54fd47[_0x1871('0xaa')]);this[_0x1871('0x15f')](_0x218dbc);const _0x3753ac=_0x23c749[_0x1871('0x2d')](_0x2aa491=>!_0x2aa491[_0x1871('0x125')]&&'attribute'!=_0x2aa491[_0x1871('0xaa')]),_0x1418c8=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1871('0x2d')](_0x433ff0=>!_0x433ff0[_0x1871('0x125')]&&'attribute'!=_0x433ff0[_0x1871('0xaa')]),_0x216af6=_0x1418c8[_0x1871('0x2d')](_0x1f29cb=>!_0x2a7ebf[_0x1871('0x165')](_0x1f29cb)),_0x5e17e3=new Map(_0x1418c8[_0x1871('0x44')](_0x477db2=>[_0x477db2,this[_0x1871('0x103')]['getSuggestionCallback'](_0x477db2[_0x1871('0xaa')],_0x477db2['subType'],_0x1871('0x11b'))])),_0x167fde=new Map(_0x1418c8[_0x1871('0x44')](_0x115475=>[_0x115475,_0x115475[_0x1871('0x2a')]()])),_0x480692=new Set(),_0x2420a9=new Set();for(let _0x5e35f8=0x0;_0x5e35f8<_0x3753ac[_0x1871('0x82')];_0x5e35f8++)_0x356055(_0x3753ac[_0x5e35f8],_0x3753ac,_0x5e35f8+0x1);for(let _0x3fbc58=0x0;_0x3fbc58<_0x3753ac[_0x1871('0x82')];_0x3fbc58++)_0x356055(_0x3753ac[_0x3fbc58],_0x216af6,0x0);const _0x21f714=new Set();for(let _0x4a4b96=0x0;_0x4a4b96<_0x3753ac[_0x1871('0x82')];_0x4a4b96++){const _0x183463=_0x3753ac[_0x4a4b96];!_0x2420a9[_0x1871('0x165')](_0x183463)&&_0x183463[_0x1871('0x24')]&&(_0x21f714[_0x1871('0xa2')](_0x183463[_0x1871('0x24')]),_0x183463['previous'][_0x1871('0x7')]===_0x183463&&(_0x183463['previous'][_0x1871('0x7')]=null),_0x183463['previous']=null),!_0x480692['has'](_0x183463)&&_0x183463[_0x1871('0x7')]&&(_0x21f714['add'](_0x183463[_0x1871('0x7')]),_0x183463[_0x1871('0x7')][_0x1871('0x24')]===_0x183463&&(_0x183463[_0x1871('0x7')][_0x1871('0x24')]=null),_0x183463[_0x1871('0x7')]=null);}function _0x356055(_0x538f7b,_0x401548,_0x1597bc){for(let _0xc380e2=_0x1597bc;_0xc380e2<_0x401548[_0x1871('0x82')];_0xc380e2++){const _0x546f03=_0x5aaec4(_0x538f7b,_0x401548[_0xc380e2]);_0x546f03&&(_0x546f03[0x0][_0x1871('0x7')]=_0x546f03[0x1],_0x546f03[0x1][_0x1871('0x24')]=_0x546f03[0x0],_0x480692[_0x1871('0xa2')](_0x546f03[0x0]),_0x2420a9[_0x1871('0xa2')](_0x546f03[0x1]));}}function _0x5aaec4(_0x503c0f,_0x48ef05){if(_0x503c0f['author']['id']!==_0x48ef05[_0x1871('0x43')]['id'])return null;const _0x16f0ab=_0x5e17e3[_0x1871('0x59')](_0x503c0f)(_0x503c0f,_0x48ef05,_0x167fde[_0x1871('0x59')](_0x503c0f),_0x167fde['get'](_0x48ef05));if(!_0x16f0ab)return null;return _0x5e17e3[_0x1871('0x59')](_0x48ef05)(_0x503c0f,_0x48ef05,_0x167fde[_0x1871('0x59')](_0x503c0f),_0x167fde[_0x1871('0x59')](_0x48ef05))?_0x16f0ab[0x1][_0x1871('0xa9')]&&_0x16f0ab[0x1][_0x1871('0xa9')][_0x1871('0x82')]?null:_0x16f0ab:null;}_0x21f714[_0x1871('0x4f')]&&this[_0x1871('0x84')](_0x21f714);}['_refreshAttributeSuggestionsChain'](_0x13f433){if(0x0==_0x13f433[_0x1871('0x82')])return;const _0x1c60e3=this[_0x1871('0x21')]({'skipNotAttached':!0x0})['filter'](_0x2c4b52=>_0x1871('0xac')==_0x2c4b52[_0x1871('0xaa')]&&_0x2c4b52['_isDataLoaded']),_0x48fcf9=[],_0xdbe879=new Map();for(const _0x4b7052 of _0x1c60e3){const _0x10726e=_0x25e8fa(_0x4b7052[_0x1871('0xc1')]);_0xdbe879['has'](_0x10726e)||(_0xdbe879[_0x1871('0xb2')](_0x10726e,_0x48fcf9[_0x1871('0x82')]),_0x48fcf9[_0x1871('0x169')]([]));const _0x44a6b4=_0xdbe879[_0x1871('0x59')](_0x10726e);_0x48fcf9[_0x44a6b4]['push'](_0x4b7052);}!function(){_0x48fcf9['sort']((_0x1d3521,_0xde35f5)=>{const _0x12a04a=_0x1d3521[0x0][_0x1871('0x29')],_0x4e406e=_0xde35f5[0x0][_0x1871('0x29')];return _0x12a04a==_0x4e406e?_0x1d3521[0x0][_0x1871('0xc1')][_0x1871('0xd4')]<_0xde35f5[0x0][_0x1871('0xc1')][_0x1871('0xd4')]?-0x1:0x1:_0x12a04a<_0x4e406e?-0x1:0x1;});for(const _0x2dd665 of _0x48fcf9)_0x2dd665['sort']((_0x3d6c61,_0x28cb12)=>_0x3d6c61['id']<_0x28cb12['id']?-0x1:0x1);}();for(let _0x410d61=0x0;_0x410d61<_0x48fcf9[_0x1871('0x82')];_0x410d61++){if(0x0==_0x48fcf9[_0x410d61][_0x1871('0x82')])continue;const _0x52fc80=[];for(let _0x4e7c25=_0x410d61+0x1;_0x4e7c25<_0x48fcf9['length'];_0x4e7c25++)0x0!=_0x48fcf9[_0x4e7c25][_0x1871('0x82')]&&_0xdc7ce6(_0x48fcf9[_0x410d61],_0x48fcf9[_0x4e7c25])&&_0x52fc80['push'](_0x4e7c25);for(const _0x2b6aca of _0x52fc80)_0x48fcf9[_0x410d61]=_0x48fcf9[_0x410d61][_0x1871('0x100')](_0x48fcf9[_0x2b6aca]),_0x48fcf9[_0x2b6aca]=[];}for(const _0x5f441d of _0x48fcf9)for(let _0x49b945=0x0;_0x49b945<_0x5f441d[_0x1871('0x82')];_0x49b945++)_0x5f441d[_0x49b945][_0x1871('0x7')]=_0x5f441d[_0x49b945+0x1]||null;for(const _0x15ce6f of _0x48fcf9)for(let _0x1fe547=0x0;_0x1fe547<_0x15ce6f[_0x1871('0x82')];_0x1fe547++)_0x15ce6f[_0x1fe547]['previous']=_0x15ce6f[_0x1fe547-0x1]||null;function _0xdc7ce6(_0x3a80a9,_0x463882){if(_0x3a80a9[0x0][_0x1871('0xc1')][_0x1871('0xd4')]!==_0x463882[0x0][_0x1871('0xc1')]['groupId']&&_0x3a80a9[0x0]['author']!==_0x463882[0x0][_0x1871('0x43')])return!0x1;if(!function(_0x5848f5,_0x4ad9bd){if(!_0x5848f5[_0x1871('0xe7')]&&!_0x4ad9bd['hasComments'])return!0x0;if(_0x5848f5[_0x1871('0xe7')]&&_0x4ad9bd['hasComments'])return!0x1;if(_0x5848f5['hasComments']&&_0x4ad9bd[_0x1871('0x29')]<_0x5848f5[_0x1871('0xa9')][_0x1871('0x10d')][_0x1871('0x59')](0x0)[_0x1871('0x29')])return!0x0;if(_0x4ad9bd[_0x1871('0xe7')]&&_0x5848f5[_0x1871('0x29')]<_0x4ad9bd[_0x1871('0xa9')][_0x1871('0x10d')][_0x1871('0x59')](0x0)[_0x1871('0x29')])return!0x0;return!0x1;}(_0x3a80a9[0x0],_0x463882[0x0]))return!0x1;const _0x4065db=_0x5377cc(_0x3a80a9[0x0][_0x1871('0xc1')],_0x1871('0xd4')),_0x528f42=_0x5377cc(_0x463882[0x0][_0x1871('0xc1')],_0x1871('0xd4'));if(!_0x373ca2(_0x4065db,_0x528f42))return!0x1;return!!_0x3a80a9[_0x1871('0xb9')](_0x4fe9da=>_0x463882['some'](_0x13d538=>_0x4fe9da[_0x1871('0x2a')]()[_0x1871('0x58')](_0x13d538[_0x1871('0x2a')]())))&&_0x463882[_0x1871('0xb9')](_0x2ac620=>_0x3a80a9[_0x1871('0xe2')](_0x29b0ef=>_0x2ac620[_0x1871('0x2a')]()[_0x1871('0x58')](_0x29b0ef[_0x1871('0x2a')]())));}}['_joinWithAdjacentSuggestions'](_0x5ce2e2){const _0x110b74=Array[_0x1871('0x12f')](_0x5ce2e2),_0x54b725=this[_0x1871('0x21')]({'skipNotAttached':!0x0}),_0x47dfa=_0x54b725[_0x1871('0x2d')](_0x1659cd=>!_0x5ce2e2['has'](_0x1659cd)),_0x58d174=new Map(_0x110b74[_0x1871('0x44')](_0x1e7bd0=>[_0x1e7bd0,this['_suggestionFactory'][_0x1871('0xc9')](_0x1e7bd0[_0x1871('0xaa')],_0x1e7bd0['subType'],'join')])),_0x59da5b=new Map(_0x54b725[_0x1871('0x44')](_0x1a0d54=>[_0x1a0d54,_0x1a0d54['getRanges']()]));for(let _0x3a5cb9=0x0;_0x3a5cb9<_0x110b74[_0x1871('0x82')];_0x3a5cb9++){if(_0x50ba47(this,_0x110b74[_0x3a5cb9],_0x110b74,_0x3a5cb9+0x1))return!0x0;}for(let _0x3d3509=0x0;_0x3d3509<_0x110b74['length'];_0x3d3509++){if(_0x50ba47(this,_0x110b74[_0x3d3509],_0x47dfa,0x0))return!0x0;}return!0x1;function _0x50ba47(_0x1a58e4,_0x1fd31c,_0x2fafe7,_0x644bbd){for(let _0x3f14bd=_0x644bbd;_0x3f14bd<_0x2fafe7[_0x1871('0x82')];_0x3f14bd++){const _0xc5e5a2=_0x2fafe7[_0x3f14bd];if(_0xc5e5a2[_0x1871('0xaa')]!==_0x1fd31c[_0x1871('0xaa')]||_0xc5e5a2[_0x1871('0x43')]['id']!==_0x1fd31c[_0x1871('0x43')]['id']||_0xc5e5a2[_0x1871('0x9a')]!==_0x1fd31c['subType'])continue;if(!Ft(_0x1fd31c,_0xc5e5a2,[_0x1871('0xd4')]))continue;if(_0x1871('0xac')==_0x1fd31c[_0x1871('0xaa')]&&_0x1fd31c[_0x1871('0x78')][_0x1871('0xad')]!=_0xc5e5a2[_0x1871('0x78')][_0x1871('0xad')])continue;if(_0x1871('0xac')==_0x1fd31c[_0x1871('0xaa')]&&_0x1a58e4['_isBlockAttribute'](_0x1fd31c[_0x1871('0x78')][_0x1871('0xa5')]))continue;if('formatBlock'==_0x1fd31c['type']){const _0x5091f1=_0x1a58e4[_0x1871('0x118')][_0x1871('0x26')],_0xf35ed8=_0x1fd31c['getContainedElement']();if(_0xf35ed8&&(_0x5091f1[_0x1871('0x136')][_0x1871('0x60')](_0xf35ed8)||_0x5091f1[_0x1871('0x136')]['isLimit'](_0xf35ed8)))continue;}const _0x3566bf=_0x58d174['get'](_0x1fd31c),_0x35e930=_0x59da5b[_0x1871('0x59')](_0x1fd31c),_0xb224d9=_0x59da5b[_0x1871('0x59')](_0xc5e5a2),_0x40a34a=_0x1fd31c[_0x1871('0xa9')]&&_0x1fd31c[_0x1871('0xa9')][_0x1871('0x82')],_0x2da053=_0xc5e5a2[_0x1871('0xa9')]&&_0xc5e5a2[_0x1871('0xa9')][_0x1871('0x82')];if(!_0x40a34a&&_0x3566bf(_0xb224d9,_0x35e930))return _0x1a58e4['_joinSuggestions'](_0xc5e5a2,_0x1fd31c),_0x59da5b['delete'](_0x1fd31c),!0x0;if(!_0x2da053&&_0x3566bf(_0x35e930,_0xb224d9))return _0x1a58e4[_0x1871('0xe9')](_0x1fd31c,_0xc5e5a2),_0x59da5b[_0x1871('0x13d')](_0xc5e5a2),!0x0;}return!0x1;}}[_0x1871('0xe9')](_0x6fdd0c,_0x8692ec){if(_0x6fdd0c[_0x1871('0x125')])for(const _0xdbd116 of _0x8692ec[_0x1871('0xec')]())_0x6fdd0c[_0x1871('0x4b')](_0xdbd116);else{const _0x23e4b7=_0x8692ec[_0x1871('0x2a')]()[_0x1871('0x23')];this[_0x1871('0x141')](_0x6fdd0c,this[_0x1871('0x16a')]['createRange'](_0x6fdd0c['getFirstRange']()['start'],_0x23e4b7));}_0x8692ec[_0x1871('0xce')]();}[_0x1871('0x10e')](_0x41a5eb,_0x102708){const _0x49966f=_0x41a5eb[_0x1871('0x13a')]('format')||_0x41a5eb[_0x1871('0x13a')]('attribute')?_0x1871('0xae'):_0x41a5eb[_0x1871('0xe0')]();return _0x33b9dc(this['editor'][_0x1871('0x8')],_0x102708+'_'+_0x49966f+_0x1871('0x74'));}[_0x1871('0x1e')](){const _0x4fbb94=this[_0x1871('0x118')];_0x13cdd5(this[_0x1871('0x16a')],({left:_0x528fc4,entered:_0x1e2ca5})=>{const _0x33d5dc=[];for(const _0x3d85a2 of _0x528fc4){const {group:_0x2bf755,type:_0x58f7f5}=this['_splitMarkerName'](_0x3d85a2[_0x1871('0x161')]);if(_0x1871('0x45')===_0x2bf755){_0x33d5dc['push'](this[_0x1871('0x10e')](_0x58f7f5,_0x1871('0x41')));break;}}for(const _0x4a3dfe of _0x1e2ca5){const {group:_0x2065f3,type:_0x4c1312}=this[_0x1871('0x124')](_0x4a3dfe[_0x1871('0x161')]);if(_0x1871('0x45')===_0x2065f3){_0x33d5dc[_0x1871('0x169')](this[_0x1871('0x10e')](_0x4c1312,'ENTER'));break;}}_0x33d5dc[_0x1871('0x82')]&&_0x4fbb94['ui'][_0x1871('0x166')][_0x1871('0x64')](_0x1871('0x33'),_0x33d5dc[_0x1871('0xdd')]('\x20'));});}[_0x1871('0x73')](_0x8c586d){if(this[_0x1871('0x7d')])return!0x1;const _0x143801=this[_0x1871('0x118')],_0x25cb48=_0x143801[_0x1871('0x26')]['document'][_0x1871('0x159')]['getChanges']();if(0x0==_0x25cb48[_0x1871('0x82')])return!0x1;const _0x40c256=[],_0x3f5f59=_0x25cb48[_0x1871('0x2d')](_0x134c6a=>_0x1871('0xac')==_0x134c6a[_0x1871('0xaa')]),_0x33cd7e=_0x25cb48[_0x1871('0x2d')](_0x401c51=>_0x1871('0x15b')==_0x401c51['type']&&'$text'!=_0x401c51[_0x1871('0x161')]),_0x2b17f8=_0x25cb48[_0x1871('0x2d')](_0x3b5c11=>_0x1871('0xe1')==_0x3b5c11[_0x1871('0xaa')]&&_0x1871('0x92')!=_0x3b5c11[_0x1871('0x161')]);for(const _0x38d72b of _0x3f5f59)_0x40c256['push']({'key':_0x38d72b[_0x1871('0xc5')],'newValue':_0x38d72b[_0x1871('0x48')],'oldValue':_0x38d72b[_0x1871('0xf')],'range':Ut(_0x38d72b[_0x1871('0xc6')],_0x143801[_0x1871('0x26')])});for(const _0x3ef1db of _0x33cd7e){const _0x1a53e8=_0x2b17f8[_0x1871('0x16f')](_0x275683=>_0x275683[_0x1871('0xa0')][_0x1871('0x58')](_0x3ef1db[_0x1871('0xa0')]));_0x1a53e8&&_0x40c256[_0x1871('0x169')]({'key':_0x1871('0x55'),'newValue':_0x3ef1db[_0x1871('0x161')],'oldValue':_0x1a53e8[_0x1871('0x161')],'range':_0x143801[_0x1871('0x26')][_0x1871('0x36')](_0x3ef1db[_0x1871('0xa0')][_0x1871('0xb6')])});}return 0x0!=_0x40c256['length']&&this[_0x1871('0x6e')](_0x8c586d,_0x40c256);}[_0x1871('0x9b')](_0x20831a){let _0x2429ac=!0x1;const _0x1936c6=this[_0x1871('0x118')]['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xdb')]()[_0x1871('0x2d')](_0x510631=>_0x510631[_0x1871('0x78')][_0x1871('0x51')]&&_0x510631[_0x1871('0x161')][_0x1871('0x13a')](_0x1871('0x95')));for(const _0x301606 of _0x1936c6){const {subType:_0x4b385d,id:_0x4423ae}=this['_splitMarkerName'](_0x301606[_0x1871('0x161')]),_0x1aa0da=_0x4b385d[_0x1871('0x5a')]('|')[0x0];for(const _0x4173e9 of this[_0x1871('0x21')]({'skipNotAttached':!0x0}))_0x4173e9['id']!=_0x4423ae&&_0x1871('0xac')==_0x4173e9[_0x1871('0xaa')]&&_0x4173e9[_0x1871('0x78')]&&_0x4173e9['data'][_0x1871('0xa5')]==_0x1aa0da&&_0x4173e9[_0x1871('0x2a')]()[_0x1871('0xd2')](_0x301606[_0x1871('0x78')]['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4173e9,_0x301606[_0x1871('0x78')][_0x1871('0x51')],_0x20831a),_0x2429ac=!0x0);}return _0x2429ac;}['_recordAttributeChanges'](_0x4fe305){this[_0x1871('0x118')],(this['_recordAttributeSuggestions']=!0x0,_0x4fe305());}[_0x1871('0x156')](_0xe05490){const _0x10105a=this[_0x1871('0x8e')](_0xe05490),_0x89fe4b=this['_inlineAttributeKeys']['has'](_0xe05490);return _0x10105a||_0x89fe4b;}[_0x1871('0x6e')](_0x2d113a,_0x3c8505){if(0x0==_0x3c8505[_0x1871('0x82')])return!0x1;let _0x4e4d84=!0x1;for(const _0x540c0f of _0x3c8505){const _0xcef6d1=this[_0x1871('0x15c')](_0x540c0f[_0x1871('0xc6')],_0x1871('0xac'))[_0x1871('0x2d')](_0x13c231=>!_0x13c231[_0x1871('0x13')]['isNextTo'])[_0x1871('0x44')](_0x49d17c=>_0x49d17c[_0x1871('0x45')]),_0x57f7be=_0x25e8fa({'newValue':_0x540c0f[_0x1871('0x176')]});_0xcef6d1[_0x1871('0x2d')](_0x1283f8=>{const [_0x3ee57f,_0x2a7ea5]=_0x1283f8[_0x1871('0x9a')]['split']('|');return _0x3ee57f==_0x540c0f[_0x1871('0xa5')]&&_0x2a7ea5!=_0x57f7be;})[_0x1871('0x12a')](_0x3f2fe1=>{this[_0x1871('0x8d')](_0x3f2fe1,_0x540c0f['range'],_0x2d113a),_0x4e4d84=!0x0;});}return _0x4e4d84;}[_0x1871('0x8d')](_0x11f711,_0x1d4cc8,_0x34a6f7){const _0x4d45ce=_0x11f711[_0x1871('0x2a')]()['getDifference'](_0x1d4cc8);0x0!==_0x4d45ce['length']?0x1!==_0x4d45ce['length']?this['_breakSuggestionMarker'](_0x11f711,_0x1d4cc8[_0x1871('0x143')],_0x1d4cc8['end']):this[_0x1871('0x141')](_0x11f711,_0x4d45ce[0x0]):_0x34a6f7[_0x1871('0x112')](_0x11f711[_0x1871('0x173')]());}}class Bt{constructor(_0x5b540c){this[_0x1871('0x83')]=_0x5b540c,this[_0x1871('0x16a')]=_0x5b540c[_0x1871('0x26')],this[_0x1871('0x1a')]=new Map(),this[_0x1871('0x89')]=new Map(),this['_registerDefaultCallbacks']();}[_0x1871('0xc4')](_0x3b4c1f,_0x59b750,_0x2878db,_0x5f4783,_0x74c305,_0x397418){return new _0x3e227c(this[_0x1871('0x16a')],{'type':_0x3b4c1f,'subType':_0x59b750,'id':_0x2878db,'author':_0x5f4783,'creator':_0x5f4783,'attributes':_0x74c305,'onAttributesChange':_0x397418,'onAccept':(..._0x1755d8)=>this[_0x1871('0xc9')](_0x3b4c1f,_0x59b750,'accept')(..._0x1755d8),'onDiscard':(..._0x24c88a)=>this[_0x1871('0xc9')](_0x3b4c1f,_0x59b750,'discard')(..._0x24c88a)});}[_0x1871('0xaf')](_0x34777f,_0x3b6d65,_0x355e22,_0x1968c4){const _0x4a984d=_0x34777f+':'+_0x3b6d65+':'+_0x355e22;this['_customCallbacks'][_0x1871('0xb2')](_0x4a984d,_0x1968c4);}[_0x1871('0xc9')](_0x3ca1d1,_0x5576e2,_0x5d8ae5){const _0x24b107=_0x3ca1d1+':'+_0x5576e2+':'+_0x5d8ae5;return this[_0x1871('0x1a')][_0x1871('0x59')](_0x24b107)||this[_0x1871('0x89')]['get'](_0x3ca1d1+':'+_0x5d8ae5);}['_registerDefaultCallbacks'](){const _0x283a73=()=>!0x1,_0x2d884d=_0x26e64e=>{_0x26e64e[_0x1871('0x122')]((_0x1484fb,_0x324bb7)=>_0x1484fb[_0x1871('0x143')]['isBefore'](_0x324bb7[_0x1871('0x143')])?0x1:-0x1),this[_0x1871('0x16a')][_0x1871('0xa4')](_0x52a9d2=>{for(const _0x572d8e of _0x26e64e){let _0x2de329;_0x2de329=_0x572d8e['end'][_0x1871('0x1c')]&&_0x572d8e[_0x1871('0x23')]['parent']==_0x572d8e[_0x1871('0x143')]['nodeAfter']?_0x52a9d2[_0x1871('0x3')](_0x572d8e[_0x1871('0x143')][_0x1871('0xb6')],'on'):_0x52a9d2[_0x1871('0x3')](_0x572d8e),this['_model'][_0x1871('0x7b')](_0x2de329,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x539b30=(_0x543ff2,_0x1136b1)=>{_0x1136b1&&this['_model']['change'](_0x55dbf1=>{const {commandName:_0x282800,commandParams:_0x2ce748=[]}=_0x1136b1,_0x15f42e=_0x543ff2['map'](_0x23e946=>(Rt(_0x23e946)&&(_0x23e946=this['_model'][_0x1871('0xb4')](_0x23e946[_0x1871('0x23')])),_0x23e946))[_0x1871('0x2d')](_0x21d8cd=>_0x1871('0x65')!==_0x21d8cd[_0x1871('0x167')][_0x1871('0xa3')]);if(_0x15f42e[_0x1871('0x82')]<0x1)return;const _0x1684d2=Array[_0x1871('0x12f')](this[_0x1871('0x16a')][_0x1871('0x11')][_0x1871('0x4')][_0x1871('0xec')]())[_0x1871('0x44')](_0x46dc75=>_0x190336['fromRange'](_0x46dc75));_0x55dbf1['setSelection'](_0x15f42e);for(const _0x3b39da of this[_0x1871('0x83')][_0x1871('0xf0')][_0x1871('0xf0')]())_0x3b39da[_0x1871('0x171')]();_0x2ce748['push']({'forceDefaultExecution':!0x0}),this[_0x1871('0x83')][_0x1871('0x12e')](_0x282800,..._0x2ce748);const _0x41733d=_0x1684d2[_0x1871('0x2d')](_0x359b42=>'$graveyard'!=_0x359b42[_0x1871('0x167')][_0x1871('0xa3')]);_0x41733d[_0x1871('0x82')]>0x0&&_0x55dbf1[_0x1871('0x27')](_0x41733d);for(const _0x4b226b of _0x1684d2)_0x4b226b[_0x1871('0x6a')]();});},_0x154140=(_0x1d7679,_0x42737c)=>0x1==_0x1d7679[_0x1871('0x82')]&&0x1==_0x42737c['length']&&_0x1d7679[0x0][_0x1871('0x23')][_0x1871('0x58')](_0x42737c[0x0]['start']),_0x1cc4da=(_0x5094fc,_0x49fedb,_0x2391ee,_0x2c7260)=>Gt(_0x5094fc,_0x49fedb,_0x2391ee,_0x2c7260,this['_model'])?[_0x5094fc,_0x49fedb]:Gt(_0x49fedb,_0x5094fc,_0x2c7260,_0x2391ee,this['_model'])?[_0x49fedb,_0x5094fc]:null;this['_defaultCallbacks'][_0x1871('0xb2')](_0x1871('0x120'),_0x283a73),this[_0x1871('0x89')]['set'](_0x1871('0x70'),_0x2d884d),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x107'),_0x154140),this[_0x1871('0x89')]['set'](_0x1871('0xcd'),_0x1cc4da),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x94'),_0x2d884d),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x9e'),_0x283a73),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x117'),_0x154140),this['_defaultCallbacks'][_0x1871('0xb2')]('deletion:chain',_0x1cc4da),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0xa1'),_0x539b30),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0xc8'),_0x283a73),this[_0x1871('0x89')][_0x1871('0xb2')]('formatInline:join',_0x154140),this['_defaultCallbacks'][_0x1871('0xb2')](_0x1871('0xd7'),_0x283a73),this['_defaultCallbacks'][_0x1871('0xb2')](_0x1871('0x1b'),_0x539b30),this[_0x1871('0x89')]['set'](_0x1871('0x1'),_0x283a73),this['_defaultCallbacks']['set']('formatBlock:join',_0x154140),this[_0x1871('0x89')][_0x1871('0xb2')]('formatBlock:chain',_0x283a73),this[_0x1871('0x89')]['set'](_0x1871('0x3a'),_0x283a73),this[_0x1871('0x89')]['set'](_0x1871('0xc2'),(_0x5bde96,_0x2f58c1)=>{if(!_0x2f58c1)return;const _0x53db89=this['_editor'][_0x1871('0x13f')][_0x1871('0x59')](p);this['_model']['change'](_0x58bb72=>{if('$elementName'==_0x2f58c1[_0x1871('0xa5')])for(const _0x2a2516 of _0x5bde96){const _0x4b5740=_0x2a2516[_0x1871('0x143')]['nodeAfter'],_0x336899=_0x2f58c1[_0x1871('0xad')];_0x58bb72[_0x1871('0x144')](_0x4b5740,_0x336899);}else{if(_0x53db89['_isBlockAttribute'](_0x2f58c1[_0x1871('0xa5')]))for(const _0x233970 of _0x5bde96)void 0x0!==_0x2f58c1[_0x1871('0xad')]?_0x58bb72[_0x1871('0x138')](_0x2f58c1[_0x1871('0xa5')],_0x2f58c1[_0x1871('0xad')],_0x233970[_0x1871('0x143')][_0x1871('0xb6')]):_0x58bb72[_0x1871('0xe6')](_0x2f58c1['key'],_0x233970[_0x1871('0x143')][_0x1871('0xb6')]);else for(const _0x63e7c3 of _0x5bde96)_0x2f58c1[_0x1871('0xad')]?_0x58bb72[_0x1871('0x138')](_0x2f58c1[_0x1871('0xa5')],_0x2f58c1[_0x1871('0xad')],_0x63e7c3):_0x58bb72[_0x1871('0xe6')](_0x2f58c1[_0x1871('0xa5')],_0x63e7c3);}});}),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x68'),_0x154140);}}function xt(_0x86b4ba,_0x130943,_0x3c1d8f){for(const _0x47ab27 of _0x130943[_0x1871('0x17')][_0x1871('0x174')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47ab27[_0x1871('0x167')]==_0x47ab27)return!0x1;if(!_0x3c1d8f[_0x1871('0x13e')](_0x47ab27))return!0x1;if(_0x86b4ba[_0x1871('0x60')](_0x47ab27)||_0x86b4ba['isLimit'](_0x47ab27))return!0x0;}return!0x1;}function Rt(_0x32051f){return _0x32051f['end'][_0x1871('0x17')]==_0x32051f[_0x1871('0x143')][_0x1871('0xb6')]&&_0x32051f[_0x1871('0x23')][_0x1871('0xf4')];}function Tt(_0x19ac70,_0x4e82c4,_0x53f77b,_0x1f3b21){const _0x4abaff=_0xa8d698=>!_0xa8d698[_0x1871('0x8c')]['is'](_0x1871('0x11f'))&&!_0x1f3b21[_0x1871('0x60')](_0xa8d698[_0x1871('0x8c')]),_0x52151a=_0x19ac70['start'][_0x1871('0x13c')](_0x4abaff),_0x3ee879=_0x19ac70['end'][_0x1871('0x13c')](_0x4abaff,{'direction':_0x1871('0x9c')});return(!_0x19ac70[_0x1871('0x143')][_0x1871('0x58')](_0x52151a)||!_0x19ac70[_0x1871('0x23')][_0x1871('0x58')](_0x3ee879))&&(_0x52151a[_0x1871('0x6f')](_0x3ee879)?_0x53f77b[_0x1871('0x93')](_0x4e82c4,{'range':_0x53f77b[_0x1871('0xb4')](_0x52151a,_0x3ee879)}):_0x53f77b[_0x1871('0x112')](_0x4e82c4),!0x0);}function Et(_0x19e28a){return _0x25e8fa(_0x19e28a);}function Vt(_0xc506bf){const _0x22794c=_0xc506bf[_0x1871('0x143')]['nodeAfter'];return _0x22794c&&_0x22794c['is']('element');}function Ut(_0x2494e7,_0x651aef){return null==_0x2494e7['end']['nodeBefore']&&_0x2494e7['end']['parent']==_0x2494e7['start']['nodeAfter']?Ot(_0x2494e7[_0x1871('0x143')][_0x1871('0xb6')],_0x651aef):_0x2494e7;}function Ot(_0x339a6e,_0x41aa2c){const _0x45eb4c=_0x41aa2c[_0x1871('0x136')][_0x1871('0x60')](_0x339a6e)||_0x41aa2c['schema'][_0x1871('0xba')](_0x339a6e);return _0x41aa2c['createRange'](_0x41aa2c['createPositionAt'](_0x339a6e,_0x1871('0x18')),_0x45eb4c?_0x41aa2c[_0x1871('0x53')](_0x339a6e):_0x41aa2c['createPositionAt'](_0x339a6e,_0x1871('0x23')));}function Gt(_0x1b1d68,_0x3a1ebd,_0x2882de,_0x21a0fb,_0x28d16d){if(!Ft(_0x1b1d68,_0x3a1ebd))return!0x1;if(_0x2882de['end'][_0x1871('0x58')](_0x21a0fb[_0x1871('0x143')]))return!0x0;if(_0x1b1d68[_0x1871('0xaa')]!=_0x3a1ebd['type'])return!0x1;if(!_0x2882de['end'][_0x1871('0x6b')](_0x21a0fb[_0x1871('0x143')]))return!0x1;const _0x2e1a10=_0x28d16d[_0x1871('0xb4')](_0x2882de[_0x1871('0x23')],_0x21a0fb['start'])[_0x1871('0x46')]();for(const _0x40cfbe of _0x2e1a10)if([_0x1871('0xf9'),_0x1871('0x32')]['includes'](_0x40cfbe[_0x1871('0xaa')])&&_0x28d16d['schema'][_0x1871('0xbe')](_0x40cfbe[_0x1871('0x8c')]))return!0x1;return!0x0;}function Ft(_0x1bd748,_0x368753,_0x47c890=[]){return!(!_0x1bd748[_0x1871('0x20')]||!_0x368753[_0x1871('0x20')])&&_0x373ca2(_0x5377cc(_0x1bd748['attributes'],_0x47c890),_0x5377cc(_0x368753[_0x1871('0xc1')],_0x47c890));}function Pt(_0x4f797e,_0x4bc02a){const _0x56e90b=Lt(_0x4f797e[_0x1871('0xc1')]),_0x577f15=Lt(_0x4bc02a);if(!_0x4f797e['_isDataLoaded'])return!0x1;for(const _0x3a28dc of Object[_0x1871('0x105')](_0x577f15))if(!_0x373ca2(_0x56e90b[_0x3a28dc],_0x577f15[_0x3a28dc]))return!0x1;return!0x0;}function Lt(_0x31834c){const _0x38133a=Object[_0x1871('0x25')]({},_0x31834c);return delete _0x38133a[_0x1871('0x8b')],delete _0x38133a[_0x1871('0x31')],_0x38133a;}
23
+ const _0x5617=['refresh','createPositionAfter','formatBlock','discardAllSuggestions','markDeletion','_joinWithAdjacentSuggestions','deleteContent','get','howMany','_isDataLoaded','_descriptionFactory','getCustomProperty','isUndo','default','setAttribute','ready','getAttribute','isRemovable','remove','markerToHighlight','createRangeIn','move','after','_getMarkerAnnouncementText','removeMarker:suggestion:formatBlock','getLastMatchingPosition','open','addUser','markMultiRangeInsertion','deletion:accept','_trackFormatChanges','@external','_processAttributeSuggestions','track-changes-adapter-missing-getsuggestion','applyOperation','isLimit','addMarkerName','selection','deletion:discard','tablePasteChainId','trackChangesCommand','authoredAt','batch','PENDING_ACTION_SUGGESTION','documentSelection','assign','size','_setSuggestionRange','authorName','insertion:join','never','getShiftedBy','_commentsRepository','updateMarker','nodeBefore','LEAVE','splice','getUser','push','markerNameToElements','_mergeNestedSuggestions','CommentsRepository','removeMarkers','createRangeOn','dataReady','multipleBlocks','meta','isEqual','markInlineFormat','acceptAllSuggestions','isObject','notReady','isAtEnd','updateSuggestion','position','getSuggestions','document','marker-count','element','_adapter','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','_editor','_setSuggestionData','isIntersectingWithRange','getChanges','PendingActions','_createSuggestion','_findSuggestions','isInContent','set','containsItem','_getAttributeKey','_customCallbacks','data-suggestion','type','getContainedElement','_getSuggestionData','toViewElement','ENTER','parent','_defaultCallbacks','rethrowUnexpectedError','commentThread','containsPosition','from','add','registerPostFixer','reconvertMarker','createElement','oldValue','_rangeIsInLocalUserInsertion','addSuggestionData','_SUGGESTION_ANNOUNCEMENT','getFirstRange','isOwn','setSelection','adapter','commands','isCollapsed','addMarker:suggestion:formatBlock','unshift','collaboration.channelId','getRanges','_refreshAttributeSuggestionsChain','announce','resolve','containsRangeInObject','range','values','backward','isArray','markBlockFormat','value','_model','addCommentThread','createdAt','data','track-changes-command-not-found','newRange','_suggestions','formatInline:join','length','buildSuggestion','_handleNewSuggestionMarker','_addSuggestionMarker','root','change','_addThreadToSuggestion','attribute:','comments','_splitMarkerName','suggestionChanged','pop','formatBlock:','showSuggestionHighlights','forceDefaultExecution','addHighlight','low','formatBlock:join','end','elementStart','formatInline','elementEnd','_registerDefaultCallbacks','track-changes-suggestion-data-mismatch','plugins','map','markMultiRangeBlockFormat','fetchCommentThread','suggestion:','formatInline:accept','highest','splitPosition','containsRange','detach','containerElement','unbind','startsWith','removeMarker','_suggestionFactory','track-changes-enable-command-twice','delete','forEach','addClass','createRange','_processAttributeChanges','attributeOldValue','_suggestionState','getIntersection','_refreshSuggestionsChain','_enabledCommands','rootName','insertion','subType','_joinSuggestions','$elementName','ck-suggestion-marker--active','group','ck-suggestion-marker-formatBlock','markerName','stopListening','deletion','hasComments','creator','editor','_reduceSuggestionAttributeRange','fire','attribute:accept','Users','join','always','formatInline:','_blockAttributeKeys','schema','widget','getCommentThread','split','define','addRange','getSuggestion','isInsideObject','_removeSuggestion','key','_isRegisteredAttribute','mapper','_breakSuggestionMarker','author','acceptSuggestion','attribute','formatInline:chain','getSuggestionCallback','return','some','isLocal','_cutOutSuggestionMarker','hasSuggestion','attributes','activeMarkers','getItems','upcast','attributeKey','$marker','markInsertion','_isForcedDefaultExecutionBlock','originalSuggestionId','moveTargetPosition','catch','isAfter','for','start','formatBlock:accept','getNearestSelectionRange','isBefore','addMarker:suggestion:attribute','discardSuggestion','_registerBlockAttribute','removed','consume','markerReady','deletion:join','sort','ck-suggestion-marker-','model','then','warn','markAttributeChange','addMarker','dataToMarker','getDifference','_saved','enableReadOnlyMode','$textProxy','attributeNewValue','toUpperCase','getFirstMarker','normal','createPositionAt','trackChanges.trackFormatChanges','locale','track-changes-suggestion-not-found','addSuggestion','accept','$graveyard','ck-suggestion-marker','getWalker','_getExternalAuthor','isMultiRange','acceptSelectedSuggestions','change:activeMarkers','removeClass','suggestion:attribute:','stop','createSelection','enableCommand','previous','formatGroupId','deletion:chain','rejected','editingDowncast','ariaLiveAnnouncer','hasCommentThread','nodeAfter','differ','update:suggestion','every','_reduceExistingSuggestions','lowest','forward','addComment','attribute:discard','insertContent','discardSelectedSuggestions','getMultiRangeId','next','chain','removeAttribute','toJSON','config','insert','options','commandName','_recordAttributeSuggestions','enqueueChange','_getAuthorFromId','listenTo','_checkSuggestionCorrectness','external:','_initAriaMarkerChangeAnnouncements','markMultiRangeDeletion','oldRange','getChangedMarkers','_recordAttributeChanges','pluginName','item','suggestionLoaded','skipNestingCheck','dataDowncast','high','markers','isNextTo','writer','registerCustomCallback','createPositionBefore','head','suggestion','ck-suggestion-marker-formatInline','conversion','insertion:discard','getAllAdjacentSuggestions','name','_updateSuggestionData','suggestionUnloaded','find','setTo','getMarkers','discard','filter','keys','execute','consumable','has','$text','groupId','includes','isTouching','_isBlockAttribute','_inlineAttributeKeys','error-saving-suggestion-data-suggestion-discarded'];(function(_0x29657d,_0x56173d){const _0x42fabc=function(_0x23ee14){while(--_0x23ee14){_0x29657d['push'](_0x29657d['shift']());}};_0x42fabc(++_0x56173d);}(_0x5617,0x112));const _0x42fa=function(_0x29657d,_0x56173d){_0x29657d=_0x29657d-0x0;let _0x42fabc=_0x5617[_0x29657d];return _0x42fabc;};import{Plugin as _0x702a56,PendingActions as _0x1cc2dc}from'ckeditor5/src/core.js';import{LiveRange as _0x3f221e}from'ckeditor5/src/engine.js';import{CKEditorError as _0x6b7fca,uid as _0x53d935,priorities as _0x4f77bf,logWarning as _0x4ae81c}from'ckeditor5/src/utils.js';import{toWidget as _0x4bdd67}from'ckeditor5/src/widget.js';import{Users as _0x4082cd,hashObject as _0x1d9dc1,surroundingMarkersDetector as _0x20325c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x174130 from'./commands/trackchangescommand.js';import _0x2ea012 from'./commands/acceptsuggestioncommand.js';import _0x4aff2c from'./commands/discardsuggestioncommand.js';import _0x52c666 from'./commands/executeonallsuggestionscommand.js';import _0x1c3353 from'./commands/executeonselectedsuggestionscommand.js';import _0x5839fd from'./suggestion.js';import _0x242554 from'./suggestiondescriptionfactory.js';import _0x36e4a8 from'./integrations/aiassistant.js';import _0xbd3303 from'./integrations/alignment.js';import _0x3fdd1 from'./integrations/basicstyles.js';import _0x3e06fe from'./integrations/blockquote.js';import _0xf582a6 from'./integrations/casechange.js';import _0xbb857a from'./integrations/ckbox.js';import _0x1ea921 from'./integrations/codeblock.js';import _0xde1556 from'./integrations/comments.js';import _0x5d36b7 from'./integrations/deletecommand.js';import _0x4710ab from'./integrations/list.js';import _0x3e4c04 from'./integrations/listproperties.js';import _0x123aec from'./integrations/entercommand.js';import _0x8a016a from'./integrations/findandreplace.js';import _0x4a1d6e from'./integrations/font.js';import _0x9d43e8 from'./integrations/formatpainter.js';import _0x4db29a from'./integrations/heading.js';import _0x43d738 from'./integrations/highlight.js';import _0x115afb from'./integrations/horizontalline.js';import _0x2d0a2a from'./integrations/htmlembed.js';import _0x3d1b6b from'./integrations/image.js';import _0x1728ef from'./integrations/imagereplace.js';import _0x1aff20 from'./integrations/imagestyle.js';import _0x5c07fd from'./integrations/importword.js';import _0x2179c3 from'./integrations/indent.js';import _0x166f23 from'./integrations/inputcommand.js';import _0x165ac6 from'./integrations/link.js';import _0x21ccad from'./integrations/legacylist.js';import _0x4fdbcb from'./integrations/legacylistproperties.js';import _0x5a52c3 from'./integrations/mediaembed.js';import _0x54ddc8 from'./integrations/mention.js';import _0x342439 from'./integrations/pagebreak.js';import _0x463b7c from'./integrations/paragraph.js';import _0x154c51 from'./integrations/removeformat.js';import _0x85ce54 from'./integrations/restrictededitingmode.js';import _0x10f0a0 from'./integrations/shiftentercommand.js';import _0x10fa92 from'./integrations/standardeditingmode.js';import _0x2e7994 from'./integrations/style.js';import _0x587b29 from'./integrations/table.js';import _0x3b3541 from'./integrations/tablemergesplit.js';import _0x5ce986 from'./integrations/tableheadings.js';import _0x4458e3 from'./integrations/tableclipboard.js';import _0x43200c from'./integrations/tablecolumnresize.js';import _0x335639 from'./integrations/template.js';import _0x40114e from'./integrations/tableofcontents.js';import _0x296a8b from'./integrations/title.js';import _0x160610 from'./integrations/undo.js';import _0x466c50 from'./integrations/tablecaption.js';import _0x2cb577 from'./integrations/tableproperties.js';import{getTranslation as _0x1a255c}from'./utils/common-translations.js';import{isEqual as _0x3647ed,omit as _0x2fd0ab}from'lodash-es';export const renameAttributeKey=_0x42fa('0x121');export default class p extends _0x702a56{static get['requires'](){return[_0x42fa('0x9b'),_0x4082cd,_0x1cc2dc,_0x36e4a8,_0xbd3303,_0x3fdd1,_0x3e06fe,_0xbb857a,_0xf582a6,_0x1ea921,_0xde1556,_0x5d36b7,_0x123aec,_0x8a016a,_0x4a1d6e,_0x9d43e8,_0x4db29a,_0x43d738,_0x115afb,_0x2d0a2a,_0x3d1b6b,_0x1aff20,_0x1728ef,_0x5c07fd,_0x2179c3,_0x166f23,_0x21ccad,_0x4fdbcb,_0x165ac6,_0x4710ab,_0x3e4c04,_0x5a52c3,_0x54ddc8,_0x342439,_0x463b7c,_0x154c51,_0x85ce54,_0x10f0a0,_0x10fa92,_0x2e7994,_0x587b29,_0x3b3541,_0x5ce986,_0x466c50,_0x4458e3,_0x43200c,_0x40114e,_0x2cb577,_0x335639,_0x296a8b,_0x160610];}static get[_0x42fa('0x3a')](){return'TrackChangesEditing';}constructor(_0x30ebb4){function _0x3c7883(_0x141ddb){return _0x141ddb[_0x42fa('0x104')](_0x1d5c20=>String['fromCharCode'](_0x1d5c20))[_0x42fa('0x12f')]('');}super(_0x30ebb4),this['_recordAttributeSuggestions']=!0x1,this['set'](_0x42fa('0x14b'),[]),this['on'](_0x42fa('0xe'),(_0x222ec8,_0x187613,_0x38f37b,_0x103da9)=>{this['_model'][_0x42fa('0xf0')](()=>{for(const _0x54746c of[..._0x103da9,..._0x38f37b])this['_model'][_0x42fa('0x40')][_0x42fa('0x56')](_0x54746c)&&_0x30ebb4['editing'][_0x42fa('0xc9')](_0x54746c);});}),this[_0x42fa('0x68')]=new _0x242554(this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0x133')],this[_0x42fa('0x12a')][_0x42fa('0x4')]),this[_0x42fa('0xad')]=null,this[_0x42fa('0x111')]=new Bt(this[_0x42fa('0x12a')]),this[_0x42fa('0xe9')]=new Map(),this['_commentsRepository']=_0x30ebb4['plugins'][_0x42fa('0x65')](_0x42fa('0x9b')),this['_enabledCommands']=new Set(),this['_model']=this[_0x42fa('0x12a')][_0x42fa('0x164')],this[_0x42fa('0x119')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x42fa('0x132')]=new Set([_0x42fa('0x121')]),this['_inlineAttributeKeys']=new Set(),_0x30ebb4['config'][_0x42fa('0x137')]('trackChanges.trackFormatChanges',_0x42fa('0x6b')),this[_0x42fa('0x7c')]=_0x30ebb4[_0x42fa('0x2b')][_0x42fa('0x65')](_0x42fa('0x3')),_0x30ebb4['config'][_0x42fa('0x137')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x42fa('0x9a')]=_0x30ebb4[_0x42fa('0x2b')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x42fa('0x86')]=new _0x174130(_0x30ebb4,this[_0x42fa('0x11c')]),this[_0x42fa('0x35')](),this[_0x3c7883([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3c7883([0x34,0x30,0x34,0x38,0x30,0x32,0x33,0x38]);}['init'](){const _0x1edc8e=this[_0x42fa('0x12a')],_0x5b40b0=(_0x542dcf,_0xae8855)=>{if('attribute'!=_0x542dcf)return _0x42fa('0x163')+_0x542dcf;const _0x3e0848=_0xae8855[_0x42fa('0x136')]('|')[0x0];return this[_0x42fa('0x5b')](_0x3e0848)?_0x42fa('0x124'):_0x42fa('0x47');};_0x1edc8e['conversion']['for'](_0x42fa('0x18'))[_0x42fa('0x71')]({'model':_0x42fa('0x46'),'view':_0x23045c=>{const {id:_0x25af38,type:_0x210af5,subType:_0x2d30a4}=this[_0x42fa('0xf4')](_0x23045c['markerName']),_0x3e0472=['ck-suggestion-marker',_0x5b40b0(_0x210af5,_0x2d30a4)];let _0x4f889d=0xbb8;return this[_0x42fa('0x14b')][_0x42fa('0x59')](_0x23045c[_0x42fa('0x125')])&&(_0x3e0472[_0x42fa('0x98')]('ck-suggestion-marker--active'),_0x4f889d=0xbc2),'deletion'==_0x210af5&&(_0x4f889d+=0x5),{'classes':_0x3e0472,'attributes':{'data-suggestion':_0x25af38},'priority':_0x4f889d};}}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0xc7')](_0x288c3e=>{_0x288c3e['on']('addMarker:suggestion',(_0xe2ec8b,_0x13bb1e,_0x4d5b0d)=>{if(!_0x4d5b0d[_0x42fa('0x2d')][_0x42fa('0xf8')])return;const _0x5625e6=_0x13bb1e[_0x42fa('0x3b')];if(!_0x5625e6)return;const _0x1aa404=_0x4d5b0d[_0x42fa('0x13e')][_0x42fa('0xbf')](_0x5625e6);_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x133')]['isObject'](_0x5625e6)&&_0x1aa404&&!_0x1aa404[_0x42fa('0x69')](_0x42fa('0x134'))&&_0x1aa404['is'](_0x42fa('0x10d'))&&_0x4bdd67(_0x1aa404,_0x4d5b0d[_0x42fa('0x42')]);},{'priority':'high'});}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0x71')]({'model':_0x42fa('0x46'),'view':(_0x66a9c,_0x3864e5)=>{if(!_0x3864e5['options']['showSuggestionHighlights'])return null;const {type:_0x13ed3b,subType:_0x56dcc1}=this[_0x42fa('0xf4')](_0x66a9c['markerName']);return{'classes':[_0x42fa('0x9'),_0x5b40b0(_0x13ed3b,_0x56dcc1)],'priority':0xbb8};}});const _0x1bfb9b=({showActiveMarkers:_0x3f6566=!0x0,isAttributeSuggestion:_0x26e9a1=!0x1}={})=>(_0x19f1d4,_0x1f24f6,_0xbe50c)=>{if(!_0x1f24f6[_0x42fa('0x3b')])return;const {id:_0x1a9c7c}=this[_0x42fa('0xf4')](_0x1f24f6[_0x42fa('0x125')]);if(_0x26e9a1){const _0x1ec245=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x1a9c7c),_0x195576=this[_0x42fa('0xb9')](_0x1ec245);if(!this[_0x42fa('0x5b')](_0x195576))return;}if(_0x1f24f6[_0x42fa('0x3b')]['is'](_0x42fa('0x83')))return void _0xbe50c[_0x42fa('0x55')][_0x42fa('0x15f')](_0x1f24f6[_0x42fa('0x3b')],_0x19f1d4[_0x42fa('0x4b')]);const _0x1fa336=_0xbe50c[_0x42fa('0x13e')][_0x42fa('0xbf')](_0x1f24f6['item']);if(_0x1f24f6[_0x42fa('0x3b')]['is'](_0x42fa('0xac'))&&_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x133')]['isBlock'](_0x1f24f6['item'])&&!_0x1fa336[_0x42fa('0x69')](_0x42fa('0xfa'))){_0xbe50c['writer'][_0x42fa('0x115')]([_0x42fa('0x9'),'ck-suggestion-marker-formatBlock'],_0x1fa336),_0xbe50c[_0x42fa('0x42')][_0x42fa('0x6c')](_0x42fa('0xbb'),_0x1a9c7c,_0x1fa336),_0xbe50c[_0x42fa('0x13e')]['bindElementToMarker'](_0x1fa336,_0x1f24f6[_0x42fa('0x125')]),_0x3f6566&&(this[_0x42fa('0x14b')][_0x42fa('0x59')](_0x1f24f6[_0x42fa('0x125')])?_0xbe50c['writer'][_0x42fa('0x115')]('ck-suggestion-marker--active',_0x1fa336):_0xbe50c['writer'][_0x42fa('0xf')](_0x42fa('0x122'),_0x1fa336));for(const _0x540dd4 of _0x1edc8e[_0x42fa('0x164')][_0x42fa('0x72')](_0x1f24f6['item'])[_0x42fa('0x14c')]())_0xbe50c['consumable'][_0x42fa('0x15f')](_0x540dd4,_0x19f1d4[_0x42fa('0x4b')]);_0xbe50c['consumable']['consume'](_0x1f24f6[_0x42fa('0x3b')],_0x19f1d4[_0x42fa('0x4b')]);}};_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0xc7')](_0x1c87eb=>{_0x1c87eb['on'](_0x42fa('0xd5'),(_0x289bc8,_0x4f2439,_0xf276fd)=>{_0xf276fd[_0x42fa('0x2d')][_0x42fa('0xf8')]&&_0x1bfb9b({'showActiveMarkers':!0x1})(_0x289bc8,_0x4f2439,_0xf276fd);},{'priority':_0x42fa('0x109')});}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0xc7')](_0x541a28=>{_0x541a28['on'](_0x42fa('0x15b'),(_0x34ff38,_0x200be7,_0x408aa8)=>{_0x408aa8[_0x42fa('0x2d')]['showSuggestionHighlights']&&_0x1bfb9b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x34ff38,_0x200be7,_0x408aa8);},{'priority':_0x42fa('0x109')});}),_0x1edc8e[_0x42fa('0x48')]['for']('dataDowncast')['markerToData']({'model':_0x42fa('0x46'),'view':(_0x54f702,_0xceb84b)=>_0xceb84b[_0x42fa('0x2d')][_0x42fa('0xf8')]?null:{'group':'suggestion','name':_0x54f702['substr'](0xb)}}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')](_0x42fa('0x14d'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5dbb61,{writer:_0x4756ed})=>{let _0xcd0a28=_0x42fa('0x107')+_0x5dbb61[_0x42fa('0x6e')]('suggestion-type')+':'+_0x5dbb61[_0x42fa('0x6e')]('id');return _0x5dbb61[_0x42fa('0x6e')]('marker-count')&&(_0xcd0a28+=':'+_0x5dbb61['getAttribute'](_0x42fa('0xab'))),_0x4756ed[_0x42fa('0xca')](_0x42fa('0x14f'),{'data-name':_0xcd0a28});}}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')](_0x42fa('0x14d'))[_0x42fa('0x169')]({'view':_0x42fa('0x46')}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')]('editingDowncast')[_0x42fa('0xc7')](_0x3efe58=>{_0x3efe58['on'](_0x42fa('0xd5'),_0x1bfb9b(),{'priority':'high'});}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x18'))[_0x42fa('0xc7')](_0x878fe6=>{_0x878fe6['on'](_0x42fa('0x15b'),_0x1bfb9b({'isAttributeSuggestion':!0x0}),{'priority':_0x42fa('0x3f')});}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')](_0x42fa('0x18'))[_0x42fa('0xc7')](_0x3cb5da=>{_0x3cb5da['on'](_0x42fa('0x76'),(_0x18ab74,_0x4c8d86,_0x3618bb)=>{const _0x244d84=_0x3618bb['mapper'][_0x42fa('0x99')](_0x4c8d86['markerName']);if(_0x244d84)for(const _0x5d4722 of _0x244d84)_0x5d4722[_0x42fa('0x69')](_0x42fa('0xfa'))||(_0x3618bb[_0x42fa('0x42')][_0x42fa('0xf')]([_0x42fa('0x9'),'ck-suggestion-marker-formatBlock',_0x42fa('0x122')],_0x5d4722),_0x3618bb[_0x42fa('0x42')][_0x42fa('0x29')]('data-suggestion',_0x5d4722),_0x3618bb['mapper']['unbindElementFromMarkerName'](_0x5d4722,_0x4c8d86[_0x42fa('0x125')]));},{'priority':_0x42fa('0x3f')});}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')]('editingDowncast')['add'](_0x161326=>{_0x161326['on']('removeMarker:suggestion:attribute',(_0x500419,_0x2103b5,_0x424550)=>{const _0x69c37a=_0x424550[_0x42fa('0x13e')][_0x42fa('0x99')](_0x2103b5['markerName']);if(!_0x69c37a)return;const {id:_0x1669cc}=this[_0x42fa('0xf4')](_0x2103b5[_0x42fa('0x125')]),_0x164403=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x1669cc),_0x22e52d=this[_0x42fa('0xb9')](_0x164403);if(this['_isBlockAttribute'](_0x22e52d))for(const _0x1cc1e2 of _0x69c37a)_0x1cc1e2['getCustomProperty'](_0x42fa('0xfa'))||(_0x424550[_0x42fa('0x42')]['removeClass']([_0x42fa('0x9'),'ck-suggestion-marker-formatBlock',_0x42fa('0x122')],_0x1cc1e2),_0x424550[_0x42fa('0x42')][_0x42fa('0x29')](_0x42fa('0xbb'),_0x1cc1e2),_0x424550['mapper']['unbindElementFromMarkerName'](_0x1cc1e2,_0x2103b5[_0x42fa('0x125')]));},{'priority':_0x42fa('0x3f')});}),_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0xc8')](_0x4e2287=>{let _0x63b1e1=!0x1;const _0x24ad6f=Array[_0x42fa('0xc6')](_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0x1c')][_0x42fa('0x38')]()),_0x1b40e4=new Set();for(const {name:_0x55f1e7,data:_0x2a8358}of _0x24ad6f){const {group:_0x3afe7a,type:_0x39220c,subType:_0x1f7e0a,id:_0x4d7ebf}=this[_0x42fa('0xf4')](_0x55f1e7);if(_0x42fa('0x46')!==_0x3afe7a)continue;const _0x22d439=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x4d7ebf);if(null!=_0x2a8358[_0x42fa('0xe8')]){_0x42fa('0xff')==_0x39220c&&(_0x63b1e1=_0x63b1e1||Tt(_0x2a8358[_0x42fa('0xe8')],_0x55f1e7,_0x4e2287,_0x1edc8e['model'][_0x42fa('0x133')]));const _0x33a450=_0x42fa('0x142')==_0x39220c&&this[_0x42fa('0x5b')](_0x1f7e0a[_0x42fa('0x136')]('|')[0x0]);if(_0x2a8358[_0x42fa('0xe8')]['isCollapsed']||_0x42fa('0x8')==_0x2a8358[_0x42fa('0xe8')][_0x42fa('0xef')][_0x42fa('0x11d')]||_0x42fa('0x60')==_0x39220c&&!Vt(_0x2a8358[_0x42fa('0xe8')])||_0x33a450&&!Vt(_0x2a8358[_0x42fa('0xe8')])||_0x42fa('0x127')==_0x39220c&&!(!Rt(_0x49b005=_0x2a8358[_0x42fa('0xe8')])&&!function(_0x68044e){return _0x68044e[_0x42fa('0x157')][_0x42fa('0xc1')]==_0x68044e[_0x42fa('0xfd')][_0x42fa('0x94')]&&_0x68044e['start'][_0x42fa('0xa6')];}(_0x49b005)))_0x4e2287[_0x42fa('0x110')](_0x55f1e7),_0x63b1e1=!0x0;else{if(!_0x22d439||!_0x22d439[_0x42fa('0xb6')])continue;_0x1b40e4[_0x42fa('0xc7')](_0x22d439);}}}var _0x49b005;return _0x1b40e4[_0x42fa('0x8c')]>0x0&&(_0x63b1e1=!!this[_0x42fa('0x63')](_0x1b40e4)||_0x63b1e1),_0x63b1e1;}),_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0xc8')](_0x1b0761=>{let _0xbb1f5b=!0x1;for(const _0x2e0be4 of _0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0x1c')][_0x42fa('0xb2')]())if('insert'==_0x2e0be4[_0x42fa('0xbc')])for(const _0x35b5df of this['_suggestions']['values']()){if(_0x35b5df[_0x42fa('0xc')]||!_0x35b5df['isInContent'])continue;const _0x111fca='formatBlock'==_0x35b5df[_0x42fa('0xbc')],_0x5b3e87=this[_0x42fa('0xb9')](_0x35b5df),_0x5de8bc=_0x5b3e87&&this[_0x42fa('0x5b')](_0x5b3e87);if(!_0x111fca&&!_0x5de8bc)continue;const _0x217ee1=_0x35b5df[_0x42fa('0xcf')]();if(_0x217ee1[_0x42fa('0x157')][_0x42fa('0xc1')]!=_0x217ee1[_0x42fa('0xfd')][_0x42fa('0xc1')]&&!_0x217ee1['end']['isAtEnd']){const _0xd90114=_0x1edc8e[_0x42fa('0x164')]['createPositionAt'](_0x217ee1['start'][_0x42fa('0x1b')],_0x42fa('0xfd')),_0x150ce5=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x116')](_0x217ee1['start'],_0xd90114);_0x1b0761['updateMarker'](_0x35b5df[_0x42fa('0x0')](),{'range':_0x150ce5}),_0xbb1f5b=!0x0;}}return _0xbb1f5b;}),_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')]['registerPostFixer'](_0x4dccfb=>this[_0x42fa('0x117')](_0x4dccfb)),_0x1edc8e['model'][_0x42fa('0xaa')]['registerPostFixer'](_0x467789=>!_0x467789[_0x42fa('0x88')][_0x42fa('0x147')]&&this['_processAttributeSuggestions'](_0x467789)),_0x1edc8e[_0x42fa('0x164')]['on']('_afterChanges',()=>{this[_0x42fa('0x2f')]=!0x1;}),_0x1edc8e[_0x42fa('0x164')]['document']['on']('change:data',(_0xe6dd3a,_0x205486)=>{if(!_0x205486['isLocal']||_0x205486['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x558f6c=_0x1edc8e[_0x42fa('0x164')]['document']['differ'][_0x42fa('0xb2')]();if(0x0==_0x558f6c['length'])return;const _0xc102bd=[],_0x37f618=_0x558f6c['filter'](_0x22629a=>_0x42fa('0x142')==_0x22629a[_0x42fa('0xbc')]),_0xeac7aa=_0x558f6c['filter'](_0x24ac60=>_0x42fa('0x2c')==_0x24ac60[_0x42fa('0xbc')]&&'$text'!=_0x24ac60[_0x42fa('0x4b')]),_0x40cd09=_0x558f6c['filter'](_0x17b985=>_0x42fa('0x70')==_0x17b985['type']&&'$text'!=_0x17b985[_0x42fa('0x4b')]);for(const _0x1a3e2e of _0x37f618)this[_0x42fa('0x13d')](_0x1a3e2e[_0x42fa('0x14e')])&&_0xc102bd[_0x42fa('0x98')]({'key':_0x1a3e2e[_0x42fa('0x14e')],'newValue':_0x1a3e2e[_0x42fa('0x16e')],'oldValue':_0x1a3e2e[_0x42fa('0x118')],'range':Ut(_0x1a3e2e[_0x42fa('0xdd')],_0x1edc8e[_0x42fa('0x164')])});for(const _0x4831e1 of _0xeac7aa){const _0x5cb1d6=_0x40cd09['find'](_0x234a50=>_0x234a50['_element']===_0x4831e1['_element']);if(_0x5cb1d6){const _0x16e65b=Ot(_0x4831e1[_0x42fa('0xa8')][_0x42fa('0x1b')],_0x1edc8e[_0x42fa('0x164')]);_0x5cb1d6['name']!==_0x4831e1[_0x42fa('0x4b')]&&_0xc102bd[_0x42fa('0x98')]({'key':_0x42fa('0x121'),'newValue':_0x4831e1[_0x42fa('0x4b')],'oldValue':_0x5cb1d6[_0x42fa('0x4b')],'range':_0x16e65b});for(const [_0x5151f0,_0x6c9e0f]of _0x5cb1d6[_0x42fa('0x14a')]){if(!this[_0x42fa('0x13d')](_0x5151f0))continue;const _0xcff039=_0x4831e1[_0x42fa('0x14a')][_0x42fa('0x65')](_0x5151f0);_0x6c9e0f!==_0xcff039&&_0xc102bd[_0x42fa('0x98')]({'key':_0x5151f0,'newValue':_0xcff039,'oldValue':_0x6c9e0f,'range':_0x16e65b});}for(const [_0x29dd07,_0x4ae9e8]of _0x4831e1[_0x42fa('0x14a')])this['_isRegisteredAttribute'](_0x29dd07)&&(_0x5cb1d6[_0x42fa('0x14a')][_0x42fa('0x56')](_0x29dd07)||_0xc102bd['push']({'key':_0x29dd07,'newValue':_0x4ae9e8,'oldValue':null,'range':_0x16e65b}));}}0x0!=_0xc102bd[_0x42fa('0xeb')]&&_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x30')](_0x205486,_0x530d04=>{const _0x538a0a=_0x53d935();for(const {range:_0x715521,key:_0x4d3294,oldValue:_0x2398c3,newValue:_0x2f009b}of _0xc102bd)this['markAttributeChange'](_0x715521,_0x4d3294,_0x2398c3,_0x2f009b,{'groupId':_0x538a0a});this['_reduceExistingSuggestions'](_0x530d04,_0xc102bd);});},{'priority':_0x42fa('0x20')}),_0x1edc8e[_0x42fa('0x164')]['markers']['on'](_0x42fa('0x1d'),(_0xc081cf,_0x8494ee,_0xdc1626)=>{if(null==_0xdc1626){const {id:_0x3ed580}=this[_0x42fa('0xf4')](_0x8494ee['name']),_0x36f889=this[_0x42fa('0xe9')]['get'](_0x3ed580);_0x36f889&&_0x36f889[_0x42fa('0x82')](_0x8494ee[_0x42fa('0x4b')]);}}),_0x1edc8e['model'][_0x42fa('0xaa')]['on']('change:data',()=>{const _0x36a753=Array['from'](_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0x1c')][_0x42fa('0x38')]())[_0x42fa('0x52')](_0xb3b108=>_0x42fa('0x46')===this['_splitMarkerName'](_0xb3b108[_0x42fa('0x4b')])[_0x42fa('0x123')]);if(0x0===_0x36a753[_0x42fa('0xeb')])return;_0x36a753['sort']((_0x50489b,_0x3000d9)=>{const _0x162ae7=_0x50489b[_0x42fa('0xe6')][_0x42fa('0x37')],_0x9f4ed3=_0x3000d9[_0x42fa('0xe6')][_0x42fa('0x37')];return null===_0x162ae7&&null===_0x9f4ed3?0x0:null===_0x162ae7&&null!==_0x9f4ed3?-0x1:null!==_0x162ae7&&null===_0x9f4ed3?0x1:_0x162ae7[_0x42fa('0x157')][_0x42fa('0x15a')](_0x9f4ed3[_0x42fa('0x157')])?-0x1:0x1;});const _0x311f91=new Set(),_0x3220c3=new Set();for(const {name:_0x3b2e1e,data:_0xe296bd}of _0x36a753){const {id:_0x125afa}=this[_0x42fa('0xf4')](_0x3b2e1e);if(null===_0xe296bd[_0x42fa('0x37')]){const _0x357c19=this[_0x42fa('0xed')](_0x3b2e1e);_0x3220c3[_0x42fa('0xc7')](_0x357c19);}else{const _0x5d31ec=this['_suggestions'][_0x42fa('0x65')](_0x125afa);null!==_0xe296bd[_0x42fa('0xe8')]||_0x5d31ec[_0x42fa('0xb6')]?(_0x311f91[_0x42fa('0xc7')](_0x5d31ec[_0x42fa('0x45')]),_0x3220c3[_0x42fa('0xc7')](_0x5d31ec)):this[_0x42fa('0x13b')](_0x5d31ec);}}_0x3220c3[_0x42fa('0x8c')]>0x0&&this[_0x42fa('0x11b')](_0x3220c3);for(const _0x18e634 of _0x311f91)this[_0x42fa('0x12c')](_0x42fa('0xf5'),_0x18e634);}),_0x1edc8e['model']['on'](_0x42fa('0x80'),(_0x257a6e,_0x2a7b30)=>{const _0x472f93=_0x2a7b30[0x0];if(!this['_suggestions'][_0x42fa('0x8c')])return;if(!_0x472f93['isDocumentOperation'])return;if(_0x472f93[_0x42fa('0x88')][_0x42fa('0x6a')]||!_0x472f93[_0x42fa('0x88')][_0x42fa('0x147')])return;let _0x16b2d7,_0x22734e;switch(_0x472f93[_0x42fa('0xbc')]){case _0x42fa('0x2c'):_0x16b2d7=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x472f93[_0x42fa('0xa8')]),_0x22734e=_0x16b2d7[_0x42fa('0x91')](_0x472f93[_0x42fa('0x66')]);break;case'split':_0x16b2d7=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x472f93[_0x42fa('0x10a')]),_0x22734e=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x472f93[_0x42fa('0x153')]);break;case _0x42fa('0x73'):_0x16b2d7=_0x1edc8e['model'][_0x42fa('0x2')](_0x472f93['targetPosition']),_0x22734e=_0x16b2d7[_0x42fa('0x91')](_0x472f93[_0x42fa('0x66')]);break;default:return;}const _0x496b9d=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x116')](_0x16b2d7,_0x22734e);_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xf0')](()=>{for(const {suggestion:_0x15d52f,meta:_0x59b630}of this[_0x42fa('0xb5')](_0x496b9d)){if(_0x15d52f[_0x42fa('0xc')])continue;if(_0x42fa('0xff')==_0x15d52f[_0x42fa('0xbc')])continue;const _0x44f3c4=this['_getAttributeKey'](_0x15d52f);if(_0x44f3c4&&this[_0x42fa('0x5b')](_0x44f3c4)&&'split'!=_0x472f93['type'])continue;const _0x54ce7e=_0x15d52f[_0x42fa('0xe6')]&&_0x15d52f[_0x42fa('0xe6')][_0x42fa('0x9f')];(_0x42fa('0x60')!=_0x15d52f[_0x42fa('0xbc')]||_0x42fa('0x136')==_0x472f93[_0x42fa('0xbc')]&&!_0x54ce7e)&&(_0x59b630[_0x42fa('0xdc')]||_0x42fa('0x11e')==_0x15d52f[_0x42fa('0xbc')]&&_0x59b630[_0x42fa('0xd0')]||_0x15d52f[_0x42fa('0xcf')]()[_0x42fa('0x10b')](_0x496b9d)&&this[_0x42fa('0x13f')](_0x15d52f,_0x16b2d7,_0x22734e));}});},{'priority':_0x42fa('0x20')}),_0x1edc8e[_0x42fa('0x164')]['on'](_0x42fa('0x64'),(_0x3acee3,_0x38fbe1)=>{const _0x2c931a=_0x38fbe1[0x0],_0x16b64a=_0x38fbe1[0x1];if(_0x16b64a&&_0x16b64a[_0x42fa('0xf9')])return;if(this[_0x42fa('0x151')])return;if(!this[_0x42fa('0x86')][_0x42fa('0xe2')])return;if(_0x2c931a['isCollapsed'])return;const _0x1f7061=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x133')],{start:_0x23e82c,end:_0x4d8321}=_0x2c931a[_0x42fa('0xcf')](),_0x26da79=_0x23e82c['nodeAfter']&&_0x1f7061['isLimit'](_0x23e82c['nodeAfter'])?null:_0x1f7061[_0x42fa('0x159')](_0x23e82c,_0x42fa('0x21')),_0x7748c3=_0x4d8321[_0x42fa('0x94')]&&_0x1f7061[_0x42fa('0x81')](_0x4d8321['nodeBefore'])?null:_0x1f7061[_0x42fa('0x159')](_0x4d8321,'backward'),_0x116262=_0x1edc8e['model'][_0x42fa('0x116')](_0x26da79?_0x26da79[_0x42fa('0x157')]:_0x23e82c,_0x7748c3?_0x7748c3['end']:_0x4d8321);_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xf0')](_0x4128bb=>{this[_0x42fa('0x62')](_0x116262);const _0x309ed0=_0x1edc8e['model']['schema'][_0x42fa('0x159')](_0x116262['start']);_0x2c931a['is'](_0x42fa('0x8a'))?_0x4128bb[_0x42fa('0xd1')](_0x309ed0):_0x2c931a[_0x42fa('0x4f')](_0x309ed0);}),_0x3acee3[_0x42fa('0x11')]();},{'priority':_0x4f77bf[_0x42fa('0x1')]+0xa}),_0x1edc8e[_0x42fa('0x164')]['on'](_0x42fa('0x24'),(_0x44dfd9,_0x38f299)=>{const _0x3beea2=_0x38f299[_0x38f299[_0x42fa('0xeb')]-0x1];_0x3beea2&&_0x3beea2[_0x42fa('0xf9')]||this[_0x42fa('0x151')]||this['trackChangesCommand'][_0x42fa('0xe2')]&&(_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xf0')](()=>{let _0x5210fb=_0x1edc8e['model'][_0x42fa('0x24')](_0x38f299[0x0],_0x38f299[0x1],_0x38f299[0x2],{'forceDefaultExecution':!0x0});if(!_0x5210fb)return;_0x44dfd9[_0x42fa('0x145')]=_0x5210fb['clone']();const _0x3a63f8=_0x5210fb[_0x42fa('0xfd')]['nodeBefore'],_0x1549aa=_0x1edc8e[_0x42fa('0x164')]['schema'];_0x3a63f8&&_0x1549aa['isBlock'](_0x3a63f8)&&!_0x1549aa[_0x42fa('0xa4')](_0x3a63f8)&&(_0x5210fb=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x116')](_0x5210fb[_0x42fa('0x157')],_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x3a63f8,_0x42fa('0xfd')))),this[_0x42fa('0x150')](_0x5210fb);}),_0x44dfd9['stop']());},{'priority':'high'}),this[_0x42fa('0x12a')]['commands'][_0x42fa('0xc7')]('trackChanges',this[_0x42fa('0x86')]),this[_0x42fa('0x13')]('trackChanges');const _0x36b7fe=new _0x2ea012(_0x1edc8e,this[_0x42fa('0xe9')]);_0x1edc8e['commands'][_0x42fa('0xc7')]('acceptSuggestion',_0x36b7fe),this[_0x42fa('0x13')]('acceptSuggestion');const _0x3b36d4=new _0x4aff2c(_0x1edc8e,this[_0x42fa('0xe9')]);_0x1edc8e[_0x42fa('0xd3')][_0x42fa('0xc7')](_0x42fa('0x15c'),_0x3b36d4),this[_0x42fa('0x13')](_0x42fa('0x15c')),_0x1edc8e[_0x42fa('0xd3')]['add'](_0x42fa('0xa3'),new _0x52c666(_0x1edc8e,_0x36b7fe,this[_0x42fa('0xe9')])),this['enableCommand'](_0x42fa('0xa3')),_0x1edc8e[_0x42fa('0xd3')][_0x42fa('0xc7')](_0x42fa('0x61'),new _0x52c666(_0x1edc8e,_0x3b36d4,this[_0x42fa('0xe9')])),this['enableCommand'](_0x42fa('0x61')),_0x1edc8e['commands'][_0x42fa('0xc7')](_0x42fa('0xd'),new _0x1c3353(_0x1edc8e,_0x36b7fe,this[_0x42fa('0xe9')])),this['enableCommand'](_0x42fa('0xd')),_0x1edc8e[_0x42fa('0xd3')][_0x42fa('0xc7')](_0x42fa('0x25'),new _0x1c3353(_0x1edc8e,_0x3b36d4,this[_0x42fa('0xe9')])),this[_0x42fa('0x13')](_0x42fa('0x25'));const _0x501a07=_0x1edc8e[_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x9b'));this[_0x42fa('0x32')](_0x501a07,_0x42fa('0x22'),(_0x2f28bb,{threadId:_0x32b741})=>{const _0x3e7a03=this[_0x42fa('0xe9')]['get'](_0x32b741);_0x3e7a03&&_0x3e7a03[_0x42fa('0xc4')]&&0x1===_0x3e7a03[_0x42fa('0xc4')][_0x42fa('0xeb')]&&this[_0x42fa('0x4c')](_0x32b741,{'hasComments':!0x0});},{'priority':_0x42fa('0xfb')}),this['listenTo'](_0x501a07,'removeComment',(_0x138196,{threadId:_0x124aba})=>{const _0x18ab58=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x124aba);_0x18ab58&&_0x18ab58[_0x42fa('0xc4')]&&!_0x18ab58[_0x42fa('0xc4')]['length']&&this[_0x42fa('0x4c')](_0x124aba,{'hasComments':!0x1});},{'priority':'low'});}set[_0x42fa('0xd2')](_0x39d11d){if(this[_0x42fa('0xad')])throw new _0x6b7fca('track-changes-adapter-already-set',this);this[_0x42fa('0xad')]=_0x39d11d;}get[_0x42fa('0xd2')](){return this['_adapter'];}[_0x42fa('0xa9')]({skipNotAttached:_0x4a9293=!0x1,toJSON:_0x480e86=!0x1}={}){const _0x3c593d=[];for(const _0x2a7f3b of this[_0x42fa('0xe9')][_0x42fa('0xde')]())_0x4a9293&&!_0x2a7f3b[_0x42fa('0xb6')]||_0x3c593d[_0x42fa('0x98')](_0x2a7f3b);return _0x480e86?_0x3c593d[_0x42fa('0x104')](_0x2b3ea5=>_0x2b3ea5[_0x42fa('0x2a')]()):_0x3c593d;}['getSuggestion'](_0x3e78e4){const _0x19a390=this['_suggestions']['get'](_0x3e78e4);if(!_0x19a390)throw new _0x6b7fca(_0x42fa('0x5'),this);return _0x19a390;}[_0x42fa('0x149')](_0x4a1e8b){return this[_0x42fa('0xe9')]['has'](_0x4a1e8b);}[_0x42fa('0xcd')](_0x5126a6){const {authorId:_0x253b8f,id:_0x3e75bc,attributes:_0x295471}=_0x5126a6,[_0xa6830d,_0x508217]=_0x5126a6['type'][_0x42fa('0x136')](':'),_0x4c4a68=this[_0x42fa('0xe9')]['get'](_0x3e75bc)||this[_0x42fa('0xb4')](_0xa6830d,_0x508217,_0x3e75bc,_0x253b8f,_0x295471);if(this[_0x42fa('0xf1')](_0x4c4a68),this[_0x42fa('0x33')](_0x4c4a68,_0xa6830d,_0x508217||null,_0x253b8f),_0x4c4a68[_0x42fa('0xe5')]=_0x5126a6[_0x42fa('0xe5')],_0x4c4a68[_0x42fa('0x67')]=!0x0,_0x295471&&_0x295471[_0x42fa('0x7d')]){const _0x5e8fd7=_0x295471[_0x42fa('0x7d')],_0x4e545e=this[_0x42fa('0xb')](_0x5e8fd7[_0x42fa('0x8e')]);_0x4c4a68[_0x42fa('0x87')]=_0x5e8fd7['createdAt'],_0x4c4a68[_0x42fa('0x140')]=_0x4e545e,_0x4c4a68['isExternal']=!0x0;}else _0x4c4a68[_0x42fa('0x87')]=_0x5126a6[_0x42fa('0xe5')];switch(_0x5126a6[_0x42fa('0xe6')]&&(_0x4c4a68['data']=_0x5126a6[_0x42fa('0xe6')]),_0x5126a6[_0x42fa('0x14a')]&&(_0x4c4a68['attributes']=_0x5126a6[_0x42fa('0x14a')]),this[_0x42fa('0xad')]&&this[_0x42fa('0xad')][_0x42fa('0x6')]||(_0x4c4a68[_0x42fa('0x16b')]=!0x0),this[_0x42fa('0x119')][_0x42fa('0x65')](_0x4c4a68)){case'notReady':this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x4c4a68,_0x42fa('0x9e'));break;case _0x42fa('0x160'):_0x4c4a68[_0x42fa('0xb6')]?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c4a68])),this['_refreshSuggestionsChain'](new Set([_0x4c4a68])),this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x4c4a68,'ready'),this[_0x42fa('0x12c')](_0x42fa('0x3c'),_0x4c4a68)):this[_0x42fa('0x119')]['set'](_0x4c4a68,_0x42fa('0x15e'));}return _0x4c4a68;}[_0x42fa('0x141')](_0x333232){this[_0x42fa('0xf9')](()=>{this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0xf0')](()=>{for(const _0x5be272 of _0x333232[_0x42fa('0x4a')]())_0x5be272[_0x42fa('0x7')]();});});}[_0x42fa('0x15c')](_0x36490e){this[_0x42fa('0xf9')](()=>{this[_0x42fa('0x12a')][_0x42fa('0x164')]['change'](()=>{for(const _0x1b68fb of _0x36490e[_0x42fa('0x4a')]())_0x1b68fb[_0x42fa('0x51')]();});});}[_0x42fa('0x13')](_0x3465a0,_0x15a34a){const _0x1334c5=this['editor'][_0x42fa('0xd3')]['get'](_0x3465a0);if(!_0x1334c5)throw new _0x6b7fca(_0x42fa('0xe7'),this,{'commandName':_0x3465a0});if(this[_0x42fa('0x11c')]['has'](_0x1334c5))throw new _0x6b7fca(_0x42fa('0x112'),this,{'commandName':_0x3465a0});this[_0x42fa('0x11c')][_0x42fa('0xc7')](_0x1334c5),_0x15a34a&&_0x1334c5['on']('execute',(_0x39f976,_0x8e446d)=>{this[_0x42fa('0x86')][_0x42fa('0xe2')]&&(this[_0x42fa('0x151')]||(_0x8e446d[_0x42fa('0xeb')]>0x0&&_0x8e446d[_0x8e446d[_0x42fa('0xeb')]-0x1]&&_0x8e446d[_0x8e446d[_0x42fa('0xeb')]-0x1][_0x42fa('0xf9')]?_0x8e446d[_0x42fa('0xf6')]():(_0x39f976[_0x42fa('0x145')]=_0x15a34a((..._0x1a3049)=>_0x1334c5['execute'](..._0x1a3049,{'forceDefaultExecution':!0x0}),..._0x8e446d),_0x39f976['stop']())));},{'priority':'high'});}[_0x42fa('0xf9')](_0x4b2ae9){let _0x4d3172,_0x3d445b;const _0x5a119e=this[_0x42fa('0x151')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d3172=_0x4b2ae9();}catch(_0x384197){_0x3d445b=_0x384197;}return _0x5a119e||(this[_0x42fa('0x151')]=!0x1),_0x3d445b&&_0x6b7fca[_0x42fa('0xc3')](_0x3d445b,this),_0x4d3172;}[_0x42fa('0x150')](_0xb613b0,_0x4094a3=null,_0x5e0309={}){if(_0xb613b0[_0x42fa('0xd4')])return null;const _0x5ac991=this['editor'][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'];for(const {suggestion:_0x377501,meta:_0x34a23c}of this[_0x42fa('0xb5')](_0xb613b0,_0x42fa('0x11e')))if(_0x34a23c[_0x42fa('0xd0')]){if(!_0x34a23c['isNextTo']){if(_0x34a23c[_0x42fa('0xdc')]){if(!this[_0x42fa('0x9a')]||!Pt(_0x377501,_0x5e0309))continue;return _0x377501;}if(Pt(_0x377501,_0x5e0309))return _0x377501;this[_0x42fa('0x13f')](_0x377501,_0xb613b0[_0x42fa('0x157')],_0xb613b0[_0x42fa('0xfd')]);break;}if(_0x4094a3==_0x377501[_0x42fa('0x11f')]&&Pt(_0x377501,_0x5e0309)){const _0x51b263=_0x377501[_0x42fa('0xcf')]();return _0x51b263['start'][_0x42fa('0xa1')](_0xb613b0['end'])?this[_0x42fa('0x8d')](_0x377501,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0xb613b0[_0x42fa('0x157')],_0x51b263['end'])):this[_0x42fa('0x8d')](_0x377501,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x51b263['start'],_0xb613b0[_0x42fa('0xfd')])),_0x377501;}}const _0x4058de=_0x53d935(),_0x24822a=_0x5ac991['id'],_0x121b7c=_0x4094a3?'insertion:'+_0x4094a3:_0x42fa('0x11e'),_0x181e7c=this[_0x42fa('0xb0')]({'id':_0x4058de,'type':_0x121b7c,'createdAt':new Date(),'authorId':_0x24822a,'attributes':_0x5e0309});return this[_0x42fa('0xee')](_0x121b7c,_0x4058de,_0x24822a,_0xb613b0),_0x181e7c;}[_0x42fa('0x7a')](_0x7bd5a9,_0xc3cf7d='multi',_0x1fa139={}){const _0x2433ca=this['editor'][_0x42fa('0x103')]['get'](_0x42fa('0x12e'))['me'],_0x3ce3fc=this[_0x42fa('0x111')][_0x42fa('0x144')]('insertion',_0xc3cf7d,'join');for(const _0x2bb569 of this[_0x42fa('0xa9')]())if(_0x2bb569['author']['id']==_0x2433ca['id']&&_0x42fa('0x11e')==_0x2bb569['type']&&_0x2bb569[_0x42fa('0x11f')]==_0xc3cf7d&&Pt(_0x2bb569,_0x1fa139)&&(_0x3ce3fc(_0x2bb569[_0x42fa('0xd8')](),_0x7bd5a9)||_0x3ce3fc(_0x7bd5a9,_0x2bb569[_0x42fa('0xd8')]()))){for(const _0x2aed3a of _0x7bd5a9)_0x2bb569[_0x42fa('0x138')](_0x2aed3a);return _0x2bb569;}for(const {suggestion:_0x1924f8,meta:_0x24d1bd}of this[_0x42fa('0xb5')](_0x7bd5a9,'insertion')){if(!_0x24d1bd[_0x42fa('0xd0')])continue;if(!this[_0x42fa('0x9a')]&&_0x24d1bd[_0x42fa('0xdc')])continue;if(!Pt(_0x1924f8,_0x1fa139))continue;let _0x2959b0=!0x0;for(const _0x79da9a of _0x1924f8[_0x42fa('0xd8')]())for(const _0x2da55d of _0x7bd5a9)if(!_0x79da9a[_0x42fa('0x10b')](_0x2da55d)){_0x2959b0=!0x1;break;}if(_0x2959b0)return _0x1924f8;}const _0x5ef322=_0x53d935(),_0x4dd837=_0x2433ca['id'],_0xb4909d='insertion:'+_0xc3cf7d,_0x30b239=this[_0x42fa('0xb0')]({'id':_0x5ef322,'type':_0xb4909d,'createdAt':new Date(),'authorId':_0x4dd837,'attributes':_0x1fa139});for(const _0x2fb64a of _0x7bd5a9)this['_addSuggestionMarker'](_0xb4909d,_0x5ef322,_0x4dd837,_0x2fb64a,_0x5839fd[_0x42fa('0x26')]());return _0x30b239;}[_0x42fa('0xa2')](_0x469888,_0x1a43ef,_0x2462ab=null,_0x14ab74={}){if(_0x2462ab=_0x2462ab||Et(_0x1a43ef),_0x469888[_0x42fa('0xd4')])return null;if(_0x42fa('0x90')===this[_0x42fa('0x7c')]){const _0x3800b6=this[_0x42fa('0x111')][_0x42fa('0x144')]('formatInline',_0x2462ab,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x3800b6([_0x469888],_0x1a43ef,_0x14ab74)),null;}const _0xe82007=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'],_0x154284=[];if(_0x42fa('0x130')!==this[_0x42fa('0x7c')])for(const {suggestion:_0x3f750c,meta:_0xab24be}of this[_0x42fa('0xb5')](_0x469888,'insertion'))_0xab24be[_0x42fa('0xd0')]&&!_0xab24be['isInsideObject']&&_0x154284[_0x42fa('0x98')](..._0x3f750c[_0x42fa('0xd8')]());const _0x4858b4=function(_0x20979b,_0x3fe9ab){const _0x4b7e10=[];for(const _0x1e1928 of _0x3fe9ab){const _0x45f10c=_0x20979b[_0x42fa('0x11a')](_0x1e1928);_0x45f10c&&_0x4b7e10[_0x42fa('0x98')](_0x45f10c);}return _0x4b7e10;}(_0x469888,_0x154284),_0x63797e=function(_0x404b4b,_0x580a17){const _0x1ff16d=[_0x404b4b];for(const _0x26a95f of _0x580a17){let _0x5b2c4f=0x0;for(;_0x5b2c4f<_0x1ff16d['length'];){const _0x434d2a=_0x1ff16d[_0x5b2c4f][_0x42fa('0x16a')](_0x26a95f);_0x1ff16d['splice'](_0x5b2c4f,0x1,..._0x434d2a),_0x5b2c4f+=_0x434d2a['length'];}}return _0x1ff16d;}(_0x469888,_0x154284);_0x4858b4[_0x42fa('0xeb')]&&this[_0x42fa('0xe3')][_0x42fa('0xf0')](()=>{for(const _0x30d0a5 of _0x4858b4){const _0x390fd8=this[_0x42fa('0x111')][_0x42fa('0x144')]('formatInline',_0x2462ab,_0x42fa('0x7'));this[_0x42fa('0xf9')](()=>_0x390fd8([_0x30d0a5],_0x1a43ef,_0x14ab74));}});for(const _0x5f4af8 of _0x63797e){let _0x42d3b3=null,_0x51aaac=_0x5f4af8[_0x42fa('0x157')],_0x562712=_0x5f4af8[_0x42fa('0xfd')];for(const {suggestion:_0x1d27ae,meta:_0x2dd1d6}of this[_0x42fa('0xb5')](_0x5f4af8,_0x42fa('0xff'))){if(!_0x2dd1d6['isOwn'])continue;if(_0x1d27ae[_0x42fa('0x11f')]!=_0x2462ab)continue;if(!Pt(_0x1d27ae,_0x14ab74))continue;const _0x5775a3=_0x1d27ae['getFirstRange']();if(_0x5775a3['containsRange'](_0x5f4af8,!0x0))return null;_0x51aaac=_0x51aaac[_0x42fa('0x15a')](_0x5775a3[_0x42fa('0x157')])?_0x51aaac:_0x5775a3[_0x42fa('0x157')],_0x562712=_0x562712[_0x42fa('0x155')](_0x5775a3['end'])?_0x562712:_0x5775a3[_0x42fa('0xfd')],_0x42d3b3?_0x5775a3['start'][_0x42fa('0x15a')](_0x42d3b3[_0x42fa('0xcf')]()[_0x42fa('0x157')])?(_0x42d3b3[_0x42fa('0x9c')](),_0x42d3b3=_0x1d27ae):_0x1d27ae[_0x42fa('0x9c')]():_0x42d3b3=_0x1d27ae;}const _0x135fed=this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x51aaac,_0x562712);if(_0x42d3b3)this[_0x42fa('0x8d')](_0x42d3b3,_0x135fed);else{const _0x4623ad=_0x53d935(),_0x550633=_0xe82007['id'];this[_0x42fa('0xb0')]({'id':_0x4623ad,'type':'formatInline:'+_0x2462ab,'data':_0x1a43ef,'createdAt':new Date(),'authorId':_0x550633,'attributes':_0x14ab74}),this['_addSuggestionMarker'](_0x42fa('0x131')+_0x2462ab,_0x4623ad,_0x550633,_0x135fed);}}return null;}[_0x42fa('0xe1')](_0x3bf57d,_0x289b70,_0x4a822c=[],_0x86527a=null,_0x7dd577={}){_0x289b70[_0x42fa('0x15')]||(_0x289b70[_0x42fa('0x15')]=_0x289b70[_0x42fa('0x2e')]),_0x289b70[_0x42fa('0x9f')]=_0x3bf57d['is']('range'),_0x86527a=_0x86527a||Et(_0x289b70);const _0x2f23a6=_0x4a822c['map'](_0x14b324=>Ot(_0x14b324,this[_0x42fa('0xe3')])),_0x3f45ee=_0x3bf57d['is'](_0x42fa('0xdd'))?_0x3bf57d:Ot(_0x3bf57d,this['_model']);if(_0x42fa('0x90')===this['_trackFormatChanges']){const _0x4d9c94=this[_0x42fa('0x111')][_0x42fa('0x144')](_0x42fa('0x60'),_0x86527a,_0x42fa('0x7'));return this['forceDefaultExecution'](()=>_0x4d9c94([_0x3f45ee],_0x289b70,_0x7dd577)),null;}_0x2f23a6['push'](_0x3f45ee);let _0x23c830=!0x0;for(const _0x23269d of _0x2f23a6)if(!this[_0x42fa('0xcc')](_0x23269d)){_0x23c830=!0x1;break;}if(_0x23c830&&_0x42fa('0x130')!==this['_trackFormatChanges']){const _0x11948b=this[_0x42fa('0x111')]['getSuggestionCallback'](_0x42fa('0x60'),_0x86527a,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x11948b([_0x3f45ee],_0x289b70,_0x7dd577)),null;}let _0x2caeb7=null,_0x456511=_0x3f45ee[_0x42fa('0x157')],_0x309833=_0x3f45ee['end'];for(const {suggestion:_0x38cff1,meta:_0x3b7332}of this['_findSuggestions'](_0x3f45ee,'formatBlock')){if(!_0x3b7332[_0x42fa('0xd0')])continue;if(_0x3b7332[_0x42fa('0x41')]||_0x3b7332[_0x42fa('0xdc')]||_0x3b7332[_0x42fa('0x13a')])continue;if(_0x38cff1['data'][_0x42fa('0x15')]!=_0x289b70[_0x42fa('0x15')])continue;if(!Pt(_0x38cff1,_0x7dd577))continue;const _0x32a5dc=_0x38cff1[_0x42fa('0xcf')]();if(_0x38cff1[_0x42fa('0x11f')]==_0x86527a){if(_0x32a5dc[_0x42fa('0x10b')](_0x3f45ee,!0x0))return null;_0x456511=_0x456511['isBefore'](_0x32a5dc[_0x42fa('0x157')])?_0x456511:_0x32a5dc[_0x42fa('0x157')],_0x309833=_0x309833['isAfter'](_0x32a5dc[_0x42fa('0xfd')])?_0x309833:_0x32a5dc[_0x42fa('0xfd')],_0x2caeb7?_0x32a5dc[_0x42fa('0x157')]['isBefore'](_0x2caeb7[_0x42fa('0xcf')]()['start'])?(_0x2caeb7[_0x42fa('0x9c')](),_0x2caeb7=_0x38cff1):_0x38cff1['removeMarkers']():_0x2caeb7=_0x38cff1;}else{const _0x1321d1=_0x3f45ee[_0x42fa('0x11a')](_0x32a5dc);this[_0x42fa('0x148')](_0x38cff1,_0x1321d1);}}const _0x43464f=this[_0x42fa('0x12a')]['plugins']['get']('Users')['me'],_0xe26413=_0x53d935(),_0x54e921=_0x43464f['id'];if(_0x2caeb7)return this[_0x42fa('0x8d')](_0x2caeb7,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x456511,_0x309833)),_0x2caeb7;{const _0x20e43b=this[_0x42fa('0xb0')]({'id':_0xe26413,'type':_0x42fa('0xf7')+_0x86527a,'data':_0x289b70,'createdAt':new Date(),'authorId':_0x54e921,'attributes':_0x7dd577});return this[_0x42fa('0xee')]('formatBlock:'+_0x86527a,_0xe26413,_0x54e921,this[_0x42fa('0xe3')]['createRange'](_0x456511,_0x309833)),_0x20e43b;}}[_0x42fa('0x105')](_0x3fb9fe,_0x417527,_0x5cf33d=[],_0x251b9b=null,_0x4b0ccc={}){_0x417527[_0x42fa('0x15')]||(_0x417527[_0x42fa('0x15')]=_0x417527[_0x42fa('0x2e')]);const _0xf8a0ce=_0x3fb9fe[0x0];_0x417527['multipleBlocks']=_0xf8a0ce['is']('range'),_0x251b9b=_0x251b9b||Et(_0x417527);const _0x5bb01f=_0x5cf33d[_0x42fa('0x104')](_0x3dcd93=>Ot(_0x3dcd93,this['_model'])),_0x36670c=_0xf8a0ce['is']('range')?_0x3fb9fe:_0x3fb9fe[_0x42fa('0x104')](_0x1b11ba=>Ot(_0x1b11ba,this['_model']));if(_0x42fa('0x90')===this[_0x42fa('0x7c')]){const _0xe75cfe=this[_0x42fa('0x111')][_0x42fa('0x144')]('formatBlock',_0x251b9b,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0xe75cfe(_0x36670c,_0x417527,_0x4b0ccc)),null;}_0x5bb01f[_0x42fa('0x98')](..._0x36670c);let _0x47ca8e=!0x0;for(const _0x18e1ce of _0x5bb01f)if(!this[_0x42fa('0xcc')](_0x18e1ce)){_0x47ca8e=!0x1;break;}if(_0x47ca8e&&_0x42fa('0x130')!==this[_0x42fa('0x7c')]){const _0x1d5d41=this[_0x42fa('0x111')]['getSuggestionCallback'](_0x42fa('0x60'),_0x251b9b,'accept');return this[_0x42fa('0xf9')](()=>_0x1d5d41(_0x36670c,_0x417527,_0x4b0ccc)),null;}const _0x275950=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['me'];for(const _0x4fe255 of this[_0x42fa('0xa9')]()){if(_0x4fe255['author']['id']!=_0x275950['id'])continue;if('formatBlock'!=_0x4fe255[_0x42fa('0xbc')]||_0x4fe255[_0x42fa('0xe6')]['formatGroupId']!=_0x417527['formatGroupId'])continue;if(!Pt(_0x4fe255,_0x4b0ccc))continue;const _0x3f5016=_0x4fe255['subType']==_0x251b9b;for(let _0x162b3d=0x0;_0x162b3d<_0x36670c[_0x42fa('0xeb')];_0x162b3d++){const _0x41bae6=_0x36670c[_0x162b3d];for(const _0x44de42 of _0x4fe255[_0x42fa('0x50')]()){const _0x45b4e1=_0x44de42['getRange']();if(_0x41bae6[_0x42fa('0xa1')](_0x45b4e1)){_0x3f5016?(_0x36670c[_0x42fa('0x96')](_0x162b3d,0x1),_0x162b3d--):_0x4fe255[_0x42fa('0x110')](_0x44de42[_0x42fa('0x4b')]);break;}}}}if(0x0==_0x36670c['length'])return null;const _0x3f40bc=this[_0x42fa('0x111')][_0x42fa('0x144')](_0x42fa('0x60'),_0x251b9b,_0x42fa('0x12f'));for(const _0x3a0e97 of this['getSuggestions']())if(_0x3a0e97[_0x42fa('0x140')]['id']==_0x275950['id']&&_0x42fa('0x60')==_0x3a0e97[_0x42fa('0xbc')]&&_0x3a0e97['data'][_0x42fa('0x15')]==_0x417527[_0x42fa('0x15')]&&_0x3a0e97[_0x42fa('0x11f')]==_0x251b9b&&Pt(_0x3a0e97,_0x4b0ccc)&&(_0x3f40bc(_0x3a0e97[_0x42fa('0xd8')](),_0x36670c)||_0x3f40bc(_0x36670c,_0x3a0e97[_0x42fa('0xd8')]()))){for(const _0xd8c4db of _0x36670c)_0x3a0e97[_0x42fa('0x138')](_0xd8c4db);return _0x3a0e97;}const _0x42aac8=_0x53d935(),_0x1150b9=_0x275950['id'],_0x12346b=_0x42fa('0xf7')+_0x251b9b,_0x4aada1=this[_0x42fa('0xb0')]({'id':_0x42aac8,'type':_0x12346b,'data':_0x417527,'createdAt':new Date(),'authorId':_0x1150b9,'attributes':_0x4b0ccc});for(const _0x5d3df7 of _0x36670c)this[_0x42fa('0xee')](_0x12346b,_0x42aac8,_0x1150b9,_0x5d3df7,_0x5839fd['getMultiRangeId']());return _0x4aada1;}[_0x42fa('0x62')](_0x57403c,_0x560ba3=null,_0x59f171={}){if(_0x57403c[_0x42fa('0xd4')])return null;const _0x435d32=this['editor'][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'],_0x529264=new _0x3f221e(_0x57403c[_0x42fa('0x157')],_0x57403c[_0x42fa('0xfd')]);for(const {suggestion:_0x7f3403,meta:_0x157989}of this[_0x42fa('0xb5')](_0x529264,'insertion'))if(_0x157989[_0x42fa('0xd0')]&&!_0x157989[_0x42fa('0x41')]){if(_0x7f3403[_0x42fa('0xc')]){const _0xcf3e12=_0x7f3403[_0x42fa('0xd8')]()[_0x42fa('0x52')](_0x21f7e0=>_0x42fa('0x8')!=_0x21f7e0['root'][_0x42fa('0x11d')]);_0xcf3e12[_0x42fa('0x1e')](_0x1a9662=>_0x529264[_0x42fa('0x10b')](_0x1a9662,!0x0))&&_0x7f3403[_0x42fa('0x51')]();if(_0xcf3e12[_0x42fa('0x146')](_0x281e12=>_0x281e12[_0x42fa('0x10b')](_0x529264,!0x0))){const _0x48c713=this[_0x42fa('0x111')][_0x42fa('0x144')]('deletion',_0x560ba3,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x48c713([_0x529264],null,_0x59f171)),null;}}else{const _0x3d1d03=_0x529264[_0x42fa('0x11a')](_0x7f3403[_0x42fa('0xcf')]());null!==_0x3d1d03&&_0x7f3403['_onDiscard']([_0x3d1d03],null,_0x59f171);}}if(_0x529264[_0x42fa('0x10c')](),_0x529264[_0x42fa('0xd4')]||_0x42fa('0x8')==_0x529264[_0x42fa('0xef')][_0x42fa('0x11d')])return null;let _0x2a77a3=null,_0x26803c=_0x529264[_0x42fa('0x157')],_0x39dbbb=_0x529264[_0x42fa('0xfd')];const _0x341d2d=this[_0x42fa('0xb5')](_0x529264,_0x42fa('0x127'));for(const {suggestion:_0x55a590,meta:_0x2b40ee}of _0x341d2d){const _0x52c2ed=this['_model'][_0x42fa('0x116')](_0x26803c,_0x39dbbb);if(_0x2b40ee[_0x42fa('0xd0')]&&(this['_mergeNestedSuggestions']||!_0x2b40ee['containsRangeInObject']&&!_0x2b40ee[_0x42fa('0x13a')])){if(_0x55a590[_0x42fa('0xc')]){if(!Pt(_0x55a590,_0x59f171))continue;let _0x3b9c66=!0x0;for(const _0x6b01f1 of _0x55a590[_0x42fa('0xd8')]()){if(_0x6b01f1[_0x42fa('0x10b')](_0x52c2ed,!0x0))return _0x55a590;_0x52c2ed[_0x42fa('0x10b')](_0x6b01f1)||(_0x3b9c66=!0x1);}_0x3b9c66&&_0x55a590[_0x42fa('0x51')]();}else{const _0x41edc5=_0x55a590[_0x42fa('0xcf')]();if(_0x41edc5[_0x42fa('0x10b')](_0x52c2ed,!0x0))return _0x55a590;if(!Pt(_0x55a590,_0x59f171)){_0x52c2ed[_0x42fa('0x10b')](_0x41edc5)?_0x55a590[_0x42fa('0x9c')]():_0x41edc5[_0x42fa('0xc5')](_0x26803c)?_0x26803c=_0x41edc5[_0x42fa('0xfd')]:_0x41edc5[_0x42fa('0xc5')](_0x39dbbb)&&(_0x39dbbb=_0x41edc5[_0x42fa('0x157')]);continue;}_0x26803c=_0x26803c[_0x42fa('0x15a')](_0x41edc5['start'])?_0x26803c:_0x41edc5[_0x42fa('0x157')],_0x39dbbb=_0x39dbbb[_0x42fa('0x155')](_0x41edc5['end'])?_0x39dbbb:_0x41edc5[_0x42fa('0xfd')],_0x59f171=Object['assign']({},_0x55a590[_0x42fa('0x14a')]),_0x2a77a3?_0x41edc5['start'][_0x42fa('0x15a')](_0x2a77a3[_0x42fa('0xcf')]()[_0x42fa('0x157')])?(_0x2a77a3[_0x42fa('0x9c')](),_0x2a77a3=_0x55a590):_0x55a590[_0x42fa('0x9c')]():_0x2a77a3=_0x55a590;}}}if(_0x2a77a3)return this[_0x42fa('0x8d')](_0x2a77a3,this[_0x42fa('0xe3')]['createRange'](_0x26803c,_0x39dbbb)),_0x2a77a3;{const _0x546b78=_0x53d935(),_0x56d764=this['_model'][_0x42fa('0x116')](_0x26803c,_0x39dbbb),_0x583738=_0x435d32['id'],_0x5c042b=_0x560ba3?'deletion:'+_0x560ba3:_0x42fa('0x127'),_0x36edca=this[_0x42fa('0xb0')]({'id':_0x546b78,'type':_0x5c042b,'createdAt':new Date(),'authorId':_0x583738,'attributes':_0x59f171});return this[_0x42fa('0xee')](_0x5c042b,_0x546b78,_0x583738,_0x56d764),_0x36edca;}}[_0x42fa('0x36')](_0x2171f0,_0x4e3eaa='multi',_0x39ef2d={}){const _0xed06f2=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['me'],_0x3d9367=_0x2171f0[_0x42fa('0x104')](_0x9f0361=>new _0x3f221e(_0x9f0361[_0x42fa('0x157')],_0x9f0361[_0x42fa('0xfd')])),_0x21f650=new Set();for(const {suggestion:_0x38f576,meta:_0x2afd48}of this[_0x42fa('0xb5')](_0x3d9367,'insertion'))_0x2afd48['isOwn']&&!_0x2afd48[_0x42fa('0x41')]&&_0x21f650['add'](_0x38f576);for(const _0x228a84 of _0x21f650)if(_0x228a84[_0x42fa('0xc')]){const _0x131a9b=_0x228a84[_0x42fa('0xd8')]();(!_0x228a84[_0x42fa('0x14a')]||!_0x228a84['attributes'][_0x42fa('0x3d')])&&(_0x131a9b[_0x42fa('0x1e')](_0x252899=>_0x3d9367[_0x42fa('0x146')](_0x384d51=>_0x384d51[_0x42fa('0x10b')](_0x252899,!0x0)))&&_0x228a84[_0x42fa('0x51')]());if(_0x3d9367['every'](_0x1d0118=>_0x131a9b[_0x42fa('0x146')](_0x5af6c1=>_0x5af6c1[_0x42fa('0x10b')](_0x1d0118,!0x0)))){const _0x597792=this[_0x42fa('0x111')][_0x42fa('0x144')](_0x42fa('0x127'),_0x4e3eaa,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x597792(_0x2171f0,null,_0x39ef2d)),null;}}else{const _0x28cb76=_0x228a84[_0x42fa('0xcf')]();_0x3d9367['some'](_0x523dda=>_0x523dda[_0x42fa('0x10b')](_0x28cb76,!0x0))&&_0x228a84[_0x42fa('0x51')]();if(_0x3d9367[_0x42fa('0x1e')](_0x4be9b2=>_0x28cb76['containsRange'](_0x4be9b2,!0x0))){const _0x5535aa=this[_0x42fa('0x111')]['getSuggestionCallback'](_0x42fa('0x127'),_0x4e3eaa,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x5535aa(_0x3d9367,null,_0x39ef2d)),null;}}const _0x1b3e16=this[_0x42fa('0x111')][_0x42fa('0x144')]('deletion',_0x4e3eaa,'join');let _0x3001c1=null;for(const _0x2bc03d of this[_0x42fa('0xa9')]())if(_0x2bc03d['author']['id']==_0xed06f2['id']&&_0x2bc03d['isInContent']&&_0x42fa('0x127')==_0x2bc03d[_0x42fa('0xbc')]&&_0x2bc03d[_0x42fa('0x11f')]==_0x4e3eaa&&Pt(_0x2bc03d,_0x39ef2d)&&(_0x1b3e16(_0x2bc03d[_0x42fa('0xd8')](),_0x3d9367)||_0x1b3e16(_0x3d9367,_0x2bc03d[_0x42fa('0xd8')]()))){if(_0x3001c1){if(_0x2bc03d[_0x42fa('0xc4')]&&_0x2bc03d[_0x42fa('0xc4')][_0x42fa('0xeb')])continue;for(const _0x4b6063 of _0x2bc03d[_0x42fa('0xd8')]())_0x3001c1[_0x42fa('0xb1')](_0x4b6063)||_0x3001c1[_0x42fa('0x138')](_0x4b6063);_0x2bc03d[_0x42fa('0x9c')]();}else{_0x3001c1=_0x2bc03d;for(const _0x25c429 of _0x3d9367)_0x2bc03d['isIntersectingWithRange'](_0x25c429)||_0x2bc03d['addRange'](_0x25c429);}}if(_0x3001c1)return _0x3001c1;_0x21f650['clear']();for(const {suggestion:_0x472bea,meta:_0x2e80b9}of this[_0x42fa('0xb5')](_0x3d9367,_0x42fa('0x127')))_0x2e80b9[_0x42fa('0xd0')]&&(this[_0x42fa('0x9a')]||!_0x2e80b9[_0x42fa('0xdc')]&&!_0x2e80b9[_0x42fa('0x13a')])&&Pt(_0x472bea,_0x39ef2d)&&_0x21f650['add'](_0x472bea);for(const _0x1fd58c of _0x21f650){const _0x3db348=_0x1fd58c[_0x42fa('0xd8')]();if(!_0x39ef2d||!_0x39ef2d[_0x42fa('0x3d')]){if(_0x3d9367[_0x42fa('0x1e')](_0x573cc5=>_0x3db348[_0x42fa('0x146')](_0x2bd308=>_0x2bd308[_0x42fa('0x10b')](_0x573cc5,!0x0))))return _0x1fd58c;}(!_0x1fd58c[_0x42fa('0x14a')]||!_0x1fd58c['attributes'][_0x42fa('0x3d')])&&(_0x3db348[_0x42fa('0x1e')](_0x5b67a5=>_0x3d9367[_0x42fa('0x146')](_0x40ab73=>_0x40ab73[_0x42fa('0x10b')](_0x5b67a5,!0x0)))&&_0x1fd58c['discard']());}const _0xa6c222=_0x53d935(),_0x51b0cc=_0xed06f2['id'],_0x23e24d='deletion:'+_0x4e3eaa,_0x4ea11b=this[_0x42fa('0xb0')]({'id':_0xa6c222,'type':_0x23e24d,'createdAt':new Date(),'authorId':_0x51b0cc,'attributes':_0x39ef2d});for(const _0x424142 of _0x3d9367)_0x424142[_0x42fa('0x10c')](),_0x424142['isCollapsed']||'$graveyard'==_0x424142['root'][_0x42fa('0x11d')]||this[_0x42fa('0xee')](_0x23e24d,_0xa6c222,_0x51b0cc,_0x424142,_0x5839fd[_0x42fa('0x26')]());return _0x4ea11b;}[_0x42fa('0x167')](_0x311c58,_0x416e6b,_0x563901,_0x253997,_0xbc8314){if(_0x311c58[_0x42fa('0xd4')])return[];if(_0x42fa('0x90')===this[_0x42fa('0x7c')])return[];const _0x23d5be=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['me']['id'],_0x278263=Array[_0x42fa('0xc6')](this[_0x42fa('0xe9')][_0x42fa('0xde')]())[_0x42fa('0x52')](_0x37d0eb=>_0x42fa('0x142')==_0x37d0eb['type']&&_0x37d0eb['data'][_0x42fa('0x13c')]==_0x416e6b&&_0x37d0eb[_0x42fa('0xb1')](_0x311c58));if(_0x42fa('0x6b')===this[_0x42fa('0x7c')]){const _0x17a989=this[_0x42fa('0xb5')](_0x311c58,'insertion')[_0x42fa('0x52')](({meta:_0x525e80})=>_0x525e80[_0x42fa('0xd0')]&&!_0x525e80[_0x42fa('0x13a')]&&!_0x525e80['isNextTo'])[_0x42fa('0x104')](({suggestion:_0x27c804})=>_0x27c804);_0x278263[_0x42fa('0xd6')](..._0x17a989);}const _0x5c6a7c=new Map([[_0x311c58,_0x563901]]);for(const _0x2317d0 of _0x278263){const _0xb3a9ad=_0x42fa('0x142')==_0x2317d0[_0x42fa('0xbc')]?_0x2317d0[_0x42fa('0xe6')][_0x42fa('0xcb')]:void 0x0,_0x44ecfd=_0x2317d0['getFirstRange'](),_0x34171e=Array['from'](_0x5c6a7c[_0x42fa('0x53')]())[_0x42fa('0x4e')](_0xc73032=>_0xc73032['isIntersecting'](_0x44ecfd));if(!_0x34171e)continue;const _0x2410cd=_0x34171e[_0x42fa('0x16a')](_0x44ecfd);this['_isBlockAttribute'](_0x416e6b)&&'insertion'==_0x2317d0['type']&&0x0!=_0x2410cd[_0x42fa('0xeb')]||(_0x5c6a7c['delete'](_0x34171e),_0x2410cd['forEach'](_0x396ee7=>{_0x5c6a7c[_0x42fa('0xb7')](_0x396ee7,_0x563901);}),_0x42fa('0x11e')!=_0x2317d0[_0x42fa('0xbc')]&&_0xb3a9ad!=_0x253997&&_0x5c6a7c[_0x42fa('0xb7')](_0x34171e[_0x42fa('0x11a')](_0x44ecfd),_0xb3a9ad));}const _0x394497=[];for(const [_0x3cc842,_0x581c40]of _0x5c6a7c){const _0x28521e=_0x53d935(),_0x2508c9={'key':_0x416e6b,'oldValue':_0x581c40,'newValue':_0x253997};_0x416e6b[_0x42fa('0xeb')]>0x25&&console[_0x42fa('0x166')](_0x42fa('0xae'),{'key':_0x416e6b});const _0x5bcdfe=(_0x42fa('0xf2')+(_0x416e6b+'|'+Et({'newValue':_0x253997})))['substring'](0x0,0x3c),_0x54e5fb=this['_setSuggestionData']({'id':_0x28521e,'type':_0x5bcdfe,'data':_0x2508c9,'createdAt':new Date(),'authorId':_0x23d5be,'attributes':_0xbc8314});_0x394497[_0x42fa('0x98')](_0x54e5fb),this[_0x42fa('0xee')](_0x5bcdfe,_0x28521e,_0x23d5be,_0x3cc842);}return _0x394497;}[_0x42fa('0x15d')](_0x2246b2){this[_0x42fa('0x132')]['add'](_0x2246b2);}['_registerInlineAttribute'](_0x5a60f9){this['_inlineAttributeKeys'][_0x42fa('0xc7')](_0x5a60f9);}['_enableDefaultAttributesIntegration'](_0x391e66,_0x458f91=[],_0x534a4f=[]){this[_0x42fa('0x13')](_0x391e66,(_0x481ff6,..._0x500d17)=>{this[_0x42fa('0x39')](()=>{_0x481ff6(..._0x500d17);});});for(const _0x553b8c of _0x458f91)this['_registerInlineAttribute'](_0x553b8c);for(const _0x433a8a of _0x534a4f)this[_0x42fa('0x15d')](_0x433a8a);}[_0x42fa('0xb9')](_0x2c9c3e){return _0x42fa('0x142')==_0x2c9c3e['type']?_0x2c9c3e[_0x42fa('0x11f')][_0x42fa('0x136')]('|')[0x0]:null;}[_0x42fa('0x8d')](_0x24353a,_0x2a0b45){const _0x36875b=_0x24353a[_0x42fa('0x0')]();this[_0x42fa('0xe3')]['change'](_0xbc7881=>{_0xbc7881['updateMarker'](_0x36875b,{'range':_0x2a0b45});});}[_0x42fa('0xf1')](_0xcf9134){const _0x587fd9=_0xcf9134['id'],_0x134aa0=this['editor'][_0x42fa('0x2b')]['get']('collaboration.channelId');this[_0x42fa('0x92')][_0x42fa('0x1a')](_0x587fd9)||this[_0x42fa('0x92')][_0x42fa('0xe4')]({'channelId':_0x134aa0,'threadId':_0x587fd9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1852b1=this[_0x42fa('0x92')][_0x42fa('0x135')](_0x587fd9);_0x1852b1[_0x42fa('0x10e')]('isRemovable'),_0x1852b1[_0x42fa('0x6f')]=!0x1,_0xcf9134[_0x42fa('0xc4')]=_0x1852b1;}['_checkSuggestionCorrectness'](_0xc7cd06,_0x2bb1e5,_0x1d1986,_0x1e8c87){if(_0xc7cd06[_0x42fa('0xbc')]!=_0x2bb1e5||_0xc7cd06[_0x42fa('0x11f')]!=_0x1d1986||_0xc7cd06[_0x42fa('0x129')]['id']!=_0x1e8c87)throw this['editor'][_0x42fa('0x16c')](_0x42fa('0x102')),new _0x6b7fca(_0x42fa('0x102'),this);}[_0x42fa('0x148')](_0x368987,_0x44e73f){const _0x4a8f30=_0x368987[_0x42fa('0xcf')]();if(_0x44e73f[_0x42fa('0xa1')](_0x4a8f30))_0x368987[_0x42fa('0x9c')]();else{if(_0x4a8f30[_0x42fa('0x10b')](_0x44e73f)){const _0x15ba00=this[_0x42fa('0xe3')][_0x42fa('0x2')](_0x44e73f['start']['nodeBefore'],_0x42fa('0xfd'));this['_setSuggestionRange'](_0x368987,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x4a8f30['start'],_0x15ba00));const _0x32e8d4=_0x53d935(),_0x4502ec=_0x368987['creator']['id'],_0x5dec64=_0x368987['type']+':'+_0x368987[_0x42fa('0x11f')];this['_setSuggestionData']({'id':_0x32e8d4,'type':_0x5dec64,'createdAt':new Date(),'authorId':_0x4502ec,'data':_0x368987[_0x42fa('0xe6')],'attributes':_0x368987[_0x42fa('0x14a')]});const _0x20962b=this['_model'][_0x42fa('0x2')](_0x44e73f[_0x42fa('0xfd')][_0x42fa('0xc1')],_0x42fa('0x74')),_0x205477=this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x20962b,_0x4a8f30['end']);this[_0x42fa('0xee')](_0x5dec64,_0x32e8d4,_0x4502ec,_0x205477);}else{if(_0x4a8f30[_0x42fa('0xc5')](_0x44e73f[_0x42fa('0x157')])){const _0x130c88=this[_0x42fa('0xe3')][_0x42fa('0x2')](_0x44e73f['start'][_0x42fa('0x94')],_0x42fa('0xfd'));this['_setSuggestionRange'](_0x368987,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x4a8f30[_0x42fa('0x157')],_0x130c88));}else{const _0x28e1c9=this['_model'][_0x42fa('0x2')](_0x44e73f['end']['parent'],_0x42fa('0x74'));this[_0x42fa('0x8d')](_0x368987,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x28e1c9,_0x4a8f30[_0x42fa('0xfd')]));}}}}[_0x42fa('0xcc')](_0x29c711){for(const {suggestion:_0x700d4b,meta:_0x2da755}of this['_findSuggestions'](_0x29c711,_0x42fa('0x11e'))){if(!_0x2da755[_0x42fa('0xd0')])continue;const _0x5283a1=_0x700d4b['getRanges']();for(const _0x572331 of _0x5283a1)if(!_0x29c711[_0x42fa('0x16a')](_0x572331)['length'])return!0x0;}return!0x1;}[_0x42fa('0x31')](_0x316bd0){const _0x9bda7=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['getUser'](_0x316bd0);if(!_0x9bda7)throw new _0x6b7fca('track-changes-user-not-found',this);return _0x9bda7;}['_getExternalAuthor'](_0x1c178c){const _0x5d2754=this['editor'][_0x42fa('0x103')]['get'](_0x42fa('0x12e')),_0x5ab380=_0x1d9dc1(_0x42fa('0x34')+_0x1c178c),_0x35e506=_0x5d2754[_0x42fa('0x97')](_0x5ab380);return _0x35e506||_0x5d2754[_0x42fa('0x79')]({'id':_0x5ab380,'name':_0x1c178c});}[_0x42fa('0xb4')](_0x2e4981,_0x36d6bd,_0x3ea52d,_0x249b16,_0x40f516){const _0x455517=this[_0x42fa('0x31')](_0x249b16),_0x3fe73a=this[_0x42fa('0x111')][_0x42fa('0xec')](_0x2e4981,_0x36d6bd,_0x3ea52d,_0x455517,_0x40f516,_0x29f320=>{this[_0x42fa('0x4c')](_0x3ea52d,{'attributes':_0x29f320});const _0x286bbd=this[_0x42fa('0x139')](_0x3ea52d);this[_0x42fa('0x63')](new Set([_0x286bbd])),this[_0x42fa('0x11b')](new Set([_0x286bbd]));});return this[_0x42fa('0x32')](_0x3fe73a,_0x42fa('0x7'),()=>{this[_0x42fa('0x4c')](_0x3ea52d,{'state':'accepted'});},{'priority':_0x42fa('0x3f')}),this['listenTo'](_0x3fe73a,_0x42fa('0x51'),()=>{this[_0x42fa('0x4c')](_0x3ea52d,{'state':_0x42fa('0x17')});},{'priority':_0x42fa('0x3f')}),this[_0x42fa('0xe9')][_0x42fa('0xb7')](_0x3ea52d,_0x3fe73a),this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x3fe73a,_0x42fa('0xa5')),_0x3fe73a;}[_0x42fa('0xf4')](_0x4e3eb6){const _0x33c21b=_0x4e3eb6[_0x42fa('0x136')](':');return{'group':_0x33c21b[0x0],'type':_0x33c21b[0x1],'subType':_0x33c21b[_0x42fa('0xeb')]>=0x5?_0x33c21b[0x2]:null,'id':_0x33c21b['length']<0x5?_0x33c21b[0x2]:_0x33c21b[0x3],'authorId':_0x33c21b[_0x42fa('0xeb')]<0x5?_0x33c21b[0x3]:_0x33c21b[0x4],'markerCount':0x6==_0x33c21b[_0x42fa('0xeb')]?_0x33c21b[0x5]:null};}[_0x42fa('0x13f')](_0x596217,_0x1f27d5,_0x561143){const _0x2d40a1=_0x596217['getFirstRange'](),_0x14e67a=_0x2d40a1[_0x42fa('0x157')],_0x82234e=_0x2d40a1[_0x42fa('0xfd')];this[_0x42fa('0x8d')](_0x596217,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x14e67a,_0x1f27d5));const _0x176d96=_0x53d935(),_0x20ed05=_0x596217[_0x42fa('0x129')]['id'],_0x37b658=_0x596217[_0x42fa('0xbc')]+(_0x596217['subType']?':'+_0x596217['subType']:'');this['_setSuggestionData']({'id':_0x176d96,'type':_0x37b658,'createdAt':new Date(),'authorId':_0x20ed05,'originalSuggestionId':_0x596217['id'],'attributes':_0x596217[_0x42fa('0x14a')],'data':_0x596217[_0x42fa('0xe6')]});const _0x5e3f0b=this[_0x42fa('0xb9')](_0x596217);(_0x42fa('0x60')==_0x596217[_0x42fa('0xbc')]||_0x5e3f0b&&this['_isBlockAttribute'](_0x5e3f0b))&&(_0x561143=this[_0x42fa('0xe3')][_0x42fa('0x44')](_0x561143['parent'])),this['_addSuggestionMarker'](_0x37b658,_0x176d96,_0x20ed05,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x561143,_0x82234e));}[_0x42fa('0xb5')](_0x41d796,_0x576567=null){const _0x1d4eb5=[],_0x22f34e=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'];Array[_0x42fa('0xe0')](_0x41d796)||(_0x41d796=[_0x41d796]);for(const _0x3661c8 of this[_0x42fa('0xa9')]()){if(!_0x3661c8['isInContent'])continue;if(_0x576567&&_0x3661c8[_0x42fa('0xbc')]!=_0x576567)continue;let _0x5ed60d=!0x1;for(const _0x30b55f of _0x3661c8[_0x42fa('0xd8')]()){for(const _0x1e2fa5 of _0x41d796){const _0xa613c0=_0x1e2fa5[_0x42fa('0x157')][_0x42fa('0xa1')](_0x30b55f[_0x42fa('0xfd')])||_0x1e2fa5[_0x42fa('0xfd')][_0x42fa('0xa1')](_0x30b55f[_0x42fa('0x157')]);if(_0xa613c0||_0x1e2fa5[_0x42fa('0x11a')](_0x30b55f)){const _0xfc5a3b=_0x1e2fa5['containsRange'](_0x30b55f)&&xt(this['_model'][_0x42fa('0x133')],_0x30b55f[_0x42fa('0x157')],_0x1e2fa5),_0x305c20=_0x30b55f[_0x42fa('0x10b')](_0x1e2fa5)&&xt(this[_0x42fa('0xe3')][_0x42fa('0x133')],_0x1e2fa5['start'],_0x30b55f);_0x1d4eb5[_0x42fa('0x98')]({'suggestion':_0x3661c8,'meta':{'isOwn':_0x22f34e==_0x3661c8['author'],'isNextTo':_0xa613c0,'isInsideObject':_0xfc5a3b,'containsRangeInObject':_0x305c20}}),_0x5ed60d=!0x0;break;}}if(_0x5ed60d)break;}}return _0x1d4eb5;}[_0x42fa('0xee')](_0x30cc0b,_0x2a165c,_0x2bb3d1,_0x54006e,_0x17b7ed){this[_0x42fa('0xe3')][_0x42fa('0xf0')](_0x29aba1=>{let _0x15160b=_0x42fa('0x107')+_0x30cc0b+':'+_0x2a165c+':'+_0x2bb3d1;_0x17b7ed&&(_0x15160b=_0x15160b+':'+_0x17b7ed),_0x29aba1[_0x42fa('0x168')](_0x15160b,{'range':_0x54006e,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x42fa('0x13b')](_0xc77853){const _0xd72242=_0xc77853[_0x42fa('0x14')],_0x152cb4=_0xc77853[_0x42fa('0x27')];_0xc77853[_0x42fa('0x14')]=null,_0xc77853[_0x42fa('0x27')]=null,null!=_0xd72242&&_0xd72242[_0x42fa('0x27')]==_0xc77853&&(_0xd72242[_0x42fa('0x27')]=_0x152cb4),null!=_0x152cb4&&_0x152cb4[_0x42fa('0x14')]==_0xc77853&&(_0x152cb4[_0x42fa('0x14')]=_0xd72242),_0x42fa('0x6d')==this[_0x42fa('0x119')]['get'](_0xc77853)&&(this['_suggestionState'][_0x42fa('0xb7')](_0xc77853,'removed'),this['fire'](_0x42fa('0x4d'),_0xc77853,_0xd72242,_0x152cb4));}[_0x42fa('0xb0')](_0x584838){const _0xd373bd=_0x584838['id'],_0x273dd4=this[_0x42fa('0xcd')](_0x584838);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e6d0c=this['editor']['plugins'][_0x42fa('0x65')](_0x42fa('0xb3')),_0x19bfa3=_0x273dd4[_0x42fa('0x128')],_0x1a4902=_0x273dd4['subType']?_0x273dd4['type']+':'+_0x273dd4[_0x42fa('0x11f')]:_0x273dd4[_0x42fa('0xbc')],_0x3c869c=this[_0x42fa('0x12a')][_0x42fa('0x4')],_0x125e0b=_0x3e6d0c[_0x42fa('0xc7')](_0x1a255c(_0x3c869c,'PENDING_ACTION_SUGGESTION')),_0x34e4e3={'id':_0xd373bd,'type':_0x1a4902,'hasComments':_0x19bfa3,'data':_0x584838['data']||null,'originalSuggestionId':_0x584838[_0x42fa('0x152')]||null,'attributes':_0x273dd4[_0x42fa('0x14a')]};this[_0x42fa('0xad')][_0x42fa('0x6')](_0x34e4e3)[_0x42fa('0x165')](_0x5f59df=>{_0x273dd4[_0x42fa('0x16b')]=!0x0,_0x3e6d0c[_0x42fa('0x70')](_0x125e0b),_0x5f59df&&_0x5f59df[_0x42fa('0xe5')]&&(this[_0x42fa('0xe9')][_0x42fa('0x65')](_0xd373bd)[_0x42fa('0xe5')]=_0x5f59df['createdAt']);})[_0x42fa('0x154')](_0x3b3cba=>{throw _0x4ae81c(_0x42fa('0x5d')),this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0x30')]({'isUndoable':!0x1},()=>{_0x273dd4[_0x42fa('0x51')]();}),_0x273dd4[_0x42fa('0x126')](),this[_0x42fa('0xe9')][_0x42fa('0x113')](_0x273dd4['id']),this[_0x42fa('0x119')][_0x42fa('0x113')](_0x273dd4),_0x3b3cba;});}return _0x273dd4;}['_isBlockAttribute'](_0x191c10){return this['_blockAttributeKeys'][_0x42fa('0x56')](_0x191c10);}[_0x42fa('0x4c')](_0x412b6f,_0x1a7150){const _0x1227ce=this[_0x42fa('0x12a')]['plugins']['get'](_0x42fa('0xb3')),_0x4a619d=this[_0x42fa('0x139')](_0x412b6f);if(this['_adapter']&&this[_0x42fa('0xad')][_0x42fa('0xa7')]){if(_0x4a619d[_0x42fa('0x16b')]){const _0x47e0f4=_0x1227ce[_0x42fa('0xc7')](_0x1a255c(this['editor']['locale'],_0x42fa('0x89')));this[_0x42fa('0xad')][_0x42fa('0xa7')](_0x412b6f,_0x1a7150)[_0x42fa('0x165')](()=>{_0x1227ce[_0x42fa('0x70')](_0x47e0f4);});}else _0x4a619d['on']('change:_saved',()=>{this[_0x42fa('0x4c')](_0x412b6f,_0x1a7150);});}}[_0x42fa('0xbe')](_0x5920ed){if(!this['_adapter']||!this[_0x42fa('0xad')][_0x42fa('0x139')])throw new _0x6b7fca(_0x42fa('0x7f'),this);return this[_0x42fa('0xad')][_0x42fa('0x139')](_0x5920ed);}[_0x42fa('0xed')](_0x18bca1){const {id:_0x2539f1,type:_0x2bb167,subType:_0x26ee3e,authorId:_0x1bbc2d}=this['_splitMarkerName'](_0x18bca1),_0x29bfbe=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x2539f1)||this[_0x42fa('0xb4')](_0x2bb167,_0x26ee3e,_0x2539f1,_0x1bbc2d,{});switch(this[_0x42fa('0x33')](_0x29bfbe,_0x2bb167,_0x26ee3e,_0x1bbc2d),this[_0x42fa('0x119')]['get'](_0x29bfbe)){case'notReady':this[_0x42fa('0xbe')](_0x2539f1)[_0x42fa('0x165')](_0x4f00d8=>{let _0x245dd0=Promise[_0x42fa('0xdb')]();_0x4f00d8['hasComments']&&(_0x245dd0=this[_0x42fa('0x92')][_0x42fa('0x106')]({'channelId':this[_0x42fa('0x12a')][_0x42fa('0x2b')][_0x42fa('0x65')](_0x42fa('0xd7')),'threadId':_0x2539f1})),_0x245dd0[_0x42fa('0x165')](()=>{this[_0x42fa('0xcd')](_0x4f00d8)[_0x42fa('0x16b')]=!0x0;});}),this['_suggestionState'][_0x42fa('0xb7')](_0x29bfbe,'markerReady');break;case _0x42fa('0x15e'):this['_updateSuggestionData'](_0x2539f1,{'state':_0x42fa('0x78')});case _0x42fa('0x9e'):this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x29bfbe,_0x42fa('0x6d')),this['fire'](_0x42fa('0x3c'),_0x29bfbe);break;case _0x42fa('0x6d'):this[_0x42fa('0x12c')](_0x42fa('0xf5'),_0x29bfbe);}return _0x29bfbe[_0x42fa('0x82')](_0x18bca1),_0x29bfbe;}[_0x42fa('0x11b')](_0x57ad65){const _0xa5b371=Array[_0x42fa('0xc6')](_0x57ad65),_0x34dc81=_0xa5b371[_0x42fa('0x52')](_0x5aae0d=>'attribute'==_0x5aae0d[_0x42fa('0xbc')]);this[_0x42fa('0xd9')](_0x34dc81);const _0x48ed19=_0xa5b371['filter'](_0x373ed8=>!_0x373ed8[_0x42fa('0xc')]&&_0x42fa('0x142')!=_0x373ed8[_0x42fa('0xbc')]),_0x6b6ad9=this[_0x42fa('0xa9')]({'skipNotAttached':!0x0})[_0x42fa('0x52')](_0x5b8e62=>!_0x5b8e62['isMultiRange']&&'attribute'!=_0x5b8e62[_0x42fa('0xbc')]),_0xa061ee=_0x6b6ad9[_0x42fa('0x52')](_0xd187ad=>!_0x57ad65[_0x42fa('0x56')](_0xd187ad)),_0x30b261=new Map(_0x6b6ad9['map'](_0x406d3e=>[_0x406d3e,this[_0x42fa('0x111')][_0x42fa('0x144')](_0x406d3e[_0x42fa('0xbc')],_0x406d3e['subType'],_0x42fa('0x28'))])),_0x3981a8=new Map(_0x6b6ad9[_0x42fa('0x104')](_0x5f1521=>[_0x5f1521,_0x5f1521[_0x42fa('0xcf')]()])),_0x2421b0=new Set(),_0x4be1d8=new Set();for(let _0x1d48cf=0x0;_0x1d48cf<_0x48ed19[_0x42fa('0xeb')];_0x1d48cf++)_0x5843b2(_0x48ed19[_0x1d48cf],_0x48ed19,_0x1d48cf+0x1);for(let _0x51f7d0=0x0;_0x51f7d0<_0x48ed19[_0x42fa('0xeb')];_0x51f7d0++)_0x5843b2(_0x48ed19[_0x51f7d0],_0xa061ee,0x0);const _0x33cb14=new Set();for(let _0x556033=0x0;_0x556033<_0x48ed19['length'];_0x556033++){const _0x39749c=_0x48ed19[_0x556033];!_0x4be1d8[_0x42fa('0x56')](_0x39749c)&&_0x39749c[_0x42fa('0x14')]&&(_0x33cb14[_0x42fa('0xc7')](_0x39749c[_0x42fa('0x14')]),_0x39749c[_0x42fa('0x14')]['next']===_0x39749c&&(_0x39749c[_0x42fa('0x14')][_0x42fa('0x27')]=null),_0x39749c[_0x42fa('0x14')]=null),!_0x2421b0[_0x42fa('0x56')](_0x39749c)&&_0x39749c[_0x42fa('0x27')]&&(_0x33cb14['add'](_0x39749c[_0x42fa('0x27')]),_0x39749c[_0x42fa('0x27')][_0x42fa('0x14')]===_0x39749c&&(_0x39749c[_0x42fa('0x27')][_0x42fa('0x14')]=null),_0x39749c[_0x42fa('0x27')]=null);}function _0x5843b2(_0x63a70a,_0x1e1f2a,_0x4a7c31){for(let _0x113d55=_0x4a7c31;_0x113d55<_0x1e1f2a[_0x42fa('0xeb')];_0x113d55++){const _0x2dbd00=_0x175351(_0x63a70a,_0x1e1f2a[_0x113d55]);_0x2dbd00&&(_0x2dbd00[0x0][_0x42fa('0x27')]=_0x2dbd00[0x1],_0x2dbd00[0x1][_0x42fa('0x14')]=_0x2dbd00[0x0],_0x2421b0[_0x42fa('0xc7')](_0x2dbd00[0x0]),_0x4be1d8['add'](_0x2dbd00[0x1]));}}function _0x175351(_0x22ea31,_0xa84d5e){if(_0x22ea31[_0x42fa('0x140')]['id']!==_0xa84d5e[_0x42fa('0x140')]['id'])return null;const _0x55f93c=_0x30b261[_0x42fa('0x65')](_0x22ea31)(_0x22ea31,_0xa84d5e,_0x3981a8['get'](_0x22ea31),_0x3981a8[_0x42fa('0x65')](_0xa84d5e));if(!_0x55f93c)return null;return _0x30b261[_0x42fa('0x65')](_0xa84d5e)(_0x22ea31,_0xa84d5e,_0x3981a8[_0x42fa('0x65')](_0x22ea31),_0x3981a8['get'](_0xa84d5e))?_0x55f93c[0x1][_0x42fa('0xc4')]&&_0x55f93c[0x1][_0x42fa('0xc4')][_0x42fa('0xeb')]?null:_0x55f93c:null;}_0x33cb14['size']&&this[_0x42fa('0x11b')](_0x33cb14);}[_0x42fa('0xd9')](_0x5bf5c7){if(0x0==_0x5bf5c7[_0x42fa('0xeb')])return;const _0x1dffca=this[_0x42fa('0xa9')]({'skipNotAttached':!0x0})[_0x42fa('0x52')](_0x4f55e6=>'attribute'==_0x4f55e6['type']&&_0x4f55e6[_0x42fa('0x67')]),_0x2c8e93=[],_0x2c6aea=new Map();for(const _0x38939c of _0x1dffca){const _0x4a730b=_0x1d9dc1(_0x38939c[_0x42fa('0x14a')]);_0x2c6aea[_0x42fa('0x56')](_0x4a730b)||(_0x2c6aea['set'](_0x4a730b,_0x2c8e93[_0x42fa('0xeb')]),_0x2c8e93['push']([]));const _0x11fe36=_0x2c6aea[_0x42fa('0x65')](_0x4a730b);_0x2c8e93[_0x11fe36][_0x42fa('0x98')](_0x38939c);}!function(){_0x2c8e93[_0x42fa('0x162')]((_0x5e6a46,_0x428473)=>{const _0x37239b=_0x5e6a46[0x0][_0x42fa('0xe5')],_0x47e300=_0x428473[0x0]['createdAt'];return _0x37239b==_0x47e300?_0x5e6a46[0x0][_0x42fa('0x14a')]['groupId']<_0x428473[0x0]['attributes'][_0x42fa('0x58')]?-0x1:0x1:_0x37239b<_0x47e300?-0x1:0x1;});for(const _0x521072 of _0x2c8e93)_0x521072['sort']((_0x12481e,_0x21bf54)=>_0x12481e['id']<_0x21bf54['id']?-0x1:0x1);}();for(let _0x3a92b4=0x0;_0x3a92b4<_0x2c8e93[_0x42fa('0xeb')];_0x3a92b4++){if(0x0==_0x2c8e93[_0x3a92b4][_0x42fa('0xeb')])continue;const _0x43b14b=[];for(let _0x5242e5=_0x3a92b4+0x1;_0x5242e5<_0x2c8e93[_0x42fa('0xeb')];_0x5242e5++)0x0!=_0x2c8e93[_0x5242e5][_0x42fa('0xeb')]&&_0x46741c(_0x2c8e93[_0x3a92b4],_0x2c8e93[_0x5242e5])&&_0x43b14b[_0x42fa('0x98')](_0x5242e5);for(const _0x301719 of _0x43b14b)_0x2c8e93[_0x3a92b4]=_0x2c8e93[_0x3a92b4]['concat'](_0x2c8e93[_0x301719]),_0x2c8e93[_0x301719]=[];}for(const _0x202514 of _0x2c8e93)for(let _0x5f49a2=0x0;_0x5f49a2<_0x202514[_0x42fa('0xeb')];_0x5f49a2++)_0x202514[_0x5f49a2][_0x42fa('0x27')]=_0x202514[_0x5f49a2+0x1]||null;for(const _0x2343a3 of _0x2c8e93)for(let _0x277a83=0x0;_0x277a83<_0x2343a3[_0x42fa('0xeb')];_0x277a83++)_0x2343a3[_0x277a83]['previous']=_0x2343a3[_0x277a83-0x1]||null;function _0x46741c(_0x30cdb6,_0x4faea7){if(_0x30cdb6[0x0][_0x42fa('0x14a')][_0x42fa('0x58')]!==_0x4faea7[0x0][_0x42fa('0x14a')][_0x42fa('0x58')]&&_0x30cdb6[0x0][_0x42fa('0x140')]!==_0x4faea7[0x0][_0x42fa('0x140')])return!0x1;if(!function(_0x20de2c,_0x150d19){if(!_0x20de2c[_0x42fa('0x128')]&&!_0x150d19['hasComments'])return!0x0;if(_0x20de2c[_0x42fa('0x128')]&&_0x150d19['hasComments'])return!0x1;if(_0x20de2c[_0x42fa('0x128')]&&_0x150d19[_0x42fa('0xe5')]<_0x20de2c[_0x42fa('0xc4')][_0x42fa('0xf3')][_0x42fa('0x65')](0x0)[_0x42fa('0xe5')])return!0x0;if(_0x150d19[_0x42fa('0x128')]&&_0x20de2c['createdAt']<_0x150d19[_0x42fa('0xc4')][_0x42fa('0xf3')][_0x42fa('0x65')](0x0)[_0x42fa('0xe5')])return!0x0;return!0x1;}(_0x30cdb6[0x0],_0x4faea7[0x0]))return!0x1;const _0x4b21bd=_0x2fd0ab(_0x30cdb6[0x0][_0x42fa('0x14a')],_0x42fa('0x58')),_0xc70f10=_0x2fd0ab(_0x4faea7[0x0]['attributes'],_0x42fa('0x58'));if(!_0x3647ed(_0x4b21bd,_0xc70f10))return!0x1;return!!_0x30cdb6['every'](_0x22204b=>_0x4faea7[_0x42fa('0x146')](_0x1d6882=>_0x22204b[_0x42fa('0xcf')]()[_0x42fa('0xa1')](_0x1d6882['getFirstRange']())))&&_0x4faea7[_0x42fa('0x1e')](_0x9fc9dd=>_0x30cdb6[_0x42fa('0x146')](_0x352dfa=>_0x9fc9dd[_0x42fa('0xcf')]()[_0x42fa('0xa1')](_0x352dfa[_0x42fa('0xcf')]())));}}[_0x42fa('0x63')](_0x432123){const _0x320483=Array[_0x42fa('0xc6')](_0x432123),_0x1a504f=this[_0x42fa('0xa9')]({'skipNotAttached':!0x0}),_0x4699c2=_0x1a504f[_0x42fa('0x52')](_0x4ba90f=>!_0x432123[_0x42fa('0x56')](_0x4ba90f)),_0x528d0a=new Map(_0x320483[_0x42fa('0x104')](_0x3bac0e=>[_0x3bac0e,this[_0x42fa('0x111')][_0x42fa('0x144')](_0x3bac0e[_0x42fa('0xbc')],_0x3bac0e['subType'],_0x42fa('0x12f'))])),_0x49888d=new Map(_0x1a504f[_0x42fa('0x104')](_0xc1f134=>[_0xc1f134,_0xc1f134[_0x42fa('0xd8')]()]));for(let _0x357f2d=0x0;_0x357f2d<_0x320483[_0x42fa('0xeb')];_0x357f2d++){if(_0x3cda7a(this,_0x320483[_0x357f2d],_0x320483,_0x357f2d+0x1))return!0x0;}for(let _0x4a8ac5=0x0;_0x4a8ac5<_0x320483['length'];_0x4a8ac5++){if(_0x3cda7a(this,_0x320483[_0x4a8ac5],_0x4699c2,0x0))return!0x0;}return!0x1;function _0x3cda7a(_0x1753bf,_0x3bac24,_0x538c59,_0x2ba0cd){for(let _0x35c570=_0x2ba0cd;_0x35c570<_0x538c59[_0x42fa('0xeb')];_0x35c570++){const _0x5b7052=_0x538c59[_0x35c570];if(_0x5b7052[_0x42fa('0xbc')]!==_0x3bac24[_0x42fa('0xbc')]||_0x5b7052[_0x42fa('0x140')]['id']!==_0x3bac24[_0x42fa('0x140')]['id']||_0x5b7052['subType']!==_0x3bac24[_0x42fa('0x11f')])continue;if(!Ft(_0x3bac24,_0x5b7052,[_0x42fa('0x58')]))continue;if(_0x42fa('0x142')==_0x3bac24[_0x42fa('0xbc')]&&_0x3bac24[_0x42fa('0xe6')][_0x42fa('0xcb')]!=_0x5b7052[_0x42fa('0xe6')][_0x42fa('0xcb')])continue;if(_0x42fa('0x142')==_0x3bac24[_0x42fa('0xbc')]&&_0x1753bf[_0x42fa('0x5b')](_0x3bac24[_0x42fa('0xe6')][_0x42fa('0x13c')]))continue;if('formatBlock'==_0x3bac24[_0x42fa('0xbc')]){const _0x3c2667=_0x1753bf[_0x42fa('0x12a')][_0x42fa('0x164')],_0x2da4ae=_0x3bac24[_0x42fa('0xbd')]();if(_0x2da4ae&&(_0x3c2667[_0x42fa('0x133')][_0x42fa('0xa4')](_0x2da4ae)||_0x3c2667[_0x42fa('0x133')][_0x42fa('0x81')](_0x2da4ae)))continue;}const _0x4719e9=_0x528d0a['get'](_0x3bac24),_0x312860=_0x49888d[_0x42fa('0x65')](_0x3bac24),_0x3de4e8=_0x49888d[_0x42fa('0x65')](_0x5b7052),_0x4ecceb=_0x3bac24['commentThread']&&_0x3bac24[_0x42fa('0xc4')]['length'],_0x2eb90e=_0x5b7052[_0x42fa('0xc4')]&&_0x5b7052[_0x42fa('0xc4')][_0x42fa('0xeb')];if(!_0x4ecceb&&_0x4719e9(_0x3de4e8,_0x312860))return _0x1753bf[_0x42fa('0x120')](_0x5b7052,_0x3bac24),_0x49888d['delete'](_0x3bac24),!0x0;if(!_0x2eb90e&&_0x4719e9(_0x312860,_0x3de4e8))return _0x1753bf['_joinSuggestions'](_0x3bac24,_0x5b7052),_0x49888d['delete'](_0x5b7052),!0x0;}return!0x1;}}[_0x42fa('0x120')](_0x112667,_0x94e269){if(_0x112667[_0x42fa('0xc')])for(const _0x56a673 of _0x94e269[_0x42fa('0xd8')]())_0x112667[_0x42fa('0x138')](_0x56a673);else{const _0x1cb287=_0x94e269[_0x42fa('0xcf')]()[_0x42fa('0xfd')];this[_0x42fa('0x8d')](_0x112667,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x112667[_0x42fa('0xcf')]()[_0x42fa('0x157')],_0x1cb287));}_0x94e269[_0x42fa('0x9c')]();}['_getMarkerAnnouncementText'](_0xa16a9,_0xeba3be){const _0x5c0eb1=_0xa16a9['startsWith']('format')||_0xa16a9[_0x42fa('0x10f')]('attribute')?'FORMATTING':_0xa16a9[_0x42fa('0x16f')]();return _0x1a255c(this[_0x42fa('0x12a')][_0x42fa('0x4')],_0xeba3be+'_'+_0x5c0eb1+_0x42fa('0xce'));}[_0x42fa('0x35')](){const _0x2f82c1=this[_0x42fa('0x12a')];_0x20325c(this['_model'],({left:_0x339ff6,entered:_0x3c3a1e})=>{const _0x51e335=[];for(const _0xa224d1 of _0x339ff6){const {group:_0x38ee1d,type:_0x6e0305}=this[_0x42fa('0xf4')](_0xa224d1[_0x42fa('0x4b')]);if(_0x42fa('0x46')===_0x38ee1d){_0x51e335[_0x42fa('0x98')](this[_0x42fa('0x75')](_0x6e0305,_0x42fa('0x95')));break;}}for(const _0xe8e273 of _0x3c3a1e){const {group:_0x375f90,type:_0x4e34d8}=this['_splitMarkerName'](_0xe8e273[_0x42fa('0x4b')]);if(_0x42fa('0x46')===_0x375f90){_0x51e335[_0x42fa('0x98')](this[_0x42fa('0x75')](_0x4e34d8,_0x42fa('0xc0')));break;}}_0x51e335[_0x42fa('0xeb')]&&_0x2f82c1['ui'][_0x42fa('0x19')][_0x42fa('0xda')]('trackChanges',_0x51e335[_0x42fa('0x12f')]('\x20'));});}[_0x42fa('0x117')](_0x4f1a57){if(this[_0x42fa('0x2f')])return!0x1;const _0x498da1=this[_0x42fa('0x12a')],_0x12b65e=_0x498da1[_0x42fa('0x164')]['document'][_0x42fa('0x1c')]['getChanges']();if(0x0==_0x12b65e['length'])return!0x1;const _0x442a50=[],_0x1e772f=_0x12b65e[_0x42fa('0x52')](_0x35c9eb=>_0x42fa('0x142')==_0x35c9eb[_0x42fa('0xbc')]),_0x31ed0c=_0x12b65e[_0x42fa('0x52')](_0x201836=>'insert'==_0x201836[_0x42fa('0xbc')]&&_0x42fa('0x57')!=_0x201836[_0x42fa('0x4b')]),_0x1956fa=_0x12b65e['filter'](_0x2c8226=>'remove'==_0x2c8226[_0x42fa('0xbc')]&&_0x42fa('0x57')!=_0x2c8226['name']);for(const _0x4dd9a1 of _0x1e772f)_0x442a50[_0x42fa('0x98')]({'key':_0x4dd9a1[_0x42fa('0x14e')],'newValue':_0x4dd9a1[_0x42fa('0x16e')],'oldValue':_0x4dd9a1[_0x42fa('0x118')],'range':Ut(_0x4dd9a1[_0x42fa('0xdd')],_0x498da1[_0x42fa('0x164')])});for(const _0x3082f8 of _0x31ed0c){const _0x33ed8e=_0x1956fa[_0x42fa('0x4e')](_0x326f0e=>_0x326f0e[_0x42fa('0xa8')]['isEqual'](_0x3082f8[_0x42fa('0xa8')]));_0x33ed8e&&_0x442a50[_0x42fa('0x98')]({'key':'$elementName','newValue':_0x3082f8[_0x42fa('0x4b')],'oldValue':_0x33ed8e[_0x42fa('0x4b')],'range':_0x498da1['model'][_0x42fa('0x9d')](_0x3082f8[_0x42fa('0xa8')][_0x42fa('0x1b')])});}return 0x0!=_0x442a50[_0x42fa('0xeb')]&&this[_0x42fa('0x1f')](_0x4f1a57,_0x442a50);}[_0x42fa('0x7e')](_0x5d4783){let _0x2a90b6=!0x1;const _0x5655fb=this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0xaa')]['differ'][_0x42fa('0x38')]()[_0x42fa('0x52')](_0x2bf84d=>_0x2bf84d[_0x42fa('0xe6')]['newRange']&&_0x2bf84d[_0x42fa('0x4b')][_0x42fa('0x10f')](_0x42fa('0x10')));for(const _0x31b697 of _0x5655fb){const {subType:_0x2e66ca,id:_0x2c02b8}=this[_0x42fa('0xf4')](_0x31b697['name']),_0x59b943=_0x2e66ca[_0x42fa('0x136')]('|')[0x0];for(const _0x4c52ec of this[_0x42fa('0xa9')]({'skipNotAttached':!0x0}))_0x4c52ec['id']!=_0x2c02b8&&_0x42fa('0x142')==_0x4c52ec[_0x42fa('0xbc')]&&_0x4c52ec['data']&&_0x4c52ec[_0x42fa('0xe6')][_0x42fa('0x13c')]==_0x59b943&&_0x4c52ec[_0x42fa('0xcf')]()['isIntersecting'](_0x31b697['data'][_0x42fa('0xe8')])&&(this['_reduceSuggestionAttributeRange'](_0x4c52ec,_0x31b697[_0x42fa('0xe6')]['newRange'],_0x5d4783),_0x2a90b6=!0x0);}return _0x2a90b6;}[_0x42fa('0x39')](_0x3a8c31){this[_0x42fa('0x12a')],(this[_0x42fa('0x2f')]=!0x0,_0x3a8c31());}[_0x42fa('0x13d')](_0x558dca){const _0x3685be=this[_0x42fa('0x5b')](_0x558dca),_0x522163=this[_0x42fa('0x5c')]['has'](_0x558dca);return _0x3685be||_0x522163;}['_reduceExistingSuggestions'](_0x129eed,_0x4f0833){if(0x0==_0x4f0833[_0x42fa('0xeb')])return!0x1;let _0x58ccef=!0x1;for(const _0x41eaca of _0x4f0833){const _0x4997ea=this[_0x42fa('0xb5')](_0x41eaca['range'],_0x42fa('0x142'))[_0x42fa('0x52')](_0x56a6c1=>!_0x56a6c1[_0x42fa('0xa0')][_0x42fa('0x41')])[_0x42fa('0x104')](_0x33a95a=>_0x33a95a['suggestion']),_0x162471=_0x1d9dc1({'newValue':_0x41eaca['newValue']});_0x4997ea[_0x42fa('0x52')](_0x2c51ec=>{const [_0x186a9a,_0x56c5fc]=_0x2c51ec[_0x42fa('0x11f')][_0x42fa('0x136')]('|');return _0x186a9a==_0x41eaca['key']&&_0x56c5fc!=_0x162471;})[_0x42fa('0x114')](_0x46c416=>{this[_0x42fa('0x12b')](_0x46c416,_0x41eaca[_0x42fa('0xdd')],_0x129eed),_0x58ccef=!0x0;});}return _0x58ccef;}['_reduceSuggestionAttributeRange'](_0x45739f,_0x2b3055,_0x6318c6){const _0x3c0522=_0x45739f[_0x42fa('0xcf')]()[_0x42fa('0x16a')](_0x2b3055);0x0!==_0x3c0522['length']?0x1!==_0x3c0522['length']?this['_breakSuggestionMarker'](_0x45739f,_0x2b3055[_0x42fa('0x157')],_0x2b3055['end']):this['_setSuggestionRange'](_0x45739f,_0x3c0522[0x0]):_0x6318c6[_0x42fa('0x110')](_0x45739f[_0x42fa('0x0')]());}}class Bt{constructor(_0x57f55b){this[_0x42fa('0xaf')]=_0x57f55b,this['_model']=_0x57f55b[_0x42fa('0x164')],this[_0x42fa('0xba')]=new Map(),this[_0x42fa('0xc2')]=new Map(),this[_0x42fa('0x101')]();}['buildSuggestion'](_0x41f786,_0x2e9ff3,_0x361862,_0x5c84db,_0x2dff66,_0x209336){return new _0x5839fd(this[_0x42fa('0xe3')],{'type':_0x41f786,'subType':_0x2e9ff3,'id':_0x361862,'author':_0x5c84db,'creator':_0x5c84db,'attributes':_0x2dff66,'onAttributesChange':_0x209336,'onAccept':(..._0x4337e5)=>this[_0x42fa('0x144')](_0x41f786,_0x2e9ff3,_0x42fa('0x7'))(..._0x4337e5),'onDiscard':(..._0x359dfd)=>this[_0x42fa('0x144')](_0x41f786,_0x2e9ff3,_0x42fa('0x51'))(..._0x359dfd)});}[_0x42fa('0x43')](_0x14bdae,_0x42a42a,_0x374df5,_0x1f8c9e){const _0x4e0036=_0x14bdae+':'+_0x42a42a+':'+_0x374df5;this[_0x42fa('0xba')][_0x42fa('0xb7')](_0x4e0036,_0x1f8c9e);}[_0x42fa('0x144')](_0x2a6658,_0x324d72,_0x477605){const _0x8ec7b2=_0x2a6658+':'+_0x324d72+':'+_0x477605;return this[_0x42fa('0xba')]['get'](_0x8ec7b2)||this['_defaultCallbacks']['get'](_0x2a6658+':'+_0x477605);}[_0x42fa('0x101')](){const _0x38380f=()=>!0x1,_0x23986e=_0x27d47f=>{_0x27d47f[_0x42fa('0x162')]((_0x27b701,_0x483979)=>_0x27b701[_0x42fa('0x157')][_0x42fa('0x15a')](_0x483979[_0x42fa('0x157')])?0x1:-0x1),this[_0x42fa('0xe3')]['change'](_0x239246=>{for(const _0x1e3521 of _0x27d47f){let _0x40ef5f;_0x40ef5f=_0x1e3521[_0x42fa('0xfd')][_0x42fa('0xa6')]&&_0x1e3521[_0x42fa('0xfd')][_0x42fa('0xc1')]==_0x1e3521[_0x42fa('0x157')][_0x42fa('0x1b')]?_0x239246[_0x42fa('0x12')](_0x1e3521[_0x42fa('0x157')][_0x42fa('0x1b')],'on'):_0x239246[_0x42fa('0x12')](_0x1e3521),this[_0x42fa('0xe3')]['deleteContent'](_0x40ef5f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x35d6b6=(_0x43d6a4,_0x2b8d05)=>{_0x2b8d05&&this['_model'][_0x42fa('0xf0')](_0x140687=>{const {commandName:_0x2cde07,commandParams:_0x419116=[]}=_0x2b8d05,_0x1f4853=_0x43d6a4['map'](_0x4e0c6d=>(Rt(_0x4e0c6d)&&(_0x4e0c6d=this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x4e0c6d['end'])),_0x4e0c6d))[_0x42fa('0x52')](_0xcf56da=>_0x42fa('0x8')!==_0xcf56da[_0x42fa('0xef')][_0x42fa('0x11d')]);if(_0x1f4853[_0x42fa('0xeb')]<0x1)return;const _0xa46f16=Array[_0x42fa('0xc6')](this[_0x42fa('0xe3')][_0x42fa('0xaa')][_0x42fa('0x83')]['getRanges']())[_0x42fa('0x104')](_0x3f41c3=>_0x3f221e['fromRange'](_0x3f41c3));_0x140687[_0x42fa('0xd1')](_0x1f4853);for(const _0x5d8321 of this[_0x42fa('0xaf')]['commands'][_0x42fa('0xd3')]())_0x5d8321[_0x42fa('0x5e')]();_0x419116[_0x42fa('0x98')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x42fa('0x54')](_0x2cde07,..._0x419116);const _0x4a542d=_0xa46f16['filter'](_0x15e1af=>_0x42fa('0x8')!=_0x15e1af[_0x42fa('0xef')]['rootName']);_0x4a542d[_0x42fa('0xeb')]>0x0&&_0x140687[_0x42fa('0xd1')](_0x4a542d);for(const _0x514dfa of _0xa46f16)_0x514dfa[_0x42fa('0x10c')]();});},_0x857449=(_0x195c69,_0x494d5f)=>0x1==_0x195c69[_0x42fa('0xeb')]&&0x1==_0x494d5f[_0x42fa('0xeb')]&&_0x195c69[0x0][_0x42fa('0xfd')][_0x42fa('0xa1')](_0x494d5f[0x0]['start']),_0x2b896c=(_0x57109e,_0x1fb6a0,_0x387941,_0x1ceeb7)=>Gt(_0x57109e,_0x1fb6a0,_0x387941,_0x1ceeb7,this['_model'])?[_0x57109e,_0x1fb6a0]:Gt(_0x1fb6a0,_0x57109e,_0x1ceeb7,_0x387941,this[_0x42fa('0xe3')])?[_0x1fb6a0,_0x57109e]:null;this[_0x42fa('0xc2')][_0x42fa('0xb7')]('insertion:accept',_0x38380f),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x49'),_0x23986e),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x8f'),_0x857449),this['_defaultCallbacks'][_0x42fa('0xb7')]('insertion:chain',_0x2b896c),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x7b'),_0x23986e),this[_0x42fa('0xc2')]['set'](_0x42fa('0x84'),_0x38380f),this['_defaultCallbacks'][_0x42fa('0xb7')](_0x42fa('0x161'),_0x857449),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x16'),_0x2b896c),this['_defaultCallbacks'][_0x42fa('0xb7')](_0x42fa('0x108'),_0x35d6b6),this['_defaultCallbacks'][_0x42fa('0xb7')]('formatInline:discard',_0x38380f),this['_defaultCallbacks']['set'](_0x42fa('0xea'),_0x857449),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x143'),_0x38380f),this[_0x42fa('0xc2')]['set'](_0x42fa('0x158'),_0x35d6b6),this[_0x42fa('0xc2')][_0x42fa('0xb7')]('formatBlock:discard',_0x38380f),this[_0x42fa('0xc2')]['set'](_0x42fa('0xfc'),_0x857449),this['_defaultCallbacks'][_0x42fa('0xb7')]('formatBlock:chain',_0x38380f),this[_0x42fa('0xc2')]['set'](_0x42fa('0x12d'),_0x38380f),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x23'),(_0x244766,_0x41e429)=>{if(!_0x41e429)return;const _0x406894=this[_0x42fa('0xaf')][_0x42fa('0x103')]['get'](p);this['_model'][_0x42fa('0xf0')](_0x8d7dac=>{if('$elementName'==_0x41e429[_0x42fa('0x13c')])for(const _0x9e1a0e of _0x244766){const _0x30f8fd=_0x9e1a0e['start'][_0x42fa('0x1b')],_0x2952a6=_0x41e429[_0x42fa('0xcb')];_0x8d7dac['rename'](_0x30f8fd,_0x2952a6);}else{if(_0x406894[_0x42fa('0x5b')](_0x41e429['key']))for(const _0x1df8ad of _0x244766)void 0x0!==_0x41e429['oldValue']?_0x8d7dac[_0x42fa('0x6c')](_0x41e429['key'],_0x41e429[_0x42fa('0xcb')],_0x1df8ad['start']['nodeAfter']):_0x8d7dac[_0x42fa('0x29')](_0x41e429[_0x42fa('0x13c')],_0x1df8ad[_0x42fa('0x157')]['nodeAfter']);else for(const _0x4613e4 of _0x244766)_0x41e429[_0x42fa('0xcb')]?_0x8d7dac[_0x42fa('0x6c')](_0x41e429[_0x42fa('0x13c')],_0x41e429[_0x42fa('0xcb')],_0x4613e4):_0x8d7dac[_0x42fa('0x29')](_0x41e429[_0x42fa('0x13c')],_0x4613e4);}});}),this[_0x42fa('0xc2')][_0x42fa('0xb7')]('attribute:join',_0x857449);}}function xt(_0x4e3eb2,_0x3f9fd8,_0x1ca750){for(const _0x4107f7 of _0x3f9fd8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4107f7[_0x42fa('0xef')]==_0x4107f7)return!0x1;if(!_0x1ca750[_0x42fa('0xb8')](_0x4107f7))return!0x1;if(_0x4e3eb2['isObject'](_0x4107f7)||_0x4e3eb2[_0x42fa('0x81')](_0x4107f7))return!0x0;}return!0x1;}function Rt(_0x5c2629){return _0x5c2629[_0x42fa('0xfd')][_0x42fa('0xc1')]==_0x5c2629['start'][_0x42fa('0x1b')]&&_0x5c2629['end']['isAtStart'];}function Tt(_0x41777e,_0x4591a7,_0x56302a,_0x474918){const _0x577bb3=_0x1c66ef=>!_0x1c66ef[_0x42fa('0x3b')]['is'](_0x42fa('0x16d'))&&!_0x474918['isObject'](_0x1c66ef[_0x42fa('0x3b')]),_0x4aa409=_0x41777e[_0x42fa('0x157')][_0x42fa('0x77')](_0x577bb3),_0x342f12=_0x41777e[_0x42fa('0xfd')][_0x42fa('0x77')](_0x577bb3,{'direction':_0x42fa('0xdf')});return(!_0x41777e[_0x42fa('0x157')][_0x42fa('0xa1')](_0x4aa409)||!_0x41777e[_0x42fa('0xfd')]['isEqual'](_0x342f12))&&(_0x4aa409[_0x42fa('0x15a')](_0x342f12)?_0x56302a[_0x42fa('0x93')](_0x4591a7,{'range':_0x56302a[_0x42fa('0x116')](_0x4aa409,_0x342f12)}):_0x56302a[_0x42fa('0x110')](_0x4591a7),!0x0);}function Et(_0x351918){return _0x1d9dc1(_0x351918);}function Vt(_0x35ef8c){const _0x388796=_0x35ef8c['start'][_0x42fa('0x1b')];return _0x388796&&_0x388796['is'](_0x42fa('0xac'));}function Ut(_0x528557,_0xc3d5cf){return null==_0x528557['end']['nodeBefore']&&_0x528557[_0x42fa('0xfd')][_0x42fa('0xc1')]==_0x528557[_0x42fa('0x157')][_0x42fa('0x1b')]?Ot(_0x528557[_0x42fa('0x157')]['nodeAfter'],_0xc3d5cf):_0x528557;}function Ot(_0x2d7368,_0x1df092){const _0x39f818=_0x1df092[_0x42fa('0x133')]['isObject'](_0x2d7368)||_0x1df092[_0x42fa('0x133')]['isSelectable'](_0x2d7368);return _0x1df092[_0x42fa('0x116')](_0x1df092['createPositionAt'](_0x2d7368,'before'),_0x39f818?_0x1df092[_0x42fa('0x5f')](_0x2d7368):_0x1df092['createPositionAt'](_0x2d7368,_0x42fa('0xfd')));}function Gt(_0x42b038,_0x5bbbd2,_0x112582,_0x436cbc,_0x2d89bc){if(!Ft(_0x42b038,_0x5bbbd2))return!0x1;if(_0x112582['end']['isEqual'](_0x436cbc[_0x42fa('0x157')]))return!0x0;if(_0x42b038[_0x42fa('0xbc')]!=_0x5bbbd2['type'])return!0x1;if(!_0x112582[_0x42fa('0xfd')][_0x42fa('0x5a')](_0x436cbc[_0x42fa('0x157')]))return!0x1;const _0x597f39=_0x2d89bc[_0x42fa('0x116')](_0x112582[_0x42fa('0xfd')],_0x436cbc[_0x42fa('0x157')])[_0x42fa('0xa')]();for(const _0x38c3a5 of _0x597f39)if([_0x42fa('0xfe'),_0x42fa('0x100')][_0x42fa('0x59')](_0x38c3a5[_0x42fa('0xbc')])&&_0x2d89bc['schema'][_0x42fa('0x81')](_0x38c3a5[_0x42fa('0x3b')]))return!0x1;return!0x0;}function Ft(_0x3f51ac,_0x3b1425,_0x15067e=[]){return!(!_0x3f51ac[_0x42fa('0x67')]||!_0x3b1425[_0x42fa('0x67')])&&_0x3647ed(_0x2fd0ab(_0x3f51ac[_0x42fa('0x14a')],_0x15067e),_0x2fd0ab(_0x3b1425['attributes'],_0x15067e));}function Pt(_0x49d89c,_0x565194){const _0x21e608=Lt(_0x49d89c['attributes']),_0x181c25=Lt(_0x565194);if(!_0x49d89c[_0x42fa('0x67')])return!0x1;for(const _0x44ed89 of Object[_0x42fa('0x53')](_0x181c25))if(!_0x3647ed(_0x21e608[_0x44ed89],_0x181c25[_0x44ed89]))return!0x1;return!0x0;}function Lt(_0x3caa2d){const _0x26d413=Object[_0x42fa('0x8b')]({},_0x3caa2d);return delete _0x26d413[_0x42fa('0x3d')],delete _0x26d413[_0x42fa('0x85')],_0x26d413;}