@ckeditor/ckeditor5-revision-history 39.0.1 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +6 -6
- package/README.md +11 -11
- package/build/revision-history.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/lang/translations/af.po +1 -0
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/bs.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de-ch.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en-gb.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es-co.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fa.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/jv.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/ku.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/ne.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/ug.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +6 -10
- package/src/augmentation.d.ts +29 -29
- package/src/changeitem.d.ts +58 -58
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +27 -27
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.d.ts +28 -28
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +43 -43
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +15 -15
- package/src/revision.d.ts +153 -153
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +24 -24
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +99 -99
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +64 -64
- package/src/revisionhistoryconfig.d.ts +60 -60
- package/src/revisionsrepository.d.ts +52 -52
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +81 -81
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +25 -25
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +5 -5
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +5 -5
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +95 -95
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +34 -34
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +5 -5
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +9 -9
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +11 -11
- package/src/utils/common-translations.js +1 -1
- package/theme/changesnavigation.css +9 -0
- package/theme/revision/revision.css +9 -0
- package/theme/revision/revisionactions.css +11 -0
- package/theme/revision/revisionauthor.css +9 -0
- package/theme/revision/revisionname.css +9 -0
- package/theme/revision/subrevision.css +9 -0
- package/theme/revision/subrevisioncollapser.css +9 -0
- package/theme/revisionhistorysaverevisionform.css +5 -1
- package/theme/revisionssidebar/revisionssidebar.css +9 -0
- package/theme/revisionssidebar/revisionssidebarheader.css +9 -0
- package/theme/revisionssidebar/revisionssidebartimeperiod.css +9 -0
- package/theme/revisionviewer.css +9 -0
- package/theme/revisionviewerloadingoverlay.css +9 -0
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2b01=['_update','map','stickiness','default','getNodeByPath','currentRevision','_createFromRanges','_baseRoots','revision-end','move','_getPreviousFrom','_loadedStateData','marker','vid','setSource','_bufferedUpdates','_continueCurrentRevision','_touchedRoots','_fixRange','isEqual','_initialRevisionId','config','update','getChildren','RealTimeCollaborationClient','_prepareViewToSave','Initial\x20revision','$graveyard','_removeMetaData','revision:','item','_makeRevision','_getVidAttributeName','for','getOperation','attachChange','_lastTo','getRootNames','size','getTime','_authorId','attributes','_createInitialRevision','howMany','position','model','addRevisionData','split','_reset','baseVersion','_addPendingAction','creatorId','_generateTape','affectsData','push','authorsIds','_handleMarkerOperation','createRevision','_cloneOperation','newRange','_handleRootOperation','processor','insert','source','_isAttached','_handleSplitOperation','_getState','max','_getViewJson','NEGATIVE_INFINITY','_removeRevisionMarkers','resolve','_processRootBeforeSave','childCount','_bufferUpdate','find','add','_clone','paragraph','sourcePosition','from','revision-start','collaboration.channelId','Users','sendBufferedUpdates','_handleRootAttributeOperation','useFillerType','initialData','previousPosition','keys','requires','_handleMergeOperation','newValue','vid_end','elementStart','isEnabled','children','_handleInsertOperation','_createCurrentRevision','view','getRange','$text','createdAt','dataDowncast','repository','clone','_baseRootsAttributes','fromVersion','element','finally','rootsAttributes','_appendChild','fromEntries','getAncestors','set','splitPosition','getRoot','remove','getRevisionRootsAttributes','length','_revisionId','createRange','bind','creator','RevisionTracker','_calculateMetaData','init','_idsRoots','editor','start','detachRoot','document','getLatestVersion','addRoot','buildRevisionData','_loadState','includes','getUser','reinsert','removeRootAttribute','forEach','upcast','_pendingAction','_startingRevisionId','editor-initial-data-replaced-with-revision-data','_applyOperations','tableCell','_getFromVersion','_isPendingUpdate','_makeModelFromViewString','_setAttribute','_makeIdsRoot','plugins','_findInsertionIndex','_transformMarkers','ready','isAttached','roots','adapter','getChild','toView','PendingActions','dataToMarker','root','_lastFrom','diffData','_loadRevisionData','editing','getAttribute','setRevisionData','userId','oldRange','delete','_isInit','getCurrentRevisionId','_copyMarkers','toVersion','attributesAfter','_touched','_fixPosition','data','PENDING_ACTION_REVISION_HISTORY','getRevision','_setConversion','slice','offsetSize','merge','key','_insertChild','vid_start','_touchedMarkers','_handleOperation','_diffRootsAttributes','parse','markerToData','_diffRoots','name','deletions','_saveMetaData','has','_startingVersion','loadState','then','changeRootAttribute','getRevisionDocumentData','clear','_baseIdsRoots','_execute','_savedMetaData','type','insertions','RevisionsRepository','toData','authors','shift','locale','getWalker','graveyardPosition','_getBaseVids','range','_markChanges','insertion','getRevisions','_operations','version','_markers','createPositionBefore','deletion','startsWith','markers','_removePendingAction','elementEnd','isReady','reInit','_revisionDataBuilder','_source','pluginName','isAdd','getAttributes','addRevision','getData','rootName','_replaceEditorDataWithRevisionData','_fixOperation','addRootAttribute','trim','path','end','parent','filter','_handleMoveOperation','values','history','reverse','get','offset','documentFragment','createPositionFromPath','string'];(function(_0x1274fb,_0x2b01af){const _0xe38960=function(_0x483bbe){while(--_0x483bbe){_0x1274fb['push'](_0x1274fb['shift']());}};_0xe38960(++_0x2b01af);}(_0x2b01,0xb1));const _0xe389=function(_0x1274fb,_0x2b01af){_0x1274fb=_0x1274fb-0x0;let _0xe38960=_0x2b01[_0x1274fb];return _0xe38960;};import{Users as _0x17d52b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x17299e,PendingActions as _0x2664ba}from'ckeditor5/src/core';import{logWarning as _0x58b9bf,uid as _0x32417b}from'ckeditor5/src/utils';import{Position as _0xcad0e,Range as _0x57b050,Element as _0x158621,DocumentFragment as _0x1576b0,ViewText as _0x105f45,ViewElement as _0x5dcad1,ViewContainerElement as _0x5f4c67,ViewAttributeElement as _0x30309c,ViewEmptyElement as _0x3159de,ViewRawElement as _0x41b9c9,ViewUIElement as _0x2622d0,ViewDocumentFragment as _0x4dc568}from'ckeditor5/src/engine';import _0xade6f9 from'./revisionsrepository';import{getTranslation as _0x280d66}from'./utils/common-translations';import{cloneDeep as _0x8b954a,isEqual as _0x9f05e}from'lodash-es';const B={'c':_0x5f4c67,'a':_0x30309c,'e':_0x3159de,'r':_0x41b9c9,'u':_0x2622d0};export default class l extends _0x17299e{static get[_0xe389('0x3b')](){return _0xe389('0xce');}static get[_0xe389('0xac')](){return[_0x17d52b,_0xade6f9,_0x2664ba];}constructor(_0x5e0b81){super(_0x5e0b81),this[_0xe389('0xf0')]=null,this[_0xe389('0x57')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0xe389('0x66')]=this['editor']['config'][_0xe389('0x4d')]('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this[_0xe389('0x5d')]=null;const _0x315d6a=_0x32417b();this[_0xe389('0x3a')]={'history':this[_0xe389('0xd2')][_0xe389('0x7f')]['document']['history'],'getLatestVersion':()=>Promise[_0xe389('0x99')](this['editor'][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0x2f')]),'getCurrentRevisionId':()=>_0x315d6a},this[_0xe389('0xc4')](_0xe389('0x37'),!0x1),this[_0xe389('0xc4')](_0xe389('0xb1'),!0x0),this[_0xe389('0xc4')]('_isPendingUpdate',!0x1),this[_0xe389('0xd2')][_0xe389('0x67')]['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xe389('0xd2')]['conversion'][_0xe389('0x73')](_0xe389('0xdf'))[_0xe389('0xf4')]({'view':'revision'});}[_0xe389('0xd0')](){this[_0xe389('0xba')]=this['editor'][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0x22')),this[_0xe389('0x6')](),this['editor'][_0xe389('0x3')]['on'](_0xe389('0xed'),()=>{const _0x9d7856=this[_0xe389('0xba')][_0xe389('0x5')](0x0),_0x561989=_0x9d7856&&null===_0x9d7856[_0xe389('0xcd')]?_0x9d7856:null;if(this[_0xe389('0x62')]=!!_0x561989&&this[_0xe389('0xd2')][_0xe389('0x67')][_0xe389('0x4d')]('revisionHistory.resumeUnsavedRevision'),this[_0xe389('0xd2')][_0xe389('0xea')]['has'](_0xe389('0x6a'))){const _0xb4e19b=this['_source'][_0xe389('0x100')](),_0x10b8b4=this['repository'][_0xe389('0x5')](_0xb4e19b);if(_0x10b8b4)this[_0xe389('0x17')]=_0x10b8b4[_0xe389('0xbd')],this[_0xe389('0x62')]=!0x1;else{const _0x499ed0=this[_0xe389('0x3a')][_0xe389('0x4b')][_0xe389('0x2e')]['find'](_0x1f22fa=>!_0x1f22fa[_0xe389('0xff')]),_0x104ddb=_0x499ed0?_0x499ed0[_0xe389('0x83')]:this[_0xe389('0x3a')][_0xe389('0x4b')][_0xe389('0x2f')];_0x9d7856?(_0x9d7856[_0xe389('0x102')]<_0x104ddb&&_0x9d7856[_0xe389('0x52')]({'toVersion':_0x104ddb}),this[_0xe389('0x62')]?(this[_0xe389('0x3a')][_0xe389('0x100')]=()=>_0x561989['id'],this[_0xe389('0x17')]=_0x561989[_0xe389('0xbd')]):(this[_0xe389('0x17')]=_0x9d7856['toVersion'],this[_0xe389('0x62')]=!0x1)):(this[_0xe389('0x17')]=_0x104ddb,this[_0xe389('0x62')]=!0x1);}}else _0x561989&&(this[_0xe389('0xd2')]['model']['document'][_0xe389('0x4b')][_0xe389('0x2f')]=Math[_0xe389('0x95')](_0x561989[_0xe389('0x102')],this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0x4b')][_0xe389('0x2f')]),_0x561989['fromVersion']===_0x561989['toVersion']?(0x0!==_0x561989[_0xe389('0xbd')]&&(this[_0xe389('0x3a')][_0xe389('0x100')]=()=>_0x561989['id']),this[_0xe389('0x62')]=!0x1):this['_continueCurrentRevision']&&(this[_0xe389('0x3a')]['getCurrentRevisionId']=()=>_0x561989['id'],this[_0xe389('0x17')]=_0x561989[_0xe389('0xbd')])),this[_0xe389('0x62')]||(this[_0xe389('0x17')]=this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0x2f')]);this[_0xe389('0x39')][_0xe389('0xd0')](this[_0xe389('0x3a')][_0xe389('0x4b')]),this[_0xe389('0x7c')](this[_0xe389('0x17')]),this[_0xe389('0xb4')](this[_0xe389('0x17')]),this[_0xe389('0xf0')]&&this[_0xe389('0xa6')]();}),this[_0xe389('0xcc')](_0xe389('0x37'))['to'](this,_0xe389('0xe6'),_0x568b61=>!_0x568b61);}async['afterInit'](){if(this[_0xe389('0xba')]['length']>0x0){const _0x3a479b=this[_0xe389('0xba')][_0xe389('0x5')](0x0),_0x1f5734=await this['getRevisionDocumentData'](_0x3a479b),_0x5cc22f=await this[_0xe389('0xc8')](_0x3a479b);this[_0xe389('0x41')](_0x1f5734,_0x5cc22f);}}[_0xe389('0x60')](_0x39addf){this[_0xe389('0x3a')]=_0x39addf;}async[_0xe389('0x68')](){const _0x4c4730=await this['_source'][_0xe389('0xd6')]();if(_0x4c4730>this[_0xe389('0x57')][_0xe389('0x102')]){await this['_loadState']();const _0x3893aa=this[_0xe389('0xd8')]({'revision':this[_0xe389('0x57')],'to':_0x4c4730});_0x3893aa[_0xe389('0x24')]=_0x3893aa[_0xe389('0x89')][_0xe389('0x53')](_0x5b46d6=>this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))[_0xe389('0xdb')](_0x5b46d6)),this[_0xe389('0x57')][_0xe389('0x52')](_0x3893aa);}}async[_0xe389('0xd9')](){this['_continueCurrentRevision']&&!this[_0xe389('0x5d')]&&(await this[_0xe389('0xf8')](this[_0xe389('0x57')]),this['_revisionDataBuilder'][_0xe389('0x18')](this[_0xe389('0x57')]),this[_0xe389('0x5d')]={'fromVersion':this[_0xe389('0x57')][_0xe389('0xbd')],'authors':this[_0xe389('0x57')]['authors'][_0xe389('0x7')]()});}async['saveRevision'](_0x1eada0={},_0x11a0f5=null){const _0x3f9c93=[];await this[_0xe389('0xd9')](),this[_0xe389('0x62')]=!0x1,_0x11a0f5>this[_0xe389('0x57')]['toVersion']&&(_0x11a0f5=null),null===_0x11a0f5&&(_0x11a0f5=await this[_0xe389('0x3a')][_0xe389('0xd6')]());const _0x1d7160=this[_0xe389('0xe5')](_0x11a0f5),_0x3ee97c=this[_0xe389('0xd8')]({'from':_0x1d7160,'to':_0x11a0f5});if(this['currentRevision'][_0xe389('0x102')]<_0x11a0f5){const _0x42d8f7=this[_0xe389('0xd8')]({'revision':this[_0xe389('0x57')],'from':_0x11a0f5,'to':_0x11a0f5});_0x42d8f7[_0xe389('0x24')]=[],_0x42d8f7['authorsIds']=[],_0x42d8f7['id']=this['currentRevision']['id'],this[_0xe389('0x57')][_0xe389('0x52')](_0x42d8f7,!0x0),delete _0x42d8f7[_0xe389('0x24')],_0x3f9c93[_0xe389('0x88')](_0x42d8f7);}_0x1eada0[_0xe389('0x85')]=this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x1eada0[_0xe389('0x13')]=_0x1eada0[_0xe389('0x13')]||null,_0x1eada0['id']=_0x1eada0['id']||_0x32417b(),_0x1eada0={..._0x1eada0,..._0x3ee97c};const _0x4e79da=this[_0xe389('0x80')](_0x1eada0);_0x3f9c93[_0xe389('0x88')](_0x1eada0);const _0x58c6d0=this['repository']['getIndex'](_0x4e79da);if(0x0!==_0x58c6d0){const _0x5299b3=this[_0xe389('0xba')][_0xe389('0x5')](_0x58c6d0-0x1);if(_0x5299b3[_0xe389('0xbd')]!==_0x11a0f5){const _0x30ad86=this[_0xe389('0x39')][_0xe389('0x3f')](_0x11a0f5,_0x5299b3['toVersion']),_0x1193f5={'id':_0x5299b3['id'],'diffData':_0x30ad86[_0xe389('0xf7')],'authorsIds':_0x30ad86['authorsIds'],'authors':_0x30ad86[_0xe389('0x89')][_0xe389('0x53')](_0x144ebc=>this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('Users')[_0xe389('0xdb')](_0x144ebc)),'fromVersion':_0x11a0f5};_0x5299b3===this[_0xe389('0x57')]&&(_0x1193f5[_0xe389('0xb8')]=new Date(_0x1eada0[_0xe389('0xb8')][_0xe389('0x79')]()+0xa)),_0x5299b3[_0xe389('0x52')](_0x1193f5,!0x0),delete _0x1193f5[_0xe389('0x24')],_0x3f9c93[_0xe389('0x88')](_0x1193f5);}}if(this[_0xe389('0xf0')]){for(const _0x21d029 of _0x3f9c93)this[_0xe389('0x9c')](_0x21d029['id'],_0x21d029,!0x0);this[_0xe389('0xa6')]();}return _0x4e79da;}[_0xe389('0x80')](_0x1ba137){const _0x5979a3=this[_0xe389('0xba')][_0xe389('0x8b')](_0x1ba137);return this[_0xe389('0xf0')]&&_0x5979a3['on'](_0xe389('0x52'),(_0x1683a3,_0x3c4ba9,_0x56a7d0)=>{_0x56a7d0||(this[_0xe389('0x9c')](_0x3c4ba9['id'],_0x3c4ba9,!0x0),this[_0xe389('0xa6')]());}),this[_0xe389('0xba')][_0xe389('0x3e')](_0x5979a3,this[_0xe389('0xeb')](_0x5979a3)),_0x5979a3;}async[_0xe389('0x1b')](_0x2f4ce2){await this[_0xe389('0xf8')](_0x2f4ce2);const _0x2bc07f={};for(const _0x4d0cd1 in _0x2f4ce2[_0xe389('0xf7')]){if(_0x2f4ce2[_0xe389('0xf7')][_0x4d0cd1][_0xe389('0x75')]&&!_0x2f4ce2[_0xe389('0xf7')][_0x4d0cd1]['attachChange']['isAttached'])continue;const _0x481492=this['_removeRevisionMarkers'](JSON[_0xe389('0x10')](_0x2f4ce2[_0xe389('0xf7')][_0x4d0cd1]['insertions'])),_0x47c47d=this[_0xe389('0xd2')][_0xe389('0xf9')][_0xe389('0xb5')][_0xe389('0xd5')],_0x492459=new _0x4dc568(_0x47c47d,_0x481492['map'](_0x30a771=>J(_0x30a771,this['editor'])));this[_0xe389('0xd2')][_0xe389('0x3')][_0xe389('0x8f')][_0xe389('0xa8')]('marked'),_0x2bc07f[_0x4d0cd1]=this['editor'][_0xe389('0x3')][_0xe389('0x8f')][_0xe389('0x23')](_0x492459),this[_0xe389('0xd2')][_0xe389('0x3')][_0xe389('0x8f')]['useFillerType'](_0xe389('0x55'));}return _0x2bc07f;}async['getRevisionRootsAttributes'](_0x39b1af){await this[_0xe389('0xf8')](_0x39b1af);const _0x3e17f7={};for(const _0x288ed7 in _0x39b1af[_0xe389('0xf7')])_0x39b1af[_0xe389('0xf7')][_0x288ed7]['attachChange']&&!_0x39b1af[_0xe389('0xf7')][_0x288ed7]['attachChange'][_0xe389('0xee')]||(_0x3e17f7[_0x288ed7]=_0x39b1af['diffData'][_0x288ed7][_0xe389('0x0')]||{});return _0x3e17f7;}[_0xe389('0xa6')](){if(0x0===this[_0xe389('0x61')]['size'])return;if(this[_0xe389('0xe6')])return;let _0x4fef4d=Array[_0xe389('0xa2')](this[_0xe389('0x61')][_0xe389('0x4a')]());this[_0xe389('0x61')][_0xe389('0x1c')]();for(let _0x5c1580=0x0;_0x5c1580<_0x4fef4d[_0xe389('0xc9')];_0x5c1580++){const _0x11e913=_0x4fef4d[_0x5c1580];let _0x76b7c7=!0x1;for(const _0x1cd5d4 of Object['keys'](_0x11e913))void 0x0===_0x11e913[_0x1cd5d4]?delete _0x11e913[_0x1cd5d4]:'id'!==_0x1cd5d4&&(_0x76b7c7=!0x0);_0x76b7c7||(_0x4fef4d[_0x5c1580]=null);}if(_0x4fef4d=_0x4fef4d['filter'](_0x32c2da=>null!==_0x32c2da),!_0x4fef4d['length'])return;for(let _0x5167d8=0x0;_0x5167d8<_0x4fef4d['length'];_0x5167d8++){const _0x4d6d6a=_0x4fef4d[_0x5167d8];void 0x0!==_0x4d6d6a[_0xe389('0xbd')]&&void 0x0===_0x4d6d6a[_0xe389('0x102')]&&(_0x4d6d6a['toVersion']=this[_0xe389('0xba')]['getRevision'](_0x4d6d6a['id'])[_0xe389('0x102')]),void 0x0!==_0x4d6d6a['toVersion']&&void 0x0===_0x4d6d6a[_0xe389('0xbd')]&&(_0x4d6d6a['fromVersion']=this[_0xe389('0xba')][_0xe389('0x5')](_0x4d6d6a['id'])[_0xe389('0xbd')]);}const _0x35c3cd=this[_0xe389('0xd2')][_0xe389('0x67')]['get'](_0xe389('0xa4'));this[_0xe389('0xe6')]=!0x0,this[_0xe389('0x84')](),this[_0xe389('0xf0')]['updateRevisions'](_0x4fef4d,_0x35c3cd)[_0xe389('0xbf')](()=>{this[_0xe389('0xe6')]=!0x1;})[_0xe389('0x19')](_0x793eec=>{if(_0x793eec)for(const _0x860ab6 of _0x793eec)this[_0xe389('0xfb')]({'id':_0x860ab6['id'],'createdAt':_0x860ab6[_0xe389('0xb8')]});this[_0xe389('0x35')](),this[_0xe389('0xa6')]();});}['_replaceEditorDataWithRevisionData'](_0x3884f4,_0x20ff6a){let _0x1e15bf=this[_0xe389('0xd2')][_0xe389('0x67')]['get']('initialData'),_0x4ec2da=this[_0xe389('0xd2')][_0xe389('0x67')][_0xe389('0x4d')](_0xe389('0xc0'));if(void 0x0===_0x1e15bf){_0x1e15bf={};for(const _0x498983 of this[_0xe389('0xd2')]['model'][_0xe389('0xd5')][_0xe389('0x77')]())_0x1e15bf[_0x498983]='';}if(_0xe389('0x51')==typeof _0x1e15bf&&(_0x1e15bf={'main':_0x1e15bf}),void 0x0===_0x4ec2da){_0x4ec2da={};for(const _0x28be12 of this[_0xe389('0xd2')]['model'][_0xe389('0xd5')][_0xe389('0x77')]())_0x4ec2da[_0x28be12]={};}let _0x4d12f5=!0x1;const _0x1279f4=Object[_0xe389('0xab')](_0x1e15bf),_0x1cc9ba=Object['keys'](_0x3884f4);for(const _0x49d92e of _0x1279f4){if(_0x1e15bf[_0x49d92e]!==_0x3884f4[_0x49d92e]&&''!==_0x1e15bf[_0x49d92e][_0xe389('0x44')]()){_0x4d12f5=!0x0;break;}if(!_0x9f05e(_0x4ec2da[_0x49d92e],_0x20ff6a[_0x49d92e])&&Object[_0xe389('0xab')](_0x4ec2da[_0x49d92e])[_0xe389('0xc9')]>0x0){_0x4d12f5=!0x0;break;}}_0x4d12f5||(_0x4d12f5=_0x1cc9ba['some'](_0x402a46=>!this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0xc6')](_0x402a46))),_0x4d12f5&&_0x58b9bf(_0xe389('0xe2'),{'editorData':_0x1e15bf,'editorRootsAttributes':_0x4ec2da,'revisionData':_0x3884f4,'revisionRootsAttributes':_0x20ff6a}),this[_0xe389('0xd2')]['config']['set'](_0xe389('0xa9'),_0x3884f4),this['editor'][_0xe389('0x67')][_0xe389('0xc4')](_0xe389('0xc0'),_0x20ff6a);}[_0xe389('0x84')](){if(!this[_0xe389('0xe0')]){const _0x433953=this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xf3'));this[_0xe389('0xe0')]=_0x433953[_0xe389('0x9e')](_0x280d66(this[_0xe389('0xd2')][_0xe389('0x26')],_0xe389('0x4')));}}[_0xe389('0x35')](){this[_0xe389('0xe0')]&&(this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('PendingActions')['remove'](this['_pendingAction']),this[_0xe389('0xe0')]=null);}['_findInsertionIndex'](_0x5bcf5a){const _0x1ce4ba=this[_0xe389('0xba')][_0xe389('0x2d')]();_0x1ce4ba[_0xe389('0x4c')]();let _0xfe37a=0x0;for(;_0xfe37a<_0x1ce4ba[_0xe389('0xc9')];){const _0x460ea9=_0x1ce4ba[_0xfe37a];if(_0x460ea9===this[_0xe389('0x57')]){_0xfe37a++;continue;}if(_0x460ea9['id']===this[_0xe389('0x66')])break;const _0x125efd=_0x5bcf5a['toVersion']-_0x460ea9['toVersion']||_0x5bcf5a[_0xe389('0xbd')]-_0x460ea9['fromVersion'];if(_0x125efd>0x0)break;if(_0x125efd<0x0)_0xfe37a++;else{if(!_0x5bcf5a['creator']&&_0x460ea9[_0xe389('0xcd')])break;if(_0x460ea9[_0xe389('0xcd')]||!_0x5bcf5a[_0xe389('0xcd')]){if(_0x5bcf5a[_0xe389('0xb8')]>_0x460ea9[_0xe389('0xb8')])break;_0xfe37a++;}else _0xfe37a++;}}return _0xfe37a;}[_0xe389('0xfb')](_0xabff73){const _0x47b00b=this['repository'][_0xe389('0x5')](_0xabff73['id']);if(_0xabff73[_0xe389('0xb8')]&&(_0xabff73[_0xe389('0xb8')]=new Date(_0xabff73[_0xe389('0xb8')])),_0xabff73[_0xe389('0x89')]){const _0x27f289=this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('Users');_0xabff73['authors']=_0xabff73[_0xe389('0x89')]['map'](_0x4bf83c=>_0x27f289['getUser'](_0x4bf83c));}_0x47b00b[_0xe389('0x52')](_0xabff73,!0x0);}['buildRevisionData']({revision:_0xde5719=null,from:_0x35d1db=null,to:_0x91f169=null}){_0x35d1db=null!==_0x35d1db?_0x35d1db:_0xde5719[_0xe389('0xbd')],_0x91f169=null!==_0x91f169?_0x91f169:_0xde5719['toVersion'];const _0x236511=this[_0xe389('0x39')][_0xe389('0x3f')](_0x35d1db,_0x91f169),_0x3be82f={'diffData':_0x236511[_0xe389('0xf7')],'authorsIds':_0x236511[_0xe389('0x89')],'fromVersion':_0x35d1db,'toVersion':_0x91f169};if(!_0xde5719||_0x91f169!==_0xde5719[_0xe389('0x102')]){const _0x24394b=_0x91f169-0x1,_0x54f296=this['_source'][_0xe389('0x4b')][_0xe389('0x74')](_0x24394b);_0x3be82f[_0xe389('0xb8')]=_0x54f296&&_0x54f296[_0xe389('0xb8')]||new Date();}if(this['_loadedStateData']&&_0x35d1db===this[_0xe389('0x5d')][_0xe389('0xbd')])for(const _0xe32c60 of this['_loadedStateData']['authors'])_0x3be82f[_0xe389('0x89')][_0xe389('0xda')](_0xe32c60['id'])||_0x3be82f['authorsIds'][_0xe389('0x88')](_0xe32c60['id']);return _0x3be82f;}['_loadRevisionData'](_0x5a530a){if(!_0x5a530a||_0x5a530a['diffData'])return Promise['resolve']();{const _0xfe695d=this[_0xe389('0xd2')][_0xe389('0x67')]['get'](_0xe389('0xa4'));return this[_0xe389('0xf0')][_0xe389('0x5')]({'channelId':_0xfe695d,'revisionId':_0x5a530a['id']})[_0xe389('0x19')](_0x38ca81=>{_0x5a530a['diffData']=_0x38ca81[_0xe389('0xf7')];});}}[_0xe389('0x9c')](_0x26017b,_0x2bd4e1,_0xbdcbb3){if(this[_0xe389('0x61')][_0xe389('0x16')](_0x26017b)){const _0x5cdb56=this['_bufferedUpdates']['get'](_0x26017b);_0x2bd4e1=_0xbdcbb3?{..._0x5cdb56,..._0x2bd4e1}:{..._0x2bd4e1,..._0x5cdb56};}this[_0xe389('0x61')][_0xe389('0xc4')](_0x26017b,_0x2bd4e1);}['_getFromVersion'](_0x170cc0){const _0x4b07a4=this['repository']['getRevisions']();_0x4b07a4[_0xe389('0x4c')](),_0x4b07a4[_0xe389('0x25')]();const _0x456b22=_0x4b07a4['find'](_0x10f98a=>_0x10f98a['toVersion']<=_0x170cc0)[_0xe389('0x102')];return _0x456b22<this[_0xe389('0x17')]?this[_0xe389('0x17')]:_0x456b22;}[_0xe389('0x7c')](_0x39951a){const _0x532cc9=this['repository'][_0xe389('0x5')](this['repository'][_0xe389('0xc9')]-0x1);if(_0x532cc9)this[_0xe389('0x66')]=_0x532cc9['id'];else{const _0x3f656d=!this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0xef')][_0xe389('0x9d')](_0x3c13f7=>this['editor'][_0xe389('0x7f')]['hasContent'](_0x3c13f7)),_0x54cf08=this[_0xe389('0xd2')][_0xe389('0xea')]['get'](_0xe389('0xa5'))['me']['id'],_0x2d807c=_0x280d66(this[_0xe389('0xd2')][_0xe389('0x26')],_0x3f656d?'Empty\x20document':_0xe389('0x6c'));this[_0xe389('0x71')]({'from':_0x39951a,'to':_0x39951a,'id':this['_initialRevisionId'],'name':_0x2d807c,'creatorId':_0x54cf08});}}[_0xe389('0xb4')](_0x17ec7f){const _0x29ceec=this[_0xe389('0x3a')]['getCurrentRevisionId']();this['currentRevision']=this[_0xe389('0xba')][_0xe389('0x5')](_0x29ceec),this[_0xe389('0x57')]||(this[_0xe389('0x57')]=this[_0xe389('0x71')]({'from':_0x17ec7f,'to':_0x17ec7f,'id':_0x29ceec,'name':'','creatorId':null}));}['_makeRevision']({name:_0x44a808,from:_0x53aea3,to:_0x542ee4,creatorId:_0x11838f,id:_0x22215d}){const _0xea6579=this[_0xe389('0xd8')]({'from':_0x53aea3,'to':_0x542ee4});_0xea6579[_0xe389('0x13')]=_0x44a808,_0xea6579[_0xe389('0x85')]=_0x11838f,_0xea6579['id']=_0x22215d;const _0xca606f=this[_0xe389('0x80')](_0xea6579);return this[_0xe389('0xf0')]&&this['_bufferUpdate'](_0xea6579['id'],_0xea6579,!0x0),_0xca606f;}[_0xe389('0x6')](){this[_0xe389('0xd2')]['conversion'][_0xe389('0x73')](_0xe389('0xb9'))[_0xe389('0x11')]({'model':'revision'});}['_removeRevisionMarkers'](_0x591930){return(_0x591930=_0x591930[_0xe389('0x48')](_0x5ecbff=>!_0x5ecbff['name']||_0xe389('0xa3')!==_0x5ecbff[_0xe389('0x13')]&&_0xe389('0x5a')!==_0x5ecbff[_0xe389('0x13')]))[_0xe389('0xde')](_0x4906df=>{'string'!=typeof _0x4906df&&(_0x4906df['children']=this[_0xe389('0x98')](_0x4906df['children']),_0x4906df['attributes']=_0x4906df['attributes']['filter'](_0x4621f2=>!_0x4621f2[0x0][_0xe389('0x33')]('data-revision-')));}),_0x591930;}}function J(_0x18ad4b,_0xd0a9ff){const _0x5b143b=_0xd0a9ff[_0xe389('0xf9')][_0xe389('0xb5')][_0xe389('0xd5')];if(_0xe389('0x51')==typeof _0x18ad4b)return new _0x105f45(_0x5b143b,_0x18ad4b);{const _0x3c81d7=_0x18ad4b[_0xe389('0xb2')][_0xe389('0x53')](_0xe35f61=>J(_0xe35f61,_0xd0a9ff));return new(B[_0x18ad4b[(_0xe389('0x20'))]]||_0x5dcad1)(_0x5b143b,_0x18ad4b[_0xe389('0x13')],_0x18ad4b[_0xe389('0x7b')],_0x3c81d7);}}class H{constructor(_0x39db62){this[_0xe389('0xd2')]=_0x39db62,this['_savedMetaData']=new Map(),this[_0xe389('0xf6')]=-0x1,this['_lastTo']=-0x1,this[_0xe389('0x30')]=new Map(),this[_0xe389('0x12')]=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xe389('0xd1')]=new Map(),this[_0xe389('0x1d')]=new Map(),this[_0xe389('0x1')]=new Map(),this[_0xe389('0xd')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0xe389('0xd0')](_0x4254cd){this['source']=_0x4254cd;const _0x529ebb=new Map(),_0x3f4fc3=new Map(),_0x58b834=this['editor'][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0xef')][_0xe389('0x53')](_0x4927ef=>_0x4927ef[_0xe389('0x40')]);for(const _0x485d4c of _0x58b834){const _0x175e5c=this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')]['getRoot'](_0x485d4c),_0x193b95=q(_0x175e5c);_0x529ebb[_0xe389('0xc4')](_0x485d4c,_0x193b95),_0x3f4fc3['set'](_0x485d4c,Object[_0xe389('0xc2')](_0x175e5c[_0xe389('0x3d')]()));}const _0xba91ff=Array['from'](this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0x34')])['map'](_0xac584=>[_0xac584[_0xe389('0x13')],_0xac584[_0xe389('0xb6')]()]),_0x3a8a67=this[_0xe389('0x91')][_0xe389('0x2f')];this['_saveMetaData'](_0x3a8a67,_0x529ebb,_0xba91ff,_0x3f4fc3),this[_0xe389('0xe1')]=this[_0xe389('0xca')];const _0x37731=new Map(),_0x5e6651=new Map();for(const _0x35d8b3 of _0x58b834){const _0x5a4ea5=G(_0x35d8b3);_0x37731['set'](_0x35d8b3,_0x5a4ea5),_0x5e6651['set'](_0x35d8b3,{});}this[_0xe389('0x15')](Number[_0xe389('0x97')],_0x37731,[],_0x5e6651);}[_0xe389('0x3f')](_0x324492,_0x79c588){if(this[_0xe389('0xf6')]===_0x324492&&this[_0xe389('0x76')]<=_0x79c588)this[_0xe389('0x1f')][_0xe389('0x78')]>0x1&&this[_0xe389('0x6e')](this[_0xe389('0x76')]),this[_0xe389('0xe3')](this[_0xe389('0x76')],_0x79c588,!0x0);else{if(!this[_0xe389('0x1f')]['has'](_0x324492)){const _0x2af40f=this['_getPreviousFrom'](_0x324492);this[_0xe389('0xcf')](_0x2af40f,_0x324492,!0x1);}this[_0xe389('0xcf')](_0x324492,_0x79c588,!0x0);}return this[_0xe389('0xf6')]=_0x324492,this[_0xe389('0x76')]=_0x79c588,this[_0xe389('0x94')]();}[_0xe389('0x18')](_0x3c596c){this[_0xe389('0x82')](),this[_0xe389('0xf6')]=_0x3c596c['fromVersion'],this[_0xe389('0x76')]=_0x3c596c[_0xe389('0x102')];for(const _0x1fe4c0 in _0x3c596c[_0xe389('0xf7')]){const _0xd93ba7=_0x3c596c['diffData'][_0x1fe4c0][_0xe389('0x75')],_0x3b67d0=_0x8b954a(_0x3c596c[_0xe389('0xf7')][_0x1fe4c0]['attributesBefore'])||{},_0x5efc51=this[_0xe389('0xe7')](_0x3c596c[_0xe389('0xf7')][_0x1fe4c0][_0xe389('0x14')]);_0x5efc51['rootName']=_0x1fe4c0,_0x5efc51[_0xe389('0x92')]=!_0xd93ba7||!_0xd93ba7[_0xe389('0xee')],_0x5efc51[_0xe389('0xee')]=()=>_0x5efc51[_0xe389('0x92')],this['_baseRoots'][_0xe389('0xc4')](_0x1fe4c0,_0x5efc51),this[_0xe389('0xbc')]['set'](_0x1fe4c0,_0x3b67d0),_0xd93ba7&&this[_0xe389('0x63')][_0xe389('0xc4')](_0x1fe4c0,_0xd93ba7);const _0x1b7d3b=this['_makeIdsRoot'](_0x5efc51);this[_0xe389('0x1d')]['set'](_0x1fe4c0,_0x1b7d3b);for(const [_0x249567,_0x2c8a70]of _0x5efc51['markers']){if(!_0x249567['startsWith'](_0xe389('0x6f')))continue;const _0xfb6a40=_0x249567[_0xe389('0x81')](':')[0x2];for(const _0x5229b8 of _0x2c8a70['getWalker']({'singleCharacters':!0x0})){const _0x8bea31=this['_getVidAttributeName'](_0x5229b8),_0x48532f=_0xe389('0x36')==_0x5229b8[_0xe389('0x20')]?_0x5229b8[_0xe389('0xaa')][_0xe389('0x45')][_0xe389('0x7')](0x0,-0x1):_0x5229b8[_0xe389('0xaa')][_0xe389('0x45')],_0x5eadd2=_0x1b7d3b[_0xe389('0x56')](_0x48532f)[_0xe389('0xfa')](_0x8bea31);this[_0xe389('0x1')]['set'](_0x5eadd2,{'userId':_0xfb6a40});}}}this[_0xe389('0xe1')]=this[_0xe389('0xca')];const _0x1cc0f0=[...Array(this[_0xe389('0xca')])[_0xe389('0xab')]()][_0xe389('0x7')](0x1)['filter'](_0x4dcf11=>!this[_0xe389('0x1')][_0xe389('0x16')](_0x4dcf11));let _0x383866=0x0;const _0x1af0d3=new Map();for(const _0x30b02c in _0x3c596c[_0xe389('0xf7')]){const _0x3ca9e1=_0x3c596c[_0xe389('0xf7')][_0x30b02c][_0xe389('0x75')],_0x427206=_0x8b954a(_0x3c596c['diffData'][_0x30b02c]['attributesAfter'])||{},_0x102e37=this[_0xe389('0xe7')](_0x3c596c[_0xe389('0xf7')][_0x30b02c]['insertions']);_0x102e37['rootName']=_0x30b02c,_0x102e37['_isAttached']=!_0x3ca9e1||_0x3ca9e1[_0xe389('0xee')],_0x102e37[_0xe389('0xee')]=()=>_0x102e37['_isAttached'],this[_0xe389('0x12')][_0xe389('0xc4')](_0x30b02c,_0x102e37),this[_0xe389('0xf')][_0xe389('0xc4')](_0x30b02c,_0x427206);const _0x4ae58a=this[_0xe389('0xe9')](_0x102e37,Number[_0xe389('0x97')]);this[_0xe389('0xd1')][_0xe389('0xc4')](_0x30b02c,_0x4ae58a),_0x1af0d3[_0xe389('0xc4')](_0x30b02c,_0x102e37[_0xe389('0xee')]()?_0x427206:{});for(const [_0xe8987,_0x409a28]of _0x102e37['markers']){if(!_0xe8987[_0xe389('0x33')](_0xe389('0x6f')))continue;const _0x1b3b58=_0xe8987['split'](':')[0x2];for(const _0x4e236e of _0x409a28[_0xe389('0x27')]({'singleCharacters':!0x0})){const _0x543aad=this[_0xe389('0x72')](_0x4e236e),_0x293138=this[_0xe389('0xca')]++,_0x11aac7=_0xe389('0x36')==_0x4e236e[_0xe389('0x20')]?_0x4e236e[_0xe389('0xaa')]['path'][_0xe389('0x7')](0x0,-0x1):_0x4e236e['previousPosition'][_0xe389('0x45')];_0x4ae58a['getNodeByPath'](_0x11aac7)['_setAttribute'](_0x543aad,_0x293138),this['_touched']['set'](_0x293138,{'userId':_0x1b3b58});}}for(const _0x2ddcc4 of this[_0xe389('0xd2')][_0xe389('0x7f')]['createRangeIn'](_0x102e37)[_0xe389('0x27')]({'singleCharacters':!0x0})){const _0x277cab=this[_0xe389('0x72')](_0x2ddcc4),_0x3e87ee=_0xe389('0x36')==_0x2ddcc4[_0xe389('0x20')]?_0x2ddcc4[_0xe389('0xaa')]['path'][_0xe389('0x7')](0x0,-0x1):_0x2ddcc4[_0xe389('0xaa')][_0xe389('0x45')],_0x4443e6=_0x4ae58a[_0xe389('0x56')](_0x3e87ee);_0x4443e6[_0xe389('0xfa')](_0x277cab)>0x0||_0x4443e6['_setAttribute'](_0x277cab,_0x1cc0f0[_0x383866++]);}for(const [_0xa8b2d2,_0x4b63ab]of _0x102e37[_0xe389('0x34')])_0xa8b2d2[_0xe389('0x33')](_0xe389('0x6f'))||this[_0xe389('0x30')][_0xe389('0xc4')](_0xa8b2d2,_0x4b63ab);}const _0x3a45b6=G(_0xe389('0x6d'));this[_0xe389('0x59')][_0xe389('0xc4')](_0xe389('0x6d'),_0x3a45b6),this['_baseIdsRoots'][_0xe389('0xc4')](_0xe389('0x6d'),this['_makeIdsRoot'](_0x3a45b6,0x1));const _0x27cdae=G(_0xe389('0x6d'));this[_0xe389('0x12')][_0xe389('0xc4')](_0xe389('0x6d'),_0x27cdae),this[_0xe389('0xd1')][_0xe389('0xc4')](_0xe389('0x6d'),this[_0xe389('0xe9')](_0x27cdae,0x1));const _0x212a0a=Array[_0xe389('0xa2')](this[_0xe389('0x12')])[_0xe389('0x53')](([_0x41ed5b,_0x3b1030])=>[_0x41ed5b,q(_0x3b1030)]);this[_0xe389('0x15')](this['_lastTo'],_0x212a0a,this['_markers'],_0x1af0d3);}['_makeModelFromViewString'](_0x31b51f){const _0x5e4a98=JSON[_0xe389('0x10')](_0x31b51f),_0x5c5db0=this[_0xe389('0xd2')]['editing'][_0xe389('0xb5')][_0xe389('0xd5')],_0x46b225=new _0x4dc568(_0x5c5db0,_0x5e4a98[_0xe389('0x53')](_0xc99f33=>J(_0xc99f33,this['editor'])));return this[_0xe389('0xd2')][_0xe389('0x3')]['toModel'](_0x46b225);}['_saveMetaData'](_0x1f8a5f,_0x2f4e83,_0x4e5677,_0x126384){const _0x128943=new Map(_0x2f4e83),_0x31c847=new Map(_0x8b954a(_0x126384)),_0x3b7506=new Map();for(const [_0x1cdffb,_0x1f499e]of _0x4e5677)_0x3b7506[_0xe389('0xc4')](_0x1cdffb,{'start':_0x1f499e[_0xe389('0xd3')][_0xe389('0xbb')](),'end':_0x1f499e[_0xe389('0x46')][_0xe389('0xbb')](),'rootName':_0x1f499e['root'][_0xe389('0x40')]});this[_0xe389('0x1f')][_0xe389('0xc4')](_0x1f8a5f,{'roots':_0x128943,'markers':_0x3b7506,'rootsAttributes':_0x31c847});}[_0xe389('0x6e')](_0x4a2fbd){this[_0xe389('0x1f')][_0xe389('0xfe')](_0x4a2fbd);}[_0xe389('0x38')](){this[_0xe389('0x82')](),this[_0xe389('0xf6')]=-0x1,this[_0xe389('0x76')]=-0x1,this['_savedMetaData'][_0xe389('0x1c')](),this[_0xe389('0xd0')](this['source']);}[_0xe389('0x82')](){this[_0xe389('0x1')][_0xe389('0x1c')](),this[_0xe389('0xd')][_0xe389('0x1c')](),this[_0xe389('0x63')][_0xe389('0x1c')](),this['_diffRoots']['clear'](),this[_0xe389('0xf')][_0xe389('0x1c')](),this[_0xe389('0x59')]['clear'](),this[_0xe389('0xbc')][_0xe389('0x1c')](),this['_idsRoots'][_0xe389('0x1c')](),this[_0xe389('0x1d')][_0xe389('0x1c')](),this['_markers'][_0xe389('0x1c')](),this[_0xe389('0xca')]=0x1,this['_startingRevisionId']=this[_0xe389('0xca')];}['_makeIdsRoot'](_0x44de50,_0x26d2ed=null){let _0x5b93ce=null;_0x44de50['is']('documentFragment')||(_0x5b93ce=new _0x158621(_0x44de50[_0xe389('0x13')],{'vid_start':null===_0x26d2ed?this['_revisionId']++:_0x26d2ed++}));const _0x42d7ef=[];for(const _0x11c3f5 of _0x44de50['getChildren']())if(_0x11c3f5['is'](_0xe389('0xbe'))){_0x42d7ef[_0xe389('0x88')](this[_0xe389('0xe9')](_0x11c3f5,_0x26d2ed));const _0x2f3805=_0x42d7ef[_0x42d7ef[_0xe389('0xc9')]-0x1];null!==_0x26d2ed&&(_0x26d2ed=_0x2f3805['is'](_0xe389('0xbe'),_0xe389('0xb7'))?_0x2f3805[_0xe389('0xfa')]('vid')+0x1:_0x2f3805[_0xe389('0xfa')](_0xe389('0xaf'))+0x1);}else for(let _0x443916=0x0;_0x443916<_0x11c3f5[_0xe389('0x8')];_0x443916++)_0x42d7ef['push'](new _0x158621(_0xe389('0xb7'),{'vid':null===_0x26d2ed?this[_0xe389('0xca')]++:_0x26d2ed++}));if(_0x44de50['is'](_0xe389('0x4f'))){const _0x17f43c=G(_0x44de50['rootName']);return _0x17f43c['_insertChild'](0x0,_0x42d7ef),_0x17f43c;}return _0x5b93ce[_0xe389('0xe8')](_0xe389('0xaf'),null===_0x26d2ed?this[_0xe389('0xca')]++:_0x26d2ed++),_0x5b93ce[_0xe389('0xb')](0x0,_0x42d7ef),_0x5b93ce;}[_0xe389('0xcf')](_0x4fe78c,_0x3ee659,_0x5a468b){this[_0xe389('0x82')]();const {roots:_0x1b95e0,markers:_0x513143,rootsAttributes:_0x124cef}=this[_0xe389('0x1f')][_0xe389('0x4d')](_0x4fe78c);this['_baseRoots']=new Map(_0x1b95e0),this[_0xe389('0xbc')]=new Map(_0x8b954a(_0x124cef));for(const [_0x29f36f,_0x30658b]of this[_0xe389('0x59')])if(_0xe389('0x6d')!==_0x29f36f&&(this[_0xe389('0x12')][_0xe389('0xc4')](_0x29f36f,q(_0x30658b)),this[_0xe389('0xf')]=new Map(_0x8b954a(_0x124cef)),_0x5a468b)){const _0x2ea9a5=this['_revisionId'];this[_0xe389('0xd1')][_0xe389('0xc4')](_0x29f36f,this[_0xe389('0xe9')](_0x30658b)),this[_0xe389('0x1d')]['set'](_0x29f36f,this[_0xe389('0xe9')](_0x30658b,_0x2ea9a5));}this[_0xe389('0xe1')]=this['_revisionId'],this['_diffRoots'][_0xe389('0xc4')](_0xe389('0x6d'),q(this[_0xe389('0x59')][_0xe389('0x4d')](_0xe389('0x6d')))),_0x5a468b&&this[_0xe389('0xd1')][_0xe389('0xc4')](_0xe389('0x6d'),this[_0xe389('0xe9')](this[_0xe389('0x59')][_0xe389('0x4d')]('$graveyard')));for(const [_0xf895f0,_0x665d89]of _0x513143){const _0x4b1c11=this[_0xe389('0x59')][_0xe389('0x4d')](_0x665d89[_0xe389('0x40')]),_0x4b5cb7=this[_0xe389('0x12')][_0xe389('0x4d')](_0x665d89[_0xe389('0x40')]),_0x41ab15=new _0x57b050(this[_0xe389('0x2')](_0x665d89[_0xe389('0xd3')],_0x4b1c11),this[_0xe389('0x2')](_0x665d89[_0xe389('0x46')],_0x4b1c11)),_0x54e6ab=this[_0xe389('0x64')](_0x41ab15,_0x4b5cb7);_0x4b1c11[_0xe389('0x34')][_0xe389('0xc4')](_0xf895f0,_0x41ab15),this[_0xe389('0x30')][_0xe389('0xc4')](_0xf895f0,_0x54e6ab);}this[_0xe389('0xe3')](_0x4fe78c,_0x3ee659,_0x5a468b);}['_applyOperations'](_0x579d79,_0x75c7a9,_0x437703){for(const _0xa3cfa8 of this[_0xe389('0x91')]['getOperations'](_0x579d79,_0x75c7a9))this[_0xe389('0xe')](_0xa3cfa8,_0x437703);for(const _0x57e08e of this['_diffRoots'][_0xe389('0x4a')]())_0x57e08e[_0xe389('0x34')][_0xe389('0x1c')]();for(const [_0x172f54,_0x3f7f6c]of this[_0xe389('0x30')]){this['_diffRoots'][_0xe389('0x4d')](_0x3f7f6c['root']['rootName'])[_0xe389('0x34')][_0xe389('0xc4')](_0x172f54,_0x3f7f6c[_0xe389('0xbb')]());}const _0x532786=new Map(),_0x35776b=new Map();for(const [_0x4d5dda,_0xbac8d2]of this[_0xe389('0x12')])_0x532786[_0xe389('0xc4')](_0x4d5dda,q(_0xbac8d2)),_0x35776b[_0xe389('0xc4')](_0x4d5dda,this[_0xe389('0xf')][_0xe389('0x4d')](_0x4d5dda));this[_0xe389('0x15')](_0x75c7a9,_0x532786,this[_0xe389('0x30')],_0x35776b);}[_0xe389('0x5c')](_0x48af47){const _0x2d0acf=Array[_0xe389('0xa2')](this[_0xe389('0x1f')][_0xe389('0xab')]());_0x2d0acf['sort']((_0x4bb45b,_0x2dc7f5)=>_0x4bb45b-_0x2dc7f5),_0x2d0acf[_0xe389('0x4c')]();for(const _0x5035f6 of _0x2d0acf)if(_0x5035f6<_0x48af47)return _0x5035f6;return Number[_0xe389('0x97')];}['_copyMarkers'](_0x571c1f,_0x3c5929){const _0xa9ab94=Array[_0xe389('0xa2')](_0x3c5929[_0xe389('0x34')])['map'](([_0x30e8a0,_0x586cc4])=>[_0x30e8a0,this['_fixRange'](_0x586cc4,_0x571c1f)]);_0x571c1f['markers']=new Map(_0xa9ab94);}[_0xe389('0xec')](_0x3ae52f){for(const _0x4a3bc0 of this['_markers']['values']()){const _0x136067=_0x4a3bc0['getTransformedByOperation'](_0x3ae52f),_0x59efc7=_0x57b050[_0xe389('0x58')](_0x136067);_0x4a3bc0[_0xe389('0xd3')]=_0x59efc7[_0xe389('0xd3')],_0x4a3bc0[_0xe389('0x46')]=_0x59efc7['end'];}}[_0xe389('0xe')](_0x20317b,_0x1614b4){if(_0xe389('0xd7')==_0x20317b[_0xe389('0x20')]||_0xe389('0xd4')==_0x20317b[_0xe389('0x20')])return void this['_handleRootOperation'](_0x20317b,_0x1614b4);if('insert'==_0x20317b[_0xe389('0x20')]){const _0xec9c65=_0x20317b[_0xe389('0x7e')]['root'][_0xe389('0x40')];this[_0xe389('0x12')][_0xe389('0x16')](_0xec9c65)||(this['_diffRoots']['set'](_0xec9c65,G(_0xec9c65,!0x0)),this['_diffRootsAttributes'][_0xe389('0xc4')](_0xec9c65,{}),_0x1614b4&&this[_0xe389('0xd1')]['set'](_0xec9c65,G(_0xec9c65,!0x0)));}else{if(_0xe389('0x43')==_0x20317b[_0xe389('0x20')]||_0xe389('0xdd')==_0x20317b[_0xe389('0x20')]||_0xe389('0x1a')==_0x20317b[_0xe389('0x20')])return void this[_0xe389('0xa7')](_0x20317b);}const _0x2b9e63=this['_cloneOperation'](_0x20317b,this['_diffRoots']);if('marker'!==_0x20317b[_0xe389('0x20')]&&(_0x2b9e63[_0xe389('0x1e')](),this[_0xe389('0xec')](_0x2b9e63)),_0x1614b4)switch(_0x2b9e63[_0xe389('0x20')]){case _0xe389('0x90'):this['_handleInsertOperation'](_0x20317b);break;case _0xe389('0x5b'):case _0xe389('0xc7'):case _0xe389('0xdc'):this[_0xe389('0x49')](_0x20317b);break;case _0xe389('0x9'):this['_handleMergeOperation'](_0x20317b);break;case'split':this[_0xe389('0x93')](_0x20317b);break;case _0xe389('0x5e'):this[_0xe389('0x8a')](_0x20317b);}}[_0xe389('0x8c')](_0x221095,_0x32dd19){const _0x23d766=_0x221095[_0xe389('0xbb')]();return _0x23d766[_0xe389('0x7a')]=_0x221095[_0xe389('0x7a')],this['_fixOperation'](_0x23d766,_0x32dd19),_0x23d766;}[_0xe389('0x29')](_0x252ab7){return _0x252ab7[_0xe389('0x53')](_0x25a915=>{const _0x49e815=this['_getVidAttributeName'](_0x25a915);return Number(_0x25a915[_0xe389('0x70')][_0xe389('0xfa')](_0x49e815));});}['_generateTape'](_0x152b1,_0x35d4bf){if(_0x152b1['is'](_0xe389('0xbe'),_0xe389('0xb7')))_0x35d4bf['push']({'item':_0x152b1,'type':'text'});else{_0x152b1['is'](_0xe389('0xbe'))&&_0x35d4bf[_0xe389('0x88')]({'item':_0x152b1,'type':_0xe389('0xb0')});for(const _0x572b11 of _0x152b1[_0xe389('0x69')]())this[_0xe389('0x86')](_0x572b11,_0x35d4bf);_0x152b1['is'](_0xe389('0xbe'))&&_0x35d4bf[_0xe389('0x88')]({'item':_0x152b1,'type':_0xe389('0x36')});}return _0x35d4bf;}['_getState'](){const _0x1454be=new Map(this[_0xe389('0x1')]),_0x1586c1=new Map(_0x1454be),_0x41cf00=new Map(),_0x1c97af={'insertions':{},'deletions':{}},_0x58e3bb={'insertions':{},'deletions':{}},_0x50c128=new Map(),_0x4a78ac=new Set([...this[_0xe389('0x59')]['keys'](),...this[_0xe389('0x12')][_0xe389('0xab')]()]);_0x4a78ac['delete']('$graveyard');for(const _0x1eaaab of _0x4a78ac){const _0x16ada2=this['_diffRoots'][_0xe389('0x4d')](_0x1eaaab)||G(_0x1eaaab,!0x1),_0x1a792e=this['_baseRoots']['get'](_0x1eaaab)||G(_0x1eaaab,!0x1);_0x16ada2['isAttached']()||_0x1a792e[_0xe389('0xee')]()?(_0x1c97af['insertions'][_0x1eaaab]=q(_0x16ada2),_0x1c97af[_0xe389('0x14')][_0x1eaaab]=q(_0x1a792e),this['_copyMarkers'](_0x1c97af['deletions'][_0x1eaaab],_0x1a792e),this[_0xe389('0x101')](_0x1c97af[_0xe389('0x21')][_0x1eaaab],_0x16ada2),_0x58e3bb[_0xe389('0x21')][_0x1eaaab]=this[_0xe389('0x86')](this['_idsRoots']['get'](_0x1eaaab),[]),_0x58e3bb[_0xe389('0x14')][_0x1eaaab]=this[_0xe389('0x86')](this[_0xe389('0x1d')][_0xe389('0x4d')](_0x1eaaab)||G(_0x1eaaab,!0x1),[])):_0x4a78ac['delete'](_0x1eaaab);}for(const _0x573970 of _0x4a78ac){const _0x7d3299=_0x58e3bb[_0xe389('0x21')][_0x573970];for(const _0x5f2bf4 of _0x7d3299){const _0x13d24a=this[_0xe389('0x72')](_0x5f2bf4),_0xd07fd3=_0x5f2bf4[_0xe389('0x70')][_0xe389('0xfa')](_0x13d24a);_0x1586c1[_0xe389('0xfe')](_0xd07fd3),_0xd07fd3>=this[_0xe389('0xe1')]&&_0x41cf00[_0xe389('0xc4')](_0xd07fd3,_0x1454be[_0xe389('0x4d')](_0xd07fd3));}}for(const _0x42c3a9 of _0x4a78ac){const _0x68ef3f=_0x58e3bb[_0xe389('0x21')][_0x42c3a9],_0x260405=this[_0xe389('0x29')](_0x58e3bb['deletions'][_0x42c3a9]);let _0x5502c7=0x0;for(const _0x5626de of _0x68ef3f){const _0x532967=this[_0xe389('0x72')](_0x5626de),_0x3e94e8=_0x5626de['item'][_0xe389('0xfa')](_0x532967);if(!_0x41cf00['has'](_0x3e94e8)&&!_0x50c128[_0xe389('0x16')](_0x3e94e8)){if(_0x1586c1[_0xe389('0x16')](_0x3e94e8))_0x5502c7++;else{if(_0x3e94e8!=_0x260405[_0x5502c7]){const _0x11a15f=_0x1454be[_0xe389('0x4d')](_0x3e94e8)||_0x1454be[_0xe389('0x4d')](_0x260405[_0x5502c7]);for(;_0x3e94e8!=_0x260405[_0x5502c7];)_0x1586c1[_0xe389('0x16')](_0x260405[_0x5502c7])||(_0x50c128[_0xe389('0xc4')](_0x260405[_0x5502c7],_0x11a15f),_0x1454be['set'](_0x260405[_0x5502c7],_0x11a15f)),_0x5502c7++;}_0x5502c7++;}}}}for(const _0x48c572 of _0x4a78ac){const _0x49576b=_0x58e3bb[_0xe389('0x21')][_0x48c572];for(const _0x12b452 of _0x49576b){const _0x20218a=this[_0xe389('0x72')](_0x12b452),_0x212e3b=_0x12b452['item'][_0xe389('0xfa')](_0x20218a);if(_0x50c128[_0xe389('0x16')](_0x212e3b)){const _0x40ef81=_0x50c128[_0xe389('0x4d')](_0x212e3b);_0x1586c1[_0xe389('0x16')](_0x212e3b)||_0x1586c1[_0xe389('0xc4')](_0x212e3b,{..._0x40ef81}),_0x41cf00[_0xe389('0xc4')](_0x212e3b,{..._0x40ef81});}}}for(const _0x328489 of _0x1586c1[_0xe389('0xab')]())_0x328489>=this[_0xe389('0xe1')]&&_0x1586c1[_0xe389('0xfe')](_0x328489);const _0x328dcb=new Map();for(const _0x507e70 of _0x4a78ac){let _0x343d72=_0x58e3bb['insertions'][_0x507e70];for(const _0x57e8d3 of _0x343d72)if(_0x57e8d3[_0xe389('0x70')]['is'](_0xe389('0xbe'),_0xe389('0xe4'))){const _0xe5da4a=this[_0xe389('0x72')](_0x57e8d3),_0x33851f=_0x57e8d3[_0xe389('0x70')]['getAttribute'](_0xe5da4a);if(_0x41cf00[_0xe389('0x16')](_0x33851f)){const _0x22abe6=_0x57e8d3[_0xe389('0x70')][_0xe389('0x47')][_0xe389('0x47')][_0xe389('0xfa')]('vid_start'),_0x29b16c=_0x328dcb[_0xe389('0x4d')](_0x22abe6)||new Set();_0x29b16c['add'](_0x41cf00[_0xe389('0x4d')](_0x33851f)[_0xe389('0xfc')]),_0x328dcb[_0xe389('0xc4')](_0x22abe6,_0x29b16c);}}_0x343d72=_0x58e3bb[_0xe389('0x14')][_0x507e70];for(const _0x51900b of _0x343d72)if(_0x51900b[_0xe389('0x70')]['is']('element',_0xe389('0xe4'))){const _0x3c9eb8=this['_getVidAttributeName'](_0x51900b),_0x3f546f=_0x51900b[_0xe389('0x70')][_0xe389('0xfa')](_0x3c9eb8);if(_0x1586c1[_0xe389('0x16')](_0x3f546f)){const _0x36d844=_0x51900b[_0xe389('0x70')]['parent'][_0xe389('0x47')]['getAttribute'](_0xe389('0xc')),_0x3f84cb=_0x328dcb['get'](_0x36d844)||new Set();_0x3f84cb[_0xe389('0x9e')](_0x1586c1['get'](_0x3f546f)[_0xe389('0xfc')]),_0x328dcb['set'](_0x36d844,_0x3f84cb);}}for(const _0x580a55 of _0x328dcb[_0xe389('0xab')]())(_0x41cf00[_0xe389('0x16')](_0x580a55)||_0x1586c1[_0xe389('0x16')](_0x580a55))&&_0x328dcb[_0xe389('0xfe')](_0x580a55);}for(const _0x411832 of _0x4a78ac){const _0x1367fc=_0x58e3bb[_0xe389('0x21')][_0x411832];let _0x4f28a8=null,_0x2776f6=null;for(const _0x3e23eb of _0x1367fc){const _0x1416cf=this[_0xe389('0x72')](_0x3e23eb),_0x1a1b2e=_0x3e23eb['item'][_0xe389('0xfa')](_0x1416cf),_0x1d65d7=_0x328dcb[_0xe389('0x4d')](_0x1a1b2e);_0x1d65d7&&_0xe389('0xb0')==_0x3e23eb['type']&&(_0x4f28a8=Array[_0xe389('0xa2')](_0x1d65d7)[0x0],_0x2776f6=_0x3e23eb[_0xe389('0x70')][_0xe389('0xfa')]('vid_end')),_0x4f28a8&&(_0x1586c1[_0xe389('0xc4')](_0x1a1b2e,{'userId':_0x4f28a8}),_0x41cf00['set'](_0x1a1b2e,{'userId':_0x4f28a8})),_0x1a1b2e==_0x2776f6&&(_0x4f28a8=null,_0x2776f6=null);}}const _0x2e8a0b={},_0xc1e1e0=new Set();for(const _0x54c823 of _0x4a78ac){const _0x1c0f32=_0x1c97af[_0xe389('0x14')][_0x54c823],_0x3a83f0=_0x1c97af[_0xe389('0x21')][_0x54c823];for(const {userId:_0x56ee07}of this[_0xe389('0xd')]['values']())null!==_0x56ee07&&_0xc1e1e0[_0xe389('0x9e')](_0x56ee07);for(const {userId:_0x170c07}of this['_touchedRoots']['values']())null!==_0x170c07&&_0xc1e1e0[_0xe389('0x9e')](_0x170c07);this[_0xe389('0x2b')](_0x3a83f0,_0x58e3bb[_0xe389('0x21')][_0x54c823],_0x41cf00,_0xe389('0x2c'),_0xc1e1e0),this['_markChanges'](_0x1c0f32,_0x58e3bb[_0xe389('0x14')][_0x54c823],_0x1586c1,_0xe389('0x32'),_0xc1e1e0),_0x2e8a0b[_0x54c823]={'insertions':this[_0xe389('0x6b')](_0x3a83f0),'deletions':this[_0xe389('0x6b')](_0x1c0f32),'attachChange':this['_touchedRoots'][_0xe389('0x4d')](_0x54c823)||null,'attributesBefore':_0x8b954a(this['_baseRootsAttributes'][_0xe389('0x4d')](_0x54c823))||{},'attributesAfter':_0x8b954a(this['_diffRootsAttributes'][_0xe389('0x4d')](_0x54c823))};}return{'diffData':_0x2e8a0b,'authorsIds':Array[_0xe389('0xa2')](_0xc1e1e0)};}[_0xe389('0x9a')](_0x12e1f4){for(const [,_0x1948bc]of _0x12e1f4['markers']){const _0x4d03ce=_0x1948bc[_0xe389('0xd3')][_0xe389('0xc3')]()[_0xe389('0x48')](_0x3aac9f=>_0xe389('0xe4')==_0x3aac9f['name']);for(const _0xd02c75 of _0x4d03ce)0x1==_0xd02c75['childCount']&&_0xd02c75['getChild'](0x0)['is'](_0xe389('0xbe'),_0xe389('0xa0'))&&_0xd02c75['getChild'](0x0)[_0xe389('0xe8')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x8a89bd){this['_processRootBeforeSave'](_0x8a89bd);const _0xf3638e=this['editor'][_0xe389('0x3')][_0xe389('0xf2')](_0x8a89bd,{}),_0x3625de=Array[_0xe389('0xa2')](_0xf3638e[_0xe389('0x69')]())[_0xe389('0x53')](_0x24a1a5=>this[_0xe389('0x96')](_0x24a1a5));return JSON['stringify'](_0x3625de);}['_getViewJson'](_0x58b869){if(_0x58b869['is'](_0xe389('0xb7')))return _0x58b869[_0xe389('0x3')];{const _0x18e608=_0x58b869;return{'type':Object[_0xe389('0xab')](B)['find'](_0x34f247=>_0x58b869 instanceof B[_0x34f247]),'name':_0x18e608['name'],'attributes':Array[_0xe389('0xa2')](_0x18e608[_0xe389('0x3d')]()),'children':Array['from'](_0x18e608[_0xe389('0x69')]())[_0xe389('0x53')](_0x3500ff=>this['_getViewJson'](_0x3500ff))};}}['_markChanges'](_0x46a9cd,_0x329a1c,_0x3f562f,_0x5e3dc7,_0x581b72){let _0x341ca1=null,_0x56c1fc=null,_0x529c2c=0x0;const _0x2edf9c=this['editor'][_0xe389('0x7f')];for(let _0x368111=0x0;_0x368111<_0x329a1c[_0xe389('0xc9')];_0x368111++){const _0x47cb5d=this['_getVidAttributeName'](_0x329a1c[_0x368111]),_0x577883=_0x329a1c[_0x368111][_0xe389('0x70')]['getAttribute'](_0x47cb5d),_0x85f05c=_0x3f562f[_0xe389('0x4d')](_0x577883),_0x37845b=_0x368111==_0x329a1c[_0xe389('0xc9')]-0x1;(!_0x341ca1&&_0x85f05c&&(_0x341ca1=_0x85f05c,_0x56c1fc=_0x329a1c[_0x368111]),_0x341ca1&&(!_0x85f05c||_0x85f05c[_0xe389('0xfc')]!=_0x341ca1[_0xe389('0xfc')]))&&(_0x250833(_0x85f05c,L(_0x56c1fc,_0x46a9cd,_0x2edf9c),L(_0x329a1c[_0x368111],_0x46a9cd,_0x2edf9c)),_0x341ca1=_0x85f05c||null,_0x56c1fc=_0x85f05c?_0x329a1c[_0x368111]:null),_0x341ca1&&_0x37845b&&_0x250833(_0x85f05c,L(_0x56c1fc,_0x46a9cd,_0x2edf9c),W(_0x329a1c[_0x368111],_0x46a9cd,_0x2edf9c));}function _0x250833(_0x1c883e,_0x4a8c82,_0x22af6d){const _0x1f46ad=_0x341ca1[_0xe389('0xfc')],_0x3a3ad0='revision:'+_0x5e3dc7+':'+_0x1f46ad+':'+_0x529c2c++,_0x2edf94=_0x2edf9c[_0xe389('0xcb')](_0x4a8c82,_0x22af6d);_0x46a9cd[_0xe389('0x34')]['set'](_0x3a3ad0,_0x2edf94),null!==_0x1f46ad&&_0x581b72[_0xe389('0x9e')](_0x1f46ad);}}[_0xe389('0x72')](_0x431fe7){switch(_0x431fe7[_0xe389('0x20')]){case _0xe389('0xb0'):return _0xe389('0xc');case _0xe389('0x36'):return _0xe389('0xaf');default:return'vid';}}[_0xe389('0x42')](_0x5dd053,_0x48969d){_0x5dd053[_0xe389('0x83')]=null;for(const _0x5888e3 in _0x5dd053){const _0x1e3ada=_0x5dd053[_0x5888e3];if(_0x1e3ada instanceof _0xcad0e){const _0x1d5bc9=_0x48969d['get'](_0x1e3ada[_0xe389('0xf5')]['rootName']);_0x5dd053[_0x5888e3]=this['_fixPosition'](_0x1e3ada,_0x1d5bc9);}if(_0x1e3ada instanceof _0x57b050){const _0x113d53=_0x48969d[_0xe389('0x4d')](_0x1e3ada['root']['rootName']);_0x5dd053[_0x5888e3]=this[_0xe389('0x64')](_0x1e3ada,_0x113d53);}_0xe389('0xf5')===_0x5888e3&&(_0x5dd053[_0xe389('0xf5')]=_0x48969d[_0xe389('0x4d')](_0x5dd053['root']['rootName']));}}[_0xe389('0x64')](_0x544a87,_0x295bf5){return this['editor'][_0xe389('0x7f')][_0xe389('0xcb')](this[_0xe389('0x2')](_0x544a87['start'],_0x295bf5),this[_0xe389('0x2')](_0x544a87[_0xe389('0x46')],_0x295bf5));}['_fixPosition'](_0x52426e,_0x25c244){return this[_0xe389('0xd2')][_0xe389('0x7f')]['createPositionFromPath'](_0x25c244,_0x52426e[_0xe389('0x45')],_0x52426e[_0xe389('0x54')]);}[_0xe389('0xb3')](_0x1abbe6){const _0x56915e=this[_0xe389('0xd1')]['get'](_0x1abbe6[_0xe389('0x7e')]['root'][_0xe389('0x40')]),_0x58a6c8=this['_fixPosition'](_0x1abbe6[_0xe389('0x7e')],_0x56915e),_0xa5e6ad=null===_0x1abbe6[_0xe389('0x7a')]?null:_0x1abbe6['_authorId']||this['editor'][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x17369e=_0x58a6c8[_0xe389('0x47')],_0x518b3e=this[_0xe389('0xca')],_0x5caae6=[];for(const _0x10667d of _0x1abbe6['nodes'])if(_0x10667d['is'](_0xe389('0xbe')))_0x5caae6['push'](this['_makeIdsRoot'](_0x10667d));else for(let _0x6e62f8=0x0;_0x6e62f8<_0x10667d[_0xe389('0x8')];_0x6e62f8++)_0x5caae6[_0xe389('0x88')](new _0x158621(_0xe389('0xb7'),{'vid':this['_revisionId']++}));const _0x127641=this[_0xe389('0xca')];for(let _0x2621f=_0x518b3e;_0x2621f<_0x127641;_0x2621f++)this[_0xe389('0x1')]['set'](_0x2621f,{'userId':_0xa5e6ad});_0x17369e[_0xe389('0xb')](_0x58a6c8['offset'],_0x5caae6);}[_0xe389('0x49')](_0xae1e33){(_0xae1e33=this[_0xe389('0x8c')](_0xae1e33,this[_0xe389('0xd1')]))['_execute']();const _0x5aece8=null===_0xae1e33[_0xe389('0x7a')]?null:_0xae1e33[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x198000=_0xae1e33['getMovedRangeStart'](),_0x357838=_0x198000[_0xe389('0x47')],_0x37d481=_0x198000[_0xe389('0x4e')];!function _0x52bb8e(_0x111a3e,_0x287f4d,_0x68784f,_0x4d9085){for(let _0x3c29bc=_0x68784f;_0x3c29bc<_0x4d9085;_0x3c29bc++){const _0x51e143=_0x287f4d[_0xe389('0xf1')](_0x3c29bc);_0x51e143['is'](_0xe389('0xbe'),_0xe389('0xb7'))?_0x111a3e[_0xe389('0xc4')](_0x51e143[_0xe389('0xfa')](_0xe389('0x5f')),{'userId':_0x5aece8}):(_0x111a3e[_0xe389('0xc4')](_0x51e143[_0xe389('0xfa')](_0xe389('0xc')),{'userId':_0x5aece8}),_0x52bb8e(_0x111a3e,_0x51e143,0x0,_0x51e143[_0xe389('0x9b')]),_0x111a3e['set'](_0x51e143[_0xe389('0xfa')](_0xe389('0xaf')),{'userId':_0x5aece8}));}}(this[_0xe389('0x1')],_0x357838,_0x37d481,_0x37d481+_0xae1e33[_0xe389('0x7d')]);}[_0xe389('0xad')](_0x2deefc){const _0x212277=null===(_0x2deefc=this['_cloneOperation'](_0x2deefc,this[_0xe389('0xd1')]))[_0xe389('0x7a')]?null:_0x2deefc[_0xe389('0x7a')]||this[_0xe389('0xd2')]['plugins']['get'](_0xe389('0xa5'))['me']['id'],_0x5315b4=_0x2deefc['targetPosition'][_0xe389('0x47')],_0x37dc90=_0x2deefc[_0xe389('0xa1')][_0xe389('0x47')],_0x395863=_0x5315b4[_0xe389('0xfa')]('vid_end'),_0x749fa6=_0x37dc90[_0xe389('0xfa')](_0xe389('0xc'));_0x5315b4[_0xe389('0xe8')]('vid_end',_0x37dc90['getAttribute']('vid_end')),_0x37dc90[_0xe389('0xe8')](_0xe389('0xaf'),_0x395863),this[_0xe389('0x1')]['set'](_0x749fa6,{'userId':_0x212277}),this[_0xe389('0x1')]['set'](_0x395863,{'userId':_0x212277}),_0x2deefc[_0xe389('0x1e')]();}[_0xe389('0x93')](_0x34c5fb){const _0x1e035a=null===(_0x34c5fb=this[_0xe389('0x8c')](_0x34c5fb,this[_0xe389('0xd1')]))[_0xe389('0x7a')]?null:_0x34c5fb[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('Users')['me']['id'],_0x5be021=_0x34c5fb[_0xe389('0x28')],_0x28c21f=_0x34c5fb[_0xe389('0xc5')][_0xe389('0x47')];_0x34c5fb[_0xe389('0x1e')]();const _0x30acdb=_0x28c21f[_0xe389('0xfa')]('vid_end'),_0x4f5aca=_0x34c5fb['insertionPosition']['nodeAfter'];if(_0x5be021){const _0x33e605=_0x4f5aca[_0xe389('0xfa')](_0xe389('0xaf')),_0x459a6b=_0x28c21f['getAttribute'](_0xe389('0xaf'));_0x28c21f[_0xe389('0xe8')](_0xe389('0xaf'),_0x33e605),_0x4f5aca[_0xe389('0xe8')](_0xe389('0xaf'),_0x459a6b),this[_0xe389('0x1')][_0xe389('0xc4')](_0x28c21f[_0xe389('0xfa')]('vid_end'),{'userId':_0x1e035a}),this[_0xe389('0x1')][_0xe389('0xc4')](_0x4f5aca[_0xe389('0xfa')](_0xe389('0xc')),{'userId':_0x1e035a});}else{const _0x4b06fa=this[_0xe389('0xca')]++,_0x333f37=this[_0xe389('0xca')]++;_0x28c21f[_0xe389('0xe8')](_0xe389('0xaf'),_0x4b06fa),_0x4f5aca[_0xe389('0xe8')](_0xe389('0xc'),_0x333f37),_0x4f5aca[_0xe389('0xe8')](_0xe389('0xaf'),_0x30acdb),this['_touched']['set'](_0x4b06fa,{'userId':_0x1e035a}),this[_0xe389('0x1')][_0xe389('0xc4')](_0x333f37,{'userId':_0x1e035a});}}[_0xe389('0x8a')](_0x508dbb){if(!_0x508dbb[_0xe389('0x87')])return;const _0x45be6b=(_0x508dbb=this[_0xe389('0x8c')](_0x508dbb,this[_0xe389('0x12')]))[_0xe389('0xfd')]?_0x508dbb[_0xe389('0xfd')][_0xe389('0xf5')]:null,_0x4c1d78=_0x508dbb['newRange']?_0x508dbb['newRange'][_0xe389('0xf5')]:null;_0x45be6b&&this['_markers']['delete'](_0x508dbb[_0xe389('0x13')]),_0x4c1d78&&this[_0xe389('0x30')][_0xe389('0xc4')](_0x508dbb[_0xe389('0x13')],_0x508dbb[_0xe389('0x8d')][_0xe389('0xbb')]());const _0x59cc61=null===_0x508dbb[_0xe389('0x7a')]?null:_0x508dbb[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x17511b=_0x508dbb[_0xe389('0x13')];if(!this[_0xe389('0xd')][_0xe389('0x16')](_0x17511b))return void this[_0xe389('0xd')][_0xe389('0xc4')](_0x17511b,{'range':_0x508dbb['oldRange'],'userId':_0x59cc61});const _0x55c37c=this[_0xe389('0xd')]['get'](_0x17511b),_0x3c3bf7=_0x55c37c[_0xe389('0x2a')],_0x42e997=_0x508dbb[_0xe389('0x8d')];null==_0x3c3bf7&&null==_0x42e997||_0x3c3bf7&&_0x42e997&&_0x3c3bf7[_0xe389('0x65')](_0x42e997)?this['_touchedMarkers']['delete'](_0x508dbb['name']):_0x55c37c[_0xe389('0xfc')]=_0x59cc61;}[_0xe389('0x8e')](_0x212470,_0x461ac6){this[_0xe389('0x12')]['has'](_0x212470[_0xe389('0x40')])?this['_diffRoots'][_0xe389('0x4d')](_0x212470[_0xe389('0x40')])[_0xe389('0x92')]=_0x212470[_0xe389('0x3c')]:(this[_0xe389('0x12')][_0xe389('0xc4')](_0x212470['rootName'],G(_0x212470[_0xe389('0x40')],!0x0)),this['_diffRootsAttributes']['set'](_0x212470[_0xe389('0x40')],{}),_0x461ac6&&this[_0xe389('0xd1')][_0xe389('0xc4')](_0x212470[_0xe389('0x40')],G(_0x212470[_0xe389('0x40')],!0x0)));const _0x4efd84=null===_0x212470[_0xe389('0x7a')]?null:_0x212470[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0xa2454c=this[_0xe389('0x63')][_0xe389('0x4d')](_0x212470['rootName']);_0xa2454c&&_0xa2454c[_0xe389('0xfc')]===_0x4efd84?this[_0xe389('0x63')][_0xe389('0xfe')](_0x212470[_0xe389('0x40')]):this[_0xe389('0x63')][_0xe389('0xc4')](_0x212470['rootName'],{'userId':_0x4efd84,'isAttached':_0x212470[_0xe389('0x3c')]});}['_handleRootAttributeOperation'](_0xc75fbd){const _0x455aa0=this[_0xe389('0xf')][_0xe389('0x4d')](_0xc75fbd[_0xe389('0xf5')][_0xe389('0x40')]);null===_0xc75fbd['newValue']?delete _0x455aa0[_0xc75fbd[_0xe389('0xa')]]:_0x455aa0[_0xc75fbd[_0xe389('0xa')]]=_0xc75fbd[_0xe389('0xae')];}}function q(_0x1f106e){const _0x41d786=G(_0x1f106e[_0xe389('0x40')],_0x1f106e[_0xe389('0xee')]());for(const _0x1f460b of _0x1f106e[_0xe389('0x69')]()){const _0x1deeba=_0x1f460b[_0xe389('0x9f')](!0x0);_0x41d786[_0xe389('0xc1')](_0x1deeba);}return _0x41d786;}function G(_0x20b463,_0x543bde=!0x0){const _0x188f4f=new _0x1576b0();return _0x188f4f[_0xe389('0x40')]=_0x20b463,_0x188f4f['_isAttached']=_0x543bde,_0x188f4f['isAttached']=()=>_0x188f4f[_0xe389('0x92')],_0x188f4f;}function L(_0x579db5,_0x38af62,_0x41cf32){const _0x15e511=_0xe389('0x36')==_0x579db5[_0xe389('0x20')]?_0x41cf32['createPositionAt'](_0x579db5[_0xe389('0x70')],_0xe389('0x46')):_0x41cf32[_0xe389('0x31')](_0x579db5[_0xe389('0x70')]);return _0x41cf32[_0xe389('0x50')](_0x38af62,_0x15e511[_0xe389('0x45')],_0x15e511[_0xe389('0x54')]);}function W(_0x22cdbc,_0x372c95,_0x2c6ed1){const _0x5dd4ea=_0xe389('0xb0')==_0x22cdbc[_0xe389('0x20')]?_0x2c6ed1['createPositionAt'](_0x22cdbc[_0xe389('0x70')],0x0):_0x2c6ed1['createPositionAfter'](_0x22cdbc[_0xe389('0x70')]);return _0x2c6ed1[_0xe389('0x50')](_0x372c95,_0x5dd4ea[_0xe389('0x45')],_0x5dd4ea['stickiness']);}
|
|
23
|
+
const _0x979c=['config','getRevisionDocumentData','_clone','_removeMetaData','elementStart','_createCurrentRevision','reverse','Users','_getState','baseVersion','get','_handleMergeOperation','range','_setAttribute','addRevision','afterInit','_savedMetaData','processor','text','addRoot','elementEnd','adapter','documentFragment','length','keys','start','sendBufferedUpdates','_createInitialRevision','_fixRange','set','root','vid','getRevisions','getIndex','newRange','toData','editor-initial-data-replaced-with-revision-data','_handleMarkerOperation','default','creator','isReady','markers','then','RevisionsRepository','getOperation','createdAt','_removeRevisionMarkers','_touchedMarkers','version','_revisionDataBuilder','_handleRootOperation','collaboration.channelId','hasContent','revision:','currentRevision','_getFromVersion','toModel','_baseIdsRoots','insertion','fromVersion','targetPosition','clone','revision-start','source','_handleRootAttributeOperation','_createFromRanges','rootsAttributes','insertions','_lastFrom','authorsIds','parent','detachRoot','locale','splitPosition','newValue','deletions','updateRevisions','ready','createPositionAfter','getChildren','_bufferedUpdates','values','_markers','upcast','init','addRevisionData','_calculateMetaData','PENDING_ACTION_REVISION_HISTORY','attributesBefore','name','_transformMarkers','getUser','getRootNames','_operations','getRange','define','_markChanges','_saveMetaData','slice','_insertChild','includes','map','getRoot','stickiness','revisionHistory.resumeUnsavedRevision','createPositionAt','_idsRoots','_handleMoveOperation','offset','_getVidAttributeName','revision','_removePendingAction','_baseRoots','children','conversion','data-revision-','initialData','dataDowncast','key','initial','isEqual','isAttached','creatorId','nodes','userId','getCurrentRevisionId','_startingRevisionId','push','has','_makeRevision','_handleOperation','previousPosition','loadState','nodeAfter','remove','_execute','_touchedRoots','rootName','element','parse','_isAttached','_makeIdsRoot','sort','delete','_generateTape','createPositionBefore','split','saveRevision','attributesAfter','_applyOperations','getNodeByPath','model','end','_startingVersion','_isPendingUpdate','createRange','$text','for','add','_getPreviousFrom','view','editor','_loadRevisionData','_reset','resolve','toVersion','_initialRevisionId','merge','RealTimeCollaborationClient','oldRange','_authorId','type','createRevision','document','_makeModelFromViewString','getWalker','_continueCurrentRevision','attachChange','keepParagraph','authors','position','tableCell','pluginName','_findInsertionIndex','buildRevisionData','childCount','_fixPosition','editing','_diffRootsAttributes','_prepareViewToSave','offsetSize','RevisionTracker','plugins','dataToMarker','marked','_cloneOperation','find','getTransformedByOperation','data','diffData','size','string','from','_revisionId','changeRootAttribute','createPositionFromPath','reInit','getChild','_diffRoots','_touched','howMany','path','_handleSplitOperation','clear','getAncestors','_source','fromEntries','some','_fixOperation','_getBaseVids','_handleInsertOperation','requires','item','_appendChild','_loadState','shift','markerToData','Empty\x20document','getAttributes','getMovedRangeStart','insert','filter','isAdd','trim','_replaceEditorDataWithRevisionData','getRevisionRootsAttributes','bind','vid_end','$graveyard','deletion','getData','_getViewJson','getLatestVersion','useFillerType','_loadedStateData','repository','_processRootBeforeSave','_update','setRevisionData','vid_start','_addPendingAction','NEGATIVE_INFINITY','_isInit','startsWith','removeRootAttribute','_baseRootsAttributes','forEach','attributes','_lastTo','sourcePosition','move','marker','PendingActions','_bufferUpdate','getRevision','_copyMarkers','_pendingAction','history','getAttribute'];(function(_0x4d0c6e,_0x979c58){const _0x152e6c=function(_0x16a29e){while(--_0x16a29e){_0x4d0c6e['push'](_0x4d0c6e['shift']());}};_0x152e6c(++_0x979c58);}(_0x979c,0x1a7));const _0x152e=function(_0x4d0c6e,_0x979c58){_0x4d0c6e=_0x4d0c6e-0x0;let _0x152e6c=_0x979c[_0x4d0c6e];return _0x152e6c;};import{Users as _0x15925b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x56e07c,PendingActions as _0x51462a}from'ckeditor5/src/core';import{logWarning as _0x4fa037,uid as _0x545004}from'ckeditor5/src/utils';import{Position as _0x144535,Range as _0x350b1c,Element as _0x45dbcc,DocumentFragment as _0x287911,ViewText as _0x41fa94,ViewElement as _0x32f564,ViewContainerElement as _0x19f9fd,ViewAttributeElement as _0x452777,ViewEmptyElement as _0x35285b,ViewRawElement as _0x500888,ViewUIElement as _0x456fce,ViewDocumentFragment as _0x3a9bee}from'ckeditor5/src/engine';import _0x509fac from'./revisionsrepository';import{getTranslation as _0x8d4ba2}from'./utils/common-translations';import{cloneDeep as _0x5cb0d4,isEqual as _0x2a7c77}from'lodash-es';const B={'c':_0x19f9fd,'a':_0x452777,'e':_0x35285b,'r':_0x500888,'u':_0x456fce};export default class l extends _0x56e07c{static get[_0x152e('0x1c')](){return _0x152e('0x25');}static get[_0x152e('0x43')](){return[_0x15925b,_0x509fac,_0x51462a];}constructor(_0x283565){super(_0x283565),this[_0x152e('0x88')]=null,this['currentRevision']=null,this[_0x152e('0xa4')]=new H(this[_0x152e('0x7')]),this[_0x152e('0xc')]=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xa6'))||_0x152e('0xea'),this[_0x152e('0xc3')]=new Map(),this[_0x152e('0x5a')]=null;const _0x38b8a6=_0x545004();this[_0x152e('0x3d')]={'history':this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['history'],'getLatestVersion':()=>Promise[_0x152e('0xa')](this[_0x152e('0x7')][_0x152e('0x10a')]['document'][_0x152e('0xa3')]),'getCurrentRevisionId':()=>_0x38b8a6},this['set'](_0x152e('0x9b'),!0x1),this[_0x152e('0x90')]('isEnabled',!0x0),this[_0x152e('0x90')](_0x152e('0x0'),!0x1),this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0xd2')](_0x152e('0xdb'),!0x0),this['editor']['conversion']['for'](_0x152e('0xc6'))[_0x152e('0x27')]({'view':_0x152e('0xe1')});}[_0x152e('0xc7')](){this['repository']=this[_0x152e('0x7')]['plugins'][_0x152e('0x7d')](_0x152e('0x9e')),this['_setConversion'](),this['editor']['data']['on'](_0x152e('0xc0'),()=>{const _0x2b79b9=this[_0x152e('0x5b')][_0x152e('0x6e')](0x0),_0x428626=_0x2b79b9&&null===_0x2b79b9[_0x152e('0x9a')]?_0x2b79b9:null;if(this['_continueCurrentRevision']=!!_0x428626&&this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x7d')](_0x152e('0xdb')),this[_0x152e('0x7')]['plugins'][_0x152e('0xf3')](_0x152e('0xe'))){const _0x1381fe=this[_0x152e('0x3d')][_0x152e('0xf0')](),_0x2e5f00=this[_0x152e('0x5b')][_0x152e('0x6e')](_0x1381fe);if(_0x2e5f00)this['_startingVersion']=_0x2e5f00[_0x152e('0xae')],this['_continueCurrentRevision']=!0x1;else{const _0x1f9221=this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0xd0')]['find'](_0x552c86=>!_0x552c86[_0x152e('0x62')]),_0x4efe05=_0x1f9221?_0x1f9221[_0x152e('0x7c')]:this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0xa3')];_0x2b79b9?(_0x2b79b9['toVersion']<_0x4efe05&&_0x2b79b9[_0x152e('0x5d')]({'toVersion':_0x4efe05}),this['_continueCurrentRevision']?(this['_source'][_0x152e('0xf0')]=()=>_0x428626['id'],this[_0x152e('0x10c')]=_0x428626[_0x152e('0xae')]):(this[_0x152e('0x10c')]=_0x2b79b9[_0x152e('0xb')],this[_0x152e('0x16')]=!0x1)):(this[_0x152e('0x10c')]=_0x4efe05,this[_0x152e('0x16')]=!0x1);}}else _0x428626&&(this[_0x152e('0x7')]['model'][_0x152e('0x13')][_0x152e('0x71')][_0x152e('0xa3')]=Math['max'](_0x428626['toVersion'],this['editor'][_0x152e('0x10a')][_0x152e('0x13')]['history'][_0x152e('0xa3')]),_0x428626[_0x152e('0xae')]===_0x428626[_0x152e('0xb')]?(0x0!==_0x428626[_0x152e('0xae')]&&(this[_0x152e('0x3d')]['getCurrentRevisionId']=()=>_0x428626['id']),this[_0x152e('0x16')]=!0x1):this[_0x152e('0x16')]&&(this['_source'][_0x152e('0xf0')]=()=>_0x428626['id'],this['_startingVersion']=_0x428626[_0x152e('0xae')])),this[_0x152e('0x16')]||(this['_startingVersion']=this['editor']['model'][_0x152e('0x13')][_0x152e('0xa3')]);this[_0x152e('0xa4')][_0x152e('0xc7')](this[_0x152e('0x3d')]['history']),this['_createInitialRevision'](this[_0x152e('0x10c')]),this[_0x152e('0x78')](this[_0x152e('0x10c')]),this[_0x152e('0x88')]&&this['sendBufferedUpdates']();}),this[_0x152e('0x52')](_0x152e('0x9b'))['to'](this,_0x152e('0x0'),_0x13cb2f=>!_0x13cb2f);}async[_0x152e('0x82')](){if(this[_0x152e('0x5b')][_0x152e('0x8a')]>0x0){const _0x31e3b4=this[_0x152e('0x5b')][_0x152e('0x6e')](0x0),_0x4850d6=await this['getRevisionDocumentData'](_0x31e3b4),_0x1428c7=await this['getRevisionRootsAttributes'](_0x31e3b4);this[_0x152e('0x50')](_0x4850d6,_0x1428c7);}}['setSource'](_0x35f12e){this[_0x152e('0x3d')]=_0x35f12e;}async['update'](){const _0x2d2841=await this[_0x152e('0x3d')][_0x152e('0x58')]();if(_0x2d2841>this[_0x152e('0xa9')][_0x152e('0xb')]){await this[_0x152e('0x46')]();const _0x39558c=this[_0x152e('0x1e')]({'revision':this[_0x152e('0xa9')],'to':_0x2d2841});_0x39558c[_0x152e('0x19')]=_0x39558c[_0x152e('0xb8')][_0x152e('0xd8')](_0xcba1b8=>this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))[_0x152e('0xce')](_0xcba1b8)),this[_0x152e('0xa9')][_0x152e('0x5d')](_0x39558c);}}async[_0x152e('0x46')](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x152e('0xa9')]),this['_revisionDataBuilder'][_0x152e('0xf7')](this[_0x152e('0xa9')]),this[_0x152e('0x5a')]={'fromVersion':this[_0x152e('0xa9')][_0x152e('0xae')],'authors':this[_0x152e('0xa9')]['authors']['slice']()});}async[_0x152e('0x106')](_0x47cf48={},_0x52cd69=null){const _0x39468a=[];await this[_0x152e('0x46')](),this[_0x152e('0x16')]=!0x1,_0x52cd69>this['currentRevision'][_0x152e('0xb')]&&(_0x52cd69=null),null===_0x52cd69&&(_0x52cd69=await this['_source']['getLatestVersion']());const _0x860b25=this[_0x152e('0xaa')](_0x52cd69),_0xe1261b=this['buildRevisionData']({'from':_0x860b25,'to':_0x52cd69});if(this['currentRevision']['toVersion']<_0x52cd69){const _0x17b1dd=this[_0x152e('0x1e')]({'revision':this[_0x152e('0xa9')],'from':_0x52cd69,'to':_0x52cd69});_0x17b1dd['authors']=[],_0x17b1dd[_0x152e('0xb8')]=[],_0x17b1dd['id']=this[_0x152e('0xa9')]['id'],this[_0x152e('0xa9')][_0x152e('0x5d')](_0x17b1dd,!0x0),delete _0x17b1dd['authors'],_0x39468a[_0x152e('0xf2')](_0x17b1dd);}_0x47cf48[_0x152e('0xed')]=this['editor']['plugins'][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x47cf48['name']=_0x47cf48[_0x152e('0xcc')]||null,_0x47cf48['id']=_0x47cf48['id']||_0x545004(),_0x47cf48={..._0x47cf48,..._0xe1261b};const _0x5f1415=this[_0x152e('0xc8')](_0x47cf48);_0x39468a[_0x152e('0xf2')](_0x47cf48);const _0x23b074=this['repository'][_0x152e('0x94')](_0x5f1415);if(0x0!==_0x23b074){const _0x5e03a3=this[_0x152e('0x5b')]['getRevision'](_0x23b074-0x1);if(_0x5e03a3[_0x152e('0xae')]!==_0x52cd69){const _0x20e366=this[_0x152e('0xa4')][_0x152e('0x56')](_0x52cd69,_0x5e03a3[_0x152e('0xb')]),_0x55ec9f={'id':_0x5e03a3['id'],'diffData':_0x20e366['diffData'],'authorsIds':_0x20e366[_0x152e('0xb8')],'authors':_0x20e366[_0x152e('0xb8')][_0x152e('0xd8')](_0x19510f=>this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))[_0x152e('0xce')](_0x19510f)),'fromVersion':_0x52cd69};_0x5e03a3===this[_0x152e('0xa9')]&&(_0x55ec9f[_0x152e('0xa0')]=new Date(_0x47cf48['createdAt']['getTime']()+0xa)),_0x5e03a3[_0x152e('0x5d')](_0x55ec9f,!0x0),delete _0x55ec9f[_0x152e('0x19')],_0x39468a[_0x152e('0xf2')](_0x55ec9f);}}if(this[_0x152e('0x88')]){for(const _0x491ad2 of _0x39468a)this[_0x152e('0x6d')](_0x491ad2['id'],_0x491ad2,!0x0);this[_0x152e('0x8d')]();}return _0x5f1415;}[_0x152e('0xc8')](_0x21aae4){const _0x716065=this[_0x152e('0x5b')][_0x152e('0x12')](_0x21aae4);return this[_0x152e('0x88')]&&_0x716065['on'](_0x152e('0x5d'),(_0x245d54,_0x398fb0,_0x1088bb)=>{_0x1088bb||(this[_0x152e('0x6d')](_0x398fb0['id'],_0x398fb0,!0x0),this['sendBufferedUpdates']());}),this[_0x152e('0x5b')][_0x152e('0x81')](_0x716065,this['_findInsertionIndex'](_0x716065)),_0x716065;}async[_0x152e('0x74')](_0xee86f6){await this[_0x152e('0x8')](_0xee86f6);const _0x2f54e2={};for(const _0x1c1e2a in _0xee86f6[_0x152e('0x2d')]){if(_0xee86f6[_0x152e('0x2d')][_0x1c1e2a][_0x152e('0x17')]&&!_0xee86f6[_0x152e('0x2d')][_0x1c1e2a]['attachChange'][_0x152e('0xec')])continue;const _0xd35f27=this[_0x152e('0xa1')](JSON[_0x152e('0xfe')](_0xee86f6[_0x152e('0x2d')][_0x1c1e2a][_0x152e('0xb6')])),_0x1bd4b7=this[_0x152e('0x7')][_0x152e('0x21')]['view']['document'],_0x2b9f9e=new _0x3a9bee(_0x1bd4b7,_0xd35f27[_0x152e('0xd8')](_0x4127b9=>J(_0x4127b9,this[_0x152e('0x7')])));this[_0x152e('0x7')][_0x152e('0x2c')][_0x152e('0x84')][_0x152e('0x59')](_0x152e('0x28')),_0x2f54e2[_0x1c1e2a]=this[_0x152e('0x7')]['data']['processor'][_0x152e('0x96')](_0x2b9f9e),this['editor'][_0x152e('0x2c')]['processor'][_0x152e('0x59')](_0x152e('0x99'));}return _0x2f54e2;}async[_0x152e('0x51')](_0x473854){await this[_0x152e('0x8')](_0x473854);const _0x77776e={};for(const _0x45c5f9 in _0x473854[_0x152e('0x2d')])_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x17')]&&!_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x17')][_0x152e('0xec')]||(_0x77776e[_0x45c5f9]=_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x107')]||{});return _0x77776e;}[_0x152e('0x8d')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x152e('0x0')])return;let _0x37bb3d=Array[_0x152e('0x30')](this[_0x152e('0xc3')]['values']());this[_0x152e('0xc3')][_0x152e('0x3b')]();for(let _0x1337b2=0x0;_0x1337b2<_0x37bb3d['length'];_0x1337b2++){const _0x6465d6=_0x37bb3d[_0x1337b2];let _0x31a443=!0x1;for(const _0xb66026 of Object['keys'](_0x6465d6))void 0x0===_0x6465d6[_0xb66026]?delete _0x6465d6[_0xb66026]:'id'!==_0xb66026&&(_0x31a443=!0x0);_0x31a443||(_0x37bb3d[_0x1337b2]=null);}if(_0x37bb3d=_0x37bb3d[_0x152e('0x4d')](_0x157a5f=>null!==_0x157a5f),!_0x37bb3d['length'])return;for(let _0x23fad3=0x0;_0x23fad3<_0x37bb3d[_0x152e('0x8a')];_0x23fad3++){const _0x58a182=_0x37bb3d[_0x23fad3];void 0x0!==_0x58a182['fromVersion']&&void 0x0===_0x58a182[_0x152e('0xb')]&&(_0x58a182['toVersion']=this[_0x152e('0x5b')][_0x152e('0x6e')](_0x58a182['id'])[_0x152e('0xb')]),void 0x0!==_0x58a182[_0x152e('0xb')]&&void 0x0===_0x58a182['fromVersion']&&(_0x58a182[_0x152e('0xae')]=this['repository']['getRevision'](_0x58a182['id'])[_0x152e('0xae')]);}const _0x2f4a8a=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xa6'));this['_isPendingUpdate']=!0x0,this[_0x152e('0x60')](),this[_0x152e('0x88')][_0x152e('0xbf')](_0x37bb3d,_0x2f4a8a)['finally'](()=>{this[_0x152e('0x0')]=!0x1;})[_0x152e('0x9d')](_0x1cd7d8=>{if(_0x1cd7d8)for(const _0x4b79dc of _0x1cd7d8)this[_0x152e('0x5e')]({'id':_0x4b79dc['id'],'createdAt':_0x4b79dc['createdAt']});this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x39338b,_0x1a849b){let _0x3fcd00=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xe7')),_0x567da2=this['editor'][_0x152e('0x73')][_0x152e('0x7d')]('rootsAttributes');if(void 0x0===_0x3fcd00){_0x3fcd00={};for(const _0x5d924f of this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xcf')]())_0x3fcd00[_0x5d924f]='';}if(_0x152e('0x2f')==typeof _0x3fcd00&&(_0x3fcd00={'main':_0x3fcd00}),void 0x0===_0x567da2){_0x567da2={};for(const _0x963ffe of this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xcf')]())_0x567da2[_0x963ffe]={};}let _0x3a9c5b=!0x1;const _0x5eaf43=Object[_0x152e('0x8b')](_0x3fcd00),_0x56b14f=Object['keys'](_0x39338b);for(const _0x1eb40c of _0x5eaf43){if(_0x3fcd00[_0x1eb40c]!==_0x39338b[_0x1eb40c]&&''!==_0x3fcd00[_0x1eb40c][_0x152e('0x4f')]()){_0x3a9c5b=!0x0;break;}if(!_0x2a7c77(_0x567da2[_0x1eb40c],_0x1a849b[_0x1eb40c])&&Object[_0x152e('0x8b')](_0x567da2[_0x1eb40c])['length']>0x0){_0x3a9c5b=!0x0;break;}}_0x3a9c5b||(_0x3a9c5b=_0x56b14f[_0x152e('0x3f')](_0x80f080=>!this['editor'][_0x152e('0x10a')]['document'][_0x152e('0xd9')](_0x80f080))),_0x3a9c5b&&_0x4fa037(_0x152e('0x97'),{'editorData':_0x3fcd00,'editorRootsAttributes':_0x567da2,'revisionData':_0x39338b,'revisionRootsAttributes':_0x1a849b}),this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x90')](_0x152e('0xe7'),_0x39338b),this['editor'][_0x152e('0x73')][_0x152e('0x90')](_0x152e('0xb5'),_0x1a849b);}[_0x152e('0x60')](){if(!this[_0x152e('0x70')]){const _0x56efce=this['editor']['plugins'][_0x152e('0x7d')]('PendingActions');this['_pendingAction']=_0x56efce['add'](_0x8d4ba2(this[_0x152e('0x7')][_0x152e('0xbb')],_0x152e('0xca')));}}[_0x152e('0xe2')](){this['_pendingAction']&&(this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x6c'))[_0x152e('0xf9')](this[_0x152e('0x70')]),this[_0x152e('0x70')]=null);}[_0x152e('0x1d')](_0x3844b3){const _0x4c88fb=this[_0x152e('0x5b')][_0x152e('0x93')]();_0x4c88fb[_0x152e('0x79')]();let _0x2a7037=0x0;for(;_0x2a7037<_0x4c88fb['length'];){const _0x5508cf=_0x4c88fb[_0x2a7037];if(_0x5508cf===this[_0x152e('0xa9')]){_0x2a7037++;continue;}if(_0x5508cf['id']===this[_0x152e('0xc')])break;const _0x9d7393=_0x3844b3[_0x152e('0xb')]-_0x5508cf['toVersion']||_0x3844b3[_0x152e('0xae')]-_0x5508cf[_0x152e('0xae')];if(_0x9d7393>0x0)break;if(_0x9d7393<0x0)_0x2a7037++;else{if(!_0x3844b3[_0x152e('0x9a')]&&_0x5508cf['creator'])break;if(_0x5508cf['creator']||!_0x3844b3[_0x152e('0x9a')]){if(_0x3844b3['createdAt']>_0x5508cf[_0x152e('0xa0')])break;_0x2a7037++;}else _0x2a7037++;}}return _0x2a7037;}['setRevisionData'](_0x370580){const _0x1ef58d=this['repository'][_0x152e('0x6e')](_0x370580['id']);if(_0x370580['createdAt']&&(_0x370580[_0x152e('0xa0')]=new Date(_0x370580[_0x152e('0xa0')])),_0x370580['authorsIds']){const _0x2c7019=this['editor'][_0x152e('0x26')][_0x152e('0x7d')]('Users');_0x370580[_0x152e('0x19')]=_0x370580[_0x152e('0xb8')][_0x152e('0xd8')](_0xef0d1f=>_0x2c7019['getUser'](_0xef0d1f));}_0x1ef58d[_0x152e('0x5d')](_0x370580,!0x0);}[_0x152e('0x1e')]({revision:_0x1b17c2=null,from:_0x2195bc=null,to:_0x182cfd=null}){_0x2195bc=null!==_0x2195bc?_0x2195bc:_0x1b17c2[_0x152e('0xae')],_0x182cfd=null!==_0x182cfd?_0x182cfd:_0x1b17c2[_0x152e('0xb')];const _0x126aba=this[_0x152e('0xa4')][_0x152e('0x56')](_0x2195bc,_0x182cfd),_0x259cb2={'diffData':_0x126aba['diffData'],'authorsIds':_0x126aba[_0x152e('0xb8')],'fromVersion':_0x2195bc,'toVersion':_0x182cfd};if(!_0x1b17c2||_0x182cfd!==_0x1b17c2['toVersion']){const _0x5a828c=_0x182cfd-0x1,_0x5a729b=this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0x9f')](_0x5a828c);_0x259cb2[_0x152e('0xa0')]=_0x5a729b&&_0x5a729b[_0x152e('0xa0')]||new Date();}if(this[_0x152e('0x5a')]&&_0x2195bc===this[_0x152e('0x5a')][_0x152e('0xae')])for(const _0x32cdfb of this[_0x152e('0x5a')][_0x152e('0x19')])_0x259cb2[_0x152e('0xb8')][_0x152e('0xd7')](_0x32cdfb['id'])||_0x259cb2[_0x152e('0xb8')][_0x152e('0xf2')](_0x32cdfb['id']);return _0x259cb2;}[_0x152e('0x8')](_0x396d4d){if(!_0x396d4d||_0x396d4d['diffData'])return Promise[_0x152e('0xa')]();{const _0x965080=this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x7d')](_0x152e('0xa6'));return this[_0x152e('0x88')][_0x152e('0x6e')]({'channelId':_0x965080,'revisionId':_0x396d4d['id']})[_0x152e('0x9d')](_0x49b16a=>{_0x396d4d[_0x152e('0x2d')]=_0x49b16a['diffData'];});}}[_0x152e('0x6d')](_0x49d2f5,_0x547127,_0x122ab3){if(this['_bufferedUpdates']['has'](_0x49d2f5)){const _0x4b6ffc=this[_0x152e('0xc3')][_0x152e('0x7d')](_0x49d2f5);_0x547127=_0x122ab3?{..._0x4b6ffc,..._0x547127}:{..._0x547127,..._0x4b6ffc};}this[_0x152e('0xc3')][_0x152e('0x90')](_0x49d2f5,_0x547127);}[_0x152e('0xaa')](_0x4c2566){const _0x463f8c=this[_0x152e('0x5b')][_0x152e('0x93')]();_0x463f8c['reverse'](),_0x463f8c[_0x152e('0x47')]();const _0x49a559=_0x463f8c[_0x152e('0x2a')](_0x723c87=>_0x723c87[_0x152e('0xb')]<=_0x4c2566)[_0x152e('0xb')];return _0x49a559<this['_startingVersion']?this[_0x152e('0x10c')]:_0x49a559;}[_0x152e('0x8e')](_0x492357){const _0xf190ea=this[_0x152e('0x5b')][_0x152e('0x6e')](this['repository'][_0x152e('0x8a')]-0x1);if(_0xf190ea)this[_0x152e('0xc')]=_0xf190ea['id'];else{const _0x336774=!this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['roots'][_0x152e('0x2a')](_0x45e31a=>this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0xa7')](_0x45e31a)),_0x4d94c4=this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x173d4d=_0x8d4ba2(this[_0x152e('0x7')][_0x152e('0xbb')],_0x336774?_0x152e('0x49'):'Initial\x20revision');this['_makeRevision']({'from':_0x492357,'to':_0x492357,'id':this['_initialRevisionId'],'name':_0x173d4d,'creatorId':_0x4d94c4});}}[_0x152e('0x78')](_0x4f216a){const _0x5ccd91=this[_0x152e('0x3d')][_0x152e('0xf0')]();this[_0x152e('0xa9')]=this['repository']['getRevision'](_0x5ccd91),this['currentRevision']||(this[_0x152e('0xa9')]=this[_0x152e('0xf4')]({'from':_0x4f216a,'to':_0x4f216a,'id':_0x5ccd91,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3c2318,from:_0x524251,to:_0x583648,creatorId:_0x39e77b,id:_0x55624e}){const _0x491bc0=this[_0x152e('0x1e')]({'from':_0x524251,'to':_0x583648});_0x491bc0[_0x152e('0xcc')]=_0x3c2318,_0x491bc0[_0x152e('0xed')]=_0x39e77b,_0x491bc0['id']=_0x55624e;const _0x4bfe0f=this[_0x152e('0xc8')](_0x491bc0);return this[_0x152e('0x88')]&&this[_0x152e('0x6d')](_0x491bc0['id'],_0x491bc0,!0x0),_0x4bfe0f;}['_setConversion'](){this[_0x152e('0x7')][_0x152e('0xe5')][_0x152e('0x3')](_0x152e('0xe8'))[_0x152e('0x48')]({'model':_0x152e('0xe1')});}['_removeRevisionMarkers'](_0x19f452){return(_0x19f452=_0x19f452['filter'](_0xf877dc=>!_0xf877dc[_0x152e('0xcc')]||_0x152e('0xb1')!==_0xf877dc[_0x152e('0xcc')]&&'revision-end'!==_0xf877dc[_0x152e('0xcc')]))[_0x152e('0x66')](_0x331473=>{_0x152e('0x2f')!=typeof _0x331473&&(_0x331473['children']=this[_0x152e('0xa1')](_0x331473[_0x152e('0xe4')]),_0x331473[_0x152e('0x67')]=_0x331473[_0x152e('0x67')][_0x152e('0x4d')](_0x3f26fa=>!_0x3f26fa[0x0][_0x152e('0x63')](_0x152e('0xe6'))));}),_0x19f452;}}function J(_0x5c5b71,_0x401129){const _0x4c524a=_0x401129[_0x152e('0x21')][_0x152e('0x6')][_0x152e('0x13')];if(_0x152e('0x2f')==typeof _0x5c5b71)return new _0x41fa94(_0x4c524a,_0x5c5b71);{const _0x25190c=_0x5c5b71[_0x152e('0xe4')][_0x152e('0xd8')](_0x2723a0=>J(_0x2723a0,_0x401129));return new(B[_0x5c5b71[(_0x152e('0x11'))]]||_0x32f564)(_0x4c524a,_0x5c5b71[_0x152e('0xcc')],_0x5c5b71['attributes'],_0x25190c);}}class H{constructor(_0x294acf){this[_0x152e('0x7')]=_0x294acf,this[_0x152e('0x83')]=new Map(),this[_0x152e('0xb7')]=-0x1,this[_0x152e('0x68')]=-0x1,this['_markers']=new Map(),this[_0x152e('0x36')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x152e('0xe3')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x152e('0xdd')]=new Map(),this[_0x152e('0xac')]=new Map(),this[_0x152e('0x37')]=new Map(),this[_0x152e('0xa2')]=new Map(),this[_0x152e('0xfb')]=new Map(),this[_0x152e('0x31')]=0x1;}[_0x152e('0xc7')](_0x5dfeb4){this[_0x152e('0xb2')]=_0x5dfeb4;const _0x9840e3=new Map(),_0x89e427=new Map(),_0x50feef=this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['roots'][_0x152e('0xd8')](_0x5574ca=>_0x5574ca[_0x152e('0xfc')]);for(const _0x121b6e of _0x50feef){const _0x2d549c=this['editor'][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xd9')](_0x121b6e),_0xe9b1f9=q(_0x2d549c);_0x9840e3['set'](_0x121b6e,_0xe9b1f9),_0x89e427[_0x152e('0x90')](_0x121b6e,Object[_0x152e('0x3e')](_0x2d549c[_0x152e('0x4a')]()));}const _0x2be3c2=Array[_0x152e('0x30')](this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x9c')])[_0x152e('0xd8')](_0x53d343=>[_0x53d343[_0x152e('0xcc')],_0x53d343[_0x152e('0xd1')]()]),_0x471801=this[_0x152e('0xb2')][_0x152e('0xa3')];this[_0x152e('0xd4')](_0x471801,_0x9840e3,_0x2be3c2,_0x89e427),this[_0x152e('0xf1')]=this[_0x152e('0x31')];const _0x40d8b3=new Map(),_0x5bf80d=new Map();for(const _0x3cf904 of _0x50feef){const _0x3bd114=G(_0x3cf904);_0x40d8b3[_0x152e('0x90')](_0x3cf904,_0x3bd114),_0x5bf80d[_0x152e('0x90')](_0x3cf904,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x40d8b3,[],_0x5bf80d);}[_0x152e('0x56')](_0x5b7cbd,_0x544ce1){if(this[_0x152e('0xb7')]===_0x5b7cbd&&this[_0x152e('0x68')]<=_0x544ce1)this[_0x152e('0x83')][_0x152e('0x2e')]>0x1&&this[_0x152e('0x76')](this[_0x152e('0x68')]),this[_0x152e('0x108')](this[_0x152e('0x68')],_0x544ce1,!0x0);else{if(!this['_savedMetaData'][_0x152e('0xf3')](_0x5b7cbd)){const _0x2aea92=this['_getPreviousFrom'](_0x5b7cbd);this['_calculateMetaData'](_0x2aea92,_0x5b7cbd,!0x1);}this[_0x152e('0xc9')](_0x5b7cbd,_0x544ce1,!0x0);}return this[_0x152e('0xb7')]=_0x5b7cbd,this[_0x152e('0x68')]=_0x544ce1,this['_getState']();}['loadState'](_0x2f722a){this[_0x152e('0x9')](),this[_0x152e('0xb7')]=_0x2f722a[_0x152e('0xae')],this[_0x152e('0x68')]=_0x2f722a[_0x152e('0xb')];for(const _0x581d13 in _0x2f722a[_0x152e('0x2d')]){const _0x18ca4e=_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0x17')],_0x32ca0e=_0x5cb0d4(_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0xcb')])||{},_0x4719ef=this[_0x152e('0x14')](_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0xbe')]);_0x4719ef['rootName']=_0x581d13,_0x4719ef[_0x152e('0xff')]=!_0x18ca4e||!_0x18ca4e['isAttached'],_0x4719ef[_0x152e('0xec')]=()=>_0x4719ef['_isAttached'],this[_0x152e('0xe3')][_0x152e('0x90')](_0x581d13,_0x4719ef),this['_baseRootsAttributes']['set'](_0x581d13,_0x32ca0e),_0x18ca4e&&this['_touchedRoots'][_0x152e('0x90')](_0x581d13,_0x18ca4e);const _0x3d39ec=this['_makeIdsRoot'](_0x4719ef);this['_baseIdsRoots'][_0x152e('0x90')](_0x581d13,_0x3d39ec);for(const [_0x374db3,_0x4f777a]of _0x4719ef[_0x152e('0x9c')]){if(!_0x374db3[_0x152e('0x63')]('revision:'))continue;const _0x2639a7=_0x374db3[_0x152e('0x105')](':')[0x2];for(const _0x2a59fb of _0x4f777a[_0x152e('0x15')]({'singleCharacters':!0x0})){const _0x3124ff=this[_0x152e('0xe0')](_0x2a59fb),_0x2b359d=_0x152e('0x87')==_0x2a59fb[_0x152e('0x11')]?_0x2a59fb['previousPosition'][_0x152e('0x39')][_0x152e('0xd5')](0x0,-0x1):_0x2a59fb['previousPosition'][_0x152e('0x39')],_0x53b14a=_0x3d39ec[_0x152e('0x109')](_0x2b359d)[_0x152e('0x72')](_0x3124ff);this[_0x152e('0x37')][_0x152e('0x90')](_0x53b14a,{'userId':_0x2639a7});}}}this[_0x152e('0xf1')]=this[_0x152e('0x31')];const _0x56e931=[...Array(this['_revisionId'])[_0x152e('0x8b')]()][_0x152e('0xd5')](0x1)[_0x152e('0x4d')](_0x27bf91=>!this[_0x152e('0x37')][_0x152e('0xf3')](_0x27bf91));let _0x318e02=0x0;const _0x532744=new Map();for(const _0x48264c in _0x2f722a['diffData']){const _0x1ad72f=_0x2f722a[_0x152e('0x2d')][_0x48264c][_0x152e('0x17')],_0x214243=_0x5cb0d4(_0x2f722a[_0x152e('0x2d')][_0x48264c][_0x152e('0x107')])||{},_0x431ee5=this[_0x152e('0x14')](_0x2f722a[_0x152e('0x2d')][_0x48264c]['insertions']);_0x431ee5['rootName']=_0x48264c,_0x431ee5[_0x152e('0xff')]=!_0x1ad72f||_0x1ad72f[_0x152e('0xec')],_0x431ee5[_0x152e('0xec')]=()=>_0x431ee5[_0x152e('0xff')],this[_0x152e('0x36')][_0x152e('0x90')](_0x48264c,_0x431ee5),this[_0x152e('0x22')][_0x152e('0x90')](_0x48264c,_0x214243);const _0x483579=this['_makeIdsRoot'](_0x431ee5,Number['NEGATIVE_INFINITY']);this[_0x152e('0xdd')][_0x152e('0x90')](_0x48264c,_0x483579),_0x532744['set'](_0x48264c,_0x431ee5[_0x152e('0xec')]()?_0x214243:{});for(const [_0x5d1373,_0x18a183]of _0x431ee5[_0x152e('0x9c')]){if(!_0x5d1373[_0x152e('0x63')](_0x152e('0xa8')))continue;const _0x18c2de=_0x5d1373[_0x152e('0x105')](':')[0x2];for(const _0x433f37 of _0x18a183['getWalker']({'singleCharacters':!0x0})){const _0x50f00b=this[_0x152e('0xe0')](_0x433f37),_0x437a3a=this[_0x152e('0x31')]++,_0x3f9f8a=_0x152e('0x87')==_0x433f37['type']?_0x433f37['previousPosition'][_0x152e('0x39')]['slice'](0x0,-0x1):_0x433f37[_0x152e('0xf6')][_0x152e('0x39')];_0x483579[_0x152e('0x109')](_0x3f9f8a)[_0x152e('0x80')](_0x50f00b,_0x437a3a),this['_touched'][_0x152e('0x90')](_0x437a3a,{'userId':_0x18c2de});}}for(const _0xa87b1f of this[_0x152e('0x7')]['model']['createRangeIn'](_0x431ee5)[_0x152e('0x15')]({'singleCharacters':!0x0})){const _0x59b467=this['_getVidAttributeName'](_0xa87b1f),_0x50d0b8='elementEnd'==_0xa87b1f[_0x152e('0x11')]?_0xa87b1f[_0x152e('0xf6')]['path'][_0x152e('0xd5')](0x0,-0x1):_0xa87b1f[_0x152e('0xf6')][_0x152e('0x39')],_0x1903c5=_0x483579[_0x152e('0x109')](_0x50d0b8);_0x1903c5[_0x152e('0x72')](_0x59b467)>0x0||_0x1903c5[_0x152e('0x80')](_0x59b467,_0x56e931[_0x318e02++]);}for(const [_0x4e28fb,_0x2965af]of _0x431ee5['markers'])_0x4e28fb['startsWith']('revision:')||this[_0x152e('0xc5')][_0x152e('0x90')](_0x4e28fb,_0x2965af);}const _0x8459a2=G(_0x152e('0x54'));this[_0x152e('0xe3')][_0x152e('0x90')](_0x152e('0x54'),_0x8459a2),this['_baseIdsRoots'][_0x152e('0x90')](_0x152e('0x54'),this[_0x152e('0x100')](_0x8459a2,0x1));const _0x7abc13=G(_0x152e('0x54'));this[_0x152e('0x36')][_0x152e('0x90')](_0x152e('0x54'),_0x7abc13),this[_0x152e('0xdd')][_0x152e('0x90')](_0x152e('0x54'),this['_makeIdsRoot'](_0x7abc13,0x1));const _0x416c8e=Array[_0x152e('0x30')](this[_0x152e('0x36')])['map'](([_0x5f4396,_0x2ad2f6])=>[_0x5f4396,q(_0x2ad2f6)]);this[_0x152e('0xd4')](this[_0x152e('0x68')],_0x416c8e,this[_0x152e('0xc5')],_0x532744);}[_0x152e('0x14')](_0x3fa517){const _0x3297ee=JSON[_0x152e('0xfe')](_0x3fa517),_0x442819=this[_0x152e('0x7')][_0x152e('0x21')][_0x152e('0x6')]['document'],_0x4e9c0d=new _0x3a9bee(_0x442819,_0x3297ee[_0x152e('0xd8')](_0x561c39=>J(_0x561c39,this[_0x152e('0x7')])));return this[_0x152e('0x7')][_0x152e('0x2c')][_0x152e('0xab')](_0x4e9c0d);}[_0x152e('0xd4')](_0x30c469,_0x41c06d,_0x10f24a,_0x217f52){const _0x20dfd9=new Map(_0x41c06d),_0x15a957=new Map(_0x5cb0d4(_0x217f52)),_0x137cf8=new Map();for(const [_0x286c27,_0xe50225]of _0x10f24a)_0x137cf8[_0x152e('0x90')](_0x286c27,{'start':_0xe50225['start'][_0x152e('0xb0')](),'end':_0xe50225[_0x152e('0x10b')]['clone'](),'rootName':_0xe50225['root']['rootName']});this[_0x152e('0x83')][_0x152e('0x90')](_0x30c469,{'roots':_0x20dfd9,'markers':_0x137cf8,'rootsAttributes':_0x15a957});}[_0x152e('0x76')](_0x472264){this[_0x152e('0x83')][_0x152e('0x102')](_0x472264);}[_0x152e('0x34')](){this[_0x152e('0x9')](),this[_0x152e('0xb7')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x152e('0x3b')](),this[_0x152e('0xc7')](this[_0x152e('0xb2')]);}[_0x152e('0x9')](){this['_touched']['clear'](),this[_0x152e('0xa2')][_0x152e('0x3b')](),this[_0x152e('0xfb')][_0x152e('0x3b')](),this[_0x152e('0x36')][_0x152e('0x3b')](),this[_0x152e('0x22')]['clear'](),this['_baseRoots'][_0x152e('0x3b')](),this[_0x152e('0x65')][_0x152e('0x3b')](),this[_0x152e('0xdd')]['clear'](),this[_0x152e('0xac')][_0x152e('0x3b')](),this[_0x152e('0xc5')][_0x152e('0x3b')](),this[_0x152e('0x31')]=0x1,this[_0x152e('0xf1')]=this[_0x152e('0x31')];}[_0x152e('0x100')](_0x1d2b84,_0x56d0f8=null){let _0x556e31=null;_0x1d2b84['is']('documentFragment')||(_0x556e31=new _0x45dbcc(_0x1d2b84[_0x152e('0xcc')],{'vid_start':null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++}));const _0x35145e=[];for(const _0x1078cd of _0x1d2b84[_0x152e('0xc2')]())if(_0x1078cd['is'](_0x152e('0xfd'))){_0x35145e[_0x152e('0xf2')](this[_0x152e('0x100')](_0x1078cd,_0x56d0f8));const _0x531a32=_0x35145e[_0x35145e[_0x152e('0x8a')]-0x1];null!==_0x56d0f8&&(_0x56d0f8=_0x531a32['is'](_0x152e('0xfd'),_0x152e('0x2'))?_0x531a32[_0x152e('0x72')](_0x152e('0x92'))+0x1:_0x531a32['getAttribute'](_0x152e('0x53'))+0x1);}else for(let _0x1b498f=0x0;_0x1b498f<_0x1078cd[_0x152e('0x24')];_0x1b498f++)_0x35145e[_0x152e('0xf2')](new _0x45dbcc(_0x152e('0x2'),{'vid':null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++}));if(_0x1d2b84['is'](_0x152e('0x89'))){const _0x13a847=G(_0x1d2b84[_0x152e('0xfc')]);return _0x13a847[_0x152e('0xd6')](0x0,_0x35145e),_0x13a847;}return _0x556e31[_0x152e('0x80')](_0x152e('0x53'),null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++),_0x556e31['_insertChild'](0x0,_0x35145e),_0x556e31;}[_0x152e('0xc9')](_0x3d4036,_0x564b11,_0x7b8f7c){this['_reset']();const {roots:_0x47f504,markers:_0x44477f,rootsAttributes:_0x5ddc84}=this['_savedMetaData'][_0x152e('0x7d')](_0x3d4036);this[_0x152e('0xe3')]=new Map(_0x47f504),this[_0x152e('0x65')]=new Map(_0x5cb0d4(_0x5ddc84));for(const [_0x425bb2,_0x17cae2]of this[_0x152e('0xe3')])if('$graveyard'!==_0x425bb2&&(this['_diffRoots'][_0x152e('0x90')](_0x425bb2,q(_0x17cae2)),this[_0x152e('0x22')]=new Map(_0x5cb0d4(_0x5ddc84)),_0x7b8f7c)){const _0x3958c6=this[_0x152e('0x31')];this[_0x152e('0xdd')]['set'](_0x425bb2,this['_makeIdsRoot'](_0x17cae2)),this[_0x152e('0xac')][_0x152e('0x90')](_0x425bb2,this['_makeIdsRoot'](_0x17cae2,_0x3958c6));}this[_0x152e('0xf1')]=this[_0x152e('0x31')],this[_0x152e('0x36')][_0x152e('0x90')]('$graveyard',q(this[_0x152e('0xe3')][_0x152e('0x7d')](_0x152e('0x54')))),_0x7b8f7c&&this['_idsRoots'][_0x152e('0x90')](_0x152e('0x54'),this[_0x152e('0x100')](this[_0x152e('0xe3')][_0x152e('0x7d')]('$graveyard')));for(const [_0x1e68cc,_0x28f640]of _0x44477f){const _0x28c0e7=this['_baseRoots']['get'](_0x28f640[_0x152e('0xfc')]),_0x4305fd=this['_diffRoots']['get'](_0x28f640[_0x152e('0xfc')]),_0x25c941=new _0x350b1c(this[_0x152e('0x20')](_0x28f640['start'],_0x28c0e7),this[_0x152e('0x20')](_0x28f640[_0x152e('0x10b')],_0x28c0e7)),_0x4406d2=this[_0x152e('0x8f')](_0x25c941,_0x4305fd);_0x28c0e7[_0x152e('0x9c')][_0x152e('0x90')](_0x1e68cc,_0x25c941),this[_0x152e('0xc5')]['set'](_0x1e68cc,_0x4406d2);}this['_applyOperations'](_0x3d4036,_0x564b11,_0x7b8f7c);}[_0x152e('0x108')](_0x5e5833,_0x1b6e6c,_0x86030d){for(const _0x19d4f3 of this['source']['getOperations'](_0x5e5833,_0x1b6e6c))this[_0x152e('0xf5')](_0x19d4f3,_0x86030d);for(const _0xb59ded of this[_0x152e('0x36')][_0x152e('0xc4')]())_0xb59ded['markers'][_0x152e('0x3b')]();for(const [_0x3c0a62,_0x531644]of this[_0x152e('0xc5')]){this[_0x152e('0x36')][_0x152e('0x7d')](_0x531644[_0x152e('0x91')][_0x152e('0xfc')])[_0x152e('0x9c')][_0x152e('0x90')](_0x3c0a62,_0x531644[_0x152e('0xb0')]());}const _0x5c695e=new Map(),_0x39cc0e=new Map();for(const [_0xfc21f,_0x326fe3]of this[_0x152e('0x36')])_0x5c695e[_0x152e('0x90')](_0xfc21f,q(_0x326fe3)),_0x39cc0e['set'](_0xfc21f,this[_0x152e('0x22')][_0x152e('0x7d')](_0xfc21f));this[_0x152e('0xd4')](_0x1b6e6c,_0x5c695e,this[_0x152e('0xc5')],_0x39cc0e);}[_0x152e('0x5')](_0x384088){const _0x45a157=Array['from'](this[_0x152e('0x83')]['keys']());_0x45a157[_0x152e('0x101')]((_0x44ef11,_0x394115)=>_0x44ef11-_0x394115),_0x45a157[_0x152e('0x79')]();for(const _0x42a4d6 of _0x45a157)if(_0x42a4d6<_0x384088)return _0x42a4d6;return Number[_0x152e('0x61')];}[_0x152e('0x6f')](_0x254dd8,_0x1a299c){const _0x1fb3d8=Array['from'](_0x1a299c[_0x152e('0x9c')])[_0x152e('0xd8')](([_0x280537,_0x31f400])=>[_0x280537,this[_0x152e('0x8f')](_0x31f400,_0x254dd8)]);_0x254dd8[_0x152e('0x9c')]=new Map(_0x1fb3d8);}[_0x152e('0xcd')](_0xb1a788){for(const _0x4be776 of this[_0x152e('0xc5')]['values']()){const _0x77238a=_0x4be776[_0x152e('0x2b')](_0xb1a788),_0x7d8ff7=_0x350b1c[_0x152e('0xb4')](_0x77238a);_0x4be776['start']=_0x7d8ff7[_0x152e('0x8c')],_0x4be776['end']=_0x7d8ff7[_0x152e('0x10b')];}}[_0x152e('0xf5')](_0x4529ac,_0x2dd655){if(_0x152e('0x86')==_0x4529ac[_0x152e('0x11')]||_0x152e('0xba')==_0x4529ac[_0x152e('0x11')])return void this['_handleRootOperation'](_0x4529ac,_0x2dd655);if(_0x152e('0x4c')==_0x4529ac['type']){const _0x444ff8=_0x4529ac[_0x152e('0x1a')][_0x152e('0x91')][_0x152e('0xfc')];this['_diffRoots'][_0x152e('0xf3')](_0x444ff8)||(this[_0x152e('0x36')][_0x152e('0x90')](_0x444ff8,G(_0x444ff8,!0x0)),this[_0x152e('0x22')][_0x152e('0x90')](_0x444ff8,{}),_0x2dd655&&this['_idsRoots'][_0x152e('0x90')](_0x444ff8,G(_0x444ff8,!0x0)));}else{if('addRootAttribute'==_0x4529ac[_0x152e('0x11')]||_0x152e('0x64')==_0x4529ac[_0x152e('0x11')]||_0x152e('0x32')==_0x4529ac['type'])return void this[_0x152e('0xb3')](_0x4529ac);}const _0xe7afc0=this[_0x152e('0x29')](_0x4529ac,this[_0x152e('0x36')]);if(_0x152e('0x6b')!==_0x4529ac[_0x152e('0x11')]&&(_0xe7afc0['_execute'](),this[_0x152e('0xcd')](_0xe7afc0)),_0x2dd655)switch(_0xe7afc0['type']){case _0x152e('0x4c'):this[_0x152e('0x42')](_0x4529ac);break;case _0x152e('0x6a'):case'remove':case'reinsert':this[_0x152e('0xde')](_0x4529ac);break;case _0x152e('0xd'):this[_0x152e('0x7e')](_0x4529ac);break;case _0x152e('0x105'):this[_0x152e('0x3a')](_0x4529ac);break;case _0x152e('0x6b'):this[_0x152e('0x98')](_0x4529ac);}}[_0x152e('0x29')](_0x39ce9d,_0x38873d){const _0x162015=_0x39ce9d[_0x152e('0xb0')]();return _0x162015[_0x152e('0x10')]=_0x39ce9d['_authorId'],this[_0x152e('0x40')](_0x162015,_0x38873d),_0x162015;}[_0x152e('0x41')](_0x4f4582){return _0x4f4582[_0x152e('0xd8')](_0x251a4c=>{const _0x513845=this[_0x152e('0xe0')](_0x251a4c);return Number(_0x251a4c[_0x152e('0x44')][_0x152e('0x72')](_0x513845));});}['_generateTape'](_0x1462c8,_0x2407d9){if(_0x1462c8['is'](_0x152e('0xfd'),'$text'))_0x2407d9[_0x152e('0xf2')]({'item':_0x1462c8,'type':_0x152e('0x85')});else{_0x1462c8['is'](_0x152e('0xfd'))&&_0x2407d9[_0x152e('0xf2')]({'item':_0x1462c8,'type':'elementStart'});for(const _0x4d1b9b of _0x1462c8[_0x152e('0xc2')]())this[_0x152e('0x103')](_0x4d1b9b,_0x2407d9);_0x1462c8['is']('element')&&_0x2407d9['push']({'item':_0x1462c8,'type':_0x152e('0x87')});}return _0x2407d9;}[_0x152e('0x7b')](){const _0x527025=new Map(this[_0x152e('0x37')]),_0x1aa38d=new Map(_0x527025),_0x319080=new Map(),_0x58847f={'insertions':{},'deletions':{}},_0x51f975={'insertions':{},'deletions':{}},_0x41a86d=new Map(),_0xa10071=new Set([...this[_0x152e('0xe3')][_0x152e('0x8b')](),...this[_0x152e('0x36')][_0x152e('0x8b')]()]);_0xa10071[_0x152e('0x102')](_0x152e('0x54'));for(const _0x4da72e of _0xa10071){const _0x1ac8bc=this['_diffRoots']['get'](_0x4da72e)||G(_0x4da72e,!0x1),_0x5afd22=this['_baseRoots']['get'](_0x4da72e)||G(_0x4da72e,!0x1);_0x1ac8bc['isAttached']()||_0x5afd22['isAttached']()?(_0x58847f[_0x152e('0xb6')][_0x4da72e]=q(_0x1ac8bc),_0x58847f['deletions'][_0x4da72e]=q(_0x5afd22),this[_0x152e('0x6f')](_0x58847f[_0x152e('0xbe')][_0x4da72e],_0x5afd22),this[_0x152e('0x6f')](_0x58847f[_0x152e('0xb6')][_0x4da72e],_0x1ac8bc),_0x51f975[_0x152e('0xb6')][_0x4da72e]=this[_0x152e('0x103')](this['_idsRoots'][_0x152e('0x7d')](_0x4da72e),[]),_0x51f975['deletions'][_0x4da72e]=this[_0x152e('0x103')](this[_0x152e('0xac')][_0x152e('0x7d')](_0x4da72e)||G(_0x4da72e,!0x1),[])):_0xa10071['delete'](_0x4da72e);}for(const _0x2e269d of _0xa10071){const _0x2b24c3=_0x51f975[_0x152e('0xb6')][_0x2e269d];for(const _0xe3ec07 of _0x2b24c3){const _0xdc6996=this[_0x152e('0xe0')](_0xe3ec07),_0x24db80=_0xe3ec07[_0x152e('0x44')]['getAttribute'](_0xdc6996);_0x1aa38d['delete'](_0x24db80),_0x24db80>=this[_0x152e('0xf1')]&&_0x319080['set'](_0x24db80,_0x527025['get'](_0x24db80));}}for(const _0x5892b6 of _0xa10071){const _0x21614a=_0x51f975[_0x152e('0xb6')][_0x5892b6],_0x18276e=this[_0x152e('0x41')](_0x51f975['deletions'][_0x5892b6]);let _0x53b53a=0x0;for(const _0x392b70 of _0x21614a){const _0x2fea2c=this[_0x152e('0xe0')](_0x392b70),_0x252e6a=_0x392b70[_0x152e('0x44')][_0x152e('0x72')](_0x2fea2c);if(!_0x319080[_0x152e('0xf3')](_0x252e6a)&&!_0x41a86d[_0x152e('0xf3')](_0x252e6a)){if(_0x1aa38d[_0x152e('0xf3')](_0x252e6a))_0x53b53a++;else{if(_0x252e6a!=_0x18276e[_0x53b53a]){const _0x3bd0bf=_0x527025[_0x152e('0x7d')](_0x252e6a)||_0x527025['get'](_0x18276e[_0x53b53a]);for(;_0x252e6a!=_0x18276e[_0x53b53a];)_0x1aa38d[_0x152e('0xf3')](_0x18276e[_0x53b53a])||(_0x41a86d[_0x152e('0x90')](_0x18276e[_0x53b53a],_0x3bd0bf),_0x527025[_0x152e('0x90')](_0x18276e[_0x53b53a],_0x3bd0bf)),_0x53b53a++;}_0x53b53a++;}}}}for(const _0x28388c of _0xa10071){const _0x54e9ee=_0x51f975['insertions'][_0x28388c];for(const _0x20895f of _0x54e9ee){const _0x328071=this[_0x152e('0xe0')](_0x20895f),_0x9bef67=_0x20895f[_0x152e('0x44')][_0x152e('0x72')](_0x328071);if(_0x41a86d[_0x152e('0xf3')](_0x9bef67)){const _0x106d53=_0x41a86d[_0x152e('0x7d')](_0x9bef67);_0x1aa38d[_0x152e('0xf3')](_0x9bef67)||_0x1aa38d['set'](_0x9bef67,{..._0x106d53}),_0x319080['set'](_0x9bef67,{..._0x106d53});}}}for(const _0x592beb of _0x1aa38d[_0x152e('0x8b')]())_0x592beb>=this['_startingRevisionId']&&_0x1aa38d[_0x152e('0x102')](_0x592beb);const _0x800a26=new Map();for(const _0x2385c9 of _0xa10071){let _0x3134=_0x51f975[_0x152e('0xb6')][_0x2385c9];for(const _0x4de9b5 of _0x3134)if(_0x4de9b5[_0x152e('0x44')]['is'](_0x152e('0xfd'),'tableCell')){const _0x1410f8=this[_0x152e('0xe0')](_0x4de9b5),_0x5eae24=_0x4de9b5['item']['getAttribute'](_0x1410f8);if(_0x319080[_0x152e('0xf3')](_0x5eae24)){const _0x330382=_0x4de9b5[_0x152e('0x44')]['parent']['parent'][_0x152e('0x72')]('vid_start'),_0x287450=_0x800a26[_0x152e('0x7d')](_0x330382)||new Set();_0x287450['add'](_0x319080['get'](_0x5eae24)[_0x152e('0xef')]),_0x800a26['set'](_0x330382,_0x287450);}}_0x3134=_0x51f975[_0x152e('0xbe')][_0x2385c9];for(const _0x392fc8 of _0x3134)if(_0x392fc8[_0x152e('0x44')]['is'](_0x152e('0xfd'),_0x152e('0x1b'))){const _0x51f9b1=this[_0x152e('0xe0')](_0x392fc8),_0x2cbbce=_0x392fc8['item'][_0x152e('0x72')](_0x51f9b1);if(_0x1aa38d[_0x152e('0xf3')](_0x2cbbce)){const _0x334370=_0x392fc8[_0x152e('0x44')][_0x152e('0xb9')][_0x152e('0xb9')][_0x152e('0x72')](_0x152e('0x5f')),_0x4f5a93=_0x800a26[_0x152e('0x7d')](_0x334370)||new Set();_0x4f5a93['add'](_0x1aa38d[_0x152e('0x7d')](_0x2cbbce)[_0x152e('0xef')]),_0x800a26[_0x152e('0x90')](_0x334370,_0x4f5a93);}}for(const _0x16370a of _0x800a26[_0x152e('0x8b')]())(_0x319080[_0x152e('0xf3')](_0x16370a)||_0x1aa38d[_0x152e('0xf3')](_0x16370a))&&_0x800a26[_0x152e('0x102')](_0x16370a);}for(const _0x1cbb7f of _0xa10071){const _0x345a0c=_0x51f975[_0x152e('0xb6')][_0x1cbb7f];let _0x17685f=null,_0x41545e=null;for(const _0x30e659 of _0x345a0c){const _0x1881a8=this['_getVidAttributeName'](_0x30e659),_0x81f771=_0x30e659[_0x152e('0x44')][_0x152e('0x72')](_0x1881a8),_0x3fdeec=_0x800a26[_0x152e('0x7d')](_0x81f771);_0x3fdeec&&_0x152e('0x77')==_0x30e659[_0x152e('0x11')]&&(_0x17685f=Array[_0x152e('0x30')](_0x3fdeec)[0x0],_0x41545e=_0x30e659[_0x152e('0x44')]['getAttribute'](_0x152e('0x53'))),_0x17685f&&(_0x1aa38d[_0x152e('0x90')](_0x81f771,{'userId':_0x17685f}),_0x319080[_0x152e('0x90')](_0x81f771,{'userId':_0x17685f})),_0x81f771==_0x41545e&&(_0x17685f=null,_0x41545e=null);}}const _0x2cefbd={},_0xf18bce=new Set();for(const _0x59cfd8 of _0xa10071){const _0x108ab7=_0x58847f[_0x152e('0xbe')][_0x59cfd8],_0x2cd02b=_0x58847f[_0x152e('0xb6')][_0x59cfd8];for(const {userId:_0x26a832}of this[_0x152e('0xa2')][_0x152e('0xc4')]())null!==_0x26a832&&_0xf18bce[_0x152e('0x4')](_0x26a832);for(const {userId:_0x2473c1}of this[_0x152e('0xfb')][_0x152e('0xc4')]())null!==_0x2473c1&&_0xf18bce[_0x152e('0x4')](_0x2473c1);this['_markChanges'](_0x2cd02b,_0x51f975['insertions'][_0x59cfd8],_0x319080,_0x152e('0xad'),_0xf18bce),this[_0x152e('0xd3')](_0x108ab7,_0x51f975[_0x152e('0xbe')][_0x59cfd8],_0x1aa38d,_0x152e('0x55'),_0xf18bce),_0x2cefbd[_0x59cfd8]={'insertions':this[_0x152e('0x23')](_0x2cd02b),'deletions':this[_0x152e('0x23')](_0x108ab7),'attachChange':this['_touchedRoots'][_0x152e('0x7d')](_0x59cfd8)||null,'attributesBefore':_0x5cb0d4(this[_0x152e('0x65')]['get'](_0x59cfd8))||{},'attributesAfter':_0x5cb0d4(this[_0x152e('0x22')][_0x152e('0x7d')](_0x59cfd8))};}return{'diffData':_0x2cefbd,'authorsIds':Array[_0x152e('0x30')](_0xf18bce)};}[_0x152e('0x5c')](_0x4bf3b5){for(const [,_0x1cb33c]of _0x4bf3b5[_0x152e('0x9c')]){const _0x197802=_0x1cb33c[_0x152e('0x8c')][_0x152e('0x3c')]()[_0x152e('0x4d')](_0x514bf4=>_0x152e('0x1b')==_0x514bf4[_0x152e('0xcc')]);for(const _0x32677e of _0x197802)0x1==_0x32677e[_0x152e('0x1f')]&&_0x32677e[_0x152e('0x35')](0x0)['is'](_0x152e('0xfd'),'paragraph')&&_0x32677e['getChild'](0x0)[_0x152e('0x80')](_0x152e('0x18'),!0x0);}}['_prepareViewToSave'](_0x2bf95d){this[_0x152e('0x5c')](_0x2bf95d);const _0x100a8e=this[_0x152e('0x7')][_0x152e('0x2c')]['toView'](_0x2bf95d,{}),_0x3aee73=Array[_0x152e('0x30')](_0x100a8e['getChildren']())[_0x152e('0xd8')](_0x41b4e7=>this[_0x152e('0x57')](_0x41b4e7));return JSON['stringify'](_0x3aee73);}['_getViewJson'](_0x434d1d){if(_0x434d1d['is'](_0x152e('0x2')))return _0x434d1d[_0x152e('0x2c')];{const _0x19c404=_0x434d1d;return{'type':Object[_0x152e('0x8b')](B)['find'](_0x29f6ef=>_0x434d1d instanceof B[_0x29f6ef]),'name':_0x19c404['name'],'attributes':Array['from'](_0x19c404['getAttributes']()),'children':Array['from'](_0x19c404[_0x152e('0xc2')]())['map'](_0x23e2a8=>this[_0x152e('0x57')](_0x23e2a8))};}}['_markChanges'](_0x41a74e,_0x17e364,_0x46936d,_0x3beb81,_0x7ab45c){let _0x7988ce=null,_0x23a1fa=null,_0x1ea5fe=0x0;const _0x3fca28=this[_0x152e('0x7')][_0x152e('0x10a')];for(let _0x2ffdf9=0x0;_0x2ffdf9<_0x17e364['length'];_0x2ffdf9++){const _0x24e20b=this[_0x152e('0xe0')](_0x17e364[_0x2ffdf9]),_0x2bb387=_0x17e364[_0x2ffdf9]['item']['getAttribute'](_0x24e20b),_0x41ed32=_0x46936d[_0x152e('0x7d')](_0x2bb387),_0x21b081=_0x2ffdf9==_0x17e364[_0x152e('0x8a')]-0x1;(!_0x7988ce&&_0x41ed32&&(_0x7988ce=_0x41ed32,_0x23a1fa=_0x17e364[_0x2ffdf9]),_0x7988ce&&(!_0x41ed32||_0x41ed32['userId']!=_0x7988ce[_0x152e('0xef')]))&&(_0x26d624(_0x41ed32,L(_0x23a1fa,_0x41a74e,_0x3fca28),L(_0x17e364[_0x2ffdf9],_0x41a74e,_0x3fca28)),_0x7988ce=_0x41ed32||null,_0x23a1fa=_0x41ed32?_0x17e364[_0x2ffdf9]:null),_0x7988ce&&_0x21b081&&_0x26d624(_0x41ed32,L(_0x23a1fa,_0x41a74e,_0x3fca28),W(_0x17e364[_0x2ffdf9],_0x41a74e,_0x3fca28));}function _0x26d624(_0x3a5b0b,_0x2911c1,_0x14d07c){const _0x524ab9=_0x7988ce[_0x152e('0xef')],_0x17fd2b=_0x152e('0xa8')+_0x3beb81+':'+_0x524ab9+':'+_0x1ea5fe++,_0x5126fa=_0x3fca28['createRange'](_0x2911c1,_0x14d07c);_0x41a74e[_0x152e('0x9c')][_0x152e('0x90')](_0x17fd2b,_0x5126fa),null!==_0x524ab9&&_0x7ab45c[_0x152e('0x4')](_0x524ab9);}}['_getVidAttributeName'](_0x22f369){switch(_0x22f369[_0x152e('0x11')]){case _0x152e('0x77'):return _0x152e('0x5f');case'elementEnd':return _0x152e('0x53');default:return _0x152e('0x92');}}[_0x152e('0x40')](_0x5a0341,_0x5e1067){_0x5a0341[_0x152e('0x7c')]=null;for(const _0x7388a1 in _0x5a0341){const _0xe29e20=_0x5a0341[_0x7388a1];if(_0xe29e20 instanceof _0x144535){const _0x514900=_0x5e1067[_0x152e('0x7d')](_0xe29e20[_0x152e('0x91')][_0x152e('0xfc')]);_0x5a0341[_0x7388a1]=this[_0x152e('0x20')](_0xe29e20,_0x514900);}if(_0xe29e20 instanceof _0x350b1c){const _0x5e8484=_0x5e1067[_0x152e('0x7d')](_0xe29e20[_0x152e('0x91')][_0x152e('0xfc')]);_0x5a0341[_0x7388a1]=this[_0x152e('0x8f')](_0xe29e20,_0x5e8484);}'root'===_0x7388a1&&(_0x5a0341['root']=_0x5e1067[_0x152e('0x7d')](_0x5a0341['root'][_0x152e('0xfc')]));}}[_0x152e('0x8f')](_0x2a407c,_0xd26488){return this['editor'][_0x152e('0x10a')][_0x152e('0x1')](this[_0x152e('0x20')](_0x2a407c[_0x152e('0x8c')],_0xd26488),this[_0x152e('0x20')](_0x2a407c['end'],_0xd26488));}['_fixPosition'](_0x7eacd5,_0x21eaa5){return this[_0x152e('0x7')][_0x152e('0x10a')]['createPositionFromPath'](_0x21eaa5,_0x7eacd5['path'],_0x7eacd5[_0x152e('0xda')]);}[_0x152e('0x42')](_0x254bfc){const _0x51072f=this[_0x152e('0xdd')][_0x152e('0x7d')](_0x254bfc[_0x152e('0x1a')][_0x152e('0x91')][_0x152e('0xfc')]),_0x2925fb=this[_0x152e('0x20')](_0x254bfc[_0x152e('0x1a')],_0x51072f),_0x5c1646=null===_0x254bfc[_0x152e('0x10')]?null:_0x254bfc[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x236dd3=_0x2925fb['parent'],_0x4f8ca6=this[_0x152e('0x31')],_0x37019d=[];for(const _0x17ba11 of _0x254bfc[_0x152e('0xee')])if(_0x17ba11['is'](_0x152e('0xfd')))_0x37019d[_0x152e('0xf2')](this[_0x152e('0x100')](_0x17ba11));else for(let _0xee987c=0x0;_0xee987c<_0x17ba11[_0x152e('0x24')];_0xee987c++)_0x37019d[_0x152e('0xf2')](new _0x45dbcc(_0x152e('0x2'),{'vid':this[_0x152e('0x31')]++}));const _0x4f2966=this['_revisionId'];for(let _0x6430b9=_0x4f8ca6;_0x6430b9<_0x4f2966;_0x6430b9++)this[_0x152e('0x37')][_0x152e('0x90')](_0x6430b9,{'userId':_0x5c1646});_0x236dd3[_0x152e('0xd6')](_0x2925fb[_0x152e('0xdf')],_0x37019d);}['_handleMoveOperation'](_0x5cc9ee){(_0x5cc9ee=this[_0x152e('0x29')](_0x5cc9ee,this[_0x152e('0xdd')]))[_0x152e('0xfa')]();const _0x38bda1=null===_0x5cc9ee[_0x152e('0x10')]?null:_0x5cc9ee['_authorId']||this[_0x152e('0x7')][_0x152e('0x26')]['get']('Users')['me']['id'],_0x1b6ddd=_0x5cc9ee[_0x152e('0x4b')](),_0x1f779f=_0x1b6ddd[_0x152e('0xb9')],_0xf88967=_0x1b6ddd[_0x152e('0xdf')];!function _0x131cd4(_0x31ed56,_0x2157b3,_0x54550f,_0x1b01fe){for(let _0x1bb51b=_0x54550f;_0x1bb51b<_0x1b01fe;_0x1bb51b++){const _0x45fdd6=_0x2157b3[_0x152e('0x35')](_0x1bb51b);_0x45fdd6['is'](_0x152e('0xfd'),_0x152e('0x2'))?_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')]('vid'),{'userId':_0x38bda1}):(_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')](_0x152e('0x5f')),{'userId':_0x38bda1}),_0x131cd4(_0x31ed56,_0x45fdd6,0x0,_0x45fdd6[_0x152e('0x1f')]),_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')]('vid_end'),{'userId':_0x38bda1}));}}(this['_touched'],_0x1f779f,_0xf88967,_0xf88967+_0x5cc9ee[_0x152e('0x38')]);}[_0x152e('0x7e')](_0x25ab4f){const _0x291a30=null===(_0x25ab4f=this[_0x152e('0x29')](_0x25ab4f,this[_0x152e('0xdd')]))[_0x152e('0x10')]?null:_0x25ab4f['_authorId']||this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0xbb0149=_0x25ab4f[_0x152e('0xaf')][_0x152e('0xb9')],_0x27f782=_0x25ab4f[_0x152e('0x69')]['parent'],_0x381e62=_0xbb0149[_0x152e('0x72')](_0x152e('0x53')),_0x49cfef=_0x27f782['getAttribute'](_0x152e('0x5f'));_0xbb0149[_0x152e('0x80')](_0x152e('0x53'),_0x27f782['getAttribute'](_0x152e('0x53'))),_0x27f782['_setAttribute']('vid_end',_0x381e62),this[_0x152e('0x37')]['set'](_0x49cfef,{'userId':_0x291a30}),this[_0x152e('0x37')]['set'](_0x381e62,{'userId':_0x291a30}),_0x25ab4f['_execute']();}['_handleSplitOperation'](_0x5068ef){const _0x4726e0=null===(_0x5068ef=this[_0x152e('0x29')](_0x5068ef,this['_idsRoots']))[_0x152e('0x10')]?null:_0x5068ef[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x2ce398=_0x5068ef['graveyardPosition'],_0x9ba176=_0x5068ef[_0x152e('0xbc')]['parent'];_0x5068ef[_0x152e('0xfa')]();const _0x5b7c41=_0x9ba176[_0x152e('0x72')](_0x152e('0x53')),_0x3f7e88=_0x5068ef['insertionPosition'][_0x152e('0xf8')];if(_0x2ce398){const _0x2fdb6c=_0x3f7e88[_0x152e('0x72')](_0x152e('0x53')),_0x5972ea=_0x9ba176[_0x152e('0x72')]('vid_end');_0x9ba176[_0x152e('0x80')](_0x152e('0x53'),_0x2fdb6c),_0x3f7e88[_0x152e('0x80')](_0x152e('0x53'),_0x5972ea),this[_0x152e('0x37')][_0x152e('0x90')](_0x9ba176[_0x152e('0x72')](_0x152e('0x53')),{'userId':_0x4726e0}),this[_0x152e('0x37')][_0x152e('0x90')](_0x3f7e88[_0x152e('0x72')](_0x152e('0x5f')),{'userId':_0x4726e0});}else{const _0xe5e740=this[_0x152e('0x31')]++,_0x10f599=this[_0x152e('0x31')]++;_0x9ba176[_0x152e('0x80')]('vid_end',_0xe5e740),_0x3f7e88[_0x152e('0x80')](_0x152e('0x5f'),_0x10f599),_0x3f7e88[_0x152e('0x80')]('vid_end',_0x5b7c41),this[_0x152e('0x37')][_0x152e('0x90')](_0xe5e740,{'userId':_0x4726e0}),this[_0x152e('0x37')][_0x152e('0x90')](_0x10f599,{'userId':_0x4726e0});}}[_0x152e('0x98')](_0x2031d8){if(!_0x2031d8['affectsData'])return;const _0x511202=(_0x2031d8=this[_0x152e('0x29')](_0x2031d8,this['_diffRoots']))[_0x152e('0xf')]?_0x2031d8[_0x152e('0xf')]['root']:null,_0x2e2291=_0x2031d8['newRange']?_0x2031d8['newRange'][_0x152e('0x91')]:null;_0x511202&&this[_0x152e('0xc5')][_0x152e('0x102')](_0x2031d8['name']),_0x2e2291&&this[_0x152e('0xc5')][_0x152e('0x90')](_0x2031d8['name'],_0x2031d8['newRange'][_0x152e('0xb0')]());const _0x4a00c2=null===_0x2031d8[_0x152e('0x10')]?null:_0x2031d8[_0x152e('0x10')]||this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x308aec=_0x2031d8['name'];if(!this['_touchedMarkers'][_0x152e('0xf3')](_0x308aec))return void this[_0x152e('0xa2')][_0x152e('0x90')](_0x308aec,{'range':_0x2031d8[_0x152e('0xf')],'userId':_0x4a00c2});const _0x4a70df=this[_0x152e('0xa2')][_0x152e('0x7d')](_0x308aec),_0x2ab8e0=_0x4a70df[_0x152e('0x7f')],_0x47b360=_0x2031d8[_0x152e('0x95')];null==_0x2ab8e0&&null==_0x47b360||_0x2ab8e0&&_0x47b360&&_0x2ab8e0[_0x152e('0xeb')](_0x47b360)?this[_0x152e('0xa2')][_0x152e('0x102')](_0x2031d8[_0x152e('0xcc')]):_0x4a70df[_0x152e('0xef')]=_0x4a00c2;}[_0x152e('0xa5')](_0x4b4b3e,_0x3e6c4e){this[_0x152e('0x36')]['has'](_0x4b4b3e['rootName'])?this['_diffRoots'][_0x152e('0x7d')](_0x4b4b3e[_0x152e('0xfc')])[_0x152e('0xff')]=_0x4b4b3e[_0x152e('0x4e')]:(this['_diffRoots'][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],G(_0x4b4b3e[_0x152e('0xfc')],!0x0)),this[_0x152e('0x22')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],{}),_0x3e6c4e&&this[_0x152e('0xdd')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],G(_0x4b4b3e['rootName'],!0x0)));const _0x355a88=null===_0x4b4b3e[_0x152e('0x10')]?null:_0x4b4b3e[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x809b27=this['_touchedRoots'][_0x152e('0x7d')](_0x4b4b3e[_0x152e('0xfc')]);_0x809b27&&_0x809b27[_0x152e('0xef')]===_0x355a88?this[_0x152e('0xfb')][_0x152e('0x102')](_0x4b4b3e[_0x152e('0xfc')]):this[_0x152e('0xfb')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],{'userId':_0x355a88,'isAttached':_0x4b4b3e[_0x152e('0x4e')]});}[_0x152e('0xb3')](_0x37cf9f){const _0x55bab9=this[_0x152e('0x22')][_0x152e('0x7d')](_0x37cf9f[_0x152e('0x91')][_0x152e('0xfc')]);null===_0x37cf9f[_0x152e('0xbd')]?delete _0x55bab9[_0x37cf9f[_0x152e('0xe9')]]:_0x55bab9[_0x37cf9f[_0x152e('0xe9')]]=_0x37cf9f[_0x152e('0xbd')];}}function q(_0x1dc292){const _0x2dff38=G(_0x1dc292[_0x152e('0xfc')],_0x1dc292[_0x152e('0xec')]());for(const _0x5b9efb of _0x1dc292[_0x152e('0xc2')]()){const _0x3528cc=_0x5b9efb[_0x152e('0x75')](!0x0);_0x2dff38[_0x152e('0x45')](_0x3528cc);}return _0x2dff38;}function G(_0x2cefed,_0x2708db=!0x0){const _0x1cdd82=new _0x287911();return _0x1cdd82[_0x152e('0xfc')]=_0x2cefed,_0x1cdd82['_isAttached']=_0x2708db,_0x1cdd82[_0x152e('0xec')]=()=>_0x1cdd82[_0x152e('0xff')],_0x1cdd82;}function L(_0x5aec21,_0x13459e,_0x153e92){const _0x37fb45='elementEnd'==_0x5aec21[_0x152e('0x11')]?_0x153e92[_0x152e('0xdc')](_0x5aec21[_0x152e('0x44')],'end'):_0x153e92[_0x152e('0x104')](_0x5aec21[_0x152e('0x44')]);return _0x153e92[_0x152e('0x33')](_0x13459e,_0x37fb45[_0x152e('0x39')],_0x37fb45['stickiness']);}function W(_0x121095,_0x441fa8,_0xbab644){const _0xa7fc59=_0x152e('0x77')==_0x121095[_0x152e('0x11')]?_0xbab644['createPositionAt'](_0x121095[_0x152e('0x44')],0x0):_0xbab644[_0x152e('0xc1')](_0x121095[_0x152e('0x44')]);return _0xbab644[_0x152e('0x33')](_0x441fa8,_0xa7fc59['path'],_0xa7fc59[_0x152e('0xda')]);}
|
package/src/revisionviewer.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
import '../theme/revisionviewer.css';
|
|
6
|
-
/**
|
|
7
|
-
function printTape( tape ) {
|
|
8
|
-
const elements = tape.map(
|
|
9
|
-
item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
|
|
10
|
-
).join( '' );
|
|
11
|
-
|
|
12
|
-
const signs = tape.map( v => {
|
|
13
|
-
const item = v.item;
|
|
14
|
-
const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
|
|
15
|
-
const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
|
|
16
|
-
|
|
17
|
-
return sign.repeat( len );
|
|
18
|
-
} ).join( '' );
|
|
19
|
-
|
|
20
|
-
console.log( elements );
|
|
21
|
-
console.log( signs );
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
window.printTape = printTape;
|
|
25
|
-
/**/
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import '../theme/revisionviewer.css';
|
|
6
|
+
/**
|
|
7
|
+
function printTape( tape ) {
|
|
8
|
+
const elements = tape.map(
|
|
9
|
+
item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
|
|
10
|
+
).join( '' );
|
|
11
|
+
|
|
12
|
+
const signs = tape.map( v => {
|
|
13
|
+
const item = v.item;
|
|
14
|
+
const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
|
|
15
|
+
const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
|
|
16
|
+
|
|
17
|
+
return sign.repeat( len );
|
|
18
|
+
} ).join( '' );
|
|
19
|
+
|
|
20
|
+
console.log( elements );
|
|
21
|
+
console.log( signs );
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
window.printTape = printTape;
|
|
25
|
+
/**/
|