@ckeditor/ckeditor5-real-time-collaboration 44.1.0-alpha.4 → 44.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +9 -9
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x78b6(_0x5854bc,_0x1668c6){const _0x4f3526=_0x4f35();return _0x78b6=function(_0x78b6e3,_0x4051cd){_0x78b6e3=_0x78b6e3-0xd7;let _0x3548e3=_0x4f3526[_0x78b6e3];return _0x3548e3;},_0x78b6(_0x5854bc,_0x1668c6);}const _0x2eb9b3=_0x78b6;(function(_0x421a52,_0xf101b2){const _0x45abc6=_0x78b6,_0x2566ad=_0x421a52();while(!![]){try{const _0x337d00=parseInt(_0x45abc6(0x10f))/0x1+-parseInt(_0x45abc6(0x11e))/0x2+-parseInt(_0x45abc6(0xfb))/0x3*(-parseInt(_0x45abc6(0xff))/0x4)+-parseInt(_0x45abc6(0x110))/0x5*(-parseInt(_0x45abc6(0x104))/0x6)+-parseInt(_0x45abc6(0x107))/0x7+parseInt(_0x45abc6(0xd7))/0x8+parseInt(_0x45abc6(0xda))/0x9;if(_0x337d00===_0xf101b2)break;else _0x2566ad['push'](_0x2566ad['shift']());}catch(_0x386f6a){_0x2566ad['push'](_0x2566ad['shift']());}}}(_0x4f35,0x853c3));import{ContextPlugin as _0x1e503b}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x49c2c0,CKEditorError as _0x140660}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x58cf32,WEB_SOCKET_GATEWAY_STATES as _0x9549ac}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x41d93e}from'ckeditor5/src/ui.js';class c extends _0x1e503b{static get[_0x2eb9b3(0xfa)](){const _0x368846=_0x2eb9b3;return[_0x368846(0x102),_0x41d93e];}static get[_0x2eb9b3(0x11f)](){const _0x8288ac=_0x2eb9b3;return _0x8288ac(0xf1);}static get[_0x2eb9b3(0xea)](){return!0x0;}static get[_0x2eb9b3(0xdd)](){return!0x0;}constructor(_0xbf2cd0){const _0x406063=_0x2eb9b3;super(_0xbf2cd0),this[_0x406063(0xe3)](_0x406063(0x100),_0x9549ac[_0x406063(0xf5)]),this[_0x406063(0xe3)](_0x406063(0x118),!0x1),this[_0x406063(0x103)]=new Set(),this[_0x406063(0xf3)]=!0x1,this[_0x406063(0xe0)]=Object[_0x406063(0xde)](_0x49c2c0);}[_0x2eb9b3(0x11b)](){const _0x528eb5=_0x2eb9b3,_0x5d9b17=this[_0x528eb5(0x10a)],_0x4d0898=_0x5d9b17[_0x528eb5(0x115)][_0x528eb5(0x119)](_0x528eb5(0x102)),_0x34799a=_0x5d9b17[_0x528eb5(0x115)][_0x528eb5(0x119)](_0x41d93e);if(!_0x4d0898[_0x528eb5(0x120)])throw new _0x140660(_0x528eb5(0xdc),this);if(!_0x4d0898[_0x528eb5(0xd9)])throw new _0x140660(_0x528eb5(0xdf),this);return this[_0x528eb5(0xe0)][_0x528eb5(0xf9)](window,_0x528eb5(0xe8),()=>this[_0x528eb5(0x118)]=!0x0),this[_0x528eb5(0xe0)][_0x528eb5(0xf9)](window,_0x528eb5(0x117),()=>this[_0x528eb5(0x118)]=!0x1),this[_0x528eb5(0x10a)][_0x528eb5(0xf6)][_0x528eb5(0xf7)](_0x528eb5(0x11a),0xa),this[_0x528eb5(0x10a)][_0x528eb5(0xf6)][_0x528eb5(0xf7)](_0x528eb5(0x10b),0x14),c[_0x528eb5(0xf1)][_0x528eb5(0xec)](_0x4d0898[_0x528eb5(0x120)],_0x4d0898[_0x528eb5(0xd9)],{'timeout':0x3e8*this[_0x528eb5(0x10a)][_0x528eb5(0xf6)][_0x528eb5(0x119)](_0x528eb5(0x11a)),'requestTimeout':0x3e8*this[_0x528eb5(0x10a)][_0x528eb5(0xf6)][_0x528eb5(0x119)](_0x528eb5(0x10b))})[_0x528eb5(0xe5)](_0x12666f=>{const _0x4aad1c=_0x528eb5;if(this[_0x4aad1c(0x10c)]=_0x12666f,this[_0x4aad1c(0x101)](_0x4aad1c(0x100))['to'](_0x12666f,_0x4aad1c(0x100),this,_0x4aad1c(0x118),(_0x1ace43,_0x39710c)=>(_0x4aad1c(0x10e)!==_0x1ace43&&(this[_0x4aad1c(0xf3)]=!0x0),_0x39710c||_0x1ace43!==_0x9549ac[_0x4aad1c(0xf5)]?_0x9549ac[_0x4aad1c(0xfd)]:this[_0x4aad1c(0x100)]==_0x9549ac[_0x4aad1c(0xfd)]&&this[_0x4aad1c(0xf3)]?(this[_0x4aad1c(0xf3)]=!0x1,this[_0x4aad1c(0x106)](),_0x9549ac[_0x4aad1c(0xe2)]):_0x9549ac[_0x4aad1c(0xf5)])),this[_0x4aad1c(0x10c)]['on'](_0x4aad1c(0xf2),(_0x4c70fd,_0x2951e2)=>{const _0xe44db0=_0x4aad1c;if(_0xe44db0(0x113)!==_0x2951e2[_0xe44db0(0xe9)])throw console[_0xe44db0(0xf2)](_0x2951e2),new _0x140660(_0xe44db0(0xe6),null,{'originalError':_0x2951e2});_0x34799a[_0xe44db0(0x112)](_0xe44db0(0xf0),{'title':_0xe44db0(0xd8),'namespace':_0xe44db0(0xef)});}),!_0x12666f['me'])return new Promise(_0xc2377f=>_0x12666f['on'](_0x4aad1c(0xfc),_0xc2377f));})[_0x528eb5(0xe1)](_0x11ce22=>{const _0x43c044=_0x528eb5;throw console[_0x43c044(0xf2)](_0x11ce22),new _0x140660(_0x43c044(0xe6),null,{'originalError':_0x11ce22});});}[_0x2eb9b3(0x105)](_0xed46e3){const _0x362e11=_0x2eb9b3;if(_0x362e11(0x116)!=typeof _0xed46e3[_0x362e11(0x109)])throw new _0x140660(_0x362e11(0x108),this);if(this[_0x362e11(0xe4)](_0xed46e3))throw new _0x140660(_0x362e11(0xe7),this,{'name':_0xed46e3[_0x362e11(0xdb)][_0x362e11(0x11f)]});this[_0x362e11(0x103)][_0x362e11(0xed)](_0xed46e3);}[_0x2eb9b3(0x10d)](_0x346da2){const _0xb98a56=_0x2eb9b3;this[_0xb98a56(0x103)][_0xb98a56(0x11c)](_0x346da2);}[_0x2eb9b3(0xe4)](_0x1510cd){const _0x4f1e57=_0x2eb9b3;return this[_0x4f1e57(0x103)][_0x4f1e57(0xf8)](_0x1510cd);}[_0x2eb9b3(0x106)](){const _0x1d5343=_0x2eb9b3;return this[_0x1d5343(0x10c)][_0x1d5343(0x109)]()[_0x1d5343(0xe5)](()=>Promise[_0x1d5343(0xee)](Array[_0x1d5343(0xfe)](this[_0x1d5343(0x103)],_0x1435ea=>_0x1435ea[_0x1d5343(0x109)]())))[_0x1d5343(0xe5)](()=>this[_0x1d5343(0x100)]=_0x9549ac[_0x1d5343(0xf5)])[_0x1d5343(0xe1)](_0x4e526e=>{const _0x5c9691=_0x1d5343;throw console[_0x5c9691(0xf2)](_0x4e526e),new _0x140660(_0x5c9691(0xeb),this[_0x5c9691(0x10a)]);});}[_0x2eb9b3(0x11d)](){const _0x5c4ea2=_0x2eb9b3;this[_0x5c4ea2(0x10c)]&&this[_0x5c4ea2(0x10c)][_0x5c4ea2(0xf4)](),this[_0x5c4ea2(0x100)]=_0x9549ac[_0x5c4ea2(0xfd)],this[_0x5c4ea2(0xe0)][_0x5c4ea2(0x114)](),super[_0x5c4ea2(0x11d)]();}}c[_0x2eb9b3(0xf1)]=_0x58cf32,c[_0x2eb9b3(0x111)]=0x3e8;export default c;function _0x4f35(){const _0x109b88=['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.','WebSocketGateway','error','_shouldPluginsReconnect','disconnect','CONNECTED','config','define','has','listenTo','requires','51yqzBrd','change:me','DISCONNECTED','from','115892IEiObm','state','bind','CloudServices','_reconnectionStack','6Fyfiaf','addToReconnectionStack','_reconnect','7469623wOnwAc','websocketgateway-invalid-plugin-interface','reconnect','context','cloudServices.requestTimeout','connection','removeFromReconnectionStack','connected','477321cexcwp','309905GowWEK','initialReconnectionInterval','showWarning','limitExceeded','stopListening','plugins','function','online','_isBrowserOffline','get','cloudServices.connectionTimeout','init','delete','destroy','1698224BouEgm','pluginName','token','5485584xlrnSo','Connected\x20users\x20limit\x20exceeded','webSocketUrl','6699519cHstAk','constructor','websocketgateway-missing-token','isPremiumPlugin','create','websocketgateway-missing-websocket-url','_domEmitter','catch','CONNECTING','set','isInReconnectionStack','then','cloudservices-init','websocketgateway-plugin-already-registered','offline','code','isOfficialPlugin','cloudservices-reconnection-error','connect','add','all','real-time-collaboration'];_0x4f35=function(){return _0x109b88;};return _0x4f35();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x569436=_0xa71b;(function(_0x3b4da4,_0x473b6){const _0x1a1607=_0xa71b,_0x127738=_0x3b4da4();while(!![]){try{const _0x594e85=-parseInt(_0x1a1607(0xf8))/0x1+parseInt(_0x1a1607(0xef))/0x2*(-parseInt(_0x1a1607(0xb8))/0x3)+parseInt(_0x1a1607(0xba))/0x4*(parseInt(_0x1a1607(0xea))/0x5)+parseInt(_0x1a1607(0xc5))/0x6+parseInt(_0x1a1607(0xb2))/0x7*(-parseInt(_0x1a1607(0x104))/0x8)+parseInt(_0x1a1607(0xb5))/0x9+parseInt(_0x1a1607(0xaf))/0xa*(-parseInt(_0x1a1607(0xb1))/0xb);if(_0x594e85===_0x473b6)break;else _0x127738['push'](_0x127738['shift']());}catch(_0xcaab8c){_0x127738['push'](_0x127738['shift']());}}}(_0x1be3,0x865f3));import{Plugin as _0x23656a}from'ckeditor5/src/core.js';import{version as _0x3e99ca}from'ckeditor5/src/utils.js';import{Users as _0x3a8456}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x598c2c from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0xb517c4 from'../realtimecollaborativeediting/websocketgateway.js';function _0x1be3(){const _0x1c92bd=['max','isBundleUploaded','type','getMany','connection','_revisionDataBuilder','data','authorsIds','serverHistory','reconnect','_getLatestVersion','_bufferUpdate','isEmptyCurrent','diffData','then','sendBufferedUpdates','2353970nVLppw','_preventResendingRevisionData','11MhjtzF','21TjfUMB','revisionsUpdated','_isConnected','5114277rObNjL','wrongRequestId','CONNECTED','16257zLGIPw','init','3352jBrwJW','change:_isConnected','CloudServicesRevisionHistoryAdapter','setSource','connect','change:_isPendingUpdate','_revisions','cloudServices.bundleVersion','bind','authors','isEnabled','5523138fAxPrr','size','getRevisions','sessionId','_oldOffset','reInit','off','_waitForServiceReady','isConnected','_isPendingUpdate','cloud-services-internal-error:\x20Not\x20connected.','length','collaboration.channelId','_createCurrentRevision','_revisionHistoryService','marker','fromVersion','toVersion','getRevision','setRevisionData','config','code','_fixRevision','addUser','buildRevisionData','addToReconnectionStack','updateRevisions','has','_fetchMissingUsers','creatorId','catch','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','editor','plugins','map','getUser','once','3915yWatbA','isPremiumPlugin','_handleRevisionsUpdate','state','connected','114XYbyzi','get','_getLatestVersionFromServerOperations','reverse','adapter','repository','remove','add','_handleReconnectionError','213962LyEkAp','getOperations','startsWith','pluginName','from','requires','RevisionHistoryService','addRevisionData','cloud-services-internal-error:\x20Request\x20timeout.','_update','400','_startingVersion','2230136IrYUzL','affectsData','destroy','RevisionTracker','listenTo','_offset','_lastRequestId','_bufferedUpdates','keys','message','isOfficialPlugin','currentRevision','createdAt','_revisionTracker','baseVersion'];_0x1be3=function(){return _0x1c92bd;};return _0x1be3();}import _0x567d0f from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x38e923,RevisionHistoryService as _0x521319,User as _0x3f43b8,WEB_SOCKET_GATEWAY_STATES as _0x432002}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0xa71b(_0x55ac51,_0x1ba20d){const _0x1be3df=_0x1be3();return _0xa71b=function(_0xa71b2c,_0x5e8d50){_0xa71b2c=_0xa71b2c-0x93;let _0xa1a4c5=_0x1be3df[_0xa71b2c];return _0xa1a4c5;},_0xa71b(_0x55ac51,_0x1ba20d);}class u extends _0x23656a{static get[_0x569436(0xfd)](){const _0x46ed74=_0x569436;return[_0xb517c4,_0x598c2c,_0x46ed74(0x93),_0x567d0f,_0x3a8456];}static get[_0x569436(0xfb)](){const _0x4228d9=_0x569436;return _0x4228d9(0xbc);}static get[_0x569436(0x9a)](){return!0x0;}static get[_0x569436(0xeb)](){return!0x0;}constructor(_0x907841){const _0x11f342=_0x569436;super(_0x907841);const _0x2aada3=this[_0x11f342(0xe5)][_0x11f342(0xd9)][_0x11f342(0xf0)](_0x11f342(0xd1));this[_0x11f342(0x96)]=null,this[_0x11f342(0x9d)]=this[_0x11f342(0xe5)][_0x11f342(0xe6)][_0x11f342(0xf0)](_0x11f342(0x93)),this[_0x11f342(0xd3)]=new u[(_0x11f342(0xfe))](_0x2aada3);}async[_0x569436(0xb9)](){const _0x5597c6=_0x569436,_0x1e805d=this[_0x5597c6(0xe5)][_0x5597c6(0xe6)][_0x5597c6(0xf0)](_0x598c2c),_0x123923=_0x1e805d[_0x5597c6(0xa7)],_0x243651=this[_0x5597c6(0xe5)][_0x5597c6(0xe6)][_0x5597c6(0xf0)](_0xb517c4);this[_0x5597c6(0x9d)][_0x5597c6(0xbd)]({'history':_0x123923,'getLatestVersion':()=>this[_0x5597c6(0xa9)](),'getCurrentRevisionId':()=>_0x1e805d[_0x5597c6(0xc8)]});const _0x4e13fb=this[_0x5597c6(0xe5)][_0x5597c6(0xd9)][_0x5597c6(0xf0)](_0x5597c6(0xc1))||_0x3e99ca,_0x3c0add=await _0x38e923[_0x5597c6(0xa0)](_0x243651[_0x5597c6(0xa3)],_0x4e13fb);this[_0x5597c6(0x9d)][_0x5597c6(0xf3)]={'getRevision':async({revisionId:_0x167a79})=>(await this[_0x5597c6(0xcc)](),await this[_0x5597c6(0xd3)][_0x5597c6(0xd7)](_0x167a79)),'updateRevisions':async _0x3b4cbc=>{const _0x4cf12f=_0x5597c6;await this[_0x4cf12f(0xcc)]();const _0x23547a=this[_0x4cf12f(0x9d)][_0x4cf12f(0x9b)];if(_0x3c0add&&0x1===_0x3b4cbc[_0x4cf12f(0xd0)]&&_0x3b4cbc[0x0]['id']===_0x23547a['id'])return _0x3b4cbc;for(const _0x2fb501 of _0x3b4cbc)_0x2fb501['id']===_0x23547a['id']&&(_0x2fb501[_0x4cf12f(0xab)]=_0x2fb501[_0x4cf12f(0xd5)]===_0x2fb501[_0x4cf12f(0xd6)]);return this[_0x4cf12f(0xd3)][_0x4cf12f(0xdf)](_0x3b4cbc,this[_0x4cf12f(0x96)])[_0x4cf12f(0xad)](_0x2462d1=>(this[_0x4cf12f(0x96)]=_0x2462d1,_0x3b4cbc))[_0x4cf12f(0xe3)](_0x228f6e=>{const _0x1f992c=_0x4cf12f;if(X(_0x228f6e)||_0x1f992c(0x102)===_0x228f6e[_0x1f992c(0xda)]&&void 0x0!==_0x228f6e[_0x1f992c(0xa5)][_0x1f992c(0xb6)]){for(const _0x429f56 of _0x3b4cbc){!this[_0x1f992c(0x9d)][_0x1f992c(0xf4)][_0x1f992c(0xd7)](_0x429f56['id'])||this[_0x1f992c(0x9d)][_0x1f992c(0xaa)](_0x429f56['id'],_0x429f56,!0x1);}if(X(_0x228f6e))throw _0x228f6e;return _0x3b4cbc;}throw _0x228f6e;});}},this[_0x5597c6(0x94)](this[_0x5597c6(0xd3)],_0x5597c6(0xb3),(_0x23f167,{revisionsData:_0x59e21f,requestId:_0x528843})=>{const _0x4c3c1b=_0x5597c6;Math[_0x4c3c1b(0x9f)](..._0x59e21f[_0x4c3c1b(0xe7)](_0x4435d4=>_0x4435d4[_0x4c3c1b(0xd6)]))>this[_0x4c3c1b(0xf1)]()-0x1?this[_0x4c3c1b(0xa9)]()[_0x4c3c1b(0xad)](()=>{const _0x34a19c=_0x4c3c1b;this[_0x34a19c(0xec)](_0x59e21f,_0x528843);}):this[_0x4c3c1b(0xec)](_0x59e21f,_0x528843);});const {revisions:_0x53d170,requestId:_0x522146}=await this[_0x5597c6(0xd3)][_0x5597c6(0xbe)](_0x243651[_0x5597c6(0xa3)]);_0x243651[_0x5597c6(0xde)](this),this[_0x5597c6(0x96)]=_0x522146,await this[_0x5597c6(0xe1)](_0x53d170);for(const _0x15ef5f of _0x53d170)this[_0x5597c6(0x9d)][_0x5597c6(0xff)](_0x15ef5f);this[_0x5597c6(0x94)](_0x1e805d,_0x5597c6(0xbb),(_0x3b3cdd,_0x27dfb1,_0xbb2aaf)=>{const _0x332ef6=_0x5597c6;_0xbb2aaf&&(this[_0x332ef6(0xc9)]=_0x1e805d[_0x332ef6(0x95)],_0x3b3cdd[_0x332ef6(0xcb)]());}),this[_0x5597c6(0x9d)][_0x5597c6(0xc2)](_0x5597c6(0xc4))['to'](_0x243651,_0x5597c6(0xed),_0x51a90d=>_0x51a90d===_0x432002[_0x5597c6(0xb7)]);}async[_0x569436(0xa8)](){const _0x5881ed=_0x569436,_0x27771c=this[_0x5881ed(0xe5)][_0x5881ed(0xe6)][_0x5881ed(0xf0)](_0xb517c4),_0x3c3d6d=this[_0x5881ed(0xe5)][_0x5881ed(0xe6)][_0x5881ed(0xf0)](_0x598c2c),_0x30197e=async()=>{const _0x2d8e05=_0x5881ed,_0x983de0=this[_0x2d8e05(0x9d)][_0x2d8e05(0x9b)],_0x1585b4=_0x983de0['id'],_0x49a920=_0x1585b4!==_0x3c3d6d[_0x2d8e05(0xc8)];if(_0x49a920){const _0x225a30=_0x3c3d6d[_0x2d8e05(0x95)]-this[_0x2d8e05(0xc9)],_0x332519=this[_0x2d8e05(0xf1)]();this[_0x2d8e05(0x9d)][_0x2d8e05(0xa4)][_0x2d8e05(0xca)]();if(_0x983de0[_0x2d8e05(0xd6)]+_0x225a30!==_0x332519){const _0x21eb0b=_0x983de0[_0x2d8e05(0xd5)]+_0x225a30,_0x45a75f=this[_0x2d8e05(0xe5)][_0x2d8e05(0xe6)][_0x2d8e05(0xf0)](_0x3a8456),_0x5b40e6=this[_0x2d8e05(0x9d)][_0x2d8e05(0xdd)]({'revision':_0x983de0,'from':_0x21eb0b,'to':_0x332519});_0x5b40e6['id']=_0x983de0['id'];const _0xa5fa7c=_0x5b40e6[_0x2d8e05(0xa6)][_0x2d8e05(0xe7)](_0xd5f0e6=>_0x45a75f[_0x2d8e05(0xe8)](_0xd5f0e6));_0x983de0[_0x2d8e05(0x101)]({..._0x5b40e6,'authors':_0xa5fa7c},!0x0),this[_0x2d8e05(0x9d)][_0x2d8e05(0xaa)](_0x983de0['id'],_0x5b40e6,!0x0);}this[_0x2d8e05(0x9d)][_0x2d8e05(0x103)]=_0x332519,(_0x983de0[_0x2d8e05(0xd6)]===_0x983de0[_0x2d8e05(0xd5)]&&!this[_0x2d8e05(0x9d)][_0x2d8e05(0x97)][_0x2d8e05(0xe0)](_0x1585b4)&&this[_0x2d8e05(0x9d)][_0x2d8e05(0xf4)][_0x2d8e05(0xc0)][_0x2d8e05(0xf5)](_0x1585b4),this[_0x2d8e05(0x9d)][_0x2d8e05(0xd2)](_0x332519));}const {revisions:_0x10df36,requestId:_0x24f604}=await this[_0x2d8e05(0xd3)][_0x2d8e05(0xa8)](_0x27771c[_0x2d8e05(0xa3)],this[_0x2d8e05(0x96)]);_0x49a920&&_0x10df36[_0x2d8e05(0xd0)]>0x0?_0x3c3d6d[_0x2d8e05(0xf7)]():(await this[_0x2d8e05(0xe1)](_0x10df36),this[_0x2d8e05(0xec)](_0x10df36,_0x24f604),this[_0x2d8e05(0x9d)][_0x2d8e05(0xae)]());};return _0x3c3d6d[_0x5881ed(0xb4)]?_0x30197e():new Promise((_0x3c2035,_0xc2284b)=>{const _0x5a8268=_0x5881ed;_0x3c3d6d[_0x5a8268(0xe9)](_0x5a8268(0xbb),()=>{const _0x122274=_0x5a8268;_0x30197e()[_0x122274(0xad)](_0x3c2035)[_0x122274(0xe3)](_0xc2284b);});});}[_0x569436(0x106)](){const _0x4e99cd=_0x569436;super[_0x4e99cd(0x106)]();}async[_0x569436(0xcc)](){const _0x1e1792=_0x569436;this[_0x1e1792(0xd3)][_0x1e1792(0xcd)]||await new Promise(_0x3c5fc6=>{const _0x268e91=_0x1e1792;this[_0x268e91(0x94)](this[_0x268e91(0xd3)],_0x268e91(0xee),_0x3395de=>{const _0x5aa974=_0x268e91;_0x3395de[_0x5aa974(0xcb)](),_0x3c5fc6();});});}[_0x569436(0xf1)](){const _0x530743=_0x569436,_0x3d504e=this[_0x530743(0xe5)][_0x530743(0xe6)][_0x530743(0xf0)](_0x598c2c)[_0x530743(0xa7)][_0x530743(0xf9)]()[_0x530743(0xf2)]();for(const _0x1f1c32 of _0x3d504e)if(_0x530743(0xd4)!==_0x1f1c32[_0x530743(0xa1)]||_0x1f1c32[_0x530743(0x105)])return _0x1f1c32[_0x530743(0x9e)]+0x1;}[_0x569436(0xa9)](){const _0xd5c195=_0x569436,_0x180126=this[_0xd5c195(0xe5)][_0xd5c195(0xe6)][_0xd5c195(0xf0)](_0x598c2c);return new Promise(_0x368790=>{const _0x4227b3=_0xd5c195;_0x180126[_0x4227b3(0xce)]?_0x180126[_0x4227b3(0xe9)](_0x4227b3(0xbf),()=>{const _0x47a471=_0x4227b3;_0x368790(this[_0x47a471(0xf1)]());}):_0x368790(this[_0x4227b3(0xf1)]());});}[_0x569436(0xec)](_0x2a6878,_0x3fb107){const _0x16d302=_0x569436,_0x39f32c=this[_0x16d302(0x9d)][_0x16d302(0xf4)];this[_0x16d302(0x96)]=_0x3fb107;for(const _0x1c3d70 of _0x2a6878){const _0x15367f=_0x39f32c[_0x16d302(0xd7)](_0x1c3d70['id']);if(_0x15367f){if((_0x1c3d70[_0x16d302(0xd5)]||_0x1c3d70[_0x16d302(0xd6)])&&(_0x1c3d70[_0x16d302(0xac)]=null),_0x15367f===this[_0x16d302(0x9d)][_0x16d302(0x9b)]){const _0x1e023e=Math[_0x16d302(0x9f)](_0x15367f[_0x16d302(0xd6)],_0x1c3d70[_0x16d302(0xd6)]),_0x117e0b=Math[_0x16d302(0x9f)](_0x15367f[_0x16d302(0xd5)],_0x1c3d70[_0x16d302(0xd5)]);let _0x2e8adf;_0x15367f[_0x16d302(0xd6)]===_0x1c3d70[_0x16d302(0xd6)]&&_0x15367f[_0x16d302(0xd5)]===_0x1c3d70[_0x16d302(0xd5)]?(_0x2e8adf=!0x0,this[_0x16d302(0xb0)](_0x1c3d70)):_0x1c3d70[_0x16d302(0xd6)]===_0x1e023e&&_0x1c3d70[_0x16d302(0xd5)]===_0x117e0b?_0x2e8adf=!0x1:(_0x15367f[_0x16d302(0xd6)]===_0x1e023e&&_0x15367f[_0x16d302(0xd5)]===_0x117e0b||this[_0x16d302(0xdb)]({'revision':_0x15367f,'from':_0x117e0b,'to':_0x1e023e}),_0x2e8adf=!0x0),_0x2e8adf&&(delete _0x1c3d70[_0x16d302(0xd5)],delete _0x1c3d70[_0x16d302(0xd6)],delete _0x1c3d70[_0x16d302(0xac)],delete _0x1c3d70[_0x16d302(0x9c)],delete _0x1c3d70[_0x16d302(0xa6)]);}this[_0x16d302(0x9d)][_0x16d302(0xd8)](_0x1c3d70),this[_0x16d302(0xb0)](_0x1c3d70);}else this[_0x16d302(0x9d)][_0x16d302(0xff)](_0x1c3d70);}const _0x209c1b=_0x39f32c[_0x16d302(0xc7)]();_0x209c1b[_0x16d302(0xf2)]();for(let _0x2460da=0x0;_0x2460da<_0x209c1b[_0x16d302(0xd0)]-0x1;_0x2460da++){const _0x1ca227=_0x209c1b[_0x2460da],_0x57643c=_0x209c1b[_0x2460da+0x1];if(_0x1ca227[_0x16d302(0xd5)]<_0x57643c[_0x16d302(0xd6)]){const _0x62485b=_0x57643c[_0x16d302(0xd6)],_0x72fdc8=Math[_0x16d302(0x9f)](_0x62485b,_0x1ca227[_0x16d302(0xd6)]);this[_0x16d302(0xdb)]({'revision':_0x1ca227,'from':_0x62485b,'to':_0x72fdc8});}}}[_0x569436(0xdb)]({revision:_0x427296,from:_0x13db4d,to:_0x16f094}={}){const _0x4464be=_0x569436,_0x38e32d=this[_0x4464be(0xe5)][_0x4464be(0xe6)][_0x4464be(0xf0)](_0x3a8456),_0x5baf82=this[_0x4464be(0x9d)][_0x4464be(0xdd)]({'revision':_0x427296,'from':_0x13db4d,'to':_0x16f094});_0x5baf82[_0x4464be(0xc3)]=_0x5baf82[_0x4464be(0xa6)][_0x4464be(0xe7)](_0x5a6e6d=>_0x38e32d[_0x4464be(0xe8)](_0x5a6e6d)),_0x427296[_0x4464be(0x101)](_0x5baf82);}[_0x569436(0xb0)](_0x7719cf){const _0x42bf97=_0x569436,_0x3a374f={};_0x3a374f['id']=_0x7719cf['id'];for(const _0x4cf427 of Object[_0x42bf97(0x98)](_0x7719cf))'id'!==_0x4cf427&&(_0x3a374f[_0x4cf427]=void 0x0);this[_0x42bf97(0x9d)][_0x42bf97(0xaa)](_0x3a374f['id'],_0x3a374f,!0x0);}async[_0x569436(0xe1)](_0x2ddfd7){const _0xfe1754=_0x569436,_0x17322d=this[_0xfe1754(0xe5)][_0xfe1754(0xe6)][_0xfe1754(0xf0)](_0x3a8456),{connection:_0x338fb3}=this[_0xfe1754(0xe5)][_0xfe1754(0xe6)][_0xfe1754(0xf0)](_0xb517c4),_0x4ea847=new Set();for(const _0x5bc872 of _0x2ddfd7){for(const _0x530f21 of _0x5bc872[_0xfe1754(0xa6)])_0x37f6e(_0x530f21);_0x5bc872[_0xfe1754(0xe2)]&&_0x37f6e(_0x5bc872[_0xfe1754(0xe2)]);}if(0x0===_0x4ea847[_0xfe1754(0xc6)])return;const _0x40734f=await _0x3f43b8[_0xfe1754(0xa2)](_0x338fb3,Array[_0xfe1754(0xfc)](_0x4ea847));for(const _0x1335eb of _0x40734f)_0x17322d[_0xfe1754(0xe8)](_0x1335eb['id'])||_0x17322d[_0xfe1754(0xdc)](_0x1335eb);function _0x37f6e(_0x27b228){const _0x116fab=_0xfe1754;_0x17322d[_0x116fab(0xe8)](_0x27b228)||_0x4ea847[_0x116fab(0xf6)](_0x27b228);}}}u[_0x569436(0xfe)]=_0x521319;export default u;function X(_0x49d146){const _0x15500b=_0x569436;return _0x49d146[_0x15500b(0x99)][_0x15500b(0xfa)](_0x15500b(0xe4))||_0x49d146[_0x15500b(0x99)][_0x15500b(0xfa)](_0x15500b(0xcf))||_0x49d146[_0x15500b(0x99)][_0x15500b(0xfa)](_0x15500b(0x100));}
|
|
23
|
+
function _0x5065(){const _0x101f93=['RevisionHistoryService','reconnect','isEnabled','has','RevisionTracker','7955890JvgAJh','then','startsWith','pluginName','_fetchMissingUsers','collaboration.channelId','serverHistory','addToReconnectionStack','getMany','fromVersion','editor','creatorId','size','_oldOffset','reInit','_createCurrentRevision','2669156yuBTlE','_bufferedUpdates','_getLatestVersionFromServerOperations','_update','listenTo','addRevisionData','7rkoObP','marker','_handleReconnectionError','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','type','connect','590502sYDfFw','connected','551613UIQeoJ','destroy','_handleRevisionsUpdate','diffData','change:_isPendingUpdate','setRevisionData','isPremiumPlugin','_revisionDataBuilder','isBundleUploaded','getRevisions','off','_isConnected','affectsData','message','_revisionTracker','config','_bufferUpdate','addUser','2097zWzGNW','init','add','2053370pFchnw','cloud-services-internal-error:\x20Not\x20connected.','plugins','getRevision','_preventResendingRevisionData','819201VfpLka','length','_offset','reverse','change:_isConnected','buildRevisionData','CloudServicesRevisionHistoryAdapter','cloud-services-internal-error:\x20Request\x20timeout.','authorsIds','connection','6SjIfHf','_waitForServiceReady','sendBufferedUpdates','catch','max','_startingVersion','sessionId','_revisionHistoryService','createdAt','from','_lastRequestId','wrongRequestId','isOfficialPlugin','getOperations','_isPendingUpdate','requires','bind','keys','_fixRevision','toVersion','get','updateRevisions','map','baseVersion','code','getUser','CONNECTED','currentRevision','isEmptyCurrent','5SWfUjx','revisionsUpdated','isConnected','adapter','remove','once','state','authors','cloudServices.bundleVersion','data','_getLatestVersion','setSource','_revisions','400','repository','3824ituxub'];_0x5065=function(){return _0x101f93;};return _0x5065();}const _0x547fdf=_0x35b4;(function(_0x46edc5,_0x3654a6){const _0x1583d2=_0x35b4,_0x5c1c19=_0x46edc5();while(!![]){try{const _0x4705cc=parseInt(_0x1583d2(0xe0))/0x1+parseInt(_0x1583d2(0xea))/0x2*(-parseInt(_0x1583d2(0xc6))/0x3)+parseInt(_0x1583d2(0xb8))/0x4*(-parseInt(_0x1583d2(0x107))/0x5)+parseInt(_0x1583d2(0xc4))/0x6*(parseInt(_0x1583d2(0xbe))/0x7)+parseInt(_0x1583d2(0x116))/0x8*(parseInt(_0x1583d2(0xd8))/0x9)+parseInt(_0x1583d2(0x11c))/0xa+-parseInt(_0x1583d2(0xdb))/0xb;if(_0x4705cc===_0x3654a6)break;else _0x5c1c19['push'](_0x5c1c19['shift']());}catch(_0x301121){_0x5c1c19['push'](_0x5c1c19['shift']());}}}(_0x5065,0x664c1));import{Plugin as _0x5b886b}from'ckeditor5/src/core.js';import{version as _0x260bdb}from'ckeditor5/src/utils.js';import{Users as _0x445c7c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1fb7b0 from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x21bc8e from'../realtimecollaborativeediting/websocketgateway.js';import _0x3b6698 from'../realtimecollaborativeediting/sessions.js';function _0x35b4(_0x170584,_0x48433c){const _0x50652=_0x5065();return _0x35b4=function(_0x35b475,_0x38c224){_0x35b475=_0x35b475-0xad;let _0x1ad967=_0x50652[_0x35b475];return _0x1ad967;},_0x35b4(_0x170584,_0x48433c);}import{EditorService as _0x3fbd02,RevisionHistoryService as _0x284a66,User as _0x460584,WEB_SOCKET_GATEWAY_STATES as _0x4bbc18}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class u extends _0x5b886b{static get[_0x547fdf(0xf9)](){const _0x3e5081=_0x547fdf;return[_0x21bc8e,_0x1fb7b0,_0x3e5081(0x11b),_0x3b6698,_0x445c7c];}static get[_0x547fdf(0x11f)](){const _0x5c0f78=_0x547fdf;return _0x5c0f78(0xe6);}static get[_0x547fdf(0xf6)](){return!0x0;}static get[_0x547fdf(0xcc)](){return!0x0;}constructor(_0x4fd0df){const _0x353393=_0x547fdf;super(_0x4fd0df);const _0x131f9c=this[_0x353393(0xb2)][_0x353393(0xd5)][_0x353393(0xfe)](_0x353393(0xad));this[_0x353393(0xf4)]=null,this[_0x353393(0xd4)]=this[_0x353393(0xb2)][_0x353393(0xdd)][_0x353393(0xfe)](_0x353393(0x11b)),this[_0x353393(0xf1)]=new u[(_0x353393(0x117))](_0x131f9c);}async[_0x547fdf(0xd9)](){const _0x34a258=_0x547fdf,_0x317225=this[_0x34a258(0xb2)][_0x34a258(0xdd)][_0x34a258(0xfe)](_0x1fb7b0),_0x243959=_0x317225[_0x34a258(0xae)],_0x372cc5=this[_0x34a258(0xb2)][_0x34a258(0xdd)][_0x34a258(0xfe)](_0x21bc8e);this[_0x34a258(0xd4)][_0x34a258(0x112)]({'history':_0x243959,'getLatestVersion':()=>this[_0x34a258(0x111)](),'getCurrentRevisionId':()=>_0x317225[_0x34a258(0xf0)]});const _0x31dd0d=this[_0x34a258(0xb2)][_0x34a258(0xd5)][_0x34a258(0xfe)](_0x34a258(0x10f))||_0x260bdb,_0x256156=await _0x3fbd02[_0x34a258(0xce)](_0x372cc5[_0x34a258(0xe9)],_0x31dd0d);this[_0x34a258(0xd4)][_0x34a258(0x10a)]={'getRevision':async({revisionId:_0x30a32e})=>(await this[_0x34a258(0xeb)](),await this[_0x34a258(0xf1)][_0x34a258(0xde)](_0x30a32e)),'updateRevisions':async _0x2db63f=>{const _0x42bb00=_0x34a258;await this[_0x42bb00(0xeb)]();const _0x23c844=this[_0x42bb00(0xd4)][_0x42bb00(0x105)];if(_0x256156&&0x1===_0x2db63f[_0x42bb00(0xe1)]&&_0x2db63f[0x0]['id']===_0x23c844['id'])return _0x2db63f;for(const _0x1568ef of _0x2db63f)_0x1568ef['id']===_0x23c844['id']&&(_0x1568ef[_0x42bb00(0x106)]=_0x1568ef[_0x42bb00(0xb1)]===_0x1568ef[_0x42bb00(0xfd)]);return this[_0x42bb00(0xf1)][_0x42bb00(0xff)](_0x2db63f,this[_0x42bb00(0xf4)])[_0x42bb00(0x11d)](_0x227013=>(this[_0x42bb00(0xf4)]=_0x227013,_0x2db63f))[_0x42bb00(0xed)](_0x50370d=>{const _0x5d3221=_0x42bb00;if(st(_0x50370d)||_0x5d3221(0x114)===_0x50370d[_0x5d3221(0x102)]&&void 0x0!==_0x50370d[_0x5d3221(0x110)][_0x5d3221(0xf5)]){for(const _0x473d5b of _0x2db63f){!this[_0x5d3221(0xd4)][_0x5d3221(0x115)][_0x5d3221(0xde)](_0x473d5b['id'])||this[_0x5d3221(0xd4)][_0x5d3221(0xd6)](_0x473d5b['id'],_0x473d5b,!0x1);}if(st(_0x50370d))throw _0x50370d;return _0x2db63f;}throw _0x50370d;});}},this[_0x34a258(0xbc)](this[_0x34a258(0xf1)],_0x34a258(0x108),(_0x5c3cec,{revisionsData:_0xfb3d72,requestId:_0x44f653})=>{const _0x5bbd4c=_0x34a258;Math[_0x5bbd4c(0xee)](..._0xfb3d72[_0x5bbd4c(0x100)](_0x59045b=>_0x59045b[_0x5bbd4c(0xfd)]))>this[_0x5bbd4c(0xba)]()-0x1?this[_0x5bbd4c(0x111)]()[_0x5bbd4c(0x11d)](()=>{const _0x14a9f2=_0x5bbd4c;this[_0x14a9f2(0xc8)](_0xfb3d72,_0x44f653);}):this[_0x5bbd4c(0xc8)](_0xfb3d72,_0x44f653);});const {revisions:_0x3d5ab0,requestId:_0x164bc3}=await this[_0x34a258(0xf1)][_0x34a258(0xc3)](_0x372cc5[_0x34a258(0xe9)]);_0x372cc5[_0x34a258(0xaf)](this),this[_0x34a258(0xf4)]=_0x164bc3,await this[_0x34a258(0x120)](_0x3d5ab0);for(const _0x4f16e1 of _0x3d5ab0)this[_0x34a258(0xd4)][_0x34a258(0xbd)](_0x4f16e1);this[_0x34a258(0xbc)](_0x317225,_0x34a258(0xe4),(_0x57d6c6,_0x12eb10,_0x4c5abd)=>{const _0x895af4=_0x34a258;_0x4c5abd&&(this[_0x895af4(0xb5)]=_0x317225[_0x895af4(0xe2)],_0x57d6c6[_0x895af4(0xd0)]());}),this[_0x34a258(0xd4)][_0x34a258(0xfa)](_0x34a258(0x119))['to'](_0x372cc5,_0x34a258(0x10d),_0xfbca4c=>_0xfbca4c===_0x4bbc18[_0x34a258(0x104)]);}async[_0x547fdf(0x118)](){const _0x381998=_0x547fdf,_0x30a26f=this[_0x381998(0xb2)][_0x381998(0xdd)][_0x381998(0xfe)](_0x21bc8e),_0x46265a=this[_0x381998(0xb2)][_0x381998(0xdd)][_0x381998(0xfe)](_0x1fb7b0),_0x1fb4f4=async()=>{const _0x54bf41=_0x381998,_0x4c0b0d=this[_0x54bf41(0xd4)][_0x54bf41(0x105)],_0x1b135f=_0x4c0b0d['id'],_0x393df=_0x1b135f!==_0x46265a[_0x54bf41(0xf0)];if(_0x393df){const _0x4c87d0=_0x46265a[_0x54bf41(0xe2)]-this[_0x54bf41(0xb5)],_0x5bdc13=this[_0x54bf41(0xba)]();this[_0x54bf41(0xd4)][_0x54bf41(0xcd)][_0x54bf41(0xb6)]();if(_0x4c0b0d[_0x54bf41(0xfd)]+_0x4c87d0!==_0x5bdc13){const _0x1db002=_0x4c0b0d[_0x54bf41(0xb1)]+_0x4c87d0,_0xb972d=this[_0x54bf41(0xb2)][_0x54bf41(0xdd)][_0x54bf41(0xfe)](_0x445c7c),_0x3e3126=this[_0x54bf41(0xd4)][_0x54bf41(0xe5)]({'revision':_0x4c0b0d,'from':_0x1db002,'to':_0x5bdc13});_0x3e3126['id']=_0x4c0b0d['id'];const _0x45d231=_0x3e3126[_0x54bf41(0xe8)][_0x54bf41(0x100)](_0x897d73=>_0xb972d[_0x54bf41(0x103)](_0x897d73));_0x4c0b0d[_0x54bf41(0xbb)]({..._0x3e3126,'authors':_0x45d231},!0x0),this[_0x54bf41(0xd4)][_0x54bf41(0xd6)](_0x4c0b0d['id'],_0x3e3126,!0x0);}this[_0x54bf41(0xd4)][_0x54bf41(0xef)]=_0x5bdc13,(_0x4c0b0d[_0x54bf41(0xfd)]===_0x4c0b0d[_0x54bf41(0xb1)]&&!this[_0x54bf41(0xd4)][_0x54bf41(0xb9)][_0x54bf41(0x11a)](_0x1b135f)&&this[_0x54bf41(0xd4)][_0x54bf41(0x115)][_0x54bf41(0x113)][_0x54bf41(0x10b)](_0x1b135f),this[_0x54bf41(0xd4)][_0x54bf41(0xb7)](_0x5bdc13));}const {revisions:_0x549e22,requestId:_0x2e69ae}=await this[_0x54bf41(0xf1)][_0x54bf41(0x118)](_0x30a26f[_0x54bf41(0xe9)],this[_0x54bf41(0xf4)]);_0x393df&&_0x549e22[_0x54bf41(0xe1)]>0x0?_0x46265a[_0x54bf41(0xc0)]():(await this[_0x54bf41(0x120)](_0x549e22),this[_0x54bf41(0xc8)](_0x549e22,_0x2e69ae),this[_0x54bf41(0xd4)][_0x54bf41(0xec)]());};return _0x46265a[_0x381998(0xd1)]?_0x1fb4f4():new Promise((_0x5e9c5f,_0x2e2558)=>{const _0x226758=_0x381998;_0x46265a[_0x226758(0x10c)](_0x226758(0xe4),()=>{const _0x4f53d3=_0x226758;_0x1fb4f4()[_0x4f53d3(0x11d)](_0x5e9c5f)[_0x4f53d3(0xed)](_0x2e2558);});});}[_0x547fdf(0xc7)](){const _0x25de90=_0x547fdf;super[_0x25de90(0xc7)]();}async[_0x547fdf(0xeb)](){const _0x55b1a3=_0x547fdf;this[_0x55b1a3(0xf1)][_0x55b1a3(0x109)]||await new Promise(_0x2462a7=>{const _0x1fbbf8=_0x55b1a3;this[_0x1fbbf8(0xbc)](this[_0x1fbbf8(0xf1)],_0x1fbbf8(0xc5),_0x420e2c=>{const _0xd7e241=_0x1fbbf8;_0x420e2c[_0xd7e241(0xd0)](),_0x2462a7();});});}[_0x547fdf(0xba)](){const _0x2ea0fb=_0x547fdf,_0x522493=this[_0x2ea0fb(0xb2)][_0x2ea0fb(0xdd)][_0x2ea0fb(0xfe)](_0x1fb7b0)[_0x2ea0fb(0xae)][_0x2ea0fb(0xf7)]()[_0x2ea0fb(0xe3)]();for(const _0x4031cc of _0x522493)if(_0x2ea0fb(0xbf)!==_0x4031cc[_0x2ea0fb(0xc2)]||_0x4031cc[_0x2ea0fb(0xd2)])return _0x4031cc[_0x2ea0fb(0x101)]+0x1;}[_0x547fdf(0x111)](){const _0x16a563=_0x547fdf,_0x30ccd2=this[_0x16a563(0xb2)][_0x16a563(0xdd)][_0x16a563(0xfe)](_0x1fb7b0);return new Promise(_0x5407fe=>{const _0x435117=_0x16a563;_0x30ccd2[_0x435117(0xf8)]?_0x30ccd2[_0x435117(0x10c)](_0x435117(0xca),()=>{const _0x3c974c=_0x435117;_0x5407fe(this[_0x3c974c(0xba)]());}):_0x5407fe(this[_0x435117(0xba)]());});}[_0x547fdf(0xc8)](_0x1d72e3,_0x5b5240){const _0x3779a2=_0x547fdf,_0x2b5e8f=this[_0x3779a2(0xd4)][_0x3779a2(0x115)];this[_0x3779a2(0xf4)]=_0x5b5240;for(const _0x23e3a5 of _0x1d72e3){const _0x137a47=_0x2b5e8f[_0x3779a2(0xde)](_0x23e3a5['id']);if(_0x137a47){if((_0x23e3a5[_0x3779a2(0xb1)]||_0x23e3a5[_0x3779a2(0xfd)])&&(_0x23e3a5[_0x3779a2(0xc9)]=null),_0x137a47===this[_0x3779a2(0xd4)][_0x3779a2(0x105)]){const _0xbda80=Math[_0x3779a2(0xee)](_0x137a47[_0x3779a2(0xfd)],_0x23e3a5[_0x3779a2(0xfd)]),_0x47d1ff=Math[_0x3779a2(0xee)](_0x137a47[_0x3779a2(0xb1)],_0x23e3a5[_0x3779a2(0xb1)]);let _0x41c706;_0x137a47[_0x3779a2(0xfd)]===_0x23e3a5[_0x3779a2(0xfd)]&&_0x137a47[_0x3779a2(0xb1)]===_0x23e3a5[_0x3779a2(0xb1)]?(_0x41c706=!0x0,this[_0x3779a2(0xdf)](_0x23e3a5)):_0x23e3a5[_0x3779a2(0xfd)]===_0xbda80&&_0x23e3a5[_0x3779a2(0xb1)]===_0x47d1ff?_0x41c706=!0x1:(_0x137a47[_0x3779a2(0xfd)]===_0xbda80&&_0x137a47[_0x3779a2(0xb1)]===_0x47d1ff||this[_0x3779a2(0xfc)]({'revision':_0x137a47,'from':_0x47d1ff,'to':_0xbda80}),_0x41c706=!0x0),_0x41c706&&(delete _0x23e3a5[_0x3779a2(0xb1)],delete _0x23e3a5[_0x3779a2(0xfd)],delete _0x23e3a5[_0x3779a2(0xc9)],delete _0x23e3a5[_0x3779a2(0xf2)],delete _0x23e3a5[_0x3779a2(0xe8)]);}this[_0x3779a2(0xd4)][_0x3779a2(0xcb)](_0x23e3a5),this[_0x3779a2(0xdf)](_0x23e3a5);}else this[_0x3779a2(0xd4)][_0x3779a2(0xbd)](_0x23e3a5);}const _0x453cb9=_0x2b5e8f[_0x3779a2(0xcf)]();_0x453cb9[_0x3779a2(0xe3)]();for(let _0x5d6644=0x0;_0x5d6644<_0x453cb9[_0x3779a2(0xe1)]-0x1;_0x5d6644++){const _0x126c24=_0x453cb9[_0x5d6644],_0x164a03=_0x453cb9[_0x5d6644+0x1];if(_0x126c24[_0x3779a2(0xb1)]<_0x164a03[_0x3779a2(0xfd)]){const _0x24cb7d=_0x164a03[_0x3779a2(0xfd)],_0x199ccd=Math[_0x3779a2(0xee)](_0x24cb7d,_0x126c24[_0x3779a2(0xfd)]);this[_0x3779a2(0xfc)]({'revision':_0x126c24,'from':_0x24cb7d,'to':_0x199ccd});}}}[_0x547fdf(0xfc)]({revision:_0x458fbd,from:_0x2b84de,to:_0x524b18}={}){const _0x15f3b6=_0x547fdf,_0x5979a2=this[_0x15f3b6(0xb2)][_0x15f3b6(0xdd)][_0x15f3b6(0xfe)](_0x445c7c),_0x2320c6=this[_0x15f3b6(0xd4)][_0x15f3b6(0xe5)]({'revision':_0x458fbd,'from':_0x2b84de,'to':_0x524b18});_0x2320c6[_0x15f3b6(0x10e)]=_0x2320c6[_0x15f3b6(0xe8)][_0x15f3b6(0x100)](_0x521df4=>_0x5979a2[_0x15f3b6(0x103)](_0x521df4)),_0x458fbd[_0x15f3b6(0xbb)](_0x2320c6);}[_0x547fdf(0xdf)](_0x2d9eb5){const _0x1d0a23=_0x547fdf,_0xc0f138={};_0xc0f138['id']=_0x2d9eb5['id'];for(const _0x587210 of Object[_0x1d0a23(0xfb)](_0x2d9eb5))'id'!==_0x587210&&(_0xc0f138[_0x587210]=void 0x0);this[_0x1d0a23(0xd4)][_0x1d0a23(0xd6)](_0xc0f138['id'],_0xc0f138,!0x0);}async[_0x547fdf(0x120)](_0x2f0065){const _0x36a0ff=_0x547fdf,_0x394c21=this[_0x36a0ff(0xb2)][_0x36a0ff(0xdd)][_0x36a0ff(0xfe)](_0x445c7c),{connection:_0x19de52}=this[_0x36a0ff(0xb2)][_0x36a0ff(0xdd)][_0x36a0ff(0xfe)](_0x21bc8e),_0x4c32c5=new Set();for(const _0x5ff018 of _0x2f0065){for(const _0x456b76 of _0x5ff018[_0x36a0ff(0xe8)])_0x24214c(_0x456b76);_0x5ff018[_0x36a0ff(0xb3)]&&_0x24214c(_0x5ff018[_0x36a0ff(0xb3)]);}if(0x0===_0x4c32c5[_0x36a0ff(0xb4)])return;const _0x5976a7=await _0x460584[_0x36a0ff(0xb0)](_0x19de52,Array[_0x36a0ff(0xf3)](_0x4c32c5));for(const _0x433ad4 of _0x5976a7)_0x394c21[_0x36a0ff(0x103)](_0x433ad4['id'])||_0x394c21[_0x36a0ff(0xd7)](_0x433ad4);function _0x24214c(_0xff805a){const _0x2dc903=_0x36a0ff;_0x394c21[_0x2dc903(0x103)](_0xff805a)||_0x4c32c5[_0x2dc903(0xda)](_0xff805a);}}}u[_0x547fdf(0x117)]=_0x284a66;export default u;function st(_0x557a57){const _0x3219c3=_0x547fdf;return _0x557a57[_0x3219c3(0xd3)][_0x3219c3(0x11e)](_0x3219c3(0xc1))||_0x557a57[_0x3219c3(0xd3)][_0x3219c3(0x11e)](_0x3219c3(0xdc))||_0x557a57[_0x3219c3(0xd3)][_0x3219c3(0x11e)](_0x3219c3(0xe7));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24fcca=_0x4c17;(function(_0x2d3180,_0x26e9ca){const _0x1f9650=_0x4c17,_0x5ed30b=_0x2d3180();while(!![]){try{const _0x1fdd99=parseInt(_0x1f9650(0xa2))/0x1+parseInt(_0x1f9650(0x76))/0x2+parseInt(_0x1f9650(0x79))/0x3*(parseInt(_0x1f9650(0x6d))/0x4)+parseInt(_0x1f9650(0x72))/0x5+-parseInt(_0x1f9650(0x80))/0x6+-parseInt(_0x1f9650(0x90))/0x7+-parseInt(_0x1f9650(0x9c))/0x8*(parseInt(_0x1f9650(0x97))/0x9);if(_0x1fdd99===_0x26e9ca)break;else _0x5ed30b['push'](_0x5ed30b['shift']());}catch(_0x461f5e){_0x5ed30b['push'](_0x5ed30b['shift']());}}}(_0x3447,0x5cf71));import{Plugin as _0x5879c3}from'ckeditor5/src/core.js';import{User as _0x22690f,TrackChangesService as _0x25b5c7}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x5c9742 from'../realtimecollaborativeediting/websocketgateway.js';import _0xf3087f from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x444ba8}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3447(){const _0x482919=['catch','1779656UXRTdP','get','connect','connection','data','CloudServicesTrackChangesAdapter','126532WtRaRJ','add','message','_saved','collaboration.channelId','_bufferedRequests','attributes','delete','size','TrackChangesEditing','4hkLVsk','requires','hasSuggestion','update','adapter','2748900ERebuU','editor','suggestionUpdated','startsWith','185546ajePjL','open','type','2178723kXIdbA','addToReconnectionStack','listenTo','then','_fetchMissingUsersForThreads','find','connected','2448438TGOLLR','getSuggestion','originalSuggestionId','values','pluginName','getUser','TrackChangesService','_waitForServiceReady','isConnected','reconnect','addUser','addSuggestionData','plugins','cloud-services-internal-error:\x20Request\x20timeout.','from','init','3388077OzCRmS','off','config','set','isPremiumPlugin','_trackChangesService','state','9RKxbMy','isOfficialPlugin','cloud-services-internal-error:\x20Not\x20connected.','getMany'];_0x3447=function(){return _0x482919;};return _0x3447();}class f extends _0x5879c3{static get[_0x24fcca(0x6e)](){const _0x4653d4=_0x24fcca;return[_0xf3087f,_0x4653d4(0x6c),_0x5c9742];}static get[_0x24fcca(0x84)](){const _0x3b73ef=_0x24fcca;return _0x3b73ef(0xa1);}static get[_0x24fcca(0x98)](){return!0x0;}static get[_0x24fcca(0x94)](){return!0x0;}constructor(_0x21a437){const _0x28f498=_0x24fcca;super(_0x21a437);const _0x164c6f=this[_0x28f498(0x73)][_0x28f498(0x92)][_0x28f498(0x9d)](_0x28f498(0xa6));this[_0x28f498(0xa7)]=new Map(),this[_0x28f498(0x95)]=new f[(_0x28f498(0x86))](_0x164c6f);}[_0x24fcca(0x8f)](){const _0x264776=_0x24fcca,_0x5b9cc7=this[_0x264776(0x73)][_0x264776(0x8c)][_0x264776(0x9d)](_0x5c9742),_0x26faba=this[_0x264776(0x73)][_0x264776(0x8c)][_0x264776(0x9d)](_0x264776(0x6c));return _0x26faba[_0x264776(0x71)]={'getSuggestion':async _0x273b56=>{const _0x57cf45=_0x264776;await this[_0x57cf45(0x87)]();const _0x1ab73c=await this[_0x57cf45(0x95)][_0x57cf45(0x9d)](_0x273b56)[_0x57cf45(0x9b)](w);return await this[_0x57cf45(0x7d)]([_0x1ab73c]),_0x1ab73c;},'addSuggestion':async({id:_0x217f7e,type:_0x397400,data:_0x3a3f29,originalSuggestionId:_0x8264ac,attributes:_0x16e226})=>{const _0x8ad751=_0x264776;await this[_0x8ad751(0x87)]();const _0x33e811={'id':_0x217f7e,'type':_0x397400,'data':_0x3a3f29,'originalSuggestionId':_0x8264ac,'attributes':_0x16e226},_0x448df2=await this[_0x8ad751(0x95)][_0x8ad751(0xa3)](_0x217f7e,_0x397400,_0x3a3f29,_0x8264ac,_0x16e226)[_0x8ad751(0x9b)](_0x3f1397=>{if(st(_0x3f1397))return new Promise(_0x40d423=>{const _0x28086e=_0x4c17;this[_0x28086e(0xa7)][_0x28086e(0x93)](_0x217f7e,{'resolve':_0x40d423,'suggestionData':_0x33e811});});throw _0x3f1397;});return this[_0x8ad751(0xa7)][_0x8ad751(0x6a)](_0x217f7e),_0x448df2;},'updateSuggestion':async(_0x33152c,_0x2d265e)=>{const _0x615e55=_0x264776;if(await this[_0x615e55(0x87)](),_0x615e55(0x77)!==_0x2d265e[_0x615e55(0x96)])return this[_0x615e55(0x95)][_0x615e55(0x70)](_0x33152c,_0x2d265e)[_0x615e55(0x9b)](w);}},this[_0x264776(0x7b)](this[_0x264776(0x95)],_0x264776(0x74),(_0x29ffb9,_0x31a5e9)=>{const _0xa2599e=_0x264776;_0x26faba[_0xa2599e(0x6f)](_0x31a5e9['id'])&&(_0x26faba[_0xa2599e(0x81)](_0x31a5e9['id'])[_0xa2599e(0x69)]=_0x31a5e9[_0xa2599e(0x69)]);}),this[_0x264776(0x95)][_0x264776(0x9e)](_0x5b9cc7[_0x264776(0x9f)])[_0x264776(0x7c)](_0x5c4add=>(_0x5b9cc7[_0x264776(0x7a)](this),this[_0x264776(0x7d)](_0x5c4add)[_0x264776(0x7c)](()=>{const _0x7d2aa7=_0x264776;for(const _0x2a5ca3 of _0x5c4add){_0x26faba[_0x7d2aa7(0x8b)](_0x2a5ca3)[_0x7d2aa7(0xa5)]=!0x0;}})));}async[_0x24fcca(0x89)](){const _0x5679b5=_0x24fcca,_0xf9a338=this[_0x5679b5(0x73)][_0x5679b5(0x8c)][_0x5679b5(0x9d)](_0x5679b5(0x6c)),{connection:_0xfb2f01}=this[_0x5679b5(0x73)][_0x5679b5(0x8c)][_0x5679b5(0x9d)](_0x5c9742),_0x4bca3b=await this[_0x5679b5(0x95)][_0x5679b5(0x9e)](_0xfb2f01);await this[_0x5679b5(0x7d)](_0x4bca3b);for(const {suggestionData:_0x244a16,resolve:_0x15c1a3}of this[_0x5679b5(0xa7)][_0x5679b5(0x83)]()){let _0x3472c3=_0x4bca3b[_0x5679b5(0x7e)](_0x122961=>_0x122961['id']===_0x244a16['id']);_0x3472c3||(_0x3472c3=await this[_0x5679b5(0x95)][_0x5679b5(0xa3)](_0x244a16['id'],_0x244a16[_0x5679b5(0x78)],_0x244a16[_0x5679b5(0xa0)],_0x244a16[_0x5679b5(0x82)])),_0x15c1a3(_0x3472c3);}for(const _0x33e4be of _0x4bca3b)_0xf9a338[_0x5679b5(0x6f)](_0x33e4be['id'])||_0xf9a338[_0x5679b5(0x8b)](_0x33e4be);}async[_0x24fcca(0x87)](){const _0x594868=_0x24fcca;this[_0x594868(0x95)][_0x594868(0x88)]||await new Promise(_0x378a42=>{const _0x55172f=_0x594868;this[_0x55172f(0x7b)](this[_0x55172f(0x95)],_0x55172f(0x7f),_0x5cbd7f=>{const _0x495c32=_0x55172f;_0x5cbd7f[_0x495c32(0x91)](),_0x378a42();});});}async[_0x24fcca(0x7d)](_0x5043af){const _0x270b1c=_0x24fcca,_0x1e6284=this[_0x270b1c(0x73)][_0x270b1c(0x8c)][_0x270b1c(0x9d)](_0x444ba8),{connection:_0x218bc5}=this[_0x270b1c(0x73)][_0x270b1c(0x8c)][_0x270b1c(0x9d)](_0x5c9742),_0x1cbab0=new Set();for(const {authorId:_0x3dfb86}of _0x5043af)_0x1e6284[_0x270b1c(0x85)](_0x3dfb86)||_0x1cbab0[_0x270b1c(0xa3)](_0x3dfb86);if(0x0===_0x1cbab0[_0x270b1c(0x6b)])return;const _0x1815d4=await _0x22690f[_0x270b1c(0x9a)](_0x218bc5,Array[_0x270b1c(0x8e)](_0x1cbab0));for(const _0x2fbee9 of _0x1815d4)_0x1e6284[_0x270b1c(0x85)](_0x2fbee9['id'])||_0x1e6284[_0x270b1c(0x8a)](_0x2fbee9);}}f[_0x24fcca(0x86)]=_0x25b5c7;function _0x4c17(_0x1325df,_0x318033){const _0x34474a=_0x3447();return _0x4c17=function(_0x4c1720,_0xeacc90){_0x4c1720=_0x4c1720-0x69;let _0x2f8799=_0x34474a[_0x4c1720];return _0x2f8799;},_0x4c17(_0x1325df,_0x318033);}export default f;function w(_0x540eec){if(st(_0x540eec))return new Promise(()=>{});throw _0x540eec;}function st(_0x1156c6){const _0x4c5499=_0x24fcca;return _0x1156c6[_0x4c5499(0xa4)][_0x4c5499(0x75)](_0x4c5499(0x99))||_0x1156c6[_0x4c5499(0xa4)][_0x4c5499(0x75)](_0x4c5499(0x8d));}
|