@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231019.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eb7=['vid_end','_pendingAction','_execute','addRevisionData','deletion','_update','remove','reInit','splitPosition','getRevisions','_revisionId','_isAttached','elementEnd','_loadRevisionData','string','find','authors','_idsRoots','editor-initial-data-replaced-with-revision-data','isEqual','_clone','detachRoot','_markChanges','_removeMetaData','getChildren','_handleInsertOperation','toVersion','getChild','for','_processRootBeforeSave','roots','_handleRootOperation','_handleMarkerOperation','_handleMergeOperation','creator','PENDING_ACTION_REVISION_HISTORY','getRange','_baseIdsRoots','_setAttribute','revisionHistory.resumeUnsavedRevision','source','PendingActions','initial','merge','_source','stickiness','toData','authorsIds','_getBaseVids','_replaceEditorDataWithRevisionData','sourcePosition','Users','name','attributes','createPositionFromPath','useFillerType','changeRootAttribute','vid_start','adapter','_bufferedUpdates','getData','fromVersion','createRangeIn','history','_touchedRoots','addRevision','nodes','getIndex','addRootAttribute','getAttribute','loadState','getRevisionDocumentData','parent','get','afterInit','type','_createCurrentRevision','updateRevisions','getTransformedByOperation','sendBufferedUpdates','insertion','getRevision','version','insert','item','init','sort','range','push','deletions','isReady','data-revision-','add','has','forEach','_handleMoveOperation','userId','affectsData','getTime','_startingVersion','start','_applyOperations','attributesAfter','_reset','markers','filter','baseVersion','slice','getRootNames','position','elementStart','define','isAttached','attachChange','_revisionDataBuilder','resolve','offset','_setConversion','_startingRevisionId','_removeRevisionMarkers','getLatestVersion','_getState','previousPosition','hasContent','dataToMarker','insertions','length','_fixRange','Empty\x20document','_savedMetaData','_handleSplitOperation','clone','createPositionBefore','RealTimeCollaborationClient','getOperation','createRevision','markerToData','ready','revision:','$graveyard','parse','document','newRange','repository','toModel','_isPendingUpdate','delete','data','_diffRoots','_lastFrom','getWalker','_handleRootAttributeOperation','marked','default','processor','_fixPosition','_getViewJson','RevisionsRepository','collaboration.channelId','size','_prepareViewToSave','_calculateMetaData','move','vid','attributesBefore','_loadState','createPositionAt','removeRootAttribute','Initial\x20revision','_getPreviousFrom','_saveMetaData','_getFromVersion','_operations','_insertChild','requires','_baseRootsAttributes','max','isEnabled','offsetSize','getRoot','graveyardPosition','editor','key','_touched','getAncestors','getMovedRangeStart','set','root','paragraph','reverse','split','startsWith','_handleOperation','setSource','keepParagraph','_makeRevision','_cloneOperation','keys','_isInit','documentFragment','_makeIdsRoot','_loadedStateData','editing','_bufferUpdate','childCount','_getVidAttributeName','reinsert','getNodeByPath','config','NEGATIVE_INFINITY','_createFromRanges','values','getCurrentRevisionId','$text','_createInitialRevision','_findInsertionIndex','createdAt','buildRevisionData','from','clear','dataDowncast','trim','children','then','_continueCurrentRevision','_transformMarkers','initialData','locale','finally','getOperations','map','_touchedMarkers','shift','_authorId','_generateTape','_copyMarkers','oldRange','_diffRootsAttributes','targetPosition','diffData','_appendChild','_removePendingAction','view','_markers','rootsAttributes','isAdd','_lastTo','newValue','_initialRevisionId','rootName','getUser','marker','tableCell','_addPendingAction','_fixOperation','element','howMany','path','creatorId','fromEntries','setRevisionData','plugins','_baseRoots','end','model','currentRevision','insertionPosition','conversion','addRoot'];(function(_0x5d3b1f,_0x3eb709){const _0x1efa6f=function(_0x5ae1e1){while(--_0x5ae1e1){_0x5d3b1f['push'](_0x5d3b1f['shift']());}};_0x1efa6f(++_0x3eb709);}(_0x3eb7,0x1ec));const _0x1efa=function(_0x5d3b1f,_0x3eb709){_0x5d3b1f=_0x5d3b1f-0x0;let _0x1efa6f=_0x3eb7[_0x5d3b1f];return _0x1efa6f;};import{Users as _0x611cc4}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x28a56d,PendingActions as _0x41fc44}from'ckeditor5/src/core';import{logWarning as _0x423018,uid as _0x5a49bf}from'ckeditor5/src/utils';import{Position as _0x40ca33,Range as _0x4bae08,Element as _0x54f8f9,DocumentFragment as _0x638994,ViewText as _0x9be36c,ViewElement as _0x145c57,ViewContainerElement as _0x5ce86e,ViewAttributeElement as _0x1f4cba,ViewEmptyElement as _0x4fac98,ViewRawElement as _0x9e905e,ViewUIElement as _0x322bd4,ViewDocumentFragment as _0x394920}from'ckeditor5/src/engine';import _0x2ed9bd from'./revisionsrepository';import{getTranslation as _0xf72c0}from'./utils/common-translations';import{cloneDeep as _0x3876ea,isEqual as _0x59b0dd}from'lodash-es';const B={'c':_0x5ce86e,'a':_0x1f4cba,'e':_0x4fac98,'r':_0x9e905e,'u':_0x322bd4};export default class l extends _0x28a56d{static get['pluginName'](){return'RevisionTracker';}static get[_0x1efa('0xdc')](){return[_0x611cc4,_0x2ed9bd,_0x41fc44];}constructor(_0x8ac3e3){super(_0x8ac3e3),this['adapter']=null,this[_0x1efa('0x2a')]=null,this[_0x1efa('0xa0')]=new H(this[_0x1efa('0xe3')]),this[_0x1efa('0x19')]=this['editor'][_0x1efa('0xfe')][_0x1efa('0x77')](_0x1efa('0xcc'))||_0x1efa('0x58'),this[_0x1efa('0x69')]=new Map(),this[_0x1efa('0xf7')]=null;const _0x430992=_0x5a49bf();this[_0x1efa('0x5a')]={'history':this['editor'][_0x1efa('0x29')]['document'][_0x1efa('0x6d')],'getLatestVersion':()=>Promise[_0x1efa('0xa1')](this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x80')]),'getCurrentRevisionId':()=>_0x430992},this['set'](_0x1efa('0x88'),!0x1),this[_0x1efa('0xe8')](_0x1efa('0xdf'),!0x0),this['set'](_0x1efa('0xbf'),!0x1),this['editor'][_0x1efa('0xfe')][_0x1efa('0x9d')](_0x1efa('0x55'),!0x0),this[_0x1efa('0xe3')]['conversion'][_0x1efa('0x4a')]('upcast')[_0x1efa('0xaa')]({'view':'revision'});}[_0x1efa('0x83')](){this[_0x1efa('0xbd')]=this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0xcb')),this[_0x1efa('0xa3')](),this[_0x1efa('0xe3')]['data']['on'](_0x1efa('0xb7'),()=>{const _0x45cf37=this[_0x1efa('0xbd')]['getRevision'](0x0),_0x2af00e=_0x45cf37&&null===_0x45cf37['creator']?_0x45cf37:null;if(this[_0x1efa('0x1')]=!!_0x2af00e&&this[_0x1efa('0xe3')][_0x1efa('0xfe')]['get'](_0x1efa('0x55')),this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x8b')](_0x1efa('0xb3'))){const _0x15e313=this['_source'][_0x1efa('0x102')](),_0x294db0=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x15e313);if(_0x294db0)this['_startingVersion']=_0x294db0[_0x1efa('0x6b')],this[_0x1efa('0x1')]=!0x1;else{const _0x50ade8=this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0xda')]['find'](_0x501e43=>!_0x501e43[_0x1efa('0xf4')]),_0x16378e=_0x50ade8?_0x50ade8[_0x1efa('0x98')]:this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0x80')];_0x45cf37?(_0x45cf37['toVersion']<_0x16378e&&_0x45cf37[_0x1efa('0x33')]({'toVersion':_0x16378e}),this[_0x1efa('0x1')]?(this[_0x1efa('0x5a')][_0x1efa('0x102')]=()=>_0x2af00e['id'],this[_0x1efa('0x91')]=_0x2af00e[_0x1efa('0x6b')]):(this[_0x1efa('0x91')]=_0x45cf37[_0x1efa('0x48')],this[_0x1efa('0x1')]=!0x1)):(this[_0x1efa('0x91')]=_0x16378e,this[_0x1efa('0x1')]=!0x1);}}else _0x2af00e&&(this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x6d')][_0x1efa('0x80')]=Math[_0x1efa('0xde')](_0x2af00e[_0x1efa('0x48')],this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x6d')][_0x1efa('0x80')]),_0x2af00e[_0x1efa('0x6b')]===_0x2af00e[_0x1efa('0x48')]?(0x0!==_0x2af00e[_0x1efa('0x6b')]&&(this[_0x1efa('0x5a')][_0x1efa('0x102')]=()=>_0x2af00e['id']),this[_0x1efa('0x1')]=!0x1):this['_continueCurrentRevision']&&(this[_0x1efa('0x5a')]['getCurrentRevisionId']=()=>_0x2af00e['id'],this[_0x1efa('0x91')]=_0x2af00e[_0x1efa('0x6b')])),this[_0x1efa('0x1')]||(this['_startingVersion']=this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0x80')]);this[_0x1efa('0xa0')]['init'](this[_0x1efa('0x5a')][_0x1efa('0x6d')]),this['_createInitialRevision'](this[_0x1efa('0x91')]),this[_0x1efa('0x7a')](this[_0x1efa('0x91')]),this[_0x1efa('0x68')]&&this[_0x1efa('0x7d')]();}),this['bind']('isReady')['to'](this,_0x1efa('0xbf'),_0x3d0e3b=>!_0x3d0e3b);}async[_0x1efa('0x78')](){if(this['repository']['length']>0x0){const _0x4d9616=this[_0x1efa('0xbd')][_0x1efa('0x7f')](0x0),_0x3bd752=await this[_0x1efa('0x75')](_0x4d9616),_0x2974f8=await this['getRevisionRootsAttributes'](_0x4d9616);this['_replaceEditorDataWithRevisionData'](_0x3bd752,_0x2974f8);}}[_0x1efa('0xef')](_0x55b6ce){this['_source']=_0x55b6ce;}async['update'](){const _0x311af3=await this[_0x1efa('0x5a')][_0x1efa('0xa6')]();if(_0x311af3>this['currentRevision'][_0x1efa('0x48')]){await this[_0x1efa('0xd3')]();const _0x396e1a=this['buildRevisionData']({'revision':this[_0x1efa('0x2a')],'to':_0x311af3});_0x396e1a[_0x1efa('0x3e')]=_0x396e1a[_0x1efa('0x5d')]['map'](_0x3f165b=>this[_0x1efa('0xe3')]['plugins'][_0x1efa('0x77')](_0x1efa('0x61'))['getUser'](_0x3f165b)),this[_0x1efa('0x2a')][_0x1efa('0x33')](_0x396e1a);}}async[_0x1efa('0xd3')](){this['_continueCurrentRevision']&&!this[_0x1efa('0xf7')]&&(await this[_0x1efa('0x3b')](this[_0x1efa('0x2a')]),this[_0x1efa('0xa0')][_0x1efa('0x74')](this[_0x1efa('0x2a')]),this[_0x1efa('0xf7')]={'fromVersion':this['currentRevision'][_0x1efa('0x6b')],'authors':this[_0x1efa('0x2a')]['authors'][_0x1efa('0x99')]()});}async['saveRevision'](_0x21888e={},_0x1f7e9d=null){const _0x32191f=[];await this[_0x1efa('0xd3')](),this[_0x1efa('0x1')]=!0x1,_0x1f7e9d>this['currentRevision'][_0x1efa('0x48')]&&(_0x1f7e9d=null),null===_0x1f7e9d&&(_0x1f7e9d=await this[_0x1efa('0x5a')][_0x1efa('0xa6')]());const _0x2de304=this[_0x1efa('0xd9')](_0x1f7e9d),_0x1586a8=this[_0x1efa('0x107')]({'from':_0x2de304,'to':_0x1f7e9d});if(this[_0x1efa('0x2a')][_0x1efa('0x48')]<_0x1f7e9d){const _0x22e0f1=this[_0x1efa('0x107')]({'revision':this[_0x1efa('0x2a')],'from':_0x1f7e9d,'to':_0x1f7e9d});_0x22e0f1['authors']=[],_0x22e0f1['authorsIds']=[],_0x22e0f1['id']=this[_0x1efa('0x2a')]['id'],this[_0x1efa('0x2a')][_0x1efa('0x33')](_0x22e0f1,!0x0),delete _0x22e0f1[_0x1efa('0x3e')],_0x32191f[_0x1efa('0x86')](_0x22e0f1);}_0x21888e[_0x1efa('0x23')]=this['editor'][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x21888e[_0x1efa('0x62')]=_0x21888e[_0x1efa('0x62')]||null,_0x21888e['id']=_0x21888e['id']||_0x5a49bf(),_0x21888e={..._0x21888e,..._0x1586a8};const _0x1faca4=this[_0x1efa('0x31')](_0x21888e);_0x32191f['push'](_0x21888e);const _0x27eb94=this[_0x1efa('0xbd')][_0x1efa('0x71')](_0x1faca4);if(0x0!==_0x27eb94){const _0x2dc8a9=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27eb94-0x1);if(_0x2dc8a9[_0x1efa('0x6b')]!==_0x1f7e9d){const _0x451123=this[_0x1efa('0xa0')]['getData'](_0x1f7e9d,_0x2dc8a9[_0x1efa('0x48')]),_0x343a75={'id':_0x2dc8a9['id'],'diffData':_0x451123[_0x1efa('0x10')],'authorsIds':_0x451123[_0x1efa('0x5d')],'authors':_0x451123[_0x1efa('0x5d')][_0x1efa('0x7')](_0x49be61=>this[_0x1efa('0xe3')]['plugins'][_0x1efa('0x77')](_0x1efa('0x61'))[_0x1efa('0x1b')](_0x49be61)),'fromVersion':_0x1f7e9d};_0x2dc8a9===this[_0x1efa('0x2a')]&&(_0x343a75[_0x1efa('0x106')]=new Date(_0x21888e[_0x1efa('0x106')][_0x1efa('0x90')]()+0xa)),_0x2dc8a9[_0x1efa('0x33')](_0x343a75,!0x0),delete _0x343a75[_0x1efa('0x3e')],_0x32191f['push'](_0x343a75);}}if(this[_0x1efa('0x68')]){for(const _0x65a7e1 of _0x32191f)this[_0x1efa('0xf9')](_0x65a7e1['id'],_0x65a7e1,!0x0);this[_0x1efa('0x7d')]();}return _0x1faca4;}[_0x1efa('0x31')](_0xff0a9f){const _0x4fd357=this[_0x1efa('0xbd')][_0x1efa('0xb5')](_0xff0a9f);return this['adapter']&&_0x4fd357['on'](_0x1efa('0x33'),(_0x566076,_0x44c157,_0x5bff92)=>{_0x5bff92||(this['_bufferUpdate'](_0x44c157['id'],_0x44c157,!0x0),this['sendBufferedUpdates']());}),this[_0x1efa('0xbd')][_0x1efa('0x6f')](_0x4fd357,this['_findInsertionIndex'](_0x4fd357)),_0x4fd357;}async[_0x1efa('0x75')](_0x5299e4){await this[_0x1efa('0x3b')](_0x5299e4);const _0x3cff7c={};for(const _0x44f48c in _0x5299e4['diffData']){if(_0x5299e4['diffData'][_0x44f48c]['attachChange']&&!_0x5299e4['diffData'][_0x44f48c][_0x1efa('0x9f')][_0x1efa('0x9e')])continue;const _0x572b64=this[_0x1efa('0xa5')](JSON[_0x1efa('0xba')](_0x5299e4[_0x1efa('0x10')][_0x44f48c][_0x1efa('0xab')])),_0xdca219=this['editor'][_0x1efa('0xf8')][_0x1efa('0x13')]['document'],_0x1c7d2f=new _0x394920(_0xdca219,_0x572b64[_0x1efa('0x7')](_0x3df812=>J(_0x3df812,this[_0x1efa('0xe3')])));this[_0x1efa('0xe3')][_0x1efa('0xc1')]['processor'][_0x1efa('0x65')](_0x1efa('0xc6')),_0x3cff7c[_0x44f48c]=this[_0x1efa('0xe3')][_0x1efa('0xc1')][_0x1efa('0xc8')][_0x1efa('0x5c')](_0x1c7d2f),this['editor'][_0x1efa('0xc1')]['processor'][_0x1efa('0x65')](_0x1efa('0xc7'));}return _0x3cff7c;}async['getRevisionRootsAttributes'](_0x48f44d){await this[_0x1efa('0x3b')](_0x48f44d);const _0x46fcd9={};for(const _0x49189e in _0x48f44d['diffData'])_0x48f44d['diffData'][_0x49189e][_0x1efa('0x9f')]&&!_0x48f44d[_0x1efa('0x10')][_0x49189e][_0x1efa('0x9f')][_0x1efa('0x9e')]||(_0x46fcd9[_0x49189e]=_0x48f44d['diffData'][_0x49189e][_0x1efa('0x94')]||{});return _0x46fcd9;}[_0x1efa('0x7d')](){if(0x0===this['_bufferedUpdates'][_0x1efa('0xcd')])return;if(this[_0x1efa('0xbf')])return;let _0x4679fc=Array[_0x1efa('0x108')](this[_0x1efa('0x69')][_0x1efa('0x101')]());this['_bufferedUpdates']['clear']();for(let _0x3192c5=0x0;_0x3192c5<_0x4679fc[_0x1efa('0xac')];_0x3192c5++){const _0x23dad1=_0x4679fc[_0x3192c5];let _0x5c579b=!0x1;for(const _0x161342 of Object[_0x1efa('0xf3')](_0x23dad1))void 0x0===_0x23dad1[_0x161342]?delete _0x23dad1[_0x161342]:'id'!==_0x161342&&(_0x5c579b=!0x0);_0x5c579b||(_0x4679fc[_0x3192c5]=null);}if(_0x4679fc=_0x4679fc[_0x1efa('0x97')](_0x3d0585=>null!==_0x3d0585),!_0x4679fc['length'])return;for(let _0x72a87f=0x0;_0x72a87f<_0x4679fc[_0x1efa('0xac')];_0x72a87f++){const _0x27c393=_0x4679fc[_0x72a87f];void 0x0!==_0x27c393[_0x1efa('0x6b')]&&void 0x0===_0x27c393[_0x1efa('0x48')]&&(_0x27c393[_0x1efa('0x48')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27c393['id'])[_0x1efa('0x48')]),void 0x0!==_0x27c393[_0x1efa('0x48')]&&void 0x0===_0x27c393['fromVersion']&&(_0x27c393[_0x1efa('0x6b')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27c393['id'])[_0x1efa('0x6b')]);}const _0x313e19=this[_0x1efa('0xe3')]['config'][_0x1efa('0x77')]('collaboration.channelId');this[_0x1efa('0xbf')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x1efa('0x7b')](_0x4679fc,_0x313e19)[_0x1efa('0x5')](()=>{this[_0x1efa('0xbf')]=!0x1;})['then'](_0x276bab=>{if(_0x276bab)for(const _0xe51aba of _0x276bab)this[_0x1efa('0x25')]({'id':_0xe51aba['id'],'createdAt':_0xe51aba[_0x1efa('0x106')]});this[_0x1efa('0x12')](),this[_0x1efa('0x7d')]();});}[_0x1efa('0x5f')](_0x3dcae0,_0x261072){let _0x254359=this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0x77')]('initialData'),_0x5773bf=this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0x77')](_0x1efa('0x15'));if(void 0x0===_0x254359){_0x254359={};for(const _0x3f6622 of this[_0x1efa('0xe3')][_0x1efa('0x29')]['document'][_0x1efa('0x9a')]())_0x254359[_0x3f6622]='';}if(_0x1efa('0x3c')==typeof _0x254359&&(_0x254359={'main':_0x254359}),void 0x0===_0x5773bf){_0x5773bf={};for(const _0x42ae46 of this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0x9a')]())_0x5773bf[_0x42ae46]={};}let _0x316505=!0x1;const _0x25aead=Object[_0x1efa('0xf3')](_0x254359),_0x366589=Object['keys'](_0x3dcae0);for(const _0x28911a of _0x25aead){if(_0x254359[_0x28911a]!==_0x3dcae0[_0x28911a]&&''!==_0x254359[_0x28911a][_0x1efa('0x10b')]()){_0x316505=!0x0;break;}if(!_0x59b0dd(_0x5773bf[_0x28911a],_0x261072[_0x28911a])&&Object[_0x1efa('0xf3')](_0x5773bf[_0x28911a])['length']>0x0){_0x316505=!0x0;break;}}_0x316505||(_0x316505=_0x366589['some'](_0x36598f=>!this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')]['getRoot'](_0x36598f))),_0x316505&&_0x423018(_0x1efa('0x40'),{'editorData':_0x254359,'editorRootsAttributes':_0x5773bf,'revisionData':_0x3dcae0,'revisionRootsAttributes':_0x261072}),this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0xe8')](_0x1efa('0x3'),_0x3dcae0),this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0xe8')](_0x1efa('0x15'),_0x261072);}[_0x1efa('0x1e')](){if(!this['_pendingAction']){const _0x135225=this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x57'));this[_0x1efa('0x2f')]=_0x135225[_0x1efa('0x8a')](_0xf72c0(this[_0x1efa('0xe3')]['locale'],_0x1efa('0x51')));}}[_0x1efa('0x12')](){this[_0x1efa('0x2f')]&&(this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x57'))[_0x1efa('0x34')](this[_0x1efa('0x2f')]),this[_0x1efa('0x2f')]=null);}[_0x1efa('0x105')](_0x358456){const _0x4ee776=this[_0x1efa('0xbd')][_0x1efa('0x37')]();_0x4ee776[_0x1efa('0xeb')]();let _0x51c149=0x0;for(;_0x51c149<_0x4ee776[_0x1efa('0xac')];){const _0x3c02d0=_0x4ee776[_0x51c149];if(_0x3c02d0===this[_0x1efa('0x2a')]){_0x51c149++;continue;}if(_0x3c02d0['id']===this[_0x1efa('0x19')])break;const _0x439ead=_0x358456[_0x1efa('0x48')]-_0x3c02d0[_0x1efa('0x48')]||_0x358456[_0x1efa('0x6b')]-_0x3c02d0['fromVersion'];if(_0x439ead>0x0)break;if(_0x439ead<0x0)_0x51c149++;else{if(!_0x358456['creator']&&_0x3c02d0[_0x1efa('0x50')])break;if(_0x3c02d0['creator']||!_0x358456[_0x1efa('0x50')]){if(_0x358456[_0x1efa('0x106')]>_0x3c02d0[_0x1efa('0x106')])break;_0x51c149++;}else _0x51c149++;}}return _0x51c149;}[_0x1efa('0x25')](_0x43c9ea){const _0x41d553=this[_0x1efa('0xbd')]['getRevision'](_0x43c9ea['id']);if(_0x43c9ea[_0x1efa('0x106')]&&(_0x43c9ea[_0x1efa('0x106')]=new Date(_0x43c9ea[_0x1efa('0x106')])),_0x43c9ea['authorsIds']){const _0x2ef73e=this[_0x1efa('0xe3')][_0x1efa('0x26')]['get'](_0x1efa('0x61'));_0x43c9ea[_0x1efa('0x3e')]=_0x43c9ea['authorsIds']['map'](_0x5c8271=>_0x2ef73e['getUser'](_0x5c8271));}_0x41d553[_0x1efa('0x33')](_0x43c9ea,!0x0);}[_0x1efa('0x107')]({revision:_0x5e9801=null,from:_0x6c845a=null,to:_0x4a4f2f=null}){_0x6c845a=null!==_0x6c845a?_0x6c845a:_0x5e9801[_0x1efa('0x6b')],_0x4a4f2f=null!==_0x4a4f2f?_0x4a4f2f:_0x5e9801[_0x1efa('0x48')];const _0x3ff27a=this[_0x1efa('0xa0')][_0x1efa('0x6a')](_0x6c845a,_0x4a4f2f),_0x4f2b3e={'diffData':_0x3ff27a['diffData'],'authorsIds':_0x3ff27a[_0x1efa('0x5d')],'fromVersion':_0x6c845a,'toVersion':_0x4a4f2f};if(!_0x5e9801||_0x4a4f2f!==_0x5e9801[_0x1efa('0x48')]){const _0x465d95=_0x4a4f2f-0x1,_0x4151f2=this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0xb4')](_0x465d95);_0x4f2b3e[_0x1efa('0x106')]=_0x4151f2&&_0x4151f2[_0x1efa('0x106')]||new Date();}if(this[_0x1efa('0xf7')]&&_0x6c845a===this[_0x1efa('0xf7')][_0x1efa('0x6b')])for(const _0x102b11 of this[_0x1efa('0xf7')]['authors'])_0x4f2b3e[_0x1efa('0x5d')]['includes'](_0x102b11['id'])||_0x4f2b3e[_0x1efa('0x5d')][_0x1efa('0x86')](_0x102b11['id']);return _0x4f2b3e;}[_0x1efa('0x3b')](_0x21662f){if(!_0x21662f||_0x21662f[_0x1efa('0x10')])return Promise[_0x1efa('0xa1')]();{const _0x1b6c60=this[_0x1efa('0xe3')][_0x1efa('0xfe')]['get'](_0x1efa('0xcc'));return this[_0x1efa('0x68')][_0x1efa('0x7f')]({'channelId':_0x1b6c60,'revisionId':_0x21662f['id']})[_0x1efa('0x0')](_0x206059=>{_0x21662f['diffData']=_0x206059[_0x1efa('0x10')];});}}[_0x1efa('0xf9')](_0x31831c,_0x4ce973,_0x519dbb){if(this['_bufferedUpdates'][_0x1efa('0x8b')](_0x31831c)){const _0x21c9ba=this[_0x1efa('0x69')][_0x1efa('0x77')](_0x31831c);_0x4ce973=_0x519dbb?{..._0x21c9ba,..._0x4ce973}:{..._0x4ce973,..._0x21c9ba};}this[_0x1efa('0x69')][_0x1efa('0xe8')](_0x31831c,_0x4ce973);}[_0x1efa('0xd9')](_0xf25a30){const _0xa575bc=this[_0x1efa('0xbd')]['getRevisions']();_0xa575bc['reverse'](),_0xa575bc[_0x1efa('0x9')]();const _0xf1d636=_0xa575bc['find'](_0xe03803=>_0xe03803['toVersion']<=_0xf25a30)[_0x1efa('0x48')];return _0xf1d636<this[_0x1efa('0x91')]?this[_0x1efa('0x91')]:_0xf1d636;}[_0x1efa('0x104')](_0x120bed){const _0x5422af=this['repository']['getRevision'](this[_0x1efa('0xbd')][_0x1efa('0xac')]-0x1);if(_0x5422af)this[_0x1efa('0x19')]=_0x5422af['id'];else{const _0x21ef3f=!this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')][_0x1efa('0x4c')]['find'](_0x408213=>this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xa9')](_0x408213)),_0xd915f0=this['editor'][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x2e067c=_0xf72c0(this['editor'][_0x1efa('0x4')],_0x21ef3f?_0x1efa('0xae'):_0x1efa('0xd6'));this['_makeRevision']({'from':_0x120bed,'to':_0x120bed,'id':this[_0x1efa('0x19')],'name':_0x2e067c,'creatorId':_0xd915f0});}}[_0x1efa('0x7a')](_0x377d2c){const _0x492177=this[_0x1efa('0x5a')]['getCurrentRevisionId']();this[_0x1efa('0x2a')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x492177),this[_0x1efa('0x2a')]||(this['currentRevision']=this[_0x1efa('0xf1')]({'from':_0x377d2c,'to':_0x377d2c,'id':_0x492177,'name':'','creatorId':null}));}[_0x1efa('0xf1')]({name:_0x22a743,from:_0x19fec9,to:_0x5a2ca1,creatorId:_0xc2dace,id:_0x594302}){const _0x278bd9=this[_0x1efa('0x107')]({'from':_0x19fec9,'to':_0x5a2ca1});_0x278bd9[_0x1efa('0x62')]=_0x22a743,_0x278bd9[_0x1efa('0x23')]=_0xc2dace,_0x278bd9['id']=_0x594302;const _0x34b4b2=this[_0x1efa('0x31')](_0x278bd9);return this[_0x1efa('0x68')]&&this[_0x1efa('0xf9')](_0x278bd9['id'],_0x278bd9,!0x0),_0x34b4b2;}['_setConversion'](){this[_0x1efa('0xe3')][_0x1efa('0x2c')]['for'](_0x1efa('0x10a'))[_0x1efa('0xb6')]({'model':'revision'});}[_0x1efa('0xa5')](_0x3cdea4){return(_0x3cdea4=_0x3cdea4[_0x1efa('0x97')](_0x239fec=>!_0x239fec[_0x1efa('0x62')]||'revision-start'!==_0x239fec[_0x1efa('0x62')]&&'revision-end'!==_0x239fec[_0x1efa('0x62')]))[_0x1efa('0x8c')](_0x2a274c=>{'string'!=typeof _0x2a274c&&(_0x2a274c[_0x1efa('0x10c')]=this[_0x1efa('0xa5')](_0x2a274c[_0x1efa('0x10c')]),_0x2a274c['attributes']=_0x2a274c[_0x1efa('0x63')]['filter'](_0x41a209=>!_0x41a209[0x0][_0x1efa('0xed')](_0x1efa('0x89'))));}),_0x3cdea4;}}function J(_0xccfd9f,_0x22dd73){const _0x7a54ca=_0x22dd73[_0x1efa('0xf8')]['view'][_0x1efa('0xbb')];if(_0x1efa('0x3c')==typeof _0xccfd9f)return new _0x9be36c(_0x7a54ca,_0xccfd9f);{const _0x2b2973=_0xccfd9f[_0x1efa('0x10c')][_0x1efa('0x7')](_0x47fc1a=>J(_0x47fc1a,_0x22dd73));return new(B[_0xccfd9f[(_0x1efa('0x79'))]]||_0x145c57)(_0x7a54ca,_0xccfd9f[_0x1efa('0x62')],_0xccfd9f[_0x1efa('0x63')],_0x2b2973);}}class H{constructor(_0x4ab63f){this[_0x1efa('0xe3')]=_0x4ab63f,this[_0x1efa('0xaf')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x1efa('0xc2')]=new Map(),this[_0x1efa('0xe')]=new Map(),this['_baseRoots']=new Map(),this[_0x1efa('0xdd')]=new Map(),this[_0x1efa('0x3f')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x1efa('0xe5')]=new Map(),this[_0x1efa('0x8')]=new Map(),this[_0x1efa('0x6e')]=new Map(),this[_0x1efa('0x38')]=0x1;}[_0x1efa('0x83')](_0x4dd269){this[_0x1efa('0x56')]=_0x4dd269;const _0x339bd6=new Map(),_0x4feb06=new Map(),_0x1db136=this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')][_0x1efa('0x4c')][_0x1efa('0x7')](_0x494efd=>_0x494efd[_0x1efa('0x1a')]);for(const _0x118287 of _0x1db136){const _0x45a49b=this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0xe1')](_0x118287),_0x454811=q(_0x45a49b);_0x339bd6['set'](_0x118287,_0x454811),_0x4feb06[_0x1efa('0xe8')](_0x118287,Object[_0x1efa('0x24')](_0x45a49b['getAttributes']()));}const _0x23bee4=Array[_0x1efa('0x108')](this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0x96')])[_0x1efa('0x7')](_0x59b60e=>[_0x59b60e['name'],_0x59b60e[_0x1efa('0x52')]()]),_0x4cbce1=this[_0x1efa('0x56')]['version'];this[_0x1efa('0xd8')](_0x4cbce1,_0x339bd6,_0x23bee4,_0x4feb06),this[_0x1efa('0xa4')]=this[_0x1efa('0x38')];const _0x1af092=new Map(),_0x481cd9=new Map();for(const _0x3d8162 of _0x1db136){const _0x5d0f42=G(_0x3d8162);_0x1af092[_0x1efa('0xe8')](_0x3d8162,_0x5d0f42),_0x481cd9[_0x1efa('0xe8')](_0x3d8162,{});}this[_0x1efa('0xd8')](Number[_0x1efa('0xff')],_0x1af092,[],_0x481cd9);}[_0x1efa('0x6a')](_0x6ea24d,_0x28ba5e){if(this[_0x1efa('0xc3')]===_0x6ea24d&&this['_lastTo']<=_0x28ba5e)this[_0x1efa('0xaf')]['size']>0x1&&this[_0x1efa('0x45')](this['_lastTo']),this[_0x1efa('0x93')](this[_0x1efa('0x17')],_0x28ba5e,!0x0);else{if(!this[_0x1efa('0xaf')]['has'](_0x6ea24d)){const _0x4c87d5=this[_0x1efa('0xd7')](_0x6ea24d);this[_0x1efa('0xcf')](_0x4c87d5,_0x6ea24d,!0x1);}this[_0x1efa('0xcf')](_0x6ea24d,_0x28ba5e,!0x0);}return this[_0x1efa('0xc3')]=_0x6ea24d,this[_0x1efa('0x17')]=_0x28ba5e,this[_0x1efa('0xa7')]();}[_0x1efa('0x74')](_0x1132cd){this['_reset'](),this[_0x1efa('0xc3')]=_0x1132cd['fromVersion'],this[_0x1efa('0x17')]=_0x1132cd[_0x1efa('0x48')];for(const _0x173676 in _0x1132cd['diffData']){const _0x1d7048=_0x1132cd['diffData'][_0x173676]['attachChange'],_0x5c4e80=_0x3876ea(_0x1132cd['diffData'][_0x173676][_0x1efa('0xd2')])||{},_0xa13af9=this['_makeModelFromViewString'](_0x1132cd[_0x1efa('0x10')][_0x173676][_0x1efa('0x87')]);_0xa13af9[_0x1efa('0x1a')]=_0x173676,_0xa13af9['_isAttached']=!_0x1d7048||!_0x1d7048[_0x1efa('0x9e')],_0xa13af9[_0x1efa('0x9e')]=()=>_0xa13af9[_0x1efa('0x39')],this[_0x1efa('0x27')][_0x1efa('0xe8')](_0x173676,_0xa13af9),this[_0x1efa('0xdd')][_0x1efa('0xe8')](_0x173676,_0x5c4e80),_0x1d7048&&this[_0x1efa('0x6e')][_0x1efa('0xe8')](_0x173676,_0x1d7048);const _0x4e8c52=this[_0x1efa('0xf6')](_0xa13af9);this[_0x1efa('0x53')][_0x1efa('0xe8')](_0x173676,_0x4e8c52);for(const [_0x2cecc4,_0x587459]of _0xa13af9[_0x1efa('0x96')]){if(!_0x2cecc4[_0x1efa('0xed')]('revision:'))continue;const _0x36c092=_0x2cecc4[_0x1efa('0xec')](':')[0x2];for(const _0x35205a of _0x587459[_0x1efa('0xc4')]({'singleCharacters':!0x0})){const _0x2822c3=this[_0x1efa('0xfb')](_0x35205a),_0x1ef58c='elementEnd'==_0x35205a[_0x1efa('0x79')]?_0x35205a[_0x1efa('0xa8')]['path'][_0x1efa('0x99')](0x0,-0x1):_0x35205a[_0x1efa('0xa8')]['path'],_0x3aad0b=_0x4e8c52[_0x1efa('0xfd')](_0x1ef58c)[_0x1efa('0x73')](_0x2822c3);this[_0x1efa('0xe5')]['set'](_0x3aad0b,{'userId':_0x36c092});}}}this[_0x1efa('0xa4')]=this[_0x1efa('0x38')];const _0x367611=[...Array(this[_0x1efa('0x38')])[_0x1efa('0xf3')]()][_0x1efa('0x99')](0x1)['filter'](_0x3e3bdb=>!this[_0x1efa('0xe5')][_0x1efa('0x8b')](_0x3e3bdb));let _0x2c6d89=0x0;const _0x1e698e=new Map();for(const _0x2ce84b in _0x1132cd[_0x1efa('0x10')]){const _0x1c5afb=_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0x9f')],_0x2df69f=_0x3876ea(_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0x94')])||{},_0x34ce7c=this['_makeModelFromViewString'](_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0xab')]);_0x34ce7c[_0x1efa('0x1a')]=_0x2ce84b,_0x34ce7c[_0x1efa('0x39')]=!_0x1c5afb||_0x1c5afb[_0x1efa('0x9e')],_0x34ce7c[_0x1efa('0x9e')]=()=>_0x34ce7c['_isAttached'],this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x2ce84b,_0x34ce7c),this[_0x1efa('0xe')]['set'](_0x2ce84b,_0x2df69f);const _0x20d4ac=this[_0x1efa('0xf6')](_0x34ce7c,Number[_0x1efa('0xff')]);this[_0x1efa('0x3f')]['set'](_0x2ce84b,_0x20d4ac),_0x1e698e[_0x1efa('0xe8')](_0x2ce84b,_0x34ce7c[_0x1efa('0x9e')]()?_0x2df69f:{});for(const [_0x567974,_0x104fbe]of _0x34ce7c[_0x1efa('0x96')]){if(!_0x567974['startsWith'](_0x1efa('0xb8')))continue;const _0x2857c9=_0x567974[_0x1efa('0xec')](':')[0x2];for(const _0x3a0b57 of _0x104fbe['getWalker']({'singleCharacters':!0x0})){const _0x5661ba=this['_getVidAttributeName'](_0x3a0b57),_0x20a0ae=this[_0x1efa('0x38')]++,_0x2542a5=_0x1efa('0x3a')==_0x3a0b57[_0x1efa('0x79')]?_0x3a0b57['previousPosition'][_0x1efa('0x22')]['slice'](0x0,-0x1):_0x3a0b57[_0x1efa('0xa8')][_0x1efa('0x22')];_0x20d4ac[_0x1efa('0xfd')](_0x2542a5)[_0x1efa('0x54')](_0x5661ba,_0x20a0ae),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x20a0ae,{'userId':_0x2857c9});}}for(const _0x50ae5d of this[_0x1efa('0xe3')]['model'][_0x1efa('0x6c')](_0x34ce7c)['getWalker']({'singleCharacters':!0x0})){const _0x357886=this[_0x1efa('0xfb')](_0x50ae5d),_0x11688a=_0x1efa('0x3a')==_0x50ae5d[_0x1efa('0x79')]?_0x50ae5d[_0x1efa('0xa8')][_0x1efa('0x22')][_0x1efa('0x99')](0x0,-0x1):_0x50ae5d[_0x1efa('0xa8')][_0x1efa('0x22')],_0x58c8d0=_0x20d4ac[_0x1efa('0xfd')](_0x11688a);_0x58c8d0[_0x1efa('0x73')](_0x357886)>0x0||_0x58c8d0[_0x1efa('0x54')](_0x357886,_0x367611[_0x2c6d89++]);}for(const [_0x4dfaa4,_0x232ab6]of _0x34ce7c['markers'])_0x4dfaa4[_0x1efa('0xed')]('revision:')||this[_0x1efa('0x14')][_0x1efa('0xe8')](_0x4dfaa4,_0x232ab6);}const _0x3754c0=G(_0x1efa('0xb9'));this['_baseRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),_0x3754c0),this[_0x1efa('0x53')][_0x1efa('0xe8')]('$graveyard',this[_0x1efa('0xf6')](_0x3754c0,0x1));const _0x404e45=G('$graveyard');this['_diffRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),_0x404e45),this['_idsRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),this['_makeIdsRoot'](_0x404e45,0x1));const _0x44467e=Array['from'](this['_diffRoots'])[_0x1efa('0x7')](([_0x4fa448,_0x167c1d])=>[_0x4fa448,q(_0x167c1d)]);this[_0x1efa('0xd8')](this[_0x1efa('0x17')],_0x44467e,this['_markers'],_0x1e698e);}['_makeModelFromViewString'](_0x4dabac){const _0x239329=JSON[_0x1efa('0xba')](_0x4dabac),_0x1b29cf=this[_0x1efa('0xe3')][_0x1efa('0xf8')][_0x1efa('0x13')]['document'],_0x4fd390=new _0x394920(_0x1b29cf,_0x239329[_0x1efa('0x7')](_0x1adc9d=>J(_0x1adc9d,this['editor'])));return this['editor'][_0x1efa('0xc1')][_0x1efa('0xbe')](_0x4fd390);}[_0x1efa('0xd8')](_0x30df07,_0x18a5a5,_0x26de0c,_0x4f06cd){const _0x276742=new Map(_0x18a5a5),_0x9d8199=new Map(_0x3876ea(_0x4f06cd)),_0x5ee84a=new Map();for(const [_0x158b89,_0x3b9bb4]of _0x26de0c)_0x5ee84a['set'](_0x158b89,{'start':_0x3b9bb4['start']['clone'](),'end':_0x3b9bb4[_0x1efa('0x28')][_0x1efa('0xb1')](),'rootName':_0x3b9bb4[_0x1efa('0xe9')][_0x1efa('0x1a')]});this['_savedMetaData'][_0x1efa('0xe8')](_0x30df07,{'roots':_0x276742,'markers':_0x5ee84a,'rootsAttributes':_0x9d8199});}[_0x1efa('0x45')](_0x235dad){this['_savedMetaData']['delete'](_0x235dad);}[_0x1efa('0x35')](){this[_0x1efa('0x95')](),this['_lastFrom']=-0x1,this[_0x1efa('0x17')]=-0x1,this['_savedMetaData'][_0x1efa('0x109')](),this[_0x1efa('0x83')](this['source']);}['_reset'](){this[_0x1efa('0xe5')]['clear'](),this[_0x1efa('0x8')][_0x1efa('0x109')](),this[_0x1efa('0x6e')][_0x1efa('0x109')](),this[_0x1efa('0xc2')][_0x1efa('0x109')](),this['_diffRootsAttributes']['clear'](),this[_0x1efa('0x27')][_0x1efa('0x109')](),this[_0x1efa('0xdd')][_0x1efa('0x109')](),this['_idsRoots'][_0x1efa('0x109')](),this[_0x1efa('0x53')][_0x1efa('0x109')](),this['_markers'][_0x1efa('0x109')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x1efa('0x38')];}[_0x1efa('0xf6')](_0x176a8f,_0x28b105=null){let _0x342300=null;_0x176a8f['is'](_0x1efa('0xf5'))||(_0x342300=new _0x54f8f9(_0x176a8f[_0x1efa('0x62')],{'vid_start':null===_0x28b105?this[_0x1efa('0x38')]++:_0x28b105++}));const _0x2ba18f=[];for(const _0xe78192 of _0x176a8f[_0x1efa('0x46')]())if(_0xe78192['is'](_0x1efa('0x20'))){_0x2ba18f[_0x1efa('0x86')](this['_makeIdsRoot'](_0xe78192,_0x28b105));const _0x138c07=_0x2ba18f[_0x2ba18f[_0x1efa('0xac')]-0x1];null!==_0x28b105&&(_0x28b105=_0x138c07['is'](_0x1efa('0x20'),'$text')?_0x138c07[_0x1efa('0x73')](_0x1efa('0xd1'))+0x1:_0x138c07[_0x1efa('0x73')](_0x1efa('0x2e'))+0x1);}else for(let _0x590d05=0x0;_0x590d05<_0xe78192[_0x1efa('0xe0')];_0x590d05++)_0x2ba18f['push'](new _0x54f8f9(_0x1efa('0x103'),{'vid':null===_0x28b105?this['_revisionId']++:_0x28b105++}));if(_0x176a8f['is']('documentFragment')){const _0xaa83dc=G(_0x176a8f[_0x1efa('0x1a')]);return _0xaa83dc[_0x1efa('0xdb')](0x0,_0x2ba18f),_0xaa83dc;}return _0x342300['_setAttribute'](_0x1efa('0x2e'),null===_0x28b105?this[_0x1efa('0x38')]++:_0x28b105++),_0x342300[_0x1efa('0xdb')](0x0,_0x2ba18f),_0x342300;}[_0x1efa('0xcf')](_0x20b919,_0x29bc8c,_0x247001){this['_reset']();const {roots:_0x53c8f2,markers:_0x57e054,rootsAttributes:_0x378197}=this['_savedMetaData'][_0x1efa('0x77')](_0x20b919);this[_0x1efa('0x27')]=new Map(_0x53c8f2),this[_0x1efa('0xdd')]=new Map(_0x3876ea(_0x378197));for(const [_0x1a10fe,_0x35c674]of this[_0x1efa('0x27')])if(_0x1efa('0xb9')!==_0x1a10fe&&(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x1a10fe,q(_0x35c674)),this[_0x1efa('0xe')]=new Map(_0x3876ea(_0x378197)),_0x247001)){const _0x1122ec=this[_0x1efa('0x38')];this['_idsRoots'][_0x1efa('0xe8')](_0x1a10fe,this['_makeIdsRoot'](_0x35c674)),this[_0x1efa('0x53')][_0x1efa('0xe8')](_0x1a10fe,this['_makeIdsRoot'](_0x35c674,_0x1122ec));}this[_0x1efa('0xa4')]=this['_revisionId'],this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x1efa('0xb9'),q(this[_0x1efa('0x27')][_0x1efa('0x77')](_0x1efa('0xb9')))),_0x247001&&this[_0x1efa('0x3f')][_0x1efa('0xe8')](_0x1efa('0xb9'),this['_makeIdsRoot'](this[_0x1efa('0x27')][_0x1efa('0x77')](_0x1efa('0xb9'))));for(const [_0x54dd07,_0x13f295]of _0x57e054){const _0x3b8598=this[_0x1efa('0x27')][_0x1efa('0x77')](_0x13f295[_0x1efa('0x1a')]),_0x212d04=this['_diffRoots'][_0x1efa('0x77')](_0x13f295[_0x1efa('0x1a')]),_0x1c0b89=new _0x4bae08(this[_0x1efa('0xc9')](_0x13f295[_0x1efa('0x92')],_0x3b8598),this[_0x1efa('0xc9')](_0x13f295[_0x1efa('0x28')],_0x3b8598)),_0x25ac59=this[_0x1efa('0xad')](_0x1c0b89,_0x212d04);_0x3b8598['markers'][_0x1efa('0xe8')](_0x54dd07,_0x1c0b89),this[_0x1efa('0x14')][_0x1efa('0xe8')](_0x54dd07,_0x25ac59);}this[_0x1efa('0x93')](_0x20b919,_0x29bc8c,_0x247001);}[_0x1efa('0x93')](_0x405cf8,_0x428f15,_0x26fe97){for(const _0x9a092d of this[_0x1efa('0x56')][_0x1efa('0x6')](_0x405cf8,_0x428f15))this[_0x1efa('0xee')](_0x9a092d,_0x26fe97);for(const _0x218c24 of this['_diffRoots'][_0x1efa('0x101')]())_0x218c24[_0x1efa('0x96')][_0x1efa('0x109')]();for(const [_0x2a2fa7,_0x4cca66]of this[_0x1efa('0x14')]){this[_0x1efa('0xc2')][_0x1efa('0x77')](_0x4cca66[_0x1efa('0xe9')][_0x1efa('0x1a')])['markers'][_0x1efa('0xe8')](_0x2a2fa7,_0x4cca66['clone']());}const _0x3ca374=new Map(),_0x186fa9=new Map();for(const [_0x1b2353,_0x2b7444]of this[_0x1efa('0xc2')])_0x3ca374[_0x1efa('0xe8')](_0x1b2353,q(_0x2b7444)),_0x186fa9['set'](_0x1b2353,this[_0x1efa('0xe')][_0x1efa('0x77')](_0x1b2353));this['_saveMetaData'](_0x428f15,_0x3ca374,this['_markers'],_0x186fa9);}['_getPreviousFrom'](_0x52c6dc){const _0xa15e2=Array[_0x1efa('0x108')](this['_savedMetaData'][_0x1efa('0xf3')]());_0xa15e2[_0x1efa('0x84')]((_0xbc212a,_0x17120d)=>_0xbc212a-_0x17120d),_0xa15e2[_0x1efa('0xeb')]();for(const _0x4db886 of _0xa15e2)if(_0x4db886<_0x52c6dc)return _0x4db886;return Number['NEGATIVE_INFINITY'];}[_0x1efa('0xc')](_0x4d2161,_0x120d85){const _0x5a901d=Array[_0x1efa('0x108')](_0x120d85['markers'])[_0x1efa('0x7')](([_0x1d07b1,_0x9f636a])=>[_0x1d07b1,this[_0x1efa('0xad')](_0x9f636a,_0x4d2161)]);_0x4d2161[_0x1efa('0x96')]=new Map(_0x5a901d);}[_0x1efa('0x2')](_0x50dd49){for(const _0x4edcb7 of this[_0x1efa('0x14')][_0x1efa('0x101')]()){const _0x27c7a3=_0x4edcb7[_0x1efa('0x7c')](_0x50dd49),_0x488404=_0x4bae08[_0x1efa('0x100')](_0x27c7a3);_0x4edcb7[_0x1efa('0x92')]=_0x488404['start'],_0x4edcb7[_0x1efa('0x28')]=_0x488404[_0x1efa('0x28')];}}['_handleOperation'](_0x13a85f,_0x3d7839){if(_0x1efa('0x2d')==_0x13a85f[_0x1efa('0x79')]||_0x1efa('0x43')==_0x13a85f[_0x1efa('0x79')])return void this[_0x1efa('0x4d')](_0x13a85f,_0x3d7839);if('insert'==_0x13a85f['type']){const _0x3970f6=_0x13a85f[_0x1efa('0x9b')][_0x1efa('0xe9')][_0x1efa('0x1a')];this[_0x1efa('0xc2')][_0x1efa('0x8b')](_0x3970f6)||(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x3970f6,G(_0x3970f6,!0x0)),this[_0x1efa('0xe')]['set'](_0x3970f6,{}),_0x3d7839&&this['_idsRoots'][_0x1efa('0xe8')](_0x3970f6,G(_0x3970f6,!0x0)));}else{if(_0x1efa('0x72')==_0x13a85f[_0x1efa('0x79')]||_0x1efa('0xd5')==_0x13a85f['type']||_0x1efa('0x66')==_0x13a85f[_0x1efa('0x79')])return void this['_handleRootAttributeOperation'](_0x13a85f);}const _0x9f3e41=this[_0x1efa('0xf2')](_0x13a85f,this[_0x1efa('0xc2')]);if(_0x1efa('0x1c')!==_0x13a85f['type']&&(_0x9f3e41[_0x1efa('0x30')](),this[_0x1efa('0x2')](_0x9f3e41)),_0x3d7839)switch(_0x9f3e41[_0x1efa('0x79')]){case _0x1efa('0x81'):this[_0x1efa('0x47')](_0x13a85f);break;case _0x1efa('0xd0'):case _0x1efa('0x34'):case _0x1efa('0xfc'):this[_0x1efa('0x8d')](_0x13a85f);break;case _0x1efa('0x59'):this['_handleMergeOperation'](_0x13a85f);break;case'split':this[_0x1efa('0xb0')](_0x13a85f);break;case _0x1efa('0x1c'):this[_0x1efa('0x4e')](_0x13a85f);}}['_cloneOperation'](_0x205b62,_0x5b056e){const _0x6ca352=_0x205b62[_0x1efa('0xb1')]();return _0x6ca352[_0x1efa('0xa')]=_0x205b62[_0x1efa('0xa')],this[_0x1efa('0x1f')](_0x6ca352,_0x5b056e),_0x6ca352;}[_0x1efa('0x5e')](_0xaba1ff){return _0xaba1ff[_0x1efa('0x7')](_0x3855bb=>{const _0x5bf6d7=this['_getVidAttributeName'](_0x3855bb);return Number(_0x3855bb[_0x1efa('0x82')]['getAttribute'](_0x5bf6d7));});}[_0x1efa('0xb')](_0x2a8292,_0x1f6b87){if(_0x2a8292['is'](_0x1efa('0x20'),'$text'))_0x1f6b87[_0x1efa('0x86')]({'item':_0x2a8292,'type':'text'});else{_0x2a8292['is'](_0x1efa('0x20'))&&_0x1f6b87[_0x1efa('0x86')]({'item':_0x2a8292,'type':'elementStart'});for(const _0x81de46 of _0x2a8292['getChildren']())this[_0x1efa('0xb')](_0x81de46,_0x1f6b87);_0x2a8292['is'](_0x1efa('0x20'))&&_0x1f6b87['push']({'item':_0x2a8292,'type':'elementEnd'});}return _0x1f6b87;}[_0x1efa('0xa7')](){const _0x5af435=new Map(this[_0x1efa('0xe5')]),_0x1e2f28=new Map(_0x5af435),_0x3baa9d=new Map(),_0x455bf8={'insertions':{},'deletions':{}},_0x355556={'insertions':{},'deletions':{}},_0x2dda18=new Map(),_0x30cb9b=new Set([...this[_0x1efa('0x27')]['keys'](),...this[_0x1efa('0xc2')][_0x1efa('0xf3')]()]);_0x30cb9b['delete'](_0x1efa('0xb9'));for(const _0x276c68 of _0x30cb9b){const _0x3c94fd=this[_0x1efa('0xc2')][_0x1efa('0x77')](_0x276c68)||G(_0x276c68,!0x1),_0x1de2f3=this['_baseRoots'][_0x1efa('0x77')](_0x276c68)||G(_0x276c68,!0x1);_0x3c94fd[_0x1efa('0x9e')]()||_0x1de2f3['isAttached']()?(_0x455bf8[_0x1efa('0xab')][_0x276c68]=q(_0x3c94fd),_0x455bf8[_0x1efa('0x87')][_0x276c68]=q(_0x1de2f3),this[_0x1efa('0xc')](_0x455bf8[_0x1efa('0x87')][_0x276c68],_0x1de2f3),this[_0x1efa('0xc')](_0x455bf8[_0x1efa('0xab')][_0x276c68],_0x3c94fd),_0x355556['insertions'][_0x276c68]=this['_generateTape'](this[_0x1efa('0x3f')][_0x1efa('0x77')](_0x276c68),[]),_0x355556[_0x1efa('0x87')][_0x276c68]=this[_0x1efa('0xb')](this[_0x1efa('0x53')]['get'](_0x276c68)||G(_0x276c68,!0x1),[])):_0x30cb9b['delete'](_0x276c68);}for(const _0x4e3aeb of _0x30cb9b){const _0x4c9bff=_0x355556[_0x1efa('0xab')][_0x4e3aeb];for(const _0x3d3109 of _0x4c9bff){const _0x516b57=this['_getVidAttributeName'](_0x3d3109),_0x525dce=_0x3d3109['item'][_0x1efa('0x73')](_0x516b57);_0x1e2f28['delete'](_0x525dce),_0x525dce>=this['_startingRevisionId']&&_0x3baa9d['set'](_0x525dce,_0x5af435[_0x1efa('0x77')](_0x525dce));}}for(const _0x5ed43a of _0x30cb9b){const _0x11f861=_0x355556[_0x1efa('0xab')][_0x5ed43a],_0x571152=this[_0x1efa('0x5e')](_0x355556[_0x1efa('0x87')][_0x5ed43a]);let _0x3f7409=0x0;for(const _0x5d4011 of _0x11f861){const _0x4b27ce=this['_getVidAttributeName'](_0x5d4011),_0x3ea9c8=_0x5d4011['item']['getAttribute'](_0x4b27ce);if(!_0x3baa9d[_0x1efa('0x8b')](_0x3ea9c8)&&!_0x2dda18['has'](_0x3ea9c8)){if(_0x1e2f28[_0x1efa('0x8b')](_0x3ea9c8))_0x3f7409++;else{if(_0x3ea9c8!=_0x571152[_0x3f7409]){const _0x49936d=_0x5af435[_0x1efa('0x77')](_0x3ea9c8)||_0x5af435['get'](_0x571152[_0x3f7409]);for(;_0x3ea9c8!=_0x571152[_0x3f7409];)_0x1e2f28[_0x1efa('0x8b')](_0x571152[_0x3f7409])||(_0x2dda18['set'](_0x571152[_0x3f7409],_0x49936d),_0x5af435[_0x1efa('0xe8')](_0x571152[_0x3f7409],_0x49936d)),_0x3f7409++;}_0x3f7409++;}}}}for(const _0x609706 of _0x30cb9b){const _0xd57474=_0x355556[_0x1efa('0xab')][_0x609706];for(const _0x2a79c3 of _0xd57474){const _0x393f29=this[_0x1efa('0xfb')](_0x2a79c3),_0x4938bc=_0x2a79c3[_0x1efa('0x82')][_0x1efa('0x73')](_0x393f29);if(_0x2dda18[_0x1efa('0x8b')](_0x4938bc)){const _0x200a81=_0x2dda18['get'](_0x4938bc);_0x1e2f28[_0x1efa('0x8b')](_0x4938bc)||_0x1e2f28[_0x1efa('0xe8')](_0x4938bc,{..._0x200a81}),_0x3baa9d[_0x1efa('0xe8')](_0x4938bc,{..._0x200a81});}}}for(const _0x5639c2 of _0x1e2f28['keys']())_0x5639c2>=this['_startingRevisionId']&&_0x1e2f28[_0x1efa('0xc0')](_0x5639c2);const _0x2bf4e0=new Map();for(const _0x4b7e11 of _0x30cb9b){let _0x15d6f1=_0x355556[_0x1efa('0xab')][_0x4b7e11];for(const _0x1d30e3 of _0x15d6f1)if(_0x1d30e3[_0x1efa('0x82')]['is'](_0x1efa('0x20'),_0x1efa('0x1d'))){const _0x11cb86=this['_getVidAttributeName'](_0x1d30e3),_0x310398=_0x1d30e3[_0x1efa('0x82')][_0x1efa('0x73')](_0x11cb86);if(_0x3baa9d[_0x1efa('0x8b')](_0x310398)){const _0x248656=_0x1d30e3[_0x1efa('0x82')][_0x1efa('0x76')][_0x1efa('0x76')][_0x1efa('0x73')]('vid_start'),_0x410b87=_0x2bf4e0[_0x1efa('0x77')](_0x248656)||new Set();_0x410b87[_0x1efa('0x8a')](_0x3baa9d[_0x1efa('0x77')](_0x310398)[_0x1efa('0x8e')]),_0x2bf4e0['set'](_0x248656,_0x410b87);}}_0x15d6f1=_0x355556['deletions'][_0x4b7e11];for(const _0x1af55d of _0x15d6f1)if(_0x1af55d[_0x1efa('0x82')]['is']('element',_0x1efa('0x1d'))){const _0x24887c=this['_getVidAttributeName'](_0x1af55d),_0x215522=_0x1af55d[_0x1efa('0x82')][_0x1efa('0x73')](_0x24887c);if(_0x1e2f28['has'](_0x215522)){const _0x50b6e3=_0x1af55d['item'][_0x1efa('0x76')][_0x1efa('0x76')][_0x1efa('0x73')](_0x1efa('0x67')),_0x3d97c6=_0x2bf4e0[_0x1efa('0x77')](_0x50b6e3)||new Set();_0x3d97c6[_0x1efa('0x8a')](_0x1e2f28[_0x1efa('0x77')](_0x215522)[_0x1efa('0x8e')]),_0x2bf4e0[_0x1efa('0xe8')](_0x50b6e3,_0x3d97c6);}}for(const _0x1b2c71 of _0x2bf4e0[_0x1efa('0xf3')]())(_0x3baa9d[_0x1efa('0x8b')](_0x1b2c71)||_0x1e2f28['has'](_0x1b2c71))&&_0x2bf4e0['delete'](_0x1b2c71);}for(const _0x219a2d of _0x30cb9b){const _0x59ca30=_0x355556[_0x1efa('0xab')][_0x219a2d];let _0x371a42=null,_0x43aaa9=null;for(const _0x171984 of _0x59ca30){const _0x90f8f6=this[_0x1efa('0xfb')](_0x171984),_0x7ceb41=_0x171984[_0x1efa('0x82')][_0x1efa('0x73')](_0x90f8f6),_0x57a00b=_0x2bf4e0[_0x1efa('0x77')](_0x7ceb41);_0x57a00b&&_0x1efa('0x9c')==_0x171984['type']&&(_0x371a42=Array[_0x1efa('0x108')](_0x57a00b)[0x0],_0x43aaa9=_0x171984[_0x1efa('0x82')][_0x1efa('0x73')](_0x1efa('0x2e'))),_0x371a42&&(_0x1e2f28[_0x1efa('0xe8')](_0x7ceb41,{'userId':_0x371a42}),_0x3baa9d['set'](_0x7ceb41,{'userId':_0x371a42})),_0x7ceb41==_0x43aaa9&&(_0x371a42=null,_0x43aaa9=null);}}const _0x37d28b={},_0x3427e9=new Set();for(const _0x17d149 of _0x30cb9b){const _0x47808f=_0x455bf8[_0x1efa('0x87')][_0x17d149],_0xa8db50=_0x455bf8[_0x1efa('0xab')][_0x17d149];for(const {userId:_0x83bdd0}of this['_touchedMarkers']['values']())null!==_0x83bdd0&&_0x3427e9[_0x1efa('0x8a')](_0x83bdd0);for(const {userId:_0xfb7bcc}of this['_touchedRoots'][_0x1efa('0x101')]())null!==_0xfb7bcc&&_0x3427e9[_0x1efa('0x8a')](_0xfb7bcc);this[_0x1efa('0x44')](_0xa8db50,_0x355556['insertions'][_0x17d149],_0x3baa9d,_0x1efa('0x7e'),_0x3427e9),this[_0x1efa('0x44')](_0x47808f,_0x355556[_0x1efa('0x87')][_0x17d149],_0x1e2f28,_0x1efa('0x32'),_0x3427e9),_0x37d28b[_0x17d149]={'insertions':this[_0x1efa('0xce')](_0xa8db50),'deletions':this['_prepareViewToSave'](_0x47808f),'attachChange':this[_0x1efa('0x6e')][_0x1efa('0x77')](_0x17d149)||null,'attributesBefore':_0x3876ea(this['_baseRootsAttributes'][_0x1efa('0x77')](_0x17d149))||{},'attributesAfter':_0x3876ea(this['_diffRootsAttributes'][_0x1efa('0x77')](_0x17d149))};}return{'diffData':_0x37d28b,'authorsIds':Array[_0x1efa('0x108')](_0x3427e9)};}[_0x1efa('0x4b')](_0x5e229b){for(const [,_0x272d08]of _0x5e229b[_0x1efa('0x96')]){const _0x2db30b=_0x272d08[_0x1efa('0x92')][_0x1efa('0xe6')]()['filter'](_0x302a29=>_0x1efa('0x1d')==_0x302a29[_0x1efa('0x62')]);for(const _0x34f3a9 of _0x2db30b)0x1==_0x34f3a9['childCount']&&_0x34f3a9['getChild'](0x0)['is'](_0x1efa('0x20'),_0x1efa('0xea'))&&_0x34f3a9[_0x1efa('0x49')](0x0)[_0x1efa('0x54')](_0x1efa('0xf0'),!0x0);}}[_0x1efa('0xce')](_0x3571ea){this[_0x1efa('0x4b')](_0x3571ea);const _0xbb2816=this[_0x1efa('0xe3')][_0x1efa('0xc1')]['toView'](_0x3571ea,{}),_0x213f5f=Array[_0x1efa('0x108')](_0xbb2816[_0x1efa('0x46')]())['map'](_0x591778=>this[_0x1efa('0xca')](_0x591778));return JSON['stringify'](_0x213f5f);}[_0x1efa('0xca')](_0x3c034b){if(_0x3c034b['is'](_0x1efa('0x103')))return _0x3c034b[_0x1efa('0xc1')];{const _0x4bf087=_0x3c034b;return{'type':Object[_0x1efa('0xf3')](B)[_0x1efa('0x3d')](_0x20ae17=>_0x3c034b instanceof B[_0x20ae17]),'name':_0x4bf087[_0x1efa('0x62')],'attributes':Array[_0x1efa('0x108')](_0x4bf087['getAttributes']()),'children':Array['from'](_0x4bf087['getChildren']())['map'](_0x39d9fb=>this[_0x1efa('0xca')](_0x39d9fb))};}}['_markChanges'](_0x40a5b5,_0x3c68e0,_0x3b4ce3,_0x2f7944,_0x564e42){let _0x60c3a3=null,_0x222a4a=null,_0x1a3992=0x0;const _0x5e4cef=this[_0x1efa('0xe3')]['model'];for(let _0x110af8=0x0;_0x110af8<_0x3c68e0[_0x1efa('0xac')];_0x110af8++){const _0x2453fb=this['_getVidAttributeName'](_0x3c68e0[_0x110af8]),_0x2b10e2=_0x3c68e0[_0x110af8]['item']['getAttribute'](_0x2453fb),_0x50a88d=_0x3b4ce3['get'](_0x2b10e2),_0x3db3e0=_0x110af8==_0x3c68e0['length']-0x1;(!_0x60c3a3&&_0x50a88d&&(_0x60c3a3=_0x50a88d,_0x222a4a=_0x3c68e0[_0x110af8]),_0x60c3a3&&(!_0x50a88d||_0x50a88d['userId']!=_0x60c3a3[_0x1efa('0x8e')]))&&(_0x44b9bb(_0x50a88d,L(_0x222a4a,_0x40a5b5,_0x5e4cef),L(_0x3c68e0[_0x110af8],_0x40a5b5,_0x5e4cef)),_0x60c3a3=_0x50a88d||null,_0x222a4a=_0x50a88d?_0x3c68e0[_0x110af8]:null),_0x60c3a3&&_0x3db3e0&&_0x44b9bb(_0x50a88d,L(_0x222a4a,_0x40a5b5,_0x5e4cef),W(_0x3c68e0[_0x110af8],_0x40a5b5,_0x5e4cef));}function _0x44b9bb(_0x263bc7,_0x1ff90a,_0x3862e0){const _0x5a3e2e=_0x60c3a3[_0x1efa('0x8e')],_0xa683d8=_0x1efa('0xb8')+_0x2f7944+':'+_0x5a3e2e+':'+_0x1a3992++,_0x16be74=_0x5e4cef['createRange'](_0x1ff90a,_0x3862e0);_0x40a5b5[_0x1efa('0x96')][_0x1efa('0xe8')](_0xa683d8,_0x16be74),null!==_0x5a3e2e&&_0x564e42[_0x1efa('0x8a')](_0x5a3e2e);}}['_getVidAttributeName'](_0x93abfe){switch(_0x93abfe[_0x1efa('0x79')]){case _0x1efa('0x9c'):return'vid_start';case _0x1efa('0x3a'):return _0x1efa('0x2e');default:return _0x1efa('0xd1');}}[_0x1efa('0x1f')](_0x59e946,_0x53c83b){_0x59e946['baseVersion']=null;for(const _0x48bb13 in _0x59e946){const _0x3df4cc=_0x59e946[_0x48bb13];if(_0x3df4cc instanceof _0x40ca33){const _0x5b3029=_0x53c83b['get'](_0x3df4cc[_0x1efa('0xe9')]['rootName']);_0x59e946[_0x48bb13]=this[_0x1efa('0xc9')](_0x3df4cc,_0x5b3029);}if(_0x3df4cc instanceof _0x4bae08){const _0x71f5d8=_0x53c83b[_0x1efa('0x77')](_0x3df4cc[_0x1efa('0xe9')][_0x1efa('0x1a')]);_0x59e946[_0x48bb13]=this['_fixRange'](_0x3df4cc,_0x71f5d8);}_0x1efa('0xe9')===_0x48bb13&&(_0x59e946[_0x1efa('0xe9')]=_0x53c83b[_0x1efa('0x77')](_0x59e946[_0x1efa('0xe9')][_0x1efa('0x1a')]));}}[_0x1efa('0xad')](_0x4cc756,_0x50fe8b){return this[_0x1efa('0xe3')]['model']['createRange'](this[_0x1efa('0xc9')](_0x4cc756[_0x1efa('0x92')],_0x50fe8b),this[_0x1efa('0xc9')](_0x4cc756[_0x1efa('0x28')],_0x50fe8b));}['_fixPosition'](_0x4c6bb8,_0x84ec4f){return this['editor']['model']['createPositionFromPath'](_0x84ec4f,_0x4c6bb8['path'],_0x4c6bb8[_0x1efa('0x5b')]);}[_0x1efa('0x47')](_0x37d3d6){const _0x1da52c=this[_0x1efa('0x3f')][_0x1efa('0x77')](_0x37d3d6[_0x1efa('0x9b')][_0x1efa('0xe9')][_0x1efa('0x1a')]),_0x24b157=this[_0x1efa('0xc9')](_0x37d3d6[_0x1efa('0x9b')],_0x1da52c),_0x59bd65=null===_0x37d3d6[_0x1efa('0xa')]?null:_0x37d3d6[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')]['get']('Users')['me']['id'],_0x875467=_0x24b157['parent'],_0x3940f8=this['_revisionId'],_0x4aeabc=[];for(const _0x589d0f of _0x37d3d6[_0x1efa('0x70')])if(_0x589d0f['is'](_0x1efa('0x20')))_0x4aeabc[_0x1efa('0x86')](this['_makeIdsRoot'](_0x589d0f));else for(let _0xd76e38=0x0;_0xd76e38<_0x589d0f[_0x1efa('0xe0')];_0xd76e38++)_0x4aeabc[_0x1efa('0x86')](new _0x54f8f9('$text',{'vid':this[_0x1efa('0x38')]++}));const _0x1d3059=this['_revisionId'];for(let _0x1a8661=_0x3940f8;_0x1a8661<_0x1d3059;_0x1a8661++)this[_0x1efa('0xe5')]['set'](_0x1a8661,{'userId':_0x59bd65});_0x875467[_0x1efa('0xdb')](_0x24b157[_0x1efa('0xa2')],_0x4aeabc);}['_handleMoveOperation'](_0x3b80e1){(_0x3b80e1=this[_0x1efa('0xf2')](_0x3b80e1,this[_0x1efa('0x3f')]))['_execute']();const _0x86ca50=null===_0x3b80e1[_0x1efa('0xa')]?null:_0x3b80e1[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')]('Users')['me']['id'],_0x27c7b5=_0x3b80e1[_0x1efa('0xe7')](),_0x53a6ed=_0x27c7b5[_0x1efa('0x76')],_0x5b1593=_0x27c7b5['offset'];!function _0x35eaa1(_0x590ee6,_0x27e555,_0x16642d,_0x2e22dd){for(let _0x4f2b51=_0x16642d;_0x4f2b51<_0x2e22dd;_0x4f2b51++){const _0xa054cc=_0x27e555[_0x1efa('0x49')](_0x4f2b51);_0xa054cc['is'](_0x1efa('0x20'),'$text')?_0x590ee6['set'](_0xa054cc['getAttribute'](_0x1efa('0xd1')),{'userId':_0x86ca50}):(_0x590ee6[_0x1efa('0xe8')](_0xa054cc[_0x1efa('0x73')](_0x1efa('0x67')),{'userId':_0x86ca50}),_0x35eaa1(_0x590ee6,_0xa054cc,0x0,_0xa054cc[_0x1efa('0xfa')]),_0x590ee6['set'](_0xa054cc[_0x1efa('0x73')](_0x1efa('0x2e')),{'userId':_0x86ca50}));}}(this[_0x1efa('0xe5')],_0x53a6ed,_0x5b1593,_0x5b1593+_0x3b80e1[_0x1efa('0x21')]);}[_0x1efa('0x4f')](_0x36bfee){const _0x45c95f=null===(_0x36bfee=this[_0x1efa('0xf2')](_0x36bfee,this['_idsRoots']))[_0x1efa('0xa')]?null:_0x36bfee[_0x1efa('0xa')]||this[_0x1efa('0xe3')]['plugins']['get']('Users')['me']['id'],_0x2a1308=_0x36bfee[_0x1efa('0xf')][_0x1efa('0x76')],_0x51730d=_0x36bfee[_0x1efa('0x60')]['parent'],_0x32f150=_0x2a1308['getAttribute'](_0x1efa('0x2e')),_0x1731b8=_0x51730d['getAttribute'](_0x1efa('0x67'));_0x2a1308['_setAttribute'](_0x1efa('0x2e'),_0x51730d[_0x1efa('0x73')](_0x1efa('0x2e'))),_0x51730d[_0x1efa('0x54')](_0x1efa('0x2e'),_0x32f150),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x1731b8,{'userId':_0x45c95f}),this['_touched']['set'](_0x32f150,{'userId':_0x45c95f}),_0x36bfee['_execute']();}[_0x1efa('0xb0')](_0x40df1d){const _0x5e9366=null===(_0x40df1d=this[_0x1efa('0xf2')](_0x40df1d,this['_idsRoots']))[_0x1efa('0xa')]?null:_0x40df1d[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x1b6c7c=_0x40df1d[_0x1efa('0xe2')],_0x2e3278=_0x40df1d[_0x1efa('0x36')]['parent'];_0x40df1d[_0x1efa('0x30')]();const _0x2356be=_0x2e3278['getAttribute'](_0x1efa('0x2e')),_0x4a7731=_0x40df1d[_0x1efa('0x2b')]['nodeAfter'];if(_0x1b6c7c){const _0x29ef6f=_0x4a7731[_0x1efa('0x73')](_0x1efa('0x2e')),_0x51e00a=_0x2e3278[_0x1efa('0x73')](_0x1efa('0x2e'));_0x2e3278[_0x1efa('0x54')](_0x1efa('0x2e'),_0x29ef6f),_0x4a7731['_setAttribute']('vid_end',_0x51e00a),this['_touched'][_0x1efa('0xe8')](_0x2e3278[_0x1efa('0x73')](_0x1efa('0x2e')),{'userId':_0x5e9366}),this[_0x1efa('0xe5')]['set'](_0x4a7731[_0x1efa('0x73')](_0x1efa('0x67')),{'userId':_0x5e9366});}else{const _0x199ac1=this[_0x1efa('0x38')]++,_0x353096=this[_0x1efa('0x38')]++;_0x2e3278[_0x1efa('0x54')](_0x1efa('0x2e'),_0x199ac1),_0x4a7731[_0x1efa('0x54')](_0x1efa('0x67'),_0x353096),_0x4a7731[_0x1efa('0x54')](_0x1efa('0x2e'),_0x2356be),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x199ac1,{'userId':_0x5e9366}),this['_touched'][_0x1efa('0xe8')](_0x353096,{'userId':_0x5e9366});}}[_0x1efa('0x4e')](_0x44fcef){if(!_0x44fcef[_0x1efa('0x8f')])return;const _0x32d018=(_0x44fcef=this[_0x1efa('0xf2')](_0x44fcef,this[_0x1efa('0xc2')]))['oldRange']?_0x44fcef[_0x1efa('0xd')][_0x1efa('0xe9')]:null,_0x58ab5d=_0x44fcef[_0x1efa('0xbc')]?_0x44fcef[_0x1efa('0xbc')][_0x1efa('0xe9')]:null;_0x32d018&&this[_0x1efa('0x14')]['delete'](_0x44fcef[_0x1efa('0x62')]),_0x58ab5d&&this['_markers'][_0x1efa('0xe8')](_0x44fcef['name'],_0x44fcef[_0x1efa('0xbc')]['clone']());const _0x54c0c7=null===_0x44fcef[_0x1efa('0xa')]?null:_0x44fcef[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0xb7ad6d=_0x44fcef[_0x1efa('0x62')];if(!this['_touchedMarkers']['has'](_0xb7ad6d))return void this[_0x1efa('0x8')]['set'](_0xb7ad6d,{'range':_0x44fcef[_0x1efa('0xd')],'userId':_0x54c0c7});const _0x394f39=this['_touchedMarkers'][_0x1efa('0x77')](_0xb7ad6d),_0x2e4b1a=_0x394f39[_0x1efa('0x85')],_0x220783=_0x44fcef[_0x1efa('0xbc')];null==_0x2e4b1a&&null==_0x220783||_0x2e4b1a&&_0x220783&&_0x2e4b1a[_0x1efa('0x41')](_0x220783)?this[_0x1efa('0x8')]['delete'](_0x44fcef[_0x1efa('0x62')]):_0x394f39[_0x1efa('0x8e')]=_0x54c0c7;}['_handleRootOperation'](_0x23c7cc,_0x465fec){this[_0x1efa('0xc2')][_0x1efa('0x8b')](_0x23c7cc[_0x1efa('0x1a')])?this[_0x1efa('0xc2')]['get'](_0x23c7cc['rootName'])[_0x1efa('0x39')]=_0x23c7cc[_0x1efa('0x16')]:(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x23c7cc[_0x1efa('0x1a')],G(_0x23c7cc[_0x1efa('0x1a')],!0x0)),this[_0x1efa('0xe')][_0x1efa('0xe8')](_0x23c7cc[_0x1efa('0x1a')],{}),_0x465fec&&this['_idsRoots'][_0x1efa('0xe8')](_0x23c7cc['rootName'],G(_0x23c7cc[_0x1efa('0x1a')],!0x0)));const _0x54a7ac=null===_0x23c7cc[_0x1efa('0xa')]?null:_0x23c7cc[_0x1efa('0xa')]||this[_0x1efa('0xe3')]['plugins']['get'](_0x1efa('0x61'))['me']['id'],_0x4b8059=this['_touchedRoots'][_0x1efa('0x77')](_0x23c7cc[_0x1efa('0x1a')]);_0x4b8059&&_0x4b8059[_0x1efa('0x8e')]===_0x54a7ac?this[_0x1efa('0x6e')]['delete'](_0x23c7cc['rootName']):this[_0x1efa('0x6e')]['set'](_0x23c7cc['rootName'],{'userId':_0x54a7ac,'isAttached':_0x23c7cc[_0x1efa('0x16')]});}[_0x1efa('0xc5')](_0x5967d6){const _0x3cd8ee=this[_0x1efa('0xe')]['get'](_0x5967d6[_0x1efa('0xe9')][_0x1efa('0x1a')]);null===_0x5967d6[_0x1efa('0x18')]?delete _0x3cd8ee[_0x5967d6[_0x1efa('0xe4')]]:_0x3cd8ee[_0x5967d6[_0x1efa('0xe4')]]=_0x5967d6['newValue'];}}function q(_0x2556a6){const _0x5159ad=G(_0x2556a6[_0x1efa('0x1a')],_0x2556a6['isAttached']());for(const _0x16ef16 of _0x2556a6[_0x1efa('0x46')]()){const _0x4f6dad=_0x16ef16[_0x1efa('0x42')](!0x0);_0x5159ad[_0x1efa('0x11')](_0x4f6dad);}return _0x5159ad;}function G(_0x33ab74,_0x2d751f=!0x0){const _0xcc1d6d=new _0x638994();return _0xcc1d6d[_0x1efa('0x1a')]=_0x33ab74,_0xcc1d6d['_isAttached']=_0x2d751f,_0xcc1d6d[_0x1efa('0x9e')]=()=>_0xcc1d6d['_isAttached'],_0xcc1d6d;}function L(_0x31c186,_0x385715,_0x266cbf){const _0x389698=_0x1efa('0x3a')==_0x31c186[_0x1efa('0x79')]?_0x266cbf[_0x1efa('0xd4')](_0x31c186[_0x1efa('0x82')],_0x1efa('0x28')):_0x266cbf[_0x1efa('0xb2')](_0x31c186[_0x1efa('0x82')]);return _0x266cbf['createPositionFromPath'](_0x385715,_0x389698[_0x1efa('0x22')],_0x389698[_0x1efa('0x5b')]);}function W(_0x37ab9e,_0x38dfd9,_0x1059c7){const _0x2e3f15='elementStart'==_0x37ab9e[_0x1efa('0x79')]?_0x1059c7['createPositionAt'](_0x37ab9e[_0x1efa('0x82')],0x0):_0x1059c7['createPositionAfter'](_0x37ab9e[_0x1efa('0x82')]);return _0x1059c7[_0x1efa('0x64')](_0x38dfd9,_0x2e3f15[_0x1efa('0x22')],_0x2e3f15[_0x1efa('0x5b')]);}
23
+ const _0x36aa=['markers','editor','elementEnd','push','_removePendingAction','getRootNames','toModel','_touched','editing','init','loadState','_startingRevisionId','NEGATIVE_INFINITY','length','fromVersion','_cloneOperation','createRevision','hasContent','_diffRoots','upcast','$graveyard','howMany','values','revision-end','move','getWalker','nodes','toVersion','_loadState','version','_baseRootsAttributes','_saveMetaData','type','view','_copyMarkers','_baseRoots','deletions','insertions','define','_fixRange','_lastFrom','_isAttached','range','for','collaboration.channelId','model','max','newRange','startsWith','sort','createPositionAt','sourcePosition','getOperations','stringify','RealTimeCollaborationClient','getAncestors','_getVidAttributeName','getLatestVersion','requires','filter','initialData','resolve','children','getTransformedByOperation','insert','initial','graveyardPosition','documentFragment','adapter','locale','RevisionTracker','_fixPosition','history','getOperation','_isPendingUpdate','tableCell','_startingVersion','merge','position','parent','setRevisionData','_reset','name','_applyOperations','isAttached','targetPosition','then','root','end','_setAttribute','changeRootAttribute','editor-initial-data-replaced-with-revision-data','_findInsertionIndex','conversion','shift','dataDowncast','add','buildRevisionData','_handleRootOperation','plugins','_generateTape','getNodeByPath','previousPosition','_appendChild','revisionHistory.resumeUnsavedRevision','has','repository','getIndex','_revisionDataBuilder','creatorId','_setConversion','_loadRevisionData','_diffRootsAttributes','clear','vid','getMovedRangeStart','nodeAfter','source','from','deletion','_getState','Users','_revisionId','marker','_addPendingAction','bind','attributesAfter','useFillerType','getCurrentRevisionId','setSource','PendingActions','ready','getRoot','_authorId','saveRevision','removeRootAttribute','_makeRevision','default','_makeModelFromViewString','start','path','set','delete','_prepareViewToSave','afterInit','revision-start','_insertChild','_baseIdsRoots','userId','document','_bufferUpdate','_transformMarkers','slice','_lastTo','createdAt','clone','_getViewJson','currentRevision','_handleRootAttributeOperation','baseVersion','rootsAttributes','key','size','sendBufferedUpdates','_touchedRoots','getRevision','attachChange','getAttribute','_source','_processRootBeforeSave','_handleSplitOperation','splitPosition','element','_idsRoots','newValue','_execute','rootName','processor','getRevisions','vid_start','_bufferedUpdates','getRevisionRootsAttributes','affectsData','_initialRevisionId','createPositionFromPath','authorsIds','pluginName','offset','_removeRevisionMarkers','remove','addRevisionData','revision','markerToData','data','some','_continueCurrentRevision','_handleMarkerOperation','_createFromRanges','_handleOperation','_pendingAction','getTime','keys','getRange','elementStart','_makeIdsRoot','isReady','revision:','getRevisionDocumentData','creator','_markers','item','includes','split','oldRange','getChildren','string','stickiness','Initial\x20revision','_operations','_touchedMarkers','authors','parse','getChild','_update','_loadedStateData','_replaceEditorDataWithRevisionData','addRootAttribute','_calculateMetaData','_removeMetaData','config','PENDING_ACTION_REVISION_HISTORY','_savedMetaData','getAttributes','map','forEach','_getFromVersion','_createInitialRevision','text','reInit','$text','_handleMoveOperation','_clone','getData','_handleMergeOperation','diffData','roots','_createCurrentRevision','_handleInsertOperation','_getPreviousFrom','_markChanges','fromEntries','find','marked','vid_end','childCount','reverse','attributesBefore','get','createRange'];(function(_0x4fda3b,_0x36aa49){const _0x4bcfe0=function(_0x19bd8e){while(--_0x19bd8e){_0x4fda3b['push'](_0x4fda3b['shift']());}};_0x4bcfe0(++_0x36aa49);}(_0x36aa,0x1b3));const _0x4bcf=function(_0x4fda3b,_0x36aa49){_0x4fda3b=_0x4fda3b-0x0;let _0x4bcfe0=_0x36aa[_0x4fda3b];return _0x4bcfe0;};import{Users as _0x1f58e9}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x383466,PendingActions as _0xce835e}from'ckeditor5/src/core';import{logWarning as _0x582bc9,uid as _0x20ef15}from'ckeditor5/src/utils';import{Position as _0x50936b,Range as _0x222ffc,Element as _0x51760e,DocumentFragment as _0x3d02d9,ViewText as _0x43569e,ViewElement as _0x231e56,ViewContainerElement as _0x266150,ViewAttributeElement as _0x35cc56,ViewEmptyElement as _0x18eaf0,ViewRawElement as _0xe8d954,ViewUIElement as _0x2f7984,ViewDocumentFragment as _0x19b0bc}from'ckeditor5/src/engine';import _0x147d52 from'./revisionsrepository';import{getTranslation as _0x574bfc}from'./utils/common-translations';import{cloneDeep as _0x5d6016,isEqual as _0x16af73}from'lodash-es';const B={'c':_0x266150,'a':_0x35cc56,'e':_0x18eaf0,'r':_0xe8d954,'u':_0x2f7984};export default class l extends _0x383466{static get[_0x4bcf('0xa')](){return _0x4bcf('0x99');}static get[_0x4bcf('0x8d')](){return[_0x1f58e9,_0x147d52,_0xce835e];}constructor(_0x162a81){super(_0x162a81),this[_0x4bcf('0x97')]=null,this[_0x4bcf('0xf0')]=null,this[_0x4bcf('0xbf')]=new H(this[_0x4bcf('0x54')]),this[_0x4bcf('0x7')]=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')](_0x4bcf('0x7f'))||_0x4bcf('0x94'),this[_0x4bcf('0x4')]=new Map(),this[_0x4bcf('0x30')]=null;const _0x42cffd=_0x20ef15();this[_0x4bcf('0xfb')]={'history':this['editor']['model']['document'][_0x4bcf('0x9b')],'getLatestVersion':()=>Promise[_0x4bcf('0x90')](this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x70')]),'getCurrentRevisionId':()=>_0x42cffd},this['set'](_0x4bcf('0x1d'),!0x1),this[_0x4bcf('0xe0')]('isEnabled',!0x0),this[_0x4bcf('0xe0')](_0x4bcf('0x9d'),!0x1),this['editor'][_0x4bcf('0x35')][_0x4bcf('0x79')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x4bcf('0x54')][_0x4bcf('0xb0')][_0x4bcf('0x7e')](_0x4bcf('0x66'))['dataToMarker']({'view':_0x4bcf('0xf')});}[_0x4bcf('0x5c')](){this[_0x4bcf('0xbd')]=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on'](_0x4bcf('0xd6'),()=>{const _0x39d799=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](0x0),_0x326052=_0x39d799&&null===_0x39d799['creator']?_0x39d799:null;if(this[_0x4bcf('0x13')]=!!_0x326052&&this[_0x4bcf('0x54')]['config']['get'](_0x4bcf('0xbb')),this['editor'][_0x4bcf('0xb6')][_0x4bcf('0xbc')](_0x4bcf('0x89'))){const _0x565061=this[_0x4bcf('0xfb')][_0x4bcf('0xd3')](),_0x4c82a1=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](_0x565061);if(_0x4c82a1)this[_0x4bcf('0x9f')]=_0x4c82a1[_0x4bcf('0x61')],this['_continueCurrentRevision']=!0x1;else{const _0x338d27=this[_0x4bcf('0xfb')]['history'][_0x4bcf('0x2a')][_0x4bcf('0x4b')](_0x288190=>!_0x288190['_isInit']),_0x48711a=_0x338d27?_0x338d27[_0x4bcf('0xf2')]:this[_0x4bcf('0xfb')][_0x4bcf('0x9b')][_0x4bcf('0x70')];_0x39d799?(_0x39d799[_0x4bcf('0x6e')]<_0x48711a&&_0x39d799[_0x4bcf('0x2f')]({'toVersion':_0x48711a}),this[_0x4bcf('0x13')]?(this[_0x4bcf('0xfb')]['getCurrentRevisionId']=()=>_0x326052['id'],this[_0x4bcf('0x9f')]=_0x326052[_0x4bcf('0x61')]):(this['_startingVersion']=_0x39d799[_0x4bcf('0x6e')],this[_0x4bcf('0x13')]=!0x1)):(this[_0x4bcf('0x9f')]=_0x48711a,this[_0x4bcf('0x13')]=!0x1);}}else _0x326052&&(this[_0x4bcf('0x54')]['model'][_0x4bcf('0xe8')][_0x4bcf('0x9b')][_0x4bcf('0x70')]=Math[_0x4bcf('0x81')](_0x326052[_0x4bcf('0x6e')],this['editor'][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x9b')]['version']),_0x326052[_0x4bcf('0x61')]===_0x326052[_0x4bcf('0x6e')]?(0x0!==_0x326052[_0x4bcf('0x61')]&&(this[_0x4bcf('0xfb')][_0x4bcf('0xd3')]=()=>_0x326052['id']),this[_0x4bcf('0x13')]=!0x1):this[_0x4bcf('0x13')]&&(this['_source'][_0x4bcf('0xd3')]=()=>_0x326052['id'],this[_0x4bcf('0x9f')]=_0x326052[_0x4bcf('0x61')])),this[_0x4bcf('0x13')]||(this['_startingVersion']=this['editor'][_0x4bcf('0x80')]['document']['version']);this[_0x4bcf('0xbf')][_0x4bcf('0x5c')](this[_0x4bcf('0xfb')][_0x4bcf('0x9b')]),this[_0x4bcf('0x3c')](this[_0x4bcf('0x9f')]),this[_0x4bcf('0x46')](this[_0x4bcf('0x9f')]),this[_0x4bcf('0x97')]&&this['sendBufferedUpdates']();}),this[_0x4bcf('0xd0')]('isReady')['to'](this,_0x4bcf('0x9d'),_0x559366=>!_0x559366);}async[_0x4bcf('0xe3')](){if(this['repository'][_0x4bcf('0x60')]>0x0){const _0x41a35b=this['repository'][_0x4bcf('0xf8')](0x0),_0x339d98=await this[_0x4bcf('0x1f')](_0x41a35b),_0x3d3d55=await this[_0x4bcf('0x5')](_0x41a35b);this[_0x4bcf('0x31')](_0x339d98,_0x3d3d55);}}[_0x4bcf('0xd4')](_0x1f0323){this[_0x4bcf('0xfb')]=_0x1f0323;}async['update'](){const _0x346d57=await this[_0x4bcf('0xfb')][_0x4bcf('0x8c')]();if(_0x346d57>this[_0x4bcf('0xf0')][_0x4bcf('0x6e')]){await this[_0x4bcf('0x6f')]();const _0x28961e=this[_0x4bcf('0xb4')]({'revision':this['currentRevision'],'to':_0x346d57});_0x28961e[_0x4bcf('0x2c')]=_0x28961e['authorsIds'][_0x4bcf('0x39')](_0x219788=>this[_0x4bcf('0x54')]['plugins'][_0x4bcf('0x51')](_0x4bcf('0xcc'))['getUser'](_0x219788)),this[_0x4bcf('0xf0')]['_update'](_0x28961e);}}async[_0x4bcf('0x6f')](){this['_continueCurrentRevision']&&!this[_0x4bcf('0x30')]&&(await this[_0x4bcf('0xc2')](this[_0x4bcf('0xf0')]),this[_0x4bcf('0xbf')]['loadState'](this[_0x4bcf('0xf0')]),this[_0x4bcf('0x30')]={'fromVersion':this[_0x4bcf('0xf0')][_0x4bcf('0x61')],'authors':this[_0x4bcf('0xf0')][_0x4bcf('0x2c')][_0x4bcf('0xeb')]()});}async[_0x4bcf('0xd9')](_0x278a18={},_0x345b40=null){const _0x6bdba5=[];await this[_0x4bcf('0x6f')](),this[_0x4bcf('0x13')]=!0x1,_0x345b40>this[_0x4bcf('0xf0')][_0x4bcf('0x6e')]&&(_0x345b40=null),null===_0x345b40&&(_0x345b40=await this[_0x4bcf('0xfb')]['getLatestVersion']());const _0xe04916=this[_0x4bcf('0x3b')](_0x345b40),_0x536e2c=this[_0x4bcf('0xb4')]({'from':_0xe04916,'to':_0x345b40});if(this[_0x4bcf('0xf0')][_0x4bcf('0x6e')]<_0x345b40){const _0x7144cb=this[_0x4bcf('0xb4')]({'revision':this[_0x4bcf('0xf0')],'from':_0x345b40,'to':_0x345b40});_0x7144cb[_0x4bcf('0x2c')]=[],_0x7144cb['authorsIds']=[],_0x7144cb['id']=this['currentRevision']['id'],this['currentRevision'][_0x4bcf('0x2f')](_0x7144cb,!0x0),delete _0x7144cb[_0x4bcf('0x2c')],_0x6bdba5[_0x4bcf('0x56')](_0x7144cb);}_0x278a18[_0x4bcf('0xc0')]=this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0x278a18[_0x4bcf('0xa5')]=_0x278a18[_0x4bcf('0xa5')]||null,_0x278a18['id']=_0x278a18['id']||_0x20ef15(),_0x278a18={..._0x278a18,..._0x536e2c};const _0x49a984=this[_0x4bcf('0xe')](_0x278a18);_0x6bdba5[_0x4bcf('0x56')](_0x278a18);const _0x2b0e48=this[_0x4bcf('0xbd')][_0x4bcf('0xbe')](_0x49a984);if(0x0!==_0x2b0e48){const _0x12ac3f=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](_0x2b0e48-0x1);if(_0x12ac3f[_0x4bcf('0x61')]!==_0x345b40){const _0x4500ac=this['_revisionDataBuilder'][_0x4bcf('0x42')](_0x345b40,_0x12ac3f[_0x4bcf('0x6e')]),_0x1283bb={'id':_0x12ac3f['id'],'diffData':_0x4500ac[_0x4bcf('0x44')],'authorsIds':_0x4500ac['authorsIds'],'authors':_0x4500ac['authorsIds'][_0x4bcf('0x39')](_0x37f443=>this[_0x4bcf('0x54')]['plugins'][_0x4bcf('0x51')](_0x4bcf('0xcc'))['getUser'](_0x37f443)),'fromVersion':_0x345b40};_0x12ac3f===this[_0x4bcf('0xf0')]&&(_0x1283bb['createdAt']=new Date(_0x278a18['createdAt'][_0x4bcf('0x18')]()+0xa)),_0x12ac3f[_0x4bcf('0x2f')](_0x1283bb,!0x0),delete _0x1283bb[_0x4bcf('0x2c')],_0x6bdba5['push'](_0x1283bb);}}if(this[_0x4bcf('0x97')]){for(const _0x52df0d of _0x6bdba5)this[_0x4bcf('0xe9')](_0x52df0d['id'],_0x52df0d,!0x0);this[_0x4bcf('0xf6')]();}return _0x49a984;}['addRevisionData'](_0x45089c){const _0x5c6e32=this['repository'][_0x4bcf('0x63')](_0x45089c);return this[_0x4bcf('0x97')]&&_0x5c6e32['on'](_0x4bcf('0x2f'),(_0x298ce1,_0x31e37f,_0x2e0054)=>{_0x2e0054||(this['_bufferUpdate'](_0x31e37f['id'],_0x31e37f,!0x0),this[_0x4bcf('0xf6')]());}),this[_0x4bcf('0xbd')]['addRevision'](_0x5c6e32,this['_findInsertionIndex'](_0x5c6e32)),_0x5c6e32;}async[_0x4bcf('0x1f')](_0x1c000f){await this[_0x4bcf('0xc2')](_0x1c000f);const _0x2ef05e={};for(const _0x33701e in _0x1c000f['diffData']){if(_0x1c000f[_0x4bcf('0x44')][_0x33701e][_0x4bcf('0xf9')]&&!_0x1c000f[_0x4bcf('0x44')][_0x33701e][_0x4bcf('0xf9')][_0x4bcf('0xa7')])continue;const _0x488426=this[_0x4bcf('0xc')](JSON[_0x4bcf('0x2d')](_0x1c000f['diffData'][_0x33701e][_0x4bcf('0x78')])),_0x4ccc39=this[_0x4bcf('0x54')]['editing'][_0x4bcf('0x74')][_0x4bcf('0xe8')],_0x3897ef=new _0x19b0bc(_0x4ccc39,_0x488426[_0x4bcf('0x39')](_0x335403=>J(_0x335403,this[_0x4bcf('0x54')])));this[_0x4bcf('0x54')][_0x4bcf('0x11')][_0x4bcf('0x1')][_0x4bcf('0xd2')](_0x4bcf('0x4c')),_0x2ef05e[_0x33701e]=this[_0x4bcf('0x54')][_0x4bcf('0x11')][_0x4bcf('0x1')]['toData'](_0x3897ef),this[_0x4bcf('0x54')][_0x4bcf('0x11')][_0x4bcf('0x1')]['useFillerType'](_0x4bcf('0xdc'));}return _0x2ef05e;}async[_0x4bcf('0x5')](_0x487f14){await this['_loadRevisionData'](_0x487f14);const _0x501cbb={};for(const _0x12b9a4 in _0x487f14[_0x4bcf('0x44')])_0x487f14[_0x4bcf('0x44')][_0x12b9a4]['attachChange']&&!_0x487f14[_0x4bcf('0x44')][_0x12b9a4][_0x4bcf('0xf9')][_0x4bcf('0xa7')]||(_0x501cbb[_0x12b9a4]=_0x487f14[_0x4bcf('0x44')][_0x12b9a4][_0x4bcf('0xd1')]||{});return _0x501cbb;}[_0x4bcf('0xf6')](){if(0x0===this[_0x4bcf('0x4')]['size'])return;if(this[_0x4bcf('0x9d')])return;let _0x4b2a09=Array[_0x4bcf('0xc9')](this['_bufferedUpdates'][_0x4bcf('0x69')]());this[_0x4bcf('0x4')][_0x4bcf('0xc4')]();for(let _0x4d575b=0x0;_0x4d575b<_0x4b2a09[_0x4bcf('0x60')];_0x4d575b++){const _0x1fc701=_0x4b2a09[_0x4d575b];let _0x37d020=!0x1;for(const _0x8848c1 of Object[_0x4bcf('0x19')](_0x1fc701))void 0x0===_0x1fc701[_0x8848c1]?delete _0x1fc701[_0x8848c1]:'id'!==_0x8848c1&&(_0x37d020=!0x0);_0x37d020||(_0x4b2a09[_0x4d575b]=null);}if(_0x4b2a09=_0x4b2a09[_0x4bcf('0x8e')](_0x4a3c03=>null!==_0x4a3c03),!_0x4b2a09[_0x4bcf('0x60')])return;for(let _0x70f514=0x0;_0x70f514<_0x4b2a09['length'];_0x70f514++){const _0x222800=_0x4b2a09[_0x70f514];void 0x0!==_0x222800[_0x4bcf('0x61')]&&void 0x0===_0x222800[_0x4bcf('0x6e')]&&(_0x222800[_0x4bcf('0x6e')]=this[_0x4bcf('0xbd')]['getRevision'](_0x222800['id'])[_0x4bcf('0x6e')]),void 0x0!==_0x222800[_0x4bcf('0x6e')]&&void 0x0===_0x222800[_0x4bcf('0x61')]&&(_0x222800[_0x4bcf('0x61')]=this[_0x4bcf('0xbd')]['getRevision'](_0x222800['id'])['fromVersion']);}const _0x3da89b=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')]('collaboration.channelId');this[_0x4bcf('0x9d')]=!0x0,this[_0x4bcf('0xcf')](),this['adapter']['updateRevisions'](_0x4b2a09,_0x3da89b)['finally'](()=>{this[_0x4bcf('0x9d')]=!0x1;})[_0x4bcf('0xa9')](_0x405b64=>{if(_0x405b64)for(const _0x113174 of _0x405b64)this[_0x4bcf('0xa3')]({'id':_0x113174['id'],'createdAt':_0x113174[_0x4bcf('0xed')]});this[_0x4bcf('0x57')](),this[_0x4bcf('0xf6')]();});}[_0x4bcf('0x31')](_0x5372d7,_0x35508d){let _0x10ab50=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')](_0x4bcf('0x8f')),_0x976735=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')](_0x4bcf('0xf3'));if(void 0x0===_0x10ab50){_0x10ab50={};for(const _0x2e7431 of this[_0x4bcf('0x54')][_0x4bcf('0x80')]['document'][_0x4bcf('0x58')]())_0x10ab50[_0x2e7431]='';}if(_0x4bcf('0x27')==typeof _0x10ab50&&(_0x10ab50={'main':_0x10ab50}),void 0x0===_0x976735){_0x976735={};for(const _0x598d9a of this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x58')]())_0x976735[_0x598d9a]={};}let _0x407547=!0x1;const _0x2ae889=Object[_0x4bcf('0x19')](_0x10ab50),_0x443301=Object[_0x4bcf('0x19')](_0x5372d7);for(const _0x44d4cc of _0x2ae889){if(_0x10ab50[_0x44d4cc]!==_0x5372d7[_0x44d4cc]&&''!==_0x10ab50[_0x44d4cc]['trim']()){_0x407547=!0x0;break;}if(!_0x16af73(_0x976735[_0x44d4cc],_0x35508d[_0x44d4cc])&&Object[_0x4bcf('0x19')](_0x976735[_0x44d4cc])[_0x4bcf('0x60')]>0x0){_0x407547=!0x0;break;}}_0x407547||(_0x407547=_0x443301[_0x4bcf('0x12')](_0x41a2d3=>!this[_0x4bcf('0x54')]['model'][_0x4bcf('0xe8')][_0x4bcf('0xd7')](_0x41a2d3))),_0x407547&&_0x582bc9(_0x4bcf('0xae'),{'editorData':_0x10ab50,'editorRootsAttributes':_0x976735,'revisionData':_0x5372d7,'revisionRootsAttributes':_0x35508d}),this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0xe0')]('initialData',_0x5372d7),this[_0x4bcf('0x54')]['config'][_0x4bcf('0xe0')](_0x4bcf('0xf3'),_0x35508d);}[_0x4bcf('0xcf')](){if(!this[_0x4bcf('0x17')]){const _0xde5405=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get']('PendingActions');this[_0x4bcf('0x17')]=_0xde5405[_0x4bcf('0xb3')](_0x574bfc(this[_0x4bcf('0x54')]['locale'],_0x4bcf('0x36')));}}[_0x4bcf('0x57')](){this[_0x4bcf('0x17')]&&(this[_0x4bcf('0x54')]['plugins'][_0x4bcf('0x51')](_0x4bcf('0xd5'))[_0x4bcf('0xd')](this[_0x4bcf('0x17')]),this['_pendingAction']=null);}[_0x4bcf('0xaf')](_0xaa33d1){const _0x2aa385=this[_0x4bcf('0xbd')][_0x4bcf('0x2')]();_0x2aa385[_0x4bcf('0x4f')]();let _0x542fc3=0x0;for(;_0x542fc3<_0x2aa385[_0x4bcf('0x60')];){const _0xec740e=_0x2aa385[_0x542fc3];if(_0xec740e===this[_0x4bcf('0xf0')]){_0x542fc3++;continue;}if(_0xec740e['id']===this[_0x4bcf('0x7')])break;const _0x510dba=_0xaa33d1['toVersion']-_0xec740e[_0x4bcf('0x6e')]||_0xaa33d1[_0x4bcf('0x61')]-_0xec740e[_0x4bcf('0x61')];if(_0x510dba>0x0)break;if(_0x510dba<0x0)_0x542fc3++;else{if(!_0xaa33d1[_0x4bcf('0x20')]&&_0xec740e[_0x4bcf('0x20')])break;if(_0xec740e[_0x4bcf('0x20')]||!_0xaa33d1[_0x4bcf('0x20')]){if(_0xaa33d1['createdAt']>_0xec740e[_0x4bcf('0xed')])break;_0x542fc3++;}else _0x542fc3++;}}return _0x542fc3;}[_0x4bcf('0xa3')](_0x2c83e8){const _0x57f051=this[_0x4bcf('0xbd')]['getRevision'](_0x2c83e8['id']);if(_0x2c83e8['createdAt']&&(_0x2c83e8[_0x4bcf('0xed')]=new Date(_0x2c83e8[_0x4bcf('0xed')])),_0x2c83e8[_0x4bcf('0x9')]){const _0x472162=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get'](_0x4bcf('0xcc'));_0x2c83e8['authors']=_0x2c83e8['authorsIds'][_0x4bcf('0x39')](_0x53be8a=>_0x472162['getUser'](_0x53be8a));}_0x57f051[_0x4bcf('0x2f')](_0x2c83e8,!0x0);}[_0x4bcf('0xb4')]({revision:_0x2f548c=null,from:_0x3f9b17=null,to:_0xef9464=null}){_0x3f9b17=null!==_0x3f9b17?_0x3f9b17:_0x2f548c[_0x4bcf('0x61')],_0xef9464=null!==_0xef9464?_0xef9464:_0x2f548c[_0x4bcf('0x6e')];const _0x1e7d09=this[_0x4bcf('0xbf')][_0x4bcf('0x42')](_0x3f9b17,_0xef9464),_0x8f803d={'diffData':_0x1e7d09[_0x4bcf('0x44')],'authorsIds':_0x1e7d09[_0x4bcf('0x9')],'fromVersion':_0x3f9b17,'toVersion':_0xef9464};if(!_0x2f548c||_0xef9464!==_0x2f548c[_0x4bcf('0x6e')]){const _0x1e0e39=_0xef9464-0x1,_0x220777=this[_0x4bcf('0xfb')][_0x4bcf('0x9b')][_0x4bcf('0x9c')](_0x1e0e39);_0x8f803d[_0x4bcf('0xed')]=_0x220777&&_0x220777['createdAt']||new Date();}if(this[_0x4bcf('0x30')]&&_0x3f9b17===this[_0x4bcf('0x30')]['fromVersion'])for(const _0x225d7b of this[_0x4bcf('0x30')]['authors'])_0x8f803d[_0x4bcf('0x9')][_0x4bcf('0x23')](_0x225d7b['id'])||_0x8f803d[_0x4bcf('0x9')]['push'](_0x225d7b['id']);return _0x8f803d;}[_0x4bcf('0xc2')](_0x216adb){if(!_0x216adb||_0x216adb['diffData'])return Promise[_0x4bcf('0x90')]();{const _0x24c243=this[_0x4bcf('0x54')]['config']['get'](_0x4bcf('0x7f'));return this[_0x4bcf('0x97')][_0x4bcf('0xf8')]({'channelId':_0x24c243,'revisionId':_0x216adb['id']})['then'](_0x3b6f32=>{_0x216adb['diffData']=_0x3b6f32[_0x4bcf('0x44')];});}}[_0x4bcf('0xe9')](_0x1d8ca6,_0x2ec2dc,_0x46d64e){if(this[_0x4bcf('0x4')][_0x4bcf('0xbc')](_0x1d8ca6)){const _0x31bbd1=this['_bufferedUpdates'][_0x4bcf('0x51')](_0x1d8ca6);_0x2ec2dc=_0x46d64e?{..._0x31bbd1,..._0x2ec2dc}:{..._0x2ec2dc,..._0x31bbd1};}this[_0x4bcf('0x4')]['set'](_0x1d8ca6,_0x2ec2dc);}[_0x4bcf('0x3b')](_0x2bb984){const _0xa57585=this[_0x4bcf('0xbd')][_0x4bcf('0x2')]();_0xa57585[_0x4bcf('0x4f')](),_0xa57585[_0x4bcf('0xb1')]();const _0x39887f=_0xa57585['find'](_0x416595=>_0x416595[_0x4bcf('0x6e')]<=_0x2bb984)[_0x4bcf('0x6e')];return _0x39887f<this['_startingVersion']?this['_startingVersion']:_0x39887f;}[_0x4bcf('0x3c')](_0x315857){const _0x3929b3=this[_0x4bcf('0xbd')]['getRevision'](this[_0x4bcf('0xbd')]['length']-0x1);if(_0x3929b3)this[_0x4bcf('0x7')]=_0x3929b3['id'];else{const _0x5112be=!this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x45')]['find'](_0x3ac8c8=>this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0x64')](_0x3ac8c8)),_0x46e46a=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get'](_0x4bcf('0xcc'))['me']['id'],_0x1024b6=_0x574bfc(this[_0x4bcf('0x54')][_0x4bcf('0x98')],_0x5112be?'Empty\x20document':_0x4bcf('0x29'));this[_0x4bcf('0xdb')]({'from':_0x315857,'to':_0x315857,'id':this['_initialRevisionId'],'name':_0x1024b6,'creatorId':_0x46e46a});}}[_0x4bcf('0x46')](_0x22dff4){const _0x5d815d=this[_0x4bcf('0xfb')][_0x4bcf('0xd3')]();this[_0x4bcf('0xf0')]=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](_0x5d815d),this[_0x4bcf('0xf0')]||(this[_0x4bcf('0xf0')]=this[_0x4bcf('0xdb')]({'from':_0x22dff4,'to':_0x22dff4,'id':_0x5d815d,'name':'','creatorId':null}));}[_0x4bcf('0xdb')]({name:_0x43057c,from:_0x4cbce0,to:_0x4d3cd5,creatorId:_0x3a7ac3,id:_0x12f7b4}){const _0xd72ed7=this['buildRevisionData']({'from':_0x4cbce0,'to':_0x4d3cd5});_0xd72ed7[_0x4bcf('0xa5')]=_0x43057c,_0xd72ed7['creatorId']=_0x3a7ac3,_0xd72ed7['id']=_0x12f7b4;const _0x3cadf4=this[_0x4bcf('0xe')](_0xd72ed7);return this[_0x4bcf('0x97')]&&this['_bufferUpdate'](_0xd72ed7['id'],_0xd72ed7,!0x0),_0x3cadf4;}[_0x4bcf('0xc1')](){this[_0x4bcf('0x54')][_0x4bcf('0xb0')]['for'](_0x4bcf('0xb2'))[_0x4bcf('0x10')]({'model':_0x4bcf('0xf')});}[_0x4bcf('0xc')](_0x30d3f6){return(_0x30d3f6=_0x30d3f6[_0x4bcf('0x8e')](_0xa20af=>!_0xa20af[_0x4bcf('0xa5')]||_0x4bcf('0xe4')!==_0xa20af[_0x4bcf('0xa5')]&&_0x4bcf('0x6a')!==_0xa20af['name']))[_0x4bcf('0x3a')](_0x5cec41=>{_0x4bcf('0x27')!=typeof _0x5cec41&&(_0x5cec41['children']=this[_0x4bcf('0xc')](_0x5cec41[_0x4bcf('0x91')]),_0x5cec41['attributes']=_0x5cec41['attributes']['filter'](_0x131775=>!_0x131775[0x0][_0x4bcf('0x83')]('data-revision-')));}),_0x30d3f6;}}function J(_0x33cdcf,_0x314271){const _0x1996cf=_0x314271[_0x4bcf('0x5b')]['view']['document'];if(_0x4bcf('0x27')==typeof _0x33cdcf)return new _0x43569e(_0x1996cf,_0x33cdcf);{const _0x30bf94=_0x33cdcf[_0x4bcf('0x91')][_0x4bcf('0x39')](_0x535a3b=>J(_0x535a3b,_0x314271));return new(B[_0x33cdcf[(_0x4bcf('0x73'))]]||_0x231e56)(_0x1996cf,_0x33cdcf['name'],_0x33cdcf['attributes'],_0x30bf94);}}class H{constructor(_0x143bd7){this[_0x4bcf('0x54')]=_0x143bd7,this[_0x4bcf('0x37')]=new Map(),this[_0x4bcf('0x7b')]=-0x1,this[_0x4bcf('0xec')]=-0x1,this[_0x4bcf('0x21')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x4bcf('0x100')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x4bcf('0x5a')]=new Map(),this[_0x4bcf('0x2b')]=new Map(),this[_0x4bcf('0xf7')]=new Map(),this[_0x4bcf('0xcd')]=0x1;}[_0x4bcf('0x5c')](_0x26342d){this[_0x4bcf('0xc8')]=_0x26342d;const _0x1ccf54=new Map(),_0x36d458=new Map(),_0x1f11a0=this[_0x4bcf('0x54')]['model'][_0x4bcf('0xe8')]['roots'][_0x4bcf('0x39')](_0x444762=>_0x444762[_0x4bcf('0x0')]);for(const _0x5ef164 of _0x1f11a0){const _0xb54ed5=this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0xd7')](_0x5ef164),_0x5c5c14=q(_0xb54ed5);_0x1ccf54[_0x4bcf('0xe0')](_0x5ef164,_0x5c5c14),_0x36d458[_0x4bcf('0xe0')](_0x5ef164,Object[_0x4bcf('0x4a')](_0xb54ed5['getAttributes']()));}const _0x1b862d=Array[_0x4bcf('0xc9')](this[_0x4bcf('0x54')][_0x4bcf('0x80')]['markers'])['map'](_0x59b378=>[_0x59b378['name'],_0x59b378[_0x4bcf('0x1a')]()]),_0xd6cbd1=this[_0x4bcf('0xc8')][_0x4bcf('0x70')];this[_0x4bcf('0x72')](_0xd6cbd1,_0x1ccf54,_0x1b862d,_0x36d458),this[_0x4bcf('0x5e')]=this[_0x4bcf('0xcd')];const _0x410558=new Map(),_0x56f967=new Map();for(const _0x594e4c of _0x1f11a0){const _0x4ea8f3=G(_0x594e4c);_0x410558[_0x4bcf('0xe0')](_0x594e4c,_0x4ea8f3),_0x56f967['set'](_0x594e4c,{});}this[_0x4bcf('0x72')](Number[_0x4bcf('0x5f')],_0x410558,[],_0x56f967);}['getData'](_0x1dbd9e,_0x2bff31){if(this['_lastFrom']===_0x1dbd9e&&this[_0x4bcf('0xec')]<=_0x2bff31)this[_0x4bcf('0x37')][_0x4bcf('0xf5')]>0x1&&this[_0x4bcf('0x34')](this[_0x4bcf('0xec')]),this[_0x4bcf('0xa6')](this['_lastTo'],_0x2bff31,!0x0);else{if(!this['_savedMetaData']['has'](_0x1dbd9e)){const _0x3778d7=this[_0x4bcf('0x48')](_0x1dbd9e);this[_0x4bcf('0x33')](_0x3778d7,_0x1dbd9e,!0x1);}this[_0x4bcf('0x33')](_0x1dbd9e,_0x2bff31,!0x0);}return this['_lastFrom']=_0x1dbd9e,this[_0x4bcf('0xec')]=_0x2bff31,this[_0x4bcf('0xcb')]();}[_0x4bcf('0x5d')](_0x3d6440){this[_0x4bcf('0xa4')](),this[_0x4bcf('0x7b')]=_0x3d6440[_0x4bcf('0x61')],this[_0x4bcf('0xec')]=_0x3d6440[_0x4bcf('0x6e')];for(const _0x4b6dc5 in _0x3d6440[_0x4bcf('0x44')]){const _0x2f7cc6=_0x3d6440[_0x4bcf('0x44')][_0x4b6dc5]['attachChange'],_0x1c13d5=_0x5d6016(_0x3d6440[_0x4bcf('0x44')][_0x4b6dc5][_0x4bcf('0x50')])||{},_0x5ea24a=this['_makeModelFromViewString'](_0x3d6440['diffData'][_0x4b6dc5][_0x4bcf('0x77')]);_0x5ea24a['rootName']=_0x4b6dc5,_0x5ea24a[_0x4bcf('0x7c')]=!_0x2f7cc6||!_0x2f7cc6[_0x4bcf('0xa7')],_0x5ea24a[_0x4bcf('0xa7')]=()=>_0x5ea24a[_0x4bcf('0x7c')],this[_0x4bcf('0x76')][_0x4bcf('0xe0')](_0x4b6dc5,_0x5ea24a),this['_baseRootsAttributes'][_0x4bcf('0xe0')](_0x4b6dc5,_0x1c13d5),_0x2f7cc6&&this['_touchedRoots'][_0x4bcf('0xe0')](_0x4b6dc5,_0x2f7cc6);const _0x41055d=this[_0x4bcf('0x1c')](_0x5ea24a);this[_0x4bcf('0xe6')][_0x4bcf('0xe0')](_0x4b6dc5,_0x41055d);for(const [_0x9904c5,_0x30d5e4]of _0x5ea24a[_0x4bcf('0x53')]){if(!_0x9904c5[_0x4bcf('0x83')](_0x4bcf('0x1e')))continue;const _0x168f64=_0x9904c5['split'](':')[0x2];for(const _0x20aeb7 of _0x30d5e4[_0x4bcf('0x6c')]({'singleCharacters':!0x0})){const _0x542f81=this['_getVidAttributeName'](_0x20aeb7),_0x2c9208=_0x4bcf('0x55')==_0x20aeb7[_0x4bcf('0x73')]?_0x20aeb7['previousPosition'][_0x4bcf('0xdf')][_0x4bcf('0xeb')](0x0,-0x1):_0x20aeb7[_0x4bcf('0xb9')]['path'],_0x59e43e=_0x41055d['getNodeByPath'](_0x2c9208)[_0x4bcf('0xfa')](_0x542f81);this[_0x4bcf('0x5a')]['set'](_0x59e43e,{'userId':_0x168f64});}}}this[_0x4bcf('0x5e')]=this[_0x4bcf('0xcd')];const _0x540619=[...Array(this[_0x4bcf('0xcd')])[_0x4bcf('0x19')]()][_0x4bcf('0xeb')](0x1)[_0x4bcf('0x8e')](_0x49f8eb=>!this[_0x4bcf('0x5a')][_0x4bcf('0xbc')](_0x49f8eb));let _0x536079=0x0;const _0x4e600b=new Map();for(const _0xee3b02 in _0x3d6440[_0x4bcf('0x44')]){const _0x599a01=_0x3d6440[_0x4bcf('0x44')][_0xee3b02][_0x4bcf('0xf9')],_0x14ea99=_0x5d6016(_0x3d6440[_0x4bcf('0x44')][_0xee3b02][_0x4bcf('0xd1')])||{},_0x33575d=this[_0x4bcf('0xdd')](_0x3d6440[_0x4bcf('0x44')][_0xee3b02][_0x4bcf('0x78')]);_0x33575d[_0x4bcf('0x0')]=_0xee3b02,_0x33575d[_0x4bcf('0x7c')]=!_0x599a01||_0x599a01['isAttached'],_0x33575d['isAttached']=()=>_0x33575d[_0x4bcf('0x7c')],this['_diffRoots']['set'](_0xee3b02,_0x33575d),this['_diffRootsAttributes'][_0x4bcf('0xe0')](_0xee3b02,_0x14ea99);const _0x5be0f6=this[_0x4bcf('0x1c')](_0x33575d,Number['NEGATIVE_INFINITY']);this[_0x4bcf('0x100')][_0x4bcf('0xe0')](_0xee3b02,_0x5be0f6),_0x4e600b[_0x4bcf('0xe0')](_0xee3b02,_0x33575d[_0x4bcf('0xa7')]()?_0x14ea99:{});for(const [_0x2126cd,_0x4cab65]of _0x33575d[_0x4bcf('0x53')]){if(!_0x2126cd['startsWith'](_0x4bcf('0x1e')))continue;const _0x874303=_0x2126cd[_0x4bcf('0x24')](':')[0x2];for(const _0x4de4ac of _0x4cab65[_0x4bcf('0x6c')]({'singleCharacters':!0x0})){const _0x158cf7=this[_0x4bcf('0x8b')](_0x4de4ac),_0x3f886a=this['_revisionId']++,_0x25df19=_0x4bcf('0x55')==_0x4de4ac[_0x4bcf('0x73')]?_0x4de4ac[_0x4bcf('0xb9')][_0x4bcf('0xdf')][_0x4bcf('0xeb')](0x0,-0x1):_0x4de4ac[_0x4bcf('0xb9')][_0x4bcf('0xdf')];_0x5be0f6[_0x4bcf('0xb8')](_0x25df19)[_0x4bcf('0xac')](_0x158cf7,_0x3f886a),this['_touched'][_0x4bcf('0xe0')](_0x3f886a,{'userId':_0x874303});}}for(const _0x215d52 of this['editor'][_0x4bcf('0x80')]['createRangeIn'](_0x33575d)['getWalker']({'singleCharacters':!0x0})){const _0xe5d0bc=this[_0x4bcf('0x8b')](_0x215d52),_0x1a14a9=_0x4bcf('0x55')==_0x215d52[_0x4bcf('0x73')]?_0x215d52[_0x4bcf('0xb9')][_0x4bcf('0xdf')]['slice'](0x0,-0x1):_0x215d52[_0x4bcf('0xb9')][_0x4bcf('0xdf')],_0x319088=_0x5be0f6['getNodeByPath'](_0x1a14a9);_0x319088['getAttribute'](_0xe5d0bc)>0x0||_0x319088[_0x4bcf('0xac')](_0xe5d0bc,_0x540619[_0x536079++]);}for(const [_0x5d8a4d,_0x4c42fb]of _0x33575d[_0x4bcf('0x53')])_0x5d8a4d['startsWith'](_0x4bcf('0x1e'))||this[_0x4bcf('0x21')][_0x4bcf('0xe0')](_0x5d8a4d,_0x4c42fb);}const _0x3ecd29=G(_0x4bcf('0x67'));this[_0x4bcf('0x76')][_0x4bcf('0xe0')](_0x4bcf('0x67'),_0x3ecd29),this[_0x4bcf('0xe6')][_0x4bcf('0xe0')]('$graveyard',this[_0x4bcf('0x1c')](_0x3ecd29,0x1));const _0x16296=G(_0x4bcf('0x67'));this['_diffRoots']['set'](_0x4bcf('0x67'),_0x16296),this[_0x4bcf('0x100')][_0x4bcf('0xe0')](_0x4bcf('0x67'),this['_makeIdsRoot'](_0x16296,0x1));const _0x4ba3a6=Array[_0x4bcf('0xc9')](this[_0x4bcf('0x65')])[_0x4bcf('0x39')](([_0x466aee,_0x1e5c4b])=>[_0x466aee,q(_0x1e5c4b)]);this[_0x4bcf('0x72')](this[_0x4bcf('0xec')],_0x4ba3a6,this['_markers'],_0x4e600b);}[_0x4bcf('0xdd')](_0x1d5a90){const _0xc11685=JSON[_0x4bcf('0x2d')](_0x1d5a90),_0x377601=this[_0x4bcf('0x54')]['editing']['view'][_0x4bcf('0xe8')],_0x4791ed=new _0x19b0bc(_0x377601,_0xc11685['map'](_0x5a52fe=>J(_0x5a52fe,this[_0x4bcf('0x54')])));return this[_0x4bcf('0x54')]['data'][_0x4bcf('0x59')](_0x4791ed);}[_0x4bcf('0x72')](_0x215588,_0x4dd396,_0x4179d2,_0x250e66){const _0x513031=new Map(_0x4dd396),_0x202281=new Map(_0x5d6016(_0x250e66)),_0x4c1cbf=new Map();for(const [_0x11c3af,_0x501233]of _0x4179d2)_0x4c1cbf[_0x4bcf('0xe0')](_0x11c3af,{'start':_0x501233[_0x4bcf('0xde')][_0x4bcf('0xee')](),'end':_0x501233[_0x4bcf('0xab')][_0x4bcf('0xee')](),'rootName':_0x501233[_0x4bcf('0xaa')]['rootName']});this[_0x4bcf('0x37')][_0x4bcf('0xe0')](_0x215588,{'roots':_0x513031,'markers':_0x4c1cbf,'rootsAttributes':_0x202281});}['_removeMetaData'](_0xdcafcf){this['_savedMetaData'][_0x4bcf('0xe1')](_0xdcafcf);}[_0x4bcf('0x3e')](){this[_0x4bcf('0xa4')](),this['_lastFrom']=-0x1,this[_0x4bcf('0xec')]=-0x1,this[_0x4bcf('0x37')][_0x4bcf('0xc4')](),this[_0x4bcf('0x5c')](this[_0x4bcf('0xc8')]);}['_reset'](){this[_0x4bcf('0x5a')][_0x4bcf('0xc4')](),this[_0x4bcf('0x2b')]['clear'](),this[_0x4bcf('0xf7')][_0x4bcf('0xc4')](),this[_0x4bcf('0x65')]['clear'](),this[_0x4bcf('0xc3')][_0x4bcf('0xc4')](),this[_0x4bcf('0x76')]['clear'](),this[_0x4bcf('0x71')][_0x4bcf('0xc4')](),this[_0x4bcf('0x100')][_0x4bcf('0xc4')](),this['_baseIdsRoots'][_0x4bcf('0xc4')](),this[_0x4bcf('0x21')][_0x4bcf('0xc4')](),this['_revisionId']=0x1,this[_0x4bcf('0x5e')]=this[_0x4bcf('0xcd')];}[_0x4bcf('0x1c')](_0x4c6fc0,_0x2a0ef9=null){let _0x5720d8=null;_0x4c6fc0['is'](_0x4bcf('0x96'))||(_0x5720d8=new _0x51760e(_0x4c6fc0[_0x4bcf('0xa5')],{'vid_start':null===_0x2a0ef9?this[_0x4bcf('0xcd')]++:_0x2a0ef9++}));const _0x4f928e=[];for(const _0x3566ba of _0x4c6fc0['getChildren']())if(_0x3566ba['is'](_0x4bcf('0xff'))){_0x4f928e[_0x4bcf('0x56')](this[_0x4bcf('0x1c')](_0x3566ba,_0x2a0ef9));const _0x2f7e98=_0x4f928e[_0x4f928e[_0x4bcf('0x60')]-0x1];null!==_0x2a0ef9&&(_0x2a0ef9=_0x2f7e98['is']('element',_0x4bcf('0x3f'))?_0x2f7e98[_0x4bcf('0xfa')]('vid')+0x1:_0x2f7e98[_0x4bcf('0xfa')](_0x4bcf('0x4d'))+0x1);}else for(let _0x3a8225=0x0;_0x3a8225<_0x3566ba['offsetSize'];_0x3a8225++)_0x4f928e['push'](new _0x51760e(_0x4bcf('0x3f'),{'vid':null===_0x2a0ef9?this[_0x4bcf('0xcd')]++:_0x2a0ef9++}));if(_0x4c6fc0['is'](_0x4bcf('0x96'))){const _0x3c7d1b=G(_0x4c6fc0['rootName']);return _0x3c7d1b[_0x4bcf('0xe5')](0x0,_0x4f928e),_0x3c7d1b;}return _0x5720d8[_0x4bcf('0xac')](_0x4bcf('0x4d'),null===_0x2a0ef9?this[_0x4bcf('0xcd')]++:_0x2a0ef9++),_0x5720d8[_0x4bcf('0xe5')](0x0,_0x4f928e),_0x5720d8;}['_calculateMetaData'](_0x159d58,_0x1423e3,_0x1ddf36){this[_0x4bcf('0xa4')]();const {roots:_0x258679,markers:_0x11a19d,rootsAttributes:_0x234dc4}=this[_0x4bcf('0x37')][_0x4bcf('0x51')](_0x159d58);this[_0x4bcf('0x76')]=new Map(_0x258679),this[_0x4bcf('0x71')]=new Map(_0x5d6016(_0x234dc4));for(const [_0x2a0ad4,_0x8c8279]of this[_0x4bcf('0x76')])if('$graveyard'!==_0x2a0ad4&&(this[_0x4bcf('0x65')][_0x4bcf('0xe0')](_0x2a0ad4,q(_0x8c8279)),this[_0x4bcf('0xc3')]=new Map(_0x5d6016(_0x234dc4)),_0x1ddf36)){const _0x192767=this[_0x4bcf('0xcd')];this[_0x4bcf('0x100')]['set'](_0x2a0ad4,this[_0x4bcf('0x1c')](_0x8c8279)),this[_0x4bcf('0xe6')][_0x4bcf('0xe0')](_0x2a0ad4,this['_makeIdsRoot'](_0x8c8279,_0x192767));}this['_startingRevisionId']=this[_0x4bcf('0xcd')],this[_0x4bcf('0x65')][_0x4bcf('0xe0')]('$graveyard',q(this[_0x4bcf('0x76')]['get'](_0x4bcf('0x67')))),_0x1ddf36&&this['_idsRoots'][_0x4bcf('0xe0')](_0x4bcf('0x67'),this[_0x4bcf('0x1c')](this['_baseRoots'][_0x4bcf('0x51')]('$graveyard')));for(const [_0x56b25d,_0x57fd9e]of _0x11a19d){const _0x3c7e7e=this[_0x4bcf('0x76')][_0x4bcf('0x51')](_0x57fd9e[_0x4bcf('0x0')]),_0x205428=this[_0x4bcf('0x65')][_0x4bcf('0x51')](_0x57fd9e['rootName']),_0x37d0f0=new _0x222ffc(this['_fixPosition'](_0x57fd9e[_0x4bcf('0xde')],_0x3c7e7e),this[_0x4bcf('0x9a')](_0x57fd9e[_0x4bcf('0xab')],_0x3c7e7e)),_0x302b0a=this['_fixRange'](_0x37d0f0,_0x205428);_0x3c7e7e[_0x4bcf('0x53')][_0x4bcf('0xe0')](_0x56b25d,_0x37d0f0),this[_0x4bcf('0x21')][_0x4bcf('0xe0')](_0x56b25d,_0x302b0a);}this[_0x4bcf('0xa6')](_0x159d58,_0x1423e3,_0x1ddf36);}[_0x4bcf('0xa6')](_0x5896b6,_0x19b721,_0x3a2f6a){for(const _0x292e90 of this[_0x4bcf('0xc8')][_0x4bcf('0x87')](_0x5896b6,_0x19b721))this['_handleOperation'](_0x292e90,_0x3a2f6a);for(const _0x257217 of this[_0x4bcf('0x65')][_0x4bcf('0x69')]())_0x257217[_0x4bcf('0x53')]['clear']();for(const [_0x4523b1,_0x5c23ea]of this[_0x4bcf('0x21')]){this[_0x4bcf('0x65')]['get'](_0x5c23ea[_0x4bcf('0xaa')][_0x4bcf('0x0')])[_0x4bcf('0x53')]['set'](_0x4523b1,_0x5c23ea[_0x4bcf('0xee')]());}const _0x501516=new Map(),_0x5edfed=new Map();for(const [_0x46e202,_0x47794b]of this[_0x4bcf('0x65')])_0x501516[_0x4bcf('0xe0')](_0x46e202,q(_0x47794b)),_0x5edfed[_0x4bcf('0xe0')](_0x46e202,this[_0x4bcf('0xc3')][_0x4bcf('0x51')](_0x46e202));this['_saveMetaData'](_0x19b721,_0x501516,this['_markers'],_0x5edfed);}[_0x4bcf('0x48')](_0x36f5c1){const _0x4ca52f=Array[_0x4bcf('0xc9')](this['_savedMetaData'][_0x4bcf('0x19')]());_0x4ca52f[_0x4bcf('0x84')]((_0x5a555d,_0x47ce74)=>_0x5a555d-_0x47ce74),_0x4ca52f[_0x4bcf('0x4f')]();for(const _0x2cb355 of _0x4ca52f)if(_0x2cb355<_0x36f5c1)return _0x2cb355;return Number['NEGATIVE_INFINITY'];}[_0x4bcf('0x75')](_0x3268a4,_0x26ccb1){const _0x344422=Array['from'](_0x26ccb1['markers'])['map'](([_0x5db1a5,_0x52cdfe])=>[_0x5db1a5,this['_fixRange'](_0x52cdfe,_0x3268a4)]);_0x3268a4[_0x4bcf('0x53')]=new Map(_0x344422);}[_0x4bcf('0xea')](_0x254b32){for(const _0x1bfd18 of this[_0x4bcf('0x21')][_0x4bcf('0x69')]()){const _0x1bcd24=_0x1bfd18[_0x4bcf('0x92')](_0x254b32),_0x5fe991=_0x222ffc[_0x4bcf('0x15')](_0x1bcd24);_0x1bfd18[_0x4bcf('0xde')]=_0x5fe991[_0x4bcf('0xde')],_0x1bfd18[_0x4bcf('0xab')]=_0x5fe991[_0x4bcf('0xab')];}}[_0x4bcf('0x16')](_0x40b304,_0x4c3633){if('addRoot'==_0x40b304[_0x4bcf('0x73')]||'detachRoot'==_0x40b304[_0x4bcf('0x73')])return void this['_handleRootOperation'](_0x40b304,_0x4c3633);if(_0x4bcf('0x93')==_0x40b304[_0x4bcf('0x73')]){const _0x8ca050=_0x40b304['position'][_0x4bcf('0xaa')][_0x4bcf('0x0')];this[_0x4bcf('0x65')][_0x4bcf('0xbc')](_0x8ca050)||(this[_0x4bcf('0x65')]['set'](_0x8ca050,G(_0x8ca050,!0x0)),this['_diffRootsAttributes'][_0x4bcf('0xe0')](_0x8ca050,{}),_0x4c3633&&this[_0x4bcf('0x100')][_0x4bcf('0xe0')](_0x8ca050,G(_0x8ca050,!0x0)));}else{if(_0x4bcf('0x32')==_0x40b304['type']||_0x4bcf('0xda')==_0x40b304[_0x4bcf('0x73')]||_0x4bcf('0xad')==_0x40b304[_0x4bcf('0x73')])return void this[_0x4bcf('0xf1')](_0x40b304);}const _0x31f676=this['_cloneOperation'](_0x40b304,this[_0x4bcf('0x65')]);if(_0x4bcf('0xce')!==_0x40b304['type']&&(_0x31f676['_execute'](),this[_0x4bcf('0xea')](_0x31f676)),_0x4c3633)switch(_0x31f676['type']){case _0x4bcf('0x93'):this[_0x4bcf('0x47')](_0x40b304);break;case _0x4bcf('0x6b'):case'remove':case'reinsert':this[_0x4bcf('0x40')](_0x40b304);break;case _0x4bcf('0xa0'):this[_0x4bcf('0x43')](_0x40b304);break;case _0x4bcf('0x24'):this[_0x4bcf('0xfd')](_0x40b304);break;case _0x4bcf('0xce'):this[_0x4bcf('0x14')](_0x40b304);}}[_0x4bcf('0x62')](_0x4ad0c4,_0x33cc80){const _0x78931=_0x4ad0c4['clone']();return _0x78931[_0x4bcf('0xd8')]=_0x4ad0c4[_0x4bcf('0xd8')],this['_fixOperation'](_0x78931,_0x33cc80),_0x78931;}['_getBaseVids'](_0x3e86a9){return _0x3e86a9[_0x4bcf('0x39')](_0x5bc1b2=>{const _0x413822=this[_0x4bcf('0x8b')](_0x5bc1b2);return Number(_0x5bc1b2[_0x4bcf('0x22')]['getAttribute'](_0x413822));});}[_0x4bcf('0xb7')](_0x3f5979,_0x3ecccb){if(_0x3f5979['is']('element',_0x4bcf('0x3f')))_0x3ecccb[_0x4bcf('0x56')]({'item':_0x3f5979,'type':_0x4bcf('0x3d')});else{_0x3f5979['is']('element')&&_0x3ecccb[_0x4bcf('0x56')]({'item':_0x3f5979,'type':_0x4bcf('0x1b')});for(const _0x53456f of _0x3f5979[_0x4bcf('0x26')]())this['_generateTape'](_0x53456f,_0x3ecccb);_0x3f5979['is'](_0x4bcf('0xff'))&&_0x3ecccb[_0x4bcf('0x56')]({'item':_0x3f5979,'type':_0x4bcf('0x55')});}return _0x3ecccb;}['_getState'](){const _0x247c84=new Map(this['_touched']),_0x435883=new Map(_0x247c84),_0x169064=new Map(),_0x489b38={'insertions':{},'deletions':{}},_0xb5d2cf={'insertions':{},'deletions':{}},_0x1a344b=new Map(),_0x19e87d=new Set([...this[_0x4bcf('0x76')][_0x4bcf('0x19')](),...this[_0x4bcf('0x65')]['keys']()]);_0x19e87d[_0x4bcf('0xe1')](_0x4bcf('0x67'));for(const _0x3ee2ef of _0x19e87d){const _0x32969c=this[_0x4bcf('0x65')]['get'](_0x3ee2ef)||G(_0x3ee2ef,!0x1),_0x3724e2=this['_baseRoots'][_0x4bcf('0x51')](_0x3ee2ef)||G(_0x3ee2ef,!0x1);_0x32969c[_0x4bcf('0xa7')]()||_0x3724e2[_0x4bcf('0xa7')]()?(_0x489b38[_0x4bcf('0x78')][_0x3ee2ef]=q(_0x32969c),_0x489b38[_0x4bcf('0x77')][_0x3ee2ef]=q(_0x3724e2),this['_copyMarkers'](_0x489b38[_0x4bcf('0x77')][_0x3ee2ef],_0x3724e2),this[_0x4bcf('0x75')](_0x489b38[_0x4bcf('0x78')][_0x3ee2ef],_0x32969c),_0xb5d2cf[_0x4bcf('0x78')][_0x3ee2ef]=this[_0x4bcf('0xb7')](this[_0x4bcf('0x100')][_0x4bcf('0x51')](_0x3ee2ef),[]),_0xb5d2cf[_0x4bcf('0x77')][_0x3ee2ef]=this[_0x4bcf('0xb7')](this[_0x4bcf('0xe6')][_0x4bcf('0x51')](_0x3ee2ef)||G(_0x3ee2ef,!0x1),[])):_0x19e87d[_0x4bcf('0xe1')](_0x3ee2ef);}for(const _0x11f05e of _0x19e87d){const _0x3b1381=_0xb5d2cf[_0x4bcf('0x78')][_0x11f05e];for(const _0x309627 of _0x3b1381){const _0xd92785=this['_getVidAttributeName'](_0x309627),_0x54554f=_0x309627[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0xd92785);_0x435883[_0x4bcf('0xe1')](_0x54554f),_0x54554f>=this[_0x4bcf('0x5e')]&&_0x169064['set'](_0x54554f,_0x247c84[_0x4bcf('0x51')](_0x54554f));}}for(const _0xa568d3 of _0x19e87d){const _0x1977e1=_0xb5d2cf[_0x4bcf('0x78')][_0xa568d3],_0x1e35e4=this['_getBaseVids'](_0xb5d2cf[_0x4bcf('0x77')][_0xa568d3]);let _0x2cdb22=0x0;for(const _0x4341b6 of _0x1977e1){const _0x281165=this['_getVidAttributeName'](_0x4341b6),_0x45cfd2=_0x4341b6[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x281165);if(!_0x169064[_0x4bcf('0xbc')](_0x45cfd2)&&!_0x1a344b[_0x4bcf('0xbc')](_0x45cfd2)){if(_0x435883[_0x4bcf('0xbc')](_0x45cfd2))_0x2cdb22++;else{if(_0x45cfd2!=_0x1e35e4[_0x2cdb22]){const _0x2ddaab=_0x247c84[_0x4bcf('0x51')](_0x45cfd2)||_0x247c84[_0x4bcf('0x51')](_0x1e35e4[_0x2cdb22]);for(;_0x45cfd2!=_0x1e35e4[_0x2cdb22];)_0x435883['has'](_0x1e35e4[_0x2cdb22])||(_0x1a344b[_0x4bcf('0xe0')](_0x1e35e4[_0x2cdb22],_0x2ddaab),_0x247c84[_0x4bcf('0xe0')](_0x1e35e4[_0x2cdb22],_0x2ddaab)),_0x2cdb22++;}_0x2cdb22++;}}}}for(const _0x455cd6 of _0x19e87d){const _0x5395ee=_0xb5d2cf['insertions'][_0x455cd6];for(const _0x372d2e of _0x5395ee){const _0x2fe903=this[_0x4bcf('0x8b')](_0x372d2e),_0xdd0700=_0x372d2e[_0x4bcf('0x22')]['getAttribute'](_0x2fe903);if(_0x1a344b['has'](_0xdd0700)){const _0x2d71b1=_0x1a344b[_0x4bcf('0x51')](_0xdd0700);_0x435883[_0x4bcf('0xbc')](_0xdd0700)||_0x435883['set'](_0xdd0700,{..._0x2d71b1}),_0x169064[_0x4bcf('0xe0')](_0xdd0700,{..._0x2d71b1});}}}for(const _0x2f3721 of _0x435883[_0x4bcf('0x19')]())_0x2f3721>=this[_0x4bcf('0x5e')]&&_0x435883[_0x4bcf('0xe1')](_0x2f3721);const _0xd6ecef=new Map();for(const _0x559221 of _0x19e87d){let _0x21288f=_0xb5d2cf[_0x4bcf('0x78')][_0x559221];for(const _0x459839 of _0x21288f)if(_0x459839['item']['is'](_0x4bcf('0xff'),_0x4bcf('0x9e'))){const _0x1cad3c=this[_0x4bcf('0x8b')](_0x459839),_0x1734ee=_0x459839[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x1cad3c);if(_0x169064[_0x4bcf('0xbc')](_0x1734ee)){const _0x33e8a3=_0x459839[_0x4bcf('0x22')]['parent'][_0x4bcf('0xa2')][_0x4bcf('0xfa')](_0x4bcf('0x3')),_0x52c78c=_0xd6ecef['get'](_0x33e8a3)||new Set();_0x52c78c[_0x4bcf('0xb3')](_0x169064['get'](_0x1734ee)[_0x4bcf('0xe7')]),_0xd6ecef['set'](_0x33e8a3,_0x52c78c);}}_0x21288f=_0xb5d2cf[_0x4bcf('0x77')][_0x559221];for(const _0x522d56 of _0x21288f)if(_0x522d56[_0x4bcf('0x22')]['is'](_0x4bcf('0xff'),'tableCell')){const _0x119636=this['_getVidAttributeName'](_0x522d56),_0x4d0dce=_0x522d56[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x119636);if(_0x435883[_0x4bcf('0xbc')](_0x4d0dce)){const _0x3ca640=_0x522d56[_0x4bcf('0x22')][_0x4bcf('0xa2')][_0x4bcf('0xa2')]['getAttribute'](_0x4bcf('0x3')),_0x2b4bbb=_0xd6ecef[_0x4bcf('0x51')](_0x3ca640)||new Set();_0x2b4bbb[_0x4bcf('0xb3')](_0x435883[_0x4bcf('0x51')](_0x4d0dce)['userId']),_0xd6ecef['set'](_0x3ca640,_0x2b4bbb);}}for(const _0x5aa53c of _0xd6ecef['keys']())(_0x169064[_0x4bcf('0xbc')](_0x5aa53c)||_0x435883[_0x4bcf('0xbc')](_0x5aa53c))&&_0xd6ecef[_0x4bcf('0xe1')](_0x5aa53c);}for(const _0x3527de of _0x19e87d){const _0x2f2732=_0xb5d2cf['insertions'][_0x3527de];let _0x47d8c2=null,_0x5ba7cc=null;for(const _0x2444aa of _0x2f2732){const _0x18b07c=this[_0x4bcf('0x8b')](_0x2444aa),_0x666c2c=_0x2444aa[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x18b07c),_0x32df31=_0xd6ecef[_0x4bcf('0x51')](_0x666c2c);_0x32df31&&_0x4bcf('0x1b')==_0x2444aa[_0x4bcf('0x73')]&&(_0x47d8c2=Array[_0x4bcf('0xc9')](_0x32df31)[0x0],_0x5ba7cc=_0x2444aa['item'][_0x4bcf('0xfa')](_0x4bcf('0x4d'))),_0x47d8c2&&(_0x435883[_0x4bcf('0xe0')](_0x666c2c,{'userId':_0x47d8c2}),_0x169064['set'](_0x666c2c,{'userId':_0x47d8c2})),_0x666c2c==_0x5ba7cc&&(_0x47d8c2=null,_0x5ba7cc=null);}}const _0xfb1bf0={},_0xd0ce7=new Set();for(const _0x2b99ef of _0x19e87d){const _0x3ea6a6=_0x489b38[_0x4bcf('0x77')][_0x2b99ef],_0x2c8401=_0x489b38[_0x4bcf('0x78')][_0x2b99ef];for(const {userId:_0x2783b6}of this[_0x4bcf('0x2b')][_0x4bcf('0x69')]())null!==_0x2783b6&&_0xd0ce7[_0x4bcf('0xb3')](_0x2783b6);for(const {userId:_0x900306}of this[_0x4bcf('0xf7')][_0x4bcf('0x69')]())null!==_0x900306&&_0xd0ce7[_0x4bcf('0xb3')](_0x900306);this['_markChanges'](_0x2c8401,_0xb5d2cf['insertions'][_0x2b99ef],_0x169064,'insertion',_0xd0ce7),this['_markChanges'](_0x3ea6a6,_0xb5d2cf[_0x4bcf('0x77')][_0x2b99ef],_0x435883,_0x4bcf('0xca'),_0xd0ce7),_0xfb1bf0[_0x2b99ef]={'insertions':this[_0x4bcf('0xe2')](_0x2c8401),'deletions':this[_0x4bcf('0xe2')](_0x3ea6a6),'attachChange':this['_touchedRoots'][_0x4bcf('0x51')](_0x2b99ef)||null,'attributesBefore':_0x5d6016(this[_0x4bcf('0x71')][_0x4bcf('0x51')](_0x2b99ef))||{},'attributesAfter':_0x5d6016(this[_0x4bcf('0xc3')][_0x4bcf('0x51')](_0x2b99ef))};}return{'diffData':_0xfb1bf0,'authorsIds':Array[_0x4bcf('0xc9')](_0xd0ce7)};}[_0x4bcf('0xfc')](_0x2c398f){for(const [,_0x97c49]of _0x2c398f[_0x4bcf('0x53')]){const _0x58af07=_0x97c49[_0x4bcf('0xde')][_0x4bcf('0x8a')]()[_0x4bcf('0x8e')](_0x97545d=>_0x4bcf('0x9e')==_0x97545d[_0x4bcf('0xa5')]);for(const _0xb0bedb of _0x58af07)0x1==_0xb0bedb[_0x4bcf('0x4e')]&&_0xb0bedb[_0x4bcf('0x2e')](0x0)['is'](_0x4bcf('0xff'),'paragraph')&&_0xb0bedb['getChild'](0x0)[_0x4bcf('0xac')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1097dd){this[_0x4bcf('0xfc')](_0x1097dd);const _0x4e681a=this['editor'][_0x4bcf('0x11')]['toView'](_0x1097dd,{}),_0x47d5d0=Array['from'](_0x4e681a[_0x4bcf('0x26')]())[_0x4bcf('0x39')](_0x31549e=>this[_0x4bcf('0xef')](_0x31549e));return JSON[_0x4bcf('0x88')](_0x47d5d0);}[_0x4bcf('0xef')](_0x49eb95){if(_0x49eb95['is'](_0x4bcf('0x3f')))return _0x49eb95[_0x4bcf('0x11')];{const _0x2f5ed0=_0x49eb95;return{'type':Object[_0x4bcf('0x19')](B)['find'](_0x3c4096=>_0x49eb95 instanceof B[_0x3c4096]),'name':_0x2f5ed0[_0x4bcf('0xa5')],'attributes':Array['from'](_0x2f5ed0[_0x4bcf('0x38')]()),'children':Array[_0x4bcf('0xc9')](_0x2f5ed0['getChildren']())[_0x4bcf('0x39')](_0x19ec55=>this['_getViewJson'](_0x19ec55))};}}[_0x4bcf('0x49')](_0x1a19b5,_0x1f9403,_0x5a00de,_0x2c631d,_0x3808bf){let _0x34e52f=null,_0x3c6056=null,_0x3a5cb8=0x0;const _0x15d0dd=this[_0x4bcf('0x54')][_0x4bcf('0x80')];for(let _0x4f36e6=0x0;_0x4f36e6<_0x1f9403[_0x4bcf('0x60')];_0x4f36e6++){const _0x8554ff=this[_0x4bcf('0x8b')](_0x1f9403[_0x4f36e6]),_0x1e5b1e=_0x1f9403[_0x4f36e6][_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x8554ff),_0x1fe281=_0x5a00de['get'](_0x1e5b1e),_0xd3aa2=_0x4f36e6==_0x1f9403[_0x4bcf('0x60')]-0x1;(!_0x34e52f&&_0x1fe281&&(_0x34e52f=_0x1fe281,_0x3c6056=_0x1f9403[_0x4f36e6]),_0x34e52f&&(!_0x1fe281||_0x1fe281[_0x4bcf('0xe7')]!=_0x34e52f[_0x4bcf('0xe7')]))&&(_0x5dea73(_0x1fe281,L(_0x3c6056,_0x1a19b5,_0x15d0dd),L(_0x1f9403[_0x4f36e6],_0x1a19b5,_0x15d0dd)),_0x34e52f=_0x1fe281||null,_0x3c6056=_0x1fe281?_0x1f9403[_0x4f36e6]:null),_0x34e52f&&_0xd3aa2&&_0x5dea73(_0x1fe281,L(_0x3c6056,_0x1a19b5,_0x15d0dd),W(_0x1f9403[_0x4f36e6],_0x1a19b5,_0x15d0dd));}function _0x5dea73(_0x4498c9,_0x294a09,_0x190901){const _0x3b9cad=_0x34e52f[_0x4bcf('0xe7')],_0xdaf14='revision:'+_0x2c631d+':'+_0x3b9cad+':'+_0x3a5cb8++,_0x17975d=_0x15d0dd['createRange'](_0x294a09,_0x190901);_0x1a19b5[_0x4bcf('0x53')]['set'](_0xdaf14,_0x17975d),null!==_0x3b9cad&&_0x3808bf[_0x4bcf('0xb3')](_0x3b9cad);}}[_0x4bcf('0x8b')](_0x351bd9){switch(_0x351bd9[_0x4bcf('0x73')]){case'elementStart':return _0x4bcf('0x3');case'elementEnd':return'vid_end';default:return _0x4bcf('0xc5');}}['_fixOperation'](_0x4ab931,_0x57dbb2){_0x4ab931[_0x4bcf('0xf2')]=null;for(const _0x35ab98 in _0x4ab931){const _0x4988e7=_0x4ab931[_0x35ab98];if(_0x4988e7 instanceof _0x50936b){const _0xa0cc5a=_0x57dbb2['get'](_0x4988e7[_0x4bcf('0xaa')][_0x4bcf('0x0')]);_0x4ab931[_0x35ab98]=this[_0x4bcf('0x9a')](_0x4988e7,_0xa0cc5a);}if(_0x4988e7 instanceof _0x222ffc){const _0x553750=_0x57dbb2['get'](_0x4988e7['root']['rootName']);_0x4ab931[_0x35ab98]=this['_fixRange'](_0x4988e7,_0x553750);}_0x4bcf('0xaa')===_0x35ab98&&(_0x4ab931[_0x4bcf('0xaa')]=_0x57dbb2[_0x4bcf('0x51')](_0x4ab931[_0x4bcf('0xaa')][_0x4bcf('0x0')]));}}[_0x4bcf('0x7a')](_0x4bbdd5,_0x5f3197){return this['editor'][_0x4bcf('0x80')][_0x4bcf('0x52')](this['_fixPosition'](_0x4bbdd5[_0x4bcf('0xde')],_0x5f3197),this['_fixPosition'](_0x4bbdd5[_0x4bcf('0xab')],_0x5f3197));}[_0x4bcf('0x9a')](_0x53f474,_0xae27ee){return this[_0x4bcf('0x54')][_0x4bcf('0x80')]['createPositionFromPath'](_0xae27ee,_0x53f474['path'],_0x53f474[_0x4bcf('0x28')]);}[_0x4bcf('0x47')](_0x45d2fe){const _0x30a00c=this['_idsRoots'][_0x4bcf('0x51')](_0x45d2fe['position']['root'][_0x4bcf('0x0')]),_0x41a6b1=this[_0x4bcf('0x9a')](_0x45d2fe[_0x4bcf('0xa1')],_0x30a00c),_0x166588=null===_0x45d2fe['_authorId']?null:_0x45d2fe[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0x34ea71=_0x41a6b1[_0x4bcf('0xa2')],_0x752eb3=this[_0x4bcf('0xcd')],_0x1b178c=[];for(const _0x32865d of _0x45d2fe[_0x4bcf('0x6d')])if(_0x32865d['is'](_0x4bcf('0xff')))_0x1b178c['push'](this[_0x4bcf('0x1c')](_0x32865d));else for(let _0x3152f4=0x0;_0x3152f4<_0x32865d['offsetSize'];_0x3152f4++)_0x1b178c['push'](new _0x51760e(_0x4bcf('0x3f'),{'vid':this['_revisionId']++}));const _0x1b3288=this['_revisionId'];for(let _0x278838=_0x752eb3;_0x278838<_0x1b3288;_0x278838++)this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x278838,{'userId':_0x166588});_0x34ea71['_insertChild'](_0x41a6b1['offset'],_0x1b178c);}['_handleMoveOperation'](_0x19e84b){(_0x19e84b=this[_0x4bcf('0x62')](_0x19e84b,this[_0x4bcf('0x100')]))[_0x4bcf('0x102')]();const _0x4951e8=null===_0x19e84b[_0x4bcf('0xd8')]?null:_0x19e84b[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')]('Users')['me']['id'],_0x5eac43=_0x19e84b[_0x4bcf('0xc6')](),_0x1da679=_0x5eac43[_0x4bcf('0xa2')],_0x382a54=_0x5eac43[_0x4bcf('0xb')];!function _0x17bdec(_0x5e80e9,_0x25b9ab,_0x5232f,_0x364709){for(let _0x44fc17=_0x5232f;_0x44fc17<_0x364709;_0x44fc17++){const _0x42fcd4=_0x25b9ab[_0x4bcf('0x2e')](_0x44fc17);_0x42fcd4['is'](_0x4bcf('0xff'),_0x4bcf('0x3f'))?_0x5e80e9[_0x4bcf('0xe0')](_0x42fcd4[_0x4bcf('0xfa')](_0x4bcf('0xc5')),{'userId':_0x4951e8}):(_0x5e80e9[_0x4bcf('0xe0')](_0x42fcd4[_0x4bcf('0xfa')](_0x4bcf('0x3')),{'userId':_0x4951e8}),_0x17bdec(_0x5e80e9,_0x42fcd4,0x0,_0x42fcd4[_0x4bcf('0x4e')]),_0x5e80e9[_0x4bcf('0xe0')](_0x42fcd4[_0x4bcf('0xfa')](_0x4bcf('0x4d')),{'userId':_0x4951e8}));}}(this[_0x4bcf('0x5a')],_0x1da679,_0x382a54,_0x382a54+_0x19e84b[_0x4bcf('0x68')]);}['_handleMergeOperation'](_0x4299c1){const _0x3382b0=null===(_0x4299c1=this[_0x4bcf('0x62')](_0x4299c1,this[_0x4bcf('0x100')]))[_0x4bcf('0xd8')]?null:_0x4299c1[_0x4bcf('0xd8')]||this['editor']['plugins'][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0x57dab6=_0x4299c1[_0x4bcf('0xa8')][_0x4bcf('0xa2')],_0xedf9ba=_0x4299c1[_0x4bcf('0x86')][_0x4bcf('0xa2')],_0x2b9097=_0x57dab6['getAttribute'](_0x4bcf('0x4d')),_0x2797b6=_0xedf9ba[_0x4bcf('0xfa')](_0x4bcf('0x3'));_0x57dab6[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0xedf9ba[_0x4bcf('0xfa')](_0x4bcf('0x4d'))),_0xedf9ba[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x2b9097),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x2797b6,{'userId':_0x3382b0}),this['_touched'][_0x4bcf('0xe0')](_0x2b9097,{'userId':_0x3382b0}),_0x4299c1[_0x4bcf('0x102')]();}[_0x4bcf('0xfd')](_0x61312e){const _0x1df619=null===(_0x61312e=this[_0x4bcf('0x62')](_0x61312e,this[_0x4bcf('0x100')]))[_0x4bcf('0xd8')]?null:_0x61312e[_0x4bcf('0xd8')]||this['editor'][_0x4bcf('0xb6')][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0xaf2e83=_0x61312e[_0x4bcf('0x95')],_0x55afe5=_0x61312e[_0x4bcf('0xfe')]['parent'];_0x61312e[_0x4bcf('0x102')]();const _0x4189e9=_0x55afe5[_0x4bcf('0xfa')](_0x4bcf('0x4d')),_0x4a1e9e=_0x61312e['insertionPosition'][_0x4bcf('0xc7')];if(_0xaf2e83){const _0x1b25df=_0x4a1e9e[_0x4bcf('0xfa')](_0x4bcf('0x4d')),_0x5d9b7f=_0x55afe5[_0x4bcf('0xfa')](_0x4bcf('0x4d'));_0x55afe5[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x1b25df),_0x4a1e9e[_0x4bcf('0xac')]('vid_end',_0x5d9b7f),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x55afe5['getAttribute']('vid_end'),{'userId':_0x1df619}),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x4a1e9e[_0x4bcf('0xfa')](_0x4bcf('0x3')),{'userId':_0x1df619});}else{const _0x2ea6ab=this[_0x4bcf('0xcd')]++,_0x423ae7=this[_0x4bcf('0xcd')]++;_0x55afe5[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x2ea6ab),_0x4a1e9e[_0x4bcf('0xac')](_0x4bcf('0x3'),_0x423ae7),_0x4a1e9e[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x4189e9),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x2ea6ab,{'userId':_0x1df619}),this['_touched'][_0x4bcf('0xe0')](_0x423ae7,{'userId':_0x1df619});}}[_0x4bcf('0x14')](_0x1c2f31){if(!_0x1c2f31[_0x4bcf('0x6')])return;const _0x4b4862=(_0x1c2f31=this[_0x4bcf('0x62')](_0x1c2f31,this[_0x4bcf('0x65')]))[_0x4bcf('0x25')]?_0x1c2f31[_0x4bcf('0x25')][_0x4bcf('0xaa')]:null,_0x2c2fe5=_0x1c2f31['newRange']?_0x1c2f31[_0x4bcf('0x82')][_0x4bcf('0xaa')]:null;_0x4b4862&&this[_0x4bcf('0x21')]['delete'](_0x1c2f31[_0x4bcf('0xa5')]),_0x2c2fe5&&this[_0x4bcf('0x21')][_0x4bcf('0xe0')](_0x1c2f31['name'],_0x1c2f31[_0x4bcf('0x82')][_0x4bcf('0xee')]());const _0x5374be=null===_0x1c2f31['_authorId']?null:_0x1c2f31[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')]('Users')['me']['id'],_0x505364=_0x1c2f31[_0x4bcf('0xa5')];if(!this[_0x4bcf('0x2b')]['has'](_0x505364))return void this[_0x4bcf('0x2b')]['set'](_0x505364,{'range':_0x1c2f31[_0x4bcf('0x25')],'userId':_0x5374be});const _0x223a44=this['_touchedMarkers'][_0x4bcf('0x51')](_0x505364),_0x1eb5e7=_0x223a44[_0x4bcf('0x7d')],_0x222697=_0x1c2f31[_0x4bcf('0x82')];null==_0x1eb5e7&&null==_0x222697||_0x1eb5e7&&_0x222697&&_0x1eb5e7['isEqual'](_0x222697)?this[_0x4bcf('0x2b')]['delete'](_0x1c2f31[_0x4bcf('0xa5')]):_0x223a44[_0x4bcf('0xe7')]=_0x5374be;}[_0x4bcf('0xb5')](_0x212981,_0x477285){this[_0x4bcf('0x65')][_0x4bcf('0xbc')](_0x212981[_0x4bcf('0x0')])?this[_0x4bcf('0x65')][_0x4bcf('0x51')](_0x212981[_0x4bcf('0x0')])[_0x4bcf('0x7c')]=_0x212981['isAdd']:(this[_0x4bcf('0x65')]['set'](_0x212981[_0x4bcf('0x0')],G(_0x212981[_0x4bcf('0x0')],!0x0)),this[_0x4bcf('0xc3')]['set'](_0x212981[_0x4bcf('0x0')],{}),_0x477285&&this['_idsRoots'][_0x4bcf('0xe0')](_0x212981[_0x4bcf('0x0')],G(_0x212981[_0x4bcf('0x0')],!0x0)));const _0x5ba938=null===_0x212981[_0x4bcf('0xd8')]?null:_0x212981[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get']('Users')['me']['id'],_0x336efb=this['_touchedRoots'][_0x4bcf('0x51')](_0x212981['rootName']);_0x336efb&&_0x336efb[_0x4bcf('0xe7')]===_0x5ba938?this['_touchedRoots']['delete'](_0x212981[_0x4bcf('0x0')]):this[_0x4bcf('0xf7')]['set'](_0x212981[_0x4bcf('0x0')],{'userId':_0x5ba938,'isAttached':_0x212981['isAdd']});}[_0x4bcf('0xf1')](_0x266329){const _0x2ec5a4=this[_0x4bcf('0xc3')][_0x4bcf('0x51')](_0x266329[_0x4bcf('0xaa')][_0x4bcf('0x0')]);null===_0x266329[_0x4bcf('0x101')]?delete _0x2ec5a4[_0x266329['key']]:_0x2ec5a4[_0x266329[_0x4bcf('0xf4')]]=_0x266329['newValue'];}}function q(_0x4f60a5){const _0x2e460a=G(_0x4f60a5[_0x4bcf('0x0')],_0x4f60a5[_0x4bcf('0xa7')]());for(const _0x316e6e of _0x4f60a5[_0x4bcf('0x26')]()){const _0x2e22dc=_0x316e6e[_0x4bcf('0x41')](!0x0);_0x2e460a[_0x4bcf('0xba')](_0x2e22dc);}return _0x2e460a;}function G(_0x379568,_0x1ae300=!0x0){const _0x2e5be1=new _0x3d02d9();return _0x2e5be1['rootName']=_0x379568,_0x2e5be1[_0x4bcf('0x7c')]=_0x1ae300,_0x2e5be1[_0x4bcf('0xa7')]=()=>_0x2e5be1[_0x4bcf('0x7c')],_0x2e5be1;}function L(_0x25af54,_0x5bc838,_0x134327){const _0x2836a9=_0x4bcf('0x55')==_0x25af54[_0x4bcf('0x73')]?_0x134327[_0x4bcf('0x85')](_0x25af54[_0x4bcf('0x22')],'end'):_0x134327['createPositionBefore'](_0x25af54[_0x4bcf('0x22')]);return _0x134327[_0x4bcf('0x8')](_0x5bc838,_0x2836a9[_0x4bcf('0xdf')],_0x2836a9[_0x4bcf('0x28')]);}function W(_0xba2e4c,_0xf102b6,_0x16db42){const _0x7a548d=_0x4bcf('0x1b')==_0xba2e4c[_0x4bcf('0x73')]?_0x16db42['createPositionAt'](_0xba2e4c[_0x4bcf('0x22')],0x0):_0x16db42['createPositionAfter'](_0xba2e4c[_0x4bcf('0x22')]);return _0x16db42['createPositionFromPath'](_0xf102b6,_0x7a548d[_0x4bcf('0xdf')],_0x7a548d[_0x4bcf('0x28')]);}