@ckeditor/ckeditor5-real-time-collaboration 47.3.0-alpha.7 → 47.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x669d2d=_0x2a60;(function(_0x556e56,_0x3a3ab7){const _0x171de0=_0x2a60,_0x2720b1=_0x556e56();while(!![]){try{const _0x46ded1=-parseInt(_0x171de0(0x15a))/0x1+parseInt(_0x171de0(0x17c))/0x2+-parseInt(_0x171de0(0x16f))/0x3*(parseInt(_0x171de0(0x1b1))/0x4)+parseInt(_0x171de0(0x1b4))/0x5*(-parseInt(_0x171de0(0x175))/0x6)+parseInt(_0x171de0(0x190))/0x7*(-parseInt(_0x171de0(0x173))/0x8)+parseInt(_0x171de0(0x1b5))/0x9*(parseInt(_0x171de0(0x15f))/0xa)+parseInt(_0x171de0(0x1ad))/0xb;if(_0x46ded1===_0x3a3ab7)break;else _0x2720b1['push'](_0x2720b1['shift']());}catch(_0x3667a0){_0x2720b1['push'](_0x2720b1['shift']());}}}(_0x1596,0x48704));import{Plugin as _0x46265d}from'ckeditor5/src/core.js';function _0x2a60(_0x4de842,_0xc7de41){const _0x159654=_0x1596();return _0x2a60=function(_0x2a6036,_0x2b06d2){_0x2a6036=_0x2a6036-0x149;let _0x454cff=_0x159654[_0x2a6036];return _0x454cff;},_0x2a60(_0x4de842,_0xc7de41);}import{version as _0x60b3f1}from'ckeditor5/src/utils.js';import{Users as _0x2c6d6a}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x2d600c}from'../realtimecollaborativeediting/realtimecollaborationclient.js';function _0x1596(){const _0x31a1a1=['_revisionDataBuilder','marker','setSource','RevisionTracker','code','RevisionHistoryService','CloudServicesRevisionHistoryAdapter','authorsIds','bind','_revisionTracker','config','editor','_bufferUpdate','_oldOffset','_isConnected','reverse','cloud-services-internal-error:\x20Not\x20connected.','baseVersion','_lastRequestId','16758RHhOdl','_isPendingUpdate','diffData','fromVersion','off','collaboration.channelId','length','repository','_fixRevision','getUser','isEmptyCurrent','buildRevisionData','get','_revisionHistoryService','message','addUser','_handleReconnectionError','type','_createCurrentRevision','CONNECTED','getRevision','startsWith','_handleRevisionsUpdate','getRevisions','_preventResendingRevisionData','addRevisionData','requires','affectsData','_fetchMissingUsers','8273760RlMZZO','sendBufferedUpdates','isOfficialPlugin','cloudServices.bundleVersion','302108MJGzCj','isConnected','setRevisionData','165UTlbQS','333hYsqFK','isPremiumPlugin','size','isEnabled','once','updateRevisions','sessionId','_revisions','_getLatestVersion','addToReconnectionStack','connected','adapter','listenTo','400','keys','isBundleUploaded','reInit','_offset','currentRevision','pluginName','connect','_bufferedUpdates','change:_isConnected','state','catch','revisionsUpdated','191286RTUxiV','connection','RevisionHistory','creatorId','authors','32990gtwdmy','_update','getMany','map','data','_getLatestVersionFromServerOperations','_startingVersion','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','add','then','wrongRequestId','_waitForServiceReady','toVersion','destroy','createdAt','has','9bWzqFu','getOperations','cloud-services-internal-error:\x20Request\x20timeout.','change:_isPendingUpdate','608xTfyth','serverHistory','91446xeOfNW','init','from','remove','reconnect','max','plugins','1050498ytYHhN'];_0x1596=function(){return _0x31a1a1;};return _0x1596();}import{WebSocketGateway as _0xf21e9c}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x37faca}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x382d55,RevisionHistoryService as _0xd69165,User as _0x59023e,WEB_SOCKET_GATEWAY_STATES as _0x3aa09e}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x46265d{static [_0x669d2d(0x182)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0xd69165)());[_0x669d2d(0x18f)];[_0x669d2d(0x186)];[_0x669d2d(0x19d)];[_0x669d2d(0x18a)];static get[_0x669d2d(0x1aa)](){const _0x4c8886=_0x669d2d;return[_0xf21e9c,_0x2d600c,_0x4c8886(0x15c),_0x37faca,_0x2c6d6a];}static get[_0x669d2d(0x153)](){const _0x553b96=_0x669d2d;return _0x553b96(0x183);}static get[_0x669d2d(0x1af)](){return!0x0;}static get[_0x669d2d(0x1b6)](){return!0x0;}constructor(_0x1aa26f){const _0xb61d91=_0x669d2d;super(_0x1aa26f);const _0x491cdc=this[_0xb61d91(0x188)][_0xb61d91(0x187)][_0xb61d91(0x19c)](_0xb61d91(0x195));this[_0xb61d91(0x18f)]=null,this[_0xb61d91(0x186)]=this[_0xb61d91(0x188)][_0xb61d91(0x17b)][_0xb61d91(0x19c)](_0xb61d91(0x180)),this[_0xb61d91(0x19d)]=new CloudServicesRevisionHistoryAdapter[(_0xb61d91(0x182))](_0x491cdc);}async[_0x669d2d(0x176)](){const _0x571303=_0x669d2d,_0x4a372f=this[_0x571303(0x188)][_0x571303(0x17b)][_0x571303(0x19c)](_0x2d600c),_0x787247=_0x4a372f[_0x571303(0x174)],_0x584c5c=this[_0x571303(0x188)][_0x571303(0x17b)][_0x571303(0x19c)](_0xf21e9c);this[_0x571303(0x186)][_0x571303(0x17f)]({'history':_0x787247,'getLatestVersion':()=>this[_0x571303(0x1bd)](),'getCurrentRevisionId':()=>_0x4a372f[_0x571303(0x1bb)]});const _0xb21c74=this[_0x571303(0x188)][_0x571303(0x187)][_0x571303(0x19c)](_0x571303(0x1b0))||_0x60b3f1,_0x135a93=await _0x382d55[_0x571303(0x14f)](_0x584c5c[_0x571303(0x15b)],_0xb21c74);this[_0x571303(0x188)][_0x571303(0x17b)][_0x571303(0x19c)](_0x571303(0x15c))[_0x571303(0x14b)]={'getRevision':async({revisionId:_0x279003})=>(await this[_0x571303(0x16a)](),await this[_0x571303(0x19d)][_0x571303(0x1a4)](_0x279003)),'updateRevisions':async _0x4df327=>{const _0x552163=_0x571303;await this[_0x552163(0x16a)]();const _0xd2ed59=this[_0x552163(0x186)][_0x552163(0x152)];if(_0x135a93&&0x1===_0x4df327[_0x552163(0x196)]&&_0x4df327[0x0]['id']===_0xd2ed59['id'])return _0x4df327;for(const _0x1e21b1 of _0x4df327)_0x1e21b1['id']===_0xd2ed59['id']&&(_0x1e21b1[_0x552163(0x19a)]=_0x1e21b1[_0x552163(0x193)]===_0x1e21b1[_0x552163(0x16b)]);return this[_0x552163(0x19d)][_0x552163(0x1ba)](_0x4df327,this[_0x552163(0x18f)])[_0x552163(0x168)](_0x56218b=>(this[_0x552163(0x18f)]=_0x56218b,_0x4df327))[_0x552163(0x158)](_0xfe2fba=>{const _0x1b5516=_0x552163;if(st(_0xfe2fba)||_0x1b5516(0x14d)===_0xfe2fba[_0x1b5516(0x181)]&&void 0x0!==_0xfe2fba[_0x1b5516(0x163)][_0x1b5516(0x169)]){for(const _0x4b79d2 of _0x4df327){!this[_0x1b5516(0x186)][_0x1b5516(0x197)][_0x1b5516(0x1a4)](_0x4b79d2['id'])||this[_0x1b5516(0x186)][_0x1b5516(0x189)](_0x4b79d2['id'],_0x4b79d2,!0x1);}if(st(_0xfe2fba))throw _0xfe2fba;return _0x4df327;}throw _0xfe2fba;});}},this[_0x571303(0x14c)](this[_0x571303(0x19d)],_0x571303(0x159),(_0x17b5ba,{revisionsData:_0x1362b6,requestId:_0x2aff49})=>{const _0x51a92d=_0x571303;Math[_0x51a92d(0x17a)](..._0x1362b6[_0x51a92d(0x162)](_0x1ccf9d=>_0x1ccf9d[_0x51a92d(0x16b)]))>this[_0x51a92d(0x164)]()-0x1?this[_0x51a92d(0x1bd)]()[_0x51a92d(0x168)](()=>{const _0x5a2cc1=_0x51a92d;this[_0x5a2cc1(0x1a6)](_0x1362b6,_0x2aff49);}):this[_0x51a92d(0x1a6)](_0x1362b6,_0x2aff49);});const {revisions:_0xd944f8,requestId:_0xc235fb}=await this[_0x571303(0x19d)][_0x571303(0x154)](_0x584c5c[_0x571303(0x15b)]);_0x584c5c[_0x571303(0x149)](this),this[_0x571303(0x18f)]=_0xc235fb,await this[_0x571303(0x1ac)](_0xd944f8);for(const _0x96b840 of _0xd944f8)this[_0x571303(0x186)][_0x571303(0x1a9)](_0x96b840);this[_0x571303(0x14c)](_0x4a372f,_0x571303(0x156),(_0x45e4ef,_0x49dcf5,_0x3d207f)=>{const _0x315fac=_0x571303;_0x3d207f&&(this[_0x315fac(0x18a)]=_0x4a372f[_0x315fac(0x151)],_0x45e4ef[_0x315fac(0x194)]());}),this[_0x571303(0x186)][_0x571303(0x185)](_0x571303(0x1b8))['to'](_0x584c5c,_0x571303(0x157),_0x4c0fbd=>_0x4c0fbd===_0x3aa09e[_0x571303(0x1a3)]);}async[_0x669d2d(0x179)](){const _0x4f099c=_0x669d2d,_0x38f597=this[_0x4f099c(0x188)][_0x4f099c(0x17b)][_0x4f099c(0x19c)](_0xf21e9c),_0x501fca=this[_0x4f099c(0x188)][_0x4f099c(0x17b)][_0x4f099c(0x19c)](_0x2d600c),_0x51424b=async()=>{const _0x21c32e=_0x4f099c,_0x11b177=this[_0x21c32e(0x186)][_0x21c32e(0x152)],_0x38903c=_0x11b177['id'],_0x4a2f11=_0x38903c!==_0x501fca[_0x21c32e(0x1bb)];if(_0x4a2f11){const _0x5580b2=_0x501fca[_0x21c32e(0x151)]-this[_0x21c32e(0x18a)],_0x286752=this[_0x21c32e(0x164)]();this[_0x21c32e(0x186)][_0x21c32e(0x17d)][_0x21c32e(0x150)]();if(_0x11b177[_0x21c32e(0x16b)]+_0x5580b2!==_0x286752){const _0x42bac3=_0x11b177[_0x21c32e(0x193)]+_0x5580b2,_0x38fb53=this[_0x21c32e(0x188)][_0x21c32e(0x17b)][_0x21c32e(0x19c)](_0x2c6d6a),_0xc972a1=this[_0x21c32e(0x186)][_0x21c32e(0x19b)]({'revision':_0x11b177,'from':_0x42bac3,'to':_0x286752});_0xc972a1['id']=_0x11b177['id'];const _0xd61143=_0xc972a1[_0x21c32e(0x184)][_0x21c32e(0x162)](_0x842c19=>_0x38fb53[_0x21c32e(0x199)](_0x842c19));_0x11b177[_0x21c32e(0x160)]({..._0xc972a1,'authors':_0xd61143},!0x0),this[_0x21c32e(0x186)][_0x21c32e(0x189)](_0x11b177['id'],_0xc972a1,!0x0);}this[_0x21c32e(0x186)][_0x21c32e(0x165)]=_0x286752,(_0x11b177[_0x21c32e(0x16b)]===_0x11b177[_0x21c32e(0x193)]&&!this[_0x21c32e(0x186)][_0x21c32e(0x155)][_0x21c32e(0x16e)](_0x38903c)&&this[_0x21c32e(0x186)][_0x21c32e(0x197)][_0x21c32e(0x1bc)][_0x21c32e(0x178)](_0x38903c),this[_0x21c32e(0x186)][_0x21c32e(0x1a2)](_0x286752));}const {revisions:_0x33439c,requestId:_0x40fda5}=await this[_0x21c32e(0x19d)][_0x21c32e(0x179)](_0x38f597[_0x21c32e(0x15b)],this[_0x21c32e(0x18f)]);_0x4a2f11&&_0x33439c[_0x21c32e(0x196)]>0x0?_0x501fca[_0x21c32e(0x1a0)]():(await this[_0x21c32e(0x1ac)](_0x33439c),this[_0x21c32e(0x1a6)](_0x33439c,_0x40fda5),this[_0x21c32e(0x186)][_0x21c32e(0x1ae)]());};return _0x501fca[_0x4f099c(0x18b)]?_0x51424b():new Promise((_0x148158,_0x1eee76)=>{const _0x2999f3=_0x4f099c;_0x501fca[_0x2999f3(0x1b9)](_0x2999f3(0x156),()=>{const _0x2428c2=_0x2999f3;_0x51424b()[_0x2428c2(0x168)](_0x148158)[_0x2428c2(0x158)](_0x1eee76);});});}[_0x669d2d(0x16c)](){const _0x59163c=_0x669d2d;super[_0x59163c(0x16c)]();}async[_0x669d2d(0x16a)](){const _0x167569=_0x669d2d;this[_0x167569(0x19d)][_0x167569(0x1b2)]||await new Promise(_0x2bb860=>{const _0x1ee107=_0x167569;this[_0x1ee107(0x14c)](this[_0x1ee107(0x19d)],_0x1ee107(0x14a),_0x239772=>{const _0x2bcabe=_0x1ee107;_0x239772[_0x2bcabe(0x194)](),_0x2bb860();});});}[_0x669d2d(0x164)](){const _0x4f294c=_0x669d2d,_0x39e24c=this[_0x4f294c(0x188)][_0x4f294c(0x17b)][_0x4f294c(0x19c)](_0x2d600c)[_0x4f294c(0x174)][_0x4f294c(0x170)]()[_0x4f294c(0x18c)]();for(const _0x4d6f55 of _0x39e24c)if(_0x4f294c(0x17e)!==_0x4d6f55[_0x4f294c(0x1a1)]||_0x4d6f55[_0x4f294c(0x1ab)])return _0x4d6f55[_0x4f294c(0x18e)]+0x1;}[_0x669d2d(0x1bd)](){const _0x51d00d=_0x669d2d,_0x479ff3=this[_0x51d00d(0x188)][_0x51d00d(0x17b)][_0x51d00d(0x19c)](_0x2d600c);return new Promise(_0x1ce600=>{const _0x55a012=_0x51d00d;_0x479ff3[_0x55a012(0x191)]?_0x479ff3[_0x55a012(0x1b9)](_0x55a012(0x172),()=>{const _0x2c7d0f=_0x55a012;_0x1ce600(this[_0x2c7d0f(0x164)]());}):_0x1ce600(this[_0x55a012(0x164)]());});}[_0x669d2d(0x1a6)](_0x1d69b2,_0xce2ff6){const _0x223dae=_0x669d2d,_0x17c434=this[_0x223dae(0x186)][_0x223dae(0x197)];this[_0x223dae(0x18f)]=_0xce2ff6;for(const _0xda7903 of _0x1d69b2){const _0xf9cab7=_0x17c434[_0x223dae(0x1a4)](_0xda7903['id']);if(_0xf9cab7){if((_0xda7903[_0x223dae(0x193)]||_0xda7903[_0x223dae(0x16b)])&&(_0xda7903[_0x223dae(0x192)]=null),_0xf9cab7===this[_0x223dae(0x186)][_0x223dae(0x152)]){const _0x3afc7f=Math[_0x223dae(0x17a)](_0xf9cab7[_0x223dae(0x16b)],_0xda7903[_0x223dae(0x16b)]),_0x42cc7a=Math[_0x223dae(0x17a)](_0xf9cab7[_0x223dae(0x193)],_0xda7903[_0x223dae(0x193)]);let _0x444eaf;_0xf9cab7[_0x223dae(0x16b)]===_0xda7903[_0x223dae(0x16b)]&&_0xf9cab7[_0x223dae(0x193)]===_0xda7903[_0x223dae(0x193)]?(_0x444eaf=!0x0,this[_0x223dae(0x1a8)](_0xda7903)):_0xda7903[_0x223dae(0x16b)]===_0x3afc7f&&_0xda7903[_0x223dae(0x193)]===_0x42cc7a?_0x444eaf=!0x1:(_0xf9cab7[_0x223dae(0x16b)]===_0x3afc7f&&_0xf9cab7[_0x223dae(0x193)]===_0x42cc7a||this[_0x223dae(0x198)]({'revision':_0xf9cab7,'from':_0x42cc7a,'to':_0x3afc7f}),_0x444eaf=!0x0),_0x444eaf&&(delete _0xda7903[_0x223dae(0x193)],delete _0xda7903[_0x223dae(0x16b)],delete _0xda7903[_0x223dae(0x192)],delete _0xda7903[_0x223dae(0x16d)],delete _0xda7903[_0x223dae(0x184)]);}this[_0x223dae(0x186)][_0x223dae(0x1b3)](_0xda7903),this[_0x223dae(0x1a8)](_0xda7903);}else this[_0x223dae(0x186)][_0x223dae(0x1a9)](_0xda7903);}const _0x4454d2=_0x17c434[_0x223dae(0x1a7)]();_0x4454d2[_0x223dae(0x18c)]();for(let _0x4d5dfa=0x0;_0x4d5dfa<_0x4454d2[_0x223dae(0x196)]-0x1;_0x4d5dfa++){const _0x5b0f62=_0x4454d2[_0x4d5dfa],_0x170dff=_0x4454d2[_0x4d5dfa+0x1];if(_0x5b0f62[_0x223dae(0x193)]<_0x170dff[_0x223dae(0x16b)]){const _0x277cd5=_0x170dff[_0x223dae(0x16b)],_0x589fd2=Math[_0x223dae(0x17a)](_0x277cd5,_0x5b0f62[_0x223dae(0x16b)]);this[_0x223dae(0x198)]({'revision':_0x5b0f62,'from':_0x277cd5,'to':_0x589fd2});}}}[_0x669d2d(0x198)]({revision:_0x5b6df8,from:_0x49e95a,to:_0x1bd24f}={}){const _0xee90a8=_0x669d2d,_0x753f8d=this[_0xee90a8(0x188)][_0xee90a8(0x17b)][_0xee90a8(0x19c)](_0x2c6d6a),_0x4d2966=this[_0xee90a8(0x186)][_0xee90a8(0x19b)]({'revision':_0x5b6df8,'from':_0x49e95a,'to':_0x1bd24f});_0x4d2966[_0xee90a8(0x15e)]=_0x4d2966[_0xee90a8(0x184)][_0xee90a8(0x162)](_0xc3a518=>_0x753f8d[_0xee90a8(0x199)](_0xc3a518)),_0x5b6df8[_0xee90a8(0x160)](_0x4d2966);}[_0x669d2d(0x1a8)](_0x2fe5d3){const _0x16c900=_0x669d2d,_0x2c4b9c={};_0x2c4b9c['id']=_0x2fe5d3['id'];for(const _0x1dd60c of Object[_0x16c900(0x14e)](_0x2fe5d3))'id'!==_0x1dd60c&&(_0x2c4b9c[_0x1dd60c]=void 0x0);this[_0x16c900(0x186)][_0x16c900(0x189)](_0x2c4b9c['id'],_0x2c4b9c,!0x0);}async[_0x669d2d(0x1ac)](_0x54dbc9){const _0x5879a8=_0x669d2d,_0x1cfd7c=this[_0x5879a8(0x188)][_0x5879a8(0x17b)][_0x5879a8(0x19c)](_0x2c6d6a),{connection:_0x9b29d3}=this[_0x5879a8(0x188)][_0x5879a8(0x17b)][_0x5879a8(0x19c)](_0xf21e9c),_0x19f110=new Set();for(const _0x3323e of _0x54dbc9){for(const _0xa3bfe3 of _0x3323e[_0x5879a8(0x184)])_0x1955ba(_0xa3bfe3);_0x3323e[_0x5879a8(0x15d)]&&_0x1955ba(_0x3323e[_0x5879a8(0x15d)]);}if(0x0===_0x19f110[_0x5879a8(0x1b7)])return;const _0x2b8d01=await _0x59023e[_0x5879a8(0x161)](_0x9b29d3,Array[_0x5879a8(0x177)](_0x19f110));for(const _0x330ddc of _0x2b8d01)_0x1cfd7c[_0x5879a8(0x199)](_0x330ddc['id'])||_0x1cfd7c[_0x5879a8(0x19f)](_0x330ddc);function _0x1955ba(_0x48f862){const _0x2aa0e1=_0x5879a8;_0x1cfd7c[_0x2aa0e1(0x199)](_0x48f862)||_0x19f110[_0x2aa0e1(0x167)](_0x48f862);}}}function st(_0x2acfc2){const _0x35b280=_0x669d2d;return _0x2acfc2[_0x35b280(0x19e)][_0x35b280(0x1a5)](_0x35b280(0x166))||_0x2acfc2[_0x35b280(0x19e)][_0x35b280(0x1a5)](_0x35b280(0x18d))||_0x2acfc2[_0x35b280(0x19e)][_0x35b280(0x1a5)](_0x35b280(0x171));}
23
+ const _0x1c76ab=_0x4e54;(function(_0x212591,_0x533492){const _0x3ef555=_0x4e54,_0x2ca8f9=_0x212591();while(!![]){try{const _0x11118d=-parseInt(_0x3ef555(0x143))/0x1+parseInt(_0x3ef555(0x142))/0x2*(parseInt(_0x3ef555(0x149))/0x3)+-parseInt(_0x3ef555(0x165))/0x4+-parseInt(_0x3ef555(0x150))/0x5+-parseInt(_0x3ef555(0x141))/0x6+-parseInt(_0x3ef555(0x163))/0x7+-parseInt(_0x3ef555(0x194))/0x8*(-parseInt(_0x3ef555(0x183))/0x9);if(_0x11118d===_0x533492)break;else _0x2ca8f9['push'](_0x2ca8f9['shift']());}catch(_0x52e57a){_0x2ca8f9['push'](_0x2ca8f9['shift']());}}}(_0x3ad6,0x349ed));import{Plugin as _0x4dcbaf}from'ckeditor5/src/core.js';import{version as _0x2b37c9}from'ckeditor5/src/utils.js';function _0x3ad6(){const _0x4d7b4c=['isOfficialPlugin','wrongRequestId','RevisionHistoryService','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','sendBufferedUpdates','message','getOperations','_bufferedUpdates','_getLatestVersion','1803402qedzNq','2NOZrBL','407349aHvTqu','state','type','max','editor','change:_isPendingUpdate','805773irOqOW','pluginName','change:_isConnected','remove','currentRevision','reverse','plugins','1333780vaSFDu','then','listenTo','fromVersion','from','isEmptyCurrent','has','RevisionHistory','bind','_fetchMissingUsers','off','destroy','buildRevisionData','_createCurrentRevision','startsWith','_isPendingUpdate','_revisions','revisionsUpdated','getRevision','1312458EWHDfK','requires','1129224RxuHlz','once','CloudServicesRevisionHistoryAdapter','updateRevisions','map','_startingVersion','isConnected','size','_lastRequestId','getRevisions','_bufferUpdate','data','cloud-services-internal-error:\x20Request\x20timeout.','isEnabled','addRevisionData','serverHistory','_handleReconnectionError','createdAt','config','collaboration.channelId','_revisionDataBuilder','_revisionTracker','connected','add','baseVersion','_isConnected','_fixRevision','affectsData','connection','adapter','40266htyBqD','_getLatestVersionFromServerOperations','code','length','setSource','connect','reconnect','_revisionHistoryService','catch','isBundleUploaded','marker','cloud-services-internal-error:\x20Not\x20connected.','toVersion','400','_update','getUser','diffData','2488nlskBf','addUser','isPremiumPlugin','CONNECTED','_waitForServiceReady','authors','authorsIds','init','_oldOffset','RevisionTracker','repository','getMany','_offset','_handleRevisionsUpdate','cloudServices.bundleVersion','creatorId','get','addToReconnectionStack','reInit','setRevisionData','_preventResendingRevisionData','keys','sessionId'];_0x3ad6=function(){return _0x4d7b4c;};return _0x3ad6();}import{Users as _0x391f77}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x85fb36}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0xd7862f}from'../realtimecollaborativeediting/websocketgateway.js';function _0x4e54(_0x4d54be,_0x56d002){const _0x3ad696=_0x3ad6();return _0x4e54=function(_0x4e5489,_0x433038){_0x4e5489=_0x4e5489-0x126;let _0x5555a6=_0x3ad696[_0x4e5489];return _0x5555a6;},_0x4e54(_0x4d54be,_0x56d002);}import{Sessions as _0x4d7faf}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x41ba5d,RevisionHistoryService as _0x1f6375,User as _0x28ebe3,WEB_SOCKET_GATEWAY_STATES as _0x1dccc6}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x4dcbaf{static [_0x1c76ab(0x13a)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x1f6375)());[_0x1c76ab(0x16d)];[_0x1c76ab(0x17a)];[_0x1c76ab(0x18a)];[_0x1c76ab(0x129)];static get[_0x1c76ab(0x164)](){const _0x21a448=_0x1c76ab;return[_0xd7862f,_0x85fb36,_0x21a448(0x157),_0x4d7faf,_0x391f77];}static get[_0x1c76ab(0x14a)](){const _0x5d5a14=_0x1c76ab;return _0x5d5a14(0x167);}static get[_0x1c76ab(0x138)](){return!0x0;}static get[_0x1c76ab(0x196)](){return!0x0;}constructor(_0x5061ac){const _0x25ec42=_0x1c76ab;super(_0x5061ac);const _0xf818a6=this[_0x25ec42(0x147)][_0x25ec42(0x177)][_0x25ec42(0x131)](_0x25ec42(0x178));this[_0x25ec42(0x16d)]=null,this[_0x25ec42(0x17a)]=this[_0x25ec42(0x147)][_0x25ec42(0x14f)][_0x25ec42(0x131)](_0x25ec42(0x12a)),this[_0x25ec42(0x18a)]=new CloudServicesRevisionHistoryAdapter[(_0x25ec42(0x13a))](_0xf818a6);}async[_0x1c76ab(0x128)](){const _0x4aaf77=_0x1c76ab,_0x174c72=this[_0x4aaf77(0x147)][_0x4aaf77(0x14f)][_0x4aaf77(0x131)](_0x85fb36),_0xae7cee=_0x174c72[_0x4aaf77(0x174)],_0x489bfe=this[_0x4aaf77(0x147)][_0x4aaf77(0x14f)][_0x4aaf77(0x131)](_0xd7862f);this[_0x4aaf77(0x17a)][_0x4aaf77(0x187)]({'history':_0xae7cee,'getLatestVersion':()=>this[_0x4aaf77(0x140)](),'getCurrentRevisionId':()=>_0x174c72[_0x4aaf77(0x137)]});const _0x5bef44=this[_0x4aaf77(0x147)][_0x4aaf77(0x177)][_0x4aaf77(0x131)](_0x4aaf77(0x12f))||_0x2b37c9,_0x5e58c9=await _0x41ba5d[_0x4aaf77(0x18c)](_0x489bfe[_0x4aaf77(0x181)],_0x5bef44);this[_0x4aaf77(0x147)][_0x4aaf77(0x14f)][_0x4aaf77(0x131)](_0x4aaf77(0x157))[_0x4aaf77(0x182)]={'getRevision':async({revisionId:_0x1330ae})=>(await this[_0x4aaf77(0x198)](),await this[_0x4aaf77(0x18a)][_0x4aaf77(0x162)](_0x1330ae)),'updateRevisions':async _0x265c65=>{const _0x5c17ca=_0x4aaf77;await this[_0x5c17ca(0x198)]();const _0xa60969=this[_0x5c17ca(0x17a)][_0x5c17ca(0x14d)];if(_0x5e58c9&&0x1===_0x265c65[_0x5c17ca(0x186)]&&_0x265c65[0x0]['id']===_0xa60969['id'])return _0x265c65;for(const _0xd8e13b of _0x265c65)_0xd8e13b['id']===_0xa60969['id']&&(_0xd8e13b[_0x5c17ca(0x155)]=_0xd8e13b[_0x5c17ca(0x153)]===_0xd8e13b[_0x5c17ca(0x18f)]);return this[_0x5c17ca(0x18a)][_0x5c17ca(0x168)](_0x265c65,this[_0x5c17ca(0x16d)])[_0x5c17ca(0x151)](_0xaa282a=>(this[_0x5c17ca(0x16d)]=_0xaa282a,_0x265c65))[_0x5c17ca(0x18b)](_0x163ab6=>{const _0x4282a4=_0x5c17ca;if(_(_0x163ab6)||_0x4282a4(0x190)===_0x163ab6[_0x4282a4(0x185)]&&void 0x0!==_0x163ab6[_0x4282a4(0x170)][_0x4282a4(0x139)]){for(const _0x157df9 of _0x265c65){!this[_0x4282a4(0x17a)][_0x4282a4(0x12b)][_0x4282a4(0x162)](_0x157df9['id'])||this[_0x4282a4(0x17a)][_0x4282a4(0x16f)](_0x157df9['id'],_0x157df9,!0x1);}if(_(_0x163ab6))throw _0x163ab6;return _0x265c65;}throw _0x163ab6;});}},this[_0x4aaf77(0x152)](this[_0x4aaf77(0x18a)],_0x4aaf77(0x161),(_0x3a9738,{revisionsData:_0x418eeb,requestId:_0x2afad2})=>{const _0x1d647e=_0x4aaf77;Math[_0x1d647e(0x146)](..._0x418eeb[_0x1d647e(0x169)](_0x4268ce=>_0x4268ce[_0x1d647e(0x18f)]))>this[_0x1d647e(0x184)]()-0x1?this[_0x1d647e(0x140)]()[_0x1d647e(0x151)](()=>{const _0x2393d2=_0x1d647e;this[_0x2393d2(0x12e)](_0x418eeb,_0x2afad2);}):this[_0x1d647e(0x12e)](_0x418eeb,_0x2afad2);});const {revisions:_0x4a1291,requestId:_0x652a3d}=await this[_0x4aaf77(0x18a)][_0x4aaf77(0x188)](_0x489bfe[_0x4aaf77(0x181)]);_0x489bfe[_0x4aaf77(0x132)](this),this[_0x4aaf77(0x16d)]=_0x652a3d,await this[_0x4aaf77(0x159)](_0x4a1291);for(const _0x4e5b09 of _0x4a1291)this[_0x4aaf77(0x17a)][_0x4aaf77(0x173)](_0x4e5b09);this[_0x4aaf77(0x152)](_0x174c72,_0x4aaf77(0x14b),(_0x2ab5ba,_0x5aab73,_0x1f6f88)=>{const _0x4c53e4=_0x4aaf77;_0x1f6f88&&(this[_0x4c53e4(0x129)]=_0x174c72[_0x4c53e4(0x12d)],_0x2ab5ba[_0x4c53e4(0x15a)]());}),this[_0x4aaf77(0x17a)][_0x4aaf77(0x158)](_0x4aaf77(0x172))['to'](_0x489bfe,_0x4aaf77(0x144),_0x474d29=>_0x474d29===_0x1dccc6[_0x4aaf77(0x197)]);}async[_0x1c76ab(0x189)](){const _0x18812e=_0x1c76ab,_0xc677c4=this[_0x18812e(0x147)][_0x18812e(0x14f)][_0x18812e(0x131)](_0xd7862f),_0x142d23=this[_0x18812e(0x147)][_0x18812e(0x14f)][_0x18812e(0x131)](_0x85fb36),_0x5a9f0e=async()=>{const _0x358ecd=_0x18812e,_0x153184=this[_0x358ecd(0x17a)][_0x358ecd(0x14d)],_0x18076e=_0x153184['id'],_0x3bd5a9=_0x18076e!==_0x142d23[_0x358ecd(0x137)];if(_0x3bd5a9){const _0x49a13f=_0x142d23[_0x358ecd(0x12d)]-this[_0x358ecd(0x129)],_0x151b26=this[_0x358ecd(0x184)]();this[_0x358ecd(0x17a)][_0x358ecd(0x179)][_0x358ecd(0x133)]();if(_0x153184[_0x358ecd(0x18f)]+_0x49a13f!==_0x151b26){const _0x228903=_0x153184[_0x358ecd(0x153)]+_0x49a13f,_0x479f69=this[_0x358ecd(0x147)][_0x358ecd(0x14f)][_0x358ecd(0x131)](_0x391f77),_0x469a51=this[_0x358ecd(0x17a)][_0x358ecd(0x15c)]({'revision':_0x153184,'from':_0x228903,'to':_0x151b26});_0x469a51['id']=_0x153184['id'];const _0x205dcb=_0x469a51[_0x358ecd(0x127)][_0x358ecd(0x169)](_0x2480c=>_0x479f69[_0x358ecd(0x192)](_0x2480c));_0x153184[_0x358ecd(0x191)]({..._0x469a51,'authors':_0x205dcb},!0x0),this[_0x358ecd(0x17a)][_0x358ecd(0x16f)](_0x153184['id'],_0x469a51,!0x0);}this[_0x358ecd(0x17a)][_0x358ecd(0x16a)]=_0x151b26,(_0x153184[_0x358ecd(0x18f)]===_0x153184[_0x358ecd(0x153)]&&!this[_0x358ecd(0x17a)][_0x358ecd(0x13f)][_0x358ecd(0x156)](_0x18076e)&&this[_0x358ecd(0x17a)][_0x358ecd(0x12b)][_0x358ecd(0x160)][_0x358ecd(0x14c)](_0x18076e),this[_0x358ecd(0x17a)][_0x358ecd(0x15d)](_0x151b26));}const {revisions:_0x5c88fd,requestId:_0x8af4ba}=await this[_0x358ecd(0x18a)][_0x358ecd(0x189)](_0xc677c4[_0x358ecd(0x181)],this[_0x358ecd(0x16d)]);_0x3bd5a9&&_0x5c88fd[_0x358ecd(0x186)]>0x0?_0x142d23[_0x358ecd(0x175)]():(await this[_0x358ecd(0x159)](_0x5c88fd),this[_0x358ecd(0x12e)](_0x5c88fd,_0x8af4ba),this[_0x358ecd(0x17a)][_0x358ecd(0x13c)]());};return _0x142d23[_0x18812e(0x17e)]?_0x5a9f0e():new Promise((_0x10c8fe,_0x3bcdfe)=>{const _0x2bd1b4=_0x18812e;_0x142d23[_0x2bd1b4(0x166)](_0x2bd1b4(0x14b),()=>{const _0x580339=_0x2bd1b4;_0x5a9f0e()[_0x580339(0x151)](_0x10c8fe)[_0x580339(0x18b)](_0x3bcdfe);});});}[_0x1c76ab(0x15b)](){const _0x5a9f04=_0x1c76ab;super[_0x5a9f04(0x15b)]();}async[_0x1c76ab(0x198)](){const _0x27e8ea=_0x1c76ab;this[_0x27e8ea(0x18a)][_0x27e8ea(0x16b)]||await new Promise(_0x46bf3e=>{const _0x5527a5=_0x27e8ea;this[_0x5527a5(0x152)](this[_0x5527a5(0x18a)],_0x5527a5(0x17b),_0x122d9d=>{const _0x2180e4=_0x5527a5;_0x122d9d[_0x2180e4(0x15a)](),_0x46bf3e();});});}[_0x1c76ab(0x184)](){const _0x5bacd9=_0x1c76ab,_0x27b2ed=this[_0x5bacd9(0x147)][_0x5bacd9(0x14f)][_0x5bacd9(0x131)](_0x85fb36)[_0x5bacd9(0x174)][_0x5bacd9(0x13e)]()[_0x5bacd9(0x14e)]();for(const _0x27b60f of _0x27b2ed)if(_0x5bacd9(0x18d)!==_0x27b60f[_0x5bacd9(0x145)]||_0x27b60f[_0x5bacd9(0x180)])return _0x27b60f[_0x5bacd9(0x17d)]+0x1;}[_0x1c76ab(0x140)](){const _0x1bf5ca=_0x1c76ab,_0x56ed3a=this[_0x1bf5ca(0x147)][_0x1bf5ca(0x14f)][_0x1bf5ca(0x131)](_0x85fb36);return new Promise(_0x5899fb=>{const _0x1af024=_0x1bf5ca;_0x56ed3a[_0x1af024(0x15f)]?_0x56ed3a[_0x1af024(0x166)](_0x1af024(0x148),()=>{const _0x29205f=_0x1af024;_0x5899fb(this[_0x29205f(0x184)]());}):_0x5899fb(this[_0x1af024(0x184)]());});}[_0x1c76ab(0x12e)](_0x53ac2e,_0x2520ef){const _0xfda9df=_0x1c76ab,_0x35f6b6=this[_0xfda9df(0x17a)][_0xfda9df(0x12b)];this[_0xfda9df(0x16d)]=_0x2520ef;for(const _0x11c6b4 of _0x53ac2e){const _0x5e787b=_0x35f6b6[_0xfda9df(0x162)](_0x11c6b4['id']);if(_0x5e787b){if((_0x11c6b4[_0xfda9df(0x153)]||_0x11c6b4[_0xfda9df(0x18f)])&&(_0x11c6b4[_0xfda9df(0x193)]=null),_0x5e787b===this[_0xfda9df(0x17a)][_0xfda9df(0x14d)]){const _0x4983c5=Math[_0xfda9df(0x146)](_0x5e787b[_0xfda9df(0x18f)],_0x11c6b4[_0xfda9df(0x18f)]),_0x24ec7d=Math[_0xfda9df(0x146)](_0x5e787b[_0xfda9df(0x153)],_0x11c6b4[_0xfda9df(0x153)]);let _0x1c3858;_0x5e787b[_0xfda9df(0x18f)]===_0x11c6b4[_0xfda9df(0x18f)]&&_0x5e787b[_0xfda9df(0x153)]===_0x11c6b4[_0xfda9df(0x153)]?(_0x1c3858=!0x0,this[_0xfda9df(0x135)](_0x11c6b4)):_0x11c6b4[_0xfda9df(0x18f)]===_0x4983c5&&_0x11c6b4[_0xfda9df(0x153)]===_0x24ec7d?_0x1c3858=!0x1:(_0x5e787b[_0xfda9df(0x18f)]===_0x4983c5&&_0x5e787b[_0xfda9df(0x153)]===_0x24ec7d||this[_0xfda9df(0x17f)]({'revision':_0x5e787b,'from':_0x24ec7d,'to':_0x4983c5}),_0x1c3858=!0x0),_0x1c3858&&(delete _0x11c6b4[_0xfda9df(0x153)],delete _0x11c6b4[_0xfda9df(0x18f)],delete _0x11c6b4[_0xfda9df(0x193)],delete _0x11c6b4[_0xfda9df(0x176)],delete _0x11c6b4[_0xfda9df(0x127)]);}this[_0xfda9df(0x17a)][_0xfda9df(0x134)](_0x11c6b4),this[_0xfda9df(0x135)](_0x11c6b4);}else this[_0xfda9df(0x17a)][_0xfda9df(0x173)](_0x11c6b4);}const _0x47045a=_0x35f6b6[_0xfda9df(0x16e)]();_0x47045a[_0xfda9df(0x14e)]();for(let _0x2f1233=0x0;_0x2f1233<_0x47045a[_0xfda9df(0x186)]-0x1;_0x2f1233++){const _0x21441d=_0x47045a[_0x2f1233],_0x4e0fbe=_0x47045a[_0x2f1233+0x1];if(_0x21441d[_0xfda9df(0x153)]<_0x4e0fbe[_0xfda9df(0x18f)]){const _0x561bf2=_0x4e0fbe[_0xfda9df(0x18f)],_0x3492a7=Math[_0xfda9df(0x146)](_0x561bf2,_0x21441d[_0xfda9df(0x18f)]);this[_0xfda9df(0x17f)]({'revision':_0x21441d,'from':_0x561bf2,'to':_0x3492a7});}}}[_0x1c76ab(0x17f)]({revision:_0x462242,from:_0x12d457,to:_0x1ec3c6}={}){const _0x43514e=_0x1c76ab,_0x1064fa=this[_0x43514e(0x147)][_0x43514e(0x14f)][_0x43514e(0x131)](_0x391f77),_0x5b76a2=this[_0x43514e(0x17a)][_0x43514e(0x15c)]({'revision':_0x462242,'from':_0x12d457,'to':_0x1ec3c6});_0x5b76a2[_0x43514e(0x126)]=_0x5b76a2[_0x43514e(0x127)][_0x43514e(0x169)](_0x2d6755=>_0x1064fa[_0x43514e(0x192)](_0x2d6755)),_0x462242[_0x43514e(0x191)](_0x5b76a2);}[_0x1c76ab(0x135)](_0x55d98e){const _0x259739=_0x1c76ab,_0x21a560={};_0x21a560['id']=_0x55d98e['id'];for(const _0x29e240 of Object[_0x259739(0x136)](_0x55d98e))'id'!==_0x29e240&&(_0x21a560[_0x29e240]=void 0x0);this[_0x259739(0x17a)][_0x259739(0x16f)](_0x21a560['id'],_0x21a560,!0x0);}async[_0x1c76ab(0x159)](_0x4b6ba6){const _0x54cb2f=_0x1c76ab,_0x517fb2=this[_0x54cb2f(0x147)][_0x54cb2f(0x14f)][_0x54cb2f(0x131)](_0x391f77),{connection:_0xf87630}=this[_0x54cb2f(0x147)][_0x54cb2f(0x14f)][_0x54cb2f(0x131)](_0xd7862f),_0x1a4965=new Set();for(const _0x46ad82 of _0x4b6ba6){for(const _0x23a336 of _0x46ad82[_0x54cb2f(0x127)])_0x139551(_0x23a336);_0x46ad82[_0x54cb2f(0x130)]&&_0x139551(_0x46ad82[_0x54cb2f(0x130)]);}if(0x0===_0x1a4965[_0x54cb2f(0x16c)])return;const _0xfe659d=await _0x28ebe3[_0x54cb2f(0x12c)](_0xf87630,Array[_0x54cb2f(0x154)](_0x1a4965));for(const _0xd4f35b of _0xfe659d)_0x517fb2[_0x54cb2f(0x192)](_0xd4f35b['id'])||_0x517fb2[_0x54cb2f(0x195)](_0xd4f35b);function _0x139551(_0x3db446){const _0x1f38b8=_0x54cb2f;_0x517fb2[_0x1f38b8(0x192)](_0x3db446)||_0x1a4965[_0x1f38b8(0x17c)](_0x3db446);}}}function _(_0x5e33aa){const _0x21942f=_0x1c76ab;return _0x5e33aa[_0x21942f(0x13d)][_0x21942f(0x15e)](_0x21942f(0x13b))||_0x5e33aa[_0x21942f(0x13d)][_0x21942f(0x15e)](_0x21942f(0x18e))||_0x5e33aa[_0x21942f(0x13d)][_0x21942f(0x15e)](_0x21942f(0x171));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x218a95=_0x383d;function _0x276f(){const _0x2075c5=['getSuggestion','isConnected','10zLUmIg','isOfficialPlugin','suggestionUpdated','connect','addSuggestionData','22996HxxEUO','off','message','set','69qFvNtN','originalSuggestionId','cloud-services-internal-error:\x20Not\x20connected.','data','type','values','_trackChangesService','_waitForServiceReady','get','listenTo','1213580RxUozP','addUser','pluginName','attributes','adapter','isPremiumPlugin','reconnect','config','_bufferedRequests','157556frllVt','editor','hasSuggestion','11AFdMPd','init','156JDmLre','113596YvQoeD','10874470mUEBRC','size','add','update','_fetchMissingUsersForThreads','startsWith','connection','requires','then','catch','3745629sIjWlm','collaboration.channelId','from','TrackChangesEditing','open','connected','_saved','381568tYsJDC','addToReconnectionStack','getUser','plugins','find','delete','getMany','TrackChangesService','cloud-services-internal-error:\x20Request\x20timeout.','CloudServicesTrackChangesAdapter','state'];_0x276f=function(){return _0x2075c5;};return _0x276f();}(function(_0x41bca2,_0x3ff23d){const _0x379f80=_0x383d,_0x515f30=_0x41bca2();while(!![]){try{const _0x1c7b1c=parseInt(_0x379f80(0x9a))/0x1*(parseInt(_0x379f80(0xbc))/0x2)+-parseInt(_0x379f80(0xa3))/0x3*(parseInt(_0x379f80(0x9f))/0x4)+-parseInt(_0x379f80(0xad))/0x5+-parseInt(_0x379f80(0xbb))/0x6*(parseInt(_0x379f80(0xb6))/0x7)+parseInt(_0x379f80(0x8d))/0x8+-parseInt(_0x379f80(0x86))/0x9+-parseInt(_0x379f80(0xbd))/0xa*(-parseInt(_0x379f80(0xb9))/0xb);if(_0x1c7b1c===_0x3ff23d)break;else _0x515f30['push'](_0x515f30['shift']());}catch(_0x2ee302){_0x515f30['push'](_0x515f30['shift']());}}}(_0x276f,0x4fc87));import{Plugin as _0x365af0}from'ckeditor5/src/core.js';import{User as _0xf863dd,TrackChangesService as _0x21c3ab}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x19a1df}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x1fc21d}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x3e3448}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x365af0{static [_0x218a95(0x94)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x21c3ab)());[_0x218a95(0xb5)];[_0x218a95(0xa9)];static get[_0x218a95(0x83)](){const _0x31ba97=_0x218a95;return[_0x1fc21d,_0x31ba97(0x89),_0x19a1df];}static get[_0x218a95(0xaf)](){const _0x52592b=_0x218a95;return _0x52592b(0x96);}static get[_0x218a95(0x9b)](){return!0x0;}static get[_0x218a95(0xb2)](){return!0x0;}constructor(_0x2b3f2d){const _0x166dc6=_0x218a95;super(_0x2b3f2d);const _0x3eae5e=this[_0x166dc6(0xb7)][_0x166dc6(0xb4)][_0x166dc6(0xab)](_0x166dc6(0x87));this[_0x166dc6(0xb5)]=new Map(),this[_0x166dc6(0xa9)]=new CloudServicesTrackChangesAdapter[(_0x166dc6(0x94))](_0x3eae5e);}[_0x218a95(0xba)](){const _0x2db928=_0x218a95,_0x5f2347=this[_0x2db928(0xb7)][_0x2db928(0x90)][_0x2db928(0xab)](_0x19a1df),_0x38e828=this[_0x2db928(0xb7)][_0x2db928(0x90)][_0x2db928(0xab)](_0x2db928(0x89));return _0x38e828[_0x2db928(0xb1)]={'getSuggestion':async _0x47d1b3=>{const _0x22bbb=_0x2db928;await this[_0x22bbb(0xaa)]();const _0xbbb758=await this[_0x22bbb(0xa9)][_0x22bbb(0xab)](_0x47d1b3)[_0x22bbb(0x85)](k);return await this[_0x22bbb(0xc1)]([_0xbbb758]),_0xbbb758;},'addSuggestion':async({id:_0x24d11b,type:_0x1f12e2,data:_0x5afffc,originalSuggestionId:_0x14255f,attributes:_0x4e254b})=>{const _0x392d12=_0x2db928;await this[_0x392d12(0xaa)]();const _0x4921a4={'id':_0x24d11b,'type':_0x1f12e2,'data':_0x5afffc,'originalSuggestionId':_0x14255f,'attributes':_0x4e254b},_0x2b705c=await this[_0x392d12(0xa9)][_0x392d12(0xbf)](_0x24d11b,_0x1f12e2,_0x5afffc,_0x14255f,_0x4e254b)[_0x392d12(0x85)](_0x2eb45e=>{if(st(_0x2eb45e))return new Promise(_0x370fc6=>{const _0x1a9e69=_0x383d;this[_0x1a9e69(0xb5)][_0x1a9e69(0xa2)](_0x24d11b,{'resolve':_0x370fc6,'suggestionData':_0x4921a4});});throw _0x2eb45e;});return this[_0x392d12(0xb5)][_0x392d12(0x92)](_0x24d11b),_0x2b705c;},'updateSuggestion':async(_0x438c4a,_0x592e2e)=>{const _0x3d688f=_0x2db928;if(await this[_0x3d688f(0xaa)](),_0x3d688f(0x8a)!==_0x592e2e[_0x3d688f(0x97)])return this[_0x3d688f(0xa9)][_0x3d688f(0xc0)](_0x438c4a,_0x592e2e)[_0x3d688f(0x85)](k);}},this[_0x2db928(0xac)](this[_0x2db928(0xa9)],_0x2db928(0x9c),(_0x525f75,_0x41fea6)=>{const _0x3792f2=_0x2db928;_0x38e828[_0x3792f2(0xb8)](_0x41fea6['id'])&&(_0x38e828[_0x3792f2(0x98)](_0x41fea6['id'])[_0x3792f2(0xb0)]=_0x41fea6[_0x3792f2(0xb0)]);}),this[_0x2db928(0xa9)][_0x2db928(0x9d)](_0x5f2347[_0x2db928(0x82)])[_0x2db928(0x84)](_0x547a81=>(_0x5f2347[_0x2db928(0x8e)](this),this[_0x2db928(0xc1)](_0x547a81)[_0x2db928(0x84)](()=>{const _0x23efc6=_0x2db928;for(const _0x3bdfce of _0x547a81){_0x38e828[_0x23efc6(0x9e)](_0x3bdfce)[_0x23efc6(0x8c)]=!0x0;}})));}async[_0x218a95(0xb3)](){const _0x2c1712=_0x218a95,_0x171f88=this[_0x2c1712(0xb7)][_0x2c1712(0x90)][_0x2c1712(0xab)](_0x2c1712(0x89)),{connection:_0x2b183a}=this[_0x2c1712(0xb7)][_0x2c1712(0x90)][_0x2c1712(0xab)](_0x19a1df),_0x1a5335=await this[_0x2c1712(0xa9)][_0x2c1712(0x9d)](_0x2b183a);await this[_0x2c1712(0xc1)](_0x1a5335);for(const {suggestionData:_0x2033eb,resolve:_0x54a7d1}of this[_0x2c1712(0xb5)][_0x2c1712(0xa8)]()){let _0x5a8fb4=_0x1a5335[_0x2c1712(0x91)](_0x2c52e9=>_0x2c52e9['id']===_0x2033eb['id']);_0x5a8fb4||(_0x5a8fb4=await this[_0x2c1712(0xa9)][_0x2c1712(0xbf)](_0x2033eb['id'],_0x2033eb[_0x2c1712(0xa7)],_0x2033eb[_0x2c1712(0xa6)],_0x2033eb[_0x2c1712(0xa4)])),_0x54a7d1(_0x5a8fb4);}for(const _0x215dea of _0x1a5335)_0x171f88[_0x2c1712(0xb8)](_0x215dea['id'])||_0x171f88[_0x2c1712(0x9e)](_0x215dea);}async[_0x218a95(0xaa)](){const _0xf3b158=_0x218a95;this[_0xf3b158(0xa9)][_0xf3b158(0x99)]||await new Promise(_0x155b5d=>{const _0x2771a8=_0xf3b158;this[_0x2771a8(0xac)](this[_0x2771a8(0xa9)],_0x2771a8(0x8b),_0x565216=>{const _0x2962ea=_0x2771a8;_0x565216[_0x2962ea(0xa0)](),_0x155b5d();});});}async[_0x218a95(0xc1)](_0x3cb7b5){const _0x946359=_0x218a95,_0x874ae8=this[_0x946359(0xb7)][_0x946359(0x90)][_0x946359(0xab)](_0x3e3448),{connection:_0x4e2403}=this[_0x946359(0xb7)][_0x946359(0x90)][_0x946359(0xab)](_0x19a1df),_0x56c538=new Set();for(const {authorId:_0x4fa412}of _0x3cb7b5)_0x874ae8[_0x946359(0x8f)](_0x4fa412)||_0x56c538[_0x946359(0xbf)](_0x4fa412);if(0x0===_0x56c538[_0x946359(0xbe)])return;const _0x58f0c8=await _0xf863dd[_0x946359(0x93)](_0x4e2403,Array[_0x946359(0x88)](_0x56c538));for(const _0x437503 of _0x58f0c8)_0x874ae8[_0x946359(0x8f)](_0x437503['id'])||_0x874ae8[_0x946359(0xae)](_0x437503);}}function _0x383d(_0x591d4f,_0xc1e7dc){const _0x276f45=_0x276f();return _0x383d=function(_0x383dc1,_0x8a5905){_0x383dc1=_0x383dc1-0x82;let _0x79787b=_0x276f45[_0x383dc1];return _0x79787b;},_0x383d(_0x591d4f,_0xc1e7dc);}function k(_0x3eff11){if(st(_0x3eff11))return new Promise(()=>{});throw _0x3eff11;}function st(_0x353474){const _0x3fa5a2=_0x218a95;return _0x353474[_0x3fa5a2(0xa1)][_0x3fa5a2(0xc2)](_0x3fa5a2(0xa5))||_0x353474[_0x3fa5a2(0xa1)][_0x3fa5a2(0xc2)](_0x3fa5a2(0x95));}
23
+ const _0x231e1f=_0x35cb;(function(_0x305601,_0x1eb23d){const _0x1c545e=_0x35cb,_0x3ee7c4=_0x305601();while(!![]){try{const _0x55723d=parseInt(_0x1c545e(0xa0))/0x1*(-parseInt(_0x1c545e(0x95))/0x2)+parseInt(_0x1c545e(0x89))/0x3+-parseInt(_0x1c545e(0x86))/0x4*(parseInt(_0x1c545e(0x7e))/0x5)+-parseInt(_0x1c545e(0xa7))/0x6*(-parseInt(_0x1c545e(0x76))/0x7)+-parseInt(_0x1c545e(0x9f))/0x8*(parseInt(_0x1c545e(0xac))/0x9)+parseInt(_0x1c545e(0x74))/0xa+parseInt(_0x1c545e(0x7c))/0xb;if(_0x55723d===_0x1eb23d)break;else _0x3ee7c4['push'](_0x3ee7c4['shift']());}catch(_0x21a881){_0x3ee7c4['push'](_0x3ee7c4['shift']());}}}(_0x5f20,0x1ac04));import{Plugin as _0x14be4d}from'ckeditor5/src/core.js';import{User as _0x5e4479,TrackChangesService as _0x58a2a0}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x34435d}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x370b77}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x35cb(_0x2feee1,_0x414204){const _0x5f20cf=_0x5f20();return _0x35cb=function(_0x35cb01,_0x5e14fd){_0x35cb01=_0x35cb01-0x71;let _0x2d13bf=_0x5f20cf[_0x35cb01];return _0x2d13bf;},_0x35cb(_0x2feee1,_0x414204);}import{Users as _0x305d19}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x14be4d{static [_0x231e1f(0x72)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x58a2a0)());[_0x231e1f(0xab)];[_0x231e1f(0x71)];static get[_0x231e1f(0xa2)](){const _0x2a6626=_0x231e1f;return[_0x370b77,_0x2a6626(0x7d),_0x34435d];}static get[_0x231e1f(0x9c)](){const _0x19e0d4=_0x231e1f;return _0x19e0d4(0x87);}static get[_0x231e1f(0xa6)](){return!0x0;}static get[_0x231e1f(0x99)](){return!0x0;}constructor(_0x3536fb){const _0x8a60b1=_0x231e1f;super(_0x3536fb);const _0x36e4dd=this[_0x8a60b1(0x75)][_0x8a60b1(0xaf)][_0x8a60b1(0x96)](_0x8a60b1(0x93));this[_0x8a60b1(0xab)]=new Map(),this[_0x8a60b1(0x71)]=new CloudServicesTrackChangesAdapter[(_0x8a60b1(0x72))](_0x36e4dd);}[_0x231e1f(0x73)](){const _0x129257=_0x231e1f,_0x2482ec=this[_0x129257(0x75)][_0x129257(0x7a)][_0x129257(0x96)](_0x34435d),_0xb019ee=this[_0x129257(0x75)][_0x129257(0x7a)][_0x129257(0x96)](_0x129257(0x7d));return _0xb019ee[_0x129257(0xad)]={'getSuggestion':async _0xdc637d=>{const _0x4af59d=_0x129257;await this[_0x4af59d(0x92)]();const _0x5b3d93=await this[_0x4af59d(0x71)][_0x4af59d(0x96)](_0xdc637d)[_0x4af59d(0x77)](k);return await this[_0x4af59d(0x94)]([_0x5b3d93]),_0x5b3d93;},'addSuggestion':async({id:_0x55bdcf,type:_0x59624e,data:_0x46d9ef,originalSuggestionId:_0xdf93a0,attributes:_0x1bf5e3})=>{const _0xc5488e=_0x129257;await this[_0xc5488e(0x92)]();const _0x534923={'id':_0x55bdcf,'type':_0x59624e,'data':_0x46d9ef,'originalSuggestionId':_0xdf93a0,'attributes':_0x1bf5e3},_0x2b17a6=await this[_0xc5488e(0x71)][_0xc5488e(0x7f)](_0x55bdcf,_0x59624e,_0x46d9ef,_0xdf93a0,_0x1bf5e3)[_0xc5488e(0x77)](_0x2bd064=>{if(_(_0x2bd064))return new Promise(_0x52d490=>{const _0x465158=_0x35cb;this[_0x465158(0xab)][_0x465158(0x80)](_0x55bdcf,{'resolve':_0x52d490,'suggestionData':_0x534923});});throw _0x2bd064;});return this[_0xc5488e(0xab)][_0xc5488e(0x90)](_0x55bdcf),_0x2b17a6;},'updateSuggestion':async(_0x249ebe,_0x5d2819)=>{const _0x1e74a7=_0x129257;if(await this[_0x1e74a7(0x92)](),_0x1e74a7(0x9d)!==_0x5d2819[_0x1e74a7(0x79)])return this[_0x1e74a7(0x71)][_0x1e74a7(0x8b)](_0x249ebe,_0x5d2819)[_0x1e74a7(0x77)](k);}},this[_0x129257(0x84)](this[_0x129257(0x71)],_0x129257(0x85),(_0x25fac1,_0x2a4f08)=>{const _0x5cd774=_0x129257;_0xb019ee[_0x5cd774(0xa9)](_0x2a4f08['id'])&&(_0xb019ee[_0x5cd774(0x7b)](_0x2a4f08['id'])[_0x5cd774(0x83)]=_0x2a4f08[_0x5cd774(0x83)]);}),this[_0x129257(0x71)][_0x129257(0xaa)](_0x2482ec[_0x129257(0x8f)])[_0x129257(0x82)](_0x38bede=>(_0x2482ec[_0x129257(0xa4)](this),this[_0x129257(0x94)](_0x38bede)[_0x129257(0x82)](()=>{const _0x27e48d=_0x129257;for(const _0x1e0d2c of _0x38bede){_0xb019ee[_0x27e48d(0x98)](_0x1e0d2c)[_0x27e48d(0x9b)]=!0x0;}})));}async[_0x231e1f(0x8a)](){const _0x5edded=_0x231e1f,_0xede1bf=this[_0x5edded(0x75)][_0x5edded(0x7a)][_0x5edded(0x96)](_0x5edded(0x7d)),{connection:_0x588116}=this[_0x5edded(0x75)][_0x5edded(0x7a)][_0x5edded(0x96)](_0x34435d),_0x32e951=await this[_0x5edded(0x71)][_0x5edded(0xaa)](_0x588116);await this[_0x5edded(0x94)](_0x32e951);for(const {suggestionData:_0x377134,resolve:_0xe04c53}of this[_0x5edded(0xab)][_0x5edded(0x78)]()){let _0x5d660f=_0x32e951[_0x5edded(0x91)](_0x17b7d7=>_0x17b7d7['id']===_0x377134['id']);_0x5d660f||(_0x5d660f=await this[_0x5edded(0x71)][_0x5edded(0x7f)](_0x377134['id'],_0x377134[_0x5edded(0xa5)],_0x377134[_0x5edded(0x9e)],_0x377134[_0x5edded(0x9a)])),_0xe04c53(_0x5d660f);}for(const _0x1c7d27 of _0x32e951)_0xede1bf[_0x5edded(0xa9)](_0x1c7d27['id'])||_0xede1bf[_0x5edded(0x98)](_0x1c7d27);}async[_0x231e1f(0x92)](){const _0x363054=_0x231e1f;this[_0x363054(0x71)][_0x363054(0xb0)]||await new Promise(_0x648c00=>{const _0x3cfccc=_0x363054;this[_0x3cfccc(0x84)](this[_0x3cfccc(0x71)],_0x3cfccc(0x8e),_0x369d38=>{const _0x1cf308=_0x3cfccc;_0x369d38[_0x1cf308(0xa8)](),_0x648c00();});});}async[_0x231e1f(0x94)](_0x264dd8){const _0x351767=_0x231e1f,_0x4d2ed5=this[_0x351767(0x75)][_0x351767(0x7a)][_0x351767(0x96)](_0x305d19),{connection:_0x1b3edf}=this[_0x351767(0x75)][_0x351767(0x7a)][_0x351767(0x96)](_0x34435d),_0x1b21eb=new Set();for(const {authorId:_0x18581c}of _0x264dd8)_0x4d2ed5[_0x351767(0x8c)](_0x18581c)||_0x1b21eb[_0x351767(0x7f)](_0x18581c);if(0x0===_0x1b21eb[_0x351767(0xa1)])return;const _0x3bcaf3=await _0x5e4479[_0x351767(0x97)](_0x1b3edf,Array[_0x351767(0x88)](_0x1b21eb));for(const _0x565b12 of _0x3bcaf3)_0x4d2ed5[_0x351767(0x8c)](_0x565b12['id'])||_0x4d2ed5[_0x351767(0x81)](_0x565b12);}}function k(_0x1e17ef){if(_(_0x1e17ef))return new Promise(()=>{});throw _0x1e17ef;}function _0x5f20(){const _0x1b0df9=['pluginName','open','data','720760lPLsht','7fUMevc','size','requires','message','addToReconnectionStack','type','isOfficialPlugin','4818BmZbpa','off','hasSuggestion','connect','_bufferedRequests','9bEJxov','adapter','startsWith','config','isConnected','cloud-services-internal-error:\x20Request\x20timeout.','_trackChangesService','TrackChangesService','init','285780dTtHIg','editor','560isPDQF','catch','values','state','plugins','getSuggestion','4170705hsdZXz','TrackChangesEditing','5dudBEq','add','set','addUser','then','attributes','listenTo','suggestionUpdated','589040yISLwg','CloudServicesTrackChangesAdapter','from','261330Xuomgt','reconnect','update','getUser','cloud-services-internal-error:\x20Not\x20connected.','connected','connection','delete','find','_waitForServiceReady','collaboration.channelId','_fetchMissingUsersForThreads','60616DYheoO','get','getMany','addSuggestionData','isPremiumPlugin','originalSuggestionId','_saved'];_0x5f20=function(){return _0x1b0df9;};return _0x5f20();}function _(_0x28d566){const _0x3926bb=_0x231e1f;return _0x28d566[_0x3926bb(0xa3)][_0x3926bb(0xae)](_0x3926bb(0x8d))||_0x28d566[_0x3926bb(0xa3)][_0x3926bb(0xae)](_0x3926bb(0xb1));}