@ckeditor/ckeditor5-revision-history 37.0.1 → 38.0.0-rc.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 (91) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/sr.js +1 -1
  3. package/lang/translations/af.po +1 -1
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/az.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en-gb.po +1 -1
  17. package/lang/translations/es-co.po +1 -1
  18. package/lang/translations/es.po +1 -1
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fa.po +1 -1
  21. package/lang/translations/fi.po +1 -1
  22. package/lang/translations/fr.po +1 -1
  23. package/lang/translations/gl.po +1 -1
  24. package/lang/translations/he.po +1 -1
  25. package/lang/translations/hi.po +1 -1
  26. package/lang/translations/hr.po +1 -1
  27. package/lang/translations/hu.po +1 -1
  28. package/lang/translations/id.po +1 -1
  29. package/lang/translations/it.po +1 -1
  30. package/lang/translations/ja.po +1 -1
  31. package/lang/translations/jv.po +1 -1
  32. package/lang/translations/ko.po +1 -1
  33. package/lang/translations/ku.po +1 -1
  34. package/lang/translations/lt.po +1 -1
  35. package/lang/translations/lv.po +1 -1
  36. package/lang/translations/ms.po +1 -1
  37. package/lang/translations/ne.po +1 -1
  38. package/lang/translations/nl.po +1 -1
  39. package/lang/translations/no.po +1 -1
  40. package/lang/translations/pl.po +1 -1
  41. package/lang/translations/pt-br.po +1 -1
  42. package/lang/translations/pt.po +1 -1
  43. package/lang/translations/ro.po +1 -1
  44. package/lang/translations/ru.po +1 -1
  45. package/lang/translations/sk.po +1 -1
  46. package/lang/translations/sr-latn.po +1 -1
  47. package/lang/translations/sr.po +2 -2
  48. package/lang/translations/sv.po +1 -1
  49. package/lang/translations/th.po +1 -1
  50. package/lang/translations/tk.po +1 -1
  51. package/lang/translations/tr.po +1 -1
  52. package/lang/translations/tt.po +1 -1
  53. package/lang/translations/ug.po +1 -1
  54. package/lang/translations/uk.po +1 -1
  55. package/lang/translations/ur.po +1 -1
  56. package/lang/translations/vi.po +1 -1
  57. package/lang/translations/zh-cn.po +1 -1
  58. package/lang/translations/zh.po +1 -1
  59. package/package.json +6 -6
  60. package/src/changeitem.d.ts +5 -0
  61. package/src/changeitem.js +1 -1
  62. package/src/editor/revisionviewereditor.js +1 -1
  63. package/src/editor/revisionviewereditorui.js +1 -1
  64. package/src/editor/revisionviewereditoruiview.js +1 -1
  65. package/src/revision.js +1 -1
  66. package/src/revisiondiff.d.ts +1 -0
  67. package/src/revisiondiff.js +1 -1
  68. package/src/revisionhistory.js +1 -1
  69. package/src/revisionsrepository.js +1 -1
  70. package/src/revisiontracker.js +1 -1
  71. package/src/revisionviewer.js +1 -1
  72. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  73. package/src/ui/revision/revisionauthorview.js +1 -1
  74. package/src/ui/revision/revisionnameview.js +1 -1
  75. package/src/ui/revision/revisionview.js +1 -1
  76. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  77. package/src/ui/revision/subrevisionview.js +1 -1
  78. package/src/ui/revision/utils.js +1 -1
  79. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  80. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  81. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  82. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  83. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  84. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  85. package/src/ui/revisionssidebar/utils.js +1 -1
  86. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  87. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  88. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  89. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  90. package/src/utils/common-translations.js +1 -1
  91. package/theme/revisionviewer.css +16 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33d9=['_removeRevisionMarkers','getUser','clear','_appendChild','source','addRevisionData','RevisionsRepository','getChildren','$graveyard','previousPosition','_prepareViewToSave','upcast','_fixRange','_findInsertionIndex','getTime','getAttribute','getRevision','_markChanges','split','model','markerToData','createPositionAt','getChild','getRootNames','_source','_createCurrentRevision','_diffRoots','keepParagraph','_createFromRanges','_handleSplitOperation','map','clone','tableCell','_startingRevisionId','createRevision','deletions','_createInitialRevision','_makeIdsRoot','Users','range','revision:','locale','length','init','_getVidAttributeName','sendBufferedUpdates','filter','then','creator','currentRevision','repository','reinsert','_insertChild','_execute','_initialRevisionId','_revisionDataBuilder','adapter','Empty\x20document','ready','_clone','_savedMetaData','targetPosition','root','_lastTo','data-revision-','history','push','_markers','merge','elementStart','_handleMergeOperation','stickiness','_applyOperations','toVersion','documentFragment','_revisionId','markers','editing','getWalker','vid','_calculateMetaData','_startingVersion','getOperations','plugins','userId','updateRevisions','getData','_operations','_loadedStateData','parse','attributes','_generateTape','_idsRoots','getRange','RevisionTracker','vid_end','define','toModel','editor','revision-end','_update','config','data','_getViewJson','_handleMarkerOperation','_cloneOperation','view','name','_rootNames','insertionPosition','text','createRangeIn','reInit','_getBaseVids','find','getRevisionDocumentData','setRevisionData','authorsIds','_baseRoots','_handleMoveOperation','buildRevisionData','end','howMany','pluginName','NEGATIVE_INFINITY','children','newRange','offsetSize','sourcePosition','path','loadState','dataToMarker','_makeModelFromViewString','afterInit','_addPendingAction','initialData','_removePendingAction','slice','has','_fixOperation','useFillerType','vid_start','getLatestVersion','position','revision','diffData','delete','getCurrentRevisionId','default','_isPendingUpdate','start','rootName','insert','conversion','PendingActions','creatorId','affectsData','offset','getAttributes','add','_touchedMarkers','insertions','values','_authorId','_handleOperation','from','createRange','getMovedRangeStart','nodeAfter','element','_transformMarkers','resolve','fromVersion','collaboration.channelId','includes','_handleInsertOperation','_baseIdsRoots','size','document','elementEnd','isReady','_makeRevision','_processRootBeforeSave','_setConversion','string','set','getTransformedByOperation','insertion','addRevision','_isInit','authors','_removeMetaData','baseVersion','version','_lastFrom','forEach','_loadState','getNodeByPath','_touched','_setAttribute','reverse','oldRange','get','createPositionBefore','deletion','max','stringify','createdAt','getOperation','marker','getIndex','update','childCount','_bufferedUpdates','remove','_replaceEditorDataWithRevisionData','parent','revision-start','getRevisions','_copyMarkers','_getPreviousFrom','_reset','roots','shift','_continueCurrentRevision','_fixPosition','_pendingAction','trim','for','processor','_saveEmptyMetaData','item','_bufferUpdate','_saveMetaData','_getFromVersion','$text','_loadRevisionData','startsWith','createPositionFromPath','finally','toView','paragraph','_getState','keys','RealTimeCollaborationClient','type'];(function(_0x4f18c2,_0x33d918){const _0x5a890d=function(_0x436fa6){while(--_0x436fa6){_0x4f18c2['push'](_0x4f18c2['shift']());}};_0x5a890d(++_0x33d918);}(_0x33d9,0x1b0));const _0x5a89=function(_0x4f18c2,_0x33d918){_0x4f18c2=_0x4f18c2-0x0;let _0x5a890d=_0x33d9[_0x4f18c2];return _0x5a890d;};import{Users as _0x29c150}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1bb518,PendingActions as _0x449223}from'ckeditor5/src/core';import{logWarning as _0x14dec7,uid as _0x1b65a6}from'ckeditor5/src/utils';import{Position as _0x58df94,Range as _0x51a6c6,Element as _0x29a21d,DocumentFragment as _0x58153f,ViewText as _0x485b5c,ViewElement as _0x401dfd,ViewContainerElement as _0x2f6074,ViewAttributeElement as _0x40fa4e,ViewEmptyElement as _0x23907f,ViewRawElement as _0x374208,ViewUIElement as _0x26d003,ViewDocumentFragment as _0x3b43a7}from'ckeditor5/src/engine';import _0x53cf28 from'./revisionsrepository';import{getTranslation as _0x450ffd}from'./utils/common-translations';const V={'c':_0x2f6074,'a':_0x40fa4e,'e':_0x23907f,'r':_0x374208,'u':_0x26d003};export default class l extends _0x1bb518{static get[_0x5a89('0xb7')](){return _0x5a89('0x9a');}static get['requires'](){return[_0x29c150,_0x53cf28,_0x449223];}constructor(_0x10caa7){super(_0x10caa7),this[_0x5a89('0x74')]=null,this[_0x5a89('0x6d')]=null,this[_0x5a89('0x73')]=new T(this[_0x5a89('0x9e')]),this[_0x5a89('0x72')]=this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0x10')](_0x5a89('0xe9'))||'initial',this[_0x5a89('0x1b')]=new Map(),this[_0x5a89('0x94')]=null;const _0x154f39=_0x1b65a6();this[_0x5a89('0x54')]={'history':this['editor']['model'][_0x5a89('0xee')]['history'],'getLatestVersion':()=>Promise[_0x5a89('0xe7')](this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x7')]),'getCurrentRevisionId':()=>_0x154f39},this[_0x5a89('0xf5')](_0x5a89('0xf0'),!0x1),this['set']('isEnabled',!0x0),this[_0x5a89('0xf5')]('_isPendingUpdate',!0x1),this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0x9c')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5a89('0x9e')][_0x5a89('0xd5')]['for'](_0x5a89('0x47'))[_0x5a89('0xbf')]({'view':_0x5a89('0xcc')});}[_0x5a89('0x67')](){this['repository']=this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x42')),this[_0x5a89('0xf3')](),this[_0x5a89('0x9e')][_0x5a89('0xa2')]['on'](_0x5a89('0x76'),()=>{const _0x12698f=this['repository'][_0x5a89('0x4c')](0x0),_0x2c21d5=_0x12698f&&null===_0x12698f['creator']?_0x12698f:null;if(this[_0x5a89('0x26')]=!!_0x2c21d5&&this['editor'][_0x5a89('0xa1')][_0x5a89('0x10')]('revisionHistory.resumeUnsavedRevision'),this[_0x5a89('0x9e')]['plugins'][_0x5a89('0xc6')](_0x5a89('0x3a'))){const _0x505a01=this[_0x5a89('0x54')]['getCurrentRevisionId'](),_0x120e5b=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x505a01);if(_0x120e5b)this[_0x5a89('0x8d')]=_0x120e5b[_0x5a89('0xe8')],this[_0x5a89('0x26')]=!0x1;else{const _0x431302=this[_0x5a89('0x54')]['history'][_0x5a89('0x93')]['find'](_0x19c8ba=>!_0x19c8ba[_0x5a89('0x3')]),_0x1fa26c=_0x431302?_0x431302[_0x5a89('0x6')]:this[_0x5a89('0x54')][_0x5a89('0x7d')][_0x5a89('0x7')];_0x12698f?(_0x12698f[_0x5a89('0x85')]<_0x1fa26c&&_0x12698f[_0x5a89('0xa0')]({'toVersion':_0x1fa26c}),this[_0x5a89('0x26')]?(this[_0x5a89('0x54')][_0x5a89('0xcf')]=()=>_0x2c21d5['id'],this[_0x5a89('0x8d')]=_0x2c21d5[_0x5a89('0xe8')]):(this[_0x5a89('0x8d')]=_0x12698f[_0x5a89('0x85')],this['_continueCurrentRevision']=!0x1)):(this[_0x5a89('0x8d')]=_0x1fa26c,this['_continueCurrentRevision']=!0x1);}}else _0x2c21d5&&(this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x7d')][_0x5a89('0x7')]=Math[_0x5a89('0x13')](_0x2c21d5['toVersion'],this['editor'][_0x5a89('0x4f')]['document'][_0x5a89('0x7d')][_0x5a89('0x7')]),_0x2c21d5[_0x5a89('0xe8')]===_0x2c21d5[_0x5a89('0x85')]?(0x0!==_0x2c21d5[_0x5a89('0xe8')]&&(this['_source']['getCurrentRevisionId']=()=>_0x2c21d5['id']),this[_0x5a89('0x26')]=!0x1):this[_0x5a89('0x26')]&&(this['_source']['getCurrentRevisionId']=()=>_0x2c21d5['id'],this[_0x5a89('0x8d')]=_0x2c21d5['fromVersion'])),this['_continueCurrentRevision']||(this[_0x5a89('0x8d')]=this['editor'][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x7')]);this[_0x5a89('0x73')][_0x5a89('0x67')](this['_source'][_0x5a89('0x7d')]),this[_0x5a89('0x60')](this[_0x5a89('0x8d')]),this[_0x5a89('0x55')](this[_0x5a89('0x8d')]),this['adapter']&&this[_0x5a89('0x69')]();}),this['bind']('isReady')['to'](this,_0x5a89('0xd1'),_0x33c731=>!_0x33c731);}async[_0x5a89('0xc1')](){if(this[_0x5a89('0x6e')][_0x5a89('0x66')]>0x0){const _0x4286b2=this['repository'][_0x5a89('0x4c')](0x0),_0x35a396=await this[_0x5a89('0xaf')](_0x4286b2);this[_0x5a89('0x1d')](_0x35a396);}}['setSource'](_0x86acdd){this[_0x5a89('0x54')]=_0x86acdd;}async[_0x5a89('0x19')](){const _0x24ca4b=await this['_source']['getLatestVersion']();if(_0x24ca4b>this[_0x5a89('0x6d')][_0x5a89('0x85')]){await this[_0x5a89('0xa')]();const _0x92547=this[_0x5a89('0xb4')]({'revision':this[_0x5a89('0x6d')],'to':_0x24ca4b});_0x92547[_0x5a89('0x4')]=_0x92547[_0x5a89('0xb1')]['map'](_0x21e000=>this[_0x5a89('0x9e')][_0x5a89('0x8f')]['get'](_0x5a89('0x62'))['getUser'](_0x21e000)),this[_0x5a89('0x6d')][_0x5a89('0xa0')](_0x92547);}}async[_0x5a89('0xa')](){this[_0x5a89('0x26')]&&!this[_0x5a89('0x94')]&&(await this[_0x5a89('0x32')](this[_0x5a89('0x6d')]),this[_0x5a89('0x73')]['loadState'](this[_0x5a89('0x6d')]),this[_0x5a89('0x94')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision'][_0x5a89('0x4')][_0x5a89('0xc5')]()});}async['saveRevision'](_0x36ca8e={},_0x169d56=null){const _0x1128e6=[];await this[_0x5a89('0xa')](),this[_0x5a89('0x26')]=!0x1,_0x169d56>this[_0x5a89('0x6d')][_0x5a89('0x85')]&&(_0x169d56=null),null===_0x169d56&&(_0x169d56=await this[_0x5a89('0x54')][_0x5a89('0xca')]());const _0x1f6934=this[_0x5a89('0x30')](_0x169d56),_0x150485=this[_0x5a89('0xb4')]({'from':_0x1f6934,'to':_0x169d56});if(this[_0x5a89('0x6d')][_0x5a89('0x85')]<_0x169d56){const _0x3245ef=this[_0x5a89('0xb4')]({'revision':this[_0x5a89('0x6d')],'from':_0x169d56,'to':_0x169d56});_0x3245ef[_0x5a89('0x4')]=[],_0x3245ef[_0x5a89('0xb1')]=[],_0x3245ef['id']=this[_0x5a89('0x6d')]['id'],this[_0x5a89('0x6d')][_0x5a89('0xa0')](_0x3245ef,!0x0),delete _0x3245ef[_0x5a89('0x4')],_0x1128e6[_0x5a89('0x7e')](_0x3245ef);}_0x36ca8e['creatorId']=this['editor']['plugins']['get'](_0x5a89('0x62'))['me']['id'],_0x36ca8e[_0x5a89('0xa7')]=_0x36ca8e[_0x5a89('0xa7')]||null,_0x36ca8e['id']=_0x36ca8e['id']||_0x1b65a6(),_0x36ca8e={..._0x36ca8e,..._0x150485};const _0x5488b5=this[_0x5a89('0x41')](_0x36ca8e);_0x1128e6[_0x5a89('0x7e')](_0x36ca8e);const _0x2aa881=this[_0x5a89('0x6e')][_0x5a89('0x18')](_0x5488b5);if(0x0!==_0x2aa881){const _0x4881f8=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x2aa881-0x1);if(_0x4881f8[_0x5a89('0xe8')]!==_0x169d56){const _0x1ab40f=this[_0x5a89('0x73')][_0x5a89('0x92')](_0x169d56,_0x4881f8[_0x5a89('0x85')]),_0x45daf9={'id':_0x4881f8['id'],'diffData':_0x1ab40f[_0x5a89('0xcd')],'authorsIds':_0x1ab40f[_0x5a89('0xb1')],'authors':_0x1ab40f[_0x5a89('0xb1')][_0x5a89('0x5a')](_0x156c4c=>this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')]('Users')[_0x5a89('0x3d')](_0x156c4c)),'fromVersion':_0x169d56};_0x4881f8===this[_0x5a89('0x6d')]&&(_0x45daf9[_0x5a89('0x15')]=new Date(_0x36ca8e[_0x5a89('0x15')][_0x5a89('0x4a')]()+0xa)),_0x4881f8['_update'](_0x45daf9,!0x0),delete _0x45daf9['authors'],_0x1128e6[_0x5a89('0x7e')](_0x45daf9);}}if(this[_0x5a89('0x74')]){for(const _0x3a981d of _0x1128e6)this[_0x5a89('0x2e')](_0x3a981d['id'],_0x3a981d,!0x0);this[_0x5a89('0x69')]();}return _0x5488b5;}[_0x5a89('0x41')](_0x57ffe4){const _0x1d53ef=this['repository'][_0x5a89('0x5e')](_0x57ffe4);return this[_0x5a89('0x74')]&&_0x1d53ef['on'](_0x5a89('0xa0'),(_0x325663,_0xecb16b,_0x48dd97)=>{_0x48dd97||(this['_bufferUpdate'](_0xecb16b['id'],_0xecb16b,!0x0),this[_0x5a89('0x69')]());}),this[_0x5a89('0x6e')][_0x5a89('0x2')](_0x1d53ef,this[_0x5a89('0x49')](_0x1d53ef)),_0x1d53ef;}async['getRevisionDocumentData'](_0x4ae066){await this[_0x5a89('0x32')](_0x4ae066);const _0x29dbf3={};for(const _0x2bb0d8 in _0x4ae066[_0x5a89('0xcd')]){const _0x564290=this[_0x5a89('0x3c')](JSON[_0x5a89('0x95')](_0x4ae066['diffData'][_0x2bb0d8][_0x5a89('0xdd')])),_0x14d732=this['editor'][_0x5a89('0x89')]['view'][_0x5a89('0xee')],_0x2cf6bd=new _0x3b43a7(_0x14d732,_0x564290[_0x5a89('0x5a')](_0x2fb3a5=>F(_0x2fb3a5,this[_0x5a89('0x9e')])));this[_0x5a89('0x9e')][_0x5a89('0xa2')]['processor'][_0x5a89('0xc8')]('marked'),_0x29dbf3[_0x2bb0d8]=this[_0x5a89('0x9e')][_0x5a89('0xa2')][_0x5a89('0x2b')]['toData'](_0x2cf6bd),this['editor'][_0x5a89('0xa2')][_0x5a89('0x2b')][_0x5a89('0xc8')](_0x5a89('0xd0'));}return _0x29dbf3;}['sendBufferedUpdates'](){if(0x0===this[_0x5a89('0x1b')]['size'])return;if(this[_0x5a89('0xd1')])return;let _0x526e65=Array[_0x5a89('0xe1')](this[_0x5a89('0x1b')][_0x5a89('0xde')]());this[_0x5a89('0x1b')]['clear']();for(let _0xf78902=0x0;_0xf78902<_0x526e65[_0x5a89('0x66')];_0xf78902++){const _0x1cbde3=_0x526e65[_0xf78902];let _0x12cccc=!0x1;for(const _0x150949 of Object[_0x5a89('0x39')](_0x1cbde3))void 0x0===_0x1cbde3[_0x150949]?delete _0x1cbde3[_0x150949]:'id'!==_0x150949&&(_0x12cccc=!0x0);_0x12cccc||(_0x526e65[_0xf78902]=null);}if(_0x526e65=_0x526e65['filter'](_0x4d224d=>null!==_0x4d224d),!_0x526e65[_0x5a89('0x66')])return;for(let _0x1be84b=0x0;_0x1be84b<_0x526e65[_0x5a89('0x66')];_0x1be84b++){const _0x3879d5=_0x526e65[_0x1be84b];void 0x0!==_0x3879d5[_0x5a89('0xe8')]&&void 0x0===_0x3879d5[_0x5a89('0x85')]&&(_0x3879d5['toVersion']=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x3879d5['id'])['toVersion']),void 0x0!==_0x3879d5[_0x5a89('0x85')]&&void 0x0===_0x3879d5[_0x5a89('0xe8')]&&(_0x3879d5[_0x5a89('0xe8')]=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x3879d5['id'])['fromVersion']);}const _0x38e0ef=this['editor'][_0x5a89('0xa1')][_0x5a89('0x10')](_0x5a89('0xe9'));this[_0x5a89('0xd1')]=!0x0,this[_0x5a89('0xc2')](),this[_0x5a89('0x74')][_0x5a89('0x91')](_0x526e65,_0x38e0ef)[_0x5a89('0x35')](()=>{this[_0x5a89('0xd1')]=!0x1;})[_0x5a89('0x6b')](_0x163394=>{if(_0x163394)for(const _0x52b872 of _0x163394)this[_0x5a89('0xb0')]({'id':_0x52b872['id'],'createdAt':_0x52b872['createdAt']});this['_removePendingAction'](),this[_0x5a89('0x69')]();});}[_0x5a89('0x1d')](_0x444fd9){let _0x23c1c9=this['editor'][_0x5a89('0xa1')][_0x5a89('0x10')](_0x5a89('0xc3'));if(void 0x0===_0x23c1c9){_0x23c1c9={};for(const _0x1018f4 of this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x53')]())_0x23c1c9[_0x1018f4]='';}_0x5a89('0xf4')==typeof _0x23c1c9&&(_0x23c1c9={'main':_0x23c1c9});let _0x3fd9b2=!0x1;for(const _0x26d41c of Object[_0x5a89('0x39')](_0x23c1c9))_0x444fd9[_0x26d41c]&&(_0x23c1c9[_0x26d41c]!==_0x444fd9[_0x26d41c]&&''!==_0x23c1c9[_0x26d41c][_0x5a89('0x29')]()&&(_0x3fd9b2=!0x0),_0x23c1c9[_0x26d41c]=_0x444fd9[_0x26d41c]);_0x3fd9b2&&_0x14dec7('editor-initial-data-replaced-with-revision-data'),this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0xf5')](_0x5a89('0xc3'),_0x23c1c9);}[_0x5a89('0xc2')](){if(!this[_0x5a89('0x28')]){const _0xad9826=this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')](_0x5a89('0xd6'));this[_0x5a89('0x28')]=_0xad9826[_0x5a89('0xdb')](_0x450ffd(this['editor'][_0x5a89('0x65')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5a89('0xc4')](){this['_pendingAction']&&(this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0xd6'))[_0x5a89('0x1c')](this[_0x5a89('0x28')]),this[_0x5a89('0x28')]=null);}[_0x5a89('0x49')](_0x3cdbc){const _0x2cbb7c=this['repository'][_0x5a89('0x20')]();_0x2cbb7c['reverse']();let _0x2a0694=0x0;for(;_0x2a0694<_0x2cbb7c[_0x5a89('0x66')];){const _0x2e656e=_0x2cbb7c[_0x2a0694];if(_0x2e656e===this[_0x5a89('0x6d')]){_0x2a0694++;continue;}if(_0x2e656e['id']===this[_0x5a89('0x72')])break;const _0x4a50ea=_0x3cdbc[_0x5a89('0x85')]-_0x2e656e[_0x5a89('0x85')]||_0x3cdbc[_0x5a89('0xe8')]-_0x2e656e[_0x5a89('0xe8')];if(_0x4a50ea>0x0)break;if(_0x4a50ea<0x0)_0x2a0694++;else{if(!_0x3cdbc['creator']&&_0x2e656e[_0x5a89('0x6c')])break;if(_0x2e656e[_0x5a89('0x6c')]||!_0x3cdbc[_0x5a89('0x6c')]){if(_0x3cdbc['createdAt']>_0x2e656e[_0x5a89('0x15')])break;_0x2a0694++;}else _0x2a0694++;}}return _0x2a0694;}[_0x5a89('0xb0')](_0xe19e32){const _0x276746=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0xe19e32['id']);if(_0xe19e32[_0x5a89('0x15')]&&(_0xe19e32[_0x5a89('0x15')]=new Date(_0xe19e32['createdAt'])),_0xe19e32[_0x5a89('0xb1')]){const _0x439285=this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')](_0x5a89('0x62'));_0xe19e32[_0x5a89('0x4')]=_0xe19e32['authorsIds'][_0x5a89('0x5a')](_0x4c25d6=>_0x439285[_0x5a89('0x3d')](_0x4c25d6));}_0x276746[_0x5a89('0xa0')](_0xe19e32,!0x0);}['buildRevisionData']({revision:_0x5ec68b=null,from:_0x4637b7=null,to:_0x1d2876=null}){_0x4637b7=null!==_0x4637b7?_0x4637b7:_0x5ec68b[_0x5a89('0xe8')],_0x1d2876=null!==_0x1d2876?_0x1d2876:_0x5ec68b[_0x5a89('0x85')];const _0x1da128=this['_revisionDataBuilder'][_0x5a89('0x92')](_0x4637b7,_0x1d2876),_0x23aafb={'diffData':_0x1da128[_0x5a89('0xcd')],'authorsIds':_0x1da128[_0x5a89('0xb1')],'fromVersion':_0x4637b7,'toVersion':_0x1d2876};if(!_0x5ec68b||_0x1d2876!==_0x5ec68b['toVersion']){const _0x512eea=_0x1d2876-0x1,_0x4089b7=this[_0x5a89('0x54')][_0x5a89('0x7d')][_0x5a89('0x16')](_0x512eea);_0x23aafb[_0x5a89('0x15')]=_0x4089b7&&_0x4089b7[_0x5a89('0x15')]||new Date();}if(this[_0x5a89('0x94')]&&_0x4637b7===this[_0x5a89('0x94')][_0x5a89('0xe8')])for(const _0x23e663 of this[_0x5a89('0x94')][_0x5a89('0x4')])_0x23aafb[_0x5a89('0xb1')][_0x5a89('0xea')](_0x23e663['id'])||_0x23aafb['authorsIds']['push'](_0x23e663['id']);return _0x23aafb;}[_0x5a89('0x32')](_0x2f8913){if(!_0x2f8913||_0x2f8913[_0x5a89('0xcd')])return Promise[_0x5a89('0xe7')]();{const _0x4ed91a=this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0x10')]('collaboration.channelId');return this[_0x5a89('0x74')]['getRevision']({'channelId':_0x4ed91a,'revisionId':_0x2f8913['id']})[_0x5a89('0x6b')](_0x3cd2b1=>{_0x2f8913['diffData']=_0x3cd2b1['diffData'];});}}['_bufferUpdate'](_0x52ad1a,_0x2b9945,_0x2af69b){if(this[_0x5a89('0x1b')][_0x5a89('0xc6')](_0x52ad1a)){const _0x1e081f=this[_0x5a89('0x1b')][_0x5a89('0x10')](_0x52ad1a);_0x2b9945=_0x2af69b?{..._0x1e081f,..._0x2b9945}:{..._0x2b9945,..._0x1e081f};}this['_bufferedUpdates'][_0x5a89('0xf5')](_0x52ad1a,_0x2b9945);}[_0x5a89('0x30')](_0x3ba52e){const _0x5dd203=this[_0x5a89('0x6e')][_0x5a89('0x20')]();_0x5dd203[_0x5a89('0xe')](),_0x5dd203[_0x5a89('0x25')]();const _0x53ff6d=_0x5dd203[_0x5a89('0xae')](_0x4fc010=>_0x4fc010[_0x5a89('0x85')]<=_0x3ba52e)[_0x5a89('0x85')];return _0x53ff6d<this[_0x5a89('0x8d')]?this['_startingVersion']:_0x53ff6d;}[_0x5a89('0x60')](_0x1aa3ab){const _0x32c389=this['repository'][_0x5a89('0x4c')](this[_0x5a89('0x6e')][_0x5a89('0x66')]-0x1);if(_0x32c389)this[_0x5a89('0x72')]=_0x32c389['id'];else{const _0x1fe250=!this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x24')][_0x5a89('0xae')](_0x2cf226=>this[_0x5a89('0x9e')]['model']['hasContent'](_0x2cf226)),_0x1c50ee=this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0x46686e=_0x450ffd(this[_0x5a89('0x9e')][_0x5a89('0x65')],_0x1fe250?_0x5a89('0x75'):'Initial\x20revision');this['_makeRevision']({'from':_0x1aa3ab,'to':_0x1aa3ab,'id':this[_0x5a89('0x72')],'name':_0x46686e,'creatorId':_0x1c50ee});}}[_0x5a89('0x55')](_0x4f5a95){const _0x1added=this['_source'][_0x5a89('0xcf')]();this['currentRevision']=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x1added),this[_0x5a89('0x6d')]||(this[_0x5a89('0x6d')]=this[_0x5a89('0xf1')]({'from':_0x4f5a95,'to':_0x4f5a95,'id':_0x1added,'name':'','creatorId':null}));}[_0x5a89('0xf1')]({name:_0x50d4b3,from:_0x17e46d,to:_0x6fda4b,creatorId:_0x558eeb,id:_0x1542fb}){const _0x43a3dd=this[_0x5a89('0xb4')]({'from':_0x17e46d,'to':_0x6fda4b});_0x43a3dd[_0x5a89('0xa7')]=_0x50d4b3,_0x43a3dd[_0x5a89('0xd7')]=_0x558eeb,_0x43a3dd['id']=_0x1542fb;const _0x3fdb08=this['addRevisionData'](_0x43a3dd);return this['adapter']&&this[_0x5a89('0x2e')](_0x43a3dd['id'],_0x43a3dd,!0x0),_0x3fdb08;}[_0x5a89('0xf3')](){this[_0x5a89('0x9e')][_0x5a89('0xd5')][_0x5a89('0x2a')]('dataDowncast')[_0x5a89('0x50')]({'model':'revision'});}['_removeRevisionMarkers'](_0x236874){return(_0x236874=_0x236874[_0x5a89('0x6a')](_0x5a3a7d=>!_0x5a3a7d['name']||_0x5a89('0x1f')!==_0x5a3a7d[_0x5a89('0xa7')]&&_0x5a89('0x9f')!==_0x5a3a7d[_0x5a89('0xa7')]))[_0x5a89('0x9')](_0x3952df=>{_0x5a89('0xf4')!=typeof _0x3952df&&(_0x3952df['children']=this[_0x5a89('0x3c')](_0x3952df[_0x5a89('0xb9')]),_0x3952df[_0x5a89('0x96')]=_0x3952df[_0x5a89('0x96')][_0x5a89('0x6a')](_0x55a117=>!_0x55a117[0x0][_0x5a89('0x33')](_0x5a89('0x7c'))));}),_0x236874;}}function F(_0x40b3d6,_0xa79844){const _0x17ddf2=_0xa79844[_0x5a89('0x89')][_0x5a89('0xa6')][_0x5a89('0xee')];if(_0x5a89('0xf4')==typeof _0x40b3d6)return new _0x485b5c(_0x17ddf2,_0x40b3d6);{const _0xf1ede8=_0x40b3d6[_0x5a89('0xb9')][_0x5a89('0x5a')](_0x362fed=>F(_0x362fed,_0xa79844));return new(V[_0x40b3d6[(_0x5a89('0x3b'))]]||_0x401dfd)(_0x17ddf2,_0x40b3d6['name'],_0x40b3d6[_0x5a89('0x96')],_0xf1ede8);}}class T{constructor(_0xd54c1d){this[_0x5a89('0x9e')]=_0xd54c1d,this[_0x5a89('0x78')]=new Map(),this[_0x5a89('0x8')]=-0x1,this[_0x5a89('0x7b')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x5a89('0xb2')]=new Map(),this[_0x5a89('0x98')]=new Map(),this[_0x5a89('0xec')]=new Map(),this['_touched']=new Map(),this[_0x5a89('0xdc')]=new Map(),this[_0x5a89('0x87')]=0x1,this['_rootNames']=this['editor'][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x53')](),this[_0x5a89('0xa8')][_0x5a89('0x7e')](_0x5a89('0x44'));}[_0x5a89('0x67')](_0xc8ab97){this[_0x5a89('0x40')]=_0xc8ab97;const _0x36c142=new Map();for(const _0xf810ad of this[_0x5a89('0xa8')]){const _0x2e0c07=J(this[_0x5a89('0x9e')]['model'][_0x5a89('0xee')]['getRoot'](_0xf810ad));_0x36c142[_0x5a89('0xf5')](_0xf810ad,_0x2e0c07);}const _0x3f57cf=Array[_0x5a89('0xe1')](this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0x88')])[_0x5a89('0x5a')](_0x4b7d85=>[_0x4b7d85[_0x5a89('0xa7')],_0x4b7d85[_0x5a89('0x99')]()]),_0x40623b=this[_0x5a89('0x40')][_0x5a89('0x7')];this[_0x5a89('0x2f')](_0x40623b,_0x36c142,_0x3f57cf),this[_0x5a89('0x5d')]=this['_revisionId'];}[_0x5a89('0x92')](_0x58e392,_0x1e2792){if(this[_0x5a89('0x8')]===_0x58e392&&this[_0x5a89('0x7b')]<=_0x1e2792)this[_0x5a89('0x78')][_0x5a89('0xed')]>0x1&&this['_removeMetaData'](this[_0x5a89('0x7b')]),this[_0x5a89('0x84')](this[_0x5a89('0x7b')],_0x1e2792,!0x0);else{if(!this[_0x5a89('0x78')][_0x5a89('0xc6')](_0x58e392)){const _0xa300ab=this['_getPreviousFrom'](_0x58e392);this[_0x5a89('0x8c')](_0xa300ab,_0x58e392,!0x1);}this[_0x5a89('0x8c')](_0x58e392,_0x1e2792,!0x0);}return this['_lastFrom']=_0x58e392,this['_lastTo']=_0x1e2792,this[_0x5a89('0x38')]();}[_0x5a89('0xbe')](_0x21d7b9){this[_0x5a89('0x23')](),this[_0x5a89('0x8')]=_0x21d7b9[_0x5a89('0xe8')],this['_lastTo']=_0x21d7b9[_0x5a89('0x85')];for(const _0x4c28d2 in _0x21d7b9['diffData']){const _0x3e67bd=this[_0x5a89('0xc0')](_0x21d7b9[_0x5a89('0xcd')][_0x4c28d2]['deletions']);_0x3e67bd['rootName']=_0x4c28d2,this[_0x5a89('0xb2')]['set'](_0x4c28d2,_0x3e67bd);const _0x3b7865=this[_0x5a89('0x61')](_0x3e67bd);this['_baseIdsRoots'][_0x5a89('0xf5')](_0x4c28d2,_0x3b7865);for(const [_0x217ff2,_0x6dd82d]of _0x3e67bd[_0x5a89('0x88')]){if(!_0x217ff2[_0x5a89('0x33')]('revision:'))continue;const _0x42dd4f=_0x217ff2[_0x5a89('0x4e')](':')[0x2];for(const _0x3252e1 of _0x6dd82d[_0x5a89('0x8a')]({'singleCharacters':!0x0})){const _0x4a932f=this[_0x5a89('0x68')](_0x3252e1),_0x1977ec=_0x5a89('0xef')==_0x3252e1[_0x5a89('0x3b')]?_0x3252e1[_0x5a89('0x45')][_0x5a89('0xbd')][_0x5a89('0xc5')](0x0,-0x1):_0x3252e1[_0x5a89('0x45')][_0x5a89('0xbd')],_0x4b981d=_0x3b7865[_0x5a89('0xb')](_0x1977ec)['getAttribute'](_0x4a932f);this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x4b981d,{'userId':_0x42dd4f});}}}this[_0x5a89('0x5d')]=this[_0x5a89('0x87')];const _0x21598d=[...Array(this[_0x5a89('0x87')])[_0x5a89('0x39')]()][_0x5a89('0xc5')](0x1)['filter'](_0x2bea17=>!this[_0x5a89('0xc')][_0x5a89('0xc6')](_0x2bea17));let _0x21d69d=0x0;for(const _0x499d2f in _0x21d7b9[_0x5a89('0xcd')]){const _0x168fba=this[_0x5a89('0xc0')](_0x21d7b9[_0x5a89('0xcd')][_0x499d2f][_0x5a89('0xdd')]);_0x168fba[_0x5a89('0xd3')]=_0x499d2f,this['_diffRoots'][_0x5a89('0xf5')](_0x499d2f,_0x168fba);const _0x1fd5e3=this[_0x5a89('0x61')](_0x168fba,Number['NEGATIVE_INFINITY']);this['_idsRoots'][_0x5a89('0xf5')](_0x499d2f,_0x1fd5e3);for(const [_0x52b145,_0x10d270]of _0x168fba[_0x5a89('0x88')]){if(!_0x52b145[_0x5a89('0x33')](_0x5a89('0x64')))continue;const _0x5674bc=_0x52b145[_0x5a89('0x4e')](':')[0x2];for(const _0x273d4d of _0x10d270[_0x5a89('0x8a')]({'singleCharacters':!0x0})){const _0x146b13=this['_getVidAttributeName'](_0x273d4d),_0xe03256=this[_0x5a89('0x87')]++,_0x25bf41='elementEnd'==_0x273d4d[_0x5a89('0x3b')]?_0x273d4d[_0x5a89('0x45')][_0x5a89('0xbd')][_0x5a89('0xc5')](0x0,-0x1):_0x273d4d[_0x5a89('0x45')][_0x5a89('0xbd')];_0x1fd5e3[_0x5a89('0xb')](_0x25bf41)['_setAttribute'](_0x146b13,_0xe03256),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0xe03256,{'userId':_0x5674bc});}}for(const _0x36c8c4 of this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xab')](_0x168fba)[_0x5a89('0x8a')]({'singleCharacters':!0x0})){const _0x4b873d=this[_0x5a89('0x68')](_0x36c8c4),_0x231eae=_0x5a89('0xef')==_0x36c8c4[_0x5a89('0x3b')]?_0x36c8c4['previousPosition'][_0x5a89('0xbd')][_0x5a89('0xc5')](0x0,-0x1):_0x36c8c4[_0x5a89('0x45')]['path'],_0xe3d4da=_0x1fd5e3[_0x5a89('0xb')](_0x231eae);_0xe3d4da[_0x5a89('0x4b')](_0x4b873d)>0x0||_0xe3d4da[_0x5a89('0xd')](_0x4b873d,_0x21598d[_0x21d69d++]);}const _0x35d795=new _0x58153f();_0x35d795[_0x5a89('0xd3')]=_0x5a89('0x44'),this[_0x5a89('0xb2')][_0x5a89('0xf5')]('$graveyard',_0x35d795),this[_0x5a89('0xec')][_0x5a89('0xf5')](_0x5a89('0x44'),this['_makeIdsRoot'](_0x35d795,0x1));const _0x291e0f=new _0x58153f();_0x291e0f[_0x5a89('0xd3')]=_0x5a89('0x44'),this[_0x5a89('0x56')][_0x5a89('0xf5')]('$graveyard',_0x291e0f),this['_idsRoots'][_0x5a89('0xf5')](_0x5a89('0x44'),this[_0x5a89('0x61')](_0x291e0f,0x1));for(const [_0x29badb,_0x5589c7]of _0x168fba[_0x5a89('0x88')])_0x29badb[_0x5a89('0x33')](_0x5a89('0x64'))||this[_0x5a89('0x7f')]['set'](_0x29badb,_0x5589c7);}const _0x11ecdc=Array[_0x5a89('0xe1')](this[_0x5a89('0x56')])[_0x5a89('0x5a')](([_0x243ecb,_0x301e52])=>[_0x243ecb,J(_0x301e52)]);this[_0x5a89('0x2f')](this[_0x5a89('0x7b')],_0x11ecdc,this[_0x5a89('0x7f')]);}[_0x5a89('0xc0')](_0x47b8d6){const _0x144a3d=JSON[_0x5a89('0x95')](_0x47b8d6),_0x57562f=this[_0x5a89('0x9e')][_0x5a89('0x89')]['view']['document'],_0x307c42=new _0x3b43a7(_0x57562f,_0x144a3d['map'](_0x2af6e6=>F(_0x2af6e6,this['editor'])));return this[_0x5a89('0x9e')][_0x5a89('0xa2')][_0x5a89('0x9d')](_0x307c42);}['_saveEmptyMetaData'](){const _0x2a93b1=new Map();for(const _0x5ad323 of this[_0x5a89('0xa8')]){const _0x28ddbc=new _0x58153f();_0x28ddbc[_0x5a89('0xd3')]=_0x5ad323,_0x2a93b1[_0x5a89('0xf5')](_0x5ad323,_0x28ddbc);}this['_saveMetaData'](Number[_0x5a89('0xb8')],_0x2a93b1,[]);}['_saveMetaData'](_0x3dda0f,_0x30ce2a,_0x388b81){const _0x6b4435=new Map(_0x30ce2a),_0x5dc0f6=new Map();for(const [_0x3d097f,_0x1ea4bc]of _0x388b81)_0x5dc0f6[_0x5a89('0xf5')](_0x3d097f,{'start':_0x1ea4bc[_0x5a89('0xd2')][_0x5a89('0x5b')](),'end':_0x1ea4bc[_0x5a89('0xb5')]['clone'](),'rootName':_0x1ea4bc['root']['rootName']});this[_0x5a89('0x78')][_0x5a89('0xf5')](_0x3dda0f,{'roots':_0x6b4435,'markers':_0x5dc0f6});}[_0x5a89('0x5')](_0xcbba6d){this['_savedMetaData'][_0x5a89('0xce')](_0xcbba6d);}[_0x5a89('0xac')](){this[_0x5a89('0x23')](),this['_lastFrom']=-0x1,this[_0x5a89('0x7b')]=-0x1,this[_0x5a89('0x78')]['clear'](),this[_0x5a89('0x67')](this[_0x5a89('0x40')]);}[_0x5a89('0x23')](){this[_0x5a89('0xc')][_0x5a89('0x3e')](),this[_0x5a89('0xdc')][_0x5a89('0x3e')](),this['_diffRoots'][_0x5a89('0x3e')](),this[_0x5a89('0xb2')][_0x5a89('0x3e')](),this['_idsRoots'][_0x5a89('0x3e')](),this[_0x5a89('0xec')][_0x5a89('0x3e')](),this[_0x5a89('0x7f')][_0x5a89('0x3e')](),this['_revisionId']=0x1,this[_0x5a89('0x5d')]=this[_0x5a89('0x87')];}['_makeIdsRoot'](_0x5e6281,_0x4293c2=null){let _0x19a34e=null;_0x5e6281['is'](_0x5a89('0x86'))||(_0x19a34e=new _0x29a21d(_0x5e6281[_0x5a89('0xa7')],{'vid_start':null===_0x4293c2?this['_revisionId']++:_0x4293c2++}));const _0x447bb3=[];for(const _0xb7011a of _0x5e6281[_0x5a89('0x43')]())if(_0xb7011a['is'](_0x5a89('0xe5'))){_0x447bb3[_0x5a89('0x7e')](this[_0x5a89('0x61')](_0xb7011a,_0x4293c2));const _0x2ccaa0=_0x447bb3[_0x447bb3[_0x5a89('0x66')]-0x1];null!==_0x4293c2&&(_0x4293c2=_0x2ccaa0['is'](_0x5a89('0xe5'),_0x5a89('0x31'))?_0x2ccaa0[_0x5a89('0x4b')](_0x5a89('0x8b'))+0x1:_0x2ccaa0['getAttribute'](_0x5a89('0x9b'))+0x1);}else for(let _0x3c370d=0x0;_0x3c370d<_0xb7011a[_0x5a89('0xbb')];_0x3c370d++)_0x447bb3['push'](new _0x29a21d('$text',{'vid':null===_0x4293c2?this['_revisionId']++:_0x4293c2++}));if(_0x5e6281['is'](_0x5a89('0x86'))){const _0x2b96c6=new _0x58153f(_0x447bb3);return _0x2b96c6[_0x5a89('0xd3')]=_0x5e6281[_0x5a89('0xd3')],_0x2b96c6;}return _0x19a34e['_setAttribute'](_0x5a89('0x9b'),null===_0x4293c2?this[_0x5a89('0x87')]++:_0x4293c2++),_0x19a34e[_0x5a89('0x70')](0x0,_0x447bb3),_0x19a34e;}[_0x5a89('0x8c')](_0x4d8628,_0x178b4d,_0x45f9ff){this[_0x5a89('0x23')]();const {roots:_0x481b43,markers:_0x4093eb}=this['_savedMetaData']['get'](_0x4d8628);this[_0x5a89('0xb2')]=new Map(_0x481b43);for(const [_0x1aa471,_0x5c0f5e]of this[_0x5a89('0xb2')])if('$graveyard'!==_0x1aa471&&(this['_diffRoots'][_0x5a89('0xf5')](_0x1aa471,J(_0x5c0f5e)),_0x45f9ff)){const _0x585472=this[_0x5a89('0x87')];this[_0x5a89('0x98')][_0x5a89('0xf5')](_0x1aa471,this['_makeIdsRoot'](_0x5c0f5e)),this[_0x5a89('0xec')]['set'](_0x1aa471,this[_0x5a89('0x61')](_0x5c0f5e,_0x585472));}this[_0x5a89('0x5d')]=this[_0x5a89('0x87')],this[_0x5a89('0x56')][_0x5a89('0xf5')](_0x5a89('0x44'),J(this['_baseRoots'][_0x5a89('0x10')](_0x5a89('0x44')))),_0x45f9ff&&this[_0x5a89('0x98')]['set']('$graveyard',this[_0x5a89('0x61')](this[_0x5a89('0xb2')][_0x5a89('0x10')](_0x5a89('0x44'))));for(const [_0x18df67,_0x5dbd76]of _0x4093eb){const _0x27f5cf=this[_0x5a89('0xb2')][_0x5a89('0x10')](_0x5dbd76['rootName']),_0x2df966=this['_diffRoots']['get'](_0x5dbd76[_0x5a89('0xd3')]),_0xd62b79=new _0x51a6c6(this[_0x5a89('0x27')](_0x5dbd76[_0x5a89('0xd2')],_0x27f5cf),this[_0x5a89('0x27')](_0x5dbd76[_0x5a89('0xb5')],_0x27f5cf)),_0xa9a5d7=this[_0x5a89('0x48')](_0xd62b79,_0x2df966);_0x27f5cf[_0x5a89('0x88')]['set'](_0x18df67,_0xd62b79),this[_0x5a89('0x7f')][_0x5a89('0xf5')](_0x18df67,_0xa9a5d7);}this['_applyOperations'](_0x4d8628,_0x178b4d,_0x45f9ff);}[_0x5a89('0x84')](_0x363fc2,_0x50ef46,_0xf9ce0e){for(const _0x4c3ba8 of this['source'][_0x5a89('0x8e')](_0x363fc2,_0x50ef46))this[_0x5a89('0xe0')](_0x4c3ba8,_0xf9ce0e);for(const _0x34d77e of this['_diffRoots'][_0x5a89('0xde')]())_0x34d77e['markers']['clear']();for(const [_0x518307,_0x96477d]of this[_0x5a89('0x7f')]){this['_diffRoots'][_0x5a89('0x10')](_0x96477d[_0x5a89('0x7a')][_0x5a89('0xd3')])[_0x5a89('0x88')][_0x5a89('0xf5')](_0x518307,_0x96477d[_0x5a89('0x5b')]());}this[_0x5a89('0x2f')](_0x50ef46,Array[_0x5a89('0xe1')](this[_0x5a89('0x56')])[_0x5a89('0x5a')](([_0x3c8d35,_0x593896])=>[_0x3c8d35,J(_0x593896)]),this[_0x5a89('0x7f')]);}[_0x5a89('0x22')](_0x57c21f){const _0x938928=Array[_0x5a89('0xe1')](this[_0x5a89('0x78')][_0x5a89('0x39')]());_0x938928['sort']((_0x296dff,_0x1b468f)=>_0x296dff-_0x1b468f),_0x938928[_0x5a89('0xe')]();for(const _0x20f105 of _0x938928)if(_0x20f105<_0x57c21f)return _0x20f105;return this[_0x5a89('0x2c')](),Number['NEGATIVE_INFINITY'];}[_0x5a89('0x21')](_0x2c2b66,_0x6f33a3){const _0x4fb48a=Array[_0x5a89('0xe1')](_0x6f33a3[_0x5a89('0x88')])[_0x5a89('0x5a')](([_0x11f415,_0x58ba69])=>[_0x11f415,this[_0x5a89('0x48')](_0x58ba69,_0x2c2b66)]);_0x2c2b66[_0x5a89('0x88')]=new Map(_0x4fb48a);}[_0x5a89('0xe6')](_0x5c0981){for(const _0x1bfbf7 of this['_markers'][_0x5a89('0xde')]()){const _0x236cb9=_0x1bfbf7[_0x5a89('0x0')](_0x5c0981),_0x55a3fe=_0x51a6c6[_0x5a89('0x58')](_0x236cb9);_0x1bfbf7['start']=_0x55a3fe['start'],_0x1bfbf7[_0x5a89('0xb5')]=_0x55a3fe[_0x5a89('0xb5')];}}['_handleOperation'](_0x283af4,_0x6e3ea7){const _0x57a1bf=this[_0x5a89('0xa5')](_0x283af4,this[_0x5a89('0x56')]);if(_0x5a89('0x17')!==_0x283af4[_0x5a89('0x3b')]&&(_0x57a1bf[_0x5a89('0x71')](),this['_transformMarkers'](_0x57a1bf)),_0x6e3ea7)switch(_0x57a1bf['type']){case _0x5a89('0xd4'):this[_0x5a89('0xeb')](_0x283af4);break;case'move':case _0x5a89('0x1c'):case _0x5a89('0x6f'):this[_0x5a89('0xb3')](_0x283af4);break;case _0x5a89('0x80'):this[_0x5a89('0x82')](_0x283af4);break;case _0x5a89('0x4e'):this[_0x5a89('0x59')](_0x283af4);break;case _0x5a89('0x17'):this[_0x5a89('0xa4')](_0x283af4);}}['_cloneOperation'](_0x138031,_0x211cbe){const _0x33c15e=_0x138031['clone']();return _0x33c15e['_authorId']=_0x138031[_0x5a89('0xdf')],this[_0x5a89('0xc7')](_0x33c15e,_0x211cbe),_0x33c15e;}[_0x5a89('0xad')](_0x280d24){return _0x280d24[_0x5a89('0x5a')](_0x4ffa3a=>{const _0x464ca5=this['_getVidAttributeName'](_0x4ffa3a);return Number(_0x4ffa3a[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x464ca5));});}[_0x5a89('0x97')](_0x3dce07,_0x5cbd42){if(_0x3dce07['is']('element',_0x5a89('0x31')))_0x5cbd42['push']({'item':_0x3dce07,'type':_0x5a89('0xaa')});else{_0x3dce07['is'](_0x5a89('0xe5'))&&_0x5cbd42['push']({'item':_0x3dce07,'type':_0x5a89('0x81')});for(const _0x259093 of _0x3dce07[_0x5a89('0x43')]())this[_0x5a89('0x97')](_0x259093,_0x5cbd42);_0x3dce07['is']('element')&&_0x5cbd42[_0x5a89('0x7e')]({'item':_0x3dce07,'type':_0x5a89('0xef')});}return _0x5cbd42;}[_0x5a89('0x38')](){const _0x232551=this[_0x5a89('0x9e')][_0x5a89('0x4f')]['document'][_0x5a89('0x53')](),_0x382631=new Map(this[_0x5a89('0xc')]),_0x42b5cb=new Map(_0x382631),_0x78f97b=new Map(),_0x57ff2b={'insertions':{},'deletions':{}},_0x12fbf0={'insertions':{},'deletions':{}},_0x1c7744=new Map();for(const _0x1c7208 of _0x232551){const _0x2a1925=this[_0x5a89('0x56')][_0x5a89('0x10')](_0x1c7208),_0x2ecc48=this['_baseRoots'][_0x5a89('0x10')](_0x1c7208);_0x57ff2b[_0x5a89('0xdd')][_0x1c7208]=J(_0x2a1925),_0x57ff2b[_0x5a89('0x5f')][_0x1c7208]=J(_0x2ecc48),this[_0x5a89('0x21')](_0x57ff2b[_0x5a89('0x5f')][_0x1c7208],_0x2ecc48),this['_copyMarkers'](_0x57ff2b[_0x5a89('0xdd')][_0x1c7208],_0x2a1925),_0x12fbf0[_0x5a89('0xdd')][_0x1c7208]=this['_generateTape'](this[_0x5a89('0x98')]['get'](_0x1c7208),[]),_0x12fbf0[_0x5a89('0x5f')][_0x1c7208]=this['_generateTape'](this[_0x5a89('0xec')][_0x5a89('0x10')](_0x1c7208),[]);}for(const _0x5a2223 of _0x232551){const _0x4d0bbf=_0x12fbf0[_0x5a89('0xdd')][_0x5a2223];for(const _0x16d7c8 of _0x4d0bbf){const _0x32f2af=this[_0x5a89('0x68')](_0x16d7c8),_0x465173=_0x16d7c8[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x32f2af);_0x42b5cb[_0x5a89('0xce')](_0x465173),_0x465173>=this[_0x5a89('0x5d')]&&_0x78f97b[_0x5a89('0xf5')](_0x465173,_0x382631[_0x5a89('0x10')](_0x465173));}}for(const _0x426d00 of _0x232551){const _0x3b400b=_0x12fbf0['insertions'][_0x426d00],_0x172f42=this['_getBaseVids'](_0x12fbf0[_0x5a89('0x5f')][_0x426d00]);let _0x2420c0=0x0;for(const _0x49e399 of _0x3b400b){const _0x238bfe=this[_0x5a89('0x68')](_0x49e399),_0x2f4aee=_0x49e399[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x238bfe);if(!_0x78f97b[_0x5a89('0xc6')](_0x2f4aee)&&!_0x1c7744[_0x5a89('0xc6')](_0x2f4aee)){if(_0x42b5cb['has'](_0x2f4aee))_0x2420c0++;else{if(_0x2f4aee!=_0x172f42[_0x2420c0]){const _0x15b42a=_0x382631[_0x5a89('0x10')](_0x2f4aee)||_0x382631[_0x5a89('0x10')](_0x172f42[_0x2420c0]);for(;_0x2f4aee!=_0x172f42[_0x2420c0];)_0x42b5cb[_0x5a89('0xc6')](_0x172f42[_0x2420c0])||(_0x1c7744[_0x5a89('0xf5')](_0x172f42[_0x2420c0],_0x15b42a),_0x382631[_0x5a89('0xf5')](_0x172f42[_0x2420c0],_0x15b42a)),_0x2420c0++;}_0x2420c0++;}}}}for(const _0x4ca83d of _0x232551){const _0x541654=_0x12fbf0[_0x5a89('0xdd')][_0x4ca83d];for(const _0x5003ab of _0x541654){const _0x2fdcdd=this[_0x5a89('0x68')](_0x5003ab),_0xdf782f=_0x5003ab['item'][_0x5a89('0x4b')](_0x2fdcdd);if(_0x1c7744[_0x5a89('0xc6')](_0xdf782f)){const _0x3fb5f7=_0x1c7744['get'](_0xdf782f);_0x42b5cb[_0x5a89('0xc6')](_0xdf782f)||_0x42b5cb[_0x5a89('0xf5')](_0xdf782f,{..._0x3fb5f7}),_0x78f97b[_0x5a89('0xf5')](_0xdf782f,{..._0x3fb5f7});}}}for(const _0x11c62c of _0x42b5cb[_0x5a89('0x39')]())_0x11c62c>=this[_0x5a89('0x5d')]&&_0x42b5cb[_0x5a89('0xce')](_0x11c62c);const _0x245287=new Map();for(const _0xf03c79 of _0x232551){let _0x1566d9=_0x12fbf0[_0x5a89('0xdd')][_0xf03c79];for(const _0x227057 of _0x1566d9)if(_0x227057[_0x5a89('0x2d')]['is']('element','tableCell')){const _0x293193=this['_getVidAttributeName'](_0x227057),_0x1d237b=_0x227057[_0x5a89('0x2d')]['getAttribute'](_0x293193);if(_0x78f97b[_0x5a89('0xc6')](_0x1d237b)){const _0xfd364=_0x227057[_0x5a89('0x2d')][_0x5a89('0x1e')]['parent'][_0x5a89('0x4b')]('vid_start'),_0x13ad56=_0x245287[_0x5a89('0x10')](_0xfd364)||new Set();_0x13ad56[_0x5a89('0xdb')](_0x78f97b['get'](_0x1d237b)[_0x5a89('0x90')]),_0x245287['set'](_0xfd364,_0x13ad56);}}_0x1566d9=_0x12fbf0[_0x5a89('0x5f')][_0xf03c79];for(const _0xe1727d of _0x1566d9)if(_0xe1727d['item']['is']('element',_0x5a89('0x5c'))){const _0x473283=this[_0x5a89('0x68')](_0xe1727d),_0x45d52f=_0xe1727d[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x473283);if(_0x42b5cb[_0x5a89('0xc6')](_0x45d52f)){const _0xb1ba52=_0xe1727d[_0x5a89('0x2d')][_0x5a89('0x1e')][_0x5a89('0x1e')]['getAttribute'](_0x5a89('0xc9')),_0x5386fd=_0x245287[_0x5a89('0x10')](_0xb1ba52)||new Set();_0x5386fd['add'](_0x42b5cb[_0x5a89('0x10')](_0x45d52f)[_0x5a89('0x90')]),_0x245287[_0x5a89('0xf5')](_0xb1ba52,_0x5386fd);}}for(const _0x2fe5fd of _0x245287[_0x5a89('0x39')]())(_0x78f97b[_0x5a89('0xc6')](_0x2fe5fd)||_0x42b5cb[_0x5a89('0xc6')](_0x2fe5fd))&&_0x245287[_0x5a89('0xce')](_0x2fe5fd);}for(const _0x52cb91 of _0x232551){const _0x625d9a=_0x12fbf0[_0x5a89('0xdd')][_0x52cb91];let _0x381123=null,_0x729e7e=null;for(const _0x49d6b3 of _0x625d9a){const _0x120c1b=this[_0x5a89('0x68')](_0x49d6b3),_0x33f0c5=_0x49d6b3['item'][_0x5a89('0x4b')](_0x120c1b),_0x3dc650=_0x245287[_0x5a89('0x10')](_0x33f0c5);_0x3dc650&&_0x5a89('0x81')==_0x49d6b3[_0x5a89('0x3b')]&&(_0x381123=Array[_0x5a89('0xe1')](_0x3dc650)[0x0],_0x729e7e=_0x49d6b3[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x5a89('0x9b'))),_0x381123&&(_0x42b5cb['set'](_0x33f0c5,{'userId':_0x381123}),_0x78f97b['set'](_0x33f0c5,{'userId':_0x381123})),_0x33f0c5==_0x729e7e&&(_0x381123=null,_0x729e7e=null);}}const _0x57feed={},_0x550e27=new Set();for(const _0x56a451 of _0x232551){const _0x442fbf=_0x57ff2b[_0x5a89('0x5f')][_0x56a451],_0xa728f8=_0x57ff2b[_0x5a89('0xdd')][_0x56a451];for(const {userId:_0x1df891}of this[_0x5a89('0xdc')][_0x5a89('0xde')]())null!==_0x1df891&&_0x550e27[_0x5a89('0xdb')](_0x1df891);this[_0x5a89('0x4d')](_0xa728f8,_0x12fbf0[_0x5a89('0xdd')][_0x56a451],_0x78f97b,_0x5a89('0x1'),_0x550e27),this[_0x5a89('0x4d')](_0x442fbf,_0x12fbf0['deletions'][_0x56a451],_0x42b5cb,_0x5a89('0x12'),_0x550e27),_0x57feed[_0x56a451]={'insertions':this[_0x5a89('0x46')](_0xa728f8),'deletions':this[_0x5a89('0x46')](_0x442fbf)};}return{'diffData':_0x57feed,'authorsIds':Array[_0x5a89('0xe1')](_0x550e27)};}['_processRootBeforeSave'](_0x24b1b9){for(const [,_0x208715]of _0x24b1b9[_0x5a89('0x88')]){const _0x4aab04=_0x208715[_0x5a89('0xd2')]['getAncestors']()[_0x5a89('0x6a')](_0x203a16=>'tableCell'==_0x203a16[_0x5a89('0xa7')]);for(const _0x57095e of _0x4aab04)0x1==_0x57095e[_0x5a89('0x1a')]&&_0x57095e[_0x5a89('0x52')](0x0)['is'](_0x5a89('0xe5'),_0x5a89('0x37'))&&_0x57095e[_0x5a89('0x52')](0x0)[_0x5a89('0xd')](_0x5a89('0x57'),!0x0);}}[_0x5a89('0x46')](_0x2c26d6){this[_0x5a89('0xf2')](_0x2c26d6);const _0x2c576b=this[_0x5a89('0x9e')][_0x5a89('0xa2')][_0x5a89('0x36')](_0x2c26d6,{}),_0x502189=Array[_0x5a89('0xe1')](_0x2c576b['getChildren']())[_0x5a89('0x5a')](_0x2b93b5=>this['_getViewJson'](_0x2b93b5));return JSON[_0x5a89('0x14')](_0x502189);}[_0x5a89('0xa3')](_0x1cb4d0){if(_0x1cb4d0['is'](_0x5a89('0x31')))return _0x1cb4d0[_0x5a89('0xa2')];{const _0x169f54=_0x1cb4d0;return{'type':Object[_0x5a89('0x39')](V)['find'](_0x39b961=>_0x1cb4d0 instanceof V[_0x39b961]),'name':_0x169f54[_0x5a89('0xa7')],'attributes':Array[_0x5a89('0xe1')](_0x169f54[_0x5a89('0xda')]()),'children':Array[_0x5a89('0xe1')](_0x169f54[_0x5a89('0x43')]())[_0x5a89('0x5a')](_0x16002e=>this[_0x5a89('0xa3')](_0x16002e))};}}[_0x5a89('0x4d')](_0x4699ef,_0x416025,_0x1105fb,_0x24e4e4,_0x20d6a8){let _0x4dca5a=null,_0x46918b=null,_0x388fd9=0x0;const _0xc56cf7=this[_0x5a89('0x9e')][_0x5a89('0x4f')];for(let _0x1c9222=0x0;_0x1c9222<_0x416025[_0x5a89('0x66')];_0x1c9222++){const _0x41e825=this[_0x5a89('0x68')](_0x416025[_0x1c9222]),_0xd28401=_0x416025[_0x1c9222][_0x5a89('0x2d')][_0x5a89('0x4b')](_0x41e825),_0x52d688=_0x1105fb[_0x5a89('0x10')](_0xd28401),_0x2362dd=_0x1c9222==_0x416025[_0x5a89('0x66')]-0x1;(!_0x4dca5a&&_0x52d688&&(_0x4dca5a=_0x52d688,_0x46918b=_0x416025[_0x1c9222]),_0x4dca5a&&(!_0x52d688||_0x52d688['userId']!=_0x4dca5a['userId']))&&(_0x1d1ebb(_0x52d688,j(_0x46918b,_0x4699ef,_0xc56cf7),j(_0x416025[_0x1c9222],_0x4699ef,_0xc56cf7)),_0x4dca5a=_0x52d688||null,_0x46918b=_0x52d688?_0x416025[_0x1c9222]:null),_0x4dca5a&&_0x2362dd&&_0x1d1ebb(_0x52d688,j(_0x46918b,_0x4699ef,_0xc56cf7),B(_0x416025[_0x1c9222],_0x4699ef,_0xc56cf7));}function _0x1d1ebb(_0x1896da,_0x586ac2,_0x1fa712){const _0x2a2625=_0x4dca5a['userId'],_0x49afa6=_0x5a89('0x64')+_0x24e4e4+':'+_0x2a2625+':'+_0x388fd9++,_0x38029f=_0xc56cf7[_0x5a89('0xe2')](_0x586ac2,_0x1fa712);_0x4699ef['markers']['set'](_0x49afa6,_0x38029f),null!==_0x2a2625&&_0x20d6a8[_0x5a89('0xdb')](_0x2a2625);}}[_0x5a89('0x68')](_0x1a4e35){switch(_0x1a4e35['type']){case _0x5a89('0x81'):return _0x5a89('0xc9');case _0x5a89('0xef'):return _0x5a89('0x9b');default:return'vid';}}['_fixOperation'](_0x17beeb,_0x1d8d05){_0x17beeb[_0x5a89('0x6')]=null;for(const _0x217475 in _0x17beeb){const _0x2b1035=_0x17beeb[_0x217475];if(_0x2b1035 instanceof _0x58df94){const _0xa8f619=_0x1d8d05[_0x5a89('0x10')](_0x2b1035[_0x5a89('0x7a')]['rootName']);_0x17beeb[_0x217475]=this[_0x5a89('0x27')](_0x2b1035,_0xa8f619);}if(_0x2b1035 instanceof _0x51a6c6){const _0x1da08a=_0x1d8d05['get'](_0x2b1035[_0x5a89('0x7a')]['rootName']);_0x17beeb[_0x217475]=this[_0x5a89('0x48')](_0x2b1035,_0x1da08a);}}_0x17beeb[_0x5a89('0x7a')]&&(_0x17beeb[_0x5a89('0x7a')]=_0x1d8d05['get'](_0x17beeb['root'][_0x5a89('0xd3')]));}['_fixRange'](_0x32a5a8,_0x4a3f26){return this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xe2')](this[_0x5a89('0x27')](_0x32a5a8[_0x5a89('0xd2')],_0x4a3f26),this[_0x5a89('0x27')](_0x32a5a8[_0x5a89('0xb5')],_0x4a3f26));}[_0x5a89('0x27')](_0x2a896a,_0x46833a){return this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0x34')](_0x46833a,_0x2a896a[_0x5a89('0xbd')],_0x2a896a[_0x5a89('0x83')]);}[_0x5a89('0xeb')](_0x27e82a){const _0x36c85f=this[_0x5a89('0x98')][_0x5a89('0x10')](_0x27e82a[_0x5a89('0xcb')][_0x5a89('0x7a')][_0x5a89('0xd3')]),_0xfe7adc=this['_fixPosition'](_0x27e82a[_0x5a89('0xcb')],_0x36c85f),_0x1e71a7=null===_0x27e82a[_0x5a89('0xdf')]?null:_0x27e82a[_0x5a89('0xdf')]||this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')]('Users')['me']['id'],_0x451409=_0xfe7adc[_0x5a89('0x1e')],_0x2b2928=this[_0x5a89('0x87')],_0x384bf4=[];for(const _0x463f46 of _0x27e82a['nodes'])if(_0x463f46['is'](_0x5a89('0xe5')))_0x384bf4[_0x5a89('0x7e')](this[_0x5a89('0x61')](_0x463f46));else for(let _0x13355=0x0;_0x13355<_0x463f46[_0x5a89('0xbb')];_0x13355++)_0x384bf4[_0x5a89('0x7e')](new _0x29a21d('$text',{'vid':this[_0x5a89('0x87')]++}));const _0x2d9fb9=this['_revisionId'];for(let _0x156dc8=_0x2b2928;_0x156dc8<_0x2d9fb9;_0x156dc8++)this['_touched']['set'](_0x156dc8,{'userId':_0x1e71a7});_0x451409['_insertChild'](_0xfe7adc[_0x5a89('0xd9')],_0x384bf4);}[_0x5a89('0xb3')](_0x321177){(_0x321177=this['_cloneOperation'](_0x321177,this[_0x5a89('0x98')]))['_execute']();const _0x152fd4=null===_0x321177[_0x5a89('0xdf')]?null:_0x321177[_0x5a89('0xdf')]||this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0xec1889=_0x321177[_0x5a89('0xe3')](),_0xa00109=_0xec1889['parent'],_0x22bb83=_0xec1889[_0x5a89('0xd9')];!function _0x4dcbea(_0x5d1102,_0x576ff4,_0x2acdcb,_0x285e4c){for(let _0x43e988=_0x2acdcb;_0x43e988<_0x285e4c;_0x43e988++){const _0x4e2312=_0x576ff4[_0x5a89('0x52')](_0x43e988);_0x4e2312['is'](_0x5a89('0xe5'),_0x5a89('0x31'))?_0x5d1102[_0x5a89('0xf5')](_0x4e2312[_0x5a89('0x4b')](_0x5a89('0x8b')),{'userId':_0x152fd4}):(_0x5d1102['set'](_0x4e2312[_0x5a89('0x4b')](_0x5a89('0xc9')),{'userId':_0x152fd4}),_0x4dcbea(_0x5d1102,_0x4e2312,0x0,_0x4e2312[_0x5a89('0x1a')]),_0x5d1102['set'](_0x4e2312[_0x5a89('0x4b')](_0x5a89('0x9b')),{'userId':_0x152fd4}));}}(this[_0x5a89('0xc')],_0xa00109,_0x22bb83,_0x22bb83+_0x321177[_0x5a89('0xb6')]);}['_handleMergeOperation'](_0x4e0e12){const _0x11750e=null===(_0x4e0e12=this[_0x5a89('0xa5')](_0x4e0e12,this[_0x5a89('0x98')]))[_0x5a89('0xdf')]?null:_0x4e0e12['_authorId']||this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0x3b8840=_0x4e0e12[_0x5a89('0x79')]['parent'],_0x178829=_0x4e0e12[_0x5a89('0xbc')]['parent'],_0x126751=_0x3b8840['getAttribute'](_0x5a89('0x9b')),_0x1b9329=_0x178829[_0x5a89('0x4b')]('vid_start');_0x3b8840[_0x5a89('0xd')](_0x5a89('0x9b'),_0x178829[_0x5a89('0x4b')]('vid_end')),_0x178829[_0x5a89('0xd')](_0x5a89('0x9b'),_0x126751),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x1b9329,{'userId':_0x11750e}),this[_0x5a89('0xc')]['set'](_0x126751,{'userId':_0x11750e}),_0x4e0e12[_0x5a89('0x71')]();}[_0x5a89('0x59')](_0x588c9f){const _0x4dbbc5=null===(_0x588c9f=this[_0x5a89('0xa5')](_0x588c9f,this[_0x5a89('0x98')]))[_0x5a89('0xdf')]?null:_0x588c9f['_authorId']||this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0x99e541=_0x588c9f['graveyardPosition'],_0x29c4cc=_0x588c9f['splitPosition'][_0x5a89('0x1e')];_0x588c9f[_0x5a89('0x71')]();const _0x453f4e=_0x29c4cc[_0x5a89('0x4b')](_0x5a89('0x9b')),_0x3f3277=_0x588c9f[_0x5a89('0xa9')][_0x5a89('0xe4')];if(_0x99e541){const _0x1c37f9=_0x3f3277[_0x5a89('0x4b')](_0x5a89('0x9b')),_0x8aab7=_0x29c4cc[_0x5a89('0x4b')](_0x5a89('0x9b'));_0x29c4cc['_setAttribute']('vid_end',_0x1c37f9),_0x3f3277[_0x5a89('0xd')](_0x5a89('0x9b'),_0x8aab7),this['_touched'][_0x5a89('0xf5')](_0x29c4cc[_0x5a89('0x4b')]('vid_end'),{'userId':_0x4dbbc5}),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x3f3277[_0x5a89('0x4b')]('vid_start'),{'userId':_0x4dbbc5});}else{const _0x521a17=this[_0x5a89('0x87')]++,_0x5fd714=this['_revisionId']++;_0x29c4cc[_0x5a89('0xd')](_0x5a89('0x9b'),_0x521a17),_0x3f3277[_0x5a89('0xd')](_0x5a89('0xc9'),_0x5fd714),_0x3f3277['_setAttribute'](_0x5a89('0x9b'),_0x453f4e),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x521a17,{'userId':_0x4dbbc5}),this[_0x5a89('0xc')]['set'](_0x5fd714,{'userId':_0x4dbbc5});}}['_handleMarkerOperation'](_0x5e084e){if(!_0x5e084e[_0x5a89('0xd8')])return;const _0x6afe1b=(_0x5e084e=this['_cloneOperation'](_0x5e084e,this[_0x5a89('0x56')]))[_0x5a89('0xf')]?_0x5e084e[_0x5a89('0xf')][_0x5a89('0x7a')]:null,_0x55e4d9=_0x5e084e[_0x5a89('0xba')]?_0x5e084e[_0x5a89('0xba')]['root']:null;_0x6afe1b&&this[_0x5a89('0x7f')][_0x5a89('0xce')](_0x5e084e['name']),_0x55e4d9&&this[_0x5a89('0x7f')][_0x5a89('0xf5')](_0x5e084e[_0x5a89('0xa7')],_0x5e084e[_0x5a89('0xba')][_0x5a89('0x5b')]());const _0x44cc1f=null===_0x5e084e['_authorId']?null:_0x5e084e[_0x5a89('0xdf')]||this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')]('Users')['me']['id'],_0x46b7c5=_0x5e084e['name'];if(!this[_0x5a89('0xdc')][_0x5a89('0xc6')](_0x46b7c5))return void this['_touchedMarkers'][_0x5a89('0xf5')](_0x46b7c5,{'range':_0x5e084e[_0x5a89('0xf')],'userId':_0x44cc1f});const _0x2a501f=this['_touchedMarkers']['get'](_0x46b7c5),_0x6c4d65=_0x2a501f[_0x5a89('0x63')],_0x2b425b=_0x5e084e['newRange'];null==_0x6c4d65&&null==_0x2b425b||_0x6c4d65&&_0x2b425b&&_0x6c4d65['isEqual'](_0x2b425b)?this[_0x5a89('0xdc')][_0x5a89('0xce')](_0x5e084e[_0x5a89('0xa7')]):_0x2a501f[_0x5a89('0x90')]=_0x44cc1f;}}function J(_0x3bf98b){const _0xd3d42d=new _0x58153f();_0xd3d42d[_0x5a89('0xd3')]=_0x3bf98b[_0x5a89('0xd3')];for(const _0x161e89 of _0x3bf98b[_0x5a89('0x43')]()){const _0x3eb93b=_0x161e89[_0x5a89('0x77')](!0x0);_0xd3d42d[_0x5a89('0x3f')](_0x3eb93b);}return _0xd3d42d;}function j(_0x23fab4,_0x23031c,_0x36e28c){const _0x45b130=_0x5a89('0xef')==_0x23fab4[_0x5a89('0x3b')]?_0x36e28c[_0x5a89('0x51')](_0x23fab4['item'],_0x5a89('0xb5')):_0x36e28c[_0x5a89('0x11')](_0x23fab4[_0x5a89('0x2d')]);return _0x36e28c[_0x5a89('0x34')](_0x23031c,_0x45b130[_0x5a89('0xbd')],_0x45b130['stickiness']);}function B(_0x353c32,_0x444e0b,_0x54dd77){const _0x45dd36='elementStart'==_0x353c32[_0x5a89('0x3b')]?_0x54dd77['createPositionAt'](_0x353c32[_0x5a89('0x2d')],0x0):_0x54dd77['createPositionAfter'](_0x353c32['item']);return _0x54dd77[_0x5a89('0x34')](_0x444e0b,_0x45dd36[_0x5a89('0xbd')],_0x45dd36['stickiness']);}
23
+ const _0x170e=['_isPendingUpdate','isReady','model','children','update','updateRevisions','howMany','root','reInit','_replaceEditorDataWithRevisionData','keys','_prepareViewToSave','plugins','repository','_createInitialRevision','markerToData','config','nodeAfter','data-revision-','elementEnd','_fixPosition','_loadedStateData','_getBaseVids','key','revisionHistory.resumeUnsavedRevision','revision-end','attributes','previousPosition','start','vid','createPositionFromPath','getCurrentRevisionId','attributesAfter','_handleRootAttributeOperation','_initialRoots','_lastTo','splitPosition','reverse','PendingActions','split','insertions','getRevisions','history','document','insert','_idsRoots','_markChanges','upcast','_removeRevisionMarkers','toModel','_reset','reinsert','_handleMoveOperation','shift','_execute','dataDowncast','_createFromRanges','_processRootBeforeSave','$text','end','createPositionAfter','affectsData','size','Empty\x20document','from','_saveMetaData','_initialRevisionId','marker','_source','_removePendingAction','_touchedMarkers','toData','fromVersion','setRevisionData','length','_insertChild','item','createdAt','initialData','startsWith','rootName','currentRevision','oldRange','ready','element','getAncestors','vid_start','source','getUser','_update','bind','_removeMetaData','_handleInsertOperation','_makeRevision','roots','toVersion','processor','remove','rootsAttributes','collaboration.channelId','saveRevision','editor','revision:','set','afterInit','createRange','locale','getRoot','_touched','Users','markers','toView','_transformMarkers','creatorId','addRevision','move','_handleRootOperation','addRootAttribute','_applyOperations','_getState','_makeModelFromViewString','attachChange','sendBufferedUpdates','init','_bufferedUpdates','string','documentFragment','revision','Initial\x20revision','_bufferUpdate','range','_clone','clear','position','revision-start','_findInsertionIndex','getNodeByPath','delete','view','getChild','getChildren','_lastFrom','elementStart','includes','_isInit','push','getAttributes','_startingVersion','createRevision','_generateTape','_calculateMetaData','newRange','resolve','max','creator','RevisionTracker','getRange','name','type','path','_baseRootsAttributes','useFillerType','NEGATIVE_INFINITY','authorsIds','_diffRoots','find','version','getIndex','_touchedRoots','RealTimeCollaborationClient','isEqual','keepParagraph','createPositionAt','_loadRevisionData','setSource','getWalker','_markers','_diffRootsAttributes','_fixRange','_handleMarkerOperation','clone','isAdd','parent','_cloneOperation','hasContent','buildRevisionData','_addPendingAction','RevisionsRepository','filter','getAttribute','_setConversion','stickiness','merge','_handleSplitOperation','_revisionDataBuilder','getRevisionDocumentData','_baseIdsRoots','dataToMarker','_loadState','deletion','some','_getVidAttributeName','diffData','_copyMarkers','requires','for','map','_handleOperation','get','_continueCurrentRevision','_isAttached','vid_end','tableCell','add','_pendingAction','editing','_startingRevisionId','conversion','isAttached','define','authors','getRevision','userId','getTime','_savedMetaData','_revisionId','has','newValue','_handleMergeOperation','_authorId','addRevisionData','attributesBefore','nodes','graveyardPosition','targetPosition','createPositionBefore','getRootNames','deletions','then','_getPreviousFrom','_createCurrentRevision','getRevisionRootsAttributes','paragraph','_setAttribute','_getFromVersion','_makeIdsRoot','getData','getLatestVersion','_baseRoots','data','slice','baseVersion','loadState','parse','offsetSize','values','adapter','_fixOperation','isEnabled','getTransformedByOperation','finally','$graveyard','forEach'];(function(_0x44854e,_0x170e17){const _0x584882=function(_0x429d74){while(--_0x429d74){_0x44854e['push'](_0x44854e['shift']());}};_0x584882(++_0x170e17);}(_0x170e,0x184));const _0x5848=function(_0x44854e,_0x170e17){_0x44854e=_0x44854e-0x0;let _0x584882=_0x170e[_0x44854e];return _0x584882;};import{Users as _0x1a6a68}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x34844c,PendingActions as _0xfdd86a}from'ckeditor5/src/core';import{logWarning as _0x1461fb,uid as _0x31c0d1}from'ckeditor5/src/utils';import{Position as _0x5cf6ce,Range as _0x325215,Element as _0xff880d,DocumentFragment as _0x2edb62,ViewText as _0x4a0d50,ViewElement as _0x6a31b0,ViewContainerElement as _0x20aef9,ViewAttributeElement as _0x301b3c,ViewEmptyElement as _0x3e16a4,ViewRawElement as _0x45d35d,ViewUIElement as _0x3d25ea,ViewDocumentFragment as _0x27b500}from'ckeditor5/src/engine';import _0x222cd5 from'./revisionsrepository';import{getTranslation as _0x20a1bb}from'./utils/common-translations';import{cloneDeep as _0x1a20f3,isEqual as _0xa78a5b}from'lodash-es';const j={'c':_0x20aef9,'a':_0x301b3c,'e':_0x3e16a4,'r':_0x45d35d,'u':_0x3d25ea};export default class l extends _0x34844c{static get['pluginName'](){return _0x5848('0x1e');}static get[_0x5848('0x4f')](){return[_0x1a6a68,_0x222cd5,_0xfdd86a];}constructor(_0x5daa1b){super(_0x5daa1b),this['adapter']=null,this[_0x5848('0xdb')]=null,this['_revisionDataBuilder']=new T(this[_0x5848('0xef')]),this[_0x5848('0xcc')]=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'))||'initial',this[_0x5848('0x106')]=new Map(),this[_0x5848('0x9f')]=null;const _0x4e287c=_0x31c0d1();this[_0x5848('0xce')]={'history':this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xb4')],'getLatestVersion':()=>Promise[_0x5848('0x1b')](this[_0x5848('0xef')][_0x5848('0x8c')]['document']['version']),'getCurrentRevisionId':()=>_0x4e287c},this['set'](_0x5848('0x8b'),!0x1),this[_0x5848('0xf1')](_0x5848('0x85'),!0x0),this['set'](_0x5848('0x8a'),!0x1),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x5e')](_0x5848('0xa2'),!0x0),this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xb9'))[_0x5848('0x48')]({'view':_0x5848('0x2')});}[_0x5848('0x105')](){this[_0x5848('0x97')]=this['editor'][_0x5848('0x96')]['get'](_0x5848('0x3e')),this[_0x5848('0x41')](),this[_0x5848('0xef')][_0x5848('0x7c')]['on'](_0x5848('0xdd'),()=>{const _0x54f114=this['repository'][_0x5848('0x60')](0x0),_0x58c4f9=_0x54f114&&null===_0x54f114['creator']?_0x54f114:null;if(this['_continueCurrentRevision']=!!_0x58c4f9&&this['editor']['config']['get'](_0x5848('0xa2')),this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x65')](_0x5848('0x2c'))){const _0x2e4d3d=this[_0x5848('0xce')][_0x5848('0xa9')](),_0x1a2cc3=this[_0x5848('0x97')][_0x5848('0x60')](_0x2e4d3d);if(_0x1a2cc3)this[_0x5848('0x16')]=_0x1a2cc3['fromVersion'],this[_0x5848('0x54')]=!0x1;else{const _0x41b3d2=this['_source'][_0x5848('0xb4')]['_operations'][_0x5848('0x28')](_0x45f996=>!_0x45f996[_0x5848('0x13')]),_0x3ebd81=_0x41b3d2?_0x41b3d2[_0x5848('0x7e')]:this[_0x5848('0xce')][_0x5848('0xb4')][_0x5848('0x29')];_0x54f114?(_0x54f114[_0x5848('0xe9')]<_0x3ebd81&&_0x54f114[_0x5848('0xe3')]({'toVersion':_0x3ebd81}),this['_continueCurrentRevision']?(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')]):(this['_startingVersion']=_0x54f114['toVersion'],this[_0x5848('0x54')]=!0x1)):(this['_startingVersion']=_0x3ebd81,this[_0x5848('0x54')]=!0x1);}}else _0x58c4f9&&(this[_0x5848('0xef')]['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]=Math[_0x5848('0x1c')](_0x58c4f9[_0x5848('0xe9')],this['editor']['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]),_0x58c4f9[_0x5848('0xd2')]===_0x58c4f9['toVersion']?(0x0!==_0x58c4f9[_0x5848('0xd2')]&&(this['_source'][_0x5848('0xa9')]=()=>_0x58c4f9['id']),this['_continueCurrentRevision']=!0x1):this[_0x5848('0x54')]&&(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')])),this['_continueCurrentRevision']||(this[_0x5848('0x16')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x29')]);this[_0x5848('0x45')]['init'](this[_0x5848('0xce')][_0x5848('0xb4')]),this[_0x5848('0x98')](this['_startingVersion']),this[_0x5848('0x73')](this['_startingVersion']),this[_0x5848('0x83')]&&this[_0x5848('0x104')]();}),this[_0x5848('0xe4')](_0x5848('0x8b'))['to'](this,_0x5848('0x8a'),_0x2aa687=>!_0x2aa687);}async[_0x5848('0xf2')](){if(this[_0x5848('0x97')][_0x5848('0xd4')]>0x0){const _0x4fea36=this['repository'][_0x5848('0x60')](0x0),_0x1ea2f7=await this[_0x5848('0x46')](_0x4fea36),_0x3d111c=await this[_0x5848('0x74')](_0x4fea36);this['_replaceEditorDataWithRevisionData'](_0x1ea2f7,_0x3d111c);}}[_0x5848('0x31')](_0x1f989c){this[_0x5848('0xce')]=_0x1f989c;}async[_0x5848('0x8e')](){const _0x2520e8=await this['_source'][_0x5848('0x7a')]();if(_0x2520e8>this[_0x5848('0xdb')][_0x5848('0xe9')]){await this[_0x5848('0x49')]();const _0x2ff7db=this['buildRevisionData']({'revision':this[_0x5848('0xdb')],'to':_0x2520e8});_0x2ff7db[_0x5848('0x5f')]=_0x2ff7db[_0x5848('0x26')]['map'](_0x5300c2=>this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))[_0x5848('0xe2')](_0x5300c2)),this[_0x5848('0xdb')][_0x5848('0xe3')](_0x2ff7db);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5848('0x9f')]&&(await this[_0x5848('0x30')](this[_0x5848('0xdb')]),this[_0x5848('0x45')][_0x5848('0x7f')](this['currentRevision']),this[_0x5848('0x9f')]={'fromVersion':this[_0x5848('0xdb')][_0x5848('0xd2')],'authors':this[_0x5848('0xdb')][_0x5848('0x5f')][_0x5848('0x7d')]()});}async[_0x5848('0xee')](_0x1dca98={},_0x44a843=null){const _0x4a009b=[];await this['_loadState'](),this[_0x5848('0x54')]=!0x1,_0x44a843>this[_0x5848('0xdb')][_0x5848('0xe9')]&&(_0x44a843=null),null===_0x44a843&&(_0x44a843=await this[_0x5848('0xce')]['getLatestVersion']());const _0x104468=this[_0x5848('0x77')](_0x44a843),_0x224943=this[_0x5848('0x3c')]({'from':_0x104468,'to':_0x44a843});if(this[_0x5848('0xdb')][_0x5848('0xe9')]<_0x44a843){const _0x6d1434=this[_0x5848('0x3c')]({'revision':this[_0x5848('0xdb')],'from':_0x44a843,'to':_0x44a843});_0x6d1434[_0x5848('0x5f')]=[],_0x6d1434[_0x5848('0x26')]=[],_0x6d1434['id']=this[_0x5848('0xdb')]['id'],this[_0x5848('0xdb')]['_update'](_0x6d1434,!0x0),delete _0x6d1434[_0x5848('0x5f')],_0x4a009b[_0x5848('0x14')](_0x6d1434);}_0x1dca98[_0x5848('0xfb')]=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x1dca98[_0x5848('0x20')]=_0x1dca98[_0x5848('0x20')]||null,_0x1dca98['id']=_0x1dca98['id']||_0x31c0d1(),_0x1dca98={..._0x1dca98,..._0x224943};const _0x305b20=this['addRevisionData'](_0x1dca98);_0x4a009b['push'](_0x1dca98);const _0x1e8cb6=this['repository'][_0x5848('0x2a')](_0x305b20);if(0x0!==_0x1e8cb6){const _0x3bbd18=this[_0x5848('0x97')][_0x5848('0x60')](_0x1e8cb6-0x1);if(_0x3bbd18[_0x5848('0xd2')]!==_0x44a843){const _0x3544c4=this[_0x5848('0x45')]['getData'](_0x44a843,_0x3bbd18['toVersion']),_0xb5a21c={'id':_0x3bbd18['id'],'diffData':_0x3544c4['diffData'],'authorsIds':_0x3544c4['authorsIds'],'authors':_0x3544c4[_0x5848('0x26')][_0x5848('0x51')](_0x497d45=>this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['getUser'](_0x497d45)),'fromVersion':_0x44a843};_0x3bbd18===this[_0x5848('0xdb')]&&(_0xb5a21c['createdAt']=new Date(_0x1dca98[_0x5848('0xd7')][_0x5848('0x62')]()+0xa)),_0x3bbd18[_0x5848('0xe3')](_0xb5a21c,!0x0),delete _0xb5a21c['authors'],_0x4a009b[_0x5848('0x14')](_0xb5a21c);}}if(this[_0x5848('0x83')]){for(const _0x115e42 of _0x4a009b)this[_0x5848('0x4')](_0x115e42['id'],_0x115e42,!0x0);this[_0x5848('0x104')]();}return _0x305b20;}[_0x5848('0x69')](_0x30738d){const _0x560f6c=this[_0x5848('0x97')][_0x5848('0x17')](_0x30738d);return this[_0x5848('0x83')]&&_0x560f6c['on']('_update',(_0x21ad72,_0xba6b1b,_0x1fb655)=>{_0x1fb655||(this['_bufferUpdate'](_0xba6b1b['id'],_0xba6b1b,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x5848('0xfc')](_0x560f6c,this[_0x5848('0xa')](_0x560f6c)),_0x560f6c;}async['getRevisionDocumentData'](_0x277a3e){await this[_0x5848('0x30')](_0x277a3e);const _0x41a5c4={};for(const _0x3f93d5 in _0x277a3e[_0x5848('0x4d')]){if(_0x277a3e['diffData'][_0x3f93d5]['attachChange']&&!_0x277a3e[_0x5848('0x4d')][_0x3f93d5]['attachChange'][_0x5848('0x5d')])continue;const _0x238ea4=this[_0x5848('0xba')](JSON[_0x5848('0x80')](_0x277a3e['diffData'][_0x3f93d5][_0x5848('0xb2')])),_0x1f90df=this['editor']['editing'][_0x5848('0xd')]['document'],_0x4834ce=new _0x27b500(_0x1f90df,_0x238ea4['map'](_0xa25a08=>F(_0xa25a08,this['editor'])));this[_0x5848('0xef')]['data']['processor']['useFillerType']('marked'),_0x41a5c4[_0x3f93d5]=this[_0x5848('0xef')][_0x5848('0x7c')][_0x5848('0xea')][_0x5848('0xd1')](_0x4834ce),this['editor']['data'][_0x5848('0xea')][_0x5848('0x24')]('default');}return _0x41a5c4;}async['getRevisionRootsAttributes'](_0xefd3a6){await this[_0x5848('0x30')](_0xefd3a6);const _0xfc244a={};for(const _0x2fa8c1 in _0xefd3a6[_0x5848('0x4d')])_0xefd3a6['diffData'][_0x2fa8c1][_0x5848('0x103')]&&!_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0x103')][_0x5848('0x5d')]||(_0xfc244a[_0x2fa8c1]=_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0xaa')]||{});return _0xfc244a;}['sendBufferedUpdates'](){if(0x0===this[_0x5848('0x106')][_0x5848('0xc8')])return;if(this[_0x5848('0x8a')])return;let _0x5e5f16=Array[_0x5848('0xca')](this[_0x5848('0x106')][_0x5848('0x82')]());this[_0x5848('0x106')]['clear']();for(let _0x4da5a5=0x0;_0x4da5a5<_0x5e5f16[_0x5848('0xd4')];_0x4da5a5++){const _0x5681e2=_0x5e5f16[_0x4da5a5];let _0x1d72b7=!0x1;for(const _0x17d447 of Object['keys'](_0x5681e2))void 0x0===_0x5681e2[_0x17d447]?delete _0x5681e2[_0x17d447]:'id'!==_0x17d447&&(_0x1d72b7=!0x0);_0x1d72b7||(_0x5e5f16[_0x4da5a5]=null);}if(_0x5e5f16=_0x5e5f16['filter'](_0x5d4666=>null!==_0x5d4666),!_0x5e5f16[_0x5848('0xd4')])return;for(let _0x16b662=0x0;_0x16b662<_0x5e5f16[_0x5848('0xd4')];_0x16b662++){const _0x3da442=_0x5e5f16[_0x16b662];void 0x0!==_0x3da442['fromVersion']&&void 0x0===_0x3da442[_0x5848('0xe9')]&&(_0x3da442[_0x5848('0xe9')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])['toVersion']),void 0x0!==_0x3da442[_0x5848('0xe9')]&&void 0x0===_0x3da442[_0x5848('0xd2')]&&(_0x3da442[_0x5848('0xd2')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])[_0x5848('0xd2')]);}const _0x203ebe=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'));this[_0x5848('0x8a')]=!0x0,this[_0x5848('0x3d')](),this[_0x5848('0x83')][_0x5848('0x8f')](_0x5e5f16,_0x203ebe)[_0x5848('0x87')](()=>{this[_0x5848('0x8a')]=!0x1;})[_0x5848('0x71')](_0xbd48ff=>{if(_0xbd48ff)for(const _0x1b4343 of _0xbd48ff)this['setRevisionData']({'id':_0x1b4343['id'],'createdAt':_0x1b4343[_0x5848('0xd7')]});this['_removePendingAction'](),this[_0x5848('0x104')]();});}[_0x5848('0x93')](_0x19233e,_0x2f5be8){let _0x913122=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xd8')),_0xa23260=this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x53')](_0x5848('0xec'));if(void 0x0===_0x913122){_0x913122={};for(const _0x4f5962 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0x913122[_0x4f5962]='';}if(_0x5848('0x0')==typeof _0x913122&&(_0x913122={'main':_0x913122}),void 0x0===_0xa23260){_0xa23260={};for(const _0x466a91 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0xa23260[_0x466a91]={};}let _0x5ad8c6=!0x1;const _0xc1e762=Object[_0x5848('0x94')](_0x913122),_0x4e6283=Object[_0x5848('0x94')](_0x19233e);for(const _0x559c37 of _0xc1e762){if(_0x913122[_0x559c37]!==_0x19233e[_0x559c37]&&''!==_0x913122[_0x559c37]['trim']()){_0x5ad8c6=!0x0;break;}if(!_0xa78a5b(_0xa23260[_0x559c37],_0x2f5be8[_0x559c37])&&Object[_0x5848('0x94')](_0xa23260[_0x559c37])[_0x5848('0xd4')]>0x0){_0x5ad8c6=!0x0;break;}}_0x5ad8c6||(_0x5ad8c6=_0x4e6283[_0x5848('0x4b')](_0x49bbcd=>!_0xc1e762[_0x5848('0x12')](_0x49bbcd))),_0x5ad8c6&&_0x1461fb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x913122,'editorRootsAttributes':_0xa23260,'revisionData':_0x19233e,'revisionRootsAttributes':_0x2f5be8}),this['editor']['config']['set'](_0x5848('0xd8'),_0x19233e),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0xf1')](_0x5848('0xec'),_0x2f5be8);}[_0x5848('0x3d')](){if(!this[_0x5848('0x59')]){const _0x25a1e2=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xb0'));this[_0x5848('0x59')]=_0x25a1e2[_0x5848('0x58')](_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5848('0xcf')](){this[_0x5848('0x59')]&&(this['editor'][_0x5848('0x96')]['get']('PendingActions')['remove'](this[_0x5848('0x59')]),this[_0x5848('0x59')]=null);}[_0x5848('0xa')](_0xed97a4){const _0xa7ba5=this[_0x5848('0x97')][_0x5848('0xb3')]();_0xa7ba5[_0x5848('0xaf')]();let _0x2d6a2a=0x0;for(;_0x2d6a2a<_0xa7ba5['length'];){const _0x1481d4=_0xa7ba5[_0x2d6a2a];if(_0x1481d4===this[_0x5848('0xdb')]){_0x2d6a2a++;continue;}if(_0x1481d4['id']===this[_0x5848('0xcc')])break;const _0x149689=_0xed97a4[_0x5848('0xe9')]-_0x1481d4[_0x5848('0xe9')]||_0xed97a4[_0x5848('0xd2')]-_0x1481d4['fromVersion'];if(_0x149689>0x0)break;if(_0x149689<0x0)_0x2d6a2a++;else{if(!_0xed97a4['creator']&&_0x1481d4[_0x5848('0x1d')])break;if(_0x1481d4[_0x5848('0x1d')]||!_0xed97a4['creator']){if(_0xed97a4[_0x5848('0xd7')]>_0x1481d4[_0x5848('0xd7')])break;_0x2d6a2a++;}else _0x2d6a2a++;}}return _0x2d6a2a;}[_0x5848('0xd3')](_0x2a9955){const _0x39d767=this[_0x5848('0x97')]['getRevision'](_0x2a9955['id']);if(_0x2a9955[_0x5848('0xd7')]&&(_0x2a9955[_0x5848('0xd7')]=new Date(_0x2a9955[_0x5848('0xd7')])),_0x2a9955[_0x5848('0x26')]){const _0x517c88=this['editor']['plugins']['get'](_0x5848('0xf7'));_0x2a9955[_0x5848('0x5f')]=_0x2a9955[_0x5848('0x26')][_0x5848('0x51')](_0x318d7b=>_0x517c88[_0x5848('0xe2')](_0x318d7b));}_0x39d767[_0x5848('0xe3')](_0x2a9955,!0x0);}['buildRevisionData']({revision:_0xe990b8=null,from:_0x72646b=null,to:_0x109cc6=null}){_0x72646b=null!==_0x72646b?_0x72646b:_0xe990b8[_0x5848('0xd2')],_0x109cc6=null!==_0x109cc6?_0x109cc6:_0xe990b8[_0x5848('0xe9')];const _0xcfd75f=this[_0x5848('0x45')]['getData'](_0x72646b,_0x109cc6),_0x1b84c8={'diffData':_0xcfd75f[_0x5848('0x4d')],'authorsIds':_0xcfd75f[_0x5848('0x26')],'fromVersion':_0x72646b,'toVersion':_0x109cc6};if(!_0xe990b8||_0x109cc6!==_0xe990b8[_0x5848('0xe9')]){const _0x3fe118=_0x109cc6-0x1,_0x4cdf19=this[_0x5848('0xce')][_0x5848('0xb4')]['getOperation'](_0x3fe118);_0x1b84c8['createdAt']=_0x4cdf19&&_0x4cdf19[_0x5848('0xd7')]||new Date();}if(this[_0x5848('0x9f')]&&_0x72646b===this['_loadedStateData'][_0x5848('0xd2')])for(const _0x18c804 of this[_0x5848('0x9f')]['authors'])_0x1b84c8['authorsIds'][_0x5848('0x12')](_0x18c804['id'])||_0x1b84c8[_0x5848('0x26')][_0x5848('0x14')](_0x18c804['id']);return _0x1b84c8;}['_loadRevisionData'](_0x11747e){if(!_0x11747e||_0x11747e[_0x5848('0x4d')])return Promise['resolve']();{const _0x5d4d15=this['editor'][_0x5848('0x9a')][_0x5848('0x53')]('collaboration.channelId');return this[_0x5848('0x83')][_0x5848('0x60')]({'channelId':_0x5d4d15,'revisionId':_0x11747e['id']})['then'](_0x2e9d88=>{_0x11747e[_0x5848('0x4d')]=_0x2e9d88['diffData'];});}}['_bufferUpdate'](_0x500ea5,_0x3e5c8d,_0x40a137){if(this[_0x5848('0x106')][_0x5848('0x65')](_0x500ea5)){const _0x400865=this['_bufferedUpdates'][_0x5848('0x53')](_0x500ea5);_0x3e5c8d=_0x40a137?{..._0x400865,..._0x3e5c8d}:{..._0x3e5c8d,..._0x400865};}this[_0x5848('0x106')]['set'](_0x500ea5,_0x3e5c8d);}[_0x5848('0x77')](_0x238965){const _0x5de286=this['repository'][_0x5848('0xb3')]();_0x5de286[_0x5848('0xaf')](),_0x5de286[_0x5848('0xbf')]();const _0x354486=_0x5de286[_0x5848('0x28')](_0x201afb=>_0x201afb[_0x5848('0xe9')]<=_0x238965)['toVersion'];return _0x354486<this['_startingVersion']?this[_0x5848('0x16')]:_0x354486;}['_createInitialRevision'](_0x5674ca){const _0x34eab4=this[_0x5848('0x97')][_0x5848('0x60')](this[_0x5848('0x97')][_0x5848('0xd4')]-0x1);if(_0x34eab4)this[_0x5848('0xcc')]=_0x34eab4['id'];else{const _0x44c998=!this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xe8')][_0x5848('0x28')](_0x16b8c4=>this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0x3b')](_0x16b8c4)),_0x4e010d=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x554a6c=_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],_0x44c998?_0x5848('0xc9'):_0x5848('0x3'));this[_0x5848('0xe7')]({'from':_0x5674ca,'to':_0x5674ca,'id':this['_initialRevisionId'],'name':_0x554a6c,'creatorId':_0x4e010d});}}[_0x5848('0x73')](_0x21d2af){const _0x47129b=this[_0x5848('0xce')][_0x5848('0xa9')]();this['currentRevision']=this[_0x5848('0x97')][_0x5848('0x60')](_0x47129b),this[_0x5848('0xdb')]||(this[_0x5848('0xdb')]=this[_0x5848('0xe7')]({'from':_0x21d2af,'to':_0x21d2af,'id':_0x47129b,'name':'','creatorId':null}));}[_0x5848('0xe7')]({name:_0x4214a6,from:_0x2f01d2,to:_0x46021e,creatorId:_0x1e893a,id:_0x1f2713}){const _0x39f9f9=this['buildRevisionData']({'from':_0x2f01d2,'to':_0x46021e});_0x39f9f9[_0x5848('0x20')]=_0x4214a6,_0x39f9f9[_0x5848('0xfb')]=_0x1e893a,_0x39f9f9['id']=_0x1f2713;const _0x370776=this[_0x5848('0x69')](_0x39f9f9);return this[_0x5848('0x83')]&&this['_bufferUpdate'](_0x39f9f9['id'],_0x39f9f9,!0x0),_0x370776;}['_setConversion'](){this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xc1'))[_0x5848('0x99')]({'model':'revision'});}[_0x5848('0xba')](_0x5e1a89){return(_0x5e1a89=_0x5e1a89[_0x5848('0x3f')](_0xfe9db3=>!_0xfe9db3['name']||_0x5848('0x9')!==_0xfe9db3[_0x5848('0x20')]&&_0x5848('0xa3')!==_0xfe9db3[_0x5848('0x20')]))[_0x5848('0x89')](_0xeecb02=>{_0x5848('0x0')!=typeof _0xeecb02&&(_0xeecb02[_0x5848('0x8d')]=this[_0x5848('0xba')](_0xeecb02[_0x5848('0x8d')]),_0xeecb02['attributes']=_0xeecb02[_0x5848('0xa4')][_0x5848('0x3f')](_0x8a8c6a=>!_0x8a8c6a[0x0]['startsWith'](_0x5848('0x9c'))));}),_0x5e1a89;}}function F(_0x2e7b7b,_0x3480e0){const _0x42ae79=_0x3480e0[_0x5848('0x5a')][_0x5848('0xd')]['document'];if(_0x5848('0x0')==typeof _0x2e7b7b)return new _0x4a0d50(_0x42ae79,_0x2e7b7b);{const _0x385323=_0x2e7b7b[_0x5848('0x8d')][_0x5848('0x51')](_0x530269=>F(_0x530269,_0x3480e0));return new(j[_0x2e7b7b[(_0x5848('0x21'))]]||_0x6a31b0)(_0x42ae79,_0x2e7b7b[_0x5848('0x20')],_0x2e7b7b['attributes'],_0x385323);}}class T{constructor(_0x21b36f){this[_0x5848('0xef')]=_0x21b36f,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x5848('0xad')]=-0x1,this[_0x5848('0x33')]=new Map(),this['_diffRoots']=new Map(),this[_0x5848('0x34')]=new Map(),this[_0x5848('0x7b')]=new Map(),this[_0x5848('0x23')]=new Map(),this[_0x5848('0xb7')]=new Map(),this[_0x5848('0x47')]=new Map(),this[_0x5848('0xf6')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x5848('0x2b')]=new Map(),this[_0x5848('0x64')]=0x1,this[_0x5848('0xac')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](),this[_0x5848('0xac')][_0x5848('0x14')](_0x5848('0x88'));}[_0x5848('0x105')](_0x2550a5){this[_0x5848('0xe1')]=_0x2550a5;const _0x72b35b=new Map(),_0x18d540=new Map(),_0x5361a3=this['editor'][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](!0x0);_0x5361a3[_0x5848('0x14')]('$graveyard');for(const _0x4fd033 of _0x5361a3){const _0x2b35a8=this['editor'][_0x5848('0x8c')]['document'][_0x5848('0xf5')](_0x4fd033),_0x1501b7=B(_0x2b35a8);_0x72b35b[_0x5848('0xf1')](_0x4fd033,_0x1501b7),_0x18d540[_0x5848('0xf1')](_0x4fd033,Object['fromEntries'](_0x2b35a8['getAttributes']()));}const _0x9cd1b6=Array['from'](this[_0x5848('0xef')]['model'][_0x5848('0xf8')])[_0x5848('0x51')](_0x2e6581=>[_0x2e6581[_0x5848('0x20')],_0x2e6581[_0x5848('0x1f')]()]),_0x353739=this[_0x5848('0xe1')][_0x5848('0x29')];this['_saveMetaData'](_0x353739,_0x72b35b,_0x9cd1b6,_0x18d540),this[_0x5848('0x5b')]=this['_revisionId'];const _0x5ddc28=new Map(),_0x2596ca=new Map();for(const _0x53a146 of this[_0x5848('0xac')]){const _0x1a76a3=J(_0x53a146);_0x5ddc28[_0x5848('0xf1')](_0x53a146,_0x1a76a3),_0x2596ca[_0x5848('0xf1')](_0x53a146,{});}this[_0x5848('0xcb')](Number[_0x5848('0x25')],_0x5ddc28,[],_0x2596ca);}[_0x5848('0x79')](_0x319154,_0x5b5849){if(this[_0x5848('0x10')]===_0x319154&&this[_0x5848('0xad')]<=_0x5b5849)this[_0x5848('0x63')]['size']>0x1&&this[_0x5848('0xe5')](this[_0x5848('0xad')]),this['_applyOperations'](this[_0x5848('0xad')],_0x5b5849,!0x0);else{if(!this[_0x5848('0x63')]['has'](_0x319154)){const _0x42389e=this[_0x5848('0x72')](_0x319154);this['_calculateMetaData'](_0x42389e,_0x319154,!0x1);}this[_0x5848('0x19')](_0x319154,_0x5b5849,!0x0);}return this[_0x5848('0x10')]=_0x319154,this['_lastTo']=_0x5b5849,this[_0x5848('0x101')]();}[_0x5848('0x7f')](_0xdf5efe){this[_0x5848('0xbc')](),this['_lastFrom']=_0xdf5efe[_0x5848('0xd2')],this['_lastTo']=_0xdf5efe[_0x5848('0xe9')];for(const _0x390c38 in _0xdf5efe[_0x5848('0x4d')]){const _0x4027cc=_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x103')],_0x5d4f77=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x6a')])||{},_0x45de3c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x70')]);_0x45de3c['rootName']=_0x390c38,_0x45de3c[_0x5848('0x55')]=!_0x4027cc||!_0x4027cc[_0x5848('0x5d')],_0x45de3c['isAttached']=()=>_0x45de3c[_0x5848('0x55')],this[_0x5848('0x7b')]['set'](_0x390c38,_0x45de3c),this[_0x5848('0x23')][_0x5848('0xf1')](_0x390c38,_0x5d4f77),_0x4027cc&&this[_0x5848('0x2b')][_0x5848('0xf1')](_0x390c38,_0x4027cc);const _0x4e5f47=this[_0x5848('0x78')](_0x45de3c);this[_0x5848('0x47')][_0x5848('0xf1')](_0x390c38,_0x4e5f47);for(const [_0x1a8aa2,_0x31380d]of _0x45de3c[_0x5848('0xf8')]){if(!_0x1a8aa2[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x1e6523=_0x1a8aa2['split'](':')[0x2];for(const _0x5c67a6 of _0x31380d[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x3001c1=this[_0x5848('0x4c')](_0x5c67a6),_0x24ab94=_0x5848('0x9d')==_0x5c67a6[_0x5848('0x21')]?_0x5c67a6['previousPosition']['path']['slice'](0x0,-0x1):_0x5c67a6[_0x5848('0xa5')][_0x5848('0x22')],_0x13791c=_0x4e5f47[_0x5848('0xb')](_0x24ab94)[_0x5848('0x40')](_0x3001c1);this[_0x5848('0xf6')][_0x5848('0xf1')](_0x13791c,{'userId':_0x1e6523});}}}this[_0x5848('0x5b')]=this['_revisionId'];const _0x320835=[...Array(this[_0x5848('0x64')])[_0x5848('0x94')]()]['slice'](0x1)['filter'](_0x4aa281=>!this['_touched']['has'](_0x4aa281));let _0x4cf247=0x0;const _0x404bcf=new Map();for(const _0x572c10 in _0xdf5efe['diffData']){const _0x588e9d=_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0x103')],_0x399cc7=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0xaa')])||{},_0x1d0a5c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x572c10]['insertions']);_0x1d0a5c[_0x5848('0xda')]=_0x572c10,_0x1d0a5c[_0x5848('0x55')]=!_0x588e9d||_0x588e9d[_0x5848('0x5d')],_0x1d0a5c[_0x5848('0x5d')]=()=>_0x1d0a5c['_isAttached'],this[_0x5848('0x27')][_0x5848('0xf1')](_0x572c10,_0x1d0a5c),this[_0x5848('0x34')][_0x5848('0xf1')](_0x572c10,_0x399cc7);const _0x965183=this[_0x5848('0x78')](_0x1d0a5c,Number[_0x5848('0x25')]);this[_0x5848('0xb7')]['set'](_0x572c10,_0x965183),_0x404bcf['set'](_0x572c10,_0x1d0a5c[_0x5848('0x5d')]()?_0x399cc7:{});for(const [_0x5355ca,_0x202300]of _0x1d0a5c[_0x5848('0xf8')]){if(!_0x5355ca[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x398a3c=_0x5355ca[_0x5848('0xb1')](':')[0x2];for(const _0x27afc9 of _0x202300[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x1713e9=this[_0x5848('0x4c')](_0x27afc9),_0x76c766=this['_revisionId']++,_0x283089='elementEnd'==_0x27afc9[_0x5848('0x21')]?_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')][_0x5848('0x7d')](0x0,-0x1):_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')];_0x965183['getNodeByPath'](_0x283089)[_0x5848('0x76')](_0x1713e9,_0x76c766),this[_0x5848('0xf6')]['set'](_0x76c766,{'userId':_0x398a3c});}}for(const _0x343414 of this[_0x5848('0xef')][_0x5848('0x8c')]['createRangeIn'](_0x1d0a5c)[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0xbade6c=this[_0x5848('0x4c')](_0x343414),_0x63a914=_0x5848('0x9d')==_0x343414['type']?_0x343414['previousPosition'][_0x5848('0x22')]['slice'](0x0,-0x1):_0x343414[_0x5848('0xa5')][_0x5848('0x22')],_0x24963f=_0x965183[_0x5848('0xb')](_0x63a914);_0x24963f['getAttribute'](_0xbade6c)>0x0||_0x24963f[_0x5848('0x76')](_0xbade6c,_0x320835[_0x4cf247++]);}for(const [_0x31314c,_0x5370a2]of _0x1d0a5c[_0x5848('0xf8')])_0x31314c['startsWith'](_0x5848('0xf0'))||this[_0x5848('0x33')]['set'](_0x31314c,_0x5370a2);}const _0x16a159=J(_0x5848('0x88'));this[_0x5848('0x7b')][_0x5848('0xf1')]('$graveyard',_0x16a159),this[_0x5848('0x47')][_0x5848('0xf1')](_0x5848('0x88'),this[_0x5848('0x78')](_0x16a159,0x1));const _0x1db5a2=J(_0x5848('0x88'));this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),_0x1db5a2),this[_0x5848('0xb7')][_0x5848('0xf1')]('$graveyard',this['_makeIdsRoot'](_0x1db5a2,0x1));const _0x5ac608=Array['from'](this[_0x5848('0x27')])[_0x5848('0x51')](([_0x43a984,_0x338203])=>[_0x43a984,B(_0x338203)]);this[_0x5848('0xcb')](this[_0x5848('0xad')],_0x5ac608,this[_0x5848('0x33')],_0x404bcf);}[_0x5848('0x102')](_0x3a5596){const _0x4f012f=JSON[_0x5848('0x80')](_0x3a5596),_0x490355=this[_0x5848('0xef')][_0x5848('0x5a')]['view'][_0x5848('0xb5')],_0x33ecb3=new _0x27b500(_0x490355,_0x4f012f[_0x5848('0x51')](_0x42e951=>F(_0x42e951,this[_0x5848('0xef')])));return this['editor']['data'][_0x5848('0xbb')](_0x33ecb3);}[_0x5848('0xcb')](_0x5b118e,_0x3b6b30,_0x2977de,_0x465ceb){const _0x187d82=new Map(_0x3b6b30),_0x23c0db=new Map(_0x1a20f3(_0x465ceb)),_0x13681c=new Map();for(const [_0x6f96e1,_0x4753eb]of _0x2977de)_0x13681c[_0x5848('0xf1')](_0x6f96e1,{'start':_0x4753eb[_0x5848('0xa6')]['clone'](),'end':_0x4753eb[_0x5848('0xc5')][_0x5848('0x37')](),'rootName':_0x4753eb[_0x5848('0x91')][_0x5848('0xda')]});this['_savedMetaData'][_0x5848('0xf1')](_0x5b118e,{'roots':_0x187d82,'markers':_0x13681c,'rootsAttributes':_0x23c0db});}[_0x5848('0xe5')](_0x199486){this[_0x5848('0x63')][_0x5848('0xc')](_0x199486);}[_0x5848('0x92')](){this['_reset'](),this[_0x5848('0x10')]=-0x1,this[_0x5848('0xad')]=-0x1,this['_savedMetaData'][_0x5848('0x7')](),this[_0x5848('0x105')](this[_0x5848('0xe1')]);}[_0x5848('0xbc')](){this['_touched'][_0x5848('0x7')](),this['_touchedMarkers'][_0x5848('0x7')](),this[_0x5848('0x2b')][_0x5848('0x7')](),this['_diffRoots'][_0x5848('0x7')](),this[_0x5848('0x34')][_0x5848('0x7')](),this[_0x5848('0x7b')]['clear'](),this[_0x5848('0x23')][_0x5848('0x7')](),this[_0x5848('0xb7')][_0x5848('0x7')](),this[_0x5848('0x47')][_0x5848('0x7')](),this[_0x5848('0x33')][_0x5848('0x7')](),this[_0x5848('0x64')]=0x1,this[_0x5848('0x5b')]=this['_revisionId'];}[_0x5848('0x78')](_0x4aef02,_0x562078=null){let _0x15ba03=null;_0x4aef02['is'](_0x5848('0x1'))||(_0x15ba03=new _0xff880d(_0x4aef02[_0x5848('0x20')],{'vid_start':null===_0x562078?this['_revisionId']++:_0x562078++}));const _0x2d0b9b=[];for(const _0xdee884 of _0x4aef02['getChildren']())if(_0xdee884['is'](_0x5848('0xde'))){_0x2d0b9b[_0x5848('0x14')](this['_makeIdsRoot'](_0xdee884,_0x562078));const _0x1dc338=_0x2d0b9b[_0x2d0b9b[_0x5848('0xd4')]-0x1];null!==_0x562078&&(_0x562078=_0x1dc338['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x1dc338[_0x5848('0x40')](_0x5848('0xa7'))+0x1:_0x1dc338[_0x5848('0x40')](_0x5848('0x56'))+0x1);}else for(let _0x34d5d4=0x0;_0x34d5d4<_0xdee884[_0x5848('0x81')];_0x34d5d4++)_0x2d0b9b['push'](new _0xff880d(_0x5848('0xc4'),{'vid':null===_0x562078?this[_0x5848('0x64')]++:_0x562078++}));if(_0x4aef02['is']('documentFragment')){const _0x60b564=J(_0x4aef02[_0x5848('0xda')]);return _0x60b564[_0x5848('0xd5')](0x0,_0x2d0b9b),_0x60b564;}return _0x15ba03[_0x5848('0x76')]('vid_end',null===_0x562078?this['_revisionId']++:_0x562078++),_0x15ba03['_insertChild'](0x0,_0x2d0b9b),_0x15ba03;}[_0x5848('0x19')](_0x5a3c2e,_0x495786,_0x400aff){this[_0x5848('0xbc')]();const {roots:_0x3585ff,markers:_0x49694e,rootsAttributes:_0x2b33aa}=this[_0x5848('0x63')][_0x5848('0x53')](_0x5a3c2e);this[_0x5848('0x7b')]=new Map(_0x3585ff),this[_0x5848('0x23')]=new Map(_0x1a20f3(_0x2b33aa));for(const [_0x1d93c2,_0x54bd38]of this['_baseRoots'])if(_0x5848('0x88')!==_0x1d93c2&&(this[_0x5848('0x27')]['set'](_0x1d93c2,B(_0x54bd38)),this['_diffRootsAttributes']=new Map(_0x1a20f3(_0x2b33aa)),_0x400aff)){const _0x328a1d=this[_0x5848('0x64')];this['_idsRoots'][_0x5848('0xf1')](_0x1d93c2,this['_makeIdsRoot'](_0x54bd38)),this[_0x5848('0x47')][_0x5848('0xf1')](_0x1d93c2,this[_0x5848('0x78')](_0x54bd38,_0x328a1d));}this[_0x5848('0x5b')]=this[_0x5848('0x64')],this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),B(this[_0x5848('0x7b')]['get'](_0x5848('0x88')))),_0x400aff&&this[_0x5848('0xb7')]['set']('$graveyard',this[_0x5848('0x78')](this[_0x5848('0x7b')][_0x5848('0x53')](_0x5848('0x88'))));for(const [_0x183e99,_0x443b11]of _0x49694e){const _0x3d572a=this[_0x5848('0x7b')][_0x5848('0x53')](_0x443b11[_0x5848('0xda')]),_0x27e87a=this['_diffRoots'][_0x5848('0x53')](_0x443b11['rootName']),_0x383afe=new _0x325215(this[_0x5848('0x9e')](_0x443b11[_0x5848('0xa6')],_0x3d572a),this[_0x5848('0x9e')](_0x443b11['end'],_0x3d572a)),_0x3dcc29=this[_0x5848('0x35')](_0x383afe,_0x27e87a);_0x3d572a[_0x5848('0xf8')][_0x5848('0xf1')](_0x183e99,_0x383afe),this[_0x5848('0x33')]['set'](_0x183e99,_0x3dcc29);}this[_0x5848('0x100')](_0x5a3c2e,_0x495786,_0x400aff);}[_0x5848('0x100')](_0x28e70c,_0xd5cf94,_0x68da8f){for(const _0x47c3c7 of this['source']['getOperations'](_0x28e70c,_0xd5cf94))this[_0x5848('0x52')](_0x47c3c7,_0x68da8f);for(const _0x21a05c of this[_0x5848('0x27')][_0x5848('0x82')]())_0x21a05c[_0x5848('0xf8')][_0x5848('0x7')]();for(const [_0x589540,_0x2f245f]of this[_0x5848('0x33')]){this['_diffRoots']['get'](_0x2f245f[_0x5848('0x91')][_0x5848('0xda')])[_0x5848('0xf8')][_0x5848('0xf1')](_0x589540,_0x2f245f['clone']());}const _0x1e5439=new Map(),_0x2a4ae5=new Map();for(const [_0x372b77,_0x204426]of this['_diffRoots'])_0x1e5439[_0x5848('0xf1')](_0x372b77,B(_0x204426)),_0x2a4ae5['set'](_0x372b77,this[_0x5848('0x34')][_0x5848('0x53')](_0x372b77));this[_0x5848('0xcb')](_0xd5cf94,_0x1e5439,this[_0x5848('0x33')],_0x2a4ae5);}[_0x5848('0x72')](_0x49ed40){const _0x2fc8fa=Array[_0x5848('0xca')](this[_0x5848('0x63')][_0x5848('0x94')]());_0x2fc8fa['sort']((_0xb2c73e,_0x40b2ec)=>_0xb2c73e-_0x40b2ec),_0x2fc8fa[_0x5848('0xaf')]();for(const _0x7314e9 of _0x2fc8fa)if(_0x7314e9<_0x49ed40)return _0x7314e9;return Number['NEGATIVE_INFINITY'];}[_0x5848('0x4e')](_0x19342c,_0x4a1a18){const _0x151e50=Array[_0x5848('0xca')](_0x4a1a18[_0x5848('0xf8')])['map'](([_0x5726c2,_0x1dc0fe])=>[_0x5726c2,this[_0x5848('0x35')](_0x1dc0fe,_0x19342c)]);_0x19342c[_0x5848('0xf8')]=new Map(_0x151e50);}['_transformMarkers'](_0x1f0330){for(const _0x1ae008 of this[_0x5848('0x33')][_0x5848('0x82')]()){const _0x50149d=_0x1ae008[_0x5848('0x86')](_0x1f0330),_0x3fa2e9=_0x325215[_0x5848('0xc2')](_0x50149d);_0x1ae008[_0x5848('0xa6')]=_0x3fa2e9[_0x5848('0xa6')],_0x1ae008[_0x5848('0xc5')]=_0x3fa2e9[_0x5848('0xc5')];}}[_0x5848('0x52')](_0x29e121,_0x23ae0b){if('addRoot'==_0x29e121['type']||'detachRoot'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xfe')](_0x29e121,_0x23ae0b);if(_0x5848('0xb6')==_0x29e121['type']){const _0x507f98=_0x29e121[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')];this[_0x5848('0x27')][_0x5848('0x65')](_0x507f98)||(this[_0x5848('0x27')][_0x5848('0xf1')](_0x507f98,J(_0x507f98,!0x0)),this[_0x5848('0x34')][_0x5848('0xf1')](_0x507f98,{}),_0x23ae0b&&this[_0x5848('0xb7')]['set'](_0x507f98,J(_0x507f98,!0x0)));}if(_0x5848('0xff')==_0x29e121['type']||'removeRootAttribute'==_0x29e121[_0x5848('0x21')]||'changeRootAttribute'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xab')](_0x29e121);const _0x150237=this[_0x5848('0x3a')](_0x29e121,this[_0x5848('0x27')]);if(_0x5848('0xcd')!==_0x29e121[_0x5848('0x21')]&&(_0x150237[_0x5848('0xc0')](),this[_0x5848('0xfa')](_0x150237)),_0x23ae0b)switch(_0x150237[_0x5848('0x21')]){case _0x5848('0xb6'):this[_0x5848('0xe6')](_0x29e121);break;case _0x5848('0xfd'):case _0x5848('0xeb'):case _0x5848('0xbd'):this['_handleMoveOperation'](_0x29e121);break;case _0x5848('0x43'):this[_0x5848('0x67')](_0x29e121);break;case _0x5848('0xb1'):this[_0x5848('0x44')](_0x29e121);break;case'marker':this[_0x5848('0x36')](_0x29e121);}}[_0x5848('0x3a')](_0x130013,_0x48cffd){const _0x2ae05f=_0x130013[_0x5848('0x37')]();return _0x2ae05f['_authorId']=_0x130013[_0x5848('0x68')],this[_0x5848('0x84')](_0x2ae05f,_0x48cffd),_0x2ae05f;}[_0x5848('0xa0')](_0x4aa2f9){return _0x4aa2f9[_0x5848('0x51')](_0x4d36d1=>{const _0x310de0=this['_getVidAttributeName'](_0x4d36d1);return Number(_0x4d36d1[_0x5848('0xd6')][_0x5848('0x40')](_0x310de0));});}[_0x5848('0x18')](_0x5f575a,_0x400662){if(_0x5f575a['is'](_0x5848('0xde'),_0x5848('0xc4')))_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'text'});else{_0x5f575a['is']('element')&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'elementStart'});for(const _0x342a31 of _0x5f575a[_0x5848('0xf')]())this['_generateTape'](_0x342a31,_0x400662);_0x5f575a['is'](_0x5848('0xde'))&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':_0x5848('0x9d')});}return _0x400662;}['_getState'](){const _0xaf0202=new Map(this[_0x5848('0xf6')]),_0x1607f9=new Map(_0xaf0202),_0x3bab6f=new Map(),_0xd3cfb2={'insertions':{},'deletions':{}},_0xe03a61={'insertions':{},'deletions':{}},_0x93cea4=new Map(),_0xfdc68c=new Set([...this[_0x5848('0x7b')][_0x5848('0x94')](),...this[_0x5848('0x27')][_0x5848('0x94')]()]);_0xfdc68c[_0x5848('0xc')]('$graveyard');for(const _0x2093d4 of _0xfdc68c){const _0x1b7edf=this[_0x5848('0x27')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),_0x3d38da=this[_0x5848('0x7b')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1);_0x1b7edf['isAttached']()||_0x3d38da[_0x5848('0x5d')]()?(_0xd3cfb2[_0x5848('0xb2')][_0x2093d4]=B(_0x1b7edf),_0xd3cfb2[_0x5848('0x70')][_0x2093d4]=B(_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2['deletions'][_0x2093d4],_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2[_0x5848('0xb2')][_0x2093d4],_0x1b7edf),_0xe03a61[_0x5848('0xb2')][_0x2093d4]=this[_0x5848('0x18')](this['_idsRoots']['get'](_0x2093d4),[]),_0xe03a61[_0x5848('0x70')][_0x2093d4]=this[_0x5848('0x18')](this['_baseIdsRoots'][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),[])):_0xfdc68c['delete'](_0x2093d4);}for(const _0x5dd3ce of _0xfdc68c){const _0x585f05=_0xe03a61[_0x5848('0xb2')][_0x5dd3ce];for(const _0x12236f of _0x585f05){const _0x3081ef=this[_0x5848('0x4c')](_0x12236f),_0x46f284=_0x12236f[_0x5848('0xd6')][_0x5848('0x40')](_0x3081ef);_0x1607f9[_0x5848('0xc')](_0x46f284),_0x46f284>=this['_startingRevisionId']&&_0x3bab6f[_0x5848('0xf1')](_0x46f284,_0xaf0202[_0x5848('0x53')](_0x46f284));}}for(const _0x5f0c82 of _0xfdc68c){const _0x55d8b4=_0xe03a61[_0x5848('0xb2')][_0x5f0c82],_0x21b007=this['_getBaseVids'](_0xe03a61[_0x5848('0x70')][_0x5f0c82]);let _0x435e01=0x0;for(const _0x5e6522 of _0x55d8b4){const _0x2dcb58=this[_0x5848('0x4c')](_0x5e6522),_0x384f=_0x5e6522[_0x5848('0xd6')][_0x5848('0x40')](_0x2dcb58);if(!_0x3bab6f[_0x5848('0x65')](_0x384f)&&!_0x93cea4[_0x5848('0x65')](_0x384f)){if(_0x1607f9[_0x5848('0x65')](_0x384f))_0x435e01++;else{if(_0x384f!=_0x21b007[_0x435e01]){const _0x1fcf90=_0xaf0202['get'](_0x384f)||_0xaf0202['get'](_0x21b007[_0x435e01]);for(;_0x384f!=_0x21b007[_0x435e01];)_0x1607f9['has'](_0x21b007[_0x435e01])||(_0x93cea4[_0x5848('0xf1')](_0x21b007[_0x435e01],_0x1fcf90),_0xaf0202['set'](_0x21b007[_0x435e01],_0x1fcf90)),_0x435e01++;}_0x435e01++;}}}}for(const _0x3f4d13 of _0xfdc68c){const _0xcac51c=_0xe03a61[_0x5848('0xb2')][_0x3f4d13];for(const _0x55a87e of _0xcac51c){const _0x28591a=this[_0x5848('0x4c')](_0x55a87e),_0x26ea51=_0x55a87e[_0x5848('0xd6')][_0x5848('0x40')](_0x28591a);if(_0x93cea4[_0x5848('0x65')](_0x26ea51)){const _0x27f1d4=_0x93cea4['get'](_0x26ea51);_0x1607f9[_0x5848('0x65')](_0x26ea51)||_0x1607f9[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4}),_0x3bab6f[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4});}}}for(const _0x591466 of _0x1607f9[_0x5848('0x94')]())_0x591466>=this[_0x5848('0x5b')]&&_0x1607f9['delete'](_0x591466);const _0x17ca21=new Map();for(const _0x36ef5e of _0xfdc68c){let _0x4a6fdd=_0xe03a61['insertions'][_0x36ef5e];for(const _0x410333 of _0x4a6fdd)if(_0x410333[_0x5848('0xd6')]['is'](_0x5848('0xde'),_0x5848('0x57'))){const _0x99e570=this[_0x5848('0x4c')](_0x410333),_0x2c7e26=_0x410333[_0x5848('0xd6')][_0x5848('0x40')](_0x99e570);if(_0x3bab6f[_0x5848('0x65')](_0x2c7e26)){const _0x291290=_0x410333['item'][_0x5848('0x39')][_0x5848('0x39')]['getAttribute']('vid_start'),_0x2bfa59=_0x17ca21['get'](_0x291290)||new Set();_0x2bfa59['add'](_0x3bab6f['get'](_0x2c7e26)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x291290,_0x2bfa59);}}_0x4a6fdd=_0xe03a61[_0x5848('0x70')][_0x36ef5e];for(const _0x3c04da of _0x4a6fdd)if(_0x3c04da[_0x5848('0xd6')]['is'](_0x5848('0xde'),'tableCell')){const _0x1425d1=this[_0x5848('0x4c')](_0x3c04da),_0x590778=_0x3c04da[_0x5848('0xd6')][_0x5848('0x40')](_0x1425d1);if(_0x1607f9['has'](_0x590778)){const _0x3b3247=_0x3c04da['item'][_0x5848('0x39')][_0x5848('0x39')][_0x5848('0x40')]('vid_start'),_0x108e15=_0x17ca21[_0x5848('0x53')](_0x3b3247)||new Set();_0x108e15['add'](_0x1607f9[_0x5848('0x53')](_0x590778)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x3b3247,_0x108e15);}}for(const _0x5399bd of _0x17ca21['keys']())(_0x3bab6f[_0x5848('0x65')](_0x5399bd)||_0x1607f9[_0x5848('0x65')](_0x5399bd))&&_0x17ca21[_0x5848('0xc')](_0x5399bd);}for(const _0x30dfed of _0xfdc68c){const _0x22b9a2=_0xe03a61['insertions'][_0x30dfed];let _0x343536=null,_0x34cf67=null;for(const _0x397a39 of _0x22b9a2){const _0x7d2af2=this[_0x5848('0x4c')](_0x397a39),_0x247a7a=_0x397a39[_0x5848('0xd6')]['getAttribute'](_0x7d2af2),_0x394944=_0x17ca21['get'](_0x247a7a);_0x394944&&_0x5848('0x11')==_0x397a39['type']&&(_0x343536=Array[_0x5848('0xca')](_0x394944)[0x0],_0x34cf67=_0x397a39['item'][_0x5848('0x40')](_0x5848('0x56'))),_0x343536&&(_0x1607f9[_0x5848('0xf1')](_0x247a7a,{'userId':_0x343536}),_0x3bab6f['set'](_0x247a7a,{'userId':_0x343536})),_0x247a7a==_0x34cf67&&(_0x343536=null,_0x34cf67=null);}}const _0x56b9a0={},_0x59d97d=new Set();for(const _0x18c5bf of _0xfdc68c){const _0x458fcb=_0xd3cfb2['deletions'][_0x18c5bf],_0x18e975=_0xd3cfb2[_0x5848('0xb2')][_0x18c5bf];for(const {userId:_0x1bebef}of this['_touchedMarkers'][_0x5848('0x82')]())null!==_0x1bebef&&_0x59d97d['add'](_0x1bebef);for(const {userId:_0x46fb9c}of this['_touchedRoots'][_0x5848('0x82')]())null!==_0x46fb9c&&_0x59d97d['add'](_0x46fb9c);this[_0x5848('0xb8')](_0x18e975,_0xe03a61[_0x5848('0xb2')][_0x18c5bf],_0x3bab6f,'insertion',_0x59d97d),this[_0x5848('0xb8')](_0x458fcb,_0xe03a61['deletions'][_0x18c5bf],_0x1607f9,_0x5848('0x4a'),_0x59d97d),_0x56b9a0[_0x18c5bf]={'insertions':this[_0x5848('0x95')](_0x18e975),'deletions':this[_0x5848('0x95')](_0x458fcb),'attachChange':this[_0x5848('0x2b')][_0x5848('0x53')](_0x18c5bf)||null,'attributesBefore':_0x1a20f3(this['_baseRootsAttributes'][_0x5848('0x53')](_0x18c5bf))||{},'attributesAfter':_0x1a20f3(this[_0x5848('0x34')]['get'](_0x18c5bf))};}return{'diffData':_0x56b9a0,'authorsIds':Array['from'](_0x59d97d)};}['_processRootBeforeSave'](_0x178dc7){for(const [,_0x167ee2]of _0x178dc7[_0x5848('0xf8')]){const _0x3695ed=_0x167ee2[_0x5848('0xa6')][_0x5848('0xdf')]()[_0x5848('0x3f')](_0x147095=>'tableCell'==_0x147095[_0x5848('0x20')]);for(const _0x1f3891 of _0x3695ed)0x1==_0x1f3891['childCount']&&_0x1f3891[_0x5848('0xe')](0x0)['is']('element',_0x5848('0x75'))&&_0x1f3891['getChild'](0x0)[_0x5848('0x76')](_0x5848('0x2e'),!0x0);}}[_0x5848('0x95')](_0x4681d6){this[_0x5848('0xc3')](_0x4681d6);const _0x1681d0=this['editor'][_0x5848('0x7c')][_0x5848('0xf9')](_0x4681d6,{}),_0x2bae2a=Array[_0x5848('0xca')](_0x1681d0['getChildren']())[_0x5848('0x51')](_0x44284f=>this['_getViewJson'](_0x44284f));return JSON['stringify'](_0x2bae2a);}['_getViewJson'](_0x1fc4ec){if(_0x1fc4ec['is'](_0x5848('0xc4')))return _0x1fc4ec[_0x5848('0x7c')];{const _0x41836d=_0x1fc4ec;return{'type':Object['keys'](j)['find'](_0x13ca77=>_0x1fc4ec instanceof j[_0x13ca77]),'name':_0x41836d[_0x5848('0x20')],'attributes':Array[_0x5848('0xca')](_0x41836d[_0x5848('0x15')]()),'children':Array[_0x5848('0xca')](_0x41836d['getChildren']())[_0x5848('0x51')](_0x3972c4=>this['_getViewJson'](_0x3972c4))};}}['_markChanges'](_0x1d7f6b,_0x6a6c49,_0x95d36e,_0x86b9c0,_0x384f7d){let _0x11fd68=null,_0x51616b=null,_0x351c93=0x0;const _0x16967c=this[_0x5848('0xef')][_0x5848('0x8c')];for(let _0x1caab6=0x0;_0x1caab6<_0x6a6c49[_0x5848('0xd4')];_0x1caab6++){const _0x58984f=this['_getVidAttributeName'](_0x6a6c49[_0x1caab6]),_0x6e9da9=_0x6a6c49[_0x1caab6][_0x5848('0xd6')][_0x5848('0x40')](_0x58984f),_0x14f561=_0x95d36e[_0x5848('0x53')](_0x6e9da9),_0x597c71=_0x1caab6==_0x6a6c49[_0x5848('0xd4')]-0x1;(!_0x11fd68&&_0x14f561&&(_0x11fd68=_0x14f561,_0x51616b=_0x6a6c49[_0x1caab6]),_0x11fd68&&(!_0x14f561||_0x14f561[_0x5848('0x61')]!=_0x11fd68[_0x5848('0x61')]))&&(_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),H(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c)),_0x11fd68=_0x14f561||null,_0x51616b=_0x14f561?_0x6a6c49[_0x1caab6]:null),_0x11fd68&&_0x597c71&&_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),q(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c));}function _0x4580f6(_0x1959ed,_0x3af606,_0x122370){const _0x1bdc58=_0x11fd68[_0x5848('0x61')],_0x150bf9=_0x5848('0xf0')+_0x86b9c0+':'+_0x1bdc58+':'+_0x351c93++,_0x21df43=_0x16967c[_0x5848('0xf3')](_0x3af606,_0x122370);_0x1d7f6b[_0x5848('0xf8')][_0x5848('0xf1')](_0x150bf9,_0x21df43),null!==_0x1bdc58&&_0x384f7d[_0x5848('0x58')](_0x1bdc58);}}[_0x5848('0x4c')](_0x15b305){switch(_0x15b305[_0x5848('0x21')]){case _0x5848('0x11'):return _0x5848('0xe0');case _0x5848('0x9d'):return _0x5848('0x56');default:return'vid';}}['_fixOperation'](_0x203c29,_0x178a6b){_0x203c29['baseVersion']=null;for(const _0x116bf1 in _0x203c29){const _0x1662bf=_0x203c29[_0x116bf1];if(_0x1662bf instanceof _0x5cf6ce){const _0x5707de=_0x178a6b[_0x5848('0x53')](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x9e')](_0x1662bf,_0x5707de);}if(_0x1662bf instanceof _0x325215){const _0x47e539=_0x178a6b['get'](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x35')](_0x1662bf,_0x47e539);}_0x5848('0x91')===_0x116bf1&&(_0x203c29[_0x5848('0x91')]=_0x178a6b[_0x5848('0x53')](_0x203c29[_0x5848('0x91')][_0x5848('0xda')]));}}[_0x5848('0x35')](_0x50bfa1,_0x525f99){return this['editor']['model'][_0x5848('0xf3')](this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xa6')],_0x525f99),this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xc5')],_0x525f99));}[_0x5848('0x9e')](_0x348592,_0x17b3dc){return this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xa8')](_0x17b3dc,_0x348592[_0x5848('0x22')],_0x348592[_0x5848('0x42')]);}['_handleInsertOperation'](_0x1b44fa){const _0x3f6ed0=this[_0x5848('0xb7')][_0x5848('0x53')](_0x1b44fa[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')]),_0x13318d=this[_0x5848('0x9e')](_0x1b44fa[_0x5848('0x8')],_0x3f6ed0),_0x520dd7=null===_0x1b44fa['_authorId']?null:_0x1b44fa['_authorId']||this['editor']['plugins'][_0x5848('0x53')]('Users')['me']['id'],_0x4d052f=_0x13318d['parent'],_0x16d18e=this[_0x5848('0x64')],_0x3d1c68=[];for(const _0x373d8b of _0x1b44fa[_0x5848('0x6b')])if(_0x373d8b['is']('element'))_0x3d1c68[_0x5848('0x14')](this[_0x5848('0x78')](_0x373d8b));else for(let _0x46540a=0x0;_0x46540a<_0x373d8b['offsetSize'];_0x46540a++)_0x3d1c68['push'](new _0xff880d('$text',{'vid':this['_revisionId']++}));const _0x11c6c8=this[_0x5848('0x64')];for(let _0x2b1e37=_0x16d18e;_0x2b1e37<_0x11c6c8;_0x2b1e37++)this[_0x5848('0xf6')][_0x5848('0xf1')](_0x2b1e37,{'userId':_0x520dd7});_0x4d052f[_0x5848('0xd5')](_0x13318d['offset'],_0x3d1c68);}[_0x5848('0xbe')](_0x15329e){(_0x15329e=this[_0x5848('0x3a')](_0x15329e,this[_0x5848('0xb7')]))[_0x5848('0xc0')]();const _0x34f79b=null===_0x15329e[_0x5848('0x68')]?null:_0x15329e['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x1a23ef=_0x15329e['getMovedRangeStart'](),_0x3119b5=_0x1a23ef[_0x5848('0x39')],_0x9474ce=_0x1a23ef['offset'];!function _0x54a64e(_0x4a4cea,_0x2c68f8,_0x25e142,_0x5ec7e3){for(let _0x294934=_0x25e142;_0x294934<_0x5ec7e3;_0x294934++){const _0x22d496=_0x2c68f8[_0x5848('0xe')](_0x294934);_0x22d496['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xa7')),{'userId':_0x34f79b}):(_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x34f79b}),_0x54a64e(_0x4a4cea,_0x22d496,0x0,_0x22d496['childCount']),_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0x56')),{'userId':_0x34f79b}));}}(this[_0x5848('0xf6')],_0x3119b5,_0x9474ce,_0x9474ce+_0x15329e[_0x5848('0x90')]);}[_0x5848('0x67')](_0x2381c2){const _0x23ebe7=null===(_0x2381c2=this['_cloneOperation'](_0x2381c2,this[_0x5848('0xb7')]))['_authorId']?null:_0x2381c2[_0x5848('0x68')]||this['editor']['plugins']['get'](_0x5848('0xf7'))['me']['id'],_0x2d2306=_0x2381c2[_0x5848('0x6d')][_0x5848('0x39')],_0x4839fc=_0x2381c2['sourcePosition'][_0x5848('0x39')],_0x143f8a=_0x2d2306[_0x5848('0x40')](_0x5848('0x56')),_0x3e6737=_0x4839fc[_0x5848('0x40')](_0x5848('0xe0'));_0x2d2306[_0x5848('0x76')](_0x5848('0x56'),_0x4839fc[_0x5848('0x40')]('vid_end')),_0x4839fc[_0x5848('0x76')]('vid_end',_0x143f8a),this[_0x5848('0xf6')]['set'](_0x3e6737,{'userId':_0x23ebe7}),this[_0x5848('0xf6')]['set'](_0x143f8a,{'userId':_0x23ebe7}),_0x2381c2[_0x5848('0xc0')]();}['_handleSplitOperation'](_0x56da36){const _0x3e3a90=null===(_0x56da36=this[_0x5848('0x3a')](_0x56da36,this[_0x5848('0xb7')]))[_0x5848('0x68')]?null:_0x56da36['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')]['get'](_0x5848('0xf7'))['me']['id'],_0x5f22b3=_0x56da36[_0x5848('0x6c')],_0xefa9f6=_0x56da36[_0x5848('0xae')][_0x5848('0x39')];_0x56da36[_0x5848('0xc0')]();const _0x148be6=_0xefa9f6['getAttribute'](_0x5848('0x56')),_0x5d3580=_0x56da36['insertionPosition'][_0x5848('0x9b')];if(_0x5f22b3){const _0x1c74b5=_0x5d3580['getAttribute'](_0x5848('0x56')),_0x5e1f9b=_0xefa9f6[_0x5848('0x40')](_0x5848('0x56'));_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x1c74b5),_0x5d3580[_0x5848('0x76')]('vid_end',_0x5e1f9b),this[_0x5848('0xf6')][_0x5848('0xf1')](_0xefa9f6['getAttribute']('vid_end'),{'userId':_0x3e3a90}),this[_0x5848('0xf6')][_0x5848('0xf1')](_0x5d3580[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x3e3a90});}else{const _0x2f12d0=this[_0x5848('0x64')]++,_0x1d4787=this[_0x5848('0x64')]++;_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x2f12d0),_0x5d3580[_0x5848('0x76')]('vid_start',_0x1d4787),_0x5d3580[_0x5848('0x76')](_0x5848('0x56'),_0x148be6),this[_0x5848('0xf6')]['set'](_0x2f12d0,{'userId':_0x3e3a90}),this[_0x5848('0xf6')]['set'](_0x1d4787,{'userId':_0x3e3a90});}}[_0x5848('0x36')](_0x5c7f35){if(!_0x5c7f35[_0x5848('0xc7')])return;const _0x4b6fa9=(_0x5c7f35=this[_0x5848('0x3a')](_0x5c7f35,this[_0x5848('0x27')]))[_0x5848('0xdc')]?_0x5c7f35[_0x5848('0xdc')][_0x5848('0x91')]:null,_0x51f1cd=_0x5c7f35[_0x5848('0x1a')]?_0x5c7f35['newRange'][_0x5848('0x91')]:null;_0x4b6fa9&&this['_markers'][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]),_0x51f1cd&&this['_markers'][_0x5848('0xf1')](_0x5c7f35['name'],_0x5c7f35[_0x5848('0x1a')]['clone']());const _0x2ecc28=null===_0x5c7f35[_0x5848('0x68')]?null:_0x5c7f35['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x5dcdf9=_0x5c7f35[_0x5848('0x20')];if(!this[_0x5848('0xd0')]['has'](_0x5dcdf9))return void this[_0x5848('0xd0')][_0x5848('0xf1')](_0x5dcdf9,{'range':_0x5c7f35[_0x5848('0xdc')],'userId':_0x2ecc28});const _0x44a0a0=this[_0x5848('0xd0')][_0x5848('0x53')](_0x5dcdf9),_0x1dd533=_0x44a0a0[_0x5848('0x5')],_0x1d71bc=_0x5c7f35[_0x5848('0x1a')];null==_0x1dd533&&null==_0x1d71bc||_0x1dd533&&_0x1d71bc&&_0x1dd533[_0x5848('0x2d')](_0x1d71bc)?this[_0x5848('0xd0')][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]):_0x44a0a0[_0x5848('0x61')]=_0x2ecc28;}[_0x5848('0xfe')](_0x2e8d5d,_0x26830c){this[_0x5848('0x27')]['has'](_0x2e8d5d['rootName'])?this[_0x5848('0x27')]['get'](_0x2e8d5d[_0x5848('0xda')])[_0x5848('0x55')]=_0x2e8d5d[_0x5848('0x38')]:(this['_diffRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d[_0x5848('0xda')],!0x0)),this['_diffRootsAttributes'][_0x5848('0xf1')](_0x2e8d5d['rootName'],{}),_0x26830c&&this['_idsRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d['rootName'],!0x0)));const _0x45e843=null===_0x2e8d5d[_0x5848('0x68')]?null:_0x2e8d5d['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x2f5f48=this[_0x5848('0x2b')]['get'](_0x2e8d5d[_0x5848('0xda')]);_0x2f5f48&&_0x2f5f48[_0x5848('0x61')]===_0x45e843?this[_0x5848('0x2b')]['delete'](_0x2e8d5d[_0x5848('0xda')]):this[_0x5848('0x2b')][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],{'userId':_0x45e843,'isAttached':_0x2e8d5d[_0x5848('0x38')]});}[_0x5848('0xab')](_0xf0809d){const _0x43bcd8=this[_0x5848('0x34')][_0x5848('0x53')](_0xf0809d[_0x5848('0x91')][_0x5848('0xda')]);null===_0xf0809d[_0x5848('0x66')]?delete _0x43bcd8[_0xf0809d[_0x5848('0xa1')]]:_0x43bcd8[_0xf0809d[_0x5848('0xa1')]]=_0xf0809d[_0x5848('0x66')];}}function B(_0xf61e04){const _0x5d7896=J(_0xf61e04[_0x5848('0xda')],_0xf61e04['isAttached']());for(const _0x2b5200 of _0xf61e04[_0x5848('0xf')]()){const _0x47743a=_0x2b5200[_0x5848('0x6')](!0x0);_0x5d7896['_appendChild'](_0x47743a);}return _0x5d7896;}function J(_0x4a76fa,_0x510292=!0x0){const _0x1ea547=new _0x2edb62();return _0x1ea547[_0x5848('0xda')]=_0x4a76fa,_0x1ea547[_0x5848('0x55')]=_0x510292,_0x1ea547[_0x5848('0x5d')]=()=>_0x1ea547[_0x5848('0x55')],_0x1ea547;}function H(_0xb1dfac,_0x3c93ce,_0x47fdf2){const _0x4ac448=_0x5848('0x9d')==_0xb1dfac[_0x5848('0x21')]?_0x47fdf2[_0x5848('0x2f')](_0xb1dfac[_0x5848('0xd6')],'end'):_0x47fdf2[_0x5848('0x6e')](_0xb1dfac[_0x5848('0xd6')]);return _0x47fdf2['createPositionFromPath'](_0x3c93ce,_0x4ac448[_0x5848('0x22')],_0x4ac448['stickiness']);}function q(_0x52bdda,_0x2e7753,_0x28fcc0){const _0x4b7ba5=_0x5848('0x11')==_0x52bdda[_0x5848('0x21')]?_0x28fcc0['createPositionAt'](_0x52bdda['item'],0x0):_0x28fcc0[_0x5848('0xc6')](_0x52bdda['item']);return _0x28fcc0['createPositionFromPath'](_0x2e7753,_0x4b7ba5[_0x5848('0x22')],_0x4b7ba5['stickiness']);}