@ckeditor/ckeditor5-revision-history 47.3.0-alpha.4 → 47.3.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/package.json +12 -12
- package/src/revisionsrepository.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/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- 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/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x402a4e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x29a4f8){super(),this['id']=_0x29a4f8['id']||_0xc9fc17(),this['creator']=_0x29a4f8['creator']||null,this['authors']=_0x29a4f8['authors']||[],this['diffData']=_0x29a4f8['diffData']||null,this['toVersion']=_0x29a4f8['toVersion']||0x0,this['fromVersion']=_0x29a4f8['fromVersion']||0x0,this['set']('name',_0x29a4f8['name']||''),this['set']('createdAt',_0x29a4f8['createdAt']||new Date()),this['set']('attributes',_0x29a4f8['attributes']||{});}['setName'](_0x3a80e1){this['_update']({'name':_0x3a80e1});}['setAttribute'](_0x364407,_0x3f99b1){const _0x445d74=_0x3d9550(this['attributes']);_0x232104(_0x445d74,_0x364407,_0x3f99b1),this['_update']({'attributes':_0x445d74});}['removeAttribute'](_0x2df0e6){const _0x2cd274=_0x3d9550(this['attributes']);_0x1cb12e(_0x2cd274,_0x2df0e6),this['_update']({'attributes':_0x2cd274});}['_update'](_0x12faaf,_0x544fd6=!0x1){let _0x41b7b1=!0x1;const _0xb7cd60={'id':this['id']},_0x190c76=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4c8c65 of _0x190c76){const _0x34551b=_0x12faaf[_0x4c8c65];void 0x0!==_0x34551b&&_0x34551b!==this[_0x4c8c65]&&(this[_0x4c8c65]=_0x34551b,_0xb7cd60[_0x4c8c65]=_0x34551b,_0x41b7b1=!0x0);}_0x41b7b1&&(_0xb7cd60['authors']&&(_0xb7cd60['authorsIds']=_0xb7cd60['authors']['map'](_0x555299=>_0x555299['id']),delete _0xb7cd60['authors']),this['fire']('_update',_0xb7cd60,_0x544fd6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x53e27c=>_0x53e27c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1f6d35{['_revisions'];static get['requires'](){return[_0x3acc3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5eb49f){super(_0x5eb49f),this['_revisions']=new _0x56fe88();}['afterInit'](){!async function(_0x355963){const _0x2b50c4=_0x4044d3([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x28ae8d=0xeb829,_0x12ecab=0x359e09b0,_0x19571a=0x35997320^_0x12ecab,_0x1a47d0=window[_0x4044d3([0x44,0x61,0x74,0x65])][_0x4044d3([0x6e,0x6f,0x77])](),_0x5c2be4=_0x355963[_0x4044d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x538417=new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a310=>{_0x5c2be4[_0x4044d3([0x6f,0x6e,0x63,0x65])](_0x4044d3([0x72,0x65,0x61,0x64,0x79]),_0x21a310);}),_0x58f364={[_0x4044d3([0x6b,0x74,0x79])]:_0x4044d3([0x45,0x43]),[_0x4044d3([0x75,0x73,0x65])]:_0x4044d3([0x73,0x69,0x67]),[_0x4044d3([0x63,0x72,0x76])]:_0x4044d3([0x50,0x2d,0x32,0x35,0x36]),[_0x4044d3([0x78])]:_0x4044d3([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]),[_0x4044d3([0x79])]:_0x4044d3([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]),[_0x4044d3([0x61,0x6c,0x67])]:_0x4044d3([0x45,0x53,0x32,0x35,0x36])},_0x47361f=_0x5c2be4[_0x4044d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4044d3([0x67,0x65,0x74])](_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e778b(){let _0x102ff6,_0x71f061=null,_0x37550e=null;try{if(_0x47361f==_0x4044d3([0x47,0x50,0x4c]))return _0x4044d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x102ff6=_0x327ebe(),!_0x102ff6)return _0x4044d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x102ff6[_0x4044d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37550e=_0x317b5f(_0x102ff6[_0x4044d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x102ff6[_0x4044d3([0x6a,0x74,0x69])])),await _0x8602a2()?_0x217f62()?_0x57ef2f()?_0x4044d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a0e89()?(_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4044d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x71f061=_0x42e577(_0x4044d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4044d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x71f061=_0x42e577(_0x4044d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1caf4b()):_0x4044d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4044d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4044d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4044d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57ef2f(){const _0x1da1ab=[_0x4044d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4044d3([0x74,0x72,0x69,0x61,0x6c])][_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a47d0/0x3e8:0xe10*_0x19571a;return _0x102ff6[_0x4044d3([0x65,0x78,0x70])]<_0x1da1ab;}function _0x217f62(){const _0x37da6c=_0x102ff6[_0x4044d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37da6c)return!0x1;if(_0x37da6c[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x2a])))return!0x0;if(_0x37da6c[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x52,0x48])))return!0x0;if(_0x37da6c[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x52,0x52,0x48]))){if(_0x37b1e6())return!0x0;if(_0x5433e9()||_0x123d4a())return!0x0;}return!0x1;}function _0x1a0e89(){const _0x4236f4=_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4236f4||0x0==_0x4236f4[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14a548}=new URL(window[_0x4044d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4236f4[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a548))return!0x0;const _0x5301fc=_0x14a548[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e]));return _0x4236f4[_0x4044d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x417404=>_0x417404[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x2a])))[_0x4044d3([0x6d,0x61,0x70])](_0x27d6f3=>_0x27d6f3[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e])))[_0x4044d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b0097=>_0x5b0097[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5301fc[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4044d3([0x6d,0x61,0x70])](_0x38c431=>Array(_0x5301fc[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38c431[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4044d3([0x66,0x69,0x6c,0x6c])](_0x38c431[0x0]===_0x4044d3([0x2a])?_0x4044d3([0x2a]):'')[_0x4044d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38c431))[_0x4044d3([0x73,0x6f,0x6d,0x65])](_0x2b0749=>_0x5301fc[_0x4044d3([0x65,0x76,0x65,0x72,0x79])]((_0x2360fc,_0x294c07)=>_0x2b0749[_0x294c07]===_0x2360fc||_0x2b0749[_0x294c07]===_0x4044d3([0x2a])));}function _0x1caf4b(){return _0x71f061&&_0x37550e?new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dbd14,_0x10e988)=>{_0x71f061[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x2dbd14,_0x10e988),_0x37550e[_0x4044d3([0x74,0x68,0x65,0x6e])](_0xe28e67=>{_0xe28e67!=_0x4044d3([0x56,0x61,0x6c,0x69,0x64])&&_0x2dbd14(_0xe28e67);},_0x10e988);}):_0x71f061||_0x37550e||_0x4044d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x317b5f(_0x2d69ed,_0x2af3a3){return new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8c99=>{if(_0x38aa5c())return _0x3b8c99(_0x4044d3([0x56,0x61,0x6c,0x69,0x64]));_0x1a3311(),_0x5c2be4[_0x4044d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4044d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5243a3=!0x1;const _0x3fdbbb=_0xc9fc17();function _0x3d3c4d(_0x591f08){return!!_0x591f08&&(typeof _0x591f08===_0x4044d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x591f08===_0x4044d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x591f08[_0x4044d3([0x74,0x68,0x65,0x6e])]===_0x4044d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x591f08[_0x4044d3([0x63,0x61,0x74,0x63,0x68])]===_0x4044d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1da239(_0x22daa4){_0x47ae24(_0x22daa4)[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x1b0c1b=>{if(!_0x1b0c1b||_0x1b0c1b[_0x4044d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4044d3([0x6f,0x6b]))return _0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4cf689(_0xbc0ccf(_0x3fdbbb+_0x2af3a3))!=_0x1b0c1b[_0x4044d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4044d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4044d3([0x74,0x68,0x65,0x6e])](_0xfdbcec=>(_0x21934d(),_0xfdbcec),()=>{const _0x20f618=_0x59d162();return null==_0x20f618?(_0x21934d(),_0x4044d3([0x56,0x61,0x6c,0x69,0x64])):_0x4044d3(_0x1a47d0-_0x20f618>(0x11928db0^_0x12ecab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x3b8c99)[_0x4044d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b8c99(_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x538ad5=0x35a8e730^_0x12ecab;function _0x21934d(){const _0x4e896b=_0x4044d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4cf689(_0xbc0ccf(_0x2d69ed)),_0x2a0315=_0x3b5dec(_0x4cf689(window[_0x4044d3([0x4d,0x61,0x74,0x68])][_0x4044d3([0x63,0x65,0x69,0x6c])](_0x1a47d0/_0x538ad5)));window[_0x4044d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4044d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e896b,_0x2a0315);}function _0x59d162(){const _0x253199=_0x4044d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4cf689(_0xbc0ccf(_0x2d69ed)),_0x353072=window[_0x4044d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4044d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x253199);return _0x353072?window[_0x4044d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b5dec(_0x353072),0x10)*_0x538ad5:null;}function _0x47ae24(_0x35dea9){return new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20e7c9,_0x50e8a1)=>{_0x35dea9[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x20e7c9,_0x50e8a1),window[_0x4044d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50e8a1,0x359fdd70^_0x12ecab);});}}_0x5c2be4[_0x4044d3([0x6f,0x6e])](_0x4044d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bf0ee,_0x3b6276)=>{if(_0x3b6276[0x0]!=_0x2d69ed)return _0x3b8c99(_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b6276[0x1]={..._0x3b6276[0x1],[_0x4044d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fdbbb};},{[_0x4044d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4044d3([0x68,0x69,0x67,0x68])}),_0x5c2be4[_0x4044d3([0x6f,0x6e])](_0x4044d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x119f2b=>{_0x3d3c4d(_0x119f2b[_0x4044d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5243a3=!0x0,_0x1da239(_0x119f2b[_0x4044d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4044d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4044d3([0x6c,0x6f,0x77])}),_0x538417[_0x4044d3([0x74,0x68,0x65,0x6e])](()=>{_0x5243a3||_0x3b8c99(_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38aa5c(){return _0x5c2be4[_0x4044d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4044d3([0x76,0x69,0x65,0x77])][_0x4044d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4044d3([0x61,0x75,0x74,0x6f]);}function _0x1a3311(){_0x5c2be4[_0x4044d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4044d3([0x76,0x69,0x65,0x77])][_0x4044d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4044d3([0x61,0x75,0x74,0x6f]);}}function _0x42e577(_0x266e45){const _0x5edb3f=[new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13eab5=>setTimeout(_0x13eab5,0x3597377c^_0x12ecab)),_0x538417[_0x4044d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3effd8=>{const _0xa5c96=0x359e09b7^_0x12ecab,_0x1fb12e=_0x355963[_0x4044d3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3fc127(){_0x1fb12e[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xa5c96&&_0x3effd8();}_0x3fc127(),_0x1fb12e[_0x4044d3([0x6f,0x6e])](_0x4044d3([0x61,0x64,0x64]),_0x3fc127);})),new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6def2a=>{function _0x1230a4(){for(const _0x4695c2 in window)if(window[_0x4044d3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4044d3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4695c2))&&window[_0x4695c2]==_0x28ae8d)return _0x6def2a();_0x5c2be4[_0x4044d3([0x73,0x74,0x61,0x74,0x65])]!=_0x4044d3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4044d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1230a4,0x359e1a38^_0x12ecab);}_0x24831a(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1230a4();})];return window[_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4044d3([0x72,0x61,0x63,0x65])](_0x5edb3f)[_0x4044d3([0x74,0x68,0x65,0x6e])](()=>_0x266e45);}async function _0x154bbf(){if(await _0x538417,_0x24831a(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x10a4c4=_0x355963[_0x4044d3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2b7dbf=_0x355963[_0x4044d3([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])](_0x10a4c4[_0x4044d3([0x69,0x64])]),_0xa76e4e=_0x1d99c2(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa76e4e[_0x4044d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x10a4c4['id'],_0x2b7dbf?_0x2b7dbf['id']:null,!0x0),_0xa76e4e[_0x4044d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa76e4e[_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa76e4e[_0x4044d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xe32386,void(_0xa76e4e[_0x4044d3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xe32386);}if(_0x24831a(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x30a771=_0x1d99c2(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x30a771[_0x4044d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x30a771[_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x30a771[_0x4044d3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xe32386,_0x30a771[_0x4044d3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xe32386;}_0x5c2be4[_0x4044d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4044d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe32386,_0x5c2be4[_0x4044d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4044d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe32386,_0x5c2be4[_0x4044d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4044d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37b1e6(){return _0x24831a(_0x4044d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1d99c2(_0x4044d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4044d3([0x73,0x74,0x61,0x74,0x65])]==_0x4044d3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5433e9(){return _0x24831a(_0x4044d3([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 _0x123d4a(){return _0x24831a(_0x4044d3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd93067(_0x34146a){const _0x3da87f=_0x2a5920();_0x5c2be4[_0x3da87f]=_0x4044d3([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])+_0x34146a,_0x34146a[_0x4044d3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4044d3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2a5920()]=_0x28ae8d),_0x34146a!=_0x4044d3([0x56,0x61,0x6c,0x69,0x64])&&_0x154bbf();}function _0x2a5920(){const _0x43a8f5=window[_0x4044d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4044d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4044d3([0x6e,0x6f,0x77])]())[_0x4044d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4044d3([0x2e]),'');let _0x24db05=_0x4044d3([0x76]);for(let _0x2839ed=0x0;_0x2839ed<_0x43a8f5[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2839ed+=0x2){let _0x51e33c=window[_0x4044d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43a8f5[_0x4044d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2839ed,_0x2839ed+0x2));_0x51e33c>=_0x2b50c4[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51e33c-=_0x2b50c4[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24db05+=_0x2b50c4[_0x51e33c];}return _0x24db05;}function _0x327ebe(){const _0x3c8711=_0x47361f[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e]));if(0x3!=_0x3c8711[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c3cbb(_0x3c8711[0x1]);function _0x4c3cbb(_0x4e7589){const _0x5a1839=_0x540d09(_0x4e7589);return _0x5a1839&&_0xa9f6cc()?_0x5a1839:null;function _0xa9f6cc(){const _0x583098=_0x5a1839[_0x4044d3([0x6a,0x74,0x69])],_0x39ccb6=window[_0x4044d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x583098[_0x4044d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x583098[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x272290={..._0x5a1839,[_0x4044d3([0x6a,0x74,0x69])]:_0x583098[_0x4044d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x583098[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x272290[_0x4044d3([0x76,0x63])],_0xbc0ccf(_0x272290)==_0x39ccb6;}}}async function _0x8602a2(){let _0x1b068f=!0x0;try{const _0x4d8fa5=_0x47361f[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e])),[_0x2b04df,_0x1e08df,_0x429f7c]=_0x4d8fa5;return _0xe403e3(_0x2b04df),await _0x2e1a1b(_0x2b04df,_0x1e08df,_0x429f7c),_0x1b068f;}catch{return!0x1;}function _0xe403e3(_0x377ad0){const _0x1c87b2=_0x540d09(_0x377ad0);_0x1c87b2&&_0x1c87b2[_0x4044d3([0x61,0x6c,0x67])]==_0x4044d3([0x45,0x53,0x32,0x35,0x36])||(_0x1b068f=!0x1);}async function _0x2e1a1b(_0x36c347,_0x3579bd,_0x48352e){const _0x4cd739=window[_0x4044d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4044d3([0x66,0x72,0x6f,0x6d])](_0x4a40bf(_0x48352e),_0x45a646=>_0x45a646[_0x4044d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x187a58=new window[(_0x4044d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4044d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36c347+_0x4044d3([0x2e])+_0x3579bd),_0x1d9fa2=window[_0x4044d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4044d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d9fa2)return;const _0x4fe553=await _0x1d9fa2[_0x4044d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4044d3([0x6a,0x77,0x6b]),_0x58f364,{[_0x4044d3([0x6e,0x61,0x6d,0x65])]:_0x4044d3([0x45,0x43,0x44,0x53,0x41]),[_0x4044d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4044d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4044d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d9fa2[_0x4044d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4044d3([0x6e,0x61,0x6d,0x65])]:_0x4044d3([0x45,0x43,0x44,0x53,0x41]),[_0x4044d3([0x68,0x61,0x73,0x68])]:{[_0x4044d3([0x6e,0x61,0x6d,0x65])]:_0x4044d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fe553,_0x4cd739,_0x187a58)||(_0x1b068f=!0x1);}}function _0x540d09(_0x8dd2a2){return _0x8dd2a2[_0x4044d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4044d3([0x65,0x79]))?JSON[_0x4044d3([0x70,0x61,0x72,0x73,0x65])](_0x4a40bf(_0x8dd2a2)):null;}function _0x4a40bf(_0x16c4b7){return window[_0x4044d3([0x61,0x74,0x6f,0x62])](_0x16c4b7[_0x4044d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4044d3([0x2b]))[_0x4044d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4044d3([0x2f])));}function _0xbc0ccf(_0x5b0615){let _0x556f91=0x1505;function _0x4deedc(_0x5b1e71){for(let _0x3c9ca7=0x0;_0x3c9ca7<_0x5b1e71[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c9ca7++){const _0x5700b7=_0x5b1e71[_0x4044d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c9ca7);_0x556f91=(_0x556f91<<0x5)+_0x556f91+_0x5700b7,_0x556f91&=_0x556f91;}}function _0x1420ad(_0x3b01f6){Array[_0x4044d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b01f6)?_0x3b01f6[_0x4044d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1420ad):_0x3b01f6&&typeof _0x3b01f6==_0x4044d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4044d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b01f6)[_0x4044d3([0x73,0x6f,0x72,0x74])]()[_0x4044d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2650ce,_0x5981d5])=>{_0x4deedc(_0x2650ce),_0x1420ad(_0x5981d5);}):_0x4deedc(window[_0x4044d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b01f6));}return _0x1420ad(_0x5b0615),_0x556f91>>>0x0;}function _0x4cf689(_0x47e3a8){return _0x47e3a8[_0x4044d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4044d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4044d3([0x30]));}function _0x3b5dec(_0x25d50f){return _0x25d50f[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4044d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4044d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x24831a(_0x4dd31a){return _0x5c2be4[_0x4044d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4044d3([0x68,0x61,0x73])](_0x4dd31a);}function _0x1d99c2(_0x3d62aa){return _0x5c2be4[_0x4044d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4044d3([0x67,0x65,0x74])](_0x3d62aa);}function _0xe32386(){}function _0x4044d3(_0x572903){return _0x572903['map'](_0xfd896c=>String['fromCharCode'](_0xfd896c))['join']('');}_0xd93067(await _0x5e778b());}(this);}['createRevision'](_0x126c3c){const _0x5648e3=this['editor']['plugins']['get']('Users');return new I({'id':_0x126c3c['id'],'name':_0x126c3c['name'],'creator':_0x126c3c['creatorId']?_0x5648e3['getUser'](_0x126c3c['creatorId']):null,'diffData':_0x126c3c['diffData']||_0x126c3c['data'],'authors':_0x126c3c['authorsIds']['map'](_0x504698=>_0x5648e3['getUser'](_0x504698)),'createdAt':new Date(_0x126c3c['createdAt']),'attributes':_0x126c3c['attributes'],'fromVersion':_0x126c3c['fromVersion'],'toVersion':_0x126c3c['toVersion']});}['addRevision'](_0x548d6e,_0x38caf4=0x0){this['_revisions']['add'](_0x548d6e,_0x38caf4);}['getRevision'](_0x96d65c){return this['_revisions']['get'](_0x96d65c);}['getRevisions'](_0x385201={'toJSON':!0x1}){const _0x4b8e44=Array['from'](this['_revisions']);return _0x4b8e44['reverse'](),_0x385201['toJSON']?_0x4b8e44['map'](_0x1227df=>_0x1227df['toJSON']()):_0x4b8e44;}['getIndex'](_0x19577b){return this['_revisions']['getIndex'](_0x19577b);}['getEarlierVisibleRevision'](_0x2bd557){const [,_0x60cb4d]=this['getRevisionsIterator'](_0x2bd557,{'direction':'earlier'});return _0x60cb4d;}['getLaterVisibleRevision'](_0x11dac6){const [,_0x4a76ce]=this['getRevisionsIterator'](_0x11dac6,{'direction':'later'});return _0x4a76ce;}['getRevisionsInDiff'](_0x1a7452){const _0x37020e=[];for(const _0x38f623 of this['getRevisionsIterator'](_0x1a7452['newRevisionId']))if(_0x37020e['push'](_0x38f623),_0x38f623['id']===_0x1a7452['oldRevisionId'])break;return _0x37020e;}*['getRevisionsIterator'](_0x50fe2c,{direction:_0x2b8896='earlier',filter:_0x2b1d3e=()=>!0x0}={}){const _0x31c1ec='earlier'===_0x2b8896?0x1:-0x1;let _0x1dc2e4=this['_revisions']['get'](_0x50fe2c),_0x5df296=this['getIndex'](_0x1dc2e4);for(yield _0x1dc2e4;_0x1dc2e4;){if(_0x5df296+=_0x31c1ec,_0x1dc2e4=this['getRevision'](_0x5df296),!_0x1dc2e4)return;_0x2b1d3e(_0x1dc2e4)&&(yield _0x1dc2e4);}}}class $ extends _0x1f6d35{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5cd719,'c'],[_0x2a6ed1,'a'],[_0x28b4e4,'e'],[_0x5abc1f,'r'],[_0x22d6d2,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5cd719],['a',_0x2a6ed1],['e',_0x28b4e4],['r',_0x5abc1f],['u',_0x22d6d2]]);async['loadRevisionData'](_0x54be57,_0x18d205){if(_0x54be57['diffData']||!_0x18d205)return;const _0x2c116c=this['editor']['config']['get']('collaboration.channelId'),_0x38dcbc=await _0x18d205['getRevision']({'channelId':_0x2c116c,'revisionId':_0x54be57['id']});_0x54be57['diffData']=_0x38dcbc['diffData'];}['getRevisionDocumentData'](_0xa5b235){const _0x1628b4={};for(const _0x481026 in _0xa5b235['diffData']){if(_0xa5b235['diffData'][_0x481026]['attachChange']&&!_0xa5b235['diffData'][_0x481026]['attachChange']['isAttached'])continue;const _0x262103=this['_removeRevisionMarkers'](JSON['parse'](_0xa5b235['diffData'][_0x481026]['insertions'])),_0x4b6db3=this['editor']['editing']['view']['document'],_0x52ee8b=new _0x1e5014(_0x4b6db3,_0x262103['map'](_0x300c04=>this['_getViewFromDiffObj'](_0x300c04,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1628b4[_0x481026]=this['editor']['data']['processor']['toData'](_0x52ee8b),this['editor']['data']['processor']['useFillerType']('default');}return _0x1628b4;}['getRevisionRootsAttributes'](_0x1ce8f0){const _0x3e2584={};for(const _0x27ac46 in _0x1ce8f0['diffData'])_0x1ce8f0['diffData'][_0x27ac46]['attachChange']&&!_0x1ce8f0['diffData'][_0x27ac46]['attachChange']['isAttached']||(_0x3e2584[_0x27ac46]=_0x1ce8f0['diffData'][_0x27ac46]['attributesAfter']||{});return _0x3e2584;}['_getTypeCharForViewElement'](_0x4bdbd7){return this['_viewClassToTypeChar']['get'](_0x4bdbd7['constructor']);}['_getViewFromDiffObj'](_0x7d8716,_0x3a8909){const _0x773754=this['editor']['editing']['view']['document'];if('string'==typeof _0x7d8716)return new _0x533eb7(_0x773754,_0x7d8716);{let _0x423d56,_0x5a6610;_0x5a6610='u'==_0x7d8716['type']||'r'==_0x7d8716['type']?[]:_0x7d8716['children']['map'](_0x230b3f=>this['_getViewFromDiffObj'](_0x230b3f,_0x3a8909));const _0xe068e5=this['_typeCharToViewClass']['get'](_0x7d8716['type'])||_0x28d30f,_0x3f8c91=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x423d56=new _0xe068e5(_0x773754,_0x7d8716['name'],_0x7d8716['attributes'],_0x5a6610),'u'==_0x7d8716['type']&&_0x7d8716['children'][0x0]){const _0x2226fb=_0x7d8716['children'][0x0];if(_0x423d56['render']=function(_0x2fc809){const _0x54e93c=_0x2fc809['createElement']('div');return _0x54e93c['innerHTML']=_0x2226fb,_0x54e93c['childNodes'][0x0];},_0x3a8909){const _0x3a3572=new _0x1e5014(_0x773754);_0x3a3572['_appendChild'](_0x423d56);const _0x253dc3=Array['from'](_0x3f8c91['viewChildrenToDom'](_0x3a3572,{'bind':!0x1})),_0x5050b9=_0x3f8c91['domDocument']['createElement']('div');_0x5050b9['append'](..._0x253dc3),_0x423d56=Array['from'](_0x3f8c91['domChildrenToView'](_0x5050b9))[0x0];}}else{if('r'==_0x7d8716['type']&&_0x7d8716['children'][0x0]){const _0x21354f=_0x7d8716['children'][0x0];if(_0x423d56['render']=function(_0x2f82cf){_0x2f82cf['innerHTML']=_0x21354f;},_0x3a8909){const _0x11d40d=new _0x1e5014(_0x773754);_0x11d40d['_appendChild'](_0x423d56);const _0x7d5b5e=Array['from'](_0x3f8c91['viewChildrenToDom'](_0x11d40d,{'bind':!0x1})),_0x52eabb=_0x3f8c91['domDocument']['createElement']('div');_0x52eabb['append'](..._0x7d5b5e);const _0x34c8d8=Array['from'](_0x3f8c91['domChildrenToView'](_0x52eabb));_0x34c8d8['length']>0x1?_0x423d56['_appendChild'](_0x34c8d8):_0x423d56=_0x34c8d8[0x0];}}}if(_0x7d8716['customProperties']){for(const [_0x481c53,_0x3f7194]of _0x7d8716['customProperties'])_0x423d56['_setCustomProperty'](_0x481c53,_0x3f7194);}const _0x41c3e7=void 0x0===_0x7d8716['fillerOffset']?null:_0x7d8716['fillerOffset'];return null!==_0x41c3e7&&(_0x423d56['getFillerOffset']=()=>_0x41c3e7),_0x423d56;}}['_makeModelFromViewString'](_0xff03be){const _0x1b9924=JSON['parse'](_0xff03be),_0x304a62=this['editor']['editing']['view']['document'],_0x2595c5=new _0x1e5014(_0x304a62,_0x1b9924['map'](_0x341010=>this['_getViewFromDiffObj'](_0x341010,!0x0)));return this['editor']['data']['toModel'](_0x2595c5);}['_removeRevisionMarkers'](_0x14b860){return(_0x14b860=_0x14b860['filter'](_0x4fc5c5=>!_0x4fc5c5['name']||'revision-start'!==_0x4fc5c5['name']&&'revision-end'!==_0x4fc5c5['name']))['forEach'](_0x309d53=>{'string'!=typeof _0x309d53&&(_0x309d53['children']=this['_removeRevisionMarkers'](_0x309d53['children']),_0x309d53['attributes']=_0x309d53['attributes']['filter'](_0x12b7da=>!_0x12b7da[0x0]['startsWith']('data-revision-')));}),_0x14b860;}}function m(_0x20a1fc,_0x1c8486,_0x3da6be){const t=_0x20a1fc['t'];switch(_0x1c8486){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'},_0x3da6be);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3da6be);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 h extends _0x1f6d35{['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[_0x3acc3,S,$,_0x463583];}constructor(_0x28984e){super(_0x28984e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4d6fa4=_0xc9fc17();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4d6fa4},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 _0x5c49ee=this['repository']['getRevision'](0x0),_0x3d8929=_0x5c49ee&&null===_0x5c49ee['creator']?_0x5c49ee:null;if(this['_continueCurrentRevision']=!!_0x3d8929&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5642f4=this['_source']['getCurrentRevisionId'](),_0x4fff1a=this['repository']['getRevision'](_0x5642f4);if(_0x4fff1a)this['_startingVersion']=_0x4fff1a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x10722a=this['_source']['history']['_operations']['find'](_0x4870d8=>!_0x4870d8['_isInit']),_0x3f6d6a=_0x10722a?_0x10722a['baseVersion']:this['_source']['history']['version'];_0x5c49ee?(_0x5c49ee['toVersion']<_0x3f6d6a&&_0x5c49ee['_update']({'toVersion':_0x3f6d6a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3d8929['id'],this['_startingVersion']=_0x3d8929['fromVersion']):(this['_startingVersion']=_0x5c49ee['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3f6d6a,this['_continueCurrentRevision']=!0x1);}}else _0x3d8929&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3d8929['toVersion'],this['editor']['model']['document']['history']['version']),_0x3d8929['fromVersion']===_0x3d8929['toVersion']?(0x0!==_0x3d8929['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d8929['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d8929['id'],this['_startingVersion']=_0x3d8929['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',_0x3d959f=>!_0x3d959f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29d562=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa4bb9e;for(const _0x47de7c in _0x29d562){const _0x36bd18=_0x47de7c,_0x371d3c=_0x29d562[_0x36bd18];if('revisionHistoryLicenseKeyValid'==_0x371d3c||'revisionHistoryLicenseKeyInvalid'==_0x371d3c||'revisionHistoryLicenseKeyExpired'==_0x371d3c||'revisionHistoryLicenseKeyDomainLimit'==_0x371d3c||'revisionHistoryLicenseKeyNotAllowed'==_0x371d3c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x371d3c||'revisionHistoryLicenseKeyTrialLimit'==_0x371d3c||'revisionHistoryLicenseKeyUsageLimit'==_0x371d3c){delete _0x29d562[_0x36bd18],_0xa4bb9e=_0x371d3c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xa4bb9e&&_0x29d562['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xa4bb9e&&_0x29d562['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xa4bb9e&&_0x29d562['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x123d53=this['repository']['getRevision'](0x0),_0x268fa1=await this['getRevisionDocumentData'](_0x123d53),_0x5a1459=await this['getRevisionRootsAttributes'](_0x123d53);this['_replaceEditorDataWithRevisionData'](_0x268fa1,_0x5a1459);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x130daa){this['_source']=_0x130daa;}async['update'](){const _0x40ad09=await this['_source']['getLatestVersion']();if(_0x40ad09>this['currentRevision']['toVersion']){await this['_loadState']();const _0x49e80f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x40ad09});_0x49e80f['authors']=_0x49e80f['authorsIds']['map'](_0x21b1b6=>this['editor']['plugins']['get']('Users')['getUser'](_0x21b1b6)),this['currentRevision']['_update'](_0x49e80f);}}async['saveRevision'](_0x252095={},_0x2e907a=null){const _0x11c788=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2e907a>this['currentRevision']['toVersion']&&(_0x2e907a=null),null===_0x2e907a&&(_0x2e907a=await this['_source']['getLatestVersion']());const _0x7c3f83=this['_getFromVersion'](_0x2e907a),_0x15ae62=this['buildRevisionData']({'from':_0x7c3f83,'to':_0x2e907a});if(this['currentRevision']['toVersion']<_0x2e907a){const _0x32bedd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2e907a,'to':_0x2e907a});_0x32bedd['authors']=[],_0x32bedd['authorsIds']=[],_0x32bedd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x32bedd,!0x0),delete _0x32bedd['authors'],_0x11c788['push'](_0x32bedd);}_0x252095['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x252095['name']=_0x252095['name']||null,_0x252095['id']=_0x252095['id']||_0xc9fc17(),_0x252095={..._0x252095,..._0x15ae62};const _0x38988e=this['addRevisionData'](_0x252095);_0x11c788['push'](_0x252095);const _0x335752=this['repository']['getIndex'](_0x38988e);if(0x0!==_0x335752){const _0xcf599b=this['repository']['getRevision'](_0x335752-0x1);if(_0xcf599b['fromVersion']!==_0x2e907a){const _0x27ae78=this['_revisionDataBuilder']['getData'](_0x2e907a,_0xcf599b['toVersion']),_0x34ab39={'id':_0xcf599b['id'],'diffData':_0x27ae78['diffData'],'authorsIds':_0x27ae78['authorsIds'],'authors':_0x27ae78['authorsIds']['map'](_0x4c78bf=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c78bf)),'fromVersion':_0x2e907a};_0xcf599b===this['currentRevision']&&(_0x34ab39['createdAt']=new Date(_0x252095['createdAt']['getTime']()+0xa)),_0xcf599b['_update'](_0x34ab39,!0x0),delete _0x34ab39['authors'],_0x11c788['push'](_0x34ab39);}}if(this['adapter']){for(const _0x4c123a of _0x11c788)this['_bufferUpdate'](_0x4c123a['id'],_0x4c123a,!0x0);this['sendBufferedUpdates']();}return _0x38988e;}['addRevisionData'](_0x183d0a){const _0x358737=this['repository']['createRevision'](_0x183d0a);return this['adapter']&&_0x358737['on']('_update',(_0x4815c6,_0x4c6986,_0x3cf798)=>{_0x3cf798||(this['_bufferUpdate'](_0x4c6986['id'],_0x4c6986,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x358737,this['_findInsertionIndex'](_0x358737)),_0x358737;}async['getRevisionDocumentData'](_0x311940){return await this['_utils']['loadRevisionData'](_0x311940,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x311940);}async['getRevisionRootsAttributes'](_0xe03941){return await this['_utils']['loadRevisionData'](_0xe03941,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe03941);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d1d8f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xd499fd=0x0;_0xd499fd<_0x2d1d8f['length'];_0xd499fd++){const _0xb39e2f=_0x2d1d8f[_0xd499fd];let _0x16e0e4=!0x1;for(const _0x2ab6fc of Object['keys'](_0xb39e2f))void 0x0===_0xb39e2f[_0x2ab6fc]?delete _0xb39e2f[_0x2ab6fc]:'id'!==_0x2ab6fc&&(_0x16e0e4=!0x0);_0x16e0e4||(_0x2d1d8f[_0xd499fd]=null);}if(_0x2d1d8f=_0x2d1d8f['filter'](_0x52a246=>null!==_0x52a246),!_0x2d1d8f['length'])return;for(let _0x40cb69=0x0;_0x40cb69<_0x2d1d8f['length'];_0x40cb69++){const _0x48a59f=_0x2d1d8f[_0x40cb69];void 0x0!==_0x48a59f['fromVersion']&&void 0x0===_0x48a59f['toVersion']&&(_0x48a59f['toVersion']=this['repository']['getRevision'](_0x48a59f['id'])['toVersion']),void 0x0!==_0x48a59f['toVersion']&&void 0x0===_0x48a59f['fromVersion']&&(_0x48a59f['fromVersion']=this['repository']['getRevision'](_0x48a59f['id'])['fromVersion']);}const _0x39c0f0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d1d8f,_0x39c0f0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x22cac0=>{if(_0x22cac0){for(const _0x45fdbc of _0x22cac0)this['setRevisionData']({'id':_0x45fdbc['id'],'createdAt':_0x45fdbc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x574373=null,from:_0x1357cb=null,to:_0x1baec0=null}){_0x1357cb=null!==_0x1357cb?_0x1357cb:_0x574373['fromVersion'],_0x1baec0=null!==_0x1baec0?_0x1baec0:_0x574373['toVersion'];const _0x150f6c=this['_revisionDataBuilder']['getData'](_0x1357cb,_0x1baec0),_0x50c0f7={'diffData':_0x150f6c['diffData'],'authorsIds':_0x150f6c['authorsIds'],'fromVersion':_0x1357cb,'toVersion':_0x1baec0};if(!_0x574373||_0x1baec0!==_0x574373['toVersion']){const _0xb2abfc=_0x1baec0-0x1,_0x17505c=this['_source']['history']['getOperation'](_0xb2abfc);_0x50c0f7['createdAt']=_0x17505c&&_0x17505c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1357cb===this['_loadedStateData']['fromVersion']){for(const _0x5a9a8b of this['_loadedStateData']['authors'])_0x50c0f7['authorsIds']['includes'](_0x5a9a8b['id'])||_0x50c0f7['authorsIds']['push'](_0x5a9a8b['id']);}return _0x50c0f7;}['_bufferUpdate'](_0x1e2f7c,_0x491551,_0x39df0e){if(this['_bufferedUpdates']['has'](_0x1e2f7c)){const _0x12bc50=this['_bufferedUpdates']['get'](_0x1e2f7c);_0x491551=_0x39df0e?{..._0x12bc50,..._0x491551}:{..._0x491551,..._0x12bc50};}this['_bufferedUpdates']['set'](_0x1e2f7c,_0x491551);}['setRevisionData'](_0x3fffa2){const _0x1678c3=this['repository']['getRevision'](_0x3fffa2['id']);if(_0x3fffa2['createdAt']&&(_0x3fffa2['createdAt']=new Date(_0x3fffa2['createdAt'])),_0x3fffa2['authorsIds']){const _0x19c0a4=this['editor']['plugins']['get']('Users');_0x3fffa2['authors']=_0x3fffa2['authorsIds']['map'](_0x47b799=>_0x19c0a4['getUser'](_0x47b799));}_0x1678c3['_update'](_0x3fffa2,!0x0);}['_createInitialRevision'](_0x2691eb){const _0x2f3c01=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2f3c01)this['_initialRevisionId']=_0x2f3c01['id'];else{const _0x563358=!this['editor']['model']['document']['roots']['find'](_0x385bc0=>this['editor']['model']['hasContent'](_0x385bc0)),_0x7e3f2f=this['editor']['plugins']['get']('Users')['me']['id'],_0x595012=m(this['editor']['locale'],_0x563358?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2691eb,'to':_0x2691eb,'id':this['_initialRevisionId'],'name':_0x595012,'creatorId':_0x7e3f2f});}}['_createCurrentRevision'](_0x15c0b5){const _0x351506=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x351506),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x15c0b5,'to':_0x15c0b5,'id':_0x351506,'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'](_0x3bcd30,_0x4ee0e6){let _0x2495c4=this['editor']['config']['get']('initialData'),_0xaef326=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2495c4){_0x2495c4={};for(const _0x1b7f97 of this['editor']['model']['document']['getRootNames']())_0x2495c4[_0x1b7f97]='';}if('string'==typeof _0x2495c4&&(_0x2495c4={'main':_0x2495c4}),void 0x0===_0xaef326){_0xaef326={};for(const _0x46322a of this['editor']['model']['document']['getRootNames']())_0xaef326[_0x46322a]={};}let _0x429f1d=!0x1;const _0x1cdf52=Object['keys'](_0x2495c4),_0xe77d82=Object['keys'](_0x3bcd30);for(const _0x45b148 of _0x1cdf52){if(_0x2495c4[_0x45b148]!==_0x3bcd30[_0x45b148]&&''!==_0x2495c4[_0x45b148]['trim']()){_0x429f1d=!0x0;break;}if(!_0x51e433(_0xaef326[_0x45b148],_0x4ee0e6[_0x45b148])&&Object['keys'](_0xaef326[_0x45b148])['length']>0x0){_0x429f1d=!0x0;break;}}_0x429f1d||(_0x429f1d=_0xe77d82['some'](_0x1985af=>!this['editor']['model']['document']['getRoot'](_0x1985af))),_0x429f1d&&_0x38a3ce('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2495c4,'editorRootsAttributes':_0xaef326,'revisionData':_0x3bcd30,'revisionRootsAttributes':_0x4ee0e6}),this['editor']['config']['set']('initialData',_0x3bcd30),this['editor']['config']['set']('rootsAttributes',_0x4ee0e6);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x41e839=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x41e839['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x45ba63){const _0x2330e1=this['repository']['getRevisions']();_0x2330e1['reverse']();let _0x1be738=0x0;for(;_0x1be738<_0x2330e1['length'];){const _0xef0af0=_0x2330e1[_0x1be738];if(_0xef0af0===this['currentRevision']){_0x1be738++;continue;}if(_0xef0af0['id']===this['_initialRevisionId'])break;const _0x41b956=_0x45ba63['toVersion']-_0xef0af0['toVersion']||_0x45ba63['fromVersion']-_0xef0af0['fromVersion'];if(_0x41b956>0x0)break;if(_0x41b956<0x0)_0x1be738++;else{if(!_0x45ba63['creator']&&_0xef0af0['creator'])break;if(_0xef0af0['creator']||!_0x45ba63['creator']){if(_0x45ba63['createdAt']>_0xef0af0['createdAt'])break;_0x1be738++;}else _0x1be738++;}}return _0x1be738;}['_getFromVersion'](_0x5179f1){const _0x10c14f=this['repository']['getRevisions']();_0x10c14f['reverse'](),_0x10c14f['shift']();const _0x706b1b=_0x10c14f['find'](_0x2681cd=>_0x2681cd['toVersion']<=_0x5179f1)['toVersion'];return _0x706b1b<this['_startingVersion']?this['_startingVersion']:_0x706b1b;}['_makeRevision']({name:_0x45b255,from:_0x421c5b,to:_0x3f23e3,creatorId:_0x10273d,id:_0x40e4d1}){const _0x461c63=this['buildRevisionData']({'from':_0x421c5b,'to':_0x3f23e3});_0x461c63['name']=_0x45b255,_0x461c63['creatorId']=_0x10273d,_0x461c63['id']=_0x40e4d1;const _0x15ed46=this['addRevisionData'](_0x461c63);return this['adapter']&&this['_bufferUpdate'](_0x461c63['id'],_0x461c63,!0x0),_0x15ed46;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x215cab){this['editor']=_0x215cab,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'](_0x50d36a){this['source']=_0x50d36a;const _0x1a1b43=new Map(),_0xd9777e=new Map(),_0x163dbc=this['editor']['model']['document']['roots']['map'](_0x58401e=>_0x58401e['rootName']);for(const _0x2cf10a of _0x163dbc){const _0x4c2117=this['editor']['model']['document']['getRoot'](_0x2cf10a),_0xa7232a=x(_0x4c2117);_0x1a1b43['set'](_0x2cf10a,_0xa7232a),_0xd9777e['set'](_0x2cf10a,Object['fromEntries'](_0x4c2117['getAttributes']()));}const _0x3188dd=Array['from'](this['editor']['model']['markers'])['map'](_0x1bb64e=>[_0x1bb64e['name'],_0x1bb64e['getRange']()]),_0x1c25d4=this['source']['version'];this['_saveMetaData'](_0x1c25d4,_0x1a1b43,_0x3188dd,_0xd9777e),this['_startingRevisionId']=this['_revisionId'];const _0x18c231=new Map(),_0x4bf208=new Map();for(const _0x351521 of _0x163dbc){const _0x2acce8=N(_0x351521);_0x18c231['set'](_0x351521,_0x2acce8),_0x4bf208['set'](_0x351521,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x18c231,[],_0x4bf208);}['getData'](_0x20dd73,_0x2db11a){if(this['_lastFrom']===_0x20dd73&&this['_lastTo']<=_0x2db11a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2db11a,!0x0);else{if(!this['_savedMetaData']['has'](_0x20dd73)){const _0x3b39b8=this['_getPreviousFrom'](_0x20dd73);this['_calculateMetaData'](_0x3b39b8,_0x20dd73,!0x1);}this['_calculateMetaData'](_0x20dd73,_0x2db11a,!0x0);}return this['_lastFrom']=_0x20dd73,this['_lastTo']=_0x2db11a,this['_getState']();}['loadState'](_0x11f65f){if(!this['_savedMetaData']['has'](_0x11f65f['fromVersion'])){const _0x1c0e86=this['_getPreviousFrom'](_0x11f65f['fromVersion']);this['_calculateMetaData'](_0x1c0e86,_0x11f65f['fromVersion'],!0x1);}this['_calculateMetaData'](_0x11f65f['fromVersion'],_0x11f65f['toVersion'],!0x1);const _0x3f555c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x11f65f['fromVersion'],this['_lastTo']=_0x11f65f['toVersion'];for(const _0x58080a in _0x11f65f['diffData']){const _0x134513=_0x11f65f['diffData'][_0x58080a]['attachChange'],_0x4627a0=_0x3d9550(_0x11f65f['diffData'][_0x58080a]['attributesBefore'])||{},_0x70d6bf=_0x3f555c['_makeModelFromViewString'](_0x11f65f['diffData'][_0x58080a]['deletions']);_0x70d6bf['rootName']=_0x58080a,_0x70d6bf['_isAttached']=!_0x134513||!_0x134513['isAttached'],_0x70d6bf['isAttached']=()=>_0x70d6bf['_isAttached'],this['_baseRoots']['set'](_0x58080a,_0x70d6bf),this['_baseRootsAttributes']['set'](_0x58080a,_0x4627a0),_0x134513&&this['_touchedRoots']['set'](_0x58080a,_0x134513);const _0x1c56df=this['_makeIdsRoot'](_0x70d6bf);this['_baseIdsRoots']['set'](_0x58080a,_0x1c56df);for(const [_0x377f59,_0x6bbb2d]of _0x70d6bf['markers']){if(!_0x377f59['startsWith']('revision:'))continue;const _0x280b05=_0x377f59['split'](':')[0x2];for(const _0x42fa1a of _0x6bbb2d['getWalker']({'singleCharacters':!0x0})){const _0x592459=this['_getVidAttributeName'](_0x42fa1a),_0x104285='elementEnd'==_0x42fa1a['type']?_0x42fa1a['previousPosition']['path']['slice'](0x0,-0x1):_0x42fa1a['previousPosition']['path'],_0x198699=_0x1c56df['getNodeByPath'](_0x104285)['getAttribute'](_0x592459);this['_touched']['set'](_0x198699,{'userId':_0x280b05});}_0x70d6bf['markers']['delete'](_0x377f59);}}this['_startingRevisionId']=this['_revisionId'];const _0xccde6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2b5a5d=>!this['_touched']['has'](_0x2b5a5d));let _0x336947=0x0;const _0x234cb8=new Map();for(const _0x2b7f4a in _0x11f65f['diffData']){const _0x36569a=_0x11f65f['diffData'][_0x2b7f4a]['attachChange'],_0x176e3c=_0x3d9550(_0x11f65f['diffData'][_0x2b7f4a]['attributesAfter'])||{},_0x5ecfa0=_0x3f555c['_makeModelFromViewString'](_0x11f65f['diffData'][_0x2b7f4a]['insertions']);_0x5ecfa0['rootName']=_0x2b7f4a,_0x5ecfa0['_isAttached']=!_0x36569a||_0x36569a['isAttached'],_0x5ecfa0['isAttached']=()=>_0x5ecfa0['_isAttached'],this['_diffRoots']['set'](_0x2b7f4a,_0x5ecfa0),this['_diffRootsAttributes']['set'](_0x2b7f4a,_0x176e3c);const _0x519d58=this['_makeIdsRoot'](_0x5ecfa0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b7f4a,_0x519d58),_0x234cb8['set'](_0x2b7f4a,_0x5ecfa0['isAttached']()?_0x176e3c:{});for(const [_0x4121a8,_0x2372dd]of _0x5ecfa0['markers']){if(!_0x4121a8['startsWith']('revision:'))continue;const _0x496251=_0x4121a8['split'](':')[0x2];for(const _0x564d85 of _0x2372dd['getWalker']({'singleCharacters':!0x0})){const _0x58eee5=this['_getVidAttributeName'](_0x564d85),_0xff118a=this['_revisionId']++,_0x22aca2='elementEnd'==_0x564d85['type']?_0x564d85['previousPosition']['path']['slice'](0x0,-0x1):_0x564d85['previousPosition']['path'];_0x519d58['getNodeByPath'](_0x22aca2)['_setAttribute'](_0x58eee5,_0xff118a),this['_touched']['set'](_0xff118a,{'userId':_0x496251});}_0x5ecfa0['markers']['delete'](_0x4121a8);}for(const _0x20e5d6 of this['editor']['model']['createRangeIn'](_0x5ecfa0)['getWalker']({'singleCharacters':!0x0})){const _0x169ae1=this['_getVidAttributeName'](_0x20e5d6),_0x1c229e='elementEnd'==_0x20e5d6['type']?_0x20e5d6['previousPosition']['path']['slice'](0x0,-0x1):_0x20e5d6['previousPosition']['path'],_0x38c9d2=_0x519d58['getNodeByPath'](_0x1c229e);_0x38c9d2['getAttribute'](_0x169ae1)>0x0||_0x38c9d2['_setAttribute'](_0x169ae1,_0xccde6[_0x336947++]);}for(const [_0x32256b,_0x17fc18]of _0x5ecfa0['markers'])_0x32256b['startsWith']('revision:')||this['_markers']['set'](_0x32256b,_0x17fc18);}const {roots:_0x5bbe25}=this['_savedMetaData']['get'](_0x11f65f['fromVersion']),{roots:_0x3da903}=this['_savedMetaData']['get'](_0x11f65f['toVersion']),_0x1773b3=x(_0x5bbe25['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x1773b3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1773b3,Number['NEGATIVE_INFINITY']));const _0x3b4855=x(_0x3da903['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x3b4855),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b4855));const _0x3c589b=Array['from'](this['_diffRoots'])['map'](([_0x2bb698,_0x2a87aa])=>[_0x2bb698,x(_0x2a87aa)]);this['_saveMetaData'](this['_lastTo'],_0x3c589b,this['_markers'],_0x234cb8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x25dad5,_0x6d191f,_0x98797a,_0x2467b3){const _0x3d2a49=new Map(_0x6d191f),_0x42c137=new Map(_0x3d9550(_0x2467b3)),_0x11621c=new Map();for(const [_0x84b162,_0x2be837]of _0x98797a)_0x11621c['set'](_0x84b162,{'start':_0x2be837['start']['clone'](),'end':_0x2be837['end']['clone'](),'rootName':_0x2be837['root']['rootName']});this['_savedMetaData']['set'](_0x25dad5,{'roots':_0x3d2a49,'markers':_0x11621c,'rootsAttributes':_0x42c137});}['_removeMetaData'](_0xb1c34f){this['_savedMetaData']['delete'](_0xb1c34f);}['_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'](_0x4ec8d8,_0x4d83ff=null){let _0x5e67b9=null;_0x4ec8d8['is']('documentFragment')||(_0x5e67b9=new _0x19d0e1(_0x4ec8d8['name'],{'vid_start':null===_0x4d83ff?this['_revisionId']++:_0x4d83ff++}));const _0x379a21=[];for(const _0x2d0ac1 of _0x4ec8d8['getChildren']())if(_0x2d0ac1['is']('element')){_0x379a21['push'](this['_makeIdsRoot'](_0x2d0ac1,_0x4d83ff));const _0x306ec0=_0x379a21[_0x379a21['length']-0x1];null!==_0x4d83ff&&(_0x4d83ff=_0x306ec0['is']('element','$text')?_0x306ec0['getAttribute']('vid')+0x1:_0x306ec0['getAttribute']('vid_end')+0x1);}else{for(let _0x51badd=0x0;_0x51badd<_0x2d0ac1['offsetSize'];_0x51badd++)_0x379a21['push'](new _0x19d0e1('$text',{'vid':null===_0x4d83ff?this['_revisionId']++:_0x4d83ff++}));}if(_0x4ec8d8['is']('documentFragment')){const _0x2deeec=N(_0x4ec8d8['rootName']);return _0x2deeec['_insertChild'](0x0,_0x379a21),_0x2deeec;}return _0x5e67b9['_setAttribute']('vid_end',null===_0x4d83ff?this['_revisionId']++:_0x4d83ff++),_0x5e67b9['_insertChild'](0x0,_0x379a21),_0x5e67b9;}['_calculateMetaData'](_0x5b2729,_0x5ccf64,_0x2dd518){this['_reset']();const {roots:_0x5cb947,markers:_0x43c292,rootsAttributes:_0x5c4df8}=this['_savedMetaData']['get'](_0x5b2729);this['_baseRoots']=new Map(_0x5cb947),this['_baseRootsAttributes']=new Map(_0x3d9550(_0x5c4df8));for(const [_0x31a2f9,_0xb4a94f]of this['_baseRoots'])if('$graveyard'!==_0x31a2f9&&(this['_diffRoots']['set'](_0x31a2f9,x(_0xb4a94f)),this['_diffRootsAttributes']=new Map(_0x3d9550(_0x5c4df8)),_0x2dd518)){const _0x6ab72d=this['_revisionId'];this['_idsRoots']['set'](_0x31a2f9,this['_makeIdsRoot'](_0xb4a94f)),this['_baseIdsRoots']['set'](_0x31a2f9,this['_makeIdsRoot'](_0xb4a94f,_0x6ab72d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2dd518&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x243c34,_0x44963e]of _0x43c292){const _0x51d9d2=this['_baseRoots']['get'](_0x44963e['rootName']),_0x3c285a=this['_diffRoots']['get'](_0x44963e['rootName']),_0x3bcdb2=new _0x173a0b(this['_fixPosition'](_0x44963e['start'],_0x51d9d2),this['_fixPosition'](_0x44963e['end'],_0x51d9d2)),_0x47f433=this['_fixRange'](_0x3bcdb2,_0x3c285a);_0x51d9d2['markers']['set'](_0x243c34,_0x3bcdb2),this['_markers']['set'](_0x243c34,_0x47f433);}this['_applyOperations'](_0x5b2729,_0x5ccf64,_0x2dd518);}['_applyOperations'](_0x83ff1,_0x423863,_0x101895){for(const _0x22fe27 of this['source']['getOperations'](_0x83ff1,_0x423863))this['_handleOperation'](_0x22fe27,_0x101895);for(const _0x568932 of this['_diffRoots']['values']())_0x568932['markers']['clear']();for(const [_0xe228ec,_0x279930]of this['_markers']){this['_diffRoots']['get'](_0x279930['root']['rootName'])['markers']['set'](_0xe228ec,_0x279930['clone']());}const _0x2c76e5=new Map(),_0x4424fa=new Map();for(const [_0x4cbfa4,_0x25c4ea]of this['_diffRoots'])_0x2c76e5['set'](_0x4cbfa4,x(_0x25c4ea)),_0x4424fa['set'](_0x4cbfa4,this['_diffRootsAttributes']['get'](_0x4cbfa4));this['_saveMetaData'](_0x423863,_0x2c76e5,this['_markers'],_0x4424fa);}['_getPreviousFrom'](_0x2d5e2e){const _0x3480dc=Array['from'](this['_savedMetaData']['keys']());_0x3480dc['sort']((_0x42a014,_0x2583d4)=>_0x42a014-_0x2583d4),_0x3480dc['reverse']();for(const _0x52069f of _0x3480dc)if(_0x52069f<_0x2d5e2e)return _0x52069f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xd8ee1e,_0x2dc45c){const _0x29cd05=Array['from'](_0x2dc45c['markers'])['map'](([_0x525837,_0xe7831d])=>[_0x525837,this['_fixRange'](_0xe7831d,_0xd8ee1e)]);_0xd8ee1e['markers']=new Map(_0x29cd05);}['_transformMarkers'](_0x2515b0){for(const _0x7b35b6 of this['_markers']['values']()){const _0x1a7259=_0x7b35b6['getTransformedByOperation'](_0x2515b0),_0x37eaa3=_0x173a0b['_createFromRanges'](_0x1a7259);_0x7b35b6['start']=_0x37eaa3['start'],_0x7b35b6['end']=_0x37eaa3['end'];}}['_handleOperation'](_0x2ba92b,_0x321a7a){if('addRoot'!=_0x2ba92b['type']&&'detachRoot'!=_0x2ba92b['type']){if('insert'==_0x2ba92b['type']){const _0x4285d3=_0x2ba92b['position']['root']['rootName'];this['_diffRoots']['has'](_0x4285d3)||(this['_diffRoots']['set'](_0x4285d3,N(_0x4285d3,!0x0)),this['_diffRootsAttributes']['set'](_0x4285d3,{}),_0x321a7a&&this['_idsRoots']['set'](_0x4285d3,N(_0x4285d3,!0x0)));}else{if('addRootAttribute'==_0x2ba92b['type']||'removeRootAttribute'==_0x2ba92b['type']||'changeRootAttribute'==_0x2ba92b['type'])return void this['_handleRootAttributeOperation'](_0x2ba92b);'marker'==_0x2ba92b['type']&&this['_handleMarkerOperation'](_0x2ba92b);}if('marker'!==_0x2ba92b['type']){const _0x41b2d4=this['_cloneOperation'](_0x2ba92b,this['_diffRoots']);_0x41b2d4['_execute'](),this['_transformMarkers'](_0x41b2d4);}if(_0x321a7a)switch(_0x2ba92b['type']){case'insert':this['_handleInsertOperation'](_0x2ba92b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2ba92b);break;case'merge':this['_handleMergeOperation'](_0x2ba92b);break;case'split':this['_handleSplitOperation'](_0x2ba92b);}}else this['_handleRootOperation'](_0x2ba92b,_0x321a7a);}['_cloneOperation'](_0xe2d35f,_0x49d67d){const _0x51ea5e=_0xe2d35f['clone']();return _0x51ea5e['_authorId']=_0xe2d35f['_authorId'],this['_fixOperation'](_0x51ea5e,_0x49d67d),_0x51ea5e;}['_getBaseVids'](_0x199b79){return _0x199b79['map'](_0x5398f1=>{const _0x4fc9e7=this['_getVidAttributeName'](_0x5398f1);return Number(_0x5398f1['item']['getAttribute'](_0x4fc9e7));});}['_generateTape'](_0x580f7b,_0x51ac70){if(_0x580f7b['is']('element','$text'))_0x51ac70['push']({'item':_0x580f7b,'type':'text'});else{_0x580f7b['is']('element')&&_0x51ac70['push']({'item':_0x580f7b,'type':'elementStart'});for(const _0x1c59f4 of _0x580f7b['getChildren']())this['_generateTape'](_0x1c59f4,_0x51ac70);_0x580f7b['is']('element')&&_0x51ac70['push']({'item':_0x580f7b,'type':'elementEnd'});}return _0x51ac70;}['_getState'](){const _0x41e6a7=new Map(this['_touched']),_0x4c7b60=new Map(_0x41e6a7),_0x3eb43b=new Map(),_0x563097={'insertions':{},'deletions':{}},_0x3916ac={'insertions':{},'deletions':{}},_0x5ae320=new Map(),_0x30480c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x30480c['delete']('$graveyard');for(const _0xe619d9 of _0x30480c){const _0x1e873f=this['_diffRoots']['get'](_0xe619d9)||N(_0xe619d9,!0x1),_0x84d080=this['_baseRoots']['get'](_0xe619d9)||N(_0xe619d9,!0x1);_0x1e873f['isAttached']()||_0x84d080['isAttached']()?(_0x563097['insertions'][_0xe619d9]=x(_0x1e873f),_0x563097['deletions'][_0xe619d9]=x(_0x84d080),this['_copyMarkers'](_0x563097['deletions'][_0xe619d9],_0x84d080),this['_copyMarkers'](_0x563097['insertions'][_0xe619d9],_0x1e873f),_0x3916ac['insertions'][_0xe619d9]=this['_generateTape'](this['_idsRoots']['get'](_0xe619d9),[]),_0x3916ac['deletions'][_0xe619d9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xe619d9)||N(_0xe619d9,!0x1),[])):_0x30480c['delete'](_0xe619d9);}for(const _0x1946a3 of _0x30480c){const _0x23cc72=_0x3916ac['insertions'][_0x1946a3];for(const _0x2bc4ac of _0x23cc72){const _0x454870=this['_getVidAttributeName'](_0x2bc4ac),_0x1403b9=_0x2bc4ac['item']['getAttribute'](_0x454870);_0x4c7b60['delete'](_0x1403b9),_0x1403b9>=this['_startingRevisionId']&&_0x3eb43b['set'](_0x1403b9,_0x41e6a7['get'](_0x1403b9));}}for(const _0x52a8e9 of _0x30480c){const _0x3e869a=_0x3916ac['insertions'][_0x52a8e9],_0x61ab3e=this['_getBaseVids'](_0x3916ac['deletions'][_0x52a8e9]);let _0x4a7e78=0x0;for(const _0x38ea67 of _0x3e869a){const _0xf29f=this['_getVidAttributeName'](_0x38ea67),_0x132543=_0x38ea67['item']['getAttribute'](_0xf29f);if(!_0x3eb43b['has'](_0x132543)&&!_0x5ae320['has'](_0x132543)){if(_0x4c7b60['has'](_0x132543))_0x4a7e78++;else{if(_0x132543!=_0x61ab3e[_0x4a7e78]){const _0x1fd0bc=_0x41e6a7['get'](_0x132543)||_0x41e6a7['get'](_0x61ab3e[_0x4a7e78]);for(;_0x132543!=_0x61ab3e[_0x4a7e78];)_0x4c7b60['has'](_0x61ab3e[_0x4a7e78])||(_0x5ae320['set'](_0x61ab3e[_0x4a7e78],_0x1fd0bc),_0x41e6a7['set'](_0x61ab3e[_0x4a7e78],_0x1fd0bc)),_0x4a7e78++;}_0x4a7e78++;}}}}for(const _0x4a069a of _0x30480c){const _0x535157=_0x3916ac['insertions'][_0x4a069a];for(const _0x311ed4 of _0x535157){const _0x3801d0=this['_getVidAttributeName'](_0x311ed4),_0x475883=_0x311ed4['item']['getAttribute'](_0x3801d0);if(_0x5ae320['has'](_0x475883)){const _0xfddee5=_0x5ae320['get'](_0x475883);_0x4c7b60['has'](_0x475883)||_0x4c7b60['set'](_0x475883,{..._0xfddee5}),_0x3eb43b['set'](_0x475883,{..._0xfddee5});}}}for(const _0x11ee1f of _0x4c7b60['keys']())_0x11ee1f>=this['_startingRevisionId']&&_0x4c7b60['delete'](_0x11ee1f);const _0x5740c9=new Map();for(const _0x1b61ef of _0x30480c){let _0x693020=_0x3916ac['insertions'][_0x1b61ef];for(const _0x4cb8ef of _0x693020)if(_0x4cb8ef['item']['is']('element','tableCell')){const _0x1bb529=this['_getVidAttributeName'](_0x4cb8ef),_0x5c7a38=_0x4cb8ef['item']['getAttribute'](_0x1bb529);if(_0x3eb43b['has'](_0x5c7a38)){const _0x1f1047=_0x4cb8ef['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f0250=_0x5740c9['get'](_0x1f1047)||new Set();_0x4f0250['add'](_0x3eb43b['get'](_0x5c7a38)['userId']),_0x5740c9['set'](_0x1f1047,_0x4f0250);}}_0x693020=_0x3916ac['deletions'][_0x1b61ef];for(const _0xd827a of _0x693020)if(_0xd827a['item']['is']('element','tableCell')){const _0xf6a6b4=this['_getVidAttributeName'](_0xd827a),_0x302d4e=_0xd827a['item']['getAttribute'](_0xf6a6b4);if(_0x4c7b60['has'](_0x302d4e)){const _0x2e6da3=_0xd827a['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ff6ca=_0x5740c9['get'](_0x2e6da3)||new Set();_0x1ff6ca['add'](_0x4c7b60['get'](_0x302d4e)['userId']),_0x5740c9['set'](_0x2e6da3,_0x1ff6ca);}}for(const _0x465c05 of _0x5740c9['keys']())(_0x3eb43b['has'](_0x465c05)||_0x4c7b60['has'](_0x465c05))&&_0x5740c9['delete'](_0x465c05);}for(const _0x4f971e of _0x30480c){const _0x1ab78e=_0x3916ac['insertions'][_0x4f971e];let _0xc6adbe=null,_0x5b4b1f=null;for(const _0x56728f of _0x1ab78e){const _0x4df7cb=this['_getVidAttributeName'](_0x56728f),_0x571b36=_0x56728f['item']['getAttribute'](_0x4df7cb),_0x543f18=_0x5740c9['get'](_0x571b36);_0x543f18&&'elementStart'==_0x56728f['type']&&(_0xc6adbe=Array['from'](_0x543f18)[0x0],_0x5b4b1f=_0x56728f['item']['getAttribute']('vid_end')),_0xc6adbe&&(_0x4c7b60['set'](_0x571b36,{'userId':_0xc6adbe}),_0x3eb43b['set'](_0x571b36,{'userId':_0xc6adbe})),_0x571b36==_0x5b4b1f&&(_0xc6adbe=null,_0x5b4b1f=null);}}const _0x301a4b={},_0xe97a92=new Set();for(const _0x143676 of _0x30480c){const _0x1e9620=_0x563097['deletions'][_0x143676],_0x20ef84=_0x563097['insertions'][_0x143676];for(const {userId:_0x54c497}of this['_touchedMarkers']['values']())null!==_0x54c497&&_0xe97a92['add'](_0x54c497);for(const {userId:_0x549ae6}of this['_touchedRoots']['values']())null!==_0x549ae6&&_0xe97a92['add'](_0x549ae6);this['_markChanges'](_0x20ef84,_0x3916ac['insertions'][_0x143676],_0x3eb43b,'insertion',_0xe97a92),this['_markChanges'](_0x1e9620,_0x3916ac['deletions'][_0x143676],_0x4c7b60,'deletion',_0xe97a92),_0x301a4b[_0x143676]={'insertions':this['_prepareViewToSave'](_0x20ef84),'deletions':this['_prepareViewToSave'](_0x1e9620),'attachChange':this['_touchedRoots']['get'](_0x143676)||null,'attributesBefore':_0x3d9550(this['_baseRootsAttributes']['get'](_0x143676))||{},'attributesAfter':_0x3d9550(this['_diffRootsAttributes']['get'](_0x143676))};}return{'diffData':_0x301a4b,'authorsIds':Array['from'](_0xe97a92)};}['_processRootBeforeSave'](_0x2efd4c){for(const [,_0x32a470]of _0x2efd4c['markers']){const _0x59ab76=_0x32a470['start']['getAncestors']()['filter'](_0x4fb93d=>'tableCell'==_0x4fb93d['name']);for(const _0x3166a9 of _0x59ab76)0x1==_0x3166a9['childCount']&&_0x3166a9['getChild'](0x0)['is']('element','paragraph')&&_0x3166a9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5f4edb){this['_processRootBeforeSave'](_0x5f4edb);const _0xc427e5=this['editor']['data']['toView'](_0x5f4edb,{}),_0x361d4=Array['from'](_0xc427e5['getChildren']())['map'](_0x3ccef5=>this['_getViewJson'](_0x3ccef5));return JSON['stringify'](_0x361d4);}['_getViewJson'](_0x37f089){if(_0x37f089['is']('$text'))return _0x37f089['data'];{const _0x8e5364=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x53576e=_0x37f089,_0x2873a8=this['editor']['data']['htmlProcessor']['domConverter'],_0xdacecc={'type':_0x8e5364['_getTypeCharForViewElement'](_0x53576e),'name':_0x53576e['name'],'attributes':Array['from'](_0x53576e['getAttributes']()),'children':Array['from'](_0x53576e['getChildren']())['map'](_0x246ebb=>this['_getViewJson'](_0x246ebb))};if(_0x37f089['is']('uiElement')&&'$comment'!=_0x37f089['name']){const _0x2baa41=_0x37f089['render'](_0x2873a8['domDocument'],_0x2873a8);_0xdacecc['children']['push'](_0x2baa41['outerHTML']);}else{if(_0x37f089['is']('rawElement')){const _0xc81c1a=_0x2873a8['domDocument']['createElement'](_0x53576e['name']);_0x37f089['render'](_0xc81c1a,_0x2873a8),_0xdacecc['children']['push'](_0xc81c1a['innerHTML']);}}const _0x230c80=Array['from'](_0x53576e['getCustomProperties']());_0x230c80['length']>0x0&&(_0xdacecc['customProperties']=_0x230c80);const _0x591d7c=_0x53576e['getFillerOffset']();return null!==_0x591d7c&&(_0xdacecc['fillerOffset']=_0x591d7c),_0xdacecc;}}['_markChanges'](_0x4f4041,_0x152e98,_0x5103d2,_0x422966,_0x31aba0){let _0x304adc=null,_0x4f5c3a=null,_0x483972=0x0;const _0x3787ed=this['editor']['model'];for(let _0x205e57=0x0;_0x205e57<_0x152e98['length'];_0x205e57++){const _0x349eb4=this['_getVidAttributeName'](_0x152e98[_0x205e57]),_0x2e08bb=_0x152e98[_0x205e57]['item']['getAttribute'](_0x349eb4),_0x56c5ad=_0x5103d2['get'](_0x2e08bb),_0x115bf9=_0x205e57==_0x152e98['length']-0x1;(!_0x304adc&&_0x56c5ad&&(_0x304adc=_0x56c5ad,_0x4f5c3a=_0x152e98[_0x205e57]),_0x304adc&&(!_0x56c5ad||_0x56c5ad['userId']!=_0x304adc['userId']))&&(_0x3a0ec1(_0x56c5ad,P(_0x4f5c3a,_0x4f4041,_0x3787ed),P(_0x152e98[_0x205e57],_0x4f4041,_0x3787ed)),_0x304adc=_0x56c5ad||null,_0x4f5c3a=_0x56c5ad?_0x152e98[_0x205e57]:null),_0x304adc&&_0x115bf9&&_0x3a0ec1(_0x56c5ad,P(_0x4f5c3a,_0x4f4041,_0x3787ed),V(_0x152e98[_0x205e57],_0x4f4041,_0x3787ed));}function _0x3a0ec1(_0x119a00,_0x564a7c,_0x45b925){const _0x3bf2a3=_0x304adc['userId'],_0x4cdfd0='revision:'+_0x422966+':'+_0x3bf2a3+':'+_0x483972++,_0x2641b7=_0x3787ed['createRange'](_0x564a7c,_0x45b925);_0x4f4041['markers']['set'](_0x4cdfd0,_0x2641b7),null!==_0x3bf2a3&&_0x31aba0['add'](_0x3bf2a3);}}['_getVidAttributeName'](_0x166cf1){switch(_0x166cf1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xfa9c2c,_0x558761){_0xfa9c2c['baseVersion']=null;for(const _0x3164ca in _0xfa9c2c){const _0xa3b7d8=_0xfa9c2c[_0x3164ca];if(_0xa3b7d8 instanceof _0x5ddace){const _0x434559=_0x558761['get'](_0xa3b7d8['root']['rootName']);_0xfa9c2c[_0x3164ca]=this['_fixPosition'](_0xa3b7d8,_0x434559);}if(_0xa3b7d8 instanceof _0x173a0b){const _0x24fb3b=_0x558761['get'](_0xa3b7d8['root']['rootName']);_0xfa9c2c[_0x3164ca]=this['_fixRange'](_0xa3b7d8,_0x24fb3b);}'root'===_0x3164ca&&(_0xfa9c2c['root']=_0x558761['get'](_0xfa9c2c['root']['rootName']));}}['_fixRange'](_0x33cde9,_0x2c1077){return this['editor']['model']['createRange'](this['_fixPosition'](_0x33cde9['start'],_0x2c1077),this['_fixPosition'](_0x33cde9['end'],_0x2c1077));}['_fixPosition'](_0x10b331,_0x4731f4){return this['editor']['model']['createPositionFromPath'](_0x4731f4,_0x10b331['path'],_0x10b331['stickiness']);}['_handleInsertOperation'](_0x1153c7){const _0x442123=this['_idsRoots']['get'](_0x1153c7['position']['root']['rootName']),_0x255997=this['_fixPosition'](_0x1153c7['position'],_0x442123),_0x274147=null===_0x1153c7['_authorId']?null:_0x1153c7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x315eda=_0x255997['parent'],_0x2eddd7=this['_revisionId'],_0x924e8b=[];for(const _0x22fb8b of _0x1153c7['nodes'])if(_0x22fb8b['is']('element'))_0x924e8b['push'](this['_makeIdsRoot'](_0x22fb8b));else{for(let _0x4e3394=0x0;_0x4e3394<_0x22fb8b['offsetSize'];_0x4e3394++)_0x924e8b['push'](new _0x19d0e1('$text',{'vid':this['_revisionId']++}));}const _0x38ec37=this['_revisionId'];for(let _0x14133c=_0x2eddd7;_0x14133c<_0x38ec37;_0x14133c++)this['_touched']['set'](_0x14133c,{'userId':_0x274147});_0x315eda['_insertChild'](_0x255997['offset'],_0x924e8b);}['_handleMoveOperation'](_0x48bf29){(_0x48bf29=this['_cloneOperation'](_0x48bf29,this['_idsRoots']))['_execute']();const _0x21a800=null===_0x48bf29['_authorId']?null:_0x48bf29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cab35=_0x48bf29['getMovedRangeStart'](),_0xd31c80=_0x5cab35['parent'],_0xd7f42=_0x5cab35['offset'];!function _0x55c063(_0xc6ed31,_0x9cf7cc,_0x36072f,_0x513c32){for(let _0x4eb1e1=_0x36072f;_0x4eb1e1<_0x513c32;_0x4eb1e1++){const _0x58b178=_0x9cf7cc['getChild'](_0x4eb1e1);_0x58b178['is']('element','$text')?_0xc6ed31['set'](_0x58b178['getAttribute']('vid'),{'userId':_0x21a800}):(_0xc6ed31['set'](_0x58b178['getAttribute']('vid_start'),{'userId':_0x21a800}),_0x55c063(_0xc6ed31,_0x58b178,0x0,_0x58b178['childCount']),_0xc6ed31['set'](_0x58b178['getAttribute']('vid_end'),{'userId':_0x21a800}));}}(this['_touched'],_0xd31c80,_0xd7f42,_0xd7f42+_0x48bf29['howMany']);}['_handleMergeOperation'](_0x5da72b){const _0x5791b5=null===(_0x5da72b=this['_cloneOperation'](_0x5da72b,this['_idsRoots']))['_authorId']?null:_0x5da72b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x216ef2=_0x5da72b['targetPosition']['parent'],_0x2bf743=_0x5da72b['sourcePosition']['parent'],_0x174b24=_0x216ef2['getAttribute']('vid_end'),_0x453e49=_0x2bf743['getAttribute']('vid_start');_0x216ef2['_setAttribute']('vid_end',_0x2bf743['getAttribute']('vid_end')),_0x2bf743['_setAttribute']('vid_end',_0x174b24),this['_touched']['set'](_0x453e49,{'userId':_0x5791b5}),this['_touched']['set'](_0x174b24,{'userId':_0x5791b5}),_0x5da72b['_execute']();}['_handleSplitOperation'](_0x52e967){const _0x3fcbc6=null===(_0x52e967=this['_cloneOperation'](_0x52e967,this['_idsRoots']))['_authorId']?null:_0x52e967['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x800dce=_0x52e967['graveyardPosition'],_0x35856a=_0x52e967['splitPosition']['parent'];_0x52e967['_execute']();const _0x19e5fc=_0x35856a['getAttribute']('vid_end'),_0x408e94=_0x52e967['insertionPosition']['nodeAfter'];if(_0x800dce){const _0x3e54f3=_0x408e94['getAttribute']('vid_end'),_0x411d38=_0x35856a['getAttribute']('vid_end');_0x35856a['_setAttribute']('vid_end',_0x3e54f3),_0x408e94['_setAttribute']('vid_end',_0x411d38),this['_touched']['set'](_0x35856a['getAttribute']('vid_end'),{'userId':_0x3fcbc6}),this['_touched']['set'](_0x408e94['getAttribute']('vid_start'),{'userId':_0x3fcbc6});}else{const _0x2a2270=this['_revisionId']++,_0x27866a=this['_revisionId']++;_0x35856a['_setAttribute']('vid_end',_0x2a2270),_0x408e94['_setAttribute']('vid_start',_0x27866a),_0x408e94['_setAttribute']('vid_end',_0x19e5fc),this['_touched']['set'](_0x2a2270,{'userId':_0x3fcbc6}),this['_touched']['set'](_0x27866a,{'userId':_0x3fcbc6});}}['_handleMarkerOperation'](_0x21a6c5){if(!_0x21a6c5['affectsData'])return;const _0x49a4a8=(_0x21a6c5=this['_cloneOperation'](_0x21a6c5,this['_diffRoots']))['oldRange']?_0x21a6c5['oldRange']['root']:null,_0x1ea242=_0x21a6c5['newRange']?_0x21a6c5['newRange']['root']:null;_0x49a4a8&&this['_markers']['delete'](_0x21a6c5['name']),_0x1ea242&&this['_markers']['set'](_0x21a6c5['name'],_0x21a6c5['newRange']['clone']());const _0x520fa0=null===_0x21a6c5['_authorId']?null:_0x21a6c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1dc24c=_0x21a6c5['name'];if(!this['_touchedMarkers']['has'](_0x1dc24c))return void this['_touchedMarkers']['set'](_0x1dc24c,{'range':_0x21a6c5['oldRange'],'userId':_0x520fa0});const _0x122ae5=this['_touchedMarkers']['get'](_0x1dc24c),_0x4950d4=_0x122ae5['range'],_0x10ebda=_0x21a6c5['newRange'];null==_0x4950d4&&null==_0x10ebda||_0x4950d4&&_0x10ebda&&_0x4950d4['isEqual'](_0x10ebda)?this['_touchedMarkers']['delete'](_0x21a6c5['name']):_0x122ae5['userId']=_0x520fa0;}['_handleRootOperation'](_0x484ac5,_0x6d3e9a){this['_diffRoots']['has'](_0x484ac5['rootName'])?this['_diffRoots']['get'](_0x484ac5['rootName'])['_isAttached']=_0x484ac5['isAdd']:(this['_diffRoots']['set'](_0x484ac5['rootName'],N(_0x484ac5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x484ac5['rootName'],{}),_0x6d3e9a&&this['_idsRoots']['set'](_0x484ac5['rootName'],N(_0x484ac5['rootName'],!0x0)));const _0x55a1f6=null===_0x484ac5['_authorId']?null:_0x484ac5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47560c=this['_touchedRoots']['get'](_0x484ac5['rootName']);_0x47560c&&_0x47560c['userId']===_0x55a1f6?this['_touchedRoots']['delete'](_0x484ac5['rootName']):this['_touchedRoots']['set'](_0x484ac5['rootName'],{'userId':_0x55a1f6,'isAttached':_0x484ac5['isAdd']});}['_handleRootAttributeOperation'](_0x183f71){const _0x22a558=this['_diffRootsAttributes']['get'](_0x183f71['root']['rootName']);null===_0x183f71['newValue']?delete _0x22a558[_0x183f71['key']]:_0x22a558[_0x183f71['key']]=_0x183f71['newValue'];}}function x(_0x2c84aa){const _0x44c9f5=N(_0x2c84aa['rootName'],_0x2c84aa['isAttached']());for(const _0x512c5d of _0x2c84aa['getChildren']()){const _0x4c33bd=_0x512c5d['_clone'](!0x0);_0x44c9f5['_appendChild'](_0x4c33bd);}return _0x44c9f5;}function N(_0x383444,_0x4a7484=!0x0){const _0xa68d68=new _0x274a40();return _0xa68d68['rootName']=_0x383444,_0xa68d68['_isAttached']=_0x4a7484,_0xa68d68['isAttached']=()=>_0xa68d68['_isAttached'],_0xa68d68;}function P(_0x5493f5,_0x11b059,_0x23b91c){const _0x58d5f5='elementEnd'==_0x5493f5['type']?_0x23b91c['createPositionAt'](_0x5493f5['item'],'end'):_0x23b91c['createPositionBefore'](_0x5493f5['item']);return _0x23b91c['createPositionFromPath'](_0x11b059,_0x58d5f5['path'],_0x58d5f5['stickiness']);}function V(_0x2bf066,_0x632d40,_0x161f5c){const _0x16da21='elementStart'==_0x2bf066['type']?_0x161f5c['createPositionAt'](_0x2bf066['item'],0x0):_0x161f5c['createPositionAfter'](_0x2bf066['item']);return _0x161f5c['createPositionFromPath'](_0x632d40,_0x16da21['path'],_0x16da21['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x402a4e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x17aa2d){super(),this['id']=_0x17aa2d['id']||_0xc9fc17(),this['author']=_0x17aa2d['author'],this['type']=_0x17aa2d['type'],this['data']=_0x17aa2d['data']||{},this['rootName']=_0x17aa2d['rootName'],this['set']('createdAt',_0x17aa2d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x54fffb,_0x6d728e){this['newRevisionId']=_0x54fffb,this['oldRevisionId']=_0x6d728e,this['changes']=new _0x56fe88();}['_setChanges'](_0x4b9def){for(const _0x287def of _0x4b9def)this['changes']['add'](_0x287def);}}class u extends _0x1f6d35{['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[_0x3acc3,_0x385662,S,$];}constructor(_0x2002d9){super(_0x2002d9),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',(_0x2be65f,_0x1ac7a8,_0x4968e2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x507ae4=>{for(const _0x1fa0ae of this['editor']['editing']['view']['document']['roots'])_0x4968e2?_0x507ae4['removeClass']('ck-editor__editable__overlay',_0x1fa0ae):_0x507ae4['addClass']('ck-editor__editable__overlay',_0x1fa0ae);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2615dc=>null!==_0x2615dc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x271f7c,_0x3be69a,_0x224b6d)=>_0x271f7c&&_0x224b6d?_0x3be69a['changes']['getIndex'](_0x224b6d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x135b87,_0x543b9b)=>_0x135b87?_0x543b9b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x385662);}['init'](){const _0x4bdff3=this['editor'],_0x518182=new rt(_0x4bdff3,{'direction':'backward'}),_0x5487f3=new rt(_0x4bdff3,{'direction':'forward'});(_0x4bdff3['commands']['add']('showPreviousChange',_0x518182),_0x4bdff3['commands']['add']('showNextChange',_0x5487f3),_0x4bdff3['commands']['add']('restoreRevision',new nt(_0x4bdff3)),this['on']('change:numberOfChanges',()=>{_0x518182['refresh'](),_0x5487f3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4bdff3['enableReadOnlyMode']('revision-viewer'),_0x4bdff3['plugins']['has']('WidgetToolbarRepository'))&&_0x4bdff3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x31c583){return await this['_utils']['loadRevisionData'](_0x31c583,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31c583);}async['getRevisionRootsAttributes'](_0x1333f4){return await this['_utils']['loadRevisionData'](_0x1333f4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1333f4);}async['compare'](_0x2a7c19,_0x32cf8e,_0x352f3e=!0x1){if(!this['isEnabled'])return;const _0x54941=this['diff'],_0x328bb3=this['repository'],_0x515667='string'==typeof _0x2a7c19?_0x328bb3['getRevision'](_0x2a7c19):_0x2a7c19,_0x74690c='string'==typeof _0x32cf8e?_0x328bb3['getRevision'](_0x32cf8e):_0x32cf8e,_0x2f1ace=_0x515667['id'],_0x437a0c=_0x74690c?_0x74690c['id']:null;if(!_0x352f3e&&this['diff']&&this['diff']['newRevisionId']===_0x2f1ace&&this['diff']['oldRevisionId']===_0x437a0c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2f1ace,_0x437a0c);const _0xbeacd6=this['_getRevisionsRange'](_0x515667,_0x74690c,!0x0)['map'](_0x1cdf18=>this['_utils']['loadRevisionData'](_0x1cdf18,this['adapter']));return _0xbeacd6['push'](new Promise(_0x3adaa1=>{setTimeout(_0x3adaa1,0x14);})),Promise['all'](_0xbeacd6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4210b4=this['_getDiff'](_0x2f1ace,_0x437a0c);for(const _0x45b45f of _0x4210b4['changes'])this['_changeIdToChange']['set'](_0x45b45f['id'],_0x45b45f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1e587f=>{for(const _0x14e5ae of this['editor']['model']['document']['getRootNames']())_0x1e587f['detachRoot'](_0x14e5ae);for(const _0x3dbbad of Object['keys'](_0x4210b4['model'])){const _0x1112a7=_0x1e587f['addRoot'](_0x3dbbad);for(const _0x46da72 of Object['keys'](_0x4210b4['attributes'][_0x3dbbad]))_0x1e587f['setAttribute'](_0x46da72,_0x4210b4['attributes'][_0x3dbbad][_0x46da72],_0x1112a7);_0x1e587f['insert'](_0x4210b4['model'][_0x3dbbad],_0x1112a7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4210b4['changes'])),this['isReady']=!0x0;})['catch'](_0x46d88e=>{console['error'](_0x46d88e),this['_cleanUp'](),_0x54941&&(this['diff']=_0x54941),this['isReady']=!0x0;});}['addRevisionData'](_0x4c4d44,_0x1bc765){const _0x6d8884=this['repository']['createRevision'](_0x4c4d44);return _0x6d8884['on']('_update',(_0x2ca650,_0x45b0b1,_0x2796aa)=>_0x1bc765(_0x45b0b1,_0x2796aa,_0x6d8884)),this['repository']['addRevision'](_0x6d8884),_0x6d8884;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x28c842=>{for(const _0x2bf562 of this['editor']['model']['document']['getRootNames']())_0x28c842['detachRoot'](_0x2bf562);});}['_sortAndFilterDiffChanges'](_0x27492c){const _0x1b8328=[],_0xb55706=new Map();for(const _0x2f7f2e of this['editor']['model']['document']['getRootNames']()){const _0x217bdd=this['editor']['editing']['view']['getDomRoot'](_0x2f7f2e);if(!_0x217bdd)continue;const _0x4e6287=_0x217bdd['getClientRects']()['item'](0x0);_0x4e6287&&(_0x1b8328['push'](_0x2f7f2e),_0xb55706['set'](_0x2f7f2e,_0x4e6287));}return _0x1b8328['sort']((_0x28e384,_0x5e84ac)=>{const _0x8c7f09=_0xb55706['get'](_0x28e384),_0xe9ad47=_0xb55706['get'](_0x5e84ac);return _0x8c7f09['y']-_0xe9ad47['y']||_0x8c7f09['x']-_0xe9ad47['x'];}),(_0x27492c=_0x27492c['filter'](_0x3bca7b=>_0x1b8328['includes'](_0x3bca7b['rootName'])))['sort']((_0x2624bf,_0x30fd5b)=>_0x1b8328['indexOf'](_0x2624bf['rootName'])-_0x1b8328['indexOf'](_0x30fd5b['rootName'])),_0x27492c;}['_makeTape'](_0x1c520a){const _0x56cd80=Array['from'](_0x1c520a['markers'])['filter'](([_0x40caa0,_0x1eb241])=>_0x40caa0['startsWith']('revision:')&&!_0x1eb241['isCollapsed']),_0x156676=Array['from'](this['editor']['model']['createRangeIn'](_0x1c520a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56cd80['length'])for(const _0xd1c379 of _0x156676){const [_0xcf46c1,_0x1faafe]=_0x56cd80[0x0],[,_0x306ab1,_0x272d8f]=_0xcf46c1['split'](':');if(_0x1faafe['end']['isEqual'](_0xd1c379['nextPosition'])&&_0x56cd80['shift'](),(_0xd1c379['previousPosition']['isEqual'](_0x1faafe['start'])||_0xd1c379['previousPosition']['isAfter'](_0x1faafe['start']))&&('insertion'==_0x306ab1?_0xd1c379['isAdded']={'userId':_0x272d8f}:'deletion'==_0x306ab1&&(_0xd1c379['isRemoved']={'userId':_0x272d8f})),0x0==_0x56cd80['length'])break;}return _0x156676;}['_refreshStartEndIndex'](_0x3cbc2c){const _0x92f275=new Map();for(let _0x4c4150=0x0;_0x4c4150<_0x3cbc2c['length'];_0x4c4150++)'text'===_0x3cbc2c[_0x4c4150]['type']?(_0x3cbc2c[_0x4c4150]['item']['startIndex']=_0x4c4150,_0x3cbc2c[_0x4c4150]['item']['endIndex']=_0x4c4150):('elementStart'===_0x3cbc2c[_0x4c4150]['type']?_0x3cbc2c[_0x4c4150]['item']['startIndex']=_0x4c4150:'elementEnd'===_0x3cbc2c[_0x4c4150]['type']&&(_0x3cbc2c[_0x4c4150]['item']['endIndex']=_0x4c4150),_0x92f275['set'](_0x3cbc2c[_0x4c4150]['id'],_0x4c4150));for(const _0x1a05fc of _0x92f275['values']())'elementStart'===_0x3cbc2c[_0x1a05fc]['type']?_0x3cbc2c[_0x1a05fc]['item']['endIndex']=_0x92f275['get'](_0x3cbc2c[_0x1a05fc]['pairId']):'elementEnd'===_0x3cbc2c[_0x1a05fc]['type']&&(_0x3cbc2c[_0x1a05fc]['item']['startIndex']=_0x92f275['get'](_0x3cbc2c[_0x1a05fc]['pairId']));}['_processTape'](_0x5573b1){for(let _0x111207=0x0;_0x111207<_0x5573b1['length'];_0x111207++){if('elementStart'===_0x5573b1[_0x111207]['type'])_0x5573b1[_0x111207]['item']['startIndex']=_0x111207;else{if('elementEnd'===_0x5573b1[_0x111207]['type']){_0x5573b1[_0x111207]['item']['endIndex']=_0x111207;const _0x24fb57=_0x5573b1[_0x111207]['item']['startIndex'];_0x5573b1[_0x24fb57]['pairId']=_0x5573b1[_0x111207]['id'],_0x5573b1[_0x111207]['pairId']=_0x5573b1[_0x24fb57]['id'];}else _0x5573b1[_0x111207]['item']['startIndex']=_0x111207,_0x5573b1[_0x111207]['item']['endIndex']=_0x111207,_0x5573b1[_0x111207]['pairId']=null;}_0x5573b1[_0x111207]['markersStart']||(_0x5573b1[_0x111207]['markersStart']=[],_0x5573b1[_0x111207]['markersEnd']=[]);}}['_markInsertions'](_0x6fbe64,_0x5d5f57){const _0x130831=_0x6fbe64['filter'](_0x27e0aa=>!_0x27e0aa['isAdded']);for(let _0x30deb6=0x0;_0x30deb6<_0x5d5f57['length'];_0x30deb6++)_0x5d5f57[_0x30deb6]['isAdded']&&(_0x130831[_0x30deb6]['isAdded']=_0x5d5f57[_0x30deb6]['isAdded']);}['_getDiff'](_0x22774b,_0x31e119=null){const _0x4421af=this['repository']['getRevision'](_0x22774b),_0x29de08=_0x31e119?this['repository']['getRevision'](_0x31e119):null,_0x14662f=this['_getRevisionsRange'](_0x4421af,_0x29de08),_0x44187d=_0x14662f[_0x14662f['length']-0x1],_0xa74e98=new Map(),_0x31b79b={'model':{},'attributes':{},'changes':[]},_0x3d8bec=new Set(),_0x163ab4=new Map();for(let _0x20c123=_0x14662f['length']-0x1;_0x20c123>=0x0;_0x20c123--){const _0x59543b=_0x14662f[_0x20c123];for(const _0x36a35a of Object['keys'](_0x59543b['diffData']))if(_0x59543b['diffData'][_0x36a35a]['attachChange']){const _0x14cc2d=_0x59543b['diffData'][_0x36a35a]['attachChange'];_0x14cc2d['isAttached']?(_0x3d8bec['add'](_0x36a35a),_0x163ab4['has'](_0x36a35a)&&_0x163ab4['get'](_0x36a35a)['userId']==_0x14cc2d['userId']?_0x163ab4['delete'](_0x36a35a):_0x163ab4['set'](_0x36a35a,_0x14cc2d)):_0x163ab4['has'](_0x36a35a)?(_0x3d8bec['delete'](_0x36a35a),_0x163ab4['delete'](_0x36a35a)):(_0x3d8bec['add'](_0x36a35a),_0x163ab4['set'](_0x36a35a,_0x14cc2d));}else _0x3d8bec['add'](_0x36a35a);}for(const _0x2121ed of _0x3d8bec){const _0x2f9214=_0x163ab4['has'](_0x2121ed)&&!_0x163ab4['get'](_0x2121ed)['isAttached'];let _0x88e79e=_0x2f9214?_0x14662f['length']-0x1:0x0;const _0x119d41=_0x2f9214?-0x1:0x1;for(;_0x14662f[_0x88e79e];){const _0x492eca=_0x14662f[_0x88e79e];if(_0x492eca['diffData'][_0x2121ed]){const _0x4409b2=_0x2f9214?_0x492eca['diffData'][_0x2121ed]['attributesBefore']:_0x492eca['diffData'][_0x2121ed]['attributesAfter'];_0x31b79b['attributes'][_0x2121ed]=_0x4409b2?_0x3d9550(_0x4409b2):{};break;}_0x88e79e+=_0x119d41;}}for(const _0x5d90d0 of _0x14662f){_0x5d90d0['model']={};for(const _0x523ee3 of _0x5d90d0['authors'])_0xa74e98['set'](_0x523ee3['id'],_0x523ee3);for(const _0x39a50c of _0x3d8bec){const _0x2bb91c=_0x5d90d0['diffData'][_0x39a50c]?_0x5d90d0['diffData'][_0x39a50c]['insertions']:'[]',_0x16e58f=_0x5d90d0['diffData'][_0x39a50c]?_0x5d90d0['diffData'][_0x39a50c]['deletions']:'[]';_0x5d90d0['model'][_0x39a50c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2bb91c),'deletions':this['_utils']['_makeModelFromViewString'](_0x16e58f)};}}for(const _0x4e0a39 of _0x3d8bec){let _0x594aff=null,_0x11925d=0x0;const _0x472784=new Map(Array['from'](_0x4421af['model'][_0x4e0a39]['insertions']['markers'])['filter'](([_0x2f2da3])=>!_0x2f2da3['startsWith']('revision:')));let _0x4adbce=0x0;for(const _0x4789e3 of _0x14662f){const _0xfc3855=this['_makeTape'](_0x4789e3['model'][_0x4e0a39]['insertions']);_0x4789e3==_0x4421af?(_0x594aff=_0xfc3855,_0x11925d=_0x594aff['length'],_0x594aff['forEach'](_0x1f6ccd=>{_0x1f6ccd['id']=_0x4adbce++;}),this['_processTape'](_0x594aff)):this['_markInsertions'](_0x594aff,_0xfc3855);const _0xddd7a=_0x594aff['filter'](_0x57996f=>!_0x57996f['isAdded'])['map'](_0x16a36a=>_0x16a36a['id']);let _0x6f7e63=0x0;const _0x514dcd=this['_makeTape'](_0x4789e3['model'][_0x4e0a39]['deletions']);_0x514dcd['forEach'](_0x3ba3a1=>{_0x3ba3a1['isRemoved']?_0x3ba3a1['id']=_0x11925d++:_0x3ba3a1['id']=_0xddd7a[_0x6f7e63++];}),this['_processTape'](_0x514dcd),this['_setDistance'](_0x594aff,'isAdded'),this['_setDistance'](_0x514dcd,'isRemoved'),_0x4789e3==_0x4421af&&this['_markMarkers'](_0x594aff,_0x472784),_0x594aff=this['_joinTapes'](_0x594aff,_0x514dcd),this['_refreshStartEndIndex'](_0x594aff),this['_setDistance'](_0x594aff,'isRemoved');}_0x594aff=_0x594aff['filter'](_0xc3b813=>!(_0xc3b813['isAdded']&&_0xc3b813['isRemoved']));const _0x23685e=new Map(_0x44187d['model'][_0x4e0a39]['deletions']['markers']),_0x3e1fc3=new Set(_0x472784['keys']());for(const _0x4e8ede of _0x23685e['keys']())_0x3e1fc3['delete'](_0x4e8ede);this['_markSuggestions'](_0x594aff,_0x3e1fc3),this['_fixObsoleteTags'](_0x594aff),_0x594aff=this['_removeMissingPairs'](_0x594aff),_0x594aff=this['_markMismatchedRemovedTags'](_0x594aff),_0x594aff=this['_removeUnsupportedChanges'](_0x594aff);const {root:_0x51e1fa,changes:_0x582347}=this['_makeModelFromTape'](_0x594aff,_0xa74e98,_0x4e0a39);_0x31b79b['model'][_0x4e0a39]=_0x51e1fa;const _0x2b5329=_0x163ab4['get'](_0x4e0a39);if(_0x2b5329){const _0x5dad17=_0xa74e98['get'](_0x2b5329['userId']),_0x563da1=new G({'author':_0x5dad17,'type':_0x2b5329['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4e0a39});_0x582347['unshift'](_0x563da1),_0x31b79b['attributes'][_0x4e0a39]['revisionHistoryAttachChange']=_0x563da1['id'];}_0x31b79b['changes']=_0x31b79b['changes']['concat'](_0x582347);}return _0x31b79b;}['_markMarkers'](_0x158cd0,_0x5763f2){for(let _0x5151b9=0x0;_0x5151b9<_0x158cd0['length'];_0x5151b9++)for(const [_0x416c05,_0x32c82a]of _0x5763f2)!_0x32c82a['isCollapsed']&&_0x32c82a['start']['isEqual'](_0x158cd0[_0x5151b9]['previousPosition'])&&_0x158cd0[_0x5151b9]['markersStart']['push'](_0x416c05),_0x32c82a['end']['isEqual'](_0x158cd0[_0x5151b9]['nextPosition'])&&_0x158cd0[_0x5151b9]['markersEnd']['push'](_0x416c05);}['_joinTapes'](_0x3c11f5,_0x374eb1){let _0x102b79=[],_0x41eca3=0x0,_0xc9a529=0x0;for(;_0x41eca3<_0x3c11f5['length']||_0xc9a529<_0x374eb1['length'];){const _0x27dca4=_0x3c11f5[_0x41eca3]||{},_0x13114e=_0x374eb1[_0xc9a529]||{};if(_0x27dca4['id']==_0x13114e['id'])_0x41eca3++,_0xc9a529++,_0x102b79['push'](_0x27dca4);else{if(_0x13114e['isRemoved']&&_0x27dca4['isAdded']){const {commonTape:_0x558220,iEnd:_0xd91ccb,jEnd:_0x106b68}=this['_threeWayMerge'](_0x3c11f5,_0x41eca3,_0x374eb1,_0xc9a529);_0x102b79=_0x102b79['concat'](_0x558220),_0x41eca3=_0xd91ccb,_0xc9a529=_0x106b68;}else _0x13114e['isRemoved']?(_0xc9a529++,_0x102b79['push'](_0x13114e)):(_0x41eca3++,_0x102b79['push'](_0x27dca4));}}return _0x102b79;}['_markSuggestions'](_0x21951e,_0x231748){const _0xb0d590=[];for(let _0x4c2bc2=0x0;_0x4c2bc2<_0x21951e['length'];_0x4c2bc2++){for(let _0x59406f=0x0;_0x59406f<_0x21951e[_0x4c2bc2]['markersStart']['length'];_0x59406f++){const _0x499eb6=_0x21951e[_0x4c2bc2]['markersStart'][_0x59406f];if(!_0x231748['has'](_0x499eb6))continue;const {group:_0x10bc7d,type:_0x5371e0,authorId:_0x16014a}=_0x1405a5(_0x499eb6);'revision-suggestion'!=_0x10bc7d||'insertion'!=_0x5371e0&&'deletion'!=_0x5371e0||(_0xb0d590['unshift']({'type':_0x5371e0,'name':_0x499eb6,'userId':_0x16014a}),_0x21951e[_0x4c2bc2]['markersStart']['splice'](_0x59406f,0x1),_0x59406f--);}_0x2d0b50(_0x21951e[_0x4c2bc2]);for(let _0x15ecd1=0x0;_0x15ecd1<_0x21951e[_0x4c2bc2]['markersEnd']['length'];_0x15ecd1++){const _0x262402=_0x21951e[_0x4c2bc2]['markersEnd'][_0x15ecd1];if(!_0x231748['has'](_0x262402))continue;const {group:_0x12608d,type:_0x39168e}=_0x1405a5(_0x262402);if('revision-suggestion'!=_0x12608d||'insertion'!=_0x39168e&&'deletion'!=_0x39168e)continue;_0x21951e[_0x4c2bc2]['markersEnd']['splice'](_0x15ecd1,0x1),_0x15ecd1--;const _0x3787fb=_0xb0d590['findIndex'](_0x31c5ac=>_0x31c5ac['name']==_0x262402);_0x3787fb>-0x1&&_0xb0d590['splice'](_0x3787fb,0x1);}}function _0x1405a5(_0xfd20ae){const _0x43cee8=_0xfd20ae['split'](':');return{'group':_0x43cee8[0x0],'type':_0x43cee8[0x1],'subType':_0x43cee8['length']>=0x5?_0x43cee8[0x2]:null,'id':_0x43cee8['length']<0x5?_0x43cee8[0x2]:_0x43cee8[0x3],'authorId':_0x43cee8['length']<0x5?_0x43cee8[0x3]:_0x43cee8[0x4],'markerCount':0x6==_0x43cee8['length']?_0x43cee8[0x5]:null};}function _0x2d0b50(_0x3cf5b7){for(let _0x5c0d37=0x0;_0x5c0d37<_0xb0d590['length'];_0x5c0d37++){if(_0x3cf5b7['isAdded']&&'insertion'==_0xb0d590[_0x5c0d37]['type']&&_0x3cf5b7['isAdded']['userId']==_0xb0d590[_0x5c0d37]['userId'])return _0x3cf5b7['isAddSuggestion']=_0xb0d590[_0x5c0d37],void delete _0x3cf5b7['isAdded'];if(!_0x3cf5b7['isAdded']&&!_0x3cf5b7['isRemoved']&&'deletion'==_0xb0d590[_0x5c0d37]['type'])return void(_0x3cf5b7['isRemoveSuggestion']=_0xb0d590[_0x5c0d37]);}}}['_setDistance'](_0x2f6118,_0x49ce4c){let _0x399527=0x0,_0xc73ae3=!0x1;const _0x3d9013=new Map();for(const _0x41bf71 of _0x2f6118)_0x41bf71[_0x49ce4c]?_0xc73ae3&&(_0x399527++,_0xc73ae3=!0x1):(_0x399527++,_0xc73ae3=!0x0),_0x3d9013['set'](_0x41bf71['id'],_0x399527);for(let _0x22ac71=0x0;_0x22ac71<_0x2f6118['length'];_0x22ac71++){if('isRemoved'==_0x49ce4c&&_0x2f6118[_0x22ac71]['isAdded']||'isAdded'==_0x49ce4c&&_0x2f6118[_0x22ac71]['isRemoved'])continue;if('text'==_0x2f6118[_0x22ac71]['type']){_0x2f6118[_0x22ac71]['distance']=0x0;continue;}const _0xb18993=_0x3d9013['get'](_0x2f6118[_0x22ac71]['pairId']),_0x23dc09=_0x3d9013['get'](_0x2f6118[_0x22ac71]['id']);_0x2f6118[_0x22ac71]['distance']=_0xb18993-_0x23dc09;}}['_getRevisionsRange'](_0x4bc3c1,_0xfec466,_0x2b4632=!0x1){const _0x38677c=[];let _0x47b49c=this['repository']['getIndex'](_0x4bc3c1),_0x3bc965=this['repository']['getIndex'](_0xfec466);for(-0x1==_0x3bc965&&(_0x3bc965=this['repository']['_revisions']['length'],_0x2b4632=!0x1);_0x47b49c<_0x3bc965;)_0x38677c['push'](this['repository']['getRevision'](_0x47b49c)),_0x47b49c++;return _0x2b4632&&_0x38677c['push'](this['repository']['getRevision'](_0x47b49c)),_0x38677c;}['_threeWayMerge'](_0x544045,_0x12dcf8,_0x3fc719,_0x389427){const _0x4ad019=this['editor']['model']['schema'];let _0x4e52ad=_0x12dcf8;for(;_0x544045[_0x4e52ad]&&_0x544045[_0x4e52ad]['isAdded'];)_0x4e52ad++;let _0x162de4=_0x389427;for(;_0x3fc719[_0x162de4]&&_0x3fc719[_0x162de4]['isRemoved'];)_0x162de4++;_0x39b3b8(_0x544045,_0x12dcf8,_0x4e52ad),_0x39b3b8(_0x3fc719,_0x389427,_0x162de4);const _0x40dcf0=_0x3fc719['slice'](_0x389427,_0x162de4)['concat'](_0x544045['slice'](_0x12dcf8,_0x4e52ad));return _0x40dcf0['sort']((_0x44db73,_0xedd79d)=>_0x44db73['side']!=_0xedd79d['side']?_0x44db73['side']-_0xedd79d['side']:_0x44db73['level']!=_0xedd79d['level']?_0x44db73['level']-_0xedd79d['level']:_0x44db73['distance']!=_0xedd79d['distance']?_0xedd79d['distance']-_0x44db73['distance']:!!_0x44db73['isAdded']!=!!_0xedd79d['isAdded']?-0x1==_0x44db73['side']||0x0==_0x44db73['side']?_0x44db73['isAdded']?-0x1:0x1:_0x44db73['isAdded']?0x1:-0x1:_0x44db73['index']-_0xedd79d['index']),{'commonTape':_0x40dcf0,'iEnd':_0x4e52ad,'jEnd':_0x162de4};function _0x39b3b8(_0xe138b3,_0x3a2268,_0x56091c){let _0x3425ab=-0x1,_0x3c5872=Number['POSITIVE_INFINITY'],_0x4582ac=!0x0;for(let _0x4c8e25=_0x3a2268;_0x4c8e25<_0x56091c;_0x4c8e25++)if(_0x4ad019['isInline'](_0xe138b3[_0x4c8e25]['item'])||(_0x4582ac=!0x1),_0xe138b3[_0x4c8e25]['item']['startIndex']<_0x3a2268&&(_0x3425ab=_0x4c8e25),_0xe138b3[_0x4c8e25]['item']['endIndex']>=_0x56091c){_0x3c5872=_0x4c8e25;break;}_0x4582ac&&(_0x3425ab=_0x56091c-0x1);for(let _0x455342=_0x3a2268;_0x455342<_0x56091c;_0x455342++)_0xe138b3[_0x455342]['side']=_0x455342<=_0x3425ab?-0x1:_0x455342<_0x3c5872?0x0:0x1,_0xe138b3[_0x455342]['index']=_0x455342;let _0x496725=0x0;for(let _0x4f8c48=_0x3a2268;_0x4f8c48<=_0x3425ab;_0x4f8c48++)0x0==_0xe138b3[_0x4f8c48]['distance']?_0xe138b3[_0x4f8c48]['level']=_0x496725:(_0x496725++,_0xe138b3[_0x4f8c48]['level']=_0x496725,_0x496725++);for(let _0x1affef=_0x3a2268;_0x1affef<_0x56091c;_0x1affef++)0x0==_0xe138b3[_0x1affef]['side']&&(_0xe138b3[_0x1affef]['level']=_0x496725);_0x496725=0x0;for(let _0x5de3fb=_0x56091c-0x1;_0x5de3fb>=_0x3c5872;_0x5de3fb--)0x0==_0xe138b3[_0x5de3fb]['distance']?_0xe138b3[_0x5de3fb]['level']=_0x496725:(_0x496725--,_0xe138b3[_0x5de3fb]['level']=_0x496725,_0x496725--);}}['_fixObsoleteTags'](_0x4e50ac){const _0xb4a128=new Map(),_0x17856a=this['editor']['model']['schema'];for(let _0x40eb2a=0x1;_0x40eb2a<_0x4e50ac['length'];_0x40eb2a++){let _0x30c6e9,_0x496c5f,_0x556c63;const _0x592bc6=_0x4e50ac[_0x40eb2a],_0xeefb6b=_0x4e50ac[_0x40eb2a-0x1];if('text'==_0x592bc6['type'])continue;if(_0x592bc6['type']!=_0xeefb6b['type'])continue;if(!_0x17856a['isBlock'](_0xeefb6b['item'])||_0x17856a['isLimit'](_0xeefb6b['item']))continue;if(!_0x17856a['isBlock'](_0x592bc6['item'])||_0x17856a['isLimit'](_0x592bc6['item']))continue;if((_0x4e50ac[_0x40eb2a]['isAdded']||_0x4e50ac[_0x40eb2a]['isAddSuggestion'])&&_0x4e50ac[_0x40eb2a-0x1]['isRemoved'])_0x30c6e9=_0x4e50ac[_0x40eb2a],_0x496c5f=_0x4e50ac[_0x40eb2a-0x1],_0x556c63=_0x40eb2a-0x1;else{if(!_0x4e50ac[_0x40eb2a]['isRemoved']||!_0x4e50ac[_0x40eb2a-0x1]['isAdded']&&!_0x4e50ac[_0x40eb2a-0x1]['isAddSuggestion'])continue;_0x30c6e9=_0x4e50ac[_0x40eb2a-0x1],_0x496c5f=_0x4e50ac[_0x40eb2a],_0x556c63=_0x40eb2a;}const _0x3085c5=_0x30c6e9['level']==_0x496c5f['level'],_0x3f045e=Math['abs'](_0x30c6e9['level'])<Math['abs'](_0x496c5f['level'])&&0x0==_0x496c5f['distance'];(_0x3085c5||_0x3f045e)&&(_0xb4a128['set'](_0x496c5f['id'],_0x30c6e9['id']),_0x4e50ac['splice'](_0x556c63,0x1),_0x40eb2a--,_0x30c6e9['isAdded']=!0x1);}for(let _0x5ea7f9=0x0;_0x5ea7f9<_0x4e50ac['length'];_0x5ea7f9++)_0xb4a128['has'](_0x4e50ac[_0x5ea7f9]['pairId'])&&(_0x4e50ac[_0x5ea7f9]['pairId']=_0xb4a128['get'](_0x4e50ac[_0x5ea7f9]['pairId']));}['_removeMissingPairs'](_0xf30ad6){const _0x35062c=new Set(_0xf30ad6['map'](_0x37ef28=>_0x37ef28['id']));for(let _0xd7b96e=0x0;_0xd7b96e<_0xf30ad6['length'];_0xd7b96e++)_0x35062c['has'](_0xf30ad6[_0xd7b96e]['pairId'])||0x0==_0xf30ad6[_0xd7b96e]['distance']||(_0xf30ad6[_0xd7b96e]['isIncorrect']=!0x0);return _0xf30ad6['filter'](_0x15d5cd=>!_0x15d5cd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x33d499){const _0x4a7eeb=new Set();for(let _0x1a1f85=0x0;_0x1a1f85<_0x33d499['length'];_0x1a1f85++){if(_0x4a7eeb['has'](_0x33d499[_0x1a1f85]['id'])&&_0x33d499[_0x1a1f85]['isRemoved']&&(_0x33d499[_0x1a1f85]['isIncorrect']=!0x0),_0x33d499[_0x1a1f85]['isIncorrect'])continue;if(0x0==_0x33d499[_0x1a1f85]['distance'])continue;if('elementStart'!=_0x33d499[_0x1a1f85]['type'])continue;if(null==_0x33d499[_0x1a1f85]['pairId'])continue;let _0x15dff3=_0x1a1f85+0x1,_0x265225=0x0;for(;_0x33d499[_0x15dff3]['id']!=_0x33d499[_0x1a1f85]['pairId'];)'elementStart'==_0x33d499[_0x15dff3]['type']?_0x265225++:'elementEnd'==_0x33d499[_0x15dff3]['type']&&_0x265225--,_0x15dff3++;if(0x0!=_0x265225){if(_0x33d499[_0x1a1f85]['isRemoved'])_0x33d499[_0x1a1f85]['isIncorrect']=!0x0;else{for(;_0x15dff3!=_0x1a1f85;)_0x33d499[_0x15dff3]['isRemoved']&&0x0!=_0x33d499[_0x15dff3]['distance']&&(_0x33d499[_0x15dff3]['isIncorrect']=!0x0,_0x4a7eeb['add'](_0x33d499[_0x15dff3]['pairId'])),_0x15dff3--;}}}return _0x33d499['filter'](_0x22617f=>!_0x22617f['isIncorrect']);}['_removeUnsupportedChanges'](_0x1d7c7d){const _0x51c027=this['editor']['model']['schema'];for(let _0x33eb28=0x0;_0x33eb28<_0x1d7c7d['length'];_0x33eb28++){if(!(_0x1d7c7d[_0x33eb28]['isAdded']||_0x1d7c7d[_0x33eb28]['isAddSuggestion']||_0x1d7c7d[_0x33eb28]['isRemoved']||_0x1d7c7d[_0x33eb28]['isRemoveSuggestion']))continue;if(0x0==_0x1d7c7d[_0x33eb28]['distance'])continue;const _0x4b6a94=_0x1d7c7d[_0x33eb28]['item'];_0x51c027['isBlock'](_0x4b6a94)||_0x51c027['isLimit'](_0x4b6a94)||(_0x1d7c7d[_0x33eb28]['isAdded']&&delete _0x1d7c7d[_0x33eb28]['isAdded'],_0x1d7c7d[_0x33eb28]['isAddSuggestion']&&delete _0x1d7c7d[_0x33eb28]['isAddSuggestion'],_0x1d7c7d[_0x33eb28]['isRemoveSuggestion']&&delete _0x1d7c7d[_0x33eb28]['isRemoveSuggestion'],_0x1d7c7d[_0x33eb28]['isRemoved']&&(_0x1d7c7d[_0x33eb28]['isIncorrect']=!0x0));}return _0x1d7c7d['filter'](_0xaa7954=>!_0xaa7954['isIncorrect']);}['_makeModelFromTape'](_0x5839bd,_0x4d3037,_0x519c7d){const _0x125307=new _0x274a40(),_0x485e65=[],_0x4cf407=new Map(),_0x3e60f1=this['editor']['model'],_0xbeb97c=_0x3e60f1['schema'],_0x556b01=[_0x125307],_0x428906={},_0x255e86={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x44df58=null;const _0x4d104a=[0x0];for(let _0x3022bf=0x0;_0x3022bf<_0x5839bd['length'];_0x3022bf++)if('elementStart'===_0x5839bd[_0x3022bf]['type']){_0x5839bd[_0x3022bf]['previousPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a);const _0x479c30=new _0x19d0e1(_0x5839bd[_0x3022bf]['item']['name'],_0x5839bd[_0x3022bf]['item']['getAttributes']());_0x556b01[0x0]['_appendChild'](_0x479c30),_0x4d104a['push'](0x0),_0x556b01['unshift'](_0x479c30),_0x5839bd[_0x3022bf]['nextPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a);}else'elementEnd'===_0x5839bd[_0x3022bf]['type']?(_0x556b01['shift'](),_0x5839bd[_0x3022bf]['previousPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a),_0x4d104a['pop'](),_0x4d104a[_0x4d104a['length']-0x1]++,_0x5839bd[_0x3022bf]['nextPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a)):(_0x5839bd[_0x3022bf]['previousPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a),_0x44df58?_0x44df58['_data']+=_0x5839bd[_0x3022bf]['item']['data']:_0x44df58=new _0x2fe560(_0x5839bd[_0x3022bf]['item']['data'],_0x5839bd[_0x3022bf]['item']['getAttributes']()),_0x5839bd[_0x3022bf+0x1]&&'text'===_0x5839bd[_0x3022bf+0x1]['type']&&_0x25b35c(_0x44df58,_0x5839bd[_0x3022bf+0x1]['item'])||(_0x556b01[0x0]['_appendChild'](_0x44df58),_0x44df58=null),_0x4d104a[_0x4d104a['length']-0x1]+=_0x5839bd[_0x3022bf]['item']['offsetSize'],_0x5839bd[_0x3022bf]['nextPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a));for(let _0x17124e=0x0;_0x17124e<_0x5839bd['length'];_0x17124e++){const _0x19bf51=_0x5839bd[_0x17124e]['previousPosition'],_0x593937=_0x5839bd[_0x17124e]['nextPosition'];for(const _0x1f3ffd of _0x5839bd[_0x17124e]['markersStart'])_0x4cf407['set'](_0x1f3ffd,{'start':_0x19bf51,'end':null});_0x18cbe4('isRemoveSuggestion',_0x17124e,_0x19bf51,_0x593937),_0x18cbe4('isAddSuggestion',_0x17124e,_0x19bf51,_0x593937),_0x18cbe4('isRemoved',_0x17124e,_0x19bf51,_0x593937),_0x18cbe4('isAdded',_0x17124e,_0x19bf51,_0x593937);for(const _0x49d7bb of _0x5839bd[_0x17124e]['markersEnd']){const _0x160de9=_0x4cf407['get'](_0x49d7bb);_0x160de9?_0x160de9['end']=_0x593937:_0x4cf407['set'](_0x49d7bb,{'start':_0x593937,'end':_0x593937});}}for(const [_0x528865,_0x1f4486]of _0x4cf407){const _0x2731f4=this['editor']['model']['createRange'](_0x1f4486['start'],_0x1f4486['end']);_0x125307['markers']['set'](_0x528865,_0x2731f4);}return _0x485e65['sort']((_0x31682d,_0x43064b)=>{const _0x30ac27=_0x125307['markers']['get']('revision:'+_0x31682d['id']),_0x260343=_0x125307['markers']['get']('revision:'+_0x43064b['id']);return _0x30ac27['start']['isBefore'](_0x260343['start'])?-0x1:_0x30ac27['start']['isAfter'](_0x260343['start'])?0x1:_0x30ac27['end']['isBefore'](_0x260343['end'])?-0x1:_0x30ac27['end']['isAfter'](_0x260343['end'])?0x1:'add'===_0x31682d['type']?-0x1:0x1;}),{'root':_0x125307,'changes':_0x485e65};function _0x18cbe4(_0x1dd036,_0x4fcea7,_0x14b5d8,_0x5d7211){const _0x3df0d1=!!_0x5839bd[_0x4fcea7][_0x1dd036],_0x318be6=_0x3df0d1?_0x5839bd[_0x4fcea7][_0x1dd036]['userId']:null,_0x56e0ee=_0x4fcea7===_0x5839bd['length']-0x1,_0x1d1c9a=_0x255e86[_0x1dd036][0x0],_0xdac15b=_0xbeb97c['isObject'](_0x5839bd[_0x4fcea7]['item']);!_0x428906[_0x1dd036]&&_0x3df0d1?_0x428906[_0x1dd036]={'start':_0x14b5d8,'tapeItem':_0x5839bd[_0x4fcea7],'userId':_0x318be6,'type':_0x1dd036}:_0x428906[_0x1dd036]&&!_0x3df0d1?(_0x428906[_0x1dd036]['end']=_0x14b5d8,_0x22df99(_0x428906[_0x1dd036]),_0x428906[_0x1dd036]=null):_0x428906[_0x1dd036]&&_0x3df0d1&&_0x428906[_0x1dd036]['userId']!==_0x318be6&&(_0x428906[_0x1dd036]['end']=_0x14b5d8,_0x1d1c9a&&_0x1d1c9a['userId']===_0x428906[_0x1dd036]['userId']||_0x22df99(_0x428906[_0x1dd036]),_0x428906[_0x1dd036]={'start':_0x14b5d8,'tapeItem':_0x5839bd[_0x4fcea7],'userId':_0x318be6,'type':_0x1dd036}),_0x428906[_0x1dd036]&&_0xdac15b&&('elementStart'!==_0x5839bd[_0x4fcea7]['type']||_0x1d1c9a&&_0x1d1c9a['userId']===_0x318be6||_0x255e86[_0x1dd036]['unshift']({'userId':_0x318be6,'object':_0x5839bd[_0x4fcea7]['item'],'change':_0x428906[_0x1dd036]}),'elementEnd'===_0x5839bd[_0x4fcea7]['type']&&_0x1d1c9a&&_0x1d1c9a['object']===_0x5839bd[_0x4fcea7]['item']&&(_0x255e86[_0x1dd036]['shift'](),_0x428906[_0x1dd036]=_0x1d1c9a['change'])),_0x428906[_0x1dd036]&&_0x56e0ee&&(_0x428906[_0x1dd036]['end']=_0x5d7211,_0x22df99(_0x428906[_0x1dd036]),_0x428906[_0x1dd036]=null);}function _0x22df99({start:_0x21cc36,end:_0x5d793c,tapeItem:_0x301db6,userId:_0x1d95fb,type:_0x58b912}){const _0x44dd97=_0x301db6['item'],_0xd2d7db=_0x3e60f1['schema']['isBlock'](_0x44dd97)&&!_0x3e60f1['schema']['isLimit'](_0x44dd97),_0x2b0737=_0x21cc36['nodeAfter']==_0x5d793c['parent']&&_0x5d793c['isAtStart'];if(_0xd2d7db&&_0x2b0737)return;const _0x308ac6=_0x3e60f1['createRange'](_0x21cc36,_0x5d793c),_0x34600c=_0x4d3037['get'](_0x1d95fb),_0xdc1649=new G({'author':_0x34600c,'type':'isAdded'==_0x58b912||'isAddSuggestion'==_0x58b912?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x58b912||'isRemoveSuggestion'==_0x58b912},'createdAt':new Date(),'rootName':_0x519c7d});_0x485e65['push'](_0xdc1649),_0x125307['markers']['set']('revision:'+_0xdc1649['id'],_0x308ac6);}function _0x25b35c(_0x2e6668,_0x3ddfca){const _0x5406c7=_0x2e6668['getAttributes'](),_0x19637b=_0x3ddfca['getAttributes']();for(const _0x3b62e8 of _0x5406c7){if(_0x3b62e8[0x1]!==_0x3ddfca['getAttribute'](_0x3b62e8[0x0]))return!0x1;_0x19637b['next']();}return _0x19637b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x148c38=>{const _0x73cfd9=_0x148c38['markerName']['split'](':')[0x1],_0x515039=this['_getChangeFromId'](_0x73cfd9);if(!_0x515039)return null;const _0x47ba9d='add'==_0x515039['type']?'insertion':'deletion',_0x592169=['ck-suggestion-marker','ck-suggestion-marker-'+_0x47ba9d];return _0x515039['data']['isSuggestion']&&_0x592169['push']('ck-suggestion-marker-'+_0x47ba9d+'-new'),this['activeChange']==_0x515039&&_0x592169['push']('ck-suggestion-marker--active'),{'classes':_0x592169,'attributes':{'data-change-id':_0x73cfd9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1c66ea=>{_0x1c66ea['on']('element:pre',(_0x4ddf08,_0x4c3b90,_0x40775c)=>{const _0x580f79=_0x4c3b90['viewItem']['getChild'](0x0);if(!_0x580f79||!_0x580f79['is']('element','code'))return;if(!_0x40775c['consumable']['consume'](_0x580f79,{'attributes':['vid_start','vid_end']}))return;const _0x32371c=_0x4c3b90['modelRange']['start']['nodeAfter'];_0x40775c['writer']['setAttribute']('vid_start',_0x580f79['getAttribute']('vid_start'),_0x32371c),_0x40775c['writer']['setAttribute']('vid_end',_0x580f79['getAttribute']('vid_end'),_0x32371c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3987e6=>{_0x3987e6['on']('element',(_0x20820d,_0x5219b7,_0x36b0ae)=>{if(!_0x36b0ae['consumable']['consume'](_0x5219b7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5219b7['modelRange']['isCollapsed'])return;const _0xdcbe9e=_0x5219b7['modelRange']['start']['nodeAfter'];_0xdcbe9e['hasAttribute']('vid_start')||_0xdcbe9e['hasAttribute']('vid')||(_0x36b0ae['writer']['setAttribute']('vid_start',_0x5219b7['viewItem']['getAttribute']('vid_start'),_0xdcbe9e),_0x36b0ae['writer']['setAttribute']('vid_end',_0x5219b7['viewItem']['getAttribute']('vid_end'),_0xdcbe9e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4639ed=>_0x4639ed['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x59ed4d,[,_0x460ede])=>{['vid_start','vid_end','vid']['includes'](_0x460ede)&&(_0x59ed4d['return']=!0x0,_0x59ed4d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c705c=>{_0x3c705c['on']('attribute:vid',(_0x285c78,_0x2d131e,_0xe6146c)=>{if('\x20'!=_0x2d131e['item']['data']||_0x2d131e['item']['parent']['maxOffset']>0x1)return;if(!_0xe6146c['consumable']['consume'](_0x2d131e['item'],_0x285c78['name']))return;const _0x5d1726=_0xe6146c['writer'],_0x287b4f=_0xe6146c['mapper']['toViewRange'](_0x2d131e['range']);_0x5d1726['wrap'](_0x287b4f,_0x5d1726['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x456965){const _0x1deef7=_0x456965['plugins']['get']('RevisionViewer');return(_0x449c51,_0x425ae2,_0x590584)=>{const _0x35177d=_0x425ae2['markerName']['split'](':')[0x1],_0x16251e=_0x1deef7['_getChangeFromId'](_0x35177d);if(!_0x16251e)return null;const _0x18f966='add'==_0x16251e['type']?'split':'merge';if(!_0x590584['consumable']['test'](_0x425ae2['markerRange'],_0x449c51['name']))return;const _0x5ae975=_0x425ae2['markerRange']['getWalker'](),_0x152e15=_0x425ae2['markerRange']['start'],_0x45e011=_0x456965['model']['schema'];let _0x2fb25e=null,_0x55937c=null,_0x5cf8ab=!0x1,_0x44f23b=!0x1;for(const _0x1d21bf of _0x5ae975){const _0x53e6d5=_0x1d21bf['item'];_0x5cf8ab=_0x5cf8ab||_0x45e011['isContent'](_0x53e6d5);const _0x370da8=_0x590584['mapper']['toViewElement'](_0x53e6d5);if(_0x370da8&&_0x370da8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d21bf['type']&&(_0x45e011['isBlock'](_0x53e6d5)&&!_0x45e011['isLimit'](_0x53e6d5)&&(_0x53e6d5['nextSibling']||_0x152e15['isAtEnd']?_0x2fb25e&&_0x2fb25e['parent']==_0x53e6d5||(_0x2fb25e=_0x53e6d5,_0xe68fe2(_0x1d21bf['previousPosition']),_0x44f23b=!0x0):_0x55937c=_0x55937c||_0x1d21bf['previousPosition']));}function _0xe68fe2(_0xdec079){const _0x123e82=_0x590584['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18f966}),_0x4409e4=_0x590584['mapper']['toViewPosition'](_0xdec079);_0x16251e['data']['isSuggestion']&&_0x590584['writer']['addClass']('ck-suggestion-marker-'+_0x18f966+'-new',_0x123e82),_0x1deef7['activeChange']==_0x16251e&&_0x590584['writer']['addClass']('ck-suggestion-marker--active',_0x123e82),_0x590584['writer']['insert'](_0x4409e4,_0x123e82),_0x590584['mapper']['bindElementToMarker'](_0x123e82,_0x425ae2['markerName']);}_0x5cf8ab||_0x44f23b||!_0x55937c||_0xe68fe2(_0x55937c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x521e02,_0x4cbfe4,_0x535bb4)=>{const _0x290c3b=_0x535bb4['mapper']['markerNameToElements'](_0x4cbfe4['markerName']);if(_0x290c3b){for(const _0x31410d of _0x290c3b)(_0x31410d['hasClass']('ck-suggestion-marker-split')||_0x31410d['hasClass']('ck-suggestion-marker-merge'))&&(_0x535bb4['mapper']['unbindElementFromMarkerName'](_0x31410d,_0x4cbfe4['markerName']),_0x535bb4['writer']['remove'](_0x31410d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x338592,_0xbaa92f,_0x454827)=>{const _0x3d1fe7=_0xbaa92f['markerName']['split'](':')[0x1],_0x54638b=this['_getChangeFromId'](_0x3d1fe7);if(!_0x54638b)return null;const _0x2291b8='add'==_0x54638b['type']?'split':'merge';if(_0x454827['consumable']['test'](_0xbaa92f['markerRange'],_0x338592['name']))for(const _0x2348e7 of _0xbaa92f['markerRange']['getItems']()){if(!_0x2348e7['is']('element','softBreak'))continue;const _0x5523c0=_0x454827['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2291b8}),_0x4d8be2=_0x454827['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2348e7));_0x54638b['data']['isSuggestion']&&_0x454827['writer']['addClass']('ck-suggestion-marker-'+_0x2291b8+'-new',_0x5523c0),this['activeChange']==_0x54638b&&_0x454827['writer']['addClass']('ck-suggestion-marker--active',_0x5523c0),_0x454827['writer']['insert'](_0x4d8be2,_0x5523c0),_0x454827['mapper']['bindElementToMarker'](_0x5523c0,_0xbaa92f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xee0565=>{for(const _0x5c7c3e of this['editor']['model']['document']['getRootNames']()){const _0xa52b20=this['editor']['model']['document']['getRoot'](_0x5c7c3e),_0x30f73f=this['editor']['editing']['view']['document']['getRoot'](_0x5c7c3e);if(_0x30f73f){const _0x42e240=_0xa52b20['getAttribute']('revisionHistoryAttachChange');if(_0xee0565['removeAttribute']('data-change-id',_0x30f73f),_0xee0565['removeClass']('ck-revision-history-root-add',_0x30f73f),_0xee0565['removeClass']('ck-revision-history-root-remove',_0x30f73f),_0xee0565['removeClass']('ck-revision-history-root--active',_0x30f73f),_0x42e240){const _0x3d6c4c=this['_getChangeFromId'](_0x42e240);if(!_0x3d6c4c)return null;_0xee0565['setAttribute']('data-change-id',_0x42e240,_0x30f73f),_0xee0565['addClass']('ck-revision-history-root-'+_0x3d6c4c['type'],_0x30f73f),this['activeChange']==_0x3d6c4c&&_0xee0565['addClass']('ck-revision-history-root--active',_0x30f73f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xdf439f=>'revision-comment:'+_0xdf439f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x244131=>'revision-suggestion:'+_0x244131,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xeecf07=>({'name':'suggestion:'+_0xeecf07,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4f2313=>{const _0x48a8ed=_0x4f2313['markerName']['split'](':')[0x1];return'insertion'!=_0x48a8ed&&'deletion'!=_0x48a8ed?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48a8ed]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a0123,_0x1d90e6,_0x2e0307)=>{const _0x2b444c=_0x2e0307['mapper']['markerNameToElements'](_0x1d90e6['markerName']);if(_0x2b444c){for(const _0x2fee8c of _0x2b444c)_0x2fee8c['is']('uiElement')&&(_0x2e0307['mapper']['unbindElementFromMarkerName'](_0x2fee8c,_0x1d90e6['markerName']),_0x2e0307['writer']['remove'](_0x2fee8c));}},{'priority':'high'});}['_getChangeFromId'](_0x501671){return this['_changeIdToChange']['get'](_0x501671);}['_getViewForChange'](_0x241b2e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x241b2e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x29a13d,_0x40b6cd,_0x9159e6,_0x5e7e2f)=>{_0x5e7e2f&&this['_balloon']['remove'](_0x5e7e2f),_0x9159e6&&(this['_balloon']['add']({'view':_0x9159e6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xe13f87=this['editor']['editing'],_0x534050=this['_getChangeFromId'](_0x9159e6['changeId']);let _0x5cc124;if(_0x534050['data']['isOnRoot']){const _0x1300ca=_0xe13f87['view']['getDomRoot'](_0x534050['rootName']);_0x5cc124=Array['from'](_0x1300ca['getClientRects']());}else{const _0x1725b8=this['editor']['model']['markers']['get']('revision:'+_0x9159e6['changeId']);_0x5cc124=Array['from'](_0xe13f87['mapper']['markerNameToElements'](_0x1725b8['name']))['map'](_0x5237db=>_0xe13f87['view']['domConverter']['mapViewToDom'](_0x5237db))['map'](_0x3a5215=>Array['from'](_0x3a5215['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5cc124[0x0];return _0x5cc124['find'](_0x5de1ad=>_0x5de1ad['top']-0x3<=this['_activeViewTarget']['y']&&_0x5de1ad['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5de1ad['left']-0x3<=this['_activeViewTarget']['x']&&_0x5de1ad['right']+0x3>=this['_activeViewTarget']['x'])||_0x5cc124[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1b318e,_0x3ce53a,_0x34c2f2,_0x9af1d0)=>{this['activeView']=_0x34c2f2?this['_getViewForChange'](_0x34c2f2):null,this['editor']['model']['change'](()=>{const _0x1584c8=this['editor']['editing'];_0x9af1d0&&(_0x9af1d0['data']['isOnRoot']?_0x1584c8['view']['change'](_0x2ba2a5=>{_0x2ba2a5['removeClass']('ck-revision-history-root--active',_0x1584c8['view']['document']['getRoot'](_0x9af1d0['rootName']));}):_0x1584c8['reconvertMarker']('revision:'+_0x9af1d0['id'])),_0x34c2f2&&(_0x34c2f2['data']['isOnRoot']?_0x1584c8['view']['change'](_0x17e9aa=>{_0x17e9aa['addClass']('ck-revision-history-root--active',_0x1584c8['view']['document']['getRoot'](_0x34c2f2['rootName']));}):_0x1584c8['reconvertMarker']('revision:'+_0x34c2f2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xe99e22,_0x14f2e9)=>{if(this['activeChange'])return;const _0x156679=this['_findChangeIdFromDomTarget'](_0x14f2e9['target']),_0x155b35=this['_changeIdToChange']['get'](_0x156679);_0x155b35?(this['_activeViewTarget']={'x':_0x14f2e9['domEvent']['x'],'y':_0x14f2e9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x155b35)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5cc2a5,_0x50ea29)=>{const _0x47478c=this['_findChangeIdFromDomTarget'](_0x50ea29['target']),_0x61ddc=this['_changeIdToChange']['get'](_0x47478c);_0x61ddc?(this['_activeViewTarget']={'x':_0x50ea29['domEvent']['x'],'y':_0x50ea29['domEvent']['y']},_0x61ddc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x61ddc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x198e35){do{const _0x5e7e68=_0x198e35['getAttribute']('data-change-id');if(_0x5e7e68)return _0x5e7e68;_0x198e35=_0x198e35['parent'];}while(_0x198e35);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5a6876=>{for(const _0x3b9c28 of this['editor']['model']['markers'])_0x5a6876['removeMarker'](_0x3b9c28);});}}function Q(_0x5aecc0,_0x1c4f25){return(_0xd397d7,_0x595034,_0x7dd3e5)=>{if(!_0x7dd3e5['consumable']['test'](_0x595034['markerRange'],_0xd397d7['name']))return;const _0x2b5873=_0x595034['markerRange']['getWalker'](),_0x435644=_0x595034['markerRange']['start'],_0x3d2bad=_0x5aecc0['model']['schema'];let _0x4fe74e=null,_0x556f67=null,_0x33a3bb=!0x1,_0x41ac2f=!0x1;for(const _0x21cfce of _0x2b5873){const _0x4d76cf=_0x21cfce['item'];_0x33a3bb=_0x33a3bb||_0x3d2bad['isContent'](_0x4d76cf);const _0x4c6e0b=_0x7dd3e5['mapper']['toViewElement'](_0x4d76cf);if(_0x4c6e0b&&_0x4c6e0b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21cfce['type']&&(_0x3d2bad['isBlock'](_0x4d76cf)&&!_0x3d2bad['isLimit'](_0x4d76cf)&&(_0x4d76cf['nextSibling']||_0x435644['isAtEnd']?_0x4fe74e&&_0x4fe74e['parent']==_0x4d76cf||(_0x4fe74e=_0x4d76cf,_0xa6c33b(_0x21cfce['previousPosition']),_0x41ac2f=!0x0):_0x556f67=_0x556f67||_0x21cfce['previousPosition']));}function _0xa6c33b(_0x3608ba){const _0x1f0c8a=_0x7dd3e5['mapper']['toViewPosition'](_0x3608ba),_0x117269=_0x7dd3e5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c4f25});_0x7dd3e5['writer']['insert'](_0x1f0c8a,_0x117269),_0x7dd3e5['mapper']['bindElementToMarker'](_0x117269,_0x595034['markerName']);}_0x33a3bb||_0x41ac2f||!_0x556f67||_0xa6c33b(_0x556f67);};}class nt extends _0x4772{constructor(_0x34bf1a){super(_0x34bf1a);const _0x1f113e=_0x34bf1a['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x1f113e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1f113e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3ef932=this['editor'],_0x180e15=_0x3ef932['plugins']['get'](u),_0x15632b=_0x180e15['isReady']?_0x180e15['diff']['newRevisionId']:null;_0x3ef932['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x15632b);}['refresh'](){const {isReady:_0x4fbf44,isEnabled:_0x3e6599,repository:_0x1a51c9,diff:_0x36f870}=this['editor']['plugins']['get'](u),_0x113a59=_0x36f870&&_0x1a51c9['getLaterVisibleRevision'](_0x36f870['newRevisionId']);this['isEnabled']=_0x4fbf44&&_0x3e6599&&Boolean(_0x113a59);}}class rt extends _0x4772{['_step'];constructor(_0x30fe8c,{direction:_0x210e79}){super(_0x30fe8c);const _0x42af17=_0x30fe8c['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x210e79?0x1:-0x1,this['listenTo'](_0x42af17,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42af17,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x42af17,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x22ba3d=this['editor'],_0x2a77ce=_0x22ba3d['plugins']['get'](u),{isNavigationMode:_0x3e4cac,currentChangeNumber:_0x46720c}=_0x2a77ce;let _0x419106;if(_0x2a77ce['activeChange']=_0x3e4cac?_0x2a77ce['diff']['changes']['get'](_0x46720c+this['_step']):_0x2a77ce['diff']['changes']['first'],_0x2a77ce['activeChange']['data']['isOnRoot'])_0x419106=_0x22ba3d['editing']['view']['getDomRoot'](_0x2a77ce['activeChange']['rootName']);else{const _0x146f84=_0x22ba3d['model']['markers']['get']('revision:'+_0x2a77ce['activeChange']['id']);_0x419106=_0x5b8a31(_0x22ba3d['editing'],_0x146f84);}_0x17a8c4({'target':_0x419106,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x512ea4,currentChangeNumber:_0x271639,numberOfChanges:_0x18c666,isReady:_0x151b46,isEnabled:_0x29fa6e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x29fa6e&&_0x151b46&&_0x18c666)&&(!_0x512ea4||(0x1===this['_step']?_0x271639<_0x18c666-0x1:_0x271639>0x0));}}class Ri extends _0x25a7ca{constructor(_0x8befce){super(_0x8befce);const _0x4607b5=this['bindTemplate'],_0x30a4d9=new _0x405528(_0x8befce),_0x3d5c1b=new _0x405528(_0x8befce);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',(_0x4a2ae4,_0x18ccfb)=>_0x4a2ae4&&_0x18ccfb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x50a1c6,_0x3a2168,_0x347466,_0x1f156a)=>{if(!_0x50a1c6)return m(_0x8befce,'Loading...');if(!_0x347466)return m(_0x8befce,'No\x20changes');const _0x369610=m(_0x8befce,'NUMBER_OF_CHANGES',_0x347466);return _0x1f156a?m(_0x8befce,'X_OF_Y_CHANGES',[_0x3a2168+0x1,_0x347466]):_0x369610;}),_0x30a4d9['set']({'label':m(_0x8befce,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4e6048}),_0x3d5c1b['set']({'label':m(_0x8befce,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x40b597}),_0x30a4d9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3d5c1b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x30a4d9['on']('execute',()=>this['fire']('execute','backward')),_0x3d5c1b['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',_0x4607b5['if']('_isStatusLabelVisible','ck-hidden',_0x20c59a=>!_0x20c59a)]},'children':[{'text':_0x4607b5['to']('isNavigationMode',_0x39871a=>_0x39871a?m(_0x8befce,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x8befce,'Total')+':\x20')}]},{'text':_0x4607b5['to']('_statusText')}]},new _0x6b436f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x30a4d9,_0x3d5c1b]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1f6d35{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x549ce9=this['editor']['editing']['view'];_0x549ce9['change'](_0x39b8f8=>{for(const _0x4a523d of _0x549ce9['document']['roots'])_0x39b8f8['addClass'](ge,_0x4a523d);});}['hide'](){const _0x4b38ef=this['editor']['editing']['view'];_0x4b38ef['change'](_0x8734a9=>{for(const _0x512d95 of _0x4b38ef['document']['roots'])_0x8734a9['removeClass'](ge,_0x512d95);});}}class v extends _0x1f6d35{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x2c98e0=this['editor'],_0x2722fb=_0x2c98e0['plugins']['get'](u),_0x395b0e=_0x2c98e0['plugins']['get'](ji);_0x2c98e0['ui']['componentFactory']['add']('exitToEditing',_0x2ab6dc=>{const _0x5b1fd3=new _0x405528(_0x2ab6dc);return _0x5b1fd3['set']({'label':m(_0x2ab6dc,'Back\x20to\x20editing'),'icon':_0x387e9c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5b1fd3,'execute',()=>{_0x2c98e0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5b1fd3;}),_0x2c98e0['ui']['componentFactory']['add']('restoreRevision',_0x514742=>{const _0x4ec478=new _0x405528(_0x514742);return _0x4ec478['set']({'label':m(_0x514742,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ec478['bind']('isEnabled')['to'](_0x2c98e0['commands']['get']('restoreRevision')),this['listenTo'](_0x4ec478,'execute',()=>_0x2c98e0['execute']('restoreRevision')),_0x4ec478;}),_0x2c98e0['ui']['componentFactory']['add']('changesNavigation',_0x243be7=>{const _0x24b8fd=new Ri(_0x243be7),_0x4d1b0d=_0x2c98e0['commands']['get']('showPreviousChange'),_0x5e79a3=_0x2c98e0['commands']['get']('showNextChange');return _0x24b8fd['bind']('isBackwardNavigationEnabled')['to'](_0x4d1b0d,'isEnabled'),_0x24b8fd['bind']('isForwardNavigationEnabled')['to'](_0x5e79a3,'isEnabled'),_0x24b8fd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2722fb),this['listenTo'](_0x24b8fd,'execute',(_0x106c70,_0x39456d)=>{_0x2c98e0['execute']('forward'===_0x39456d?'showNextChange':'showPreviousChange');}),_0x24b8fd;}),_0x395b0e['show'](),_0x2722fb['on']('change:isReady',(_0x5b57b0,_0x126308,_0x215981)=>{_0x215981?_0x395b0e['hide']():_0x395b0e['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5a6c7d,_0x2ddb80){super(_0x5a6c7d,_0x2ddb80);const _0x2bc70b=this['bindTemplate'];this['set']({'label':m(_0x5a6c7d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5a6c7d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2bc70b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x35087c=this['fieldView']['element'];this['_tooltipString']=_0x35087c['scrollWidth']>_0x35087c['clientWidth']&&_0x35087c['value']||'';}}class ni extends _0x25a7ca{constructor(_0x315c7f,_0x29e85c,_0x2e7489){super(_0x315c7f);const _0x3b2b2b=new _0x2444d4();_0x3b2b2b['set']({'content':_0x4e13ee,'viewBox':'0\x200\x2011\x2010'});const _0x18bbcc=['ck','ck-revision-history-sidebar__revision-author'];_0x2e7489&&_0x18bbcc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4f2c26=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x315c7f,_0x2e7489?'Revision\x20creator':'Revision\x20author')},'children':[_0x3b2b2b,_0x29e85c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x18bbcc},'children':_0x4f2c26});}}function ai(_0x16b6c6,_0x5a13af){const _0x199eeb=_0x16b6c6['bindTemplate'],_0x198ab1=_0x16b6c6['locale'],_0x4b9c30=_0x523ca4(_0x198ab1);_0x4b9c30['panelPosition']='sw';const _0x569862=function(_0x19e144,_0x2f7706){const _0x1e06af=function(_0x59dd87,_0x21c5dd){const _0x51bca4=_0x59dd87['locale'],_0xacbbf8={'Compare\x20against\x20selected':m(_0x51bca4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x51bca4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x51bca4,'Restore\x20this\x20revision')};return _0x21c5dd['map'](_0x495438=>{const _0x514ad7=_0xacbbf8[_0x495438['name']];return _0x514ad7&&_0x514ad7!==_0x495438['name']&&(_0x495438['name']=_0x514ad7),_0x495438;});}(_0x19e144,_0x2f7706),_0x1a6386=new _0x56fe88();for(const _0x46553e of _0x1e06af){const _0x3f9772={'type':'button','model':new to({'label':_0x46553e['name'],'class':_0x46553e['class'],'withText':!0x0,'role':'menuitem','_action':_0x46553e['action']})};_0x3f9772['model']['bind']('isEnabled')['to'](_0x19e144,'isActionsDropdownOpen',_0x22b410=>'function'!=typeof _0x46553e['isEnabled']||(!_0x22b410||_0x46553e['isEnabled'](_0x19e144))),_0x1a6386['add'](_0x3f9772);}return _0x1a6386;}(_0x16b6c6,_0x5a13af);return _0x16b6c6['bind']('isActionsDropdownOpen')['to'](_0x4b9c30,'isOpen'),_0x4b9c30['buttonView']['set']({'label':m(_0x198ab1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x51d5d0}),_0x4b9c30['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x199eeb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x199eeb['to'](_0x1b0f36=>_0x1b0f36['stopPropagation']())}}),_0x4b9c30['on']('execute',_0x36dc14=>{_0x16b6c6['isReady']&&'function'==typeof _0x36dc14['source']['_action']&&_0x36dc14['source']['_action'](_0x16b6c6);}),_0x3d4656(_0x4b9c30,_0x569862,{'role':'menu'}),_0x4b9c30['listenTo'](_0x16b6c6,'change:isActionsDropdownOpen',(_0x106344,_0x25f1de,_0x5ef685)=>{if(_0x5ef685)for(const _0x438b3b of _0x4b9c30['listView']['items']){const _0x15f723=_0x438b3b['children']['first'],_0x55436c=_0x5a13af['find'](_0x1be604=>_0x1be604['action']===_0x15f723['_action'])['isVisible'];_0x438b3b['isVisible']=void 0x0===_0x55436c||_0x55436c(_0x16b6c6);}}),_0x4b9c30;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x2cbca0,uid as _0x31075e,Collection as _0x5731ed,logWarning as _0x728dc7,FocusTracker as _0x51ad5c,KeystrokeHandler as _0x137948,scrollViewportToShowTarget as _0x332252,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x383d8c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x24b057,set as _0x2c8de9,unset as _0x7585f2,isEqual as _0x553c5f}from'es-toolkit/compat';import{Plugin as _0x38f444,PendingActions as _0x9122e7,Command as _0x740a59,ElementApiMixin as _0x298957,Editor as _0x30b7bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3fbc11,getMarkerDomElement as _0x3b78d7,ConfirmMixin as _0x241b49,sanitizeEditorConfig as _0x5ec73f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3f460b,ViewAttributeElement as _0x4e094d,ViewEmptyElement as _0xb7c34c,ViewRawElement as _0x4ce41f,ViewUIElement as _0x30665d,ViewDocumentFragment as _0x1acc86,ViewText as _0x48640e,ViewElement as _0x3c8e2b,ModelElement as _0xf20b09,ModelRange as _0x229d78,ModelPosition as _0x3d30d3,ModelDocumentFragment as _0x5439d1,ModelText as _0x51f73e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x46dbf8,IconChevronUp as _0x54f29b,IconChevronDown as _0x53a08c,IconUndo as _0x4a12a7,IconUser as _0x4e42fe,IconThreeVerticalDots as _0x18b99b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x2237ba,View as _0x3e0b15,submitHandler as _0x28e64e,LabeledFieldView as ti,createLabeledInputText as _0x4ca011,createDropdown as _0x54c274,ListView as _0x17bef3,ListItemView as _0x33aa7a,ButtonView as _0x1dcc9b,MenuBarMenuView as _0xb326f9,MenuBarMenuListView as _0x34f0da,MenuBarMenuListItemView as _0x2ea1e2,MenuBarMenuListItemButtonView as _0x54a271,ContextualBalloon as _0x4063c6,ToolbarSeparatorView as _0x1019e4,IconView as _0x137374,addListToDropdown as _0x28ae8a,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x2ed6c9,StickyPanelView as _0x468a35,ToolbarView as _0xeb63cb,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3ae11b}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2cbca0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x29287b){super(),this['id']=_0x29287b['id']||_0x31075e(),this['creator']=_0x29287b['creator']||null,this['authors']=_0x29287b['authors']||[],this['diffData']=_0x29287b['diffData']||null,this['toVersion']=_0x29287b['toVersion']||0x0,this['fromVersion']=_0x29287b['fromVersion']||0x0,this['set']('name',_0x29287b['name']||''),this['set']('createdAt',_0x29287b['createdAt']||new Date()),this['set']('attributes',_0x29287b['attributes']||{});}['setName'](_0x5c2122){this['_update']({'name':_0x5c2122});}['setAttribute'](_0x3b3b33,_0x49a29d){const _0x4a8a46=_0x24b057(this['attributes']);_0x2c8de9(_0x4a8a46,_0x3b3b33,_0x49a29d),this['_update']({'attributes':_0x4a8a46});}['removeAttribute'](_0x24ed85){const _0x1ab80d=_0x24b057(this['attributes']);_0x7585f2(_0x1ab80d,_0x24ed85),this['_update']({'attributes':_0x1ab80d});}['_update'](_0x1f5e5c,_0x475dc2=!0x1){let _0x4afd1e=!0x1;const _0x204120={'id':this['id']},_0x9d211a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x37809d of _0x9d211a){const _0x504d77=_0x1f5e5c[_0x37809d];void 0x0!==_0x504d77&&_0x504d77!==this[_0x37809d]&&(this[_0x37809d]=_0x504d77,_0x204120[_0x37809d]=_0x504d77,_0x4afd1e=!0x0);}_0x4afd1e&&(_0x204120['authors']&&(_0x204120['authorsIds']=_0x204120['authors']['map'](_0x4f3f96=>_0x4f3f96['id']),delete _0x204120['authors']),this['fire']('_update',_0x204120,_0x475dc2));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3eb63a=>_0x3eb63a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x38f444{['_revisions'];static get['requires'](){return[_0x3fbc11];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x596a89){super(_0x596a89),this['_revisions']=new _0x5731ed();}['afterInit'](){!async function(_0x4754b6){const _0x18aeeb=_0x25a801([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0xe9763d=0xeb829,_0x47cd0d=0x359e09b0,_0x3a1b26=0x35997318^_0x47cd0d,_0x322a9b=window[_0x25a801([0x44,0x61,0x74,0x65])][_0x25a801([0x6e,0x6f,0x77])](),_0x330e96=_0x4754b6[_0x25a801([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x363584=new window[(_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365edd=>{_0x330e96[_0x25a801([0x6f,0x6e,0x63,0x65])](_0x25a801([0x72,0x65,0x61,0x64,0x79]),_0x365edd);}),_0x119d9d={[_0x25a801([0x6b,0x74,0x79])]:_0x25a801([0x45,0x43]),[_0x25a801([0x75,0x73,0x65])]:_0x25a801([0x73,0x69,0x67]),[_0x25a801([0x63,0x72,0x76])]:_0x25a801([0x50,0x2d,0x32,0x35,0x36]),[_0x25a801([0x78])]:_0x25a801([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]),[_0x25a801([0x79])]:_0x25a801([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]),[_0x25a801([0x61,0x6c,0x67])]:_0x25a801([0x45,0x53,0x32,0x35,0x36])},_0x50a430=_0x330e96[_0x25a801([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25a801([0x67,0x65,0x74])](_0x25a801([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23876f(){let _0x922914,_0x5e84d1=null,_0x35a8a4=null;try{if(_0x50a430==_0x25a801([0x47,0x50,0x4c]))return _0x25a801([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x922914=_0x5549a0(),!_0x922914)return _0x25a801([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x922914[_0x25a801([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35a8a4=_0x2ea5ce(_0x922914[_0x25a801([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x922914[_0x25a801([0x6a,0x74,0x69])])),await _0x28549c()?_0x3a99f0()?_0x2a9b2a()?_0x25a801([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x172e9d()?(_0x922914[_0x25a801([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25a801([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e84d1=_0x1e6a40(_0x25a801([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x922914[_0x25a801([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25a801([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e84d1=_0x1e6a40(_0x25a801([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a5326()):_0x25a801([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25a801([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25a801([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25a801([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a9b2a(){const _0x30bfd5=[_0x25a801([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25a801([0x74,0x72,0x69,0x61,0x6c])][_0x25a801([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x922914[_0x25a801([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x322a9b/0x3e8:0xe10*_0x3a1b26;return _0x922914[_0x25a801([0x65,0x78,0x70])]<_0x30bfd5;}function _0x3a99f0(){const _0x3c0c53=_0x922914[_0x25a801([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c0c53)return!0x1;if(_0x3c0c53[_0x25a801([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25a801([0x2a])))return!0x0;if(_0x3c0c53[_0x25a801([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25a801([0x52,0x48])))return!0x0;if(_0x3c0c53[_0x25a801([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25a801([0x52,0x52,0x48]))){if(_0x564742())return!0x0;if(_0x1e2a2f()||_0x36dce7())return!0x0;}return!0x1;}function _0x172e9d(){const _0x279a2b=_0x922914[_0x25a801([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x279a2b||0x0==_0x279a2b[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43294a}=new URL(window[_0x25a801([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x279a2b[_0x25a801([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43294a))return!0x0;const _0x35c6e7=_0x43294a[_0x25a801([0x73,0x70,0x6c,0x69,0x74])](_0x25a801([0x2e]));return _0x279a2b[_0x25a801([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50a77d=>_0x50a77d[_0x25a801([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25a801([0x2a])))[_0x25a801([0x6d,0x61,0x70])](_0x26d407=>_0x26d407[_0x25a801([0x73,0x70,0x6c,0x69,0x74])](_0x25a801([0x2e])))[_0x25a801([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e5cf8=>_0x4e5cf8[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35c6e7[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25a801([0x6d,0x61,0x70])](_0x58889c=>Array(_0x35c6e7[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58889c[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25a801([0x66,0x69,0x6c,0x6c])](_0x58889c[0x0]===_0x25a801([0x2a])?_0x25a801([0x2a]):'')[_0x25a801([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58889c))[_0x25a801([0x73,0x6f,0x6d,0x65])](_0x416a3b=>_0x35c6e7[_0x25a801([0x65,0x76,0x65,0x72,0x79])]((_0x3e4317,_0x42babc)=>_0x416a3b[_0x42babc]===_0x3e4317||_0x416a3b[_0x42babc]===_0x25a801([0x2a])));}function _0x4a5326(){return _0x5e84d1&&_0x35a8a4?new window[(_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5930f7,_0x5466c1)=>{_0x5e84d1[_0x25a801([0x74,0x68,0x65,0x6e])](_0x5930f7,_0x5466c1),_0x35a8a4[_0x25a801([0x74,0x68,0x65,0x6e])](_0x3038ca=>{_0x3038ca!=_0x25a801([0x56,0x61,0x6c,0x69,0x64])&&_0x5930f7(_0x3038ca);},_0x5466c1);}):_0x5e84d1||_0x35a8a4||_0x25a801([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ea5ce(_0x36571c,_0x35565d){return new window[(_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153b8c=>{if(_0x5f5311())return _0x153b8c(_0x25a801([0x56,0x61,0x6c,0x69,0x64]));_0x5010a9(),_0x330e96[_0x25a801([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25a801([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x167910=!0x1;const _0x30fa6b=_0x31075e();function _0x3400db(_0x10510f){return!!_0x10510f&&(typeof _0x10510f===_0x25a801([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10510f===_0x25a801([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10510f[_0x25a801([0x74,0x68,0x65,0x6e])]===_0x25a801([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10510f[_0x25a801([0x63,0x61,0x74,0x63,0x68])]===_0x25a801([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51e83c(_0x2d2515){_0x238ec7(_0x2d2515)[_0x25a801([0x74,0x68,0x65,0x6e])](_0x3d72b3=>{if(!_0x3d72b3||_0x3d72b3[_0x25a801([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25a801([0x6f,0x6b]))return _0x25a801([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf44c0(_0x5248ec(_0x30fa6b+_0x35565d))!=_0x3d72b3[_0x25a801([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25a801([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25a801([0x56,0x61,0x6c,0x69,0x64]);})[_0x25a801([0x74,0x68,0x65,0x6e])](_0x456034=>(_0x110569(),_0x456034),()=>{const _0x264cf6=_0x106504();return null==_0x264cf6?(_0x110569(),_0x25a801([0x56,0x61,0x6c,0x69,0x64])):_0x25a801(_0x322a9b-_0x264cf6>(0x11928db0^_0x47cd0d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25a801([0x74,0x68,0x65,0x6e])](_0x153b8c)[_0x25a801([0x63,0x61,0x74,0x63,0x68])](()=>{_0x153b8c(_0x25a801([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b1a46=0x35a8e730^_0x47cd0d;function _0x110569(){const _0x30d401=_0x25a801([0x6c,0x6c,0x63,0x74,0x2d])+_0xf44c0(_0x5248ec(_0x36571c)),_0x3a8850=_0x2d9a42(_0xf44c0(window[_0x25a801([0x4d,0x61,0x74,0x68])][_0x25a801([0x63,0x65,0x69,0x6c])](_0x322a9b/_0x1b1a46)));window[_0x25a801([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25a801([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30d401,_0x3a8850);}function _0x106504(){const _0x52326f=_0x25a801([0x6c,0x6c,0x63,0x74,0x2d])+_0xf44c0(_0x5248ec(_0x36571c)),_0x130a9a=window[_0x25a801([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25a801([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52326f);return _0x130a9a?window[_0x25a801([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9a42(_0x130a9a),0x10)*_0x1b1a46:null;}function _0x238ec7(_0x4f8fb7){return new window[(_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1314b3,_0x22094a)=>{_0x4f8fb7[_0x25a801([0x74,0x68,0x65,0x6e])](_0x1314b3,_0x22094a),window[_0x25a801([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22094a,0x359fdd70^_0x47cd0d);});}}_0x330e96[_0x25a801([0x6f,0x6e])](_0x25a801([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x335ade,_0x354952)=>{if(_0x354952[0x0]!=_0x36571c)return _0x153b8c(_0x25a801([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x354952[0x1]={..._0x354952[0x1],[_0x25a801([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30fa6b};},{[_0x25a801([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25a801([0x68,0x69,0x67,0x68])}),_0x330e96[_0x25a801([0x6f,0x6e])](_0x25a801([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c1a2f=>{_0x3400db(_0x2c1a2f[_0x25a801([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x167910=!0x0,_0x51e83c(_0x2c1a2f[_0x25a801([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25a801([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25a801([0x6c,0x6f,0x77])}),_0x363584[_0x25a801([0x74,0x68,0x65,0x6e])](()=>{_0x167910||_0x153b8c(_0x25a801([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f5311(){return _0x330e96[_0x25a801([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25a801([0x76,0x69,0x65,0x77])][_0x25a801([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25a801([0x61,0x75,0x74,0x6f]);}function _0x5010a9(){_0x330e96[_0x25a801([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25a801([0x76,0x69,0x65,0x77])][_0x25a801([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25a801([0x61,0x75,0x74,0x6f]);}}function _0x1e6a40(_0x33537f){const _0xc89dfb=[new window[(_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ea421=>setTimeout(_0x6ea421,0x3597377c^_0x47cd0d)),_0x363584[_0x25a801([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x76c5f=>{const _0x24b018=0x359e09b7^_0x47cd0d,_0x4fef63=_0x4754b6[_0x25a801([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x44e476(){_0x4fef63[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x24b018&&_0x76c5f();}_0x44e476(),_0x4fef63[_0x25a801([0x6f,0x6e])](_0x25a801([0x61,0x64,0x64]),_0x44e476);})),new window[(_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x506dd8=>{function _0x48ce3e(){for(const _0x120d6f in window)if(window[_0x25a801([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x25a801([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x120d6f))&&window[_0x120d6f]==_0xe9763d)return _0x506dd8();_0x330e96[_0x25a801([0x73,0x74,0x61,0x74,0x65])]!=_0x25a801([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x25a801([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48ce3e,0x359e1a38^_0x47cd0d);}_0x21526b(_0x25a801([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x48ce3e();})];return window[_0x25a801([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25a801([0x72,0x61,0x63,0x65])](_0xc89dfb)[_0x25a801([0x74,0x68,0x65,0x6e])](()=>_0x33537f);}async function _0x39a288(){if(await _0x363584,_0x21526b(_0x25a801([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2ff26b=_0x4754b6[_0x25a801([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1c35d2=_0x4754b6[_0x25a801([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])](_0x2ff26b[_0x25a801([0x69,0x64])]),_0x8603c=_0x365407(_0x25a801([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x8603c[_0x25a801([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2ff26b['id'],_0x1c35d2?_0x1c35d2['id']:null,!0x0),_0x8603c[_0x25a801([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x25a801([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x8603c[_0x25a801([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x8603c[_0x25a801([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x376dbd,void(_0x8603c[_0x25a801([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x376dbd);}if(_0x21526b(_0x25a801([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1d8af5=_0x365407(_0x25a801([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1d8af5[_0x25a801([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x25a801([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1d8af5[_0x25a801([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1d8af5[_0x25a801([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x376dbd,_0x1d8af5[_0x25a801([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x376dbd;}_0x330e96[_0x25a801([0x6d,0x6f,0x64,0x65,0x6c])][_0x25a801([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x376dbd,_0x330e96[_0x25a801([0x6d,0x6f,0x64,0x65,0x6c])][_0x25a801([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x376dbd,_0x330e96[_0x25a801([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25a801([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x564742(){return _0x21526b(_0x25a801([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x365407(_0x25a801([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x25a801([0x73,0x74,0x61,0x74,0x65])]==_0x25a801([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1e2a2f(){return _0x21526b(_0x25a801([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 _0x36dce7(){return _0x21526b(_0x25a801([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x39e9e7(_0x5f0032){const _0x1d0f0b=_0x23ee4b();_0x330e96[_0x1d0f0b]=_0x25a801([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])+_0x5f0032,_0x5f0032[_0x25a801([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x25a801([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x23ee4b()]=_0xe9763d),_0x5f0032!=_0x25a801([0x56,0x61,0x6c,0x69,0x64])&&_0x39a288();}function _0x23ee4b(){const _0x5ce872=window[_0x25a801([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25a801([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25a801([0x6e,0x6f,0x77])]())[_0x25a801([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25a801([0x2e]),'');let _0x4d7d1a=_0x25a801([0x76]);for(let _0x5dd7cd=0x0;_0x5dd7cd<_0x5ce872[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dd7cd+=0x2){let _0x33ae86=window[_0x25a801([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce872[_0x25a801([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dd7cd,_0x5dd7cd+0x2));_0x33ae86>=_0x18aeeb[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33ae86-=_0x18aeeb[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d7d1a+=_0x18aeeb[_0x33ae86];}return _0x4d7d1a;}function _0x5549a0(){const _0xdd93ba=_0x50a430[_0x25a801([0x73,0x70,0x6c,0x69,0x74])](_0x25a801([0x2e]));if(0x3!=_0xdd93ba[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ece5b(_0xdd93ba[0x1]);function _0x2ece5b(_0x47f7e4){const _0x1e817d=_0x2f7305(_0x47f7e4);return _0x1e817d&&_0x554c4d()?_0x1e817d:null;function _0x554c4d(){const _0x814e26=_0x1e817d[_0x25a801([0x6a,0x74,0x69])],_0x4e21cd=window[_0x25a801([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x814e26[_0x25a801([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x814e26[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f7315={..._0x1e817d,[_0x25a801([0x6a,0x74,0x69])]:_0x814e26[_0x25a801([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x814e26[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f7315[_0x25a801([0x76,0x63])],_0x5248ec(_0x2f7315)==_0x4e21cd;}}}async function _0x28549c(){let _0x190a96=!0x0;try{const _0xe2d24f=_0x50a430[_0x25a801([0x73,0x70,0x6c,0x69,0x74])](_0x25a801([0x2e])),[_0x128155,_0x546a43,_0x3e46ce]=_0xe2d24f;return _0x49076d(_0x128155),await _0x2f2fd0(_0x128155,_0x546a43,_0x3e46ce),_0x190a96;}catch{return!0x1;}function _0x49076d(_0x2561e7){const _0x3e16f5=_0x2f7305(_0x2561e7);_0x3e16f5&&_0x3e16f5[_0x25a801([0x61,0x6c,0x67])]==_0x25a801([0x45,0x53,0x32,0x35,0x36])||(_0x190a96=!0x1);}async function _0x2f2fd0(_0x356804,_0x2f423b,_0x2bbc92){const _0xe4b44b=window[_0x25a801([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25a801([0x66,0x72,0x6f,0x6d])](_0x1ee929(_0x2bbc92),_0x5e6897=>_0x5e6897[_0x25a801([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b9741=new window[(_0x25a801([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25a801([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x356804+_0x25a801([0x2e])+_0x2f423b),_0x532420=window[_0x25a801([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25a801([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x532420)return;const _0x65f717=await _0x532420[_0x25a801([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25a801([0x6a,0x77,0x6b]),_0x119d9d,{[_0x25a801([0x6e,0x61,0x6d,0x65])]:_0x25a801([0x45,0x43,0x44,0x53,0x41]),[_0x25a801([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25a801([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25a801([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x532420[_0x25a801([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25a801([0x6e,0x61,0x6d,0x65])]:_0x25a801([0x45,0x43,0x44,0x53,0x41]),[_0x25a801([0x68,0x61,0x73,0x68])]:{[_0x25a801([0x6e,0x61,0x6d,0x65])]:_0x25a801([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x65f717,_0xe4b44b,_0x1b9741)||(_0x190a96=!0x1);}}function _0x2f7305(_0x5e11fa){return _0x5e11fa[_0x25a801([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25a801([0x65,0x79]))?JSON[_0x25a801([0x70,0x61,0x72,0x73,0x65])](_0x1ee929(_0x5e11fa)):null;}function _0x1ee929(_0x19eee8){return window[_0x25a801([0x61,0x74,0x6f,0x62])](_0x19eee8[_0x25a801([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25a801([0x2b]))[_0x25a801([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25a801([0x2f])));}function _0x5248ec(_0x28c0cf){let _0x174e50=0x1505;function _0x1f053c(_0x4b90ac){for(let _0x28ce59=0x0;_0x28ce59<_0x4b90ac[_0x25a801([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28ce59++){const _0x362eaa=_0x4b90ac[_0x25a801([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28ce59);_0x174e50=(_0x174e50<<0x5)+_0x174e50+_0x362eaa,_0x174e50&=_0x174e50;}}function _0x5def05(_0x31de51){Array[_0x25a801([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31de51)?_0x31de51[_0x25a801([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5def05):_0x31de51&&typeof _0x31de51==_0x25a801([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25a801([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31de51)[_0x25a801([0x73,0x6f,0x72,0x74])]()[_0x25a801([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2eedd8,_0x2d9dee])=>{_0x1f053c(_0x2eedd8),_0x5def05(_0x2d9dee);}):_0x1f053c(window[_0x25a801([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31de51));}return _0x5def05(_0x28c0cf),_0x174e50>>>0x0;}function _0xf44c0(_0x1a0c12){return _0x1a0c12[_0x25a801([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25a801([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25a801([0x30]));}function _0x2d9a42(_0x51b15c){return _0x51b15c[_0x25a801([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25a801([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25a801([0x6a,0x6f,0x69,0x6e])]('');}function _0x21526b(_0x299350){return _0x330e96[_0x25a801([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25a801([0x68,0x61,0x73])](_0x299350);}function _0x365407(_0xa87304){return _0x330e96[_0x25a801([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25a801([0x67,0x65,0x74])](_0xa87304);}function _0x376dbd(){}function _0x25a801(_0x4782a0){return _0x4782a0['map'](_0x471703=>String['fromCharCode'](_0x471703))['join']('');}_0x39e9e7(await _0x23876f());}(this);}['createRevision'](_0x18290b){const _0x567fc6=this['editor']['plugins']['get']('Users');return new I({'id':_0x18290b['id'],'name':_0x18290b['name'],'creator':_0x18290b['creatorId']?_0x567fc6['getUser'](_0x18290b['creatorId']):null,'diffData':_0x18290b['diffData']||_0x18290b['data'],'authors':_0x18290b['authorsIds']['map'](_0x16b3f2=>_0x567fc6['getUser'](_0x16b3f2)),'createdAt':new Date(_0x18290b['createdAt']),'attributes':_0x18290b['attributes'],'fromVersion':_0x18290b['fromVersion'],'toVersion':_0x18290b['toVersion']});}['addRevision'](_0xdb13b4,_0x428aff=0x0){this['_revisions']['add'](_0xdb13b4,_0x428aff);}['getRevision'](_0x13f3a1){return this['_revisions']['get'](_0x13f3a1);}['getRevisions'](_0x38290a={'toJSON':!0x1}){const _0x248712=Array['from'](this['_revisions']);return _0x248712['reverse'](),_0x38290a['toJSON']?_0x248712['map'](_0x22ac62=>_0x22ac62['toJSON']()):_0x248712;}['getIndex'](_0x2fa479){return this['_revisions']['getIndex'](_0x2fa479);}['getEarlierVisibleRevision'](_0x368007){const [,_0xbfade7]=this['getRevisionsIterator'](_0x368007,{'direction':'earlier'});return _0xbfade7;}['getLaterVisibleRevision'](_0x130132){const [,_0x15c4dd]=this['getRevisionsIterator'](_0x130132,{'direction':'later'});return _0x15c4dd;}['getRevisionsInDiff'](_0x326f91){const _0x858656=[];for(const _0x55a151 of this['getRevisionsIterator'](_0x326f91['newRevisionId']))if(_0x858656['push'](_0x55a151),_0x55a151['id']===_0x326f91['oldRevisionId'])break;return _0x858656;}*['getRevisionsIterator'](_0x4922b9,{direction:_0x256152='earlier',filter:_0x418129=()=>!0x0}={}){const _0x739995='earlier'===_0x256152?0x1:-0x1;let _0x21d46a=this['_revisions']['get'](_0x4922b9),_0x43af16=this['getIndex'](_0x21d46a);for(yield _0x21d46a;_0x21d46a;){if(_0x43af16+=_0x739995,_0x21d46a=this['getRevision'](_0x43af16),!_0x21d46a)return;_0x418129(_0x21d46a)&&(yield _0x21d46a);}}}class $ extends _0x38f444{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3f460b,'c'],[_0x4e094d,'a'],[_0xb7c34c,'e'],[_0x4ce41f,'r'],[_0x30665d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3f460b],['a',_0x4e094d],['e',_0xb7c34c],['r',_0x4ce41f],['u',_0x30665d]]);async['loadRevisionData'](_0x419b21,_0x453bff){if(_0x419b21['diffData']||!_0x453bff)return;const _0x169ed2=this['editor']['config']['get']('collaboration.channelId'),_0x5ef1b1=await _0x453bff['getRevision']({'channelId':_0x169ed2,'revisionId':_0x419b21['id']});_0x419b21['diffData']=_0x5ef1b1['diffData'];}['getRevisionDocumentData'](_0x2a20bb){const _0x2e231f={};for(const _0x17dfe9 in _0x2a20bb['diffData']){if(_0x2a20bb['diffData'][_0x17dfe9]['attachChange']&&!_0x2a20bb['diffData'][_0x17dfe9]['attachChange']['isAttached'])continue;const _0x43e6ab=this['_removeRevisionMarkers'](JSON['parse'](_0x2a20bb['diffData'][_0x17dfe9]['insertions'])),_0x2613b5=this['editor']['editing']['view']['document'],_0xd65404=new _0x1acc86(_0x2613b5,_0x43e6ab['map'](_0x583fd2=>this['_getViewFromDiffObj'](_0x583fd2,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2e231f[_0x17dfe9]=this['editor']['data']['processor']['toData'](_0xd65404),this['editor']['data']['processor']['useFillerType']('default');}return _0x2e231f;}['getRevisionRootsAttributes'](_0x56fe96){const _0x203394={};for(const _0x119e5d in _0x56fe96['diffData'])_0x56fe96['diffData'][_0x119e5d]['attachChange']&&!_0x56fe96['diffData'][_0x119e5d]['attachChange']['isAttached']||(_0x203394[_0x119e5d]=_0x56fe96['diffData'][_0x119e5d]['attributesAfter']||{});return _0x203394;}['_getTypeCharForViewElement'](_0x13f722){return this['_viewClassToTypeChar']['get'](_0x13f722['constructor']);}['_getViewFromDiffObj'](_0x382e12,_0x230dce){const _0x1c43bb=this['editor']['editing']['view']['document'];if('string'==typeof _0x382e12)return new _0x48640e(_0x1c43bb,_0x382e12);{let _0x1fb426,_0x16e7b7;_0x16e7b7='u'==_0x382e12['type']||'r'==_0x382e12['type']?[]:_0x382e12['children']['map'](_0xbb9be6=>this['_getViewFromDiffObj'](_0xbb9be6,_0x230dce));const _0x56f3aa=this['_typeCharToViewClass']['get'](_0x382e12['type'])||_0x3c8e2b,_0x4cde4b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1fb426=new _0x56f3aa(_0x1c43bb,_0x382e12['name'],_0x382e12['attributes'],_0x16e7b7),'u'==_0x382e12['type']&&_0x382e12['children'][0x0]){const _0x4cd944=_0x382e12['children'][0x0];if(_0x1fb426['render']=function(_0x567a30){const _0x71c25e=_0x567a30['createElement']('div');return _0x71c25e['innerHTML']=_0x4cd944,_0x71c25e['childNodes'][0x0];},_0x230dce){const _0x2e185e=new _0x1acc86(_0x1c43bb);_0x2e185e['_appendChild'](_0x1fb426);const _0x2c090b=Array['from'](_0x4cde4b['viewChildrenToDom'](_0x2e185e,{'bind':!0x1})),_0x2e63ab=_0x4cde4b['domDocument']['createElement']('div');_0x2e63ab['append'](..._0x2c090b),_0x1fb426=Array['from'](_0x4cde4b['domChildrenToView'](_0x2e63ab))[0x0];}}else{if('r'==_0x382e12['type']&&_0x382e12['children'][0x0]){const _0x553775=_0x382e12['children'][0x0];if(_0x1fb426['render']=function(_0x23d1da){_0x23d1da['innerHTML']=_0x553775;},_0x230dce){const _0x159ab4=new _0x1acc86(_0x1c43bb);_0x159ab4['_appendChild'](_0x1fb426);const _0x570472=Array['from'](_0x4cde4b['viewChildrenToDom'](_0x159ab4,{'bind':!0x1})),_0x1119dc=_0x4cde4b['domDocument']['createElement']('div');_0x1119dc['append'](..._0x570472);const _0x3e662e=Array['from'](_0x4cde4b['domChildrenToView'](_0x1119dc));_0x3e662e['length']>0x1?_0x1fb426['_appendChild'](_0x3e662e):_0x1fb426=_0x3e662e[0x0];}}}if(_0x382e12['customProperties']){for(const [_0x8caf7,_0x106ffd]of _0x382e12['customProperties'])_0x1fb426['_setCustomProperty'](_0x8caf7,_0x106ffd);}const _0x5266d4=void 0x0===_0x382e12['fillerOffset']?null:_0x382e12['fillerOffset'];return null!==_0x5266d4&&(_0x1fb426['getFillerOffset']=()=>_0x5266d4),_0x1fb426;}}['_makeModelFromViewString'](_0x1243ea){const _0x55c9b8=JSON['parse'](_0x1243ea),_0x3b30db=this['editor']['editing']['view']['document'],_0x1425e8=new _0x1acc86(_0x3b30db,_0x55c9b8['map'](_0x312926=>this['_getViewFromDiffObj'](_0x312926,!0x0)));return this['editor']['data']['toModel'](_0x1425e8);}['_removeRevisionMarkers'](_0x1c8b6b){return(_0x1c8b6b=_0x1c8b6b['filter'](_0x455d34=>!_0x455d34['name']||'revision-start'!==_0x455d34['name']&&'revision-end'!==_0x455d34['name']))['forEach'](_0x47ade4=>{'string'!=typeof _0x47ade4&&(_0x47ade4['children']=this['_removeRevisionMarkers'](_0x47ade4['children']),_0x47ade4['attributes']=_0x47ade4['attributes']['filter'](_0x147e25=>!_0x147e25[0x0]['startsWith']('data-revision-')));}),_0x1c8b6b;}}function m(_0x28e7a1,_0x4462de,_0x1eca8b){const t=_0x28e7a1['t'];switch(_0x4462de){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'},_0x1eca8b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1eca8b);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 h extends _0x38f444{['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[_0x3fbc11,S,$,_0x9122e7];}constructor(_0x40f30e){super(_0x40f30e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x37f592=_0x31075e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x37f592},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 _0x642e83=this['repository']['getRevision'](0x0),_0x3e0c0e=_0x642e83&&null===_0x642e83['creator']?_0x642e83:null;if(this['_continueCurrentRevision']=!!_0x3e0c0e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xe2af12=this['_source']['getCurrentRevisionId'](),_0x3d50f4=this['repository']['getRevision'](_0xe2af12);if(_0x3d50f4)this['_startingVersion']=_0x3d50f4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2d4a0c=this['_source']['history']['_operations']['find'](_0x128225=>!_0x128225['_isInit']),_0x3733a4=_0x2d4a0c?_0x2d4a0c['baseVersion']:this['_source']['history']['version'];_0x642e83?(_0x642e83['toVersion']<_0x3733a4&&_0x642e83['_update']({'toVersion':_0x3733a4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3e0c0e['id'],this['_startingVersion']=_0x3e0c0e['fromVersion']):(this['_startingVersion']=_0x642e83['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3733a4,this['_continueCurrentRevision']=!0x1);}}else _0x3e0c0e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3e0c0e['toVersion'],this['editor']['model']['document']['history']['version']),_0x3e0c0e['fromVersion']===_0x3e0c0e['toVersion']?(0x0!==_0x3e0c0e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e0c0e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e0c0e['id'],this['_startingVersion']=_0x3e0c0e['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',_0x362b0c=>!_0x362b0c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e2614=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x586d6a;for(const _0x4ce93c in _0x1e2614){const _0x16b283=_0x4ce93c,_0x1fca8b=_0x1e2614[_0x16b283];if('revisionHistoryLicenseKeyValid'==_0x1fca8b||'revisionHistoryLicenseKeyInvalid'==_0x1fca8b||'revisionHistoryLicenseKeyExpired'==_0x1fca8b||'revisionHistoryLicenseKeyDomainLimit'==_0x1fca8b||'revisionHistoryLicenseKeyNotAllowed'==_0x1fca8b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1fca8b||'revisionHistoryLicenseKeyTrialLimit'==_0x1fca8b||'revisionHistoryLicenseKeyUsageLimit'==_0x1fca8b){delete _0x1e2614[_0x16b283],_0x586d6a=_0x1fca8b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x586d6a&&_0x1e2614['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x586d6a&&_0x1e2614['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x586d6a&&_0x1e2614['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x586d6a&&_0x1e2614['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x586d6a&&_0x1e2614['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x586d6a&&_0x1e2614['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x586d6a&&_0x1e2614['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3ebeb4=this['repository']['getRevision'](0x0),_0x543731=await this['getRevisionDocumentData'](_0x3ebeb4),_0x16e7ca=await this['getRevisionRootsAttributes'](_0x3ebeb4);this['_replaceEditorDataWithRevisionData'](_0x543731,_0x16e7ca);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3ff349){this['_source']=_0x3ff349;}async['update'](){const _0x5a0874=await this['_source']['getLatestVersion']();if(_0x5a0874>this['currentRevision']['toVersion']){await this['_loadState']();const _0x580d8a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5a0874});_0x580d8a['authors']=_0x580d8a['authorsIds']['map'](_0x2ac476=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ac476)),this['currentRevision']['_update'](_0x580d8a);}}async['saveRevision'](_0x2bfa29={},_0x15295c=null){const _0x57aaa3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x15295c>this['currentRevision']['toVersion']&&(_0x15295c=null),null===_0x15295c&&(_0x15295c=await this['_source']['getLatestVersion']());const _0x397892=this['_getFromVersion'](_0x15295c),_0x569af7=this['buildRevisionData']({'from':_0x397892,'to':_0x15295c});if(this['currentRevision']['toVersion']<_0x15295c){const _0x397673=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x15295c,'to':_0x15295c});_0x397673['authors']=[],_0x397673['authorsIds']=[],_0x397673['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x397673,!0x0),delete _0x397673['authors'],_0x57aaa3['push'](_0x397673);}_0x2bfa29['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2bfa29['name']=_0x2bfa29['name']||null,_0x2bfa29['id']=_0x2bfa29['id']||_0x31075e(),_0x2bfa29={..._0x2bfa29,..._0x569af7};const _0x4dfc7e=this['addRevisionData'](_0x2bfa29);_0x57aaa3['push'](_0x2bfa29);const _0x4f494b=this['repository']['getIndex'](_0x4dfc7e);if(0x0!==_0x4f494b){const _0x4d4d73=this['repository']['getRevision'](_0x4f494b-0x1);if(_0x4d4d73['fromVersion']!==_0x15295c){const _0x45359a=this['_revisionDataBuilder']['getData'](_0x15295c,_0x4d4d73['toVersion']),_0x438b0a={'id':_0x4d4d73['id'],'diffData':_0x45359a['diffData'],'authorsIds':_0x45359a['authorsIds'],'authors':_0x45359a['authorsIds']['map'](_0x7b791=>this['editor']['plugins']['get']('Users')['getUser'](_0x7b791)),'fromVersion':_0x15295c};_0x4d4d73===this['currentRevision']&&(_0x438b0a['createdAt']=new Date(_0x2bfa29['createdAt']['getTime']()+0xa)),_0x4d4d73['_update'](_0x438b0a,!0x0),delete _0x438b0a['authors'],_0x57aaa3['push'](_0x438b0a);}}if(this['adapter']){for(const _0x37807d of _0x57aaa3)this['_bufferUpdate'](_0x37807d['id'],_0x37807d,!0x0);this['sendBufferedUpdates']();}return _0x4dfc7e;}['addRevisionData'](_0x4af40b){const _0x206af9=this['repository']['createRevision'](_0x4af40b);return this['adapter']&&_0x206af9['on']('_update',(_0x2569e5,_0xe5d47b,_0x3e1302)=>{_0x3e1302||(this['_bufferUpdate'](_0xe5d47b['id'],_0xe5d47b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x206af9,this['_findInsertionIndex'](_0x206af9)),_0x206af9;}async['getRevisionDocumentData'](_0x4b798f){return await this['_utils']['loadRevisionData'](_0x4b798f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4b798f);}async['getRevisionRootsAttributes'](_0x184950){return await this['_utils']['loadRevisionData'](_0x184950,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x184950);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x534c43=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x116840=0x0;_0x116840<_0x534c43['length'];_0x116840++){const _0x330abb=_0x534c43[_0x116840];let _0x4a8207=!0x1;for(const _0x15f37a of Object['keys'](_0x330abb))void 0x0===_0x330abb[_0x15f37a]?delete _0x330abb[_0x15f37a]:'id'!==_0x15f37a&&(_0x4a8207=!0x0);_0x4a8207||(_0x534c43[_0x116840]=null);}if(_0x534c43=_0x534c43['filter'](_0x4837cc=>null!==_0x4837cc),!_0x534c43['length'])return;for(let _0x2aaaf5=0x0;_0x2aaaf5<_0x534c43['length'];_0x2aaaf5++){const _0x35b9d8=_0x534c43[_0x2aaaf5];void 0x0!==_0x35b9d8['fromVersion']&&void 0x0===_0x35b9d8['toVersion']&&(_0x35b9d8['toVersion']=this['repository']['getRevision'](_0x35b9d8['id'])['toVersion']),void 0x0!==_0x35b9d8['toVersion']&&void 0x0===_0x35b9d8['fromVersion']&&(_0x35b9d8['fromVersion']=this['repository']['getRevision'](_0x35b9d8['id'])['fromVersion']);}const _0x1f2a9b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x534c43,_0x1f2a9b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3f9a9b=>{if(_0x3f9a9b){for(const _0x73eb93 of _0x3f9a9b)this['setRevisionData']({'id':_0x73eb93['id'],'createdAt':_0x73eb93['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x24ef41=null,from:_0x5014d8=null,to:_0x584f2a=null}){_0x5014d8=null!==_0x5014d8?_0x5014d8:_0x24ef41['fromVersion'],_0x584f2a=null!==_0x584f2a?_0x584f2a:_0x24ef41['toVersion'];const _0x1b8208=this['_revisionDataBuilder']['getData'](_0x5014d8,_0x584f2a),_0x33fff5={'diffData':_0x1b8208['diffData'],'authorsIds':_0x1b8208['authorsIds'],'fromVersion':_0x5014d8,'toVersion':_0x584f2a};if(!_0x24ef41||_0x584f2a!==_0x24ef41['toVersion']){const _0x2d67a6=_0x584f2a-0x1,_0x38251c=this['_source']['history']['getOperation'](_0x2d67a6);_0x33fff5['createdAt']=_0x38251c&&_0x38251c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5014d8===this['_loadedStateData']['fromVersion']){for(const _0x3322dd of this['_loadedStateData']['authors'])_0x33fff5['authorsIds']['includes'](_0x3322dd['id'])||_0x33fff5['authorsIds']['push'](_0x3322dd['id']);}return _0x33fff5;}['_bufferUpdate'](_0x184ce0,_0x451f40,_0x3a79b6){if(this['_bufferedUpdates']['has'](_0x184ce0)){const _0xe32b15=this['_bufferedUpdates']['get'](_0x184ce0);_0x451f40=_0x3a79b6?{..._0xe32b15,..._0x451f40}:{..._0x451f40,..._0xe32b15};}this['_bufferedUpdates']['set'](_0x184ce0,_0x451f40);}['setRevisionData'](_0x1915b0){const _0x3b0688=this['repository']['getRevision'](_0x1915b0['id']);if(_0x1915b0['createdAt']&&(_0x1915b0['createdAt']=new Date(_0x1915b0['createdAt'])),_0x1915b0['authorsIds']){const _0x139091=this['editor']['plugins']['get']('Users');_0x1915b0['authors']=_0x1915b0['authorsIds']['map'](_0x2812b7=>_0x139091['getUser'](_0x2812b7));}_0x3b0688['_update'](_0x1915b0,!0x0);}['_createInitialRevision'](_0xaa3fc7){const _0x1b8746=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1b8746)this['_initialRevisionId']=_0x1b8746['id'];else{const _0x36ff5e=!this['editor']['model']['document']['roots']['find'](_0x20ab4a=>this['editor']['model']['hasContent'](_0x20ab4a)),_0x54b8e0=this['editor']['plugins']['get']('Users')['me']['id'],_0x618d77=m(this['editor']['locale'],_0x36ff5e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xaa3fc7,'to':_0xaa3fc7,'id':this['_initialRevisionId'],'name':_0x618d77,'creatorId':_0x54b8e0});}}['_createCurrentRevision'](_0x289c65){const _0x217192=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x217192),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x289c65,'to':_0x289c65,'id':_0x217192,'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'](_0x2b1bbb,_0x436640){let _0x2ea0c1=this['editor']['config']['get']('initialData'),_0x506ddf=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2ea0c1){_0x2ea0c1={};for(const _0x163895 of this['editor']['model']['document']['getRootNames']())_0x2ea0c1[_0x163895]='';}if('string'==typeof _0x2ea0c1&&(_0x2ea0c1={'main':_0x2ea0c1}),void 0x0===_0x506ddf){_0x506ddf={};for(const _0x2e69d3 of this['editor']['model']['document']['getRootNames']())_0x506ddf[_0x2e69d3]={};}let _0x2924b3=!0x1;const _0x25fd2b=Object['keys'](_0x2ea0c1),_0x1b7e63=Object['keys'](_0x2b1bbb);for(const _0x914fbc of _0x25fd2b){if(_0x2ea0c1[_0x914fbc]!==_0x2b1bbb[_0x914fbc]&&''!==_0x2ea0c1[_0x914fbc]['trim']()){_0x2924b3=!0x0;break;}if(!_0x553c5f(_0x506ddf[_0x914fbc],_0x436640[_0x914fbc])&&Object['keys'](_0x506ddf[_0x914fbc])['length']>0x0){_0x2924b3=!0x0;break;}}_0x2924b3||(_0x2924b3=_0x1b7e63['some'](_0x4f05b7=>!this['editor']['model']['document']['getRoot'](_0x4f05b7))),_0x2924b3&&_0x728dc7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2ea0c1,'editorRootsAttributes':_0x506ddf,'revisionData':_0x2b1bbb,'revisionRootsAttributes':_0x436640}),this['editor']['config']['set']('initialData',_0x2b1bbb),this['editor']['config']['set']('rootsAttributes',_0x436640);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1d0c82=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1d0c82['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4a8e67){const _0x26336a=this['repository']['getRevisions']();_0x26336a['reverse']();let _0xe0ffe7=0x0;for(;_0xe0ffe7<_0x26336a['length'];){const _0xbcedb0=_0x26336a[_0xe0ffe7];if(_0xbcedb0===this['currentRevision']){_0xe0ffe7++;continue;}if(_0xbcedb0['id']===this['_initialRevisionId'])break;const _0x2acbf9=_0x4a8e67['toVersion']-_0xbcedb0['toVersion']||_0x4a8e67['fromVersion']-_0xbcedb0['fromVersion'];if(_0x2acbf9>0x0)break;if(_0x2acbf9<0x0)_0xe0ffe7++;else{if(!_0x4a8e67['creator']&&_0xbcedb0['creator'])break;if(_0xbcedb0['creator']||!_0x4a8e67['creator']){if(_0x4a8e67['createdAt']>_0xbcedb0['createdAt'])break;_0xe0ffe7++;}else _0xe0ffe7++;}}return _0xe0ffe7;}['_getFromVersion'](_0x46fe29){const _0xa10c0c=this['repository']['getRevisions']();_0xa10c0c['reverse'](),_0xa10c0c['shift']();const _0x3d37cb=_0xa10c0c['find'](_0x28bfd8=>_0x28bfd8['toVersion']<=_0x46fe29)['toVersion'];return _0x3d37cb<this['_startingVersion']?this['_startingVersion']:_0x3d37cb;}['_makeRevision']({name:_0x16fe13,from:_0x6543f5,to:_0x53e73a,creatorId:_0x4e28d2,id:_0x4e57bb}){const _0x593103=this['buildRevisionData']({'from':_0x6543f5,'to':_0x53e73a});_0x593103['name']=_0x16fe13,_0x593103['creatorId']=_0x4e28d2,_0x593103['id']=_0x4e57bb;const _0x15c615=this['addRevisionData'](_0x593103);return this['adapter']&&this['_bufferUpdate'](_0x593103['id'],_0x593103,!0x0),_0x15c615;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x274554){this['editor']=_0x274554,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'](_0x4d61d5){this['source']=_0x4d61d5;const _0x28e32d=new Map(),_0x16a838=new Map(),_0x13ee62=this['editor']['model']['document']['roots']['map'](_0x1db670=>_0x1db670['rootName']);for(const _0x2a789b of _0x13ee62){const _0x383302=this['editor']['model']['document']['getRoot'](_0x2a789b),_0x33dce6=x(_0x383302);_0x28e32d['set'](_0x2a789b,_0x33dce6),_0x16a838['set'](_0x2a789b,Object['fromEntries'](_0x383302['getAttributes']()));}const _0x5f2191=Array['from'](this['editor']['model']['markers'])['map'](_0x189b40=>[_0x189b40['name'],_0x189b40['getRange']()]),_0x32f11f=this['source']['version'];this['_saveMetaData'](_0x32f11f,_0x28e32d,_0x5f2191,_0x16a838),this['_startingRevisionId']=this['_revisionId'];const _0x443149=new Map(),_0x314bab=new Map();for(const _0x7e5e8e of _0x13ee62){const _0x141c35=N(_0x7e5e8e);_0x443149['set'](_0x7e5e8e,_0x141c35),_0x314bab['set'](_0x7e5e8e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x443149,[],_0x314bab);}['getData'](_0x1abbc0,_0x591da6){if(this['_lastFrom']===_0x1abbc0&&this['_lastTo']<=_0x591da6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x591da6,!0x0);else{if(!this['_savedMetaData']['has'](_0x1abbc0)){const _0x593a64=this['_getPreviousFrom'](_0x1abbc0);this['_calculateMetaData'](_0x593a64,_0x1abbc0,!0x1);}this['_calculateMetaData'](_0x1abbc0,_0x591da6,!0x0);}return this['_lastFrom']=_0x1abbc0,this['_lastTo']=_0x591da6,this['_getState']();}['loadState'](_0x2f6dbf){if(!this['_savedMetaData']['has'](_0x2f6dbf['fromVersion'])){const _0x1a0a38=this['_getPreviousFrom'](_0x2f6dbf['fromVersion']);this['_calculateMetaData'](_0x1a0a38,_0x2f6dbf['fromVersion'],!0x1);}this['_calculateMetaData'](_0x2f6dbf['fromVersion'],_0x2f6dbf['toVersion'],!0x1);const _0x19069c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2f6dbf['fromVersion'],this['_lastTo']=_0x2f6dbf['toVersion'];for(const _0x40a8cd in _0x2f6dbf['diffData']){const _0x5390e5=_0x2f6dbf['diffData'][_0x40a8cd]['attachChange'],_0x3d1075=_0x24b057(_0x2f6dbf['diffData'][_0x40a8cd]['attributesBefore'])||{},_0x438fc3=_0x19069c['_makeModelFromViewString'](_0x2f6dbf['diffData'][_0x40a8cd]['deletions']);_0x438fc3['rootName']=_0x40a8cd,_0x438fc3['_isAttached']=!_0x5390e5||!_0x5390e5['isAttached'],_0x438fc3['isAttached']=()=>_0x438fc3['_isAttached'],this['_baseRoots']['set'](_0x40a8cd,_0x438fc3),this['_baseRootsAttributes']['set'](_0x40a8cd,_0x3d1075),_0x5390e5&&this['_touchedRoots']['set'](_0x40a8cd,_0x5390e5);const _0x28b647=this['_makeIdsRoot'](_0x438fc3);this['_baseIdsRoots']['set'](_0x40a8cd,_0x28b647);for(const [_0x543df2,_0x2f981e]of _0x438fc3['markers']){if(!_0x543df2['startsWith']('revision:'))continue;const _0x223999=_0x543df2['split'](':')[0x2];for(const _0xeddfe8 of _0x2f981e['getWalker']({'singleCharacters':!0x0})){const _0x1fd1ae=this['_getVidAttributeName'](_0xeddfe8),_0x24a1fb='elementEnd'==_0xeddfe8['type']?_0xeddfe8['previousPosition']['path']['slice'](0x0,-0x1):_0xeddfe8['previousPosition']['path'],_0x1f99d9=_0x28b647['getNodeByPath'](_0x24a1fb)['getAttribute'](_0x1fd1ae);this['_touched']['set'](_0x1f99d9,{'userId':_0x223999});}_0x438fc3['markers']['delete'](_0x543df2);}}this['_startingRevisionId']=this['_revisionId'];const _0x33057a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4e0000=>!this['_touched']['has'](_0x4e0000));let _0x43f5e9=0x0;const _0xcbc20c=new Map();for(const _0x4f257a in _0x2f6dbf['diffData']){const _0x35d976=_0x2f6dbf['diffData'][_0x4f257a]['attachChange'],_0x3b7204=_0x24b057(_0x2f6dbf['diffData'][_0x4f257a]['attributesAfter'])||{},_0x12457c=_0x19069c['_makeModelFromViewString'](_0x2f6dbf['diffData'][_0x4f257a]['insertions']);_0x12457c['rootName']=_0x4f257a,_0x12457c['_isAttached']=!_0x35d976||_0x35d976['isAttached'],_0x12457c['isAttached']=()=>_0x12457c['_isAttached'],this['_diffRoots']['set'](_0x4f257a,_0x12457c),this['_diffRootsAttributes']['set'](_0x4f257a,_0x3b7204);const _0x4b7bde=this['_makeIdsRoot'](_0x12457c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f257a,_0x4b7bde),_0xcbc20c['set'](_0x4f257a,_0x12457c['isAttached']()?_0x3b7204:{});for(const [_0x2f69de,_0x57b64f]of _0x12457c['markers']){if(!_0x2f69de['startsWith']('revision:'))continue;const _0x562143=_0x2f69de['split'](':')[0x2];for(const _0x308095 of _0x57b64f['getWalker']({'singleCharacters':!0x0})){const _0x52ded7=this['_getVidAttributeName'](_0x308095),_0x367b4f=this['_revisionId']++,_0x557f23='elementEnd'==_0x308095['type']?_0x308095['previousPosition']['path']['slice'](0x0,-0x1):_0x308095['previousPosition']['path'];_0x4b7bde['getNodeByPath'](_0x557f23)['_setAttribute'](_0x52ded7,_0x367b4f),this['_touched']['set'](_0x367b4f,{'userId':_0x562143});}_0x12457c['markers']['delete'](_0x2f69de);}for(const _0x4b9f80 of this['editor']['model']['createRangeIn'](_0x12457c)['getWalker']({'singleCharacters':!0x0})){const _0xa5ce01=this['_getVidAttributeName'](_0x4b9f80),_0x4bae7c='elementEnd'==_0x4b9f80['type']?_0x4b9f80['previousPosition']['path']['slice'](0x0,-0x1):_0x4b9f80['previousPosition']['path'],_0x7ab245=_0x4b7bde['getNodeByPath'](_0x4bae7c);_0x7ab245['getAttribute'](_0xa5ce01)>0x0||_0x7ab245['_setAttribute'](_0xa5ce01,_0x33057a[_0x43f5e9++]);}for(const [_0x226656,_0x157d61]of _0x12457c['markers'])_0x226656['startsWith']('revision:')||this['_markers']['set'](_0x226656,_0x157d61);}const {roots:_0x4d7afc}=this['_savedMetaData']['get'](_0x2f6dbf['fromVersion']),{roots:_0x2a8bcb}=this['_savedMetaData']['get'](_0x2f6dbf['toVersion']),_0x59b47a=x(_0x4d7afc['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x59b47a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59b47a,Number['NEGATIVE_INFINITY']));const _0x45a502=x(_0x2a8bcb['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x45a502),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x45a502));const _0xadc73d=Array['from'](this['_diffRoots'])['map'](([_0x10ded6,_0x312e79])=>[_0x10ded6,x(_0x312e79)]);this['_saveMetaData'](this['_lastTo'],_0xadc73d,this['_markers'],_0xcbc20c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x836873,_0x4da406,_0xab0599,_0x122a46){const _0x4b81af=new Map(_0x4da406),_0x1340fc=new Map(_0x24b057(_0x122a46)),_0x1ca9bc=new Map();for(const [_0x4bc76f,_0x17a3d1]of _0xab0599)_0x1ca9bc['set'](_0x4bc76f,{'start':_0x17a3d1['start']['clone'](),'end':_0x17a3d1['end']['clone'](),'rootName':_0x17a3d1['root']['rootName']});this['_savedMetaData']['set'](_0x836873,{'roots':_0x4b81af,'markers':_0x1ca9bc,'rootsAttributes':_0x1340fc});}['_removeMetaData'](_0xc5b732){this['_savedMetaData']['delete'](_0xc5b732);}['_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'](_0x590b24,_0x481899=null){let _0x3c75dc=null;_0x590b24['is']('documentFragment')||(_0x3c75dc=new _0xf20b09(_0x590b24['name'],{'vid_start':null===_0x481899?this['_revisionId']++:_0x481899++}));const _0x1baa6d=[];for(const _0x98043d of _0x590b24['getChildren']())if(_0x98043d['is']('element')){_0x1baa6d['push'](this['_makeIdsRoot'](_0x98043d,_0x481899));const _0x1eab90=_0x1baa6d[_0x1baa6d['length']-0x1];null!==_0x481899&&(_0x481899=_0x1eab90['is']('element','$text')?_0x1eab90['getAttribute']('vid')+0x1:_0x1eab90['getAttribute']('vid_end')+0x1);}else{for(let _0xed5427=0x0;_0xed5427<_0x98043d['offsetSize'];_0xed5427++)_0x1baa6d['push'](new _0xf20b09('$text',{'vid':null===_0x481899?this['_revisionId']++:_0x481899++}));}if(_0x590b24['is']('documentFragment')){const _0x33c1fe=N(_0x590b24['rootName']);return _0x33c1fe['_insertChild'](0x0,_0x1baa6d),_0x33c1fe;}return _0x3c75dc['_setAttribute']('vid_end',null===_0x481899?this['_revisionId']++:_0x481899++),_0x3c75dc['_insertChild'](0x0,_0x1baa6d),_0x3c75dc;}['_calculateMetaData'](_0xecfd32,_0x53f3dc,_0x5a2ccc){this['_reset']();const {roots:_0x1f974d,markers:_0x5ee3e0,rootsAttributes:_0x2509a6}=this['_savedMetaData']['get'](_0xecfd32);this['_baseRoots']=new Map(_0x1f974d),this['_baseRootsAttributes']=new Map(_0x24b057(_0x2509a6));for(const [_0x2530c4,_0x4cc97d]of this['_baseRoots'])if('$graveyard'!==_0x2530c4&&(this['_diffRoots']['set'](_0x2530c4,x(_0x4cc97d)),this['_diffRootsAttributes']=new Map(_0x24b057(_0x2509a6)),_0x5a2ccc)){const _0xb24d5a=this['_revisionId'];this['_idsRoots']['set'](_0x2530c4,this['_makeIdsRoot'](_0x4cc97d)),this['_baseIdsRoots']['set'](_0x2530c4,this['_makeIdsRoot'](_0x4cc97d,_0xb24d5a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5a2ccc&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x36ef0b,_0x2977f1]of _0x5ee3e0){const _0xf533b=this['_baseRoots']['get'](_0x2977f1['rootName']),_0x213e06=this['_diffRoots']['get'](_0x2977f1['rootName']),_0x1028ed=new _0x229d78(this['_fixPosition'](_0x2977f1['start'],_0xf533b),this['_fixPosition'](_0x2977f1['end'],_0xf533b)),_0x2e3945=this['_fixRange'](_0x1028ed,_0x213e06);_0xf533b['markers']['set'](_0x36ef0b,_0x1028ed),this['_markers']['set'](_0x36ef0b,_0x2e3945);}this['_applyOperations'](_0xecfd32,_0x53f3dc,_0x5a2ccc);}['_applyOperations'](_0x8586bd,_0x530129,_0x5bce6a){for(const _0x475612 of this['source']['getOperations'](_0x8586bd,_0x530129))this['_handleOperation'](_0x475612,_0x5bce6a);for(const _0x31ed96 of this['_diffRoots']['values']())_0x31ed96['markers']['clear']();for(const [_0x349179,_0x2c8e73]of this['_markers']){this['_diffRoots']['get'](_0x2c8e73['root']['rootName'])['markers']['set'](_0x349179,_0x2c8e73['clone']());}const _0x596f63=new Map(),_0x243a2e=new Map();for(const [_0x4edd85,_0x298ab3]of this['_diffRoots'])_0x596f63['set'](_0x4edd85,x(_0x298ab3)),_0x243a2e['set'](_0x4edd85,this['_diffRootsAttributes']['get'](_0x4edd85));this['_saveMetaData'](_0x530129,_0x596f63,this['_markers'],_0x243a2e);}['_getPreviousFrom'](_0x43502d){const _0x4aa00a=Array['from'](this['_savedMetaData']['keys']());_0x4aa00a['sort']((_0x428d8f,_0x5233da)=>_0x428d8f-_0x5233da),_0x4aa00a['reverse']();for(const _0x1b2f9a of _0x4aa00a)if(_0x1b2f9a<_0x43502d)return _0x1b2f9a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x16b68c,_0x346af0){const _0x108204=Array['from'](_0x346af0['markers'])['map'](([_0x56a695,_0x3170b3])=>[_0x56a695,this['_fixRange'](_0x3170b3,_0x16b68c)]);_0x16b68c['markers']=new Map(_0x108204);}['_transformMarkers'](_0x29c82b){for(const _0x3ea3b9 of this['_markers']['values']()){const _0x5bd8d5=_0x3ea3b9['getTransformedByOperation'](_0x29c82b),_0x2d9ae2=_0x229d78['_createFromRanges'](_0x5bd8d5);_0x3ea3b9['start']=_0x2d9ae2['start'],_0x3ea3b9['end']=_0x2d9ae2['end'];}}['_handleOperation'](_0x31d154,_0x3afef2){if('addRoot'!=_0x31d154['type']&&'detachRoot'!=_0x31d154['type']){if('insert'==_0x31d154['type']){const _0xb536f9=_0x31d154['position']['root']['rootName'];this['_diffRoots']['has'](_0xb536f9)||(this['_diffRoots']['set'](_0xb536f9,N(_0xb536f9,!0x0)),this['_diffRootsAttributes']['set'](_0xb536f9,{}),_0x3afef2&&this['_idsRoots']['set'](_0xb536f9,N(_0xb536f9,!0x0)));}else{if('addRootAttribute'==_0x31d154['type']||'removeRootAttribute'==_0x31d154['type']||'changeRootAttribute'==_0x31d154['type'])return void this['_handleRootAttributeOperation'](_0x31d154);'marker'==_0x31d154['type']&&this['_handleMarkerOperation'](_0x31d154);}if('marker'!==_0x31d154['type']){const _0x3e126c=this['_cloneOperation'](_0x31d154,this['_diffRoots']);_0x3e126c['_execute'](),this['_transformMarkers'](_0x3e126c);}if(_0x3afef2)switch(_0x31d154['type']){case'insert':this['_handleInsertOperation'](_0x31d154);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x31d154);break;case'merge':this['_handleMergeOperation'](_0x31d154);break;case'split':this['_handleSplitOperation'](_0x31d154);}}else this['_handleRootOperation'](_0x31d154,_0x3afef2);}['_cloneOperation'](_0x36f83a,_0x9e3508){const _0x1725aa=_0x36f83a['clone']();return _0x1725aa['_authorId']=_0x36f83a['_authorId'],this['_fixOperation'](_0x1725aa,_0x9e3508),_0x1725aa;}['_getBaseVids'](_0x2b4b51){return _0x2b4b51['map'](_0x4b9f7f=>{const _0x2f4b5b=this['_getVidAttributeName'](_0x4b9f7f);return Number(_0x4b9f7f['item']['getAttribute'](_0x2f4b5b));});}['_generateTape'](_0x22cd37,_0x22aada){if(_0x22cd37['is']('element','$text'))_0x22aada['push']({'item':_0x22cd37,'type':'text'});else{_0x22cd37['is']('element')&&_0x22aada['push']({'item':_0x22cd37,'type':'elementStart'});for(const _0x82ebb7 of _0x22cd37['getChildren']())this['_generateTape'](_0x82ebb7,_0x22aada);_0x22cd37['is']('element')&&_0x22aada['push']({'item':_0x22cd37,'type':'elementEnd'});}return _0x22aada;}['_getState'](){const _0x28e846=new Map(this['_touched']),_0x5203ef=new Map(_0x28e846),_0x34a1b9=new Map(),_0x225846={'insertions':{},'deletions':{}},_0x4b7065={'insertions':{},'deletions':{}},_0x3130bb=new Map(),_0x285056=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x285056['delete']('$graveyard');for(const _0x5f08b4 of _0x285056){const _0x4658f2=this['_diffRoots']['get'](_0x5f08b4)||N(_0x5f08b4,!0x1),_0x303848=this['_baseRoots']['get'](_0x5f08b4)||N(_0x5f08b4,!0x1);_0x4658f2['isAttached']()||_0x303848['isAttached']()?(_0x225846['insertions'][_0x5f08b4]=x(_0x4658f2),_0x225846['deletions'][_0x5f08b4]=x(_0x303848),this['_copyMarkers'](_0x225846['deletions'][_0x5f08b4],_0x303848),this['_copyMarkers'](_0x225846['insertions'][_0x5f08b4],_0x4658f2),_0x4b7065['insertions'][_0x5f08b4]=this['_generateTape'](this['_idsRoots']['get'](_0x5f08b4),[]),_0x4b7065['deletions'][_0x5f08b4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5f08b4)||N(_0x5f08b4,!0x1),[])):_0x285056['delete'](_0x5f08b4);}for(const _0x1c8dc1 of _0x285056){const _0x460c4a=_0x4b7065['insertions'][_0x1c8dc1];for(const _0x266cc7 of _0x460c4a){const _0x5de8e0=this['_getVidAttributeName'](_0x266cc7),_0xc50e05=_0x266cc7['item']['getAttribute'](_0x5de8e0);_0x5203ef['delete'](_0xc50e05),_0xc50e05>=this['_startingRevisionId']&&_0x34a1b9['set'](_0xc50e05,_0x28e846['get'](_0xc50e05));}}for(const _0x32b373 of _0x285056){const _0x57a659=_0x4b7065['insertions'][_0x32b373],_0x5f15fe=this['_getBaseVids'](_0x4b7065['deletions'][_0x32b373]);let _0x2ced15=0x0;for(const _0x5e8a7a of _0x57a659){const _0x3ac64c=this['_getVidAttributeName'](_0x5e8a7a),_0x37c6fc=_0x5e8a7a['item']['getAttribute'](_0x3ac64c);if(!_0x34a1b9['has'](_0x37c6fc)&&!_0x3130bb['has'](_0x37c6fc)){if(_0x5203ef['has'](_0x37c6fc))_0x2ced15++;else{if(_0x37c6fc!=_0x5f15fe[_0x2ced15]){const _0x34680d=_0x28e846['get'](_0x37c6fc)||_0x28e846['get'](_0x5f15fe[_0x2ced15]);for(;_0x37c6fc!=_0x5f15fe[_0x2ced15];)_0x5203ef['has'](_0x5f15fe[_0x2ced15])||(_0x3130bb['set'](_0x5f15fe[_0x2ced15],_0x34680d),_0x28e846['set'](_0x5f15fe[_0x2ced15],_0x34680d)),_0x2ced15++;}_0x2ced15++;}}}}for(const _0x5b87de of _0x285056){const _0x53a9c6=_0x4b7065['insertions'][_0x5b87de];for(const _0x54c9f8 of _0x53a9c6){const _0x15e6b4=this['_getVidAttributeName'](_0x54c9f8),_0x5bbba5=_0x54c9f8['item']['getAttribute'](_0x15e6b4);if(_0x3130bb['has'](_0x5bbba5)){const _0x1cd8fe=_0x3130bb['get'](_0x5bbba5);_0x5203ef['has'](_0x5bbba5)||_0x5203ef['set'](_0x5bbba5,{..._0x1cd8fe}),_0x34a1b9['set'](_0x5bbba5,{..._0x1cd8fe});}}}for(const _0x8e78e8 of _0x5203ef['keys']())_0x8e78e8>=this['_startingRevisionId']&&_0x5203ef['delete'](_0x8e78e8);const _0x5439cd=new Map();for(const _0x23d0df of _0x285056){let _0x549b2d=_0x4b7065['insertions'][_0x23d0df];for(const _0x4c6b36 of _0x549b2d)if(_0x4c6b36['item']['is']('element','tableCell')){const _0x50a8b4=this['_getVidAttributeName'](_0x4c6b36),_0x52638d=_0x4c6b36['item']['getAttribute'](_0x50a8b4);if(_0x34a1b9['has'](_0x52638d)){const _0x10b1a3=_0x4c6b36['item']['parent']['parent']['getAttribute']('vid_start'),_0x9f1e6f=_0x5439cd['get'](_0x10b1a3)||new Set();_0x9f1e6f['add'](_0x34a1b9['get'](_0x52638d)['userId']),_0x5439cd['set'](_0x10b1a3,_0x9f1e6f);}}_0x549b2d=_0x4b7065['deletions'][_0x23d0df];for(const _0x4a9695 of _0x549b2d)if(_0x4a9695['item']['is']('element','tableCell')){const _0x35a9ed=this['_getVidAttributeName'](_0x4a9695),_0x574b73=_0x4a9695['item']['getAttribute'](_0x35a9ed);if(_0x5203ef['has'](_0x574b73)){const _0x325617=_0x4a9695['item']['parent']['parent']['getAttribute']('vid_start'),_0x316a33=_0x5439cd['get'](_0x325617)||new Set();_0x316a33['add'](_0x5203ef['get'](_0x574b73)['userId']),_0x5439cd['set'](_0x325617,_0x316a33);}}for(const _0x3b563c of _0x5439cd['keys']())(_0x34a1b9['has'](_0x3b563c)||_0x5203ef['has'](_0x3b563c))&&_0x5439cd['delete'](_0x3b563c);}for(const _0x4f9355 of _0x285056){const _0x363574=_0x4b7065['insertions'][_0x4f9355];let _0xfc2c89=null,_0x3d00c3=null;for(const _0x5b57d3 of _0x363574){const _0x3d6575=this['_getVidAttributeName'](_0x5b57d3),_0x147c50=_0x5b57d3['item']['getAttribute'](_0x3d6575),_0x282c3f=_0x5439cd['get'](_0x147c50);_0x282c3f&&'elementStart'==_0x5b57d3['type']&&(_0xfc2c89=Array['from'](_0x282c3f)[0x0],_0x3d00c3=_0x5b57d3['item']['getAttribute']('vid_end')),_0xfc2c89&&(_0x5203ef['set'](_0x147c50,{'userId':_0xfc2c89}),_0x34a1b9['set'](_0x147c50,{'userId':_0xfc2c89})),_0x147c50==_0x3d00c3&&(_0xfc2c89=null,_0x3d00c3=null);}}const _0x157b75={},_0x23caee=new Set();for(const _0x7ccb0d of _0x285056){const _0x48c11f=_0x225846['deletions'][_0x7ccb0d],_0x48c7ea=_0x225846['insertions'][_0x7ccb0d];for(const {userId:_0x49c3f8}of this['_touchedMarkers']['values']())null!==_0x49c3f8&&_0x23caee['add'](_0x49c3f8);for(const {userId:_0x52de9d}of this['_touchedRoots']['values']())null!==_0x52de9d&&_0x23caee['add'](_0x52de9d);this['_markChanges'](_0x48c7ea,_0x4b7065['insertions'][_0x7ccb0d],_0x34a1b9,'insertion',_0x23caee),this['_markChanges'](_0x48c11f,_0x4b7065['deletions'][_0x7ccb0d],_0x5203ef,'deletion',_0x23caee),_0x157b75[_0x7ccb0d]={'insertions':this['_prepareViewToSave'](_0x48c7ea),'deletions':this['_prepareViewToSave'](_0x48c11f),'attachChange':this['_touchedRoots']['get'](_0x7ccb0d)||null,'attributesBefore':_0x24b057(this['_baseRootsAttributes']['get'](_0x7ccb0d))||{},'attributesAfter':_0x24b057(this['_diffRootsAttributes']['get'](_0x7ccb0d))};}return{'diffData':_0x157b75,'authorsIds':Array['from'](_0x23caee)};}['_processRootBeforeSave'](_0x393c28){for(const [,_0x61b2b0]of _0x393c28['markers']){const _0xb12ab2=_0x61b2b0['start']['getAncestors']()['filter'](_0x630670=>'tableCell'==_0x630670['name']);for(const _0x37f1bd of _0xb12ab2)0x1==_0x37f1bd['childCount']&&_0x37f1bd['getChild'](0x0)['is']('element','paragraph')&&_0x37f1bd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2aa995){this['_processRootBeforeSave'](_0x2aa995);const _0xa5fc21=this['editor']['data']['toView'](_0x2aa995,{}),_0x44f291=Array['from'](_0xa5fc21['getChildren']())['map'](_0x4d546f=>this['_getViewJson'](_0x4d546f));return JSON['stringify'](_0x44f291);}['_getViewJson'](_0x3e43c4){if(_0x3e43c4['is']('$text'))return _0x3e43c4['data'];{const _0x2cb12f=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x117378=_0x3e43c4,_0xe90b26=this['editor']['data']['htmlProcessor']['domConverter'],_0x34a948={'type':_0x2cb12f['_getTypeCharForViewElement'](_0x117378),'name':_0x117378['name'],'attributes':Array['from'](_0x117378['getAttributes']()),'children':Array['from'](_0x117378['getChildren']())['map'](_0x5a0b7c=>this['_getViewJson'](_0x5a0b7c))};if(_0x3e43c4['is']('uiElement')&&'$comment'!=_0x3e43c4['name']){const _0x403ed1=_0x3e43c4['render'](_0xe90b26['domDocument'],_0xe90b26);_0x34a948['children']['push'](_0x403ed1['outerHTML']);}else{if(_0x3e43c4['is']('rawElement')){const _0x20852e=_0xe90b26['domDocument']['createElement'](_0x117378['name']);_0x3e43c4['render'](_0x20852e,_0xe90b26),_0x34a948['children']['push'](_0x20852e['innerHTML']);}}const _0x24684c=Array['from'](_0x117378['getCustomProperties']());_0x24684c['length']>0x0&&(_0x34a948['customProperties']=_0x24684c);const _0x4a6830=_0x117378['getFillerOffset']();return null!==_0x4a6830&&(_0x34a948['fillerOffset']=_0x4a6830),_0x34a948;}}['_markChanges'](_0x459c2b,_0x2823d0,_0x50e0b7,_0x1c46bf,_0x1d529f){let _0x2693ac=null,_0x3bb1d0=null,_0x817351=0x0;const _0x58f931=this['editor']['model'];for(let _0xaea1a9=0x0;_0xaea1a9<_0x2823d0['length'];_0xaea1a9++){const _0x301d1e=this['_getVidAttributeName'](_0x2823d0[_0xaea1a9]),_0x550e6d=_0x2823d0[_0xaea1a9]['item']['getAttribute'](_0x301d1e),_0x5c4aed=_0x50e0b7['get'](_0x550e6d),_0x249894=_0xaea1a9==_0x2823d0['length']-0x1;(!_0x2693ac&&_0x5c4aed&&(_0x2693ac=_0x5c4aed,_0x3bb1d0=_0x2823d0[_0xaea1a9]),_0x2693ac&&(!_0x5c4aed||_0x5c4aed['userId']!=_0x2693ac['userId']))&&(_0x3597bd(_0x5c4aed,P(_0x3bb1d0,_0x459c2b,_0x58f931),P(_0x2823d0[_0xaea1a9],_0x459c2b,_0x58f931)),_0x2693ac=_0x5c4aed||null,_0x3bb1d0=_0x5c4aed?_0x2823d0[_0xaea1a9]:null),_0x2693ac&&_0x249894&&_0x3597bd(_0x5c4aed,P(_0x3bb1d0,_0x459c2b,_0x58f931),V(_0x2823d0[_0xaea1a9],_0x459c2b,_0x58f931));}function _0x3597bd(_0x4e5ff7,_0x30afab,_0x16b162){const _0x4dfd40=_0x2693ac['userId'],_0xd37b35='revision:'+_0x1c46bf+':'+_0x4dfd40+':'+_0x817351++,_0x532a1e=_0x58f931['createRange'](_0x30afab,_0x16b162);_0x459c2b['markers']['set'](_0xd37b35,_0x532a1e),null!==_0x4dfd40&&_0x1d529f['add'](_0x4dfd40);}}['_getVidAttributeName'](_0x159dad){switch(_0x159dad['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x197ff0,_0x3a3d69){_0x197ff0['baseVersion']=null;for(const _0xa02945 in _0x197ff0){const _0x4be941=_0x197ff0[_0xa02945];if(_0x4be941 instanceof _0x3d30d3){const _0x4ceeb6=_0x3a3d69['get'](_0x4be941['root']['rootName']);_0x197ff0[_0xa02945]=this['_fixPosition'](_0x4be941,_0x4ceeb6);}if(_0x4be941 instanceof _0x229d78){const _0x5009d4=_0x3a3d69['get'](_0x4be941['root']['rootName']);_0x197ff0[_0xa02945]=this['_fixRange'](_0x4be941,_0x5009d4);}'root'===_0xa02945&&(_0x197ff0['root']=_0x3a3d69['get'](_0x197ff0['root']['rootName']));}}['_fixRange'](_0x38c087,_0x35c6de){return this['editor']['model']['createRange'](this['_fixPosition'](_0x38c087['start'],_0x35c6de),this['_fixPosition'](_0x38c087['end'],_0x35c6de));}['_fixPosition'](_0x51fc93,_0x1cbf67){return this['editor']['model']['createPositionFromPath'](_0x1cbf67,_0x51fc93['path'],_0x51fc93['stickiness']);}['_handleInsertOperation'](_0x24ab40){const _0x2973fd=this['_idsRoots']['get'](_0x24ab40['position']['root']['rootName']),_0x4c5412=this['_fixPosition'](_0x24ab40['position'],_0x2973fd),_0x624244=null===_0x24ab40['_authorId']?null:_0x24ab40['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3647e8=_0x4c5412['parent'],_0x3c936c=this['_revisionId'],_0x2a405f=[];for(const _0x3b871f of _0x24ab40['nodes'])if(_0x3b871f['is']('element'))_0x2a405f['push'](this['_makeIdsRoot'](_0x3b871f));else{for(let _0x543239=0x0;_0x543239<_0x3b871f['offsetSize'];_0x543239++)_0x2a405f['push'](new _0xf20b09('$text',{'vid':this['_revisionId']++}));}const _0x1505eb=this['_revisionId'];for(let _0x40f4c1=_0x3c936c;_0x40f4c1<_0x1505eb;_0x40f4c1++)this['_touched']['set'](_0x40f4c1,{'userId':_0x624244});_0x3647e8['_insertChild'](_0x4c5412['offset'],_0x2a405f);}['_handleMoveOperation'](_0x4b55dd){(_0x4b55dd=this['_cloneOperation'](_0x4b55dd,this['_idsRoots']))['_execute']();const _0x4a2a00=null===_0x4b55dd['_authorId']?null:_0x4b55dd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3dd2f6=_0x4b55dd['getMovedRangeStart'](),_0x421e60=_0x3dd2f6['parent'],_0x119a0f=_0x3dd2f6['offset'];!function _0x1902ac(_0x13aeef,_0x59b421,_0x1a4d17,_0x40cba3){for(let _0x50c0a3=_0x1a4d17;_0x50c0a3<_0x40cba3;_0x50c0a3++){const _0x39721c=_0x59b421['getChild'](_0x50c0a3);_0x39721c['is']('element','$text')?_0x13aeef['set'](_0x39721c['getAttribute']('vid'),{'userId':_0x4a2a00}):(_0x13aeef['set'](_0x39721c['getAttribute']('vid_start'),{'userId':_0x4a2a00}),_0x1902ac(_0x13aeef,_0x39721c,0x0,_0x39721c['childCount']),_0x13aeef['set'](_0x39721c['getAttribute']('vid_end'),{'userId':_0x4a2a00}));}}(this['_touched'],_0x421e60,_0x119a0f,_0x119a0f+_0x4b55dd['howMany']);}['_handleMergeOperation'](_0x1e5662){const _0x731829=null===(_0x1e5662=this['_cloneOperation'](_0x1e5662,this['_idsRoots']))['_authorId']?null:_0x1e5662['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42e3b0=_0x1e5662['targetPosition']['parent'],_0x3a0293=_0x1e5662['sourcePosition']['parent'],_0xc3282e=_0x42e3b0['getAttribute']('vid_end'),_0x14bffa=_0x3a0293['getAttribute']('vid_start');_0x42e3b0['_setAttribute']('vid_end',_0x3a0293['getAttribute']('vid_end')),_0x3a0293['_setAttribute']('vid_end',_0xc3282e),this['_touched']['set'](_0x14bffa,{'userId':_0x731829}),this['_touched']['set'](_0xc3282e,{'userId':_0x731829}),_0x1e5662['_execute']();}['_handleSplitOperation'](_0x300f76){const _0x252404=null===(_0x300f76=this['_cloneOperation'](_0x300f76,this['_idsRoots']))['_authorId']?null:_0x300f76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ba9f1=_0x300f76['graveyardPosition'],_0xef7737=_0x300f76['splitPosition']['parent'];_0x300f76['_execute']();const _0x3e203=_0xef7737['getAttribute']('vid_end'),_0x403a3a=_0x300f76['insertionPosition']['nodeAfter'];if(_0x1ba9f1){const _0x41454c=_0x403a3a['getAttribute']('vid_end'),_0x85c529=_0xef7737['getAttribute']('vid_end');_0xef7737['_setAttribute']('vid_end',_0x41454c),_0x403a3a['_setAttribute']('vid_end',_0x85c529),this['_touched']['set'](_0xef7737['getAttribute']('vid_end'),{'userId':_0x252404}),this['_touched']['set'](_0x403a3a['getAttribute']('vid_start'),{'userId':_0x252404});}else{const _0x350b19=this['_revisionId']++,_0x4c6d20=this['_revisionId']++;_0xef7737['_setAttribute']('vid_end',_0x350b19),_0x403a3a['_setAttribute']('vid_start',_0x4c6d20),_0x403a3a['_setAttribute']('vid_end',_0x3e203),this['_touched']['set'](_0x350b19,{'userId':_0x252404}),this['_touched']['set'](_0x4c6d20,{'userId':_0x252404});}}['_handleMarkerOperation'](_0x1538b3){if(!_0x1538b3['affectsData'])return;const _0x8d8969=(_0x1538b3=this['_cloneOperation'](_0x1538b3,this['_diffRoots']))['oldRange']?_0x1538b3['oldRange']['root']:null,_0x17a94c=_0x1538b3['newRange']?_0x1538b3['newRange']['root']:null;_0x8d8969&&this['_markers']['delete'](_0x1538b3['name']),_0x17a94c&&this['_markers']['set'](_0x1538b3['name'],_0x1538b3['newRange']['clone']());const _0x583d15=null===_0x1538b3['_authorId']?null:_0x1538b3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53327c=_0x1538b3['name'];if(!this['_touchedMarkers']['has'](_0x53327c))return void this['_touchedMarkers']['set'](_0x53327c,{'range':_0x1538b3['oldRange'],'userId':_0x583d15});const _0x5707f5=this['_touchedMarkers']['get'](_0x53327c),_0x2b7db5=_0x5707f5['range'],_0x6bf1f2=_0x1538b3['newRange'];null==_0x2b7db5&&null==_0x6bf1f2||_0x2b7db5&&_0x6bf1f2&&_0x2b7db5['isEqual'](_0x6bf1f2)?this['_touchedMarkers']['delete'](_0x1538b3['name']):_0x5707f5['userId']=_0x583d15;}['_handleRootOperation'](_0x38a975,_0x1d9c02){this['_diffRoots']['has'](_0x38a975['rootName'])?this['_diffRoots']['get'](_0x38a975['rootName'])['_isAttached']=_0x38a975['isAdd']:(this['_diffRoots']['set'](_0x38a975['rootName'],N(_0x38a975['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x38a975['rootName'],{}),_0x1d9c02&&this['_idsRoots']['set'](_0x38a975['rootName'],N(_0x38a975['rootName'],!0x0)));const _0x3638fd=null===_0x38a975['_authorId']?null:_0x38a975['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x511d4b=this['_touchedRoots']['get'](_0x38a975['rootName']);_0x511d4b&&_0x511d4b['userId']===_0x3638fd?this['_touchedRoots']['delete'](_0x38a975['rootName']):this['_touchedRoots']['set'](_0x38a975['rootName'],{'userId':_0x3638fd,'isAttached':_0x38a975['isAdd']});}['_handleRootAttributeOperation'](_0x56c2db){const _0x447038=this['_diffRootsAttributes']['get'](_0x56c2db['root']['rootName']);null===_0x56c2db['newValue']?delete _0x447038[_0x56c2db['key']]:_0x447038[_0x56c2db['key']]=_0x56c2db['newValue'];}}function x(_0x2e43d5){const _0xf9f15b=N(_0x2e43d5['rootName'],_0x2e43d5['isAttached']());for(const _0x19ab95 of _0x2e43d5['getChildren']()){const _0x20d585=_0x19ab95['_clone'](!0x0);_0xf9f15b['_appendChild'](_0x20d585);}return _0xf9f15b;}function N(_0x1de5ce,_0x3f21b1=!0x0){const _0x1bea04=new _0x5439d1();return _0x1bea04['rootName']=_0x1de5ce,_0x1bea04['_isAttached']=_0x3f21b1,_0x1bea04['isAttached']=()=>_0x1bea04['_isAttached'],_0x1bea04;}function P(_0x41dd5b,_0x45003e,_0x2b10b1){const _0x4c6805='elementEnd'==_0x41dd5b['type']?_0x2b10b1['createPositionAt'](_0x41dd5b['item'],'end'):_0x2b10b1['createPositionBefore'](_0x41dd5b['item']);return _0x2b10b1['createPositionFromPath'](_0x45003e,_0x4c6805['path'],_0x4c6805['stickiness']);}function V(_0x371201,_0x325109,_0x14c13e){const _0x16753c='elementStart'==_0x371201['type']?_0x14c13e['createPositionAt'](_0x371201['item'],0x0):_0x14c13e['createPositionAfter'](_0x371201['item']);return _0x14c13e['createPositionFromPath'](_0x325109,_0x16753c['path'],_0x16753c['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2237ba(_0x3e0b15){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x461ca7,_0x48c952){super(_0x461ca7),this['focusTracker']=new _0x51ad5c(),this['keystrokes']=new _0x137948(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x48c952),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x28e64e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x13ad14=_0x27475b=>_0x27475b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x13ad14),this['keystrokes']['set']('arrowleft',_0x13ad14),this['keystrokes']['set']('arrowup',_0x13ad14),this['keystrokes']['set']('arrowdown',_0x13ad14);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5d11a6){this['revisionNameInputView']['fieldView']['element']['value']=_0x5d11a6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x24ba39){const _0x8950d6=new ti(this['locale'],_0x4ca011),_0x26dcbf=_0x8950d6['fieldView'];_0x26dcbf['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x44b2e0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x24ba39&&(_0x44b2e0+='\x20('+m(this['locale'],'optional')+')'),(_0x8950d6['label']=_0x44b2e0,_0x26dcbf['on']('input',()=>{this['revisionNameInputValue']=_0x26dcbf['element']['value']['trim']();}),_0x8950d6);}}class l extends _0x38f444{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x343040=this['editor'],_0x25517e=_0x343040['plugins']['get']('RevisionTracker');_0x343040['ui']['componentFactory']['add']('revisionHistory',_0x3bbfa5=>{const _0x229a91=_0x54c274(_0x3bbfa5),_0x5ebe44=_0x229a91['panelView']['children'],_0x4054b4=new _0x17bef3(_0x3bbfa5),_0x1e7f2a=new _0x33aa7a(_0x3bbfa5),_0x268eb3=this['_createSaveRevisionButton'](_0x1dcc9b),_0x148e73=new _0x33aa7a(_0x3bbfa5),_0x33f8f2=this['_createOpenRevisionButton'](_0x1dcc9b);return _0x229a91['bind']('isEnabled')['to'](_0x25517e,'isReady',_0x25517e,'isEnabled',_0x343040,'isReadOnly',(_0x229a51,_0x42b7f0,_0x1b00e5)=>_0x229a51&&_0x42b7f0&&!_0x1b00e5),_0x229a91['buttonView']['set']({'icon':_0x46dbf8,'label':m(_0x3bbfa5,'Revision\x20history'),'tooltip':!0x0}),_0x268eb3['set']({'withText':!0x0,'role':'menuitem'}),_0x33f8f2['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x33f8f2,'execute',()=>{_0x229a91['isOpen']=!0x1,_0x343040['editing']['view']['focus']();},{'priority':'low'}),_0x1e7f2a['children']['add'](_0x268eb3),_0x148e73['children']['add'](_0x33f8f2),_0x4054b4['role']='menu',_0x4054b4['items']['addMany']([_0x1e7f2a,_0x148e73]),_0x5ebe44['add'](_0x4054b4),_0x229a91;}),_0x343040['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x523f5a=this['editor'],_0x458647=_0x523f5a['locale'],_0x737b6a=_0x523f5a['plugins']['get']('RevisionTracker'),_0x11e784=new _0xb326f9(_0x458647),_0x5aad7f=new _0x34f0da(_0x458647);_0x11e784['bind']('isEnabled')['to'](_0x737b6a,'isReady',_0x737b6a,'isEnabled',_0x523f5a,'isReadOnly',(_0x59e760,_0x1730e9,_0x2baa9e)=>_0x59e760&&_0x1730e9&&!_0x2baa9e),_0x11e784['buttonView']['set']({'icon':_0x46dbf8,'label':m(_0x458647,'Revision\x20history')});const _0x42e152=new _0x2ea1e2(_0x458647,_0x11e784),_0x3ef310=this['_createSaveRevisionButton'](_0x54a271);_0x3ef310['delegate']('execute')['to'](_0x11e784),_0x42e152['children']['add'](_0x3ef310),_0x5aad7f['items']['add'](_0x42e152);const _0x5dffef=new _0x2ea1e2(_0x458647,_0x11e784),_0x58da9c=this['_createOpenRevisionButton'](_0x54a271);return _0x58da9c['delegate']('execute')['to'](_0x11e784),_0x5dffef['children']['add'](_0x58da9c),_0x5aad7f['items']['add'](_0x5dffef),_0x11e784['panelView']['children']['add'](_0x5aad7f),_0x11e784;}['_createSaveRevisionButton'](_0x1baa59){const _0x58ec6b=this['editor'],_0x4c375d=_0x58ec6b['plugins']['get']('RevisionTracker'),_0x2e2401=new _0x1baa59(_0x58ec6b['locale']);return _0x2e2401['set']({'label':m(_0x58ec6b['locale'],'Save\x20current\x20revision')}),_0x2e2401['bind']('isEnabled')['to'](_0x4c375d,'isReady',_0x4c375d,'isEnabled',_0x58ec6b,'isReadOnly',(_0x327779,_0x29c046,_0x12271d)=>_0x327779&&_0x29c046&&!_0x12271d),this['listenTo'](_0x2e2401,'execute',()=>{this['_showDialog']();}),_0x2e2401;}['_createOpenRevisionButton'](_0x3370e6){const _0x1232e1=this['editor'],_0x2d10cd=_0x1232e1['plugins']['get']('RevisionTracker'),_0x334bd9=new _0x3370e6(_0x1232e1['locale']);return _0x334bd9['set']({'label':m(_0x1232e1['locale'],'Open\x20revision\x20history')}),_0x334bd9['bind']('isEnabled')['to'](_0x2d10cd,'isReady',_0x1232e1,'isReadOnly',(_0x2d0a11,_0x33a2d9)=>_0x2d0a11&&!_0x33a2d9),this['listenTo'](_0x334bd9,'execute',()=>{_0x1232e1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x334bd9;}['_showDialog'](){const _0x40b7a9=this['editor'],_0x18feb8=_0x40b7a9['locale'],_0x107828=_0x40b7a9['plugins']['get']('Dialog'),_0x23df16=_0x40b7a9['plugins']['get']('RevisionTracker');function _0x412ab1(_0x292440){_0x40b7a9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x292440['revisionName']?_0x292440['revisionNameInputView']['errorText']=m(_0x18feb8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x40b7a9['plugins']['get'](h)['saveRevision']({'name':_0x292440['revisionName']}),_0x107828['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x412ab1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x107828['show']({'id':'revisionSave','title':m(_0x18feb8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x40b7a9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x107828['hide']()},{'label':m(_0x40b7a9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2f1993){_0x2f1993['bind']('isEnabled')['to'](_0x23df16,'isReady',_0x23df16,'isEnabled',_0x40b7a9,'isReadOnly',(_0x5e8d93,_0x25ae63,_0x537b27)=>_0x5e8d93&&_0x25ae63&&!_0x537b27);},'onExecute':()=>_0x412ab1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3c7e7d=this['editor'],_0x1c0278=_0x3c7e7d['locale'];this['_saveRevisionFormView']=new me(_0x1c0278,_0x3c7e7d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x3e0b15{['changeId'];['_model'];constructor(_0x5ecee2,_0x546699){super(_0x5ecee2),this['_model']=_0x546699,this['changeId']=_0x546699['id'];const _0x376570=this['bindTemplate'],_0x331698=m(_0x5ecee2,_0x546699['data']['isSuggestion']?'Suggested\x20by':'add'==_0x546699['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x546699['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x376570['to']('type',_0x164fd8=>'ck-revision-change__'+_0x164fd8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x331698}]},{'text':'\x20'+_0x546699['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2cbca0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x12ca37){super(),this['id']=_0x12ca37['id']||_0x31075e(),this['author']=_0x12ca37['author'],this['type']=_0x12ca37['type'],this['data']=_0x12ca37['data']||{},this['rootName']=_0x12ca37['rootName'],this['set']('createdAt',_0x12ca37['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x126d7b,_0x319b5d){this['newRevisionId']=_0x126d7b,this['oldRevisionId']=_0x319b5d,this['changes']=new _0x5731ed();}['_setChanges'](_0x3492f1){for(const _0x1ed225 of _0x3492f1)this['changes']['add'](_0x1ed225);}}class u extends _0x38f444{['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[_0x3fbc11,_0x4063c6,S,$];}constructor(_0x4b749a){super(_0x4b749a),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',(_0x4fc0d5,_0x2f1eb2,_0x9873fc)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3e0891=>{for(const _0x1ba407 of this['editor']['editing']['view']['document']['roots'])_0x9873fc?_0x3e0891['removeClass']('ck-editor__editable__overlay',_0x1ba407):_0x3e0891['addClass']('ck-editor__editable__overlay',_0x1ba407);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x713eae=>null!==_0x713eae),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x396384,_0x16f752,_0x543b9c)=>_0x396384&&_0x543b9c?_0x16f752['changes']['getIndex'](_0x543b9c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x26c8a9,_0x3c3cbf)=>_0x26c8a9?_0x3c3cbf['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4063c6);}['init'](){const _0xeb997=this['editor'],_0x29d762=new ot(_0xeb997,{'direction':'backward'}),_0x43aefb=new ot(_0xeb997,{'direction':'forward'});(_0xeb997['commands']['add']('showPreviousChange',_0x29d762),_0xeb997['commands']['add']('showNextChange',_0x43aefb),_0xeb997['commands']['add']('restoreRevision',new nt(_0xeb997)),this['on']('change:numberOfChanges',()=>{_0x29d762['refresh'](),_0x43aefb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xeb997['enableReadOnlyMode']('revision-viewer'),_0xeb997['plugins']['has']('WidgetToolbarRepository'))&&_0xeb997['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3536a8){return await this['_utils']['loadRevisionData'](_0x3536a8,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3536a8);}async['getRevisionRootsAttributes'](_0x3d4280){return await this['_utils']['loadRevisionData'](_0x3d4280,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3d4280);}async['compare'](_0x10f366,_0x122265,_0x4fe2d8=!0x1){if(!this['isEnabled'])return;const _0x33c99c=this['diff'],_0x48c667=this['repository'],_0x33b401='string'==typeof _0x10f366?_0x48c667['getRevision'](_0x10f366):_0x10f366,_0x4cf01d='string'==typeof _0x122265?_0x48c667['getRevision'](_0x122265):_0x122265,_0x33ea55=_0x33b401['id'],_0x46edf9=_0x4cf01d?_0x4cf01d['id']:null;if(!_0x4fe2d8&&this['diff']&&this['diff']['newRevisionId']===_0x33ea55&&this['diff']['oldRevisionId']===_0x46edf9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x33ea55,_0x46edf9);const _0x679a87=this['_getRevisionsRange'](_0x33b401,_0x4cf01d,!0x0)['map'](_0x14e33e=>this['_utils']['loadRevisionData'](_0x14e33e,this['adapter']));return _0x679a87['push'](new Promise(_0x493508=>{setTimeout(_0x493508,0x14);})),Promise['all'](_0x679a87)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1d2f6c=this['_getDiff'](_0x33ea55,_0x46edf9);for(const _0x2e4720 of _0x1d2f6c['changes'])this['_changeIdToChange']['set'](_0x2e4720['id'],_0x2e4720);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x596cd4=>{for(const _0xf173ed of this['editor']['model']['document']['getRootNames']())_0x596cd4['detachRoot'](_0xf173ed);for(const _0x59bd0d of Object['keys'](_0x1d2f6c['model'])){const _0x26c95a=_0x596cd4['addRoot'](_0x59bd0d);for(const _0x4c79e4 of Object['keys'](_0x1d2f6c['attributes'][_0x59bd0d]))_0x596cd4['setAttribute'](_0x4c79e4,_0x1d2f6c['attributes'][_0x59bd0d][_0x4c79e4],_0x26c95a);_0x596cd4['insert'](_0x1d2f6c['model'][_0x59bd0d],_0x26c95a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1d2f6c['changes'])),this['isReady']=!0x0;})['catch'](_0x52741f=>{console['error'](_0x52741f),this['_cleanUp'](),_0x33c99c&&(this['diff']=_0x33c99c),this['isReady']=!0x0;});}['addRevisionData'](_0x4358d7,_0x407c1c){const _0x200bbe=this['repository']['createRevision'](_0x4358d7);return _0x200bbe['on']('_update',(_0x5bbebc,_0x27ff46,_0x3eb9e0)=>_0x407c1c(_0x27ff46,_0x3eb9e0,_0x200bbe)),this['repository']['addRevision'](_0x200bbe),_0x200bbe;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x205c0e=>{for(const _0x4b6127 of this['editor']['model']['document']['getRootNames']())_0x205c0e['detachRoot'](_0x4b6127);});}['_sortAndFilterDiffChanges'](_0xf83bfd){const _0xf34299=[],_0x49f1f4=new Map();for(const _0x19d379 of this['editor']['model']['document']['getRootNames']()){const _0x279cec=this['editor']['editing']['view']['getDomRoot'](_0x19d379);if(!_0x279cec)continue;const _0x2d1b09=_0x279cec['getClientRects']()['item'](0x0);_0x2d1b09&&(_0xf34299['push'](_0x19d379),_0x49f1f4['set'](_0x19d379,_0x2d1b09));}return _0xf34299['sort']((_0x18c4e0,_0x10cfbb)=>{const _0x191a9b=_0x49f1f4['get'](_0x18c4e0),_0xb7bda7=_0x49f1f4['get'](_0x10cfbb);return _0x191a9b['y']-_0xb7bda7['y']||_0x191a9b['x']-_0xb7bda7['x'];}),(_0xf83bfd=_0xf83bfd['filter'](_0x946bb8=>_0xf34299['includes'](_0x946bb8['rootName'])))['sort']((_0x19992d,_0x7950e)=>_0xf34299['indexOf'](_0x19992d['rootName'])-_0xf34299['indexOf'](_0x7950e['rootName'])),_0xf83bfd;}['_makeTape'](_0x2b7c78){const _0x1a27b3=Array['from'](_0x2b7c78['markers'])['filter'](([_0x31f4e5,_0x57fef5])=>_0x31f4e5['startsWith']('revision:')&&!_0x57fef5['isCollapsed']),_0x2d3563=Array['from'](this['editor']['model']['createRangeIn'](_0x2b7c78)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1a27b3['length'])for(const _0x15fa05 of _0x2d3563){const [_0x25348b,_0x334cca]=_0x1a27b3[0x0],[,_0xd7dff0,_0x4cdae1]=_0x25348b['split'](':');if(_0x334cca['end']['isEqual'](_0x15fa05['nextPosition'])&&_0x1a27b3['shift'](),(_0x15fa05['previousPosition']['isEqual'](_0x334cca['start'])||_0x15fa05['previousPosition']['isAfter'](_0x334cca['start']))&&('insertion'==_0xd7dff0?_0x15fa05['isAdded']={'userId':_0x4cdae1}:'deletion'==_0xd7dff0&&(_0x15fa05['isRemoved']={'userId':_0x4cdae1})),0x0==_0x1a27b3['length'])break;}return _0x2d3563;}['_refreshStartEndIndex'](_0x56d744){const _0x3fd765=new Map();for(let _0x13c0b3=0x0;_0x13c0b3<_0x56d744['length'];_0x13c0b3++)'text'===_0x56d744[_0x13c0b3]['type']?(_0x56d744[_0x13c0b3]['item']['startIndex']=_0x13c0b3,_0x56d744[_0x13c0b3]['item']['endIndex']=_0x13c0b3):('elementStart'===_0x56d744[_0x13c0b3]['type']?_0x56d744[_0x13c0b3]['item']['startIndex']=_0x13c0b3:'elementEnd'===_0x56d744[_0x13c0b3]['type']&&(_0x56d744[_0x13c0b3]['item']['endIndex']=_0x13c0b3),_0x3fd765['set'](_0x56d744[_0x13c0b3]['id'],_0x13c0b3));for(const _0x1153c6 of _0x3fd765['values']())'elementStart'===_0x56d744[_0x1153c6]['type']?_0x56d744[_0x1153c6]['item']['endIndex']=_0x3fd765['get'](_0x56d744[_0x1153c6]['pairId']):'elementEnd'===_0x56d744[_0x1153c6]['type']&&(_0x56d744[_0x1153c6]['item']['startIndex']=_0x3fd765['get'](_0x56d744[_0x1153c6]['pairId']));}['_processTape'](_0x54489a){for(let _0xec1370=0x0;_0xec1370<_0x54489a['length'];_0xec1370++){if('elementStart'===_0x54489a[_0xec1370]['type'])_0x54489a[_0xec1370]['item']['startIndex']=_0xec1370;else{if('elementEnd'===_0x54489a[_0xec1370]['type']){_0x54489a[_0xec1370]['item']['endIndex']=_0xec1370;const _0x5350c4=_0x54489a[_0xec1370]['item']['startIndex'];_0x54489a[_0x5350c4]['pairId']=_0x54489a[_0xec1370]['id'],_0x54489a[_0xec1370]['pairId']=_0x54489a[_0x5350c4]['id'];}else _0x54489a[_0xec1370]['item']['startIndex']=_0xec1370,_0x54489a[_0xec1370]['item']['endIndex']=_0xec1370,_0x54489a[_0xec1370]['pairId']=null;}_0x54489a[_0xec1370]['markersStart']||(_0x54489a[_0xec1370]['markersStart']=[],_0x54489a[_0xec1370]['markersEnd']=[]);}}['_markInsertions'](_0x527808,_0x2a0c49){const _0x40b3e6=_0x527808['filter'](_0x2fabd7=>!_0x2fabd7['isAdded']);for(let _0x54a23c=0x0;_0x54a23c<_0x2a0c49['length'];_0x54a23c++)_0x2a0c49[_0x54a23c]['isAdded']&&(_0x40b3e6[_0x54a23c]['isAdded']=_0x2a0c49[_0x54a23c]['isAdded']);}['_getDiff'](_0xb86d40,_0x3b7f79=null){const _0x430b2f=this['repository']['getRevision'](_0xb86d40),_0x4e4b4c=_0x3b7f79?this['repository']['getRevision'](_0x3b7f79):null,_0x576435=this['_getRevisionsRange'](_0x430b2f,_0x4e4b4c),_0x187cc6=_0x576435[_0x576435['length']-0x1],_0x1cac0b=new Map(),_0xff5040={'model':{},'attributes':{},'changes':[]},_0x4640b8=new Set(),_0x52eac5=new Map();for(let _0x5dc97e=_0x576435['length']-0x1;_0x5dc97e>=0x0;_0x5dc97e--){const _0x5e2a8d=_0x576435[_0x5dc97e];for(const _0x2f2350 of Object['keys'](_0x5e2a8d['diffData']))if(_0x5e2a8d['diffData'][_0x2f2350]['attachChange']){const _0x23f409=_0x5e2a8d['diffData'][_0x2f2350]['attachChange'];_0x23f409['isAttached']?(_0x4640b8['add'](_0x2f2350),_0x52eac5['has'](_0x2f2350)&&_0x52eac5['get'](_0x2f2350)['userId']==_0x23f409['userId']?_0x52eac5['delete'](_0x2f2350):_0x52eac5['set'](_0x2f2350,_0x23f409)):_0x52eac5['has'](_0x2f2350)?(_0x4640b8['delete'](_0x2f2350),_0x52eac5['delete'](_0x2f2350)):(_0x4640b8['add'](_0x2f2350),_0x52eac5['set'](_0x2f2350,_0x23f409));}else _0x4640b8['add'](_0x2f2350);}for(const _0x29a189 of _0x4640b8){const _0x555765=_0x52eac5['has'](_0x29a189)&&!_0x52eac5['get'](_0x29a189)['isAttached'];let _0x465a99=_0x555765?_0x576435['length']-0x1:0x0;const _0x375438=_0x555765?-0x1:0x1;for(;_0x576435[_0x465a99];){const _0x4b4cfe=_0x576435[_0x465a99];if(_0x4b4cfe['diffData'][_0x29a189]){const _0x2eeaa5=_0x555765?_0x4b4cfe['diffData'][_0x29a189]['attributesBefore']:_0x4b4cfe['diffData'][_0x29a189]['attributesAfter'];_0xff5040['attributes'][_0x29a189]=_0x2eeaa5?_0x24b057(_0x2eeaa5):{};break;}_0x465a99+=_0x375438;}}for(const _0x38059a of _0x576435){_0x38059a['model']={};for(const _0x10a411 of _0x38059a['authors'])_0x1cac0b['set'](_0x10a411['id'],_0x10a411);for(const _0x32d99a of _0x4640b8){const _0x3f7aa7=_0x38059a['diffData'][_0x32d99a]?_0x38059a['diffData'][_0x32d99a]['insertions']:'[]',_0x650a2c=_0x38059a['diffData'][_0x32d99a]?_0x38059a['diffData'][_0x32d99a]['deletions']:'[]';_0x38059a['model'][_0x32d99a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3f7aa7),'deletions':this['_utils']['_makeModelFromViewString'](_0x650a2c)};}}for(const _0x2261af of _0x4640b8){let _0x72972d=null,_0x50bb0e=0x0;const _0x58b6a1=new Map(Array['from'](_0x430b2f['model'][_0x2261af]['insertions']['markers'])['filter'](([_0x18a169])=>!_0x18a169['startsWith']('revision:')));let _0x5a77b1=0x0;for(const _0x9a9212 of _0x576435){const _0x11cbc8=this['_makeTape'](_0x9a9212['model'][_0x2261af]['insertions']);_0x9a9212==_0x430b2f?(_0x72972d=_0x11cbc8,_0x50bb0e=_0x72972d['length'],_0x72972d['forEach'](_0x27a433=>{_0x27a433['id']=_0x5a77b1++;}),this['_processTape'](_0x72972d)):this['_markInsertions'](_0x72972d,_0x11cbc8);const _0x16cf66=_0x72972d['filter'](_0x324124=>!_0x324124['isAdded'])['map'](_0x279b9a=>_0x279b9a['id']);let _0x5812e0=0x0;const _0x53867e=this['_makeTape'](_0x9a9212['model'][_0x2261af]['deletions']);_0x53867e['forEach'](_0x4ce0fe=>{_0x4ce0fe['isRemoved']?_0x4ce0fe['id']=_0x50bb0e++:_0x4ce0fe['id']=_0x16cf66[_0x5812e0++];}),this['_processTape'](_0x53867e),this['_setDistance'](_0x72972d,'isAdded'),this['_setDistance'](_0x53867e,'isRemoved'),_0x9a9212==_0x430b2f&&this['_markMarkers'](_0x72972d,_0x58b6a1),_0x72972d=this['_joinTapes'](_0x72972d,_0x53867e),this['_refreshStartEndIndex'](_0x72972d),this['_setDistance'](_0x72972d,'isRemoved');}_0x72972d=_0x72972d['filter'](_0x7d6a98=>!(_0x7d6a98['isAdded']&&_0x7d6a98['isRemoved']));const _0x35285a=new Map(_0x187cc6['model'][_0x2261af]['deletions']['markers']),_0x21da7d=new Set(_0x58b6a1['keys']());for(const _0x4e8d67 of _0x35285a['keys']())_0x21da7d['delete'](_0x4e8d67);this['_markSuggestions'](_0x72972d,_0x21da7d),this['_fixObsoleteTags'](_0x72972d),_0x72972d=this['_removeMissingPairs'](_0x72972d),_0x72972d=this['_markMismatchedRemovedTags'](_0x72972d),_0x72972d=this['_removeUnsupportedChanges'](_0x72972d);const {root:_0xabee02,changes:_0x15ac0d}=this['_makeModelFromTape'](_0x72972d,_0x1cac0b,_0x2261af);_0xff5040['model'][_0x2261af]=_0xabee02;const _0x416b5a=_0x52eac5['get'](_0x2261af);if(_0x416b5a){const _0x57a181=_0x1cac0b['get'](_0x416b5a['userId']),_0x43ec89=new G({'author':_0x57a181,'type':_0x416b5a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2261af});_0x15ac0d['unshift'](_0x43ec89),_0xff5040['attributes'][_0x2261af]['revisionHistoryAttachChange']=_0x43ec89['id'];}_0xff5040['changes']=_0xff5040['changes']['concat'](_0x15ac0d);}return _0xff5040;}['_markMarkers'](_0x30a46f,_0x1e3b72){for(let _0x35acb3=0x0;_0x35acb3<_0x30a46f['length'];_0x35acb3++)for(const [_0x18b5f7,_0x2fba58]of _0x1e3b72)!_0x2fba58['isCollapsed']&&_0x2fba58['start']['isEqual'](_0x30a46f[_0x35acb3]['previousPosition'])&&_0x30a46f[_0x35acb3]['markersStart']['push'](_0x18b5f7),_0x2fba58['end']['isEqual'](_0x30a46f[_0x35acb3]['nextPosition'])&&_0x30a46f[_0x35acb3]['markersEnd']['push'](_0x18b5f7);}['_joinTapes'](_0x2e959e,_0x587baa){let _0x3fb402=[],_0x2acefb=0x0,_0x45c560=0x0;for(;_0x2acefb<_0x2e959e['length']||_0x45c560<_0x587baa['length'];){const _0xa05fc6=_0x2e959e[_0x2acefb]||{},_0x2edeb4=_0x587baa[_0x45c560]||{};if(_0xa05fc6['id']==_0x2edeb4['id'])_0x2acefb++,_0x45c560++,_0x3fb402['push'](_0xa05fc6);else{if(_0x2edeb4['isRemoved']&&_0xa05fc6['isAdded']){const {commonTape:_0x34c0ff,iEnd:_0x29547b,jEnd:_0x172355}=this['_threeWayMerge'](_0x2e959e,_0x2acefb,_0x587baa,_0x45c560);_0x3fb402=_0x3fb402['concat'](_0x34c0ff),_0x2acefb=_0x29547b,_0x45c560=_0x172355;}else _0x2edeb4['isRemoved']?(_0x45c560++,_0x3fb402['push'](_0x2edeb4)):(_0x2acefb++,_0x3fb402['push'](_0xa05fc6));}}return _0x3fb402;}['_markSuggestions'](_0x4c23c0,_0xdeca60){const _0x5b11cb=[];for(let _0x5c1b00=0x0;_0x5c1b00<_0x4c23c0['length'];_0x5c1b00++){for(let _0x51e43e=0x0;_0x51e43e<_0x4c23c0[_0x5c1b00]['markersStart']['length'];_0x51e43e++){const _0x1596c4=_0x4c23c0[_0x5c1b00]['markersStart'][_0x51e43e];if(!_0xdeca60['has'](_0x1596c4))continue;const {group:_0x599290,type:_0x137a0c,authorId:_0x5649ff}=_0x3f1a91(_0x1596c4);'revision-suggestion'!=_0x599290||'insertion'!=_0x137a0c&&'deletion'!=_0x137a0c||(_0x5b11cb['unshift']({'type':_0x137a0c,'name':_0x1596c4,'userId':_0x5649ff}),_0x4c23c0[_0x5c1b00]['markersStart']['splice'](_0x51e43e,0x1),_0x51e43e--);}_0x39e219(_0x4c23c0[_0x5c1b00]);for(let _0x38538e=0x0;_0x38538e<_0x4c23c0[_0x5c1b00]['markersEnd']['length'];_0x38538e++){const _0x2ffe14=_0x4c23c0[_0x5c1b00]['markersEnd'][_0x38538e];if(!_0xdeca60['has'](_0x2ffe14))continue;const {group:_0x21f785,type:_0x5c59cc}=_0x3f1a91(_0x2ffe14);if('revision-suggestion'!=_0x21f785||'insertion'!=_0x5c59cc&&'deletion'!=_0x5c59cc)continue;_0x4c23c0[_0x5c1b00]['markersEnd']['splice'](_0x38538e,0x1),_0x38538e--;const _0x124d8c=_0x5b11cb['findIndex'](_0x450588=>_0x450588['name']==_0x2ffe14);_0x124d8c>-0x1&&_0x5b11cb['splice'](_0x124d8c,0x1);}}function _0x3f1a91(_0x42ebdd){const _0x3eca7a=_0x42ebdd['split'](':');return{'group':_0x3eca7a[0x0],'type':_0x3eca7a[0x1],'subType':_0x3eca7a['length']>=0x5?_0x3eca7a[0x2]:null,'id':_0x3eca7a['length']<0x5?_0x3eca7a[0x2]:_0x3eca7a[0x3],'authorId':_0x3eca7a['length']<0x5?_0x3eca7a[0x3]:_0x3eca7a[0x4],'markerCount':0x6==_0x3eca7a['length']?_0x3eca7a[0x5]:null};}function _0x39e219(_0x5cc329){for(let _0x4aa488=0x0;_0x4aa488<_0x5b11cb['length'];_0x4aa488++){if(_0x5cc329['isAdded']&&'insertion'==_0x5b11cb[_0x4aa488]['type']&&_0x5cc329['isAdded']['userId']==_0x5b11cb[_0x4aa488]['userId'])return _0x5cc329['isAddSuggestion']=_0x5b11cb[_0x4aa488],void delete _0x5cc329['isAdded'];if(!_0x5cc329['isAdded']&&!_0x5cc329['isRemoved']&&'deletion'==_0x5b11cb[_0x4aa488]['type'])return void(_0x5cc329['isRemoveSuggestion']=_0x5b11cb[_0x4aa488]);}}}['_setDistance'](_0xedf074,_0x553881){let _0x5a95d5=0x0,_0x10f390=!0x1;const _0x172d63=new Map();for(const _0x1d944e of _0xedf074)_0x1d944e[_0x553881]?_0x10f390&&(_0x5a95d5++,_0x10f390=!0x1):(_0x5a95d5++,_0x10f390=!0x0),_0x172d63['set'](_0x1d944e['id'],_0x5a95d5);for(let _0xdd993f=0x0;_0xdd993f<_0xedf074['length'];_0xdd993f++){if('isRemoved'==_0x553881&&_0xedf074[_0xdd993f]['isAdded']||'isAdded'==_0x553881&&_0xedf074[_0xdd993f]['isRemoved'])continue;if('text'==_0xedf074[_0xdd993f]['type']){_0xedf074[_0xdd993f]['distance']=0x0;continue;}const _0x4adadf=_0x172d63['get'](_0xedf074[_0xdd993f]['pairId']),_0x55013a=_0x172d63['get'](_0xedf074[_0xdd993f]['id']);_0xedf074[_0xdd993f]['distance']=_0x4adadf-_0x55013a;}}['_getRevisionsRange'](_0x312502,_0x46fc07,_0x13d843=!0x1){const _0x4ff6bd=[];let _0x5b3b76=this['repository']['getIndex'](_0x312502),_0x3c372f=this['repository']['getIndex'](_0x46fc07);for(-0x1==_0x3c372f&&(_0x3c372f=this['repository']['_revisions']['length'],_0x13d843=!0x1);_0x5b3b76<_0x3c372f;)_0x4ff6bd['push'](this['repository']['getRevision'](_0x5b3b76)),_0x5b3b76++;return _0x13d843&&_0x4ff6bd['push'](this['repository']['getRevision'](_0x5b3b76)),_0x4ff6bd;}['_threeWayMerge'](_0x3c84c8,_0x32864d,_0x119a62,_0x35e36b){const _0x1d5e4f=this['editor']['model']['schema'];let _0x3f7316=_0x32864d;for(;_0x3c84c8[_0x3f7316]&&_0x3c84c8[_0x3f7316]['isAdded'];)_0x3f7316++;let _0x3dce71=_0x35e36b;for(;_0x119a62[_0x3dce71]&&_0x119a62[_0x3dce71]['isRemoved'];)_0x3dce71++;_0x1ca3b4(_0x3c84c8,_0x32864d,_0x3f7316),_0x1ca3b4(_0x119a62,_0x35e36b,_0x3dce71);const _0x189f6b=_0x119a62['slice'](_0x35e36b,_0x3dce71)['concat'](_0x3c84c8['slice'](_0x32864d,_0x3f7316));return _0x189f6b['sort']((_0x472a65,_0x463bb7)=>_0x472a65['side']!=_0x463bb7['side']?_0x472a65['side']-_0x463bb7['side']:_0x472a65['level']!=_0x463bb7['level']?_0x472a65['level']-_0x463bb7['level']:_0x472a65['distance']!=_0x463bb7['distance']?_0x463bb7['distance']-_0x472a65['distance']:!!_0x472a65['isAdded']!=!!_0x463bb7['isAdded']?-0x1==_0x472a65['side']||0x0==_0x472a65['side']?_0x472a65['isAdded']?-0x1:0x1:_0x472a65['isAdded']?0x1:-0x1:_0x472a65['index']-_0x463bb7['index']),{'commonTape':_0x189f6b,'iEnd':_0x3f7316,'jEnd':_0x3dce71};function _0x1ca3b4(_0x2b054c,_0x5beb01,_0x18a911){let _0x37004c=-0x1,_0x13fb7a=Number['POSITIVE_INFINITY'],_0x1b2fad=!0x0;for(let _0x41ce48=_0x5beb01;_0x41ce48<_0x18a911;_0x41ce48++)if(_0x1d5e4f['isInline'](_0x2b054c[_0x41ce48]['item'])||(_0x1b2fad=!0x1),_0x2b054c[_0x41ce48]['item']['startIndex']<_0x5beb01&&(_0x37004c=_0x41ce48),_0x2b054c[_0x41ce48]['item']['endIndex']>=_0x18a911){_0x13fb7a=_0x41ce48;break;}_0x1b2fad&&(_0x37004c=_0x18a911-0x1);for(let _0x240616=_0x5beb01;_0x240616<_0x18a911;_0x240616++)_0x2b054c[_0x240616]['side']=_0x240616<=_0x37004c?-0x1:_0x240616<_0x13fb7a?0x0:0x1,_0x2b054c[_0x240616]['index']=_0x240616;let _0x39bc8d=0x0;for(let _0x59e005=_0x5beb01;_0x59e005<=_0x37004c;_0x59e005++)0x0==_0x2b054c[_0x59e005]['distance']?_0x2b054c[_0x59e005]['level']=_0x39bc8d:(_0x39bc8d++,_0x2b054c[_0x59e005]['level']=_0x39bc8d,_0x39bc8d++);for(let _0x8ed17f=_0x5beb01;_0x8ed17f<_0x18a911;_0x8ed17f++)0x0==_0x2b054c[_0x8ed17f]['side']&&(_0x2b054c[_0x8ed17f]['level']=_0x39bc8d);_0x39bc8d=0x0;for(let _0x1c2c43=_0x18a911-0x1;_0x1c2c43>=_0x13fb7a;_0x1c2c43--)0x0==_0x2b054c[_0x1c2c43]['distance']?_0x2b054c[_0x1c2c43]['level']=_0x39bc8d:(_0x39bc8d--,_0x2b054c[_0x1c2c43]['level']=_0x39bc8d,_0x39bc8d--);}}['_fixObsoleteTags'](_0x4d2b96){const _0x452097=new Map(),_0x18b8fb=this['editor']['model']['schema'];for(let _0x5b77b6=0x1;_0x5b77b6<_0x4d2b96['length'];_0x5b77b6++){let _0x57b16c,_0x201fd9,_0x461254;const _0x4abbc6=_0x4d2b96[_0x5b77b6],_0xe8e662=_0x4d2b96[_0x5b77b6-0x1];if('text'==_0x4abbc6['type'])continue;if(_0x4abbc6['type']!=_0xe8e662['type'])continue;if(!_0x18b8fb['isBlock'](_0xe8e662['item'])||_0x18b8fb['isLimit'](_0xe8e662['item']))continue;if(!_0x18b8fb['isBlock'](_0x4abbc6['item'])||_0x18b8fb['isLimit'](_0x4abbc6['item']))continue;if((_0x4d2b96[_0x5b77b6]['isAdded']||_0x4d2b96[_0x5b77b6]['isAddSuggestion'])&&_0x4d2b96[_0x5b77b6-0x1]['isRemoved'])_0x57b16c=_0x4d2b96[_0x5b77b6],_0x201fd9=_0x4d2b96[_0x5b77b6-0x1],_0x461254=_0x5b77b6-0x1;else{if(!_0x4d2b96[_0x5b77b6]['isRemoved']||!_0x4d2b96[_0x5b77b6-0x1]['isAdded']&&!_0x4d2b96[_0x5b77b6-0x1]['isAddSuggestion'])continue;_0x57b16c=_0x4d2b96[_0x5b77b6-0x1],_0x201fd9=_0x4d2b96[_0x5b77b6],_0x461254=_0x5b77b6;}const _0xcb10c9=_0x57b16c['level']==_0x201fd9['level'],_0x2cb746=Math['abs'](_0x57b16c['level'])<Math['abs'](_0x201fd9['level'])&&0x0==_0x201fd9['distance'];(_0xcb10c9||_0x2cb746)&&(_0x452097['set'](_0x201fd9['id'],_0x57b16c['id']),_0x4d2b96['splice'](_0x461254,0x1),_0x5b77b6--,_0x57b16c['isAdded']=!0x1);}for(let _0x8354=0x0;_0x8354<_0x4d2b96['length'];_0x8354++)_0x452097['has'](_0x4d2b96[_0x8354]['pairId'])&&(_0x4d2b96[_0x8354]['pairId']=_0x452097['get'](_0x4d2b96[_0x8354]['pairId']));}['_removeMissingPairs'](_0x8bb4e6){const _0x104715=new Set(_0x8bb4e6['map'](_0x30cda5=>_0x30cda5['id']));for(let _0x24d94d=0x0;_0x24d94d<_0x8bb4e6['length'];_0x24d94d++)_0x104715['has'](_0x8bb4e6[_0x24d94d]['pairId'])||0x0==_0x8bb4e6[_0x24d94d]['distance']||(_0x8bb4e6[_0x24d94d]['isIncorrect']=!0x0);return _0x8bb4e6['filter'](_0x3c2f45=>!_0x3c2f45['isIncorrect']);}['_markMismatchedRemovedTags'](_0x54b072){const _0x45e2dd=new Set();for(let _0x28d1eb=0x0;_0x28d1eb<_0x54b072['length'];_0x28d1eb++){if(_0x45e2dd['has'](_0x54b072[_0x28d1eb]['id'])&&_0x54b072[_0x28d1eb]['isRemoved']&&(_0x54b072[_0x28d1eb]['isIncorrect']=!0x0),_0x54b072[_0x28d1eb]['isIncorrect'])continue;if(0x0==_0x54b072[_0x28d1eb]['distance'])continue;if('elementStart'!=_0x54b072[_0x28d1eb]['type'])continue;if(null==_0x54b072[_0x28d1eb]['pairId'])continue;let _0x3babeb=_0x28d1eb+0x1,_0x50d3de=0x0;for(;_0x54b072[_0x3babeb]['id']!=_0x54b072[_0x28d1eb]['pairId'];)'elementStart'==_0x54b072[_0x3babeb]['type']?_0x50d3de++:'elementEnd'==_0x54b072[_0x3babeb]['type']&&_0x50d3de--,_0x3babeb++;if(0x0!=_0x50d3de){if(_0x54b072[_0x28d1eb]['isRemoved'])_0x54b072[_0x28d1eb]['isIncorrect']=!0x0;else{for(;_0x3babeb!=_0x28d1eb;)_0x54b072[_0x3babeb]['isRemoved']&&0x0!=_0x54b072[_0x3babeb]['distance']&&(_0x54b072[_0x3babeb]['isIncorrect']=!0x0,_0x45e2dd['add'](_0x54b072[_0x3babeb]['pairId'])),_0x3babeb--;}}}return _0x54b072['filter'](_0x3003c2=>!_0x3003c2['isIncorrect']);}['_removeUnsupportedChanges'](_0x527b8c){const _0x9dec64=this['editor']['model']['schema'];for(let _0x488c16=0x0;_0x488c16<_0x527b8c['length'];_0x488c16++){if(!(_0x527b8c[_0x488c16]['isAdded']||_0x527b8c[_0x488c16]['isAddSuggestion']||_0x527b8c[_0x488c16]['isRemoved']||_0x527b8c[_0x488c16]['isRemoveSuggestion']))continue;if(0x0==_0x527b8c[_0x488c16]['distance'])continue;const _0x3ff19a=_0x527b8c[_0x488c16]['item'];_0x9dec64['isBlock'](_0x3ff19a)||_0x9dec64['isLimit'](_0x3ff19a)||(_0x527b8c[_0x488c16]['isAdded']&&delete _0x527b8c[_0x488c16]['isAdded'],_0x527b8c[_0x488c16]['isAddSuggestion']&&delete _0x527b8c[_0x488c16]['isAddSuggestion'],_0x527b8c[_0x488c16]['isRemoveSuggestion']&&delete _0x527b8c[_0x488c16]['isRemoveSuggestion'],_0x527b8c[_0x488c16]['isRemoved']&&(_0x527b8c[_0x488c16]['isIncorrect']=!0x0));}return _0x527b8c['filter'](_0x254942=>!_0x254942['isIncorrect']);}['_makeModelFromTape'](_0x107e81,_0x5ab2fa,_0x572bd2){const _0x45f6ef=new _0x5439d1(),_0x42473d=[],_0x571d5d=new Map(),_0x1ad0b4=this['editor']['model'],_0x10a54e=_0x1ad0b4['schema'],_0x28d09d=[_0x45f6ef],_0x12a231={},_0x530a5d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1ca75c=null;const _0x57e2ce=[0x0];for(let _0x39b680=0x0;_0x39b680<_0x107e81['length'];_0x39b680++)if('elementStart'===_0x107e81[_0x39b680]['type']){_0x107e81[_0x39b680]['previousPosition']=_0x1ad0b4['createPositionFromPath'](_0x45f6ef,_0x57e2ce);const _0x1c6768=new _0xf20b09(_0x107e81[_0x39b680]['item']['name'],_0x107e81[_0x39b680]['item']['getAttributes']());_0x28d09d[0x0]['_appendChild'](_0x1c6768),_0x57e2ce['push'](0x0),_0x28d09d['unshift'](_0x1c6768),_0x107e81[_0x39b680]['nextPosition']=_0x1ad0b4['createPositionFromPath'](_0x45f6ef,_0x57e2ce);}else'elementEnd'===_0x107e81[_0x39b680]['type']?(_0x28d09d['shift'](),_0x107e81[_0x39b680]['previousPosition']=_0x1ad0b4['createPositionFromPath'](_0x45f6ef,_0x57e2ce),_0x57e2ce['pop'](),_0x57e2ce[_0x57e2ce['length']-0x1]++,_0x107e81[_0x39b680]['nextPosition']=_0x1ad0b4['createPositionFromPath'](_0x45f6ef,_0x57e2ce)):(_0x107e81[_0x39b680]['previousPosition']=_0x1ad0b4['createPositionFromPath'](_0x45f6ef,_0x57e2ce),_0x1ca75c?_0x1ca75c['_data']+=_0x107e81[_0x39b680]['item']['data']:_0x1ca75c=new _0x51f73e(_0x107e81[_0x39b680]['item']['data'],_0x107e81[_0x39b680]['item']['getAttributes']()),_0x107e81[_0x39b680+0x1]&&'text'===_0x107e81[_0x39b680+0x1]['type']&&_0x215a31(_0x1ca75c,_0x107e81[_0x39b680+0x1]['item'])||(_0x28d09d[0x0]['_appendChild'](_0x1ca75c),_0x1ca75c=null),_0x57e2ce[_0x57e2ce['length']-0x1]+=_0x107e81[_0x39b680]['item']['offsetSize'],_0x107e81[_0x39b680]['nextPosition']=_0x1ad0b4['createPositionFromPath'](_0x45f6ef,_0x57e2ce));for(let _0x185d03=0x0;_0x185d03<_0x107e81['length'];_0x185d03++){const _0x1e4280=_0x107e81[_0x185d03]['previousPosition'],_0x202487=_0x107e81[_0x185d03]['nextPosition'];for(const _0x435de5 of _0x107e81[_0x185d03]['markersStart'])_0x571d5d['set'](_0x435de5,{'start':_0x1e4280,'end':null});_0x234af3('isRemoveSuggestion',_0x185d03,_0x1e4280,_0x202487),_0x234af3('isAddSuggestion',_0x185d03,_0x1e4280,_0x202487),_0x234af3('isRemoved',_0x185d03,_0x1e4280,_0x202487),_0x234af3('isAdded',_0x185d03,_0x1e4280,_0x202487);for(const _0x5b4664 of _0x107e81[_0x185d03]['markersEnd']){const _0x3f37b9=_0x571d5d['get'](_0x5b4664);_0x3f37b9?_0x3f37b9['end']=_0x202487:_0x571d5d['set'](_0x5b4664,{'start':_0x202487,'end':_0x202487});}}for(const [_0x269e49,_0x316310]of _0x571d5d){const _0x471ac4=this['editor']['model']['createRange'](_0x316310['start'],_0x316310['end']);_0x45f6ef['markers']['set'](_0x269e49,_0x471ac4);}return _0x42473d['sort']((_0x3b6f36,_0x2b948a)=>{const _0x3d58c4=_0x45f6ef['markers']['get']('revision:'+_0x3b6f36['id']),_0x5cbc29=_0x45f6ef['markers']['get']('revision:'+_0x2b948a['id']);return _0x3d58c4['start']['isBefore'](_0x5cbc29['start'])?-0x1:_0x3d58c4['start']['isAfter'](_0x5cbc29['start'])?0x1:_0x3d58c4['end']['isBefore'](_0x5cbc29['end'])?-0x1:_0x3d58c4['end']['isAfter'](_0x5cbc29['end'])?0x1:'add'===_0x3b6f36['type']?-0x1:0x1;}),{'root':_0x45f6ef,'changes':_0x42473d};function _0x234af3(_0x5d0175,_0x676f7a,_0x2bbb28,_0x5c97b2){const _0x2e7325=!!_0x107e81[_0x676f7a][_0x5d0175],_0x2c1e7e=_0x2e7325?_0x107e81[_0x676f7a][_0x5d0175]['userId']:null,_0x5a60b5=_0x676f7a===_0x107e81['length']-0x1,_0x1a723b=_0x530a5d[_0x5d0175][0x0],_0x236af0=_0x10a54e['isObject'](_0x107e81[_0x676f7a]['item']);!_0x12a231[_0x5d0175]&&_0x2e7325?_0x12a231[_0x5d0175]={'start':_0x2bbb28,'tapeItem':_0x107e81[_0x676f7a],'userId':_0x2c1e7e,'type':_0x5d0175}:_0x12a231[_0x5d0175]&&!_0x2e7325?(_0x12a231[_0x5d0175]['end']=_0x2bbb28,_0x58735f(_0x12a231[_0x5d0175]),_0x12a231[_0x5d0175]=null):_0x12a231[_0x5d0175]&&_0x2e7325&&_0x12a231[_0x5d0175]['userId']!==_0x2c1e7e&&(_0x12a231[_0x5d0175]['end']=_0x2bbb28,_0x1a723b&&_0x1a723b['userId']===_0x12a231[_0x5d0175]['userId']||_0x58735f(_0x12a231[_0x5d0175]),_0x12a231[_0x5d0175]={'start':_0x2bbb28,'tapeItem':_0x107e81[_0x676f7a],'userId':_0x2c1e7e,'type':_0x5d0175}),_0x12a231[_0x5d0175]&&_0x236af0&&('elementStart'!==_0x107e81[_0x676f7a]['type']||_0x1a723b&&_0x1a723b['userId']===_0x2c1e7e||_0x530a5d[_0x5d0175]['unshift']({'userId':_0x2c1e7e,'object':_0x107e81[_0x676f7a]['item'],'change':_0x12a231[_0x5d0175]}),'elementEnd'===_0x107e81[_0x676f7a]['type']&&_0x1a723b&&_0x1a723b['object']===_0x107e81[_0x676f7a]['item']&&(_0x530a5d[_0x5d0175]['shift'](),_0x12a231[_0x5d0175]=_0x1a723b['change'])),_0x12a231[_0x5d0175]&&_0x5a60b5&&(_0x12a231[_0x5d0175]['end']=_0x5c97b2,_0x58735f(_0x12a231[_0x5d0175]),_0x12a231[_0x5d0175]=null);}function _0x58735f({start:_0x3f92ac,end:_0x26ca1b,tapeItem:_0x1a62ed,userId:_0x47a85a,type:_0x4de3a1}){const _0x21e0ad=_0x1a62ed['item'],_0x35f590=_0x1ad0b4['schema']['isBlock'](_0x21e0ad)&&!_0x1ad0b4['schema']['isLimit'](_0x21e0ad),_0x3ba671=_0x3f92ac['nodeAfter']==_0x26ca1b['parent']&&_0x26ca1b['isAtStart'];if(_0x35f590&&_0x3ba671)return;const _0xf8ad83=_0x1ad0b4['createRange'](_0x3f92ac,_0x26ca1b),_0x52b106=_0x5ab2fa['get'](_0x47a85a),_0x33bd9b=new G({'author':_0x52b106,'type':'isAdded'==_0x4de3a1||'isAddSuggestion'==_0x4de3a1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4de3a1||'isRemoveSuggestion'==_0x4de3a1},'createdAt':new Date(),'rootName':_0x572bd2});_0x42473d['push'](_0x33bd9b),_0x45f6ef['markers']['set']('revision:'+_0x33bd9b['id'],_0xf8ad83);}function _0x215a31(_0x335def,_0x49a078){const _0xa30625=_0x335def['getAttributes'](),_0x12691f=_0x49a078['getAttributes']();for(const _0x3ef20d of _0xa30625){if(_0x3ef20d[0x1]!==_0x49a078['getAttribute'](_0x3ef20d[0x0]))return!0x1;_0x12691f['next']();}return _0x12691f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1d2fc8=>{const _0x562f94=_0x1d2fc8['markerName']['split'](':')[0x1],_0x521d72=this['_getChangeFromId'](_0x562f94);if(!_0x521d72)return null;const _0x3131d3='add'==_0x521d72['type']?'insertion':'deletion',_0x1e045b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3131d3];return _0x521d72['data']['isSuggestion']&&_0x1e045b['push']('ck-suggestion-marker-'+_0x3131d3+'-new'),this['activeChange']==_0x521d72&&_0x1e045b['push']('ck-suggestion-marker--active'),{'classes':_0x1e045b,'attributes':{'data-change-id':_0x562f94}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x108707=>{_0x108707['on']('element:pre',(_0x517626,_0x5b5294,_0x2ee5ef)=>{const _0x583158=_0x5b5294['viewItem']['getChild'](0x0);if(!_0x583158||!_0x583158['is']('element','code'))return;if(!_0x2ee5ef['consumable']['consume'](_0x583158,{'attributes':['vid_start','vid_end']}))return;const _0x5e951e=_0x5b5294['modelRange']['start']['nodeAfter'];_0x2ee5ef['writer']['setAttribute']('vid_start',_0x583158['getAttribute']('vid_start'),_0x5e951e),_0x2ee5ef['writer']['setAttribute']('vid_end',_0x583158['getAttribute']('vid_end'),_0x5e951e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5377f0=>{_0x5377f0['on']('element',(_0x55a5c1,_0x315e73,_0x2baaf0)=>{if(!_0x2baaf0['consumable']['consume'](_0x315e73['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x315e73['modelRange']['isCollapsed'])return;const _0xcc3761=_0x315e73['modelRange']['start']['nodeAfter'];_0xcc3761['hasAttribute']('vid_start')||_0xcc3761['hasAttribute']('vid')||(_0x2baaf0['writer']['setAttribute']('vid_start',_0x315e73['viewItem']['getAttribute']('vid_start'),_0xcc3761),_0x2baaf0['writer']['setAttribute']('vid_end',_0x315e73['viewItem']['getAttribute']('vid_end'),_0xcc3761));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4f9726=>_0x4f9726['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2cd8e9,[,_0x4910e4])=>{['vid_start','vid_end','vid']['includes'](_0x4910e4)&&(_0x2cd8e9['return']=!0x0,_0x2cd8e9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x57fb4a=>{_0x57fb4a['on']('attribute:vid',(_0x190ebd,_0x409a1c,_0x531409)=>{if('\x20'!=_0x409a1c['item']['data']||_0x409a1c['item']['parent']['maxOffset']>0x1)return;if(!_0x531409['consumable']['consume'](_0x409a1c['item'],_0x190ebd['name']))return;const _0x2ac9fb=_0x531409['writer'],_0x3b7638=_0x531409['mapper']['toViewRange'](_0x409a1c['range']);_0x2ac9fb['wrap'](_0x3b7638,_0x2ac9fb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x484abf){const _0x2db030=_0x484abf['plugins']['get']('RevisionViewer');return(_0x2d243b,_0x2b6b90,_0x1e32c8)=>{const _0x2c09e2=_0x2b6b90['markerName']['split'](':')[0x1],_0x4b1adc=_0x2db030['_getChangeFromId'](_0x2c09e2);if(!_0x4b1adc)return null;const _0x2ced3c='add'==_0x4b1adc['type']?'split':'merge';if(!_0x1e32c8['consumable']['test'](_0x2b6b90['markerRange'],_0x2d243b['name']))return;const _0x5b5b67=_0x2b6b90['markerRange']['getWalker'](),_0x5227ff=_0x2b6b90['markerRange']['start'],_0x15dcc9=_0x484abf['model']['schema'];let _0x5bdf5d=null,_0x4af086=null,_0x39f2e6=!0x1,_0x321648=!0x1;for(const _0x312feb of _0x5b5b67){const _0x4cef6a=_0x312feb['item'];_0x39f2e6=_0x39f2e6||_0x15dcc9['isContent'](_0x4cef6a);const _0x28d4ae=_0x1e32c8['mapper']['toViewElement'](_0x4cef6a);if(_0x28d4ae&&_0x28d4ae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x312feb['type']&&(_0x15dcc9['isBlock'](_0x4cef6a)&&!_0x15dcc9['isLimit'](_0x4cef6a)&&(_0x4cef6a['nextSibling']||_0x5227ff['isAtEnd']?_0x5bdf5d&&_0x5bdf5d['parent']==_0x4cef6a||(_0x5bdf5d=_0x4cef6a,_0x2c6156(_0x312feb['previousPosition']),_0x321648=!0x0):_0x4af086=_0x4af086||_0x312feb['previousPosition']));}function _0x2c6156(_0x4cc4c6){const _0x527d35=_0x1e32c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ced3c}),_0xa686c2=_0x1e32c8['mapper']['toViewPosition'](_0x4cc4c6);_0x4b1adc['data']['isSuggestion']&&_0x1e32c8['writer']['addClass']('ck-suggestion-marker-'+_0x2ced3c+'-new',_0x527d35),_0x2db030['activeChange']==_0x4b1adc&&_0x1e32c8['writer']['addClass']('ck-suggestion-marker--active',_0x527d35),_0x1e32c8['writer']['insert'](_0xa686c2,_0x527d35),_0x1e32c8['mapper']['bindElementToMarker'](_0x527d35,_0x2b6b90['markerName']);}_0x39f2e6||_0x321648||!_0x4af086||_0x2c6156(_0x4af086);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x27b143,_0x11fa7b,_0x3562ba)=>{const _0x4cfbcb=_0x3562ba['mapper']['markerNameToElements'](_0x11fa7b['markerName']);if(_0x4cfbcb){for(const _0x469ad7 of _0x4cfbcb)(_0x469ad7['hasClass']('ck-suggestion-marker-split')||_0x469ad7['hasClass']('ck-suggestion-marker-merge'))&&(_0x3562ba['mapper']['unbindElementFromMarkerName'](_0x469ad7,_0x11fa7b['markerName']),_0x3562ba['writer']['remove'](_0x469ad7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5c3546,_0x14cde8,_0x45895a)=>{const _0x2d1d8d=_0x14cde8['markerName']['split'](':')[0x1],_0x23f47e=this['_getChangeFromId'](_0x2d1d8d);if(!_0x23f47e)return null;const _0x2cc65f='add'==_0x23f47e['type']?'split':'merge';if(_0x45895a['consumable']['test'](_0x14cde8['markerRange'],_0x5c3546['name']))for(const _0x121c18 of _0x14cde8['markerRange']['getItems']()){if(!_0x121c18['is']('element','softBreak'))continue;const _0x33f276=_0x45895a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cc65f}),_0xb7b81=_0x45895a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x121c18));_0x23f47e['data']['isSuggestion']&&_0x45895a['writer']['addClass']('ck-suggestion-marker-'+_0x2cc65f+'-new',_0x33f276),this['activeChange']==_0x23f47e&&_0x45895a['writer']['addClass']('ck-suggestion-marker--active',_0x33f276),_0x45895a['writer']['insert'](_0xb7b81,_0x33f276),_0x45895a['mapper']['bindElementToMarker'](_0x33f276,_0x14cde8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2553d4=>{for(const _0x1244f7 of this['editor']['model']['document']['getRootNames']()){const _0x5105a4=this['editor']['model']['document']['getRoot'](_0x1244f7),_0x5adb48=this['editor']['editing']['view']['document']['getRoot'](_0x1244f7);if(_0x5adb48){const _0x1b71e2=_0x5105a4['getAttribute']('revisionHistoryAttachChange');if(_0x2553d4['removeAttribute']('data-change-id',_0x5adb48),_0x2553d4['removeClass']('ck-revision-history-root-add',_0x5adb48),_0x2553d4['removeClass']('ck-revision-history-root-remove',_0x5adb48),_0x2553d4['removeClass']('ck-revision-history-root--active',_0x5adb48),_0x1b71e2){const _0x15a36a=this['_getChangeFromId'](_0x1b71e2);if(!_0x15a36a)return null;_0x2553d4['setAttribute']('data-change-id',_0x1b71e2,_0x5adb48),_0x2553d4['addClass']('ck-revision-history-root-'+_0x15a36a['type'],_0x5adb48),this['activeChange']==_0x15a36a&&_0x2553d4['addClass']('ck-revision-history-root--active',_0x5adb48);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1e04cc=>'revision-comment:'+_0x1e04cc,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x210010=>'revision-suggestion:'+_0x210010,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b6bc5=>({'name':'suggestion:'+_0x2b6bc5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x527d28=>{const _0x535f87=_0x527d28['markerName']['split'](':')[0x1];return'insertion'!=_0x535f87&&'deletion'!=_0x535f87?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x535f87]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3b8f67,_0x3af780,_0x2320b1)=>{const _0x43dee3=_0x2320b1['mapper']['markerNameToElements'](_0x3af780['markerName']);if(_0x43dee3){for(const _0x1c7dad of _0x43dee3)_0x1c7dad['is']('uiElement')&&(_0x2320b1['mapper']['unbindElementFromMarkerName'](_0x1c7dad,_0x3af780['markerName']),_0x2320b1['writer']['remove'](_0x1c7dad));}},{'priority':'high'});}['_getChangeFromId'](_0x49bbaa){return this['_changeIdToChange']['get'](_0x49bbaa);}['_getViewForChange'](_0x4115ab){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x4115ab),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x469ae9,_0x35e6ab,_0x56991a,_0x8266f8)=>{_0x8266f8&&this['_balloon']['remove'](_0x8266f8),_0x56991a&&(this['_balloon']['add']({'view':_0x56991a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4145f5=this['editor']['editing'],_0x107868=this['_getChangeFromId'](_0x56991a['changeId']);let _0x22e4f5;if(_0x107868['data']['isOnRoot']){const _0xf6c871=_0x4145f5['view']['getDomRoot'](_0x107868['rootName']);_0x22e4f5=Array['from'](_0xf6c871['getClientRects']());}else{const _0x24f1a3=this['editor']['model']['markers']['get']('revision:'+_0x56991a['changeId']);_0x22e4f5=Array['from'](_0x4145f5['mapper']['markerNameToElements'](_0x24f1a3['name']))['map'](_0x1c396b=>_0x4145f5['view']['domConverter']['mapViewToDom'](_0x1c396b))['map'](_0x17669e=>Array['from'](_0x17669e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x22e4f5[0x0];return _0x22e4f5['find'](_0x3acb50=>_0x3acb50['top']-0x3<=this['_activeViewTarget']['y']&&_0x3acb50['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3acb50['left']-0x3<=this['_activeViewTarget']['x']&&_0x3acb50['right']+0x3>=this['_activeViewTarget']['x'])||_0x22e4f5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xe7578f,_0x1e3a44,_0x2b63f6,_0x3d2117)=>{this['activeView']=_0x2b63f6?this['_getViewForChange'](_0x2b63f6):null,this['editor']['model']['change'](()=>{const _0x40dfbb=this['editor']['editing'];_0x3d2117&&(_0x3d2117['data']['isOnRoot']?_0x40dfbb['view']['change'](_0x9129f5=>{_0x9129f5['removeClass']('ck-revision-history-root--active',_0x40dfbb['view']['document']['getRoot'](_0x3d2117['rootName']));}):_0x40dfbb['reconvertMarker']('revision:'+_0x3d2117['id'])),_0x2b63f6&&(_0x2b63f6['data']['isOnRoot']?_0x40dfbb['view']['change'](_0xcf7fbb=>{_0xcf7fbb['addClass']('ck-revision-history-root--active',_0x40dfbb['view']['document']['getRoot'](_0x2b63f6['rootName']));}):_0x40dfbb['reconvertMarker']('revision:'+_0x2b63f6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x27ed6a,_0x3ef671)=>{if(this['activeChange'])return;const _0x454726=this['_findChangeIdFromDomTarget'](_0x3ef671['target']),_0x3aca7b=this['_changeIdToChange']['get'](_0x454726);_0x3aca7b?(this['_activeViewTarget']={'x':_0x3ef671['domEvent']['x'],'y':_0x3ef671['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3aca7b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x243c13,_0x48529e)=>{const _0x415e4d=this['_findChangeIdFromDomTarget'](_0x48529e['target']),_0x1c1065=this['_changeIdToChange']['get'](_0x415e4d);_0x1c1065?(this['_activeViewTarget']={'x':_0x48529e['domEvent']['x'],'y':_0x48529e['domEvent']['y']},_0x1c1065===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1c1065):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4f2d36){do{const _0x295623=_0x4f2d36['getAttribute']('data-change-id');if(_0x295623)return _0x295623;_0x4f2d36=_0x4f2d36['parent'];}while(_0x4f2d36);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2d9d8a=>{for(const _0x1e2199 of this['editor']['model']['markers'])_0x2d9d8a['removeMarker'](_0x1e2199);});}}function Q(_0x5c856f,_0xc0a5ab){return(_0x2dfdeb,_0xeb4cbd,_0x2fb916)=>{if(!_0x2fb916['consumable']['test'](_0xeb4cbd['markerRange'],_0x2dfdeb['name']))return;const _0x31de98=_0xeb4cbd['markerRange']['getWalker'](),_0x483f04=_0xeb4cbd['markerRange']['start'],_0x31214a=_0x5c856f['model']['schema'];let _0x17d8d0=null,_0x3c4150=null,_0x57e6cd=!0x1,_0xfca158=!0x1;for(const _0x2205ab of _0x31de98){const _0x1dec5a=_0x2205ab['item'];_0x57e6cd=_0x57e6cd||_0x31214a['isContent'](_0x1dec5a);const _0x9cfb97=_0x2fb916['mapper']['toViewElement'](_0x1dec5a);if(_0x9cfb97&&_0x9cfb97['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2205ab['type']&&(_0x31214a['isBlock'](_0x1dec5a)&&!_0x31214a['isLimit'](_0x1dec5a)&&(_0x1dec5a['nextSibling']||_0x483f04['isAtEnd']?_0x17d8d0&&_0x17d8d0['parent']==_0x1dec5a||(_0x17d8d0=_0x1dec5a,_0xc1bbf6(_0x2205ab['previousPosition']),_0xfca158=!0x0):_0x3c4150=_0x3c4150||_0x2205ab['previousPosition']));}function _0xc1bbf6(_0x3e536f){const _0x1e6c85=_0x2fb916['mapper']['toViewPosition'](_0x3e536f),_0xa7bedb=_0x2fb916['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xc0a5ab});_0x2fb916['writer']['insert'](_0x1e6c85,_0xa7bedb),_0x2fb916['mapper']['bindElementToMarker'](_0xa7bedb,_0xeb4cbd['markerName']);}_0x57e6cd||_0xfca158||!_0x3c4150||_0xc1bbf6(_0x3c4150);};}class nt extends _0x740a59{constructor(_0x5b7327){super(_0x5b7327);const _0x3d60a2=_0x5b7327['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x3d60a2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d60a2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1e07f9=this['editor'],_0x3695d5=_0x1e07f9['plugins']['get'](u),_0x5edeab=_0x3695d5['isReady']?_0x3695d5['diff']['newRevisionId']:null;_0x1e07f9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5edeab);}['refresh'](){const {isReady:_0x937e40,isEnabled:_0x325571,repository:_0x3b7ca8,diff:_0x569e04}=this['editor']['plugins']['get'](u),_0x5a0715=_0x569e04&&_0x3b7ca8['getLaterVisibleRevision'](_0x569e04['newRevisionId']);this['isEnabled']=_0x937e40&&_0x325571&&Boolean(_0x5a0715);}}class ot extends _0x740a59{['_step'];constructor(_0x2016ec,{direction:_0x1b3388}){super(_0x2016ec);const _0x4d9dea=_0x2016ec['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1b3388?0x1:-0x1,this['listenTo'](_0x4d9dea,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d9dea,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4d9dea,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xb048d2=this['editor'],_0x16bf17=_0xb048d2['plugins']['get'](u),{isNavigationMode:_0x223067,currentChangeNumber:_0x597106}=_0x16bf17;let _0x289114;if(_0x16bf17['activeChange']=_0x223067?_0x16bf17['diff']['changes']['get'](_0x597106+this['_step']):_0x16bf17['diff']['changes']['first'],_0x16bf17['activeChange']['data']['isOnRoot'])_0x289114=_0xb048d2['editing']['view']['getDomRoot'](_0x16bf17['activeChange']['rootName']);else{const _0x2e6eae=_0xb048d2['model']['markers']['get']('revision:'+_0x16bf17['activeChange']['id']);_0x289114=_0x3b78d7(_0xb048d2['editing'],_0x2e6eae);}_0x332252({'target':_0x289114,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4f1b4f,currentChangeNumber:_0x4b29c8,numberOfChanges:_0x19791c,isReady:_0x14d424,isEnabled:_0x2118d8}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2118d8&&_0x14d424&&_0x19791c)&&(!_0x4f1b4f||(0x1===this['_step']?_0x4b29c8<_0x19791c-0x1:_0x4b29c8>0x0));}}class Ri extends _0x3e0b15{constructor(_0x510a3a){super(_0x510a3a);const _0x4d04aa=this['bindTemplate'],_0x377356=new _0x1dcc9b(_0x510a3a),_0x54dda0=new _0x1dcc9b(_0x510a3a);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',(_0x41f86f,_0x2d908f)=>_0x41f86f&&_0x2d908f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x76f221,_0x53d651,_0x421c8d,_0x5a11e4)=>{if(!_0x76f221)return m(_0x510a3a,'Loading...');if(!_0x421c8d)return m(_0x510a3a,'No\x20changes');const _0x591043=m(_0x510a3a,'NUMBER_OF_CHANGES',_0x421c8d);return _0x5a11e4?m(_0x510a3a,'X_OF_Y_CHANGES',[_0x53d651+0x1,_0x421c8d]):_0x591043;}),_0x377356['set']({'label':m(_0x510a3a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x54f29b}),_0x54dda0['set']({'label':m(_0x510a3a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x53a08c}),_0x377356['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x54dda0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x377356['on']('execute',()=>this['fire']('execute','backward')),_0x54dda0['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',_0x4d04aa['if']('_isStatusLabelVisible','ck-hidden',_0x591b7f=>!_0x591b7f)]},'children':[{'text':_0x4d04aa['to']('isNavigationMode',_0x3dd8a3=>_0x3dd8a3?m(_0x510a3a,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x510a3a,'Total')+':\x20')}]},{'text':_0x4d04aa['to']('_statusText')}]},new _0x1019e4(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x377356,_0x54dda0]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x38f444{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2c055d=this['editor']['editing']['view'];_0x2c055d['change'](_0x3a5eee=>{for(const _0x295ab5 of _0x2c055d['document']['roots'])_0x3a5eee['addClass'](ge,_0x295ab5);});}['hide'](){const _0x853172=this['editor']['editing']['view'];_0x853172['change'](_0x47c2c9=>{for(const _0x166b85 of _0x853172['document']['roots'])_0x47c2c9['removeClass'](ge,_0x166b85);});}}class v extends _0x38f444{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x2c1aff=this['editor'],_0x12e6ed=_0x2c1aff['plugins']['get'](u),_0x3bb2e9=_0x2c1aff['plugins']['get'](ji);_0x2c1aff['ui']['componentFactory']['add']('exitToEditing',_0x3696d8=>{const _0x5d5b67=new _0x1dcc9b(_0x3696d8);return _0x5d5b67['set']({'label':m(_0x3696d8,'Back\x20to\x20editing'),'icon':_0x4a12a7,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5d5b67,'execute',()=>{_0x2c1aff['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5d5b67;}),_0x2c1aff['ui']['componentFactory']['add']('restoreRevision',_0x18eb0d=>{const _0x2bbbf1=new _0x1dcc9b(_0x18eb0d);return _0x2bbbf1['set']({'label':m(_0x18eb0d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2bbbf1['bind']('isEnabled')['to'](_0x2c1aff['commands']['get']('restoreRevision')),this['listenTo'](_0x2bbbf1,'execute',()=>_0x2c1aff['execute']('restoreRevision')),_0x2bbbf1;}),_0x2c1aff['ui']['componentFactory']['add']('changesNavigation',_0x41aca4=>{const _0x1124fb=new Ri(_0x41aca4),_0x1fd6b1=_0x2c1aff['commands']['get']('showPreviousChange'),_0x942b4a=_0x2c1aff['commands']['get']('showNextChange');return _0x1124fb['bind']('isBackwardNavigationEnabled')['to'](_0x1fd6b1,'isEnabled'),_0x1124fb['bind']('isForwardNavigationEnabled')['to'](_0x942b4a,'isEnabled'),_0x1124fb['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x12e6ed),this['listenTo'](_0x1124fb,'execute',(_0x45f09f,_0x3000e0)=>{_0x2c1aff['execute']('forward'===_0x3000e0?'showNextChange':'showPreviousChange');}),_0x1124fb;}),_0x3bb2e9['show'](),_0x12e6ed['on']('change:isReady',(_0x13b502,_0x53ac61,_0x2b740e)=>{_0x2b740e?_0x3bb2e9['hide']():_0x3bb2e9['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x35e20d,_0x33300a){super(_0x35e20d,_0x33300a);const _0x27a0f0=this['bindTemplate'];this['set']({'label':m(_0x35e20d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x35e20d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x27a0f0['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x336a2a=this['fieldView']['element'];this['_tooltipString']=_0x336a2a['scrollWidth']>_0x336a2a['clientWidth']&&_0x336a2a['value']||'';}}class vi extends _0x3e0b15{constructor(_0x41291e,_0x49927b,_0x1e7a65){super(_0x41291e);const _0x409387=new _0x137374();_0x409387['set']({'content':_0x4e42fe,'viewBox':'0\x200\x2011\x2010'});const _0x392b52=['ck','ck-revision-history-sidebar__revision-author'];_0x1e7a65&&_0x392b52['push']('ck-revision-history-sidebar__revision-author_creator');const _0x187b4a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x41291e,_0x1e7a65?'Revision\x20creator':'Revision\x20author')},'children':[_0x409387,_0x49927b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x392b52},'children':_0x187b4a});}}function mi(_0x5e42bb,_0x1af6d7){const _0x96208f=_0x5e42bb['bindTemplate'],_0x3f77ef=_0x5e42bb['locale'],_0x1ebb20=_0x54c274(_0x3f77ef);_0x1ebb20['panelPosition']='sw';const _0x4b4787=function(_0x5b3d05,_0x24da02){const _0x4d196e=function(_0x32d351,_0x3717c8){const _0x11f029=_0x32d351['locale'],_0x2923f4={'Compare\x20against\x20selected':m(_0x11f029,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x11f029,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x11f029,'Restore\x20this\x20revision')};return _0x3717c8['map'](_0x42e528=>{const _0x5c0978=_0x2923f4[_0x42e528['name']];return _0x5c0978&&_0x5c0978!==_0x42e528['name']&&(_0x42e528['name']=_0x5c0978),_0x42e528;});}(_0x5b3d05,_0x24da02),_0x1c2605=new _0x5731ed();for(const _0x3f5288 of _0x4d196e){const _0x2a7723={'type':'button','model':new to({'label':_0x3f5288['name'],'class':_0x3f5288['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f5288['action']})};_0x2a7723['model']['bind']('isEnabled')['to'](_0x5b3d05,'isActionsDropdownOpen',_0x5bcba2=>'function'!=typeof _0x3f5288['isEnabled']||(!_0x5bcba2||_0x3f5288['isEnabled'](_0x5b3d05))),_0x1c2605['add'](_0x2a7723);}return _0x1c2605;}(_0x5e42bb,_0x1af6d7);return _0x5e42bb['bind']('isActionsDropdownOpen')['to'](_0x1ebb20,'isOpen'),_0x1ebb20['buttonView']['set']({'label':m(_0x3f77ef,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x18b99b}),_0x1ebb20['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x96208f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x96208f['to'](_0x2a1e5f=>_0x2a1e5f['stopPropagation']())}}),_0x1ebb20['on']('execute',_0x1c7abd=>{_0x5e42bb['isReady']&&'function'==typeof _0x1c7abd['source']['_action']&&_0x1c7abd['source']['_action'](_0x5e42bb);}),_0x28ae8a(_0x1ebb20,_0x4b4787,{'role':'menu'}),_0x1ebb20['listenTo'](_0x5e42bb,'change:isActionsDropdownOpen',(_0x4959ac,_0x3c226e,_0x5d5bca)=>{if(_0x5d5bca)for(const _0x36ab67 of _0x1ebb20['listView']['items']){const _0x3b5d0c=_0x36ab67['children']['first'],_0x3841fd=_0x1af6d7['find'](_0x78bb2b=>_0x78bb2b['action']===_0x3b5d0c['_action'])['isVisible'];_0x36ab67['isVisible']=void 0x0===_0x3841fd||_0x3841fd(_0x5e42bb);}}),_0x1ebb20;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x241b49(_0x3e0b15){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x180518,_0x47af2f,_0x32c58d,_0x256c7b){super(_0x180518);const _0x12d9f6=this['bindTemplate'],_0x433083=function(_0x305359,_0x39eb1d){const _0x239c35=Array['from'](_0x39eb1d['authors'])['filter'](_0x1990c8=>_0x1990c8!=_0x39eb1d['creator']);return _0x39eb1d['creator']&&_0x239c35['unshift'](_0x39eb1d['creator']),_0x239c35['map'](_0x193a92=>new vi(_0x305359,_0x193a92,_0x193a92==_0x39eb1d['creator']));}(_0x180518,_0x47af2f);this['id']=_0x47af2f['id'],this['_revision']=_0x47af2f,this['_requireRevisionName']=_0x256c7b,this['bind']('name','createdAt')['to'](_0x47af2f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53f584=>{return _0x39774c=_0x180518['uiLanguage'],(_0x4a83eb=_0x53f584)['toLocaleDateString'](_0x39774c,{'month':'long','day':'numeric'})+',\x20'+_0x4a83eb['toLocaleTimeString'](_0x39774c,{'hour':'numeric','minute':'numeric'});var _0x39774c,_0x4a83eb;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x180518,_0x4ca011),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x439ca0=>_0x439ca0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x330028,_0x14777a)=>_0x330028&&_0x14777a),this['revisionActionsView']=_0x32c58d&&_0x32c58d['length']?mi(this,_0x32c58d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x12d9f6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x12d9f6['if']('isEnabled','ck-disabled',_0x33d55d=>!_0x33d55d),_0x12d9f6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x12d9f6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x12d9f6['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':_0x12d9f6['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':_0x433083}]},this['revisionActionsView']],'on':{'click':_0x12d9f6['to'](_0x1a5464=>{_0x1a5464['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x38cfff=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x38cfff,'change',()=>{this['_requireRevisionName']&&!_0x38cfff['value']||this['fire']('setName',{'id':this['id'],'name':_0x38cfff['value']}),_0x38cfff['value']||(_0x38cfff['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x322c83,_0x15bdf7){const _0xa253e8=_0x3ae11b['fromJSDate'](_0x322c83)['setLocale'](_0x15bdf7),_0x1a3fe8=_0x3ae11b['local'](),_0x2310d3=_0x1a3fe8['minus']({'days':0x1})['startOf']('day');let _0x14e6ca,_0xc0fc6a;return _0xa253e8['hasSame'](_0x1a3fe8,'day')?(_0x14e6ca=_0xa253e8['startOf']('day')['toJSDate'](),_0xc0fc6a=_0xa253e8['toRelativeCalendar']()):_0xa253e8['hasSame'](_0x2310d3,'day')?(_0x14e6ca=_0x2310d3['toJSDate'](),_0xc0fc6a=_0xa253e8['toRelativeCalendar']()):_0xa253e8['hasSame'](_0x1a3fe8,'week')?(_0x14e6ca=_0xa253e8['startOf']('week')['toJSDate'](),_0xc0fc6a=_0xa253e8['weekdayLong']||''):_0xa253e8['hasSame'](_0x1a3fe8,'year')?(_0x14e6ca=_0xa253e8['startOf']('month')['toJSDate'](),_0xc0fc6a=_0xa253e8['monthLong']||''):(_0x14e6ca=_0xa253e8['startOf']('year')['toJSDate'](),_0xc0fc6a=String(_0xa253e8['year'])),{'startDate':_0x14e6ca,'localizedPeriodName':_0xc0fc6a};}class fi extends _0x3e0b15{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c08a5,_0x187ff6,_0xd732c,_0x20cdc5){super(_0x4c08a5);const _0x5e3705=bi(_0x187ff6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x187ff6,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xd732c,this['_requireRevisionName']=_0x20cdc5,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':_0x5e3705}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x12e1ea){const _0x138a71=new pi(this['locale'],_0x12e1ea,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x138a71);}['removeRevision'](_0x34e9e5){const _0x1fd1d0=this['revisionViews']['find'](_0x1865b7=>_0x1865b7['id']===_0x34e9e5['id']);this['revisionViews']['remove'](_0x1fd1d0);}}class ki extends _0x3e0b15{constructor(_0x3b4fa1){super(_0x3b4fa1);const _0x1acceb=new _0x137374();_0x1acceb['content']=_0x46dbf8,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1acceb,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3b4fa1,'Revision\x20history')]}]});}}class ui extends _0x3e0b15{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2457ce,_0x1ac705,_0xcd4bcb,_0xc3f9e6){super(_0x2457ce);const _0x8081b8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1ac705,this['_revisionActions']=_0xcd4bcb,this['_requireRevisionName']=_0xc3f9e6,this['on']('select',(_0x55ece8,_0x547deb)=>{this['fire']('revisionSelected',_0x547deb);}),this['on']('setName',(_0xf3d696,_0xa961e2)=>{this['fire']('revisionSetName',_0xa961e2);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x2457ce),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x8081b8['if']('isEnabled','ck-disabled',_0x2d9117=>!_0x2d9117)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x25d657 of this['_revisions'])this['_addRevision'](_0x25d657);this['_revisions']['on']('add',(_0x476b36,_0x381fb7)=>{this['_addRevision'](_0x381fb7);}),this['_revisions']['on']('remove',(_0x22bccc,_0x2741d4)=>{this['_removeRevision'](_0x2741d4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x54ec66=>_0x54ec66['revisionViews']['map'](_0x4c24cb=>_0x4c24cb))['flat']();}['selectRevision'](_0x2071c4){for(const _0x2996fd of this['revisionViews'])_0x2071c4&&_0x2071c4['id']===_0x2996fd['id']?_0x2996fd['select']():_0x2996fd['deselect']();}['highlightRevisions'](_0x4126ed){for(const _0x3dedbc of this['revisionViews'])_0x4126ed['some'](({id:_0xd98d66})=>_0xd98d66===_0x3dedbc['id'])?_0x3dedbc['highlight']():_0x3dedbc['unhighlight']();}['_addRevision'](_0x50f101){const _0x301853=bi(_0x50f101['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x295aa9=this['timePeriodViews']['get'](0x0);_0x295aa9&&_0x295aa9['startDate']['getTime']()===_0x301853['getTime']()||(_0x295aa9=new fi(this['locale'],_0x301853,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x295aa9)),_0x295aa9['addRevision'](_0x50f101);}['_removeRevision'](_0x11392f){const _0x9a5c97=bi(_0x11392f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x9a5c97)['removeRevision'](_0x11392f);}['_getTimePeriodViewByStartDate'](_0x4ab2c2){return this['timePeriodViews']['find'](_0x15328c=>_0x15328c['startDate']['getTime']()===_0x4ab2c2['getTime']());}}class d extends _0x38f444{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x4ac363(_0xa86a0b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2440f8,_0x270cef){super(_0x270cef),this['sourceElement']=_0x2440f8,this['model']['document']['createRoot']();const _0x4492a6=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4492a6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1e5754,_0x40224f){const _0x5b0293=new this(_0x1e5754,_0x40224f);return await _0x5b0293['initPlugins'](),await _0x5b0293['ui']['init'](_0x1e5754),await _0x5b0293['data']['init'](_0x5b0293['config']['get']('initialData')||''),_0x5b0293['fire']('ready'),_0x5b0293;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x1f6d35{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x145865){function _0x504c8f(_0x340f20){return _0x340f20['map'](_0x28a3a6=>String['fromCharCode'](_0x28a3a6))['join']('');}super(_0x145865),this['result']='end',_0x145865[_0x504c8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504c8f([0x76,0x69,0x65,0x77])][_0x504c8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x504c8f([0x61,0x75,0x74,0x6f]),_0x145865[_0x504c8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x504c8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x504c8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x504c8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x504c8f([0x6f,0x6b])});}}class ct extends _0x1f6d35{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x2e8e78){if(super(_0x2e8e78),!this['editor']['config']['get']('revisionHistory'))throw new _0x3b36ab('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3634ce=>this['_showRevisionViewer']({..._0x3634ce,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x459144=>this['_closeRevisionViewer'](_0x459144)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1950e4=>this['_restoreRevision'](_0x1950e4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x43dfb2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x43dfb2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x582de2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x582de2);}['getRevision'](_0x3b3bc3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b3bc3);}['getRevisions'](_0x76593b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x76593b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xacc44=this['editor'],_0x40320a=_0x2c9923(_0xacc44,p),_0x4f93a8=_0xacc44['plugins']['get']('RevisionTracker'),_0x3f9983=_0xacc44['plugins']['get']('Users')['users'];return _0x40320a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x40320a['lazyRoots'],(_0x40320a['plugins']['push'](ht,u,v,class extends _0x1f6d35{static get['requires'](){return[u,'Users'];}['init'](){const _0x33b314=this['editor']['plugins']['get']('Users');for(const _0x4cbe49 of _0x3f9983)_0x4cbe49['isAnonymous']||_0x33b314['getUser'](_0x4cbe49['id'])||_0x33b314['addUser'](_0x4cbe49);const _0x4bbe4d=_0x4f93a8['repository']['getRevisions']();let _0x4832f7=null;const _0x3bdc10=this['editor']['plugins']['get']('RevisionViewer');_0x3bdc10['adapter']=_0x4f93a8['adapter'],_0x3bdc10['bind']('isEnabled')['to'](_0x4f93a8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xacc44,'isReadOnly',_0x619a04=>!_0x619a04);for(const _0x366cef of _0x4bbe4d){const _0x202c67=null===_0x366cef['creator'];if(_0x202c67&&_0x366cef['toVersion']===_0x366cef['fromVersion'])continue;const _0x56174d=_0x366cef['toJSON']();_0x3bdc10['addRevisionData'](_0x56174d,(_0x243abd,_0x56bd28,_0xa1abc3)=>{if(_0x202c67){if(_0x4832f7)_0x4832f7['_update'](_0x243abd,_0x56bd28);else{if(!_0x56bd28){const _0x163147=_0xa1abc3['toJSON']();_0x163147['id']=_0xc9fc17(),_0x4f93a8['saveRevision'](_0x163147,_0xa1abc3['toVersion'])['then'](_0x46960b=>{_0x4832f7=_0x46960b;});}}}else _0x366cef['_update'](_0x243abd,_0x56bd28);});}}},d),_0x40320a);}['_enhanceShowRevisionViewerCallback'](){const _0x297945=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2f556e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a9f62=this['editor']['plugins']['get']('Autosave');await _0x5a9f62['save']();}else await _0x2f556e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4178a8=this['editor']['plugins']['get']('Dialog');_0x4178a8['isOpen']&&_0x4178a8['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2926b0=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x488bbc of _0x2926b0)_0x488bbc['class']=_0x488bbc['class']?_0x488bbc['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0xe0730e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0xe0730e&&_0xe0730e['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x5bc64b=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x5bc64b&&_0x5bc64b['setAttribute']('tabindex','-1');}}const _0x3435a0=this['_getRevisionViewerEditorConfig']();return _0x297945(_0x3435a0)['then'](_0x2362ac=>{return(this['_viewerEditor']=_0x2362ac,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'),_0x2362ac);})['catch'](_0x339a93=>(console['error'](_0x339a93),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x292403=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x3fb4db=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x36b8d2 of _0x3fb4db)_0x36b8d2['class']='ck-tab-panel_disabled'===_0x36b8d2['class']?'':_0x36b8d2['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x1ca843=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1ca843&&_0x1ca843['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0xd4f616=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0xd4f616&&_0xd4f616['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x292403(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1640ca=this['editor']['plugins']['get']('Annotations');_0x1640ca['refreshVisibility'](),_0x1640ca['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1092db){const _0x2bd283=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x6d7e77=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3c8d5c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x3c8d5c,_0x1092db)['then'](_0xf92c2e=>(_0x6d7e77['style']['display']='block',_0x2bd283['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xf92c2e));}['_closeRevisionViewer'](_0x808892){const _0x875f47=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x875f47['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x808892['destroy']();}async['_restoreRevision'](_0x24590c){const _0x2672a4=this['editor'],_0xa65332=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x583ec6=_0x2672a4['plugins']['get']('RevisionTracker'),_0x505172=_0x2672a4['plugins']['get']('RevisionHistoryUtils'),_0x50594c=_0xa65332['repository']['getRevision'](_0x24590c);let _0x25df1b,_0x3498a5,_0x191937;try{await _0x505172['loadRevisionData'](_0x50594c,this['adapter']),_0x25df1b=_0x505172['getRevisionDocumentData'](_0x50594c),_0x3498a5=_0x505172['getRevisionRootsAttributes'](_0x50594c);}catch(_0x170ec2){return void console['error'](_0x170ec2);}_0x2672a4['model']['change'](_0x1b9b7e=>{for(const _0x3df498 of Array['from'](_0x2672a4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1b9b7e['removeMarker'](_0x3df498);}),_0xa65332['isReady']=!0x1,_0x2672a4['model']['enqueueChange'](_0x5c76ae=>{_0x5c76ae['setSelection'](null),_0x5c76ae['removeSelectionAttribute'](_0x2672a4['model']['document']['selection']['getAttributeKeys']());const _0x53bd43=Object['keys'](_0x25df1b);for(const _0x10ed99 of _0x2672a4['model']['document']['roots'])'$graveyard'!=_0x10ed99['rootName']&&_0x10ed99['isAttached']()&&!_0x53bd43['includes'](_0x10ed99['rootName'])&&_0x5c76ae['detachRoot'](_0x10ed99);for(const _0x3e08b0 of _0x53bd43){let _0x53bbef=_0x2672a4['model']['document']['getRoot'](_0x3e08b0);_0x53bbef&&_0x53bbef['isAttached']()||(_0x53bbef=_0x5c76ae['addRoot'](_0x3e08b0));const _0x25251c=_0x3498a5[_0x3e08b0],_0x216cb8=Object['keys'](_0x25251c),_0x180dd2=_0x25df1b[_0x3e08b0];for(const _0xa8c53 of _0x53bbef['getAttributeKeys']())_0x216cb8['includes'](_0xa8c53)||_0x5c76ae['removeAttribute'](_0xa8c53,_0x53bbef);for(const _0x5d4910 of _0x216cb8)_0x5c76ae['setAttribute'](_0x5d4910,_0x3498a5[_0x3e08b0][_0x5d4910],_0x53bbef);_0x5c76ae['remove'](_0x5c76ae['createRangeIn'](_0x53bbef)),_0x5c76ae['insert'](_0x2672a4['data']['parse'](_0x180dd2,_0x53bbef),_0x53bbef,0x0);}});const _0x4fb299=m(_0x2672a4['locale'],'Restored');if(_0x50594c['name'])_0x191937=-0x1==_0x50594c['name']['indexOf'](_0x4fb299)?_0x4fb299+':\x20'+_0x50594c['name']:_0x50594c['name'];else _0x191937=_0x4fb299+':\x20'+(_0x50594c['createdAt']['toLocaleDateString'](_0x2672a4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x50594c['createdAt']['toLocaleTimeString'](_0x2672a4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x583ec6['saveRevision']({'name':_0x191937}),_0xa65332['isReady']=!0x0,_0x2672a4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0xe4465a){super(_0xe4465a),this['_revisionViewer']=_0xe4465a['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1db292=this['_revisionsRepository']['_revisions'],_0x2fc7fa=this['_createRevisionActions'](),_0x41d76c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x1db292,_0x2fc7fa,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',(_0xdb09ad,_0x118937)=>{_0x118937['revisionViews']['on']('add',(_0x219abc,_0x33a5f7)=>{_0x33a5f7['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)),_0x41d76c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xab3ccf=this['_revisionsRepository']['getRevision'](0x0);if(_0xab3ccf){const _0x5e8a31=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xab3ccf['id']);this['_revisionViewer']['compare'](_0xab3ccf,_0x5e8a31);}}['_handleRevisionSelected'](_0x3bf5d4,_0x354dd3){const _0x5d6883=this['_revisionsRepository']['getRevision'](_0x354dd3['id']),_0x14517d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5d6883['id']);this['_revisionViewer']['compare'](_0x5d6883,_0x14517d);}['_handleRevisionSetName'](_0x2354b2,_0x2a756a){this['_revisionsRepository']['getRevision'](_0x2a756a['id'])['setName'](_0x2a756a['name']);}['_handleDiffChange'](_0x36dcf7,_0x230726,_0x474ec3){const _0x4e9058=this['_revisionsRepository']['getRevisionsInDiff'](_0x474ec3);_0x4e9058['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4e9058),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4e9058[0x0]));}['_createRevisionActions'](){const _0x31799b=this['editor'],_0x3da9c0=d['availableRevisionActions'],_0x817032=_0x31799b['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x817032['length'])return _0x817032['map'](_0x5dff1c=>{const _0x5b8a86='string'==typeof _0x5dff1c?Object['assign']({},_0x3da9c0[_0x5dff1c]):_0x5dff1c;return _0x5b8a86['action']=_0x5b8a86['action']['bind'](this,_0x31799b),_0x5b8a86['isVisible']&&(_0x5b8a86['isVisible']=_0x5b8a86['isVisible']['bind'](this,_0x31799b)),_0x5b8a86;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5aa11c},_0x4e8ffe)=>{const _0x2eeefa=_0x5aa11c['get'](u),_0x30a0ab=_0x2eeefa['repository'];let _0x16bca=_0x2eeefa['diff']['newRevisionId'],_0x364d5b=_0x4e8ffe['id'];_0x30a0ab['getIndex'](_0x16bca)>_0x30a0ab['getIndex'](_0x364d5b)&&([_0x16bca,_0x364d5b]=[_0x364d5b,_0x16bca]),_0x2eeefa['compare'](_0x16bca,_0x364d5b);},'isVisible':({plugins:_0x23374c},_0x53bfa7)=>{const _0x229d43=_0x23374c['get'](u);return!(_0x229d43['repository']['getRevisionsInDiff'](_0x229d43['diff'])['length']>0x2)&&!_0x53bfa7['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1e238b,{id:_0x4d376e})=>{_0x1e238b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4d376e);},'isVisible':({plugins:_0x5358b5},_0x1e6a80)=>!!_0x5358b5['get'](u)['repository']['getLaterVisibleRevision'](_0x1e6a80['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xcbea88},{id:_0x20c3db,revisionNameView:_0x178f17})=>{const _0x225d70=_0xcbea88['get'](u),_0x40be1b=_0x225d70['repository']['getEarlierVisibleRevision'](_0x20c3db);_0x225d70['compare'](_0x20c3db,_0x40be1b),_0x178f17['focus'](),_0x178f17['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xf6db3e,_0x14fb5e){super(_0xf6db3e),this['_view']=_0x14fb5e,this['_toolbarConfig']=st(_0xf6db3e['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x315a57){const _0x1dd037=this['editor'],_0x4cfcfa=this['view'],_0x2f5615=_0x1dd037['editing']['view'],_0x1ccdac=_0x4cfcfa['editable'],_0xeae7fe=_0x2f5615['document']['getRoot']();_0x1ccdac['name']=_0xeae7fe['rootName'],_0x4cfcfa['render']();const _0x5d5820=_0x1ccdac['element'];this['setEditableElement'](_0x1ccdac['name'],_0x5d5820),_0x4cfcfa['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2f5615['attachDomRoot'](_0x5d5820),this['_elementReplacer']['replace'](_0x315a57,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x18ab0f=this['view'],_0x1b0871=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1b0871['detachDomRoot'](_0x18ab0f['editable']['name']),_0x18ab0f['destroy']();}['_initToolbar'](){const _0x40cc3f=this['view'];_0x40cc3f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x40cc3f['stickyPanel']['limiterElement']=_0x40cc3f['element'],_0x40cc3f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x39b955})=>_0x39b955),_0x40cc3f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x40cc3f['toolbar']);}}class ii extends _0x2ed6c9{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3baa19,_0x6fae02,_0x452fb7={}){super(_0x3baa19),this['stickyPanel']=new _0x468a35(_0x3baa19),this['toolbar']=new _0xeb63cb(_0x3baa19,{'shouldGroupWhenFull':_0x452fb7['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x3baa19,_0x6fae02);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x298957(_0x30b7bf){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x524dc8,_0x481fe3){super(_0x481fe3),this['sourceElement']=_0x524dc8,this['model']['document']['createRoot']();const _0x28429b=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x28429b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3e4dcc,_0x430595){const _0x497235=new this(_0x3e4dcc,_0x430595);return await _0x497235['initPlugins'](),await _0x497235['ui']['init'](_0x3e4dcc),await _0x497235['data']['init'](_0x497235['config']['get']('initialData')||''),_0x497235['fire']('ready'),_0x497235;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x38f444{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46c92e){function _0x1c4bcc(_0x18f32f){return _0x18f32f['map'](_0x39d6cc=>String['fromCharCode'](_0x39d6cc))['join']('');}super(_0x46c92e),this['result']='end',_0x46c92e[_0x1c4bcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c4bcc([0x76,0x69,0x65,0x77])][_0x1c4bcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c4bcc([0x61,0x75,0x74,0x6f]),_0x46c92e[_0x1c4bcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c4bcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c4bcc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c4bcc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c4bcc([0x6f,0x6b])});}}class ht extends _0x38f444{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0xabf0ab){if(super(_0xabf0ab),!this['editor']['config']['get']('revisionHistory'))throw new _0x383d8c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2b87ea=>this['_showRevisionViewer']({..._0x2b87ea,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xfaf883=>this['_closeRevisionViewer'](_0xfaf883)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x280cc0=>this['_restoreRevision'](_0x280cc0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x7d29d5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x7d29d5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x598ef4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x598ef4);}['getRevision'](_0x9be6e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x9be6e);}['getRevisions'](_0x52d2ca){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x52d2ca||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5104af=this['editor'],_0x42e1f4=_0x5ec73f(_0x5104af,p),_0x5a8522=_0x5104af['plugins']['get']('RevisionTracker'),_0x3bcb51=_0x5104af['plugins']['get']('Users')['users'];return _0x42e1f4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x42e1f4['lazyRoots'],(_0x42e1f4['plugins']['push'](at,u,v,class extends _0x38f444{static get['requires'](){return[u,'Users'];}['init'](){const _0x43378b=this['editor']['plugins']['get']('Users');for(const _0x2c40f9 of _0x3bcb51)_0x2c40f9['isAnonymous']||_0x43378b['getUser'](_0x2c40f9['id'])||_0x43378b['addUser'](_0x2c40f9);const _0x13f886=_0x5a8522['repository']['getRevisions']();let _0x27c745=null;const _0xebae42=this['editor']['plugins']['get']('RevisionViewer');_0xebae42['adapter']=_0x5a8522['adapter'],_0xebae42['bind']('isEnabled')['to'](_0x5a8522),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5104af,'isReadOnly',_0x677c3c=>!_0x677c3c);for(const _0x3a2c30 of _0x13f886){const _0x3c870f=null===_0x3a2c30['creator'];if(_0x3c870f&&_0x3a2c30['toVersion']===_0x3a2c30['fromVersion'])continue;const _0x2a16b4=_0x3a2c30['toJSON']();_0xebae42['addRevisionData'](_0x2a16b4,(_0x20eaab,_0x289fc2,_0x1a9c36)=>{if(_0x3c870f){if(_0x27c745)_0x27c745['_update'](_0x20eaab,_0x289fc2);else{if(!_0x289fc2){const _0xa7ab7a=_0x1a9c36['toJSON']();_0xa7ab7a['id']=_0x31075e(),_0x5a8522['saveRevision'](_0xa7ab7a,_0x1a9c36['toVersion'])['then'](_0x34cc74=>{_0x27c745=_0x34cc74;});}}}else _0x3a2c30['_update'](_0x20eaab,_0x289fc2);});}}},d),_0x42e1f4);}['_enhanceShowRevisionViewerCallback'](){const _0xbfae7c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x607d5f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x16f0a4=this['editor']['plugins']['get']('Autosave');await _0x16f0a4['save']();}else await _0x607d5f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x42d984=this['editor']['plugins']['get']('Dialog');_0x42d984['isOpen']&&_0x42d984['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x538148=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x708b6e of _0x538148)_0x708b6e['class']=_0x708b6e['class']?_0x708b6e['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x47d658=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x47d658&&_0x47d658['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3e4eba=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3e4eba&&_0x3e4eba['setAttribute']('tabindex','-1');}}const _0xa3b186=this['_getRevisionViewerEditorConfig']();return _0xbfae7c(_0xa3b186)['then'](_0x4a944d=>{return(this['_viewerEditor']=_0x4a944d,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'),_0x4a944d);})['catch'](_0x33bc17=>(console['error'](_0x33bc17),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x49adf9=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x4b1c6c=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2bfd40 of _0x4b1c6c)_0x2bfd40['class']='ck-tab-panel_disabled'===_0x2bfd40['class']?'':_0x2bfd40['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x3d81a6=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3d81a6&&_0x3d81a6['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x29d551=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x29d551&&_0x29d551['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x49adf9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x23f943=this['editor']['plugins']['get']('Annotations');_0x23f943['refreshVisibility'](),_0x23f943['refreshPositioning']();}});});}['_showRevisionViewer'](_0x46a8e0){const _0x139d89=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x376712=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5613db=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x5613db,_0x46a8e0)['then'](_0x291907=>(_0x376712['style']['display']='block',_0x139d89['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x291907));}['_closeRevisionViewer'](_0x3e98fc){const _0x53aeb9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53aeb9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3e98fc['destroy']();}async['_restoreRevision'](_0x5a5b46){const _0x37a29d=this['editor'],_0x2cc75f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x564073=_0x37a29d['plugins']['get']('RevisionTracker'),_0x5892e2=_0x37a29d['plugins']['get']('RevisionHistoryUtils'),_0x4f1128=_0x2cc75f['repository']['getRevision'](_0x5a5b46);let _0x42bf7c,_0x5f2acc,_0x30ff76;try{await _0x5892e2['loadRevisionData'](_0x4f1128,this['adapter']),_0x42bf7c=_0x5892e2['getRevisionDocumentData'](_0x4f1128),_0x5f2acc=_0x5892e2['getRevisionRootsAttributes'](_0x4f1128);}catch(_0x5dbec5){return void console['error'](_0x5dbec5);}_0x37a29d['model']['change'](_0x2e72cb=>{for(const _0x40c353 of Array['from'](_0x37a29d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2e72cb['removeMarker'](_0x40c353);}),_0x2cc75f['isReady']=!0x1,_0x37a29d['model']['enqueueChange'](_0x4342b4=>{_0x4342b4['setSelection'](null),_0x4342b4['removeSelectionAttribute'](_0x37a29d['model']['document']['selection']['getAttributeKeys']());const _0x31dbbf=Object['keys'](_0x42bf7c);for(const _0x568bba of _0x37a29d['model']['document']['roots'])'$graveyard'!=_0x568bba['rootName']&&_0x568bba['isAttached']()&&!_0x31dbbf['includes'](_0x568bba['rootName'])&&_0x4342b4['detachRoot'](_0x568bba);for(const _0x36f9ef of _0x31dbbf){let _0x99feec=_0x37a29d['model']['document']['getRoot'](_0x36f9ef);_0x99feec&&_0x99feec['isAttached']()||(_0x99feec=_0x4342b4['addRoot'](_0x36f9ef));const _0xa58b1f=_0x5f2acc[_0x36f9ef],_0x9d1efc=Object['keys'](_0xa58b1f),_0x30dfbc=_0x42bf7c[_0x36f9ef];for(const _0x5eeb4a of _0x99feec['getAttributeKeys']())_0x9d1efc['includes'](_0x5eeb4a)||_0x4342b4['removeAttribute'](_0x5eeb4a,_0x99feec);for(const _0x439c9a of _0x9d1efc)_0x4342b4['setAttribute'](_0x439c9a,_0x5f2acc[_0x36f9ef][_0x439c9a],_0x99feec);_0x4342b4['remove'](_0x4342b4['createRangeIn'](_0x99feec)),_0x4342b4['insert'](_0x37a29d['data']['parse'](_0x30dfbc,_0x99feec),_0x99feec,0x0);}});const _0x1a1d95=m(_0x37a29d['locale'],'Restored');if(_0x4f1128['name'])_0x30ff76=-0x1==_0x4f1128['name']['indexOf'](_0x1a1d95)?_0x1a1d95+':\x20'+_0x4f1128['name']:_0x4f1128['name'];else _0x30ff76=_0x1a1d95+':\x20'+(_0x4f1128['createdAt']['toLocaleDateString'](_0x37a29d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4f1128['createdAt']['toLocaleTimeString'](_0x37a29d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x564073['saveRevision']({'name':_0x30ff76}),_0x2cc75f['isReady']=!0x0,_0x37a29d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|