@ckeditor/ckeditor5-revision-history 36.0.0 → 36.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +7 -7
- 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 _0xb4eb=['_getViewJson','sendBufferedUpdates','_revisionId','forEach','_source','clear','getAttributes','_getPreviousFrom','set','addRevision','_lastTo','newRange','PendingActions','createRangeIn','getTransformedByOperation','_fixOperation','keepParagraph','revision','childCount','init','tableCell','getRevisions','oldRange','nodeAfter','elementStart','_createCurrentRevision','from','_initialRevisionId','map','finally','editor','update','getMovedRangeStart','RevisionsRepository','toData','clone','default','fromVersion','afterInit','remove','resolve','buildRevisionData','_generateTape','_revisionDataBuilder','_bufferedUpdates','add','Users','$text','includes','affectsData','split','attributes','isReady','editing','stringify','dataDowncast','_applyOperations','_fixPosition','Initial\x20revision','locale','start','element','_prepareViewToSave','_getFromVersion','previousPosition','_diffRoots','creatorId','graveyardPosition','_markChanges','addRevisionData','_makeIdsRoot','authors','_isPendingUpdate','type','baseVersion','vid','keys','startsWith','getOperation','_createInitialRevision','config','getChildren','plugins','_update','_baseRoots','define','elementEnd','getNodeByPath','_markers','RevisionTracker','isPendingUpdate','_makeModelFromViewString','data','_savedMetaData','slice','_removePendingAction','$graveyard','NEGATIVE_INFINITY','getWalker','offsetSize','vid_start','view','version','createPositionAfter','nodes','userId','hasContent','children','bind','get','ready','_handleMergeOperation','_authorId','_handleMarkerOperation','initialData','move','_getVidAttributeName','revisionHistory.resumeUnsavedRevision','marked','revision-end','getLatestVersion','_pendingAction','reinsert','_reset','revision:','_setAttribute','dataToMarker','getCurrentRevisionId','insert','saveRevision','_loadState','name','getRevision','_handleInsertOperation','reverse','_touchedMarkers','createPositionAt','toVersion','_operations','setRevisionData','source','trim','filter','_touched','_setConversion','getTime','_removeMetaData','reInit','parent','data-revision-','range','item','_appendChild','toView','_saveMetaData','insertion','targetPosition','_cloneOperation','createdAt','stickiness','getRange','isEnabled','_insertChild','insertionPosition','_getState','getUser','length','pluginName','has','_idsRoots','_bufferUpdate','markers','delete','_copyMarkers','deletions','creator','then','getChild','_loadRevisionData','end','getAttribute','revision-start','toModel','createRange','getRootNames','model','offset','_baseIdsRoots','max','_transformMarkers','_continueCurrentRevision','path','createRevision','_handleSplitOperation','_execute','getRoot','requires','root','_lastFrom','conversion','authorsIds','_handleMoveOperation','diffData','text','_processRootBeforeSave','document','position','_loadedStateData','insertions','_fixRange','RealTimeCollaborationClient','getData','vid_end','_clone','createPositionFromPath','rootName','loadState','useFillerType','_getBaseVids','_saveEmptyMetaData','getAncestors','isEqual','_makeRevision','documentFragment','sort','_startingRevisionId','splitPosition','adapter','_createFromRanges','getOperations','shift','PENDING_ACTION_REVISION_HISTORY','size','editor-initial-data-replaced-with-revision-data','_removeRevisionMarkers','push','marker','find','_calculateMetaData','processor','values','collaboration.channelId','for','_rootNames','_addPendingAction','_handleOperation','_findInsertionIndex','repository','currentRevision','_replaceEditorDataWithRevisionData','history','_startingVersion'];(function(_0x25da9c,_0xb4ebd5){const _0x4bb284=function(_0x4842f6){while(--_0x4842f6){_0x25da9c['push'](_0x25da9c['shift']());}};_0x4bb284(++_0xb4ebd5);}(_0xb4eb,0x103));const _0x4bb2=function(_0x25da9c,_0xb4ebd5){_0x25da9c=_0x25da9c-0x0;let _0x4bb284=_0xb4eb[_0x25da9c];return _0x4bb284;};import{Users as _0x2d6ec2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x22a175,PendingActions as _0x4c6364}from'ckeditor5/src/core';import{logWarning as _0x33e8e8,uid as _0x5c81e7}from'ckeditor5/src/utils';import{Position as _0x275e0c,Range as _0x432887,Element as _0x462dd8,DocumentFragment as _0x2825b5,ViewText as _0x1f7fe1,ViewElement as _0xbda67c,ViewContainerElement as _0x956a26,ViewAttributeElement as _0x5d7e66,ViewEmptyElement as _0x5d43d7,ViewRawElement as _0x50cb3d,ViewUIElement as _0x3f5859,ViewDocumentFragment as _0x498469}from'ckeditor5/src/engine';import _0x2376cc from'./revisionsrepository';import{getTranslation as _0x1cade3}from'./utils/common-translations';const V={'c':_0x956a26,'a':_0x5d7e66,'e':_0x5d43d7,'r':_0x50cb3d,'u':_0x3f5859};export default class l extends _0x22a175{static get[_0x4bb2('0xa0')](){return _0x4bb2('0x52');}static get[_0x4bb2('0xbd')](){return[_0x2d6ec2,_0x2376cc,_0x4c6364];}constructor(..._0xbfcfba){super(..._0xbfcfba),this[_0x4bb2('0xdc')]=null,this['set'](_0x4bb2('0x2d'),!0x1),this[_0x4bb2('0x1')](_0x4bb2('0x9a'),!0x0),this[_0x4bb2('0xf1')]=null;const _0x1516d5=_0x5c81e7();this[_0x4bb2('0xf9')]={'history':this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xf3')],'getLatestVersion':()=>Promise[_0x4bb2('0x21')](this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['version']),'getCurrentRevisionId':()=>_0x1516d5},this[_0x4bb2('0x24')]=new T(this[_0x4bb2('0x17')]),this[_0x4bb2('0x14')]=this[_0x4bb2('0x17')][_0x4bb2('0x49')][_0x4bb2('0x66')]('collaboration.channelId')||'initial',this[_0x4bb2('0x1')](_0x4bb2('0x53'),!0x1),this['_bufferedUpdates']=new Map(),this['editor'][_0x4bb2('0x49')][_0x4bb2('0x4e')](_0x4bb2('0x6e'),!0x0),this[_0x4bb2('0xc8')]=null,this[_0x4bb2('0x17')][_0x4bb2('0xc0')][_0x4bb2('0xeb')]('upcast')[_0x4bb2('0x77')]({'view':_0x4bb2('0xa')});}[_0x4bb2('0xc')](){this[_0x4bb2('0xf0')]=this[_0x4bb2('0x17')][_0x4bb2('0x4b')]['get'](_0x4bb2('0x1a')),this[_0x4bb2('0x89')](),this['editor'][_0x4bb2('0x55')]['on'](_0x4bb2('0x67'),()=>{const _0x471dd2=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](0x0),_0x4fbc3b=_0x471dd2&&null===_0x471dd2[_0x4bb2('0xa8')]?_0x471dd2:null;if(this[_0x4bb2('0xb7')]=!!_0x4fbc3b&&this['editor']['config'][_0x4bb2('0x66')](_0x4bb2('0x6e')),this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0xa1')](_0x4bb2('0xcb'))){const _0x3d16b6=this['_source']['getCurrentRevisionId'](),_0x1ff7c6=this['repository']['getRevision'](_0x3d16b6);if(_0x1ff7c6)this['_startingVersion']=_0x1ff7c6[_0x4bb2('0x1e')],this[_0x4bb2('0xb7')]=!0x1;else{const _0xf97543=this['_source'][_0x4bb2('0xf3')][_0x4bb2('0x83')]['find'](_0x590bb4=>!_0x590bb4['_isInit']),_0x377e89=_0xf97543?_0xf97543['baseVersion']:this[_0x4bb2('0xf9')][_0x4bb2('0xf3')][_0x4bb2('0x5f')];_0x471dd2?(_0x471dd2[_0x4bb2('0x82')]<_0x377e89&&_0x471dd2[_0x4bb2('0x4c')]({'toVersion':_0x377e89}),this[_0x4bb2('0xb7')]?(this['_source'][_0x4bb2('0x78')]=()=>_0x4fbc3b['id'],this[_0x4bb2('0xf4')]=_0x4fbc3b[_0x4bb2('0x1e')]):(this[_0x4bb2('0xf4')]=_0x471dd2[_0x4bb2('0x82')],this[_0x4bb2('0xb7')]=!0x1)):(this[_0x4bb2('0xf4')]=_0x377e89,this[_0x4bb2('0xb7')]=!0x1);}}else _0x4fbc3b&&(this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['history'][_0x4bb2('0x5f')]=Math[_0x4bb2('0xb5')](_0x4fbc3b[_0x4bb2('0x82')],this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['document'][_0x4bb2('0xf3')][_0x4bb2('0x5f')]),_0x4fbc3b['fromVersion']===_0x4fbc3b['toVersion']?(0x0!==_0x4fbc3b['fromVersion']&&(this[_0x4bb2('0xf9')][_0x4bb2('0x78')]=()=>_0x4fbc3b['id']),this['_continueCurrentRevision']=!0x1):this[_0x4bb2('0xb7')]&&(this[_0x4bb2('0xf9')][_0x4bb2('0x78')]=()=>_0x4fbc3b['id'],this[_0x4bb2('0xf4')]=_0x4fbc3b[_0x4bb2('0x1e')])),this[_0x4bb2('0xb7')]||(this[_0x4bb2('0xf4')]=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0x5f')]);this[_0x4bb2('0x24')][_0x4bb2('0xc')](this[_0x4bb2('0xf9')][_0x4bb2('0xf3')]),this['_createInitialRevision'](this[_0x4bb2('0xf4')]),this[_0x4bb2('0x12')](this[_0x4bb2('0xf4')]),this[_0x4bb2('0xdc')]&&this[_0x4bb2('0xf6')]();}),this[_0x4bb2('0x65')](_0x4bb2('0x2d'))['to'](this,_0x4bb2('0x41'),_0x1fad99=>!_0x1fad99);}async[_0x4bb2('0x1f')](){if(this[_0x4bb2('0xf0')][_0x4bb2('0x9f')]>0x0){const _0x52013d=this['repository'][_0x4bb2('0x7d')](0x0),_0x2266eb=await this['getRevisionDocumentData'](_0x52013d);this[_0x4bb2('0xf2')](_0x2266eb);}}['setSource'](_0x3c02fa){this[_0x4bb2('0xf9')]=_0x3c02fa;}async[_0x4bb2('0x18')](){const _0x3e381d=await this[_0x4bb2('0xf9')][_0x4bb2('0x71')]();if(_0x3e381d>this['currentRevision']['toVersion']){await this[_0x4bb2('0x7b')]();const _0x72bde=this[_0x4bb2('0x22')]({'revision':this[_0x4bb2('0xf1')],'to':_0x3e381d});_0x72bde[_0x4bb2('0x40')]=_0x72bde[_0x4bb2('0xc1')][_0x4bb2('0x15')](_0x4913c5=>this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')](_0x4bb2('0x27'))[_0x4bb2('0x9e')](_0x4913c5)),this[_0x4bb2('0xf1')][_0x4bb2('0x4c')](_0x72bde);}}async[_0x4bb2('0x7b')](){this[_0x4bb2('0xb7')]&&!this[_0x4bb2('0xc8')]&&(await this[_0x4bb2('0xab')](this['currentRevision']),this[_0x4bb2('0x24')][_0x4bb2('0xd1')](this[_0x4bb2('0xf1')]),this[_0x4bb2('0xc8')]={'fromVersion':this[_0x4bb2('0xf1')][_0x4bb2('0x1e')],'authors':this[_0x4bb2('0xf1')][_0x4bb2('0x40')][_0x4bb2('0x57')]()});}async[_0x4bb2('0x7a')](_0x15e4cd={},_0x39ca87=null){const _0x288c29=[];await this[_0x4bb2('0x7b')](),this[_0x4bb2('0xb7')]=!0x1,_0x39ca87>this['currentRevision'][_0x4bb2('0x82')]&&(_0x39ca87=null),null===_0x39ca87&&(_0x39ca87=await this[_0x4bb2('0xf9')][_0x4bb2('0x71')]());const _0x52093b=this['_getFromVersion'](_0x39ca87),_0x2e10db=this[_0x4bb2('0x22')]({'from':_0x52093b,'to':_0x39ca87});if(this[_0x4bb2('0xf1')][_0x4bb2('0x82')]<_0x39ca87){const _0x375d7a=this[_0x4bb2('0x22')]({'revision':this[_0x4bb2('0xf1')],'from':_0x39ca87,'to':_0x39ca87});_0x375d7a[_0x4bb2('0x40')]=[],_0x375d7a['authorsIds']=[],_0x375d7a['id']=this[_0x4bb2('0xf1')]['id'],this[_0x4bb2('0xf1')][_0x4bb2('0x4c')](_0x375d7a,!0x0),delete _0x375d7a[_0x4bb2('0x40')],_0x288c29[_0x4bb2('0xe4')](_0x375d7a);}_0x15e4cd['creatorId']=this['editor'][_0x4bb2('0x4b')][_0x4bb2('0x66')]('Users')['me']['id'],_0x15e4cd[_0x4bb2('0x7c')]=_0x15e4cd[_0x4bb2('0x7c')]||null,_0x15e4cd['id']=_0x15e4cd['id']||_0x5c81e7(),_0x15e4cd={..._0x15e4cd,..._0x2e10db};const _0x1fd5e3=this[_0x4bb2('0x3e')](_0x15e4cd);_0x288c29['push'](_0x15e4cd);const _0x3856bb=this[_0x4bb2('0xf0')]['getIndex'](_0x1fd5e3);if(0x0!==_0x3856bb){const _0x483144=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](_0x3856bb-0x1);if(_0x483144[_0x4bb2('0x1e')]!==_0x39ca87){const _0x3a2bee=this[_0x4bb2('0x24')][_0x4bb2('0xcc')](_0x39ca87,_0x483144[_0x4bb2('0x82')]),_0x5aa5ce={'id':_0x483144['id'],'diffData':_0x3a2bee[_0x4bb2('0xc3')],'authorsIds':_0x3a2bee[_0x4bb2('0xc1')],'authors':_0x3a2bee[_0x4bb2('0xc1')][_0x4bb2('0x15')](_0x12e483=>this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')]('Users')[_0x4bb2('0x9e')](_0x12e483)),'fromVersion':_0x39ca87};_0x483144===this[_0x4bb2('0xf1')]&&(_0x5aa5ce[_0x4bb2('0x97')]=new Date(_0x15e4cd[_0x4bb2('0x97')][_0x4bb2('0x8a')]()+0xa)),_0x483144['_update'](_0x5aa5ce,!0x0),delete _0x5aa5ce['authors'],_0x288c29['push'](_0x5aa5ce);}}if(this[_0x4bb2('0xdc')]){for(const _0x5a9265 of _0x288c29)this[_0x4bb2('0xa3')](_0x5a9265['id'],_0x5a9265,!0x0);this[_0x4bb2('0xf6')]();}return _0x1fd5e3;}['addRevisionData'](_0xa72754){const _0x5b3381=this[_0x4bb2('0xf0')][_0x4bb2('0xb9')](_0xa72754);return this[_0x4bb2('0xdc')]&&_0x5b3381['on'](_0x4bb2('0x4c'),(_0xf75d64,_0x4ba66e,_0x4e8217)=>{_0x4e8217||(this[_0x4bb2('0xa3')](_0x4ba66e['id'],_0x4ba66e,!0x0),this[_0x4bb2('0xf6')]());}),this[_0x4bb2('0xf0')][_0x4bb2('0x2')](_0x5b3381,this[_0x4bb2('0xef')](_0x5b3381)),_0x5b3381;}async['getRevisionDocumentData'](_0x303eda){await this[_0x4bb2('0xab')](_0x303eda);const _0x1d4615={};for(const _0x1c1c61 in _0x303eda[_0x4bb2('0xc3')]){const _0x321a38=this[_0x4bb2('0xe3')](JSON['parse'](_0x303eda[_0x4bb2('0xc3')][_0x1c1c61]['insertions'])),_0x4f6068=this[_0x4bb2('0x17')][_0x4bb2('0x2e')][_0x4bb2('0x5e')][_0x4bb2('0xc6')],_0x40fc11=new _0x498469(_0x4f6068,_0x321a38[_0x4bb2('0x15')](_0x2a5032=>F(_0x2a5032,this[_0x4bb2('0x17')])));this['editor']['data']['processor'][_0x4bb2('0xd2')](_0x4bb2('0x6f')),_0x1d4615[_0x1c1c61]=this[_0x4bb2('0x17')][_0x4bb2('0x55')][_0x4bb2('0xe8')][_0x4bb2('0x1b')](_0x40fc11),this[_0x4bb2('0x17')]['data'][_0x4bb2('0xe8')][_0x4bb2('0xd2')](_0x4bb2('0x1d'));}return _0x1d4615;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x4bb2('0x41')])return;let _0x581348=Array[_0x4bb2('0x13')](this['_bufferedUpdates']['values']());this[_0x4bb2('0x25')][_0x4bb2('0xfa')]();for(let _0x4f7efa=0x0;_0x4f7efa<_0x581348[_0x4bb2('0x9f')];_0x4f7efa++){const _0x43fca3=_0x581348[_0x4f7efa];let _0x288ca8=!0x1;for(const _0x25d0c0 of Object[_0x4bb2('0x45')](_0x43fca3))void 0x0===_0x43fca3[_0x25d0c0]?delete _0x43fca3[_0x25d0c0]:'id'!==_0x25d0c0&&(_0x288ca8=!0x0);_0x288ca8||(_0x581348[_0x4f7efa]=null);}if(_0x581348=_0x581348[_0x4bb2('0x87')](_0x1546c3=>null!==_0x1546c3),!_0x581348[_0x4bb2('0x9f')])return;for(let _0x5ceccb=0x0;_0x5ceccb<_0x581348[_0x4bb2('0x9f')];_0x5ceccb++){const _0xc5444a=_0x581348[_0x5ceccb];void 0x0!==_0xc5444a[_0x4bb2('0x1e')]&&void 0x0===_0xc5444a[_0x4bb2('0x82')]&&(_0xc5444a[_0x4bb2('0x82')]=this['repository']['getRevision'](_0xc5444a['id'])[_0x4bb2('0x82')]),void 0x0!==_0xc5444a['toVersion']&&void 0x0===_0xc5444a[_0x4bb2('0x1e')]&&(_0xc5444a[_0x4bb2('0x1e')]=this[_0x4bb2('0xf0')]['getRevision'](_0xc5444a['id'])['fromVersion']);}const _0x5e38b1=this[_0x4bb2('0x17')][_0x4bb2('0x49')][_0x4bb2('0x66')](_0x4bb2('0xea'));this[_0x4bb2('0x41')]=!0x0,this[_0x4bb2('0xed')](),this[_0x4bb2('0xdc')]['updateRevisions'](_0x581348,_0x5e38b1)[_0x4bb2('0x16')](()=>{this[_0x4bb2('0x41')]=!0x1;})[_0x4bb2('0xa9')](_0x27af57=>{if(_0x27af57)for(const _0x5344b5 of _0x27af57)this[_0x4bb2('0x84')]({'id':_0x5344b5['id'],'createdAt':_0x5344b5[_0x4bb2('0x97')]});this[_0x4bb2('0x58')](),this[_0x4bb2('0xf6')]();});}[_0x4bb2('0xf2')](_0x3f9df6){let _0x1a22d5=this['editor'][_0x4bb2('0x49')][_0x4bb2('0x66')](_0x4bb2('0x6b'));if(void 0x0===_0x1a22d5){_0x1a22d5={};for(const _0x10d878 of this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['document'][_0x4bb2('0xb1')]())_0x1a22d5[_0x10d878]='';}'string'==typeof _0x1a22d5&&(_0x1a22d5={'main':_0x1a22d5});let _0x25195b=!0x1;for(const _0x1babf3 of Object['keys'](_0x1a22d5))_0x3f9df6[_0x1babf3]&&(_0x1a22d5[_0x1babf3]!==_0x3f9df6[_0x1babf3]&&''!==_0x1a22d5[_0x1babf3][_0x4bb2('0x86')]()&&(_0x25195b=!0x0),_0x1a22d5[_0x1babf3]=_0x3f9df6[_0x1babf3]);_0x25195b&&_0x33e8e8(_0x4bb2('0xe2')),this['editor'][_0x4bb2('0x49')][_0x4bb2('0x1')](_0x4bb2('0x6b'),_0x1a22d5);}[_0x4bb2('0xed')](){if(!this[_0x4bb2('0x72')]){const _0x9c6f46=this['editor']['plugins']['get'](_0x4bb2('0x5'));this[_0x4bb2('0x72')]=_0x9c6f46['add'](_0x1cade3(this[_0x4bb2('0x17')]['locale'],_0x4bb2('0xe0')));}}[_0x4bb2('0x58')](){this[_0x4bb2('0x72')]&&(this['editor'][_0x4bb2('0x4b')]['get'](_0x4bb2('0x5'))['remove'](this[_0x4bb2('0x72')]),this[_0x4bb2('0x72')]=null);}[_0x4bb2('0xef')](_0x4c3c84){const _0x25ba26=this['repository'][_0x4bb2('0xe')]();_0x25ba26[_0x4bb2('0x7f')]();let _0x1e3c14=0x0;for(;_0x1e3c14<_0x25ba26[_0x4bb2('0x9f')];){const _0xf4337e=_0x25ba26[_0x1e3c14];if(_0xf4337e===this[_0x4bb2('0xf1')]){_0x1e3c14++;continue;}if(_0xf4337e['id']===this[_0x4bb2('0x14')])break;const _0x3b2847=_0x4c3c84[_0x4bb2('0x82')]-_0xf4337e['toVersion']||_0x4c3c84[_0x4bb2('0x1e')]-_0xf4337e[_0x4bb2('0x1e')];if(_0x3b2847>0x0)break;if(_0x3b2847<0x0)_0x1e3c14++;else{if(!_0x4c3c84['creator']&&_0xf4337e['creator'])break;if(_0xf4337e['creator']||!_0x4c3c84[_0x4bb2('0xa8')]){if(_0x4c3c84[_0x4bb2('0x97')]>_0xf4337e[_0x4bb2('0x97')])break;_0x1e3c14++;}else _0x1e3c14++;}}return _0x1e3c14;}['setRevisionData'](_0x402c83){const _0x10a90c=this['repository']['getRevision'](_0x402c83['id']);if(_0x402c83[_0x4bb2('0x97')]&&(_0x402c83['createdAt']=new Date(_0x402c83[_0x4bb2('0x97')])),_0x402c83[_0x4bb2('0xc1')]){const _0xb0e557=this[_0x4bb2('0x17')][_0x4bb2('0x4b')]['get'](_0x4bb2('0x27'));_0x402c83[_0x4bb2('0x40')]=_0x402c83[_0x4bb2('0xc1')]['map'](_0x5b7123=>_0xb0e557[_0x4bb2('0x9e')](_0x5b7123));}_0x10a90c['_update'](_0x402c83,!0x0);}[_0x4bb2('0x22')]({revision:_0xcadf34=null,from:_0x369513=null,to:_0x5803c6=null}){_0x369513=null!==_0x369513?_0x369513:_0xcadf34['fromVersion'],_0x5803c6=null!==_0x5803c6?_0x5803c6:_0xcadf34[_0x4bb2('0x82')];const _0x508ab2=this[_0x4bb2('0x24')][_0x4bb2('0xcc')](_0x369513,_0x5803c6),_0x2d44c9={'diffData':_0x508ab2[_0x4bb2('0xc3')],'authorsIds':_0x508ab2[_0x4bb2('0xc1')],'fromVersion':_0x369513,'toVersion':_0x5803c6};if(!_0xcadf34||_0x5803c6!==_0xcadf34[_0x4bb2('0x82')]){const _0x2d0d9d=_0x5803c6-0x1,_0xff5eab=this[_0x4bb2('0xf9')]['history'][_0x4bb2('0x47')](_0x2d0d9d);_0x2d44c9[_0x4bb2('0x97')]=_0xff5eab&&_0xff5eab[_0x4bb2('0x97')]||new Date();}if(this[_0x4bb2('0xc8')]&&_0x369513===this[_0x4bb2('0xc8')][_0x4bb2('0x1e')])for(const _0xbd4e3c of this[_0x4bb2('0xc8')][_0x4bb2('0x40')])_0x2d44c9['authorsIds'][_0x4bb2('0x29')](_0xbd4e3c['id'])||_0x2d44c9[_0x4bb2('0xc1')][_0x4bb2('0xe4')](_0xbd4e3c['id']);return _0x2d44c9;}['_loadRevisionData'](_0x5ce1ba){if(!_0x5ce1ba||_0x5ce1ba[_0x4bb2('0xc3')])return Promise[_0x4bb2('0x21')]();{const _0x248b15=this[_0x4bb2('0x17')]['config']['get'](_0x4bb2('0xea'));return this[_0x4bb2('0xdc')][_0x4bb2('0x7d')]({'channelId':_0x248b15,'revisionId':_0x5ce1ba['id']})['then'](_0x702db8=>{_0x5ce1ba[_0x4bb2('0xc3')]=_0x702db8[_0x4bb2('0xc3')];});}}['_bufferUpdate'](_0x84665a,_0x41fc7f,_0x24d93b){if(this['_bufferedUpdates'][_0x4bb2('0xa1')](_0x84665a)){const _0x281277=this[_0x4bb2('0x25')][_0x4bb2('0x66')](_0x84665a);_0x41fc7f=_0x24d93b?{..._0x281277,..._0x41fc7f}:{..._0x41fc7f,..._0x281277};}this[_0x4bb2('0x25')][_0x4bb2('0x1')](_0x84665a,_0x41fc7f);}[_0x4bb2('0x38')](_0x23d60b){const _0x47e819=this[_0x4bb2('0xf0')][_0x4bb2('0xe')]();_0x47e819['reverse'](),_0x47e819[_0x4bb2('0xdf')]();const _0x44fa7f=_0x47e819[_0x4bb2('0xe6')](_0x10a7b6=>_0x10a7b6[_0x4bb2('0x82')]<=_0x23d60b)['toVersion'];return _0x44fa7f<this[_0x4bb2('0xf4')]?this[_0x4bb2('0xf4')]:_0x44fa7f;}[_0x4bb2('0x48')](_0x1df2d7){const _0x46385a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x46385a)this['_initialRevisionId']=_0x46385a['id'];else{const _0x2eb777=!this['editor'][_0x4bb2('0xb2')]['document']['roots'][_0x4bb2('0xe6')](_0x53b64f=>this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0x63')](_0x53b64f)),_0x25e9db=this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x2ab267=_0x1cade3(this[_0x4bb2('0x17')][_0x4bb2('0x34')],_0x2eb777?'Empty\x20document':_0x4bb2('0x33'));this[_0x4bb2('0xd7')]({'from':_0x1df2d7,'to':_0x1df2d7,'id':this[_0x4bb2('0x14')],'name':_0x2ab267,'creatorId':_0x25e9db});}}['_createCurrentRevision'](_0x29ba94){const _0x4602e0=this[_0x4bb2('0xf9')][_0x4bb2('0x78')]();this[_0x4bb2('0xf1')]=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](_0x4602e0),this[_0x4bb2('0xf1')]||(this[_0x4bb2('0xf1')]=this['_makeRevision']({'from':_0x29ba94,'to':_0x29ba94,'id':_0x4602e0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x24938d,from:_0x5638e8,to:_0x4f37aa,creatorId:_0x81cc0f,id:_0xc2a40}){const _0x5c3ad2=this[_0x4bb2('0x22')]({'from':_0x5638e8,'to':_0x4f37aa});_0x5c3ad2[_0x4bb2('0x7c')]=_0x24938d,_0x5c3ad2[_0x4bb2('0x3b')]=_0x81cc0f,_0x5c3ad2['id']=_0xc2a40;const _0x5b89b1=this[_0x4bb2('0x3e')](_0x5c3ad2);return this['adapter']&&this[_0x4bb2('0xa3')](_0x5c3ad2['id'],_0x5c3ad2,!0x0),_0x5b89b1;}[_0x4bb2('0x89')](){this[_0x4bb2('0x17')][_0x4bb2('0xc0')][_0x4bb2('0xeb')](_0x4bb2('0x30'))['markerToData']({'model':_0x4bb2('0xa')});}[_0x4bb2('0xe3')](_0x2b5d4a){return(_0x2b5d4a=_0x2b5d4a[_0x4bb2('0x87')](_0x6f4f10=>!_0x6f4f10[_0x4bb2('0x7c')]||_0x4bb2('0xae')!==_0x6f4f10['name']&&_0x4bb2('0x70')!==_0x6f4f10[_0x4bb2('0x7c')]))[_0x4bb2('0xf8')](_0x2cb901=>{'string'!=typeof _0x2cb901&&(_0x2cb901['children']=this['_removeRevisionMarkers'](_0x2cb901[_0x4bb2('0x64')]),_0x2cb901[_0x4bb2('0x2c')]=_0x2cb901[_0x4bb2('0x2c')][_0x4bb2('0x87')](_0x1be93c=>!_0x1be93c[0x0][_0x4bb2('0x46')](_0x4bb2('0x8e'))));}),_0x2b5d4a;}}function F(_0x4da2a6,_0x5eb054){const _0x420e4b=_0x5eb054[_0x4bb2('0x2e')]['view'][_0x4bb2('0xc6')];if('string'==typeof _0x4da2a6)return new _0x1f7fe1(_0x420e4b,_0x4da2a6);{const _0x53fab2=_0x4da2a6[_0x4bb2('0x64')][_0x4bb2('0x15')](_0x438d56=>F(_0x438d56,_0x5eb054));return new(V[_0x4da2a6[(_0x4bb2('0x42'))]]||_0xbda67c)(_0x420e4b,_0x4da2a6['name'],_0x4da2a6[_0x4bb2('0x2c')],_0x53fab2);}}class T{constructor(_0x3ae62a){this[_0x4bb2('0x17')]=_0x3ae62a,this[_0x4bb2('0x56')]=new Map(),this['_lastFrom']=-0x1,this[_0x4bb2('0x3')]=-0x1,this[_0x4bb2('0x51')]=new Map(),this['_diffRoots']=new Map(),this[_0x4bb2('0x4d')]=new Map(),this[_0x4bb2('0xa2')]=new Map(),this[_0x4bb2('0xb4')]=new Map(),this[_0x4bb2('0x88')]=new Map(),this[_0x4bb2('0x80')]=new Map(),this[_0x4bb2('0xf7')]=0x1,this[_0x4bb2('0xec')]=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xb1')](),this['_rootNames'][_0x4bb2('0xe4')](_0x4bb2('0x59'));}[_0x4bb2('0xc')](_0x24e1d1){this['source']=_0x24e1d1;const _0x20f4e4=new Map();for(const _0x314377 of this[_0x4bb2('0xec')]){const _0xacedcd=J(this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xbc')](_0x314377));_0x20f4e4['set'](_0x314377,_0xacedcd);}const _0x20a2ee=Array['from'](this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['markers'])[_0x4bb2('0x15')](_0x1e9c94=>[_0x1e9c94[_0x4bb2('0x7c')],_0x1e9c94[_0x4bb2('0x99')]()]),_0x2b0fb5=this[_0x4bb2('0x85')][_0x4bb2('0x5f')];this[_0x4bb2('0x93')](_0x2b0fb5,_0x20f4e4,_0x20a2ee),this[_0x4bb2('0xda')]=this[_0x4bb2('0xf7')];}[_0x4bb2('0xcc')](_0x451ede,_0x10f71f){if(this[_0x4bb2('0xbf')]===_0x451ede&&this[_0x4bb2('0x3')]<=_0x10f71f)this[_0x4bb2('0x56')][_0x4bb2('0xe1')]>0x1&&this['_removeMetaData'](this[_0x4bb2('0x3')]),this[_0x4bb2('0x31')](this['_lastTo'],_0x10f71f,!0x0);else{if(!this['_savedMetaData'][_0x4bb2('0xa1')](_0x451ede)){const _0x4483e2=this[_0x4bb2('0x0')](_0x451ede);this[_0x4bb2('0xe7')](_0x4483e2,_0x451ede,!0x1);}this[_0x4bb2('0xe7')](_0x451ede,_0x10f71f,!0x0);}return this[_0x4bb2('0xbf')]=_0x451ede,this['_lastTo']=_0x10f71f,this['_getState']();}[_0x4bb2('0xd1')](_0x4820a4){this[_0x4bb2('0x74')](),this[_0x4bb2('0xbf')]=_0x4820a4['fromVersion'],this[_0x4bb2('0x3')]=_0x4820a4[_0x4bb2('0x82')];for(const _0xaf30c in _0x4820a4[_0x4bb2('0xc3')]){const _0x1e8508=this['_makeModelFromViewString'](_0x4820a4[_0x4bb2('0xc3')][_0xaf30c][_0x4bb2('0xa7')]);_0x1e8508[_0x4bb2('0xd0')]=_0xaf30c,this[_0x4bb2('0x4d')][_0x4bb2('0x1')](_0xaf30c,_0x1e8508);const _0x1c87e2=this[_0x4bb2('0x3f')](_0x1e8508);this[_0x4bb2('0xb4')]['set'](_0xaf30c,_0x1c87e2);for(const [_0x5ef28a,_0x373fba]of _0x1e8508['markers']){if(!_0x5ef28a[_0x4bb2('0x46')](_0x4bb2('0x75')))continue;const _0x20cc4d=_0x5ef28a[_0x4bb2('0x2b')](':')[0x2];for(const _0x65a24c of _0x373fba[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x137e4c=this[_0x4bb2('0x6d')](_0x65a24c),_0x1b56d0='elementEnd'==_0x65a24c[_0x4bb2('0x42')]?_0x65a24c['previousPosition']['path'][_0x4bb2('0x57')](0x0,-0x1):_0x65a24c[_0x4bb2('0x39')][_0x4bb2('0xb8')],_0x3827c6=_0x1c87e2[_0x4bb2('0x50')](_0x1b56d0)[_0x4bb2('0xad')](_0x137e4c);this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x3827c6,{'userId':_0x20cc4d});}}}this['_startingRevisionId']=this[_0x4bb2('0xf7')];const _0xcae046=[...Array(this[_0x4bb2('0xf7')])[_0x4bb2('0x45')]()][_0x4bb2('0x57')](0x1)[_0x4bb2('0x87')](_0x3689e0=>!this[_0x4bb2('0x88')]['has'](_0x3689e0));let _0x5625f7=0x0;for(const _0x30c960 in _0x4820a4[_0x4bb2('0xc3')]){const _0x166b7f=this[_0x4bb2('0x54')](_0x4820a4['diffData'][_0x30c960]['insertions']);_0x166b7f[_0x4bb2('0xd0')]=_0x30c960,this['_diffRoots'][_0x4bb2('0x1')](_0x30c960,_0x166b7f);const _0xb77cfc=this[_0x4bb2('0x3f')](_0x166b7f,Number[_0x4bb2('0x5a')]);this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x30c960,_0xb77cfc);for(const [_0x298b13,_0x554b9b]of _0x166b7f['markers']){if(!_0x298b13['startsWith'](_0x4bb2('0x75')))continue;const _0x17eb46=_0x298b13['split'](':')[0x2];for(const _0x5c6e03 of _0x554b9b[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x2c971d=this[_0x4bb2('0x6d')](_0x5c6e03),_0x21585c=this[_0x4bb2('0xf7')]++,_0x17e49a=_0x4bb2('0x4f')==_0x5c6e03[_0x4bb2('0x42')]?_0x5c6e03[_0x4bb2('0x39')][_0x4bb2('0xb8')]['slice'](0x0,-0x1):_0x5c6e03[_0x4bb2('0x39')]['path'];_0xb77cfc['getNodeByPath'](_0x17e49a)[_0x4bb2('0x76')](_0x2c971d,_0x21585c),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x21585c,{'userId':_0x17eb46});}}for(const _0x1e8078 of this['editor'][_0x4bb2('0xb2')][_0x4bb2('0x6')](_0x166b7f)[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x234a4d=this['_getVidAttributeName'](_0x1e8078),_0x5efb7f=_0x4bb2('0x4f')==_0x1e8078[_0x4bb2('0x42')]?_0x1e8078[_0x4bb2('0x39')][_0x4bb2('0xb8')]['slice'](0x0,-0x1):_0x1e8078[_0x4bb2('0x39')][_0x4bb2('0xb8')],_0x1ac9cd=_0xb77cfc['getNodeByPath'](_0x5efb7f);_0x1ac9cd[_0x4bb2('0xad')](_0x234a4d)>0x0||_0x1ac9cd[_0x4bb2('0x76')](_0x234a4d,_0xcae046[_0x5625f7++]);}const _0x1f7cee=new _0x2825b5();_0x1f7cee['rootName']=_0x4bb2('0x59'),this[_0x4bb2('0x4d')]['set'](_0x4bb2('0x59'),_0x1f7cee),this[_0x4bb2('0xb4')][_0x4bb2('0x1')](_0x4bb2('0x59'),this['_makeIdsRoot'](_0x1f7cee,0x1));const _0x408c89=new _0x2825b5();_0x408c89['rootName']=_0x4bb2('0x59'),this[_0x4bb2('0x3a')]['set'](_0x4bb2('0x59'),_0x408c89),this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x4bb2('0x59'),this[_0x4bb2('0x3f')](_0x408c89,0x1));for(const [_0x2f830d,_0x2f2d5a]of _0x166b7f[_0x4bb2('0xa4')])_0x2f830d[_0x4bb2('0x46')]('revision:')||this['_markers'][_0x4bb2('0x1')](_0x2f830d,_0x2f2d5a);}const _0x31de3c=Array[_0x4bb2('0x13')](this['_diffRoots'])['map'](([_0x1b9077,_0x21e075])=>[_0x1b9077,J(_0x21e075)]);this[_0x4bb2('0x93')](this[_0x4bb2('0x3')],_0x31de3c,this['_markers']);}[_0x4bb2('0x54')](_0x5d20ff){const _0x34a33b=JSON['parse'](_0x5d20ff),_0x404fae=this[_0x4bb2('0x17')][_0x4bb2('0x2e')][_0x4bb2('0x5e')][_0x4bb2('0xc6')],_0x3a47c2=new _0x498469(_0x404fae,_0x34a33b['map'](_0xa69733=>F(_0xa69733,this[_0x4bb2('0x17')])));return this[_0x4bb2('0x17')]['data'][_0x4bb2('0xaf')](_0x3a47c2);}[_0x4bb2('0xd4')](){const _0x1913c6=new Map();for(const _0xa14144 of this['_rootNames']){const _0x31eaf6=new _0x2825b5();_0x31eaf6[_0x4bb2('0xd0')]=_0xa14144,_0x1913c6[_0x4bb2('0x1')](_0xa14144,_0x31eaf6);}this[_0x4bb2('0x93')](Number[_0x4bb2('0x5a')],_0x1913c6,[]);}[_0x4bb2('0x93')](_0x186dca,_0x4b767d,_0x45f4fd){const _0x5c6981=new Map(_0x4b767d),_0x36abcf=new Map();for(const [_0x43cded,_0x58f65c]of _0x45f4fd)_0x36abcf['set'](_0x43cded,{'start':_0x58f65c[_0x4bb2('0x35')]['clone'](),'end':_0x58f65c[_0x4bb2('0xac')][_0x4bb2('0x1c')](),'rootName':_0x58f65c[_0x4bb2('0xbe')][_0x4bb2('0xd0')]});this[_0x4bb2('0x56')]['set'](_0x186dca,{'roots':_0x5c6981,'markers':_0x36abcf});}[_0x4bb2('0x8b')](_0x471904){this['_savedMetaData'][_0x4bb2('0xa5')](_0x471904);}[_0x4bb2('0x8c')](){this[_0x4bb2('0x74')](),this[_0x4bb2('0xbf')]=-0x1,this[_0x4bb2('0x3')]=-0x1,this['_savedMetaData'][_0x4bb2('0xfa')](),this['init'](this[_0x4bb2('0x85')]);}['_reset'](){this[_0x4bb2('0x88')]['clear'](),this[_0x4bb2('0x80')][_0x4bb2('0xfa')](),this[_0x4bb2('0x3a')][_0x4bb2('0xfa')](),this[_0x4bb2('0x4d')][_0x4bb2('0xfa')](),this[_0x4bb2('0xa2')][_0x4bb2('0xfa')](),this['_baseIdsRoots'][_0x4bb2('0xfa')](),this[_0x4bb2('0x51')][_0x4bb2('0xfa')](),this[_0x4bb2('0xf7')]=0x1,this[_0x4bb2('0xda')]=this[_0x4bb2('0xf7')];}[_0x4bb2('0x3f')](_0x54506c,_0x3dfc53=null){let _0x3459e1=null;_0x54506c['is'](_0x4bb2('0xd8'))||(_0x3459e1=new _0x462dd8(_0x54506c[_0x4bb2('0x7c')],{'vid_start':null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++}));const _0x124eea=[];for(const _0x51868d of _0x54506c[_0x4bb2('0x4a')]())if(_0x51868d['is'](_0x4bb2('0x36'))){_0x124eea[_0x4bb2('0xe4')](this[_0x4bb2('0x3f')](_0x51868d,_0x3dfc53));const _0xb5c92a=_0x124eea[_0x124eea['length']-0x1];null!==_0x3dfc53&&(_0x3dfc53=_0xb5c92a['is'](_0x4bb2('0x36'),_0x4bb2('0x28'))?_0xb5c92a[_0x4bb2('0xad')](_0x4bb2('0x44'))+0x1:_0xb5c92a[_0x4bb2('0xad')](_0x4bb2('0xcd'))+0x1);}else for(let _0x5a07be=0x0;_0x5a07be<_0x51868d[_0x4bb2('0x5c')];_0x5a07be++)_0x124eea['push'](new _0x462dd8(_0x4bb2('0x28'),{'vid':null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++}));if(_0x54506c['is']('documentFragment')){const _0x47bb16=new _0x2825b5(_0x124eea);return _0x47bb16[_0x4bb2('0xd0')]=_0x54506c[_0x4bb2('0xd0')],_0x47bb16;}return _0x3459e1[_0x4bb2('0x76')]('vid_end',null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++),_0x3459e1[_0x4bb2('0x9b')](0x0,_0x124eea),_0x3459e1;}[_0x4bb2('0xe7')](_0x5063fd,_0x497213,_0x5d9493){this[_0x4bb2('0x74')]();const {roots:_0x49b162,markers:_0x2d2d6a}=this[_0x4bb2('0x56')]['get'](_0x5063fd);this[_0x4bb2('0x4d')]=new Map(_0x49b162);for(const [_0x508b11,_0x203d84]of this[_0x4bb2('0x4d')])if('$graveyard'!==_0x508b11&&(this[_0x4bb2('0x3a')][_0x4bb2('0x1')](_0x508b11,J(_0x203d84)),_0x5d9493)){const _0x145745=this[_0x4bb2('0xf7')];this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x508b11,this[_0x4bb2('0x3f')](_0x203d84)),this[_0x4bb2('0xb4')]['set'](_0x508b11,this[_0x4bb2('0x3f')](_0x203d84,_0x145745));}this[_0x4bb2('0xda')]=this['_revisionId'],this['_diffRoots'][_0x4bb2('0x1')](_0x4bb2('0x59'),J(this[_0x4bb2('0x4d')][_0x4bb2('0x66')]('$graveyard'))),_0x5d9493&&this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x4bb2('0x59'),this[_0x4bb2('0x3f')](this[_0x4bb2('0x4d')][_0x4bb2('0x66')](_0x4bb2('0x59'))));for(const [_0x201ef3,_0x4ad8fc]of _0x2d2d6a){const _0x181d6b=this['_baseRoots'][_0x4bb2('0x66')](_0x4ad8fc['rootName']),_0x22f053=this[_0x4bb2('0x3a')]['get'](_0x4ad8fc['rootName']),_0x5bb208=new _0x432887(this[_0x4bb2('0x32')](_0x4ad8fc['start'],_0x181d6b),this[_0x4bb2('0x32')](_0x4ad8fc['end'],_0x181d6b)),_0x33531c=this[_0x4bb2('0xca')](_0x5bb208,_0x22f053);_0x181d6b[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x201ef3,_0x5bb208),this['_markers'][_0x4bb2('0x1')](_0x201ef3,_0x33531c);}this[_0x4bb2('0x31')](_0x5063fd,_0x497213,_0x5d9493);}['_applyOperations'](_0x49fb52,_0xc49fcd,_0x43f8d5){for(const _0x5040c4 of this[_0x4bb2('0x85')][_0x4bb2('0xde')](_0x49fb52,_0xc49fcd))this[_0x4bb2('0xee')](_0x5040c4,_0x43f8d5);for(const _0xa0f69 of this[_0x4bb2('0x3a')]['values']())_0xa0f69[_0x4bb2('0xa4')]['clear']();for(const [_0x574cea,_0x3a6beb]of this[_0x4bb2('0x51')]){this[_0x4bb2('0x3a')]['get'](_0x3a6beb[_0x4bb2('0xbe')]['rootName'])[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x574cea,_0x3a6beb[_0x4bb2('0x1c')]());}this['_saveMetaData'](_0xc49fcd,Array[_0x4bb2('0x13')](this[_0x4bb2('0x3a')])['map'](([_0x41eaac,_0x163cbb])=>[_0x41eaac,J(_0x163cbb)]),this['_markers']);}[_0x4bb2('0x0')](_0x19a05d){const _0x58b3ee=Array[_0x4bb2('0x13')](this[_0x4bb2('0x56')][_0x4bb2('0x45')]());_0x58b3ee[_0x4bb2('0xd9')]((_0x3d1576,_0x1eba20)=>_0x3d1576-_0x1eba20),_0x58b3ee[_0x4bb2('0x7f')]();for(const _0x5e9015 of _0x58b3ee)if(_0x5e9015<_0x19a05d)return _0x5e9015;return this['_saveEmptyMetaData'](),Number[_0x4bb2('0x5a')];}['_copyMarkers'](_0x34c52f,_0x24fad8){const _0x5369e0=Array[_0x4bb2('0x13')](_0x24fad8['markers'])[_0x4bb2('0x15')](([_0xcff563,_0x2bd3df])=>[_0xcff563,this[_0x4bb2('0xca')](_0x2bd3df,_0x34c52f)]);_0x34c52f[_0x4bb2('0xa4')]=new Map(_0x5369e0);}['_transformMarkers'](_0x1cbb07){for(const _0x5b32d2 of this[_0x4bb2('0x51')][_0x4bb2('0xe9')]()){const _0x36c369=_0x5b32d2[_0x4bb2('0x7')](_0x1cbb07),_0x2c335c=_0x432887[_0x4bb2('0xdd')](_0x36c369);_0x5b32d2[_0x4bb2('0x35')]=_0x2c335c['start'],_0x5b32d2[_0x4bb2('0xac')]=_0x2c335c['end'];}}[_0x4bb2('0xee')](_0x5435f1,_0x4de016){const _0x40365b=this[_0x4bb2('0x96')](_0x5435f1,this[_0x4bb2('0x3a')]);if(_0x4bb2('0xe5')!==_0x5435f1[_0x4bb2('0x42')]&&(_0x40365b['_execute'](),this[_0x4bb2('0xb6')](_0x40365b)),_0x4de016)switch(_0x40365b[_0x4bb2('0x42')]){case _0x4bb2('0x79'):this[_0x4bb2('0x7e')](_0x5435f1);break;case _0x4bb2('0x6c'):case _0x4bb2('0x20'):case _0x4bb2('0x73'):this['_handleMoveOperation'](_0x5435f1);break;case'merge':this['_handleMergeOperation'](_0x5435f1);break;case _0x4bb2('0x2b'):this[_0x4bb2('0xba')](_0x5435f1);break;case _0x4bb2('0xe5'):this[_0x4bb2('0x6a')](_0x5435f1);}}[_0x4bb2('0x96')](_0x6ae598,_0x41c9c8){const _0x530f43=_0x6ae598[_0x4bb2('0x1c')]();return _0x530f43[_0x4bb2('0x69')]=_0x6ae598[_0x4bb2('0x69')],this['_fixOperation'](_0x530f43,_0x41c9c8),_0x530f43;}[_0x4bb2('0xd3')](_0x4879f7){return _0x4879f7[_0x4bb2('0x15')](_0x400250=>{const _0x5d50d=this[_0x4bb2('0x6d')](_0x400250);return Number(_0x400250[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x5d50d));});}[_0x4bb2('0x23')](_0x3baf23,_0x43e804){if(_0x3baf23['is'](_0x4bb2('0x36'),'$text'))_0x43e804[_0x4bb2('0xe4')]({'item':_0x3baf23,'type':_0x4bb2('0xc4')});else{_0x3baf23['is'](_0x4bb2('0x36'))&&_0x43e804['push']({'item':_0x3baf23,'type':_0x4bb2('0x11')});for(const _0x1373ac of _0x3baf23[_0x4bb2('0x4a')]())this[_0x4bb2('0x23')](_0x1373ac,_0x43e804);_0x3baf23['is'](_0x4bb2('0x36'))&&_0x43e804['push']({'item':_0x3baf23,'type':_0x4bb2('0x4f')});}return _0x43e804;}[_0x4bb2('0x9d')](){const _0x1f38f6=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['getRootNames'](),_0x2c21a5=new Map(this[_0x4bb2('0x88')]),_0x30601b=new Map(_0x2c21a5),_0x38f723=new Map(),_0x564013={'insertions':{},'deletions':{}},_0x1ff7f4={'insertions':{},'deletions':{}},_0x152fa9=new Map();for(const _0x38f636 of _0x1f38f6){const _0x23d78f=this[_0x4bb2('0x3a')][_0x4bb2('0x66')](_0x38f636),_0x38cc2a=this[_0x4bb2('0x4d')][_0x4bb2('0x66')](_0x38f636);_0x564013[_0x4bb2('0xc9')][_0x38f636]=J(_0x23d78f),_0x564013['deletions'][_0x38f636]=J(_0x38cc2a),this[_0x4bb2('0xa6')](_0x564013['deletions'][_0x38f636],_0x38cc2a),this[_0x4bb2('0xa6')](_0x564013[_0x4bb2('0xc9')][_0x38f636],_0x23d78f),_0x1ff7f4[_0x4bb2('0xc9')][_0x38f636]=this[_0x4bb2('0x23')](this[_0x4bb2('0xa2')][_0x4bb2('0x66')](_0x38f636),[]),_0x1ff7f4[_0x4bb2('0xa7')][_0x38f636]=this[_0x4bb2('0x23')](this[_0x4bb2('0xb4')]['get'](_0x38f636),[]);}for(const _0x2373e9 of _0x1f38f6){const _0x222330=_0x1ff7f4[_0x4bb2('0xc9')][_0x2373e9];for(const _0x49bb9d of _0x222330){const _0x13da21=this['_getVidAttributeName'](_0x49bb9d),_0x45647d=_0x49bb9d[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x13da21);_0x30601b[_0x4bb2('0xa5')](_0x45647d),_0x45647d>=this['_startingRevisionId']&&_0x38f723[_0x4bb2('0x1')](_0x45647d,_0x2c21a5[_0x4bb2('0x66')](_0x45647d));}}for(const _0x438d7a of _0x1f38f6){const _0x2edce9=_0x1ff7f4[_0x4bb2('0xc9')][_0x438d7a],_0x20b559=this[_0x4bb2('0xd3')](_0x1ff7f4['deletions'][_0x438d7a]);let _0x4b4381=0x0;for(const _0x47744f of _0x2edce9){const _0x3ecdfc=this[_0x4bb2('0x6d')](_0x47744f),_0x21eb11=_0x47744f[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x3ecdfc);if(!_0x38f723['has'](_0x21eb11)&&!_0x152fa9[_0x4bb2('0xa1')](_0x21eb11)){if(_0x30601b[_0x4bb2('0xa1')](_0x21eb11))_0x4b4381++;else{if(_0x21eb11!=_0x20b559[_0x4b4381]){const _0x16d084=_0x2c21a5[_0x4bb2('0x66')](_0x21eb11)||_0x2c21a5[_0x4bb2('0x66')](_0x20b559[_0x4b4381]);for(;_0x21eb11!=_0x20b559[_0x4b4381];)_0x30601b[_0x4bb2('0xa1')](_0x20b559[_0x4b4381])||(_0x152fa9[_0x4bb2('0x1')](_0x20b559[_0x4b4381],_0x16d084),_0x2c21a5[_0x4bb2('0x1')](_0x20b559[_0x4b4381],_0x16d084)),_0x4b4381++;}_0x4b4381++;}}}}for(const _0x556475 of _0x1f38f6){const _0x3b3e73=_0x1ff7f4[_0x4bb2('0xc9')][_0x556475];for(const _0xc944af of _0x3b3e73){const _0x37eb65=this[_0x4bb2('0x6d')](_0xc944af),_0x582008=_0xc944af[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x37eb65);if(_0x152fa9[_0x4bb2('0xa1')](_0x582008)){const _0x26df4f=_0x152fa9[_0x4bb2('0x66')](_0x582008);_0x30601b[_0x4bb2('0xa1')](_0x582008)||_0x30601b[_0x4bb2('0x1')](_0x582008,{..._0x26df4f}),_0x38f723[_0x4bb2('0x1')](_0x582008,{..._0x26df4f});}}}for(const _0x226ed9 of _0x30601b[_0x4bb2('0x45')]())_0x226ed9>=this[_0x4bb2('0xda')]&&_0x30601b['delete'](_0x226ed9);const _0x596d80=new Map();for(const _0x34b9fb of _0x1f38f6){let _0x2d0018=_0x1ff7f4['insertions'][_0x34b9fb];for(const _0x17d128 of _0x2d0018)if(_0x17d128[_0x4bb2('0x90')]['is'](_0x4bb2('0x36'),_0x4bb2('0xd'))){const _0x2ab099=this[_0x4bb2('0x6d')](_0x17d128),_0x3351f4=_0x17d128[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x2ab099);if(_0x38f723['has'](_0x3351f4)){const _0x1a1e1e=_0x17d128[_0x4bb2('0x90')][_0x4bb2('0x8d')][_0x4bb2('0x8d')][_0x4bb2('0xad')](_0x4bb2('0x5d')),_0x532b36=_0x596d80[_0x4bb2('0x66')](_0x1a1e1e)||new Set();_0x532b36[_0x4bb2('0x26')](_0x38f723[_0x4bb2('0x66')](_0x3351f4)[_0x4bb2('0x62')]),_0x596d80[_0x4bb2('0x1')](_0x1a1e1e,_0x532b36);}}_0x2d0018=_0x1ff7f4[_0x4bb2('0xa7')][_0x34b9fb];for(const _0x2efefe of _0x2d0018)if(_0x2efefe['item']['is'](_0x4bb2('0x36'),_0x4bb2('0xd'))){const _0x708344=this['_getVidAttributeName'](_0x2efefe),_0x1643c2=_0x2efefe[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x708344);if(_0x30601b[_0x4bb2('0xa1')](_0x1643c2)){const _0x4881e8=_0x2efefe[_0x4bb2('0x90')][_0x4bb2('0x8d')]['parent'][_0x4bb2('0xad')](_0x4bb2('0x5d')),_0x40b249=_0x596d80[_0x4bb2('0x66')](_0x4881e8)||new Set();_0x40b249[_0x4bb2('0x26')](_0x30601b[_0x4bb2('0x66')](_0x1643c2)[_0x4bb2('0x62')]),_0x596d80[_0x4bb2('0x1')](_0x4881e8,_0x40b249);}}for(const _0x20f8e5 of _0x596d80['keys']())(_0x38f723[_0x4bb2('0xa1')](_0x20f8e5)||_0x30601b[_0x4bb2('0xa1')](_0x20f8e5))&&_0x596d80[_0x4bb2('0xa5')](_0x20f8e5);}for(const _0x10004a of _0x1f38f6){const _0x3030f9=_0x1ff7f4[_0x4bb2('0xc9')][_0x10004a];let _0x5302a2=null,_0x191c7b=null;for(const _0x3c05fa of _0x3030f9){const _0x361c0f=this['_getVidAttributeName'](_0x3c05fa),_0x430f5f=_0x3c05fa['item'][_0x4bb2('0xad')](_0x361c0f),_0x1d0a04=_0x596d80[_0x4bb2('0x66')](_0x430f5f);_0x1d0a04&&_0x4bb2('0x11')==_0x3c05fa[_0x4bb2('0x42')]&&(_0x5302a2=Array[_0x4bb2('0x13')](_0x1d0a04)[0x0],_0x191c7b=_0x3c05fa['item'][_0x4bb2('0xad')](_0x4bb2('0xcd'))),_0x5302a2&&(_0x30601b[_0x4bb2('0x1')](_0x430f5f,{'userId':_0x5302a2}),_0x38f723['set'](_0x430f5f,{'userId':_0x5302a2})),_0x430f5f==_0x191c7b&&(_0x5302a2=null,_0x191c7b=null);}}const _0x5cab4c={},_0xa63b5d=new Set();for(const _0x1ce113 of _0x1f38f6){const _0x42cec4=_0x564013[_0x4bb2('0xa7')][_0x1ce113],_0x36313e=_0x564013['insertions'][_0x1ce113];for(const {userId:_0x3bf7bb}of this['_touchedMarkers']['values']())null!==_0x3bf7bb&&_0xa63b5d['add'](_0x3bf7bb);this[_0x4bb2('0x3d')](_0x36313e,_0x1ff7f4[_0x4bb2('0xc9')][_0x1ce113],_0x38f723,_0x4bb2('0x94'),_0xa63b5d),this['_markChanges'](_0x42cec4,_0x1ff7f4[_0x4bb2('0xa7')][_0x1ce113],_0x30601b,'deletion',_0xa63b5d),_0x5cab4c[_0x1ce113]={'insertions':this[_0x4bb2('0x37')](_0x36313e),'deletions':this[_0x4bb2('0x37')](_0x42cec4)};}return{'diffData':_0x5cab4c,'authorsIds':Array['from'](_0xa63b5d)};}[_0x4bb2('0xc5')](_0xddb4a2){for(const [,_0x39dcab]of _0xddb4a2[_0x4bb2('0xa4')]){const _0x36bf08=_0x39dcab[_0x4bb2('0x35')][_0x4bb2('0xd5')]()[_0x4bb2('0x87')](_0x530978=>_0x4bb2('0xd')==_0x530978[_0x4bb2('0x7c')]);for(const _0x5840ea of _0x36bf08)0x1==_0x5840ea['childCount']&&_0x5840ea[_0x4bb2('0xaa')](0x0)['is'](_0x4bb2('0x36'),'paragraph')&&_0x5840ea['getChild'](0x0)[_0x4bb2('0x76')](_0x4bb2('0x9'),!0x0);}}[_0x4bb2('0x37')](_0x38b40){this[_0x4bb2('0xc5')](_0x38b40);const _0x299fb6=this[_0x4bb2('0x17')][_0x4bb2('0x55')][_0x4bb2('0x92')](_0x38b40,{}),_0x2ad18a=Array[_0x4bb2('0x13')](_0x299fb6[_0x4bb2('0x4a')]())['map'](_0x5d1929=>this[_0x4bb2('0xf5')](_0x5d1929));return JSON[_0x4bb2('0x2f')](_0x2ad18a);}[_0x4bb2('0xf5')](_0x43ab91){if(_0x43ab91['is'](_0x4bb2('0xc4')))return _0x43ab91[_0x4bb2('0x55')];return{'type':Object[_0x4bb2('0x45')](V)[_0x4bb2('0xe6')](_0x367991=>_0x43ab91 instanceof V[_0x367991]),'name':_0x43ab91[_0x4bb2('0x7c')],'attributes':Array[_0x4bb2('0x13')](_0x43ab91[_0x4bb2('0xfb')]()),'children':Array[_0x4bb2('0x13')](_0x43ab91[_0x4bb2('0x4a')]())[_0x4bb2('0x15')](_0xc75b46=>this[_0x4bb2('0xf5')](_0xc75b46))};}[_0x4bb2('0x3d')](_0x198217,_0x4eb113,_0x1251d6,_0x3078c0,_0xf271eb){let _0x461d2c=null,_0x44685e=null,_0x153f98=0x0;const _0x503427=this[_0x4bb2('0x17')][_0x4bb2('0xb2')];for(let _0x22534a=0x0;_0x22534a<_0x4eb113[_0x4bb2('0x9f')];_0x22534a++){const _0x4875f1=this[_0x4bb2('0x6d')](_0x4eb113[_0x22534a]),_0xe297b1=_0x4eb113[_0x22534a][_0x4bb2('0x90')][_0x4bb2('0xad')](_0x4875f1),_0x5b6e03=_0x1251d6[_0x4bb2('0x66')](_0xe297b1),_0x331db=_0x22534a==_0x4eb113[_0x4bb2('0x9f')]-0x1;(!_0x461d2c&&_0x5b6e03&&(_0x461d2c=_0x5b6e03,_0x44685e=_0x4eb113[_0x22534a]),_0x461d2c&&(!_0x5b6e03||_0x5b6e03[_0x4bb2('0x62')]!=_0x461d2c['userId']))&&(_0x3fcb96(_0x5b6e03,j(_0x44685e,_0x198217,_0x503427),j(_0x4eb113[_0x22534a],_0x198217,_0x503427)),_0x461d2c=_0x5b6e03||null,_0x44685e=_0x5b6e03?_0x4eb113[_0x22534a]:null),_0x461d2c&&_0x331db&&_0x3fcb96(_0x5b6e03,j(_0x44685e,_0x198217,_0x503427),B(_0x4eb113[_0x22534a],_0x198217,_0x503427));}function _0x3fcb96(_0x15770d,_0x42ff43,_0x3ac300){const _0x47c506=_0x461d2c[_0x4bb2('0x62')],_0x456852=_0x4bb2('0x75')+_0x3078c0+':'+_0x47c506+':'+_0x153f98++,_0x2feabc=_0x503427[_0x4bb2('0xb0')](_0x42ff43,_0x3ac300);_0x198217[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x456852,_0x2feabc),null!==_0x47c506&&_0xf271eb[_0x4bb2('0x26')](_0x47c506);}}[_0x4bb2('0x6d')](_0x55168f){switch(_0x55168f[_0x4bb2('0x42')]){case _0x4bb2('0x11'):return _0x4bb2('0x5d');case _0x4bb2('0x4f'):return _0x4bb2('0xcd');default:return _0x4bb2('0x44');}}[_0x4bb2('0x8')](_0x3b16c2,_0x4a56ba){_0x3b16c2[_0x4bb2('0x43')]=null;for(const _0x11c27f in _0x3b16c2){if(_0x3b16c2[_0x11c27f]instanceof _0x275e0c){const _0x1151af=_0x4a56ba[_0x4bb2('0x66')](_0x3b16c2[_0x11c27f][_0x4bb2('0xbe')][_0x4bb2('0xd0')]);_0x3b16c2[_0x11c27f]=this[_0x4bb2('0x32')](_0x3b16c2[_0x11c27f],_0x1151af);}if(_0x3b16c2[_0x11c27f]instanceof _0x432887){const _0x4d8def=_0x4a56ba['get'](_0x3b16c2[_0x11c27f][_0x4bb2('0xbe')][_0x4bb2('0xd0')]);_0x3b16c2[_0x11c27f]=this[_0x4bb2('0xca')](_0x3b16c2[_0x11c27f],_0x4d8def);}}_0x3b16c2['root']&&(_0x3b16c2[_0x4bb2('0xbe')]=_0x4a56ba[_0x4bb2('0x66')](_0x3b16c2['root'][_0x4bb2('0xd0')]));}['_fixRange'](_0x2f4a07,_0x907e18){return this[_0x4bb2('0x17')]['model']['createRange'](this[_0x4bb2('0x32')](_0x2f4a07['start'],_0x907e18),this[_0x4bb2('0x32')](_0x2f4a07[_0x4bb2('0xac')],_0x907e18));}[_0x4bb2('0x32')](_0x80e2ce,_0x5422bc){return this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xcf')](_0x5422bc,_0x80e2ce[_0x4bb2('0xb8')],_0x80e2ce[_0x4bb2('0x98')]);}[_0x4bb2('0x7e')](_0x341b93){const _0x10481=this['_idsRoots'][_0x4bb2('0x66')](_0x341b93[_0x4bb2('0xc7')][_0x4bb2('0xbe')][_0x4bb2('0xd0')]),_0x14adf6=this[_0x4bb2('0x32')](_0x341b93[_0x4bb2('0xc7')],_0x10481),_0x1de307=null===_0x341b93[_0x4bb2('0x69')]?null:_0x341b93[_0x4bb2('0x69')]||this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')]('Users')['me']['id'],_0x351e1e=_0x14adf6[_0x4bb2('0x8d')],_0x17b709=this[_0x4bb2('0xf7')],_0x5ee038=[];for(const _0x4054da of _0x341b93[_0x4bb2('0x61')])if(_0x4054da['is'](_0x4bb2('0x36')))_0x5ee038[_0x4bb2('0xe4')](this[_0x4bb2('0x3f')](_0x4054da));else for(let _0x9530ac=0x0;_0x9530ac<_0x4054da[_0x4bb2('0x5c')];_0x9530ac++)_0x5ee038[_0x4bb2('0xe4')](new _0x462dd8('$text',{'vid':this[_0x4bb2('0xf7')]++}));const _0x285020=this['_revisionId'];for(let _0x41a334=_0x17b709;_0x41a334<_0x285020;_0x41a334++)this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x41a334,{'userId':_0x1de307});_0x351e1e['_insertChild'](_0x14adf6['offset'],_0x5ee038);}[_0x4bb2('0xc2')](_0x395c4e){(_0x395c4e=this[_0x4bb2('0x96')](_0x395c4e,this[_0x4bb2('0xa2')]))[_0x4bb2('0xbb')]();const _0x47b498=null===_0x395c4e['_authorId']?null:_0x395c4e[_0x4bb2('0x69')]||this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x3405ac=_0x395c4e[_0x4bb2('0x19')](),_0x4fab36=_0x3405ac[_0x4bb2('0x8d')],_0x360706=_0x3405ac[_0x4bb2('0xb3')];!function _0x18664e(_0x35a6d3,_0x1dcb70,_0x5b698f,_0x22f031){for(let _0x37bb4f=_0x5b698f;_0x37bb4f<_0x22f031;_0x37bb4f++){const _0x47be52=_0x1dcb70[_0x4bb2('0xaa')](_0x37bb4f);_0x47be52['is'](_0x4bb2('0x36'),_0x4bb2('0x28'))?_0x35a6d3[_0x4bb2('0x1')](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0x44')),{'userId':_0x47b498}):(_0x35a6d3['set'](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0x5d')),{'userId':_0x47b498}),_0x18664e(_0x35a6d3,_0x47be52,0x0,_0x47be52[_0x4bb2('0xb')]),_0x35a6d3[_0x4bb2('0x1')](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0xcd')),{'userId':_0x47b498}));}}(this[_0x4bb2('0x88')],_0x4fab36,_0x360706,_0x360706+_0x395c4e['howMany']);}[_0x4bb2('0x68')](_0x30e2d4){const _0x29f19b=null===(_0x30e2d4=this[_0x4bb2('0x96')](_0x30e2d4,this[_0x4bb2('0xa2')]))[_0x4bb2('0x69')]?null:_0x30e2d4['_authorId']||this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x1f8d14=_0x30e2d4[_0x4bb2('0x95')][_0x4bb2('0x8d')],_0x2c8f0a=_0x30e2d4['sourcePosition'][_0x4bb2('0x8d')],_0x17d081=_0x1f8d14[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0xcf6284=_0x2c8f0a[_0x4bb2('0xad')](_0x4bb2('0x5d'));_0x1f8d14[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x2c8f0a[_0x4bb2('0xad')](_0x4bb2('0xcd'))),_0x2c8f0a[_0x4bb2('0x76')]('vid_end',_0x17d081),this['_touched']['set'](_0xcf6284,{'userId':_0x29f19b}),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x17d081,{'userId':_0x29f19b}),_0x30e2d4[_0x4bb2('0xbb')]();}['_handleSplitOperation'](_0x1fc507){const _0x12512c=null===(_0x1fc507=this['_cloneOperation'](_0x1fc507,this[_0x4bb2('0xa2')]))[_0x4bb2('0x69')]?null:_0x1fc507[_0x4bb2('0x69')]||this['editor']['plugins'][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x1d2836=_0x1fc507[_0x4bb2('0x3c')],_0x33a776=_0x1fc507[_0x4bb2('0xdb')]['parent'];_0x1fc507[_0x4bb2('0xbb')]();const _0x3c86e6=_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0x15101b=_0x1fc507[_0x4bb2('0x9c')][_0x4bb2('0x10')];if(_0x1d2836){const _0x2168c3=_0x15101b[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0x32bc74=_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd'));_0x33a776[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x2168c3),_0x15101b['_setAttribute']('vid_end',_0x32bc74),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd')),{'userId':_0x12512c}),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x15101b[_0x4bb2('0xad')](_0x4bb2('0x5d')),{'userId':_0x12512c});}else{const _0x7616a7=this['_revisionId']++,_0x4ed498=this[_0x4bb2('0xf7')]++;_0x33a776[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x7616a7),_0x15101b[_0x4bb2('0x76')](_0x4bb2('0x5d'),_0x4ed498),_0x15101b[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x3c86e6),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x7616a7,{'userId':_0x12512c}),this['_touched'][_0x4bb2('0x1')](_0x4ed498,{'userId':_0x12512c});}}[_0x4bb2('0x6a')](_0x15b56b){if(!_0x15b56b[_0x4bb2('0x2a')])return;const _0x367fa6=(_0x15b56b=this[_0x4bb2('0x96')](_0x15b56b,this[_0x4bb2('0x3a')]))[_0x4bb2('0xf')]?_0x15b56b[_0x4bb2('0xf')][_0x4bb2('0xbe')]:null,_0x16f06a=_0x15b56b[_0x4bb2('0x4')]?_0x15b56b['newRange'][_0x4bb2('0xbe')]:null;_0x367fa6&&this[_0x4bb2('0x51')][_0x4bb2('0xa5')](_0x15b56b[_0x4bb2('0x7c')]),_0x16f06a&&this[_0x4bb2('0x51')]['set'](_0x15b56b[_0x4bb2('0x7c')],_0x15b56b[_0x4bb2('0x4')][_0x4bb2('0x1c')]());const _0x7a57b9=null===_0x15b56b['_authorId']?null:_0x15b56b[_0x4bb2('0x69')]||this[_0x4bb2('0x17')]['plugins']['get'](_0x4bb2('0x27'))['me']['id'],_0x23b18b=_0x15b56b[_0x4bb2('0x7c')];if(!this[_0x4bb2('0x80')][_0x4bb2('0xa1')](_0x23b18b))return void this['_touchedMarkers'][_0x4bb2('0x1')](_0x23b18b,{'range':_0x15b56b[_0x4bb2('0xf')],'userId':_0x7a57b9});const _0x419a21=this[_0x4bb2('0x80')][_0x4bb2('0x66')](_0x23b18b),_0x3ddcb2=_0x419a21[_0x4bb2('0x8f')],_0x57d394=_0x15b56b['newRange'];null==_0x3ddcb2&&null==_0x57d394||_0x3ddcb2&&_0x57d394&&_0x3ddcb2[_0x4bb2('0xd6')](_0x57d394)?this['_touchedMarkers'][_0x4bb2('0xa5')](_0x15b56b['name']):_0x419a21['userId']=_0x7a57b9;}}function J(_0x38a1b8){const _0x39d089=new _0x2825b5();_0x39d089[_0x4bb2('0xd0')]=_0x38a1b8[_0x4bb2('0xd0')];for(const _0x208596 of _0x38a1b8[_0x4bb2('0x4a')]()){const _0x3b91eb=_0x208596[_0x4bb2('0xce')](!0x0);_0x39d089[_0x4bb2('0x91')](_0x3b91eb);}return _0x39d089;}function j(_0x18cc2f,_0x451db7,_0x4cb9c8){const _0x9617f9=_0x4bb2('0x4f')==_0x18cc2f['type']?_0x4cb9c8[_0x4bb2('0x81')](_0x18cc2f[_0x4bb2('0x90')],_0x4bb2('0xac')):_0x4cb9c8['createPositionBefore'](_0x18cc2f[_0x4bb2('0x90')]);return _0x9617f9['root']=_0x451db7,_0x9617f9;}function B(_0xa0879,_0x38f234,_0x21c880){const _0x2713ef='elementStart'==_0xa0879['type']?_0x21c880[_0x4bb2('0x81')](_0xa0879[_0x4bb2('0x90')],0x0):_0x21c880[_0x4bb2('0x60')](_0xa0879[_0x4bb2('0x90')]);return _0x2713ef[_0x4bb2('0xbe')]=_0x38f234,_0x2713ef;}
|
|
23
|
+
const _0x450b=['RevisionsRepository','editor','_removeRevisionMarkers','clear','_startingRevisionId','bind','revision-end','addRevision','saveRevision','_getState','attributes','forEach','parse','merge','createRevision','revision:','_getBaseVids','item','_saveMetaData','get','_touched','_pendingAction','conversion','repository','_savedMetaData','update','createPositionFromPath','toView','_loadRevisionData','_handleMergeOperation','keys','affectsData','_prepareViewToSave','set','_getPreviousFrom','processor','insertionPosition','getChild','reverse','reinsert','path','useFillerType','sort','addRevisionData','_createFromRanges','version','marker','history','offsetSize','elementStart','_copyMarkers','values','_revisionDataBuilder','_handleMarkerOperation','_fixPosition','has','Users','PendingActions','getOperation','loadState','insertion','splitPosition','_isPendingUpdate','remove','length','_markers','pluginName','_calculateMetaData','_lastFrom','targetPosition','from','add','define','_touchedMarkers','position','plugins','parent','deletion','buildRevisionData','createPositionBefore','root','range','isEnabled','oldRange','deletions','max','isEqual','upcast','toVersion','stickiness','rootName','_removePendingAction','getRevisions','adapter','element','vid_start','init','start','_authorId','_setConversion','_execute','locale','_idsRoots','nodes','_cloneOperation','revisionHistory.resumeUnsavedRevision','getChildren','createPositionAt','offset','_createCurrentRevision','split','_initialRevisionId','_markChanges','_makeRevision','currentRevision','view','tableCell','_reset','vid','_generateTape','authors','_replaceEditorDataWithRevisionData','_addPendingAction','insertions','collaboration.channelId','_startingVersion','getRevision','trim','_source','documentFragment','_operations','creator','newRange','getData','default','then','sendBufferedUpdates','initialData','getRevisionDocumentData','end','insert','revision','createdAt','getLatestVersion','_removeMetaData','_handleOperation','stringify','_makeModelFromViewString','getTransformedByOperation','getAncestors','elementEnd','_handleSplitOperation','data','push','fromVersion','initial','_bufferUpdate','type','RevisionTracker','slice','editing','graveyardPosition','getCurrentRevisionId','previousPosition','_getVidAttributeName','string','$graveyard','_update','text','hasContent','markerToData','getUser','for','config','vid_end','children','_clone','_createInitialRevision','_revisionId','getAttribute','size','_continueCurrentRevision','_loadedStateData','keepParagraph','nodeAfter','_diffRoots','updateRevisions','source','_bufferedUpdates','find','getRootNames','toModel','move','data-revision-','document','createRangeIn','$text','ready','_loadState','startsWith','_fixOperation','getNodeByPath','afterInit','toData','_lastTo','resolve','map','sourcePosition','_fixRange','_rootNames','getTime','model','reInit','diffData','baseVersion','_findInsertionIndex','_handleMoveOperation','authorsIds','filter','howMany','_transformMarkers','_setAttribute','_baseRoots','getWalker','_processRootBeforeSave','markers','setRevisionData','getAttributes','childCount','_applyOperations','NEGATIVE_INFINITY','creatorId','_handleInsertOperation','userId','isReady','RealTimeCollaborationClient','_baseIdsRoots','_getViewJson','_getFromVersion','name','roots','_makeIdsRoot','delete','createRange','clone'];(function(_0x4bcc33,_0x450b7e){const _0x5c6d95=function(_0x27b188){while(--_0x27b188){_0x4bcc33['push'](_0x4bcc33['shift']());}};_0x5c6d95(++_0x450b7e);}(_0x450b,0x1a2));const _0x5c6d=function(_0x4bcc33,_0x450b7e){_0x4bcc33=_0x4bcc33-0x0;let _0x5c6d95=_0x450b[_0x4bcc33];return _0x5c6d95;};import{Users as _0x110f5e}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x881c2f,PendingActions as _0x1cb1d5}from'ckeditor5/src/core';import{logWarning as _0x1ebf2e,uid as _0x187adc}from'ckeditor5/src/utils';import{Position as _0x302755,Range as _0x4bafe2,Element as _0x32778a,DocumentFragment as _0x5c8a1f,ViewText as _0xfc94e1,ViewElement as _0xa5b306,ViewContainerElement as _0x1a386b,ViewAttributeElement as _0x243804,ViewEmptyElement as _0xf4c31b,ViewRawElement as _0x1c1300,ViewUIElement as _0x49ced0,ViewDocumentFragment as _0x4ceba3}from'ckeditor5/src/engine';import _0x1ecbb8 from'./revisionsrepository';import{getTranslation as _0x2e38bf}from'./utils/common-translations';const V={'c':_0x1a386b,'a':_0x243804,'e':_0xf4c31b,'r':_0x1c1300,'u':_0x49ced0};export default class l extends _0x881c2f{static get[_0x5c6d('0x8a')](){return _0x5c6d('0xe6');}static get['requires'](){return[_0x110f5e,_0x1ecbb8,_0x1cb1d5];}constructor(..._0x4fd498){super(..._0x4fd498),this[_0x5c6d('0xa5')]=null,this['set'](_0x5c6d('0x3d'),!0x1),this[_0x5c6d('0x69')](_0x5c6d('0x9a'),!0x0),this[_0x5c6d('0xba')]=null;const _0x533961=_0x187adc();this[_0x5c6d('0xc8')]={'history':this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x77')],'getLatestVersion':()=>Promise['resolve'](this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x75')]),'getCurrentRevisionId':()=>_0x533961},this['_revisionDataBuilder']=new T(this[_0x5c6d('0x49')]),this[_0x5c6d('0xb7')]=this['editor']['config'][_0x5c6d('0x5b')](_0x5c6d('0xc4'))||_0x5c6d('0xe3'),this[_0x5c6d('0x69')]('isPendingUpdate',!0x1),this[_0x5c6d('0xf')]=new Map(),this[_0x5c6d('0x49')]['config'][_0x5c6d('0x90')](_0x5c6d('0xb1'),!0x0),this[_0x5c6d('0x9')]=null,this[_0x5c6d('0x49')][_0x5c6d('0x5e')][_0x5c6d('0xf4')](_0x5c6d('0x9f'))['dataToMarker']({'view':'revision'});}['init'](){this[_0x5c6d('0x5f')]=this['editor']['plugins'][_0x5c6d('0x5b')](_0x5c6d('0x48')),this[_0x5c6d('0xab')](),this[_0x5c6d('0x49')][_0x5c6d('0xe0')]['on'](_0x5c6d('0x18'),()=>{const _0x56cc3b=this[_0x5c6d('0x5f')]['getRevision'](0x0),_0x1f38a7=_0x56cc3b&&null===_0x56cc3b['creator']?_0x56cc3b:null;if(this[_0x5c6d('0x8')]=!!_0x1f38a7&&this[_0x5c6d('0x49')]['config'][_0x5c6d('0x5b')](_0x5c6d('0xb1')),this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x7f')](_0x5c6d('0x3e'))){const _0x3d10d8=this['_source']['getCurrentRevisionId'](),_0x5efe75=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0x3d10d8);if(_0x5efe75)this['_startingVersion']=_0x5efe75[_0x5c6d('0xe2')],this[_0x5c6d('0x8')]=!0x1;else{const _0x28e2a1=this['_source'][_0x5c6d('0x77')][_0x5c6d('0xca')][_0x5c6d('0x10')](_0x4e82d2=>!_0x4e82d2['_isInit']),_0xb603e1=_0x28e2a1?_0x28e2a1['baseVersion']:this[_0x5c6d('0xc8')][_0x5c6d('0x77')][_0x5c6d('0x75')];_0x56cc3b?(_0x56cc3b[_0x5c6d('0xa0')]<_0xb603e1&&_0x56cc3b[_0x5c6d('0xef')]({'toVersion':_0xb603e1}),this[_0x5c6d('0x8')]?(this[_0x5c6d('0xc8')][_0x5c6d('0xea')]=()=>_0x1f38a7['id'],this[_0x5c6d('0xc5')]=_0x1f38a7[_0x5c6d('0xe2')]):(this[_0x5c6d('0xc5')]=_0x56cc3b['toVersion'],this[_0x5c6d('0x8')]=!0x1)):(this[_0x5c6d('0xc5')]=_0xb603e1,this[_0x5c6d('0x8')]=!0x1);}}else _0x1f38a7&&(this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')]['history'][_0x5c6d('0x75')]=Math[_0x5c6d('0x9d')](_0x1f38a7[_0x5c6d('0xa0')],this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x77')][_0x5c6d('0x75')]),_0x1f38a7['fromVersion']===_0x1f38a7[_0x5c6d('0xa0')]?(0x0!==_0x1f38a7[_0x5c6d('0xe2')]&&(this[_0x5c6d('0xc8')][_0x5c6d('0xea')]=()=>_0x1f38a7['id']),this[_0x5c6d('0x8')]=!0x1):this[_0x5c6d('0x8')]&&(this[_0x5c6d('0xc8')]['getCurrentRevisionId']=()=>_0x1f38a7['id'],this[_0x5c6d('0xc5')]=_0x1f38a7[_0x5c6d('0xe2')])),this['_continueCurrentRevision']||(this[_0x5c6d('0xc5')]=this['editor']['model'][_0x5c6d('0x15')]['version']);this[_0x5c6d('0x7c')][_0x5c6d('0xa8')](this['_source'][_0x5c6d('0x77')]),this[_0x5c6d('0x4')](this['_startingVersion']),this[_0x5c6d('0xb5')](this[_0x5c6d('0xc5')]),this[_0x5c6d('0xa5')]&&this[_0x5c6d('0xd0')]();}),this[_0x5c6d('0x4d')](_0x5c6d('0x3d'))['to'](this,_0x5c6d('0x86'),_0x42adaf=>!_0x42adaf);}async[_0x5c6d('0x1d')](){if(this[_0x5c6d('0x5f')][_0x5c6d('0x88')]>0x0){const _0x46f72a=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](0x0),_0x2695c9=await this[_0x5c6d('0xd2')](_0x46f72a);this[_0x5c6d('0xc1')](_0x2695c9);}}['setSource'](_0x2c4a46){this[_0x5c6d('0xc8')]=_0x2c4a46;}async[_0x5c6d('0x61')](){const _0x14c163=await this[_0x5c6d('0xc8')]['getLatestVersion']();if(_0x14c163>this[_0x5c6d('0xba')]['toVersion']){await this[_0x5c6d('0x19')]();const _0xab4880=this[_0x5c6d('0x96')]({'revision':this[_0x5c6d('0xba')],'to':_0x14c163});_0xab4880[_0x5c6d('0xc0')]=_0xab4880[_0x5c6d('0x2c')][_0x5c6d('0x21')](_0x1f5b43=>this['editor']['plugins'][_0x5c6d('0x5b')](_0x5c6d('0x80'))[_0x5c6d('0xf3')](_0x1f5b43)),this[_0x5c6d('0xba')][_0x5c6d('0xef')](_0xab4880);}}async['_loadState'](){this[_0x5c6d('0x8')]&&!this[_0x5c6d('0x9')]&&(await this[_0x5c6d('0x64')](this['currentRevision']),this[_0x5c6d('0x7c')][_0x5c6d('0x83')](this[_0x5c6d('0xba')]),this[_0x5c6d('0x9')]={'fromVersion':this[_0x5c6d('0xba')]['fromVersion'],'authors':this[_0x5c6d('0xba')][_0x5c6d('0xc0')][_0x5c6d('0xe7')]()});}async[_0x5c6d('0x50')](_0x2b99f4={},_0x31b66e=null){const _0x3e4808=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31b66e>this[_0x5c6d('0xba')]['toVersion']&&(_0x31b66e=null),null===_0x31b66e&&(_0x31b66e=await this[_0x5c6d('0xc8')][_0x5c6d('0xd7')]());const _0x5a12a0=this['_getFromVersion'](_0x31b66e),_0x32a7be=this[_0x5c6d('0x96')]({'from':_0x5a12a0,'to':_0x31b66e});if(this['currentRevision'][_0x5c6d('0xa0')]<_0x31b66e){const _0x4cae31=this['buildRevisionData']({'revision':this[_0x5c6d('0xba')],'from':_0x31b66e,'to':_0x31b66e});_0x4cae31[_0x5c6d('0xc0')]=[],_0x4cae31['authorsIds']=[],_0x4cae31['id']=this[_0x5c6d('0xba')]['id'],this[_0x5c6d('0xba')]['_update'](_0x4cae31,!0x0),delete _0x4cae31[_0x5c6d('0xc0')],_0x3e4808[_0x5c6d('0xe1')](_0x4cae31);}_0x2b99f4[_0x5c6d('0x3a')]=this[_0x5c6d('0x49')]['plugins'][_0x5c6d('0x5b')](_0x5c6d('0x80'))['me']['id'],_0x2b99f4[_0x5c6d('0x42')]=_0x2b99f4[_0x5c6d('0x42')]||null,_0x2b99f4['id']=_0x2b99f4['id']||_0x187adc(),_0x2b99f4={..._0x2b99f4,..._0x32a7be};const _0x1b6a9d=this[_0x5c6d('0x73')](_0x2b99f4);_0x3e4808[_0x5c6d('0xe1')](_0x2b99f4);const _0xf2a456=this[_0x5c6d('0x5f')]['getIndex'](_0x1b6a9d);if(0x0!==_0xf2a456){const _0xdc3099=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0xf2a456-0x1);if(_0xdc3099[_0x5c6d('0xe2')]!==_0x31b66e){const _0x3f7daf=this[_0x5c6d('0x7c')][_0x5c6d('0xcd')](_0x31b66e,_0xdc3099[_0x5c6d('0xa0')]),_0x1570fa={'id':_0xdc3099['id'],'diffData':_0x3f7daf[_0x5c6d('0x28')],'authorsIds':_0x3f7daf[_0x5c6d('0x2c')],'authors':_0x3f7daf[_0x5c6d('0x2c')][_0x5c6d('0x21')](_0x1a199d=>this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'))[_0x5c6d('0xf3')](_0x1a199d)),'fromVersion':_0x31b66e};_0xdc3099===this[_0x5c6d('0xba')]&&(_0x1570fa[_0x5c6d('0xd6')]=new Date(_0x2b99f4[_0x5c6d('0xd6')][_0x5c6d('0x25')]()+0xa)),_0xdc3099[_0x5c6d('0xef')](_0x1570fa,!0x0),delete _0x1570fa[_0x5c6d('0xc0')],_0x3e4808['push'](_0x1570fa);}}if(this[_0x5c6d('0xa5')]){for(const _0x50ba19 of _0x3e4808)this['_bufferUpdate'](_0x50ba19['id'],_0x50ba19,!0x0);this[_0x5c6d('0xd0')]();}return _0x1b6a9d;}[_0x5c6d('0x73')](_0x86fd97){const _0x3c0a2e=this[_0x5c6d('0x5f')][_0x5c6d('0x56')](_0x86fd97);return this[_0x5c6d('0xa5')]&&_0x3c0a2e['on'](_0x5c6d('0xef'),(_0x313930,_0x33cfe5,_0x597451)=>{_0x597451||(this['_bufferUpdate'](_0x33cfe5['id'],_0x33cfe5,!0x0),this[_0x5c6d('0xd0')]());}),this[_0x5c6d('0x5f')][_0x5c6d('0x4f')](_0x3c0a2e,this['_findInsertionIndex'](_0x3c0a2e)),_0x3c0a2e;}async[_0x5c6d('0xd2')](_0x40fcf9){await this[_0x5c6d('0x64')](_0x40fcf9);const _0x4c3274={};for(const _0x38fdf2 in _0x40fcf9[_0x5c6d('0x28')]){const _0x1520f6=this[_0x5c6d('0x4a')](JSON[_0x5c6d('0x54')](_0x40fcf9[_0x5c6d('0x28')][_0x38fdf2][_0x5c6d('0xc3')])),_0x191354=this[_0x5c6d('0x49')][_0x5c6d('0xe8')][_0x5c6d('0xbb')][_0x5c6d('0x15')],_0x3b4e00=new _0x4ceba3(_0x191354,_0x1520f6[_0x5c6d('0x21')](_0x576925=>F(_0x576925,this['editor'])));this['editor']['data'][_0x5c6d('0x6b')][_0x5c6d('0x71')]('marked'),_0x4c3274[_0x38fdf2]=this[_0x5c6d('0x49')][_0x5c6d('0xe0')][_0x5c6d('0x6b')][_0x5c6d('0x1e')](_0x3b4e00),this[_0x5c6d('0x49')][_0x5c6d('0xe0')]['processor'][_0x5c6d('0x71')](_0x5c6d('0xce'));}return _0x4c3274;}[_0x5c6d('0xd0')](){if(0x0===this[_0x5c6d('0xf')][_0x5c6d('0x7')])return;if(this[_0x5c6d('0x86')])return;let _0xf7efca=Array[_0x5c6d('0x8e')](this[_0x5c6d('0xf')][_0x5c6d('0x7b')]());this[_0x5c6d('0xf')]['clear']();for(let _0x1a4c71=0x0;_0x1a4c71<_0xf7efca[_0x5c6d('0x88')];_0x1a4c71++){const _0x22c1cb=_0xf7efca[_0x1a4c71];let _0x40845f=!0x1;for(const _0x574289 of Object[_0x5c6d('0x66')](_0x22c1cb))void 0x0===_0x22c1cb[_0x574289]?delete _0x22c1cb[_0x574289]:'id'!==_0x574289&&(_0x40845f=!0x0);_0x40845f||(_0xf7efca[_0x1a4c71]=null);}if(_0xf7efca=_0xf7efca[_0x5c6d('0x2d')](_0x39d1fa=>null!==_0x39d1fa),!_0xf7efca['length'])return;for(let _0x4d873a=0x0;_0x4d873a<_0xf7efca[_0x5c6d('0x88')];_0x4d873a++){const _0x304de2=_0xf7efca[_0x4d873a];void 0x0!==_0x304de2[_0x5c6d('0xe2')]&&void 0x0===_0x304de2[_0x5c6d('0xa0')]&&(_0x304de2[_0x5c6d('0xa0')]=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0x304de2['id'])[_0x5c6d('0xa0')]),void 0x0!==_0x304de2['toVersion']&&void 0x0===_0x304de2[_0x5c6d('0xe2')]&&(_0x304de2['fromVersion']=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0x304de2['id'])[_0x5c6d('0xe2')]);}const _0x55f3fb=this[_0x5c6d('0x49')]['config'][_0x5c6d('0x5b')](_0x5c6d('0xc4'));this[_0x5c6d('0x86')]=!0x0,this[_0x5c6d('0xc2')](),this[_0x5c6d('0xa5')][_0x5c6d('0xd')](_0xf7efca,_0x55f3fb)['finally'](()=>{this[_0x5c6d('0x86')]=!0x1;})[_0x5c6d('0xcf')](_0x24a803=>{if(_0x24a803)for(const _0x5e5658 of _0x24a803)this[_0x5c6d('0x35')]({'id':_0x5e5658['id'],'createdAt':_0x5e5658[_0x5c6d('0xd6')]});this[_0x5c6d('0xa3')](),this['sendBufferedUpdates']();});}[_0x5c6d('0xc1')](_0x5ca096){let _0x32ae1d=this[_0x5c6d('0x49')][_0x5c6d('0x0')][_0x5c6d('0x5b')](_0x5c6d('0xd1'));if(void 0x0===_0x32ae1d){_0x32ae1d={};for(const _0x5b6d34 of this[_0x5c6d('0x49')]['model'][_0x5c6d('0x15')]['getRootNames']())_0x32ae1d[_0x5b6d34]='';}'string'==typeof _0x32ae1d&&(_0x32ae1d={'main':_0x32ae1d});let _0xad20be=!0x1;for(const _0x1e77e7 of Object[_0x5c6d('0x66')](_0x32ae1d))_0x5ca096[_0x1e77e7]&&(_0x32ae1d[_0x1e77e7]!==_0x5ca096[_0x1e77e7]&&''!==_0x32ae1d[_0x1e77e7][_0x5c6d('0xc7')]()&&(_0xad20be=!0x0),_0x32ae1d[_0x1e77e7]=_0x5ca096[_0x1e77e7]);_0xad20be&&_0x1ebf2e('editor-initial-data-replaced-with-revision-data'),this[_0x5c6d('0x49')][_0x5c6d('0x0')][_0x5c6d('0x69')](_0x5c6d('0xd1'),_0x32ae1d);}['_addPendingAction'](){if(!this[_0x5c6d('0x5d')]){const _0x520d64=this['editor'][_0x5c6d('0x93')]['get'](_0x5c6d('0x81'));this[_0x5c6d('0x5d')]=_0x520d64['add'](_0x2e38bf(this[_0x5c6d('0x49')][_0x5c6d('0xad')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x5c6d('0x5d')]&&(this[_0x5c6d('0x49')]['plugins']['get'](_0x5c6d('0x81'))['remove'](this[_0x5c6d('0x5d')]),this[_0x5c6d('0x5d')]=null);}[_0x5c6d('0x2a')](_0x1b4562){const _0x1f759a=this[_0x5c6d('0x5f')][_0x5c6d('0xa4')]();_0x1f759a[_0x5c6d('0x6e')]();let _0x515c81=0x0;for(;_0x515c81<_0x1f759a[_0x5c6d('0x88')];){const _0x1e3461=_0x1f759a[_0x515c81];if(_0x1e3461===this[_0x5c6d('0xba')]){_0x515c81++;continue;}if(_0x1e3461['id']===this[_0x5c6d('0xb7')])break;const _0x490633=_0x1b4562[_0x5c6d('0xa0')]-_0x1e3461[_0x5c6d('0xa0')]||_0x1b4562[_0x5c6d('0xe2')]-_0x1e3461[_0x5c6d('0xe2')];if(_0x490633>0x0)break;if(_0x490633<0x0)_0x515c81++;else{if(!_0x1b4562['creator']&&_0x1e3461[_0x5c6d('0xcb')])break;if(_0x1e3461[_0x5c6d('0xcb')]||!_0x1b4562['creator']){if(_0x1b4562[_0x5c6d('0xd6')]>_0x1e3461[_0x5c6d('0xd6')])break;_0x515c81++;}else _0x515c81++;}}return _0x515c81;}[_0x5c6d('0x35')](_0x35815f){const _0x3a4efa=this['repository']['getRevision'](_0x35815f['id']);if(_0x35815f['createdAt']&&(_0x35815f[_0x5c6d('0xd6')]=new Date(_0x35815f[_0x5c6d('0xd6')])),_0x35815f[_0x5c6d('0x2c')]){const _0xfe923d=this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'));_0x35815f[_0x5c6d('0xc0')]=_0x35815f[_0x5c6d('0x2c')][_0x5c6d('0x21')](_0xbe3836=>_0xfe923d[_0x5c6d('0xf3')](_0xbe3836));}_0x3a4efa[_0x5c6d('0xef')](_0x35815f,!0x0);}[_0x5c6d('0x96')]({revision:_0x1095a1=null,from:_0x173d39=null,to:_0x39b6e2=null}){_0x173d39=null!==_0x173d39?_0x173d39:_0x1095a1[_0x5c6d('0xe2')],_0x39b6e2=null!==_0x39b6e2?_0x39b6e2:_0x1095a1['toVersion'];const _0x2907fe=this[_0x5c6d('0x7c')][_0x5c6d('0xcd')](_0x173d39,_0x39b6e2),_0xbf231a={'diffData':_0x2907fe[_0x5c6d('0x28')],'authorsIds':_0x2907fe[_0x5c6d('0x2c')],'fromVersion':_0x173d39,'toVersion':_0x39b6e2};if(!_0x1095a1||_0x39b6e2!==_0x1095a1[_0x5c6d('0xa0')]){const _0x17d4f0=_0x39b6e2-0x1,_0x182040=this[_0x5c6d('0xc8')][_0x5c6d('0x77')][_0x5c6d('0x82')](_0x17d4f0);_0xbf231a[_0x5c6d('0xd6')]=_0x182040&&_0x182040['createdAt']||new Date();}if(this['_loadedStateData']&&_0x173d39===this['_loadedStateData']['fromVersion'])for(const _0xf4d0f8 of this['_loadedStateData']['authors'])_0xbf231a[_0x5c6d('0x2c')]['includes'](_0xf4d0f8['id'])||_0xbf231a['authorsIds']['push'](_0xf4d0f8['id']);return _0xbf231a;}['_loadRevisionData'](_0x25bc5b){if(!_0x25bc5b||_0x25bc5b['diffData'])return Promise[_0x5c6d('0x20')]();{const _0x3bc209=this[_0x5c6d('0x49')]['config'][_0x5c6d('0x5b')]('collaboration.channelId');return this[_0x5c6d('0xa5')][_0x5c6d('0xc6')]({'channelId':_0x3bc209,'revisionId':_0x25bc5b['id']})[_0x5c6d('0xcf')](_0x53ac2e=>{_0x25bc5b['diffData']=_0x53ac2e['diffData'];});}}[_0x5c6d('0xe4')](_0x187111,_0x5304c5,_0x4c2040){if(this[_0x5c6d('0xf')][_0x5c6d('0x7f')](_0x187111)){const _0x473bf5=this[_0x5c6d('0xf')][_0x5c6d('0x5b')](_0x187111);_0x5304c5=_0x4c2040?{..._0x473bf5,..._0x5304c5}:{..._0x5304c5,..._0x473bf5};}this[_0x5c6d('0xf')][_0x5c6d('0x69')](_0x187111,_0x5304c5);}[_0x5c6d('0x41')](_0x6a5ac){const _0x530438=this[_0x5c6d('0x5f')][_0x5c6d('0xa4')]();_0x530438[_0x5c6d('0x6e')](),_0x530438['shift']();const _0x271f78=_0x530438[_0x5c6d('0x10')](_0x2e06b4=>_0x2e06b4['toVersion']<=_0x6a5ac)[_0x5c6d('0xa0')];return _0x271f78<this[_0x5c6d('0xc5')]?this[_0x5c6d('0xc5')]:_0x271f78;}[_0x5c6d('0x4')](_0x57bc4f){const _0x839358=this[_0x5c6d('0x5f')]['getRevision'](this[_0x5c6d('0x5f')][_0x5c6d('0x88')]-0x1);if(_0x839358)this[_0x5c6d('0xb7')]=_0x839358['id'];else{const _0x4d59a6=!this['editor'][_0x5c6d('0x26')]['document'][_0x5c6d('0x43')][_0x5c6d('0x10')](_0x4e7192=>this[_0x5c6d('0x49')]['model'][_0x5c6d('0xf1')](_0x4e7192)),_0x1be2e1=this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')]('Users')['me']['id'],_0x43aadf=_0x2e38bf(this[_0x5c6d('0x49')][_0x5c6d('0xad')],_0x4d59a6?'Empty\x20document':'Initial\x20revision');this[_0x5c6d('0xb9')]({'from':_0x57bc4f,'to':_0x57bc4f,'id':this[_0x5c6d('0xb7')],'name':_0x43aadf,'creatorId':_0x1be2e1});}}[_0x5c6d('0xb5')](_0xb4beae){const _0x307be5=this[_0x5c6d('0xc8')][_0x5c6d('0xea')]();this[_0x5c6d('0xba')]=this['repository'][_0x5c6d('0xc6')](_0x307be5),this['currentRevision']||(this[_0x5c6d('0xba')]=this['_makeRevision']({'from':_0xb4beae,'to':_0xb4beae,'id':_0x307be5,'name':'','creatorId':null}));}[_0x5c6d('0xb9')]({name:_0x5caab9,from:_0x4ddc8b,to:_0x35034a,creatorId:_0x114a20,id:_0x1be6f8}){const _0x2b0582=this[_0x5c6d('0x96')]({'from':_0x4ddc8b,'to':_0x35034a});_0x2b0582[_0x5c6d('0x42')]=_0x5caab9,_0x2b0582[_0x5c6d('0x3a')]=_0x114a20,_0x2b0582['id']=_0x1be6f8;const _0x2df321=this[_0x5c6d('0x73')](_0x2b0582);return this[_0x5c6d('0xa5')]&&this[_0x5c6d('0xe4')](_0x2b0582['id'],_0x2b0582,!0x0),_0x2df321;}[_0x5c6d('0xab')](){this['editor']['conversion']['for']('dataDowncast')[_0x5c6d('0xf2')]({'model':_0x5c6d('0xd5')});}['_removeRevisionMarkers'](_0x5deec9){return(_0x5deec9=_0x5deec9['filter'](_0x1d9071=>!_0x1d9071['name']||'revision-start'!==_0x1d9071[_0x5c6d('0x42')]&&_0x5c6d('0x4e')!==_0x1d9071[_0x5c6d('0x42')]))[_0x5c6d('0x53')](_0x1c21b5=>{_0x5c6d('0xed')!=typeof _0x1c21b5&&(_0x1c21b5[_0x5c6d('0x2')]=this[_0x5c6d('0x4a')](_0x1c21b5[_0x5c6d('0x2')]),_0x1c21b5[_0x5c6d('0x52')]=_0x1c21b5[_0x5c6d('0x52')][_0x5c6d('0x2d')](_0x589e13=>!_0x589e13[0x0][_0x5c6d('0x1a')](_0x5c6d('0x14'))));}),_0x5deec9;}}function F(_0x2f0975,_0x1f3a66){const _0x264fcc=_0x1f3a66['editing'][_0x5c6d('0xbb')][_0x5c6d('0x15')];if(_0x5c6d('0xed')==typeof _0x2f0975)return new _0xfc94e1(_0x264fcc,_0x2f0975);{const _0x5b7868=_0x2f0975[_0x5c6d('0x2')][_0x5c6d('0x21')](_0x4ac7b0=>F(_0x4ac7b0,_0x1f3a66));return new(V[_0x2f0975['type']]||_0xa5b306)(_0x264fcc,_0x2f0975[_0x5c6d('0x42')],_0x2f0975[_0x5c6d('0x52')],_0x5b7868);}}class T{constructor(_0x3f0aee){this[_0x5c6d('0x49')]=_0x3f0aee,this[_0x5c6d('0x60')]=new Map(),this[_0x5c6d('0x8c')]=-0x1,this[_0x5c6d('0x1f')]=-0x1,this[_0x5c6d('0x89')]=new Map(),this['_diffRoots']=new Map(),this[_0x5c6d('0x31')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x5c6d('0x5c')]=new Map(),this[_0x5c6d('0x91')]=new Map(),this[_0x5c6d('0x5')]=0x1,this['_rootNames']=this['editor'][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x11')](),this[_0x5c6d('0x24')][_0x5c6d('0xe1')](_0x5c6d('0xee'));}[_0x5c6d('0xa8')](_0x21fc2b){this[_0x5c6d('0xe')]=_0x21fc2b;const _0x5f357e=new Map();for(const _0x365799 of this[_0x5c6d('0x24')]){const _0x2cb670=J(this[_0x5c6d('0x49')]['model'][_0x5c6d('0x15')]['getRoot'](_0x365799));_0x5f357e['set'](_0x365799,_0x2cb670);}const _0x5775b1=Array[_0x5c6d('0x8e')](this['editor'][_0x5c6d('0x26')]['markers'])[_0x5c6d('0x21')](_0x5d0a84=>[_0x5d0a84[_0x5c6d('0x42')],_0x5d0a84['getRange']()]),_0x52fd15=this[_0x5c6d('0xe')]['version'];this[_0x5c6d('0x5a')](_0x52fd15,_0x5f357e,_0x5775b1),this[_0x5c6d('0x4c')]=this[_0x5c6d('0x5')];}['getData'](_0x48b6d9,_0x469412){if(this[_0x5c6d('0x8c')]===_0x48b6d9&&this[_0x5c6d('0x1f')]<=_0x469412)this[_0x5c6d('0x60')][_0x5c6d('0x7')]>0x1&&this[_0x5c6d('0xd8')](this['_lastTo']),this[_0x5c6d('0x38')](this[_0x5c6d('0x1f')],_0x469412,!0x0);else{if(!this[_0x5c6d('0x60')][_0x5c6d('0x7f')](_0x48b6d9)){const _0x12a66b=this[_0x5c6d('0x6a')](_0x48b6d9);this[_0x5c6d('0x8b')](_0x12a66b,_0x48b6d9,!0x1);}this[_0x5c6d('0x8b')](_0x48b6d9,_0x469412,!0x0);}return this[_0x5c6d('0x8c')]=_0x48b6d9,this[_0x5c6d('0x1f')]=_0x469412,this[_0x5c6d('0x51')]();}[_0x5c6d('0x83')](_0x1747cb){this['_reset'](),this[_0x5c6d('0x8c')]=_0x1747cb[_0x5c6d('0xe2')],this['_lastTo']=_0x1747cb[_0x5c6d('0xa0')];for(const _0x10af6a in _0x1747cb[_0x5c6d('0x28')]){const _0x463982=this[_0x5c6d('0xdb')](_0x1747cb['diffData'][_0x10af6a][_0x5c6d('0x9c')]);_0x463982['rootName']=_0x10af6a,this[_0x5c6d('0x31')][_0x5c6d('0x69')](_0x10af6a,_0x463982);const _0x1291a8=this['_makeIdsRoot'](_0x463982);this[_0x5c6d('0x3f')]['set'](_0x10af6a,_0x1291a8);for(const [_0x370e19,_0x162c2f]of _0x463982[_0x5c6d('0x34')]){if(!_0x370e19['startsWith']('revision:'))continue;const _0x3bb01b=_0x370e19[_0x5c6d('0xb6')](':')[0x2];for(const _0x384cae of _0x162c2f[_0x5c6d('0x32')]({'singleCharacters':!0x0})){const _0x40546d=this[_0x5c6d('0xec')](_0x384cae),_0x5995e1=_0x5c6d('0xde')==_0x384cae['type']?_0x384cae['previousPosition'][_0x5c6d('0x70')][_0x5c6d('0xe7')](0x0,-0x1):_0x384cae['previousPosition'][_0x5c6d('0x70')],_0x499266=_0x1291a8[_0x5c6d('0x1c')](_0x5995e1)[_0x5c6d('0x6')](_0x40546d);this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x499266,{'userId':_0x3bb01b});}}}this[_0x5c6d('0x4c')]=this[_0x5c6d('0x5')];const _0xd2a5d0=[...Array(this[_0x5c6d('0x5')])[_0x5c6d('0x66')]()][_0x5c6d('0xe7')](0x1)[_0x5c6d('0x2d')](_0x24466b=>!this['_touched'][_0x5c6d('0x7f')](_0x24466b));let _0x5d012d=0x0;for(const _0x203ca2 in _0x1747cb[_0x5c6d('0x28')]){const _0xbebc13=this[_0x5c6d('0xdb')](_0x1747cb[_0x5c6d('0x28')][_0x203ca2][_0x5c6d('0xc3')]);_0xbebc13[_0x5c6d('0xa2')]=_0x203ca2,this[_0x5c6d('0xc')][_0x5c6d('0x69')](_0x203ca2,_0xbebc13);const _0x1f5a08=this[_0x5c6d('0x44')](_0xbebc13,Number['NEGATIVE_INFINITY']);this[_0x5c6d('0xae')][_0x5c6d('0x69')](_0x203ca2,_0x1f5a08);for(const [_0x145f36,_0xcb7670]of _0xbebc13[_0x5c6d('0x34')]){if(!_0x145f36['startsWith']('revision:'))continue;const _0x5b141f=_0x145f36[_0x5c6d('0xb6')](':')[0x2];for(const _0x1d4edf of _0xcb7670[_0x5c6d('0x32')]({'singleCharacters':!0x0})){const _0x5e33b3=this[_0x5c6d('0xec')](_0x1d4edf),_0x450b66=this[_0x5c6d('0x5')]++,_0xc5ebda=_0x5c6d('0xde')==_0x1d4edf['type']?_0x1d4edf['previousPosition'][_0x5c6d('0x70')][_0x5c6d('0xe7')](0x0,-0x1):_0x1d4edf[_0x5c6d('0xeb')][_0x5c6d('0x70')];_0x1f5a08['getNodeByPath'](_0xc5ebda)['_setAttribute'](_0x5e33b3,_0x450b66),this[_0x5c6d('0x5c')]['set'](_0x450b66,{'userId':_0x5b141f});}}for(const _0x4cc740 of this['editor'][_0x5c6d('0x26')][_0x5c6d('0x16')](_0xbebc13)[_0x5c6d('0x32')]({'singleCharacters':!0x0})){const _0x2f2290=this[_0x5c6d('0xec')](_0x4cc740),_0x72df2b='elementEnd'==_0x4cc740[_0x5c6d('0xe5')]?_0x4cc740[_0x5c6d('0xeb')][_0x5c6d('0x70')][_0x5c6d('0xe7')](0x0,-0x1):_0x4cc740[_0x5c6d('0xeb')][_0x5c6d('0x70')],_0x2c631d=_0x1f5a08[_0x5c6d('0x1c')](_0x72df2b);_0x2c631d[_0x5c6d('0x6')](_0x2f2290)>0x0||_0x2c631d['_setAttribute'](_0x2f2290,_0xd2a5d0[_0x5d012d++]);}const _0x2c2cb4=new _0x5c8a1f();_0x2c2cb4[_0x5c6d('0xa2')]=_0x5c6d('0xee'),this[_0x5c6d('0x31')][_0x5c6d('0x69')]('$graveyard',_0x2c2cb4),this[_0x5c6d('0x3f')]['set'](_0x5c6d('0xee'),this['_makeIdsRoot'](_0x2c2cb4,0x1));const _0x43dcf4=new _0x5c8a1f();_0x43dcf4[_0x5c6d('0xa2')]=_0x5c6d('0xee'),this[_0x5c6d('0xc')][_0x5c6d('0x69')](_0x5c6d('0xee'),_0x43dcf4),this[_0x5c6d('0xae')]['set'](_0x5c6d('0xee'),this[_0x5c6d('0x44')](_0x43dcf4,0x1));for(const [_0x519884,_0x315842]of _0xbebc13[_0x5c6d('0x34')])_0x519884[_0x5c6d('0x1a')](_0x5c6d('0x57'))||this[_0x5c6d('0x89')][_0x5c6d('0x69')](_0x519884,_0x315842);}const _0x4aed63=Array[_0x5c6d('0x8e')](this['_diffRoots'])[_0x5c6d('0x21')](([_0x591a72,_0x6c84d6])=>[_0x591a72,J(_0x6c84d6)]);this[_0x5c6d('0x5a')](this['_lastTo'],_0x4aed63,this['_markers']);}['_makeModelFromViewString'](_0x3f346e){const _0x56b5d2=JSON[_0x5c6d('0x54')](_0x3f346e),_0xf83a3f=this[_0x5c6d('0x49')][_0x5c6d('0xe8')][_0x5c6d('0xbb')]['document'],_0x3bc273=new _0x4ceba3(_0xf83a3f,_0x56b5d2[_0x5c6d('0x21')](_0x4b6a42=>F(_0x4b6a42,this[_0x5c6d('0x49')])));return this['editor'][_0x5c6d('0xe0')][_0x5c6d('0x12')](_0x3bc273);}['_saveEmptyMetaData'](){const _0x35088f=new Map();for(const _0x2d2097 of this[_0x5c6d('0x24')]){const _0x4dae75=new _0x5c8a1f();_0x4dae75[_0x5c6d('0xa2')]=_0x2d2097,_0x35088f[_0x5c6d('0x69')](_0x2d2097,_0x4dae75);}this[_0x5c6d('0x5a')](Number[_0x5c6d('0x39')],_0x35088f,[]);}[_0x5c6d('0x5a')](_0x3fc4ca,_0x2701b9,_0x185cf0){const _0x31efb8=new Map(_0x2701b9),_0x1ec6df=new Map();for(const [_0x532837,_0x554310]of _0x185cf0)_0x1ec6df[_0x5c6d('0x69')](_0x532837,{'start':_0x554310[_0x5c6d('0xa9')]['clone'](),'end':_0x554310[_0x5c6d('0xd3')][_0x5c6d('0x47')](),'rootName':_0x554310['root'][_0x5c6d('0xa2')]});this[_0x5c6d('0x60')][_0x5c6d('0x69')](_0x3fc4ca,{'roots':_0x31efb8,'markers':_0x1ec6df});}[_0x5c6d('0xd8')](_0x349484){this[_0x5c6d('0x60')][_0x5c6d('0x45')](_0x349484);}[_0x5c6d('0x27')](){this[_0x5c6d('0xbd')](),this[_0x5c6d('0x8c')]=-0x1,this[_0x5c6d('0x1f')]=-0x1,this['_savedMetaData']['clear'](),this[_0x5c6d('0xa8')](this['source']);}[_0x5c6d('0xbd')](){this[_0x5c6d('0x5c')][_0x5c6d('0x4b')](),this['_touchedMarkers']['clear'](),this[_0x5c6d('0xc')][_0x5c6d('0x4b')](),this['_baseRoots']['clear'](),this[_0x5c6d('0xae')]['clear'](),this['_baseIdsRoots'][_0x5c6d('0x4b')](),this[_0x5c6d('0x89')][_0x5c6d('0x4b')](),this[_0x5c6d('0x5')]=0x1,this[_0x5c6d('0x4c')]=this['_revisionId'];}[_0x5c6d('0x44')](_0x37c389,_0x14862b=null){let _0x19b24c=null;_0x37c389['is'](_0x5c6d('0xc9'))||(_0x19b24c=new _0x32778a(_0x37c389[_0x5c6d('0x42')],{'vid_start':null===_0x14862b?this[_0x5c6d('0x5')]++:_0x14862b++}));const _0xfd85cc=[];for(const _0x4f6d2f of _0x37c389[_0x5c6d('0xb2')]())if(_0x4f6d2f['is']('element')){_0xfd85cc[_0x5c6d('0xe1')](this[_0x5c6d('0x44')](_0x4f6d2f,_0x14862b));const _0x25d93e=_0xfd85cc[_0xfd85cc['length']-0x1];null!==_0x14862b&&(_0x14862b=_0x25d93e['is']('element',_0x5c6d('0x17'))?_0x25d93e[_0x5c6d('0x6')]('vid')+0x1:_0x25d93e[_0x5c6d('0x6')](_0x5c6d('0x1'))+0x1);}else for(let _0x51d40b=0x0;_0x51d40b<_0x4f6d2f[_0x5c6d('0x78')];_0x51d40b++)_0xfd85cc[_0x5c6d('0xe1')](new _0x32778a(_0x5c6d('0x17'),{'vid':null===_0x14862b?this[_0x5c6d('0x5')]++:_0x14862b++}));if(_0x37c389['is'](_0x5c6d('0xc9'))){const _0x35d0ae=new _0x5c8a1f(_0xfd85cc);return _0x35d0ae[_0x5c6d('0xa2')]=_0x37c389['rootName'],_0x35d0ae;}return _0x19b24c[_0x5c6d('0x30')]('vid_end',null===_0x14862b?this[_0x5c6d('0x5')]++:_0x14862b++),_0x19b24c['_insertChild'](0x0,_0xfd85cc),_0x19b24c;}[_0x5c6d('0x8b')](_0x2ecde6,_0x316241,_0x1d71a0){this[_0x5c6d('0xbd')]();const {roots:_0x177475,markers:_0x57fa92}=this['_savedMetaData'][_0x5c6d('0x5b')](_0x2ecde6);this[_0x5c6d('0x31')]=new Map(_0x177475);for(const [_0x535261,_0x2c1413]of this[_0x5c6d('0x31')])if(_0x5c6d('0xee')!==_0x535261&&(this['_diffRoots']['set'](_0x535261,J(_0x2c1413)),_0x1d71a0)){const _0xec1ec0=this[_0x5c6d('0x5')];this['_idsRoots']['set'](_0x535261,this[_0x5c6d('0x44')](_0x2c1413)),this[_0x5c6d('0x3f')][_0x5c6d('0x69')](_0x535261,this[_0x5c6d('0x44')](_0x2c1413,_0xec1ec0));}this[_0x5c6d('0x4c')]=this['_revisionId'],this[_0x5c6d('0xc')]['set'](_0x5c6d('0xee'),J(this['_baseRoots'][_0x5c6d('0x5b')](_0x5c6d('0xee')))),_0x1d71a0&&this[_0x5c6d('0xae')][_0x5c6d('0x69')](_0x5c6d('0xee'),this[_0x5c6d('0x44')](this['_baseRoots'][_0x5c6d('0x5b')](_0x5c6d('0xee'))));for(const [_0x442838,_0x5c01d1]of _0x57fa92){const _0x3458be=this[_0x5c6d('0x31')][_0x5c6d('0x5b')](_0x5c01d1[_0x5c6d('0xa2')]),_0x5cd135=this[_0x5c6d('0xc')][_0x5c6d('0x5b')](_0x5c01d1[_0x5c6d('0xa2')]),_0x18fb1e=new _0x4bafe2(this['_fixPosition'](_0x5c01d1[_0x5c6d('0xa9')],_0x3458be),this[_0x5c6d('0x7e')](_0x5c01d1[_0x5c6d('0xd3')],_0x3458be)),_0x5b3622=this[_0x5c6d('0x23')](_0x18fb1e,_0x5cd135);_0x3458be[_0x5c6d('0x34')]['set'](_0x442838,_0x18fb1e),this[_0x5c6d('0x89')][_0x5c6d('0x69')](_0x442838,_0x5b3622);}this[_0x5c6d('0x38')](_0x2ecde6,_0x316241,_0x1d71a0);}['_applyOperations'](_0xc6a9eb,_0x4a3480,_0x3e5a7e){for(const _0x124375 of this[_0x5c6d('0xe')]['getOperations'](_0xc6a9eb,_0x4a3480))this[_0x5c6d('0xd9')](_0x124375,_0x3e5a7e);for(const _0x2fe03d of this['_diffRoots'][_0x5c6d('0x7b')]())_0x2fe03d[_0x5c6d('0x34')]['clear']();for(const [_0x4d005e,_0x2bc741]of this[_0x5c6d('0x89')]){this[_0x5c6d('0xc')][_0x5c6d('0x5b')](_0x2bc741[_0x5c6d('0x98')][_0x5c6d('0xa2')])[_0x5c6d('0x34')][_0x5c6d('0x69')](_0x4d005e,_0x2bc741[_0x5c6d('0x47')]());}this[_0x5c6d('0x5a')](_0x4a3480,Array['from'](this[_0x5c6d('0xc')])[_0x5c6d('0x21')](([_0x2f643e,_0x5c2eaf])=>[_0x2f643e,J(_0x5c2eaf)]),this[_0x5c6d('0x89')]);}[_0x5c6d('0x6a')](_0x55aeb0){const _0x17378b=Array['from'](this[_0x5c6d('0x60')][_0x5c6d('0x66')]());_0x17378b[_0x5c6d('0x72')]((_0x4f3193,_0x233ec5)=>_0x4f3193-_0x233ec5),_0x17378b['reverse']();for(const _0x2c2681 of _0x17378b)if(_0x2c2681<_0x55aeb0)return _0x2c2681;return this['_saveEmptyMetaData'](),Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5569c5,_0x1571c3){const _0x43b713=Array[_0x5c6d('0x8e')](_0x1571c3[_0x5c6d('0x34')])[_0x5c6d('0x21')](([_0x51b056,_0x331d8a])=>[_0x51b056,this[_0x5c6d('0x23')](_0x331d8a,_0x5569c5)]);_0x5569c5[_0x5c6d('0x34')]=new Map(_0x43b713);}[_0x5c6d('0x2f')](_0x4a6caf){for(const _0x3bf35e of this[_0x5c6d('0x89')][_0x5c6d('0x7b')]()){const _0x2ae764=_0x3bf35e[_0x5c6d('0xdc')](_0x4a6caf),_0x59a178=_0x4bafe2[_0x5c6d('0x74')](_0x2ae764);_0x3bf35e[_0x5c6d('0xa9')]=_0x59a178['start'],_0x3bf35e['end']=_0x59a178[_0x5c6d('0xd3')];}}['_handleOperation'](_0x36573a,_0x16558a){const _0x163f7f=this[_0x5c6d('0xb0')](_0x36573a,this[_0x5c6d('0xc')]);if(_0x5c6d('0x76')!==_0x36573a['type']&&(_0x163f7f[_0x5c6d('0xac')](),this[_0x5c6d('0x2f')](_0x163f7f)),_0x16558a)switch(_0x163f7f[_0x5c6d('0xe5')]){case _0x5c6d('0xd4'):this[_0x5c6d('0x3b')](_0x36573a);break;case _0x5c6d('0x13'):case _0x5c6d('0x87'):case _0x5c6d('0x6f'):this[_0x5c6d('0x2b')](_0x36573a);break;case _0x5c6d('0x55'):this[_0x5c6d('0x65')](_0x36573a);break;case _0x5c6d('0xb6'):this[_0x5c6d('0xdf')](_0x36573a);break;case _0x5c6d('0x76'):this['_handleMarkerOperation'](_0x36573a);}}['_cloneOperation'](_0x3babc1,_0x41426e){const _0x4feb26=_0x3babc1[_0x5c6d('0x47')]();return _0x4feb26['_authorId']=_0x3babc1['_authorId'],this[_0x5c6d('0x1b')](_0x4feb26,_0x41426e),_0x4feb26;}['_getBaseVids'](_0xdfd8f2){return _0xdfd8f2[_0x5c6d('0x21')](_0x10b44f=>{const _0x1e20d2=this[_0x5c6d('0xec')](_0x10b44f);return Number(_0x10b44f['item']['getAttribute'](_0x1e20d2));});}[_0x5c6d('0xbf')](_0x1a84f9,_0x5bb818){if(_0x1a84f9['is'](_0x5c6d('0xa6'),_0x5c6d('0x17')))_0x5bb818[_0x5c6d('0xe1')]({'item':_0x1a84f9,'type':_0x5c6d('0xf0')});else{_0x1a84f9['is']('element')&&_0x5bb818[_0x5c6d('0xe1')]({'item':_0x1a84f9,'type':_0x5c6d('0x79')});for(const _0x5dc22a of _0x1a84f9[_0x5c6d('0xb2')]())this['_generateTape'](_0x5dc22a,_0x5bb818);_0x1a84f9['is'](_0x5c6d('0xa6'))&&_0x5bb818[_0x5c6d('0xe1')]({'item':_0x1a84f9,'type':'elementEnd'});}return _0x5bb818;}['_getState'](){const _0x5c3008=this[_0x5c6d('0x49')][_0x5c6d('0x26')]['document'][_0x5c6d('0x11')](),_0x41418b=new Map(this[_0x5c6d('0x5c')]),_0x291493=new Map(_0x41418b),_0x7ef5eb=new Map(),_0xab11c8={'insertions':{},'deletions':{}},_0x542964={'insertions':{},'deletions':{}},_0x468d9b=new Map();for(const _0x3a0bbf of _0x5c3008){const _0x1f0a29=this[_0x5c6d('0xc')][_0x5c6d('0x5b')](_0x3a0bbf),_0x22e2f0=this[_0x5c6d('0x31')]['get'](_0x3a0bbf);_0xab11c8[_0x5c6d('0xc3')][_0x3a0bbf]=J(_0x1f0a29),_0xab11c8[_0x5c6d('0x9c')][_0x3a0bbf]=J(_0x22e2f0),this[_0x5c6d('0x7a')](_0xab11c8[_0x5c6d('0x9c')][_0x3a0bbf],_0x22e2f0),this[_0x5c6d('0x7a')](_0xab11c8[_0x5c6d('0xc3')][_0x3a0bbf],_0x1f0a29),_0x542964['insertions'][_0x3a0bbf]=this[_0x5c6d('0xbf')](this[_0x5c6d('0xae')]['get'](_0x3a0bbf),[]),_0x542964[_0x5c6d('0x9c')][_0x3a0bbf]=this['_generateTape'](this[_0x5c6d('0x3f')][_0x5c6d('0x5b')](_0x3a0bbf),[]);}for(const _0x23c0cb of _0x5c3008){const _0x5a1bd3=_0x542964[_0x5c6d('0xc3')][_0x23c0cb];for(const _0x18e984 of _0x5a1bd3){const _0x19d286=this[_0x5c6d('0xec')](_0x18e984),_0x5aa93a=_0x18e984[_0x5c6d('0x59')][_0x5c6d('0x6')](_0x19d286);_0x291493[_0x5c6d('0x45')](_0x5aa93a),_0x5aa93a>=this[_0x5c6d('0x4c')]&&_0x7ef5eb[_0x5c6d('0x69')](_0x5aa93a,_0x41418b[_0x5c6d('0x5b')](_0x5aa93a));}}for(const _0x4c2184 of _0x5c3008){const _0x4340ee=_0x542964[_0x5c6d('0xc3')][_0x4c2184],_0x25e346=this[_0x5c6d('0x58')](_0x542964[_0x5c6d('0x9c')][_0x4c2184]);let _0x14e679=0x0;for(const _0x12ce04 of _0x4340ee){const _0x3fc921=this['_getVidAttributeName'](_0x12ce04),_0x212e45=_0x12ce04[_0x5c6d('0x59')]['getAttribute'](_0x3fc921);if(!_0x7ef5eb[_0x5c6d('0x7f')](_0x212e45)&&!_0x468d9b['has'](_0x212e45)){if(_0x291493[_0x5c6d('0x7f')](_0x212e45))_0x14e679++;else{if(_0x212e45!=_0x25e346[_0x14e679]){const _0x28c74a=_0x41418b[_0x5c6d('0x5b')](_0x212e45)||_0x41418b[_0x5c6d('0x5b')](_0x25e346[_0x14e679]);for(;_0x212e45!=_0x25e346[_0x14e679];)_0x291493[_0x5c6d('0x7f')](_0x25e346[_0x14e679])||(_0x468d9b[_0x5c6d('0x69')](_0x25e346[_0x14e679],_0x28c74a),_0x41418b[_0x5c6d('0x69')](_0x25e346[_0x14e679],_0x28c74a)),_0x14e679++;}_0x14e679++;}}}}for(const _0x46e076 of _0x5c3008){const _0xf8b7f2=_0x542964[_0x5c6d('0xc3')][_0x46e076];for(const _0x298749 of _0xf8b7f2){const _0x6ef235=this[_0x5c6d('0xec')](_0x298749),_0x285268=_0x298749['item']['getAttribute'](_0x6ef235);if(_0x468d9b['has'](_0x285268)){const _0x32e1cb=_0x468d9b[_0x5c6d('0x5b')](_0x285268);_0x291493[_0x5c6d('0x7f')](_0x285268)||_0x291493[_0x5c6d('0x69')](_0x285268,{..._0x32e1cb}),_0x7ef5eb[_0x5c6d('0x69')](_0x285268,{..._0x32e1cb});}}}for(const _0xd0e85c of _0x291493['keys']())_0xd0e85c>=this[_0x5c6d('0x4c')]&&_0x291493[_0x5c6d('0x45')](_0xd0e85c);const _0x159f9c=new Map();for(const _0x49d1de of _0x5c3008){let _0x3efe2a=_0x542964[_0x5c6d('0xc3')][_0x49d1de];for(const _0x271173 of _0x3efe2a)if(_0x271173[_0x5c6d('0x59')]['is'](_0x5c6d('0xa6'),_0x5c6d('0xbc'))){const _0x375e18=this['_getVidAttributeName'](_0x271173),_0x438e86=_0x271173[_0x5c6d('0x59')][_0x5c6d('0x6')](_0x375e18);if(_0x7ef5eb[_0x5c6d('0x7f')](_0x438e86)){const _0x7b1b36=_0x271173[_0x5c6d('0x59')][_0x5c6d('0x94')]['parent'][_0x5c6d('0x6')](_0x5c6d('0xa7')),_0x2a95dc=_0x159f9c['get'](_0x7b1b36)||new Set();_0x2a95dc[_0x5c6d('0x8f')](_0x7ef5eb['get'](_0x438e86)['userId']),_0x159f9c['set'](_0x7b1b36,_0x2a95dc);}}_0x3efe2a=_0x542964[_0x5c6d('0x9c')][_0x49d1de];for(const _0x291e1d of _0x3efe2a)if(_0x291e1d[_0x5c6d('0x59')]['is']('element',_0x5c6d('0xbc'))){const _0x5eeaca=this[_0x5c6d('0xec')](_0x291e1d),_0x2b4dbc=_0x291e1d[_0x5c6d('0x59')]['getAttribute'](_0x5eeaca);if(_0x291493[_0x5c6d('0x7f')](_0x2b4dbc)){const _0x2e3d3b=_0x291e1d[_0x5c6d('0x59')][_0x5c6d('0x94')]['parent'][_0x5c6d('0x6')](_0x5c6d('0xa7')),_0x32fab2=_0x159f9c[_0x5c6d('0x5b')](_0x2e3d3b)||new Set();_0x32fab2[_0x5c6d('0x8f')](_0x291493[_0x5c6d('0x5b')](_0x2b4dbc)[_0x5c6d('0x3c')]),_0x159f9c['set'](_0x2e3d3b,_0x32fab2);}}for(const _0x434d90 of _0x159f9c[_0x5c6d('0x66')]())(_0x7ef5eb[_0x5c6d('0x7f')](_0x434d90)||_0x291493[_0x5c6d('0x7f')](_0x434d90))&&_0x159f9c[_0x5c6d('0x45')](_0x434d90);}for(const _0x22bdfa of _0x5c3008){const _0x37e0ae=_0x542964[_0x5c6d('0xc3')][_0x22bdfa];let _0x398451=null,_0x4f505a=null;for(const _0x4bf46d of _0x37e0ae){const _0x564e7f=this['_getVidAttributeName'](_0x4bf46d),_0x44ac76=_0x4bf46d[_0x5c6d('0x59')]['getAttribute'](_0x564e7f),_0x2fc53b=_0x159f9c[_0x5c6d('0x5b')](_0x44ac76);_0x2fc53b&&_0x5c6d('0x79')==_0x4bf46d['type']&&(_0x398451=Array['from'](_0x2fc53b)[0x0],_0x4f505a=_0x4bf46d[_0x5c6d('0x59')][_0x5c6d('0x6')](_0x5c6d('0x1'))),_0x398451&&(_0x291493[_0x5c6d('0x69')](_0x44ac76,{'userId':_0x398451}),_0x7ef5eb['set'](_0x44ac76,{'userId':_0x398451})),_0x44ac76==_0x4f505a&&(_0x398451=null,_0x4f505a=null);}}const _0x55eb86={},_0x3f1488=new Set();for(const _0x1d0c1b of _0x5c3008){const _0xc571e8=_0xab11c8[_0x5c6d('0x9c')][_0x1d0c1b],_0x532b7d=_0xab11c8[_0x5c6d('0xc3')][_0x1d0c1b];for(const {userId:_0x538a43}of this[_0x5c6d('0x91')][_0x5c6d('0x7b')]())null!==_0x538a43&&_0x3f1488[_0x5c6d('0x8f')](_0x538a43);this[_0x5c6d('0xb8')](_0x532b7d,_0x542964['insertions'][_0x1d0c1b],_0x7ef5eb,_0x5c6d('0x84'),_0x3f1488),this[_0x5c6d('0xb8')](_0xc571e8,_0x542964[_0x5c6d('0x9c')][_0x1d0c1b],_0x291493,_0x5c6d('0x95'),_0x3f1488),_0x55eb86[_0x1d0c1b]={'insertions':this[_0x5c6d('0x68')](_0x532b7d),'deletions':this['_prepareViewToSave'](_0xc571e8)};}return{'diffData':_0x55eb86,'authorsIds':Array[_0x5c6d('0x8e')](_0x3f1488)};}['_processRootBeforeSave'](_0x30aa81){for(const [,_0x1ee6dc]of _0x30aa81[_0x5c6d('0x34')]){const _0x40ff34=_0x1ee6dc[_0x5c6d('0xa9')][_0x5c6d('0xdd')]()['filter'](_0xf5a855=>_0x5c6d('0xbc')==_0xf5a855[_0x5c6d('0x42')]);for(const _0x339341 of _0x40ff34)0x1==_0x339341['childCount']&&_0x339341[_0x5c6d('0x6d')](0x0)['is'](_0x5c6d('0xa6'),'paragraph')&&_0x339341['getChild'](0x0)[_0x5c6d('0x30')](_0x5c6d('0xa'),!0x0);}}['_prepareViewToSave'](_0x6c4154){this[_0x5c6d('0x33')](_0x6c4154);const _0xc218c5=this[_0x5c6d('0x49')][_0x5c6d('0xe0')][_0x5c6d('0x63')](_0x6c4154,{}),_0x43988c=Array[_0x5c6d('0x8e')](_0xc218c5[_0x5c6d('0xb2')]())['map'](_0xbaaa8d=>this[_0x5c6d('0x40')](_0xbaaa8d));return JSON[_0x5c6d('0xda')](_0x43988c);}[_0x5c6d('0x40')](_0x115eaf){if(_0x115eaf['is'](_0x5c6d('0xf0')))return _0x115eaf['data'];return{'type':Object[_0x5c6d('0x66')](V)['find'](_0x29bc5f=>_0x115eaf instanceof V[_0x29bc5f]),'name':_0x115eaf[_0x5c6d('0x42')],'attributes':Array[_0x5c6d('0x8e')](_0x115eaf[_0x5c6d('0x36')]()),'children':Array[_0x5c6d('0x8e')](_0x115eaf[_0x5c6d('0xb2')]())[_0x5c6d('0x21')](_0x3dcf4b=>this[_0x5c6d('0x40')](_0x3dcf4b))};}[_0x5c6d('0xb8')](_0x571ebd,_0x2c6fa3,_0x359936,_0x23edb9,_0x2b49e6){let _0x1d664f=null,_0x1b7630=null,_0x1bd654=0x0;const _0x12ddca=this[_0x5c6d('0x49')]['model'];for(let _0x4bfb53=0x0;_0x4bfb53<_0x2c6fa3[_0x5c6d('0x88')];_0x4bfb53++){const _0x2efcc0=this[_0x5c6d('0xec')](_0x2c6fa3[_0x4bfb53]),_0x439116=_0x2c6fa3[_0x4bfb53][_0x5c6d('0x59')]['getAttribute'](_0x2efcc0),_0x280d75=_0x359936['get'](_0x439116),_0x41b6ee=_0x4bfb53==_0x2c6fa3[_0x5c6d('0x88')]-0x1;(!_0x1d664f&&_0x280d75&&(_0x1d664f=_0x280d75,_0x1b7630=_0x2c6fa3[_0x4bfb53]),_0x1d664f&&(!_0x280d75||_0x280d75[_0x5c6d('0x3c')]!=_0x1d664f[_0x5c6d('0x3c')]))&&(_0xa6794b(_0x280d75,j(_0x1b7630,_0x571ebd,_0x12ddca),j(_0x2c6fa3[_0x4bfb53],_0x571ebd,_0x12ddca)),_0x1d664f=_0x280d75||null,_0x1b7630=_0x280d75?_0x2c6fa3[_0x4bfb53]:null),_0x1d664f&&_0x41b6ee&&_0xa6794b(_0x280d75,j(_0x1b7630,_0x571ebd,_0x12ddca),B(_0x2c6fa3[_0x4bfb53],_0x571ebd,_0x12ddca));}function _0xa6794b(_0x36b51a,_0x56bc44,_0x226d0b){const _0xd94df9=_0x1d664f[_0x5c6d('0x3c')],_0x4ac696=_0x5c6d('0x57')+_0x23edb9+':'+_0xd94df9+':'+_0x1bd654++,_0x4b828b=_0x12ddca[_0x5c6d('0x46')](_0x56bc44,_0x226d0b);_0x571ebd[_0x5c6d('0x34')]['set'](_0x4ac696,_0x4b828b),null!==_0xd94df9&&_0x2b49e6['add'](_0xd94df9);}}[_0x5c6d('0xec')](_0x5554ad){switch(_0x5554ad[_0x5c6d('0xe5')]){case _0x5c6d('0x79'):return'vid_start';case _0x5c6d('0xde'):return _0x5c6d('0x1');default:return _0x5c6d('0xbe');}}[_0x5c6d('0x1b')](_0x32a910,_0xf66555){_0x32a910[_0x5c6d('0x29')]=null;for(const _0x2df786 in _0x32a910){if(_0x32a910[_0x2df786]instanceof _0x302755){const _0x29d1a9=_0xf66555['get'](_0x32a910[_0x2df786][_0x5c6d('0x98')]['rootName']);_0x32a910[_0x2df786]=this[_0x5c6d('0x7e')](_0x32a910[_0x2df786],_0x29d1a9);}if(_0x32a910[_0x2df786]instanceof _0x4bafe2){const _0x6b292=_0xf66555[_0x5c6d('0x5b')](_0x32a910[_0x2df786][_0x5c6d('0x98')][_0x5c6d('0xa2')]);_0x32a910[_0x2df786]=this[_0x5c6d('0x23')](_0x32a910[_0x2df786],_0x6b292);}}_0x32a910['root']&&(_0x32a910[_0x5c6d('0x98')]=_0xf66555[_0x5c6d('0x5b')](_0x32a910[_0x5c6d('0x98')][_0x5c6d('0xa2')]));}[_0x5c6d('0x23')](_0x13641d,_0x44c8c3){return this['editor'][_0x5c6d('0x26')][_0x5c6d('0x46')](this[_0x5c6d('0x7e')](_0x13641d[_0x5c6d('0xa9')],_0x44c8c3),this[_0x5c6d('0x7e')](_0x13641d[_0x5c6d('0xd3')],_0x44c8c3));}[_0x5c6d('0x7e')](_0x3e2958,_0x5a7fdb){return this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x62')](_0x5a7fdb,_0x3e2958[_0x5c6d('0x70')],_0x3e2958[_0x5c6d('0xa1')]);}[_0x5c6d('0x3b')](_0x1e714c){const _0x5c7e45=this['_idsRoots'][_0x5c6d('0x5b')](_0x1e714c[_0x5c6d('0x92')][_0x5c6d('0x98')]['rootName']),_0xfa925b=this[_0x5c6d('0x7e')](_0x1e714c[_0x5c6d('0x92')],_0x5c7e45),_0x2b97ca=null===_0x1e714c['_authorId']?null:_0x1e714c[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')]['get']('Users')['me']['id'],_0x1d1032=_0xfa925b['parent'],_0x3c9f30=this[_0x5c6d('0x5')],_0x5b08d5=[];for(const _0x5cad70 of _0x1e714c[_0x5c6d('0xaf')])if(_0x5cad70['is']('element'))_0x5b08d5['push'](this[_0x5c6d('0x44')](_0x5cad70));else for(let _0xc30caf=0x0;_0xc30caf<_0x5cad70['offsetSize'];_0xc30caf++)_0x5b08d5[_0x5c6d('0xe1')](new _0x32778a(_0x5c6d('0x17'),{'vid':this[_0x5c6d('0x5')]++}));const _0x1f4c7e=this[_0x5c6d('0x5')];for(let _0x4aa123=_0x3c9f30;_0x4aa123<_0x1f4c7e;_0x4aa123++)this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x4aa123,{'userId':_0x2b97ca});_0x1d1032['_insertChild'](_0xfa925b[_0x5c6d('0xb4')],_0x5b08d5);}[_0x5c6d('0x2b')](_0x27a67a){(_0x27a67a=this[_0x5c6d('0xb0')](_0x27a67a,this[_0x5c6d('0xae')]))[_0x5c6d('0xac')]();const _0x44aace=null===_0x27a67a[_0x5c6d('0xaa')]?null:_0x27a67a[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'))['me']['id'],_0x5111fc=_0x27a67a['getMovedRangeStart'](),_0x26998b=_0x5111fc[_0x5c6d('0x94')],_0x1730c0=_0x5111fc[_0x5c6d('0xb4')];!function _0x296c64(_0x5a5427,_0x505919,_0x3ffe13,_0x3b989b){for(let _0x1bb696=_0x3ffe13;_0x1bb696<_0x3b989b;_0x1bb696++){const _0x460bd7=_0x505919[_0x5c6d('0x6d')](_0x1bb696);_0x460bd7['is'](_0x5c6d('0xa6'),_0x5c6d('0x17'))?_0x5a5427[_0x5c6d('0x69')](_0x460bd7['getAttribute'](_0x5c6d('0xbe')),{'userId':_0x44aace}):(_0x5a5427[_0x5c6d('0x69')](_0x460bd7[_0x5c6d('0x6')]('vid_start'),{'userId':_0x44aace}),_0x296c64(_0x5a5427,_0x460bd7,0x0,_0x460bd7[_0x5c6d('0x37')]),_0x5a5427['set'](_0x460bd7['getAttribute']('vid_end'),{'userId':_0x44aace}));}}(this[_0x5c6d('0x5c')],_0x26998b,_0x1730c0,_0x1730c0+_0x27a67a[_0x5c6d('0x2e')]);}[_0x5c6d('0x65')](_0x301648){const _0x4e53ce=null===(_0x301648=this['_cloneOperation'](_0x301648,this['_idsRoots']))[_0x5c6d('0xaa')]?null:_0x301648[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'))['me']['id'],_0x122feb=_0x301648[_0x5c6d('0x8d')][_0x5c6d('0x94')],_0x35d225=_0x301648[_0x5c6d('0x22')][_0x5c6d('0x94')],_0x559904=_0x122feb['getAttribute'](_0x5c6d('0x1')),_0x376c0f=_0x35d225['getAttribute']('vid_start');_0x122feb['_setAttribute'](_0x5c6d('0x1'),_0x35d225['getAttribute']('vid_end')),_0x35d225[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x559904),this['_touched'][_0x5c6d('0x69')](_0x376c0f,{'userId':_0x4e53ce}),this['_touched'][_0x5c6d('0x69')](_0x559904,{'userId':_0x4e53ce}),_0x301648[_0x5c6d('0xac')]();}[_0x5c6d('0xdf')](_0x109ffb){const _0x485705=null===(_0x109ffb=this[_0x5c6d('0xb0')](_0x109ffb,this[_0x5c6d('0xae')]))[_0x5c6d('0xaa')]?null:_0x109ffb[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')]['get']('Users')['me']['id'],_0x34b17c=_0x109ffb[_0x5c6d('0xe9')],_0x143fc5=_0x109ffb[_0x5c6d('0x85')][_0x5c6d('0x94')];_0x109ffb[_0x5c6d('0xac')]();const _0x1ae10a=_0x143fc5[_0x5c6d('0x6')](_0x5c6d('0x1')),_0x146f9c=_0x109ffb[_0x5c6d('0x6c')][_0x5c6d('0xb')];if(_0x34b17c){const _0x5b2771=_0x146f9c[_0x5c6d('0x6')](_0x5c6d('0x1')),_0x4aa338=_0x143fc5[_0x5c6d('0x6')](_0x5c6d('0x1'));_0x143fc5[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x5b2771),_0x146f9c[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x4aa338),this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x143fc5[_0x5c6d('0x6')](_0x5c6d('0x1')),{'userId':_0x485705}),this[_0x5c6d('0x5c')]['set'](_0x146f9c[_0x5c6d('0x6')](_0x5c6d('0xa7')),{'userId':_0x485705});}else{const _0x2de100=this[_0x5c6d('0x5')]++,_0x5f3230=this[_0x5c6d('0x5')]++;_0x143fc5[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x2de100),_0x146f9c['_setAttribute']('vid_start',_0x5f3230),_0x146f9c[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x1ae10a),this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x2de100,{'userId':_0x485705}),this['_touched']['set'](_0x5f3230,{'userId':_0x485705});}}[_0x5c6d('0x7d')](_0x3b00f6){if(!_0x3b00f6[_0x5c6d('0x67')])return;const _0x2b2a84=(_0x3b00f6=this[_0x5c6d('0xb0')](_0x3b00f6,this['_diffRoots']))['oldRange']?_0x3b00f6[_0x5c6d('0x9b')]['root']:null,_0x2b9d50=_0x3b00f6[_0x5c6d('0xcc')]?_0x3b00f6[_0x5c6d('0xcc')][_0x5c6d('0x98')]:null;_0x2b2a84&&this[_0x5c6d('0x89')][_0x5c6d('0x45')](_0x3b00f6[_0x5c6d('0x42')]),_0x2b9d50&&this['_markers'][_0x5c6d('0x69')](_0x3b00f6[_0x5c6d('0x42')],_0x3b00f6['newRange'][_0x5c6d('0x47')]());const _0xccd8e6=null===_0x3b00f6['_authorId']?null:_0x3b00f6[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')]('Users')['me']['id'],_0x41ef6b=_0x3b00f6[_0x5c6d('0x42')];if(!this[_0x5c6d('0x91')][_0x5c6d('0x7f')](_0x41ef6b))return void this[_0x5c6d('0x91')][_0x5c6d('0x69')](_0x41ef6b,{'range':_0x3b00f6[_0x5c6d('0x9b')],'userId':_0xccd8e6});const _0x3b25a0=this[_0x5c6d('0x91')][_0x5c6d('0x5b')](_0x41ef6b),_0x49185c=_0x3b25a0[_0x5c6d('0x99')],_0x36bc64=_0x3b00f6[_0x5c6d('0xcc')];null==_0x49185c&&null==_0x36bc64||_0x49185c&&_0x36bc64&&_0x49185c[_0x5c6d('0x9e')](_0x36bc64)?this[_0x5c6d('0x91')]['delete'](_0x3b00f6['name']):_0x3b25a0['userId']=_0xccd8e6;}}function J(_0x2aa62e){const _0x2962c8=new _0x5c8a1f();_0x2962c8[_0x5c6d('0xa2')]=_0x2aa62e[_0x5c6d('0xa2')];for(const _0x293abb of _0x2aa62e['getChildren']()){const _0x19b08f=_0x293abb[_0x5c6d('0x3')](!0x0);_0x2962c8['_appendChild'](_0x19b08f);}return _0x2962c8;}function j(_0x568906,_0x47672a,_0x599a82){const _0x1b5541=_0x5c6d('0xde')==_0x568906['type']?_0x599a82[_0x5c6d('0xb3')](_0x568906[_0x5c6d('0x59')],'end'):_0x599a82[_0x5c6d('0x97')](_0x568906[_0x5c6d('0x59')]);return _0x1b5541[_0x5c6d('0x98')]=_0x47672a,_0x1b5541;}function B(_0x279138,_0x53dc4b,_0x36ff34){const _0x3fe4a7=_0x5c6d('0x79')==_0x279138[_0x5c6d('0xe5')]?_0x36ff34[_0x5c6d('0xb3')](_0x279138[_0x5c6d('0x59')],0x0):_0x36ff34['createPositionAfter'](_0x279138[_0x5c6d('0x59')]);return _0x3fe4a7[_0x5c6d('0x98')]=_0x53dc4b,_0x3fe4a7;}
|