@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230908.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 _0x2b3c=['name','getTransformedByOperation','_authorId','_removeMetaData','editor','addRevisionData','processor','_replaceEditorDataWithRevisionData','add','createPositionAt','define','locale','_markers','_fixRange','fromVersion','getRootNames','getAttributes','for','offset','newRange','max','toData','forEach','userId','_baseIdsRoots','_createFromRanges','toView','rootsAttributes','plugins','_isAttached','newValue','source','keepParagraph','creatorId','getRevisionRootsAttributes','view','vid_end','_lastTo','find','set','sendBufferedUpdates','resolve','sourcePosition','_transformMarkers','_handleRootAttributeOperation','model','_createCurrentRevision','setSource','insertion','filter','afterInit','stringify','_saveMetaData','_baseRootsAttributes','revisionHistory.resumeUnsavedRevision','_handleMoveOperation','element','adapter','_clone','getUser','_copyMarkers','editing','path','_source','some','isReady','document','documentFragment','baseVersion','authors','_bufferUpdate','reInit','init','rootName','_getViewJson','update','conversion','attributesBefore','_getState','getRoot','loadState','_fixOperation','position','merge','hasContent','_pendingAction','markers','createRange','getRevision','_touched','pluginName','vid_start','_findInsertionIndex','$graveyard','_makeRevision','end','includes','keys','createPositionFromPath','getRevisions','push','getWalker','creator','RevisionTracker','delete','revision-end','values','stickiness','_initialRevisionId','_idsRoots','addRevision','createdAt','_isInit','splitPosition','initial','_touchedMarkers','_getPreviousFrom','_baseRoots','authorsIds','getLatestVersion','changeRootAttribute','getAttribute','elementEnd','isEqual','getChild','repository','_loadState','_makeModelFromViewString','key','attachChange','_setConversion','children','getChildren','finally','_loadRevisionData','_touchedRoots','_savedMetaData','string','roots','_execute','getData','size','childCount','get','dataToMarker','_prepareViewToSave','getOperation','_reset','oldRange','_fixPosition','Empty\x20document','NEGATIVE_INFINITY','Users','deletion','bind','_handleRootOperation','marker','requires','remove','_startingVersion','revision-start','toVersion','nodes','revision','insert','buildRevisionData','previousPosition','_diffRoots','_addPendingAction','getNodeByPath','history','start','_getBaseVids','elementStart','RevisionsRepository','_removePendingAction','type','getOperations','Initial\x20revision','currentRevision','removeRootAttribute','_diffRootsAttributes','_applyOperations','getRevisionDocumentData','item','_update','_setAttribute','then','_loadedStateData','_markChanges','_continueCurrentRevision','addRootAttribute','insertionPosition','_handleMarkerOperation','ready','attributesAfter','upcast','_makeIdsRoot','_calculateMetaData','$text','toModel','_handleInsertOperation','startsWith','isAdd','graveyardPosition','_startingRevisionId','_revisionId','getRange','nodeAfter','setRevisionData','saveRevision','_handleOperation','revision:','reverse','_insertChild','PendingActions','_cloneOperation','_bufferedUpdates','deletions','_getFromVersion','length','paragraph','targetPosition','tableCell','root','_lastFrom','affectsData','markerToData','clone','createRevision','config','from','_handleSplitOperation','collaboration.channelId','vid','_getVidAttributeName','_generateTape','clear','getMovedRangeStart','split','getCurrentRevisionId','map','_removeRevisionMarkers','PENDING_ACTION_REVISION_HISTORY','isAttached','data','slice','diffData','_revisionDataBuilder','initialData','parent','offsetSize','editor-initial-data-replaced-with-revision-data','_processRootBeforeSave','useFillerType','_createInitialRevision','_isPendingUpdate','reinsert','_handleMergeOperation','has','version','parse','insertions'];(function(_0x5b2119,_0x2b3c93){const _0x4aac28=function(_0x531437){while(--_0x531437){_0x5b2119['push'](_0x5b2119['shift']());}};_0x4aac28(++_0x2b3c93);}(_0x2b3c,0x1e3));const _0x4aac=function(_0x5b2119,_0x2b3c93){_0x5b2119=_0x5b2119-0x0;let _0x4aac28=_0x2b3c[_0x5b2119];return _0x4aac28;};import{Users as _0x67db30}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x37b6b5,PendingActions as _0x2d395d}from'ckeditor5/src/core';import{logWarning as _0x405653,uid as _0x12c7b0}from'ckeditor5/src/utils';import{Position as _0x39217c,Range as _0xde2b77,Element as _0x5edf95,DocumentFragment as _0x54e3f3,ViewText as _0x29b519,ViewElement as _0x328351,ViewContainerElement as _0x129b3f,ViewAttributeElement as _0x17b23f,ViewEmptyElement as _0x55616b,ViewRawElement as _0x255c2a,ViewUIElement as _0x1e3f63,ViewDocumentFragment as _0x1c0f09}from'ckeditor5/src/engine';import _0x14622a from'./revisionsrepository';import{getTranslation as _0x50a069}from'./utils/common-translations';import{cloneDeep as _0x2c2fc7,isEqual as _0x260448}from'lodash-es';const B={'c':_0x129b3f,'a':_0x17b23f,'e':_0x55616b,'r':_0x255c2a,'u':_0x1e3f63};export default class l extends _0x37b6b5{static get[_0x4aac('0x85')](){return _0x4aac('0x92');}static get[_0x4aac('0xc8')](){return[_0x67db30,_0x14622a,_0x2d395d];}constructor(_0x428c07){super(_0x428c07),this['adapter']=null,this['currentRevision']=null,this[_0x4aac('0x1c')]=new H(this[_0x4aac('0x2f')]),this[_0x4aac('0x97')]=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get'](_0x4aac('0xd'))||_0x4aac('0x9d'),this['_bufferedUpdates']=new Map(),this[_0x4aac('0xe7')]=null;const _0x3bc019=_0x12c7b0();this[_0x4aac('0x6a')]={'history':this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['history'],'getLatestVersion':()=>Promise[_0x4aac('0x54')](this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['version']),'getCurrentRevisionId':()=>_0x3bc019},this[_0x4aac('0x52')]('isReady',!0x1),this[_0x4aac('0x52')]('isEnabled',!0x0),this[_0x4aac('0x52')](_0x4aac('0x24'),!0x1),this['editor'][_0x4aac('0xa')][_0x4aac('0x35')](_0x4aac('0x61'),!0x0),this[_0x4aac('0x2f')]['conversion']['for'](_0x4aac('0xef'))[_0x4aac('0xbb')]({'view':_0x4aac('0xce')});}['init'](){this[_0x4aac('0xa8')]=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xd9')),this[_0x4aac('0xad')](),this[_0x4aac('0x2f')]['data']['on'](_0x4aac('0xed'),()=>{const _0x3307e3=this[_0x4aac('0xa8')]['getRevision'](0x0),_0x484c8f=_0x3307e3&&null===_0x3307e3[_0x4aac('0x91')]?_0x3307e3:null;if(this[_0x4aac('0xe9')]=!!_0x484c8f&&this[_0x4aac('0x2f')]['config'][_0x4aac('0xba')](_0x4aac('0x61')),this[_0x4aac('0x2f')][_0x4aac('0x47')]['has']('RealTimeCollaborationClient')){const _0x3ab54b=this[_0x4aac('0x6a')][_0x4aac('0x14')](),_0xcd416d=this[_0x4aac('0xa8')][_0x4aac('0x83')](_0x3ab54b);if(_0xcd416d)this[_0x4aac('0xca')]=_0xcd416d[_0x4aac('0x39')],this[_0x4aac('0xe9')]=!0x1;else{const _0x20a74b=this[_0x4aac('0x6a')][_0x4aac('0xd5')]['_operations']['find'](_0xdcf17f=>!_0xdcf17f[_0x4aac('0x9b')]),_0x36dde8=_0x20a74b?_0x20a74b[_0x4aac('0x6f')]:this[_0x4aac('0x6a')][_0x4aac('0xd5')][_0x4aac('0x28')];_0x3307e3?(_0x3307e3['toVersion']<_0x36dde8&&_0x3307e3['_update']({'toVersion':_0x36dde8}),this[_0x4aac('0xe9')]?(this['_source'][_0x4aac('0x14')]=()=>_0x484c8f['id'],this[_0x4aac('0xca')]=_0x484c8f[_0x4aac('0x39')]):(this[_0x4aac('0xca')]=_0x3307e3[_0x4aac('0xcc')],this['_continueCurrentRevision']=!0x1)):(this[_0x4aac('0xca')]=_0x36dde8,this[_0x4aac('0xe9')]=!0x1);}}else _0x484c8f&&(this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0xd5')]['version']=Math[_0x4aac('0x3f')](_0x484c8f[_0x4aac('0xcc')],this['editor'][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0xd5')][_0x4aac('0x28')]),_0x484c8f[_0x4aac('0x39')]===_0x484c8f[_0x4aac('0xcc')]?(0x0!==_0x484c8f[_0x4aac('0x39')]&&(this[_0x4aac('0x6a')]['getCurrentRevisionId']=()=>_0x484c8f['id']),this[_0x4aac('0xe9')]=!0x1):this[_0x4aac('0xe9')]&&(this[_0x4aac('0x6a')]['getCurrentRevisionId']=()=>_0x484c8f['id'],this[_0x4aac('0xca')]=_0x484c8f[_0x4aac('0x39')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0x28')]);this[_0x4aac('0x1c')][_0x4aac('0x73')](this[_0x4aac('0x6a')][_0x4aac('0xd5')]),this[_0x4aac('0x23')](this[_0x4aac('0xca')]),this[_0x4aac('0x59')](this[_0x4aac('0xca')]),this[_0x4aac('0x64')]&&this[_0x4aac('0x53')]();}),this[_0x4aac('0xc5')](_0x4aac('0x6c'))['to'](this,_0x4aac('0x24'),_0x39aa0d=>!_0x39aa0d);}async[_0x4aac('0x5d')](){if(this[_0x4aac('0xa8')][_0x4aac('0x0')]>0x0){const _0x321fd0=this['repository'][_0x4aac('0x83')](0x0),_0x437ea8=await this['getRevisionDocumentData'](_0x321fd0),_0x1ec4fb=await this[_0x4aac('0x4d')](_0x321fd0);this[_0x4aac('0x32')](_0x437ea8,_0x1ec4fb);}}[_0x4aac('0x5a')](_0x1ecbf9){this[_0x4aac('0x6a')]=_0x1ecbf9;}async[_0x4aac('0x76')](){const _0x26b894=await this[_0x4aac('0x6a')]['getLatestVersion']();if(_0x26b894>this['currentRevision'][_0x4aac('0xcc')]){await this['_loadState']();const _0x1c1851=this[_0x4aac('0xd0')]({'revision':this[_0x4aac('0xde')],'to':_0x26b894});_0x1c1851[_0x4aac('0x70')]=_0x1c1851[_0x4aac('0xa1')]['map'](_0x4b6a55=>this[_0x4aac('0x2f')][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['getUser'](_0x4b6a55)),this[_0x4aac('0xde')][_0x4aac('0xe4')](_0x1c1851);}}async[_0x4aac('0xa9')](){this[_0x4aac('0xe9')]&&!this[_0x4aac('0xe7')]&&(await this['_loadRevisionData'](this[_0x4aac('0xde')]),this[_0x4aac('0x1c')][_0x4aac('0x7b')](this[_0x4aac('0xde')]),this[_0x4aac('0xe7')]={'fromVersion':this[_0x4aac('0xde')][_0x4aac('0x39')],'authors':this[_0x4aac('0xde')][_0x4aac('0x70')]['slice']()});}async[_0x4aac('0xfd')](_0xc21f76={},_0xe7a2ee=null){const _0x2d5ff3=[];await this[_0x4aac('0xa9')](),this[_0x4aac('0xe9')]=!0x1,_0xe7a2ee>this[_0x4aac('0xde')][_0x4aac('0xcc')]&&(_0xe7a2ee=null),null===_0xe7a2ee&&(_0xe7a2ee=await this['_source'][_0x4aac('0xa2')]());const _0x1ca04a=this[_0x4aac('0x106')](_0xe7a2ee),_0x5917b2=this['buildRevisionData']({'from':_0x1ca04a,'to':_0xe7a2ee});if(this[_0x4aac('0xde')][_0x4aac('0xcc')]<_0xe7a2ee){const _0x1c36c7=this['buildRevisionData']({'revision':this[_0x4aac('0xde')],'from':_0xe7a2ee,'to':_0xe7a2ee});_0x1c36c7['authors']=[],_0x1c36c7[_0x4aac('0xa1')]=[],_0x1c36c7['id']=this[_0x4aac('0xde')]['id'],this[_0x4aac('0xde')]['_update'](_0x1c36c7,!0x0),delete _0x1c36c7['authors'],_0x2d5ff3[_0x4aac('0x8f')](_0x1c36c7);}_0xc21f76[_0x4aac('0x4c')]=this[_0x4aac('0x2f')][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['me']['id'],_0xc21f76['name']=_0xc21f76['name']||null,_0xc21f76['id']=_0xc21f76['id']||_0x12c7b0(),_0xc21f76={..._0xc21f76,..._0x5917b2};const _0xc7802=this[_0x4aac('0x30')](_0xc21f76);_0x2d5ff3['push'](_0xc21f76);const _0x5039b1=this[_0x4aac('0xa8')]['getIndex'](_0xc7802);if(0x0!==_0x5039b1){const _0x10ac15=this[_0x4aac('0xa8')]['getRevision'](_0x5039b1-0x1);if(_0x10ac15[_0x4aac('0x39')]!==_0xe7a2ee){const _0x3537bc=this['_revisionDataBuilder']['getData'](_0xe7a2ee,_0x10ac15['toVersion']),_0x326764={'id':_0x10ac15['id'],'diffData':_0x3537bc[_0x4aac('0x1b')],'authorsIds':_0x3537bc['authorsIds'],'authors':_0x3537bc['authorsIds'][_0x4aac('0x15')](_0x3add36=>this['editor'][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))[_0x4aac('0x66')](_0x3add36)),'fromVersion':_0xe7a2ee};_0x10ac15===this[_0x4aac('0xde')]&&(_0x326764[_0x4aac('0x9a')]=new Date(_0xc21f76['createdAt']['getTime']()+0xa)),_0x10ac15[_0x4aac('0xe4')](_0x326764,!0x0),delete _0x326764[_0x4aac('0x70')],_0x2d5ff3[_0x4aac('0x8f')](_0x326764);}}if(this[_0x4aac('0x64')]){for(const _0x2c125d of _0x2d5ff3)this[_0x4aac('0x71')](_0x2c125d['id'],_0x2c125d,!0x0);this[_0x4aac('0x53')]();}return _0xc7802;}[_0x4aac('0x30')](_0x38c849){const _0x41db76=this['repository'][_0x4aac('0x9')](_0x38c849);return this[_0x4aac('0x64')]&&_0x41db76['on'](_0x4aac('0xe4'),(_0x3c7447,_0x204837,_0x4a1819)=>{_0x4a1819||(this[_0x4aac('0x71')](_0x204837['id'],_0x204837,!0x0),this[_0x4aac('0x53')]());}),this['repository'][_0x4aac('0x99')](_0x41db76,this[_0x4aac('0x87')](_0x41db76)),_0x41db76;}async[_0x4aac('0xe2')](_0x51e7ad){await this[_0x4aac('0xb1')](_0x51e7ad);const _0x4fd400={};for(const _0x107578 in _0x51e7ad['diffData']){if(_0x51e7ad[_0x4aac('0x1b')][_0x107578]['attachChange']&&!_0x51e7ad[_0x4aac('0x1b')][_0x107578][_0x4aac('0xac')][_0x4aac('0x18')])continue;const _0x437aeb=this['_removeRevisionMarkers'](JSON['parse'](_0x51e7ad[_0x4aac('0x1b')][_0x107578][_0x4aac('0x2a')])),_0x4ac8b0=this[_0x4aac('0x2f')]['editing']['view'][_0x4aac('0x6d')],_0x194099=new _0x1c0f09(_0x4ac8b0,_0x437aeb[_0x4aac('0x15')](_0x20f0c5=>J(_0x20f0c5,this['editor'])));this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x31')]['useFillerType']('marked'),_0x4fd400[_0x107578]=this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x31')][_0x4aac('0x40')](_0x194099),this[_0x4aac('0x2f')][_0x4aac('0x19')]['processor'][_0x4aac('0x22')]('default');}return _0x4fd400;}async['getRevisionRootsAttributes'](_0x3abd69){await this['_loadRevisionData'](_0x3abd69);const _0x402d37={};for(const _0x69c7d in _0x3abd69['diffData'])_0x3abd69['diffData'][_0x69c7d][_0x4aac('0xac')]&&!_0x3abd69[_0x4aac('0x1b')][_0x69c7d][_0x4aac('0xac')][_0x4aac('0x18')]||(_0x402d37[_0x69c7d]=_0x3abd69[_0x4aac('0x1b')][_0x69c7d][_0x4aac('0xee')]||{});return _0x402d37;}['sendBufferedUpdates'](){if(0x0===this[_0x4aac('0x104')][_0x4aac('0xb8')])return;if(this[_0x4aac('0x24')])return;let _0x527d26=Array[_0x4aac('0xb')](this[_0x4aac('0x104')][_0x4aac('0x95')]());this[_0x4aac('0x104')][_0x4aac('0x11')]();for(let _0x55f7eb=0x0;_0x55f7eb<_0x527d26[_0x4aac('0x0')];_0x55f7eb++){const _0x2edb55=_0x527d26[_0x55f7eb];let _0x5da2d4=!0x1;for(const _0x4b618e of Object[_0x4aac('0x8c')](_0x2edb55))void 0x0===_0x2edb55[_0x4b618e]?delete _0x2edb55[_0x4b618e]:'id'!==_0x4b618e&&(_0x5da2d4=!0x0);_0x5da2d4||(_0x527d26[_0x55f7eb]=null);}if(_0x527d26=_0x527d26[_0x4aac('0x5c')](_0x2839b4=>null!==_0x2839b4),!_0x527d26[_0x4aac('0x0')])return;for(let _0x4e0f75=0x0;_0x4e0f75<_0x527d26[_0x4aac('0x0')];_0x4e0f75++){const _0x3e0256=_0x527d26[_0x4e0f75];void 0x0!==_0x3e0256[_0x4aac('0x39')]&&void 0x0===_0x3e0256[_0x4aac('0xcc')]&&(_0x3e0256[_0x4aac('0xcc')]=this[_0x4aac('0xa8')][_0x4aac('0x83')](_0x3e0256['id'])[_0x4aac('0xcc')]),void 0x0!==_0x3e0256[_0x4aac('0xcc')]&&void 0x0===_0x3e0256[_0x4aac('0x39')]&&(_0x3e0256[_0x4aac('0x39')]=this[_0x4aac('0xa8')]['getRevision'](_0x3e0256['id'])['fromVersion']);}const _0x53f8f2=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get']('collaboration.channelId');this[_0x4aac('0x24')]=!0x0,this[_0x4aac('0xd3')](),this['adapter']['updateRevisions'](_0x527d26,_0x53f8f2)[_0x4aac('0xb0')](()=>{this[_0x4aac('0x24')]=!0x1;})[_0x4aac('0xe6')](_0x3a6cff=>{if(_0x3a6cff)for(const _0x379fb4 of _0x3a6cff)this[_0x4aac('0xfc')]({'id':_0x379fb4['id'],'createdAt':_0x379fb4[_0x4aac('0x9a')]});this[_0x4aac('0xda')](),this[_0x4aac('0x53')]();});}[_0x4aac('0x32')](_0x434df3,_0x5e5800){let _0x210c16=this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0xba')](_0x4aac('0x1d')),_0x1f2a28=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get'](_0x4aac('0x46'));if(void 0x0===_0x210c16){_0x210c16={};for(const _0x52a95b of this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['getRootNames']())_0x210c16[_0x52a95b]='';}if(_0x4aac('0xb4')==typeof _0x210c16&&(_0x210c16={'main':_0x210c16}),void 0x0===_0x1f2a28){_0x1f2a28={};for(const _0x4163e5 of this[_0x4aac('0x2f')]['model'][_0x4aac('0x6d')][_0x4aac('0x3a')]())_0x1f2a28[_0x4163e5]={};}let _0x323966=!0x1;const _0x15381a=Object['keys'](_0x210c16),_0x2cee98=Object[_0x4aac('0x8c')](_0x434df3);for(const _0x57d4f9 of _0x15381a){if(_0x210c16[_0x57d4f9]!==_0x434df3[_0x57d4f9]&&''!==_0x210c16[_0x57d4f9]['trim']()){_0x323966=!0x0;break;}if(!_0x260448(_0x1f2a28[_0x57d4f9],_0x5e5800[_0x57d4f9])&&Object['keys'](_0x1f2a28[_0x57d4f9])[_0x4aac('0x0')]>0x0){_0x323966=!0x0;break;}}_0x323966||(_0x323966=_0x2cee98[_0x4aac('0x6b')](_0x56cb83=>!this['editor']['model'][_0x4aac('0x6d')][_0x4aac('0x7a')](_0x56cb83))),_0x323966&&_0x405653(_0x4aac('0x20'),{'editorData':_0x210c16,'editorRootsAttributes':_0x1f2a28,'revisionData':_0x434df3,'revisionRootsAttributes':_0x5e5800}),this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0x52')](_0x4aac('0x1d'),_0x434df3),this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0x52')](_0x4aac('0x46'),_0x5e5800);}[_0x4aac('0xd3')](){if(!this['_pendingAction']){const _0x20e5cd=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0x102'));this['_pendingAction']=_0x20e5cd['add'](_0x50a069(this[_0x4aac('0x2f')][_0x4aac('0x36')],_0x4aac('0x17')));}}[_0x4aac('0xda')](){this[_0x4aac('0x80')]&&(this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0x102'))[_0x4aac('0xc9')](this[_0x4aac('0x80')]),this[_0x4aac('0x80')]=null);}['_findInsertionIndex'](_0x2d0035){const _0x5b19be=this[_0x4aac('0xa8')][_0x4aac('0x8e')]();_0x5b19be[_0x4aac('0x100')]();let _0x3edf6c=0x0;for(;_0x3edf6c<_0x5b19be['length'];){const _0x270668=_0x5b19be[_0x3edf6c];if(_0x270668===this[_0x4aac('0xde')]){_0x3edf6c++;continue;}if(_0x270668['id']===this[_0x4aac('0x97')])break;const _0x54cd2e=_0x2d0035[_0x4aac('0xcc')]-_0x270668[_0x4aac('0xcc')]||_0x2d0035[_0x4aac('0x39')]-_0x270668[_0x4aac('0x39')];if(_0x54cd2e>0x0)break;if(_0x54cd2e<0x0)_0x3edf6c++;else{if(!_0x2d0035['creator']&&_0x270668[_0x4aac('0x91')])break;if(_0x270668[_0x4aac('0x91')]||!_0x2d0035[_0x4aac('0x91')]){if(_0x2d0035['createdAt']>_0x270668[_0x4aac('0x9a')])break;_0x3edf6c++;}else _0x3edf6c++;}}return _0x3edf6c;}[_0x4aac('0xfc')](_0x134116){const _0x442771=this['repository'][_0x4aac('0x83')](_0x134116['id']);if(_0x134116['createdAt']&&(_0x134116[_0x4aac('0x9a')]=new Date(_0x134116[_0x4aac('0x9a')])),_0x134116[_0x4aac('0xa1')]){const _0x3a2cc0=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'));_0x134116[_0x4aac('0x70')]=_0x134116[_0x4aac('0xa1')][_0x4aac('0x15')](_0x2b61e3=>_0x3a2cc0[_0x4aac('0x66')](_0x2b61e3));}_0x442771[_0x4aac('0xe4')](_0x134116,!0x0);}[_0x4aac('0xd0')]({revision:_0x4322f7=null,from:_0x22828f=null,to:_0x23c87f=null}){_0x22828f=null!==_0x22828f?_0x22828f:_0x4322f7[_0x4aac('0x39')],_0x23c87f=null!==_0x23c87f?_0x23c87f:_0x4322f7['toVersion'];const _0x28d0a6=this[_0x4aac('0x1c')][_0x4aac('0xb7')](_0x22828f,_0x23c87f),_0x2c1f09={'diffData':_0x28d0a6[_0x4aac('0x1b')],'authorsIds':_0x28d0a6[_0x4aac('0xa1')],'fromVersion':_0x22828f,'toVersion':_0x23c87f};if(!_0x4322f7||_0x23c87f!==_0x4322f7[_0x4aac('0xcc')]){const _0x3dedcc=_0x23c87f-0x1,_0x36734b=this[_0x4aac('0x6a')][_0x4aac('0xd5')][_0x4aac('0xbd')](_0x3dedcc);_0x2c1f09['createdAt']=_0x36734b&&_0x36734b[_0x4aac('0x9a')]||new Date();}if(this[_0x4aac('0xe7')]&&_0x22828f===this[_0x4aac('0xe7')][_0x4aac('0x39')])for(const _0x2d9a91 of this[_0x4aac('0xe7')]['authors'])_0x2c1f09[_0x4aac('0xa1')][_0x4aac('0x8b')](_0x2d9a91['id'])||_0x2c1f09[_0x4aac('0xa1')][_0x4aac('0x8f')](_0x2d9a91['id']);return _0x2c1f09;}[_0x4aac('0xb1')](_0x33368b){if(!_0x33368b||_0x33368b['diffData'])return Promise['resolve']();{const _0x223363=this['editor'][_0x4aac('0xa')][_0x4aac('0xba')]('collaboration.channelId');return this[_0x4aac('0x64')][_0x4aac('0x83')]({'channelId':_0x223363,'revisionId':_0x33368b['id']})['then'](_0x4f58da=>{_0x33368b[_0x4aac('0x1b')]=_0x4f58da[_0x4aac('0x1b')];});}}[_0x4aac('0x71')](_0x267257,_0x4cbf56,_0x33a1c1){if(this[_0x4aac('0x104')]['has'](_0x267257)){const _0x51fab8=this[_0x4aac('0x104')][_0x4aac('0xba')](_0x267257);_0x4cbf56=_0x33a1c1?{..._0x51fab8,..._0x4cbf56}:{..._0x4cbf56,..._0x51fab8};}this[_0x4aac('0x104')][_0x4aac('0x52')](_0x267257,_0x4cbf56);}[_0x4aac('0x106')](_0x142865){const _0x589d6a=this[_0x4aac('0xa8')]['getRevisions']();_0x589d6a[_0x4aac('0x100')](),_0x589d6a['shift']();const _0x66b0c1=_0x589d6a['find'](_0x151d33=>_0x151d33['toVersion']<=_0x142865)[_0x4aac('0xcc')];return _0x66b0c1<this[_0x4aac('0xca')]?this[_0x4aac('0xca')]:_0x66b0c1;}[_0x4aac('0x23')](_0x4ab2a1){const _0xcdea03=this['repository']['getRevision'](this['repository'][_0x4aac('0x0')]-0x1);if(_0xcdea03)this[_0x4aac('0x97')]=_0xcdea03['id'];else{const _0x4c344d=!this[_0x4aac('0x2f')][_0x4aac('0x58')]['document'][_0x4aac('0xb5')][_0x4aac('0x51')](_0x5354e8=>this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x7f')](_0x5354e8)),_0x14d6cb=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')]('Users')['me']['id'],_0x692cf0=_0x50a069(this[_0x4aac('0x2f')]['locale'],_0x4c344d?_0x4aac('0xc1'):_0x4aac('0xdd'));this[_0x4aac('0x89')]({'from':_0x4ab2a1,'to':_0x4ab2a1,'id':this['_initialRevisionId'],'name':_0x692cf0,'creatorId':_0x14d6cb});}}[_0x4aac('0x59')](_0x3c3c68){const _0x36d914=this[_0x4aac('0x6a')]['getCurrentRevisionId']();this['currentRevision']=this[_0x4aac('0xa8')]['getRevision'](_0x36d914),this[_0x4aac('0xde')]||(this['currentRevision']=this[_0x4aac('0x89')]({'from':_0x3c3c68,'to':_0x3c3c68,'id':_0x36d914,'name':'','creatorId':null}));}[_0x4aac('0x89')]({name:_0x52bfb6,from:_0x42f995,to:_0x3a0114,creatorId:_0x25040a,id:_0x211200}){const _0x1dcd3b=this[_0x4aac('0xd0')]({'from':_0x42f995,'to':_0x3a0114});_0x1dcd3b[_0x4aac('0x2b')]=_0x52bfb6,_0x1dcd3b[_0x4aac('0x4c')]=_0x25040a,_0x1dcd3b['id']=_0x211200;const _0xbb6698=this['addRevisionData'](_0x1dcd3b);return this[_0x4aac('0x64')]&&this[_0x4aac('0x71')](_0x1dcd3b['id'],_0x1dcd3b,!0x0),_0xbb6698;}[_0x4aac('0xad')](){this['editor'][_0x4aac('0x77')][_0x4aac('0x3c')]('dataDowncast')[_0x4aac('0x7')]({'model':_0x4aac('0xce')});}[_0x4aac('0x16')](_0x219a9e){return(_0x219a9e=_0x219a9e[_0x4aac('0x5c')](_0xb4c071=>!_0xb4c071[_0x4aac('0x2b')]||_0x4aac('0xcb')!==_0xb4c071[_0x4aac('0x2b')]&&_0x4aac('0x94')!==_0xb4c071[_0x4aac('0x2b')]))[_0x4aac('0x41')](_0x17fe91=>{_0x4aac('0xb4')!=typeof _0x17fe91&&(_0x17fe91[_0x4aac('0xae')]=this[_0x4aac('0x16')](_0x17fe91[_0x4aac('0xae')]),_0x17fe91['attributes']=_0x17fe91['attributes'][_0x4aac('0x5c')](_0x36a478=>!_0x36a478[0x0][_0x4aac('0xf5')]('data-revision-')));}),_0x219a9e;}}function J(_0x48ecca,_0xa1773a){const _0x39ea35=_0xa1773a['editing'][_0x4aac('0x4e')][_0x4aac('0x6d')];if('string'==typeof _0x48ecca)return new _0x29b519(_0x39ea35,_0x48ecca);{const _0x33c659=_0x48ecca[_0x4aac('0xae')]['map'](_0xefd7c3=>J(_0xefd7c3,_0xa1773a));return new(B[_0x48ecca[(_0x4aac('0xdb'))]]||_0x328351)(_0x39ea35,_0x48ecca[_0x4aac('0x2b')],_0x48ecca['attributes'],_0x33c659);}}class H{constructor(_0x3c9a36){this[_0x4aac('0x2f')]=_0x3c9a36,this[_0x4aac('0xb3')]=new Map(),this[_0x4aac('0x5')]=-0x1,this[_0x4aac('0x50')]=-0x1,this[_0x4aac('0x37')]=new Map(),this[_0x4aac('0xd2')]=new Map(),this[_0x4aac('0xe0')]=new Map(),this[_0x4aac('0xa0')]=new Map(),this[_0x4aac('0x60')]=new Map(),this[_0x4aac('0x98')]=new Map(),this[_0x4aac('0x43')]=new Map(),this[_0x4aac('0x84')]=new Map(),this[_0x4aac('0x9e')]=new Map(),this[_0x4aac('0xb2')]=new Map(),this[_0x4aac('0xf9')]=0x1;}[_0x4aac('0x73')](_0x430994){this[_0x4aac('0x4a')]=_0x430994;const _0x445e5b=new Map(),_0x186ecb=new Map(),_0x211292=this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['roots'][_0x4aac('0x15')](_0x18e75b=>_0x18e75b[_0x4aac('0x74')]);for(const _0x33c3e9 of _0x211292){const _0xdb15b8=this['editor']['model'][_0x4aac('0x6d')][_0x4aac('0x7a')](_0x33c3e9),_0x26286e=q(_0xdb15b8);_0x445e5b[_0x4aac('0x52')](_0x33c3e9,_0x26286e),_0x186ecb[_0x4aac('0x52')](_0x33c3e9,Object['fromEntries'](_0xdb15b8[_0x4aac('0x3b')]()));}const _0x56ca09=Array[_0x4aac('0xb')](this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x81')])[_0x4aac('0x15')](_0x10b6ca=>[_0x10b6ca[_0x4aac('0x2b')],_0x10b6ca[_0x4aac('0xfa')]()]),_0x4c7cc7=this[_0x4aac('0x4a')][_0x4aac('0x28')];this[_0x4aac('0x5f')](_0x4c7cc7,_0x445e5b,_0x56ca09,_0x186ecb),this[_0x4aac('0xf8')]=this[_0x4aac('0xf9')];const _0x52e1b1=new Map(),_0x2f74bb=new Map();for(const _0x3dae45 of _0x211292){const _0x4c751d=G(_0x3dae45);_0x52e1b1[_0x4aac('0x52')](_0x3dae45,_0x4c751d),_0x2f74bb[_0x4aac('0x52')](_0x3dae45,{});}this[_0x4aac('0x5f')](Number[_0x4aac('0xc2')],_0x52e1b1,[],_0x2f74bb);}[_0x4aac('0xb7')](_0x32a985,_0x270950){if(this[_0x4aac('0x5')]===_0x32a985&&this['_lastTo']<=_0x270950)this['_savedMetaData']['size']>0x1&&this[_0x4aac('0x2e')](this[_0x4aac('0x50')]),this['_applyOperations'](this[_0x4aac('0x50')],_0x270950,!0x0);else{if(!this[_0x4aac('0xb3')]['has'](_0x32a985)){const _0x29a08b=this[_0x4aac('0x9f')](_0x32a985);this[_0x4aac('0xf1')](_0x29a08b,_0x32a985,!0x1);}this[_0x4aac('0xf1')](_0x32a985,_0x270950,!0x0);}return this[_0x4aac('0x5')]=_0x32a985,this[_0x4aac('0x50')]=_0x270950,this[_0x4aac('0x79')]();}[_0x4aac('0x7b')](_0x403eb6){this['_reset'](),this['_lastFrom']=_0x403eb6['fromVersion'],this[_0x4aac('0x50')]=_0x403eb6['toVersion'];for(const _0x5bf51e in _0x403eb6['diffData']){const _0x21ec80=_0x403eb6['diffData'][_0x5bf51e]['attachChange'],_0x4b1988=_0x2c2fc7(_0x403eb6[_0x4aac('0x1b')][_0x5bf51e][_0x4aac('0x78')])||{},_0x2d9615=this['_makeModelFromViewString'](_0x403eb6[_0x4aac('0x1b')][_0x5bf51e]['deletions']);_0x2d9615[_0x4aac('0x74')]=_0x5bf51e,_0x2d9615[_0x4aac('0x48')]=!_0x21ec80||!_0x21ec80[_0x4aac('0x18')],_0x2d9615[_0x4aac('0x18')]=()=>_0x2d9615[_0x4aac('0x48')],this[_0x4aac('0xa0')][_0x4aac('0x52')](_0x5bf51e,_0x2d9615),this['_baseRootsAttributes'][_0x4aac('0x52')](_0x5bf51e,_0x4b1988),_0x21ec80&&this['_touchedRoots'][_0x4aac('0x52')](_0x5bf51e,_0x21ec80);const _0x4025bb=this['_makeIdsRoot'](_0x2d9615);this[_0x4aac('0x43')][_0x4aac('0x52')](_0x5bf51e,_0x4025bb);for(const [_0x1abd72,_0x3f6685]of _0x2d9615[_0x4aac('0x81')]){if(!_0x1abd72['startsWith'](_0x4aac('0xff')))continue;const _0xfb746e=_0x1abd72[_0x4aac('0x13')](':')[0x2];for(const _0xb90190 of _0x3f6685[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0xf25168=this[_0x4aac('0xf')](_0xb90190),_0x2803f8=_0x4aac('0xa5')==_0xb90190['type']?_0xb90190['previousPosition'][_0x4aac('0x69')][_0x4aac('0x1a')](0x0,-0x1):_0xb90190[_0x4aac('0xd1')][_0x4aac('0x69')],_0x2df577=_0x4025bb[_0x4aac('0xd4')](_0x2803f8)[_0x4aac('0xa4')](_0xf25168);this[_0x4aac('0x84')]['set'](_0x2df577,{'userId':_0xfb746e});}}}this[_0x4aac('0xf8')]=this['_revisionId'];const _0x1835f6=[...Array(this[_0x4aac('0xf9')])[_0x4aac('0x8c')]()][_0x4aac('0x1a')](0x1)[_0x4aac('0x5c')](_0x3f8520=>!this['_touched'][_0x4aac('0x27')](_0x3f8520));let _0x524ecf=0x0;const _0x466535=new Map();for(const _0x3589b3 in _0x403eb6[_0x4aac('0x1b')]){const _0x31f1a8=_0x403eb6[_0x4aac('0x1b')][_0x3589b3][_0x4aac('0xac')],_0x2ffb21=_0x2c2fc7(_0x403eb6['diffData'][_0x3589b3][_0x4aac('0xee')])||{},_0x46d792=this[_0x4aac('0xaa')](_0x403eb6[_0x4aac('0x1b')][_0x3589b3][_0x4aac('0x2a')]);_0x46d792[_0x4aac('0x74')]=_0x3589b3,_0x46d792[_0x4aac('0x48')]=!_0x31f1a8||_0x31f1a8['isAttached'],_0x46d792['isAttached']=()=>_0x46d792[_0x4aac('0x48')],this['_diffRoots']['set'](_0x3589b3,_0x46d792),this[_0x4aac('0xe0')][_0x4aac('0x52')](_0x3589b3,_0x2ffb21);const _0x50e8f7=this[_0x4aac('0xf0')](_0x46d792,Number['NEGATIVE_INFINITY']);this[_0x4aac('0x98')][_0x4aac('0x52')](_0x3589b3,_0x50e8f7),_0x466535[_0x4aac('0x52')](_0x3589b3,_0x46d792['isAttached']()?_0x2ffb21:{});for(const [_0x239429,_0x5c4fde]of _0x46d792[_0x4aac('0x81')]){if(!_0x239429[_0x4aac('0xf5')]('revision:'))continue;const _0x47c96c=_0x239429[_0x4aac('0x13')](':')[0x2];for(const _0x2959b5 of _0x5c4fde[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0x161cbe=this[_0x4aac('0xf')](_0x2959b5),_0x1809b0=this['_revisionId']++,_0x55bbe5=_0x4aac('0xa5')==_0x2959b5[_0x4aac('0xdb')]?_0x2959b5[_0x4aac('0xd1')][_0x4aac('0x69')][_0x4aac('0x1a')](0x0,-0x1):_0x2959b5[_0x4aac('0xd1')][_0x4aac('0x69')];_0x50e8f7['getNodeByPath'](_0x55bbe5)[_0x4aac('0xe5')](_0x161cbe,_0x1809b0),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x1809b0,{'userId':_0x47c96c});}}for(const _0x8b806b of this[_0x4aac('0x2f')]['model']['createRangeIn'](_0x46d792)[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0x52fb6a=this[_0x4aac('0xf')](_0x8b806b),_0x1e577d=_0x4aac('0xa5')==_0x8b806b[_0x4aac('0xdb')]?_0x8b806b[_0x4aac('0xd1')][_0x4aac('0x69')]['slice'](0x0,-0x1):_0x8b806b['previousPosition']['path'],_0x60d39=_0x50e8f7[_0x4aac('0xd4')](_0x1e577d);_0x60d39['getAttribute'](_0x52fb6a)>0x0||_0x60d39[_0x4aac('0xe5')](_0x52fb6a,_0x1835f6[_0x524ecf++]);}for(const [_0xe1ce1d,_0x29181a]of _0x46d792[_0x4aac('0x81')])_0xe1ce1d[_0x4aac('0xf5')]('revision:')||this[_0x4aac('0x37')][_0x4aac('0x52')](_0xe1ce1d,_0x29181a);}const _0x41c4bd=G(_0x4aac('0x88'));this[_0x4aac('0xa0')]['set'](_0x4aac('0x88'),_0x41c4bd),this[_0x4aac('0x43')][_0x4aac('0x52')](_0x4aac('0x88'),this[_0x4aac('0xf0')](_0x41c4bd,0x1));const _0x4ec9eb=G(_0x4aac('0x88'));this[_0x4aac('0xd2')]['set']('$graveyard',_0x4ec9eb),this[_0x4aac('0x98')][_0x4aac('0x52')]('$graveyard',this[_0x4aac('0xf0')](_0x4ec9eb,0x1));const _0x2b276f=Array[_0x4aac('0xb')](this['_diffRoots'])[_0x4aac('0x15')](([_0x28cdc1,_0x452d69])=>[_0x28cdc1,q(_0x452d69)]);this[_0x4aac('0x5f')](this['_lastTo'],_0x2b276f,this['_markers'],_0x466535);}[_0x4aac('0xaa')](_0x148994){const _0x172496=JSON[_0x4aac('0x29')](_0x148994),_0x48c93f=this[_0x4aac('0x2f')][_0x4aac('0x68')]['view']['document'],_0x5ea4a2=new _0x1c0f09(_0x48c93f,_0x172496[_0x4aac('0x15')](_0x215fcb=>J(_0x215fcb,this['editor'])));return this[_0x4aac('0x2f')]['data'][_0x4aac('0xf3')](_0x5ea4a2);}[_0x4aac('0x5f')](_0x1193c5,_0x1a0b56,_0x481d74,_0x470d00){const _0x3618c0=new Map(_0x1a0b56),_0xd9db43=new Map(_0x2c2fc7(_0x470d00)),_0x34769b=new Map();for(const [_0x1da419,_0x452ec3]of _0x481d74)_0x34769b['set'](_0x1da419,{'start':_0x452ec3[_0x4aac('0xd6')]['clone'](),'end':_0x452ec3[_0x4aac('0x8a')]['clone'](),'rootName':_0x452ec3[_0x4aac('0x4')][_0x4aac('0x74')]});this[_0x4aac('0xb3')][_0x4aac('0x52')](_0x1193c5,{'roots':_0x3618c0,'markers':_0x34769b,'rootsAttributes':_0xd9db43});}[_0x4aac('0x2e')](_0x4353bd){this[_0x4aac('0xb3')][_0x4aac('0x93')](_0x4353bd);}[_0x4aac('0x72')](){this['_reset'](),this[_0x4aac('0x5')]=-0x1,this[_0x4aac('0x50')]=-0x1,this['_savedMetaData'][_0x4aac('0x11')](),this['init'](this['source']);}[_0x4aac('0xbe')](){this[_0x4aac('0x84')][_0x4aac('0x11')](),this['_touchedMarkers']['clear'](),this[_0x4aac('0xb2')][_0x4aac('0x11')](),this[_0x4aac('0xd2')][_0x4aac('0x11')](),this[_0x4aac('0xe0')]['clear'](),this[_0x4aac('0xa0')][_0x4aac('0x11')](),this[_0x4aac('0x60')]['clear'](),this[_0x4aac('0x98')][_0x4aac('0x11')](),this['_baseIdsRoots'][_0x4aac('0x11')](),this['_markers'][_0x4aac('0x11')](),this[_0x4aac('0xf9')]=0x1,this[_0x4aac('0xf8')]=this[_0x4aac('0xf9')];}[_0x4aac('0xf0')](_0x10f86a,_0x2bac8=null){let _0x149e37=null;_0x10f86a['is'](_0x4aac('0x6e'))||(_0x149e37=new _0x5edf95(_0x10f86a['name'],{'vid_start':null===_0x2bac8?this['_revisionId']++:_0x2bac8++}));const _0x107844=[];for(const _0x2dede6 of _0x10f86a[_0x4aac('0xaf')]())if(_0x2dede6['is'](_0x4aac('0x63'))){_0x107844[_0x4aac('0x8f')](this['_makeIdsRoot'](_0x2dede6,_0x2bac8));const _0x762e26=_0x107844[_0x107844[_0x4aac('0x0')]-0x1];null!==_0x2bac8&&(_0x2bac8=_0x762e26['is'](_0x4aac('0x63'),'$text')?_0x762e26[_0x4aac('0xa4')](_0x4aac('0xe'))+0x1:_0x762e26[_0x4aac('0xa4')](_0x4aac('0x4f'))+0x1);}else for(let _0x31cbca=0x0;_0x31cbca<_0x2dede6[_0x4aac('0x1f')];_0x31cbca++)_0x107844['push'](new _0x5edf95(_0x4aac('0xf2'),{'vid':null===_0x2bac8?this[_0x4aac('0xf9')]++:_0x2bac8++}));if(_0x10f86a['is'](_0x4aac('0x6e'))){const _0x4564f9=G(_0x10f86a[_0x4aac('0x74')]);return _0x4564f9[_0x4aac('0x101')](0x0,_0x107844),_0x4564f9;}return _0x149e37[_0x4aac('0xe5')](_0x4aac('0x4f'),null===_0x2bac8?this[_0x4aac('0xf9')]++:_0x2bac8++),_0x149e37[_0x4aac('0x101')](0x0,_0x107844),_0x149e37;}['_calculateMetaData'](_0x45d433,_0xb727c1,_0x294a4b){this[_0x4aac('0xbe')]();const {roots:_0x711223,markers:_0x5251b5,rootsAttributes:_0x4e2389}=this[_0x4aac('0xb3')][_0x4aac('0xba')](_0x45d433);this['_baseRoots']=new Map(_0x711223),this[_0x4aac('0x60')]=new Map(_0x2c2fc7(_0x4e2389));for(const [_0x5f1c33,_0xaf53bf]of this['_baseRoots'])if('$graveyard'!==_0x5f1c33&&(this[_0x4aac('0xd2')][_0x4aac('0x52')](_0x5f1c33,q(_0xaf53bf)),this[_0x4aac('0xe0')]=new Map(_0x2c2fc7(_0x4e2389)),_0x294a4b)){const _0x4534b2=this['_revisionId'];this[_0x4aac('0x98')][_0x4aac('0x52')](_0x5f1c33,this[_0x4aac('0xf0')](_0xaf53bf)),this[_0x4aac('0x43')][_0x4aac('0x52')](_0x5f1c33,this[_0x4aac('0xf0')](_0xaf53bf,_0x4534b2));}this['_startingRevisionId']=this[_0x4aac('0xf9')],this[_0x4aac('0xd2')][_0x4aac('0x52')]('$graveyard',q(this['_baseRoots'][_0x4aac('0xba')](_0x4aac('0x88')))),_0x294a4b&&this[_0x4aac('0x98')][_0x4aac('0x52')]('$graveyard',this[_0x4aac('0xf0')](this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x4aac('0x88'))));for(const [_0x125962,_0x3b0dd5]of _0x5251b5){const _0x377dad=this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x3b0dd5[_0x4aac('0x74')]),_0x54490f=this[_0x4aac('0xd2')]['get'](_0x3b0dd5[_0x4aac('0x74')]),_0x471662=new _0xde2b77(this[_0x4aac('0xc0')](_0x3b0dd5[_0x4aac('0xd6')],_0x377dad),this[_0x4aac('0xc0')](_0x3b0dd5[_0x4aac('0x8a')],_0x377dad)),_0x537256=this[_0x4aac('0x38')](_0x471662,_0x54490f);_0x377dad[_0x4aac('0x81')][_0x4aac('0x52')](_0x125962,_0x471662),this[_0x4aac('0x37')][_0x4aac('0x52')](_0x125962,_0x537256);}this[_0x4aac('0xe1')](_0x45d433,_0xb727c1,_0x294a4b);}[_0x4aac('0xe1')](_0x5cf419,_0x225cd5,_0x3964b9){for(const _0xb1baa5 of this['source'][_0x4aac('0xdc')](_0x5cf419,_0x225cd5))this['_handleOperation'](_0xb1baa5,_0x3964b9);for(const _0x415f37 of this[_0x4aac('0xd2')]['values']())_0x415f37[_0x4aac('0x81')]['clear']();for(const [_0x31aa1b,_0x54c591]of this[_0x4aac('0x37')]){this[_0x4aac('0xd2')][_0x4aac('0xba')](_0x54c591[_0x4aac('0x4')]['rootName'])['markers'][_0x4aac('0x52')](_0x31aa1b,_0x54c591['clone']());}const _0x379b3f=new Map(),_0x4dd55c=new Map();for(const [_0x11484f,_0x498dcf]of this[_0x4aac('0xd2')])_0x379b3f[_0x4aac('0x52')](_0x11484f,q(_0x498dcf)),_0x4dd55c[_0x4aac('0x52')](_0x11484f,this[_0x4aac('0xe0')][_0x4aac('0xba')](_0x11484f));this[_0x4aac('0x5f')](_0x225cd5,_0x379b3f,this['_markers'],_0x4dd55c);}[_0x4aac('0x9f')](_0x47223b){const _0x19056f=Array[_0x4aac('0xb')](this[_0x4aac('0xb3')][_0x4aac('0x8c')]());_0x19056f['sort']((_0x4e5e29,_0x19f76d)=>_0x4e5e29-_0x19f76d),_0x19056f['reverse']();for(const _0x4134b7 of _0x19056f)if(_0x4134b7<_0x47223b)return _0x4134b7;return Number[_0x4aac('0xc2')];}[_0x4aac('0x67')](_0x1543d2,_0x569da7){const _0x3c342e=Array[_0x4aac('0xb')](_0x569da7[_0x4aac('0x81')])[_0x4aac('0x15')](([_0x4ad6f9,_0x27bde5])=>[_0x4ad6f9,this['_fixRange'](_0x27bde5,_0x1543d2)]);_0x1543d2[_0x4aac('0x81')]=new Map(_0x3c342e);}[_0x4aac('0x56')](_0x4065da){for(const _0x4633ee of this[_0x4aac('0x37')][_0x4aac('0x95')]()){const _0x295859=_0x4633ee[_0x4aac('0x2c')](_0x4065da),_0x1d16a3=_0xde2b77[_0x4aac('0x44')](_0x295859);_0x4633ee['start']=_0x1d16a3[_0x4aac('0xd6')],_0x4633ee[_0x4aac('0x8a')]=_0x1d16a3[_0x4aac('0x8a')];}}[_0x4aac('0xfe')](_0x4f9556,_0x46d327){if('addRoot'==_0x4f9556[_0x4aac('0xdb')]||'detachRoot'==_0x4f9556[_0x4aac('0xdb')])return void this[_0x4aac('0xc6')](_0x4f9556,_0x46d327);if('insert'==_0x4f9556['type']){const _0xf36bf2=_0x4f9556[_0x4aac('0x7d')][_0x4aac('0x4')]['rootName'];this[_0x4aac('0xd2')][_0x4aac('0x27')](_0xf36bf2)||(this['_diffRoots'][_0x4aac('0x52')](_0xf36bf2,G(_0xf36bf2,!0x0)),this[_0x4aac('0xe0')][_0x4aac('0x52')](_0xf36bf2,{}),_0x46d327&&this[_0x4aac('0x98')][_0x4aac('0x52')](_0xf36bf2,G(_0xf36bf2,!0x0)));}else{if(_0x4aac('0xea')==_0x4f9556[_0x4aac('0xdb')]||_0x4aac('0xdf')==_0x4f9556['type']||_0x4aac('0xa3')==_0x4f9556[_0x4aac('0xdb')])return void this[_0x4aac('0x57')](_0x4f9556);}const _0x32a9c8=this['_cloneOperation'](_0x4f9556,this[_0x4aac('0xd2')]);if(_0x4aac('0xc7')!==_0x4f9556[_0x4aac('0xdb')]&&(_0x32a9c8[_0x4aac('0xb6')](),this['_transformMarkers'](_0x32a9c8)),_0x46d327)switch(_0x32a9c8[_0x4aac('0xdb')]){case _0x4aac('0xcf'):this[_0x4aac('0xf4')](_0x4f9556);break;case'move':case'remove':case _0x4aac('0x25'):this['_handleMoveOperation'](_0x4f9556);break;case _0x4aac('0x7e'):this[_0x4aac('0x26')](_0x4f9556);break;case _0x4aac('0x13'):this[_0x4aac('0xc')](_0x4f9556);break;case _0x4aac('0xc7'):this[_0x4aac('0xec')](_0x4f9556);}}[_0x4aac('0x103')](_0x4cd27e,_0x54fd42){const _0x1247e9=_0x4cd27e[_0x4aac('0x8')]();return _0x1247e9[_0x4aac('0x2d')]=_0x4cd27e['_authorId'],this['_fixOperation'](_0x1247e9,_0x54fd42),_0x1247e9;}[_0x4aac('0xd7')](_0x13bbeb){return _0x13bbeb['map'](_0x1deb2f=>{const _0x11e8ff=this[_0x4aac('0xf')](_0x1deb2f);return Number(_0x1deb2f[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x11e8ff));});}[_0x4aac('0x10')](_0x5c29cf,_0x346c22){if(_0x5c29cf['is'](_0x4aac('0x63'),'$text'))_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'text'});else{_0x5c29cf['is'](_0x4aac('0x63'))&&_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'elementStart'});for(const _0x5bbd4b of _0x5c29cf[_0x4aac('0xaf')]())this['_generateTape'](_0x5bbd4b,_0x346c22);_0x5c29cf['is']('element')&&_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'elementEnd'});}return _0x346c22;}[_0x4aac('0x79')](){const _0x5ede27=new Map(this[_0x4aac('0x84')]),_0x398ea2=new Map(_0x5ede27),_0x404bd8=new Map(),_0x4c1ae3={'insertions':{},'deletions':{}},_0x29da76={'insertions':{},'deletions':{}},_0x230093=new Map(),_0x688de=new Set([...this[_0x4aac('0xa0')][_0x4aac('0x8c')](),...this[_0x4aac('0xd2')]['keys']()]);_0x688de['delete'](_0x4aac('0x88'));for(const _0x49f9ee of _0x688de){const _0x13836d=this[_0x4aac('0xd2')]['get'](_0x49f9ee)||G(_0x49f9ee,!0x1),_0x1ade61=this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x49f9ee)||G(_0x49f9ee,!0x1);_0x13836d[_0x4aac('0x18')]()||_0x1ade61[_0x4aac('0x18')]()?(_0x4c1ae3['insertions'][_0x49f9ee]=q(_0x13836d),_0x4c1ae3['deletions'][_0x49f9ee]=q(_0x1ade61),this['_copyMarkers'](_0x4c1ae3['deletions'][_0x49f9ee],_0x1ade61),this['_copyMarkers'](_0x4c1ae3[_0x4aac('0x2a')][_0x49f9ee],_0x13836d),_0x29da76[_0x4aac('0x2a')][_0x49f9ee]=this['_generateTape'](this[_0x4aac('0x98')]['get'](_0x49f9ee),[]),_0x29da76[_0x4aac('0x105')][_0x49f9ee]=this[_0x4aac('0x10')](this['_baseIdsRoots'][_0x4aac('0xba')](_0x49f9ee)||G(_0x49f9ee,!0x1),[])):_0x688de[_0x4aac('0x93')](_0x49f9ee);}for(const _0x9359cf of _0x688de){const _0x429d6f=_0x29da76['insertions'][_0x9359cf];for(const _0x19f976 of _0x429d6f){const _0x5559c4=this[_0x4aac('0xf')](_0x19f976),_0x323247=_0x19f976[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x5559c4);_0x398ea2[_0x4aac('0x93')](_0x323247),_0x323247>=this[_0x4aac('0xf8')]&&_0x404bd8[_0x4aac('0x52')](_0x323247,_0x5ede27['get'](_0x323247));}}for(const _0xdbcdce of _0x688de){const _0x86b567=_0x29da76[_0x4aac('0x2a')][_0xdbcdce],_0x4fd53d=this[_0x4aac('0xd7')](_0x29da76['deletions'][_0xdbcdce]);let _0x78a72a=0x0;for(const _0x5b1566 of _0x86b567){const _0x5bcc41=this['_getVidAttributeName'](_0x5b1566),_0x105721=_0x5b1566[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x5bcc41);if(!_0x404bd8[_0x4aac('0x27')](_0x105721)&&!_0x230093[_0x4aac('0x27')](_0x105721)){if(_0x398ea2[_0x4aac('0x27')](_0x105721))_0x78a72a++;else{if(_0x105721!=_0x4fd53d[_0x78a72a]){const _0x430ce9=_0x5ede27[_0x4aac('0xba')](_0x105721)||_0x5ede27['get'](_0x4fd53d[_0x78a72a]);for(;_0x105721!=_0x4fd53d[_0x78a72a];)_0x398ea2[_0x4aac('0x27')](_0x4fd53d[_0x78a72a])||(_0x230093[_0x4aac('0x52')](_0x4fd53d[_0x78a72a],_0x430ce9),_0x5ede27[_0x4aac('0x52')](_0x4fd53d[_0x78a72a],_0x430ce9)),_0x78a72a++;}_0x78a72a++;}}}}for(const _0x260cd1 of _0x688de){const _0x4db839=_0x29da76['insertions'][_0x260cd1];for(const _0x1271df of _0x4db839){const _0x150f64=this[_0x4aac('0xf')](_0x1271df),_0x39fa13=_0x1271df[_0x4aac('0xe3')]['getAttribute'](_0x150f64);if(_0x230093[_0x4aac('0x27')](_0x39fa13)){const _0x459625=_0x230093[_0x4aac('0xba')](_0x39fa13);_0x398ea2['has'](_0x39fa13)||_0x398ea2['set'](_0x39fa13,{..._0x459625}),_0x404bd8[_0x4aac('0x52')](_0x39fa13,{..._0x459625});}}}for(const _0x3c846a of _0x398ea2[_0x4aac('0x8c')]())_0x3c846a>=this['_startingRevisionId']&&_0x398ea2[_0x4aac('0x93')](_0x3c846a);const _0x389706=new Map();for(const _0x1f29c2 of _0x688de){let _0x571c10=_0x29da76['insertions'][_0x1f29c2];for(const _0x31de3b of _0x571c10)if(_0x31de3b['item']['is'](_0x4aac('0x63'),'tableCell')){const _0x1261d1=this[_0x4aac('0xf')](_0x31de3b),_0x4c90b5=_0x31de3b[_0x4aac('0xe3')]['getAttribute'](_0x1261d1);if(_0x404bd8[_0x4aac('0x27')](_0x4c90b5)){const _0x3d37e5=_0x31de3b[_0x4aac('0xe3')]['parent'][_0x4aac('0x1e')][_0x4aac('0xa4')]('vid_start'),_0x5a3546=_0x389706['get'](_0x3d37e5)||new Set();_0x5a3546[_0x4aac('0x33')](_0x404bd8[_0x4aac('0xba')](_0x4c90b5)['userId']),_0x389706['set'](_0x3d37e5,_0x5a3546);}}_0x571c10=_0x29da76[_0x4aac('0x105')][_0x1f29c2];for(const _0x30db23 of _0x571c10)if(_0x30db23[_0x4aac('0xe3')]['is'](_0x4aac('0x63'),'tableCell')){const _0x19256c=this[_0x4aac('0xf')](_0x30db23),_0x175a53=_0x30db23[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x19256c);if(_0x398ea2[_0x4aac('0x27')](_0x175a53)){const _0x3f95f7=_0x30db23[_0x4aac('0xe3')][_0x4aac('0x1e')]['parent']['getAttribute']('vid_start'),_0xaf59c5=_0x389706[_0x4aac('0xba')](_0x3f95f7)||new Set();_0xaf59c5[_0x4aac('0x33')](_0x398ea2[_0x4aac('0xba')](_0x175a53)[_0x4aac('0x42')]),_0x389706[_0x4aac('0x52')](_0x3f95f7,_0xaf59c5);}}for(const _0x25d659 of _0x389706[_0x4aac('0x8c')]())(_0x404bd8['has'](_0x25d659)||_0x398ea2[_0x4aac('0x27')](_0x25d659))&&_0x389706[_0x4aac('0x93')](_0x25d659);}for(const _0x32f245 of _0x688de){const _0x4ddd09=_0x29da76[_0x4aac('0x2a')][_0x32f245];let _0x1d0ea8=null,_0x3c3ea1=null;for(const _0x3a1c1f of _0x4ddd09){const _0x3490e2=this['_getVidAttributeName'](_0x3a1c1f),_0x193505=_0x3a1c1f['item'][_0x4aac('0xa4')](_0x3490e2),_0x4b43bd=_0x389706[_0x4aac('0xba')](_0x193505);_0x4b43bd&&_0x4aac('0xd8')==_0x3a1c1f[_0x4aac('0xdb')]&&(_0x1d0ea8=Array['from'](_0x4b43bd)[0x0],_0x3c3ea1=_0x3a1c1f[_0x4aac('0xe3')][_0x4aac('0xa4')]('vid_end')),_0x1d0ea8&&(_0x398ea2['set'](_0x193505,{'userId':_0x1d0ea8}),_0x404bd8[_0x4aac('0x52')](_0x193505,{'userId':_0x1d0ea8})),_0x193505==_0x3c3ea1&&(_0x1d0ea8=null,_0x3c3ea1=null);}}const _0x4924de={},_0x1997dd=new Set();for(const _0x289c64 of _0x688de){const _0x48a602=_0x4c1ae3['deletions'][_0x289c64],_0x1bba4c=_0x4c1ae3['insertions'][_0x289c64];for(const {userId:_0x582fd1}of this['_touchedMarkers'][_0x4aac('0x95')]())null!==_0x582fd1&&_0x1997dd[_0x4aac('0x33')](_0x582fd1);for(const {userId:_0x14d419}of this['_touchedRoots'][_0x4aac('0x95')]())null!==_0x14d419&&_0x1997dd[_0x4aac('0x33')](_0x14d419);this[_0x4aac('0xe8')](_0x1bba4c,_0x29da76['insertions'][_0x289c64],_0x404bd8,_0x4aac('0x5b'),_0x1997dd),this['_markChanges'](_0x48a602,_0x29da76[_0x4aac('0x105')][_0x289c64],_0x398ea2,_0x4aac('0xc4'),_0x1997dd),_0x4924de[_0x289c64]={'insertions':this[_0x4aac('0xbc')](_0x1bba4c),'deletions':this[_0x4aac('0xbc')](_0x48a602),'attachChange':this[_0x4aac('0xb2')][_0x4aac('0xba')](_0x289c64)||null,'attributesBefore':_0x2c2fc7(this['_baseRootsAttributes']['get'](_0x289c64))||{},'attributesAfter':_0x2c2fc7(this['_diffRootsAttributes'][_0x4aac('0xba')](_0x289c64))};}return{'diffData':_0x4924de,'authorsIds':Array[_0x4aac('0xb')](_0x1997dd)};}[_0x4aac('0x21')](_0x4ce947){for(const [,_0xaa13b7]of _0x4ce947[_0x4aac('0x81')]){const _0x22865f=_0xaa13b7[_0x4aac('0xd6')]['getAncestors']()['filter'](_0x57c0d1=>_0x4aac('0x3')==_0x57c0d1[_0x4aac('0x2b')]);for(const _0x2687ac of _0x22865f)0x1==_0x2687ac[_0x4aac('0xb9')]&&_0x2687ac['getChild'](0x0)['is'](_0x4aac('0x63'),_0x4aac('0x1'))&&_0x2687ac[_0x4aac('0xa7')](0x0)[_0x4aac('0xe5')](_0x4aac('0x4b'),!0x0);}}[_0x4aac('0xbc')](_0x52ab5f){this[_0x4aac('0x21')](_0x52ab5f);const _0x1e4136=this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x45')](_0x52ab5f,{}),_0x211514=Array[_0x4aac('0xb')](_0x1e4136[_0x4aac('0xaf')]())[_0x4aac('0x15')](_0x58e028=>this[_0x4aac('0x75')](_0x58e028));return JSON[_0x4aac('0x5e')](_0x211514);}['_getViewJson'](_0x40224f){if(_0x40224f['is'](_0x4aac('0xf2')))return _0x40224f[_0x4aac('0x19')];{const _0x234701=_0x40224f;return{'type':Object[_0x4aac('0x8c')](B)[_0x4aac('0x51')](_0x56c9d0=>_0x40224f instanceof B[_0x56c9d0]),'name':_0x234701['name'],'attributes':Array[_0x4aac('0xb')](_0x234701[_0x4aac('0x3b')]()),'children':Array[_0x4aac('0xb')](_0x234701[_0x4aac('0xaf')]())[_0x4aac('0x15')](_0x41ac90=>this[_0x4aac('0x75')](_0x41ac90))};}}[_0x4aac('0xe8')](_0x35c8f1,_0x19a6ee,_0x2cce76,_0x1ce3ab,_0x4762e6){let _0x309df8=null,_0x5bfc9c=null,_0x5678b9=0x0;const _0x1457c9=this[_0x4aac('0x2f')]['model'];for(let _0x4555ea=0x0;_0x4555ea<_0x19a6ee[_0x4aac('0x0')];_0x4555ea++){const _0x5ce21b=this[_0x4aac('0xf')](_0x19a6ee[_0x4555ea]),_0x23e141=_0x19a6ee[_0x4555ea]['item'][_0x4aac('0xa4')](_0x5ce21b),_0x2da112=_0x2cce76[_0x4aac('0xba')](_0x23e141),_0x245caa=_0x4555ea==_0x19a6ee[_0x4aac('0x0')]-0x1;(!_0x309df8&&_0x2da112&&(_0x309df8=_0x2da112,_0x5bfc9c=_0x19a6ee[_0x4555ea]),_0x309df8&&(!_0x2da112||_0x2da112['userId']!=_0x309df8[_0x4aac('0x42')]))&&(_0x5a9d6f(_0x2da112,L(_0x5bfc9c,_0x35c8f1,_0x1457c9),L(_0x19a6ee[_0x4555ea],_0x35c8f1,_0x1457c9)),_0x309df8=_0x2da112||null,_0x5bfc9c=_0x2da112?_0x19a6ee[_0x4555ea]:null),_0x309df8&&_0x245caa&&_0x5a9d6f(_0x2da112,L(_0x5bfc9c,_0x35c8f1,_0x1457c9),W(_0x19a6ee[_0x4555ea],_0x35c8f1,_0x1457c9));}function _0x5a9d6f(_0xda8bac,_0x458610,_0x4d27dd){const _0x50f6ee=_0x309df8['userId'],_0x493443=_0x4aac('0xff')+_0x1ce3ab+':'+_0x50f6ee+':'+_0x5678b9++,_0x273f5b=_0x1457c9[_0x4aac('0x82')](_0x458610,_0x4d27dd);_0x35c8f1['markers'][_0x4aac('0x52')](_0x493443,_0x273f5b),null!==_0x50f6ee&&_0x4762e6['add'](_0x50f6ee);}}[_0x4aac('0xf')](_0x1fbc62){switch(_0x1fbc62['type']){case _0x4aac('0xd8'):return _0x4aac('0x86');case _0x4aac('0xa5'):return _0x4aac('0x4f');default:return _0x4aac('0xe');}}[_0x4aac('0x7c')](_0x527a77,_0x2c89b5){_0x527a77[_0x4aac('0x6f')]=null;for(const _0x45952d in _0x527a77){const _0x316c14=_0x527a77[_0x45952d];if(_0x316c14 instanceof _0x39217c){const _0x41a830=_0x2c89b5[_0x4aac('0xba')](_0x316c14['root'][_0x4aac('0x74')]);_0x527a77[_0x45952d]=this[_0x4aac('0xc0')](_0x316c14,_0x41a830);}if(_0x316c14 instanceof _0xde2b77){const _0x406665=_0x2c89b5[_0x4aac('0xba')](_0x316c14[_0x4aac('0x4')][_0x4aac('0x74')]);_0x527a77[_0x45952d]=this[_0x4aac('0x38')](_0x316c14,_0x406665);}_0x4aac('0x4')===_0x45952d&&(_0x527a77[_0x4aac('0x4')]=_0x2c89b5[_0x4aac('0xba')](_0x527a77[_0x4aac('0x4')][_0x4aac('0x74')]));}}[_0x4aac('0x38')](_0x2ed686,_0x13b9f4){return this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x82')](this[_0x4aac('0xc0')](_0x2ed686['start'],_0x13b9f4),this[_0x4aac('0xc0')](_0x2ed686[_0x4aac('0x8a')],_0x13b9f4));}[_0x4aac('0xc0')](_0x3ec910,_0x1f11ec){return this['editor'][_0x4aac('0x58')][_0x4aac('0x8d')](_0x1f11ec,_0x3ec910[_0x4aac('0x69')],_0x3ec910['stickiness']);}['_handleInsertOperation'](_0x5c53d2){const _0x461992=this[_0x4aac('0x98')][_0x4aac('0xba')](_0x5c53d2[_0x4aac('0x7d')][_0x4aac('0x4')][_0x4aac('0x74')]),_0x2d93db=this[_0x4aac('0xc0')](_0x5c53d2['position'],_0x461992),_0x5e6579=null===_0x5c53d2['_authorId']?null:_0x5c53d2[_0x4aac('0x2d')]||this[_0x4aac('0x2f')]['plugins']['get'](_0x4aac('0xc3'))['me']['id'],_0x16ace5=_0x2d93db[_0x4aac('0x1e')],_0x51b986=this[_0x4aac('0xf9')],_0x2c0f52=[];for(const _0x4238e4 of _0x5c53d2[_0x4aac('0xcd')])if(_0x4238e4['is'](_0x4aac('0x63')))_0x2c0f52['push'](this[_0x4aac('0xf0')](_0x4238e4));else for(let _0x445129=0x0;_0x445129<_0x4238e4[_0x4aac('0x1f')];_0x445129++)_0x2c0f52[_0x4aac('0x8f')](new _0x5edf95('$text',{'vid':this['_revisionId']++}));const _0x217bc2=this['_revisionId'];for(let _0x5f372f=_0x51b986;_0x5f372f<_0x217bc2;_0x5f372f++)this[_0x4aac('0x84')][_0x4aac('0x52')](_0x5f372f,{'userId':_0x5e6579});_0x16ace5[_0x4aac('0x101')](_0x2d93db[_0x4aac('0x3d')],_0x2c0f52);}[_0x4aac('0x62')](_0xa3dccb){(_0xa3dccb=this[_0x4aac('0x103')](_0xa3dccb,this[_0x4aac('0x98')]))[_0x4aac('0xb6')]();const _0x1679ea=null===_0xa3dccb[_0x4aac('0x2d')]?null:_0xa3dccb[_0x4aac('0x2d')]||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x13d32f=_0xa3dccb[_0x4aac('0x12')](),_0x5a3839=_0x13d32f[_0x4aac('0x1e')],_0x8e1c1b=_0x13d32f[_0x4aac('0x3d')];!function _0x12e160(_0x3801da,_0x40567c,_0x5abf08,_0x5274be){for(let _0x503673=_0x5abf08;_0x503673<_0x5274be;_0x503673++){const _0x53e6cb=_0x40567c[_0x4aac('0xa7')](_0x503673);_0x53e6cb['is'](_0x4aac('0x63'),'$text')?_0x3801da[_0x4aac('0x52')](_0x53e6cb['getAttribute']('vid'),{'userId':_0x1679ea}):(_0x3801da[_0x4aac('0x52')](_0x53e6cb[_0x4aac('0xa4')](_0x4aac('0x86')),{'userId':_0x1679ea}),_0x12e160(_0x3801da,_0x53e6cb,0x0,_0x53e6cb[_0x4aac('0xb9')]),_0x3801da[_0x4aac('0x52')](_0x53e6cb[_0x4aac('0xa4')](_0x4aac('0x4f')),{'userId':_0x1679ea}));}}(this['_touched'],_0x5a3839,_0x8e1c1b,_0x8e1c1b+_0xa3dccb['howMany']);}['_handleMergeOperation'](_0x14ca9f){const _0x4a0fe1=null===(_0x14ca9f=this[_0x4aac('0x103')](_0x14ca9f,this[_0x4aac('0x98')]))[_0x4aac('0x2d')]?null:_0x14ca9f[_0x4aac('0x2d')]||this['editor'][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x12d73b=_0x14ca9f[_0x4aac('0x2')][_0x4aac('0x1e')],_0x44115a=_0x14ca9f[_0x4aac('0x55')][_0x4aac('0x1e')],_0x100dde=_0x12d73b[_0x4aac('0xa4')](_0x4aac('0x4f')),_0x45fd37=_0x44115a[_0x4aac('0xa4')](_0x4aac('0x86'));_0x12d73b['_setAttribute'](_0x4aac('0x4f'),_0x44115a[_0x4aac('0xa4')](_0x4aac('0x4f'))),_0x44115a['_setAttribute'](_0x4aac('0x4f'),_0x100dde),this[_0x4aac('0x84')]['set'](_0x45fd37,{'userId':_0x4a0fe1}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x100dde,{'userId':_0x4a0fe1}),_0x14ca9f['_execute']();}[_0x4aac('0xc')](_0x24126b){const _0x3319da=null===(_0x24126b=this[_0x4aac('0x103')](_0x24126b,this[_0x4aac('0x98')]))[_0x4aac('0x2d')]?null:_0x24126b['_authorId']||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x75ec27=_0x24126b[_0x4aac('0xf7')],_0x5e4407=_0x24126b[_0x4aac('0x9c')][_0x4aac('0x1e')];_0x24126b['_execute']();const _0x4fb5e4=_0x5e4407[_0x4aac('0xa4')]('vid_end'),_0x23ca53=_0x24126b[_0x4aac('0xeb')][_0x4aac('0xfb')];if(_0x75ec27){const _0x3b27be=_0x23ca53[_0x4aac('0xa4')]('vid_end'),_0x467628=_0x5e4407[_0x4aac('0xa4')](_0x4aac('0x4f'));_0x5e4407[_0x4aac('0xe5')](_0x4aac('0x4f'),_0x3b27be),_0x23ca53[_0x4aac('0xe5')]('vid_end',_0x467628),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x5e4407[_0x4aac('0xa4')](_0x4aac('0x4f')),{'userId':_0x3319da}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x23ca53[_0x4aac('0xa4')](_0x4aac('0x86')),{'userId':_0x3319da});}else{const _0x13844e=this[_0x4aac('0xf9')]++,_0x32bfcb=this[_0x4aac('0xf9')]++;_0x5e4407[_0x4aac('0xe5')]('vid_end',_0x13844e),_0x23ca53[_0x4aac('0xe5')]('vid_start',_0x32bfcb),_0x23ca53[_0x4aac('0xe5')]('vid_end',_0x4fb5e4),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x13844e,{'userId':_0x3319da}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x32bfcb,{'userId':_0x3319da});}}[_0x4aac('0xec')](_0x525acb){if(!_0x525acb[_0x4aac('0x6')])return;const _0x11c597=(_0x525acb=this[_0x4aac('0x103')](_0x525acb,this[_0x4aac('0xd2')]))[_0x4aac('0xbf')]?_0x525acb[_0x4aac('0xbf')][_0x4aac('0x4')]:null,_0x3b87f4=_0x525acb[_0x4aac('0x3e')]?_0x525acb[_0x4aac('0x3e')]['root']:null;_0x11c597&&this['_markers'][_0x4aac('0x93')](_0x525acb[_0x4aac('0x2b')]),_0x3b87f4&&this[_0x4aac('0x37')][_0x4aac('0x52')](_0x525acb[_0x4aac('0x2b')],_0x525acb[_0x4aac('0x3e')][_0x4aac('0x8')]());const _0x59bd3d=null===_0x525acb[_0x4aac('0x2d')]?null:_0x525acb[_0x4aac('0x2d')]||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x2b36ee=_0x525acb[_0x4aac('0x2b')];if(!this[_0x4aac('0x9e')][_0x4aac('0x27')](_0x2b36ee))return void this[_0x4aac('0x9e')]['set'](_0x2b36ee,{'range':_0x525acb[_0x4aac('0xbf')],'userId':_0x59bd3d});const _0x4252ca=this[_0x4aac('0x9e')][_0x4aac('0xba')](_0x2b36ee),_0x54143b=_0x4252ca['range'],_0x2be7ce=_0x525acb[_0x4aac('0x3e')];null==_0x54143b&&null==_0x2be7ce||_0x54143b&&_0x2be7ce&&_0x54143b[_0x4aac('0xa6')](_0x2be7ce)?this[_0x4aac('0x9e')]['delete'](_0x525acb['name']):_0x4252ca[_0x4aac('0x42')]=_0x59bd3d;}[_0x4aac('0xc6')](_0x3b84e4,_0x4f4885){this[_0x4aac('0xd2')][_0x4aac('0x27')](_0x3b84e4[_0x4aac('0x74')])?this[_0x4aac('0xd2')][_0x4aac('0xba')](_0x3b84e4[_0x4aac('0x74')])['_isAttached']=_0x3b84e4['isAdd']:(this[_0x4aac('0xd2')][_0x4aac('0x52')](_0x3b84e4['rootName'],G(_0x3b84e4[_0x4aac('0x74')],!0x0)),this['_diffRootsAttributes'][_0x4aac('0x52')](_0x3b84e4['rootName'],{}),_0x4f4885&&this[_0x4aac('0x98')]['set'](_0x3b84e4[_0x4aac('0x74')],G(_0x3b84e4[_0x4aac('0x74')],!0x0)));const _0x1cda71=null===_0x3b84e4[_0x4aac('0x2d')]?null:_0x3b84e4[_0x4aac('0x2d')]||this['editor'][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['me']['id'],_0x496573=this[_0x4aac('0xb2')][_0x4aac('0xba')](_0x3b84e4['rootName']);_0x496573&&_0x496573[_0x4aac('0x42')]===_0x1cda71?this[_0x4aac('0xb2')][_0x4aac('0x93')](_0x3b84e4[_0x4aac('0x74')]):this[_0x4aac('0xb2')][_0x4aac('0x52')](_0x3b84e4[_0x4aac('0x74')],{'userId':_0x1cda71,'isAttached':_0x3b84e4[_0x4aac('0xf6')]});}['_handleRootAttributeOperation'](_0x40a04e){const _0x4cdf8f=this[_0x4aac('0xe0')][_0x4aac('0xba')](_0x40a04e[_0x4aac('0x4')][_0x4aac('0x74')]);null===_0x40a04e[_0x4aac('0x49')]?delete _0x4cdf8f[_0x40a04e[_0x4aac('0xab')]]:_0x4cdf8f[_0x40a04e['key']]=_0x40a04e['newValue'];}}function q(_0x3dec90){const _0x511220=G(_0x3dec90[_0x4aac('0x74')],_0x3dec90['isAttached']());for(const _0x4ae3e5 of _0x3dec90['getChildren']()){const _0x47e3f6=_0x4ae3e5[_0x4aac('0x65')](!0x0);_0x511220['_appendChild'](_0x47e3f6);}return _0x511220;}function G(_0x1ad117,_0x12ce0e=!0x0){const _0x458b4a=new _0x54e3f3();return _0x458b4a[_0x4aac('0x74')]=_0x1ad117,_0x458b4a[_0x4aac('0x48')]=_0x12ce0e,_0x458b4a['isAttached']=()=>_0x458b4a[_0x4aac('0x48')],_0x458b4a;}function L(_0x12c1fe,_0x49c7a4,_0x57f201){const _0x231480=_0x4aac('0xa5')==_0x12c1fe[_0x4aac('0xdb')]?_0x57f201[_0x4aac('0x34')](_0x12c1fe['item'],_0x4aac('0x8a')):_0x57f201['createPositionBefore'](_0x12c1fe[_0x4aac('0xe3')]);return _0x57f201[_0x4aac('0x8d')](_0x49c7a4,_0x231480[_0x4aac('0x69')],_0x231480[_0x4aac('0x96')]);}function W(_0x1ce93f,_0x5243ab,_0x2844cf){const _0x4ff6cd=_0x4aac('0xd8')==_0x1ce93f['type']?_0x2844cf[_0x4aac('0x34')](_0x1ce93f['item'],0x0):_0x2844cf['createPositionAfter'](_0x1ce93f[_0x4aac('0xe3')]);return _0x2844cf[_0x4aac('0x8d')](_0x5243ab,_0x4ff6cd[_0x4aac('0x69')],_0x4ff6cd[_0x4aac('0x96')]);}
|
|
23
|
+
const _0x125a=['setRevisionData','for','addRoot','_makeModelFromViewString','position','_markChanges','repository','getData','_touchedRoots','hasContent','data','resolve','merge','addRevision','_removeRevisionMarkers','dataToMarker','getLatestVersion','_initialRevisionId','view','_handleMarkerOperation','_generateTape','toView','editing','adapter','getRevision','toModel','Users','conversion','history','_getBaseVids','version','insert','_applyOperations','roots','howMany','isEnabled','_execute','offsetSize','_touched','getIndex','includes','getChildren','upcast','_touchedMarkers','values','_fixRange','ready','startsWith','_processRootBeforeSave','_handleRootOperation','pluginName','_loadState','_update','_authorId','editor','revision-start','marker','reInit','_lastTo','insertions','elementEnd','_appendChild','push','vid_end','newRange','find','createPositionBefore','_baseRootsAttributes','_setAttribute','marked','revision:','_savedMetaData','removeRootAttribute','range','_getPreviousFrom','vid_start','initialData','_fixPosition','createRange','data-revision-','config','split','RevisionTracker','deletions','rootName','_getViewJson','attributesBefore','string','detachRoot','loadState','path','PendingActions','reverse','_isAttached','move','rootsAttributes','_getState','_startingRevisionId','_makeRevision','init','size','_setConversion','root','_idsRoots','fromEntries','_createCurrentRevision','max','_handleOperation','previousPosition','parse','_markers','key','RealTimeCollaborationClient','_loadedStateData','keys','markers','then','nodeAfter','createPositionAfter','_bufferedUpdates','addRevisionData','baseVersion','_saveMetaData','childCount','splitPosition','_bufferUpdate','clear','trim','RevisionsRepository','attributes','_handleMergeOperation','children','_handleSplitOperation','createRangeIn','from','_findInsertionIndex','getRoot','isAttached','initial','requires','oldRange','_getFromVersion','offset','_pendingAction','_cloneOperation','_insertChild','sendBufferedUpdates','collaboration.channelId','getRevisionRootsAttributes','item','has','_handleMoveOperation','getCurrentRevisionId','_continueCurrentRevision','plugins','setSource','createPositionFromPath','_handleRootAttributeOperation','authors','_handleInsertOperation','getMovedRangeStart','getNodeByPath','element','revision-end','_baseIdsRoots','currentRevision','bind','newValue','_reset','useFillerType','afterInit','length','_revisionDataBuilder','shift','processor','buildRevisionData','fromVersion','getChild','_removeMetaData','_diffRootsAttributes','update','attributesAfter','_clone','dataDowncast','nodes','_addPendingAction','_baseRoots','_prepareViewToSave','_replaceEditorDataWithRevisionData','map','creator','getTime','end','graveyardPosition','_source','NEGATIVE_INFINITY','_removePendingAction','addRootAttribute','slice','createRevision','name','_createFromRanges','tableCell','locale','_revisionId','revisionHistory.resumeUnsavedRevision','revision','documentFragment','_calculateMetaData','model','getUser','toData','targetPosition','changeRootAttribute','getRevisionDocumentData','remove','authorsIds','filter','stickiness','_makeIdsRoot','get','_diffRoots','_getVidAttributeName','vid','_copyMarkers','getAttributes','createPositionAt','isReady','_isPendingUpdate','toVersion','_isInit','set','getOperations','document','getOperation','parent','saveRevision','diffData','source','attachChange','_loadRevisionData','_startingVersion','_transformMarkers','elementStart','clone','isEqual','getAncestors','userId','_lastFrom','$graveyard','_createInitialRevision','type','add','$text','getWalker','delete','getAttribute','_fixOperation','getRevisions','PENDING_ACTION_REVISION_HISTORY','start','createdAt','editor-initial-data-replaced-with-revision-data','creatorId'];(function(_0x3c2e48,_0x125ac6){const _0x50fbe8=function(_0x4ca5da){while(--_0x4ca5da){_0x3c2e48['push'](_0x3c2e48['shift']());}};_0x50fbe8(++_0x125ac6);}(_0x125a,0x73));const _0x50fb=function(_0x3c2e48,_0x125ac6){_0x3c2e48=_0x3c2e48-0x0;let _0x50fbe8=_0x125a[_0x3c2e48];return _0x50fbe8;};import{Users as _0x10078a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x52ae07,PendingActions as _0x292181}from'ckeditor5/src/core';import{logWarning as _0x838920,uid as _0x17a79d}from'ckeditor5/src/utils';import{Position as _0x43e92a,Range as _0x7b4d61,Element as _0x161915,DocumentFragment as _0x496a5b,ViewText as _0x29a111,ViewElement as _0x4e0364,ViewContainerElement as _0x19f5c1,ViewAttributeElement as _0x39bc74,ViewEmptyElement as _0x2ff576,ViewRawElement as _0x1000f0,ViewUIElement as _0x205595,ViewDocumentFragment as _0x50f246}from'ckeditor5/src/engine';import _0x2437e1 from'./revisionsrepository';import{getTranslation as _0x1d4030}from'./utils/common-translations';import{cloneDeep as _0x4f8a65,isEqual as _0xc082f6}from'lodash-es';const B={'c':_0x19f5c1,'a':_0x39bc74,'e':_0x2ff576,'r':_0x1000f0,'u':_0x205595};export default class l extends _0x52ae07{static get[_0x50fb('0xc7')](){return _0x50fb('0xe7');}static get[_0x50fb('0x18')](){return[_0x10078a,_0x2437e1,_0x292181];}constructor(_0x10e4fb){super(_0x10e4fb),this[_0x50fb('0xac')]=null,this['currentRevision']=null,this[_0x50fb('0x39')]=new H(this[_0x50fb('0xcb')]),this[_0x50fb('0xa6')]=this[_0x50fb('0xcb')][_0x50fb('0xe5')]['get'](_0x50fb('0x20'))||_0x50fb('0x17'),this[_0x50fb('0x4')]=new Map(),this['_loadedStateData']=null;const _0x10eeff=_0x17a79d();this[_0x50fb('0x4f')]={'history':this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')],'getLatestVersion':()=>Promise[_0x50fb('0xa0')](this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document'][_0x50fb('0xb3')]),'getCurrentRevisionId':()=>_0x10eeff},this[_0x50fb('0x74')](_0x50fb('0x70'),!0x1),this[_0x50fb('0x74')](_0x50fb('0xb8'),!0x0),this[_0x50fb('0x74')]('_isPendingUpdate',!0x1),this[_0x50fb('0xcb')][_0x50fb('0xe5')]['define'](_0x50fb('0x5a'),!0x0),this['editor'][_0x50fb('0xb0')][_0x50fb('0x96')](_0x50fb('0xbf'))[_0x50fb('0xa4')]({'view':_0x50fb('0x5b')});}[_0x50fb('0xf8')](){this[_0x50fb('0x9b')]=this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xd')),this[_0x50fb('0xfa')](),this['editor'][_0x50fb('0x9f')]['on'](_0x50fb('0xc3'),()=>{const _0x592fe1=this[_0x50fb('0x9b')][_0x50fb('0xad')](0x0),_0x79197f=_0x592fe1&&null===_0x592fe1[_0x50fb('0x4b')]?_0x592fe1:null;if(this[_0x50fb('0x26')]=!!_0x79197f&&this['editor'][_0x50fb('0xe5')]['get'](_0x50fb('0x5a')),this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x23')](_0x50fb('0x105'))){const _0x4218dd=this[_0x50fb('0x4f')][_0x50fb('0x25')](),_0x50964d=this['repository'][_0x50fb('0xad')](_0x4218dd);if(_0x50964d)this[_0x50fb('0x7e')]=_0x50964d[_0x50fb('0x3d')],this['_continueCurrentRevision']=!0x1;else{const _0x555565=this[_0x50fb('0x4f')][_0x50fb('0xb1')]['_operations'][_0x50fb('0xd6')](_0x4bbeac=>!_0x4bbeac[_0x50fb('0x73')]),_0x49e02d=_0x555565?_0x555565[_0x50fb('0x6')]:this[_0x50fb('0x4f')][_0x50fb('0xb1')][_0x50fb('0xb3')];_0x592fe1?(_0x592fe1[_0x50fb('0x72')]<_0x49e02d&&_0x592fe1[_0x50fb('0xc9')]({'toVersion':_0x49e02d}),this[_0x50fb('0x26')]?(this[_0x50fb('0x4f')]['getCurrentRevisionId']=()=>_0x79197f['id'],this[_0x50fb('0x7e')]=_0x79197f[_0x50fb('0x3d')]):(this[_0x50fb('0x7e')]=_0x592fe1[_0x50fb('0x72')],this[_0x50fb('0x26')]=!0x1)):(this['_startingVersion']=_0x49e02d,this[_0x50fb('0x26')]=!0x1);}}else _0x79197f&&(this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')][_0x50fb('0xb3')]=Math[_0x50fb('0xff')](_0x79197f[_0x50fb('0x72')],this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')][_0x50fb('0xb3')]),_0x79197f[_0x50fb('0x3d')]===_0x79197f[_0x50fb('0x72')]?(0x0!==_0x79197f['fromVersion']&&(this['_source'][_0x50fb('0x25')]=()=>_0x79197f['id']),this[_0x50fb('0x26')]=!0x1):this[_0x50fb('0x26')]&&(this[_0x50fb('0x4f')]['getCurrentRevisionId']=()=>_0x79197f['id'],this[_0x50fb('0x7e')]=_0x79197f[_0x50fb('0x3d')])),this['_continueCurrentRevision']||(this[_0x50fb('0x7e')]=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb3')]);this[_0x50fb('0x39')][_0x50fb('0xf8')](this['_source'][_0x50fb('0xb1')]),this['_createInitialRevision'](this[_0x50fb('0x7e')]),this[_0x50fb('0xfe')](this[_0x50fb('0x7e')]),this[_0x50fb('0xac')]&&this[_0x50fb('0x1f')]();}),this[_0x50fb('0x33')]('isReady')['to'](this,_0x50fb('0x71'),_0x1c6a6c=>!_0x1c6a6c);}async[_0x50fb('0x37')](){if(this[_0x50fb('0x9b')][_0x50fb('0x38')]>0x0){const _0x5257a3=this[_0x50fb('0x9b')][_0x50fb('0xad')](0x0),_0x169719=await this[_0x50fb('0x63')](_0x5257a3),_0x1b6b0a=await this['getRevisionRootsAttributes'](_0x5257a3);this['_replaceEditorDataWithRevisionData'](_0x169719,_0x1b6b0a);}}[_0x50fb('0x28')](_0x558e6d){this[_0x50fb('0x4f')]=_0x558e6d;}async[_0x50fb('0x41')](){const _0x379f2e=await this[_0x50fb('0x4f')][_0x50fb('0xa5')]();if(_0x379f2e>this[_0x50fb('0x32')][_0x50fb('0x72')]){await this['_loadState']();const _0x55ea10=this[_0x50fb('0x3c')]({'revision':this[_0x50fb('0x32')],'to':_0x379f2e});_0x55ea10[_0x50fb('0x2b')]=_0x55ea10[_0x50fb('0x65')]['map'](_0x3498b8=>this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))[_0x50fb('0x5f')](_0x3498b8)),this['currentRevision'][_0x50fb('0xc9')](_0x55ea10);}}async[_0x50fb('0xc8')](){this[_0x50fb('0x26')]&&!this[_0x50fb('0x106')]&&(await this[_0x50fb('0x7d')](this[_0x50fb('0x32')]),this['_revisionDataBuilder'][_0x50fb('0xee')](this[_0x50fb('0x32')]),this[_0x50fb('0x106')]={'fromVersion':this[_0x50fb('0x32')][_0x50fb('0x3d')],'authors':this[_0x50fb('0x32')][_0x50fb('0x2b')][_0x50fb('0x53')]()});}async[_0x50fb('0x79')](_0x4b228d={},_0x84c992=null){const _0x5d3de5=[];await this[_0x50fb('0xc8')](),this['_continueCurrentRevision']=!0x1,_0x84c992>this[_0x50fb('0x32')][_0x50fb('0x72')]&&(_0x84c992=null),null===_0x84c992&&(_0x84c992=await this['_source'][_0x50fb('0xa5')]());const _0x2b6ae5=this[_0x50fb('0x1a')](_0x84c992),_0x5e5a8a=this[_0x50fb('0x3c')]({'from':_0x2b6ae5,'to':_0x84c992});if(this['currentRevision'][_0x50fb('0x72')]<_0x84c992){const _0x405c4d=this[_0x50fb('0x3c')]({'revision':this['currentRevision'],'from':_0x84c992,'to':_0x84c992});_0x405c4d[_0x50fb('0x2b')]=[],_0x405c4d[_0x50fb('0x65')]=[],_0x405c4d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x405c4d,!0x0),delete _0x405c4d[_0x50fb('0x2b')],_0x5d3de5[_0x50fb('0xd3')](_0x405c4d);}_0x4b228d[_0x50fb('0x94')]=this[_0x50fb('0xcb')][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))['me']['id'],_0x4b228d[_0x50fb('0x55')]=_0x4b228d[_0x50fb('0x55')]||null,_0x4b228d['id']=_0x4b228d['id']||_0x17a79d(),_0x4b228d={..._0x4b228d,..._0x5e5a8a};const _0x24868e=this['addRevisionData'](_0x4b228d);_0x5d3de5[_0x50fb('0xd3')](_0x4b228d);const _0x5eb496=this[_0x50fb('0x9b')][_0x50fb('0xbc')](_0x24868e);if(0x0!==_0x5eb496){const _0x51dd3e=this[_0x50fb('0x9b')][_0x50fb('0xad')](_0x5eb496-0x1);if(_0x51dd3e['fromVersion']!==_0x84c992){const _0x2d09d3=this['_revisionDataBuilder'][_0x50fb('0x9c')](_0x84c992,_0x51dd3e['toVersion']),_0x249359={'id':_0x51dd3e['id'],'diffData':_0x2d09d3[_0x50fb('0x7a')],'authorsIds':_0x2d09d3[_0x50fb('0x65')],'authors':_0x2d09d3[_0x50fb('0x65')][_0x50fb('0x4a')](_0x273228=>this[_0x50fb('0xcb')][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['getUser'](_0x273228)),'fromVersion':_0x84c992};_0x51dd3e===this[_0x50fb('0x32')]&&(_0x249359[_0x50fb('0x92')]=new Date(_0x4b228d[_0x50fb('0x92')][_0x50fb('0x4c')]()+0xa)),_0x51dd3e[_0x50fb('0xc9')](_0x249359,!0x0),delete _0x249359[_0x50fb('0x2b')],_0x5d3de5[_0x50fb('0xd3')](_0x249359);}}if(this[_0x50fb('0xac')]){for(const _0x451b1a of _0x5d3de5)this[_0x50fb('0xa')](_0x451b1a['id'],_0x451b1a,!0x0);this[_0x50fb('0x1f')]();}return _0x24868e;}['addRevisionData'](_0x28aff8){const _0x128160=this[_0x50fb('0x9b')][_0x50fb('0x54')](_0x28aff8);return this[_0x50fb('0xac')]&&_0x128160['on']('_update',(_0x5416da,_0x35003c,_0x486eff)=>{_0x486eff||(this['_bufferUpdate'](_0x35003c['id'],_0x35003c,!0x0),this['sendBufferedUpdates']());}),this[_0x50fb('0x9b')][_0x50fb('0xa2')](_0x128160,this[_0x50fb('0x14')](_0x128160)),_0x128160;}async[_0x50fb('0x63')](_0x1bc4d7){await this['_loadRevisionData'](_0x1bc4d7);const _0x52ec5d={};for(const _0x953a in _0x1bc4d7[_0x50fb('0x7a')]){if(_0x1bc4d7[_0x50fb('0x7a')][_0x953a]['attachChange']&&!_0x1bc4d7[_0x50fb('0x7a')][_0x953a][_0x50fb('0x7c')][_0x50fb('0x16')])continue;const _0x58ed30=this[_0x50fb('0xa3')](JSON[_0x50fb('0x102')](_0x1bc4d7[_0x50fb('0x7a')][_0x953a][_0x50fb('0xd0')])),_0x36eb63=this[_0x50fb('0xcb')][_0x50fb('0xab')][_0x50fb('0xa7')][_0x50fb('0x76')],_0x3b7712=new _0x50f246(_0x36eb63,_0x58ed30[_0x50fb('0x4a')](_0x5d5784=>J(_0x5d5784,this[_0x50fb('0xcb')])));this['editor'][_0x50fb('0x9f')][_0x50fb('0x3b')][_0x50fb('0x36')](_0x50fb('0xda')),_0x52ec5d[_0x953a]=this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0x3b')][_0x50fb('0x60')](_0x3b7712),this['editor'][_0x50fb('0x9f')]['processor'][_0x50fb('0x36')]('default');}return _0x52ec5d;}async[_0x50fb('0x21')](_0x237b75){await this['_loadRevisionData'](_0x237b75);const _0xb6c831={};for(const _0x11b8fe in _0x237b75['diffData'])_0x237b75[_0x50fb('0x7a')][_0x11b8fe][_0x50fb('0x7c')]&&!_0x237b75[_0x50fb('0x7a')][_0x11b8fe]['attachChange'][_0x50fb('0x16')]||(_0xb6c831[_0x11b8fe]=_0x237b75[_0x50fb('0x7a')][_0x11b8fe][_0x50fb('0x42')]||{});return _0xb6c831;}[_0x50fb('0x1f')](){if(0x0===this[_0x50fb('0x4')][_0x50fb('0xf9')])return;if(this['_isPendingUpdate'])return;let _0x5ad457=Array['from'](this['_bufferedUpdates'][_0x50fb('0xc1')]());this[_0x50fb('0x4')][_0x50fb('0xb')]();for(let _0x3c5375=0x0;_0x3c5375<_0x5ad457[_0x50fb('0x38')];_0x3c5375++){const _0x77c15c=_0x5ad457[_0x3c5375];let _0x46a8ec=!0x1;for(const _0x4d7077 of Object[_0x50fb('0x107')](_0x77c15c))void 0x0===_0x77c15c[_0x4d7077]?delete _0x77c15c[_0x4d7077]:'id'!==_0x4d7077&&(_0x46a8ec=!0x0);_0x46a8ec||(_0x5ad457[_0x3c5375]=null);}if(_0x5ad457=_0x5ad457[_0x50fb('0x66')](_0x504170=>null!==_0x504170),!_0x5ad457[_0x50fb('0x38')])return;for(let _0x3c9e15=0x0;_0x3c9e15<_0x5ad457[_0x50fb('0x38')];_0x3c9e15++){const _0x97066=_0x5ad457[_0x3c9e15];void 0x0!==_0x97066['fromVersion']&&void 0x0===_0x97066['toVersion']&&(_0x97066[_0x50fb('0x72')]=this['repository'][_0x50fb('0xad')](_0x97066['id'])[_0x50fb('0x72')]),void 0x0!==_0x97066[_0x50fb('0x72')]&&void 0x0===_0x97066[_0x50fb('0x3d')]&&(_0x97066['fromVersion']=this[_0x50fb('0x9b')]['getRevision'](_0x97066['id'])[_0x50fb('0x3d')]);}const _0x4b1391=this['editor']['config'][_0x50fb('0x69')]('collaboration.channelId');this[_0x50fb('0x71')]=!0x0,this[_0x50fb('0x46')](),this[_0x50fb('0xac')]['updateRevisions'](_0x5ad457,_0x4b1391)['finally'](()=>{this[_0x50fb('0x71')]=!0x1;})[_0x50fb('0x1')](_0x261d11=>{if(_0x261d11)for(const _0x350b69 of _0x261d11)this[_0x50fb('0x95')]({'id':_0x350b69['id'],'createdAt':_0x350b69['createdAt']});this['_removePendingAction'](),this[_0x50fb('0x1f')]();});}[_0x50fb('0x49')](_0x10adc7,_0x2493ef){let _0x3ff06b=this[_0x50fb('0xcb')]['config'][_0x50fb('0x69')](_0x50fb('0xe1')),_0x2f176f=this[_0x50fb('0xcb')]['config'][_0x50fb('0x69')](_0x50fb('0xf4'));if(void 0x0===_0x3ff06b){_0x3ff06b={};for(const _0x2d2e58 of this[_0x50fb('0xcb')]['model']['document']['getRootNames']())_0x3ff06b[_0x2d2e58]='';}if(_0x50fb('0xec')==typeof _0x3ff06b&&(_0x3ff06b={'main':_0x3ff06b}),void 0x0===_0x2f176f){_0x2f176f={};for(const _0x1c2019 of this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document']['getRootNames']())_0x2f176f[_0x1c2019]={};}let _0x500c6a=!0x1;const _0x598fa6=Object[_0x50fb('0x107')](_0x3ff06b),_0x565925=Object[_0x50fb('0x107')](_0x10adc7);for(const _0x5ed868 of _0x598fa6){if(_0x3ff06b[_0x5ed868]!==_0x10adc7[_0x5ed868]&&''!==_0x3ff06b[_0x5ed868][_0x50fb('0xc')]()){_0x500c6a=!0x0;break;}if(!_0xc082f6(_0x2f176f[_0x5ed868],_0x2493ef[_0x5ed868])&&Object[_0x50fb('0x107')](_0x2f176f[_0x5ed868])[_0x50fb('0x38')]>0x0){_0x500c6a=!0x0;break;}}_0x500c6a||(_0x500c6a=_0x565925['some'](_0x5325f0=>!this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document'][_0x50fb('0x15')](_0x5325f0))),_0x500c6a&&_0x838920(_0x50fb('0x93'),{'editorData':_0x3ff06b,'editorRootsAttributes':_0x2f176f,'revisionData':_0x10adc7,'revisionRootsAttributes':_0x2493ef}),this[_0x50fb('0xcb')][_0x50fb('0xe5')][_0x50fb('0x74')](_0x50fb('0xe1'),_0x10adc7),this[_0x50fb('0xcb')][_0x50fb('0xe5')][_0x50fb('0x74')]('rootsAttributes',_0x2493ef);}[_0x50fb('0x46')](){if(!this['_pendingAction']){const _0x5dc19a=this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')](_0x50fb('0xf0'));this[_0x50fb('0x1c')]=_0x5dc19a[_0x50fb('0x89')](_0x1d4030(this[_0x50fb('0xcb')][_0x50fb('0x58')],_0x50fb('0x90')));}}[_0x50fb('0x51')](){this[_0x50fb('0x1c')]&&(this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xf0'))['remove'](this['_pendingAction']),this[_0x50fb('0x1c')]=null);}[_0x50fb('0x14')](_0x31484f){const _0x434a4e=this[_0x50fb('0x9b')][_0x50fb('0x8f')]();_0x434a4e[_0x50fb('0xf1')]();let _0x2c2290=0x0;for(;_0x2c2290<_0x434a4e['length'];){const _0x432492=_0x434a4e[_0x2c2290];if(_0x432492===this['currentRevision']){_0x2c2290++;continue;}if(_0x432492['id']===this['_initialRevisionId'])break;const _0x494c1f=_0x31484f[_0x50fb('0x72')]-_0x432492[_0x50fb('0x72')]||_0x31484f['fromVersion']-_0x432492['fromVersion'];if(_0x494c1f>0x0)break;if(_0x494c1f<0x0)_0x2c2290++;else{if(!_0x31484f[_0x50fb('0x4b')]&&_0x432492[_0x50fb('0x4b')])break;if(_0x432492[_0x50fb('0x4b')]||!_0x31484f[_0x50fb('0x4b')]){if(_0x31484f[_0x50fb('0x92')]>_0x432492[_0x50fb('0x92')])break;_0x2c2290++;}else _0x2c2290++;}}return _0x2c2290;}['setRevisionData'](_0x4451b0){const _0x5d8626=this[_0x50fb('0x9b')][_0x50fb('0xad')](_0x4451b0['id']);if(_0x4451b0[_0x50fb('0x92')]&&(_0x4451b0[_0x50fb('0x92')]=new Date(_0x4451b0[_0x50fb('0x92')])),_0x4451b0[_0x50fb('0x65')]){const _0x5a773a=this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')]('Users');_0x4451b0['authors']=_0x4451b0[_0x50fb('0x65')][_0x50fb('0x4a')](_0x5aaef6=>_0x5a773a['getUser'](_0x5aaef6));}_0x5d8626[_0x50fb('0xc9')](_0x4451b0,!0x0);}[_0x50fb('0x3c')]({revision:_0x446724=null,from:_0x5a4ea3=null,to:_0x3d87e0=null}){_0x5a4ea3=null!==_0x5a4ea3?_0x5a4ea3:_0x446724[_0x50fb('0x3d')],_0x3d87e0=null!==_0x3d87e0?_0x3d87e0:_0x446724[_0x50fb('0x72')];const _0x330604=this[_0x50fb('0x39')][_0x50fb('0x9c')](_0x5a4ea3,_0x3d87e0),_0x12186c={'diffData':_0x330604[_0x50fb('0x7a')],'authorsIds':_0x330604[_0x50fb('0x65')],'fromVersion':_0x5a4ea3,'toVersion':_0x3d87e0};if(!_0x446724||_0x3d87e0!==_0x446724[_0x50fb('0x72')]){const _0x17a833=_0x3d87e0-0x1,_0x5826b1=this[_0x50fb('0x4f')]['history'][_0x50fb('0x77')](_0x17a833);_0x12186c[_0x50fb('0x92')]=_0x5826b1&&_0x5826b1[_0x50fb('0x92')]||new Date();}if(this[_0x50fb('0x106')]&&_0x5a4ea3===this[_0x50fb('0x106')]['fromVersion'])for(const _0x33c4e2 of this[_0x50fb('0x106')]['authors'])_0x12186c[_0x50fb('0x65')][_0x50fb('0xbd')](_0x33c4e2['id'])||_0x12186c[_0x50fb('0x65')][_0x50fb('0xd3')](_0x33c4e2['id']);return _0x12186c;}[_0x50fb('0x7d')](_0x314a23){if(!_0x314a23||_0x314a23[_0x50fb('0x7a')])return Promise[_0x50fb('0xa0')]();{const _0x227b45=this['editor'][_0x50fb('0xe5')][_0x50fb('0x69')](_0x50fb('0x20'));return this[_0x50fb('0xac')]['getRevision']({'channelId':_0x227b45,'revisionId':_0x314a23['id']})[_0x50fb('0x1')](_0x4da818=>{_0x314a23[_0x50fb('0x7a')]=_0x4da818['diffData'];});}}['_bufferUpdate'](_0x1b3816,_0x1d9092,_0x50957b){if(this[_0x50fb('0x4')][_0x50fb('0x23')](_0x1b3816)){const _0x13bdc5=this['_bufferedUpdates'][_0x50fb('0x69')](_0x1b3816);_0x1d9092=_0x50957b?{..._0x13bdc5,..._0x1d9092}:{..._0x1d9092,..._0x13bdc5};}this[_0x50fb('0x4')][_0x50fb('0x74')](_0x1b3816,_0x1d9092);}['_getFromVersion'](_0x3dc82e){const _0x1a0219=this['repository']['getRevisions']();_0x1a0219[_0x50fb('0xf1')](),_0x1a0219[_0x50fb('0x3a')]();const _0x27ed2f=_0x1a0219[_0x50fb('0xd6')](_0x1ec5e6=>_0x1ec5e6['toVersion']<=_0x3dc82e)['toVersion'];return _0x27ed2f<this['_startingVersion']?this[_0x50fb('0x7e')]:_0x27ed2f;}[_0x50fb('0x87')](_0x293ce1){const _0x4b72ac=this[_0x50fb('0x9b')][_0x50fb('0xad')](this['repository'][_0x50fb('0x38')]-0x1);if(_0x4b72ac)this['_initialRevisionId']=_0x4b72ac['id'];else{const _0x32c557=!this['editor'][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb6')]['find'](_0x4b82d6=>this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x9e')](_0x4b82d6)),_0x1fb5d8=this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))['me']['id'],_0x352979=_0x1d4030(this[_0x50fb('0xcb')]['locale'],_0x32c557?'Empty\x20document':'Initial\x20revision');this[_0x50fb('0xf7')]({'from':_0x293ce1,'to':_0x293ce1,'id':this[_0x50fb('0xa6')],'name':_0x352979,'creatorId':_0x1fb5d8});}}[_0x50fb('0xfe')](_0x19f11a){const _0x5a93c8=this['_source'][_0x50fb('0x25')]();this[_0x50fb('0x32')]=this['repository'][_0x50fb('0xad')](_0x5a93c8),this[_0x50fb('0x32')]||(this[_0x50fb('0x32')]=this[_0x50fb('0xf7')]({'from':_0x19f11a,'to':_0x19f11a,'id':_0x5a93c8,'name':'','creatorId':null}));}[_0x50fb('0xf7')]({name:_0x40ac48,from:_0x4b7dc7,to:_0x31fa68,creatorId:_0x43a4b4,id:_0x41c279}){const _0x33983f=this[_0x50fb('0x3c')]({'from':_0x4b7dc7,'to':_0x31fa68});_0x33983f[_0x50fb('0x55')]=_0x40ac48,_0x33983f[_0x50fb('0x94')]=_0x43a4b4,_0x33983f['id']=_0x41c279;const _0x440999=this[_0x50fb('0x5')](_0x33983f);return this['adapter']&&this['_bufferUpdate'](_0x33983f['id'],_0x33983f,!0x0),_0x440999;}[_0x50fb('0xfa')](){this[_0x50fb('0xcb')][_0x50fb('0xb0')]['for'](_0x50fb('0x44'))['markerToData']({'model':_0x50fb('0x5b')});}[_0x50fb('0xa3')](_0x5cc608){return(_0x5cc608=_0x5cc608[_0x50fb('0x66')](_0x22324c=>!_0x22324c[_0x50fb('0x55')]||_0x50fb('0xcc')!==_0x22324c[_0x50fb('0x55')]&&_0x50fb('0x30')!==_0x22324c[_0x50fb('0x55')]))['forEach'](_0x5a3619=>{_0x50fb('0xec')!=typeof _0x5a3619&&(_0x5a3619[_0x50fb('0x10')]=this['_removeRevisionMarkers'](_0x5a3619[_0x50fb('0x10')]),_0x5a3619[_0x50fb('0xe')]=_0x5a3619[_0x50fb('0xe')][_0x50fb('0x66')](_0x1f2f38=>!_0x1f2f38[0x0][_0x50fb('0xc4')](_0x50fb('0xe4'))));}),_0x5cc608;}}function J(_0x58e841,_0x1b31a1){const _0x5b6ee5=_0x1b31a1['editing'][_0x50fb('0xa7')]['document'];if(_0x50fb('0xec')==typeof _0x58e841)return new _0x29a111(_0x5b6ee5,_0x58e841);{const _0x44ada3=_0x58e841['children']['map'](_0x163d0b=>J(_0x163d0b,_0x1b31a1));return new(B[_0x58e841['type']]||_0x4e0364)(_0x5b6ee5,_0x58e841['name'],_0x58e841['attributes'],_0x44ada3);}}class H{constructor(_0x334d3c){this['editor']=_0x334d3c,this['_savedMetaData']=new Map(),this[_0x50fb('0x85')]=-0x1,this['_lastTo']=-0x1,this[_0x50fb('0x103')]=new Map(),this[_0x50fb('0x6a')]=new Map(),this[_0x50fb('0x40')]=new Map(),this['_baseRoots']=new Map(),this[_0x50fb('0xd8')]=new Map(),this[_0x50fb('0xfc')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x50fb('0xbb')]=new Map(),this[_0x50fb('0xc0')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x50fb('0xf8')](_0x37c1b3){this[_0x50fb('0x7b')]=_0x37c1b3;const _0x4c0187=new Map(),_0x525e09=new Map(),_0x2878f6=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb6')][_0x50fb('0x4a')](_0x11a486=>_0x11a486[_0x50fb('0xe9')]);for(const _0x1392d4 of _0x2878f6){const _0x46649f=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0x15')](_0x1392d4),_0x566690=q(_0x46649f);_0x4c0187[_0x50fb('0x74')](_0x1392d4,_0x566690),_0x525e09[_0x50fb('0x74')](_0x1392d4,Object[_0x50fb('0xfd')](_0x46649f[_0x50fb('0x6e')]()));}const _0x5f223b=Array[_0x50fb('0x13')](this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x0')])['map'](_0x3927a6=>[_0x3927a6[_0x50fb('0x55')],_0x3927a6['getRange']()]),_0x3ef26f=this[_0x50fb('0x7b')]['version'];this['_saveMetaData'](_0x3ef26f,_0x4c0187,_0x5f223b,_0x525e09),this[_0x50fb('0xf6')]=this[_0x50fb('0x59')];const _0x177882=new Map(),_0x2c9992=new Map();for(const _0x5e179c of _0x2878f6){const _0x22a3fb=G(_0x5e179c);_0x177882['set'](_0x5e179c,_0x22a3fb),_0x2c9992[_0x50fb('0x74')](_0x5e179c,{});}this[_0x50fb('0x7')](Number[_0x50fb('0x50')],_0x177882,[],_0x2c9992);}[_0x50fb('0x9c')](_0x455c61,_0x15fbbd){if(this[_0x50fb('0x85')]===_0x455c61&&this[_0x50fb('0xcf')]<=_0x15fbbd)this[_0x50fb('0xdc')][_0x50fb('0xf9')]>0x1&&this[_0x50fb('0x3f')](this[_0x50fb('0xcf')]),this[_0x50fb('0xb5')](this[_0x50fb('0xcf')],_0x15fbbd,!0x0);else{if(!this[_0x50fb('0xdc')][_0x50fb('0x23')](_0x455c61)){const _0x1d20c0=this[_0x50fb('0xdf')](_0x455c61);this['_calculateMetaData'](_0x1d20c0,_0x455c61,!0x1);}this[_0x50fb('0x5d')](_0x455c61,_0x15fbbd,!0x0);}return this['_lastFrom']=_0x455c61,this['_lastTo']=_0x15fbbd,this[_0x50fb('0xf5')]();}[_0x50fb('0xee')](_0x2e535d){this[_0x50fb('0x35')](),this[_0x50fb('0x85')]=_0x2e535d[_0x50fb('0x3d')],this['_lastTo']=_0x2e535d[_0x50fb('0x72')];for(const _0x51e42c in _0x2e535d[_0x50fb('0x7a')]){const _0x3f6bc5=_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0x7c')],_0x3ab2d3=_0x4f8a65(_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0xeb')])||{},_0x5077e6=this['_makeModelFromViewString'](_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0xe8')]);_0x5077e6['rootName']=_0x51e42c,_0x5077e6[_0x50fb('0xf2')]=!_0x3f6bc5||!_0x3f6bc5[_0x50fb('0x16')],_0x5077e6[_0x50fb('0x16')]=()=>_0x5077e6['_isAttached'],this[_0x50fb('0x47')][_0x50fb('0x74')](_0x51e42c,_0x5077e6),this[_0x50fb('0xd8')][_0x50fb('0x74')](_0x51e42c,_0x3ab2d3),_0x3f6bc5&&this[_0x50fb('0x9d')][_0x50fb('0x74')](_0x51e42c,_0x3f6bc5);const _0x4356d9=this['_makeIdsRoot'](_0x5077e6);this[_0x50fb('0x31')][_0x50fb('0x74')](_0x51e42c,_0x4356d9);for(const [_0x167090,_0x4555b6]of _0x5077e6[_0x50fb('0x0')]){if(!_0x167090[_0x50fb('0xc4')](_0x50fb('0xdb')))continue;const _0x23ac34=_0x167090[_0x50fb('0xe6')](':')[0x2];for(const _0x1864f8 of _0x4555b6[_0x50fb('0x8b')]({'singleCharacters':!0x0})){const _0x596aca=this[_0x50fb('0x6b')](_0x1864f8),_0x2e684e=_0x50fb('0xd1')==_0x1864f8[_0x50fb('0x88')]?_0x1864f8[_0x50fb('0x101')]['path'][_0x50fb('0x53')](0x0,-0x1):_0x1864f8['previousPosition'][_0x50fb('0xef')],_0x142316=_0x4356d9[_0x50fb('0x2e')](_0x2e684e)[_0x50fb('0x8d')](_0x596aca);this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x142316,{'userId':_0x23ac34});}}}this['_startingRevisionId']=this[_0x50fb('0x59')];const _0xaef156=[...Array(this[_0x50fb('0x59')])['keys']()][_0x50fb('0x53')](0x1)[_0x50fb('0x66')](_0x4926e2=>!this[_0x50fb('0xbb')][_0x50fb('0x23')](_0x4926e2));let _0x3fba0d=0x0;const _0x59d249=new Map();for(const _0x315d06 in _0x2e535d[_0x50fb('0x7a')]){const _0x2ab483=_0x2e535d[_0x50fb('0x7a')][_0x315d06]['attachChange'],_0x3fc337=_0x4f8a65(_0x2e535d['diffData'][_0x315d06][_0x50fb('0x42')])||{},_0x427eff=this[_0x50fb('0x98')](_0x2e535d['diffData'][_0x315d06]['insertions']);_0x427eff[_0x50fb('0xe9')]=_0x315d06,_0x427eff[_0x50fb('0xf2')]=!_0x2ab483||_0x2ab483['isAttached'],_0x427eff[_0x50fb('0x16')]=()=>_0x427eff[_0x50fb('0xf2')],this['_diffRoots'][_0x50fb('0x74')](_0x315d06,_0x427eff),this['_diffRootsAttributes']['set'](_0x315d06,_0x3fc337);const _0x26d5ef=this[_0x50fb('0x68')](_0x427eff,Number['NEGATIVE_INFINITY']);this[_0x50fb('0xfc')][_0x50fb('0x74')](_0x315d06,_0x26d5ef),_0x59d249[_0x50fb('0x74')](_0x315d06,_0x427eff[_0x50fb('0x16')]()?_0x3fc337:{});for(const [_0x165efb,_0x55bac9]of _0x427eff['markers']){if(!_0x165efb['startsWith'](_0x50fb('0xdb')))continue;const _0x335e53=_0x165efb[_0x50fb('0xe6')](':')[0x2];for(const _0x3e8aa5 of _0x55bac9[_0x50fb('0x8b')]({'singleCharacters':!0x0})){const _0x5dad3e=this[_0x50fb('0x6b')](_0x3e8aa5),_0x1dbda5=this[_0x50fb('0x59')]++,_0x1fb40b=_0x50fb('0xd1')==_0x3e8aa5[_0x50fb('0x88')]?_0x3e8aa5[_0x50fb('0x101')][_0x50fb('0xef')][_0x50fb('0x53')](0x0,-0x1):_0x3e8aa5[_0x50fb('0x101')][_0x50fb('0xef')];_0x26d5ef[_0x50fb('0x2e')](_0x1fb40b)[_0x50fb('0xd9')](_0x5dad3e,_0x1dbda5),this[_0x50fb('0xbb')]['set'](_0x1dbda5,{'userId':_0x335e53});}}for(const _0x54e6a0 of this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x12')](_0x427eff)['getWalker']({'singleCharacters':!0x0})){const _0x28ce11=this[_0x50fb('0x6b')](_0x54e6a0),_0x50cd03=_0x50fb('0xd1')==_0x54e6a0[_0x50fb('0x88')]?_0x54e6a0[_0x50fb('0x101')][_0x50fb('0xef')][_0x50fb('0x53')](0x0,-0x1):_0x54e6a0['previousPosition']['path'],_0x2d4908=_0x26d5ef[_0x50fb('0x2e')](_0x50cd03);_0x2d4908[_0x50fb('0x8d')](_0x28ce11)>0x0||_0x2d4908[_0x50fb('0xd9')](_0x28ce11,_0xaef156[_0x3fba0d++]);}for(const [_0x24282d,_0x5551b7]of _0x427eff[_0x50fb('0x0')])_0x24282d[_0x50fb('0xc4')](_0x50fb('0xdb'))||this[_0x50fb('0x103')]['set'](_0x24282d,_0x5551b7);}const _0x22045a=G(_0x50fb('0x86'));this[_0x50fb('0x47')]['set'](_0x50fb('0x86'),_0x22045a),this['_baseIdsRoots'][_0x50fb('0x74')](_0x50fb('0x86'),this[_0x50fb('0x68')](_0x22045a,0x1));const _0x44e8c2=G(_0x50fb('0x86'));this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x50fb('0x86'),_0x44e8c2),this[_0x50fb('0xfc')][_0x50fb('0x74')]('$graveyard',this[_0x50fb('0x68')](_0x44e8c2,0x1));const _0x2e8de1=Array[_0x50fb('0x13')](this[_0x50fb('0x6a')])['map'](([_0x1f34d3,_0x1e6f9d])=>[_0x1f34d3,q(_0x1e6f9d)]);this['_saveMetaData'](this['_lastTo'],_0x2e8de1,this[_0x50fb('0x103')],_0x59d249);}[_0x50fb('0x98')](_0x2cd681){const _0x12d56f=JSON[_0x50fb('0x102')](_0x2cd681),_0x361a0d=this[_0x50fb('0xcb')][_0x50fb('0xab')][_0x50fb('0xa7')][_0x50fb('0x76')],_0x11f6ff=new _0x50f246(_0x361a0d,_0x12d56f[_0x50fb('0x4a')](_0x4c94cf=>J(_0x4c94cf,this['editor'])));return this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0xae')](_0x11f6ff);}[_0x50fb('0x7')](_0x4318f0,_0x2d8033,_0x3d2191,_0xacd0d6){const _0x129f66=new Map(_0x2d8033),_0x508aa4=new Map(_0x4f8a65(_0xacd0d6)),_0x5a403d=new Map();for(const [_0x43612c,_0x5e4b71]of _0x3d2191)_0x5a403d[_0x50fb('0x74')](_0x43612c,{'start':_0x5e4b71[_0x50fb('0x91')][_0x50fb('0x81')](),'end':_0x5e4b71[_0x50fb('0x4d')][_0x50fb('0x81')](),'rootName':_0x5e4b71[_0x50fb('0xfb')][_0x50fb('0xe9')]});this[_0x50fb('0xdc')][_0x50fb('0x74')](_0x4318f0,{'roots':_0x129f66,'markers':_0x5a403d,'rootsAttributes':_0x508aa4});}[_0x50fb('0x3f')](_0x1e0d65){this[_0x50fb('0xdc')][_0x50fb('0x8c')](_0x1e0d65);}[_0x50fb('0xce')](){this[_0x50fb('0x35')](),this[_0x50fb('0x85')]=-0x1,this[_0x50fb('0xcf')]=-0x1,this[_0x50fb('0xdc')][_0x50fb('0xb')](),this['init'](this[_0x50fb('0x7b')]);}[_0x50fb('0x35')](){this[_0x50fb('0xbb')]['clear'](),this['_touchedMarkers'][_0x50fb('0xb')](),this[_0x50fb('0x9d')][_0x50fb('0xb')](),this[_0x50fb('0x6a')][_0x50fb('0xb')](),this[_0x50fb('0x40')][_0x50fb('0xb')](),this[_0x50fb('0x47')][_0x50fb('0xb')](),this[_0x50fb('0xd8')]['clear'](),this[_0x50fb('0xfc')]['clear'](),this[_0x50fb('0x31')][_0x50fb('0xb')](),this[_0x50fb('0x103')][_0x50fb('0xb')](),this[_0x50fb('0x59')]=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4498c6,_0x577f4e=null){let _0x21bc6e=null;_0x4498c6['is'](_0x50fb('0x5c'))||(_0x21bc6e=new _0x161915(_0x4498c6[_0x50fb('0x55')],{'vid_start':null===_0x577f4e?this[_0x50fb('0x59')]++:_0x577f4e++}));const _0xa1430d=[];for(const _0x12b5bd of _0x4498c6['getChildren']())if(_0x12b5bd['is'](_0x50fb('0x2f'))){_0xa1430d[_0x50fb('0xd3')](this[_0x50fb('0x68')](_0x12b5bd,_0x577f4e));const _0x34ab29=_0xa1430d[_0xa1430d[_0x50fb('0x38')]-0x1];null!==_0x577f4e&&(_0x577f4e=_0x34ab29['is'](_0x50fb('0x2f'),_0x50fb('0x8a'))?_0x34ab29[_0x50fb('0x8d')](_0x50fb('0x6c'))+0x1:_0x34ab29[_0x50fb('0x8d')](_0x50fb('0xd4'))+0x1);}else for(let _0x2a5cb8=0x0;_0x2a5cb8<_0x12b5bd[_0x50fb('0xba')];_0x2a5cb8++)_0xa1430d[_0x50fb('0xd3')](new _0x161915(_0x50fb('0x8a'),{'vid':null===_0x577f4e?this['_revisionId']++:_0x577f4e++}));if(_0x4498c6['is'](_0x50fb('0x5c'))){const _0x1c6b75=G(_0x4498c6[_0x50fb('0xe9')]);return _0x1c6b75['_insertChild'](0x0,_0xa1430d),_0x1c6b75;}return _0x21bc6e[_0x50fb('0xd9')]('vid_end',null===_0x577f4e?this[_0x50fb('0x59')]++:_0x577f4e++),_0x21bc6e[_0x50fb('0x1e')](0x0,_0xa1430d),_0x21bc6e;}[_0x50fb('0x5d')](_0x45bca7,_0x139ad3,_0x369243){this['_reset']();const {roots:_0x36546f,markers:_0xa81471,rootsAttributes:_0x29819f}=this[_0x50fb('0xdc')][_0x50fb('0x69')](_0x45bca7);this['_baseRoots']=new Map(_0x36546f),this[_0x50fb('0xd8')]=new Map(_0x4f8a65(_0x29819f));for(const [_0x5346b7,_0x51e6af]of this[_0x50fb('0x47')])if(_0x50fb('0x86')!==_0x5346b7&&(this['_diffRoots']['set'](_0x5346b7,q(_0x51e6af)),this[_0x50fb('0x40')]=new Map(_0x4f8a65(_0x29819f)),_0x369243)){const _0x17d936=this[_0x50fb('0x59')];this['_idsRoots']['set'](_0x5346b7,this['_makeIdsRoot'](_0x51e6af)),this[_0x50fb('0x31')][_0x50fb('0x74')](_0x5346b7,this[_0x50fb('0x68')](_0x51e6af,_0x17d936));}this[_0x50fb('0xf6')]=this[_0x50fb('0x59')],this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x50fb('0x86'),q(this['_baseRoots'][_0x50fb('0x69')]('$graveyard'))),_0x369243&&this['_idsRoots'][_0x50fb('0x74')]('$graveyard',this[_0x50fb('0x68')](this[_0x50fb('0x47')][_0x50fb('0x69')](_0x50fb('0x86'))));for(const [_0x220961,_0x199bc0]of _0xa81471){const _0x141868=this[_0x50fb('0x47')][_0x50fb('0x69')](_0x199bc0[_0x50fb('0xe9')]),_0x3fe602=this[_0x50fb('0x6a')][_0x50fb('0x69')](_0x199bc0[_0x50fb('0xe9')]),_0x1e5fe1=new _0x7b4d61(this[_0x50fb('0xe2')](_0x199bc0['start'],_0x141868),this[_0x50fb('0xe2')](_0x199bc0[_0x50fb('0x4d')],_0x141868)),_0x5237c1=this[_0x50fb('0xc2')](_0x1e5fe1,_0x3fe602);_0x141868[_0x50fb('0x0')][_0x50fb('0x74')](_0x220961,_0x1e5fe1),this[_0x50fb('0x103')][_0x50fb('0x74')](_0x220961,_0x5237c1);}this[_0x50fb('0xb5')](_0x45bca7,_0x139ad3,_0x369243);}[_0x50fb('0xb5')](_0x323a8d,_0x3359b2,_0x233539){for(const _0x30628e of this[_0x50fb('0x7b')][_0x50fb('0x75')](_0x323a8d,_0x3359b2))this[_0x50fb('0x100')](_0x30628e,_0x233539);for(const _0xe59a1e of this['_diffRoots'][_0x50fb('0xc1')]())_0xe59a1e[_0x50fb('0x0')][_0x50fb('0xb')]();for(const [_0x3981a6,_0x39e25e]of this[_0x50fb('0x103')]){this[_0x50fb('0x6a')][_0x50fb('0x69')](_0x39e25e[_0x50fb('0xfb')]['rootName'])['markers'][_0x50fb('0x74')](_0x3981a6,_0x39e25e[_0x50fb('0x81')]());}const _0x33fad4=new Map(),_0x961ca4=new Map();for(const [_0x3372bd,_0x234420]of this['_diffRoots'])_0x33fad4['set'](_0x3372bd,q(_0x234420)),_0x961ca4[_0x50fb('0x74')](_0x3372bd,this[_0x50fb('0x40')][_0x50fb('0x69')](_0x3372bd));this[_0x50fb('0x7')](_0x3359b2,_0x33fad4,this[_0x50fb('0x103')],_0x961ca4);}[_0x50fb('0xdf')](_0x18b5d9){const _0x3c5000=Array['from'](this['_savedMetaData']['keys']());_0x3c5000['sort']((_0x5436d2,_0x447079)=>_0x5436d2-_0x447079),_0x3c5000['reverse']();for(const _0x12def5 of _0x3c5000)if(_0x12def5<_0x18b5d9)return _0x12def5;return Number[_0x50fb('0x50')];}[_0x50fb('0x6d')](_0x1836bb,_0x44ccde){const _0x5aadb6=Array['from'](_0x44ccde[_0x50fb('0x0')])[_0x50fb('0x4a')](([_0x57ec82,_0x281bd9])=>[_0x57ec82,this[_0x50fb('0xc2')](_0x281bd9,_0x1836bb)]);_0x1836bb[_0x50fb('0x0')]=new Map(_0x5aadb6);}[_0x50fb('0x7f')](_0x574a2d){for(const _0xcad334 of this[_0x50fb('0x103')][_0x50fb('0xc1')]()){const _0x3fe10e=_0xcad334['getTransformedByOperation'](_0x574a2d),_0x372c96=_0x7b4d61[_0x50fb('0x56')](_0x3fe10e);_0xcad334['start']=_0x372c96[_0x50fb('0x91')],_0xcad334[_0x50fb('0x4d')]=_0x372c96[_0x50fb('0x4d')];}}[_0x50fb('0x100')](_0x592ea9,_0x4c8d5a){if(_0x50fb('0x97')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0xed')==_0x592ea9[_0x50fb('0x88')])return void this[_0x50fb('0xc6')](_0x592ea9,_0x4c8d5a);if(_0x50fb('0xb4')==_0x592ea9[_0x50fb('0x88')]){const _0x1b4adf=_0x592ea9[_0x50fb('0x99')][_0x50fb('0xfb')]['rootName'];this[_0x50fb('0x6a')][_0x50fb('0x23')](_0x1b4adf)||(this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x1b4adf,G(_0x1b4adf,!0x0)),this[_0x50fb('0x40')][_0x50fb('0x74')](_0x1b4adf,{}),_0x4c8d5a&&this[_0x50fb('0xfc')][_0x50fb('0x74')](_0x1b4adf,G(_0x1b4adf,!0x0)));}else{if(_0x50fb('0x52')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0xdd')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0x62')==_0x592ea9['type'])return void this['_handleRootAttributeOperation'](_0x592ea9);}const _0x27e8f6=this[_0x50fb('0x1d')](_0x592ea9,this[_0x50fb('0x6a')]);if(_0x50fb('0xcd')!==_0x592ea9[_0x50fb('0x88')]&&(_0x27e8f6[_0x50fb('0xb9')](),this[_0x50fb('0x7f')](_0x27e8f6)),_0x4c8d5a)switch(_0x27e8f6[_0x50fb('0x88')]){case _0x50fb('0xb4'):this['_handleInsertOperation'](_0x592ea9);break;case _0x50fb('0xf3'):case _0x50fb('0x64'):case'reinsert':this[_0x50fb('0x24')](_0x592ea9);break;case _0x50fb('0xa1'):this[_0x50fb('0xf')](_0x592ea9);break;case'split':this['_handleSplitOperation'](_0x592ea9);break;case _0x50fb('0xcd'):this[_0x50fb('0xa8')](_0x592ea9);}}[_0x50fb('0x1d')](_0x391294,_0x29493a){const _0x239a0d=_0x391294[_0x50fb('0x81')]();return _0x239a0d['_authorId']=_0x391294[_0x50fb('0xca')],this[_0x50fb('0x8e')](_0x239a0d,_0x29493a),_0x239a0d;}[_0x50fb('0xb2')](_0x20f047){return _0x20f047[_0x50fb('0x4a')](_0x17cdd1=>{const _0x7c3e1b=this[_0x50fb('0x6b')](_0x17cdd1);return Number(_0x17cdd1[_0x50fb('0x22')][_0x50fb('0x8d')](_0x7c3e1b));});}['_generateTape'](_0x467b8b,_0x580cd5){if(_0x467b8b['is'](_0x50fb('0x2f'),_0x50fb('0x8a')))_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'text'});else{_0x467b8b['is'](_0x50fb('0x2f'))&&_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'elementStart'});for(const _0x216327 of _0x467b8b[_0x50fb('0xbe')]())this[_0x50fb('0xa9')](_0x216327,_0x580cd5);_0x467b8b['is'](_0x50fb('0x2f'))&&_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'elementEnd'});}return _0x580cd5;}[_0x50fb('0xf5')](){const _0x29e8f6=new Map(this[_0x50fb('0xbb')]),_0x410939=new Map(_0x29e8f6),_0x51d8d8=new Map(),_0x2abe6c={'insertions':{},'deletions':{}},_0xd57e44={'insertions':{},'deletions':{}},_0x1dab25=new Map(),_0x53210f=new Set([...this[_0x50fb('0x47')][_0x50fb('0x107')](),...this[_0x50fb('0x6a')][_0x50fb('0x107')]()]);_0x53210f['delete'](_0x50fb('0x86'));for(const _0x2c0df6 of _0x53210f){const _0x56c95c=this['_diffRoots'][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1),_0x232fb2=this[_0x50fb('0x47')][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1);_0x56c95c[_0x50fb('0x16')]()||_0x232fb2[_0x50fb('0x16')]()?(_0x2abe6c[_0x50fb('0xd0')][_0x2c0df6]=q(_0x56c95c),_0x2abe6c[_0x50fb('0xe8')][_0x2c0df6]=q(_0x232fb2),this['_copyMarkers'](_0x2abe6c[_0x50fb('0xe8')][_0x2c0df6],_0x232fb2),this[_0x50fb('0x6d')](_0x2abe6c['insertions'][_0x2c0df6],_0x56c95c),_0xd57e44[_0x50fb('0xd0')][_0x2c0df6]=this[_0x50fb('0xa9')](this[_0x50fb('0xfc')][_0x50fb('0x69')](_0x2c0df6),[]),_0xd57e44[_0x50fb('0xe8')][_0x2c0df6]=this[_0x50fb('0xa9')](this[_0x50fb('0x31')][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1),[])):_0x53210f[_0x50fb('0x8c')](_0x2c0df6);}for(const _0x3c8063 of _0x53210f){const _0x56bd96=_0xd57e44['insertions'][_0x3c8063];for(const _0x473c73 of _0x56bd96){const _0x66705b=this[_0x50fb('0x6b')](_0x473c73),_0x4cbeb0=_0x473c73[_0x50fb('0x22')][_0x50fb('0x8d')](_0x66705b);_0x410939[_0x50fb('0x8c')](_0x4cbeb0),_0x4cbeb0>=this[_0x50fb('0xf6')]&&_0x51d8d8[_0x50fb('0x74')](_0x4cbeb0,_0x29e8f6[_0x50fb('0x69')](_0x4cbeb0));}}for(const _0x4641c7 of _0x53210f){const _0x41e419=_0xd57e44[_0x50fb('0xd0')][_0x4641c7],_0x25be7b=this['_getBaseVids'](_0xd57e44[_0x50fb('0xe8')][_0x4641c7]);let _0x249878=0x0;for(const _0x13e69c of _0x41e419){const _0x2f7668=this[_0x50fb('0x6b')](_0x13e69c),_0xc0d445=_0x13e69c[_0x50fb('0x22')][_0x50fb('0x8d')](_0x2f7668);if(!_0x51d8d8[_0x50fb('0x23')](_0xc0d445)&&!_0x1dab25[_0x50fb('0x23')](_0xc0d445)){if(_0x410939[_0x50fb('0x23')](_0xc0d445))_0x249878++;else{if(_0xc0d445!=_0x25be7b[_0x249878]){const _0x16095a=_0x29e8f6[_0x50fb('0x69')](_0xc0d445)||_0x29e8f6['get'](_0x25be7b[_0x249878]);for(;_0xc0d445!=_0x25be7b[_0x249878];)_0x410939['has'](_0x25be7b[_0x249878])||(_0x1dab25[_0x50fb('0x74')](_0x25be7b[_0x249878],_0x16095a),_0x29e8f6[_0x50fb('0x74')](_0x25be7b[_0x249878],_0x16095a)),_0x249878++;}_0x249878++;}}}}for(const _0x41335 of _0x53210f){const _0x12da23=_0xd57e44[_0x50fb('0xd0')][_0x41335];for(const _0x7884b of _0x12da23){const _0x1243ad=this['_getVidAttributeName'](_0x7884b),_0x58d85f=_0x7884b[_0x50fb('0x22')][_0x50fb('0x8d')](_0x1243ad);if(_0x1dab25[_0x50fb('0x23')](_0x58d85f)){const _0x375a55=_0x1dab25[_0x50fb('0x69')](_0x58d85f);_0x410939[_0x50fb('0x23')](_0x58d85f)||_0x410939['set'](_0x58d85f,{..._0x375a55}),_0x51d8d8[_0x50fb('0x74')](_0x58d85f,{..._0x375a55});}}}for(const _0x45e82d of _0x410939['keys']())_0x45e82d>=this['_startingRevisionId']&&_0x410939['delete'](_0x45e82d);const _0x2e16bf=new Map();for(const _0x1c166c of _0x53210f){let _0x157afe=_0xd57e44[_0x50fb('0xd0')][_0x1c166c];for(const _0x4aa94c of _0x157afe)if(_0x4aa94c[_0x50fb('0x22')]['is']('element',_0x50fb('0x57'))){const _0x4230f4=this['_getVidAttributeName'](_0x4aa94c),_0x21378a=_0x4aa94c[_0x50fb('0x22')][_0x50fb('0x8d')](_0x4230f4);if(_0x51d8d8[_0x50fb('0x23')](_0x21378a)){const _0x4c398e=_0x4aa94c[_0x50fb('0x22')]['parent'][_0x50fb('0x78')][_0x50fb('0x8d')](_0x50fb('0xe0')),_0x10c2fc=_0x2e16bf[_0x50fb('0x69')](_0x4c398e)||new Set();_0x10c2fc[_0x50fb('0x89')](_0x51d8d8[_0x50fb('0x69')](_0x21378a)[_0x50fb('0x84')]),_0x2e16bf[_0x50fb('0x74')](_0x4c398e,_0x10c2fc);}}_0x157afe=_0xd57e44[_0x50fb('0xe8')][_0x1c166c];for(const _0x3ec2ef of _0x157afe)if(_0x3ec2ef['item']['is'](_0x50fb('0x2f'),_0x50fb('0x57'))){const _0x1578ac=this[_0x50fb('0x6b')](_0x3ec2ef),_0x2b89c5=_0x3ec2ef[_0x50fb('0x22')][_0x50fb('0x8d')](_0x1578ac);if(_0x410939['has'](_0x2b89c5)){const _0x5c7cc8=_0x3ec2ef['item']['parent'][_0x50fb('0x78')]['getAttribute'](_0x50fb('0xe0')),_0x2c724d=_0x2e16bf[_0x50fb('0x69')](_0x5c7cc8)||new Set();_0x2c724d[_0x50fb('0x89')](_0x410939['get'](_0x2b89c5)[_0x50fb('0x84')]),_0x2e16bf['set'](_0x5c7cc8,_0x2c724d);}}for(const _0x51f700 of _0x2e16bf[_0x50fb('0x107')]())(_0x51d8d8['has'](_0x51f700)||_0x410939[_0x50fb('0x23')](_0x51f700))&&_0x2e16bf['delete'](_0x51f700);}for(const _0x6eb9fb of _0x53210f){const _0x5f9797=_0xd57e44[_0x50fb('0xd0')][_0x6eb9fb];let _0x2a4888=null,_0x1f6b4d=null;for(const _0x569278 of _0x5f9797){const _0x3dd24d=this[_0x50fb('0x6b')](_0x569278),_0x21313d=_0x569278['item'][_0x50fb('0x8d')](_0x3dd24d),_0x2c98c6=_0x2e16bf['get'](_0x21313d);_0x2c98c6&&_0x50fb('0x80')==_0x569278[_0x50fb('0x88')]&&(_0x2a4888=Array[_0x50fb('0x13')](_0x2c98c6)[0x0],_0x1f6b4d=_0x569278[_0x50fb('0x22')]['getAttribute'](_0x50fb('0xd4'))),_0x2a4888&&(_0x410939[_0x50fb('0x74')](_0x21313d,{'userId':_0x2a4888}),_0x51d8d8[_0x50fb('0x74')](_0x21313d,{'userId':_0x2a4888})),_0x21313d==_0x1f6b4d&&(_0x2a4888=null,_0x1f6b4d=null);}}const _0x4fd348={},_0x56d165=new Set();for(const _0x58c973 of _0x53210f){const _0x529bd1=_0x2abe6c[_0x50fb('0xe8')][_0x58c973],_0x52a08f=_0x2abe6c[_0x50fb('0xd0')][_0x58c973];for(const {userId:_0x5c4114}of this[_0x50fb('0xc0')][_0x50fb('0xc1')]())null!==_0x5c4114&&_0x56d165[_0x50fb('0x89')](_0x5c4114);for(const {userId:_0x781f83}of this['_touchedRoots'][_0x50fb('0xc1')]())null!==_0x781f83&&_0x56d165[_0x50fb('0x89')](_0x781f83);this[_0x50fb('0x9a')](_0x52a08f,_0xd57e44[_0x50fb('0xd0')][_0x58c973],_0x51d8d8,'insertion',_0x56d165),this[_0x50fb('0x9a')](_0x529bd1,_0xd57e44[_0x50fb('0xe8')][_0x58c973],_0x410939,'deletion',_0x56d165),_0x4fd348[_0x58c973]={'insertions':this[_0x50fb('0x48')](_0x52a08f),'deletions':this[_0x50fb('0x48')](_0x529bd1),'attachChange':this[_0x50fb('0x9d')][_0x50fb('0x69')](_0x58c973)||null,'attributesBefore':_0x4f8a65(this[_0x50fb('0xd8')][_0x50fb('0x69')](_0x58c973))||{},'attributesAfter':_0x4f8a65(this[_0x50fb('0x40')]['get'](_0x58c973))};}return{'diffData':_0x4fd348,'authorsIds':Array[_0x50fb('0x13')](_0x56d165)};}['_processRootBeforeSave'](_0x1865d4){for(const [,_0x172d90]of _0x1865d4[_0x50fb('0x0')]){const _0x3572d6=_0x172d90[_0x50fb('0x91')][_0x50fb('0x83')]()[_0x50fb('0x66')](_0x1d15da=>_0x50fb('0x57')==_0x1d15da[_0x50fb('0x55')]);for(const _0x42b432 of _0x3572d6)0x1==_0x42b432[_0x50fb('0x8')]&&_0x42b432[_0x50fb('0x3e')](0x0)['is'](_0x50fb('0x2f'),'paragraph')&&_0x42b432[_0x50fb('0x3e')](0x0)[_0x50fb('0xd9')]('keepParagraph',!0x0);}}[_0x50fb('0x48')](_0x2c3d45){this[_0x50fb('0xc5')](_0x2c3d45);const _0x30ae16=this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0xaa')](_0x2c3d45,{}),_0x70ee33=Array[_0x50fb('0x13')](_0x30ae16[_0x50fb('0xbe')]())[_0x50fb('0x4a')](_0x270755=>this['_getViewJson'](_0x270755));return JSON['stringify'](_0x70ee33);}[_0x50fb('0xea')](_0x4f8188){if(_0x4f8188['is'](_0x50fb('0x8a')))return _0x4f8188[_0x50fb('0x9f')];{const _0x55a4af=_0x4f8188;return{'type':Object[_0x50fb('0x107')](B)['find'](_0x2b0898=>_0x4f8188 instanceof B[_0x2b0898]),'name':_0x55a4af[_0x50fb('0x55')],'attributes':Array[_0x50fb('0x13')](_0x55a4af[_0x50fb('0x6e')]()),'children':Array['from'](_0x55a4af[_0x50fb('0xbe')]())['map'](_0x27d69c=>this[_0x50fb('0xea')](_0x27d69c))};}}[_0x50fb('0x9a')](_0x551caf,_0x5e1585,_0x14c453,_0x67f4e9,_0x3c3cfc){let _0xd3bf26=null,_0x1cd8f7=null,_0x51ce5d=0x0;const _0xe15455=this[_0x50fb('0xcb')][_0x50fb('0x5e')];for(let _0x1a0686=0x0;_0x1a0686<_0x5e1585[_0x50fb('0x38')];_0x1a0686++){const _0x1138df=this['_getVidAttributeName'](_0x5e1585[_0x1a0686]),_0x2ea118=_0x5e1585[_0x1a0686][_0x50fb('0x22')]['getAttribute'](_0x1138df),_0x2f7e0f=_0x14c453[_0x50fb('0x69')](_0x2ea118),_0x1bbaf0=_0x1a0686==_0x5e1585['length']-0x1;(!_0xd3bf26&&_0x2f7e0f&&(_0xd3bf26=_0x2f7e0f,_0x1cd8f7=_0x5e1585[_0x1a0686]),_0xd3bf26&&(!_0x2f7e0f||_0x2f7e0f['userId']!=_0xd3bf26[_0x50fb('0x84')]))&&(_0x23d9ad(_0x2f7e0f,L(_0x1cd8f7,_0x551caf,_0xe15455),L(_0x5e1585[_0x1a0686],_0x551caf,_0xe15455)),_0xd3bf26=_0x2f7e0f||null,_0x1cd8f7=_0x2f7e0f?_0x5e1585[_0x1a0686]:null),_0xd3bf26&&_0x1bbaf0&&_0x23d9ad(_0x2f7e0f,L(_0x1cd8f7,_0x551caf,_0xe15455),W(_0x5e1585[_0x1a0686],_0x551caf,_0xe15455));}function _0x23d9ad(_0x1dc0d0,_0x27e2b6,_0x3f2251){const _0x129d52=_0xd3bf26[_0x50fb('0x84')],_0x6a5c5d=_0x50fb('0xdb')+_0x67f4e9+':'+_0x129d52+':'+_0x51ce5d++,_0x1f427b=_0xe15455[_0x50fb('0xe3')](_0x27e2b6,_0x3f2251);_0x551caf[_0x50fb('0x0')][_0x50fb('0x74')](_0x6a5c5d,_0x1f427b),null!==_0x129d52&&_0x3c3cfc[_0x50fb('0x89')](_0x129d52);}}['_getVidAttributeName'](_0x4741f7){switch(_0x4741f7['type']){case _0x50fb('0x80'):return _0x50fb('0xe0');case'elementEnd':return _0x50fb('0xd4');default:return _0x50fb('0x6c');}}[_0x50fb('0x8e')](_0x807da5,_0x5490f3){_0x807da5[_0x50fb('0x6')]=null;for(const _0x47b66a in _0x807da5){const _0x1460cf=_0x807da5[_0x47b66a];if(_0x1460cf instanceof _0x43e92a){const _0x59fdb0=_0x5490f3['get'](_0x1460cf['root'][_0x50fb('0xe9')]);_0x807da5[_0x47b66a]=this['_fixPosition'](_0x1460cf,_0x59fdb0);}if(_0x1460cf instanceof _0x7b4d61){const _0x760d5=_0x5490f3[_0x50fb('0x69')](_0x1460cf[_0x50fb('0xfb')]['rootName']);_0x807da5[_0x47b66a]=this['_fixRange'](_0x1460cf,_0x760d5);}_0x50fb('0xfb')===_0x47b66a&&(_0x807da5[_0x50fb('0xfb')]=_0x5490f3['get'](_0x807da5[_0x50fb('0xfb')]['rootName']));}}[_0x50fb('0xc2')](_0x3a950c,_0x31e3f7){return this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0xe3')](this[_0x50fb('0xe2')](_0x3a950c[_0x50fb('0x91')],_0x31e3f7),this[_0x50fb('0xe2')](_0x3a950c[_0x50fb('0x4d')],_0x31e3f7));}[_0x50fb('0xe2')](_0x347109,_0x59242f){return this['editor']['model']['createPositionFromPath'](_0x59242f,_0x347109[_0x50fb('0xef')],_0x347109[_0x50fb('0x67')]);}[_0x50fb('0x2c')](_0x189aba){const _0x58b59c=this[_0x50fb('0xfc')][_0x50fb('0x69')](_0x189aba[_0x50fb('0x99')][_0x50fb('0xfb')][_0x50fb('0xe9')]),_0x3edb93=this[_0x50fb('0xe2')](_0x189aba['position'],_0x58b59c),_0x3ac253=null===_0x189aba[_0x50fb('0xca')]?null:_0x189aba['_authorId']||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x41b999=_0x3edb93[_0x50fb('0x78')],_0x3550c8=this[_0x50fb('0x59')],_0x38a9c9=[];for(const _0x777ed4 of _0x189aba[_0x50fb('0x45')])if(_0x777ed4['is'](_0x50fb('0x2f')))_0x38a9c9[_0x50fb('0xd3')](this['_makeIdsRoot'](_0x777ed4));else for(let _0x58df4b=0x0;_0x58df4b<_0x777ed4[_0x50fb('0xba')];_0x58df4b++)_0x38a9c9[_0x50fb('0xd3')](new _0x161915(_0x50fb('0x8a'),{'vid':this[_0x50fb('0x59')]++}));const _0x2838ca=this[_0x50fb('0x59')];for(let _0x42c410=_0x3550c8;_0x42c410<_0x2838ca;_0x42c410++)this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x42c410,{'userId':_0x3ac253});_0x41b999[_0x50fb('0x1e')](_0x3edb93[_0x50fb('0x1b')],_0x38a9c9);}['_handleMoveOperation'](_0x448b4e){(_0x448b4e=this['_cloneOperation'](_0x448b4e,this[_0x50fb('0xfc')]))['_execute']();const _0x285838=null===_0x448b4e['_authorId']?null:_0x448b4e['_authorId']||this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x40ca97=_0x448b4e[_0x50fb('0x2d')](),_0x132bec=_0x40ca97['parent'],_0x41a002=_0x40ca97[_0x50fb('0x1b')];!function _0x5d62d0(_0x43b50a,_0x1f6c71,_0x144fe6,_0x131cce){for(let _0x534728=_0x144fe6;_0x534728<_0x131cce;_0x534728++){const _0x400c82=_0x1f6c71[_0x50fb('0x3e')](_0x534728);_0x400c82['is'](_0x50fb('0x2f'),'$text')?_0x43b50a[_0x50fb('0x74')](_0x400c82[_0x50fb('0x8d')](_0x50fb('0x6c')),{'userId':_0x285838}):(_0x43b50a['set'](_0x400c82[_0x50fb('0x8d')](_0x50fb('0xe0')),{'userId':_0x285838}),_0x5d62d0(_0x43b50a,_0x400c82,0x0,_0x400c82[_0x50fb('0x8')]),_0x43b50a[_0x50fb('0x74')](_0x400c82[_0x50fb('0x8d')](_0x50fb('0xd4')),{'userId':_0x285838}));}}(this[_0x50fb('0xbb')],_0x132bec,_0x41a002,_0x41a002+_0x448b4e[_0x50fb('0xb7')]);}[_0x50fb('0xf')](_0x4bae81){const _0x4aa134=null===(_0x4bae81=this['_cloneOperation'](_0x4bae81,this[_0x50fb('0xfc')]))[_0x50fb('0xca')]?null:_0x4bae81[_0x50fb('0xca')]||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0xe4d699=_0x4bae81[_0x50fb('0x61')][_0x50fb('0x78')],_0x1d0345=_0x4bae81['sourcePosition']['parent'],_0x36a110=_0xe4d699[_0x50fb('0x8d')]('vid_end'),_0x28df77=_0x1d0345[_0x50fb('0x8d')]('vid_start');_0xe4d699[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x1d0345[_0x50fb('0x8d')](_0x50fb('0xd4'))),_0x1d0345['_setAttribute'](_0x50fb('0xd4'),_0x36a110),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x28df77,{'userId':_0x4aa134}),this['_touched'][_0x50fb('0x74')](_0x36a110,{'userId':_0x4aa134}),_0x4bae81[_0x50fb('0xb9')]();}[_0x50fb('0x11')](_0x5cc15e){const _0x1fadef=null===(_0x5cc15e=this[_0x50fb('0x1d')](_0x5cc15e,this[_0x50fb('0xfc')]))[_0x50fb('0xca')]?null:_0x5cc15e['_authorId']||this['editor']['plugins'][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x46727d=_0x5cc15e[_0x50fb('0x4e')],_0x1038a9=_0x5cc15e[_0x50fb('0x9')]['parent'];_0x5cc15e[_0x50fb('0xb9')]();const _0x28fafa=_0x1038a9[_0x50fb('0x8d')](_0x50fb('0xd4')),_0x13cd5e=_0x5cc15e['insertionPosition'][_0x50fb('0x2')];if(_0x46727d){const _0x19c48e=_0x13cd5e['getAttribute']('vid_end'),_0x1416f1=_0x1038a9['getAttribute'](_0x50fb('0xd4'));_0x1038a9[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x19c48e),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x1416f1),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x1038a9[_0x50fb('0x8d')](_0x50fb('0xd4')),{'userId':_0x1fadef}),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x13cd5e[_0x50fb('0x8d')](_0x50fb('0xe0')),{'userId':_0x1fadef});}else{const _0x4f9d2c=this['_revisionId']++,_0x455791=this[_0x50fb('0x59')]++;_0x1038a9['_setAttribute'](_0x50fb('0xd4'),_0x4f9d2c),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xe0'),_0x455791),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x28fafa),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x4f9d2c,{'userId':_0x1fadef}),this[_0x50fb('0xbb')]['set'](_0x455791,{'userId':_0x1fadef});}}[_0x50fb('0xa8')](_0x3dc2c3){if(!_0x3dc2c3['affectsData'])return;const _0x3d3af0=(_0x3dc2c3=this[_0x50fb('0x1d')](_0x3dc2c3,this[_0x50fb('0x6a')]))[_0x50fb('0x19')]?_0x3dc2c3[_0x50fb('0x19')]['root']:null,_0x25bd45=_0x3dc2c3[_0x50fb('0xd5')]?_0x3dc2c3['newRange'][_0x50fb('0xfb')]:null;_0x3d3af0&&this[_0x50fb('0x103')][_0x50fb('0x8c')](_0x3dc2c3[_0x50fb('0x55')]),_0x25bd45&&this[_0x50fb('0x103')][_0x50fb('0x74')](_0x3dc2c3['name'],_0x3dc2c3[_0x50fb('0xd5')][_0x50fb('0x81')]());const _0x3f6b32=null===_0x3dc2c3['_authorId']?null:_0x3dc2c3['_authorId']||this[_0x50fb('0xcb')][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x5d9f2a=_0x3dc2c3[_0x50fb('0x55')];if(!this[_0x50fb('0xc0')]['has'](_0x5d9f2a))return void this['_touchedMarkers'][_0x50fb('0x74')](_0x5d9f2a,{'range':_0x3dc2c3[_0x50fb('0x19')],'userId':_0x3f6b32});const _0x4dd4f7=this[_0x50fb('0xc0')][_0x50fb('0x69')](_0x5d9f2a),_0x5ea94a=_0x4dd4f7[_0x50fb('0xde')],_0x5bdf36=_0x3dc2c3[_0x50fb('0xd5')];null==_0x5ea94a&&null==_0x5bdf36||_0x5ea94a&&_0x5bdf36&&_0x5ea94a[_0x50fb('0x82')](_0x5bdf36)?this[_0x50fb('0xc0')]['delete'](_0x3dc2c3[_0x50fb('0x55')]):_0x4dd4f7[_0x50fb('0x84')]=_0x3f6b32;}[_0x50fb('0xc6')](_0xd1a7ec,_0x19b74b){this[_0x50fb('0x6a')]['has'](_0xd1a7ec[_0x50fb('0xe9')])?this['_diffRoots'][_0x50fb('0x69')](_0xd1a7ec[_0x50fb('0xe9')])['_isAttached']=_0xd1a7ec['isAdd']:(this['_diffRoots'][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],G(_0xd1a7ec[_0x50fb('0xe9')],!0x0)),this[_0x50fb('0x40')][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],{}),_0x19b74b&&this['_idsRoots'][_0x50fb('0x74')](_0xd1a7ec['rootName'],G(_0xd1a7ec['rootName'],!0x0)));const _0x46bee9=null===_0xd1a7ec[_0x50fb('0xca')]?null:_0xd1a7ec['_authorId']||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x1436b1=this[_0x50fb('0x9d')][_0x50fb('0x69')](_0xd1a7ec[_0x50fb('0xe9')]);_0x1436b1&&_0x1436b1['userId']===_0x46bee9?this['_touchedRoots'][_0x50fb('0x8c')](_0xd1a7ec[_0x50fb('0xe9')]):this[_0x50fb('0x9d')][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],{'userId':_0x46bee9,'isAttached':_0xd1a7ec['isAdd']});}[_0x50fb('0x2a')](_0x32ab4e){const _0x3bc48f=this['_diffRootsAttributes'][_0x50fb('0x69')](_0x32ab4e['root'][_0x50fb('0xe9')]);null===_0x32ab4e[_0x50fb('0x34')]?delete _0x3bc48f[_0x32ab4e[_0x50fb('0x104')]]:_0x3bc48f[_0x32ab4e[_0x50fb('0x104')]]=_0x32ab4e[_0x50fb('0x34')];}}function q(_0x2d6b9d){const _0x28407f=G(_0x2d6b9d['rootName'],_0x2d6b9d[_0x50fb('0x16')]());for(const _0x35619a of _0x2d6b9d[_0x50fb('0xbe')]()){const _0x4e174e=_0x35619a[_0x50fb('0x43')](!0x0);_0x28407f[_0x50fb('0xd2')](_0x4e174e);}return _0x28407f;}function G(_0x31c7c9,_0x388724=!0x0){const _0x3466a8=new _0x496a5b();return _0x3466a8[_0x50fb('0xe9')]=_0x31c7c9,_0x3466a8[_0x50fb('0xf2')]=_0x388724,_0x3466a8[_0x50fb('0x16')]=()=>_0x3466a8[_0x50fb('0xf2')],_0x3466a8;}function L(_0x22b78d,_0x584730,_0x2afa5a){const _0x2ac565=_0x50fb('0xd1')==_0x22b78d[_0x50fb('0x88')]?_0x2afa5a[_0x50fb('0x6f')](_0x22b78d['item'],_0x50fb('0x4d')):_0x2afa5a[_0x50fb('0xd7')](_0x22b78d['item']);return _0x2afa5a['createPositionFromPath'](_0x584730,_0x2ac565[_0x50fb('0xef')],_0x2ac565[_0x50fb('0x67')]);}function W(_0x1745af,_0x3e3327,_0x412a3f){const _0x67c546=_0x50fb('0x80')==_0x1745af[_0x50fb('0x88')]?_0x412a3f[_0x50fb('0x6f')](_0x1745af[_0x50fb('0x22')],0x0):_0x412a3f[_0x50fb('0x3')](_0x1745af['item']);return _0x412a3f[_0x50fb('0x29')](_0x3e3327,_0x67c546['path'],_0x67c546['stickiness']);}
|