@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.8 → 46.0.1-alpha.9

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 _0x307836=_0x30ab;function _0x303c(){const _0x1a6e23=['_revisions','wrongRequestId','fromVersion','sendBufferedUpdates','_isConnected','type','authorsIds','connected','RevisionHistory','14556410nbZlIe','getOperations','CloudServicesRevisionHistoryAdapter','config','_preventResendingRevisionData','change:_isPendingUpdate','collaboration.channelId','6WltdpI','2533536ZonTWw','startsWith','2178666jOSJbU','_fixRevision','_oldOffset','1989620sVWymO','baseVersion','max','size','isPremiumPlugin','get','1QAUKUZ','_isPendingUpdate','message','buildRevisionData','addRevisionData','_handleReconnectionError','addUser','_getLatestVersion','cloud-services-internal-error:\x20Request\x20timeout.','2075166CxzSdv','currentRevision','RevisionTracker','map','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','isConnected','data','plugins','setSource','cloud-services-internal-error:\x20Not\x20connected.','reconnect','listenTo','getUser','catch','94829tNvVsi','diffData','serverHistory','_bufferUpdate','repository','_offset','add','_revisionDataBuilder','20DhyQXr','requires','getRevision','9323888cuEXxC','from','state','remove','then','isEnabled','affectsData','reInit','_getLatestVersionFromServerOperations','_update','keys','createdAt','creatorId','400','has','editor','updateRevisions','_lastRequestId','RevisionHistoryService','addToReconnectionStack','isOfficialPlugin','_bufferedUpdates','bind','10Rwzxzt','_revisionHistoryService','toVersion','once','code','destroy','authors','12zGbsZn','init','revisionsUpdated','CONNECTED','isEmptyCurrent','reverse','marker','_revisionTracker','change:_isConnected','sessionId','_startingVersion','getRevisions','connection','length','connect','_handleRevisionsUpdate','adapter','_createCurrentRevision','_waitForServiceReady','cloudServices.bundleVersion','setRevisionData','getMany','off','pluginName','_fetchMissingUsers','isBundleUploaded'];_0x303c=function(){return _0x1a6e23;};return _0x303c();}(function(_0x1cc442,_0x1cdf84){const _0x16bbb1=_0x30ab,_0x582105=_0x1cc442();while(!![]){try{const _0x249a4f=parseInt(_0x16bbb1(0x12c))/0x1*(parseInt(_0x16bbb1(0x121))/0x2)+parseInt(_0x16bbb1(0x120))/0x3*(parseInt(_0x16bbb1(0x126))/0x4)+-parseInt(_0x16bbb1(0xef))/0x5*(parseInt(_0x16bbb1(0x135))/0x6)+parseInt(_0x16bbb1(0x143))/0x7+parseInt(_0x16bbb1(0xd8))/0x8+parseInt(_0x16bbb1(0x123))/0x9*(-parseInt(_0x16bbb1(0x14b))/0xa)+parseInt(_0x16bbb1(0x119))/0xb*(-parseInt(_0x16bbb1(0xf6))/0xc);if(_0x249a4f===_0x1cdf84)break;else _0x582105['push'](_0x582105['shift']());}catch(_0x52d444){_0x582105['push'](_0x582105['shift']());}}}(_0x303c,0xe5d77));function _0x30ab(_0xb692f,_0x4aca88){const _0x303c46=_0x303c();return _0x30ab=function(_0x30ab32,_0x2f15d2){_0x30ab32=_0x30ab32-0xd6;let _0x18bcaf=_0x303c46[_0x30ab32];return _0x18bcaf;},_0x30ab(_0xb692f,_0x4aca88);}import{Plugin as _0x1801ba}from'ckeditor5/src/core.js';import{version as _0x2bdf3c}from'ckeditor5/src/utils.js';import{Users as _0x2c9da1}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x3f5e4d}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x412aee}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1f5934}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x5c135d,RevisionHistoryService as _0x4f33f3,User as _0x4ac438,WEB_SOCKET_GATEWAY_STATES as _0x190575}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x1801ba{static [_0x307836(0xea)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x4f33f3)());[_0x307836(0xe9)];[_0x307836(0xfd)];[_0x307836(0xf0)];[_0x307836(0x125)];static get[_0x307836(0xd6)](){const _0x3f14ba=_0x307836;return[_0x412aee,_0x3f5e4d,_0x3f14ba(0x118),_0x1f5934,_0x2c9da1];}static get[_0x307836(0x10d)](){const _0x1b0be5=_0x307836;return _0x1b0be5(0x11b);}static get[_0x307836(0xec)](){return!0x0;}static get[_0x307836(0x12a)](){return!0x0;}constructor(_0x1d5372){const _0x4bfa63=_0x307836;super(_0x1d5372);const _0x40b495=this[_0x4bfa63(0xe7)][_0x4bfa63(0x11c)][_0x4bfa63(0x12b)](_0x4bfa63(0x11f));this[_0x4bfa63(0xe9)]=null,this[_0x4bfa63(0xfd)]=this[_0x4bfa63(0xe7)][_0x4bfa63(0x13c)][_0x4bfa63(0x12b)](_0x4bfa63(0x137)),this[_0x4bfa63(0xf0)]=new c[(_0x4bfa63(0xea))](_0x40b495);}async[_0x307836(0xf7)](){const _0x2a9f86=_0x307836,_0x1f9dc3=this[_0x2a9f86(0xe7)][_0x2a9f86(0x13c)][_0x2a9f86(0x12b)](_0x3f5e4d),_0x4b9374=_0x1f9dc3[_0x2a9f86(0x145)],_0x2e3542=this[_0x2a9f86(0xe7)][_0x2a9f86(0x13c)][_0x2a9f86(0x12b)](_0x412aee);this[_0x2a9f86(0xfd)][_0x2a9f86(0x13d)]({'history':_0x4b9374,'getLatestVersion':()=>this[_0x2a9f86(0x133)](),'getCurrentRevisionId':()=>_0x1f9dc3[_0x2a9f86(0xff)]});const _0x4c2fdf=this[_0x2a9f86(0xe7)][_0x2a9f86(0x11c)][_0x2a9f86(0x12b)](_0x2a9f86(0x109))||_0x2bdf3c,_0x2a4377=await _0x5c135d[_0x2a9f86(0x10f)](_0x2e3542[_0x2a9f86(0x102)],_0x4c2fdf);this[_0x2a9f86(0xe7)][_0x2a9f86(0x13c)][_0x2a9f86(0x12b)](_0x2a9f86(0x118))[_0x2a9f86(0x106)]={'getRevision':async({revisionId:_0x49048e})=>(await this[_0x2a9f86(0x108)](),await this[_0x2a9f86(0xf0)][_0x2a9f86(0xd7)](_0x49048e)),'updateRevisions':async _0x35111d=>{const _0x4b78c3=_0x2a9f86;await this[_0x4b78c3(0x108)]();const _0x2d8ab1=this[_0x4b78c3(0xfd)][_0x4b78c3(0x136)];if(_0x2a4377&&0x1===_0x35111d[_0x4b78c3(0x103)]&&_0x35111d[0x0]['id']===_0x2d8ab1['id'])return _0x35111d;for(const _0x213f7f of _0x35111d)_0x213f7f['id']===_0x2d8ab1['id']&&(_0x213f7f[_0x4b78c3(0xfa)]=_0x213f7f[_0x4b78c3(0x112)]===_0x213f7f[_0x4b78c3(0xf1)]);return this[_0x4b78c3(0xf0)][_0x4b78c3(0xe8)](_0x35111d,this[_0x4b78c3(0xe9)])[_0x4b78c3(0xdc)](_0x54cea0=>(this[_0x4b78c3(0xe9)]=_0x54cea0,_0x35111d))[_0x4b78c3(0x142)](_0x2836a3=>{const _0x3e92bd=_0x4b78c3;if(it(_0x2836a3)||_0x3e92bd(0xe5)===_0x2836a3[_0x3e92bd(0xf3)]&&void 0x0!==_0x2836a3[_0x3e92bd(0x13b)][_0x3e92bd(0x111)]){for(const _0x1ec20e of _0x35111d){!this[_0x3e92bd(0xfd)][_0x3e92bd(0x147)][_0x3e92bd(0xd7)](_0x1ec20e['id'])||this[_0x3e92bd(0xfd)][_0x3e92bd(0x146)](_0x1ec20e['id'],_0x1ec20e,!0x1);}if(it(_0x2836a3))throw _0x2836a3;return _0x35111d;}throw _0x2836a3;});}},this[_0x2a9f86(0x140)](this[_0x2a9f86(0xf0)],_0x2a9f86(0xf8),(_0x1f595e,{revisionsData:_0x13c2bc,requestId:_0xbdd014})=>{const _0x122ee1=_0x2a9f86;Math[_0x122ee1(0x128)](..._0x13c2bc[_0x122ee1(0x138)](_0x1ea8cc=>_0x1ea8cc[_0x122ee1(0xf1)]))>this[_0x122ee1(0xe0)]()-0x1?this[_0x122ee1(0x133)]()[_0x122ee1(0xdc)](()=>{const _0x1b3d37=_0x122ee1;this[_0x1b3d37(0x105)](_0x13c2bc,_0xbdd014);}):this[_0x122ee1(0x105)](_0x13c2bc,_0xbdd014);});const {revisions:_0x43f99f,requestId:_0x239ff0}=await this[_0x2a9f86(0xf0)][_0x2a9f86(0x104)](_0x2e3542[_0x2a9f86(0x102)]);_0x2e3542[_0x2a9f86(0xeb)](this),this[_0x2a9f86(0xe9)]=_0x239ff0,await this[_0x2a9f86(0x10e)](_0x43f99f);for(const _0x2791bb of _0x43f99f)this[_0x2a9f86(0xfd)][_0x2a9f86(0x130)](_0x2791bb);this[_0x2a9f86(0x140)](_0x1f9dc3,_0x2a9f86(0xfe),(_0x5c096b,_0x7bda86,_0x547be9)=>{const _0x142de2=_0x2a9f86;_0x547be9&&(this[_0x142de2(0x125)]=_0x1f9dc3[_0x142de2(0x148)],_0x5c096b[_0x142de2(0x10c)]());}),this[_0x2a9f86(0xfd)][_0x2a9f86(0xee)](_0x2a9f86(0xdd))['to'](_0x2e3542,_0x2a9f86(0xda),_0x510d01=>_0x510d01===_0x190575[_0x2a9f86(0xf9)]);}async[_0x307836(0x13f)](){const _0x6c0bd0=_0x307836,_0xcddc18=this[_0x6c0bd0(0xe7)][_0x6c0bd0(0x13c)][_0x6c0bd0(0x12b)](_0x412aee),_0x13a017=this[_0x6c0bd0(0xe7)][_0x6c0bd0(0x13c)][_0x6c0bd0(0x12b)](_0x3f5e4d),_0x481a1d=async()=>{const _0x76a61a=_0x6c0bd0,_0x316c9a=this[_0x76a61a(0xfd)][_0x76a61a(0x136)],_0x22d119=_0x316c9a['id'],_0x7775ed=_0x22d119!==_0x13a017[_0x76a61a(0xff)];if(_0x7775ed){const _0x3763ed=_0x13a017[_0x76a61a(0x148)]-this[_0x76a61a(0x125)],_0x414cf1=this[_0x76a61a(0xe0)]();this[_0x76a61a(0xfd)][_0x76a61a(0x14a)][_0x76a61a(0xdf)]();if(_0x316c9a[_0x76a61a(0xf1)]+_0x3763ed!==_0x414cf1){const _0x1ac6d7=_0x316c9a[_0x76a61a(0x112)]+_0x3763ed,_0x45ebd4=this[_0x76a61a(0xe7)][_0x76a61a(0x13c)][_0x76a61a(0x12b)](_0x2c9da1),_0x1543b4=this[_0x76a61a(0xfd)][_0x76a61a(0x12f)]({'revision':_0x316c9a,'from':_0x1ac6d7,'to':_0x414cf1});_0x1543b4['id']=_0x316c9a['id'];const _0x482bd9=_0x1543b4[_0x76a61a(0x116)][_0x76a61a(0x138)](_0x494e04=>_0x45ebd4[_0x76a61a(0x141)](_0x494e04));_0x316c9a[_0x76a61a(0xe1)]({..._0x1543b4,'authors':_0x482bd9},!0x0),this[_0x76a61a(0xfd)][_0x76a61a(0x146)](_0x316c9a['id'],_0x1543b4,!0x0);}this[_0x76a61a(0xfd)][_0x76a61a(0x100)]=_0x414cf1,(_0x316c9a[_0x76a61a(0xf1)]===_0x316c9a[_0x76a61a(0x112)]&&!this[_0x76a61a(0xfd)][_0x76a61a(0xed)][_0x76a61a(0xe6)](_0x22d119)&&this[_0x76a61a(0xfd)][_0x76a61a(0x147)][_0x76a61a(0x110)][_0x76a61a(0xdb)](_0x22d119),this[_0x76a61a(0xfd)][_0x76a61a(0x107)](_0x414cf1));}const {revisions:_0xba2205,requestId:_0x3d1690}=await this[_0x76a61a(0xf0)][_0x76a61a(0x13f)](_0xcddc18[_0x76a61a(0x102)],this[_0x76a61a(0xe9)]);_0x7775ed&&_0xba2205[_0x76a61a(0x103)]>0x0?_0x13a017[_0x76a61a(0x131)]():(await this[_0x76a61a(0x10e)](_0xba2205),this[_0x76a61a(0x105)](_0xba2205,_0x3d1690),this[_0x76a61a(0xfd)][_0x76a61a(0x113)]());};return _0x13a017[_0x6c0bd0(0x114)]?_0x481a1d():new Promise((_0x31a62f,_0x4f1b9d)=>{const _0x33b222=_0x6c0bd0;_0x13a017[_0x33b222(0xf2)](_0x33b222(0xfe),()=>{const _0x5994ed=_0x33b222;_0x481a1d()[_0x5994ed(0xdc)](_0x31a62f)[_0x5994ed(0x142)](_0x4f1b9d);});});}[_0x307836(0xf4)](){const _0x2c8da9=_0x307836;super[_0x2c8da9(0xf4)]();}async[_0x307836(0x108)](){const _0xf531f3=_0x307836;this[_0xf531f3(0xf0)][_0xf531f3(0x13a)]||await new Promise(_0x53578a=>{const _0x43a0cd=_0xf531f3;this[_0x43a0cd(0x140)](this[_0x43a0cd(0xf0)],_0x43a0cd(0x117),_0x5122c4=>{const _0x326528=_0x43a0cd;_0x5122c4[_0x326528(0x10c)](),_0x53578a();});});}[_0x307836(0xe0)](){const _0x5742a2=_0x307836,_0x2b2b39=this[_0x5742a2(0xe7)][_0x5742a2(0x13c)][_0x5742a2(0x12b)](_0x3f5e4d)[_0x5742a2(0x145)][_0x5742a2(0x11a)]()[_0x5742a2(0xfb)]();for(const _0x5a9b9a of _0x2b2b39)if(_0x5742a2(0xfc)!==_0x5a9b9a[_0x5742a2(0x115)]||_0x5a9b9a[_0x5742a2(0xde)])return _0x5a9b9a[_0x5742a2(0x127)]+0x1;}[_0x307836(0x133)](){const _0x34b780=_0x307836,_0x4ed573=this[_0x34b780(0xe7)][_0x34b780(0x13c)][_0x34b780(0x12b)](_0x3f5e4d);return new Promise(_0x109330=>{const _0x14ef6=_0x34b780;_0x4ed573[_0x14ef6(0x12d)]?_0x4ed573[_0x14ef6(0xf2)](_0x14ef6(0x11e),()=>{const _0x588ceb=_0x14ef6;_0x109330(this[_0x588ceb(0xe0)]());}):_0x109330(this[_0x14ef6(0xe0)]());});}[_0x307836(0x105)](_0x9e15ab,_0x2aa4c4){const _0x39abda=_0x307836,_0x140b26=this[_0x39abda(0xfd)][_0x39abda(0x147)];this[_0x39abda(0xe9)]=_0x2aa4c4;for(const _0x425f89 of _0x9e15ab){const _0x27a73e=_0x140b26[_0x39abda(0xd7)](_0x425f89['id']);if(_0x27a73e){if((_0x425f89[_0x39abda(0x112)]||_0x425f89[_0x39abda(0xf1)])&&(_0x425f89[_0x39abda(0x144)]=null),_0x27a73e===this[_0x39abda(0xfd)][_0x39abda(0x136)]){const _0x5a573a=Math[_0x39abda(0x128)](_0x27a73e[_0x39abda(0xf1)],_0x425f89[_0x39abda(0xf1)]),_0x370914=Math[_0x39abda(0x128)](_0x27a73e[_0x39abda(0x112)],_0x425f89[_0x39abda(0x112)]);let _0x534aa9;_0x27a73e[_0x39abda(0xf1)]===_0x425f89[_0x39abda(0xf1)]&&_0x27a73e[_0x39abda(0x112)]===_0x425f89[_0x39abda(0x112)]?(_0x534aa9=!0x0,this[_0x39abda(0x11d)](_0x425f89)):_0x425f89[_0x39abda(0xf1)]===_0x5a573a&&_0x425f89[_0x39abda(0x112)]===_0x370914?_0x534aa9=!0x1:(_0x27a73e[_0x39abda(0xf1)]===_0x5a573a&&_0x27a73e[_0x39abda(0x112)]===_0x370914||this[_0x39abda(0x124)]({'revision':_0x27a73e,'from':_0x370914,'to':_0x5a573a}),_0x534aa9=!0x0),_0x534aa9&&(delete _0x425f89[_0x39abda(0x112)],delete _0x425f89[_0x39abda(0xf1)],delete _0x425f89[_0x39abda(0x144)],delete _0x425f89[_0x39abda(0xe3)],delete _0x425f89[_0x39abda(0x116)]);}this[_0x39abda(0xfd)][_0x39abda(0x10a)](_0x425f89),this[_0x39abda(0x11d)](_0x425f89);}else this[_0x39abda(0xfd)][_0x39abda(0x130)](_0x425f89);}const _0x4fbd37=_0x140b26[_0x39abda(0x101)]();_0x4fbd37[_0x39abda(0xfb)]();for(let _0x8c3165=0x0;_0x8c3165<_0x4fbd37[_0x39abda(0x103)]-0x1;_0x8c3165++){const _0x24c5c1=_0x4fbd37[_0x8c3165],_0x1ea6a0=_0x4fbd37[_0x8c3165+0x1];if(_0x24c5c1[_0x39abda(0x112)]<_0x1ea6a0[_0x39abda(0xf1)]){const _0x263940=_0x1ea6a0[_0x39abda(0xf1)],_0x4ac11b=Math[_0x39abda(0x128)](_0x263940,_0x24c5c1[_0x39abda(0xf1)]);this[_0x39abda(0x124)]({'revision':_0x24c5c1,'from':_0x263940,'to':_0x4ac11b});}}}[_0x307836(0x124)]({revision:_0x37f6bd,from:_0x22c291,to:_0x5358da}={}){const _0x541c81=_0x307836,_0x2e2fef=this[_0x541c81(0xe7)][_0x541c81(0x13c)][_0x541c81(0x12b)](_0x2c9da1),_0x5b3fdc=this[_0x541c81(0xfd)][_0x541c81(0x12f)]({'revision':_0x37f6bd,'from':_0x22c291,'to':_0x5358da});_0x5b3fdc[_0x541c81(0xf5)]=_0x5b3fdc[_0x541c81(0x116)][_0x541c81(0x138)](_0x296132=>_0x2e2fef[_0x541c81(0x141)](_0x296132)),_0x37f6bd[_0x541c81(0xe1)](_0x5b3fdc);}[_0x307836(0x11d)](_0x10b5ac){const _0x33ba9a=_0x307836,_0x2c3d6e={};_0x2c3d6e['id']=_0x10b5ac['id'];for(const _0x430699 of Object[_0x33ba9a(0xe2)](_0x10b5ac))'id'!==_0x430699&&(_0x2c3d6e[_0x430699]=void 0x0);this[_0x33ba9a(0xfd)][_0x33ba9a(0x146)](_0x2c3d6e['id'],_0x2c3d6e,!0x0);}async[_0x307836(0x10e)](_0x396c86){const _0x37223d=_0x307836,_0x4b2a43=this[_0x37223d(0xe7)][_0x37223d(0x13c)][_0x37223d(0x12b)](_0x2c9da1),{connection:_0x41afe1}=this[_0x37223d(0xe7)][_0x37223d(0x13c)][_0x37223d(0x12b)](_0x412aee),_0x97a1bf=new Set();for(const _0x50d049 of _0x396c86){for(const _0x2a9772 of _0x50d049[_0x37223d(0x116)])_0x3ca515(_0x2a9772);_0x50d049[_0x37223d(0xe4)]&&_0x3ca515(_0x50d049[_0x37223d(0xe4)]);}if(0x0===_0x97a1bf[_0x37223d(0x129)])return;const _0x55273f=await _0x4ac438[_0x37223d(0x10b)](_0x41afe1,Array[_0x37223d(0xd9)](_0x97a1bf));for(const _0x4354d3 of _0x55273f)_0x4b2a43[_0x37223d(0x141)](_0x4354d3['id'])||_0x4b2a43[_0x37223d(0x132)](_0x4354d3);function _0x3ca515(_0x52d0db){const _0x2c78ed=_0x37223d;_0x4b2a43[_0x2c78ed(0x141)](_0x52d0db)||_0x97a1bf[_0x2c78ed(0x149)](_0x52d0db);}}}export{c as CloudServicesRevisionHistoryAdapter};function it(_0x554aeb){const _0x22d94b=_0x307836;return _0x554aeb[_0x22d94b(0x12e)][_0x22d94b(0x122)](_0x22d94b(0x139))||_0x554aeb[_0x22d94b(0x12e)][_0x22d94b(0x122)](_0x22d94b(0x13e))||_0x554aeb[_0x22d94b(0x12e)][_0x22d94b(0x122)](_0x22d94b(0x134));}
23
+ const _0x111c3b=_0x390c;(function(_0x4d915d,_0x27f2f6){const _0x44a290=_0x390c,_0x1b58be=_0x4d915d();while(!![]){try{const _0x1621c1=parseInt(_0x44a290(0x19d))/0x1*(-parseInt(_0x44a290(0x1b6))/0x2)+-parseInt(_0x44a290(0x18e))/0x3+parseInt(_0x44a290(0x169))/0x4*(-parseInt(_0x44a290(0x18f))/0x5)+parseInt(_0x44a290(0x1c4))/0x6*(-parseInt(_0x44a290(0x1a8))/0x7)+parseInt(_0x44a290(0x184))/0x8*(-parseInt(_0x44a290(0x1bc))/0x9)+parseInt(_0x44a290(0x195))/0xa*(parseInt(_0x44a290(0x1c1))/0xb)+parseInt(_0x44a290(0x170))/0xc;if(_0x1621c1===_0x27f2f6)break;else _0x1b58be['push'](_0x1b58be['shift']());}catch(_0x4085c8){_0x1b58be['push'](_0x1b58be['shift']());}}}(_0x36b2,0x61438));import{Plugin as _0x84a0f4}from'ckeditor5/src/core.js';function _0x36b2(){const _0x474f71=['buildRevisionData','CONNECTED','isConnected','serverHistory','_handleReconnectionError','change:_isConnected','reInit','_bufferUpdate','_offset','toVersion','length','sessionId','connected','addRevisionData','message','cloud-services-internal-error:\x20Request\x20timeout.','_fixRevision','_waitForServiceReady','8oMUgQz','remove','fromVersion','plugins','editor','type','collaboration.channelId','18523080DBOaMW','once','affectsData','init','getMany','connection','_startingVersion','_createCurrentRevision','cloud-services-internal-error:\x20Not\x20connected.','setSource','data','requires','_fetchMissingUsers','off','_revisionTracker','_revisionHistoryService','isOfficialPlugin','reverse','_isPendingUpdate','size','379112uWeFUU','RevisionHistory','add','getOperations','map','_handleRevisionsUpdate','setRevisionData','_preventResendingRevisionData','revisionsUpdated','updateRevisions','1661508pCqmZk','1071330YAkhMa','then','creatorId','pluginName','from','_revisions','1887190BkRcRL','_bufferedUpdates','catch','get','change:_isPendingUpdate','_oldOffset','isBundleUploaded','getUser','311EPphGv','keys','baseVersion','startsWith','addToReconnectionStack','max','isPremiumPlugin','_isConnected','getRevision','bind','has','757876nGdXvx','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','sendBufferedUpdates','RevisionTracker','getRevisions','_update','_getLatestVersion','state','cloudServices.bundleVersion','isEnabled','listenTo','diffData','RevisionHistoryService','_revisionDataBuilder','2468LDkIbk','wrongRequestId','_lastRequestId','isEmptyCurrent','repository','authors','45QuHCbN','reconnect','createdAt','adapter','code','33WFdjcc','marker','addUser','6JowHwj','destroy','400','CloudServicesRevisionHistoryAdapter','config','_getLatestVersionFromServerOperations','connect','authorsIds','currentRevision'];_0x36b2=function(){return _0x474f71;};return _0x36b2();}import{version as _0x2267fc}from'ckeditor5/src/utils.js';import{Users as _0x38764b}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x390c(_0x1463db,_0x4c2209){const _0x36b2ef=_0x36b2();return _0x390c=function(_0x390c05,_0x3f741b){_0x390c05=_0x390c05-0x153;let _0x404233=_0x36b2ef[_0x390c05];return _0x404233;},_0x390c(_0x1463db,_0x4c2209);}import{RealTimeCollaborationClient as _0x59f2c4}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x3caa24}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x4e4e6d}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x303f9a,RevisionHistoryService as _0x44aae6,User as _0x2f8856,WEB_SOCKET_GATEWAY_STATES as _0x409a5d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x84a0f4{static [_0x111c3b(0x1b4)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x44aae6)());[_0x111c3b(0x1b8)];[_0x111c3b(0x17e)];[_0x111c3b(0x17f)];[_0x111c3b(0x19a)];static get[_0x111c3b(0x17b)](){const _0x5da788=_0x111c3b;return[_0x3caa24,_0x59f2c4,_0x5da788(0x185),_0x4e4e6d,_0x38764b];}static get[_0x111c3b(0x192)](){const _0x3ab4a5=_0x111c3b;return _0x3ab4a5(0x1c7);}static get[_0x111c3b(0x180)](){return!0x0;}static get[_0x111c3b(0x1a3)](){return!0x0;}constructor(_0x198f74){const _0x31e7d7=_0x111c3b;super(_0x198f74);const _0x5ed334=this[_0x31e7d7(0x16d)][_0x31e7d7(0x1c8)][_0x31e7d7(0x198)](_0x31e7d7(0x16f));this[_0x31e7d7(0x1b8)]=null,this[_0x31e7d7(0x17e)]=this[_0x31e7d7(0x16d)][_0x31e7d7(0x16c)][_0x31e7d7(0x198)](_0x31e7d7(0x1ab)),this[_0x31e7d7(0x17f)]=new c[(_0x31e7d7(0x1b4))](_0x5ed334);}async[_0x111c3b(0x173)](){const _0x4cee6d=_0x111c3b,_0x2798ad=this[_0x4cee6d(0x16d)][_0x4cee6d(0x16c)][_0x4cee6d(0x198)](_0x59f2c4),_0x20d752=_0x2798ad[_0x4cee6d(0x15a)],_0x36dae1=this[_0x4cee6d(0x16d)][_0x4cee6d(0x16c)][_0x4cee6d(0x198)](_0x3caa24);this[_0x4cee6d(0x17e)][_0x4cee6d(0x179)]({'history':_0x20d752,'getLatestVersion':()=>this[_0x4cee6d(0x1ae)](),'getCurrentRevisionId':()=>_0x2798ad[_0x4cee6d(0x162)]});const _0x59512f=this[_0x4cee6d(0x16d)][_0x4cee6d(0x1c8)][_0x4cee6d(0x198)](_0x4cee6d(0x1b0))||_0x2267fc,_0x3b1da4=await _0x303f9a[_0x4cee6d(0x19b)](_0x36dae1[_0x4cee6d(0x175)],_0x59512f);this[_0x4cee6d(0x16d)][_0x4cee6d(0x16c)][_0x4cee6d(0x198)](_0x4cee6d(0x185))[_0x4cee6d(0x1bf)]={'getRevision':async({revisionId:_0x24d4c9})=>(await this[_0x4cee6d(0x168)](),await this[_0x4cee6d(0x17f)][_0x4cee6d(0x1a5)](_0x24d4c9)),'updateRevisions':async _0x4bc82c=>{const _0x5537a8=_0x4cee6d;await this[_0x5537a8(0x168)]();const _0x565d0a=this[_0x5537a8(0x17e)][_0x5537a8(0x156)];if(_0x3b1da4&&0x1===_0x4bc82c[_0x5537a8(0x161)]&&_0x4bc82c[0x0]['id']===_0x565d0a['id'])return _0x4bc82c;for(const _0x3f9b80 of _0x4bc82c)_0x3f9b80['id']===_0x565d0a['id']&&(_0x3f9b80[_0x5537a8(0x1b9)]=_0x3f9b80[_0x5537a8(0x16b)]===_0x3f9b80[_0x5537a8(0x160)]);return this[_0x5537a8(0x17f)][_0x5537a8(0x18d)](_0x4bc82c,this[_0x5537a8(0x1b8)])[_0x5537a8(0x190)](_0x231be0=>(this[_0x5537a8(0x1b8)]=_0x231be0,_0x4bc82c))[_0x5537a8(0x197)](_0x308455=>{const _0x24eab1=_0x5537a8;if(q(_0x308455)||_0x24eab1(0x1c6)===_0x308455[_0x24eab1(0x1c0)]&&void 0x0!==_0x308455[_0x24eab1(0x17a)][_0x24eab1(0x1b7)]){for(const _0x228b82 of _0x4bc82c){!this[_0x24eab1(0x17e)][_0x24eab1(0x1ba)][_0x24eab1(0x1a5)](_0x228b82['id'])||this[_0x24eab1(0x17e)][_0x24eab1(0x15e)](_0x228b82['id'],_0x228b82,!0x1);}if(q(_0x308455))throw _0x308455;return _0x4bc82c;}throw _0x308455;});}},this[_0x4cee6d(0x1b2)](this[_0x4cee6d(0x17f)],_0x4cee6d(0x18c),(_0x470155,{revisionsData:_0x58db94,requestId:_0x180640})=>{const _0x30dd17=_0x4cee6d;Math[_0x30dd17(0x1a2)](..._0x58db94[_0x30dd17(0x188)](_0x442692=>_0x442692[_0x30dd17(0x160)]))>this[_0x30dd17(0x153)]()-0x1?this[_0x30dd17(0x1ae)]()[_0x30dd17(0x190)](()=>{const _0x69e4c1=_0x30dd17;this[_0x69e4c1(0x189)](_0x58db94,_0x180640);}):this[_0x30dd17(0x189)](_0x58db94,_0x180640);});const {revisions:_0x3e4d1e,requestId:_0x1c4348}=await this[_0x4cee6d(0x17f)][_0x4cee6d(0x154)](_0x36dae1[_0x4cee6d(0x175)]);_0x36dae1[_0x4cee6d(0x1a1)](this),this[_0x4cee6d(0x1b8)]=_0x1c4348,await this[_0x4cee6d(0x17c)](_0x3e4d1e);for(const _0x4f9004 of _0x3e4d1e)this[_0x4cee6d(0x17e)][_0x4cee6d(0x164)](_0x4f9004);this[_0x4cee6d(0x1b2)](_0x2798ad,_0x4cee6d(0x15c),(_0x108aca,_0x419899,_0x50200e)=>{const _0x3d3830=_0x4cee6d;_0x50200e&&(this[_0x3d3830(0x19a)]=_0x2798ad[_0x3d3830(0x15f)],_0x108aca[_0x3d3830(0x17d)]());}),this[_0x4cee6d(0x17e)][_0x4cee6d(0x1a6)](_0x4cee6d(0x1b1))['to'](_0x36dae1,_0x4cee6d(0x1af),_0xfdac86=>_0xfdac86===_0x409a5d[_0x4cee6d(0x158)]);}async[_0x111c3b(0x1bd)](){const _0x199152=_0x111c3b,_0x4726bf=this[_0x199152(0x16d)][_0x199152(0x16c)][_0x199152(0x198)](_0x3caa24),_0x121b68=this[_0x199152(0x16d)][_0x199152(0x16c)][_0x199152(0x198)](_0x59f2c4),_0x99966=async()=>{const _0x21dc89=_0x199152,_0x3a8100=this[_0x21dc89(0x17e)][_0x21dc89(0x156)],_0x1ed3e7=_0x3a8100['id'],_0x1a727a=_0x1ed3e7!==_0x121b68[_0x21dc89(0x162)];if(_0x1a727a){const _0x56d2a9=_0x121b68[_0x21dc89(0x15f)]-this[_0x21dc89(0x19a)],_0xee87d9=this[_0x21dc89(0x153)]();this[_0x21dc89(0x17e)][_0x21dc89(0x1b5)][_0x21dc89(0x15d)]();if(_0x3a8100[_0x21dc89(0x160)]+_0x56d2a9!==_0xee87d9){const _0x20332c=_0x3a8100[_0x21dc89(0x16b)]+_0x56d2a9,_0x102637=this[_0x21dc89(0x16d)][_0x21dc89(0x16c)][_0x21dc89(0x198)](_0x38764b),_0xee270f=this[_0x21dc89(0x17e)][_0x21dc89(0x157)]({'revision':_0x3a8100,'from':_0x20332c,'to':_0xee87d9});_0xee270f['id']=_0x3a8100['id'];const _0x378b44=_0xee270f[_0x21dc89(0x155)][_0x21dc89(0x188)](_0x12367e=>_0x102637[_0x21dc89(0x19c)](_0x12367e));_0x3a8100[_0x21dc89(0x1ad)]({..._0xee270f,'authors':_0x378b44},!0x0),this[_0x21dc89(0x17e)][_0x21dc89(0x15e)](_0x3a8100['id'],_0xee270f,!0x0);}this[_0x21dc89(0x17e)][_0x21dc89(0x176)]=_0xee87d9,(_0x3a8100[_0x21dc89(0x160)]===_0x3a8100[_0x21dc89(0x16b)]&&!this[_0x21dc89(0x17e)][_0x21dc89(0x196)][_0x21dc89(0x1a7)](_0x1ed3e7)&&this[_0x21dc89(0x17e)][_0x21dc89(0x1ba)][_0x21dc89(0x194)][_0x21dc89(0x16a)](_0x1ed3e7),this[_0x21dc89(0x17e)][_0x21dc89(0x177)](_0xee87d9));}const {revisions:_0x249336,requestId:_0x1f98e7}=await this[_0x21dc89(0x17f)][_0x21dc89(0x1bd)](_0x4726bf[_0x21dc89(0x175)],this[_0x21dc89(0x1b8)]);_0x1a727a&&_0x249336[_0x21dc89(0x161)]>0x0?_0x121b68[_0x21dc89(0x15b)]():(await this[_0x21dc89(0x17c)](_0x249336),this[_0x21dc89(0x189)](_0x249336,_0x1f98e7),this[_0x21dc89(0x17e)][_0x21dc89(0x1aa)]());};return _0x121b68[_0x199152(0x1a4)]?_0x99966():new Promise((_0x3640f6,_0x4f0d4c)=>{const _0x1bba30=_0x199152;_0x121b68[_0x1bba30(0x171)](_0x1bba30(0x15c),()=>{const _0x433cb6=_0x1bba30;_0x99966()[_0x433cb6(0x190)](_0x3640f6)[_0x433cb6(0x197)](_0x4f0d4c);});});}[_0x111c3b(0x1c5)](){const _0x48442d=_0x111c3b;super[_0x48442d(0x1c5)]();}async[_0x111c3b(0x168)](){const _0x1ef8a8=_0x111c3b;this[_0x1ef8a8(0x17f)][_0x1ef8a8(0x159)]||await new Promise(_0x260c25=>{const _0x1f01c3=_0x1ef8a8;this[_0x1f01c3(0x1b2)](this[_0x1f01c3(0x17f)],_0x1f01c3(0x163),_0x33347e=>{const _0x4a59af=_0x1f01c3;_0x33347e[_0x4a59af(0x17d)](),_0x260c25();});});}[_0x111c3b(0x153)](){const _0x849781=_0x111c3b,_0x3a6fdd=this[_0x849781(0x16d)][_0x849781(0x16c)][_0x849781(0x198)](_0x59f2c4)[_0x849781(0x15a)][_0x849781(0x187)]()[_0x849781(0x181)]();for(const _0x55659e of _0x3a6fdd)if(_0x849781(0x1c2)!==_0x55659e[_0x849781(0x16e)]||_0x55659e[_0x849781(0x172)])return _0x55659e[_0x849781(0x19f)]+0x1;}[_0x111c3b(0x1ae)](){const _0x3218bd=_0x111c3b,_0x1ceaae=this[_0x3218bd(0x16d)][_0x3218bd(0x16c)][_0x3218bd(0x198)](_0x59f2c4);return new Promise(_0x324dc3=>{const _0x564c24=_0x3218bd;_0x1ceaae[_0x564c24(0x182)]?_0x1ceaae[_0x564c24(0x171)](_0x564c24(0x199),()=>{const _0x4f7a56=_0x564c24;_0x324dc3(this[_0x4f7a56(0x153)]());}):_0x324dc3(this[_0x564c24(0x153)]());});}[_0x111c3b(0x189)](_0x1626f2,_0x1fa771){const _0x1e4607=_0x111c3b,_0x1180f0=this[_0x1e4607(0x17e)][_0x1e4607(0x1ba)];this[_0x1e4607(0x1b8)]=_0x1fa771;for(const _0xdb96ec of _0x1626f2){const _0x53fcf1=_0x1180f0[_0x1e4607(0x1a5)](_0xdb96ec['id']);if(_0x53fcf1){if((_0xdb96ec[_0x1e4607(0x16b)]||_0xdb96ec[_0x1e4607(0x160)])&&(_0xdb96ec[_0x1e4607(0x1b3)]=null),_0x53fcf1===this[_0x1e4607(0x17e)][_0x1e4607(0x156)]){const _0x59f102=Math[_0x1e4607(0x1a2)](_0x53fcf1[_0x1e4607(0x160)],_0xdb96ec[_0x1e4607(0x160)]),_0x72ae59=Math[_0x1e4607(0x1a2)](_0x53fcf1[_0x1e4607(0x16b)],_0xdb96ec[_0x1e4607(0x16b)]);let _0x1c2262;_0x53fcf1[_0x1e4607(0x160)]===_0xdb96ec[_0x1e4607(0x160)]&&_0x53fcf1[_0x1e4607(0x16b)]===_0xdb96ec[_0x1e4607(0x16b)]?(_0x1c2262=!0x0,this[_0x1e4607(0x18b)](_0xdb96ec)):_0xdb96ec[_0x1e4607(0x160)]===_0x59f102&&_0xdb96ec[_0x1e4607(0x16b)]===_0x72ae59?_0x1c2262=!0x1:(_0x53fcf1[_0x1e4607(0x160)]===_0x59f102&&_0x53fcf1[_0x1e4607(0x16b)]===_0x72ae59||this[_0x1e4607(0x167)]({'revision':_0x53fcf1,'from':_0x72ae59,'to':_0x59f102}),_0x1c2262=!0x0),_0x1c2262&&(delete _0xdb96ec[_0x1e4607(0x16b)],delete _0xdb96ec[_0x1e4607(0x160)],delete _0xdb96ec[_0x1e4607(0x1b3)],delete _0xdb96ec[_0x1e4607(0x1be)],delete _0xdb96ec[_0x1e4607(0x155)]);}this[_0x1e4607(0x17e)][_0x1e4607(0x18a)](_0xdb96ec),this[_0x1e4607(0x18b)](_0xdb96ec);}else this[_0x1e4607(0x17e)][_0x1e4607(0x164)](_0xdb96ec);}const _0x44e02a=_0x1180f0[_0x1e4607(0x1ac)]();_0x44e02a[_0x1e4607(0x181)]();for(let _0x492e3c=0x0;_0x492e3c<_0x44e02a[_0x1e4607(0x161)]-0x1;_0x492e3c++){const _0x3e0393=_0x44e02a[_0x492e3c],_0x692f3=_0x44e02a[_0x492e3c+0x1];if(_0x3e0393[_0x1e4607(0x16b)]<_0x692f3[_0x1e4607(0x160)]){const _0x2980c7=_0x692f3[_0x1e4607(0x160)],_0xa00e28=Math[_0x1e4607(0x1a2)](_0x2980c7,_0x3e0393[_0x1e4607(0x160)]);this[_0x1e4607(0x167)]({'revision':_0x3e0393,'from':_0x2980c7,'to':_0xa00e28});}}}[_0x111c3b(0x167)]({revision:_0x5dec03,from:_0x43ae15,to:_0x284bea}={}){const _0x35fd6c=_0x111c3b,_0x230e76=this[_0x35fd6c(0x16d)][_0x35fd6c(0x16c)][_0x35fd6c(0x198)](_0x38764b),_0x3b43e0=this[_0x35fd6c(0x17e)][_0x35fd6c(0x157)]({'revision':_0x5dec03,'from':_0x43ae15,'to':_0x284bea});_0x3b43e0[_0x35fd6c(0x1bb)]=_0x3b43e0[_0x35fd6c(0x155)][_0x35fd6c(0x188)](_0x3f629f=>_0x230e76[_0x35fd6c(0x19c)](_0x3f629f)),_0x5dec03[_0x35fd6c(0x1ad)](_0x3b43e0);}[_0x111c3b(0x18b)](_0x23fec4){const _0xd85583=_0x111c3b,_0x152a4e={};_0x152a4e['id']=_0x23fec4['id'];for(const _0x390a79 of Object[_0xd85583(0x19e)](_0x23fec4))'id'!==_0x390a79&&(_0x152a4e[_0x390a79]=void 0x0);this[_0xd85583(0x17e)][_0xd85583(0x15e)](_0x152a4e['id'],_0x152a4e,!0x0);}async[_0x111c3b(0x17c)](_0x3bfabf){const _0x5b31b4=_0x111c3b,_0x543291=this[_0x5b31b4(0x16d)][_0x5b31b4(0x16c)][_0x5b31b4(0x198)](_0x38764b),{connection:_0x3c76eb}=this[_0x5b31b4(0x16d)][_0x5b31b4(0x16c)][_0x5b31b4(0x198)](_0x3caa24),_0x40c488=new Set();for(const _0x5c3d25 of _0x3bfabf){for(const _0x473152 of _0x5c3d25[_0x5b31b4(0x155)])_0x2971dd(_0x473152);_0x5c3d25[_0x5b31b4(0x191)]&&_0x2971dd(_0x5c3d25[_0x5b31b4(0x191)]);}if(0x0===_0x40c488[_0x5b31b4(0x183)])return;const _0x30dc17=await _0x2f8856[_0x5b31b4(0x174)](_0x3c76eb,Array[_0x5b31b4(0x193)](_0x40c488));for(const _0x383f82 of _0x30dc17)_0x543291[_0x5b31b4(0x19c)](_0x383f82['id'])||_0x543291[_0x5b31b4(0x1c3)](_0x383f82);function _0x2971dd(_0x4c6bf9){const _0x2e7fc8=_0x5b31b4;_0x543291[_0x2e7fc8(0x19c)](_0x4c6bf9)||_0x40c488[_0x2e7fc8(0x186)](_0x4c6bf9);}}}export{c as CloudServicesRevisionHistoryAdapter};function q(_0x238b22){const _0x1ad963=_0x111c3b;return _0x238b22[_0x1ad963(0x165)][_0x1ad963(0x1a0)](_0x1ad963(0x1a9))||_0x238b22[_0x1ad963(0x165)][_0x1ad963(0x1a0)](_0x1ad963(0x178))||_0x238b22[_0x1ad963(0x165)][_0x1ad963(0x1a0)](_0x1ad963(0x166));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26dbf3=_0x4608;(function(_0x1b63c8,_0x7e1ad1){const _0x3ef67e=_0x4608,_0x21098c=_0x1b63c8();while(!![]){try{const _0x4c186c=parseInt(_0x3ef67e(0x177))/0x1*(parseInt(_0x3ef67e(0x195))/0x2)+parseInt(_0x3ef67e(0x18a))/0x3+-parseInt(_0x3ef67e(0x1ab))/0x4+parseInt(_0x3ef67e(0x1a8))/0x5+parseInt(_0x3ef67e(0x1a1))/0x6*(-parseInt(_0x3ef67e(0x18b))/0x7)+parseInt(_0x3ef67e(0x1b0))/0x8*(parseInt(_0x3ef67e(0x17e))/0x9)+parseInt(_0x3ef67e(0x184))/0xa*(parseInt(_0x3ef67e(0x178))/0xb);if(_0x4c186c===_0x7e1ad1)break;else _0x21098c['push'](_0x21098c['shift']());}catch(_0x3b304b){_0x21098c['push'](_0x21098c['shift']());}}}(_0x2572,0x2ab58));import{Plugin as _0x11867d}from'ckeditor5/src/core.js';import{User as _0x49d253,TrackChangesService as _0x4981e7}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x12b532}from'../realtimecollaborativeediting/websocketgateway.js';function _0x4608(_0x21a868,_0x4d111d){const _0x2572ee=_0x2572();return _0x4608=function(_0x460863,_0x31f99d){_0x460863=_0x460863-0x175;let _0x104f8b=_0x2572ee[_0x460863];return _0x104f8b;},_0x4608(_0x21a868,_0x4d111d);}import{CloudServicesCommentsAdapter as _0x29fa61}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x520b1c}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x11867d{static [_0x26dbf3(0x17c)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x4981e7)());[_0x26dbf3(0x1b2)];[_0x26dbf3(0x179)];static get[_0x26dbf3(0x1b5)](){const _0x198490=_0x26dbf3;return[_0x29fa61,_0x198490(0x199),_0x12b532];}static get[_0x26dbf3(0x183)](){const _0x401b4b=_0x26dbf3;return _0x401b4b(0x1b3);}static get[_0x26dbf3(0x1ae)](){return!0x0;}static get[_0x26dbf3(0x1a3)](){return!0x0;}constructor(_0x2b38a2){const _0x1fadb3=_0x26dbf3;super(_0x2b38a2);const _0x4ca6b5=this[_0x1fadb3(0x191)][_0x1fadb3(0x180)][_0x1fadb3(0x17a)](_0x1fadb3(0x1a9));this[_0x1fadb3(0x1b2)]=new Map(),this[_0x1fadb3(0x179)]=new m[(_0x1fadb3(0x17c))](_0x4ca6b5);}[_0x26dbf3(0x198)](){const _0x4762db=_0x26dbf3,_0x5be5d5=this[_0x4762db(0x191)][_0x4762db(0x190)][_0x4762db(0x17a)](_0x12b532),_0x44f29c=this[_0x4762db(0x191)][_0x4762db(0x190)][_0x4762db(0x17a)](_0x4762db(0x199));return _0x44f29c[_0x4762db(0x189)]={'getSuggestion':async _0xccae59=>{const _0x49b9f1=_0x4762db;await this[_0x49b9f1(0x192)]();const _0x4cadac=await this[_0x49b9f1(0x179)][_0x49b9f1(0x17a)](_0xccae59)[_0x49b9f1(0x18c)](k);return await this[_0x49b9f1(0x18e)]([_0x4cadac]),_0x4cadac;},'addSuggestion':async({id:_0xf60bf9,type:_0x4f8729,data:_0x34634f,originalSuggestionId:_0x4fbb3a,attributes:_0x530516})=>{const _0x52c4f1=_0x4762db;await this[_0x52c4f1(0x192)]();const _0x53543f={'id':_0xf60bf9,'type':_0x4f8729,'data':_0x34634f,'originalSuggestionId':_0x4fbb3a,'attributes':_0x530516},_0x30ea36=await this[_0x52c4f1(0x179)][_0x52c4f1(0x1b4)](_0xf60bf9,_0x4f8729,_0x34634f,_0x4fbb3a,_0x530516)[_0x52c4f1(0x18c)](_0x22b71a=>{if(it(_0x22b71a))return new Promise(_0x2ab0b8=>{const _0x2fa454=_0x4608;this[_0x2fa454(0x1b2)][_0x2fa454(0x175)](_0xf60bf9,{'resolve':_0x2ab0b8,'suggestionData':_0x53543f});});throw _0x22b71a;});return this[_0x52c4f1(0x1b2)][_0x52c4f1(0x1b1)](_0xf60bf9),_0x30ea36;},'updateSuggestion':async(_0x5f337d,_0x2a1695)=>{const _0x21cdfb=_0x4762db;if(await this[_0x21cdfb(0x192)](),_0x21cdfb(0x1a0)!==_0x2a1695[_0x21cdfb(0x186)])return this[_0x21cdfb(0x179)][_0x21cdfb(0x196)](_0x5f337d,_0x2a1695)[_0x21cdfb(0x18c)](k);}},this[_0x4762db(0x1ac)](this[_0x4762db(0x179)],_0x4762db(0x194),(_0xdb7ab,_0x380d30)=>{const _0x2f031c=_0x4762db;_0x44f29c[_0x2f031c(0x18f)](_0x380d30['id'])&&(_0x44f29c[_0x2f031c(0x187)](_0x380d30['id'])[_0x2f031c(0x19e)]=_0x380d30[_0x2f031c(0x19e)]);}),this[_0x4762db(0x179)][_0x4762db(0x182)](_0x5be5d5[_0x4762db(0x181)])[_0x4762db(0x185)](_0x553a1d=>(_0x5be5d5[_0x4762db(0x18d)](this),this[_0x4762db(0x18e)](_0x553a1d)[_0x4762db(0x185)](()=>{const _0x490d24=_0x4762db;for(const _0x44a6e1 of _0x553a1d){_0x44f29c[_0x490d24(0x19b)](_0x44a6e1)[_0x490d24(0x1a4)]=!0x0;}})));}async[_0x26dbf3(0x1af)](){const _0x371332=_0x26dbf3,_0x1ebd5b=this[_0x371332(0x191)][_0x371332(0x190)][_0x371332(0x17a)](_0x371332(0x199)),{connection:_0x76e9f5}=this[_0x371332(0x191)][_0x371332(0x190)][_0x371332(0x17a)](_0x12b532),_0x166e3f=await this[_0x371332(0x179)][_0x371332(0x182)](_0x76e9f5);await this[_0x371332(0x18e)](_0x166e3f);for(const {suggestionData:_0x5f48e1,resolve:_0x2bd937}of this[_0x371332(0x1b2)][_0x371332(0x19a)]()){let _0x4c9484=_0x166e3f[_0x371332(0x1a5)](_0x280ef1=>_0x280ef1['id']===_0x5f48e1['id']);_0x4c9484||(_0x4c9484=await this[_0x371332(0x179)][_0x371332(0x1b4)](_0x5f48e1['id'],_0x5f48e1[_0x371332(0x17b)],_0x5f48e1[_0x371332(0x1a7)],_0x5f48e1[_0x371332(0x17f)])),_0x2bd937(_0x4c9484);}for(const _0x4e9e6f of _0x166e3f)_0x1ebd5b[_0x371332(0x18f)](_0x4e9e6f['id'])||_0x1ebd5b[_0x371332(0x19b)](_0x4e9e6f);}async[_0x26dbf3(0x192)](){const _0x25bc28=_0x26dbf3;this[_0x25bc28(0x179)][_0x25bc28(0x19c)]||await new Promise(_0x12d6bf=>{const _0x3cd055=_0x25bc28;this[_0x3cd055(0x1ac)](this[_0x3cd055(0x179)],_0x3cd055(0x19f),_0x42877b=>{const _0x3ee1f8=_0x3cd055;_0x42877b[_0x3ee1f8(0x188)](),_0x12d6bf();});});}async[_0x26dbf3(0x18e)](_0x1ab7ce){const _0x485951=_0x26dbf3,_0x37b0ca=this[_0x485951(0x191)][_0x485951(0x190)][_0x485951(0x17a)](_0x520b1c),{connection:_0x33cba4}=this[_0x485951(0x191)][_0x485951(0x190)][_0x485951(0x17a)](_0x12b532),_0x40f259=new Set();for(const {authorId:_0x35d756}of _0x1ab7ce)_0x37b0ca[_0x485951(0x1a6)](_0x35d756)||_0x40f259[_0x485951(0x1b4)](_0x35d756);if(0x0===_0x40f259[_0x485951(0x176)])return;const _0x550773=await _0x49d253[_0x485951(0x197)](_0x33cba4,Array[_0x485951(0x1aa)](_0x40f259));for(const _0x420fed of _0x550773)_0x37b0ca[_0x485951(0x1a6)](_0x420fed['id'])||_0x37b0ca[_0x485951(0x1a2)](_0x420fed);}}export{m as CloudServicesTrackChangesAdapter};function k(_0x1d84e7){if(it(_0x1d84e7))return new Promise(()=>{});throw _0x1d84e7;}function it(_0x5aca36){const _0x324de4=_0x26dbf3;return _0x5aca36[_0x324de4(0x19d)][_0x324de4(0x1ad)](_0x324de4(0x193))||_0x5aca36[_0x324de4(0x19d)][_0x324de4(0x1ad)](_0x324de4(0x17d));}function _0x2572(){const _0x14af7d=['set','size','4qorXJF','5665xNTIWF','_trackChangesService','get','type','TrackChangesService','cloud-services-internal-error:\x20Request\x20timeout.','73179UrLKuR','originalSuggestionId','config','connection','connect','pluginName','270pHJSnv','then','state','getSuggestion','off','adapter','222516lcjAbm','1064UcRZxJ','catch','addToReconnectionStack','_fetchMissingUsersForThreads','hasSuggestion','plugins','editor','_waitForServiceReady','cloud-services-internal-error:\x20Not\x20connected.','suggestionUpdated','127656bBuqnq','update','getMany','init','TrackChangesEditing','values','addSuggestionData','isConnected','message','attributes','connected','open','7422lsEAov','addUser','isPremiumPlugin','_saved','find','getUser','data','1673425VfUFUS','collaboration.channelId','from','1292980ORmiFR','listenTo','startsWith','isOfficialPlugin','reconnect','8xXiAlG','delete','_bufferedRequests','CloudServicesTrackChangesAdapter','add','requires'];_0x2572=function(){return _0x14af7d;};return _0x2572();}
23
+ const _0x4cc7c0=_0x2ac2;(function(_0x3122a3,_0x2b1a3a){const _0x5a539c=_0x2ac2,_0x3a2164=_0x3122a3();while(!![]){try{const _0x473338=-parseInt(_0x5a539c(0x197))/0x1+-parseInt(_0x5a539c(0x161))/0x2*(-parseInt(_0x5a539c(0x182))/0x3)+-parseInt(_0x5a539c(0x187))/0x4*(-parseInt(_0x5a539c(0x18a))/0x5)+parseInt(_0x5a539c(0x165))/0x6*(parseInt(_0x5a539c(0x16d))/0x7)+-parseInt(_0x5a539c(0x17f))/0x8+parseInt(_0x5a539c(0x170))/0x9+-parseInt(_0x5a539c(0x189))/0xa;if(_0x473338===_0x2b1a3a)break;else _0x3a2164['push'](_0x3a2164['shift']());}catch(_0x81b279){_0x3a2164['push'](_0x3a2164['shift']());}}}(_0x1c32,0xdcd56));import{Plugin as _0x15af06}from'ckeditor5/src/core.js';import{User as _0x4281fa,TrackChangesService as _0x177437}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x1254d6}from'../realtimecollaborativeediting/websocketgateway.js';function _0x2ac2(_0x12f90c,_0x2799b7){const _0x1c32e2=_0x1c32();return _0x2ac2=function(_0x2ac28a,_0x10e2f2){_0x2ac28a=_0x2ac28a-0x159;let _0x3ab890=_0x1c32e2[_0x2ac28a];return _0x3ab890;},_0x2ac2(_0x12f90c,_0x2799b7);}import{CloudServicesCommentsAdapter as _0x48e6a5}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x4732aa}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x15af06{static [_0x4cc7c0(0x194)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x177437)());[_0x4cc7c0(0x190)];[_0x4cc7c0(0x188)];static get[_0x4cc7c0(0x181)](){const _0x39ef1e=_0x4cc7c0;return[_0x48e6a5,_0x39ef1e(0x15b),_0x1254d6];}static get[_0x4cc7c0(0x175)](){const _0x555474=_0x4cc7c0;return _0x555474(0x18c);}static get[_0x4cc7c0(0x15e)](){return!0x0;}static get[_0x4cc7c0(0x15c)](){return!0x0;}constructor(_0x25d310){const _0x2dbff4=_0x4cc7c0;super(_0x25d310);const _0x359246=this[_0x2dbff4(0x16c)][_0x2dbff4(0x18e)][_0x2dbff4(0x159)](_0x2dbff4(0x168));this[_0x2dbff4(0x190)]=new Map(),this[_0x2dbff4(0x188)]=new m[(_0x2dbff4(0x194))](_0x359246);}[_0x4cc7c0(0x191)](){const _0x46b2c3=_0x4cc7c0,_0xe6def=this[_0x46b2c3(0x16c)][_0x46b2c3(0x15f)][_0x46b2c3(0x159)](_0x1254d6),_0x3d8865=this[_0x46b2c3(0x16c)][_0x46b2c3(0x15f)][_0x46b2c3(0x159)](_0x46b2c3(0x15b));return _0x3d8865[_0x46b2c3(0x171)]={'getSuggestion':async _0x31f770=>{const _0x4646e6=_0x46b2c3;await this[_0x4646e6(0x185)]();const _0x3d4741=await this[_0x4646e6(0x188)][_0x4646e6(0x159)](_0x31f770)[_0x4646e6(0x16a)](k);return await this[_0x4646e6(0x192)]([_0x3d4741]),_0x3d4741;},'addSuggestion':async({id:_0x191890,type:_0x2fb869,data:_0x5a1499,originalSuggestionId:_0x123a13,attributes:_0x20f32c})=>{const _0x4f7fcb=_0x46b2c3;await this[_0x4f7fcb(0x185)]();const _0x4d139f={'id':_0x191890,'type':_0x2fb869,'data':_0x5a1499,'originalSuggestionId':_0x123a13,'attributes':_0x20f32c},_0x4cc076=await this[_0x4f7fcb(0x188)][_0x4f7fcb(0x198)](_0x191890,_0x2fb869,_0x5a1499,_0x123a13,_0x20f32c)[_0x4f7fcb(0x16a)](_0x5827ef=>{if(q(_0x5827ef))return new Promise(_0xd62575=>{const _0x440fba=_0x2ac2;this[_0x440fba(0x190)][_0x440fba(0x162)](_0x191890,{'resolve':_0xd62575,'suggestionData':_0x4d139f});});throw _0x5827ef;});return this[_0x4f7fcb(0x190)][_0x4f7fcb(0x195)](_0x191890),_0x4cc076;},'updateSuggestion':async(_0x3520cf,_0x3c46c4)=>{const _0x1ac5e9=_0x46b2c3;if(await this[_0x1ac5e9(0x185)](),_0x1ac5e9(0x172)!==_0x3c46c4[_0x1ac5e9(0x164)])return this[_0x1ac5e9(0x188)][_0x1ac5e9(0x15d)](_0x3520cf,_0x3c46c4)[_0x1ac5e9(0x16a)](k);}},this[_0x46b2c3(0x18b)](this[_0x46b2c3(0x188)],_0x46b2c3(0x178),(_0x3a13ec,_0x8ecf8)=>{const _0x3f3607=_0x46b2c3;_0x3d8865[_0x3f3607(0x184)](_0x8ecf8['id'])&&(_0x3d8865[_0x3f3607(0x166)](_0x8ecf8['id'])[_0x3f3607(0x163)]=_0x8ecf8[_0x3f3607(0x163)]);}),this[_0x46b2c3(0x188)][_0x46b2c3(0x17c)](_0xe6def[_0x46b2c3(0x16f)])[_0x46b2c3(0x167)](_0x5f1e9a=>(_0xe6def[_0x46b2c3(0x186)](this),this[_0x46b2c3(0x192)](_0x5f1e9a)[_0x46b2c3(0x167)](()=>{const _0x9222e9=_0x46b2c3;for(const _0x48b474 of _0x5f1e9a){_0x3d8865[_0x9222e9(0x18d)](_0x48b474)[_0x9222e9(0x174)]=!0x0;}})));}async[_0x4cc7c0(0x17e)](){const _0x563446=_0x4cc7c0,_0x346715=this[_0x563446(0x16c)][_0x563446(0x15f)][_0x563446(0x159)](_0x563446(0x15b)),{connection:_0x23ce5a}=this[_0x563446(0x16c)][_0x563446(0x15f)][_0x563446(0x159)](_0x1254d6),_0x5e399d=await this[_0x563446(0x188)][_0x563446(0x17c)](_0x23ce5a);await this[_0x563446(0x192)](_0x5e399d);for(const {suggestionData:_0x353be1,resolve:_0xd432ee}of this[_0x563446(0x190)][_0x563446(0x17a)]()){let _0x3b4435=_0x5e399d[_0x563446(0x17b)](_0x2cda14=>_0x2cda14['id']===_0x353be1['id']);_0x3b4435||(_0x3b4435=await this[_0x563446(0x188)][_0x563446(0x198)](_0x353be1['id'],_0x353be1[_0x563446(0x169)],_0x353be1[_0x563446(0x173)],_0x353be1[_0x563446(0x180)])),_0xd432ee(_0x3b4435);}for(const _0x40cff8 of _0x5e399d)_0x346715[_0x563446(0x184)](_0x40cff8['id'])||_0x346715[_0x563446(0x18d)](_0x40cff8);}async[_0x4cc7c0(0x185)](){const _0x4d5e7e=_0x4cc7c0;this[_0x4d5e7e(0x188)][_0x4d5e7e(0x17d)]||await new Promise(_0x5885d9=>{const _0x2868dc=_0x4d5e7e;this[_0x2868dc(0x18b)](this[_0x2868dc(0x188)],_0x2868dc(0x196),_0xdf20ee=>{const _0x458aad=_0x2868dc;_0xdf20ee[_0x458aad(0x16e)](),_0x5885d9();});});}async[_0x4cc7c0(0x192)](_0x3c9338){const _0x27a8bb=_0x4cc7c0,_0x41045c=this[_0x27a8bb(0x16c)][_0x27a8bb(0x15f)][_0x27a8bb(0x159)](_0x4732aa),{connection:_0x59ba84}=this[_0x27a8bb(0x16c)][_0x27a8bb(0x15f)][_0x27a8bb(0x159)](_0x1254d6),_0x115996=new Set();for(const {authorId:_0x44a1db}of _0x3c9338)_0x41045c[_0x27a8bb(0x160)](_0x44a1db)||_0x115996[_0x27a8bb(0x198)](_0x44a1db);if(0x0===_0x115996[_0x27a8bb(0x18f)])return;const _0x1c6680=await _0x4281fa[_0x27a8bb(0x177)](_0x59ba84,Array[_0x27a8bb(0x193)](_0x115996));for(const _0x546115 of _0x1c6680)_0x41045c[_0x27a8bb(0x160)](_0x546115['id'])||_0x41045c[_0x27a8bb(0x183)](_0x546115);}}function _0x1c32(){const _0x5f4ea7=['_fetchMissingUsersForThreads','from','TrackChangesService','delete','connected','327653JFhiey','add','get','startsWith','TrackChangesEditing','isPremiumPlugin','update','isOfficialPlugin','plugins','getUser','168664pskwsz','set','attributes','state','18tOVBbd','getSuggestion','then','collaboration.channelId','type','catch','cloud-services-internal-error:\x20Request\x20timeout.','editor','1238111hjUsyw','off','connection','10408014ZSSUeq','adapter','open','data','_saved','pluginName','cloud-services-internal-error:\x20Not\x20connected.','getMany','suggestionUpdated','message','values','find','connect','isConnected','reconnect','11039920bvqYbK','originalSuggestionId','requires','36DTuxDR','addUser','hasSuggestion','_waitForServiceReady','addToReconnectionStack','5874868wRrgkP','_trackChangesService','15555890FtZkSo','5JpFdMx','listenTo','CloudServicesTrackChangesAdapter','addSuggestionData','config','size','_bufferedRequests','init'];_0x1c32=function(){return _0x5f4ea7;};return _0x1c32();}export{m as CloudServicesTrackChangesAdapter};function k(_0x41f269){if(q(_0x41f269))return new Promise(()=>{});throw _0x41f269;}function q(_0x1f6ae1){const _0x19ddd5=_0x4cc7c0;return _0x1f6ae1[_0x19ddd5(0x179)][_0x19ddd5(0x15a)](_0x19ddd5(0x176))||_0x1f6ae1[_0x19ddd5(0x179)][_0x19ddd5(0x15a)](_0x19ddd5(0x16b));}