@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230818.0 → 0.0.0-nightly-20230819.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 _0x5118=['_createCurrentRevision','length','authorsIds','attributes','documentFragment','insertion','_addPendingAction','setRevisionData','splitPosition','$graveyard','getIndex','childCount','_handleOperation','upcast','has','_createFromRanges','_lastTo','attachChange','removeRootAttribute','vid','getAncestors','from','updateRevisions','_pendingAction','createPositionAfter','_fixPosition','_bufferedUpdates','getRevisions','repository','getCurrentRevisionId','vid_end','_markChanges','createPositionBefore','elementStart','keepParagraph','_insertChild','insert','root','position','_findInsertionIndex','getChildren','_cloneOperation','offsetSize','default','getRevision','getChild','buildRevisionData','text','_touchedMarkers','_fixOperation','_startingRevisionId','delete','toVersion','clone','rootsAttributes','_getViewJson','_operations','_baseRootsAttributes','markers','shift','getOperation','getTransformedByOperation','string','find','_calculateMetaData','view','_startingVersion','_makeIdsRoot','initial','authors','Users','revision','createdAt','model','_isPendingUpdate','_execute','_appendChild','getUser','pluginName','getTime','rootName','oldRange','dataToMarker','offset','define','_replaceEditorDataWithRevisionData','version','editing','_getFromVersion','_baseRoots','isEqual','_removePendingAction','_isAttached','PendingActions','adapter','_authorId','_markers','size','_diffRoots','get','_handleRootOperation','document','map','creator','_prepareViewToSave','_removeRevisionMarkers','_getVidAttributeName','config','path','creatorId','_removeMetaData','_getPreviousFrom','_loadRevisionData','push','$text','affectsData','_copyMarkers','range','targetPosition','element','includes','split','getRevisionDocumentData','_makeRevision','afterInit','getNodeByPath','addRoot','_handleSplitOperation','createRevision','previousPosition','Initial\x20revision','insertionPosition','reInit','plugins','newRange','newValue','getData','isReady','stringify','RevisionTracker','markerToData','roots','vid_start','_update','NEGATIVE_INFINITY','locale','move','then','attributesAfter','_handleRootAttributeOperation','isAttached','item','values','key','type','_savedMetaData','name','tableCell','parse','createPositionFromPath','_touched','howMany','finally','_revisionDataBuilder','revisionHistory.resumeUnsavedRevision','merge','filter','end','_fixRange','deletion','_baseIdsRoots','_getBaseVids','_clone','collaboration.channelId','clear','processor','elementEnd','_reset','data','stickiness','insertions','currentRevision','keys','_lastFrom','deletions','createRange','_createInitialRevision','graveyardPosition','children','toModel','conversion','getWalker','getMovedRangeStart','slice','start','_loadState','_idsRoots','source','editor','some','trim','baseVersion','_handleMarkerOperation','_getState','hasContent','_transformMarkers','attributesBefore','toData','_isInit','sendBufferedUpdates','sort','getOperations','getAttributes','_saveMetaData','revision:','fromEntries','fromVersion','remove','marked','saveRevision','nodeAfter','getAttribute','for','_touchedRoots','getRoot','_diffRootsAttributes','set','loadState','data-revision-','marker','history','_initialRevisionId','_setAttribute','isAdd','resolve','useFillerType','Empty\x20document','_generateTape','_setConversion','revision-start','startsWith','getRootNames','getRevisionRootsAttributes','_loadedStateData','bind','parent','_processRootBeforeSave','init','diffData','_continueCurrentRevision','_revisionId','paragraph','userId','_applyOperations','reverse','initialData','update','add','_handleMergeOperation','_makeModelFromViewString','_bufferUpdate','revision-end','addRevisionData','_source'];(function(_0x3241c3,_0x51182f){const _0x2c6fa6=function(_0x2871e3){while(--_0x2871e3){_0x3241c3['push'](_0x3241c3['shift']());}};_0x2c6fa6(++_0x51182f);}(_0x5118,0x137));const _0x2c6f=function(_0x3241c3,_0x51182f){_0x3241c3=_0x3241c3-0x0;let _0x2c6fa6=_0x5118[_0x3241c3];return _0x2c6fa6;};import{Users as _0x2f72d3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xd14f5c,PendingActions as _0xa2e87b}from'ckeditor5/src/core';import{logWarning as _0x41377c,uid as _0x154040}from'ckeditor5/src/utils';import{Position as _0x4f2d96,Range as _0x20270a,Element as _0x2bfd72,DocumentFragment as _0x381441,ViewText as _0x11c7bb,ViewElement as _0x31128b,ViewContainerElement as _0x7f07bf,ViewAttributeElement as _0x407e78,ViewEmptyElement as _0x505704,ViewRawElement as _0x49524d,ViewUIElement as _0x2e1638,ViewDocumentFragment as _0x4ab740}from'ckeditor5/src/engine';import _0x33a4ba from'./revisionsrepository';import{getTranslation as _0x34622a}from'./utils/common-translations';import{cloneDeep as _0x165835,isEqual as _0x20092c}from'lodash-es';const B={'c':_0x7f07bf,'a':_0x407e78,'e':_0x505704,'r':_0x49524d,'u':_0x2e1638};export default class l extends _0xd14f5c{static get[_0x2c6f('0x1f')](){return _0x2c6f('0x5c');}static get['requires'](){return[_0x2f72d3,_0x33a4ba,_0xa2e87b];}constructor(_0x476ff4){super(_0x476ff4),this[_0x2c6f('0x2f')]=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this[_0x2c6f('0x97')]),this['_initialRevisionId']=this[_0x2c6f('0x97')]['config']['get'](_0x2c6f('0x7e'))||_0x2c6f('0x15'),this[_0x2c6f('0xf3')]=new Map(),this['_loadedStateData']=null;const _0x4aa6b1=_0x154040();this[_0x2c6f('0xd8')]={'history':this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')]['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x27')]),'getCurrentRevisionId':()=>_0x4aa6b1},this['set']('isReady',!0x1),this[_0x2c6f('0xb3')]('isEnabled',!0x0),this[_0x2c6f('0xb3')](_0x2c6f('0x1b'),!0x1),this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x25')](_0x2c6f('0x75'),!0x0),this[_0x2c6f('0x97')][_0x2c6f('0x8f')]['for'](_0x2c6f('0xe6'))[_0x2c6f('0x23')]({'view':_0x2c6f('0x18')});}[_0x2c6f('0xc8')](){this[_0x2c6f('0xf5')]=this['editor'][_0x2c6f('0x56')][_0x2c6f('0x34')]('RevisionsRepository'),this[_0x2c6f('0xbf')](),this[_0x2c6f('0x97')]['data']['on']('ready',()=>{const _0x15d920=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](0x0),_0x295c53=_0x15d920&&null===_0x15d920['creator']?_0x15d920:null;if(this['_continueCurrentRevision']=!!_0x295c53&&this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0x75')),this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0xe7')]('RealTimeCollaborationClient')){const _0xfcf58=this[_0x2c6f('0xd8')]['getCurrentRevisionId'](),_0x3d03bd=this[_0x2c6f('0xf5')]['getRevision'](_0xfcf58);if(_0x3d03bd)this[_0x2c6f('0x13')]=_0x3d03bd[_0x2c6f('0xa9')],this[_0x2c6f('0xca')]=!0x1;else{const _0x31429d=this['_source']['history'][_0x2c6f('0x9')][_0x2c6f('0x10')](_0x1cf2c4=>!_0x1cf2c4[_0x2c6f('0xa1')]),_0x3fc914=_0x31429d?_0x31429d[_0x2c6f('0x9a')]:this[_0x2c6f('0xd8')][_0x2c6f('0xb7')][_0x2c6f('0x27')];_0x15d920?(_0x15d920[_0x2c6f('0x5')]<_0x3fc914&&_0x15d920[_0x2c6f('0x60')]({'toVersion':_0x3fc914}),this[_0x2c6f('0xca')]?(this[_0x2c6f('0xd8')][_0x2c6f('0xf6')]=()=>_0x295c53['id'],this[_0x2c6f('0x13')]=_0x295c53['fromVersion']):(this['_startingVersion']=_0x15d920[_0x2c6f('0x5')],this[_0x2c6f('0xca')]=!0x1)):(this[_0x2c6f('0x13')]=_0x3fc914,this[_0x2c6f('0xca')]=!0x1);}}else _0x295c53&&(this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xb7')]['version']=Math['max'](_0x295c53[_0x2c6f('0x5')],this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')][_0x2c6f('0xb7')][_0x2c6f('0x27')]),_0x295c53[_0x2c6f('0xa9')]===_0x295c53[_0x2c6f('0x5')]?(0x0!==_0x295c53[_0x2c6f('0xa9')]&&(this[_0x2c6f('0xd8')][_0x2c6f('0xf6')]=()=>_0x295c53['id']),this['_continueCurrentRevision']=!0x1):this[_0x2c6f('0xca')]&&(this[_0x2c6f('0xd8')]['getCurrentRevisionId']=()=>_0x295c53['id'],this['_startingVersion']=_0x295c53[_0x2c6f('0xa9')])),this[_0x2c6f('0xca')]||(this[_0x2c6f('0x13')]=this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x27')]);this['_revisionDataBuilder'][_0x2c6f('0xc8')](this[_0x2c6f('0xd8')][_0x2c6f('0xb7')]),this[_0x2c6f('0x8b')](this[_0x2c6f('0x13')]),this[_0x2c6f('0xd9')](this[_0x2c6f('0x13')]),this[_0x2c6f('0x2f')]&&this['sendBufferedUpdates']();}),this[_0x2c6f('0xc5')](_0x2c6f('0x5a'))['to'](this,_0x2c6f('0x1b'),_0x808fd7=>!_0x808fd7);}async[_0x2c6f('0x4d')](){if(this['repository'][_0x2c6f('0xda')]>0x0){const _0x34e5cf=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](0x0),_0x2497db=await this[_0x2c6f('0x4b')](_0x34e5cf),_0x414da6=await this[_0x2c6f('0xc3')](_0x34e5cf);this[_0x2c6f('0x26')](_0x2497db,_0x414da6);}}['setSource'](_0x53806c){this[_0x2c6f('0xd8')]=_0x53806c;}async[_0x2c6f('0xd1')](){const _0x2437fc=await this[_0x2c6f('0xd8')]['getLatestVersion']();if(_0x2437fc>this[_0x2c6f('0x86')][_0x2c6f('0x5')]){await this[_0x2c6f('0x94')]();const _0xc664d1=this[_0x2c6f('0x107')]({'revision':this[_0x2c6f('0x86')],'to':_0x2437fc});_0xc664d1[_0x2c6f('0x16')]=_0xc664d1[_0x2c6f('0xdb')]['map'](_0xfb0609=>this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))[_0x2c6f('0x1e')](_0xfb0609)),this['currentRevision'][_0x2c6f('0x60')](_0xc664d1);}}async[_0x2c6f('0x94')](){this[_0x2c6f('0xca')]&&!this[_0x2c6f('0xc4')]&&(await this[_0x2c6f('0x41')](this['currentRevision']),this[_0x2c6f('0x74')][_0x2c6f('0xb4')](this[_0x2c6f('0x86')]),this[_0x2c6f('0xc4')]={'fromVersion':this[_0x2c6f('0x86')][_0x2c6f('0xa9')],'authors':this['currentRevision']['authors'][_0x2c6f('0x92')]()});}async[_0x2c6f('0xac')](_0x41e6b9={},_0x173245=null){const _0x44280b=[];await this[_0x2c6f('0x94')](),this[_0x2c6f('0xca')]=!0x1,_0x173245>this[_0x2c6f('0x86')][_0x2c6f('0x5')]&&(_0x173245=null),null===_0x173245&&(_0x173245=await this[_0x2c6f('0xd8')]['getLatestVersion']());const _0x184daf=this[_0x2c6f('0x29')](_0x173245),_0x4d5df6=this['buildRevisionData']({'from':_0x184daf,'to':_0x173245});if(this[_0x2c6f('0x86')]['toVersion']<_0x173245){const _0x156253=this[_0x2c6f('0x107')]({'revision':this['currentRevision'],'from':_0x173245,'to':_0x173245});_0x156253['authors']=[],_0x156253['authorsIds']=[],_0x156253['id']=this[_0x2c6f('0x86')]['id'],this['currentRevision'][_0x2c6f('0x60')](_0x156253,!0x0),delete _0x156253[_0x2c6f('0x16')],_0x44280b['push'](_0x156253);}_0x41e6b9[_0x2c6f('0x3e')]=this[_0x2c6f('0x97')]['plugins']['get']('Users')['me']['id'],_0x41e6b9['name']=_0x41e6b9[_0x2c6f('0x6d')]||null,_0x41e6b9['id']=_0x41e6b9['id']||_0x154040(),_0x41e6b9={..._0x41e6b9,..._0x4d5df6};const _0x426d37=this[_0x2c6f('0xd7')](_0x41e6b9);_0x44280b[_0x2c6f('0x42')](_0x41e6b9);const _0x2c588e=this[_0x2c6f('0xf5')][_0x2c6f('0xe3')](_0x426d37);if(0x0!==_0x2c588e){const _0x320d70=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x2c588e-0x1);if(_0x320d70[_0x2c6f('0xa9')]!==_0x173245){const _0x3352ae=this[_0x2c6f('0x74')]['getData'](_0x173245,_0x320d70[_0x2c6f('0x5')]),_0x35ef3f={'id':_0x320d70['id'],'diffData':_0x3352ae[_0x2c6f('0xc9')],'authorsIds':_0x3352ae[_0x2c6f('0xdb')],'authors':_0x3352ae[_0x2c6f('0xdb')][_0x2c6f('0x37')](_0x509d30=>this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))[_0x2c6f('0x1e')](_0x509d30)),'fromVersion':_0x173245};_0x320d70===this['currentRevision']&&(_0x35ef3f['createdAt']=new Date(_0x41e6b9[_0x2c6f('0x19')][_0x2c6f('0x20')]()+0xa)),_0x320d70[_0x2c6f('0x60')](_0x35ef3f,!0x0),delete _0x35ef3f[_0x2c6f('0x16')],_0x44280b[_0x2c6f('0x42')](_0x35ef3f);}}if(this['adapter']){for(const _0x176a0d of _0x44280b)this[_0x2c6f('0xd5')](_0x176a0d['id'],_0x176a0d,!0x0);this[_0x2c6f('0xa2')]();}return _0x426d37;}[_0x2c6f('0xd7')](_0x58ab7a){const _0x119d8c=this[_0x2c6f('0xf5')][_0x2c6f('0x51')](_0x58ab7a);return this[_0x2c6f('0x2f')]&&_0x119d8c['on'](_0x2c6f('0x60'),(_0x311c03,_0x4b1975,_0x5a3f82)=>{_0x5a3f82||(this['_bufferUpdate'](_0x4b1975['id'],_0x4b1975,!0x0),this['sendBufferedUpdates']());}),this[_0x2c6f('0xf5')]['addRevision'](_0x119d8c,this[_0x2c6f('0x100')](_0x119d8c)),_0x119d8c;}async[_0x2c6f('0x4b')](_0x141f8e){await this[_0x2c6f('0x41')](_0x141f8e);const _0x5e5c9c={};for(const _0x234104 in _0x141f8e[_0x2c6f('0xc9')]){if(_0x141f8e[_0x2c6f('0xc9')][_0x234104]['attachChange']&&!_0x141f8e[_0x2c6f('0xc9')][_0x234104][_0x2c6f('0xea')][_0x2c6f('0x67')])continue;const _0x1ea51b=this[_0x2c6f('0x3a')](JSON[_0x2c6f('0x6f')](_0x141f8e['diffData'][_0x234104][_0x2c6f('0x85')])),_0x242b4c=this['editor'][_0x2c6f('0x28')][_0x2c6f('0x12')][_0x2c6f('0x36')],_0x773be6=new _0x4ab740(_0x242b4c,_0x1ea51b[_0x2c6f('0x37')](_0x213d0e=>J(_0x213d0e,this['editor'])));this[_0x2c6f('0x97')][_0x2c6f('0x83')][_0x2c6f('0x80')][_0x2c6f('0xbc')](_0x2c6f('0xab')),_0x5e5c9c[_0x234104]=this[_0x2c6f('0x97')][_0x2c6f('0x83')][_0x2c6f('0x80')][_0x2c6f('0xa0')](_0x773be6),this[_0x2c6f('0x97')][_0x2c6f('0x83')]['processor']['useFillerType'](_0x2c6f('0x104'));}return _0x5e5c9c;}async['getRevisionRootsAttributes'](_0x316ef7){await this[_0x2c6f('0x41')](_0x316ef7);const _0x25252e={};for(const _0x3828cc in _0x316ef7['diffData'])_0x316ef7['diffData'][_0x3828cc]['attachChange']&&!_0x316ef7[_0x2c6f('0xc9')][_0x3828cc]['attachChange'][_0x2c6f('0x67')]||(_0x25252e[_0x3828cc]=_0x316ef7[_0x2c6f('0xc9')][_0x3828cc][_0x2c6f('0x65')]||{});return _0x25252e;}[_0x2c6f('0xa2')](){if(0x0===this[_0x2c6f('0xf3')][_0x2c6f('0x32')])return;if(this[_0x2c6f('0x1b')])return;let _0x966eda=Array[_0x2c6f('0xee')](this[_0x2c6f('0xf3')][_0x2c6f('0x69')]());this['_bufferedUpdates'][_0x2c6f('0x7f')]();for(let _0x41a5dc=0x0;_0x41a5dc<_0x966eda['length'];_0x41a5dc++){const _0x598a50=_0x966eda[_0x41a5dc];let _0x41f57c=!0x1;for(const _0x53bc47 of Object[_0x2c6f('0x87')](_0x598a50))void 0x0===_0x598a50[_0x53bc47]?delete _0x598a50[_0x53bc47]:'id'!==_0x53bc47&&(_0x41f57c=!0x0);_0x41f57c||(_0x966eda[_0x41a5dc]=null);}if(_0x966eda=_0x966eda['filter'](_0x588802=>null!==_0x588802),!_0x966eda['length'])return;for(let _0x2a3eb0=0x0;_0x2a3eb0<_0x966eda[_0x2c6f('0xda')];_0x2a3eb0++){const _0x485a6e=_0x966eda[_0x2a3eb0];void 0x0!==_0x485a6e['fromVersion']&&void 0x0===_0x485a6e[_0x2c6f('0x5')]&&(_0x485a6e[_0x2c6f('0x5')]=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x485a6e['id'])[_0x2c6f('0x5')]),void 0x0!==_0x485a6e['toVersion']&&void 0x0===_0x485a6e[_0x2c6f('0xa9')]&&(_0x485a6e['fromVersion']=this['repository'][_0x2c6f('0x105')](_0x485a6e['id'])[_0x2c6f('0xa9')]);}const _0x2b5ba2=this[_0x2c6f('0x97')]['config'][_0x2c6f('0x34')](_0x2c6f('0x7e'));this['_isPendingUpdate']=!0x0,this[_0x2c6f('0xdf')](),this[_0x2c6f('0x2f')][_0x2c6f('0xef')](_0x966eda,_0x2b5ba2)[_0x2c6f('0x73')](()=>{this[_0x2c6f('0x1b')]=!0x1;})[_0x2c6f('0x64')](_0x347e17=>{if(_0x347e17)for(const _0x56f3ab of _0x347e17)this[_0x2c6f('0xe0')]({'id':_0x56f3ab['id'],'createdAt':_0x56f3ab['createdAt']});this[_0x2c6f('0x2c')](),this[_0x2c6f('0xa2')]();});}[_0x2c6f('0x26')](_0x1465ce,_0x211f9c){let _0x95713f=this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0xd0')),_0x313d0a=this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0x7'));if(void 0x0===_0x95713f){_0x95713f={};for(const _0x2fa771 of this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xc2')]())_0x95713f[_0x2fa771]='';}if(_0x2c6f('0xf')==typeof _0x95713f&&(_0x95713f={'main':_0x95713f}),void 0x0===_0x313d0a){_0x313d0a={};for(const _0x4fc412 of this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xc2')]())_0x313d0a[_0x4fc412]={};}let _0x316d1e=!0x1;const _0x336d7f=Object['keys'](_0x95713f),_0x48902d=Object[_0x2c6f('0x87')](_0x1465ce);for(const _0x4120ff of _0x336d7f){if(_0x95713f[_0x4120ff]!==_0x1465ce[_0x4120ff]&&''!==_0x95713f[_0x4120ff][_0x2c6f('0x99')]()){_0x316d1e=!0x0;break;}if(!_0x20092c(_0x313d0a[_0x4120ff],_0x211f9c[_0x4120ff])&&Object[_0x2c6f('0x87')](_0x313d0a[_0x4120ff])[_0x2c6f('0xda')]>0x0){_0x316d1e=!0x0;break;}}_0x316d1e||(_0x316d1e=_0x48902d[_0x2c6f('0x98')](_0x4fa5e3=>!this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')][_0x2c6f('0xb1')](_0x4fa5e3))),_0x316d1e&&_0x41377c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x95713f,'editorRootsAttributes':_0x313d0a,'revisionData':_0x1465ce,'revisionRootsAttributes':_0x211f9c}),this['editor'][_0x2c6f('0x3c')][_0x2c6f('0xb3')]('initialData',_0x1465ce),this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0xb3')](_0x2c6f('0x7'),_0x211f9c);}[_0x2c6f('0xdf')](){if(!this['_pendingAction']){const _0x33ce4d=this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x2e'));this['_pendingAction']=_0x33ce4d[_0x2c6f('0xd2')](_0x34622a(this[_0x2c6f('0x97')][_0x2c6f('0x62')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x2c6f('0xf0')]&&(this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get'](_0x2c6f('0x2e'))[_0x2c6f('0xaa')](this[_0x2c6f('0xf0')]),this[_0x2c6f('0xf0')]=null);}[_0x2c6f('0x100')](_0x5ec0ed){const _0x582c18=this[_0x2c6f('0xf5')][_0x2c6f('0xf4')]();_0x582c18[_0x2c6f('0xcf')]();let _0x46db9a=0x0;for(;_0x46db9a<_0x582c18[_0x2c6f('0xda')];){const _0x3d4c8b=_0x582c18[_0x46db9a];if(_0x3d4c8b===this['currentRevision']){_0x46db9a++;continue;}if(_0x3d4c8b['id']===this['_initialRevisionId'])break;const _0xf9c3df=_0x5ec0ed['toVersion']-_0x3d4c8b['toVersion']||_0x5ec0ed[_0x2c6f('0xa9')]-_0x3d4c8b[_0x2c6f('0xa9')];if(_0xf9c3df>0x0)break;if(_0xf9c3df<0x0)_0x46db9a++;else{if(!_0x5ec0ed[_0x2c6f('0x38')]&&_0x3d4c8b[_0x2c6f('0x38')])break;if(_0x3d4c8b[_0x2c6f('0x38')]||!_0x5ec0ed[_0x2c6f('0x38')]){if(_0x5ec0ed['createdAt']>_0x3d4c8b[_0x2c6f('0x19')])break;_0x46db9a++;}else _0x46db9a++;}}return _0x46db9a;}[_0x2c6f('0xe0')](_0x423d06){const _0x22ecde=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x423d06['id']);if(_0x423d06[_0x2c6f('0x19')]&&(_0x423d06[_0x2c6f('0x19')]=new Date(_0x423d06[_0x2c6f('0x19')])),_0x423d06[_0x2c6f('0xdb')]){const _0x5b638a=this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'));_0x423d06[_0x2c6f('0x16')]=_0x423d06['authorsIds'][_0x2c6f('0x37')](_0x5d7af7=>_0x5b638a['getUser'](_0x5d7af7));}_0x22ecde[_0x2c6f('0x60')](_0x423d06,!0x0);}[_0x2c6f('0x107')]({revision:_0x366f26=null,from:_0x5a0cce=null,to:_0x3ce034=null}){_0x5a0cce=null!==_0x5a0cce?_0x5a0cce:_0x366f26[_0x2c6f('0xa9')],_0x3ce034=null!==_0x3ce034?_0x3ce034:_0x366f26[_0x2c6f('0x5')];const _0x1d7164=this[_0x2c6f('0x74')][_0x2c6f('0x59')](_0x5a0cce,_0x3ce034),_0x4b7e46={'diffData':_0x1d7164[_0x2c6f('0xc9')],'authorsIds':_0x1d7164[_0x2c6f('0xdb')],'fromVersion':_0x5a0cce,'toVersion':_0x3ce034};if(!_0x366f26||_0x3ce034!==_0x366f26[_0x2c6f('0x5')]){const _0x2ce9bd=_0x3ce034-0x1,_0x3fd647=this[_0x2c6f('0xd8')][_0x2c6f('0xb7')][_0x2c6f('0xd')](_0x2ce9bd);_0x4b7e46[_0x2c6f('0x19')]=_0x3fd647&&_0x3fd647[_0x2c6f('0x19')]||new Date();}if(this[_0x2c6f('0xc4')]&&_0x5a0cce===this[_0x2c6f('0xc4')][_0x2c6f('0xa9')])for(const _0x2f83c1 of this[_0x2c6f('0xc4')][_0x2c6f('0x16')])_0x4b7e46[_0x2c6f('0xdb')][_0x2c6f('0x49')](_0x2f83c1['id'])||_0x4b7e46['authorsIds']['push'](_0x2f83c1['id']);return _0x4b7e46;}[_0x2c6f('0x41')](_0x52392f){if(!_0x52392f||_0x52392f[_0x2c6f('0xc9')])return Promise[_0x2c6f('0xbb')]();{const _0x328bbf=this[_0x2c6f('0x97')]['config'][_0x2c6f('0x34')]('collaboration.channelId');return this[_0x2c6f('0x2f')][_0x2c6f('0x105')]({'channelId':_0x328bbf,'revisionId':_0x52392f['id']})[_0x2c6f('0x64')](_0x1ec1a1=>{_0x52392f['diffData']=_0x1ec1a1[_0x2c6f('0xc9')];});}}[_0x2c6f('0xd5')](_0x183a2a,_0x633194,_0xbda6f0){if(this[_0x2c6f('0xf3')][_0x2c6f('0xe7')](_0x183a2a)){const _0x33954c=this[_0x2c6f('0xf3')][_0x2c6f('0x34')](_0x183a2a);_0x633194=_0xbda6f0?{..._0x33954c,..._0x633194}:{..._0x633194,..._0x33954c};}this[_0x2c6f('0xf3')][_0x2c6f('0xb3')](_0x183a2a,_0x633194);}[_0x2c6f('0x29')](_0x214068){const _0x28b4cc=this[_0x2c6f('0xf5')][_0x2c6f('0xf4')]();_0x28b4cc['reverse'](),_0x28b4cc[_0x2c6f('0xc')]();const _0x502903=_0x28b4cc['find'](_0x29b90d=>_0x29b90d[_0x2c6f('0x5')]<=_0x214068)[_0x2c6f('0x5')];return _0x502903<this[_0x2c6f('0x13')]?this[_0x2c6f('0x13')]:_0x502903;}[_0x2c6f('0x8b')](_0x49dc01){const _0xb3bb71=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](this[_0x2c6f('0xf5')]['length']-0x1);if(_0xb3bb71)this[_0x2c6f('0xb8')]=_0xb3bb71['id'];else{const _0x44d530=!this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')]['roots'][_0x2c6f('0x10')](_0x20717e=>this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x9d')](_0x20717e)),_0x378e26=this['editor']['plugins'][_0x2c6f('0x34')]('Users')['me']['id'],_0x4a5193=_0x34622a(this[_0x2c6f('0x97')][_0x2c6f('0x62')],_0x44d530?_0x2c6f('0xbd'):_0x2c6f('0x53'));this[_0x2c6f('0x4c')]({'from':_0x49dc01,'to':_0x49dc01,'id':this[_0x2c6f('0xb8')],'name':_0x4a5193,'creatorId':_0x378e26});}}[_0x2c6f('0xd9')](_0xa5873c){const _0x159147=this[_0x2c6f('0xd8')]['getCurrentRevisionId']();this[_0x2c6f('0x86')]=this[_0x2c6f('0xf5')]['getRevision'](_0x159147),this[_0x2c6f('0x86')]||(this[_0x2c6f('0x86')]=this[_0x2c6f('0x4c')]({'from':_0xa5873c,'to':_0xa5873c,'id':_0x159147,'name':'','creatorId':null}));}[_0x2c6f('0x4c')]({name:_0x25de1f,from:_0x47dcd2,to:_0x1ca0e9,creatorId:_0x3a9916,id:_0x32a28a}){const _0x170683=this[_0x2c6f('0x107')]({'from':_0x47dcd2,'to':_0x1ca0e9});_0x170683[_0x2c6f('0x6d')]=_0x25de1f,_0x170683[_0x2c6f('0x3e')]=_0x3a9916,_0x170683['id']=_0x32a28a;const _0x1828d3=this[_0x2c6f('0xd7')](_0x170683);return this[_0x2c6f('0x2f')]&&this['_bufferUpdate'](_0x170683['id'],_0x170683,!0x0),_0x1828d3;}['_setConversion'](){this[_0x2c6f('0x97')][_0x2c6f('0x8f')][_0x2c6f('0xaf')]('dataDowncast')[_0x2c6f('0x5d')]({'model':_0x2c6f('0x18')});}['_removeRevisionMarkers'](_0x12f9b2){return(_0x12f9b2=_0x12f9b2[_0x2c6f('0x77')](_0x2753cb=>!_0x2753cb[_0x2c6f('0x6d')]||_0x2c6f('0xc0')!==_0x2753cb['name']&&_0x2c6f('0xd6')!==_0x2753cb[_0x2c6f('0x6d')]))['forEach'](_0x32957a=>{'string'!=typeof _0x32957a&&(_0x32957a[_0x2c6f('0x8d')]=this['_removeRevisionMarkers'](_0x32957a['children']),_0x32957a[_0x2c6f('0xdc')]=_0x32957a[_0x2c6f('0xdc')][_0x2c6f('0x77')](_0x3c81c9=>!_0x3c81c9[0x0][_0x2c6f('0xc1')](_0x2c6f('0xb5'))));}),_0x12f9b2;}}function J(_0x250b5c,_0x4eb293){const _0x284cb3=_0x4eb293['editing']['view'][_0x2c6f('0x36')];if(_0x2c6f('0xf')==typeof _0x250b5c)return new _0x11c7bb(_0x284cb3,_0x250b5c);{const _0x4d3316=_0x250b5c[_0x2c6f('0x8d')][_0x2c6f('0x37')](_0x47f68f=>J(_0x47f68f,_0x4eb293));return new(B[_0x250b5c[(_0x2c6f('0x6b'))]]||_0x31128b)(_0x284cb3,_0x250b5c['name'],_0x250b5c['attributes'],_0x4d3316);}}class H{constructor(_0x1d7d2a){this[_0x2c6f('0x97')]=_0x1d7d2a,this[_0x2c6f('0x6c')]=new Map(),this[_0x2c6f('0x88')]=-0x1,this[_0x2c6f('0xe9')]=-0x1,this[_0x2c6f('0x31')]=new Map(),this[_0x2c6f('0x33')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2c6f('0x2a')]=new Map(),this[_0x2c6f('0xa')]=new Map(),this[_0x2c6f('0x95')]=new Map(),this[_0x2c6f('0x7b')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this[_0x2c6f('0xb0')]=new Map(),this[_0x2c6f('0xcb')]=0x1;}[_0x2c6f('0xc8')](_0x2c13fe){this[_0x2c6f('0x96')]=_0x2c13fe;const _0x3a41b1=new Map(),_0x4c5fea=new Map(),_0x443fa7=this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x5e')]['map'](_0xe40376=>_0xe40376[_0x2c6f('0x21')]);for(const _0xf1fd0e of _0x443fa7){const _0x352dbf=this['editor'][_0x2c6f('0x1a')]['document'][_0x2c6f('0xb1')](_0xf1fd0e),_0x403bd3=q(_0x352dbf);_0x3a41b1[_0x2c6f('0xb3')](_0xf1fd0e,_0x403bd3),_0x4c5fea[_0x2c6f('0xb3')](_0xf1fd0e,Object[_0x2c6f('0xa8')](_0x352dbf[_0x2c6f('0xa5')]()));}const _0x133cc4=Array[_0x2c6f('0xee')](this['editor'][_0x2c6f('0x1a')][_0x2c6f('0xb')])['map'](_0x31b8ec=>[_0x31b8ec[_0x2c6f('0x6d')],_0x31b8ec['getRange']()]),_0x116f40=this[_0x2c6f('0x96')][_0x2c6f('0x27')];this[_0x2c6f('0xa6')](_0x116f40,_0x3a41b1,_0x133cc4,_0x4c5fea),this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')];const _0x3f36e9=new Map(),_0x1c0f5f=new Map();for(const _0x396ca8 of _0x443fa7){const _0x5b95e9=G(_0x396ca8);_0x3f36e9[_0x2c6f('0xb3')](_0x396ca8,_0x5b95e9),_0x1c0f5f[_0x2c6f('0xb3')](_0x396ca8,{});}this[_0x2c6f('0xa6')](Number['NEGATIVE_INFINITY'],_0x3f36e9,[],_0x1c0f5f);}[_0x2c6f('0x59')](_0x2f9921,_0x266d7f){if(this['_lastFrom']===_0x2f9921&&this[_0x2c6f('0xe9')]<=_0x266d7f)this[_0x2c6f('0x6c')][_0x2c6f('0x32')]>0x1&&this[_0x2c6f('0x3f')](this[_0x2c6f('0xe9')]),this[_0x2c6f('0xce')](this[_0x2c6f('0xe9')],_0x266d7f,!0x0);else{if(!this[_0x2c6f('0x6c')]['has'](_0x2f9921)){const _0x151374=this[_0x2c6f('0x40')](_0x2f9921);this[_0x2c6f('0x11')](_0x151374,_0x2f9921,!0x1);}this['_calculateMetaData'](_0x2f9921,_0x266d7f,!0x0);}return this['_lastFrom']=_0x2f9921,this[_0x2c6f('0xe9')]=_0x266d7f,this['_getState']();}[_0x2c6f('0xb4')](_0x3e5b03){this['_reset'](),this[_0x2c6f('0x88')]=_0x3e5b03[_0x2c6f('0xa9')],this['_lastTo']=_0x3e5b03['toVersion'];for(const _0x574e56 in _0x3e5b03['diffData']){const _0x18a18f=_0x3e5b03[_0x2c6f('0xc9')][_0x574e56][_0x2c6f('0xea')],_0x472861=_0x165835(_0x3e5b03[_0x2c6f('0xc9')][_0x574e56][_0x2c6f('0x9f')])||{},_0x501dfc=this[_0x2c6f('0xd4')](_0x3e5b03['diffData'][_0x574e56]['deletions']);_0x501dfc['rootName']=_0x574e56,_0x501dfc[_0x2c6f('0x2d')]=!_0x18a18f||!_0x18a18f['isAttached'],_0x501dfc[_0x2c6f('0x67')]=()=>_0x501dfc[_0x2c6f('0x2d')],this[_0x2c6f('0x2a')][_0x2c6f('0xb3')](_0x574e56,_0x501dfc),this[_0x2c6f('0xa')]['set'](_0x574e56,_0x472861),_0x18a18f&&this[_0x2c6f('0xb0')][_0x2c6f('0xb3')](_0x574e56,_0x18a18f);const _0x5bd5dd=this[_0x2c6f('0x14')](_0x501dfc);this[_0x2c6f('0x7b')][_0x2c6f('0xb3')](_0x574e56,_0x5bd5dd);for(const [_0x59f937,_0x394c53]of _0x501dfc['markers']){if(!_0x59f937[_0x2c6f('0xc1')](_0x2c6f('0xa7')))continue;const _0xdd825f=_0x59f937[_0x2c6f('0x4a')](':')[0x2];for(const _0x1c25bd of _0x394c53[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x304ae1=this[_0x2c6f('0x3b')](_0x1c25bd),_0x4c1ac9=_0x2c6f('0x81')==_0x1c25bd[_0x2c6f('0x6b')]?_0x1c25bd['previousPosition']['path']['slice'](0x0,-0x1):_0x1c25bd['previousPosition'][_0x2c6f('0x3d')],_0x58b780=_0x5bd5dd[_0x2c6f('0x4e')](_0x4c1ac9)['getAttribute'](_0x304ae1);this['_touched'][_0x2c6f('0xb3')](_0x58b780,{'userId':_0xdd825f});}}}this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')];const _0x402e48=[...Array(this[_0x2c6f('0xcb')])['keys']()][_0x2c6f('0x92')](0x1)[_0x2c6f('0x77')](_0x5ef6c2=>!this[_0x2c6f('0x71')][_0x2c6f('0xe7')](_0x5ef6c2));let _0x4bdd10=0x0;const _0xa25e47=new Map();for(const _0x53f3e4 in _0x3e5b03[_0x2c6f('0xc9')]){const _0x3ea9f6=_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0xea')],_0x11f9cf=_0x165835(_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0x65')])||{},_0x2e66a5=this['_makeModelFromViewString'](_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0x85')]);_0x2e66a5[_0x2c6f('0x21')]=_0x53f3e4,_0x2e66a5['_isAttached']=!_0x3ea9f6||_0x3ea9f6[_0x2c6f('0x67')],_0x2e66a5['isAttached']=()=>_0x2e66a5[_0x2c6f('0x2d')],this[_0x2c6f('0x33')][_0x2c6f('0xb3')](_0x53f3e4,_0x2e66a5),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x53f3e4,_0x11f9cf);const _0x749c26=this[_0x2c6f('0x14')](_0x2e66a5,Number[_0x2c6f('0x61')]);this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x53f3e4,_0x749c26),_0xa25e47[_0x2c6f('0xb3')](_0x53f3e4,_0x2e66a5['isAttached']()?_0x11f9cf:{});for(const [_0x3d5211,_0x5e3926]of _0x2e66a5[_0x2c6f('0xb')]){if(!_0x3d5211['startsWith'](_0x2c6f('0xa7')))continue;const _0x2a614=_0x3d5211[_0x2c6f('0x4a')](':')[0x2];for(const _0x32f5e6 of _0x5e3926[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x43ec68=this['_getVidAttributeName'](_0x32f5e6),_0x12ff7e=this[_0x2c6f('0xcb')]++,_0x4159d7=_0x2c6f('0x81')==_0x32f5e6[_0x2c6f('0x6b')]?_0x32f5e6[_0x2c6f('0x52')]['path']['slice'](0x0,-0x1):_0x32f5e6[_0x2c6f('0x52')][_0x2c6f('0x3d')];_0x749c26[_0x2c6f('0x4e')](_0x4159d7)[_0x2c6f('0xb9')](_0x43ec68,_0x12ff7e),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x12ff7e,{'userId':_0x2a614});}}for(const _0x8fe0b of this[_0x2c6f('0x97')][_0x2c6f('0x1a')]['createRangeIn'](_0x2e66a5)[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x523715=this[_0x2c6f('0x3b')](_0x8fe0b),_0x1fd034=_0x2c6f('0x81')==_0x8fe0b[_0x2c6f('0x6b')]?_0x8fe0b[_0x2c6f('0x52')][_0x2c6f('0x3d')][_0x2c6f('0x92')](0x0,-0x1):_0x8fe0b[_0x2c6f('0x52')][_0x2c6f('0x3d')],_0x405650=_0x749c26[_0x2c6f('0x4e')](_0x1fd034);_0x405650[_0x2c6f('0xae')](_0x523715)>0x0||_0x405650[_0x2c6f('0xb9')](_0x523715,_0x402e48[_0x4bdd10++]);}for(const [_0x390e02,_0xf17ef5]of _0x2e66a5[_0x2c6f('0xb')])_0x390e02[_0x2c6f('0xc1')](_0x2c6f('0xa7'))||this[_0x2c6f('0x31')][_0x2c6f('0xb3')](_0x390e02,_0xf17ef5);}const _0x39bf54=G('$graveyard');this[_0x2c6f('0x2a')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),_0x39bf54),this[_0x2c6f('0x7b')][_0x2c6f('0xb3')]('$graveyard',this[_0x2c6f('0x14')](_0x39bf54,0x1));const _0x17df60=G('$graveyard');this[_0x2c6f('0x33')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),_0x17df60),this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),this[_0x2c6f('0x14')](_0x17df60,0x1));const _0x48b9a5=Array[_0x2c6f('0xee')](this[_0x2c6f('0x33')])[_0x2c6f('0x37')](([_0x181eea,_0x31fc8c])=>[_0x181eea,q(_0x31fc8c)]);this[_0x2c6f('0xa6')](this[_0x2c6f('0xe9')],_0x48b9a5,this[_0x2c6f('0x31')],_0xa25e47);}[_0x2c6f('0xd4')](_0x4e0f0e){const _0x50fa9c=JSON[_0x2c6f('0x6f')](_0x4e0f0e),_0xf01ba1=this[_0x2c6f('0x97')][_0x2c6f('0x28')][_0x2c6f('0x12')][_0x2c6f('0x36')],_0x6dbbab=new _0x4ab740(_0xf01ba1,_0x50fa9c['map'](_0x198e27=>J(_0x198e27,this['editor'])));return this[_0x2c6f('0x97')]['data'][_0x2c6f('0x8e')](_0x6dbbab);}[_0x2c6f('0xa6')](_0x2c6103,_0x4f052f,_0x156f66,_0x52ccf2){const _0x4a4756=new Map(_0x4f052f),_0x1bb5c6=new Map(_0x165835(_0x52ccf2)),_0x5f3ac5=new Map();for(const [_0x3d239e,_0x126a3c]of _0x156f66)_0x5f3ac5[_0x2c6f('0xb3')](_0x3d239e,{'start':_0x126a3c[_0x2c6f('0x93')]['clone'](),'end':_0x126a3c[_0x2c6f('0x78')]['clone'](),'rootName':_0x126a3c[_0x2c6f('0xfe')][_0x2c6f('0x21')]});this[_0x2c6f('0x6c')][_0x2c6f('0xb3')](_0x2c6103,{'roots':_0x4a4756,'markers':_0x5f3ac5,'rootsAttributes':_0x1bb5c6});}[_0x2c6f('0x3f')](_0x2ed098){this[_0x2c6f('0x6c')][_0x2c6f('0x4')](_0x2ed098);}[_0x2c6f('0x55')](){this[_0x2c6f('0x82')](),this[_0x2c6f('0x88')]=-0x1,this['_lastTo']=-0x1,this[_0x2c6f('0x6c')][_0x2c6f('0x7f')](),this[_0x2c6f('0xc8')](this[_0x2c6f('0x96')]);}['_reset'](){this['_touched'][_0x2c6f('0x7f')](),this[_0x2c6f('0x1')][_0x2c6f('0x7f')](),this[_0x2c6f('0xb0')][_0x2c6f('0x7f')](),this[_0x2c6f('0x33')][_0x2c6f('0x7f')](),this['_diffRootsAttributes']['clear'](),this[_0x2c6f('0x2a')][_0x2c6f('0x7f')](),this['_baseRootsAttributes'][_0x2c6f('0x7f')](),this[_0x2c6f('0x95')]['clear'](),this[_0x2c6f('0x7b')][_0x2c6f('0x7f')](),this[_0x2c6f('0x31')][_0x2c6f('0x7f')](),this[_0x2c6f('0xcb')]=0x1,this['_startingRevisionId']=this[_0x2c6f('0xcb')];}[_0x2c6f('0x14')](_0x17f611,_0x1e99b7=null){let _0x5bdd73=null;_0x17f611['is']('documentFragment')||(_0x5bdd73=new _0x2bfd72(_0x17f611['name'],{'vid_start':null===_0x1e99b7?this['_revisionId']++:_0x1e99b7++}));const _0x5ce822=[];for(const _0x7278e9 of _0x17f611[_0x2c6f('0x101')]())if(_0x7278e9['is']('element')){_0x5ce822[_0x2c6f('0x42')](this[_0x2c6f('0x14')](_0x7278e9,_0x1e99b7));const _0x5b02a0=_0x5ce822[_0x5ce822['length']-0x1];null!==_0x1e99b7&&(_0x1e99b7=_0x5b02a0['is'](_0x2c6f('0x48'),_0x2c6f('0x43'))?_0x5b02a0[_0x2c6f('0xae')](_0x2c6f('0xec'))+0x1:_0x5b02a0[_0x2c6f('0xae')](_0x2c6f('0xf7'))+0x1);}else for(let _0x368c94=0x0;_0x368c94<_0x7278e9[_0x2c6f('0x103')];_0x368c94++)_0x5ce822[_0x2c6f('0x42')](new _0x2bfd72('$text',{'vid':null===_0x1e99b7?this[_0x2c6f('0xcb')]++:_0x1e99b7++}));if(_0x17f611['is'](_0x2c6f('0xdd'))){const _0x5d5abb=G(_0x17f611['rootName']);return _0x5d5abb['_insertChild'](0x0,_0x5ce822),_0x5d5abb;}return _0x5bdd73[_0x2c6f('0xb9')]('vid_end',null===_0x1e99b7?this[_0x2c6f('0xcb')]++:_0x1e99b7++),_0x5bdd73[_0x2c6f('0xfc')](0x0,_0x5ce822),_0x5bdd73;}['_calculateMetaData'](_0x4bf6c3,_0xaf9b13,_0x372e61){this['_reset']();const {roots:_0x37762a,markers:_0x3305b6,rootsAttributes:_0x243d35}=this[_0x2c6f('0x6c')][_0x2c6f('0x34')](_0x4bf6c3);this[_0x2c6f('0x2a')]=new Map(_0x37762a),this['_baseRootsAttributes']=new Map(_0x165835(_0x243d35));for(const [_0x56513d,_0x14cf44]of this[_0x2c6f('0x2a')])if('$graveyard'!==_0x56513d&&(this['_diffRoots']['set'](_0x56513d,q(_0x14cf44)),this[_0x2c6f('0xb2')]=new Map(_0x165835(_0x243d35)),_0x372e61)){const _0x2940fe=this[_0x2c6f('0xcb')];this['_idsRoots'][_0x2c6f('0xb3')](_0x56513d,this[_0x2c6f('0x14')](_0x14cf44)),this[_0x2c6f('0x7b')]['set'](_0x56513d,this['_makeIdsRoot'](_0x14cf44,_0x2940fe));}this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')],this['_diffRoots']['set'](_0x2c6f('0xe2'),q(this[_0x2c6f('0x2a')]['get']('$graveyard'))),_0x372e61&&this[_0x2c6f('0x95')][_0x2c6f('0xb3')]('$graveyard',this[_0x2c6f('0x14')](this['_baseRoots'][_0x2c6f('0x34')](_0x2c6f('0xe2'))));for(const [_0x3237bc,_0x413c94]of _0x3305b6){const _0x12a91e=this['_baseRoots'][_0x2c6f('0x34')](_0x413c94[_0x2c6f('0x21')]),_0x5b1a80=this[_0x2c6f('0x33')][_0x2c6f('0x34')](_0x413c94['rootName']),_0x1cbed3=new _0x20270a(this[_0x2c6f('0xf2')](_0x413c94['start'],_0x12a91e),this[_0x2c6f('0xf2')](_0x413c94[_0x2c6f('0x78')],_0x12a91e)),_0x9d23ca=this['_fixRange'](_0x1cbed3,_0x5b1a80);_0x12a91e['markers']['set'](_0x3237bc,_0x1cbed3),this['_markers'][_0x2c6f('0xb3')](_0x3237bc,_0x9d23ca);}this[_0x2c6f('0xce')](_0x4bf6c3,_0xaf9b13,_0x372e61);}[_0x2c6f('0xce')](_0x550d19,_0x126e33,_0x2a81f8){for(const _0x5b698a of this[_0x2c6f('0x96')][_0x2c6f('0xa4')](_0x550d19,_0x126e33))this[_0x2c6f('0xe5')](_0x5b698a,_0x2a81f8);for(const _0x36f3f0 of this[_0x2c6f('0x33')]['values']())_0x36f3f0['markers'][_0x2c6f('0x7f')]();for(const [_0x2aa728,_0x44d65f]of this[_0x2c6f('0x31')]){this[_0x2c6f('0x33')]['get'](_0x44d65f[_0x2c6f('0xfe')]['rootName'])[_0x2c6f('0xb')][_0x2c6f('0xb3')](_0x2aa728,_0x44d65f[_0x2c6f('0x6')]());}const _0x599a29=new Map(),_0x5a34a2=new Map();for(const [_0x1f9101,_0x5172b2]of this[_0x2c6f('0x33')])_0x599a29[_0x2c6f('0xb3')](_0x1f9101,q(_0x5172b2)),_0x5a34a2[_0x2c6f('0xb3')](_0x1f9101,this[_0x2c6f('0xb2')][_0x2c6f('0x34')](_0x1f9101));this[_0x2c6f('0xa6')](_0x126e33,_0x599a29,this['_markers'],_0x5a34a2);}['_getPreviousFrom'](_0x211aee){const _0x5aaf63=Array[_0x2c6f('0xee')](this['_savedMetaData'][_0x2c6f('0x87')]());_0x5aaf63[_0x2c6f('0xa3')]((_0x3005ac,_0x5e7955)=>_0x3005ac-_0x5e7955),_0x5aaf63[_0x2c6f('0xcf')]();for(const _0x584816 of _0x5aaf63)if(_0x584816<_0x211aee)return _0x584816;return Number[_0x2c6f('0x61')];}['_copyMarkers'](_0x4b431b,_0x5d0927){const _0x3014da=Array[_0x2c6f('0xee')](_0x5d0927[_0x2c6f('0xb')])[_0x2c6f('0x37')](([_0x3675f9,_0x15a087])=>[_0x3675f9,this[_0x2c6f('0x79')](_0x15a087,_0x4b431b)]);_0x4b431b[_0x2c6f('0xb')]=new Map(_0x3014da);}[_0x2c6f('0x9e')](_0x1b3d8b){for(const _0x4f1d89 of this['_markers'][_0x2c6f('0x69')]()){const _0x5ceb6a=_0x4f1d89[_0x2c6f('0xe')](_0x1b3d8b),_0xd6287d=_0x20270a[_0x2c6f('0xe8')](_0x5ceb6a);_0x4f1d89['start']=_0xd6287d[_0x2c6f('0x93')],_0x4f1d89['end']=_0xd6287d[_0x2c6f('0x78')];}}[_0x2c6f('0xe5')](_0x426d21,_0x419662){if(_0x2c6f('0x4f')==_0x426d21[_0x2c6f('0x6b')]||'detachRoot'==_0x426d21[_0x2c6f('0x6b')])return void this[_0x2c6f('0x35')](_0x426d21,_0x419662);if(_0x2c6f('0xfd')==_0x426d21[_0x2c6f('0x6b')]){const _0x3bc45c=_0x426d21[_0x2c6f('0xff')][_0x2c6f('0xfe')][_0x2c6f('0x21')];this[_0x2c6f('0x33')][_0x2c6f('0xe7')](_0x3bc45c)||(this['_diffRoots'][_0x2c6f('0xb3')](_0x3bc45c,G(_0x3bc45c,!0x0)),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x3bc45c,{}),_0x419662&&this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x3bc45c,G(_0x3bc45c,!0x0)));}else{if('addRootAttribute'==_0x426d21[_0x2c6f('0x6b')]||_0x2c6f('0xeb')==_0x426d21[_0x2c6f('0x6b')]||'changeRootAttribute'==_0x426d21[_0x2c6f('0x6b')])return void this['_handleRootAttributeOperation'](_0x426d21);}const _0x2573e0=this[_0x2c6f('0x102')](_0x426d21,this[_0x2c6f('0x33')]);if(_0x2c6f('0xb6')!==_0x426d21[_0x2c6f('0x6b')]&&(_0x2573e0[_0x2c6f('0x1c')](),this[_0x2c6f('0x9e')](_0x2573e0)),_0x419662)switch(_0x2573e0[_0x2c6f('0x6b')]){case _0x2c6f('0xfd'):this['_handleInsertOperation'](_0x426d21);break;case _0x2c6f('0x63'):case _0x2c6f('0xaa'):case'reinsert':this['_handleMoveOperation'](_0x426d21);break;case _0x2c6f('0x76'):this[_0x2c6f('0xd3')](_0x426d21);break;case _0x2c6f('0x4a'):this[_0x2c6f('0x50')](_0x426d21);break;case'marker':this[_0x2c6f('0x9b')](_0x426d21);}}[_0x2c6f('0x102')](_0x49ddf9,_0x35f676){const _0x25b19e=_0x49ddf9[_0x2c6f('0x6')]();return _0x25b19e['_authorId']=_0x49ddf9['_authorId'],this[_0x2c6f('0x2')](_0x25b19e,_0x35f676),_0x25b19e;}['_getBaseVids'](_0x258614){return _0x258614[_0x2c6f('0x37')](_0x58f04a=>{const _0x16cb2a=this['_getVidAttributeName'](_0x58f04a);return Number(_0x58f04a['item'][_0x2c6f('0xae')](_0x16cb2a));});}[_0x2c6f('0xbe')](_0x556e5b,_0x7c3565){if(_0x556e5b['is'](_0x2c6f('0x48'),'$text'))_0x7c3565[_0x2c6f('0x42')]({'item':_0x556e5b,'type':_0x2c6f('0x0')});else{_0x556e5b['is'](_0x2c6f('0x48'))&&_0x7c3565[_0x2c6f('0x42')]({'item':_0x556e5b,'type':_0x2c6f('0xfa')});for(const _0x778c8c of _0x556e5b[_0x2c6f('0x101')]())this[_0x2c6f('0xbe')](_0x778c8c,_0x7c3565);_0x556e5b['is'](_0x2c6f('0x48'))&&_0x7c3565['push']({'item':_0x556e5b,'type':'elementEnd'});}return _0x7c3565;}[_0x2c6f('0x9c')](){const _0x4f5a91=new Map(this[_0x2c6f('0x71')]),_0x2188ca=new Map(_0x4f5a91),_0xabdbb9=new Map(),_0x22e47d={'insertions':{},'deletions':{}},_0x302e79={'insertions':{},'deletions':{}},_0x897ec9=new Map(),_0x1d8eb0=new Set([...this[_0x2c6f('0x2a')][_0x2c6f('0x87')](),...this['_diffRoots']['keys']()]);_0x1d8eb0['delete']('$graveyard');for(const _0x5c4207 of _0x1d8eb0){const _0x51eda1=this[_0x2c6f('0x33')][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1),_0x260beb=this[_0x2c6f('0x2a')][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1);_0x51eda1[_0x2c6f('0x67')]()||_0x260beb[_0x2c6f('0x67')]()?(_0x22e47d[_0x2c6f('0x85')][_0x5c4207]=q(_0x51eda1),_0x22e47d[_0x2c6f('0x89')][_0x5c4207]=q(_0x260beb),this[_0x2c6f('0x45')](_0x22e47d[_0x2c6f('0x89')][_0x5c4207],_0x260beb),this['_copyMarkers'](_0x22e47d['insertions'][_0x5c4207],_0x51eda1),_0x302e79['insertions'][_0x5c4207]=this[_0x2c6f('0xbe')](this[_0x2c6f('0x95')][_0x2c6f('0x34')](_0x5c4207),[]),_0x302e79[_0x2c6f('0x89')][_0x5c4207]=this[_0x2c6f('0xbe')](this['_baseIdsRoots'][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1),[])):_0x1d8eb0['delete'](_0x5c4207);}for(const _0x466399 of _0x1d8eb0){const _0x5188fe=_0x302e79[_0x2c6f('0x85')][_0x466399];for(const _0x507941 of _0x5188fe){const _0x3b49ba=this[_0x2c6f('0x3b')](_0x507941),_0x3cd8fe=_0x507941[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x3b49ba);_0x2188ca['delete'](_0x3cd8fe),_0x3cd8fe>=this['_startingRevisionId']&&_0xabdbb9['set'](_0x3cd8fe,_0x4f5a91[_0x2c6f('0x34')](_0x3cd8fe));}}for(const _0x4d44e8 of _0x1d8eb0){const _0x2df4a1=_0x302e79[_0x2c6f('0x85')][_0x4d44e8],_0x14e8f5=this[_0x2c6f('0x7c')](_0x302e79[_0x2c6f('0x89')][_0x4d44e8]);let _0x566fa8=0x0;for(const _0x59d1f5 of _0x2df4a1){const _0x18fe94=this['_getVidAttributeName'](_0x59d1f5),_0x3d5ce3=_0x59d1f5['item'][_0x2c6f('0xae')](_0x18fe94);if(!_0xabdbb9[_0x2c6f('0xe7')](_0x3d5ce3)&&!_0x897ec9[_0x2c6f('0xe7')](_0x3d5ce3)){if(_0x2188ca['has'](_0x3d5ce3))_0x566fa8++;else{if(_0x3d5ce3!=_0x14e8f5[_0x566fa8]){const _0x1f52ab=_0x4f5a91[_0x2c6f('0x34')](_0x3d5ce3)||_0x4f5a91['get'](_0x14e8f5[_0x566fa8]);for(;_0x3d5ce3!=_0x14e8f5[_0x566fa8];)_0x2188ca[_0x2c6f('0xe7')](_0x14e8f5[_0x566fa8])||(_0x897ec9['set'](_0x14e8f5[_0x566fa8],_0x1f52ab),_0x4f5a91[_0x2c6f('0xb3')](_0x14e8f5[_0x566fa8],_0x1f52ab)),_0x566fa8++;}_0x566fa8++;}}}}for(const _0x4e9af7 of _0x1d8eb0){const _0x532564=_0x302e79[_0x2c6f('0x85')][_0x4e9af7];for(const _0x433225 of _0x532564){const _0x37e7a5=this[_0x2c6f('0x3b')](_0x433225),_0x14e2ec=_0x433225[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x37e7a5);if(_0x897ec9['has'](_0x14e2ec)){const _0x8b072=_0x897ec9[_0x2c6f('0x34')](_0x14e2ec);_0x2188ca[_0x2c6f('0xe7')](_0x14e2ec)||_0x2188ca[_0x2c6f('0xb3')](_0x14e2ec,{..._0x8b072}),_0xabdbb9[_0x2c6f('0xb3')](_0x14e2ec,{..._0x8b072});}}}for(const _0xc116bc of _0x2188ca[_0x2c6f('0x87')]())_0xc116bc>=this['_startingRevisionId']&&_0x2188ca[_0x2c6f('0x4')](_0xc116bc);const _0x4f4d07=new Map();for(const _0x172098 of _0x1d8eb0){let _0x3654cf=_0x302e79['insertions'][_0x172098];for(const _0x8863cf of _0x3654cf)if(_0x8863cf['item']['is'](_0x2c6f('0x48'),_0x2c6f('0x6e'))){const _0x1d7881=this[_0x2c6f('0x3b')](_0x8863cf),_0x22254c=_0x8863cf[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x1d7881);if(_0xabdbb9[_0x2c6f('0xe7')](_0x22254c)){const _0x3fc460=_0x8863cf[_0x2c6f('0x68')]['parent'][_0x2c6f('0xc6')][_0x2c6f('0xae')](_0x2c6f('0x5f')),_0x2a3599=_0x4f4d07[_0x2c6f('0x34')](_0x3fc460)||new Set();_0x2a3599[_0x2c6f('0xd2')](_0xabdbb9[_0x2c6f('0x34')](_0x22254c)[_0x2c6f('0xcd')]),_0x4f4d07[_0x2c6f('0xb3')](_0x3fc460,_0x2a3599);}}_0x3654cf=_0x302e79['deletions'][_0x172098];for(const _0x251c92 of _0x3654cf)if(_0x251c92[_0x2c6f('0x68')]['is'](_0x2c6f('0x48'),_0x2c6f('0x6e'))){const _0x207409=this['_getVidAttributeName'](_0x251c92),_0x144f6c=_0x251c92[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x207409);if(_0x2188ca[_0x2c6f('0xe7')](_0x144f6c)){const _0x2ac17f=_0x251c92[_0x2c6f('0x68')][_0x2c6f('0xc6')][_0x2c6f('0xc6')]['getAttribute']('vid_start'),_0x34c1b8=_0x4f4d07[_0x2c6f('0x34')](_0x2ac17f)||new Set();_0x34c1b8['add'](_0x2188ca[_0x2c6f('0x34')](_0x144f6c)[_0x2c6f('0xcd')]),_0x4f4d07[_0x2c6f('0xb3')](_0x2ac17f,_0x34c1b8);}}for(const _0x44941a of _0x4f4d07[_0x2c6f('0x87')]())(_0xabdbb9[_0x2c6f('0xe7')](_0x44941a)||_0x2188ca['has'](_0x44941a))&&_0x4f4d07[_0x2c6f('0x4')](_0x44941a);}for(const _0x20c2e6 of _0x1d8eb0){const _0x12d375=_0x302e79['insertions'][_0x20c2e6];let _0x5be0c6=null,_0x47c4f1=null;for(const _0x1db0ed of _0x12d375){const _0x3347c6=this[_0x2c6f('0x3b')](_0x1db0ed),_0x2e06b1=_0x1db0ed[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x3347c6),_0xa64ee8=_0x4f4d07[_0x2c6f('0x34')](_0x2e06b1);_0xa64ee8&&_0x2c6f('0xfa')==_0x1db0ed[_0x2c6f('0x6b')]&&(_0x5be0c6=Array[_0x2c6f('0xee')](_0xa64ee8)[0x0],_0x47c4f1=_0x1db0ed[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x2c6f('0xf7'))),_0x5be0c6&&(_0x2188ca['set'](_0x2e06b1,{'userId':_0x5be0c6}),_0xabdbb9[_0x2c6f('0xb3')](_0x2e06b1,{'userId':_0x5be0c6})),_0x2e06b1==_0x47c4f1&&(_0x5be0c6=null,_0x47c4f1=null);}}const _0x1fae6d={},_0x4cb5ec=new Set();for(const _0x5a80cb of _0x1d8eb0){const _0x498405=_0x22e47d[_0x2c6f('0x89')][_0x5a80cb],_0x4ed96e=_0x22e47d[_0x2c6f('0x85')][_0x5a80cb];for(const {userId:_0x24fa48}of this[_0x2c6f('0x1')][_0x2c6f('0x69')]())null!==_0x24fa48&&_0x4cb5ec[_0x2c6f('0xd2')](_0x24fa48);for(const {userId:_0x18213b}of this[_0x2c6f('0xb0')][_0x2c6f('0x69')]())null!==_0x18213b&&_0x4cb5ec['add'](_0x18213b);this[_0x2c6f('0xf8')](_0x4ed96e,_0x302e79[_0x2c6f('0x85')][_0x5a80cb],_0xabdbb9,_0x2c6f('0xde'),_0x4cb5ec),this[_0x2c6f('0xf8')](_0x498405,_0x302e79[_0x2c6f('0x89')][_0x5a80cb],_0x2188ca,_0x2c6f('0x7a'),_0x4cb5ec),_0x1fae6d[_0x5a80cb]={'insertions':this[_0x2c6f('0x39')](_0x4ed96e),'deletions':this[_0x2c6f('0x39')](_0x498405),'attachChange':this[_0x2c6f('0xb0')][_0x2c6f('0x34')](_0x5a80cb)||null,'attributesBefore':_0x165835(this['_baseRootsAttributes'][_0x2c6f('0x34')](_0x5a80cb))||{},'attributesAfter':_0x165835(this[_0x2c6f('0xb2')]['get'](_0x5a80cb))};}return{'diffData':_0x1fae6d,'authorsIds':Array['from'](_0x4cb5ec)};}['_processRootBeforeSave'](_0x3428a4){for(const [,_0x3a8701]of _0x3428a4[_0x2c6f('0xb')]){const _0x46ec8b=_0x3a8701[_0x2c6f('0x93')][_0x2c6f('0xed')]()[_0x2c6f('0x77')](_0x5ab56e=>_0x2c6f('0x6e')==_0x5ab56e[_0x2c6f('0x6d')]);for(const _0x37e8d5 of _0x46ec8b)0x1==_0x37e8d5[_0x2c6f('0xe4')]&&_0x37e8d5[_0x2c6f('0x106')](0x0)['is']('element',_0x2c6f('0xcc'))&&_0x37e8d5[_0x2c6f('0x106')](0x0)[_0x2c6f('0xb9')](_0x2c6f('0xfb'),!0x0);}}['_prepareViewToSave'](_0x35e761){this[_0x2c6f('0xc7')](_0x35e761);const _0x16f09f=this[_0x2c6f('0x97')][_0x2c6f('0x83')]['toView'](_0x35e761,{}),_0x318e3f=Array[_0x2c6f('0xee')](_0x16f09f[_0x2c6f('0x101')]())[_0x2c6f('0x37')](_0x204f35=>this['_getViewJson'](_0x204f35));return JSON[_0x2c6f('0x5b')](_0x318e3f);}[_0x2c6f('0x8')](_0x333da0){if(_0x333da0['is'](_0x2c6f('0x43')))return _0x333da0['data'];{const _0x1fc7a9=_0x333da0;return{'type':Object['keys'](B)[_0x2c6f('0x10')](_0x1ecc85=>_0x333da0 instanceof B[_0x1ecc85]),'name':_0x1fc7a9['name'],'attributes':Array[_0x2c6f('0xee')](_0x1fc7a9['getAttributes']()),'children':Array['from'](_0x1fc7a9[_0x2c6f('0x101')]())[_0x2c6f('0x37')](_0x3b3946=>this[_0x2c6f('0x8')](_0x3b3946))};}}['_markChanges'](_0x54d606,_0x426126,_0x4fafbe,_0x4c6fa4,_0x1abde9){let _0x5a7b2b=null,_0x18193a=null,_0x1ae484=0x0;const _0x46c855=this[_0x2c6f('0x97')][_0x2c6f('0x1a')];for(let _0x3bf376=0x0;_0x3bf376<_0x426126[_0x2c6f('0xda')];_0x3bf376++){const _0x40d22a=this[_0x2c6f('0x3b')](_0x426126[_0x3bf376]),_0x859e78=_0x426126[_0x3bf376][_0x2c6f('0x68')][_0x2c6f('0xae')](_0x40d22a),_0xfd0ac6=_0x4fafbe[_0x2c6f('0x34')](_0x859e78),_0x59d275=_0x3bf376==_0x426126['length']-0x1;(!_0x5a7b2b&&_0xfd0ac6&&(_0x5a7b2b=_0xfd0ac6,_0x18193a=_0x426126[_0x3bf376]),_0x5a7b2b&&(!_0xfd0ac6||_0xfd0ac6[_0x2c6f('0xcd')]!=_0x5a7b2b[_0x2c6f('0xcd')]))&&(_0x5dd1d4(_0xfd0ac6,L(_0x18193a,_0x54d606,_0x46c855),L(_0x426126[_0x3bf376],_0x54d606,_0x46c855)),_0x5a7b2b=_0xfd0ac6||null,_0x18193a=_0xfd0ac6?_0x426126[_0x3bf376]:null),_0x5a7b2b&&_0x59d275&&_0x5dd1d4(_0xfd0ac6,L(_0x18193a,_0x54d606,_0x46c855),W(_0x426126[_0x3bf376],_0x54d606,_0x46c855));}function _0x5dd1d4(_0xbb6cdb,_0x5b7393,_0xb61c5){const _0x3ffb30=_0x5a7b2b['userId'],_0x1db64c='revision:'+_0x4c6fa4+':'+_0x3ffb30+':'+_0x1ae484++,_0x296e1a=_0x46c855[_0x2c6f('0x8a')](_0x5b7393,_0xb61c5);_0x54d606[_0x2c6f('0xb')]['set'](_0x1db64c,_0x296e1a),null!==_0x3ffb30&&_0x1abde9['add'](_0x3ffb30);}}[_0x2c6f('0x3b')](_0x413960){switch(_0x413960[_0x2c6f('0x6b')]){case _0x2c6f('0xfa'):return _0x2c6f('0x5f');case _0x2c6f('0x81'):return _0x2c6f('0xf7');default:return'vid';}}[_0x2c6f('0x2')](_0x1dc0af,_0x348db3){_0x1dc0af[_0x2c6f('0x9a')]=null;for(const _0x292573 in _0x1dc0af){const _0x4c0439=_0x1dc0af[_0x292573];if(_0x4c0439 instanceof _0x4f2d96){const _0x19ba37=_0x348db3['get'](_0x4c0439[_0x2c6f('0xfe')]['rootName']);_0x1dc0af[_0x292573]=this['_fixPosition'](_0x4c0439,_0x19ba37);}if(_0x4c0439 instanceof _0x20270a){const _0x5c23ce=_0x348db3[_0x2c6f('0x34')](_0x4c0439[_0x2c6f('0xfe')][_0x2c6f('0x21')]);_0x1dc0af[_0x292573]=this[_0x2c6f('0x79')](_0x4c0439,_0x5c23ce);}_0x2c6f('0xfe')===_0x292573&&(_0x1dc0af[_0x2c6f('0xfe')]=_0x348db3[_0x2c6f('0x34')](_0x1dc0af[_0x2c6f('0xfe')][_0x2c6f('0x21')]));}}[_0x2c6f('0x79')](_0x330a7f,_0x46013e){return this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x8a')](this[_0x2c6f('0xf2')](_0x330a7f[_0x2c6f('0x93')],_0x46013e),this[_0x2c6f('0xf2')](_0x330a7f[_0x2c6f('0x78')],_0x46013e));}[_0x2c6f('0xf2')](_0x17cff9,_0x34a530){return this[_0x2c6f('0x97')]['model'][_0x2c6f('0x70')](_0x34a530,_0x17cff9[_0x2c6f('0x3d')],_0x17cff9[_0x2c6f('0x84')]);}['_handleInsertOperation'](_0x377205){const _0x588a0b=this['_idsRoots']['get'](_0x377205[_0x2c6f('0xff')][_0x2c6f('0xfe')]['rootName']),_0x13bee1=this[_0x2c6f('0xf2')](_0x377205[_0x2c6f('0xff')],_0x588a0b),_0x1f91f1=null===_0x377205['_authorId']?null:_0x377205[_0x2c6f('0x30')]||this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x5c34bd=_0x13bee1[_0x2c6f('0xc6')],_0x2858c7=this[_0x2c6f('0xcb')],_0x20a298=[];for(const _0x56e7be of _0x377205['nodes'])if(_0x56e7be['is'](_0x2c6f('0x48')))_0x20a298['push'](this[_0x2c6f('0x14')](_0x56e7be));else for(let _0x1eeb0c=0x0;_0x1eeb0c<_0x56e7be[_0x2c6f('0x103')];_0x1eeb0c++)_0x20a298[_0x2c6f('0x42')](new _0x2bfd72(_0x2c6f('0x43'),{'vid':this[_0x2c6f('0xcb')]++}));const _0x25e3c3=this['_revisionId'];for(let _0x2b1c38=_0x2858c7;_0x2b1c38<_0x25e3c3;_0x2b1c38++)this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x2b1c38,{'userId':_0x1f91f1});_0x5c34bd[_0x2c6f('0xfc')](_0x13bee1[_0x2c6f('0x24')],_0x20a298);}['_handleMoveOperation'](_0x163300){(_0x163300=this['_cloneOperation'](_0x163300,this[_0x2c6f('0x95')]))['_execute']();const _0x4ac3a7=null===_0x163300['_authorId']?null:_0x163300[_0x2c6f('0x30')]||this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x263afd=_0x163300[_0x2c6f('0x91')](),_0xd42d9c=_0x263afd[_0x2c6f('0xc6')],_0x423240=_0x263afd['offset'];!function _0x5c555f(_0x48358f,_0x5789a4,_0x4e0fb0,_0x37ac0e){for(let _0x36422d=_0x4e0fb0;_0x36422d<_0x37ac0e;_0x36422d++){const _0x531570=_0x5789a4[_0x2c6f('0x106')](_0x36422d);_0x531570['is']('element',_0x2c6f('0x43'))?_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0xec')),{'userId':_0x4ac3a7}):(_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0x5f')),{'userId':_0x4ac3a7}),_0x5c555f(_0x48358f,_0x531570,0x0,_0x531570[_0x2c6f('0xe4')]),_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0xf7')),{'userId':_0x4ac3a7}));}}(this[_0x2c6f('0x71')],_0xd42d9c,_0x423240,_0x423240+_0x163300[_0x2c6f('0x72')]);}[_0x2c6f('0xd3')](_0x4b8a5a){const _0x177353=null===(_0x4b8a5a=this[_0x2c6f('0x102')](_0x4b8a5a,this['_idsRoots']))[_0x2c6f('0x30')]?null:_0x4b8a5a[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')]('Users')['me']['id'],_0x88893d=_0x4b8a5a[_0x2c6f('0x47')][_0x2c6f('0xc6')],_0x3c0711=_0x4b8a5a['sourcePosition'][_0x2c6f('0xc6')],_0x455ee9=_0x88893d[_0x2c6f('0xae')]('vid_end'),_0x943870=_0x3c0711[_0x2c6f('0xae')]('vid_start');_0x88893d[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x3c0711['getAttribute'](_0x2c6f('0xf7'))),_0x3c0711['_setAttribute'](_0x2c6f('0xf7'),_0x455ee9),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x943870,{'userId':_0x177353}),this['_touched']['set'](_0x455ee9,{'userId':_0x177353}),_0x4b8a5a[_0x2c6f('0x1c')]();}[_0x2c6f('0x50')](_0x1f3645){const _0x11277b=null===(_0x1f3645=this[_0x2c6f('0x102')](_0x1f3645,this[_0x2c6f('0x95')]))['_authorId']?null:_0x1f3645[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get'](_0x2c6f('0x17'))['me']['id'],_0x547602=_0x1f3645[_0x2c6f('0x8c')],_0x4e3f43=_0x1f3645[_0x2c6f('0xe1')][_0x2c6f('0xc6')];_0x1f3645['_execute']();const _0x532833=_0x4e3f43['getAttribute'](_0x2c6f('0xf7')),_0x247f5d=_0x1f3645[_0x2c6f('0x54')][_0x2c6f('0xad')];if(_0x547602){const _0x1ffd4b=_0x247f5d[_0x2c6f('0xae')](_0x2c6f('0xf7')),_0x10de10=_0x4e3f43[_0x2c6f('0xae')](_0x2c6f('0xf7'));_0x4e3f43[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x1ffd4b),_0x247f5d[_0x2c6f('0xb9')]('vid_end',_0x10de10),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x4e3f43['getAttribute'](_0x2c6f('0xf7')),{'userId':_0x11277b}),this['_touched'][_0x2c6f('0xb3')](_0x247f5d[_0x2c6f('0xae')](_0x2c6f('0x5f')),{'userId':_0x11277b});}else{const _0x4719a1=this[_0x2c6f('0xcb')]++,_0x325cc3=this[_0x2c6f('0xcb')]++;_0x4e3f43[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x4719a1),_0x247f5d[_0x2c6f('0xb9')](_0x2c6f('0x5f'),_0x325cc3),_0x247f5d[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x532833),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x4719a1,{'userId':_0x11277b}),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x325cc3,{'userId':_0x11277b});}}[_0x2c6f('0x9b')](_0x2ab684){if(!_0x2ab684[_0x2c6f('0x44')])return;const _0x2e6a00=(_0x2ab684=this[_0x2c6f('0x102')](_0x2ab684,this[_0x2c6f('0x33')]))['oldRange']?_0x2ab684[_0x2c6f('0x22')][_0x2c6f('0xfe')]:null,_0xb7e13=_0x2ab684['newRange']?_0x2ab684[_0x2c6f('0x57')][_0x2c6f('0xfe')]:null;_0x2e6a00&&this[_0x2c6f('0x31')][_0x2c6f('0x4')](_0x2ab684['name']),_0xb7e13&&this[_0x2c6f('0x31')][_0x2c6f('0xb3')](_0x2ab684[_0x2c6f('0x6d')],_0x2ab684[_0x2c6f('0x57')][_0x2c6f('0x6')]());const _0x575c3e=null===_0x2ab684['_authorId']?null:_0x2ab684[_0x2c6f('0x30')]||this['editor'][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x4e023e=_0x2ab684[_0x2c6f('0x6d')];if(!this[_0x2c6f('0x1')]['has'](_0x4e023e))return void this[_0x2c6f('0x1')]['set'](_0x4e023e,{'range':_0x2ab684['oldRange'],'userId':_0x575c3e});const _0x5128e5=this[_0x2c6f('0x1')][_0x2c6f('0x34')](_0x4e023e),_0x26a029=_0x5128e5[_0x2c6f('0x46')],_0x27a492=_0x2ab684[_0x2c6f('0x57')];null==_0x26a029&&null==_0x27a492||_0x26a029&&_0x27a492&&_0x26a029[_0x2c6f('0x2b')](_0x27a492)?this[_0x2c6f('0x1')][_0x2c6f('0x4')](_0x2ab684[_0x2c6f('0x6d')]):_0x5128e5['userId']=_0x575c3e;}[_0x2c6f('0x35')](_0x5f50f0,_0x3eafe5){this['_diffRoots'][_0x2c6f('0xe7')](_0x5f50f0['rootName'])?this[_0x2c6f('0x33')]['get'](_0x5f50f0[_0x2c6f('0x21')])[_0x2c6f('0x2d')]=_0x5f50f0[_0x2c6f('0xba')]:(this['_diffRoots'][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],G(_0x5f50f0[_0x2c6f('0x21')],!0x0)),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],{}),_0x3eafe5&&this['_idsRoots']['set'](_0x5f50f0[_0x2c6f('0x21')],G(_0x5f50f0['rootName'],!0x0)));const _0x393af9=null===_0x5f50f0[_0x2c6f('0x30')]?null:_0x5f50f0[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get']('Users')['me']['id'],_0x1db418=this[_0x2c6f('0xb0')][_0x2c6f('0x34')](_0x5f50f0['rootName']);_0x1db418&&_0x1db418[_0x2c6f('0xcd')]===_0x393af9?this['_touchedRoots'][_0x2c6f('0x4')](_0x5f50f0[_0x2c6f('0x21')]):this[_0x2c6f('0xb0')][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],{'userId':_0x393af9,'isAttached':_0x5f50f0[_0x2c6f('0xba')]});}[_0x2c6f('0x66')](_0x372a9e){const _0x2d8a60=this[_0x2c6f('0xb2')]['get'](_0x372a9e[_0x2c6f('0xfe')][_0x2c6f('0x21')]);null===_0x372a9e[_0x2c6f('0x58')]?delete _0x2d8a60[_0x372a9e[_0x2c6f('0x6a')]]:_0x2d8a60[_0x372a9e['key']]=_0x372a9e[_0x2c6f('0x58')];}}function q(_0x17fb24){const _0x50aa84=G(_0x17fb24['rootName'],_0x17fb24[_0x2c6f('0x67')]());for(const _0x509fdb of _0x17fb24[_0x2c6f('0x101')]()){const _0xfe55e6=_0x509fdb[_0x2c6f('0x7d')](!0x0);_0x50aa84[_0x2c6f('0x1d')](_0xfe55e6);}return _0x50aa84;}function G(_0x2747db,_0xb803b2=!0x0){const _0x1fc4af=new _0x381441();return _0x1fc4af[_0x2c6f('0x21')]=_0x2747db,_0x1fc4af[_0x2c6f('0x2d')]=_0xb803b2,_0x1fc4af[_0x2c6f('0x67')]=()=>_0x1fc4af[_0x2c6f('0x2d')],_0x1fc4af;}function L(_0x1b865f,_0x59306e,_0x3d67c2){const _0x23279d=_0x2c6f('0x81')==_0x1b865f[_0x2c6f('0x6b')]?_0x3d67c2['createPositionAt'](_0x1b865f[_0x2c6f('0x68')],_0x2c6f('0x78')):_0x3d67c2[_0x2c6f('0xf9')](_0x1b865f['item']);return _0x3d67c2[_0x2c6f('0x70')](_0x59306e,_0x23279d[_0x2c6f('0x3d')],_0x23279d[_0x2c6f('0x84')]);}function W(_0x268276,_0x5c510d,_0x3736d3){const _0x34c8c4=_0x2c6f('0xfa')==_0x268276[_0x2c6f('0x6b')]?_0x3736d3['createPositionAt'](_0x268276[_0x2c6f('0x68')],0x0):_0x3736d3[_0x2c6f('0xf1')](_0x268276[_0x2c6f('0x68')]);return _0x3736d3['createPositionFromPath'](_0x5c510d,_0x34c8c4[_0x2c6f('0x3d')],_0x34c8c4[_0x2c6f('0x84')]);}
|
|
23
|
+
const _0x5e6d=['_diffRootsAttributes','_removePendingAction','define','removeRootAttribute','document','_operations','keepParagraph','currentRevision','_authorId','RealTimeCollaborationClient','_revisionDataBuilder','_source','initialData','buildRevisionData','text','_continueCurrentRevision','getRevision','_reset','splitPosition','getRootNames','getChild','get','marked','rootsAttributes','_startingVersion','filter','changeRootAttribute','_saveMetaData','useFillerType','_loadRevisionData','_loadedStateData','baseVersion','_cloneOperation','slice','offsetSize','_createInitialRevision','childCount','getOperations','_makeRevision','RevisionsRepository','_handleInsertOperation','_markChanges','resolve','parse','delete','createdAt','updateRevisions','getRoot','_pendingAction','_handleMoveOperation','_handleOperation','type','update','deletions','data','getChildren','_getState','createRevision','_createCurrentRevision','nodeAfter','vid_start','_findInsertionIndex','sendBufferedUpdates','conversion','forEach','_prepareViewToSave','clear','_idsRoots','getAttribute','createPositionAt','path','_touchedMarkers','createPositionBefore','getAttributes','paragraph','_initialRevisionId','sourcePosition','isAttached','getNodeByPath','fromVersion','diffData','_handleRootAttributeOperation','adapter','RevisionTracker','move','revisionHistory.resumeUnsavedRevision','isReady','attributesBefore','createPositionAfter','end','getTransformedByOperation','attributes','has','$text','_handleMarkerOperation','elementStart','length','_copyMarkers','initial','_makeIdsRoot','editor','userId','keys','setSource','reInit','add','creatorId','fromEntries','getLatestVersion','push','reverse','isAdd','_getVidAttributeName','_startingRevisionId','_markers','_getFromVersion','some','find','_insertChild','from','_isInit','graveyardPosition','afterInit','values','isEqual','_baseRootsAttributes','nodes','roots','howMany','tableCell','_diffRoots','_handleRootOperation','addRevision','addRevisionData','root','Users','$graveyard','getTime','createPositionFromPath','getRevisionDocumentData','finally','_removeRevisionMarkers','_lastFrom','startsWith','getRevisions','view','range','_bufferedUpdates','toView','data-revision-','documentFragment','_setAttribute','_isAttached','dataToMarker','source','start','getOperation','_makeModelFromViewString','markers','trim','version','bind','processor','requires','map','vid_end','oldRange','_loadState','config','_handleSplitOperation','then','getData','insertions','attachChange','includes','plugins','for','toVersion','_transformMarkers','rootName','clone','_baseIdsRoots','_fixOperation','getAncestors','_update','repository','_baseRoots','creator','remove','revision-end','_isPendingUpdate','_touched','getIndex','previousPosition','_addPendingAction','_fixRange','getUser','_removeMetaData','max','_savedMetaData','loadState','stickiness','attributesAfter','_setConversion','ready','_getBaseVids','authorsIds','upcast','_applyOperations','insert','sort','parent','children','elementEnd','saveRevision','addRootAttribute','_generateTape','revision','getWalker','_revisionId','affectsData','name','getRange','_handleMergeOperation','setRevisionData','marker','editing','revision:','item','split','_bufferUpdate','collaboration.channelId','vid','history','_fixPosition','offset','getCurrentRevisionId','_lastTo','getRevisionRootsAttributes','size','newRange','shift','key','model','_getViewJson','init','PendingActions','element','position','_getPreviousFrom','_calculateMetaData','string','pluginName','NEGATIVE_INFINITY','set','_touchedRoots','authors','_processRootBeforeSave','_execute'];(function(_0x3f92ce,_0x5e6d26){const _0x25d7d6=function(_0x3ea70e){while(--_0x3ea70e){_0x3f92ce['push'](_0x3f92ce['shift']());}};_0x25d7d6(++_0x5e6d26);}(_0x5e6d,0x16f));const _0x25d7=function(_0x3f92ce,_0x5e6d26){_0x3f92ce=_0x3f92ce-0x0;let _0x25d7d6=_0x5e6d[_0x3f92ce];return _0x25d7d6;};import{Users as _0x297479}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x490273,PendingActions as _0x15e7a3}from'ckeditor5/src/core';import{logWarning as _0x2b8acb,uid as _0x1089b5}from'ckeditor5/src/utils';import{Position as _0x483a8c,Range as _0x45fcdc,Element as _0x49875f,DocumentFragment as _0x4585e6,ViewText as _0x418b28,ViewElement as _0x2efae7,ViewContainerElement as _0x1dfd94,ViewAttributeElement as _0xe58008,ViewEmptyElement as _0x8114d3,ViewRawElement as _0x12e0e9,ViewUIElement as _0x3291b7,ViewDocumentFragment as _0x51ffc9}from'ckeditor5/src/engine';import _0xff269e from'./revisionsrepository';import{getTranslation as _0x53d619}from'./utils/common-translations';import{cloneDeep as _0x425cc7,isEqual as _0xd48244}from'lodash-es';const B={'c':_0x1dfd94,'a':_0xe58008,'e':_0x8114d3,'r':_0x12e0e9,'u':_0x3291b7};export default class l extends _0x490273{static get[_0x25d7('0x90')](){return _0x25d7('0xea');}static get[_0x25d7('0x37')](){return[_0x297479,_0xff269e,_0x15e7a3];}constructor(_0x5830a4){super(_0x5830a4),this['adapter']=null,this[_0x25d7('0x9e')]=null,this[_0x25d7('0xa1')]=new H(this['editor']),this[_0x25d7('0xe2')]=this[_0x25d7('0xfb')][_0x25d7('0x3c')][_0x25d7('0xac')](_0x25d7('0x7b'))||_0x25d7('0xf9'),this[_0x25d7('0x27')]=new Map(),this[_0x25d7('0xb5')]=null;const _0x2ea898=_0x1089b5();this['_source']={'history':this['editor'][_0x25d7('0x87')]['document'][_0x25d7('0x7d')],'getLatestVersion':()=>Promise['resolve'](this[_0x25d7('0xfb')]['model'][_0x25d7('0x9b')][_0x25d7('0x34')]),'getCurrentRevisionId':()=>_0x2ea898},this[_0x25d7('0x92')](_0x25d7('0xed'),!0x1),this['set']('isEnabled',!0x0),this[_0x25d7('0x92')]('_isPendingUpdate',!0x1),this[_0x25d7('0xfb')]['config'][_0x25d7('0x99')](_0x25d7('0xec'),!0x0),this[_0x25d7('0xfb')][_0x25d7('0xd6')][_0x25d7('0x44')](_0x25d7('0x63'))[_0x25d7('0x2d')]({'view':_0x25d7('0x6d')});}[_0x25d7('0x89')](){this[_0x25d7('0x4d')]=this[_0x25d7('0xfb')][_0x25d7('0x43')]['get'](_0x25d7('0xbe')),this[_0x25d7('0x5f')](),this[_0x25d7('0xfb')][_0x25d7('0xcd')]['on'](_0x25d7('0x60'),()=>{const _0x393db0=this[_0x25d7('0x4d')]['getRevision'](0x0),_0x52573d=_0x393db0&&null===_0x393db0['creator']?_0x393db0:null;if(this[_0x25d7('0xa6')]=!!_0x52573d&&this[_0x25d7('0xfb')][_0x25d7('0x3c')][_0x25d7('0xac')](_0x25d7('0xec')),this[_0x25d7('0xfb')][_0x25d7('0x43')]['has'](_0x25d7('0xa0'))){const _0xa6afce=this[_0x25d7('0xa2')][_0x25d7('0x80')](),_0x5e9951=this[_0x25d7('0x4d')][_0x25d7('0xa7')](_0xa6afce);if(_0x5e9951)this[_0x25d7('0xaf')]=_0x5e9951['fromVersion'],this[_0x25d7('0xa6')]=!0x1;else{const _0x4c41dd=this[_0x25d7('0xa2')]['history'][_0x25d7('0x9c')]['find'](_0xe71ae6=>!_0xe71ae6[_0x25d7('0xc')]),_0x223a36=_0x4c41dd?_0x4c41dd[_0x25d7('0xb6')]:this[_0x25d7('0xa2')][_0x25d7('0x7d')][_0x25d7('0x34')];_0x393db0?(_0x393db0[_0x25d7('0x45')]<_0x223a36&&_0x393db0['_update']({'toVersion':_0x223a36}),this[_0x25d7('0xa6')]?(this[_0x25d7('0xa2')][_0x25d7('0x80')]=()=>_0x52573d['id'],this[_0x25d7('0xaf')]=_0x52573d[_0x25d7('0xe6')]):(this[_0x25d7('0xaf')]=_0x393db0[_0x25d7('0x45')],this[_0x25d7('0xa6')]=!0x1)):(this[_0x25d7('0xaf')]=_0x223a36,this[_0x25d7('0xa6')]=!0x1);}}else _0x52573d&&(this[_0x25d7('0xfb')][_0x25d7('0x87')]['document'][_0x25d7('0x7d')][_0x25d7('0x34')]=Math[_0x25d7('0x5a')](_0x52573d[_0x25d7('0x45')],this[_0x25d7('0xfb')]['model']['document'][_0x25d7('0x7d')]['version']),_0x52573d[_0x25d7('0xe6')]===_0x52573d['toVersion']?(0x0!==_0x52573d[_0x25d7('0xe6')]&&(this[_0x25d7('0xa2')][_0x25d7('0x80')]=()=>_0x52573d['id']),this[_0x25d7('0xa6')]=!0x1):this[_0x25d7('0xa6')]&&(this[_0x25d7('0xa2')][_0x25d7('0x80')]=()=>_0x52573d['id'],this[_0x25d7('0xaf')]=_0x52573d['fromVersion'])),this[_0x25d7('0xa6')]||(this['_startingVersion']=this[_0x25d7('0xfb')][_0x25d7('0x87')][_0x25d7('0x9b')][_0x25d7('0x34')]);this[_0x25d7('0xa1')][_0x25d7('0x89')](this['_source']['history']),this[_0x25d7('0xba')](this['_startingVersion']),this[_0x25d7('0xd1')](this[_0x25d7('0xaf')]),this[_0x25d7('0xe9')]&&this[_0x25d7('0xd5')]();}),this[_0x25d7('0x35')](_0x25d7('0xed'))['to'](this,_0x25d7('0x52'),_0x15386e=>!_0x15386e);}async[_0x25d7('0xe')](){if(this[_0x25d7('0x4d')][_0x25d7('0xf7')]>0x0){const _0x1966fa=this['repository'][_0x25d7('0xa7')](0x0),_0x573fa5=await this['getRevisionDocumentData'](_0x1966fa),_0x2bdaa1=await this[_0x25d7('0x82')](_0x1966fa);this['_replaceEditorDataWithRevisionData'](_0x573fa5,_0x2bdaa1);}}[_0x25d7('0xfe')](_0x1f4144){this[_0x25d7('0xa2')]=_0x1f4144;}async[_0x25d7('0xcb')](){const _0x2d3b8a=await this[_0x25d7('0xa2')][_0x25d7('0x0')]();if(_0x2d3b8a>this[_0x25d7('0x9e')]['toVersion']){await this[_0x25d7('0x3b')]();const _0x2b5357=this[_0x25d7('0xa4')]({'revision':this[_0x25d7('0x9e')],'to':_0x2d3b8a});_0x2b5357[_0x25d7('0x94')]=_0x2b5357[_0x25d7('0x62')][_0x25d7('0x38')](_0x3196fc=>this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')](_0x25d7('0x1b'))[_0x25d7('0x58')](_0x3196fc)),this['currentRevision']['_update'](_0x2b5357);}}async[_0x25d7('0x3b')](){this['_continueCurrentRevision']&&!this[_0x25d7('0xb5')]&&(await this[_0x25d7('0xb4')](this[_0x25d7('0x9e')]),this[_0x25d7('0xa1')]['loadState'](this['currentRevision']),this[_0x25d7('0xb5')]={'fromVersion':this[_0x25d7('0x9e')]['fromVersion'],'authors':this[_0x25d7('0x9e')]['authors'][_0x25d7('0xb8')]()});}async[_0x25d7('0x6a')](_0x83eec9={},_0x5d6e03=null){const _0x1b2f57=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5d6e03>this[_0x25d7('0x9e')]['toVersion']&&(_0x5d6e03=null),null===_0x5d6e03&&(_0x5d6e03=await this[_0x25d7('0xa2')][_0x25d7('0x0')]());const _0x1f402f=this[_0x25d7('0x7')](_0x5d6e03),_0x531f91=this[_0x25d7('0xa4')]({'from':_0x1f402f,'to':_0x5d6e03});if(this[_0x25d7('0x9e')]['toVersion']<_0x5d6e03){const _0x3224b0=this[_0x25d7('0xa4')]({'revision':this[_0x25d7('0x9e')],'from':_0x5d6e03,'to':_0x5d6e03});_0x3224b0[_0x25d7('0x94')]=[],_0x3224b0[_0x25d7('0x62')]=[],_0x3224b0['id']=this['currentRevision']['id'],this[_0x25d7('0x9e')]['_update'](_0x3224b0,!0x0),delete _0x3224b0[_0x25d7('0x94')],_0x1b2f57[_0x25d7('0x1')](_0x3224b0);}_0x83eec9[_0x25d7('0x101')]=this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')]('Users')['me']['id'],_0x83eec9['name']=_0x83eec9[_0x25d7('0x71')]||null,_0x83eec9['id']=_0x83eec9['id']||_0x1089b5(),_0x83eec9={..._0x83eec9,..._0x531f91};const _0x54e8b3=this[_0x25d7('0x19')](_0x83eec9);_0x1b2f57[_0x25d7('0x1')](_0x83eec9);const _0x5558c7=this[_0x25d7('0x4d')][_0x25d7('0x54')](_0x54e8b3);if(0x0!==_0x5558c7){const _0x2a061e=this['repository']['getRevision'](_0x5558c7-0x1);if(_0x2a061e['fromVersion']!==_0x5d6e03){const _0x15cb95=this[_0x25d7('0xa1')][_0x25d7('0x3f')](_0x5d6e03,_0x2a061e[_0x25d7('0x45')]),_0x4030df={'id':_0x2a061e['id'],'diffData':_0x15cb95[_0x25d7('0xe7')],'authorsIds':_0x15cb95[_0x25d7('0x62')],'authors':_0x15cb95[_0x25d7('0x62')][_0x25d7('0x38')](_0x32485b=>this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')](_0x25d7('0x1b'))[_0x25d7('0x58')](_0x32485b)),'fromVersion':_0x5d6e03};_0x2a061e===this[_0x25d7('0x9e')]&&(_0x4030df['createdAt']=new Date(_0x83eec9[_0x25d7('0xc4')][_0x25d7('0x1d')]()+0xa)),_0x2a061e[_0x25d7('0x4c')](_0x4030df,!0x0),delete _0x4030df[_0x25d7('0x94')],_0x1b2f57['push'](_0x4030df);}}if(this['adapter']){for(const _0x5eba2c of _0x1b2f57)this[_0x25d7('0x7a')](_0x5eba2c['id'],_0x5eba2c,!0x0);this['sendBufferedUpdates']();}return _0x54e8b3;}['addRevisionData'](_0x5d718d){const _0x362b28=this[_0x25d7('0x4d')][_0x25d7('0xd0')](_0x5d718d);return this[_0x25d7('0xe9')]&&_0x362b28['on'](_0x25d7('0x4c'),(_0xebe23f,_0x5958a8,_0x696ace)=>{_0x696ace||(this[_0x25d7('0x7a')](_0x5958a8['id'],_0x5958a8,!0x0),this['sendBufferedUpdates']());}),this[_0x25d7('0x4d')][_0x25d7('0x18')](_0x362b28,this[_0x25d7('0xd4')](_0x362b28)),_0x362b28;}async[_0x25d7('0x1f')](_0x5a69ff){await this['_loadRevisionData'](_0x5a69ff);const _0x495e0c={};for(const _0x191220 in _0x5a69ff[_0x25d7('0xe7')]){if(_0x5a69ff[_0x25d7('0xe7')][_0x191220][_0x25d7('0x41')]&&!_0x5a69ff['diffData'][_0x191220][_0x25d7('0x41')][_0x25d7('0xe4')])continue;const _0x380e85=this[_0x25d7('0x21')](JSON[_0x25d7('0xc2')](_0x5a69ff[_0x25d7('0xe7')][_0x191220]['insertions'])),_0x5215c5=this[_0x25d7('0xfb')][_0x25d7('0x76')][_0x25d7('0x25')]['document'],_0x2426a3=new _0x51ffc9(_0x5215c5,_0x380e85['map'](_0x228242=>J(_0x228242,this[_0x25d7('0xfb')])));this[_0x25d7('0xfb')]['data'][_0x25d7('0x36')]['useFillerType'](_0x25d7('0xad')),_0x495e0c[_0x191220]=this[_0x25d7('0xfb')][_0x25d7('0xcd')][_0x25d7('0x36')]['toData'](_0x2426a3),this[_0x25d7('0xfb')][_0x25d7('0xcd')]['processor'][_0x25d7('0xb3')]('default');}return _0x495e0c;}async[_0x25d7('0x82')](_0x16146c){await this[_0x25d7('0xb4')](_0x16146c);const _0x2bb763={};for(const _0x3ed915 in _0x16146c[_0x25d7('0xe7')])_0x16146c['diffData'][_0x3ed915][_0x25d7('0x41')]&&!_0x16146c[_0x25d7('0xe7')][_0x3ed915][_0x25d7('0x41')]['isAttached']||(_0x2bb763[_0x3ed915]=_0x16146c[_0x25d7('0xe7')][_0x3ed915][_0x25d7('0x5e')]||{});return _0x2bb763;}[_0x25d7('0xd5')](){if(0x0===this[_0x25d7('0x27')][_0x25d7('0x83')])return;if(this['_isPendingUpdate'])return;let _0x138206=Array['from'](this[_0x25d7('0x27')][_0x25d7('0xf')]());this['_bufferedUpdates'][_0x25d7('0xd9')]();for(let _0x1ec195=0x0;_0x1ec195<_0x138206[_0x25d7('0xf7')];_0x1ec195++){const _0x2f91a8=_0x138206[_0x1ec195];let _0x1ee2dc=!0x1;for(const _0x293822 of Object[_0x25d7('0xfd')](_0x2f91a8))void 0x0===_0x2f91a8[_0x293822]?delete _0x2f91a8[_0x293822]:'id'!==_0x293822&&(_0x1ee2dc=!0x0);_0x1ee2dc||(_0x138206[_0x1ec195]=null);}if(_0x138206=_0x138206[_0x25d7('0xb0')](_0x64c920=>null!==_0x64c920),!_0x138206['length'])return;for(let _0x1a588b=0x0;_0x1a588b<_0x138206[_0x25d7('0xf7')];_0x1a588b++){const _0xc47f22=_0x138206[_0x1a588b];void 0x0!==_0xc47f22['fromVersion']&&void 0x0===_0xc47f22['toVersion']&&(_0xc47f22['toVersion']=this[_0x25d7('0x4d')]['getRevision'](_0xc47f22['id'])['toVersion']),void 0x0!==_0xc47f22[_0x25d7('0x45')]&&void 0x0===_0xc47f22[_0x25d7('0xe6')]&&(_0xc47f22[_0x25d7('0xe6')]=this[_0x25d7('0x4d')][_0x25d7('0xa7')](_0xc47f22['id'])[_0x25d7('0xe6')]);}const _0x3f8b83=this[_0x25d7('0xfb')]['config'][_0x25d7('0xac')](_0x25d7('0x7b'));this[_0x25d7('0x52')]=!0x0,this[_0x25d7('0x56')](),this['adapter'][_0x25d7('0xc5')](_0x138206,_0x3f8b83)[_0x25d7('0x20')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1c38f0=>{if(_0x1c38f0)for(const _0x5abd2b of _0x1c38f0)this[_0x25d7('0x74')]({'id':_0x5abd2b['id'],'createdAt':_0x5abd2b[_0x25d7('0xc4')]});this[_0x25d7('0x98')](),this[_0x25d7('0xd5')]();});}['_replaceEditorDataWithRevisionData'](_0x3fc3be,_0x156e2b){let _0x53eee9=this[_0x25d7('0xfb')][_0x25d7('0x3c')][_0x25d7('0xac')](_0x25d7('0xa3')),_0x34f7aa=this[_0x25d7('0xfb')][_0x25d7('0x3c')]['get'](_0x25d7('0xae'));if(void 0x0===_0x53eee9){_0x53eee9={};for(const _0x158e7e of this['editor'][_0x25d7('0x87')][_0x25d7('0x9b')]['getRootNames']())_0x53eee9[_0x158e7e]='';}if(_0x25d7('0x8f')==typeof _0x53eee9&&(_0x53eee9={'main':_0x53eee9}),void 0x0===_0x34f7aa){_0x34f7aa={};for(const _0x5072ba of this['editor']['model']['document'][_0x25d7('0xaa')]())_0x34f7aa[_0x5072ba]={};}let _0x311a7f=!0x1;const _0x19abd1=Object[_0x25d7('0xfd')](_0x53eee9),_0x2049bf=Object[_0x25d7('0xfd')](_0x3fc3be);for(const _0x3526ac of _0x19abd1){if(_0x53eee9[_0x3526ac]!==_0x3fc3be[_0x3526ac]&&''!==_0x53eee9[_0x3526ac][_0x25d7('0x33')]()){_0x311a7f=!0x0;break;}if(!_0xd48244(_0x34f7aa[_0x3526ac],_0x156e2b[_0x3526ac])&&Object[_0x25d7('0xfd')](_0x34f7aa[_0x3526ac])[_0x25d7('0xf7')]>0x0){_0x311a7f=!0x0;break;}}_0x311a7f||(_0x311a7f=_0x2049bf[_0x25d7('0x8')](_0x33ed80=>!this[_0x25d7('0xfb')][_0x25d7('0x87')][_0x25d7('0x9b')][_0x25d7('0xc6')](_0x33ed80))),_0x311a7f&&_0x2b8acb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x53eee9,'editorRootsAttributes':_0x34f7aa,'revisionData':_0x3fc3be,'revisionRootsAttributes':_0x156e2b}),this[_0x25d7('0xfb')]['config']['set']('initialData',_0x3fc3be),this[_0x25d7('0xfb')][_0x25d7('0x3c')][_0x25d7('0x92')](_0x25d7('0xae'),_0x156e2b);}[_0x25d7('0x56')](){if(!this['_pendingAction']){const _0x529822=this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')](_0x25d7('0x8a'));this[_0x25d7('0xc7')]=_0x529822[_0x25d7('0x100')](_0x53d619(this[_0x25d7('0xfb')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x25d7('0xc7')]&&(this[_0x25d7('0xfb')][_0x25d7('0x43')]['get'](_0x25d7('0x8a'))[_0x25d7('0x50')](this['_pendingAction']),this[_0x25d7('0xc7')]=null);}['_findInsertionIndex'](_0x2e7a4c){const _0x1f74c6=this['repository'][_0x25d7('0x24')]();_0x1f74c6[_0x25d7('0x2')]();let _0x37352e=0x0;for(;_0x37352e<_0x1f74c6['length'];){const _0x500e4e=_0x1f74c6[_0x37352e];if(_0x500e4e===this[_0x25d7('0x9e')]){_0x37352e++;continue;}if(_0x500e4e['id']===this['_initialRevisionId'])break;const _0x432238=_0x2e7a4c['toVersion']-_0x500e4e['toVersion']||_0x2e7a4c[_0x25d7('0xe6')]-_0x500e4e[_0x25d7('0xe6')];if(_0x432238>0x0)break;if(_0x432238<0x0)_0x37352e++;else{if(!_0x2e7a4c[_0x25d7('0x4f')]&&_0x500e4e['creator'])break;if(_0x500e4e[_0x25d7('0x4f')]||!_0x2e7a4c['creator']){if(_0x2e7a4c[_0x25d7('0xc4')]>_0x500e4e['createdAt'])break;_0x37352e++;}else _0x37352e++;}}return _0x37352e;}[_0x25d7('0x74')](_0x43948e){const _0x26dcc5=this[_0x25d7('0x4d')][_0x25d7('0xa7')](_0x43948e['id']);if(_0x43948e[_0x25d7('0xc4')]&&(_0x43948e[_0x25d7('0xc4')]=new Date(_0x43948e[_0x25d7('0xc4')])),_0x43948e[_0x25d7('0x62')]){const _0x162496=this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')]('Users');_0x43948e[_0x25d7('0x94')]=_0x43948e[_0x25d7('0x62')][_0x25d7('0x38')](_0x339e57=>_0x162496['getUser'](_0x339e57));}_0x26dcc5['_update'](_0x43948e,!0x0);}[_0x25d7('0xa4')]({revision:_0x12dc8f=null,from:_0x5cc417=null,to:_0x5be029=null}){_0x5cc417=null!==_0x5cc417?_0x5cc417:_0x12dc8f['fromVersion'],_0x5be029=null!==_0x5be029?_0x5be029:_0x12dc8f[_0x25d7('0x45')];const _0x43a57f=this[_0x25d7('0xa1')][_0x25d7('0x3f')](_0x5cc417,_0x5be029),_0x72d319={'diffData':_0x43a57f[_0x25d7('0xe7')],'authorsIds':_0x43a57f['authorsIds'],'fromVersion':_0x5cc417,'toVersion':_0x5be029};if(!_0x12dc8f||_0x5be029!==_0x12dc8f[_0x25d7('0x45')]){const _0x3acf6f=_0x5be029-0x1,_0x3729e8=this[_0x25d7('0xa2')][_0x25d7('0x7d')][_0x25d7('0x30')](_0x3acf6f);_0x72d319[_0x25d7('0xc4')]=_0x3729e8&&_0x3729e8[_0x25d7('0xc4')]||new Date();}if(this[_0x25d7('0xb5')]&&_0x5cc417===this['_loadedStateData'][_0x25d7('0xe6')])for(const _0x1d80ad of this[_0x25d7('0xb5')][_0x25d7('0x94')])_0x72d319[_0x25d7('0x62')][_0x25d7('0x42')](_0x1d80ad['id'])||_0x72d319[_0x25d7('0x62')][_0x25d7('0x1')](_0x1d80ad['id']);return _0x72d319;}[_0x25d7('0xb4')](_0x470e1c){if(!_0x470e1c||_0x470e1c[_0x25d7('0xe7')])return Promise[_0x25d7('0xc1')]();{const _0x261171=this[_0x25d7('0xfb')][_0x25d7('0x3c')][_0x25d7('0xac')](_0x25d7('0x7b'));return this[_0x25d7('0xe9')][_0x25d7('0xa7')]({'channelId':_0x261171,'revisionId':_0x470e1c['id']})[_0x25d7('0x3e')](_0xf14140=>{_0x470e1c[_0x25d7('0xe7')]=_0xf14140[_0x25d7('0xe7')];});}}[_0x25d7('0x7a')](_0x24f356,_0x43f4cd,_0x21aaf1){if(this[_0x25d7('0x27')][_0x25d7('0xf3')](_0x24f356)){const _0x35e3e2=this[_0x25d7('0x27')][_0x25d7('0xac')](_0x24f356);_0x43f4cd=_0x21aaf1?{..._0x35e3e2,..._0x43f4cd}:{..._0x43f4cd,..._0x35e3e2};}this['_bufferedUpdates']['set'](_0x24f356,_0x43f4cd);}['_getFromVersion'](_0x263167){const _0x390394=this[_0x25d7('0x4d')][_0x25d7('0x24')]();_0x390394[_0x25d7('0x2')](),_0x390394[_0x25d7('0x85')]();const _0x2854c4=_0x390394[_0x25d7('0x9')](_0x1d9908=>_0x1d9908['toVersion']<=_0x263167)['toVersion'];return _0x2854c4<this[_0x25d7('0xaf')]?this['_startingVersion']:_0x2854c4;}[_0x25d7('0xba')](_0x40fc88){const _0x59cd67=this[_0x25d7('0x4d')][_0x25d7('0xa7')](this[_0x25d7('0x4d')][_0x25d7('0xf7')]-0x1);if(_0x59cd67)this[_0x25d7('0xe2')]=_0x59cd67['id'];else{const _0x4eedff=!this[_0x25d7('0xfb')][_0x25d7('0x87')]['document'][_0x25d7('0x13')][_0x25d7('0x9')](_0x4d60d8=>this['editor'][_0x25d7('0x87')]['hasContent'](_0x4d60d8)),_0x3db5bc=this[_0x25d7('0xfb')]['plugins'][_0x25d7('0xac')]('Users')['me']['id'],_0x4a2aac=_0x53d619(this['editor']['locale'],_0x4eedff?'Empty\x20document':'Initial\x20revision');this[_0x25d7('0xbd')]({'from':_0x40fc88,'to':_0x40fc88,'id':this[_0x25d7('0xe2')],'name':_0x4a2aac,'creatorId':_0x3db5bc});}}[_0x25d7('0xd1')](_0xcdd8af){const _0x3dc7b9=this[_0x25d7('0xa2')][_0x25d7('0x80')]();this[_0x25d7('0x9e')]=this[_0x25d7('0x4d')][_0x25d7('0xa7')](_0x3dc7b9),this[_0x25d7('0x9e')]||(this['currentRevision']=this['_makeRevision']({'from':_0xcdd8af,'to':_0xcdd8af,'id':_0x3dc7b9,'name':'','creatorId':null}));}[_0x25d7('0xbd')]({name:_0x445ec1,from:_0x6cb37e,to:_0x358d54,creatorId:_0xa66e85,id:_0x50aa68}){const _0x3d187e=this[_0x25d7('0xa4')]({'from':_0x6cb37e,'to':_0x358d54});_0x3d187e[_0x25d7('0x71')]=_0x445ec1,_0x3d187e[_0x25d7('0x101')]=_0xa66e85,_0x3d187e['id']=_0x50aa68;const _0x2569c4=this[_0x25d7('0x19')](_0x3d187e);return this[_0x25d7('0xe9')]&&this[_0x25d7('0x7a')](_0x3d187e['id'],_0x3d187e,!0x0),_0x2569c4;}['_setConversion'](){this[_0x25d7('0xfb')][_0x25d7('0xd6')][_0x25d7('0x44')]('dataDowncast')['markerToData']({'model':_0x25d7('0x6d')});}[_0x25d7('0x21')](_0x4419c4){return(_0x4419c4=_0x4419c4[_0x25d7('0xb0')](_0x3d2c42=>!_0x3d2c42[_0x25d7('0x71')]||'revision-start'!==_0x3d2c42['name']&&_0x25d7('0x51')!==_0x3d2c42[_0x25d7('0x71')]))[_0x25d7('0xd7')](_0x406aa7=>{_0x25d7('0x8f')!=typeof _0x406aa7&&(_0x406aa7[_0x25d7('0x68')]=this['_removeRevisionMarkers'](_0x406aa7[_0x25d7('0x68')]),_0x406aa7[_0x25d7('0xf2')]=_0x406aa7[_0x25d7('0xf2')][_0x25d7('0xb0')](_0x4ebbe3=>!_0x4ebbe3[0x0]['startsWith'](_0x25d7('0x29'))));}),_0x4419c4;}}function J(_0x494d7c,_0x4c75b9){const _0x4ff3bd=_0x4c75b9[_0x25d7('0x76')][_0x25d7('0x25')][_0x25d7('0x9b')];if(_0x25d7('0x8f')==typeof _0x494d7c)return new _0x418b28(_0x4ff3bd,_0x494d7c);{const _0x4b6ce3=_0x494d7c[_0x25d7('0x68')][_0x25d7('0x38')](_0x19d76f=>J(_0x19d76f,_0x4c75b9));return new(B[_0x494d7c[(_0x25d7('0xca'))]]||_0x2efae7)(_0x4ff3bd,_0x494d7c[_0x25d7('0x71')],_0x494d7c['attributes'],_0x4b6ce3);}}class H{constructor(_0x19cca5){this[_0x25d7('0xfb')]=_0x19cca5,this[_0x25d7('0x5b')]=new Map(),this[_0x25d7('0x22')]=-0x1,this['_lastTo']=-0x1,this[_0x25d7('0x6')]=new Map(),this['_diffRoots']=new Map(),this[_0x25d7('0x97')]=new Map(),this[_0x25d7('0x4e')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x25d7('0xda')]=new Map(),this[_0x25d7('0x49')]=new Map(),this[_0x25d7('0x53')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x25d7('0x93')]=new Map(),this[_0x25d7('0x6f')]=0x1;}[_0x25d7('0x89')](_0x27d649){this[_0x25d7('0x2e')]=_0x27d649;const _0x47b2f9=new Map(),_0x25c386=new Map(),_0x3dcece=this['editor']['model'][_0x25d7('0x9b')][_0x25d7('0x13')][_0x25d7('0x38')](_0x8f851d=>_0x8f851d[_0x25d7('0x47')]);for(const _0x2a3680 of _0x3dcece){const _0x4bbd2a=this[_0x25d7('0xfb')][_0x25d7('0x87')]['document']['getRoot'](_0x2a3680),_0x48b4bc=q(_0x4bbd2a);_0x47b2f9[_0x25d7('0x92')](_0x2a3680,_0x48b4bc),_0x25c386[_0x25d7('0x92')](_0x2a3680,Object[_0x25d7('0x102')](_0x4bbd2a[_0x25d7('0xe0')]()));}const _0x354eb1=Array['from'](this['editor'][_0x25d7('0x87')][_0x25d7('0x32')])[_0x25d7('0x38')](_0x2176ac=>[_0x2176ac['name'],_0x2176ac[_0x25d7('0x72')]()]),_0x268eef=this[_0x25d7('0x2e')]['version'];this[_0x25d7('0xb2')](_0x268eef,_0x47b2f9,_0x354eb1,_0x25c386),this[_0x25d7('0x5')]=this[_0x25d7('0x6f')];const _0x4ffc1b=new Map(),_0x3bd82d=new Map();for(const _0x21fd35 of _0x3dcece){const _0x1bce82=G(_0x21fd35);_0x4ffc1b['set'](_0x21fd35,_0x1bce82),_0x3bd82d[_0x25d7('0x92')](_0x21fd35,{});}this[_0x25d7('0xb2')](Number[_0x25d7('0x91')],_0x4ffc1b,[],_0x3bd82d);}[_0x25d7('0x3f')](_0x23e2eb,_0x5280c1){if(this[_0x25d7('0x22')]===_0x23e2eb&&this[_0x25d7('0x81')]<=_0x5280c1)this[_0x25d7('0x5b')]['size']>0x1&&this['_removeMetaData'](this[_0x25d7('0x81')]),this[_0x25d7('0x64')](this[_0x25d7('0x81')],_0x5280c1,!0x0);else{if(!this[_0x25d7('0x5b')][_0x25d7('0xf3')](_0x23e2eb)){const _0x8ab18e=this[_0x25d7('0x8d')](_0x23e2eb);this[_0x25d7('0x8e')](_0x8ab18e,_0x23e2eb,!0x1);}this['_calculateMetaData'](_0x23e2eb,_0x5280c1,!0x0);}return this[_0x25d7('0x22')]=_0x23e2eb,this[_0x25d7('0x81')]=_0x5280c1,this[_0x25d7('0xcf')]();}[_0x25d7('0x5c')](_0x3efe6c){this[_0x25d7('0xa8')](),this[_0x25d7('0x22')]=_0x3efe6c[_0x25d7('0xe6')],this[_0x25d7('0x81')]=_0x3efe6c[_0x25d7('0x45')];for(const _0x5aef88 in _0x3efe6c[_0x25d7('0xe7')]){const _0x1aa460=_0x3efe6c[_0x25d7('0xe7')][_0x5aef88][_0x25d7('0x41')],_0x43a8c7=_0x425cc7(_0x3efe6c[_0x25d7('0xe7')][_0x5aef88][_0x25d7('0xee')])||{},_0x1200c5=this[_0x25d7('0x31')](_0x3efe6c[_0x25d7('0xe7')][_0x5aef88][_0x25d7('0xcc')]);_0x1200c5['rootName']=_0x5aef88,_0x1200c5[_0x25d7('0x2c')]=!_0x1aa460||!_0x1aa460[_0x25d7('0xe4')],_0x1200c5[_0x25d7('0xe4')]=()=>_0x1200c5[_0x25d7('0x2c')],this['_baseRoots']['set'](_0x5aef88,_0x1200c5),this['_baseRootsAttributes']['set'](_0x5aef88,_0x43a8c7),_0x1aa460&&this[_0x25d7('0x93')][_0x25d7('0x92')](_0x5aef88,_0x1aa460);const _0x13647b=this[_0x25d7('0xfa')](_0x1200c5);this['_baseIdsRoots']['set'](_0x5aef88,_0x13647b);for(const [_0x1e5120,_0x396e7a]of _0x1200c5[_0x25d7('0x32')]){if(!_0x1e5120[_0x25d7('0x23')](_0x25d7('0x77')))continue;const _0x327d1b=_0x1e5120[_0x25d7('0x79')](':')[0x2];for(const _0x5daadc of _0x396e7a[_0x25d7('0x6e')]({'singleCharacters':!0x0})){const _0x12297d=this['_getVidAttributeName'](_0x5daadc),_0x3e6e1c=_0x25d7('0x69')==_0x5daadc[_0x25d7('0xca')]?_0x5daadc[_0x25d7('0x55')][_0x25d7('0xdd')][_0x25d7('0xb8')](0x0,-0x1):_0x5daadc[_0x25d7('0x55')]['path'],_0xa5b373=_0x13647b[_0x25d7('0xe5')](_0x3e6e1c)[_0x25d7('0xdb')](_0x12297d);this['_touched']['set'](_0xa5b373,{'userId':_0x327d1b});}}}this['_startingRevisionId']=this[_0x25d7('0x6f')];const _0x15dca0=[...Array(this[_0x25d7('0x6f')])[_0x25d7('0xfd')]()][_0x25d7('0xb8')](0x1)[_0x25d7('0xb0')](_0xf61b9a=>!this[_0x25d7('0x53')][_0x25d7('0xf3')](_0xf61b9a));let _0x29b00c=0x0;const _0x1fa0c8=new Map();for(const _0x57ee19 in _0x3efe6c[_0x25d7('0xe7')]){const _0x1b0292=_0x3efe6c['diffData'][_0x57ee19][_0x25d7('0x41')],_0x580872=_0x425cc7(_0x3efe6c[_0x25d7('0xe7')][_0x57ee19]['attributesAfter'])||{},_0x4de2a3=this[_0x25d7('0x31')](_0x3efe6c[_0x25d7('0xe7')][_0x57ee19][_0x25d7('0x40')]);_0x4de2a3[_0x25d7('0x47')]=_0x57ee19,_0x4de2a3[_0x25d7('0x2c')]=!_0x1b0292||_0x1b0292['isAttached'],_0x4de2a3[_0x25d7('0xe4')]=()=>_0x4de2a3[_0x25d7('0x2c')],this[_0x25d7('0x16')][_0x25d7('0x92')](_0x57ee19,_0x4de2a3),this[_0x25d7('0x97')][_0x25d7('0x92')](_0x57ee19,_0x580872);const _0x283b1a=this[_0x25d7('0xfa')](_0x4de2a3,Number[_0x25d7('0x91')]);this[_0x25d7('0xda')][_0x25d7('0x92')](_0x57ee19,_0x283b1a),_0x1fa0c8[_0x25d7('0x92')](_0x57ee19,_0x4de2a3[_0x25d7('0xe4')]()?_0x580872:{});for(const [_0x54f3a1,_0x2d8a83]of _0x4de2a3['markers']){if(!_0x54f3a1[_0x25d7('0x23')](_0x25d7('0x77')))continue;const _0xe9e3e7=_0x54f3a1[_0x25d7('0x79')](':')[0x2];for(const _0x14f170 of _0x2d8a83[_0x25d7('0x6e')]({'singleCharacters':!0x0})){const _0x416aa4=this[_0x25d7('0x4')](_0x14f170),_0x13eefd=this[_0x25d7('0x6f')]++,_0x315d36=_0x25d7('0x69')==_0x14f170[_0x25d7('0xca')]?_0x14f170[_0x25d7('0x55')]['path'][_0x25d7('0xb8')](0x0,-0x1):_0x14f170[_0x25d7('0x55')][_0x25d7('0xdd')];_0x283b1a[_0x25d7('0xe5')](_0x315d36)[_0x25d7('0x2b')](_0x416aa4,_0x13eefd),this['_touched']['set'](_0x13eefd,{'userId':_0xe9e3e7});}}for(const _0xf498a2 of this['editor'][_0x25d7('0x87')]['createRangeIn'](_0x4de2a3)[_0x25d7('0x6e')]({'singleCharacters':!0x0})){const _0x149276=this[_0x25d7('0x4')](_0xf498a2),_0x1a1d1f='elementEnd'==_0xf498a2['type']?_0xf498a2[_0x25d7('0x55')][_0x25d7('0xdd')]['slice'](0x0,-0x1):_0xf498a2[_0x25d7('0x55')][_0x25d7('0xdd')],_0x56c09b=_0x283b1a[_0x25d7('0xe5')](_0x1a1d1f);_0x56c09b[_0x25d7('0xdb')](_0x149276)>0x0||_0x56c09b[_0x25d7('0x2b')](_0x149276,_0x15dca0[_0x29b00c++]);}for(const [_0x12c94b,_0x1e528e]of _0x4de2a3['markers'])_0x12c94b[_0x25d7('0x23')](_0x25d7('0x77'))||this[_0x25d7('0x6')][_0x25d7('0x92')](_0x12c94b,_0x1e528e);}const _0x4a3c53=G('$graveyard');this[_0x25d7('0x4e')][_0x25d7('0x92')](_0x25d7('0x1c'),_0x4a3c53),this[_0x25d7('0x49')]['set'](_0x25d7('0x1c'),this['_makeIdsRoot'](_0x4a3c53,0x1));const _0x1b5384=G(_0x25d7('0x1c'));this[_0x25d7('0x16')][_0x25d7('0x92')]('$graveyard',_0x1b5384),this[_0x25d7('0xda')][_0x25d7('0x92')](_0x25d7('0x1c'),this[_0x25d7('0xfa')](_0x1b5384,0x1));const _0x448566=Array[_0x25d7('0xb')](this['_diffRoots'])[_0x25d7('0x38')](([_0x1e24af,_0x2ebf29])=>[_0x1e24af,q(_0x2ebf29)]);this[_0x25d7('0xb2')](this[_0x25d7('0x81')],_0x448566,this[_0x25d7('0x6')],_0x1fa0c8);}[_0x25d7('0x31')](_0x1cdaee){const _0x4aab26=JSON[_0x25d7('0xc2')](_0x1cdaee),_0x2e30e7=this['editor']['editing']['view'][_0x25d7('0x9b')],_0x5e9568=new _0x51ffc9(_0x2e30e7,_0x4aab26[_0x25d7('0x38')](_0x1eaf8c=>J(_0x1eaf8c,this[_0x25d7('0xfb')])));return this['editor'][_0x25d7('0xcd')]['toModel'](_0x5e9568);}[_0x25d7('0xb2')](_0x2360a4,_0x501386,_0x15b49d,_0x2f36db){const _0x53f6d2=new Map(_0x501386),_0x2cc9e7=new Map(_0x425cc7(_0x2f36db)),_0x5e6bbb=new Map();for(const [_0x344992,_0x419d8f]of _0x15b49d)_0x5e6bbb[_0x25d7('0x92')](_0x344992,{'start':_0x419d8f[_0x25d7('0x2f')][_0x25d7('0x48')](),'end':_0x419d8f['end'][_0x25d7('0x48')](),'rootName':_0x419d8f[_0x25d7('0x1a')][_0x25d7('0x47')]});this[_0x25d7('0x5b')][_0x25d7('0x92')](_0x2360a4,{'roots':_0x53f6d2,'markers':_0x5e6bbb,'rootsAttributes':_0x2cc9e7});}[_0x25d7('0x59')](_0x595cf9){this['_savedMetaData'][_0x25d7('0xc3')](_0x595cf9);}[_0x25d7('0xff')](){this[_0x25d7('0xa8')](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this[_0x25d7('0x5b')][_0x25d7('0xd9')](),this[_0x25d7('0x89')](this[_0x25d7('0x2e')]);}[_0x25d7('0xa8')](){this[_0x25d7('0x53')][_0x25d7('0xd9')](),this[_0x25d7('0xde')][_0x25d7('0xd9')](),this['_touchedRoots']['clear'](),this[_0x25d7('0x16')]['clear'](),this[_0x25d7('0x97')][_0x25d7('0xd9')](),this[_0x25d7('0x4e')]['clear'](),this['_baseRootsAttributes']['clear'](),this[_0x25d7('0xda')][_0x25d7('0xd9')](),this[_0x25d7('0x49')][_0x25d7('0xd9')](),this[_0x25d7('0x6')][_0x25d7('0xd9')](),this['_revisionId']=0x1,this[_0x25d7('0x5')]=this[_0x25d7('0x6f')];}[_0x25d7('0xfa')](_0xe72eb3,_0x423f6e=null){let _0x1e9456=null;_0xe72eb3['is'](_0x25d7('0x2a'))||(_0x1e9456=new _0x49875f(_0xe72eb3['name'],{'vid_start':null===_0x423f6e?this[_0x25d7('0x6f')]++:_0x423f6e++}));const _0x582444=[];for(const _0x84510b of _0xe72eb3[_0x25d7('0xce')]())if(_0x84510b['is'](_0x25d7('0x8b'))){_0x582444[_0x25d7('0x1')](this[_0x25d7('0xfa')](_0x84510b,_0x423f6e));const _0x2ff609=_0x582444[_0x582444['length']-0x1];null!==_0x423f6e&&(_0x423f6e=_0x2ff609['is'](_0x25d7('0x8b'),_0x25d7('0xf4'))?_0x2ff609[_0x25d7('0xdb')](_0x25d7('0x7c'))+0x1:_0x2ff609[_0x25d7('0xdb')]('vid_end')+0x1);}else for(let _0x5670ca=0x0;_0x5670ca<_0x84510b[_0x25d7('0xb9')];_0x5670ca++)_0x582444['push'](new _0x49875f('$text',{'vid':null===_0x423f6e?this['_revisionId']++:_0x423f6e++}));if(_0xe72eb3['is'](_0x25d7('0x2a'))){const _0x48a78b=G(_0xe72eb3[_0x25d7('0x47')]);return _0x48a78b[_0x25d7('0xa')](0x0,_0x582444),_0x48a78b;}return _0x1e9456[_0x25d7('0x2b')](_0x25d7('0x39'),null===_0x423f6e?this['_revisionId']++:_0x423f6e++),_0x1e9456['_insertChild'](0x0,_0x582444),_0x1e9456;}['_calculateMetaData'](_0x5a3de7,_0x150a60,_0x3047a5){this[_0x25d7('0xa8')]();const {roots:_0x1c38bc,markers:_0x1add97,rootsAttributes:_0x1f9318}=this[_0x25d7('0x5b')][_0x25d7('0xac')](_0x5a3de7);this[_0x25d7('0x4e')]=new Map(_0x1c38bc),this[_0x25d7('0x11')]=new Map(_0x425cc7(_0x1f9318));for(const [_0xc226ee,_0x3c8f1f]of this[_0x25d7('0x4e')])if(_0x25d7('0x1c')!==_0xc226ee&&(this[_0x25d7('0x16')]['set'](_0xc226ee,q(_0x3c8f1f)),this[_0x25d7('0x97')]=new Map(_0x425cc7(_0x1f9318)),_0x3047a5)){const _0x5cd121=this[_0x25d7('0x6f')];this[_0x25d7('0xda')][_0x25d7('0x92')](_0xc226ee,this[_0x25d7('0xfa')](_0x3c8f1f)),this[_0x25d7('0x49')][_0x25d7('0x92')](_0xc226ee,this[_0x25d7('0xfa')](_0x3c8f1f,_0x5cd121));}this[_0x25d7('0x5')]=this[_0x25d7('0x6f')],this[_0x25d7('0x16')]['set'](_0x25d7('0x1c'),q(this[_0x25d7('0x4e')][_0x25d7('0xac')](_0x25d7('0x1c')))),_0x3047a5&&this[_0x25d7('0xda')][_0x25d7('0x92')](_0x25d7('0x1c'),this[_0x25d7('0xfa')](this[_0x25d7('0x4e')][_0x25d7('0xac')](_0x25d7('0x1c'))));for(const [_0x136a88,_0x7e8775]of _0x1add97){const _0x4c31d8=this[_0x25d7('0x4e')][_0x25d7('0xac')](_0x7e8775['rootName']),_0x34b4b4=this[_0x25d7('0x16')][_0x25d7('0xac')](_0x7e8775[_0x25d7('0x47')]),_0x4bd7d8=new _0x45fcdc(this[_0x25d7('0x7e')](_0x7e8775[_0x25d7('0x2f')],_0x4c31d8),this['_fixPosition'](_0x7e8775[_0x25d7('0xf0')],_0x4c31d8)),_0x1881bf=this[_0x25d7('0x57')](_0x4bd7d8,_0x34b4b4);_0x4c31d8[_0x25d7('0x32')][_0x25d7('0x92')](_0x136a88,_0x4bd7d8),this['_markers'][_0x25d7('0x92')](_0x136a88,_0x1881bf);}this['_applyOperations'](_0x5a3de7,_0x150a60,_0x3047a5);}['_applyOperations'](_0x5e5818,_0x18e5d0,_0x1f6b2c){for(const _0x2fbc37 of this['source'][_0x25d7('0xbc')](_0x5e5818,_0x18e5d0))this[_0x25d7('0xc9')](_0x2fbc37,_0x1f6b2c);for(const _0x5e798b of this[_0x25d7('0x16')]['values']())_0x5e798b[_0x25d7('0x32')][_0x25d7('0xd9')]();for(const [_0x1d0fa4,_0x4db760]of this['_markers']){this['_diffRoots']['get'](_0x4db760[_0x25d7('0x1a')][_0x25d7('0x47')])[_0x25d7('0x32')]['set'](_0x1d0fa4,_0x4db760[_0x25d7('0x48')]());}const _0x392623=new Map(),_0x164039=new Map();for(const [_0x4c8c0a,_0x4ab3a4]of this[_0x25d7('0x16')])_0x392623[_0x25d7('0x92')](_0x4c8c0a,q(_0x4ab3a4)),_0x164039['set'](_0x4c8c0a,this['_diffRootsAttributes'][_0x25d7('0xac')](_0x4c8c0a));this[_0x25d7('0xb2')](_0x18e5d0,_0x392623,this['_markers'],_0x164039);}[_0x25d7('0x8d')](_0x34014e){const _0x4d6fbb=Array['from'](this[_0x25d7('0x5b')][_0x25d7('0xfd')]());_0x4d6fbb[_0x25d7('0x66')]((_0x38fb8c,_0x1f135e)=>_0x38fb8c-_0x1f135e),_0x4d6fbb[_0x25d7('0x2')]();for(const _0x3e53f7 of _0x4d6fbb)if(_0x3e53f7<_0x34014e)return _0x3e53f7;return Number[_0x25d7('0x91')];}[_0x25d7('0xf8')](_0x153bf8,_0x536593){const _0x1e7c52=Array[_0x25d7('0xb')](_0x536593[_0x25d7('0x32')])[_0x25d7('0x38')](([_0x23fea0,_0x430e8c])=>[_0x23fea0,this[_0x25d7('0x57')](_0x430e8c,_0x153bf8)]);_0x153bf8[_0x25d7('0x32')]=new Map(_0x1e7c52);}['_transformMarkers'](_0x50534e){for(const _0x563d1e of this[_0x25d7('0x6')][_0x25d7('0xf')]()){const _0x39cfa1=_0x563d1e[_0x25d7('0xf1')](_0x50534e),_0x50c326=_0x45fcdc['_createFromRanges'](_0x39cfa1);_0x563d1e[_0x25d7('0x2f')]=_0x50c326[_0x25d7('0x2f')],_0x563d1e[_0x25d7('0xf0')]=_0x50c326[_0x25d7('0xf0')];}}[_0x25d7('0xc9')](_0x5476f8,_0x90aa6a){if('addRoot'==_0x5476f8[_0x25d7('0xca')]||'detachRoot'==_0x5476f8[_0x25d7('0xca')])return void this[_0x25d7('0x17')](_0x5476f8,_0x90aa6a);if(_0x25d7('0x65')==_0x5476f8[_0x25d7('0xca')]){const _0x18344c=_0x5476f8[_0x25d7('0x8c')][_0x25d7('0x1a')]['rootName'];this['_diffRoots'][_0x25d7('0xf3')](_0x18344c)||(this[_0x25d7('0x16')][_0x25d7('0x92')](_0x18344c,G(_0x18344c,!0x0)),this['_diffRootsAttributes'][_0x25d7('0x92')](_0x18344c,{}),_0x90aa6a&&this['_idsRoots'][_0x25d7('0x92')](_0x18344c,G(_0x18344c,!0x0)));}else{if(_0x25d7('0x6b')==_0x5476f8[_0x25d7('0xca')]||_0x25d7('0x9a')==_0x5476f8[_0x25d7('0xca')]||_0x25d7('0xb1')==_0x5476f8[_0x25d7('0xca')])return void this[_0x25d7('0xe8')](_0x5476f8);}const _0x82fc6c=this[_0x25d7('0xb7')](_0x5476f8,this[_0x25d7('0x16')]);if(_0x25d7('0x75')!==_0x5476f8['type']&&(_0x82fc6c['_execute'](),this[_0x25d7('0x46')](_0x82fc6c)),_0x90aa6a)switch(_0x82fc6c[_0x25d7('0xca')]){case _0x25d7('0x65'):this[_0x25d7('0xbf')](_0x5476f8);break;case _0x25d7('0xeb'):case _0x25d7('0x50'):case'reinsert':this[_0x25d7('0xc8')](_0x5476f8);break;case'merge':this[_0x25d7('0x73')](_0x5476f8);break;case _0x25d7('0x79'):this[_0x25d7('0x3d')](_0x5476f8);break;case _0x25d7('0x75'):this[_0x25d7('0xf5')](_0x5476f8);}}['_cloneOperation'](_0x59ec0d,_0x722437){const _0x1f261e=_0x59ec0d[_0x25d7('0x48')]();return _0x1f261e['_authorId']=_0x59ec0d[_0x25d7('0x9f')],this[_0x25d7('0x4a')](_0x1f261e,_0x722437),_0x1f261e;}[_0x25d7('0x61')](_0xbd1726){return _0xbd1726[_0x25d7('0x38')](_0x405486=>{const _0x2c9b7c=this[_0x25d7('0x4')](_0x405486);return Number(_0x405486[_0x25d7('0x78')][_0x25d7('0xdb')](_0x2c9b7c));});}[_0x25d7('0x6c')](_0x5e6d19,_0x395427){if(_0x5e6d19['is'](_0x25d7('0x8b'),_0x25d7('0xf4')))_0x395427['push']({'item':_0x5e6d19,'type':_0x25d7('0xa5')});else{_0x5e6d19['is'](_0x25d7('0x8b'))&&_0x395427[_0x25d7('0x1')]({'item':_0x5e6d19,'type':_0x25d7('0xf6')});for(const _0xf9a9d3 of _0x5e6d19[_0x25d7('0xce')]())this[_0x25d7('0x6c')](_0xf9a9d3,_0x395427);_0x5e6d19['is']('element')&&_0x395427[_0x25d7('0x1')]({'item':_0x5e6d19,'type':_0x25d7('0x69')});}return _0x395427;}[_0x25d7('0xcf')](){const _0x4e99ed=new Map(this['_touched']),_0x201943=new Map(_0x4e99ed),_0x3050f3=new Map(),_0x31afa2={'insertions':{},'deletions':{}},_0x3ebfe4={'insertions':{},'deletions':{}},_0x208c31=new Map(),_0x1a65ed=new Set([...this['_baseRoots'][_0x25d7('0xfd')](),...this[_0x25d7('0x16')][_0x25d7('0xfd')]()]);_0x1a65ed[_0x25d7('0xc3')](_0x25d7('0x1c'));for(const _0x2d54e6 of _0x1a65ed){const _0xf84482=this[_0x25d7('0x16')]['get'](_0x2d54e6)||G(_0x2d54e6,!0x1),_0x4a478=this[_0x25d7('0x4e')][_0x25d7('0xac')](_0x2d54e6)||G(_0x2d54e6,!0x1);_0xf84482[_0x25d7('0xe4')]()||_0x4a478[_0x25d7('0xe4')]()?(_0x31afa2['insertions'][_0x2d54e6]=q(_0xf84482),_0x31afa2[_0x25d7('0xcc')][_0x2d54e6]=q(_0x4a478),this[_0x25d7('0xf8')](_0x31afa2[_0x25d7('0xcc')][_0x2d54e6],_0x4a478),this[_0x25d7('0xf8')](_0x31afa2[_0x25d7('0x40')][_0x2d54e6],_0xf84482),_0x3ebfe4[_0x25d7('0x40')][_0x2d54e6]=this['_generateTape'](this[_0x25d7('0xda')][_0x25d7('0xac')](_0x2d54e6),[]),_0x3ebfe4[_0x25d7('0xcc')][_0x2d54e6]=this['_generateTape'](this[_0x25d7('0x49')][_0x25d7('0xac')](_0x2d54e6)||G(_0x2d54e6,!0x1),[])):_0x1a65ed[_0x25d7('0xc3')](_0x2d54e6);}for(const _0x4ee631 of _0x1a65ed){const _0xf2fc6c=_0x3ebfe4[_0x25d7('0x40')][_0x4ee631];for(const _0x1d1f4b of _0xf2fc6c){const _0xd264df=this[_0x25d7('0x4')](_0x1d1f4b),_0x3b7808=_0x1d1f4b[_0x25d7('0x78')][_0x25d7('0xdb')](_0xd264df);_0x201943[_0x25d7('0xc3')](_0x3b7808),_0x3b7808>=this[_0x25d7('0x5')]&&_0x3050f3[_0x25d7('0x92')](_0x3b7808,_0x4e99ed[_0x25d7('0xac')](_0x3b7808));}}for(const _0x5808c4 of _0x1a65ed){const _0x38b4bc=_0x3ebfe4['insertions'][_0x5808c4],_0x70da45=this[_0x25d7('0x61')](_0x3ebfe4['deletions'][_0x5808c4]);let _0x9ebb8d=0x0;for(const _0x143e9e of _0x38b4bc){const _0x193092=this[_0x25d7('0x4')](_0x143e9e),_0x2ac481=_0x143e9e[_0x25d7('0x78')][_0x25d7('0xdb')](_0x193092);if(!_0x3050f3[_0x25d7('0xf3')](_0x2ac481)&&!_0x208c31[_0x25d7('0xf3')](_0x2ac481)){if(_0x201943['has'](_0x2ac481))_0x9ebb8d++;else{if(_0x2ac481!=_0x70da45[_0x9ebb8d]){const _0x2dd5ee=_0x4e99ed[_0x25d7('0xac')](_0x2ac481)||_0x4e99ed[_0x25d7('0xac')](_0x70da45[_0x9ebb8d]);for(;_0x2ac481!=_0x70da45[_0x9ebb8d];)_0x201943['has'](_0x70da45[_0x9ebb8d])||(_0x208c31[_0x25d7('0x92')](_0x70da45[_0x9ebb8d],_0x2dd5ee),_0x4e99ed[_0x25d7('0x92')](_0x70da45[_0x9ebb8d],_0x2dd5ee)),_0x9ebb8d++;}_0x9ebb8d++;}}}}for(const _0x23089a of _0x1a65ed){const _0x1a4d63=_0x3ebfe4[_0x25d7('0x40')][_0x23089a];for(const _0x2a6144 of _0x1a4d63){const _0xdedb88=this[_0x25d7('0x4')](_0x2a6144),_0x1ea6fa=_0x2a6144[_0x25d7('0x78')][_0x25d7('0xdb')](_0xdedb88);if(_0x208c31['has'](_0x1ea6fa)){const _0x5a06c5=_0x208c31[_0x25d7('0xac')](_0x1ea6fa);_0x201943['has'](_0x1ea6fa)||_0x201943[_0x25d7('0x92')](_0x1ea6fa,{..._0x5a06c5}),_0x3050f3[_0x25d7('0x92')](_0x1ea6fa,{..._0x5a06c5});}}}for(const _0x507805 of _0x201943[_0x25d7('0xfd')]())_0x507805>=this[_0x25d7('0x5')]&&_0x201943[_0x25d7('0xc3')](_0x507805);const _0x1c6626=new Map();for(const _0x7e9187 of _0x1a65ed){let _0x547d15=_0x3ebfe4[_0x25d7('0x40')][_0x7e9187];for(const _0x1419df of _0x547d15)if(_0x1419df[_0x25d7('0x78')]['is']('element',_0x25d7('0x15'))){const _0x4edf64=this[_0x25d7('0x4')](_0x1419df),_0x5a626f=_0x1419df[_0x25d7('0x78')]['getAttribute'](_0x4edf64);if(_0x3050f3['has'](_0x5a626f)){const _0x34fb9c=_0x1419df[_0x25d7('0x78')][_0x25d7('0x67')][_0x25d7('0x67')][_0x25d7('0xdb')](_0x25d7('0xd3')),_0x74c623=_0x1c6626[_0x25d7('0xac')](_0x34fb9c)||new Set();_0x74c623[_0x25d7('0x100')](_0x3050f3[_0x25d7('0xac')](_0x5a626f)['userId']),_0x1c6626['set'](_0x34fb9c,_0x74c623);}}_0x547d15=_0x3ebfe4[_0x25d7('0xcc')][_0x7e9187];for(const _0x181b2c of _0x547d15)if(_0x181b2c['item']['is'](_0x25d7('0x8b'),_0x25d7('0x15'))){const _0x259f6e=this[_0x25d7('0x4')](_0x181b2c),_0x3d2cc5=_0x181b2c[_0x25d7('0x78')]['getAttribute'](_0x259f6e);if(_0x201943['has'](_0x3d2cc5)){const _0x150129=_0x181b2c[_0x25d7('0x78')][_0x25d7('0x67')][_0x25d7('0x67')]['getAttribute'](_0x25d7('0xd3')),_0x355231=_0x1c6626['get'](_0x150129)||new Set();_0x355231[_0x25d7('0x100')](_0x201943[_0x25d7('0xac')](_0x3d2cc5)[_0x25d7('0xfc')]),_0x1c6626[_0x25d7('0x92')](_0x150129,_0x355231);}}for(const _0x5b2708 of _0x1c6626[_0x25d7('0xfd')]())(_0x3050f3[_0x25d7('0xf3')](_0x5b2708)||_0x201943[_0x25d7('0xf3')](_0x5b2708))&&_0x1c6626[_0x25d7('0xc3')](_0x5b2708);}for(const _0x37ce4b of _0x1a65ed){const _0x598865=_0x3ebfe4[_0x25d7('0x40')][_0x37ce4b];let _0x2c683e=null,_0x2aa119=null;for(const _0x56a3d7 of _0x598865){const _0x53b011=this[_0x25d7('0x4')](_0x56a3d7),_0xe1e8de=_0x56a3d7[_0x25d7('0x78')][_0x25d7('0xdb')](_0x53b011),_0x430efc=_0x1c6626['get'](_0xe1e8de);_0x430efc&&_0x25d7('0xf6')==_0x56a3d7[_0x25d7('0xca')]&&(_0x2c683e=Array[_0x25d7('0xb')](_0x430efc)[0x0],_0x2aa119=_0x56a3d7[_0x25d7('0x78')][_0x25d7('0xdb')](_0x25d7('0x39'))),_0x2c683e&&(_0x201943['set'](_0xe1e8de,{'userId':_0x2c683e}),_0x3050f3[_0x25d7('0x92')](_0xe1e8de,{'userId':_0x2c683e})),_0xe1e8de==_0x2aa119&&(_0x2c683e=null,_0x2aa119=null);}}const _0x211c9b={},_0x1e674f=new Set();for(const _0x2cd30e of _0x1a65ed){const _0x372fb1=_0x31afa2[_0x25d7('0xcc')][_0x2cd30e],_0x16271f=_0x31afa2[_0x25d7('0x40')][_0x2cd30e];for(const {userId:_0x41a298}of this['_touchedMarkers'][_0x25d7('0xf')]())null!==_0x41a298&&_0x1e674f[_0x25d7('0x100')](_0x41a298);for(const {userId:_0x353c8c}of this[_0x25d7('0x93')][_0x25d7('0xf')]())null!==_0x353c8c&&_0x1e674f[_0x25d7('0x100')](_0x353c8c);this['_markChanges'](_0x16271f,_0x3ebfe4['insertions'][_0x2cd30e],_0x3050f3,'insertion',_0x1e674f),this['_markChanges'](_0x372fb1,_0x3ebfe4[_0x25d7('0xcc')][_0x2cd30e],_0x201943,'deletion',_0x1e674f),_0x211c9b[_0x2cd30e]={'insertions':this['_prepareViewToSave'](_0x16271f),'deletions':this['_prepareViewToSave'](_0x372fb1),'attachChange':this[_0x25d7('0x93')]['get'](_0x2cd30e)||null,'attributesBefore':_0x425cc7(this[_0x25d7('0x11')][_0x25d7('0xac')](_0x2cd30e))||{},'attributesAfter':_0x425cc7(this[_0x25d7('0x97')][_0x25d7('0xac')](_0x2cd30e))};}return{'diffData':_0x211c9b,'authorsIds':Array['from'](_0x1e674f)};}['_processRootBeforeSave'](_0x5253a5){for(const [,_0x4a8992]of _0x5253a5[_0x25d7('0x32')]){const _0x2c85bf=_0x4a8992[_0x25d7('0x2f')][_0x25d7('0x4b')]()[_0x25d7('0xb0')](_0x5c7e0f=>_0x25d7('0x15')==_0x5c7e0f[_0x25d7('0x71')]);for(const _0x53f0b4 of _0x2c85bf)0x1==_0x53f0b4[_0x25d7('0xbb')]&&_0x53f0b4['getChild'](0x0)['is']('element',_0x25d7('0xe1'))&&_0x53f0b4['getChild'](0x0)[_0x25d7('0x2b')](_0x25d7('0x9d'),!0x0);}}[_0x25d7('0xd8')](_0x19cc96){this[_0x25d7('0x95')](_0x19cc96);const _0x4cc713=this[_0x25d7('0xfb')][_0x25d7('0xcd')][_0x25d7('0x28')](_0x19cc96,{}),_0x1f3cc7=Array[_0x25d7('0xb')](_0x4cc713[_0x25d7('0xce')]())[_0x25d7('0x38')](_0x4e213b=>this[_0x25d7('0x88')](_0x4e213b));return JSON['stringify'](_0x1f3cc7);}[_0x25d7('0x88')](_0x59b6d9){if(_0x59b6d9['is'](_0x25d7('0xf4')))return _0x59b6d9[_0x25d7('0xcd')];{const _0x6e2f00=_0x59b6d9;return{'type':Object[_0x25d7('0xfd')](B)[_0x25d7('0x9')](_0x32a62e=>_0x59b6d9 instanceof B[_0x32a62e]),'name':_0x6e2f00[_0x25d7('0x71')],'attributes':Array[_0x25d7('0xb')](_0x6e2f00[_0x25d7('0xe0')]()),'children':Array[_0x25d7('0xb')](_0x6e2f00[_0x25d7('0xce')]())[_0x25d7('0x38')](_0x35ea19=>this[_0x25d7('0x88')](_0x35ea19))};}}[_0x25d7('0xc0')](_0x5c8f4b,_0x510ca6,_0x4f3a08,_0x20469b,_0xf28e9c){let _0x5716f9=null,_0x5f3044=null,_0x3904d4=0x0;const _0xdd263=this[_0x25d7('0xfb')][_0x25d7('0x87')];for(let _0xbc9b0b=0x0;_0xbc9b0b<_0x510ca6[_0x25d7('0xf7')];_0xbc9b0b++){const _0x481194=this[_0x25d7('0x4')](_0x510ca6[_0xbc9b0b]),_0x16ab00=_0x510ca6[_0xbc9b0b][_0x25d7('0x78')][_0x25d7('0xdb')](_0x481194),_0x2626bb=_0x4f3a08[_0x25d7('0xac')](_0x16ab00),_0x3de67b=_0xbc9b0b==_0x510ca6[_0x25d7('0xf7')]-0x1;(!_0x5716f9&&_0x2626bb&&(_0x5716f9=_0x2626bb,_0x5f3044=_0x510ca6[_0xbc9b0b]),_0x5716f9&&(!_0x2626bb||_0x2626bb[_0x25d7('0xfc')]!=_0x5716f9[_0x25d7('0xfc')]))&&(_0x1d641e(_0x2626bb,L(_0x5f3044,_0x5c8f4b,_0xdd263),L(_0x510ca6[_0xbc9b0b],_0x5c8f4b,_0xdd263)),_0x5716f9=_0x2626bb||null,_0x5f3044=_0x2626bb?_0x510ca6[_0xbc9b0b]:null),_0x5716f9&&_0x3de67b&&_0x1d641e(_0x2626bb,L(_0x5f3044,_0x5c8f4b,_0xdd263),W(_0x510ca6[_0xbc9b0b],_0x5c8f4b,_0xdd263));}function _0x1d641e(_0x2ca5e6,_0x2551b8,_0x29c2bf){const _0x4a834b=_0x5716f9['userId'],_0x4a4488='revision:'+_0x20469b+':'+_0x4a834b+':'+_0x3904d4++,_0x508fd4=_0xdd263['createRange'](_0x2551b8,_0x29c2bf);_0x5c8f4b[_0x25d7('0x32')][_0x25d7('0x92')](_0x4a4488,_0x508fd4),null!==_0x4a834b&&_0xf28e9c['add'](_0x4a834b);}}[_0x25d7('0x4')](_0x344249){switch(_0x344249[_0x25d7('0xca')]){case _0x25d7('0xf6'):return _0x25d7('0xd3');case _0x25d7('0x69'):return _0x25d7('0x39');default:return _0x25d7('0x7c');}}[_0x25d7('0x4a')](_0x4663ae,_0x22fc99){_0x4663ae[_0x25d7('0xb6')]=null;for(const _0x13a7b7 in _0x4663ae){const _0x3abdd3=_0x4663ae[_0x13a7b7];if(_0x3abdd3 instanceof _0x483a8c){const _0x265746=_0x22fc99['get'](_0x3abdd3[_0x25d7('0x1a')][_0x25d7('0x47')]);_0x4663ae[_0x13a7b7]=this['_fixPosition'](_0x3abdd3,_0x265746);}if(_0x3abdd3 instanceof _0x45fcdc){const _0x5d1f29=_0x22fc99['get'](_0x3abdd3['root']['rootName']);_0x4663ae[_0x13a7b7]=this['_fixRange'](_0x3abdd3,_0x5d1f29);}_0x25d7('0x1a')===_0x13a7b7&&(_0x4663ae[_0x25d7('0x1a')]=_0x22fc99[_0x25d7('0xac')](_0x4663ae[_0x25d7('0x1a')][_0x25d7('0x47')]));}}[_0x25d7('0x57')](_0x184b2c,_0x25dd6b){return this[_0x25d7('0xfb')][_0x25d7('0x87')]['createRange'](this[_0x25d7('0x7e')](_0x184b2c[_0x25d7('0x2f')],_0x25dd6b),this[_0x25d7('0x7e')](_0x184b2c[_0x25d7('0xf0')],_0x25dd6b));}[_0x25d7('0x7e')](_0x52b259,_0x3d2547){return this[_0x25d7('0xfb')][_0x25d7('0x87')][_0x25d7('0x1e')](_0x3d2547,_0x52b259[_0x25d7('0xdd')],_0x52b259[_0x25d7('0x5d')]);}['_handleInsertOperation'](_0x2a0965){const _0xd5c39e=this[_0x25d7('0xda')][_0x25d7('0xac')](_0x2a0965[_0x25d7('0x8c')][_0x25d7('0x1a')][_0x25d7('0x47')]),_0x10a10c=this[_0x25d7('0x7e')](_0x2a0965[_0x25d7('0x8c')],_0xd5c39e),_0x3237da=null===_0x2a0965[_0x25d7('0x9f')]?null:_0x2a0965[_0x25d7('0x9f')]||this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')](_0x25d7('0x1b'))['me']['id'],_0x49678c=_0x10a10c['parent'],_0xe5fa8e=this[_0x25d7('0x6f')],_0x1f7d99=[];for(const _0x42135f of _0x2a0965[_0x25d7('0x12')])if(_0x42135f['is'](_0x25d7('0x8b')))_0x1f7d99['push'](this['_makeIdsRoot'](_0x42135f));else for(let _0x28689d=0x0;_0x28689d<_0x42135f[_0x25d7('0xb9')];_0x28689d++)_0x1f7d99[_0x25d7('0x1')](new _0x49875f('$text',{'vid':this['_revisionId']++}));const _0x251da1=this[_0x25d7('0x6f')];for(let _0x4114cf=_0xe5fa8e;_0x4114cf<_0x251da1;_0x4114cf++)this[_0x25d7('0x53')]['set'](_0x4114cf,{'userId':_0x3237da});_0x49678c['_insertChild'](_0x10a10c[_0x25d7('0x7f')],_0x1f7d99);}['_handleMoveOperation'](_0x27c504){(_0x27c504=this[_0x25d7('0xb7')](_0x27c504,this['_idsRoots']))[_0x25d7('0x96')]();const _0x17d8f4=null===_0x27c504['_authorId']?null:_0x27c504['_authorId']||this[_0x25d7('0xfb')][_0x25d7('0x43')]['get']('Users')['me']['id'],_0x385279=_0x27c504['getMovedRangeStart'](),_0x134dce=_0x385279[_0x25d7('0x67')],_0x12e9c6=_0x385279[_0x25d7('0x7f')];!function _0x1bc11e(_0x48b26c,_0x5ed53a,_0x1e712b,_0x5153ec){for(let _0x5a0449=_0x1e712b;_0x5a0449<_0x5153ec;_0x5a0449++){const _0xc5ff8e=_0x5ed53a[_0x25d7('0xab')](_0x5a0449);_0xc5ff8e['is'](_0x25d7('0x8b'),'$text')?_0x48b26c[_0x25d7('0x92')](_0xc5ff8e['getAttribute'](_0x25d7('0x7c')),{'userId':_0x17d8f4}):(_0x48b26c[_0x25d7('0x92')](_0xc5ff8e[_0x25d7('0xdb')]('vid_start'),{'userId':_0x17d8f4}),_0x1bc11e(_0x48b26c,_0xc5ff8e,0x0,_0xc5ff8e[_0x25d7('0xbb')]),_0x48b26c[_0x25d7('0x92')](_0xc5ff8e[_0x25d7('0xdb')](_0x25d7('0x39')),{'userId':_0x17d8f4}));}}(this[_0x25d7('0x53')],_0x134dce,_0x12e9c6,_0x12e9c6+_0x27c504[_0x25d7('0x14')]);}[_0x25d7('0x73')](_0x3fd2e9){const _0xe76144=null===(_0x3fd2e9=this[_0x25d7('0xb7')](_0x3fd2e9,this['_idsRoots']))[_0x25d7('0x9f')]?null:_0x3fd2e9[_0x25d7('0x9f')]||this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')](_0x25d7('0x1b'))['me']['id'],_0x9d49e5=_0x3fd2e9['targetPosition'][_0x25d7('0x67')],_0x5a8665=_0x3fd2e9[_0x25d7('0xe3')][_0x25d7('0x67')],_0x2b9b4a=_0x9d49e5[_0x25d7('0xdb')](_0x25d7('0x39')),_0x1ee238=_0x5a8665[_0x25d7('0xdb')](_0x25d7('0xd3'));_0x9d49e5[_0x25d7('0x2b')](_0x25d7('0x39'),_0x5a8665[_0x25d7('0xdb')]('vid_end')),_0x5a8665['_setAttribute'](_0x25d7('0x39'),_0x2b9b4a),this[_0x25d7('0x53')][_0x25d7('0x92')](_0x1ee238,{'userId':_0xe76144}),this['_touched']['set'](_0x2b9b4a,{'userId':_0xe76144}),_0x3fd2e9[_0x25d7('0x96')]();}[_0x25d7('0x3d')](_0x5cea9e){const _0x2b1a1a=null===(_0x5cea9e=this[_0x25d7('0xb7')](_0x5cea9e,this[_0x25d7('0xda')]))[_0x25d7('0x9f')]?null:_0x5cea9e[_0x25d7('0x9f')]||this['editor'][_0x25d7('0x43')][_0x25d7('0xac')](_0x25d7('0x1b'))['me']['id'],_0x59dca0=_0x5cea9e[_0x25d7('0xd')],_0x53de2a=_0x5cea9e[_0x25d7('0xa9')][_0x25d7('0x67')];_0x5cea9e[_0x25d7('0x96')]();const _0x491dab=_0x53de2a['getAttribute'](_0x25d7('0x39')),_0x148a30=_0x5cea9e['insertionPosition'][_0x25d7('0xd2')];if(_0x59dca0){const _0x4026e2=_0x148a30[_0x25d7('0xdb')](_0x25d7('0x39')),_0x53f13d=_0x53de2a[_0x25d7('0xdb')]('vid_end');_0x53de2a['_setAttribute']('vid_end',_0x4026e2),_0x148a30[_0x25d7('0x2b')]('vid_end',_0x53f13d),this[_0x25d7('0x53')][_0x25d7('0x92')](_0x53de2a['getAttribute'](_0x25d7('0x39')),{'userId':_0x2b1a1a}),this[_0x25d7('0x53')]['set'](_0x148a30[_0x25d7('0xdb')]('vid_start'),{'userId':_0x2b1a1a});}else{const _0x3e8e59=this[_0x25d7('0x6f')]++,_0x47a4b6=this[_0x25d7('0x6f')]++;_0x53de2a[_0x25d7('0x2b')](_0x25d7('0x39'),_0x3e8e59),_0x148a30[_0x25d7('0x2b')]('vid_start',_0x47a4b6),_0x148a30[_0x25d7('0x2b')](_0x25d7('0x39'),_0x491dab),this['_touched'][_0x25d7('0x92')](_0x3e8e59,{'userId':_0x2b1a1a}),this[_0x25d7('0x53')][_0x25d7('0x92')](_0x47a4b6,{'userId':_0x2b1a1a});}}[_0x25d7('0xf5')](_0x4239f9){if(!_0x4239f9[_0x25d7('0x70')])return;const _0x530ed0=(_0x4239f9=this['_cloneOperation'](_0x4239f9,this[_0x25d7('0x16')]))[_0x25d7('0x3a')]?_0x4239f9[_0x25d7('0x3a')][_0x25d7('0x1a')]:null,_0x2bb7e7=_0x4239f9[_0x25d7('0x84')]?_0x4239f9[_0x25d7('0x84')][_0x25d7('0x1a')]:null;_0x530ed0&&this[_0x25d7('0x6')][_0x25d7('0xc3')](_0x4239f9[_0x25d7('0x71')]),_0x2bb7e7&&this[_0x25d7('0x6')][_0x25d7('0x92')](_0x4239f9[_0x25d7('0x71')],_0x4239f9[_0x25d7('0x84')][_0x25d7('0x48')]());const _0x5570d1=null===_0x4239f9[_0x25d7('0x9f')]?null:_0x4239f9[_0x25d7('0x9f')]||this[_0x25d7('0xfb')][_0x25d7('0x43')]['get'](_0x25d7('0x1b'))['me']['id'],_0x5ebcbb=_0x4239f9['name'];if(!this[_0x25d7('0xde')][_0x25d7('0xf3')](_0x5ebcbb))return void this['_touchedMarkers'][_0x25d7('0x92')](_0x5ebcbb,{'range':_0x4239f9[_0x25d7('0x3a')],'userId':_0x5570d1});const _0x16effd=this['_touchedMarkers'][_0x25d7('0xac')](_0x5ebcbb),_0x137cce=_0x16effd[_0x25d7('0x26')],_0x27d1f1=_0x4239f9['newRange'];null==_0x137cce&&null==_0x27d1f1||_0x137cce&&_0x27d1f1&&_0x137cce[_0x25d7('0x10')](_0x27d1f1)?this[_0x25d7('0xde')]['delete'](_0x4239f9['name']):_0x16effd[_0x25d7('0xfc')]=_0x5570d1;}[_0x25d7('0x17')](_0x29bf5e,_0x363575){this[_0x25d7('0x16')][_0x25d7('0xf3')](_0x29bf5e[_0x25d7('0x47')])?this[_0x25d7('0x16')][_0x25d7('0xac')](_0x29bf5e[_0x25d7('0x47')])['_isAttached']=_0x29bf5e[_0x25d7('0x3')]:(this[_0x25d7('0x16')][_0x25d7('0x92')](_0x29bf5e[_0x25d7('0x47')],G(_0x29bf5e[_0x25d7('0x47')],!0x0)),this[_0x25d7('0x97')]['set'](_0x29bf5e['rootName'],{}),_0x363575&&this['_idsRoots'][_0x25d7('0x92')](_0x29bf5e[_0x25d7('0x47')],G(_0x29bf5e[_0x25d7('0x47')],!0x0)));const _0x319580=null===_0x29bf5e[_0x25d7('0x9f')]?null:_0x29bf5e[_0x25d7('0x9f')]||this[_0x25d7('0xfb')][_0x25d7('0x43')][_0x25d7('0xac')](_0x25d7('0x1b'))['me']['id'],_0x27b2f1=this[_0x25d7('0x93')][_0x25d7('0xac')](_0x29bf5e['rootName']);_0x27b2f1&&_0x27b2f1[_0x25d7('0xfc')]===_0x319580?this[_0x25d7('0x93')][_0x25d7('0xc3')](_0x29bf5e[_0x25d7('0x47')]):this[_0x25d7('0x93')]['set'](_0x29bf5e[_0x25d7('0x47')],{'userId':_0x319580,'isAttached':_0x29bf5e[_0x25d7('0x3')]});}[_0x25d7('0xe8')](_0x3a3231){const _0x910459=this[_0x25d7('0x97')][_0x25d7('0xac')](_0x3a3231[_0x25d7('0x1a')]['rootName']);null===_0x3a3231['newValue']?delete _0x910459[_0x3a3231['key']]:_0x910459[_0x3a3231[_0x25d7('0x86')]]=_0x3a3231['newValue'];}}function q(_0x39bcc2){const _0xe2120a=G(_0x39bcc2['rootName'],_0x39bcc2[_0x25d7('0xe4')]());for(const _0x348238 of _0x39bcc2[_0x25d7('0xce')]()){const _0x11b64d=_0x348238['_clone'](!0x0);_0xe2120a['_appendChild'](_0x11b64d);}return _0xe2120a;}function G(_0x2695c3,_0x3a7812=!0x0){const _0x6b2392=new _0x4585e6();return _0x6b2392[_0x25d7('0x47')]=_0x2695c3,_0x6b2392[_0x25d7('0x2c')]=_0x3a7812,_0x6b2392[_0x25d7('0xe4')]=()=>_0x6b2392[_0x25d7('0x2c')],_0x6b2392;}function L(_0x36ece0,_0x593ee4,_0x47c73d){const _0x50a095='elementEnd'==_0x36ece0[_0x25d7('0xca')]?_0x47c73d['createPositionAt'](_0x36ece0[_0x25d7('0x78')],'end'):_0x47c73d[_0x25d7('0xdf')](_0x36ece0[_0x25d7('0x78')]);return _0x47c73d['createPositionFromPath'](_0x593ee4,_0x50a095[_0x25d7('0xdd')],_0x50a095[_0x25d7('0x5d')]);}function W(_0x4794ae,_0x5e127b,_0xa27e46){const _0x2b99c0='elementStart'==_0x4794ae[_0x25d7('0xca')]?_0xa27e46[_0x25d7('0xdc')](_0x4794ae[_0x25d7('0x78')],0x0):_0xa27e46[_0x25d7('0xef')](_0x4794ae[_0x25d7('0x78')]);return _0xa27e46[_0x25d7('0x1e')](_0x5e127b,_0x2b99c0['path'],_0x2b99c0['stickiness']);}
|