@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250326.0 → 0.0.0-nightly-20250326.2
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 +6 -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/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.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x20e616(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x35bccd){super(),this['id']=_0x35bccd['id']||_0x24ac73(),this['creator']=_0x35bccd['creator']||null,this['authors']=_0x35bccd['authors']||[],this['diffData']=_0x35bccd['diffData']||null,this['toVersion']=_0x35bccd['toVersion']||0x0,this['fromVersion']=_0x35bccd['fromVersion']||0x0,this['set']('name',_0x35bccd['name']||''),this['set']('createdAt',_0x35bccd['createdAt']||new Date()),this['set']('attributes',_0x35bccd['attributes']||{});}['setName'](_0x506f7d){this['_update']({'name':_0x506f7d});}['setAttribute'](_0x560528,_0x14b736){const _0x41953d=_0x1e7ff6(this['attributes']);_0x25ef03(_0x41953d,_0x560528,_0x14b736),this['_update']({'attributes':_0x41953d});}['removeAttribute'](_0x1ecb11){const _0x1c794e=_0x1e7ff6(this['attributes']);_0x19b690(_0x1c794e,_0x1ecb11),this['_update']({'attributes':_0x1c794e});}['_update'](_0x418521,_0x19a2be=!0x1){let _0x11e96a=!0x1;const _0x4a9b33={'id':this['id']},_0x1e535d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2ca1f3 of _0x1e535d){const _0x5185d9=_0x418521[_0x2ca1f3];void 0x0!==_0x5185d9&&_0x5185d9!==this[_0x2ca1f3]&&(this[_0x2ca1f3]=_0x5185d9,_0x4a9b33[_0x2ca1f3]=_0x5185d9,_0x11e96a=!0x0);}_0x11e96a&&(_0x4a9b33['authors']&&(_0x4a9b33['authorsIds']=_0x4a9b33['authors']['map'](_0x14fc89=>_0x14fc89['id']),delete _0x4a9b33['authors']),this['fire']('_update',_0x4a9b33,_0x19a2be));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x247be0=>_0x247be0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4e9206{['_revisions'];static get['requires'](){return[_0x26d238];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x55bd58){super(_0x55bd58),this['_revisions']=new _0x44a143();}['afterInit'](){!async function(_0x2ebfe5){const _0x4a07a5=_0xfbf875([0x58,0x77,0x54,0x63,0x4d,0x43,0x4a,0x56,0x75,0x36,0x67,0x38,0x32,0x49,0x6c,0x41,0x74,0x59,0x6a,0x61,0x48,0x4e,0x4f,0x6e,0x34,0x44,0x46,0x52,0x37,0x69,0x42,0x68,0x71,0x6d,0x6b,0x57,0x65,0x76,0x55,0x7a,0x73,0x79,0x31,0x70,0x30,0x4b,0x39,0x6f,0x47,0x33,0x78,0x45,0x66,0x35,0x51,0x64,0x53,0x62,0x4c,0x50,0x5a,0x72]),_0x2db2fd=0xeb829,_0x2141a7=0x79cf0c65,_0x2ce06c=0x79c86f5d^_0x2141a7,_0x2625ef=window[_0xfbf875([0x44,0x61,0x74,0x65])][_0xfbf875([0x6e,0x6f,0x77])](),_0x282311=_0x2ebfe5[_0xfbf875([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e6205=new window[(_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e24b7=>{_0x282311[_0xfbf875([0x6f,0x6e,0x63,0x65])](_0xfbf875([0x72,0x65,0x61,0x64,0x79]),_0x5e24b7);}),_0x340d16={[_0xfbf875([0x6b,0x74,0x79])]:_0xfbf875([0x45,0x43]),[_0xfbf875([0x75,0x73,0x65])]:_0xfbf875([0x73,0x69,0x67]),[_0xfbf875([0x63,0x72,0x76])]:_0xfbf875([0x50,0x2d,0x32,0x35,0x36]),[_0xfbf875([0x78])]:_0xfbf875([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]),[_0xfbf875([0x79])]:_0xfbf875([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]),[_0xfbf875([0x61,0x6c,0x67])]:_0xfbf875([0x45,0x53,0x32,0x35,0x36])},_0x4ab903=_0x282311[_0xfbf875([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xfbf875([0x67,0x65,0x74])](_0xfbf875([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d761d(){let _0x598a34,_0x32fc39=null,_0x2408c6=null;try{if(_0x4ab903==_0xfbf875([0x47,0x50,0x4c]))return _0xfbf875([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x598a34=_0xf77f9(),!_0x598a34)return _0xfbf875([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x598a34[_0xfbf875([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2408c6=_0x4c3a2f(_0x598a34[_0xfbf875([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x598a34[_0xfbf875([0x6a,0x74,0x69])])),await _0x23f1f3()?_0xb84812()?_0x297a11()?_0xfbf875([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b2a04()?(_0x598a34[_0xfbf875([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfbf875([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32fc39=_0x22806f(_0xfbf875([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x598a34[_0xfbf875([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfbf875([0x74,0x72,0x69,0x61,0x6c])&&(_0x32fc39=_0x22806f(_0xfbf875([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x526fc1()):_0xfbf875([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xfbf875([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xfbf875([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x22aac1){return _0xfbf875([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x297a11(){const _0x3d1624=[_0xfbf875([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xfbf875([0x74,0x72,0x69,0x61,0x6c])][_0xfbf875([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598a34[_0xfbf875([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2625ef/0x3e8:0xe10*_0x2ce06c;return _0x598a34[_0xfbf875([0x65,0x78,0x70])]<_0x3d1624;}function _0xb84812(){const _0x4489b4=_0x598a34[_0xfbf875([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4489b4)return!0x1;if(_0x4489b4[_0xfbf875([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfbf875([0x2a])))return!0x0;if(_0x4489b4[_0xfbf875([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfbf875([0x52,0x48])))return!0x0;if(_0x4489b4[_0xfbf875([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfbf875([0x52,0x52,0x48]))){if(_0x2f132e())return!0x0;if(_0x5b0010()||_0x555d3a())return!0x0;}return!0x1;}function _0x1b2a04(){const _0x3ece25=_0x598a34[_0xfbf875([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ece25||0x0==_0x3ece25[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12430e}=new URL(window[_0xfbf875([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ece25[_0xfbf875([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12430e))return!0x0;const _0x2b448a=_0x12430e[_0xfbf875([0x73,0x70,0x6c,0x69,0x74])](_0xfbf875([0x2e]));return _0x3ece25[_0xfbf875([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26f675=>_0x26f675[_0xfbf875([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfbf875([0x2a])))[_0xfbf875([0x6d,0x61,0x70])](_0x21b8ad=>_0x21b8ad[_0xfbf875([0x73,0x70,0x6c,0x69,0x74])](_0xfbf875([0x2e])))[_0xfbf875([0x73,0x6f,0x6d,0x65])](_0x418ec5=>_0x2b448a[_0xfbf875([0x65,0x76,0x65,0x72,0x79])]((_0x40e5d0,_0x29c3d1)=>_0x418ec5[_0x29c3d1]===_0x40e5d0||_0x418ec5[_0x29c3d1]===_0xfbf875([0x2a])));}function _0x526fc1(){return _0x32fc39&&_0x2408c6?new window[(_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12a6e5,_0x4d49bf)=>{_0x32fc39[_0xfbf875([0x74,0x68,0x65,0x6e])](_0x12a6e5,_0x4d49bf),_0x2408c6[_0xfbf875([0x74,0x68,0x65,0x6e])](_0x30fc1f=>{_0x30fc1f!=_0xfbf875([0x56,0x61,0x6c,0x69,0x64])&&_0x12a6e5(_0x30fc1f);},_0x4d49bf);}):_0x32fc39||_0x2408c6||_0xfbf875([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c3a2f(_0x3fd270,_0x3ea23a){return new window[(_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12f959=>{if(_0x33c04d())return _0x12f959(_0xfbf875([0x56,0x61,0x6c,0x69,0x64]));_0x392388(),_0x282311[_0xfbf875([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xfbf875([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x113b37=!0x1;const _0xb9c1f=_0x24ac73();function _0x193eaa(_0x19af05){return!!_0x19af05&&(typeof _0x19af05===_0xfbf875([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19af05===_0xfbf875([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19af05[_0xfbf875([0x74,0x68,0x65,0x6e])]===_0xfbf875([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19af05[_0xfbf875([0x63,0x61,0x74,0x63,0x68])]===_0xfbf875([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c660c(_0x1ceed6){_0x534161(_0x1ceed6)[_0xfbf875([0x74,0x68,0x65,0x6e])](_0x478b56=>{if(!_0x478b56||_0x478b56[_0xfbf875([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xfbf875([0x6f,0x6b]))return _0xfbf875([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45e271(_0x16e3be(_0xb9c1f+_0x3ea23a))!=_0x478b56[_0xfbf875([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xfbf875([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xfbf875([0x56,0x61,0x6c,0x69,0x64]);})[_0xfbf875([0x74,0x68,0x65,0x6e])](_0x46e5e7=>(_0x5d696b(),_0x46e5e7),()=>{const _0x928def=_0x3b18d8();return null==_0x928def?(_0x5d696b(),_0xfbf875([0x56,0x61,0x6c,0x69,0x64])):_0xfbf875(_0x2625ef-_0x928def>(0x5dc38865^_0x2141a7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xfbf875([0x74,0x68,0x65,0x6e])](_0x12f959)[_0xfbf875([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12f959(_0xfbf875([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd3e375=0x79f9e2e5^_0x2141a7;function _0x5d696b(){const _0x22aa10=_0xfbf875([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e271(_0x16e3be(_0x3fd270)),_0x5d08f8=_0x10038d(_0x45e271(window[_0xfbf875([0x4d,0x61,0x74,0x68])][_0xfbf875([0x63,0x65,0x69,0x6c])](_0x2625ef/_0xd3e375)));window[_0xfbf875([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfbf875([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22aa10,_0x5d08f8);}function _0x3b18d8(){const _0xf1eb69=_0xfbf875([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e271(_0x16e3be(_0x3fd270)),_0x10c661=window[_0xfbf875([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfbf875([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf1eb69);return _0x10c661?window[_0xfbf875([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10038d(_0x10c661),0x10)*_0xd3e375:null;}function _0x534161(_0x5683a1){return new window[(_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bfb13,_0x19afa0)=>{_0x5683a1[_0xfbf875([0x74,0x68,0x65,0x6e])](_0x2bfb13,_0x19afa0),window[_0xfbf875([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19afa0,0x79ced8a5^_0x2141a7);});}}_0x282311[_0xfbf875([0x6f,0x6e])](_0xfbf875([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52a04e,_0x2e75ca)=>{if(_0x2e75ca[0x0]!=_0x3fd270)return _0x12f959(_0xfbf875([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e75ca[0x1]={..._0x2e75ca[0x1],[_0xfbf875([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb9c1f};},{[_0xfbf875([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfbf875([0x68,0x69,0x67,0x68])}),_0x282311[_0xfbf875([0x6f,0x6e])](_0xfbf875([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5eb3cf=>{_0x193eaa(_0x5eb3cf[_0xfbf875([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x113b37=!0x0,_0x1c660c(_0x5eb3cf[_0xfbf875([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xfbf875([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfbf875([0x6c,0x6f,0x77])}),_0x2e6205[_0xfbf875([0x74,0x68,0x65,0x6e])](()=>{_0x113b37||_0x12f959(_0xfbf875([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33c04d(){return _0x282311[_0xfbf875([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfbf875([0x76,0x69,0x65,0x77])][_0xfbf875([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xfbf875([0x61,0x75,0x74,0x6f]);}function _0x392388(){_0x282311[_0xfbf875([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfbf875([0x76,0x69,0x65,0x77])][_0xfbf875([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xfbf875([0x61,0x75,0x74,0x6f]);}}function _0x22806f(_0x19248b){const _0x46517f=[new window[(_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e2db7=>setTimeout(_0x4e2db7,0x79c632a9^_0x2141a7)),_0x2e6205[_0xfbf875([0x74,0x68,0x65,0x6e])](()=>new window[(_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a260b=>{const _0xed0b24=0x79cf0c62^_0x2141a7,_0x189b78=_0x2ebfe5[_0xfbf875([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x10a96f(){_0x189b78[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xed0b24&&_0x4a260b();}_0x10a96f(),_0x189b78[_0xfbf875([0x6f,0x6e])](_0xfbf875([0x61,0x64,0x64]),_0x10a96f);})),new window[(_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xac4a1=>{function _0xceec39(){for(const _0x4330d9 in window)if(window[_0xfbf875([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xfbf875([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4330d9))&&window[_0x4330d9]==_0x2db2fd)return _0xac4a1();_0x282311[_0xfbf875([0x73,0x74,0x61,0x74,0x65])]!=_0xfbf875([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xfbf875([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xceec39,0x79cf1fed^_0x2141a7);}_0x6110c8(_0xfbf875([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xceec39();})];return window[_0xfbf875([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xfbf875([0x72,0x61,0x63,0x65])](_0x46517f)[_0xfbf875([0x74,0x68,0x65,0x6e])](()=>_0x19248b);}async function _0x58a711(){if(await _0x2e6205,_0x6110c8(_0xfbf875([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1e071e=_0x2ebfe5[_0xfbf875([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x104c65=_0x2ebfe5[_0xfbf875([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])](_0x1e071e[_0xfbf875([0x69,0x64])]),_0x24db7d=_0x43e460(_0xfbf875([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x24db7d[_0xfbf875([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1e071e['id'],_0x104c65?_0x104c65['id']:null,!0x0),_0x24db7d[_0xfbf875([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xfbf875([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x24db7d[_0xfbf875([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x24db7d[_0xfbf875([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x49ee27,void(_0x24db7d[_0xfbf875([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x49ee27);}if(_0x6110c8(_0xfbf875([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1f2553=_0x43e460(_0xfbf875([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1f2553[_0xfbf875([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xfbf875([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f2553[_0xfbf875([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f2553[_0xfbf875([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x49ee27,_0x1f2553[_0xfbf875([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x49ee27;}_0x282311[_0xfbf875([0x6d,0x6f,0x64,0x65,0x6c])][_0xfbf875([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49ee27,_0x282311[_0xfbf875([0x6d,0x6f,0x64,0x65,0x6c])][_0xfbf875([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49ee27,_0x282311[_0xfbf875([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xfbf875([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f132e(){return _0x6110c8(_0xfbf875([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x43e460(_0xfbf875([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xfbf875([0x73,0x74,0x61,0x74,0x65])]==_0xfbf875([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b0010(){return _0x6110c8(_0xfbf875([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 _0x555d3a(){return _0x6110c8(_0xfbf875([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x23b480(_0x1d516f){const _0x4f0e71=_0x4811c5();_0x282311[_0x4f0e71]=_0xfbf875([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])+_0x1d516f,_0x1d516f[_0xfbf875([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xfbf875([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4811c5()]=_0x2db2fd),_0x1d516f!=_0xfbf875([0x56,0x61,0x6c,0x69,0x64])&&_0x58a711();}function _0x4811c5(){const _0x294255=window[_0xfbf875([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xfbf875([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xfbf875([0x6e,0x6f,0x77])]())[_0xfbf875([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xfbf875([0x2e]),'');let _0x357288=_0xfbf875([0x58]);for(let _0x45f674=0x0;_0x45f674<_0x294255[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45f674+=0x2){let _0x343a6a=window[_0xfbf875([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x294255[_0xfbf875([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45f674,_0x45f674+0x2));_0x343a6a>=_0x4a07a5[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x343a6a-=_0x4a07a5[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x357288+=_0x4a07a5[_0x343a6a];}return _0x357288;}function _0xf77f9(){const _0x4d4d62=_0x4ab903[_0xfbf875([0x73,0x70,0x6c,0x69,0x74])](_0xfbf875([0x2e]));if(0x3!=_0x4d4d62[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13cca4(_0x4d4d62[0x1]);function _0x13cca4(_0x5d5f96){const _0x2ce7f9=_0x2e27d2(_0x5d5f96);return _0x2ce7f9&&_0x1a8524()?_0x2ce7f9:null;function _0x1a8524(){const _0x8b9ddb=_0x2ce7f9[_0xfbf875([0x6a,0x74,0x69])],_0x440b6d=window[_0xfbf875([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8b9ddb[_0xfbf875([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8b9ddb[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b2072={..._0x2ce7f9,[_0xfbf875([0x6a,0x74,0x69])]:_0x8b9ddb[_0xfbf875([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8b9ddb[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b2072[_0xfbf875([0x76,0x63])],_0x16e3be(_0x1b2072)==_0x440b6d;}}}async function _0x23f1f3(){let _0x36bf6a=!0x0;try{const _0x2a7f74=_0x4ab903[_0xfbf875([0x73,0x70,0x6c,0x69,0x74])](_0xfbf875([0x2e])),[_0x597c64,_0x3b117a,_0x3fc79f]=_0x2a7f74;return _0x239d6a(_0x597c64),await _0x19cc90(_0x597c64,_0x3b117a,_0x3fc79f),_0x36bf6a;}catch(_0x32a745){return!0x1;}function _0x239d6a(_0x545387){const _0x160ae8=_0x2e27d2(_0x545387);_0x160ae8&&_0x160ae8[_0xfbf875([0x61,0x6c,0x67])]==_0xfbf875([0x45,0x53,0x32,0x35,0x36])||(_0x36bf6a=!0x1);}async function _0x19cc90(_0x4009e0,_0x3c445e,_0x3fda4d){const _0x5982b4=window[_0xfbf875([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xfbf875([0x66,0x72,0x6f,0x6d])](_0xeae3cf(_0x3fda4d),_0x35a09d=>_0x35a09d[_0xfbf875([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1499d1=new window[(_0xfbf875([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xfbf875([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4009e0+_0xfbf875([0x2e])+_0x3c445e),_0xced665=window[_0xfbf875([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xfbf875([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xced665)return;const _0x95f05f=await _0xced665[_0xfbf875([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xfbf875([0x6a,0x77,0x6b]),_0x340d16,{[_0xfbf875([0x6e,0x61,0x6d,0x65])]:_0xfbf875([0x45,0x43,0x44,0x53,0x41]),[_0xfbf875([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xfbf875([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xfbf875([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xced665[_0xfbf875([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xfbf875([0x6e,0x61,0x6d,0x65])]:_0xfbf875([0x45,0x43,0x44,0x53,0x41]),[_0xfbf875([0x68,0x61,0x73,0x68])]:{[_0xfbf875([0x6e,0x61,0x6d,0x65])]:_0xfbf875([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x95f05f,_0x5982b4,_0x1499d1)||(_0x36bf6a=!0x1);}}function _0x2e27d2(_0x179f0c){return _0x179f0c[_0xfbf875([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xfbf875([0x65,0x79]))?JSON[_0xfbf875([0x70,0x61,0x72,0x73,0x65])](_0xeae3cf(_0x179f0c)):null;}function _0xeae3cf(_0x3e15ad){return window[_0xfbf875([0x61,0x74,0x6f,0x62])](_0x3e15ad[_0xfbf875([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xfbf875([0x2b]))[_0xfbf875([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xfbf875([0x2f])));}function _0x16e3be(_0x4eb27c){let _0x3f3505=0x1505;function _0x4615cd(_0x243c26){for(let _0xcdaef8=0x0;_0xcdaef8<_0x243c26[_0xfbf875([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcdaef8++){const _0x2a0e05=_0x243c26[_0xfbf875([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xcdaef8);_0x3f3505=(_0x3f3505<<0x5)+_0x3f3505+_0x2a0e05,_0x3f3505&=_0x3f3505;}}function _0x3592d1(_0x6d60cc){Array[_0xfbf875([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6d60cc)?_0x6d60cc[_0xfbf875([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3592d1):_0x6d60cc&&typeof _0x6d60cc==_0xfbf875([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xfbf875([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6d60cc)[_0xfbf875([0x73,0x6f,0x72,0x74])]()[_0xfbf875([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe3b6cd,_0xa12c65])=>{_0x4615cd(_0xe3b6cd),_0x3592d1(_0xa12c65);}):_0x4615cd(window[_0xfbf875([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6d60cc));}return _0x3592d1(_0x4eb27c),_0x3f3505>>>0x0;}function _0x45e271(_0x3fb75e){return _0x3fb75e[_0xfbf875([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xfbf875([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xfbf875([0x30]));}function _0x10038d(_0x4ae948){return _0x4ae948[_0xfbf875([0x73,0x70,0x6c,0x69,0x74])]('')[_0xfbf875([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xfbf875([0x6a,0x6f,0x69,0x6e])]('');}function _0x6110c8(_0x59a605){return _0x282311[_0xfbf875([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfbf875([0x68,0x61,0x73])](_0x59a605);}function _0x43e460(_0xa366f8){return _0x282311[_0xfbf875([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfbf875([0x67,0x65,0x74])](_0xa366f8);}function _0x49ee27(){}function _0xfbf875(_0x562067){return _0x562067['map'](_0x1846ef=>String['fromCharCode'](_0x1846ef))['join']('');}_0x23b480(await _0x5d761d());}(this);}['createRevision'](_0x32f8ce){const _0x15bafd=this['editor']['plugins']['get']('Users');return new h({'id':_0x32f8ce['id'],'name':_0x32f8ce['name'],'creator':_0x32f8ce['creatorId']?_0x15bafd['getUser'](_0x32f8ce['creatorId']):null,'diffData':_0x32f8ce['diffData']||_0x32f8ce['data'],'authors':_0x32f8ce['authorsIds']['map'](_0x5ca193=>_0x15bafd['getUser'](_0x5ca193)),'createdAt':new Date(_0x32f8ce['createdAt']),'attributes':_0x32f8ce['attributes'],'fromVersion':_0x32f8ce['fromVersion'],'toVersion':_0x32f8ce['toVersion']});}['addRevision'](_0x2f2a36,_0x1ebb02=0x0){this['_revisions']['add'](_0x2f2a36,_0x1ebb02);}['getRevision'](_0x576ebc){return this['_revisions']['get'](_0x576ebc);}['getRevisions'](_0x53d439={'toJSON':!0x1}){const _0x2eccfb=Array['from'](this['_revisions']);return _0x2eccfb['reverse'](),_0x53d439['toJSON']?_0x2eccfb['map'](_0x55b8a3=>_0x55b8a3['toJSON']()):_0x2eccfb;}['getIndex'](_0x17662c){return this['_revisions']['getIndex'](_0x17662c);}['getEarlierVisibleRevision'](_0x196e82){const [,_0x18442e]=this['getRevisionsIterator'](_0x196e82,{'direction':'earlier'});return _0x18442e;}['getLaterVisibleRevision'](_0x3e1a76){const [,_0x2f008e]=this['getRevisionsIterator'](_0x3e1a76,{'direction':'later'});return _0x2f008e;}['getRevisionsInDiff'](_0x38cdf9){const _0x18e534=[];for(const _0x5396b4 of this['getRevisionsIterator'](_0x38cdf9['newRevisionId']))if(_0x18e534['push'](_0x5396b4),_0x5396b4['id']===_0x38cdf9['oldRevisionId'])break;return _0x18e534;}*['getRevisionsIterator'](_0x106935,{direction:_0x31ac4f='earlier',filter:_0x10c157=()=>!0x0}={}){const _0x585171='earlier'===_0x31ac4f?0x1:-0x1;let _0x3fcb7c=this['_revisions']['get'](_0x106935),_0x3a39db=this['getIndex'](_0x3fcb7c);for(yield _0x3fcb7c;_0x3fcb7c;){if(_0x3a39db+=_0x585171,_0x3fcb7c=this['getRevision'](_0x3a39db),!_0x3fcb7c)return;_0x10c157(_0x3fcb7c)&&(yield _0x3fcb7c);}}}class V extends _0x4e9206{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x482271,'c'],[_0x419fd5,'a'],[_0x258163,'e'],[_0x8c2408,'r'],[_0x2a0375,'u']]);['_typeCharToViewClass']=new Map([['c',_0x482271],['a',_0x419fd5],['e',_0x258163],['r',_0x8c2408],['u',_0x2a0375]]);async['loadRevisionData'](_0x351b63,_0xf6be4b){if(_0x351b63['diffData']||!_0xf6be4b)return;const _0x475f9b=this['editor']['config']['get']('collaboration.channelId'),_0x2ba5d3=await _0xf6be4b['getRevision']({'channelId':_0x475f9b,'revisionId':_0x351b63['id']});_0x351b63['diffData']=_0x2ba5d3['diffData'];}['getRevisionDocumentData'](_0x30e4b0){const _0x4aa422={};for(const _0x201c3f in _0x30e4b0['diffData']){if(_0x30e4b0['diffData'][_0x201c3f]['attachChange']&&!_0x30e4b0['diffData'][_0x201c3f]['attachChange']['isAttached'])continue;const _0x2b2c8f=this['_removeRevisionMarkers'](JSON['parse'](_0x30e4b0['diffData'][_0x201c3f]['insertions'])),_0x51a31c=this['editor']['editing']['view']['document'],_0x33c0f3=new _0x436aaa(_0x51a31c,_0x2b2c8f['map'](_0x1fcbca=>this['_getViewFromDiffObj'](_0x1fcbca,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4aa422[_0x201c3f]=this['editor']['data']['processor']['toData'](_0x33c0f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x4aa422;}['getRevisionRootsAttributes'](_0x5f4bd8){const _0x2dca26={};for(const _0x3a92be in _0x5f4bd8['diffData'])_0x5f4bd8['diffData'][_0x3a92be]['attachChange']&&!_0x5f4bd8['diffData'][_0x3a92be]['attachChange']['isAttached']||(_0x2dca26[_0x3a92be]=_0x5f4bd8['diffData'][_0x3a92be]['attributesAfter']||{});return _0x2dca26;}['_getTypeCharForViewElement'](_0x424d2a){return this['_viewClassToTypeChar']['get'](_0x424d2a['constructor']);}['_getViewFromDiffObj'](_0x56c92d,_0x42a373){const _0x47b90a=this['editor']['editing']['view']['document'];if('string'==typeof _0x56c92d)return new _0x108aaa(_0x47b90a,_0x56c92d);{let _0x1cd671,_0x23e688;_0x23e688='u'==_0x56c92d['type']||'r'==_0x56c92d['type']?[]:_0x56c92d['children']['map'](_0x34ab07=>this['_getViewFromDiffObj'](_0x34ab07,_0x42a373));const _0x20433b=this['_typeCharToViewClass']['get'](_0x56c92d['type'])||_0x468a6b,_0x3e6d81=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1cd671=new _0x20433b(_0x47b90a,_0x56c92d['name'],_0x56c92d['attributes'],_0x23e688),'u'==_0x56c92d['type']){const _0x4a9757=_0x56c92d['children'][0x0];if(_0x1cd671['render']=function(_0x2a6bb8){const _0x5b9179=_0x2a6bb8['createElement']('div');return _0x5b9179['innerHTML']=_0x4a9757,_0x5b9179['childNodes'][0x0];},_0x42a373){const _0x320b0a=new _0x436aaa(_0x47b90a);_0x320b0a['_appendChild'](_0x1cd671);const _0x2f6a9c=Array['from'](_0x3e6d81['viewChildrenToDom'](_0x320b0a,{'bind':!0x1})),_0x179605=_0x3e6d81['domDocument']['createElement']('div');_0x179605['append'](..._0x2f6a9c),_0x1cd671=Array['from'](_0x3e6d81['domChildrenToView'](_0x179605))[0x0];}}else{if('r'==_0x56c92d['type']){const _0x385af1=_0x56c92d['children'][0x0];if(_0x1cd671['render']=function(_0x2bbe8c){_0x2bbe8c['innerHTML']=_0x385af1;},_0x42a373){const _0x2502b=new _0x436aaa(_0x47b90a);_0x2502b['_appendChild'](_0x1cd671);const _0x261cfd=Array['from'](_0x3e6d81['viewChildrenToDom'](_0x2502b,{'bind':!0x1})),_0xed9090=_0x3e6d81['domDocument']['createElement']('div');_0xed9090['append'](..._0x261cfd);const _0x2fde24=Array['from'](_0x3e6d81['domChildrenToView'](_0xed9090));_0x2fde24['length']>0x1?_0x1cd671['_appendChild'](_0x2fde24):_0x1cd671=_0x2fde24[0x0];}}}if(_0x56c92d['customProperties']){for(const [_0x149e8b,_0x42a384]of _0x56c92d['customProperties'])_0x1cd671['_setCustomProperty'](_0x149e8b,_0x42a384);}const _0x309d05=_0x56c92d['fillerOffset']||null;return _0x1cd671['getFillerOffset']=()=>_0x309d05,_0x1cd671;}}['_makeModelFromViewString'](_0x3adfa9){const _0x5a6c39=JSON['parse'](_0x3adfa9),_0x75f672=this['editor']['editing']['view']['document'],_0x573960=new _0x436aaa(_0x75f672,_0x5a6c39['map'](_0x17b4cd=>this['_getViewFromDiffObj'](_0x17b4cd,!0x0)));return this['editor']['data']['toModel'](_0x573960);}['_removeRevisionMarkers'](_0x2e9193){return(_0x2e9193=_0x2e9193['filter'](_0x353d98=>!_0x353d98['name']||'revision-start'!==_0x353d98['name']&&'revision-end'!==_0x353d98['name']))['forEach'](_0x3b6e7f=>{'string'!=typeof _0x3b6e7f&&(_0x3b6e7f['children']=this['_removeRevisionMarkers'](_0x3b6e7f['children']),_0x3b6e7f['attributes']=_0x3b6e7f['attributes']['filter'](_0x34ddb7=>!_0x34ddb7[0x0]['startsWith']('data-revision-')));}),_0x2e9193;}}function g(_0x565d92,_0x4a176a,_0x37d95c){const t=_0x565d92['t'];switch(_0x4a176a){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'},_0x37d95c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x37d95c);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 _0x4e9206{['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[_0x26d238,I,V,_0xdcea90];}constructor(_0x5ab270){super(_0x5ab270),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 _0x2b37cd=_0x24ac73();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b37cd},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 _0x1e207d=this['repository']['getRevision'](0x0),_0x2255c0=_0x1e207d&&null===_0x1e207d['creator']?_0x1e207d:null;if(this['_continueCurrentRevision']=!!_0x2255c0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1ab5fb=this['_source']['getCurrentRevisionId'](),_0x5b90b5=this['repository']['getRevision'](_0x1ab5fb);if(_0x5b90b5)this['_startingVersion']=_0x5b90b5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x24b88e=this['_source']['history']['_operations']['find'](_0x181292=>!_0x181292['_isInit']),_0x2ed0a7=_0x24b88e?_0x24b88e['baseVersion']:this['_source']['history']['version'];_0x1e207d?(_0x1e207d['toVersion']<_0x2ed0a7&&_0x1e207d['_update']({'toVersion':_0x2ed0a7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2255c0['id'],this['_startingVersion']=_0x2255c0['fromVersion']):(this['_startingVersion']=_0x1e207d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ed0a7,this['_continueCurrentRevision']=!0x1);}}else _0x2255c0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2255c0['toVersion'],this['editor']['model']['document']['history']['version']),_0x2255c0['fromVersion']===_0x2255c0['toVersion']?(0x0!==_0x2255c0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2255c0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2255c0['id'],this['_startingVersion']=_0x2255c0['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',_0x447cff=>!_0x447cff),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e6842=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x260d36;for(const _0x4a5f3d in _0x5e6842){const _0xe0fd1a=_0x4a5f3d,_0x43f358=_0x5e6842[_0xe0fd1a];if('revisionHistoryLicenseKeyValid'==_0x43f358||'revisionHistoryLicenseKeyInvalid'==_0x43f358||'revisionHistoryLicenseKeyExpired'==_0x43f358||'revisionHistoryLicenseKeyDomainLimit'==_0x43f358||'revisionHistoryLicenseKeyNotAllowed'==_0x43f358||'revisionHistoryLicenseKeyEvaluationLimit'==_0x43f358||'revisionHistoryLicenseKeyTrialLimit'==_0x43f358||'revisionHistoryLicenseKeyUsageLimit'==_0x43f358){delete _0x5e6842[_0xe0fd1a],_0x260d36=_0x43f358,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x260d36&&_0x5e6842['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x260d36&&_0x5e6842['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x260d36&&_0x5e6842['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x260d36&&_0x5e6842['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x260d36&&_0x5e6842['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x260d36&&_0x5e6842['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x260d36&&_0x5e6842['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x50ceb1=this['repository']['getRevision'](0x0),_0x28ad58=await this['getRevisionDocumentData'](_0x50ceb1),_0x3a8bfc=await this['getRevisionRootsAttributes'](_0x50ceb1);this['_replaceEditorDataWithRevisionData'](_0x28ad58,_0x3a8bfc);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1b5539){this['_source']=_0x1b5539;}async['update'](){const _0x1e08c9=await this['_source']['getLatestVersion']();if(_0x1e08c9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x47d05f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1e08c9});_0x47d05f['authors']=_0x47d05f['authorsIds']['map'](_0x5b4cb8=>this['editor']['plugins']['get']('Users')['getUser'](_0x5b4cb8)),this['currentRevision']['_update'](_0x47d05f);}}async['saveRevision'](_0x451273={},_0x3e6f56=null){const _0x22ba32=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3e6f56>this['currentRevision']['toVersion']&&(_0x3e6f56=null),null===_0x3e6f56&&(_0x3e6f56=await this['_source']['getLatestVersion']());const _0x5d1bd3=this['_getFromVersion'](_0x3e6f56),_0x4c0bd8=this['buildRevisionData']({'from':_0x5d1bd3,'to':_0x3e6f56});if(this['currentRevision']['toVersion']<_0x3e6f56){const _0x547f41=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3e6f56,'to':_0x3e6f56});_0x547f41['authors']=[],_0x547f41['authorsIds']=[],_0x547f41['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x547f41,!0x0),delete _0x547f41['authors'],_0x22ba32['push'](_0x547f41);}_0x451273['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x451273['name']=_0x451273['name']||null,_0x451273['id']=_0x451273['id']||_0x24ac73(),_0x451273={..._0x451273,..._0x4c0bd8};const _0x22e522=this['addRevisionData'](_0x451273);_0x22ba32['push'](_0x451273);const _0x423076=this['repository']['getIndex'](_0x22e522);if(0x0!==_0x423076){const _0x3efd86=this['repository']['getRevision'](_0x423076-0x1);if(_0x3efd86['fromVersion']!==_0x3e6f56){const _0x2463bd=this['_revisionDataBuilder']['getData'](_0x3e6f56,_0x3efd86['toVersion']),_0xacdc9f={'id':_0x3efd86['id'],'diffData':_0x2463bd['diffData'],'authorsIds':_0x2463bd['authorsIds'],'authors':_0x2463bd['authorsIds']['map'](_0x5bd28d=>this['editor']['plugins']['get']('Users')['getUser'](_0x5bd28d)),'fromVersion':_0x3e6f56};_0x3efd86===this['currentRevision']&&(_0xacdc9f['createdAt']=new Date(_0x451273['createdAt']['getTime']()+0xa)),_0x3efd86['_update'](_0xacdc9f,!0x0),delete _0xacdc9f['authors'],_0x22ba32['push'](_0xacdc9f);}}if(this['adapter']){for(const _0x30edaf of _0x22ba32)this['_bufferUpdate'](_0x30edaf['id'],_0x30edaf,!0x0);this['sendBufferedUpdates']();}return _0x22e522;}['addRevisionData'](_0x3b62f6){const _0x3b57a5=this['repository']['createRevision'](_0x3b62f6);return this['adapter']&&_0x3b57a5['on']('_update',(_0x23f7ea,_0x395fa3,_0x2e2493)=>{_0x2e2493||(this['_bufferUpdate'](_0x395fa3['id'],_0x395fa3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3b57a5,this['_findInsertionIndex'](_0x3b57a5)),_0x3b57a5;}async['getRevisionDocumentData'](_0x3e8705){return await this['_utils']['loadRevisionData'](_0x3e8705,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3e8705);}async['getRevisionRootsAttributes'](_0x2c3067){return await this['_utils']['loadRevisionData'](_0x2c3067,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2c3067);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2cb7ad=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11ed6c=0x0;_0x11ed6c<_0x2cb7ad['length'];_0x11ed6c++){const _0x16d76a=_0x2cb7ad[_0x11ed6c];let _0x9ebb72=!0x1;for(const _0x3c880f of Object['keys'](_0x16d76a))void 0x0===_0x16d76a[_0x3c880f]?delete _0x16d76a[_0x3c880f]:'id'!==_0x3c880f&&(_0x9ebb72=!0x0);_0x9ebb72||(_0x2cb7ad[_0x11ed6c]=null);}if(_0x2cb7ad=_0x2cb7ad['filter'](_0x5d23da=>null!==_0x5d23da),!_0x2cb7ad['length'])return;for(let _0x1d4f92=0x0;_0x1d4f92<_0x2cb7ad['length'];_0x1d4f92++){const _0x2b80a0=_0x2cb7ad[_0x1d4f92];void 0x0!==_0x2b80a0['fromVersion']&&void 0x0===_0x2b80a0['toVersion']&&(_0x2b80a0['toVersion']=this['repository']['getRevision'](_0x2b80a0['id'])['toVersion']),void 0x0!==_0x2b80a0['toVersion']&&void 0x0===_0x2b80a0['fromVersion']&&(_0x2b80a0['fromVersion']=this['repository']['getRevision'](_0x2b80a0['id'])['fromVersion']);}const _0x38872e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2cb7ad,_0x38872e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3b5290=>{if(_0x3b5290){for(const _0x50abae of _0x3b5290)this['setRevisionData']({'id':_0x50abae['id'],'createdAt':_0x50abae['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x48eda0=null,from:_0x10cad6=null,to:_0x5a5d80=null}){_0x10cad6=null!==_0x10cad6?_0x10cad6:_0x48eda0['fromVersion'],_0x5a5d80=null!==_0x5a5d80?_0x5a5d80:_0x48eda0['toVersion'];const _0x453b02=this['_revisionDataBuilder']['getData'](_0x10cad6,_0x5a5d80),_0x2d06bd={'diffData':_0x453b02['diffData'],'authorsIds':_0x453b02['authorsIds'],'fromVersion':_0x10cad6,'toVersion':_0x5a5d80};if(!_0x48eda0||_0x5a5d80!==_0x48eda0['toVersion']){const _0x4a395f=_0x5a5d80-0x1,_0x948c2e=this['_source']['history']['getOperation'](_0x4a395f);_0x2d06bd['createdAt']=_0x948c2e&&_0x948c2e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x10cad6===this['_loadedStateData']['fromVersion']){for(const _0x519af6 of this['_loadedStateData']['authors'])_0x2d06bd['authorsIds']['includes'](_0x519af6['id'])||_0x2d06bd['authorsIds']['push'](_0x519af6['id']);}return _0x2d06bd;}['_bufferUpdate'](_0x1177e8,_0x1b4393,_0x373d43){if(this['_bufferedUpdates']['has'](_0x1177e8)){const _0x6eaec8=this['_bufferedUpdates']['get'](_0x1177e8);_0x1b4393=_0x373d43?{..._0x6eaec8,..._0x1b4393}:{..._0x1b4393,..._0x6eaec8};}this['_bufferedUpdates']['set'](_0x1177e8,_0x1b4393);}['setRevisionData'](_0x1ce3aa){const _0x4376b9=this['repository']['getRevision'](_0x1ce3aa['id']);if(_0x1ce3aa['createdAt']&&(_0x1ce3aa['createdAt']=new Date(_0x1ce3aa['createdAt'])),_0x1ce3aa['authorsIds']){const _0x1528a3=this['editor']['plugins']['get']('Users');_0x1ce3aa['authors']=_0x1ce3aa['authorsIds']['map'](_0x1f47a1=>_0x1528a3['getUser'](_0x1f47a1));}_0x4376b9['_update'](_0x1ce3aa,!0x0);}['_createInitialRevision'](_0x4df009){const _0x2d9f69=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2d9f69)this['_initialRevisionId']=_0x2d9f69['id'];else{const _0x476cc6=!this['editor']['model']['document']['roots']['find'](_0x3f2cf6=>this['editor']['model']['hasContent'](_0x3f2cf6)),_0x38a6eb=this['editor']['plugins']['get']('Users')['me']['id'],_0x31012a=g(this['editor']['locale'],_0x476cc6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4df009,'to':_0x4df009,'id':this['_initialRevisionId'],'name':_0x31012a,'creatorId':_0x38a6eb});}}['_createCurrentRevision'](_0x292870){const _0x341791=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x341791),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x292870,'to':_0x292870,'id':_0x341791,'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'](_0x27c79c,_0x3b2b99){let _0x1edcb6=this['editor']['config']['get']('initialData'),_0x26fdd1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1edcb6){_0x1edcb6={};for(const _0x11bad9 of this['editor']['model']['document']['getRootNames']())_0x1edcb6[_0x11bad9]='';}if('string'==typeof _0x1edcb6&&(_0x1edcb6={'main':_0x1edcb6}),void 0x0===_0x26fdd1){_0x26fdd1={};for(const _0x271715 of this['editor']['model']['document']['getRootNames']())_0x26fdd1[_0x271715]={};}let _0x528408=!0x1;const _0x4f6f2b=Object['keys'](_0x1edcb6),_0x1dd1e4=Object['keys'](_0x27c79c);for(const _0x292506 of _0x4f6f2b){if(_0x1edcb6[_0x292506]!==_0x27c79c[_0x292506]&&''!==_0x1edcb6[_0x292506]['trim']()){_0x528408=!0x0;break;}if(!_0x44bb5b(_0x26fdd1[_0x292506],_0x3b2b99[_0x292506])&&Object['keys'](_0x26fdd1[_0x292506])['length']>0x0){_0x528408=!0x0;break;}}_0x528408||(_0x528408=_0x1dd1e4['some'](_0x66d7ba=>!this['editor']['model']['document']['getRoot'](_0x66d7ba))),_0x528408&&_0x4481c3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1edcb6,'editorRootsAttributes':_0x26fdd1,'revisionData':_0x27c79c,'revisionRootsAttributes':_0x3b2b99}),this['editor']['config']['set']('initialData',_0x27c79c),this['editor']['config']['set']('rootsAttributes',_0x3b2b99);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x461c4f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x461c4f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x415b94){const _0x2459a9=this['repository']['getRevisions']();_0x2459a9['reverse']();let _0x543c8c=0x0;for(;_0x543c8c<_0x2459a9['length'];){const _0x347a35=_0x2459a9[_0x543c8c];if(_0x347a35===this['currentRevision']){_0x543c8c++;continue;}if(_0x347a35['id']===this['_initialRevisionId'])break;const _0x1888ea=_0x415b94['toVersion']-_0x347a35['toVersion']||_0x415b94['fromVersion']-_0x347a35['fromVersion'];if(_0x1888ea>0x0)break;if(_0x1888ea<0x0)_0x543c8c++;else{if(!_0x415b94['creator']&&_0x347a35['creator'])break;if(_0x347a35['creator']||!_0x415b94['creator']){if(_0x415b94['createdAt']>_0x347a35['createdAt'])break;_0x543c8c++;}else _0x543c8c++;}}return _0x543c8c;}['_getFromVersion'](_0x272070){const _0x415c69=this['repository']['getRevisions']();_0x415c69['reverse'](),_0x415c69['shift']();const _0x4bf31d=_0x415c69['find'](_0x88f66b=>_0x88f66b['toVersion']<=_0x272070)['toVersion'];return _0x4bf31d<this['_startingVersion']?this['_startingVersion']:_0x4bf31d;}['_makeRevision']({name:_0x587cde,from:_0x337dfa,to:_0x253ae0,creatorId:_0x29f3a1,id:_0x39e634}){const _0x46ea5f=this['buildRevisionData']({'from':_0x337dfa,'to':_0x253ae0});_0x46ea5f['name']=_0x587cde,_0x46ea5f['creatorId']=_0x29f3a1,_0x46ea5f['id']=_0x39e634;const _0x5de59a=this['addRevisionData'](_0x46ea5f);return this['adapter']&&this['_bufferUpdate'](_0x46ea5f['id'],_0x46ea5f,!0x0),_0x5de59a;}['_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(_0x2d0c4e){this['editor']=_0x2d0c4e,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'](_0x5019f5){this['source']=_0x5019f5;const _0x27f96e=new Map(),_0x403a1b=new Map(),_0x4db907=this['editor']['model']['document']['roots']['map'](_0x1fb0de=>_0x1fb0de['rootName']);for(const _0x46be32 of _0x4db907){const _0x38678b=this['editor']['model']['document']['getRoot'](_0x46be32),_0x944ae2=N(_0x38678b);_0x27f96e['set'](_0x46be32,_0x944ae2),_0x403a1b['set'](_0x46be32,Object['fromEntries'](_0x38678b['getAttributes']()));}const _0x35adb6=Array['from'](this['editor']['model']['markers'])['map'](_0x480d61=>[_0x480d61['name'],_0x480d61['getRange']()]),_0x1b11d1=this['source']['version'];this['_saveMetaData'](_0x1b11d1,_0x27f96e,_0x35adb6,_0x403a1b),this['_startingRevisionId']=this['_revisionId'];const _0x1eb48b=new Map(),_0x36a101=new Map();for(const _0x5a1b0c of _0x4db907){const _0x189bbd=P(_0x5a1b0c);_0x1eb48b['set'](_0x5a1b0c,_0x189bbd),_0x36a101['set'](_0x5a1b0c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1eb48b,[],_0x36a101);}['getData'](_0x52fb07,_0x400cbe){if(this['_lastFrom']===_0x52fb07&&this['_lastTo']<=_0x400cbe)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x400cbe,!0x0);else{if(!this['_savedMetaData']['has'](_0x52fb07)){const _0x518197=this['_getPreviousFrom'](_0x52fb07);this['_calculateMetaData'](_0x518197,_0x52fb07,!0x1);}this['_calculateMetaData'](_0x52fb07,_0x400cbe,!0x0);}return this['_lastFrom']=_0x52fb07,this['_lastTo']=_0x400cbe,this['_getState']();}['loadState'](_0x3f04ba){const _0x42005a=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3f04ba['fromVersion'],this['_lastTo']=_0x3f04ba['toVersion'];for(const _0x1056bf in _0x3f04ba['diffData']){const _0x516e29=_0x3f04ba['diffData'][_0x1056bf]['attachChange'],_0x52e69b=_0x1e7ff6(_0x3f04ba['diffData'][_0x1056bf]['attributesBefore'])||{},_0x18c462=_0x42005a['_makeModelFromViewString'](_0x3f04ba['diffData'][_0x1056bf]['deletions']);_0x18c462['rootName']=_0x1056bf,_0x18c462['_isAttached']=!_0x516e29||!_0x516e29['isAttached'],_0x18c462['isAttached']=()=>_0x18c462['_isAttached'],this['_baseRoots']['set'](_0x1056bf,_0x18c462),this['_baseRootsAttributes']['set'](_0x1056bf,_0x52e69b),_0x516e29&&this['_touchedRoots']['set'](_0x1056bf,_0x516e29);const _0x32629d=this['_makeIdsRoot'](_0x18c462);this['_baseIdsRoots']['set'](_0x1056bf,_0x32629d);for(const [_0x6a8125,_0x5b656d]of _0x18c462['markers']){if(!_0x6a8125['startsWith']('revision:'))continue;const _0x2c6d47=_0x6a8125['split'](':')[0x2];for(const _0x391295 of _0x5b656d['getWalker']({'singleCharacters':!0x0})){const _0x2e7376=this['_getVidAttributeName'](_0x391295),_0x16163c='elementEnd'==_0x391295['type']?_0x391295['previousPosition']['path']['slice'](0x0,-0x1):_0x391295['previousPosition']['path'],_0x4cfb20=_0x32629d['getNodeByPath'](_0x16163c)['getAttribute'](_0x2e7376);this['_touched']['set'](_0x4cfb20,{'userId':_0x2c6d47});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3a55b5=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x533826=>!this['_touched']['has'](_0x533826));let _0x54b712=0x0;const _0x283c80=new Map();for(const _0x22d315 in _0x3f04ba['diffData']){const _0x2dc931=_0x3f04ba['diffData'][_0x22d315]['attachChange'],_0x58d73c=_0x1e7ff6(_0x3f04ba['diffData'][_0x22d315]['attributesAfter'])||{},_0xea2a65=_0x42005a['_makeModelFromViewString'](_0x3f04ba['diffData'][_0x22d315]['insertions']);_0xea2a65['rootName']=_0x22d315,_0xea2a65['_isAttached']=!_0x2dc931||_0x2dc931['isAttached'],_0xea2a65['isAttached']=()=>_0xea2a65['_isAttached'],this['_diffRoots']['set'](_0x22d315,_0xea2a65),this['_diffRootsAttributes']['set'](_0x22d315,_0x58d73c);const _0x435c0e=this['_makeIdsRoot'](_0xea2a65,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x22d315,_0x435c0e),_0x283c80['set'](_0x22d315,_0xea2a65['isAttached']()?_0x58d73c:{});for(const [_0x42b7ca,_0x5b9b4a]of _0xea2a65['markers']){if(!_0x42b7ca['startsWith']('revision:'))continue;const _0x4c67b6=_0x42b7ca['split'](':')[0x2];for(const _0x592bf8 of _0x5b9b4a['getWalker']({'singleCharacters':!0x0})){const _0x521d9e=this['_getVidAttributeName'](_0x592bf8),_0x3875d6=this['_revisionId']++,_0x23a382='elementEnd'==_0x592bf8['type']?_0x592bf8['previousPosition']['path']['slice'](0x0,-0x1):_0x592bf8['previousPosition']['path'];_0x435c0e['getNodeByPath'](_0x23a382)['_setAttribute'](_0x521d9e,_0x3875d6),this['_touched']['set'](_0x3875d6,{'userId':_0x4c67b6});}}for(const _0xd598c7 of this['editor']['model']['createRangeIn'](_0xea2a65)['getWalker']({'singleCharacters':!0x0})){const _0x4044fe=this['_getVidAttributeName'](_0xd598c7),_0x3fbdad='elementEnd'==_0xd598c7['type']?_0xd598c7['previousPosition']['path']['slice'](0x0,-0x1):_0xd598c7['previousPosition']['path'],_0x4701e3=_0x435c0e['getNodeByPath'](_0x3fbdad);_0x4701e3['getAttribute'](_0x4044fe)>0x0||_0x4701e3['_setAttribute'](_0x4044fe,_0x3a55b5[_0x54b712++]);}for(const [_0x54f71b,_0x3eda3c]of _0xea2a65['markers'])_0x54f71b['startsWith']('revision:')||this['_markers']['set'](_0x54f71b,_0x3eda3c);}const _0x145d5c=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x145d5c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x145d5c,0x1));const _0x269e23=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x269e23),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x269e23,0x1));const _0x541f46=Array['from'](this['_diffRoots'])['map'](([_0x24c0ff,_0x5ad007])=>[_0x24c0ff,N(_0x5ad007)]);this['_saveMetaData'](this['_lastTo'],_0x541f46,this['_markers'],_0x283c80);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x57038e,_0x4a476e,_0x1530d5,_0x5939b8){const _0x18afcb=new Map(_0x4a476e),_0xd5d06e=new Map(_0x1e7ff6(_0x5939b8)),_0x5016b4=new Map();for(const [_0x47ec5c,_0x2a8854]of _0x1530d5)_0x5016b4['set'](_0x47ec5c,{'start':_0x2a8854['start']['clone'](),'end':_0x2a8854['end']['clone'](),'rootName':_0x2a8854['root']['rootName']});this['_savedMetaData']['set'](_0x57038e,{'roots':_0x18afcb,'markers':_0x5016b4,'rootsAttributes':_0xd5d06e});}['_removeMetaData'](_0x33c90a){this['_savedMetaData']['delete'](_0x33c90a);}['_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'](_0x2d2e3f,_0x2ff975=null){let _0xaa1836=null;_0x2d2e3f['is']('documentFragment')||(_0xaa1836=new ut(_0x2d2e3f['name'],{'vid_start':null===_0x2ff975?this['_revisionId']++:_0x2ff975++}));const _0x35c898=[];for(const _0x39fc33 of _0x2d2e3f['getChildren']())if(_0x39fc33['is']('element')){_0x35c898['push'](this['_makeIdsRoot'](_0x39fc33,_0x2ff975));const _0x57e05b=_0x35c898[_0x35c898['length']-0x1];null!==_0x2ff975&&(_0x2ff975=_0x57e05b['is']('element','$text')?_0x57e05b['getAttribute']('vid')+0x1:_0x57e05b['getAttribute']('vid_end')+0x1);}else{for(let _0x42da90=0x0;_0x42da90<_0x39fc33['offsetSize'];_0x42da90++)_0x35c898['push'](new ut('$text',{'vid':null===_0x2ff975?this['_revisionId']++:_0x2ff975++}));}if(_0x2d2e3f['is']('documentFragment')){const _0x5aa12d=P(_0x2d2e3f['rootName']);return _0x5aa12d['_insertChild'](0x0,_0x35c898),_0x5aa12d;}return _0xaa1836['_setAttribute']('vid_end',null===_0x2ff975?this['_revisionId']++:_0x2ff975++),_0xaa1836['_insertChild'](0x0,_0x35c898),_0xaa1836;}['_calculateMetaData'](_0x55b020,_0x166eb5,_0x2ef4bc){this['_reset']();const {roots:_0x141ac7,markers:_0x2e23ce,rootsAttributes:_0x3086c3}=this['_savedMetaData']['get'](_0x55b020);this['_baseRoots']=new Map(_0x141ac7),this['_baseRootsAttributes']=new Map(_0x1e7ff6(_0x3086c3));for(const [_0x553427,_0x562ef6]of this['_baseRoots'])if('$graveyard'!==_0x553427&&(this['_diffRoots']['set'](_0x553427,N(_0x562ef6)),this['_diffRootsAttributes']=new Map(_0x1e7ff6(_0x3086c3)),_0x2ef4bc)){const _0x2b9885=this['_revisionId'];this['_idsRoots']['set'](_0x553427,this['_makeIdsRoot'](_0x562ef6)),this['_baseIdsRoots']['set'](_0x553427,this['_makeIdsRoot'](_0x562ef6,_0x2b9885));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x2ef4bc&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xc14a60,_0x411d67]of _0x2e23ce){const _0x5031ce=this['_baseRoots']['get'](_0x411d67['rootName']),_0x4d10e2=this['_diffRoots']['get'](_0x411d67['rootName']),_0x4a718d=new ft(this['_fixPosition'](_0x411d67['start'],_0x5031ce),this['_fixPosition'](_0x411d67['end'],_0x5031ce)),_0x5d02b3=this['_fixRange'](_0x4a718d,_0x4d10e2);_0x5031ce['markers']['set'](_0xc14a60,_0x4a718d),this['_markers']['set'](_0xc14a60,_0x5d02b3);}this['_applyOperations'](_0x55b020,_0x166eb5,_0x2ef4bc);}['_applyOperations'](_0x38a4db,_0x2bf046,_0x137ebd){for(const _0x3524d6 of this['source']['getOperations'](_0x38a4db,_0x2bf046))this['_handleOperation'](_0x3524d6,_0x137ebd);for(const _0x3163cd of this['_diffRoots']['values']())_0x3163cd['markers']['clear']();for(const [_0x31970c,_0xc604bd]of this['_markers']){this['_diffRoots']['get'](_0xc604bd['root']['rootName'])['markers']['set'](_0x31970c,_0xc604bd['clone']());}const _0x1ccf16=new Map(),_0x3ff9cd=new Map();for(const [_0x5618f8,_0x5b331d]of this['_diffRoots'])_0x1ccf16['set'](_0x5618f8,N(_0x5b331d)),_0x3ff9cd['set'](_0x5618f8,this['_diffRootsAttributes']['get'](_0x5618f8));this['_saveMetaData'](_0x2bf046,_0x1ccf16,this['_markers'],_0x3ff9cd);}['_getPreviousFrom'](_0x5bec98){const _0x85f51c=Array['from'](this['_savedMetaData']['keys']());_0x85f51c['sort']((_0x2404e5,_0x16477d)=>_0x2404e5-_0x16477d),_0x85f51c['reverse']();for(const _0x305fd1 of _0x85f51c)if(_0x305fd1<_0x5bec98)return _0x305fd1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x427e09,_0x38105d){const _0x100204=Array['from'](_0x38105d['markers'])['map'](([_0x2ff95c,_0x1bbb79])=>[_0x2ff95c,this['_fixRange'](_0x1bbb79,_0x427e09)]);_0x427e09['markers']=new Map(_0x100204);}['_transformMarkers'](_0x2eee67){for(const _0x556257 of this['_markers']['values']()){const _0x42f39a=_0x556257['getTransformedByOperation'](_0x2eee67),_0x4e9189=ft['_createFromRanges'](_0x42f39a);_0x556257['start']=_0x4e9189['start'],_0x556257['end']=_0x4e9189['end'];}}['_handleOperation'](_0x5bedd0,_0x4a0ec9){if('addRoot'!=_0x5bedd0['type']&&'detachRoot'!=_0x5bedd0['type']){if('insert'==_0x5bedd0['type']){const _0x26bdb3=_0x5bedd0['position']['root']['rootName'];this['_diffRoots']['has'](_0x26bdb3)||(this['_diffRoots']['set'](_0x26bdb3,P(_0x26bdb3,!0x0)),this['_diffRootsAttributes']['set'](_0x26bdb3,{}),_0x4a0ec9&&this['_idsRoots']['set'](_0x26bdb3,P(_0x26bdb3,!0x0)));}else{if('addRootAttribute'==_0x5bedd0['type']||'removeRootAttribute'==_0x5bedd0['type']||'changeRootAttribute'==_0x5bedd0['type'])return void this['_handleRootAttributeOperation'](_0x5bedd0);'marker'==_0x5bedd0['type']&&this['_handleMarkerOperation'](_0x5bedd0);}if('marker'!==_0x5bedd0['type']){const _0x103aa2=this['_cloneOperation'](_0x5bedd0,this['_diffRoots']);_0x103aa2['_execute'](),this['_transformMarkers'](_0x103aa2);}if(_0x4a0ec9)switch(_0x5bedd0['type']){case'insert':this['_handleInsertOperation'](_0x5bedd0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5bedd0);break;case'merge':this['_handleMergeOperation'](_0x5bedd0);break;case'split':this['_handleSplitOperation'](_0x5bedd0);}}else this['_handleRootOperation'](_0x5bedd0,_0x4a0ec9);}['_cloneOperation'](_0x5b007e,_0x3cf0e4){const _0x492aac=_0x5b007e['clone']();return _0x492aac['_authorId']=_0x5b007e['_authorId'],this['_fixOperation'](_0x492aac,_0x3cf0e4),_0x492aac;}['_getBaseVids'](_0x39d005){return _0x39d005['map'](_0x337d18=>{const _0x5e44a1=this['_getVidAttributeName'](_0x337d18);return Number(_0x337d18['item']['getAttribute'](_0x5e44a1));});}['_generateTape'](_0xad043,_0x128d03){if(_0xad043['is']('element','$text'))_0x128d03['push']({'item':_0xad043,'type':'text'});else{_0xad043['is']('element')&&_0x128d03['push']({'item':_0xad043,'type':'elementStart'});for(const _0x480147 of _0xad043['getChildren']())this['_generateTape'](_0x480147,_0x128d03);_0xad043['is']('element')&&_0x128d03['push']({'item':_0xad043,'type':'elementEnd'});}return _0x128d03;}['_getState'](){const _0x501dd7=new Map(this['_touched']),_0x196006=new Map(_0x501dd7),_0x1e3e53=new Map(),_0x204ea1={'insertions':{},'deletions':{}},_0x4b1a16={'insertions':{},'deletions':{}},_0x55a222=new Map(),_0x32af09=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x32af09['delete']('$graveyard');for(const _0x117ff5 of _0x32af09){const _0x450f39=this['_diffRoots']['get'](_0x117ff5)||P(_0x117ff5,!0x1),_0x34760d=this['_baseRoots']['get'](_0x117ff5)||P(_0x117ff5,!0x1);_0x450f39['isAttached']()||_0x34760d['isAttached']()?(_0x204ea1['insertions'][_0x117ff5]=N(_0x450f39),_0x204ea1['deletions'][_0x117ff5]=N(_0x34760d),this['_copyMarkers'](_0x204ea1['deletions'][_0x117ff5],_0x34760d),this['_copyMarkers'](_0x204ea1['insertions'][_0x117ff5],_0x450f39),_0x4b1a16['insertions'][_0x117ff5]=this['_generateTape'](this['_idsRoots']['get'](_0x117ff5),[]),_0x4b1a16['deletions'][_0x117ff5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x117ff5)||P(_0x117ff5,!0x1),[])):_0x32af09['delete'](_0x117ff5);}for(const _0x3f9bb4 of _0x32af09){const _0x47f8bc=_0x4b1a16['insertions'][_0x3f9bb4];for(const _0x3b7cd2 of _0x47f8bc){const _0x35960f=this['_getVidAttributeName'](_0x3b7cd2),_0x28a2e0=_0x3b7cd2['item']['getAttribute'](_0x35960f);_0x196006['delete'](_0x28a2e0),_0x28a2e0>=this['_startingRevisionId']&&_0x1e3e53['set'](_0x28a2e0,_0x501dd7['get'](_0x28a2e0));}}for(const _0x328ccf of _0x32af09){const _0x50d3df=_0x4b1a16['insertions'][_0x328ccf],_0x40964c=this['_getBaseVids'](_0x4b1a16['deletions'][_0x328ccf]);let _0x4bee57=0x0;for(const _0x575058 of _0x50d3df){const _0x421c90=this['_getVidAttributeName'](_0x575058),_0x37e60e=_0x575058['item']['getAttribute'](_0x421c90);if(!_0x1e3e53['has'](_0x37e60e)&&!_0x55a222['has'](_0x37e60e)){if(_0x196006['has'](_0x37e60e))_0x4bee57++;else{if(_0x37e60e!=_0x40964c[_0x4bee57]){const _0x477d53=_0x501dd7['get'](_0x37e60e)||_0x501dd7['get'](_0x40964c[_0x4bee57]);for(;_0x37e60e!=_0x40964c[_0x4bee57];)_0x196006['has'](_0x40964c[_0x4bee57])||(_0x55a222['set'](_0x40964c[_0x4bee57],_0x477d53),_0x501dd7['set'](_0x40964c[_0x4bee57],_0x477d53)),_0x4bee57++;}_0x4bee57++;}}}}for(const _0x275eb2 of _0x32af09){const _0x49bbbf=_0x4b1a16['insertions'][_0x275eb2];for(const _0x20479c of _0x49bbbf){const _0x30a124=this['_getVidAttributeName'](_0x20479c),_0x21c336=_0x20479c['item']['getAttribute'](_0x30a124);if(_0x55a222['has'](_0x21c336)){const _0x42b17a=_0x55a222['get'](_0x21c336);_0x196006['has'](_0x21c336)||_0x196006['set'](_0x21c336,{..._0x42b17a}),_0x1e3e53['set'](_0x21c336,{..._0x42b17a});}}}for(const _0x1f06cb of _0x196006['keys']())_0x1f06cb>=this['_startingRevisionId']&&_0x196006['delete'](_0x1f06cb);const _0x1420f6=new Map();for(const _0x5dce08 of _0x32af09){let _0x3e50ef=_0x4b1a16['insertions'][_0x5dce08];for(const _0x4b0cd3 of _0x3e50ef)if(_0x4b0cd3['item']['is']('element','tableCell')){const _0x2cadf9=this['_getVidAttributeName'](_0x4b0cd3),_0x9ea83=_0x4b0cd3['item']['getAttribute'](_0x2cadf9);if(_0x1e3e53['has'](_0x9ea83)){const _0x266197=_0x4b0cd3['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c48da=_0x1420f6['get'](_0x266197)||new Set();_0x1c48da['add'](_0x1e3e53['get'](_0x9ea83)['userId']),_0x1420f6['set'](_0x266197,_0x1c48da);}}_0x3e50ef=_0x4b1a16['deletions'][_0x5dce08];for(const _0x23ce99 of _0x3e50ef)if(_0x23ce99['item']['is']('element','tableCell')){const _0x1c7b0e=this['_getVidAttributeName'](_0x23ce99),_0x38ca12=_0x23ce99['item']['getAttribute'](_0x1c7b0e);if(_0x196006['has'](_0x38ca12)){const _0xe8eadb=_0x23ce99['item']['parent']['parent']['getAttribute']('vid_start'),_0x20f6e0=_0x1420f6['get'](_0xe8eadb)||new Set();_0x20f6e0['add'](_0x196006['get'](_0x38ca12)['userId']),_0x1420f6['set'](_0xe8eadb,_0x20f6e0);}}for(const _0x5d3dd4 of _0x1420f6['keys']())(_0x1e3e53['has'](_0x5d3dd4)||_0x196006['has'](_0x5d3dd4))&&_0x1420f6['delete'](_0x5d3dd4);}for(const _0x24304b of _0x32af09){const _0xe933c=_0x4b1a16['insertions'][_0x24304b];let _0x291219=null,_0x2fd2a4=null;for(const _0x4bce38 of _0xe933c){const _0x47659b=this['_getVidAttributeName'](_0x4bce38),_0x2f9475=_0x4bce38['item']['getAttribute'](_0x47659b),_0x25bf44=_0x1420f6['get'](_0x2f9475);_0x25bf44&&'elementStart'==_0x4bce38['type']&&(_0x291219=Array['from'](_0x25bf44)[0x0],_0x2fd2a4=_0x4bce38['item']['getAttribute']('vid_end')),_0x291219&&(_0x196006['set'](_0x2f9475,{'userId':_0x291219}),_0x1e3e53['set'](_0x2f9475,{'userId':_0x291219})),_0x2f9475==_0x2fd2a4&&(_0x291219=null,_0x2fd2a4=null);}}const _0x1abb9a={},_0x1ed4ab=new Set();for(const _0x58ee3c of _0x32af09){const _0x5c1627=_0x204ea1['deletions'][_0x58ee3c],_0x1bf1eb=_0x204ea1['insertions'][_0x58ee3c];for(const {userId:_0x1d8654}of this['_touchedMarkers']['values']())null!==_0x1d8654&&_0x1ed4ab['add'](_0x1d8654);for(const {userId:_0xc7302}of this['_touchedRoots']['values']())null!==_0xc7302&&_0x1ed4ab['add'](_0xc7302);this['_markChanges'](_0x1bf1eb,_0x4b1a16['insertions'][_0x58ee3c],_0x1e3e53,'insertion',_0x1ed4ab),this['_markChanges'](_0x5c1627,_0x4b1a16['deletions'][_0x58ee3c],_0x196006,'deletion',_0x1ed4ab),_0x1abb9a[_0x58ee3c]={'insertions':this['_prepareViewToSave'](_0x1bf1eb),'deletions':this['_prepareViewToSave'](_0x5c1627),'attachChange':this['_touchedRoots']['get'](_0x58ee3c)||null,'attributesBefore':_0x1e7ff6(this['_baseRootsAttributes']['get'](_0x58ee3c))||{},'attributesAfter':_0x1e7ff6(this['_diffRootsAttributes']['get'](_0x58ee3c))};}return{'diffData':_0x1abb9a,'authorsIds':Array['from'](_0x1ed4ab)};}['_processRootBeforeSave'](_0x524fb0){for(const [,_0x22c0f7]of _0x524fb0['markers']){const _0x5bdc7f=_0x22c0f7['start']['getAncestors']()['filter'](_0x4d2a03=>'tableCell'==_0x4d2a03['name']);for(const _0x515fe8 of _0x5bdc7f)0x1==_0x515fe8['childCount']&&_0x515fe8['getChild'](0x0)['is']('element','paragraph')&&_0x515fe8['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1b546b){this['_processRootBeforeSave'](_0x1b546b);const _0x39a8ed=this['editor']['data']['toView'](_0x1b546b,{}),_0x15e42c=Array['from'](_0x39a8ed['getChildren']())['map'](_0x4313f0=>this['_getViewJson'](_0x4313f0));return JSON['stringify'](_0x15e42c);}['_getViewJson'](_0x1d5b67){if(_0x1d5b67['is']('$text'))return _0x1d5b67['data'];{const _0x5dcc3c=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1d0694=_0x1d5b67,_0x541210=this['editor']['data']['htmlProcessor']['domConverter'],_0x9e7888={'type':_0x5dcc3c['_getTypeCharForViewElement'](_0x1d0694),'name':_0x1d0694['name'],'attributes':Array['from'](_0x1d0694['getAttributes']()),'children':Array['from'](_0x1d0694['getChildren']())['map'](_0x33d516=>this['_getViewJson'](_0x33d516))};if(_0x1d5b67['is']('uiElement')&&'$comment'!=_0x1d5b67['name']){const _0x1d3b81=_0x1d5b67['render'](_0x541210['domDocument'],_0x541210);_0x9e7888['children']['push'](_0x1d3b81['outerHTML']);}else{if(_0x1d5b67['is']('rawElement')){const _0x139f10=_0x541210['domDocument']['createElement'](_0x1d0694['name']);_0x1d5b67['render'](_0x139f10,_0x541210),_0x9e7888['children']['push'](_0x139f10['innerHTML']);}}const _0x4c9b18=Array['from'](_0x1d0694['getCustomProperties']());_0x4c9b18['length']>0x0&&(_0x9e7888['customProperties']=_0x4c9b18);const _0x48fd19=_0x1d0694['getFillerOffset']();return null!==_0x48fd19&&(_0x9e7888['fillerOffset']=_0x48fd19),_0x9e7888;}}['_markChanges'](_0x42a721,_0x10f4a0,_0x5ee69a,_0x2ce550,_0x514685){let _0x2bff9c=null,_0x2a7e9e=null,_0x58414d=0x0;const _0x3211ec=this['editor']['model'];for(let _0xcbd4c5=0x0;_0xcbd4c5<_0x10f4a0['length'];_0xcbd4c5++){const _0x37d0a5=this['_getVidAttributeName'](_0x10f4a0[_0xcbd4c5]),_0x2a22a5=_0x10f4a0[_0xcbd4c5]['item']['getAttribute'](_0x37d0a5),_0x4bde55=_0x5ee69a['get'](_0x2a22a5),_0x6a2b42=_0xcbd4c5==_0x10f4a0['length']-0x1;(!_0x2bff9c&&_0x4bde55&&(_0x2bff9c=_0x4bde55,_0x2a7e9e=_0x10f4a0[_0xcbd4c5]),_0x2bff9c&&(!_0x4bde55||_0x4bde55['userId']!=_0x2bff9c['userId']))&&(_0x18c9ec(_0x4bde55,F(_0x2a7e9e,_0x42a721,_0x3211ec),F(_0x10f4a0[_0xcbd4c5],_0x42a721,_0x3211ec)),_0x2bff9c=_0x4bde55||null,_0x2a7e9e=_0x4bde55?_0x10f4a0[_0xcbd4c5]:null),_0x2bff9c&&_0x6a2b42&&_0x18c9ec(_0x4bde55,F(_0x2a7e9e,_0x42a721,_0x3211ec),B(_0x10f4a0[_0xcbd4c5],_0x42a721,_0x3211ec));}function _0x18c9ec(_0x1d95fc,_0x57a395,_0x557f0f){const _0x32b918=_0x2bff9c['userId'],_0x2fe559='revision:'+_0x2ce550+':'+_0x32b918+':'+_0x58414d++,_0x12e82c=_0x3211ec['createRange'](_0x57a395,_0x557f0f);_0x42a721['markers']['set'](_0x2fe559,_0x12e82c),null!==_0x32b918&&_0x514685['add'](_0x32b918);}}['_getVidAttributeName'](_0x1d2b38){switch(_0x1d2b38['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x54bcff,_0x2ee4a5){_0x54bcff['baseVersion']=null;for(const _0x294828 in _0x54bcff){const _0x1a813a=_0x54bcff[_0x294828];if(_0x1a813a instanceof vt){const _0x42d0b0=_0x2ee4a5['get'](_0x1a813a['root']['rootName']);_0x54bcff[_0x294828]=this['_fixPosition'](_0x1a813a,_0x42d0b0);}if(_0x1a813a instanceof ft){const _0x2b22cc=_0x2ee4a5['get'](_0x1a813a['root']['rootName']);_0x54bcff[_0x294828]=this['_fixRange'](_0x1a813a,_0x2b22cc);}'root'===_0x294828&&(_0x54bcff['root']=_0x2ee4a5['get'](_0x54bcff['root']['rootName']));}}['_fixRange'](_0x1d94bf,_0x38ed5c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1d94bf['start'],_0x38ed5c),this['_fixPosition'](_0x1d94bf['end'],_0x38ed5c));}['_fixPosition'](_0x4cce56,_0x3ce1fb){return this['editor']['model']['createPositionFromPath'](_0x3ce1fb,_0x4cce56['path'],_0x4cce56['stickiness']);}['_handleInsertOperation'](_0x1fb4fb){const _0x4dc3fd=this['_idsRoots']['get'](_0x1fb4fb['position']['root']['rootName']),_0x202da8=this['_fixPosition'](_0x1fb4fb['position'],_0x4dc3fd),_0x135774=null===_0x1fb4fb['_authorId']?null:_0x1fb4fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xdd7043=_0x202da8['parent'],_0x11c7df=this['_revisionId'],_0x29b449=[];for(const _0x40b7dd of _0x1fb4fb['nodes'])if(_0x40b7dd['is']('element'))_0x29b449['push'](this['_makeIdsRoot'](_0x40b7dd));else{for(let _0x2e988a=0x0;_0x2e988a<_0x40b7dd['offsetSize'];_0x2e988a++)_0x29b449['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x120fad=this['_revisionId'];for(let _0x17dc82=_0x11c7df;_0x17dc82<_0x120fad;_0x17dc82++)this['_touched']['set'](_0x17dc82,{'userId':_0x135774});_0xdd7043['_insertChild'](_0x202da8['offset'],_0x29b449);}['_handleMoveOperation'](_0x2e9bf1){(_0x2e9bf1=this['_cloneOperation'](_0x2e9bf1,this['_idsRoots']))['_execute']();const _0xc1bc66=null===_0x2e9bf1['_authorId']?null:_0x2e9bf1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44587e=_0x2e9bf1['getMovedRangeStart'](),_0x10f651=_0x44587e['parent'],_0x931737=_0x44587e['offset'];!function _0x11dcdf(_0x16f800,_0x148153,_0x4952f5,_0x5a4885){for(let _0x29be3f=_0x4952f5;_0x29be3f<_0x5a4885;_0x29be3f++){const _0x142f10=_0x148153['getChild'](_0x29be3f);_0x142f10['is']('element','$text')?_0x16f800['set'](_0x142f10['getAttribute']('vid'),{'userId':_0xc1bc66}):(_0x16f800['set'](_0x142f10['getAttribute']('vid_start'),{'userId':_0xc1bc66}),_0x11dcdf(_0x16f800,_0x142f10,0x0,_0x142f10['childCount']),_0x16f800['set'](_0x142f10['getAttribute']('vid_end'),{'userId':_0xc1bc66}));}}(this['_touched'],_0x10f651,_0x931737,_0x931737+_0x2e9bf1['howMany']);}['_handleMergeOperation'](_0x132959){const _0x1ca278=null===(_0x132959=this['_cloneOperation'](_0x132959,this['_idsRoots']))['_authorId']?null:_0x132959['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4489a9=_0x132959['targetPosition']['parent'],_0x259ff6=_0x132959['sourcePosition']['parent'],_0x5e5687=_0x4489a9['getAttribute']('vid_end'),_0x105dbb=_0x259ff6['getAttribute']('vid_start');_0x4489a9['_setAttribute']('vid_end',_0x259ff6['getAttribute']('vid_end')),_0x259ff6['_setAttribute']('vid_end',_0x5e5687),this['_touched']['set'](_0x105dbb,{'userId':_0x1ca278}),this['_touched']['set'](_0x5e5687,{'userId':_0x1ca278}),_0x132959['_execute']();}['_handleSplitOperation'](_0x398295){const _0x2f4251=null===(_0x398295=this['_cloneOperation'](_0x398295,this['_idsRoots']))['_authorId']?null:_0x398295['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfe8613=_0x398295['graveyardPosition'],_0x141c02=_0x398295['splitPosition']['parent'];_0x398295['_execute']();const _0x13a155=_0x141c02['getAttribute']('vid_end'),_0x314bb7=_0x398295['insertionPosition']['nodeAfter'];if(_0xfe8613){const _0x4ae380=_0x314bb7['getAttribute']('vid_end'),_0x13ad24=_0x141c02['getAttribute']('vid_end');_0x141c02['_setAttribute']('vid_end',_0x4ae380),_0x314bb7['_setAttribute']('vid_end',_0x13ad24),this['_touched']['set'](_0x141c02['getAttribute']('vid_end'),{'userId':_0x2f4251}),this['_touched']['set'](_0x314bb7['getAttribute']('vid_start'),{'userId':_0x2f4251});}else{const _0x317fa5=this['_revisionId']++,_0xdb1a26=this['_revisionId']++;_0x141c02['_setAttribute']('vid_end',_0x317fa5),_0x314bb7['_setAttribute']('vid_start',_0xdb1a26),_0x314bb7['_setAttribute']('vid_end',_0x13a155),this['_touched']['set'](_0x317fa5,{'userId':_0x2f4251}),this['_touched']['set'](_0xdb1a26,{'userId':_0x2f4251});}}['_handleMarkerOperation'](_0x103903){if(!_0x103903['affectsData'])return;const _0x2fac23=(_0x103903=this['_cloneOperation'](_0x103903,this['_diffRoots']))['oldRange']?_0x103903['oldRange']['root']:null,_0x377ed5=_0x103903['newRange']?_0x103903['newRange']['root']:null;_0x2fac23&&this['_markers']['delete'](_0x103903['name']),_0x377ed5&&this['_markers']['set'](_0x103903['name'],_0x103903['newRange']['clone']());const _0x4b4e2c=null===_0x103903['_authorId']?null:_0x103903['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4fb453=_0x103903['name'];if(!this['_touchedMarkers']['has'](_0x4fb453))return void this['_touchedMarkers']['set'](_0x4fb453,{'range':_0x103903['oldRange'],'userId':_0x4b4e2c});const _0x4dcc0d=this['_touchedMarkers']['get'](_0x4fb453),_0x43a066=_0x4dcc0d['range'],_0x33eecd=_0x103903['newRange'];null==_0x43a066&&null==_0x33eecd||_0x43a066&&_0x33eecd&&_0x43a066['isEqual'](_0x33eecd)?this['_touchedMarkers']['delete'](_0x103903['name']):_0x4dcc0d['userId']=_0x4b4e2c;}['_handleRootOperation'](_0x2cf506,_0x3214f0){this['_diffRoots']['has'](_0x2cf506['rootName'])?this['_diffRoots']['get'](_0x2cf506['rootName'])['_isAttached']=_0x2cf506['isAdd']:(this['_diffRoots']['set'](_0x2cf506['rootName'],P(_0x2cf506['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2cf506['rootName'],{}),_0x3214f0&&this['_idsRoots']['set'](_0x2cf506['rootName'],P(_0x2cf506['rootName'],!0x0)));const _0x5d61a4=null===_0x2cf506['_authorId']?null:_0x2cf506['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x9c8774=this['_touchedRoots']['get'](_0x2cf506['rootName']);_0x9c8774&&_0x9c8774['userId']===_0x5d61a4?this['_touchedRoots']['delete'](_0x2cf506['rootName']):this['_touchedRoots']['set'](_0x2cf506['rootName'],{'userId':_0x5d61a4,'isAttached':_0x2cf506['isAdd']});}['_handleRootAttributeOperation'](_0x4ae781){const _0x2bd0d6=this['_diffRootsAttributes']['get'](_0x4ae781['root']['rootName']);null===_0x4ae781['newValue']?delete _0x2bd0d6[_0x4ae781['key']]:_0x2bd0d6[_0x4ae781['key']]=_0x4ae781['newValue'];}}function N(_0x11043e){const _0x44db92=P(_0x11043e['rootName'],_0x11043e['isAttached']());for(const _0x27a33c of _0x11043e['getChildren']()){const _0x1a7350=_0x27a33c['_clone'](!0x0);_0x44db92['_appendChild'](_0x1a7350);}return _0x44db92;}function P(_0x5ea445,_0x14b598=!0x0){const _0x367561=new gt();return _0x367561['rootName']=_0x5ea445,_0x367561['_isAttached']=_0x14b598,_0x367561['isAttached']=()=>_0x367561['_isAttached'],_0x367561;}function F(_0x36c640,_0x1f9c1d,_0x365b87){const _0x44e428='elementEnd'==_0x36c640['type']?_0x365b87['createPositionAt'](_0x36c640['item'],'end'):_0x365b87['createPositionBefore'](_0x36c640['item']);return _0x365b87['createPositionFromPath'](_0x1f9c1d,_0x44e428['path'],_0x44e428['stickiness']);}function B(_0x54ff34,_0x254ebd,_0x59d283){const _0x2f7e38='elementStart'==_0x54ff34['type']?_0x59d283['createPositionAt'](_0x54ff34['item'],0x0):_0x59d283['createPositionAfter'](_0x54ff34['item']);return _0x59d283['createPositionFromPath'](_0x254ebd,_0x2f7e38['path'],_0x2f7e38['stickiness']);}class hs extends _0x39b20e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3f631d,_0x42d259){super(_0x3f631d),this['focusTracker']=new _0x2fcaa6(),this['keystrokes']=new _0x566e37(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x42d259),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x574058({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32ad58=_0x3ba9b2=>_0x3ba9b2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32ad58),this['keystrokes']['set']('arrowleft',_0x32ad58),this['keystrokes']['set']('arrowup',_0x32ad58),this['keystrokes']['set']('arrowdown',_0x32ad58);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x10d2e9){this['revisionNameInputView']['fieldView']['element']['value']=_0x10d2e9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x349b4e){const _0x43f8c2=new nt(this['locale'],ti),_0x1c9405=_0x43f8c2['fieldView'];_0x1c9405['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1d3b7e=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x349b4e&&(_0x1d3b7e+='\x20('+g(this['locale'],'optional')+')'),(_0x43f8c2['label']=_0x1d3b7e,_0x1c9405['on']('input',()=>{this['revisionNameInputValue']=_0x1c9405['element']['value']['trim']();}),_0x43f8c2);}}class f extends _0x4e9206{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5d4e27=this['editor'],_0x2f038a=_0x5d4e27['plugins']['get']('RevisionTracker');_0x5d4e27['ui']['componentFactory']['add']('revisionHistory',_0x19285c=>{const _0x25c3c1=_0x114072(_0x19285c),_0x360f36=_0x25c3c1['panelView']['children'],_0x1f31b7=new _0x5821a8(_0x19285c),_0x21a0f0=new te(_0x19285c),_0x48969a=new _0x1f72d5(_0x19285c),_0x1d45ba=new te(_0x19285c),_0x1415a1=new _0x1f72d5(_0x19285c);return _0x25c3c1['bind']('isEnabled')['to'](_0x2f038a,'isReady',_0x2f038a,'isEnabled',_0x5d4e27,'isReadOnly',(_0x1e4ca5,_0x4a1046,_0x4afa5c)=>_0x1e4ca5&&_0x4a1046&&!_0x4afa5c),_0x25c3c1['buttonView']['set']({'icon':_0x1f597b,'label':g(_0x19285c,'Revision\x20history'),'tooltip':!0x0}),_0x48969a['set']({'label':g(_0x19285c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48969a['bind']('isEnabled')['to'](_0x2f038a,'isReady',_0x2f038a,'isEnabled',_0x5d4e27,'isReadOnly',(_0x15e823,_0x144b8a,_0xed54c6)=>_0x15e823&&_0x144b8a&&!_0xed54c6),_0x48969a['on']('execute',()=>this['_showDialog']()),_0x1415a1['set']({'label':g(_0x19285c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1415a1['bind']('isEnabled')['to'](_0x2f038a,'isReady',_0x5d4e27,'isReadOnly',(_0x22c0d5,_0x376b77)=>_0x22c0d5&&!_0x376b77),_0x1415a1['on']('execute',()=>{_0x5d4e27['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x25c3c1['isOpen']=!0x1,_0x5d4e27['editing']['view']['focus']();}),_0x21a0f0['children']['add'](_0x48969a),_0x1d45ba['children']['add'](_0x1415a1),_0x1f31b7['role']='menu',_0x1f31b7['items']['addMany']([_0x21a0f0,_0x1d45ba]),_0x360f36['add'](_0x1f31b7),_0x25c3c1;}),_0x5d4e27['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x28ba7d=this['editor'],_0x356a5c=_0x28ba7d['locale'],_0xdf10b1=new _0x5b85e8(_0x356a5c),_0x5d2ab5=new _0x57c4d8(_0x356a5c);_0xdf10b1['buttonView']['set']({'icon':_0x1f597b,'label':g(_0x356a5c,'Revision\x20history')});const _0x30eb0b=new _0x31742c(_0x356a5c,_0xdf10b1),_0x1f57d7=new _0x249dde(_0x356a5c);_0x1f57d7['set']({'label':g(_0x356a5c,'Save\x20current\x20revision')}),_0x1f57d7['delegate']('execute')['to'](_0xdf10b1),_0x1f57d7['on']('execute',()=>{this['_showDialog']();}),_0x30eb0b['children']['add'](_0x1f57d7),_0x5d2ab5['items']['add'](_0x30eb0b);const _0x4daea7=new _0x31742c(_0x356a5c,_0xdf10b1),_0x208300=new _0x249dde(_0x356a5c);return _0x208300['set']({'label':g(_0x356a5c,'Open\x20revision\x20history')}),_0x208300['delegate']('execute')['to'](_0xdf10b1),_0x208300['on']('execute',()=>{_0x28ba7d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4daea7['children']['add'](_0x208300),_0x5d2ab5['items']['add'](_0x4daea7),_0xdf10b1['panelView']['children']['add'](_0x5d2ab5),_0xdf10b1;}['_showDialog'](){const _0x2720d3=this['editor'],_0x2938b9=_0x2720d3['locale'],_0x226003=_0x2720d3['plugins']['get']('Dialog'),_0x3010ea=_0x2720d3['plugins']['get']('RevisionTracker');function _0x504275(_0x19f302){_0x2720d3['config']['get']('revisionHistory.requireRevisionName')&&''===_0x19f302['revisionName']?_0x19f302['revisionNameInputView']['errorText']=g(_0x2938b9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2720d3['plugins']['get'](u)['saveRevision']({'name':_0x19f302['revisionName']}),_0x226003['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x504275(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x226003['show']({'id':'revisionSave','title':g(_0x2938b9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2720d3['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x226003['hide']()},{'label':g(_0x2720d3['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x461df5){_0x461df5['bind']('isEnabled')['to'](_0x3010ea,'isReady',_0x3010ea,'isEnabled',_0x2720d3,'isReadOnly',(_0x4a44a3,_0x17a5d9,_0x1c57d6)=>_0x4a44a3&&_0x17a5d9&&!_0x1c57d6);},'onExecute':()=>_0x504275(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x44b987=this['editor'],_0x19186c=_0x44b987['locale'];this['_saveRevisionFormView']=new hs(_0x19186c,_0x44b987['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x39b20e{['changeId'];['_model'];constructor(_0x553702,_0x414fa8){super(_0x553702),this['_model']=_0x414fa8,this['changeId']=_0x414fa8['id'];const _0x4610a0=this['bindTemplate'],_0x45ca1e=g(_0x553702,_0x414fa8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x414fa8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x414fa8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4610a0['to']('type',_0x569e7b=>'ck-revision-change__'+_0x569e7b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x45ca1e}]},{'text':'\x20'+_0x414fa8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x20e616(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1d730b){super(),this['id']=_0x1d730b['id']||_0x24ac73(),this['author']=_0x1d730b['author'],this['type']=_0x1d730b['type'],this['data']=_0x1d730b['data']||{},this['rootName']=_0x1d730b['rootName'],this['set']('createdAt',_0x1d730b['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(_0x53a806,_0x1d2093){this['newRevisionId']=_0x53a806,this['oldRevisionId']=_0x1d2093,this['changes']=new _0x44a143();}['_setChanges'](_0x3c2c50){for(const _0x3caab5 of _0x3c2c50)this['changes']['add'](_0x3caab5);}}class m extends _0x4e9206{['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[_0x26d238,_0x30d40c,I,V];}constructor(_0x5e69aa){super(_0x5e69aa),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',(_0x5be297,_0x3ec6a7,_0x49f800)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1253a0=>{for(const _0x2ffc2a of this['editor']['editing']['view']['document']['roots'])_0x49f800?_0x1253a0['removeClass']('ck-editor__editable__overlay',_0x2ffc2a):_0x1253a0['addClass']('ck-editor__editable__overlay',_0x2ffc2a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x531550=>null!==_0x531550),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x55d25c,_0x2b2af7,_0x20d258)=>_0x55d25c&&_0x20d258?_0x2b2af7['changes']['getIndex'](_0x20d258):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x469cc6,_0x129dc4)=>_0x469cc6?_0x129dc4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x30d40c);}['init'](){const _0x4efcba=this['editor'],_0x392604=new pt(_0x4efcba,{'direction':'backward'}),_0x5acb5b=new pt(_0x4efcba,{'direction':'forward'});(_0x4efcba['commands']['add']('showPreviousChange',_0x392604),_0x4efcba['commands']['add']('showNextChange',_0x5acb5b),_0x4efcba['commands']['add']('restoreRevision',new wt(_0x4efcba)),this['on']('change:numberOfChanges',()=>{_0x392604['refresh'](),_0x5acb5b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4efcba['enableReadOnlyMode']('revision-viewer'),_0x4efcba['plugins']['has']('WidgetToolbarRepository'))&&_0x4efcba['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2a1883){return await this['_utils']['loadRevisionData'](_0x2a1883,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a1883);}async['getRevisionRootsAttributes'](_0x3f47e4){return await this['_utils']['loadRevisionData'](_0x3f47e4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3f47e4);}async['compare'](_0x4f445c,_0x312a9e,_0x4d7b14=!0x1){if(!this['isEnabled'])return;const _0x194185=this['diff'],_0x49917e=this['repository'],_0x58aee0='string'==typeof _0x4f445c?_0x49917e['getRevision'](_0x4f445c):_0x4f445c,_0x9160b5='string'==typeof _0x312a9e?_0x49917e['getRevision'](_0x312a9e):_0x312a9e,_0xf5af22=_0x58aee0['id'],_0x51a7c1=_0x9160b5?_0x9160b5['id']:null;if(!_0x4d7b14&&this['diff']&&this['diff']['newRevisionId']===_0xf5af22&&this['diff']['oldRevisionId']===_0x51a7c1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xf5af22,_0x51a7c1);const _0xa6e0b7=this['_getRevisionsRange'](_0x58aee0,_0x9160b5,!0x0)['map'](_0x23312=>this['_utils']['loadRevisionData'](_0x23312,this['adapter']));return _0xa6e0b7['push'](new Promise(_0x1b45c0=>{setTimeout(_0x1b45c0,0x14);})),Promise['all'](_0xa6e0b7)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1f76c6=this['_getDiff'](_0xf5af22,_0x51a7c1);for(const _0x34ac54 of _0x1f76c6['changes'])this['_changeIdToChange']['set'](_0x34ac54['id'],_0x34ac54);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x40ba0f=>{for(const _0x5cfe68 of this['editor']['model']['document']['getRootNames']())_0x40ba0f['detachRoot'](_0x5cfe68);for(const _0x54f947 of Object['keys'](_0x1f76c6['model'])){const _0x3515c3=_0x40ba0f['addRoot'](_0x54f947);for(const _0x17c20f of Object['keys'](_0x1f76c6['attributes'][_0x54f947]))_0x40ba0f['setAttribute'](_0x17c20f,_0x1f76c6['attributes'][_0x54f947][_0x17c20f],_0x3515c3);_0x40ba0f['insert'](_0x1f76c6['model'][_0x54f947],_0x3515c3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1f76c6['changes'])),this['isReady']=!0x0;})['catch'](_0x2f1555=>{console['error'](_0x2f1555),this['_cleanUp'](),_0x194185&&(this['diff']=_0x194185),this['isReady']=!0x0;});}['addRevisionData'](_0x60150d,_0x1018eb){const _0x15ac45=this['repository']['createRevision'](_0x60150d);return _0x15ac45['on']('_update',(_0x1efbfd,_0x523f0b,_0x5b1d56)=>_0x1018eb(_0x523f0b,_0x5b1d56,_0x15ac45)),this['repository']['addRevision'](_0x15ac45),_0x15ac45;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5a25c5=>{for(const _0x3eaefa of this['editor']['model']['document']['getRootNames']())_0x5a25c5['detachRoot'](_0x3eaefa);});}['_sortAndFilterDiffChanges'](_0x257143){const _0x365355=[],_0x4c1b2c=new Map();for(const _0x15ca86 of this['editor']['model']['document']['getRootNames']()){const _0xb55d7=this['editor']['editing']['view']['getDomRoot'](_0x15ca86);if(!_0xb55d7)continue;const _0x5e28be=_0xb55d7['getClientRects']()['item'](0x0);_0x5e28be&&(_0x365355['push'](_0x15ca86),_0x4c1b2c['set'](_0x15ca86,_0x5e28be));}return _0x365355['sort']((_0x1d7d4f,_0x192e8f)=>{const _0x184404=_0x4c1b2c['get'](_0x1d7d4f),_0x3496fc=_0x4c1b2c['get'](_0x192e8f);return _0x184404['y']-_0x3496fc['y']||_0x184404['x']-_0x3496fc['x'];}),(_0x257143=_0x257143['filter'](_0x538e38=>_0x365355['includes'](_0x538e38['rootName'])))['sort']((_0x36fa74,_0x3cb630)=>_0x365355['indexOf'](_0x36fa74['rootName'])-_0x365355['indexOf'](_0x3cb630['rootName'])),_0x257143;}['_makeTape'](_0x2353a5){const _0x18f299=Array['from'](_0x2353a5['markers'])['filter'](([_0x6381a1,_0x631162])=>_0x6381a1['startsWith']('revision:')&&!_0x631162['isCollapsed']),_0x4fa020=Array['from'](this['editor']['model']['createRangeIn'](_0x2353a5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x18f299['length'])for(const _0x57fef1 of _0x4fa020){const [_0x1592c8,_0x52e564]=_0x18f299[0x0],[,_0x145824,_0x454803]=_0x1592c8['split'](':');if(_0x52e564['end']['isEqual'](_0x57fef1['nextPosition'])&&_0x18f299['shift'](),(_0x57fef1['previousPosition']['isEqual'](_0x52e564['start'])||_0x57fef1['previousPosition']['isAfter'](_0x52e564['start']))&&('insertion'==_0x145824?_0x57fef1['isAdded']={'userId':_0x454803}:'deletion'==_0x145824&&(_0x57fef1['isRemoved']={'userId':_0x454803})),0x0==_0x18f299['length'])break;}return _0x4fa020;}['_refreshStartEndIndex'](_0x4bc72f){const _0x477a26=new Map();for(let _0x5edc61=0x0;_0x5edc61<_0x4bc72f['length'];_0x5edc61++)'text'===_0x4bc72f[_0x5edc61]['type']?(_0x4bc72f[_0x5edc61]['item']['startIndex']=_0x5edc61,_0x4bc72f[_0x5edc61]['item']['endIndex']=_0x5edc61):('elementStart'===_0x4bc72f[_0x5edc61]['type']?_0x4bc72f[_0x5edc61]['item']['startIndex']=_0x5edc61:'elementEnd'===_0x4bc72f[_0x5edc61]['type']&&(_0x4bc72f[_0x5edc61]['item']['endIndex']=_0x5edc61),_0x477a26['set'](_0x4bc72f[_0x5edc61]['id'],_0x5edc61));for(const _0x5426ea of _0x477a26['values']())'elementStart'===_0x4bc72f[_0x5426ea]['type']?_0x4bc72f[_0x5426ea]['item']['endIndex']=_0x477a26['get'](_0x4bc72f[_0x5426ea]['pairId']):'elementEnd'===_0x4bc72f[_0x5426ea]['type']&&(_0x4bc72f[_0x5426ea]['item']['startIndex']=_0x477a26['get'](_0x4bc72f[_0x5426ea]['pairId']));}['_processTape'](_0x5a6c4b){for(let _0x20306b=0x0;_0x20306b<_0x5a6c4b['length'];_0x20306b++){if('elementStart'===_0x5a6c4b[_0x20306b]['type'])_0x5a6c4b[_0x20306b]['item']['startIndex']=_0x20306b;else{if('elementEnd'===_0x5a6c4b[_0x20306b]['type']){_0x5a6c4b[_0x20306b]['item']['endIndex']=_0x20306b;const _0x362522=_0x5a6c4b[_0x20306b]['item']['startIndex'];_0x5a6c4b[_0x362522]['pairId']=_0x5a6c4b[_0x20306b]['id'],_0x5a6c4b[_0x20306b]['pairId']=_0x5a6c4b[_0x362522]['id'];}else _0x5a6c4b[_0x20306b]['item']['startIndex']=_0x20306b,_0x5a6c4b[_0x20306b]['item']['endIndex']=_0x20306b,_0x5a6c4b[_0x20306b]['pairId']=null;}_0x5a6c4b[_0x20306b]['markersStart']||(_0x5a6c4b[_0x20306b]['markersStart']=[],_0x5a6c4b[_0x20306b]['markersEnd']=[]);}}['_markInsertions'](_0x23d0e0,_0x3179aa){const _0x42877e=_0x23d0e0['filter'](_0x357fb7=>!_0x357fb7['isAdded']);for(let _0x5340c0=0x0;_0x5340c0<_0x3179aa['length'];_0x5340c0++)_0x3179aa[_0x5340c0]['isAdded']&&(_0x42877e[_0x5340c0]['isAdded']=_0x3179aa[_0x5340c0]['isAdded']);}['_getDiff'](_0x19e89a,_0x36a190=null){const _0x2d8a61=this['repository']['getRevision'](_0x19e89a),_0x2f4f44=_0x36a190?this['repository']['getRevision'](_0x36a190):null,_0x3f63a5=this['_getRevisionsRange'](_0x2d8a61,_0x2f4f44),_0x201ad3=_0x3f63a5[_0x3f63a5['length']-0x1],_0x3529b5=new Map(),_0x37109d={'model':{},'attributes':{},'changes':[]},_0x2cab97=new Set(),_0x5e9c56=new Map();for(let _0x27a519=_0x3f63a5['length']-0x1;_0x27a519>=0x0;_0x27a519--){const _0x1e0769=_0x3f63a5[_0x27a519];for(const _0x5c1b33 of Object['keys'](_0x1e0769['diffData']))if(_0x1e0769['diffData'][_0x5c1b33]['attachChange']){const _0x41aaba=_0x1e0769['diffData'][_0x5c1b33]['attachChange'];_0x41aaba['isAttached']?(_0x2cab97['add'](_0x5c1b33),_0x5e9c56['has'](_0x5c1b33)&&_0x5e9c56['get'](_0x5c1b33)['userId']==_0x41aaba['userId']?_0x5e9c56['delete'](_0x5c1b33):_0x5e9c56['set'](_0x5c1b33,_0x41aaba)):_0x5e9c56['has'](_0x5c1b33)?(_0x2cab97['delete'](_0x5c1b33),_0x5e9c56['delete'](_0x5c1b33)):(_0x2cab97['add'](_0x5c1b33),_0x5e9c56['set'](_0x5c1b33,_0x41aaba));}else _0x2cab97['add'](_0x5c1b33);}for(const _0x295ba0 of _0x2cab97){const _0x1b93b1=_0x5e9c56['has'](_0x295ba0)&&!_0x5e9c56['get'](_0x295ba0)['isAttached'];let _0x2cf0d7=_0x1b93b1?_0x3f63a5['length']-0x1:0x0;const _0x58c616=_0x1b93b1?-0x1:0x1;for(;_0x3f63a5[_0x2cf0d7];){const _0xda4399=_0x3f63a5[_0x2cf0d7];if(_0xda4399['diffData'][_0x295ba0]){const _0x256260=_0x1b93b1?_0xda4399['diffData'][_0x295ba0]['attributesBefore']:_0xda4399['diffData'][_0x295ba0]['attributesAfter'];_0x37109d['attributes'][_0x295ba0]=_0x256260?_0x1e7ff6(_0x256260):{};break;}_0x2cf0d7+=_0x58c616;}}for(const _0x291e25 of _0x3f63a5){_0x291e25['model']={};for(const _0x463a1d of _0x291e25['authors'])_0x3529b5['set'](_0x463a1d['id'],_0x463a1d);for(const _0x5821fe of _0x2cab97){const _0x155e20=_0x291e25['diffData'][_0x5821fe]?_0x291e25['diffData'][_0x5821fe]['insertions']:'[]',_0x416b5d=_0x291e25['diffData'][_0x5821fe]?_0x291e25['diffData'][_0x5821fe]['deletions']:'[]';_0x291e25['model'][_0x5821fe]={'insertions':this['_utils']['_makeModelFromViewString'](_0x155e20),'deletions':this['_utils']['_makeModelFromViewString'](_0x416b5d)};}}for(const _0x68e11a of _0x2cab97){let _0x44b16b=null,_0x295332=0x0;const _0x400f74=new Map(Array['from'](_0x2d8a61['model'][_0x68e11a]['insertions']['markers'])['filter'](([_0x33af6f])=>!_0x33af6f['startsWith']('revision:')));let _0x1d27f2=0x0;for(const _0x289b03 of _0x3f63a5){const _0x513201=this['_makeTape'](_0x289b03['model'][_0x68e11a]['insertions']);_0x289b03==_0x2d8a61?(_0x44b16b=_0x513201,_0x295332=_0x44b16b['length'],_0x44b16b['forEach'](_0x21bfc5=>{_0x21bfc5['id']=_0x1d27f2++;}),this['_processTape'](_0x44b16b)):this['_markInsertions'](_0x44b16b,_0x513201);const _0xfb37c3=_0x44b16b['filter'](_0x505a3f=>!_0x505a3f['isAdded'])['map'](_0x38230d=>_0x38230d['id']);let _0x4f59c7=0x0;const _0xcd207=this['_makeTape'](_0x289b03['model'][_0x68e11a]['deletions']);_0xcd207['forEach'](_0x50c455=>{_0x50c455['isRemoved']?_0x50c455['id']=_0x295332++:_0x50c455['id']=_0xfb37c3[_0x4f59c7++];}),this['_processTape'](_0xcd207),this['_setDistance'](_0x44b16b,'isAdded'),this['_setDistance'](_0xcd207,'isRemoved'),_0x289b03==_0x2d8a61&&this['_markMarkers'](_0x44b16b,_0x400f74),_0x44b16b=this['_joinTapes'](_0x44b16b,_0xcd207),this['_refreshStartEndIndex'](_0x44b16b),this['_setDistance'](_0x44b16b,'isRemoved');}_0x44b16b=_0x44b16b['filter'](_0xc273cb=>!(_0xc273cb['isAdded']&&_0xc273cb['isRemoved']));const _0x38282c=new Map(_0x201ad3['model'][_0x68e11a]['deletions']['markers']),_0x54045d=new Set(_0x400f74['keys']());for(const _0x4f3e2a of _0x38282c['keys']())_0x54045d['delete'](_0x4f3e2a);this['_markSuggestions'](_0x44b16b,_0x54045d),this['_fixObsoleteTags'](_0x44b16b),_0x44b16b=this['_removeMissingPairs'](_0x44b16b),_0x44b16b=this['_markMismatchedRemovedTags'](_0x44b16b),_0x44b16b=this['_removeUnsupportedChanges'](_0x44b16b);const {root:_0x41e4c3,changes:_0x4e5f0a}=this['_makeModelFromTape'](_0x44b16b,_0x3529b5,_0x68e11a);_0x37109d['model'][_0x68e11a]=_0x41e4c3;const _0x54b618=_0x5e9c56['get'](_0x68e11a);if(_0x54b618){const _0x395be1=_0x3529b5['get'](_0x54b618['userId']),_0x56e8a4=new r({'author':_0x395be1,'type':_0x54b618['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x68e11a});_0x4e5f0a['unshift'](_0x56e8a4),_0x37109d['attributes'][_0x68e11a]['revisionHistoryAttachChange']=_0x56e8a4['id'];}_0x37109d['changes']=_0x37109d['changes']['concat'](_0x4e5f0a);}return _0x37109d;}['_markMarkers'](_0x2d4f1a,_0x5c3005){for(let _0x4f978a=0x0;_0x4f978a<_0x2d4f1a['length'];_0x4f978a++)for(const [_0x1e5272,_0x10f663]of _0x5c3005)!_0x10f663['isCollapsed']&&_0x10f663['start']['isEqual'](_0x2d4f1a[_0x4f978a]['previousPosition'])&&_0x2d4f1a[_0x4f978a]['markersStart']['push'](_0x1e5272),_0x10f663['end']['isEqual'](_0x2d4f1a[_0x4f978a]['nextPosition'])&&_0x2d4f1a[_0x4f978a]['markersEnd']['push'](_0x1e5272);}['_joinTapes'](_0x2c9355,_0x27227f){let _0x5b806f=[],_0x6ae07d=0x0,_0x26f2ae=0x0;for(;_0x6ae07d<_0x2c9355['length']||_0x26f2ae<_0x27227f['length'];){const _0x587f2f=_0x2c9355[_0x6ae07d]||{},_0x204c9b=_0x27227f[_0x26f2ae]||{};if(_0x587f2f['id']==_0x204c9b['id'])_0x6ae07d++,_0x26f2ae++,_0x5b806f['push'](_0x587f2f);else{if(_0x204c9b['isRemoved']&&_0x587f2f['isAdded']){const {commonTape:_0x1f7773,iEnd:_0x498b53,jEnd:_0x2ebf9c}=this['_threeWayMerge'](_0x2c9355,_0x6ae07d,_0x27227f,_0x26f2ae);_0x5b806f=_0x5b806f['concat'](_0x1f7773),_0x6ae07d=_0x498b53,_0x26f2ae=_0x2ebf9c;}else _0x204c9b['isRemoved']?(_0x26f2ae++,_0x5b806f['push'](_0x204c9b)):(_0x6ae07d++,_0x5b806f['push'](_0x587f2f));}}return _0x5b806f;}['_markSuggestions'](_0x593db0,_0x355201){const _0x16fbad=[];for(let _0x67e641=0x0;_0x67e641<_0x593db0['length'];_0x67e641++){for(let _0x48b684=0x0;_0x48b684<_0x593db0[_0x67e641]['markersStart']['length'];_0x48b684++){const _0x426d9e=_0x593db0[_0x67e641]['markersStart'][_0x48b684];if(!_0x355201['has'](_0x426d9e))continue;const {group:_0x4f15b6,type:_0x3e3acc,authorId:_0x10aa40}=_0x4720b5(_0x426d9e);'revision-suggestion'!=_0x4f15b6||'insertion'!=_0x3e3acc&&'deletion'!=_0x3e3acc||(_0x16fbad['unshift']({'type':_0x3e3acc,'name':_0x426d9e,'userId':_0x10aa40}),_0x593db0[_0x67e641]['markersStart']['splice'](_0x48b684,0x1),_0x48b684--);}_0x23898b(_0x593db0[_0x67e641]);for(let _0x590422=0x0;_0x590422<_0x593db0[_0x67e641]['markersEnd']['length'];_0x590422++){const _0x4139da=_0x593db0[_0x67e641]['markersEnd'][_0x590422];if(!_0x355201['has'](_0x4139da))continue;const {group:_0x3595a5,type:_0x51de78}=_0x4720b5(_0x4139da);if('revision-suggestion'!=_0x3595a5||'insertion'!=_0x51de78&&'deletion'!=_0x51de78)continue;_0x593db0[_0x67e641]['markersEnd']['splice'](_0x590422,0x1),_0x590422--;const _0xe07e50=_0x16fbad['findIndex'](_0x3a6a96=>_0x3a6a96['name']==_0x4139da);_0xe07e50>-0x1&&_0x16fbad['splice'](_0xe07e50,0x1);}}function _0x4720b5(_0x4dd2e8){const _0xcccae2=_0x4dd2e8['split'](':');return{'group':_0xcccae2[0x0],'type':_0xcccae2[0x1],'subType':_0xcccae2['length']>=0x5?_0xcccae2[0x2]:null,'id':_0xcccae2['length']<0x5?_0xcccae2[0x2]:_0xcccae2[0x3],'authorId':_0xcccae2['length']<0x5?_0xcccae2[0x3]:_0xcccae2[0x4],'markerCount':0x6==_0xcccae2['length']?_0xcccae2[0x5]:null};}function _0x23898b(_0x55e63e){for(let _0x265e79=0x0;_0x265e79<_0x16fbad['length'];_0x265e79++){if(_0x55e63e['isAdded']&&'insertion'==_0x16fbad[_0x265e79]['type'])return _0x55e63e['isAddSuggestion']=_0x16fbad[_0x265e79],void delete _0x55e63e['isAdded'];if(!_0x55e63e['isAdded']&&!_0x55e63e['isRemoved']&&'deletion'==_0x16fbad[_0x265e79]['type'])return void(_0x55e63e['isRemoveSuggestion']=_0x16fbad[_0x265e79]);}}}['_setDistance'](_0x1d768c,_0x45599d){let _0x57cadd=0x0,_0x4a8f02=!0x1;const _0x3c4cc6=new Map();for(const _0x19be61 of _0x1d768c)_0x19be61[_0x45599d]?_0x4a8f02&&(_0x57cadd++,_0x4a8f02=!0x1):(_0x57cadd++,_0x4a8f02=!0x0),_0x3c4cc6['set'](_0x19be61['id'],_0x57cadd);for(let _0x4850d0=0x0;_0x4850d0<_0x1d768c['length'];_0x4850d0++){if('isRemoved'==_0x45599d&&_0x1d768c[_0x4850d0]['isAdded']||'isAdded'==_0x45599d&&_0x1d768c[_0x4850d0]['isRemoved'])continue;if('text'==_0x1d768c[_0x4850d0]['type']){_0x1d768c[_0x4850d0]['distance']=0x0;continue;}const _0xe98dd2=_0x3c4cc6['get'](_0x1d768c[_0x4850d0]['pairId']),_0x3d7035=_0x3c4cc6['get'](_0x1d768c[_0x4850d0]['id']);_0x1d768c[_0x4850d0]['distance']=_0xe98dd2-_0x3d7035;}}['_getRevisionsRange'](_0x4eb331,_0x55825d,_0x106113=!0x1){const _0xf87ce4=[];let _0x2a4484=this['repository']['getIndex'](_0x4eb331),_0x38aaf4=this['repository']['getIndex'](_0x55825d);for(-0x1==_0x38aaf4&&(_0x38aaf4=this['repository']['_revisions']['length'],_0x106113=!0x1);_0x2a4484<_0x38aaf4;)_0xf87ce4['push'](this['repository']['getRevision'](_0x2a4484)),_0x2a4484++;return _0x106113&&_0xf87ce4['push'](this['repository']['getRevision'](_0x2a4484)),_0xf87ce4;}['_threeWayMerge'](_0x2d556c,_0x1af6cb,_0x4ffc06,_0x18d35c){const _0x35a9df=this['editor']['model']['schema'];let _0x2138fc=_0x1af6cb;for(;_0x2d556c[_0x2138fc]&&_0x2d556c[_0x2138fc]['isAdded'];)_0x2138fc++;let _0x705fb2=_0x18d35c;for(;_0x4ffc06[_0x705fb2]&&_0x4ffc06[_0x705fb2]['isRemoved'];)_0x705fb2++;_0x27ad7e(_0x2d556c,_0x1af6cb,_0x2138fc),_0x27ad7e(_0x4ffc06,_0x18d35c,_0x705fb2);const _0x5b362f=_0x4ffc06['slice'](_0x18d35c,_0x705fb2)['concat'](_0x2d556c['slice'](_0x1af6cb,_0x2138fc));return _0x5b362f['sort']((_0x3fd2b6,_0x2d2e39)=>_0x3fd2b6['side']!=_0x2d2e39['side']?_0x3fd2b6['side']-_0x2d2e39['side']:_0x3fd2b6['level']!=_0x2d2e39['level']?_0x3fd2b6['level']-_0x2d2e39['level']:_0x3fd2b6['distance']!=_0x2d2e39['distance']?_0x2d2e39['distance']-_0x3fd2b6['distance']:!!_0x3fd2b6['isAdded']!=!!_0x2d2e39['isAdded']?-0x1==_0x3fd2b6['side']||0x0==_0x3fd2b6['side']?_0x3fd2b6['isAdded']?-0x1:0x1:_0x3fd2b6['isAdded']?0x1:-0x1:_0x3fd2b6['index']-_0x2d2e39['index']),{'commonTape':_0x5b362f,'iEnd':_0x2138fc,'jEnd':_0x705fb2};function _0x27ad7e(_0x5690f5,_0x5f2e3d,_0x4533bd){let _0x51dc04=-0x1,_0x3bcf44=Number['POSITIVE_INFINITY'],_0xd2c26=!0x0;for(let _0x362e95=_0x5f2e3d;_0x362e95<_0x4533bd;_0x362e95++)if(_0x35a9df['isInline'](_0x5690f5[_0x362e95]['item'])||(_0xd2c26=!0x1),_0x5690f5[_0x362e95]['item']['startIndex']<_0x5f2e3d&&(_0x51dc04=_0x362e95),_0x5690f5[_0x362e95]['item']['endIndex']>=_0x4533bd){_0x3bcf44=_0x362e95;break;}_0xd2c26&&(_0x51dc04=_0x4533bd-0x1);for(let _0x32b555=_0x5f2e3d;_0x32b555<_0x4533bd;_0x32b555++)_0x5690f5[_0x32b555]['side']=_0x32b555<=_0x51dc04?-0x1:_0x32b555<_0x3bcf44?0x0:0x1,_0x5690f5[_0x32b555]['index']=_0x32b555;let _0x18d623=0x0;for(let _0x566659=_0x5f2e3d;_0x566659<=_0x51dc04;_0x566659++)0x0==_0x5690f5[_0x566659]['distance']?_0x5690f5[_0x566659]['level']=_0x18d623:(_0x18d623++,_0x5690f5[_0x566659]['level']=_0x18d623,_0x18d623++);for(let _0xc17fab=_0x5f2e3d;_0xc17fab<_0x4533bd;_0xc17fab++)0x0==_0x5690f5[_0xc17fab]['side']&&(_0x5690f5[_0xc17fab]['level']=_0x18d623);_0x18d623=0x0;for(let _0x41f986=_0x4533bd-0x1;_0x41f986>=_0x3bcf44;_0x41f986--)0x0==_0x5690f5[_0x41f986]['distance']?_0x5690f5[_0x41f986]['level']=_0x18d623:(_0x18d623--,_0x5690f5[_0x41f986]['level']=_0x18d623,_0x18d623--);}}['_fixObsoleteTags'](_0x3df1fe){const _0x36a2b5=new Map(),_0x4e5bed=this['editor']['model']['schema'];for(let _0x14c624=0x1;_0x14c624<_0x3df1fe['length'];_0x14c624++){let _0x695e75,_0x4035d1,_0x555ff1;const _0x491c29=_0x3df1fe[_0x14c624],_0x274a3e=_0x3df1fe[_0x14c624-0x1];if('text'==_0x491c29['type'])continue;if(_0x491c29['type']!=_0x274a3e['type'])continue;if(!_0x4e5bed['isBlock'](_0x274a3e['item'])||_0x4e5bed['isLimit'](_0x274a3e['item']))continue;if(!_0x4e5bed['isBlock'](_0x491c29['item'])||_0x4e5bed['isLimit'](_0x491c29['item']))continue;if((_0x3df1fe[_0x14c624]['isAdded']||_0x3df1fe[_0x14c624]['isAddSuggestion'])&&_0x3df1fe[_0x14c624-0x1]['isRemoved'])_0x695e75=_0x3df1fe[_0x14c624],_0x4035d1=_0x3df1fe[_0x14c624-0x1],_0x555ff1=_0x14c624-0x1;else{if(!_0x3df1fe[_0x14c624]['isRemoved']||!_0x3df1fe[_0x14c624-0x1]['isAdded']&&!_0x3df1fe[_0x14c624-0x1]['isAddSuggestion'])continue;_0x695e75=_0x3df1fe[_0x14c624-0x1],_0x4035d1=_0x3df1fe[_0x14c624],_0x555ff1=_0x14c624;}const _0xcc37fd=_0x695e75['level']==_0x4035d1['level'],_0x1d2de8=Math['abs'](_0x695e75['level'])<Math['abs'](_0x4035d1['level'])&&0x0==_0x4035d1['distance'];(_0xcc37fd||_0x1d2de8)&&(_0x36a2b5['set'](_0x4035d1['id'],_0x695e75['id']),_0x3df1fe['splice'](_0x555ff1,0x1),_0x14c624--,_0x695e75['isAdded']=!0x1);}for(let _0x37b49b=0x0;_0x37b49b<_0x3df1fe['length'];_0x37b49b++)_0x36a2b5['has'](_0x3df1fe[_0x37b49b]['pairId'])&&(_0x3df1fe[_0x37b49b]['pairId']=_0x36a2b5['get'](_0x3df1fe[_0x37b49b]['pairId']));}['_removeMissingPairs'](_0x197e2a){const _0x1a6a73=new Set(_0x197e2a['map'](_0x437894=>_0x437894['id']));for(let _0x44cb74=0x0;_0x44cb74<_0x197e2a['length'];_0x44cb74++)_0x1a6a73['has'](_0x197e2a[_0x44cb74]['pairId'])||0x0==_0x197e2a[_0x44cb74]['distance']||(_0x197e2a[_0x44cb74]['isIncorrect']=!0x0);return _0x197e2a['filter'](_0x43b503=>!_0x43b503['isIncorrect']);}['_markMismatchedRemovedTags'](_0x83e2ed){const _0x147144=new Set();for(let _0x14ef87=0x0;_0x14ef87<_0x83e2ed['length'];_0x14ef87++){if(_0x147144['has'](_0x83e2ed[_0x14ef87]['id'])&&_0x83e2ed[_0x14ef87]['isRemoved']&&(_0x83e2ed[_0x14ef87]['isIncorrect']=!0x0),_0x83e2ed[_0x14ef87]['isIncorrect'])continue;if(0x0==_0x83e2ed[_0x14ef87]['distance'])continue;if('elementStart'!=_0x83e2ed[_0x14ef87]['type'])continue;if(null==_0x83e2ed[_0x14ef87]['pairId'])continue;let _0x1e74e9=_0x14ef87+0x1,_0x66d652=0x0;for(;_0x83e2ed[_0x1e74e9]['id']!=_0x83e2ed[_0x14ef87]['pairId'];)'elementStart'==_0x83e2ed[_0x1e74e9]['type']?_0x66d652++:'elementEnd'==_0x83e2ed[_0x1e74e9]['type']&&_0x66d652--,_0x1e74e9++;if(0x0!=_0x66d652){if(_0x83e2ed[_0x14ef87]['isRemoved'])_0x83e2ed[_0x14ef87]['isIncorrect']=!0x0;else{for(;_0x1e74e9!=_0x14ef87;)_0x83e2ed[_0x1e74e9]['isRemoved']&&0x0!=_0x83e2ed[_0x1e74e9]['distance']&&(_0x83e2ed[_0x1e74e9]['isIncorrect']=!0x0,_0x147144['add'](_0x83e2ed[_0x1e74e9]['pairId'])),_0x1e74e9--;}}}return _0x83e2ed['filter'](_0x3b3237=>!_0x3b3237['isIncorrect']);}['_removeUnsupportedChanges'](_0x6a68f7){const _0x54871f=this['editor']['model']['schema'];for(let _0x19019c=0x0;_0x19019c<_0x6a68f7['length'];_0x19019c++){if(!(_0x6a68f7[_0x19019c]['isAdded']||_0x6a68f7[_0x19019c]['isAddSuggestion']||_0x6a68f7[_0x19019c]['isRemoved']||_0x6a68f7[_0x19019c]['isRemoveSuggestion']))continue;if(0x0==_0x6a68f7[_0x19019c]['distance'])continue;const _0x49e25c=_0x6a68f7[_0x19019c]['item'];_0x54871f['isBlock'](_0x49e25c)||_0x54871f['isLimit'](_0x49e25c)||(_0x6a68f7[_0x19019c]['isAdded']&&delete _0x6a68f7[_0x19019c]['isAdded'],_0x6a68f7[_0x19019c]['isAddSuggestion']&&delete _0x6a68f7[_0x19019c]['isAddSuggestion'],_0x6a68f7[_0x19019c]['isRemoveSuggestion']&&delete _0x6a68f7[_0x19019c]['isRemoveSuggestion'],_0x6a68f7[_0x19019c]['isRemoved']&&(_0x6a68f7[_0x19019c]['isIncorrect']=!0x0));}return _0x6a68f7['filter'](_0x24bf2a=>!_0x24bf2a['isIncorrect']);}['_makeModelFromTape'](_0x45722f,_0x3578aa,_0x3ef6d4){const _0x51db19=new gt(),_0x5e7908=[],_0x353832=new Map(),_0x31b878=this['editor']['model'],_0x1a6ae6=_0x31b878['schema'],_0xa2e370=[_0x51db19],_0x46eca2={},_0x3c7e9a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x525396=null;const _0x1a2169=[0x0];for(let _0x2270c0=0x0;_0x2270c0<_0x45722f['length'];_0x2270c0++)if('elementStart'===_0x45722f[_0x2270c0]['type']){_0x45722f[_0x2270c0]['previousPosition']=_0x31b878['createPositionFromPath'](_0x51db19,_0x1a2169);const _0x4211f7=new ut(_0x45722f[_0x2270c0]['item']['name'],_0x45722f[_0x2270c0]['item']['getAttributes']());_0xa2e370[0x0]['_appendChild'](_0x4211f7),_0x1a2169['push'](0x0),_0xa2e370['unshift'](_0x4211f7),_0x45722f[_0x2270c0]['nextPosition']=_0x31b878['createPositionFromPath'](_0x51db19,_0x1a2169);}else'elementEnd'===_0x45722f[_0x2270c0]['type']?(_0xa2e370['shift'](),_0x45722f[_0x2270c0]['previousPosition']=_0x31b878['createPositionFromPath'](_0x51db19,_0x1a2169),_0x1a2169['pop'](),_0x1a2169[_0x1a2169['length']-0x1]++,_0x45722f[_0x2270c0]['nextPosition']=_0x31b878['createPositionFromPath'](_0x51db19,_0x1a2169)):(_0x45722f[_0x2270c0]['previousPosition']=_0x31b878['createPositionFromPath'](_0x51db19,_0x1a2169),_0x525396?_0x525396['_data']+=_0x45722f[_0x2270c0]['item']['data']:_0x525396=new mt(_0x45722f[_0x2270c0]['item']['data'],_0x45722f[_0x2270c0]['item']['getAttributes']()),_0x45722f[_0x2270c0+0x1]&&'text'===_0x45722f[_0x2270c0+0x1]['type']&&_0x2cb5db(_0x525396,_0x45722f[_0x2270c0+0x1]['item'])||(_0xa2e370[0x0]['_appendChild'](_0x525396),_0x525396=null),_0x1a2169[_0x1a2169['length']-0x1]+=_0x45722f[_0x2270c0]['item']['offsetSize'],_0x45722f[_0x2270c0]['nextPosition']=_0x31b878['createPositionFromPath'](_0x51db19,_0x1a2169));for(let _0x49edcc=0x0;_0x49edcc<_0x45722f['length'];_0x49edcc++){const _0x1d2c05=_0x45722f[_0x49edcc]['previousPosition'],_0x188c6d=_0x45722f[_0x49edcc]['nextPosition'];for(const _0x1cdbc2 of _0x45722f[_0x49edcc]['markersStart'])_0x353832['set'](_0x1cdbc2,{'start':_0x1d2c05,'end':null});_0x5751d7('isRemoveSuggestion',_0x49edcc,_0x1d2c05,_0x188c6d),_0x5751d7('isAddSuggestion',_0x49edcc,_0x1d2c05,_0x188c6d),_0x5751d7('isRemoved',_0x49edcc,_0x1d2c05,_0x188c6d),_0x5751d7('isAdded',_0x49edcc,_0x1d2c05,_0x188c6d);for(const _0x333ebf of _0x45722f[_0x49edcc]['markersEnd']){const _0x473f17=_0x353832['get'](_0x333ebf);_0x473f17?_0x473f17['end']=_0x188c6d:_0x353832['set'](_0x333ebf,{'start':_0x188c6d,'end':_0x188c6d});}}for(const [_0x17850c,_0x40764c]of _0x353832){const _0x1829a4=this['editor']['model']['createRange'](_0x40764c['start'],_0x40764c['end']);_0x51db19['markers']['set'](_0x17850c,_0x1829a4);}return _0x5e7908['sort']((_0x3cf3f6,_0x1ae568)=>{const _0x4994f1=_0x51db19['markers']['get']('revision:'+_0x3cf3f6['id']),_0x4a880d=_0x51db19['markers']['get']('revision:'+_0x1ae568['id']);return _0x4994f1['start']['isBefore'](_0x4a880d['start'])?-0x1:_0x4994f1['start']['isAfter'](_0x4a880d['start'])?0x1:_0x4994f1['end']['isBefore'](_0x4a880d['end'])?-0x1:_0x4994f1['end']['isAfter'](_0x4a880d['end'])?0x1:'add'===_0x3cf3f6['type']?-0x1:0x1;}),{'root':_0x51db19,'changes':_0x5e7908};function _0x5751d7(_0x5dbab9,_0x37e610,_0x505596,_0x34acdd){const _0x536610=!!_0x45722f[_0x37e610][_0x5dbab9],_0x11bc6d=_0x536610?_0x45722f[_0x37e610][_0x5dbab9]['userId']:null,_0x55f2ee=_0x37e610===_0x45722f['length']-0x1,_0x4c93da=_0x3c7e9a[_0x5dbab9][0x0],_0x4f97f8=_0x1a6ae6['isObject'](_0x45722f[_0x37e610]['item']);!_0x46eca2[_0x5dbab9]&&_0x536610?_0x46eca2[_0x5dbab9]={'start':_0x505596,'tapeItem':_0x45722f[_0x37e610],'userId':_0x11bc6d,'type':_0x5dbab9}:_0x46eca2[_0x5dbab9]&&!_0x536610?(_0x46eca2[_0x5dbab9]['end']=_0x505596,_0x61bc1b(_0x46eca2[_0x5dbab9]),_0x46eca2[_0x5dbab9]=null):_0x46eca2[_0x5dbab9]&&_0x536610&&_0x46eca2[_0x5dbab9]['userId']!==_0x11bc6d&&(_0x46eca2[_0x5dbab9]['end']=_0x505596,_0x4c93da&&_0x4c93da['userId']===_0x46eca2[_0x5dbab9]['userId']||_0x61bc1b(_0x46eca2[_0x5dbab9]),_0x46eca2[_0x5dbab9]={'start':_0x505596,'tapeItem':_0x45722f[_0x37e610],'userId':_0x11bc6d,'type':_0x5dbab9}),_0x46eca2[_0x5dbab9]&&_0x4f97f8&&('elementStart'!==_0x45722f[_0x37e610]['type']||_0x4c93da&&_0x4c93da['userId']===_0x11bc6d||_0x3c7e9a[_0x5dbab9]['unshift']({'userId':_0x11bc6d,'object':_0x45722f[_0x37e610]['item'],'change':_0x46eca2[_0x5dbab9]}),'elementEnd'===_0x45722f[_0x37e610]['type']&&_0x4c93da&&_0x4c93da['object']===_0x45722f[_0x37e610]['item']&&(_0x3c7e9a[_0x5dbab9]['shift'](),_0x46eca2[_0x5dbab9]=_0x4c93da['change'])),_0x46eca2[_0x5dbab9]&&_0x55f2ee&&(_0x46eca2[_0x5dbab9]['end']=_0x34acdd,_0x61bc1b(_0x46eca2[_0x5dbab9]),_0x46eca2[_0x5dbab9]=null);}function _0x61bc1b({start:_0x5c5e93,end:_0x124266,tapeItem:_0x35ec5c,userId:_0xf241e1,type:_0x5f1995}){const _0x4e12dc=_0x35ec5c['item'],_0x1aa76=_0x31b878['schema']['isBlock'](_0x4e12dc)&&!_0x31b878['schema']['isLimit'](_0x4e12dc),_0x26982d=_0x5c5e93['nodeAfter']==_0x124266['parent']&&_0x124266['isAtStart'];if(_0x1aa76&&_0x26982d)return;const _0x101143=_0x31b878['createRange'](_0x5c5e93,_0x124266),_0x3d7414=_0x3578aa['get'](_0xf241e1),_0x263280=new r({'author':_0x3d7414,'type':'isAdded'==_0x5f1995||'isAddSuggestion'==_0x5f1995?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5f1995||'isRemoveSuggestion'==_0x5f1995},'createdAt':new Date(),'rootName':_0x3ef6d4});_0x5e7908['push'](_0x263280),_0x51db19['markers']['set']('revision:'+_0x263280['id'],_0x101143);}function _0x2cb5db(_0x2b50ab,_0x31e0b8){const _0xcea1db=_0x2b50ab['getAttributes'](),_0x15a297=_0x31e0b8['getAttributes']();for(const _0x512a4f of _0xcea1db){if(_0x512a4f[0x1]!==_0x31e0b8['getAttribute'](_0x512a4f[0x0]))return!0x1;_0x15a297['next']();}return _0x15a297['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5789ad=>{const _0x4494a0=_0x5789ad['markerName']['split'](':')[0x1],_0x2ed84a=this['_getChangeFromId'](_0x4494a0);if(!_0x2ed84a)return null;const _0x4dfa9b='add'==_0x2ed84a['type']?'insertion':'deletion',_0x40f734=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4dfa9b];return _0x2ed84a['data']['isSuggestion']&&_0x40f734['push']('ck-suggestion-marker-'+_0x4dfa9b+'-new'),this['activeChange']==_0x2ed84a&&_0x40f734['push']('ck-suggestion-marker--active'),{'classes':_0x40f734,'attributes':{'data-change-id':_0x4494a0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x490fea=>{_0x490fea['on']('element:pre',(_0x392698,_0x43728b,_0x50f5f6)=>{const _0x322d6e=_0x43728b['viewItem']['getChild'](0x0);if(!_0x322d6e||!_0x322d6e['is']('element','code'))return;if(!_0x50f5f6['consumable']['consume'](_0x322d6e,{'attributes':['vid_start','vid_end']}))return;const _0x346712=_0x43728b['modelRange']['start']['nodeAfter'];_0x50f5f6['writer']['setAttribute']('vid_start',_0x322d6e['getAttribute']('vid_start'),_0x346712),_0x50f5f6['writer']['setAttribute']('vid_end',_0x322d6e['getAttribute']('vid_end'),_0x346712);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x555615=>{_0x555615['on']('element',(_0x4702f8,_0x16b2b1,_0x28d1b4)=>{if(!_0x28d1b4['consumable']['consume'](_0x16b2b1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x16b2b1['modelRange']['isCollapsed'])return;const _0x461980=_0x16b2b1['modelRange']['start']['nodeAfter'];_0x461980['hasAttribute']('vid_start')||_0x461980['hasAttribute']('vid')||(_0x28d1b4['writer']['setAttribute']('vid_start',_0x16b2b1['viewItem']['getAttribute']('vid_start'),_0x461980),_0x28d1b4['writer']['setAttribute']('vid_end',_0x16b2b1['viewItem']['getAttribute']('vid_end'),_0x461980));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x11b9b5=>_0x11b9b5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe8ca49,[,_0xe75bbc])=>{['vid_start','vid_end','vid']['includes'](_0xe75bbc)&&(_0xe8ca49['return']=!0x0,_0xe8ca49['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x14d4e5=>{_0x14d4e5['on']('attribute:vid',(_0x55c65f,_0x16f0ea,_0x527029)=>{if('\x20'!=_0x16f0ea['item']['data']||_0x16f0ea['item']['parent']['maxOffset']>0x1)return;if(!_0x527029['consumable']['consume'](_0x16f0ea['item'],_0x55c65f['name']))return;const _0x2bcda1=_0x527029['writer'],_0x297844=_0x527029['mapper']['toViewRange'](_0x16f0ea['range']);_0x2bcda1['wrap'](_0x297844,_0x2bcda1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x45c2bb){const _0x4b3f2f=_0x45c2bb['plugins']['get']('RevisionViewer');return(_0x54d7dd,_0x4290d7,_0x39f69e)=>{const _0x85f0e3=_0x4290d7['markerName']['split'](':')[0x1],_0x2e7890=_0x4b3f2f['_getChangeFromId'](_0x85f0e3);if(!_0x2e7890)return null;const _0x1c4849='add'==_0x2e7890['type']?'split':'merge';if(!_0x39f69e['consumable']['test'](_0x4290d7['markerRange'],_0x54d7dd['name']))return;const _0x121e37=_0x4290d7['markerRange']['getWalker'](),_0x60d883=_0x4290d7['markerRange']['start'],_0x430a37=_0x45c2bb['model']['schema'];let _0x46b7ab=null,_0x197edb=null,_0x51795a=!0x1,_0x4eab76=!0x1;for(const _0x3641aa of _0x121e37){const _0x1e8f6c=_0x3641aa['item'];_0x51795a=_0x51795a||_0x430a37['isContent'](_0x1e8f6c);const _0x396270=_0x39f69e['mapper']['toViewElement'](_0x1e8f6c);if(_0x396270&&_0x396270['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3641aa['type']&&(_0x430a37['isBlock'](_0x1e8f6c)&&!_0x430a37['isLimit'](_0x1e8f6c)&&(_0x1e8f6c['nextSibling']||_0x60d883['isAtEnd']?_0x46b7ab&&_0x46b7ab['parent']==_0x1e8f6c||(_0x46b7ab=_0x1e8f6c,_0x3eeb3d(_0x3641aa['previousPosition']),_0x4eab76=!0x0):_0x197edb=_0x197edb||_0x3641aa['previousPosition']));}function _0x3eeb3d(_0x2df122){const _0x5b7da4=_0x39f69e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c4849}),_0x56e8e0=_0x39f69e['mapper']['toViewPosition'](_0x2df122);_0x2e7890['data']['isSuggestion']&&_0x39f69e['writer']['addClass']('ck-suggestion-marker-'+_0x1c4849+'-new',_0x5b7da4),_0x4b3f2f['activeChange']==_0x2e7890&&_0x39f69e['writer']['addClass']('ck-suggestion-marker--active',_0x5b7da4),_0x39f69e['writer']['insert'](_0x56e8e0,_0x5b7da4),_0x39f69e['mapper']['bindElementToMarker'](_0x5b7da4,_0x4290d7['markerName']);}_0x51795a||_0x4eab76||!_0x197edb||_0x3eeb3d(_0x197edb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x81aece,_0xd9a6ce,_0x3ab27f)=>{const _0x51ed70=_0x3ab27f['mapper']['markerNameToElements'](_0xd9a6ce['markerName']);if(_0x51ed70){for(const _0x4d430f of _0x51ed70)(_0x4d430f['hasClass']('ck-suggestion-marker-split')||_0x4d430f['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ab27f['mapper']['unbindElementFromMarkerName'](_0x4d430f,_0xd9a6ce['markerName']),_0x3ab27f['writer']['remove'](_0x4d430f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3e5591,_0x9c4db3,_0x35e559)=>{const _0x5106cb=_0x9c4db3['markerName']['split'](':')[0x1],_0x33bbfa=this['_getChangeFromId'](_0x5106cb);if(!_0x33bbfa)return null;const _0x597fbe='add'==_0x33bbfa['type']?'split':'merge';if(_0x35e559['consumable']['test'](_0x9c4db3['markerRange'],_0x3e5591['name']))for(const _0x53bdda of _0x9c4db3['markerRange']['getItems']()){if(!_0x53bdda['is']('element','softBreak'))continue;const _0x3501fa=_0x35e559['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x597fbe}),_0x1957d3=_0x35e559['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x53bdda));_0x33bbfa['data']['isSuggestion']&&_0x35e559['writer']['addClass']('ck-suggestion-marker-'+_0x597fbe+'-new',_0x3501fa),this['activeChange']==_0x33bbfa&&_0x35e559['writer']['addClass']('ck-suggestion-marker--active',_0x3501fa),_0x35e559['writer']['insert'](_0x1957d3,_0x3501fa),_0x35e559['mapper']['bindElementToMarker'](_0x3501fa,_0x9c4db3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x59269f=>{for(const _0x15c028 of this['editor']['model']['document']['getRootNames']()){const _0x14aa19=this['editor']['model']['document']['getRoot'](_0x15c028),_0xb8fbae=this['editor']['editing']['view']['document']['getRoot'](_0x15c028);if(_0xb8fbae){const _0x578691=_0x14aa19['getAttribute']('revisionHistoryAttachChange');if(_0x59269f['removeAttribute']('data-change-id',_0xb8fbae),_0x59269f['removeClass']('ck-revision-history-root-add',_0xb8fbae),_0x59269f['removeClass']('ck-revision-history-root-remove',_0xb8fbae),_0x59269f['removeClass']('ck-revision-history-root--active',_0xb8fbae),_0x578691){const _0x42c42c=this['_getChangeFromId'](_0x578691);if(!_0x42c42c)return null;_0x59269f['setAttribute']('data-change-id',_0x578691,_0xb8fbae),_0x59269f['addClass']('ck-revision-history-root-'+_0x42c42c['type'],_0xb8fbae),this['activeChange']==_0x42c42c&&_0x59269f['addClass']('ck-revision-history-root--active',_0xb8fbae);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x55913d=>'revision-comment:'+_0x55913d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xd21f7c=>'revision-suggestion:'+_0xd21f7c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1ff2d1=>({'name':'suggestion:'+_0x1ff2d1,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x282320=>{const _0x58ad73=_0x282320['markerName']['split'](':')[0x1];return'insertion'!=_0x58ad73&&'deletion'!=_0x58ad73?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x58ad73]};}}),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',(_0x5d11f6,_0x75fcdc,_0x13ba1c)=>{const _0x1adb56=_0x13ba1c['mapper']['markerNameToElements'](_0x75fcdc['markerName']);if(_0x1adb56){for(const _0x358002 of _0x1adb56)_0x358002['is']('uiElement')&&(_0x13ba1c['mapper']['unbindElementFromMarkerName'](_0x358002,_0x75fcdc['markerName']),_0x13ba1c['writer']['remove'](_0x358002));}},{'priority':'high'});}['_getChangeFromId'](_0x4a5971){return this['_changeIdToChange']['get'](_0x4a5971);}['_getViewForChange'](_0x59b52f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x59b52f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x16b972,_0x3271cd,_0x3f49f8,_0x437fb2)=>{_0x437fb2&&this['_balloon']['remove'](_0x437fb2),_0x3f49f8&&(this['_balloon']['add']({'view':_0x3f49f8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1b3b9b=this['editor']['editing'],_0xd399f3=this['_getChangeFromId'](_0x3f49f8['changeId']);let _0x1dbd9e;if(_0xd399f3['data']['isOnRoot']){const _0x314cbe=_0x1b3b9b['view']['getDomRoot'](_0xd399f3['rootName']);_0x1dbd9e=Array['from'](_0x314cbe['getClientRects']());}else{const _0x48181a=this['editor']['model']['markers']['get']('revision:'+_0x3f49f8['changeId']);_0x1dbd9e=Array['from'](_0x1b3b9b['mapper']['markerNameToElements'](_0x48181a['name']))['map'](_0x4684d7=>_0x1b3b9b['view']['domConverter']['mapViewToDom'](_0x4684d7))['map'](_0x392f77=>Array['from'](_0x392f77['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dbd9e[0x0];return _0x1dbd9e['find'](_0x46254e=>_0x46254e['top']-0x3<=this['_activeViewTarget']['y']&&_0x46254e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x46254e['left']-0x3<=this['_activeViewTarget']['x']&&_0x46254e['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dbd9e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x391563,_0x1cabc9,_0xd3d7ac,_0x27b009)=>{this['activeView']=_0xd3d7ac?this['_getViewForChange'](_0xd3d7ac):null,this['editor']['model']['change'](()=>{const _0x119271=this['editor']['editing'];_0x27b009&&(_0x27b009['data']['isOnRoot']?_0x119271['view']['change'](_0x55a840=>{_0x55a840['removeClass']('ck-revision-history-root--active',_0x119271['view']['document']['getRoot'](_0x27b009['rootName']));}):_0x119271['reconvertMarker']('revision:'+_0x27b009['id'])),_0xd3d7ac&&(_0xd3d7ac['data']['isOnRoot']?_0x119271['view']['change'](_0x4a654a=>{_0x4a654a['addClass']('ck-revision-history-root--active',_0x119271['view']['document']['getRoot'](_0xd3d7ac['rootName']));}):_0x119271['reconvertMarker']('revision:'+_0xd3d7ac['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x241676,_0x22ca68)=>{if(this['activeChange'])return;const _0x33ad0d=this['_findChangeIdFromDomTarget'](_0x22ca68['target']),_0x1d11a8=this['_changeIdToChange']['get'](_0x33ad0d);_0x1d11a8?(this['_activeViewTarget']={'x':_0x22ca68['domEvent']['x'],'y':_0x22ca68['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1d11a8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2b5f7e,_0x215782)=>{const _0x22587b=this['_findChangeIdFromDomTarget'](_0x215782['target']),_0x4664f6=this['_changeIdToChange']['get'](_0x22587b);_0x4664f6?(this['_activeViewTarget']={'x':_0x215782['domEvent']['x'],'y':_0x215782['domEvent']['y']},_0x4664f6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4664f6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x436c55){do{const _0x59935d=_0x436c55['getAttribute']('data-change-id');if(_0x59935d)return _0x59935d;_0x436c55=_0x436c55['parent'];}while(_0x436c55);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1cc6ef=>{for(const _0xf8c706 of this['editor']['model']['markers'])_0x1cc6ef['removeMarker'](_0xf8c706);});}}function X(_0x5b0a29,_0x291e88){return(_0x450816,_0x709651,_0x4e40bf)=>{if(!_0x4e40bf['consumable']['test'](_0x709651['markerRange'],_0x450816['name']))return;const _0x252490=_0x709651['markerRange']['getWalker'](),_0x1aad16=_0x709651['markerRange']['start'],_0x5d6c60=_0x5b0a29['model']['schema'];let _0x17b57e=null,_0x5745f6=null,_0xe562d1=!0x1,_0x572ba0=!0x1;for(const _0x29010b of _0x252490){const _0x291e9b=_0x29010b['item'];_0xe562d1=_0xe562d1||_0x5d6c60['isContent'](_0x291e9b);const _0x19bf08=_0x4e40bf['mapper']['toViewElement'](_0x291e9b);if(_0x19bf08&&_0x19bf08['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29010b['type']&&(_0x5d6c60['isBlock'](_0x291e9b)&&!_0x5d6c60['isLimit'](_0x291e9b)&&(_0x291e9b['nextSibling']||_0x1aad16['isAtEnd']?_0x17b57e&&_0x17b57e['parent']==_0x291e9b||(_0x17b57e=_0x291e9b,_0x410679(_0x29010b['previousPosition']),_0x572ba0=!0x0):_0x5745f6=_0x5745f6||_0x29010b['previousPosition']));}function _0x410679(_0x3848c4){const _0x4a1055=_0x4e40bf['mapper']['toViewPosition'](_0x3848c4),_0x31aed7=_0x4e40bf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x291e88});_0x4e40bf['writer']['insert'](_0x4a1055,_0x31aed7),_0x4e40bf['mapper']['bindElementToMarker'](_0x31aed7,_0x709651['markerName']);}_0xe562d1||_0x572ba0||!_0x5745f6||_0x410679(_0x5745f6);};}class wt extends _0x28cca2{constructor(_0x377a15){super(_0x377a15);const _0x78db8f=_0x377a15['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x78db8f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x78db8f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2059ed=this['editor'],_0x456550=_0x2059ed['plugins']['get'](m),_0x29c0b6=_0x456550['isReady']?_0x456550['diff']['newRevisionId']:null;_0x2059ed['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x29c0b6);}['refresh'](){const {isReady:_0x34ce04,isEnabled:_0x33aa4,repository:_0xb0d170,diff:_0x471594}=this['editor']['plugins']['get'](m),_0x40253b=_0x471594&&_0xb0d170['getLaterVisibleRevision'](_0x471594['newRevisionId']);this['isEnabled']=_0x34ce04&&_0x33aa4&&Boolean(_0x40253b);}}class pt extends _0x28cca2{['_step'];constructor(_0x5f3030,{direction:_0x2a8bc0}){super(_0x5f3030);const _0x35a2e9=_0x5f3030['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2a8bc0?0x1:-0x1,this['listenTo'](_0x35a2e9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x35a2e9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x35a2e9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4cc2c4=this['editor'],_0xb3c0bd=_0x4cc2c4['plugins']['get'](m),{isNavigationMode:_0x5bf088,currentChangeNumber:_0x144ace}=_0xb3c0bd;let _0x126744;if(_0xb3c0bd['activeChange']=_0x5bf088?_0xb3c0bd['diff']['changes']['get'](_0x144ace+this['_step']):_0xb3c0bd['diff']['changes']['first'],_0xb3c0bd['activeChange']['data']['isOnRoot'])_0x126744=_0x4cc2c4['editing']['view']['getDomRoot'](_0xb3c0bd['activeChange']['rootName']);else{const _0x3e789d=_0x4cc2c4['model']['markers']['get']('revision:'+_0xb3c0bd['activeChange']['id']);_0x126744=_0x43518d(_0x4cc2c4['editing'],_0x3e789d);}_0x2da863({'target':_0x126744,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5246eb,currentChangeNumber:_0x46d291,numberOfChanges:_0x2dc28c,isReady:_0x1bdb0c,isEnabled:_0x23fe64}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x23fe64&&_0x1bdb0c&&_0x2dc28c)&&(!_0x5246eb||(0x1===this['_step']?_0x46d291<_0x2dc28c-0x1:_0x46d291>0x0));}}class _i extends _0x39b20e{constructor(_0xf98842){super(_0xf98842);const _0x20814a=this['bindTemplate'],_0x7e6c38=new _0x1f72d5(_0xf98842),_0x2cde94=new _0x1f72d5(_0xf98842);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',(_0x49e280,_0x56244d)=>_0x49e280&&_0x56244d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x345302,_0xb20691,_0x210baf,_0x39a705)=>{if(!_0x345302)return g(_0xf98842,'Loading...');if(!_0x210baf)return g(_0xf98842,'No\x20changes');const _0x450846=g(_0xf98842,'NUMBER_OF_CHANGES',_0x210baf);return _0x39a705?g(_0xf98842,'X_OF_Y_CHANGES',[_0xb20691+0x1,_0x210baf]):_0x450846;}),_0x7e6c38['set']({'label':g(_0xf98842,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x50a90b}),_0x2cde94['set']({'label':g(_0xf98842,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4c8042}),_0x7e6c38['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2cde94['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x7e6c38['on']('execute',()=>this['fire']('execute','backward')),_0x2cde94['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',_0x20814a['if']('_isStatusLabelVisible','ck-hidden',_0x423852=>!_0x423852)]},'children':[{'text':_0x20814a['to']('isNavigationMode',_0x42e607=>_0x42e607?g(_0xf98842,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0xf98842,'Total')+':\x20')}]},{'text':_0x20814a['to']('_statusText')}]},new _0x7f57a5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x7e6c38,_0x2cde94]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4e9206{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x19aecd=this['editor']['editing']['view'];_0x19aecd['change'](_0x1c670e=>{for(const _0x47db06 of _0x19aecd['document']['roots'])_0x1c670e['addClass'](ce,_0x47db06);});}['hide'](){const _0xc36adf=this['editor']['editing']['view'];_0xc36adf['change'](_0x3d1d97=>{for(const _0x56bdd1 of _0xc36adf['document']['roots'])_0x3d1d97['removeClass'](ce,_0x56bdd1);});}}class R extends _0x4e9206{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x38ff7d=this['editor'],_0x5099a5=_0x38ff7d['plugins']['get'](m),_0x4b4daf=_0x38ff7d['plugins']['get'](le);_0x38ff7d['ui']['componentFactory']['add']('exitToEditing',_0x22ee89=>{const _0x102f95=new _0x1f72d5(_0x22ee89);return _0x102f95['set']({'label':g(_0x22ee89,'Back\x20to\x20editing'),'icon':_0x47ada1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x102f95,'execute',()=>{_0x38ff7d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x102f95;}),_0x38ff7d['ui']['componentFactory']['add']('restoreRevision',_0x10ba27=>{const _0x871b13=new _0x1f72d5(_0x10ba27);return _0x871b13['set']({'label':g(_0x10ba27,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x871b13['bind']('isEnabled')['to'](_0x38ff7d['commands']['get']('restoreRevision')),this['listenTo'](_0x871b13,'execute',()=>_0x38ff7d['execute']('restoreRevision')),_0x871b13;}),_0x38ff7d['ui']['componentFactory']['add']('changesNavigation',_0x2f32da=>{const _0x473895=new _i(_0x2f32da),_0x3f3708=_0x38ff7d['commands']['get']('showPreviousChange'),_0xf92f3c=_0x38ff7d['commands']['get']('showNextChange');return _0x473895['bind']('isBackwardNavigationEnabled')['to'](_0x3f3708,'isEnabled'),_0x473895['bind']('isForwardNavigationEnabled')['to'](_0xf92f3c,'isEnabled'),_0x473895['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5099a5),this['listenTo'](_0x473895,'execute',(_0x4e2947,_0x12aa37)=>{_0x38ff7d['execute']('forward'===_0x12aa37?'showNextChange':'showPreviousChange');}),_0x473895;}),_0x4b4daf['show'](),_0x5099a5['on']('change:isReady',(_0x2d15ba,_0x46227e,_0x5f4552)=>{_0x5f4552?_0x4b4daf['hide']():_0x4b4daf['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x251c40,_0x4d0242){super(_0x251c40,_0x4d0242);const _0x2fae46=this['bindTemplate'];this['set']({'label':g(_0x251c40,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x251c40,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2fae46['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x48ea45=this['fieldView']['element'];this['_tooltipString']=_0x48ea45['scrollWidth']>_0x48ea45['clientWidth']&&_0x48ea45['value']||'';}}class oi extends _0x39b20e{constructor(_0x5c05df,_0x29157d,_0xebdf22){super(_0x5c05df);const _0x21fd57=new _0x1d09e5();_0x21fd57['set']({'content':_0x575a28,'viewBox':'0\x200\x2011\x2010'});const _0x4ab4f3=['ck','ck-revision-history-sidebar__revision-author'];_0xebdf22&&_0x4ab4f3['push']('ck-revision-history-sidebar__revision-author_creator');const _0x29b8b9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5c05df,_0xebdf22?'Revision\x20creator':'Revision\x20author')},'children':[_0x21fd57,_0x29157d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ab4f3},'children':_0x29b8b9});}}function ni(_0x365ba5,_0x4450d1){const _0xe36bb8=_0x365ba5['bindTemplate'],_0x4532c3=_0x365ba5['locale'],_0x41e58f=_0x114072(_0x4532c3);_0x41e58f['panelPosition']='sw';const _0x106539=function(_0x2e1e1f,_0x37e5e1){const _0x416a1e=function(_0x49ae6d,_0x3168ed){const _0x193b86=_0x49ae6d['locale'],_0x1b2e83={'Compare\x20against\x20selected':g(_0x193b86,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x193b86,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x193b86,'Restore\x20this\x20revision')};return _0x3168ed['map'](_0x3a321a=>{const _0x49cdc2=_0x1b2e83[_0x3a321a['name']];return _0x49cdc2&&_0x49cdc2!==_0x3a321a['name']&&(_0x3a321a['name']=_0x49cdc2),_0x3a321a;});}(_0x2e1e1f,_0x37e5e1),_0x302ee3=new _0x44a143();for(const _0xf2a74c of _0x416a1e){const _0x5cce1c={'type':'button','model':new to({'label':_0xf2a74c['name'],'class':_0xf2a74c['class'],'withText':!0x0,'role':'menuitem','_action':_0xf2a74c['action']})};_0x5cce1c['model']['bind']('isEnabled')['to'](_0x2e1e1f,'isActionsDropdownOpen',_0x5c02f5=>'function'!=typeof _0xf2a74c['isEnabled']||(!_0x5c02f5||_0xf2a74c['isEnabled'](_0x2e1e1f))),_0x302ee3['add'](_0x5cce1c);}return _0x302ee3;}(_0x365ba5,_0x4450d1);return _0x365ba5['bind']('isActionsDropdownOpen')['to'](_0x41e58f,'isOpen'),_0x41e58f['buttonView']['set']({'label':g(_0x4532c3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4a34dc}),_0x41e58f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xe36bb8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xe36bb8['to'](_0x2e507f=>_0x2e507f['stopPropagation']())}}),_0x41e58f['on']('execute',_0x4b03eb=>{_0x365ba5['isReady']&&'function'==typeof _0x4b03eb['source']['_action']&&_0x4b03eb['source']['_action'](_0x365ba5);}),_0x11f9bf(_0x41e58f,_0x106539,{'role':'menu'}),_0x41e58f['listenTo'](_0x365ba5,'change:isActionsDropdownOpen',(_0x4667be,_0x510101,_0xaba3c8)=>{if(_0xaba3c8)for(const _0x8e2382 of _0x41e58f['listView']['items']){const _0x496458=_0x8e2382['children']['first'],_0x2ac3ad=_0x4450d1['find'](_0x51aa16=>_0x51aa16['action']===_0x496458['_action'])['isVisible'];_0x8e2382['isVisible']=void 0x0===_0x2ac3ad||_0x2ac3ad(_0x365ba5);}}),_0x41e58f;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x6a77e2,uid as _0x58b8ff,Collection as _0x5495c4,logWarning as _0xf43310,FocusTracker as _0x50bd47,KeystrokeHandler as _0x4ecd61,scrollViewportToShowTarget as _0x2606af,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0xdb6012}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x291809,set as _0x5848ba,unset as _0x934b01,isEqual as _0x7a304c}from'es-toolkit/compat';import{Plugin as _0x3ba875,PendingActions as _0x25252b,Command as _0x23e514,ElementApiMixin as _0x40797a,Editor as _0x3664be}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b8b11,getMarkerDomElement as _0x225b7e,ConfirmMixin as _0x1f1bf1,sanitizeEditorConfig as _0x22bf10}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4e0af3,ViewAttributeElement as _0xfb9c57,ViewEmptyElement as _0x4480bf,ViewRawElement as _0x346d39,ViewUIElement as _0x42c222,ViewDocumentFragment as _0x1852c8,ViewText as _0x2f8706,ViewElement as _0xfd25df,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x209882,IconChevronUp as _0x5abbae,IconChevronDown as _0x4ea29c,IconUndo as _0x55c272,IconUser as _0x4379bb,IconThreeVerticalDots as _0x2cdf3c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x18313a,injectCssTransitionDisabler as ts,submitHandler as _0x47be2c,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x3564c9,ListView as _0x10dfcb,ListItemView as te,ButtonView as _0x29dce1,MenuBarMenuView as _0x1ab6f1,MenuBarMenuListView as _0x56e625,MenuBarMenuListItemView as _0x39cc4d,MenuBarMenuListItemButtonView as _0x34296b,ContextualBalloon as _0x44407,ToolbarSeparatorView as _0x15eefc,IconView as _0x9e0bb7,addListToDropdown as _0x294d83,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 _0x16a5a3}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x6a77e2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfb318){super(),this['id']=_0xfb318['id']||_0x58b8ff(),this['creator']=_0xfb318['creator']||null,this['authors']=_0xfb318['authors']||[],this['diffData']=_0xfb318['diffData']||null,this['toVersion']=_0xfb318['toVersion']||0x0,this['fromVersion']=_0xfb318['fromVersion']||0x0,this['set']('name',_0xfb318['name']||''),this['set']('createdAt',_0xfb318['createdAt']||new Date()),this['set']('attributes',_0xfb318['attributes']||{});}['setName'](_0x387de2){this['_update']({'name':_0x387de2});}['setAttribute'](_0x543eaa,_0x2a2248){const _0x3d3abd=_0x291809(this['attributes']);_0x5848ba(_0x3d3abd,_0x543eaa,_0x2a2248),this['_update']({'attributes':_0x3d3abd});}['removeAttribute'](_0x5980d2){const _0x3bd59f=_0x291809(this['attributes']);_0x934b01(_0x3bd59f,_0x5980d2),this['_update']({'attributes':_0x3bd59f});}['_update'](_0x2b2aa7,_0x29e2bb=!0x1){let _0x1fdf8c=!0x1;const _0x41cda3={'id':this['id']},_0x2ffb62=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a0e08 of _0x2ffb62){const _0x1f7923=_0x2b2aa7[_0x5a0e08];void 0x0!==_0x1f7923&&_0x1f7923!==this[_0x5a0e08]&&(this[_0x5a0e08]=_0x1f7923,_0x41cda3[_0x5a0e08]=_0x1f7923,_0x1fdf8c=!0x0);}_0x1fdf8c&&(_0x41cda3['authors']&&(_0x41cda3['authorsIds']=_0x41cda3['authors']['map'](_0x4c07a3=>_0x4c07a3['id']),delete _0x41cda3['authors']),this['fire']('_update',_0x41cda3,_0x29e2bb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x24a681=>_0x24a681['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3ba875{['_revisions'];static get['requires'](){return[_0x1b8b11];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1dfa78){super(_0x1dfa78),this['_revisions']=new _0x5495c4();}['afterInit'](){!async function(_0x22b0b9){const _0x537b2c=_0x30efda([0x6d,0x46,0x35,0x49,0x4d,0x69,0x34,0x6c,0x57,0x42,0x77,0x54,0x62,0x58,0x7a,0x72,0x6f,0x39,0x59,0x4e,0x6b,0x47,0x32,0x52,0x4c,0x75,0x55,0x56,0x4f,0x76,0x61,0x50,0x79,0x74,0x4a,0x66,0x6e,0x37,0x64,0x67,0x38,0x73,0x51,0x41,0x36,0x44,0x33,0x30,0x6a,0x45,0x70,0x31,0x65,0x4b,0x68,0x63,0x78,0x71,0x5a,0x43,0x53,0x48]),_0x47cd1f=0xeb829,_0x4bbaf7=0x41eb99b3,_0x48619c=0x41ecfa8b^_0x4bbaf7,_0x276b28=window[_0x30efda([0x44,0x61,0x74,0x65])][_0x30efda([0x6e,0x6f,0x77])](),_0x1b9de3=_0x22b0b9[_0x30efda([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb70054=new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3a9a=>{_0x1b9de3[_0x30efda([0x6f,0x6e,0x63,0x65])](_0x30efda([0x72,0x65,0x61,0x64,0x79]),_0x1b3a9a);}),_0x21e0cb={[_0x30efda([0x6b,0x74,0x79])]:_0x30efda([0x45,0x43]),[_0x30efda([0x75,0x73,0x65])]:_0x30efda([0x73,0x69,0x67]),[_0x30efda([0x63,0x72,0x76])]:_0x30efda([0x50,0x2d,0x32,0x35,0x36]),[_0x30efda([0x78])]:_0x30efda([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]),[_0x30efda([0x79])]:_0x30efda([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]),[_0x30efda([0x61,0x6c,0x67])]:_0x30efda([0x45,0x53,0x32,0x35,0x36])},_0x1e9771=_0x1b9de3[_0x30efda([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30efda([0x67,0x65,0x74])](_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18b881(){let _0x21ef21,_0xeda640=null,_0x9bfec1=null;try{if(_0x1e9771==_0x30efda([0x47,0x50,0x4c]))return _0x30efda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21ef21=_0x1922d7(),!_0x21ef21)return _0x30efda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21ef21[_0x30efda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9bfec1=_0x2cccc4(_0x21ef21[_0x30efda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21ef21[_0x30efda([0x6a,0x74,0x69])])),await _0x36f90f()?_0x26f254()?_0x1713d0()?_0x30efda([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x359bb6()?(_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30efda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeda640=_0xef7ead(_0x30efda([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30efda([0x74,0x72,0x69,0x61,0x6c])&&(_0xeda640=_0xef7ead(_0x30efda([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4796d5()):_0x30efda([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30efda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30efda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3231eb){return _0x30efda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1713d0(){const _0x185f86=[_0x30efda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30efda([0x74,0x72,0x69,0x61,0x6c])][_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x276b28/0x3e8:0xe10*_0x48619c;return _0x21ef21[_0x30efda([0x65,0x78,0x70])]<_0x185f86;}function _0x26f254(){const _0x28cebd=_0x21ef21[_0x30efda([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x28cebd)return!0x1;if(_0x28cebd[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x2a])))return!0x0;if(_0x28cebd[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x52,0x48])))return!0x0;if(_0x28cebd[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x52,0x52,0x48]))){if(_0x458815())return!0x0;if(_0x666d3e()||_0x35a172())return!0x0;}return!0x1;}function _0x359bb6(){const _0x2af5d2=_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2af5d2||0x0==_0x2af5d2[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21f0a9}=new URL(window[_0x30efda([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2af5d2[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21f0a9))return!0x0;const _0x2ce956=_0x21f0a9[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e]));return _0x2af5d2[_0x30efda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ae48d=>_0x4ae48d[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x2a])))[_0x30efda([0x6d,0x61,0x70])](_0x2dcbec=>_0x2dcbec[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e])))[_0x30efda([0x73,0x6f,0x6d,0x65])](_0x36eac5=>_0x2ce956[_0x30efda([0x65,0x76,0x65,0x72,0x79])]((_0x31b547,_0x14efb7)=>_0x36eac5[_0x14efb7]===_0x31b547||_0x36eac5[_0x14efb7]===_0x30efda([0x2a])));}function _0x4796d5(){return _0xeda640&&_0x9bfec1?new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a516c,_0x18abef)=>{_0xeda640[_0x30efda([0x74,0x68,0x65,0x6e])](_0x3a516c,_0x18abef),_0x9bfec1[_0x30efda([0x74,0x68,0x65,0x6e])](_0x43f79c=>{_0x43f79c!=_0x30efda([0x56,0x61,0x6c,0x69,0x64])&&_0x3a516c(_0x43f79c);},_0x18abef);}):_0xeda640||_0x9bfec1||_0x30efda([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cccc4(_0x5d35a2,_0x4f403c){return new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1846ef=>{if(_0x9cecab())return _0x1846ef(_0x30efda([0x56,0x61,0x6c,0x69,0x64]));_0x157d69(),_0x1b9de3[_0x30efda([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30efda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x65be2d=!0x1;const _0x179a39=_0x58b8ff();function _0xe11d34(_0x2f55c7){return!!_0x2f55c7&&(typeof _0x2f55c7===_0x30efda([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f55c7===_0x30efda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f55c7[_0x30efda([0x74,0x68,0x65,0x6e])]===_0x30efda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f55c7[_0x30efda([0x63,0x61,0x74,0x63,0x68])]===_0x30efda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x266061(_0x416e22){_0x2367fe(_0x416e22)[_0x30efda([0x74,0x68,0x65,0x6e])](_0x4d77ec=>{if(!_0x4d77ec||_0x4d77ec[_0x30efda([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30efda([0x6f,0x6b]))return _0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31aafd(_0x329db6(_0x179a39+_0x4f403c))!=_0x4d77ec[_0x30efda([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30efda([0x56,0x61,0x6c,0x69,0x64]);})[_0x30efda([0x74,0x68,0x65,0x6e])](_0x3210ba=>(_0x27cfa4(),_0x3210ba),()=>{const _0xcef7b9=_0x325d85();return null==_0xcef7b9?(_0x27cfa4(),_0x30efda([0x56,0x61,0x6c,0x69,0x64])):_0x30efda(_0x276b28-_0xcef7b9>(0x65e71db3^_0x4bbaf7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30efda([0x74,0x68,0x65,0x6e])](_0x1846ef)[_0x30efda([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1846ef(_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33ec1d=0x41dd7733^_0x4bbaf7;function _0x27cfa4(){const _0x356e3a=_0x30efda([0x6c,0x6c,0x63,0x74,0x2d])+_0x31aafd(_0x329db6(_0x5d35a2)),_0x38e296=_0x3acb4d(_0x31aafd(window[_0x30efda([0x4d,0x61,0x74,0x68])][_0x30efda([0x63,0x65,0x69,0x6c])](_0x276b28/_0x33ec1d)));window[_0x30efda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30efda([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x356e3a,_0x38e296);}function _0x325d85(){const _0x2b3a7f=_0x30efda([0x6c,0x6c,0x63,0x74,0x2d])+_0x31aafd(_0x329db6(_0x5d35a2)),_0x11b106=window[_0x30efda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30efda([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b3a7f);return _0x11b106?window[_0x30efda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3acb4d(_0x11b106),0x10)*_0x33ec1d:null;}function _0x2367fe(_0x2bc7e6){return new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50555a,_0x3d3377)=>{_0x2bc7e6[_0x30efda([0x74,0x68,0x65,0x6e])](_0x50555a,_0x3d3377),window[_0x30efda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d3377,0x41ea4d73^_0x4bbaf7);});}}_0x1b9de3[_0x30efda([0x6f,0x6e])](_0x30efda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x345d6e,_0x43eb6f)=>{if(_0x43eb6f[0x0]!=_0x5d35a2)return _0x1846ef(_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43eb6f[0x1]={..._0x43eb6f[0x1],[_0x30efda([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x179a39};},{[_0x30efda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30efda([0x68,0x69,0x67,0x68])}),_0x1b9de3[_0x30efda([0x6f,0x6e])](_0x30efda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x324922=>{_0xe11d34(_0x324922[_0x30efda([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x65be2d=!0x0,_0x266061(_0x324922[_0x30efda([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30efda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30efda([0x6c,0x6f,0x77])}),_0xb70054[_0x30efda([0x74,0x68,0x65,0x6e])](()=>{_0x65be2d||_0x1846ef(_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9cecab(){return _0x1b9de3[_0x30efda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30efda([0x76,0x69,0x65,0x77])][_0x30efda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30efda([0x61,0x75,0x74,0x6f]);}function _0x157d69(){_0x1b9de3[_0x30efda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30efda([0x76,0x69,0x65,0x77])][_0x30efda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30efda([0x61,0x75,0x74,0x6f]);}}function _0xef7ead(_0x591b98){const _0x4ced23=[new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dbf32=>setTimeout(_0x4dbf32,0x41e2a77f^_0x4bbaf7)),_0xb70054[_0x30efda([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e0209=>{const _0x35c886=0x41eb99b4^_0x4bbaf7,_0x2b941d=_0x22b0b9[_0x30efda([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2f5155(){_0x2b941d[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35c886&&_0x3e0209();}_0x2f5155(),_0x2b941d[_0x30efda([0x6f,0x6e])](_0x30efda([0x61,0x64,0x64]),_0x2f5155);})),new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x358826=>{function _0x124d58(){for(const _0x59da24 in window)if(window[_0x30efda([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x30efda([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59da24))&&window[_0x59da24]==_0x47cd1f)return _0x358826();_0x1b9de3[_0x30efda([0x73,0x74,0x61,0x74,0x65])]!=_0x30efda([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x30efda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x124d58,0x41eb8a3b^_0x4bbaf7);}_0x484062(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x124d58();})];return window[_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30efda([0x72,0x61,0x63,0x65])](_0x4ced23)[_0x30efda([0x74,0x68,0x65,0x6e])](()=>_0x591b98);}async function _0x42839d(){if(await _0xb70054,_0x484062(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x55ae27=_0x22b0b9[_0x30efda([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x27cfe9=_0x22b0b9[_0x30efda([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])](_0x55ae27[_0x30efda([0x69,0x64])]),_0x5f5bb4=_0xc0da89(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5f5bb4[_0x30efda([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x55ae27['id'],_0x27cfe9?_0x27cfe9['id']:null,!0x0),_0x5f5bb4[_0x30efda([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5f5bb4[_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5f5bb4[_0x30efda([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x318bcf,void(_0x5f5bb4[_0x30efda([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x318bcf);}if(_0x484062(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1340ca=_0xc0da89(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1340ca[_0x30efda([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1340ca[_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1340ca[_0x30efda([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x318bcf,_0x1340ca[_0x30efda([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x318bcf;}_0x1b9de3[_0x30efda([0x6d,0x6f,0x64,0x65,0x6c])][_0x30efda([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x318bcf,_0x1b9de3[_0x30efda([0x6d,0x6f,0x64,0x65,0x6c])][_0x30efda([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x318bcf,_0x1b9de3[_0x30efda([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30efda([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x458815(){return _0x484062(_0x30efda([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc0da89(_0x30efda([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x30efda([0x73,0x74,0x61,0x74,0x65])]==_0x30efda([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x666d3e(){return _0x484062(_0x30efda([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 _0x35a172(){return _0x484062(_0x30efda([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5d842e(_0xbb9630){const _0x57edf4=_0x1ed3a0();_0x1b9de3[_0x57edf4]=_0x30efda([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])+_0xbb9630,_0xbb9630[_0x30efda([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x30efda([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1ed3a0()]=_0x47cd1f),_0xbb9630!=_0x30efda([0x56,0x61,0x6c,0x69,0x64])&&_0x42839d();}function _0x1ed3a0(){const _0x17b9e4=window[_0x30efda([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30efda([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30efda([0x6e,0x6f,0x77])]())[_0x30efda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30efda([0x2e]),'');let _0xacccd9=_0x30efda([0x6d]);for(let _0x42b1e1=0x0;_0x42b1e1<_0x17b9e4[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42b1e1+=0x2){let _0x13cdf1=window[_0x30efda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17b9e4[_0x30efda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42b1e1,_0x42b1e1+0x2));_0x13cdf1>=_0x537b2c[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13cdf1-=_0x537b2c[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xacccd9+=_0x537b2c[_0x13cdf1];}return _0xacccd9;}function _0x1922d7(){const _0x3e4b8a=_0x1e9771[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e]));if(0x3!=_0x3e4b8a[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x192c77(_0x3e4b8a[0x1]);function _0x192c77(_0x228af6){const _0x34a0da=_0x2cef56(_0x228af6);return _0x34a0da&&_0x2e1718()?_0x34a0da:null;function _0x2e1718(){const _0x26f7c8=_0x34a0da[_0x30efda([0x6a,0x74,0x69])],_0x3604d9=window[_0x30efda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26f7c8[_0x30efda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26f7c8[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x489d83={..._0x34a0da,[_0x30efda([0x6a,0x74,0x69])]:_0x26f7c8[_0x30efda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26f7c8[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x489d83[_0x30efda([0x76,0x63])],_0x329db6(_0x489d83)==_0x3604d9;}}}async function _0x36f90f(){let _0x477d45=!0x0;try{const _0x1d8907=_0x1e9771[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e])),[_0x160e13,_0x39133b,_0x107a1b]=_0x1d8907;return _0xb7819e(_0x160e13),await _0x5417c3(_0x160e13,_0x39133b,_0x107a1b),_0x477d45;}catch(_0x33fa21){return!0x1;}function _0xb7819e(_0x8df2a3){const _0x46ad24=_0x2cef56(_0x8df2a3);_0x46ad24&&_0x46ad24[_0x30efda([0x61,0x6c,0x67])]==_0x30efda([0x45,0x53,0x32,0x35,0x36])||(_0x477d45=!0x1);}async function _0x5417c3(_0x596c09,_0x214d86,_0x4b578){const _0x4c910b=window[_0x30efda([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30efda([0x66,0x72,0x6f,0x6d])](_0x20ccc2(_0x4b578),_0x443579=>_0x443579[_0x30efda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xde21f=new window[(_0x30efda([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30efda([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x596c09+_0x30efda([0x2e])+_0x214d86),_0x33e9cc=window[_0x30efda([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30efda([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33e9cc)return;const _0x55410e=await _0x33e9cc[_0x30efda([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30efda([0x6a,0x77,0x6b]),_0x21e0cb,{[_0x30efda([0x6e,0x61,0x6d,0x65])]:_0x30efda([0x45,0x43,0x44,0x53,0x41]),[_0x30efda([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30efda([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30efda([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33e9cc[_0x30efda([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30efda([0x6e,0x61,0x6d,0x65])]:_0x30efda([0x45,0x43,0x44,0x53,0x41]),[_0x30efda([0x68,0x61,0x73,0x68])]:{[_0x30efda([0x6e,0x61,0x6d,0x65])]:_0x30efda([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55410e,_0x4c910b,_0xde21f)||(_0x477d45=!0x1);}}function _0x2cef56(_0x401837){return _0x401837[_0x30efda([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30efda([0x65,0x79]))?JSON[_0x30efda([0x70,0x61,0x72,0x73,0x65])](_0x20ccc2(_0x401837)):null;}function _0x20ccc2(_0x55dacc){return window[_0x30efda([0x61,0x74,0x6f,0x62])](_0x55dacc[_0x30efda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30efda([0x2b]))[_0x30efda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30efda([0x2f])));}function _0x329db6(_0x174e40){let _0x2e0bef=0x1505;function _0x42466c(_0x51caf8){for(let _0x15cd5c=0x0;_0x15cd5c<_0x51caf8[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15cd5c++){const _0x371d93=_0x51caf8[_0x30efda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15cd5c);_0x2e0bef=(_0x2e0bef<<0x5)+_0x2e0bef+_0x371d93,_0x2e0bef&=_0x2e0bef;}}function _0x43eb24(_0x518bb5){Array[_0x30efda([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x518bb5)?_0x518bb5[_0x30efda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43eb24):_0x518bb5&&typeof _0x518bb5==_0x30efda([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30efda([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x518bb5)[_0x30efda([0x73,0x6f,0x72,0x74])]()[_0x30efda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24ec8e,_0x463d6a])=>{_0x42466c(_0x24ec8e),_0x43eb24(_0x463d6a);}):_0x42466c(window[_0x30efda([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x518bb5));}return _0x43eb24(_0x174e40),_0x2e0bef>>>0x0;}function _0x31aafd(_0x33979c){return _0x33979c[_0x30efda([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30efda([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30efda([0x30]));}function _0x3acb4d(_0x29232d){return _0x29232d[_0x30efda([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30efda([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30efda([0x6a,0x6f,0x69,0x6e])]('');}function _0x484062(_0x1847eb){return _0x1b9de3[_0x30efda([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30efda([0x68,0x61,0x73])](_0x1847eb);}function _0xc0da89(_0x5d77dc){return _0x1b9de3[_0x30efda([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30efda([0x67,0x65,0x74])](_0x5d77dc);}function _0x318bcf(){}function _0x30efda(_0xb104a4){return _0xb104a4['map'](_0x1e475c=>String['fromCharCode'](_0x1e475c))['join']('');}_0x5d842e(await _0x18b881());}(this);}['createRevision'](_0x235389){const _0x4127d4=this['editor']['plugins']['get']('Users');return new h({'id':_0x235389['id'],'name':_0x235389['name'],'creator':_0x235389['creatorId']?_0x4127d4['getUser'](_0x235389['creatorId']):null,'diffData':_0x235389['diffData']||_0x235389['data'],'authors':_0x235389['authorsIds']['map'](_0x713c0=>_0x4127d4['getUser'](_0x713c0)),'createdAt':new Date(_0x235389['createdAt']),'attributes':_0x235389['attributes'],'fromVersion':_0x235389['fromVersion'],'toVersion':_0x235389['toVersion']});}['addRevision'](_0x4a80b5,_0x4f069d=0x0){this['_revisions']['add'](_0x4a80b5,_0x4f069d);}['getRevision'](_0x28567e){return this['_revisions']['get'](_0x28567e);}['getRevisions'](_0x32c835={'toJSON':!0x1}){const _0xc4d684=Array['from'](this['_revisions']);return _0xc4d684['reverse'](),_0x32c835['toJSON']?_0xc4d684['map'](_0x583a07=>_0x583a07['toJSON']()):_0xc4d684;}['getIndex'](_0x11f6a0){return this['_revisions']['getIndex'](_0x11f6a0);}['getEarlierVisibleRevision'](_0x33e26e){const [,_0x206ca3]=this['getRevisionsIterator'](_0x33e26e,{'direction':'earlier'});return _0x206ca3;}['getLaterVisibleRevision'](_0x390470){const [,_0x3917dc]=this['getRevisionsIterator'](_0x390470,{'direction':'later'});return _0x3917dc;}['getRevisionsInDiff'](_0x88599c){const _0x24831f=[];for(const _0x222fbe of this['getRevisionsIterator'](_0x88599c['newRevisionId']))if(_0x24831f['push'](_0x222fbe),_0x222fbe['id']===_0x88599c['oldRevisionId'])break;return _0x24831f;}*['getRevisionsIterator'](_0x3450a1,{direction:_0x37d935='earlier',filter:_0x17fff2=()=>!0x0}={}){const _0x1e8a65='earlier'===_0x37d935?0x1:-0x1;let _0x3f58db=this['_revisions']['get'](_0x3450a1),_0x7a8473=this['getIndex'](_0x3f58db);for(yield _0x3f58db;_0x3f58db;){if(_0x7a8473+=_0x1e8a65,_0x3f58db=this['getRevision'](_0x7a8473),!_0x3f58db)return;_0x17fff2(_0x3f58db)&&(yield _0x3f58db);}}}class V extends _0x3ba875{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4e0af3,'c'],[_0xfb9c57,'a'],[_0x4480bf,'e'],[_0x346d39,'r'],[_0x42c222,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4e0af3],['a',_0xfb9c57],['e',_0x4480bf],['r',_0x346d39],['u',_0x42c222]]);async['loadRevisionData'](_0x3fb142,_0x55c8ab){if(_0x3fb142['diffData']||!_0x55c8ab)return;const _0x3ed88e=this['editor']['config']['get']('collaboration.channelId'),_0x1bad3f=await _0x55c8ab['getRevision']({'channelId':_0x3ed88e,'revisionId':_0x3fb142['id']});_0x3fb142['diffData']=_0x1bad3f['diffData'];}['getRevisionDocumentData'](_0x2c64ce){const _0x9ee63e={};for(const _0x346982 in _0x2c64ce['diffData']){if(_0x2c64ce['diffData'][_0x346982]['attachChange']&&!_0x2c64ce['diffData'][_0x346982]['attachChange']['isAttached'])continue;const _0x47636d=this['_removeRevisionMarkers'](JSON['parse'](_0x2c64ce['diffData'][_0x346982]['insertions'])),_0x43b8a3=this['editor']['editing']['view']['document'],_0x52a4ff=new _0x1852c8(_0x43b8a3,_0x47636d['map'](_0x4e0ed8=>this['_getViewFromDiffObj'](_0x4e0ed8,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x9ee63e[_0x346982]=this['editor']['data']['processor']['toData'](_0x52a4ff),this['editor']['data']['processor']['useFillerType']('default');}return _0x9ee63e;}['getRevisionRootsAttributes'](_0x17cdf0){const _0x550b8c={};for(const _0x52a070 in _0x17cdf0['diffData'])_0x17cdf0['diffData'][_0x52a070]['attachChange']&&!_0x17cdf0['diffData'][_0x52a070]['attachChange']['isAttached']||(_0x550b8c[_0x52a070]=_0x17cdf0['diffData'][_0x52a070]['attributesAfter']||{});return _0x550b8c;}['_getTypeCharForViewElement'](_0x4884e6){return this['_viewClassToTypeChar']['get'](_0x4884e6['constructor']);}['_getViewFromDiffObj'](_0x804745,_0x29233d){const _0x524b39=this['editor']['editing']['view']['document'];if('string'==typeof _0x804745)return new _0x2f8706(_0x524b39,_0x804745);{let _0x50a09f,_0x4e9a2e;_0x4e9a2e='u'==_0x804745['type']||'r'==_0x804745['type']?[]:_0x804745['children']['map'](_0x189e69=>this['_getViewFromDiffObj'](_0x189e69,_0x29233d));const _0x4dc83c=this['_typeCharToViewClass']['get'](_0x804745['type'])||_0xfd25df,_0x3c4d05=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x50a09f=new _0x4dc83c(_0x524b39,_0x804745['name'],_0x804745['attributes'],_0x4e9a2e),'u'==_0x804745['type']){const _0x574808=_0x804745['children'][0x0];if(_0x50a09f['render']=function(_0x2f5b82){const _0x45a57b=_0x2f5b82['createElement']('div');return _0x45a57b['innerHTML']=_0x574808,_0x45a57b['childNodes'][0x0];},_0x29233d){const _0x2f514e=new _0x1852c8(_0x524b39);_0x2f514e['_appendChild'](_0x50a09f);const _0xc8fbd5=Array['from'](_0x3c4d05['viewChildrenToDom'](_0x2f514e,{'bind':!0x1})),_0x30c4d7=_0x3c4d05['domDocument']['createElement']('div');_0x30c4d7['append'](..._0xc8fbd5),_0x50a09f=Array['from'](_0x3c4d05['domChildrenToView'](_0x30c4d7))[0x0];}}else{if('r'==_0x804745['type']){const _0x23d378=_0x804745['children'][0x0];if(_0x50a09f['render']=function(_0x569e3b){_0x569e3b['innerHTML']=_0x23d378;},_0x29233d){const _0x117a01=new _0x1852c8(_0x524b39);_0x117a01['_appendChild'](_0x50a09f);const _0x2628f6=Array['from'](_0x3c4d05['viewChildrenToDom'](_0x117a01,{'bind':!0x1})),_0x171c15=_0x3c4d05['domDocument']['createElement']('div');_0x171c15['append'](..._0x2628f6);const _0x46445c=Array['from'](_0x3c4d05['domChildrenToView'](_0x171c15));_0x46445c['length']>0x1?_0x50a09f['_appendChild'](_0x46445c):_0x50a09f=_0x46445c[0x0];}}}if(_0x804745['customProperties']){for(const [_0x21c84c,_0x30f452]of _0x804745['customProperties'])_0x50a09f['_setCustomProperty'](_0x21c84c,_0x30f452);}const _0x5430d2=_0x804745['fillerOffset']||null;return _0x50a09f['getFillerOffset']=()=>_0x5430d2,_0x50a09f;}}['_makeModelFromViewString'](_0x3d8b26){const _0x224ddd=JSON['parse'](_0x3d8b26),_0x2a4bca=this['editor']['editing']['view']['document'],_0x59e6f8=new _0x1852c8(_0x2a4bca,_0x224ddd['map'](_0x3fe5a5=>this['_getViewFromDiffObj'](_0x3fe5a5,!0x0)));return this['editor']['data']['toModel'](_0x59e6f8);}['_removeRevisionMarkers'](_0x3d7035){return(_0x3d7035=_0x3d7035['filter'](_0x42206e=>!_0x42206e['name']||'revision-start'!==_0x42206e['name']&&'revision-end'!==_0x42206e['name']))['forEach'](_0x2baaf5=>{'string'!=typeof _0x2baaf5&&(_0x2baaf5['children']=this['_removeRevisionMarkers'](_0x2baaf5['children']),_0x2baaf5['attributes']=_0x2baaf5['attributes']['filter'](_0x3df39b=>!_0x3df39b[0x0]['startsWith']('data-revision-')));}),_0x3d7035;}}function g(_0x4dcc87,_0x20fb40,_0x1b5a4d){const t=_0x4dcc87['t'];switch(_0x20fb40){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'},_0x1b5a4d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1b5a4d);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 _0x3ba875{['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[_0x1b8b11,I,V,_0x25252b];}constructor(_0x276d8a){super(_0x276d8a),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 _0x157a42=_0x58b8ff();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x157a42},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 _0x2435a3=this['repository']['getRevision'](0x0),_0x470489=_0x2435a3&&null===_0x2435a3['creator']?_0x2435a3:null;if(this['_continueCurrentRevision']=!!_0x470489&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5c0b9e=this['_source']['getCurrentRevisionId'](),_0x55fa3d=this['repository']['getRevision'](_0x5c0b9e);if(_0x55fa3d)this['_startingVersion']=_0x55fa3d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2d35c7=this['_source']['history']['_operations']['find'](_0x499fbd=>!_0x499fbd['_isInit']),_0x4538a7=_0x2d35c7?_0x2d35c7['baseVersion']:this['_source']['history']['version'];_0x2435a3?(_0x2435a3['toVersion']<_0x4538a7&&_0x2435a3['_update']({'toVersion':_0x4538a7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x470489['id'],this['_startingVersion']=_0x470489['fromVersion']):(this['_startingVersion']=_0x2435a3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4538a7,this['_continueCurrentRevision']=!0x1);}}else _0x470489&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x470489['toVersion'],this['editor']['model']['document']['history']['version']),_0x470489['fromVersion']===_0x470489['toVersion']?(0x0!==_0x470489['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x470489['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x470489['id'],this['_startingVersion']=_0x470489['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',_0x11e5aa=>!_0x11e5aa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ce330=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e9074;for(const _0x1e6996 in _0x4ce330){const _0x5bc3e8=_0x1e6996,_0x2983d7=_0x4ce330[_0x5bc3e8];if('revisionHistoryLicenseKeyValid'==_0x2983d7||'revisionHistoryLicenseKeyInvalid'==_0x2983d7||'revisionHistoryLicenseKeyExpired'==_0x2983d7||'revisionHistoryLicenseKeyDomainLimit'==_0x2983d7||'revisionHistoryLicenseKeyNotAllowed'==_0x2983d7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2983d7||'revisionHistoryLicenseKeyTrialLimit'==_0x2983d7||'revisionHistoryLicenseKeyUsageLimit'==_0x2983d7){delete _0x4ce330[_0x5bc3e8],_0x2e9074=_0x2983d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2e9074&&_0x4ce330['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2e9074&&_0x4ce330['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2e9074&&_0x4ce330['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4e2344=this['repository']['getRevision'](0x0),_0x4c892d=await this['getRevisionDocumentData'](_0x4e2344),_0x542c31=await this['getRevisionRootsAttributes'](_0x4e2344);this['_replaceEditorDataWithRevisionData'](_0x4c892d,_0x542c31);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2c27ef){this['_source']=_0x2c27ef;}async['update'](){const _0x17863e=await this['_source']['getLatestVersion']();if(_0x17863e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x19d794=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x17863e});_0x19d794['authors']=_0x19d794['authorsIds']['map'](_0xb7c27=>this['editor']['plugins']['get']('Users')['getUser'](_0xb7c27)),this['currentRevision']['_update'](_0x19d794);}}async['saveRevision'](_0x4a68d9={},_0x5841cf=null){const _0x28061c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5841cf>this['currentRevision']['toVersion']&&(_0x5841cf=null),null===_0x5841cf&&(_0x5841cf=await this['_source']['getLatestVersion']());const _0x27afed=this['_getFromVersion'](_0x5841cf),_0x8b204e=this['buildRevisionData']({'from':_0x27afed,'to':_0x5841cf});if(this['currentRevision']['toVersion']<_0x5841cf){const _0x1882e6=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5841cf,'to':_0x5841cf});_0x1882e6['authors']=[],_0x1882e6['authorsIds']=[],_0x1882e6['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1882e6,!0x0),delete _0x1882e6['authors'],_0x28061c['push'](_0x1882e6);}_0x4a68d9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a68d9['name']=_0x4a68d9['name']||null,_0x4a68d9['id']=_0x4a68d9['id']||_0x58b8ff(),_0x4a68d9={..._0x4a68d9,..._0x8b204e};const _0x483b4b=this['addRevisionData'](_0x4a68d9);_0x28061c['push'](_0x4a68d9);const _0x5699e6=this['repository']['getIndex'](_0x483b4b);if(0x0!==_0x5699e6){const _0x55e8ea=this['repository']['getRevision'](_0x5699e6-0x1);if(_0x55e8ea['fromVersion']!==_0x5841cf){const _0x81ab04=this['_revisionDataBuilder']['getData'](_0x5841cf,_0x55e8ea['toVersion']),_0x3065f2={'id':_0x55e8ea['id'],'diffData':_0x81ab04['diffData'],'authorsIds':_0x81ab04['authorsIds'],'authors':_0x81ab04['authorsIds']['map'](_0x3f5d16=>this['editor']['plugins']['get']('Users')['getUser'](_0x3f5d16)),'fromVersion':_0x5841cf};_0x55e8ea===this['currentRevision']&&(_0x3065f2['createdAt']=new Date(_0x4a68d9['createdAt']['getTime']()+0xa)),_0x55e8ea['_update'](_0x3065f2,!0x0),delete _0x3065f2['authors'],_0x28061c['push'](_0x3065f2);}}if(this['adapter']){for(const _0x2a84ff of _0x28061c)this['_bufferUpdate'](_0x2a84ff['id'],_0x2a84ff,!0x0);this['sendBufferedUpdates']();}return _0x483b4b;}['addRevisionData'](_0x335146){const _0xd9f753=this['repository']['createRevision'](_0x335146);return this['adapter']&&_0xd9f753['on']('_update',(_0x2f4e5e,_0x3753e0,_0x518e2a)=>{_0x518e2a||(this['_bufferUpdate'](_0x3753e0['id'],_0x3753e0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xd9f753,this['_findInsertionIndex'](_0xd9f753)),_0xd9f753;}async['getRevisionDocumentData'](_0x1c2f2d){return await this['_utils']['loadRevisionData'](_0x1c2f2d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c2f2d);}async['getRevisionRootsAttributes'](_0x9b1d6b){return await this['_utils']['loadRevisionData'](_0x9b1d6b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x9b1d6b);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1dee34=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4cf0f1=0x0;_0x4cf0f1<_0x1dee34['length'];_0x4cf0f1++){const _0x26bc01=_0x1dee34[_0x4cf0f1];let _0x295cb9=!0x1;for(const _0x4722f8 of Object['keys'](_0x26bc01))void 0x0===_0x26bc01[_0x4722f8]?delete _0x26bc01[_0x4722f8]:'id'!==_0x4722f8&&(_0x295cb9=!0x0);_0x295cb9||(_0x1dee34[_0x4cf0f1]=null);}if(_0x1dee34=_0x1dee34['filter'](_0x49e579=>null!==_0x49e579),!_0x1dee34['length'])return;for(let _0x24ae4f=0x0;_0x24ae4f<_0x1dee34['length'];_0x24ae4f++){const _0x9ba915=_0x1dee34[_0x24ae4f];void 0x0!==_0x9ba915['fromVersion']&&void 0x0===_0x9ba915['toVersion']&&(_0x9ba915['toVersion']=this['repository']['getRevision'](_0x9ba915['id'])['toVersion']),void 0x0!==_0x9ba915['toVersion']&&void 0x0===_0x9ba915['fromVersion']&&(_0x9ba915['fromVersion']=this['repository']['getRevision'](_0x9ba915['id'])['fromVersion']);}const _0x1e00b2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1dee34,_0x1e00b2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x48e0fc=>{if(_0x48e0fc){for(const _0x91599f of _0x48e0fc)this['setRevisionData']({'id':_0x91599f['id'],'createdAt':_0x91599f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x14f3bc=null,from:_0x4dc8c3=null,to:_0x55751e=null}){_0x4dc8c3=null!==_0x4dc8c3?_0x4dc8c3:_0x14f3bc['fromVersion'],_0x55751e=null!==_0x55751e?_0x55751e:_0x14f3bc['toVersion'];const _0x156dca=this['_revisionDataBuilder']['getData'](_0x4dc8c3,_0x55751e),_0xba55be={'diffData':_0x156dca['diffData'],'authorsIds':_0x156dca['authorsIds'],'fromVersion':_0x4dc8c3,'toVersion':_0x55751e};if(!_0x14f3bc||_0x55751e!==_0x14f3bc['toVersion']){const _0x36ebc3=_0x55751e-0x1,_0x3da5af=this['_source']['history']['getOperation'](_0x36ebc3);_0xba55be['createdAt']=_0x3da5af&&_0x3da5af['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4dc8c3===this['_loadedStateData']['fromVersion']){for(const _0x3c65c3 of this['_loadedStateData']['authors'])_0xba55be['authorsIds']['includes'](_0x3c65c3['id'])||_0xba55be['authorsIds']['push'](_0x3c65c3['id']);}return _0xba55be;}['_bufferUpdate'](_0x4a562e,_0x102bbf,_0x2b7bae){if(this['_bufferedUpdates']['has'](_0x4a562e)){const _0x18b50b=this['_bufferedUpdates']['get'](_0x4a562e);_0x102bbf=_0x2b7bae?{..._0x18b50b,..._0x102bbf}:{..._0x102bbf,..._0x18b50b};}this['_bufferedUpdates']['set'](_0x4a562e,_0x102bbf);}['setRevisionData'](_0x178f56){const _0x2f2f2c=this['repository']['getRevision'](_0x178f56['id']);if(_0x178f56['createdAt']&&(_0x178f56['createdAt']=new Date(_0x178f56['createdAt'])),_0x178f56['authorsIds']){const _0x508f0f=this['editor']['plugins']['get']('Users');_0x178f56['authors']=_0x178f56['authorsIds']['map'](_0x3b0bfe=>_0x508f0f['getUser'](_0x3b0bfe));}_0x2f2f2c['_update'](_0x178f56,!0x0);}['_createInitialRevision'](_0x3ee5d4){const _0x32b398=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x32b398)this['_initialRevisionId']=_0x32b398['id'];else{const _0x316e4c=!this['editor']['model']['document']['roots']['find'](_0x5c47cc=>this['editor']['model']['hasContent'](_0x5c47cc)),_0x4a702b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e2852=g(this['editor']['locale'],_0x316e4c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3ee5d4,'to':_0x3ee5d4,'id':this['_initialRevisionId'],'name':_0x1e2852,'creatorId':_0x4a702b});}}['_createCurrentRevision'](_0x20112b){const _0x29aa2a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x29aa2a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x20112b,'to':_0x20112b,'id':_0x29aa2a,'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'](_0x49a180,_0x1cb9cc){let _0x344953=this['editor']['config']['get']('initialData'),_0x296459=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x344953){_0x344953={};for(const _0x1c0a09 of this['editor']['model']['document']['getRootNames']())_0x344953[_0x1c0a09]='';}if('string'==typeof _0x344953&&(_0x344953={'main':_0x344953}),void 0x0===_0x296459){_0x296459={};for(const _0x46ab17 of this['editor']['model']['document']['getRootNames']())_0x296459[_0x46ab17]={};}let _0x2f06fa=!0x1;const _0x325169=Object['keys'](_0x344953),_0x19ff07=Object['keys'](_0x49a180);for(const _0x1edff9 of _0x325169){if(_0x344953[_0x1edff9]!==_0x49a180[_0x1edff9]&&''!==_0x344953[_0x1edff9]['trim']()){_0x2f06fa=!0x0;break;}if(!_0x7a304c(_0x296459[_0x1edff9],_0x1cb9cc[_0x1edff9])&&Object['keys'](_0x296459[_0x1edff9])['length']>0x0){_0x2f06fa=!0x0;break;}}_0x2f06fa||(_0x2f06fa=_0x19ff07['some'](_0x518572=>!this['editor']['model']['document']['getRoot'](_0x518572))),_0x2f06fa&&_0xf43310('editor-initial-data-replaced-with-revision-data',{'editorData':_0x344953,'editorRootsAttributes':_0x296459,'revisionData':_0x49a180,'revisionRootsAttributes':_0x1cb9cc}),this['editor']['config']['set']('initialData',_0x49a180),this['editor']['config']['set']('rootsAttributes',_0x1cb9cc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4a046f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4a046f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x59d5bd){const _0x11150c=this['repository']['getRevisions']();_0x11150c['reverse']();let _0x10d197=0x0;for(;_0x10d197<_0x11150c['length'];){const _0x12996f=_0x11150c[_0x10d197];if(_0x12996f===this['currentRevision']){_0x10d197++;continue;}if(_0x12996f['id']===this['_initialRevisionId'])break;const _0x4fedd9=_0x59d5bd['toVersion']-_0x12996f['toVersion']||_0x59d5bd['fromVersion']-_0x12996f['fromVersion'];if(_0x4fedd9>0x0)break;if(_0x4fedd9<0x0)_0x10d197++;else{if(!_0x59d5bd['creator']&&_0x12996f['creator'])break;if(_0x12996f['creator']||!_0x59d5bd['creator']){if(_0x59d5bd['createdAt']>_0x12996f['createdAt'])break;_0x10d197++;}else _0x10d197++;}}return _0x10d197;}['_getFromVersion'](_0x5d00e5){const _0x2fe966=this['repository']['getRevisions']();_0x2fe966['reverse'](),_0x2fe966['shift']();const _0x3da049=_0x2fe966['find'](_0x3d1b33=>_0x3d1b33['toVersion']<=_0x5d00e5)['toVersion'];return _0x3da049<this['_startingVersion']?this['_startingVersion']:_0x3da049;}['_makeRevision']({name:_0x156efe,from:_0x484c58,to:_0x535877,creatorId:_0x458bca,id:_0x41fed6}){const _0x4ef63f=this['buildRevisionData']({'from':_0x484c58,'to':_0x535877});_0x4ef63f['name']=_0x156efe,_0x4ef63f['creatorId']=_0x458bca,_0x4ef63f['id']=_0x41fed6;const _0x5efd79=this['addRevisionData'](_0x4ef63f);return this['adapter']&&this['_bufferUpdate'](_0x4ef63f['id'],_0x4ef63f,!0x0),_0x5efd79;}['_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(_0x17da37){this['editor']=_0x17da37,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'](_0x56c612){this['source']=_0x56c612;const _0x3068b7=new Map(),_0x2a7dca=new Map(),_0x1bd84a=this['editor']['model']['document']['roots']['map'](_0xb079f6=>_0xb079f6['rootName']);for(const _0x1f070d of _0x1bd84a){const _0x1da0ad=this['editor']['model']['document']['getRoot'](_0x1f070d),_0x57a568=N(_0x1da0ad);_0x3068b7['set'](_0x1f070d,_0x57a568),_0x2a7dca['set'](_0x1f070d,Object['fromEntries'](_0x1da0ad['getAttributes']()));}const _0x1c2812=Array['from'](this['editor']['model']['markers'])['map'](_0xd5b215=>[_0xd5b215['name'],_0xd5b215['getRange']()]),_0x53bfd3=this['source']['version'];this['_saveMetaData'](_0x53bfd3,_0x3068b7,_0x1c2812,_0x2a7dca),this['_startingRevisionId']=this['_revisionId'];const _0x2c9b17=new Map(),_0xa2bfee=new Map();for(const _0x58fda0 of _0x1bd84a){const _0x5c5561=P(_0x58fda0);_0x2c9b17['set'](_0x58fda0,_0x5c5561),_0xa2bfee['set'](_0x58fda0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2c9b17,[],_0xa2bfee);}['getData'](_0x5e9a03,_0x28b9bd){if(this['_lastFrom']===_0x5e9a03&&this['_lastTo']<=_0x28b9bd)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x28b9bd,!0x0);else{if(!this['_savedMetaData']['has'](_0x5e9a03)){const _0x549e60=this['_getPreviousFrom'](_0x5e9a03);this['_calculateMetaData'](_0x549e60,_0x5e9a03,!0x1);}this['_calculateMetaData'](_0x5e9a03,_0x28b9bd,!0x0);}return this['_lastFrom']=_0x5e9a03,this['_lastTo']=_0x28b9bd,this['_getState']();}['loadState'](_0x4b3b18){const _0xacb9ac=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4b3b18['fromVersion'],this['_lastTo']=_0x4b3b18['toVersion'];for(const _0x4e0357 in _0x4b3b18['diffData']){const _0x49c3f6=_0x4b3b18['diffData'][_0x4e0357]['attachChange'],_0x3e1de3=_0x291809(_0x4b3b18['diffData'][_0x4e0357]['attributesBefore'])||{},_0x47bd55=_0xacb9ac['_makeModelFromViewString'](_0x4b3b18['diffData'][_0x4e0357]['deletions']);_0x47bd55['rootName']=_0x4e0357,_0x47bd55['_isAttached']=!_0x49c3f6||!_0x49c3f6['isAttached'],_0x47bd55['isAttached']=()=>_0x47bd55['_isAttached'],this['_baseRoots']['set'](_0x4e0357,_0x47bd55),this['_baseRootsAttributes']['set'](_0x4e0357,_0x3e1de3),_0x49c3f6&&this['_touchedRoots']['set'](_0x4e0357,_0x49c3f6);const _0x171d3e=this['_makeIdsRoot'](_0x47bd55);this['_baseIdsRoots']['set'](_0x4e0357,_0x171d3e);for(const [_0x2a56eb,_0x37455b]of _0x47bd55['markers']){if(!_0x2a56eb['startsWith']('revision:'))continue;const _0x30bbff=_0x2a56eb['split'](':')[0x2];for(const _0x3b3923 of _0x37455b['getWalker']({'singleCharacters':!0x0})){const _0x2b7cc4=this['_getVidAttributeName'](_0x3b3923),_0x3ceb2c='elementEnd'==_0x3b3923['type']?_0x3b3923['previousPosition']['path']['slice'](0x0,-0x1):_0x3b3923['previousPosition']['path'],_0x50656d=_0x171d3e['getNodeByPath'](_0x3ceb2c)['getAttribute'](_0x2b7cc4);this['_touched']['set'](_0x50656d,{'userId':_0x30bbff});}}}this['_startingRevisionId']=this['_revisionId'];const _0xf112d7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x322a4a=>!this['_touched']['has'](_0x322a4a));let _0x5b3a52=0x0;const _0x1bd8f9=new Map();for(const _0x17cade in _0x4b3b18['diffData']){const _0x182d66=_0x4b3b18['diffData'][_0x17cade]['attachChange'],_0x476778=_0x291809(_0x4b3b18['diffData'][_0x17cade]['attributesAfter'])||{},_0x58a02e=_0xacb9ac['_makeModelFromViewString'](_0x4b3b18['diffData'][_0x17cade]['insertions']);_0x58a02e['rootName']=_0x17cade,_0x58a02e['_isAttached']=!_0x182d66||_0x182d66['isAttached'],_0x58a02e['isAttached']=()=>_0x58a02e['_isAttached'],this['_diffRoots']['set'](_0x17cade,_0x58a02e),this['_diffRootsAttributes']['set'](_0x17cade,_0x476778);const _0x55dbd9=this['_makeIdsRoot'](_0x58a02e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x17cade,_0x55dbd9),_0x1bd8f9['set'](_0x17cade,_0x58a02e['isAttached']()?_0x476778:{});for(const [_0x364918,_0x4984f8]of _0x58a02e['markers']){if(!_0x364918['startsWith']('revision:'))continue;const _0x3f9eb5=_0x364918['split'](':')[0x2];for(const _0xa5e318 of _0x4984f8['getWalker']({'singleCharacters':!0x0})){const _0x47b87e=this['_getVidAttributeName'](_0xa5e318),_0xdc23bb=this['_revisionId']++,_0x424b54='elementEnd'==_0xa5e318['type']?_0xa5e318['previousPosition']['path']['slice'](0x0,-0x1):_0xa5e318['previousPosition']['path'];_0x55dbd9['getNodeByPath'](_0x424b54)['_setAttribute'](_0x47b87e,_0xdc23bb),this['_touched']['set'](_0xdc23bb,{'userId':_0x3f9eb5});}}for(const _0x4ee11a of this['editor']['model']['createRangeIn'](_0x58a02e)['getWalker']({'singleCharacters':!0x0})){const _0x5488a9=this['_getVidAttributeName'](_0x4ee11a),_0x588f7b='elementEnd'==_0x4ee11a['type']?_0x4ee11a['previousPosition']['path']['slice'](0x0,-0x1):_0x4ee11a['previousPosition']['path'],_0x1baba2=_0x55dbd9['getNodeByPath'](_0x588f7b);_0x1baba2['getAttribute'](_0x5488a9)>0x0||_0x1baba2['_setAttribute'](_0x5488a9,_0xf112d7[_0x5b3a52++]);}for(const [_0x8e9622,_0x39f0a6]of _0x58a02e['markers'])_0x8e9622['startsWith']('revision:')||this['_markers']['set'](_0x8e9622,_0x39f0a6);}const _0xf502d3=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf502d3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf502d3,0x1));const _0x17ef2f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x17ef2f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17ef2f,0x1));const _0x594b7d=Array['from'](this['_diffRoots'])['map'](([_0x1f2b2a,_0x1ba7f3])=>[_0x1f2b2a,N(_0x1ba7f3)]);this['_saveMetaData'](this['_lastTo'],_0x594b7d,this['_markers'],_0x1bd8f9);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4a9d11,_0x33b8ea,_0xafcbdd,_0x1affe4){const _0x23609a=new Map(_0x33b8ea),_0x43b58e=new Map(_0x291809(_0x1affe4)),_0x5ce51a=new Map();for(const [_0x11f987,_0x362c55]of _0xafcbdd)_0x5ce51a['set'](_0x11f987,{'start':_0x362c55['start']['clone'](),'end':_0x362c55['end']['clone'](),'rootName':_0x362c55['root']['rootName']});this['_savedMetaData']['set'](_0x4a9d11,{'roots':_0x23609a,'markers':_0x5ce51a,'rootsAttributes':_0x43b58e});}['_removeMetaData'](_0x33c58d){this['_savedMetaData']['delete'](_0x33c58d);}['_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'](_0x3c7d4c,_0x2f56c0=null){let _0x393dbd=null;_0x3c7d4c['is']('documentFragment')||(_0x393dbd=new ut(_0x3c7d4c['name'],{'vid_start':null===_0x2f56c0?this['_revisionId']++:_0x2f56c0++}));const _0x507f3f=[];for(const _0x3a54fd of _0x3c7d4c['getChildren']())if(_0x3a54fd['is']('element')){_0x507f3f['push'](this['_makeIdsRoot'](_0x3a54fd,_0x2f56c0));const _0xbd1282=_0x507f3f[_0x507f3f['length']-0x1];null!==_0x2f56c0&&(_0x2f56c0=_0xbd1282['is']('element','$text')?_0xbd1282['getAttribute']('vid')+0x1:_0xbd1282['getAttribute']('vid_end')+0x1);}else{for(let _0x442e98=0x0;_0x442e98<_0x3a54fd['offsetSize'];_0x442e98++)_0x507f3f['push'](new ut('$text',{'vid':null===_0x2f56c0?this['_revisionId']++:_0x2f56c0++}));}if(_0x3c7d4c['is']('documentFragment')){const _0x31af24=P(_0x3c7d4c['rootName']);return _0x31af24['_insertChild'](0x0,_0x507f3f),_0x31af24;}return _0x393dbd['_setAttribute']('vid_end',null===_0x2f56c0?this['_revisionId']++:_0x2f56c0++),_0x393dbd['_insertChild'](0x0,_0x507f3f),_0x393dbd;}['_calculateMetaData'](_0x4369ca,_0x3ca5de,_0x414f00){this['_reset']();const {roots:_0x4d62b5,markers:_0x2c4653,rootsAttributes:_0x48922b}=this['_savedMetaData']['get'](_0x4369ca);this['_baseRoots']=new Map(_0x4d62b5),this['_baseRootsAttributes']=new Map(_0x291809(_0x48922b));for(const [_0x39f324,_0x38cef4]of this['_baseRoots'])if('$graveyard'!==_0x39f324&&(this['_diffRoots']['set'](_0x39f324,N(_0x38cef4)),this['_diffRootsAttributes']=new Map(_0x291809(_0x48922b)),_0x414f00)){const _0x2d8d39=this['_revisionId'];this['_idsRoots']['set'](_0x39f324,this['_makeIdsRoot'](_0x38cef4)),this['_baseIdsRoots']['set'](_0x39f324,this['_makeIdsRoot'](_0x38cef4,_0x2d8d39));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x414f00&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2c9a1b,_0x59880d]of _0x2c4653){const _0x2dc2f8=this['_baseRoots']['get'](_0x59880d['rootName']),_0x2f810e=this['_diffRoots']['get'](_0x59880d['rootName']),_0x1812fc=new ft(this['_fixPosition'](_0x59880d['start'],_0x2dc2f8),this['_fixPosition'](_0x59880d['end'],_0x2dc2f8)),_0x1c52a3=this['_fixRange'](_0x1812fc,_0x2f810e);_0x2dc2f8['markers']['set'](_0x2c9a1b,_0x1812fc),this['_markers']['set'](_0x2c9a1b,_0x1c52a3);}this['_applyOperations'](_0x4369ca,_0x3ca5de,_0x414f00);}['_applyOperations'](_0x15d43f,_0x5049c8,_0x566cd6){for(const _0x4c8ff8 of this['source']['getOperations'](_0x15d43f,_0x5049c8))this['_handleOperation'](_0x4c8ff8,_0x566cd6);for(const _0x20e58d of this['_diffRoots']['values']())_0x20e58d['markers']['clear']();for(const [_0x5cb7de,_0xe9a8e8]of this['_markers']){this['_diffRoots']['get'](_0xe9a8e8['root']['rootName'])['markers']['set'](_0x5cb7de,_0xe9a8e8['clone']());}const _0x59a09a=new Map(),_0x4432e2=new Map();for(const [_0x2b90fd,_0x28b034]of this['_diffRoots'])_0x59a09a['set'](_0x2b90fd,N(_0x28b034)),_0x4432e2['set'](_0x2b90fd,this['_diffRootsAttributes']['get'](_0x2b90fd));this['_saveMetaData'](_0x5049c8,_0x59a09a,this['_markers'],_0x4432e2);}['_getPreviousFrom'](_0x3708d4){const _0x52e726=Array['from'](this['_savedMetaData']['keys']());_0x52e726['sort']((_0x1b2d3e,_0x427564)=>_0x1b2d3e-_0x427564),_0x52e726['reverse']();for(const _0x111aa1 of _0x52e726)if(_0x111aa1<_0x3708d4)return _0x111aa1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x27f878,_0x23ac67){const _0x32be9d=Array['from'](_0x23ac67['markers'])['map'](([_0x34e852,_0x5a727d])=>[_0x34e852,this['_fixRange'](_0x5a727d,_0x27f878)]);_0x27f878['markers']=new Map(_0x32be9d);}['_transformMarkers'](_0x7d139f){for(const _0x556f01 of this['_markers']['values']()){const _0x30e481=_0x556f01['getTransformedByOperation'](_0x7d139f),_0x341383=ft['_createFromRanges'](_0x30e481);_0x556f01['start']=_0x341383['start'],_0x556f01['end']=_0x341383['end'];}}['_handleOperation'](_0x5f1894,_0x4583a0){if('addRoot'!=_0x5f1894['type']&&'detachRoot'!=_0x5f1894['type']){if('insert'==_0x5f1894['type']){const _0x5e291f=_0x5f1894['position']['root']['rootName'];this['_diffRoots']['has'](_0x5e291f)||(this['_diffRoots']['set'](_0x5e291f,P(_0x5e291f,!0x0)),this['_diffRootsAttributes']['set'](_0x5e291f,{}),_0x4583a0&&this['_idsRoots']['set'](_0x5e291f,P(_0x5e291f,!0x0)));}else{if('addRootAttribute'==_0x5f1894['type']||'removeRootAttribute'==_0x5f1894['type']||'changeRootAttribute'==_0x5f1894['type'])return void this['_handleRootAttributeOperation'](_0x5f1894);'marker'==_0x5f1894['type']&&this['_handleMarkerOperation'](_0x5f1894);}if('marker'!==_0x5f1894['type']){const _0x1bd455=this['_cloneOperation'](_0x5f1894,this['_diffRoots']);_0x1bd455['_execute'](),this['_transformMarkers'](_0x1bd455);}if(_0x4583a0)switch(_0x5f1894['type']){case'insert':this['_handleInsertOperation'](_0x5f1894);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5f1894);break;case'merge':this['_handleMergeOperation'](_0x5f1894);break;case'split':this['_handleSplitOperation'](_0x5f1894);}}else this['_handleRootOperation'](_0x5f1894,_0x4583a0);}['_cloneOperation'](_0x543e1d,_0x1d1b24){const _0x2b8870=_0x543e1d['clone']();return _0x2b8870['_authorId']=_0x543e1d['_authorId'],this['_fixOperation'](_0x2b8870,_0x1d1b24),_0x2b8870;}['_getBaseVids'](_0x4dc8fa){return _0x4dc8fa['map'](_0x30913c=>{const _0x3d6e27=this['_getVidAttributeName'](_0x30913c);return Number(_0x30913c['item']['getAttribute'](_0x3d6e27));});}['_generateTape'](_0x140813,_0x36f3d7){if(_0x140813['is']('element','$text'))_0x36f3d7['push']({'item':_0x140813,'type':'text'});else{_0x140813['is']('element')&&_0x36f3d7['push']({'item':_0x140813,'type':'elementStart'});for(const _0x5d32b7 of _0x140813['getChildren']())this['_generateTape'](_0x5d32b7,_0x36f3d7);_0x140813['is']('element')&&_0x36f3d7['push']({'item':_0x140813,'type':'elementEnd'});}return _0x36f3d7;}['_getState'](){const _0x5ddbda=new Map(this['_touched']),_0x356fb3=new Map(_0x5ddbda),_0xf6b48a=new Map(),_0x485090={'insertions':{},'deletions':{}},_0x4a15fa={'insertions':{},'deletions':{}},_0x1b51d5=new Map(),_0x4343e1=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4343e1['delete']('$graveyard');for(const _0x381055 of _0x4343e1){const _0x5d72c1=this['_diffRoots']['get'](_0x381055)||P(_0x381055,!0x1),_0x11fcb4=this['_baseRoots']['get'](_0x381055)||P(_0x381055,!0x1);_0x5d72c1['isAttached']()||_0x11fcb4['isAttached']()?(_0x485090['insertions'][_0x381055]=N(_0x5d72c1),_0x485090['deletions'][_0x381055]=N(_0x11fcb4),this['_copyMarkers'](_0x485090['deletions'][_0x381055],_0x11fcb4),this['_copyMarkers'](_0x485090['insertions'][_0x381055],_0x5d72c1),_0x4a15fa['insertions'][_0x381055]=this['_generateTape'](this['_idsRoots']['get'](_0x381055),[]),_0x4a15fa['deletions'][_0x381055]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x381055)||P(_0x381055,!0x1),[])):_0x4343e1['delete'](_0x381055);}for(const _0x31f087 of _0x4343e1){const _0x48faf6=_0x4a15fa['insertions'][_0x31f087];for(const _0x4331d2 of _0x48faf6){const _0x3f695c=this['_getVidAttributeName'](_0x4331d2),_0x343c95=_0x4331d2['item']['getAttribute'](_0x3f695c);_0x356fb3['delete'](_0x343c95),_0x343c95>=this['_startingRevisionId']&&_0xf6b48a['set'](_0x343c95,_0x5ddbda['get'](_0x343c95));}}for(const _0x520edb of _0x4343e1){const _0x5941b1=_0x4a15fa['insertions'][_0x520edb],_0x3a06eb=this['_getBaseVids'](_0x4a15fa['deletions'][_0x520edb]);let _0xa16ec6=0x0;for(const _0x30104f of _0x5941b1){const _0x40c3ef=this['_getVidAttributeName'](_0x30104f),_0xcbac44=_0x30104f['item']['getAttribute'](_0x40c3ef);if(!_0xf6b48a['has'](_0xcbac44)&&!_0x1b51d5['has'](_0xcbac44)){if(_0x356fb3['has'](_0xcbac44))_0xa16ec6++;else{if(_0xcbac44!=_0x3a06eb[_0xa16ec6]){const _0xb74075=_0x5ddbda['get'](_0xcbac44)||_0x5ddbda['get'](_0x3a06eb[_0xa16ec6]);for(;_0xcbac44!=_0x3a06eb[_0xa16ec6];)_0x356fb3['has'](_0x3a06eb[_0xa16ec6])||(_0x1b51d5['set'](_0x3a06eb[_0xa16ec6],_0xb74075),_0x5ddbda['set'](_0x3a06eb[_0xa16ec6],_0xb74075)),_0xa16ec6++;}_0xa16ec6++;}}}}for(const _0x4dc3b9 of _0x4343e1){const _0x1e4c68=_0x4a15fa['insertions'][_0x4dc3b9];for(const _0x3e05e4 of _0x1e4c68){const _0x5036c6=this['_getVidAttributeName'](_0x3e05e4),_0x360522=_0x3e05e4['item']['getAttribute'](_0x5036c6);if(_0x1b51d5['has'](_0x360522)){const _0x4213d5=_0x1b51d5['get'](_0x360522);_0x356fb3['has'](_0x360522)||_0x356fb3['set'](_0x360522,{..._0x4213d5}),_0xf6b48a['set'](_0x360522,{..._0x4213d5});}}}for(const _0x5f5833 of _0x356fb3['keys']())_0x5f5833>=this['_startingRevisionId']&&_0x356fb3['delete'](_0x5f5833);const _0x8d2f1a=new Map();for(const _0x24d729 of _0x4343e1){let _0x3ce740=_0x4a15fa['insertions'][_0x24d729];for(const _0x86ed0b of _0x3ce740)if(_0x86ed0b['item']['is']('element','tableCell')){const _0x224683=this['_getVidAttributeName'](_0x86ed0b),_0x35c58c=_0x86ed0b['item']['getAttribute'](_0x224683);if(_0xf6b48a['has'](_0x35c58c)){const _0x3004a0=_0x86ed0b['item']['parent']['parent']['getAttribute']('vid_start'),_0x59bd71=_0x8d2f1a['get'](_0x3004a0)||new Set();_0x59bd71['add'](_0xf6b48a['get'](_0x35c58c)['userId']),_0x8d2f1a['set'](_0x3004a0,_0x59bd71);}}_0x3ce740=_0x4a15fa['deletions'][_0x24d729];for(const _0x41074f of _0x3ce740)if(_0x41074f['item']['is']('element','tableCell')){const _0x5a251e=this['_getVidAttributeName'](_0x41074f),_0x5de5f5=_0x41074f['item']['getAttribute'](_0x5a251e);if(_0x356fb3['has'](_0x5de5f5)){const _0x1bad05=_0x41074f['item']['parent']['parent']['getAttribute']('vid_start'),_0xe2f3b8=_0x8d2f1a['get'](_0x1bad05)||new Set();_0xe2f3b8['add'](_0x356fb3['get'](_0x5de5f5)['userId']),_0x8d2f1a['set'](_0x1bad05,_0xe2f3b8);}}for(const _0x3ce12a of _0x8d2f1a['keys']())(_0xf6b48a['has'](_0x3ce12a)||_0x356fb3['has'](_0x3ce12a))&&_0x8d2f1a['delete'](_0x3ce12a);}for(const _0x1f4882 of _0x4343e1){const _0x302f02=_0x4a15fa['insertions'][_0x1f4882];let _0x14a33a=null,_0x4898c4=null;for(const _0x1b71f6 of _0x302f02){const _0x4e367f=this['_getVidAttributeName'](_0x1b71f6),_0x48c7db=_0x1b71f6['item']['getAttribute'](_0x4e367f),_0x3e1840=_0x8d2f1a['get'](_0x48c7db);_0x3e1840&&'elementStart'==_0x1b71f6['type']&&(_0x14a33a=Array['from'](_0x3e1840)[0x0],_0x4898c4=_0x1b71f6['item']['getAttribute']('vid_end')),_0x14a33a&&(_0x356fb3['set'](_0x48c7db,{'userId':_0x14a33a}),_0xf6b48a['set'](_0x48c7db,{'userId':_0x14a33a})),_0x48c7db==_0x4898c4&&(_0x14a33a=null,_0x4898c4=null);}}const _0x48ae2f={},_0x3ad26e=new Set();for(const _0x1e7579 of _0x4343e1){const _0x1ffb30=_0x485090['deletions'][_0x1e7579],_0x18656d=_0x485090['insertions'][_0x1e7579];for(const {userId:_0x36b952}of this['_touchedMarkers']['values']())null!==_0x36b952&&_0x3ad26e['add'](_0x36b952);for(const {userId:_0x55a61d}of this['_touchedRoots']['values']())null!==_0x55a61d&&_0x3ad26e['add'](_0x55a61d);this['_markChanges'](_0x18656d,_0x4a15fa['insertions'][_0x1e7579],_0xf6b48a,'insertion',_0x3ad26e),this['_markChanges'](_0x1ffb30,_0x4a15fa['deletions'][_0x1e7579],_0x356fb3,'deletion',_0x3ad26e),_0x48ae2f[_0x1e7579]={'insertions':this['_prepareViewToSave'](_0x18656d),'deletions':this['_prepareViewToSave'](_0x1ffb30),'attachChange':this['_touchedRoots']['get'](_0x1e7579)||null,'attributesBefore':_0x291809(this['_baseRootsAttributes']['get'](_0x1e7579))||{},'attributesAfter':_0x291809(this['_diffRootsAttributes']['get'](_0x1e7579))};}return{'diffData':_0x48ae2f,'authorsIds':Array['from'](_0x3ad26e)};}['_processRootBeforeSave'](_0x364550){for(const [,_0xadc428]of _0x364550['markers']){const _0x548f57=_0xadc428['start']['getAncestors']()['filter'](_0x2616f6=>'tableCell'==_0x2616f6['name']);for(const _0xbb004c of _0x548f57)0x1==_0xbb004c['childCount']&&_0xbb004c['getChild'](0x0)['is']('element','paragraph')&&_0xbb004c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x258159){this['_processRootBeforeSave'](_0x258159);const _0x13b59c=this['editor']['data']['toView'](_0x258159,{}),_0x27f422=Array['from'](_0x13b59c['getChildren']())['map'](_0x1817d2=>this['_getViewJson'](_0x1817d2));return JSON['stringify'](_0x27f422);}['_getViewJson'](_0x370d44){if(_0x370d44['is']('$text'))return _0x370d44['data'];{const _0xcbf328=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x56aeaf=_0x370d44,_0x3549f0=this['editor']['data']['htmlProcessor']['domConverter'],_0x46cfa1={'type':_0xcbf328['_getTypeCharForViewElement'](_0x56aeaf),'name':_0x56aeaf['name'],'attributes':Array['from'](_0x56aeaf['getAttributes']()),'children':Array['from'](_0x56aeaf['getChildren']())['map'](_0x48584e=>this['_getViewJson'](_0x48584e))};if(_0x370d44['is']('uiElement')&&'$comment'!=_0x370d44['name']){const _0x17b911=_0x370d44['render'](_0x3549f0['domDocument'],_0x3549f0);_0x46cfa1['children']['push'](_0x17b911['outerHTML']);}else{if(_0x370d44['is']('rawElement')){const _0x108a88=_0x3549f0['domDocument']['createElement'](_0x56aeaf['name']);_0x370d44['render'](_0x108a88,_0x3549f0),_0x46cfa1['children']['push'](_0x108a88['innerHTML']);}}const _0x36e1bc=Array['from'](_0x56aeaf['getCustomProperties']());_0x36e1bc['length']>0x0&&(_0x46cfa1['customProperties']=_0x36e1bc);const _0x729e05=_0x56aeaf['getFillerOffset']();return null!==_0x729e05&&(_0x46cfa1['fillerOffset']=_0x729e05),_0x46cfa1;}}['_markChanges'](_0x13d1a5,_0x5ba338,_0x490223,_0x46935a,_0x22a241){let _0x5e0e4d=null,_0x135e66=null,_0x54a5a7=0x0;const _0x277874=this['editor']['model'];for(let _0xde1ded=0x0;_0xde1ded<_0x5ba338['length'];_0xde1ded++){const _0x1d6926=this['_getVidAttributeName'](_0x5ba338[_0xde1ded]),_0xece8e5=_0x5ba338[_0xde1ded]['item']['getAttribute'](_0x1d6926),_0x297ba3=_0x490223['get'](_0xece8e5),_0x48a6b1=_0xde1ded==_0x5ba338['length']-0x1;(!_0x5e0e4d&&_0x297ba3&&(_0x5e0e4d=_0x297ba3,_0x135e66=_0x5ba338[_0xde1ded]),_0x5e0e4d&&(!_0x297ba3||_0x297ba3['userId']!=_0x5e0e4d['userId']))&&(_0x893173(_0x297ba3,F(_0x135e66,_0x13d1a5,_0x277874),F(_0x5ba338[_0xde1ded],_0x13d1a5,_0x277874)),_0x5e0e4d=_0x297ba3||null,_0x135e66=_0x297ba3?_0x5ba338[_0xde1ded]:null),_0x5e0e4d&&_0x48a6b1&&_0x893173(_0x297ba3,F(_0x135e66,_0x13d1a5,_0x277874),B(_0x5ba338[_0xde1ded],_0x13d1a5,_0x277874));}function _0x893173(_0x5bb342,_0x19cf0b,_0x5d0a74){const _0x6210d7=_0x5e0e4d['userId'],_0xdf5a4b='revision:'+_0x46935a+':'+_0x6210d7+':'+_0x54a5a7++,_0x5b13d3=_0x277874['createRange'](_0x19cf0b,_0x5d0a74);_0x13d1a5['markers']['set'](_0xdf5a4b,_0x5b13d3),null!==_0x6210d7&&_0x22a241['add'](_0x6210d7);}}['_getVidAttributeName'](_0x1f4952){switch(_0x1f4952['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x360422,_0x3b7f91){_0x360422['baseVersion']=null;for(const _0x374bf1 in _0x360422){const _0x7a8c7e=_0x360422[_0x374bf1];if(_0x7a8c7e instanceof vt){const _0x1e9b5a=_0x3b7f91['get'](_0x7a8c7e['root']['rootName']);_0x360422[_0x374bf1]=this['_fixPosition'](_0x7a8c7e,_0x1e9b5a);}if(_0x7a8c7e instanceof ft){const _0x2b2453=_0x3b7f91['get'](_0x7a8c7e['root']['rootName']);_0x360422[_0x374bf1]=this['_fixRange'](_0x7a8c7e,_0x2b2453);}'root'===_0x374bf1&&(_0x360422['root']=_0x3b7f91['get'](_0x360422['root']['rootName']));}}['_fixRange'](_0x377561,_0x916784){return this['editor']['model']['createRange'](this['_fixPosition'](_0x377561['start'],_0x916784),this['_fixPosition'](_0x377561['end'],_0x916784));}['_fixPosition'](_0x2ddba2,_0x3c9c29){return this['editor']['model']['createPositionFromPath'](_0x3c9c29,_0x2ddba2['path'],_0x2ddba2['stickiness']);}['_handleInsertOperation'](_0x53a3c3){const _0x597da9=this['_idsRoots']['get'](_0x53a3c3['position']['root']['rootName']),_0x2dcc33=this['_fixPosition'](_0x53a3c3['position'],_0x597da9),_0x54e8fb=null===_0x53a3c3['_authorId']?null:_0x53a3c3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d1507=_0x2dcc33['parent'],_0x597efd=this['_revisionId'],_0x255352=[];for(const _0x100f05 of _0x53a3c3['nodes'])if(_0x100f05['is']('element'))_0x255352['push'](this['_makeIdsRoot'](_0x100f05));else{for(let _0x3af4df=0x0;_0x3af4df<_0x100f05['offsetSize'];_0x3af4df++)_0x255352['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x59a3f2=this['_revisionId'];for(let _0xb66128=_0x597efd;_0xb66128<_0x59a3f2;_0xb66128++)this['_touched']['set'](_0xb66128,{'userId':_0x54e8fb});_0x1d1507['_insertChild'](_0x2dcc33['offset'],_0x255352);}['_handleMoveOperation'](_0x5be334){(_0x5be334=this['_cloneOperation'](_0x5be334,this['_idsRoots']))['_execute']();const _0x1c182a=null===_0x5be334['_authorId']?null:_0x5be334['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb9c9c7=_0x5be334['getMovedRangeStart'](),_0x2afd68=_0xb9c9c7['parent'],_0x1527fa=_0xb9c9c7['offset'];!function _0x19d065(_0x4350ab,_0x58497d,_0x24a2f6,_0x551aa1){for(let _0x3ba6d9=_0x24a2f6;_0x3ba6d9<_0x551aa1;_0x3ba6d9++){const _0xcddfbc=_0x58497d['getChild'](_0x3ba6d9);_0xcddfbc['is']('element','$text')?_0x4350ab['set'](_0xcddfbc['getAttribute']('vid'),{'userId':_0x1c182a}):(_0x4350ab['set'](_0xcddfbc['getAttribute']('vid_start'),{'userId':_0x1c182a}),_0x19d065(_0x4350ab,_0xcddfbc,0x0,_0xcddfbc['childCount']),_0x4350ab['set'](_0xcddfbc['getAttribute']('vid_end'),{'userId':_0x1c182a}));}}(this['_touched'],_0x2afd68,_0x1527fa,_0x1527fa+_0x5be334['howMany']);}['_handleMergeOperation'](_0x3ef69b){const _0x558bbd=null===(_0x3ef69b=this['_cloneOperation'](_0x3ef69b,this['_idsRoots']))['_authorId']?null:_0x3ef69b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x356a07=_0x3ef69b['targetPosition']['parent'],_0x419a95=_0x3ef69b['sourcePosition']['parent'],_0x4ce2df=_0x356a07['getAttribute']('vid_end'),_0x1ded0e=_0x419a95['getAttribute']('vid_start');_0x356a07['_setAttribute']('vid_end',_0x419a95['getAttribute']('vid_end')),_0x419a95['_setAttribute']('vid_end',_0x4ce2df),this['_touched']['set'](_0x1ded0e,{'userId':_0x558bbd}),this['_touched']['set'](_0x4ce2df,{'userId':_0x558bbd}),_0x3ef69b['_execute']();}['_handleSplitOperation'](_0x2fd47e){const _0x4f1497=null===(_0x2fd47e=this['_cloneOperation'](_0x2fd47e,this['_idsRoots']))['_authorId']?null:_0x2fd47e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a5a43=_0x2fd47e['graveyardPosition'],_0x2a497d=_0x2fd47e['splitPosition']['parent'];_0x2fd47e['_execute']();const _0xae6cc1=_0x2a497d['getAttribute']('vid_end'),_0x708481=_0x2fd47e['insertionPosition']['nodeAfter'];if(_0x5a5a43){const _0x213cc3=_0x708481['getAttribute']('vid_end'),_0x6dbdd1=_0x2a497d['getAttribute']('vid_end');_0x2a497d['_setAttribute']('vid_end',_0x213cc3),_0x708481['_setAttribute']('vid_end',_0x6dbdd1),this['_touched']['set'](_0x2a497d['getAttribute']('vid_end'),{'userId':_0x4f1497}),this['_touched']['set'](_0x708481['getAttribute']('vid_start'),{'userId':_0x4f1497});}else{const _0x3b1bdc=this['_revisionId']++,_0x1575d6=this['_revisionId']++;_0x2a497d['_setAttribute']('vid_end',_0x3b1bdc),_0x708481['_setAttribute']('vid_start',_0x1575d6),_0x708481['_setAttribute']('vid_end',_0xae6cc1),this['_touched']['set'](_0x3b1bdc,{'userId':_0x4f1497}),this['_touched']['set'](_0x1575d6,{'userId':_0x4f1497});}}['_handleMarkerOperation'](_0x1da526){if(!_0x1da526['affectsData'])return;const _0x5d66ee=(_0x1da526=this['_cloneOperation'](_0x1da526,this['_diffRoots']))['oldRange']?_0x1da526['oldRange']['root']:null,_0x4d06b2=_0x1da526['newRange']?_0x1da526['newRange']['root']:null;_0x5d66ee&&this['_markers']['delete'](_0x1da526['name']),_0x4d06b2&&this['_markers']['set'](_0x1da526['name'],_0x1da526['newRange']['clone']());const _0x6dbec3=null===_0x1da526['_authorId']?null:_0x1da526['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5642e2=_0x1da526['name'];if(!this['_touchedMarkers']['has'](_0x5642e2))return void this['_touchedMarkers']['set'](_0x5642e2,{'range':_0x1da526['oldRange'],'userId':_0x6dbec3});const _0x24fa08=this['_touchedMarkers']['get'](_0x5642e2),_0x1b57d7=_0x24fa08['range'],_0x1372e8=_0x1da526['newRange'];null==_0x1b57d7&&null==_0x1372e8||_0x1b57d7&&_0x1372e8&&_0x1b57d7['isEqual'](_0x1372e8)?this['_touchedMarkers']['delete'](_0x1da526['name']):_0x24fa08['userId']=_0x6dbec3;}['_handleRootOperation'](_0x102767,_0x166d13){this['_diffRoots']['has'](_0x102767['rootName'])?this['_diffRoots']['get'](_0x102767['rootName'])['_isAttached']=_0x102767['isAdd']:(this['_diffRoots']['set'](_0x102767['rootName'],P(_0x102767['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x102767['rootName'],{}),_0x166d13&&this['_idsRoots']['set'](_0x102767['rootName'],P(_0x102767['rootName'],!0x0)));const _0x4b994e=null===_0x102767['_authorId']?null:_0x102767['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x271bf1=this['_touchedRoots']['get'](_0x102767['rootName']);_0x271bf1&&_0x271bf1['userId']===_0x4b994e?this['_touchedRoots']['delete'](_0x102767['rootName']):this['_touchedRoots']['set'](_0x102767['rootName'],{'userId':_0x4b994e,'isAttached':_0x102767['isAdd']});}['_handleRootAttributeOperation'](_0x82a35f){const _0x345dfe=this['_diffRootsAttributes']['get'](_0x82a35f['root']['rootName']);null===_0x82a35f['newValue']?delete _0x345dfe[_0x82a35f['key']]:_0x345dfe[_0x82a35f['key']]=_0x82a35f['newValue'];}}function N(_0x4f28a0){const _0xed9b64=P(_0x4f28a0['rootName'],_0x4f28a0['isAttached']());for(const _0xd05400 of _0x4f28a0['getChildren']()){const _0x3f020d=_0xd05400['_clone'](!0x0);_0xed9b64['_appendChild'](_0x3f020d);}return _0xed9b64;}function P(_0x5b9a4e,_0x8014aa=!0x0){const _0x2f0752=new gt();return _0x2f0752['rootName']=_0x5b9a4e,_0x2f0752['_isAttached']=_0x8014aa,_0x2f0752['isAttached']=()=>_0x2f0752['_isAttached'],_0x2f0752;}function F(_0x12d65c,_0x38ba7e,_0x1d1122){const _0x495092='elementEnd'==_0x12d65c['type']?_0x1d1122['createPositionAt'](_0x12d65c['item'],'end'):_0x1d1122['createPositionBefore'](_0x12d65c['item']);return _0x1d1122['createPositionFromPath'](_0x38ba7e,_0x495092['path'],_0x495092['stickiness']);}function B(_0x316456,_0x4a2cfc,_0x5b6078){const _0x448256='elementStart'==_0x316456['type']?_0x5b6078['createPositionAt'](_0x316456['item'],0x0):_0x5b6078['createPositionAfter'](_0x316456['item']);return _0x5b6078['createPositionFromPath'](_0x4a2cfc,_0x448256['path'],_0x448256['stickiness']);}class os extends _0x18313a{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2a7faf,_0x2bb430){super(_0x2a7faf),this['focusTracker']=new _0x50bd47(),this['keystrokes']=new _0x4ecd61(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2bb430),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x47be2c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4001ca=_0x4f8be3=>_0x4f8be3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4001ca),this['keystrokes']['set']('arrowleft',_0x4001ca),this['keystrokes']['set']('arrowup',_0x4001ca),this['keystrokes']['set']('arrowdown',_0x4001ca);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x47d138){this['revisionNameInputView']['fieldView']['element']['value']=_0x47d138['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xf8266e){const _0x3ea29e=new nt(this['locale'],ti),_0x75280b=_0x3ea29e['fieldView'];_0x75280b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x36180e=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0xf8266e&&(_0x36180e+='\x20('+g(this['locale'],'optional')+')'),(_0x3ea29e['label']=_0x36180e,_0x75280b['on']('input',()=>{this['revisionNameInputValue']=_0x75280b['element']['value']['trim']();}),_0x3ea29e);}}class f extends _0x3ba875{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x443b66=this['editor'],_0x4cb857=_0x443b66['plugins']['get']('RevisionTracker');_0x443b66['ui']['componentFactory']['add']('revisionHistory',_0x3308ac=>{const _0x485770=_0x3564c9(_0x3308ac),_0x292455=_0x485770['panelView']['children'],_0x13ed58=new _0x10dfcb(_0x3308ac),_0x3798d2=new te(_0x3308ac),_0x5be490=new _0x29dce1(_0x3308ac),_0x3f908f=new te(_0x3308ac),_0x2b9e4b=new _0x29dce1(_0x3308ac);return _0x485770['bind']('isEnabled')['to'](_0x4cb857,'isReady',_0x4cb857,'isEnabled',_0x443b66,'isReadOnly',(_0xe569d5,_0x400b2b,_0x3897dc)=>_0xe569d5&&_0x400b2b&&!_0x3897dc),_0x485770['buttonView']['set']({'icon':_0x209882,'label':g(_0x3308ac,'Revision\x20history'),'tooltip':!0x0}),_0x5be490['set']({'label':g(_0x3308ac,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5be490['bind']('isEnabled')['to'](_0x4cb857,'isReady',_0x4cb857,'isEnabled',_0x443b66,'isReadOnly',(_0x27457e,_0x804ca,_0x26eb56)=>_0x27457e&&_0x804ca&&!_0x26eb56),_0x5be490['on']('execute',()=>this['_showDialog']()),_0x2b9e4b['set']({'label':g(_0x3308ac,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2b9e4b['bind']('isEnabled')['to'](_0x4cb857,'isReady',_0x443b66,'isReadOnly',(_0xc7e616,_0x1bbed7)=>_0xc7e616&&!_0x1bbed7),_0x2b9e4b['on']('execute',()=>{_0x443b66['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x485770['isOpen']=!0x1,_0x443b66['editing']['view']['focus']();}),_0x3798d2['children']['add'](_0x5be490),_0x3f908f['children']['add'](_0x2b9e4b),_0x13ed58['role']='menu',_0x13ed58['items']['addMany']([_0x3798d2,_0x3f908f]),_0x292455['add'](_0x13ed58),_0x485770;}),_0x443b66['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1bcde4=this['editor'],_0x76c58c=_0x1bcde4['locale'],_0xd0cfe5=new _0x1ab6f1(_0x76c58c),_0x508d09=new _0x56e625(_0x76c58c);_0xd0cfe5['buttonView']['set']({'icon':_0x209882,'label':g(_0x76c58c,'Revision\x20history')});const _0x36ba06=new _0x39cc4d(_0x76c58c,_0xd0cfe5),_0x49a411=new _0x34296b(_0x76c58c);_0x49a411['set']({'label':g(_0x76c58c,'Save\x20current\x20revision')}),_0x49a411['delegate']('execute')['to'](_0xd0cfe5),_0x49a411['on']('execute',()=>{this['_showDialog']();}),_0x36ba06['children']['add'](_0x49a411),_0x508d09['items']['add'](_0x36ba06);const _0x3265d2=new _0x39cc4d(_0x76c58c,_0xd0cfe5),_0x4e592b=new _0x34296b(_0x76c58c);return _0x4e592b['set']({'label':g(_0x76c58c,'Open\x20revision\x20history')}),_0x4e592b['delegate']('execute')['to'](_0xd0cfe5),_0x4e592b['on']('execute',()=>{_0x1bcde4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3265d2['children']['add'](_0x4e592b),_0x508d09['items']['add'](_0x3265d2),_0xd0cfe5['panelView']['children']['add'](_0x508d09),_0xd0cfe5;}['_showDialog'](){const _0xf26cfe=this['editor'],_0x24955b=_0xf26cfe['locale'],_0x5d7559=_0xf26cfe['plugins']['get']('Dialog'),_0x23c088=_0xf26cfe['plugins']['get']('RevisionTracker');function _0x53500f(_0x2db4a9){_0xf26cfe['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2db4a9['revisionName']?_0x2db4a9['revisionNameInputView']['errorText']=g(_0x24955b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xf26cfe['plugins']['get'](u)['saveRevision']({'name':_0x2db4a9['revisionName']}),_0x5d7559['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x53500f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5d7559['show']({'id':'revisionSave','title':g(_0x24955b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xf26cfe['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5d7559['hide']()},{'label':g(_0xf26cfe['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3f3fe7){_0x3f3fe7['bind']('isEnabled')['to'](_0x23c088,'isReady',_0x23c088,'isEnabled',_0xf26cfe,'isReadOnly',(_0x34adee,_0xbe2bf7,_0x615836)=>_0x34adee&&_0xbe2bf7&&!_0x615836);},'onExecute':()=>_0x53500f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x425035=this['editor'],_0x365802=_0x425035['locale'];this['_saveRevisionFormView']=new os(_0x365802,_0x425035['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x18313a{['changeId'];['_model'];constructor(_0x2be4f3,_0x41778e){super(_0x2be4f3),this['_model']=_0x41778e,this['changeId']=_0x41778e['id'];const _0x36d94f=this['bindTemplate'],_0x1f0fd1=g(_0x2be4f3,_0x41778e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x41778e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x41778e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x36d94f['to']('type',_0x4ffe9d=>'ck-revision-change__'+_0x4ffe9d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1f0fd1}]},{'text':'\x20'+_0x41778e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x6a77e2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x178ac6){super(),this['id']=_0x178ac6['id']||_0x58b8ff(),this['author']=_0x178ac6['author'],this['type']=_0x178ac6['type'],this['data']=_0x178ac6['data']||{},this['rootName']=_0x178ac6['rootName'],this['set']('createdAt',_0x178ac6['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(_0x207624,_0x4837b5){this['newRevisionId']=_0x207624,this['oldRevisionId']=_0x4837b5,this['changes']=new _0x5495c4();}['_setChanges'](_0x5cbad2){for(const _0x4bca68 of _0x5cbad2)this['changes']['add'](_0x4bca68);}}class m extends _0x3ba875{['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[_0x1b8b11,_0x44407,I,V];}constructor(_0x3a99dd){super(_0x3a99dd),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',(_0x4767da,_0x4a4bab,_0x44d30e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xab8b00=>{for(const _0x26f414 of this['editor']['editing']['view']['document']['roots'])_0x44d30e?_0xab8b00['removeClass']('ck-editor__editable__overlay',_0x26f414):_0xab8b00['addClass']('ck-editor__editable__overlay',_0x26f414);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x416a64=>null!==_0x416a64),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x162014,_0x18cfd1,_0x56daf4)=>_0x162014&&_0x56daf4?_0x18cfd1['changes']['getIndex'](_0x56daf4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x558fb9,_0xb431ae)=>_0x558fb9?_0xb431ae['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x44407);}['init'](){const _0x5b30ec=this['editor'],_0xa02973=new pt(_0x5b30ec,{'direction':'backward'}),_0x1892f0=new pt(_0x5b30ec,{'direction':'forward'});(_0x5b30ec['commands']['add']('showPreviousChange',_0xa02973),_0x5b30ec['commands']['add']('showNextChange',_0x1892f0),_0x5b30ec['commands']['add']('restoreRevision',new wt(_0x5b30ec)),this['on']('change:numberOfChanges',()=>{_0xa02973['refresh'](),_0x1892f0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b30ec['enableReadOnlyMode']('revision-viewer'),_0x5b30ec['plugins']['has']('WidgetToolbarRepository'))&&_0x5b30ec['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2c3d9f){return await this['_utils']['loadRevisionData'](_0x2c3d9f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2c3d9f);}async['getRevisionRootsAttributes'](_0x139c6b){return await this['_utils']['loadRevisionData'](_0x139c6b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x139c6b);}async['compare'](_0xe8e2db,_0x4fdc7a,_0x1f7944=!0x1){if(!this['isEnabled'])return;const _0x5dcd5e=this['diff'],_0x58d753=this['repository'],_0xc748cb='string'==typeof _0xe8e2db?_0x58d753['getRevision'](_0xe8e2db):_0xe8e2db,_0x26e2a2='string'==typeof _0x4fdc7a?_0x58d753['getRevision'](_0x4fdc7a):_0x4fdc7a,_0x3528d7=_0xc748cb['id'],_0x2c1e41=_0x26e2a2?_0x26e2a2['id']:null;if(!_0x1f7944&&this['diff']&&this['diff']['newRevisionId']===_0x3528d7&&this['diff']['oldRevisionId']===_0x2c1e41)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3528d7,_0x2c1e41);const _0x1b0404=this['_getRevisionsRange'](_0xc748cb,_0x26e2a2,!0x0)['map'](_0x3ac4d6=>this['_utils']['loadRevisionData'](_0x3ac4d6,this['adapter']));return _0x1b0404['push'](new Promise(_0x537851=>{setTimeout(_0x537851,0x14);})),Promise['all'](_0x1b0404)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xe8a9f0=this['_getDiff'](_0x3528d7,_0x2c1e41);for(const _0x458e51 of _0xe8a9f0['changes'])this['_changeIdToChange']['set'](_0x458e51['id'],_0x458e51);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4530cf=>{for(const _0x95d1 of this['editor']['model']['document']['getRootNames']())_0x4530cf['detachRoot'](_0x95d1);for(const _0x148a0a of Object['keys'](_0xe8a9f0['model'])){const _0x45d767=_0x4530cf['addRoot'](_0x148a0a);for(const _0x1a166c of Object['keys'](_0xe8a9f0['attributes'][_0x148a0a]))_0x4530cf['setAttribute'](_0x1a166c,_0xe8a9f0['attributes'][_0x148a0a][_0x1a166c],_0x45d767);_0x4530cf['insert'](_0xe8a9f0['model'][_0x148a0a],_0x45d767,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xe8a9f0['changes'])),this['isReady']=!0x0;})['catch'](_0x3cc93d=>{console['error'](_0x3cc93d),this['_cleanUp'](),_0x5dcd5e&&(this['diff']=_0x5dcd5e),this['isReady']=!0x0;});}['addRevisionData'](_0x3a2e50,_0x105415){const _0x468aa1=this['repository']['createRevision'](_0x3a2e50);return _0x468aa1['on']('_update',(_0x2f527a,_0x18aa3e,_0x16df1a)=>_0x105415(_0x18aa3e,_0x16df1a,_0x468aa1)),this['repository']['addRevision'](_0x468aa1),_0x468aa1;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23bc24=>{for(const _0x58d93c of this['editor']['model']['document']['getRootNames']())_0x23bc24['detachRoot'](_0x58d93c);});}['_sortAndFilterDiffChanges'](_0x23b196){const _0x141f2d=[],_0xeaf635=new Map();for(const _0x4d49b0 of this['editor']['model']['document']['getRootNames']()){const _0x30f7bf=this['editor']['editing']['view']['getDomRoot'](_0x4d49b0);if(!_0x30f7bf)continue;const _0x321b8c=_0x30f7bf['getClientRects']()['item'](0x0);_0x321b8c&&(_0x141f2d['push'](_0x4d49b0),_0xeaf635['set'](_0x4d49b0,_0x321b8c));}return _0x141f2d['sort']((_0x263e5c,_0x5a4f73)=>{const _0xc63c23=_0xeaf635['get'](_0x263e5c),_0x5629e0=_0xeaf635['get'](_0x5a4f73);return _0xc63c23['y']-_0x5629e0['y']||_0xc63c23['x']-_0x5629e0['x'];}),(_0x23b196=_0x23b196['filter'](_0x1a3a3d=>_0x141f2d['includes'](_0x1a3a3d['rootName'])))['sort']((_0x4735c6,_0xd8049a)=>_0x141f2d['indexOf'](_0x4735c6['rootName'])-_0x141f2d['indexOf'](_0xd8049a['rootName'])),_0x23b196;}['_makeTape'](_0x4f150c){const _0x822270=Array['from'](_0x4f150c['markers'])['filter'](([_0x4c667e,_0xbdc58d])=>_0x4c667e['startsWith']('revision:')&&!_0xbdc58d['isCollapsed']),_0x3ee569=Array['from'](this['editor']['model']['createRangeIn'](_0x4f150c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x822270['length'])for(const _0x4d492c of _0x3ee569){const [_0xb3a3fd,_0x42f0b8]=_0x822270[0x0],[,_0x5d2b33,_0x5c9859]=_0xb3a3fd['split'](':');if(_0x42f0b8['end']['isEqual'](_0x4d492c['nextPosition'])&&_0x822270['shift'](),(_0x4d492c['previousPosition']['isEqual'](_0x42f0b8['start'])||_0x4d492c['previousPosition']['isAfter'](_0x42f0b8['start']))&&('insertion'==_0x5d2b33?_0x4d492c['isAdded']={'userId':_0x5c9859}:'deletion'==_0x5d2b33&&(_0x4d492c['isRemoved']={'userId':_0x5c9859})),0x0==_0x822270['length'])break;}return _0x3ee569;}['_refreshStartEndIndex'](_0x3c2731){const _0x2bf3e3=new Map();for(let _0x324e65=0x0;_0x324e65<_0x3c2731['length'];_0x324e65++)'text'===_0x3c2731[_0x324e65]['type']?(_0x3c2731[_0x324e65]['item']['startIndex']=_0x324e65,_0x3c2731[_0x324e65]['item']['endIndex']=_0x324e65):('elementStart'===_0x3c2731[_0x324e65]['type']?_0x3c2731[_0x324e65]['item']['startIndex']=_0x324e65:'elementEnd'===_0x3c2731[_0x324e65]['type']&&(_0x3c2731[_0x324e65]['item']['endIndex']=_0x324e65),_0x2bf3e3['set'](_0x3c2731[_0x324e65]['id'],_0x324e65));for(const _0x530cd9 of _0x2bf3e3['values']())'elementStart'===_0x3c2731[_0x530cd9]['type']?_0x3c2731[_0x530cd9]['item']['endIndex']=_0x2bf3e3['get'](_0x3c2731[_0x530cd9]['pairId']):'elementEnd'===_0x3c2731[_0x530cd9]['type']&&(_0x3c2731[_0x530cd9]['item']['startIndex']=_0x2bf3e3['get'](_0x3c2731[_0x530cd9]['pairId']));}['_processTape'](_0x2f795d){for(let _0x3ee77c=0x0;_0x3ee77c<_0x2f795d['length'];_0x3ee77c++){if('elementStart'===_0x2f795d[_0x3ee77c]['type'])_0x2f795d[_0x3ee77c]['item']['startIndex']=_0x3ee77c;else{if('elementEnd'===_0x2f795d[_0x3ee77c]['type']){_0x2f795d[_0x3ee77c]['item']['endIndex']=_0x3ee77c;const _0x25dcd1=_0x2f795d[_0x3ee77c]['item']['startIndex'];_0x2f795d[_0x25dcd1]['pairId']=_0x2f795d[_0x3ee77c]['id'],_0x2f795d[_0x3ee77c]['pairId']=_0x2f795d[_0x25dcd1]['id'];}else _0x2f795d[_0x3ee77c]['item']['startIndex']=_0x3ee77c,_0x2f795d[_0x3ee77c]['item']['endIndex']=_0x3ee77c,_0x2f795d[_0x3ee77c]['pairId']=null;}_0x2f795d[_0x3ee77c]['markersStart']||(_0x2f795d[_0x3ee77c]['markersStart']=[],_0x2f795d[_0x3ee77c]['markersEnd']=[]);}}['_markInsertions'](_0x83bc07,_0x23931c){const _0x2aaa06=_0x83bc07['filter'](_0x4e85da=>!_0x4e85da['isAdded']);for(let _0x3eaf67=0x0;_0x3eaf67<_0x23931c['length'];_0x3eaf67++)_0x23931c[_0x3eaf67]['isAdded']&&(_0x2aaa06[_0x3eaf67]['isAdded']=_0x23931c[_0x3eaf67]['isAdded']);}['_getDiff'](_0x5bc1a6,_0x546d52=null){const _0x4d18b3=this['repository']['getRevision'](_0x5bc1a6),_0x3e501c=_0x546d52?this['repository']['getRevision'](_0x546d52):null,_0x4a78bd=this['_getRevisionsRange'](_0x4d18b3,_0x3e501c),_0x17e436=_0x4a78bd[_0x4a78bd['length']-0x1],_0x3c2830=new Map(),_0x3207d6={'model':{},'attributes':{},'changes':[]},_0x3c5c2c=new Set(),_0x31c5cc=new Map();for(let _0x5df376=_0x4a78bd['length']-0x1;_0x5df376>=0x0;_0x5df376--){const _0x2c9ffc=_0x4a78bd[_0x5df376];for(const _0x2017b5 of Object['keys'](_0x2c9ffc['diffData']))if(_0x2c9ffc['diffData'][_0x2017b5]['attachChange']){const _0x1146ce=_0x2c9ffc['diffData'][_0x2017b5]['attachChange'];_0x1146ce['isAttached']?(_0x3c5c2c['add'](_0x2017b5),_0x31c5cc['has'](_0x2017b5)&&_0x31c5cc['get'](_0x2017b5)['userId']==_0x1146ce['userId']?_0x31c5cc['delete'](_0x2017b5):_0x31c5cc['set'](_0x2017b5,_0x1146ce)):_0x31c5cc['has'](_0x2017b5)?(_0x3c5c2c['delete'](_0x2017b5),_0x31c5cc['delete'](_0x2017b5)):(_0x3c5c2c['add'](_0x2017b5),_0x31c5cc['set'](_0x2017b5,_0x1146ce));}else _0x3c5c2c['add'](_0x2017b5);}for(const _0x139f57 of _0x3c5c2c){const _0x906e19=_0x31c5cc['has'](_0x139f57)&&!_0x31c5cc['get'](_0x139f57)['isAttached'];let _0x3cd81e=_0x906e19?_0x4a78bd['length']-0x1:0x0;const _0x1ef67f=_0x906e19?-0x1:0x1;for(;_0x4a78bd[_0x3cd81e];){const _0x9210e8=_0x4a78bd[_0x3cd81e];if(_0x9210e8['diffData'][_0x139f57]){const _0x1a01f9=_0x906e19?_0x9210e8['diffData'][_0x139f57]['attributesBefore']:_0x9210e8['diffData'][_0x139f57]['attributesAfter'];_0x3207d6['attributes'][_0x139f57]=_0x1a01f9?_0x291809(_0x1a01f9):{};break;}_0x3cd81e+=_0x1ef67f;}}for(const _0x50066c of _0x4a78bd){_0x50066c['model']={};for(const _0x4df297 of _0x50066c['authors'])_0x3c2830['set'](_0x4df297['id'],_0x4df297);for(const _0x13a844 of _0x3c5c2c){const _0x5d59f8=_0x50066c['diffData'][_0x13a844]?_0x50066c['diffData'][_0x13a844]['insertions']:'[]',_0x5350f7=_0x50066c['diffData'][_0x13a844]?_0x50066c['diffData'][_0x13a844]['deletions']:'[]';_0x50066c['model'][_0x13a844]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5d59f8),'deletions':this['_utils']['_makeModelFromViewString'](_0x5350f7)};}}for(const _0x50ff79 of _0x3c5c2c){let _0x1e5a68=null,_0x18bee9=0x0;const _0x212962=new Map(Array['from'](_0x4d18b3['model'][_0x50ff79]['insertions']['markers'])['filter'](([_0x336371])=>!_0x336371['startsWith']('revision:')));let _0x5e407c=0x0;for(const _0x1837f4 of _0x4a78bd){const _0x3eca91=this['_makeTape'](_0x1837f4['model'][_0x50ff79]['insertions']);_0x1837f4==_0x4d18b3?(_0x1e5a68=_0x3eca91,_0x18bee9=_0x1e5a68['length'],_0x1e5a68['forEach'](_0x5abd4b=>{_0x5abd4b['id']=_0x5e407c++;}),this['_processTape'](_0x1e5a68)):this['_markInsertions'](_0x1e5a68,_0x3eca91);const _0x13a29c=_0x1e5a68['filter'](_0x3a6239=>!_0x3a6239['isAdded'])['map'](_0x3e1953=>_0x3e1953['id']);let _0x46f4df=0x0;const _0xfda3d3=this['_makeTape'](_0x1837f4['model'][_0x50ff79]['deletions']);_0xfda3d3['forEach'](_0x57ba7f=>{_0x57ba7f['isRemoved']?_0x57ba7f['id']=_0x18bee9++:_0x57ba7f['id']=_0x13a29c[_0x46f4df++];}),this['_processTape'](_0xfda3d3),this['_setDistance'](_0x1e5a68,'isAdded'),this['_setDistance'](_0xfda3d3,'isRemoved'),_0x1837f4==_0x4d18b3&&this['_markMarkers'](_0x1e5a68,_0x212962),_0x1e5a68=this['_joinTapes'](_0x1e5a68,_0xfda3d3),this['_refreshStartEndIndex'](_0x1e5a68),this['_setDistance'](_0x1e5a68,'isRemoved');}_0x1e5a68=_0x1e5a68['filter'](_0x31d35c=>!(_0x31d35c['isAdded']&&_0x31d35c['isRemoved']));const _0xa4e260=new Map(_0x17e436['model'][_0x50ff79]['deletions']['markers']),_0x3372b1=new Set(_0x212962['keys']());for(const _0x3950bb of _0xa4e260['keys']())_0x3372b1['delete'](_0x3950bb);this['_markSuggestions'](_0x1e5a68,_0x3372b1),this['_fixObsoleteTags'](_0x1e5a68),_0x1e5a68=this['_removeMissingPairs'](_0x1e5a68),_0x1e5a68=this['_markMismatchedRemovedTags'](_0x1e5a68),_0x1e5a68=this['_removeUnsupportedChanges'](_0x1e5a68);const {root:_0x47f16d,changes:_0x42e3cb}=this['_makeModelFromTape'](_0x1e5a68,_0x3c2830,_0x50ff79);_0x3207d6['model'][_0x50ff79]=_0x47f16d;const _0x55633b=_0x31c5cc['get'](_0x50ff79);if(_0x55633b){const _0x2ce1c4=_0x3c2830['get'](_0x55633b['userId']),_0x4ede97=new r({'author':_0x2ce1c4,'type':_0x55633b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50ff79});_0x42e3cb['unshift'](_0x4ede97),_0x3207d6['attributes'][_0x50ff79]['revisionHistoryAttachChange']=_0x4ede97['id'];}_0x3207d6['changes']=_0x3207d6['changes']['concat'](_0x42e3cb);}return _0x3207d6;}['_markMarkers'](_0x19a0ad,_0x2eefea){for(let _0x52c7eb=0x0;_0x52c7eb<_0x19a0ad['length'];_0x52c7eb++)for(const [_0x19ab29,_0xb78d4a]of _0x2eefea)!_0xb78d4a['isCollapsed']&&_0xb78d4a['start']['isEqual'](_0x19a0ad[_0x52c7eb]['previousPosition'])&&_0x19a0ad[_0x52c7eb]['markersStart']['push'](_0x19ab29),_0xb78d4a['end']['isEqual'](_0x19a0ad[_0x52c7eb]['nextPosition'])&&_0x19a0ad[_0x52c7eb]['markersEnd']['push'](_0x19ab29);}['_joinTapes'](_0x29b104,_0x26e641){let _0x55f5ba=[],_0x1e1a0a=0x0,_0x38ff39=0x0;for(;_0x1e1a0a<_0x29b104['length']||_0x38ff39<_0x26e641['length'];){const _0x379f96=_0x29b104[_0x1e1a0a]||{},_0x1fcc7a=_0x26e641[_0x38ff39]||{};if(_0x379f96['id']==_0x1fcc7a['id'])_0x1e1a0a++,_0x38ff39++,_0x55f5ba['push'](_0x379f96);else{if(_0x1fcc7a['isRemoved']&&_0x379f96['isAdded']){const {commonTape:_0x36fc8d,iEnd:_0x29227c,jEnd:_0x44bb95}=this['_threeWayMerge'](_0x29b104,_0x1e1a0a,_0x26e641,_0x38ff39);_0x55f5ba=_0x55f5ba['concat'](_0x36fc8d),_0x1e1a0a=_0x29227c,_0x38ff39=_0x44bb95;}else _0x1fcc7a['isRemoved']?(_0x38ff39++,_0x55f5ba['push'](_0x1fcc7a)):(_0x1e1a0a++,_0x55f5ba['push'](_0x379f96));}}return _0x55f5ba;}['_markSuggestions'](_0x1cee7b,_0xaa26e2){const _0x4a1e98=[];for(let _0x441dd6=0x0;_0x441dd6<_0x1cee7b['length'];_0x441dd6++){for(let _0x21e306=0x0;_0x21e306<_0x1cee7b[_0x441dd6]['markersStart']['length'];_0x21e306++){const _0x5eb0ab=_0x1cee7b[_0x441dd6]['markersStart'][_0x21e306];if(!_0xaa26e2['has'](_0x5eb0ab))continue;const {group:_0x485c61,type:_0x275d77,authorId:_0x533269}=_0x40dd5e(_0x5eb0ab);'revision-suggestion'!=_0x485c61||'insertion'!=_0x275d77&&'deletion'!=_0x275d77||(_0x4a1e98['unshift']({'type':_0x275d77,'name':_0x5eb0ab,'userId':_0x533269}),_0x1cee7b[_0x441dd6]['markersStart']['splice'](_0x21e306,0x1),_0x21e306--);}_0x29d385(_0x1cee7b[_0x441dd6]);for(let _0xd9a462=0x0;_0xd9a462<_0x1cee7b[_0x441dd6]['markersEnd']['length'];_0xd9a462++){const _0x1a4846=_0x1cee7b[_0x441dd6]['markersEnd'][_0xd9a462];if(!_0xaa26e2['has'](_0x1a4846))continue;const {group:_0x59b242,type:_0x5cd06e}=_0x40dd5e(_0x1a4846);if('revision-suggestion'!=_0x59b242||'insertion'!=_0x5cd06e&&'deletion'!=_0x5cd06e)continue;_0x1cee7b[_0x441dd6]['markersEnd']['splice'](_0xd9a462,0x1),_0xd9a462--;const _0x2741ea=_0x4a1e98['findIndex'](_0x4f7f64=>_0x4f7f64['name']==_0x1a4846);_0x2741ea>-0x1&&_0x4a1e98['splice'](_0x2741ea,0x1);}}function _0x40dd5e(_0xb77e1d){const _0xe25fbd=_0xb77e1d['split'](':');return{'group':_0xe25fbd[0x0],'type':_0xe25fbd[0x1],'subType':_0xe25fbd['length']>=0x5?_0xe25fbd[0x2]:null,'id':_0xe25fbd['length']<0x5?_0xe25fbd[0x2]:_0xe25fbd[0x3],'authorId':_0xe25fbd['length']<0x5?_0xe25fbd[0x3]:_0xe25fbd[0x4],'markerCount':0x6==_0xe25fbd['length']?_0xe25fbd[0x5]:null};}function _0x29d385(_0x5ce9fa){for(let _0x4284f4=0x0;_0x4284f4<_0x4a1e98['length'];_0x4284f4++){if(_0x5ce9fa['isAdded']&&'insertion'==_0x4a1e98[_0x4284f4]['type'])return _0x5ce9fa['isAddSuggestion']=_0x4a1e98[_0x4284f4],void delete _0x5ce9fa['isAdded'];if(!_0x5ce9fa['isAdded']&&!_0x5ce9fa['isRemoved']&&'deletion'==_0x4a1e98[_0x4284f4]['type'])return void(_0x5ce9fa['isRemoveSuggestion']=_0x4a1e98[_0x4284f4]);}}}['_setDistance'](_0x350bc7,_0x57208b){let _0x2a6007=0x0,_0x236bd9=!0x1;const _0x249c5f=new Map();for(const _0x1887a9 of _0x350bc7)_0x1887a9[_0x57208b]?_0x236bd9&&(_0x2a6007++,_0x236bd9=!0x1):(_0x2a6007++,_0x236bd9=!0x0),_0x249c5f['set'](_0x1887a9['id'],_0x2a6007);for(let _0x656fa7=0x0;_0x656fa7<_0x350bc7['length'];_0x656fa7++){if('isRemoved'==_0x57208b&&_0x350bc7[_0x656fa7]['isAdded']||'isAdded'==_0x57208b&&_0x350bc7[_0x656fa7]['isRemoved'])continue;if('text'==_0x350bc7[_0x656fa7]['type']){_0x350bc7[_0x656fa7]['distance']=0x0;continue;}const _0xe06aa0=_0x249c5f['get'](_0x350bc7[_0x656fa7]['pairId']),_0x5c3a2d=_0x249c5f['get'](_0x350bc7[_0x656fa7]['id']);_0x350bc7[_0x656fa7]['distance']=_0xe06aa0-_0x5c3a2d;}}['_getRevisionsRange'](_0x557d29,_0x4d05fa,_0xda74f0=!0x1){const _0x549abc=[];let _0x3f6022=this['repository']['getIndex'](_0x557d29),_0x33950f=this['repository']['getIndex'](_0x4d05fa);for(-0x1==_0x33950f&&(_0x33950f=this['repository']['_revisions']['length'],_0xda74f0=!0x1);_0x3f6022<_0x33950f;)_0x549abc['push'](this['repository']['getRevision'](_0x3f6022)),_0x3f6022++;return _0xda74f0&&_0x549abc['push'](this['repository']['getRevision'](_0x3f6022)),_0x549abc;}['_threeWayMerge'](_0x1781b9,_0xdcb765,_0x2babda,_0x493fa3){const _0x4aa1bc=this['editor']['model']['schema'];let _0x27cdfd=_0xdcb765;for(;_0x1781b9[_0x27cdfd]&&_0x1781b9[_0x27cdfd]['isAdded'];)_0x27cdfd++;let _0x5b15e6=_0x493fa3;for(;_0x2babda[_0x5b15e6]&&_0x2babda[_0x5b15e6]['isRemoved'];)_0x5b15e6++;_0x4cf84b(_0x1781b9,_0xdcb765,_0x27cdfd),_0x4cf84b(_0x2babda,_0x493fa3,_0x5b15e6);const _0x49e876=_0x2babda['slice'](_0x493fa3,_0x5b15e6)['concat'](_0x1781b9['slice'](_0xdcb765,_0x27cdfd));return _0x49e876['sort']((_0x241ee6,_0x472225)=>_0x241ee6['side']!=_0x472225['side']?_0x241ee6['side']-_0x472225['side']:_0x241ee6['level']!=_0x472225['level']?_0x241ee6['level']-_0x472225['level']:_0x241ee6['distance']!=_0x472225['distance']?_0x472225['distance']-_0x241ee6['distance']:!!_0x241ee6['isAdded']!=!!_0x472225['isAdded']?-0x1==_0x241ee6['side']||0x0==_0x241ee6['side']?_0x241ee6['isAdded']?-0x1:0x1:_0x241ee6['isAdded']?0x1:-0x1:_0x241ee6['index']-_0x472225['index']),{'commonTape':_0x49e876,'iEnd':_0x27cdfd,'jEnd':_0x5b15e6};function _0x4cf84b(_0x1faafd,_0x46388e,_0x1445fd){let _0x397dfa=-0x1,_0x381d75=Number['POSITIVE_INFINITY'],_0x439a78=!0x0;for(let _0x355114=_0x46388e;_0x355114<_0x1445fd;_0x355114++)if(_0x4aa1bc['isInline'](_0x1faafd[_0x355114]['item'])||(_0x439a78=!0x1),_0x1faafd[_0x355114]['item']['startIndex']<_0x46388e&&(_0x397dfa=_0x355114),_0x1faafd[_0x355114]['item']['endIndex']>=_0x1445fd){_0x381d75=_0x355114;break;}_0x439a78&&(_0x397dfa=_0x1445fd-0x1);for(let _0x3e8ee0=_0x46388e;_0x3e8ee0<_0x1445fd;_0x3e8ee0++)_0x1faafd[_0x3e8ee0]['side']=_0x3e8ee0<=_0x397dfa?-0x1:_0x3e8ee0<_0x381d75?0x0:0x1,_0x1faafd[_0x3e8ee0]['index']=_0x3e8ee0;let _0x553691=0x0;for(let _0x490d8f=_0x46388e;_0x490d8f<=_0x397dfa;_0x490d8f++)0x0==_0x1faafd[_0x490d8f]['distance']?_0x1faafd[_0x490d8f]['level']=_0x553691:(_0x553691++,_0x1faafd[_0x490d8f]['level']=_0x553691,_0x553691++);for(let _0xe5eef1=_0x46388e;_0xe5eef1<_0x1445fd;_0xe5eef1++)0x0==_0x1faafd[_0xe5eef1]['side']&&(_0x1faafd[_0xe5eef1]['level']=_0x553691);_0x553691=0x0;for(let _0x9c57c6=_0x1445fd-0x1;_0x9c57c6>=_0x381d75;_0x9c57c6--)0x0==_0x1faafd[_0x9c57c6]['distance']?_0x1faafd[_0x9c57c6]['level']=_0x553691:(_0x553691--,_0x1faafd[_0x9c57c6]['level']=_0x553691,_0x553691--);}}['_fixObsoleteTags'](_0x684510){const _0x30a835=new Map(),_0x52480=this['editor']['model']['schema'];for(let _0x563828=0x1;_0x563828<_0x684510['length'];_0x563828++){let _0x38e438,_0x44eb84,_0x577616;const _0x35448b=_0x684510[_0x563828],_0x4d2a17=_0x684510[_0x563828-0x1];if('text'==_0x35448b['type'])continue;if(_0x35448b['type']!=_0x4d2a17['type'])continue;if(!_0x52480['isBlock'](_0x4d2a17['item'])||_0x52480['isLimit'](_0x4d2a17['item']))continue;if(!_0x52480['isBlock'](_0x35448b['item'])||_0x52480['isLimit'](_0x35448b['item']))continue;if((_0x684510[_0x563828]['isAdded']||_0x684510[_0x563828]['isAddSuggestion'])&&_0x684510[_0x563828-0x1]['isRemoved'])_0x38e438=_0x684510[_0x563828],_0x44eb84=_0x684510[_0x563828-0x1],_0x577616=_0x563828-0x1;else{if(!_0x684510[_0x563828]['isRemoved']||!_0x684510[_0x563828-0x1]['isAdded']&&!_0x684510[_0x563828-0x1]['isAddSuggestion'])continue;_0x38e438=_0x684510[_0x563828-0x1],_0x44eb84=_0x684510[_0x563828],_0x577616=_0x563828;}const _0x1dc3f3=_0x38e438['level']==_0x44eb84['level'],_0x128bff=Math['abs'](_0x38e438['level'])<Math['abs'](_0x44eb84['level'])&&0x0==_0x44eb84['distance'];(_0x1dc3f3||_0x128bff)&&(_0x30a835['set'](_0x44eb84['id'],_0x38e438['id']),_0x684510['splice'](_0x577616,0x1),_0x563828--,_0x38e438['isAdded']=!0x1);}for(let _0x588af1=0x0;_0x588af1<_0x684510['length'];_0x588af1++)_0x30a835['has'](_0x684510[_0x588af1]['pairId'])&&(_0x684510[_0x588af1]['pairId']=_0x30a835['get'](_0x684510[_0x588af1]['pairId']));}['_removeMissingPairs'](_0x39c0ef){const _0x376fe3=new Set(_0x39c0ef['map'](_0x45441b=>_0x45441b['id']));for(let _0x12f1c8=0x0;_0x12f1c8<_0x39c0ef['length'];_0x12f1c8++)_0x376fe3['has'](_0x39c0ef[_0x12f1c8]['pairId'])||0x0==_0x39c0ef[_0x12f1c8]['distance']||(_0x39c0ef[_0x12f1c8]['isIncorrect']=!0x0);return _0x39c0ef['filter'](_0x2cff4b=>!_0x2cff4b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x338ad8){const _0x5340c9=new Set();for(let _0x132144=0x0;_0x132144<_0x338ad8['length'];_0x132144++){if(_0x5340c9['has'](_0x338ad8[_0x132144]['id'])&&_0x338ad8[_0x132144]['isRemoved']&&(_0x338ad8[_0x132144]['isIncorrect']=!0x0),_0x338ad8[_0x132144]['isIncorrect'])continue;if(0x0==_0x338ad8[_0x132144]['distance'])continue;if('elementStart'!=_0x338ad8[_0x132144]['type'])continue;if(null==_0x338ad8[_0x132144]['pairId'])continue;let _0x28202a=_0x132144+0x1,_0xa97d77=0x0;for(;_0x338ad8[_0x28202a]['id']!=_0x338ad8[_0x132144]['pairId'];)'elementStart'==_0x338ad8[_0x28202a]['type']?_0xa97d77++:'elementEnd'==_0x338ad8[_0x28202a]['type']&&_0xa97d77--,_0x28202a++;if(0x0!=_0xa97d77){if(_0x338ad8[_0x132144]['isRemoved'])_0x338ad8[_0x132144]['isIncorrect']=!0x0;else{for(;_0x28202a!=_0x132144;)_0x338ad8[_0x28202a]['isRemoved']&&0x0!=_0x338ad8[_0x28202a]['distance']&&(_0x338ad8[_0x28202a]['isIncorrect']=!0x0,_0x5340c9['add'](_0x338ad8[_0x28202a]['pairId'])),_0x28202a--;}}}return _0x338ad8['filter'](_0x38fed7=>!_0x38fed7['isIncorrect']);}['_removeUnsupportedChanges'](_0x47d46d){const _0x447593=this['editor']['model']['schema'];for(let _0x40bb47=0x0;_0x40bb47<_0x47d46d['length'];_0x40bb47++){if(!(_0x47d46d[_0x40bb47]['isAdded']||_0x47d46d[_0x40bb47]['isAddSuggestion']||_0x47d46d[_0x40bb47]['isRemoved']||_0x47d46d[_0x40bb47]['isRemoveSuggestion']))continue;if(0x0==_0x47d46d[_0x40bb47]['distance'])continue;const _0x4d4f0a=_0x47d46d[_0x40bb47]['item'];_0x447593['isBlock'](_0x4d4f0a)||_0x447593['isLimit'](_0x4d4f0a)||(_0x47d46d[_0x40bb47]['isAdded']&&delete _0x47d46d[_0x40bb47]['isAdded'],_0x47d46d[_0x40bb47]['isAddSuggestion']&&delete _0x47d46d[_0x40bb47]['isAddSuggestion'],_0x47d46d[_0x40bb47]['isRemoveSuggestion']&&delete _0x47d46d[_0x40bb47]['isRemoveSuggestion'],_0x47d46d[_0x40bb47]['isRemoved']&&(_0x47d46d[_0x40bb47]['isIncorrect']=!0x0));}return _0x47d46d['filter'](_0x324154=>!_0x324154['isIncorrect']);}['_makeModelFromTape'](_0x5d57d2,_0x3af34e,_0x45457e){const _0x45761a=new gt(),_0x10ad1b=[],_0x4f52db=new Map(),_0x13e9d7=this['editor']['model'],_0x3ad15d=_0x13e9d7['schema'],_0x52025e=[_0x45761a],_0x462395={},_0x2dcdaf={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4d19de=null;const _0x5d3bb8=[0x0];for(let _0x3f1cd7=0x0;_0x3f1cd7<_0x5d57d2['length'];_0x3f1cd7++)if('elementStart'===_0x5d57d2[_0x3f1cd7]['type']){_0x5d57d2[_0x3f1cd7]['previousPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8);const _0x59deb6=new ut(_0x5d57d2[_0x3f1cd7]['item']['name'],_0x5d57d2[_0x3f1cd7]['item']['getAttributes']());_0x52025e[0x0]['_appendChild'](_0x59deb6),_0x5d3bb8['push'](0x0),_0x52025e['unshift'](_0x59deb6),_0x5d57d2[_0x3f1cd7]['nextPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8);}else'elementEnd'===_0x5d57d2[_0x3f1cd7]['type']?(_0x52025e['shift'](),_0x5d57d2[_0x3f1cd7]['previousPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8),_0x5d3bb8['pop'](),_0x5d3bb8[_0x5d3bb8['length']-0x1]++,_0x5d57d2[_0x3f1cd7]['nextPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8)):(_0x5d57d2[_0x3f1cd7]['previousPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8),_0x4d19de?_0x4d19de['_data']+=_0x5d57d2[_0x3f1cd7]['item']['data']:_0x4d19de=new mt(_0x5d57d2[_0x3f1cd7]['item']['data'],_0x5d57d2[_0x3f1cd7]['item']['getAttributes']()),_0x5d57d2[_0x3f1cd7+0x1]&&'text'===_0x5d57d2[_0x3f1cd7+0x1]['type']&&_0x413d82(_0x4d19de,_0x5d57d2[_0x3f1cd7+0x1]['item'])||(_0x52025e[0x0]['_appendChild'](_0x4d19de),_0x4d19de=null),_0x5d3bb8[_0x5d3bb8['length']-0x1]+=_0x5d57d2[_0x3f1cd7]['item']['offsetSize'],_0x5d57d2[_0x3f1cd7]['nextPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8));for(let _0x1c3863=0x0;_0x1c3863<_0x5d57d2['length'];_0x1c3863++){const _0x124ff1=_0x5d57d2[_0x1c3863]['previousPosition'],_0x3d6448=_0x5d57d2[_0x1c3863]['nextPosition'];for(const _0xb33afe of _0x5d57d2[_0x1c3863]['markersStart'])_0x4f52db['set'](_0xb33afe,{'start':_0x124ff1,'end':null});_0x189c31('isRemoveSuggestion',_0x1c3863,_0x124ff1,_0x3d6448),_0x189c31('isAddSuggestion',_0x1c3863,_0x124ff1,_0x3d6448),_0x189c31('isRemoved',_0x1c3863,_0x124ff1,_0x3d6448),_0x189c31('isAdded',_0x1c3863,_0x124ff1,_0x3d6448);for(const _0xbee012 of _0x5d57d2[_0x1c3863]['markersEnd']){const _0x344945=_0x4f52db['get'](_0xbee012);_0x344945?_0x344945['end']=_0x3d6448:_0x4f52db['set'](_0xbee012,{'start':_0x3d6448,'end':_0x3d6448});}}for(const [_0x383a64,_0x23a033]of _0x4f52db){const _0x1bc7d7=this['editor']['model']['createRange'](_0x23a033['start'],_0x23a033['end']);_0x45761a['markers']['set'](_0x383a64,_0x1bc7d7);}return _0x10ad1b['sort']((_0x1ddfcd,_0x40ca72)=>{const _0x2ba7c2=_0x45761a['markers']['get']('revision:'+_0x1ddfcd['id']),_0x42477a=_0x45761a['markers']['get']('revision:'+_0x40ca72['id']);return _0x2ba7c2['start']['isBefore'](_0x42477a['start'])?-0x1:_0x2ba7c2['start']['isAfter'](_0x42477a['start'])?0x1:_0x2ba7c2['end']['isBefore'](_0x42477a['end'])?-0x1:_0x2ba7c2['end']['isAfter'](_0x42477a['end'])?0x1:'add'===_0x1ddfcd['type']?-0x1:0x1;}),{'root':_0x45761a,'changes':_0x10ad1b};function _0x189c31(_0x386938,_0x2cc315,_0x47b4c3,_0x1d33c2){const _0xf666a1=!!_0x5d57d2[_0x2cc315][_0x386938],_0x1a23b6=_0xf666a1?_0x5d57d2[_0x2cc315][_0x386938]['userId']:null,_0x5bd6c2=_0x2cc315===_0x5d57d2['length']-0x1,_0xebd258=_0x2dcdaf[_0x386938][0x0],_0x20ad1c=_0x3ad15d['isObject'](_0x5d57d2[_0x2cc315]['item']);!_0x462395[_0x386938]&&_0xf666a1?_0x462395[_0x386938]={'start':_0x47b4c3,'tapeItem':_0x5d57d2[_0x2cc315],'userId':_0x1a23b6,'type':_0x386938}:_0x462395[_0x386938]&&!_0xf666a1?(_0x462395[_0x386938]['end']=_0x47b4c3,_0xcd7bb3(_0x462395[_0x386938]),_0x462395[_0x386938]=null):_0x462395[_0x386938]&&_0xf666a1&&_0x462395[_0x386938]['userId']!==_0x1a23b6&&(_0x462395[_0x386938]['end']=_0x47b4c3,_0xebd258&&_0xebd258['userId']===_0x462395[_0x386938]['userId']||_0xcd7bb3(_0x462395[_0x386938]),_0x462395[_0x386938]={'start':_0x47b4c3,'tapeItem':_0x5d57d2[_0x2cc315],'userId':_0x1a23b6,'type':_0x386938}),_0x462395[_0x386938]&&_0x20ad1c&&('elementStart'!==_0x5d57d2[_0x2cc315]['type']||_0xebd258&&_0xebd258['userId']===_0x1a23b6||_0x2dcdaf[_0x386938]['unshift']({'userId':_0x1a23b6,'object':_0x5d57d2[_0x2cc315]['item'],'change':_0x462395[_0x386938]}),'elementEnd'===_0x5d57d2[_0x2cc315]['type']&&_0xebd258&&_0xebd258['object']===_0x5d57d2[_0x2cc315]['item']&&(_0x2dcdaf[_0x386938]['shift'](),_0x462395[_0x386938]=_0xebd258['change'])),_0x462395[_0x386938]&&_0x5bd6c2&&(_0x462395[_0x386938]['end']=_0x1d33c2,_0xcd7bb3(_0x462395[_0x386938]),_0x462395[_0x386938]=null);}function _0xcd7bb3({start:_0x2b8c6f,end:_0x113be1,tapeItem:_0x1b322b,userId:_0x53a8b9,type:_0x10ec64}){const _0x5bcb30=_0x1b322b['item'],_0x3ab1f1=_0x13e9d7['schema']['isBlock'](_0x5bcb30)&&!_0x13e9d7['schema']['isLimit'](_0x5bcb30),_0x46040f=_0x2b8c6f['nodeAfter']==_0x113be1['parent']&&_0x113be1['isAtStart'];if(_0x3ab1f1&&_0x46040f)return;const _0x5907aa=_0x13e9d7['createRange'](_0x2b8c6f,_0x113be1),_0x49b458=_0x3af34e['get'](_0x53a8b9),_0x1a89f4=new r({'author':_0x49b458,'type':'isAdded'==_0x10ec64||'isAddSuggestion'==_0x10ec64?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x10ec64||'isRemoveSuggestion'==_0x10ec64},'createdAt':new Date(),'rootName':_0x45457e});_0x10ad1b['push'](_0x1a89f4),_0x45761a['markers']['set']('revision:'+_0x1a89f4['id'],_0x5907aa);}function _0x413d82(_0x23fd05,_0x64a2c0){const _0x219f9a=_0x23fd05['getAttributes'](),_0x3f84a6=_0x64a2c0['getAttributes']();for(const _0x212b6b of _0x219f9a){if(_0x212b6b[0x1]!==_0x64a2c0['getAttribute'](_0x212b6b[0x0]))return!0x1;_0x3f84a6['next']();}return _0x3f84a6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x445f5c=>{const _0x376df0=_0x445f5c['markerName']['split'](':')[0x1],_0x261554=this['_getChangeFromId'](_0x376df0);if(!_0x261554)return null;const _0x160b32='add'==_0x261554['type']?'insertion':'deletion',_0x3fa95d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x160b32];return _0x261554['data']['isSuggestion']&&_0x3fa95d['push']('ck-suggestion-marker-'+_0x160b32+'-new'),this['activeChange']==_0x261554&&_0x3fa95d['push']('ck-suggestion-marker--active'),{'classes':_0x3fa95d,'attributes':{'data-change-id':_0x376df0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22c7d6=>{_0x22c7d6['on']('element:pre',(_0x1d58b6,_0x17589e,_0x34b572)=>{const _0x123241=_0x17589e['viewItem']['getChild'](0x0);if(!_0x123241||!_0x123241['is']('element','code'))return;if(!_0x34b572['consumable']['consume'](_0x123241,{'attributes':['vid_start','vid_end']}))return;const _0x2b463e=_0x17589e['modelRange']['start']['nodeAfter'];_0x34b572['writer']['setAttribute']('vid_start',_0x123241['getAttribute']('vid_start'),_0x2b463e),_0x34b572['writer']['setAttribute']('vid_end',_0x123241['getAttribute']('vid_end'),_0x2b463e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x133b63=>{_0x133b63['on']('element',(_0x5ea910,_0x3a8455,_0x2dff2a)=>{if(!_0x2dff2a['consumable']['consume'](_0x3a8455['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3a8455['modelRange']['isCollapsed'])return;const _0x2723c9=_0x3a8455['modelRange']['start']['nodeAfter'];_0x2723c9['hasAttribute']('vid_start')||_0x2723c9['hasAttribute']('vid')||(_0x2dff2a['writer']['setAttribute']('vid_start',_0x3a8455['viewItem']['getAttribute']('vid_start'),_0x2723c9),_0x2dff2a['writer']['setAttribute']('vid_end',_0x3a8455['viewItem']['getAttribute']('vid_end'),_0x2723c9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4d386a=>_0x4d386a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xbd0239,[,_0x5da7a0])=>{['vid_start','vid_end','vid']['includes'](_0x5da7a0)&&(_0xbd0239['return']=!0x0,_0xbd0239['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b3336=>{_0x2b3336['on']('attribute:vid',(_0x27c731,_0x52529b,_0x225c58)=>{if('\x20'!=_0x52529b['item']['data']||_0x52529b['item']['parent']['maxOffset']>0x1)return;if(!_0x225c58['consumable']['consume'](_0x52529b['item'],_0x27c731['name']))return;const _0x1f8a3f=_0x225c58['writer'],_0x53da1c=_0x225c58['mapper']['toViewRange'](_0x52529b['range']);_0x1f8a3f['wrap'](_0x53da1c,_0x1f8a3f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x54f9f9){const _0x5e5e0d=_0x54f9f9['plugins']['get']('RevisionViewer');return(_0x261de1,_0xb6b6d,_0x566b05)=>{const _0x3085fa=_0xb6b6d['markerName']['split'](':')[0x1],_0x13b691=_0x5e5e0d['_getChangeFromId'](_0x3085fa);if(!_0x13b691)return null;const _0x4bc2d7='add'==_0x13b691['type']?'split':'merge';if(!_0x566b05['consumable']['test'](_0xb6b6d['markerRange'],_0x261de1['name']))return;const _0x5dc296=_0xb6b6d['markerRange']['getWalker'](),_0x1331e5=_0xb6b6d['markerRange']['start'],_0x166fa5=_0x54f9f9['model']['schema'];let _0x2bf024=null,_0xb8378a=null,_0x3b51be=!0x1,_0x3370cc=!0x1;for(const _0x27bab6 of _0x5dc296){const _0x1f1f8c=_0x27bab6['item'];_0x3b51be=_0x3b51be||_0x166fa5['isContent'](_0x1f1f8c);const _0x3d9919=_0x566b05['mapper']['toViewElement'](_0x1f1f8c);if(_0x3d9919&&_0x3d9919['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x27bab6['type']&&(_0x166fa5['isBlock'](_0x1f1f8c)&&!_0x166fa5['isLimit'](_0x1f1f8c)&&(_0x1f1f8c['nextSibling']||_0x1331e5['isAtEnd']?_0x2bf024&&_0x2bf024['parent']==_0x1f1f8c||(_0x2bf024=_0x1f1f8c,_0x24c060(_0x27bab6['previousPosition']),_0x3370cc=!0x0):_0xb8378a=_0xb8378a||_0x27bab6['previousPosition']));}function _0x24c060(_0x28decd){const _0x478e0=_0x566b05['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bc2d7}),_0x255771=_0x566b05['mapper']['toViewPosition'](_0x28decd);_0x13b691['data']['isSuggestion']&&_0x566b05['writer']['addClass']('ck-suggestion-marker-'+_0x4bc2d7+'-new',_0x478e0),_0x5e5e0d['activeChange']==_0x13b691&&_0x566b05['writer']['addClass']('ck-suggestion-marker--active',_0x478e0),_0x566b05['writer']['insert'](_0x255771,_0x478e0),_0x566b05['mapper']['bindElementToMarker'](_0x478e0,_0xb6b6d['markerName']);}_0x3b51be||_0x3370cc||!_0xb8378a||_0x24c060(_0xb8378a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1f1ec1,_0x209d83,_0x686478)=>{const _0x41a6d8=_0x686478['mapper']['markerNameToElements'](_0x209d83['markerName']);if(_0x41a6d8){for(const _0x8a707f of _0x41a6d8)(_0x8a707f['hasClass']('ck-suggestion-marker-split')||_0x8a707f['hasClass']('ck-suggestion-marker-merge'))&&(_0x686478['mapper']['unbindElementFromMarkerName'](_0x8a707f,_0x209d83['markerName']),_0x686478['writer']['remove'](_0x8a707f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x327f42,_0x2cdcd4,_0x499641)=>{const _0x25ca49=_0x2cdcd4['markerName']['split'](':')[0x1],_0x18d1a0=this['_getChangeFromId'](_0x25ca49);if(!_0x18d1a0)return null;const _0x3d1f8c='add'==_0x18d1a0['type']?'split':'merge';if(_0x499641['consumable']['test'](_0x2cdcd4['markerRange'],_0x327f42['name']))for(const _0x5690ff of _0x2cdcd4['markerRange']['getItems']()){if(!_0x5690ff['is']('element','softBreak'))continue;const _0x176f21=_0x499641['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d1f8c}),_0x2ca8c2=_0x499641['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5690ff));_0x18d1a0['data']['isSuggestion']&&_0x499641['writer']['addClass']('ck-suggestion-marker-'+_0x3d1f8c+'-new',_0x176f21),this['activeChange']==_0x18d1a0&&_0x499641['writer']['addClass']('ck-suggestion-marker--active',_0x176f21),_0x499641['writer']['insert'](_0x2ca8c2,_0x176f21),_0x499641['mapper']['bindElementToMarker'](_0x176f21,_0x2cdcd4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x31edf1=>{for(const _0x563bee of this['editor']['model']['document']['getRootNames']()){const _0x36f209=this['editor']['model']['document']['getRoot'](_0x563bee),_0x5b8661=this['editor']['editing']['view']['document']['getRoot'](_0x563bee);if(_0x5b8661){const _0x211569=_0x36f209['getAttribute']('revisionHistoryAttachChange');if(_0x31edf1['removeAttribute']('data-change-id',_0x5b8661),_0x31edf1['removeClass']('ck-revision-history-root-add',_0x5b8661),_0x31edf1['removeClass']('ck-revision-history-root-remove',_0x5b8661),_0x31edf1['removeClass']('ck-revision-history-root--active',_0x5b8661),_0x211569){const _0x1b907d=this['_getChangeFromId'](_0x211569);if(!_0x1b907d)return null;_0x31edf1['setAttribute']('data-change-id',_0x211569,_0x5b8661),_0x31edf1['addClass']('ck-revision-history-root-'+_0x1b907d['type'],_0x5b8661),this['activeChange']==_0x1b907d&&_0x31edf1['addClass']('ck-revision-history-root--active',_0x5b8661);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4172d8=>'revision-comment:'+_0x4172d8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x34d575=>'revision-suggestion:'+_0x34d575,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1a1e1a=>({'name':'suggestion:'+_0x1a1e1a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5bca92=>{const _0x4ee63d=_0x5bca92['markerName']['split'](':')[0x1];return'insertion'!=_0x4ee63d&&'deletion'!=_0x4ee63d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4ee63d]};}}),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',(_0x28a32c,_0x51c9e3,_0x2b85aa)=>{const _0x37f7d0=_0x2b85aa['mapper']['markerNameToElements'](_0x51c9e3['markerName']);if(_0x37f7d0){for(const _0x14596 of _0x37f7d0)_0x14596['is']('uiElement')&&(_0x2b85aa['mapper']['unbindElementFromMarkerName'](_0x14596,_0x51c9e3['markerName']),_0x2b85aa['writer']['remove'](_0x14596));}},{'priority':'high'});}['_getChangeFromId'](_0x29a45f){return this['_changeIdToChange']['get'](_0x29a45f);}['_getViewForChange'](_0x189154){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x189154),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2fa3ac,_0xbb754e,_0x301d67,_0x2f757a)=>{_0x2f757a&&this['_balloon']['remove'](_0x2f757a),_0x301d67&&(this['_balloon']['add']({'view':_0x301d67,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x35e82b=this['editor']['editing'],_0x20910e=this['_getChangeFromId'](_0x301d67['changeId']);let _0x14a48f;if(_0x20910e['data']['isOnRoot']){const _0x249872=_0x35e82b['view']['getDomRoot'](_0x20910e['rootName']);_0x14a48f=Array['from'](_0x249872['getClientRects']());}else{const _0x113b70=this['editor']['model']['markers']['get']('revision:'+_0x301d67['changeId']);_0x14a48f=Array['from'](_0x35e82b['mapper']['markerNameToElements'](_0x113b70['name']))['map'](_0x18ba59=>_0x35e82b['view']['domConverter']['mapViewToDom'](_0x18ba59))['map'](_0x4ee363=>Array['from'](_0x4ee363['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x14a48f[0x0];return _0x14a48f['find'](_0x3d6d16=>_0x3d6d16['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d6d16['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d6d16['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d6d16['right']+0x3>=this['_activeViewTarget']['x'])||_0x14a48f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3924a7,_0x31687b,_0x2c6d93,_0x4da6f0)=>{this['activeView']=_0x2c6d93?this['_getViewForChange'](_0x2c6d93):null,this['editor']['model']['change'](()=>{const _0x35da64=this['editor']['editing'];_0x4da6f0&&(_0x4da6f0['data']['isOnRoot']?_0x35da64['view']['change'](_0xa2879a=>{_0xa2879a['removeClass']('ck-revision-history-root--active',_0x35da64['view']['document']['getRoot'](_0x4da6f0['rootName']));}):_0x35da64['reconvertMarker']('revision:'+_0x4da6f0['id'])),_0x2c6d93&&(_0x2c6d93['data']['isOnRoot']?_0x35da64['view']['change'](_0x395587=>{_0x395587['addClass']('ck-revision-history-root--active',_0x35da64['view']['document']['getRoot'](_0x2c6d93['rootName']));}):_0x35da64['reconvertMarker']('revision:'+_0x2c6d93['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x544557,_0x3f7620)=>{if(this['activeChange'])return;const _0x329ca4=this['_findChangeIdFromDomTarget'](_0x3f7620['target']),_0x5d3d1e=this['_changeIdToChange']['get'](_0x329ca4);_0x5d3d1e?(this['_activeViewTarget']={'x':_0x3f7620['domEvent']['x'],'y':_0x3f7620['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5d3d1e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4ffe0d,_0x414fca)=>{const _0x1f2d1b=this['_findChangeIdFromDomTarget'](_0x414fca['target']),_0xcf976c=this['_changeIdToChange']['get'](_0x1f2d1b);_0xcf976c?(this['_activeViewTarget']={'x':_0x414fca['domEvent']['x'],'y':_0x414fca['domEvent']['y']},_0xcf976c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xcf976c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x34b8b8){do{const _0x59bbb6=_0x34b8b8['getAttribute']('data-change-id');if(_0x59bbb6)return _0x59bbb6;_0x34b8b8=_0x34b8b8['parent'];}while(_0x34b8b8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2eb654=>{for(const _0x4cf40c of this['editor']['model']['markers'])_0x2eb654['removeMarker'](_0x4cf40c);});}}function X(_0x2e57a3,_0x16fcbf){return(_0x1b7f0a,_0x2ffebe,_0x58a482)=>{if(!_0x58a482['consumable']['test'](_0x2ffebe['markerRange'],_0x1b7f0a['name']))return;const _0x45a515=_0x2ffebe['markerRange']['getWalker'](),_0x341210=_0x2ffebe['markerRange']['start'],_0x5a483d=_0x2e57a3['model']['schema'];let _0xc46b89=null,_0x530f63=null,_0x1dface=!0x1,_0x13758d=!0x1;for(const _0x43f3a5 of _0x45a515){const _0x16a532=_0x43f3a5['item'];_0x1dface=_0x1dface||_0x5a483d['isContent'](_0x16a532);const _0x3a3fc3=_0x58a482['mapper']['toViewElement'](_0x16a532);if(_0x3a3fc3&&_0x3a3fc3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x43f3a5['type']&&(_0x5a483d['isBlock'](_0x16a532)&&!_0x5a483d['isLimit'](_0x16a532)&&(_0x16a532['nextSibling']||_0x341210['isAtEnd']?_0xc46b89&&_0xc46b89['parent']==_0x16a532||(_0xc46b89=_0x16a532,_0x151d3d(_0x43f3a5['previousPosition']),_0x13758d=!0x0):_0x530f63=_0x530f63||_0x43f3a5['previousPosition']));}function _0x151d3d(_0xfaa5ef){const _0x1956dc=_0x58a482['mapper']['toViewPosition'](_0xfaa5ef),_0x434f88=_0x58a482['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x16fcbf});_0x58a482['writer']['insert'](_0x1956dc,_0x434f88),_0x58a482['mapper']['bindElementToMarker'](_0x434f88,_0x2ffebe['markerName']);}_0x1dface||_0x13758d||!_0x530f63||_0x151d3d(_0x530f63);};}class wt extends _0x23e514{constructor(_0x5821e3){super(_0x5821e3);const _0x7cbe91=_0x5821e3['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x7cbe91,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x7cbe91,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x372427=this['editor'],_0x1bcdf5=_0x372427['plugins']['get'](m),_0x48c9ce=_0x1bcdf5['isReady']?_0x1bcdf5['diff']['newRevisionId']:null;_0x372427['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x48c9ce);}['refresh'](){const {isReady:_0x56bdb8,isEnabled:_0x31d3f3,repository:_0x26d860,diff:_0x45f2e}=this['editor']['plugins']['get'](m),_0x4abbff=_0x45f2e&&_0x26d860['getLaterVisibleRevision'](_0x45f2e['newRevisionId']);this['isEnabled']=_0x56bdb8&&_0x31d3f3&&Boolean(_0x4abbff);}}class pt extends _0x23e514{['_step'];constructor(_0x234f74,{direction:_0x4111e8}){super(_0x234f74);const _0x10e765=_0x234f74['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4111e8?0x1:-0x1,this['listenTo'](_0x10e765,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10e765,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10e765,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x124638=this['editor'],_0x437047=_0x124638['plugins']['get'](m),{isNavigationMode:_0x4ec6e4,currentChangeNumber:_0x136f54}=_0x437047;let _0x5bc919;if(_0x437047['activeChange']=_0x4ec6e4?_0x437047['diff']['changes']['get'](_0x136f54+this['_step']):_0x437047['diff']['changes']['first'],_0x437047['activeChange']['data']['isOnRoot'])_0x5bc919=_0x124638['editing']['view']['getDomRoot'](_0x437047['activeChange']['rootName']);else{const _0x4c28db=_0x124638['model']['markers']['get']('revision:'+_0x437047['activeChange']['id']);_0x5bc919=_0x225b7e(_0x124638['editing'],_0x4c28db);}_0x2606af({'target':_0x5bc919,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x42b5ec,currentChangeNumber:_0x45ec7c,numberOfChanges:_0x5f2da,isReady:_0x485d51,isEnabled:_0xed26ef}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xed26ef&&_0x485d51&&_0x5f2da)&&(!_0x42b5ec||(0x1===this['_step']?_0x45ec7c<_0x5f2da-0x1:_0x45ec7c>0x0));}}class li extends _0x18313a{constructor(_0x480b8e){super(_0x480b8e);const _0x25dae3=this['bindTemplate'],_0x3eb2eb=new _0x29dce1(_0x480b8e),_0x11d7f1=new _0x29dce1(_0x480b8e);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',(_0x5721a0,_0x579dbb)=>_0x5721a0&&_0x579dbb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xdb201c,_0x4a43f0,_0x160ef1,_0x4d87fd)=>{if(!_0xdb201c)return g(_0x480b8e,'Loading...');if(!_0x160ef1)return g(_0x480b8e,'No\x20changes');const _0x228e73=g(_0x480b8e,'NUMBER_OF_CHANGES',_0x160ef1);return _0x4d87fd?g(_0x480b8e,'X_OF_Y_CHANGES',[_0x4a43f0+0x1,_0x160ef1]):_0x228e73;}),_0x3eb2eb['set']({'label':g(_0x480b8e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5abbae}),_0x11d7f1['set']({'label':g(_0x480b8e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4ea29c}),_0x3eb2eb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x11d7f1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3eb2eb['on']('execute',()=>this['fire']('execute','backward')),_0x11d7f1['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',_0x25dae3['if']('_isStatusLabelVisible','ck-hidden',_0x2b9d1c=>!_0x2b9d1c)]},'children':[{'text':_0x25dae3['to']('isNavigationMode',_0x3fe85d=>_0x3fe85d?g(_0x480b8e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x480b8e,'Total')+':\x20')}]},{'text':_0x25dae3['to']('_statusText')}]},new _0x15eefc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3eb2eb,_0x11d7f1]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3ba875{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xaf2c17=this['editor']['editing']['view'];_0xaf2c17['change'](_0xb4a12a=>{for(const _0x13d5e3 of _0xaf2c17['document']['roots'])_0xb4a12a['addClass'](ce,_0x13d5e3);});}['hide'](){const _0x4af265=this['editor']['editing']['view'];_0x4af265['change'](_0x1c2dd7=>{for(const _0x1add9c of _0x4af265['document']['roots'])_0x1c2dd7['removeClass'](ce,_0x1add9c);});}}class R extends _0x3ba875{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x2bf5da=this['editor'],_0x4b3755=_0x2bf5da['plugins']['get'](m),_0x18ab14=_0x2bf5da['plugins']['get'](le);_0x2bf5da['ui']['componentFactory']['add']('exitToEditing',_0x16e0f9=>{const _0x4ac8ef=new _0x29dce1(_0x16e0f9);return _0x4ac8ef['set']({'label':g(_0x16e0f9,'Back\x20to\x20editing'),'icon':_0x55c272,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4ac8ef,'execute',()=>{_0x2bf5da['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4ac8ef;}),_0x2bf5da['ui']['componentFactory']['add']('restoreRevision',_0x21defb=>{const _0xa0dce9=new _0x29dce1(_0x21defb);return _0xa0dce9['set']({'label':g(_0x21defb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xa0dce9['bind']('isEnabled')['to'](_0x2bf5da['commands']['get']('restoreRevision')),this['listenTo'](_0xa0dce9,'execute',()=>_0x2bf5da['execute']('restoreRevision')),_0xa0dce9;}),_0x2bf5da['ui']['componentFactory']['add']('changesNavigation',_0x11f648=>{const _0x1ab322=new li(_0x11f648),_0x5622d7=_0x2bf5da['commands']['get']('showPreviousChange'),_0x3556e2=_0x2bf5da['commands']['get']('showNextChange');return _0x1ab322['bind']('isBackwardNavigationEnabled')['to'](_0x5622d7,'isEnabled'),_0x1ab322['bind']('isForwardNavigationEnabled')['to'](_0x3556e2,'isEnabled'),_0x1ab322['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4b3755),this['listenTo'](_0x1ab322,'execute',(_0x39ab6d,_0x3b9500)=>{_0x2bf5da['execute']('forward'===_0x3b9500?'showNextChange':'showPreviousChange');}),_0x1ab322;}),_0x18ab14['show'](),_0x4b3755['on']('change:isReady',(_0x2b7e97,_0x2bb898,_0x31d4a7)=>{_0x31d4a7?_0x18ab14['hide']():_0x18ab14['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x2dc23d,_0x3458fd){super(_0x2dc23d,_0x3458fd);const _0x471630=this['bindTemplate'];this['set']({'label':g(_0x2dc23d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2dc23d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x471630['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x266044=this['fieldView']['element'];this['_tooltipString']=_0x266044['scrollWidth']>_0x266044['clientWidth']&&_0x266044['value']||'';}}class oi extends _0x18313a{constructor(_0x4f92d6,_0x1ee551,_0x5b9bec){super(_0x4f92d6);const _0x1fa6fe=new _0x9e0bb7();_0x1fa6fe['set']({'content':_0x4379bb,'viewBox':'0\x200\x2011\x2010'});const _0x2e0ca9=['ck','ck-revision-history-sidebar__revision-author'];_0x5b9bec&&_0x2e0ca9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x200a64=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4f92d6,_0x5b9bec?'Revision\x20creator':'Revision\x20author')},'children':[_0x1fa6fe,_0x1ee551['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2e0ca9},'children':_0x200a64});}}function ni(_0x34dd1d,_0x2fc63f){const _0x2e8fae=_0x34dd1d['bindTemplate'],_0x360358=_0x34dd1d['locale'],_0x1af6ed=_0x3564c9(_0x360358);_0x1af6ed['panelPosition']='sw';const _0x1d6d46=function(_0x416dbd,_0x32bc65){const _0x11d590=function(_0xad8cf1,_0x3f4214){const _0x546b5e=_0xad8cf1['locale'],_0x2dcbff={'Compare\x20against\x20selected':g(_0x546b5e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x546b5e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x546b5e,'Restore\x20this\x20revision')};return _0x3f4214['map'](_0x301e29=>{const _0x425d84=_0x2dcbff[_0x301e29['name']];return _0x425d84&&_0x425d84!==_0x301e29['name']&&(_0x301e29['name']=_0x425d84),_0x301e29;});}(_0x416dbd,_0x32bc65),_0x351ddf=new _0x5495c4();for(const _0x2b9fb5 of _0x11d590){const _0x469760={'type':'button','model':new to({'label':_0x2b9fb5['name'],'class':_0x2b9fb5['class'],'withText':!0x0,'role':'menuitem','_action':_0x2b9fb5['action']})};_0x469760['model']['bind']('isEnabled')['to'](_0x416dbd,'isActionsDropdownOpen',_0x153870=>'function'!=typeof _0x2b9fb5['isEnabled']||(!_0x153870||_0x2b9fb5['isEnabled'](_0x416dbd))),_0x351ddf['add'](_0x469760);}return _0x351ddf;}(_0x34dd1d,_0x2fc63f);return _0x34dd1d['bind']('isActionsDropdownOpen')['to'](_0x1af6ed,'isOpen'),_0x1af6ed['buttonView']['set']({'label':g(_0x360358,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2cdf3c}),_0x1af6ed['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e8fae['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e8fae['to'](_0x455638=>_0x455638['stopPropagation']())}}),_0x1af6ed['on']('execute',_0x3b57fb=>{_0x34dd1d['isReady']&&'function'==typeof _0x3b57fb['source']['_action']&&_0x3b57fb['source']['_action'](_0x34dd1d);}),_0x294d83(_0x1af6ed,_0x1d6d46,{'role':'menu'}),_0x1af6ed['listenTo'](_0x34dd1d,'change:isActionsDropdownOpen',(_0x4de874,_0x23c409,_0x466874)=>{if(_0x466874)for(const _0x1eef7f of _0x1af6ed['listView']['items']){const _0x25e82b=_0x1eef7f['children']['first'],_0x58b679=_0x2fc63f['find'](_0x5f2bc9=>_0x5f2bc9['action']===_0x25e82b['_action'])['isVisible'];_0x1eef7f['isVisible']=void 0x0===_0x58b679||_0x58b679(_0x34dd1d);}}),_0x1af6ed;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1f1bf1(_0x18313a){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x29d823,_0x37c540,_0x2a671b,_0x5b0e06){super(_0x29d823);const _0x279b18=this['bindTemplate'],_0x444a4a=function(_0x40699b,_0x29698b){const _0x4bd527=Array['from'](_0x29698b['authors'])['filter'](_0x171a16=>_0x171a16!=_0x29698b['creator']);return _0x29698b['creator']&&_0x4bd527['unshift'](_0x29698b['creator']),_0x4bd527['map'](_0x48c321=>new oi(_0x40699b,_0x48c321,_0x48c321==_0x29698b['creator']));}(_0x29d823,_0x37c540);this['id']=_0x37c540['id'],this['_revision']=_0x37c540,this['_requireRevisionName']=_0x5b0e06,this['bind']('name','createdAt')['to'](_0x37c540),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53d179=>{return _0x49b837=_0x29d823['uiLanguage'],(_0x3125b1=_0x53d179)['toLocaleDateString'](_0x49b837,{'month':'long','day':'numeric'})+',\x20'+_0x3125b1['toLocaleTimeString'](_0x49b837,{'hour':'numeric','minute':'numeric'});var _0x49b837,_0x3125b1;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x29d823,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1d1c0e=>_0x1d1c0e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5989f7,_0x18f6f9)=>_0x5989f7&&_0x18f6f9),this['revisionActionsView']=_0x2a671b&&_0x2a671b['length']?ni(this,_0x2a671b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x279b18['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x279b18['if']('isEnabled','ck-disabled',_0x735598=>!_0x735598),_0x279b18['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x279b18['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x279b18['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':_0x279b18['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':_0x444a4a}]},this['revisionActionsView']],'on':{'click':_0x279b18['to'](_0x1e34bc=>{_0x1e34bc['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4d029d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4d029d,'change',()=>{this['_requireRevisionName']&&!_0x4d029d['value']||this['fire']('setName',{'id':this['id'],'name':_0x4d029d['value']}),_0x4d029d['value']||(_0x4d029d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x449721,_0x109eee){const _0x246f62=_0x16a5a3['fromJSDate'](_0x449721)['setLocale'](_0x109eee),_0x4633e8=_0x16a5a3['local'](),_0x7e88e5=_0x4633e8['minus']({'days':0x1})['startOf']('day');let _0x4c5bc2,_0xa833d5;return _0x246f62['hasSame'](_0x4633e8,'day')?(_0x4c5bc2=_0x246f62['startOf']('day')['toJSDate'](),_0xa833d5=_0x246f62['toRelativeCalendar']()):_0x246f62['hasSame'](_0x7e88e5,'day')?(_0x4c5bc2=_0x7e88e5['toJSDate'](),_0xa833d5=_0x246f62['toRelativeCalendar']()):_0x246f62['hasSame'](_0x4633e8,'week')?(_0x4c5bc2=_0x246f62['startOf']('week')['toJSDate'](),_0xa833d5=_0x246f62['weekdayLong']||''):_0x246f62['hasSame'](_0x4633e8,'year')?(_0x4c5bc2=_0x246f62['startOf']('month')['toJSDate'](),_0xa833d5=_0x246f62['monthLong']||''):(_0x4c5bc2=_0x246f62['startOf']('year')['toJSDate'](),_0xa833d5=String(_0x246f62['year'])),{'startDate':_0x4c5bc2,'localizedPeriodName':_0xa833d5};}class _i extends _0x18313a{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1f2d34,_0x8e805b,_0x3a9db9,_0x287b7b){super(_0x1f2d34);const _0x75892b=mi(_0x8e805b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x8e805b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3a9db9,this['_requireRevisionName']=_0x287b7b,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':_0x75892b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x498f1c){const _0x1bfe32=new ai(this['locale'],_0x498f1c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1bfe32);}['removeRevision'](_0x4beb9b){const _0x3f9d4b=this['revisionViews']['find'](_0x4eb9fc=>_0x4eb9fc['id']===_0x4beb9b['id']);this['revisionViews']['remove'](_0x3f9d4b);}}class as extends _0x18313a{constructor(_0x102f0f){super(_0x102f0f);const _0x520afc=new _0x9e0bb7();_0x520afc['content']=_0x209882,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x520afc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x102f0f,'Revision\x20history')]}]});}}class vi extends _0x18313a{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3dddbb,_0x546048,_0x3f4f00,_0x3ede37){super(_0x3dddbb);const _0x2c649a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x546048,this['_revisionActions']=_0x3f4f00,this['_requireRevisionName']=_0x3ede37,this['on']('select',(_0x44f336,_0x370601)=>{this['fire']('revisionSelected',_0x370601);}),this['on']('setName',(_0x24a0f1,_0x3c597f)=>{this['fire']('revisionSetName',_0x3c597f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3dddbb),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2c649a['if']('isEnabled','ck-disabled',_0x2ddad8=>!_0x2ddad8)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1e65ba of this['_revisions'])this['_addRevision'](_0x1e65ba);this['_revisions']['on']('add',(_0x2dcef3,_0x24373a)=>{this['_addRevision'](_0x24373a);}),this['_revisions']['on']('remove',(_0x3a88bd,_0x187245)=>{this['_removeRevision'](_0x187245);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1ee149=>_0x1ee149['revisionViews']['map'](_0x2c097b=>_0x2c097b))['flat']();}['selectRevision'](_0x1daa06){for(const _0x1adc43 of this['revisionViews'])_0x1daa06&&_0x1daa06['id']===_0x1adc43['id']?_0x1adc43['select']():_0x1adc43['deselect']();}['highlightRevisions'](_0x14bd08){for(const _0x11de00 of this['revisionViews'])_0x14bd08['some'](({id:_0x2077c2})=>_0x2077c2===_0x11de00['id'])?_0x11de00['highlight']():_0x11de00['unhighlight']();}['_addRevision'](_0x2bdd0a){const _0x4a78cf=mi(_0x2bdd0a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2c5209=this['timePeriodViews']['get'](0x0);_0x2c5209&&_0x2c5209['startDate']['getTime']()===_0x4a78cf['getTime']()||(_0x2c5209=new _i(this['locale'],_0x4a78cf,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2c5209)),_0x2c5209['addRevision'](_0x2bdd0a);}['_removeRevision'](_0x7cb352){const _0x1a2eb1=mi(_0x7cb352['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1a2eb1)['removeRevision'](_0x7cb352);}['_getTimePeriodViewByStartDate'](_0x4551e5){return this['timePeriodViews']['find'](_0x11e8fe=>_0x11e8fe['startDate']['getTime']()===_0x4551e5['getTime']());}}class d extends _0x3ba875{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x5ec405(_0x530b23){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5f270f,_0x2c175d){super(_0x2c175d),this['sourceElement']=_0x5f270f,this['model']['document']['createRoot']();const _0x11fb29=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x11fb29);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2d3545,_0x247c32){const _0x17464f=new this(_0x2d3545,_0x247c32);return await _0x17464f['initPlugins'](),await _0x17464f['ui']['init'](_0x2d3545),await _0x17464f['data']['init'](_0x17464f['config']['get']('initialData')||''),_0x17464f['fire']('ready'),_0x17464f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x4e9206{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x503b75){function _0x240f19(_0x777395){return _0x777395['map'](_0xf31135=>String['fromCharCode'](_0xf31135))['join']('');}super(_0x503b75),this['result']='end',_0x503b75[_0x240f19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x240f19([0x76,0x69,0x65,0x77])][_0x240f19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x240f19([0x61,0x75,0x74,0x6f]),_0x503b75[_0x240f19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x240f19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x240f19([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x240f19([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x240f19([0x6f,0x6b])});}}class k extends _0x4e9206{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x56cab4){if(super(_0x56cab4),!this['editor']['config']['get']('revisionHistory'))throw new _0x471058('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x42ca01=>this['_showRevisionViewer']({..._0x42ca01,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3dd18a=>this['_closeRevisionViewer'](_0x3dd18a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5e4693=>this['_restoreRevision'](_0x5e4693)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1bd1ee){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1bd1ee;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4d5231){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4d5231);}['getRevision'](_0x467094){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x467094);}['getRevisions'](_0x56c803){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x56c803||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xd7ac96=this['editor'],_0x453058=_0x52b846(_0xd7ac96,p),_0x3ae6d3=_0xd7ac96['plugins']['get']('RevisionTracker'),_0x251d16=_0xd7ac96['plugins']['get']('Users')['users'];return _0x453058['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x453058['lazyRoots'],(_0x453058['plugins']['push'](yt,m,R,class extends _0x4e9206{static get['requires'](){return[m,'Users'];}['init'](){const _0x1d8425=this['editor']['plugins']['get']('Users');for(const _0xa9a1bf of _0x251d16)_0xa9a1bf['isAnonymous']||_0x1d8425['getUser'](_0xa9a1bf['id'])||_0x1d8425['addUser'](_0xa9a1bf);const _0x14992b=_0x3ae6d3['repository']['getRevisions']();let _0x3cbb31=null;const _0x5eacf4=this['editor']['plugins']['get']('RevisionViewer');_0x5eacf4['adapter']=_0x3ae6d3['adapter'],_0x5eacf4['bind']('isEnabled')['to'](_0x3ae6d3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xd7ac96,'isReadOnly',_0x20ca99=>!_0x20ca99);for(const _0x11976c of _0x14992b){const _0x576a7a=null===_0x11976c['creator'];if(_0x576a7a&&_0x11976c['toVersion']===_0x11976c['fromVersion'])continue;const _0x1893d4=_0x11976c['toJSON']();_0x5eacf4['addRevisionData'](_0x1893d4,(_0x54fb65,_0x3ce213,_0x3f1919)=>{if(_0x576a7a){if(_0x3cbb31)_0x3cbb31['_update'](_0x54fb65,_0x3ce213);else{if(!_0x3ce213){const _0x56d4=_0x3f1919['toJSON']();_0x56d4['id']=_0x24ac73(),_0x3ae6d3['saveRevision'](_0x56d4,_0x3f1919['toVersion'])['then'](_0x3243=>{_0x3cbb31=_0x3243;});}}}else _0x11976c['_update'](_0x54fb65,_0x3ce213);});}}},d),_0x453058);}['_enhanceShowRevisionViewerCallback'](){const _0x117fc8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d8abc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x435b62=this['editor']['plugins']['get']('Autosave');await _0x435b62['save']();}else await _0x5d8abc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x449370=this['editor']['plugins']['get']('Dialog');_0x449370['isOpen']&&_0x449370['hide']();}const _0x4c454c=this['_getRevisionViewerEditorConfig']();return _0x117fc8(_0x4c454c)['then'](_0x3000f2=>{return(this['_viewerEditor']=_0x3000f2,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'),_0x3000f2);})['catch'](_0x53c1f7=>(console['error'](_0x53c1f7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4e7520=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'](),_0x4e7520(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x486b67=this['editor']['plugins']['get']('Annotations');_0x486b67['refreshVisibility'](),_0x486b67['refreshPositioning']();}})));}['_showRevisionViewer'](_0x423786){const _0x3ff422=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4606e2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1e8a97=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1e8a97,_0x423786)['then'](_0x2d95b3=>(_0x4606e2['style']['display']='block',_0x3ff422['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2d95b3));}['_closeRevisionViewer'](_0x2f23e1){const _0x1d26c7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1d26c7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2f23e1['destroy']();}async['_restoreRevision'](_0x26d076){const _0x11b8e8=this['editor'],_0x2b60e5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1d8407=_0x11b8e8['plugins']['get']('RevisionTracker'),_0x5a1107=_0x11b8e8['plugins']['get']('RevisionHistoryUtils'),_0x39ee02=_0x2b60e5['repository']['getRevision'](_0x26d076);let _0x958613,_0x1edd29,_0x416b4d;try{await _0x5a1107['loadRevisionData'](_0x39ee02,this['adapter']),_0x958613=_0x5a1107['getRevisionDocumentData'](_0x39ee02),_0x1edd29=_0x5a1107['getRevisionRootsAttributes'](_0x39ee02);}catch(_0xc01ebc){return void console['error'](_0xc01ebc);}_0x11b8e8['model']['change'](_0x481558=>{for(const _0x5a7ed9 of Array['from'](_0x11b8e8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x481558['removeMarker'](_0x5a7ed9);}),_0x2b60e5['isReady']=!0x1,_0x11b8e8['model']['enqueueChange'](_0x433d50=>{_0x433d50['setSelection'](null),_0x433d50['removeSelectionAttribute'](_0x11b8e8['model']['document']['selection']['getAttributeKeys']());const _0x2fa3e8=Object['keys'](_0x958613);for(const _0x40fce0 of _0x11b8e8['model']['document']['roots'])'$graveyard'!=_0x40fce0['rootName']&&_0x40fce0['isAttached']()&&!_0x2fa3e8['includes'](_0x40fce0['rootName'])&&_0x433d50['detachRoot'](_0x40fce0);for(const _0x109a9a of _0x2fa3e8){let _0xd2dafb=_0x11b8e8['model']['document']['getRoot'](_0x109a9a);_0xd2dafb&&_0xd2dafb['isAttached']()||(_0xd2dafb=_0x433d50['addRoot'](_0x109a9a));const _0x3cea66=_0x1edd29[_0x109a9a],_0x2c115f=Object['keys'](_0x3cea66),_0x2bc3a0=_0x958613[_0x109a9a];for(const _0x2cfd39 of _0xd2dafb['getAttributeKeys']())_0x2c115f['includes'](_0x2cfd39)||_0x433d50['removeAttribute'](_0x2cfd39,_0xd2dafb);for(const _0x563a40 of _0x2c115f)_0x433d50['setAttribute'](_0x563a40,_0x1edd29[_0x109a9a][_0x563a40],_0xd2dafb);_0x433d50['remove'](_0x433d50['createRangeIn'](_0xd2dafb)),_0x433d50['insert'](_0x11b8e8['data']['parse'](_0x2bc3a0,_0xd2dafb),_0xd2dafb,0x0);}});const _0x161763=g(_0x11b8e8['locale'],'Restored');if(_0x39ee02['name'])_0x416b4d=-0x1==_0x39ee02['name']['indexOf'](_0x161763)?_0x161763+':\x20'+_0x39ee02['name']:_0x39ee02['name'];else _0x416b4d=_0x161763+':\x20'+(_0x39ee02['createdAt']['toLocaleDateString'](_0x11b8e8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x39ee02['createdAt']['toLocaleTimeString'](_0x11b8e8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1d8407['saveRevision']({'name':_0x416b4d}),_0x2b60e5['isReady']=!0x0,_0x11b8e8['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,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x38f044){super(_0x38f044),this['_revisionViewer']=_0x38f044['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x125ba1=this['_revisionsRepository']['_revisions'],_0x3df4ad=this['_createRevisionActions'](),_0x3cd3f7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x125ba1,_0x3df4ad,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',(_0x452ce1,_0x59cc61)=>{_0x59cc61['revisionViews']['on']('add',(_0x4a65ba,_0xf400d5)=>{_0xf400d5['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)),_0x3cd3f7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1a2b81=this['_revisionsRepository']['getRevision'](0x0);if(_0x1a2b81){const _0xdf10a8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1a2b81['id']);this['_revisionViewer']['compare'](_0x1a2b81,_0xdf10a8);}}['_handleRevisionSelected'](_0x15c09f,_0x13b136){const _0x60dda8=this['_revisionsRepository']['getRevision'](_0x13b136['id']),_0x2aa374=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x60dda8['id']);this['_revisionViewer']['compare'](_0x60dda8,_0x2aa374);}['_handleRevisionSetName'](_0x2e0532,_0x2ce658){this['_revisionsRepository']['getRevision'](_0x2ce658['id'])['setName'](_0x2ce658['name']);}['_handleDiffChange'](_0x58d6a6,_0x346318,_0x39c737){const _0x128720=this['_revisionsRepository']['getRevisionsInDiff'](_0x39c737);_0x128720['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x128720),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x128720[0x0]));}['_createRevisionActions'](){const _0x2edd7d=this['editor'],_0x42bfa9=d['availableRevisionActions'],_0x55a577=_0x2edd7d['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x55a577['length'])return _0x55a577['map'](_0x3d3f09=>{const _0x57df4c='string'==typeof _0x3d3f09?Object['assign']({},_0x42bfa9[_0x3d3f09]):_0x3d3f09;return _0x57df4c['action']=_0x57df4c['action']['bind'](this,_0x2edd7d),_0x57df4c['isVisible']&&(_0x57df4c['isVisible']=_0x57df4c['isVisible']['bind'](this,_0x2edd7d)),_0x57df4c;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ea6ce},_0x221a8b)=>{const _0x5904f5=_0x5ea6ce['get'](m),_0x1d8664=_0x5904f5['repository'];let _0x586f8d=_0x5904f5['diff']['newRevisionId'],_0x3e3cfb=_0x221a8b['id'];_0x1d8664['getIndex'](_0x586f8d)>_0x1d8664['getIndex'](_0x3e3cfb)&&([_0x586f8d,_0x3e3cfb]=[_0x3e3cfb,_0x586f8d]),_0x5904f5['compare'](_0x586f8d,_0x3e3cfb);},'isVisible':({plugins:_0x42d988},_0x3d5069)=>{const _0xbfb2d5=_0x42d988['get'](m);return!(_0xbfb2d5['repository']['getRevisionsInDiff'](_0xbfb2d5['diff'])['length']>0x2)&&!_0x3d5069['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x190138,{id:_0x24dbfa})=>{_0x190138['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x24dbfa);},'isVisible':({plugins:_0x32bf52},_0x1ce2d0)=>!!_0x32bf52['get'](m)['repository']['getLaterVisibleRevision'](_0x1ce2d0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x39a588},{id:_0x22d3a6,revisionNameView:_0x2a4fc6})=>{const _0x247afb=_0x39a588['get'](m),_0x25692d=_0x247afb['repository']['getEarlierVisibleRevision'](_0x22d3a6);_0x247afb['compare'](_0x22d3a6,_0x25692d),_0x2a4fc6['focus'](),_0x2a4fc6['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5fe99a,_0x393d92){super(_0x5fe99a),this['_view']=_0x393d92,this['_toolbarConfig']=et(_0x5fe99a['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4224f3){const _0xa585f0=this['editor'],_0x5a3b84=this['view'],_0x5d51c1=_0xa585f0['editing']['view'],_0x5f0138=_0x5a3b84['editable'],_0x36ecfe=_0x5d51c1['document']['getRoot']();_0x5f0138['name']=_0x36ecfe['rootName'],_0x5a3b84['render']();const _0x5e6778=_0x5f0138['element'];this['setEditableElement'](_0x5f0138['name'],_0x5e6778),_0x5a3b84['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5d51c1['attachDomRoot'](_0x5e6778),this['_elementReplacer']['replace'](_0x4224f3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x358c59=this['view'],_0x28c36f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x28c36f['detachDomRoot'](_0x358c59['editable']['name']),_0x358c59['destroy']();}['_initToolbar'](){const _0x47f439=this['view'];_0x47f439['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x47f439['stickyPanel']['limiterElement']=_0x47f439['element'],_0x47f439['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x37bfb2})=>_0x37bfb2),_0x47f439['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x47f439['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1ebbff,_0x516912,_0x5cf9bf={}){super(_0x1ebbff),this['stickyPanel']=new ht(_0x1ebbff),this['toolbar']=new dt(_0x1ebbff,{'shouldGroupWhenFull':_0x5cf9bf['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1ebbff,_0x516912);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x40797a(_0x3664be){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x19f4a4,_0x1da438){super(_0x1da438),this['sourceElement']=_0x19f4a4,this['model']['document']['createRoot']();const _0x16c337=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x16c337);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x57f482,_0x3cd7e3){const _0x496d55=new this(_0x57f482,_0x3cd7e3);return await _0x496d55['initPlugins'](),await _0x496d55['ui']['init'](_0x57f482),await _0x496d55['data']['init'](_0x496d55['config']['get']('initialData')||''),_0x496d55['fire']('ready'),_0x496d55;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x3ba875{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b0cab){function _0x218d8c(_0x2b700f){return _0x2b700f['map'](_0x4d99c2=>String['fromCharCode'](_0x4d99c2))['join']('');}super(_0x5b0cab),this['result']='end',_0x5b0cab[_0x218d8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x218d8c([0x76,0x69,0x65,0x77])][_0x218d8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x218d8c([0x61,0x75,0x74,0x6f]),_0x5b0cab[_0x218d8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x218d8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x218d8c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x218d8c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x218d8c([0x6f,0x6b])});}}class k extends _0x3ba875{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5c3827){if(super(_0x5c3827),!this['editor']['config']['get']('revisionHistory'))throw new _0xdb6012('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5335d5=>this['_showRevisionViewer']({..._0x5335d5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2eb10e=>this['_closeRevisionViewer'](_0x2eb10e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x509e1f=>this['_restoreRevision'](_0x509e1f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x22ad10){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x22ad10;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2f1d24){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2f1d24);}['getRevision'](_0x66a1af){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x66a1af);}['getRevisions'](_0x53e0fb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x53e0fb||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x350870=this['editor'],_0x460c04=_0x22bf10(_0x350870,p),_0x94bd7b=_0x350870['plugins']['get']('RevisionTracker'),_0xa2fe98=_0x350870['plugins']['get']('Users')['users'];return _0x460c04['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x460c04['lazyRoots'],(_0x460c04['plugins']['push'](yt,m,R,class extends _0x3ba875{static get['requires'](){return[m,'Users'];}['init'](){const _0x252484=this['editor']['plugins']['get']('Users');for(const _0xb752e3 of _0xa2fe98)_0xb752e3['isAnonymous']||_0x252484['getUser'](_0xb752e3['id'])||_0x252484['addUser'](_0xb752e3);const _0x28bd8e=_0x94bd7b['repository']['getRevisions']();let _0x4c2298=null;const _0x26cc66=this['editor']['plugins']['get']('RevisionViewer');_0x26cc66['adapter']=_0x94bd7b['adapter'],_0x26cc66['bind']('isEnabled')['to'](_0x94bd7b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x350870,'isReadOnly',_0x36a4ad=>!_0x36a4ad);for(const _0x2a1214 of _0x28bd8e){const _0x138b99=null===_0x2a1214['creator'];if(_0x138b99&&_0x2a1214['toVersion']===_0x2a1214['fromVersion'])continue;const _0x1274ca=_0x2a1214['toJSON']();_0x26cc66['addRevisionData'](_0x1274ca,(_0x14e11f,_0x35169e,_0x2a2fc0)=>{if(_0x138b99){if(_0x4c2298)_0x4c2298['_update'](_0x14e11f,_0x35169e);else{if(!_0x35169e){const _0x38596f=_0x2a2fc0['toJSON']();_0x38596f['id']=_0x58b8ff(),_0x94bd7b['saveRevision'](_0x38596f,_0x2a2fc0['toVersion'])['then'](_0x1fd5be=>{_0x4c2298=_0x1fd5be;});}}}else _0x2a1214['_update'](_0x14e11f,_0x35169e);});}}},d),_0x460c04);}['_enhanceShowRevisionViewerCallback'](){const _0x26df62=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1421ab=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x30876b=this['editor']['plugins']['get']('Autosave');await _0x30876b['save']();}else await _0x1421ab['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x20aacc=this['editor']['plugins']['get']('Dialog');_0x20aacc['isOpen']&&_0x20aacc['hide']();}const _0x107280=this['_getRevisionViewerEditorConfig']();return _0x26df62(_0x107280)['then'](_0x5c1341=>{return(this['_viewerEditor']=_0x5c1341,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'),_0x5c1341);})['catch'](_0x5e5662=>(console['error'](_0x5e5662),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ca37c=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'](),_0x4ca37c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x53e591=this['editor']['plugins']['get']('Annotations');_0x53e591['refreshVisibility'](),_0x53e591['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3afc44){const _0x4774bb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3d6903=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xe346ee=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xe346ee,_0x3afc44)['then'](_0x1f32c6=>(_0x3d6903['style']['display']='block',_0x4774bb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1f32c6));}['_closeRevisionViewer'](_0x4fd397){const _0x5386c0=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5386c0['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4fd397['destroy']();}async['_restoreRevision'](_0x3fcc9d){const _0x4dd00d=this['editor'],_0x5b82e0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x6c1573=_0x4dd00d['plugins']['get']('RevisionTracker'),_0x15091a=_0x4dd00d['plugins']['get']('RevisionHistoryUtils'),_0x1d99bd=_0x5b82e0['repository']['getRevision'](_0x3fcc9d);let _0x3b0ca8,_0x435a4d,_0x1dbf76;try{await _0x15091a['loadRevisionData'](_0x1d99bd,this['adapter']),_0x3b0ca8=_0x15091a['getRevisionDocumentData'](_0x1d99bd),_0x435a4d=_0x15091a['getRevisionRootsAttributes'](_0x1d99bd);}catch(_0x464afd){return void console['error'](_0x464afd);}_0x4dd00d['model']['change'](_0x457c12=>{for(const _0x101c02 of Array['from'](_0x4dd00d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x457c12['removeMarker'](_0x101c02);}),_0x5b82e0['isReady']=!0x1,_0x4dd00d['model']['enqueueChange'](_0x2ab8c1=>{_0x2ab8c1['setSelection'](null),_0x2ab8c1['removeSelectionAttribute'](_0x4dd00d['model']['document']['selection']['getAttributeKeys']());const _0x2594b0=Object['keys'](_0x3b0ca8);for(const _0x1f455b of _0x4dd00d['model']['document']['roots'])'$graveyard'!=_0x1f455b['rootName']&&_0x1f455b['isAttached']()&&!_0x2594b0['includes'](_0x1f455b['rootName'])&&_0x2ab8c1['detachRoot'](_0x1f455b);for(const _0x395cd3 of _0x2594b0){let _0x4acc21=_0x4dd00d['model']['document']['getRoot'](_0x395cd3);_0x4acc21&&_0x4acc21['isAttached']()||(_0x4acc21=_0x2ab8c1['addRoot'](_0x395cd3));const _0x3c6e75=_0x435a4d[_0x395cd3],_0x84fe9b=Object['keys'](_0x3c6e75),_0x24bf1f=_0x3b0ca8[_0x395cd3];for(const _0x21aca2 of _0x4acc21['getAttributeKeys']())_0x84fe9b['includes'](_0x21aca2)||_0x2ab8c1['removeAttribute'](_0x21aca2,_0x4acc21);for(const _0x122080 of _0x84fe9b)_0x2ab8c1['setAttribute'](_0x122080,_0x435a4d[_0x395cd3][_0x122080],_0x4acc21);_0x2ab8c1['remove'](_0x2ab8c1['createRangeIn'](_0x4acc21)),_0x2ab8c1['insert'](_0x4dd00d['data']['parse'](_0x24bf1f,_0x4acc21),_0x4acc21,0x0);}});const _0x4aab98=g(_0x4dd00d['locale'],'Restored');if(_0x1d99bd['name'])_0x1dbf76=-0x1==_0x1d99bd['name']['indexOf'](_0x4aab98)?_0x4aab98+':\x20'+_0x1d99bd['name']:_0x1d99bd['name'];else _0x1dbf76=_0x4aab98+':\x20'+(_0x1d99bd['createdAt']['toLocaleDateString'](_0x4dd00d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1d99bd['createdAt']['toLocaleTimeString'](_0x4dd00d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x6c1573['saveRevision']({'name':_0x1dbf76}),_0x5b82e0['isReady']=!0x0,_0x4dd00d['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,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|