@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240203.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/build/revision-history.js +1 -1
- package/package.json +5 -5
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5766=['createPositionAfter','_markers','repository','keys','adapter','_getViewJson','merge','PENDING_ACTION_REVISION_HISTORY','key','markerToData','_getFromVersion','setRevisionData','path','getLatestVersion','createPositionFromPath','_makeIdsRoot','graveyardPosition','creator','setSource','documentFragment','hasContent','_update','createRangeIn','addRevision','_handleSplitOperation','update','rootsAttributes','_savedMetaData','locale','addRootAttribute','fromEntries','offsetSize','newRange','initialData','resolve','_getPreviousFrom','revisionHistory.resumeUnsavedRevision','createdAt','isEqual','getData','getChild','_getState','map','set','collaboration.channelId','get','deletion','plugins','_initialRevisionId','finally','getChildren','deletions','_cloneOperation','_operations','getAttribute','_getVidAttributeName','element','_diffRootsAttributes','_removePendingAction','sendBufferedUpdates','size','_generateTape','diffData','_markChanges','push','vid_end','afterInit','_startingRevisionId','forEach','reverse','getTransformedByOperation','from','insertionPosition','_revisionId','getTime','source','$text','isAdd','nodes','_lastTo','_handleOperation','removeRootAttribute','createPositionAt','_touchedRoots','_handleMergeOperation','_baseRootsAttributes','_createInitialRevision','fromVersion','data','getAncestors','createPositionBefore','editing','string','vid','toVersion','end','_findInsertionIndex','define','_touched','authors','RevisionTracker','_source','init','getOperation','_execute','delete','length','_handleRootOperation','revision-end','revision:','_isPendingUpdate','pluginName','elementStart','userId','currentRevision','_insertChild','slice','config','getRoot','PendingActions','baseVersion','ready','_fixOperation','isReady','name','$graveyard','getCurrentRevisionId','attributes','clear','_touchedMarkers','_makeModelFromViewString','_lastFrom','getUser','Initial\x20revision','view','_loadRevisionData','_makeRevision','startsWith','for','_baseRoots','getRevisionRootsAttributes','add','_revisionDataBuilder','changeRootAttribute','version','document','_isAttached','saveRevision','authorsIds','_addPendingAction','tableCell','getRevisionDocumentData','childCount','remove','split','_bufferUpdate','_pendingAction','children','affectsData','previousPosition','splitPosition','detachRoot','_processRootBeforeSave','_copyMarkers','conversion','revision','sort','insert','_applyOperations','Users','vid_start','howMany','bind','updateRevisions','position','filter','dataToMarker','parent','model','stickiness','attributesAfter','_startingVersion','_bufferedUpdates','_loadState','values','getWalker','initial','getNodeByPath','requires','item','clone','_fixRange','_fixPosition','_setConversion','_handleMoveOperation','useFillerType','buildRevisionData','editor-initial-data-replaced-with-revision-data','_appendChild','_saveMetaData','_baseIdsRoots','_diffRoots','shift','getOperations','has','rootName','_createFromRanges','getRevisions','history','_isInit','_handleInsertOperation','isEnabled','_handleRootAttributeOperation','markers','creatorId','_authorId','isAttached','range','_createCurrentRevision','some','_setAttribute','loadState','addRoot','insertions','targetPosition','marker','dataDowncast','_calculateMetaData','root','nodeAfter','_continueCurrentRevision','type','insertion','default','getRevision','attachChange','toModel','_loadedStateData','elementEnd','reinsert','processor','start','find','_idsRoots','addRevisionData','_reset','_clone','_prepareViewToSave','editor','offset','getAttributes','then','sourcePosition','_removeRevisionMarkers','_handleMarkerOperation','keepParagraph','_replaceEditorDataWithRevisionData','parse'];(function(_0x740e1d,_0x57663a){const _0x122548=function(_0x49aede){while(--_0x49aede){_0x740e1d['push'](_0x740e1d['shift']());}};_0x122548(++_0x57663a);}(_0x5766,0x82));const _0x1225=function(_0x740e1d,_0x57663a){_0x740e1d=_0x740e1d-0x0;let _0x122548=_0x5766[_0x740e1d];return _0x122548;};import{Users as _0x42fbf5}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x2b071e,PendingActions as _0x1a15ef}from'ckeditor5/src/core.js';import{logWarning as _0x39515f,uid as _0x326333}from'ckeditor5/src/utils.js';import{Position as _0x225867,Range as _0x379084,Element as _0xc8ece,DocumentFragment as _0x4e8298,ViewText as _0x5276d3,ViewElement as _0x50fae2,ViewContainerElement as _0x5a518a,ViewAttributeElement as _0x28b7e0,ViewEmptyElement as _0xf7c68c,ViewRawElement as _0x17aae3,ViewUIElement as _0x18f8d4,ViewDocumentFragment as _0xf4dc88}from'ckeditor5/src/engine.js';import _0x297954 from'./revisionsrepository.js';import{getTranslation as _0x3dfefa}from'./utils/common-translations.js';import{cloneDeep as _0x1baa21,isEqual as _0x3e5581}from'lodash-es';const B={'c':_0x5a518a,'a':_0x28b7e0,'e':_0xf7c68c,'r':_0x17aae3,'u':_0x18f8d4};export default class l extends _0x2b071e{static get[_0x1225('0xef')](){return _0x1225('0xe4');}static get[_0x1225('0x3a')](){return[_0x42fbf5,_0x297954,_0x1a15ef];}constructor(_0x4192ff){super(_0x4192ff),this['adapter']=null,this[_0x1225('0xf2')]=null,this[_0x1225('0xc')]=new H(this['editor']),this[_0x1225('0xb0')]=this[_0x1225('0x76')]['config'][_0x1225('0xad')](_0x1225('0xac'))||_0x1225('0x38'),this['_bufferedUpdates']=new Map(),this[_0x1225('0x6b')]=null;const _0x58c7d3=_0x326333();this[_0x1225('0xe5')]={'history':this[_0x1225('0x76')][_0x1225('0x30')]['document']['history'],'getLatestVersion':()=>Promise[_0x1225('0xa2')](this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')][_0x1225('0xe')]),'getCurrentRevisionId':()=>_0x58c7d3},this[_0x1225('0xab')](_0x1225('0xfb'),!0x1),this['set'](_0x1225('0x51'),!0x0),this['set']('_isPendingUpdate',!0x1),this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xe1')](_0x1225('0xa4'),!0x0),this[_0x1225('0x76')]['conversion'][_0x1225('0x8')]('upcast')[_0x1225('0x2e')]({'view':_0x1225('0x23')});}[_0x1225('0xe6')](){this[_0x1225('0x82')]=this[_0x1225('0x76')][_0x1225('0xaf')]['get']('RevisionsRepository'),this[_0x1225('0x3f')](),this['editor'][_0x1225('0xd8')]['on'](_0x1225('0xf9'),()=>{const _0x194f7c=this[_0x1225('0x82')]['getRevision'](0x0),_0x3c3315=_0x194f7c&&null===_0x194f7c[_0x1225('0x91')]?_0x194f7c:null;if(this[_0x1225('0x64')]=!!_0x3c3315&&this['editor']['config']['get'](_0x1225('0xa4')),this['editor'][_0x1225('0xaf')]['has']('RealTimeCollaborationClient')){const _0xc21d41=this[_0x1225('0xe5')]['getCurrentRevisionId'](),_0x661083=this[_0x1225('0x82')]['getRevision'](_0xc21d41);if(_0x661083)this[_0x1225('0x33')]=_0x661083['fromVersion'],this[_0x1225('0x64')]=!0x1;else{const _0x158df7=this[_0x1225('0xe5')]['history'][_0x1225('0xb5')][_0x1225('0x70')](_0x187391=>!_0x187391[_0x1225('0x4f')]),_0x45482d=_0x158df7?_0x158df7[_0x1225('0xf8')]:this['_source'][_0x1225('0x4e')][_0x1225('0xe')];_0x194f7c?(_0x194f7c['toVersion']<_0x45482d&&_0x194f7c[_0x1225('0x95')]({'toVersion':_0x45482d}),this[_0x1225('0x64')]?(this[_0x1225('0xe5')]['getCurrentRevisionId']=()=>_0x3c3315['id'],this[_0x1225('0x33')]=_0x3c3315[_0x1225('0xd7')]):(this['_startingVersion']=_0x194f7c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x45482d,this[_0x1225('0x64')]=!0x1);}}else _0x3c3315&&(this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')]['history'][_0x1225('0xe')]=Math['max'](_0x3c3315[_0x1225('0xde')],this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')][_0x1225('0x4e')][_0x1225('0xe')]),_0x3c3315[_0x1225('0xd7')]===_0x3c3315[_0x1225('0xde')]?(0x0!==_0x3c3315[_0x1225('0xd7')]&&(this[_0x1225('0xe5')][_0x1225('0xfe')]=()=>_0x3c3315['id']),this[_0x1225('0x64')]=!0x1):this['_continueCurrentRevision']&&(this[_0x1225('0xe5')][_0x1225('0xfe')]=()=>_0x3c3315['id'],this[_0x1225('0x33')]=_0x3c3315[_0x1225('0xd7')])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor'][_0x1225('0x30')]['document']['version']);this[_0x1225('0xc')][_0x1225('0xe6')](this[_0x1225('0xe5')][_0x1225('0x4e')]),this[_0x1225('0xd6')](this[_0x1225('0x33')]),this[_0x1225('0x58')](this[_0x1225('0x33')]),this[_0x1225('0x84')]&&this['sendBufferedUpdates']();}),this[_0x1225('0x2a')](_0x1225('0xfb'))['to'](this,_0x1225('0xee'),_0x27c815=>!_0x27c815);}async[_0x1225('0xc2')](){if(this['repository'][_0x1225('0xea')]>0x0){const _0x2decdc=this['repository'][_0x1225('0x68')](0x0),_0x5480b4=await this[_0x1225('0x15')](_0x2decdc),_0x1b50ac=await this['getRevisionRootsAttributes'](_0x2decdc);this[_0x1225('0x7e')](_0x5480b4,_0x1b50ac);}}[_0x1225('0x92')](_0x1cbb20){this[_0x1225('0xe5')]=_0x1cbb20;}async[_0x1225('0x99')](){const _0x57865c=await this[_0x1225('0xe5')]['getLatestVersion']();if(_0x57865c>this[_0x1225('0xf2')][_0x1225('0xde')]){await this[_0x1225('0x35')]();const _0x2a7743=this[_0x1225('0x42')]({'revision':this[_0x1225('0xf2')],'to':_0x57865c});_0x2a7743['authors']=_0x2a7743[_0x1225('0x12')]['map'](_0xba382f=>this[_0x1225('0x76')][_0x1225('0xaf')]['get'](_0x1225('0x27'))['getUser'](_0xba382f)),this[_0x1225('0xf2')][_0x1225('0x95')](_0x2a7743);}}async[_0x1225('0x35')](){this[_0x1225('0x64')]&&!this['_loadedStateData']&&(await this[_0x1225('0x5')](this[_0x1225('0xf2')]),this[_0x1225('0xc')][_0x1225('0x5b')](this[_0x1225('0xf2')]),this['_loadedStateData']={'fromVersion':this[_0x1225('0xf2')][_0x1225('0xd7')],'authors':this[_0x1225('0xf2')][_0x1225('0xe3')]['slice']()});}async[_0x1225('0x11')](_0x537f79={},_0x5ca4b9=null){const _0x2ea04f=[];await this[_0x1225('0x35')](),this[_0x1225('0x64')]=!0x1,_0x5ca4b9>this[_0x1225('0xf2')][_0x1225('0xde')]&&(_0x5ca4b9=null),null===_0x5ca4b9&&(_0x5ca4b9=await this[_0x1225('0xe5')][_0x1225('0x8d')]());const _0x4242fc=this[_0x1225('0x8a')](_0x5ca4b9),_0x8e5993=this[_0x1225('0x42')]({'from':_0x4242fc,'to':_0x5ca4b9});if(this[_0x1225('0xf2')]['toVersion']<_0x5ca4b9){const _0x16d3ec=this['buildRevisionData']({'revision':this[_0x1225('0xf2')],'from':_0x5ca4b9,'to':_0x5ca4b9});_0x16d3ec[_0x1225('0xe3')]=[],_0x16d3ec[_0x1225('0x12')]=[],_0x16d3ec['id']=this[_0x1225('0xf2')]['id'],this[_0x1225('0xf2')]['_update'](_0x16d3ec,!0x0),delete _0x16d3ec[_0x1225('0xe3')],_0x2ea04f[_0x1225('0xc0')](_0x16d3ec);}_0x537f79[_0x1225('0x54')]=this[_0x1225('0x76')]['plugins'][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x537f79[_0x1225('0xfc')]=_0x537f79['name']||null,_0x537f79['id']=_0x537f79['id']||_0x326333(),_0x537f79={..._0x537f79,..._0x8e5993};const _0x1edc9e=this[_0x1225('0x72')](_0x537f79);_0x2ea04f[_0x1225('0xc0')](_0x537f79);const _0x3fa7ec=this[_0x1225('0x82')]['getIndex'](_0x1edc9e);if(0x0!==_0x3fa7ec){const _0x40e8e2=this['repository'][_0x1225('0x68')](_0x3fa7ec-0x1);if(_0x40e8e2[_0x1225('0xd7')]!==_0x5ca4b9){const _0x2b339e=this[_0x1225('0xc')][_0x1225('0xa7')](_0x5ca4b9,_0x40e8e2['toVersion']),_0x2bf483={'id':_0x40e8e2['id'],'diffData':_0x2b339e[_0x1225('0xbe')],'authorsIds':_0x2b339e[_0x1225('0x12')],'authors':_0x2b339e[_0x1225('0x12')][_0x1225('0xaa')](_0x72af18=>this[_0x1225('0x76')]['plugins'][_0x1225('0xad')](_0x1225('0x27'))[_0x1225('0x2')](_0x72af18)),'fromVersion':_0x5ca4b9};_0x40e8e2===this['currentRevision']&&(_0x2bf483[_0x1225('0xa5')]=new Date(_0x537f79['createdAt'][_0x1225('0xca')]()+0xa)),_0x40e8e2['_update'](_0x2bf483,!0x0),delete _0x2bf483['authors'],_0x2ea04f[_0x1225('0xc0')](_0x2bf483);}}if(this[_0x1225('0x84')]){for(const _0x15b196 of _0x2ea04f)this[_0x1225('0x19')](_0x15b196['id'],_0x15b196,!0x0);this['sendBufferedUpdates']();}return _0x1edc9e;}['addRevisionData'](_0x5be383){const _0x57d0aa=this[_0x1225('0x82')]['createRevision'](_0x5be383);return this[_0x1225('0x84')]&&_0x57d0aa['on']('_update',(_0x704e96,_0x16b38d,_0x463dae)=>{_0x463dae||(this[_0x1225('0x19')](_0x16b38d['id'],_0x16b38d,!0x0),this[_0x1225('0xbb')]());}),this['repository'][_0x1225('0x97')](_0x57d0aa,this[_0x1225('0xe0')](_0x57d0aa)),_0x57d0aa;}async[_0x1225('0x15')](_0x9527de){await this['_loadRevisionData'](_0x9527de);const _0x1623a7={};for(const _0x2fba40 in _0x9527de[_0x1225('0xbe')]){if(_0x9527de[_0x1225('0xbe')][_0x2fba40]['attachChange']&&!_0x9527de['diffData'][_0x2fba40]['attachChange']['isAttached'])continue;const _0x4d3283=this['_removeRevisionMarkers'](JSON[_0x1225('0x7f')](_0x9527de['diffData'][_0x2fba40]['insertions'])),_0x316ee6=this[_0x1225('0x76')]['editing'][_0x1225('0x4')][_0x1225('0xf')],_0x53ba9a=new _0xf4dc88(_0x316ee6,_0x4d3283[_0x1225('0xaa')](_0x296898=>J(_0x296898,this[_0x1225('0x76')])));this[_0x1225('0x76')][_0x1225('0xd8')][_0x1225('0x6e')]['useFillerType']('marked'),_0x1623a7[_0x2fba40]=this['editor'][_0x1225('0xd8')][_0x1225('0x6e')]['toData'](_0x53ba9a),this[_0x1225('0x76')][_0x1225('0xd8')]['processor'][_0x1225('0x41')](_0x1225('0x67'));}return _0x1623a7;}async[_0x1225('0xa')](_0x15f1a0){await this[_0x1225('0x5')](_0x15f1a0);const _0x5c077e={};for(const _0x33c6a9 in _0x15f1a0['diffData'])_0x15f1a0[_0x1225('0xbe')][_0x33c6a9][_0x1225('0x69')]&&!_0x15f1a0[_0x1225('0xbe')][_0x33c6a9][_0x1225('0x69')][_0x1225('0x56')]||(_0x5c077e[_0x33c6a9]=_0x15f1a0[_0x1225('0xbe')][_0x33c6a9][_0x1225('0x32')]||{});return _0x5c077e;}['sendBufferedUpdates'](){if(0x0===this[_0x1225('0x34')][_0x1225('0xbc')])return;if(this['_isPendingUpdate'])return;let _0x409d6d=Array['from'](this[_0x1225('0x34')][_0x1225('0x36')]());this[_0x1225('0x34')][_0x1225('0x100')]();for(let _0x4534d5=0x0;_0x4534d5<_0x409d6d[_0x1225('0xea')];_0x4534d5++){const _0x14501c=_0x409d6d[_0x4534d5];let _0xb8676f=!0x1;for(const _0x541b71 of Object[_0x1225('0x83')](_0x14501c))void 0x0===_0x14501c[_0x541b71]?delete _0x14501c[_0x541b71]:'id'!==_0x541b71&&(_0xb8676f=!0x0);_0xb8676f||(_0x409d6d[_0x4534d5]=null);}if(_0x409d6d=_0x409d6d[_0x1225('0x2d')](_0x5052f5=>null!==_0x5052f5),!_0x409d6d['length'])return;for(let _0x586685=0x0;_0x586685<_0x409d6d['length'];_0x586685++){const _0x5e061d=_0x409d6d[_0x586685];void 0x0!==_0x5e061d[_0x1225('0xd7')]&&void 0x0===_0x5e061d[_0x1225('0xde')]&&(_0x5e061d[_0x1225('0xde')]=this[_0x1225('0x82')]['getRevision'](_0x5e061d['id'])['toVersion']),void 0x0!==_0x5e061d[_0x1225('0xde')]&&void 0x0===_0x5e061d[_0x1225('0xd7')]&&(_0x5e061d[_0x1225('0xd7')]=this[_0x1225('0x82')][_0x1225('0x68')](_0x5e061d['id'])['fromVersion']);}const _0x459945=this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xad')](_0x1225('0xac'));this[_0x1225('0xee')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x1225('0x2b')](_0x409d6d,_0x459945)[_0x1225('0xb1')](()=>{this['_isPendingUpdate']=!0x1;})[_0x1225('0x79')](_0x1756f1=>{if(_0x1756f1)for(const _0x47b21b of _0x1756f1)this['setRevisionData']({'id':_0x47b21b['id'],'createdAt':_0x47b21b[_0x1225('0xa5')]});this[_0x1225('0xba')](),this[_0x1225('0xbb')]();});}[_0x1225('0x7e')](_0x1e42ca,_0x5e3cfa){let _0x55e83=this[_0x1225('0x76')][_0x1225('0xf5')]['get']('initialData'),_0x233d12=this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xad')](_0x1225('0x9a'));if(void 0x0===_0x55e83){_0x55e83={};for(const _0x331131 of this[_0x1225('0x76')]['model'][_0x1225('0xf')]['getRootNames']())_0x55e83[_0x331131]='';}if(_0x1225('0xdc')==typeof _0x55e83&&(_0x55e83={'main':_0x55e83}),void 0x0===_0x233d12){_0x233d12={};for(const _0x91e4e4 of this['editor']['model'][_0x1225('0xf')]['getRootNames']())_0x233d12[_0x91e4e4]={};}let _0x4b461e=!0x1;const _0x33ee09=Object[_0x1225('0x83')](_0x55e83),_0x87aed4=Object[_0x1225('0x83')](_0x1e42ca);for(const _0x38ef3b of _0x33ee09){if(_0x55e83[_0x38ef3b]!==_0x1e42ca[_0x38ef3b]&&''!==_0x55e83[_0x38ef3b]['trim']()){_0x4b461e=!0x0;break;}if(!_0x3e5581(_0x233d12[_0x38ef3b],_0x5e3cfa[_0x38ef3b])&&Object[_0x1225('0x83')](_0x233d12[_0x38ef3b])[_0x1225('0xea')]>0x0){_0x4b461e=!0x0;break;}}_0x4b461e||(_0x4b461e=_0x87aed4[_0x1225('0x59')](_0x412846=>!this[_0x1225('0x76')]['model'][_0x1225('0xf')][_0x1225('0xf6')](_0x412846))),_0x4b461e&&_0x39515f(_0x1225('0x43'),{'editorData':_0x55e83,'editorRootsAttributes':_0x233d12,'revisionData':_0x1e42ca,'revisionRootsAttributes':_0x5e3cfa}),this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xab')](_0x1225('0xa1'),_0x1e42ca),this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xab')]('rootsAttributes',_0x5e3cfa);}[_0x1225('0x13')](){if(!this[_0x1225('0x1a')]){const _0xe08907=this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0xf7'));this[_0x1225('0x1a')]=_0xe08907[_0x1225('0xb')](_0x3dfefa(this[_0x1225('0x76')][_0x1225('0x9c')],_0x1225('0x87')));}}[_0x1225('0xba')](){this['_pendingAction']&&(this['editor'][_0x1225('0xaf')][_0x1225('0xad')]('PendingActions')[_0x1225('0x17')](this[_0x1225('0x1a')]),this['_pendingAction']=null);}[_0x1225('0xe0')](_0x1ac152){const _0x222859=this[_0x1225('0x82')][_0x1225('0x4d')]();_0x222859[_0x1225('0xc5')]();let _0xe1664a=0x0;for(;_0xe1664a<_0x222859[_0x1225('0xea')];){const _0x50d87e=_0x222859[_0xe1664a];if(_0x50d87e===this[_0x1225('0xf2')]){_0xe1664a++;continue;}if(_0x50d87e['id']===this['_initialRevisionId'])break;const _0xee30d1=_0x1ac152[_0x1225('0xde')]-_0x50d87e[_0x1225('0xde')]||_0x1ac152[_0x1225('0xd7')]-_0x50d87e[_0x1225('0xd7')];if(_0xee30d1>0x0)break;if(_0xee30d1<0x0)_0xe1664a++;else{if(!_0x1ac152['creator']&&_0x50d87e[_0x1225('0x91')])break;if(_0x50d87e[_0x1225('0x91')]||!_0x1ac152[_0x1225('0x91')]){if(_0x1ac152[_0x1225('0xa5')]>_0x50d87e['createdAt'])break;_0xe1664a++;}else _0xe1664a++;}}return _0xe1664a;}[_0x1225('0x8b')](_0x39de83){const _0x4db4bf=this[_0x1225('0x82')][_0x1225('0x68')](_0x39de83['id']);if(_0x39de83['createdAt']&&(_0x39de83['createdAt']=new Date(_0x39de83[_0x1225('0xa5')])),_0x39de83[_0x1225('0x12')]){const _0x2cb8b2=this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'));_0x39de83[_0x1225('0xe3')]=_0x39de83[_0x1225('0x12')][_0x1225('0xaa')](_0x477a4e=>_0x2cb8b2[_0x1225('0x2')](_0x477a4e));}_0x4db4bf[_0x1225('0x95')](_0x39de83,!0x0);}[_0x1225('0x42')]({revision:_0x3ee73d=null,from:_0x313b03=null,to:_0x1b6a30=null}){_0x313b03=null!==_0x313b03?_0x313b03:_0x3ee73d[_0x1225('0xd7')],_0x1b6a30=null!==_0x1b6a30?_0x1b6a30:_0x3ee73d['toVersion'];const _0x31fcf6=this['_revisionDataBuilder']['getData'](_0x313b03,_0x1b6a30),_0x1af05f={'diffData':_0x31fcf6[_0x1225('0xbe')],'authorsIds':_0x31fcf6['authorsIds'],'fromVersion':_0x313b03,'toVersion':_0x1b6a30};if(!_0x3ee73d||_0x1b6a30!==_0x3ee73d[_0x1225('0xde')]){const _0x384660=_0x1b6a30-0x1,_0x25932e=this[_0x1225('0xe5')][_0x1225('0x4e')][_0x1225('0xe7')](_0x384660);_0x1af05f['createdAt']=_0x25932e&&_0x25932e[_0x1225('0xa5')]||new Date();}if(this[_0x1225('0x6b')]&&_0x313b03===this['_loadedStateData']['fromVersion'])for(const _0x34ec06 of this[_0x1225('0x6b')]['authors'])_0x1af05f[_0x1225('0x12')]['includes'](_0x34ec06['id'])||_0x1af05f[_0x1225('0x12')][_0x1225('0xc0')](_0x34ec06['id']);return _0x1af05f;}[_0x1225('0x5')](_0x2eeaa3){if(!_0x2eeaa3||_0x2eeaa3[_0x1225('0xbe')])return Promise[_0x1225('0xa2')]();{const _0x563c07=this[_0x1225('0x76')]['config'][_0x1225('0xad')](_0x1225('0xac'));return this[_0x1225('0x84')][_0x1225('0x68')]({'channelId':_0x563c07,'revisionId':_0x2eeaa3['id']})['then'](_0x3ff580=>{_0x2eeaa3[_0x1225('0xbe')]=_0x3ff580['diffData'];});}}[_0x1225('0x19')](_0xdf3dd6,_0x48509a,_0x316a14){if(this[_0x1225('0x34')]['has'](_0xdf3dd6)){const _0x3157df=this[_0x1225('0x34')]['get'](_0xdf3dd6);_0x48509a=_0x316a14?{..._0x3157df,..._0x48509a}:{..._0x48509a,..._0x3157df};}this[_0x1225('0x34')]['set'](_0xdf3dd6,_0x48509a);}[_0x1225('0x8a')](_0x1bae7b){const _0x25389a=this[_0x1225('0x82')][_0x1225('0x4d')]();_0x25389a[_0x1225('0xc5')](),_0x25389a[_0x1225('0x48')]();const _0x1807b0=_0x25389a['find'](_0x48144f=>_0x48144f[_0x1225('0xde')]<=_0x1bae7b)[_0x1225('0xde')];return _0x1807b0<this[_0x1225('0x33')]?this[_0x1225('0x33')]:_0x1807b0;}[_0x1225('0xd6')](_0x1847b8){const _0x19684c=this[_0x1225('0x82')][_0x1225('0x68')](this[_0x1225('0x82')]['length']-0x1);if(_0x19684c)this[_0x1225('0xb0')]=_0x19684c['id'];else{const _0xb774=!this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')]['roots']['find'](_0x3b2bea=>this['editor'][_0x1225('0x30')][_0x1225('0x94')](_0x3b2bea)),_0x4b1e52=this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x8fadb3=_0x3dfefa(this['editor']['locale'],_0xb774?'Empty\x20document':_0x1225('0x3'));this['_makeRevision']({'from':_0x1847b8,'to':_0x1847b8,'id':this[_0x1225('0xb0')],'name':_0x8fadb3,'creatorId':_0x4b1e52});}}[_0x1225('0x58')](_0x42371f){const _0x5f49ef=this['_source'][_0x1225('0xfe')]();this[_0x1225('0xf2')]=this[_0x1225('0x82')][_0x1225('0x68')](_0x5f49ef),this[_0x1225('0xf2')]||(this['currentRevision']=this[_0x1225('0x6')]({'from':_0x42371f,'to':_0x42371f,'id':_0x5f49ef,'name':'','creatorId':null}));}[_0x1225('0x6')]({name:_0x3787f1,from:_0x42256c,to:_0x35de23,creatorId:_0x201e74,id:_0x3c63fd}){const _0x2ed4e7=this['buildRevisionData']({'from':_0x42256c,'to':_0x35de23});_0x2ed4e7[_0x1225('0xfc')]=_0x3787f1,_0x2ed4e7[_0x1225('0x54')]=_0x201e74,_0x2ed4e7['id']=_0x3c63fd;const _0x578ee2=this['addRevisionData'](_0x2ed4e7);return this[_0x1225('0x84')]&&this[_0x1225('0x19')](_0x2ed4e7['id'],_0x2ed4e7,!0x0),_0x578ee2;}[_0x1225('0x3f')](){this[_0x1225('0x76')][_0x1225('0x22')][_0x1225('0x8')](_0x1225('0x60'))[_0x1225('0x89')]({'model':_0x1225('0x23')});}[_0x1225('0x7b')](_0x3cbc84){return(_0x3cbc84=_0x3cbc84[_0x1225('0x2d')](_0x55b9e8=>!_0x55b9e8[_0x1225('0xfc')]||'revision-start'!==_0x55b9e8[_0x1225('0xfc')]&&_0x1225('0xec')!==_0x55b9e8[_0x1225('0xfc')]))[_0x1225('0xc4')](_0xeed76c=>{_0x1225('0xdc')!=typeof _0xeed76c&&(_0xeed76c[_0x1225('0x1b')]=this['_removeRevisionMarkers'](_0xeed76c[_0x1225('0x1b')]),_0xeed76c[_0x1225('0xff')]=_0xeed76c[_0x1225('0xff')][_0x1225('0x2d')](_0x5b8db1=>!_0x5b8db1[0x0][_0x1225('0x7')]('data-revision-')));}),_0x3cbc84;}}function J(_0x2af786,_0x136e1c){const _0x4e07ad=_0x136e1c['editing'][_0x1225('0x4')][_0x1225('0xf')];if(_0x1225('0xdc')==typeof _0x2af786)return new _0x5276d3(_0x4e07ad,_0x2af786);{const _0x5c70a8=_0x2af786[_0x1225('0x1b')][_0x1225('0xaa')](_0x36fac4=>J(_0x36fac4,_0x136e1c));return new(B[_0x2af786[(_0x1225('0x65'))]]||_0x50fae2)(_0x4e07ad,_0x2af786['name'],_0x2af786[_0x1225('0xff')],_0x5c70a8);}}class H{constructor(_0x1c727f){this[_0x1225('0x76')]=_0x1c727f,this[_0x1225('0x9b')]=new Map(),this[_0x1225('0x1')]=-0x1,this[_0x1225('0xcf')]=-0x1,this[_0x1225('0x81')]=new Map(),this['_diffRoots']=new Map(),this[_0x1225('0xb9')]=new Map(),this[_0x1225('0x9')]=new Map(),this[_0x1225('0xd5')]=new Map(),this[_0x1225('0x71')]=new Map(),this[_0x1225('0x46')]=new Map(),this[_0x1225('0xe2')]=new Map(),this[_0x1225('0x101')]=new Map(),this[_0x1225('0xd3')]=new Map(),this[_0x1225('0xc9')]=0x1;}[_0x1225('0xe6')](_0x2dbbcf){this[_0x1225('0xcb')]=_0x2dbbcf;const _0xe1955e=new Map(),_0x2fa935=new Map(),_0x116767=this[_0x1225('0x76')]['model']['document']['roots'][_0x1225('0xaa')](_0x58c611=>_0x58c611[_0x1225('0x4b')]);for(const _0x173619 of _0x116767){const _0xd77391=this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')][_0x1225('0xf6')](_0x173619),_0x4ffae8=q(_0xd77391);_0xe1955e[_0x1225('0xab')](_0x173619,_0x4ffae8),_0x2fa935[_0x1225('0xab')](_0x173619,Object[_0x1225('0x9e')](_0xd77391[_0x1225('0x78')]()));}const _0x3717cc=Array[_0x1225('0xc7')](this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0x53')])[_0x1225('0xaa')](_0x343ec4=>[_0x343ec4[_0x1225('0xfc')],_0x343ec4['getRange']()]),_0x43f595=this[_0x1225('0xcb')]['version'];this[_0x1225('0x45')](_0x43f595,_0xe1955e,_0x3717cc,_0x2fa935),this[_0x1225('0xc3')]=this[_0x1225('0xc9')];const _0x1c5b3e=new Map(),_0x557d7e=new Map();for(const _0x547ce9 of _0x116767){const _0x14d03c=G(_0x547ce9);_0x1c5b3e[_0x1225('0xab')](_0x547ce9,_0x14d03c),_0x557d7e['set'](_0x547ce9,{});}this[_0x1225('0x45')](Number['NEGATIVE_INFINITY'],_0x1c5b3e,[],_0x557d7e);}[_0x1225('0xa7')](_0xcae1b0,_0x5ae893){if(this[_0x1225('0x1')]===_0xcae1b0&&this[_0x1225('0xcf')]<=_0x5ae893)this[_0x1225('0x9b')]['size']>0x1&&this['_removeMetaData'](this[_0x1225('0xcf')]),this[_0x1225('0x26')](this[_0x1225('0xcf')],_0x5ae893,!0x0);else{if(!this[_0x1225('0x9b')]['has'](_0xcae1b0)){const _0x1e661c=this['_getPreviousFrom'](_0xcae1b0);this['_calculateMetaData'](_0x1e661c,_0xcae1b0,!0x1);}this[_0x1225('0x61')](_0xcae1b0,_0x5ae893,!0x0);}return this['_lastFrom']=_0xcae1b0,this[_0x1225('0xcf')]=_0x5ae893,this['_getState']();}[_0x1225('0x5b')](_0x586fde){this['_reset'](),this['_lastFrom']=_0x586fde[_0x1225('0xd7')],this[_0x1225('0xcf')]=_0x586fde[_0x1225('0xde')];for(const _0x319893 in _0x586fde[_0x1225('0xbe')]){const _0x20a8fe=_0x586fde[_0x1225('0xbe')][_0x319893][_0x1225('0x69')],_0x263a46=_0x1baa21(_0x586fde[_0x1225('0xbe')][_0x319893]['attributesBefore'])||{},_0x145eae=this[_0x1225('0x0')](_0x586fde[_0x1225('0xbe')][_0x319893]['deletions']);_0x145eae[_0x1225('0x4b')]=_0x319893,_0x145eae[_0x1225('0x10')]=!_0x20a8fe||!_0x20a8fe[_0x1225('0x56')],_0x145eae[_0x1225('0x56')]=()=>_0x145eae[_0x1225('0x10')],this['_baseRoots'][_0x1225('0xab')](_0x319893,_0x145eae),this['_baseRootsAttributes'][_0x1225('0xab')](_0x319893,_0x263a46),_0x20a8fe&&this['_touchedRoots'][_0x1225('0xab')](_0x319893,_0x20a8fe);const _0x1c5e1a=this[_0x1225('0x8f')](_0x145eae);this['_baseIdsRoots'][_0x1225('0xab')](_0x319893,_0x1c5e1a);for(const [_0x17edeb,_0x54605f]of _0x145eae[_0x1225('0x53')]){if(!_0x17edeb[_0x1225('0x7')](_0x1225('0xed')))continue;const _0x4e4f8c=_0x17edeb[_0x1225('0x18')](':')[0x2];for(const _0x31c2c5 of _0x54605f[_0x1225('0x37')]({'singleCharacters':!0x0})){const _0x5d0f71=this[_0x1225('0xb7')](_0x31c2c5),_0xa300cb=_0x1225('0x6c')==_0x31c2c5[_0x1225('0x65')]?_0x31c2c5['previousPosition'][_0x1225('0x8c')][_0x1225('0xf4')](0x0,-0x1):_0x31c2c5['previousPosition'][_0x1225('0x8c')],_0x3051bf=_0x1c5e1a['getNodeByPath'](_0xa300cb)['getAttribute'](_0x5d0f71);this[_0x1225('0xe2')]['set'](_0x3051bf,{'userId':_0x4e4f8c});}}}this[_0x1225('0xc3')]=this[_0x1225('0xc9')];const _0x356c8e=[...Array(this[_0x1225('0xc9')])[_0x1225('0x83')]()][_0x1225('0xf4')](0x1)[_0x1225('0x2d')](_0x17e6b4=>!this[_0x1225('0xe2')][_0x1225('0x4a')](_0x17e6b4));let _0xc63e91=0x0;const _0x1b6095=new Map();for(const _0x2f7874 in _0x586fde[_0x1225('0xbe')]){const _0x493035=_0x586fde[_0x1225('0xbe')][_0x2f7874][_0x1225('0x69')],_0x3d7a7b=_0x1baa21(_0x586fde['diffData'][_0x2f7874][_0x1225('0x32')])||{},_0x31bd8b=this[_0x1225('0x0')](_0x586fde[_0x1225('0xbe')][_0x2f7874][_0x1225('0x5d')]);_0x31bd8b[_0x1225('0x4b')]=_0x2f7874,_0x31bd8b['_isAttached']=!_0x493035||_0x493035[_0x1225('0x56')],_0x31bd8b[_0x1225('0x56')]=()=>_0x31bd8b['_isAttached'],this[_0x1225('0x47')][_0x1225('0xab')](_0x2f7874,_0x31bd8b),this['_diffRootsAttributes']['set'](_0x2f7874,_0x3d7a7b);const _0x523488=this[_0x1225('0x8f')](_0x31bd8b,Number['NEGATIVE_INFINITY']);this[_0x1225('0x71')][_0x1225('0xab')](_0x2f7874,_0x523488),_0x1b6095[_0x1225('0xab')](_0x2f7874,_0x31bd8b['isAttached']()?_0x3d7a7b:{});for(const [_0x42f19d,_0x1bfdfe]of _0x31bd8b[_0x1225('0x53')]){if(!_0x42f19d['startsWith'](_0x1225('0xed')))continue;const _0x38e0b7=_0x42f19d['split'](':')[0x2];for(const _0x46150e of _0x1bfdfe[_0x1225('0x37')]({'singleCharacters':!0x0})){const _0x2ce56b=this[_0x1225('0xb7')](_0x46150e),_0x5a25a3=this[_0x1225('0xc9')]++,_0x142a3c=_0x1225('0x6c')==_0x46150e[_0x1225('0x65')]?_0x46150e['previousPosition'][_0x1225('0x8c')][_0x1225('0xf4')](0x0,-0x1):_0x46150e[_0x1225('0x1d')][_0x1225('0x8c')];_0x523488['getNodeByPath'](_0x142a3c)['_setAttribute'](_0x2ce56b,_0x5a25a3),this[_0x1225('0xe2')][_0x1225('0xab')](_0x5a25a3,{'userId':_0x38e0b7});}}for(const _0x202556 of this[_0x1225('0x76')]['model'][_0x1225('0x96')](_0x31bd8b)[_0x1225('0x37')]({'singleCharacters':!0x0})){const _0x5cf013=this[_0x1225('0xb7')](_0x202556),_0x132aec='elementEnd'==_0x202556[_0x1225('0x65')]?_0x202556['previousPosition']['path'][_0x1225('0xf4')](0x0,-0x1):_0x202556['previousPosition'][_0x1225('0x8c')],_0x5b123e=_0x523488[_0x1225('0x39')](_0x132aec);_0x5b123e['getAttribute'](_0x5cf013)>0x0||_0x5b123e['_setAttribute'](_0x5cf013,_0x356c8e[_0xc63e91++]);}for(const [_0xb85cca,_0x288d93]of _0x31bd8b[_0x1225('0x53')])_0xb85cca[_0x1225('0x7')](_0x1225('0xed'))||this[_0x1225('0x81')][_0x1225('0xab')](_0xb85cca,_0x288d93);}const _0x498635=G(_0x1225('0xfd'));this['_baseRoots']['set'](_0x1225('0xfd'),_0x498635),this[_0x1225('0x46')][_0x1225('0xab')](_0x1225('0xfd'),this[_0x1225('0x8f')](_0x498635,0x1));const _0x147c8b=G(_0x1225('0xfd'));this[_0x1225('0x47')][_0x1225('0xab')]('$graveyard',_0x147c8b),this[_0x1225('0x71')]['set'](_0x1225('0xfd'),this[_0x1225('0x8f')](_0x147c8b,0x1));const _0x44233a=Array[_0x1225('0xc7')](this[_0x1225('0x47')])[_0x1225('0xaa')](([_0x1cd957,_0x1d6a34])=>[_0x1cd957,q(_0x1d6a34)]);this[_0x1225('0x45')](this[_0x1225('0xcf')],_0x44233a,this[_0x1225('0x81')],_0x1b6095);}[_0x1225('0x0')](_0x1eb140){const _0x2ab9ed=JSON['parse'](_0x1eb140),_0x4dae2b=this[_0x1225('0x76')][_0x1225('0xdb')][_0x1225('0x4')][_0x1225('0xf')],_0x29e051=new _0xf4dc88(_0x4dae2b,_0x2ab9ed[_0x1225('0xaa')](_0x3b3fdd=>J(_0x3b3fdd,this[_0x1225('0x76')])));return this[_0x1225('0x76')][_0x1225('0xd8')][_0x1225('0x6a')](_0x29e051);}['_saveMetaData'](_0x25cbfa,_0x2882a5,_0x43089a,_0x49fdd6){const _0xb24e0d=new Map(_0x2882a5),_0x41d5d4=new Map(_0x1baa21(_0x49fdd6)),_0x1eacc9=new Map();for(const [_0x5ca945,_0x19cb57]of _0x43089a)_0x1eacc9[_0x1225('0xab')](_0x5ca945,{'start':_0x19cb57['start'][_0x1225('0x3c')](),'end':_0x19cb57[_0x1225('0xdf')][_0x1225('0x3c')](),'rootName':_0x19cb57['root'][_0x1225('0x4b')]});this[_0x1225('0x9b')][_0x1225('0xab')](_0x25cbfa,{'roots':_0xb24e0d,'markers':_0x1eacc9,'rootsAttributes':_0x41d5d4});}['_removeMetaData'](_0x913d8f){this['_savedMetaData'][_0x1225('0xe9')](_0x913d8f);}['reInit'](){this['_reset'](),this[_0x1225('0x1')]=-0x1,this[_0x1225('0xcf')]=-0x1,this[_0x1225('0x9b')]['clear'](),this['init'](this[_0x1225('0xcb')]);}[_0x1225('0x73')](){this['_touched'][_0x1225('0x100')](),this[_0x1225('0x101')][_0x1225('0x100')](),this[_0x1225('0xd3')][_0x1225('0x100')](),this[_0x1225('0x47')][_0x1225('0x100')](),this[_0x1225('0xb9')][_0x1225('0x100')](),this[_0x1225('0x9')][_0x1225('0x100')](),this[_0x1225('0xd5')][_0x1225('0x100')](),this[_0x1225('0x71')][_0x1225('0x100')](),this[_0x1225('0x46')][_0x1225('0x100')](),this['_markers'][_0x1225('0x100')](),this[_0x1225('0xc9')]=0x1,this[_0x1225('0xc3')]=this[_0x1225('0xc9')];}[_0x1225('0x8f')](_0x211db1,_0x562548=null){let _0x4c4a65=null;_0x211db1['is'](_0x1225('0x93'))||(_0x4c4a65=new _0xc8ece(_0x211db1[_0x1225('0xfc')],{'vid_start':null===_0x562548?this[_0x1225('0xc9')]++:_0x562548++}));const _0x437798=[];for(const _0x3f8c52 of _0x211db1[_0x1225('0xb2')]())if(_0x3f8c52['is'](_0x1225('0xb8'))){_0x437798[_0x1225('0xc0')](this[_0x1225('0x8f')](_0x3f8c52,_0x562548));const _0x4f11e8=_0x437798[_0x437798[_0x1225('0xea')]-0x1];null!==_0x562548&&(_0x562548=_0x4f11e8['is'](_0x1225('0xb8'),_0x1225('0xcc'))?_0x4f11e8[_0x1225('0xb6')](_0x1225('0xdd'))+0x1:_0x4f11e8[_0x1225('0xb6')](_0x1225('0xc1'))+0x1);}else for(let _0x462482=0x0;_0x462482<_0x3f8c52[_0x1225('0x9f')];_0x462482++)_0x437798['push'](new _0xc8ece(_0x1225('0xcc'),{'vid':null===_0x562548?this['_revisionId']++:_0x562548++}));if(_0x211db1['is'](_0x1225('0x93'))){const _0x37b505=G(_0x211db1[_0x1225('0x4b')]);return _0x37b505[_0x1225('0xf3')](0x0,_0x437798),_0x37b505;}return _0x4c4a65[_0x1225('0x5a')](_0x1225('0xc1'),null===_0x562548?this[_0x1225('0xc9')]++:_0x562548++),_0x4c4a65[_0x1225('0xf3')](0x0,_0x437798),_0x4c4a65;}[_0x1225('0x61')](_0x3daa54,_0x4f3fb9,_0x54fd5a){this['_reset']();const {roots:_0xa67271,markers:_0x1119f2,rootsAttributes:_0x35a35f}=this[_0x1225('0x9b')][_0x1225('0xad')](_0x3daa54);this[_0x1225('0x9')]=new Map(_0xa67271),this[_0x1225('0xd5')]=new Map(_0x1baa21(_0x35a35f));for(const [_0x483156,_0x41ef0a]of this[_0x1225('0x9')])if(_0x1225('0xfd')!==_0x483156&&(this[_0x1225('0x47')][_0x1225('0xab')](_0x483156,q(_0x41ef0a)),this[_0x1225('0xb9')]=new Map(_0x1baa21(_0x35a35f)),_0x54fd5a)){const _0x32b9c6=this[_0x1225('0xc9')];this['_idsRoots'][_0x1225('0xab')](_0x483156,this[_0x1225('0x8f')](_0x41ef0a)),this[_0x1225('0x46')][_0x1225('0xab')](_0x483156,this[_0x1225('0x8f')](_0x41ef0a,_0x32b9c6));}this[_0x1225('0xc3')]=this[_0x1225('0xc9')],this[_0x1225('0x47')]['set'](_0x1225('0xfd'),q(this['_baseRoots']['get']('$graveyard'))),_0x54fd5a&&this[_0x1225('0x71')][_0x1225('0xab')](_0x1225('0xfd'),this[_0x1225('0x8f')](this[_0x1225('0x9')]['get'](_0x1225('0xfd'))));for(const [_0xabe7e6,_0x12e141]of _0x1119f2){const _0x48ab69=this[_0x1225('0x9')][_0x1225('0xad')](_0x12e141[_0x1225('0x4b')]),_0xd94b8c=this[_0x1225('0x47')][_0x1225('0xad')](_0x12e141[_0x1225('0x4b')]),_0x17c28c=new _0x379084(this['_fixPosition'](_0x12e141[_0x1225('0x6f')],_0x48ab69),this[_0x1225('0x3e')](_0x12e141[_0x1225('0xdf')],_0x48ab69)),_0x35ca9a=this[_0x1225('0x3d')](_0x17c28c,_0xd94b8c);_0x48ab69[_0x1225('0x53')]['set'](_0xabe7e6,_0x17c28c),this[_0x1225('0x81')][_0x1225('0xab')](_0xabe7e6,_0x35ca9a);}this['_applyOperations'](_0x3daa54,_0x4f3fb9,_0x54fd5a);}['_applyOperations'](_0x1eec69,_0x27e2ab,_0xf67f62){for(const _0x4b7881 of this[_0x1225('0xcb')][_0x1225('0x49')](_0x1eec69,_0x27e2ab))this[_0x1225('0xd0')](_0x4b7881,_0xf67f62);for(const _0x237428 of this['_diffRoots'][_0x1225('0x36')]())_0x237428[_0x1225('0x53')][_0x1225('0x100')]();for(const [_0x94f67,_0x33848f]of this[_0x1225('0x81')]){this['_diffRoots'][_0x1225('0xad')](_0x33848f[_0x1225('0x62')]['rootName'])[_0x1225('0x53')][_0x1225('0xab')](_0x94f67,_0x33848f[_0x1225('0x3c')]());}const _0x4a3029=new Map(),_0x3eb8b3=new Map();for(const [_0x494ab3,_0x47e5e8]of this['_diffRoots'])_0x4a3029['set'](_0x494ab3,q(_0x47e5e8)),_0x3eb8b3[_0x1225('0xab')](_0x494ab3,this[_0x1225('0xb9')][_0x1225('0xad')](_0x494ab3));this[_0x1225('0x45')](_0x27e2ab,_0x4a3029,this['_markers'],_0x3eb8b3);}[_0x1225('0xa3')](_0x46e32e){const _0x1b54e8=Array[_0x1225('0xc7')](this[_0x1225('0x9b')]['keys']());_0x1b54e8[_0x1225('0x24')]((_0x496c07,_0x2c97c5)=>_0x496c07-_0x2c97c5),_0x1b54e8[_0x1225('0xc5')]();for(const _0x4aab2c of _0x1b54e8)if(_0x4aab2c<_0x46e32e)return _0x4aab2c;return Number['NEGATIVE_INFINITY'];}[_0x1225('0x21')](_0x58374b,_0x65f5b0){const _0x40727f=Array[_0x1225('0xc7')](_0x65f5b0[_0x1225('0x53')])[_0x1225('0xaa')](([_0x4afd18,_0x8f01a5])=>[_0x4afd18,this[_0x1225('0x3d')](_0x8f01a5,_0x58374b)]);_0x58374b[_0x1225('0x53')]=new Map(_0x40727f);}['_transformMarkers'](_0x1125d2){for(const _0x5c3c79 of this[_0x1225('0x81')][_0x1225('0x36')]()){const _0xe9786f=_0x5c3c79[_0x1225('0xc6')](_0x1125d2),_0xca1f3a=_0x379084[_0x1225('0x4c')](_0xe9786f);_0x5c3c79['start']=_0xca1f3a['start'],_0x5c3c79[_0x1225('0xdf')]=_0xca1f3a[_0x1225('0xdf')];}}[_0x1225('0xd0')](_0x3da94b,_0x500696){if(_0x1225('0x5c')==_0x3da94b[_0x1225('0x65')]||_0x1225('0x1f')==_0x3da94b[_0x1225('0x65')])return void this[_0x1225('0xeb')](_0x3da94b,_0x500696);if(_0x1225('0x25')==_0x3da94b[_0x1225('0x65')]){const _0x3adddf=_0x3da94b[_0x1225('0x2c')]['root']['rootName'];this[_0x1225('0x47')]['has'](_0x3adddf)||(this[_0x1225('0x47')]['set'](_0x3adddf,G(_0x3adddf,!0x0)),this['_diffRootsAttributes'][_0x1225('0xab')](_0x3adddf,{}),_0x500696&&this[_0x1225('0x71')][_0x1225('0xab')](_0x3adddf,G(_0x3adddf,!0x0)));}else{if(_0x1225('0x9d')==_0x3da94b[_0x1225('0x65')]||_0x1225('0xd1')==_0x3da94b['type']||_0x1225('0xd')==_0x3da94b[_0x1225('0x65')])return void this['_handleRootAttributeOperation'](_0x3da94b);}const _0x2bd5b8=this[_0x1225('0xb4')](_0x3da94b,this[_0x1225('0x47')]);if('marker'!==_0x3da94b[_0x1225('0x65')]&&(_0x2bd5b8['_execute'](),this['_transformMarkers'](_0x2bd5b8)),_0x500696)switch(_0x2bd5b8[_0x1225('0x65')]){case'insert':this['_handleInsertOperation'](_0x3da94b);break;case'move':case _0x1225('0x17'):case _0x1225('0x6d'):this[_0x1225('0x40')](_0x3da94b);break;case _0x1225('0x86'):this[_0x1225('0xd4')](_0x3da94b);break;case _0x1225('0x18'):this[_0x1225('0x98')](_0x3da94b);break;case _0x1225('0x5f'):this[_0x1225('0x7c')](_0x3da94b);}}[_0x1225('0xb4')](_0x127aab,_0x24e6a0){const _0x5cac61=_0x127aab['clone']();return _0x5cac61['_authorId']=_0x127aab[_0x1225('0x55')],this[_0x1225('0xfa')](_0x5cac61,_0x24e6a0),_0x5cac61;}['_getBaseVids'](_0x5c48e8){return _0x5c48e8[_0x1225('0xaa')](_0xcd2a82=>{const _0x46fc25=this[_0x1225('0xb7')](_0xcd2a82);return Number(_0xcd2a82[_0x1225('0x3b')][_0x1225('0xb6')](_0x46fc25));});}['_generateTape'](_0x48a7c9,_0x479d2d){if(_0x48a7c9['is']('element','$text'))_0x479d2d[_0x1225('0xc0')]({'item':_0x48a7c9,'type':'text'});else{_0x48a7c9['is'](_0x1225('0xb8'))&&_0x479d2d[_0x1225('0xc0')]({'item':_0x48a7c9,'type':_0x1225('0xf0')});for(const _0x5d9494 of _0x48a7c9[_0x1225('0xb2')]())this[_0x1225('0xbd')](_0x5d9494,_0x479d2d);_0x48a7c9['is'](_0x1225('0xb8'))&&_0x479d2d[_0x1225('0xc0')]({'item':_0x48a7c9,'type':'elementEnd'});}return _0x479d2d;}[_0x1225('0xa9')](){const _0x5b1571=new Map(this['_touched']),_0x290731=new Map(_0x5b1571),_0x42432a=new Map(),_0x132402={'insertions':{},'deletions':{}},_0xdb5c1c={'insertions':{},'deletions':{}},_0x594f56=new Map(),_0x4b6f28=new Set([...this[_0x1225('0x9')][_0x1225('0x83')](),...this[_0x1225('0x47')]['keys']()]);_0x4b6f28['delete'](_0x1225('0xfd'));for(const _0x487d59 of _0x4b6f28){const _0x4e4471=this[_0x1225('0x47')][_0x1225('0xad')](_0x487d59)||G(_0x487d59,!0x1),_0x391cc0=this[_0x1225('0x9')][_0x1225('0xad')](_0x487d59)||G(_0x487d59,!0x1);_0x4e4471[_0x1225('0x56')]()||_0x391cc0['isAttached']()?(_0x132402[_0x1225('0x5d')][_0x487d59]=q(_0x4e4471),_0x132402['deletions'][_0x487d59]=q(_0x391cc0),this['_copyMarkers'](_0x132402[_0x1225('0xb3')][_0x487d59],_0x391cc0),this[_0x1225('0x21')](_0x132402[_0x1225('0x5d')][_0x487d59],_0x4e4471),_0xdb5c1c[_0x1225('0x5d')][_0x487d59]=this[_0x1225('0xbd')](this['_idsRoots'][_0x1225('0xad')](_0x487d59),[]),_0xdb5c1c[_0x1225('0xb3')][_0x487d59]=this[_0x1225('0xbd')](this[_0x1225('0x46')][_0x1225('0xad')](_0x487d59)||G(_0x487d59,!0x1),[])):_0x4b6f28[_0x1225('0xe9')](_0x487d59);}for(const _0x4a7925 of _0x4b6f28){const _0x1aec34=_0xdb5c1c[_0x1225('0x5d')][_0x4a7925];for(const _0x20d4e8 of _0x1aec34){const _0x2e421b=this[_0x1225('0xb7')](_0x20d4e8),_0x4ea679=_0x20d4e8[_0x1225('0x3b')]['getAttribute'](_0x2e421b);_0x290731[_0x1225('0xe9')](_0x4ea679),_0x4ea679>=this[_0x1225('0xc3')]&&_0x42432a[_0x1225('0xab')](_0x4ea679,_0x5b1571[_0x1225('0xad')](_0x4ea679));}}for(const _0x27fa84 of _0x4b6f28){const _0x39f3a9=_0xdb5c1c[_0x1225('0x5d')][_0x27fa84],_0x1b42de=this['_getBaseVids'](_0xdb5c1c[_0x1225('0xb3')][_0x27fa84]);let _0x515bce=0x0;for(const _0x1c6fcc of _0x39f3a9){const _0x2ba624=this[_0x1225('0xb7')](_0x1c6fcc),_0x229863=_0x1c6fcc[_0x1225('0x3b')][_0x1225('0xb6')](_0x2ba624);if(!_0x42432a[_0x1225('0x4a')](_0x229863)&&!_0x594f56[_0x1225('0x4a')](_0x229863)){if(_0x290731[_0x1225('0x4a')](_0x229863))_0x515bce++;else{if(_0x229863!=_0x1b42de[_0x515bce]){const _0x2e97a6=_0x5b1571[_0x1225('0xad')](_0x229863)||_0x5b1571[_0x1225('0xad')](_0x1b42de[_0x515bce]);for(;_0x229863!=_0x1b42de[_0x515bce];)_0x290731[_0x1225('0x4a')](_0x1b42de[_0x515bce])||(_0x594f56[_0x1225('0xab')](_0x1b42de[_0x515bce],_0x2e97a6),_0x5b1571[_0x1225('0xab')](_0x1b42de[_0x515bce],_0x2e97a6)),_0x515bce++;}_0x515bce++;}}}}for(const _0x4d0289 of _0x4b6f28){const _0xbaaa2c=_0xdb5c1c[_0x1225('0x5d')][_0x4d0289];for(const _0x51e7bc of _0xbaaa2c){const _0x1b2620=this[_0x1225('0xb7')](_0x51e7bc),_0x41e441=_0x51e7bc[_0x1225('0x3b')][_0x1225('0xb6')](_0x1b2620);if(_0x594f56['has'](_0x41e441)){const _0x33f97c=_0x594f56[_0x1225('0xad')](_0x41e441);_0x290731[_0x1225('0x4a')](_0x41e441)||_0x290731[_0x1225('0xab')](_0x41e441,{..._0x33f97c}),_0x42432a[_0x1225('0xab')](_0x41e441,{..._0x33f97c});}}}for(const _0x58c8cb of _0x290731['keys']())_0x58c8cb>=this['_startingRevisionId']&&_0x290731['delete'](_0x58c8cb);const _0x3e8cd8=new Map();for(const _0x1da4db of _0x4b6f28){let _0x32e412=_0xdb5c1c[_0x1225('0x5d')][_0x1da4db];for(const _0x44c125 of _0x32e412)if(_0x44c125[_0x1225('0x3b')]['is']('element',_0x1225('0x14'))){const _0x499ea8=this['_getVidAttributeName'](_0x44c125),_0x318287=_0x44c125[_0x1225('0x3b')]['getAttribute'](_0x499ea8);if(_0x42432a[_0x1225('0x4a')](_0x318287)){const _0x5c2998=_0x44c125['item'][_0x1225('0x2f')][_0x1225('0x2f')][_0x1225('0xb6')](_0x1225('0x28')),_0x53755f=_0x3e8cd8[_0x1225('0xad')](_0x5c2998)||new Set();_0x53755f[_0x1225('0xb')](_0x42432a[_0x1225('0xad')](_0x318287)[_0x1225('0xf1')]),_0x3e8cd8[_0x1225('0xab')](_0x5c2998,_0x53755f);}}_0x32e412=_0xdb5c1c[_0x1225('0xb3')][_0x1da4db];for(const _0x134ee3 of _0x32e412)if(_0x134ee3[_0x1225('0x3b')]['is']('element',_0x1225('0x14'))){const _0x5d694c=this[_0x1225('0xb7')](_0x134ee3),_0x2d3d14=_0x134ee3['item'][_0x1225('0xb6')](_0x5d694c);if(_0x290731[_0x1225('0x4a')](_0x2d3d14)){const _0x3b79e8=_0x134ee3[_0x1225('0x3b')][_0x1225('0x2f')][_0x1225('0x2f')][_0x1225('0xb6')](_0x1225('0x28')),_0x132b58=_0x3e8cd8['get'](_0x3b79e8)||new Set();_0x132b58['add'](_0x290731['get'](_0x2d3d14)[_0x1225('0xf1')]),_0x3e8cd8['set'](_0x3b79e8,_0x132b58);}}for(const _0x1fdd06 of _0x3e8cd8[_0x1225('0x83')]())(_0x42432a[_0x1225('0x4a')](_0x1fdd06)||_0x290731[_0x1225('0x4a')](_0x1fdd06))&&_0x3e8cd8[_0x1225('0xe9')](_0x1fdd06);}for(const _0x53ea15 of _0x4b6f28){const _0x11fd5a=_0xdb5c1c['insertions'][_0x53ea15];let _0x3b7c2c=null,_0x591718=null;for(const _0xf77edf of _0x11fd5a){const _0x1cdacb=this[_0x1225('0xb7')](_0xf77edf),_0x52b1b4=_0xf77edf[_0x1225('0x3b')][_0x1225('0xb6')](_0x1cdacb),_0x94137e=_0x3e8cd8['get'](_0x52b1b4);_0x94137e&&_0x1225('0xf0')==_0xf77edf[_0x1225('0x65')]&&(_0x3b7c2c=Array[_0x1225('0xc7')](_0x94137e)[0x0],_0x591718=_0xf77edf[_0x1225('0x3b')][_0x1225('0xb6')](_0x1225('0xc1'))),_0x3b7c2c&&(_0x290731[_0x1225('0xab')](_0x52b1b4,{'userId':_0x3b7c2c}),_0x42432a[_0x1225('0xab')](_0x52b1b4,{'userId':_0x3b7c2c})),_0x52b1b4==_0x591718&&(_0x3b7c2c=null,_0x591718=null);}}const _0x8d2646={},_0x5892df=new Set();for(const _0x3a7920 of _0x4b6f28){const _0x472013=_0x132402['deletions'][_0x3a7920],_0x276dbd=_0x132402[_0x1225('0x5d')][_0x3a7920];for(const {userId:_0x261d95}of this[_0x1225('0x101')][_0x1225('0x36')]())null!==_0x261d95&&_0x5892df[_0x1225('0xb')](_0x261d95);for(const {userId:_0x1a90fd}of this[_0x1225('0xd3')][_0x1225('0x36')]())null!==_0x1a90fd&&_0x5892df[_0x1225('0xb')](_0x1a90fd);this[_0x1225('0xbf')](_0x276dbd,_0xdb5c1c['insertions'][_0x3a7920],_0x42432a,_0x1225('0x66'),_0x5892df),this['_markChanges'](_0x472013,_0xdb5c1c['deletions'][_0x3a7920],_0x290731,_0x1225('0xae'),_0x5892df),_0x8d2646[_0x3a7920]={'insertions':this[_0x1225('0x75')](_0x276dbd),'deletions':this[_0x1225('0x75')](_0x472013),'attachChange':this[_0x1225('0xd3')][_0x1225('0xad')](_0x3a7920)||null,'attributesBefore':_0x1baa21(this['_baseRootsAttributes'][_0x1225('0xad')](_0x3a7920))||{},'attributesAfter':_0x1baa21(this[_0x1225('0xb9')][_0x1225('0xad')](_0x3a7920))};}return{'diffData':_0x8d2646,'authorsIds':Array[_0x1225('0xc7')](_0x5892df)};}[_0x1225('0x20')](_0x34c646){for(const [,_0xa99b1e]of _0x34c646[_0x1225('0x53')]){const _0xd599c6=_0xa99b1e[_0x1225('0x6f')][_0x1225('0xd9')]()[_0x1225('0x2d')](_0x55cfaa=>_0x1225('0x14')==_0x55cfaa[_0x1225('0xfc')]);for(const _0x280a4f of _0xd599c6)0x1==_0x280a4f[_0x1225('0x16')]&&_0x280a4f['getChild'](0x0)['is']('element','paragraph')&&_0x280a4f[_0x1225('0xa8')](0x0)['_setAttribute'](_0x1225('0x7d'),!0x0);}}[_0x1225('0x75')](_0x4f3a17){this['_processRootBeforeSave'](_0x4f3a17);const _0x1ea7ef=this[_0x1225('0x76')]['data']['toView'](_0x4f3a17,{}),_0x3e27e5=Array['from'](_0x1ea7ef[_0x1225('0xb2')]())['map'](_0x5f118c=>this['_getViewJson'](_0x5f118c));return JSON['stringify'](_0x3e27e5);}[_0x1225('0x85')](_0x3b9102){if(_0x3b9102['is'](_0x1225('0xcc')))return _0x3b9102[_0x1225('0xd8')];{const _0x2610ae=_0x3b9102;return{'type':Object[_0x1225('0x83')](B)[_0x1225('0x70')](_0x16b865=>_0x3b9102 instanceof B[_0x16b865]),'name':_0x2610ae[_0x1225('0xfc')],'attributes':Array[_0x1225('0xc7')](_0x2610ae['getAttributes']()),'children':Array[_0x1225('0xc7')](_0x2610ae[_0x1225('0xb2')]())['map'](_0x3849ba=>this[_0x1225('0x85')](_0x3849ba))};}}['_markChanges'](_0x21f1d5,_0x4ca3ca,_0x1a1d8,_0x2a0bf5,_0x3c8190){let _0x231259=null,_0x410791=null,_0x1e423c=0x0;const _0x3e409b=this[_0x1225('0x76')][_0x1225('0x30')];for(let _0x64d010=0x0;_0x64d010<_0x4ca3ca[_0x1225('0xea')];_0x64d010++){const _0x5879f3=this['_getVidAttributeName'](_0x4ca3ca[_0x64d010]),_0x304f8e=_0x4ca3ca[_0x64d010]['item']['getAttribute'](_0x5879f3),_0x47c050=_0x1a1d8[_0x1225('0xad')](_0x304f8e),_0x3244b9=_0x64d010==_0x4ca3ca[_0x1225('0xea')]-0x1;(!_0x231259&&_0x47c050&&(_0x231259=_0x47c050,_0x410791=_0x4ca3ca[_0x64d010]),_0x231259&&(!_0x47c050||_0x47c050[_0x1225('0xf1')]!=_0x231259[_0x1225('0xf1')]))&&(_0x5ad153(_0x47c050,L(_0x410791,_0x21f1d5,_0x3e409b),L(_0x4ca3ca[_0x64d010],_0x21f1d5,_0x3e409b)),_0x231259=_0x47c050||null,_0x410791=_0x47c050?_0x4ca3ca[_0x64d010]:null),_0x231259&&_0x3244b9&&_0x5ad153(_0x47c050,L(_0x410791,_0x21f1d5,_0x3e409b),W(_0x4ca3ca[_0x64d010],_0x21f1d5,_0x3e409b));}function _0x5ad153(_0x1fd3fa,_0x6519a4,_0x28f6f0){const _0x5b0b91=_0x231259[_0x1225('0xf1')],_0x1f11b4=_0x1225('0xed')+_0x2a0bf5+':'+_0x5b0b91+':'+_0x1e423c++,_0x58033c=_0x3e409b['createRange'](_0x6519a4,_0x28f6f0);_0x21f1d5['markers'][_0x1225('0xab')](_0x1f11b4,_0x58033c),null!==_0x5b0b91&&_0x3c8190[_0x1225('0xb')](_0x5b0b91);}}[_0x1225('0xb7')](_0x241a49){switch(_0x241a49['type']){case _0x1225('0xf0'):return _0x1225('0x28');case _0x1225('0x6c'):return _0x1225('0xc1');default:return _0x1225('0xdd');}}[_0x1225('0xfa')](_0x1b5560,_0x1f2b1c){_0x1b5560['baseVersion']=null;for(const _0x1d55f5 in _0x1b5560){const _0x51379b=_0x1b5560[_0x1d55f5];if(_0x51379b instanceof _0x225867){const _0x1e842f=_0x1f2b1c[_0x1225('0xad')](_0x51379b[_0x1225('0x62')][_0x1225('0x4b')]);_0x1b5560[_0x1d55f5]=this[_0x1225('0x3e')](_0x51379b,_0x1e842f);}if(_0x51379b instanceof _0x379084){const _0x51c780=_0x1f2b1c[_0x1225('0xad')](_0x51379b['root'][_0x1225('0x4b')]);_0x1b5560[_0x1d55f5]=this[_0x1225('0x3d')](_0x51379b,_0x51c780);}'root'===_0x1d55f5&&(_0x1b5560[_0x1225('0x62')]=_0x1f2b1c[_0x1225('0xad')](_0x1b5560['root'][_0x1225('0x4b')]));}}[_0x1225('0x3d')](_0x38b5b2,_0x488813){return this[_0x1225('0x76')][_0x1225('0x30')]['createRange'](this['_fixPosition'](_0x38b5b2[_0x1225('0x6f')],_0x488813),this['_fixPosition'](_0x38b5b2[_0x1225('0xdf')],_0x488813));}[_0x1225('0x3e')](_0xf0b854,_0x23d124){return this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0x8e')](_0x23d124,_0xf0b854[_0x1225('0x8c')],_0xf0b854[_0x1225('0x31')]);}[_0x1225('0x50')](_0x2415a2){const _0xe8d936=this[_0x1225('0x71')][_0x1225('0xad')](_0x2415a2[_0x1225('0x2c')][_0x1225('0x62')][_0x1225('0x4b')]),_0x426aa0=this['_fixPosition'](_0x2415a2[_0x1225('0x2c')],_0xe8d936),_0x3ef175=null===_0x2415a2[_0x1225('0x55')]?null:_0x2415a2['_authorId']||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x43183e=_0x426aa0[_0x1225('0x2f')],_0x2e8848=this[_0x1225('0xc9')],_0x2898f9=[];for(const _0x483166 of _0x2415a2[_0x1225('0xce')])if(_0x483166['is'](_0x1225('0xb8')))_0x2898f9[_0x1225('0xc0')](this[_0x1225('0x8f')](_0x483166));else for(let _0xbbcb52=0x0;_0xbbcb52<_0x483166[_0x1225('0x9f')];_0xbbcb52++)_0x2898f9[_0x1225('0xc0')](new _0xc8ece(_0x1225('0xcc'),{'vid':this[_0x1225('0xc9')]++}));const _0x5372bd=this[_0x1225('0xc9')];for(let _0x2efe42=_0x2e8848;_0x2efe42<_0x5372bd;_0x2efe42++)this[_0x1225('0xe2')][_0x1225('0xab')](_0x2efe42,{'userId':_0x3ef175});_0x43183e['_insertChild'](_0x426aa0[_0x1225('0x77')],_0x2898f9);}['_handleMoveOperation'](_0x563a15){(_0x563a15=this[_0x1225('0xb4')](_0x563a15,this['_idsRoots']))[_0x1225('0xe8')]();const _0x242e7b=null===_0x563a15[_0x1225('0x55')]?null:_0x563a15[_0x1225('0x55')]||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0xd94f37=_0x563a15['getMovedRangeStart'](),_0x27214b=_0xd94f37['parent'],_0x1b747f=_0xd94f37[_0x1225('0x77')];!function _0x148643(_0x53716c,_0x439fd1,_0x247a0f,_0x192829){for(let _0x2b220a=_0x247a0f;_0x2b220a<_0x192829;_0x2b220a++){const _0x2cf085=_0x439fd1[_0x1225('0xa8')](_0x2b220a);_0x2cf085['is']('element','$text')?_0x53716c['set'](_0x2cf085[_0x1225('0xb6')](_0x1225('0xdd')),{'userId':_0x242e7b}):(_0x53716c['set'](_0x2cf085[_0x1225('0xb6')]('vid_start'),{'userId':_0x242e7b}),_0x148643(_0x53716c,_0x2cf085,0x0,_0x2cf085['childCount']),_0x53716c[_0x1225('0xab')](_0x2cf085[_0x1225('0xb6')]('vid_end'),{'userId':_0x242e7b}));}}(this[_0x1225('0xe2')],_0x27214b,_0x1b747f,_0x1b747f+_0x563a15[_0x1225('0x29')]);}['_handleMergeOperation'](_0x1ec9c2){const _0x1826a2=null===(_0x1ec9c2=this[_0x1225('0xb4')](_0x1ec9c2,this['_idsRoots']))[_0x1225('0x55')]?null:_0x1ec9c2[_0x1225('0x55')]||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x517f08=_0x1ec9c2[_0x1225('0x5e')][_0x1225('0x2f')],_0x143f56=_0x1ec9c2[_0x1225('0x7a')][_0x1225('0x2f')],_0x4270e3=_0x517f08[_0x1225('0xb6')](_0x1225('0xc1')),_0x36b900=_0x143f56['getAttribute'](_0x1225('0x28'));_0x517f08[_0x1225('0x5a')](_0x1225('0xc1'),_0x143f56[_0x1225('0xb6')](_0x1225('0xc1'))),_0x143f56['_setAttribute'](_0x1225('0xc1'),_0x4270e3),this['_touched'][_0x1225('0xab')](_0x36b900,{'userId':_0x1826a2}),this['_touched'][_0x1225('0xab')](_0x4270e3,{'userId':_0x1826a2}),_0x1ec9c2[_0x1225('0xe8')]();}[_0x1225('0x98')](_0x34cb6a){const _0x568d41=null===(_0x34cb6a=this[_0x1225('0xb4')](_0x34cb6a,this[_0x1225('0x71')]))['_authorId']?null:_0x34cb6a[_0x1225('0x55')]||this[_0x1225('0x76')][_0x1225('0xaf')]['get'](_0x1225('0x27'))['me']['id'],_0x9e780f=_0x34cb6a[_0x1225('0x90')],_0x599b50=_0x34cb6a[_0x1225('0x1e')][_0x1225('0x2f')];_0x34cb6a[_0x1225('0xe8')]();const _0x1ee3da=_0x599b50[_0x1225('0xb6')](_0x1225('0xc1')),_0x307646=_0x34cb6a[_0x1225('0xc8')][_0x1225('0x63')];if(_0x9e780f){const _0x7ad7b4=_0x307646[_0x1225('0xb6')](_0x1225('0xc1')),_0x146efd=_0x599b50['getAttribute'](_0x1225('0xc1'));_0x599b50[_0x1225('0x5a')](_0x1225('0xc1'),_0x7ad7b4),_0x307646[_0x1225('0x5a')](_0x1225('0xc1'),_0x146efd),this[_0x1225('0xe2')][_0x1225('0xab')](_0x599b50[_0x1225('0xb6')](_0x1225('0xc1')),{'userId':_0x568d41}),this[_0x1225('0xe2')][_0x1225('0xab')](_0x307646[_0x1225('0xb6')](_0x1225('0x28')),{'userId':_0x568d41});}else{const _0x1699db=this[_0x1225('0xc9')]++,_0x4f7923=this[_0x1225('0xc9')]++;_0x599b50[_0x1225('0x5a')](_0x1225('0xc1'),_0x1699db),_0x307646['_setAttribute'](_0x1225('0x28'),_0x4f7923),_0x307646[_0x1225('0x5a')](_0x1225('0xc1'),_0x1ee3da),this[_0x1225('0xe2')][_0x1225('0xab')](_0x1699db,{'userId':_0x568d41}),this[_0x1225('0xe2')][_0x1225('0xab')](_0x4f7923,{'userId':_0x568d41});}}[_0x1225('0x7c')](_0x2a96c9){if(!_0x2a96c9[_0x1225('0x1c')])return;const _0x3d9c62=(_0x2a96c9=this[_0x1225('0xb4')](_0x2a96c9,this[_0x1225('0x47')]))['oldRange']?_0x2a96c9['oldRange'][_0x1225('0x62')]:null,_0x5b5d8=_0x2a96c9['newRange']?_0x2a96c9[_0x1225('0xa0')][_0x1225('0x62')]:null;_0x3d9c62&&this[_0x1225('0x81')][_0x1225('0xe9')](_0x2a96c9['name']),_0x5b5d8&&this['_markers']['set'](_0x2a96c9[_0x1225('0xfc')],_0x2a96c9[_0x1225('0xa0')]['clone']());const _0x33518d=null===_0x2a96c9['_authorId']?null:_0x2a96c9['_authorId']||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0xbc636b=_0x2a96c9[_0x1225('0xfc')];if(!this[_0x1225('0x101')]['has'](_0xbc636b))return void this[_0x1225('0x101')][_0x1225('0xab')](_0xbc636b,{'range':_0x2a96c9['oldRange'],'userId':_0x33518d});const _0x14025d=this['_touchedMarkers'][_0x1225('0xad')](_0xbc636b),_0x31d01f=_0x14025d[_0x1225('0x57')],_0x1313f7=_0x2a96c9[_0x1225('0xa0')];null==_0x31d01f&&null==_0x1313f7||_0x31d01f&&_0x1313f7&&_0x31d01f[_0x1225('0xa6')](_0x1313f7)?this[_0x1225('0x101')]['delete'](_0x2a96c9['name']):_0x14025d[_0x1225('0xf1')]=_0x33518d;}[_0x1225('0xeb')](_0x362751,_0x134e35){this[_0x1225('0x47')][_0x1225('0x4a')](_0x362751[_0x1225('0x4b')])?this[_0x1225('0x47')][_0x1225('0xad')](_0x362751[_0x1225('0x4b')])[_0x1225('0x10')]=_0x362751['isAdd']:(this[_0x1225('0x47')]['set'](_0x362751['rootName'],G(_0x362751['rootName'],!0x0)),this['_diffRootsAttributes'][_0x1225('0xab')](_0x362751['rootName'],{}),_0x134e35&&this[_0x1225('0x71')]['set'](_0x362751[_0x1225('0x4b')],G(_0x362751[_0x1225('0x4b')],!0x0)));const _0x7dc318=null===_0x362751[_0x1225('0x55')]?null:_0x362751[_0x1225('0x55')]||this['editor'][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x511752=this[_0x1225('0xd3')]['get'](_0x362751[_0x1225('0x4b')]);_0x511752&&_0x511752[_0x1225('0xf1')]===_0x7dc318?this[_0x1225('0xd3')]['delete'](_0x362751[_0x1225('0x4b')]):this['_touchedRoots'][_0x1225('0xab')](_0x362751[_0x1225('0x4b')],{'userId':_0x7dc318,'isAttached':_0x362751[_0x1225('0xcd')]});}[_0x1225('0x52')](_0x13c531){const _0x167443=this[_0x1225('0xb9')]['get'](_0x13c531[_0x1225('0x62')]['rootName']);null===_0x13c531['newValue']?delete _0x167443[_0x13c531[_0x1225('0x88')]]:_0x167443[_0x13c531[_0x1225('0x88')]]=_0x13c531['newValue'];}}function q(_0x41a3b4){const _0x9f7ef=G(_0x41a3b4[_0x1225('0x4b')],_0x41a3b4['isAttached']());for(const _0x9381f4 of _0x41a3b4[_0x1225('0xb2')]()){const _0x42950b=_0x9381f4[_0x1225('0x74')](!0x0);_0x9f7ef[_0x1225('0x44')](_0x42950b);}return _0x9f7ef;}function G(_0x1bdb6c,_0x1c5574=!0x0){const _0xa9addd=new _0x4e8298();return _0xa9addd['rootName']=_0x1bdb6c,_0xa9addd[_0x1225('0x10')]=_0x1c5574,_0xa9addd['isAttached']=()=>_0xa9addd[_0x1225('0x10')],_0xa9addd;}function L(_0x397810,_0x14d48a,_0x1d9eac){const _0x5b8aaa=_0x1225('0x6c')==_0x397810[_0x1225('0x65')]?_0x1d9eac[_0x1225('0xd2')](_0x397810['item'],_0x1225('0xdf')):_0x1d9eac[_0x1225('0xda')](_0x397810[_0x1225('0x3b')]);return _0x1d9eac[_0x1225('0x8e')](_0x14d48a,_0x5b8aaa[_0x1225('0x8c')],_0x5b8aaa[_0x1225('0x31')]);}function W(_0x380e7c,_0x189420,_0x3dfabf){const _0x2f89c3='elementStart'==_0x380e7c['type']?_0x3dfabf[_0x1225('0xd2')](_0x380e7c['item'],0x0):_0x3dfabf[_0x1225('0x80')](_0x380e7c[_0x1225('0x3b')]);return _0x3dfabf[_0x1225('0x8e')](_0x189420,_0x2f89c3['path'],_0x2f89c3[_0x1225('0x31')]);}
|
|
23
|
+
const _0x32c5=['init','initial','item','getRootNames','_continueCurrentRevision','pluginName','paragraph','_revisionId','addRoot','children','collaboration.channelId','howMany','getRange','element','hasContent','rootName','attributesAfter','size','shift','toVersion','dataToMarker','changeRootAttribute','slice','addRevision','revision:','markerToData','clone','_baseRootsAttributes','_touchedMarkers','_diffRootsAttributes','toModel','deletion','roots','_generateTape','createRevision','_setConversion','createdAt','_baseIdsRoots','conversion','_bufferedUpdates','_isPendingUpdate','_startingVersion','getTime','dataDowncast','nodes','_getVidAttributeName','includes','parent','baseVersion','_diffRoots','_insertChild','_handleMarkerOperation','isEqual','path','sendBufferedUpdates','getLatestVersion','_handleRootAttributeOperation','model','_createInitialRevision','config','updateRevisions','insertion','bind','getAttributes','finally','_handleRootOperation','find','isReady','start','graveyardPosition','view','getChild','_operations','insertions','_calculateMetaData','getNodeByPath','getWalker','authorsIds','attributesBefore','filter','map','revisionHistory.resumeUnsavedRevision','_idsRoots','some','offset','resolve','buildRevisionData','getChildren','creatorId','deletions','processor','_getState','_prepareViewToSave','_applyOperations','attachChange','remove','_baseRoots','_removeRevisionMarkers','key','$graveyard','_loadedStateData','_markChanges','offsetSize','userId','_handleMergeOperation','history','getAncestors','addRevisionData','afterInit','toView','createRange','split','_fixRange','repository','_removeMetaData','_revisionDataBuilder','ready','attributes','$text','getData','_replaceEditorDataWithRevisionData','define','_authorId','version','locale','createPositionBefore','getAttribute','clear','adapter','_markers','isEnabled','has','_update','_touched','get','range','_bufferUpdate','createPositionAt','requires','PendingActions','toData','getTransformedByOperation','sort','_getPreviousFrom','vid_start','stringify','diffData','saveRevision','merge','_initialRevisionId','newValue','_handleSplitOperation','_reset','fromEntries','sourcePosition','addRootAttribute','detachRoot','reInit','marked','position','Initial\x20revision','creator','revision','editing','set','_fixOperation','initialData','values','_getViewJson','setRevisionData','rootsAttributes','tableCell','_makeRevision','default','_makeModelFromViewString','_addPendingAction','fromVersion','_startingRevisionId','isAttached','_handleOperation','nodeAfter','_lastFrom','root','_isInit','_createFromRanges','type','vid_end','elementStart','stickiness','push','_transformMarkers','getMovedRangeStart','NEGATIVE_INFINITY','_isAttached','loadState','getOperation','_appendChild','editor','max','getUser','update','keys','_makeIdsRoot','revision-start','oldRange','isAdd','_clone','_savedMetaData','marker','plugins','reverse','_source','PENDING_ACTION_REVISION_HISTORY','source','_execute','for','vid','document','_handleInsertOperation','authors','add','childCount','_handleMoveOperation','_cloneOperation','currentRevision','_getBaseVids','previousPosition','_pendingAction','upcast','_touchedRoots','startsWith','reinsert','getRevisionRootsAttributes','getRevision','RevisionTracker','insert','from','_processRootBeforeSave','revision-end','Users','move','useFillerType','end','getRevisionDocumentData','newRange','elementEnd','_loadRevisionData','createPositionFromPath','markers','length','_fixPosition','name','getRevisions','getOperations','_removePendingAction','splitPosition','_getFromVersion','_loadState','_createCurrentRevision','_setAttribute','_copyMarkers','setSource','documentFragment','data','getCurrentRevisionId','_lastTo','delete','_saveMetaData'];(function(_0x18c20a,_0x32c590){const _0x31a433=function(_0x969954){while(--_0x969954){_0x18c20a['push'](_0x18c20a['shift']());}};_0x31a433(++_0x32c590);}(_0x32c5,0xcc));const _0x31a4=function(_0x18c20a,_0x32c590){_0x18c20a=_0x18c20a-0x0;let _0x31a433=_0x32c5[_0x18c20a];return _0x31a433;};import{Users as _0x415d54}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x230979,PendingActions as _0x4dea43}from'ckeditor5/src/core.js';import{logWarning as _0x4bbb2d,uid as _0x1038e3}from'ckeditor5/src/utils.js';import{Position as _0x4f6a77,Range as _0x29bac1,Element as _0x49a5cc,DocumentFragment as _0x1fc737,ViewText as _0x398bf2,ViewElement as _0x5e2b51,ViewContainerElement as _0x3e892c,ViewAttributeElement as _0x1d39a4,ViewEmptyElement as _0x4608be,ViewRawElement as _0x5ec268,ViewUIElement as _0x4aba3a,ViewDocumentFragment as _0x4747fd}from'ckeditor5/src/engine.js';import _0x1d1b49 from'./revisionsrepository.js';import{getTranslation as _0x457848}from'./utils/common-translations.js';import{cloneDeep as _0x582885,isEqual as _0x5b8e37}from'lodash-es';const B={'c':_0x3e892c,'a':_0x1d39a4,'e':_0x4608be,'r':_0x5ec268,'u':_0x4aba3a};export default class l extends _0x230979{static get[_0x31a4('0x45')](){return _0x31a4('0x1e');}static get[_0x31a4('0xca')](){return[_0x415d54,_0x1d1b49,_0x4dea43];}constructor(_0x56eb43){super(_0x56eb43),this[_0x31a4('0xc0')]=null,this[_0x31a4('0x14')]=null,this['_revisionDataBuilder']=new H(this[_0x31a4('0x105')]),this[_0x31a4('0xd5')]=this[_0x31a4('0x105')][_0x31a4('0x7b')][_0x31a4('0xc6')](_0x31a4('0x4a'))||_0x31a4('0x41'),this['_bufferedUpdates']=new Map(),this[_0x31a4('0xa4')]=null;const _0x170b56=_0x1038e3();this[_0x31a4('0x7')]={'history':this[_0x31a4('0x105')]['model'][_0x31a4('0xd')][_0x31a4('0xa9')],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x31a4('0x79')][_0x31a4('0xd')]['version']),'getCurrentRevisionId':()=>_0x170b56},this[_0x31a4('0xe4')](_0x31a4('0x83'),!0x1),this[_0x31a4('0xe4')](_0x31a4('0xc2'),!0x0),this[_0x31a4('0xe4')](_0x31a4('0x68'),!0x1),this['editor']['config'][_0x31a4('0xb9')](_0x31a4('0x91'),!0x0),this[_0x31a4('0x105')][_0x31a4('0x66')][_0x31a4('0xb')](_0x31a4('0x18'))[_0x31a4('0x54')]({'view':_0x31a4('0xe2')});}[_0x31a4('0x40')](){this[_0x31a4('0xb1')]=this[_0x31a4('0x105')][_0x31a4('0x5')][_0x31a4('0xc6')]('RevisionsRepository'),this[_0x31a4('0x63')](),this[_0x31a4('0x105')]['data']['on'](_0x31a4('0xb4'),()=>{const _0x18b8dc=this[_0x31a4('0xb1')]['getRevision'](0x0),_0x258163=_0x18b8dc&&null===_0x18b8dc[_0x31a4('0xe1')]?_0x18b8dc:null;if(this[_0x31a4('0x44')]=!!_0x258163&&this[_0x31a4('0x105')][_0x31a4('0x7b')][_0x31a4('0xc6')](_0x31a4('0x91')),this[_0x31a4('0x105')][_0x31a4('0x5')]['has']('RealTimeCollaborationClient')){const _0x302f8a=this[_0x31a4('0x7')][_0x31a4('0x3c')](),_0x54aba8=this[_0x31a4('0xb1')][_0x31a4('0x1d')](_0x302f8a);if(_0x54aba8)this[_0x31a4('0x69')]=_0x54aba8[_0x31a4('0xf0')],this[_0x31a4('0x44')]=!0x1;else{const _0x45dbff=this['_source']['history'][_0x31a4('0x88')][_0x31a4('0x82')](_0x4132c8=>!_0x4132c8[_0x31a4('0xf7')]),_0xa515e4=_0x45dbff?_0x45dbff['baseVersion']:this['_source']['history']['version'];_0x18b8dc?(_0x18b8dc[_0x31a4('0x53')]<_0xa515e4&&_0x18b8dc[_0x31a4('0xc4')]({'toVersion':_0xa515e4}),this[_0x31a4('0x44')]?(this[_0x31a4('0x7')][_0x31a4('0x3c')]=()=>_0x258163['id'],this[_0x31a4('0x69')]=_0x258163['fromVersion']):(this[_0x31a4('0x69')]=_0x18b8dc[_0x31a4('0x53')],this[_0x31a4('0x44')]=!0x1)):(this[_0x31a4('0x69')]=_0xa515e4,this[_0x31a4('0x44')]=!0x1);}}else _0x258163&&(this[_0x31a4('0x105')][_0x31a4('0x79')]['document'][_0x31a4('0xa9')][_0x31a4('0xbb')]=Math[_0x31a4('0x106')](_0x258163[_0x31a4('0x53')],this[_0x31a4('0x105')]['model']['document'][_0x31a4('0xa9')][_0x31a4('0xbb')]),_0x258163[_0x31a4('0xf0')]===_0x258163[_0x31a4('0x53')]?(0x0!==_0x258163[_0x31a4('0xf0')]&&(this['_source'][_0x31a4('0x3c')]=()=>_0x258163['id']),this[_0x31a4('0x44')]=!0x1):this['_continueCurrentRevision']&&(this['_source'][_0x31a4('0x3c')]=()=>_0x258163['id'],this['_startingVersion']=_0x258163[_0x31a4('0xf0')])),this[_0x31a4('0x44')]||(this[_0x31a4('0x69')]=this['editor'][_0x31a4('0x79')][_0x31a4('0xd')][_0x31a4('0xbb')]);this['_revisionDataBuilder']['init'](this[_0x31a4('0x7')]['history']),this[_0x31a4('0x7a')](this[_0x31a4('0x69')]),this['_createCurrentRevision'](this[_0x31a4('0x69')]),this[_0x31a4('0xc0')]&&this[_0x31a4('0x76')]();}),this[_0x31a4('0x7e')](_0x31a4('0x83'))['to'](this,_0x31a4('0x68'),_0x5cb439=>!_0x5cb439);}async[_0x31a4('0xac')](){if(this[_0x31a4('0xb1')][_0x31a4('0x2d')]>0x0){const _0x30b6b5=this[_0x31a4('0xb1')]['getRevision'](0x0),_0x1281e9=await this[_0x31a4('0x27')](_0x30b6b5),_0x3335ad=await this['getRevisionRootsAttributes'](_0x30b6b5);this[_0x31a4('0xb8')](_0x1281e9,_0x3335ad);}}[_0x31a4('0x39')](_0x4266a9){this[_0x31a4('0x7')]=_0x4266a9;}async[_0x31a4('0x108')](){const _0x36d100=await this['_source'][_0x31a4('0x77')]();if(_0x36d100>this['currentRevision'][_0x31a4('0x53')]){await this[_0x31a4('0x35')]();const _0x5d2856=this[_0x31a4('0x96')]({'revision':this[_0x31a4('0x14')],'to':_0x36d100});_0x5d2856[_0x31a4('0xf')]=_0x5d2856[_0x31a4('0x8d')][_0x31a4('0x90')](_0x4c9a6f=>this[_0x31a4('0x105')][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'))['getUser'](_0x4c9a6f)),this['currentRevision'][_0x31a4('0xc4')](_0x5d2856);}}async[_0x31a4('0x35')](){this[_0x31a4('0x44')]&&!this['_loadedStateData']&&(await this[_0x31a4('0x2a')](this[_0x31a4('0x14')]),this[_0x31a4('0xb3')]['loadState'](this[_0x31a4('0x14')]),this[_0x31a4('0xa4')]={'fromVersion':this[_0x31a4('0x14')][_0x31a4('0xf0')],'authors':this[_0x31a4('0x14')][_0x31a4('0xf')][_0x31a4('0x56')]()});}async[_0x31a4('0xd3')](_0x584b71={},_0x20bc7e=null){const _0x5e94c6=[];await this[_0x31a4('0x35')](),this['_continueCurrentRevision']=!0x1,_0x20bc7e>this[_0x31a4('0x14')][_0x31a4('0x53')]&&(_0x20bc7e=null),null===_0x20bc7e&&(_0x20bc7e=await this[_0x31a4('0x7')][_0x31a4('0x77')]());const _0x520faa=this[_0x31a4('0x34')](_0x20bc7e),_0x88bde5=this[_0x31a4('0x96')]({'from':_0x520faa,'to':_0x20bc7e});if(this[_0x31a4('0x14')][_0x31a4('0x53')]<_0x20bc7e){const _0x3cb507=this[_0x31a4('0x96')]({'revision':this[_0x31a4('0x14')],'from':_0x20bc7e,'to':_0x20bc7e});_0x3cb507[_0x31a4('0xf')]=[],_0x3cb507[_0x31a4('0x8d')]=[],_0x3cb507['id']=this[_0x31a4('0x14')]['id'],this[_0x31a4('0x14')][_0x31a4('0xc4')](_0x3cb507,!0x0),delete _0x3cb507[_0x31a4('0xf')],_0x5e94c6[_0x31a4('0xfd')](_0x3cb507);}_0x584b71['creatorId']=this['editor'][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'))['me']['id'],_0x584b71[_0x31a4('0x2f')]=_0x584b71[_0x31a4('0x2f')]||null,_0x584b71['id']=_0x584b71['id']||_0x1038e3(),_0x584b71={..._0x584b71,..._0x88bde5};const _0x9e55e7=this[_0x31a4('0xab')](_0x584b71);_0x5e94c6['push'](_0x584b71);const _0x432b46=this[_0x31a4('0xb1')]['getIndex'](_0x9e55e7);if(0x0!==_0x432b46){const _0x5020ba=this[_0x31a4('0xb1')]['getRevision'](_0x432b46-0x1);if(_0x5020ba['fromVersion']!==_0x20bc7e){const _0x292811=this[_0x31a4('0xb3')][_0x31a4('0xb7')](_0x20bc7e,_0x5020ba[_0x31a4('0x53')]),_0x27389b={'id':_0x5020ba['id'],'diffData':_0x292811[_0x31a4('0xd2')],'authorsIds':_0x292811[_0x31a4('0x8d')],'authors':_0x292811[_0x31a4('0x8d')]['map'](_0x391708=>this['editor'][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'))[_0x31a4('0x107')](_0x391708)),'fromVersion':_0x20bc7e};_0x5020ba===this[_0x31a4('0x14')]&&(_0x27389b[_0x31a4('0x64')]=new Date(_0x584b71[_0x31a4('0x64')][_0x31a4('0x6a')]()+0xa)),_0x5020ba[_0x31a4('0xc4')](_0x27389b,!0x0),delete _0x27389b[_0x31a4('0xf')],_0x5e94c6[_0x31a4('0xfd')](_0x27389b);}}if(this['adapter']){for(const _0x12844e of _0x5e94c6)this[_0x31a4('0xc8')](_0x12844e['id'],_0x12844e,!0x0);this[_0x31a4('0x76')]();}return _0x9e55e7;}['addRevisionData'](_0xbb05a9){const _0x3d0c7a=this[_0x31a4('0xb1')][_0x31a4('0x62')](_0xbb05a9);return this[_0x31a4('0xc0')]&&_0x3d0c7a['on'](_0x31a4('0xc4'),(_0x21ae7d,_0x1cd6c7,_0x9ca736)=>{_0x9ca736||(this[_0x31a4('0xc8')](_0x1cd6c7['id'],_0x1cd6c7,!0x0),this[_0x31a4('0x76')]());}),this['repository'][_0x31a4('0x57')](_0x3d0c7a,this['_findInsertionIndex'](_0x3d0c7a)),_0x3d0c7a;}async[_0x31a4('0x27')](_0x268fd8){await this[_0x31a4('0x2a')](_0x268fd8);const _0x21ae15={};for(const _0xfec749 in _0x268fd8[_0x31a4('0xd2')]){if(_0x268fd8['diffData'][_0xfec749]['attachChange']&&!_0x268fd8[_0x31a4('0xd2')][_0xfec749][_0x31a4('0x9e')][_0x31a4('0xf2')])continue;const _0x4d7a32=this[_0x31a4('0xa1')](JSON['parse'](_0x268fd8[_0x31a4('0xd2')][_0xfec749][_0x31a4('0x89')])),_0x558a01=this[_0x31a4('0x105')][_0x31a4('0xe3')]['view'][_0x31a4('0xd')],_0x461edb=new _0x4747fd(_0x558a01,_0x4d7a32[_0x31a4('0x90')](_0x319e85=>J(_0x319e85,this[_0x31a4('0x105')])));this[_0x31a4('0x105')]['data'][_0x31a4('0x9a')]['useFillerType'](_0x31a4('0xde')),_0x21ae15[_0xfec749]=this[_0x31a4('0x105')][_0x31a4('0x3b')]['processor'][_0x31a4('0xcc')](_0x461edb),this['editor'][_0x31a4('0x3b')][_0x31a4('0x9a')][_0x31a4('0x25')](_0x31a4('0xed'));}return _0x21ae15;}async[_0x31a4('0x1c')](_0xeb8c2b){await this[_0x31a4('0x2a')](_0xeb8c2b);const _0x4943f6={};for(const _0x36a42b in _0xeb8c2b[_0x31a4('0xd2')])_0xeb8c2b[_0x31a4('0xd2')][_0x36a42b]['attachChange']&&!_0xeb8c2b[_0x31a4('0xd2')][_0x36a42b][_0x31a4('0x9e')][_0x31a4('0xf2')]||(_0x4943f6[_0x36a42b]=_0xeb8c2b['diffData'][_0x36a42b][_0x31a4('0x50')]||{});return _0x4943f6;}[_0x31a4('0x76')](){if(0x0===this['_bufferedUpdates'][_0x31a4('0x51')])return;if(this[_0x31a4('0x68')])return;let _0x5a7624=Array[_0x31a4('0x20')](this[_0x31a4('0x67')]['values']());this[_0x31a4('0x67')][_0x31a4('0xbf')]();for(let _0x1f5f94=0x0;_0x1f5f94<_0x5a7624[_0x31a4('0x2d')];_0x1f5f94++){const _0x3dd5fa=_0x5a7624[_0x1f5f94];let _0x7853f6=!0x1;for(const _0x4f19bd of Object[_0x31a4('0x109')](_0x3dd5fa))void 0x0===_0x3dd5fa[_0x4f19bd]?delete _0x3dd5fa[_0x4f19bd]:'id'!==_0x4f19bd&&(_0x7853f6=!0x0);_0x7853f6||(_0x5a7624[_0x1f5f94]=null);}if(_0x5a7624=_0x5a7624[_0x31a4('0x8f')](_0x377f33=>null!==_0x377f33),!_0x5a7624[_0x31a4('0x2d')])return;for(let _0x1b4c53=0x0;_0x1b4c53<_0x5a7624[_0x31a4('0x2d')];_0x1b4c53++){const _0x283b1f=_0x5a7624[_0x1b4c53];void 0x0!==_0x283b1f[_0x31a4('0xf0')]&&void 0x0===_0x283b1f[_0x31a4('0x53')]&&(_0x283b1f[_0x31a4('0x53')]=this[_0x31a4('0xb1')][_0x31a4('0x1d')](_0x283b1f['id'])[_0x31a4('0x53')]),void 0x0!==_0x283b1f[_0x31a4('0x53')]&&void 0x0===_0x283b1f['fromVersion']&&(_0x283b1f['fromVersion']=this[_0x31a4('0xb1')][_0x31a4('0x1d')](_0x283b1f['id'])['fromVersion']);}const _0x3d2808=this[_0x31a4('0x105')][_0x31a4('0x7b')]['get'](_0x31a4('0x4a'));this[_0x31a4('0x68')]=!0x0,this[_0x31a4('0xef')](),this['adapter'][_0x31a4('0x7c')](_0x5a7624,_0x3d2808)[_0x31a4('0x80')](()=>{this[_0x31a4('0x68')]=!0x1;})['then'](_0x39994a=>{if(_0x39994a)for(const _0x270297 of _0x39994a)this[_0x31a4('0xe9')]({'id':_0x270297['id'],'createdAt':_0x270297['createdAt']});this[_0x31a4('0x32')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5409da,_0x39e5ee){let _0x2176d6=this[_0x31a4('0x105')][_0x31a4('0x7b')][_0x31a4('0xc6')](_0x31a4('0xe6')),_0x30445b=this[_0x31a4('0x105')][_0x31a4('0x7b')]['get'](_0x31a4('0xea'));if(void 0x0===_0x2176d6){_0x2176d6={};for(const _0x471b69 of this['editor']['model'][_0x31a4('0xd')][_0x31a4('0x43')]())_0x2176d6[_0x471b69]='';}if('string'==typeof _0x2176d6&&(_0x2176d6={'main':_0x2176d6}),void 0x0===_0x30445b){_0x30445b={};for(const _0x58c76e of this['editor'][_0x31a4('0x79')][_0x31a4('0xd')][_0x31a4('0x43')]())_0x30445b[_0x58c76e]={};}let _0x36f1fb=!0x1;const _0x41d049=Object[_0x31a4('0x109')](_0x2176d6),_0x3e62e2=Object[_0x31a4('0x109')](_0x5409da);for(const _0x3319bb of _0x41d049){if(_0x2176d6[_0x3319bb]!==_0x5409da[_0x3319bb]&&''!==_0x2176d6[_0x3319bb]['trim']()){_0x36f1fb=!0x0;break;}if(!_0x5b8e37(_0x30445b[_0x3319bb],_0x39e5ee[_0x3319bb])&&Object[_0x31a4('0x109')](_0x30445b[_0x3319bb])[_0x31a4('0x2d')]>0x0){_0x36f1fb=!0x0;break;}}_0x36f1fb||(_0x36f1fb=_0x3e62e2[_0x31a4('0x93')](_0x377df2=>!this[_0x31a4('0x105')][_0x31a4('0x79')]['document']['getRoot'](_0x377df2))),_0x36f1fb&&_0x4bbb2d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2176d6,'editorRootsAttributes':_0x30445b,'revisionData':_0x5409da,'revisionRootsAttributes':_0x39e5ee}),this[_0x31a4('0x105')][_0x31a4('0x7b')][_0x31a4('0xe4')](_0x31a4('0xe6'),_0x5409da),this[_0x31a4('0x105')][_0x31a4('0x7b')][_0x31a4('0xe4')](_0x31a4('0xea'),_0x39e5ee);}['_addPendingAction'](){if(!this[_0x31a4('0x17')]){const _0x219628=this['editor'][_0x31a4('0x5')][_0x31a4('0xc6')]('PendingActions');this[_0x31a4('0x17')]=_0x219628['add'](_0x457848(this[_0x31a4('0x105')][_0x31a4('0xbc')],_0x31a4('0x8')));}}[_0x31a4('0x32')](){this[_0x31a4('0x17')]&&(this[_0x31a4('0x105')]['plugins'][_0x31a4('0xc6')](_0x31a4('0xcb'))[_0x31a4('0x9f')](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1d942b){const _0x26d0b7=this[_0x31a4('0xb1')]['getRevisions']();_0x26d0b7[_0x31a4('0x6')]();let _0x29e613=0x0;for(;_0x29e613<_0x26d0b7[_0x31a4('0x2d')];){const _0x54ff8c=_0x26d0b7[_0x29e613];if(_0x54ff8c===this[_0x31a4('0x14')]){_0x29e613++;continue;}if(_0x54ff8c['id']===this[_0x31a4('0xd5')])break;const _0x1be39e=_0x1d942b[_0x31a4('0x53')]-_0x54ff8c[_0x31a4('0x53')]||_0x1d942b[_0x31a4('0xf0')]-_0x54ff8c[_0x31a4('0xf0')];if(_0x1be39e>0x0)break;if(_0x1be39e<0x0)_0x29e613++;else{if(!_0x1d942b[_0x31a4('0xe1')]&&_0x54ff8c['creator'])break;if(_0x54ff8c[_0x31a4('0xe1')]||!_0x1d942b[_0x31a4('0xe1')]){if(_0x1d942b[_0x31a4('0x64')]>_0x54ff8c[_0x31a4('0x64')])break;_0x29e613++;}else _0x29e613++;}}return _0x29e613;}['setRevisionData'](_0x37ca81){const _0x470535=this[_0x31a4('0xb1')][_0x31a4('0x1d')](_0x37ca81['id']);if(_0x37ca81[_0x31a4('0x64')]&&(_0x37ca81[_0x31a4('0x64')]=new Date(_0x37ca81[_0x31a4('0x64')])),_0x37ca81[_0x31a4('0x8d')]){const _0x7e4ae7=this['editor'][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'));_0x37ca81['authors']=_0x37ca81[_0x31a4('0x8d')][_0x31a4('0x90')](_0x3462c6=>_0x7e4ae7['getUser'](_0x3462c6));}_0x470535[_0x31a4('0xc4')](_0x37ca81,!0x0);}['buildRevisionData']({revision:_0x2815f3=null,from:_0x52636a=null,to:_0x5f0a07=null}){_0x52636a=null!==_0x52636a?_0x52636a:_0x2815f3[_0x31a4('0xf0')],_0x5f0a07=null!==_0x5f0a07?_0x5f0a07:_0x2815f3[_0x31a4('0x53')];const _0x586c51=this['_revisionDataBuilder'][_0x31a4('0xb7')](_0x52636a,_0x5f0a07),_0x2f5205={'diffData':_0x586c51[_0x31a4('0xd2')],'authorsIds':_0x586c51[_0x31a4('0x8d')],'fromVersion':_0x52636a,'toVersion':_0x5f0a07};if(!_0x2815f3||_0x5f0a07!==_0x2815f3['toVersion']){const _0x59a6fb=_0x5f0a07-0x1,_0x115ede=this['_source'][_0x31a4('0xa9')][_0x31a4('0x103')](_0x59a6fb);_0x2f5205['createdAt']=_0x115ede&&_0x115ede[_0x31a4('0x64')]||new Date();}if(this[_0x31a4('0xa4')]&&_0x52636a===this[_0x31a4('0xa4')][_0x31a4('0xf0')])for(const _0xeeda6c of this[_0x31a4('0xa4')][_0x31a4('0xf')])_0x2f5205[_0x31a4('0x8d')][_0x31a4('0x6e')](_0xeeda6c['id'])||_0x2f5205[_0x31a4('0x8d')][_0x31a4('0xfd')](_0xeeda6c['id']);return _0x2f5205;}['_loadRevisionData'](_0x483a38){if(!_0x483a38||_0x483a38[_0x31a4('0xd2')])return Promise[_0x31a4('0x95')]();{const _0x5818b1=this[_0x31a4('0x105')][_0x31a4('0x7b')]['get'](_0x31a4('0x4a'));return this[_0x31a4('0xc0')][_0x31a4('0x1d')]({'channelId':_0x5818b1,'revisionId':_0x483a38['id']})['then'](_0x35106c=>{_0x483a38['diffData']=_0x35106c[_0x31a4('0xd2')];});}}[_0x31a4('0xc8')](_0x4fcd4c,_0x4bd7c,_0x3bbde2){if(this[_0x31a4('0x67')][_0x31a4('0xc3')](_0x4fcd4c)){const _0x1ec456=this[_0x31a4('0x67')][_0x31a4('0xc6')](_0x4fcd4c);_0x4bd7c=_0x3bbde2?{..._0x1ec456,..._0x4bd7c}:{..._0x4bd7c,..._0x1ec456};}this[_0x31a4('0x67')]['set'](_0x4fcd4c,_0x4bd7c);}[_0x31a4('0x34')](_0x34d618){const _0xb2669b=this[_0x31a4('0xb1')][_0x31a4('0x30')]();_0xb2669b['reverse'](),_0xb2669b[_0x31a4('0x52')]();const _0x8909d0=_0xb2669b[_0x31a4('0x82')](_0x474a1c=>_0x474a1c[_0x31a4('0x53')]<=_0x34d618)[_0x31a4('0x53')];return _0x8909d0<this[_0x31a4('0x69')]?this['_startingVersion']:_0x8909d0;}[_0x31a4('0x7a')](_0x928697){const _0x551533=this[_0x31a4('0xb1')][_0x31a4('0x1d')](this[_0x31a4('0xb1')][_0x31a4('0x2d')]-0x1);if(_0x551533)this[_0x31a4('0xd5')]=_0x551533['id'];else{const _0x379ab6=!this['editor'][_0x31a4('0x79')][_0x31a4('0xd')][_0x31a4('0x60')][_0x31a4('0x82')](_0x31fd44=>this[_0x31a4('0x105')][_0x31a4('0x79')][_0x31a4('0x4e')](_0x31fd44)),_0x3e1562=this[_0x31a4('0x105')][_0x31a4('0x5')][_0x31a4('0xc6')]('Users')['me']['id'],_0x356916=_0x457848(this['editor'][_0x31a4('0xbc')],_0x379ab6?'Empty\x20document':_0x31a4('0xe0'));this[_0x31a4('0xec')]({'from':_0x928697,'to':_0x928697,'id':this['_initialRevisionId'],'name':_0x356916,'creatorId':_0x3e1562});}}[_0x31a4('0x36')](_0x3888ca){const _0x11dd5d=this['_source']['getCurrentRevisionId']();this[_0x31a4('0x14')]=this[_0x31a4('0xb1')]['getRevision'](_0x11dd5d),this[_0x31a4('0x14')]||(this['currentRevision']=this[_0x31a4('0xec')]({'from':_0x3888ca,'to':_0x3888ca,'id':_0x11dd5d,'name':'','creatorId':null}));}[_0x31a4('0xec')]({name:_0x2af72a,from:_0x35c0aa,to:_0x110341,creatorId:_0x3720e3,id:_0x379535}){const _0x15f795=this['buildRevisionData']({'from':_0x35c0aa,'to':_0x110341});_0x15f795[_0x31a4('0x2f')]=_0x2af72a,_0x15f795[_0x31a4('0x98')]=_0x3720e3,_0x15f795['id']=_0x379535;const _0x9ffc1b=this[_0x31a4('0xab')](_0x15f795);return this[_0x31a4('0xc0')]&&this[_0x31a4('0xc8')](_0x15f795['id'],_0x15f795,!0x0),_0x9ffc1b;}['_setConversion'](){this[_0x31a4('0x105')][_0x31a4('0x66')][_0x31a4('0xb')](_0x31a4('0x6b'))[_0x31a4('0x59')]({'model':_0x31a4('0xe2')});}[_0x31a4('0xa1')](_0x2bd751){return(_0x2bd751=_0x2bd751[_0x31a4('0x8f')](_0x1ad464=>!_0x1ad464[_0x31a4('0x2f')]||_0x31a4('0x10b')!==_0x1ad464[_0x31a4('0x2f')]&&_0x31a4('0x22')!==_0x1ad464['name']))['forEach'](_0x18c27f=>{'string'!=typeof _0x18c27f&&(_0x18c27f[_0x31a4('0x49')]=this[_0x31a4('0xa1')](_0x18c27f[_0x31a4('0x49')]),_0x18c27f[_0x31a4('0xb5')]=_0x18c27f['attributes']['filter'](_0x3158fe=>!_0x3158fe[0x0][_0x31a4('0x1a')]('data-revision-')));}),_0x2bd751;}}function J(_0x49d8c3,_0x1893ac){const _0x385a5c=_0x1893ac[_0x31a4('0xe3')][_0x31a4('0x86')][_0x31a4('0xd')];if('string'==typeof _0x49d8c3)return new _0x398bf2(_0x385a5c,_0x49d8c3);{const _0x32acef=_0x49d8c3['children'][_0x31a4('0x90')](_0x1ced26=>J(_0x1ced26,_0x1893ac));return new(B[_0x49d8c3[(_0x31a4('0xf9'))]]||_0x5e2b51)(_0x385a5c,_0x49d8c3[_0x31a4('0x2f')],_0x49d8c3[_0x31a4('0xb5')],_0x32acef);}}class H{constructor(_0x1c8a1d){this[_0x31a4('0x105')]=_0x1c8a1d,this[_0x31a4('0x3')]=new Map(),this[_0x31a4('0xf5')]=-0x1,this[_0x31a4('0x3d')]=-0x1,this[_0x31a4('0xc1')]=new Map(),this[_0x31a4('0x71')]=new Map(),this[_0x31a4('0x5d')]=new Map(),this['_baseRoots']=new Map(),this[_0x31a4('0x5b')]=new Map(),this['_idsRoots']=new Map(),this[_0x31a4('0x65')]=new Map(),this[_0x31a4('0xc5')]=new Map(),this[_0x31a4('0x5c')]=new Map(),this[_0x31a4('0x19')]=new Map(),this[_0x31a4('0x47')]=0x1;}[_0x31a4('0x40')](_0x1335c9){this[_0x31a4('0x9')]=_0x1335c9;const _0x565124=new Map(),_0x103a1a=new Map(),_0x5f23ad=this['editor']['model'][_0x31a4('0xd')][_0x31a4('0x60')][_0x31a4('0x90')](_0x459a26=>_0x459a26[_0x31a4('0x4f')]);for(const _0x5192da of _0x5f23ad){const _0x35c2e2=this[_0x31a4('0x105')]['model'][_0x31a4('0xd')]['getRoot'](_0x5192da),_0x101382=q(_0x35c2e2);_0x565124[_0x31a4('0xe4')](_0x5192da,_0x101382),_0x103a1a[_0x31a4('0xe4')](_0x5192da,Object[_0x31a4('0xd9')](_0x35c2e2[_0x31a4('0x7f')]()));}const _0x305125=Array[_0x31a4('0x20')](this[_0x31a4('0x105')][_0x31a4('0x79')][_0x31a4('0x2c')])['map'](_0x534f8d=>[_0x534f8d['name'],_0x534f8d[_0x31a4('0x4c')]()]),_0x52fd51=this['source'][_0x31a4('0xbb')];this['_saveMetaData'](_0x52fd51,_0x565124,_0x305125,_0x103a1a),this[_0x31a4('0xf1')]=this[_0x31a4('0x47')];const _0xeab80a=new Map(),_0x16453e=new Map();for(const _0x5cd04b of _0x5f23ad){const _0x1697e5=G(_0x5cd04b);_0xeab80a[_0x31a4('0xe4')](_0x5cd04b,_0x1697e5),_0x16453e[_0x31a4('0xe4')](_0x5cd04b,{});}this[_0x31a4('0x3f')](Number[_0x31a4('0x100')],_0xeab80a,[],_0x16453e);}[_0x31a4('0xb7')](_0xeb6aa5,_0x3b98ed){if(this[_0x31a4('0xf5')]===_0xeb6aa5&&this[_0x31a4('0x3d')]<=_0x3b98ed)this['_savedMetaData'][_0x31a4('0x51')]>0x1&&this[_0x31a4('0xb2')](this[_0x31a4('0x3d')]),this[_0x31a4('0x9d')](this[_0x31a4('0x3d')],_0x3b98ed,!0x0);else{if(!this[_0x31a4('0x3')][_0x31a4('0xc3')](_0xeb6aa5)){const _0x58173b=this[_0x31a4('0xcf')](_0xeb6aa5);this[_0x31a4('0x8a')](_0x58173b,_0xeb6aa5,!0x1);}this[_0x31a4('0x8a')](_0xeb6aa5,_0x3b98ed,!0x0);}return this[_0x31a4('0xf5')]=_0xeb6aa5,this[_0x31a4('0x3d')]=_0x3b98ed,this['_getState']();}[_0x31a4('0x102')](_0x20fc9f){this[_0x31a4('0xd8')](),this['_lastFrom']=_0x20fc9f[_0x31a4('0xf0')],this['_lastTo']=_0x20fc9f['toVersion'];for(const _0xde4b1a in _0x20fc9f[_0x31a4('0xd2')]){const _0x2adb92=_0x20fc9f[_0x31a4('0xd2')][_0xde4b1a][_0x31a4('0x9e')],_0x1ed640=_0x582885(_0x20fc9f['diffData'][_0xde4b1a][_0x31a4('0x8e')])||{},_0x28c918=this[_0x31a4('0xee')](_0x20fc9f[_0x31a4('0xd2')][_0xde4b1a][_0x31a4('0x99')]);_0x28c918[_0x31a4('0x4f')]=_0xde4b1a,_0x28c918[_0x31a4('0x101')]=!_0x2adb92||!_0x2adb92['isAttached'],_0x28c918[_0x31a4('0xf2')]=()=>_0x28c918['_isAttached'],this[_0x31a4('0xa0')][_0x31a4('0xe4')](_0xde4b1a,_0x28c918),this[_0x31a4('0x5b')][_0x31a4('0xe4')](_0xde4b1a,_0x1ed640),_0x2adb92&&this[_0x31a4('0x19')][_0x31a4('0xe4')](_0xde4b1a,_0x2adb92);const _0x4490fd=this[_0x31a4('0x10a')](_0x28c918);this['_baseIdsRoots'][_0x31a4('0xe4')](_0xde4b1a,_0x4490fd);for(const [_0x4afca2,_0x54e7f5]of _0x28c918[_0x31a4('0x2c')]){if(!_0x4afca2[_0x31a4('0x1a')](_0x31a4('0x58')))continue;const _0x20f69f=_0x4afca2[_0x31a4('0xaf')](':')[0x2];for(const _0x31c974 of _0x54e7f5[_0x31a4('0x8c')]({'singleCharacters':!0x0})){const _0x33b3fc=this[_0x31a4('0x6d')](_0x31c974),_0x53b47c=_0x31a4('0x29')==_0x31c974[_0x31a4('0xf9')]?_0x31c974[_0x31a4('0x16')]['path'][_0x31a4('0x56')](0x0,-0x1):_0x31c974[_0x31a4('0x16')][_0x31a4('0x75')],_0x44cda6=_0x4490fd[_0x31a4('0x8b')](_0x53b47c)[_0x31a4('0xbe')](_0x33b3fc);this[_0x31a4('0xc5')][_0x31a4('0xe4')](_0x44cda6,{'userId':_0x20f69f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5e81bb=[...Array(this[_0x31a4('0x47')])[_0x31a4('0x109')]()][_0x31a4('0x56')](0x1)[_0x31a4('0x8f')](_0x3c7534=>!this[_0x31a4('0xc5')]['has'](_0x3c7534));let _0x22bb19=0x0;const _0x5c3ce0=new Map();for(const _0x11ce52 in _0x20fc9f[_0x31a4('0xd2')]){const _0x1741e7=_0x20fc9f['diffData'][_0x11ce52][_0x31a4('0x9e')],_0x1564c1=_0x582885(_0x20fc9f['diffData'][_0x11ce52][_0x31a4('0x50')])||{},_0x4b18e7=this[_0x31a4('0xee')](_0x20fc9f[_0x31a4('0xd2')][_0x11ce52][_0x31a4('0x89')]);_0x4b18e7[_0x31a4('0x4f')]=_0x11ce52,_0x4b18e7[_0x31a4('0x101')]=!_0x1741e7||_0x1741e7['isAttached'],_0x4b18e7['isAttached']=()=>_0x4b18e7[_0x31a4('0x101')],this[_0x31a4('0x71')][_0x31a4('0xe4')](_0x11ce52,_0x4b18e7),this[_0x31a4('0x5d')][_0x31a4('0xe4')](_0x11ce52,_0x1564c1);const _0x48277b=this[_0x31a4('0x10a')](_0x4b18e7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x11ce52,_0x48277b),_0x5c3ce0[_0x31a4('0xe4')](_0x11ce52,_0x4b18e7['isAttached']()?_0x1564c1:{});for(const [_0x286870,_0x3b8d14]of _0x4b18e7[_0x31a4('0x2c')]){if(!_0x286870[_0x31a4('0x1a')](_0x31a4('0x58')))continue;const _0x5b955d=_0x286870[_0x31a4('0xaf')](':')[0x2];for(const _0x9ba92a of _0x3b8d14['getWalker']({'singleCharacters':!0x0})){const _0x21d973=this[_0x31a4('0x6d')](_0x9ba92a),_0x3eca08=this['_revisionId']++,_0x584054=_0x31a4('0x29')==_0x9ba92a[_0x31a4('0xf9')]?_0x9ba92a[_0x31a4('0x16')][_0x31a4('0x75')]['slice'](0x0,-0x1):_0x9ba92a[_0x31a4('0x16')]['path'];_0x48277b['getNodeByPath'](_0x584054)['_setAttribute'](_0x21d973,_0x3eca08),this[_0x31a4('0xc5')][_0x31a4('0xe4')](_0x3eca08,{'userId':_0x5b955d});}}for(const _0x58e457 of this[_0x31a4('0x105')][_0x31a4('0x79')]['createRangeIn'](_0x4b18e7)['getWalker']({'singleCharacters':!0x0})){const _0x51a78b=this[_0x31a4('0x6d')](_0x58e457),_0xee1fe6=_0x31a4('0x29')==_0x58e457[_0x31a4('0xf9')]?_0x58e457[_0x31a4('0x16')]['path'][_0x31a4('0x56')](0x0,-0x1):_0x58e457[_0x31a4('0x16')][_0x31a4('0x75')],_0x57d167=_0x48277b[_0x31a4('0x8b')](_0xee1fe6);_0x57d167[_0x31a4('0xbe')](_0x51a78b)>0x0||_0x57d167[_0x31a4('0x37')](_0x51a78b,_0x5e81bb[_0x22bb19++]);}for(const [_0x1fb17e,_0x364585]of _0x4b18e7[_0x31a4('0x2c')])_0x1fb17e[_0x31a4('0x1a')](_0x31a4('0x58'))||this[_0x31a4('0xc1')][_0x31a4('0xe4')](_0x1fb17e,_0x364585);}const _0x4370bf=G(_0x31a4('0xa3'));this[_0x31a4('0xa0')][_0x31a4('0xe4')](_0x31a4('0xa3'),_0x4370bf),this['_baseIdsRoots'][_0x31a4('0xe4')](_0x31a4('0xa3'),this[_0x31a4('0x10a')](_0x4370bf,0x1));const _0x2836a0=G('$graveyard');this['_diffRoots'][_0x31a4('0xe4')](_0x31a4('0xa3'),_0x2836a0),this['_idsRoots']['set'](_0x31a4('0xa3'),this[_0x31a4('0x10a')](_0x2836a0,0x1));const _0xcb5ffc=Array['from'](this[_0x31a4('0x71')])[_0x31a4('0x90')](([_0x584f88,_0x2ce66f])=>[_0x584f88,q(_0x2ce66f)]);this[_0x31a4('0x3f')](this['_lastTo'],_0xcb5ffc,this['_markers'],_0x5c3ce0);}[_0x31a4('0xee')](_0x255a46){const _0x54cffa=JSON['parse'](_0x255a46),_0x6288b6=this['editor'][_0x31a4('0xe3')][_0x31a4('0x86')]['document'],_0x2a89bb=new _0x4747fd(_0x6288b6,_0x54cffa[_0x31a4('0x90')](_0x114152=>J(_0x114152,this[_0x31a4('0x105')])));return this[_0x31a4('0x105')][_0x31a4('0x3b')][_0x31a4('0x5e')](_0x2a89bb);}['_saveMetaData'](_0xf99e02,_0x4d65e4,_0x10c4f2,_0x7bd052){const _0x35214d=new Map(_0x4d65e4),_0x5be93f=new Map(_0x582885(_0x7bd052)),_0xef31e2=new Map();for(const [_0x4f109c,_0x22d8e3]of _0x10c4f2)_0xef31e2[_0x31a4('0xe4')](_0x4f109c,{'start':_0x22d8e3['start'][_0x31a4('0x5a')](),'end':_0x22d8e3[_0x31a4('0x26')][_0x31a4('0x5a')](),'rootName':_0x22d8e3[_0x31a4('0xf6')][_0x31a4('0x4f')]});this[_0x31a4('0x3')][_0x31a4('0xe4')](_0xf99e02,{'roots':_0x35214d,'markers':_0xef31e2,'rootsAttributes':_0x5be93f});}['_removeMetaData'](_0x4461b0){this[_0x31a4('0x3')][_0x31a4('0x3e')](_0x4461b0);}[_0x31a4('0xdd')](){this[_0x31a4('0xd8')](),this[_0x31a4('0xf5')]=-0x1,this[_0x31a4('0x3d')]=-0x1,this[_0x31a4('0x3')]['clear'](),this['init'](this[_0x31a4('0x9')]);}[_0x31a4('0xd8')](){this['_touched'][_0x31a4('0xbf')](),this['_touchedMarkers'][_0x31a4('0xbf')](),this[_0x31a4('0x19')][_0x31a4('0xbf')](),this[_0x31a4('0x71')][_0x31a4('0xbf')](),this[_0x31a4('0x5d')][_0x31a4('0xbf')](),this[_0x31a4('0xa0')][_0x31a4('0xbf')](),this[_0x31a4('0x5b')][_0x31a4('0xbf')](),this['_idsRoots'][_0x31a4('0xbf')](),this['_baseIdsRoots'][_0x31a4('0xbf')](),this[_0x31a4('0xc1')][_0x31a4('0xbf')](),this[_0x31a4('0x47')]=0x1,this[_0x31a4('0xf1')]=this[_0x31a4('0x47')];}[_0x31a4('0x10a')](_0x44e13b,_0x5e24fb=null){let _0x4326e5=null;_0x44e13b['is'](_0x31a4('0x3a'))||(_0x4326e5=new _0x49a5cc(_0x44e13b[_0x31a4('0x2f')],{'vid_start':null===_0x5e24fb?this[_0x31a4('0x47')]++:_0x5e24fb++}));const _0x1288b3=[];for(const _0x3ae533 of _0x44e13b[_0x31a4('0x97')]())if(_0x3ae533['is'](_0x31a4('0x4d'))){_0x1288b3[_0x31a4('0xfd')](this[_0x31a4('0x10a')](_0x3ae533,_0x5e24fb));const _0x422a76=_0x1288b3[_0x1288b3['length']-0x1];null!==_0x5e24fb&&(_0x5e24fb=_0x422a76['is']('element',_0x31a4('0xb6'))?_0x422a76[_0x31a4('0xbe')](_0x31a4('0xc'))+0x1:_0x422a76[_0x31a4('0xbe')]('vid_end')+0x1);}else for(let _0x4cd418=0x0;_0x4cd418<_0x3ae533[_0x31a4('0xa6')];_0x4cd418++)_0x1288b3['push'](new _0x49a5cc('$text',{'vid':null===_0x5e24fb?this['_revisionId']++:_0x5e24fb++}));if(_0x44e13b['is'](_0x31a4('0x3a'))){const _0x58d371=G(_0x44e13b[_0x31a4('0x4f')]);return _0x58d371[_0x31a4('0x72')](0x0,_0x1288b3),_0x58d371;}return _0x4326e5[_0x31a4('0x37')](_0x31a4('0xfa'),null===_0x5e24fb?this[_0x31a4('0x47')]++:_0x5e24fb++),_0x4326e5[_0x31a4('0x72')](0x0,_0x1288b3),_0x4326e5;}[_0x31a4('0x8a')](_0x34afd8,_0x323172,_0x3ae23e){this[_0x31a4('0xd8')]();const {roots:_0x904508,markers:_0x48baaf,rootsAttributes:_0x243029}=this[_0x31a4('0x3')]['get'](_0x34afd8);this[_0x31a4('0xa0')]=new Map(_0x904508),this['_baseRootsAttributes']=new Map(_0x582885(_0x243029));for(const [_0x374046,_0x80fabd]of this['_baseRoots'])if('$graveyard'!==_0x374046&&(this['_diffRoots']['set'](_0x374046,q(_0x80fabd)),this['_diffRootsAttributes']=new Map(_0x582885(_0x243029)),_0x3ae23e)){const _0x57ac37=this[_0x31a4('0x47')];this['_idsRoots']['set'](_0x374046,this[_0x31a4('0x10a')](_0x80fabd)),this[_0x31a4('0x65')][_0x31a4('0xe4')](_0x374046,this[_0x31a4('0x10a')](_0x80fabd,_0x57ac37));}this['_startingRevisionId']=this[_0x31a4('0x47')],this[_0x31a4('0x71')][_0x31a4('0xe4')](_0x31a4('0xa3'),q(this['_baseRoots'][_0x31a4('0xc6')](_0x31a4('0xa3')))),_0x3ae23e&&this[_0x31a4('0x92')][_0x31a4('0xe4')]('$graveyard',this[_0x31a4('0x10a')](this['_baseRoots']['get'](_0x31a4('0xa3'))));for(const [_0x472b7a,_0x5ef49d]of _0x48baaf){const _0x591d99=this[_0x31a4('0xa0')][_0x31a4('0xc6')](_0x5ef49d[_0x31a4('0x4f')]),_0x317a38=this[_0x31a4('0x71')][_0x31a4('0xc6')](_0x5ef49d['rootName']),_0x2fcfe3=new _0x29bac1(this[_0x31a4('0x2e')](_0x5ef49d[_0x31a4('0x84')],_0x591d99),this['_fixPosition'](_0x5ef49d[_0x31a4('0x26')],_0x591d99)),_0x5492ec=this[_0x31a4('0xb0')](_0x2fcfe3,_0x317a38);_0x591d99[_0x31a4('0x2c')]['set'](_0x472b7a,_0x2fcfe3),this['_markers'][_0x31a4('0xe4')](_0x472b7a,_0x5492ec);}this[_0x31a4('0x9d')](_0x34afd8,_0x323172,_0x3ae23e);}[_0x31a4('0x9d')](_0x3d6ecf,_0x2c2342,_0x43f953){for(const _0x4aa315 of this[_0x31a4('0x9')][_0x31a4('0x31')](_0x3d6ecf,_0x2c2342))this[_0x31a4('0xf3')](_0x4aa315,_0x43f953);for(const _0x59a58a of this['_diffRoots'][_0x31a4('0xe7')]())_0x59a58a[_0x31a4('0x2c')][_0x31a4('0xbf')]();for(const [_0x352458,_0x3d5c2c]of this[_0x31a4('0xc1')]){this[_0x31a4('0x71')][_0x31a4('0xc6')](_0x3d5c2c[_0x31a4('0xf6')][_0x31a4('0x4f')])[_0x31a4('0x2c')]['set'](_0x352458,_0x3d5c2c['clone']());}const _0x334c3d=new Map(),_0x4d5c5a=new Map();for(const [_0x387e59,_0x28c7ff]of this[_0x31a4('0x71')])_0x334c3d['set'](_0x387e59,q(_0x28c7ff)),_0x4d5c5a[_0x31a4('0xe4')](_0x387e59,this['_diffRootsAttributes'][_0x31a4('0xc6')](_0x387e59));this[_0x31a4('0x3f')](_0x2c2342,_0x334c3d,this['_markers'],_0x4d5c5a);}[_0x31a4('0xcf')](_0xf1670d){const _0x34c819=Array[_0x31a4('0x20')](this['_savedMetaData'][_0x31a4('0x109')]());_0x34c819[_0x31a4('0xce')]((_0x5cede7,_0x3c67e5)=>_0x5cede7-_0x3c67e5),_0x34c819[_0x31a4('0x6')]();for(const _0x3eb60c of _0x34c819)if(_0x3eb60c<_0xf1670d)return _0x3eb60c;return Number['NEGATIVE_INFINITY'];}[_0x31a4('0x38')](_0x15f415,_0x5ad9c2){const _0x267e95=Array[_0x31a4('0x20')](_0x5ad9c2[_0x31a4('0x2c')])[_0x31a4('0x90')](([_0x1ad949,_0xf3e8d8])=>[_0x1ad949,this[_0x31a4('0xb0')](_0xf3e8d8,_0x15f415)]);_0x15f415['markers']=new Map(_0x267e95);}[_0x31a4('0xfe')](_0x87ba01){for(const _0x50a38e of this[_0x31a4('0xc1')][_0x31a4('0xe7')]()){const _0x3df0f8=_0x50a38e[_0x31a4('0xcd')](_0x87ba01),_0x3603b2=_0x29bac1[_0x31a4('0xf8')](_0x3df0f8);_0x50a38e[_0x31a4('0x84')]=_0x3603b2['start'],_0x50a38e[_0x31a4('0x26')]=_0x3603b2['end'];}}[_0x31a4('0xf3')](_0x3de399,_0x32f74d){if(_0x31a4('0x48')==_0x3de399[_0x31a4('0xf9')]||_0x31a4('0xdc')==_0x3de399[_0x31a4('0xf9')])return void this[_0x31a4('0x81')](_0x3de399,_0x32f74d);if(_0x31a4('0x1f')==_0x3de399[_0x31a4('0xf9')]){const _0x5087e0=_0x3de399[_0x31a4('0xdf')][_0x31a4('0xf6')][_0x31a4('0x4f')];this[_0x31a4('0x71')][_0x31a4('0xc3')](_0x5087e0)||(this[_0x31a4('0x71')][_0x31a4('0xe4')](_0x5087e0,G(_0x5087e0,!0x0)),this[_0x31a4('0x5d')]['set'](_0x5087e0,{}),_0x32f74d&&this['_idsRoots'][_0x31a4('0xe4')](_0x5087e0,G(_0x5087e0,!0x0)));}else{if(_0x31a4('0xdb')==_0x3de399[_0x31a4('0xf9')]||'removeRootAttribute'==_0x3de399['type']||_0x31a4('0x55')==_0x3de399[_0x31a4('0xf9')])return void this['_handleRootAttributeOperation'](_0x3de399);}const _0x41010e=this[_0x31a4('0x13')](_0x3de399,this['_diffRoots']);if('marker'!==_0x3de399[_0x31a4('0xf9')]&&(_0x41010e['_execute'](),this[_0x31a4('0xfe')](_0x41010e)),_0x32f74d)switch(_0x41010e['type']){case _0x31a4('0x1f'):this[_0x31a4('0xe')](_0x3de399);break;case _0x31a4('0x24'):case _0x31a4('0x9f'):case _0x31a4('0x1b'):this[_0x31a4('0x12')](_0x3de399);break;case _0x31a4('0xd4'):this[_0x31a4('0xa8')](_0x3de399);break;case _0x31a4('0xaf'):this[_0x31a4('0xd7')](_0x3de399);break;case _0x31a4('0x4'):this[_0x31a4('0x73')](_0x3de399);}}['_cloneOperation'](_0x3859c9,_0xcf757e){const _0x4d11ec=_0x3859c9[_0x31a4('0x5a')]();return _0x4d11ec['_authorId']=_0x3859c9[_0x31a4('0xba')],this[_0x31a4('0xe5')](_0x4d11ec,_0xcf757e),_0x4d11ec;}[_0x31a4('0x15')](_0xad9e13){return _0xad9e13[_0x31a4('0x90')](_0x4fbcc8=>{const _0x24b839=this[_0x31a4('0x6d')](_0x4fbcc8);return Number(_0x4fbcc8['item']['getAttribute'](_0x24b839));});}[_0x31a4('0x61')](_0x5e31ec,_0x1e7f18){if(_0x5e31ec['is']('element','$text'))_0x1e7f18[_0x31a4('0xfd')]({'item':_0x5e31ec,'type':'text'});else{_0x5e31ec['is']('element')&&_0x1e7f18[_0x31a4('0xfd')]({'item':_0x5e31ec,'type':_0x31a4('0xfb')});for(const _0x486cb3 of _0x5e31ec['getChildren']())this[_0x31a4('0x61')](_0x486cb3,_0x1e7f18);_0x5e31ec['is']('element')&&_0x1e7f18[_0x31a4('0xfd')]({'item':_0x5e31ec,'type':_0x31a4('0x29')});}return _0x1e7f18;}[_0x31a4('0x9b')](){const _0x25a053=new Map(this[_0x31a4('0xc5')]),_0x207985=new Map(_0x25a053),_0x4101da=new Map(),_0x5031d7={'insertions':{},'deletions':{}},_0x215608={'insertions':{},'deletions':{}},_0x33a130=new Map(),_0x3a47fa=new Set([...this[_0x31a4('0xa0')]['keys'](),...this[_0x31a4('0x71')][_0x31a4('0x109')]()]);_0x3a47fa[_0x31a4('0x3e')](_0x31a4('0xa3'));for(const _0x1a6350 of _0x3a47fa){const _0x3c22e6=this[_0x31a4('0x71')][_0x31a4('0xc6')](_0x1a6350)||G(_0x1a6350,!0x1),_0x186cc6=this[_0x31a4('0xa0')][_0x31a4('0xc6')](_0x1a6350)||G(_0x1a6350,!0x1);_0x3c22e6[_0x31a4('0xf2')]()||_0x186cc6['isAttached']()?(_0x5031d7['insertions'][_0x1a6350]=q(_0x3c22e6),_0x5031d7[_0x31a4('0x99')][_0x1a6350]=q(_0x186cc6),this[_0x31a4('0x38')](_0x5031d7[_0x31a4('0x99')][_0x1a6350],_0x186cc6),this[_0x31a4('0x38')](_0x5031d7[_0x31a4('0x89')][_0x1a6350],_0x3c22e6),_0x215608[_0x31a4('0x89')][_0x1a6350]=this[_0x31a4('0x61')](this[_0x31a4('0x92')]['get'](_0x1a6350),[]),_0x215608[_0x31a4('0x99')][_0x1a6350]=this['_generateTape'](this[_0x31a4('0x65')][_0x31a4('0xc6')](_0x1a6350)||G(_0x1a6350,!0x1),[])):_0x3a47fa[_0x31a4('0x3e')](_0x1a6350);}for(const _0x58f4d6 of _0x3a47fa){const _0x1bd9bb=_0x215608['insertions'][_0x58f4d6];for(const _0x5b8191 of _0x1bd9bb){const _0x507a82=this['_getVidAttributeName'](_0x5b8191),_0x3c2396=_0x5b8191[_0x31a4('0x42')][_0x31a4('0xbe')](_0x507a82);_0x207985[_0x31a4('0x3e')](_0x3c2396),_0x3c2396>=this[_0x31a4('0xf1')]&&_0x4101da['set'](_0x3c2396,_0x25a053[_0x31a4('0xc6')](_0x3c2396));}}for(const _0x5f38f2 of _0x3a47fa){const _0x2a26fe=_0x215608['insertions'][_0x5f38f2],_0x521d44=this[_0x31a4('0x15')](_0x215608[_0x31a4('0x99')][_0x5f38f2]);let _0x48cee3=0x0;for(const _0x1e6edd of _0x2a26fe){const _0x4d2b14=this[_0x31a4('0x6d')](_0x1e6edd),_0x2be495=_0x1e6edd[_0x31a4('0x42')][_0x31a4('0xbe')](_0x4d2b14);if(!_0x4101da[_0x31a4('0xc3')](_0x2be495)&&!_0x33a130['has'](_0x2be495)){if(_0x207985['has'](_0x2be495))_0x48cee3++;else{if(_0x2be495!=_0x521d44[_0x48cee3]){const _0x3f53fe=_0x25a053[_0x31a4('0xc6')](_0x2be495)||_0x25a053['get'](_0x521d44[_0x48cee3]);for(;_0x2be495!=_0x521d44[_0x48cee3];)_0x207985[_0x31a4('0xc3')](_0x521d44[_0x48cee3])||(_0x33a130[_0x31a4('0xe4')](_0x521d44[_0x48cee3],_0x3f53fe),_0x25a053[_0x31a4('0xe4')](_0x521d44[_0x48cee3],_0x3f53fe)),_0x48cee3++;}_0x48cee3++;}}}}for(const _0x3f04b7 of _0x3a47fa){const _0x3b5d30=_0x215608[_0x31a4('0x89')][_0x3f04b7];for(const _0x43102f of _0x3b5d30){const _0x414918=this[_0x31a4('0x6d')](_0x43102f),_0x1cbd74=_0x43102f[_0x31a4('0x42')][_0x31a4('0xbe')](_0x414918);if(_0x33a130[_0x31a4('0xc3')](_0x1cbd74)){const _0x48b862=_0x33a130[_0x31a4('0xc6')](_0x1cbd74);_0x207985[_0x31a4('0xc3')](_0x1cbd74)||_0x207985[_0x31a4('0xe4')](_0x1cbd74,{..._0x48b862}),_0x4101da[_0x31a4('0xe4')](_0x1cbd74,{..._0x48b862});}}}for(const _0x479d28 of _0x207985[_0x31a4('0x109')]())_0x479d28>=this[_0x31a4('0xf1')]&&_0x207985['delete'](_0x479d28);const _0x4025a5=new Map();for(const _0x41407c of _0x3a47fa){let _0x3c9e53=_0x215608[_0x31a4('0x89')][_0x41407c];for(const _0x4c8175 of _0x3c9e53)if(_0x4c8175['item']['is']('element',_0x31a4('0xeb'))){const _0x249791=this['_getVidAttributeName'](_0x4c8175),_0x4229f8=_0x4c8175[_0x31a4('0x42')]['getAttribute'](_0x249791);if(_0x4101da[_0x31a4('0xc3')](_0x4229f8)){const _0x8a3782=_0x4c8175['item']['parent'][_0x31a4('0x6f')]['getAttribute']('vid_start'),_0x24ddf0=_0x4025a5[_0x31a4('0xc6')](_0x8a3782)||new Set();_0x24ddf0[_0x31a4('0x10')](_0x4101da['get'](_0x4229f8)[_0x31a4('0xa7')]),_0x4025a5[_0x31a4('0xe4')](_0x8a3782,_0x24ddf0);}}_0x3c9e53=_0x215608[_0x31a4('0x99')][_0x41407c];for(const _0x512117 of _0x3c9e53)if(_0x512117[_0x31a4('0x42')]['is'](_0x31a4('0x4d'),'tableCell')){const _0x2c6934=this[_0x31a4('0x6d')](_0x512117),_0x107014=_0x512117[_0x31a4('0x42')]['getAttribute'](_0x2c6934);if(_0x207985['has'](_0x107014)){const _0x2d56a5=_0x512117[_0x31a4('0x42')][_0x31a4('0x6f')][_0x31a4('0x6f')][_0x31a4('0xbe')](_0x31a4('0xd0')),_0x1621f6=_0x4025a5[_0x31a4('0xc6')](_0x2d56a5)||new Set();_0x1621f6[_0x31a4('0x10')](_0x207985[_0x31a4('0xc6')](_0x107014)[_0x31a4('0xa7')]),_0x4025a5[_0x31a4('0xe4')](_0x2d56a5,_0x1621f6);}}for(const _0x2fdf09 of _0x4025a5[_0x31a4('0x109')]())(_0x4101da[_0x31a4('0xc3')](_0x2fdf09)||_0x207985[_0x31a4('0xc3')](_0x2fdf09))&&_0x4025a5[_0x31a4('0x3e')](_0x2fdf09);}for(const _0x808ba9 of _0x3a47fa){const _0x924415=_0x215608[_0x31a4('0x89')][_0x808ba9];let _0x48be9f=null,_0x3bc0cd=null;for(const _0x3cc2c8 of _0x924415){const _0x3973df=this['_getVidAttributeName'](_0x3cc2c8),_0x227b58=_0x3cc2c8[_0x31a4('0x42')]['getAttribute'](_0x3973df),_0x514066=_0x4025a5[_0x31a4('0xc6')](_0x227b58);_0x514066&&_0x31a4('0xfb')==_0x3cc2c8['type']&&(_0x48be9f=Array['from'](_0x514066)[0x0],_0x3bc0cd=_0x3cc2c8['item'][_0x31a4('0xbe')](_0x31a4('0xfa'))),_0x48be9f&&(_0x207985[_0x31a4('0xe4')](_0x227b58,{'userId':_0x48be9f}),_0x4101da[_0x31a4('0xe4')](_0x227b58,{'userId':_0x48be9f})),_0x227b58==_0x3bc0cd&&(_0x48be9f=null,_0x3bc0cd=null);}}const _0x4952d7={},_0x27287e=new Set();for(const _0x290392 of _0x3a47fa){const _0x58aa33=_0x5031d7['deletions'][_0x290392],_0x5eb094=_0x5031d7[_0x31a4('0x89')][_0x290392];for(const {userId:_0x58cf0c}of this[_0x31a4('0x5c')][_0x31a4('0xe7')]())null!==_0x58cf0c&&_0x27287e[_0x31a4('0x10')](_0x58cf0c);for(const {userId:_0x45e95c}of this[_0x31a4('0x19')][_0x31a4('0xe7')]())null!==_0x45e95c&&_0x27287e['add'](_0x45e95c);this[_0x31a4('0xa5')](_0x5eb094,_0x215608['insertions'][_0x290392],_0x4101da,_0x31a4('0x7d'),_0x27287e),this[_0x31a4('0xa5')](_0x58aa33,_0x215608['deletions'][_0x290392],_0x207985,_0x31a4('0x5f'),_0x27287e),_0x4952d7[_0x290392]={'insertions':this['_prepareViewToSave'](_0x5eb094),'deletions':this[_0x31a4('0x9c')](_0x58aa33),'attachChange':this[_0x31a4('0x19')]['get'](_0x290392)||null,'attributesBefore':_0x582885(this[_0x31a4('0x5b')][_0x31a4('0xc6')](_0x290392))||{},'attributesAfter':_0x582885(this[_0x31a4('0x5d')][_0x31a4('0xc6')](_0x290392))};}return{'diffData':_0x4952d7,'authorsIds':Array[_0x31a4('0x20')](_0x27287e)};}[_0x31a4('0x21')](_0x21333b){for(const [,_0x4f5a35]of _0x21333b[_0x31a4('0x2c')]){const _0x458fea=_0x4f5a35['start'][_0x31a4('0xaa')]()[_0x31a4('0x8f')](_0x2f997c=>'tableCell'==_0x2f997c[_0x31a4('0x2f')]);for(const _0x20998b of _0x458fea)0x1==_0x20998b[_0x31a4('0x11')]&&_0x20998b[_0x31a4('0x87')](0x0)['is'](_0x31a4('0x4d'),_0x31a4('0x46'))&&_0x20998b[_0x31a4('0x87')](0x0)[_0x31a4('0x37')]('keepParagraph',!0x0);}}[_0x31a4('0x9c')](_0xa67a84){this[_0x31a4('0x21')](_0xa67a84);const _0x243301=this[_0x31a4('0x105')]['data'][_0x31a4('0xad')](_0xa67a84,{}),_0x16bffc=Array[_0x31a4('0x20')](_0x243301[_0x31a4('0x97')]())['map'](_0x34e1d6=>this['_getViewJson'](_0x34e1d6));return JSON[_0x31a4('0xd1')](_0x16bffc);}[_0x31a4('0xe8')](_0x24f9bb){if(_0x24f9bb['is'](_0x31a4('0xb6')))return _0x24f9bb[_0x31a4('0x3b')];{const _0x26c380=_0x24f9bb;return{'type':Object['keys'](B)[_0x31a4('0x82')](_0x27983a=>_0x24f9bb instanceof B[_0x27983a]),'name':_0x26c380[_0x31a4('0x2f')],'attributes':Array[_0x31a4('0x20')](_0x26c380[_0x31a4('0x7f')]()),'children':Array[_0x31a4('0x20')](_0x26c380[_0x31a4('0x97')]())[_0x31a4('0x90')](_0x360c6c=>this[_0x31a4('0xe8')](_0x360c6c))};}}['_markChanges'](_0x1431b5,_0x2e3347,_0x3d4163,_0x3306a1,_0x66656a){let _0x5000c4=null,_0x288eec=null,_0x808db6=0x0;const _0x2e1aeb=this[_0x31a4('0x105')][_0x31a4('0x79')];for(let _0x3b436d=0x0;_0x3b436d<_0x2e3347[_0x31a4('0x2d')];_0x3b436d++){const _0x1c1893=this[_0x31a4('0x6d')](_0x2e3347[_0x3b436d]),_0x330501=_0x2e3347[_0x3b436d][_0x31a4('0x42')][_0x31a4('0xbe')](_0x1c1893),_0xf32a5c=_0x3d4163['get'](_0x330501),_0x5d8d31=_0x3b436d==_0x2e3347[_0x31a4('0x2d')]-0x1;(!_0x5000c4&&_0xf32a5c&&(_0x5000c4=_0xf32a5c,_0x288eec=_0x2e3347[_0x3b436d]),_0x5000c4&&(!_0xf32a5c||_0xf32a5c['userId']!=_0x5000c4['userId']))&&(_0x1f6e63(_0xf32a5c,L(_0x288eec,_0x1431b5,_0x2e1aeb),L(_0x2e3347[_0x3b436d],_0x1431b5,_0x2e1aeb)),_0x5000c4=_0xf32a5c||null,_0x288eec=_0xf32a5c?_0x2e3347[_0x3b436d]:null),_0x5000c4&&_0x5d8d31&&_0x1f6e63(_0xf32a5c,L(_0x288eec,_0x1431b5,_0x2e1aeb),W(_0x2e3347[_0x3b436d],_0x1431b5,_0x2e1aeb));}function _0x1f6e63(_0x295710,_0x7fc9c,_0x70c658){const _0x590370=_0x5000c4[_0x31a4('0xa7')],_0x53a5c5=_0x31a4('0x58')+_0x3306a1+':'+_0x590370+':'+_0x808db6++,_0x74b6a2=_0x2e1aeb[_0x31a4('0xae')](_0x7fc9c,_0x70c658);_0x1431b5[_0x31a4('0x2c')][_0x31a4('0xe4')](_0x53a5c5,_0x74b6a2),null!==_0x590370&&_0x66656a['add'](_0x590370);}}[_0x31a4('0x6d')](_0x597eff){switch(_0x597eff[_0x31a4('0xf9')]){case _0x31a4('0xfb'):return _0x31a4('0xd0');case _0x31a4('0x29'):return _0x31a4('0xfa');default:return _0x31a4('0xc');}}['_fixOperation'](_0x1cd3cd,_0x5eaa4d){_0x1cd3cd[_0x31a4('0x70')]=null;for(const _0x1dba01 in _0x1cd3cd){const _0x5c7076=_0x1cd3cd[_0x1dba01];if(_0x5c7076 instanceof _0x4f6a77){const _0x125ac5=_0x5eaa4d['get'](_0x5c7076[_0x31a4('0xf6')]['rootName']);_0x1cd3cd[_0x1dba01]=this['_fixPosition'](_0x5c7076,_0x125ac5);}if(_0x5c7076 instanceof _0x29bac1){const _0x5c8e93=_0x5eaa4d['get'](_0x5c7076[_0x31a4('0xf6')]['rootName']);_0x1cd3cd[_0x1dba01]=this[_0x31a4('0xb0')](_0x5c7076,_0x5c8e93);}'root'===_0x1dba01&&(_0x1cd3cd[_0x31a4('0xf6')]=_0x5eaa4d[_0x31a4('0xc6')](_0x1cd3cd[_0x31a4('0xf6')][_0x31a4('0x4f')]));}}[_0x31a4('0xb0')](_0x536e93,_0x2df0b2){return this['editor'][_0x31a4('0x79')]['createRange'](this['_fixPosition'](_0x536e93['start'],_0x2df0b2),this[_0x31a4('0x2e')](_0x536e93[_0x31a4('0x26')],_0x2df0b2));}['_fixPosition'](_0xd71f3f,_0x326b15){return this[_0x31a4('0x105')][_0x31a4('0x79')][_0x31a4('0x2b')](_0x326b15,_0xd71f3f[_0x31a4('0x75')],_0xd71f3f[_0x31a4('0xfc')]);}[_0x31a4('0xe')](_0x747818){const _0x5bf90b=this[_0x31a4('0x92')][_0x31a4('0xc6')](_0x747818[_0x31a4('0xdf')]['root']['rootName']),_0x5668cb=this[_0x31a4('0x2e')](_0x747818[_0x31a4('0xdf')],_0x5bf90b),_0x2e8bfd=null===_0x747818[_0x31a4('0xba')]?null:_0x747818['_authorId']||this[_0x31a4('0x105')][_0x31a4('0x5')]['get'](_0x31a4('0x23'))['me']['id'],_0x45ece6=_0x5668cb['parent'],_0x66d2d6=this[_0x31a4('0x47')],_0x428f04=[];for(const _0x146f8f of _0x747818[_0x31a4('0x6c')])if(_0x146f8f['is'](_0x31a4('0x4d')))_0x428f04[_0x31a4('0xfd')](this[_0x31a4('0x10a')](_0x146f8f));else for(let _0x5c9303=0x0;_0x5c9303<_0x146f8f['offsetSize'];_0x5c9303++)_0x428f04[_0x31a4('0xfd')](new _0x49a5cc(_0x31a4('0xb6'),{'vid':this[_0x31a4('0x47')]++}));const _0x20b4fa=this[_0x31a4('0x47')];for(let _0x259efb=_0x66d2d6;_0x259efb<_0x20b4fa;_0x259efb++)this[_0x31a4('0xc5')][_0x31a4('0xe4')](_0x259efb,{'userId':_0x2e8bfd});_0x45ece6['_insertChild'](_0x5668cb[_0x31a4('0x94')],_0x428f04);}[_0x31a4('0x12')](_0x6eb6e8){(_0x6eb6e8=this[_0x31a4('0x13')](_0x6eb6e8,this[_0x31a4('0x92')]))[_0x31a4('0xa')]();const _0x220a8b=null===_0x6eb6e8['_authorId']?null:_0x6eb6e8[_0x31a4('0xba')]||this[_0x31a4('0x105')][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'))['me']['id'],_0x37cb12=_0x6eb6e8[_0x31a4('0xff')](),_0x45cbba=_0x37cb12[_0x31a4('0x6f')],_0x3e1a5d=_0x37cb12[_0x31a4('0x94')];!function _0x159680(_0x1ffe01,_0x437ab5,_0x4cf72c,_0x228dc7){for(let _0x2c8f40=_0x4cf72c;_0x2c8f40<_0x228dc7;_0x2c8f40++){const _0x2a8fc5=_0x437ab5[_0x31a4('0x87')](_0x2c8f40);_0x2a8fc5['is'](_0x31a4('0x4d'),_0x31a4('0xb6'))?_0x1ffe01['set'](_0x2a8fc5[_0x31a4('0xbe')]('vid'),{'userId':_0x220a8b}):(_0x1ffe01[_0x31a4('0xe4')](_0x2a8fc5[_0x31a4('0xbe')](_0x31a4('0xd0')),{'userId':_0x220a8b}),_0x159680(_0x1ffe01,_0x2a8fc5,0x0,_0x2a8fc5[_0x31a4('0x11')]),_0x1ffe01[_0x31a4('0xe4')](_0x2a8fc5['getAttribute'](_0x31a4('0xfa')),{'userId':_0x220a8b}));}}(this['_touched'],_0x45cbba,_0x3e1a5d,_0x3e1a5d+_0x6eb6e8[_0x31a4('0x4b')]);}['_handleMergeOperation'](_0x39fefe){const _0x11967a=null===(_0x39fefe=this[_0x31a4('0x13')](_0x39fefe,this['_idsRoots']))[_0x31a4('0xba')]?null:_0x39fefe[_0x31a4('0xba')]||this[_0x31a4('0x105')][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'))['me']['id'],_0x43cca9=_0x39fefe['targetPosition'][_0x31a4('0x6f')],_0x2ccc71=_0x39fefe[_0x31a4('0xda')][_0x31a4('0x6f')],_0x39e178=_0x43cca9[_0x31a4('0xbe')]('vid_end'),_0x2a9b43=_0x2ccc71['getAttribute'](_0x31a4('0xd0'));_0x43cca9[_0x31a4('0x37')](_0x31a4('0xfa'),_0x2ccc71[_0x31a4('0xbe')]('vid_end')),_0x2ccc71[_0x31a4('0x37')](_0x31a4('0xfa'),_0x39e178),this[_0x31a4('0xc5')]['set'](_0x2a9b43,{'userId':_0x11967a}),this[_0x31a4('0xc5')][_0x31a4('0xe4')](_0x39e178,{'userId':_0x11967a}),_0x39fefe[_0x31a4('0xa')]();}[_0x31a4('0xd7')](_0x5d8177){const _0x3baeeb=null===(_0x5d8177=this[_0x31a4('0x13')](_0x5d8177,this[_0x31a4('0x92')]))[_0x31a4('0xba')]?null:_0x5d8177[_0x31a4('0xba')]||this[_0x31a4('0x105')][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'))['me']['id'],_0x1c9a13=_0x5d8177[_0x31a4('0x85')],_0x5bb419=_0x5d8177[_0x31a4('0x33')]['parent'];_0x5d8177[_0x31a4('0xa')]();const _0x1503d6=_0x5bb419[_0x31a4('0xbe')](_0x31a4('0xfa')),_0xfcbdea=_0x5d8177['insertionPosition'][_0x31a4('0xf4')];if(_0x1c9a13){const _0x5cac4c=_0xfcbdea['getAttribute'](_0x31a4('0xfa')),_0x16c8aa=_0x5bb419[_0x31a4('0xbe')](_0x31a4('0xfa'));_0x5bb419['_setAttribute'](_0x31a4('0xfa'),_0x5cac4c),_0xfcbdea[_0x31a4('0x37')](_0x31a4('0xfa'),_0x16c8aa),this[_0x31a4('0xc5')][_0x31a4('0xe4')](_0x5bb419[_0x31a4('0xbe')](_0x31a4('0xfa')),{'userId':_0x3baeeb}),this[_0x31a4('0xc5')][_0x31a4('0xe4')](_0xfcbdea[_0x31a4('0xbe')]('vid_start'),{'userId':_0x3baeeb});}else{const _0x23839e=this['_revisionId']++,_0x223715=this[_0x31a4('0x47')]++;_0x5bb419[_0x31a4('0x37')]('vid_end',_0x23839e),_0xfcbdea[_0x31a4('0x37')](_0x31a4('0xd0'),_0x223715),_0xfcbdea[_0x31a4('0x37')](_0x31a4('0xfa'),_0x1503d6),this[_0x31a4('0xc5')]['set'](_0x23839e,{'userId':_0x3baeeb}),this['_touched'][_0x31a4('0xe4')](_0x223715,{'userId':_0x3baeeb});}}[_0x31a4('0x73')](_0x40e8a1){if(!_0x40e8a1['affectsData'])return;const _0x12d40b=(_0x40e8a1=this[_0x31a4('0x13')](_0x40e8a1,this['_diffRoots']))[_0x31a4('0x0')]?_0x40e8a1[_0x31a4('0x0')][_0x31a4('0xf6')]:null,_0x11292a=_0x40e8a1[_0x31a4('0x28')]?_0x40e8a1[_0x31a4('0x28')][_0x31a4('0xf6')]:null;_0x12d40b&&this['_markers'][_0x31a4('0x3e')](_0x40e8a1['name']),_0x11292a&&this['_markers'][_0x31a4('0xe4')](_0x40e8a1['name'],_0x40e8a1[_0x31a4('0x28')]['clone']());const _0x2db37d=null===_0x40e8a1[_0x31a4('0xba')]?null:_0x40e8a1[_0x31a4('0xba')]||this['editor'][_0x31a4('0x5')]['get'](_0x31a4('0x23'))['me']['id'],_0x242cbd=_0x40e8a1[_0x31a4('0x2f')];if(!this[_0x31a4('0x5c')]['has'](_0x242cbd))return void this[_0x31a4('0x5c')][_0x31a4('0xe4')](_0x242cbd,{'range':_0x40e8a1[_0x31a4('0x0')],'userId':_0x2db37d});const _0x587641=this[_0x31a4('0x5c')][_0x31a4('0xc6')](_0x242cbd),_0x21783e=_0x587641[_0x31a4('0xc7')],_0x4775bb=_0x40e8a1[_0x31a4('0x28')];null==_0x21783e&&null==_0x4775bb||_0x21783e&&_0x4775bb&&_0x21783e[_0x31a4('0x74')](_0x4775bb)?this['_touchedMarkers'][_0x31a4('0x3e')](_0x40e8a1[_0x31a4('0x2f')]):_0x587641['userId']=_0x2db37d;}['_handleRootOperation'](_0x1c69c2,_0x58a3dc){this['_diffRoots'][_0x31a4('0xc3')](_0x1c69c2[_0x31a4('0x4f')])?this['_diffRoots'][_0x31a4('0xc6')](_0x1c69c2[_0x31a4('0x4f')])['_isAttached']=_0x1c69c2['isAdd']:(this[_0x31a4('0x71')][_0x31a4('0xe4')](_0x1c69c2['rootName'],G(_0x1c69c2[_0x31a4('0x4f')],!0x0)),this[_0x31a4('0x5d')][_0x31a4('0xe4')](_0x1c69c2[_0x31a4('0x4f')],{}),_0x58a3dc&&this[_0x31a4('0x92')][_0x31a4('0xe4')](_0x1c69c2[_0x31a4('0x4f')],G(_0x1c69c2[_0x31a4('0x4f')],!0x0)));const _0x34812d=null===_0x1c69c2[_0x31a4('0xba')]?null:_0x1c69c2['_authorId']||this[_0x31a4('0x105')][_0x31a4('0x5')][_0x31a4('0xc6')](_0x31a4('0x23'))['me']['id'],_0x4dded4=this[_0x31a4('0x19')]['get'](_0x1c69c2[_0x31a4('0x4f')]);_0x4dded4&&_0x4dded4['userId']===_0x34812d?this['_touchedRoots'][_0x31a4('0x3e')](_0x1c69c2[_0x31a4('0x4f')]):this['_touchedRoots']['set'](_0x1c69c2[_0x31a4('0x4f')],{'userId':_0x34812d,'isAttached':_0x1c69c2[_0x31a4('0x1')]});}[_0x31a4('0x78')](_0x454899){const _0xecb59b=this[_0x31a4('0x5d')][_0x31a4('0xc6')](_0x454899[_0x31a4('0xf6')][_0x31a4('0x4f')]);null===_0x454899[_0x31a4('0xd6')]?delete _0xecb59b[_0x454899[_0x31a4('0xa2')]]:_0xecb59b[_0x454899[_0x31a4('0xa2')]]=_0x454899['newValue'];}}function q(_0x2375cc){const _0x115708=G(_0x2375cc[_0x31a4('0x4f')],_0x2375cc[_0x31a4('0xf2')]());for(const _0x269e16 of _0x2375cc[_0x31a4('0x97')]()){const _0x5b1f40=_0x269e16[_0x31a4('0x2')](!0x0);_0x115708[_0x31a4('0x104')](_0x5b1f40);}return _0x115708;}function G(_0x185255,_0x1a1e5b=!0x0){const _0x2ff9ed=new _0x1fc737();return _0x2ff9ed[_0x31a4('0x4f')]=_0x185255,_0x2ff9ed[_0x31a4('0x101')]=_0x1a1e5b,_0x2ff9ed[_0x31a4('0xf2')]=()=>_0x2ff9ed[_0x31a4('0x101')],_0x2ff9ed;}function L(_0x322b92,_0x1acf01,_0x29c0fb){const _0x30a691=_0x31a4('0x29')==_0x322b92[_0x31a4('0xf9')]?_0x29c0fb['createPositionAt'](_0x322b92[_0x31a4('0x42')],_0x31a4('0x26')):_0x29c0fb[_0x31a4('0xbd')](_0x322b92['item']);return _0x29c0fb['createPositionFromPath'](_0x1acf01,_0x30a691[_0x31a4('0x75')],_0x30a691['stickiness']);}function W(_0x3f17d2,_0x554be2,_0xb17474){const _0x3aa8f7=_0x31a4('0xfb')==_0x3f17d2['type']?_0xb17474[_0x31a4('0xc9')](_0x3f17d2['item'],0x0):_0xb17474['createPositionAfter'](_0x3f17d2['item']);return _0xb17474[_0x31a4('0x2b')](_0x554be2,_0x3aa8f7[_0x31a4('0x75')],_0x3aa8f7[_0x31a4('0xfc')]);}
|