@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250504.0 → 0.0.0-nightly-20250506.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +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/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.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
|
-
_0x4f55d8(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52b410){super(),this['id']=_0x52b410['id']||_0x450571(),this['creator']=_0x52b410['creator']||null,this['authors']=_0x52b410['authors']||[],this['diffData']=_0x52b410['diffData']||null,this['toVersion']=_0x52b410['toVersion']||0x0,this['fromVersion']=_0x52b410['fromVersion']||0x0,this['set']('name',_0x52b410['name']||''),this['set']('createdAt',_0x52b410['createdAt']||new Date()),this['set']('attributes',_0x52b410['attributes']||{});}['setName'](_0x3f7cac){this['_update']({'name':_0x3f7cac});}['setAttribute'](_0x3c6afa,_0x194b90){const _0x3f32c2=_0x385a22(this['attributes']);_0x2e4b6a(_0x3f32c2,_0x3c6afa,_0x194b90),this['_update']({'attributes':_0x3f32c2});}['removeAttribute'](_0x43a114){const _0xc508ff=_0x385a22(this['attributes']);_0x28be5c(_0xc508ff,_0x43a114),this['_update']({'attributes':_0xc508ff});}['_update'](_0x4e5cd3,_0x50f2d4=!0x1){let _0x15d98b=!0x1;const _0x5502ce={'id':this['id']},_0x8db1d9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x307380 of _0x8db1d9){const _0x987f21=_0x4e5cd3[_0x307380];void 0x0!==_0x987f21&&_0x987f21!==this[_0x307380]&&(this[_0x307380]=_0x987f21,_0x5502ce[_0x307380]=_0x987f21,_0x15d98b=!0x0);}_0x15d98b&&(_0x5502ce['authors']&&(_0x5502ce['authorsIds']=_0x5502ce['authors']['map'](_0x465da1=>_0x465da1['id']),delete _0x5502ce['authors']),this['fire']('_update',_0x5502ce,_0x50f2d4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x11ff78=>_0x11ff78['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x425a55{['_revisions'];static get['requires'](){return[_0x5701d4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x92ebfa){super(_0x92ebfa),this['_revisions']=new _0x58d884();}['afterInit'](){!async function(_0x386bc5){const _0x935020=_0xfa34b([0x54,0x55,0x30,0x32,0x34,0x66,0x48,0x51,0x61,0x35,0x72,0x79,0x77,0x47,0x43,0x44,0x67,0x50,0x74,0x64,0x31,0x49,0x6a,0x57,0x4e,0x41,0x6e,0x38,0x65,0x37,0x52,0x68,0x4b,0x58,0x75,0x7a,0x53,0x5a,0x4a,0x46,0x63,0x6b,0x56,0x45,0x76,0x70,0x71,0x6f,0x73,0x59,0x62,0x4c,0x36,0x39,0x78,0x4d,0x42,0x6c,0x69,0x4f,0x33,0x6d]),_0x2d2f41=0xeb829,_0x7c55d7=0x4921d5f8,_0x3ae5f9=0x4926b318^_0x7c55d7,_0x10dcea=window[_0xfa34b([0x44,0x61,0x74,0x65])][_0xfa34b([0x6e,0x6f,0x77])](),_0x164b20=_0x386bc5[_0xfa34b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fc8e3=new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59eae1=>{_0x164b20[_0xfa34b([0x6f,0x6e,0x63,0x65])](_0xfa34b([0x72,0x65,0x61,0x64,0x79]),_0x59eae1);}),_0x4161e3={[_0xfa34b([0x6b,0x74,0x79])]:_0xfa34b([0x45,0x43]),[_0xfa34b([0x75,0x73,0x65])]:_0xfa34b([0x73,0x69,0x67]),[_0xfa34b([0x63,0x72,0x76])]:_0xfa34b([0x50,0x2d,0x32,0x35,0x36]),[_0xfa34b([0x78])]:_0xfa34b([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]),[_0xfa34b([0x79])]:_0xfa34b([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]),[_0xfa34b([0x61,0x6c,0x67])]:_0xfa34b([0x45,0x53,0x32,0x35,0x36])},_0x4b221b=_0x164b20[_0xfa34b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xfa34b([0x67,0x65,0x74])](_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x439cc9(){let _0x205db8,_0x38e832=null,_0x2f2076=null;try{if(_0x4b221b==_0xfa34b([0x47,0x50,0x4c]))return _0xfa34b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x205db8=_0x10a67d(),!_0x205db8)return _0xfa34b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x205db8[_0xfa34b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f2076=_0x3cc7b3(_0x205db8[_0xfa34b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x205db8[_0xfa34b([0x6a,0x74,0x69])])),await _0x232da9()?_0x1fbb59()?_0x6634b()?_0xfa34b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b79f6()?(_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfa34b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e832=_0x432351(_0xfa34b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfa34b([0x74,0x72,0x69,0x61,0x6c])&&(_0x38e832=_0x432351(_0xfa34b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58b233()):_0xfa34b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xfa34b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xfa34b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54c4c2){return _0xfa34b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6634b(){const _0x527ee3=[_0xfa34b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xfa34b([0x74,0x72,0x69,0x61,0x6c])][_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10dcea/0x3e8:0xe10*_0x3ae5f9;return _0x205db8[_0xfa34b([0x65,0x78,0x70])]<_0x527ee3;}function _0x1fbb59(){const _0xa503ef=_0x205db8[_0xfa34b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa503ef)return!0x1;if(_0xa503ef[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x2a])))return!0x0;if(_0xa503ef[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x52,0x48])))return!0x0;if(_0xa503ef[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x52,0x52,0x48]))){if(_0x3c00f1())return!0x0;if(_0x5a012e()||_0x5a6ba7())return!0x0;}return!0x1;}function _0x1b79f6(){const _0x589e72=_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x589e72||0x0==_0x589e72[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27d174}=new URL(window[_0xfa34b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x589e72[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d174))return!0x0;const _0x1e5498=_0x27d174[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e]));return _0x589e72[_0xfa34b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e2b09=>_0x5e2b09[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x2a])))[_0xfa34b([0x6d,0x61,0x70])](_0x55aa86=>_0x55aa86[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e])))[_0xfa34b([0x73,0x6f,0x6d,0x65])](_0x2c46b8=>_0x1e5498[_0xfa34b([0x65,0x76,0x65,0x72,0x79])]((_0x3fd029,_0x2bf3f2)=>_0x2c46b8[_0x2bf3f2]===_0x3fd029||_0x2c46b8[_0x2bf3f2]===_0xfa34b([0x2a])));}function _0x58b233(){return _0x38e832&&_0x2f2076?new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e5bd7,_0x33da8c)=>{_0x38e832[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x1e5bd7,_0x33da8c),_0x2f2076[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x48435e=>{_0x48435e!=_0xfa34b([0x56,0x61,0x6c,0x69,0x64])&&_0x1e5bd7(_0x48435e);},_0x33da8c);}):_0x38e832||_0x2f2076||_0xfa34b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cc7b3(_0x479c78,_0x5a213a){return new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20489a=>{if(_0x21cba4())return _0x20489a(_0xfa34b([0x56,0x61,0x6c,0x69,0x64]));_0x491f04(),_0x164b20[_0xfa34b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xfa34b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ce2d1=!0x1;const _0x1fc9d8=_0x450571();function _0x52009b(_0x2e7de8){return!!_0x2e7de8&&(typeof _0x2e7de8===_0xfa34b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e7de8===_0xfa34b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e7de8[_0xfa34b([0x74,0x68,0x65,0x6e])]===_0xfa34b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e7de8[_0xfa34b([0x63,0x61,0x74,0x63,0x68])]===_0xfa34b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2774c0(_0x3eb28b){_0x4c8fda(_0x3eb28b)[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x4cfac7=>{if(!_0x4cfac7||_0x4cfac7[_0xfa34b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xfa34b([0x6f,0x6b]))return _0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xeef1eb(_0x216d8e(_0x1fc9d8+_0x5a213a))!=_0x4cfac7[_0xfa34b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xfa34b([0x56,0x61,0x6c,0x69,0x64]);})[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x5c04ed=>(_0x2120aa(),_0x5c04ed),()=>{const _0x5b4d48=_0x4ff644();return null==_0x5b4d48?(_0x2120aa(),_0xfa34b([0x56,0x61,0x6c,0x69,0x64])):_0xfa34b(_0x10dcea-_0x5b4d48>(0x6d2d51f8^_0x7c55d7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x20489a)[_0xfa34b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20489a(_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x474019=0x49173b78^_0x7c55d7;function _0x2120aa(){const _0x46519c=_0xfa34b([0x6c,0x6c,0x63,0x74,0x2d])+_0xeef1eb(_0x216d8e(_0x479c78)),_0x400ea4=_0x195f0f(_0xeef1eb(window[_0xfa34b([0x4d,0x61,0x74,0x68])][_0xfa34b([0x63,0x65,0x69,0x6c])](_0x10dcea/_0x474019)));window[_0xfa34b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfa34b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46519c,_0x400ea4);}function _0x4ff644(){const _0x59ef5d=_0xfa34b([0x6c,0x6c,0x63,0x74,0x2d])+_0xeef1eb(_0x216d8e(_0x479c78)),_0x35f366=window[_0xfa34b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfa34b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59ef5d);return _0x35f366?window[_0xfa34b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x195f0f(_0x35f366),0x10)*_0x474019:null;}function _0x4c8fda(_0x2c804e){return new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x588e35,_0x5ac74d)=>{_0x2c804e[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x588e35,_0x5ac74d),window[_0xfa34b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ac74d,0x49200138^_0x7c55d7);});}}_0x164b20[_0xfa34b([0x6f,0x6e])](_0xfa34b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47e12a,_0x31e5b8)=>{if(_0x31e5b8[0x0]!=_0x479c78)return _0x20489a(_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31e5b8[0x1]={..._0x31e5b8[0x1],[_0xfa34b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fc9d8};},{[_0xfa34b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfa34b([0x68,0x69,0x67,0x68])}),_0x164b20[_0xfa34b([0x6f,0x6e])](_0xfa34b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x461378=>{_0x52009b(_0x461378[_0xfa34b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ce2d1=!0x0,_0x2774c0(_0x461378[_0xfa34b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xfa34b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfa34b([0x6c,0x6f,0x77])}),_0x1fc8e3[_0xfa34b([0x74,0x68,0x65,0x6e])](()=>{_0x2ce2d1||_0x20489a(_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21cba4(){return _0x164b20[_0xfa34b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfa34b([0x76,0x69,0x65,0x77])][_0xfa34b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xfa34b([0x61,0x75,0x74,0x6f]);}function _0x491f04(){_0x164b20[_0xfa34b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfa34b([0x76,0x69,0x65,0x77])][_0xfa34b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xfa34b([0x61,0x75,0x74,0x6f]);}}function _0x432351(_0x399fdf){const _0x4fcb26=[new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dcbef=>setTimeout(_0x5dcbef,0x4928eb34^_0x7c55d7)),_0x1fc8e3[_0xfa34b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9264=>{const _0x1aff88=0x4921d5ff^_0x7c55d7,_0x6277a3=_0x386bc5[_0xfa34b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x459394(){_0x6277a3[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1aff88&&_0x3a9264();}_0x459394(),_0x6277a3[_0xfa34b([0x6f,0x6e])](_0xfa34b([0x61,0x64,0x64]),_0x459394);})),new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x81d3b0=>{function _0x844ed5(){for(const _0x333d2d in window)if(window[_0xfa34b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xfa34b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x333d2d))&&window[_0x333d2d]==_0x2d2f41)return _0x81d3b0();_0x164b20[_0xfa34b([0x73,0x74,0x61,0x74,0x65])]!=_0xfa34b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xfa34b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x844ed5,0x4921c670^_0x7c55d7);}_0x1d6b36(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x844ed5();})];return window[_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xfa34b([0x72,0x61,0x63,0x65])](_0x4fcb26)[_0xfa34b([0x74,0x68,0x65,0x6e])](()=>_0x399fdf);}async function _0x15a631(){if(await _0x1fc8e3,_0x1d6b36(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xd27984=_0x386bc5[_0xfa34b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x167b43=_0x386bc5[_0xfa34b([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])](_0xd27984[_0xfa34b([0x69,0x64])]),_0x48447c=_0x1f7928(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x48447c[_0xfa34b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xd27984['id'],_0x167b43?_0x167b43['id']:null,!0x0),_0x48447c[_0xfa34b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x48447c[_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x48447c[_0xfa34b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1fc58,void(_0x48447c[_0xfa34b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1fc58);}if(_0x1d6b36(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5e22a7=_0x1f7928(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5e22a7[_0xfa34b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e22a7[_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e22a7[_0xfa34b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1fc58,_0x5e22a7[_0xfa34b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1fc58;}_0x164b20[_0xfa34b([0x6d,0x6f,0x64,0x65,0x6c])][_0xfa34b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fc58,_0x164b20[_0xfa34b([0x6d,0x6f,0x64,0x65,0x6c])][_0xfa34b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fc58,_0x164b20[_0xfa34b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xfa34b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c00f1(){return _0x1d6b36(_0xfa34b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f7928(_0xfa34b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xfa34b([0x73,0x74,0x61,0x74,0x65])]==_0xfa34b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a012e(){return _0x1d6b36(_0xfa34b([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 _0x5a6ba7(){return _0x1d6b36(_0xfa34b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3d4a0a(_0x343d20){const _0x603c44=_0xf8e3c6();_0x164b20[_0x603c44]=_0xfa34b([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])+_0x343d20,_0x343d20[_0xfa34b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xfa34b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf8e3c6()]=_0x2d2f41),_0x343d20!=_0xfa34b([0x56,0x61,0x6c,0x69,0x64])&&_0x15a631();}function _0xf8e3c6(){const _0x30e71b=window[_0xfa34b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xfa34b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xfa34b([0x6e,0x6f,0x77])]())[_0xfa34b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xfa34b([0x2e]),'');let _0x79b89a=_0xfa34b([0x54]);for(let _0x102e9c=0x0;_0x102e9c<_0x30e71b[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x102e9c+=0x2){let _0x54aa3d=window[_0xfa34b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e71b[_0xfa34b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x102e9c,_0x102e9c+0x2));_0x54aa3d>=_0x935020[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54aa3d-=_0x935020[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x79b89a+=_0x935020[_0x54aa3d];}return _0x79b89a;}function _0x10a67d(){const _0x21f489=_0x4b221b[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e]));if(0x3!=_0x21f489[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a5c0e(_0x21f489[0x1]);function _0x2a5c0e(_0x47e21e){const _0x54c9c7=_0x1e4013(_0x47e21e);return _0x54c9c7&&_0xe73d7c()?_0x54c9c7:null;function _0xe73d7c(){const _0xdb1468=_0x54c9c7[_0xfa34b([0x6a,0x74,0x69])],_0x349508=window[_0xfa34b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdb1468[_0xfa34b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdb1468[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ff21a={..._0x54c9c7,[_0xfa34b([0x6a,0x74,0x69])]:_0xdb1468[_0xfa34b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xdb1468[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ff21a[_0xfa34b([0x76,0x63])],_0x216d8e(_0x2ff21a)==_0x349508;}}}async function _0x232da9(){let _0x5f17dd=!0x0;try{const _0x34cf86=_0x4b221b[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e])),[_0x51d744,_0x252f45,_0x445cd0]=_0x34cf86;return _0x187355(_0x51d744),await _0x4f100d(_0x51d744,_0x252f45,_0x445cd0),_0x5f17dd;}catch(_0x4622ed){return!0x1;}function _0x187355(_0x4bcfb8){const _0x348962=_0x1e4013(_0x4bcfb8);_0x348962&&_0x348962[_0xfa34b([0x61,0x6c,0x67])]==_0xfa34b([0x45,0x53,0x32,0x35,0x36])||(_0x5f17dd=!0x1);}async function _0x4f100d(_0x124b32,_0x59dc22,_0x3d35bc){const _0x2f1787=window[_0xfa34b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xfa34b([0x66,0x72,0x6f,0x6d])](_0x51b3a6(_0x3d35bc),_0x12674b=>_0x12674b[_0xfa34b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x170612=new window[(_0xfa34b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xfa34b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x124b32+_0xfa34b([0x2e])+_0x59dc22),_0x1ba2dc=window[_0xfa34b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xfa34b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ba2dc)return;const _0x6896ee=await _0x1ba2dc[_0xfa34b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xfa34b([0x6a,0x77,0x6b]),_0x4161e3,{[_0xfa34b([0x6e,0x61,0x6d,0x65])]:_0xfa34b([0x45,0x43,0x44,0x53,0x41]),[_0xfa34b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xfa34b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xfa34b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ba2dc[_0xfa34b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xfa34b([0x6e,0x61,0x6d,0x65])]:_0xfa34b([0x45,0x43,0x44,0x53,0x41]),[_0xfa34b([0x68,0x61,0x73,0x68])]:{[_0xfa34b([0x6e,0x61,0x6d,0x65])]:_0xfa34b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6896ee,_0x2f1787,_0x170612)||(_0x5f17dd=!0x1);}}function _0x1e4013(_0x18bb15){return _0x18bb15[_0xfa34b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xfa34b([0x65,0x79]))?JSON[_0xfa34b([0x70,0x61,0x72,0x73,0x65])](_0x51b3a6(_0x18bb15)):null;}function _0x51b3a6(_0x3ec5cf){return window[_0xfa34b([0x61,0x74,0x6f,0x62])](_0x3ec5cf[_0xfa34b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xfa34b([0x2b]))[_0xfa34b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xfa34b([0x2f])));}function _0x216d8e(_0x5de421){let _0x304c61=0x1505;function _0x4358e0(_0x37739c){for(let _0x3874c6=0x0;_0x3874c6<_0x37739c[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3874c6++){const _0x3d2944=_0x37739c[_0xfa34b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3874c6);_0x304c61=(_0x304c61<<0x5)+_0x304c61+_0x3d2944,_0x304c61&=_0x304c61;}}function _0x265898(_0x21d695){Array[_0xfa34b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21d695)?_0x21d695[_0xfa34b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x265898):_0x21d695&&typeof _0x21d695==_0xfa34b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xfa34b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21d695)[_0xfa34b([0x73,0x6f,0x72,0x74])]()[_0xfa34b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d67e9,_0x26a970])=>{_0x4358e0(_0x4d67e9),_0x265898(_0x26a970);}):_0x4358e0(window[_0xfa34b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21d695));}return _0x265898(_0x5de421),_0x304c61>>>0x0;}function _0xeef1eb(_0xe9b749){return _0xe9b749[_0xfa34b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xfa34b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xfa34b([0x30]));}function _0x195f0f(_0x3d5583){return _0x3d5583[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xfa34b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xfa34b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d6b36(_0x16f072){return _0x164b20[_0xfa34b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfa34b([0x68,0x61,0x73])](_0x16f072);}function _0x1f7928(_0x248a35){return _0x164b20[_0xfa34b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfa34b([0x67,0x65,0x74])](_0x248a35);}function _0x1fc58(){}function _0xfa34b(_0x529b3e){return _0x529b3e['map'](_0x5ebcda=>String['fromCharCode'](_0x5ebcda))['join']('');}_0x3d4a0a(await _0x439cc9());}(this);}['createRevision'](_0x55437f){const _0x4ab138=this['editor']['plugins']['get']('Users');return new h({'id':_0x55437f['id'],'name':_0x55437f['name'],'creator':_0x55437f['creatorId']?_0x4ab138['getUser'](_0x55437f['creatorId']):null,'diffData':_0x55437f['diffData']||_0x55437f['data'],'authors':_0x55437f['authorsIds']['map'](_0xff606e=>_0x4ab138['getUser'](_0xff606e)),'createdAt':new Date(_0x55437f['createdAt']),'attributes':_0x55437f['attributes'],'fromVersion':_0x55437f['fromVersion'],'toVersion':_0x55437f['toVersion']});}['addRevision'](_0x425703,_0xdbec82=0x0){this['_revisions']['add'](_0x425703,_0xdbec82);}['getRevision'](_0xa93fb2){return this['_revisions']['get'](_0xa93fb2);}['getRevisions'](_0xd6fcff={'toJSON':!0x1}){const _0x1deca8=Array['from'](this['_revisions']);return _0x1deca8['reverse'](),_0xd6fcff['toJSON']?_0x1deca8['map'](_0x4623d9=>_0x4623d9['toJSON']()):_0x1deca8;}['getIndex'](_0x282eb3){return this['_revisions']['getIndex'](_0x282eb3);}['getEarlierVisibleRevision'](_0x3fb908){const [,_0x26a414]=this['getRevisionsIterator'](_0x3fb908,{'direction':'earlier'});return _0x26a414;}['getLaterVisibleRevision'](_0x557200){const [,_0x3a99a9]=this['getRevisionsIterator'](_0x557200,{'direction':'later'});return _0x3a99a9;}['getRevisionsInDiff'](_0x3bc768){const _0x365fa5=[];for(const _0x3ae574 of this['getRevisionsIterator'](_0x3bc768['newRevisionId']))if(_0x365fa5['push'](_0x3ae574),_0x3ae574['id']===_0x3bc768['oldRevisionId'])break;return _0x365fa5;}*['getRevisionsIterator'](_0x12216a,{direction:_0x1cf095='earlier',filter:_0x6f1932=()=>!0x0}={}){const _0x5df7c1='earlier'===_0x1cf095?0x1:-0x1;let _0x2745c1=this['_revisions']['get'](_0x12216a),_0x3181aa=this['getIndex'](_0x2745c1);for(yield _0x2745c1;_0x2745c1;){if(_0x3181aa+=_0x5df7c1,_0x2745c1=this['getRevision'](_0x3181aa),!_0x2745c1)return;_0x6f1932(_0x2745c1)&&(yield _0x2745c1);}}}class V extends _0x425a55{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4f8a2e,'c'],[_0x124e09,'a'],[_0x415bf5,'e'],[_0x3ada0a,'r'],[_0x1fe111,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4f8a2e],['a',_0x124e09],['e',_0x415bf5],['r',_0x3ada0a],['u',_0x1fe111]]);async['loadRevisionData'](_0x30a12a,_0x31f5a7){if(_0x30a12a['diffData']||!_0x31f5a7)return;const _0x5cd82f=this['editor']['config']['get']('collaboration.channelId'),_0x19dde5=await _0x31f5a7['getRevision']({'channelId':_0x5cd82f,'revisionId':_0x30a12a['id']});_0x30a12a['diffData']=_0x19dde5['diffData'];}['getRevisionDocumentData'](_0x57ef61){const _0x2aedd8={};for(const _0x3157a2 in _0x57ef61['diffData']){if(_0x57ef61['diffData'][_0x3157a2]['attachChange']&&!_0x57ef61['diffData'][_0x3157a2]['attachChange']['isAttached'])continue;const _0x3b5635=this['_removeRevisionMarkers'](JSON['parse'](_0x57ef61['diffData'][_0x3157a2]['insertions'])),_0x3a143f=this['editor']['editing']['view']['document'],_0x5a4126=new _0x5e4916(_0x3a143f,_0x3b5635['map'](_0x387c20=>this['_getViewFromDiffObj'](_0x387c20,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2aedd8[_0x3157a2]=this['editor']['data']['processor']['toData'](_0x5a4126),this['editor']['data']['processor']['useFillerType']('default');}return _0x2aedd8;}['getRevisionRootsAttributes'](_0x56c655){const _0x148981={};for(const _0x2e30ca in _0x56c655['diffData'])_0x56c655['diffData'][_0x2e30ca]['attachChange']&&!_0x56c655['diffData'][_0x2e30ca]['attachChange']['isAttached']||(_0x148981[_0x2e30ca]=_0x56c655['diffData'][_0x2e30ca]['attributesAfter']||{});return _0x148981;}['_getTypeCharForViewElement'](_0x5d3fb0){return this['_viewClassToTypeChar']['get'](_0x5d3fb0['constructor']);}['_getViewFromDiffObj'](_0x2ef952,_0x4b3b64){const _0xa71fb7=this['editor']['editing']['view']['document'];if('string'==typeof _0x2ef952)return new _0x20f639(_0xa71fb7,_0x2ef952);{let _0x2b0506,_0x138610;_0x138610='u'==_0x2ef952['type']||'r'==_0x2ef952['type']?[]:_0x2ef952['children']['map'](_0x2d46cd=>this['_getViewFromDiffObj'](_0x2d46cd,_0x4b3b64));const _0x536be6=this['_typeCharToViewClass']['get'](_0x2ef952['type'])||_0x55adab,_0x524b62=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2b0506=new _0x536be6(_0xa71fb7,_0x2ef952['name'],_0x2ef952['attributes'],_0x138610),'u'==_0x2ef952['type']&&_0x2ef952['children'][0x0]){const _0x38d986=_0x2ef952['children'][0x0];if(_0x2b0506['render']=function(_0x519352){const _0x421b86=_0x519352['createElement']('div');return _0x421b86['innerHTML']=_0x38d986,_0x421b86['childNodes'][0x0];},_0x4b3b64){const _0x1c3738=new _0x5e4916(_0xa71fb7);_0x1c3738['_appendChild'](_0x2b0506);const _0x1733ca=Array['from'](_0x524b62['viewChildrenToDom'](_0x1c3738,{'bind':!0x1})),_0x294fef=_0x524b62['domDocument']['createElement']('div');_0x294fef['append'](..._0x1733ca),_0x2b0506=Array['from'](_0x524b62['domChildrenToView'](_0x294fef))[0x0];}}else{if('r'==_0x2ef952['type']&&_0x2ef952['children'][0x0]){const _0x58dae5=_0x2ef952['children'][0x0];if(_0x2b0506['render']=function(_0x511c54){_0x511c54['innerHTML']=_0x58dae5;},_0x4b3b64){const _0x4c4b4b=new _0x5e4916(_0xa71fb7);_0x4c4b4b['_appendChild'](_0x2b0506);const _0x59f48a=Array['from'](_0x524b62['viewChildrenToDom'](_0x4c4b4b,{'bind':!0x1})),_0x2bcfc0=_0x524b62['domDocument']['createElement']('div');_0x2bcfc0['append'](..._0x59f48a);const _0x489f83=Array['from'](_0x524b62['domChildrenToView'](_0x2bcfc0));_0x489f83['length']>0x1?_0x2b0506['_appendChild'](_0x489f83):_0x2b0506=_0x489f83[0x0];}}}if(_0x2ef952['customProperties']){for(const [_0x3d2219,_0x3b03aa]of _0x2ef952['customProperties'])_0x2b0506['_setCustomProperty'](_0x3d2219,_0x3b03aa);}const _0x13c77d=void 0x0===_0x2ef952['fillerOffset']?null:_0x2ef952['fillerOffset'];return null!==_0x13c77d&&(_0x2b0506['getFillerOffset']=()=>_0x13c77d),_0x2b0506;}}['_makeModelFromViewString'](_0x4d76a9){const _0xe01218=JSON['parse'](_0x4d76a9),_0x21f8fb=this['editor']['editing']['view']['document'],_0x41d49d=new _0x5e4916(_0x21f8fb,_0xe01218['map'](_0x1fb520=>this['_getViewFromDiffObj'](_0x1fb520,!0x0)));return this['editor']['data']['toModel'](_0x41d49d);}['_removeRevisionMarkers'](_0x188966){return(_0x188966=_0x188966['filter'](_0x48c061=>!_0x48c061['name']||'revision-start'!==_0x48c061['name']&&'revision-end'!==_0x48c061['name']))['forEach'](_0x12ddfd=>{'string'!=typeof _0x12ddfd&&(_0x12ddfd['children']=this['_removeRevisionMarkers'](_0x12ddfd['children']),_0x12ddfd['attributes']=_0x12ddfd['attributes']['filter'](_0x2d3ce9=>!_0x2d3ce9[0x0]['startsWith']('data-revision-')));}),_0x188966;}}function g(_0x5d270c,_0x2bb735,_0x50c4de){const t=_0x5d270c['t'];switch(_0x2bb735){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'},_0x50c4de);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x50c4de);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 _0x425a55{['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[_0x5701d4,I,V,_0x526cfd];}constructor(_0x26d491){super(_0x26d491),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 _0x381c9c=_0x450571();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x381c9c},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 _0x75944c=this['repository']['getRevision'](0x0),_0x5b3e15=_0x75944c&&null===_0x75944c['creator']?_0x75944c:null;if(this['_continueCurrentRevision']=!!_0x5b3e15&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1abb53=this['_source']['getCurrentRevisionId'](),_0x1179fe=this['repository']['getRevision'](_0x1abb53);if(_0x1179fe)this['_startingVersion']=_0x1179fe['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5d2c96=this['_source']['history']['_operations']['find'](_0xbd229e=>!_0xbd229e['_isInit']),_0x40a94f=_0x5d2c96?_0x5d2c96['baseVersion']:this['_source']['history']['version'];_0x75944c?(_0x75944c['toVersion']<_0x40a94f&&_0x75944c['_update']({'toVersion':_0x40a94f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5b3e15['id'],this['_startingVersion']=_0x5b3e15['fromVersion']):(this['_startingVersion']=_0x75944c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x40a94f,this['_continueCurrentRevision']=!0x1);}}else _0x5b3e15&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5b3e15['toVersion'],this['editor']['model']['document']['history']['version']),_0x5b3e15['fromVersion']===_0x5b3e15['toVersion']?(0x0!==_0x5b3e15['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b3e15['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b3e15['id'],this['_startingVersion']=_0x5b3e15['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',_0x58aeff=>!_0x58aeff),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x279a64=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ac97c;for(const _0x1b3819 in _0x279a64){const _0x34c37a=_0x1b3819,_0x4848c9=_0x279a64[_0x34c37a];if('revisionHistoryLicenseKeyValid'==_0x4848c9||'revisionHistoryLicenseKeyInvalid'==_0x4848c9||'revisionHistoryLicenseKeyExpired'==_0x4848c9||'revisionHistoryLicenseKeyDomainLimit'==_0x4848c9||'revisionHistoryLicenseKeyNotAllowed'==_0x4848c9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4848c9||'revisionHistoryLicenseKeyTrialLimit'==_0x4848c9||'revisionHistoryLicenseKeyUsageLimit'==_0x4848c9){delete _0x279a64[_0x34c37a],_0x1ac97c=_0x4848c9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1ac97c&&_0x279a64['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1ac97c&&_0x279a64['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1ac97c&&_0x279a64['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x50a3fc=this['repository']['getRevision'](0x0),_0x238dc6=await this['getRevisionDocumentData'](_0x50a3fc),_0x336fee=await this['getRevisionRootsAttributes'](_0x50a3fc);this['_replaceEditorDataWithRevisionData'](_0x238dc6,_0x336fee);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5c8dc5){this['_source']=_0x5c8dc5;}async['update'](){const _0xecb04b=await this['_source']['getLatestVersion']();if(_0xecb04b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5c9cc0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xecb04b});_0x5c9cc0['authors']=_0x5c9cc0['authorsIds']['map'](_0x96b72=>this['editor']['plugins']['get']('Users')['getUser'](_0x96b72)),this['currentRevision']['_update'](_0x5c9cc0);}}async['saveRevision'](_0x30a6b5={},_0x49cd9c=null){const _0xaaa8c6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x49cd9c>this['currentRevision']['toVersion']&&(_0x49cd9c=null),null===_0x49cd9c&&(_0x49cd9c=await this['_source']['getLatestVersion']());const _0x300cfc=this['_getFromVersion'](_0x49cd9c),_0x3a03ad=this['buildRevisionData']({'from':_0x300cfc,'to':_0x49cd9c});if(this['currentRevision']['toVersion']<_0x49cd9c){const _0x3364fe=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x49cd9c,'to':_0x49cd9c});_0x3364fe['authors']=[],_0x3364fe['authorsIds']=[],_0x3364fe['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3364fe,!0x0),delete _0x3364fe['authors'],_0xaaa8c6['push'](_0x3364fe);}_0x30a6b5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30a6b5['name']=_0x30a6b5['name']||null,_0x30a6b5['id']=_0x30a6b5['id']||_0x450571(),_0x30a6b5={..._0x30a6b5,..._0x3a03ad};const _0x2064dd=this['addRevisionData'](_0x30a6b5);_0xaaa8c6['push'](_0x30a6b5);const _0x2fc72c=this['repository']['getIndex'](_0x2064dd);if(0x0!==_0x2fc72c){const _0x3e5cc4=this['repository']['getRevision'](_0x2fc72c-0x1);if(_0x3e5cc4['fromVersion']!==_0x49cd9c){const _0x1d6129=this['_revisionDataBuilder']['getData'](_0x49cd9c,_0x3e5cc4['toVersion']),_0x155b5d={'id':_0x3e5cc4['id'],'diffData':_0x1d6129['diffData'],'authorsIds':_0x1d6129['authorsIds'],'authors':_0x1d6129['authorsIds']['map'](_0x4119a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x4119a0)),'fromVersion':_0x49cd9c};_0x3e5cc4===this['currentRevision']&&(_0x155b5d['createdAt']=new Date(_0x30a6b5['createdAt']['getTime']()+0xa)),_0x3e5cc4['_update'](_0x155b5d,!0x0),delete _0x155b5d['authors'],_0xaaa8c6['push'](_0x155b5d);}}if(this['adapter']){for(const _0x3a5222 of _0xaaa8c6)this['_bufferUpdate'](_0x3a5222['id'],_0x3a5222,!0x0);this['sendBufferedUpdates']();}return _0x2064dd;}['addRevisionData'](_0x536f4d){const _0x4f68fb=this['repository']['createRevision'](_0x536f4d);return this['adapter']&&_0x4f68fb['on']('_update',(_0x15cea6,_0x1c2587,_0x5bcdf0)=>{_0x5bcdf0||(this['_bufferUpdate'](_0x1c2587['id'],_0x1c2587,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f68fb,this['_findInsertionIndex'](_0x4f68fb)),_0x4f68fb;}async['getRevisionDocumentData'](_0x298f09){return await this['_utils']['loadRevisionData'](_0x298f09,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x298f09);}async['getRevisionRootsAttributes'](_0x89e00c){return await this['_utils']['loadRevisionData'](_0x89e00c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x89e00c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x498fe9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x289875=0x0;_0x289875<_0x498fe9['length'];_0x289875++){const _0x2837e1=_0x498fe9[_0x289875];let _0xab859f=!0x1;for(const _0xec1e65 of Object['keys'](_0x2837e1))void 0x0===_0x2837e1[_0xec1e65]?delete _0x2837e1[_0xec1e65]:'id'!==_0xec1e65&&(_0xab859f=!0x0);_0xab859f||(_0x498fe9[_0x289875]=null);}if(_0x498fe9=_0x498fe9['filter'](_0x9c59c9=>null!==_0x9c59c9),!_0x498fe9['length'])return;for(let _0x416487=0x0;_0x416487<_0x498fe9['length'];_0x416487++){const _0x507f70=_0x498fe9[_0x416487];void 0x0!==_0x507f70['fromVersion']&&void 0x0===_0x507f70['toVersion']&&(_0x507f70['toVersion']=this['repository']['getRevision'](_0x507f70['id'])['toVersion']),void 0x0!==_0x507f70['toVersion']&&void 0x0===_0x507f70['fromVersion']&&(_0x507f70['fromVersion']=this['repository']['getRevision'](_0x507f70['id'])['fromVersion']);}const _0x274e00=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x498fe9,_0x274e00)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x44b0a6=>{if(_0x44b0a6){for(const _0x245642 of _0x44b0a6)this['setRevisionData']({'id':_0x245642['id'],'createdAt':_0x245642['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x15695e=null,from:_0x2616bd=null,to:_0x52d5eb=null}){_0x2616bd=null!==_0x2616bd?_0x2616bd:_0x15695e['fromVersion'],_0x52d5eb=null!==_0x52d5eb?_0x52d5eb:_0x15695e['toVersion'];const _0xb7619b=this['_revisionDataBuilder']['getData'](_0x2616bd,_0x52d5eb),_0xe23673={'diffData':_0xb7619b['diffData'],'authorsIds':_0xb7619b['authorsIds'],'fromVersion':_0x2616bd,'toVersion':_0x52d5eb};if(!_0x15695e||_0x52d5eb!==_0x15695e['toVersion']){const _0x33e950=_0x52d5eb-0x1,_0x3af729=this['_source']['history']['getOperation'](_0x33e950);_0xe23673['createdAt']=_0x3af729&&_0x3af729['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2616bd===this['_loadedStateData']['fromVersion']){for(const _0x147fce of this['_loadedStateData']['authors'])_0xe23673['authorsIds']['includes'](_0x147fce['id'])||_0xe23673['authorsIds']['push'](_0x147fce['id']);}return _0xe23673;}['_bufferUpdate'](_0x17dc3a,_0x113fdd,_0x260871){if(this['_bufferedUpdates']['has'](_0x17dc3a)){const _0x1cd509=this['_bufferedUpdates']['get'](_0x17dc3a);_0x113fdd=_0x260871?{..._0x1cd509,..._0x113fdd}:{..._0x113fdd,..._0x1cd509};}this['_bufferedUpdates']['set'](_0x17dc3a,_0x113fdd);}['setRevisionData'](_0x1c564f){const _0x46808a=this['repository']['getRevision'](_0x1c564f['id']);if(_0x1c564f['createdAt']&&(_0x1c564f['createdAt']=new Date(_0x1c564f['createdAt'])),_0x1c564f['authorsIds']){const _0x4fc316=this['editor']['plugins']['get']('Users');_0x1c564f['authors']=_0x1c564f['authorsIds']['map'](_0x34ec23=>_0x4fc316['getUser'](_0x34ec23));}_0x46808a['_update'](_0x1c564f,!0x0);}['_createInitialRevision'](_0x5be680){const _0x53afe7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x53afe7)this['_initialRevisionId']=_0x53afe7['id'];else{const _0x22c041=!this['editor']['model']['document']['roots']['find'](_0x539df0=>this['editor']['model']['hasContent'](_0x539df0)),_0xfa6ac3=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c9fd5=g(this['editor']['locale'],_0x22c041?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5be680,'to':_0x5be680,'id':this['_initialRevisionId'],'name':_0x2c9fd5,'creatorId':_0xfa6ac3});}}['_createCurrentRevision'](_0x576522){const _0x3efbc4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3efbc4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x576522,'to':_0x576522,'id':_0x3efbc4,'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'](_0x3a94d5,_0x357ccd){let _0x400ca3=this['editor']['config']['get']('initialData'),_0x1a8c17=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x400ca3){_0x400ca3={};for(const _0x49570a of this['editor']['model']['document']['getRootNames']())_0x400ca3[_0x49570a]='';}if('string'==typeof _0x400ca3&&(_0x400ca3={'main':_0x400ca3}),void 0x0===_0x1a8c17){_0x1a8c17={};for(const _0x1c42b7 of this['editor']['model']['document']['getRootNames']())_0x1a8c17[_0x1c42b7]={};}let _0x22ef77=!0x1;const _0x34d9ec=Object['keys'](_0x400ca3),_0x1d5f1b=Object['keys'](_0x3a94d5);for(const _0x109ed7 of _0x34d9ec){if(_0x400ca3[_0x109ed7]!==_0x3a94d5[_0x109ed7]&&''!==_0x400ca3[_0x109ed7]['trim']()){_0x22ef77=!0x0;break;}if(!_0x5c2d5e(_0x1a8c17[_0x109ed7],_0x357ccd[_0x109ed7])&&Object['keys'](_0x1a8c17[_0x109ed7])['length']>0x0){_0x22ef77=!0x0;break;}}_0x22ef77||(_0x22ef77=_0x1d5f1b['some'](_0x4b67e2=>!this['editor']['model']['document']['getRoot'](_0x4b67e2))),_0x22ef77&&_0x1f0366('editor-initial-data-replaced-with-revision-data',{'editorData':_0x400ca3,'editorRootsAttributes':_0x1a8c17,'revisionData':_0x3a94d5,'revisionRootsAttributes':_0x357ccd}),this['editor']['config']['set']('initialData',_0x3a94d5),this['editor']['config']['set']('rootsAttributes',_0x357ccd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3ff49b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3ff49b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x71cd52){const _0x21499a=this['repository']['getRevisions']();_0x21499a['reverse']();let _0x93c816=0x0;for(;_0x93c816<_0x21499a['length'];){const _0x47fe35=_0x21499a[_0x93c816];if(_0x47fe35===this['currentRevision']){_0x93c816++;continue;}if(_0x47fe35['id']===this['_initialRevisionId'])break;const _0x32e931=_0x71cd52['toVersion']-_0x47fe35['toVersion']||_0x71cd52['fromVersion']-_0x47fe35['fromVersion'];if(_0x32e931>0x0)break;if(_0x32e931<0x0)_0x93c816++;else{if(!_0x71cd52['creator']&&_0x47fe35['creator'])break;if(_0x47fe35['creator']||!_0x71cd52['creator']){if(_0x71cd52['createdAt']>_0x47fe35['createdAt'])break;_0x93c816++;}else _0x93c816++;}}return _0x93c816;}['_getFromVersion'](_0x535f57){const _0x5ed9dd=this['repository']['getRevisions']();_0x5ed9dd['reverse'](),_0x5ed9dd['shift']();const _0x57aaa2=_0x5ed9dd['find'](_0x3ce4d9=>_0x3ce4d9['toVersion']<=_0x535f57)['toVersion'];return _0x57aaa2<this['_startingVersion']?this['_startingVersion']:_0x57aaa2;}['_makeRevision']({name:_0x2ff61e,from:_0x4da597,to:_0x8f8a41,creatorId:_0x362e28,id:_0x1ed2fd}){const _0x3a9524=this['buildRevisionData']({'from':_0x4da597,'to':_0x8f8a41});_0x3a9524['name']=_0x2ff61e,_0x3a9524['creatorId']=_0x362e28,_0x3a9524['id']=_0x1ed2fd;const _0x1709d7=this['addRevisionData'](_0x3a9524);return this['adapter']&&this['_bufferUpdate'](_0x3a9524['id'],_0x3a9524,!0x0),_0x1709d7;}['_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(_0x911a22){this['editor']=_0x911a22,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'](_0x569fc1){this['source']=_0x569fc1;const _0x3be25b=new Map(),_0x4e26b1=new Map(),_0x3a87b7=this['editor']['model']['document']['roots']['map'](_0x2a7509=>_0x2a7509['rootName']);for(const _0x5c97d3 of _0x3a87b7){const _0x1784a1=this['editor']['model']['document']['getRoot'](_0x5c97d3),_0x5662f9=N(_0x1784a1);_0x3be25b['set'](_0x5c97d3,_0x5662f9),_0x4e26b1['set'](_0x5c97d3,Object['fromEntries'](_0x1784a1['getAttributes']()));}const _0x43e4cf=Array['from'](this['editor']['model']['markers'])['map'](_0x53ad=>[_0x53ad['name'],_0x53ad['getRange']()]),_0x5e9a43=this['source']['version'];this['_saveMetaData'](_0x5e9a43,_0x3be25b,_0x43e4cf,_0x4e26b1),this['_startingRevisionId']=this['_revisionId'];const _0x1c6a2f=new Map(),_0x52de10=new Map();for(const _0x6691b6 of _0x3a87b7){const _0xc6a66e=P(_0x6691b6);_0x1c6a2f['set'](_0x6691b6,_0xc6a66e),_0x52de10['set'](_0x6691b6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1c6a2f,[],_0x52de10);}['getData'](_0x4bc8fb,_0xffa59b){if(this['_lastFrom']===_0x4bc8fb&&this['_lastTo']<=_0xffa59b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xffa59b,!0x0);else{if(!this['_savedMetaData']['has'](_0x4bc8fb)){const _0x230f0f=this['_getPreviousFrom'](_0x4bc8fb);this['_calculateMetaData'](_0x230f0f,_0x4bc8fb,!0x1);}this['_calculateMetaData'](_0x4bc8fb,_0xffa59b,!0x0);}return this['_lastFrom']=_0x4bc8fb,this['_lastTo']=_0xffa59b,this['_getState']();}['loadState'](_0x10a227){const _0x57f16c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x10a227['fromVersion'],this['_lastTo']=_0x10a227['toVersion'];for(const _0x31cc21 in _0x10a227['diffData']){const _0x31260d=_0x10a227['diffData'][_0x31cc21]['attachChange'],_0x15c9eb=_0x385a22(_0x10a227['diffData'][_0x31cc21]['attributesBefore'])||{},_0x2e30ba=_0x57f16c['_makeModelFromViewString'](_0x10a227['diffData'][_0x31cc21]['deletions']);_0x2e30ba['rootName']=_0x31cc21,_0x2e30ba['_isAttached']=!_0x31260d||!_0x31260d['isAttached'],_0x2e30ba['isAttached']=()=>_0x2e30ba['_isAttached'],this['_baseRoots']['set'](_0x31cc21,_0x2e30ba),this['_baseRootsAttributes']['set'](_0x31cc21,_0x15c9eb),_0x31260d&&this['_touchedRoots']['set'](_0x31cc21,_0x31260d);const _0x57ad22=this['_makeIdsRoot'](_0x2e30ba);this['_baseIdsRoots']['set'](_0x31cc21,_0x57ad22);for(const [_0x3f1c41,_0x126c25]of _0x2e30ba['markers']){if(!_0x3f1c41['startsWith']('revision:'))continue;const _0x24be24=_0x3f1c41['split'](':')[0x2];for(const _0x2454fd of _0x126c25['getWalker']({'singleCharacters':!0x0})){const _0x1ca022=this['_getVidAttributeName'](_0x2454fd),_0xabee24='elementEnd'==_0x2454fd['type']?_0x2454fd['previousPosition']['path']['slice'](0x0,-0x1):_0x2454fd['previousPosition']['path'],_0x47db88=_0x57ad22['getNodeByPath'](_0xabee24)['getAttribute'](_0x1ca022);this['_touched']['set'](_0x47db88,{'userId':_0x24be24});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4effc8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x43a0e1=>!this['_touched']['has'](_0x43a0e1));let _0x2766bc=0x0;const _0x1e5879=new Map();for(const _0x1825ae in _0x10a227['diffData']){const _0x3278fe=_0x10a227['diffData'][_0x1825ae]['attachChange'],_0x3e73d7=_0x385a22(_0x10a227['diffData'][_0x1825ae]['attributesAfter'])||{},_0x4ed1db=_0x57f16c['_makeModelFromViewString'](_0x10a227['diffData'][_0x1825ae]['insertions']);_0x4ed1db['rootName']=_0x1825ae,_0x4ed1db['_isAttached']=!_0x3278fe||_0x3278fe['isAttached'],_0x4ed1db['isAttached']=()=>_0x4ed1db['_isAttached'],this['_diffRoots']['set'](_0x1825ae,_0x4ed1db),this['_diffRootsAttributes']['set'](_0x1825ae,_0x3e73d7);const _0x4b3488=this['_makeIdsRoot'](_0x4ed1db,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1825ae,_0x4b3488),_0x1e5879['set'](_0x1825ae,_0x4ed1db['isAttached']()?_0x3e73d7:{});for(const [_0x4aef41,_0x38ce84]of _0x4ed1db['markers']){if(!_0x4aef41['startsWith']('revision:'))continue;const _0x199414=_0x4aef41['split'](':')[0x2];for(const _0x5bfc40 of _0x38ce84['getWalker']({'singleCharacters':!0x0})){const _0x5dedc5=this['_getVidAttributeName'](_0x5bfc40),_0x114932=this['_revisionId']++,_0x3883eb='elementEnd'==_0x5bfc40['type']?_0x5bfc40['previousPosition']['path']['slice'](0x0,-0x1):_0x5bfc40['previousPosition']['path'];_0x4b3488['getNodeByPath'](_0x3883eb)['_setAttribute'](_0x5dedc5,_0x114932),this['_touched']['set'](_0x114932,{'userId':_0x199414});}}for(const _0x322af1 of this['editor']['model']['createRangeIn'](_0x4ed1db)['getWalker']({'singleCharacters':!0x0})){const _0x56a079=this['_getVidAttributeName'](_0x322af1),_0x24fe70='elementEnd'==_0x322af1['type']?_0x322af1['previousPosition']['path']['slice'](0x0,-0x1):_0x322af1['previousPosition']['path'],_0x47f9c5=_0x4b3488['getNodeByPath'](_0x24fe70);_0x47f9c5['getAttribute'](_0x56a079)>0x0||_0x47f9c5['_setAttribute'](_0x56a079,_0x4effc8[_0x2766bc++]);}for(const [_0x269900,_0x191f2a]of _0x4ed1db['markers'])_0x269900['startsWith']('revision:')||this['_markers']['set'](_0x269900,_0x191f2a);}const _0x3609d4=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3609d4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3609d4,0x1));const _0x16e1f2=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x16e1f2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x16e1f2,0x1));const _0x4bca08=Array['from'](this['_diffRoots'])['map'](([_0x3be1c9,_0x31ee29])=>[_0x3be1c9,N(_0x31ee29)]);this['_saveMetaData'](this['_lastTo'],_0x4bca08,this['_markers'],_0x1e5879);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3b3c88,_0x4ee8e0,_0x2b9525,_0x2ac821){const _0x1e8504=new Map(_0x4ee8e0),_0x6b3a8=new Map(_0x385a22(_0x2ac821)),_0x2d0ba6=new Map();for(const [_0x46d76f,_0x815891]of _0x2b9525)_0x2d0ba6['set'](_0x46d76f,{'start':_0x815891['start']['clone'](),'end':_0x815891['end']['clone'](),'rootName':_0x815891['root']['rootName']});this['_savedMetaData']['set'](_0x3b3c88,{'roots':_0x1e8504,'markers':_0x2d0ba6,'rootsAttributes':_0x6b3a8});}['_removeMetaData'](_0x3a2015){this['_savedMetaData']['delete'](_0x3a2015);}['_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'](_0x572453,_0x348582=null){let _0x308e55=null;_0x572453['is']('documentFragment')||(_0x308e55=new ut(_0x572453['name'],{'vid_start':null===_0x348582?this['_revisionId']++:_0x348582++}));const _0x215405=[];for(const _0x342dc9 of _0x572453['getChildren']())if(_0x342dc9['is']('element')){_0x215405['push'](this['_makeIdsRoot'](_0x342dc9,_0x348582));const _0x254714=_0x215405[_0x215405['length']-0x1];null!==_0x348582&&(_0x348582=_0x254714['is']('element','$text')?_0x254714['getAttribute']('vid')+0x1:_0x254714['getAttribute']('vid_end')+0x1);}else{for(let _0xb9e1b8=0x0;_0xb9e1b8<_0x342dc9['offsetSize'];_0xb9e1b8++)_0x215405['push'](new ut('$text',{'vid':null===_0x348582?this['_revisionId']++:_0x348582++}));}if(_0x572453['is']('documentFragment')){const _0x52c483=P(_0x572453['rootName']);return _0x52c483['_insertChild'](0x0,_0x215405),_0x52c483;}return _0x308e55['_setAttribute']('vid_end',null===_0x348582?this['_revisionId']++:_0x348582++),_0x308e55['_insertChild'](0x0,_0x215405),_0x308e55;}['_calculateMetaData'](_0x389833,_0x49b152,_0x19e6de){this['_reset']();const {roots:_0x2e8d6d,markers:_0x1d47b2,rootsAttributes:_0xec302}=this['_savedMetaData']['get'](_0x389833);this['_baseRoots']=new Map(_0x2e8d6d),this['_baseRootsAttributes']=new Map(_0x385a22(_0xec302));for(const [_0x2a3f8b,_0xb69264]of this['_baseRoots'])if('$graveyard'!==_0x2a3f8b&&(this['_diffRoots']['set'](_0x2a3f8b,N(_0xb69264)),this['_diffRootsAttributes']=new Map(_0x385a22(_0xec302)),_0x19e6de)){const _0x59a8fc=this['_revisionId'];this['_idsRoots']['set'](_0x2a3f8b,this['_makeIdsRoot'](_0xb69264)),this['_baseIdsRoots']['set'](_0x2a3f8b,this['_makeIdsRoot'](_0xb69264,_0x59a8fc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x19e6de&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10a93b,_0x5154be]of _0x1d47b2){const _0x2a20ad=this['_baseRoots']['get'](_0x5154be['rootName']),_0x5e9ab3=this['_diffRoots']['get'](_0x5154be['rootName']),_0x153844=new ft(this['_fixPosition'](_0x5154be['start'],_0x2a20ad),this['_fixPosition'](_0x5154be['end'],_0x2a20ad)),_0x1fdb6b=this['_fixRange'](_0x153844,_0x5e9ab3);_0x2a20ad['markers']['set'](_0x10a93b,_0x153844),this['_markers']['set'](_0x10a93b,_0x1fdb6b);}this['_applyOperations'](_0x389833,_0x49b152,_0x19e6de);}['_applyOperations'](_0x4918b4,_0x7ca397,_0x51fc0d){for(const _0x18d09e of this['source']['getOperations'](_0x4918b4,_0x7ca397))this['_handleOperation'](_0x18d09e,_0x51fc0d);for(const _0x32536f of this['_diffRoots']['values']())_0x32536f['markers']['clear']();for(const [_0x172647,_0x20e5af]of this['_markers']){this['_diffRoots']['get'](_0x20e5af['root']['rootName'])['markers']['set'](_0x172647,_0x20e5af['clone']());}const _0x39ed9b=new Map(),_0x45765f=new Map();for(const [_0x50fc9d,_0x463e8c]of this['_diffRoots'])_0x39ed9b['set'](_0x50fc9d,N(_0x463e8c)),_0x45765f['set'](_0x50fc9d,this['_diffRootsAttributes']['get'](_0x50fc9d));this['_saveMetaData'](_0x7ca397,_0x39ed9b,this['_markers'],_0x45765f);}['_getPreviousFrom'](_0x554e85){const _0x527a08=Array['from'](this['_savedMetaData']['keys']());_0x527a08['sort']((_0x2ee0ca,_0x111ed5)=>_0x2ee0ca-_0x111ed5),_0x527a08['reverse']();for(const _0x1d053d of _0x527a08)if(_0x1d053d<_0x554e85)return _0x1d053d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x374497,_0x950d46){const _0x5cbb01=Array['from'](_0x950d46['markers'])['map'](([_0x4b62ea,_0x54bdc6])=>[_0x4b62ea,this['_fixRange'](_0x54bdc6,_0x374497)]);_0x374497['markers']=new Map(_0x5cbb01);}['_transformMarkers'](_0xbdffba){for(const _0x4a73f3 of this['_markers']['values']()){const _0x341548=_0x4a73f3['getTransformedByOperation'](_0xbdffba),_0x137f02=ft['_createFromRanges'](_0x341548);_0x4a73f3['start']=_0x137f02['start'],_0x4a73f3['end']=_0x137f02['end'];}}['_handleOperation'](_0x542118,_0x3aa8b0){if('addRoot'!=_0x542118['type']&&'detachRoot'!=_0x542118['type']){if('insert'==_0x542118['type']){const _0x15df4a=_0x542118['position']['root']['rootName'];this['_diffRoots']['has'](_0x15df4a)||(this['_diffRoots']['set'](_0x15df4a,P(_0x15df4a,!0x0)),this['_diffRootsAttributes']['set'](_0x15df4a,{}),_0x3aa8b0&&this['_idsRoots']['set'](_0x15df4a,P(_0x15df4a,!0x0)));}else{if('addRootAttribute'==_0x542118['type']||'removeRootAttribute'==_0x542118['type']||'changeRootAttribute'==_0x542118['type'])return void this['_handleRootAttributeOperation'](_0x542118);'marker'==_0x542118['type']&&this['_handleMarkerOperation'](_0x542118);}if('marker'!==_0x542118['type']){const _0x523531=this['_cloneOperation'](_0x542118,this['_diffRoots']);_0x523531['_execute'](),this['_transformMarkers'](_0x523531);}if(_0x3aa8b0)switch(_0x542118['type']){case'insert':this['_handleInsertOperation'](_0x542118);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x542118);break;case'merge':this['_handleMergeOperation'](_0x542118);break;case'split':this['_handleSplitOperation'](_0x542118);}}else this['_handleRootOperation'](_0x542118,_0x3aa8b0);}['_cloneOperation'](_0x5e9f74,_0x2c8180){const _0x34bfb6=_0x5e9f74['clone']();return _0x34bfb6['_authorId']=_0x5e9f74['_authorId'],this['_fixOperation'](_0x34bfb6,_0x2c8180),_0x34bfb6;}['_getBaseVids'](_0x50fbf7){return _0x50fbf7['map'](_0xb26236=>{const _0x4cbfb1=this['_getVidAttributeName'](_0xb26236);return Number(_0xb26236['item']['getAttribute'](_0x4cbfb1));});}['_generateTape'](_0x54cba9,_0x52977c){if(_0x54cba9['is']('element','$text'))_0x52977c['push']({'item':_0x54cba9,'type':'text'});else{_0x54cba9['is']('element')&&_0x52977c['push']({'item':_0x54cba9,'type':'elementStart'});for(const _0x33b6fd of _0x54cba9['getChildren']())this['_generateTape'](_0x33b6fd,_0x52977c);_0x54cba9['is']('element')&&_0x52977c['push']({'item':_0x54cba9,'type':'elementEnd'});}return _0x52977c;}['_getState'](){const _0x199b2d=new Map(this['_touched']),_0x28e88e=new Map(_0x199b2d),_0x594056=new Map(),_0x35803f={'insertions':{},'deletions':{}},_0x1d1c4d={'insertions':{},'deletions':{}},_0x50ab1b=new Map(),_0x5ddef7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5ddef7['delete']('$graveyard');for(const _0x44e1f3 of _0x5ddef7){const _0x3931d4=this['_diffRoots']['get'](_0x44e1f3)||P(_0x44e1f3,!0x1),_0x275905=this['_baseRoots']['get'](_0x44e1f3)||P(_0x44e1f3,!0x1);_0x3931d4['isAttached']()||_0x275905['isAttached']()?(_0x35803f['insertions'][_0x44e1f3]=N(_0x3931d4),_0x35803f['deletions'][_0x44e1f3]=N(_0x275905),this['_copyMarkers'](_0x35803f['deletions'][_0x44e1f3],_0x275905),this['_copyMarkers'](_0x35803f['insertions'][_0x44e1f3],_0x3931d4),_0x1d1c4d['insertions'][_0x44e1f3]=this['_generateTape'](this['_idsRoots']['get'](_0x44e1f3),[]),_0x1d1c4d['deletions'][_0x44e1f3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x44e1f3)||P(_0x44e1f3,!0x1),[])):_0x5ddef7['delete'](_0x44e1f3);}for(const _0x450a9f of _0x5ddef7){const _0x52096b=_0x1d1c4d['insertions'][_0x450a9f];for(const _0x304eb7 of _0x52096b){const _0x63d9c8=this['_getVidAttributeName'](_0x304eb7),_0x3bbfc2=_0x304eb7['item']['getAttribute'](_0x63d9c8);_0x28e88e['delete'](_0x3bbfc2),_0x3bbfc2>=this['_startingRevisionId']&&_0x594056['set'](_0x3bbfc2,_0x199b2d['get'](_0x3bbfc2));}}for(const _0x2a1803 of _0x5ddef7){const _0x363da8=_0x1d1c4d['insertions'][_0x2a1803],_0x3e3721=this['_getBaseVids'](_0x1d1c4d['deletions'][_0x2a1803]);let _0x78a1ef=0x0;for(const _0x14f2b8 of _0x363da8){const _0x30db51=this['_getVidAttributeName'](_0x14f2b8),_0x47c766=_0x14f2b8['item']['getAttribute'](_0x30db51);if(!_0x594056['has'](_0x47c766)&&!_0x50ab1b['has'](_0x47c766)){if(_0x28e88e['has'](_0x47c766))_0x78a1ef++;else{if(_0x47c766!=_0x3e3721[_0x78a1ef]){const _0x259c61=_0x199b2d['get'](_0x47c766)||_0x199b2d['get'](_0x3e3721[_0x78a1ef]);for(;_0x47c766!=_0x3e3721[_0x78a1ef];)_0x28e88e['has'](_0x3e3721[_0x78a1ef])||(_0x50ab1b['set'](_0x3e3721[_0x78a1ef],_0x259c61),_0x199b2d['set'](_0x3e3721[_0x78a1ef],_0x259c61)),_0x78a1ef++;}_0x78a1ef++;}}}}for(const _0x17ab78 of _0x5ddef7){const _0x20dc6d=_0x1d1c4d['insertions'][_0x17ab78];for(const _0x1a99a0 of _0x20dc6d){const _0x28bdf9=this['_getVidAttributeName'](_0x1a99a0),_0x451514=_0x1a99a0['item']['getAttribute'](_0x28bdf9);if(_0x50ab1b['has'](_0x451514)){const _0xa5028b=_0x50ab1b['get'](_0x451514);_0x28e88e['has'](_0x451514)||_0x28e88e['set'](_0x451514,{..._0xa5028b}),_0x594056['set'](_0x451514,{..._0xa5028b});}}}for(const _0x1403c0 of _0x28e88e['keys']())_0x1403c0>=this['_startingRevisionId']&&_0x28e88e['delete'](_0x1403c0);const _0x190f06=new Map();for(const _0x28e83b of _0x5ddef7){let _0x166b23=_0x1d1c4d['insertions'][_0x28e83b];for(const _0x46313b of _0x166b23)if(_0x46313b['item']['is']('element','tableCell')){const _0x21d364=this['_getVidAttributeName'](_0x46313b),_0x26edce=_0x46313b['item']['getAttribute'](_0x21d364);if(_0x594056['has'](_0x26edce)){const _0x52c848=_0x46313b['item']['parent']['parent']['getAttribute']('vid_start'),_0x3705a5=_0x190f06['get'](_0x52c848)||new Set();_0x3705a5['add'](_0x594056['get'](_0x26edce)['userId']),_0x190f06['set'](_0x52c848,_0x3705a5);}}_0x166b23=_0x1d1c4d['deletions'][_0x28e83b];for(const _0x5de779 of _0x166b23)if(_0x5de779['item']['is']('element','tableCell')){const _0x1572d8=this['_getVidAttributeName'](_0x5de779),_0x42d868=_0x5de779['item']['getAttribute'](_0x1572d8);if(_0x28e88e['has'](_0x42d868)){const _0x228972=_0x5de779['item']['parent']['parent']['getAttribute']('vid_start'),_0x518f2a=_0x190f06['get'](_0x228972)||new Set();_0x518f2a['add'](_0x28e88e['get'](_0x42d868)['userId']),_0x190f06['set'](_0x228972,_0x518f2a);}}for(const _0x11631a of _0x190f06['keys']())(_0x594056['has'](_0x11631a)||_0x28e88e['has'](_0x11631a))&&_0x190f06['delete'](_0x11631a);}for(const _0x567e7a of _0x5ddef7){const _0x16895f=_0x1d1c4d['insertions'][_0x567e7a];let _0x53ae81=null,_0x2d2359=null;for(const _0x1aa762 of _0x16895f){const _0x3fbcf1=this['_getVidAttributeName'](_0x1aa762),_0x51ce55=_0x1aa762['item']['getAttribute'](_0x3fbcf1),_0xb84a09=_0x190f06['get'](_0x51ce55);_0xb84a09&&'elementStart'==_0x1aa762['type']&&(_0x53ae81=Array['from'](_0xb84a09)[0x0],_0x2d2359=_0x1aa762['item']['getAttribute']('vid_end')),_0x53ae81&&(_0x28e88e['set'](_0x51ce55,{'userId':_0x53ae81}),_0x594056['set'](_0x51ce55,{'userId':_0x53ae81})),_0x51ce55==_0x2d2359&&(_0x53ae81=null,_0x2d2359=null);}}const _0x4b8cd7={},_0x2ae34d=new Set();for(const _0x294300 of _0x5ddef7){const _0x3cb8c6=_0x35803f['deletions'][_0x294300],_0x52c089=_0x35803f['insertions'][_0x294300];for(const {userId:_0x1165e7}of this['_touchedMarkers']['values']())null!==_0x1165e7&&_0x2ae34d['add'](_0x1165e7);for(const {userId:_0x37a1df}of this['_touchedRoots']['values']())null!==_0x37a1df&&_0x2ae34d['add'](_0x37a1df);this['_markChanges'](_0x52c089,_0x1d1c4d['insertions'][_0x294300],_0x594056,'insertion',_0x2ae34d),this['_markChanges'](_0x3cb8c6,_0x1d1c4d['deletions'][_0x294300],_0x28e88e,'deletion',_0x2ae34d),_0x4b8cd7[_0x294300]={'insertions':this['_prepareViewToSave'](_0x52c089),'deletions':this['_prepareViewToSave'](_0x3cb8c6),'attachChange':this['_touchedRoots']['get'](_0x294300)||null,'attributesBefore':_0x385a22(this['_baseRootsAttributes']['get'](_0x294300))||{},'attributesAfter':_0x385a22(this['_diffRootsAttributes']['get'](_0x294300))};}return{'diffData':_0x4b8cd7,'authorsIds':Array['from'](_0x2ae34d)};}['_processRootBeforeSave'](_0x5f17b0){for(const [,_0x1b8546]of _0x5f17b0['markers']){const _0x134d33=_0x1b8546['start']['getAncestors']()['filter'](_0xa49c10=>'tableCell'==_0xa49c10['name']);for(const _0x23d49e of _0x134d33)0x1==_0x23d49e['childCount']&&_0x23d49e['getChild'](0x0)['is']('element','paragraph')&&_0x23d49e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x217083){this['_processRootBeforeSave'](_0x217083);const _0xafb4dc=this['editor']['data']['toView'](_0x217083,{}),_0x5ad2e2=Array['from'](_0xafb4dc['getChildren']())['map'](_0x4f86b4=>this['_getViewJson'](_0x4f86b4));return JSON['stringify'](_0x5ad2e2);}['_getViewJson'](_0x4249f8){if(_0x4249f8['is']('$text'))return _0x4249f8['data'];{const _0x1ef59d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2f12e8=_0x4249f8,_0x163688=this['editor']['data']['htmlProcessor']['domConverter'],_0x22a762={'type':_0x1ef59d['_getTypeCharForViewElement'](_0x2f12e8),'name':_0x2f12e8['name'],'attributes':Array['from'](_0x2f12e8['getAttributes']()),'children':Array['from'](_0x2f12e8['getChildren']())['map'](_0x5c8225=>this['_getViewJson'](_0x5c8225))};if(_0x4249f8['is']('uiElement')&&'$comment'!=_0x4249f8['name']){const _0xa789dd=_0x4249f8['render'](_0x163688['domDocument'],_0x163688);_0x22a762['children']['push'](_0xa789dd['outerHTML']);}else{if(_0x4249f8['is']('rawElement')){const _0x45b027=_0x163688['domDocument']['createElement'](_0x2f12e8['name']);_0x4249f8['render'](_0x45b027,_0x163688),_0x22a762['children']['push'](_0x45b027['innerHTML']);}}const _0xdddbbd=Array['from'](_0x2f12e8['getCustomProperties']());_0xdddbbd['length']>0x0&&(_0x22a762['customProperties']=_0xdddbbd);const _0x575b5c=_0x2f12e8['getFillerOffset']();return null!==_0x575b5c&&(_0x22a762['fillerOffset']=_0x575b5c),_0x22a762;}}['_markChanges'](_0xd2b391,_0x25a9a0,_0x41323e,_0x12c694,_0x2bdca5){let _0x10af79=null,_0x279a91=null,_0x527e7c=0x0;const _0xc3323=this['editor']['model'];for(let _0x193680=0x0;_0x193680<_0x25a9a0['length'];_0x193680++){const _0x1923d3=this['_getVidAttributeName'](_0x25a9a0[_0x193680]),_0x1b9211=_0x25a9a0[_0x193680]['item']['getAttribute'](_0x1923d3),_0x2920fa=_0x41323e['get'](_0x1b9211),_0x1149ac=_0x193680==_0x25a9a0['length']-0x1;(!_0x10af79&&_0x2920fa&&(_0x10af79=_0x2920fa,_0x279a91=_0x25a9a0[_0x193680]),_0x10af79&&(!_0x2920fa||_0x2920fa['userId']!=_0x10af79['userId']))&&(_0x353404(_0x2920fa,F(_0x279a91,_0xd2b391,_0xc3323),F(_0x25a9a0[_0x193680],_0xd2b391,_0xc3323)),_0x10af79=_0x2920fa||null,_0x279a91=_0x2920fa?_0x25a9a0[_0x193680]:null),_0x10af79&&_0x1149ac&&_0x353404(_0x2920fa,F(_0x279a91,_0xd2b391,_0xc3323),B(_0x25a9a0[_0x193680],_0xd2b391,_0xc3323));}function _0x353404(_0x3670bd,_0x3cdbc1,_0x448437){const _0x11f796=_0x10af79['userId'],_0x3df7a2='revision:'+_0x12c694+':'+_0x11f796+':'+_0x527e7c++,_0x3d6346=_0xc3323['createRange'](_0x3cdbc1,_0x448437);_0xd2b391['markers']['set'](_0x3df7a2,_0x3d6346),null!==_0x11f796&&_0x2bdca5['add'](_0x11f796);}}['_getVidAttributeName'](_0x526766){switch(_0x526766['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x198218,_0x248b21){_0x198218['baseVersion']=null;for(const _0x21025f in _0x198218){const _0x43cbf4=_0x198218[_0x21025f];if(_0x43cbf4 instanceof vt){const _0x557ff5=_0x248b21['get'](_0x43cbf4['root']['rootName']);_0x198218[_0x21025f]=this['_fixPosition'](_0x43cbf4,_0x557ff5);}if(_0x43cbf4 instanceof ft){const _0x116ca9=_0x248b21['get'](_0x43cbf4['root']['rootName']);_0x198218[_0x21025f]=this['_fixRange'](_0x43cbf4,_0x116ca9);}'root'===_0x21025f&&(_0x198218['root']=_0x248b21['get'](_0x198218['root']['rootName']));}}['_fixRange'](_0x2a55c9,_0x3760f2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2a55c9['start'],_0x3760f2),this['_fixPosition'](_0x2a55c9['end'],_0x3760f2));}['_fixPosition'](_0x3dc565,_0x5d7c93){return this['editor']['model']['createPositionFromPath'](_0x5d7c93,_0x3dc565['path'],_0x3dc565['stickiness']);}['_handleInsertOperation'](_0x228a6b){const _0xfb0ae5=this['_idsRoots']['get'](_0x228a6b['position']['root']['rootName']),_0x2a1b3c=this['_fixPosition'](_0x228a6b['position'],_0xfb0ae5),_0x329517=null===_0x228a6b['_authorId']?null:_0x228a6b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c3115=_0x2a1b3c['parent'],_0x363c39=this['_revisionId'],_0x42c89c=[];for(const _0x260c5f of _0x228a6b['nodes'])if(_0x260c5f['is']('element'))_0x42c89c['push'](this['_makeIdsRoot'](_0x260c5f));else{for(let _0xddfb38=0x0;_0xddfb38<_0x260c5f['offsetSize'];_0xddfb38++)_0x42c89c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x59c299=this['_revisionId'];for(let _0xda6289=_0x363c39;_0xda6289<_0x59c299;_0xda6289++)this['_touched']['set'](_0xda6289,{'userId':_0x329517});_0x2c3115['_insertChild'](_0x2a1b3c['offset'],_0x42c89c);}['_handleMoveOperation'](_0x2783cc){(_0x2783cc=this['_cloneOperation'](_0x2783cc,this['_idsRoots']))['_execute']();const _0x61107b=null===_0x2783cc['_authorId']?null:_0x2783cc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f563d=_0x2783cc['getMovedRangeStart'](),_0x1fccb6=_0x3f563d['parent'],_0x1e0679=_0x3f563d['offset'];!function _0x4e9841(_0x1f6b5a,_0x4cb62e,_0xbba153,_0x29fe72){for(let _0x3200f7=_0xbba153;_0x3200f7<_0x29fe72;_0x3200f7++){const _0x23bc2f=_0x4cb62e['getChild'](_0x3200f7);_0x23bc2f['is']('element','$text')?_0x1f6b5a['set'](_0x23bc2f['getAttribute']('vid'),{'userId':_0x61107b}):(_0x1f6b5a['set'](_0x23bc2f['getAttribute']('vid_start'),{'userId':_0x61107b}),_0x4e9841(_0x1f6b5a,_0x23bc2f,0x0,_0x23bc2f['childCount']),_0x1f6b5a['set'](_0x23bc2f['getAttribute']('vid_end'),{'userId':_0x61107b}));}}(this['_touched'],_0x1fccb6,_0x1e0679,_0x1e0679+_0x2783cc['howMany']);}['_handleMergeOperation'](_0x4ce590){const _0x492206=null===(_0x4ce590=this['_cloneOperation'](_0x4ce590,this['_idsRoots']))['_authorId']?null:_0x4ce590['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc17f69=_0x4ce590['targetPosition']['parent'],_0xf33754=_0x4ce590['sourcePosition']['parent'],_0x32f156=_0xc17f69['getAttribute']('vid_end'),_0x3479e4=_0xf33754['getAttribute']('vid_start');_0xc17f69['_setAttribute']('vid_end',_0xf33754['getAttribute']('vid_end')),_0xf33754['_setAttribute']('vid_end',_0x32f156),this['_touched']['set'](_0x3479e4,{'userId':_0x492206}),this['_touched']['set'](_0x32f156,{'userId':_0x492206}),_0x4ce590['_execute']();}['_handleSplitOperation'](_0x1e2bf3){const _0xacc236=null===(_0x1e2bf3=this['_cloneOperation'](_0x1e2bf3,this['_idsRoots']))['_authorId']?null:_0x1e2bf3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x324168=_0x1e2bf3['graveyardPosition'],_0x53a617=_0x1e2bf3['splitPosition']['parent'];_0x1e2bf3['_execute']();const _0x27edbf=_0x53a617['getAttribute']('vid_end'),_0x2717f3=_0x1e2bf3['insertionPosition']['nodeAfter'];if(_0x324168){const _0xa0ba6a=_0x2717f3['getAttribute']('vid_end'),_0x16a789=_0x53a617['getAttribute']('vid_end');_0x53a617['_setAttribute']('vid_end',_0xa0ba6a),_0x2717f3['_setAttribute']('vid_end',_0x16a789),this['_touched']['set'](_0x53a617['getAttribute']('vid_end'),{'userId':_0xacc236}),this['_touched']['set'](_0x2717f3['getAttribute']('vid_start'),{'userId':_0xacc236});}else{const _0x4edfef=this['_revisionId']++,_0x456c22=this['_revisionId']++;_0x53a617['_setAttribute']('vid_end',_0x4edfef),_0x2717f3['_setAttribute']('vid_start',_0x456c22),_0x2717f3['_setAttribute']('vid_end',_0x27edbf),this['_touched']['set'](_0x4edfef,{'userId':_0xacc236}),this['_touched']['set'](_0x456c22,{'userId':_0xacc236});}}['_handleMarkerOperation'](_0x44e985){if(!_0x44e985['affectsData'])return;const _0x54aec1=(_0x44e985=this['_cloneOperation'](_0x44e985,this['_diffRoots']))['oldRange']?_0x44e985['oldRange']['root']:null,_0x4869e6=_0x44e985['newRange']?_0x44e985['newRange']['root']:null;_0x54aec1&&this['_markers']['delete'](_0x44e985['name']),_0x4869e6&&this['_markers']['set'](_0x44e985['name'],_0x44e985['newRange']['clone']());const _0xc605ea=null===_0x44e985['_authorId']?null:_0x44e985['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2378c1=_0x44e985['name'];if(!this['_touchedMarkers']['has'](_0x2378c1))return void this['_touchedMarkers']['set'](_0x2378c1,{'range':_0x44e985['oldRange'],'userId':_0xc605ea});const _0x2ff201=this['_touchedMarkers']['get'](_0x2378c1),_0x1288f4=_0x2ff201['range'],_0x7a0a85=_0x44e985['newRange'];null==_0x1288f4&&null==_0x7a0a85||_0x1288f4&&_0x7a0a85&&_0x1288f4['isEqual'](_0x7a0a85)?this['_touchedMarkers']['delete'](_0x44e985['name']):_0x2ff201['userId']=_0xc605ea;}['_handleRootOperation'](_0x841ce3,_0x3950ed){this['_diffRoots']['has'](_0x841ce3['rootName'])?this['_diffRoots']['get'](_0x841ce3['rootName'])['_isAttached']=_0x841ce3['isAdd']:(this['_diffRoots']['set'](_0x841ce3['rootName'],P(_0x841ce3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x841ce3['rootName'],{}),_0x3950ed&&this['_idsRoots']['set'](_0x841ce3['rootName'],P(_0x841ce3['rootName'],!0x0)));const _0x56c925=null===_0x841ce3['_authorId']?null:_0x841ce3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x274b23=this['_touchedRoots']['get'](_0x841ce3['rootName']);_0x274b23&&_0x274b23['userId']===_0x56c925?this['_touchedRoots']['delete'](_0x841ce3['rootName']):this['_touchedRoots']['set'](_0x841ce3['rootName'],{'userId':_0x56c925,'isAttached':_0x841ce3['isAdd']});}['_handleRootAttributeOperation'](_0x3d3dbf){const _0xfb588c=this['_diffRootsAttributes']['get'](_0x3d3dbf['root']['rootName']);null===_0x3d3dbf['newValue']?delete _0xfb588c[_0x3d3dbf['key']]:_0xfb588c[_0x3d3dbf['key']]=_0x3d3dbf['newValue'];}}function N(_0x2f981d){const _0x4c4d2f=P(_0x2f981d['rootName'],_0x2f981d['isAttached']());for(const _0x22ee08 of _0x2f981d['getChildren']()){const _0x13d3a0=_0x22ee08['_clone'](!0x0);_0x4c4d2f['_appendChild'](_0x13d3a0);}return _0x4c4d2f;}function P(_0x107c20,_0x5d4b29=!0x0){const _0x3046c2=new gt();return _0x3046c2['rootName']=_0x107c20,_0x3046c2['_isAttached']=_0x5d4b29,_0x3046c2['isAttached']=()=>_0x3046c2['_isAttached'],_0x3046c2;}function F(_0x398ea2,_0x564cc5,_0x241413){const _0x1118eb='elementEnd'==_0x398ea2['type']?_0x241413['createPositionAt'](_0x398ea2['item'],'end'):_0x241413['createPositionBefore'](_0x398ea2['item']);return _0x241413['createPositionFromPath'](_0x564cc5,_0x1118eb['path'],_0x1118eb['stickiness']);}function B(_0x137eed,_0x47d55e,_0xdc32e1){const _0x5de78e='elementStart'==_0x137eed['type']?_0xdc32e1['createPositionAt'](_0x137eed['item'],0x0):_0xdc32e1['createPositionAfter'](_0x137eed['item']);return _0xdc32e1['createPositionFromPath'](_0x47d55e,_0x5de78e['path'],_0x5de78e['stickiness']);}class os extends _0x39cfbe{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4030f9,_0x477d42){super(_0x4030f9),this['focusTracker']=new _0x38cc87(),this['keystrokes']=new _0x133eb8(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x477d42),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'](),_0x2cc73e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x421d24=_0x541a30=>_0x541a30['stopPropagation']();this['keystrokes']['set']('arrowright',_0x421d24),this['keystrokes']['set']('arrowleft',_0x421d24),this['keystrokes']['set']('arrowup',_0x421d24),this['keystrokes']['set']('arrowdown',_0x421d24);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5b47b7){this['revisionNameInputView']['fieldView']['element']['value']=_0x5b47b7['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x272ed8){const _0x48c16f=new nt(this['locale'],ti),_0x23a9d1=_0x48c16f['fieldView'];_0x23a9d1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x532fb6=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x272ed8&&(_0x532fb6+='\x20('+g(this['locale'],'optional')+')'),(_0x48c16f['label']=_0x532fb6,_0x23a9d1['on']('input',()=>{this['revisionNameInputValue']=_0x23a9d1['element']['value']['trim']();}),_0x48c16f);}}class f extends _0x425a55{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1a554a=this['editor'],_0x3f9606=_0x1a554a['plugins']['get']('RevisionTracker');_0x1a554a['ui']['componentFactory']['add']('revisionHistory',_0xd96346=>{const _0x4ff774=_0x2f3f6b(_0xd96346),_0x74f9df=_0x4ff774['panelView']['children'],_0x2b8ed8=new _0x381af1(_0xd96346),_0x571abd=new te(_0xd96346),_0x5d6104=new _0x2e3194(_0xd96346),_0x114b55=new te(_0xd96346),_0x27fde7=new _0x2e3194(_0xd96346);return _0x4ff774['bind']('isEnabled')['to'](_0x3f9606,'isReady',_0x3f9606,'isEnabled',_0x1a554a,'isReadOnly',(_0x4de8ca,_0x3160af,_0x27f81e)=>_0x4de8ca&&_0x3160af&&!_0x27f81e),_0x4ff774['buttonView']['set']({'icon':_0x4280c8,'label':g(_0xd96346,'Revision\x20history'),'tooltip':!0x0}),_0x5d6104['set']({'label':g(_0xd96346,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5d6104['bind']('isEnabled')['to'](_0x3f9606,'isReady',_0x3f9606,'isEnabled',_0x1a554a,'isReadOnly',(_0x258abf,_0x973b38,_0x53f0cf)=>_0x258abf&&_0x973b38&&!_0x53f0cf),_0x5d6104['on']('execute',()=>this['_showDialog']()),_0x27fde7['set']({'label':g(_0xd96346,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x27fde7['bind']('isEnabled')['to'](_0x3f9606,'isReady',_0x1a554a,'isReadOnly',(_0x3a0092,_0xa93f1)=>_0x3a0092&&!_0xa93f1),_0x27fde7['on']('execute',()=>{_0x1a554a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4ff774['isOpen']=!0x1,_0x1a554a['editing']['view']['focus']();}),_0x571abd['children']['add'](_0x5d6104),_0x114b55['children']['add'](_0x27fde7),_0x2b8ed8['role']='menu',_0x2b8ed8['items']['addMany']([_0x571abd,_0x114b55]),_0x74f9df['add'](_0x2b8ed8),_0x4ff774;}),_0x1a554a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x32dc7e=this['editor'],_0x348c5c=_0x32dc7e['locale'],_0x275328=new _0x1cf6e8(_0x348c5c),_0x1f40ef=new _0x325bfc(_0x348c5c);_0x275328['buttonView']['set']({'icon':_0x4280c8,'label':g(_0x348c5c,'Revision\x20history')});const _0x3a00d6=new _0x1c0134(_0x348c5c,_0x275328),_0x203461=new _0x17e213(_0x348c5c);_0x203461['set']({'label':g(_0x348c5c,'Save\x20current\x20revision')}),_0x203461['delegate']('execute')['to'](_0x275328),_0x203461['on']('execute',()=>{this['_showDialog']();}),_0x3a00d6['children']['add'](_0x203461),_0x1f40ef['items']['add'](_0x3a00d6);const _0x2a4b77=new _0x1c0134(_0x348c5c,_0x275328),_0x5938a4=new _0x17e213(_0x348c5c);return _0x5938a4['set']({'label':g(_0x348c5c,'Open\x20revision\x20history')}),_0x5938a4['delegate']('execute')['to'](_0x275328),_0x5938a4['on']('execute',()=>{_0x32dc7e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2a4b77['children']['add'](_0x5938a4),_0x1f40ef['items']['add'](_0x2a4b77),_0x275328['panelView']['children']['add'](_0x1f40ef),_0x275328;}['_showDialog'](){const _0xced8d4=this['editor'],_0x581d55=_0xced8d4['locale'],_0x5f5805=_0xced8d4['plugins']['get']('Dialog'),_0x10b24b=_0xced8d4['plugins']['get']('RevisionTracker');function _0x423365(_0xfc0c1b){_0xced8d4['config']['get']('revisionHistory.requireRevisionName')&&''===_0xfc0c1b['revisionName']?_0xfc0c1b['revisionNameInputView']['errorText']=g(_0x581d55,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xced8d4['plugins']['get'](u)['saveRevision']({'name':_0xfc0c1b['revisionName']}),_0x5f5805['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x423365(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5f5805['show']({'id':'revisionSave','title':g(_0x581d55,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xced8d4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5f5805['hide']()},{'label':g(_0xced8d4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3be9ff){_0x3be9ff['bind']('isEnabled')['to'](_0x10b24b,'isReady',_0x10b24b,'isEnabled',_0xced8d4,'isReadOnly',(_0xb7fd8e,_0x266b13,_0x22686d)=>_0xb7fd8e&&_0x266b13&&!_0x22686d);},'onExecute':()=>_0x423365(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2f7479=this['editor'],_0x26fc80=_0x2f7479['locale'];this['_saveRevisionFormView']=new os(_0x26fc80,_0x2f7479['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x39cfbe{['changeId'];['_model'];constructor(_0xbde4c7,_0x501eee){super(_0xbde4c7),this['_model']=_0x501eee,this['changeId']=_0x501eee['id'];const _0x1ed43b=this['bindTemplate'],_0x1bbf0c=g(_0xbde4c7,_0x501eee['data']['isSuggestion']?'Suggested\x20by':'add'==_0x501eee['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x501eee['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1ed43b['to']('type',_0x54dbf6=>'ck-revision-change__'+_0x54dbf6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1bbf0c}]},{'text':'\x20'+_0x501eee['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4f55d8(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x45d4eb){super(),this['id']=_0x45d4eb['id']||_0x450571(),this['author']=_0x45d4eb['author'],this['type']=_0x45d4eb['type'],this['data']=_0x45d4eb['data']||{},this['rootName']=_0x45d4eb['rootName'],this['set']('createdAt',_0x45d4eb['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(_0x5019c7,_0x18b785){this['newRevisionId']=_0x5019c7,this['oldRevisionId']=_0x18b785,this['changes']=new _0x58d884();}['_setChanges'](_0x32343e){for(const _0x357991 of _0x32343e)this['changes']['add'](_0x357991);}}class m extends _0x425a55{['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[_0x5701d4,_0x208e19,I,V];}constructor(_0x12c7eb){super(_0x12c7eb),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',(_0x20f302,_0x3402f3,_0x4f627a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x30832e=>{for(const _0xb0359e of this['editor']['editing']['view']['document']['roots'])_0x4f627a?_0x30832e['removeClass']('ck-editor__editable__overlay',_0xb0359e):_0x30832e['addClass']('ck-editor__editable__overlay',_0xb0359e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x49f003=>null!==_0x49f003),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1d6b48,_0x49c743,_0x57ca7e)=>_0x1d6b48&&_0x57ca7e?_0x49c743['changes']['getIndex'](_0x57ca7e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3a6507,_0x53e898)=>_0x3a6507?_0x53e898['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x208e19);}['init'](){const _0x2495c0=this['editor'],_0x1d8f73=new pt(_0x2495c0,{'direction':'backward'}),_0x41ea8e=new pt(_0x2495c0,{'direction':'forward'});(_0x2495c0['commands']['add']('showPreviousChange',_0x1d8f73),_0x2495c0['commands']['add']('showNextChange',_0x41ea8e),_0x2495c0['commands']['add']('restoreRevision',new wt(_0x2495c0)),this['on']('change:numberOfChanges',()=>{_0x1d8f73['refresh'](),_0x41ea8e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2495c0['enableReadOnlyMode']('revision-viewer'),_0x2495c0['plugins']['has']('WidgetToolbarRepository'))&&_0x2495c0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1d1638){return await this['_utils']['loadRevisionData'](_0x1d1638,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1d1638);}async['getRevisionRootsAttributes'](_0x3610d2){return await this['_utils']['loadRevisionData'](_0x3610d2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3610d2);}async['compare'](_0x4acfb3,_0x3c4599,_0x397e18=!0x1){if(!this['isEnabled'])return;const _0xbd7ed2=this['diff'],_0x116020=this['repository'],_0x1f0466='string'==typeof _0x4acfb3?_0x116020['getRevision'](_0x4acfb3):_0x4acfb3,_0x3087cd='string'==typeof _0x3c4599?_0x116020['getRevision'](_0x3c4599):_0x3c4599,_0x1a6dd2=_0x1f0466['id'],_0x4b58a8=_0x3087cd?_0x3087cd['id']:null;if(!_0x397e18&&this['diff']&&this['diff']['newRevisionId']===_0x1a6dd2&&this['diff']['oldRevisionId']===_0x4b58a8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1a6dd2,_0x4b58a8);const _0x525e73=this['_getRevisionsRange'](_0x1f0466,_0x3087cd,!0x0)['map'](_0x5d1201=>this['_utils']['loadRevisionData'](_0x5d1201,this['adapter']));return _0x525e73['push'](new Promise(_0x37d11c=>{setTimeout(_0x37d11c,0x14);})),Promise['all'](_0x525e73)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5d7b75=this['_getDiff'](_0x1a6dd2,_0x4b58a8);for(const _0x5eb591 of _0x5d7b75['changes'])this['_changeIdToChange']['set'](_0x5eb591['id'],_0x5eb591);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c7c2e=>{for(const _0x3c8582 of this['editor']['model']['document']['getRootNames']())_0x4c7c2e['detachRoot'](_0x3c8582);for(const _0x406b5c of Object['keys'](_0x5d7b75['model'])){const _0x5e2640=_0x4c7c2e['addRoot'](_0x406b5c);for(const _0x4a0eb3 of Object['keys'](_0x5d7b75['attributes'][_0x406b5c]))_0x4c7c2e['setAttribute'](_0x4a0eb3,_0x5d7b75['attributes'][_0x406b5c][_0x4a0eb3],_0x5e2640);_0x4c7c2e['insert'](_0x5d7b75['model'][_0x406b5c],_0x5e2640,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5d7b75['changes'])),this['isReady']=!0x0;})['catch'](_0x4a79e3=>{console['error'](_0x4a79e3),this['_cleanUp'](),_0xbd7ed2&&(this['diff']=_0xbd7ed2),this['isReady']=!0x0;});}['addRevisionData'](_0x33bf7c,_0x3e5a8f){const _0x55ac92=this['repository']['createRevision'](_0x33bf7c);return _0x55ac92['on']('_update',(_0x46d46b,_0x4cfbfc,_0x3ac565)=>_0x3e5a8f(_0x4cfbfc,_0x3ac565,_0x55ac92)),this['repository']['addRevision'](_0x55ac92),_0x55ac92;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x6dd15a=>{for(const _0x547376 of this['editor']['model']['document']['getRootNames']())_0x6dd15a['detachRoot'](_0x547376);});}['_sortAndFilterDiffChanges'](_0x43ec9a){const _0xdc666f=[],_0x159daa=new Map();for(const _0x4e8b57 of this['editor']['model']['document']['getRootNames']()){const _0x4a346d=this['editor']['editing']['view']['getDomRoot'](_0x4e8b57);if(!_0x4a346d)continue;const _0x2ec77c=_0x4a346d['getClientRects']()['item'](0x0);_0x2ec77c&&(_0xdc666f['push'](_0x4e8b57),_0x159daa['set'](_0x4e8b57,_0x2ec77c));}return _0xdc666f['sort']((_0x37197a,_0x531207)=>{const _0x6bd5e1=_0x159daa['get'](_0x37197a),_0x258bb7=_0x159daa['get'](_0x531207);return _0x6bd5e1['y']-_0x258bb7['y']||_0x6bd5e1['x']-_0x258bb7['x'];}),(_0x43ec9a=_0x43ec9a['filter'](_0x178e85=>_0xdc666f['includes'](_0x178e85['rootName'])))['sort']((_0x1e19d6,_0x4ad16c)=>_0xdc666f['indexOf'](_0x1e19d6['rootName'])-_0xdc666f['indexOf'](_0x4ad16c['rootName'])),_0x43ec9a;}['_makeTape'](_0x1d3cc1){const _0x30e187=Array['from'](_0x1d3cc1['markers'])['filter'](([_0x422ae2,_0x12e8b8])=>_0x422ae2['startsWith']('revision:')&&!_0x12e8b8['isCollapsed']),_0x24675e=Array['from'](this['editor']['model']['createRangeIn'](_0x1d3cc1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x30e187['length'])for(const _0x5395fc of _0x24675e){const [_0x5a454c,_0x3e3de5]=_0x30e187[0x0],[,_0x234c04,_0x346178]=_0x5a454c['split'](':');if(_0x3e3de5['end']['isEqual'](_0x5395fc['nextPosition'])&&_0x30e187['shift'](),(_0x5395fc['previousPosition']['isEqual'](_0x3e3de5['start'])||_0x5395fc['previousPosition']['isAfter'](_0x3e3de5['start']))&&('insertion'==_0x234c04?_0x5395fc['isAdded']={'userId':_0x346178}:'deletion'==_0x234c04&&(_0x5395fc['isRemoved']={'userId':_0x346178})),0x0==_0x30e187['length'])break;}return _0x24675e;}['_refreshStartEndIndex'](_0x5699c3){const _0x511602=new Map();for(let _0x2df97c=0x0;_0x2df97c<_0x5699c3['length'];_0x2df97c++)'text'===_0x5699c3[_0x2df97c]['type']?(_0x5699c3[_0x2df97c]['item']['startIndex']=_0x2df97c,_0x5699c3[_0x2df97c]['item']['endIndex']=_0x2df97c):('elementStart'===_0x5699c3[_0x2df97c]['type']?_0x5699c3[_0x2df97c]['item']['startIndex']=_0x2df97c:'elementEnd'===_0x5699c3[_0x2df97c]['type']&&(_0x5699c3[_0x2df97c]['item']['endIndex']=_0x2df97c),_0x511602['set'](_0x5699c3[_0x2df97c]['id'],_0x2df97c));for(const _0x432ace of _0x511602['values']())'elementStart'===_0x5699c3[_0x432ace]['type']?_0x5699c3[_0x432ace]['item']['endIndex']=_0x511602['get'](_0x5699c3[_0x432ace]['pairId']):'elementEnd'===_0x5699c3[_0x432ace]['type']&&(_0x5699c3[_0x432ace]['item']['startIndex']=_0x511602['get'](_0x5699c3[_0x432ace]['pairId']));}['_processTape'](_0x2565af){for(let _0x411db4=0x0;_0x411db4<_0x2565af['length'];_0x411db4++){if('elementStart'===_0x2565af[_0x411db4]['type'])_0x2565af[_0x411db4]['item']['startIndex']=_0x411db4;else{if('elementEnd'===_0x2565af[_0x411db4]['type']){_0x2565af[_0x411db4]['item']['endIndex']=_0x411db4;const _0x161ad0=_0x2565af[_0x411db4]['item']['startIndex'];_0x2565af[_0x161ad0]['pairId']=_0x2565af[_0x411db4]['id'],_0x2565af[_0x411db4]['pairId']=_0x2565af[_0x161ad0]['id'];}else _0x2565af[_0x411db4]['item']['startIndex']=_0x411db4,_0x2565af[_0x411db4]['item']['endIndex']=_0x411db4,_0x2565af[_0x411db4]['pairId']=null;}_0x2565af[_0x411db4]['markersStart']||(_0x2565af[_0x411db4]['markersStart']=[],_0x2565af[_0x411db4]['markersEnd']=[]);}}['_markInsertions'](_0x425cfc,_0x53a200){const _0x4670d8=_0x425cfc['filter'](_0x3b7775=>!_0x3b7775['isAdded']);for(let _0x202f54=0x0;_0x202f54<_0x53a200['length'];_0x202f54++)_0x53a200[_0x202f54]['isAdded']&&(_0x4670d8[_0x202f54]['isAdded']=_0x53a200[_0x202f54]['isAdded']);}['_getDiff'](_0x140820,_0x58f30f=null){const _0x4f1a90=this['repository']['getRevision'](_0x140820),_0x15e657=_0x58f30f?this['repository']['getRevision'](_0x58f30f):null,_0x3ec375=this['_getRevisionsRange'](_0x4f1a90,_0x15e657),_0x28127a=_0x3ec375[_0x3ec375['length']-0x1],_0x364e29=new Map(),_0x16b2a4={'model':{},'attributes':{},'changes':[]},_0x5e557f=new Set(),_0x1712dc=new Map();for(let _0x2cd78a=_0x3ec375['length']-0x1;_0x2cd78a>=0x0;_0x2cd78a--){const _0x496467=_0x3ec375[_0x2cd78a];for(const _0x3c043c of Object['keys'](_0x496467['diffData']))if(_0x496467['diffData'][_0x3c043c]['attachChange']){const _0x5ad81f=_0x496467['diffData'][_0x3c043c]['attachChange'];_0x5ad81f['isAttached']?(_0x5e557f['add'](_0x3c043c),_0x1712dc['has'](_0x3c043c)&&_0x1712dc['get'](_0x3c043c)['userId']==_0x5ad81f['userId']?_0x1712dc['delete'](_0x3c043c):_0x1712dc['set'](_0x3c043c,_0x5ad81f)):_0x1712dc['has'](_0x3c043c)?(_0x5e557f['delete'](_0x3c043c),_0x1712dc['delete'](_0x3c043c)):(_0x5e557f['add'](_0x3c043c),_0x1712dc['set'](_0x3c043c,_0x5ad81f));}else _0x5e557f['add'](_0x3c043c);}for(const _0x5b6f99 of _0x5e557f){const _0x3cca1b=_0x1712dc['has'](_0x5b6f99)&&!_0x1712dc['get'](_0x5b6f99)['isAttached'];let _0x1953c2=_0x3cca1b?_0x3ec375['length']-0x1:0x0;const _0x551084=_0x3cca1b?-0x1:0x1;for(;_0x3ec375[_0x1953c2];){const _0x552e50=_0x3ec375[_0x1953c2];if(_0x552e50['diffData'][_0x5b6f99]){const _0x5dbe39=_0x3cca1b?_0x552e50['diffData'][_0x5b6f99]['attributesBefore']:_0x552e50['diffData'][_0x5b6f99]['attributesAfter'];_0x16b2a4['attributes'][_0x5b6f99]=_0x5dbe39?_0x385a22(_0x5dbe39):{};break;}_0x1953c2+=_0x551084;}}for(const _0x19ffda of _0x3ec375){_0x19ffda['model']={};for(const _0x36377e of _0x19ffda['authors'])_0x364e29['set'](_0x36377e['id'],_0x36377e);for(const _0x220d09 of _0x5e557f){const _0x537e18=_0x19ffda['diffData'][_0x220d09]?_0x19ffda['diffData'][_0x220d09]['insertions']:'[]',_0x2ec440=_0x19ffda['diffData'][_0x220d09]?_0x19ffda['diffData'][_0x220d09]['deletions']:'[]';_0x19ffda['model'][_0x220d09]={'insertions':this['_utils']['_makeModelFromViewString'](_0x537e18),'deletions':this['_utils']['_makeModelFromViewString'](_0x2ec440)};}}for(const _0x7e8748 of _0x5e557f){let _0x131a51=null,_0x364ec4=0x0;const _0x4467fb=new Map(Array['from'](_0x4f1a90['model'][_0x7e8748]['insertions']['markers'])['filter'](([_0x1911c6])=>!_0x1911c6['startsWith']('revision:')));let _0x2a0f98=0x0;for(const _0x404da8 of _0x3ec375){const _0x276859=this['_makeTape'](_0x404da8['model'][_0x7e8748]['insertions']);_0x404da8==_0x4f1a90?(_0x131a51=_0x276859,_0x364ec4=_0x131a51['length'],_0x131a51['forEach'](_0x5314b6=>{_0x5314b6['id']=_0x2a0f98++;}),this['_processTape'](_0x131a51)):this['_markInsertions'](_0x131a51,_0x276859);const _0x26f64e=_0x131a51['filter'](_0x1f5055=>!_0x1f5055['isAdded'])['map'](_0x4ee8a5=>_0x4ee8a5['id']);let _0x82f469=0x0;const _0x3b2a3f=this['_makeTape'](_0x404da8['model'][_0x7e8748]['deletions']);_0x3b2a3f['forEach'](_0x3aaab1=>{_0x3aaab1['isRemoved']?_0x3aaab1['id']=_0x364ec4++:_0x3aaab1['id']=_0x26f64e[_0x82f469++];}),this['_processTape'](_0x3b2a3f),this['_setDistance'](_0x131a51,'isAdded'),this['_setDistance'](_0x3b2a3f,'isRemoved'),_0x404da8==_0x4f1a90&&this['_markMarkers'](_0x131a51,_0x4467fb),_0x131a51=this['_joinTapes'](_0x131a51,_0x3b2a3f),this['_refreshStartEndIndex'](_0x131a51),this['_setDistance'](_0x131a51,'isRemoved');}_0x131a51=_0x131a51['filter'](_0x272661=>!(_0x272661['isAdded']&&_0x272661['isRemoved']));const _0x25ce2d=new Map(_0x28127a['model'][_0x7e8748]['deletions']['markers']),_0x52c337=new Set(_0x4467fb['keys']());for(const _0x28f9e6 of _0x25ce2d['keys']())_0x52c337['delete'](_0x28f9e6);this['_markSuggestions'](_0x131a51,_0x52c337),this['_fixObsoleteTags'](_0x131a51),_0x131a51=this['_removeMissingPairs'](_0x131a51),_0x131a51=this['_markMismatchedRemovedTags'](_0x131a51),_0x131a51=this['_removeUnsupportedChanges'](_0x131a51);const {root:_0xaedb49,changes:_0xbe72d6}=this['_makeModelFromTape'](_0x131a51,_0x364e29,_0x7e8748);_0x16b2a4['model'][_0x7e8748]=_0xaedb49;const _0x929643=_0x1712dc['get'](_0x7e8748);if(_0x929643){const _0x352b01=_0x364e29['get'](_0x929643['userId']),_0x197ea9=new r({'author':_0x352b01,'type':_0x929643['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x7e8748});_0xbe72d6['unshift'](_0x197ea9),_0x16b2a4['attributes'][_0x7e8748]['revisionHistoryAttachChange']=_0x197ea9['id'];}_0x16b2a4['changes']=_0x16b2a4['changes']['concat'](_0xbe72d6);}return _0x16b2a4;}['_markMarkers'](_0x777421,_0x49b778){for(let _0x48acda=0x0;_0x48acda<_0x777421['length'];_0x48acda++)for(const [_0xbfe1be,_0x39df95]of _0x49b778)!_0x39df95['isCollapsed']&&_0x39df95['start']['isEqual'](_0x777421[_0x48acda]['previousPosition'])&&_0x777421[_0x48acda]['markersStart']['push'](_0xbfe1be),_0x39df95['end']['isEqual'](_0x777421[_0x48acda]['nextPosition'])&&_0x777421[_0x48acda]['markersEnd']['push'](_0xbfe1be);}['_joinTapes'](_0x38f6a7,_0x538d19){let _0x3d82a1=[],_0x4404ba=0x0,_0x5249e7=0x0;for(;_0x4404ba<_0x38f6a7['length']||_0x5249e7<_0x538d19['length'];){const _0x5547fe=_0x38f6a7[_0x4404ba]||{},_0x58d62d=_0x538d19[_0x5249e7]||{};if(_0x5547fe['id']==_0x58d62d['id'])_0x4404ba++,_0x5249e7++,_0x3d82a1['push'](_0x5547fe);else{if(_0x58d62d['isRemoved']&&_0x5547fe['isAdded']){const {commonTape:_0x2d089f,iEnd:_0x3e5240,jEnd:_0x50dc8b}=this['_threeWayMerge'](_0x38f6a7,_0x4404ba,_0x538d19,_0x5249e7);_0x3d82a1=_0x3d82a1['concat'](_0x2d089f),_0x4404ba=_0x3e5240,_0x5249e7=_0x50dc8b;}else _0x58d62d['isRemoved']?(_0x5249e7++,_0x3d82a1['push'](_0x58d62d)):(_0x4404ba++,_0x3d82a1['push'](_0x5547fe));}}return _0x3d82a1;}['_markSuggestions'](_0x9e14fa,_0x3552bb){const _0x34fb38=[];for(let _0x1b0b68=0x0;_0x1b0b68<_0x9e14fa['length'];_0x1b0b68++){for(let _0x49d2f8=0x0;_0x49d2f8<_0x9e14fa[_0x1b0b68]['markersStart']['length'];_0x49d2f8++){const _0x10b8a4=_0x9e14fa[_0x1b0b68]['markersStart'][_0x49d2f8];if(!_0x3552bb['has'](_0x10b8a4))continue;const {group:_0x14aa61,type:_0x4c93c6,authorId:_0x3c08ce}=_0x2b92f9(_0x10b8a4);'revision-suggestion'!=_0x14aa61||'insertion'!=_0x4c93c6&&'deletion'!=_0x4c93c6||(_0x34fb38['unshift']({'type':_0x4c93c6,'name':_0x10b8a4,'userId':_0x3c08ce}),_0x9e14fa[_0x1b0b68]['markersStart']['splice'](_0x49d2f8,0x1),_0x49d2f8--);}_0xa81b50(_0x9e14fa[_0x1b0b68]);for(let _0x52b361=0x0;_0x52b361<_0x9e14fa[_0x1b0b68]['markersEnd']['length'];_0x52b361++){const _0x26fd26=_0x9e14fa[_0x1b0b68]['markersEnd'][_0x52b361];if(!_0x3552bb['has'](_0x26fd26))continue;const {group:_0x154e98,type:_0x2c8860}=_0x2b92f9(_0x26fd26);if('revision-suggestion'!=_0x154e98||'insertion'!=_0x2c8860&&'deletion'!=_0x2c8860)continue;_0x9e14fa[_0x1b0b68]['markersEnd']['splice'](_0x52b361,0x1),_0x52b361--;const _0x303f4d=_0x34fb38['findIndex'](_0x46fd4b=>_0x46fd4b['name']==_0x26fd26);_0x303f4d>-0x1&&_0x34fb38['splice'](_0x303f4d,0x1);}}function _0x2b92f9(_0x32d58d){const _0x26e9bb=_0x32d58d['split'](':');return{'group':_0x26e9bb[0x0],'type':_0x26e9bb[0x1],'subType':_0x26e9bb['length']>=0x5?_0x26e9bb[0x2]:null,'id':_0x26e9bb['length']<0x5?_0x26e9bb[0x2]:_0x26e9bb[0x3],'authorId':_0x26e9bb['length']<0x5?_0x26e9bb[0x3]:_0x26e9bb[0x4],'markerCount':0x6==_0x26e9bb['length']?_0x26e9bb[0x5]:null};}function _0xa81b50(_0x1a0a39){for(let _0x1e61f5=0x0;_0x1e61f5<_0x34fb38['length'];_0x1e61f5++){if(_0x1a0a39['isAdded']&&'insertion'==_0x34fb38[_0x1e61f5]['type'])return _0x1a0a39['isAddSuggestion']=_0x34fb38[_0x1e61f5],void delete _0x1a0a39['isAdded'];if(!_0x1a0a39['isAdded']&&!_0x1a0a39['isRemoved']&&'deletion'==_0x34fb38[_0x1e61f5]['type'])return void(_0x1a0a39['isRemoveSuggestion']=_0x34fb38[_0x1e61f5]);}}}['_setDistance'](_0x2b5604,_0x2d3bf0){let _0x3ee214=0x0,_0x37ad33=!0x1;const _0x58dd88=new Map();for(const _0x33436a of _0x2b5604)_0x33436a[_0x2d3bf0]?_0x37ad33&&(_0x3ee214++,_0x37ad33=!0x1):(_0x3ee214++,_0x37ad33=!0x0),_0x58dd88['set'](_0x33436a['id'],_0x3ee214);for(let _0x3a420f=0x0;_0x3a420f<_0x2b5604['length'];_0x3a420f++){if('isRemoved'==_0x2d3bf0&&_0x2b5604[_0x3a420f]['isAdded']||'isAdded'==_0x2d3bf0&&_0x2b5604[_0x3a420f]['isRemoved'])continue;if('text'==_0x2b5604[_0x3a420f]['type']){_0x2b5604[_0x3a420f]['distance']=0x0;continue;}const _0x1ec9e5=_0x58dd88['get'](_0x2b5604[_0x3a420f]['pairId']),_0x30be2a=_0x58dd88['get'](_0x2b5604[_0x3a420f]['id']);_0x2b5604[_0x3a420f]['distance']=_0x1ec9e5-_0x30be2a;}}['_getRevisionsRange'](_0x3cb1c7,_0x372afc,_0x2d117b=!0x1){const _0x1c3f53=[];let _0xd835b9=this['repository']['getIndex'](_0x3cb1c7),_0x395c55=this['repository']['getIndex'](_0x372afc);for(-0x1==_0x395c55&&(_0x395c55=this['repository']['_revisions']['length'],_0x2d117b=!0x1);_0xd835b9<_0x395c55;)_0x1c3f53['push'](this['repository']['getRevision'](_0xd835b9)),_0xd835b9++;return _0x2d117b&&_0x1c3f53['push'](this['repository']['getRevision'](_0xd835b9)),_0x1c3f53;}['_threeWayMerge'](_0x5d3e11,_0x3a283e,_0xc38716,_0x101498){const _0x21df91=this['editor']['model']['schema'];let _0xe7ed8e=_0x3a283e;for(;_0x5d3e11[_0xe7ed8e]&&_0x5d3e11[_0xe7ed8e]['isAdded'];)_0xe7ed8e++;let _0x54c657=_0x101498;for(;_0xc38716[_0x54c657]&&_0xc38716[_0x54c657]['isRemoved'];)_0x54c657++;_0x43eda9(_0x5d3e11,_0x3a283e,_0xe7ed8e),_0x43eda9(_0xc38716,_0x101498,_0x54c657);const _0x21825f=_0xc38716['slice'](_0x101498,_0x54c657)['concat'](_0x5d3e11['slice'](_0x3a283e,_0xe7ed8e));return _0x21825f['sort']((_0x2c57bc,_0x5663fa)=>_0x2c57bc['side']!=_0x5663fa['side']?_0x2c57bc['side']-_0x5663fa['side']:_0x2c57bc['level']!=_0x5663fa['level']?_0x2c57bc['level']-_0x5663fa['level']:_0x2c57bc['distance']!=_0x5663fa['distance']?_0x5663fa['distance']-_0x2c57bc['distance']:!!_0x2c57bc['isAdded']!=!!_0x5663fa['isAdded']?-0x1==_0x2c57bc['side']||0x0==_0x2c57bc['side']?_0x2c57bc['isAdded']?-0x1:0x1:_0x2c57bc['isAdded']?0x1:-0x1:_0x2c57bc['index']-_0x5663fa['index']),{'commonTape':_0x21825f,'iEnd':_0xe7ed8e,'jEnd':_0x54c657};function _0x43eda9(_0x2a2552,_0x224b62,_0x43fd5c){let _0x3d34e9=-0x1,_0x486033=Number['POSITIVE_INFINITY'],_0x45d4d3=!0x0;for(let _0x107f8a=_0x224b62;_0x107f8a<_0x43fd5c;_0x107f8a++)if(_0x21df91['isInline'](_0x2a2552[_0x107f8a]['item'])||(_0x45d4d3=!0x1),_0x2a2552[_0x107f8a]['item']['startIndex']<_0x224b62&&(_0x3d34e9=_0x107f8a),_0x2a2552[_0x107f8a]['item']['endIndex']>=_0x43fd5c){_0x486033=_0x107f8a;break;}_0x45d4d3&&(_0x3d34e9=_0x43fd5c-0x1);for(let _0x5398d7=_0x224b62;_0x5398d7<_0x43fd5c;_0x5398d7++)_0x2a2552[_0x5398d7]['side']=_0x5398d7<=_0x3d34e9?-0x1:_0x5398d7<_0x486033?0x0:0x1,_0x2a2552[_0x5398d7]['index']=_0x5398d7;let _0x485b4a=0x0;for(let _0x1e0471=_0x224b62;_0x1e0471<=_0x3d34e9;_0x1e0471++)0x0==_0x2a2552[_0x1e0471]['distance']?_0x2a2552[_0x1e0471]['level']=_0x485b4a:(_0x485b4a++,_0x2a2552[_0x1e0471]['level']=_0x485b4a,_0x485b4a++);for(let _0xf8c5f=_0x224b62;_0xf8c5f<_0x43fd5c;_0xf8c5f++)0x0==_0x2a2552[_0xf8c5f]['side']&&(_0x2a2552[_0xf8c5f]['level']=_0x485b4a);_0x485b4a=0x0;for(let _0x5a6580=_0x43fd5c-0x1;_0x5a6580>=_0x486033;_0x5a6580--)0x0==_0x2a2552[_0x5a6580]['distance']?_0x2a2552[_0x5a6580]['level']=_0x485b4a:(_0x485b4a--,_0x2a2552[_0x5a6580]['level']=_0x485b4a,_0x485b4a--);}}['_fixObsoleteTags'](_0x425d5c){const _0xa95cc=new Map(),_0x5f28d9=this['editor']['model']['schema'];for(let _0x1ab643=0x1;_0x1ab643<_0x425d5c['length'];_0x1ab643++){let _0x550552,_0x26cc42,_0x8bfb36;const _0x468f5e=_0x425d5c[_0x1ab643],_0x9f7c54=_0x425d5c[_0x1ab643-0x1];if('text'==_0x468f5e['type'])continue;if(_0x468f5e['type']!=_0x9f7c54['type'])continue;if(!_0x5f28d9['isBlock'](_0x9f7c54['item'])||_0x5f28d9['isLimit'](_0x9f7c54['item']))continue;if(!_0x5f28d9['isBlock'](_0x468f5e['item'])||_0x5f28d9['isLimit'](_0x468f5e['item']))continue;if((_0x425d5c[_0x1ab643]['isAdded']||_0x425d5c[_0x1ab643]['isAddSuggestion'])&&_0x425d5c[_0x1ab643-0x1]['isRemoved'])_0x550552=_0x425d5c[_0x1ab643],_0x26cc42=_0x425d5c[_0x1ab643-0x1],_0x8bfb36=_0x1ab643-0x1;else{if(!_0x425d5c[_0x1ab643]['isRemoved']||!_0x425d5c[_0x1ab643-0x1]['isAdded']&&!_0x425d5c[_0x1ab643-0x1]['isAddSuggestion'])continue;_0x550552=_0x425d5c[_0x1ab643-0x1],_0x26cc42=_0x425d5c[_0x1ab643],_0x8bfb36=_0x1ab643;}const _0x92093b=_0x550552['level']==_0x26cc42['level'],_0x160b6d=Math['abs'](_0x550552['level'])<Math['abs'](_0x26cc42['level'])&&0x0==_0x26cc42['distance'];(_0x92093b||_0x160b6d)&&(_0xa95cc['set'](_0x26cc42['id'],_0x550552['id']),_0x425d5c['splice'](_0x8bfb36,0x1),_0x1ab643--,_0x550552['isAdded']=!0x1);}for(let _0x5dc571=0x0;_0x5dc571<_0x425d5c['length'];_0x5dc571++)_0xa95cc['has'](_0x425d5c[_0x5dc571]['pairId'])&&(_0x425d5c[_0x5dc571]['pairId']=_0xa95cc['get'](_0x425d5c[_0x5dc571]['pairId']));}['_removeMissingPairs'](_0xb1bd85){const _0x10537a=new Set(_0xb1bd85['map'](_0x258c19=>_0x258c19['id']));for(let _0x54548d=0x0;_0x54548d<_0xb1bd85['length'];_0x54548d++)_0x10537a['has'](_0xb1bd85[_0x54548d]['pairId'])||0x0==_0xb1bd85[_0x54548d]['distance']||(_0xb1bd85[_0x54548d]['isIncorrect']=!0x0);return _0xb1bd85['filter'](_0x3f9918=>!_0x3f9918['isIncorrect']);}['_markMismatchedRemovedTags'](_0x517c85){const _0x4f3264=new Set();for(let _0x5bca2f=0x0;_0x5bca2f<_0x517c85['length'];_0x5bca2f++){if(_0x4f3264['has'](_0x517c85[_0x5bca2f]['id'])&&_0x517c85[_0x5bca2f]['isRemoved']&&(_0x517c85[_0x5bca2f]['isIncorrect']=!0x0),_0x517c85[_0x5bca2f]['isIncorrect'])continue;if(0x0==_0x517c85[_0x5bca2f]['distance'])continue;if('elementStart'!=_0x517c85[_0x5bca2f]['type'])continue;if(null==_0x517c85[_0x5bca2f]['pairId'])continue;let _0x85116d=_0x5bca2f+0x1,_0x239799=0x0;for(;_0x517c85[_0x85116d]['id']!=_0x517c85[_0x5bca2f]['pairId'];)'elementStart'==_0x517c85[_0x85116d]['type']?_0x239799++:'elementEnd'==_0x517c85[_0x85116d]['type']&&_0x239799--,_0x85116d++;if(0x0!=_0x239799){if(_0x517c85[_0x5bca2f]['isRemoved'])_0x517c85[_0x5bca2f]['isIncorrect']=!0x0;else{for(;_0x85116d!=_0x5bca2f;)_0x517c85[_0x85116d]['isRemoved']&&0x0!=_0x517c85[_0x85116d]['distance']&&(_0x517c85[_0x85116d]['isIncorrect']=!0x0,_0x4f3264['add'](_0x517c85[_0x85116d]['pairId'])),_0x85116d--;}}}return _0x517c85['filter'](_0x5d3036=>!_0x5d3036['isIncorrect']);}['_removeUnsupportedChanges'](_0x1afa85){const _0x197bee=this['editor']['model']['schema'];for(let _0x2fcf5e=0x0;_0x2fcf5e<_0x1afa85['length'];_0x2fcf5e++){if(!(_0x1afa85[_0x2fcf5e]['isAdded']||_0x1afa85[_0x2fcf5e]['isAddSuggestion']||_0x1afa85[_0x2fcf5e]['isRemoved']||_0x1afa85[_0x2fcf5e]['isRemoveSuggestion']))continue;if(0x0==_0x1afa85[_0x2fcf5e]['distance'])continue;const _0xbf010c=_0x1afa85[_0x2fcf5e]['item'];_0x197bee['isBlock'](_0xbf010c)||_0x197bee['isLimit'](_0xbf010c)||(_0x1afa85[_0x2fcf5e]['isAdded']&&delete _0x1afa85[_0x2fcf5e]['isAdded'],_0x1afa85[_0x2fcf5e]['isAddSuggestion']&&delete _0x1afa85[_0x2fcf5e]['isAddSuggestion'],_0x1afa85[_0x2fcf5e]['isRemoveSuggestion']&&delete _0x1afa85[_0x2fcf5e]['isRemoveSuggestion'],_0x1afa85[_0x2fcf5e]['isRemoved']&&(_0x1afa85[_0x2fcf5e]['isIncorrect']=!0x0));}return _0x1afa85['filter'](_0x454050=>!_0x454050['isIncorrect']);}['_makeModelFromTape'](_0x54e49e,_0x83720b,_0xbf47b0){const _0x33d63d=new gt(),_0x526c5f=[],_0x565656=new Map(),_0x52f176=this['editor']['model'],_0x2be5ff=_0x52f176['schema'],_0x33b331=[_0x33d63d],_0x12b300={},_0x28cda5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x200f94=null;const _0x209771=[0x0];for(let _0x5f168f=0x0;_0x5f168f<_0x54e49e['length'];_0x5f168f++)if('elementStart'===_0x54e49e[_0x5f168f]['type']){_0x54e49e[_0x5f168f]['previousPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771);const _0x1adb7c=new ut(_0x54e49e[_0x5f168f]['item']['name'],_0x54e49e[_0x5f168f]['item']['getAttributes']());_0x33b331[0x0]['_appendChild'](_0x1adb7c),_0x209771['push'](0x0),_0x33b331['unshift'](_0x1adb7c),_0x54e49e[_0x5f168f]['nextPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771);}else'elementEnd'===_0x54e49e[_0x5f168f]['type']?(_0x33b331['shift'](),_0x54e49e[_0x5f168f]['previousPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771),_0x209771['pop'](),_0x209771[_0x209771['length']-0x1]++,_0x54e49e[_0x5f168f]['nextPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771)):(_0x54e49e[_0x5f168f]['previousPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771),_0x200f94?_0x200f94['_data']+=_0x54e49e[_0x5f168f]['item']['data']:_0x200f94=new mt(_0x54e49e[_0x5f168f]['item']['data'],_0x54e49e[_0x5f168f]['item']['getAttributes']()),_0x54e49e[_0x5f168f+0x1]&&'text'===_0x54e49e[_0x5f168f+0x1]['type']&&_0xe19954(_0x200f94,_0x54e49e[_0x5f168f+0x1]['item'])||(_0x33b331[0x0]['_appendChild'](_0x200f94),_0x200f94=null),_0x209771[_0x209771['length']-0x1]+=_0x54e49e[_0x5f168f]['item']['offsetSize'],_0x54e49e[_0x5f168f]['nextPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771));for(let _0x2f3d4a=0x0;_0x2f3d4a<_0x54e49e['length'];_0x2f3d4a++){const _0x5a9cfd=_0x54e49e[_0x2f3d4a]['previousPosition'],_0xc81ad4=_0x54e49e[_0x2f3d4a]['nextPosition'];for(const _0x5bfe31 of _0x54e49e[_0x2f3d4a]['markersStart'])_0x565656['set'](_0x5bfe31,{'start':_0x5a9cfd,'end':null});_0x5ab605('isRemoveSuggestion',_0x2f3d4a,_0x5a9cfd,_0xc81ad4),_0x5ab605('isAddSuggestion',_0x2f3d4a,_0x5a9cfd,_0xc81ad4),_0x5ab605('isRemoved',_0x2f3d4a,_0x5a9cfd,_0xc81ad4),_0x5ab605('isAdded',_0x2f3d4a,_0x5a9cfd,_0xc81ad4);for(const _0x5ca94b of _0x54e49e[_0x2f3d4a]['markersEnd']){const _0x3c3e79=_0x565656['get'](_0x5ca94b);_0x3c3e79?_0x3c3e79['end']=_0xc81ad4:_0x565656['set'](_0x5ca94b,{'start':_0xc81ad4,'end':_0xc81ad4});}}for(const [_0x1a616a,_0x377112]of _0x565656){const _0x1057dd=this['editor']['model']['createRange'](_0x377112['start'],_0x377112['end']);_0x33d63d['markers']['set'](_0x1a616a,_0x1057dd);}return _0x526c5f['sort']((_0x3b6595,_0x58cd88)=>{const _0x4f81e3=_0x33d63d['markers']['get']('revision:'+_0x3b6595['id']),_0x49fb9d=_0x33d63d['markers']['get']('revision:'+_0x58cd88['id']);return _0x4f81e3['start']['isBefore'](_0x49fb9d['start'])?-0x1:_0x4f81e3['start']['isAfter'](_0x49fb9d['start'])?0x1:_0x4f81e3['end']['isBefore'](_0x49fb9d['end'])?-0x1:_0x4f81e3['end']['isAfter'](_0x49fb9d['end'])?0x1:'add'===_0x3b6595['type']?-0x1:0x1;}),{'root':_0x33d63d,'changes':_0x526c5f};function _0x5ab605(_0x6e9196,_0x942ddf,_0x483a23,_0x5f34fa){const _0x28e494=!!_0x54e49e[_0x942ddf][_0x6e9196],_0x8c901d=_0x28e494?_0x54e49e[_0x942ddf][_0x6e9196]['userId']:null,_0x2b554c=_0x942ddf===_0x54e49e['length']-0x1,_0x1aba3f=_0x28cda5[_0x6e9196][0x0],_0x4512b4=_0x2be5ff['isObject'](_0x54e49e[_0x942ddf]['item']);!_0x12b300[_0x6e9196]&&_0x28e494?_0x12b300[_0x6e9196]={'start':_0x483a23,'tapeItem':_0x54e49e[_0x942ddf],'userId':_0x8c901d,'type':_0x6e9196}:_0x12b300[_0x6e9196]&&!_0x28e494?(_0x12b300[_0x6e9196]['end']=_0x483a23,_0x5dfa21(_0x12b300[_0x6e9196]),_0x12b300[_0x6e9196]=null):_0x12b300[_0x6e9196]&&_0x28e494&&_0x12b300[_0x6e9196]['userId']!==_0x8c901d&&(_0x12b300[_0x6e9196]['end']=_0x483a23,_0x1aba3f&&_0x1aba3f['userId']===_0x12b300[_0x6e9196]['userId']||_0x5dfa21(_0x12b300[_0x6e9196]),_0x12b300[_0x6e9196]={'start':_0x483a23,'tapeItem':_0x54e49e[_0x942ddf],'userId':_0x8c901d,'type':_0x6e9196}),_0x12b300[_0x6e9196]&&_0x4512b4&&('elementStart'!==_0x54e49e[_0x942ddf]['type']||_0x1aba3f&&_0x1aba3f['userId']===_0x8c901d||_0x28cda5[_0x6e9196]['unshift']({'userId':_0x8c901d,'object':_0x54e49e[_0x942ddf]['item'],'change':_0x12b300[_0x6e9196]}),'elementEnd'===_0x54e49e[_0x942ddf]['type']&&_0x1aba3f&&_0x1aba3f['object']===_0x54e49e[_0x942ddf]['item']&&(_0x28cda5[_0x6e9196]['shift'](),_0x12b300[_0x6e9196]=_0x1aba3f['change'])),_0x12b300[_0x6e9196]&&_0x2b554c&&(_0x12b300[_0x6e9196]['end']=_0x5f34fa,_0x5dfa21(_0x12b300[_0x6e9196]),_0x12b300[_0x6e9196]=null);}function _0x5dfa21({start:_0x597485,end:_0x50f01e,tapeItem:_0x2ab816,userId:_0x2463f5,type:_0x11b73e}){const _0x48a827=_0x2ab816['item'],_0x3b2bc9=_0x52f176['schema']['isBlock'](_0x48a827)&&!_0x52f176['schema']['isLimit'](_0x48a827),_0x3216a4=_0x597485['nodeAfter']==_0x50f01e['parent']&&_0x50f01e['isAtStart'];if(_0x3b2bc9&&_0x3216a4)return;const _0x418d72=_0x52f176['createRange'](_0x597485,_0x50f01e),_0x302f23=_0x83720b['get'](_0x2463f5),_0xb4059a=new r({'author':_0x302f23,'type':'isAdded'==_0x11b73e||'isAddSuggestion'==_0x11b73e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x11b73e||'isRemoveSuggestion'==_0x11b73e},'createdAt':new Date(),'rootName':_0xbf47b0});_0x526c5f['push'](_0xb4059a),_0x33d63d['markers']['set']('revision:'+_0xb4059a['id'],_0x418d72);}function _0xe19954(_0x4ab999,_0x4017b6){const _0x341c58=_0x4ab999['getAttributes'](),_0x26bd1a=_0x4017b6['getAttributes']();for(const _0x1378d3 of _0x341c58){if(_0x1378d3[0x1]!==_0x4017b6['getAttribute'](_0x1378d3[0x0]))return!0x1;_0x26bd1a['next']();}return _0x26bd1a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x482302=>{const _0x38f7cc=_0x482302['markerName']['split'](':')[0x1],_0x2280ae=this['_getChangeFromId'](_0x38f7cc);if(!_0x2280ae)return null;const _0x3c74c0='add'==_0x2280ae['type']?'insertion':'deletion',_0x42ef74=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c74c0];return _0x2280ae['data']['isSuggestion']&&_0x42ef74['push']('ck-suggestion-marker-'+_0x3c74c0+'-new'),this['activeChange']==_0x2280ae&&_0x42ef74['push']('ck-suggestion-marker--active'),{'classes':_0x42ef74,'attributes':{'data-change-id':_0x38f7cc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3ac511=>{_0x3ac511['on']('element:pre',(_0x32c02e,_0x359486,_0xec3179)=>{const _0x5beaf0=_0x359486['viewItem']['getChild'](0x0);if(!_0x5beaf0||!_0x5beaf0['is']('element','code'))return;if(!_0xec3179['consumable']['consume'](_0x5beaf0,{'attributes':['vid_start','vid_end']}))return;const _0x42e9df=_0x359486['modelRange']['start']['nodeAfter'];_0xec3179['writer']['setAttribute']('vid_start',_0x5beaf0['getAttribute']('vid_start'),_0x42e9df),_0xec3179['writer']['setAttribute']('vid_end',_0x5beaf0['getAttribute']('vid_end'),_0x42e9df);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x553e7d=>{_0x553e7d['on']('element',(_0x289642,_0x4985f0,_0x1968ef)=>{if(!_0x1968ef['consumable']['consume'](_0x4985f0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4985f0['modelRange']['isCollapsed'])return;const _0x52067d=_0x4985f0['modelRange']['start']['nodeAfter'];_0x52067d['hasAttribute']('vid_start')||_0x52067d['hasAttribute']('vid')||(_0x1968ef['writer']['setAttribute']('vid_start',_0x4985f0['viewItem']['getAttribute']('vid_start'),_0x52067d),_0x1968ef['writer']['setAttribute']('vid_end',_0x4985f0['viewItem']['getAttribute']('vid_end'),_0x52067d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x503968=>_0x503968['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c5fea,[,_0x42d188])=>{['vid_start','vid_end','vid']['includes'](_0x42d188)&&(_0x3c5fea['return']=!0x0,_0x3c5fea['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xf23c9b=>{_0xf23c9b['on']('attribute:vid',(_0x54d42d,_0x13fb4d,_0x23d09c)=>{if('\x20'!=_0x13fb4d['item']['data']||_0x13fb4d['item']['parent']['maxOffset']>0x1)return;if(!_0x23d09c['consumable']['consume'](_0x13fb4d['item'],_0x54d42d['name']))return;const _0x42578d=_0x23d09c['writer'],_0x2cccda=_0x23d09c['mapper']['toViewRange'](_0x13fb4d['range']);_0x42578d['wrap'](_0x2cccda,_0x42578d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3aa860){const _0x5d346a=_0x3aa860['plugins']['get']('RevisionViewer');return(_0x3d9318,_0xf5c196,_0x21c20f)=>{const _0x261649=_0xf5c196['markerName']['split'](':')[0x1],_0xa6a6e6=_0x5d346a['_getChangeFromId'](_0x261649);if(!_0xa6a6e6)return null;const _0x45d90a='add'==_0xa6a6e6['type']?'split':'merge';if(!_0x21c20f['consumable']['test'](_0xf5c196['markerRange'],_0x3d9318['name']))return;const _0x2ebffb=_0xf5c196['markerRange']['getWalker'](),_0x4f08e8=_0xf5c196['markerRange']['start'],_0x1d9cae=_0x3aa860['model']['schema'];let _0x3439d0=null,_0x584125=null,_0x55f238=!0x1,_0x5ca341=!0x1;for(const _0x1652af of _0x2ebffb){const _0x4f582e=_0x1652af['item'];_0x55f238=_0x55f238||_0x1d9cae['isContent'](_0x4f582e);const _0x95b279=_0x21c20f['mapper']['toViewElement'](_0x4f582e);if(_0x95b279&&_0x95b279['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1652af['type']&&(_0x1d9cae['isBlock'](_0x4f582e)&&!_0x1d9cae['isLimit'](_0x4f582e)&&(_0x4f582e['nextSibling']||_0x4f08e8['isAtEnd']?_0x3439d0&&_0x3439d0['parent']==_0x4f582e||(_0x3439d0=_0x4f582e,_0x3ae779(_0x1652af['previousPosition']),_0x5ca341=!0x0):_0x584125=_0x584125||_0x1652af['previousPosition']));}function _0x3ae779(_0x3764d7){const _0x4854f6=_0x21c20f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45d90a}),_0x21b508=_0x21c20f['mapper']['toViewPosition'](_0x3764d7);_0xa6a6e6['data']['isSuggestion']&&_0x21c20f['writer']['addClass']('ck-suggestion-marker-'+_0x45d90a+'-new',_0x4854f6),_0x5d346a['activeChange']==_0xa6a6e6&&_0x21c20f['writer']['addClass']('ck-suggestion-marker--active',_0x4854f6),_0x21c20f['writer']['insert'](_0x21b508,_0x4854f6),_0x21c20f['mapper']['bindElementToMarker'](_0x4854f6,_0xf5c196['markerName']);}_0x55f238||_0x5ca341||!_0x584125||_0x3ae779(_0x584125);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x223ee4,_0x29dd14,_0xd4ae9b)=>{const _0x5adcde=_0xd4ae9b['mapper']['markerNameToElements'](_0x29dd14['markerName']);if(_0x5adcde){for(const _0x2dffad of _0x5adcde)(_0x2dffad['hasClass']('ck-suggestion-marker-split')||_0x2dffad['hasClass']('ck-suggestion-marker-merge'))&&(_0xd4ae9b['mapper']['unbindElementFromMarkerName'](_0x2dffad,_0x29dd14['markerName']),_0xd4ae9b['writer']['remove'](_0x2dffad));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54b254,_0x114aa7,_0x1b76e3)=>{const _0x16df63=_0x114aa7['markerName']['split'](':')[0x1],_0x1d1f13=this['_getChangeFromId'](_0x16df63);if(!_0x1d1f13)return null;const _0x56f576='add'==_0x1d1f13['type']?'split':'merge';if(_0x1b76e3['consumable']['test'](_0x114aa7['markerRange'],_0x54b254['name']))for(const _0x3ff3c5 of _0x114aa7['markerRange']['getItems']()){if(!_0x3ff3c5['is']('element','softBreak'))continue;const _0x112fa4=_0x1b76e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56f576}),_0x57107c=_0x1b76e3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3ff3c5));_0x1d1f13['data']['isSuggestion']&&_0x1b76e3['writer']['addClass']('ck-suggestion-marker-'+_0x56f576+'-new',_0x112fa4),this['activeChange']==_0x1d1f13&&_0x1b76e3['writer']['addClass']('ck-suggestion-marker--active',_0x112fa4),_0x1b76e3['writer']['insert'](_0x57107c,_0x112fa4),_0x1b76e3['mapper']['bindElementToMarker'](_0x112fa4,_0x114aa7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4fdda5=>{for(const _0xa9e36a of this['editor']['model']['document']['getRootNames']()){const _0x23d395=this['editor']['model']['document']['getRoot'](_0xa9e36a),_0x4ef0c5=this['editor']['editing']['view']['document']['getRoot'](_0xa9e36a);if(_0x4ef0c5){const _0x2d6d6=_0x23d395['getAttribute']('revisionHistoryAttachChange');if(_0x4fdda5['removeAttribute']('data-change-id',_0x4ef0c5),_0x4fdda5['removeClass']('ck-revision-history-root-add',_0x4ef0c5),_0x4fdda5['removeClass']('ck-revision-history-root-remove',_0x4ef0c5),_0x4fdda5['removeClass']('ck-revision-history-root--active',_0x4ef0c5),_0x2d6d6){const _0xfc79c5=this['_getChangeFromId'](_0x2d6d6);if(!_0xfc79c5)return null;_0x4fdda5['setAttribute']('data-change-id',_0x2d6d6,_0x4ef0c5),_0x4fdda5['addClass']('ck-revision-history-root-'+_0xfc79c5['type'],_0x4ef0c5),this['activeChange']==_0xfc79c5&&_0x4fdda5['addClass']('ck-revision-history-root--active',_0x4ef0c5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x178a62=>'revision-comment:'+_0x178a62,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x38542c=>'revision-suggestion:'+_0x38542c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x15bc13=>({'name':'suggestion:'+_0x15bc13,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5cc45c=>{const _0x1272bd=_0x5cc45c['markerName']['split'](':')[0x1];return'insertion'!=_0x1272bd&&'deletion'!=_0x1272bd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1272bd]};}}),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',(_0x524aca,_0x168f82,_0x245f48)=>{const _0x18dde1=_0x245f48['mapper']['markerNameToElements'](_0x168f82['markerName']);if(_0x18dde1){for(const _0x107693 of _0x18dde1)_0x107693['is']('uiElement')&&(_0x245f48['mapper']['unbindElementFromMarkerName'](_0x107693,_0x168f82['markerName']),_0x245f48['writer']['remove'](_0x107693));}},{'priority':'high'});}['_getChangeFromId'](_0x4c9f11){return this['_changeIdToChange']['get'](_0x4c9f11);}['_getViewForChange'](_0xe9a78b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xe9a78b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1adfef,_0x1df4ed,_0x2eb7e6,_0x3a3a8c)=>{_0x3a3a8c&&this['_balloon']['remove'](_0x3a3a8c),_0x2eb7e6&&(this['_balloon']['add']({'view':_0x2eb7e6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1758db=this['editor']['editing'],_0xc9953a=this['_getChangeFromId'](_0x2eb7e6['changeId']);let _0x4dae9d;if(_0xc9953a['data']['isOnRoot']){const _0x54037e=_0x1758db['view']['getDomRoot'](_0xc9953a['rootName']);_0x4dae9d=Array['from'](_0x54037e['getClientRects']());}else{const _0x4b920b=this['editor']['model']['markers']['get']('revision:'+_0x2eb7e6['changeId']);_0x4dae9d=Array['from'](_0x1758db['mapper']['markerNameToElements'](_0x4b920b['name']))['map'](_0x4f5249=>_0x1758db['view']['domConverter']['mapViewToDom'](_0x4f5249))['map'](_0x3c4f77=>Array['from'](_0x3c4f77['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4dae9d[0x0];return _0x4dae9d['find'](_0x3e018a=>_0x3e018a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3e018a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3e018a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3e018a['right']+0x3>=this['_activeViewTarget']['x'])||_0x4dae9d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x52d90a,_0xaf820e,_0x6a898d,_0x380dad)=>{this['activeView']=_0x6a898d?this['_getViewForChange'](_0x6a898d):null,this['editor']['model']['change'](()=>{const _0x5d03bb=this['editor']['editing'];_0x380dad&&(_0x380dad['data']['isOnRoot']?_0x5d03bb['view']['change'](_0x4c13f2=>{_0x4c13f2['removeClass']('ck-revision-history-root--active',_0x5d03bb['view']['document']['getRoot'](_0x380dad['rootName']));}):_0x5d03bb['reconvertMarker']('revision:'+_0x380dad['id'])),_0x6a898d&&(_0x6a898d['data']['isOnRoot']?_0x5d03bb['view']['change'](_0x3c5539=>{_0x3c5539['addClass']('ck-revision-history-root--active',_0x5d03bb['view']['document']['getRoot'](_0x6a898d['rootName']));}):_0x5d03bb['reconvertMarker']('revision:'+_0x6a898d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xda8387,_0x572f4b)=>{if(this['activeChange'])return;const _0x360f6f=this['_findChangeIdFromDomTarget'](_0x572f4b['target']),_0x4eff75=this['_changeIdToChange']['get'](_0x360f6f);_0x4eff75?(this['_activeViewTarget']={'x':_0x572f4b['domEvent']['x'],'y':_0x572f4b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4eff75)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x271bed,_0x128384)=>{const _0x103bd7=this['_findChangeIdFromDomTarget'](_0x128384['target']),_0x2d1870=this['_changeIdToChange']['get'](_0x103bd7);_0x2d1870?(this['_activeViewTarget']={'x':_0x128384['domEvent']['x'],'y':_0x128384['domEvent']['y']},_0x2d1870===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d1870):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xfeb567){do{const _0x4021a5=_0xfeb567['getAttribute']('data-change-id');if(_0x4021a5)return _0x4021a5;_0xfeb567=_0xfeb567['parent'];}while(_0xfeb567);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x26f367=>{for(const _0x40c6cc of this['editor']['model']['markers'])_0x26f367['removeMarker'](_0x40c6cc);});}}function X(_0x291d9a,_0x143acc){return(_0x12ccb0,_0x397975,_0x415491)=>{if(!_0x415491['consumable']['test'](_0x397975['markerRange'],_0x12ccb0['name']))return;const _0x31de4c=_0x397975['markerRange']['getWalker'](),_0x57af88=_0x397975['markerRange']['start'],_0x9141e1=_0x291d9a['model']['schema'];let _0x377d91=null,_0x460a29=null,_0x135671=!0x1,_0x2cd2c3=!0x1;for(const _0x18dec of _0x31de4c){const _0xf1d109=_0x18dec['item'];_0x135671=_0x135671||_0x9141e1['isContent'](_0xf1d109);const _0x5312b4=_0x415491['mapper']['toViewElement'](_0xf1d109);if(_0x5312b4&&_0x5312b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x18dec['type']&&(_0x9141e1['isBlock'](_0xf1d109)&&!_0x9141e1['isLimit'](_0xf1d109)&&(_0xf1d109['nextSibling']||_0x57af88['isAtEnd']?_0x377d91&&_0x377d91['parent']==_0xf1d109||(_0x377d91=_0xf1d109,_0x15552b(_0x18dec['previousPosition']),_0x2cd2c3=!0x0):_0x460a29=_0x460a29||_0x18dec['previousPosition']));}function _0x15552b(_0x1a860b){const _0xa99fe=_0x415491['mapper']['toViewPosition'](_0x1a860b),_0x24054d=_0x415491['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x143acc});_0x415491['writer']['insert'](_0xa99fe,_0x24054d),_0x415491['mapper']['bindElementToMarker'](_0x24054d,_0x397975['markerName']);}_0x135671||_0x2cd2c3||!_0x460a29||_0x15552b(_0x460a29);};}class wt extends _0x235e90{constructor(_0x4173a8){super(_0x4173a8);const _0x3392ff=_0x4173a8['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3392ff,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3392ff,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4a23e4=this['editor'],_0x2280bf=_0x4a23e4['plugins']['get'](m),_0x231759=_0x2280bf['isReady']?_0x2280bf['diff']['newRevisionId']:null;_0x4a23e4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x231759);}['refresh'](){const {isReady:_0x49aa99,isEnabled:_0x157e50,repository:_0x414a03,diff:_0x4c636a}=this['editor']['plugins']['get'](m),_0x3aac62=_0x4c636a&&_0x414a03['getLaterVisibleRevision'](_0x4c636a['newRevisionId']);this['isEnabled']=_0x49aa99&&_0x157e50&&Boolean(_0x3aac62);}}class pt extends _0x235e90{['_step'];constructor(_0x10eec6,{direction:_0x38a3f5}){super(_0x10eec6);const _0xe24054=_0x10eec6['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x38a3f5?0x1:-0x1,this['listenTo'](_0xe24054,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe24054,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xe24054,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x530375=this['editor'],_0x367be5=_0x530375['plugins']['get'](m),{isNavigationMode:_0x29ece9,currentChangeNumber:_0x472ff5}=_0x367be5;let _0x168c60;if(_0x367be5['activeChange']=_0x29ece9?_0x367be5['diff']['changes']['get'](_0x472ff5+this['_step']):_0x367be5['diff']['changes']['first'],_0x367be5['activeChange']['data']['isOnRoot'])_0x168c60=_0x530375['editing']['view']['getDomRoot'](_0x367be5['activeChange']['rootName']);else{const _0x240ddd=_0x530375['model']['markers']['get']('revision:'+_0x367be5['activeChange']['id']);_0x168c60=_0x333dad(_0x530375['editing'],_0x240ddd);}_0x698de3({'target':_0x168c60,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xe128ca,currentChangeNumber:_0x5b8a56,numberOfChanges:_0x53df16,isReady:_0x2d38bd,isEnabled:_0x2135c2}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2135c2&&_0x2d38bd&&_0x53df16)&&(!_0xe128ca||(0x1===this['_step']?_0x5b8a56<_0x53df16-0x1:_0x5b8a56>0x0));}}class _i extends _0x39cfbe{constructor(_0x57f8ca){super(_0x57f8ca);const _0x43decb=this['bindTemplate'],_0x2ca02f=new _0x2e3194(_0x57f8ca),_0x5000ef=new _0x2e3194(_0x57f8ca);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',(_0x27f260,_0x2a7f50)=>_0x27f260&&_0x2a7f50>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3bcfce,_0x1c7462,_0x2e89a7,_0x44b3eb)=>{if(!_0x3bcfce)return g(_0x57f8ca,'Loading...');if(!_0x2e89a7)return g(_0x57f8ca,'No\x20changes');const _0x24bf4a=g(_0x57f8ca,'NUMBER_OF_CHANGES',_0x2e89a7);return _0x44b3eb?g(_0x57f8ca,'X_OF_Y_CHANGES',[_0x1c7462+0x1,_0x2e89a7]):_0x24bf4a;}),_0x2ca02f['set']({'label':g(_0x57f8ca,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x28f55c}),_0x5000ef['set']({'label':g(_0x57f8ca,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x15d7a2}),_0x2ca02f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5000ef['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2ca02f['on']('execute',()=>this['fire']('execute','backward')),_0x5000ef['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',_0x43decb['if']('_isStatusLabelVisible','ck-hidden',_0x2b37a1=>!_0x2b37a1)]},'children':[{'text':_0x43decb['to']('isNavigationMode',_0x1cbbbb=>_0x1cbbbb?g(_0x57f8ca,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x57f8ca,'Total')+':\x20')}]},{'text':_0x43decb['to']('_statusText')}]},new _0x5e79f7(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2ca02f,_0x5000ef]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x425a55{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x25d9c9=this['editor']['editing']['view'];_0x25d9c9['change'](_0x4e624e=>{for(const _0x1bdfeb of _0x25d9c9['document']['roots'])_0x4e624e['addClass'](ce,_0x1bdfeb);});}['hide'](){const _0x35689b=this['editor']['editing']['view'];_0x35689b['change'](_0x40ef21=>{for(const _0x276a26 of _0x35689b['document']['roots'])_0x40ef21['removeClass'](ce,_0x276a26);});}}class R extends _0x425a55{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0xd80a35=this['editor'],_0xa7366d=_0xd80a35['plugins']['get'](m),_0x59f044=_0xd80a35['plugins']['get'](le);_0xd80a35['ui']['componentFactory']['add']('exitToEditing',_0x213efb=>{const _0x57f800=new _0x2e3194(_0x213efb);return _0x57f800['set']({'label':g(_0x213efb,'Back\x20to\x20editing'),'icon':_0xfb9832,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x57f800,'execute',()=>{_0xd80a35['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x57f800;}),_0xd80a35['ui']['componentFactory']['add']('restoreRevision',_0x26f7d9=>{const _0x352b81=new _0x2e3194(_0x26f7d9);return _0x352b81['set']({'label':g(_0x26f7d9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x352b81['bind']('isEnabled')['to'](_0xd80a35['commands']['get']('restoreRevision')),this['listenTo'](_0x352b81,'execute',()=>_0xd80a35['execute']('restoreRevision')),_0x352b81;}),_0xd80a35['ui']['componentFactory']['add']('changesNavigation',_0x26038b=>{const _0x1cc757=new _i(_0x26038b),_0x9826aa=_0xd80a35['commands']['get']('showPreviousChange'),_0x39209d=_0xd80a35['commands']['get']('showNextChange');return _0x1cc757['bind']('isBackwardNavigationEnabled')['to'](_0x9826aa,'isEnabled'),_0x1cc757['bind']('isForwardNavigationEnabled')['to'](_0x39209d,'isEnabled'),_0x1cc757['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xa7366d),this['listenTo'](_0x1cc757,'execute',(_0x454b7c,_0x599d41)=>{_0xd80a35['execute']('forward'===_0x599d41?'showNextChange':'showPreviousChange');}),_0x1cc757;}),_0x59f044['show'](),_0xa7366d['on']('change:isReady',(_0x3832d0,_0x2caf3c,_0x51bbbd)=>{_0x51bbbd?_0x59f044['hide']():_0x59f044['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x18cf09,_0x159098){super(_0x18cf09,_0x159098);const _0x3dd3a9=this['bindTemplate'];this['set']({'label':g(_0x18cf09,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x18cf09,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3dd3a9['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 _0x486ae5=this['fieldView']['element'];this['_tooltipString']=_0x486ae5['scrollWidth']>_0x486ae5['clientWidth']&&_0x486ae5['value']||'';}}class oi extends _0x39cfbe{constructor(_0x4b4d07,_0x32c842,_0x22aeee){super(_0x4b4d07);const _0x29ee45=new _0x43ff91();_0x29ee45['set']({'content':_0x171f71,'viewBox':'0\x200\x2011\x2010'});const _0x3d9b01=['ck','ck-revision-history-sidebar__revision-author'];_0x22aeee&&_0x3d9b01['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5e118d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4b4d07,_0x22aeee?'Revision\x20creator':'Revision\x20author')},'children':[_0x29ee45,_0x32c842['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d9b01},'children':_0x5e118d});}}function ni(_0x1f11f0,_0x315bf0){const _0x3848eb=_0x1f11f0['bindTemplate'],_0x28003a=_0x1f11f0['locale'],_0x2ede14=_0x2f3f6b(_0x28003a);_0x2ede14['panelPosition']='sw';const _0x1aa8a0=function(_0x3311ef,_0x21bbf2){const _0x43cf38=function(_0x5b4391,_0x47c6f7){const _0x3b3f9b=_0x5b4391['locale'],_0x5651a5={'Compare\x20against\x20selected':g(_0x3b3f9b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3b3f9b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3b3f9b,'Restore\x20this\x20revision')};return _0x47c6f7['map'](_0x3bce8d=>{const _0x49f9d8=_0x5651a5[_0x3bce8d['name']];return _0x49f9d8&&_0x49f9d8!==_0x3bce8d['name']&&(_0x3bce8d['name']=_0x49f9d8),_0x3bce8d;});}(_0x3311ef,_0x21bbf2),_0x5e6bb4=new _0x58d884();for(const _0x4bd617 of _0x43cf38){const _0x29ba85={'type':'button','model':new to({'label':_0x4bd617['name'],'class':_0x4bd617['class'],'withText':!0x0,'role':'menuitem','_action':_0x4bd617['action']})};_0x29ba85['model']['bind']('isEnabled')['to'](_0x3311ef,'isActionsDropdownOpen',_0x4c9114=>'function'!=typeof _0x4bd617['isEnabled']||(!_0x4c9114||_0x4bd617['isEnabled'](_0x3311ef))),_0x5e6bb4['add'](_0x29ba85);}return _0x5e6bb4;}(_0x1f11f0,_0x315bf0);return _0x1f11f0['bind']('isActionsDropdownOpen')['to'](_0x2ede14,'isOpen'),_0x2ede14['buttonView']['set']({'label':g(_0x28003a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x35f117}),_0x2ede14['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3848eb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3848eb['to'](_0x55ef01=>_0x55ef01['stopPropagation']())}}),_0x2ede14['on']('execute',_0x354fcc=>{_0x1f11f0['isReady']&&'function'==typeof _0x354fcc['source']['_action']&&_0x354fcc['source']['_action'](_0x1f11f0);}),_0x101f1a(_0x2ede14,_0x1aa8a0,{'role':'menu'}),_0x2ede14['listenTo'](_0x1f11f0,'change:isActionsDropdownOpen',(_0x3b5c66,_0x12a12e,_0x2e8653)=>{if(_0x2e8653)for(const _0x5a3eaa of _0x2ede14['listView']['items']){const _0x3d7d5d=_0x5a3eaa['children']['first'],_0x85d131=_0x315bf0['find'](_0x4a6d03=>_0x4a6d03['action']===_0x3d7d5d['_action'])['isVisible'];_0x5a3eaa['isVisible']=void 0x0===_0x85d131||_0x85d131(_0x1f11f0);}}),_0x2ede14;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x5c45c0,uid as _0x3819d0,Collection as _0x375022,logWarning as _0x51bb0b,FocusTracker as _0x5c65bd,KeystrokeHandler as _0x3cdfb8,scrollViewportToShowTarget as _0x51b45e,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5f2b24}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x139560,set as _0x55749d,unset as _0x501ceb,isEqual as _0x5810e}from'es-toolkit/compat';import{Plugin as _0x634022,PendingActions as _0x237b95,Command as _0x582b5c,ElementApiMixin as _0x45c110,Editor as _0x5f86d8}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b99f2,getMarkerDomElement as _0x32e7ab,ConfirmMixin as ti,sanitizeEditorConfig as _0x5e76d5}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x474122,ViewAttributeElement as _0x4667db,ViewEmptyElement as _0x11513d,ViewRawElement as _0x1df4c4,ViewUIElement as _0x13e38b,ViewDocumentFragment as _0x313088,ViewText as _0x1b4f54,ViewElement as _0x1ec704,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x588eea,IconChevronUp as _0x4dce82,IconChevronDown as _0x2b4ca6,IconUndo as _0x205767,IconUser as _0xaf5bc,IconThreeVerticalDots as _0x1d73f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x24e1d3,submitHandler as _0x2d55b0,LabeledFieldView as _0x171b5b,createLabeledInputText as _0x291eb8,createDropdown as _0x2dcc14,ListView as _0x361408,ListItemView as _0xf646ba,ButtonView as te,MenuBarMenuView as _0xd4be25,MenuBarMenuListView as _0x3be3a7,MenuBarMenuListItemView as _0x2cc0fe,MenuBarMenuListItemButtonView as _0x4072a8,ContextualBalloon as _0x525cd4,ToolbarSeparatorView as _0x421304,IconView as _0x5f8016,addListToDropdown as _0x2d506c,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 _0x3cc35d}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c45c0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x189415){super(),this['id']=_0x189415['id']||_0x3819d0(),this['creator']=_0x189415['creator']||null,this['authors']=_0x189415['authors']||[],this['diffData']=_0x189415['diffData']||null,this['toVersion']=_0x189415['toVersion']||0x0,this['fromVersion']=_0x189415['fromVersion']||0x0,this['set']('name',_0x189415['name']||''),this['set']('createdAt',_0x189415['createdAt']||new Date()),this['set']('attributes',_0x189415['attributes']||{});}['setName'](_0x15b9b0){this['_update']({'name':_0x15b9b0});}['setAttribute'](_0x346cde,_0xb44efb){const _0x633e80=_0x139560(this['attributes']);_0x55749d(_0x633e80,_0x346cde,_0xb44efb),this['_update']({'attributes':_0x633e80});}['removeAttribute'](_0x415851){const _0x23e3f4=_0x139560(this['attributes']);_0x501ceb(_0x23e3f4,_0x415851),this['_update']({'attributes':_0x23e3f4});}['_update'](_0x3afb0d,_0x487280=!0x1){let _0x571670=!0x1;const _0xcc7f73={'id':this['id']},_0x45b454=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x31625 of _0x45b454){const _0x21da35=_0x3afb0d[_0x31625];void 0x0!==_0x21da35&&_0x21da35!==this[_0x31625]&&(this[_0x31625]=_0x21da35,_0xcc7f73[_0x31625]=_0x21da35,_0x571670=!0x0);}_0x571670&&(_0xcc7f73['authors']&&(_0xcc7f73['authorsIds']=_0xcc7f73['authors']['map'](_0x252fdc=>_0x252fdc['id']),delete _0xcc7f73['authors']),this['fire']('_update',_0xcc7f73,_0x487280));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x53dc51=>_0x53dc51['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x634022{['_revisions'];static get['requires'](){return[_0x1b99f2];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2d1684){super(_0x2d1684),this['_revisions']=new _0x375022();}['afterInit'](){!async function(_0x19690b){const _0x3941a9=_0x4af098([0x51,0x43,0x49,0x53,0x59,0x35,0x6a,0x6c,0x45,0x5a,0x64,0x54,0x68,0x67,0x52,0x32,0x79,0x4b,0x48,0x63,0x4e,0x37,0x61,0x4d,0x4a,0x73,0x4f,0x30,0x47,0x57,0x77,0x7a,0x65,0x6e,0x62,0x31,0x44,0x38,0x42,0x4c,0x70,0x6b,0x50,0x33,0x6d,0x78,0x34,0x69,0x72,0x76,0x71,0x58,0x56,0x74,0x55,0x6f,0x39,0x75,0x66,0x46,0x41,0x36]),_0x217f52=0xeb829,_0x4160a8=0x343706cc,_0x5a8c75=0x343061dc^_0x4160a8,_0x1d41d1=window[_0x4af098([0x44,0x61,0x74,0x65])][_0x4af098([0x6e,0x6f,0x77])](),_0x8df11b=_0x19690b[_0x4af098([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x8ea081=new window[(_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2704ee=>{_0x8df11b[_0x4af098([0x6f,0x6e,0x63,0x65])](_0x4af098([0x72,0x65,0x61,0x64,0x79]),_0x2704ee);}),_0x1a53f5={[_0x4af098([0x6b,0x74,0x79])]:_0x4af098([0x45,0x43]),[_0x4af098([0x75,0x73,0x65])]:_0x4af098([0x73,0x69,0x67]),[_0x4af098([0x63,0x72,0x76])]:_0x4af098([0x50,0x2d,0x32,0x35,0x36]),[_0x4af098([0x78])]:_0x4af098([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]),[_0x4af098([0x79])]:_0x4af098([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]),[_0x4af098([0x61,0x6c,0x67])]:_0x4af098([0x45,0x53,0x32,0x35,0x36])},_0xcd6dc3=_0x8df11b[_0x4af098([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4af098([0x67,0x65,0x74])](_0x4af098([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f543b(){let _0x2e122a,_0x20b9af=null,_0x3b5d6b=null;try{if(_0xcd6dc3==_0x4af098([0x47,0x50,0x4c]))return _0x4af098([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e122a=_0x16c735(),!_0x2e122a)return _0x4af098([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e122a[_0x4af098([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b5d6b=_0x318fed(_0x2e122a[_0x4af098([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e122a[_0x4af098([0x6a,0x74,0x69])])),await _0x32bb7a()?_0x1f8016()?_0x245e5d()?_0x4af098([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55e7a2()?(_0x2e122a[_0x4af098([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af098([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20b9af=_0x195507(_0x4af098([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e122a[_0x4af098([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af098([0x74,0x72,0x69,0x61,0x6c])&&(_0x20b9af=_0x195507(_0x4af098([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd0aa2d()):_0x4af098([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4af098([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4af098([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf2eda9){return _0x4af098([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x245e5d(){const _0x43f84e=[_0x4af098([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4af098([0x74,0x72,0x69,0x61,0x6c])][_0x4af098([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e122a[_0x4af098([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d41d1/0x3e8:0xe10*_0x5a8c75;return _0x2e122a[_0x4af098([0x65,0x78,0x70])]<_0x43f84e;}function _0x1f8016(){const _0x20d9a7=_0x2e122a[_0x4af098([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20d9a7)return!0x1;if(_0x20d9a7[_0x4af098([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af098([0x2a])))return!0x0;if(_0x20d9a7[_0x4af098([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af098([0x52,0x48])))return!0x0;if(_0x20d9a7[_0x4af098([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af098([0x52,0x52,0x48]))){if(_0xc618a())return!0x0;if(_0x3196dd()||_0x267c74())return!0x0;}return!0x1;}function _0x55e7a2(){const _0x298b8b=_0x2e122a[_0x4af098([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x298b8b||0x0==_0x298b8b[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b5029}=new URL(window[_0x4af098([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x298b8b[_0x4af098([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5029))return!0x0;const _0x52b4f2=_0x4b5029[_0x4af098([0x73,0x70,0x6c,0x69,0x74])](_0x4af098([0x2e]));return _0x298b8b[_0x4af098([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9dd792=>_0x9dd792[_0x4af098([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af098([0x2a])))[_0x4af098([0x6d,0x61,0x70])](_0x1328ef=>_0x1328ef[_0x4af098([0x73,0x70,0x6c,0x69,0x74])](_0x4af098([0x2e])))[_0x4af098([0x73,0x6f,0x6d,0x65])](_0x75bf48=>_0x52b4f2[_0x4af098([0x65,0x76,0x65,0x72,0x79])]((_0x25ee81,_0x1250b1)=>_0x75bf48[_0x1250b1]===_0x25ee81||_0x75bf48[_0x1250b1]===_0x4af098([0x2a])));}function _0xd0aa2d(){return _0x20b9af&&_0x3b5d6b?new window[(_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x530c08,_0x2ae762)=>{_0x20b9af[_0x4af098([0x74,0x68,0x65,0x6e])](_0x530c08,_0x2ae762),_0x3b5d6b[_0x4af098([0x74,0x68,0x65,0x6e])](_0x58af6a=>{_0x58af6a!=_0x4af098([0x56,0x61,0x6c,0x69,0x64])&&_0x530c08(_0x58af6a);},_0x2ae762);}):_0x20b9af||_0x3b5d6b||_0x4af098([0x56,0x61,0x6c,0x69,0x64]);}}function _0x318fed(_0x3939b5,_0x5d0105){return new window[(_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dc1a6=>{if(_0x2c4a18())return _0x2dc1a6(_0x4af098([0x56,0x61,0x6c,0x69,0x64]));_0x810f27(),_0x8df11b[_0x4af098([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4af098([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f18db=!0x1;const _0x8b096b=_0x3819d0();function _0x5e27d1(_0x4137a9){return!!_0x4137a9&&(typeof _0x4137a9===_0x4af098([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4137a9===_0x4af098([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4137a9[_0x4af098([0x74,0x68,0x65,0x6e])]===_0x4af098([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4137a9[_0x4af098([0x63,0x61,0x74,0x63,0x68])]===_0x4af098([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe18fa0(_0x493378){_0x8bf97b(_0x493378)[_0x4af098([0x74,0x68,0x65,0x6e])](_0x4f2ec9=>{if(!_0x4f2ec9||_0x4f2ec9[_0x4af098([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4af098([0x6f,0x6b]))return _0x4af098([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe7496(_0x51485c(_0x8b096b+_0x5d0105))!=_0x4f2ec9[_0x4af098([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4af098([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4af098([0x56,0x61,0x6c,0x69,0x64]);})[_0x4af098([0x74,0x68,0x65,0x6e])](_0x158054=>(_0x4dc749(),_0x158054),()=>{const _0x2b9a59=_0x3d3931();return null==_0x2b9a59?(_0x4dc749(),_0x4af098([0x56,0x61,0x6c,0x69,0x64])):_0x4af098(_0x1d41d1-_0x2b9a59>(0x103b82cc^_0x4160a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4af098([0x74,0x68,0x65,0x6e])](_0x2dc1a6)[_0x4af098([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dc1a6(_0x4af098([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59f6be=0x3401e84c^_0x4160a8;function _0x4dc749(){const _0x1a3a58=_0x4af098([0x6c,0x6c,0x63,0x74,0x2d])+_0xe7496(_0x51485c(_0x3939b5)),_0x49e31d=_0x4ddb6d(_0xe7496(window[_0x4af098([0x4d,0x61,0x74,0x68])][_0x4af098([0x63,0x65,0x69,0x6c])](_0x1d41d1/_0x59f6be)));window[_0x4af098([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af098([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a3a58,_0x49e31d);}function _0x3d3931(){const _0x38a0c6=_0x4af098([0x6c,0x6c,0x63,0x74,0x2d])+_0xe7496(_0x51485c(_0x3939b5)),_0x51fc49=window[_0x4af098([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af098([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38a0c6);return _0x51fc49?window[_0x4af098([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ddb6d(_0x51fc49),0x10)*_0x59f6be:null;}function _0x8bf97b(_0x4cc0e1){return new window[(_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40405d,_0x3e1156)=>{_0x4cc0e1[_0x4af098([0x74,0x68,0x65,0x6e])](_0x40405d,_0x3e1156),window[_0x4af098([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e1156,0x3436d20c^_0x4160a8);});}}_0x8df11b[_0x4af098([0x6f,0x6e])](_0x4af098([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d2a1e,_0x5c8b21)=>{if(_0x5c8b21[0x0]!=_0x3939b5)return _0x2dc1a6(_0x4af098([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c8b21[0x1]={..._0x5c8b21[0x1],[_0x4af098([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8b096b};},{[_0x4af098([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af098([0x68,0x69,0x67,0x68])}),_0x8df11b[_0x4af098([0x6f,0x6e])](_0x4af098([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x241c56=>{_0x5e27d1(_0x241c56[_0x4af098([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f18db=!0x0,_0xe18fa0(_0x241c56[_0x4af098([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4af098([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af098([0x6c,0x6f,0x77])}),_0x8ea081[_0x4af098([0x74,0x68,0x65,0x6e])](()=>{_0x1f18db||_0x2dc1a6(_0x4af098([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c4a18(){return _0x8df11b[_0x4af098([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af098([0x76,0x69,0x65,0x77])][_0x4af098([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4af098([0x61,0x75,0x74,0x6f]);}function _0x810f27(){_0x8df11b[_0x4af098([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af098([0x76,0x69,0x65,0x77])][_0x4af098([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4af098([0x61,0x75,0x74,0x6f]);}}function _0x195507(_0x29da34){const _0xfb1ff3=[new window[(_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x231b63=>setTimeout(_0x231b63,0x343e3800^_0x4160a8)),_0x8ea081[_0x4af098([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28ffb5=>{const _0x31f6a6=0x343706cb^_0x4160a8,_0x128538=_0x19690b[_0x4af098([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xa571b0(){_0x128538[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x31f6a6&&_0x28ffb5();}_0xa571b0(),_0x128538[_0x4af098([0x6f,0x6e])](_0x4af098([0x61,0x64,0x64]),_0xa571b0);})),new window[(_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218c4b=>{function _0x1c9a85(){for(const _0x30de66 in window)if(window[_0x4af098([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4af098([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x30de66))&&window[_0x30de66]==_0x217f52)return _0x218c4b();_0x8df11b[_0x4af098([0x73,0x74,0x61,0x74,0x65])]!=_0x4af098([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4af098([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c9a85,0x34371544^_0x4160a8);}_0x418a66(_0x4af098([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1c9a85();})];return window[_0x4af098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4af098([0x72,0x61,0x63,0x65])](_0xfb1ff3)[_0x4af098([0x74,0x68,0x65,0x6e])](()=>_0x29da34);}async function _0x1ca53b(){if(await _0x8ea081,_0x418a66(_0x4af098([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4b444c=_0x19690b[_0x4af098([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xe99d8a=_0x19690b[_0x4af098([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])](_0x4b444c[_0x4af098([0x69,0x64])]),_0x2d2259=_0x1dbdfe(_0x4af098([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2d2259[_0x4af098([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4b444c['id'],_0xe99d8a?_0xe99d8a['id']:null,!0x0),_0x2d2259[_0x4af098([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4af098([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2d2259[_0x4af098([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2d2259[_0x4af098([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2f1bb0,void(_0x2d2259[_0x4af098([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2f1bb0);}if(_0x418a66(_0x4af098([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x42ba96=_0x1dbdfe(_0x4af098([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x42ba96[_0x4af098([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4af098([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x42ba96[_0x4af098([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x42ba96[_0x4af098([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2f1bb0,_0x42ba96[_0x4af098([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2f1bb0;}_0x8df11b[_0x4af098([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af098([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f1bb0,_0x8df11b[_0x4af098([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af098([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f1bb0,_0x8df11b[_0x4af098([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4af098([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc618a(){return _0x418a66(_0x4af098([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1dbdfe(_0x4af098([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4af098([0x73,0x74,0x61,0x74,0x65])]==_0x4af098([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3196dd(){return _0x418a66(_0x4af098([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 _0x267c74(){return _0x418a66(_0x4af098([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3328b4(_0x334bce){const _0x3bdc80=_0x52f541();_0x8df11b[_0x3bdc80]=_0x4af098([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])+_0x334bce,_0x334bce[_0x4af098([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4af098([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x52f541()]=_0x217f52),_0x334bce!=_0x4af098([0x56,0x61,0x6c,0x69,0x64])&&_0x1ca53b();}function _0x52f541(){const _0x2e4755=window[_0x4af098([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4af098([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4af098([0x6e,0x6f,0x77])]())[_0x4af098([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4af098([0x2e]),'');let _0x926cf0=_0x4af098([0x51]);for(let _0x4398dc=0x0;_0x4398dc<_0x2e4755[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4398dc+=0x2){let _0x3800f5=window[_0x4af098([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e4755[_0x4af098([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4398dc,_0x4398dc+0x2));_0x3800f5>=_0x3941a9[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3800f5-=_0x3941a9[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x926cf0+=_0x3941a9[_0x3800f5];}return _0x926cf0;}function _0x16c735(){const _0x527b44=_0xcd6dc3[_0x4af098([0x73,0x70,0x6c,0x69,0x74])](_0x4af098([0x2e]));if(0x3!=_0x527b44[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15d2b7(_0x527b44[0x1]);function _0x15d2b7(_0x53cb04){const _0x559888=_0x293df1(_0x53cb04);return _0x559888&&_0x4b9a5e()?_0x559888:null;function _0x4b9a5e(){const _0xc7e4a2=_0x559888[_0x4af098([0x6a,0x74,0x69])],_0x2eec75=window[_0x4af098([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc7e4a2[_0x4af098([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc7e4a2[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50f5f3={..._0x559888,[_0x4af098([0x6a,0x74,0x69])]:_0xc7e4a2[_0x4af098([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc7e4a2[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50f5f3[_0x4af098([0x76,0x63])],_0x51485c(_0x50f5f3)==_0x2eec75;}}}async function _0x32bb7a(){let _0x4a4d52=!0x0;try{const _0x14f710=_0xcd6dc3[_0x4af098([0x73,0x70,0x6c,0x69,0x74])](_0x4af098([0x2e])),[_0x3b8f96,_0xc1c02f,_0xcf313a]=_0x14f710;return _0x42ce7f(_0x3b8f96),await _0x26d035(_0x3b8f96,_0xc1c02f,_0xcf313a),_0x4a4d52;}catch(_0x1fd721){return!0x1;}function _0x42ce7f(_0x37bf5e){const _0xb9ea0c=_0x293df1(_0x37bf5e);_0xb9ea0c&&_0xb9ea0c[_0x4af098([0x61,0x6c,0x67])]==_0x4af098([0x45,0x53,0x32,0x35,0x36])||(_0x4a4d52=!0x1);}async function _0x26d035(_0x4a7698,_0x207e4f,_0x3f39c){const _0x423fc1=window[_0x4af098([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4af098([0x66,0x72,0x6f,0x6d])](_0x5dd94d(_0x3f39c),_0x38a35e=>_0x38a35e[_0x4af098([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29be05=new window[(_0x4af098([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4af098([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a7698+_0x4af098([0x2e])+_0x207e4f),_0x42dd52=window[_0x4af098([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4af098([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42dd52)return;const _0x512a33=await _0x42dd52[_0x4af098([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4af098([0x6a,0x77,0x6b]),_0x1a53f5,{[_0x4af098([0x6e,0x61,0x6d,0x65])]:_0x4af098([0x45,0x43,0x44,0x53,0x41]),[_0x4af098([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4af098([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4af098([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42dd52[_0x4af098([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4af098([0x6e,0x61,0x6d,0x65])]:_0x4af098([0x45,0x43,0x44,0x53,0x41]),[_0x4af098([0x68,0x61,0x73,0x68])]:{[_0x4af098([0x6e,0x61,0x6d,0x65])]:_0x4af098([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x512a33,_0x423fc1,_0x29be05)||(_0x4a4d52=!0x1);}}function _0x293df1(_0x4341f3){return _0x4341f3[_0x4af098([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4af098([0x65,0x79]))?JSON[_0x4af098([0x70,0x61,0x72,0x73,0x65])](_0x5dd94d(_0x4341f3)):null;}function _0x5dd94d(_0x47f9df){return window[_0x4af098([0x61,0x74,0x6f,0x62])](_0x47f9df[_0x4af098([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4af098([0x2b]))[_0x4af098([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4af098([0x2f])));}function _0x51485c(_0x3f326f){let _0x11c905=0x1505;function _0x4b4613(_0x4d48eb){for(let _0x55386b=0x0;_0x55386b<_0x4d48eb[_0x4af098([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55386b++){const _0x6ec24=_0x4d48eb[_0x4af098([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55386b);_0x11c905=(_0x11c905<<0x5)+_0x11c905+_0x6ec24,_0x11c905&=_0x11c905;}}function _0x1fe449(_0x7eb4ad){Array[_0x4af098([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7eb4ad)?_0x7eb4ad[_0x4af098([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fe449):_0x7eb4ad&&typeof _0x7eb4ad==_0x4af098([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4af098([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7eb4ad)[_0x4af098([0x73,0x6f,0x72,0x74])]()[_0x4af098([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf42c2c,_0x27821a])=>{_0x4b4613(_0xf42c2c),_0x1fe449(_0x27821a);}):_0x4b4613(window[_0x4af098([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7eb4ad));}return _0x1fe449(_0x3f326f),_0x11c905>>>0x0;}function _0xe7496(_0x49d7c0){return _0x49d7c0[_0x4af098([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4af098([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4af098([0x30]));}function _0x4ddb6d(_0x298db9){return _0x298db9[_0x4af098([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4af098([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4af098([0x6a,0x6f,0x69,0x6e])]('');}function _0x418a66(_0x2c833e){return _0x8df11b[_0x4af098([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af098([0x68,0x61,0x73])](_0x2c833e);}function _0x1dbdfe(_0x4a9d1b){return _0x8df11b[_0x4af098([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af098([0x67,0x65,0x74])](_0x4a9d1b);}function _0x2f1bb0(){}function _0x4af098(_0x1db807){return _0x1db807['map'](_0x480220=>String['fromCharCode'](_0x480220))['join']('');}_0x3328b4(await _0x5f543b());}(this);}['createRevision'](_0xc6a994){const _0x38668a=this['editor']['plugins']['get']('Users');return new h({'id':_0xc6a994['id'],'name':_0xc6a994['name'],'creator':_0xc6a994['creatorId']?_0x38668a['getUser'](_0xc6a994['creatorId']):null,'diffData':_0xc6a994['diffData']||_0xc6a994['data'],'authors':_0xc6a994['authorsIds']['map'](_0x21c559=>_0x38668a['getUser'](_0x21c559)),'createdAt':new Date(_0xc6a994['createdAt']),'attributes':_0xc6a994['attributes'],'fromVersion':_0xc6a994['fromVersion'],'toVersion':_0xc6a994['toVersion']});}['addRevision'](_0x5ead8d,_0x4e10ae=0x0){this['_revisions']['add'](_0x5ead8d,_0x4e10ae);}['getRevision'](_0x1061ff){return this['_revisions']['get'](_0x1061ff);}['getRevisions'](_0x1e2a08={'toJSON':!0x1}){const _0x50783f=Array['from'](this['_revisions']);return _0x50783f['reverse'](),_0x1e2a08['toJSON']?_0x50783f['map'](_0x3b355b=>_0x3b355b['toJSON']()):_0x50783f;}['getIndex'](_0x4709f8){return this['_revisions']['getIndex'](_0x4709f8);}['getEarlierVisibleRevision'](_0xdb6fd8){const [,_0x22622b]=this['getRevisionsIterator'](_0xdb6fd8,{'direction':'earlier'});return _0x22622b;}['getLaterVisibleRevision'](_0x52edf7){const [,_0x5d4b4f]=this['getRevisionsIterator'](_0x52edf7,{'direction':'later'});return _0x5d4b4f;}['getRevisionsInDiff'](_0x879d31){const _0x297c8b=[];for(const _0x43f885 of this['getRevisionsIterator'](_0x879d31['newRevisionId']))if(_0x297c8b['push'](_0x43f885),_0x43f885['id']===_0x879d31['oldRevisionId'])break;return _0x297c8b;}*['getRevisionsIterator'](_0x5987df,{direction:_0x30a739='earlier',filter:_0x43f946=()=>!0x0}={}){const _0x573e13='earlier'===_0x30a739?0x1:-0x1;let _0x3d8851=this['_revisions']['get'](_0x5987df),_0x4a8b90=this['getIndex'](_0x3d8851);for(yield _0x3d8851;_0x3d8851;){if(_0x4a8b90+=_0x573e13,_0x3d8851=this['getRevision'](_0x4a8b90),!_0x3d8851)return;_0x43f946(_0x3d8851)&&(yield _0x3d8851);}}}class V extends _0x634022{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x474122,'c'],[_0x4667db,'a'],[_0x11513d,'e'],[_0x1df4c4,'r'],[_0x13e38b,'u']]);['_typeCharToViewClass']=new Map([['c',_0x474122],['a',_0x4667db],['e',_0x11513d],['r',_0x1df4c4],['u',_0x13e38b]]);async['loadRevisionData'](_0x34616e,_0x24810e){if(_0x34616e['diffData']||!_0x24810e)return;const _0x51c373=this['editor']['config']['get']('collaboration.channelId'),_0x5f38b8=await _0x24810e['getRevision']({'channelId':_0x51c373,'revisionId':_0x34616e['id']});_0x34616e['diffData']=_0x5f38b8['diffData'];}['getRevisionDocumentData'](_0x28c46e){const _0xdcf2dd={};for(const _0x1e4c54 in _0x28c46e['diffData']){if(_0x28c46e['diffData'][_0x1e4c54]['attachChange']&&!_0x28c46e['diffData'][_0x1e4c54]['attachChange']['isAttached'])continue;const _0x358ac7=this['_removeRevisionMarkers'](JSON['parse'](_0x28c46e['diffData'][_0x1e4c54]['insertions'])),_0xb78382=this['editor']['editing']['view']['document'],_0x329f22=new _0x313088(_0xb78382,_0x358ac7['map'](_0x3ed2be=>this['_getViewFromDiffObj'](_0x3ed2be,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xdcf2dd[_0x1e4c54]=this['editor']['data']['processor']['toData'](_0x329f22),this['editor']['data']['processor']['useFillerType']('default');}return _0xdcf2dd;}['getRevisionRootsAttributes'](_0x1d17cd){const _0x180ae1={};for(const _0x33885e in _0x1d17cd['diffData'])_0x1d17cd['diffData'][_0x33885e]['attachChange']&&!_0x1d17cd['diffData'][_0x33885e]['attachChange']['isAttached']||(_0x180ae1[_0x33885e]=_0x1d17cd['diffData'][_0x33885e]['attributesAfter']||{});return _0x180ae1;}['_getTypeCharForViewElement'](_0x34f2ec){return this['_viewClassToTypeChar']['get'](_0x34f2ec['constructor']);}['_getViewFromDiffObj'](_0x45938b,_0x4cb74b){const _0x418bed=this['editor']['editing']['view']['document'];if('string'==typeof _0x45938b)return new _0x1b4f54(_0x418bed,_0x45938b);{let _0x590113,_0x21c44c;_0x21c44c='u'==_0x45938b['type']||'r'==_0x45938b['type']?[]:_0x45938b['children']['map'](_0x92b413=>this['_getViewFromDiffObj'](_0x92b413,_0x4cb74b));const _0x4f8ad6=this['_typeCharToViewClass']['get'](_0x45938b['type'])||_0x1ec704,_0x29725a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x590113=new _0x4f8ad6(_0x418bed,_0x45938b['name'],_0x45938b['attributes'],_0x21c44c),'u'==_0x45938b['type']&&_0x45938b['children'][0x0]){const _0x1b5e14=_0x45938b['children'][0x0];if(_0x590113['render']=function(_0x3f5c61){const _0x1797c8=_0x3f5c61['createElement']('div');return _0x1797c8['innerHTML']=_0x1b5e14,_0x1797c8['childNodes'][0x0];},_0x4cb74b){const _0xd76c29=new _0x313088(_0x418bed);_0xd76c29['_appendChild'](_0x590113);const _0x264645=Array['from'](_0x29725a['viewChildrenToDom'](_0xd76c29,{'bind':!0x1})),_0x232f15=_0x29725a['domDocument']['createElement']('div');_0x232f15['append'](..._0x264645),_0x590113=Array['from'](_0x29725a['domChildrenToView'](_0x232f15))[0x0];}}else{if('r'==_0x45938b['type']&&_0x45938b['children'][0x0]){const _0x26f5d3=_0x45938b['children'][0x0];if(_0x590113['render']=function(_0x2d4987){_0x2d4987['innerHTML']=_0x26f5d3;},_0x4cb74b){const _0x188599=new _0x313088(_0x418bed);_0x188599['_appendChild'](_0x590113);const _0xfb7c2=Array['from'](_0x29725a['viewChildrenToDom'](_0x188599,{'bind':!0x1})),_0x5d8933=_0x29725a['domDocument']['createElement']('div');_0x5d8933['append'](..._0xfb7c2);const _0x844c20=Array['from'](_0x29725a['domChildrenToView'](_0x5d8933));_0x844c20['length']>0x1?_0x590113['_appendChild'](_0x844c20):_0x590113=_0x844c20[0x0];}}}if(_0x45938b['customProperties']){for(const [_0x304a29,_0x1651d5]of _0x45938b['customProperties'])_0x590113['_setCustomProperty'](_0x304a29,_0x1651d5);}const _0x2c84de=void 0x0===_0x45938b['fillerOffset']?null:_0x45938b['fillerOffset'];return null!==_0x2c84de&&(_0x590113['getFillerOffset']=()=>_0x2c84de),_0x590113;}}['_makeModelFromViewString'](_0x364803){const _0x232d29=JSON['parse'](_0x364803),_0x2401a8=this['editor']['editing']['view']['document'],_0x3495bb=new _0x313088(_0x2401a8,_0x232d29['map'](_0x1b5399=>this['_getViewFromDiffObj'](_0x1b5399,!0x0)));return this['editor']['data']['toModel'](_0x3495bb);}['_removeRevisionMarkers'](_0x5af890){return(_0x5af890=_0x5af890['filter'](_0x35a3e9=>!_0x35a3e9['name']||'revision-start'!==_0x35a3e9['name']&&'revision-end'!==_0x35a3e9['name']))['forEach'](_0x307635=>{'string'!=typeof _0x307635&&(_0x307635['children']=this['_removeRevisionMarkers'](_0x307635['children']),_0x307635['attributes']=_0x307635['attributes']['filter'](_0x540403=>!_0x540403[0x0]['startsWith']('data-revision-')));}),_0x5af890;}}function g(_0x2fcaf0,_0x459697,_0x1a98ce){const t=_0x2fcaf0['t'];switch(_0x459697){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'},_0x1a98ce);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1a98ce);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 _0x634022{['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[_0x1b99f2,I,V,_0x237b95];}constructor(_0x2f72a7){super(_0x2f72a7),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 _0xb1fae7=_0x3819d0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xb1fae7},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 _0x38b6b4=this['repository']['getRevision'](0x0),_0x55844c=_0x38b6b4&&null===_0x38b6b4['creator']?_0x38b6b4:null;if(this['_continueCurrentRevision']=!!_0x55844c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x29f067=this['_source']['getCurrentRevisionId'](),_0x4a7e62=this['repository']['getRevision'](_0x29f067);if(_0x4a7e62)this['_startingVersion']=_0x4a7e62['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3dace2=this['_source']['history']['_operations']['find'](_0xbc2040=>!_0xbc2040['_isInit']),_0x2d1d80=_0x3dace2?_0x3dace2['baseVersion']:this['_source']['history']['version'];_0x38b6b4?(_0x38b6b4['toVersion']<_0x2d1d80&&_0x38b6b4['_update']({'toVersion':_0x2d1d80}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x55844c['id'],this['_startingVersion']=_0x55844c['fromVersion']):(this['_startingVersion']=_0x38b6b4['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2d1d80,this['_continueCurrentRevision']=!0x1);}}else _0x55844c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x55844c['toVersion'],this['editor']['model']['document']['history']['version']),_0x55844c['fromVersion']===_0x55844c['toVersion']?(0x0!==_0x55844c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x55844c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x55844c['id'],this['_startingVersion']=_0x55844c['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',_0x344fcd=>!_0x344fcd),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x247efb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2549a4;for(const _0x370f49 in _0x247efb){const _0x356249=_0x370f49,_0x4f8305=_0x247efb[_0x356249];if('revisionHistoryLicenseKeyValid'==_0x4f8305||'revisionHistoryLicenseKeyInvalid'==_0x4f8305||'revisionHistoryLicenseKeyExpired'==_0x4f8305||'revisionHistoryLicenseKeyDomainLimit'==_0x4f8305||'revisionHistoryLicenseKeyNotAllowed'==_0x4f8305||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f8305||'revisionHistoryLicenseKeyTrialLimit'==_0x4f8305||'revisionHistoryLicenseKeyUsageLimit'==_0x4f8305){delete _0x247efb[_0x356249],_0x2549a4=_0x4f8305,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2549a4&&_0x247efb['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2549a4&&_0x247efb['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2549a4&&_0x247efb['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2549a4&&_0x247efb['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2549a4&&_0x247efb['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2549a4&&_0x247efb['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2549a4&&_0x247efb['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1ba4ad=this['repository']['getRevision'](0x0),_0x3b67fa=await this['getRevisionDocumentData'](_0x1ba4ad),_0x4d4fa3=await this['getRevisionRootsAttributes'](_0x1ba4ad);this['_replaceEditorDataWithRevisionData'](_0x3b67fa,_0x4d4fa3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x36e9b8){this['_source']=_0x36e9b8;}async['update'](){const _0x157a7a=await this['_source']['getLatestVersion']();if(_0x157a7a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2027d1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x157a7a});_0x2027d1['authors']=_0x2027d1['authorsIds']['map'](_0x17ac29=>this['editor']['plugins']['get']('Users')['getUser'](_0x17ac29)),this['currentRevision']['_update'](_0x2027d1);}}async['saveRevision'](_0x24b265={},_0x48bdd4=null){const _0x3fd265=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x48bdd4>this['currentRevision']['toVersion']&&(_0x48bdd4=null),null===_0x48bdd4&&(_0x48bdd4=await this['_source']['getLatestVersion']());const _0x1c5c06=this['_getFromVersion'](_0x48bdd4),_0x35f945=this['buildRevisionData']({'from':_0x1c5c06,'to':_0x48bdd4});if(this['currentRevision']['toVersion']<_0x48bdd4){const _0x52a676=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x48bdd4,'to':_0x48bdd4});_0x52a676['authors']=[],_0x52a676['authorsIds']=[],_0x52a676['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x52a676,!0x0),delete _0x52a676['authors'],_0x3fd265['push'](_0x52a676);}_0x24b265['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x24b265['name']=_0x24b265['name']||null,_0x24b265['id']=_0x24b265['id']||_0x3819d0(),_0x24b265={..._0x24b265,..._0x35f945};const _0x2f11a1=this['addRevisionData'](_0x24b265);_0x3fd265['push'](_0x24b265);const _0x144bfc=this['repository']['getIndex'](_0x2f11a1);if(0x0!==_0x144bfc){const _0x5a35fd=this['repository']['getRevision'](_0x144bfc-0x1);if(_0x5a35fd['fromVersion']!==_0x48bdd4){const _0x30ccf=this['_revisionDataBuilder']['getData'](_0x48bdd4,_0x5a35fd['toVersion']),_0x5540ed={'id':_0x5a35fd['id'],'diffData':_0x30ccf['diffData'],'authorsIds':_0x30ccf['authorsIds'],'authors':_0x30ccf['authorsIds']['map'](_0x3f97fd=>this['editor']['plugins']['get']('Users')['getUser'](_0x3f97fd)),'fromVersion':_0x48bdd4};_0x5a35fd===this['currentRevision']&&(_0x5540ed['createdAt']=new Date(_0x24b265['createdAt']['getTime']()+0xa)),_0x5a35fd['_update'](_0x5540ed,!0x0),delete _0x5540ed['authors'],_0x3fd265['push'](_0x5540ed);}}if(this['adapter']){for(const _0x1da929 of _0x3fd265)this['_bufferUpdate'](_0x1da929['id'],_0x1da929,!0x0);this['sendBufferedUpdates']();}return _0x2f11a1;}['addRevisionData'](_0x785725){const _0x49e1f1=this['repository']['createRevision'](_0x785725);return this['adapter']&&_0x49e1f1['on']('_update',(_0x324f6f,_0x3978c3,_0xa3a7a5)=>{_0xa3a7a5||(this['_bufferUpdate'](_0x3978c3['id'],_0x3978c3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x49e1f1,this['_findInsertionIndex'](_0x49e1f1)),_0x49e1f1;}async['getRevisionDocumentData'](_0x299346){return await this['_utils']['loadRevisionData'](_0x299346,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x299346);}async['getRevisionRootsAttributes'](_0x20867f){return await this['_utils']['loadRevisionData'](_0x20867f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x20867f);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x34b575=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4cf154=0x0;_0x4cf154<_0x34b575['length'];_0x4cf154++){const _0x23761f=_0x34b575[_0x4cf154];let _0x169e79=!0x1;for(const _0x3c3790 of Object['keys'](_0x23761f))void 0x0===_0x23761f[_0x3c3790]?delete _0x23761f[_0x3c3790]:'id'!==_0x3c3790&&(_0x169e79=!0x0);_0x169e79||(_0x34b575[_0x4cf154]=null);}if(_0x34b575=_0x34b575['filter'](_0x27866c=>null!==_0x27866c),!_0x34b575['length'])return;for(let _0x1935c1=0x0;_0x1935c1<_0x34b575['length'];_0x1935c1++){const _0x55a87a=_0x34b575[_0x1935c1];void 0x0!==_0x55a87a['fromVersion']&&void 0x0===_0x55a87a['toVersion']&&(_0x55a87a['toVersion']=this['repository']['getRevision'](_0x55a87a['id'])['toVersion']),void 0x0!==_0x55a87a['toVersion']&&void 0x0===_0x55a87a['fromVersion']&&(_0x55a87a['fromVersion']=this['repository']['getRevision'](_0x55a87a['id'])['fromVersion']);}const _0x5254d0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x34b575,_0x5254d0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x265de=>{if(_0x265de){for(const _0x6367db of _0x265de)this['setRevisionData']({'id':_0x6367db['id'],'createdAt':_0x6367db['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x28699e=null,from:_0x24e1f7=null,to:_0x3bb42a=null}){_0x24e1f7=null!==_0x24e1f7?_0x24e1f7:_0x28699e['fromVersion'],_0x3bb42a=null!==_0x3bb42a?_0x3bb42a:_0x28699e['toVersion'];const _0x385035=this['_revisionDataBuilder']['getData'](_0x24e1f7,_0x3bb42a),_0xe1d045={'diffData':_0x385035['diffData'],'authorsIds':_0x385035['authorsIds'],'fromVersion':_0x24e1f7,'toVersion':_0x3bb42a};if(!_0x28699e||_0x3bb42a!==_0x28699e['toVersion']){const _0x300378=_0x3bb42a-0x1,_0x206f44=this['_source']['history']['getOperation'](_0x300378);_0xe1d045['createdAt']=_0x206f44&&_0x206f44['createdAt']||new Date();}if(this['_loadedStateData']&&_0x24e1f7===this['_loadedStateData']['fromVersion']){for(const _0x40d55e of this['_loadedStateData']['authors'])_0xe1d045['authorsIds']['includes'](_0x40d55e['id'])||_0xe1d045['authorsIds']['push'](_0x40d55e['id']);}return _0xe1d045;}['_bufferUpdate'](_0x395520,_0x23d885,_0x2b2c14){if(this['_bufferedUpdates']['has'](_0x395520)){const _0x237436=this['_bufferedUpdates']['get'](_0x395520);_0x23d885=_0x2b2c14?{..._0x237436,..._0x23d885}:{..._0x23d885,..._0x237436};}this['_bufferedUpdates']['set'](_0x395520,_0x23d885);}['setRevisionData'](_0x539200){const _0x561763=this['repository']['getRevision'](_0x539200['id']);if(_0x539200['createdAt']&&(_0x539200['createdAt']=new Date(_0x539200['createdAt'])),_0x539200['authorsIds']){const _0x43e245=this['editor']['plugins']['get']('Users');_0x539200['authors']=_0x539200['authorsIds']['map'](_0x2e9355=>_0x43e245['getUser'](_0x2e9355));}_0x561763['_update'](_0x539200,!0x0);}['_createInitialRevision'](_0x5696d3){const _0x5102f9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5102f9)this['_initialRevisionId']=_0x5102f9['id'];else{const _0x21b89d=!this['editor']['model']['document']['roots']['find'](_0x1b029f=>this['editor']['model']['hasContent'](_0x1b029f)),_0x1cba85=this['editor']['plugins']['get']('Users')['me']['id'],_0x11c34e=g(this['editor']['locale'],_0x21b89d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5696d3,'to':_0x5696d3,'id':this['_initialRevisionId'],'name':_0x11c34e,'creatorId':_0x1cba85});}}['_createCurrentRevision'](_0x3dbd44){const _0x124a8d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x124a8d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3dbd44,'to':_0x3dbd44,'id':_0x124a8d,'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'](_0x337e14,_0x2d7c85){let _0x3f35c6=this['editor']['config']['get']('initialData'),_0x2ffc94=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3f35c6){_0x3f35c6={};for(const _0x31beb1 of this['editor']['model']['document']['getRootNames']())_0x3f35c6[_0x31beb1]='';}if('string'==typeof _0x3f35c6&&(_0x3f35c6={'main':_0x3f35c6}),void 0x0===_0x2ffc94){_0x2ffc94={};for(const _0x396eec of this['editor']['model']['document']['getRootNames']())_0x2ffc94[_0x396eec]={};}let _0x3f3563=!0x1;const _0x2f56cf=Object['keys'](_0x3f35c6),_0x7d4f76=Object['keys'](_0x337e14);for(const _0xa18c3d of _0x2f56cf){if(_0x3f35c6[_0xa18c3d]!==_0x337e14[_0xa18c3d]&&''!==_0x3f35c6[_0xa18c3d]['trim']()){_0x3f3563=!0x0;break;}if(!_0x5810e(_0x2ffc94[_0xa18c3d],_0x2d7c85[_0xa18c3d])&&Object['keys'](_0x2ffc94[_0xa18c3d])['length']>0x0){_0x3f3563=!0x0;break;}}_0x3f3563||(_0x3f3563=_0x7d4f76['some'](_0x3e9463=>!this['editor']['model']['document']['getRoot'](_0x3e9463))),_0x3f3563&&_0x51bb0b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3f35c6,'editorRootsAttributes':_0x2ffc94,'revisionData':_0x337e14,'revisionRootsAttributes':_0x2d7c85}),this['editor']['config']['set']('initialData',_0x337e14),this['editor']['config']['set']('rootsAttributes',_0x2d7c85);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5c4a07=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5c4a07['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4ab8a7){const _0x52a1da=this['repository']['getRevisions']();_0x52a1da['reverse']();let _0x19dfb3=0x0;for(;_0x19dfb3<_0x52a1da['length'];){const _0x4e6f9b=_0x52a1da[_0x19dfb3];if(_0x4e6f9b===this['currentRevision']){_0x19dfb3++;continue;}if(_0x4e6f9b['id']===this['_initialRevisionId'])break;const _0xb7686f=_0x4ab8a7['toVersion']-_0x4e6f9b['toVersion']||_0x4ab8a7['fromVersion']-_0x4e6f9b['fromVersion'];if(_0xb7686f>0x0)break;if(_0xb7686f<0x0)_0x19dfb3++;else{if(!_0x4ab8a7['creator']&&_0x4e6f9b['creator'])break;if(_0x4e6f9b['creator']||!_0x4ab8a7['creator']){if(_0x4ab8a7['createdAt']>_0x4e6f9b['createdAt'])break;_0x19dfb3++;}else _0x19dfb3++;}}return _0x19dfb3;}['_getFromVersion'](_0x2f09aa){const _0x33110b=this['repository']['getRevisions']();_0x33110b['reverse'](),_0x33110b['shift']();const _0x4e760c=_0x33110b['find'](_0x288447=>_0x288447['toVersion']<=_0x2f09aa)['toVersion'];return _0x4e760c<this['_startingVersion']?this['_startingVersion']:_0x4e760c;}['_makeRevision']({name:_0x47d4c2,from:_0xc7277b,to:_0x552d67,creatorId:_0x363496,id:_0x466577}){const _0x5bd2c4=this['buildRevisionData']({'from':_0xc7277b,'to':_0x552d67});_0x5bd2c4['name']=_0x47d4c2,_0x5bd2c4['creatorId']=_0x363496,_0x5bd2c4['id']=_0x466577;const _0x1ab4da=this['addRevisionData'](_0x5bd2c4);return this['adapter']&&this['_bufferUpdate'](_0x5bd2c4['id'],_0x5bd2c4,!0x0),_0x1ab4da;}['_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(_0x2ccbb6){this['editor']=_0x2ccbb6,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'](_0x4dbf32){this['source']=_0x4dbf32;const _0x1a8c59=new Map(),_0x109f96=new Map(),_0x6c4a41=this['editor']['model']['document']['roots']['map'](_0xfb08f5=>_0xfb08f5['rootName']);for(const _0x4d6858 of _0x6c4a41){const _0x52274d=this['editor']['model']['document']['getRoot'](_0x4d6858),_0x148f25=N(_0x52274d);_0x1a8c59['set'](_0x4d6858,_0x148f25),_0x109f96['set'](_0x4d6858,Object['fromEntries'](_0x52274d['getAttributes']()));}const _0x35a43a=Array['from'](this['editor']['model']['markers'])['map'](_0x212b63=>[_0x212b63['name'],_0x212b63['getRange']()]),_0x3a0b99=this['source']['version'];this['_saveMetaData'](_0x3a0b99,_0x1a8c59,_0x35a43a,_0x109f96),this['_startingRevisionId']=this['_revisionId'];const _0x30e54b=new Map(),_0x54a24b=new Map();for(const _0x58f266 of _0x6c4a41){const _0x25d3bd=P(_0x58f266);_0x30e54b['set'](_0x58f266,_0x25d3bd),_0x54a24b['set'](_0x58f266,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x30e54b,[],_0x54a24b);}['getData'](_0x1bc982,_0x2210d5){if(this['_lastFrom']===_0x1bc982&&this['_lastTo']<=_0x2210d5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2210d5,!0x0);else{if(!this['_savedMetaData']['has'](_0x1bc982)){const _0x3d3fc8=this['_getPreviousFrom'](_0x1bc982);this['_calculateMetaData'](_0x3d3fc8,_0x1bc982,!0x1);}this['_calculateMetaData'](_0x1bc982,_0x2210d5,!0x0);}return this['_lastFrom']=_0x1bc982,this['_lastTo']=_0x2210d5,this['_getState']();}['loadState'](_0x4be9ce){const _0x261a95=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4be9ce['fromVersion'],this['_lastTo']=_0x4be9ce['toVersion'];for(const _0x2e659e in _0x4be9ce['diffData']){const _0x304d26=_0x4be9ce['diffData'][_0x2e659e]['attachChange'],_0x45341e=_0x139560(_0x4be9ce['diffData'][_0x2e659e]['attributesBefore'])||{},_0x2339e3=_0x261a95['_makeModelFromViewString'](_0x4be9ce['diffData'][_0x2e659e]['deletions']);_0x2339e3['rootName']=_0x2e659e,_0x2339e3['_isAttached']=!_0x304d26||!_0x304d26['isAttached'],_0x2339e3['isAttached']=()=>_0x2339e3['_isAttached'],this['_baseRoots']['set'](_0x2e659e,_0x2339e3),this['_baseRootsAttributes']['set'](_0x2e659e,_0x45341e),_0x304d26&&this['_touchedRoots']['set'](_0x2e659e,_0x304d26);const _0xb5ad50=this['_makeIdsRoot'](_0x2339e3);this['_baseIdsRoots']['set'](_0x2e659e,_0xb5ad50);for(const [_0x52d8d0,_0x42af67]of _0x2339e3['markers']){if(!_0x52d8d0['startsWith']('revision:'))continue;const _0x1f174a=_0x52d8d0['split'](':')[0x2];for(const _0x3bb4f3 of _0x42af67['getWalker']({'singleCharacters':!0x0})){const _0x100622=this['_getVidAttributeName'](_0x3bb4f3),_0x2f34ed='elementEnd'==_0x3bb4f3['type']?_0x3bb4f3['previousPosition']['path']['slice'](0x0,-0x1):_0x3bb4f3['previousPosition']['path'],_0x5da933=_0xb5ad50['getNodeByPath'](_0x2f34ed)['getAttribute'](_0x100622);this['_touched']['set'](_0x5da933,{'userId':_0x1f174a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5e3f84=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xd54e27=>!this['_touched']['has'](_0xd54e27));let _0x5ace31=0x0;const _0xdf94c3=new Map();for(const _0xa0b808 in _0x4be9ce['diffData']){const _0x41bd2f=_0x4be9ce['diffData'][_0xa0b808]['attachChange'],_0x5de86d=_0x139560(_0x4be9ce['diffData'][_0xa0b808]['attributesAfter'])||{},_0x5eace7=_0x261a95['_makeModelFromViewString'](_0x4be9ce['diffData'][_0xa0b808]['insertions']);_0x5eace7['rootName']=_0xa0b808,_0x5eace7['_isAttached']=!_0x41bd2f||_0x41bd2f['isAttached'],_0x5eace7['isAttached']=()=>_0x5eace7['_isAttached'],this['_diffRoots']['set'](_0xa0b808,_0x5eace7),this['_diffRootsAttributes']['set'](_0xa0b808,_0x5de86d);const _0x2f533a=this['_makeIdsRoot'](_0x5eace7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xa0b808,_0x2f533a),_0xdf94c3['set'](_0xa0b808,_0x5eace7['isAttached']()?_0x5de86d:{});for(const [_0x496934,_0x257d6c]of _0x5eace7['markers']){if(!_0x496934['startsWith']('revision:'))continue;const _0xc561c4=_0x496934['split'](':')[0x2];for(const _0x416032 of _0x257d6c['getWalker']({'singleCharacters':!0x0})){const _0x383119=this['_getVidAttributeName'](_0x416032),_0xa537e3=this['_revisionId']++,_0x2f5529='elementEnd'==_0x416032['type']?_0x416032['previousPosition']['path']['slice'](0x0,-0x1):_0x416032['previousPosition']['path'];_0x2f533a['getNodeByPath'](_0x2f5529)['_setAttribute'](_0x383119,_0xa537e3),this['_touched']['set'](_0xa537e3,{'userId':_0xc561c4});}}for(const _0x20e079 of this['editor']['model']['createRangeIn'](_0x5eace7)['getWalker']({'singleCharacters':!0x0})){const _0x45f2c2=this['_getVidAttributeName'](_0x20e079),_0x599558='elementEnd'==_0x20e079['type']?_0x20e079['previousPosition']['path']['slice'](0x0,-0x1):_0x20e079['previousPosition']['path'],_0x4b984b=_0x2f533a['getNodeByPath'](_0x599558);_0x4b984b['getAttribute'](_0x45f2c2)>0x0||_0x4b984b['_setAttribute'](_0x45f2c2,_0x5e3f84[_0x5ace31++]);}for(const [_0x246250,_0x216a98]of _0x5eace7['markers'])_0x246250['startsWith']('revision:')||this['_markers']['set'](_0x246250,_0x216a98);}const _0x48e2bf=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x48e2bf),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x48e2bf,0x1));const _0x1c0ed7=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1c0ed7),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c0ed7,0x1));const _0x2ac1d3=Array['from'](this['_diffRoots'])['map'](([_0x3d886c,_0x12f27d])=>[_0x3d886c,N(_0x12f27d)]);this['_saveMetaData'](this['_lastTo'],_0x2ac1d3,this['_markers'],_0xdf94c3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4ca58d,_0x4010a5,_0x175ba4,_0x17b966){const _0x1c4acd=new Map(_0x4010a5),_0x115c7c=new Map(_0x139560(_0x17b966)),_0x34d92=new Map();for(const [_0x4cce11,_0x643643]of _0x175ba4)_0x34d92['set'](_0x4cce11,{'start':_0x643643['start']['clone'](),'end':_0x643643['end']['clone'](),'rootName':_0x643643['root']['rootName']});this['_savedMetaData']['set'](_0x4ca58d,{'roots':_0x1c4acd,'markers':_0x34d92,'rootsAttributes':_0x115c7c});}['_removeMetaData'](_0x40ac93){this['_savedMetaData']['delete'](_0x40ac93);}['_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'](_0x3158da,_0x17c846=null){let _0x4f21dd=null;_0x3158da['is']('documentFragment')||(_0x4f21dd=new ut(_0x3158da['name'],{'vid_start':null===_0x17c846?this['_revisionId']++:_0x17c846++}));const _0x1ad458=[];for(const _0x1df68d of _0x3158da['getChildren']())if(_0x1df68d['is']('element')){_0x1ad458['push'](this['_makeIdsRoot'](_0x1df68d,_0x17c846));const _0x50b053=_0x1ad458[_0x1ad458['length']-0x1];null!==_0x17c846&&(_0x17c846=_0x50b053['is']('element','$text')?_0x50b053['getAttribute']('vid')+0x1:_0x50b053['getAttribute']('vid_end')+0x1);}else{for(let _0x4e33ce=0x0;_0x4e33ce<_0x1df68d['offsetSize'];_0x4e33ce++)_0x1ad458['push'](new ut('$text',{'vid':null===_0x17c846?this['_revisionId']++:_0x17c846++}));}if(_0x3158da['is']('documentFragment')){const _0x252fbb=P(_0x3158da['rootName']);return _0x252fbb['_insertChild'](0x0,_0x1ad458),_0x252fbb;}return _0x4f21dd['_setAttribute']('vid_end',null===_0x17c846?this['_revisionId']++:_0x17c846++),_0x4f21dd['_insertChild'](0x0,_0x1ad458),_0x4f21dd;}['_calculateMetaData'](_0x53e212,_0x10ef14,_0x1350f1){this['_reset']();const {roots:_0x4bf71f,markers:_0x37fc53,rootsAttributes:_0xae8add}=this['_savedMetaData']['get'](_0x53e212);this['_baseRoots']=new Map(_0x4bf71f),this['_baseRootsAttributes']=new Map(_0x139560(_0xae8add));for(const [_0x41269e,_0x512855]of this['_baseRoots'])if('$graveyard'!==_0x41269e&&(this['_diffRoots']['set'](_0x41269e,N(_0x512855)),this['_diffRootsAttributes']=new Map(_0x139560(_0xae8add)),_0x1350f1)){const _0x59b828=this['_revisionId'];this['_idsRoots']['set'](_0x41269e,this['_makeIdsRoot'](_0x512855)),this['_baseIdsRoots']['set'](_0x41269e,this['_makeIdsRoot'](_0x512855,_0x59b828));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1350f1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1d244c,_0x117f0b]of _0x37fc53){const _0x5b77a8=this['_baseRoots']['get'](_0x117f0b['rootName']),_0x7bf618=this['_diffRoots']['get'](_0x117f0b['rootName']),_0x3c7511=new lt(this['_fixPosition'](_0x117f0b['start'],_0x5b77a8),this['_fixPosition'](_0x117f0b['end'],_0x5b77a8)),_0xb0a97=this['_fixRange'](_0x3c7511,_0x7bf618);_0x5b77a8['markers']['set'](_0x1d244c,_0x3c7511),this['_markers']['set'](_0x1d244c,_0xb0a97);}this['_applyOperations'](_0x53e212,_0x10ef14,_0x1350f1);}['_applyOperations'](_0x3f0275,_0x183057,_0x12589c){for(const _0x295694 of this['source']['getOperations'](_0x3f0275,_0x183057))this['_handleOperation'](_0x295694,_0x12589c);for(const _0x56e36b of this['_diffRoots']['values']())_0x56e36b['markers']['clear']();for(const [_0x3afbe3,_0x491f20]of this['_markers']){this['_diffRoots']['get'](_0x491f20['root']['rootName'])['markers']['set'](_0x3afbe3,_0x491f20['clone']());}const _0x433b74=new Map(),_0x46b42e=new Map();for(const [_0x100c37,_0x355bd1]of this['_diffRoots'])_0x433b74['set'](_0x100c37,N(_0x355bd1)),_0x46b42e['set'](_0x100c37,this['_diffRootsAttributes']['get'](_0x100c37));this['_saveMetaData'](_0x183057,_0x433b74,this['_markers'],_0x46b42e);}['_getPreviousFrom'](_0xc8650e){const _0x58c009=Array['from'](this['_savedMetaData']['keys']());_0x58c009['sort']((_0x1419eb,_0x20f434)=>_0x1419eb-_0x20f434),_0x58c009['reverse']();for(const _0x120a4f of _0x58c009)if(_0x120a4f<_0xc8650e)return _0x120a4f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4708c8,_0x3febb4){const _0x489b00=Array['from'](_0x3febb4['markers'])['map'](([_0x2d18e5,_0x1959f6])=>[_0x2d18e5,this['_fixRange'](_0x1959f6,_0x4708c8)]);_0x4708c8['markers']=new Map(_0x489b00);}['_transformMarkers'](_0x1e0b23){for(const _0x369be6 of this['_markers']['values']()){const _0x115a2d=_0x369be6['getTransformedByOperation'](_0x1e0b23),_0x3c5316=lt['_createFromRanges'](_0x115a2d);_0x369be6['start']=_0x3c5316['start'],_0x369be6['end']=_0x3c5316['end'];}}['_handleOperation'](_0x347861,_0x395915){if('addRoot'!=_0x347861['type']&&'detachRoot'!=_0x347861['type']){if('insert'==_0x347861['type']){const _0x410997=_0x347861['position']['root']['rootName'];this['_diffRoots']['has'](_0x410997)||(this['_diffRoots']['set'](_0x410997,P(_0x410997,!0x0)),this['_diffRootsAttributes']['set'](_0x410997,{}),_0x395915&&this['_idsRoots']['set'](_0x410997,P(_0x410997,!0x0)));}else{if('addRootAttribute'==_0x347861['type']||'removeRootAttribute'==_0x347861['type']||'changeRootAttribute'==_0x347861['type'])return void this['_handleRootAttributeOperation'](_0x347861);'marker'==_0x347861['type']&&this['_handleMarkerOperation'](_0x347861);}if('marker'!==_0x347861['type']){const _0x543b8f=this['_cloneOperation'](_0x347861,this['_diffRoots']);_0x543b8f['_execute'](),this['_transformMarkers'](_0x543b8f);}if(_0x395915)switch(_0x347861['type']){case'insert':this['_handleInsertOperation'](_0x347861);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x347861);break;case'merge':this['_handleMergeOperation'](_0x347861);break;case'split':this['_handleSplitOperation'](_0x347861);}}else this['_handleRootOperation'](_0x347861,_0x395915);}['_cloneOperation'](_0x58fc6f,_0x33965f){const _0x54dc3a=_0x58fc6f['clone']();return _0x54dc3a['_authorId']=_0x58fc6f['_authorId'],this['_fixOperation'](_0x54dc3a,_0x33965f),_0x54dc3a;}['_getBaseVids'](_0x1d48c1){return _0x1d48c1['map'](_0x56eaa6=>{const _0xcb0f93=this['_getVidAttributeName'](_0x56eaa6);return Number(_0x56eaa6['item']['getAttribute'](_0xcb0f93));});}['_generateTape'](_0x16b794,_0x32e201){if(_0x16b794['is']('element','$text'))_0x32e201['push']({'item':_0x16b794,'type':'text'});else{_0x16b794['is']('element')&&_0x32e201['push']({'item':_0x16b794,'type':'elementStart'});for(const _0x309c4c of _0x16b794['getChildren']())this['_generateTape'](_0x309c4c,_0x32e201);_0x16b794['is']('element')&&_0x32e201['push']({'item':_0x16b794,'type':'elementEnd'});}return _0x32e201;}['_getState'](){const _0x478287=new Map(this['_touched']),_0x492010=new Map(_0x478287),_0x37d8ae=new Map(),_0x21aa39={'insertions':{},'deletions':{}},_0x1a7a0f={'insertions':{},'deletions':{}},_0x1a00b9=new Map(),_0x5b11ab=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5b11ab['delete']('$graveyard');for(const _0x5bf56b of _0x5b11ab){const _0x303a27=this['_diffRoots']['get'](_0x5bf56b)||P(_0x5bf56b,!0x1),_0xc158b9=this['_baseRoots']['get'](_0x5bf56b)||P(_0x5bf56b,!0x1);_0x303a27['isAttached']()||_0xc158b9['isAttached']()?(_0x21aa39['insertions'][_0x5bf56b]=N(_0x303a27),_0x21aa39['deletions'][_0x5bf56b]=N(_0xc158b9),this['_copyMarkers'](_0x21aa39['deletions'][_0x5bf56b],_0xc158b9),this['_copyMarkers'](_0x21aa39['insertions'][_0x5bf56b],_0x303a27),_0x1a7a0f['insertions'][_0x5bf56b]=this['_generateTape'](this['_idsRoots']['get'](_0x5bf56b),[]),_0x1a7a0f['deletions'][_0x5bf56b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5bf56b)||P(_0x5bf56b,!0x1),[])):_0x5b11ab['delete'](_0x5bf56b);}for(const _0x1faf97 of _0x5b11ab){const _0x14b7a2=_0x1a7a0f['insertions'][_0x1faf97];for(const _0x2a2c1a of _0x14b7a2){const _0x2cc1cd=this['_getVidAttributeName'](_0x2a2c1a),_0x363e5d=_0x2a2c1a['item']['getAttribute'](_0x2cc1cd);_0x492010['delete'](_0x363e5d),_0x363e5d>=this['_startingRevisionId']&&_0x37d8ae['set'](_0x363e5d,_0x478287['get'](_0x363e5d));}}for(const _0x5ce83f of _0x5b11ab){const _0x3dd6b7=_0x1a7a0f['insertions'][_0x5ce83f],_0x39252c=this['_getBaseVids'](_0x1a7a0f['deletions'][_0x5ce83f]);let _0x142481=0x0;for(const _0x1c9955 of _0x3dd6b7){const _0x1057e0=this['_getVidAttributeName'](_0x1c9955),_0x34fb40=_0x1c9955['item']['getAttribute'](_0x1057e0);if(!_0x37d8ae['has'](_0x34fb40)&&!_0x1a00b9['has'](_0x34fb40)){if(_0x492010['has'](_0x34fb40))_0x142481++;else{if(_0x34fb40!=_0x39252c[_0x142481]){const _0x9afc9d=_0x478287['get'](_0x34fb40)||_0x478287['get'](_0x39252c[_0x142481]);for(;_0x34fb40!=_0x39252c[_0x142481];)_0x492010['has'](_0x39252c[_0x142481])||(_0x1a00b9['set'](_0x39252c[_0x142481],_0x9afc9d),_0x478287['set'](_0x39252c[_0x142481],_0x9afc9d)),_0x142481++;}_0x142481++;}}}}for(const _0x1fd925 of _0x5b11ab){const _0x3c48d4=_0x1a7a0f['insertions'][_0x1fd925];for(const _0x50b7fb of _0x3c48d4){const _0x17c303=this['_getVidAttributeName'](_0x50b7fb),_0x56071e=_0x50b7fb['item']['getAttribute'](_0x17c303);if(_0x1a00b9['has'](_0x56071e)){const _0xd1a174=_0x1a00b9['get'](_0x56071e);_0x492010['has'](_0x56071e)||_0x492010['set'](_0x56071e,{..._0xd1a174}),_0x37d8ae['set'](_0x56071e,{..._0xd1a174});}}}for(const _0x20126d of _0x492010['keys']())_0x20126d>=this['_startingRevisionId']&&_0x492010['delete'](_0x20126d);const _0x38e961=new Map();for(const _0x27982c of _0x5b11ab){let _0x69d7f4=_0x1a7a0f['insertions'][_0x27982c];for(const _0x4da26b of _0x69d7f4)if(_0x4da26b['item']['is']('element','tableCell')){const _0x5d7ab9=this['_getVidAttributeName'](_0x4da26b),_0x5e7365=_0x4da26b['item']['getAttribute'](_0x5d7ab9);if(_0x37d8ae['has'](_0x5e7365)){const _0x397ceb=_0x4da26b['item']['parent']['parent']['getAttribute']('vid_start'),_0x449608=_0x38e961['get'](_0x397ceb)||new Set();_0x449608['add'](_0x37d8ae['get'](_0x5e7365)['userId']),_0x38e961['set'](_0x397ceb,_0x449608);}}_0x69d7f4=_0x1a7a0f['deletions'][_0x27982c];for(const _0x25d89f of _0x69d7f4)if(_0x25d89f['item']['is']('element','tableCell')){const _0x33b4de=this['_getVidAttributeName'](_0x25d89f),_0x5aa95d=_0x25d89f['item']['getAttribute'](_0x33b4de);if(_0x492010['has'](_0x5aa95d)){const _0x16d018=_0x25d89f['item']['parent']['parent']['getAttribute']('vid_start'),_0xe52bc6=_0x38e961['get'](_0x16d018)||new Set();_0xe52bc6['add'](_0x492010['get'](_0x5aa95d)['userId']),_0x38e961['set'](_0x16d018,_0xe52bc6);}}for(const _0x129dae of _0x38e961['keys']())(_0x37d8ae['has'](_0x129dae)||_0x492010['has'](_0x129dae))&&_0x38e961['delete'](_0x129dae);}for(const _0xf44e5c of _0x5b11ab){const _0xb9863c=_0x1a7a0f['insertions'][_0xf44e5c];let _0x380120=null,_0x7c2e5e=null;for(const _0x1a59c5 of _0xb9863c){const _0x34f9b1=this['_getVidAttributeName'](_0x1a59c5),_0x1a56a1=_0x1a59c5['item']['getAttribute'](_0x34f9b1),_0x4341e2=_0x38e961['get'](_0x1a56a1);_0x4341e2&&'elementStart'==_0x1a59c5['type']&&(_0x380120=Array['from'](_0x4341e2)[0x0],_0x7c2e5e=_0x1a59c5['item']['getAttribute']('vid_end')),_0x380120&&(_0x492010['set'](_0x1a56a1,{'userId':_0x380120}),_0x37d8ae['set'](_0x1a56a1,{'userId':_0x380120})),_0x1a56a1==_0x7c2e5e&&(_0x380120=null,_0x7c2e5e=null);}}const _0x3816c5={},_0x8a056f=new Set();for(const _0x311533 of _0x5b11ab){const _0x3679af=_0x21aa39['deletions'][_0x311533],_0x2b5d8f=_0x21aa39['insertions'][_0x311533];for(const {userId:_0x39c7af}of this['_touchedMarkers']['values']())null!==_0x39c7af&&_0x8a056f['add'](_0x39c7af);for(const {userId:_0x1dcb29}of this['_touchedRoots']['values']())null!==_0x1dcb29&&_0x8a056f['add'](_0x1dcb29);this['_markChanges'](_0x2b5d8f,_0x1a7a0f['insertions'][_0x311533],_0x37d8ae,'insertion',_0x8a056f),this['_markChanges'](_0x3679af,_0x1a7a0f['deletions'][_0x311533],_0x492010,'deletion',_0x8a056f),_0x3816c5[_0x311533]={'insertions':this['_prepareViewToSave'](_0x2b5d8f),'deletions':this['_prepareViewToSave'](_0x3679af),'attachChange':this['_touchedRoots']['get'](_0x311533)||null,'attributesBefore':_0x139560(this['_baseRootsAttributes']['get'](_0x311533))||{},'attributesAfter':_0x139560(this['_diffRootsAttributes']['get'](_0x311533))};}return{'diffData':_0x3816c5,'authorsIds':Array['from'](_0x8a056f)};}['_processRootBeforeSave'](_0x341a5f){for(const [,_0x58337f]of _0x341a5f['markers']){const _0x36852b=_0x58337f['start']['getAncestors']()['filter'](_0x2f53d3=>'tableCell'==_0x2f53d3['name']);for(const _0x3e53b4 of _0x36852b)0x1==_0x3e53b4['childCount']&&_0x3e53b4['getChild'](0x0)['is']('element','paragraph')&&_0x3e53b4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe61f26){this['_processRootBeforeSave'](_0xe61f26);const _0x28595b=this['editor']['data']['toView'](_0xe61f26,{}),_0xe8f0b9=Array['from'](_0x28595b['getChildren']())['map'](_0x58592a=>this['_getViewJson'](_0x58592a));return JSON['stringify'](_0xe8f0b9);}['_getViewJson'](_0x113f08){if(_0x113f08['is']('$text'))return _0x113f08['data'];{const _0x4c10e6=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x58a8bf=_0x113f08,_0x4da117=this['editor']['data']['htmlProcessor']['domConverter'],_0x11c282={'type':_0x4c10e6['_getTypeCharForViewElement'](_0x58a8bf),'name':_0x58a8bf['name'],'attributes':Array['from'](_0x58a8bf['getAttributes']()),'children':Array['from'](_0x58a8bf['getChildren']())['map'](_0x527d97=>this['_getViewJson'](_0x527d97))};if(_0x113f08['is']('uiElement')&&'$comment'!=_0x113f08['name']){const _0x3bfcf5=_0x113f08['render'](_0x4da117['domDocument'],_0x4da117);_0x11c282['children']['push'](_0x3bfcf5['outerHTML']);}else{if(_0x113f08['is']('rawElement')){const _0x4038b9=_0x4da117['domDocument']['createElement'](_0x58a8bf['name']);_0x113f08['render'](_0x4038b9,_0x4da117),_0x11c282['children']['push'](_0x4038b9['innerHTML']);}}const _0x3f5625=Array['from'](_0x58a8bf['getCustomProperties']());_0x3f5625['length']>0x0&&(_0x11c282['customProperties']=_0x3f5625);const _0x1cb042=_0x58a8bf['getFillerOffset']();return null!==_0x1cb042&&(_0x11c282['fillerOffset']=_0x1cb042),_0x11c282;}}['_markChanges'](_0xe74c53,_0x206ce2,_0x56c534,_0x18657e,_0x9fddd){let _0x4209b2=null,_0x439247=null,_0x1a531e=0x0;const _0x51c4e2=this['editor']['model'];for(let _0x4a53b5=0x0;_0x4a53b5<_0x206ce2['length'];_0x4a53b5++){const _0x1c624c=this['_getVidAttributeName'](_0x206ce2[_0x4a53b5]),_0x6c211f=_0x206ce2[_0x4a53b5]['item']['getAttribute'](_0x1c624c),_0x49a523=_0x56c534['get'](_0x6c211f),_0x47638d=_0x4a53b5==_0x206ce2['length']-0x1;(!_0x4209b2&&_0x49a523&&(_0x4209b2=_0x49a523,_0x439247=_0x206ce2[_0x4a53b5]),_0x4209b2&&(!_0x49a523||_0x49a523['userId']!=_0x4209b2['userId']))&&(_0xc6622f(_0x49a523,F(_0x439247,_0xe74c53,_0x51c4e2),F(_0x206ce2[_0x4a53b5],_0xe74c53,_0x51c4e2)),_0x4209b2=_0x49a523||null,_0x439247=_0x49a523?_0x206ce2[_0x4a53b5]:null),_0x4209b2&&_0x47638d&&_0xc6622f(_0x49a523,F(_0x439247,_0xe74c53,_0x51c4e2),B(_0x206ce2[_0x4a53b5],_0xe74c53,_0x51c4e2));}function _0xc6622f(_0x47abd3,_0xe03c57,_0x10c5a6){const _0x56629a=_0x4209b2['userId'],_0x1763e9='revision:'+_0x18657e+':'+_0x56629a+':'+_0x1a531e++,_0x4417ba=_0x51c4e2['createRange'](_0xe03c57,_0x10c5a6);_0xe74c53['markers']['set'](_0x1763e9,_0x4417ba),null!==_0x56629a&&_0x9fddd['add'](_0x56629a);}}['_getVidAttributeName'](_0x492ead){switch(_0x492ead['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xb46920,_0x221740){_0xb46920['baseVersion']=null;for(const _0x973d51 in _0xb46920){const _0x420923=_0xb46920[_0x973d51];if(_0x420923 instanceof ft){const _0xb7922=_0x221740['get'](_0x420923['root']['rootName']);_0xb46920[_0x973d51]=this['_fixPosition'](_0x420923,_0xb7922);}if(_0x420923 instanceof lt){const _0x58edb4=_0x221740['get'](_0x420923['root']['rootName']);_0xb46920[_0x973d51]=this['_fixRange'](_0x420923,_0x58edb4);}'root'===_0x973d51&&(_0xb46920['root']=_0x221740['get'](_0xb46920['root']['rootName']));}}['_fixRange'](_0x15fe50,_0x33bdb8){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15fe50['start'],_0x33bdb8),this['_fixPosition'](_0x15fe50['end'],_0x33bdb8));}['_fixPosition'](_0x33c854,_0x2a7fd5){return this['editor']['model']['createPositionFromPath'](_0x2a7fd5,_0x33c854['path'],_0x33c854['stickiness']);}['_handleInsertOperation'](_0x4006d5){const _0x15de46=this['_idsRoots']['get'](_0x4006d5['position']['root']['rootName']),_0x3ae97f=this['_fixPosition'](_0x4006d5['position'],_0x15de46),_0x304709=null===_0x4006d5['_authorId']?null:_0x4006d5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x339b4f=_0x3ae97f['parent'],_0x47cad2=this['_revisionId'],_0x329938=[];for(const _0xa1d1d6 of _0x4006d5['nodes'])if(_0xa1d1d6['is']('element'))_0x329938['push'](this['_makeIdsRoot'](_0xa1d1d6));else{for(let _0x2d8aa1=0x0;_0x2d8aa1<_0xa1d1d6['offsetSize'];_0x2d8aa1++)_0x329938['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x865e28=this['_revisionId'];for(let _0x8720a6=_0x47cad2;_0x8720a6<_0x865e28;_0x8720a6++)this['_touched']['set'](_0x8720a6,{'userId':_0x304709});_0x339b4f['_insertChild'](_0x3ae97f['offset'],_0x329938);}['_handleMoveOperation'](_0x23a726){(_0x23a726=this['_cloneOperation'](_0x23a726,this['_idsRoots']))['_execute']();const _0x24cec2=null===_0x23a726['_authorId']?null:_0x23a726['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fde69=_0x23a726['getMovedRangeStart'](),_0x59644e=_0x1fde69['parent'],_0x56d510=_0x1fde69['offset'];!function _0x3c170c(_0x4347ea,_0x1e0272,_0x422469,_0x136938){for(let _0x4f7321=_0x422469;_0x4f7321<_0x136938;_0x4f7321++){const _0x16fa64=_0x1e0272['getChild'](_0x4f7321);_0x16fa64['is']('element','$text')?_0x4347ea['set'](_0x16fa64['getAttribute']('vid'),{'userId':_0x24cec2}):(_0x4347ea['set'](_0x16fa64['getAttribute']('vid_start'),{'userId':_0x24cec2}),_0x3c170c(_0x4347ea,_0x16fa64,0x0,_0x16fa64['childCount']),_0x4347ea['set'](_0x16fa64['getAttribute']('vid_end'),{'userId':_0x24cec2}));}}(this['_touched'],_0x59644e,_0x56d510,_0x56d510+_0x23a726['howMany']);}['_handleMergeOperation'](_0x497e66){const _0x2fe875=null===(_0x497e66=this['_cloneOperation'](_0x497e66,this['_idsRoots']))['_authorId']?null:_0x497e66['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x453b28=_0x497e66['targetPosition']['parent'],_0x36f842=_0x497e66['sourcePosition']['parent'],_0x177c0f=_0x453b28['getAttribute']('vid_end'),_0xa7bf7e=_0x36f842['getAttribute']('vid_start');_0x453b28['_setAttribute']('vid_end',_0x36f842['getAttribute']('vid_end')),_0x36f842['_setAttribute']('vid_end',_0x177c0f),this['_touched']['set'](_0xa7bf7e,{'userId':_0x2fe875}),this['_touched']['set'](_0x177c0f,{'userId':_0x2fe875}),_0x497e66['_execute']();}['_handleSplitOperation'](_0x2f450d){const _0x54bab6=null===(_0x2f450d=this['_cloneOperation'](_0x2f450d,this['_idsRoots']))['_authorId']?null:_0x2f450d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1da1fa=_0x2f450d['graveyardPosition'],_0x495feb=_0x2f450d['splitPosition']['parent'];_0x2f450d['_execute']();const _0x23115c=_0x495feb['getAttribute']('vid_end'),_0x14c32b=_0x2f450d['insertionPosition']['nodeAfter'];if(_0x1da1fa){const _0x516a41=_0x14c32b['getAttribute']('vid_end'),_0x1dd314=_0x495feb['getAttribute']('vid_end');_0x495feb['_setAttribute']('vid_end',_0x516a41),_0x14c32b['_setAttribute']('vid_end',_0x1dd314),this['_touched']['set'](_0x495feb['getAttribute']('vid_end'),{'userId':_0x54bab6}),this['_touched']['set'](_0x14c32b['getAttribute']('vid_start'),{'userId':_0x54bab6});}else{const _0xaad8f7=this['_revisionId']++,_0x2ad9f5=this['_revisionId']++;_0x495feb['_setAttribute']('vid_end',_0xaad8f7),_0x14c32b['_setAttribute']('vid_start',_0x2ad9f5),_0x14c32b['_setAttribute']('vid_end',_0x23115c),this['_touched']['set'](_0xaad8f7,{'userId':_0x54bab6}),this['_touched']['set'](_0x2ad9f5,{'userId':_0x54bab6});}}['_handleMarkerOperation'](_0x141837){if(!_0x141837['affectsData'])return;const _0x4f1521=(_0x141837=this['_cloneOperation'](_0x141837,this['_diffRoots']))['oldRange']?_0x141837['oldRange']['root']:null,_0x572313=_0x141837['newRange']?_0x141837['newRange']['root']:null;_0x4f1521&&this['_markers']['delete'](_0x141837['name']),_0x572313&&this['_markers']['set'](_0x141837['name'],_0x141837['newRange']['clone']());const _0x50f153=null===_0x141837['_authorId']?null:_0x141837['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x558764=_0x141837['name'];if(!this['_touchedMarkers']['has'](_0x558764))return void this['_touchedMarkers']['set'](_0x558764,{'range':_0x141837['oldRange'],'userId':_0x50f153});const _0x1880fb=this['_touchedMarkers']['get'](_0x558764),_0x4595f9=_0x1880fb['range'],_0xe07dbd=_0x141837['newRange'];null==_0x4595f9&&null==_0xe07dbd||_0x4595f9&&_0xe07dbd&&_0x4595f9['isEqual'](_0xe07dbd)?this['_touchedMarkers']['delete'](_0x141837['name']):_0x1880fb['userId']=_0x50f153;}['_handleRootOperation'](_0x5f5be3,_0x415a13){this['_diffRoots']['has'](_0x5f5be3['rootName'])?this['_diffRoots']['get'](_0x5f5be3['rootName'])['_isAttached']=_0x5f5be3['isAdd']:(this['_diffRoots']['set'](_0x5f5be3['rootName'],P(_0x5f5be3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5f5be3['rootName'],{}),_0x415a13&&this['_idsRoots']['set'](_0x5f5be3['rootName'],P(_0x5f5be3['rootName'],!0x0)));const _0xe2a49d=null===_0x5f5be3['_authorId']?null:_0x5f5be3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3743f0=this['_touchedRoots']['get'](_0x5f5be3['rootName']);_0x3743f0&&_0x3743f0['userId']===_0xe2a49d?this['_touchedRoots']['delete'](_0x5f5be3['rootName']):this['_touchedRoots']['set'](_0x5f5be3['rootName'],{'userId':_0xe2a49d,'isAttached':_0x5f5be3['isAdd']});}['_handleRootAttributeOperation'](_0xb5cca6){const _0x512a58=this['_diffRootsAttributes']['get'](_0xb5cca6['root']['rootName']);null===_0xb5cca6['newValue']?delete _0x512a58[_0xb5cca6['key']]:_0x512a58[_0xb5cca6['key']]=_0xb5cca6['newValue'];}}function N(_0x4ebda1){const _0x58c5b2=P(_0x4ebda1['rootName'],_0x4ebda1['isAttached']());for(const _0x29cf96 of _0x4ebda1['getChildren']()){const _0x3d5d91=_0x29cf96['_clone'](!0x0);_0x58c5b2['_appendChild'](_0x3d5d91);}return _0x58c5b2;}function P(_0x23c749,_0x1c058c=!0x0){const _0x124631=new vt();return _0x124631['rootName']=_0x23c749,_0x124631['_isAttached']=_0x1c058c,_0x124631['isAttached']=()=>_0x124631['_isAttached'],_0x124631;}function F(_0x348a38,_0x1d26ed,_0x26302d){const _0x56482c='elementEnd'==_0x348a38['type']?_0x26302d['createPositionAt'](_0x348a38['item'],'end'):_0x26302d['createPositionBefore'](_0x348a38['item']);return _0x26302d['createPositionFromPath'](_0x1d26ed,_0x56482c['path'],_0x56482c['stickiness']);}function B(_0x163c5a,_0x361e4b,_0x84dac1){const _0x260a7e='elementStart'==_0x163c5a['type']?_0x84dac1['createPositionAt'](_0x163c5a['item'],0x0):_0x84dac1['createPositionAfter'](_0x163c5a['item']);return _0x84dac1['createPositionFromPath'](_0x361e4b,_0x260a7e['path'],_0x260a7e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4c5d51,_0x44371b){super(_0x4c5d51),this['focusTracker']=new _0x5c65bd(),this['keystrokes']=new _0x3cdfb8(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x44371b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x24e1d3(this);}['render'](){super['render'](),_0x2d55b0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x50d9a9=_0x79c236=>_0x79c236['stopPropagation']();this['keystrokes']['set']('arrowright',_0x50d9a9),this['keystrokes']['set']('arrowleft',_0x50d9a9),this['keystrokes']['set']('arrowup',_0x50d9a9),this['keystrokes']['set']('arrowdown',_0x50d9a9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2d746){this['revisionNameInputView']['fieldView']['element']['value']=_0x2d746['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x574bad){const _0x51f5c2=new _0x171b5b(this['locale'],_0x291eb8),_0x29c1fc=_0x51f5c2['fieldView'];_0x29c1fc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x43de62=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x574bad&&(_0x43de62+='\x20('+g(this['locale'],'optional')+')'),(_0x51f5c2['label']=_0x43de62,_0x29c1fc['on']('input',()=>{this['revisionNameInputValue']=_0x29c1fc['element']['value']['trim']();}),_0x51f5c2);}}class f extends _0x634022{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x545af3=this['editor'],_0x47bfb7=_0x545af3['plugins']['get']('RevisionTracker');_0x545af3['ui']['componentFactory']['add']('revisionHistory',_0x107dba=>{const _0x13e1f5=_0x2dcc14(_0x107dba),_0x1950af=_0x13e1f5['panelView']['children'],_0xc78ee5=new _0x361408(_0x107dba),_0x3ff2d0=new _0xf646ba(_0x107dba),_0x9c9874=new te(_0x107dba),_0x1c9984=new _0xf646ba(_0x107dba),_0x4915aa=new te(_0x107dba);return _0x13e1f5['bind']('isEnabled')['to'](_0x47bfb7,'isReady',_0x47bfb7,'isEnabled',_0x545af3,'isReadOnly',(_0x311390,_0x535257,_0x51de73)=>_0x311390&&_0x535257&&!_0x51de73),_0x13e1f5['buttonView']['set']({'icon':_0x588eea,'label':g(_0x107dba,'Revision\x20history'),'tooltip':!0x0}),_0x9c9874['set']({'label':g(_0x107dba,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x9c9874['bind']('isEnabled')['to'](_0x47bfb7,'isReady',_0x47bfb7,'isEnabled',_0x545af3,'isReadOnly',(_0x27b482,_0x2f9c43,_0x776285)=>_0x27b482&&_0x2f9c43&&!_0x776285),_0x9c9874['on']('execute',()=>this['_showDialog']()),_0x4915aa['set']({'label':g(_0x107dba,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4915aa['bind']('isEnabled')['to'](_0x47bfb7,'isReady',_0x545af3,'isReadOnly',(_0x537b8b,_0x4ec5c4)=>_0x537b8b&&!_0x4ec5c4),_0x4915aa['on']('execute',()=>{_0x545af3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x13e1f5['isOpen']=!0x1,_0x545af3['editing']['view']['focus']();}),_0x3ff2d0['children']['add'](_0x9c9874),_0x1c9984['children']['add'](_0x4915aa),_0xc78ee5['role']='menu',_0xc78ee5['items']['addMany']([_0x3ff2d0,_0x1c9984]),_0x1950af['add'](_0xc78ee5),_0x13e1f5;}),_0x545af3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x25720e=this['editor'],_0x18be84=_0x25720e['locale'],_0x585063=new _0xd4be25(_0x18be84),_0x1748e4=new _0x3be3a7(_0x18be84);_0x585063['buttonView']['set']({'icon':_0x588eea,'label':g(_0x18be84,'Revision\x20history')});const _0x3eceb4=new _0x2cc0fe(_0x18be84,_0x585063),_0x1a7164=new _0x4072a8(_0x18be84);_0x1a7164['set']({'label':g(_0x18be84,'Save\x20current\x20revision')}),_0x1a7164['delegate']('execute')['to'](_0x585063),_0x1a7164['on']('execute',()=>{this['_showDialog']();}),_0x3eceb4['children']['add'](_0x1a7164),_0x1748e4['items']['add'](_0x3eceb4);const _0x37d778=new _0x2cc0fe(_0x18be84,_0x585063),_0xe24892=new _0x4072a8(_0x18be84);return _0xe24892['set']({'label':g(_0x18be84,'Open\x20revision\x20history')}),_0xe24892['delegate']('execute')['to'](_0x585063),_0xe24892['on']('execute',()=>{_0x25720e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x37d778['children']['add'](_0xe24892),_0x1748e4['items']['add'](_0x37d778),_0x585063['panelView']['children']['add'](_0x1748e4),_0x585063;}['_showDialog'](){const _0x4f005c=this['editor'],_0x3cf59b=_0x4f005c['locale'],_0x1a57b0=_0x4f005c['plugins']['get']('Dialog'),_0x4742c3=_0x4f005c['plugins']['get']('RevisionTracker');function _0x2a0c5e(_0xb82ecc){_0x4f005c['config']['get']('revisionHistory.requireRevisionName')&&''===_0xb82ecc['revisionName']?_0xb82ecc['revisionNameInputView']['errorText']=g(_0x3cf59b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4f005c['plugins']['get'](u)['saveRevision']({'name':_0xb82ecc['revisionName']}),_0x1a57b0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2a0c5e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1a57b0['show']({'id':'revisionSave','title':g(_0x3cf59b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4f005c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1a57b0['hide']()},{'label':g(_0x4f005c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x376dfd){_0x376dfd['bind']('isEnabled')['to'](_0x4742c3,'isReady',_0x4742c3,'isEnabled',_0x4f005c,'isReadOnly',(_0x15a0ec,_0x240782,_0x3e5f87)=>_0x15a0ec&&_0x240782&&!_0x3e5f87);},'onExecute':()=>_0x2a0c5e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x391063=this['editor'],_0x4c91a7=_0x391063['locale'];this['_saveRevisionFormView']=new hs(_0x4c91a7,_0x391063['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2c0bba,_0x3db95f){super(_0x2c0bba),this['_model']=_0x3db95f,this['changeId']=_0x3db95f['id'];const _0x3a3d3e=this['bindTemplate'],_0x12dbcf=g(_0x2c0bba,_0x3db95f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3db95f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3db95f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3a3d3e['to']('type',_0x216dd2=>'ck-revision-change__'+_0x216dd2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x12dbcf}]},{'text':'\x20'+_0x3db95f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5c45c0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1e62a){super(),this['id']=_0x1e62a['id']||_0x3819d0(),this['author']=_0x1e62a['author'],this['type']=_0x1e62a['type'],this['data']=_0x1e62a['data']||{},this['rootName']=_0x1e62a['rootName'],this['set']('createdAt',_0x1e62a['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(_0x44e708,_0xc5a727){this['newRevisionId']=_0x44e708,this['oldRevisionId']=_0xc5a727,this['changes']=new _0x375022();}['_setChanges'](_0x1790ca){for(const _0x16cb62 of _0x1790ca)this['changes']['add'](_0x16cb62);}}class m extends _0x634022{['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[_0x1b99f2,_0x525cd4,I,V];}constructor(_0x4a62af){super(_0x4a62af),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',(_0x25ea1a,_0x4d78cd,_0x27b4f3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x677e70=>{for(const _0x1a32c0 of this['editor']['editing']['view']['document']['roots'])_0x27b4f3?_0x677e70['removeClass']('ck-editor__editable__overlay',_0x1a32c0):_0x677e70['addClass']('ck-editor__editable__overlay',_0x1a32c0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2906ee=>null!==_0x2906ee),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x53c82f,_0x3835e9,_0xa61489)=>_0x53c82f&&_0xa61489?_0x3835e9['changes']['getIndex'](_0xa61489):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4801e0,_0x464d41)=>_0x4801e0?_0x464d41['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x525cd4);}['init'](){const _0x478819=this['editor'],_0x1118c8=new wt(_0x478819,{'direction':'backward'}),_0x521749=new wt(_0x478819,{'direction':'forward'});(_0x478819['commands']['add']('showPreviousChange',_0x1118c8),_0x478819['commands']['add']('showNextChange',_0x521749),_0x478819['commands']['add']('restoreRevision',new mt(_0x478819)),this['on']('change:numberOfChanges',()=>{_0x1118c8['refresh'](),_0x521749['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x478819['enableReadOnlyMode']('revision-viewer'),_0x478819['plugins']['has']('WidgetToolbarRepository'))&&_0x478819['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xb92b9c){return await this['_utils']['loadRevisionData'](_0xb92b9c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xb92b9c);}async['getRevisionRootsAttributes'](_0x2a01d5){return await this['_utils']['loadRevisionData'](_0x2a01d5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2a01d5);}async['compare'](_0x2a5945,_0x11b2e5,_0x1799bc=!0x1){if(!this['isEnabled'])return;const _0x4bcc4b=this['diff'],_0x369ccd=this['repository'],_0x484037='string'==typeof _0x2a5945?_0x369ccd['getRevision'](_0x2a5945):_0x2a5945,_0x530815='string'==typeof _0x11b2e5?_0x369ccd['getRevision'](_0x11b2e5):_0x11b2e5,_0x23b31e=_0x484037['id'],_0x5e4391=_0x530815?_0x530815['id']:null;if(!_0x1799bc&&this['diff']&&this['diff']['newRevisionId']===_0x23b31e&&this['diff']['oldRevisionId']===_0x5e4391)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x23b31e,_0x5e4391);const _0x51fc30=this['_getRevisionsRange'](_0x484037,_0x530815,!0x0)['map'](_0x3a178f=>this['_utils']['loadRevisionData'](_0x3a178f,this['adapter']));return _0x51fc30['push'](new Promise(_0x3d856e=>{setTimeout(_0x3d856e,0x14);})),Promise['all'](_0x51fc30)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5a7f97=this['_getDiff'](_0x23b31e,_0x5e4391);for(const _0x14328a of _0x5a7f97['changes'])this['_changeIdToChange']['set'](_0x14328a['id'],_0x14328a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1e11a2=>{for(const _0x2a6938 of this['editor']['model']['document']['getRootNames']())_0x1e11a2['detachRoot'](_0x2a6938);for(const _0x40022a of Object['keys'](_0x5a7f97['model'])){const _0x5d1041=_0x1e11a2['addRoot'](_0x40022a);for(const _0x488c22 of Object['keys'](_0x5a7f97['attributes'][_0x40022a]))_0x1e11a2['setAttribute'](_0x488c22,_0x5a7f97['attributes'][_0x40022a][_0x488c22],_0x5d1041);_0x1e11a2['insert'](_0x5a7f97['model'][_0x40022a],_0x5d1041,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5a7f97['changes'])),this['isReady']=!0x0;})['catch'](_0xe2c025=>{console['error'](_0xe2c025),this['_cleanUp'](),_0x4bcc4b&&(this['diff']=_0x4bcc4b),this['isReady']=!0x0;});}['addRevisionData'](_0x53683d,_0x23ec5f){const _0x1bfaf6=this['repository']['createRevision'](_0x53683d);return _0x1bfaf6['on']('_update',(_0x16bbe5,_0x47038c,_0x46f9a2)=>_0x23ec5f(_0x47038c,_0x46f9a2,_0x1bfaf6)),this['repository']['addRevision'](_0x1bfaf6),_0x1bfaf6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1977bc=>{for(const _0x2ffc67 of this['editor']['model']['document']['getRootNames']())_0x1977bc['detachRoot'](_0x2ffc67);});}['_sortAndFilterDiffChanges'](_0x4a02ec){const _0x46e95e=[],_0x16d534=new Map();for(const _0x29cd8e of this['editor']['model']['document']['getRootNames']()){const _0x220425=this['editor']['editing']['view']['getDomRoot'](_0x29cd8e);if(!_0x220425)continue;const _0x307b9c=_0x220425['getClientRects']()['item'](0x0);_0x307b9c&&(_0x46e95e['push'](_0x29cd8e),_0x16d534['set'](_0x29cd8e,_0x307b9c));}return _0x46e95e['sort']((_0x2f21e5,_0x17f051)=>{const _0x200354=_0x16d534['get'](_0x2f21e5),_0x2e2556=_0x16d534['get'](_0x17f051);return _0x200354['y']-_0x2e2556['y']||_0x200354['x']-_0x2e2556['x'];}),(_0x4a02ec=_0x4a02ec['filter'](_0x4bc74c=>_0x46e95e['includes'](_0x4bc74c['rootName'])))['sort']((_0x379804,_0x49461b)=>_0x46e95e['indexOf'](_0x379804['rootName'])-_0x46e95e['indexOf'](_0x49461b['rootName'])),_0x4a02ec;}['_makeTape'](_0x2b7aa6){const _0x3457b7=Array['from'](_0x2b7aa6['markers'])['filter'](([_0x8c2595,_0x533f8d])=>_0x8c2595['startsWith']('revision:')&&!_0x533f8d['isCollapsed']),_0x2778fb=Array['from'](this['editor']['model']['createRangeIn'](_0x2b7aa6)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3457b7['length'])for(const _0x484e84 of _0x2778fb){const [_0x56fd96,_0x3df697]=_0x3457b7[0x0],[,_0x1b4701,_0x4dc93f]=_0x56fd96['split'](':');if(_0x3df697['end']['isEqual'](_0x484e84['nextPosition'])&&_0x3457b7['shift'](),(_0x484e84['previousPosition']['isEqual'](_0x3df697['start'])||_0x484e84['previousPosition']['isAfter'](_0x3df697['start']))&&('insertion'==_0x1b4701?_0x484e84['isAdded']={'userId':_0x4dc93f}:'deletion'==_0x1b4701&&(_0x484e84['isRemoved']={'userId':_0x4dc93f})),0x0==_0x3457b7['length'])break;}return _0x2778fb;}['_refreshStartEndIndex'](_0x262799){const _0x556612=new Map();for(let _0xeb2ac9=0x0;_0xeb2ac9<_0x262799['length'];_0xeb2ac9++)'text'===_0x262799[_0xeb2ac9]['type']?(_0x262799[_0xeb2ac9]['item']['startIndex']=_0xeb2ac9,_0x262799[_0xeb2ac9]['item']['endIndex']=_0xeb2ac9):('elementStart'===_0x262799[_0xeb2ac9]['type']?_0x262799[_0xeb2ac9]['item']['startIndex']=_0xeb2ac9:'elementEnd'===_0x262799[_0xeb2ac9]['type']&&(_0x262799[_0xeb2ac9]['item']['endIndex']=_0xeb2ac9),_0x556612['set'](_0x262799[_0xeb2ac9]['id'],_0xeb2ac9));for(const _0x8b1d01 of _0x556612['values']())'elementStart'===_0x262799[_0x8b1d01]['type']?_0x262799[_0x8b1d01]['item']['endIndex']=_0x556612['get'](_0x262799[_0x8b1d01]['pairId']):'elementEnd'===_0x262799[_0x8b1d01]['type']&&(_0x262799[_0x8b1d01]['item']['startIndex']=_0x556612['get'](_0x262799[_0x8b1d01]['pairId']));}['_processTape'](_0x4c72d6){for(let _0x30d8f1=0x0;_0x30d8f1<_0x4c72d6['length'];_0x30d8f1++){if('elementStart'===_0x4c72d6[_0x30d8f1]['type'])_0x4c72d6[_0x30d8f1]['item']['startIndex']=_0x30d8f1;else{if('elementEnd'===_0x4c72d6[_0x30d8f1]['type']){_0x4c72d6[_0x30d8f1]['item']['endIndex']=_0x30d8f1;const _0x57a8f1=_0x4c72d6[_0x30d8f1]['item']['startIndex'];_0x4c72d6[_0x57a8f1]['pairId']=_0x4c72d6[_0x30d8f1]['id'],_0x4c72d6[_0x30d8f1]['pairId']=_0x4c72d6[_0x57a8f1]['id'];}else _0x4c72d6[_0x30d8f1]['item']['startIndex']=_0x30d8f1,_0x4c72d6[_0x30d8f1]['item']['endIndex']=_0x30d8f1,_0x4c72d6[_0x30d8f1]['pairId']=null;}_0x4c72d6[_0x30d8f1]['markersStart']||(_0x4c72d6[_0x30d8f1]['markersStart']=[],_0x4c72d6[_0x30d8f1]['markersEnd']=[]);}}['_markInsertions'](_0x48aac4,_0x27ccbf){const _0x54d2cb=_0x48aac4['filter'](_0x5e8ef0=>!_0x5e8ef0['isAdded']);for(let _0x5210b4=0x0;_0x5210b4<_0x27ccbf['length'];_0x5210b4++)_0x27ccbf[_0x5210b4]['isAdded']&&(_0x54d2cb[_0x5210b4]['isAdded']=_0x27ccbf[_0x5210b4]['isAdded']);}['_getDiff'](_0x1bac12,_0x2a03da=null){const _0x573eb4=this['repository']['getRevision'](_0x1bac12),_0x59a8c6=_0x2a03da?this['repository']['getRevision'](_0x2a03da):null,_0xf58928=this['_getRevisionsRange'](_0x573eb4,_0x59a8c6),_0x163da9=_0xf58928[_0xf58928['length']-0x1],_0x52067a=new Map(),_0x468ad2={'model':{},'attributes':{},'changes':[]},_0x10220a=new Set(),_0xd113cc=new Map();for(let _0x252b29=_0xf58928['length']-0x1;_0x252b29>=0x0;_0x252b29--){const _0x2aa513=_0xf58928[_0x252b29];for(const _0x46b365 of Object['keys'](_0x2aa513['diffData']))if(_0x2aa513['diffData'][_0x46b365]['attachChange']){const _0x125734=_0x2aa513['diffData'][_0x46b365]['attachChange'];_0x125734['isAttached']?(_0x10220a['add'](_0x46b365),_0xd113cc['has'](_0x46b365)&&_0xd113cc['get'](_0x46b365)['userId']==_0x125734['userId']?_0xd113cc['delete'](_0x46b365):_0xd113cc['set'](_0x46b365,_0x125734)):_0xd113cc['has'](_0x46b365)?(_0x10220a['delete'](_0x46b365),_0xd113cc['delete'](_0x46b365)):(_0x10220a['add'](_0x46b365),_0xd113cc['set'](_0x46b365,_0x125734));}else _0x10220a['add'](_0x46b365);}for(const _0x34ebb3 of _0x10220a){const _0x545366=_0xd113cc['has'](_0x34ebb3)&&!_0xd113cc['get'](_0x34ebb3)['isAttached'];let _0x599785=_0x545366?_0xf58928['length']-0x1:0x0;const _0xb37155=_0x545366?-0x1:0x1;for(;_0xf58928[_0x599785];){const _0x2b3f17=_0xf58928[_0x599785];if(_0x2b3f17['diffData'][_0x34ebb3]){const _0x2a1a1a=_0x545366?_0x2b3f17['diffData'][_0x34ebb3]['attributesBefore']:_0x2b3f17['diffData'][_0x34ebb3]['attributesAfter'];_0x468ad2['attributes'][_0x34ebb3]=_0x2a1a1a?_0x139560(_0x2a1a1a):{};break;}_0x599785+=_0xb37155;}}for(const _0x28613c of _0xf58928){_0x28613c['model']={};for(const _0x25a3d9 of _0x28613c['authors'])_0x52067a['set'](_0x25a3d9['id'],_0x25a3d9);for(const _0x2ec821 of _0x10220a){const _0x374a35=_0x28613c['diffData'][_0x2ec821]?_0x28613c['diffData'][_0x2ec821]['insertions']:'[]',_0x3162f9=_0x28613c['diffData'][_0x2ec821]?_0x28613c['diffData'][_0x2ec821]['deletions']:'[]';_0x28613c['model'][_0x2ec821]={'insertions':this['_utils']['_makeModelFromViewString'](_0x374a35),'deletions':this['_utils']['_makeModelFromViewString'](_0x3162f9)};}}for(const _0x2fdcee of _0x10220a){let _0x14bb94=null,_0x342920=0x0;const _0x45eaf0=new Map(Array['from'](_0x573eb4['model'][_0x2fdcee]['insertions']['markers'])['filter'](([_0x24808f])=>!_0x24808f['startsWith']('revision:')));let _0x30cd63=0x0;for(const _0x27fbbc of _0xf58928){const _0x2569b4=this['_makeTape'](_0x27fbbc['model'][_0x2fdcee]['insertions']);_0x27fbbc==_0x573eb4?(_0x14bb94=_0x2569b4,_0x342920=_0x14bb94['length'],_0x14bb94['forEach'](_0xe9154c=>{_0xe9154c['id']=_0x30cd63++;}),this['_processTape'](_0x14bb94)):this['_markInsertions'](_0x14bb94,_0x2569b4);const _0x3c18e0=_0x14bb94['filter'](_0x1e8cdf=>!_0x1e8cdf['isAdded'])['map'](_0x5b72b0=>_0x5b72b0['id']);let _0x15eb96=0x0;const _0xb42e1e=this['_makeTape'](_0x27fbbc['model'][_0x2fdcee]['deletions']);_0xb42e1e['forEach'](_0x2f8f29=>{_0x2f8f29['isRemoved']?_0x2f8f29['id']=_0x342920++:_0x2f8f29['id']=_0x3c18e0[_0x15eb96++];}),this['_processTape'](_0xb42e1e),this['_setDistance'](_0x14bb94,'isAdded'),this['_setDistance'](_0xb42e1e,'isRemoved'),_0x27fbbc==_0x573eb4&&this['_markMarkers'](_0x14bb94,_0x45eaf0),_0x14bb94=this['_joinTapes'](_0x14bb94,_0xb42e1e),this['_refreshStartEndIndex'](_0x14bb94),this['_setDistance'](_0x14bb94,'isRemoved');}_0x14bb94=_0x14bb94['filter'](_0x47498d=>!(_0x47498d['isAdded']&&_0x47498d['isRemoved']));const _0x3c62c8=new Map(_0x163da9['model'][_0x2fdcee]['deletions']['markers']),_0x522cd9=new Set(_0x45eaf0['keys']());for(const _0x41f6e5 of _0x3c62c8['keys']())_0x522cd9['delete'](_0x41f6e5);this['_markSuggestions'](_0x14bb94,_0x522cd9),this['_fixObsoleteTags'](_0x14bb94),_0x14bb94=this['_removeMissingPairs'](_0x14bb94),_0x14bb94=this['_markMismatchedRemovedTags'](_0x14bb94),_0x14bb94=this['_removeUnsupportedChanges'](_0x14bb94);const {root:_0x50fe19,changes:_0x27f4e4}=this['_makeModelFromTape'](_0x14bb94,_0x52067a,_0x2fdcee);_0x468ad2['model'][_0x2fdcee]=_0x50fe19;const _0x3bacad=_0xd113cc['get'](_0x2fdcee);if(_0x3bacad){const _0x3d80a6=_0x52067a['get'](_0x3bacad['userId']),_0x4971d5=new r({'author':_0x3d80a6,'type':_0x3bacad['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2fdcee});_0x27f4e4['unshift'](_0x4971d5),_0x468ad2['attributes'][_0x2fdcee]['revisionHistoryAttachChange']=_0x4971d5['id'];}_0x468ad2['changes']=_0x468ad2['changes']['concat'](_0x27f4e4);}return _0x468ad2;}['_markMarkers'](_0x4e150f,_0x9ee562){for(let _0x12d25a=0x0;_0x12d25a<_0x4e150f['length'];_0x12d25a++)for(const [_0x1678a1,_0x10c1b5]of _0x9ee562)!_0x10c1b5['isCollapsed']&&_0x10c1b5['start']['isEqual'](_0x4e150f[_0x12d25a]['previousPosition'])&&_0x4e150f[_0x12d25a]['markersStart']['push'](_0x1678a1),_0x10c1b5['end']['isEqual'](_0x4e150f[_0x12d25a]['nextPosition'])&&_0x4e150f[_0x12d25a]['markersEnd']['push'](_0x1678a1);}['_joinTapes'](_0x3728f6,_0x52c632){let _0x3ab01e=[],_0x2d62c2=0x0,_0x255e0a=0x0;for(;_0x2d62c2<_0x3728f6['length']||_0x255e0a<_0x52c632['length'];){const _0x5d8b05=_0x3728f6[_0x2d62c2]||{},_0x2e3e0b=_0x52c632[_0x255e0a]||{};if(_0x5d8b05['id']==_0x2e3e0b['id'])_0x2d62c2++,_0x255e0a++,_0x3ab01e['push'](_0x5d8b05);else{if(_0x2e3e0b['isRemoved']&&_0x5d8b05['isAdded']){const {commonTape:_0x442142,iEnd:_0x97b731,jEnd:_0x10a7a5}=this['_threeWayMerge'](_0x3728f6,_0x2d62c2,_0x52c632,_0x255e0a);_0x3ab01e=_0x3ab01e['concat'](_0x442142),_0x2d62c2=_0x97b731,_0x255e0a=_0x10a7a5;}else _0x2e3e0b['isRemoved']?(_0x255e0a++,_0x3ab01e['push'](_0x2e3e0b)):(_0x2d62c2++,_0x3ab01e['push'](_0x5d8b05));}}return _0x3ab01e;}['_markSuggestions'](_0x265fd2,_0x6a3769){const _0x5edac1=[];for(let _0x3f9f92=0x0;_0x3f9f92<_0x265fd2['length'];_0x3f9f92++){for(let _0x430718=0x0;_0x430718<_0x265fd2[_0x3f9f92]['markersStart']['length'];_0x430718++){const _0x29c8c0=_0x265fd2[_0x3f9f92]['markersStart'][_0x430718];if(!_0x6a3769['has'](_0x29c8c0))continue;const {group:_0x1ee9bc,type:_0x8eab1,authorId:_0x472506}=_0x484f1e(_0x29c8c0);'revision-suggestion'!=_0x1ee9bc||'insertion'!=_0x8eab1&&'deletion'!=_0x8eab1||(_0x5edac1['unshift']({'type':_0x8eab1,'name':_0x29c8c0,'userId':_0x472506}),_0x265fd2[_0x3f9f92]['markersStart']['splice'](_0x430718,0x1),_0x430718--);}_0x2a6b2e(_0x265fd2[_0x3f9f92]);for(let _0x42a51d=0x0;_0x42a51d<_0x265fd2[_0x3f9f92]['markersEnd']['length'];_0x42a51d++){const _0x38a80e=_0x265fd2[_0x3f9f92]['markersEnd'][_0x42a51d];if(!_0x6a3769['has'](_0x38a80e))continue;const {group:_0x227849,type:_0x2d3ba7}=_0x484f1e(_0x38a80e);if('revision-suggestion'!=_0x227849||'insertion'!=_0x2d3ba7&&'deletion'!=_0x2d3ba7)continue;_0x265fd2[_0x3f9f92]['markersEnd']['splice'](_0x42a51d,0x1),_0x42a51d--;const _0x34b1a0=_0x5edac1['findIndex'](_0x55e21b=>_0x55e21b['name']==_0x38a80e);_0x34b1a0>-0x1&&_0x5edac1['splice'](_0x34b1a0,0x1);}}function _0x484f1e(_0x4d52f7){const _0x5ee27d=_0x4d52f7['split'](':');return{'group':_0x5ee27d[0x0],'type':_0x5ee27d[0x1],'subType':_0x5ee27d['length']>=0x5?_0x5ee27d[0x2]:null,'id':_0x5ee27d['length']<0x5?_0x5ee27d[0x2]:_0x5ee27d[0x3],'authorId':_0x5ee27d['length']<0x5?_0x5ee27d[0x3]:_0x5ee27d[0x4],'markerCount':0x6==_0x5ee27d['length']?_0x5ee27d[0x5]:null};}function _0x2a6b2e(_0x14f56e){for(let _0x1c4a55=0x0;_0x1c4a55<_0x5edac1['length'];_0x1c4a55++){if(_0x14f56e['isAdded']&&'insertion'==_0x5edac1[_0x1c4a55]['type'])return _0x14f56e['isAddSuggestion']=_0x5edac1[_0x1c4a55],void delete _0x14f56e['isAdded'];if(!_0x14f56e['isAdded']&&!_0x14f56e['isRemoved']&&'deletion'==_0x5edac1[_0x1c4a55]['type'])return void(_0x14f56e['isRemoveSuggestion']=_0x5edac1[_0x1c4a55]);}}}['_setDistance'](_0xf8a387,_0x3317b1){let _0x41618f=0x0,_0x4452b2=!0x1;const _0x5c5ce0=new Map();for(const _0x3f690d of _0xf8a387)_0x3f690d[_0x3317b1]?_0x4452b2&&(_0x41618f++,_0x4452b2=!0x1):(_0x41618f++,_0x4452b2=!0x0),_0x5c5ce0['set'](_0x3f690d['id'],_0x41618f);for(let _0x27ffab=0x0;_0x27ffab<_0xf8a387['length'];_0x27ffab++){if('isRemoved'==_0x3317b1&&_0xf8a387[_0x27ffab]['isAdded']||'isAdded'==_0x3317b1&&_0xf8a387[_0x27ffab]['isRemoved'])continue;if('text'==_0xf8a387[_0x27ffab]['type']){_0xf8a387[_0x27ffab]['distance']=0x0;continue;}const _0x4f38af=_0x5c5ce0['get'](_0xf8a387[_0x27ffab]['pairId']),_0x285f19=_0x5c5ce0['get'](_0xf8a387[_0x27ffab]['id']);_0xf8a387[_0x27ffab]['distance']=_0x4f38af-_0x285f19;}}['_getRevisionsRange'](_0xb563f0,_0x3bbf61,_0xa600f3=!0x1){const _0x570903=[];let _0x574846=this['repository']['getIndex'](_0xb563f0),_0x164171=this['repository']['getIndex'](_0x3bbf61);for(-0x1==_0x164171&&(_0x164171=this['repository']['_revisions']['length'],_0xa600f3=!0x1);_0x574846<_0x164171;)_0x570903['push'](this['repository']['getRevision'](_0x574846)),_0x574846++;return _0xa600f3&&_0x570903['push'](this['repository']['getRevision'](_0x574846)),_0x570903;}['_threeWayMerge'](_0x3e9915,_0x36112f,_0x15c64b,_0x298740){const _0x19016a=this['editor']['model']['schema'];let _0x4417b1=_0x36112f;for(;_0x3e9915[_0x4417b1]&&_0x3e9915[_0x4417b1]['isAdded'];)_0x4417b1++;let _0x30cee6=_0x298740;for(;_0x15c64b[_0x30cee6]&&_0x15c64b[_0x30cee6]['isRemoved'];)_0x30cee6++;_0x244928(_0x3e9915,_0x36112f,_0x4417b1),_0x244928(_0x15c64b,_0x298740,_0x30cee6);const _0x34ae27=_0x15c64b['slice'](_0x298740,_0x30cee6)['concat'](_0x3e9915['slice'](_0x36112f,_0x4417b1));return _0x34ae27['sort']((_0x40acaa,_0x1cc0e2)=>_0x40acaa['side']!=_0x1cc0e2['side']?_0x40acaa['side']-_0x1cc0e2['side']:_0x40acaa['level']!=_0x1cc0e2['level']?_0x40acaa['level']-_0x1cc0e2['level']:_0x40acaa['distance']!=_0x1cc0e2['distance']?_0x1cc0e2['distance']-_0x40acaa['distance']:!!_0x40acaa['isAdded']!=!!_0x1cc0e2['isAdded']?-0x1==_0x40acaa['side']||0x0==_0x40acaa['side']?_0x40acaa['isAdded']?-0x1:0x1:_0x40acaa['isAdded']?0x1:-0x1:_0x40acaa['index']-_0x1cc0e2['index']),{'commonTape':_0x34ae27,'iEnd':_0x4417b1,'jEnd':_0x30cee6};function _0x244928(_0x106a84,_0x26de49,_0x17ad85){let _0x3fb9eb=-0x1,_0xe1e7d3=Number['POSITIVE_INFINITY'],_0x3d5032=!0x0;for(let _0x382bab=_0x26de49;_0x382bab<_0x17ad85;_0x382bab++)if(_0x19016a['isInline'](_0x106a84[_0x382bab]['item'])||(_0x3d5032=!0x1),_0x106a84[_0x382bab]['item']['startIndex']<_0x26de49&&(_0x3fb9eb=_0x382bab),_0x106a84[_0x382bab]['item']['endIndex']>=_0x17ad85){_0xe1e7d3=_0x382bab;break;}_0x3d5032&&(_0x3fb9eb=_0x17ad85-0x1);for(let _0x293e6e=_0x26de49;_0x293e6e<_0x17ad85;_0x293e6e++)_0x106a84[_0x293e6e]['side']=_0x293e6e<=_0x3fb9eb?-0x1:_0x293e6e<_0xe1e7d3?0x0:0x1,_0x106a84[_0x293e6e]['index']=_0x293e6e;let _0xe87746=0x0;for(let _0x350a99=_0x26de49;_0x350a99<=_0x3fb9eb;_0x350a99++)0x0==_0x106a84[_0x350a99]['distance']?_0x106a84[_0x350a99]['level']=_0xe87746:(_0xe87746++,_0x106a84[_0x350a99]['level']=_0xe87746,_0xe87746++);for(let _0x1f7cf3=_0x26de49;_0x1f7cf3<_0x17ad85;_0x1f7cf3++)0x0==_0x106a84[_0x1f7cf3]['side']&&(_0x106a84[_0x1f7cf3]['level']=_0xe87746);_0xe87746=0x0;for(let _0x51384b=_0x17ad85-0x1;_0x51384b>=_0xe1e7d3;_0x51384b--)0x0==_0x106a84[_0x51384b]['distance']?_0x106a84[_0x51384b]['level']=_0xe87746:(_0xe87746--,_0x106a84[_0x51384b]['level']=_0xe87746,_0xe87746--);}}['_fixObsoleteTags'](_0x3ab48f){const _0x433b6d=new Map(),_0x1a5b6d=this['editor']['model']['schema'];for(let _0x297b69=0x1;_0x297b69<_0x3ab48f['length'];_0x297b69++){let _0x13abec,_0x1318fb,_0x2f270a;const _0x5c4324=_0x3ab48f[_0x297b69],_0x3501ca=_0x3ab48f[_0x297b69-0x1];if('text'==_0x5c4324['type'])continue;if(_0x5c4324['type']!=_0x3501ca['type'])continue;if(!_0x1a5b6d['isBlock'](_0x3501ca['item'])||_0x1a5b6d['isLimit'](_0x3501ca['item']))continue;if(!_0x1a5b6d['isBlock'](_0x5c4324['item'])||_0x1a5b6d['isLimit'](_0x5c4324['item']))continue;if((_0x3ab48f[_0x297b69]['isAdded']||_0x3ab48f[_0x297b69]['isAddSuggestion'])&&_0x3ab48f[_0x297b69-0x1]['isRemoved'])_0x13abec=_0x3ab48f[_0x297b69],_0x1318fb=_0x3ab48f[_0x297b69-0x1],_0x2f270a=_0x297b69-0x1;else{if(!_0x3ab48f[_0x297b69]['isRemoved']||!_0x3ab48f[_0x297b69-0x1]['isAdded']&&!_0x3ab48f[_0x297b69-0x1]['isAddSuggestion'])continue;_0x13abec=_0x3ab48f[_0x297b69-0x1],_0x1318fb=_0x3ab48f[_0x297b69],_0x2f270a=_0x297b69;}const _0x3517b8=_0x13abec['level']==_0x1318fb['level'],_0x16141e=Math['abs'](_0x13abec['level'])<Math['abs'](_0x1318fb['level'])&&0x0==_0x1318fb['distance'];(_0x3517b8||_0x16141e)&&(_0x433b6d['set'](_0x1318fb['id'],_0x13abec['id']),_0x3ab48f['splice'](_0x2f270a,0x1),_0x297b69--,_0x13abec['isAdded']=!0x1);}for(let _0xccc4f9=0x0;_0xccc4f9<_0x3ab48f['length'];_0xccc4f9++)_0x433b6d['has'](_0x3ab48f[_0xccc4f9]['pairId'])&&(_0x3ab48f[_0xccc4f9]['pairId']=_0x433b6d['get'](_0x3ab48f[_0xccc4f9]['pairId']));}['_removeMissingPairs'](_0x604ad2){const _0x59231e=new Set(_0x604ad2['map'](_0x3a073d=>_0x3a073d['id']));for(let _0x2ae7e7=0x0;_0x2ae7e7<_0x604ad2['length'];_0x2ae7e7++)_0x59231e['has'](_0x604ad2[_0x2ae7e7]['pairId'])||0x0==_0x604ad2[_0x2ae7e7]['distance']||(_0x604ad2[_0x2ae7e7]['isIncorrect']=!0x0);return _0x604ad2['filter'](_0x4675c7=>!_0x4675c7['isIncorrect']);}['_markMismatchedRemovedTags'](_0xa1c0ed){const _0x24b3d9=new Set();for(let _0x5986fc=0x0;_0x5986fc<_0xa1c0ed['length'];_0x5986fc++){if(_0x24b3d9['has'](_0xa1c0ed[_0x5986fc]['id'])&&_0xa1c0ed[_0x5986fc]['isRemoved']&&(_0xa1c0ed[_0x5986fc]['isIncorrect']=!0x0),_0xa1c0ed[_0x5986fc]['isIncorrect'])continue;if(0x0==_0xa1c0ed[_0x5986fc]['distance'])continue;if('elementStart'!=_0xa1c0ed[_0x5986fc]['type'])continue;if(null==_0xa1c0ed[_0x5986fc]['pairId'])continue;let _0x1fc3d8=_0x5986fc+0x1,_0x1cfdf9=0x0;for(;_0xa1c0ed[_0x1fc3d8]['id']!=_0xa1c0ed[_0x5986fc]['pairId'];)'elementStart'==_0xa1c0ed[_0x1fc3d8]['type']?_0x1cfdf9++:'elementEnd'==_0xa1c0ed[_0x1fc3d8]['type']&&_0x1cfdf9--,_0x1fc3d8++;if(0x0!=_0x1cfdf9){if(_0xa1c0ed[_0x5986fc]['isRemoved'])_0xa1c0ed[_0x5986fc]['isIncorrect']=!0x0;else{for(;_0x1fc3d8!=_0x5986fc;)_0xa1c0ed[_0x1fc3d8]['isRemoved']&&0x0!=_0xa1c0ed[_0x1fc3d8]['distance']&&(_0xa1c0ed[_0x1fc3d8]['isIncorrect']=!0x0,_0x24b3d9['add'](_0xa1c0ed[_0x1fc3d8]['pairId'])),_0x1fc3d8--;}}}return _0xa1c0ed['filter'](_0xe3776a=>!_0xe3776a['isIncorrect']);}['_removeUnsupportedChanges'](_0x31f9ce){const _0x523378=this['editor']['model']['schema'];for(let _0x113f3f=0x0;_0x113f3f<_0x31f9ce['length'];_0x113f3f++){if(!(_0x31f9ce[_0x113f3f]['isAdded']||_0x31f9ce[_0x113f3f]['isAddSuggestion']||_0x31f9ce[_0x113f3f]['isRemoved']||_0x31f9ce[_0x113f3f]['isRemoveSuggestion']))continue;if(0x0==_0x31f9ce[_0x113f3f]['distance'])continue;const _0x30aee7=_0x31f9ce[_0x113f3f]['item'];_0x523378['isBlock'](_0x30aee7)||_0x523378['isLimit'](_0x30aee7)||(_0x31f9ce[_0x113f3f]['isAdded']&&delete _0x31f9ce[_0x113f3f]['isAdded'],_0x31f9ce[_0x113f3f]['isAddSuggestion']&&delete _0x31f9ce[_0x113f3f]['isAddSuggestion'],_0x31f9ce[_0x113f3f]['isRemoveSuggestion']&&delete _0x31f9ce[_0x113f3f]['isRemoveSuggestion'],_0x31f9ce[_0x113f3f]['isRemoved']&&(_0x31f9ce[_0x113f3f]['isIncorrect']=!0x0));}return _0x31f9ce['filter'](_0x4cbc6c=>!_0x4cbc6c['isIncorrect']);}['_makeModelFromTape'](_0x23614d,_0x46a302,_0x476f6a){const _0xeb2a5e=new vt(),_0x5ba3f=[],_0x103432=new Map(),_0x38d0aa=this['editor']['model'],_0x143fda=_0x38d0aa['schema'],_0x530f99=[_0xeb2a5e],_0x3c0179={},_0x1e0c5c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f5209=null;const _0x23aae7=[0x0];for(let _0x4b443b=0x0;_0x4b443b<_0x23614d['length'];_0x4b443b++)if('elementStart'===_0x23614d[_0x4b443b]['type']){_0x23614d[_0x4b443b]['previousPosition']=_0x38d0aa['createPositionFromPath'](_0xeb2a5e,_0x23aae7);const _0x4db7fc=new ut(_0x23614d[_0x4b443b]['item']['name'],_0x23614d[_0x4b443b]['item']['getAttributes']());_0x530f99[0x0]['_appendChild'](_0x4db7fc),_0x23aae7['push'](0x0),_0x530f99['unshift'](_0x4db7fc),_0x23614d[_0x4b443b]['nextPosition']=_0x38d0aa['createPositionFromPath'](_0xeb2a5e,_0x23aae7);}else'elementEnd'===_0x23614d[_0x4b443b]['type']?(_0x530f99['shift'](),_0x23614d[_0x4b443b]['previousPosition']=_0x38d0aa['createPositionFromPath'](_0xeb2a5e,_0x23aae7),_0x23aae7['pop'](),_0x23aae7[_0x23aae7['length']-0x1]++,_0x23614d[_0x4b443b]['nextPosition']=_0x38d0aa['createPositionFromPath'](_0xeb2a5e,_0x23aae7)):(_0x23614d[_0x4b443b]['previousPosition']=_0x38d0aa['createPositionFromPath'](_0xeb2a5e,_0x23aae7),_0x3f5209?_0x3f5209['_data']+=_0x23614d[_0x4b443b]['item']['data']:_0x3f5209=new gt(_0x23614d[_0x4b443b]['item']['data'],_0x23614d[_0x4b443b]['item']['getAttributes']()),_0x23614d[_0x4b443b+0x1]&&'text'===_0x23614d[_0x4b443b+0x1]['type']&&_0xfc30f5(_0x3f5209,_0x23614d[_0x4b443b+0x1]['item'])||(_0x530f99[0x0]['_appendChild'](_0x3f5209),_0x3f5209=null),_0x23aae7[_0x23aae7['length']-0x1]+=_0x23614d[_0x4b443b]['item']['offsetSize'],_0x23614d[_0x4b443b]['nextPosition']=_0x38d0aa['createPositionFromPath'](_0xeb2a5e,_0x23aae7));for(let _0x566fd5=0x0;_0x566fd5<_0x23614d['length'];_0x566fd5++){const _0x4e85da=_0x23614d[_0x566fd5]['previousPosition'],_0x3ee005=_0x23614d[_0x566fd5]['nextPosition'];for(const _0x5673b8 of _0x23614d[_0x566fd5]['markersStart'])_0x103432['set'](_0x5673b8,{'start':_0x4e85da,'end':null});_0xbeab68('isRemoveSuggestion',_0x566fd5,_0x4e85da,_0x3ee005),_0xbeab68('isAddSuggestion',_0x566fd5,_0x4e85da,_0x3ee005),_0xbeab68('isRemoved',_0x566fd5,_0x4e85da,_0x3ee005),_0xbeab68('isAdded',_0x566fd5,_0x4e85da,_0x3ee005);for(const _0x1e7191 of _0x23614d[_0x566fd5]['markersEnd']){const _0x3f4f55=_0x103432['get'](_0x1e7191);_0x3f4f55?_0x3f4f55['end']=_0x3ee005:_0x103432['set'](_0x1e7191,{'start':_0x3ee005,'end':_0x3ee005});}}for(const [_0xe50bd6,_0x54fcfb]of _0x103432){const _0x55b6b0=this['editor']['model']['createRange'](_0x54fcfb['start'],_0x54fcfb['end']);_0xeb2a5e['markers']['set'](_0xe50bd6,_0x55b6b0);}return _0x5ba3f['sort']((_0x4884fb,_0x1ad47e)=>{const _0x2f6b0a=_0xeb2a5e['markers']['get']('revision:'+_0x4884fb['id']),_0x5548a2=_0xeb2a5e['markers']['get']('revision:'+_0x1ad47e['id']);return _0x2f6b0a['start']['isBefore'](_0x5548a2['start'])?-0x1:_0x2f6b0a['start']['isAfter'](_0x5548a2['start'])?0x1:_0x2f6b0a['end']['isBefore'](_0x5548a2['end'])?-0x1:_0x2f6b0a['end']['isAfter'](_0x5548a2['end'])?0x1:'add'===_0x4884fb['type']?-0x1:0x1;}),{'root':_0xeb2a5e,'changes':_0x5ba3f};function _0xbeab68(_0x3c3494,_0x1fef41,_0x25c896,_0x519613){const _0x4441dc=!!_0x23614d[_0x1fef41][_0x3c3494],_0x5043b4=_0x4441dc?_0x23614d[_0x1fef41][_0x3c3494]['userId']:null,_0x51490b=_0x1fef41===_0x23614d['length']-0x1,_0xc23609=_0x1e0c5c[_0x3c3494][0x0],_0x341d55=_0x143fda['isObject'](_0x23614d[_0x1fef41]['item']);!_0x3c0179[_0x3c3494]&&_0x4441dc?_0x3c0179[_0x3c3494]={'start':_0x25c896,'tapeItem':_0x23614d[_0x1fef41],'userId':_0x5043b4,'type':_0x3c3494}:_0x3c0179[_0x3c3494]&&!_0x4441dc?(_0x3c0179[_0x3c3494]['end']=_0x25c896,_0x3c94e4(_0x3c0179[_0x3c3494]),_0x3c0179[_0x3c3494]=null):_0x3c0179[_0x3c3494]&&_0x4441dc&&_0x3c0179[_0x3c3494]['userId']!==_0x5043b4&&(_0x3c0179[_0x3c3494]['end']=_0x25c896,_0xc23609&&_0xc23609['userId']===_0x3c0179[_0x3c3494]['userId']||_0x3c94e4(_0x3c0179[_0x3c3494]),_0x3c0179[_0x3c3494]={'start':_0x25c896,'tapeItem':_0x23614d[_0x1fef41],'userId':_0x5043b4,'type':_0x3c3494}),_0x3c0179[_0x3c3494]&&_0x341d55&&('elementStart'!==_0x23614d[_0x1fef41]['type']||_0xc23609&&_0xc23609['userId']===_0x5043b4||_0x1e0c5c[_0x3c3494]['unshift']({'userId':_0x5043b4,'object':_0x23614d[_0x1fef41]['item'],'change':_0x3c0179[_0x3c3494]}),'elementEnd'===_0x23614d[_0x1fef41]['type']&&_0xc23609&&_0xc23609['object']===_0x23614d[_0x1fef41]['item']&&(_0x1e0c5c[_0x3c3494]['shift'](),_0x3c0179[_0x3c3494]=_0xc23609['change'])),_0x3c0179[_0x3c3494]&&_0x51490b&&(_0x3c0179[_0x3c3494]['end']=_0x519613,_0x3c94e4(_0x3c0179[_0x3c3494]),_0x3c0179[_0x3c3494]=null);}function _0x3c94e4({start:_0x120fec,end:_0x4db39c,tapeItem:_0x539a11,userId:_0x2329d6,type:_0x121f2f}){const _0x11cd3e=_0x539a11['item'],_0x23e58d=_0x38d0aa['schema']['isBlock'](_0x11cd3e)&&!_0x38d0aa['schema']['isLimit'](_0x11cd3e),_0x20276a=_0x120fec['nodeAfter']==_0x4db39c['parent']&&_0x4db39c['isAtStart'];if(_0x23e58d&&_0x20276a)return;const _0x43e179=_0x38d0aa['createRange'](_0x120fec,_0x4db39c),_0x5b63be=_0x46a302['get'](_0x2329d6),_0x130216=new r({'author':_0x5b63be,'type':'isAdded'==_0x121f2f||'isAddSuggestion'==_0x121f2f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x121f2f||'isRemoveSuggestion'==_0x121f2f},'createdAt':new Date(),'rootName':_0x476f6a});_0x5ba3f['push'](_0x130216),_0xeb2a5e['markers']['set']('revision:'+_0x130216['id'],_0x43e179);}function _0xfc30f5(_0x30bb06,_0x3c5494){const _0x238f2d=_0x30bb06['getAttributes'](),_0x33855e=_0x3c5494['getAttributes']();for(const _0xdb4b86 of _0x238f2d){if(_0xdb4b86[0x1]!==_0x3c5494['getAttribute'](_0xdb4b86[0x0]))return!0x1;_0x33855e['next']();}return _0x33855e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x598b1f=>{const _0x459b85=_0x598b1f['markerName']['split'](':')[0x1],_0x2d30ae=this['_getChangeFromId'](_0x459b85);if(!_0x2d30ae)return null;const _0x2a97c9='add'==_0x2d30ae['type']?'insertion':'deletion',_0x18fcca=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2a97c9];return _0x2d30ae['data']['isSuggestion']&&_0x18fcca['push']('ck-suggestion-marker-'+_0x2a97c9+'-new'),this['activeChange']==_0x2d30ae&&_0x18fcca['push']('ck-suggestion-marker--active'),{'classes':_0x18fcca,'attributes':{'data-change-id':_0x459b85}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x53465a=>{_0x53465a['on']('element:pre',(_0x487713,_0x258a9f,_0x3fb41c)=>{const _0x33ca7a=_0x258a9f['viewItem']['getChild'](0x0);if(!_0x33ca7a||!_0x33ca7a['is']('element','code'))return;if(!_0x3fb41c['consumable']['consume'](_0x33ca7a,{'attributes':['vid_start','vid_end']}))return;const _0x44e72e=_0x258a9f['modelRange']['start']['nodeAfter'];_0x3fb41c['writer']['setAttribute']('vid_start',_0x33ca7a['getAttribute']('vid_start'),_0x44e72e),_0x3fb41c['writer']['setAttribute']('vid_end',_0x33ca7a['getAttribute']('vid_end'),_0x44e72e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5e47e2=>{_0x5e47e2['on']('element',(_0x516b19,_0x3b86a0,_0x4a8320)=>{if(!_0x4a8320['consumable']['consume'](_0x3b86a0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3b86a0['modelRange']['isCollapsed'])return;const _0x25e64e=_0x3b86a0['modelRange']['start']['nodeAfter'];_0x25e64e['hasAttribute']('vid_start')||_0x25e64e['hasAttribute']('vid')||(_0x4a8320['writer']['setAttribute']('vid_start',_0x3b86a0['viewItem']['getAttribute']('vid_start'),_0x25e64e),_0x4a8320['writer']['setAttribute']('vid_end',_0x3b86a0['viewItem']['getAttribute']('vid_end'),_0x25e64e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x59303e=>_0x59303e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x275429,[,_0x3fc780])=>{['vid_start','vid_end','vid']['includes'](_0x3fc780)&&(_0x275429['return']=!0x0,_0x275429['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x38876f=>{_0x38876f['on']('attribute:vid',(_0x548724,_0x330c42,_0x5084bf)=>{if('\x20'!=_0x330c42['item']['data']||_0x330c42['item']['parent']['maxOffset']>0x1)return;if(!_0x5084bf['consumable']['consume'](_0x330c42['item'],_0x548724['name']))return;const _0x48d3d4=_0x5084bf['writer'],_0x1b727c=_0x5084bf['mapper']['toViewRange'](_0x330c42['range']);_0x48d3d4['wrap'](_0x1b727c,_0x48d3d4['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x347dd0){const _0x345dcd=_0x347dd0['plugins']['get']('RevisionViewer');return(_0x408d8a,_0x2fdb2a,_0x179182)=>{const _0x239fb4=_0x2fdb2a['markerName']['split'](':')[0x1],_0x3e5cdf=_0x345dcd['_getChangeFromId'](_0x239fb4);if(!_0x3e5cdf)return null;const _0x414339='add'==_0x3e5cdf['type']?'split':'merge';if(!_0x179182['consumable']['test'](_0x2fdb2a['markerRange'],_0x408d8a['name']))return;const _0x2ef562=_0x2fdb2a['markerRange']['getWalker'](),_0x45f365=_0x2fdb2a['markerRange']['start'],_0x19c899=_0x347dd0['model']['schema'];let _0x4b4356=null,_0x39dcf2=null,_0x55c38c=!0x1,_0x1ad531=!0x1;for(const _0x5b4db6 of _0x2ef562){const _0x58b861=_0x5b4db6['item'];_0x55c38c=_0x55c38c||_0x19c899['isContent'](_0x58b861);const _0x4cee7f=_0x179182['mapper']['toViewElement'](_0x58b861);if(_0x4cee7f&&_0x4cee7f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b4db6['type']&&(_0x19c899['isBlock'](_0x58b861)&&!_0x19c899['isLimit'](_0x58b861)&&(_0x58b861['nextSibling']||_0x45f365['isAtEnd']?_0x4b4356&&_0x4b4356['parent']==_0x58b861||(_0x4b4356=_0x58b861,_0x1ea378(_0x5b4db6['previousPosition']),_0x1ad531=!0x0):_0x39dcf2=_0x39dcf2||_0x5b4db6['previousPosition']));}function _0x1ea378(_0x2321b2){const _0x54ce2b=_0x179182['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x414339}),_0x4ce692=_0x179182['mapper']['toViewPosition'](_0x2321b2);_0x3e5cdf['data']['isSuggestion']&&_0x179182['writer']['addClass']('ck-suggestion-marker-'+_0x414339+'-new',_0x54ce2b),_0x345dcd['activeChange']==_0x3e5cdf&&_0x179182['writer']['addClass']('ck-suggestion-marker--active',_0x54ce2b),_0x179182['writer']['insert'](_0x4ce692,_0x54ce2b),_0x179182['mapper']['bindElementToMarker'](_0x54ce2b,_0x2fdb2a['markerName']);}_0x55c38c||_0x1ad531||!_0x39dcf2||_0x1ea378(_0x39dcf2);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x453a3f,_0x441d1f,_0x215be6)=>{const _0xabdbcb=_0x215be6['mapper']['markerNameToElements'](_0x441d1f['markerName']);if(_0xabdbcb){for(const _0x500a61 of _0xabdbcb)(_0x500a61['hasClass']('ck-suggestion-marker-split')||_0x500a61['hasClass']('ck-suggestion-marker-merge'))&&(_0x215be6['mapper']['unbindElementFromMarkerName'](_0x500a61,_0x441d1f['markerName']),_0x215be6['writer']['remove'](_0x500a61));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1b5e8f,_0x1755c4,_0x106aac)=>{const _0xf9c126=_0x1755c4['markerName']['split'](':')[0x1],_0x5c4758=this['_getChangeFromId'](_0xf9c126);if(!_0x5c4758)return null;const _0x3e4f90='add'==_0x5c4758['type']?'split':'merge';if(_0x106aac['consumable']['test'](_0x1755c4['markerRange'],_0x1b5e8f['name']))for(const _0x440a14 of _0x1755c4['markerRange']['getItems']()){if(!_0x440a14['is']('element','softBreak'))continue;const _0x54732f=_0x106aac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e4f90}),_0x583e4d=_0x106aac['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x440a14));_0x5c4758['data']['isSuggestion']&&_0x106aac['writer']['addClass']('ck-suggestion-marker-'+_0x3e4f90+'-new',_0x54732f),this['activeChange']==_0x5c4758&&_0x106aac['writer']['addClass']('ck-suggestion-marker--active',_0x54732f),_0x106aac['writer']['insert'](_0x583e4d,_0x54732f),_0x106aac['mapper']['bindElementToMarker'](_0x54732f,_0x1755c4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1191b5=>{for(const _0x56c44d of this['editor']['model']['document']['getRootNames']()){const _0x7f5219=this['editor']['model']['document']['getRoot'](_0x56c44d),_0xa4895d=this['editor']['editing']['view']['document']['getRoot'](_0x56c44d);if(_0xa4895d){const _0xfc5d83=_0x7f5219['getAttribute']('revisionHistoryAttachChange');if(_0x1191b5['removeAttribute']('data-change-id',_0xa4895d),_0x1191b5['removeClass']('ck-revision-history-root-add',_0xa4895d),_0x1191b5['removeClass']('ck-revision-history-root-remove',_0xa4895d),_0x1191b5['removeClass']('ck-revision-history-root--active',_0xa4895d),_0xfc5d83){const _0x2582dc=this['_getChangeFromId'](_0xfc5d83);if(!_0x2582dc)return null;_0x1191b5['setAttribute']('data-change-id',_0xfc5d83,_0xa4895d),_0x1191b5['addClass']('ck-revision-history-root-'+_0x2582dc['type'],_0xa4895d),this['activeChange']==_0x2582dc&&_0x1191b5['addClass']('ck-revision-history-root--active',_0xa4895d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5058f0=>'revision-comment:'+_0x5058f0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3710c3=>'revision-suggestion:'+_0x3710c3,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b375c=>({'name':'suggestion:'+_0x2b375c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5e7199=>{const _0x27517f=_0x5e7199['markerName']['split'](':')[0x1];return'insertion'!=_0x27517f&&'deletion'!=_0x27517f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x27517f]};}}),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',(_0x214616,_0x5a0851,_0x455672)=>{const _0x165042=_0x455672['mapper']['markerNameToElements'](_0x5a0851['markerName']);if(_0x165042){for(const _0x4049cd of _0x165042)_0x4049cd['is']('uiElement')&&(_0x455672['mapper']['unbindElementFromMarkerName'](_0x4049cd,_0x5a0851['markerName']),_0x455672['writer']['remove'](_0x4049cd));}},{'priority':'high'});}['_getChangeFromId'](_0x232167){return this['_changeIdToChange']['get'](_0x232167);}['_getViewForChange'](_0x195f33){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x195f33),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x90c603,_0x102976,_0x17cc26,_0x454a43)=>{_0x454a43&&this['_balloon']['remove'](_0x454a43),_0x17cc26&&(this['_balloon']['add']({'view':_0x17cc26,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x59c3dd=this['editor']['editing'],_0x1eadb2=this['_getChangeFromId'](_0x17cc26['changeId']);let _0x7a9ebb;if(_0x1eadb2['data']['isOnRoot']){const _0x291996=_0x59c3dd['view']['getDomRoot'](_0x1eadb2['rootName']);_0x7a9ebb=Array['from'](_0x291996['getClientRects']());}else{const _0x50800a=this['editor']['model']['markers']['get']('revision:'+_0x17cc26['changeId']);_0x7a9ebb=Array['from'](_0x59c3dd['mapper']['markerNameToElements'](_0x50800a['name']))['map'](_0x3a49eb=>_0x59c3dd['view']['domConverter']['mapViewToDom'](_0x3a49eb))['map'](_0x478cb4=>Array['from'](_0x478cb4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x7a9ebb[0x0];return _0x7a9ebb['find'](_0x5cf2fc=>_0x5cf2fc['top']-0x3<=this['_activeViewTarget']['y']&&_0x5cf2fc['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5cf2fc['left']-0x3<=this['_activeViewTarget']['x']&&_0x5cf2fc['right']+0x3>=this['_activeViewTarget']['x'])||_0x7a9ebb[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4ea56b,_0x41daf8,_0x372ae6,_0x72adce)=>{this['activeView']=_0x372ae6?this['_getViewForChange'](_0x372ae6):null,this['editor']['model']['change'](()=>{const _0x2f9302=this['editor']['editing'];_0x72adce&&(_0x72adce['data']['isOnRoot']?_0x2f9302['view']['change'](_0x11abbd=>{_0x11abbd['removeClass']('ck-revision-history-root--active',_0x2f9302['view']['document']['getRoot'](_0x72adce['rootName']));}):_0x2f9302['reconvertMarker']('revision:'+_0x72adce['id'])),_0x372ae6&&(_0x372ae6['data']['isOnRoot']?_0x2f9302['view']['change'](_0x41f88b=>{_0x41f88b['addClass']('ck-revision-history-root--active',_0x2f9302['view']['document']['getRoot'](_0x372ae6['rootName']));}):_0x2f9302['reconvertMarker']('revision:'+_0x372ae6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x166989,_0x40413a)=>{if(this['activeChange'])return;const _0x18ebff=this['_findChangeIdFromDomTarget'](_0x40413a['target']),_0x15a70f=this['_changeIdToChange']['get'](_0x18ebff);_0x15a70f?(this['_activeViewTarget']={'x':_0x40413a['domEvent']['x'],'y':_0x40413a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x15a70f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x14404a,_0x1c4c33)=>{const _0x245ae2=this['_findChangeIdFromDomTarget'](_0x1c4c33['target']),_0x5c69d3=this['_changeIdToChange']['get'](_0x245ae2);_0x5c69d3?(this['_activeViewTarget']={'x':_0x1c4c33['domEvent']['x'],'y':_0x1c4c33['domEvent']['y']},_0x5c69d3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5c69d3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1b2807){do{const _0x53019b=_0x1b2807['getAttribute']('data-change-id');if(_0x53019b)return _0x53019b;_0x1b2807=_0x1b2807['parent'];}while(_0x1b2807);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3c3ad5=>{for(const _0x3bbeb9 of this['editor']['model']['markers'])_0x3c3ad5['removeMarker'](_0x3bbeb9);});}}function X(_0x1ce4b6,_0x3c5141){return(_0x12bf35,_0x71d85e,_0x7f9551)=>{if(!_0x7f9551['consumable']['test'](_0x71d85e['markerRange'],_0x12bf35['name']))return;const _0x4acd21=_0x71d85e['markerRange']['getWalker'](),_0x2e6d02=_0x71d85e['markerRange']['start'],_0x1cabd9=_0x1ce4b6['model']['schema'];let _0x294b83=null,_0x32e2ee=null,_0x350112=!0x1,_0x463e24=!0x1;for(const _0x1a3482 of _0x4acd21){const _0x167042=_0x1a3482['item'];_0x350112=_0x350112||_0x1cabd9['isContent'](_0x167042);const _0x565b38=_0x7f9551['mapper']['toViewElement'](_0x167042);if(_0x565b38&&_0x565b38['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a3482['type']&&(_0x1cabd9['isBlock'](_0x167042)&&!_0x1cabd9['isLimit'](_0x167042)&&(_0x167042['nextSibling']||_0x2e6d02['isAtEnd']?_0x294b83&&_0x294b83['parent']==_0x167042||(_0x294b83=_0x167042,_0x352742(_0x1a3482['previousPosition']),_0x463e24=!0x0):_0x32e2ee=_0x32e2ee||_0x1a3482['previousPosition']));}function _0x352742(_0x54e017){const _0x113416=_0x7f9551['mapper']['toViewPosition'](_0x54e017),_0x83e4a0=_0x7f9551['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3c5141});_0x7f9551['writer']['insert'](_0x113416,_0x83e4a0),_0x7f9551['mapper']['bindElementToMarker'](_0x83e4a0,_0x71d85e['markerName']);}_0x350112||_0x463e24||!_0x32e2ee||_0x352742(_0x32e2ee);};}class mt extends _0x582b5c{constructor(_0x741fe9){super(_0x741fe9);const _0x155f82=_0x741fe9['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x155f82,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x155f82,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x236e06=this['editor'],_0x5ac0dc=_0x236e06['plugins']['get'](m),_0x467a15=_0x5ac0dc['isReady']?_0x5ac0dc['diff']['newRevisionId']:null;_0x236e06['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x467a15);}['refresh'](){const {isReady:_0x30bec2,isEnabled:_0x6e4403,repository:_0x1afcc9,diff:_0x206ddb}=this['editor']['plugins']['get'](m),_0x222abd=_0x206ddb&&_0x1afcc9['getLaterVisibleRevision'](_0x206ddb['newRevisionId']);this['isEnabled']=_0x30bec2&&_0x6e4403&&Boolean(_0x222abd);}}class wt extends _0x582b5c{['_step'];constructor(_0x36481e,{direction:_0x3548f7}){super(_0x36481e);const _0x2105be=_0x36481e['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3548f7?0x1:-0x1,this['listenTo'](_0x2105be,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2105be,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2105be,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4b1fde=this['editor'],_0x3f3196=_0x4b1fde['plugins']['get'](m),{isNavigationMode:_0x55c068,currentChangeNumber:_0x456e55}=_0x3f3196;let _0x52421a;if(_0x3f3196['activeChange']=_0x55c068?_0x3f3196['diff']['changes']['get'](_0x456e55+this['_step']):_0x3f3196['diff']['changes']['first'],_0x3f3196['activeChange']['data']['isOnRoot'])_0x52421a=_0x4b1fde['editing']['view']['getDomRoot'](_0x3f3196['activeChange']['rootName']);else{const _0x5a8dc2=_0x4b1fde['model']['markers']['get']('revision:'+_0x3f3196['activeChange']['id']);_0x52421a=_0x32e7ab(_0x4b1fde['editing'],_0x5a8dc2);}_0x51b45e({'target':_0x52421a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x240faf,currentChangeNumber:_0x16bbb4,numberOfChanges:_0x90c6c1,isReady:_0x541742,isEnabled:_0x45eb25}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x45eb25&&_0x541742&&_0x90c6c1)&&(!_0x240faf||(0x1===this['_step']?_0x16bbb4<_0x90c6c1-0x1:_0x16bbb4>0x0));}}class _i extends ts{constructor(_0x5e44c4){super(_0x5e44c4);const _0xa8b5fc=this['bindTemplate'],_0x3a16e0=new te(_0x5e44c4),_0x14db66=new te(_0x5e44c4);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',(_0x18ca3a,_0x1c8079)=>_0x18ca3a&&_0x1c8079>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x105ef7,_0x2cc99f,_0x4ef467,_0x2bd285)=>{if(!_0x105ef7)return g(_0x5e44c4,'Loading...');if(!_0x4ef467)return g(_0x5e44c4,'No\x20changes');const _0x5e52d9=g(_0x5e44c4,'NUMBER_OF_CHANGES',_0x4ef467);return _0x2bd285?g(_0x5e44c4,'X_OF_Y_CHANGES',[_0x2cc99f+0x1,_0x4ef467]):_0x5e52d9;}),_0x3a16e0['set']({'label':g(_0x5e44c4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4dce82}),_0x14db66['set']({'label':g(_0x5e44c4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2b4ca6}),_0x3a16e0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x14db66['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3a16e0['on']('execute',()=>this['fire']('execute','backward')),_0x14db66['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',_0xa8b5fc['if']('_isStatusLabelVisible','ck-hidden',_0x5c5121=>!_0x5c5121)]},'children':[{'text':_0xa8b5fc['to']('isNavigationMode',_0x309a22=>_0x309a22?g(_0x5e44c4,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x5e44c4,'Total')+':\x20')}]},{'text':_0xa8b5fc['to']('_statusText')}]},new _0x421304(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3a16e0,_0x14db66]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x634022{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5ee5c7=this['editor']['editing']['view'];_0x5ee5c7['change'](_0x1d2ae3=>{for(const _0x7e4aa0 of _0x5ee5c7['document']['roots'])_0x1d2ae3['addClass'](le,_0x7e4aa0);});}['hide'](){const _0x39b65f=this['editor']['editing']['view'];_0x39b65f['change'](_0x35c20e=>{for(const _0x420556 of _0x39b65f['document']['roots'])_0x35c20e['removeClass'](le,_0x420556);});}}class R extends _0x634022{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x42a002=this['editor'],_0x39c6ce=_0x42a002['plugins']['get'](m),_0x435b11=_0x42a002['plugins']['get'](ge);_0x42a002['ui']['componentFactory']['add']('exitToEditing',_0x1cd7c5=>{const _0x290152=new te(_0x1cd7c5);return _0x290152['set']({'label':g(_0x1cd7c5,'Back\x20to\x20editing'),'icon':_0x205767,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x290152,'execute',()=>{_0x42a002['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x290152;}),_0x42a002['ui']['componentFactory']['add']('restoreRevision',_0x445bb8=>{const _0x68113e=new te(_0x445bb8);return _0x68113e['set']({'label':g(_0x445bb8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x68113e['bind']('isEnabled')['to'](_0x42a002['commands']['get']('restoreRevision')),this['listenTo'](_0x68113e,'execute',()=>_0x42a002['execute']('restoreRevision')),_0x68113e;}),_0x42a002['ui']['componentFactory']['add']('changesNavigation',_0xc811ad=>{const _0x3d39ae=new _i(_0xc811ad),_0x459d40=_0x42a002['commands']['get']('showPreviousChange'),_0x2d8c67=_0x42a002['commands']['get']('showNextChange');return _0x3d39ae['bind']('isBackwardNavigationEnabled')['to'](_0x459d40,'isEnabled'),_0x3d39ae['bind']('isForwardNavigationEnabled')['to'](_0x2d8c67,'isEnabled'),_0x3d39ae['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39c6ce),this['listenTo'](_0x3d39ae,'execute',(_0x7a6db4,_0x2ee56a)=>{_0x42a002['execute']('forward'===_0x2ee56a?'showNextChange':'showPreviousChange');}),_0x3d39ae;}),_0x435b11['show'](),_0x39c6ce['on']('change:isReady',(_0x34a934,_0x329594,_0xb88084)=>{_0xb88084?_0x435b11['hide']():_0x435b11['show']();});}}class at extends _0x171b5b{['_resizeObserver']=null;constructor(_0x47d614,_0x4f0085){super(_0x47d614,_0x4f0085);const _0x18507d=this['bindTemplate'];this['set']({'label':g(_0x47d614,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x47d614,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x18507d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x59f1cc=this['fieldView']['element'];this['_tooltipString']=_0x59f1cc['scrollWidth']>_0x59f1cc['clientWidth']&&_0x59f1cc['value']||'';}}class si extends ts{constructor(_0x555ec6,_0x4440da,_0x1e9d20){super(_0x555ec6);const _0x150823=new _0x5f8016();_0x150823['set']({'content':_0xaf5bc,'viewBox':'0\x200\x2011\x2010'});const _0xb996ac=['ck','ck-revision-history-sidebar__revision-author'];_0x1e9d20&&_0xb996ac['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2a0144=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x555ec6,_0x1e9d20?'Revision\x20creator':'Revision\x20author')},'children':[_0x150823,_0x4440da['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xb996ac},'children':_0x2a0144});}}function oi(_0x2aef43,_0x7c1b72){const _0x3be432=_0x2aef43['bindTemplate'],_0x24d697=_0x2aef43['locale'],_0x5dfb64=_0x2dcc14(_0x24d697);_0x5dfb64['panelPosition']='sw';const _0x5cadfd=function(_0x8064b3,_0x591185){const _0x3754bd=function(_0x363104,_0x3c1463){const _0x2bd240=_0x363104['locale'],_0x43ebd4={'Compare\x20against\x20selected':g(_0x2bd240,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2bd240,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2bd240,'Restore\x20this\x20revision')};return _0x3c1463['map'](_0x4fc34d=>{const _0x20b986=_0x43ebd4[_0x4fc34d['name']];return _0x20b986&&_0x20b986!==_0x4fc34d['name']&&(_0x4fc34d['name']=_0x20b986),_0x4fc34d;});}(_0x8064b3,_0x591185),_0x262cd6=new _0x375022();for(const _0x8032bf of _0x3754bd){const _0x1d2df1={'type':'button','model':new to({'label':_0x8032bf['name'],'class':_0x8032bf['class'],'withText':!0x0,'role':'menuitem','_action':_0x8032bf['action']})};_0x1d2df1['model']['bind']('isEnabled')['to'](_0x8064b3,'isActionsDropdownOpen',_0x2427d7=>'function'!=typeof _0x8032bf['isEnabled']||(!_0x2427d7||_0x8032bf['isEnabled'](_0x8064b3))),_0x262cd6['add'](_0x1d2df1);}return _0x262cd6;}(_0x2aef43,_0x7c1b72);return _0x2aef43['bind']('isActionsDropdownOpen')['to'](_0x5dfb64,'isOpen'),_0x5dfb64['buttonView']['set']({'label':g(_0x24d697,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1d73f3}),_0x5dfb64['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3be432['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3be432['to'](_0xaab219=>_0xaab219['stopPropagation']())}}),_0x5dfb64['on']('execute',_0x3ca489=>{_0x2aef43['isReady']&&'function'==typeof _0x3ca489['source']['_action']&&_0x3ca489['source']['_action'](_0x2aef43);}),_0x2d506c(_0x5dfb64,_0x5cadfd,{'role':'menu'}),_0x5dfb64['listenTo'](_0x2aef43,'change:isActionsDropdownOpen',(_0x5037eb,_0x10daeb,_0x34e62a)=>{if(_0x34e62a)for(const _0x5c5480 of _0x5dfb64['listView']['items']){const _0x3eb878=_0x5c5480['children']['first'],_0x59743a=_0x7c1b72['find'](_0x3d5779=>_0x3d5779['action']===_0x3eb878['_action'])['isVisible'];_0x5c5480['isVisible']=void 0x0===_0x59743a||_0x59743a(_0x2aef43);}}),_0x5dfb64;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5d6a55,_0x4b050a,_0x54a3b8,_0x4f1708){super(_0x5d6a55);const _0x35e7bb=this['bindTemplate'],_0x31c3ce=function(_0x5daf7e,_0x57ad63){const _0xde22c5=Array['from'](_0x57ad63['authors'])['filter'](_0x150fc6=>_0x150fc6!=_0x57ad63['creator']);return _0x57ad63['creator']&&_0xde22c5['unshift'](_0x57ad63['creator']),_0xde22c5['map'](_0x28d89a=>new si(_0x5daf7e,_0x28d89a,_0x28d89a==_0x57ad63['creator']));}(_0x5d6a55,_0x4b050a);this['id']=_0x4b050a['id'],this['_revision']=_0x4b050a,this['_requireRevisionName']=_0x4f1708,this['bind']('name','createdAt')['to'](_0x4b050a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x288054=>{return _0x2f1ec4=_0x5d6a55['uiLanguage'],(_0x24d4b7=_0x288054)['toLocaleDateString'](_0x2f1ec4,{'month':'long','day':'numeric'})+',\x20'+_0x24d4b7['toLocaleTimeString'](_0x2f1ec4,{'hour':'numeric','minute':'numeric'});var _0x2f1ec4,_0x24d4b7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5d6a55,_0x291eb8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x23abda=>_0x23abda||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x12ebfb,_0x4a8237)=>_0x12ebfb&&_0x4a8237),this['revisionActionsView']=_0x54a3b8&&_0x54a3b8['length']?oi(this,_0x54a3b8):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x35e7bb['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x35e7bb['if']('isEnabled','ck-disabled',_0x2a9217=>!_0x2a9217),_0x35e7bb['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x35e7bb['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x35e7bb['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':_0x35e7bb['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':_0x31c3ce}]},this['revisionActionsView']],'on':{'click':_0x35e7bb['to'](_0xd79d59=>{_0xd79d59['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x52747e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x52747e,'change',()=>{this['_requireRevisionName']&&!_0x52747e['value']||this['fire']('setName',{'id':this['id'],'name':_0x52747e['value']}),_0x52747e['value']||(_0x52747e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x56261a,_0x5eafd6){const _0x80e104=_0x3cc35d['fromJSDate'](_0x56261a)['setLocale'](_0x5eafd6),_0x4c427c=_0x3cc35d['local'](),_0x9f9084=_0x4c427c['minus']({'days':0x1})['startOf']('day');let _0x616d00,_0x2fc873;return _0x80e104['hasSame'](_0x4c427c,'day')?(_0x616d00=_0x80e104['startOf']('day')['toJSDate'](),_0x2fc873=_0x80e104['toRelativeCalendar']()):_0x80e104['hasSame'](_0x9f9084,'day')?(_0x616d00=_0x9f9084['toJSDate'](),_0x2fc873=_0x80e104['toRelativeCalendar']()):_0x80e104['hasSame'](_0x4c427c,'week')?(_0x616d00=_0x80e104['startOf']('week')['toJSDate'](),_0x2fc873=_0x80e104['weekdayLong']||''):_0x80e104['hasSame'](_0x4c427c,'year')?(_0x616d00=_0x80e104['startOf']('month')['toJSDate'](),_0x2fc873=_0x80e104['monthLong']||''):(_0x616d00=_0x80e104['startOf']('year')['toJSDate'](),_0x2fc873=String(_0x80e104['year'])),{'startDate':_0x616d00,'localizedPeriodName':_0x2fc873};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x42d47e,_0x1a8f71,_0x581515,_0x564130){super(_0x42d47e);const _0x269c1d=ai(_0x1a8f71,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a8f71,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x581515,this['_requireRevisionName']=_0x564130,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':_0x269c1d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x983150){const _0xc98f2e=new hi(this['locale'],_0x983150,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xc98f2e);}['removeRevision'](_0x37c1ab){const _0x3fb898=this['revisionViews']['find'](_0x4c3262=>_0x4c3262['id']===_0x37c1ab['id']);this['revisionViews']['remove'](_0x3fb898);}}class as extends ts{constructor(_0x3c8b22){super(_0x3c8b22);const _0x46f140=new _0x5f8016();_0x46f140['content']=_0x588eea,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x46f140,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3c8b22,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x247802,_0x476a78,_0x35c85c,_0x1e7c6f){super(_0x247802);const _0x631207=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x476a78,this['_revisionActions']=_0x35c85c,this['_requireRevisionName']=_0x1e7c6f,this['on']('select',(_0x3e1e00,_0x40e3c1)=>{this['fire']('revisionSelected',_0x40e3c1);}),this['on']('setName',(_0xf71b8c,_0x8f952d)=>{this['fire']('revisionSetName',_0x8f952d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x247802),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x631207['if']('isEnabled','ck-disabled',_0x48a6eb=>!_0x48a6eb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x37ce20 of this['_revisions'])this['_addRevision'](_0x37ce20);this['_revisions']['on']('add',(_0x12365d,_0x704dd0)=>{this['_addRevision'](_0x704dd0);}),this['_revisions']['on']('remove',(_0x54e4ae,_0x1d8e6b)=>{this['_removeRevision'](_0x1d8e6b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x41895c=>_0x41895c['revisionViews']['map'](_0x5142e6=>_0x5142e6))['flat']();}['selectRevision'](_0x31b041){for(const _0x105732 of this['revisionViews'])_0x31b041&&_0x31b041['id']===_0x105732['id']?_0x105732['select']():_0x105732['deselect']();}['highlightRevisions'](_0xa47580){for(const _0x707fbc of this['revisionViews'])_0xa47580['some'](({id:_0x1ea9e5})=>_0x1ea9e5===_0x707fbc['id'])?_0x707fbc['highlight']():_0x707fbc['unhighlight']();}['_addRevision'](_0x39af09){const _0x179dc7=ai(_0x39af09['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36880f=this['timePeriodViews']['get'](0x0);_0x36880f&&_0x36880f['startDate']['getTime']()===_0x179dc7['getTime']()||(_0x36880f=new di(this['locale'],_0x179dc7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36880f)),_0x36880f['addRevision'](_0x39af09);}['_removeRevision'](_0x119ab3){const _0x268cc9=ai(_0x119ab3['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x268cc9)['removeRevision'](_0x119ab3);}['_getTimePeriodViewByStartDate'](_0x10fd40){return this['timePeriodViews']['find'](_0x3be5b9=>_0x3be5b9['startDate']['getTime']()===_0x10fd40['getTime']());}}class d extends _0x634022{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x1cb9b2(_0x55a24b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x120c05,_0x3c34e3){super(_0x3c34e3),this['sourceElement']=_0x120c05,this['model']['document']['createRoot']();const _0x24229b=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x24229b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4a4c5a,_0x5e93ca){const _0x431a23=new this(_0x4a4c5a,_0x5e93ca);return await _0x431a23['initPlugins'](),await _0x431a23['ui']['init'](_0x4a4c5a),await _0x431a23['data']['init'](_0x431a23['config']['get']('initialData')||''),_0x431a23['fire']('ready'),_0x431a23;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x425a55{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44a61b){function _0x51ceda(_0xcb304d){return _0xcb304d['map'](_0x8c10d8=>String['fromCharCode'](_0x8c10d8))['join']('');}super(_0x44a61b),this['result']='end',_0x44a61b[_0x51ceda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51ceda([0x76,0x69,0x65,0x77])][_0x51ceda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51ceda([0x61,0x75,0x74,0x6f]),_0x44a61b[_0x51ceda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51ceda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51ceda([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51ceda([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51ceda([0x6f,0x6b])});}}class k extends _0x425a55{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x19de7e){if(super(_0x19de7e),!this['editor']['config']['get']('revisionHistory'))throw new _0x26796e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3dab08=>this['_showRevisionViewer']({..._0x3dab08,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x562cef=>this['_closeRevisionViewer'](_0x562cef)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x516260=>this['_restoreRevision'](_0x516260)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x341c32){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x341c32;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x58704a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x58704a);}['getRevision'](_0xedaae4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xedaae4);}['getRevisions'](_0x4a294c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4a294c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb20bba=this['editor'],_0x32db46=_0x349ba6(_0xb20bba,p),_0x47789b=_0xb20bba['plugins']['get']('RevisionTracker'),_0x528f1b=_0xb20bba['plugins']['get']('Users')['users'];return _0x32db46['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x32db46['lazyRoots'],(_0x32db46['plugins']['push'](yt,m,R,class extends _0x425a55{static get['requires'](){return[m,'Users'];}['init'](){const _0x1d78c1=this['editor']['plugins']['get']('Users');for(const _0x74eeb3 of _0x528f1b)_0x74eeb3['isAnonymous']||_0x1d78c1['getUser'](_0x74eeb3['id'])||_0x1d78c1['addUser'](_0x74eeb3);const _0x7fdee7=_0x47789b['repository']['getRevisions']();let _0x1148ef=null;const _0x29bfb0=this['editor']['plugins']['get']('RevisionViewer');_0x29bfb0['adapter']=_0x47789b['adapter'],_0x29bfb0['bind']('isEnabled')['to'](_0x47789b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb20bba,'isReadOnly',_0x2b1c86=>!_0x2b1c86);for(const _0xd792cd of _0x7fdee7){const _0x3d77e4=null===_0xd792cd['creator'];if(_0x3d77e4&&_0xd792cd['toVersion']===_0xd792cd['fromVersion'])continue;const _0x40eb17=_0xd792cd['toJSON']();_0x29bfb0['addRevisionData'](_0x40eb17,(_0x117cd3,_0x2f8417,_0x4b6706)=>{if(_0x3d77e4){if(_0x1148ef)_0x1148ef['_update'](_0x117cd3,_0x2f8417);else{if(!_0x2f8417){const _0x35f074=_0x4b6706['toJSON']();_0x35f074['id']=_0x450571(),_0x47789b['saveRevision'](_0x35f074,_0x4b6706['toVersion'])['then'](_0xa7fad6=>{_0x1148ef=_0xa7fad6;});}}}else _0xd792cd['_update'](_0x117cd3,_0x2f8417);});}}},d),_0x32db46);}['_enhanceShowRevisionViewerCallback'](){const _0x14f881=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4bbb70=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2b01c=this['editor']['plugins']['get']('Autosave');await _0x2b01c['save']();}else await _0x4bbb70['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x323ca4=this['editor']['plugins']['get']('Dialog');_0x323ca4['isOpen']&&_0x323ca4['hide']();}const _0x1f9451=this['_getRevisionViewerEditorConfig']();return _0x14f881(_0x1f9451)['then'](_0x1459e0=>{return(this['_viewerEditor']=_0x1459e0,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'),_0x1459e0);})['catch'](_0x2cfe6c=>(console['error'](_0x2cfe6c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2496ba=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'](),_0x2496ba(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4a15bb=this['editor']['plugins']['get']('Annotations');_0x4a15bb['refreshVisibility'](),_0x4a15bb['refreshPositioning']();}})));}['_showRevisionViewer'](_0x380e83){const _0x385fa4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x456f46=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x866591=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x866591,_0x380e83)['then'](_0x690b55=>(_0x456f46['style']['display']='block',_0x385fa4['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x690b55));}['_closeRevisionViewer'](_0x175f7d){const _0x5525d7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5525d7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x175f7d['destroy']();}async['_restoreRevision'](_0x34b260){const _0x388694=this['editor'],_0x44ae18=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x46ac1a=_0x388694['plugins']['get']('RevisionTracker'),_0x282985=_0x388694['plugins']['get']('RevisionHistoryUtils'),_0x5de94a=_0x44ae18['repository']['getRevision'](_0x34b260);let _0x2876b0,_0x5127de,_0x218e6b;try{await _0x282985['loadRevisionData'](_0x5de94a,this['adapter']),_0x2876b0=_0x282985['getRevisionDocumentData'](_0x5de94a),_0x5127de=_0x282985['getRevisionRootsAttributes'](_0x5de94a);}catch(_0x367051){return void console['error'](_0x367051);}_0x388694['model']['change'](_0x57be7c=>{for(const _0x5b81e9 of Array['from'](_0x388694['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x57be7c['removeMarker'](_0x5b81e9);}),_0x44ae18['isReady']=!0x1,_0x388694['model']['enqueueChange'](_0x566019=>{_0x566019['setSelection'](null),_0x566019['removeSelectionAttribute'](_0x388694['model']['document']['selection']['getAttributeKeys']());const _0x43d1cf=Object['keys'](_0x2876b0);for(const _0x32b31f of _0x388694['model']['document']['roots'])'$graveyard'!=_0x32b31f['rootName']&&_0x32b31f['isAttached']()&&!_0x43d1cf['includes'](_0x32b31f['rootName'])&&_0x566019['detachRoot'](_0x32b31f);for(const _0x2dc6b5 of _0x43d1cf){let _0x5ebff5=_0x388694['model']['document']['getRoot'](_0x2dc6b5);_0x5ebff5&&_0x5ebff5['isAttached']()||(_0x5ebff5=_0x566019['addRoot'](_0x2dc6b5));const _0x3416b8=_0x5127de[_0x2dc6b5],_0x2740dd=Object['keys'](_0x3416b8),_0x251e5f=_0x2876b0[_0x2dc6b5];for(const _0x4e6b7a of _0x5ebff5['getAttributeKeys']())_0x2740dd['includes'](_0x4e6b7a)||_0x566019['removeAttribute'](_0x4e6b7a,_0x5ebff5);for(const _0x17c4a1 of _0x2740dd)_0x566019['setAttribute'](_0x17c4a1,_0x5127de[_0x2dc6b5][_0x17c4a1],_0x5ebff5);_0x566019['remove'](_0x566019['createRangeIn'](_0x5ebff5)),_0x566019['insert'](_0x388694['data']['parse'](_0x251e5f,_0x5ebff5),_0x5ebff5,0x0);}});const _0x1fafd3=g(_0x388694['locale'],'Restored');if(_0x5de94a['name'])_0x218e6b=-0x1==_0x5de94a['name']['indexOf'](_0x1fafd3)?_0x1fafd3+':\x20'+_0x5de94a['name']:_0x5de94a['name'];else _0x218e6b=_0x1fafd3+':\x20'+(_0x5de94a['createdAt']['toLocaleDateString'](_0x388694['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5de94a['createdAt']['toLocaleTimeString'](_0x388694['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x46ac1a['saveRevision']({'name':_0x218e6b}),_0x44ae18['isReady']=!0x0,_0x388694['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
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x3eec65){super(_0x3eec65),this['_revisionViewer']=_0x3eec65['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3f90d4=this['_revisionsRepository']['_revisions'],_0x4ea129=this['_createRevisionActions'](),_0x16cdfc=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3f90d4,_0x4ea129,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',(_0xd870d2,_0x44d246)=>{_0x44d246['revisionViews']['on']('add',(_0x2f578c,_0x8e2258)=>{_0x8e2258['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)),_0x16cdfc['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x383f83=this['_revisionsRepository']['getRevision'](0x0);if(_0x383f83){const _0x1ea01a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x383f83['id']);this['_revisionViewer']['compare'](_0x383f83,_0x1ea01a);}}['_handleRevisionSelected'](_0x1d3baf,_0x175477){const _0x8358da=this['_revisionsRepository']['getRevision'](_0x175477['id']),_0x4c6bcd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x8358da['id']);this['_revisionViewer']['compare'](_0x8358da,_0x4c6bcd);}['_handleRevisionSetName'](_0x551b3e,_0x5c3749){this['_revisionsRepository']['getRevision'](_0x5c3749['id'])['setName'](_0x5c3749['name']);}['_handleDiffChange'](_0x1f7d55,_0x13690a,_0x4b91dd){const _0x328831=this['_revisionsRepository']['getRevisionsInDiff'](_0x4b91dd);_0x328831['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x328831),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x328831[0x0]));}['_createRevisionActions'](){const _0x46cbef=this['editor'],_0x270739=d['availableRevisionActions'],_0x32b374=_0x46cbef['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x32b374['length'])return _0x32b374['map'](_0x27ab7a=>{const _0x38ca34='string'==typeof _0x27ab7a?Object['assign']({},_0x270739[_0x27ab7a]):_0x27ab7a;return _0x38ca34['action']=_0x38ca34['action']['bind'](this,_0x46cbef),_0x38ca34['isVisible']&&(_0x38ca34['isVisible']=_0x38ca34['isVisible']['bind'](this,_0x46cbef)),_0x38ca34;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x33d090},_0x146499)=>{const _0x39b66d=_0x33d090['get'](m),_0x444f1b=_0x39b66d['repository'];let _0x23ed91=_0x39b66d['diff']['newRevisionId'],_0xac24c5=_0x146499['id'];_0x444f1b['getIndex'](_0x23ed91)>_0x444f1b['getIndex'](_0xac24c5)&&([_0x23ed91,_0xac24c5]=[_0xac24c5,_0x23ed91]),_0x39b66d['compare'](_0x23ed91,_0xac24c5);},'isVisible':({plugins:_0x348549},_0x2d932c)=>{const _0x4813e3=_0x348549['get'](m);return!(_0x4813e3['repository']['getRevisionsInDiff'](_0x4813e3['diff'])['length']>0x2)&&!_0x2d932c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2836b4,{id:_0x142ddd})=>{_0x2836b4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x142ddd);},'isVisible':({plugins:_0x439ffe},_0x4dc618)=>!!_0x439ffe['get'](m)['repository']['getLaterVisibleRevision'](_0x4dc618['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x29e718},{id:_0xa58e56,revisionNameView:_0x5f1294})=>{const _0x2d2c44=_0x29e718['get'](m),_0x542ec0=_0x2d2c44['repository']['getEarlierVisibleRevision'](_0xa58e56);_0x2d2c44['compare'](_0xa58e56,_0x542ec0),_0x5f1294['focus'](),_0x5f1294['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1cdc53,_0x21e6ae){super(_0x1cdc53),this['_view']=_0x21e6ae,this['_toolbarConfig']=et(_0x1cdc53['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x29d8b8){const _0x333aab=this['editor'],_0x3eb3ce=this['view'],_0x3bf5f2=_0x333aab['editing']['view'],_0xb810b1=_0x3eb3ce['editable'],_0x30924b=_0x3bf5f2['document']['getRoot']();_0xb810b1['name']=_0x30924b['rootName'],_0x3eb3ce['render']();const _0x308fff=_0xb810b1['element'];this['setEditableElement'](_0xb810b1['name'],_0x308fff),_0x3eb3ce['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3bf5f2['attachDomRoot'](_0x308fff),this['_elementReplacer']['replace'](_0x29d8b8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3d8ef4=this['view'],_0x1181c0=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1181c0['detachDomRoot'](_0x3d8ef4['editable']['name']),_0x3d8ef4['destroy']();}['_initToolbar'](){const _0x492375=this['view'];_0x492375['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x492375['stickyPanel']['limiterElement']=_0x492375['element'],_0x492375['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x340d23})=>_0x340d23),_0x492375['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x492375['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4a8583,_0x4f2f8e,_0x2dfbf9={}){super(_0x4a8583),this['stickyPanel']=new ht(_0x4a8583),this['toolbar']=new dt(_0x4a8583,{'shouldGroupWhenFull':_0x2dfbf9['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x4a8583,_0x4f2f8e);}['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
|
+
_0x45c110(_0x5f86d8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5026c2,_0x2e8e36){super(_0x2e8e36),this['sourceElement']=_0x5026c2,this['model']['document']['createRoot']();const _0x3160d5=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3160d5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4656c2,_0x1f6b5d){const _0x48a2a5=new this(_0x4656c2,_0x1f6b5d);return await _0x48a2a5['initPlugins'](),await _0x48a2a5['ui']['init'](_0x4656c2),await _0x48a2a5['data']['init'](_0x48a2a5['config']['get']('initialData')||''),_0x48a2a5['fire']('ready'),_0x48a2a5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x634022{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b0ab3){function _0x3383a9(_0x1e6427){return _0x1e6427['map'](_0x478046=>String['fromCharCode'](_0x478046))['join']('');}super(_0x1b0ab3),this['result']='end',_0x1b0ab3[_0x3383a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3383a9([0x76,0x69,0x65,0x77])][_0x3383a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3383a9([0x61,0x75,0x74,0x6f]),_0x1b0ab3[_0x3383a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3383a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3383a9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3383a9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3383a9([0x6f,0x6b])});}}class k extends _0x634022{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2a89a2){if(super(_0x2a89a2),!this['editor']['config']['get']('revisionHistory'))throw new _0x5f2b24('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x57660e=>this['_showRevisionViewer']({..._0x57660e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x6d21b5=>this['_closeRevisionViewer'](_0x6d21b5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x300cd0=>this['_restoreRevision'](_0x300cd0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x49be97){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x49be97;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x426af1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x426af1);}['getRevision'](_0x2460e5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2460e5);}['getRevisions'](_0x391ffd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x391ffd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x57a79f=this['editor'],_0x1a80ce=_0x5e76d5(_0x57a79f,p),_0x56454e=_0x57a79f['plugins']['get']('RevisionTracker'),_0x3802f5=_0x57a79f['plugins']['get']('Users')['users'];return _0x1a80ce['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1a80ce['lazyRoots'],(_0x1a80ce['plugins']['push'](_t,m,R,class extends _0x634022{static get['requires'](){return[m,'Users'];}['init'](){const _0x21ad9c=this['editor']['plugins']['get']('Users');for(const _0x511721 of _0x3802f5)_0x511721['isAnonymous']||_0x21ad9c['getUser'](_0x511721['id'])||_0x21ad9c['addUser'](_0x511721);const _0x138a83=_0x56454e['repository']['getRevisions']();let _0xabc41d=null;const _0x2944b3=this['editor']['plugins']['get']('RevisionViewer');_0x2944b3['adapter']=_0x56454e['adapter'],_0x2944b3['bind']('isEnabled')['to'](_0x56454e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x57a79f,'isReadOnly',_0x46b538=>!_0x46b538);for(const _0x57aca7 of _0x138a83){const _0x1fefbc=null===_0x57aca7['creator'];if(_0x1fefbc&&_0x57aca7['toVersion']===_0x57aca7['fromVersion'])continue;const _0x150737=_0x57aca7['toJSON']();_0x2944b3['addRevisionData'](_0x150737,(_0x1724c6,_0x412aad,_0x223170)=>{if(_0x1fefbc){if(_0xabc41d)_0xabc41d['_update'](_0x1724c6,_0x412aad);else{if(!_0x412aad){const _0x2cd559=_0x223170['toJSON']();_0x2cd559['id']=_0x3819d0(),_0x56454e['saveRevision'](_0x2cd559,_0x223170['toVersion'])['then'](_0xf5246b=>{_0xabc41d=_0xf5246b;});}}}else _0x57aca7['_update'](_0x1724c6,_0x412aad);});}}},d),_0x1a80ce);}['_enhanceShowRevisionViewerCallback'](){const _0x56c1f7=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4d352d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5abf69=this['editor']['plugins']['get']('Autosave');await _0x5abf69['save']();}else await _0x4d352d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x543b3f=this['editor']['plugins']['get']('Dialog');_0x543b3f['isOpen']&&_0x543b3f['hide']();}const _0x35e8c0=this['_getRevisionViewerEditorConfig']();return _0x56c1f7(_0x35e8c0)['then'](_0x3d9f42=>{return(this['_viewerEditor']=_0x3d9f42,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'),_0x3d9f42);})['catch'](_0x4b4520=>(console['error'](_0x4b4520),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4153ea=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'](),_0x4153ea(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x429544=this['editor']['plugins']['get']('Annotations');_0x429544['refreshVisibility'](),_0x429544['refreshPositioning']();}})));}['_showRevisionViewer'](_0x518748){const _0x436bfc=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x92256d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4f1494=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4f1494,_0x518748)['then'](_0x209aca=>(_0x92256d['style']['display']='block',_0x436bfc['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x209aca));}['_closeRevisionViewer'](_0x74d522){const _0x16f26c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x16f26c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x74d522['destroy']();}async['_restoreRevision'](_0x4ba2c4){const _0x528d2f=this['editor'],_0x53a42c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x49fb02=_0x528d2f['plugins']['get']('RevisionTracker'),_0x125b20=_0x528d2f['plugins']['get']('RevisionHistoryUtils'),_0x27a2d1=_0x53a42c['repository']['getRevision'](_0x4ba2c4);let _0x1e05e0,_0x49a679,_0x4abf49;try{await _0x125b20['loadRevisionData'](_0x27a2d1,this['adapter']),_0x1e05e0=_0x125b20['getRevisionDocumentData'](_0x27a2d1),_0x49a679=_0x125b20['getRevisionRootsAttributes'](_0x27a2d1);}catch(_0x42f1d0){return void console['error'](_0x42f1d0);}_0x528d2f['model']['change'](_0x52acd9=>{for(const _0x516267 of Array['from'](_0x528d2f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x52acd9['removeMarker'](_0x516267);}),_0x53a42c['isReady']=!0x1,_0x528d2f['model']['enqueueChange'](_0x4cca12=>{_0x4cca12['setSelection'](null),_0x4cca12['removeSelectionAttribute'](_0x528d2f['model']['document']['selection']['getAttributeKeys']());const _0xd2625d=Object['keys'](_0x1e05e0);for(const _0x13a9d0 of _0x528d2f['model']['document']['roots'])'$graveyard'!=_0x13a9d0['rootName']&&_0x13a9d0['isAttached']()&&!_0xd2625d['includes'](_0x13a9d0['rootName'])&&_0x4cca12['detachRoot'](_0x13a9d0);for(const _0x258d60 of _0xd2625d){let _0x209f13=_0x528d2f['model']['document']['getRoot'](_0x258d60);_0x209f13&&_0x209f13['isAttached']()||(_0x209f13=_0x4cca12['addRoot'](_0x258d60));const _0xf366df=_0x49a679[_0x258d60],_0x12baad=Object['keys'](_0xf366df),_0x2f30f8=_0x1e05e0[_0x258d60];for(const _0x2e4ce2 of _0x209f13['getAttributeKeys']())_0x12baad['includes'](_0x2e4ce2)||_0x4cca12['removeAttribute'](_0x2e4ce2,_0x209f13);for(const _0x3ec9b0 of _0x12baad)_0x4cca12['setAttribute'](_0x3ec9b0,_0x49a679[_0x258d60][_0x3ec9b0],_0x209f13);_0x4cca12['remove'](_0x4cca12['createRangeIn'](_0x209f13)),_0x4cca12['insert'](_0x528d2f['data']['parse'](_0x2f30f8,_0x209f13),_0x209f13,0x0);}});const _0xe35821=g(_0x528d2f['locale'],'Restored');if(_0x27a2d1['name'])_0x4abf49=-0x1==_0x27a2d1['name']['indexOf'](_0xe35821)?_0xe35821+':\x20'+_0x27a2d1['name']:_0x27a2d1['name'];else _0x4abf49=_0xe35821+':\x20'+(_0x27a2d1['createdAt']['toLocaleDateString'](_0x528d2f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x27a2d1['createdAt']['toLocaleTimeString'](_0x528d2f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x49fb02['saveRevision']({'name':_0x4abf49}),_0x53a42c['isReady']=!0x0,_0x528d2f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|