@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230909.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30eb=['position','_handleMergeOperation','vid_start','vid_end','_baseRoots','sourcePosition','type','_startingVersion','_loadRevisionData','getRootNames','max','getRange','some','insertion','tableCell','text','isEqual','_fixOperation','revision:','buildRevisionData','upcast','getData','reverse','_lastTo','children','_markers','_createCurrentRevision','_diffRoots','_generateTape','documentFragment','editor-initial-data-replaced-with-revision-data','newRange','howMany','map','pluginName','_makeRevision','_makeIdsRoot','_copyMarkers','root','has','createPositionAfter','reinsert','collaboration.channelId','find','_loadedStateData','conversion','_lastFrom','key','attributesBefore','toModel','_handleRootAttributeOperation','insert','_applyOperations','_addPendingAction','shift','delete','_handleSplitOperation','splitPosition','_handleMarkerOperation','parent','clear','bind','for','Initial\x20revision','_isPendingUpdate','source','userId','merge','model','default','elementEnd','getRevisionDocumentData','vid','_handleMoveOperation','_getPreviousFrom','_clone','attributesAfter','config','graveyardPosition','getUser','_idsRoots','_createInitialRevision','_findInsertionIndex','_handleInsertOperation','RealTimeCollaborationClient','markerToData','update','_bufferUpdate','element','getChild','slice','document','getWalker','rootName','markers','end','_touched','view','getRevisions','toVersion','_touchedMarkers','editor','_authorId','_setAttribute','_startingRevisionId','start','_saveMetaData','initialData','Users','clone','paragraph','createPositionBefore','_getVidAttributeName','_getFromVersion','currentRevision','_getState','getAncestors','offsetSize','oldRange','$graveyard','add','getAttributes','marker','_cloneOperation','includes','startsWith','repository','dataDowncast','getChildren','_reset','authorsIds','afterInit','size','move','roots','revisionHistory.resumeUnsavedRevision','parse','baseVersion','createdAt','childCount','NEGATIVE_INFINITY','_bufferedUpdates','creatorId','_getViewJson','_loadState','revision-start','newValue','insertions','history','resolve','_insertChild','creator','getCurrentRevisionId','affectsData','isAttached','_savedMetaData','from','finally','offset','targetPosition','marked','PENDING_ACTION_REVISION_HISTORY','_removeMetaData','getRevision','_isAttached','_touchedRoots','previousPosition','nodes','attributes','_pendingAction','sort','RevisionsRepository','deletions','_processRootBeforeSave','stickiness','_revisionDataBuilder','Empty\x20document','createPositionFromPath','_getBaseVids','_diffRootsAttributes','_baseIdsRoots','_source','getNodeByPath','toData','getMovedRangeStart','processor','RevisionTracker','useFillerType','isEnabled','createPositionAt','_replaceEditorDataWithRevisionData','_calculateMetaData','addRevision','initial','then','loadState','_removePendingAction','version','nodeAfter','get','$text','item','_handleRootOperation','removeRootAttribute','plugins','authors','fromVersion','name','editing','rootsAttributes','revision-end','isAdd','addRevisionData','setRevisionData','push','_execute','_continueCurrentRevision','elementStart','length','_fixRange','_fixPosition','_update','detachRoot','values','addRootAttribute','_prepareViewToSave','getAttribute','_handleOperation','keys','set','adapter','_initialRevisionId','attachChange','locale','getRevisionRootsAttributes','getLatestVersion','split','forEach','sendBufferedUpdates','_revisionId','trim','_makeModelFromViewString','diffData','init','stringify','_baseRootsAttributes','string','dataToMarker','keepParagraph','reInit','getTransformedByOperation','requires','isReady','data','filter','_markChanges','_removeRevisionMarkers','path'];(function(_0x2d0f78,_0x30eb33){const _0x18a543=function(_0x7240d4){while(--_0x7240d4){_0x2d0f78['push'](_0x2d0f78['shift']());}};_0x18a543(++_0x30eb33);}(_0x30eb,0x121));const _0x18a5=function(_0x2d0f78,_0x30eb33){_0x2d0f78=_0x2d0f78-0x0;let _0x18a543=_0x30eb[_0x2d0f78];return _0x18a543;};import{Users as _0x1a58e2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xe77ae8,PendingActions as _0xe7ecc3}from'ckeditor5/src/core';import{logWarning as _0x3519c4,uid as _0x7d457c}from'ckeditor5/src/utils';import{Position as _0x170f37,Range as _0x287ef,Element as _0x5f4c69,DocumentFragment as _0x1d8fd3,ViewText as _0x585615,ViewElement as _0x1e0a6b,ViewContainerElement as _0x1c2131,ViewAttributeElement as _0x4710a6,ViewEmptyElement as _0x35c355,ViewRawElement as _0x3b2455,ViewUIElement as _0x32f24e,ViewDocumentFragment as _0x3a7ce5}from'ckeditor5/src/engine';import _0x30b6b3 from'./revisionsrepository';import{getTranslation as _0x18fdb9}from'./utils/common-translations';import{cloneDeep as _0x158255,isEqual as _0x50f222}from'lodash-es';const B={'c':_0x1c2131,'a':_0x4710a6,'e':_0x35c355,'r':_0x3b2455,'u':_0x32f24e};export default class l extends _0xe77ae8{static get[_0x18a5('0x3')](){return _0x18a5('0x9b');}static get[_0x18a5('0xdc')](){return[_0x1a58e2,_0x30b6b3,_0xe7ecc3];}constructor(_0xa791a0){super(_0xa791a0),this[_0x18a5('0xc7')]=null,this['currentRevision']=null,this[_0x18a5('0x90')]=new H(this[_0x18a5('0x46')]),this[_0x18a5('0xc8')]=this['editor'][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'))||_0x18a5('0xa2'),this['_bufferedUpdates']=new Map(),this[_0x18a5('0xd')]=null;const _0x40e7ba=_0x7d457c();this[_0x18a5('0x96')]={'history':this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x75')],'getLatestVersion':()=>Promise[_0x18a5('0x76')](this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0xa6')]),'getCurrentRevisionId':()=>_0x40e7ba},this[_0x18a5('0xc6')](_0x18a5('0xdd'),!0x1),this['set'](_0x18a5('0x9d'),!0x0),this[_0x18a5('0xc6')](_0x18a5('0x21'),!0x1),this[_0x18a5('0x46')][_0x18a5('0x2e')]['define'](_0x18a5('0x68'),!0x0),this[_0x18a5('0x46')][_0x18a5('0xe')][_0x18a5('0x1f')](_0x18a5('0xf7'))[_0x18a5('0xd8')]({'view':'revision'});}[_0x18a5('0xd4')](){this[_0x18a5('0x5f')]=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x8c')),this['_setConversion'](),this[_0x18a5('0x46')]['data']['on']('ready',()=>{const _0x12ced4=this[_0x18a5('0x5f')]['getRevision'](0x0),_0x2ed20b=_0x12ced4&&null===_0x12ced4[_0x18a5('0x78')]?_0x12ced4:null;if(this[_0x18a5('0xb9')]=!!_0x2ed20b&&this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0x68')),this['editor'][_0x18a5('0xad')]['has'](_0x18a5('0x35'))){const _0xb583fe=this[_0x18a5('0x96')][_0x18a5('0x79')](),_0x3cc9bf=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0xb583fe);if(_0x3cc9bf)this[_0x18a5('0xea')]=_0x3cc9bf[_0x18a5('0xaf')],this['_continueCurrentRevision']=!0x1;else{const _0x1b5892=this[_0x18a5('0x96')]['history']['_operations'][_0x18a5('0xc')](_0x36b31e=>!_0x36b31e['_isInit']),_0x383e6=_0x1b5892?_0x1b5892[_0x18a5('0x6a')]:this[_0x18a5('0x96')][_0x18a5('0x75')][_0x18a5('0xa6')];_0x12ced4?(_0x12ced4[_0x18a5('0x44')]<_0x383e6&&_0x12ced4['_update']({'toVersion':_0x383e6}),this[_0x18a5('0xb9')]?(this[_0x18a5('0x96')][_0x18a5('0x79')]=()=>_0x2ed20b['id'],this[_0x18a5('0xea')]=_0x2ed20b[_0x18a5('0xaf')]):(this['_startingVersion']=_0x12ced4[_0x18a5('0x44')],this[_0x18a5('0xb9')]=!0x1)):(this[_0x18a5('0xea')]=_0x383e6,this[_0x18a5('0xb9')]=!0x1);}}else _0x2ed20b&&(this[_0x18a5('0x46')]['model']['document']['history'][_0x18a5('0xa6')]=Math[_0x18a5('0xed')](_0x2ed20b[_0x18a5('0x44')],this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x75')][_0x18a5('0xa6')]),_0x2ed20b[_0x18a5('0xaf')]===_0x2ed20b['toVersion']?(0x0!==_0x2ed20b[_0x18a5('0xaf')]&&(this[_0x18a5('0x96')][_0x18a5('0x79')]=()=>_0x2ed20b['id']),this[_0x18a5('0xb9')]=!0x1):this[_0x18a5('0xb9')]&&(this[_0x18a5('0x96')]['getCurrentRevisionId']=()=>_0x2ed20b['id'],this[_0x18a5('0xea')]=_0x2ed20b['fromVersion'])),this[_0x18a5('0xb9')]||(this['_startingVersion']=this['editor']['model']['document'][_0x18a5('0xa6')]);this[_0x18a5('0x90')][_0x18a5('0xd4')](this[_0x18a5('0x96')][_0x18a5('0x75')]),this['_createInitialRevision'](this[_0x18a5('0xea')]),this[_0x18a5('0xfd')](this[_0x18a5('0xea')]),this[_0x18a5('0xc7')]&&this[_0x18a5('0xcf')]();}),this[_0x18a5('0x1e')](_0x18a5('0xdd'))['to'](this,_0x18a5('0x21'),_0x571211=>!_0x571211);}async[_0x18a5('0x64')](){if(this[_0x18a5('0x5f')][_0x18a5('0xbb')]>0x0){const _0x4ea8d0=this[_0x18a5('0x5f')][_0x18a5('0x84')](0x0),_0x4614a6=await this[_0x18a5('0x28')](_0x4ea8d0),_0x484063=await this[_0x18a5('0xcb')](_0x4ea8d0);this[_0x18a5('0x9f')](_0x4614a6,_0x484063);}}['setSource'](_0x3693f2){this[_0x18a5('0x96')]=_0x3693f2;}async[_0x18a5('0x37')](){const _0x3de340=await this[_0x18a5('0x96')]['getLatestVersion']();if(_0x3de340>this[_0x18a5('0x53')]['toVersion']){await this[_0x18a5('0x71')]();const _0x5a7770=this[_0x18a5('0xf6')]({'revision':this[_0x18a5('0x53')],'to':_0x3de340});_0x5a7770['authors']=_0x5a7770[_0x18a5('0x63')]['map'](_0x80a53b=>this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')]('Users')[_0x18a5('0x30')](_0x80a53b)),this[_0x18a5('0x53')][_0x18a5('0xbe')](_0x5a7770);}}async[_0x18a5('0x71')](){this[_0x18a5('0xb9')]&&!this['_loadedStateData']&&(await this[_0x18a5('0xeb')](this[_0x18a5('0x53')]),this[_0x18a5('0x90')][_0x18a5('0xa4')](this[_0x18a5('0x53')]),this['_loadedStateData']={'fromVersion':this[_0x18a5('0x53')]['fromVersion'],'authors':this[_0x18a5('0x53')]['authors']['slice']()});}async['saveRevision'](_0xd796b2={},_0x16bbe6=null){const _0x328557=[];await this[_0x18a5('0x71')](),this['_continueCurrentRevision']=!0x1,_0x16bbe6>this['currentRevision'][_0x18a5('0x44')]&&(_0x16bbe6=null),null===_0x16bbe6&&(_0x16bbe6=await this[_0x18a5('0x96')][_0x18a5('0xcc')]());const _0x2bc665=this[_0x18a5('0x52')](_0x16bbe6),_0x4800ee=this['buildRevisionData']({'from':_0x2bc665,'to':_0x16bbe6});if(this[_0x18a5('0x53')]['toVersion']<_0x16bbe6){const _0x275de9=this[_0x18a5('0xf6')]({'revision':this[_0x18a5('0x53')],'from':_0x16bbe6,'to':_0x16bbe6});_0x275de9['authors']=[],_0x275de9[_0x18a5('0x63')]=[],_0x275de9['id']=this[_0x18a5('0x53')]['id'],this[_0x18a5('0x53')][_0x18a5('0xbe')](_0x275de9,!0x0),delete _0x275de9[_0x18a5('0xae')],_0x328557[_0x18a5('0xb7')](_0x275de9);}_0xd796b2[_0x18a5('0x6f')]=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0xd796b2[_0x18a5('0xb0')]=_0xd796b2[_0x18a5('0xb0')]||null,_0xd796b2['id']=_0xd796b2['id']||_0x7d457c(),_0xd796b2={..._0xd796b2,..._0x4800ee};const _0x526c3b=this[_0x18a5('0xb5')](_0xd796b2);_0x328557['push'](_0xd796b2);const _0x1f99b5=this[_0x18a5('0x5f')]['getIndex'](_0x526c3b);if(0x0!==_0x1f99b5){const _0x4ce88e=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0x1f99b5-0x1);if(_0x4ce88e[_0x18a5('0xaf')]!==_0x16bbe6){const _0x45968a=this[_0x18a5('0x90')][_0x18a5('0xf8')](_0x16bbe6,_0x4ce88e[_0x18a5('0x44')]),_0x54a00f={'id':_0x4ce88e['id'],'diffData':_0x45968a[_0x18a5('0xd3')],'authorsIds':_0x45968a[_0x18a5('0x63')],'authors':_0x45968a[_0x18a5('0x63')][_0x18a5('0x2')](_0x4055d5=>this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')](_0x18a5('0x4d'))[_0x18a5('0x30')](_0x4055d5)),'fromVersion':_0x16bbe6};_0x4ce88e===this['currentRevision']&&(_0x54a00f[_0x18a5('0x6b')]=new Date(_0xd796b2[_0x18a5('0x6b')]['getTime']()+0xa)),_0x4ce88e[_0x18a5('0xbe')](_0x54a00f,!0x0),delete _0x54a00f[_0x18a5('0xae')],_0x328557['push'](_0x54a00f);}}if(this['adapter']){for(const _0x2fe128 of _0x328557)this[_0x18a5('0x38')](_0x2fe128['id'],_0x2fe128,!0x0);this['sendBufferedUpdates']();}return _0x526c3b;}[_0x18a5('0xb5')](_0x363581){const _0x5345a8=this['repository']['createRevision'](_0x363581);return this['adapter']&&_0x5345a8['on'](_0x18a5('0xbe'),(_0x1ceaa5,_0x26f3fa,_0x19bfff)=>{_0x19bfff||(this[_0x18a5('0x38')](_0x26f3fa['id'],_0x26f3fa,!0x0),this[_0x18a5('0xcf')]());}),this[_0x18a5('0x5f')][_0x18a5('0xa1')](_0x5345a8,this[_0x18a5('0x33')](_0x5345a8)),_0x5345a8;}async[_0x18a5('0x28')](_0x33c7d7){await this[_0x18a5('0xeb')](_0x33c7d7);const _0x30e16f={};for(const _0x2dbce4 in _0x33c7d7['diffData']){if(_0x33c7d7['diffData'][_0x2dbce4][_0x18a5('0xc9')]&&!_0x33c7d7[_0x18a5('0xd3')][_0x2dbce4][_0x18a5('0xc9')][_0x18a5('0x7b')])continue;const _0x4ad4a8=this[_0x18a5('0xe1')](JSON[_0x18a5('0x69')](_0x33c7d7[_0x18a5('0xd3')][_0x2dbce4][_0x18a5('0x74')])),_0x1d4242=this[_0x18a5('0x46')][_0x18a5('0xb1')][_0x18a5('0x42')][_0x18a5('0x3c')],_0x5641b0=new _0x3a7ce5(_0x1d4242,_0x4ad4a8[_0x18a5('0x2')](_0x21a7ee=>J(_0x21a7ee,this['editor'])));this['editor'][_0x18a5('0xde')][_0x18a5('0x9a')]['useFillerType'](_0x18a5('0x81')),_0x30e16f[_0x2dbce4]=this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x9a')][_0x18a5('0x98')](_0x5641b0),this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x9a')][_0x18a5('0x9c')](_0x18a5('0x26'));}return _0x30e16f;}async[_0x18a5('0xcb')](_0x315f9e){await this['_loadRevisionData'](_0x315f9e);const _0x443fbc={};for(const _0x30ca2b in _0x315f9e[_0x18a5('0xd3')])_0x315f9e[_0x18a5('0xd3')][_0x30ca2b][_0x18a5('0xc9')]&&!_0x315f9e['diffData'][_0x30ca2b][_0x18a5('0xc9')][_0x18a5('0x7b')]||(_0x443fbc[_0x30ca2b]=_0x315f9e[_0x18a5('0xd3')][_0x30ca2b][_0x18a5('0x2d')]||{});return _0x443fbc;}['sendBufferedUpdates'](){if(0x0===this[_0x18a5('0x6e')][_0x18a5('0x65')])return;if(this[_0x18a5('0x21')])return;let _0x3bfb87=Array['from'](this[_0x18a5('0x6e')][_0x18a5('0xc0')]());this[_0x18a5('0x6e')]['clear']();for(let _0x268fe2=0x0;_0x268fe2<_0x3bfb87[_0x18a5('0xbb')];_0x268fe2++){const _0x30f0d2=_0x3bfb87[_0x268fe2];let _0x210604=!0x1;for(const _0x206708 of Object[_0x18a5('0xc5')](_0x30f0d2))void 0x0===_0x30f0d2[_0x206708]?delete _0x30f0d2[_0x206708]:'id'!==_0x206708&&(_0x210604=!0x0);_0x210604||(_0x3bfb87[_0x268fe2]=null);}if(_0x3bfb87=_0x3bfb87[_0x18a5('0xdf')](_0x1c733f=>null!==_0x1c733f),!_0x3bfb87[_0x18a5('0xbb')])return;for(let _0x1ec269=0x0;_0x1ec269<_0x3bfb87[_0x18a5('0xbb')];_0x1ec269++){const _0x2c078c=_0x3bfb87[_0x1ec269];void 0x0!==_0x2c078c[_0x18a5('0xaf')]&&void 0x0===_0x2c078c[_0x18a5('0x44')]&&(_0x2c078c['toVersion']=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0x2c078c['id'])[_0x18a5('0x44')]),void 0x0!==_0x2c078c[_0x18a5('0x44')]&&void 0x0===_0x2c078c[_0x18a5('0xaf')]&&(_0x2c078c['fromVersion']=this[_0x18a5('0x5f')]['getRevision'](_0x2c078c['id'])[_0x18a5('0xaf')]);}const _0x1fc9a1=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'));this[_0x18a5('0x21')]=!0x0,this['_addPendingAction'](),this[_0x18a5('0xc7')]['updateRevisions'](_0x3bfb87,_0x1fc9a1)[_0x18a5('0x7e')](()=>{this[_0x18a5('0x21')]=!0x1;})[_0x18a5('0xa3')](_0x210ae9=>{if(_0x210ae9)for(const _0xc7f5d3 of _0x210ae9)this[_0x18a5('0xb6')]({'id':_0xc7f5d3['id'],'createdAt':_0xc7f5d3[_0x18a5('0x6b')]});this[_0x18a5('0xa5')](),this[_0x18a5('0xcf')]();});}[_0x18a5('0x9f')](_0x16029e,_0x1fbb6a){let _0x29a2bc=this[_0x18a5('0x46')]['config'][_0x18a5('0xa8')](_0x18a5('0x4c')),_0x3d5ffa=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb2'));if(void 0x0===_0x29a2bc){_0x29a2bc={};for(const _0x27db89 of this['editor'][_0x18a5('0x25')][_0x18a5('0x3c')]['getRootNames']())_0x29a2bc[_0x27db89]='';}if(_0x18a5('0xd7')==typeof _0x29a2bc&&(_0x29a2bc={'main':_0x29a2bc}),void 0x0===_0x3d5ffa){_0x3d5ffa={};for(const _0x5acff8 of this[_0x18a5('0x46')][_0x18a5('0x25')]['document'][_0x18a5('0xec')]())_0x3d5ffa[_0x5acff8]={};}let _0x31612d=!0x1;const _0x26eab6=Object[_0x18a5('0xc5')](_0x29a2bc),_0x44a3c9=Object['keys'](_0x16029e);for(const _0x36507e of _0x26eab6){if(_0x29a2bc[_0x36507e]!==_0x16029e[_0x36507e]&&''!==_0x29a2bc[_0x36507e][_0x18a5('0xd1')]()){_0x31612d=!0x0;break;}if(!_0x50f222(_0x3d5ffa[_0x36507e],_0x1fbb6a[_0x36507e])&&Object[_0x18a5('0xc5')](_0x3d5ffa[_0x36507e])[_0x18a5('0xbb')]>0x0){_0x31612d=!0x0;break;}}_0x31612d||(_0x31612d=_0x44a3c9[_0x18a5('0xef')](_0x327ffb=>!this['editor']['model'][_0x18a5('0x3c')]['getRoot'](_0x327ffb))),_0x31612d&&_0x3519c4(_0x18a5('0x101'),{'editorData':_0x29a2bc,'editorRootsAttributes':_0x3d5ffa,'revisionData':_0x16029e,'revisionRootsAttributes':_0x1fbb6a}),this[_0x18a5('0x46')][_0x18a5('0x2e')]['set']('initialData',_0x16029e),this[_0x18a5('0x46')]['config'][_0x18a5('0xc6')](_0x18a5('0xb2'),_0x1fbb6a);}[_0x18a5('0x16')](){if(!this[_0x18a5('0x8a')]){const _0x5940b8=this[_0x18a5('0x46')][_0x18a5('0xad')]['get']('PendingActions');this[_0x18a5('0x8a')]=_0x5940b8['add'](_0x18fdb9(this[_0x18a5('0x46')]['locale'],_0x18a5('0x82')));}}[_0x18a5('0xa5')](){this[_0x18a5('0x8a')]&&(this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')]('PendingActions')['remove'](this[_0x18a5('0x8a')]),this['_pendingAction']=null);}[_0x18a5('0x33')](_0x1fb6d5){const _0x589f27=this[_0x18a5('0x5f')]['getRevisions']();_0x589f27[_0x18a5('0xf9')]();let _0xbd5733=0x0;for(;_0xbd5733<_0x589f27[_0x18a5('0xbb')];){const _0x12bcb5=_0x589f27[_0xbd5733];if(_0x12bcb5===this[_0x18a5('0x53')]){_0xbd5733++;continue;}if(_0x12bcb5['id']===this[_0x18a5('0xc8')])break;const _0x105932=_0x1fb6d5[_0x18a5('0x44')]-_0x12bcb5['toVersion']||_0x1fb6d5[_0x18a5('0xaf')]-_0x12bcb5[_0x18a5('0xaf')];if(_0x105932>0x0)break;if(_0x105932<0x0)_0xbd5733++;else{if(!_0x1fb6d5[_0x18a5('0x78')]&&_0x12bcb5['creator'])break;if(_0x12bcb5[_0x18a5('0x78')]||!_0x1fb6d5[_0x18a5('0x78')]){if(_0x1fb6d5[_0x18a5('0x6b')]>_0x12bcb5[_0x18a5('0x6b')])break;_0xbd5733++;}else _0xbd5733++;}}return _0xbd5733;}[_0x18a5('0xb6')](_0x344043){const _0x4b7dc4=this['repository'][_0x18a5('0x84')](_0x344043['id']);if(_0x344043[_0x18a5('0x6b')]&&(_0x344043[_0x18a5('0x6b')]=new Date(_0x344043['createdAt'])),_0x344043['authorsIds']){const _0x215035=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'));_0x344043[_0x18a5('0xae')]=_0x344043[_0x18a5('0x63')][_0x18a5('0x2')](_0x3c119b=>_0x215035[_0x18a5('0x30')](_0x3c119b));}_0x4b7dc4[_0x18a5('0xbe')](_0x344043,!0x0);}[_0x18a5('0xf6')]({revision:_0x444822=null,from:_0x3f298f=null,to:_0x9d66e7=null}){_0x3f298f=null!==_0x3f298f?_0x3f298f:_0x444822[_0x18a5('0xaf')],_0x9d66e7=null!==_0x9d66e7?_0x9d66e7:_0x444822[_0x18a5('0x44')];const _0x1d99f7=this[_0x18a5('0x90')][_0x18a5('0xf8')](_0x3f298f,_0x9d66e7),_0x38d9c9={'diffData':_0x1d99f7[_0x18a5('0xd3')],'authorsIds':_0x1d99f7[_0x18a5('0x63')],'fromVersion':_0x3f298f,'toVersion':_0x9d66e7};if(!_0x444822||_0x9d66e7!==_0x444822[_0x18a5('0x44')]){const _0x1091e7=_0x9d66e7-0x1,_0x576fcf=this[_0x18a5('0x96')][_0x18a5('0x75')]['getOperation'](_0x1091e7);_0x38d9c9['createdAt']=_0x576fcf&&_0x576fcf[_0x18a5('0x6b')]||new Date();}if(this[_0x18a5('0xd')]&&_0x3f298f===this['_loadedStateData'][_0x18a5('0xaf')])for(const _0x7a0068 of this['_loadedStateData'][_0x18a5('0xae')])_0x38d9c9[_0x18a5('0x63')][_0x18a5('0x5d')](_0x7a0068['id'])||_0x38d9c9[_0x18a5('0x63')][_0x18a5('0xb7')](_0x7a0068['id']);return _0x38d9c9;}[_0x18a5('0xeb')](_0x2e852b){if(!_0x2e852b||_0x2e852b[_0x18a5('0xd3')])return Promise['resolve']();{const _0xd5b881=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'));return this['adapter']['getRevision']({'channelId':_0xd5b881,'revisionId':_0x2e852b['id']})[_0x18a5('0xa3')](_0x42cc6e=>{_0x2e852b[_0x18a5('0xd3')]=_0x42cc6e[_0x18a5('0xd3')];});}}[_0x18a5('0x38')](_0x1209cf,_0x34443b,_0x470e6c){if(this[_0x18a5('0x6e')][_0x18a5('0x8')](_0x1209cf)){const _0x26e5d8=this[_0x18a5('0x6e')][_0x18a5('0xa8')](_0x1209cf);_0x34443b=_0x470e6c?{..._0x26e5d8,..._0x34443b}:{..._0x34443b,..._0x26e5d8};}this['_bufferedUpdates'][_0x18a5('0xc6')](_0x1209cf,_0x34443b);}['_getFromVersion'](_0x216b9e){const _0x27ce6a=this['repository'][_0x18a5('0x43')]();_0x27ce6a[_0x18a5('0xf9')](),_0x27ce6a[_0x18a5('0x17')]();const _0x1bf070=_0x27ce6a[_0x18a5('0xc')](_0x42474b=>_0x42474b[_0x18a5('0x44')]<=_0x216b9e)[_0x18a5('0x44')];return _0x1bf070<this[_0x18a5('0xea')]?this[_0x18a5('0xea')]:_0x1bf070;}[_0x18a5('0x32')](_0x240e2e){const _0x3fb0f7=this[_0x18a5('0x5f')][_0x18a5('0x84')](this[_0x18a5('0x5f')][_0x18a5('0xbb')]-0x1);if(_0x3fb0f7)this[_0x18a5('0xc8')]=_0x3fb0f7['id'];else{const _0x4645cf=!this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x67')]['find'](_0x2ea01c=>this[_0x18a5('0x46')][_0x18a5('0x25')]['hasContent'](_0x2ea01c)),_0x28f3aa=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x1ba35d=_0x18fdb9(this[_0x18a5('0x46')][_0x18a5('0xca')],_0x4645cf?_0x18a5('0x91'):_0x18a5('0x20'));this[_0x18a5('0x4')]({'from':_0x240e2e,'to':_0x240e2e,'id':this[_0x18a5('0xc8')],'name':_0x1ba35d,'creatorId':_0x28f3aa});}}[_0x18a5('0xfd')](_0x166f1b){const _0x507062=this[_0x18a5('0x96')][_0x18a5('0x79')]();this[_0x18a5('0x53')]=this['repository'][_0x18a5('0x84')](_0x507062),this[_0x18a5('0x53')]||(this[_0x18a5('0x53')]=this[_0x18a5('0x4')]({'from':_0x166f1b,'to':_0x166f1b,'id':_0x507062,'name':'','creatorId':null}));}['_makeRevision']({name:_0xfb5c88,from:_0x1b1b9e,to:_0x1b77c8,creatorId:_0x571e2e,id:_0x2de521}){const _0x41ec28=this[_0x18a5('0xf6')]({'from':_0x1b1b9e,'to':_0x1b77c8});_0x41ec28[_0x18a5('0xb0')]=_0xfb5c88,_0x41ec28[_0x18a5('0x6f')]=_0x571e2e,_0x41ec28['id']=_0x2de521;const _0x5b4087=this['addRevisionData'](_0x41ec28);return this['adapter']&&this['_bufferUpdate'](_0x41ec28['id'],_0x41ec28,!0x0),_0x5b4087;}['_setConversion'](){this[_0x18a5('0x46')][_0x18a5('0xe')][_0x18a5('0x1f')](_0x18a5('0x60'))[_0x18a5('0x36')]({'model':'revision'});}['_removeRevisionMarkers'](_0x4f739c){return(_0x4f739c=_0x4f739c['filter'](_0x4a34f2=>!_0x4a34f2[_0x18a5('0xb0')]||_0x18a5('0x72')!==_0x4a34f2[_0x18a5('0xb0')]&&_0x18a5('0xb3')!==_0x4a34f2['name']))[_0x18a5('0xce')](_0x11e99c=>{_0x18a5('0xd7')!=typeof _0x11e99c&&(_0x11e99c[_0x18a5('0xfb')]=this[_0x18a5('0xe1')](_0x11e99c[_0x18a5('0xfb')]),_0x11e99c[_0x18a5('0x89')]=_0x11e99c['attributes']['filter'](_0x5e641e=>!_0x5e641e[0x0]['startsWith']('data-revision-')));}),_0x4f739c;}}function J(_0x299e5f,_0x4f76f9){const _0x324982=_0x4f76f9['editing'][_0x18a5('0x42')][_0x18a5('0x3c')];if(_0x18a5('0xd7')==typeof _0x299e5f)return new _0x585615(_0x324982,_0x299e5f);{const _0x18bb2c=_0x299e5f[_0x18a5('0xfb')]['map'](_0x111ed2=>J(_0x111ed2,_0x4f76f9));return new(B[_0x299e5f[(_0x18a5('0xe9'))]]||_0x1e0a6b)(_0x324982,_0x299e5f[_0x18a5('0xb0')],_0x299e5f[_0x18a5('0x89')],_0x18bb2c);}}class H{constructor(_0x20c8ad){this['editor']=_0x20c8ad,this['_savedMetaData']=new Map(),this[_0x18a5('0xf')]=-0x1,this[_0x18a5('0xfa')]=-0x1,this[_0x18a5('0xfc')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x18a5('0xe7')]=new Map(),this[_0x18a5('0xd6')]=new Map(),this['_idsRoots']=new Map(),this[_0x18a5('0x95')]=new Map(),this[_0x18a5('0x41')]=new Map(),this[_0x18a5('0x45')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x10d34a){this[_0x18a5('0x22')]=_0x10d34a;const _0x2e885d=new Map(),_0x3e437f=new Map(),_0x24ff10=this['editor'][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x67')][_0x18a5('0x2')](_0x2c7cbb=>_0x2c7cbb[_0x18a5('0x3e')]);for(const _0xf2e391 of _0x24ff10){const _0x2d5a13=this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')]['getRoot'](_0xf2e391),_0x14b5aa=q(_0x2d5a13);_0x2e885d[_0x18a5('0xc6')](_0xf2e391,_0x14b5aa),_0x3e437f['set'](_0xf2e391,Object['fromEntries'](_0x2d5a13[_0x18a5('0x5a')]()));}const _0x3dd944=Array[_0x18a5('0x7d')](this[_0x18a5('0x46')][_0x18a5('0x25')]['markers'])[_0x18a5('0x2')](_0x553830=>[_0x553830[_0x18a5('0xb0')],_0x553830[_0x18a5('0xee')]()]),_0x4ddbdf=this[_0x18a5('0x22')][_0x18a5('0xa6')];this[_0x18a5('0x4b')](_0x4ddbdf,_0x2e885d,_0x3dd944,_0x3e437f),this[_0x18a5('0x49')]=this['_revisionId'];const _0x92a1c1=new Map(),_0x5c070f=new Map();for(const _0x330ae8 of _0x24ff10){const _0x3216c5=G(_0x330ae8);_0x92a1c1['set'](_0x330ae8,_0x3216c5),_0x5c070f['set'](_0x330ae8,{});}this[_0x18a5('0x4b')](Number[_0x18a5('0x6d')],_0x92a1c1,[],_0x5c070f);}[_0x18a5('0xf8')](_0xfb863c,_0x4433a7){if(this['_lastFrom']===_0xfb863c&&this[_0x18a5('0xfa')]<=_0x4433a7)this[_0x18a5('0x7c')][_0x18a5('0x65')]>0x1&&this[_0x18a5('0x83')](this[_0x18a5('0xfa')]),this['_applyOperations'](this[_0x18a5('0xfa')],_0x4433a7,!0x0);else{if(!this[_0x18a5('0x7c')][_0x18a5('0x8')](_0xfb863c)){const _0xfb17c3=this[_0x18a5('0x2b')](_0xfb863c);this[_0x18a5('0xa0')](_0xfb17c3,_0xfb863c,!0x1);}this[_0x18a5('0xa0')](_0xfb863c,_0x4433a7,!0x0);}return this[_0x18a5('0xf')]=_0xfb863c,this[_0x18a5('0xfa')]=_0x4433a7,this[_0x18a5('0x54')]();}['loadState'](_0x7c141f){this['_reset'](),this[_0x18a5('0xf')]=_0x7c141f['fromVersion'],this[_0x18a5('0xfa')]=_0x7c141f[_0x18a5('0x44')];for(const _0x294a9b in _0x7c141f['diffData']){const _0x2eafcf=_0x7c141f['diffData'][_0x294a9b][_0x18a5('0xc9')],_0x23dd7d=_0x158255(_0x7c141f[_0x18a5('0xd3')][_0x294a9b][_0x18a5('0x11')])||{},_0xf50d0b=this[_0x18a5('0xd2')](_0x7c141f[_0x18a5('0xd3')][_0x294a9b][_0x18a5('0x8d')]);_0xf50d0b['rootName']=_0x294a9b,_0xf50d0b[_0x18a5('0x85')]=!_0x2eafcf||!_0x2eafcf[_0x18a5('0x7b')],_0xf50d0b[_0x18a5('0x7b')]=()=>_0xf50d0b[_0x18a5('0x85')],this[_0x18a5('0xe7')][_0x18a5('0xc6')](_0x294a9b,_0xf50d0b),this[_0x18a5('0xd6')][_0x18a5('0xc6')](_0x294a9b,_0x23dd7d),_0x2eafcf&&this[_0x18a5('0x86')][_0x18a5('0xc6')](_0x294a9b,_0x2eafcf);const _0x5a98e6=this[_0x18a5('0x5')](_0xf50d0b);this['_baseIdsRoots'][_0x18a5('0xc6')](_0x294a9b,_0x5a98e6);for(const [_0x180b14,_0x2a40b6]of _0xf50d0b[_0x18a5('0x3f')]){if(!_0x180b14[_0x18a5('0x5e')](_0x18a5('0xf5')))continue;const _0x3d6a05=_0x180b14[_0x18a5('0xcd')](':')[0x2];for(const _0x14241a of _0x2a40b6[_0x18a5('0x3d')]({'singleCharacters':!0x0})){const _0x3b3c38=this[_0x18a5('0x51')](_0x14241a),_0x3b3302=_0x18a5('0x27')==_0x14241a[_0x18a5('0xe9')]?_0x14241a[_0x18a5('0x87')][_0x18a5('0xe2')][_0x18a5('0x3b')](0x0,-0x1):_0x14241a[_0x18a5('0x87')]['path'],_0x58f075=_0x5a98e6[_0x18a5('0x97')](_0x3b3302)[_0x18a5('0xc3')](_0x3b3c38);this[_0x18a5('0x41')]['set'](_0x58f075,{'userId':_0x3d6a05});}}}this[_0x18a5('0x49')]=this[_0x18a5('0xd0')];const _0x577027=[...Array(this[_0x18a5('0xd0')])[_0x18a5('0xc5')]()][_0x18a5('0x3b')](0x1)['filter'](_0x4f97fe=>!this[_0x18a5('0x41')][_0x18a5('0x8')](_0x4f97fe));let _0x2400b5=0x0;const _0x41803d=new Map();for(const _0x8d9d8d in _0x7c141f[_0x18a5('0xd3')]){const _0x2c0597=_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d]['attachChange'],_0x3ba7f1=_0x158255(_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d][_0x18a5('0x2d')])||{},_0xf70a1a=this[_0x18a5('0xd2')](_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d]['insertions']);_0xf70a1a[_0x18a5('0x3e')]=_0x8d9d8d,_0xf70a1a[_0x18a5('0x85')]=!_0x2c0597||_0x2c0597['isAttached'],_0xf70a1a[_0x18a5('0x7b')]=()=>_0xf70a1a[_0x18a5('0x85')],this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x8d9d8d,_0xf70a1a),this[_0x18a5('0x94')][_0x18a5('0xc6')](_0x8d9d8d,_0x3ba7f1);const _0x41cf2f=this[_0x18a5('0x5')](_0xf70a1a,Number[_0x18a5('0x6d')]);this[_0x18a5('0x31')]['set'](_0x8d9d8d,_0x41cf2f),_0x41803d[_0x18a5('0xc6')](_0x8d9d8d,_0xf70a1a[_0x18a5('0x7b')]()?_0x3ba7f1:{});for(const [_0x3b33fc,_0x369f5d]of _0xf70a1a[_0x18a5('0x3f')]){if(!_0x3b33fc[_0x18a5('0x5e')](_0x18a5('0xf5')))continue;const _0x184206=_0x3b33fc[_0x18a5('0xcd')](':')[0x2];for(const _0x75b5fc of _0x369f5d['getWalker']({'singleCharacters':!0x0})){const _0x16924c=this[_0x18a5('0x51')](_0x75b5fc),_0x1d62aa=this['_revisionId']++,_0x42cc12='elementEnd'==_0x75b5fc[_0x18a5('0xe9')]?_0x75b5fc['previousPosition'][_0x18a5('0xe2')][_0x18a5('0x3b')](0x0,-0x1):_0x75b5fc[_0x18a5('0x87')][_0x18a5('0xe2')];_0x41cf2f[_0x18a5('0x97')](_0x42cc12)['_setAttribute'](_0x16924c,_0x1d62aa),this['_touched'][_0x18a5('0xc6')](_0x1d62aa,{'userId':_0x184206});}}for(const _0x121ac1 of this[_0x18a5('0x46')][_0x18a5('0x25')]['createRangeIn'](_0xf70a1a)[_0x18a5('0x3d')]({'singleCharacters':!0x0})){const _0x22c2fe=this[_0x18a5('0x51')](_0x121ac1),_0x4e2268=_0x18a5('0x27')==_0x121ac1['type']?_0x121ac1['previousPosition']['path'][_0x18a5('0x3b')](0x0,-0x1):_0x121ac1[_0x18a5('0x87')][_0x18a5('0xe2')],_0x249820=_0x41cf2f[_0x18a5('0x97')](_0x4e2268);_0x249820['getAttribute'](_0x22c2fe)>0x0||_0x249820[_0x18a5('0x48')](_0x22c2fe,_0x577027[_0x2400b5++]);}for(const [_0x3ba39f,_0x22c60d]of _0xf70a1a[_0x18a5('0x3f')])_0x3ba39f[_0x18a5('0x5e')](_0x18a5('0xf5'))||this['_markers'][_0x18a5('0xc6')](_0x3ba39f,_0x22c60d);}const _0x4c7b88=G(_0x18a5('0x58'));this['_baseRoots'][_0x18a5('0xc6')]('$graveyard',_0x4c7b88),this[_0x18a5('0x95')][_0x18a5('0xc6')](_0x18a5('0x58'),this[_0x18a5('0x5')](_0x4c7b88,0x1));const _0x4c6cb8=G(_0x18a5('0x58'));this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x18a5('0x58'),_0x4c6cb8),this[_0x18a5('0x31')][_0x18a5('0xc6')]('$graveyard',this[_0x18a5('0x5')](_0x4c6cb8,0x1));const _0x597e5d=Array[_0x18a5('0x7d')](this[_0x18a5('0xfe')])[_0x18a5('0x2')](([_0xe17843,_0x3e4d26])=>[_0xe17843,q(_0x3e4d26)]);this[_0x18a5('0x4b')](this[_0x18a5('0xfa')],_0x597e5d,this[_0x18a5('0xfc')],_0x41803d);}[_0x18a5('0xd2')](_0x3db930){const _0x371b92=JSON['parse'](_0x3db930),_0x3b02e4=this[_0x18a5('0x46')][_0x18a5('0xb1')][_0x18a5('0x42')][_0x18a5('0x3c')],_0x31389c=new _0x3a7ce5(_0x3b02e4,_0x371b92['map'](_0x60bea6=>J(_0x60bea6,this[_0x18a5('0x46')])));return this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x12')](_0x31389c);}[_0x18a5('0x4b')](_0x5caa8d,_0x65c5d0,_0x84e5cb,_0x58ed56){const _0x3de103=new Map(_0x65c5d0),_0xd0a626=new Map(_0x158255(_0x58ed56)),_0x344a0c=new Map();for(const [_0x1438d3,_0x49d2ba]of _0x84e5cb)_0x344a0c['set'](_0x1438d3,{'start':_0x49d2ba[_0x18a5('0x4a')][_0x18a5('0x4e')](),'end':_0x49d2ba[_0x18a5('0x40')][_0x18a5('0x4e')](),'rootName':_0x49d2ba[_0x18a5('0x7')][_0x18a5('0x3e')]});this[_0x18a5('0x7c')][_0x18a5('0xc6')](_0x5caa8d,{'roots':_0x3de103,'markers':_0x344a0c,'rootsAttributes':_0xd0a626});}[_0x18a5('0x83')](_0x21695a){this[_0x18a5('0x7c')][_0x18a5('0x18')](_0x21695a);}[_0x18a5('0xda')](){this[_0x18a5('0x62')](),this[_0x18a5('0xf')]=-0x1,this[_0x18a5('0xfa')]=-0x1,this[_0x18a5('0x7c')][_0x18a5('0x1d')](),this[_0x18a5('0xd4')](this[_0x18a5('0x22')]);}[_0x18a5('0x62')](){this[_0x18a5('0x41')]['clear'](),this[_0x18a5('0x45')][_0x18a5('0x1d')](),this['_touchedRoots'][_0x18a5('0x1d')](),this[_0x18a5('0xfe')][_0x18a5('0x1d')](),this['_diffRootsAttributes'][_0x18a5('0x1d')](),this[_0x18a5('0xe7')][_0x18a5('0x1d')](),this['_baseRootsAttributes'][_0x18a5('0x1d')](),this[_0x18a5('0x31')][_0x18a5('0x1d')](),this[_0x18a5('0x95')][_0x18a5('0x1d')](),this[_0x18a5('0xfc')][_0x18a5('0x1d')](),this[_0x18a5('0xd0')]=0x1,this[_0x18a5('0x49')]=this[_0x18a5('0xd0')];}[_0x18a5('0x5')](_0x239567,_0xdee8b5=null){let _0x3b4ed1=null;_0x239567['is'](_0x18a5('0x100'))||(_0x3b4ed1=new _0x5f4c69(_0x239567['name'],{'vid_start':null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++}));const _0x2a5d82=[];for(const _0x582cf3 of _0x239567[_0x18a5('0x61')]())if(_0x582cf3['is'](_0x18a5('0x39'))){_0x2a5d82[_0x18a5('0xb7')](this[_0x18a5('0x5')](_0x582cf3,_0xdee8b5));const _0x30f177=_0x2a5d82[_0x2a5d82[_0x18a5('0xbb')]-0x1];null!==_0xdee8b5&&(_0xdee8b5=_0x30f177['is'](_0x18a5('0x39'),_0x18a5('0xa9'))?_0x30f177[_0x18a5('0xc3')](_0x18a5('0x29'))+0x1:_0x30f177['getAttribute'](_0x18a5('0xe6'))+0x1);}else for(let _0x1fe79b=0x0;_0x1fe79b<_0x582cf3[_0x18a5('0x56')];_0x1fe79b++)_0x2a5d82['push'](new _0x5f4c69(_0x18a5('0xa9'),{'vid':null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++}));if(_0x239567['is'](_0x18a5('0x100'))){const _0x56d17f=G(_0x239567[_0x18a5('0x3e')]);return _0x56d17f['_insertChild'](0x0,_0x2a5d82),_0x56d17f;}return _0x3b4ed1[_0x18a5('0x48')](_0x18a5('0xe6'),null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++),_0x3b4ed1['_insertChild'](0x0,_0x2a5d82),_0x3b4ed1;}[_0x18a5('0xa0')](_0x20cd69,_0x307bfb,_0x3e44ec){this[_0x18a5('0x62')]();const {roots:_0x593e47,markers:_0x11834b,rootsAttributes:_0x2c33d2}=this['_savedMetaData'][_0x18a5('0xa8')](_0x20cd69);this[_0x18a5('0xe7')]=new Map(_0x593e47),this[_0x18a5('0xd6')]=new Map(_0x158255(_0x2c33d2));for(const [_0x214523,_0x405a7f]of this[_0x18a5('0xe7')])if(_0x18a5('0x58')!==_0x214523&&(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x214523,q(_0x405a7f)),this[_0x18a5('0x94')]=new Map(_0x158255(_0x2c33d2)),_0x3e44ec)){const _0x5050b0=this[_0x18a5('0xd0')];this[_0x18a5('0x31')][_0x18a5('0xc6')](_0x214523,this[_0x18a5('0x5')](_0x405a7f)),this['_baseIdsRoots'][_0x18a5('0xc6')](_0x214523,this[_0x18a5('0x5')](_0x405a7f,_0x5050b0));}this[_0x18a5('0x49')]=this['_revisionId'],this[_0x18a5('0xfe')][_0x18a5('0xc6')]('$graveyard',q(this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x18a5('0x58')))),_0x3e44ec&&this[_0x18a5('0x31')]['set'](_0x18a5('0x58'),this['_makeIdsRoot'](this['_baseRoots'][_0x18a5('0xa8')](_0x18a5('0x58'))));for(const [_0x14c994,_0x258fd7]of _0x11834b){const _0x2112c0=this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x258fd7[_0x18a5('0x3e')]),_0x393185=this['_diffRoots'][_0x18a5('0xa8')](_0x258fd7[_0x18a5('0x3e')]),_0x3a67c5=new _0x287ef(this['_fixPosition'](_0x258fd7[_0x18a5('0x4a')],_0x2112c0),this[_0x18a5('0xbd')](_0x258fd7['end'],_0x2112c0)),_0x21d912=this[_0x18a5('0xbc')](_0x3a67c5,_0x393185);_0x2112c0['markers'][_0x18a5('0xc6')](_0x14c994,_0x3a67c5),this[_0x18a5('0xfc')][_0x18a5('0xc6')](_0x14c994,_0x21d912);}this[_0x18a5('0x15')](_0x20cd69,_0x307bfb,_0x3e44ec);}[_0x18a5('0x15')](_0x3596e2,_0x3c7152,_0x60108a){for(const _0x531c8e of this[_0x18a5('0x22')]['getOperations'](_0x3596e2,_0x3c7152))this[_0x18a5('0xc4')](_0x531c8e,_0x60108a);for(const _0x2f5ea9 of this[_0x18a5('0xfe')][_0x18a5('0xc0')]())_0x2f5ea9['markers']['clear']();for(const [_0x4a7668,_0x3b0cae]of this[_0x18a5('0xfc')]){this[_0x18a5('0xfe')]['get'](_0x3b0cae[_0x18a5('0x7')][_0x18a5('0x3e')])[_0x18a5('0x3f')][_0x18a5('0xc6')](_0x4a7668,_0x3b0cae[_0x18a5('0x4e')]());}const _0x18d0bd=new Map(),_0xd7005e=new Map();for(const [_0x490caa,_0x5c4306]of this[_0x18a5('0xfe')])_0x18d0bd[_0x18a5('0xc6')](_0x490caa,q(_0x5c4306)),_0xd7005e['set'](_0x490caa,this['_diffRootsAttributes'][_0x18a5('0xa8')](_0x490caa));this[_0x18a5('0x4b')](_0x3c7152,_0x18d0bd,this['_markers'],_0xd7005e);}[_0x18a5('0x2b')](_0x2e3f81){const _0x8b218c=Array[_0x18a5('0x7d')](this[_0x18a5('0x7c')][_0x18a5('0xc5')]());_0x8b218c[_0x18a5('0x8b')]((_0x538f46,_0x5d7b4b)=>_0x538f46-_0x5d7b4b),_0x8b218c['reverse']();for(const _0x1de700 of _0x8b218c)if(_0x1de700<_0x2e3f81)return _0x1de700;return Number[_0x18a5('0x6d')];}[_0x18a5('0x6')](_0x48b690,_0x484d8b){const _0x218493=Array[_0x18a5('0x7d')](_0x484d8b[_0x18a5('0x3f')])[_0x18a5('0x2')](([_0xbc32ce,_0x38396b])=>[_0xbc32ce,this['_fixRange'](_0x38396b,_0x48b690)]);_0x48b690[_0x18a5('0x3f')]=new Map(_0x218493);}['_transformMarkers'](_0x2df58e){for(const _0x21b075 of this['_markers']['values']()){const _0x53cc8c=_0x21b075[_0x18a5('0xdb')](_0x2df58e),_0x3a76e6=_0x287ef['_createFromRanges'](_0x53cc8c);_0x21b075['start']=_0x3a76e6[_0x18a5('0x4a')],_0x21b075['end']=_0x3a76e6[_0x18a5('0x40')];}}[_0x18a5('0xc4')](_0x304b77,_0x392f95){if('addRoot'==_0x304b77[_0x18a5('0xe9')]||_0x18a5('0xbf')==_0x304b77[_0x18a5('0xe9')])return void this[_0x18a5('0xab')](_0x304b77,_0x392f95);if(_0x18a5('0x14')==_0x304b77[_0x18a5('0xe9')]){const _0x569561=_0x304b77['position'][_0x18a5('0x7')][_0x18a5('0x3e')];this[_0x18a5('0xfe')][_0x18a5('0x8')](_0x569561)||(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x569561,G(_0x569561,!0x0)),this[_0x18a5('0x94')][_0x18a5('0xc6')](_0x569561,{}),_0x392f95&&this[_0x18a5('0x31')][_0x18a5('0xc6')](_0x569561,G(_0x569561,!0x0)));}else{if(_0x18a5('0xc1')==_0x304b77['type']||_0x18a5('0xac')==_0x304b77['type']||'changeRootAttribute'==_0x304b77['type'])return void this[_0x18a5('0x13')](_0x304b77);}const _0x207514=this[_0x18a5('0x5c')](_0x304b77,this[_0x18a5('0xfe')]);if(_0x18a5('0x5b')!==_0x304b77[_0x18a5('0xe9')]&&(_0x207514[_0x18a5('0xb8')](),this['_transformMarkers'](_0x207514)),_0x392f95)switch(_0x207514[_0x18a5('0xe9')]){case _0x18a5('0x14'):this[_0x18a5('0x34')](_0x304b77);break;case _0x18a5('0x66'):case'remove':case _0x18a5('0xa'):this[_0x18a5('0x2a')](_0x304b77);break;case _0x18a5('0x24'):this[_0x18a5('0xe4')](_0x304b77);break;case'split':this['_handleSplitOperation'](_0x304b77);break;case _0x18a5('0x5b'):this['_handleMarkerOperation'](_0x304b77);}}[_0x18a5('0x5c')](_0x39840c,_0x3bb3f0){const _0x3c468a=_0x39840c[_0x18a5('0x4e')]();return _0x3c468a[_0x18a5('0x47')]=_0x39840c['_authorId'],this[_0x18a5('0xf4')](_0x3c468a,_0x3bb3f0),_0x3c468a;}[_0x18a5('0x93')](_0x59bada){return _0x59bada[_0x18a5('0x2')](_0x45cf0e=>{const _0x1f0ee6=this[_0x18a5('0x51')](_0x45cf0e);return Number(_0x45cf0e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x1f0ee6));});}['_generateTape'](_0x391aee,_0x46c40d){if(_0x391aee['is']('element',_0x18a5('0xa9')))_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0xf2')});else{_0x391aee['is'](_0x18a5('0x39'))&&_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0xba')});for(const _0x359f52 of _0x391aee['getChildren']())this[_0x18a5('0xff')](_0x359f52,_0x46c40d);_0x391aee['is'](_0x18a5('0x39'))&&_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0x27')});}return _0x46c40d;}['_getState'](){const _0x55aae7=new Map(this[_0x18a5('0x41')]),_0x5e8eac=new Map(_0x55aae7),_0x209f35=new Map(),_0x47fd42={'insertions':{},'deletions':{}},_0x4d65c8={'insertions':{},'deletions':{}},_0x196c4d=new Map(),_0x1ebe17=new Set([...this[_0x18a5('0xe7')][_0x18a5('0xc5')](),...this['_diffRoots']['keys']()]);_0x1ebe17[_0x18a5('0x18')](_0x18a5('0x58'));for(const _0x457ad3 of _0x1ebe17){const _0x3e43c8=this[_0x18a5('0xfe')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1),_0x5474e6=this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1);_0x3e43c8[_0x18a5('0x7b')]()||_0x5474e6[_0x18a5('0x7b')]()?(_0x47fd42[_0x18a5('0x74')][_0x457ad3]=q(_0x3e43c8),_0x47fd42[_0x18a5('0x8d')][_0x457ad3]=q(_0x5474e6),this[_0x18a5('0x6')](_0x47fd42[_0x18a5('0x8d')][_0x457ad3],_0x5474e6),this[_0x18a5('0x6')](_0x47fd42[_0x18a5('0x74')][_0x457ad3],_0x3e43c8),_0x4d65c8[_0x18a5('0x74')][_0x457ad3]=this['_generateTape'](this[_0x18a5('0x31')]['get'](_0x457ad3),[]),_0x4d65c8['deletions'][_0x457ad3]=this[_0x18a5('0xff')](this[_0x18a5('0x95')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1),[])):_0x1ebe17[_0x18a5('0x18')](_0x457ad3);}for(const _0x14a382 of _0x1ebe17){const _0x2bef2b=_0x4d65c8[_0x18a5('0x74')][_0x14a382];for(const _0x12eb6b of _0x2bef2b){const _0x221c3c=this[_0x18a5('0x51')](_0x12eb6b),_0x52f160=_0x12eb6b[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x221c3c);_0x5e8eac['delete'](_0x52f160),_0x52f160>=this[_0x18a5('0x49')]&&_0x209f35['set'](_0x52f160,_0x55aae7[_0x18a5('0xa8')](_0x52f160));}}for(const _0x34a953 of _0x1ebe17){const _0x3d401c=_0x4d65c8['insertions'][_0x34a953],_0x36a42b=this[_0x18a5('0x93')](_0x4d65c8['deletions'][_0x34a953]);let _0x30d8c4=0x0;for(const _0x1f556a of _0x3d401c){const _0x1fbd59=this[_0x18a5('0x51')](_0x1f556a),_0x5deee6=_0x1f556a[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x1fbd59);if(!_0x209f35['has'](_0x5deee6)&&!_0x196c4d['has'](_0x5deee6)){if(_0x5e8eac[_0x18a5('0x8')](_0x5deee6))_0x30d8c4++;else{if(_0x5deee6!=_0x36a42b[_0x30d8c4]){const _0x196a6a=_0x55aae7[_0x18a5('0xa8')](_0x5deee6)||_0x55aae7[_0x18a5('0xa8')](_0x36a42b[_0x30d8c4]);for(;_0x5deee6!=_0x36a42b[_0x30d8c4];)_0x5e8eac[_0x18a5('0x8')](_0x36a42b[_0x30d8c4])||(_0x196c4d[_0x18a5('0xc6')](_0x36a42b[_0x30d8c4],_0x196a6a),_0x55aae7['set'](_0x36a42b[_0x30d8c4],_0x196a6a)),_0x30d8c4++;}_0x30d8c4++;}}}}for(const _0x3c12bf of _0x1ebe17){const _0x584ae4=_0x4d65c8[_0x18a5('0x74')][_0x3c12bf];for(const _0x2d599a of _0x584ae4){const _0x6d1118=this[_0x18a5('0x51')](_0x2d599a),_0x5c6cd2=_0x2d599a['item'][_0x18a5('0xc3')](_0x6d1118);if(_0x196c4d['has'](_0x5c6cd2)){const _0x24ecd2=_0x196c4d[_0x18a5('0xa8')](_0x5c6cd2);_0x5e8eac[_0x18a5('0x8')](_0x5c6cd2)||_0x5e8eac[_0x18a5('0xc6')](_0x5c6cd2,{..._0x24ecd2}),_0x209f35['set'](_0x5c6cd2,{..._0x24ecd2});}}}for(const _0x2940e2 of _0x5e8eac['keys']())_0x2940e2>=this[_0x18a5('0x49')]&&_0x5e8eac['delete'](_0x2940e2);const _0x4a2f4a=new Map();for(const _0x547aff of _0x1ebe17){let _0x46f0b7=_0x4d65c8[_0x18a5('0x74')][_0x547aff];for(const _0x17e483 of _0x46f0b7)if(_0x17e483[_0x18a5('0xaa')]['is'](_0x18a5('0x39'),_0x18a5('0xf1'))){const _0x3d9325=this[_0x18a5('0x51')](_0x17e483),_0x1d47ee=_0x17e483[_0x18a5('0xaa')]['getAttribute'](_0x3d9325);if(_0x209f35[_0x18a5('0x8')](_0x1d47ee)){const _0x4f4076=_0x17e483[_0x18a5('0xaa')]['parent'][_0x18a5('0x1c')]['getAttribute'](_0x18a5('0xe5')),_0x17e5e6=_0x4a2f4a[_0x18a5('0xa8')](_0x4f4076)||new Set();_0x17e5e6['add'](_0x209f35[_0x18a5('0xa8')](_0x1d47ee)[_0x18a5('0x23')]),_0x4a2f4a[_0x18a5('0xc6')](_0x4f4076,_0x17e5e6);}}_0x46f0b7=_0x4d65c8['deletions'][_0x547aff];for(const _0x30b9c0 of _0x46f0b7)if(_0x30b9c0[_0x18a5('0xaa')]['is'](_0x18a5('0x39'),'tableCell')){const _0x255254=this['_getVidAttributeName'](_0x30b9c0),_0x773dd1=_0x30b9c0[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x255254);if(_0x5e8eac[_0x18a5('0x8')](_0x773dd1)){const _0x3fbb35=_0x30b9c0[_0x18a5('0xaa')][_0x18a5('0x1c')][_0x18a5('0x1c')]['getAttribute'](_0x18a5('0xe5')),_0x43a53c=_0x4a2f4a[_0x18a5('0xa8')](_0x3fbb35)||new Set();_0x43a53c['add'](_0x5e8eac['get'](_0x773dd1)[_0x18a5('0x23')]),_0x4a2f4a[_0x18a5('0xc6')](_0x3fbb35,_0x43a53c);}}for(const _0x562fdd of _0x4a2f4a[_0x18a5('0xc5')]())(_0x209f35[_0x18a5('0x8')](_0x562fdd)||_0x5e8eac[_0x18a5('0x8')](_0x562fdd))&&_0x4a2f4a['delete'](_0x562fdd);}for(const _0x52dc19 of _0x1ebe17){const _0x577b1f=_0x4d65c8[_0x18a5('0x74')][_0x52dc19];let _0x560a74=null,_0x545b34=null;for(const _0x24b99e of _0x577b1f){const _0x5a02f9=this[_0x18a5('0x51')](_0x24b99e),_0x46cfa8=_0x24b99e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x5a02f9),_0xfe6f42=_0x4a2f4a['get'](_0x46cfa8);_0xfe6f42&&_0x18a5('0xba')==_0x24b99e[_0x18a5('0xe9')]&&(_0x560a74=Array[_0x18a5('0x7d')](_0xfe6f42)[0x0],_0x545b34=_0x24b99e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x18a5('0xe6'))),_0x560a74&&(_0x5e8eac[_0x18a5('0xc6')](_0x46cfa8,{'userId':_0x560a74}),_0x209f35[_0x18a5('0xc6')](_0x46cfa8,{'userId':_0x560a74})),_0x46cfa8==_0x545b34&&(_0x560a74=null,_0x545b34=null);}}const _0x25e1e0={},_0x4974a8=new Set();for(const _0x5b1560 of _0x1ebe17){const _0x1da87f=_0x47fd42[_0x18a5('0x8d')][_0x5b1560],_0x25bb59=_0x47fd42['insertions'][_0x5b1560];for(const {userId:_0x4267d7}of this['_touchedMarkers'][_0x18a5('0xc0')]())null!==_0x4267d7&&_0x4974a8[_0x18a5('0x59')](_0x4267d7);for(const {userId:_0x17a0fc}of this[_0x18a5('0x86')][_0x18a5('0xc0')]())null!==_0x17a0fc&&_0x4974a8[_0x18a5('0x59')](_0x17a0fc);this[_0x18a5('0xe0')](_0x25bb59,_0x4d65c8[_0x18a5('0x74')][_0x5b1560],_0x209f35,_0x18a5('0xf0'),_0x4974a8),this[_0x18a5('0xe0')](_0x1da87f,_0x4d65c8['deletions'][_0x5b1560],_0x5e8eac,'deletion',_0x4974a8),_0x25e1e0[_0x5b1560]={'insertions':this[_0x18a5('0xc2')](_0x25bb59),'deletions':this[_0x18a5('0xc2')](_0x1da87f),'attachChange':this[_0x18a5('0x86')][_0x18a5('0xa8')](_0x5b1560)||null,'attributesBefore':_0x158255(this['_baseRootsAttributes'][_0x18a5('0xa8')](_0x5b1560))||{},'attributesAfter':_0x158255(this[_0x18a5('0x94')][_0x18a5('0xa8')](_0x5b1560))};}return{'diffData':_0x25e1e0,'authorsIds':Array['from'](_0x4974a8)};}[_0x18a5('0x8e')](_0x1869b6){for(const [,_0x460add]of _0x1869b6[_0x18a5('0x3f')]){const _0x162b89=_0x460add[_0x18a5('0x4a')][_0x18a5('0x55')]()[_0x18a5('0xdf')](_0x20fe87=>'tableCell'==_0x20fe87['name']);for(const _0xe587f3 of _0x162b89)0x1==_0xe587f3[_0x18a5('0x6c')]&&_0xe587f3[_0x18a5('0x3a')](0x0)['is']('element',_0x18a5('0x4f'))&&_0xe587f3[_0x18a5('0x3a')](0x0)[_0x18a5('0x48')](_0x18a5('0xd9'),!0x0);}}[_0x18a5('0xc2')](_0x1e7968){this[_0x18a5('0x8e')](_0x1e7968);const _0x57ab8d=this[_0x18a5('0x46')]['data']['toView'](_0x1e7968,{}),_0xa2f05b=Array[_0x18a5('0x7d')](_0x57ab8d[_0x18a5('0x61')]())['map'](_0x16b104=>this[_0x18a5('0x70')](_0x16b104));return JSON[_0x18a5('0xd5')](_0xa2f05b);}['_getViewJson'](_0x375054){if(_0x375054['is'](_0x18a5('0xa9')))return _0x375054[_0x18a5('0xde')];{const _0x1c44d1=_0x375054;return{'type':Object[_0x18a5('0xc5')](B)['find'](_0x234c40=>_0x375054 instanceof B[_0x234c40]),'name':_0x1c44d1[_0x18a5('0xb0')],'attributes':Array['from'](_0x1c44d1['getAttributes']()),'children':Array[_0x18a5('0x7d')](_0x1c44d1[_0x18a5('0x61')]())[_0x18a5('0x2')](_0x3ffbf6=>this[_0x18a5('0x70')](_0x3ffbf6))};}}[_0x18a5('0xe0')](_0x1aa355,_0x524f83,_0x5a635e,_0x15c0ad,_0x5a7555){let _0x35d79d=null,_0x366620=null,_0x3f245f=0x0;const _0xb61c3f=this[_0x18a5('0x46')][_0x18a5('0x25')];for(let _0x18aedc=0x0;_0x18aedc<_0x524f83[_0x18a5('0xbb')];_0x18aedc++){const _0x6eb9=this['_getVidAttributeName'](_0x524f83[_0x18aedc]),_0x463cbc=_0x524f83[_0x18aedc][_0x18a5('0xaa')][_0x18a5('0xc3')](_0x6eb9),_0x461282=_0x5a635e[_0x18a5('0xa8')](_0x463cbc),_0x5e86fa=_0x18aedc==_0x524f83[_0x18a5('0xbb')]-0x1;(!_0x35d79d&&_0x461282&&(_0x35d79d=_0x461282,_0x366620=_0x524f83[_0x18aedc]),_0x35d79d&&(!_0x461282||_0x461282[_0x18a5('0x23')]!=_0x35d79d[_0x18a5('0x23')]))&&(_0x11e719(_0x461282,L(_0x366620,_0x1aa355,_0xb61c3f),L(_0x524f83[_0x18aedc],_0x1aa355,_0xb61c3f)),_0x35d79d=_0x461282||null,_0x366620=_0x461282?_0x524f83[_0x18aedc]:null),_0x35d79d&&_0x5e86fa&&_0x11e719(_0x461282,L(_0x366620,_0x1aa355,_0xb61c3f),W(_0x524f83[_0x18aedc],_0x1aa355,_0xb61c3f));}function _0x11e719(_0x4c1475,_0x130930,_0xe4df92){const _0x43b641=_0x35d79d['userId'],_0x2503ff='revision:'+_0x15c0ad+':'+_0x43b641+':'+_0x3f245f++,_0x460f18=_0xb61c3f['createRange'](_0x130930,_0xe4df92);_0x1aa355[_0x18a5('0x3f')][_0x18a5('0xc6')](_0x2503ff,_0x460f18),null!==_0x43b641&&_0x5a7555[_0x18a5('0x59')](_0x43b641);}}[_0x18a5('0x51')](_0xb4821f){switch(_0xb4821f['type']){case _0x18a5('0xba'):return _0x18a5('0xe5');case _0x18a5('0x27'):return _0x18a5('0xe6');default:return _0x18a5('0x29');}}['_fixOperation'](_0x1f8d08,_0x5c1d1f){_0x1f8d08[_0x18a5('0x6a')]=null;for(const _0x1db911 in _0x1f8d08){const _0x4351fe=_0x1f8d08[_0x1db911];if(_0x4351fe instanceof _0x170f37){const _0x57b900=_0x5c1d1f[_0x18a5('0xa8')](_0x4351fe[_0x18a5('0x7')][_0x18a5('0x3e')]);_0x1f8d08[_0x1db911]=this[_0x18a5('0xbd')](_0x4351fe,_0x57b900);}if(_0x4351fe instanceof _0x287ef){const _0x14bc31=_0x5c1d1f['get'](_0x4351fe[_0x18a5('0x7')][_0x18a5('0x3e')]);_0x1f8d08[_0x1db911]=this[_0x18a5('0xbc')](_0x4351fe,_0x14bc31);}'root'===_0x1db911&&(_0x1f8d08[_0x18a5('0x7')]=_0x5c1d1f[_0x18a5('0xa8')](_0x1f8d08['root'][_0x18a5('0x3e')]));}}['_fixRange'](_0x26c4ec,_0x18524d){return this[_0x18a5('0x46')]['model']['createRange'](this[_0x18a5('0xbd')](_0x26c4ec['start'],_0x18524d),this[_0x18a5('0xbd')](_0x26c4ec['end'],_0x18524d));}[_0x18a5('0xbd')](_0x6bc95f,_0x1d0421){return this[_0x18a5('0x46')]['model'][_0x18a5('0x92')](_0x1d0421,_0x6bc95f['path'],_0x6bc95f[_0x18a5('0x8f')]);}[_0x18a5('0x34')](_0x1cbedb){const _0x511ca6=this[_0x18a5('0x31')][_0x18a5('0xa8')](_0x1cbedb[_0x18a5('0xe3')]['root'][_0x18a5('0x3e')]),_0x54f688=this[_0x18a5('0xbd')](_0x1cbedb[_0x18a5('0xe3')],_0x511ca6),_0x40bbc7=null===_0x1cbedb[_0x18a5('0x47')]?null:_0x1cbedb[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x554590=_0x54f688[_0x18a5('0x1c')],_0x45facf=this['_revisionId'],_0x2b32ec=[];for(const _0x5aa5f0 of _0x1cbedb[_0x18a5('0x88')])if(_0x5aa5f0['is'](_0x18a5('0x39')))_0x2b32ec[_0x18a5('0xb7')](this[_0x18a5('0x5')](_0x5aa5f0));else for(let _0x22eaea=0x0;_0x22eaea<_0x5aa5f0[_0x18a5('0x56')];_0x22eaea++)_0x2b32ec['push'](new _0x5f4c69('$text',{'vid':this[_0x18a5('0xd0')]++}));const _0x2a7ac2=this['_revisionId'];for(let _0x4c8f21=_0x45facf;_0x4c8f21<_0x2a7ac2;_0x4c8f21++)this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x4c8f21,{'userId':_0x40bbc7});_0x554590[_0x18a5('0x77')](_0x54f688[_0x18a5('0x7f')],_0x2b32ec);}['_handleMoveOperation'](_0xe1813c){(_0xe1813c=this[_0x18a5('0x5c')](_0xe1813c,this[_0x18a5('0x31')]))[_0x18a5('0xb8')]();const _0x4ed3be=null===_0xe1813c[_0x18a5('0x47')]?null:_0xe1813c[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x21087c=_0xe1813c[_0x18a5('0x99')](),_0xbe1ec3=_0x21087c[_0x18a5('0x1c')],_0x573ad9=_0x21087c['offset'];!function _0x3008e1(_0x5ef54a,_0xe9d41b,_0x2817d0,_0x527f22){for(let _0x25ba89=_0x2817d0;_0x25ba89<_0x527f22;_0x25ba89++){const _0x59c5a1=_0xe9d41b[_0x18a5('0x3a')](_0x25ba89);_0x59c5a1['is'](_0x18a5('0x39'),_0x18a5('0xa9'))?_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0x29')),{'userId':_0x4ed3be}):(_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0xe5')),{'userId':_0x4ed3be}),_0x3008e1(_0x5ef54a,_0x59c5a1,0x0,_0x59c5a1[_0x18a5('0x6c')]),_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0xe6')),{'userId':_0x4ed3be}));}}(this[_0x18a5('0x41')],_0xbe1ec3,_0x573ad9,_0x573ad9+_0xe1813c[_0x18a5('0x1')]);}[_0x18a5('0xe4')](_0x16cc60){const _0xd66361=null===(_0x16cc60=this[_0x18a5('0x5c')](_0x16cc60,this['_idsRoots']))['_authorId']?null:_0x16cc60[_0x18a5('0x47')]||this['editor'][_0x18a5('0xad')][_0x18a5('0xa8')]('Users')['me']['id'],_0x467c6b=_0x16cc60[_0x18a5('0x80')][_0x18a5('0x1c')],_0x45a7a3=_0x16cc60[_0x18a5('0xe8')]['parent'],_0x88f603=_0x467c6b[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x2098da=_0x45a7a3[_0x18a5('0xc3')](_0x18a5('0xe5'));_0x467c6b[_0x18a5('0x48')]('vid_end',_0x45a7a3[_0x18a5('0xc3')](_0x18a5('0xe6'))),_0x45a7a3[_0x18a5('0x48')](_0x18a5('0xe6'),_0x88f603),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x2098da,{'userId':_0xd66361}),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x88f603,{'userId':_0xd66361}),_0x16cc60['_execute']();}[_0x18a5('0x19')](_0x6870ce){const _0x1f8d00=null===(_0x6870ce=this[_0x18a5('0x5c')](_0x6870ce,this[_0x18a5('0x31')]))[_0x18a5('0x47')]?null:_0x6870ce[_0x18a5('0x47')]||this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x1d8167=_0x6870ce[_0x18a5('0x2f')],_0x6a0966=_0x6870ce[_0x18a5('0x1a')]['parent'];_0x6870ce[_0x18a5('0xb8')]();const _0x297606=_0x6a0966[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x36ff20=_0x6870ce['insertionPosition'][_0x18a5('0xa7')];if(_0x1d8167){const _0x5eb763=_0x36ff20[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x45e781=_0x6a0966['getAttribute']('vid_end');_0x6a0966[_0x18a5('0x48')]('vid_end',_0x5eb763),_0x36ff20[_0x18a5('0x48')]('vid_end',_0x45e781),this['_touched'][_0x18a5('0xc6')](_0x6a0966[_0x18a5('0xc3')](_0x18a5('0xe6')),{'userId':_0x1f8d00}),this[_0x18a5('0x41')]['set'](_0x36ff20['getAttribute']('vid_start'),{'userId':_0x1f8d00});}else{const _0x58f286=this[_0x18a5('0xd0')]++,_0x2826a0=this[_0x18a5('0xd0')]++;_0x6a0966[_0x18a5('0x48')](_0x18a5('0xe6'),_0x58f286),_0x36ff20['_setAttribute'](_0x18a5('0xe5'),_0x2826a0),_0x36ff20[_0x18a5('0x48')](_0x18a5('0xe6'),_0x297606),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x58f286,{'userId':_0x1f8d00}),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x2826a0,{'userId':_0x1f8d00});}}[_0x18a5('0x1b')](_0x4e6623){if(!_0x4e6623[_0x18a5('0x7a')])return;const _0x2f3856=(_0x4e6623=this[_0x18a5('0x5c')](_0x4e6623,this[_0x18a5('0xfe')]))[_0x18a5('0x57')]?_0x4e6623[_0x18a5('0x57')][_0x18a5('0x7')]:null,_0x152b7f=_0x4e6623[_0x18a5('0x0')]?_0x4e6623['newRange']['root']:null;_0x2f3856&&this[_0x18a5('0xfc')][_0x18a5('0x18')](_0x4e6623[_0x18a5('0xb0')]),_0x152b7f&&this[_0x18a5('0xfc')]['set'](_0x4e6623[_0x18a5('0xb0')],_0x4e6623[_0x18a5('0x0')]['clone']());const _0x50dca4=null===_0x4e6623[_0x18a5('0x47')]?null:_0x4e6623[_0x18a5('0x47')]||this['editor'][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x30e996=_0x4e6623['name'];if(!this[_0x18a5('0x45')][_0x18a5('0x8')](_0x30e996))return void this[_0x18a5('0x45')][_0x18a5('0xc6')](_0x30e996,{'range':_0x4e6623[_0x18a5('0x57')],'userId':_0x50dca4});const _0x5c4d48=this[_0x18a5('0x45')][_0x18a5('0xa8')](_0x30e996),_0x55e34d=_0x5c4d48['range'],_0x5e1120=_0x4e6623[_0x18a5('0x0')];null==_0x55e34d&&null==_0x5e1120||_0x55e34d&&_0x5e1120&&_0x55e34d[_0x18a5('0xf3')](_0x5e1120)?this['_touchedMarkers']['delete'](_0x4e6623['name']):_0x5c4d48[_0x18a5('0x23')]=_0x50dca4;}[_0x18a5('0xab')](_0x26a04c,_0x20f8ba){this[_0x18a5('0xfe')][_0x18a5('0x8')](_0x26a04c['rootName'])?this[_0x18a5('0xfe')][_0x18a5('0xa8')](_0x26a04c['rootName'])[_0x18a5('0x85')]=_0x26a04c['isAdd']:(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x26a04c[_0x18a5('0x3e')],G(_0x26a04c['rootName'],!0x0)),this[_0x18a5('0x94')]['set'](_0x26a04c['rootName'],{}),_0x20f8ba&&this['_idsRoots']['set'](_0x26a04c[_0x18a5('0x3e')],G(_0x26a04c['rootName'],!0x0)));const _0x17142d=null===_0x26a04c[_0x18a5('0x47')]?null:_0x26a04c[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x48c2a2=this['_touchedRoots'][_0x18a5('0xa8')](_0x26a04c[_0x18a5('0x3e')]);_0x48c2a2&&_0x48c2a2[_0x18a5('0x23')]===_0x17142d?this[_0x18a5('0x86')][_0x18a5('0x18')](_0x26a04c[_0x18a5('0x3e')]):this[_0x18a5('0x86')][_0x18a5('0xc6')](_0x26a04c['rootName'],{'userId':_0x17142d,'isAttached':_0x26a04c[_0x18a5('0xb4')]});}['_handleRootAttributeOperation'](_0x36b91f){const _0x39d7b5=this['_diffRootsAttributes']['get'](_0x36b91f[_0x18a5('0x7')][_0x18a5('0x3e')]);null===_0x36b91f[_0x18a5('0x73')]?delete _0x39d7b5[_0x36b91f['key']]:_0x39d7b5[_0x36b91f[_0x18a5('0x10')]]=_0x36b91f[_0x18a5('0x73')];}}function q(_0x36fd9c){const _0x30e9e6=G(_0x36fd9c[_0x18a5('0x3e')],_0x36fd9c[_0x18a5('0x7b')]());for(const _0x1a784e of _0x36fd9c[_0x18a5('0x61')]()){const _0x2a82e0=_0x1a784e[_0x18a5('0x2c')](!0x0);_0x30e9e6['_appendChild'](_0x2a82e0);}return _0x30e9e6;}function G(_0x5b47b6,_0x26cf99=!0x0){const _0x143db3=new _0x1d8fd3();return _0x143db3['rootName']=_0x5b47b6,_0x143db3['_isAttached']=_0x26cf99,_0x143db3['isAttached']=()=>_0x143db3[_0x18a5('0x85')],_0x143db3;}function L(_0x33c656,_0x426a36,_0x36558a){const _0x32b46e=_0x18a5('0x27')==_0x33c656[_0x18a5('0xe9')]?_0x36558a[_0x18a5('0x9e')](_0x33c656['item'],_0x18a5('0x40')):_0x36558a[_0x18a5('0x50')](_0x33c656[_0x18a5('0xaa')]);return _0x36558a[_0x18a5('0x92')](_0x426a36,_0x32b46e[_0x18a5('0xe2')],_0x32b46e['stickiness']);}function W(_0x48be14,_0x295b3a,_0x2a8556){const _0x473c8a=_0x18a5('0xba')==_0x48be14[_0x18a5('0xe9')]?_0x2a8556[_0x18a5('0x9e')](_0x48be14[_0x18a5('0xaa')],0x0):_0x2a8556[_0x18a5('0x9')](_0x48be14[_0x18a5('0xaa')]);return _0x2a8556['createPositionFromPath'](_0x295b3a,_0x473c8a[_0x18a5('0xe2')],_0x473c8a[_0x18a5('0x8f')]);}
|
|
23
|
+
const _0x2ffd=['_baseIdsRoots','getIndex','currentRevision','_clone','offset','_prepareViewToSave','revision','getAttributes','_pendingAction','_setConversion','merge','howMany','revision-end','_handleInsertOperation','_fixPosition','creator','getAttribute','_lastFrom','plugins','_touchedRoots','_handleOperation','markers','_diffRootsAttributes','rootsAttributes','_handleSplitOperation','_lastTo','get','addRootAttribute','_isAttached','removeRootAttribute','start','attributes','elementStart','_insertChild','from','_setAttribute','RevisionsRepository','getChild','revision:','_revisionId','NEGATIVE_INFINITY','_findInsertionIndex','Initial\x20revision','trim','addRevisionData','length','_initialRevisionId','getCurrentRevisionId','dataToMarker','attachChange','attributesAfter','repository','PendingActions','_execute','rootName','getRange','getRootNames','_revisionDataBuilder','processor','forEach','RealTimeCollaborationClient','_authorId','upcast','graveyardPosition','loadState','isEnabled','name','getRevision','getMovedRangeStart','adapter','hasContent','_processRootBeforeSave','_removeMetaData','previousPosition','filter','_handleRootOperation','_isPendingUpdate','_getState','init','_markers','getData','authorsIds','createPositionBefore','_handleRootAttributeOperation','_makeIdsRoot','tableCell','document','reInit','delete','_fixRange','split','range','buildRevisionData','_applyOperations','_getVidAttributeName','model','changeRootAttribute','has','roots','createdAt','define','detachRoot','parent','set','useFillerType','string','marked','toData','root','path','clear','element','_handleMarkerOperation','includes','nodeAfter','default','Users','push','vid_start','values','isAdd','elementEnd','splitPosition','_getBaseVids','_copyMarkers','userId','saveRevision','_continueCurrentRevision','diffData','find','targetPosition','version','end','baseVersion','vid','view','size','getChildren','_loadRevisionData','_removePendingAction','toModel','getNodeByPath','sort','_replaceEditorDataWithRevisionData','source','getRoot','newRange','_handleMergeOperation','conversion','editor','insertionPosition','_touched','_getFromVersion','_getPreviousFrom','documentFragment','marker','isAttached','_addPendingAction','stickiness','item','createRange','offsetSize','key','_update','_startingVersion','_touchedMarkers','insertions','setRevisionData','_baseRoots','revision-start','editing','keys','setSource','_removeRevisionMarkers','editor-initial-data-replaced-with-revision-data','_bufferUpdate','history','locale','getRevisionDocumentData','getUser','createPositionFromPath','_transformMarkers','data','_idsRoots','remove','nodes','_diffRoots','_loadedStateData','_createFromRanges','_baseRootsAttributes','_loadState','$text','_makeModelFromViewString','keepParagraph','_generateTape','parse','authors','clone','_markChanges','_savedMetaData','initialData','_createCurrentRevision','_makeRevision','_saveMetaData','children','toVersion','createPositionAt','oldRange','updateRevisions','_calculateMetaData','attributesBefore','sourcePosition','config','reverse','dataDowncast','resolve','_handleMoveOperation','map','type','fromVersion','then','vid_end','getWalker','isReady','reinsert','for','_fixOperation','$graveyard','PENDING_ACTION_REVISION_HISTORY','_createInitialRevision','getTime','_startingRevisionId','insert','createRangeIn','_reset','position','revisionHistory.resumeUnsavedRevision','sendBufferedUpdates','addRoot','slice','_bufferedUpdates','afterInit','some','affectsData','toView','deletions','_source','startsWith','add','_cloneOperation','text'];(function(_0x25d3eb,_0x2ffd6b){const _0x7c4123=function(_0x4da809){while(--_0x4da809){_0x25d3eb['push'](_0x25d3eb['shift']());}};_0x7c4123(++_0x2ffd6b);}(_0x2ffd,0x103));const _0x7c41=function(_0x25d3eb,_0x2ffd6b){_0x25d3eb=_0x25d3eb-0x0;let _0x7c4123=_0x2ffd[_0x25d3eb];return _0x7c4123;};import{Users as _0x4937d3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x19f994,PendingActions as _0x458d0f}from'ckeditor5/src/core';import{logWarning as _0x56d67b,uid as _0x3a9d44}from'ckeditor5/src/utils';import{Position as _0x32346e,Range as _0x34fae3,Element as _0x26a125,DocumentFragment as _0x285c45,ViewText as _0x16e3d3,ViewElement as _0x3e735f,ViewContainerElement as _0x344c63,ViewAttributeElement as _0x2cb87e,ViewEmptyElement as _0x33fabb,ViewRawElement as _0x460365,ViewUIElement as _0x306036,ViewDocumentFragment as _0x1ee88d}from'ckeditor5/src/engine';import _0x3b1191 from'./revisionsrepository';import{getTranslation as _0x73fcda}from'./utils/common-translations';import{cloneDeep as _0x590a64,isEqual as _0x42fc09}from'lodash-es';const B={'c':_0x344c63,'a':_0x2cb87e,'e':_0x33fabb,'r':_0x460365,'u':_0x306036};export default class l extends _0x19f994{static get['pluginName'](){return'RevisionTracker';}static get['requires'](){return[_0x4937d3,_0x3b1191,_0x458d0f];}constructor(_0x57c559){super(_0x57c559),this[_0x7c41('0x3d')]=null,this[_0x7c41('0xf5')]=null,this[_0x7c41('0x31')]=new H(this[_0x7c41('0x8d')]),this[_0x7c41('0x26')]=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')]('collaboration.channelId')||'initial',this[_0x7c41('0xe8')]=new Map(),this[_0x7c41('0xb3')]=null;const _0x4b9c11=_0x3a9d44();this[_0x7c41('0xee')]={'history':this[_0x7c41('0x8d')]['model'][_0x7c41('0x4e')][_0x7c41('0xa8')],'getLatestVersion':()=>Promise[_0x7c41('0xcf')](this[_0x7c41('0x8d')][_0x7c41('0x57')]['document'][_0x7c41('0x7b')]),'getCurrentRevisionId':()=>_0x4b9c11},this[_0x7c41('0x5f')](_0x7c41('0xd7'),!0x1),this[_0x7c41('0x5f')](_0x7c41('0x39'),!0x0),this[_0x7c41('0x5f')](_0x7c41('0x44'),!0x1),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5c')](_0x7c41('0xe4'),!0x0),this[_0x7c41('0x8d')]['conversion'][_0x7c41('0xd9')](_0x7c41('0x36'))[_0x7c41('0x28')]({'view':_0x7c41('0xf9')});}[_0x7c41('0x46')](){this['repository']=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x1c')),this[_0x7c41('0x1')](),this[_0x7c41('0x8d')][_0x7c41('0xae')]['on']('ready',()=>{const _0x598f39=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0x42f359=_0x598f39&&null===_0x598f39[_0x7c41('0x7')]?_0x598f39:null;if(this['_continueCurrentRevision']=!!_0x42f359&&this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xe4')),this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x59')](_0x7c41('0x34'))){const _0x6ba082=this[_0x7c41('0xee')][_0x7c41('0x27')](),_0x42b28d=this['repository'][_0x7c41('0x3b')](_0x6ba082);if(_0x42b28d)this[_0x7c41('0x9c')]=_0x42b28d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x34b3fa=this[_0x7c41('0xee')][_0x7c41('0xa8')]['_operations']['find'](_0x2412b5=>!_0x2412b5['_isInit']),_0x23be81=_0x34b3fa?_0x34b3fa[_0x7c41('0x7d')]:this[_0x7c41('0xee')][_0x7c41('0xa8')][_0x7c41('0x7b')];_0x598f39?(_0x598f39['toVersion']<_0x23be81&&_0x598f39[_0x7c41('0x9b')]({'toVersion':_0x23be81}),this[_0x7c41('0x77')]?(this[_0x7c41('0xee')][_0x7c41('0x27')]=()=>_0x42f359['id'],this[_0x7c41('0x9c')]=_0x42f359[_0x7c41('0xd3')]):(this[_0x7c41('0x9c')]=_0x598f39[_0x7c41('0xc5')],this[_0x7c41('0x77')]=!0x1)):(this['_startingVersion']=_0x23be81,this[_0x7c41('0x77')]=!0x1);}}else _0x42f359&&(this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')]['history'][_0x7c41('0x7b')]=Math['max'](_0x42f359[_0x7c41('0xc5')],this[_0x7c41('0x8d')][_0x7c41('0x57')]['document']['history'][_0x7c41('0x7b')]),_0x42f359[_0x7c41('0xd3')]===_0x42f359[_0x7c41('0xc5')]?(0x0!==_0x42f359['fromVersion']&&(this['_source'][_0x7c41('0x27')]=()=>_0x42f359['id']),this[_0x7c41('0x77')]=!0x1):this[_0x7c41('0x77')]&&(this[_0x7c41('0xee')]['getCurrentRevisionId']=()=>_0x42f359['id'],this['_startingVersion']=_0x42f359[_0x7c41('0xd3')])),this[_0x7c41('0x77')]||(this['_startingVersion']=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x7b')]);this['_revisionDataBuilder']['init'](this[_0x7c41('0xee')][_0x7c41('0xa8')]),this[_0x7c41('0xdd')](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this[_0x7c41('0xe5')]();}),this['bind'](_0x7c41('0xd7'))['to'](this,_0x7c41('0x44'),_0x30f070=>!_0x30f070);}async[_0x7c41('0xe9')](){if(this[_0x7c41('0x2b')][_0x7c41('0x25')]>0x0){const _0x33aafa=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0xeb5bb5=await this[_0x7c41('0xaa')](_0x33aafa),_0x1f9712=await this['getRevisionRootsAttributes'](_0x33aafa);this[_0x7c41('0x87')](_0xeb5bb5,_0x1f9712);}}[_0x7c41('0xa4')](_0xf93380){this[_0x7c41('0xee')]=_0xf93380;}async['update'](){const _0x48e733=await this['_source']['getLatestVersion']();if(_0x48e733>this[_0x7c41('0xf5')][_0x7c41('0xc5')]){await this[_0x7c41('0xb6')]();const _0x50e949=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'to':_0x48e733});_0x50e949[_0x7c41('0xbc')]=_0x50e949[_0x7c41('0x49')][_0x7c41('0xd1')](_0x22d35c=>this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x22d35c)),this['currentRevision'][_0x7c41('0x9b')](_0x50e949);}}async[_0x7c41('0xb6')](){this['_continueCurrentRevision']&&!this[_0x7c41('0xb3')]&&(await this[_0x7c41('0x82')](this['currentRevision']),this[_0x7c41('0x31')][_0x7c41('0x38')](this[_0x7c41('0xf5')]),this[_0x7c41('0xb3')]={'fromVersion':this[_0x7c41('0xf5')][_0x7c41('0xd3')],'authors':this[_0x7c41('0xf5')][_0x7c41('0xbc')][_0x7c41('0xe7')]()});}async[_0x7c41('0x76')](_0x33ff8b={},_0x52bd02=null){const _0x4301ac=[];await this[_0x7c41('0xb6')](),this[_0x7c41('0x77')]=!0x1,_0x52bd02>this[_0x7c41('0xf5')]['toVersion']&&(_0x52bd02=null),null===_0x52bd02&&(_0x52bd02=await this[_0x7c41('0xee')]['getLatestVersion']());const _0x1f79a8=this[_0x7c41('0x90')](_0x52bd02),_0x417229=this[_0x7c41('0x54')]({'from':_0x1f79a8,'to':_0x52bd02});if(this[_0x7c41('0xf5')]['toVersion']<_0x52bd02){const _0x4cf751=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'from':_0x52bd02,'to':_0x52bd02});_0x4cf751[_0x7c41('0xbc')]=[],_0x4cf751[_0x7c41('0x49')]=[],_0x4cf751['id']=this['currentRevision']['id'],this[_0x7c41('0xf5')]['_update'](_0x4cf751,!0x0),delete _0x4cf751[_0x7c41('0xbc')],_0x4301ac[_0x7c41('0x6d')](_0x4cf751);}_0x33ff8b['creatorId']=this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x33ff8b[_0x7c41('0x3a')]=_0x33ff8b[_0x7c41('0x3a')]||null,_0x33ff8b['id']=_0x33ff8b['id']||_0x3a9d44(),_0x33ff8b={..._0x33ff8b,..._0x417229};const _0x17ff11=this[_0x7c41('0x24')](_0x33ff8b);_0x4301ac['push'](_0x33ff8b);const _0x345e62=this[_0x7c41('0x2b')][_0x7c41('0xf4')](_0x17ff11);if(0x0!==_0x345e62){const _0x20203f=this[_0x7c41('0x2b')]['getRevision'](_0x345e62-0x1);if(_0x20203f['fromVersion']!==_0x52bd02){const _0x332678=this[_0x7c41('0x31')]['getData'](_0x52bd02,_0x20203f[_0x7c41('0xc5')]),_0x3d867d={'id':_0x20203f['id'],'diffData':_0x332678[_0x7c41('0x78')],'authorsIds':_0x332678[_0x7c41('0x49')],'authors':_0x332678[_0x7c41('0x49')][_0x7c41('0xd1')](_0x131ec8=>this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x131ec8)),'fromVersion':_0x52bd02};_0x20203f===this[_0x7c41('0xf5')]&&(_0x3d867d[_0x7c41('0x5b')]=new Date(_0x33ff8b[_0x7c41('0x5b')][_0x7c41('0xde')]()+0xa)),_0x20203f['_update'](_0x3d867d,!0x0),delete _0x3d867d['authors'],_0x4301ac[_0x7c41('0x6d')](_0x3d867d);}}if(this[_0x7c41('0x3d')]){for(const _0x526772 of _0x4301ac)this['_bufferUpdate'](_0x526772['id'],_0x526772,!0x0);this[_0x7c41('0xe5')]();}return _0x17ff11;}[_0x7c41('0x24')](_0xbfba2d){const _0x4607bb=this[_0x7c41('0x2b')]['createRevision'](_0xbfba2d);return this[_0x7c41('0x3d')]&&_0x4607bb['on'](_0x7c41('0x9b'),(_0x2e5d96,_0x5e4ffc,_0x4eb0c0)=>{_0x4eb0c0||(this[_0x7c41('0xa7')](_0x5e4ffc['id'],_0x5e4ffc,!0x0),this[_0x7c41('0xe5')]());}),this[_0x7c41('0x2b')]['addRevision'](_0x4607bb,this[_0x7c41('0x21')](_0x4607bb)),_0x4607bb;}async[_0x7c41('0xaa')](_0x1636fc){await this[_0x7c41('0x82')](_0x1636fc);const _0xd22061={};for(const _0x2ae7cc in _0x1636fc[_0x7c41('0x78')]){if(_0x1636fc['diffData'][_0x2ae7cc]['attachChange']&&!_0x1636fc[_0x7c41('0x78')][_0x2ae7cc][_0x7c41('0x29')][_0x7c41('0x94')])continue;const _0x44f9c4=this[_0x7c41('0xa5')](JSON[_0x7c41('0xbb')](_0x1636fc[_0x7c41('0x78')][_0x2ae7cc]['insertions'])),_0x20a395=this[_0x7c41('0x8d')]['editing'][_0x7c41('0x7f')][_0x7c41('0x4e')],_0x6f2741=new _0x1ee88d(_0x20a395,_0x44f9c4[_0x7c41('0xd1')](_0x2d9c42=>J(_0x2d9c42,this[_0x7c41('0x8d')])));this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x32')]['useFillerType'](_0x7c41('0x62')),_0xd22061[_0x2ae7cc]=this['editor']['data'][_0x7c41('0x32')][_0x7c41('0x63')](_0x6f2741),this[_0x7c41('0x8d')][_0x7c41('0xae')]['processor'][_0x7c41('0x60')](_0x7c41('0x6b'));}return _0xd22061;}async['getRevisionRootsAttributes'](_0x269de4){await this[_0x7c41('0x82')](_0x269de4);const _0x9e5f12={};for(const _0x18b571 in _0x269de4['diffData'])_0x269de4[_0x7c41('0x78')][_0x18b571][_0x7c41('0x29')]&&!_0x269de4[_0x7c41('0x78')][_0x18b571]['attachChange'][_0x7c41('0x94')]||(_0x9e5f12[_0x18b571]=_0x269de4[_0x7c41('0x78')][_0x18b571]['attributesAfter']||{});return _0x9e5f12;}['sendBufferedUpdates'](){if(0x0===this[_0x7c41('0xe8')][_0x7c41('0x80')])return;if(this[_0x7c41('0x44')])return;let _0x1e16cc=Array[_0x7c41('0x1a')](this[_0x7c41('0xe8')][_0x7c41('0x6f')]());this[_0x7c41('0xe8')][_0x7c41('0x66')]();for(let _0x1a3439=0x0;_0x1a3439<_0x1e16cc[_0x7c41('0x25')];_0x1a3439++){const _0x301621=_0x1e16cc[_0x1a3439];let _0x2ef5df=!0x1;for(const _0x2bb5f6 of Object[_0x7c41('0xa3')](_0x301621))void 0x0===_0x301621[_0x2bb5f6]?delete _0x301621[_0x2bb5f6]:'id'!==_0x2bb5f6&&(_0x2ef5df=!0x0);_0x2ef5df||(_0x1e16cc[_0x1a3439]=null);}if(_0x1e16cc=_0x1e16cc[_0x7c41('0x42')](_0x403a86=>null!==_0x403a86),!_0x1e16cc['length'])return;for(let _0x13361a=0x0;_0x13361a<_0x1e16cc[_0x7c41('0x25')];_0x13361a++){const _0xa62abe=_0x1e16cc[_0x13361a];void 0x0!==_0xa62abe['fromVersion']&&void 0x0===_0xa62abe[_0x7c41('0xc5')]&&(_0xa62abe[_0x7c41('0xc5')]=this[_0x7c41('0x2b')]['getRevision'](_0xa62abe['id'])[_0x7c41('0xc5')]),void 0x0!==_0xa62abe[_0x7c41('0xc5')]&&void 0x0===_0xa62abe['fromVersion']&&(_0xa62abe['fromVersion']=this['repository'][_0x7c41('0x3b')](_0xa62abe['id'])[_0x7c41('0xd3')]);}const _0x30be03=this[_0x7c41('0x8d')]['config'][_0x7c41('0x12')]('collaboration.channelId');this[_0x7c41('0x44')]=!0x0,this[_0x7c41('0x95')](),this[_0x7c41('0x3d')][_0x7c41('0xc8')](_0x1e16cc,_0x30be03)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3ce109=>{if(_0x3ce109)for(const _0x2adec9 of _0x3ce109)this[_0x7c41('0x9f')]({'id':_0x2adec9['id'],'createdAt':_0x2adec9[_0x7c41('0x5b')]});this[_0x7c41('0x83')](),this[_0x7c41('0xe5')]();});}['_replaceEditorDataWithRevisionData'](_0x2c5b07,_0xa69467){let _0xd0583b=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xc0')),_0x1bccb3=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')](_0x7c41('0xf'));if(void 0x0===_0xd0583b){_0xd0583b={};for(const _0x3a6e6a of this['editor'][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x30')]())_0xd0583b[_0x3a6e6a]='';}if('string'==typeof _0xd0583b&&(_0xd0583b={'main':_0xd0583b}),void 0x0===_0x1bccb3){_0x1bccb3={};for(const _0x4ec625 of this['editor']['model'][_0x7c41('0x4e')][_0x7c41('0x30')]())_0x1bccb3[_0x4ec625]={};}let _0x5c1443=!0x1;const _0x7cbae6=Object[_0x7c41('0xa3')](_0xd0583b),_0x3b3e52=Object[_0x7c41('0xa3')](_0x2c5b07);for(const _0xb2a25d of _0x7cbae6){if(_0xd0583b[_0xb2a25d]!==_0x2c5b07[_0xb2a25d]&&''!==_0xd0583b[_0xb2a25d][_0x7c41('0x23')]()){_0x5c1443=!0x0;break;}if(!_0x42fc09(_0x1bccb3[_0xb2a25d],_0xa69467[_0xb2a25d])&&Object[_0x7c41('0xa3')](_0x1bccb3[_0xb2a25d])['length']>0x0){_0x5c1443=!0x0;break;}}_0x5c1443||(_0x5c1443=_0x3b3e52[_0x7c41('0xea')](_0x4f0dfb=>!this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x4f0dfb))),_0x5c1443&&_0x56d67b(_0x7c41('0xa6'),{'editorData':_0xd0583b,'editorRootsAttributes':_0x1bccb3,'revisionData':_0x2c5b07,'revisionRootsAttributes':_0xa69467}),this[_0x7c41('0x8d')]['config']['set'](_0x7c41('0xc0'),_0x2c5b07),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5f')](_0x7c41('0xf'),_0xa69467);}[_0x7c41('0x95')](){if(!this[_0x7c41('0x0')]){const _0x475237=this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x2c'));this[_0x7c41('0x0')]=_0x475237['add'](_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x7c41('0xdc')));}}[_0x7c41('0x83')](){this[_0x7c41('0x0')]&&(this['editor']['plugins'][_0x7c41('0x12')]('PendingActions')[_0x7c41('0xb0')](this[_0x7c41('0x0')]),this[_0x7c41('0x0')]=null);}[_0x7c41('0x21')](_0x5b9b44){const _0x3b9e26=this[_0x7c41('0x2b')]['getRevisions']();_0x3b9e26[_0x7c41('0xcd')]();let _0x1b41fd=0x0;for(;_0x1b41fd<_0x3b9e26[_0x7c41('0x25')];){const _0x3fbfe5=_0x3b9e26[_0x1b41fd];if(_0x3fbfe5===this[_0x7c41('0xf5')]){_0x1b41fd++;continue;}if(_0x3fbfe5['id']===this['_initialRevisionId'])break;const _0x571fe9=_0x5b9b44[_0x7c41('0xc5')]-_0x3fbfe5[_0x7c41('0xc5')]||_0x5b9b44[_0x7c41('0xd3')]-_0x3fbfe5[_0x7c41('0xd3')];if(_0x571fe9>0x0)break;if(_0x571fe9<0x0)_0x1b41fd++;else{if(!_0x5b9b44[_0x7c41('0x7')]&&_0x3fbfe5['creator'])break;if(_0x3fbfe5[_0x7c41('0x7')]||!_0x5b9b44[_0x7c41('0x7')]){if(_0x5b9b44['createdAt']>_0x3fbfe5[_0x7c41('0x5b')])break;_0x1b41fd++;}else _0x1b41fd++;}}return _0x1b41fd;}[_0x7c41('0x9f')](_0x4997a3){const _0x509ad8=this[_0x7c41('0x2b')]['getRevision'](_0x4997a3['id']);if(_0x4997a3['createdAt']&&(_0x4997a3[_0x7c41('0x5b')]=new Date(_0x4997a3[_0x7c41('0x5b')])),_0x4997a3[_0x7c41('0x49')]){const _0x496315=this['editor']['plugins']['get'](_0x7c41('0x6c'));_0x4997a3[_0x7c41('0xbc')]=_0x4997a3[_0x7c41('0x49')]['map'](_0x49a78e=>_0x496315['getUser'](_0x49a78e));}_0x509ad8[_0x7c41('0x9b')](_0x4997a3,!0x0);}[_0x7c41('0x54')]({revision:_0xd99abb=null,from:_0x2a2453=null,to:_0xfe57b0=null}){_0x2a2453=null!==_0x2a2453?_0x2a2453:_0xd99abb[_0x7c41('0xd3')],_0xfe57b0=null!==_0xfe57b0?_0xfe57b0:_0xd99abb['toVersion'];const _0x432a62=this[_0x7c41('0x31')]['getData'](_0x2a2453,_0xfe57b0),_0x4c4261={'diffData':_0x432a62[_0x7c41('0x78')],'authorsIds':_0x432a62[_0x7c41('0x49')],'fromVersion':_0x2a2453,'toVersion':_0xfe57b0};if(!_0xd99abb||_0xfe57b0!==_0xd99abb[_0x7c41('0xc5')]){const _0x30b3d4=_0xfe57b0-0x1,_0x1fd6e7=this[_0x7c41('0xee')][_0x7c41('0xa8')]['getOperation'](_0x30b3d4);_0x4c4261[_0x7c41('0x5b')]=_0x1fd6e7&&_0x1fd6e7[_0x7c41('0x5b')]||new Date();}if(this[_0x7c41('0xb3')]&&_0x2a2453===this[_0x7c41('0xb3')][_0x7c41('0xd3')])for(const _0x6d670e of this[_0x7c41('0xb3')]['authors'])_0x4c4261[_0x7c41('0x49')][_0x7c41('0x69')](_0x6d670e['id'])||_0x4c4261[_0x7c41('0x49')][_0x7c41('0x6d')](_0x6d670e['id']);return _0x4c4261;}[_0x7c41('0x82')](_0xe25a1f){if(!_0xe25a1f||_0xe25a1f[_0x7c41('0x78')])return Promise[_0x7c41('0xcf')]();{const _0x288825=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get']('collaboration.channelId');return this[_0x7c41('0x3d')][_0x7c41('0x3b')]({'channelId':_0x288825,'revisionId':_0xe25a1f['id']})[_0x7c41('0xd4')](_0x4200dd=>{_0xe25a1f[_0x7c41('0x78')]=_0x4200dd['diffData'];});}}['_bufferUpdate'](_0x4cc393,_0x10b49e,_0x16bd26){if(this[_0x7c41('0xe8')][_0x7c41('0x59')](_0x4cc393)){const _0x366b6a=this[_0x7c41('0xe8')][_0x7c41('0x12')](_0x4cc393);_0x10b49e=_0x16bd26?{..._0x366b6a,..._0x10b49e}:{..._0x10b49e,..._0x366b6a};}this[_0x7c41('0xe8')][_0x7c41('0x5f')](_0x4cc393,_0x10b49e);}[_0x7c41('0x90')](_0x4e99e2){const _0x1e45ff=this[_0x7c41('0x2b')]['getRevisions']();_0x1e45ff[_0x7c41('0xcd')](),_0x1e45ff['shift']();const _0x4e8be7=_0x1e45ff[_0x7c41('0x79')](_0x272ff1=>_0x272ff1[_0x7c41('0xc5')]<=_0x4e99e2)[_0x7c41('0xc5')];return _0x4e8be7<this[_0x7c41('0x9c')]?this['_startingVersion']:_0x4e8be7;}[_0x7c41('0xdd')](_0x44b175){const _0x45279b=this[_0x7c41('0x2b')][_0x7c41('0x3b')](this[_0x7c41('0x2b')]['length']-0x1);if(_0x45279b)this[_0x7c41('0x26')]=_0x45279b['id'];else{const _0x2099ea=!this[_0x7c41('0x8d')]['model']['document'][_0x7c41('0x5a')][_0x7c41('0x79')](_0x41b171=>this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x3e')](_0x41b171)),_0x100d3d=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x4b44ce=_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x2099ea?'Empty\x20document':_0x7c41('0x22'));this['_makeRevision']({'from':_0x44b175,'to':_0x44b175,'id':this[_0x7c41('0x26')],'name':_0x4b44ce,'creatorId':_0x100d3d});}}[_0x7c41('0xc1')](_0x401cce){const _0x37af35=this[_0x7c41('0xee')][_0x7c41('0x27')]();this['currentRevision']=this[_0x7c41('0x2b')][_0x7c41('0x3b')](_0x37af35),this[_0x7c41('0xf5')]||(this['currentRevision']=this[_0x7c41('0xc2')]({'from':_0x401cce,'to':_0x401cce,'id':_0x37af35,'name':'','creatorId':null}));}[_0x7c41('0xc2')]({name:_0x345c50,from:_0xc9b80a,to:_0x3f0077,creatorId:_0x56f820,id:_0x8645ed}){const _0x151a2f=this[_0x7c41('0x54')]({'from':_0xc9b80a,'to':_0x3f0077});_0x151a2f[_0x7c41('0x3a')]=_0x345c50,_0x151a2f['creatorId']=_0x56f820,_0x151a2f['id']=_0x8645ed;const _0x351f4c=this[_0x7c41('0x24')](_0x151a2f);return this[_0x7c41('0x3d')]&&this[_0x7c41('0xa7')](_0x151a2f['id'],_0x151a2f,!0x0),_0x351f4c;}[_0x7c41('0x1')](){this[_0x7c41('0x8d')][_0x7c41('0x8c')][_0x7c41('0xd9')](_0x7c41('0xce'))['markerToData']({'model':_0x7c41('0xf9')});}['_removeRevisionMarkers'](_0x46379a){return(_0x46379a=_0x46379a[_0x7c41('0x42')](_0x318972=>!_0x318972['name']||_0x7c41('0xa1')!==_0x318972[_0x7c41('0x3a')]&&_0x7c41('0x4')!==_0x318972[_0x7c41('0x3a')]))[_0x7c41('0x33')](_0x2f1c96=>{_0x7c41('0x61')!=typeof _0x2f1c96&&(_0x2f1c96[_0x7c41('0xc4')]=this[_0x7c41('0xa5')](_0x2f1c96['children']),_0x2f1c96[_0x7c41('0x17')]=_0x2f1c96[_0x7c41('0x17')][_0x7c41('0x42')](_0x315d4d=>!_0x315d4d[0x0][_0x7c41('0xef')]('data-revision-')));}),_0x46379a;}}function J(_0x22ccd1,_0x467977){const _0x221d31=_0x467977[_0x7c41('0xa2')][_0x7c41('0x7f')][_0x7c41('0x4e')];if('string'==typeof _0x22ccd1)return new _0x16e3d3(_0x221d31,_0x22ccd1);{const _0x106e94=_0x22ccd1[_0x7c41('0xc4')][_0x7c41('0xd1')](_0x461e72=>J(_0x461e72,_0x467977));return new(B[_0x22ccd1[(_0x7c41('0xd2'))]]||_0x3e735f)(_0x221d31,_0x22ccd1[_0x7c41('0x3a')],_0x22ccd1[_0x7c41('0x17')],_0x106e94);}}class H{constructor(_0x33e8c9){this[_0x7c41('0x8d')]=_0x33e8c9,this['_savedMetaData']=new Map(),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0x47')]=new Map(),this[_0x7c41('0xb2')]=new Map(),this[_0x7c41('0xe')]=new Map(),this[_0x7c41('0xa0')]=new Map(),this[_0x7c41('0xb5')]=new Map(),this[_0x7c41('0xaf')]=new Map(),this[_0x7c41('0xf3')]=new Map(),this['_touched']=new Map(),this[_0x7c41('0x9d')]=new Map(),this[_0x7c41('0xb')]=new Map(),this[_0x7c41('0x1f')]=0x1;}[_0x7c41('0x46')](_0x578982){this[_0x7c41('0x88')]=_0x578982;const _0x44f810=new Map(),_0x2f586f=new Map(),_0x246140=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x5a')][_0x7c41('0xd1')](_0x5039f0=>_0x5039f0[_0x7c41('0x2e')]);for(const _0x118c40 of _0x246140){const _0x30ef35=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x118c40),_0x4dde97=q(_0x30ef35);_0x44f810[_0x7c41('0x5f')](_0x118c40,_0x4dde97),_0x2f586f[_0x7c41('0x5f')](_0x118c40,Object['fromEntries'](_0x30ef35['getAttributes']()));}const _0x21b0c8=Array[_0x7c41('0x1a')](this[_0x7c41('0x8d')]['model']['markers'])[_0x7c41('0xd1')](_0x234c97=>[_0x234c97[_0x7c41('0x3a')],_0x234c97[_0x7c41('0x2f')]()]),_0x69c552=this[_0x7c41('0x88')][_0x7c41('0x7b')];this[_0x7c41('0xc3')](_0x69c552,_0x44f810,_0x21b0c8,_0x2f586f),this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x2a5cf1=new Map(),_0x541d02=new Map();for(const _0xd08703 of _0x246140){const _0x467e3a=G(_0xd08703);_0x2a5cf1['set'](_0xd08703,_0x467e3a),_0x541d02[_0x7c41('0x5f')](_0xd08703,{});}this[_0x7c41('0xc3')](Number[_0x7c41('0x20')],_0x2a5cf1,[],_0x541d02);}[_0x7c41('0x48')](_0x1622d9,_0x109272){if(this[_0x7c41('0x9')]===_0x1622d9&&this['_lastTo']<=_0x109272)this[_0x7c41('0xbf')][_0x7c41('0x80')]>0x1&&this[_0x7c41('0x40')](this['_lastTo']),this[_0x7c41('0x55')](this[_0x7c41('0x11')],_0x109272,!0x0);else{if(!this[_0x7c41('0xbf')][_0x7c41('0x59')](_0x1622d9)){const _0x34bf36=this[_0x7c41('0x91')](_0x1622d9);this['_calculateMetaData'](_0x34bf36,_0x1622d9,!0x1);}this[_0x7c41('0xc9')](_0x1622d9,_0x109272,!0x0);}return this[_0x7c41('0x9')]=_0x1622d9,this[_0x7c41('0x11')]=_0x109272,this[_0x7c41('0x45')]();}[_0x7c41('0x38')](_0x41baec){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=_0x41baec['fromVersion'],this[_0x7c41('0x11')]=_0x41baec[_0x7c41('0xc5')];for(const _0x1da243 in _0x41baec[_0x7c41('0x78')]){const _0x19e07f=_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0x29')],_0x5e023d=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xca')])||{},_0x124609=this[_0x7c41('0xb8')](_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xed')]);_0x124609['rootName']=_0x1da243,_0x124609[_0x7c41('0x14')]=!_0x19e07f||!_0x19e07f['isAttached'],_0x124609[_0x7c41('0x94')]=()=>_0x124609[_0x7c41('0x14')],this['_baseRoots'][_0x7c41('0x5f')](_0x1da243,_0x124609),this[_0x7c41('0xb5')][_0x7c41('0x5f')](_0x1da243,_0x5e023d),_0x19e07f&&this[_0x7c41('0xb')][_0x7c41('0x5f')](_0x1da243,_0x19e07f);const _0x35c441=this[_0x7c41('0x4c')](_0x124609);this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x1da243,_0x35c441);for(const [_0xf65b1c,_0xfce9c2]of _0x124609['markers']){if(!_0xf65b1c[_0x7c41('0xef')]('revision:'))continue;const _0xc2d490=_0xf65b1c[_0x7c41('0x52')](':')[0x2];for(const _0x15e928 of _0xfce9c2[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x1d36dc=this[_0x7c41('0x56')](_0x15e928),_0x8d1eb=_0x7c41('0x71')==_0x15e928[_0x7c41('0xd2')]?_0x15e928[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x15e928['previousPosition'][_0x7c41('0x65')],_0x480743=_0x35c441[_0x7c41('0x85')](_0x8d1eb)[_0x7c41('0x8')](_0x1d36dc);this['_touched'][_0x7c41('0x5f')](_0x480743,{'userId':_0xc2d490});}}}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x1f8e92=[...Array(this[_0x7c41('0x1f')])[_0x7c41('0xa3')]()][_0x7c41('0xe7')](0x1)['filter'](_0xe1f548=>!this[_0x7c41('0x8f')][_0x7c41('0x59')](_0xe1f548));let _0x5d5bde=0x0;const _0x5111b2=new Map();for(const _0x2251c2 in _0x41baec[_0x7c41('0x78')]){const _0x10eeee=_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x29')],_0x1d6483=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x2a')])||{},_0x5e41ea=this[_0x7c41('0xb8')](_0x41baec['diffData'][_0x2251c2][_0x7c41('0x9e')]);_0x5e41ea[_0x7c41('0x2e')]=_0x2251c2,_0x5e41ea['_isAttached']=!_0x10eeee||_0x10eeee[_0x7c41('0x94')],_0x5e41ea['isAttached']=()=>_0x5e41ea['_isAttached'],this['_diffRoots'][_0x7c41('0x5f')](_0x2251c2,_0x5e41ea),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x2251c2,_0x1d6483);const _0x147df9=this[_0x7c41('0x4c')](_0x5e41ea,Number['NEGATIVE_INFINITY']);this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x2251c2,_0x147df9),_0x5111b2[_0x7c41('0x5f')](_0x2251c2,_0x5e41ea[_0x7c41('0x94')]()?_0x1d6483:{});for(const [_0x59f8de,_0x21238b]of _0x5e41ea[_0x7c41('0xd')]){if(!_0x59f8de['startsWith'](_0x7c41('0x1e')))continue;const _0xc74ed1=_0x59f8de[_0x7c41('0x52')](':')[0x2];for(const _0x2eed13 of _0x21238b[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x380268=this['_getVidAttributeName'](_0x2eed13),_0x3c9743=this[_0x7c41('0x1f')]++,_0x4ad40a='elementEnd'==_0x2eed13[_0x7c41('0xd2')]?_0x2eed13[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x2eed13['previousPosition'][_0x7c41('0x65')];_0x147df9[_0x7c41('0x85')](_0x4ad40a)['_setAttribute'](_0x380268,_0x3c9743),this['_touched']['set'](_0x3c9743,{'userId':_0xc74ed1});}}for(const _0x5f144a of this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0xe1')](_0x5e41ea)[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x3db3ea=this[_0x7c41('0x56')](_0x5f144a),_0x428099=_0x7c41('0x71')==_0x5f144a[_0x7c41('0xd2')]?_0x5f144a['previousPosition'][_0x7c41('0x65')][_0x7c41('0xe7')](0x0,-0x1):_0x5f144a[_0x7c41('0x41')][_0x7c41('0x65')],_0x120605=_0x147df9[_0x7c41('0x85')](_0x428099);_0x120605[_0x7c41('0x8')](_0x3db3ea)>0x0||_0x120605[_0x7c41('0x1b')](_0x3db3ea,_0x1f8e92[_0x5d5bde++]);}for(const [_0x482a08,_0x11247d]of _0x5e41ea['markers'])_0x482a08['startsWith'](_0x7c41('0x1e'))||this[_0x7c41('0x47')]['set'](_0x482a08,_0x11247d);}const _0x333d62=G(_0x7c41('0xdb'));this['_baseRoots'][_0x7c41('0x5f')]('$graveyard',_0x333d62),this[_0x7c41('0xf3')]['set']('$graveyard',this['_makeIdsRoot'](_0x333d62,0x1));const _0x56ca0d=G(_0x7c41('0xdb'));this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x7c41('0xdb'),_0x56ca0d),this[_0x7c41('0xaf')][_0x7c41('0x5f')]('$graveyard',this[_0x7c41('0x4c')](_0x56ca0d,0x1));const _0x5218a0=Array[_0x7c41('0x1a')](this['_diffRoots'])[_0x7c41('0xd1')](([_0xfeea69,_0x2cc5fa])=>[_0xfeea69,q(_0x2cc5fa)]);this[_0x7c41('0xc3')](this[_0x7c41('0x11')],_0x5218a0,this[_0x7c41('0x47')],_0x5111b2);}['_makeModelFromViewString'](_0x1e48e7){const _0x1d7117=JSON[_0x7c41('0xbb')](_0x1e48e7),_0x375d42=this[_0x7c41('0x8d')][_0x7c41('0xa2')]['view'][_0x7c41('0x4e')],_0x4bae0a=new _0x1ee88d(_0x375d42,_0x1d7117[_0x7c41('0xd1')](_0x1be181=>J(_0x1be181,this[_0x7c41('0x8d')])));return this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x84')](_0x4bae0a);}[_0x7c41('0xc3')](_0x837986,_0x2d0e01,_0x5345d8,_0x1bf2fa){const _0x15070a=new Map(_0x2d0e01),_0x49234e=new Map(_0x590a64(_0x1bf2fa)),_0x49f73f=new Map();for(const [_0x5ece6b,_0x94e91d]of _0x5345d8)_0x49f73f[_0x7c41('0x5f')](_0x5ece6b,{'start':_0x94e91d[_0x7c41('0x16')][_0x7c41('0xbd')](),'end':_0x94e91d['end'][_0x7c41('0xbd')](),'rootName':_0x94e91d['root']['rootName']});this[_0x7c41('0xbf')][_0x7c41('0x5f')](_0x837986,{'roots':_0x15070a,'markers':_0x49f73f,'rootsAttributes':_0x49234e});}['_removeMetaData'](_0x596d44){this[_0x7c41('0xbf')][_0x7c41('0x50')](_0x596d44);}[_0x7c41('0x4f')](){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0xbf')]['clear'](),this[_0x7c41('0x46')](this[_0x7c41('0x88')]);}[_0x7c41('0xe2')](){this[_0x7c41('0x8f')]['clear'](),this[_0x7c41('0x9d')][_0x7c41('0x66')](),this[_0x7c41('0xb')]['clear'](),this[_0x7c41('0xb2')][_0x7c41('0x66')](),this['_diffRootsAttributes']['clear'](),this[_0x7c41('0xa0')][_0x7c41('0x66')](),this['_baseRootsAttributes'][_0x7c41('0x66')](),this[_0x7c41('0xaf')][_0x7c41('0x66')](),this['_baseIdsRoots']['clear'](),this[_0x7c41('0x47')][_0x7c41('0x66')](),this[_0x7c41('0x1f')]=0x1,this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];}[_0x7c41('0x4c')](_0x190073,_0x3cb2f9=null){let _0x29210e=null;_0x190073['is'](_0x7c41('0x92'))||(_0x29210e=new _0x26a125(_0x190073[_0x7c41('0x3a')],{'vid_start':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));const _0x1b122e=[];for(const _0x4c51a7 of _0x190073[_0x7c41('0x81')]())if(_0x4c51a7['is'](_0x7c41('0x67'))){_0x1b122e[_0x7c41('0x6d')](this[_0x7c41('0x4c')](_0x4c51a7,_0x3cb2f9));const _0xed48a4=_0x1b122e[_0x1b122e[_0x7c41('0x25')]-0x1];null!==_0x3cb2f9&&(_0x3cb2f9=_0xed48a4['is'](_0x7c41('0x67'),'$text')?_0xed48a4['getAttribute'](_0x7c41('0x7e'))+0x1:_0xed48a4['getAttribute'](_0x7c41('0xd5'))+0x1);}else for(let _0x2d3b49=0x0;_0x2d3b49<_0x4c51a7[_0x7c41('0x99')];_0x2d3b49++)_0x1b122e[_0x7c41('0x6d')](new _0x26a125('$text',{'vid':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));if(_0x190073['is'](_0x7c41('0x92'))){const _0x1dfa99=G(_0x190073[_0x7c41('0x2e')]);return _0x1dfa99[_0x7c41('0x19')](0x0,_0x1b122e),_0x1dfa99;}return _0x29210e['_setAttribute'](_0x7c41('0xd5'),null===_0x3cb2f9?this['_revisionId']++:_0x3cb2f9++),_0x29210e[_0x7c41('0x19')](0x0,_0x1b122e),_0x29210e;}[_0x7c41('0xc9')](_0x1cebe8,_0x55d0f0,_0xe024d6){this[_0x7c41('0xe2')]();const {roots:_0x4be6b2,markers:_0x545bb5,rootsAttributes:_0x272b23}=this[_0x7c41('0xbf')][_0x7c41('0x12')](_0x1cebe8);this[_0x7c41('0xa0')]=new Map(_0x4be6b2),this[_0x7c41('0xb5')]=new Map(_0x590a64(_0x272b23));for(const [_0x2de106,_0x9dbaed]of this[_0x7c41('0xa0')])if(_0x7c41('0xdb')!==_0x2de106&&(this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x2de106,q(_0x9dbaed)),this[_0x7c41('0xe')]=new Map(_0x590a64(_0x272b23)),_0xe024d6)){const _0x2d37d7=this[_0x7c41('0x1f')];this['_idsRoots']['set'](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed)),this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed,_0x2d37d7));}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')],this[_0x7c41('0xb2')]['set'](_0x7c41('0xdb'),q(this['_baseRoots'][_0x7c41('0x12')](_0x7c41('0xdb')))),_0xe024d6&&this[_0x7c41('0xaf')]['set'](_0x7c41('0xdb'),this['_makeIdsRoot'](this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x7c41('0xdb'))));for(const [_0x26e4cb,_0x1fb9b6]of _0x545bb5){const _0x1668f0=this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x1fb9b6[_0x7c41('0x2e')]),_0x3b14bb=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x1fb9b6['rootName']),_0x42c0b3=new _0x34fae3(this[_0x7c41('0x6')](_0x1fb9b6[_0x7c41('0x16')],_0x1668f0),this[_0x7c41('0x6')](_0x1fb9b6['end'],_0x1668f0)),_0x141ab0=this[_0x7c41('0x51')](_0x42c0b3,_0x3b14bb);_0x1668f0[_0x7c41('0xd')][_0x7c41('0x5f')](_0x26e4cb,_0x42c0b3),this[_0x7c41('0x47')][_0x7c41('0x5f')](_0x26e4cb,_0x141ab0);}this[_0x7c41('0x55')](_0x1cebe8,_0x55d0f0,_0xe024d6);}[_0x7c41('0x55')](_0x321815,_0x21c26e,_0x4ac605){for(const _0x4fe269 of this[_0x7c41('0x88')]['getOperations'](_0x321815,_0x21c26e))this[_0x7c41('0xc')](_0x4fe269,_0x4ac605);for(const _0x42b228 of this[_0x7c41('0xb2')][_0x7c41('0x6f')]())_0x42b228[_0x7c41('0xd')][_0x7c41('0x66')]();for(const [_0x3483a1,_0x8354fc]of this['_markers']){this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x8354fc[_0x7c41('0x64')]['rootName'])[_0x7c41('0xd')]['set'](_0x3483a1,_0x8354fc[_0x7c41('0xbd')]());}const _0x10528c=new Map(),_0x407503=new Map();for(const [_0x4b4dcc,_0x2995e4]of this['_diffRoots'])_0x10528c[_0x7c41('0x5f')](_0x4b4dcc,q(_0x2995e4)),_0x407503['set'](_0x4b4dcc,this[_0x7c41('0xe')][_0x7c41('0x12')](_0x4b4dcc));this[_0x7c41('0xc3')](_0x21c26e,_0x10528c,this[_0x7c41('0x47')],_0x407503);}[_0x7c41('0x91')](_0x244b3b){const _0x26830c=Array[_0x7c41('0x1a')](this['_savedMetaData'][_0x7c41('0xa3')]());_0x26830c[_0x7c41('0x86')]((_0x21397c,_0x41ad8f)=>_0x21397c-_0x41ad8f),_0x26830c[_0x7c41('0xcd')]();for(const _0x2e91e2 of _0x26830c)if(_0x2e91e2<_0x244b3b)return _0x2e91e2;return Number[_0x7c41('0x20')];}[_0x7c41('0x74')](_0xae9941,_0x22e2d4){const _0x170023=Array[_0x7c41('0x1a')](_0x22e2d4[_0x7c41('0xd')])['map'](([_0x2f42d7,_0x126720])=>[_0x2f42d7,this[_0x7c41('0x51')](_0x126720,_0xae9941)]);_0xae9941[_0x7c41('0xd')]=new Map(_0x170023);}[_0x7c41('0xad')](_0x3814af){for(const _0x3f886e of this['_markers'][_0x7c41('0x6f')]()){const _0x19811c=_0x3f886e['getTransformedByOperation'](_0x3814af),_0x3659a5=_0x34fae3[_0x7c41('0xb4')](_0x19811c);_0x3f886e[_0x7c41('0x16')]=_0x3659a5[_0x7c41('0x16')],_0x3f886e[_0x7c41('0x7c')]=_0x3659a5[_0x7c41('0x7c')];}}[_0x7c41('0xc')](_0x1fc110,_0xda69aa){if(_0x7c41('0xe6')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x5d')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x43')](_0x1fc110,_0xda69aa);if('insert'==_0x1fc110['type']){const _0x161caf=_0x1fc110['position'][_0x7c41('0x64')][_0x7c41('0x2e')];this[_0x7c41('0xb2')]['has'](_0x161caf)||(this[_0x7c41('0xb2')]['set'](_0x161caf,G(_0x161caf,!0x0)),this['_diffRootsAttributes']['set'](_0x161caf,{}),_0xda69aa&&this[_0x7c41('0xaf')]['set'](_0x161caf,G(_0x161caf,!0x0)));}else{if(_0x7c41('0x13')==_0x1fc110['type']||_0x7c41('0x15')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x58')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x4b')](_0x1fc110);}const _0x4bc573=this[_0x7c41('0xf1')](_0x1fc110,this[_0x7c41('0xb2')]);if('marker'!==_0x1fc110[_0x7c41('0xd2')]&&(_0x4bc573[_0x7c41('0x2d')](),this[_0x7c41('0xad')](_0x4bc573)),_0xda69aa)switch(_0x4bc573[_0x7c41('0xd2')]){case _0x7c41('0xe0'):this[_0x7c41('0x5')](_0x1fc110);break;case'move':case _0x7c41('0xb0'):case _0x7c41('0xd8'):this[_0x7c41('0xd0')](_0x1fc110);break;case _0x7c41('0x2'):this[_0x7c41('0x8b')](_0x1fc110);break;case'split':this[_0x7c41('0x10')](_0x1fc110);break;case _0x7c41('0x93'):this[_0x7c41('0x68')](_0x1fc110);}}[_0x7c41('0xf1')](_0x5d2736,_0x5a8308){const _0x12f7a9=_0x5d2736[_0x7c41('0xbd')]();return _0x12f7a9[_0x7c41('0x35')]=_0x5d2736[_0x7c41('0x35')],this[_0x7c41('0xda')](_0x12f7a9,_0x5a8308),_0x12f7a9;}[_0x7c41('0x73')](_0x12b024){return _0x12b024['map'](_0x357fee=>{const _0x355919=this[_0x7c41('0x56')](_0x357fee);return Number(_0x357fee['item'][_0x7c41('0x8')](_0x355919));});}['_generateTape'](_0x4f181b,_0x371c1b){if(_0x4f181b['is']('element',_0x7c41('0xb7')))_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0xf2')});else{_0x4f181b['is'](_0x7c41('0x67'))&&_0x371c1b['push']({'item':_0x4f181b,'type':_0x7c41('0x18')});for(const _0x163864 of _0x4f181b[_0x7c41('0x81')]())this[_0x7c41('0xba')](_0x163864,_0x371c1b);_0x4f181b['is']('element')&&_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0x71')});}return _0x371c1b;}[_0x7c41('0x45')](){const _0x2ca12a=new Map(this[_0x7c41('0x8f')]),_0x3a6a0a=new Map(_0x2ca12a),_0x456ab0=new Map(),_0x4ba08e={'insertions':{},'deletions':{}},_0x424ccf={'insertions':{},'deletions':{}},_0x350faf=new Map(),_0x10d545=new Set([...this[_0x7c41('0xa0')][_0x7c41('0xa3')](),...this['_diffRoots']['keys']()]);_0x10d545[_0x7c41('0x50')]('$graveyard');for(const _0x5be5f3 of _0x10d545){const _0x148a64=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),_0x44b932=this['_baseRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1);_0x148a64['isAttached']()||_0x44b932['isAttached']()?(_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3]=q(_0x148a64),_0x4ba08e[_0x7c41('0xed')][_0x5be5f3]=q(_0x44b932),this['_copyMarkers'](_0x4ba08e[_0x7c41('0xed')][_0x5be5f3],_0x44b932),this[_0x7c41('0x74')](_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3],_0x148a64),_0x424ccf[_0x7c41('0x9e')][_0x5be5f3]=this['_generateTape'](this[_0x7c41('0xaf')][_0x7c41('0x12')](_0x5be5f3),[]),_0x424ccf[_0x7c41('0xed')][_0x5be5f3]=this[_0x7c41('0xba')](this['_baseIdsRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),[])):_0x10d545[_0x7c41('0x50')](_0x5be5f3);}for(const _0x28e494 of _0x10d545){const _0x3f1cc7=_0x424ccf['insertions'][_0x28e494];for(const _0x54b1fc of _0x3f1cc7){const _0x592acf=this['_getVidAttributeName'](_0x54b1fc),_0x1a5c81=_0x54b1fc[_0x7c41('0x97')][_0x7c41('0x8')](_0x592acf);_0x3a6a0a['delete'](_0x1a5c81),_0x1a5c81>=this[_0x7c41('0xdf')]&&_0x456ab0[_0x7c41('0x5f')](_0x1a5c81,_0x2ca12a[_0x7c41('0x12')](_0x1a5c81));}}for(const _0x16b800 of _0x10d545){const _0x4f21de=_0x424ccf[_0x7c41('0x9e')][_0x16b800],_0x531b6b=this['_getBaseVids'](_0x424ccf[_0x7c41('0xed')][_0x16b800]);let _0x35d397=0x0;for(const _0x5e5858 of _0x4f21de){const _0x2f3e8d=this['_getVidAttributeName'](_0x5e5858),_0x3a9c9b=_0x5e5858[_0x7c41('0x97')][_0x7c41('0x8')](_0x2f3e8d);if(!_0x456ab0[_0x7c41('0x59')](_0x3a9c9b)&&!_0x350faf['has'](_0x3a9c9b)){if(_0x3a6a0a[_0x7c41('0x59')](_0x3a9c9b))_0x35d397++;else{if(_0x3a9c9b!=_0x531b6b[_0x35d397]){const _0x2a6f8f=_0x2ca12a['get'](_0x3a9c9b)||_0x2ca12a['get'](_0x531b6b[_0x35d397]);for(;_0x3a9c9b!=_0x531b6b[_0x35d397];)_0x3a6a0a['has'](_0x531b6b[_0x35d397])||(_0x350faf['set'](_0x531b6b[_0x35d397],_0x2a6f8f),_0x2ca12a[_0x7c41('0x5f')](_0x531b6b[_0x35d397],_0x2a6f8f)),_0x35d397++;}_0x35d397++;}}}}for(const _0x10cc0b of _0x10d545){const _0x4811e1=_0x424ccf[_0x7c41('0x9e')][_0x10cc0b];for(const _0x217579 of _0x4811e1){const _0x218959=this[_0x7c41('0x56')](_0x217579),_0x5ca700=_0x217579['item'][_0x7c41('0x8')](_0x218959);if(_0x350faf[_0x7c41('0x59')](_0x5ca700)){const _0x2ce60f=_0x350faf['get'](_0x5ca700);_0x3a6a0a['has'](_0x5ca700)||_0x3a6a0a[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f}),_0x456ab0[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f});}}}for(const _0x2d4cb1 of _0x3a6a0a[_0x7c41('0xa3')]())_0x2d4cb1>=this[_0x7c41('0xdf')]&&_0x3a6a0a[_0x7c41('0x50')](_0x2d4cb1);const _0x5c1693=new Map();for(const _0x4cb926 of _0x10d545){let _0x23abbe=_0x424ccf[_0x7c41('0x9e')][_0x4cb926];for(const _0x21aa9e of _0x23abbe)if(_0x21aa9e[_0x7c41('0x97')]['is']('element','tableCell')){const _0x287d4b=this[_0x7c41('0x56')](_0x21aa9e),_0x1cb0e8=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x8')](_0x287d4b);if(_0x456ab0['has'](_0x1cb0e8)){const _0x2926db=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x5e')][_0x7c41('0x5e')][_0x7c41('0x8')](_0x7c41('0x6e')),_0x286130=_0x5c1693['get'](_0x2926db)||new Set();_0x286130[_0x7c41('0xf0')](_0x456ab0[_0x7c41('0x12')](_0x1cb0e8)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x2926db,_0x286130);}}_0x23abbe=_0x424ccf['deletions'][_0x4cb926];for(const _0x36d76b of _0x23abbe)if(_0x36d76b[_0x7c41('0x97')]['is']('element',_0x7c41('0x4d'))){const _0x185508=this['_getVidAttributeName'](_0x36d76b),_0xf5420=_0x36d76b[_0x7c41('0x97')][_0x7c41('0x8')](_0x185508);if(_0x3a6a0a[_0x7c41('0x59')](_0xf5420)){const _0x397c89=_0x36d76b[_0x7c41('0x97')]['parent'][_0x7c41('0x5e')][_0x7c41('0x8')]('vid_start'),_0x108934=_0x5c1693[_0x7c41('0x12')](_0x397c89)||new Set();_0x108934[_0x7c41('0xf0')](_0x3a6a0a[_0x7c41('0x12')](_0xf5420)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x397c89,_0x108934);}}for(const _0x6f2c32 of _0x5c1693[_0x7c41('0xa3')]())(_0x456ab0[_0x7c41('0x59')](_0x6f2c32)||_0x3a6a0a[_0x7c41('0x59')](_0x6f2c32))&&_0x5c1693[_0x7c41('0x50')](_0x6f2c32);}for(const _0x1fde96 of _0x10d545){const _0x55690d=_0x424ccf[_0x7c41('0x9e')][_0x1fde96];let _0x40b8ad=null,_0x424b6e=null;for(const _0x543afb of _0x55690d){const _0x16950a=this[_0x7c41('0x56')](_0x543afb),_0x23183b=_0x543afb['item'][_0x7c41('0x8')](_0x16950a),_0x38b757=_0x5c1693['get'](_0x23183b);_0x38b757&&_0x7c41('0x18')==_0x543afb['type']&&(_0x40b8ad=Array[_0x7c41('0x1a')](_0x38b757)[0x0],_0x424b6e=_0x543afb[_0x7c41('0x97')][_0x7c41('0x8')]('vid_end')),_0x40b8ad&&(_0x3a6a0a[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad}),_0x456ab0[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad})),_0x23183b==_0x424b6e&&(_0x40b8ad=null,_0x424b6e=null);}}const _0x582080={},_0x5ca99d=new Set();for(const _0x1fe503 of _0x10d545){const _0x57f305=_0x4ba08e[_0x7c41('0xed')][_0x1fe503],_0x167639=_0x4ba08e[_0x7c41('0x9e')][_0x1fe503];for(const {userId:_0x22d487}of this['_touchedMarkers'][_0x7c41('0x6f')]())null!==_0x22d487&&_0x5ca99d['add'](_0x22d487);for(const {userId:_0x518325}of this[_0x7c41('0xb')][_0x7c41('0x6f')]())null!==_0x518325&&_0x5ca99d[_0x7c41('0xf0')](_0x518325);this[_0x7c41('0xbe')](_0x167639,_0x424ccf[_0x7c41('0x9e')][_0x1fe503],_0x456ab0,'insertion',_0x5ca99d),this[_0x7c41('0xbe')](_0x57f305,_0x424ccf[_0x7c41('0xed')][_0x1fe503],_0x3a6a0a,'deletion',_0x5ca99d),_0x582080[_0x1fe503]={'insertions':this[_0x7c41('0xf8')](_0x167639),'deletions':this[_0x7c41('0xf8')](_0x57f305),'attachChange':this[_0x7c41('0xb')][_0x7c41('0x12')](_0x1fe503)||null,'attributesBefore':_0x590a64(this[_0x7c41('0xb5')][_0x7c41('0x12')](_0x1fe503))||{},'attributesAfter':_0x590a64(this[_0x7c41('0xe')][_0x7c41('0x12')](_0x1fe503))};}return{'diffData':_0x582080,'authorsIds':Array[_0x7c41('0x1a')](_0x5ca99d)};}['_processRootBeforeSave'](_0x251744){for(const [,_0x751da9]of _0x251744[_0x7c41('0xd')]){const _0x5bcdc8=_0x751da9[_0x7c41('0x16')]['getAncestors']()[_0x7c41('0x42')](_0x1f8f43=>_0x7c41('0x4d')==_0x1f8f43[_0x7c41('0x3a')]);for(const _0x260a34 of _0x5bcdc8)0x1==_0x260a34['childCount']&&_0x260a34[_0x7c41('0x1d')](0x0)['is'](_0x7c41('0x67'),'paragraph')&&_0x260a34['getChild'](0x0)[_0x7c41('0x1b')](_0x7c41('0xb9'),!0x0);}}[_0x7c41('0xf8')](_0x21d980){this[_0x7c41('0x3f')](_0x21d980);const _0x190bae=this['editor']['data'][_0x7c41('0xec')](_0x21d980,{}),_0x4768cc=Array[_0x7c41('0x1a')](_0x190bae[_0x7c41('0x81')]())[_0x7c41('0xd1')](_0x47ecf9=>this['_getViewJson'](_0x47ecf9));return JSON['stringify'](_0x4768cc);}['_getViewJson'](_0x2925cd){if(_0x2925cd['is'](_0x7c41('0xb7')))return _0x2925cd[_0x7c41('0xae')];{const _0x49fe12=_0x2925cd;return{'type':Object[_0x7c41('0xa3')](B)[_0x7c41('0x79')](_0x4473b9=>_0x2925cd instanceof B[_0x4473b9]),'name':_0x49fe12['name'],'attributes':Array[_0x7c41('0x1a')](_0x49fe12[_0x7c41('0xfa')]()),'children':Array['from'](_0x49fe12[_0x7c41('0x81')]())['map'](_0x5c3cf1=>this['_getViewJson'](_0x5c3cf1))};}}[_0x7c41('0xbe')](_0x5aa6fd,_0x46156c,_0x2c5b5f,_0x21e604,_0x282545){let _0x4dcd1d=null,_0x4d4d3f=null,_0x1963c7=0x0;const _0x3a1fb6=this[_0x7c41('0x8d')]['model'];for(let _0xba710e=0x0;_0xba710e<_0x46156c[_0x7c41('0x25')];_0xba710e++){const _0x41a078=this[_0x7c41('0x56')](_0x46156c[_0xba710e]),_0x29437b=_0x46156c[_0xba710e]['item'][_0x7c41('0x8')](_0x41a078),_0x461dcb=_0x2c5b5f['get'](_0x29437b),_0x662d39=_0xba710e==_0x46156c[_0x7c41('0x25')]-0x1;(!_0x4dcd1d&&_0x461dcb&&(_0x4dcd1d=_0x461dcb,_0x4d4d3f=_0x46156c[_0xba710e]),_0x4dcd1d&&(!_0x461dcb||_0x461dcb[_0x7c41('0x75')]!=_0x4dcd1d['userId']))&&(_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),L(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6)),_0x4dcd1d=_0x461dcb||null,_0x4d4d3f=_0x461dcb?_0x46156c[_0xba710e]:null),_0x4dcd1d&&_0x662d39&&_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),W(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6));}function _0x3791bb(_0x32264e,_0x9c286e,_0x520468){const _0x4ecc7b=_0x4dcd1d[_0x7c41('0x75')],_0x2ded1e=_0x7c41('0x1e')+_0x21e604+':'+_0x4ecc7b+':'+_0x1963c7++,_0x15e12a=_0x3a1fb6[_0x7c41('0x98')](_0x9c286e,_0x520468);_0x5aa6fd[_0x7c41('0xd')]['set'](_0x2ded1e,_0x15e12a),null!==_0x4ecc7b&&_0x282545[_0x7c41('0xf0')](_0x4ecc7b);}}['_getVidAttributeName'](_0x5c4478){switch(_0x5c4478['type']){case _0x7c41('0x18'):return'vid_start';case _0x7c41('0x71'):return _0x7c41('0xd5');default:return _0x7c41('0x7e');}}['_fixOperation'](_0x24708a,_0x1e6991){_0x24708a[_0x7c41('0x7d')]=null;for(const _0x55a494 in _0x24708a){const _0x48239f=_0x24708a[_0x55a494];if(_0x48239f instanceof _0x32346e){const _0x58f780=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x6')](_0x48239f,_0x58f780);}if(_0x48239f instanceof _0x34fae3){const _0x321f07=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x51')](_0x48239f,_0x321f07);}'root'===_0x55a494&&(_0x24708a['root']=_0x1e6991[_0x7c41('0x12')](_0x24708a['root']['rootName']));}}[_0x7c41('0x51')](_0x654875,_0x193809){return this['editor']['model']['createRange'](this[_0x7c41('0x6')](_0x654875[_0x7c41('0x16')],_0x193809),this[_0x7c41('0x6')](_0x654875[_0x7c41('0x7c')],_0x193809));}[_0x7c41('0x6')](_0x333a71,_0x532df0){return this[_0x7c41('0x8d')][_0x7c41('0x57')]['createPositionFromPath'](_0x532df0,_0x333a71['path'],_0x333a71[_0x7c41('0x96')]);}[_0x7c41('0x5')](_0x41a5f1){const _0xd50a7a=this[_0x7c41('0xaf')]['get'](_0x41a5f1[_0x7c41('0xe3')]['root'][_0x7c41('0x2e')]),_0xfd76e4=this[_0x7c41('0x6')](_0x41a5f1['position'],_0xd50a7a),_0x3fb063=null===_0x41a5f1[_0x7c41('0x35')]?null:_0x41a5f1[_0x7c41('0x35')]||this['editor']['plugins']['get'](_0x7c41('0x6c'))['me']['id'],_0x4a08a7=_0xfd76e4[_0x7c41('0x5e')],_0x1a4dc5=this[_0x7c41('0x1f')],_0x178236=[];for(const _0x2e71cf of _0x41a5f1[_0x7c41('0xb1')])if(_0x2e71cf['is'](_0x7c41('0x67')))_0x178236['push'](this['_makeIdsRoot'](_0x2e71cf));else for(let _0x533756=0x0;_0x533756<_0x2e71cf[_0x7c41('0x99')];_0x533756++)_0x178236[_0x7c41('0x6d')](new _0x26a125(_0x7c41('0xb7'),{'vid':this['_revisionId']++}));const _0x295f89=this[_0x7c41('0x1f')];for(let _0x7cdd20=_0x1a4dc5;_0x7cdd20<_0x295f89;_0x7cdd20++)this['_touched']['set'](_0x7cdd20,{'userId':_0x3fb063});_0x4a08a7['_insertChild'](_0xfd76e4[_0x7c41('0xf7')],_0x178236);}['_handleMoveOperation'](_0x15316d){(_0x15316d=this[_0x7c41('0xf1')](_0x15316d,this[_0x7c41('0xaf')]))[_0x7c41('0x2d')]();const _0x311c7d=null===_0x15316d[_0x7c41('0x35')]?null:_0x15316d[_0x7c41('0x35')]||this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x1dcb61=_0x15316d[_0x7c41('0x3c')](),_0x163c47=_0x1dcb61[_0x7c41('0x5e')],_0x3d9a61=_0x1dcb61[_0x7c41('0xf7')];!function _0xfc6527(_0x1c7584,_0x39b7f0,_0x58e2d8,_0x2d4f36){for(let _0x34da7e=_0x58e2d8;_0x34da7e<_0x2d4f36;_0x34da7e++){const _0x2f97c2=_0x39b7f0[_0x7c41('0x1d')](_0x34da7e);_0x2f97c2['is'](_0x7c41('0x67'),_0x7c41('0xb7'))?_0x1c7584[_0x7c41('0x5f')](_0x2f97c2['getAttribute']('vid'),{'userId':_0x311c7d}):(_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x311c7d}),_0xfc6527(_0x1c7584,_0x2f97c2,0x0,_0x2f97c2['childCount']),_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x311c7d}));}}(this['_touched'],_0x163c47,_0x3d9a61,_0x3d9a61+_0x15316d[_0x7c41('0x3')]);}[_0x7c41('0x8b')](_0x47cfbd){const _0x99ee31=null===(_0x47cfbd=this[_0x7c41('0xf1')](_0x47cfbd,this[_0x7c41('0xaf')]))['_authorId']?null:_0x47cfbd[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x21f05d=_0x47cfbd[_0x7c41('0x7a')][_0x7c41('0x5e')],_0x550009=_0x47cfbd[_0x7c41('0xcb')]['parent'],_0x348ba1=_0x21f05d[_0x7c41('0x8')](_0x7c41('0xd5')),_0x39f63a=_0x550009[_0x7c41('0x8')](_0x7c41('0x6e'));_0x21f05d[_0x7c41('0x1b')]('vid_end',_0x550009[_0x7c41('0x8')](_0x7c41('0xd5'))),_0x550009[_0x7c41('0x1b')](_0x7c41('0xd5'),_0x348ba1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x39f63a,{'userId':_0x99ee31}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x348ba1,{'userId':_0x99ee31}),_0x47cfbd['_execute']();}[_0x7c41('0x10')](_0x13fcde){const _0x2d4dc7=null===(_0x13fcde=this[_0x7c41('0xf1')](_0x13fcde,this[_0x7c41('0xaf')]))['_authorId']?null:_0x13fcde[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x352320=_0x13fcde[_0x7c41('0x37')],_0x93224e=_0x13fcde[_0x7c41('0x72')][_0x7c41('0x5e')];_0x13fcde[_0x7c41('0x2d')]();const _0x2840b1=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),_0x308a01=_0x13fcde[_0x7c41('0x8e')][_0x7c41('0x6a')];if(_0x352320){const _0x53929e=_0x308a01[_0x7c41('0x8')]('vid_end'),_0x27f100=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5'));_0x93224e['_setAttribute']('vid_end',_0x53929e),_0x308a01['_setAttribute'](_0x7c41('0xd5'),_0x27f100),this['_touched'][_0x7c41('0x5f')](_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x308a01[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x2d4dc7});}else{const _0x10887d=this['_revisionId']++,_0x5d6aeb=this[_0x7c41('0x1f')]++;_0x93224e[_0x7c41('0x1b')]('vid_end',_0x10887d),_0x308a01[_0x7c41('0x1b')](_0x7c41('0x6e'),_0x5d6aeb),_0x308a01[_0x7c41('0x1b')]('vid_end',_0x2840b1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x10887d,{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x5d6aeb,{'userId':_0x2d4dc7});}}[_0x7c41('0x68')](_0x1ca4f6){if(!_0x1ca4f6[_0x7c41('0xeb')])return;const _0xe2d48=(_0x1ca4f6=this[_0x7c41('0xf1')](_0x1ca4f6,this[_0x7c41('0xb2')]))[_0x7c41('0xc7')]?_0x1ca4f6[_0x7c41('0xc7')][_0x7c41('0x64')]:null,_0x5ed3e5=_0x1ca4f6['newRange']?_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0x64')]:null;_0xe2d48&&this[_0x7c41('0x47')][_0x7c41('0x50')](_0x1ca4f6[_0x7c41('0x3a')]),_0x5ed3e5&&this['_markers'][_0x7c41('0x5f')](_0x1ca4f6[_0x7c41('0x3a')],_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0xbd')]());const _0x2a11f9=null===_0x1ca4f6['_authorId']?null:_0x1ca4f6[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x224b31=_0x1ca4f6['name'];if(!this[_0x7c41('0x9d')][_0x7c41('0x59')](_0x224b31))return void this[_0x7c41('0x9d')]['set'](_0x224b31,{'range':_0x1ca4f6[_0x7c41('0xc7')],'userId':_0x2a11f9});const _0x15ef05=this[_0x7c41('0x9d')][_0x7c41('0x12')](_0x224b31),_0x4e48d5=_0x15ef05[_0x7c41('0x53')],_0x32c69a=_0x1ca4f6[_0x7c41('0x8a')];null==_0x4e48d5&&null==_0x32c69a||_0x4e48d5&&_0x32c69a&&_0x4e48d5['isEqual'](_0x32c69a)?this['_touchedMarkers']['delete'](_0x1ca4f6[_0x7c41('0x3a')]):_0x15ef05[_0x7c41('0x75')]=_0x2a11f9;}[_0x7c41('0x43')](_0x294056,_0x2b741b){this[_0x7c41('0xb2')][_0x7c41('0x59')](_0x294056[_0x7c41('0x2e')])?this[_0x7c41('0xb2')]['get'](_0x294056['rootName'])[_0x7c41('0x14')]=_0x294056[_0x7c41('0x70')]:(this['_diffRoots'][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056[_0x7c41('0x2e')],!0x0)),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x294056[_0x7c41('0x2e')],{}),_0x2b741b&&this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056['rootName'],!0x0)));const _0x1302f3=null===_0x294056[_0x7c41('0x35')]?null:_0x294056[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x35a836=this[_0x7c41('0xb')][_0x7c41('0x12')](_0x294056['rootName']);_0x35a836&&_0x35a836['userId']===_0x1302f3?this[_0x7c41('0xb')][_0x7c41('0x50')](_0x294056[_0x7c41('0x2e')]):this[_0x7c41('0xb')]['set'](_0x294056[_0x7c41('0x2e')],{'userId':_0x1302f3,'isAttached':_0x294056[_0x7c41('0x70')]});}[_0x7c41('0x4b')](_0x2b8480){const _0x5b934a=this[_0x7c41('0xe')]['get'](_0x2b8480[_0x7c41('0x64')][_0x7c41('0x2e')]);null===_0x2b8480['newValue']?delete _0x5b934a[_0x2b8480[_0x7c41('0x9a')]]:_0x5b934a[_0x2b8480[_0x7c41('0x9a')]]=_0x2b8480['newValue'];}}function q(_0x8fa37){const _0x315bb1=G(_0x8fa37[_0x7c41('0x2e')],_0x8fa37[_0x7c41('0x94')]());for(const _0x486506 of _0x8fa37[_0x7c41('0x81')]()){const _0x4badbf=_0x486506[_0x7c41('0xf6')](!0x0);_0x315bb1['_appendChild'](_0x4badbf);}return _0x315bb1;}function G(_0x2a0d77,_0x41453b=!0x0){const _0x4a1e12=new _0x285c45();return _0x4a1e12[_0x7c41('0x2e')]=_0x2a0d77,_0x4a1e12[_0x7c41('0x14')]=_0x41453b,_0x4a1e12[_0x7c41('0x94')]=()=>_0x4a1e12['_isAttached'],_0x4a1e12;}function L(_0x4a9a1c,_0x2ae952,_0x5ba4d6){const _0x130de3=_0x7c41('0x71')==_0x4a9a1c['type']?_0x5ba4d6[_0x7c41('0xc6')](_0x4a9a1c[_0x7c41('0x97')],_0x7c41('0x7c')):_0x5ba4d6[_0x7c41('0x4a')](_0x4a9a1c['item']);return _0x5ba4d6[_0x7c41('0xac')](_0x2ae952,_0x130de3[_0x7c41('0x65')],_0x130de3[_0x7c41('0x96')]);}function W(_0x2dc0f5,_0x48eade,_0x1f23ee){const _0x5685b5=_0x7c41('0x18')==_0x2dc0f5[_0x7c41('0xd2')]?_0x1f23ee[_0x7c41('0xc6')](_0x2dc0f5[_0x7c41('0x97')],0x0):_0x1f23ee['createPositionAfter'](_0x2dc0f5[_0x7c41('0x97')]);return _0x1f23ee[_0x7c41('0xac')](_0x48eade,_0x5685b5[_0x7c41('0x65')],_0x5685b5['stickiness']);}
|