@ckeditor/ckeditor5-real-time-collaboration 47.2.0-alpha.3 → 47.2.0-alpha.4
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/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x3a9c92=_0x36e7;(function(_0x198b47,_0x48d88f){const _0x40e0b4=_0x36e7,_0x185ad5=_0x198b47();while(!![]){try{const _0x138876=-parseInt(_0x40e0b4(0x1b9))/0x1+-parseInt(_0x40e0b4(0x18f))/0x2*(-parseInt(_0x40e0b4(0x19d))/0x3)+-parseInt(_0x40e0b4(0x187))/0x4*(parseInt(_0x40e0b4(0x1a7))/0x5)+-parseInt(_0x40e0b4(0x197))/0x6*(parseInt(_0x40e0b4(0x1cb))/0x7)+-parseInt(_0x40e0b4(0x188))/0x8+-parseInt(_0x40e0b4(0x1a0))/0x9+parseInt(_0x40e0b4(0x1aa))/0xa*(parseInt(_0x40e0b4(0x19f))/0xb);if(_0x138876===_0x48d88f)break;else _0x185ad5['push'](_0x185ad5['shift']());}catch(_0xa75e26){_0x185ad5['push'](_0x185ad5['shift']());}}}(_0x164f,0x822f9));function _0x164f(){const _0x4a56be=['constructor','CloudServices','CONNECTED','function','10wSatQD','stopListening','isOfficialPlugin','10DdgpAX','config','websocketgateway-missing-websocket-url','from','set','token','websocketgateway-missing-token','then','catch','CONNECTING','has','online','_shouldPluginsReconnect','change:me','isInReconnectionStack','767786LtqskU','pluginName','Connected\x20users\x20limit\x20exceeded','init','cloudservices-init','isPremiumPlugin','connect','_reconnectionStack','listenTo','get','initialReconnectionInterval','add','_domEmitter','delete','removeFromReconnectionStack','WebSocketGateway','cloudservices-reconnection-error','addToReconnectionStack','49fwoYZW','cloudServices.requestTimeout','offline','disconnect','reconnect','plugins','connected','1988504CdCXDD','561304ZbQXPw','code','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','real-time-collaboration','webSocketUrl','_isBrowserOffline','cloudServices.connectionTimeout','10oyKMLQ','all','state','connection','websocketgateway-invalid-plugin-interface','destroy','websocketgateway-plugin-already-registered','bind','508626WAUqpZ','define','showWarning','error','DISCONNECTED','context','406446hfaMDE','_reconnect','29585809AZwBmu','3673710RMdTIm','requires','limitExceeded'];_0x164f=function(){return _0x4a56be;};return _0x164f();}import{ContextPlugin as _0x49b989}from'ckeditor5/src/core.js';function _0x36e7(_0x4bc684,_0x45aed9){const _0x164f0b=_0x164f();return _0x36e7=function(_0x36e750,_0x4c72fe){_0x36e750=_0x36e750-0x184;let _0x1206a9=_0x164f0b[_0x36e750];return _0x1206a9;},_0x36e7(_0x4bc684,_0x45aed9);}import{DomEmitterMixin as _0x597a0c,CKEditorError as _0x3ce1d8}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x33b2b1,WEB_SOCKET_GATEWAY_STATES as _0xef2d92}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x35eeaf}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x49b989{static [_0x3a9c92(0x1c8)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x33b2b1)());static [_0x3a9c92(0x1c3)]=0x3e8;[_0x3a9c92(0x192)];[_0x3a9c92(0x1c0)];[_0x3a9c92(0x1b6)];[_0x3a9c92(0x1c5)];static get[_0x3a9c92(0x1a1)](){const _0x50df64=_0x3a9c92;return[_0x50df64(0x1a4),_0x35eeaf];}static get[_0x3a9c92(0x1ba)](){const _0x2c1294=_0x3a9c92;return _0x2c1294(0x1c8);}static get[_0x3a9c92(0x1a9)](){return!0x0;}static get[_0x3a9c92(0x1be)](){return!0x0;}constructor(_0x54d8cc){const _0x20b3d3=_0x3a9c92;super(_0x54d8cc),this[_0x20b3d3(0x1ae)](_0x20b3d3(0x191),_0xef2d92[_0x20b3d3(0x1a5)]),this[_0x20b3d3(0x1ae)](_0x20b3d3(0x18d),!0x1),this[_0x20b3d3(0x1c0)]=new Set(),this[_0x20b3d3(0x1b6)]=!0x1,this[_0x20b3d3(0x1c5)]=new(_0x597a0c())();}[_0x3a9c92(0x1bc)](){const _0x5c825e=_0x3a9c92,_0x374307=this[_0x5c825e(0x19c)],_0xcf70d2=_0x374307[_0x5c825e(0x185)][_0x5c825e(0x1c2)](_0x5c825e(0x1a4)),_0x479bbb=_0x374307[_0x5c825e(0x185)][_0x5c825e(0x1c2)](_0x35eeaf);if(!_0xcf70d2[_0x5c825e(0x1af)])throw new _0x3ce1d8(_0x5c825e(0x1b0),this);if(!_0xcf70d2[_0x5c825e(0x18c)])throw new _0x3ce1d8(_0x5c825e(0x1ac),this);return this[_0x5c825e(0x1c5)][_0x5c825e(0x1c1)](window,_0x5c825e(0x1cd),()=>this[_0x5c825e(0x18d)]=!0x0),this[_0x5c825e(0x1c5)][_0x5c825e(0x1c1)](window,_0x5c825e(0x1b5),()=>this[_0x5c825e(0x18d)]=!0x1),this[_0x5c825e(0x19c)][_0x5c825e(0x1ab)][_0x5c825e(0x198)](_0x5c825e(0x18e),0xa),this[_0x5c825e(0x19c)][_0x5c825e(0x1ab)][_0x5c825e(0x198)](_0x5c825e(0x1cc),0x14),WebSocketGateway[_0x5c825e(0x1c8)][_0x5c825e(0x1bf)](_0xcf70d2[_0x5c825e(0x1af)],_0xcf70d2[_0x5c825e(0x18c)],{'timeout':0x3e8*this[_0x5c825e(0x19c)][_0x5c825e(0x1ab)][_0x5c825e(0x1c2)](_0x5c825e(0x18e)),'requestTimeout':0x3e8*this[_0x5c825e(0x19c)][_0x5c825e(0x1ab)][_0x5c825e(0x1c2)](_0x5c825e(0x1cc))})[_0x5c825e(0x1b1)](_0xee5b3c=>{const _0x1b043f=_0x5c825e;if(this[_0x1b043f(0x192)]=_0xee5b3c,this[_0x1b043f(0x196)](_0x1b043f(0x191))['to'](_0xee5b3c,_0x1b043f(0x191),this,_0x1b043f(0x18d),(_0x428282,_0x193bd3)=>(_0x1b043f(0x186)!==_0x428282&&(this[_0x1b043f(0x1b6)]=!0x0),_0x193bd3||_0x428282!==_0xef2d92[_0x1b043f(0x1a5)]?_0xef2d92[_0x1b043f(0x19b)]:this[_0x1b043f(0x191)]==_0xef2d92[_0x1b043f(0x19b)]&&this[_0x1b043f(0x1b6)]?(this[_0x1b043f(0x1b6)]=!0x1,this[_0x1b043f(0x19e)](),_0xef2d92[_0x1b043f(0x1b3)]):_0xef2d92[_0x1b043f(0x1a5)])),this[_0x1b043f(0x192)]['on'](_0x1b043f(0x19a),(_0x9bf0c0,_0x9cb142)=>{const _0x2c4bef=_0x1b043f;if(_0x2c4bef(0x1a2)!==_0x9cb142[_0x2c4bef(0x189)])throw console[_0x2c4bef(0x19a)](_0x9cb142),new _0x3ce1d8(_0x2c4bef(0x1bd),null,{'originalError':_0x9cb142});_0x479bbb[_0x2c4bef(0x199)](_0x2c4bef(0x18a),{'title':_0x2c4bef(0x1bb),'namespace':_0x2c4bef(0x18b)});}),!_0xee5b3c['me'])return new Promise(_0x449c73=>_0xee5b3c['on'](_0x1b043f(0x1b7),_0x449c73));})[_0x5c825e(0x1b2)](_0x3b61a0=>{const _0x1311f7=_0x5c825e;throw console[_0x1311f7(0x19a)](_0x3b61a0),new _0x3ce1d8(_0x1311f7(0x1bd),null,{'originalError':_0x3b61a0});});}[_0x3a9c92(0x1ca)](_0x4fac7f){const _0x13bd36=_0x3a9c92;if(_0x13bd36(0x1a6)!=typeof _0x4fac7f[_0x13bd36(0x184)])throw new _0x3ce1d8(_0x13bd36(0x193),this);if(this[_0x13bd36(0x1b8)](_0x4fac7f))throw new _0x3ce1d8(_0x13bd36(0x195),this,{'name':_0x4fac7f[_0x13bd36(0x1a3)][_0x13bd36(0x1ba)]});this[_0x13bd36(0x1c0)][_0x13bd36(0x1c4)](_0x4fac7f);}[_0x3a9c92(0x1c7)](_0x47eac4){const _0x52991c=_0x3a9c92;this[_0x52991c(0x1c0)][_0x52991c(0x1c6)](_0x47eac4);}[_0x3a9c92(0x1b8)](_0x13a2ca){const _0xa77cbd=_0x3a9c92;return this[_0xa77cbd(0x1c0)][_0xa77cbd(0x1b4)](_0x13a2ca);}[_0x3a9c92(0x19e)](){const _0x388d78=_0x3a9c92;return this[_0x388d78(0x192)][_0x388d78(0x184)]()[_0x388d78(0x1b1)](()=>Promise[_0x388d78(0x190)](Array[_0x388d78(0x1ad)](this[_0x388d78(0x1c0)],_0x55054f=>_0x55054f[_0x388d78(0x184)]())))[_0x388d78(0x1b1)](()=>this[_0x388d78(0x191)]=_0xef2d92[_0x388d78(0x1a5)])[_0x388d78(0x1b2)](_0x3b5178=>{const _0x3c8a38=_0x388d78;throw console[_0x3c8a38(0x19a)](_0x3b5178),new _0x3ce1d8(_0x3c8a38(0x1c9),this[_0x3c8a38(0x19c)]);});}[_0x3a9c92(0x1ce)](){const _0x1926e1=_0x3a9c92;this[_0x1926e1(0x192)]&&this[_0x1926e1(0x192)][_0x1926e1(0x1ce)](),this[_0x1926e1(0x191)]=_0xef2d92[_0x1926e1(0x19b)],this[_0x1926e1(0x1c5)][_0x1926e1(0x1a8)]();}[_0x3a9c92(0x194)](){const _0x4226f6=_0x3a9c92;this[_0x4226f6(0x1ce)](),super[_0x4226f6(0x194)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x25aa60)());[_0x397b33(0x170)];[_0x397b33(0x1bc)];[_0x397b33(0x1ba)];[_0x397b33(0x192)];static get[_0x397b33(0x1a0)](){const _0x352000=_0x397b33;return[_0x18c7d9,_0x38e199,_0x352000(0x178),_0x42c6d9,_0x35d7d0];}static get[_0x397b33(0x19d)](){const _0x1669ac=_0x397b33;return _0x1669ac(0x1b1);}static get[_0x397b33(0x16b)](){return!0x0;}static get[_0x397b33(0x15a)](){return!0x0;}constructor(_0x4539dd){const _0x378e10=_0x397b33;super(_0x4539dd);const _0x2ade2a=this[_0x378e10(0x183)][_0x378e10(0x168)][_0x378e10(0x1b7)](_0x378e10(0x1a5));this[_0x378e10(0x170)]=null,this[_0x378e10(0x1bc)]=this[_0x378e10(0x183)][_0x378e10(0x1b6)][_0x378e10(0x1b7)](_0x378e10(0x165)),this[_0x378e10(0x1ba)]=new CloudServicesRevisionHistoryAdapter[(_0x378e10(0x162))](_0x2ade2a);}async[_0x397b33(0x16a)](){const _0x3afd8e=_0x397b33,_0x1182e1=this[_0x3afd8e(0x183)][_0x3afd8e(0x1b6)][_0x3afd8e(0x1b7)](_0x38e199),_0x48c6d0=_0x1182e1[_0x3afd8e(0x1ae)],_0x310282=this[_0x3afd8e(0x183)][_0x3afd8e(0x1b6)][_0x3afd8e(0x1b7)](_0x18c7d9);this[_0x3afd8e(0x1bc)][_0x3afd8e(0x177)]({'history':_0x48c6d0,'getLatestVersion':()=>this[_0x3afd8e(0x1b8)](),'getCurrentRevisionId':()=>_0x1182e1[_0x3afd8e(0x15d)]});const _0x2e12f2=this[_0x3afd8e(0x183)][_0x3afd8e(0x168)][_0x3afd8e(0x1b7)](_0x3afd8e(0x1a9))||_0x38f4ad,_0x18268a=await _0x2392c1[_0x3afd8e(0x167)](_0x310282[_0x3afd8e(0x1be)],_0x2e12f2);this[_0x3afd8e(0x183)][_0x3afd8e(0x1b6)][_0x3afd8e(0x1b7)](_0x3afd8e(0x178))[_0x3afd8e(0x1c3)]={'getRevision':async({revisionId:_0x1fbe82})=>(await this[_0x3afd8e(0x19b)](),await this[_0x3afd8e(0x1ba)][_0x3afd8e(0x1b5)](_0x1fbe82)),'updateRevisions':async _0x39a056=>{const _0x34ddd6=_0x3afd8e;await this[_0x34ddd6(0x19b)]();const _0x190801=this[_0x34ddd6(0x1bc)][_0x34ddd6(0x169)];if(_0x18268a&&0x1===_0x39a056[_0x34ddd6(0x19f)]&&_0x39a056[0x0]['id']===_0x190801['id'])return _0x39a056;for(const _0x105724 of _0x39a056)_0x105724['id']===_0x190801['id']&&(_0x105724[_0x34ddd6(0x1c0)]=_0x105724[_0x34ddd6(0x17d)]===_0x105724[_0x34ddd6(0x164)]);return this[_0x34ddd6(0x1ba)][_0x34ddd6(0x160)](_0x39a056,this[_0x34ddd6(0x170)])[_0x34ddd6(0x1a7)](_0x3672f1=>(this[_0x34ddd6(0x170)]=_0x3672f1,_0x39a056))[_0x34ddd6(0x196)](_0x338a62=>{const _0x4450f0=_0x34ddd6;if(st(_0x338a62)||_0x4450f0(0x17c)===_0x338a62[_0x4450f0(0x1b3)]&&void 0x0!==_0x338a62[_0x4450f0(0x16d)][_0x4450f0(0x1b2)]){for(const _0x32bbdc of _0x39a056){!this[_0x4450f0(0x1bc)][_0x4450f0(0x180)][_0x4450f0(0x1b5)](_0x32bbdc['id'])||this[_0x4450f0(0x1bc)][_0x4450f0(0x1b4)](_0x32bbdc['id'],_0x32bbdc,!0x1);}if(st(_0x338a62))throw _0x338a62;return _0x39a056;}throw _0x338a62;});}},this[_0x3afd8e(0x1a8)](this[_0x3afd8e(0x1ba)],_0x3afd8e(0x181),(_0x287151,{revisionsData:_0x487300,requestId:_0x475032})=>{const _0x5026a7=_0x3afd8e;Math[_0x5026a7(0x1cb)](..._0x487300[_0x5026a7(0x1cd)](_0xb51b97=>_0xb51b97[_0x5026a7(0x164)]))>this[_0x5026a7(0x1a6)]()-0x1?this[_0x5026a7(0x1b8)]()[_0x5026a7(0x1a7)](()=>{const _0x21a7df=_0x5026a7;this[_0x21a7df(0x1c2)](_0x487300,_0x475032);}):this[_0x5026a7(0x1c2)](_0x487300,_0x475032);});const {revisions:_0x351d76,requestId:_0xf56e35}=await this[_0x3afd8e(0x1ba)][_0x3afd8e(0x1ab)](_0x310282[_0x3afd8e(0x1be)]);_0x310282[_0x3afd8e(0x182)](this),this[_0x3afd8e(0x170)]=_0xf56e35,await this[_0x3afd8e(0x19a)](_0x351d76);for(const _0x2a4919 of _0x351d76)this[_0x3afd8e(0x1bc)][_0x3afd8e(0x184)](_0x2a4919);this[_0x3afd8e(0x1a8)](_0x1182e1,_0x3afd8e(0x17a),(_0x440b5e,_0xf6efda,_0x2adbf7)=>{const _0x51a913=_0x3afd8e;_0x2adbf7&&(this[_0x51a913(0x192)]=_0x1182e1[_0x51a913(0x15f)],_0x440b5e[_0x51a913(0x19e)]());}),this[_0x3afd8e(0x1bc)][_0x3afd8e(0x187)](_0x3afd8e(0x1c4))['to'](_0x310282,_0x3afd8e(0x171),_0x278ad9=>_0x278ad9===_0x4e9466[_0x3afd8e(0x1b0)]);}async[_0x397b33(0x1c5)](){const _0x29335a=_0x397b33,_0x51f886=this[_0x29335a(0x183)][_0x29335a(0x1b6)][_0x29335a(0x1b7)](_0x18c7d9),_0x2366dd=this[_0x29335a(0x183)][_0x29335a(0x1b6)][_0x29335a(0x1b7)](_0x38e199),_0x498ea5=async()=>{const _0x46b925=_0x29335a,_0x160b23=this[_0x46b925(0x1bc)][_0x46b925(0x169)],_0x216028=_0x160b23['id'],_0x3c5b8a=_0x216028!==_0x2366dd[_0x46b925(0x15d)];if(_0x3c5b8a){const _0x167c04=_0x2366dd[_0x46b925(0x15f)]-this[_0x46b925(0x192)],_0x48fc44=this[_0x46b925(0x1a6)]();this[_0x46b925(0x1bc)][_0x46b925(0x17f)][_0x46b925(0x173)]();if(_0x160b23[_0x46b925(0x164)]+_0x167c04!==_0x48fc44){const _0x38fed7=_0x160b23[_0x46b925(0x17d)]+_0x167c04,_0x587311=this[_0x46b925(0x183)][_0x46b925(0x1b6)][_0x46b925(0x1b7)](_0x35d7d0),_0x3b04ad=this[_0x46b925(0x1bc)][_0x46b925(0x186)]({'revision':_0x160b23,'from':_0x38fed7,'to':_0x48fc44});_0x3b04ad['id']=_0x160b23['id'];const _0x2e7217=_0x3b04ad[_0x46b925(0x15c)][_0x46b925(0x1cd)](_0x13110d=>_0x587311[_0x46b925(0x16c)](_0x13110d));_0x160b23[_0x46b925(0x16f)]({..._0x3b04ad,'authors':_0x2e7217},!0x0),this[_0x46b925(0x1bc)][_0x46b925(0x1b4)](_0x160b23['id'],_0x3b04ad,!0x0);}this[_0x46b925(0x1bc)][_0x46b925(0x1a3)]=_0x48fc44,(_0x160b23[_0x46b925(0x164)]===_0x160b23[_0x46b925(0x17d)]&&!this[_0x46b925(0x1bc)][_0x46b925(0x18f)][_0x46b925(0x189)](_0x216028)&&this[_0x46b925(0x1bc)][_0x46b925(0x180)][_0x46b925(0x18a)][_0x46b925(0x198)](_0x216028),this[_0x46b925(0x1bc)][_0x46b925(0x1bb)](_0x48fc44));}const {revisions:_0x560c2d,requestId:_0x5e9052}=await this[_0x46b925(0x1ba)][_0x46b925(0x1c5)](_0x51f886[_0x46b925(0x1be)],this[_0x46b925(0x170)]);_0x3c5b8a&&_0x560c2d[_0x46b925(0x19f)]>0x0?_0x2366dd[_0x46b925(0x1af)]():(await this[_0x46b925(0x19a)](_0x560c2d),this[_0x46b925(0x1c2)](_0x560c2d,_0x5e9052),this[_0x46b925(0x1bc)][_0x46b925(0x161)]());};return _0x2366dd[_0x29335a(0x197)]?_0x498ea5():new Promise((_0x3a46e7,_0x3c1e3b)=>{const _0x206e8c=_0x29335a;_0x2366dd[_0x206e8c(0x1c9)](_0x206e8c(0x17a),()=>{const _0x336526=_0x206e8c;_0x498ea5()[_0x336526(0x1a7)](_0x3a46e7)[_0x336526(0x196)](_0x3c1e3b);});});}[_0x397b33(0x18c)](){const _0x1a3622=_0x397b33;super[_0x1a3622(0x18c)]();}async[_0x397b33(0x19b)](){const _0x1ec7b2=_0x397b33;this[_0x1ec7b2(0x1ba)][_0x1ec7b2(0x194)]||await new Promise(_0xd81447=>{const _0x412ddb=_0x1ec7b2;this[_0x412ddb(0x1a8)](this[_0x412ddb(0x1ba)],_0x412ddb(0x175),_0x344bcb=>{const _0x326f9d=_0x412ddb;_0x344bcb[_0x326f9d(0x19e)](),_0xd81447();});});}[_0x397b33(0x1a6)](){const _0x4ab8cd=_0x397b33,_0x580257=this[_0x4ab8cd(0x183)][_0x4ab8cd(0x1b6)][_0x4ab8cd(0x1b7)](_0x38e199)[_0x4ab8cd(0x1ae)][_0x4ab8cd(0x176)]()[_0x4ab8cd(0x188)]();for(const _0x1dcc69 of _0x580257)if(_0x4ab8cd(0x1c6)!==_0x1dcc69[_0x4ab8cd(0x179)]||_0x1dcc69[_0x4ab8cd(0x19c)])return _0x1dcc69[_0x4ab8cd(0x174)]+0x1;}[_0x397b33(0x1b8)](){const _0x40e6ea=_0x397b33,_0x34f916=this[_0x40e6ea(0x183)][_0x40e6ea(0x1b6)][_0x40e6ea(0x1b7)](_0x38e199);return new Promise(_0x3db574=>{const _0x55a492=_0x40e6ea;_0x34f916[_0x55a492(0x1c7)]?_0x34f916[_0x55a492(0x1c9)](_0x55a492(0x1bd),()=>{const _0xf63168=_0x55a492;_0x3db574(this[_0xf63168(0x1a6)]());}):_0x3db574(this[_0x55a492(0x1a6)]());});}[_0x397b33(0x1c2)](_0x5a41e0,_0x21f80b){const _0x5d2f6d=_0x397b33,_0x5185eb=this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x180)];this[_0x5d2f6d(0x170)]=_0x21f80b;for(const _0x7f9168 of _0x5a41e0){const _0x1e61c6=_0x5185eb[_0x5d2f6d(0x1b5)](_0x7f9168['id']);if(_0x1e61c6){if((_0x7f9168[_0x5d2f6d(0x17d)]||_0x7f9168[_0x5d2f6d(0x164)])&&(_0x7f9168[_0x5d2f6d(0x195)]=null),_0x1e61c6===this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x169)]){const _0x183bed=Math[_0x5d2f6d(0x1cb)](_0x1e61c6[_0x5d2f6d(0x164)],_0x7f9168[_0x5d2f6d(0x164)]),_0x2899be=Math[_0x5d2f6d(0x1cb)](_0x1e61c6[_0x5d2f6d(0x17d)],_0x7f9168[_0x5d2f6d(0x17d)]);let _0x675018;_0x1e61c6[_0x5d2f6d(0x164)]===_0x7f9168[_0x5d2f6d(0x164)]&&_0x1e61c6[_0x5d2f6d(0x17d)]===_0x7f9168[_0x5d2f6d(0x17d)]?(_0x675018=!0x0,this[_0x5d2f6d(0x15e)](_0x7f9168)):_0x7f9168[_0x5d2f6d(0x164)]===_0x183bed&&_0x7f9168[_0x5d2f6d(0x17d)]===_0x2899be?_0x675018=!0x1:(_0x1e61c6[_0x5d2f6d(0x164)]===_0x183bed&&_0x1e61c6[_0x5d2f6d(0x17d)]===_0x2899be||this[_0x5d2f6d(0x193)]({'revision':_0x1e61c6,'from':_0x2899be,'to':_0x183bed}),_0x675018=!0x0),_0x675018&&(delete _0x7f9168[_0x5d2f6d(0x17d)],delete _0x7f9168[_0x5d2f6d(0x164)],delete _0x7f9168[_0x5d2f6d(0x195)],delete _0x7f9168[_0x5d2f6d(0x18e)],delete _0x7f9168[_0x5d2f6d(0x15c)]);}this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x172)](_0x7f9168),this[_0x5d2f6d(0x15e)](_0x7f9168);}else this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x184)](_0x7f9168);}const _0x3a0a2d=_0x5185eb[_0x5d2f6d(0x159)]();_0x3a0a2d[_0x5d2f6d(0x188)]();for(let _0x470de9=0x0;_0x470de9<_0x3a0a2d[_0x5d2f6d(0x19f)]-0x1;_0x470de9++){const _0x43e8cb=_0x3a0a2d[_0x470de9],_0x4f114a=_0x3a0a2d[_0x470de9+0x1];if(_0x43e8cb[_0x5d2f6d(0x17d)]<_0x4f114a[_0x5d2f6d(0x164)]){const _0x276c9c=_0x4f114a[_0x5d2f6d(0x164)],_0x3ab0d8=Math[_0x5d2f6d(0x1cb)](_0x276c9c,_0x43e8cb[_0x5d2f6d(0x164)]);this[_0x5d2f6d(0x193)]({'revision':_0x43e8cb,'from':_0x276c9c,'to':_0x3ab0d8});}}}[_0x397b33(0x193)]({revision:_0x2fda0c,from:_0x1dac06,to:_0x1c6375}={}){const _0x184879=_0x397b33,_0x22fddf=this[_0x184879(0x183)][_0x184879(0x1b6)][_0x184879(0x1b7)](_0x35d7d0),_0x46162e=this[_0x184879(0x1bc)][_0x184879(0x186)]({'revision':_0x2fda0c,'from':_0x1dac06,'to':_0x1c6375});_0x46162e[_0x184879(0x190)]=_0x46162e[_0x184879(0x15c)][_0x184879(0x1cd)](_0x28e096=>_0x22fddf[_0x184879(0x16c)](_0x28e096)),_0x2fda0c[_0x184879(0x16f)](_0x46162e);}[_0x397b33(0x15e)](_0xaac437){const _0x58482b=_0x397b33,_0x4bd2a9={};_0x4bd2a9['id']=_0xaac437['id'];for(const _0x107329 of Object[_0x58482b(0x1c1)](_0xaac437))'id'!==_0x107329&&(_0x4bd2a9[_0x107329]=void 0x0);this[_0x58482b(0x1bc)][_0x58482b(0x1b4)](_0x4bd2a9['id'],_0x4bd2a9,!0x0);}async[_0x397b33(0x19a)](_0x222d63){const _0x3ddeef=_0x397b33,_0x3fd26d=this[_0x3ddeef(0x183)][_0x3ddeef(0x1b6)][_0x3ddeef(0x1b7)](_0x35d7d0),{connection:_0x2e9ee5}=this[_0x3ddeef(0x183)][_0x3ddeef(0x1b6)][_0x3ddeef(0x1b7)](_0x18c7d9),_0x59bce8=new Set();for(const _0x3efed0 of _0x222d63){for(const _0x47945e of _0x3efed0[_0x3ddeef(0x15c)])_0x4d3b83(_0x47945e);_0x3efed0[_0x3ddeef(0x166)]&&_0x4d3b83(_0x3efed0[_0x3ddeef(0x166)]);}if(0x0===_0x59bce8[_0x3ddeef(0x1a2)])return;const _0x43d6c3=await _0x1ebcce[_0x3ddeef(0x1ad)](_0x2e9ee5,Array[_0x3ddeef(0x1ca)](_0x59bce8));for(const _0x569030 of _0x43d6c3)_0x3fd26d[_0x3ddeef(0x16c)](_0x569030['id'])||_0x3fd26d[_0x3ddeef(0x163)](_0x569030);function _0x4d3b83(_0x3b5891){const _0x117936=_0x3ddeef;_0x3fd26d[_0x117936(0x16c)](_0x3b5891)||_0x59bce8[_0x117936(0x18b)](_0x3b5891);}}}function _0x1e32(){const _0x2b2a0a=['_revisions','add','destroy','16ZpnKmn','createdAt','_bufferedUpdates','authors','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_oldOffset','_fixRevision','isConnected','diffData','catch','_isConnected','remove','5jLCxsW','_fetchMissingUsers','_waitForServiceReady','affectsData','pluginName','off','length','requires','message','size','_startingVersion','458724XJZBhc','collaboration.channelId','_getLatestVersionFromServerOperations','then','listenTo','cloudServices.bundleVersion','98ZnvvQe','connect','9748mkKOQb','getMany','serverHistory','_handleReconnectionError','CONNECTED','CloudServicesRevisionHistoryAdapter','wrongRequestId','code','_bufferUpdate','getRevision','plugins','get','_getLatestVersion','4544577BayBPx','_revisionHistoryService','_createCurrentRevision','_revisionTracker','change:_isPendingUpdate','connection','cloud-services-internal-error:\x20Not\x20connected.','isEmptyCurrent','keys','_handleRevisionsUpdate','adapter','isEnabled','reconnect','marker','_isPendingUpdate','5132619tYnZWF','once','from','max','startsWith','map','getRevisions','isPremiumPlugin','7987250auMKWi','authorsIds','sessionId','_preventResendingRevisionData','_offset','updateRevisions','sendBufferedUpdates','RevisionHistoryService','addUser','toVersion','RevisionTracker','creatorId','isBundleUploaded','config','currentRevision','init','isOfficialPlugin','getUser','data','4HRrLVZ','_update','_lastRequestId','state','setRevisionData','reInit','baseVersion','connected','getOperations','setSource','RevisionHistory','type','change:_isConnected','cloud-services-internal-error:\x20Request\x20timeout.','400','fromVersion','8331950TCaylE','_revisionDataBuilder','repository','revisionsUpdated','addToReconnectionStack','editor','addRevisionData','4400766rtpKnn','buildRevisionData','bind','reverse','has'];_0x1e32=function(){return _0x2b2a0a;};return _0x1e32();}function st(_0x254854){const _0x2a6f1f=_0x397b33;return _0x254854[_0x2a6f1f(0x1a1)][_0x2a6f1f(0x1cc)](_0x2a6f1f(0x191))||_0x254854[_0x2a6f1f(0x1a1)][_0x2a6f1f(0x1cc)](_0x2a6f1f(0x1bf))||_0x254854[_0x2a6f1f(0x1a1)][_0x2a6f1f(0x1cc)](_0x2a6f1f(0x17b));}
|
|
23
|
+
const _0x5576b1=_0x4d6e;function _0x4d6e(_0x2eaa4b,_0xb4c24e){const _0x29a19f=_0x29a1();return _0x4d6e=function(_0x4d6e7d,_0x1b8448){_0x4d6e7d=_0x4d6e7d-0x1ae;let _0x8207f3=_0x29a19f[_0x4d6e7d];return _0x8207f3;},_0x4d6e(_0x2eaa4b,_0xb4c24e);}(function(_0x5f1676,_0x14c429){const _0x14f192=_0x4d6e,_0xdfa57=_0x5f1676();while(!![]){try{const _0x55f5d7=-parseInt(_0x14f192(0x1ef))/0x1+-parseInt(_0x14f192(0x1d1))/0x2+-parseInt(_0x14f192(0x1da))/0x3*(parseInt(_0x14f192(0x1b3))/0x4)+parseInt(_0x14f192(0x20b))/0x5+-parseInt(_0x14f192(0x1d7))/0x6+-parseInt(_0x14f192(0x1ce))/0x7+-parseInt(_0x14f192(0x20c))/0x8*(-parseInt(_0x14f192(0x1b4))/0x9);if(_0x55f5d7===_0x14c429)break;else _0xdfa57['push'](_0xdfa57['shift']());}catch(_0x20ece7){_0xdfa57['push'](_0xdfa57['shift']());}}}(_0x29a1,0x645c8));import{Plugin as _0x2cb803}from'ckeditor5/src/core.js';import{version as _0x4b670a}from'ckeditor5/src/utils.js';import{Users as _0x5a7594}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x29a1(){const _0x433621=['cloud-services-internal-error:\x20Request\x20timeout.','getMany','addToReconnectionStack','getUser','connection','creatorId','state','33368ccJCBA','207nGalWp','_getLatestVersion','_offset','CONNECTED','remove','getRevision','catch','startsWith','_revisions','RevisionTracker','cloud-services-internal-error:\x20Not\x20connected.','_revisionTracker','destroy','marker','isEmptyCurrent','map','_createCurrentRevision','sendBufferedUpdates','400','serverHistory','_lastRequestId','reconnect','_bufferedUpdates','RevisionHistoryService','repository','off','3785355KDFcGc','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_isPendingUpdate','609832wFtrhz','getRevisions','from','_bufferUpdate','reInit','addUser','3933828KaPguQ','init','isOfficialPlugin','51grroWt','_getLatestVersionFromServerOperations','RevisionHistory','authors','sessionId','get','toVersion','requires','affectsData','keys','setSource','updateRevisions','pluginName','adapter','authorsIds','wrongRequestId','connect','add','addRevisionData','type','CloudServicesRevisionHistoryAdapter','296277sSEpdO','fromVersion','_revisionHistoryService','_oldOffset','size','_fetchMissingUsers','has','setRevisionData','connected','isBundleUploaded','_isConnected','isPremiumPlugin','isConnected','baseVersion','bind','data','_handleReconnectionError','once','diffData','_fixRevision','_update','reverse','max','message','listenTo','cloudServices.bundleVersion','isEnabled','plugins','4100235IogwBk','532328MPcIOA','getOperations','length','_preventResendingRevisionData','change:_isPendingUpdate','_handleRevisionsUpdate','revisionsUpdated','config','_revisionDataBuilder','collaboration.channelId','then','createdAt','editor','_startingVersion','_waitForServiceReady','change:_isConnected','buildRevisionData','code','currentRevision'];_0x29a1=function(){return _0x433621;};return _0x29a1();}import{RealTimeCollaborationClient as _0x8aa0ad}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0xdf84aa}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1be50d}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x379d5e,RevisionHistoryService as _0xd12274,User as _0x2b2181,WEB_SOCKET_GATEWAY_STATES as _0x5af69a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x2cb803{static [_0x5576b1(0x1cb)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0xd12274)());[_0x5576b1(0x1c8)];[_0x5576b1(0x1bf)];[_0x5576b1(0x1f1)];[_0x5576b1(0x1f2)];static get[_0x5576b1(0x1e1)](){const _0x1444f5=_0x5576b1;return[_0xdf84aa,_0x8aa0ad,_0x1444f5(0x1dc),_0x1be50d,_0x5a7594];}static get[_0x5576b1(0x1e6)](){const _0x184c61=_0x5576b1;return _0x184c61(0x1ee);}static get[_0x5576b1(0x1d9)](){return!0x0;}static get[_0x5576b1(0x1fa)](){return!0x0;}constructor(_0x3fbe18){const _0x3d7b7e=_0x5576b1;super(_0x3fbe18);const _0x294e6c=this[_0x3d7b7e(0x218)][_0x3d7b7e(0x213)][_0x3d7b7e(0x1df)](_0x3d7b7e(0x215));this[_0x3d7b7e(0x1c8)]=null,this[_0x3d7b7e(0x1bf)]=this[_0x3d7b7e(0x218)][_0x3d7b7e(0x20a)][_0x3d7b7e(0x1df)](_0x3d7b7e(0x1bd)),this[_0x3d7b7e(0x1f1)]=new CloudServicesRevisionHistoryAdapter[(_0x3d7b7e(0x1cb))](_0x294e6c);}async[_0x5576b1(0x1d8)](){const _0x48d7e7=_0x5576b1,_0x3193ea=this[_0x48d7e7(0x218)][_0x48d7e7(0x20a)][_0x48d7e7(0x1df)](_0x8aa0ad),_0x304bac=_0x3193ea[_0x48d7e7(0x1c7)],_0x1377ec=this[_0x48d7e7(0x218)][_0x48d7e7(0x20a)][_0x48d7e7(0x1df)](_0xdf84aa);this[_0x48d7e7(0x1bf)][_0x48d7e7(0x1e4)]({'history':_0x304bac,'getLatestVersion':()=>this[_0x48d7e7(0x1b5)](),'getCurrentRevisionId':()=>_0x3193ea[_0x48d7e7(0x1de)]});const _0x3724e0=this[_0x48d7e7(0x218)][_0x48d7e7(0x213)][_0x48d7e7(0x1df)](_0x48d7e7(0x208))||_0x4b670a,_0x4d7fe6=await _0x379d5e[_0x48d7e7(0x1f8)](_0x1377ec[_0x48d7e7(0x1b0)],_0x3724e0);this[_0x48d7e7(0x218)][_0x48d7e7(0x20a)][_0x48d7e7(0x1df)](_0x48d7e7(0x1dc))[_0x48d7e7(0x1e7)]={'getRevision':async({revisionId:_0x44261c})=>(await this[_0x48d7e7(0x21a)](),await this[_0x48d7e7(0x1f1)][_0x48d7e7(0x1b9)](_0x44261c)),'updateRevisions':async _0x3a2ceb=>{const _0x2a25d9=_0x48d7e7;await this[_0x2a25d9(0x21a)]();const _0x4c6cad=this[_0x2a25d9(0x1bf)][_0x2a25d9(0x21e)];if(_0x4d7fe6&&0x1===_0x3a2ceb[_0x2a25d9(0x20e)]&&_0x3a2ceb[0x0]['id']===_0x4c6cad['id'])return _0x3a2ceb;for(const _0x1cca6d of _0x3a2ceb)_0x1cca6d['id']===_0x4c6cad['id']&&(_0x1cca6d[_0x2a25d9(0x1c2)]=_0x1cca6d[_0x2a25d9(0x1f0)]===_0x1cca6d[_0x2a25d9(0x1e0)]);return this[_0x2a25d9(0x1f1)][_0x2a25d9(0x1e5)](_0x3a2ceb,this[_0x2a25d9(0x1c8)])[_0x2a25d9(0x216)](_0x1317de=>(this[_0x2a25d9(0x1c8)]=_0x1317de,_0x3a2ceb))[_0x2a25d9(0x1ba)](_0x23146c=>{const _0xfacb3c=_0x2a25d9;if(st(_0x23146c)||_0xfacb3c(0x1c6)===_0x23146c[_0xfacb3c(0x21d)]&&void 0x0!==_0x23146c[_0xfacb3c(0x1fe)][_0xfacb3c(0x1e9)]){for(const _0x59d258 of _0x3a2ceb){!this[_0xfacb3c(0x1bf)][_0xfacb3c(0x1cc)][_0xfacb3c(0x1b9)](_0x59d258['id'])||this[_0xfacb3c(0x1bf)][_0xfacb3c(0x1d4)](_0x59d258['id'],_0x59d258,!0x1);}if(st(_0x23146c))throw _0x23146c;return _0x3a2ceb;}throw _0x23146c;});}},this[_0x48d7e7(0x207)](this[_0x48d7e7(0x1f1)],_0x48d7e7(0x212),(_0x141b1f,{revisionsData:_0x146ce7,requestId:_0x21c698})=>{const _0x5923e6=_0x48d7e7;Math[_0x5923e6(0x205)](..._0x146ce7[_0x5923e6(0x1c3)](_0x32686d=>_0x32686d[_0x5923e6(0x1e0)]))>this[_0x5923e6(0x1db)]()-0x1?this[_0x5923e6(0x1b5)]()[_0x5923e6(0x216)](()=>{const _0x278d83=_0x5923e6;this[_0x278d83(0x211)](_0x146ce7,_0x21c698);}):this[_0x5923e6(0x211)](_0x146ce7,_0x21c698);});const {revisions:_0x2a1be1,requestId:_0xb710d4}=await this[_0x48d7e7(0x1f1)][_0x48d7e7(0x1ea)](_0x1377ec[_0x48d7e7(0x1b0)]);_0x1377ec[_0x48d7e7(0x1ae)](this),this[_0x48d7e7(0x1c8)]=_0xb710d4,await this[_0x48d7e7(0x1f4)](_0x2a1be1);for(const _0x213d10 of _0x2a1be1)this[_0x48d7e7(0x1bf)][_0x48d7e7(0x1ec)](_0x213d10);this[_0x48d7e7(0x207)](_0x3193ea,_0x48d7e7(0x21b),(_0x246f21,_0x4540f7,_0x2872b0)=>{const _0x377de4=_0x48d7e7;_0x2872b0&&(this[_0x377de4(0x1f2)]=_0x3193ea[_0x377de4(0x1b6)],_0x246f21[_0x377de4(0x1cd)]());}),this[_0x48d7e7(0x1bf)][_0x48d7e7(0x1fd)](_0x48d7e7(0x209))['to'](_0x1377ec,_0x48d7e7(0x1b2),_0x10dfa8=>_0x10dfa8===_0x5af69a[_0x48d7e7(0x1b7)]);}async[_0x5576b1(0x1c9)](){const _0x5e805b=_0x5576b1,_0xf2b7a5=this[_0x5e805b(0x218)][_0x5e805b(0x20a)][_0x5e805b(0x1df)](_0xdf84aa),_0x465b9a=this[_0x5e805b(0x218)][_0x5e805b(0x20a)][_0x5e805b(0x1df)](_0x8aa0ad),_0x2bc8fc=async()=>{const _0x44e5ff=_0x5e805b,_0x5ae791=this[_0x44e5ff(0x1bf)][_0x44e5ff(0x21e)],_0x3cc8ed=_0x5ae791['id'],_0x489bbe=_0x3cc8ed!==_0x465b9a[_0x44e5ff(0x1de)];if(_0x489bbe){const _0x91c227=_0x465b9a[_0x44e5ff(0x1b6)]-this[_0x44e5ff(0x1f2)],_0xd51f71=this[_0x44e5ff(0x1db)]();this[_0x44e5ff(0x1bf)][_0x44e5ff(0x214)][_0x44e5ff(0x1d5)]();if(_0x5ae791[_0x44e5ff(0x1e0)]+_0x91c227!==_0xd51f71){const _0x356e65=_0x5ae791[_0x44e5ff(0x1f0)]+_0x91c227,_0x2c800a=this[_0x44e5ff(0x218)][_0x44e5ff(0x20a)][_0x44e5ff(0x1df)](_0x5a7594),_0x345e31=this[_0x44e5ff(0x1bf)][_0x44e5ff(0x21c)]({'revision':_0x5ae791,'from':_0x356e65,'to':_0xd51f71});_0x345e31['id']=_0x5ae791['id'];const _0x2d2e81=_0x345e31[_0x44e5ff(0x1e8)][_0x44e5ff(0x1c3)](_0x580b09=>_0x2c800a[_0x44e5ff(0x1af)](_0x580b09));_0x5ae791[_0x44e5ff(0x203)]({..._0x345e31,'authors':_0x2d2e81},!0x0),this[_0x44e5ff(0x1bf)][_0x44e5ff(0x1d4)](_0x5ae791['id'],_0x345e31,!0x0);}this[_0x44e5ff(0x1bf)][_0x44e5ff(0x219)]=_0xd51f71,(_0x5ae791[_0x44e5ff(0x1e0)]===_0x5ae791[_0x44e5ff(0x1f0)]&&!this[_0x44e5ff(0x1bf)][_0x44e5ff(0x1ca)][_0x44e5ff(0x1f5)](_0x3cc8ed)&&this[_0x44e5ff(0x1bf)][_0x44e5ff(0x1cc)][_0x44e5ff(0x1bc)][_0x44e5ff(0x1b8)](_0x3cc8ed),this[_0x44e5ff(0x1bf)][_0x44e5ff(0x1c4)](_0xd51f71));}const {revisions:_0x5ab6d3,requestId:_0x8520db}=await this[_0x44e5ff(0x1f1)][_0x44e5ff(0x1c9)](_0xf2b7a5[_0x44e5ff(0x1b0)],this[_0x44e5ff(0x1c8)]);_0x489bbe&&_0x5ab6d3[_0x44e5ff(0x20e)]>0x0?_0x465b9a[_0x44e5ff(0x1ff)]():(await this[_0x44e5ff(0x1f4)](_0x5ab6d3),this[_0x44e5ff(0x211)](_0x5ab6d3,_0x8520db),this[_0x44e5ff(0x1bf)][_0x44e5ff(0x1c5)]());};return _0x465b9a[_0x5e805b(0x1f9)]?_0x2bc8fc():new Promise((_0x5c76de,_0x2f571e)=>{const _0x12cc3e=_0x5e805b;_0x465b9a[_0x12cc3e(0x200)](_0x12cc3e(0x21b),()=>{const _0x6583e4=_0x12cc3e;_0x2bc8fc()[_0x6583e4(0x216)](_0x5c76de)[_0x6583e4(0x1ba)](_0x2f571e);});});}[_0x5576b1(0x1c0)](){const _0x5ad1d2=_0x5576b1;super[_0x5ad1d2(0x1c0)]();}async[_0x5576b1(0x21a)](){const _0x475497=_0x5576b1;this[_0x475497(0x1f1)][_0x475497(0x1fb)]||await new Promise(_0x4cf687=>{const _0x20dbfb=_0x475497;this[_0x20dbfb(0x207)](this[_0x20dbfb(0x1f1)],_0x20dbfb(0x1f7),_0x18baf7=>{const _0x469731=_0x20dbfb;_0x18baf7[_0x469731(0x1cd)](),_0x4cf687();});});}[_0x5576b1(0x1db)](){const _0x3ff0d3=_0x5576b1,_0x7852cd=this[_0x3ff0d3(0x218)][_0x3ff0d3(0x20a)][_0x3ff0d3(0x1df)](_0x8aa0ad)[_0x3ff0d3(0x1c7)][_0x3ff0d3(0x20d)]()[_0x3ff0d3(0x204)]();for(const _0x3d05a5 of _0x7852cd)if(_0x3ff0d3(0x1c1)!==_0x3d05a5[_0x3ff0d3(0x1ed)]||_0x3d05a5[_0x3ff0d3(0x1e2)])return _0x3d05a5[_0x3ff0d3(0x1fc)]+0x1;}[_0x5576b1(0x1b5)](){const _0x1a8d5f=_0x5576b1,_0x57fb6b=this[_0x1a8d5f(0x218)][_0x1a8d5f(0x20a)][_0x1a8d5f(0x1df)](_0x8aa0ad);return new Promise(_0x5b69e1=>{const _0x4e60dc=_0x1a8d5f;_0x57fb6b[_0x4e60dc(0x1d0)]?_0x57fb6b[_0x4e60dc(0x200)](_0x4e60dc(0x210),()=>{const _0x5d11f7=_0x4e60dc;_0x5b69e1(this[_0x5d11f7(0x1db)]());}):_0x5b69e1(this[_0x4e60dc(0x1db)]());});}[_0x5576b1(0x211)](_0x3634cd,_0x259f37){const _0xa1f054=_0x5576b1,_0x382f87=this[_0xa1f054(0x1bf)][_0xa1f054(0x1cc)];this[_0xa1f054(0x1c8)]=_0x259f37;for(const _0x22a907 of _0x3634cd){const _0x3d42e2=_0x382f87[_0xa1f054(0x1b9)](_0x22a907['id']);if(_0x3d42e2){if((_0x22a907[_0xa1f054(0x1f0)]||_0x22a907[_0xa1f054(0x1e0)])&&(_0x22a907[_0xa1f054(0x201)]=null),_0x3d42e2===this[_0xa1f054(0x1bf)][_0xa1f054(0x21e)]){const _0x36a7b3=Math[_0xa1f054(0x205)](_0x3d42e2[_0xa1f054(0x1e0)],_0x22a907[_0xa1f054(0x1e0)]),_0x8bd3a3=Math[_0xa1f054(0x205)](_0x3d42e2[_0xa1f054(0x1f0)],_0x22a907[_0xa1f054(0x1f0)]);let _0x579a64;_0x3d42e2[_0xa1f054(0x1e0)]===_0x22a907[_0xa1f054(0x1e0)]&&_0x3d42e2[_0xa1f054(0x1f0)]===_0x22a907[_0xa1f054(0x1f0)]?(_0x579a64=!0x0,this[_0xa1f054(0x20f)](_0x22a907)):_0x22a907[_0xa1f054(0x1e0)]===_0x36a7b3&&_0x22a907[_0xa1f054(0x1f0)]===_0x8bd3a3?_0x579a64=!0x1:(_0x3d42e2[_0xa1f054(0x1e0)]===_0x36a7b3&&_0x3d42e2[_0xa1f054(0x1f0)]===_0x8bd3a3||this[_0xa1f054(0x202)]({'revision':_0x3d42e2,'from':_0x8bd3a3,'to':_0x36a7b3}),_0x579a64=!0x0),_0x579a64&&(delete _0x22a907[_0xa1f054(0x1f0)],delete _0x22a907[_0xa1f054(0x1e0)],delete _0x22a907[_0xa1f054(0x201)],delete _0x22a907[_0xa1f054(0x217)],delete _0x22a907[_0xa1f054(0x1e8)]);}this[_0xa1f054(0x1bf)][_0xa1f054(0x1f6)](_0x22a907),this[_0xa1f054(0x20f)](_0x22a907);}else this[_0xa1f054(0x1bf)][_0xa1f054(0x1ec)](_0x22a907);}const _0xef1b89=_0x382f87[_0xa1f054(0x1d2)]();_0xef1b89[_0xa1f054(0x204)]();for(let _0xbf2185=0x0;_0xbf2185<_0xef1b89[_0xa1f054(0x20e)]-0x1;_0xbf2185++){const _0x498136=_0xef1b89[_0xbf2185],_0x11037b=_0xef1b89[_0xbf2185+0x1];if(_0x498136[_0xa1f054(0x1f0)]<_0x11037b[_0xa1f054(0x1e0)]){const _0x18f819=_0x11037b[_0xa1f054(0x1e0)],_0x121897=Math[_0xa1f054(0x205)](_0x18f819,_0x498136[_0xa1f054(0x1e0)]);this[_0xa1f054(0x202)]({'revision':_0x498136,'from':_0x18f819,'to':_0x121897});}}}[_0x5576b1(0x202)]({revision:_0x4270ed,from:_0x2f5587,to:_0x108593}={}){const _0x417364=_0x5576b1,_0x290e26=this[_0x417364(0x218)][_0x417364(0x20a)][_0x417364(0x1df)](_0x5a7594),_0x3edde1=this[_0x417364(0x1bf)][_0x417364(0x21c)]({'revision':_0x4270ed,'from':_0x2f5587,'to':_0x108593});_0x3edde1[_0x417364(0x1dd)]=_0x3edde1[_0x417364(0x1e8)][_0x417364(0x1c3)](_0x3bc2b6=>_0x290e26[_0x417364(0x1af)](_0x3bc2b6)),_0x4270ed[_0x417364(0x203)](_0x3edde1);}[_0x5576b1(0x20f)](_0x2eefc2){const _0x266dc9=_0x5576b1,_0x402bbc={};_0x402bbc['id']=_0x2eefc2['id'];for(const _0x4358a3 of Object[_0x266dc9(0x1e3)](_0x2eefc2))'id'!==_0x4358a3&&(_0x402bbc[_0x4358a3]=void 0x0);this[_0x266dc9(0x1bf)][_0x266dc9(0x1d4)](_0x402bbc['id'],_0x402bbc,!0x0);}async[_0x5576b1(0x1f4)](_0x10e5df){const _0x23b775=_0x5576b1,_0x39aa12=this[_0x23b775(0x218)][_0x23b775(0x20a)][_0x23b775(0x1df)](_0x5a7594),{connection:_0x15149b}=this[_0x23b775(0x218)][_0x23b775(0x20a)][_0x23b775(0x1df)](_0xdf84aa),_0x1911de=new Set();for(const _0x52e426 of _0x10e5df){for(const _0x5f2f6 of _0x52e426[_0x23b775(0x1e8)])_0xbdae95(_0x5f2f6);_0x52e426[_0x23b775(0x1b1)]&&_0xbdae95(_0x52e426[_0x23b775(0x1b1)]);}if(0x0===_0x1911de[_0x23b775(0x1f3)])return;const _0x6f499c=await _0x2b2181[_0x23b775(0x220)](_0x15149b,Array[_0x23b775(0x1d3)](_0x1911de));for(const _0x330e9a of _0x6f499c)_0x39aa12[_0x23b775(0x1af)](_0x330e9a['id'])||_0x39aa12[_0x23b775(0x1d6)](_0x330e9a);function _0xbdae95(_0x26bfcd){const _0x449d62=_0x23b775;_0x39aa12[_0x449d62(0x1af)](_0x26bfcd)||_0x1911de[_0x449d62(0x1eb)](_0x26bfcd);}}}function st(_0x4a6309){const _0x43962b=_0x5576b1;return _0x4a6309[_0x43962b(0x206)][_0x43962b(0x1bb)](_0x43962b(0x1cf))||_0x4a6309[_0x43962b(0x206)][_0x43962b(0x1bb)](_0x43962b(0x1be))||_0x4a6309[_0x43962b(0x206)][_0x43962b(0x1bb)](_0x43962b(0x21f));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x54427a=_0x3ab9;(function(_0x46d421,_0x2b101d){const _0xf36562=_0x3ab9,_0x4159ae=_0x46d421();while(!![]){try{const _0x1460ac=parseInt(_0xf36562(0x15f))/0x1*(parseInt(_0xf36562(0x14a))/0x2)+parseInt(_0xf36562(0x133))/0x3+parseInt(_0xf36562(0x130))/0x4*(parseInt(_0xf36562(0x142))/0x5)+-parseInt(_0xf36562(0x139))/0x6+parseInt(_0xf36562(0x150))/0x7+parseInt(_0xf36562(0x16d))/0x8*(-parseInt(_0xf36562(0x16a))/0x9)+parseInt(_0xf36562(0x132))/0xa*(-parseInt(_0xf36562(0x156))/0xb);if(_0x1460ac===_0x2b101d)break;else _0x4159ae['push'](_0x4159ae['shift']());}catch(_0x38bbe5){_0x4159ae['push'](_0x4159ae['shift']());}}}(_0x3c2e,0x57942));import{Plugin as _0x320069}from'ckeditor5/src/core.js';import{User as _0x545f8c,TrackChangesService as _0xa00712}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5448bd}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x15b5f2}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x3c2e(){const _0x52b160=['message','pluginName','72UXrWvB','getMany','hasSuggestion','add','748772nRJmyL','set','10YTFjyv','349227xeDbfC','isOfficialPlugin','from','adapter','cloud-services-internal-error:\x20Request\x20timeout.','isConnected','3991554GQgDrs','data','find','connection','get','catch','addToReconnectionStack','originalSuggestionId','suggestionUpdated','5AOhmni','isPremiumPlugin','startsWith','editor','state','open','_saved','TrackChangesEditing','1454YrLqCt','_fetchMissingUsersForThreads','TrackChangesService','cloud-services-internal-error:\x20Not\x20connected.','attributes','_waitForServiceReady','4428466cYHhdU','config','addSuggestionData','off','getSuggestion','requires','1525700xDXiBW','update','then','plugins','_trackChangesService','values','connected','type','_bufferedRequests','589tVLPVX','addUser','collaboration.channelId','init','connect','getUser','delete','reconnect','size','CloudServicesTrackChangesAdapter','listenTo','201762hhqUUs'];_0x3c2e=function(){return _0x52b160;};return _0x3c2e();}import{Users as _0x58724b}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x320069{static [_0x54427a(0x14c)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0xa00712)());[_0x54427a(0x15e)];[_0x54427a(0x15a)];static get[_0x54427a(0x155)](){const _0x47bc4a=_0x54427a;return[_0x15b5f2,_0x47bc4a(0x149),_0x5448bd];}static get[_0x54427a(0x16c)](){const _0x246db3=_0x54427a;return _0x246db3(0x168);}static get[_0x54427a(0x134)](){return!0x0;}static get[_0x54427a(0x143)](){return!0x0;}constructor(_0x22bc6d){const _0x3bd318=_0x54427a;super(_0x22bc6d);const _0x3ea69c=this[_0x3bd318(0x145)][_0x3bd318(0x151)][_0x3bd318(0x13d)](_0x3bd318(0x161));this[_0x3bd318(0x15e)]=new Map(),this[_0x3bd318(0x15a)]=new CloudServicesTrackChangesAdapter[(_0x3bd318(0x14c))](_0x3ea69c);}[_0x54427a(0x162)](){const _0x4f27e9=_0x54427a,_0x239992=this[_0x4f27e9(0x145)][_0x4f27e9(0x159)][_0x4f27e9(0x13d)](_0x5448bd),_0x41d77f=this[_0x4f27e9(0x145)][_0x4f27e9(0x159)][_0x4f27e9(0x13d)](_0x4f27e9(0x149));return _0x41d77f[_0x4f27e9(0x136)]={'getSuggestion':async _0x53be8b=>{const _0x51e2a9=_0x4f27e9;await this[_0x51e2a9(0x14f)]();const _0x2f9a6b=await this[_0x51e2a9(0x15a)][_0x51e2a9(0x13d)](_0x53be8b)[_0x51e2a9(0x13e)](k);return await this[_0x51e2a9(0x14b)]([_0x2f9a6b]),_0x2f9a6b;},'addSuggestion':async({id:_0x3a9f2f,type:_0x3a9520,data:_0x27aeaa,originalSuggestionId:_0x38785a,attributes:_0x1f8fd7})=>{const _0x2cd826=_0x4f27e9;await this[_0x2cd826(0x14f)]();const _0x505e1d={'id':_0x3a9f2f,'type':_0x3a9520,'data':_0x27aeaa,'originalSuggestionId':_0x38785a,'attributes':_0x1f8fd7},_0x45ce1e=await this[_0x2cd826(0x15a)][_0x2cd826(0x12f)](_0x3a9f2f,_0x3a9520,_0x27aeaa,_0x38785a,_0x1f8fd7)[_0x2cd826(0x13e)](_0x3c18df=>{if(st(_0x3c18df))return new Promise(_0x463e03=>{const _0x47106a=_0x3ab9;this[_0x47106a(0x15e)][_0x47106a(0x131)](_0x3a9f2f,{'resolve':_0x463e03,'suggestionData':_0x505e1d});});throw _0x3c18df;});return this[_0x2cd826(0x15e)][_0x2cd826(0x165)](_0x3a9f2f),_0x45ce1e;},'updateSuggestion':async(_0x152460,_0x594c27)=>{const _0x40cda8=_0x4f27e9;if(await this[_0x40cda8(0x14f)](),_0x40cda8(0x147)!==_0x594c27[_0x40cda8(0x146)])return this[_0x40cda8(0x15a)][_0x40cda8(0x157)](_0x152460,_0x594c27)[_0x40cda8(0x13e)](k);}},this[_0x4f27e9(0x169)](this[_0x4f27e9(0x15a)],_0x4f27e9(0x141),(_0xd60972,_0x2b67a6)=>{const _0x15f190=_0x4f27e9;_0x41d77f[_0x15f190(0x12e)](_0x2b67a6['id'])&&(_0x41d77f[_0x15f190(0x154)](_0x2b67a6['id'])[_0x15f190(0x14e)]=_0x2b67a6[_0x15f190(0x14e)]);}),this[_0x4f27e9(0x15a)][_0x4f27e9(0x163)](_0x239992[_0x4f27e9(0x13c)])[_0x4f27e9(0x158)](_0x40d881=>(_0x239992[_0x4f27e9(0x13f)](this),this[_0x4f27e9(0x14b)](_0x40d881)[_0x4f27e9(0x158)](()=>{const _0x40a3a1=_0x4f27e9;for(const _0x33c849 of _0x40d881){_0x41d77f[_0x40a3a1(0x152)](_0x33c849)[_0x40a3a1(0x148)]=!0x0;}})));}async[_0x54427a(0x166)](){const _0xf10f72=_0x54427a,_0x23b449=this[_0xf10f72(0x145)][_0xf10f72(0x159)][_0xf10f72(0x13d)](_0xf10f72(0x149)),{connection:_0x5c1dcd}=this[_0xf10f72(0x145)][_0xf10f72(0x159)][_0xf10f72(0x13d)](_0x5448bd),_0x10a3bf=await this[_0xf10f72(0x15a)][_0xf10f72(0x163)](_0x5c1dcd);await this[_0xf10f72(0x14b)](_0x10a3bf);for(const {suggestionData:_0x4287d6,resolve:_0x4a3de3}of this[_0xf10f72(0x15e)][_0xf10f72(0x15b)]()){let _0x2e3d11=_0x10a3bf[_0xf10f72(0x13b)](_0x4c980f=>_0x4c980f['id']===_0x4287d6['id']);_0x2e3d11||(_0x2e3d11=await this[_0xf10f72(0x15a)][_0xf10f72(0x12f)](_0x4287d6['id'],_0x4287d6[_0xf10f72(0x15d)],_0x4287d6[_0xf10f72(0x13a)],_0x4287d6[_0xf10f72(0x140)])),_0x4a3de3(_0x2e3d11);}for(const _0x201c0a of _0x10a3bf)_0x23b449[_0xf10f72(0x12e)](_0x201c0a['id'])||_0x23b449[_0xf10f72(0x152)](_0x201c0a);}async[_0x54427a(0x14f)](){const _0x20d1cb=_0x54427a;this[_0x20d1cb(0x15a)][_0x20d1cb(0x138)]||await new Promise(_0x2bb359=>{const _0x15633d=_0x20d1cb;this[_0x15633d(0x169)](this[_0x15633d(0x15a)],_0x15633d(0x15c),_0x271e22=>{const _0x87cc82=_0x15633d;_0x271e22[_0x87cc82(0x153)](),_0x2bb359();});});}async[_0x54427a(0x14b)](_0x34eef3){const _0x57931e=_0x54427a,_0x1e87a6=this[_0x57931e(0x145)][_0x57931e(0x159)][_0x57931e(0x13d)](_0x58724b),{connection:_0x5bed76}=this[_0x57931e(0x145)][_0x57931e(0x159)][_0x57931e(0x13d)](_0x5448bd),_0x25db5c=new Set();for(const {authorId:_0x31687c}of _0x34eef3)_0x1e87a6[_0x57931e(0x164)](_0x31687c)||_0x25db5c[_0x57931e(0x12f)](_0x31687c);if(0x0===_0x25db5c[_0x57931e(0x167)])return;const _0x434ddb=await _0x545f8c[_0x57931e(0x12d)](_0x5bed76,Array[_0x57931e(0x135)](_0x25db5c));for(const _0x2f0744 of _0x434ddb)_0x1e87a6[_0x57931e(0x164)](_0x2f0744['id'])||_0x1e87a6[_0x57931e(0x160)](_0x2f0744);}}function _0x3ab9(_0x3daafe,_0x54b41d){const _0x3c2e7c=_0x3c2e();return _0x3ab9=function(_0x3ab9cb,_0x3f4405){_0x3ab9cb=_0x3ab9cb-0x12d;let _0x20bbba=_0x3c2e7c[_0x3ab9cb];return _0x20bbba;},_0x3ab9(_0x3daafe,_0x54b41d);}function k(_0x1b0238){if(st(_0x1b0238))return new Promise(()=>{});throw _0x1b0238;}function st(_0x505683){const _0x57171e=_0x54427a;return _0x505683[_0x57171e(0x16b)][_0x57171e(0x144)](_0x57171e(0x14d))||_0x505683[_0x57171e(0x16b)][_0x57171e(0x144)](_0x57171e(0x137));}
|