@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250602.0 → 0.0.0-nightly-20250604.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2a9c92(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfd6e88){super(),this['id']=_0xfd6e88['id']||_0x47a55d(),this['creator']=_0xfd6e88['creator']||null,this['authors']=_0xfd6e88['authors']||[],this['diffData']=_0xfd6e88['diffData']||null,this['toVersion']=_0xfd6e88['toVersion']||0x0,this['fromVersion']=_0xfd6e88['fromVersion']||0x0,this['set']('name',_0xfd6e88['name']||''),this['set']('createdAt',_0xfd6e88['createdAt']||new Date()),this['set']('attributes',_0xfd6e88['attributes']||{});}['setName'](_0x1739c3){this['_update']({'name':_0x1739c3});}['setAttribute'](_0x5c0b3c,_0x54addb){const _0x35300c=_0x4e664b(this['attributes']);_0x383aa0(_0x35300c,_0x5c0b3c,_0x54addb),this['_update']({'attributes':_0x35300c});}['removeAttribute'](_0x355c6b){const _0x42ab98=_0x4e664b(this['attributes']);_0x36fb08(_0x42ab98,_0x355c6b),this['_update']({'attributes':_0x42ab98});}['_update'](_0x2d0d1d,_0x55ecaa=!0x1){let _0x298a85=!0x1;const _0x1e3b6b={'id':this['id']},_0x445c05=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x26d6c3 of _0x445c05){const _0x3632c4=_0x2d0d1d[_0x26d6c3];void 0x0!==_0x3632c4&&_0x3632c4!==this[_0x26d6c3]&&(this[_0x26d6c3]=_0x3632c4,_0x1e3b6b[_0x26d6c3]=_0x3632c4,_0x298a85=!0x0);}_0x298a85&&(_0x1e3b6b['authors']&&(_0x1e3b6b['authorsIds']=_0x1e3b6b['authors']['map'](_0xaed1f3=>_0xaed1f3['id']),delete _0x1e3b6b['authors']),this['fire']('_update',_0x1e3b6b,_0x55ecaa));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3fa59b=>_0x3fa59b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x2f4267{['_revisions'];static get['requires'](){return[_0x5d01d3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x389a0c){super(_0x389a0c),this['_revisions']=new _0x1cbdeb();}['afterInit'](){!async function(_0x3911da){const _0x50f5ab=_0x1f6f88([0x6d,0x64,0x32,0x6c,0x48,0x31,0x77,0x36,0x55,0x69,0x6f,0x35,0x63,0x57,0x6a,0x75,0x50,0x62,0x41,0x39,0x6e,0x78,0x42,0x4c,0x33,0x71,0x76,0x59,0x74,0x4e,0x49,0x30,0x6b,0x58,0x4d,0x34,0x52,0x37,0x54,0x51,0x44,0x79,0x4a,0x38,0x45,0x4f,0x47,0x5a,0x66,0x43,0x7a,0x56,0x72,0x67,0x70,0x61,0x68,0x73,0x4b,0x46,0x65,0x53]),_0x2d26f8=0xeb829,_0x1a6518=0x18c6843,_0x34324b=0x18b01db^_0x1a6518,_0x77b43d=window[_0x1f6f88([0x44,0x61,0x74,0x65])][_0x1f6f88([0x6e,0x6f,0x77])](),_0x12a947=_0x3911da[_0x1f6f88([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d6893=new window[(_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3694eb=>{_0x12a947[_0x1f6f88([0x6f,0x6e,0x63,0x65])](_0x1f6f88([0x72,0x65,0x61,0x64,0x79]),_0x3694eb);}),_0x2edfc={[_0x1f6f88([0x6b,0x74,0x79])]:_0x1f6f88([0x45,0x43]),[_0x1f6f88([0x75,0x73,0x65])]:_0x1f6f88([0x73,0x69,0x67]),[_0x1f6f88([0x63,0x72,0x76])]:_0x1f6f88([0x50,0x2d,0x32,0x35,0x36]),[_0x1f6f88([0x78])]:_0x1f6f88([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1f6f88([0x79])]:_0x1f6f88([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1f6f88([0x61,0x6c,0x67])]:_0x1f6f88([0x45,0x53,0x32,0x35,0x36])},_0x5d8c19=_0x12a947[_0x1f6f88([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f6f88([0x67,0x65,0x74])](_0x1f6f88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x499bd6(){let _0x4c31a6,_0x24b2dd=null,_0x447f77=null;try{if(_0x5d8c19==_0x1f6f88([0x47,0x50,0x4c]))return _0x1f6f88([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c31a6=_0x533452(),!_0x4c31a6)return _0x1f6f88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c31a6[_0x1f6f88([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x447f77=_0x7d8bdb(_0x4c31a6[_0x1f6f88([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c31a6[_0x1f6f88([0x6a,0x74,0x69])])),await _0x17e3ab()?_0x3e9a5b()?_0x5bbf84()?_0x1f6f88([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d4d7f()?(_0x4c31a6[_0x1f6f88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f6f88([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24b2dd=_0x542536(_0x1f6f88([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c31a6[_0x1f6f88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f6f88([0x74,0x72,0x69,0x61,0x6c])&&(_0x24b2dd=_0x542536(_0x1f6f88([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x457ba3()):_0x1f6f88([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f6f88([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f6f88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f6f88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bbf84(){const _0x2f3bf1=[_0x1f6f88([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f6f88([0x74,0x72,0x69,0x61,0x6c])][_0x1f6f88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c31a6[_0x1f6f88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x77b43d/0x3e8:0xe10*_0x34324b;return _0x4c31a6[_0x1f6f88([0x65,0x78,0x70])]<_0x2f3bf1;}function _0x3e9a5b(){const _0x128853=_0x4c31a6[_0x1f6f88([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x128853)return!0x1;if(_0x128853[_0x1f6f88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6f88([0x2a])))return!0x0;if(_0x128853[_0x1f6f88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6f88([0x52,0x48])))return!0x0;if(_0x128853[_0x1f6f88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6f88([0x52,0x52,0x48]))){if(_0x204dbb())return!0x0;if(_0x4c0bf6()||_0x582b54())return!0x0;}return!0x1;}function _0x1d4d7f(){const _0x2642c8=_0x4c31a6[_0x1f6f88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2642c8||0x0==_0x2642c8[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d35d2}=new URL(window[_0x1f6f88([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2642c8[_0x1f6f88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d35d2))return!0x0;const _0x3e440e=_0x4d35d2[_0x1f6f88([0x73,0x70,0x6c,0x69,0x74])](_0x1f6f88([0x2e]));return _0x2642c8[_0x1f6f88([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51a50d=>_0x51a50d[_0x1f6f88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6f88([0x2a])))[_0x1f6f88([0x6d,0x61,0x70])](_0x364235=>_0x364235[_0x1f6f88([0x73,0x70,0x6c,0x69,0x74])](_0x1f6f88([0x2e])))[_0x1f6f88([0x73,0x6f,0x6d,0x65])](_0x50bb2e=>_0x3e440e[_0x1f6f88([0x65,0x76,0x65,0x72,0x79])]((_0x28cfb0,_0x1b76d6)=>_0x50bb2e[_0x1b76d6]===_0x28cfb0||_0x50bb2e[_0x1b76d6]===_0x1f6f88([0x2a])));}function _0x457ba3(){return _0x24b2dd&&_0x447f77?new window[(_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f241b,_0x2eb0aa)=>{_0x24b2dd[_0x1f6f88([0x74,0x68,0x65,0x6e])](_0x1f241b,_0x2eb0aa),_0x447f77[_0x1f6f88([0x74,0x68,0x65,0x6e])](_0x21fdc7=>{_0x21fdc7!=_0x1f6f88([0x56,0x61,0x6c,0x69,0x64])&&_0x1f241b(_0x21fdc7);},_0x2eb0aa);}):_0x24b2dd||_0x447f77||_0x1f6f88([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7d8bdb(_0x39b52e,_0x5f1a4a){return new window[(_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x997fc=>{if(_0x57f31b())return _0x997fc(_0x1f6f88([0x56,0x61,0x6c,0x69,0x64]));_0x410eae(),_0x12a947[_0x1f6f88([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f6f88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x366b59=!0x1;const _0x58678b=_0x47a55d();function _0x535119(_0x3b5013){return!!_0x3b5013&&(typeof _0x3b5013===_0x1f6f88([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b5013===_0x1f6f88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b5013[_0x1f6f88([0x74,0x68,0x65,0x6e])]===_0x1f6f88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b5013[_0x1f6f88([0x63,0x61,0x74,0x63,0x68])]===_0x1f6f88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4054ce(_0x25d6f7){_0x3beb4d(_0x25d6f7)[_0x1f6f88([0x74,0x68,0x65,0x6e])](_0x3ba766=>{if(!_0x3ba766||_0x3ba766[_0x1f6f88([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f6f88([0x6f,0x6b]))return _0x1f6f88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c6882(_0x3c27c9(_0x58678b+_0x5f1a4a))!=_0x3ba766[_0x1f6f88([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f6f88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f6f88([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f6f88([0x74,0x68,0x65,0x6e])](_0x94b75a=>(_0x17ab83(),_0x94b75a),()=>{const _0x40922a=_0x3f4237();return null==_0x40922a?(_0x17ab83(),_0x1f6f88([0x56,0x61,0x6c,0x69,0x64])):_0x1f6f88(_0x77b43d-_0x40922a>(0x2580ec43^_0x1a6518)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f6f88([0x74,0x68,0x65,0x6e])](_0x997fc)[_0x1f6f88([0x63,0x61,0x74,0x63,0x68])](()=>{_0x997fc(_0x1f6f88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ef906=0x1ba86c3^_0x1a6518;function _0x17ab83(){const _0x6ad4de=_0x1f6f88([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c6882(_0x3c27c9(_0x39b52e)),_0x59eeed=_0xbc13b4(_0x1c6882(window[_0x1f6f88([0x4d,0x61,0x74,0x68])][_0x1f6f88([0x63,0x65,0x69,0x6c])](_0x77b43d/_0x1ef906)));window[_0x1f6f88([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f6f88([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6ad4de,_0x59eeed);}function _0x3f4237(){const _0x3f689a=_0x1f6f88([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c6882(_0x3c27c9(_0x39b52e)),_0x6cba79=window[_0x1f6f88([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f6f88([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f689a);return _0x6cba79?window[_0x1f6f88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc13b4(_0x6cba79),0x10)*_0x1ef906:null;}function _0x3beb4d(_0x1a9fef){return new window[(_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1db879,_0x1fc430)=>{_0x1a9fef[_0x1f6f88([0x74,0x68,0x65,0x6e])](_0x1db879,_0x1fc430),window[_0x1f6f88([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fc430,0x18dbc83^_0x1a6518);});}}_0x12a947[_0x1f6f88([0x6f,0x6e])](_0x1f6f88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6d9347,_0x40b409)=>{if(_0x40b409[0x0]!=_0x39b52e)return _0x997fc(_0x1f6f88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40b409[0x1]={..._0x40b409[0x1],[_0x1f6f88([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58678b};},{[_0x1f6f88([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f6f88([0x68,0x69,0x67,0x68])}),_0x12a947[_0x1f6f88([0x6f,0x6e])](_0x1f6f88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x366a43=>{_0x535119(_0x366a43[_0x1f6f88([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x366b59=!0x0,_0x4054ce(_0x366a43[_0x1f6f88([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f6f88([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f6f88([0x6c,0x6f,0x77])}),_0x1d6893[_0x1f6f88([0x74,0x68,0x65,0x6e])](()=>{_0x366b59||_0x997fc(_0x1f6f88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57f31b(){return _0x12a947[_0x1f6f88([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f6f88([0x76,0x69,0x65,0x77])][_0x1f6f88([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f6f88([0x61,0x75,0x74,0x6f]);}function _0x410eae(){_0x12a947[_0x1f6f88([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f6f88([0x76,0x69,0x65,0x77])][_0x1f6f88([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f6f88([0x61,0x75,0x74,0x6f]);}}function _0x542536(_0x598b8e){const _0x37925c=[new window[(_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4348c0=>setTimeout(_0x4348c0,0x185568f^_0x1a6518)),_0x1d6893[_0x1f6f88([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58a174=>{const _0x50ae88=0x18c6844^_0x1a6518,_0x57da3c=_0x3911da[_0x1f6f88([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5578e9(){_0x57da3c[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50ae88&&_0x58a174();}_0x5578e9(),_0x57da3c[_0x1f6f88([0x6f,0x6e])](_0x1f6f88([0x61,0x64,0x64]),_0x5578e9);})),new window[(_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34df53=>{function _0x3c9937(){for(const _0x59bee1 in window)if(window[_0x1f6f88([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1f6f88([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59bee1))&&window[_0x59bee1]==_0x2d26f8)return _0x34df53();_0x12a947[_0x1f6f88([0x73,0x74,0x61,0x74,0x65])]!=_0x1f6f88([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1f6f88([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c9937,0x18c7bcb^_0x1a6518);}_0x23bddd(_0x1f6f88([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3c9937();})];return window[_0x1f6f88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f6f88([0x72,0x61,0x63,0x65])](_0x37925c)[_0x1f6f88([0x74,0x68,0x65,0x6e])](()=>_0x598b8e);}async function _0x51416a(){if(await _0x1d6893,_0x23bddd(_0x1f6f88([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x250279=_0x3911da[_0x1f6f88([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x446a7d=_0x3911da[_0x1f6f88([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x250279[_0x1f6f88([0x69,0x64])]),_0xc21e19=_0x1f883e(_0x1f6f88([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xc21e19[_0x1f6f88([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x250279['id'],_0x446a7d?_0x446a7d['id']:null,!0x0),_0xc21e19[_0x1f6f88([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1f6f88([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xc21e19[_0x1f6f88([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xc21e19[_0x1f6f88([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x185409,void(_0xc21e19[_0x1f6f88([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x185409);}if(_0x23bddd(_0x1f6f88([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5db4bd=_0x1f883e(_0x1f6f88([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5db4bd[_0x1f6f88([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1f6f88([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5db4bd[_0x1f6f88([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5db4bd[_0x1f6f88([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x185409,_0x5db4bd[_0x1f6f88([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x185409;}_0x12a947[_0x1f6f88([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f6f88([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x185409,_0x12a947[_0x1f6f88([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f6f88([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x185409,_0x12a947[_0x1f6f88([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f6f88([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x204dbb(){return _0x23bddd(_0x1f6f88([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f883e(_0x1f6f88([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1f6f88([0x73,0x74,0x61,0x74,0x65])]==_0x1f6f88([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c0bf6(){return _0x23bddd(_0x1f6f88([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x582b54(){return _0x23bddd(_0x1f6f88([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x149b37(_0x30d295){const _0x46a991=_0x31fd63();_0x12a947[_0x46a991]=_0x1f6f88([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30d295,_0x30d295[_0x1f6f88([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1f6f88([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31fd63()]=_0x2d26f8),_0x30d295!=_0x1f6f88([0x56,0x61,0x6c,0x69,0x64])&&_0x51416a();}function _0x31fd63(){const _0x3dd0aa=window[_0x1f6f88([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f6f88([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f6f88([0x6e,0x6f,0x77])]())[_0x1f6f88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f6f88([0x2e]),'');let _0x541b7f=_0x1f6f88([0x6d]);for(let _0x46321c=0x0;_0x46321c<_0x3dd0aa[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46321c+=0x2){let _0x19b82f=window[_0x1f6f88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd0aa[_0x1f6f88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46321c,_0x46321c+0x2));_0x19b82f>=_0x50f5ab[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19b82f-=_0x50f5ab[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x541b7f+=_0x50f5ab[_0x19b82f];}return _0x541b7f;}function _0x533452(){const _0x58d4c8=_0x5d8c19[_0x1f6f88([0x73,0x70,0x6c,0x69,0x74])](_0x1f6f88([0x2e]));if(0x3!=_0x58d4c8[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f23eb(_0x58d4c8[0x1]);function _0x4f23eb(_0x415b87){const _0x5b61b5=_0x1ed369(_0x415b87);return _0x5b61b5&&_0x2091f7()?_0x5b61b5:null;function _0x2091f7(){const _0x1436d8=_0x5b61b5[_0x1f6f88([0x6a,0x74,0x69])],_0x1e8fb6=window[_0x1f6f88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1436d8[_0x1f6f88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1436d8[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x494a3f={..._0x5b61b5,[_0x1f6f88([0x6a,0x74,0x69])]:_0x1436d8[_0x1f6f88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1436d8[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x494a3f[_0x1f6f88([0x76,0x63])],_0x3c27c9(_0x494a3f)==_0x1e8fb6;}}}async function _0x17e3ab(){let _0x4f1343=!0x0;try{const _0x3df851=_0x5d8c19[_0x1f6f88([0x73,0x70,0x6c,0x69,0x74])](_0x1f6f88([0x2e])),[_0x171be6,_0x54fbc0,_0x11444a]=_0x3df851;return _0xe387ad(_0x171be6),await _0x18ee6a(_0x171be6,_0x54fbc0,_0x11444a),_0x4f1343;}catch{return!0x1;}function _0xe387ad(_0x5b462c){const _0x524540=_0x1ed369(_0x5b462c);_0x524540&&_0x524540[_0x1f6f88([0x61,0x6c,0x67])]==_0x1f6f88([0x45,0x53,0x32,0x35,0x36])||(_0x4f1343=!0x1);}async function _0x18ee6a(_0x1f6891,_0x1423cc,_0x29a085){const _0x180ab2=window[_0x1f6f88([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f6f88([0x66,0x72,0x6f,0x6d])](_0x36bed0(_0x29a085),_0x1457b9=>_0x1457b9[_0x1f6f88([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52aa67=new window[(_0x1f6f88([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f6f88([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f6891+_0x1f6f88([0x2e])+_0x1423cc),_0x23abaa=window[_0x1f6f88([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f6f88([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23abaa)return;const _0x1d2e1e=await _0x23abaa[_0x1f6f88([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f6f88([0x6a,0x77,0x6b]),_0x2edfc,{[_0x1f6f88([0x6e,0x61,0x6d,0x65])]:_0x1f6f88([0x45,0x43,0x44,0x53,0x41]),[_0x1f6f88([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f6f88([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f6f88([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23abaa[_0x1f6f88([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f6f88([0x6e,0x61,0x6d,0x65])]:_0x1f6f88([0x45,0x43,0x44,0x53,0x41]),[_0x1f6f88([0x68,0x61,0x73,0x68])]:{[_0x1f6f88([0x6e,0x61,0x6d,0x65])]:_0x1f6f88([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d2e1e,_0x180ab2,_0x52aa67)||(_0x4f1343=!0x1);}}function _0x1ed369(_0x233487){return _0x233487[_0x1f6f88([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f6f88([0x65,0x79]))?JSON[_0x1f6f88([0x70,0x61,0x72,0x73,0x65])](_0x36bed0(_0x233487)):null;}function _0x36bed0(_0x556963){return window[_0x1f6f88([0x61,0x74,0x6f,0x62])](_0x556963[_0x1f6f88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f6f88([0x2b]))[_0x1f6f88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f6f88([0x2f])));}function _0x3c27c9(_0x29cdff){let _0x5349e3=0x1505;function _0x2f5c19(_0x4d5e75){for(let _0xcaf032=0x0;_0xcaf032<_0x4d5e75[_0x1f6f88([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcaf032++){const _0x30a791=_0x4d5e75[_0x1f6f88([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xcaf032);_0x5349e3=(_0x5349e3<<0x5)+_0x5349e3+_0x30a791,_0x5349e3&=_0x5349e3;}}function _0x35c22d(_0x3e6fcf){Array[_0x1f6f88([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e6fcf)?_0x3e6fcf[_0x1f6f88([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35c22d):_0x3e6fcf&&typeof _0x3e6fcf==_0x1f6f88([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f6f88([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e6fcf)[_0x1f6f88([0x73,0x6f,0x72,0x74])]()[_0x1f6f88([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x416e6e,_0x408000])=>{_0x2f5c19(_0x416e6e),_0x35c22d(_0x408000);}):_0x2f5c19(window[_0x1f6f88([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e6fcf));}return _0x35c22d(_0x29cdff),_0x5349e3>>>0x0;}function _0x1c6882(_0x473bec){return _0x473bec[_0x1f6f88([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f6f88([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f6f88([0x30]));}function _0xbc13b4(_0x359d1d){return _0x359d1d[_0x1f6f88([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f6f88([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f6f88([0x6a,0x6f,0x69,0x6e])]('');}function _0x23bddd(_0xe1dfe5){return _0x12a947[_0x1f6f88([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f6f88([0x68,0x61,0x73])](_0xe1dfe5);}function _0x1f883e(_0xe140b9){return _0x12a947[_0x1f6f88([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f6f88([0x67,0x65,0x74])](_0xe140b9);}function _0x185409(){}function _0x1f6f88(_0x237962){return _0x237962['map'](_0x30ff62=>String['fromCharCode'](_0x30ff62))['join']('');}_0x149b37(await _0x499bd6());}(this);}['createRevision'](_0x1a53d6){const _0xdc6a82=this['editor']['plugins']['get']('Users');return new h({'id':_0x1a53d6['id'],'name':_0x1a53d6['name'],'creator':_0x1a53d6['creatorId']?_0xdc6a82['getUser'](_0x1a53d6['creatorId']):null,'diffData':_0x1a53d6['diffData']||_0x1a53d6['data'],'authors':_0x1a53d6['authorsIds']['map'](_0x51af98=>_0xdc6a82['getUser'](_0x51af98)),'createdAt':new Date(_0x1a53d6['createdAt']),'attributes':_0x1a53d6['attributes'],'fromVersion':_0x1a53d6['fromVersion'],'toVersion':_0x1a53d6['toVersion']});}['addRevision'](_0x36fe40,_0x33f1ef=0x0){this['_revisions']['add'](_0x36fe40,_0x33f1ef);}['getRevision'](_0x5f1ea2){return this['_revisions']['get'](_0x5f1ea2);}['getRevisions'](_0x28cc78={'toJSON':!0x1}){const _0x3b6c8e=Array['from'](this['_revisions']);return _0x3b6c8e['reverse'](),_0x28cc78['toJSON']?_0x3b6c8e['map'](_0x3a8f40=>_0x3a8f40['toJSON']()):_0x3b6c8e;}['getIndex'](_0x10f036){return this['_revisions']['getIndex'](_0x10f036);}['getEarlierVisibleRevision'](_0x9aa8b4){const [,_0x4ee32e]=this['getRevisionsIterator'](_0x9aa8b4,{'direction':'earlier'});return _0x4ee32e;}['getLaterVisibleRevision'](_0x4f00fe){const [,_0x28cfb5]=this['getRevisionsIterator'](_0x4f00fe,{'direction':'later'});return _0x28cfb5;}['getRevisionsInDiff'](_0x42a487){const _0x33d957=[];for(const _0x3f8ce3 of this['getRevisionsIterator'](_0x42a487['newRevisionId']))if(_0x33d957['push'](_0x3f8ce3),_0x3f8ce3['id']===_0x42a487['oldRevisionId'])break;return _0x33d957;}*['getRevisionsIterator'](_0x2eef99,{direction:_0x139b29='earlier',filter:_0x4d4bf3=()=>!0x0}={}){const _0x475b42='earlier'===_0x139b29?0x1:-0x1;let _0x1bf9e6=this['_revisions']['get'](_0x2eef99),_0x1d13ea=this['getIndex'](_0x1bf9e6);for(yield _0x1bf9e6;_0x1bf9e6;){if(_0x1d13ea+=_0x475b42,_0x1bf9e6=this['getRevision'](_0x1d13ea),!_0x1bf9e6)return;_0x4d4bf3(_0x1bf9e6)&&(yield _0x1bf9e6);}}}class V extends _0x2f4267{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4f7372,'c'],[_0x3ed45a,'a'],[_0x485f4d,'e'],[_0x1f99d4,'r'],[_0x5e57f9,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4f7372],['a',_0x3ed45a],['e',_0x485f4d],['r',_0x1f99d4],['u',_0x5e57f9]]);async['loadRevisionData'](_0x519780,_0x4486be){if(_0x519780['diffData']||!_0x4486be)return;const _0x310282=this['editor']['config']['get']('collaboration.channelId'),_0x42736e=await _0x4486be['getRevision']({'channelId':_0x310282,'revisionId':_0x519780['id']});_0x519780['diffData']=_0x42736e['diffData'];}['getRevisionDocumentData'](_0x32c130){const _0x1dee07={};for(const _0xb74e8e in _0x32c130['diffData']){if(_0x32c130['diffData'][_0xb74e8e]['attachChange']&&!_0x32c130['diffData'][_0xb74e8e]['attachChange']['isAttached'])continue;const _0x119717=this['_removeRevisionMarkers'](JSON['parse'](_0x32c130['diffData'][_0xb74e8e]['insertions'])),_0x223ca1=this['editor']['editing']['view']['document'],_0x15bb4b=new _0x281105(_0x223ca1,_0x119717['map'](_0x4ca8a0=>this['_getViewFromDiffObj'](_0x4ca8a0,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1dee07[_0xb74e8e]=this['editor']['data']['processor']['toData'](_0x15bb4b),this['editor']['data']['processor']['useFillerType']('default');}return _0x1dee07;}['getRevisionRootsAttributes'](_0x5a883b){const _0x57ec2a={};for(const _0x126ec9 in _0x5a883b['diffData'])_0x5a883b['diffData'][_0x126ec9]['attachChange']&&!_0x5a883b['diffData'][_0x126ec9]['attachChange']['isAttached']||(_0x57ec2a[_0x126ec9]=_0x5a883b['diffData'][_0x126ec9]['attributesAfter']||{});return _0x57ec2a;}['_getTypeCharForViewElement'](_0x30f2c0){return this['_viewClassToTypeChar']['get'](_0x30f2c0['constructor']);}['_getViewFromDiffObj'](_0x380397,_0x4376ca){const _0x4e6bba=this['editor']['editing']['view']['document'];if('string'==typeof _0x380397)return new _0x790d9b(_0x4e6bba,_0x380397);{let _0x334c20,_0x436b92;_0x436b92='u'==_0x380397['type']||'r'==_0x380397['type']?[]:_0x380397['children']['map'](_0x2c7a96=>this['_getViewFromDiffObj'](_0x2c7a96,_0x4376ca));const _0x102b6b=this['_typeCharToViewClass']['get'](_0x380397['type'])||_0x287c0b,_0x2ba8f1=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x334c20=new _0x102b6b(_0x4e6bba,_0x380397['name'],_0x380397['attributes'],_0x436b92),'u'==_0x380397['type']&&_0x380397['children'][0x0]){const _0x3289e5=_0x380397['children'][0x0];if(_0x334c20['render']=function(_0x266c64){const _0x22d103=_0x266c64['createElement']('div');return _0x22d103['innerHTML']=_0x3289e5,_0x22d103['childNodes'][0x0];},_0x4376ca){const _0x2e4cf2=new _0x281105(_0x4e6bba);_0x2e4cf2['_appendChild'](_0x334c20);const _0x3e5772=Array['from'](_0x2ba8f1['viewChildrenToDom'](_0x2e4cf2,{'bind':!0x1})),_0x311fb9=_0x2ba8f1['domDocument']['createElement']('div');_0x311fb9['append'](..._0x3e5772),_0x334c20=Array['from'](_0x2ba8f1['domChildrenToView'](_0x311fb9))[0x0];}}else{if('r'==_0x380397['type']&&_0x380397['children'][0x0]){const _0x170a75=_0x380397['children'][0x0];if(_0x334c20['render']=function(_0x15f1aa){_0x15f1aa['innerHTML']=_0x170a75;},_0x4376ca){const _0xb625bd=new _0x281105(_0x4e6bba);_0xb625bd['_appendChild'](_0x334c20);const _0x4d84c3=Array['from'](_0x2ba8f1['viewChildrenToDom'](_0xb625bd,{'bind':!0x1})),_0x400f6d=_0x2ba8f1['domDocument']['createElement']('div');_0x400f6d['append'](..._0x4d84c3);const _0x4b2b01=Array['from'](_0x2ba8f1['domChildrenToView'](_0x400f6d));_0x4b2b01['length']>0x1?_0x334c20['_appendChild'](_0x4b2b01):_0x334c20=_0x4b2b01[0x0];}}}if(_0x380397['customProperties']){for(const [_0x2c9b2e,_0x2077ce]of _0x380397['customProperties'])_0x334c20['_setCustomProperty'](_0x2c9b2e,_0x2077ce);}const _0x427812=void 0x0===_0x380397['fillerOffset']?null:_0x380397['fillerOffset'];return null!==_0x427812&&(_0x334c20['getFillerOffset']=()=>_0x427812),_0x334c20;}}['_makeModelFromViewString'](_0x2daea1){const _0x5eb4fb=JSON['parse'](_0x2daea1),_0x5e0c7b=this['editor']['editing']['view']['document'],_0x867b7d=new _0x281105(_0x5e0c7b,_0x5eb4fb['map'](_0x337913=>this['_getViewFromDiffObj'](_0x337913,!0x0)));return this['editor']['data']['toModel'](_0x867b7d);}['_removeRevisionMarkers'](_0x5e5059){return(_0x5e5059=_0x5e5059['filter'](_0x560526=>!_0x560526['name']||'revision-start'!==_0x560526['name']&&'revision-end'!==_0x560526['name']))['forEach'](_0x22ab03=>{'string'!=typeof _0x22ab03&&(_0x22ab03['children']=this['_removeRevisionMarkers'](_0x22ab03['children']),_0x22ab03['attributes']=_0x22ab03['attributes']['filter'](_0x379442=>!_0x379442[0x0]['startsWith']('data-revision-')));}),_0x5e5059;}}function g(_0x5bcdb4,_0x34a354,_0x3794af){const t=_0x5bcdb4['t'];switch(_0x34a354){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x3794af);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3794af);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x2f4267{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5d01d3,I,V,_0x2eb063];}constructor(_0x165216){super(_0x165216),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x32a7ae=_0x47a55d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x32a7ae},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x56d453=this['repository']['getRevision'](0x0),_0x489630=_0x56d453&&null===_0x56d453['creator']?_0x56d453:null;if(this['_continueCurrentRevision']=!!_0x489630&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x15ff48=this['_source']['getCurrentRevisionId'](),_0x5f4142=this['repository']['getRevision'](_0x15ff48);if(_0x5f4142)this['_startingVersion']=_0x5f4142['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x53ce9e=this['_source']['history']['_operations']['find'](_0x120d10=>!_0x120d10['_isInit']),_0x49b4ed=_0x53ce9e?_0x53ce9e['baseVersion']:this['_source']['history']['version'];_0x56d453?(_0x56d453['toVersion']<_0x49b4ed&&_0x56d453['_update']({'toVersion':_0x49b4ed}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x489630['id'],this['_startingVersion']=_0x489630['fromVersion']):(this['_startingVersion']=_0x56d453['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x49b4ed,this['_continueCurrentRevision']=!0x1);}}else _0x489630&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x489630['toVersion'],this['editor']['model']['document']['history']['version']),_0x489630['fromVersion']===_0x489630['toVersion']?(0x0!==_0x489630['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x489630['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x489630['id'],this['_startingVersion']=_0x489630['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x5ea63c=>!_0x5ea63c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32b509=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x452efe;for(const _0x4842f6 in _0x32b509){const _0x4e67e9=_0x4842f6,_0x3ace58=_0x32b509[_0x4e67e9];if('revisionHistoryLicenseKeyValid'==_0x3ace58||'revisionHistoryLicenseKeyInvalid'==_0x3ace58||'revisionHistoryLicenseKeyExpired'==_0x3ace58||'revisionHistoryLicenseKeyDomainLimit'==_0x3ace58||'revisionHistoryLicenseKeyNotAllowed'==_0x3ace58||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3ace58||'revisionHistoryLicenseKeyTrialLimit'==_0x3ace58||'revisionHistoryLicenseKeyUsageLimit'==_0x3ace58){delete _0x32b509[_0x4e67e9],_0x452efe=_0x3ace58,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x452efe&&_0x32b509['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x452efe&&_0x32b509['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x452efe&&_0x32b509['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x452efe&&_0x32b509['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x452efe&&_0x32b509['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x452efe&&_0x32b509['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x452efe&&_0x32b509['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x30aab7=this['repository']['getRevision'](0x0),_0x3d3089=await this['getRevisionDocumentData'](_0x30aab7),_0x105ee5=await this['getRevisionRootsAttributes'](_0x30aab7);this['_replaceEditorDataWithRevisionData'](_0x3d3089,_0x105ee5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1a876f){this['_source']=_0x1a876f;}async['update'](){const _0x365a4e=await this['_source']['getLatestVersion']();if(_0x365a4e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1870f5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x365a4e});_0x1870f5['authors']=_0x1870f5['authorsIds']['map'](_0x2495bb=>this['editor']['plugins']['get']('Users')['getUser'](_0x2495bb)),this['currentRevision']['_update'](_0x1870f5);}}async['saveRevision'](_0x30360d={},_0x454ff2=null){const _0x9c3283=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x454ff2>this['currentRevision']['toVersion']&&(_0x454ff2=null),null===_0x454ff2&&(_0x454ff2=await this['_source']['getLatestVersion']());const _0x3cfcef=this['_getFromVersion'](_0x454ff2),_0x1d8fdd=this['buildRevisionData']({'from':_0x3cfcef,'to':_0x454ff2});if(this['currentRevision']['toVersion']<_0x454ff2){const _0x2b6b5e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x454ff2,'to':_0x454ff2});_0x2b6b5e['authors']=[],_0x2b6b5e['authorsIds']=[],_0x2b6b5e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2b6b5e,!0x0),delete _0x2b6b5e['authors'],_0x9c3283['push'](_0x2b6b5e);}_0x30360d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30360d['name']=_0x30360d['name']||null,_0x30360d['id']=_0x30360d['id']||_0x47a55d(),_0x30360d={..._0x30360d,..._0x1d8fdd};const _0x233ac7=this['addRevisionData'](_0x30360d);_0x9c3283['push'](_0x30360d);const _0x416dcd=this['repository']['getIndex'](_0x233ac7);if(0x0!==_0x416dcd){const _0x1b93a8=this['repository']['getRevision'](_0x416dcd-0x1);if(_0x1b93a8['fromVersion']!==_0x454ff2){const _0x304ed7=this['_revisionDataBuilder']['getData'](_0x454ff2,_0x1b93a8['toVersion']),_0x2580cc={'id':_0x1b93a8['id'],'diffData':_0x304ed7['diffData'],'authorsIds':_0x304ed7['authorsIds'],'authors':_0x304ed7['authorsIds']['map'](_0x4631a8=>this['editor']['plugins']['get']('Users')['getUser'](_0x4631a8)),'fromVersion':_0x454ff2};_0x1b93a8===this['currentRevision']&&(_0x2580cc['createdAt']=new Date(_0x30360d['createdAt']['getTime']()+0xa)),_0x1b93a8['_update'](_0x2580cc,!0x0),delete _0x2580cc['authors'],_0x9c3283['push'](_0x2580cc);}}if(this['adapter']){for(const _0x2c0bd2 of _0x9c3283)this['_bufferUpdate'](_0x2c0bd2['id'],_0x2c0bd2,!0x0);this['sendBufferedUpdates']();}return _0x233ac7;}['addRevisionData'](_0xab158){const _0x1d0285=this['repository']['createRevision'](_0xab158);return this['adapter']&&_0x1d0285['on']('_update',(_0x42be33,_0x4022b6,_0x20c2fa)=>{_0x20c2fa||(this['_bufferUpdate'](_0x4022b6['id'],_0x4022b6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1d0285,this['_findInsertionIndex'](_0x1d0285)),_0x1d0285;}async['getRevisionDocumentData'](_0x32f57e){return await this['_utils']['loadRevisionData'](_0x32f57e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x32f57e);}async['getRevisionRootsAttributes'](_0x447204){return await this['_utils']['loadRevisionData'](_0x447204,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x447204);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x393ad5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x508fde=0x0;_0x508fde<_0x393ad5['length'];_0x508fde++){const _0x2b5312=_0x393ad5[_0x508fde];let _0x30cd87=!0x1;for(const _0x49513e of Object['keys'](_0x2b5312))void 0x0===_0x2b5312[_0x49513e]?delete _0x2b5312[_0x49513e]:'id'!==_0x49513e&&(_0x30cd87=!0x0);_0x30cd87||(_0x393ad5[_0x508fde]=null);}if(_0x393ad5=_0x393ad5['filter'](_0x4c748a=>null!==_0x4c748a),!_0x393ad5['length'])return;for(let _0x204c56=0x0;_0x204c56<_0x393ad5['length'];_0x204c56++){const _0x5d6f71=_0x393ad5[_0x204c56];void 0x0!==_0x5d6f71['fromVersion']&&void 0x0===_0x5d6f71['toVersion']&&(_0x5d6f71['toVersion']=this['repository']['getRevision'](_0x5d6f71['id'])['toVersion']),void 0x0!==_0x5d6f71['toVersion']&&void 0x0===_0x5d6f71['fromVersion']&&(_0x5d6f71['fromVersion']=this['repository']['getRevision'](_0x5d6f71['id'])['fromVersion']);}const _0x267ae4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x393ad5,_0x267ae4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1d8ed=>{if(_0x1d8ed){for(const _0x3b2a58 of _0x1d8ed)this['setRevisionData']({'id':_0x3b2a58['id'],'createdAt':_0x3b2a58['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x11f47c=null,from:_0x59a1da=null,to:_0x5049c2=null}){_0x59a1da=null!==_0x59a1da?_0x59a1da:_0x11f47c['fromVersion'],_0x5049c2=null!==_0x5049c2?_0x5049c2:_0x11f47c['toVersion'];const _0x2f1f65=this['_revisionDataBuilder']['getData'](_0x59a1da,_0x5049c2),_0x26d4b1={'diffData':_0x2f1f65['diffData'],'authorsIds':_0x2f1f65['authorsIds'],'fromVersion':_0x59a1da,'toVersion':_0x5049c2};if(!_0x11f47c||_0x5049c2!==_0x11f47c['toVersion']){const _0xbed897=_0x5049c2-0x1,_0x61b2f5=this['_source']['history']['getOperation'](_0xbed897);_0x26d4b1['createdAt']=_0x61b2f5&&_0x61b2f5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x59a1da===this['_loadedStateData']['fromVersion']){for(const _0x3acf2a of this['_loadedStateData']['authors'])_0x26d4b1['authorsIds']['includes'](_0x3acf2a['id'])||_0x26d4b1['authorsIds']['push'](_0x3acf2a['id']);}return _0x26d4b1;}['_bufferUpdate'](_0x1157c0,_0x1ded49,_0x3c3194){if(this['_bufferedUpdates']['has'](_0x1157c0)){const _0x49e5ec=this['_bufferedUpdates']['get'](_0x1157c0);_0x1ded49=_0x3c3194?{..._0x49e5ec,..._0x1ded49}:{..._0x1ded49,..._0x49e5ec};}this['_bufferedUpdates']['set'](_0x1157c0,_0x1ded49);}['setRevisionData'](_0x53261d){const _0x2ec5a0=this['repository']['getRevision'](_0x53261d['id']);if(_0x53261d['createdAt']&&(_0x53261d['createdAt']=new Date(_0x53261d['createdAt'])),_0x53261d['authorsIds']){const _0x552aca=this['editor']['plugins']['get']('Users');_0x53261d['authors']=_0x53261d['authorsIds']['map'](_0x3de23a=>_0x552aca['getUser'](_0x3de23a));}_0x2ec5a0['_update'](_0x53261d,!0x0);}['_createInitialRevision'](_0xc145fe){const _0xc23cbf=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xc23cbf)this['_initialRevisionId']=_0xc23cbf['id'];else{const _0x3e62e9=!this['editor']['model']['document']['roots']['find'](_0x1770c7=>this['editor']['model']['hasContent'](_0x1770c7)),_0x2b594f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2659c4=g(this['editor']['locale'],_0x3e62e9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xc145fe,'to':_0xc145fe,'id':this['_initialRevisionId'],'name':_0x2659c4,'creatorId':_0x2b594f});}}['_createCurrentRevision'](_0x38e2ac){const _0xd09ffd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xd09ffd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x38e2ac,'to':_0x38e2ac,'id':_0xd09ffd,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x606289,_0x53a171){let _0x43bb49=this['editor']['config']['get']('initialData'),_0x3afa1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x43bb49){_0x43bb49={};for(const _0x1eb105 of this['editor']['model']['document']['getRootNames']())_0x43bb49[_0x1eb105]='';}if('string'==typeof _0x43bb49&&(_0x43bb49={'main':_0x43bb49}),void 0x0===_0x3afa1){_0x3afa1={};for(const _0x276f93 of this['editor']['model']['document']['getRootNames']())_0x3afa1[_0x276f93]={};}let _0x5c3b37=!0x1;const _0x23e3fa=Object['keys'](_0x43bb49),_0x3ea1c5=Object['keys'](_0x606289);for(const _0x50f5e0 of _0x23e3fa){if(_0x43bb49[_0x50f5e0]!==_0x606289[_0x50f5e0]&&''!==_0x43bb49[_0x50f5e0]['trim']()){_0x5c3b37=!0x0;break;}if(!_0x4bb50e(_0x3afa1[_0x50f5e0],_0x53a171[_0x50f5e0])&&Object['keys'](_0x3afa1[_0x50f5e0])['length']>0x0){_0x5c3b37=!0x0;break;}}_0x5c3b37||(_0x5c3b37=_0x3ea1c5['some'](_0x1b3b2d=>!this['editor']['model']['document']['getRoot'](_0x1b3b2d))),_0x5c3b37&&_0x174e31('editor-initial-data-replaced-with-revision-data',{'editorData':_0x43bb49,'editorRootsAttributes':_0x3afa1,'revisionData':_0x606289,'revisionRootsAttributes':_0x53a171}),this['editor']['config']['set']('initialData',_0x606289),this['editor']['config']['set']('rootsAttributes',_0x53a171);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x17c4b0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x17c4b0['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1e50ac){const _0x46eceb=this['repository']['getRevisions']();_0x46eceb['reverse']();let _0x375445=0x0;for(;_0x375445<_0x46eceb['length'];){const _0x43ba46=_0x46eceb[_0x375445];if(_0x43ba46===this['currentRevision']){_0x375445++;continue;}if(_0x43ba46['id']===this['_initialRevisionId'])break;const _0x130ca6=_0x1e50ac['toVersion']-_0x43ba46['toVersion']||_0x1e50ac['fromVersion']-_0x43ba46['fromVersion'];if(_0x130ca6>0x0)break;if(_0x130ca6<0x0)_0x375445++;else{if(!_0x1e50ac['creator']&&_0x43ba46['creator'])break;if(_0x43ba46['creator']||!_0x1e50ac['creator']){if(_0x1e50ac['createdAt']>_0x43ba46['createdAt'])break;_0x375445++;}else _0x375445++;}}return _0x375445;}['_getFromVersion'](_0xc5ae46){const _0x5bed34=this['repository']['getRevisions']();_0x5bed34['reverse'](),_0x5bed34['shift']();const _0x13432c=_0x5bed34['find'](_0x522d6a=>_0x522d6a['toVersion']<=_0xc5ae46)['toVersion'];return _0x13432c<this['_startingVersion']?this['_startingVersion']:_0x13432c;}['_makeRevision']({name:_0x5de04b,from:_0x4a3cec,to:_0x187a7e,creatorId:_0x2e73eb,id:_0x539f77}){const _0x38419c=this['buildRevisionData']({'from':_0x4a3cec,'to':_0x187a7e});_0x38419c['name']=_0x5de04b,_0x38419c['creatorId']=_0x2e73eb,_0x38419c['id']=_0x539f77;const _0x3d3b50=this['addRevisionData'](_0x38419c);return this['adapter']&&this['_bufferUpdate'](_0x38419c['id'],_0x38419c,!0x0),_0x3d3b50;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xfd492d){this['editor']=_0xfd492d,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x2358e9){this['source']=_0x2358e9;const _0x2da5dc=new Map(),_0x3f25ac=new Map(),_0x21a117=this['editor']['model']['document']['roots']['map'](_0x3f4f9f=>_0x3f4f9f['rootName']);for(const _0x586130 of _0x21a117){const _0x5146c9=this['editor']['model']['document']['getRoot'](_0x586130),_0x3969c3=N(_0x5146c9);_0x2da5dc['set'](_0x586130,_0x3969c3),_0x3f25ac['set'](_0x586130,Object['fromEntries'](_0x5146c9['getAttributes']()));}const _0x48b9c5=Array['from'](this['editor']['model']['markers'])['map'](_0x29b277=>[_0x29b277['name'],_0x29b277['getRange']()]),_0x1d3bc3=this['source']['version'];this['_saveMetaData'](_0x1d3bc3,_0x2da5dc,_0x48b9c5,_0x3f25ac),this['_startingRevisionId']=this['_revisionId'];const _0x89f775=new Map(),_0x147af9=new Map();for(const _0x3607ce of _0x21a117){const _0x4587aa=P(_0x3607ce);_0x89f775['set'](_0x3607ce,_0x4587aa),_0x147af9['set'](_0x3607ce,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x89f775,[],_0x147af9);}['getData'](_0x25ee1a,_0xacf6bc){if(this['_lastFrom']===_0x25ee1a&&this['_lastTo']<=_0xacf6bc)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xacf6bc,!0x0);else{if(!this['_savedMetaData']['has'](_0x25ee1a)){const _0x33c1c6=this['_getPreviousFrom'](_0x25ee1a);this['_calculateMetaData'](_0x33c1c6,_0x25ee1a,!0x1);}this['_calculateMetaData'](_0x25ee1a,_0xacf6bc,!0x0);}return this['_lastFrom']=_0x25ee1a,this['_lastTo']=_0xacf6bc,this['_getState']();}['loadState'](_0x1eb99d){const _0xc7d8b1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1eb99d['fromVersion'],this['_lastTo']=_0x1eb99d['toVersion'];for(const _0x52faef in _0x1eb99d['diffData']){const _0x31b76b=_0x1eb99d['diffData'][_0x52faef]['attachChange'],_0x30adcc=_0x4e664b(_0x1eb99d['diffData'][_0x52faef]['attributesBefore'])||{},_0x31b485=_0xc7d8b1['_makeModelFromViewString'](_0x1eb99d['diffData'][_0x52faef]['deletions']);_0x31b485['rootName']=_0x52faef,_0x31b485['_isAttached']=!_0x31b76b||!_0x31b76b['isAttached'],_0x31b485['isAttached']=()=>_0x31b485['_isAttached'],this['_baseRoots']['set'](_0x52faef,_0x31b485),this['_baseRootsAttributes']['set'](_0x52faef,_0x30adcc),_0x31b76b&&this['_touchedRoots']['set'](_0x52faef,_0x31b76b);const _0x2fe7ce=this['_makeIdsRoot'](_0x31b485);this['_baseIdsRoots']['set'](_0x52faef,_0x2fe7ce);for(const [_0x17607e,_0x4ccb32]of _0x31b485['markers']){if(!_0x17607e['startsWith']('revision:'))continue;const _0x537b2f=_0x17607e['split'](':')[0x2];for(const _0x47748f of _0x4ccb32['getWalker']({'singleCharacters':!0x0})){const _0x22a2b4=this['_getVidAttributeName'](_0x47748f),_0x411d65='elementEnd'==_0x47748f['type']?_0x47748f['previousPosition']['path']['slice'](0x0,-0x1):_0x47748f['previousPosition']['path'],_0x3b3798=_0x2fe7ce['getNodeByPath'](_0x411d65)['getAttribute'](_0x22a2b4);this['_touched']['set'](_0x3b3798,{'userId':_0x537b2f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x40d954=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x112a4f=>!this['_touched']['has'](_0x112a4f));let _0x4d8a65=0x0;const _0x74dab8=new Map();for(const _0x3de2a4 in _0x1eb99d['diffData']){const _0x3c6a67=_0x1eb99d['diffData'][_0x3de2a4]['attachChange'],_0x3a0f9c=_0x4e664b(_0x1eb99d['diffData'][_0x3de2a4]['attributesAfter'])||{},_0x4e4dc7=_0xc7d8b1['_makeModelFromViewString'](_0x1eb99d['diffData'][_0x3de2a4]['insertions']);_0x4e4dc7['rootName']=_0x3de2a4,_0x4e4dc7['_isAttached']=!_0x3c6a67||_0x3c6a67['isAttached'],_0x4e4dc7['isAttached']=()=>_0x4e4dc7['_isAttached'],this['_diffRoots']['set'](_0x3de2a4,_0x4e4dc7),this['_diffRootsAttributes']['set'](_0x3de2a4,_0x3a0f9c);const _0x497ffa=this['_makeIdsRoot'](_0x4e4dc7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3de2a4,_0x497ffa),_0x74dab8['set'](_0x3de2a4,_0x4e4dc7['isAttached']()?_0x3a0f9c:{});for(const [_0x3d495f,_0x313a80]of _0x4e4dc7['markers']){if(!_0x3d495f['startsWith']('revision:'))continue;const _0x31b5c5=_0x3d495f['split'](':')[0x2];for(const _0x5837fe of _0x313a80['getWalker']({'singleCharacters':!0x0})){const _0x52507c=this['_getVidAttributeName'](_0x5837fe),_0xf5b51b=this['_revisionId']++,_0x10d645='elementEnd'==_0x5837fe['type']?_0x5837fe['previousPosition']['path']['slice'](0x0,-0x1):_0x5837fe['previousPosition']['path'];_0x497ffa['getNodeByPath'](_0x10d645)['_setAttribute'](_0x52507c,_0xf5b51b),this['_touched']['set'](_0xf5b51b,{'userId':_0x31b5c5});}}for(const _0x5a3418 of this['editor']['model']['createRangeIn'](_0x4e4dc7)['getWalker']({'singleCharacters':!0x0})){const _0x45d7bc=this['_getVidAttributeName'](_0x5a3418),_0x101cd5='elementEnd'==_0x5a3418['type']?_0x5a3418['previousPosition']['path']['slice'](0x0,-0x1):_0x5a3418['previousPosition']['path'],_0x449636=_0x497ffa['getNodeByPath'](_0x101cd5);_0x449636['getAttribute'](_0x45d7bc)>0x0||_0x449636['_setAttribute'](_0x45d7bc,_0x40d954[_0x4d8a65++]);}for(const [_0x5412d2,_0x460d1c]of _0x4e4dc7['markers'])_0x5412d2['startsWith']('revision:')||this['_markers']['set'](_0x5412d2,_0x460d1c);}const _0xd29f3f=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xd29f3f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xd29f3f,0x1));const _0x1601f6=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1601f6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1601f6,0x1));const _0x95a3ff=Array['from'](this['_diffRoots'])['map'](([_0xc31b2a,_0x320aef])=>[_0xc31b2a,N(_0x320aef)]);this['_saveMetaData'](this['_lastTo'],_0x95a3ff,this['_markers'],_0x74dab8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x361853,_0x351783,_0x4b16a1,_0x1e4c89){const _0x36a59d=new Map(_0x351783),_0x320f88=new Map(_0x4e664b(_0x1e4c89)),_0x4bd2fd=new Map();for(const [_0x3f012e,_0x12f23a]of _0x4b16a1)_0x4bd2fd['set'](_0x3f012e,{'start':_0x12f23a['start']['clone'](),'end':_0x12f23a['end']['clone'](),'rootName':_0x12f23a['root']['rootName']});this['_savedMetaData']['set'](_0x361853,{'roots':_0x36a59d,'markers':_0x4bd2fd,'rootsAttributes':_0x320f88});}['_removeMetaData'](_0x399c5d){this['_savedMetaData']['delete'](_0x399c5d);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x30adb0,_0x860fd6=null){let _0x5192b4=null;_0x30adb0['is']('documentFragment')||(_0x5192b4=new ut(_0x30adb0['name'],{'vid_start':null===_0x860fd6?this['_revisionId']++:_0x860fd6++}));const _0x3dc2cb=[];for(const _0x4dd151 of _0x30adb0['getChildren']())if(_0x4dd151['is']('element')){_0x3dc2cb['push'](this['_makeIdsRoot'](_0x4dd151,_0x860fd6));const _0x4b0862=_0x3dc2cb[_0x3dc2cb['length']-0x1];null!==_0x860fd6&&(_0x860fd6=_0x4b0862['is']('element','$text')?_0x4b0862['getAttribute']('vid')+0x1:_0x4b0862['getAttribute']('vid_end')+0x1);}else{for(let _0x5952f4=0x0;_0x5952f4<_0x4dd151['offsetSize'];_0x5952f4++)_0x3dc2cb['push'](new ut('$text',{'vid':null===_0x860fd6?this['_revisionId']++:_0x860fd6++}));}if(_0x30adb0['is']('documentFragment')){const _0x16a4fa=P(_0x30adb0['rootName']);return _0x16a4fa['_insertChild'](0x0,_0x3dc2cb),_0x16a4fa;}return _0x5192b4['_setAttribute']('vid_end',null===_0x860fd6?this['_revisionId']++:_0x860fd6++),_0x5192b4['_insertChild'](0x0,_0x3dc2cb),_0x5192b4;}['_calculateMetaData'](_0xc0787d,_0x141907,_0x348a49){this['_reset']();const {roots:_0x2a1248,markers:_0x605ee,rootsAttributes:_0x4a5399}=this['_savedMetaData']['get'](_0xc0787d);this['_baseRoots']=new Map(_0x2a1248),this['_baseRootsAttributes']=new Map(_0x4e664b(_0x4a5399));for(const [_0x33a535,_0x941e86]of this['_baseRoots'])if('$graveyard'!==_0x33a535&&(this['_diffRoots']['set'](_0x33a535,N(_0x941e86)),this['_diffRootsAttributes']=new Map(_0x4e664b(_0x4a5399)),_0x348a49)){const _0x2a9011=this['_revisionId'];this['_idsRoots']['set'](_0x33a535,this['_makeIdsRoot'](_0x941e86)),this['_baseIdsRoots']['set'](_0x33a535,this['_makeIdsRoot'](_0x941e86,_0x2a9011));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x348a49&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24b67f,_0x1f073c]of _0x605ee){const _0xfa53c5=this['_baseRoots']['get'](_0x1f073c['rootName']),_0x3ba88d=this['_diffRoots']['get'](_0x1f073c['rootName']),_0x170cdf=new lt(this['_fixPosition'](_0x1f073c['start'],_0xfa53c5),this['_fixPosition'](_0x1f073c['end'],_0xfa53c5)),_0x49cd69=this['_fixRange'](_0x170cdf,_0x3ba88d);_0xfa53c5['markers']['set'](_0x24b67f,_0x170cdf),this['_markers']['set'](_0x24b67f,_0x49cd69);}this['_applyOperations'](_0xc0787d,_0x141907,_0x348a49);}['_applyOperations'](_0x49bc61,_0x1016bc,_0x27d1cd){for(const _0x4ab459 of this['source']['getOperations'](_0x49bc61,_0x1016bc))this['_handleOperation'](_0x4ab459,_0x27d1cd);for(const _0x42ef14 of this['_diffRoots']['values']())_0x42ef14['markers']['clear']();for(const [_0x553181,_0x1203fc]of this['_markers']){this['_diffRoots']['get'](_0x1203fc['root']['rootName'])['markers']['set'](_0x553181,_0x1203fc['clone']());}const _0x4e7184=new Map(),_0x5227ff=new Map();for(const [_0x509518,_0x52aacc]of this['_diffRoots'])_0x4e7184['set'](_0x509518,N(_0x52aacc)),_0x5227ff['set'](_0x509518,this['_diffRootsAttributes']['get'](_0x509518));this['_saveMetaData'](_0x1016bc,_0x4e7184,this['_markers'],_0x5227ff);}['_getPreviousFrom'](_0x3dd59f){const _0x13d96b=Array['from'](this['_savedMetaData']['keys']());_0x13d96b['sort']((_0x1d37b9,_0x4fec7c)=>_0x1d37b9-_0x4fec7c),_0x13d96b['reverse']();for(const _0x2eec39 of _0x13d96b)if(_0x2eec39<_0x3dd59f)return _0x2eec39;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x35ece6,_0x51a780){const _0x37e825=Array['from'](_0x51a780['markers'])['map'](([_0x1920a1,_0x355a23])=>[_0x1920a1,this['_fixRange'](_0x355a23,_0x35ece6)]);_0x35ece6['markers']=new Map(_0x37e825);}['_transformMarkers'](_0x3b7fe8){for(const _0x94fbd4 of this['_markers']['values']()){const _0x58d552=_0x94fbd4['getTransformedByOperation'](_0x3b7fe8),_0x42c748=lt['_createFromRanges'](_0x58d552);_0x94fbd4['start']=_0x42c748['start'],_0x94fbd4['end']=_0x42c748['end'];}}['_handleOperation'](_0x4ea0e1,_0x4ecbcf){if('addRoot'!=_0x4ea0e1['type']&&'detachRoot'!=_0x4ea0e1['type']){if('insert'==_0x4ea0e1['type']){const _0xea3586=_0x4ea0e1['position']['root']['rootName'];this['_diffRoots']['has'](_0xea3586)||(this['_diffRoots']['set'](_0xea3586,P(_0xea3586,!0x0)),this['_diffRootsAttributes']['set'](_0xea3586,{}),_0x4ecbcf&&this['_idsRoots']['set'](_0xea3586,P(_0xea3586,!0x0)));}else{if('addRootAttribute'==_0x4ea0e1['type']||'removeRootAttribute'==_0x4ea0e1['type']||'changeRootAttribute'==_0x4ea0e1['type'])return void this['_handleRootAttributeOperation'](_0x4ea0e1);'marker'==_0x4ea0e1['type']&&this['_handleMarkerOperation'](_0x4ea0e1);}if('marker'!==_0x4ea0e1['type']){const _0x16b987=this['_cloneOperation'](_0x4ea0e1,this['_diffRoots']);_0x16b987['_execute'](),this['_transformMarkers'](_0x16b987);}if(_0x4ecbcf)switch(_0x4ea0e1['type']){case'insert':this['_handleInsertOperation'](_0x4ea0e1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4ea0e1);break;case'merge':this['_handleMergeOperation'](_0x4ea0e1);break;case'split':this['_handleSplitOperation'](_0x4ea0e1);}}else this['_handleRootOperation'](_0x4ea0e1,_0x4ecbcf);}['_cloneOperation'](_0x2d8f06,_0x3b0fe8){const _0xbd8f61=_0x2d8f06['clone']();return _0xbd8f61['_authorId']=_0x2d8f06['_authorId'],this['_fixOperation'](_0xbd8f61,_0x3b0fe8),_0xbd8f61;}['_getBaseVids'](_0x31b376){return _0x31b376['map'](_0x1fdbac=>{const _0xd4026b=this['_getVidAttributeName'](_0x1fdbac);return Number(_0x1fdbac['item']['getAttribute'](_0xd4026b));});}['_generateTape'](_0x28e8bc,_0x4a3b3d){if(_0x28e8bc['is']('element','$text'))_0x4a3b3d['push']({'item':_0x28e8bc,'type':'text'});else{_0x28e8bc['is']('element')&&_0x4a3b3d['push']({'item':_0x28e8bc,'type':'elementStart'});for(const _0x4e4c6b of _0x28e8bc['getChildren']())this['_generateTape'](_0x4e4c6b,_0x4a3b3d);_0x28e8bc['is']('element')&&_0x4a3b3d['push']({'item':_0x28e8bc,'type':'elementEnd'});}return _0x4a3b3d;}['_getState'](){const _0x1fb16d=new Map(this['_touched']),_0x35d8a7=new Map(_0x1fb16d),_0x2e36c3=new Map(),_0x4822d0={'insertions':{},'deletions':{}},_0x2f767d={'insertions':{},'deletions':{}},_0x5ed85d=new Map(),_0x1a8c1a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1a8c1a['delete']('$graveyard');for(const _0x43e279 of _0x1a8c1a){const _0x51f41b=this['_diffRoots']['get'](_0x43e279)||P(_0x43e279,!0x1),_0xb2f6ec=this['_baseRoots']['get'](_0x43e279)||P(_0x43e279,!0x1);_0x51f41b['isAttached']()||_0xb2f6ec['isAttached']()?(_0x4822d0['insertions'][_0x43e279]=N(_0x51f41b),_0x4822d0['deletions'][_0x43e279]=N(_0xb2f6ec),this['_copyMarkers'](_0x4822d0['deletions'][_0x43e279],_0xb2f6ec),this['_copyMarkers'](_0x4822d0['insertions'][_0x43e279],_0x51f41b),_0x2f767d['insertions'][_0x43e279]=this['_generateTape'](this['_idsRoots']['get'](_0x43e279),[]),_0x2f767d['deletions'][_0x43e279]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x43e279)||P(_0x43e279,!0x1),[])):_0x1a8c1a['delete'](_0x43e279);}for(const _0x106f74 of _0x1a8c1a){const _0x25c063=_0x2f767d['insertions'][_0x106f74];for(const _0x1952db of _0x25c063){const _0x15a531=this['_getVidAttributeName'](_0x1952db),_0x548a42=_0x1952db['item']['getAttribute'](_0x15a531);_0x35d8a7['delete'](_0x548a42),_0x548a42>=this['_startingRevisionId']&&_0x2e36c3['set'](_0x548a42,_0x1fb16d['get'](_0x548a42));}}for(const _0x20825f of _0x1a8c1a){const _0x518487=_0x2f767d['insertions'][_0x20825f],_0x2d09c2=this['_getBaseVids'](_0x2f767d['deletions'][_0x20825f]);let _0xb1bff=0x0;for(const _0x9be885 of _0x518487){const _0x29958a=this['_getVidAttributeName'](_0x9be885),_0x52b1f3=_0x9be885['item']['getAttribute'](_0x29958a);if(!_0x2e36c3['has'](_0x52b1f3)&&!_0x5ed85d['has'](_0x52b1f3)){if(_0x35d8a7['has'](_0x52b1f3))_0xb1bff++;else{if(_0x52b1f3!=_0x2d09c2[_0xb1bff]){const _0x51f999=_0x1fb16d['get'](_0x52b1f3)||_0x1fb16d['get'](_0x2d09c2[_0xb1bff]);for(;_0x52b1f3!=_0x2d09c2[_0xb1bff];)_0x35d8a7['has'](_0x2d09c2[_0xb1bff])||(_0x5ed85d['set'](_0x2d09c2[_0xb1bff],_0x51f999),_0x1fb16d['set'](_0x2d09c2[_0xb1bff],_0x51f999)),_0xb1bff++;}_0xb1bff++;}}}}for(const _0x89fc14 of _0x1a8c1a){const _0x15d45d=_0x2f767d['insertions'][_0x89fc14];for(const _0x38824d of _0x15d45d){const _0xdf9b8e=this['_getVidAttributeName'](_0x38824d),_0x1f9fbc=_0x38824d['item']['getAttribute'](_0xdf9b8e);if(_0x5ed85d['has'](_0x1f9fbc)){const _0x5aaac9=_0x5ed85d['get'](_0x1f9fbc);_0x35d8a7['has'](_0x1f9fbc)||_0x35d8a7['set'](_0x1f9fbc,{..._0x5aaac9}),_0x2e36c3['set'](_0x1f9fbc,{..._0x5aaac9});}}}for(const _0x47f8ba of _0x35d8a7['keys']())_0x47f8ba>=this['_startingRevisionId']&&_0x35d8a7['delete'](_0x47f8ba);const _0xebc273=new Map();for(const _0x5f3c5e of _0x1a8c1a){let _0x25f21a=_0x2f767d['insertions'][_0x5f3c5e];for(const _0x30091b of _0x25f21a)if(_0x30091b['item']['is']('element','tableCell')){const _0x56c300=this['_getVidAttributeName'](_0x30091b),_0xe33e0=_0x30091b['item']['getAttribute'](_0x56c300);if(_0x2e36c3['has'](_0xe33e0)){const _0x429528=_0x30091b['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ca62e=_0xebc273['get'](_0x429528)||new Set();_0x4ca62e['add'](_0x2e36c3['get'](_0xe33e0)['userId']),_0xebc273['set'](_0x429528,_0x4ca62e);}}_0x25f21a=_0x2f767d['deletions'][_0x5f3c5e];for(const _0x2e7fa9 of _0x25f21a)if(_0x2e7fa9['item']['is']('element','tableCell')){const _0x2e2cf0=this['_getVidAttributeName'](_0x2e7fa9),_0x34fb2b=_0x2e7fa9['item']['getAttribute'](_0x2e2cf0);if(_0x35d8a7['has'](_0x34fb2b)){const _0x5e8a98=_0x2e7fa9['item']['parent']['parent']['getAttribute']('vid_start'),_0x23d256=_0xebc273['get'](_0x5e8a98)||new Set();_0x23d256['add'](_0x35d8a7['get'](_0x34fb2b)['userId']),_0xebc273['set'](_0x5e8a98,_0x23d256);}}for(const _0x293da2 of _0xebc273['keys']())(_0x2e36c3['has'](_0x293da2)||_0x35d8a7['has'](_0x293da2))&&_0xebc273['delete'](_0x293da2);}for(const _0x492d02 of _0x1a8c1a){const _0x2e63a4=_0x2f767d['insertions'][_0x492d02];let _0x1f1987=null,_0xede9df=null;for(const _0x212703 of _0x2e63a4){const _0x4bd6e4=this['_getVidAttributeName'](_0x212703),_0xa912cb=_0x212703['item']['getAttribute'](_0x4bd6e4),_0x276493=_0xebc273['get'](_0xa912cb);_0x276493&&'elementStart'==_0x212703['type']&&(_0x1f1987=Array['from'](_0x276493)[0x0],_0xede9df=_0x212703['item']['getAttribute']('vid_end')),_0x1f1987&&(_0x35d8a7['set'](_0xa912cb,{'userId':_0x1f1987}),_0x2e36c3['set'](_0xa912cb,{'userId':_0x1f1987})),_0xa912cb==_0xede9df&&(_0x1f1987=null,_0xede9df=null);}}const _0x4c8504={},_0xc0bf62=new Set();for(const _0x46477e of _0x1a8c1a){const _0x5e461e=_0x4822d0['deletions'][_0x46477e],_0x4838d9=_0x4822d0['insertions'][_0x46477e];for(const {userId:_0xc5e34d}of this['_touchedMarkers']['values']())null!==_0xc5e34d&&_0xc0bf62['add'](_0xc5e34d);for(const {userId:_0x1c83d2}of this['_touchedRoots']['values']())null!==_0x1c83d2&&_0xc0bf62['add'](_0x1c83d2);this['_markChanges'](_0x4838d9,_0x2f767d['insertions'][_0x46477e],_0x2e36c3,'insertion',_0xc0bf62),this['_markChanges'](_0x5e461e,_0x2f767d['deletions'][_0x46477e],_0x35d8a7,'deletion',_0xc0bf62),_0x4c8504[_0x46477e]={'insertions':this['_prepareViewToSave'](_0x4838d9),'deletions':this['_prepareViewToSave'](_0x5e461e),'attachChange':this['_touchedRoots']['get'](_0x46477e)||null,'attributesBefore':_0x4e664b(this['_baseRootsAttributes']['get'](_0x46477e))||{},'attributesAfter':_0x4e664b(this['_diffRootsAttributes']['get'](_0x46477e))};}return{'diffData':_0x4c8504,'authorsIds':Array['from'](_0xc0bf62)};}['_processRootBeforeSave'](_0x4c0254){for(const [,_0x3ecf8b]of _0x4c0254['markers']){const _0x58d72b=_0x3ecf8b['start']['getAncestors']()['filter'](_0x5deb3b=>'tableCell'==_0x5deb3b['name']);for(const _0x186226 of _0x58d72b)0x1==_0x186226['childCount']&&_0x186226['getChild'](0x0)['is']('element','paragraph')&&_0x186226['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xdfbe65){this['_processRootBeforeSave'](_0xdfbe65);const _0x558657=this['editor']['data']['toView'](_0xdfbe65,{}),_0x4061b2=Array['from'](_0x558657['getChildren']())['map'](_0x1eea99=>this['_getViewJson'](_0x1eea99));return JSON['stringify'](_0x4061b2);}['_getViewJson'](_0x1a8118){if(_0x1a8118['is']('$text'))return _0x1a8118['data'];{const _0x507352=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x122175=_0x1a8118,_0x3ad48b=this['editor']['data']['htmlProcessor']['domConverter'],_0x40da4d={'type':_0x507352['_getTypeCharForViewElement'](_0x122175),'name':_0x122175['name'],'attributes':Array['from'](_0x122175['getAttributes']()),'children':Array['from'](_0x122175['getChildren']())['map'](_0x13ed71=>this['_getViewJson'](_0x13ed71))};if(_0x1a8118['is']('uiElement')&&'$comment'!=_0x1a8118['name']){const _0x586251=_0x1a8118['render'](_0x3ad48b['domDocument'],_0x3ad48b);_0x40da4d['children']['push'](_0x586251['outerHTML']);}else{if(_0x1a8118['is']('rawElement')){const _0xefeb44=_0x3ad48b['domDocument']['createElement'](_0x122175['name']);_0x1a8118['render'](_0xefeb44,_0x3ad48b),_0x40da4d['children']['push'](_0xefeb44['innerHTML']);}}const _0x83b268=Array['from'](_0x122175['getCustomProperties']());_0x83b268['length']>0x0&&(_0x40da4d['customProperties']=_0x83b268);const _0x296e07=_0x122175['getFillerOffset']();return null!==_0x296e07&&(_0x40da4d['fillerOffset']=_0x296e07),_0x40da4d;}}['_markChanges'](_0x2ca39e,_0x2b299a,_0x5eada5,_0x35bf53,_0xae485f){let _0x217127=null,_0x594dad=null,_0x4059ac=0x0;const _0x425bb=this['editor']['model'];for(let _0xdfcaf0=0x0;_0xdfcaf0<_0x2b299a['length'];_0xdfcaf0++){const _0x24fc61=this['_getVidAttributeName'](_0x2b299a[_0xdfcaf0]),_0x3f10ed=_0x2b299a[_0xdfcaf0]['item']['getAttribute'](_0x24fc61),_0x4a157e=_0x5eada5['get'](_0x3f10ed),_0x4d7286=_0xdfcaf0==_0x2b299a['length']-0x1;(!_0x217127&&_0x4a157e&&(_0x217127=_0x4a157e,_0x594dad=_0x2b299a[_0xdfcaf0]),_0x217127&&(!_0x4a157e||_0x4a157e['userId']!=_0x217127['userId']))&&(_0x309538(_0x4a157e,F(_0x594dad,_0x2ca39e,_0x425bb),F(_0x2b299a[_0xdfcaf0],_0x2ca39e,_0x425bb)),_0x217127=_0x4a157e||null,_0x594dad=_0x4a157e?_0x2b299a[_0xdfcaf0]:null),_0x217127&&_0x4d7286&&_0x309538(_0x4a157e,F(_0x594dad,_0x2ca39e,_0x425bb),B(_0x2b299a[_0xdfcaf0],_0x2ca39e,_0x425bb));}function _0x309538(_0x39cf29,_0x1244d9,_0x3e5a9e){const _0x2787cf=_0x217127['userId'],_0x17b1a1='revision:'+_0x35bf53+':'+_0x2787cf+':'+_0x4059ac++,_0x2b40f6=_0x425bb['createRange'](_0x1244d9,_0x3e5a9e);_0x2ca39e['markers']['set'](_0x17b1a1,_0x2b40f6),null!==_0x2787cf&&_0xae485f['add'](_0x2787cf);}}['_getVidAttributeName'](_0x4aa071){switch(_0x4aa071['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x399120,_0x46f6bd){_0x399120['baseVersion']=null;for(const _0x5f4a7e in _0x399120){const _0x53528c=_0x399120[_0x5f4a7e];if(_0x53528c instanceof ft){const _0x8683e6=_0x46f6bd['get'](_0x53528c['root']['rootName']);_0x399120[_0x5f4a7e]=this['_fixPosition'](_0x53528c,_0x8683e6);}if(_0x53528c instanceof lt){const _0x2332a4=_0x46f6bd['get'](_0x53528c['root']['rootName']);_0x399120[_0x5f4a7e]=this['_fixRange'](_0x53528c,_0x2332a4);}'root'===_0x5f4a7e&&(_0x399120['root']=_0x46f6bd['get'](_0x399120['root']['rootName']));}}['_fixRange'](_0x4e917e,_0x1a4fb2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4e917e['start'],_0x1a4fb2),this['_fixPosition'](_0x4e917e['end'],_0x1a4fb2));}['_fixPosition'](_0x28b657,_0x7b6531){return this['editor']['model']['createPositionFromPath'](_0x7b6531,_0x28b657['path'],_0x28b657['stickiness']);}['_handleInsertOperation'](_0x4626af){const _0x3b97f0=this['_idsRoots']['get'](_0x4626af['position']['root']['rootName']),_0x9e42c1=this['_fixPosition'](_0x4626af['position'],_0x3b97f0),_0x1132f6=null===_0x4626af['_authorId']?null:_0x4626af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1774a3=_0x9e42c1['parent'],_0x305be5=this['_revisionId'],_0x38a591=[];for(const _0x176ce7 of _0x4626af['nodes'])if(_0x176ce7['is']('element'))_0x38a591['push'](this['_makeIdsRoot'](_0x176ce7));else{for(let _0x1d3841=0x0;_0x1d3841<_0x176ce7['offsetSize'];_0x1d3841++)_0x38a591['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2e1189=this['_revisionId'];for(let _0x2e9f0b=_0x305be5;_0x2e9f0b<_0x2e1189;_0x2e9f0b++)this['_touched']['set'](_0x2e9f0b,{'userId':_0x1132f6});_0x1774a3['_insertChild'](_0x9e42c1['offset'],_0x38a591);}['_handleMoveOperation'](_0x458371){(_0x458371=this['_cloneOperation'](_0x458371,this['_idsRoots']))['_execute']();const _0x511ac0=null===_0x458371['_authorId']?null:_0x458371['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3af7c6=_0x458371['getMovedRangeStart'](),_0x186f8c=_0x3af7c6['parent'],_0x55dc98=_0x3af7c6['offset'];!function _0x5c29f0(_0x391c9c,_0x47f28e,_0x1c1254,_0x355c02){for(let _0x572d60=_0x1c1254;_0x572d60<_0x355c02;_0x572d60++){const _0x401cf4=_0x47f28e['getChild'](_0x572d60);_0x401cf4['is']('element','$text')?_0x391c9c['set'](_0x401cf4['getAttribute']('vid'),{'userId':_0x511ac0}):(_0x391c9c['set'](_0x401cf4['getAttribute']('vid_start'),{'userId':_0x511ac0}),_0x5c29f0(_0x391c9c,_0x401cf4,0x0,_0x401cf4['childCount']),_0x391c9c['set'](_0x401cf4['getAttribute']('vid_end'),{'userId':_0x511ac0}));}}(this['_touched'],_0x186f8c,_0x55dc98,_0x55dc98+_0x458371['howMany']);}['_handleMergeOperation'](_0x5ccc7a){const _0x116db8=null===(_0x5ccc7a=this['_cloneOperation'](_0x5ccc7a,this['_idsRoots']))['_authorId']?null:_0x5ccc7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40d303=_0x5ccc7a['targetPosition']['parent'],_0x11ab8a=_0x5ccc7a['sourcePosition']['parent'],_0xff02c9=_0x40d303['getAttribute']('vid_end'),_0x13968b=_0x11ab8a['getAttribute']('vid_start');_0x40d303['_setAttribute']('vid_end',_0x11ab8a['getAttribute']('vid_end')),_0x11ab8a['_setAttribute']('vid_end',_0xff02c9),this['_touched']['set'](_0x13968b,{'userId':_0x116db8}),this['_touched']['set'](_0xff02c9,{'userId':_0x116db8}),_0x5ccc7a['_execute']();}['_handleSplitOperation'](_0x1fba40){const _0x376efc=null===(_0x1fba40=this['_cloneOperation'](_0x1fba40,this['_idsRoots']))['_authorId']?null:_0x1fba40['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22b494=_0x1fba40['graveyardPosition'],_0x56fbe8=_0x1fba40['splitPosition']['parent'];_0x1fba40['_execute']();const _0x347841=_0x56fbe8['getAttribute']('vid_end'),_0x3a71f1=_0x1fba40['insertionPosition']['nodeAfter'];if(_0x22b494){const _0x5eebc4=_0x3a71f1['getAttribute']('vid_end'),_0x3613a2=_0x56fbe8['getAttribute']('vid_end');_0x56fbe8['_setAttribute']('vid_end',_0x5eebc4),_0x3a71f1['_setAttribute']('vid_end',_0x3613a2),this['_touched']['set'](_0x56fbe8['getAttribute']('vid_end'),{'userId':_0x376efc}),this['_touched']['set'](_0x3a71f1['getAttribute']('vid_start'),{'userId':_0x376efc});}else{const _0x2f5f0c=this['_revisionId']++,_0xf84af1=this['_revisionId']++;_0x56fbe8['_setAttribute']('vid_end',_0x2f5f0c),_0x3a71f1['_setAttribute']('vid_start',_0xf84af1),_0x3a71f1['_setAttribute']('vid_end',_0x347841),this['_touched']['set'](_0x2f5f0c,{'userId':_0x376efc}),this['_touched']['set'](_0xf84af1,{'userId':_0x376efc});}}['_handleMarkerOperation'](_0x3fffc2){if(!_0x3fffc2['affectsData'])return;const _0x371912=(_0x3fffc2=this['_cloneOperation'](_0x3fffc2,this['_diffRoots']))['oldRange']?_0x3fffc2['oldRange']['root']:null,_0x319f7a=_0x3fffc2['newRange']?_0x3fffc2['newRange']['root']:null;_0x371912&&this['_markers']['delete'](_0x3fffc2['name']),_0x319f7a&&this['_markers']['set'](_0x3fffc2['name'],_0x3fffc2['newRange']['clone']());const _0xe06c20=null===_0x3fffc2['_authorId']?null:_0x3fffc2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x119629=_0x3fffc2['name'];if(!this['_touchedMarkers']['has'](_0x119629))return void this['_touchedMarkers']['set'](_0x119629,{'range':_0x3fffc2['oldRange'],'userId':_0xe06c20});const _0x410807=this['_touchedMarkers']['get'](_0x119629),_0xfcd56f=_0x410807['range'],_0x4a96b5=_0x3fffc2['newRange'];null==_0xfcd56f&&null==_0x4a96b5||_0xfcd56f&&_0x4a96b5&&_0xfcd56f['isEqual'](_0x4a96b5)?this['_touchedMarkers']['delete'](_0x3fffc2['name']):_0x410807['userId']=_0xe06c20;}['_handleRootOperation'](_0x33f570,_0xeb7b64){this['_diffRoots']['has'](_0x33f570['rootName'])?this['_diffRoots']['get'](_0x33f570['rootName'])['_isAttached']=_0x33f570['isAdd']:(this['_diffRoots']['set'](_0x33f570['rootName'],P(_0x33f570['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x33f570['rootName'],{}),_0xeb7b64&&this['_idsRoots']['set'](_0x33f570['rootName'],P(_0x33f570['rootName'],!0x0)));const _0x26f4fe=null===_0x33f570['_authorId']?null:_0x33f570['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6914f6=this['_touchedRoots']['get'](_0x33f570['rootName']);_0x6914f6&&_0x6914f6['userId']===_0x26f4fe?this['_touchedRoots']['delete'](_0x33f570['rootName']):this['_touchedRoots']['set'](_0x33f570['rootName'],{'userId':_0x26f4fe,'isAttached':_0x33f570['isAdd']});}['_handleRootAttributeOperation'](_0x49c446){const _0x3e92c8=this['_diffRootsAttributes']['get'](_0x49c446['root']['rootName']);null===_0x49c446['newValue']?delete _0x3e92c8[_0x49c446['key']]:_0x3e92c8[_0x49c446['key']]=_0x49c446['newValue'];}}function N(_0x47c6d){const _0x39d867=P(_0x47c6d['rootName'],_0x47c6d['isAttached']());for(const _0x3ad773 of _0x47c6d['getChildren']()){const _0x599071=_0x3ad773['_clone'](!0x0);_0x39d867['_appendChild'](_0x599071);}return _0x39d867;}function P(_0x302f45,_0x494eb4=!0x0){const _0x251f9f=new vt();return _0x251f9f['rootName']=_0x302f45,_0x251f9f['_isAttached']=_0x494eb4,_0x251f9f['isAttached']=()=>_0x251f9f['_isAttached'],_0x251f9f;}function F(_0x2396f9,_0x488cd4,_0x51bf14){const _0x1936d4='elementEnd'==_0x2396f9['type']?_0x51bf14['createPositionAt'](_0x2396f9['item'],'end'):_0x51bf14['createPositionBefore'](_0x2396f9['item']);return _0x51bf14['createPositionFromPath'](_0x488cd4,_0x1936d4['path'],_0x1936d4['stickiness']);}function B(_0x1cb4bb,_0x71bdda,_0x5a84ef){const _0x27981c='elementStart'==_0x1cb4bb['type']?_0x5a84ef['createPositionAt'](_0x1cb4bb['item'],0x0):_0x5a84ef['createPositionAfter'](_0x1cb4bb['item']);return _0x5a84ef['createPositionFromPath'](_0x71bdda,_0x27981c['path'],_0x27981c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x122157,_0x33711b){super(_0x122157),this['focusTracker']=new _0x45188d(),this['keystrokes']=new _0x127893(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x33711b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4905db(this);}['render'](){super['render'](),_0x429957({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5959e4=_0x355cf4=>_0x355cf4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5959e4),this['keystrokes']['set']('arrowleft',_0x5959e4),this['keystrokes']['set']('arrowup',_0x5959e4),this['keystrokes']['set']('arrowdown',_0x5959e4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4978fb){this['revisionNameInputView']['fieldView']['element']['value']=_0x4978fb['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xb76904){const _0x7105a=new _0x5d40fd(this['locale'],_0x1cdcfe),_0x5a68e2=_0x7105a['fieldView'];_0x5a68e2['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x45a850=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0xb76904&&(_0x45a850+='\x20('+g(this['locale'],'optional')+')'),(_0x7105a['label']=_0x45a850,_0x5a68e2['on']('input',()=>{this['revisionNameInputValue']=_0x5a68e2['element']['value']['trim']();}),_0x7105a);}}class f extends _0x2f4267{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x59a6ce=this['editor'],_0x127f51=_0x59a6ce['plugins']['get']('RevisionTracker');_0x59a6ce['ui']['componentFactory']['add']('revisionHistory',_0x46d585=>{const _0x57caca=_0x529ca5(_0x46d585),_0x207d79=_0x57caca['panelView']['children'],_0xdaf59d=new _0x3bfbf3(_0x46d585),_0x1f48bf=new _0x151778(_0x46d585),_0x1573d0=new te(_0x46d585),_0x395ba=new _0x151778(_0x46d585),_0x3ceb0d=new te(_0x46d585);return _0x57caca['bind']('isEnabled')['to'](_0x127f51,'isReady',_0x127f51,'isEnabled',_0x59a6ce,'isReadOnly',(_0x9013cd,_0xaf366c,_0x59a18d)=>_0x9013cd&&_0xaf366c&&!_0x59a18d),_0x57caca['buttonView']['set']({'icon':_0x3bf216,'label':g(_0x46d585,'Revision\x20history'),'tooltip':!0x0}),_0x1573d0['set']({'label':g(_0x46d585,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1573d0['bind']('isEnabled')['to'](_0x127f51,'isReady',_0x127f51,'isEnabled',_0x59a6ce,'isReadOnly',(_0x29f3a4,_0x300952,_0x5478c3)=>_0x29f3a4&&_0x300952&&!_0x5478c3),_0x1573d0['on']('execute',()=>this['_showDialog']()),_0x3ceb0d['set']({'label':g(_0x46d585,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3ceb0d['bind']('isEnabled')['to'](_0x127f51,'isReady',_0x59a6ce,'isReadOnly',(_0x34014e,_0x4b3091)=>_0x34014e&&!_0x4b3091),_0x3ceb0d['on']('execute',()=>{_0x59a6ce['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x57caca['isOpen']=!0x1,_0x59a6ce['editing']['view']['focus']();}),_0x1f48bf['children']['add'](_0x1573d0),_0x395ba['children']['add'](_0x3ceb0d),_0xdaf59d['role']='menu',_0xdaf59d['items']['addMany']([_0x1f48bf,_0x395ba]),_0x207d79['add'](_0xdaf59d),_0x57caca;}),_0x59a6ce['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x30eb39=this['editor'],_0xddb1e7=_0x30eb39['locale'],_0x421475=new _0x16fe0a(_0xddb1e7),_0x442c45=new _0x5339db(_0xddb1e7);_0x421475['buttonView']['set']({'icon':_0x3bf216,'label':g(_0xddb1e7,'Revision\x20history')});const _0x4b3cb5=new _0x50e128(_0xddb1e7,_0x421475),_0x563279=new _0x43bde8(_0xddb1e7);_0x563279['set']({'label':g(_0xddb1e7,'Save\x20current\x20revision')}),_0x563279['delegate']('execute')['to'](_0x421475),_0x563279['on']('execute',()=>{this['_showDialog']();}),_0x4b3cb5['children']['add'](_0x563279),_0x442c45['items']['add'](_0x4b3cb5);const _0x203450=new _0x50e128(_0xddb1e7,_0x421475),_0x3b3346=new _0x43bde8(_0xddb1e7);return _0x3b3346['set']({'label':g(_0xddb1e7,'Open\x20revision\x20history')}),_0x3b3346['delegate']('execute')['to'](_0x421475),_0x3b3346['on']('execute',()=>{_0x30eb39['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x203450['children']['add'](_0x3b3346),_0x442c45['items']['add'](_0x203450),_0x421475['panelView']['children']['add'](_0x442c45),_0x421475;}['_showDialog'](){const _0x1ee7b8=this['editor'],_0x1c00c6=_0x1ee7b8['locale'],_0x286ac5=_0x1ee7b8['plugins']['get']('Dialog'),_0x3b9aef=_0x1ee7b8['plugins']['get']('RevisionTracker');function _0x1538de(_0x2aff23){_0x1ee7b8['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2aff23['revisionName']?_0x2aff23['revisionNameInputView']['errorText']=g(_0x1c00c6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1ee7b8['plugins']['get'](u)['saveRevision']({'name':_0x2aff23['revisionName']}),_0x286ac5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1538de(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x286ac5['show']({'id':'revisionSave','title':g(_0x1c00c6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1ee7b8['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x286ac5['hide']()},{'label':g(_0x1ee7b8['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x297535){_0x297535['bind']('isEnabled')['to'](_0x3b9aef,'isReady',_0x3b9aef,'isEnabled',_0x1ee7b8,'isReadOnly',(_0x49db24,_0x2a7b41,_0x177e03)=>_0x49db24&&_0x2a7b41&&!_0x177e03);},'onExecute':()=>_0x1538de(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4a30e6=this['editor'],_0x424179=_0x4a30e6['locale'];this['_saveRevisionFormView']=new hs(_0x424179,_0x4a30e6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x205ad6,_0x1fc5b6){super(_0x205ad6),this['_model']=_0x1fc5b6,this['changeId']=_0x1fc5b6['id'];const _0x4b790b=this['bindTemplate'],_0x39dcf6=g(_0x205ad6,_0x1fc5b6['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1fc5b6['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1fc5b6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4b790b['to']('type',_0x43dd5f=>'ck-revision-change__'+_0x43dd5f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x39dcf6}]},{'text':'\x20'+_0x1fc5b6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2a9c92(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1dc365){super(),this['id']=_0x1dc365['id']||_0x47a55d(),this['author']=_0x1dc365['author'],this['type']=_0x1dc365['type'],this['data']=_0x1dc365['data']||{},this['rootName']=_0x1dc365['rootName'],this['set']('createdAt',_0x1dc365['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3dc4af,_0x364718){this['newRevisionId']=_0x3dc4af,this['oldRevisionId']=_0x364718,this['changes']=new _0x1cbdeb();}['_setChanges'](_0x29a6f3){for(const _0x61957f of _0x29a6f3)this['changes']['add'](_0x61957f);}}class m extends _0x2f4267{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5d01d3,_0x52ee30,I,V];}constructor(_0x4fb008){super(_0x4fb008),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1ec220,_0x4d85fa,_0x4bfeca)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x530379=>{for(const _0x1b311d of this['editor']['editing']['view']['document']['roots'])_0x4bfeca?_0x530379['removeClass']('ck-editor__editable__overlay',_0x1b311d):_0x530379['addClass']('ck-editor__editable__overlay',_0x1b311d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x41f942=>null!==_0x41f942),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x519d27,_0x32794e,_0x1d93f2)=>_0x519d27&&_0x1d93f2?_0x32794e['changes']['getIndex'](_0x1d93f2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x525805,_0x257c64)=>_0x525805?_0x257c64['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x52ee30);}['init'](){const _0x294bd7=this['editor'],_0x191d7a=new wt(_0x294bd7,{'direction':'backward'}),_0x1d4403=new wt(_0x294bd7,{'direction':'forward'});(_0x294bd7['commands']['add']('showPreviousChange',_0x191d7a),_0x294bd7['commands']['add']('showNextChange',_0x1d4403),_0x294bd7['commands']['add']('restoreRevision',new mt(_0x294bd7)),this['on']('change:numberOfChanges',()=>{_0x191d7a['refresh'](),_0x1d4403['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x294bd7['enableReadOnlyMode']('revision-viewer'),_0x294bd7['plugins']['has']('WidgetToolbarRepository'))&&_0x294bd7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x20b707){return await this['_utils']['loadRevisionData'](_0x20b707,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x20b707);}async['getRevisionRootsAttributes'](_0x4b7eb4){return await this['_utils']['loadRevisionData'](_0x4b7eb4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4b7eb4);}async['compare'](_0x4760ea,_0x2a3a5a,_0x26846d=!0x1){if(!this['isEnabled'])return;const _0x43f546=this['diff'],_0x42d90c=this['repository'],_0x279cb1='string'==typeof _0x4760ea?_0x42d90c['getRevision'](_0x4760ea):_0x4760ea,_0xf11526='string'==typeof _0x2a3a5a?_0x42d90c['getRevision'](_0x2a3a5a):_0x2a3a5a,_0xf38323=_0x279cb1['id'],_0x2685b5=_0xf11526?_0xf11526['id']:null;if(!_0x26846d&&this['diff']&&this['diff']['newRevisionId']===_0xf38323&&this['diff']['oldRevisionId']===_0x2685b5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xf38323,_0x2685b5);const _0x5820bb=this['_getRevisionsRange'](_0x279cb1,_0xf11526,!0x0)['map'](_0x4302ee=>this['_utils']['loadRevisionData'](_0x4302ee,this['adapter']));return _0x5820bb['push'](new Promise(_0x3e4ed9=>{setTimeout(_0x3e4ed9,0x14);})),Promise['all'](_0x5820bb)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3b97b8=this['_getDiff'](_0xf38323,_0x2685b5);for(const _0x2f4017 of _0x3b97b8['changes'])this['_changeIdToChange']['set'](_0x2f4017['id'],_0x2f4017);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3d5928=>{for(const _0x11ba87 of this['editor']['model']['document']['getRootNames']())_0x3d5928['detachRoot'](_0x11ba87);for(const _0x527b89 of Object['keys'](_0x3b97b8['model'])){const _0x5a07f6=_0x3d5928['addRoot'](_0x527b89);for(const _0x291990 of Object['keys'](_0x3b97b8['attributes'][_0x527b89]))_0x3d5928['setAttribute'](_0x291990,_0x3b97b8['attributes'][_0x527b89][_0x291990],_0x5a07f6);_0x3d5928['insert'](_0x3b97b8['model'][_0x527b89],_0x5a07f6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3b97b8['changes'])),this['isReady']=!0x0;})['catch'](_0x155c8f=>{console['error'](_0x155c8f),this['_cleanUp'](),_0x43f546&&(this['diff']=_0x43f546),this['isReady']=!0x0;});}['addRevisionData'](_0xb092e3,_0x1442f5){const _0x556daa=this['repository']['createRevision'](_0xb092e3);return _0x556daa['on']('_update',(_0x18d56c,_0x21cab7,_0x5aa256)=>_0x1442f5(_0x21cab7,_0x5aa256,_0x556daa)),this['repository']['addRevision'](_0x556daa),_0x556daa;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x522c40=>{for(const _0x3bb4bf of this['editor']['model']['document']['getRootNames']())_0x522c40['detachRoot'](_0x3bb4bf);});}['_sortAndFilterDiffChanges'](_0x2d5fbc){const _0x2e2139=[],_0x52f3d1=new Map();for(const _0x3d63d0 of this['editor']['model']['document']['getRootNames']()){const _0x4b87e5=this['editor']['editing']['view']['getDomRoot'](_0x3d63d0);if(!_0x4b87e5)continue;const _0x1b45e6=_0x4b87e5['getClientRects']()['item'](0x0);_0x1b45e6&&(_0x2e2139['push'](_0x3d63d0),_0x52f3d1['set'](_0x3d63d0,_0x1b45e6));}return _0x2e2139['sort']((_0x1d392a,_0xb4260b)=>{const _0x5501f8=_0x52f3d1['get'](_0x1d392a),_0x5503a2=_0x52f3d1['get'](_0xb4260b);return _0x5501f8['y']-_0x5503a2['y']||_0x5501f8['x']-_0x5503a2['x'];}),(_0x2d5fbc=_0x2d5fbc['filter'](_0x556ab4=>_0x2e2139['includes'](_0x556ab4['rootName'])))['sort']((_0x3cfa54,_0x2a6903)=>_0x2e2139['indexOf'](_0x3cfa54['rootName'])-_0x2e2139['indexOf'](_0x2a6903['rootName'])),_0x2d5fbc;}['_makeTape'](_0x22056a){const _0x231958=Array['from'](_0x22056a['markers'])['filter'](([_0x4eb005,_0x421b63])=>_0x4eb005['startsWith']('revision:')&&!_0x421b63['isCollapsed']),_0x3d6388=Array['from'](this['editor']['model']['createRangeIn'](_0x22056a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x231958['length'])for(const _0x234c31 of _0x3d6388){const [_0x1b7b5d,_0x520652]=_0x231958[0x0],[,_0x466c5a,_0x25324b]=_0x1b7b5d['split'](':');if(_0x520652['end']['isEqual'](_0x234c31['nextPosition'])&&_0x231958['shift'](),(_0x234c31['previousPosition']['isEqual'](_0x520652['start'])||_0x234c31['previousPosition']['isAfter'](_0x520652['start']))&&('insertion'==_0x466c5a?_0x234c31['isAdded']={'userId':_0x25324b}:'deletion'==_0x466c5a&&(_0x234c31['isRemoved']={'userId':_0x25324b})),0x0==_0x231958['length'])break;}return _0x3d6388;}['_refreshStartEndIndex'](_0x114de2){const _0x3aea52=new Map();for(let _0x395d47=0x0;_0x395d47<_0x114de2['length'];_0x395d47++)'text'===_0x114de2[_0x395d47]['type']?(_0x114de2[_0x395d47]['item']['startIndex']=_0x395d47,_0x114de2[_0x395d47]['item']['endIndex']=_0x395d47):('elementStart'===_0x114de2[_0x395d47]['type']?_0x114de2[_0x395d47]['item']['startIndex']=_0x395d47:'elementEnd'===_0x114de2[_0x395d47]['type']&&(_0x114de2[_0x395d47]['item']['endIndex']=_0x395d47),_0x3aea52['set'](_0x114de2[_0x395d47]['id'],_0x395d47));for(const _0x245b5b of _0x3aea52['values']())'elementStart'===_0x114de2[_0x245b5b]['type']?_0x114de2[_0x245b5b]['item']['endIndex']=_0x3aea52['get'](_0x114de2[_0x245b5b]['pairId']):'elementEnd'===_0x114de2[_0x245b5b]['type']&&(_0x114de2[_0x245b5b]['item']['startIndex']=_0x3aea52['get'](_0x114de2[_0x245b5b]['pairId']));}['_processTape'](_0x1e21b7){for(let _0x1a568f=0x0;_0x1a568f<_0x1e21b7['length'];_0x1a568f++){if('elementStart'===_0x1e21b7[_0x1a568f]['type'])_0x1e21b7[_0x1a568f]['item']['startIndex']=_0x1a568f;else{if('elementEnd'===_0x1e21b7[_0x1a568f]['type']){_0x1e21b7[_0x1a568f]['item']['endIndex']=_0x1a568f;const _0x11b2f6=_0x1e21b7[_0x1a568f]['item']['startIndex'];_0x1e21b7[_0x11b2f6]['pairId']=_0x1e21b7[_0x1a568f]['id'],_0x1e21b7[_0x1a568f]['pairId']=_0x1e21b7[_0x11b2f6]['id'];}else _0x1e21b7[_0x1a568f]['item']['startIndex']=_0x1a568f,_0x1e21b7[_0x1a568f]['item']['endIndex']=_0x1a568f,_0x1e21b7[_0x1a568f]['pairId']=null;}_0x1e21b7[_0x1a568f]['markersStart']||(_0x1e21b7[_0x1a568f]['markersStart']=[],_0x1e21b7[_0x1a568f]['markersEnd']=[]);}}['_markInsertions'](_0x5c880a,_0x45df88){const _0x3ddd9b=_0x5c880a['filter'](_0x2ab718=>!_0x2ab718['isAdded']);for(let _0x31dfe7=0x0;_0x31dfe7<_0x45df88['length'];_0x31dfe7++)_0x45df88[_0x31dfe7]['isAdded']&&(_0x3ddd9b[_0x31dfe7]['isAdded']=_0x45df88[_0x31dfe7]['isAdded']);}['_getDiff'](_0x51ce5f,_0x19f7fb=null){const _0x23c068=this['repository']['getRevision'](_0x51ce5f),_0x296aef=_0x19f7fb?this['repository']['getRevision'](_0x19f7fb):null,_0x16e609=this['_getRevisionsRange'](_0x23c068,_0x296aef),_0x5a3de4=_0x16e609[_0x16e609['length']-0x1],_0x579adb=new Map(),_0x296b0e={'model':{},'attributes':{},'changes':[]},_0x421d85=new Set(),_0x25e12a=new Map();for(let _0x5ced17=_0x16e609['length']-0x1;_0x5ced17>=0x0;_0x5ced17--){const _0x3b17aa=_0x16e609[_0x5ced17];for(const _0x4951c4 of Object['keys'](_0x3b17aa['diffData']))if(_0x3b17aa['diffData'][_0x4951c4]['attachChange']){const _0x3944cc=_0x3b17aa['diffData'][_0x4951c4]['attachChange'];_0x3944cc['isAttached']?(_0x421d85['add'](_0x4951c4),_0x25e12a['has'](_0x4951c4)&&_0x25e12a['get'](_0x4951c4)['userId']==_0x3944cc['userId']?_0x25e12a['delete'](_0x4951c4):_0x25e12a['set'](_0x4951c4,_0x3944cc)):_0x25e12a['has'](_0x4951c4)?(_0x421d85['delete'](_0x4951c4),_0x25e12a['delete'](_0x4951c4)):(_0x421d85['add'](_0x4951c4),_0x25e12a['set'](_0x4951c4,_0x3944cc));}else _0x421d85['add'](_0x4951c4);}for(const _0x3bc3dc of _0x421d85){const _0x2d7f1b=_0x25e12a['has'](_0x3bc3dc)&&!_0x25e12a['get'](_0x3bc3dc)['isAttached'];let _0x9a374=_0x2d7f1b?_0x16e609['length']-0x1:0x0;const _0xa06bd0=_0x2d7f1b?-0x1:0x1;for(;_0x16e609[_0x9a374];){const _0x16bd13=_0x16e609[_0x9a374];if(_0x16bd13['diffData'][_0x3bc3dc]){const _0x529e64=_0x2d7f1b?_0x16bd13['diffData'][_0x3bc3dc]['attributesBefore']:_0x16bd13['diffData'][_0x3bc3dc]['attributesAfter'];_0x296b0e['attributes'][_0x3bc3dc]=_0x529e64?_0x4e664b(_0x529e64):{};break;}_0x9a374+=_0xa06bd0;}}for(const _0x19d576 of _0x16e609){_0x19d576['model']={};for(const _0x1291a4 of _0x19d576['authors'])_0x579adb['set'](_0x1291a4['id'],_0x1291a4);for(const _0x389604 of _0x421d85){const _0x5aec22=_0x19d576['diffData'][_0x389604]?_0x19d576['diffData'][_0x389604]['insertions']:'[]',_0x47d139=_0x19d576['diffData'][_0x389604]?_0x19d576['diffData'][_0x389604]['deletions']:'[]';_0x19d576['model'][_0x389604]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5aec22),'deletions':this['_utils']['_makeModelFromViewString'](_0x47d139)};}}for(const _0x1744de of _0x421d85){let _0x40048f=null,_0x3b2520=0x0;const _0x205c10=new Map(Array['from'](_0x23c068['model'][_0x1744de]['insertions']['markers'])['filter'](([_0x22cd47])=>!_0x22cd47['startsWith']('revision:')));let _0x39e026=0x0;for(const _0x4e7575 of _0x16e609){const _0x331a02=this['_makeTape'](_0x4e7575['model'][_0x1744de]['insertions']);_0x4e7575==_0x23c068?(_0x40048f=_0x331a02,_0x3b2520=_0x40048f['length'],_0x40048f['forEach'](_0x3537ac=>{_0x3537ac['id']=_0x39e026++;}),this['_processTape'](_0x40048f)):this['_markInsertions'](_0x40048f,_0x331a02);const _0x192d24=_0x40048f['filter'](_0x4644d1=>!_0x4644d1['isAdded'])['map'](_0x36790e=>_0x36790e['id']);let _0x4eb4e3=0x0;const _0x1299c8=this['_makeTape'](_0x4e7575['model'][_0x1744de]['deletions']);_0x1299c8['forEach'](_0x6e5f69=>{_0x6e5f69['isRemoved']?_0x6e5f69['id']=_0x3b2520++:_0x6e5f69['id']=_0x192d24[_0x4eb4e3++];}),this['_processTape'](_0x1299c8),this['_setDistance'](_0x40048f,'isAdded'),this['_setDistance'](_0x1299c8,'isRemoved'),_0x4e7575==_0x23c068&&this['_markMarkers'](_0x40048f,_0x205c10),_0x40048f=this['_joinTapes'](_0x40048f,_0x1299c8),this['_refreshStartEndIndex'](_0x40048f),this['_setDistance'](_0x40048f,'isRemoved');}_0x40048f=_0x40048f['filter'](_0xd60afd=>!(_0xd60afd['isAdded']&&_0xd60afd['isRemoved']));const _0x5a1300=new Map(_0x5a3de4['model'][_0x1744de]['deletions']['markers']),_0x100c74=new Set(_0x205c10['keys']());for(const _0x501e48 of _0x5a1300['keys']())_0x100c74['delete'](_0x501e48);this['_markSuggestions'](_0x40048f,_0x100c74),this['_fixObsoleteTags'](_0x40048f),_0x40048f=this['_removeMissingPairs'](_0x40048f),_0x40048f=this['_markMismatchedRemovedTags'](_0x40048f),_0x40048f=this['_removeUnsupportedChanges'](_0x40048f);const {root:_0x30052f,changes:_0x3c1cc8}=this['_makeModelFromTape'](_0x40048f,_0x579adb,_0x1744de);_0x296b0e['model'][_0x1744de]=_0x30052f;const _0x1bfaa9=_0x25e12a['get'](_0x1744de);if(_0x1bfaa9){const _0x3ae9dc=_0x579adb['get'](_0x1bfaa9['userId']),_0x1309a9=new r({'author':_0x3ae9dc,'type':_0x1bfaa9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1744de});_0x3c1cc8['unshift'](_0x1309a9),_0x296b0e['attributes'][_0x1744de]['revisionHistoryAttachChange']=_0x1309a9['id'];}_0x296b0e['changes']=_0x296b0e['changes']['concat'](_0x3c1cc8);}return _0x296b0e;}['_markMarkers'](_0x4543e9,_0x2406b3){for(let _0x347af7=0x0;_0x347af7<_0x4543e9['length'];_0x347af7++)for(const [_0x1e2fbf,_0x2a8749]of _0x2406b3)!_0x2a8749['isCollapsed']&&_0x2a8749['start']['isEqual'](_0x4543e9[_0x347af7]['previousPosition'])&&_0x4543e9[_0x347af7]['markersStart']['push'](_0x1e2fbf),_0x2a8749['end']['isEqual'](_0x4543e9[_0x347af7]['nextPosition'])&&_0x4543e9[_0x347af7]['markersEnd']['push'](_0x1e2fbf);}['_joinTapes'](_0x484baa,_0x5a8336){let _0x428f1f=[],_0x16a8ba=0x0,_0x5ce010=0x0;for(;_0x16a8ba<_0x484baa['length']||_0x5ce010<_0x5a8336['length'];){const _0x619617=_0x484baa[_0x16a8ba]||{},_0x27a817=_0x5a8336[_0x5ce010]||{};if(_0x619617['id']==_0x27a817['id'])_0x16a8ba++,_0x5ce010++,_0x428f1f['push'](_0x619617);else{if(_0x27a817['isRemoved']&&_0x619617['isAdded']){const {commonTape:_0x400f13,iEnd:_0x11127c,jEnd:_0x7f5922}=this['_threeWayMerge'](_0x484baa,_0x16a8ba,_0x5a8336,_0x5ce010);_0x428f1f=_0x428f1f['concat'](_0x400f13),_0x16a8ba=_0x11127c,_0x5ce010=_0x7f5922;}else _0x27a817['isRemoved']?(_0x5ce010++,_0x428f1f['push'](_0x27a817)):(_0x16a8ba++,_0x428f1f['push'](_0x619617));}}return _0x428f1f;}['_markSuggestions'](_0x169435,_0x135347){const _0x46eb56=[];for(let _0x4d9122=0x0;_0x4d9122<_0x169435['length'];_0x4d9122++){for(let _0x91454b=0x0;_0x91454b<_0x169435[_0x4d9122]['markersStart']['length'];_0x91454b++){const _0x421500=_0x169435[_0x4d9122]['markersStart'][_0x91454b];if(!_0x135347['has'](_0x421500))continue;const {group:_0x3c4e26,type:_0x2fec56,authorId:_0xd2e7ef}=_0x40d61b(_0x421500);'revision-suggestion'!=_0x3c4e26||'insertion'!=_0x2fec56&&'deletion'!=_0x2fec56||(_0x46eb56['unshift']({'type':_0x2fec56,'name':_0x421500,'userId':_0xd2e7ef}),_0x169435[_0x4d9122]['markersStart']['splice'](_0x91454b,0x1),_0x91454b--);}_0x48704a(_0x169435[_0x4d9122]);for(let _0x68459=0x0;_0x68459<_0x169435[_0x4d9122]['markersEnd']['length'];_0x68459++){const _0xebe23d=_0x169435[_0x4d9122]['markersEnd'][_0x68459];if(!_0x135347['has'](_0xebe23d))continue;const {group:_0x136ae5,type:_0x1f85ad}=_0x40d61b(_0xebe23d);if('revision-suggestion'!=_0x136ae5||'insertion'!=_0x1f85ad&&'deletion'!=_0x1f85ad)continue;_0x169435[_0x4d9122]['markersEnd']['splice'](_0x68459,0x1),_0x68459--;const _0x2a024e=_0x46eb56['findIndex'](_0x4dcde9=>_0x4dcde9['name']==_0xebe23d);_0x2a024e>-0x1&&_0x46eb56['splice'](_0x2a024e,0x1);}}function _0x40d61b(_0x5fc3e4){const _0x3fc9da=_0x5fc3e4['split'](':');return{'group':_0x3fc9da[0x0],'type':_0x3fc9da[0x1],'subType':_0x3fc9da['length']>=0x5?_0x3fc9da[0x2]:null,'id':_0x3fc9da['length']<0x5?_0x3fc9da[0x2]:_0x3fc9da[0x3],'authorId':_0x3fc9da['length']<0x5?_0x3fc9da[0x3]:_0x3fc9da[0x4],'markerCount':0x6==_0x3fc9da['length']?_0x3fc9da[0x5]:null};}function _0x48704a(_0x3691cc){for(let _0x88d435=0x0;_0x88d435<_0x46eb56['length'];_0x88d435++){if(_0x3691cc['isAdded']&&'insertion'==_0x46eb56[_0x88d435]['type']&&_0x3691cc['isAdded']['userId']==_0x46eb56[_0x88d435]['userId'])return _0x3691cc['isAddSuggestion']=_0x46eb56[_0x88d435],void delete _0x3691cc['isAdded'];if(!_0x3691cc['isAdded']&&!_0x3691cc['isRemoved']&&'deletion'==_0x46eb56[_0x88d435]['type'])return void(_0x3691cc['isRemoveSuggestion']=_0x46eb56[_0x88d435]);}}}['_setDistance'](_0x1ba9b9,_0x51bdfb){let _0x8a3c58=0x0,_0x2133bb=!0x1;const _0x1d632e=new Map();for(const _0x310c7b of _0x1ba9b9)_0x310c7b[_0x51bdfb]?_0x2133bb&&(_0x8a3c58++,_0x2133bb=!0x1):(_0x8a3c58++,_0x2133bb=!0x0),_0x1d632e['set'](_0x310c7b['id'],_0x8a3c58);for(let _0xf32dc4=0x0;_0xf32dc4<_0x1ba9b9['length'];_0xf32dc4++){if('isRemoved'==_0x51bdfb&&_0x1ba9b9[_0xf32dc4]['isAdded']||'isAdded'==_0x51bdfb&&_0x1ba9b9[_0xf32dc4]['isRemoved'])continue;if('text'==_0x1ba9b9[_0xf32dc4]['type']){_0x1ba9b9[_0xf32dc4]['distance']=0x0;continue;}const _0x18cf01=_0x1d632e['get'](_0x1ba9b9[_0xf32dc4]['pairId']),_0x3333e7=_0x1d632e['get'](_0x1ba9b9[_0xf32dc4]['id']);_0x1ba9b9[_0xf32dc4]['distance']=_0x18cf01-_0x3333e7;}}['_getRevisionsRange'](_0x2ede41,_0x5da3e3,_0x3bd025=!0x1){const _0x23f230=[];let _0x560a19=this['repository']['getIndex'](_0x2ede41),_0x4e72bd=this['repository']['getIndex'](_0x5da3e3);for(-0x1==_0x4e72bd&&(_0x4e72bd=this['repository']['_revisions']['length'],_0x3bd025=!0x1);_0x560a19<_0x4e72bd;)_0x23f230['push'](this['repository']['getRevision'](_0x560a19)),_0x560a19++;return _0x3bd025&&_0x23f230['push'](this['repository']['getRevision'](_0x560a19)),_0x23f230;}['_threeWayMerge'](_0xaf542a,_0x1ab66d,_0x3a954f,_0x470e2c){const _0x465892=this['editor']['model']['schema'];let _0x5983f1=_0x1ab66d;for(;_0xaf542a[_0x5983f1]&&_0xaf542a[_0x5983f1]['isAdded'];)_0x5983f1++;let _0x21e8b0=_0x470e2c;for(;_0x3a954f[_0x21e8b0]&&_0x3a954f[_0x21e8b0]['isRemoved'];)_0x21e8b0++;_0x3d6781(_0xaf542a,_0x1ab66d,_0x5983f1),_0x3d6781(_0x3a954f,_0x470e2c,_0x21e8b0);const _0x50160b=_0x3a954f['slice'](_0x470e2c,_0x21e8b0)['concat'](_0xaf542a['slice'](_0x1ab66d,_0x5983f1));return _0x50160b['sort']((_0x338a17,_0x585629)=>_0x338a17['side']!=_0x585629['side']?_0x338a17['side']-_0x585629['side']:_0x338a17['level']!=_0x585629['level']?_0x338a17['level']-_0x585629['level']:_0x338a17['distance']!=_0x585629['distance']?_0x585629['distance']-_0x338a17['distance']:!!_0x338a17['isAdded']!=!!_0x585629['isAdded']?-0x1==_0x338a17['side']||0x0==_0x338a17['side']?_0x338a17['isAdded']?-0x1:0x1:_0x338a17['isAdded']?0x1:-0x1:_0x338a17['index']-_0x585629['index']),{'commonTape':_0x50160b,'iEnd':_0x5983f1,'jEnd':_0x21e8b0};function _0x3d6781(_0x2f495a,_0x145931,_0x2a78a0){let _0x1553fe=-0x1,_0x220323=Number['POSITIVE_INFINITY'],_0x31dc95=!0x0;for(let _0xb0c2fe=_0x145931;_0xb0c2fe<_0x2a78a0;_0xb0c2fe++)if(_0x465892['isInline'](_0x2f495a[_0xb0c2fe]['item'])||(_0x31dc95=!0x1),_0x2f495a[_0xb0c2fe]['item']['startIndex']<_0x145931&&(_0x1553fe=_0xb0c2fe),_0x2f495a[_0xb0c2fe]['item']['endIndex']>=_0x2a78a0){_0x220323=_0xb0c2fe;break;}_0x31dc95&&(_0x1553fe=_0x2a78a0-0x1);for(let _0x339344=_0x145931;_0x339344<_0x2a78a0;_0x339344++)_0x2f495a[_0x339344]['side']=_0x339344<=_0x1553fe?-0x1:_0x339344<_0x220323?0x0:0x1,_0x2f495a[_0x339344]['index']=_0x339344;let _0x26f27d=0x0;for(let _0x527dbd=_0x145931;_0x527dbd<=_0x1553fe;_0x527dbd++)0x0==_0x2f495a[_0x527dbd]['distance']?_0x2f495a[_0x527dbd]['level']=_0x26f27d:(_0x26f27d++,_0x2f495a[_0x527dbd]['level']=_0x26f27d,_0x26f27d++);for(let _0x11d382=_0x145931;_0x11d382<_0x2a78a0;_0x11d382++)0x0==_0x2f495a[_0x11d382]['side']&&(_0x2f495a[_0x11d382]['level']=_0x26f27d);_0x26f27d=0x0;for(let _0x5a93bf=_0x2a78a0-0x1;_0x5a93bf>=_0x220323;_0x5a93bf--)0x0==_0x2f495a[_0x5a93bf]['distance']?_0x2f495a[_0x5a93bf]['level']=_0x26f27d:(_0x26f27d--,_0x2f495a[_0x5a93bf]['level']=_0x26f27d,_0x26f27d--);}}['_fixObsoleteTags'](_0x27d92c){const _0x3c2fc8=new Map(),_0xba7a1b=this['editor']['model']['schema'];for(let _0x3774df=0x1;_0x3774df<_0x27d92c['length'];_0x3774df++){let _0x3fa6a0,_0x10f448,_0x4766ac;const _0x486912=_0x27d92c[_0x3774df],_0x359574=_0x27d92c[_0x3774df-0x1];if('text'==_0x486912['type'])continue;if(_0x486912['type']!=_0x359574['type'])continue;if(!_0xba7a1b['isBlock'](_0x359574['item'])||_0xba7a1b['isLimit'](_0x359574['item']))continue;if(!_0xba7a1b['isBlock'](_0x486912['item'])||_0xba7a1b['isLimit'](_0x486912['item']))continue;if((_0x27d92c[_0x3774df]['isAdded']||_0x27d92c[_0x3774df]['isAddSuggestion'])&&_0x27d92c[_0x3774df-0x1]['isRemoved'])_0x3fa6a0=_0x27d92c[_0x3774df],_0x10f448=_0x27d92c[_0x3774df-0x1],_0x4766ac=_0x3774df-0x1;else{if(!_0x27d92c[_0x3774df]['isRemoved']||!_0x27d92c[_0x3774df-0x1]['isAdded']&&!_0x27d92c[_0x3774df-0x1]['isAddSuggestion'])continue;_0x3fa6a0=_0x27d92c[_0x3774df-0x1],_0x10f448=_0x27d92c[_0x3774df],_0x4766ac=_0x3774df;}const _0x4c8e03=_0x3fa6a0['level']==_0x10f448['level'],_0x5e8223=Math['abs'](_0x3fa6a0['level'])<Math['abs'](_0x10f448['level'])&&0x0==_0x10f448['distance'];(_0x4c8e03||_0x5e8223)&&(_0x3c2fc8['set'](_0x10f448['id'],_0x3fa6a0['id']),_0x27d92c['splice'](_0x4766ac,0x1),_0x3774df--,_0x3fa6a0['isAdded']=!0x1);}for(let _0x2ae714=0x0;_0x2ae714<_0x27d92c['length'];_0x2ae714++)_0x3c2fc8['has'](_0x27d92c[_0x2ae714]['pairId'])&&(_0x27d92c[_0x2ae714]['pairId']=_0x3c2fc8['get'](_0x27d92c[_0x2ae714]['pairId']));}['_removeMissingPairs'](_0x5625b2){const _0x445843=new Set(_0x5625b2['map'](_0x16d573=>_0x16d573['id']));for(let _0x33d1d4=0x0;_0x33d1d4<_0x5625b2['length'];_0x33d1d4++)_0x445843['has'](_0x5625b2[_0x33d1d4]['pairId'])||0x0==_0x5625b2[_0x33d1d4]['distance']||(_0x5625b2[_0x33d1d4]['isIncorrect']=!0x0);return _0x5625b2['filter'](_0xa0cd8e=>!_0xa0cd8e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1db4e6){const _0x40ae32=new Set();for(let _0x4644d9=0x0;_0x4644d9<_0x1db4e6['length'];_0x4644d9++){if(_0x40ae32['has'](_0x1db4e6[_0x4644d9]['id'])&&_0x1db4e6[_0x4644d9]['isRemoved']&&(_0x1db4e6[_0x4644d9]['isIncorrect']=!0x0),_0x1db4e6[_0x4644d9]['isIncorrect'])continue;if(0x0==_0x1db4e6[_0x4644d9]['distance'])continue;if('elementStart'!=_0x1db4e6[_0x4644d9]['type'])continue;if(null==_0x1db4e6[_0x4644d9]['pairId'])continue;let _0x3363d1=_0x4644d9+0x1,_0x9cc0e7=0x0;for(;_0x1db4e6[_0x3363d1]['id']!=_0x1db4e6[_0x4644d9]['pairId'];)'elementStart'==_0x1db4e6[_0x3363d1]['type']?_0x9cc0e7++:'elementEnd'==_0x1db4e6[_0x3363d1]['type']&&_0x9cc0e7--,_0x3363d1++;if(0x0!=_0x9cc0e7){if(_0x1db4e6[_0x4644d9]['isRemoved'])_0x1db4e6[_0x4644d9]['isIncorrect']=!0x0;else{for(;_0x3363d1!=_0x4644d9;)_0x1db4e6[_0x3363d1]['isRemoved']&&0x0!=_0x1db4e6[_0x3363d1]['distance']&&(_0x1db4e6[_0x3363d1]['isIncorrect']=!0x0,_0x40ae32['add'](_0x1db4e6[_0x3363d1]['pairId'])),_0x3363d1--;}}}return _0x1db4e6['filter'](_0x3df260=>!_0x3df260['isIncorrect']);}['_removeUnsupportedChanges'](_0x2b640a){const _0x1370df=this['editor']['model']['schema'];for(let _0x3660ba=0x0;_0x3660ba<_0x2b640a['length'];_0x3660ba++){if(!(_0x2b640a[_0x3660ba]['isAdded']||_0x2b640a[_0x3660ba]['isAddSuggestion']||_0x2b640a[_0x3660ba]['isRemoved']||_0x2b640a[_0x3660ba]['isRemoveSuggestion']))continue;if(0x0==_0x2b640a[_0x3660ba]['distance'])continue;const _0x3485c0=_0x2b640a[_0x3660ba]['item'];_0x1370df['isBlock'](_0x3485c0)||_0x1370df['isLimit'](_0x3485c0)||(_0x2b640a[_0x3660ba]['isAdded']&&delete _0x2b640a[_0x3660ba]['isAdded'],_0x2b640a[_0x3660ba]['isAddSuggestion']&&delete _0x2b640a[_0x3660ba]['isAddSuggestion'],_0x2b640a[_0x3660ba]['isRemoveSuggestion']&&delete _0x2b640a[_0x3660ba]['isRemoveSuggestion'],_0x2b640a[_0x3660ba]['isRemoved']&&(_0x2b640a[_0x3660ba]['isIncorrect']=!0x0));}return _0x2b640a['filter'](_0x5124d0=>!_0x5124d0['isIncorrect']);}['_makeModelFromTape'](_0x4c412d,_0x498c12,_0x3dd51f){const _0x4344ab=new vt(),_0x503505=[],_0xf5eab5=new Map(),_0x561fb1=this['editor']['model'],_0x41e00c=_0x561fb1['schema'],_0x190f2b=[_0x4344ab],_0x2c23a2={},_0x5af199={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x568208=null;const _0x2986f2=[0x0];for(let _0x40b8cf=0x0;_0x40b8cf<_0x4c412d['length'];_0x40b8cf++)if('elementStart'===_0x4c412d[_0x40b8cf]['type']){_0x4c412d[_0x40b8cf]['previousPosition']=_0x561fb1['createPositionFromPath'](_0x4344ab,_0x2986f2);const _0x5ca03a=new ut(_0x4c412d[_0x40b8cf]['item']['name'],_0x4c412d[_0x40b8cf]['item']['getAttributes']());_0x190f2b[0x0]['_appendChild'](_0x5ca03a),_0x2986f2['push'](0x0),_0x190f2b['unshift'](_0x5ca03a),_0x4c412d[_0x40b8cf]['nextPosition']=_0x561fb1['createPositionFromPath'](_0x4344ab,_0x2986f2);}else'elementEnd'===_0x4c412d[_0x40b8cf]['type']?(_0x190f2b['shift'](),_0x4c412d[_0x40b8cf]['previousPosition']=_0x561fb1['createPositionFromPath'](_0x4344ab,_0x2986f2),_0x2986f2['pop'](),_0x2986f2[_0x2986f2['length']-0x1]++,_0x4c412d[_0x40b8cf]['nextPosition']=_0x561fb1['createPositionFromPath'](_0x4344ab,_0x2986f2)):(_0x4c412d[_0x40b8cf]['previousPosition']=_0x561fb1['createPositionFromPath'](_0x4344ab,_0x2986f2),_0x568208?_0x568208['_data']+=_0x4c412d[_0x40b8cf]['item']['data']:_0x568208=new gt(_0x4c412d[_0x40b8cf]['item']['data'],_0x4c412d[_0x40b8cf]['item']['getAttributes']()),_0x4c412d[_0x40b8cf+0x1]&&'text'===_0x4c412d[_0x40b8cf+0x1]['type']&&_0x4d3b78(_0x568208,_0x4c412d[_0x40b8cf+0x1]['item'])||(_0x190f2b[0x0]['_appendChild'](_0x568208),_0x568208=null),_0x2986f2[_0x2986f2['length']-0x1]+=_0x4c412d[_0x40b8cf]['item']['offsetSize'],_0x4c412d[_0x40b8cf]['nextPosition']=_0x561fb1['createPositionFromPath'](_0x4344ab,_0x2986f2));for(let _0x362781=0x0;_0x362781<_0x4c412d['length'];_0x362781++){const _0xbbe940=_0x4c412d[_0x362781]['previousPosition'],_0x9d5b25=_0x4c412d[_0x362781]['nextPosition'];for(const _0x5a7e5c of _0x4c412d[_0x362781]['markersStart'])_0xf5eab5['set'](_0x5a7e5c,{'start':_0xbbe940,'end':null});_0x5af475('isRemoveSuggestion',_0x362781,_0xbbe940,_0x9d5b25),_0x5af475('isAddSuggestion',_0x362781,_0xbbe940,_0x9d5b25),_0x5af475('isRemoved',_0x362781,_0xbbe940,_0x9d5b25),_0x5af475('isAdded',_0x362781,_0xbbe940,_0x9d5b25);for(const _0x1095c2 of _0x4c412d[_0x362781]['markersEnd']){const _0x21145e=_0xf5eab5['get'](_0x1095c2);_0x21145e?_0x21145e['end']=_0x9d5b25:_0xf5eab5['set'](_0x1095c2,{'start':_0x9d5b25,'end':_0x9d5b25});}}for(const [_0x3ec1ba,_0x3ba91c]of _0xf5eab5){const _0x1e83d1=this['editor']['model']['createRange'](_0x3ba91c['start'],_0x3ba91c['end']);_0x4344ab['markers']['set'](_0x3ec1ba,_0x1e83d1);}return _0x503505['sort']((_0x48a0e8,_0x3ae27e)=>{const _0x3710ae=_0x4344ab['markers']['get']('revision:'+_0x48a0e8['id']),_0x1506f1=_0x4344ab['markers']['get']('revision:'+_0x3ae27e['id']);return _0x3710ae['start']['isBefore'](_0x1506f1['start'])?-0x1:_0x3710ae['start']['isAfter'](_0x1506f1['start'])?0x1:_0x3710ae['end']['isBefore'](_0x1506f1['end'])?-0x1:_0x3710ae['end']['isAfter'](_0x1506f1['end'])?0x1:'add'===_0x48a0e8['type']?-0x1:0x1;}),{'root':_0x4344ab,'changes':_0x503505};function _0x5af475(_0x120106,_0x1b890f,_0x3179c2,_0x5b616){const _0x2ba310=!!_0x4c412d[_0x1b890f][_0x120106],_0x1c64b0=_0x2ba310?_0x4c412d[_0x1b890f][_0x120106]['userId']:null,_0x133b6e=_0x1b890f===_0x4c412d['length']-0x1,_0x126296=_0x5af199[_0x120106][0x0],_0x986086=_0x41e00c['isObject'](_0x4c412d[_0x1b890f]['item']);!_0x2c23a2[_0x120106]&&_0x2ba310?_0x2c23a2[_0x120106]={'start':_0x3179c2,'tapeItem':_0x4c412d[_0x1b890f],'userId':_0x1c64b0,'type':_0x120106}:_0x2c23a2[_0x120106]&&!_0x2ba310?(_0x2c23a2[_0x120106]['end']=_0x3179c2,_0x146ad8(_0x2c23a2[_0x120106]),_0x2c23a2[_0x120106]=null):_0x2c23a2[_0x120106]&&_0x2ba310&&_0x2c23a2[_0x120106]['userId']!==_0x1c64b0&&(_0x2c23a2[_0x120106]['end']=_0x3179c2,_0x126296&&_0x126296['userId']===_0x2c23a2[_0x120106]['userId']||_0x146ad8(_0x2c23a2[_0x120106]),_0x2c23a2[_0x120106]={'start':_0x3179c2,'tapeItem':_0x4c412d[_0x1b890f],'userId':_0x1c64b0,'type':_0x120106}),_0x2c23a2[_0x120106]&&_0x986086&&('elementStart'!==_0x4c412d[_0x1b890f]['type']||_0x126296&&_0x126296['userId']===_0x1c64b0||_0x5af199[_0x120106]['unshift']({'userId':_0x1c64b0,'object':_0x4c412d[_0x1b890f]['item'],'change':_0x2c23a2[_0x120106]}),'elementEnd'===_0x4c412d[_0x1b890f]['type']&&_0x126296&&_0x126296['object']===_0x4c412d[_0x1b890f]['item']&&(_0x5af199[_0x120106]['shift'](),_0x2c23a2[_0x120106]=_0x126296['change'])),_0x2c23a2[_0x120106]&&_0x133b6e&&(_0x2c23a2[_0x120106]['end']=_0x5b616,_0x146ad8(_0x2c23a2[_0x120106]),_0x2c23a2[_0x120106]=null);}function _0x146ad8({start:_0x56b781,end:_0x21fc3b,tapeItem:_0x46ebe6,userId:_0x13f1a4,type:_0x2304a1}){const _0xb2cc4f=_0x46ebe6['item'],_0x2ff04d=_0x561fb1['schema']['isBlock'](_0xb2cc4f)&&!_0x561fb1['schema']['isLimit'](_0xb2cc4f),_0x59faf3=_0x56b781['nodeAfter']==_0x21fc3b['parent']&&_0x21fc3b['isAtStart'];if(_0x2ff04d&&_0x59faf3)return;const _0x343c3c=_0x561fb1['createRange'](_0x56b781,_0x21fc3b),_0x21b7d7=_0x498c12['get'](_0x13f1a4),_0xb0631e=new r({'author':_0x21b7d7,'type':'isAdded'==_0x2304a1||'isAddSuggestion'==_0x2304a1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2304a1||'isRemoveSuggestion'==_0x2304a1},'createdAt':new Date(),'rootName':_0x3dd51f});_0x503505['push'](_0xb0631e),_0x4344ab['markers']['set']('revision:'+_0xb0631e['id'],_0x343c3c);}function _0x4d3b78(_0x131393,_0x5c2675){const _0x2579bd=_0x131393['getAttributes'](),_0x464330=_0x5c2675['getAttributes']();for(const _0x31c805 of _0x2579bd){if(_0x31c805[0x1]!==_0x5c2675['getAttribute'](_0x31c805[0x0]))return!0x1;_0x464330['next']();}return _0x464330['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4bdcb6=>{const _0x301f1a=_0x4bdcb6['markerName']['split'](':')[0x1],_0x4ff908=this['_getChangeFromId'](_0x301f1a);if(!_0x4ff908)return null;const _0x30664b='add'==_0x4ff908['type']?'insertion':'deletion',_0x415d56=['ck-suggestion-marker','ck-suggestion-marker-'+_0x30664b];return _0x4ff908['data']['isSuggestion']&&_0x415d56['push']('ck-suggestion-marker-'+_0x30664b+'-new'),this['activeChange']==_0x4ff908&&_0x415d56['push']('ck-suggestion-marker--active'),{'classes':_0x415d56,'attributes':{'data-change-id':_0x301f1a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x304407=>{_0x304407['on']('element:pre',(_0x25d187,_0x3159f9,_0x1e09de)=>{const _0x51d9e2=_0x3159f9['viewItem']['getChild'](0x0);if(!_0x51d9e2||!_0x51d9e2['is']('element','code'))return;if(!_0x1e09de['consumable']['consume'](_0x51d9e2,{'attributes':['vid_start','vid_end']}))return;const _0x1d5222=_0x3159f9['modelRange']['start']['nodeAfter'];_0x1e09de['writer']['setAttribute']('vid_start',_0x51d9e2['getAttribute']('vid_start'),_0x1d5222),_0x1e09de['writer']['setAttribute']('vid_end',_0x51d9e2['getAttribute']('vid_end'),_0x1d5222);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x468710=>{_0x468710['on']('element',(_0x3672af,_0x54f869,_0x5148ab)=>{if(!_0x5148ab['consumable']['consume'](_0x54f869['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x54f869['modelRange']['isCollapsed'])return;const _0x2daf84=_0x54f869['modelRange']['start']['nodeAfter'];_0x2daf84['hasAttribute']('vid_start')||_0x2daf84['hasAttribute']('vid')||(_0x5148ab['writer']['setAttribute']('vid_start',_0x54f869['viewItem']['getAttribute']('vid_start'),_0x2daf84),_0x5148ab['writer']['setAttribute']('vid_end',_0x54f869['viewItem']['getAttribute']('vid_end'),_0x2daf84));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xbbd6bb=>_0xbbd6bb['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x49b78e,[,_0xd42356])=>{['vid_start','vid_end','vid']['includes'](_0xd42356)&&(_0x49b78e['return']=!0x0,_0x49b78e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3b5439=>{_0x3b5439['on']('attribute:vid',(_0x1ab1a0,_0x5540d7,_0x5407a5)=>{if('\x20'!=_0x5540d7['item']['data']||_0x5540d7['item']['parent']['maxOffset']>0x1)return;if(!_0x5407a5['consumable']['consume'](_0x5540d7['item'],_0x1ab1a0['name']))return;const _0x48f54d=_0x5407a5['writer'],_0x413d52=_0x5407a5['mapper']['toViewRange'](_0x5540d7['range']);_0x48f54d['wrap'](_0x413d52,_0x48f54d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1112ab){const _0x47f097=_0x1112ab['plugins']['get']('RevisionViewer');return(_0x28a271,_0x1999eb,_0x59b776)=>{const _0x4ee7e2=_0x1999eb['markerName']['split'](':')[0x1],_0xd04999=_0x47f097['_getChangeFromId'](_0x4ee7e2);if(!_0xd04999)return null;const _0x42bb02='add'==_0xd04999['type']?'split':'merge';if(!_0x59b776['consumable']['test'](_0x1999eb['markerRange'],_0x28a271['name']))return;const _0x264676=_0x1999eb['markerRange']['getWalker'](),_0x47233d=_0x1999eb['markerRange']['start'],_0x257d4f=_0x1112ab['model']['schema'];let _0x32d78a=null,_0x21f71f=null,_0x4699d9=!0x1,_0x2cf4ca=!0x1;for(const _0x4e1e2f of _0x264676){const _0x77a973=_0x4e1e2f['item'];_0x4699d9=_0x4699d9||_0x257d4f['isContent'](_0x77a973);const _0x3946c6=_0x59b776['mapper']['toViewElement'](_0x77a973);if(_0x3946c6&&_0x3946c6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e1e2f['type']&&(_0x257d4f['isBlock'](_0x77a973)&&!_0x257d4f['isLimit'](_0x77a973)&&(_0x77a973['nextSibling']||_0x47233d['isAtEnd']?_0x32d78a&&_0x32d78a['parent']==_0x77a973||(_0x32d78a=_0x77a973,_0x1fa73c(_0x4e1e2f['previousPosition']),_0x2cf4ca=!0x0):_0x21f71f=_0x21f71f||_0x4e1e2f['previousPosition']));}function _0x1fa73c(_0x1777c4){const _0x53b7ac=_0x59b776['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42bb02}),_0x4ccfd0=_0x59b776['mapper']['toViewPosition'](_0x1777c4);_0xd04999['data']['isSuggestion']&&_0x59b776['writer']['addClass']('ck-suggestion-marker-'+_0x42bb02+'-new',_0x53b7ac),_0x47f097['activeChange']==_0xd04999&&_0x59b776['writer']['addClass']('ck-suggestion-marker--active',_0x53b7ac),_0x59b776['writer']['insert'](_0x4ccfd0,_0x53b7ac),_0x59b776['mapper']['bindElementToMarker'](_0x53b7ac,_0x1999eb['markerName']);}_0x4699d9||_0x2cf4ca||!_0x21f71f||_0x1fa73c(_0x21f71f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x30b718,_0x21a1ee,_0x3f9038)=>{const _0x2b9169=_0x3f9038['mapper']['markerNameToElements'](_0x21a1ee['markerName']);if(_0x2b9169){for(const _0x43af9e of _0x2b9169)(_0x43af9e['hasClass']('ck-suggestion-marker-split')||_0x43af9e['hasClass']('ck-suggestion-marker-merge'))&&(_0x3f9038['mapper']['unbindElementFromMarkerName'](_0x43af9e,_0x21a1ee['markerName']),_0x3f9038['writer']['remove'](_0x43af9e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x40953c,_0x575136,_0xa27ef0)=>{const _0x2ab895=_0x575136['markerName']['split'](':')[0x1],_0x168685=this['_getChangeFromId'](_0x2ab895);if(!_0x168685)return null;const _0x411a0b='add'==_0x168685['type']?'split':'merge';if(_0xa27ef0['consumable']['test'](_0x575136['markerRange'],_0x40953c['name']))for(const _0x3f8ccc of _0x575136['markerRange']['getItems']()){if(!_0x3f8ccc['is']('element','softBreak'))continue;const _0x43d784=_0xa27ef0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x411a0b}),_0x2056c7=_0xa27ef0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3f8ccc));_0x168685['data']['isSuggestion']&&_0xa27ef0['writer']['addClass']('ck-suggestion-marker-'+_0x411a0b+'-new',_0x43d784),this['activeChange']==_0x168685&&_0xa27ef0['writer']['addClass']('ck-suggestion-marker--active',_0x43d784),_0xa27ef0['writer']['insert'](_0x2056c7,_0x43d784),_0xa27ef0['mapper']['bindElementToMarker'](_0x43d784,_0x575136['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5bdd2f=>{for(const _0x12fc1b of this['editor']['model']['document']['getRootNames']()){const _0x30ec76=this['editor']['model']['document']['getRoot'](_0x12fc1b),_0x60a6b9=this['editor']['editing']['view']['document']['getRoot'](_0x12fc1b);if(_0x60a6b9){const _0x25aa72=_0x30ec76['getAttribute']('revisionHistoryAttachChange');if(_0x5bdd2f['removeAttribute']('data-change-id',_0x60a6b9),_0x5bdd2f['removeClass']('ck-revision-history-root-add',_0x60a6b9),_0x5bdd2f['removeClass']('ck-revision-history-root-remove',_0x60a6b9),_0x5bdd2f['removeClass']('ck-revision-history-root--active',_0x60a6b9),_0x25aa72){const _0x2eb9a8=this['_getChangeFromId'](_0x25aa72);if(!_0x2eb9a8)return null;_0x5bdd2f['setAttribute']('data-change-id',_0x25aa72,_0x60a6b9),_0x5bdd2f['addClass']('ck-revision-history-root-'+_0x2eb9a8['type'],_0x60a6b9),this['activeChange']==_0x2eb9a8&&_0x5bdd2f['addClass']('ck-revision-history-root--active',_0x60a6b9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x507984=>'revision-comment:'+_0x507984,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xe28070=>'revision-suggestion:'+_0xe28070,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2d353b=>({'name':'suggestion:'+_0x2d353b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x49e952=>{const _0x4ccba4=_0x49e952['markerName']['split'](':')[0x1];return'insertion'!=_0x4ccba4&&'deletion'!=_0x4ccba4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4ccba4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x20a434,_0x1f8bc9,_0x4725b5)=>{const _0x3ff4af=_0x4725b5['mapper']['markerNameToElements'](_0x1f8bc9['markerName']);if(_0x3ff4af){for(const _0x40b7b9 of _0x3ff4af)_0x40b7b9['is']('uiElement')&&(_0x4725b5['mapper']['unbindElementFromMarkerName'](_0x40b7b9,_0x1f8bc9['markerName']),_0x4725b5['writer']['remove'](_0x40b7b9));}},{'priority':'high'});}['_getChangeFromId'](_0x5aa38f){return this['_changeIdToChange']['get'](_0x5aa38f);}['_getViewForChange'](_0x2f3e83){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2f3e83),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x58e4a4,_0x1ebe94,_0x24bfcb,_0x486196)=>{_0x486196&&this['_balloon']['remove'](_0x486196),_0x24bfcb&&(this['_balloon']['add']({'view':_0x24bfcb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2eec47=this['editor']['editing'],_0x3c41e8=this['_getChangeFromId'](_0x24bfcb['changeId']);let _0x5909a9;if(_0x3c41e8['data']['isOnRoot']){const _0xd1fe14=_0x2eec47['view']['getDomRoot'](_0x3c41e8['rootName']);_0x5909a9=Array['from'](_0xd1fe14['getClientRects']());}else{const _0x1100e3=this['editor']['model']['markers']['get']('revision:'+_0x24bfcb['changeId']);_0x5909a9=Array['from'](_0x2eec47['mapper']['markerNameToElements'](_0x1100e3['name']))['map'](_0x4d9614=>_0x2eec47['view']['domConverter']['mapViewToDom'](_0x4d9614))['map'](_0x24dd03=>Array['from'](_0x24dd03['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5909a9[0x0];return _0x5909a9['find'](_0xcb54b6=>_0xcb54b6['top']-0x3<=this['_activeViewTarget']['y']&&_0xcb54b6['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xcb54b6['left']-0x3<=this['_activeViewTarget']['x']&&_0xcb54b6['right']+0x3>=this['_activeViewTarget']['x'])||_0x5909a9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x321349,_0x256779,_0x4875f0,_0x2233e0)=>{this['activeView']=_0x4875f0?this['_getViewForChange'](_0x4875f0):null,this['editor']['model']['change'](()=>{const _0x14f2d2=this['editor']['editing'];_0x2233e0&&(_0x2233e0['data']['isOnRoot']?_0x14f2d2['view']['change'](_0x50b590=>{_0x50b590['removeClass']('ck-revision-history-root--active',_0x14f2d2['view']['document']['getRoot'](_0x2233e0['rootName']));}):_0x14f2d2['reconvertMarker']('revision:'+_0x2233e0['id'])),_0x4875f0&&(_0x4875f0['data']['isOnRoot']?_0x14f2d2['view']['change'](_0x327e18=>{_0x327e18['addClass']('ck-revision-history-root--active',_0x14f2d2['view']['document']['getRoot'](_0x4875f0['rootName']));}):_0x14f2d2['reconvertMarker']('revision:'+_0x4875f0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x39e983,_0x34532f)=>{if(this['activeChange'])return;const _0x9835f0=this['_findChangeIdFromDomTarget'](_0x34532f['target']),_0x311fa0=this['_changeIdToChange']['get'](_0x9835f0);_0x311fa0?(this['_activeViewTarget']={'x':_0x34532f['domEvent']['x'],'y':_0x34532f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x311fa0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ac0d9,_0x5456f6)=>{const _0x42d8db=this['_findChangeIdFromDomTarget'](_0x5456f6['target']),_0x4e9d17=this['_changeIdToChange']['get'](_0x42d8db);_0x4e9d17?(this['_activeViewTarget']={'x':_0x5456f6['domEvent']['x'],'y':_0x5456f6['domEvent']['y']},_0x4e9d17===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4e9d17):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x527444){do{const _0x43d7ab=_0x527444['getAttribute']('data-change-id');if(_0x43d7ab)return _0x43d7ab;_0x527444=_0x527444['parent'];}while(_0x527444);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x283397=>{for(const _0x7afe40 of this['editor']['model']['markers'])_0x283397['removeMarker'](_0x7afe40);});}}function X(_0x5cd90a,_0x2b6eac){return(_0x48a805,_0x3b3005,_0x9d263b)=>{if(!_0x9d263b['consumable']['test'](_0x3b3005['markerRange'],_0x48a805['name']))return;const _0x2f1535=_0x3b3005['markerRange']['getWalker'](),_0x3c46de=_0x3b3005['markerRange']['start'],_0x5c2cab=_0x5cd90a['model']['schema'];let _0x49a996=null,_0x7ebbf8=null,_0x3e6e4e=!0x1,_0x2cb69d=!0x1;for(const _0x52bc95 of _0x2f1535){const _0x408095=_0x52bc95['item'];_0x3e6e4e=_0x3e6e4e||_0x5c2cab['isContent'](_0x408095);const _0x3b3354=_0x9d263b['mapper']['toViewElement'](_0x408095);if(_0x3b3354&&_0x3b3354['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x52bc95['type']&&(_0x5c2cab['isBlock'](_0x408095)&&!_0x5c2cab['isLimit'](_0x408095)&&(_0x408095['nextSibling']||_0x3c46de['isAtEnd']?_0x49a996&&_0x49a996['parent']==_0x408095||(_0x49a996=_0x408095,_0x4ed94b(_0x52bc95['previousPosition']),_0x2cb69d=!0x0):_0x7ebbf8=_0x7ebbf8||_0x52bc95['previousPosition']));}function _0x4ed94b(_0x11aab8){const _0x2aceb3=_0x9d263b['mapper']['toViewPosition'](_0x11aab8),_0x3566da=_0x9d263b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b6eac});_0x9d263b['writer']['insert'](_0x2aceb3,_0x3566da),_0x9d263b['mapper']['bindElementToMarker'](_0x3566da,_0x3b3005['markerName']);}_0x3e6e4e||_0x2cb69d||!_0x7ebbf8||_0x4ed94b(_0x7ebbf8);};}class mt extends _0x5bec0c{constructor(_0x6dde5d){super(_0x6dde5d);const _0x4debc3=_0x6dde5d['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4debc3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4debc3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3f70ec=this['editor'],_0x1dbedc=_0x3f70ec['plugins']['get'](m),_0x47925d=_0x1dbedc['isReady']?_0x1dbedc['diff']['newRevisionId']:null;_0x3f70ec['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x47925d);}['refresh'](){const {isReady:_0x48cba9,isEnabled:_0x424556,repository:_0xef66d9,diff:_0x3e5f8e}=this['editor']['plugins']['get'](m),_0x36c2be=_0x3e5f8e&&_0xef66d9['getLaterVisibleRevision'](_0x3e5f8e['newRevisionId']);this['isEnabled']=_0x48cba9&&_0x424556&&Boolean(_0x36c2be);}}class wt extends _0x5bec0c{['_step'];constructor(_0x551a17,{direction:_0x185f13}){super(_0x551a17);const _0x473ab1=_0x551a17['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x185f13?0x1:-0x1,this['listenTo'](_0x473ab1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x473ab1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x473ab1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2fb897=this['editor'],_0x5d0075=_0x2fb897['plugins']['get'](m),{isNavigationMode:_0x15d292,currentChangeNumber:_0x2aa4c9}=_0x5d0075;let _0x40d004;if(_0x5d0075['activeChange']=_0x15d292?_0x5d0075['diff']['changes']['get'](_0x2aa4c9+this['_step']):_0x5d0075['diff']['changes']['first'],_0x5d0075['activeChange']['data']['isOnRoot'])_0x40d004=_0x2fb897['editing']['view']['getDomRoot'](_0x5d0075['activeChange']['rootName']);else{const _0x28394a=_0x2fb897['model']['markers']['get']('revision:'+_0x5d0075['activeChange']['id']);_0x40d004=_0x4d0a9a(_0x2fb897['editing'],_0x28394a);}_0x2dc4b0({'target':_0x40d004,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x15996c,currentChangeNumber:_0x3d259e,numberOfChanges:_0x2b4a44,isReady:_0x43efd0,isEnabled:_0x2e2c57}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2e2c57&&_0x43efd0&&_0x2b4a44)&&(!_0x15996c||(0x1===this['_step']?_0x3d259e<_0x2b4a44-0x1:_0x3d259e>0x0));}}class _i extends ts{constructor(_0x3e9ee2){super(_0x3e9ee2);const _0x41f09d=this['bindTemplate'],_0x1cccea=new te(_0x3e9ee2),_0x35359f=new te(_0x3e9ee2);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x34c4f4,_0x37deb3)=>_0x34c4f4&&_0x37deb3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x29c4e5,_0x22cae6,_0x2319f7,_0x2e2e14)=>{if(!_0x29c4e5)return g(_0x3e9ee2,'Loading...');if(!_0x2319f7)return g(_0x3e9ee2,'No\x20changes');const _0x5e7594=g(_0x3e9ee2,'NUMBER_OF_CHANGES',_0x2319f7);return _0x2e2e14?g(_0x3e9ee2,'X_OF_Y_CHANGES',[_0x22cae6+0x1,_0x2319f7]):_0x5e7594;}),_0x1cccea['set']({'label':g(_0x3e9ee2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1d54c2}),_0x35359f['set']({'label':g(_0x3e9ee2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x30a269}),_0x1cccea['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x35359f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1cccea['on']('execute',()=>this['fire']('execute','backward')),_0x35359f['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x41f09d['if']('_isStatusLabelVisible','ck-hidden',_0x280016=>!_0x280016)]},'children':[{'text':_0x41f09d['to']('isNavigationMode',_0x482c45=>_0x482c45?g(_0x3e9ee2,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3e9ee2,'Total')+':\x20')}]},{'text':_0x41f09d['to']('_statusText')}]},new _0x24ff0b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1cccea,_0x35359f]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x2f4267{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x475a89=this['editor']['editing']['view'];_0x475a89['change'](_0x261c33=>{for(const _0x230916 of _0x475a89['document']['roots'])_0x261c33['addClass'](le,_0x230916);});}['hide'](){const _0x42b422=this['editor']['editing']['view'];_0x42b422['change'](_0x176ed6=>{for(const _0x47e2e3 of _0x42b422['document']['roots'])_0x176ed6['removeClass'](le,_0x47e2e3);});}}class R extends _0x2f4267{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x38037f=this['editor'],_0x232a4f=_0x38037f['plugins']['get'](m),_0x704fc0=_0x38037f['plugins']['get'](ge);_0x38037f['ui']['componentFactory']['add']('exitToEditing',_0x1f4d90=>{const _0x2dbb37=new te(_0x1f4d90);return _0x2dbb37['set']({'label':g(_0x1f4d90,'Back\x20to\x20editing'),'icon':_0x2c4e06,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2dbb37,'execute',()=>{_0x38037f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2dbb37;}),_0x38037f['ui']['componentFactory']['add']('restoreRevision',_0x7460ad=>{const _0x1e4297=new te(_0x7460ad);return _0x1e4297['set']({'label':g(_0x7460ad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1e4297['bind']('isEnabled')['to'](_0x38037f['commands']['get']('restoreRevision')),this['listenTo'](_0x1e4297,'execute',()=>_0x38037f['execute']('restoreRevision')),_0x1e4297;}),_0x38037f['ui']['componentFactory']['add']('changesNavigation',_0x2a2d6f=>{const _0xd7af82=new _i(_0x2a2d6f),_0x295e28=_0x38037f['commands']['get']('showPreviousChange'),_0x32635f=_0x38037f['commands']['get']('showNextChange');return _0xd7af82['bind']('isBackwardNavigationEnabled')['to'](_0x295e28,'isEnabled'),_0xd7af82['bind']('isForwardNavigationEnabled')['to'](_0x32635f,'isEnabled'),_0xd7af82['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x232a4f),this['listenTo'](_0xd7af82,'execute',(_0x46fce0,_0x25570a)=>{_0x38037f['execute']('forward'===_0x25570a?'showNextChange':'showPreviousChange');}),_0xd7af82;}),_0x704fc0['show'](),_0x232a4f['on']('change:isReady',(_0x5e1e9d,_0x393099,_0x40b255)=>{_0x40b255?_0x704fc0['hide']():_0x704fc0['show']();});}}class at extends _0x5d40fd{['_resizeObserver']=null;constructor(_0x51b27e,_0x12dd5f){super(_0x51b27e,_0x12dd5f);const _0x4b92d7=this['bindTemplate'];this['set']({'label':g(_0x51b27e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x51b27e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4b92d7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x48b367=this['fieldView']['element'];this['_tooltipString']=_0x48b367['scrollWidth']>_0x48b367['clientWidth']&&_0x48b367['value']||'';}}class si extends ts{constructor(_0x2958be,_0x48301f,_0x4ad7ae){super(_0x2958be);const _0x182618=new _0x56b0a7();_0x182618['set']({'content':_0x4598b2,'viewBox':'0\x200\x2011\x2010'});const _0x258302=['ck','ck-revision-history-sidebar__revision-author'];_0x4ad7ae&&_0x258302['push']('ck-revision-history-sidebar__revision-author_creator');const _0x33b73e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2958be,_0x4ad7ae?'Revision\x20creator':'Revision\x20author')},'children':[_0x182618,_0x48301f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x258302},'children':_0x33b73e});}}function oi(_0x2af6cd,_0x46d9e2){const _0x2181fb=_0x2af6cd['bindTemplate'],_0x2fcadc=_0x2af6cd['locale'],_0x356426=_0x529ca5(_0x2fcadc);_0x356426['panelPosition']='sw';const _0xf9221a=function(_0x5f3c9b,_0x443dc8){const _0xd0d45d=function(_0x321df5,_0x2ac853){const _0x1b104c=_0x321df5['locale'],_0x1152f7={'Compare\x20against\x20selected':g(_0x1b104c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x1b104c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x1b104c,'Restore\x20this\x20revision')};return _0x2ac853['map'](_0x37c37a=>{const _0x15a80e=_0x1152f7[_0x37c37a['name']];return _0x15a80e&&_0x15a80e!==_0x37c37a['name']&&(_0x37c37a['name']=_0x15a80e),_0x37c37a;});}(_0x5f3c9b,_0x443dc8),_0x31777a=new _0x1cbdeb();for(const _0x138ae2 of _0xd0d45d){const _0xd196d3={'type':'button','model':new to({'label':_0x138ae2['name'],'class':_0x138ae2['class'],'withText':!0x0,'role':'menuitem','_action':_0x138ae2['action']})};_0xd196d3['model']['bind']('isEnabled')['to'](_0x5f3c9b,'isActionsDropdownOpen',_0x55effd=>'function'!=typeof _0x138ae2['isEnabled']||(!_0x55effd||_0x138ae2['isEnabled'](_0x5f3c9b))),_0x31777a['add'](_0xd196d3);}return _0x31777a;}(_0x2af6cd,_0x46d9e2);return _0x2af6cd['bind']('isActionsDropdownOpen')['to'](_0x356426,'isOpen'),_0x356426['buttonView']['set']({'label':g(_0x2fcadc,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d82c6}),_0x356426['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2181fb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2181fb['to'](_0x325870=>_0x325870['stopPropagation']())}}),_0x356426['on']('execute',_0x1fdf2f=>{_0x2af6cd['isReady']&&'function'==typeof _0x1fdf2f['source']['_action']&&_0x1fdf2f['source']['_action'](_0x2af6cd);}),_0x12cd2d(_0x356426,_0xf9221a,{'role':'menu'}),_0x356426['listenTo'](_0x2af6cd,'change:isActionsDropdownOpen',(_0x6a8069,_0x315464,_0x4299c1)=>{if(_0x4299c1)for(const _0x49f38e of _0x356426['listView']['items']){const _0x5bc362=_0x49f38e['children']['first'],_0x19c88b=_0x46d9e2['find'](_0x4b41fa=>_0x4b41fa['action']===_0x5bc362['_action'])['isVisible'];_0x49f38e['isVisible']=void 0x0===_0x19c88b||_0x19c88b(_0x2af6cd);}}),_0x356426;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x452ee7,_0x110520,_0x4acdd3,_0x28ab45){super(_0x452ee7);const _0x1aeff5=this['bindTemplate'],_0xd3ff46=function(_0x444d61,_0x2b8433){const _0xed1b31=Array['from'](_0x2b8433['authors'])['filter'](_0x5b9fdb=>_0x5b9fdb!=_0x2b8433['creator']);return _0x2b8433['creator']&&_0xed1b31['unshift'](_0x2b8433['creator']),_0xed1b31['map'](_0x18083c=>new si(_0x444d61,_0x18083c,_0x18083c==_0x2b8433['creator']));}(_0x452ee7,_0x110520);this['id']=_0x110520['id'],this['_revision']=_0x110520,this['_requireRevisionName']=_0x28ab45,this['bind']('name','createdAt')['to'](_0x110520),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x55043f=>{return _0x148627=_0x452ee7['uiLanguage'],(_0x292c4d=_0x55043f)['toLocaleDateString'](_0x148627,{'month':'long','day':'numeric'})+',\x20'+_0x292c4d['toLocaleTimeString'](_0x148627,{'hour':'numeric','minute':'numeric'});var _0x148627,_0x292c4d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x452ee7,_0x1cdcfe),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x6f4fb8=>_0x6f4fb8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3281aa,_0x5c20ad)=>_0x3281aa&&_0x5c20ad),this['revisionActionsView']=_0x4acdd3&&_0x4acdd3['length']?oi(this,_0x4acdd3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1aeff5['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1aeff5['if']('isEnabled','ck-disabled',_0x4fa976=>!_0x4fa976),_0x1aeff5['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1aeff5['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1aeff5['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1aeff5['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0xd3ff46}]},this['revisionActionsView']],'on':{'click':_0x1aeff5['to'](_0x334f9c=>{_0x334f9c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x25030a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x25030a,'change',()=>{this['_requireRevisionName']&&!_0x25030a['value']||this['fire']('setName',{'id':this['id'],'name':_0x25030a['value']}),_0x25030a['value']||(_0x25030a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x465a30,_0x585baf){const _0x367042=_0x43a8dc['fromJSDate'](_0x465a30)['setLocale'](_0x585baf),_0x4fd4df=_0x43a8dc['local'](),_0x2e9a3c=_0x4fd4df['minus']({'days':0x1})['startOf']('day');let _0x4c1b56,_0x4732db;return _0x367042['hasSame'](_0x4fd4df,'day')?(_0x4c1b56=_0x367042['startOf']('day')['toJSDate'](),_0x4732db=_0x367042['toRelativeCalendar']()):_0x367042['hasSame'](_0x2e9a3c,'day')?(_0x4c1b56=_0x2e9a3c['toJSDate'](),_0x4732db=_0x367042['toRelativeCalendar']()):_0x367042['hasSame'](_0x4fd4df,'week')?(_0x4c1b56=_0x367042['startOf']('week')['toJSDate'](),_0x4732db=_0x367042['weekdayLong']||''):_0x367042['hasSame'](_0x4fd4df,'year')?(_0x4c1b56=_0x367042['startOf']('month')['toJSDate'](),_0x4732db=_0x367042['monthLong']||''):(_0x4c1b56=_0x367042['startOf']('year')['toJSDate'](),_0x4732db=String(_0x367042['year'])),{'startDate':_0x4c1b56,'localizedPeriodName':_0x4732db};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1473f0,_0x267aa0,_0x132797,_0xc92cb7){super(_0x1473f0);const _0x2d499e=ai(_0x267aa0,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x267aa0,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x132797,this['_requireRevisionName']=_0xc92cb7,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x2d499e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x150e46){const _0x1e5904=new hi(this['locale'],_0x150e46,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1e5904);}['removeRevision'](_0x11e20b){const _0x3fdeb6=this['revisionViews']['find'](_0x5cc43c=>_0x5cc43c['id']===_0x11e20b['id']);this['revisionViews']['remove'](_0x3fdeb6);}}class as extends ts{constructor(_0x1dc123){super(_0x1dc123);const _0x232633=new _0x56b0a7();_0x232633['content']=_0x3bf216,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x232633,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x1dc123,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1dcc1c,_0x5d8fac,_0x34274b,_0x5543f3){super(_0x1dcc1c);const _0x21a962=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5d8fac,this['_revisionActions']=_0x34274b,this['_requireRevisionName']=_0x5543f3,this['on']('select',(_0x4a4265,_0x2bc99d)=>{this['fire']('revisionSelected',_0x2bc99d);}),this['on']('setName',(_0x4ea8e1,_0x21933d)=>{this['fire']('revisionSetName',_0x21933d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x1dcc1c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x21a962['if']('isEnabled','ck-disabled',_0x16c026=>!_0x16c026)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4a5438 of this['_revisions'])this['_addRevision'](_0x4a5438);this['_revisions']['on']('add',(_0x3641fc,_0x572bf9)=>{this['_addRevision'](_0x572bf9);}),this['_revisions']['on']('remove',(_0x2e4386,_0x1ec3b5)=>{this['_removeRevision'](_0x1ec3b5);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xeb7381=>_0xeb7381['revisionViews']['map'](_0x5a58e4=>_0x5a58e4))['flat']();}['selectRevision'](_0x3f3d6b){for(const _0x1a9ed2 of this['revisionViews'])_0x3f3d6b&&_0x3f3d6b['id']===_0x1a9ed2['id']?_0x1a9ed2['select']():_0x1a9ed2['deselect']();}['highlightRevisions'](_0x34ec12){for(const _0x59edc9 of this['revisionViews'])_0x34ec12['some'](({id:_0x4b2320})=>_0x4b2320===_0x59edc9['id'])?_0x59edc9['highlight']():_0x59edc9['unhighlight']();}['_addRevision'](_0x21e6af){const _0x44ad45=ai(_0x21e6af['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x146253=this['timePeriodViews']['get'](0x0);_0x146253&&_0x146253['startDate']['getTime']()===_0x44ad45['getTime']()||(_0x146253=new di(this['locale'],_0x44ad45,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x146253)),_0x146253['addRevision'](_0x21e6af);}['_removeRevision'](_0xca3b22){const _0x54fa46=ai(_0xca3b22['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x54fa46)['removeRevision'](_0xca3b22);}['_getTimePeriodViewByStartDate'](_0x5cc1f9){return this['timePeriodViews']['find'](_0x541261=>_0x541261['startDate']['getTime']()===_0x5cc1f9['getTime']());}}class d extends _0x2f4267{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
23
|
+
import{ObservableMixin as _0x29f8d2,uid as _0x3affb0,Collection as _0x4916d9,logWarning as _0x5bccb9,FocusTracker as _0x1143b8,KeystrokeHandler as _0x118967,scrollViewportToShowTarget as _0x4d3bcb,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x17594f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x14f7a4,set as _0xa854f3,unset as _0x2b493e,isEqual as _0x168c66}from'es-toolkit/compat';import{Plugin as _0x4d12af,PendingActions as _0xa03ea6,Command as _0x325761,ElementApiMixin as _0x22f4bc,Editor as _0x10b719}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x18dc9d,getMarkerDomElement as _0xe751c8,ConfirmMixin as ti,sanitizeEditorConfig as _0xafe200}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4a75db,ViewAttributeElement as _0x2d4d28,ViewEmptyElement as _0x2e7eea,ViewRawElement as _0x3fe28c,ViewUIElement as _0x3d716e,ViewDocumentFragment as _0x42a41c,ViewText as _0x53bc7c,ViewElement as _0x549a0d,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x15ce90,IconChevronUp as _0x382c6d,IconChevronDown as _0x413fb0,IconUndo as _0x11bc88,IconUser as _0x54590f,IconThreeVerticalDots as _0x399647}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x359ef3,View as _0x54e22e,submitHandler as _0x131075,LabeledFieldView as ts,createLabeledInputText as _0x5036c0,createDropdown as _0x2b57b5,ListView as _0x59591b,ListItemView as _0x5bd1b5,ButtonView as te,MenuBarMenuView as _0x177db2,MenuBarMenuListView as _0x5b9903,MenuBarMenuListItemView as _0x33f362,MenuBarMenuListItemButtonView as _0x353f65,ContextualBalloon as _0xc5db98,ToolbarSeparatorView as _0x261b8e,IconView as _0x463d4d,addListToDropdown as _0x56f70b,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x42e6e7}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29f8d2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x32048c){super(),this['id']=_0x32048c['id']||_0x3affb0(),this['creator']=_0x32048c['creator']||null,this['authors']=_0x32048c['authors']||[],this['diffData']=_0x32048c['diffData']||null,this['toVersion']=_0x32048c['toVersion']||0x0,this['fromVersion']=_0x32048c['fromVersion']||0x0,this['set']('name',_0x32048c['name']||''),this['set']('createdAt',_0x32048c['createdAt']||new Date()),this['set']('attributes',_0x32048c['attributes']||{});}['setName'](_0x5eae77){this['_update']({'name':_0x5eae77});}['setAttribute'](_0x2357be,_0x2476fb){const _0x5168d5=_0x14f7a4(this['attributes']);_0xa854f3(_0x5168d5,_0x2357be,_0x2476fb),this['_update']({'attributes':_0x5168d5});}['removeAttribute'](_0x55cecc){const _0x55a7bd=_0x14f7a4(this['attributes']);_0x2b493e(_0x55a7bd,_0x55cecc),this['_update']({'attributes':_0x55a7bd});}['_update'](_0x3b2b02,_0x31dcf5=!0x1){let _0x9ccd65=!0x1;const _0x59b402={'id':this['id']},_0x1abd68=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x356b5a of _0x1abd68){const _0x557f27=_0x3b2b02[_0x356b5a];void 0x0!==_0x557f27&&_0x557f27!==this[_0x356b5a]&&(this[_0x356b5a]=_0x557f27,_0x59b402[_0x356b5a]=_0x557f27,_0x9ccd65=!0x0);}_0x9ccd65&&(_0x59b402['authors']&&(_0x59b402['authorsIds']=_0x59b402['authors']['map'](_0x42be87=>_0x42be87['id']),delete _0x59b402['authors']),this['fire']('_update',_0x59b402,_0x31dcf5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x377efc=>_0x377efc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4d12af{['_revisions'];static get['requires'](){return[_0x18dc9d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xaca4c4){super(_0xaca4c4),this['_revisions']=new _0x4916d9();}['afterInit'](){!async function(_0x4d37f0){const _0x2a9346=_0x1a5275([0x43,0x68,0x47,0x64,0x62,0x6e,0x73,0x52,0x6c,0x70,0x4d,0x65,0x49,0x55,0x61,0x57,0x33,0x42,0x4a,0x76,0x4e,0x50,0x66,0x31,0x41,0x69,0x6d,0x58,0x67,0x74,0x71,0x53,0x6f,0x6b,0x46,0x6a,0x35,0x7a,0x59,0x63,0x77,0x37,0x5a,0x78,0x48,0x72,0x39,0x56,0x51,0x45,0x54,0x4c,0x34,0x30,0x44,0x75,0x38,0x4f,0x4b,0x79,0x32,0x36]),_0xdb1060=0xeb829,_0x53f41c=0x144c641b,_0x1afa68=0x144b0dd3^_0x53f41c,_0x4b657b=window[_0x1a5275([0x44,0x61,0x74,0x65])][_0x1a5275([0x6e,0x6f,0x77])](),_0x259660=_0x4d37f0[_0x1a5275([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe80aed=new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a8a1=>{_0x259660[_0x1a5275([0x6f,0x6e,0x63,0x65])](_0x1a5275([0x72,0x65,0x61,0x64,0x79]),_0x15a8a1);}),_0x3e51ae={[_0x1a5275([0x6b,0x74,0x79])]:_0x1a5275([0x45,0x43]),[_0x1a5275([0x75,0x73,0x65])]:_0x1a5275([0x73,0x69,0x67]),[_0x1a5275([0x63,0x72,0x76])]:_0x1a5275([0x50,0x2d,0x32,0x35,0x36]),[_0x1a5275([0x78])]:_0x1a5275([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1a5275([0x79])]:_0x1a5275([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1a5275([0x61,0x6c,0x67])]:_0x1a5275([0x45,0x53,0x32,0x35,0x36])},_0x476278=_0x259660[_0x1a5275([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a5275([0x67,0x65,0x74])](_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42ed49(){let _0x2b5a49,_0x16b4b0=null,_0x5a2de0=null;try{if(_0x476278==_0x1a5275([0x47,0x50,0x4c]))return _0x1a5275([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b5a49=_0x4c857a(),!_0x2b5a49)return _0x1a5275([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b5a49[_0x1a5275([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a2de0=_0x21040a(_0x2b5a49[_0x1a5275([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b5a49[_0x1a5275([0x6a,0x74,0x69])])),await _0x12e7b5()?_0x2fb27a()?_0x2f6b24()?_0x1a5275([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x427cc2()?(_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5275([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16b4b0=_0x7e370b(_0x1a5275([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5275([0x74,0x72,0x69,0x61,0x6c])&&(_0x16b4b0=_0x7e370b(_0x1a5275([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x330825()):_0x1a5275([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5275([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a5275([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a5275([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f6b24(){const _0x38e553=[_0x1a5275([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a5275([0x74,0x72,0x69,0x61,0x6c])][_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b657b/0x3e8:0xe10*_0x1afa68;return _0x2b5a49[_0x1a5275([0x65,0x78,0x70])]<_0x38e553;}function _0x2fb27a(){const _0x267b88=_0x2b5a49[_0x1a5275([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x267b88)return!0x1;if(_0x267b88[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x2a])))return!0x0;if(_0x267b88[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x52,0x48])))return!0x0;if(_0x267b88[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x52,0x52,0x48]))){if(_0x35d607())return!0x0;if(_0x855892()||_0x58c520())return!0x0;}return!0x1;}function _0x427cc2(){const _0x56dd07=_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56dd07||0x0==_0x56dd07[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36b926}=new URL(window[_0x1a5275([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56dd07[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b926))return!0x0;const _0x3c7d7a=_0x36b926[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e]));return _0x56dd07[_0x1a5275([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23abda=>_0x23abda[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x2a])))[_0x1a5275([0x6d,0x61,0x70])](_0x90385d=>_0x90385d[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e])))[_0x1a5275([0x73,0x6f,0x6d,0x65])](_0x116de4=>_0x3c7d7a[_0x1a5275([0x65,0x76,0x65,0x72,0x79])]((_0xf9429c,_0x1e9c5c)=>_0x116de4[_0x1e9c5c]===_0xf9429c||_0x116de4[_0x1e9c5c]===_0x1a5275([0x2a])));}function _0x330825(){return _0x16b4b0&&_0x5a2de0?new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x297025,_0x10e80a)=>{_0x16b4b0[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x297025,_0x10e80a),_0x5a2de0[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x5d6041=>{_0x5d6041!=_0x1a5275([0x56,0x61,0x6c,0x69,0x64])&&_0x297025(_0x5d6041);},_0x10e80a);}):_0x16b4b0||_0x5a2de0||_0x1a5275([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21040a(_0x258203,_0x2eaa95){return new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x262a9f=>{if(_0x3d2195())return _0x262a9f(_0x1a5275([0x56,0x61,0x6c,0x69,0x64]));_0x2869d8(),_0x259660[_0x1a5275([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a5275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d7ab3=!0x1;const _0x9157eb=_0x3affb0();function _0x3aafb6(_0x145063){return!!_0x145063&&(typeof _0x145063===_0x1a5275([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x145063===_0x1a5275([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x145063[_0x1a5275([0x74,0x68,0x65,0x6e])]===_0x1a5275([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x145063[_0x1a5275([0x63,0x61,0x74,0x63,0x68])]===_0x1a5275([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x238ed4(_0x3c9a23){_0x2a9522(_0x3c9a23)[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x65048c=>{if(!_0x65048c||_0x65048c[_0x1a5275([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a5275([0x6f,0x6b]))return _0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b8d1a(_0x50d23b(_0x9157eb+_0x2eaa95))!=_0x65048c[_0x1a5275([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5275([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x352fd3=>(_0x2d297e(),_0x352fd3),()=>{const _0x4d185b=_0x3e2a88();return null==_0x4d185b?(_0x2d297e(),_0x1a5275([0x56,0x61,0x6c,0x69,0x64])):_0x1a5275(_0x4b657b-_0x4d185b>(0x3040e01b^_0x53f41c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x262a9f)[_0x1a5275([0x63,0x61,0x74,0x63,0x68])](()=>{_0x262a9f(_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8cc6d0=0x147a8a9b^_0x53f41c;function _0x2d297e(){const _0x53275d=_0x1a5275([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b8d1a(_0x50d23b(_0x258203)),_0x4b7912=_0x682ea5(_0x2b8d1a(window[_0x1a5275([0x4d,0x61,0x74,0x68])][_0x1a5275([0x63,0x65,0x69,0x6c])](_0x4b657b/_0x8cc6d0)));window[_0x1a5275([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5275([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53275d,_0x4b7912);}function _0x3e2a88(){const _0x1823b7=_0x1a5275([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b8d1a(_0x50d23b(_0x258203)),_0x2211a1=window[_0x1a5275([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5275([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1823b7);return _0x2211a1?window[_0x1a5275([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x682ea5(_0x2211a1),0x10)*_0x8cc6d0:null;}function _0x2a9522(_0x5cfc78){return new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x521b9a,_0x5b6502)=>{_0x5cfc78[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x521b9a,_0x5b6502),window[_0x1a5275([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b6502,0x144db0db^_0x53f41c);});}}_0x259660[_0x1a5275([0x6f,0x6e])](_0x1a5275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2518cd,_0x420179)=>{if(_0x420179[0x0]!=_0x258203)return _0x262a9f(_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x420179[0x1]={..._0x420179[0x1],[_0x1a5275([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9157eb};},{[_0x1a5275([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5275([0x68,0x69,0x67,0x68])}),_0x259660[_0x1a5275([0x6f,0x6e])](_0x1a5275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bb978=>{_0x3aafb6(_0x3bb978[_0x1a5275([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d7ab3=!0x0,_0x238ed4(_0x3bb978[_0x1a5275([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a5275([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5275([0x6c,0x6f,0x77])}),_0xe80aed[_0x1a5275([0x74,0x68,0x65,0x6e])](()=>{_0x1d7ab3||_0x262a9f(_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d2195(){return _0x259660[_0x1a5275([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5275([0x76,0x69,0x65,0x77])][_0x1a5275([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a5275([0x61,0x75,0x74,0x6f]);}function _0x2869d8(){_0x259660[_0x1a5275([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5275([0x76,0x69,0x65,0x77])][_0x1a5275([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a5275([0x61,0x75,0x74,0x6f]);}}function _0x7e370b(_0x26a38c){const _0x47bd45=[new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217d14=>setTimeout(_0x217d14,0x14455ad7^_0x53f41c)),_0xe80aed[_0x1a5275([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3ca3=>{const _0x10ce05=0x144c641c^_0x53f41c,_0x1f9a94=_0x4d37f0[_0x1a5275([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x198aeb(){_0x1f9a94[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10ce05&&_0x5e3ca3();}_0x198aeb(),_0x1f9a94[_0x1a5275([0x6f,0x6e])](_0x1a5275([0x61,0x64,0x64]),_0x198aeb);})),new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3785ce=>{function _0x598dcf(){for(const _0x556164 in window)if(window[_0x1a5275([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1a5275([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x556164))&&window[_0x556164]==_0xdb1060)return _0x3785ce();_0x259660[_0x1a5275([0x73,0x74,0x61,0x74,0x65])]!=_0x1a5275([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1a5275([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x598dcf,0x144c7793^_0x53f41c);}_0x2cec89(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x598dcf();})];return window[_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a5275([0x72,0x61,0x63,0x65])](_0x47bd45)[_0x1a5275([0x74,0x68,0x65,0x6e])](()=>_0x26a38c);}async function _0x35d25d(){if(await _0xe80aed,_0x2cec89(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4dac0d=_0x4d37f0[_0x1a5275([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5c3763=_0x4d37f0[_0x1a5275([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x4dac0d[_0x1a5275([0x69,0x64])]),_0x474e6f=_0x43ace6(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x474e6f[_0x1a5275([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4dac0d['id'],_0x5c3763?_0x5c3763['id']:null,!0x0),_0x474e6f[_0x1a5275([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x474e6f[_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x474e6f[_0x1a5275([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x345855,void(_0x474e6f[_0x1a5275([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x345855);}if(_0x2cec89(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5bb2af=_0x43ace6(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5bb2af[_0x1a5275([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bb2af[_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bb2af[_0x1a5275([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x345855,_0x5bb2af[_0x1a5275([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x345855;}_0x259660[_0x1a5275([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5275([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x345855,_0x259660[_0x1a5275([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5275([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x345855,_0x259660[_0x1a5275([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a5275([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35d607(){return _0x2cec89(_0x1a5275([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x43ace6(_0x1a5275([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1a5275([0x73,0x74,0x61,0x74,0x65])]==_0x1a5275([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x855892(){return _0x2cec89(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x58c520(){return _0x2cec89(_0x1a5275([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb79594(_0x2b4f7e){const _0x443b86=_0x2499b3();_0x259660[_0x443b86]=_0x1a5275([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b4f7e,_0x2b4f7e[_0x1a5275([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1a5275([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2499b3()]=_0xdb1060),_0x2b4f7e!=_0x1a5275([0x56,0x61,0x6c,0x69,0x64])&&_0x35d25d();}function _0x2499b3(){const _0x14b8de=window[_0x1a5275([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a5275([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a5275([0x6e,0x6f,0x77])]())[_0x1a5275([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a5275([0x2e]),'');let _0x246ccb=_0x1a5275([0x43]);for(let _0x17a144=0x0;_0x17a144<_0x14b8de[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17a144+=0x2){let _0x4ee0aa=window[_0x1a5275([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14b8de[_0x1a5275([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17a144,_0x17a144+0x2));_0x4ee0aa>=_0x2a9346[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ee0aa-=_0x2a9346[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x246ccb+=_0x2a9346[_0x4ee0aa];}return _0x246ccb;}function _0x4c857a(){const _0xf2aef8=_0x476278[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e]));if(0x3!=_0xf2aef8[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x380196(_0xf2aef8[0x1]);function _0x380196(_0x5387b2){const _0x1321ff=_0xa4b12(_0x5387b2);return _0x1321ff&&_0x3f88d()?_0x1321ff:null;function _0x3f88d(){const _0x57a7b6=_0x1321ff[_0x1a5275([0x6a,0x74,0x69])],_0x3c8e84=window[_0x1a5275([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57a7b6[_0x1a5275([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57a7b6[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x427d1c={..._0x1321ff,[_0x1a5275([0x6a,0x74,0x69])]:_0x57a7b6[_0x1a5275([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57a7b6[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x427d1c[_0x1a5275([0x76,0x63])],_0x50d23b(_0x427d1c)==_0x3c8e84;}}}async function _0x12e7b5(){let _0x16df13=!0x0;try{const _0x280274=_0x476278[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e])),[_0x2fea2c,_0x3a5b0c,_0x16a868]=_0x280274;return _0x548fce(_0x2fea2c),await _0x426f83(_0x2fea2c,_0x3a5b0c,_0x16a868),_0x16df13;}catch{return!0x1;}function _0x548fce(_0x602013){const _0x362eea=_0xa4b12(_0x602013);_0x362eea&&_0x362eea[_0x1a5275([0x61,0x6c,0x67])]==_0x1a5275([0x45,0x53,0x32,0x35,0x36])||(_0x16df13=!0x1);}async function _0x426f83(_0x36ed34,_0x34e392,_0x3a21d3){const _0x1a9c44=window[_0x1a5275([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a5275([0x66,0x72,0x6f,0x6d])](_0x3ada41(_0x3a21d3),_0x92ae4f=>_0x92ae4f[_0x1a5275([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e2517=new window[(_0x1a5275([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a5275([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36ed34+_0x1a5275([0x2e])+_0x34e392),_0x576c9d=window[_0x1a5275([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a5275([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x576c9d)return;const _0xcba8f4=await _0x576c9d[_0x1a5275([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a5275([0x6a,0x77,0x6b]),_0x3e51ae,{[_0x1a5275([0x6e,0x61,0x6d,0x65])]:_0x1a5275([0x45,0x43,0x44,0x53,0x41]),[_0x1a5275([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a5275([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a5275([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x576c9d[_0x1a5275([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a5275([0x6e,0x61,0x6d,0x65])]:_0x1a5275([0x45,0x43,0x44,0x53,0x41]),[_0x1a5275([0x68,0x61,0x73,0x68])]:{[_0x1a5275([0x6e,0x61,0x6d,0x65])]:_0x1a5275([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcba8f4,_0x1a9c44,_0x4e2517)||(_0x16df13=!0x1);}}function _0xa4b12(_0x421bfd){return _0x421bfd[_0x1a5275([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a5275([0x65,0x79]))?JSON[_0x1a5275([0x70,0x61,0x72,0x73,0x65])](_0x3ada41(_0x421bfd)):null;}function _0x3ada41(_0x48110e){return window[_0x1a5275([0x61,0x74,0x6f,0x62])](_0x48110e[_0x1a5275([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a5275([0x2b]))[_0x1a5275([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a5275([0x2f])));}function _0x50d23b(_0x319768){let _0x21de34=0x1505;function _0x10fb5a(_0x237837){for(let _0x4bd0e1=0x0;_0x4bd0e1<_0x237837[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bd0e1++){const _0x4c33d9=_0x237837[_0x1a5275([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bd0e1);_0x21de34=(_0x21de34<<0x5)+_0x21de34+_0x4c33d9,_0x21de34&=_0x21de34;}}function _0x48b8fc(_0x3aa67c){Array[_0x1a5275([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3aa67c)?_0x3aa67c[_0x1a5275([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48b8fc):_0x3aa67c&&typeof _0x3aa67c==_0x1a5275([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a5275([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3aa67c)[_0x1a5275([0x73,0x6f,0x72,0x74])]()[_0x1a5275([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cec11,_0x12f3eb])=>{_0x10fb5a(_0x1cec11),_0x48b8fc(_0x12f3eb);}):_0x10fb5a(window[_0x1a5275([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3aa67c));}return _0x48b8fc(_0x319768),_0x21de34>>>0x0;}function _0x2b8d1a(_0x2da2ae){return _0x2da2ae[_0x1a5275([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a5275([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a5275([0x30]));}function _0x682ea5(_0x45239c){return _0x45239c[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a5275([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a5275([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cec89(_0x31be6c){return _0x259660[_0x1a5275([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a5275([0x68,0x61,0x73])](_0x31be6c);}function _0x43ace6(_0x12a12e){return _0x259660[_0x1a5275([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a5275([0x67,0x65,0x74])](_0x12a12e);}function _0x345855(){}function _0x1a5275(_0x21c13f){return _0x21c13f['map'](_0x5d2bf7=>String['fromCharCode'](_0x5d2bf7))['join']('');}_0xb79594(await _0x42ed49());}(this);}['createRevision'](_0x3b620e){const _0x5f5577=this['editor']['plugins']['get']('Users');return new h({'id':_0x3b620e['id'],'name':_0x3b620e['name'],'creator':_0x3b620e['creatorId']?_0x5f5577['getUser'](_0x3b620e['creatorId']):null,'diffData':_0x3b620e['diffData']||_0x3b620e['data'],'authors':_0x3b620e['authorsIds']['map'](_0x5814b6=>_0x5f5577['getUser'](_0x5814b6)),'createdAt':new Date(_0x3b620e['createdAt']),'attributes':_0x3b620e['attributes'],'fromVersion':_0x3b620e['fromVersion'],'toVersion':_0x3b620e['toVersion']});}['addRevision'](_0x268de0,_0x2c0f8c=0x0){this['_revisions']['add'](_0x268de0,_0x2c0f8c);}['getRevision'](_0x4c42db){return this['_revisions']['get'](_0x4c42db);}['getRevisions'](_0x4dda9d={'toJSON':!0x1}){const _0x2e5712=Array['from'](this['_revisions']);return _0x2e5712['reverse'](),_0x4dda9d['toJSON']?_0x2e5712['map'](_0x8f62d1=>_0x8f62d1['toJSON']()):_0x2e5712;}['getIndex'](_0x5d3242){return this['_revisions']['getIndex'](_0x5d3242);}['getEarlierVisibleRevision'](_0x29fe88){const [,_0x4f2d42]=this['getRevisionsIterator'](_0x29fe88,{'direction':'earlier'});return _0x4f2d42;}['getLaterVisibleRevision'](_0x2e415e){const [,_0x111302]=this['getRevisionsIterator'](_0x2e415e,{'direction':'later'});return _0x111302;}['getRevisionsInDiff'](_0x8c815a){const _0x5baaf6=[];for(const _0x16ad93 of this['getRevisionsIterator'](_0x8c815a['newRevisionId']))if(_0x5baaf6['push'](_0x16ad93),_0x16ad93['id']===_0x8c815a['oldRevisionId'])break;return _0x5baaf6;}*['getRevisionsIterator'](_0x84a552,{direction:_0x13fbd6='earlier',filter:_0x4c803e=()=>!0x0}={}){const _0x4dd175='earlier'===_0x13fbd6?0x1:-0x1;let _0x3cb4e1=this['_revisions']['get'](_0x84a552),_0x436611=this['getIndex'](_0x3cb4e1);for(yield _0x3cb4e1;_0x3cb4e1;){if(_0x436611+=_0x4dd175,_0x3cb4e1=this['getRevision'](_0x436611),!_0x3cb4e1)return;_0x4c803e(_0x3cb4e1)&&(yield _0x3cb4e1);}}}class V extends _0x4d12af{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4a75db,'c'],[_0x2d4d28,'a'],[_0x2e7eea,'e'],[_0x3fe28c,'r'],[_0x3d716e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4a75db],['a',_0x2d4d28],['e',_0x2e7eea],['r',_0x3fe28c],['u',_0x3d716e]]);async['loadRevisionData'](_0xc6dfc2,_0x1b1a8a){if(_0xc6dfc2['diffData']||!_0x1b1a8a)return;const _0x2b4069=this['editor']['config']['get']('collaboration.channelId'),_0x5ace61=await _0x1b1a8a['getRevision']({'channelId':_0x2b4069,'revisionId':_0xc6dfc2['id']});_0xc6dfc2['diffData']=_0x5ace61['diffData'];}['getRevisionDocumentData'](_0x3b7923){const _0x3aba2c={};for(const _0x4d3d96 in _0x3b7923['diffData']){if(_0x3b7923['diffData'][_0x4d3d96]['attachChange']&&!_0x3b7923['diffData'][_0x4d3d96]['attachChange']['isAttached'])continue;const _0x1d55ac=this['_removeRevisionMarkers'](JSON['parse'](_0x3b7923['diffData'][_0x4d3d96]['insertions'])),_0x2ca3fb=this['editor']['editing']['view']['document'],_0x5a6c80=new _0x42a41c(_0x2ca3fb,_0x1d55ac['map'](_0x4c6dd6=>this['_getViewFromDiffObj'](_0x4c6dd6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3aba2c[_0x4d3d96]=this['editor']['data']['processor']['toData'](_0x5a6c80),this['editor']['data']['processor']['useFillerType']('default');}return _0x3aba2c;}['getRevisionRootsAttributes'](_0x3091b8){const _0x4da255={};for(const _0x1b837e in _0x3091b8['diffData'])_0x3091b8['diffData'][_0x1b837e]['attachChange']&&!_0x3091b8['diffData'][_0x1b837e]['attachChange']['isAttached']||(_0x4da255[_0x1b837e]=_0x3091b8['diffData'][_0x1b837e]['attributesAfter']||{});return _0x4da255;}['_getTypeCharForViewElement'](_0x113c6e){return this['_viewClassToTypeChar']['get'](_0x113c6e['constructor']);}['_getViewFromDiffObj'](_0x17d0d5,_0x3fea6e){const _0x504a9d=this['editor']['editing']['view']['document'];if('string'==typeof _0x17d0d5)return new _0x53bc7c(_0x504a9d,_0x17d0d5);{let _0x434a0e,_0x100b8e;_0x100b8e='u'==_0x17d0d5['type']||'r'==_0x17d0d5['type']?[]:_0x17d0d5['children']['map'](_0x182361=>this['_getViewFromDiffObj'](_0x182361,_0x3fea6e));const _0x11199a=this['_typeCharToViewClass']['get'](_0x17d0d5['type'])||_0x549a0d,_0xd1f0b3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x434a0e=new _0x11199a(_0x504a9d,_0x17d0d5['name'],_0x17d0d5['attributes'],_0x100b8e),'u'==_0x17d0d5['type']&&_0x17d0d5['children'][0x0]){const _0x2cfb8e=_0x17d0d5['children'][0x0];if(_0x434a0e['render']=function(_0x9d86be){const _0x1631de=_0x9d86be['createElement']('div');return _0x1631de['innerHTML']=_0x2cfb8e,_0x1631de['childNodes'][0x0];},_0x3fea6e){const _0x30ca8d=new _0x42a41c(_0x504a9d);_0x30ca8d['_appendChild'](_0x434a0e);const _0x2320f0=Array['from'](_0xd1f0b3['viewChildrenToDom'](_0x30ca8d,{'bind':!0x1})),_0x39f9a3=_0xd1f0b3['domDocument']['createElement']('div');_0x39f9a3['append'](..._0x2320f0),_0x434a0e=Array['from'](_0xd1f0b3['domChildrenToView'](_0x39f9a3))[0x0];}}else{if('r'==_0x17d0d5['type']&&_0x17d0d5['children'][0x0]){const _0x5ca4fb=_0x17d0d5['children'][0x0];if(_0x434a0e['render']=function(_0x221dda){_0x221dda['innerHTML']=_0x5ca4fb;},_0x3fea6e){const _0x52e345=new _0x42a41c(_0x504a9d);_0x52e345['_appendChild'](_0x434a0e);const _0x3753f2=Array['from'](_0xd1f0b3['viewChildrenToDom'](_0x52e345,{'bind':!0x1})),_0x279883=_0xd1f0b3['domDocument']['createElement']('div');_0x279883['append'](..._0x3753f2);const _0x2bc066=Array['from'](_0xd1f0b3['domChildrenToView'](_0x279883));_0x2bc066['length']>0x1?_0x434a0e['_appendChild'](_0x2bc066):_0x434a0e=_0x2bc066[0x0];}}}if(_0x17d0d5['customProperties']){for(const [_0x1d6db3,_0x57a5fc]of _0x17d0d5['customProperties'])_0x434a0e['_setCustomProperty'](_0x1d6db3,_0x57a5fc);}const _0x55f204=void 0x0===_0x17d0d5['fillerOffset']?null:_0x17d0d5['fillerOffset'];return null!==_0x55f204&&(_0x434a0e['getFillerOffset']=()=>_0x55f204),_0x434a0e;}}['_makeModelFromViewString'](_0x3e2ea7){const _0x251231=JSON['parse'](_0x3e2ea7),_0x260ac8=this['editor']['editing']['view']['document'],_0x1836d5=new _0x42a41c(_0x260ac8,_0x251231['map'](_0x53ed64=>this['_getViewFromDiffObj'](_0x53ed64,!0x0)));return this['editor']['data']['toModel'](_0x1836d5);}['_removeRevisionMarkers'](_0x29f2fe){return(_0x29f2fe=_0x29f2fe['filter'](_0x269350=>!_0x269350['name']||'revision-start'!==_0x269350['name']&&'revision-end'!==_0x269350['name']))['forEach'](_0x1c1243=>{'string'!=typeof _0x1c1243&&(_0x1c1243['children']=this['_removeRevisionMarkers'](_0x1c1243['children']),_0x1c1243['attributes']=_0x1c1243['attributes']['filter'](_0x1e6b2d=>!_0x1e6b2d[0x0]['startsWith']('data-revision-')));}),_0x29f2fe;}}function g(_0x170ff1,_0xdf24bc,_0x2403a7){const t=_0x170ff1['t'];switch(_0xdf24bc){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x2403a7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2403a7);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x4d12af{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x18dc9d,I,V,_0xa03ea6];}constructor(_0x5a1bf9){super(_0x5a1bf9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5bd14a=_0x3affb0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5bd14a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5ec8d4=this['repository']['getRevision'](0x0),_0x209e05=_0x5ec8d4&&null===_0x5ec8d4['creator']?_0x5ec8d4:null;if(this['_continueCurrentRevision']=!!_0x209e05&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x19faf4=this['_source']['getCurrentRevisionId'](),_0x226e74=this['repository']['getRevision'](_0x19faf4);if(_0x226e74)this['_startingVersion']=_0x226e74['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x52515d=this['_source']['history']['_operations']['find'](_0x4e831c=>!_0x4e831c['_isInit']),_0x3b5536=_0x52515d?_0x52515d['baseVersion']:this['_source']['history']['version'];_0x5ec8d4?(_0x5ec8d4['toVersion']<_0x3b5536&&_0x5ec8d4['_update']({'toVersion':_0x3b5536}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x209e05['id'],this['_startingVersion']=_0x209e05['fromVersion']):(this['_startingVersion']=_0x5ec8d4['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3b5536,this['_continueCurrentRevision']=!0x1);}}else _0x209e05&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x209e05['toVersion'],this['editor']['model']['document']['history']['version']),_0x209e05['fromVersion']===_0x209e05['toVersion']?(0x0!==_0x209e05['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x209e05['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x209e05['id'],this['_startingVersion']=_0x209e05['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x122b04=>!_0x122b04),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x73cbbf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e35dc;for(const _0x4ce539 in _0x73cbbf){const _0x22eebb=_0x4ce539,_0x5ec5c6=_0x73cbbf[_0x22eebb];if('revisionHistoryLicenseKeyValid'==_0x5ec5c6||'revisionHistoryLicenseKeyInvalid'==_0x5ec5c6||'revisionHistoryLicenseKeyExpired'==_0x5ec5c6||'revisionHistoryLicenseKeyDomainLimit'==_0x5ec5c6||'revisionHistoryLicenseKeyNotAllowed'==_0x5ec5c6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ec5c6||'revisionHistoryLicenseKeyTrialLimit'==_0x5ec5c6||'revisionHistoryLicenseKeyUsageLimit'==_0x5ec5c6){delete _0x73cbbf[_0x22eebb],_0x5e35dc=_0x5ec5c6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xf53d85=this['repository']['getRevision'](0x0),_0x585edd=await this['getRevisionDocumentData'](_0xf53d85),_0x48825a=await this['getRevisionRootsAttributes'](_0xf53d85);this['_replaceEditorDataWithRevisionData'](_0x585edd,_0x48825a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x526fda){this['_source']=_0x526fda;}async['update'](){const _0x2d7701=await this['_source']['getLatestVersion']();if(_0x2d7701>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4476d8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2d7701});_0x4476d8['authors']=_0x4476d8['authorsIds']['map'](_0x394bbb=>this['editor']['plugins']['get']('Users')['getUser'](_0x394bbb)),this['currentRevision']['_update'](_0x4476d8);}}async['saveRevision'](_0x1daa4a={},_0x37b646=null){const _0x5397dd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x37b646>this['currentRevision']['toVersion']&&(_0x37b646=null),null===_0x37b646&&(_0x37b646=await this['_source']['getLatestVersion']());const _0x2fc660=this['_getFromVersion'](_0x37b646),_0x426e6c=this['buildRevisionData']({'from':_0x2fc660,'to':_0x37b646});if(this['currentRevision']['toVersion']<_0x37b646){const _0x36d290=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x37b646,'to':_0x37b646});_0x36d290['authors']=[],_0x36d290['authorsIds']=[],_0x36d290['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36d290,!0x0),delete _0x36d290['authors'],_0x5397dd['push'](_0x36d290);}_0x1daa4a['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1daa4a['name']=_0x1daa4a['name']||null,_0x1daa4a['id']=_0x1daa4a['id']||_0x3affb0(),_0x1daa4a={..._0x1daa4a,..._0x426e6c};const _0x581622=this['addRevisionData'](_0x1daa4a);_0x5397dd['push'](_0x1daa4a);const _0x212432=this['repository']['getIndex'](_0x581622);if(0x0!==_0x212432){const _0x20863e=this['repository']['getRevision'](_0x212432-0x1);if(_0x20863e['fromVersion']!==_0x37b646){const _0x52388b=this['_revisionDataBuilder']['getData'](_0x37b646,_0x20863e['toVersion']),_0xb12126={'id':_0x20863e['id'],'diffData':_0x52388b['diffData'],'authorsIds':_0x52388b['authorsIds'],'authors':_0x52388b['authorsIds']['map'](_0x5a0f8f=>this['editor']['plugins']['get']('Users')['getUser'](_0x5a0f8f)),'fromVersion':_0x37b646};_0x20863e===this['currentRevision']&&(_0xb12126['createdAt']=new Date(_0x1daa4a['createdAt']['getTime']()+0xa)),_0x20863e['_update'](_0xb12126,!0x0),delete _0xb12126['authors'],_0x5397dd['push'](_0xb12126);}}if(this['adapter']){for(const _0x1aa2b5 of _0x5397dd)this['_bufferUpdate'](_0x1aa2b5['id'],_0x1aa2b5,!0x0);this['sendBufferedUpdates']();}return _0x581622;}['addRevisionData'](_0x4c8b1e){const _0x2c68fe=this['repository']['createRevision'](_0x4c8b1e);return this['adapter']&&_0x2c68fe['on']('_update',(_0x572c4d,_0x123aeb,_0x50466b)=>{_0x50466b||(this['_bufferUpdate'](_0x123aeb['id'],_0x123aeb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c68fe,this['_findInsertionIndex'](_0x2c68fe)),_0x2c68fe;}async['getRevisionDocumentData'](_0x1652a6){return await this['_utils']['loadRevisionData'](_0x1652a6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1652a6);}async['getRevisionRootsAttributes'](_0x2c97e9){return await this['_utils']['loadRevisionData'](_0x2c97e9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2c97e9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x61627=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1cb7f5=0x0;_0x1cb7f5<_0x61627['length'];_0x1cb7f5++){const _0x6d16a8=_0x61627[_0x1cb7f5];let _0x297437=!0x1;for(const _0xd802da of Object['keys'](_0x6d16a8))void 0x0===_0x6d16a8[_0xd802da]?delete _0x6d16a8[_0xd802da]:'id'!==_0xd802da&&(_0x297437=!0x0);_0x297437||(_0x61627[_0x1cb7f5]=null);}if(_0x61627=_0x61627['filter'](_0x30e492=>null!==_0x30e492),!_0x61627['length'])return;for(let _0x677804=0x0;_0x677804<_0x61627['length'];_0x677804++){const _0x511427=_0x61627[_0x677804];void 0x0!==_0x511427['fromVersion']&&void 0x0===_0x511427['toVersion']&&(_0x511427['toVersion']=this['repository']['getRevision'](_0x511427['id'])['toVersion']),void 0x0!==_0x511427['toVersion']&&void 0x0===_0x511427['fromVersion']&&(_0x511427['fromVersion']=this['repository']['getRevision'](_0x511427['id'])['fromVersion']);}const _0x315107=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x61627,_0x315107)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3b10e4=>{if(_0x3b10e4){for(const _0x43dc1e of _0x3b10e4)this['setRevisionData']({'id':_0x43dc1e['id'],'createdAt':_0x43dc1e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4568bf=null,from:_0x17da18=null,to:_0x1dbe97=null}){_0x17da18=null!==_0x17da18?_0x17da18:_0x4568bf['fromVersion'],_0x1dbe97=null!==_0x1dbe97?_0x1dbe97:_0x4568bf['toVersion'];const _0xf180aa=this['_revisionDataBuilder']['getData'](_0x17da18,_0x1dbe97),_0x313ce5={'diffData':_0xf180aa['diffData'],'authorsIds':_0xf180aa['authorsIds'],'fromVersion':_0x17da18,'toVersion':_0x1dbe97};if(!_0x4568bf||_0x1dbe97!==_0x4568bf['toVersion']){const _0x4ebf8b=_0x1dbe97-0x1,_0x2467a9=this['_source']['history']['getOperation'](_0x4ebf8b);_0x313ce5['createdAt']=_0x2467a9&&_0x2467a9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x17da18===this['_loadedStateData']['fromVersion']){for(const _0x548870 of this['_loadedStateData']['authors'])_0x313ce5['authorsIds']['includes'](_0x548870['id'])||_0x313ce5['authorsIds']['push'](_0x548870['id']);}return _0x313ce5;}['_bufferUpdate'](_0x1944e6,_0x5b9b80,_0x5557ac){if(this['_bufferedUpdates']['has'](_0x1944e6)){const _0x2f7e74=this['_bufferedUpdates']['get'](_0x1944e6);_0x5b9b80=_0x5557ac?{..._0x2f7e74,..._0x5b9b80}:{..._0x5b9b80,..._0x2f7e74};}this['_bufferedUpdates']['set'](_0x1944e6,_0x5b9b80);}['setRevisionData'](_0x1bacce){const _0x55bf11=this['repository']['getRevision'](_0x1bacce['id']);if(_0x1bacce['createdAt']&&(_0x1bacce['createdAt']=new Date(_0x1bacce['createdAt'])),_0x1bacce['authorsIds']){const _0x3cecd6=this['editor']['plugins']['get']('Users');_0x1bacce['authors']=_0x1bacce['authorsIds']['map'](_0x4e0d31=>_0x3cecd6['getUser'](_0x4e0d31));}_0x55bf11['_update'](_0x1bacce,!0x0);}['_createInitialRevision'](_0x225581){const _0x2adf12=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2adf12)this['_initialRevisionId']=_0x2adf12['id'];else{const _0x9b78b1=!this['editor']['model']['document']['roots']['find'](_0x5a087d=>this['editor']['model']['hasContent'](_0x5a087d)),_0x5505c4=this['editor']['plugins']['get']('Users')['me']['id'],_0xab70f2=g(this['editor']['locale'],_0x9b78b1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x225581,'to':_0x225581,'id':this['_initialRevisionId'],'name':_0xab70f2,'creatorId':_0x5505c4});}}['_createCurrentRevision'](_0x1c3491){const _0x8cf55d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x8cf55d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1c3491,'to':_0x1c3491,'id':_0x8cf55d,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x109d5d,_0x2e491c){let _0x28852e=this['editor']['config']['get']('initialData'),_0x3b9da5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x28852e){_0x28852e={};for(const _0x5aa1bc of this['editor']['model']['document']['getRootNames']())_0x28852e[_0x5aa1bc]='';}if('string'==typeof _0x28852e&&(_0x28852e={'main':_0x28852e}),void 0x0===_0x3b9da5){_0x3b9da5={};for(const _0x312fff of this['editor']['model']['document']['getRootNames']())_0x3b9da5[_0x312fff]={};}let _0x36e295=!0x1;const _0x1e049f=Object['keys'](_0x28852e),_0x5e7412=Object['keys'](_0x109d5d);for(const _0x1422d1 of _0x1e049f){if(_0x28852e[_0x1422d1]!==_0x109d5d[_0x1422d1]&&''!==_0x28852e[_0x1422d1]['trim']()){_0x36e295=!0x0;break;}if(!_0x168c66(_0x3b9da5[_0x1422d1],_0x2e491c[_0x1422d1])&&Object['keys'](_0x3b9da5[_0x1422d1])['length']>0x0){_0x36e295=!0x0;break;}}_0x36e295||(_0x36e295=_0x5e7412['some'](_0x2093a3=>!this['editor']['model']['document']['getRoot'](_0x2093a3))),_0x36e295&&_0x5bccb9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x28852e,'editorRootsAttributes':_0x3b9da5,'revisionData':_0x109d5d,'revisionRootsAttributes':_0x2e491c}),this['editor']['config']['set']('initialData',_0x109d5d),this['editor']['config']['set']('rootsAttributes',_0x2e491c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x41263b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x41263b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x55f159){const _0x138fa1=this['repository']['getRevisions']();_0x138fa1['reverse']();let _0x506fe2=0x0;for(;_0x506fe2<_0x138fa1['length'];){const _0x145cb2=_0x138fa1[_0x506fe2];if(_0x145cb2===this['currentRevision']){_0x506fe2++;continue;}if(_0x145cb2['id']===this['_initialRevisionId'])break;const _0x203438=_0x55f159['toVersion']-_0x145cb2['toVersion']||_0x55f159['fromVersion']-_0x145cb2['fromVersion'];if(_0x203438>0x0)break;if(_0x203438<0x0)_0x506fe2++;else{if(!_0x55f159['creator']&&_0x145cb2['creator'])break;if(_0x145cb2['creator']||!_0x55f159['creator']){if(_0x55f159['createdAt']>_0x145cb2['createdAt'])break;_0x506fe2++;}else _0x506fe2++;}}return _0x506fe2;}['_getFromVersion'](_0x5c3694){const _0x335cde=this['repository']['getRevisions']();_0x335cde['reverse'](),_0x335cde['shift']();const _0x5b2083=_0x335cde['find'](_0x7bc184=>_0x7bc184['toVersion']<=_0x5c3694)['toVersion'];return _0x5b2083<this['_startingVersion']?this['_startingVersion']:_0x5b2083;}['_makeRevision']({name:_0x1b0321,from:_0x5df649,to:_0x4daffe,creatorId:_0x11af02,id:_0xc41afb}){const _0x5d0f89=this['buildRevisionData']({'from':_0x5df649,'to':_0x4daffe});_0x5d0f89['name']=_0x1b0321,_0x5d0f89['creatorId']=_0x11af02,_0x5d0f89['id']=_0xc41afb;const _0x4ad2bb=this['addRevisionData'](_0x5d0f89);return this['adapter']&&this['_bufferUpdate'](_0x5d0f89['id'],_0x5d0f89,!0x0),_0x4ad2bb;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5a282c){this['editor']=_0x5a282c,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x296469){this['source']=_0x296469;const _0x384d77=new Map(),_0x48442d=new Map(),_0x46ca0d=this['editor']['model']['document']['roots']['map'](_0x1268d7=>_0x1268d7['rootName']);for(const _0x16ba29 of _0x46ca0d){const _0x4198a6=this['editor']['model']['document']['getRoot'](_0x16ba29),_0x11b8b3=N(_0x4198a6);_0x384d77['set'](_0x16ba29,_0x11b8b3),_0x48442d['set'](_0x16ba29,Object['fromEntries'](_0x4198a6['getAttributes']()));}const _0x1502c0=Array['from'](this['editor']['model']['markers'])['map'](_0x31ab93=>[_0x31ab93['name'],_0x31ab93['getRange']()]),_0x4e42ee=this['source']['version'];this['_saveMetaData'](_0x4e42ee,_0x384d77,_0x1502c0,_0x48442d),this['_startingRevisionId']=this['_revisionId'];const _0x1943b9=new Map(),_0x2bb167=new Map();for(const _0x3534f2 of _0x46ca0d){const _0x3dbefa=P(_0x3534f2);_0x1943b9['set'](_0x3534f2,_0x3dbefa),_0x2bb167['set'](_0x3534f2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1943b9,[],_0x2bb167);}['getData'](_0x5ee2cc,_0x340e70){if(this['_lastFrom']===_0x5ee2cc&&this['_lastTo']<=_0x340e70)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x340e70,!0x0);else{if(!this['_savedMetaData']['has'](_0x5ee2cc)){const _0x5a6142=this['_getPreviousFrom'](_0x5ee2cc);this['_calculateMetaData'](_0x5a6142,_0x5ee2cc,!0x1);}this['_calculateMetaData'](_0x5ee2cc,_0x340e70,!0x0);}return this['_lastFrom']=_0x5ee2cc,this['_lastTo']=_0x340e70,this['_getState']();}['loadState'](_0x3a4c47){const _0x41e2b3=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3a4c47['fromVersion'],this['_lastTo']=_0x3a4c47['toVersion'];for(const _0x45c703 in _0x3a4c47['diffData']){const _0x359c94=_0x3a4c47['diffData'][_0x45c703]['attachChange'],_0xaf29d0=_0x14f7a4(_0x3a4c47['diffData'][_0x45c703]['attributesBefore'])||{},_0x296a1e=_0x41e2b3['_makeModelFromViewString'](_0x3a4c47['diffData'][_0x45c703]['deletions']);_0x296a1e['rootName']=_0x45c703,_0x296a1e['_isAttached']=!_0x359c94||!_0x359c94['isAttached'],_0x296a1e['isAttached']=()=>_0x296a1e['_isAttached'],this['_baseRoots']['set'](_0x45c703,_0x296a1e),this['_baseRootsAttributes']['set'](_0x45c703,_0xaf29d0),_0x359c94&&this['_touchedRoots']['set'](_0x45c703,_0x359c94);const _0x3ed366=this['_makeIdsRoot'](_0x296a1e);this['_baseIdsRoots']['set'](_0x45c703,_0x3ed366);for(const [_0x30d071,_0x41e460]of _0x296a1e['markers']){if(!_0x30d071['startsWith']('revision:'))continue;const _0x219abf=_0x30d071['split'](':')[0x2];for(const _0x55183b of _0x41e460['getWalker']({'singleCharacters':!0x0})){const _0x574b9e=this['_getVidAttributeName'](_0x55183b),_0x4dde2c='elementEnd'==_0x55183b['type']?_0x55183b['previousPosition']['path']['slice'](0x0,-0x1):_0x55183b['previousPosition']['path'],_0x36089f=_0x3ed366['getNodeByPath'](_0x4dde2c)['getAttribute'](_0x574b9e);this['_touched']['set'](_0x36089f,{'userId':_0x219abf});}}}this['_startingRevisionId']=this['_revisionId'];const _0x484c1f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x158a8f=>!this['_touched']['has'](_0x158a8f));let _0x3dce23=0x0;const _0x68629e=new Map();for(const _0x25506d in _0x3a4c47['diffData']){const _0x4ee22c=_0x3a4c47['diffData'][_0x25506d]['attachChange'],_0x41c334=_0x14f7a4(_0x3a4c47['diffData'][_0x25506d]['attributesAfter'])||{},_0x15eddc=_0x41e2b3['_makeModelFromViewString'](_0x3a4c47['diffData'][_0x25506d]['insertions']);_0x15eddc['rootName']=_0x25506d,_0x15eddc['_isAttached']=!_0x4ee22c||_0x4ee22c['isAttached'],_0x15eddc['isAttached']=()=>_0x15eddc['_isAttached'],this['_diffRoots']['set'](_0x25506d,_0x15eddc),this['_diffRootsAttributes']['set'](_0x25506d,_0x41c334);const _0x5b565e=this['_makeIdsRoot'](_0x15eddc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x25506d,_0x5b565e),_0x68629e['set'](_0x25506d,_0x15eddc['isAttached']()?_0x41c334:{});for(const [_0x3293ce,_0x26b17d]of _0x15eddc['markers']){if(!_0x3293ce['startsWith']('revision:'))continue;const _0x3b5e72=_0x3293ce['split'](':')[0x2];for(const _0x4ea820 of _0x26b17d['getWalker']({'singleCharacters':!0x0})){const _0x45acee=this['_getVidAttributeName'](_0x4ea820),_0x1040b7=this['_revisionId']++,_0x376283='elementEnd'==_0x4ea820['type']?_0x4ea820['previousPosition']['path']['slice'](0x0,-0x1):_0x4ea820['previousPosition']['path'];_0x5b565e['getNodeByPath'](_0x376283)['_setAttribute'](_0x45acee,_0x1040b7),this['_touched']['set'](_0x1040b7,{'userId':_0x3b5e72});}}for(const _0x1768fb of this['editor']['model']['createRangeIn'](_0x15eddc)['getWalker']({'singleCharacters':!0x0})){const _0x39c409=this['_getVidAttributeName'](_0x1768fb),_0x3eb0ca='elementEnd'==_0x1768fb['type']?_0x1768fb['previousPosition']['path']['slice'](0x0,-0x1):_0x1768fb['previousPosition']['path'],_0x3cfa2d=_0x5b565e['getNodeByPath'](_0x3eb0ca);_0x3cfa2d['getAttribute'](_0x39c409)>0x0||_0x3cfa2d['_setAttribute'](_0x39c409,_0x484c1f[_0x3dce23++]);}for(const [_0x1185f0,_0x2663cd]of _0x15eddc['markers'])_0x1185f0['startsWith']('revision:')||this['_markers']['set'](_0x1185f0,_0x2663cd);}const _0xa16f8e=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xa16f8e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xa16f8e,0x1));const _0x2bda1a=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2bda1a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2bda1a,0x1));const _0x586ff9=Array['from'](this['_diffRoots'])['map'](([_0x579558,_0x505005])=>[_0x579558,N(_0x505005)]);this['_saveMetaData'](this['_lastTo'],_0x586ff9,this['_markers'],_0x68629e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4580a4,_0x2f9e95,_0x29bb3f,_0x249f34){const _0x31f7c4=new Map(_0x2f9e95),_0x71439f=new Map(_0x14f7a4(_0x249f34)),_0x1f8ae4=new Map();for(const [_0x397fc0,_0x4a39bc]of _0x29bb3f)_0x1f8ae4['set'](_0x397fc0,{'start':_0x4a39bc['start']['clone'](),'end':_0x4a39bc['end']['clone'](),'rootName':_0x4a39bc['root']['rootName']});this['_savedMetaData']['set'](_0x4580a4,{'roots':_0x31f7c4,'markers':_0x1f8ae4,'rootsAttributes':_0x71439f});}['_removeMetaData'](_0x4638a1){this['_savedMetaData']['delete'](_0x4638a1);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2a64eb,_0x4c6a77=null){let _0x4114af=null;_0x2a64eb['is']('documentFragment')||(_0x4114af=new ut(_0x2a64eb['name'],{'vid_start':null===_0x4c6a77?this['_revisionId']++:_0x4c6a77++}));const _0x33f848=[];for(const _0x4ad402 of _0x2a64eb['getChildren']())if(_0x4ad402['is']('element')){_0x33f848['push'](this['_makeIdsRoot'](_0x4ad402,_0x4c6a77));const _0x221aad=_0x33f848[_0x33f848['length']-0x1];null!==_0x4c6a77&&(_0x4c6a77=_0x221aad['is']('element','$text')?_0x221aad['getAttribute']('vid')+0x1:_0x221aad['getAttribute']('vid_end')+0x1);}else{for(let _0x111360=0x0;_0x111360<_0x4ad402['offsetSize'];_0x111360++)_0x33f848['push'](new ut('$text',{'vid':null===_0x4c6a77?this['_revisionId']++:_0x4c6a77++}));}if(_0x2a64eb['is']('documentFragment')){const _0x5e25ee=P(_0x2a64eb['rootName']);return _0x5e25ee['_insertChild'](0x0,_0x33f848),_0x5e25ee;}return _0x4114af['_setAttribute']('vid_end',null===_0x4c6a77?this['_revisionId']++:_0x4c6a77++),_0x4114af['_insertChild'](0x0,_0x33f848),_0x4114af;}['_calculateMetaData'](_0x922bb7,_0x4e5609,_0x281a73){this['_reset']();const {roots:_0x22f127,markers:_0x3504be,rootsAttributes:_0x50dcc5}=this['_savedMetaData']['get'](_0x922bb7);this['_baseRoots']=new Map(_0x22f127),this['_baseRootsAttributes']=new Map(_0x14f7a4(_0x50dcc5));for(const [_0x18e57b,_0x3d3d74]of this['_baseRoots'])if('$graveyard'!==_0x18e57b&&(this['_diffRoots']['set'](_0x18e57b,N(_0x3d3d74)),this['_diffRootsAttributes']=new Map(_0x14f7a4(_0x50dcc5)),_0x281a73)){const _0x448fb4=this['_revisionId'];this['_idsRoots']['set'](_0x18e57b,this['_makeIdsRoot'](_0x3d3d74)),this['_baseIdsRoots']['set'](_0x18e57b,this['_makeIdsRoot'](_0x3d3d74,_0x448fb4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x281a73&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1cbcd3,_0x295ce5]of _0x3504be){const _0x410e7a=this['_baseRoots']['get'](_0x295ce5['rootName']),_0x238625=this['_diffRoots']['get'](_0x295ce5['rootName']),_0x3419e0=new lt(this['_fixPosition'](_0x295ce5['start'],_0x410e7a),this['_fixPosition'](_0x295ce5['end'],_0x410e7a)),_0x4ca357=this['_fixRange'](_0x3419e0,_0x238625);_0x410e7a['markers']['set'](_0x1cbcd3,_0x3419e0),this['_markers']['set'](_0x1cbcd3,_0x4ca357);}this['_applyOperations'](_0x922bb7,_0x4e5609,_0x281a73);}['_applyOperations'](_0x378be5,_0x275214,_0x12980e){for(const _0x106f68 of this['source']['getOperations'](_0x378be5,_0x275214))this['_handleOperation'](_0x106f68,_0x12980e);for(const _0x13b7fb of this['_diffRoots']['values']())_0x13b7fb['markers']['clear']();for(const [_0x2b1996,_0x2f491a]of this['_markers']){this['_diffRoots']['get'](_0x2f491a['root']['rootName'])['markers']['set'](_0x2b1996,_0x2f491a['clone']());}const _0x1ae6a4=new Map(),_0x9206cb=new Map();for(const [_0x31e9ba,_0x2d2218]of this['_diffRoots'])_0x1ae6a4['set'](_0x31e9ba,N(_0x2d2218)),_0x9206cb['set'](_0x31e9ba,this['_diffRootsAttributes']['get'](_0x31e9ba));this['_saveMetaData'](_0x275214,_0x1ae6a4,this['_markers'],_0x9206cb);}['_getPreviousFrom'](_0x2a5f1a){const _0x1a8c70=Array['from'](this['_savedMetaData']['keys']());_0x1a8c70['sort']((_0x13ac4b,_0x439f68)=>_0x13ac4b-_0x439f68),_0x1a8c70['reverse']();for(const _0x1d792a of _0x1a8c70)if(_0x1d792a<_0x2a5f1a)return _0x1d792a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4f4789,_0x74ce0f){const _0x406f02=Array['from'](_0x74ce0f['markers'])['map'](([_0x1829b7,_0x417476])=>[_0x1829b7,this['_fixRange'](_0x417476,_0x4f4789)]);_0x4f4789['markers']=new Map(_0x406f02);}['_transformMarkers'](_0x203563){for(const _0x5a3ca3 of this['_markers']['values']()){const _0x39d3d4=_0x5a3ca3['getTransformedByOperation'](_0x203563),_0x32d2a1=lt['_createFromRanges'](_0x39d3d4);_0x5a3ca3['start']=_0x32d2a1['start'],_0x5a3ca3['end']=_0x32d2a1['end'];}}['_handleOperation'](_0x227e8d,_0xd927e8){if('addRoot'!=_0x227e8d['type']&&'detachRoot'!=_0x227e8d['type']){if('insert'==_0x227e8d['type']){const _0x2ccdd4=_0x227e8d['position']['root']['rootName'];this['_diffRoots']['has'](_0x2ccdd4)||(this['_diffRoots']['set'](_0x2ccdd4,P(_0x2ccdd4,!0x0)),this['_diffRootsAttributes']['set'](_0x2ccdd4,{}),_0xd927e8&&this['_idsRoots']['set'](_0x2ccdd4,P(_0x2ccdd4,!0x0)));}else{if('addRootAttribute'==_0x227e8d['type']||'removeRootAttribute'==_0x227e8d['type']||'changeRootAttribute'==_0x227e8d['type'])return void this['_handleRootAttributeOperation'](_0x227e8d);'marker'==_0x227e8d['type']&&this['_handleMarkerOperation'](_0x227e8d);}if('marker'!==_0x227e8d['type']){const _0x4bc02b=this['_cloneOperation'](_0x227e8d,this['_diffRoots']);_0x4bc02b['_execute'](),this['_transformMarkers'](_0x4bc02b);}if(_0xd927e8)switch(_0x227e8d['type']){case'insert':this['_handleInsertOperation'](_0x227e8d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x227e8d);break;case'merge':this['_handleMergeOperation'](_0x227e8d);break;case'split':this['_handleSplitOperation'](_0x227e8d);}}else this['_handleRootOperation'](_0x227e8d,_0xd927e8);}['_cloneOperation'](_0x184466,_0x34996e){const _0x3ccba1=_0x184466['clone']();return _0x3ccba1['_authorId']=_0x184466['_authorId'],this['_fixOperation'](_0x3ccba1,_0x34996e),_0x3ccba1;}['_getBaseVids'](_0x49d93){return _0x49d93['map'](_0x45b930=>{const _0x142379=this['_getVidAttributeName'](_0x45b930);return Number(_0x45b930['item']['getAttribute'](_0x142379));});}['_generateTape'](_0x31ad49,_0x54dc2f){if(_0x31ad49['is']('element','$text'))_0x54dc2f['push']({'item':_0x31ad49,'type':'text'});else{_0x31ad49['is']('element')&&_0x54dc2f['push']({'item':_0x31ad49,'type':'elementStart'});for(const _0x111998 of _0x31ad49['getChildren']())this['_generateTape'](_0x111998,_0x54dc2f);_0x31ad49['is']('element')&&_0x54dc2f['push']({'item':_0x31ad49,'type':'elementEnd'});}return _0x54dc2f;}['_getState'](){const _0x2c3da6=new Map(this['_touched']),_0x1dfbdd=new Map(_0x2c3da6),_0x57b654=new Map(),_0x12e684={'insertions':{},'deletions':{}},_0x2d24fc={'insertions':{},'deletions':{}},_0x5431e3=new Map(),_0x2706dc=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2706dc['delete']('$graveyard');for(const _0x5b0306 of _0x2706dc){const _0x960b41=this['_diffRoots']['get'](_0x5b0306)||P(_0x5b0306,!0x1),_0x2f66f7=this['_baseRoots']['get'](_0x5b0306)||P(_0x5b0306,!0x1);_0x960b41['isAttached']()||_0x2f66f7['isAttached']()?(_0x12e684['insertions'][_0x5b0306]=N(_0x960b41),_0x12e684['deletions'][_0x5b0306]=N(_0x2f66f7),this['_copyMarkers'](_0x12e684['deletions'][_0x5b0306],_0x2f66f7),this['_copyMarkers'](_0x12e684['insertions'][_0x5b0306],_0x960b41),_0x2d24fc['insertions'][_0x5b0306]=this['_generateTape'](this['_idsRoots']['get'](_0x5b0306),[]),_0x2d24fc['deletions'][_0x5b0306]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5b0306)||P(_0x5b0306,!0x1),[])):_0x2706dc['delete'](_0x5b0306);}for(const _0x52d000 of _0x2706dc){const _0x1d999e=_0x2d24fc['insertions'][_0x52d000];for(const _0xb6e6fb of _0x1d999e){const _0x8d6660=this['_getVidAttributeName'](_0xb6e6fb),_0x201e64=_0xb6e6fb['item']['getAttribute'](_0x8d6660);_0x1dfbdd['delete'](_0x201e64),_0x201e64>=this['_startingRevisionId']&&_0x57b654['set'](_0x201e64,_0x2c3da6['get'](_0x201e64));}}for(const _0x2ab528 of _0x2706dc){const _0x1ad7b0=_0x2d24fc['insertions'][_0x2ab528],_0x1240e4=this['_getBaseVids'](_0x2d24fc['deletions'][_0x2ab528]);let _0x56cb82=0x0;for(const _0x2a3d55 of _0x1ad7b0){const _0x3796dd=this['_getVidAttributeName'](_0x2a3d55),_0x203ec0=_0x2a3d55['item']['getAttribute'](_0x3796dd);if(!_0x57b654['has'](_0x203ec0)&&!_0x5431e3['has'](_0x203ec0)){if(_0x1dfbdd['has'](_0x203ec0))_0x56cb82++;else{if(_0x203ec0!=_0x1240e4[_0x56cb82]){const _0x152df4=_0x2c3da6['get'](_0x203ec0)||_0x2c3da6['get'](_0x1240e4[_0x56cb82]);for(;_0x203ec0!=_0x1240e4[_0x56cb82];)_0x1dfbdd['has'](_0x1240e4[_0x56cb82])||(_0x5431e3['set'](_0x1240e4[_0x56cb82],_0x152df4),_0x2c3da6['set'](_0x1240e4[_0x56cb82],_0x152df4)),_0x56cb82++;}_0x56cb82++;}}}}for(const _0x4ce249 of _0x2706dc){const _0x202dd3=_0x2d24fc['insertions'][_0x4ce249];for(const _0x1829f5 of _0x202dd3){const _0x540704=this['_getVidAttributeName'](_0x1829f5),_0x16f562=_0x1829f5['item']['getAttribute'](_0x540704);if(_0x5431e3['has'](_0x16f562)){const _0x3fb161=_0x5431e3['get'](_0x16f562);_0x1dfbdd['has'](_0x16f562)||_0x1dfbdd['set'](_0x16f562,{..._0x3fb161}),_0x57b654['set'](_0x16f562,{..._0x3fb161});}}}for(const _0x9f8d57 of _0x1dfbdd['keys']())_0x9f8d57>=this['_startingRevisionId']&&_0x1dfbdd['delete'](_0x9f8d57);const _0x4cf006=new Map();for(const _0x1ef6f2 of _0x2706dc){let _0xb1f325=_0x2d24fc['insertions'][_0x1ef6f2];for(const _0x57c2db of _0xb1f325)if(_0x57c2db['item']['is']('element','tableCell')){const _0x4142e2=this['_getVidAttributeName'](_0x57c2db),_0x311fd3=_0x57c2db['item']['getAttribute'](_0x4142e2);if(_0x57b654['has'](_0x311fd3)){const _0x46251e=_0x57c2db['item']['parent']['parent']['getAttribute']('vid_start'),_0x215e15=_0x4cf006['get'](_0x46251e)||new Set();_0x215e15['add'](_0x57b654['get'](_0x311fd3)['userId']),_0x4cf006['set'](_0x46251e,_0x215e15);}}_0xb1f325=_0x2d24fc['deletions'][_0x1ef6f2];for(const _0x3f0655 of _0xb1f325)if(_0x3f0655['item']['is']('element','tableCell')){const _0x18cfdc=this['_getVidAttributeName'](_0x3f0655),_0x4b9d74=_0x3f0655['item']['getAttribute'](_0x18cfdc);if(_0x1dfbdd['has'](_0x4b9d74)){const _0x512ccf=_0x3f0655['item']['parent']['parent']['getAttribute']('vid_start'),_0xdae2f4=_0x4cf006['get'](_0x512ccf)||new Set();_0xdae2f4['add'](_0x1dfbdd['get'](_0x4b9d74)['userId']),_0x4cf006['set'](_0x512ccf,_0xdae2f4);}}for(const _0x5b016b of _0x4cf006['keys']())(_0x57b654['has'](_0x5b016b)||_0x1dfbdd['has'](_0x5b016b))&&_0x4cf006['delete'](_0x5b016b);}for(const _0x204feb of _0x2706dc){const _0x584ee0=_0x2d24fc['insertions'][_0x204feb];let _0x1ae47e=null,_0x78c731=null;for(const _0x5a71c5 of _0x584ee0){const _0x282345=this['_getVidAttributeName'](_0x5a71c5),_0x2e3f17=_0x5a71c5['item']['getAttribute'](_0x282345),_0x52046f=_0x4cf006['get'](_0x2e3f17);_0x52046f&&'elementStart'==_0x5a71c5['type']&&(_0x1ae47e=Array['from'](_0x52046f)[0x0],_0x78c731=_0x5a71c5['item']['getAttribute']('vid_end')),_0x1ae47e&&(_0x1dfbdd['set'](_0x2e3f17,{'userId':_0x1ae47e}),_0x57b654['set'](_0x2e3f17,{'userId':_0x1ae47e})),_0x2e3f17==_0x78c731&&(_0x1ae47e=null,_0x78c731=null);}}const _0x3c7035={},_0x5266f9=new Set();for(const _0x1ecf1a of _0x2706dc){const _0x2ccc33=_0x12e684['deletions'][_0x1ecf1a],_0x23c9ce=_0x12e684['insertions'][_0x1ecf1a];for(const {userId:_0x1161ad}of this['_touchedMarkers']['values']())null!==_0x1161ad&&_0x5266f9['add'](_0x1161ad);for(const {userId:_0x52a57a}of this['_touchedRoots']['values']())null!==_0x52a57a&&_0x5266f9['add'](_0x52a57a);this['_markChanges'](_0x23c9ce,_0x2d24fc['insertions'][_0x1ecf1a],_0x57b654,'insertion',_0x5266f9),this['_markChanges'](_0x2ccc33,_0x2d24fc['deletions'][_0x1ecf1a],_0x1dfbdd,'deletion',_0x5266f9),_0x3c7035[_0x1ecf1a]={'insertions':this['_prepareViewToSave'](_0x23c9ce),'deletions':this['_prepareViewToSave'](_0x2ccc33),'attachChange':this['_touchedRoots']['get'](_0x1ecf1a)||null,'attributesBefore':_0x14f7a4(this['_baseRootsAttributes']['get'](_0x1ecf1a))||{},'attributesAfter':_0x14f7a4(this['_diffRootsAttributes']['get'](_0x1ecf1a))};}return{'diffData':_0x3c7035,'authorsIds':Array['from'](_0x5266f9)};}['_processRootBeforeSave'](_0x505122){for(const [,_0x2a5846]of _0x505122['markers']){const _0x1b0851=_0x2a5846['start']['getAncestors']()['filter'](_0x38e5e8=>'tableCell'==_0x38e5e8['name']);for(const _0x83e827 of _0x1b0851)0x1==_0x83e827['childCount']&&_0x83e827['getChild'](0x0)['is']('element','paragraph')&&_0x83e827['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2687a3){this['_processRootBeforeSave'](_0x2687a3);const _0x28444b=this['editor']['data']['toView'](_0x2687a3,{}),_0x285f40=Array['from'](_0x28444b['getChildren']())['map'](_0x17ff6f=>this['_getViewJson'](_0x17ff6f));return JSON['stringify'](_0x285f40);}['_getViewJson'](_0x1ee118){if(_0x1ee118['is']('$text'))return _0x1ee118['data'];{const _0x53d880=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x148019=_0x1ee118,_0x253f05=this['editor']['data']['htmlProcessor']['domConverter'],_0x95a09b={'type':_0x53d880['_getTypeCharForViewElement'](_0x148019),'name':_0x148019['name'],'attributes':Array['from'](_0x148019['getAttributes']()),'children':Array['from'](_0x148019['getChildren']())['map'](_0x32c484=>this['_getViewJson'](_0x32c484))};if(_0x1ee118['is']('uiElement')&&'$comment'!=_0x1ee118['name']){const _0x286e9c=_0x1ee118['render'](_0x253f05['domDocument'],_0x253f05);_0x95a09b['children']['push'](_0x286e9c['outerHTML']);}else{if(_0x1ee118['is']('rawElement')){const _0x971851=_0x253f05['domDocument']['createElement'](_0x148019['name']);_0x1ee118['render'](_0x971851,_0x253f05),_0x95a09b['children']['push'](_0x971851['innerHTML']);}}const _0x4dfa70=Array['from'](_0x148019['getCustomProperties']());_0x4dfa70['length']>0x0&&(_0x95a09b['customProperties']=_0x4dfa70);const _0x372bfd=_0x148019['getFillerOffset']();return null!==_0x372bfd&&(_0x95a09b['fillerOffset']=_0x372bfd),_0x95a09b;}}['_markChanges'](_0x5b1feb,_0x64d7fb,_0x24be8f,_0xd8f080,_0x3923a0){let _0x2501bb=null,_0x43946c=null,_0x49b142=0x0;const _0x2db56=this['editor']['model'];for(let _0x11a3fd=0x0;_0x11a3fd<_0x64d7fb['length'];_0x11a3fd++){const _0x37834e=this['_getVidAttributeName'](_0x64d7fb[_0x11a3fd]),_0x3035b1=_0x64d7fb[_0x11a3fd]['item']['getAttribute'](_0x37834e),_0x17dd9e=_0x24be8f['get'](_0x3035b1),_0x37eca0=_0x11a3fd==_0x64d7fb['length']-0x1;(!_0x2501bb&&_0x17dd9e&&(_0x2501bb=_0x17dd9e,_0x43946c=_0x64d7fb[_0x11a3fd]),_0x2501bb&&(!_0x17dd9e||_0x17dd9e['userId']!=_0x2501bb['userId']))&&(_0x14903f(_0x17dd9e,F(_0x43946c,_0x5b1feb,_0x2db56),F(_0x64d7fb[_0x11a3fd],_0x5b1feb,_0x2db56)),_0x2501bb=_0x17dd9e||null,_0x43946c=_0x17dd9e?_0x64d7fb[_0x11a3fd]:null),_0x2501bb&&_0x37eca0&&_0x14903f(_0x17dd9e,F(_0x43946c,_0x5b1feb,_0x2db56),B(_0x64d7fb[_0x11a3fd],_0x5b1feb,_0x2db56));}function _0x14903f(_0x44842f,_0x3d2091,_0x504c84){const _0x494823=_0x2501bb['userId'],_0x5c7671='revision:'+_0xd8f080+':'+_0x494823+':'+_0x49b142++,_0xe0d48d=_0x2db56['createRange'](_0x3d2091,_0x504c84);_0x5b1feb['markers']['set'](_0x5c7671,_0xe0d48d),null!==_0x494823&&_0x3923a0['add'](_0x494823);}}['_getVidAttributeName'](_0x253ad2){switch(_0x253ad2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x16ab04,_0x3152fc){_0x16ab04['baseVersion']=null;for(const _0x2b21da in _0x16ab04){const _0x1e14ce=_0x16ab04[_0x2b21da];if(_0x1e14ce instanceof ft){const _0x768fe3=_0x3152fc['get'](_0x1e14ce['root']['rootName']);_0x16ab04[_0x2b21da]=this['_fixPosition'](_0x1e14ce,_0x768fe3);}if(_0x1e14ce instanceof lt){const _0x516fdc=_0x3152fc['get'](_0x1e14ce['root']['rootName']);_0x16ab04[_0x2b21da]=this['_fixRange'](_0x1e14ce,_0x516fdc);}'root'===_0x2b21da&&(_0x16ab04['root']=_0x3152fc['get'](_0x16ab04['root']['rootName']));}}['_fixRange'](_0x20b14c,_0x217ec1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x20b14c['start'],_0x217ec1),this['_fixPosition'](_0x20b14c['end'],_0x217ec1));}['_fixPosition'](_0x10810c,_0x3e2429){return this['editor']['model']['createPositionFromPath'](_0x3e2429,_0x10810c['path'],_0x10810c['stickiness']);}['_handleInsertOperation'](_0x1a60b1){const _0x1ea1b9=this['_idsRoots']['get'](_0x1a60b1['position']['root']['rootName']),_0x359200=this['_fixPosition'](_0x1a60b1['position'],_0x1ea1b9),_0x2dd875=null===_0x1a60b1['_authorId']?null:_0x1a60b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e12ac=_0x359200['parent'],_0x5a1df7=this['_revisionId'],_0x29e500=[];for(const _0x7d4f12 of _0x1a60b1['nodes'])if(_0x7d4f12['is']('element'))_0x29e500['push'](this['_makeIdsRoot'](_0x7d4f12));else{for(let _0x8e1918=0x0;_0x8e1918<_0x7d4f12['offsetSize'];_0x8e1918++)_0x29e500['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xac7955=this['_revisionId'];for(let _0x5ca956=_0x5a1df7;_0x5ca956<_0xac7955;_0x5ca956++)this['_touched']['set'](_0x5ca956,{'userId':_0x2dd875});_0x1e12ac['_insertChild'](_0x359200['offset'],_0x29e500);}['_handleMoveOperation'](_0x399bfb){(_0x399bfb=this['_cloneOperation'](_0x399bfb,this['_idsRoots']))['_execute']();const _0x46a504=null===_0x399bfb['_authorId']?null:_0x399bfb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x583e3c=_0x399bfb['getMovedRangeStart'](),_0x3d54bc=_0x583e3c['parent'],_0x62a2b8=_0x583e3c['offset'];!function _0x4367ae(_0x2fb5cd,_0x110f9e,_0x291080,_0x1513be){for(let _0x15501a=_0x291080;_0x15501a<_0x1513be;_0x15501a++){const _0x2de43b=_0x110f9e['getChild'](_0x15501a);_0x2de43b['is']('element','$text')?_0x2fb5cd['set'](_0x2de43b['getAttribute']('vid'),{'userId':_0x46a504}):(_0x2fb5cd['set'](_0x2de43b['getAttribute']('vid_start'),{'userId':_0x46a504}),_0x4367ae(_0x2fb5cd,_0x2de43b,0x0,_0x2de43b['childCount']),_0x2fb5cd['set'](_0x2de43b['getAttribute']('vid_end'),{'userId':_0x46a504}));}}(this['_touched'],_0x3d54bc,_0x62a2b8,_0x62a2b8+_0x399bfb['howMany']);}['_handleMergeOperation'](_0x5258d1){const _0x3046e2=null===(_0x5258d1=this['_cloneOperation'](_0x5258d1,this['_idsRoots']))['_authorId']?null:_0x5258d1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42ce40=_0x5258d1['targetPosition']['parent'],_0x5c52e6=_0x5258d1['sourcePosition']['parent'],_0x15091f=_0x42ce40['getAttribute']('vid_end'),_0x3e4785=_0x5c52e6['getAttribute']('vid_start');_0x42ce40['_setAttribute']('vid_end',_0x5c52e6['getAttribute']('vid_end')),_0x5c52e6['_setAttribute']('vid_end',_0x15091f),this['_touched']['set'](_0x3e4785,{'userId':_0x3046e2}),this['_touched']['set'](_0x15091f,{'userId':_0x3046e2}),_0x5258d1['_execute']();}['_handleSplitOperation'](_0x10e7d3){const _0x26d0f9=null===(_0x10e7d3=this['_cloneOperation'](_0x10e7d3,this['_idsRoots']))['_authorId']?null:_0x10e7d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f43e3=_0x10e7d3['graveyardPosition'],_0x371893=_0x10e7d3['splitPosition']['parent'];_0x10e7d3['_execute']();const _0x3d1c8a=_0x371893['getAttribute']('vid_end'),_0x2fe706=_0x10e7d3['insertionPosition']['nodeAfter'];if(_0x1f43e3){const _0xb98b90=_0x2fe706['getAttribute']('vid_end'),_0x49fd36=_0x371893['getAttribute']('vid_end');_0x371893['_setAttribute']('vid_end',_0xb98b90),_0x2fe706['_setAttribute']('vid_end',_0x49fd36),this['_touched']['set'](_0x371893['getAttribute']('vid_end'),{'userId':_0x26d0f9}),this['_touched']['set'](_0x2fe706['getAttribute']('vid_start'),{'userId':_0x26d0f9});}else{const _0x9d4ca2=this['_revisionId']++,_0x463ce4=this['_revisionId']++;_0x371893['_setAttribute']('vid_end',_0x9d4ca2),_0x2fe706['_setAttribute']('vid_start',_0x463ce4),_0x2fe706['_setAttribute']('vid_end',_0x3d1c8a),this['_touched']['set'](_0x9d4ca2,{'userId':_0x26d0f9}),this['_touched']['set'](_0x463ce4,{'userId':_0x26d0f9});}}['_handleMarkerOperation'](_0x1b537e){if(!_0x1b537e['affectsData'])return;const _0x3d80fd=(_0x1b537e=this['_cloneOperation'](_0x1b537e,this['_diffRoots']))['oldRange']?_0x1b537e['oldRange']['root']:null,_0x1f0936=_0x1b537e['newRange']?_0x1b537e['newRange']['root']:null;_0x3d80fd&&this['_markers']['delete'](_0x1b537e['name']),_0x1f0936&&this['_markers']['set'](_0x1b537e['name'],_0x1b537e['newRange']['clone']());const _0x2c4f8e=null===_0x1b537e['_authorId']?null:_0x1b537e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4bc45d=_0x1b537e['name'];if(!this['_touchedMarkers']['has'](_0x4bc45d))return void this['_touchedMarkers']['set'](_0x4bc45d,{'range':_0x1b537e['oldRange'],'userId':_0x2c4f8e});const _0x147e16=this['_touchedMarkers']['get'](_0x4bc45d),_0x380eaf=_0x147e16['range'],_0x6937=_0x1b537e['newRange'];null==_0x380eaf&&null==_0x6937||_0x380eaf&&_0x6937&&_0x380eaf['isEqual'](_0x6937)?this['_touchedMarkers']['delete'](_0x1b537e['name']):_0x147e16['userId']=_0x2c4f8e;}['_handleRootOperation'](_0x279ac4,_0x1c9b26){this['_diffRoots']['has'](_0x279ac4['rootName'])?this['_diffRoots']['get'](_0x279ac4['rootName'])['_isAttached']=_0x279ac4['isAdd']:(this['_diffRoots']['set'](_0x279ac4['rootName'],P(_0x279ac4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x279ac4['rootName'],{}),_0x1c9b26&&this['_idsRoots']['set'](_0x279ac4['rootName'],P(_0x279ac4['rootName'],!0x0)));const _0x21e178=null===_0x279ac4['_authorId']?null:_0x279ac4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f5ee3=this['_touchedRoots']['get'](_0x279ac4['rootName']);_0x1f5ee3&&_0x1f5ee3['userId']===_0x21e178?this['_touchedRoots']['delete'](_0x279ac4['rootName']):this['_touchedRoots']['set'](_0x279ac4['rootName'],{'userId':_0x21e178,'isAttached':_0x279ac4['isAdd']});}['_handleRootAttributeOperation'](_0x59ae3d){const _0x564f7e=this['_diffRootsAttributes']['get'](_0x59ae3d['root']['rootName']);null===_0x59ae3d['newValue']?delete _0x564f7e[_0x59ae3d['key']]:_0x564f7e[_0x59ae3d['key']]=_0x59ae3d['newValue'];}}function N(_0x202d42){const _0x3314c6=P(_0x202d42['rootName'],_0x202d42['isAttached']());for(const _0x2ca8c2 of _0x202d42['getChildren']()){const _0x195610=_0x2ca8c2['_clone'](!0x0);_0x3314c6['_appendChild'](_0x195610);}return _0x3314c6;}function P(_0x2e9253,_0x3b9f96=!0x0){const _0x3f0f18=new vt();return _0x3f0f18['rootName']=_0x2e9253,_0x3f0f18['_isAttached']=_0x3b9f96,_0x3f0f18['isAttached']=()=>_0x3f0f18['_isAttached'],_0x3f0f18;}function F(_0x95ac1c,_0x55a7f1,_0x529136){const _0x2580a2='elementEnd'==_0x95ac1c['type']?_0x529136['createPositionAt'](_0x95ac1c['item'],'end'):_0x529136['createPositionBefore'](_0x95ac1c['item']);return _0x529136['createPositionFromPath'](_0x55a7f1,_0x2580a2['path'],_0x2580a2['stickiness']);}function B(_0x1433d5,_0x39c73e,_0x4ca36e){const _0x1a64c2='elementStart'==_0x1433d5['type']?_0x4ca36e['createPositionAt'](_0x1433d5['item'],0x0):_0x4ca36e['createPositionAfter'](_0x1433d5['item']);return _0x4ca36e['createPositionFromPath'](_0x39c73e,_0x1a64c2['path'],_0x1a64c2['stickiness']);}class hs extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x359ef3(_0x54e22e){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x9717a,_0xa2bb26){super(_0x9717a),this['focusTracker']=new _0x1143b8(),this['keystrokes']=new _0x118967(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xa2bb26),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x131075({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x158626=_0x10e769=>_0x10e769['stopPropagation']();this['keystrokes']['set']('arrowright',_0x158626),this['keystrokes']['set']('arrowleft',_0x158626),this['keystrokes']['set']('arrowup',_0x158626),this['keystrokes']['set']('arrowdown',_0x158626);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3ca2f8){this['revisionNameInputView']['fieldView']['element']['value']=_0x3ca2f8['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3f223c){const _0x5508f8=new ts(this['locale'],_0x5036c0),_0x4d58c7=_0x5508f8['fieldView'];_0x4d58c7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xdb9118=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3f223c&&(_0xdb9118+='\x20('+g(this['locale'],'optional')+')'),(_0x5508f8['label']=_0xdb9118,_0x4d58c7['on']('input',()=>{this['revisionNameInputValue']=_0x4d58c7['element']['value']['trim']();}),_0x5508f8);}}class f extends _0x4d12af{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x155bec=this['editor'],_0x178091=_0x155bec['plugins']['get']('RevisionTracker');_0x155bec['ui']['componentFactory']['add']('revisionHistory',_0x283750=>{const _0x3c59b6=_0x2b57b5(_0x283750),_0x3b5970=_0x3c59b6['panelView']['children'],_0x49393c=new _0x59591b(_0x283750),_0x356dce=new _0x5bd1b5(_0x283750),_0x39a802=new te(_0x283750),_0x1b2c61=new _0x5bd1b5(_0x283750),_0x2384f1=new te(_0x283750);return _0x3c59b6['bind']('isEnabled')['to'](_0x178091,'isReady',_0x178091,'isEnabled',_0x155bec,'isReadOnly',(_0x3399e0,_0x5bea14,_0x23022f)=>_0x3399e0&&_0x5bea14&&!_0x23022f),_0x3c59b6['buttonView']['set']({'icon':_0x15ce90,'label':g(_0x283750,'Revision\x20history'),'tooltip':!0x0}),_0x39a802['set']({'label':g(_0x283750,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x39a802['bind']('isEnabled')['to'](_0x178091,'isReady',_0x178091,'isEnabled',_0x155bec,'isReadOnly',(_0x5c1757,_0x5d2049,_0x43ccd5)=>_0x5c1757&&_0x5d2049&&!_0x43ccd5),_0x39a802['on']('execute',()=>this['_showDialog']()),_0x2384f1['set']({'label':g(_0x283750,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2384f1['bind']('isEnabled')['to'](_0x178091,'isReady',_0x155bec,'isReadOnly',(_0x32d6e7,_0x5aaa10)=>_0x32d6e7&&!_0x5aaa10),_0x2384f1['on']('execute',()=>{_0x155bec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3c59b6['isOpen']=!0x1,_0x155bec['editing']['view']['focus']();}),_0x356dce['children']['add'](_0x39a802),_0x1b2c61['children']['add'](_0x2384f1),_0x49393c['role']='menu',_0x49393c['items']['addMany']([_0x356dce,_0x1b2c61]),_0x3b5970['add'](_0x49393c),_0x3c59b6;}),_0x155bec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x90c6a1=this['editor'],_0x334cb3=_0x90c6a1['locale'],_0x285f01=new _0x177db2(_0x334cb3),_0x1f4843=new _0x5b9903(_0x334cb3);_0x285f01['buttonView']['set']({'icon':_0x15ce90,'label':g(_0x334cb3,'Revision\x20history')});const _0x21739b=new _0x33f362(_0x334cb3,_0x285f01),_0x1ea679=new _0x353f65(_0x334cb3);_0x1ea679['set']({'label':g(_0x334cb3,'Save\x20current\x20revision')}),_0x1ea679['delegate']('execute')['to'](_0x285f01),_0x1ea679['on']('execute',()=>{this['_showDialog']();}),_0x21739b['children']['add'](_0x1ea679),_0x1f4843['items']['add'](_0x21739b);const _0xe7f65b=new _0x33f362(_0x334cb3,_0x285f01),_0x5ed630=new _0x353f65(_0x334cb3);return _0x5ed630['set']({'label':g(_0x334cb3,'Open\x20revision\x20history')}),_0x5ed630['delegate']('execute')['to'](_0x285f01),_0x5ed630['on']('execute',()=>{_0x90c6a1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xe7f65b['children']['add'](_0x5ed630),_0x1f4843['items']['add'](_0xe7f65b),_0x285f01['panelView']['children']['add'](_0x1f4843),_0x285f01;}['_showDialog'](){const _0x2b5b29=this['editor'],_0x56e8e8=_0x2b5b29['locale'],_0x196b4f=_0x2b5b29['plugins']['get']('Dialog'),_0x3829cc=_0x2b5b29['plugins']['get']('RevisionTracker');function _0x5f0ffa(_0x541218){_0x2b5b29['config']['get']('revisionHistory.requireRevisionName')&&''===_0x541218['revisionName']?_0x541218['revisionNameInputView']['errorText']=g(_0x56e8e8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2b5b29['plugins']['get'](u)['saveRevision']({'name':_0x541218['revisionName']}),_0x196b4f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5f0ffa(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x196b4f['show']({'id':'revisionSave','title':g(_0x56e8e8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2b5b29['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x196b4f['hide']()},{'label':g(_0x2b5b29['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x26c48e){_0x26c48e['bind']('isEnabled')['to'](_0x3829cc,'isReady',_0x3829cc,'isEnabled',_0x2b5b29,'isReadOnly',(_0x121001,_0x42a45c,_0x2e4c08)=>_0x121001&&_0x42a45c&&!_0x2e4c08);},'onExecute':()=>_0x5f0ffa(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x321737=this['editor'],_0x20668d=_0x321737['locale'];this['_saveRevisionFormView']=new hs(_0x20668d,_0x321737['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x54e22e{['changeId'];['_model'];constructor(_0x1d6fe7,_0x5e5df7){super(_0x1d6fe7),this['_model']=_0x5e5df7,this['changeId']=_0x5e5df7['id'];const _0x2e77f2=this['bindTemplate'],_0x90a41b=g(_0x1d6fe7,_0x5e5df7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5e5df7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5e5df7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2e77f2['to']('type',_0x5c344d=>'ck-revision-change__'+_0x5c344d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x90a41b}]},{'text':'\x20'+_0x5e5df7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x29f8d2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x31e09c){super(),this['id']=_0x31e09c['id']||_0x3affb0(),this['author']=_0x31e09c['author'],this['type']=_0x31e09c['type'],this['data']=_0x31e09c['data']||{},this['rootName']=_0x31e09c['rootName'],this['set']('createdAt',_0x31e09c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2bcecb,_0x3604d5){this['newRevisionId']=_0x2bcecb,this['oldRevisionId']=_0x3604d5,this['changes']=new _0x4916d9();}['_setChanges'](_0x47df40){for(const _0x1136ae of _0x47df40)this['changes']['add'](_0x1136ae);}}class m extends _0x4d12af{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x18dc9d,_0xc5db98,I,V];}constructor(_0x28ed02){super(_0x28ed02),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xe5db28,_0x51569b,_0x83186c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x36e172=>{for(const _0x5cd34c of this['editor']['editing']['view']['document']['roots'])_0x83186c?_0x36e172['removeClass']('ck-editor__editable__overlay',_0x5cd34c):_0x36e172['addClass']('ck-editor__editable__overlay',_0x5cd34c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3fa8f2=>null!==_0x3fa8f2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3c7854,_0x1a0406,_0x5f5595)=>_0x3c7854&&_0x5f5595?_0x1a0406['changes']['getIndex'](_0x5f5595):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x25bdcc,_0x5aea67)=>_0x25bdcc?_0x5aea67['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xc5db98);}['init'](){const _0x642609=this['editor'],_0x149edd=new wt(_0x642609,{'direction':'backward'}),_0x48dfce=new wt(_0x642609,{'direction':'forward'});(_0x642609['commands']['add']('showPreviousChange',_0x149edd),_0x642609['commands']['add']('showNextChange',_0x48dfce),_0x642609['commands']['add']('restoreRevision',new mt(_0x642609)),this['on']('change:numberOfChanges',()=>{_0x149edd['refresh'](),_0x48dfce['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x642609['enableReadOnlyMode']('revision-viewer'),_0x642609['plugins']['has']('WidgetToolbarRepository'))&&_0x642609['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3292fc){return await this['_utils']['loadRevisionData'](_0x3292fc,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3292fc);}async['getRevisionRootsAttributes'](_0x56d9de){return await this['_utils']['loadRevisionData'](_0x56d9de,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x56d9de);}async['compare'](_0x5bef01,_0x37f2ab,_0x24abb0=!0x1){if(!this['isEnabled'])return;const _0x1c4d3d=this['diff'],_0x2d98bf=this['repository'],_0xdba625='string'==typeof _0x5bef01?_0x2d98bf['getRevision'](_0x5bef01):_0x5bef01,_0x144d0b='string'==typeof _0x37f2ab?_0x2d98bf['getRevision'](_0x37f2ab):_0x37f2ab,_0x3f8c9c=_0xdba625['id'],_0x3794e2=_0x144d0b?_0x144d0b['id']:null;if(!_0x24abb0&&this['diff']&&this['diff']['newRevisionId']===_0x3f8c9c&&this['diff']['oldRevisionId']===_0x3794e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3f8c9c,_0x3794e2);const _0x334e24=this['_getRevisionsRange'](_0xdba625,_0x144d0b,!0x0)['map'](_0x798940=>this['_utils']['loadRevisionData'](_0x798940,this['adapter']));return _0x334e24['push'](new Promise(_0x3ea566=>{setTimeout(_0x3ea566,0x14);})),Promise['all'](_0x334e24)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4a8c2a=this['_getDiff'](_0x3f8c9c,_0x3794e2);for(const _0x2f8e74 of _0x4a8c2a['changes'])this['_changeIdToChange']['set'](_0x2f8e74['id'],_0x2f8e74);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x12616f=>{for(const _0x549b01 of this['editor']['model']['document']['getRootNames']())_0x12616f['detachRoot'](_0x549b01);for(const _0x38580f of Object['keys'](_0x4a8c2a['model'])){const _0x437673=_0x12616f['addRoot'](_0x38580f);for(const _0x41d747 of Object['keys'](_0x4a8c2a['attributes'][_0x38580f]))_0x12616f['setAttribute'](_0x41d747,_0x4a8c2a['attributes'][_0x38580f][_0x41d747],_0x437673);_0x12616f['insert'](_0x4a8c2a['model'][_0x38580f],_0x437673,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4a8c2a['changes'])),this['isReady']=!0x0;})['catch'](_0x7ba15=>{console['error'](_0x7ba15),this['_cleanUp'](),_0x1c4d3d&&(this['diff']=_0x1c4d3d),this['isReady']=!0x0;});}['addRevisionData'](_0x2f6f77,_0x168963){const _0x555798=this['repository']['createRevision'](_0x2f6f77);return _0x555798['on']('_update',(_0x4e98c7,_0x40d5e3,_0x373738)=>_0x168963(_0x40d5e3,_0x373738,_0x555798)),this['repository']['addRevision'](_0x555798),_0x555798;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x56c139=>{for(const _0x27bbc2 of this['editor']['model']['document']['getRootNames']())_0x56c139['detachRoot'](_0x27bbc2);});}['_sortAndFilterDiffChanges'](_0x18950d){const _0x188e78=[],_0x5d2efe=new Map();for(const _0x5c500d of this['editor']['model']['document']['getRootNames']()){const _0x222482=this['editor']['editing']['view']['getDomRoot'](_0x5c500d);if(!_0x222482)continue;const _0x227e7a=_0x222482['getClientRects']()['item'](0x0);_0x227e7a&&(_0x188e78['push'](_0x5c500d),_0x5d2efe['set'](_0x5c500d,_0x227e7a));}return _0x188e78['sort']((_0x2038d2,_0x2c7f0d)=>{const _0x3b25f8=_0x5d2efe['get'](_0x2038d2),_0x349686=_0x5d2efe['get'](_0x2c7f0d);return _0x3b25f8['y']-_0x349686['y']||_0x3b25f8['x']-_0x349686['x'];}),(_0x18950d=_0x18950d['filter'](_0x53d721=>_0x188e78['includes'](_0x53d721['rootName'])))['sort']((_0x1fe1b6,_0x14df95)=>_0x188e78['indexOf'](_0x1fe1b6['rootName'])-_0x188e78['indexOf'](_0x14df95['rootName'])),_0x18950d;}['_makeTape'](_0x2db318){const _0x156b3e=Array['from'](_0x2db318['markers'])['filter'](([_0x2508ad,_0x2d5551])=>_0x2508ad['startsWith']('revision:')&&!_0x2d5551['isCollapsed']),_0x233f9a=Array['from'](this['editor']['model']['createRangeIn'](_0x2db318)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x156b3e['length'])for(const _0x19bac4 of _0x233f9a){const [_0x3efa8f,_0x50edaf]=_0x156b3e[0x0],[,_0x49c0f7,_0x43ab35]=_0x3efa8f['split'](':');if(_0x50edaf['end']['isEqual'](_0x19bac4['nextPosition'])&&_0x156b3e['shift'](),(_0x19bac4['previousPosition']['isEqual'](_0x50edaf['start'])||_0x19bac4['previousPosition']['isAfter'](_0x50edaf['start']))&&('insertion'==_0x49c0f7?_0x19bac4['isAdded']={'userId':_0x43ab35}:'deletion'==_0x49c0f7&&(_0x19bac4['isRemoved']={'userId':_0x43ab35})),0x0==_0x156b3e['length'])break;}return _0x233f9a;}['_refreshStartEndIndex'](_0x2d7794){const _0x263d0d=new Map();for(let _0x213835=0x0;_0x213835<_0x2d7794['length'];_0x213835++)'text'===_0x2d7794[_0x213835]['type']?(_0x2d7794[_0x213835]['item']['startIndex']=_0x213835,_0x2d7794[_0x213835]['item']['endIndex']=_0x213835):('elementStart'===_0x2d7794[_0x213835]['type']?_0x2d7794[_0x213835]['item']['startIndex']=_0x213835:'elementEnd'===_0x2d7794[_0x213835]['type']&&(_0x2d7794[_0x213835]['item']['endIndex']=_0x213835),_0x263d0d['set'](_0x2d7794[_0x213835]['id'],_0x213835));for(const _0x46fddc of _0x263d0d['values']())'elementStart'===_0x2d7794[_0x46fddc]['type']?_0x2d7794[_0x46fddc]['item']['endIndex']=_0x263d0d['get'](_0x2d7794[_0x46fddc]['pairId']):'elementEnd'===_0x2d7794[_0x46fddc]['type']&&(_0x2d7794[_0x46fddc]['item']['startIndex']=_0x263d0d['get'](_0x2d7794[_0x46fddc]['pairId']));}['_processTape'](_0x224757){for(let _0x12c20b=0x0;_0x12c20b<_0x224757['length'];_0x12c20b++){if('elementStart'===_0x224757[_0x12c20b]['type'])_0x224757[_0x12c20b]['item']['startIndex']=_0x12c20b;else{if('elementEnd'===_0x224757[_0x12c20b]['type']){_0x224757[_0x12c20b]['item']['endIndex']=_0x12c20b;const _0x23f6e2=_0x224757[_0x12c20b]['item']['startIndex'];_0x224757[_0x23f6e2]['pairId']=_0x224757[_0x12c20b]['id'],_0x224757[_0x12c20b]['pairId']=_0x224757[_0x23f6e2]['id'];}else _0x224757[_0x12c20b]['item']['startIndex']=_0x12c20b,_0x224757[_0x12c20b]['item']['endIndex']=_0x12c20b,_0x224757[_0x12c20b]['pairId']=null;}_0x224757[_0x12c20b]['markersStart']||(_0x224757[_0x12c20b]['markersStart']=[],_0x224757[_0x12c20b]['markersEnd']=[]);}}['_markInsertions'](_0x4b85fd,_0x52daa7){const _0x2d8911=_0x4b85fd['filter'](_0xd1a7e9=>!_0xd1a7e9['isAdded']);for(let _0x1afdf8=0x0;_0x1afdf8<_0x52daa7['length'];_0x1afdf8++)_0x52daa7[_0x1afdf8]['isAdded']&&(_0x2d8911[_0x1afdf8]['isAdded']=_0x52daa7[_0x1afdf8]['isAdded']);}['_getDiff'](_0x325030,_0x1c2f37=null){const _0x57f6da=this['repository']['getRevision'](_0x325030),_0x21d5f1=_0x1c2f37?this['repository']['getRevision'](_0x1c2f37):null,_0x5a6acd=this['_getRevisionsRange'](_0x57f6da,_0x21d5f1),_0x48ca6a=_0x5a6acd[_0x5a6acd['length']-0x1],_0x56386a=new Map(),_0x1cdfaf={'model':{},'attributes':{},'changes':[]},_0x2b6e6c=new Set(),_0x3ae31c=new Map();for(let _0x48fb7b=_0x5a6acd['length']-0x1;_0x48fb7b>=0x0;_0x48fb7b--){const _0x5e1b3e=_0x5a6acd[_0x48fb7b];for(const _0x1aa545 of Object['keys'](_0x5e1b3e['diffData']))if(_0x5e1b3e['diffData'][_0x1aa545]['attachChange']){const _0x5f8846=_0x5e1b3e['diffData'][_0x1aa545]['attachChange'];_0x5f8846['isAttached']?(_0x2b6e6c['add'](_0x1aa545),_0x3ae31c['has'](_0x1aa545)&&_0x3ae31c['get'](_0x1aa545)['userId']==_0x5f8846['userId']?_0x3ae31c['delete'](_0x1aa545):_0x3ae31c['set'](_0x1aa545,_0x5f8846)):_0x3ae31c['has'](_0x1aa545)?(_0x2b6e6c['delete'](_0x1aa545),_0x3ae31c['delete'](_0x1aa545)):(_0x2b6e6c['add'](_0x1aa545),_0x3ae31c['set'](_0x1aa545,_0x5f8846));}else _0x2b6e6c['add'](_0x1aa545);}for(const _0x40b44d of _0x2b6e6c){const _0xcd46a1=_0x3ae31c['has'](_0x40b44d)&&!_0x3ae31c['get'](_0x40b44d)['isAttached'];let _0x4f7b11=_0xcd46a1?_0x5a6acd['length']-0x1:0x0;const _0xdd1639=_0xcd46a1?-0x1:0x1;for(;_0x5a6acd[_0x4f7b11];){const _0x580d3a=_0x5a6acd[_0x4f7b11];if(_0x580d3a['diffData'][_0x40b44d]){const _0x195e16=_0xcd46a1?_0x580d3a['diffData'][_0x40b44d]['attributesBefore']:_0x580d3a['diffData'][_0x40b44d]['attributesAfter'];_0x1cdfaf['attributes'][_0x40b44d]=_0x195e16?_0x14f7a4(_0x195e16):{};break;}_0x4f7b11+=_0xdd1639;}}for(const _0xb68349 of _0x5a6acd){_0xb68349['model']={};for(const _0x13798b of _0xb68349['authors'])_0x56386a['set'](_0x13798b['id'],_0x13798b);for(const _0x63131d of _0x2b6e6c){const _0x2b0543=_0xb68349['diffData'][_0x63131d]?_0xb68349['diffData'][_0x63131d]['insertions']:'[]',_0x377608=_0xb68349['diffData'][_0x63131d]?_0xb68349['diffData'][_0x63131d]['deletions']:'[]';_0xb68349['model'][_0x63131d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2b0543),'deletions':this['_utils']['_makeModelFromViewString'](_0x377608)};}}for(const _0x30953d of _0x2b6e6c){let _0x41dec5=null,_0x3b02fc=0x0;const _0x1f3a71=new Map(Array['from'](_0x57f6da['model'][_0x30953d]['insertions']['markers'])['filter'](([_0x2e58d7])=>!_0x2e58d7['startsWith']('revision:')));let _0xea96b6=0x0;for(const _0x5c8f43 of _0x5a6acd){const _0x8846ba=this['_makeTape'](_0x5c8f43['model'][_0x30953d]['insertions']);_0x5c8f43==_0x57f6da?(_0x41dec5=_0x8846ba,_0x3b02fc=_0x41dec5['length'],_0x41dec5['forEach'](_0x33720d=>{_0x33720d['id']=_0xea96b6++;}),this['_processTape'](_0x41dec5)):this['_markInsertions'](_0x41dec5,_0x8846ba);const _0x561844=_0x41dec5['filter'](_0xa29d1d=>!_0xa29d1d['isAdded'])['map'](_0x4436d8=>_0x4436d8['id']);let _0x5e931f=0x0;const _0x49d57a=this['_makeTape'](_0x5c8f43['model'][_0x30953d]['deletions']);_0x49d57a['forEach'](_0x5ceb29=>{_0x5ceb29['isRemoved']?_0x5ceb29['id']=_0x3b02fc++:_0x5ceb29['id']=_0x561844[_0x5e931f++];}),this['_processTape'](_0x49d57a),this['_setDistance'](_0x41dec5,'isAdded'),this['_setDistance'](_0x49d57a,'isRemoved'),_0x5c8f43==_0x57f6da&&this['_markMarkers'](_0x41dec5,_0x1f3a71),_0x41dec5=this['_joinTapes'](_0x41dec5,_0x49d57a),this['_refreshStartEndIndex'](_0x41dec5),this['_setDistance'](_0x41dec5,'isRemoved');}_0x41dec5=_0x41dec5['filter'](_0x3aa447=>!(_0x3aa447['isAdded']&&_0x3aa447['isRemoved']));const _0x5b5312=new Map(_0x48ca6a['model'][_0x30953d]['deletions']['markers']),_0x592234=new Set(_0x1f3a71['keys']());for(const _0x245570 of _0x5b5312['keys']())_0x592234['delete'](_0x245570);this['_markSuggestions'](_0x41dec5,_0x592234),this['_fixObsoleteTags'](_0x41dec5),_0x41dec5=this['_removeMissingPairs'](_0x41dec5),_0x41dec5=this['_markMismatchedRemovedTags'](_0x41dec5),_0x41dec5=this['_removeUnsupportedChanges'](_0x41dec5);const {root:_0x5b4fff,changes:_0xf2ce6e}=this['_makeModelFromTape'](_0x41dec5,_0x56386a,_0x30953d);_0x1cdfaf['model'][_0x30953d]=_0x5b4fff;const _0x4ca572=_0x3ae31c['get'](_0x30953d);if(_0x4ca572){const _0x53ef5c=_0x56386a['get'](_0x4ca572['userId']),_0x4a3505=new r({'author':_0x53ef5c,'type':_0x4ca572['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x30953d});_0xf2ce6e['unshift'](_0x4a3505),_0x1cdfaf['attributes'][_0x30953d]['revisionHistoryAttachChange']=_0x4a3505['id'];}_0x1cdfaf['changes']=_0x1cdfaf['changes']['concat'](_0xf2ce6e);}return _0x1cdfaf;}['_markMarkers'](_0x215706,_0x3e7feb){for(let _0x256a81=0x0;_0x256a81<_0x215706['length'];_0x256a81++)for(const [_0x8fbad7,_0x5876a1]of _0x3e7feb)!_0x5876a1['isCollapsed']&&_0x5876a1['start']['isEqual'](_0x215706[_0x256a81]['previousPosition'])&&_0x215706[_0x256a81]['markersStart']['push'](_0x8fbad7),_0x5876a1['end']['isEqual'](_0x215706[_0x256a81]['nextPosition'])&&_0x215706[_0x256a81]['markersEnd']['push'](_0x8fbad7);}['_joinTapes'](_0x2800de,_0x28fd93){let _0x102b01=[],_0x1d1fa7=0x0,_0x676389=0x0;for(;_0x1d1fa7<_0x2800de['length']||_0x676389<_0x28fd93['length'];){const _0x42a321=_0x2800de[_0x1d1fa7]||{},_0x4af6ac=_0x28fd93[_0x676389]||{};if(_0x42a321['id']==_0x4af6ac['id'])_0x1d1fa7++,_0x676389++,_0x102b01['push'](_0x42a321);else{if(_0x4af6ac['isRemoved']&&_0x42a321['isAdded']){const {commonTape:_0x26a093,iEnd:_0x4544ed,jEnd:_0x538e72}=this['_threeWayMerge'](_0x2800de,_0x1d1fa7,_0x28fd93,_0x676389);_0x102b01=_0x102b01['concat'](_0x26a093),_0x1d1fa7=_0x4544ed,_0x676389=_0x538e72;}else _0x4af6ac['isRemoved']?(_0x676389++,_0x102b01['push'](_0x4af6ac)):(_0x1d1fa7++,_0x102b01['push'](_0x42a321));}}return _0x102b01;}['_markSuggestions'](_0x50e50b,_0x39f2a2){const _0x28ee9c=[];for(let _0x1ba38d=0x0;_0x1ba38d<_0x50e50b['length'];_0x1ba38d++){for(let _0x135cfb=0x0;_0x135cfb<_0x50e50b[_0x1ba38d]['markersStart']['length'];_0x135cfb++){const _0x424af8=_0x50e50b[_0x1ba38d]['markersStart'][_0x135cfb];if(!_0x39f2a2['has'](_0x424af8))continue;const {group:_0x516e3c,type:_0xc11cb9,authorId:_0x251d6d}=_0x446c5a(_0x424af8);'revision-suggestion'!=_0x516e3c||'insertion'!=_0xc11cb9&&'deletion'!=_0xc11cb9||(_0x28ee9c['unshift']({'type':_0xc11cb9,'name':_0x424af8,'userId':_0x251d6d}),_0x50e50b[_0x1ba38d]['markersStart']['splice'](_0x135cfb,0x1),_0x135cfb--);}_0x30f1af(_0x50e50b[_0x1ba38d]);for(let _0x2d44c5=0x0;_0x2d44c5<_0x50e50b[_0x1ba38d]['markersEnd']['length'];_0x2d44c5++){const _0x1cffe4=_0x50e50b[_0x1ba38d]['markersEnd'][_0x2d44c5];if(!_0x39f2a2['has'](_0x1cffe4))continue;const {group:_0x19e541,type:_0x58aceb}=_0x446c5a(_0x1cffe4);if('revision-suggestion'!=_0x19e541||'insertion'!=_0x58aceb&&'deletion'!=_0x58aceb)continue;_0x50e50b[_0x1ba38d]['markersEnd']['splice'](_0x2d44c5,0x1),_0x2d44c5--;const _0x22053b=_0x28ee9c['findIndex'](_0x47ef32=>_0x47ef32['name']==_0x1cffe4);_0x22053b>-0x1&&_0x28ee9c['splice'](_0x22053b,0x1);}}function _0x446c5a(_0x5e5ffc){const _0x183dec=_0x5e5ffc['split'](':');return{'group':_0x183dec[0x0],'type':_0x183dec[0x1],'subType':_0x183dec['length']>=0x5?_0x183dec[0x2]:null,'id':_0x183dec['length']<0x5?_0x183dec[0x2]:_0x183dec[0x3],'authorId':_0x183dec['length']<0x5?_0x183dec[0x3]:_0x183dec[0x4],'markerCount':0x6==_0x183dec['length']?_0x183dec[0x5]:null};}function _0x30f1af(_0x49fd60){for(let _0x515b1b=0x0;_0x515b1b<_0x28ee9c['length'];_0x515b1b++){if(_0x49fd60['isAdded']&&'insertion'==_0x28ee9c[_0x515b1b]['type']&&_0x49fd60['isAdded']['userId']==_0x28ee9c[_0x515b1b]['userId'])return _0x49fd60['isAddSuggestion']=_0x28ee9c[_0x515b1b],void delete _0x49fd60['isAdded'];if(!_0x49fd60['isAdded']&&!_0x49fd60['isRemoved']&&'deletion'==_0x28ee9c[_0x515b1b]['type'])return void(_0x49fd60['isRemoveSuggestion']=_0x28ee9c[_0x515b1b]);}}}['_setDistance'](_0x4b94bc,_0x72d42c){let _0x204ab6=0x0,_0x4f260c=!0x1;const _0x55f9bd=new Map();for(const _0x1a012c of _0x4b94bc)_0x1a012c[_0x72d42c]?_0x4f260c&&(_0x204ab6++,_0x4f260c=!0x1):(_0x204ab6++,_0x4f260c=!0x0),_0x55f9bd['set'](_0x1a012c['id'],_0x204ab6);for(let _0x593ed9=0x0;_0x593ed9<_0x4b94bc['length'];_0x593ed9++){if('isRemoved'==_0x72d42c&&_0x4b94bc[_0x593ed9]['isAdded']||'isAdded'==_0x72d42c&&_0x4b94bc[_0x593ed9]['isRemoved'])continue;if('text'==_0x4b94bc[_0x593ed9]['type']){_0x4b94bc[_0x593ed9]['distance']=0x0;continue;}const _0x1ccb6e=_0x55f9bd['get'](_0x4b94bc[_0x593ed9]['pairId']),_0x37b907=_0x55f9bd['get'](_0x4b94bc[_0x593ed9]['id']);_0x4b94bc[_0x593ed9]['distance']=_0x1ccb6e-_0x37b907;}}['_getRevisionsRange'](_0x244f69,_0x5c2b9e,_0x48f5cc=!0x1){const _0x4b52f7=[];let _0x42f173=this['repository']['getIndex'](_0x244f69),_0xd3b695=this['repository']['getIndex'](_0x5c2b9e);for(-0x1==_0xd3b695&&(_0xd3b695=this['repository']['_revisions']['length'],_0x48f5cc=!0x1);_0x42f173<_0xd3b695;)_0x4b52f7['push'](this['repository']['getRevision'](_0x42f173)),_0x42f173++;return _0x48f5cc&&_0x4b52f7['push'](this['repository']['getRevision'](_0x42f173)),_0x4b52f7;}['_threeWayMerge'](_0x5ea399,_0x38b484,_0x50b78,_0x1eaf60){const _0x5a522c=this['editor']['model']['schema'];let _0x210594=_0x38b484;for(;_0x5ea399[_0x210594]&&_0x5ea399[_0x210594]['isAdded'];)_0x210594++;let _0x2b0e4a=_0x1eaf60;for(;_0x50b78[_0x2b0e4a]&&_0x50b78[_0x2b0e4a]['isRemoved'];)_0x2b0e4a++;_0x41167c(_0x5ea399,_0x38b484,_0x210594),_0x41167c(_0x50b78,_0x1eaf60,_0x2b0e4a);const _0x520a1d=_0x50b78['slice'](_0x1eaf60,_0x2b0e4a)['concat'](_0x5ea399['slice'](_0x38b484,_0x210594));return _0x520a1d['sort']((_0x2004eb,_0xee0516)=>_0x2004eb['side']!=_0xee0516['side']?_0x2004eb['side']-_0xee0516['side']:_0x2004eb['level']!=_0xee0516['level']?_0x2004eb['level']-_0xee0516['level']:_0x2004eb['distance']!=_0xee0516['distance']?_0xee0516['distance']-_0x2004eb['distance']:!!_0x2004eb['isAdded']!=!!_0xee0516['isAdded']?-0x1==_0x2004eb['side']||0x0==_0x2004eb['side']?_0x2004eb['isAdded']?-0x1:0x1:_0x2004eb['isAdded']?0x1:-0x1:_0x2004eb['index']-_0xee0516['index']),{'commonTape':_0x520a1d,'iEnd':_0x210594,'jEnd':_0x2b0e4a};function _0x41167c(_0x4f41cf,_0x413fc7,_0x4b8fdf){let _0x3a684d=-0x1,_0x1c138e=Number['POSITIVE_INFINITY'],_0x340cba=!0x0;for(let _0x512df8=_0x413fc7;_0x512df8<_0x4b8fdf;_0x512df8++)if(_0x5a522c['isInline'](_0x4f41cf[_0x512df8]['item'])||(_0x340cba=!0x1),_0x4f41cf[_0x512df8]['item']['startIndex']<_0x413fc7&&(_0x3a684d=_0x512df8),_0x4f41cf[_0x512df8]['item']['endIndex']>=_0x4b8fdf){_0x1c138e=_0x512df8;break;}_0x340cba&&(_0x3a684d=_0x4b8fdf-0x1);for(let _0x11cb05=_0x413fc7;_0x11cb05<_0x4b8fdf;_0x11cb05++)_0x4f41cf[_0x11cb05]['side']=_0x11cb05<=_0x3a684d?-0x1:_0x11cb05<_0x1c138e?0x0:0x1,_0x4f41cf[_0x11cb05]['index']=_0x11cb05;let _0x174305=0x0;for(let _0x54f041=_0x413fc7;_0x54f041<=_0x3a684d;_0x54f041++)0x0==_0x4f41cf[_0x54f041]['distance']?_0x4f41cf[_0x54f041]['level']=_0x174305:(_0x174305++,_0x4f41cf[_0x54f041]['level']=_0x174305,_0x174305++);for(let _0x2003bf=_0x413fc7;_0x2003bf<_0x4b8fdf;_0x2003bf++)0x0==_0x4f41cf[_0x2003bf]['side']&&(_0x4f41cf[_0x2003bf]['level']=_0x174305);_0x174305=0x0;for(let _0x25d4a6=_0x4b8fdf-0x1;_0x25d4a6>=_0x1c138e;_0x25d4a6--)0x0==_0x4f41cf[_0x25d4a6]['distance']?_0x4f41cf[_0x25d4a6]['level']=_0x174305:(_0x174305--,_0x4f41cf[_0x25d4a6]['level']=_0x174305,_0x174305--);}}['_fixObsoleteTags'](_0x28926d){const _0x596085=new Map(),_0x56dc11=this['editor']['model']['schema'];for(let _0x44e567=0x1;_0x44e567<_0x28926d['length'];_0x44e567++){let _0xe7aa7e,_0x4e490a,_0x3c5034;const _0x4c5b23=_0x28926d[_0x44e567],_0x2f289f=_0x28926d[_0x44e567-0x1];if('text'==_0x4c5b23['type'])continue;if(_0x4c5b23['type']!=_0x2f289f['type'])continue;if(!_0x56dc11['isBlock'](_0x2f289f['item'])||_0x56dc11['isLimit'](_0x2f289f['item']))continue;if(!_0x56dc11['isBlock'](_0x4c5b23['item'])||_0x56dc11['isLimit'](_0x4c5b23['item']))continue;if((_0x28926d[_0x44e567]['isAdded']||_0x28926d[_0x44e567]['isAddSuggestion'])&&_0x28926d[_0x44e567-0x1]['isRemoved'])_0xe7aa7e=_0x28926d[_0x44e567],_0x4e490a=_0x28926d[_0x44e567-0x1],_0x3c5034=_0x44e567-0x1;else{if(!_0x28926d[_0x44e567]['isRemoved']||!_0x28926d[_0x44e567-0x1]['isAdded']&&!_0x28926d[_0x44e567-0x1]['isAddSuggestion'])continue;_0xe7aa7e=_0x28926d[_0x44e567-0x1],_0x4e490a=_0x28926d[_0x44e567],_0x3c5034=_0x44e567;}const _0x22bb02=_0xe7aa7e['level']==_0x4e490a['level'],_0x72d5d1=Math['abs'](_0xe7aa7e['level'])<Math['abs'](_0x4e490a['level'])&&0x0==_0x4e490a['distance'];(_0x22bb02||_0x72d5d1)&&(_0x596085['set'](_0x4e490a['id'],_0xe7aa7e['id']),_0x28926d['splice'](_0x3c5034,0x1),_0x44e567--,_0xe7aa7e['isAdded']=!0x1);}for(let _0x16cc6d=0x0;_0x16cc6d<_0x28926d['length'];_0x16cc6d++)_0x596085['has'](_0x28926d[_0x16cc6d]['pairId'])&&(_0x28926d[_0x16cc6d]['pairId']=_0x596085['get'](_0x28926d[_0x16cc6d]['pairId']));}['_removeMissingPairs'](_0x21ffd4){const _0x197e8f=new Set(_0x21ffd4['map'](_0x31c3c5=>_0x31c3c5['id']));for(let _0x1864ab=0x0;_0x1864ab<_0x21ffd4['length'];_0x1864ab++)_0x197e8f['has'](_0x21ffd4[_0x1864ab]['pairId'])||0x0==_0x21ffd4[_0x1864ab]['distance']||(_0x21ffd4[_0x1864ab]['isIncorrect']=!0x0);return _0x21ffd4['filter'](_0x297fc1=>!_0x297fc1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x571fa4){const _0x113dea=new Set();for(let _0xdb3514=0x0;_0xdb3514<_0x571fa4['length'];_0xdb3514++){if(_0x113dea['has'](_0x571fa4[_0xdb3514]['id'])&&_0x571fa4[_0xdb3514]['isRemoved']&&(_0x571fa4[_0xdb3514]['isIncorrect']=!0x0),_0x571fa4[_0xdb3514]['isIncorrect'])continue;if(0x0==_0x571fa4[_0xdb3514]['distance'])continue;if('elementStart'!=_0x571fa4[_0xdb3514]['type'])continue;if(null==_0x571fa4[_0xdb3514]['pairId'])continue;let _0x5828f4=_0xdb3514+0x1,_0x350272=0x0;for(;_0x571fa4[_0x5828f4]['id']!=_0x571fa4[_0xdb3514]['pairId'];)'elementStart'==_0x571fa4[_0x5828f4]['type']?_0x350272++:'elementEnd'==_0x571fa4[_0x5828f4]['type']&&_0x350272--,_0x5828f4++;if(0x0!=_0x350272){if(_0x571fa4[_0xdb3514]['isRemoved'])_0x571fa4[_0xdb3514]['isIncorrect']=!0x0;else{for(;_0x5828f4!=_0xdb3514;)_0x571fa4[_0x5828f4]['isRemoved']&&0x0!=_0x571fa4[_0x5828f4]['distance']&&(_0x571fa4[_0x5828f4]['isIncorrect']=!0x0,_0x113dea['add'](_0x571fa4[_0x5828f4]['pairId'])),_0x5828f4--;}}}return _0x571fa4['filter'](_0x159a25=>!_0x159a25['isIncorrect']);}['_removeUnsupportedChanges'](_0x5dc6f3){const _0x420473=this['editor']['model']['schema'];for(let _0x267b50=0x0;_0x267b50<_0x5dc6f3['length'];_0x267b50++){if(!(_0x5dc6f3[_0x267b50]['isAdded']||_0x5dc6f3[_0x267b50]['isAddSuggestion']||_0x5dc6f3[_0x267b50]['isRemoved']||_0x5dc6f3[_0x267b50]['isRemoveSuggestion']))continue;if(0x0==_0x5dc6f3[_0x267b50]['distance'])continue;const _0x34c3d0=_0x5dc6f3[_0x267b50]['item'];_0x420473['isBlock'](_0x34c3d0)||_0x420473['isLimit'](_0x34c3d0)||(_0x5dc6f3[_0x267b50]['isAdded']&&delete _0x5dc6f3[_0x267b50]['isAdded'],_0x5dc6f3[_0x267b50]['isAddSuggestion']&&delete _0x5dc6f3[_0x267b50]['isAddSuggestion'],_0x5dc6f3[_0x267b50]['isRemoveSuggestion']&&delete _0x5dc6f3[_0x267b50]['isRemoveSuggestion'],_0x5dc6f3[_0x267b50]['isRemoved']&&(_0x5dc6f3[_0x267b50]['isIncorrect']=!0x0));}return _0x5dc6f3['filter'](_0x41d890=>!_0x41d890['isIncorrect']);}['_makeModelFromTape'](_0x5ef72b,_0x2fdd5a,_0x2d1eec){const _0x5d041d=new vt(),_0x4e2f8d=[],_0x1571c7=new Map(),_0x333282=this['editor']['model'],_0x284751=_0x333282['schema'],_0x5f3816=[_0x5d041d],_0x867aad={},_0x339b96={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x464d73=null;const _0x5dc7f3=[0x0];for(let _0x2121ed=0x0;_0x2121ed<_0x5ef72b['length'];_0x2121ed++)if('elementStart'===_0x5ef72b[_0x2121ed]['type']){_0x5ef72b[_0x2121ed]['previousPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3);const _0x29f04e=new ut(_0x5ef72b[_0x2121ed]['item']['name'],_0x5ef72b[_0x2121ed]['item']['getAttributes']());_0x5f3816[0x0]['_appendChild'](_0x29f04e),_0x5dc7f3['push'](0x0),_0x5f3816['unshift'](_0x29f04e),_0x5ef72b[_0x2121ed]['nextPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3);}else'elementEnd'===_0x5ef72b[_0x2121ed]['type']?(_0x5f3816['shift'](),_0x5ef72b[_0x2121ed]['previousPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3),_0x5dc7f3['pop'](),_0x5dc7f3[_0x5dc7f3['length']-0x1]++,_0x5ef72b[_0x2121ed]['nextPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3)):(_0x5ef72b[_0x2121ed]['previousPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3),_0x464d73?_0x464d73['_data']+=_0x5ef72b[_0x2121ed]['item']['data']:_0x464d73=new gt(_0x5ef72b[_0x2121ed]['item']['data'],_0x5ef72b[_0x2121ed]['item']['getAttributes']()),_0x5ef72b[_0x2121ed+0x1]&&'text'===_0x5ef72b[_0x2121ed+0x1]['type']&&_0x357613(_0x464d73,_0x5ef72b[_0x2121ed+0x1]['item'])||(_0x5f3816[0x0]['_appendChild'](_0x464d73),_0x464d73=null),_0x5dc7f3[_0x5dc7f3['length']-0x1]+=_0x5ef72b[_0x2121ed]['item']['offsetSize'],_0x5ef72b[_0x2121ed]['nextPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3));for(let _0x5df286=0x0;_0x5df286<_0x5ef72b['length'];_0x5df286++){const _0x531f1f=_0x5ef72b[_0x5df286]['previousPosition'],_0x37c92d=_0x5ef72b[_0x5df286]['nextPosition'];for(const _0x2ee407 of _0x5ef72b[_0x5df286]['markersStart'])_0x1571c7['set'](_0x2ee407,{'start':_0x531f1f,'end':null});_0x235cd2('isRemoveSuggestion',_0x5df286,_0x531f1f,_0x37c92d),_0x235cd2('isAddSuggestion',_0x5df286,_0x531f1f,_0x37c92d),_0x235cd2('isRemoved',_0x5df286,_0x531f1f,_0x37c92d),_0x235cd2('isAdded',_0x5df286,_0x531f1f,_0x37c92d);for(const _0x454a77 of _0x5ef72b[_0x5df286]['markersEnd']){const _0x3d7f87=_0x1571c7['get'](_0x454a77);_0x3d7f87?_0x3d7f87['end']=_0x37c92d:_0x1571c7['set'](_0x454a77,{'start':_0x37c92d,'end':_0x37c92d});}}for(const [_0xf5a362,_0xfecea8]of _0x1571c7){const _0x1b26a8=this['editor']['model']['createRange'](_0xfecea8['start'],_0xfecea8['end']);_0x5d041d['markers']['set'](_0xf5a362,_0x1b26a8);}return _0x4e2f8d['sort']((_0xc85694,_0x1fd901)=>{const _0x5834ef=_0x5d041d['markers']['get']('revision:'+_0xc85694['id']),_0x2ae142=_0x5d041d['markers']['get']('revision:'+_0x1fd901['id']);return _0x5834ef['start']['isBefore'](_0x2ae142['start'])?-0x1:_0x5834ef['start']['isAfter'](_0x2ae142['start'])?0x1:_0x5834ef['end']['isBefore'](_0x2ae142['end'])?-0x1:_0x5834ef['end']['isAfter'](_0x2ae142['end'])?0x1:'add'===_0xc85694['type']?-0x1:0x1;}),{'root':_0x5d041d,'changes':_0x4e2f8d};function _0x235cd2(_0x349605,_0x4d37b1,_0x2bd94c,_0x467d26){const _0x5a1f2e=!!_0x5ef72b[_0x4d37b1][_0x349605],_0x3ef60e=_0x5a1f2e?_0x5ef72b[_0x4d37b1][_0x349605]['userId']:null,_0xf78a01=_0x4d37b1===_0x5ef72b['length']-0x1,_0x32b57e=_0x339b96[_0x349605][0x0],_0xeb73dc=_0x284751['isObject'](_0x5ef72b[_0x4d37b1]['item']);!_0x867aad[_0x349605]&&_0x5a1f2e?_0x867aad[_0x349605]={'start':_0x2bd94c,'tapeItem':_0x5ef72b[_0x4d37b1],'userId':_0x3ef60e,'type':_0x349605}:_0x867aad[_0x349605]&&!_0x5a1f2e?(_0x867aad[_0x349605]['end']=_0x2bd94c,_0x3d3ebd(_0x867aad[_0x349605]),_0x867aad[_0x349605]=null):_0x867aad[_0x349605]&&_0x5a1f2e&&_0x867aad[_0x349605]['userId']!==_0x3ef60e&&(_0x867aad[_0x349605]['end']=_0x2bd94c,_0x32b57e&&_0x32b57e['userId']===_0x867aad[_0x349605]['userId']||_0x3d3ebd(_0x867aad[_0x349605]),_0x867aad[_0x349605]={'start':_0x2bd94c,'tapeItem':_0x5ef72b[_0x4d37b1],'userId':_0x3ef60e,'type':_0x349605}),_0x867aad[_0x349605]&&_0xeb73dc&&('elementStart'!==_0x5ef72b[_0x4d37b1]['type']||_0x32b57e&&_0x32b57e['userId']===_0x3ef60e||_0x339b96[_0x349605]['unshift']({'userId':_0x3ef60e,'object':_0x5ef72b[_0x4d37b1]['item'],'change':_0x867aad[_0x349605]}),'elementEnd'===_0x5ef72b[_0x4d37b1]['type']&&_0x32b57e&&_0x32b57e['object']===_0x5ef72b[_0x4d37b1]['item']&&(_0x339b96[_0x349605]['shift'](),_0x867aad[_0x349605]=_0x32b57e['change'])),_0x867aad[_0x349605]&&_0xf78a01&&(_0x867aad[_0x349605]['end']=_0x467d26,_0x3d3ebd(_0x867aad[_0x349605]),_0x867aad[_0x349605]=null);}function _0x3d3ebd({start:_0xad4754,end:_0x58ca7,tapeItem:_0xf333e0,userId:_0x1f5513,type:_0x8c69b7}){const _0x58143e=_0xf333e0['item'],_0x304ccf=_0x333282['schema']['isBlock'](_0x58143e)&&!_0x333282['schema']['isLimit'](_0x58143e),_0x4c5393=_0xad4754['nodeAfter']==_0x58ca7['parent']&&_0x58ca7['isAtStart'];if(_0x304ccf&&_0x4c5393)return;const _0x170deb=_0x333282['createRange'](_0xad4754,_0x58ca7),_0x4e9b75=_0x2fdd5a['get'](_0x1f5513),_0xd38c4d=new r({'author':_0x4e9b75,'type':'isAdded'==_0x8c69b7||'isAddSuggestion'==_0x8c69b7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x8c69b7||'isRemoveSuggestion'==_0x8c69b7},'createdAt':new Date(),'rootName':_0x2d1eec});_0x4e2f8d['push'](_0xd38c4d),_0x5d041d['markers']['set']('revision:'+_0xd38c4d['id'],_0x170deb);}function _0x357613(_0x4425f9,_0x1f1b39){const _0x525d9b=_0x4425f9['getAttributes'](),_0x4c9572=_0x1f1b39['getAttributes']();for(const _0x401362 of _0x525d9b){if(_0x401362[0x1]!==_0x1f1b39['getAttribute'](_0x401362[0x0]))return!0x1;_0x4c9572['next']();}return _0x4c9572['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2fb820=>{const _0xe2c6f4=_0x2fb820['markerName']['split'](':')[0x1],_0xe41059=this['_getChangeFromId'](_0xe2c6f4);if(!_0xe41059)return null;const _0x3eaa9d='add'==_0xe41059['type']?'insertion':'deletion',_0x511c9a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3eaa9d];return _0xe41059['data']['isSuggestion']&&_0x511c9a['push']('ck-suggestion-marker-'+_0x3eaa9d+'-new'),this['activeChange']==_0xe41059&&_0x511c9a['push']('ck-suggestion-marker--active'),{'classes':_0x511c9a,'attributes':{'data-change-id':_0xe2c6f4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x728535=>{_0x728535['on']('element:pre',(_0x17417f,_0x46d782,_0x2bce85)=>{const _0x3cbff7=_0x46d782['viewItem']['getChild'](0x0);if(!_0x3cbff7||!_0x3cbff7['is']('element','code'))return;if(!_0x2bce85['consumable']['consume'](_0x3cbff7,{'attributes':['vid_start','vid_end']}))return;const _0x27fc26=_0x46d782['modelRange']['start']['nodeAfter'];_0x2bce85['writer']['setAttribute']('vid_start',_0x3cbff7['getAttribute']('vid_start'),_0x27fc26),_0x2bce85['writer']['setAttribute']('vid_end',_0x3cbff7['getAttribute']('vid_end'),_0x27fc26);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7a32f1=>{_0x7a32f1['on']('element',(_0xc7ce0e,_0x1ee8c7,_0x41955e)=>{if(!_0x41955e['consumable']['consume'](_0x1ee8c7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1ee8c7['modelRange']['isCollapsed'])return;const _0x2c2694=_0x1ee8c7['modelRange']['start']['nodeAfter'];_0x2c2694['hasAttribute']('vid_start')||_0x2c2694['hasAttribute']('vid')||(_0x41955e['writer']['setAttribute']('vid_start',_0x1ee8c7['viewItem']['getAttribute']('vid_start'),_0x2c2694),_0x41955e['writer']['setAttribute']('vid_end',_0x1ee8c7['viewItem']['getAttribute']('vid_end'),_0x2c2694));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x257e24=>_0x257e24['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x14860f,[,_0xa0b6])=>{['vid_start','vid_end','vid']['includes'](_0xa0b6)&&(_0x14860f['return']=!0x0,_0x14860f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x14ba39=>{_0x14ba39['on']('attribute:vid',(_0x34a1c5,_0x122549,_0x59b87f)=>{if('\x20'!=_0x122549['item']['data']||_0x122549['item']['parent']['maxOffset']>0x1)return;if(!_0x59b87f['consumable']['consume'](_0x122549['item'],_0x34a1c5['name']))return;const _0x33a337=_0x59b87f['writer'],_0x4cd7b8=_0x59b87f['mapper']['toViewRange'](_0x122549['range']);_0x33a337['wrap'](_0x4cd7b8,_0x33a337['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x50d391){const _0x50ac29=_0x50d391['plugins']['get']('RevisionViewer');return(_0x19b417,_0x2e84ef,_0x2192c1)=>{const _0x53651b=_0x2e84ef['markerName']['split'](':')[0x1],_0x5d54e4=_0x50ac29['_getChangeFromId'](_0x53651b);if(!_0x5d54e4)return null;const _0x55b8a2='add'==_0x5d54e4['type']?'split':'merge';if(!_0x2192c1['consumable']['test'](_0x2e84ef['markerRange'],_0x19b417['name']))return;const _0x411fbc=_0x2e84ef['markerRange']['getWalker'](),_0x34e764=_0x2e84ef['markerRange']['start'],_0x1480fd=_0x50d391['model']['schema'];let _0x1619df=null,_0x2d9b70=null,_0x109cd7=!0x1,_0x3ea6ff=!0x1;for(const _0x1b7399 of _0x411fbc){const _0x245422=_0x1b7399['item'];_0x109cd7=_0x109cd7||_0x1480fd['isContent'](_0x245422);const _0xf5b67e=_0x2192c1['mapper']['toViewElement'](_0x245422);if(_0xf5b67e&&_0xf5b67e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1b7399['type']&&(_0x1480fd['isBlock'](_0x245422)&&!_0x1480fd['isLimit'](_0x245422)&&(_0x245422['nextSibling']||_0x34e764['isAtEnd']?_0x1619df&&_0x1619df['parent']==_0x245422||(_0x1619df=_0x245422,_0x26e8e5(_0x1b7399['previousPosition']),_0x3ea6ff=!0x0):_0x2d9b70=_0x2d9b70||_0x1b7399['previousPosition']));}function _0x26e8e5(_0x4462e6){const _0xee787f=_0x2192c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55b8a2}),_0x58d45e=_0x2192c1['mapper']['toViewPosition'](_0x4462e6);_0x5d54e4['data']['isSuggestion']&&_0x2192c1['writer']['addClass']('ck-suggestion-marker-'+_0x55b8a2+'-new',_0xee787f),_0x50ac29['activeChange']==_0x5d54e4&&_0x2192c1['writer']['addClass']('ck-suggestion-marker--active',_0xee787f),_0x2192c1['writer']['insert'](_0x58d45e,_0xee787f),_0x2192c1['mapper']['bindElementToMarker'](_0xee787f,_0x2e84ef['markerName']);}_0x109cd7||_0x3ea6ff||!_0x2d9b70||_0x26e8e5(_0x2d9b70);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x526b98,_0x441fd4,_0x3f6510)=>{const _0x5980af=_0x3f6510['mapper']['markerNameToElements'](_0x441fd4['markerName']);if(_0x5980af){for(const _0x1885f8 of _0x5980af)(_0x1885f8['hasClass']('ck-suggestion-marker-split')||_0x1885f8['hasClass']('ck-suggestion-marker-merge'))&&(_0x3f6510['mapper']['unbindElementFromMarkerName'](_0x1885f8,_0x441fd4['markerName']),_0x3f6510['writer']['remove'](_0x1885f8));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x16c8b9,_0x8bfef6,_0xdeef61)=>{const _0x14594e=_0x8bfef6['markerName']['split'](':')[0x1],_0x2e3b62=this['_getChangeFromId'](_0x14594e);if(!_0x2e3b62)return null;const _0x2b3b11='add'==_0x2e3b62['type']?'split':'merge';if(_0xdeef61['consumable']['test'](_0x8bfef6['markerRange'],_0x16c8b9['name']))for(const _0x11fc2e of _0x8bfef6['markerRange']['getItems']()){if(!_0x11fc2e['is']('element','softBreak'))continue;const _0x30d3dc=_0xdeef61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b3b11}),_0x2d6c24=_0xdeef61['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x11fc2e));_0x2e3b62['data']['isSuggestion']&&_0xdeef61['writer']['addClass']('ck-suggestion-marker-'+_0x2b3b11+'-new',_0x30d3dc),this['activeChange']==_0x2e3b62&&_0xdeef61['writer']['addClass']('ck-suggestion-marker--active',_0x30d3dc),_0xdeef61['writer']['insert'](_0x2d6c24,_0x30d3dc),_0xdeef61['mapper']['bindElementToMarker'](_0x30d3dc,_0x8bfef6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x38342d=>{for(const _0x5c6042 of this['editor']['model']['document']['getRootNames']()){const _0x5a0f24=this['editor']['model']['document']['getRoot'](_0x5c6042),_0x8a59e4=this['editor']['editing']['view']['document']['getRoot'](_0x5c6042);if(_0x8a59e4){const _0x34a3e=_0x5a0f24['getAttribute']('revisionHistoryAttachChange');if(_0x38342d['removeAttribute']('data-change-id',_0x8a59e4),_0x38342d['removeClass']('ck-revision-history-root-add',_0x8a59e4),_0x38342d['removeClass']('ck-revision-history-root-remove',_0x8a59e4),_0x38342d['removeClass']('ck-revision-history-root--active',_0x8a59e4),_0x34a3e){const _0x3e3eae=this['_getChangeFromId'](_0x34a3e);if(!_0x3e3eae)return null;_0x38342d['setAttribute']('data-change-id',_0x34a3e,_0x8a59e4),_0x38342d['addClass']('ck-revision-history-root-'+_0x3e3eae['type'],_0x8a59e4),this['activeChange']==_0x3e3eae&&_0x38342d['addClass']('ck-revision-history-root--active',_0x8a59e4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x49c668=>'revision-comment:'+_0x49c668,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5447c5=>'revision-suggestion:'+_0x5447c5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x29cfd0=>({'name':'suggestion:'+_0x29cfd0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1cc4fe=>{const _0x2416ab=_0x1cc4fe['markerName']['split'](':')[0x1];return'insertion'!=_0x2416ab&&'deletion'!=_0x2416ab?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2416ab]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x13e7b9,_0x1e1b00,_0x5b76aa)=>{const _0x485711=_0x5b76aa['mapper']['markerNameToElements'](_0x1e1b00['markerName']);if(_0x485711){for(const _0x3d93ad of _0x485711)_0x3d93ad['is']('uiElement')&&(_0x5b76aa['mapper']['unbindElementFromMarkerName'](_0x3d93ad,_0x1e1b00['markerName']),_0x5b76aa['writer']['remove'](_0x3d93ad));}},{'priority':'high'});}['_getChangeFromId'](_0x1cd858){return this['_changeIdToChange']['get'](_0x1cd858);}['_getViewForChange'](_0x37455f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x37455f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x74fe9d,_0x28db9f,_0x4cc3ef,_0x3089f4)=>{_0x3089f4&&this['_balloon']['remove'](_0x3089f4),_0x4cc3ef&&(this['_balloon']['add']({'view':_0x4cc3ef,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x448659=this['editor']['editing'],_0x5122ce=this['_getChangeFromId'](_0x4cc3ef['changeId']);let _0x40c0db;if(_0x5122ce['data']['isOnRoot']){const _0x5300b8=_0x448659['view']['getDomRoot'](_0x5122ce['rootName']);_0x40c0db=Array['from'](_0x5300b8['getClientRects']());}else{const _0x4c3b9c=this['editor']['model']['markers']['get']('revision:'+_0x4cc3ef['changeId']);_0x40c0db=Array['from'](_0x448659['mapper']['markerNameToElements'](_0x4c3b9c['name']))['map'](_0x1ee0e6=>_0x448659['view']['domConverter']['mapViewToDom'](_0x1ee0e6))['map'](_0x5f3924=>Array['from'](_0x5f3924['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x40c0db[0x0];return _0x40c0db['find'](_0x50f44c=>_0x50f44c['top']-0x3<=this['_activeViewTarget']['y']&&_0x50f44c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x50f44c['left']-0x3<=this['_activeViewTarget']['x']&&_0x50f44c['right']+0x3>=this['_activeViewTarget']['x'])||_0x40c0db[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2d6463,_0x5d3b82,_0x43ada8,_0x28468c)=>{this['activeView']=_0x43ada8?this['_getViewForChange'](_0x43ada8):null,this['editor']['model']['change'](()=>{const _0x91f2b1=this['editor']['editing'];_0x28468c&&(_0x28468c['data']['isOnRoot']?_0x91f2b1['view']['change'](_0x37eb12=>{_0x37eb12['removeClass']('ck-revision-history-root--active',_0x91f2b1['view']['document']['getRoot'](_0x28468c['rootName']));}):_0x91f2b1['reconvertMarker']('revision:'+_0x28468c['id'])),_0x43ada8&&(_0x43ada8['data']['isOnRoot']?_0x91f2b1['view']['change'](_0x34f245=>{_0x34f245['addClass']('ck-revision-history-root--active',_0x91f2b1['view']['document']['getRoot'](_0x43ada8['rootName']));}):_0x91f2b1['reconvertMarker']('revision:'+_0x43ada8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x781783,_0x22875e)=>{if(this['activeChange'])return;const _0x4663d7=this['_findChangeIdFromDomTarget'](_0x22875e['target']),_0x352731=this['_changeIdToChange']['get'](_0x4663d7);_0x352731?(this['_activeViewTarget']={'x':_0x22875e['domEvent']['x'],'y':_0x22875e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x352731)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x506a46,_0x4c5ef2)=>{const _0x5df348=this['_findChangeIdFromDomTarget'](_0x4c5ef2['target']),_0x4452dc=this['_changeIdToChange']['get'](_0x5df348);_0x4452dc?(this['_activeViewTarget']={'x':_0x4c5ef2['domEvent']['x'],'y':_0x4c5ef2['domEvent']['y']},_0x4452dc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4452dc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x49bb19){do{const _0x27c908=_0x49bb19['getAttribute']('data-change-id');if(_0x27c908)return _0x27c908;_0x49bb19=_0x49bb19['parent'];}while(_0x49bb19);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x28992f=>{for(const _0x2e073c of this['editor']['model']['markers'])_0x28992f['removeMarker'](_0x2e073c);});}}function X(_0xfb999e,_0x4279b5){return(_0xefba4f,_0x440038,_0x1b6cc6)=>{if(!_0x1b6cc6['consumable']['test'](_0x440038['markerRange'],_0xefba4f['name']))return;const _0x4750c9=_0x440038['markerRange']['getWalker'](),_0x147ccf=_0x440038['markerRange']['start'],_0x137ac1=_0xfb999e['model']['schema'];let _0xc872c7=null,_0x825fb8=null,_0x451f74=!0x1,_0x1a4f82=!0x1;for(const _0x5a9771 of _0x4750c9){const _0x31b7cd=_0x5a9771['item'];_0x451f74=_0x451f74||_0x137ac1['isContent'](_0x31b7cd);const _0x2200b4=_0x1b6cc6['mapper']['toViewElement'](_0x31b7cd);if(_0x2200b4&&_0x2200b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a9771['type']&&(_0x137ac1['isBlock'](_0x31b7cd)&&!_0x137ac1['isLimit'](_0x31b7cd)&&(_0x31b7cd['nextSibling']||_0x147ccf['isAtEnd']?_0xc872c7&&_0xc872c7['parent']==_0x31b7cd||(_0xc872c7=_0x31b7cd,_0x4eb973(_0x5a9771['previousPosition']),_0x1a4f82=!0x0):_0x825fb8=_0x825fb8||_0x5a9771['previousPosition']));}function _0x4eb973(_0x42275f){const _0x154a3b=_0x1b6cc6['mapper']['toViewPosition'](_0x42275f),_0x5449dd=_0x1b6cc6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4279b5});_0x1b6cc6['writer']['insert'](_0x154a3b,_0x5449dd),_0x1b6cc6['mapper']['bindElementToMarker'](_0x5449dd,_0x440038['markerName']);}_0x451f74||_0x1a4f82||!_0x825fb8||_0x4eb973(_0x825fb8);};}class mt extends _0x325761{constructor(_0x2701a6){super(_0x2701a6);const _0x3e40c7=_0x2701a6['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3e40c7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e40c7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x30f4a2=this['editor'],_0x2921cb=_0x30f4a2['plugins']['get'](m),_0x5a5203=_0x2921cb['isReady']?_0x2921cb['diff']['newRevisionId']:null;_0x30f4a2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a5203);}['refresh'](){const {isReady:_0xee5c8,isEnabled:_0x2a77f6,repository:_0x5b2626,diff:_0x485dcb}=this['editor']['plugins']['get'](m),_0x5ee4a8=_0x485dcb&&_0x5b2626['getLaterVisibleRevision'](_0x485dcb['newRevisionId']);this['isEnabled']=_0xee5c8&&_0x2a77f6&&Boolean(_0x5ee4a8);}}class wt extends _0x325761{['_step'];constructor(_0x5a5727,{direction:_0x441e7f}){super(_0x5a5727);const _0x5f0959=_0x5a5727['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x441e7f?0x1:-0x1,this['listenTo'](_0x5f0959,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f0959,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5f0959,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x540662=this['editor'],_0x55ee74=_0x540662['plugins']['get'](m),{isNavigationMode:_0x4fa19d,currentChangeNumber:_0x15cd10}=_0x55ee74;let _0x481457;if(_0x55ee74['activeChange']=_0x4fa19d?_0x55ee74['diff']['changes']['get'](_0x15cd10+this['_step']):_0x55ee74['diff']['changes']['first'],_0x55ee74['activeChange']['data']['isOnRoot'])_0x481457=_0x540662['editing']['view']['getDomRoot'](_0x55ee74['activeChange']['rootName']);else{const _0x35ca19=_0x540662['model']['markers']['get']('revision:'+_0x55ee74['activeChange']['id']);_0x481457=_0xe751c8(_0x540662['editing'],_0x35ca19);}_0x4d3bcb({'target':_0x481457,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2b9054,currentChangeNumber:_0x3c9ef0,numberOfChanges:_0x5bfade,isReady:_0x2524c3,isEnabled:_0x55fdcd}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x55fdcd&&_0x2524c3&&_0x5bfade)&&(!_0x2b9054||(0x1===this['_step']?_0x3c9ef0<_0x5bfade-0x1:_0x3c9ef0>0x0));}}class _i extends _0x54e22e{constructor(_0x500eee){super(_0x500eee);const _0x1a6940=this['bindTemplate'],_0x4e2608=new te(_0x500eee),_0x365a40=new te(_0x500eee);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x5e9bc8,_0x5939c0)=>_0x5e9bc8&&_0x5939c0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x42360c,_0x1d5f3d,_0x4d3899,_0x2e39a4)=>{if(!_0x42360c)return g(_0x500eee,'Loading...');if(!_0x4d3899)return g(_0x500eee,'No\x20changes');const _0x573bb1=g(_0x500eee,'NUMBER_OF_CHANGES',_0x4d3899);return _0x2e39a4?g(_0x500eee,'X_OF_Y_CHANGES',[_0x1d5f3d+0x1,_0x4d3899]):_0x573bb1;}),_0x4e2608['set']({'label':g(_0x500eee,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x382c6d}),_0x365a40['set']({'label':g(_0x500eee,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x413fb0}),_0x4e2608['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x365a40['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e2608['on']('execute',()=>this['fire']('execute','backward')),_0x365a40['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x1a6940['if']('_isStatusLabelVisible','ck-hidden',_0x79e2fd=>!_0x79e2fd)]},'children':[{'text':_0x1a6940['to']('isNavigationMode',_0x2b7259=>_0x2b7259?g(_0x500eee,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x500eee,'Total')+':\x20')}]},{'text':_0x1a6940['to']('_statusText')}]},new _0x261b8e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e2608,_0x365a40]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4d12af{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x59b6b4=this['editor']['editing']['view'];_0x59b6b4['change'](_0x5b8c64=>{for(const _0x401c65 of _0x59b6b4['document']['roots'])_0x5b8c64['addClass'](le,_0x401c65);});}['hide'](){const _0x5d121c=this['editor']['editing']['view'];_0x5d121c['change'](_0x5006b4=>{for(const _0x45abe8 of _0x5d121c['document']['roots'])_0x5006b4['removeClass'](le,_0x45abe8);});}}class R extends _0x4d12af{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2c5438=this['editor'],_0x543f5e=_0x2c5438['plugins']['get'](m),_0x3dbec5=_0x2c5438['plugins']['get'](ge);_0x2c5438['ui']['componentFactory']['add']('exitToEditing',_0x453f71=>{const _0x36f9bd=new te(_0x453f71);return _0x36f9bd['set']({'label':g(_0x453f71,'Back\x20to\x20editing'),'icon':_0x11bc88,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x36f9bd,'execute',()=>{_0x2c5438['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x36f9bd;}),_0x2c5438['ui']['componentFactory']['add']('restoreRevision',_0x50259c=>{const _0x416229=new te(_0x50259c);return _0x416229['set']({'label':g(_0x50259c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x416229['bind']('isEnabled')['to'](_0x2c5438['commands']['get']('restoreRevision')),this['listenTo'](_0x416229,'execute',()=>_0x2c5438['execute']('restoreRevision')),_0x416229;}),_0x2c5438['ui']['componentFactory']['add']('changesNavigation',_0x652032=>{const _0x576b83=new _i(_0x652032),_0x456038=_0x2c5438['commands']['get']('showPreviousChange'),_0x284fc5=_0x2c5438['commands']['get']('showNextChange');return _0x576b83['bind']('isBackwardNavigationEnabled')['to'](_0x456038,'isEnabled'),_0x576b83['bind']('isForwardNavigationEnabled')['to'](_0x284fc5,'isEnabled'),_0x576b83['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x543f5e),this['listenTo'](_0x576b83,'execute',(_0x32dabd,_0x22ff26)=>{_0x2c5438['execute']('forward'===_0x22ff26?'showNextChange':'showPreviousChange');}),_0x576b83;}),_0x3dbec5['show'](),_0x543f5e['on']('change:isReady',(_0x32d70e,_0x3eb6da,_0x31075d)=>{_0x31075d?_0x3dbec5['hide']():_0x3dbec5['show']();});}}class at extends ts{['_resizeObserver']=null;constructor(_0x869af7,_0x13cfbb){super(_0x869af7,_0x13cfbb);const _0x557364=this['bindTemplate'];this['set']({'label':g(_0x869af7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x869af7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x557364['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x15fdfe=this['fieldView']['element'];this['_tooltipString']=_0x15fdfe['scrollWidth']>_0x15fdfe['clientWidth']&&_0x15fdfe['value']||'';}}class si extends _0x54e22e{constructor(_0x4bdf47,_0x1d6188,_0x4f3ee6){super(_0x4bdf47);const _0x43c0ef=new _0x463d4d();_0x43c0ef['set']({'content':_0x54590f,'viewBox':'0\x200\x2011\x2010'});const _0x59ca7=['ck','ck-revision-history-sidebar__revision-author'];_0x4f3ee6&&_0x59ca7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5bef4f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4bdf47,_0x4f3ee6?'Revision\x20creator':'Revision\x20author')},'children':[_0x43c0ef,_0x1d6188['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x59ca7},'children':_0x5bef4f});}}function oi(_0x8593c7,_0x52d23b){const _0x23f731=_0x8593c7['bindTemplate'],_0x373869=_0x8593c7['locale'],_0x49eb15=_0x2b57b5(_0x373869);_0x49eb15['panelPosition']='sw';const _0x1bcd87=function(_0x55eb48,_0x46f74a){const _0x5d74a5=function(_0x5edb70,_0x148070){const _0x567814=_0x5edb70['locale'],_0x200bf4={'Compare\x20against\x20selected':g(_0x567814,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x567814,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x567814,'Restore\x20this\x20revision')};return _0x148070['map'](_0x419d2e=>{const _0x3e1cbb=_0x200bf4[_0x419d2e['name']];return _0x3e1cbb&&_0x3e1cbb!==_0x419d2e['name']&&(_0x419d2e['name']=_0x3e1cbb),_0x419d2e;});}(_0x55eb48,_0x46f74a),_0x1a42f1=new _0x4916d9();for(const _0x1fba83 of _0x5d74a5){const _0x20d0ec={'type':'button','model':new to({'label':_0x1fba83['name'],'class':_0x1fba83['class'],'withText':!0x0,'role':'menuitem','_action':_0x1fba83['action']})};_0x20d0ec['model']['bind']('isEnabled')['to'](_0x55eb48,'isActionsDropdownOpen',_0xe367d0=>'function'!=typeof _0x1fba83['isEnabled']||(!_0xe367d0||_0x1fba83['isEnabled'](_0x55eb48))),_0x1a42f1['add'](_0x20d0ec);}return _0x1a42f1;}(_0x8593c7,_0x52d23b);return _0x8593c7['bind']('isActionsDropdownOpen')['to'](_0x49eb15,'isOpen'),_0x49eb15['buttonView']['set']({'label':g(_0x373869,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x399647}),_0x49eb15['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x23f731['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x23f731['to'](_0x36197d=>_0x36197d['stopPropagation']())}}),_0x49eb15['on']('execute',_0x13d3b2=>{_0x8593c7['isReady']&&'function'==typeof _0x13d3b2['source']['_action']&&_0x13d3b2['source']['_action'](_0x8593c7);}),_0x56f70b(_0x49eb15,_0x1bcd87,{'role':'menu'}),_0x49eb15['listenTo'](_0x8593c7,'change:isActionsDropdownOpen',(_0x7ccaf8,_0x51a1e9,_0x3dc69e)=>{if(_0x3dc69e)for(const _0x21d4e6 of _0x49eb15['listView']['items']){const _0x22d8a1=_0x21d4e6['children']['first'],_0x4035f5=_0x52d23b['find'](_0x4985b8=>_0x4985b8['action']===_0x22d8a1['_action'])['isVisible'];_0x21d4e6['isVisible']=void 0x0===_0x4035f5||_0x4035f5(_0x8593c7);}}),_0x49eb15;}class hi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(_0x54e22e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x19ffc5,_0x371d7e,_0x4d8862,_0x33ae6f){super(_0x19ffc5);const _0xa5dee2=this['bindTemplate'],_0x24fa36=function(_0x6699db,_0x3a06bc){const _0xf1d576=Array['from'](_0x3a06bc['authors'])['filter'](_0x4cc20d=>_0x4cc20d!=_0x3a06bc['creator']);return _0x3a06bc['creator']&&_0xf1d576['unshift'](_0x3a06bc['creator']),_0xf1d576['map'](_0x1d519a=>new si(_0x6699db,_0x1d519a,_0x1d519a==_0x3a06bc['creator']));}(_0x19ffc5,_0x371d7e);this['id']=_0x371d7e['id'],this['_revision']=_0x371d7e,this['_requireRevisionName']=_0x33ae6f,this['bind']('name','createdAt')['to'](_0x371d7e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x295f84=>{return _0x553b4e=_0x19ffc5['uiLanguage'],(_0x530517=_0x295f84)['toLocaleDateString'](_0x553b4e,{'month':'long','day':'numeric'})+',\x20'+_0x530517['toLocaleTimeString'](_0x553b4e,{'hour':'numeric','minute':'numeric'});var _0x553b4e,_0x530517;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x19ffc5,_0x5036c0),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x58dced=>_0x58dced||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x158784,_0x752552)=>_0x158784&&_0x752552),this['revisionActionsView']=_0x4d8862&&_0x4d8862['length']?oi(this,_0x4d8862):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xa5dee2['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xa5dee2['if']('isEnabled','ck-disabled',_0x46eca3=>!_0x46eca3),_0xa5dee2['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xa5dee2['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xa5dee2['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0xa5dee2['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x24fa36}]},this['revisionActionsView']],'on':{'click':_0xa5dee2['to'](_0x3b7192=>{_0x3b7192['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5c7b0e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5c7b0e,'change',()=>{this['_requireRevisionName']&&!_0x5c7b0e['value']||this['fire']('setName',{'id':this['id'],'name':_0x5c7b0e['value']}),_0x5c7b0e['value']||(_0x5c7b0e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x5a8db8,_0x825a77){const _0x4ba5b6=_0x42e6e7['fromJSDate'](_0x5a8db8)['setLocale'](_0x825a77),_0x227829=_0x42e6e7['local'](),_0x4ce584=_0x227829['minus']({'days':0x1})['startOf']('day');let _0x365e2a,_0x10c9e1;return _0x4ba5b6['hasSame'](_0x227829,'day')?(_0x365e2a=_0x4ba5b6['startOf']('day')['toJSDate'](),_0x10c9e1=_0x4ba5b6['toRelativeCalendar']()):_0x4ba5b6['hasSame'](_0x4ce584,'day')?(_0x365e2a=_0x4ce584['toJSDate'](),_0x10c9e1=_0x4ba5b6['toRelativeCalendar']()):_0x4ba5b6['hasSame'](_0x227829,'week')?(_0x365e2a=_0x4ba5b6['startOf']('week')['toJSDate'](),_0x10c9e1=_0x4ba5b6['weekdayLong']||''):_0x4ba5b6['hasSame'](_0x227829,'year')?(_0x365e2a=_0x4ba5b6['startOf']('month')['toJSDate'](),_0x10c9e1=_0x4ba5b6['monthLong']||''):(_0x365e2a=_0x4ba5b6['startOf']('year')['toJSDate'](),_0x10c9e1=String(_0x4ba5b6['year'])),{'startDate':_0x365e2a,'localizedPeriodName':_0x10c9e1};}class di extends _0x54e22e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1e48c5,_0x387a16,_0x403ba6,_0xa18565){super(_0x1e48c5);const _0x27a3a1=ai(_0x387a16,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x387a16,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x403ba6,this['_requireRevisionName']=_0xa18565,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x27a3a1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4d0050){const _0x4543da=new hi(this['locale'],_0x4d0050,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4543da);}['removeRevision'](_0x1ba87d){const _0x2209cb=this['revisionViews']['find'](_0x183606=>_0x183606['id']===_0x1ba87d['id']);this['revisionViews']['remove'](_0x2209cb);}}class as extends _0x54e22e{constructor(_0x4b66df){super(_0x4b66df);const _0x3faa64=new _0x463d4d();_0x3faa64['content']=_0x15ce90,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3faa64,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4b66df,'Revision\x20history')]}]});}}class ni extends _0x54e22e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xa006b1,_0x67b5b5,_0x41d2bc,_0xd944be){super(_0xa006b1);const _0x3b75c6=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x67b5b5,this['_revisionActions']=_0x41d2bc,this['_requireRevisionName']=_0xd944be,this['on']('select',(_0x4cb052,_0x1c3e16)=>{this['fire']('revisionSelected',_0x1c3e16);}),this['on']('setName',(_0x10b023,_0x5e2549)=>{this['fire']('revisionSetName',_0x5e2549);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xa006b1),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3b75c6['if']('isEnabled','ck-disabled',_0x1d8301=>!_0x1d8301)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x35ea51 of this['_revisions'])this['_addRevision'](_0x35ea51);this['_revisions']['on']('add',(_0x13910a,_0x361661)=>{this['_addRevision'](_0x361661);}),this['_revisions']['on']('remove',(_0x3c2500,_0x316cbe)=>{this['_removeRevision'](_0x316cbe);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x12a84d=>_0x12a84d['revisionViews']['map'](_0x125853=>_0x125853))['flat']();}['selectRevision'](_0x2dce54){for(const _0x5e34b4 of this['revisionViews'])_0x2dce54&&_0x2dce54['id']===_0x5e34b4['id']?_0x5e34b4['select']():_0x5e34b4['deselect']();}['highlightRevisions'](_0xf4a0e5){for(const _0xa2e2ac of this['revisionViews'])_0xf4a0e5['some'](({id:_0x4282cc})=>_0x4282cc===_0xa2e2ac['id'])?_0xa2e2ac['highlight']():_0xa2e2ac['unhighlight']();}['_addRevision'](_0x111244){const _0x36996d=ai(_0x111244['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x174809=this['timePeriodViews']['get'](0x0);_0x174809&&_0x174809['startDate']['getTime']()===_0x36996d['getTime']()||(_0x174809=new di(this['locale'],_0x36996d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x174809)),_0x174809['addRevision'](_0x111244);}['_removeRevision'](_0x2e401c){const _0x1cc3a2=ai(_0x2e401c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1cc3a2)['removeRevision'](_0x2e401c);}['_getTimePeriodViewByStartDate'](_0x292df3){return this['timePeriodViews']['find'](_0x1b41f3=>_0x1b41f3['startDate']['getTime']()===_0x292df3['getTime']());}}class d extends _0x4d12af{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x5b7359(_0x3c152e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x386982,_0x239f79){super(_0x239f79),this['sourceElement']=_0x386982,this['model']['document']['createRoot']();const _0x266068=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x266068);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d6f61,_0x438322){const _0x29f286=new this(_0x4d6f61,_0x438322);return await _0x29f286['initPlugins'](),await _0x29f286['ui']['init'](_0x4d6f61),await _0x29f286['data']['init'](_0x29f286['config']['get']('initialData')||''),_0x29f286['fire']('ready'),_0x29f286;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x2f4267{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a6742){function _0x48e0dd(_0x433c88){return _0x433c88['map'](_0x1f1e7a=>String['fromCharCode'](_0x1f1e7a))['join']('');}super(_0x4a6742),this['result']='end',_0x4a6742[_0x48e0dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e0dd([0x76,0x69,0x65,0x77])][_0x48e0dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48e0dd([0x61,0x75,0x74,0x6f]),_0x4a6742[_0x48e0dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x48e0dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48e0dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x48e0dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x48e0dd([0x6f,0x6b])});}}class k extends _0x2f4267{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x27dabf){if(super(_0x27dabf),!this['editor']['config']['get']('revisionHistory'))throw new _0xa50a0c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x10fde3=>this['_showRevisionViewer']({..._0x10fde3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3a1b16=>this['_closeRevisionViewer'](_0x3a1b16)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5cdc68=>this['_restoreRevision'](_0x5cdc68)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x8fbc16){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x8fbc16;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xa05427){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xa05427);}['getRevision'](_0x248157){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x248157);}['getRevisions'](_0x516961){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x516961||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb06f31=this['editor'],_0x731274=_0x1ccacd(_0xb06f31,p),_0x3d303c=_0xb06f31['plugins']['get']('RevisionTracker'),_0x3226bf=_0xb06f31['plugins']['get']('Users')['users'];return _0x731274['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x731274['lazyRoots'],(_0x731274['plugins']['push'](_t,m,R,class extends _0x2f4267{static get['requires'](){return[m,'Users'];}['init'](){const _0x27777e=this['editor']['plugins']['get']('Users');for(const _0x7015b5 of _0x3226bf)_0x7015b5['isAnonymous']||_0x27777e['getUser'](_0x7015b5['id'])||_0x27777e['addUser'](_0x7015b5);const _0x95eff4=_0x3d303c['repository']['getRevisions']();let _0x917fe=null;const _0x3914ec=this['editor']['plugins']['get']('RevisionViewer');_0x3914ec['adapter']=_0x3d303c['adapter'],_0x3914ec['bind']('isEnabled')['to'](_0x3d303c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb06f31,'isReadOnly',_0x2460d0=>!_0x2460d0);for(const _0x3facbd of _0x95eff4){const _0x1ee00d=null===_0x3facbd['creator'];if(_0x1ee00d&&_0x3facbd['toVersion']===_0x3facbd['fromVersion'])continue;const _0x52fb2d=_0x3facbd['toJSON']();_0x3914ec['addRevisionData'](_0x52fb2d,(_0x23af83,_0x1255b5,_0x576a73)=>{if(_0x1ee00d){if(_0x917fe)_0x917fe['_update'](_0x23af83,_0x1255b5);else{if(!_0x1255b5){const _0x12c250=_0x576a73['toJSON']();_0x12c250['id']=_0x47a55d(),_0x3d303c['saveRevision'](_0x12c250,_0x576a73['toVersion'])['then'](_0x2ce2a0=>{_0x917fe=_0x2ce2a0;});}}}else _0x3facbd['_update'](_0x23af83,_0x1255b5);});}}},d),_0x731274);}['_enhanceShowRevisionViewerCallback'](){const _0xef308a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x17a60e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5d2a01=this['editor']['plugins']['get']('Autosave');await _0x5d2a01['save']();}else await _0x17a60e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x471f25=this['editor']['plugins']['get']('Dialog');_0x471f25['isOpen']&&_0x471f25['hide']();}const _0x222bb4=this['_getRevisionViewerEditorConfig']();return _0xef308a(_0x222bb4)['then'](_0x2c9e24=>{return(this['_viewerEditor']=_0x2c9e24,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x2c9e24);})['catch'](_0x1e89e0=>(console['error'](_0x1e89e0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x60efd7=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x60efd7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x59c13b=this['editor']['plugins']['get']('Annotations');_0x59c13b['refreshVisibility'](),_0x59c13b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2b48f1){const _0x58ddd3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3ef97d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2bee1d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2bee1d,_0x2b48f1)['then'](_0x3456c9=>(_0x3ef97d['style']['display']='block',_0x58ddd3['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3456c9));}['_closeRevisionViewer'](_0x307f81){const _0x37f5ab=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x37f5ab['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x307f81['destroy']();}async['_restoreRevision'](_0x175b42){const _0xf18fd=this['editor'],_0x1fef94=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51d138=_0xf18fd['plugins']['get']('RevisionTracker'),_0x2cc6eb=_0xf18fd['plugins']['get']('RevisionHistoryUtils'),_0x99602e=_0x1fef94['repository']['getRevision'](_0x175b42);let _0x46e3be,_0x58b800,_0x41e5ba;try{await _0x2cc6eb['loadRevisionData'](_0x99602e,this['adapter']),_0x46e3be=_0x2cc6eb['getRevisionDocumentData'](_0x99602e),_0x58b800=_0x2cc6eb['getRevisionRootsAttributes'](_0x99602e);}catch(_0xbc1590){return void console['error'](_0xbc1590);}_0xf18fd['model']['change'](_0xc29ca5=>{for(const _0x49e19b of Array['from'](_0xf18fd['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xc29ca5['removeMarker'](_0x49e19b);}),_0x1fef94['isReady']=!0x1,_0xf18fd['model']['enqueueChange'](_0x27bb7c=>{_0x27bb7c['setSelection'](null),_0x27bb7c['removeSelectionAttribute'](_0xf18fd['model']['document']['selection']['getAttributeKeys']());const _0x840ec7=Object['keys'](_0x46e3be);for(const _0x17721e of _0xf18fd['model']['document']['roots'])'$graveyard'!=_0x17721e['rootName']&&_0x17721e['isAttached']()&&!_0x840ec7['includes'](_0x17721e['rootName'])&&_0x27bb7c['detachRoot'](_0x17721e);for(const _0x39a4c1 of _0x840ec7){let _0x464fc3=_0xf18fd['model']['document']['getRoot'](_0x39a4c1);_0x464fc3&&_0x464fc3['isAttached']()||(_0x464fc3=_0x27bb7c['addRoot'](_0x39a4c1));const _0x4e0e68=_0x58b800[_0x39a4c1],_0x5016b0=Object['keys'](_0x4e0e68),_0x1205c3=_0x46e3be[_0x39a4c1];for(const _0x292265 of _0x464fc3['getAttributeKeys']())_0x5016b0['includes'](_0x292265)||_0x27bb7c['removeAttribute'](_0x292265,_0x464fc3);for(const _0x2b88c4 of _0x5016b0)_0x27bb7c['setAttribute'](_0x2b88c4,_0x58b800[_0x39a4c1][_0x2b88c4],_0x464fc3);_0x27bb7c['remove'](_0x27bb7c['createRangeIn'](_0x464fc3)),_0x27bb7c['insert'](_0xf18fd['data']['parse'](_0x1205c3,_0x464fc3),_0x464fc3,0x0);}});const _0x337506=g(_0xf18fd['locale'],'Restored');if(_0x99602e['name'])_0x41e5ba=-0x1==_0x99602e['name']['indexOf'](_0x337506)?_0x337506+':\x20'+_0x99602e['name']:_0x99602e['name'];else _0x41e5ba=_0x337506+':\x20'+(_0x99602e['createdAt']['toLocaleDateString'](_0xf18fd['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x99602e['createdAt']['toLocaleTimeString'](_0xf18fd['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51d138['saveRevision']({'name':_0x41e5ba}),_0x1fef94['isReady']=!0x0,_0xf18fd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
29
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x13c138){super(_0x13c138),this['_revisionViewer']=_0x13c138['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x224067=this['_revisionsRepository']['_revisions'],_0x1bca6b=this['_createRevisionActions'](),_0x4ce1f4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x224067,_0x1bca6b,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x27d0ec,_0x29d0ef)=>{_0x29d0ef['revisionViews']['on']('add',(_0x3e415b,_0x5ac509)=>{_0x5ac509['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x4ce1f4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1f8ee5=this['_revisionsRepository']['getRevision'](0x0);if(_0x1f8ee5){const _0x5d09cf=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1f8ee5['id']);this['_revisionViewer']['compare'](_0x1f8ee5,_0x5d09cf);}}['_handleRevisionSelected'](_0x4adcdf,_0x27cde4){const _0x24c0dd=this['_revisionsRepository']['getRevision'](_0x27cde4['id']),_0x1f580d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24c0dd['id']);this['_revisionViewer']['compare'](_0x24c0dd,_0x1f580d);}['_handleRevisionSetName'](_0x211ce7,_0x4aed34){this['_revisionsRepository']['getRevision'](_0x4aed34['id'])['setName'](_0x4aed34['name']);}['_handleDiffChange'](_0x1dde20,_0x336137,_0x2054f1){const _0x41264f=this['_revisionsRepository']['getRevisionsInDiff'](_0x2054f1);_0x41264f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x41264f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x41264f[0x0]));}['_createRevisionActions'](){const _0x5be3f7=this['editor'],_0x1ab299=d['availableRevisionActions'],_0x49538b=_0x5be3f7['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x49538b['length'])return _0x49538b['map'](_0x41c815=>{const _0xdc2b57='string'==typeof _0x41c815?Object['assign']({},_0x1ab299[_0x41c815]):_0x41c815;return _0xdc2b57['action']=_0xdc2b57['action']['bind'](this,_0x5be3f7),_0xdc2b57['isVisible']&&(_0xdc2b57['isVisible']=_0xdc2b57['isVisible']['bind'](this,_0x5be3f7)),_0xdc2b57;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x54c769},_0x49c0d4)=>{const _0xbbb49d=_0x54c769['get'](m),_0x42600e=_0xbbb49d['repository'];let _0x54b5ff=_0xbbb49d['diff']['newRevisionId'],_0x2bd7fd=_0x49c0d4['id'];_0x42600e['getIndex'](_0x54b5ff)>_0x42600e['getIndex'](_0x2bd7fd)&&([_0x54b5ff,_0x2bd7fd]=[_0x2bd7fd,_0x54b5ff]),_0xbbb49d['compare'](_0x54b5ff,_0x2bd7fd);},'isVisible':({plugins:_0x3feb65},_0x3dfffc)=>{const _0x50a1d0=_0x3feb65['get'](m);return!(_0x50a1d0['repository']['getRevisionsInDiff'](_0x50a1d0['diff'])['length']>0x2)&&!_0x3dfffc['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5e1244,{id:_0x41da86})=>{_0x5e1244['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x41da86);},'isVisible':({plugins:_0x212b39},_0x324a70)=>!!_0x212b39['get'](m)['repository']['getLaterVisibleRevision'](_0x324a70['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4bf6b7},{id:_0x5b6a48,revisionNameView:_0x3fcd73})=>{const _0x175a0e=_0x4bf6b7['get'](m),_0x5fe6fa=_0x175a0e['repository']['getEarlierVisibleRevision'](_0x5b6a48);_0x175a0e['compare'](_0x5b6a48,_0x5fe6fa),_0x3fcd73['focus'](),_0x3fcd73['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x379758,_0x54f979){super(_0x379758),this['_view']=_0x54f979,this['_toolbarConfig']=et(_0x379758['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x141cb8){const _0x100fd0=this['editor'],_0x5256a7=this['view'],_0x5376dd=_0x100fd0['editing']['view'],_0x2ba129=_0x5256a7['editable'],_0x3b9d4d=_0x5376dd['document']['getRoot']();_0x2ba129['name']=_0x3b9d4d['rootName'],_0x5256a7['render']();const _0x3683f2=_0x2ba129['element'];this['setEditableElement'](_0x2ba129['name'],_0x3683f2),_0x5256a7['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5376dd['attachDomRoot'](_0x3683f2),this['_elementReplacer']['replace'](_0x141cb8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4ad5d9=this['view'],_0x5e0937=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5e0937['detachDomRoot'](_0x4ad5d9['editable']['name']),_0x4ad5d9['destroy']();}['_initToolbar'](){const _0x3de1f9=this['view'];_0x3de1f9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3de1f9['stickyPanel']['limiterElement']=_0x3de1f9['element'],_0x3de1f9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x36cc9e})=>_0x36cc9e),_0x3de1f9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3de1f9['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x349b29,_0x16db56,_0xd0f490={}){super(_0x349b29),this['stickyPanel']=new ht(_0x349b29),this['toolbar']=new dt(_0x349b29,{'shouldGroupWhenFull':_0xd0f490['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x349b29,_0x16db56);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x22f4bc(_0x10b719){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2af855,_0x52b1da){super(_0x52b1da),this['sourceElement']=_0x2af855,this['model']['document']['createRoot']();const _0x3aefd0=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3aefd0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5c4616,_0x1dc2a4){const _0x1ec451=new this(_0x5c4616,_0x1dc2a4);return await _0x1ec451['initPlugins'](),await _0x1ec451['ui']['init'](_0x5c4616),await _0x1ec451['data']['init'](_0x1ec451['config']['get']('initialData')||''),_0x1ec451['fire']('ready'),_0x1ec451;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4d12af{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52fa8){function _0x545221(_0x1fea7b){return _0x1fea7b['map'](_0xf171cb=>String['fromCharCode'](_0xf171cb))['join']('');}super(_0x52fa8),this['result']='end',_0x52fa8[_0x545221([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545221([0x76,0x69,0x65,0x77])][_0x545221([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x545221([0x61,0x75,0x74,0x6f]),_0x52fa8[_0x545221([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x545221([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x545221([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x545221([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x545221([0x6f,0x6b])});}}class k extends _0x4d12af{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x28d04c){if(super(_0x28d04c),!this['editor']['config']['get']('revisionHistory'))throw new _0x17594f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4db2df=>this['_showRevisionViewer']({..._0x4db2df,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x24b40b=>this['_closeRevisionViewer'](_0x24b40b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1ed08b=>this['_restoreRevision'](_0x1ed08b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x26dd0f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x26dd0f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x9472f3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x9472f3);}['getRevision'](_0x2e146a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2e146a);}['getRevisions'](_0x555dd5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x555dd5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x333128=this['editor'],_0x399657=_0xafe200(_0x333128,p),_0x2a9948=_0x333128['plugins']['get']('RevisionTracker'),_0x16d231=_0x333128['plugins']['get']('Users')['users'];return _0x399657['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x399657['lazyRoots'],(_0x399657['plugins']['push'](_t,m,R,class extends _0x4d12af{static get['requires'](){return[m,'Users'];}['init'](){const _0x24202f=this['editor']['plugins']['get']('Users');for(const _0x429ec1 of _0x16d231)_0x429ec1['isAnonymous']||_0x24202f['getUser'](_0x429ec1['id'])||_0x24202f['addUser'](_0x429ec1);const _0x1bbf98=_0x2a9948['repository']['getRevisions']();let _0x4a15ec=null;const _0xd061d1=this['editor']['plugins']['get']('RevisionViewer');_0xd061d1['adapter']=_0x2a9948['adapter'],_0xd061d1['bind']('isEnabled')['to'](_0x2a9948),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x333128,'isReadOnly',_0x48f94e=>!_0x48f94e);for(const _0x4239cd of _0x1bbf98){const _0x2a73bf=null===_0x4239cd['creator'];if(_0x2a73bf&&_0x4239cd['toVersion']===_0x4239cd['fromVersion'])continue;const _0x330b53=_0x4239cd['toJSON']();_0xd061d1['addRevisionData'](_0x330b53,(_0x1bacb4,_0x381b15,_0x7fda14)=>{if(_0x2a73bf){if(_0x4a15ec)_0x4a15ec['_update'](_0x1bacb4,_0x381b15);else{if(!_0x381b15){const _0x462acc=_0x7fda14['toJSON']();_0x462acc['id']=_0x3affb0(),_0x2a9948['saveRevision'](_0x462acc,_0x7fda14['toVersion'])['then'](_0x54bda3=>{_0x4a15ec=_0x54bda3;});}}}else _0x4239cd['_update'](_0x1bacb4,_0x381b15);});}}},d),_0x399657);}['_enhanceShowRevisionViewerCallback'](){const _0x25d380=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2901a7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2740fd=this['editor']['plugins']['get']('Autosave');await _0x2740fd['save']();}else await _0x2901a7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3643a9=this['editor']['plugins']['get']('Dialog');_0x3643a9['isOpen']&&_0x3643a9['hide']();}const _0x2023ab=this['_getRevisionViewerEditorConfig']();return _0x25d380(_0x2023ab)['then'](_0x5af695=>{return(this['_viewerEditor']=_0x5af695,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x5af695);})['catch'](_0x5c3ca2=>(console['error'](_0x5c3ca2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x495e11=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x495e11(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1e4905=this['editor']['plugins']['get']('Annotations');_0x1e4905['refreshVisibility'](),_0x1e4905['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5dca33){const _0x710805=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe8d2f6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x48a9a7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x48a9a7,_0x5dca33)['then'](_0x227b88=>(_0xe8d2f6['style']['display']='block',_0x710805['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x227b88));}['_closeRevisionViewer'](_0x4ba454){const _0x56c1c9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x56c1c9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4ba454['destroy']();}async['_restoreRevision'](_0x2b73e0){const _0x35065d=this['editor'],_0x5cc058=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x22d206=_0x35065d['plugins']['get']('RevisionTracker'),_0x2baa2e=_0x35065d['plugins']['get']('RevisionHistoryUtils'),_0x355120=_0x5cc058['repository']['getRevision'](_0x2b73e0);let _0x27a81c,_0x210a76,_0x199334;try{await _0x2baa2e['loadRevisionData'](_0x355120,this['adapter']),_0x27a81c=_0x2baa2e['getRevisionDocumentData'](_0x355120),_0x210a76=_0x2baa2e['getRevisionRootsAttributes'](_0x355120);}catch(_0x53da79){return void console['error'](_0x53da79);}_0x35065d['model']['change'](_0x244421=>{for(const _0x2b4d45 of Array['from'](_0x35065d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x244421['removeMarker'](_0x2b4d45);}),_0x5cc058['isReady']=!0x1,_0x35065d['model']['enqueueChange'](_0x374a6e=>{_0x374a6e['setSelection'](null),_0x374a6e['removeSelectionAttribute'](_0x35065d['model']['document']['selection']['getAttributeKeys']());const _0x14adb4=Object['keys'](_0x27a81c);for(const _0x3dd8da of _0x35065d['model']['document']['roots'])'$graveyard'!=_0x3dd8da['rootName']&&_0x3dd8da['isAttached']()&&!_0x14adb4['includes'](_0x3dd8da['rootName'])&&_0x374a6e['detachRoot'](_0x3dd8da);for(const _0x17335b of _0x14adb4){let _0x83eaa7=_0x35065d['model']['document']['getRoot'](_0x17335b);_0x83eaa7&&_0x83eaa7['isAttached']()||(_0x83eaa7=_0x374a6e['addRoot'](_0x17335b));const _0x58ef1b=_0x210a76[_0x17335b],_0x1ec7dc=Object['keys'](_0x58ef1b),_0x6b06ba=_0x27a81c[_0x17335b];for(const _0x4a82bb of _0x83eaa7['getAttributeKeys']())_0x1ec7dc['includes'](_0x4a82bb)||_0x374a6e['removeAttribute'](_0x4a82bb,_0x83eaa7);for(const _0xa1aed9 of _0x1ec7dc)_0x374a6e['setAttribute'](_0xa1aed9,_0x210a76[_0x17335b][_0xa1aed9],_0x83eaa7);_0x374a6e['remove'](_0x374a6e['createRangeIn'](_0x83eaa7)),_0x374a6e['insert'](_0x35065d['data']['parse'](_0x6b06ba,_0x83eaa7),_0x83eaa7,0x0);}});const _0x58a7d9=g(_0x35065d['locale'],'Restored');if(_0x355120['name'])_0x199334=-0x1==_0x355120['name']['indexOf'](_0x58a7d9)?_0x58a7d9+':\x20'+_0x355120['name']:_0x355120['name'];else _0x199334=_0x58a7d9+':\x20'+(_0x355120['createdAt']['toLocaleDateString'](_0x35065d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x355120['createdAt']['toLocaleTimeString'](_0x35065d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x22d206['saveRevision']({'name':_0x199334}),_0x5cc058['isReady']=!0x0,_0x35065d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|