@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231201.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/README.md +1 -1
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +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 _0x5107=['buildRevisionData','filter','element','revision','$text','howMany','getAncestors','setRevisionData','_update','string','userId','_handleSplitOperation','_markers','conversion','_touched','updateRevisions','root','createPositionBefore','setSource','fromEntries','Users','revision:','_removePendingAction','_reset','name','start','markerToData','_diffRootsAttributes','getAttributes','push','addRevisionData','getAttribute','_revisionDataBuilder','creatorId','_getVidAttributeName','clone','_createFromRanges','oldRange','_removeMetaData','find','toView','getRoot','_authorId','authors','get','_touchedRoots','_createCurrentRevision','processor','for','addRootAttribute','insert','insertions','getRevisionRootsAttributes','elementStart','_loadState','elementEnd','_baseRootsAttributes','shift','rootsAttributes','Empty\x20document','startsWith','map','paragraph','_handleMarkerOperation','getData','_insertChild','split','locale','_lastTo','key','addRevision','_touchedMarkers','createPositionAt','path','_getViewJson','init','sort','update','merge','_prepareViewToSave','_generateTape','_startingVersion','_diffRoots','_fixPosition','delete','data','deletion','_setAttribute','editing','PENDING_ACTION_REVISION_HISTORY','offset','collaboration.channelId','_getBaseVids','afterInit','_baseRoots','marked','getCurrentRevisionId','loadState','getLatestVersion','_getFromVersion','_markChanges','requires','createRange','getChild','max','values','_makeModelFromViewString','range','_pendingAction','newRange','_makeIdsRoot','_handleMoveOperation','getNodeByPath','authorsIds','isAdd','children','config','version','add','useFillerType','attributesBefore','length','roots','documentFragment','history','attributes','upcast','stringify','createPositionFromPath','isReady','getRevisionDocumentData','sendBufferedUpdates','getOperation','getUser','$graveyard','type','_replaceEditorDataWithRevisionData','repository','_cloneOperation','_getState','toVersion','forEach','adapter','_source','model','getTransformedByOperation','_getPreviousFrom','_continueCurrentRevision','reInit','_setConversion','getRootNames','getChildren','_saveMetaData','_createInitialRevision','_copyMarkers','rootName','childCount','_handleRootOperation','_lastFrom','attachChange','plugins','_fixRange','data-revision-','currentRevision','resolve','nodeAfter','createdAt','default','getMovedRangeStart','previousPosition','keepParagraph','from','Initial\x20revision','NEGATIVE_INFINITY','isEqual','view','_transformMarkers','editor-initial-data-replaced-with-revision-data','_isPendingUpdate','end','_bufferUpdate','_isInit','move','_loadedStateData','_isAttached','nodes','offsetSize','size','creator','includes','_makeRevision','isAttached','tableCell','createRangeIn','_execute','_appendChild','_findInsertionIndex','fromVersion','_calculateMetaData','deletions','_removeRevisionMarkers','getWalker','has','_handleInsertOperation','_fixOperation','stickiness','_idsRoots','addRoot','then','vid_end','getRevisions','hasContent','getRevision','attributesAfter','parent','reverse','remove','parse','_handleMergeOperation','item','reinsert','revisionHistory.resumeUnsavedRevision','position','_addPendingAction','diffData','markers','finally','vid','getTime','dataToMarker','RevisionTracker','define','set','newValue','_loadRevisionData','_revisionId','_handleOperation','keys','_handleRootAttributeOperation','getIndex','editor','initial','marker','vid_start','trim','_startingRevisionId','_bufferedUpdates','_processRootBeforeSave','slice','source','clear','_savedMetaData','insertion','PendingActions','_operations','document','RealTimeCollaborationClient','_initialRevisionId','affectsData','initialData','_clone','_baseIdsRoots'];(function(_0x1900de,_0x5107c7){const _0x210154=function(_0x28151f){while(--_0x28151f){_0x1900de['push'](_0x1900de['shift']());}};_0x210154(++_0x5107c7);}(_0x5107,0xcd));const _0x2101=function(_0x1900de,_0x5107c7){_0x1900de=_0x1900de-0x0;let _0x210154=_0x5107[_0x1900de];return _0x210154;};import{Users as _0x4057f2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x56b4e8,PendingActions as _0xefaa67}from'ckeditor5/src/core';import{logWarning as _0x486b21,uid as _0x4b524a}from'ckeditor5/src/utils';import{Position as _0x372bce,Range as _0x495a05,Element as _0x25fef9,DocumentFragment as _0x4ab913,ViewText as _0x9942ef,ViewElement as _0x3892a0,ViewContainerElement as _0x86e474,ViewAttributeElement as _0x190749,ViewEmptyElement as _0x34c5f9,ViewRawElement as _0x46b943,ViewUIElement as _0x57d5ec,ViewDocumentFragment as _0xa1f4f6}from'ckeditor5/src/engine';import _0x517989 from'./revisionsrepository';import{getTranslation as _0x138e66}from'./utils/common-translations';import{cloneDeep as _0x1e65fb,isEqual as _0x31c93d}from'lodash-es';const B={'c':_0x86e474,'a':_0x190749,'e':_0x34c5f9,'r':_0x46b943,'u':_0x57d5ec};export default class l extends _0x56b4e8{static get['pluginName'](){return _0x2101('0x19');}static get[_0x2101('0x9e')](){return[_0x4057f2,_0x517989,_0xefaa67];}constructor(_0x3ee674){super(_0x3ee674),this[_0x2101('0xc7')]=null,this[_0x2101('0xdc')]=null,this[_0x2101('0x59')]=new H(this[_0x2101('0x23')]),this[_0x2101('0x34')]=this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x94'))||_0x2101('0x24'),this[_0x2101('0x29')]=new Map(),this['_loadedStateData']=null;const _0x624447=_0x4b524a();this[_0x2101('0xc8')]={'history':this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')]['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xae')]),'getCurrentRevisionId':()=>_0x624447},this[_0x2101('0x1b')](_0x2101('0xba'),!0x1),this[_0x2101('0x1b')]('isEnabled',!0x0),this['set'](_0x2101('0xeb'),!0x1),this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x1a')](_0x2101('0x10'),!0x0),this[_0x2101('0x23')][_0x2101('0x46')][_0x2101('0x69')](_0x2101('0xb7'))[_0x2101('0x18')]({'view':_0x2101('0x3c')});}[_0x2101('0x84')](){this[_0x2101('0xc2')]=this['editor'][_0x2101('0xd9')][_0x2101('0x65')]('RevisionsRepository'),this[_0x2101('0xce')](),this[_0x2101('0x23')][_0x2101('0x8e')]['on']('ready',()=>{const _0x5b2cbb=this[_0x2101('0xc2')][_0x2101('0x7')](0x0),_0x3d1deb=_0x5b2cbb&&null===_0x5b2cbb[_0x2101('0xf5')]?_0x5b2cbb:null;if(this[_0x2101('0xcc')]=!!_0x3d1deb&&this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x10')),this['editor']['plugins'][_0x2101('0x103')](_0x2101('0x33'))){const _0x3da783=this['_source']['getCurrentRevisionId'](),_0x3f1374=this[_0x2101('0xc2')]['getRevision'](_0x3da783);if(_0x3f1374)this[_0x2101('0x8a')]=_0x3f1374[_0x2101('0xfe')],this[_0x2101('0xcc')]=!0x1;else{const _0x55a944=this[_0x2101('0xc8')][_0x2101('0xb5')][_0x2101('0x31')][_0x2101('0x60')](_0x47f7c6=>!_0x47f7c6[_0x2101('0xee')]),_0x16fe8f=_0x55a944?_0x55a944['baseVersion']:this['_source']['history']['version'];_0x5b2cbb?(_0x5b2cbb['toVersion']<_0x16fe8f&&_0x5b2cbb[_0x2101('0x41')]({'toVersion':_0x16fe8f}),this[_0x2101('0xcc')]?(this[_0x2101('0xc8')]['getCurrentRevisionId']=()=>_0x3d1deb['id'],this[_0x2101('0x8a')]=_0x3d1deb[_0x2101('0xfe')]):(this[_0x2101('0x8a')]=_0x5b2cbb[_0x2101('0xc5')],this[_0x2101('0xcc')]=!0x1)):(this[_0x2101('0x8a')]=_0x16fe8f,this[_0x2101('0xcc')]=!0x1);}}else _0x3d1deb&&(this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xb5')][_0x2101('0xae')]=Math[_0x2101('0xa1')](_0x3d1deb['toVersion'],this['editor']['model'][_0x2101('0x32')][_0x2101('0xb5')][_0x2101('0xae')]),_0x3d1deb[_0x2101('0xfe')]===_0x3d1deb['toVersion']?(0x0!==_0x3d1deb[_0x2101('0xfe')]&&(this[_0x2101('0xc8')]['getCurrentRevisionId']=()=>_0x3d1deb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this[_0x2101('0xc8')][_0x2101('0x99')]=()=>_0x3d1deb['id'],this[_0x2101('0x8a')]=_0x3d1deb[_0x2101('0xfe')])),this['_continueCurrentRevision']||(this[_0x2101('0x8a')]=this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0xae')]);this['_revisionDataBuilder']['init'](this[_0x2101('0xc8')][_0x2101('0xb5')]),this[_0x2101('0xd2')](this[_0x2101('0x8a')]),this[_0x2101('0x67')](this[_0x2101('0x8a')]),this['adapter']&&this[_0x2101('0xbc')]();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x46b4fa=>!_0x46b4fa);}async[_0x2101('0x96')](){if(this[_0x2101('0xc2')][_0x2101('0xb2')]>0x0){const _0x6ebee2=this['repository']['getRevision'](0x0),_0x1375d6=await this[_0x2101('0xbb')](_0x6ebee2),_0x5200f8=await this[_0x2101('0x6d')](_0x6ebee2);this[_0x2101('0xc1')](_0x1375d6,_0x5200f8);}}[_0x2101('0x4b')](_0xc14566){this['_source']=_0xc14566;}async[_0x2101('0x86')](){const _0xa6a251=await this[_0x2101('0xc8')]['getLatestVersion']();if(_0xa6a251>this[_0x2101('0xdc')][_0x2101('0xc5')]){await this[_0x2101('0x6f')]();const _0xad9ff1=this[_0x2101('0x39')]({'revision':this[_0x2101('0xdc')],'to':_0xa6a251});_0xad9ff1['authors']=_0xad9ff1[_0x2101('0xaa')][_0x2101('0x76')](_0x2289bf=>this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))[_0x2101('0xbe')](_0x2289bf)),this[_0x2101('0xdc')][_0x2101('0x41')](_0xad9ff1);}}async[_0x2101('0x6f')](){this[_0x2101('0xcc')]&&!this['_loadedStateData']&&(await this[_0x2101('0x1d')](this[_0x2101('0xdc')]),this[_0x2101('0x59')][_0x2101('0x9a')](this['currentRevision']),this[_0x2101('0xf0')]={'fromVersion':this[_0x2101('0xdc')][_0x2101('0xfe')],'authors':this['currentRevision'][_0x2101('0x64')][_0x2101('0x2b')]()});}async['saveRevision'](_0x5ef0b7={},_0x1aff7f=null){const _0x5cb750=[];await this[_0x2101('0x6f')](),this[_0x2101('0xcc')]=!0x1,_0x1aff7f>this[_0x2101('0xdc')]['toVersion']&&(_0x1aff7f=null),null===_0x1aff7f&&(_0x1aff7f=await this[_0x2101('0xc8')][_0x2101('0x9b')]());const _0x4b6304=this[_0x2101('0x9c')](_0x1aff7f),_0x5df4db=this['buildRevisionData']({'from':_0x4b6304,'to':_0x1aff7f});if(this[_0x2101('0xdc')][_0x2101('0xc5')]<_0x1aff7f){const _0x36e646=this[_0x2101('0x39')]({'revision':this['currentRevision'],'from':_0x1aff7f,'to':_0x1aff7f});_0x36e646[_0x2101('0x64')]=[],_0x36e646[_0x2101('0xaa')]=[],_0x36e646['id']=this[_0x2101('0xdc')]['id'],this['currentRevision'][_0x2101('0x41')](_0x36e646,!0x0),delete _0x36e646[_0x2101('0x64')],_0x5cb750[_0x2101('0x56')](_0x36e646);}_0x5ef0b7['creatorId']=this[_0x2101('0x23')]['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x5ef0b7[_0x2101('0x51')]=_0x5ef0b7[_0x2101('0x51')]||null,_0x5ef0b7['id']=_0x5ef0b7['id']||_0x4b524a(),_0x5ef0b7={..._0x5ef0b7,..._0x5df4db};const _0x5645b1=this[_0x2101('0x57')](_0x5ef0b7);_0x5cb750[_0x2101('0x56')](_0x5ef0b7);const _0xa46976=this[_0x2101('0xc2')][_0x2101('0x22')](_0x5645b1);if(0x0!==_0xa46976){const _0x673074=this[_0x2101('0xc2')][_0x2101('0x7')](_0xa46976-0x1);if(_0x673074[_0x2101('0xfe')]!==_0x1aff7f){const _0x4a2533=this['_revisionDataBuilder'][_0x2101('0x79')](_0x1aff7f,_0x673074['toVersion']),_0x3aecfb={'id':_0x673074['id'],'diffData':_0x4a2533['diffData'],'authorsIds':_0x4a2533[_0x2101('0xaa')],'authors':_0x4a2533[_0x2101('0xaa')]['map'](_0x34febc=>this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))[_0x2101('0xbe')](_0x34febc)),'fromVersion':_0x1aff7f};_0x673074===this['currentRevision']&&(_0x3aecfb[_0x2101('0xdf')]=new Date(_0x5ef0b7[_0x2101('0xdf')][_0x2101('0x17')]()+0xa)),_0x673074[_0x2101('0x41')](_0x3aecfb,!0x0),delete _0x3aecfb['authors'],_0x5cb750[_0x2101('0x56')](_0x3aecfb);}}if(this[_0x2101('0xc7')]){for(const _0x3971bd of _0x5cb750)this['_bufferUpdate'](_0x3971bd['id'],_0x3971bd,!0x0);this['sendBufferedUpdates']();}return _0x5645b1;}[_0x2101('0x57')](_0x5612f6){const _0x5aef89=this[_0x2101('0xc2')]['createRevision'](_0x5612f6);return this[_0x2101('0xc7')]&&_0x5aef89['on'](_0x2101('0x41'),(_0x154c66,_0x2e2eb8,_0x509686)=>{_0x509686||(this[_0x2101('0xed')](_0x2e2eb8['id'],_0x2e2eb8,!0x0),this[_0x2101('0xbc')]());}),this[_0x2101('0xc2')][_0x2101('0x7f')](_0x5aef89,this[_0x2101('0xfd')](_0x5aef89)),_0x5aef89;}async[_0x2101('0xbb')](_0x5c023c){await this[_0x2101('0x1d')](_0x5c023c);const _0x2dad83={};for(const _0x4855c9 in _0x5c023c[_0x2101('0x13')]){if(_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0xd8')]&&!_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0xd8')][_0x2101('0xf8')])continue;const _0x2b9a4d=this[_0x2101('0x101')](JSON[_0x2101('0xc')](_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0x6c')])),_0x181653=this[_0x2101('0x23')][_0x2101('0x91')][_0x2101('0xe8')][_0x2101('0x32')],_0x4edbdb=new _0xa1f4f6(_0x181653,_0x2b9a4d[_0x2101('0x76')](_0x5b1b8a=>J(_0x5b1b8a,this[_0x2101('0x23')])));this[_0x2101('0x23')]['data'][_0x2101('0x68')][_0x2101('0xb0')](_0x2101('0x98')),_0x2dad83[_0x4855c9]=this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x68')]['toData'](_0x4edbdb),this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x68')][_0x2101('0xb0')](_0x2101('0xe0'));}return _0x2dad83;}async[_0x2101('0x6d')](_0x281343){await this[_0x2101('0x1d')](_0x281343);const _0x4fd8ca={};for(const _0x3a26f6 in _0x281343[_0x2101('0x13')])_0x281343[_0x2101('0x13')][_0x3a26f6][_0x2101('0xd8')]&&!_0x281343[_0x2101('0x13')][_0x3a26f6][_0x2101('0xd8')]['isAttached']||(_0x4fd8ca[_0x3a26f6]=_0x281343['diffData'][_0x3a26f6][_0x2101('0x8')]||{});return _0x4fd8ca;}['sendBufferedUpdates'](){if(0x0===this[_0x2101('0x29')][_0x2101('0xf4')])return;if(this['_isPendingUpdate'])return;let _0x222ae2=Array[_0x2101('0xe4')](this[_0x2101('0x29')]['values']());this[_0x2101('0x29')][_0x2101('0x2d')]();for(let _0x509efa=0x0;_0x509efa<_0x222ae2['length'];_0x509efa++){const _0x51d4dd=_0x222ae2[_0x509efa];let _0x526237=!0x1;for(const _0x55fb44 of Object[_0x2101('0x20')](_0x51d4dd))void 0x0===_0x51d4dd[_0x55fb44]?delete _0x51d4dd[_0x55fb44]:'id'!==_0x55fb44&&(_0x526237=!0x0);_0x526237||(_0x222ae2[_0x509efa]=null);}if(_0x222ae2=_0x222ae2[_0x2101('0x3a')](_0x391d14=>null!==_0x391d14),!_0x222ae2[_0x2101('0xb2')])return;for(let _0x57c2ec=0x0;_0x57c2ec<_0x222ae2[_0x2101('0xb2')];_0x57c2ec++){const _0x1544e8=_0x222ae2[_0x57c2ec];void 0x0!==_0x1544e8['fromVersion']&&void 0x0===_0x1544e8[_0x2101('0xc5')]&&(_0x1544e8[_0x2101('0xc5')]=this['repository'][_0x2101('0x7')](_0x1544e8['id'])[_0x2101('0xc5')]),void 0x0!==_0x1544e8[_0x2101('0xc5')]&&void 0x0===_0x1544e8[_0x2101('0xfe')]&&(_0x1544e8[_0x2101('0xfe')]=this['repository'][_0x2101('0x7')](_0x1544e8['id'])[_0x2101('0xfe')]);}const _0x405148=this['editor'][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x94'));this['_isPendingUpdate']=!0x0,this[_0x2101('0x12')](),this['adapter'][_0x2101('0x48')](_0x222ae2,_0x405148)[_0x2101('0x15')](()=>{this[_0x2101('0xeb')]=!0x1;})[_0x2101('0x3')](_0x174dd7=>{if(_0x174dd7)for(const _0x21e897 of _0x174dd7)this[_0x2101('0x40')]({'id':_0x21e897['id'],'createdAt':_0x21e897['createdAt']});this[_0x2101('0x4f')](),this[_0x2101('0xbc')]();});}[_0x2101('0xc1')](_0x180081,_0x300ed0){let _0x4c002a=this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x36')),_0x4bdc71=this[_0x2101('0x23')]['config'][_0x2101('0x65')]('rootsAttributes');if(void 0x0===_0x4c002a){_0x4c002a={};for(const _0x322d12 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xcf')]())_0x4c002a[_0x322d12]='';}if(_0x2101('0x42')==typeof _0x4c002a&&(_0x4c002a={'main':_0x4c002a}),void 0x0===_0x4bdc71){_0x4bdc71={};for(const _0x295aa1 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xcf')]())_0x4bdc71[_0x295aa1]={};}let _0x3ba4ed=!0x1;const _0x207357=Object[_0x2101('0x20')](_0x4c002a),_0x580b86=Object[_0x2101('0x20')](_0x180081);for(const _0x2618df of _0x207357){if(_0x4c002a[_0x2618df]!==_0x180081[_0x2618df]&&''!==_0x4c002a[_0x2618df][_0x2101('0x27')]()){_0x3ba4ed=!0x0;break;}if(!_0x31c93d(_0x4bdc71[_0x2618df],_0x300ed0[_0x2618df])&&Object[_0x2101('0x20')](_0x4bdc71[_0x2618df])[_0x2101('0xb2')]>0x0){_0x3ba4ed=!0x0;break;}}_0x3ba4ed||(_0x3ba4ed=_0x580b86['some'](_0x748188=>!this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0x62')](_0x748188))),_0x3ba4ed&&_0x486b21(_0x2101('0xea'),{'editorData':_0x4c002a,'editorRootsAttributes':_0x4bdc71,'revisionData':_0x180081,'revisionRootsAttributes':_0x300ed0}),this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x1b')](_0x2101('0x36'),_0x180081),this['editor']['config'][_0x2101('0x1b')](_0x2101('0x73'),_0x300ed0);}['_addPendingAction'](){if(!this[_0x2101('0xa5')]){const _0x1ebace=this['editor'][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x30'));this['_pendingAction']=_0x1ebace[_0x2101('0xaf')](_0x138e66(this['editor'][_0x2101('0x7c')],_0x2101('0x92')));}}[_0x2101('0x4f')](){this[_0x2101('0xa5')]&&(this[_0x2101('0x23')][_0x2101('0xd9')]['get'](_0x2101('0x30'))[_0x2101('0xb')](this['_pendingAction']),this[_0x2101('0xa5')]=null);}['_findInsertionIndex'](_0x898eb2){const _0xb5da44=this[_0x2101('0xc2')][_0x2101('0x5')]();_0xb5da44[_0x2101('0xa')]();let _0x5cbf9b=0x0;for(;_0x5cbf9b<_0xb5da44[_0x2101('0xb2')];){const _0x433f27=_0xb5da44[_0x5cbf9b];if(_0x433f27===this[_0x2101('0xdc')]){_0x5cbf9b++;continue;}if(_0x433f27['id']===this[_0x2101('0x34')])break;const _0x11c465=_0x898eb2[_0x2101('0xc5')]-_0x433f27[_0x2101('0xc5')]||_0x898eb2['fromVersion']-_0x433f27[_0x2101('0xfe')];if(_0x11c465>0x0)break;if(_0x11c465<0x0)_0x5cbf9b++;else{if(!_0x898eb2['creator']&&_0x433f27[_0x2101('0xf5')])break;if(_0x433f27[_0x2101('0xf5')]||!_0x898eb2[_0x2101('0xf5')]){if(_0x898eb2['createdAt']>_0x433f27['createdAt'])break;_0x5cbf9b++;}else _0x5cbf9b++;}}return _0x5cbf9b;}[_0x2101('0x40')](_0xfa62c9){const _0x40e4ef=this['repository'][_0x2101('0x7')](_0xfa62c9['id']);if(_0xfa62c9['createdAt']&&(_0xfa62c9[_0x2101('0xdf')]=new Date(_0xfa62c9[_0x2101('0xdf')])),_0xfa62c9[_0x2101('0xaa')]){const _0x47877e=this['editor']['plugins'][_0x2101('0x65')](_0x2101('0x4d'));_0xfa62c9[_0x2101('0x64')]=_0xfa62c9[_0x2101('0xaa')]['map'](_0x3bc073=>_0x47877e[_0x2101('0xbe')](_0x3bc073));}_0x40e4ef[_0x2101('0x41')](_0xfa62c9,!0x0);}[_0x2101('0x39')]({revision:_0x15ea68=null,from:_0x473c01=null,to:_0x23dd1d=null}){_0x473c01=null!==_0x473c01?_0x473c01:_0x15ea68[_0x2101('0xfe')],_0x23dd1d=null!==_0x23dd1d?_0x23dd1d:_0x15ea68['toVersion'];const _0x26a495=this['_revisionDataBuilder'][_0x2101('0x79')](_0x473c01,_0x23dd1d),_0x1bb1cd={'diffData':_0x26a495[_0x2101('0x13')],'authorsIds':_0x26a495[_0x2101('0xaa')],'fromVersion':_0x473c01,'toVersion':_0x23dd1d};if(!_0x15ea68||_0x23dd1d!==_0x15ea68[_0x2101('0xc5')]){const _0x351d03=_0x23dd1d-0x1,_0x458ee9=this['_source'][_0x2101('0xb5')][_0x2101('0xbd')](_0x351d03);_0x1bb1cd[_0x2101('0xdf')]=_0x458ee9&&_0x458ee9[_0x2101('0xdf')]||new Date();}if(this[_0x2101('0xf0')]&&_0x473c01===this[_0x2101('0xf0')][_0x2101('0xfe')])for(const _0x25eaac of this['_loadedStateData'][_0x2101('0x64')])_0x1bb1cd[_0x2101('0xaa')][_0x2101('0xf6')](_0x25eaac['id'])||_0x1bb1cd[_0x2101('0xaa')][_0x2101('0x56')](_0x25eaac['id']);return _0x1bb1cd;}[_0x2101('0x1d')](_0x47f0c1){if(!_0x47f0c1||_0x47f0c1[_0x2101('0x13')])return Promise[_0x2101('0xdd')]();{const _0x49b6d1=this['editor'][_0x2101('0xad')]['get'](_0x2101('0x94'));return this[_0x2101('0xc7')]['getRevision']({'channelId':_0x49b6d1,'revisionId':_0x47f0c1['id']})[_0x2101('0x3')](_0x255472=>{_0x47f0c1[_0x2101('0x13')]=_0x255472[_0x2101('0x13')];});}}[_0x2101('0xed')](_0xcc5373,_0xce31bb,_0x9b145e){if(this[_0x2101('0x29')]['has'](_0xcc5373)){const _0x24c40b=this[_0x2101('0x29')]['get'](_0xcc5373);_0xce31bb=_0x9b145e?{..._0x24c40b,..._0xce31bb}:{..._0xce31bb,..._0x24c40b};}this[_0x2101('0x29')][_0x2101('0x1b')](_0xcc5373,_0xce31bb);}['_getFromVersion'](_0x58a105){const _0x538af9=this[_0x2101('0xc2')][_0x2101('0x5')]();_0x538af9['reverse'](),_0x538af9[_0x2101('0x72')]();const _0x94751f=_0x538af9[_0x2101('0x60')](_0x8929fb=>_0x8929fb[_0x2101('0xc5')]<=_0x58a105)['toVersion'];return _0x94751f<this[_0x2101('0x8a')]?this[_0x2101('0x8a')]:_0x94751f;}[_0x2101('0xd2')](_0x2662dc){const _0x454a0e=this[_0x2101('0xc2')][_0x2101('0x7')](this[_0x2101('0xc2')][_0x2101('0xb2')]-0x1);if(_0x454a0e)this[_0x2101('0x34')]=_0x454a0e['id'];else{const _0xb980df=!this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0xb3')]['find'](_0x139afc=>this['editor'][_0x2101('0xc9')][_0x2101('0x6')](_0x139afc)),_0x5dd315=this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0xf5b6ee=_0x138e66(this[_0x2101('0x23')][_0x2101('0x7c')],_0xb980df?_0x2101('0x74'):_0x2101('0xe5'));this[_0x2101('0xf7')]({'from':_0x2662dc,'to':_0x2662dc,'id':this[_0x2101('0x34')],'name':_0xf5b6ee,'creatorId':_0x5dd315});}}[_0x2101('0x67')](_0x3ef7ec){const _0x365e96=this[_0x2101('0xc8')][_0x2101('0x99')]();this['currentRevision']=this['repository'][_0x2101('0x7')](_0x365e96),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3ef7ec,'to':_0x3ef7ec,'id':_0x365e96,'name':'','creatorId':null}));}[_0x2101('0xf7')]({name:_0x3a4f95,from:_0x304535,to:_0x50ffa0,creatorId:_0x5cb4ce,id:_0x4a2668}){const _0x3e8bf2=this[_0x2101('0x39')]({'from':_0x304535,'to':_0x50ffa0});_0x3e8bf2[_0x2101('0x51')]=_0x3a4f95,_0x3e8bf2[_0x2101('0x5a')]=_0x5cb4ce,_0x3e8bf2['id']=_0x4a2668;const _0x3a974c=this[_0x2101('0x57')](_0x3e8bf2);return this['adapter']&&this['_bufferUpdate'](_0x3e8bf2['id'],_0x3e8bf2,!0x0),_0x3a974c;}['_setConversion'](){this['editor'][_0x2101('0x46')][_0x2101('0x69')]('dataDowncast')[_0x2101('0x53')]({'model':_0x2101('0x3c')});}[_0x2101('0x101')](_0x22ada8){return(_0x22ada8=_0x22ada8[_0x2101('0x3a')](_0x5a5429=>!_0x5a5429[_0x2101('0x51')]||'revision-start'!==_0x5a5429[_0x2101('0x51')]&&'revision-end'!==_0x5a5429[_0x2101('0x51')]))[_0x2101('0xc6')](_0xe2bac2=>{_0x2101('0x42')!=typeof _0xe2bac2&&(_0xe2bac2['children']=this[_0x2101('0x101')](_0xe2bac2['children']),_0xe2bac2['attributes']=_0xe2bac2[_0x2101('0xb6')][_0x2101('0x3a')](_0x4c2223=>!_0x4c2223[0x0]['startsWith'](_0x2101('0xdb'))));}),_0x22ada8;}}function J(_0x14faea,_0x2da8da){const _0x3ded53=_0x2da8da[_0x2101('0x91')][_0x2101('0xe8')][_0x2101('0x32')];if(_0x2101('0x42')==typeof _0x14faea)return new _0x9942ef(_0x3ded53,_0x14faea);{const _0x17b409=_0x14faea[_0x2101('0xac')]['map'](_0x517ed3=>J(_0x517ed3,_0x2da8da));return new(B[_0x14faea[(_0x2101('0xc0'))]]||_0x3892a0)(_0x3ded53,_0x14faea[_0x2101('0x51')],_0x14faea[_0x2101('0xb6')],_0x17b409);}}class H{constructor(_0x45eef8){this['editor']=_0x45eef8,this[_0x2101('0x2e')]=new Map(),this[_0x2101('0xd7')]=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x2101('0x8b')]=new Map(),this[_0x2101('0x54')]=new Map(),this[_0x2101('0x97')]=new Map(),this[_0x2101('0x71')]=new Map(),this[_0x2101('0x1')]=new Map(),this[_0x2101('0x38')]=new Map(),this[_0x2101('0x47')]=new Map(),this[_0x2101('0x80')]=new Map(),this[_0x2101('0x66')]=new Map(),this['_revisionId']=0x1;}['init'](_0x931d16){this[_0x2101('0x2c')]=_0x931d16;const _0x54a0c0=new Map(),_0x221426=new Map(),_0x5e56af=this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')]['roots'][_0x2101('0x76')](_0x75e8a1=>_0x75e8a1[_0x2101('0xd4')]);for(const _0x19ac5c of _0x5e56af){const _0x2a057f=this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0x62')](_0x19ac5c),_0x2a86cd=q(_0x2a057f);_0x54a0c0['set'](_0x19ac5c,_0x2a86cd),_0x221426[_0x2101('0x1b')](_0x19ac5c,Object[_0x2101('0x4c')](_0x2a057f['getAttributes']()));}const _0x57dda8=Array[_0x2101('0xe4')](this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x14')])['map'](_0x4ac161=>[_0x4ac161[_0x2101('0x51')],_0x4ac161['getRange']()]),_0x2e2ebc=this[_0x2101('0x2c')][_0x2101('0xae')];this[_0x2101('0xd1')](_0x2e2ebc,_0x54a0c0,_0x57dda8,_0x221426),this[_0x2101('0x28')]=this[_0x2101('0x1e')];const _0x1271c8=new Map(),_0x598327=new Map();for(const _0x13fd88 of _0x5e56af){const _0x98a903=G(_0x13fd88);_0x1271c8[_0x2101('0x1b')](_0x13fd88,_0x98a903),_0x598327['set'](_0x13fd88,{});}this['_saveMetaData'](Number[_0x2101('0xe6')],_0x1271c8,[],_0x598327);}['getData'](_0x15b928,_0x103ba6){if(this['_lastFrom']===_0x15b928&&this[_0x2101('0x7d')]<=_0x103ba6)this[_0x2101('0x2e')]['size']>0x1&&this[_0x2101('0x5f')](this[_0x2101('0x7d')]),this['_applyOperations'](this[_0x2101('0x7d')],_0x103ba6,!0x0);else{if(!this['_savedMetaData'][_0x2101('0x103')](_0x15b928)){const _0x556624=this[_0x2101('0xcb')](_0x15b928);this[_0x2101('0xff')](_0x556624,_0x15b928,!0x1);}this[_0x2101('0xff')](_0x15b928,_0x103ba6,!0x0);}return this[_0x2101('0xd7')]=_0x15b928,this[_0x2101('0x7d')]=_0x103ba6,this[_0x2101('0xc4')]();}[_0x2101('0x9a')](_0x68955){this[_0x2101('0x50')](),this[_0x2101('0xd7')]=_0x68955[_0x2101('0xfe')],this[_0x2101('0x7d')]=_0x68955[_0x2101('0xc5')];for(const _0x571e51 in _0x68955[_0x2101('0x13')]){const _0x66b831=_0x68955[_0x2101('0x13')][_0x571e51][_0x2101('0xd8')],_0x53ba90=_0x1e65fb(_0x68955['diffData'][_0x571e51][_0x2101('0xb1')])||{},_0x314afb=this[_0x2101('0xa3')](_0x68955['diffData'][_0x571e51][_0x2101('0x100')]);_0x314afb[_0x2101('0xd4')]=_0x571e51,_0x314afb['_isAttached']=!_0x66b831||!_0x66b831[_0x2101('0xf8')],_0x314afb[_0x2101('0xf8')]=()=>_0x314afb[_0x2101('0xf1')],this['_baseRoots']['set'](_0x571e51,_0x314afb),this['_baseRootsAttributes'][_0x2101('0x1b')](_0x571e51,_0x53ba90),_0x66b831&&this[_0x2101('0x66')]['set'](_0x571e51,_0x66b831);const _0x5e237b=this[_0x2101('0xa7')](_0x314afb);this[_0x2101('0x38')][_0x2101('0x1b')](_0x571e51,_0x5e237b);for(const [_0x1392e7,_0x251277]of _0x314afb['markers']){if(!_0x1392e7[_0x2101('0x75')]('revision:'))continue;const _0x124247=_0x1392e7[_0x2101('0x7b')](':')[0x2];for(const _0x3e0a5a of _0x251277['getWalker']({'singleCharacters':!0x0})){const _0x28a72b=this['_getVidAttributeName'](_0x3e0a5a),_0x5156c2=_0x2101('0x70')==_0x3e0a5a[_0x2101('0xc0')]?_0x3e0a5a['previousPosition'][_0x2101('0x82')][_0x2101('0x2b')](0x0,-0x1):_0x3e0a5a[_0x2101('0xe2')][_0x2101('0x82')],_0x11743c=_0x5e237b[_0x2101('0xa9')](_0x5156c2)[_0x2101('0x58')](_0x28a72b);this[_0x2101('0x47')]['set'](_0x11743c,{'userId':_0x124247});}}}this[_0x2101('0x28')]=this[_0x2101('0x1e')];const _0x16298d=[...Array(this[_0x2101('0x1e')])[_0x2101('0x20')]()][_0x2101('0x2b')](0x1)['filter'](_0x5a08fa=>!this[_0x2101('0x47')][_0x2101('0x103')](_0x5a08fa));let _0x47f3f9=0x0;const _0x45d552=new Map();for(const _0x3479ef in _0x68955[_0x2101('0x13')]){const _0x1dcf33=_0x68955[_0x2101('0x13')][_0x3479ef]['attachChange'],_0x93c827=_0x1e65fb(_0x68955[_0x2101('0x13')][_0x3479ef][_0x2101('0x8')])||{},_0x3d3ee3=this[_0x2101('0xa3')](_0x68955['diffData'][_0x3479ef]['insertions']);_0x3d3ee3[_0x2101('0xd4')]=_0x3479ef,_0x3d3ee3[_0x2101('0xf1')]=!_0x1dcf33||_0x1dcf33[_0x2101('0xf8')],_0x3d3ee3[_0x2101('0xf8')]=()=>_0x3d3ee3['_isAttached'],this['_diffRoots']['set'](_0x3479ef,_0x3d3ee3),this[_0x2101('0x54')][_0x2101('0x1b')](_0x3479ef,_0x93c827);const _0x15edf6=this['_makeIdsRoot'](_0x3d3ee3,Number[_0x2101('0xe6')]);this[_0x2101('0x1')][_0x2101('0x1b')](_0x3479ef,_0x15edf6),_0x45d552[_0x2101('0x1b')](_0x3479ef,_0x3d3ee3[_0x2101('0xf8')]()?_0x93c827:{});for(const [_0x15ea7c,_0x37ef2f]of _0x3d3ee3[_0x2101('0x14')]){if(!_0x15ea7c[_0x2101('0x75')](_0x2101('0x4e')))continue;const _0x35a1d4=_0x15ea7c[_0x2101('0x7b')](':')[0x2];for(const _0x3efef9 of _0x37ef2f[_0x2101('0x102')]({'singleCharacters':!0x0})){const _0x196627=this['_getVidAttributeName'](_0x3efef9),_0x2726b0=this[_0x2101('0x1e')]++,_0x4c4531=_0x2101('0x70')==_0x3efef9[_0x2101('0xc0')]?_0x3efef9[_0x2101('0xe2')][_0x2101('0x82')][_0x2101('0x2b')](0x0,-0x1):_0x3efef9[_0x2101('0xe2')]['path'];_0x15edf6[_0x2101('0xa9')](_0x4c4531)[_0x2101('0x90')](_0x196627,_0x2726b0),this[_0x2101('0x47')][_0x2101('0x1b')](_0x2726b0,{'userId':_0x35a1d4});}}for(const _0x265b96 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0xfa')](_0x3d3ee3)[_0x2101('0x102')]({'singleCharacters':!0x0})){const _0x5e552c=this['_getVidAttributeName'](_0x265b96),_0x35dd3f=_0x2101('0x70')==_0x265b96[_0x2101('0xc0')]?_0x265b96[_0x2101('0xe2')][_0x2101('0x82')]['slice'](0x0,-0x1):_0x265b96[_0x2101('0xe2')]['path'],_0x2fe03a=_0x15edf6['getNodeByPath'](_0x35dd3f);_0x2fe03a[_0x2101('0x58')](_0x5e552c)>0x0||_0x2fe03a['_setAttribute'](_0x5e552c,_0x16298d[_0x47f3f9++]);}for(const [_0x21ca73,_0x505220]of _0x3d3ee3[_0x2101('0x14')])_0x21ca73[_0x2101('0x75')]('revision:')||this[_0x2101('0x45')][_0x2101('0x1b')](_0x21ca73,_0x505220);}const _0x2978bb=G(_0x2101('0xbf'));this[_0x2101('0x97')][_0x2101('0x1b')](_0x2101('0xbf'),_0x2978bb),this['_baseIdsRoots']['set'](_0x2101('0xbf'),this[_0x2101('0xa7')](_0x2978bb,0x1));const _0x10b473=G(_0x2101('0xbf'));this[_0x2101('0x8b')][_0x2101('0x1b')](_0x2101('0xbf'),_0x10b473),this[_0x2101('0x1')][_0x2101('0x1b')](_0x2101('0xbf'),this[_0x2101('0xa7')](_0x10b473,0x1));const _0x27b910=Array['from'](this[_0x2101('0x8b')])[_0x2101('0x76')](([_0x389be3,_0x1fd422])=>[_0x389be3,q(_0x1fd422)]);this['_saveMetaData'](this[_0x2101('0x7d')],_0x27b910,this['_markers'],_0x45d552);}[_0x2101('0xa3')](_0xf90540){const _0xe94d15=JSON[_0x2101('0xc')](_0xf90540),_0x4a1b23=this[_0x2101('0x23')][_0x2101('0x91')]['view']['document'],_0x44903d=new _0xa1f4f6(_0x4a1b23,_0xe94d15['map'](_0x44a1be=>J(_0x44a1be,this['editor'])));return this[_0x2101('0x23')]['data']['toModel'](_0x44903d);}[_0x2101('0xd1')](_0x4ab7ac,_0xaab95d,_0x16a0ea,_0xb00898){const _0x27d9f3=new Map(_0xaab95d),_0x8955e8=new Map(_0x1e65fb(_0xb00898)),_0x38e946=new Map();for(const [_0xc77ec5,_0x52d973]of _0x16a0ea)_0x38e946[_0x2101('0x1b')](_0xc77ec5,{'start':_0x52d973[_0x2101('0x52')]['clone'](),'end':_0x52d973[_0x2101('0xec')][_0x2101('0x5c')](),'rootName':_0x52d973['root']['rootName']});this[_0x2101('0x2e')][_0x2101('0x1b')](_0x4ab7ac,{'roots':_0x27d9f3,'markers':_0x38e946,'rootsAttributes':_0x8955e8});}['_removeMetaData'](_0x7a3c62){this[_0x2101('0x2e')][_0x2101('0x8d')](_0x7a3c62);}[_0x2101('0xcd')](){this[_0x2101('0x50')](),this[_0x2101('0xd7')]=-0x1,this['_lastTo']=-0x1,this[_0x2101('0x2e')][_0x2101('0x2d')](),this[_0x2101('0x84')](this['source']);}[_0x2101('0x50')](){this[_0x2101('0x47')]['clear'](),this[_0x2101('0x80')]['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots'][_0x2101('0x2d')](),this[_0x2101('0x54')][_0x2101('0x2d')](),this['_baseRoots'][_0x2101('0x2d')](),this['_baseRootsAttributes']['clear'](),this[_0x2101('0x1')][_0x2101('0x2d')](),this[_0x2101('0x38')]['clear'](),this[_0x2101('0x45')][_0x2101('0x2d')](),this[_0x2101('0x1e')]=0x1,this[_0x2101('0x28')]=this[_0x2101('0x1e')];}['_makeIdsRoot'](_0x3847ce,_0x50ccd9=null){let _0x6f0ba1=null;_0x3847ce['is'](_0x2101('0xb4'))||(_0x6f0ba1=new _0x25fef9(_0x3847ce[_0x2101('0x51')],{'vid_start':null===_0x50ccd9?this[_0x2101('0x1e')]++:_0x50ccd9++}));const _0x5dfbba=[];for(const _0x3f4521 of _0x3847ce[_0x2101('0xd0')]())if(_0x3f4521['is']('element')){_0x5dfbba[_0x2101('0x56')](this[_0x2101('0xa7')](_0x3f4521,_0x50ccd9));const _0x538ea7=_0x5dfbba[_0x5dfbba[_0x2101('0xb2')]-0x1];null!==_0x50ccd9&&(_0x50ccd9=_0x538ea7['is']('element','$text')?_0x538ea7[_0x2101('0x58')](_0x2101('0x16'))+0x1:_0x538ea7[_0x2101('0x58')](_0x2101('0x4'))+0x1);}else for(let _0x5e9c1b=0x0;_0x5e9c1b<_0x3f4521[_0x2101('0xf3')];_0x5e9c1b++)_0x5dfbba[_0x2101('0x56')](new _0x25fef9(_0x2101('0x3d'),{'vid':null===_0x50ccd9?this['_revisionId']++:_0x50ccd9++}));if(_0x3847ce['is'](_0x2101('0xb4'))){const _0x244463=G(_0x3847ce['rootName']);return _0x244463[_0x2101('0x7a')](0x0,_0x5dfbba),_0x244463;}return _0x6f0ba1['_setAttribute'](_0x2101('0x4'),null===_0x50ccd9?this['_revisionId']++:_0x50ccd9++),_0x6f0ba1['_insertChild'](0x0,_0x5dfbba),_0x6f0ba1;}[_0x2101('0xff')](_0xf65438,_0x309fd4,_0x302146){this[_0x2101('0x50')]();const {roots:_0x5a7cd3,markers:_0x4541e4,rootsAttributes:_0x5bb8be}=this['_savedMetaData'][_0x2101('0x65')](_0xf65438);this[_0x2101('0x97')]=new Map(_0x5a7cd3),this[_0x2101('0x71')]=new Map(_0x1e65fb(_0x5bb8be));for(const [_0x194fc0,_0xebae95]of this[_0x2101('0x97')])if(_0x2101('0xbf')!==_0x194fc0&&(this[_0x2101('0x8b')]['set'](_0x194fc0,q(_0xebae95)),this[_0x2101('0x54')]=new Map(_0x1e65fb(_0x5bb8be)),_0x302146)){const _0x45abd5=this[_0x2101('0x1e')];this[_0x2101('0x1')][_0x2101('0x1b')](_0x194fc0,this[_0x2101('0xa7')](_0xebae95)),this[_0x2101('0x38')][_0x2101('0x1b')](_0x194fc0,this['_makeIdsRoot'](_0xebae95,_0x45abd5));}this[_0x2101('0x28')]=this['_revisionId'],this['_diffRoots'][_0x2101('0x1b')](_0x2101('0xbf'),q(this[_0x2101('0x97')][_0x2101('0x65')](_0x2101('0xbf')))),_0x302146&&this[_0x2101('0x1')][_0x2101('0x1b')](_0x2101('0xbf'),this[_0x2101('0xa7')](this[_0x2101('0x97')]['get']('$graveyard')));for(const [_0x3883df,_0x4003bc]of _0x4541e4){const _0x303f12=this[_0x2101('0x97')][_0x2101('0x65')](_0x4003bc[_0x2101('0xd4')]),_0x5bad87=this['_diffRoots'][_0x2101('0x65')](_0x4003bc[_0x2101('0xd4')]),_0x1429f1=new _0x495a05(this[_0x2101('0x8c')](_0x4003bc['start'],_0x303f12),this[_0x2101('0x8c')](_0x4003bc[_0x2101('0xec')],_0x303f12)),_0x15e56f=this[_0x2101('0xda')](_0x1429f1,_0x5bad87);_0x303f12['markers'][_0x2101('0x1b')](_0x3883df,_0x1429f1),this['_markers'][_0x2101('0x1b')](_0x3883df,_0x15e56f);}this['_applyOperations'](_0xf65438,_0x309fd4,_0x302146);}['_applyOperations'](_0x25a69a,_0x556f29,_0x578455){for(const _0x46558a of this['source']['getOperations'](_0x25a69a,_0x556f29))this[_0x2101('0x1f')](_0x46558a,_0x578455);for(const _0x1bfb31 of this['_diffRoots']['values']())_0x1bfb31[_0x2101('0x14')][_0x2101('0x2d')]();for(const [_0x41ca3f,_0x3255b5]of this['_markers']){this[_0x2101('0x8b')][_0x2101('0x65')](_0x3255b5[_0x2101('0x49')][_0x2101('0xd4')])[_0x2101('0x14')][_0x2101('0x1b')](_0x41ca3f,_0x3255b5[_0x2101('0x5c')]());}const _0x4d1dd4=new Map(),_0x172845=new Map();for(const [_0x52313b,_0x49a0e7]of this[_0x2101('0x8b')])_0x4d1dd4['set'](_0x52313b,q(_0x49a0e7)),_0x172845['set'](_0x52313b,this[_0x2101('0x54')][_0x2101('0x65')](_0x52313b));this[_0x2101('0xd1')](_0x556f29,_0x4d1dd4,this[_0x2101('0x45')],_0x172845);}[_0x2101('0xcb')](_0x29acc4){const _0xe5cabe=Array[_0x2101('0xe4')](this[_0x2101('0x2e')]['keys']());_0xe5cabe[_0x2101('0x85')]((_0x4364f2,_0x458784)=>_0x4364f2-_0x458784),_0xe5cabe['reverse']();for(const _0x19100b of _0xe5cabe)if(_0x19100b<_0x29acc4)return _0x19100b;return Number[_0x2101('0xe6')];}[_0x2101('0xd3')](_0xd9b45a,_0x27ee27){const _0xb69244=Array[_0x2101('0xe4')](_0x27ee27[_0x2101('0x14')])[_0x2101('0x76')](([_0x2cc972,_0x1e8e7a])=>[_0x2cc972,this[_0x2101('0xda')](_0x1e8e7a,_0xd9b45a)]);_0xd9b45a['markers']=new Map(_0xb69244);}[_0x2101('0xe9')](_0x43e431){for(const _0x496ff2 of this[_0x2101('0x45')][_0x2101('0xa2')]()){const _0xfbca26=_0x496ff2[_0x2101('0xca')](_0x43e431),_0x1c8c7c=_0x495a05[_0x2101('0x5d')](_0xfbca26);_0x496ff2[_0x2101('0x52')]=_0x1c8c7c[_0x2101('0x52')],_0x496ff2['end']=_0x1c8c7c[_0x2101('0xec')];}}[_0x2101('0x1f')](_0xbe4639,_0x5b363b){if(_0x2101('0x2')==_0xbe4639[_0x2101('0xc0')]||'detachRoot'==_0xbe4639['type'])return void this['_handleRootOperation'](_0xbe4639,_0x5b363b);if(_0x2101('0x6b')==_0xbe4639['type']){const _0x5b3c2b=_0xbe4639[_0x2101('0x11')]['root'][_0x2101('0xd4')];this[_0x2101('0x8b')][_0x2101('0x103')](_0x5b3c2b)||(this[_0x2101('0x8b')][_0x2101('0x1b')](_0x5b3c2b,G(_0x5b3c2b,!0x0)),this[_0x2101('0x54')][_0x2101('0x1b')](_0x5b3c2b,{}),_0x5b363b&&this[_0x2101('0x1')]['set'](_0x5b3c2b,G(_0x5b3c2b,!0x0)));}else{if(_0x2101('0x6a')==_0xbe4639[_0x2101('0xc0')]||'removeRootAttribute'==_0xbe4639[_0x2101('0xc0')]||'changeRootAttribute'==_0xbe4639[_0x2101('0xc0')])return void this['_handleRootAttributeOperation'](_0xbe4639);}const _0x2ea7cf=this['_cloneOperation'](_0xbe4639,this[_0x2101('0x8b')]);if(_0x2101('0x25')!==_0xbe4639['type']&&(_0x2ea7cf['_execute'](),this[_0x2101('0xe9')](_0x2ea7cf)),_0x5b363b)switch(_0x2ea7cf[_0x2101('0xc0')]){case _0x2101('0x6b'):this[_0x2101('0x104')](_0xbe4639);break;case _0x2101('0xef'):case _0x2101('0xb'):case _0x2101('0xf'):this[_0x2101('0xa8')](_0xbe4639);break;case _0x2101('0x87'):this[_0x2101('0xd')](_0xbe4639);break;case _0x2101('0x7b'):this[_0x2101('0x44')](_0xbe4639);break;case _0x2101('0x25'):this['_handleMarkerOperation'](_0xbe4639);}}[_0x2101('0xc3')](_0x291602,_0x812d86){const _0x3f1265=_0x291602[_0x2101('0x5c')]();return _0x3f1265[_0x2101('0x63')]=_0x291602[_0x2101('0x63')],this[_0x2101('0x105')](_0x3f1265,_0x812d86),_0x3f1265;}[_0x2101('0x95')](_0x24fe4f){return _0x24fe4f[_0x2101('0x76')](_0x3ae0bf=>{const _0x389c3b=this[_0x2101('0x5b')](_0x3ae0bf);return Number(_0x3ae0bf[_0x2101('0xe')][_0x2101('0x58')](_0x389c3b));});}['_generateTape'](_0x37103c,_0x5e8bbe){if(_0x37103c['is'](_0x2101('0x3b'),_0x2101('0x3d')))_0x5e8bbe['push']({'item':_0x37103c,'type':'text'});else{_0x37103c['is'](_0x2101('0x3b'))&&_0x5e8bbe[_0x2101('0x56')]({'item':_0x37103c,'type':_0x2101('0x6e')});for(const _0x4802ce of _0x37103c['getChildren']())this[_0x2101('0x89')](_0x4802ce,_0x5e8bbe);_0x37103c['is']('element')&&_0x5e8bbe[_0x2101('0x56')]({'item':_0x37103c,'type':_0x2101('0x70')});}return _0x5e8bbe;}[_0x2101('0xc4')](){const _0x2b8878=new Map(this[_0x2101('0x47')]),_0x376ed6=new Map(_0x2b8878),_0x5bf22f=new Map(),_0x478e1b={'insertions':{},'deletions':{}},_0x38a075={'insertions':{},'deletions':{}},_0x13014e=new Map(),_0x2d81a1=new Set([...this['_baseRoots'][_0x2101('0x20')](),...this[_0x2101('0x8b')][_0x2101('0x20')]()]);_0x2d81a1[_0x2101('0x8d')](_0x2101('0xbf'));for(const _0x1a67e3 of _0x2d81a1){const _0x49e164=this[_0x2101('0x8b')][_0x2101('0x65')](_0x1a67e3)||G(_0x1a67e3,!0x1),_0x436114=this[_0x2101('0x97')]['get'](_0x1a67e3)||G(_0x1a67e3,!0x1);_0x49e164[_0x2101('0xf8')]()||_0x436114[_0x2101('0xf8')]()?(_0x478e1b[_0x2101('0x6c')][_0x1a67e3]=q(_0x49e164),_0x478e1b[_0x2101('0x100')][_0x1a67e3]=q(_0x436114),this['_copyMarkers'](_0x478e1b['deletions'][_0x1a67e3],_0x436114),this[_0x2101('0xd3')](_0x478e1b[_0x2101('0x6c')][_0x1a67e3],_0x49e164),_0x38a075[_0x2101('0x6c')][_0x1a67e3]=this['_generateTape'](this['_idsRoots'][_0x2101('0x65')](_0x1a67e3),[]),_0x38a075[_0x2101('0x100')][_0x1a67e3]=this['_generateTape'](this['_baseIdsRoots'][_0x2101('0x65')](_0x1a67e3)||G(_0x1a67e3,!0x1),[])):_0x2d81a1[_0x2101('0x8d')](_0x1a67e3);}for(const _0x422460 of _0x2d81a1){const _0x394ed=_0x38a075[_0x2101('0x6c')][_0x422460];for(const _0x45b7ea of _0x394ed){const _0x45c353=this[_0x2101('0x5b')](_0x45b7ea),_0x142e5d=_0x45b7ea[_0x2101('0xe')][_0x2101('0x58')](_0x45c353);_0x376ed6[_0x2101('0x8d')](_0x142e5d),_0x142e5d>=this[_0x2101('0x28')]&&_0x5bf22f['set'](_0x142e5d,_0x2b8878['get'](_0x142e5d));}}for(const _0x5ab833 of _0x2d81a1){const _0x2b1abc=_0x38a075['insertions'][_0x5ab833],_0x4c51f4=this[_0x2101('0x95')](_0x38a075[_0x2101('0x100')][_0x5ab833]);let _0x275cd7=0x0;for(const _0x1c00a7 of _0x2b1abc){const _0x379628=this[_0x2101('0x5b')](_0x1c00a7),_0x44cc14=_0x1c00a7[_0x2101('0xe')][_0x2101('0x58')](_0x379628);if(!_0x5bf22f['has'](_0x44cc14)&&!_0x13014e[_0x2101('0x103')](_0x44cc14)){if(_0x376ed6[_0x2101('0x103')](_0x44cc14))_0x275cd7++;else{if(_0x44cc14!=_0x4c51f4[_0x275cd7]){const _0x207d1f=_0x2b8878[_0x2101('0x65')](_0x44cc14)||_0x2b8878[_0x2101('0x65')](_0x4c51f4[_0x275cd7]);for(;_0x44cc14!=_0x4c51f4[_0x275cd7];)_0x376ed6['has'](_0x4c51f4[_0x275cd7])||(_0x13014e[_0x2101('0x1b')](_0x4c51f4[_0x275cd7],_0x207d1f),_0x2b8878[_0x2101('0x1b')](_0x4c51f4[_0x275cd7],_0x207d1f)),_0x275cd7++;}_0x275cd7++;}}}}for(const _0x4e4a97 of _0x2d81a1){const _0x23de9d=_0x38a075[_0x2101('0x6c')][_0x4e4a97];for(const _0x4fe0e9 of _0x23de9d){const _0x58a8a1=this[_0x2101('0x5b')](_0x4fe0e9),_0x47b935=_0x4fe0e9[_0x2101('0xe')][_0x2101('0x58')](_0x58a8a1);if(_0x13014e[_0x2101('0x103')](_0x47b935)){const _0x2a050e=_0x13014e[_0x2101('0x65')](_0x47b935);_0x376ed6[_0x2101('0x103')](_0x47b935)||_0x376ed6[_0x2101('0x1b')](_0x47b935,{..._0x2a050e}),_0x5bf22f[_0x2101('0x1b')](_0x47b935,{..._0x2a050e});}}}for(const _0x31088d of _0x376ed6[_0x2101('0x20')]())_0x31088d>=this['_startingRevisionId']&&_0x376ed6[_0x2101('0x8d')](_0x31088d);const _0x31717e=new Map();for(const _0x4abe02 of _0x2d81a1){let _0x24c191=_0x38a075[_0x2101('0x6c')][_0x4abe02];for(const _0x26af32 of _0x24c191)if(_0x26af32['item']['is']('element',_0x2101('0xf9'))){const _0x4c8f9f=this[_0x2101('0x5b')](_0x26af32),_0x5bd781=_0x26af32['item'][_0x2101('0x58')](_0x4c8f9f);if(_0x5bf22f['has'](_0x5bd781)){const _0x29f33d=_0x26af32['item'][_0x2101('0x9')][_0x2101('0x9')][_0x2101('0x58')]('vid_start'),_0x511978=_0x31717e['get'](_0x29f33d)||new Set();_0x511978[_0x2101('0xaf')](_0x5bf22f['get'](_0x5bd781)[_0x2101('0x43')]),_0x31717e[_0x2101('0x1b')](_0x29f33d,_0x511978);}}_0x24c191=_0x38a075[_0x2101('0x100')][_0x4abe02];for(const _0xa9cc1e of _0x24c191)if(_0xa9cc1e[_0x2101('0xe')]['is'](_0x2101('0x3b'),_0x2101('0xf9'))){const _0x3ac510=this[_0x2101('0x5b')](_0xa9cc1e),_0x4eb2d9=_0xa9cc1e['item'][_0x2101('0x58')](_0x3ac510);if(_0x376ed6['has'](_0x4eb2d9)){const _0x1bcce8=_0xa9cc1e[_0x2101('0xe')][_0x2101('0x9')][_0x2101('0x9')][_0x2101('0x58')]('vid_start'),_0x2e7712=_0x31717e[_0x2101('0x65')](_0x1bcce8)||new Set();_0x2e7712[_0x2101('0xaf')](_0x376ed6[_0x2101('0x65')](_0x4eb2d9)['userId']),_0x31717e[_0x2101('0x1b')](_0x1bcce8,_0x2e7712);}}for(const _0x28ac43 of _0x31717e[_0x2101('0x20')]())(_0x5bf22f[_0x2101('0x103')](_0x28ac43)||_0x376ed6[_0x2101('0x103')](_0x28ac43))&&_0x31717e[_0x2101('0x8d')](_0x28ac43);}for(const _0x5e3f11 of _0x2d81a1){const _0x1b7b6f=_0x38a075[_0x2101('0x6c')][_0x5e3f11];let _0xdd1417=null,_0x1654d0=null;for(const _0x27ad5c of _0x1b7b6f){const _0x213ef8=this['_getVidAttributeName'](_0x27ad5c),_0x3fb755=_0x27ad5c['item']['getAttribute'](_0x213ef8),_0x438dd3=_0x31717e[_0x2101('0x65')](_0x3fb755);_0x438dd3&&'elementStart'==_0x27ad5c['type']&&(_0xdd1417=Array[_0x2101('0xe4')](_0x438dd3)[0x0],_0x1654d0=_0x27ad5c['item']['getAttribute'](_0x2101('0x4'))),_0xdd1417&&(_0x376ed6[_0x2101('0x1b')](_0x3fb755,{'userId':_0xdd1417}),_0x5bf22f[_0x2101('0x1b')](_0x3fb755,{'userId':_0xdd1417})),_0x3fb755==_0x1654d0&&(_0xdd1417=null,_0x1654d0=null);}}const _0x457897={},_0x4b3678=new Set();for(const _0x2caaa2 of _0x2d81a1){const _0x13a13b=_0x478e1b[_0x2101('0x100')][_0x2caaa2],_0x497901=_0x478e1b[_0x2101('0x6c')][_0x2caaa2];for(const {userId:_0x35b96a}of this['_touchedMarkers'][_0x2101('0xa2')]())null!==_0x35b96a&&_0x4b3678['add'](_0x35b96a);for(const {userId:_0x1fc615}of this[_0x2101('0x66')][_0x2101('0xa2')]())null!==_0x1fc615&&_0x4b3678[_0x2101('0xaf')](_0x1fc615);this[_0x2101('0x9d')](_0x497901,_0x38a075[_0x2101('0x6c')][_0x2caaa2],_0x5bf22f,_0x2101('0x2f'),_0x4b3678),this[_0x2101('0x9d')](_0x13a13b,_0x38a075[_0x2101('0x100')][_0x2caaa2],_0x376ed6,_0x2101('0x8f'),_0x4b3678),_0x457897[_0x2caaa2]={'insertions':this[_0x2101('0x88')](_0x497901),'deletions':this[_0x2101('0x88')](_0x13a13b),'attachChange':this[_0x2101('0x66')][_0x2101('0x65')](_0x2caaa2)||null,'attributesBefore':_0x1e65fb(this[_0x2101('0x71')][_0x2101('0x65')](_0x2caaa2))||{},'attributesAfter':_0x1e65fb(this[_0x2101('0x54')][_0x2101('0x65')](_0x2caaa2))};}return{'diffData':_0x457897,'authorsIds':Array['from'](_0x4b3678)};}[_0x2101('0x2a')](_0x55d23c){for(const [,_0x5c3630]of _0x55d23c[_0x2101('0x14')]){const _0x8f9d8f=_0x5c3630[_0x2101('0x52')][_0x2101('0x3f')]()[_0x2101('0x3a')](_0x1c20ce=>_0x2101('0xf9')==_0x1c20ce['name']);for(const _0x23affa of _0x8f9d8f)0x1==_0x23affa[_0x2101('0xd5')]&&_0x23affa[_0x2101('0xa0')](0x0)['is'](_0x2101('0x3b'),_0x2101('0x77'))&&_0x23affa[_0x2101('0xa0')](0x0)[_0x2101('0x90')](_0x2101('0xe3'),!0x0);}}['_prepareViewToSave'](_0x29e6e0){this[_0x2101('0x2a')](_0x29e6e0);const _0xde05b3=this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x61')](_0x29e6e0,{}),_0x29e5d1=Array[_0x2101('0xe4')](_0xde05b3[_0x2101('0xd0')]())['map'](_0x3c01e5=>this[_0x2101('0x83')](_0x3c01e5));return JSON[_0x2101('0xb8')](_0x29e5d1);}[_0x2101('0x83')](_0x36f438){if(_0x36f438['is'](_0x2101('0x3d')))return _0x36f438[_0x2101('0x8e')];{const _0x39f03b=_0x36f438;return{'type':Object['keys'](B)[_0x2101('0x60')](_0xe5c867=>_0x36f438 instanceof B[_0xe5c867]),'name':_0x39f03b[_0x2101('0x51')],'attributes':Array[_0x2101('0xe4')](_0x39f03b[_0x2101('0x55')]()),'children':Array[_0x2101('0xe4')](_0x39f03b['getChildren']())['map'](_0x5d01ab=>this[_0x2101('0x83')](_0x5d01ab))};}}[_0x2101('0x9d')](_0x48830c,_0x542307,_0xe9ee26,_0x30ddc1,_0x1464b6){let _0x523afe=null,_0x3d860d=null,_0x3c180b=0x0;const _0x193a3f=this[_0x2101('0x23')][_0x2101('0xc9')];for(let _0x5049f4=0x0;_0x5049f4<_0x542307['length'];_0x5049f4++){const _0x1ef074=this['_getVidAttributeName'](_0x542307[_0x5049f4]),_0x4a0b8a=_0x542307[_0x5049f4][_0x2101('0xe')]['getAttribute'](_0x1ef074),_0x2065a7=_0xe9ee26[_0x2101('0x65')](_0x4a0b8a),_0x4b0398=_0x5049f4==_0x542307['length']-0x1;(!_0x523afe&&_0x2065a7&&(_0x523afe=_0x2065a7,_0x3d860d=_0x542307[_0x5049f4]),_0x523afe&&(!_0x2065a7||_0x2065a7[_0x2101('0x43')]!=_0x523afe[_0x2101('0x43')]))&&(_0x4debaf(_0x2065a7,L(_0x3d860d,_0x48830c,_0x193a3f),L(_0x542307[_0x5049f4],_0x48830c,_0x193a3f)),_0x523afe=_0x2065a7||null,_0x3d860d=_0x2065a7?_0x542307[_0x5049f4]:null),_0x523afe&&_0x4b0398&&_0x4debaf(_0x2065a7,L(_0x3d860d,_0x48830c,_0x193a3f),W(_0x542307[_0x5049f4],_0x48830c,_0x193a3f));}function _0x4debaf(_0x165f6e,_0x42dc9f,_0x1ab8e5){const _0x5ef659=_0x523afe[_0x2101('0x43')],_0x563705='revision:'+_0x30ddc1+':'+_0x5ef659+':'+_0x3c180b++,_0xf62a02=_0x193a3f[_0x2101('0x9f')](_0x42dc9f,_0x1ab8e5);_0x48830c[_0x2101('0x14')][_0x2101('0x1b')](_0x563705,_0xf62a02),null!==_0x5ef659&&_0x1464b6[_0x2101('0xaf')](_0x5ef659);}}[_0x2101('0x5b')](_0x598b88){switch(_0x598b88[_0x2101('0xc0')]){case _0x2101('0x6e'):return _0x2101('0x26');case _0x2101('0x70'):return _0x2101('0x4');default:return'vid';}}[_0x2101('0x105')](_0xda091a,_0x4788b7){_0xda091a['baseVersion']=null;for(const _0x22551b in _0xda091a){const _0x5e01e8=_0xda091a[_0x22551b];if(_0x5e01e8 instanceof _0x372bce){const _0x45b009=_0x4788b7[_0x2101('0x65')](_0x5e01e8[_0x2101('0x49')]['rootName']);_0xda091a[_0x22551b]=this[_0x2101('0x8c')](_0x5e01e8,_0x45b009);}if(_0x5e01e8 instanceof _0x495a05){const _0x15e6de=_0x4788b7[_0x2101('0x65')](_0x5e01e8[_0x2101('0x49')][_0x2101('0xd4')]);_0xda091a[_0x22551b]=this['_fixRange'](_0x5e01e8,_0x15e6de);}_0x2101('0x49')===_0x22551b&&(_0xda091a[_0x2101('0x49')]=_0x4788b7[_0x2101('0x65')](_0xda091a[_0x2101('0x49')][_0x2101('0xd4')]));}}[_0x2101('0xda')](_0x349091,_0x32faa9){return this[_0x2101('0x23')]['model'][_0x2101('0x9f')](this[_0x2101('0x8c')](_0x349091[_0x2101('0x52')],_0x32faa9),this[_0x2101('0x8c')](_0x349091[_0x2101('0xec')],_0x32faa9));}['_fixPosition'](_0x3c1071,_0x58e01c){return this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0xb9')](_0x58e01c,_0x3c1071[_0x2101('0x82')],_0x3c1071[_0x2101('0x0')]);}[_0x2101('0x104')](_0x5de193){const _0x39dcff=this[_0x2101('0x1')][_0x2101('0x65')](_0x5de193[_0x2101('0x11')][_0x2101('0x49')]['rootName']),_0x56b558=this['_fixPosition'](_0x5de193[_0x2101('0x11')],_0x39dcff),_0x39ace2=null===_0x5de193['_authorId']?null:_0x5de193[_0x2101('0x63')]||this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0xc5c118=_0x56b558['parent'],_0x14adaf=this[_0x2101('0x1e')],_0x10759f=[];for(const _0x353538 of _0x5de193[_0x2101('0xf2')])if(_0x353538['is'](_0x2101('0x3b')))_0x10759f['push'](this['_makeIdsRoot'](_0x353538));else for(let _0x4fe1cc=0x0;_0x4fe1cc<_0x353538[_0x2101('0xf3')];_0x4fe1cc++)_0x10759f[_0x2101('0x56')](new _0x25fef9(_0x2101('0x3d'),{'vid':this[_0x2101('0x1e')]++}));const _0x11366d=this['_revisionId'];for(let _0xc56b04=_0x14adaf;_0xc56b04<_0x11366d;_0xc56b04++)this[_0x2101('0x47')][_0x2101('0x1b')](_0xc56b04,{'userId':_0x39ace2});_0xc5c118[_0x2101('0x7a')](_0x56b558[_0x2101('0x93')],_0x10759f);}[_0x2101('0xa8')](_0x61f826){(_0x61f826=this[_0x2101('0xc3')](_0x61f826,this[_0x2101('0x1')]))[_0x2101('0xfb')]();const _0x141f1c=null===_0x61f826[_0x2101('0x63')]?null:_0x61f826[_0x2101('0x63')]||this['editor']['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x4e8a67=_0x61f826[_0x2101('0xe1')](),_0x527228=_0x4e8a67['parent'],_0x3a40aa=_0x4e8a67[_0x2101('0x93')];!function _0x179681(_0x35601d,_0x183b22,_0x2037ed,_0x316d34){for(let _0x3c2893=_0x2037ed;_0x3c2893<_0x316d34;_0x3c2893++){const _0x34a7ef=_0x183b22['getChild'](_0x3c2893);_0x34a7ef['is']('element',_0x2101('0x3d'))?_0x35601d[_0x2101('0x1b')](_0x34a7ef[_0x2101('0x58')](_0x2101('0x16')),{'userId':_0x141f1c}):(_0x35601d[_0x2101('0x1b')](_0x34a7ef[_0x2101('0x58')](_0x2101('0x26')),{'userId':_0x141f1c}),_0x179681(_0x35601d,_0x34a7ef,0x0,_0x34a7ef[_0x2101('0xd5')]),_0x35601d['set'](_0x34a7ef[_0x2101('0x58')](_0x2101('0x4')),{'userId':_0x141f1c}));}}(this[_0x2101('0x47')],_0x527228,_0x3a40aa,_0x3a40aa+_0x61f826[_0x2101('0x3e')]);}[_0x2101('0xd')](_0x313c2d){const _0x223fd6=null===(_0x313c2d=this[_0x2101('0xc3')](_0x313c2d,this[_0x2101('0x1')]))[_0x2101('0x63')]?null:_0x313c2d[_0x2101('0x63')]||this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')]('Users')['me']['id'],_0xbef506=_0x313c2d['targetPosition'][_0x2101('0x9')],_0x5b0470=_0x313c2d['sourcePosition'][_0x2101('0x9')],_0x22a049=_0xbef506[_0x2101('0x58')](_0x2101('0x4')),_0x2b446c=_0x5b0470[_0x2101('0x58')](_0x2101('0x26'));_0xbef506[_0x2101('0x90')](_0x2101('0x4'),_0x5b0470[_0x2101('0x58')](_0x2101('0x4'))),_0x5b0470[_0x2101('0x90')](_0x2101('0x4'),_0x22a049),this['_touched']['set'](_0x2b446c,{'userId':_0x223fd6}),this[_0x2101('0x47')]['set'](_0x22a049,{'userId':_0x223fd6}),_0x313c2d[_0x2101('0xfb')]();}[_0x2101('0x44')](_0x220457){const _0x11f5c5=null===(_0x220457=this[_0x2101('0xc3')](_0x220457,this[_0x2101('0x1')]))['_authorId']?null:_0x220457[_0x2101('0x63')]||this[_0x2101('0x23')]['plugins'][_0x2101('0x65')]('Users')['me']['id'],_0x3ace02=_0x220457['graveyardPosition'],_0x1259c5=_0x220457['splitPosition']['parent'];_0x220457[_0x2101('0xfb')]();const _0x20e4ba=_0x1259c5[_0x2101('0x58')](_0x2101('0x4')),_0x1ad357=_0x220457['insertionPosition'][_0x2101('0xde')];if(_0x3ace02){const _0x10f811=_0x1ad357[_0x2101('0x58')](_0x2101('0x4')),_0x28681d=_0x1259c5[_0x2101('0x58')](_0x2101('0x4'));_0x1259c5[_0x2101('0x90')]('vid_end',_0x10f811),_0x1ad357[_0x2101('0x90')](_0x2101('0x4'),_0x28681d),this[_0x2101('0x47')][_0x2101('0x1b')](_0x1259c5['getAttribute'](_0x2101('0x4')),{'userId':_0x11f5c5}),this['_touched']['set'](_0x1ad357[_0x2101('0x58')](_0x2101('0x26')),{'userId':_0x11f5c5});}else{const _0x201ca8=this[_0x2101('0x1e')]++,_0x436eac=this[_0x2101('0x1e')]++;_0x1259c5['_setAttribute']('vid_end',_0x201ca8),_0x1ad357[_0x2101('0x90')]('vid_start',_0x436eac),_0x1ad357[_0x2101('0x90')](_0x2101('0x4'),_0x20e4ba),this[_0x2101('0x47')][_0x2101('0x1b')](_0x201ca8,{'userId':_0x11f5c5}),this[_0x2101('0x47')][_0x2101('0x1b')](_0x436eac,{'userId':_0x11f5c5});}}[_0x2101('0x78')](_0x5a74fc){if(!_0x5a74fc[_0x2101('0x35')])return;const _0x4058e8=(_0x5a74fc=this[_0x2101('0xc3')](_0x5a74fc,this[_0x2101('0x8b')]))[_0x2101('0x5e')]?_0x5a74fc[_0x2101('0x5e')]['root']:null,_0x325a02=_0x5a74fc[_0x2101('0xa6')]?_0x5a74fc['newRange'][_0x2101('0x49')]:null;_0x4058e8&&this['_markers'][_0x2101('0x8d')](_0x5a74fc[_0x2101('0x51')]),_0x325a02&&this['_markers'][_0x2101('0x1b')](_0x5a74fc[_0x2101('0x51')],_0x5a74fc[_0x2101('0xa6')]['clone']());const _0x42e068=null===_0x5a74fc['_authorId']?null:_0x5a74fc[_0x2101('0x63')]||this[_0x2101('0x23')]['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x50ea85=_0x5a74fc['name'];if(!this[_0x2101('0x80')][_0x2101('0x103')](_0x50ea85))return void this[_0x2101('0x80')]['set'](_0x50ea85,{'range':_0x5a74fc['oldRange'],'userId':_0x42e068});const _0x459459=this[_0x2101('0x80')][_0x2101('0x65')](_0x50ea85),_0xde8b5a=_0x459459[_0x2101('0xa4')],_0x225ef8=_0x5a74fc[_0x2101('0xa6')];null==_0xde8b5a&&null==_0x225ef8||_0xde8b5a&&_0x225ef8&&_0xde8b5a[_0x2101('0xe7')](_0x225ef8)?this[_0x2101('0x80')][_0x2101('0x8d')](_0x5a74fc[_0x2101('0x51')]):_0x459459[_0x2101('0x43')]=_0x42e068;}[_0x2101('0xd6')](_0x21b17e,_0x2e4de7){this[_0x2101('0x8b')][_0x2101('0x103')](_0x21b17e[_0x2101('0xd4')])?this[_0x2101('0x8b')][_0x2101('0x65')](_0x21b17e[_0x2101('0xd4')])[_0x2101('0xf1')]=_0x21b17e[_0x2101('0xab')]:(this[_0x2101('0x8b')]['set'](_0x21b17e[_0x2101('0xd4')],G(_0x21b17e[_0x2101('0xd4')],!0x0)),this[_0x2101('0x54')][_0x2101('0x1b')](_0x21b17e['rootName'],{}),_0x2e4de7&&this[_0x2101('0x1')]['set'](_0x21b17e[_0x2101('0xd4')],G(_0x21b17e[_0x2101('0xd4')],!0x0)));const _0x4026d1=null===_0x21b17e[_0x2101('0x63')]?null:_0x21b17e[_0x2101('0x63')]||this['editor'][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x227ac4=this[_0x2101('0x66')][_0x2101('0x65')](_0x21b17e[_0x2101('0xd4')]);_0x227ac4&&_0x227ac4['userId']===_0x4026d1?this[_0x2101('0x66')]['delete'](_0x21b17e['rootName']):this[_0x2101('0x66')][_0x2101('0x1b')](_0x21b17e[_0x2101('0xd4')],{'userId':_0x4026d1,'isAttached':_0x21b17e[_0x2101('0xab')]});}[_0x2101('0x21')](_0x2d51b3){const _0x4e9260=this[_0x2101('0x54')][_0x2101('0x65')](_0x2d51b3['root'][_0x2101('0xd4')]);null===_0x2d51b3[_0x2101('0x1c')]?delete _0x4e9260[_0x2d51b3[_0x2101('0x7e')]]:_0x4e9260[_0x2d51b3[_0x2101('0x7e')]]=_0x2d51b3['newValue'];}}function q(_0x1a2609){const _0x431ee9=G(_0x1a2609[_0x2101('0xd4')],_0x1a2609[_0x2101('0xf8')]());for(const _0x4784b5 of _0x1a2609[_0x2101('0xd0')]()){const _0x58072f=_0x4784b5[_0x2101('0x37')](!0x0);_0x431ee9[_0x2101('0xfc')](_0x58072f);}return _0x431ee9;}function G(_0x1f942e,_0x1b325f=!0x0){const _0x1ac6ec=new _0x4ab913();return _0x1ac6ec[_0x2101('0xd4')]=_0x1f942e,_0x1ac6ec[_0x2101('0xf1')]=_0x1b325f,_0x1ac6ec[_0x2101('0xf8')]=()=>_0x1ac6ec[_0x2101('0xf1')],_0x1ac6ec;}function L(_0x40c690,_0xa8abb9,_0x104834){const _0x8ec916=_0x2101('0x70')==_0x40c690[_0x2101('0xc0')]?_0x104834[_0x2101('0x81')](_0x40c690[_0x2101('0xe')],'end'):_0x104834[_0x2101('0x4a')](_0x40c690['item']);return _0x104834[_0x2101('0xb9')](_0xa8abb9,_0x8ec916['path'],_0x8ec916[_0x2101('0x0')]);}function W(_0x2fe149,_0x1c5f14,_0x11d6fb){const _0x83f1dd=_0x2101('0x6e')==_0x2fe149[_0x2101('0xc0')]?_0x11d6fb['createPositionAt'](_0x2fe149[_0x2101('0xe')],0x0):_0x11d6fb['createPositionAfter'](_0x2fe149['item']);return _0x11d6fb['createPositionFromPath'](_0x1c5f14,_0x83f1dd[_0x2101('0x82')],_0x83f1dd[_0x2101('0x0')]);}
|
|
23
|
+
const _0x2f56=['deletions','getRevisionRootsAttributes','then','useFillerType','merge','roots','conversion','getChildren','_getViewJson','buildRevisionData','config','affectsData','PendingActions','version','attributesBefore','getRootNames','collaboration.channelId','string','_removeRevisionMarkers','_lastFrom','find','_createFromRanges','_authorId','path','_baseIdsRoots','_removePendingAction','createRevision','_saveMetaData','$text','RevisionTracker','_insertChild','getNodeByPath','editing','_touched','isReady','createPositionAfter','shift','childCount','_copyMarkers','_startingRevisionId','upcast','_baseRootsAttributes','editor','_touchedMarkers','parse','_loadState','_markers','document','newValue','_createCurrentRevision','startsWith','getTime','getTransformedByOperation','set','setRevisionData','dataDowncast','resolve','authors','_addPendingAction','offset','init','$graveyard','_revisionId','_isInit','add','splitPosition','editor-initial-data-replaced-with-revision-data','pluginName','_diffRootsAttributes','reverse','getRevision','_setAttribute','_transformMarkers','authorsIds','size','getUser','has','_bufferedUpdates','RevisionsRepository','_markChanges','_replaceEditorDataWithRevisionData','_calculateMetaData','processor','rootsAttributes','isAdd','Initial\x20revision','reinsert','_clone','for','get','locale','insertion','elementStart','_handleMergeOperation','root','graveyardPosition','RealTimeCollaborationClient','fromEntries','deletion','_handleInsertOperation','createPositionFromPath','delete','_makeRevision','_idsRoots','elementEnd','_lastTo','_source','attachChange','createdAt','parent','view','currentRevision','diffData','filter','_cloneOperation','revision-start','getLatestVersion','stickiness','_fixRange','paragraph','_operations','marker','getWalker','_createInitialRevision','model','getRevisionDocumentData','remove','Users','marked','getIndex','_setConversion','sendBufferedUpdates','_getBaseVids','_bufferUpdate','getMovedRangeStart','getAncestors','_findInsertionIndex','vid_end','update','insert','vid','revisionHistory.resumeUnsavedRevision','toView','targetPosition','keys','_diffRoots','revision','markers','data','dataToMarker','_getPreviousFrom','adapter','documentFragment','fromVersion','forEach','values','getRoot','previousPosition','offsetSize','_processRootBeforeSave','length','rootName','_update','_pendingAction','bind','updateRevisions','getAttributes','insertions','_touchedRoots','push','revision:','from','map','initial','getRange','_makeIdsRoot','newRange','includes','_getVidAttributeName','text','isEnabled','finally','split','attributesAfter','keepParagraph','isEqual','setSource','_handleSplitOperation','end','removeRootAttribute','_baseRoots','data-revision-','getRevisions','tableCell','_applyOperations','afterInit','userId','revision-end','_initialRevisionId','detachRoot','attributes','slice','PENDING_ACTION_REVISION_HISTORY','toVersion','_revisionDataBuilder','toData','sourcePosition','_execute','howMany','addRootAttribute','isAttached','_reset','createRangeIn','_generateTape','_handleMarkerOperation','plugins','_isPendingUpdate','key','clear','_handleRootOperation','createRange','position','move','range','createPositionAt','addRevisionData','start','clone','oldRange','item','vid_start','source','getData','getChild','_removeMetaData','_loadedStateData','repository','element','_isAttached','nodes','creator','_savedMetaData','changeRootAttribute','markerToData','requires','saveRevision','history','type','_loadRevisionData','children','reInit','NEGATIVE_INFINITY','_makeModelFromViewString','_handleMoveOperation','_fixPosition','initialData','_prepareViewToSave','_startingVersion','_handleRootAttributeOperation','getCurrentRevisionId','_continueCurrentRevision','toModel','_fixOperation','_getFromVersion','nodeAfter','getAttribute','define','name','trim','baseVersion'];(function(_0x2d16a8,_0x2f56da){const _0x56b904=function(_0x318ad8){while(--_0x318ad8){_0x2d16a8['push'](_0x2d16a8['shift']());}};_0x56b904(++_0x2f56da);}(_0x2f56,0x121));const _0x56b9=function(_0x2d16a8,_0x2f56da){_0x2d16a8=_0x2d16a8-0x0;let _0x56b904=_0x2f56[_0x2d16a8];return _0x56b904;};import{Users as _0x34ab18}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x42dea7,PendingActions as _0x29f16e}from'ckeditor5/src/core';import{logWarning as _0x495e1d,uid as _0x7cec49}from'ckeditor5/src/utils';import{Position as _0x295c36,Range as _0x366d5d,Element as _0x547c6b,DocumentFragment as _0x2e92e7,ViewText as _0x560a81,ViewElement as _0x52de99,ViewContainerElement as _0x2b3d1a,ViewAttributeElement as _0x4fc887,ViewEmptyElement as _0x1db0b2,ViewRawElement as _0x3c5716,ViewUIElement as _0x5d1304,ViewDocumentFragment as _0x54a520}from'ckeditor5/src/engine';import _0x392970 from'./revisionsrepository';import{getTranslation as _0x37ad9c}from'./utils/common-translations';import{cloneDeep as _0x558724,isEqual as _0x3abcc8}from'lodash-es';const B={'c':_0x2b3d1a,'a':_0x4fc887,'e':_0x1db0b2,'r':_0x3c5716,'u':_0x5d1304};export default class l extends _0x42dea7{static get[_0x56b9('0x30')](){return _0x56b9('0xa');}static get[_0x56b9('0xe1')](){return[_0x34ab18,_0x392970,_0x29f16e];}constructor(_0x5657f9){super(_0x5657f9),this[_0x56b9('0x84')]=null,this[_0x56b9('0x5c')]=null,this['_revisionDataBuilder']=new H(this[_0x56b9('0x17')]),this[_0x56b9('0xb3')]=this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('collaboration.channelId')||_0x56b9('0x9a'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x345d1e=_0x7cec49();this[_0x56b9('0x57')]={'history':this['editor'][_0x56b9('0x69')][_0x56b9('0x1c')]['history'],'getLatestVersion':()=>Promise[_0x56b9('0x25')](this[_0x56b9('0x17')][_0x56b9('0x69')]['document'][_0x56b9('0x108')]),'getCurrentRevisionId':()=>_0x345d1e},this[_0x56b9('0x22')](_0x56b9('0xf'),!0x1),this['set'](_0x56b9('0xa1'),!0x0),this[_0x56b9('0x22')]('_isPendingUpdate',!0x1),this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0xf7')](_0x56b9('0x7a'),!0x0),this[_0x56b9('0x17')][_0x56b9('0x101')][_0x56b9('0x45')](_0x56b9('0x15'))[_0x56b9('0x82')]({'view':'revision'});}[_0x56b9('0x29')](){this[_0x56b9('0xd9')]=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x3b')),this[_0x56b9('0x6f')](),this['editor'][_0x56b9('0x81')]['on']('ready',()=>{const _0x58c4b2=this['repository']['getRevision'](0x0),_0x4ffe3a=_0x58c4b2&&null===_0x58c4b2[_0x56b9('0xdd')]?_0x58c4b2:null;if(this[_0x56b9('0xf1')]=!!_0x4ffe3a&&this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('revisionHistory.resumeUnsavedRevision'),this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x39')](_0x56b9('0x4d'))){const _0x527658=this[_0x56b9('0x57')][_0x56b9('0xf0')](),_0x9d628c=this['repository'][_0x56b9('0x33')](_0x527658);if(_0x9d628c)this[_0x56b9('0xee')]=_0x9d628c[_0x56b9('0x86')],this[_0x56b9('0xf1')]=!0x1;else{const _0x362f86=this[_0x56b9('0x57')]['history'][_0x56b9('0x65')][_0x56b9('0x1')](_0x347549=>!_0x347549[_0x56b9('0x2c')]),_0x3b514a=_0x362f86?_0x362f86[_0x56b9('0xfa')]:this['_source'][_0x56b9('0xe3')][_0x56b9('0x108')];_0x58c4b2?(_0x58c4b2[_0x56b9('0xb8')]<_0x3b514a&&_0x58c4b2[_0x56b9('0x8f')]({'toVersion':_0x3b514a}),this['_continueCurrentRevision']?(this[_0x56b9('0x57')]['getCurrentRevisionId']=()=>_0x4ffe3a['id'],this[_0x56b9('0xee')]=_0x4ffe3a[_0x56b9('0x86')]):(this[_0x56b9('0xee')]=_0x58c4b2[_0x56b9('0xb8')],this[_0x56b9('0xf1')]=!0x1)):(this[_0x56b9('0xee')]=_0x3b514a,this[_0x56b9('0xf1')]=!0x1);}}else _0x4ffe3a&&(this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0xe3')][_0x56b9('0x108')]=Math['max'](_0x4ffe3a[_0x56b9('0xb8')],this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0xe3')][_0x56b9('0x108')]),_0x4ffe3a[_0x56b9('0x86')]===_0x4ffe3a[_0x56b9('0xb8')]?(0x0!==_0x4ffe3a[_0x56b9('0x86')]&&(this['_source'][_0x56b9('0xf0')]=()=>_0x4ffe3a['id']),this[_0x56b9('0xf1')]=!0x1):this[_0x56b9('0xf1')]&&(this[_0x56b9('0x57')][_0x56b9('0xf0')]=()=>_0x4ffe3a['id'],this[_0x56b9('0xee')]=_0x4ffe3a['fromVersion'])),this[_0x56b9('0xf1')]||(this[_0x56b9('0xee')]=this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x108')]);this[_0x56b9('0xb9')][_0x56b9('0x29')](this[_0x56b9('0x57')][_0x56b9('0xe3')]),this[_0x56b9('0x68')](this[_0x56b9('0xee')]),this[_0x56b9('0x1e')](this[_0x56b9('0xee')]),this[_0x56b9('0x84')]&&this[_0x56b9('0x70')]();}),this[_0x56b9('0x91')](_0x56b9('0xf'))['to'](this,_0x56b9('0xc5'),_0x43eca9=>!_0x43eca9);}async[_0x56b9('0xb0')](){if(this['repository'][_0x56b9('0x8d')]>0x0){const _0x176e25=this[_0x56b9('0xd9')]['getRevision'](0x0),_0x499564=await this[_0x56b9('0x6a')](_0x176e25),_0x10ac75=await this[_0x56b9('0xfc')](_0x176e25);this[_0x56b9('0x3d')](_0x499564,_0x10ac75);}}[_0x56b9('0xa7')](_0x43e271){this[_0x56b9('0x57')]=_0x43e271;}async[_0x56b9('0x77')](){const _0x57cae5=await this[_0x56b9('0x57')][_0x56b9('0x61')]();if(_0x57cae5>this['currentRevision']['toVersion']){await this[_0x56b9('0x1a')]();const _0x1e2dba=this['buildRevisionData']({'revision':this[_0x56b9('0x5c')],'to':_0x57cae5});_0x1e2dba['authors']=_0x1e2dba[_0x56b9('0x36')]['map'](_0x38197f=>this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))[_0x56b9('0x38')](_0x38197f)),this[_0x56b9('0x5c')]['_update'](_0x1e2dba);}}async[_0x56b9('0x1a')](){this[_0x56b9('0xf1')]&&!this[_0x56b9('0xd8')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x56b9('0xb9')]['loadState'](this[_0x56b9('0x5c')]),this['_loadedStateData']={'fromVersion':this[_0x56b9('0x5c')][_0x56b9('0x86')],'authors':this[_0x56b9('0x5c')][_0x56b9('0x26')]['slice']()});}async[_0x56b9('0xe2')](_0x31ec9b={},_0x1765b7=null){const _0x4bcd63=[];await this[_0x56b9('0x1a')](),this[_0x56b9('0xf1')]=!0x1,_0x1765b7>this['currentRevision'][_0x56b9('0xb8')]&&(_0x1765b7=null),null===_0x1765b7&&(_0x1765b7=await this[_0x56b9('0x57')][_0x56b9('0x61')]());const _0x2ecea6=this[_0x56b9('0xf4')](_0x1765b7),_0x18c216=this[_0x56b9('0x104')]({'from':_0x2ecea6,'to':_0x1765b7});if(this[_0x56b9('0x5c')][_0x56b9('0xb8')]<_0x1765b7){const _0x3707b4=this[_0x56b9('0x104')]({'revision':this[_0x56b9('0x5c')],'from':_0x1765b7,'to':_0x1765b7});_0x3707b4[_0x56b9('0x26')]=[],_0x3707b4[_0x56b9('0x36')]=[],_0x3707b4['id']=this[_0x56b9('0x5c')]['id'],this[_0x56b9('0x5c')]['_update'](_0x3707b4,!0x0),delete _0x3707b4[_0x56b9('0x26')],_0x4bcd63[_0x56b9('0x96')](_0x3707b4);}_0x31ec9b['creatorId']=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x31ec9b[_0x56b9('0xf8')]=_0x31ec9b['name']||null,_0x31ec9b['id']=_0x31ec9b['id']||_0x7cec49(),_0x31ec9b={..._0x31ec9b,..._0x18c216};const _0x1a2f8f=this[_0x56b9('0xce')](_0x31ec9b);_0x4bcd63[_0x56b9('0x96')](_0x31ec9b);const _0xe582d=this[_0x56b9('0xd9')][_0x56b9('0x6e')](_0x1a2f8f);if(0x0!==_0xe582d){const _0x5508b=this[_0x56b9('0xd9')]['getRevision'](_0xe582d-0x1);if(_0x5508b['fromVersion']!==_0x1765b7){const _0xf2e86e=this[_0x56b9('0xb9')][_0x56b9('0xd5')](_0x1765b7,_0x5508b[_0x56b9('0xb8')]),_0x3a23ca={'id':_0x5508b['id'],'diffData':_0xf2e86e[_0x56b9('0x5d')],'authorsIds':_0xf2e86e['authorsIds'],'authors':_0xf2e86e['authorsIds'][_0x56b9('0x99')](_0x4d7605=>this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')]('Users')[_0x56b9('0x38')](_0x4d7605)),'fromVersion':_0x1765b7};_0x5508b===this[_0x56b9('0x5c')]&&(_0x3a23ca['createdAt']=new Date(_0x31ec9b[_0x56b9('0x59')][_0x56b9('0x20')]()+0xa)),_0x5508b[_0x56b9('0x8f')](_0x3a23ca,!0x0),delete _0x3a23ca[_0x56b9('0x26')],_0x4bcd63[_0x56b9('0x96')](_0x3a23ca);}}if(this[_0x56b9('0x84')]){for(const _0x139854 of _0x4bcd63)this[_0x56b9('0x72')](_0x139854['id'],_0x139854,!0x0);this['sendBufferedUpdates']();}return _0x1a2f8f;}[_0x56b9('0xce')](_0x282962){const _0x5eba8f=this['repository'][_0x56b9('0x7')](_0x282962);return this[_0x56b9('0x84')]&&_0x5eba8f['on'](_0x56b9('0x8f'),(_0x26dce0,_0x4cbdf6,_0x385489)=>{_0x385489||(this[_0x56b9('0x72')](_0x4cbdf6['id'],_0x4cbdf6,!0x0),this[_0x56b9('0x70')]());}),this['repository']['addRevision'](_0x5eba8f,this[_0x56b9('0x75')](_0x5eba8f)),_0x5eba8f;}async[_0x56b9('0x6a')](_0x2137f1){await this[_0x56b9('0xe5')](_0x2137f1);const _0x808840={};for(const _0x4bdcf4 in _0x2137f1[_0x56b9('0x5d')]){if(_0x2137f1['diffData'][_0x4bdcf4][_0x56b9('0x58')]&&!_0x2137f1[_0x56b9('0x5d')][_0x4bdcf4][_0x56b9('0x58')][_0x56b9('0xbf')])continue;const _0x34974a=this[_0x56b9('0x10d')](JSON[_0x56b9('0x19')](_0x2137f1[_0x56b9('0x5d')][_0x4bdcf4][_0x56b9('0x94')])),_0x264a51=this['editor'][_0x56b9('0xd')][_0x56b9('0x5b')][_0x56b9('0x1c')],_0x325b2e=new _0x54a520(_0x264a51,_0x34974a[_0x56b9('0x99')](_0x59435e=>J(_0x59435e,this[_0x56b9('0x17')])));this[_0x56b9('0x17')][_0x56b9('0x81')][_0x56b9('0x3f')]['useFillerType'](_0x56b9('0x6d')),_0x808840[_0x4bdcf4]=this[_0x56b9('0x17')][_0x56b9('0x81')][_0x56b9('0x3f')][_0x56b9('0xba')](_0x325b2e),this[_0x56b9('0x17')]['data'][_0x56b9('0x3f')][_0x56b9('0xfe')]('default');}return _0x808840;}async[_0x56b9('0xfc')](_0x28f465){await this[_0x56b9('0xe5')](_0x28f465);const _0x33b89a={};for(const _0xa9cc8d in _0x28f465[_0x56b9('0x5d')])_0x28f465[_0x56b9('0x5d')][_0xa9cc8d][_0x56b9('0x58')]&&!_0x28f465[_0x56b9('0x5d')][_0xa9cc8d][_0x56b9('0x58')]['isAttached']||(_0x33b89a[_0xa9cc8d]=_0x28f465[_0x56b9('0x5d')][_0xa9cc8d][_0x56b9('0xa4')]||{});return _0x33b89a;}[_0x56b9('0x70')](){if(0x0===this[_0x56b9('0x3a')][_0x56b9('0x37')])return;if(this[_0x56b9('0xc5')])return;let _0x907fa0=Array[_0x56b9('0x98')](this[_0x56b9('0x3a')][_0x56b9('0x88')]());this['_bufferedUpdates']['clear']();for(let _0x51c8b7=0x0;_0x51c8b7<_0x907fa0[_0x56b9('0x8d')];_0x51c8b7++){const _0xc93325=_0x907fa0[_0x51c8b7];let _0x1c3d95=!0x1;for(const _0x635867 of Object['keys'](_0xc93325))void 0x0===_0xc93325[_0x635867]?delete _0xc93325[_0x635867]:'id'!==_0x635867&&(_0x1c3d95=!0x0);_0x1c3d95||(_0x907fa0[_0x51c8b7]=null);}if(_0x907fa0=_0x907fa0[_0x56b9('0x5e')](_0x32a34e=>null!==_0x32a34e),!_0x907fa0[_0x56b9('0x8d')])return;for(let _0x3e489e=0x0;_0x3e489e<_0x907fa0[_0x56b9('0x8d')];_0x3e489e++){const _0x383076=_0x907fa0[_0x3e489e];void 0x0!==_0x383076[_0x56b9('0x86')]&&void 0x0===_0x383076['toVersion']&&(_0x383076[_0x56b9('0xb8')]=this[_0x56b9('0xd9')][_0x56b9('0x33')](_0x383076['id'])[_0x56b9('0xb8')]),void 0x0!==_0x383076[_0x56b9('0xb8')]&&void 0x0===_0x383076[_0x56b9('0x86')]&&(_0x383076[_0x56b9('0x86')]=this[_0x56b9('0xd9')]['getRevision'](_0x383076['id'])[_0x56b9('0x86')]);}const _0x25b40c=this['editor'][_0x56b9('0x105')][_0x56b9('0x46')](_0x56b9('0x10b'));this['_isPendingUpdate']=!0x0,this[_0x56b9('0x27')](),this[_0x56b9('0x84')][_0x56b9('0x92')](_0x907fa0,_0x25b40c)[_0x56b9('0xa2')](()=>{this['_isPendingUpdate']=!0x1;})[_0x56b9('0xfd')](_0x551350=>{if(_0x551350)for(const _0x2beb39 of _0x551350)this[_0x56b9('0x23')]({'id':_0x2beb39['id'],'createdAt':_0x2beb39[_0x56b9('0x59')]});this[_0x56b9('0x6')](),this[_0x56b9('0x70')]();});}[_0x56b9('0x3d')](_0x3fff38,_0x3a20fc){let _0x7f6a11=this['editor']['config'][_0x56b9('0x46')](_0x56b9('0xec')),_0x5e9f95=this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('rootsAttributes');if(void 0x0===_0x7f6a11){_0x7f6a11={};for(const _0x1b2aa1 of this['editor'][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x10a')]())_0x7f6a11[_0x1b2aa1]='';}if(_0x56b9('0x10c')==typeof _0x7f6a11&&(_0x7f6a11={'main':_0x7f6a11}),void 0x0===_0x5e9f95){_0x5e9f95={};for(const _0x5a7231 of this[_0x56b9('0x17')]['model']['document']['getRootNames']())_0x5e9f95[_0x5a7231]={};}let _0x3c9f30=!0x1;const _0x53d61a=Object['keys'](_0x7f6a11),_0xeea3e8=Object[_0x56b9('0x7d')](_0x3fff38);for(const _0x4e93f6 of _0x53d61a){if(_0x7f6a11[_0x4e93f6]!==_0x3fff38[_0x4e93f6]&&''!==_0x7f6a11[_0x4e93f6][_0x56b9('0xf9')]()){_0x3c9f30=!0x0;break;}if(!_0x3abcc8(_0x5e9f95[_0x4e93f6],_0x3a20fc[_0x4e93f6])&&Object['keys'](_0x5e9f95[_0x4e93f6])['length']>0x0){_0x3c9f30=!0x0;break;}}_0x3c9f30||(_0x3c9f30=_0xeea3e8['some'](_0x4a4af8=>!this[_0x56b9('0x17')]['model'][_0x56b9('0x1c')]['getRoot'](_0x4a4af8))),_0x3c9f30&&_0x495e1d(_0x56b9('0x2f'),{'editorData':_0x7f6a11,'editorRootsAttributes':_0x5e9f95,'revisionData':_0x3fff38,'revisionRootsAttributes':_0x3a20fc}),this['editor']['config'][_0x56b9('0x22')](_0x56b9('0xec'),_0x3fff38),this[_0x56b9('0x17')][_0x56b9('0x105')]['set'](_0x56b9('0x40'),_0x3a20fc);}[_0x56b9('0x27')](){if(!this[_0x56b9('0x90')]){const _0x219c54=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x107'));this[_0x56b9('0x90')]=_0x219c54[_0x56b9('0x2d')](_0x37ad9c(this[_0x56b9('0x17')][_0x56b9('0x47')],_0x56b9('0xb7')));}}[_0x56b9('0x6')](){this[_0x56b9('0x90')]&&(this[_0x56b9('0x17')][_0x56b9('0xc4')]['get'](_0x56b9('0x107'))[_0x56b9('0x6b')](this[_0x56b9('0x90')]),this[_0x56b9('0x90')]=null);}[_0x56b9('0x75')](_0x2d76eb){const _0x112b2e=this['repository']['getRevisions']();_0x112b2e[_0x56b9('0x32')]();let _0x44fb89=0x0;for(;_0x44fb89<_0x112b2e['length'];){const _0xb974e9=_0x112b2e[_0x44fb89];if(_0xb974e9===this[_0x56b9('0x5c')]){_0x44fb89++;continue;}if(_0xb974e9['id']===this[_0x56b9('0xb3')])break;const _0x36ef1e=_0x2d76eb[_0x56b9('0xb8')]-_0xb974e9[_0x56b9('0xb8')]||_0x2d76eb[_0x56b9('0x86')]-_0xb974e9[_0x56b9('0x86')];if(_0x36ef1e>0x0)break;if(_0x36ef1e<0x0)_0x44fb89++;else{if(!_0x2d76eb[_0x56b9('0xdd')]&&_0xb974e9[_0x56b9('0xdd')])break;if(_0xb974e9['creator']||!_0x2d76eb['creator']){if(_0x2d76eb[_0x56b9('0x59')]>_0xb974e9[_0x56b9('0x59')])break;_0x44fb89++;}else _0x44fb89++;}}return _0x44fb89;}['setRevisionData'](_0x2ba458){const _0xf9e71f=this[_0x56b9('0xd9')][_0x56b9('0x33')](_0x2ba458['id']);if(_0x2ba458[_0x56b9('0x59')]&&(_0x2ba458['createdAt']=new Date(_0x2ba458[_0x56b9('0x59')])),_0x2ba458[_0x56b9('0x36')]){const _0x445229=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'));_0x2ba458[_0x56b9('0x26')]=_0x2ba458[_0x56b9('0x36')][_0x56b9('0x99')](_0x43a7a8=>_0x445229[_0x56b9('0x38')](_0x43a7a8));}_0xf9e71f['_update'](_0x2ba458,!0x0);}['buildRevisionData']({revision:_0x17564f=null,from:_0x3157aa=null,to:_0x109ef6=null}){_0x3157aa=null!==_0x3157aa?_0x3157aa:_0x17564f['fromVersion'],_0x109ef6=null!==_0x109ef6?_0x109ef6:_0x17564f[_0x56b9('0xb8')];const _0x2eb8d9=this['_revisionDataBuilder']['getData'](_0x3157aa,_0x109ef6),_0x136ffd={'diffData':_0x2eb8d9[_0x56b9('0x5d')],'authorsIds':_0x2eb8d9['authorsIds'],'fromVersion':_0x3157aa,'toVersion':_0x109ef6};if(!_0x17564f||_0x109ef6!==_0x17564f[_0x56b9('0xb8')]){const _0x3ac42a=_0x109ef6-0x1,_0x4c442c=this[_0x56b9('0x57')][_0x56b9('0xe3')]['getOperation'](_0x3ac42a);_0x136ffd[_0x56b9('0x59')]=_0x4c442c&&_0x4c442c[_0x56b9('0x59')]||new Date();}if(this[_0x56b9('0xd8')]&&_0x3157aa===this[_0x56b9('0xd8')]['fromVersion'])for(const _0x396efb of this['_loadedStateData'][_0x56b9('0x26')])_0x136ffd[_0x56b9('0x36')][_0x56b9('0x9e')](_0x396efb['id'])||_0x136ffd[_0x56b9('0x36')][_0x56b9('0x96')](_0x396efb['id']);return _0x136ffd;}[_0x56b9('0xe5')](_0x1991d6){if(!_0x1991d6||_0x1991d6[_0x56b9('0x5d')])return Promise[_0x56b9('0x25')]();{const _0x1c619f=this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('collaboration.channelId');return this[_0x56b9('0x84')][_0x56b9('0x33')]({'channelId':_0x1c619f,'revisionId':_0x1991d6['id']})[_0x56b9('0xfd')](_0x5e5c29=>{_0x1991d6[_0x56b9('0x5d')]=_0x5e5c29[_0x56b9('0x5d')];});}}[_0x56b9('0x72')](_0x422500,_0x296fd9,_0x75e59d){if(this[_0x56b9('0x3a')][_0x56b9('0x39')](_0x422500)){const _0x53ae4e=this['_bufferedUpdates'][_0x56b9('0x46')](_0x422500);_0x296fd9=_0x75e59d?{..._0x53ae4e,..._0x296fd9}:{..._0x296fd9,..._0x53ae4e};}this[_0x56b9('0x3a')][_0x56b9('0x22')](_0x422500,_0x296fd9);}['_getFromVersion'](_0x2cad3b){const _0x2c0835=this[_0x56b9('0xd9')][_0x56b9('0xad')]();_0x2c0835[_0x56b9('0x32')](),_0x2c0835[_0x56b9('0x11')]();const _0x3ed320=_0x2c0835[_0x56b9('0x1')](_0x3f0919=>_0x3f0919['toVersion']<=_0x2cad3b)[_0x56b9('0xb8')];return _0x3ed320<this['_startingVersion']?this['_startingVersion']:_0x3ed320;}[_0x56b9('0x68')](_0x458e7d){const _0x3f1235=this['repository'][_0x56b9('0x33')](this[_0x56b9('0xd9')][_0x56b9('0x8d')]-0x1);if(_0x3f1235)this['_initialRevisionId']=_0x3f1235['id'];else{const _0x3bf4aa=!this[_0x56b9('0x17')][_0x56b9('0x69')]['document'][_0x56b9('0x100')]['find'](_0x563b99=>this[_0x56b9('0x17')][_0x56b9('0x69')]['hasContent'](_0x563b99)),_0x303e32=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x1362fe=_0x37ad9c(this['editor'][_0x56b9('0x47')],_0x3bf4aa?'Empty\x20document':_0x56b9('0x42'));this[_0x56b9('0x53')]({'from':_0x458e7d,'to':_0x458e7d,'id':this[_0x56b9('0xb3')],'name':_0x1362fe,'creatorId':_0x303e32});}}['_createCurrentRevision'](_0x1453eb){const _0x12fbce=this[_0x56b9('0x57')][_0x56b9('0xf0')]();this[_0x56b9('0x5c')]=this[_0x56b9('0xd9')][_0x56b9('0x33')](_0x12fbce),this['currentRevision']||(this[_0x56b9('0x5c')]=this[_0x56b9('0x53')]({'from':_0x1453eb,'to':_0x1453eb,'id':_0x12fbce,'name':'','creatorId':null}));}[_0x56b9('0x53')]({name:_0x565c66,from:_0x42e8ed,to:_0x1531c0,creatorId:_0x25f473,id:_0x19b2e2}){const _0x170ba2=this[_0x56b9('0x104')]({'from':_0x42e8ed,'to':_0x1531c0});_0x170ba2[_0x56b9('0xf8')]=_0x565c66,_0x170ba2['creatorId']=_0x25f473,_0x170ba2['id']=_0x19b2e2;const _0x411a93=this[_0x56b9('0xce')](_0x170ba2);return this[_0x56b9('0x84')]&&this[_0x56b9('0x72')](_0x170ba2['id'],_0x170ba2,!0x0),_0x411a93;}[_0x56b9('0x6f')](){this['editor'][_0x56b9('0x101')]['for'](_0x56b9('0x24'))[_0x56b9('0xe0')]({'model':_0x56b9('0x7f')});}[_0x56b9('0x10d')](_0x520e73){return(_0x520e73=_0x520e73[_0x56b9('0x5e')](_0xff31e6=>!_0xff31e6[_0x56b9('0xf8')]||_0x56b9('0x60')!==_0xff31e6[_0x56b9('0xf8')]&&_0x56b9('0xb2')!==_0xff31e6[_0x56b9('0xf8')]))[_0x56b9('0x87')](_0x447175=>{'string'!=typeof _0x447175&&(_0x447175['children']=this[_0x56b9('0x10d')](_0x447175[_0x56b9('0xe6')]),_0x447175[_0x56b9('0xb5')]=_0x447175[_0x56b9('0xb5')][_0x56b9('0x5e')](_0x1b4540=>!_0x1b4540[0x0][_0x56b9('0x1f')](_0x56b9('0xac'))));}),_0x520e73;}}function J(_0x2c4086,_0x61384d){const _0xdad1d3=_0x61384d[_0x56b9('0xd')][_0x56b9('0x5b')][_0x56b9('0x1c')];if(_0x56b9('0x10c')==typeof _0x2c4086)return new _0x560a81(_0xdad1d3,_0x2c4086);{const _0x26a4ca=_0x2c4086[_0x56b9('0xe6')][_0x56b9('0x99')](_0x2b65f3=>J(_0x2b65f3,_0x61384d));return new(B[_0x2c4086[(_0x56b9('0xe4'))]]||_0x52de99)(_0xdad1d3,_0x2c4086[_0x56b9('0xf8')],_0x2c4086['attributes'],_0x26a4ca);}}class H{constructor(_0x487fc8){this[_0x56b9('0x17')]=_0x487fc8,this['_savedMetaData']=new Map(),this[_0x56b9('0x0')]=-0x1,this[_0x56b9('0x56')]=-0x1,this[_0x56b9('0x1b')]=new Map(),this['_diffRoots']=new Map(),this[_0x56b9('0x31')]=new Map(),this[_0x56b9('0xab')]=new Map(),this[_0x56b9('0x16')]=new Map(),this[_0x56b9('0x54')]=new Map(),this[_0x56b9('0x5')]=new Map(),this[_0x56b9('0xe')]=new Map(),this[_0x56b9('0x18')]=new Map(),this[_0x56b9('0x95')]=new Map(),this[_0x56b9('0x2b')]=0x1;}[_0x56b9('0x29')](_0x393e38){this[_0x56b9('0xd4')]=_0x393e38;const _0x1d5052=new Map(),_0x2c6a66=new Map(),_0x1cc849=this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x100')][_0x56b9('0x99')](_0x8970e4=>_0x8970e4[_0x56b9('0x8e')]);for(const _0x4c56d6 of _0x1cc849){const _0x75fa96=this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x89')](_0x4c56d6),_0x47ee91=q(_0x75fa96);_0x1d5052['set'](_0x4c56d6,_0x47ee91),_0x2c6a66[_0x56b9('0x22')](_0x4c56d6,Object[_0x56b9('0x4e')](_0x75fa96[_0x56b9('0x93')]()));}const _0x4c7021=Array[_0x56b9('0x98')](this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x80')])['map'](_0x24caf5=>[_0x24caf5[_0x56b9('0xf8')],_0x24caf5[_0x56b9('0x9b')]()]),_0x52b84f=this['source'][_0x56b9('0x108')];this[_0x56b9('0x8')](_0x52b84f,_0x1d5052,_0x4c7021,_0x2c6a66),this['_startingRevisionId']=this[_0x56b9('0x2b')];const _0x36f5fb=new Map(),_0x3a9d8e=new Map();for(const _0x18f364 of _0x1cc849){const _0x569b86=G(_0x18f364);_0x36f5fb[_0x56b9('0x22')](_0x18f364,_0x569b86),_0x3a9d8e['set'](_0x18f364,{});}this['_saveMetaData'](Number[_0x56b9('0xe8')],_0x36f5fb,[],_0x3a9d8e);}['getData'](_0x3ddb80,_0x5a8ec1){if(this[_0x56b9('0x0')]===_0x3ddb80&&this[_0x56b9('0x56')]<=_0x5a8ec1)this[_0x56b9('0xde')][_0x56b9('0x37')]>0x1&&this[_0x56b9('0xd7')](this[_0x56b9('0x56')]),this[_0x56b9('0xaf')](this['_lastTo'],_0x5a8ec1,!0x0);else{if(!this[_0x56b9('0xde')][_0x56b9('0x39')](_0x3ddb80)){const _0xc6e8=this[_0x56b9('0x83')](_0x3ddb80);this[_0x56b9('0x3e')](_0xc6e8,_0x3ddb80,!0x1);}this[_0x56b9('0x3e')](_0x3ddb80,_0x5a8ec1,!0x0);}return this[_0x56b9('0x0')]=_0x3ddb80,this[_0x56b9('0x56')]=_0x5a8ec1,this['_getState']();}['loadState'](_0x38ffab){this[_0x56b9('0xc0')](),this[_0x56b9('0x0')]=_0x38ffab[_0x56b9('0x86')],this[_0x56b9('0x56')]=_0x38ffab['toVersion'];for(const _0x884058 in _0x38ffab[_0x56b9('0x5d')]){const _0x4378f8=_0x38ffab[_0x56b9('0x5d')][_0x884058][_0x56b9('0x58')],_0x3253d8=_0x558724(_0x38ffab['diffData'][_0x884058][_0x56b9('0x109')])||{},_0x4ee2ee=this[_0x56b9('0xe9')](_0x38ffab['diffData'][_0x884058][_0x56b9('0xfb')]);_0x4ee2ee[_0x56b9('0x8e')]=_0x884058,_0x4ee2ee[_0x56b9('0xdb')]=!_0x4378f8||!_0x4378f8['isAttached'],_0x4ee2ee[_0x56b9('0xbf')]=()=>_0x4ee2ee[_0x56b9('0xdb')],this[_0x56b9('0xab')][_0x56b9('0x22')](_0x884058,_0x4ee2ee),this['_baseRootsAttributes'][_0x56b9('0x22')](_0x884058,_0x3253d8),_0x4378f8&&this[_0x56b9('0x95')]['set'](_0x884058,_0x4378f8);const _0x1edfd5=this[_0x56b9('0x9c')](_0x4ee2ee);this[_0x56b9('0x5')][_0x56b9('0x22')](_0x884058,_0x1edfd5);for(const [_0x3444ba,_0x156147]of _0x4ee2ee[_0x56b9('0x80')]){if(!_0x3444ba['startsWith']('revision:'))continue;const _0x49e396=_0x3444ba[_0x56b9('0xa3')](':')[0x2];for(const _0x5c7c54 of _0x156147[_0x56b9('0x67')]({'singleCharacters':!0x0})){const _0x4a3ffb=this[_0x56b9('0x9f')](_0x5c7c54),_0x30374a=_0x56b9('0x55')==_0x5c7c54[_0x56b9('0xe4')]?_0x5c7c54[_0x56b9('0x8a')][_0x56b9('0x4')][_0x56b9('0xb6')](0x0,-0x1):_0x5c7c54[_0x56b9('0x8a')]['path'],_0x438c48=_0x1edfd5[_0x56b9('0xc')](_0x30374a)[_0x56b9('0xf6')](_0x4a3ffb);this['_touched'][_0x56b9('0x22')](_0x438c48,{'userId':_0x49e396});}}}this[_0x56b9('0x14')]=this[_0x56b9('0x2b')];const _0x47d792=[...Array(this['_revisionId'])[_0x56b9('0x7d')]()][_0x56b9('0xb6')](0x1)[_0x56b9('0x5e')](_0x638673=>!this[_0x56b9('0xe')][_0x56b9('0x39')](_0x638673));let _0x5bf7af=0x0;const _0x4aafea=new Map();for(const _0x1e2fc0 in _0x38ffab[_0x56b9('0x5d')]){const _0x47fd33=_0x38ffab['diffData'][_0x1e2fc0][_0x56b9('0x58')],_0x4662a0=_0x558724(_0x38ffab['diffData'][_0x1e2fc0][_0x56b9('0xa4')])||{},_0x5429da=this[_0x56b9('0xe9')](_0x38ffab[_0x56b9('0x5d')][_0x1e2fc0][_0x56b9('0x94')]);_0x5429da['rootName']=_0x1e2fc0,_0x5429da['_isAttached']=!_0x47fd33||_0x47fd33[_0x56b9('0xbf')],_0x5429da[_0x56b9('0xbf')]=()=>_0x5429da['_isAttached'],this[_0x56b9('0x7e')][_0x56b9('0x22')](_0x1e2fc0,_0x5429da),this[_0x56b9('0x31')][_0x56b9('0x22')](_0x1e2fc0,_0x4662a0);const _0x44bbfc=this[_0x56b9('0x9c')](_0x5429da,Number[_0x56b9('0xe8')]);this[_0x56b9('0x54')]['set'](_0x1e2fc0,_0x44bbfc),_0x4aafea[_0x56b9('0x22')](_0x1e2fc0,_0x5429da[_0x56b9('0xbf')]()?_0x4662a0:{});for(const [_0x3a2d89,_0x317c59]of _0x5429da[_0x56b9('0x80')]){if(!_0x3a2d89[_0x56b9('0x1f')](_0x56b9('0x97')))continue;const _0x5ade96=_0x3a2d89['split'](':')[0x2];for(const _0x28ec1c of _0x317c59[_0x56b9('0x67')]({'singleCharacters':!0x0})){const _0x29026f=this[_0x56b9('0x9f')](_0x28ec1c),_0x392dc9=this[_0x56b9('0x2b')]++,_0x9f2d74='elementEnd'==_0x28ec1c['type']?_0x28ec1c['previousPosition'][_0x56b9('0x4')][_0x56b9('0xb6')](0x0,-0x1):_0x28ec1c[_0x56b9('0x8a')][_0x56b9('0x4')];_0x44bbfc[_0x56b9('0xc')](_0x9f2d74)['_setAttribute'](_0x29026f,_0x392dc9),this[_0x56b9('0xe')][_0x56b9('0x22')](_0x392dc9,{'userId':_0x5ade96});}}for(const _0x1d3e58 of this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0xc1')](_0x5429da)['getWalker']({'singleCharacters':!0x0})){const _0x13b9f9=this[_0x56b9('0x9f')](_0x1d3e58),_0x489f38=_0x56b9('0x55')==_0x1d3e58[_0x56b9('0xe4')]?_0x1d3e58[_0x56b9('0x8a')][_0x56b9('0x4')][_0x56b9('0xb6')](0x0,-0x1):_0x1d3e58[_0x56b9('0x8a')][_0x56b9('0x4')],_0x151ab9=_0x44bbfc[_0x56b9('0xc')](_0x489f38);_0x151ab9[_0x56b9('0xf6')](_0x13b9f9)>0x0||_0x151ab9[_0x56b9('0x34')](_0x13b9f9,_0x47d792[_0x5bf7af++]);}for(const [_0x492af3,_0x3a6a86]of _0x5429da['markers'])_0x492af3[_0x56b9('0x1f')](_0x56b9('0x97'))||this[_0x56b9('0x1b')][_0x56b9('0x22')](_0x492af3,_0x3a6a86);}const _0x49f4d3=G('$graveyard');this[_0x56b9('0xab')][_0x56b9('0x22')](_0x56b9('0x2a'),_0x49f4d3),this['_baseIdsRoots'][_0x56b9('0x22')]('$graveyard',this[_0x56b9('0x9c')](_0x49f4d3,0x1));const _0x437809=G(_0x56b9('0x2a'));this[_0x56b9('0x7e')]['set']('$graveyard',_0x437809),this[_0x56b9('0x54')][_0x56b9('0x22')](_0x56b9('0x2a'),this[_0x56b9('0x9c')](_0x437809,0x1));const _0x5d72c7=Array['from'](this[_0x56b9('0x7e')])[_0x56b9('0x99')](([_0x5de39f,_0x7895fe])=>[_0x5de39f,q(_0x7895fe)]);this[_0x56b9('0x8')](this[_0x56b9('0x56')],_0x5d72c7,this['_markers'],_0x4aafea);}[_0x56b9('0xe9')](_0x5ae7dc){const _0x49a95c=JSON[_0x56b9('0x19')](_0x5ae7dc),_0x374d76=this[_0x56b9('0x17')][_0x56b9('0xd')][_0x56b9('0x5b')][_0x56b9('0x1c')],_0x314408=new _0x54a520(_0x374d76,_0x49a95c['map'](_0x1339ac=>J(_0x1339ac,this[_0x56b9('0x17')])));return this[_0x56b9('0x17')][_0x56b9('0x81')][_0x56b9('0xf2')](_0x314408);}[_0x56b9('0x8')](_0x541fe7,_0x176f51,_0x16963b,_0x5bb4dc){const _0x459f3e=new Map(_0x176f51),_0xa2f279=new Map(_0x558724(_0x5bb4dc)),_0x187034=new Map();for(const [_0x163252,_0x3d9887]of _0x16963b)_0x187034['set'](_0x163252,{'start':_0x3d9887[_0x56b9('0xcf')][_0x56b9('0xd0')](),'end':_0x3d9887[_0x56b9('0xa9')][_0x56b9('0xd0')](),'rootName':_0x3d9887[_0x56b9('0x4b')][_0x56b9('0x8e')]});this[_0x56b9('0xde')][_0x56b9('0x22')](_0x541fe7,{'roots':_0x459f3e,'markers':_0x187034,'rootsAttributes':_0xa2f279});}[_0x56b9('0xd7')](_0x1d6b00){this['_savedMetaData']['delete'](_0x1d6b00);}[_0x56b9('0xe7')](){this[_0x56b9('0xc0')](),this['_lastFrom']=-0x1,this[_0x56b9('0x56')]=-0x1,this[_0x56b9('0xde')][_0x56b9('0xc7')](),this[_0x56b9('0x29')](this[_0x56b9('0xd4')]);}[_0x56b9('0xc0')](){this[_0x56b9('0xe')][_0x56b9('0xc7')](),this[_0x56b9('0x18')][_0x56b9('0xc7')](),this[_0x56b9('0x95')]['clear'](),this[_0x56b9('0x7e')][_0x56b9('0xc7')](),this['_diffRootsAttributes']['clear'](),this['_baseRoots'][_0x56b9('0xc7')](),this[_0x56b9('0x16')][_0x56b9('0xc7')](),this[_0x56b9('0x54')][_0x56b9('0xc7')](),this[_0x56b9('0x5')][_0x56b9('0xc7')](),this[_0x56b9('0x1b')]['clear'](),this[_0x56b9('0x2b')]=0x1,this[_0x56b9('0x14')]=this[_0x56b9('0x2b')];}[_0x56b9('0x9c')](_0x5b1ad3,_0x51cf36=null){let _0x5d147a=null;_0x5b1ad3['is']('documentFragment')||(_0x5d147a=new _0x547c6b(_0x5b1ad3['name'],{'vid_start':null===_0x51cf36?this[_0x56b9('0x2b')]++:_0x51cf36++}));const _0x4d8c9e=[];for(const _0x60850c of _0x5b1ad3[_0x56b9('0x102')]())if(_0x60850c['is'](_0x56b9('0xda'))){_0x4d8c9e[_0x56b9('0x96')](this[_0x56b9('0x9c')](_0x60850c,_0x51cf36));const _0x1ec365=_0x4d8c9e[_0x4d8c9e[_0x56b9('0x8d')]-0x1];null!==_0x51cf36&&(_0x51cf36=_0x1ec365['is'](_0x56b9('0xda'),_0x56b9('0x9'))?_0x1ec365[_0x56b9('0xf6')]('vid')+0x1:_0x1ec365[_0x56b9('0xf6')](_0x56b9('0x76'))+0x1);}else for(let _0x3d3d72=0x0;_0x3d3d72<_0x60850c[_0x56b9('0x8b')];_0x3d3d72++)_0x4d8c9e[_0x56b9('0x96')](new _0x547c6b(_0x56b9('0x9'),{'vid':null===_0x51cf36?this[_0x56b9('0x2b')]++:_0x51cf36++}));if(_0x5b1ad3['is'](_0x56b9('0x85'))){const _0x5bc360=G(_0x5b1ad3[_0x56b9('0x8e')]);return _0x5bc360[_0x56b9('0xb')](0x0,_0x4d8c9e),_0x5bc360;}return _0x5d147a['_setAttribute'](_0x56b9('0x76'),null===_0x51cf36?this[_0x56b9('0x2b')]++:_0x51cf36++),_0x5d147a[_0x56b9('0xb')](0x0,_0x4d8c9e),_0x5d147a;}[_0x56b9('0x3e')](_0xe5c2a6,_0x17744b,_0x559181){this[_0x56b9('0xc0')]();const {roots:_0x3d3d7f,markers:_0x1d74d0,rootsAttributes:_0x32506d}=this[_0x56b9('0xde')][_0x56b9('0x46')](_0xe5c2a6);this[_0x56b9('0xab')]=new Map(_0x3d3d7f),this[_0x56b9('0x16')]=new Map(_0x558724(_0x32506d));for(const [_0x16a09a,_0x387392]of this[_0x56b9('0xab')])if(_0x56b9('0x2a')!==_0x16a09a&&(this[_0x56b9('0x7e')]['set'](_0x16a09a,q(_0x387392)),this[_0x56b9('0x31')]=new Map(_0x558724(_0x32506d)),_0x559181)){const _0xbbc73b=this[_0x56b9('0x2b')];this['_idsRoots'][_0x56b9('0x22')](_0x16a09a,this['_makeIdsRoot'](_0x387392)),this[_0x56b9('0x5')]['set'](_0x16a09a,this['_makeIdsRoot'](_0x387392,_0xbbc73b));}this[_0x56b9('0x14')]=this['_revisionId'],this[_0x56b9('0x7e')][_0x56b9('0x22')]('$graveyard',q(this[_0x56b9('0xab')][_0x56b9('0x46')](_0x56b9('0x2a')))),_0x559181&&this[_0x56b9('0x54')][_0x56b9('0x22')]('$graveyard',this['_makeIdsRoot'](this[_0x56b9('0xab')][_0x56b9('0x46')]('$graveyard')));for(const [_0x532f81,_0x235e3c]of _0x1d74d0){const _0x50a039=this[_0x56b9('0xab')][_0x56b9('0x46')](_0x235e3c['rootName']),_0xf9efec=this['_diffRoots'][_0x56b9('0x46')](_0x235e3c[_0x56b9('0x8e')]),_0x2aa38f=new _0x366d5d(this[_0x56b9('0xeb')](_0x235e3c[_0x56b9('0xcf')],_0x50a039),this[_0x56b9('0xeb')](_0x235e3c[_0x56b9('0xa9')],_0x50a039)),_0x4b9312=this[_0x56b9('0x63')](_0x2aa38f,_0xf9efec);_0x50a039[_0x56b9('0x80')][_0x56b9('0x22')](_0x532f81,_0x2aa38f),this[_0x56b9('0x1b')]['set'](_0x532f81,_0x4b9312);}this[_0x56b9('0xaf')](_0xe5c2a6,_0x17744b,_0x559181);}[_0x56b9('0xaf')](_0x3d833a,_0x12d7df,_0x42883c){for(const _0x22d563 of this[_0x56b9('0xd4')]['getOperations'](_0x3d833a,_0x12d7df))this['_handleOperation'](_0x22d563,_0x42883c);for(const _0x46cd8a of this['_diffRoots'][_0x56b9('0x88')]())_0x46cd8a[_0x56b9('0x80')][_0x56b9('0xc7')]();for(const [_0x4531de,_0x1ee93a]of this['_markers']){this[_0x56b9('0x7e')][_0x56b9('0x46')](_0x1ee93a[_0x56b9('0x4b')][_0x56b9('0x8e')])[_0x56b9('0x80')][_0x56b9('0x22')](_0x4531de,_0x1ee93a[_0x56b9('0xd0')]());}const _0x44e9ab=new Map(),_0x1f4890=new Map();for(const [_0x7e3a8b,_0x334063]of this[_0x56b9('0x7e')])_0x44e9ab['set'](_0x7e3a8b,q(_0x334063)),_0x1f4890[_0x56b9('0x22')](_0x7e3a8b,this['_diffRootsAttributes']['get'](_0x7e3a8b));this[_0x56b9('0x8')](_0x12d7df,_0x44e9ab,this[_0x56b9('0x1b')],_0x1f4890);}[_0x56b9('0x83')](_0x138639){const _0x16b15e=Array[_0x56b9('0x98')](this[_0x56b9('0xde')][_0x56b9('0x7d')]());_0x16b15e['sort']((_0x52bc7a,_0xe26072)=>_0x52bc7a-_0xe26072),_0x16b15e['reverse']();for(const _0xdd46e3 of _0x16b15e)if(_0xdd46e3<_0x138639)return _0xdd46e3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1aabd4,_0x18a788){const _0x1cc139=Array[_0x56b9('0x98')](_0x18a788[_0x56b9('0x80')])[_0x56b9('0x99')](([_0x1697ff,_0x135920])=>[_0x1697ff,this[_0x56b9('0x63')](_0x135920,_0x1aabd4)]);_0x1aabd4['markers']=new Map(_0x1cc139);}['_transformMarkers'](_0x1f3984){for(const _0x2c5b97 of this[_0x56b9('0x1b')][_0x56b9('0x88')]()){const _0x5c2ac5=_0x2c5b97[_0x56b9('0x21')](_0x1f3984),_0xec7362=_0x366d5d[_0x56b9('0x2')](_0x5c2ac5);_0x2c5b97[_0x56b9('0xcf')]=_0xec7362[_0x56b9('0xcf')],_0x2c5b97[_0x56b9('0xa9')]=_0xec7362[_0x56b9('0xa9')];}}['_handleOperation'](_0x90d229,_0x548e52){if('addRoot'==_0x90d229[_0x56b9('0xe4')]||_0x56b9('0xb4')==_0x90d229['type'])return void this[_0x56b9('0xc8')](_0x90d229,_0x548e52);if(_0x56b9('0x78')==_0x90d229[_0x56b9('0xe4')]){const _0xe8f327=_0x90d229[_0x56b9('0xca')][_0x56b9('0x4b')][_0x56b9('0x8e')];this[_0x56b9('0x7e')][_0x56b9('0x39')](_0xe8f327)||(this[_0x56b9('0x7e')][_0x56b9('0x22')](_0xe8f327,G(_0xe8f327,!0x0)),this[_0x56b9('0x31')][_0x56b9('0x22')](_0xe8f327,{}),_0x548e52&&this['_idsRoots']['set'](_0xe8f327,G(_0xe8f327,!0x0)));}else{if(_0x56b9('0xbe')==_0x90d229[_0x56b9('0xe4')]||_0x56b9('0xaa')==_0x90d229[_0x56b9('0xe4')]||_0x56b9('0xdf')==_0x90d229[_0x56b9('0xe4')])return void this[_0x56b9('0xef')](_0x90d229);}const _0x34bad7=this[_0x56b9('0x5f')](_0x90d229,this[_0x56b9('0x7e')]);if(_0x56b9('0x66')!==_0x90d229[_0x56b9('0xe4')]&&(_0x34bad7[_0x56b9('0xbc')](),this[_0x56b9('0x35')](_0x34bad7)),_0x548e52)switch(_0x34bad7[_0x56b9('0xe4')]){case _0x56b9('0x78'):this[_0x56b9('0x50')](_0x90d229);break;case _0x56b9('0xcb'):case _0x56b9('0x6b'):case _0x56b9('0x43'):this[_0x56b9('0xea')](_0x90d229);break;case _0x56b9('0xff'):this['_handleMergeOperation'](_0x90d229);break;case _0x56b9('0xa3'):this[_0x56b9('0xa8')](_0x90d229);break;case _0x56b9('0x66'):this[_0x56b9('0xc3')](_0x90d229);}}[_0x56b9('0x5f')](_0x3e5892,_0x3cd535){const _0x5ece97=_0x3e5892[_0x56b9('0xd0')]();return _0x5ece97[_0x56b9('0x3')]=_0x3e5892['_authorId'],this[_0x56b9('0xf3')](_0x5ece97,_0x3cd535),_0x5ece97;}[_0x56b9('0x71')](_0x60fff4){return _0x60fff4[_0x56b9('0x99')](_0xc82d9d=>{const _0x4dcd5c=this[_0x56b9('0x9f')](_0xc82d9d);return Number(_0xc82d9d['item'][_0x56b9('0xf6')](_0x4dcd5c));});}['_generateTape'](_0x4b43b7,_0x216ba0){if(_0x4b43b7['is'](_0x56b9('0xda'),_0x56b9('0x9')))_0x216ba0[_0x56b9('0x96')]({'item':_0x4b43b7,'type':_0x56b9('0xa0')});else{_0x4b43b7['is'](_0x56b9('0xda'))&&_0x216ba0['push']({'item':_0x4b43b7,'type':_0x56b9('0x49')});for(const _0x4314ff of _0x4b43b7['getChildren']())this[_0x56b9('0xc2')](_0x4314ff,_0x216ba0);_0x4b43b7['is'](_0x56b9('0xda'))&&_0x216ba0[_0x56b9('0x96')]({'item':_0x4b43b7,'type':_0x56b9('0x55')});}return _0x216ba0;}['_getState'](){const _0x529f18=new Map(this[_0x56b9('0xe')]),_0x46f559=new Map(_0x529f18),_0x516463=new Map(),_0x4ce53a={'insertions':{},'deletions':{}},_0x1bd6c8={'insertions':{},'deletions':{}},_0x203863=new Map(),_0x17db80=new Set([...this[_0x56b9('0xab')]['keys'](),...this[_0x56b9('0x7e')][_0x56b9('0x7d')]()]);_0x17db80[_0x56b9('0x52')](_0x56b9('0x2a'));for(const _0x370452 of _0x17db80){const _0x5d461b=this['_diffRoots']['get'](_0x370452)||G(_0x370452,!0x1),_0x4066eb=this[_0x56b9('0xab')]['get'](_0x370452)||G(_0x370452,!0x1);_0x5d461b['isAttached']()||_0x4066eb['isAttached']()?(_0x4ce53a['insertions'][_0x370452]=q(_0x5d461b),_0x4ce53a[_0x56b9('0xfb')][_0x370452]=q(_0x4066eb),this[_0x56b9('0x13')](_0x4ce53a[_0x56b9('0xfb')][_0x370452],_0x4066eb),this[_0x56b9('0x13')](_0x4ce53a[_0x56b9('0x94')][_0x370452],_0x5d461b),_0x1bd6c8[_0x56b9('0x94')][_0x370452]=this['_generateTape'](this[_0x56b9('0x54')][_0x56b9('0x46')](_0x370452),[]),_0x1bd6c8[_0x56b9('0xfb')][_0x370452]=this[_0x56b9('0xc2')](this[_0x56b9('0x5')][_0x56b9('0x46')](_0x370452)||G(_0x370452,!0x1),[])):_0x17db80[_0x56b9('0x52')](_0x370452);}for(const _0x321f21 of _0x17db80){const _0x201d06=_0x1bd6c8[_0x56b9('0x94')][_0x321f21];for(const _0xf5cb6f of _0x201d06){const _0x14746d=this['_getVidAttributeName'](_0xf5cb6f),_0x29a1bd=_0xf5cb6f[_0x56b9('0xd2')][_0x56b9('0xf6')](_0x14746d);_0x46f559['delete'](_0x29a1bd),_0x29a1bd>=this['_startingRevisionId']&&_0x516463[_0x56b9('0x22')](_0x29a1bd,_0x529f18['get'](_0x29a1bd));}}for(const _0x5365ee of _0x17db80){const _0x373046=_0x1bd6c8[_0x56b9('0x94')][_0x5365ee],_0xb1fdfd=this['_getBaseVids'](_0x1bd6c8['deletions'][_0x5365ee]);let _0x5f3635=0x0;for(const _0x22d8a2 of _0x373046){const _0x1cf005=this[_0x56b9('0x9f')](_0x22d8a2),_0x77d4bb=_0x22d8a2[_0x56b9('0xd2')]['getAttribute'](_0x1cf005);if(!_0x516463[_0x56b9('0x39')](_0x77d4bb)&&!_0x203863[_0x56b9('0x39')](_0x77d4bb)){if(_0x46f559[_0x56b9('0x39')](_0x77d4bb))_0x5f3635++;else{if(_0x77d4bb!=_0xb1fdfd[_0x5f3635]){const _0x257172=_0x529f18[_0x56b9('0x46')](_0x77d4bb)||_0x529f18[_0x56b9('0x46')](_0xb1fdfd[_0x5f3635]);for(;_0x77d4bb!=_0xb1fdfd[_0x5f3635];)_0x46f559[_0x56b9('0x39')](_0xb1fdfd[_0x5f3635])||(_0x203863[_0x56b9('0x22')](_0xb1fdfd[_0x5f3635],_0x257172),_0x529f18['set'](_0xb1fdfd[_0x5f3635],_0x257172)),_0x5f3635++;}_0x5f3635++;}}}}for(const _0x589a1b of _0x17db80){const _0xe9eb2c=_0x1bd6c8[_0x56b9('0x94')][_0x589a1b];for(const _0x2f9be1 of _0xe9eb2c){const _0x385731=this['_getVidAttributeName'](_0x2f9be1),_0x3e13e7=_0x2f9be1[_0x56b9('0xd2')][_0x56b9('0xf6')](_0x385731);if(_0x203863[_0x56b9('0x39')](_0x3e13e7)){const _0x14c66b=_0x203863[_0x56b9('0x46')](_0x3e13e7);_0x46f559[_0x56b9('0x39')](_0x3e13e7)||_0x46f559[_0x56b9('0x22')](_0x3e13e7,{..._0x14c66b}),_0x516463[_0x56b9('0x22')](_0x3e13e7,{..._0x14c66b});}}}for(const _0x2d34e4 of _0x46f559['keys']())_0x2d34e4>=this[_0x56b9('0x14')]&&_0x46f559[_0x56b9('0x52')](_0x2d34e4);const _0x51ff5f=new Map();for(const _0x462216 of _0x17db80){let _0x3043cf=_0x1bd6c8['insertions'][_0x462216];for(const _0x6f74bf of _0x3043cf)if(_0x6f74bf[_0x56b9('0xd2')]['is']('element',_0x56b9('0xae'))){const _0x1d8959=this[_0x56b9('0x9f')](_0x6f74bf),_0x1b8715=_0x6f74bf['item'][_0x56b9('0xf6')](_0x1d8959);if(_0x516463[_0x56b9('0x39')](_0x1b8715)){const _0x443fe1=_0x6f74bf['item']['parent']['parent'][_0x56b9('0xf6')](_0x56b9('0xd3')),_0x37d8ab=_0x51ff5f[_0x56b9('0x46')](_0x443fe1)||new Set();_0x37d8ab[_0x56b9('0x2d')](_0x516463[_0x56b9('0x46')](_0x1b8715)[_0x56b9('0xb1')]),_0x51ff5f[_0x56b9('0x22')](_0x443fe1,_0x37d8ab);}}_0x3043cf=_0x1bd6c8[_0x56b9('0xfb')][_0x462216];for(const _0x4b2ea4 of _0x3043cf)if(_0x4b2ea4['item']['is']('element',_0x56b9('0xae'))){const _0x4ef0b3=this['_getVidAttributeName'](_0x4b2ea4),_0x30a85a=_0x4b2ea4['item'][_0x56b9('0xf6')](_0x4ef0b3);if(_0x46f559[_0x56b9('0x39')](_0x30a85a)){const _0x2789c5=_0x4b2ea4[_0x56b9('0xd2')][_0x56b9('0x5a')][_0x56b9('0x5a')][_0x56b9('0xf6')](_0x56b9('0xd3')),_0x494a16=_0x51ff5f[_0x56b9('0x46')](_0x2789c5)||new Set();_0x494a16['add'](_0x46f559[_0x56b9('0x46')](_0x30a85a)[_0x56b9('0xb1')]),_0x51ff5f[_0x56b9('0x22')](_0x2789c5,_0x494a16);}}for(const _0x17bdd0 of _0x51ff5f[_0x56b9('0x7d')]())(_0x516463[_0x56b9('0x39')](_0x17bdd0)||_0x46f559['has'](_0x17bdd0))&&_0x51ff5f[_0x56b9('0x52')](_0x17bdd0);}for(const _0x30f778 of _0x17db80){const _0x21749c=_0x1bd6c8[_0x56b9('0x94')][_0x30f778];let _0xccbf2c=null,_0x3d129f=null;for(const _0x1fe377 of _0x21749c){const _0x355b43=this[_0x56b9('0x9f')](_0x1fe377),_0x25e405=_0x1fe377[_0x56b9('0xd2')]['getAttribute'](_0x355b43),_0x7dd899=_0x51ff5f[_0x56b9('0x46')](_0x25e405);_0x7dd899&&_0x56b9('0x49')==_0x1fe377[_0x56b9('0xe4')]&&(_0xccbf2c=Array[_0x56b9('0x98')](_0x7dd899)[0x0],_0x3d129f=_0x1fe377[_0x56b9('0xd2')]['getAttribute'](_0x56b9('0x76'))),_0xccbf2c&&(_0x46f559[_0x56b9('0x22')](_0x25e405,{'userId':_0xccbf2c}),_0x516463[_0x56b9('0x22')](_0x25e405,{'userId':_0xccbf2c})),_0x25e405==_0x3d129f&&(_0xccbf2c=null,_0x3d129f=null);}}const _0x58919d={},_0x5f55fd=new Set();for(const _0x57bcb9 of _0x17db80){const _0x21e8cb=_0x4ce53a[_0x56b9('0xfb')][_0x57bcb9],_0x24012b=_0x4ce53a[_0x56b9('0x94')][_0x57bcb9];for(const {userId:_0x331ce9}of this[_0x56b9('0x18')][_0x56b9('0x88')]())null!==_0x331ce9&&_0x5f55fd[_0x56b9('0x2d')](_0x331ce9);for(const {userId:_0x36be0d}of this['_touchedRoots'][_0x56b9('0x88')]())null!==_0x36be0d&&_0x5f55fd[_0x56b9('0x2d')](_0x36be0d);this[_0x56b9('0x3c')](_0x24012b,_0x1bd6c8[_0x56b9('0x94')][_0x57bcb9],_0x516463,_0x56b9('0x48'),_0x5f55fd),this[_0x56b9('0x3c')](_0x21e8cb,_0x1bd6c8[_0x56b9('0xfb')][_0x57bcb9],_0x46f559,_0x56b9('0x4f'),_0x5f55fd),_0x58919d[_0x57bcb9]={'insertions':this['_prepareViewToSave'](_0x24012b),'deletions':this[_0x56b9('0xed')](_0x21e8cb),'attachChange':this['_touchedRoots'][_0x56b9('0x46')](_0x57bcb9)||null,'attributesBefore':_0x558724(this['_baseRootsAttributes'][_0x56b9('0x46')](_0x57bcb9))||{},'attributesAfter':_0x558724(this['_diffRootsAttributes']['get'](_0x57bcb9))};}return{'diffData':_0x58919d,'authorsIds':Array[_0x56b9('0x98')](_0x5f55fd)};}[_0x56b9('0x8c')](_0x56d650){for(const [,_0x2f78de]of _0x56d650['markers']){const _0x324620=_0x2f78de[_0x56b9('0xcf')][_0x56b9('0x74')]()['filter'](_0x47934e=>'tableCell'==_0x47934e[_0x56b9('0xf8')]);for(const _0x4d7436 of _0x324620)0x1==_0x4d7436[_0x56b9('0x12')]&&_0x4d7436[_0x56b9('0xd6')](0x0)['is'](_0x56b9('0xda'),_0x56b9('0x64'))&&_0x4d7436[_0x56b9('0xd6')](0x0)[_0x56b9('0x34')](_0x56b9('0xa5'),!0x0);}}[_0x56b9('0xed')](_0x176355){this['_processRootBeforeSave'](_0x176355);const _0x141de3=this[_0x56b9('0x17')]['data'][_0x56b9('0x7b')](_0x176355,{}),_0x27e7f0=Array[_0x56b9('0x98')](_0x141de3[_0x56b9('0x102')]())[_0x56b9('0x99')](_0x1e7a5e=>this[_0x56b9('0x103')](_0x1e7a5e));return JSON['stringify'](_0x27e7f0);}[_0x56b9('0x103')](_0x172f84){if(_0x172f84['is'](_0x56b9('0x9')))return _0x172f84[_0x56b9('0x81')];{const _0x3528ae=_0x172f84;return{'type':Object[_0x56b9('0x7d')](B)[_0x56b9('0x1')](_0x668358=>_0x172f84 instanceof B[_0x668358]),'name':_0x3528ae[_0x56b9('0xf8')],'attributes':Array[_0x56b9('0x98')](_0x3528ae[_0x56b9('0x93')]()),'children':Array['from'](_0x3528ae[_0x56b9('0x102')]())[_0x56b9('0x99')](_0x560e35=>this[_0x56b9('0x103')](_0x560e35))};}}[_0x56b9('0x3c')](_0x3edac4,_0x92ffc8,_0x28f4c1,_0x57979b,_0x1b2184){let _0x391ebf=null,_0xfd720d=null,_0x449aa8=0x0;const _0xa45ccc=this[_0x56b9('0x17')][_0x56b9('0x69')];for(let _0x6173b1=0x0;_0x6173b1<_0x92ffc8[_0x56b9('0x8d')];_0x6173b1++){const _0xc9b932=this['_getVidAttributeName'](_0x92ffc8[_0x6173b1]),_0x19e142=_0x92ffc8[_0x6173b1][_0x56b9('0xd2')][_0x56b9('0xf6')](_0xc9b932),_0x43003d=_0x28f4c1[_0x56b9('0x46')](_0x19e142),_0x3b141c=_0x6173b1==_0x92ffc8['length']-0x1;(!_0x391ebf&&_0x43003d&&(_0x391ebf=_0x43003d,_0xfd720d=_0x92ffc8[_0x6173b1]),_0x391ebf&&(!_0x43003d||_0x43003d['userId']!=_0x391ebf['userId']))&&(_0x1cf32c(_0x43003d,L(_0xfd720d,_0x3edac4,_0xa45ccc),L(_0x92ffc8[_0x6173b1],_0x3edac4,_0xa45ccc)),_0x391ebf=_0x43003d||null,_0xfd720d=_0x43003d?_0x92ffc8[_0x6173b1]:null),_0x391ebf&&_0x3b141c&&_0x1cf32c(_0x43003d,L(_0xfd720d,_0x3edac4,_0xa45ccc),W(_0x92ffc8[_0x6173b1],_0x3edac4,_0xa45ccc));}function _0x1cf32c(_0x208c08,_0x570347,_0x449080){const _0x3e58b8=_0x391ebf[_0x56b9('0xb1')],_0x21fe47=_0x56b9('0x97')+_0x57979b+':'+_0x3e58b8+':'+_0x449aa8++,_0x3b9996=_0xa45ccc[_0x56b9('0xc9')](_0x570347,_0x449080);_0x3edac4['markers'][_0x56b9('0x22')](_0x21fe47,_0x3b9996),null!==_0x3e58b8&&_0x1b2184['add'](_0x3e58b8);}}['_getVidAttributeName'](_0x310584){switch(_0x310584[_0x56b9('0xe4')]){case _0x56b9('0x49'):return _0x56b9('0xd3');case _0x56b9('0x55'):return _0x56b9('0x76');default:return _0x56b9('0x79');}}[_0x56b9('0xf3')](_0x6e7eac,_0x3d7141){_0x6e7eac[_0x56b9('0xfa')]=null;for(const _0x3d71e0 in _0x6e7eac){const _0x15daf4=_0x6e7eac[_0x3d71e0];if(_0x15daf4 instanceof _0x295c36){const _0x2ebaf6=_0x3d7141[_0x56b9('0x46')](_0x15daf4[_0x56b9('0x4b')][_0x56b9('0x8e')]);_0x6e7eac[_0x3d71e0]=this['_fixPosition'](_0x15daf4,_0x2ebaf6);}if(_0x15daf4 instanceof _0x366d5d){const _0x1de220=_0x3d7141[_0x56b9('0x46')](_0x15daf4[_0x56b9('0x4b')][_0x56b9('0x8e')]);_0x6e7eac[_0x3d71e0]=this['_fixRange'](_0x15daf4,_0x1de220);}_0x56b9('0x4b')===_0x3d71e0&&(_0x6e7eac[_0x56b9('0x4b')]=_0x3d7141[_0x56b9('0x46')](_0x6e7eac[_0x56b9('0x4b')][_0x56b9('0x8e')]));}}[_0x56b9('0x63')](_0x103be8,_0x30ccc9){return this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0xc9')](this['_fixPosition'](_0x103be8[_0x56b9('0xcf')],_0x30ccc9),this['_fixPosition'](_0x103be8[_0x56b9('0xa9')],_0x30ccc9));}[_0x56b9('0xeb')](_0x1c694d,_0x738c97){return this[_0x56b9('0x17')]['model'][_0x56b9('0x51')](_0x738c97,_0x1c694d[_0x56b9('0x4')],_0x1c694d[_0x56b9('0x62')]);}[_0x56b9('0x50')](_0x158442){const _0x1b7fde=this[_0x56b9('0x54')][_0x56b9('0x46')](_0x158442[_0x56b9('0xca')][_0x56b9('0x4b')][_0x56b9('0x8e')]),_0x53720f=this[_0x56b9('0xeb')](_0x158442['position'],_0x1b7fde),_0x395cf2=null===_0x158442[_0x56b9('0x3')]?null:_0x158442['_authorId']||this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x5b2a24=_0x53720f[_0x56b9('0x5a')],_0x12f320=this['_revisionId'],_0x3b7b7e=[];for(const _0x2bdbbd of _0x158442[_0x56b9('0xdc')])if(_0x2bdbbd['is']('element'))_0x3b7b7e[_0x56b9('0x96')](this[_0x56b9('0x9c')](_0x2bdbbd));else for(let _0x41cb52=0x0;_0x41cb52<_0x2bdbbd['offsetSize'];_0x41cb52++)_0x3b7b7e[_0x56b9('0x96')](new _0x547c6b('$text',{'vid':this[_0x56b9('0x2b')]++}));const _0x5f15e2=this[_0x56b9('0x2b')];for(let _0x4c9668=_0x12f320;_0x4c9668<_0x5f15e2;_0x4c9668++)this['_touched']['set'](_0x4c9668,{'userId':_0x395cf2});_0x5b2a24[_0x56b9('0xb')](_0x53720f[_0x56b9('0x28')],_0x3b7b7e);}['_handleMoveOperation'](_0x180e38){(_0x180e38=this[_0x56b9('0x5f')](_0x180e38,this[_0x56b9('0x54')]))[_0x56b9('0xbc')]();const _0x532a51=null===_0x180e38['_authorId']?null:_0x180e38[_0x56b9('0x3')]||this['editor'][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x36b41a=_0x180e38[_0x56b9('0x73')](),_0x4ed7b4=_0x36b41a[_0x56b9('0x5a')],_0x21dad8=_0x36b41a[_0x56b9('0x28')];!function _0x18d7bf(_0x2f100f,_0x38f6ee,_0xee901f,_0x44b2b9){for(let _0x2a5e22=_0xee901f;_0x2a5e22<_0x44b2b9;_0x2a5e22++){const _0x4542b0=_0x38f6ee[_0x56b9('0xd6')](_0x2a5e22);_0x4542b0['is'](_0x56b9('0xda'),_0x56b9('0x9'))?_0x2f100f[_0x56b9('0x22')](_0x4542b0[_0x56b9('0xf6')](_0x56b9('0x79')),{'userId':_0x532a51}):(_0x2f100f[_0x56b9('0x22')](_0x4542b0[_0x56b9('0xf6')](_0x56b9('0xd3')),{'userId':_0x532a51}),_0x18d7bf(_0x2f100f,_0x4542b0,0x0,_0x4542b0[_0x56b9('0x12')]),_0x2f100f[_0x56b9('0x22')](_0x4542b0['getAttribute']('vid_end'),{'userId':_0x532a51}));}}(this[_0x56b9('0xe')],_0x4ed7b4,_0x21dad8,_0x21dad8+_0x180e38[_0x56b9('0xbd')]);}[_0x56b9('0x4a')](_0x3deace){const _0x56c39d=null===(_0x3deace=this['_cloneOperation'](_0x3deace,this[_0x56b9('0x54')]))[_0x56b9('0x3')]?null:_0x3deace[_0x56b9('0x3')]||this[_0x56b9('0x17')][_0x56b9('0xc4')]['get'](_0x56b9('0x6c'))['me']['id'],_0x5430ed=_0x3deace[_0x56b9('0x7c')]['parent'],_0x257605=_0x3deace[_0x56b9('0xbb')][_0x56b9('0x5a')],_0x398ff7=_0x5430ed[_0x56b9('0xf6')]('vid_end'),_0x324f20=_0x257605[_0x56b9('0xf6')](_0x56b9('0xd3'));_0x5430ed['_setAttribute'](_0x56b9('0x76'),_0x257605[_0x56b9('0xf6')](_0x56b9('0x76'))),_0x257605['_setAttribute']('vid_end',_0x398ff7),this[_0x56b9('0xe')]['set'](_0x324f20,{'userId':_0x56c39d}),this[_0x56b9('0xe')]['set'](_0x398ff7,{'userId':_0x56c39d}),_0x3deace['_execute']();}[_0x56b9('0xa8')](_0x201419){const _0x16b3c=null===(_0x201419=this[_0x56b9('0x5f')](_0x201419,this['_idsRoots']))[_0x56b9('0x3')]?null:_0x201419[_0x56b9('0x3')]||this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x1720e2=_0x201419[_0x56b9('0x4c')],_0x415de6=_0x201419[_0x56b9('0x2e')][_0x56b9('0x5a')];_0x201419[_0x56b9('0xbc')]();const _0x359912=_0x415de6[_0x56b9('0xf6')](_0x56b9('0x76')),_0x5b98af=_0x201419['insertionPosition'][_0x56b9('0xf5')];if(_0x1720e2){const _0x1e3ac1=_0x5b98af['getAttribute'](_0x56b9('0x76')),_0x5683ea=_0x415de6[_0x56b9('0xf6')](_0x56b9('0x76'));_0x415de6[_0x56b9('0x34')](_0x56b9('0x76'),_0x1e3ac1),_0x5b98af[_0x56b9('0x34')](_0x56b9('0x76'),_0x5683ea),this[_0x56b9('0xe')][_0x56b9('0x22')](_0x415de6[_0x56b9('0xf6')](_0x56b9('0x76')),{'userId':_0x16b3c}),this['_touched']['set'](_0x5b98af[_0x56b9('0xf6')](_0x56b9('0xd3')),{'userId':_0x16b3c});}else{const _0x3addfd=this[_0x56b9('0x2b')]++,_0xf7a659=this['_revisionId']++;_0x415de6[_0x56b9('0x34')]('vid_end',_0x3addfd),_0x5b98af[_0x56b9('0x34')]('vid_start',_0xf7a659),_0x5b98af['_setAttribute']('vid_end',_0x359912),this['_touched'][_0x56b9('0x22')](_0x3addfd,{'userId':_0x16b3c}),this[_0x56b9('0xe')][_0x56b9('0x22')](_0xf7a659,{'userId':_0x16b3c});}}[_0x56b9('0xc3')](_0x103c0c){if(!_0x103c0c[_0x56b9('0x106')])return;const _0xda3c79=(_0x103c0c=this[_0x56b9('0x5f')](_0x103c0c,this[_0x56b9('0x7e')]))[_0x56b9('0xd1')]?_0x103c0c['oldRange']['root']:null,_0x5cc9d4=_0x103c0c[_0x56b9('0x9d')]?_0x103c0c[_0x56b9('0x9d')][_0x56b9('0x4b')]:null;_0xda3c79&&this['_markers'][_0x56b9('0x52')](_0x103c0c[_0x56b9('0xf8')]),_0x5cc9d4&&this[_0x56b9('0x1b')]['set'](_0x103c0c[_0x56b9('0xf8')],_0x103c0c[_0x56b9('0x9d')][_0x56b9('0xd0')]());const _0x228857=null===_0x103c0c[_0x56b9('0x3')]?null:_0x103c0c[_0x56b9('0x3')]||this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')]('Users')['me']['id'],_0x4fe708=_0x103c0c[_0x56b9('0xf8')];if(!this[_0x56b9('0x18')][_0x56b9('0x39')](_0x4fe708))return void this[_0x56b9('0x18')][_0x56b9('0x22')](_0x4fe708,{'range':_0x103c0c['oldRange'],'userId':_0x228857});const _0x2bf092=this[_0x56b9('0x18')]['get'](_0x4fe708),_0x2705b1=_0x2bf092[_0x56b9('0xcc')],_0x24c528=_0x103c0c[_0x56b9('0x9d')];null==_0x2705b1&&null==_0x24c528||_0x2705b1&&_0x24c528&&_0x2705b1[_0x56b9('0xa6')](_0x24c528)?this[_0x56b9('0x18')][_0x56b9('0x52')](_0x103c0c[_0x56b9('0xf8')]):_0x2bf092[_0x56b9('0xb1')]=_0x228857;}['_handleRootOperation'](_0x58f60b,_0xfa98c8){this[_0x56b9('0x7e')][_0x56b9('0x39')](_0x58f60b['rootName'])?this['_diffRoots']['get'](_0x58f60b[_0x56b9('0x8e')])[_0x56b9('0xdb')]=_0x58f60b[_0x56b9('0x41')]:(this[_0x56b9('0x7e')][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],G(_0x58f60b[_0x56b9('0x8e')],!0x0)),this['_diffRootsAttributes'][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],{}),_0xfa98c8&&this[_0x56b9('0x54')][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],G(_0x58f60b['rootName'],!0x0)));const _0x137eac=null===_0x58f60b[_0x56b9('0x3')]?null:_0x58f60b[_0x56b9('0x3')]||this[_0x56b9('0x17')]['plugins'][_0x56b9('0x46')]('Users')['me']['id'],_0x5dee30=this['_touchedRoots']['get'](_0x58f60b['rootName']);_0x5dee30&&_0x5dee30[_0x56b9('0xb1')]===_0x137eac?this[_0x56b9('0x95')][_0x56b9('0x52')](_0x58f60b[_0x56b9('0x8e')]):this[_0x56b9('0x95')][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],{'userId':_0x137eac,'isAttached':_0x58f60b[_0x56b9('0x41')]});}[_0x56b9('0xef')](_0x5c6c45){const _0x5a484b=this['_diffRootsAttributes']['get'](_0x5c6c45[_0x56b9('0x4b')][_0x56b9('0x8e')]);null===_0x5c6c45[_0x56b9('0x1d')]?delete _0x5a484b[_0x5c6c45[_0x56b9('0xc6')]]:_0x5a484b[_0x5c6c45[_0x56b9('0xc6')]]=_0x5c6c45[_0x56b9('0x1d')];}}function q(_0x5c0e65){const _0x330b9e=G(_0x5c0e65[_0x56b9('0x8e')],_0x5c0e65['isAttached']());for(const _0x301c63 of _0x5c0e65['getChildren']()){const _0x5e15d8=_0x301c63[_0x56b9('0x44')](!0x0);_0x330b9e['_appendChild'](_0x5e15d8);}return _0x330b9e;}function G(_0x4c6c24,_0xdeb863=!0x0){const _0x11e97e=new _0x2e92e7();return _0x11e97e[_0x56b9('0x8e')]=_0x4c6c24,_0x11e97e[_0x56b9('0xdb')]=_0xdeb863,_0x11e97e[_0x56b9('0xbf')]=()=>_0x11e97e[_0x56b9('0xdb')],_0x11e97e;}function L(_0x20df61,_0x316cf9,_0x398239){const _0xd5a6e3='elementEnd'==_0x20df61[_0x56b9('0xe4')]?_0x398239[_0x56b9('0xcd')](_0x20df61[_0x56b9('0xd2')],_0x56b9('0xa9')):_0x398239['createPositionBefore'](_0x20df61[_0x56b9('0xd2')]);return _0x398239[_0x56b9('0x51')](_0x316cf9,_0xd5a6e3['path'],_0xd5a6e3[_0x56b9('0x62')]);}function W(_0x272561,_0x8b75ee,_0x47d9b8){const _0x5db2a0=_0x56b9('0x49')==_0x272561[_0x56b9('0xe4')]?_0x47d9b8[_0x56b9('0xcd')](_0x272561[_0x56b9('0xd2')],0x0):_0x47d9b8[_0x56b9('0x10')](_0x272561[_0x56b9('0xd2')]);return _0x47d9b8['createPositionFromPath'](_0x8b75ee,_0x5db2a0[_0x56b9('0x4')],_0x5db2a0[_0x56b9('0x62')]);}
|