@ckeditor/ckeditor5-real-time-collaboration 47.7.3-alpha.0 → 47.7.3

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,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2054dc=_0x2361;(function(_0x511172,_0x377d23){const _0xb04f7b=_0x2361,_0x39ed00=_0x511172();while(!![]){try{const _0x3c5381=-parseInt(_0xb04f7b(0x78))/0x1*(-parseInt(_0xb04f7b(0x9e))/0x2)+parseInt(_0xb04f7b(0x9b))/0x3*(-parseInt(_0xb04f7b(0x94))/0x4)+parseInt(_0xb04f7b(0xa1))/0x5+-parseInt(_0xb04f7b(0xae))/0x6+parseInt(_0xb04f7b(0x83))/0x7*(-parseInt(_0xb04f7b(0xac))/0x8)+-parseInt(_0xb04f7b(0x75))/0x9+-parseInt(_0xb04f7b(0x9a))/0xa*(-parseInt(_0xb04f7b(0xab))/0xb);if(_0x3c5381===_0x377d23)break;else _0x39ed00['push'](_0x39ed00['shift']());}catch(_0xfe4596){_0x39ed00['push'](_0x39ed00['shift']());}}}(_0x5e91,0x66f2d));import{ContextPlugin as _0x2224a8}from'ckeditor5/src/core.js';import{Collection as _0x181152,CKEditorError as _0x56d014}from'ckeditor5/src/utils.js';function _0x5e91(){const _0x256d1d=['sessions-register-already-registered','channelConnectedUsers','forEach','133476WibZGK','change:state','_createUser','sessions-unregister-not-exist','hiddenInPresenceList','unregister','remove','user','connection','_uniqueUsersCount','addUser','mySessionId','register','sessionAdd:','getUser','_registeredSessions','orderNumber','372quaAug','delete','add','isMe','size','connected','19061170vAHPfC','25509bfKIcX','listenTo','clear','180rVLuDV','isOfficialPlugin','role','803120fvEdbI','init','_users','_handleSessionAdd','values','allConnectedUsers','assign','getUserBySessionId','getUserSessions','plugins','11FqNFIh','248EcFMek','set','4754712aTnxUk','stopListening','_handleSessionRemove','isPremiumPlugin','getUserRole','sessionId','requires','908145NceMVW','get','fire','7002MksIUq','Sessions','has','defineMe','pluginName','channelSessions','state','context'];_0x5e91=function(){return _0x256d1d;};return _0x5e91();}function _0x2361(_0x33da57,_0xe0202f){const _0x5e919e=_0x5e91();return _0x2361=function(_0x2361c6,_0x3fbdb2){_0x2361c6=_0x2361c6-0x74;let _0x57552b=_0x5e919e[_0x2361c6];return _0x57552b;},_0x2361(_0x33da57,_0xe0202f);}import{WebSocketGateway as _0x3819d4}from'./websocketgateway.js';import{Users as _0x587b83}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x2224a8{[_0x2054dc(0x7d)];[_0x2054dc(0x81)];[_0x2054dc(0xa6)];[_0x2054dc(0x92)];[_0x2054dc(0x8c)];[_0x2054dc(0xa3)];static get[_0x2054dc(0x7c)](){const _0x1816de=_0x2054dc;return _0x1816de(0x79);}static get[_0x2054dc(0x9f)](){return!0x0;}static get[_0x2054dc(0xb1)](){return!0x0;}static get[_0x2054dc(0x74)](){return[_0x3819d4,_0x587b83];}constructor(_0x1720a3){const _0x231c29=_0x2054dc;super(_0x1720a3),this[_0x231c29(0x7d)]=new Map(),this[_0x231c29(0x81)]=new Map(),this[_0x231c29(0xa6)]=new _0x181152(),this[_0x231c29(0x92)]=new Map(),this[_0x231c29(0x8c)]=0x0,this[_0x231c29(0xa3)]=this[_0x231c29(0x7f)][_0x231c29(0xaa)][_0x231c29(0x76)](_0x587b83);}[_0x2054dc(0xa2)](){const _0x54b150=_0x2054dc,_0x45b952=this[_0x54b150(0x7f)][_0x54b150(0xaa)][_0x54b150(0x76)](_0x3819d4);this[_0x54b150(0x9c)](_0x45b952,_0x54b150(0x84),(_0x28618e,_0x953e17,_0x302425)=>{const _0x2ddfeb=_0x54b150;if(_0x2ddfeb(0x99)!==_0x302425)this[_0x2ddfeb(0x7d)][_0x2ddfeb(0x82)](_0x5690aa=>_0x5690aa[_0x2ddfeb(0x9d)]()),this[_0x2ddfeb(0x81)][_0x2ddfeb(0x82)](_0x1ef14b=>_0x1ef14b[_0x2ddfeb(0x9d)]()),this[_0x2ddfeb(0xa6)][_0x2ddfeb(0x9d)]();else{for(const [_0x41b3be,_0x1b1154]of this[_0x2ddfeb(0x92)])for(const _0x533eed of _0x1b1154)this[_0x2ddfeb(0xa4)](_0x41b3be,_0x533eed);}}),this[_0x54b150(0x85)](_0x45b952[_0x54b150(0x8b)]['me'],!0x0);}[_0x2054dc(0x8f)](_0x507d9b,_0x35e9e6){const _0x57d473=_0x2054dc;if(this[_0x57d473(0x92)][_0x57d473(0x7a)](_0x507d9b))throw new _0x56d014(_0x57d473(0x80),null,{'channelId':_0x507d9b});this[_0x57d473(0x92)][_0x57d473(0xad)](_0x507d9b,_0x35e9e6),this[_0x57d473(0x7d)][_0x57d473(0xad)](_0x507d9b,new _0x181152()),this[_0x57d473(0x81)][_0x57d473(0xad)](_0x507d9b,new _0x181152()),this[_0x57d473(0x9c)](_0x35e9e6,_0x57d473(0x96),(_0xbc9cdd,_0xcce6fa)=>this[_0x57d473(0xa4)](_0x507d9b,_0xcce6fa)),this[_0x57d473(0x9c)](_0x35e9e6,_0x57d473(0x89),(_0x584c53,_0x359b04)=>this[_0x57d473(0xb0)](_0x507d9b,_0x359b04));for(const _0x2535eb of _0x35e9e6)this[_0x57d473(0xa4)](_0x507d9b,_0x2535eb);}[_0x2054dc(0x88)](_0x577c36){const _0x969b97=_0x2054dc;if(!this[_0x969b97(0x92)][_0x969b97(0x7a)](_0x577c36))throw new _0x56d014(_0x969b97(0x86),null,{'channelId':_0x577c36});const _0x10dceb=this[_0x969b97(0x92)][_0x969b97(0x76)](_0x577c36);this[_0x969b97(0xaf)](_0x10dceb);for(const _0x50a8fb of _0x10dceb)_0x969b97(0x99)===this[_0x969b97(0x7f)][_0x969b97(0xaa)][_0x969b97(0x76)](_0x3819d4)[_0x969b97(0x7e)]&&this[_0x969b97(0xb0)](_0x577c36,_0x50a8fb);this[_0x969b97(0x92)][_0x969b97(0x95)](_0x577c36),this[_0x969b97(0x7d)][_0x969b97(0x95)](_0x577c36),this[_0x969b97(0x81)][_0x969b97(0x95)](_0x577c36);}get[_0x2054dc(0x8e)](){const _0x130701=_0x2054dc;return this[_0x130701(0x7f)][_0x130701(0xaa)][_0x130701(0x76)](_0x3819d4)[_0x130701(0x8b)][_0x130701(0xb3)];}[_0x2054dc(0xa8)](_0x487b49){const _0x30fb2b=_0x2054dc;for(const _0x24b03b of this[_0x30fb2b(0x7d)][_0x30fb2b(0xa5)]())for(const _0x5f36c8 of _0x24b03b)if(_0x5f36c8['id']===_0x487b49)return _0x5f36c8[_0x30fb2b(0x8a)];}[_0x2054dc(0xa9)](_0x4f8c06,_0x5ee1c3){const _0x15cc54=_0x2054dc,_0x59043c=_0x5ee1c3?[this[_0x15cc54(0x7d)][_0x15cc54(0x76)](_0x5ee1c3)]:this[_0x15cc54(0x7d)][_0x15cc54(0xa5)](),_0x308914=new Set();for(const _0x1cd304 of _0x59043c)for(const _0x1ef9e3 of _0x1cd304)_0x1ef9e3[_0x15cc54(0x8a)]['id']===_0x4f8c06['id']&&_0x308914[_0x15cc54(0x96)](_0x1ef9e3['id']);return _0x308914;}[_0x2054dc(0xb2)](_0x1301cd){const _0x16410a=_0x2054dc;for(const _0x22ebfc of this[_0x16410a(0x7d)][_0x16410a(0xa5)]())for(const _0x599c0a of _0x22ebfc)if(_0x599c0a[_0x16410a(0x8a)]===_0x1301cd)return _0x599c0a[_0x16410a(0xa0)];}[_0x2054dc(0xa4)](_0x4f46d0,_0x53186c){const _0x17b424=_0x2054dc;if(_0x17b424(0x99)!==this[_0x17b424(0x7f)][_0x17b424(0xaa)][_0x17b424(0x76)](_0x3819d4)[_0x17b424(0x7e)])return;const _0xa04969=_0x53186c[_0x17b424(0x8a)],_0x485f26=this[_0x17b424(0xa3)][_0x17b424(0x91)](_0xa04969['id'])||this[_0x17b424(0x85)](_0xa04969),_0x3914d3=Object[_0x17b424(0xa7)]({},_0x53186c,{'user':_0x485f26});if(this[_0x17b424(0x7d)][_0x17b424(0x76)](_0x4f46d0)[_0x17b424(0x96)](_0x3914d3),!_0xa04969[_0x17b424(0x87)]){const _0x45d711=this[_0x17b424(0x81)][_0x17b424(0x76)](_0x4f46d0);_0x45d711[_0x17b424(0x7a)](_0x485f26['id'])||_0x45d711[_0x17b424(0x96)](_0x485f26),this[_0x17b424(0xa6)][_0x17b424(0x7a)](_0x485f26['id'])||_0xa04969[_0x17b424(0x87)]||this[_0x17b424(0xa6)][_0x17b424(0x96)](_0x485f26,_0x485f26[_0x17b424(0x97)]?0x0:void 0x0);}this[_0x17b424(0x77)](_0x17b424(0x90)+_0x4f46d0,{'channelId':_0x4f46d0,'session':_0x3914d3});}[_0x2054dc(0xb0)](_0x3491cb,_0x17cc02){const _0x188aad=_0x2054dc;if(_0x188aad(0x99)!==this[_0x188aad(0x7f)][_0x188aad(0xaa)][_0x188aad(0x76)](_0x3819d4)[_0x188aad(0x7e)])return;const _0x4cf7a4=this[_0x188aad(0x81)][_0x188aad(0x76)](_0x3491cb),_0x52e2bf=_0x17cc02[_0x188aad(0x8a)];_0x52e2bf['id']&&(this[_0x188aad(0x7d)][_0x188aad(0x76)](_0x3491cb)[_0x188aad(0x89)](_0x17cc02['id']),_0x4cf7a4[_0x188aad(0x7a)](_0x52e2bf['id'])&&!this[_0x188aad(0xa9)](_0x52e2bf,_0x3491cb)[_0x188aad(0x98)]&&_0x4cf7a4[_0x188aad(0x89)](_0x52e2bf['id']),this[_0x188aad(0xa6)][_0x188aad(0x76)](_0x52e2bf['id'])&&!this[_0x188aad(0xa9)](_0x52e2bf)[_0x188aad(0x98)]&&this[_0x188aad(0xa6)][_0x188aad(0x89)](_0x52e2bf['id']));}[_0x2054dc(0x85)](_0x2909d7,_0x5be6e0){const _0x2da399=_0x2054dc,_0x608b54=this[_0x2da399(0xa3)][_0x2da399(0x8d)](_0x2909d7);return _0x5be6e0&&this[_0x2da399(0xa3)][_0x2da399(0x7b)](_0x2909d7['id']),_0x608b54[_0x2da399(0x93)]=this[_0x2da399(0x8c)]++,_0x608b54;}}
23
+ const _0x44c511=_0x3fad;(function(_0x4cd174,_0x2b8b99){const _0x17b954=_0x3fad,_0x491093=_0x4cd174();while(!![]){try{const _0xd8dac2=parseInt(_0x17b954(0x17d))/0x1+-parseInt(_0x17b954(0x192))/0x2+-parseInt(_0x17b954(0x180))/0x3*(-parseInt(_0x17b954(0x16e))/0x4)+parseInt(_0x17b954(0x19a))/0x5+parseInt(_0x17b954(0x171))/0x6*(parseInt(_0x17b954(0x198))/0x7)+-parseInt(_0x17b954(0x19b))/0x8*(-parseInt(_0x17b954(0x197))/0x9)+-parseInt(_0x17b954(0x174))/0xa;if(_0xd8dac2===_0x2b8b99)break;else _0x491093['push'](_0x491093['shift']());}catch(_0x16df96){_0x491093['push'](_0x491093['shift']());}}}(_0x493d,0xb4a8e));import{ContextPlugin as _0x66e65e}from'ckeditor5/src/core.js';function _0x3fad(_0x116fba,_0x216b6f){const _0x493d38=_0x493d();return _0x3fad=function(_0x3fad1a,_0x451e9c){_0x3fad1a=_0x3fad1a-0x169;let _0xb86a85=_0x493d38[_0x3fad1a];return _0xb86a85;},_0x3fad(_0x116fba,_0x216b6f);}import{Collection as _0xcec6c4,CKEditorError as _0x4b58d0}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x337023}from'./websocketgateway.js';import{Users as _0x2c2169}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x493d(){const _0xbf6d91=['166962nUcZIW','addUser','register','sessions-unregister-not-exist','delete','63yMCuXy','180453eEgwpu','clear','5469555CFNUaN','205672wbGrGL','_handleSessionAdd','set','forEach','connected','_handleSessionRemove','mySessionId','listenTo','state','remove','add','has','isPremiumPlugin','context','channelConnectedUsers','stopListening','channelSessions','isOfficialPlugin','4ieLGKX','_registeredSessions','allConnectedUsers','288xeteRj','connection','plugins','30755770yCrVPA','getUserBySessionId','isMe','change:state','unregister','user','Sessions','init','_users','1140971FjcGwx','pluginName','get','740409oEABcx','values','sessions-register-already-registered','defineMe','_createUser','size','getUserSessions','sessionId','assign','requires','getUser','_uniqueUsersCount','role','getUserRole','hiddenInPresenceList','sessionAdd:','fire','orderNumber'];_0x493d=function(){return _0xbf6d91;};return _0x493d();}export class Sessions extends _0x66e65e{[_0x44c511(0x16c)];[_0x44c511(0x16a)];[_0x44c511(0x170)];[_0x44c511(0x16f)];[_0x44c511(0x18b)];[_0x44c511(0x17c)];static get[_0x44c511(0x17e)](){const _0x33266b=_0x44c511;return _0x33266b(0x17a);}static get[_0x44c511(0x16d)](){return!0x0;}static get[_0x44c511(0x1a7)](){return!0x0;}static get[_0x44c511(0x189)](){return[_0x337023,_0x2c2169];}constructor(_0x103537){const _0x5212ff=_0x44c511;super(_0x103537),this[_0x5212ff(0x16c)]=new Map(),this[_0x5212ff(0x16a)]=new Map(),this[_0x5212ff(0x170)]=new _0xcec6c4(),this[_0x5212ff(0x16f)]=new Map(),this[_0x5212ff(0x18b)]=0x0,this[_0x5212ff(0x17c)]=this[_0x5212ff(0x169)][_0x5212ff(0x173)][_0x5212ff(0x17f)](_0x2c2169);}[_0x44c511(0x17b)](){const _0x3d6c38=_0x44c511,_0x2fad79=this[_0x3d6c38(0x169)][_0x3d6c38(0x173)][_0x3d6c38(0x17f)](_0x337023);this[_0x3d6c38(0x1a2)](_0x2fad79,_0x3d6c38(0x177),(_0x3bc6ae,_0x26e8e0,_0x2e3286)=>{const _0x921a55=_0x3d6c38;if(_0x921a55(0x19f)!==_0x2e3286)this[_0x921a55(0x16c)][_0x921a55(0x19e)](_0x461350=>_0x461350[_0x921a55(0x199)]()),this[_0x921a55(0x16a)][_0x921a55(0x19e)](_0x40c57a=>_0x40c57a[_0x921a55(0x199)]()),this[_0x921a55(0x170)][_0x921a55(0x199)]();else{for(const [_0x508cc8,_0x4c3931]of this[_0x921a55(0x16f)])for(const _0x4f2db3 of _0x4c3931)this[_0x921a55(0x19c)](_0x508cc8,_0x4f2db3);}}),this[_0x3d6c38(0x184)](_0x2fad79[_0x3d6c38(0x172)]['me'],!0x0);}[_0x44c511(0x194)](_0x3b9c62,_0x3a790a){const _0x2bb92b=_0x44c511;if(this[_0x2bb92b(0x16f)][_0x2bb92b(0x1a6)](_0x3b9c62))throw new _0x4b58d0(_0x2bb92b(0x182),null,{'channelId':_0x3b9c62});this[_0x2bb92b(0x16f)][_0x2bb92b(0x19d)](_0x3b9c62,_0x3a790a),this[_0x2bb92b(0x16c)][_0x2bb92b(0x19d)](_0x3b9c62,new _0xcec6c4()),this[_0x2bb92b(0x16a)][_0x2bb92b(0x19d)](_0x3b9c62,new _0xcec6c4()),this[_0x2bb92b(0x1a2)](_0x3a790a,_0x2bb92b(0x1a5),(_0x2e5202,_0x171d4d)=>this[_0x2bb92b(0x19c)](_0x3b9c62,_0x171d4d)),this[_0x2bb92b(0x1a2)](_0x3a790a,_0x2bb92b(0x1a4),(_0x188ed0,_0x3349a3)=>this[_0x2bb92b(0x1a0)](_0x3b9c62,_0x3349a3));for(const _0x32765b of _0x3a790a)this[_0x2bb92b(0x19c)](_0x3b9c62,_0x32765b);}[_0x44c511(0x178)](_0x1cb33e){const _0x2f359e=_0x44c511;if(!this[_0x2f359e(0x16f)][_0x2f359e(0x1a6)](_0x1cb33e))throw new _0x4b58d0(_0x2f359e(0x195),null,{'channelId':_0x1cb33e});const _0x57edc9=this[_0x2f359e(0x16f)][_0x2f359e(0x17f)](_0x1cb33e);this[_0x2f359e(0x16b)](_0x57edc9);for(const _0x2926ac of _0x57edc9)_0x2f359e(0x19f)===this[_0x2f359e(0x169)][_0x2f359e(0x173)][_0x2f359e(0x17f)](_0x337023)[_0x2f359e(0x1a3)]&&this[_0x2f359e(0x1a0)](_0x1cb33e,_0x2926ac);this[_0x2f359e(0x16f)][_0x2f359e(0x196)](_0x1cb33e),this[_0x2f359e(0x16c)][_0x2f359e(0x196)](_0x1cb33e),this[_0x2f359e(0x16a)][_0x2f359e(0x196)](_0x1cb33e);}get[_0x44c511(0x1a1)](){const _0x4fb86c=_0x44c511;return this[_0x4fb86c(0x169)][_0x4fb86c(0x173)][_0x4fb86c(0x17f)](_0x337023)[_0x4fb86c(0x172)][_0x4fb86c(0x187)];}[_0x44c511(0x175)](_0x100764){const _0x42b598=_0x44c511;for(const _0x1f54b6 of this[_0x42b598(0x16c)][_0x42b598(0x181)]())for(const _0x3ac117 of _0x1f54b6)if(_0x3ac117['id']===_0x100764)return _0x3ac117[_0x42b598(0x179)];}[_0x44c511(0x186)](_0x1ea9b3,_0x33da7c){const _0x486fb6=_0x44c511,_0x581f62=_0x33da7c?[this[_0x486fb6(0x16c)][_0x486fb6(0x17f)](_0x33da7c)]:this[_0x486fb6(0x16c)][_0x486fb6(0x181)](),_0x4eacd6=new Set();for(const _0x2ec1e9 of _0x581f62)for(const _0x4bcf9f of _0x2ec1e9)_0x4bcf9f[_0x486fb6(0x179)]['id']===_0x1ea9b3['id']&&_0x4eacd6[_0x486fb6(0x1a5)](_0x4bcf9f['id']);return _0x4eacd6;}[_0x44c511(0x18d)](_0x1f80d6){const _0x5066cd=_0x44c511;for(const _0x46ed06 of this[_0x5066cd(0x16c)][_0x5066cd(0x181)]())for(const _0x452b04 of _0x46ed06)if(_0x452b04[_0x5066cd(0x179)]===_0x1f80d6)return _0x452b04[_0x5066cd(0x18c)];}[_0x44c511(0x19c)](_0x138147,_0x1b5ee2){const _0x5b398a=_0x44c511;if(_0x5b398a(0x19f)!==this[_0x5b398a(0x169)][_0x5b398a(0x173)][_0x5b398a(0x17f)](_0x337023)[_0x5b398a(0x1a3)])return;const _0x20cbe7=_0x1b5ee2[_0x5b398a(0x179)],_0x15dcc7=this[_0x5b398a(0x17c)][_0x5b398a(0x18a)](_0x20cbe7['id'])||this[_0x5b398a(0x184)](_0x20cbe7),_0x496191=Object[_0x5b398a(0x188)]({},_0x1b5ee2,{'user':_0x15dcc7});if(this[_0x5b398a(0x16c)][_0x5b398a(0x17f)](_0x138147)[_0x5b398a(0x1a5)](_0x496191),!_0x20cbe7[_0x5b398a(0x18e)]){const _0x5d1565=this[_0x5b398a(0x16a)][_0x5b398a(0x17f)](_0x138147);_0x5d1565[_0x5b398a(0x1a6)](_0x15dcc7['id'])||_0x5d1565[_0x5b398a(0x1a5)](_0x15dcc7),this[_0x5b398a(0x170)][_0x5b398a(0x1a6)](_0x15dcc7['id'])||_0x20cbe7[_0x5b398a(0x18e)]||this[_0x5b398a(0x170)][_0x5b398a(0x1a5)](_0x15dcc7,_0x15dcc7[_0x5b398a(0x176)]?0x0:void 0x0);}this[_0x5b398a(0x190)](_0x5b398a(0x18f)+_0x138147,{'channelId':_0x138147,'session':_0x496191});}[_0x44c511(0x1a0)](_0x1bc53d,_0x2c004f){const _0xc656f4=_0x44c511;if(_0xc656f4(0x19f)!==this[_0xc656f4(0x169)][_0xc656f4(0x173)][_0xc656f4(0x17f)](_0x337023)[_0xc656f4(0x1a3)])return;const _0xeb65b1=this[_0xc656f4(0x16a)][_0xc656f4(0x17f)](_0x1bc53d),_0x5120c7=_0x2c004f[_0xc656f4(0x179)];_0x5120c7['id']&&(this[_0xc656f4(0x16c)][_0xc656f4(0x17f)](_0x1bc53d)[_0xc656f4(0x1a4)](_0x2c004f['id']),_0xeb65b1[_0xc656f4(0x1a6)](_0x5120c7['id'])&&!this[_0xc656f4(0x186)](_0x5120c7,_0x1bc53d)[_0xc656f4(0x185)]&&_0xeb65b1[_0xc656f4(0x1a4)](_0x5120c7['id']),this[_0xc656f4(0x170)][_0xc656f4(0x17f)](_0x5120c7['id'])&&!this[_0xc656f4(0x186)](_0x5120c7)[_0xc656f4(0x185)]&&this[_0xc656f4(0x170)][_0xc656f4(0x1a4)](_0x5120c7['id']));}[_0x44c511(0x184)](_0x4a82a8,_0xabc200){const _0x228c85=_0x44c511,_0x26c997=this[_0x228c85(0x17c)][_0x228c85(0x193)](_0x4a82a8);return _0xabc200&&this[_0x228c85(0x17c)][_0x228c85(0x183)](_0x4a82a8['id']),_0x26c997[_0x228c85(0x191)]=this[_0x228c85(0x18b)]++,_0x26c997;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2957(){const _0x5692e4=['conversion','25054008uujuiR','22083fjTtdp','undo','user:position','selection','getRange','spellcheck','listenTo','mouseleave','userPositionMarker','26gndNSu','markerToElement','update:user:range','set','74YCNlrS','removeMarker','outerHTML','plugins','Escape','markers','remove','destroy','split','getPositions','isInline','getContainedElement','mySessionId','schema','setAttribute','enqueueChange','user:range:','getMarkerClass','afterInit','isDocumentOperation','model','detach','view','isPremiumPlugin','_domEmitter','hasContent','newRange','markerToHighlight','render','document','markerName','deletionPosition','batch','getStart','get','stopListening','checkChild','orderNumber','contenteditable','isLimit','ck-user__selection','span','3126105Cpibdn','_createdBatches','getFirstRange','size','reconvertMarker','clear','66HugWhe','$graveyard','root','change:range','getUserBySessionId','mapper','hasDomSelection','createElement','getCustomProperty','highest','editingDowncast','updateMarker','UserMarkers','createRange','markerNameToElements','isSimilar','$text','commands','12426100dkznhR','createUserMarkerOperations','pluginName','12VTDhxF','toRange','element','applyOperation','toDomElement','rootName','marker','isObject','getSelectionClass','isOfficialPlugin','keydown','markerRange','setCustomProperty','84464dIXtep','addMarker','8ItSwmT','ck-user__marker\x20','end','getNearestSelectionRange','data-session-id','getAttribute','requires','nodeAfter','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','11aDQVZi','editing','mouseenter','textContent','parent','user:position:','color','editor','has','createUIElement','ck-user__marker_hovered','for','delete','removeClass','start','startsWith','user:range','ck-user__marker-tooltip','change','8598303vofLVw','add','name','classList','user:','addEventListener','oldRange','678244rxYBDF','innerHTML','tableCell','init','false','type','fromRange','isCollapsed'];_0x2957=function(){return _0x5692e4;};return _0x2957();}const _0xcad601=_0x28f0;(function(_0x1b3eda,_0x12d4a2){const _0x10a34c=_0x28f0,_0x263062=_0x1b3eda();while(!![]){try{const _0x43e284=-parseInt(_0x10a34c(0x174))/0x1*(parseInt(_0x10a34c(0x181))/0x2)+parseInt(_0x10a34c(0x138))/0x3*(-parseInt(_0x10a34c(0x145))/0x4)+parseInt(_0x10a34c(0x11d))/0x5+parseInt(_0x10a34c(0x123))/0x6*(-parseInt(_0x10a34c(0x16a))/0x7)+-parseInt(_0x10a34c(0x147))/0x8*(parseInt(_0x10a34c(0x163))/0x9)+parseInt(_0x10a34c(0x135))/0xa*(-parseInt(_0x10a34c(0x150))/0xb)+-parseInt(_0x10a34c(0x173))/0xc*(-parseInt(_0x10a34c(0x17d))/0xd);if(_0x43e284===_0x12d4a2)break;else _0x263062['push'](_0x263062['shift']());}catch(_0x6f224d){_0x263062['push'](_0x263062['shift']());}}}(_0x2957,0x9b2ad));import{Plugin as _0x3b5a94}from'ckeditor5/src/core.js';import{global as _0x48df82,DomEmitterMixin as _0x33cef1}from'ckeditor5/src/utils.js';import{Sessions as _0x4c9137}from'./sessions.js';import{ModelLiveRange as _0x4b335f}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x3b5a94{[_0xcad601(0x199)]=new(_0x33cef1())();static get[_0xcad601(0x14d)](){return[_0x4c9137];}static get[_0xcad601(0x137)](){const _0x479cc6=_0xcad601;return _0x479cc6(0x12f);}static get[_0xcad601(0x141)](){return!0x0;}static get[_0xcad601(0x198)](){return!0x0;}[_0xcad601(0x16d)](){const _0x223f0b=_0xcad601,_0x2a62f4=this[_0x223f0b(0x157)],_0x40f5f6=_0x2a62f4[_0x223f0b(0x184)][_0x223f0b(0x115)](_0x4c9137);_0x2a62f4[_0x223f0b(0x172)][_0x223f0b(0x15b)](_0x223f0b(0x12d))[_0x223f0b(0x17e)]({'model':_0x223f0b(0x176),'view':(_0x2ecc40,{writer:_0x419363})=>function(_0x8466d4,_0x3aa070,_0x419a02,_0x3fd205){const _0x11c851=_0x223f0b,_0x292395=_0x8466d4[_0x11c851(0x111)][_0x11c851(0x189)](':')[0x2],_0x2c6694=_0x419a02[_0x11c851(0x127)](_0x292395);if(!_0x2c6694||_0x292395===_0x419a02[_0x11c851(0x18d)])return;if(!_0x3fd205[_0x11c851(0x195)][_0x11c851(0x18e)][_0x11c851(0x117)](_0x8466d4[_0x11c851(0x143)][_0x11c851(0x15e)],_0x11c851(0x133)))return;const _0x3cccd9={'class':_0x11c851(0x148)+_0x2c6694[_0x11c851(0x156)][_0x11c851(0x192)](),'data-name':_0x2c6694[_0x11c851(0x165)],'data-session-id':_0x292395},_0x20adfd=_0x3fd205[_0x11c851(0x195)][_0x11c851(0x186)][_0x11c851(0x115)](_0x8466d4[_0x11c851(0x111)]),_0x2607c8=_0x20adfd[_0x11c851(0x114)](),_0x4b438d=_0x2607c8[_0x11c851(0x14e)],_0x246073=_0x3fd205[_0x11c851(0x195)][_0x11c851(0x18e)];if(_0x4b438d&&_0x246073[_0x11c851(0x13f)](_0x4b438d)&&_0x246073[_0x11c851(0x18b)](_0x4b438d)&&!_0x3fd205[_0x11c851(0x195)][_0x11c851(0x186)][_0x11c851(0x115)](_0x11c851(0x191)+_0x292395)[_0x11c851(0x178)]()[_0x11c851(0x171)])return;const _0x3fa630=_0x2607c8[_0x11c851(0x154)];return _0x3fd205[_0x11c851(0x195)][_0x11c851(0x18e)][_0x11c851(0x11a)](_0x3fa630)&&!_0x3fd205[_0x11c851(0x195)][_0x11c851(0x19a)](_0x3fa630)&&(_0x3cccd9[_0x11c851(0x119)]=!0x1),function(_0x163d40,_0x13256f,_0x4e2ffc){const _0x52ec0d=_0x11c851,_0x1453d6=_0x163d40[_0x52ec0d(0x159)](_0x52ec0d(0x11c),_0x13256f);return _0x163d40[_0x52ec0d(0x144)](_0x52ec0d(0x17c),!0x0,_0x1453d6),_0x1453d6[_0x52ec0d(0x10f)]=function(_0x2fd2a7){const _0x53ea24=_0x52ec0d,_0x5bb049=this[_0x53ea24(0x13c)](_0x2fd2a7),_0x767b=document[_0x53ea24(0x12a)](_0x53ea24(0x11c));return _0x767b[_0x53ea24(0x166)][_0x53ea24(0x164)](_0x53ea24(0x161)),_0x767b[_0x53ea24(0x18f)](_0x53ea24(0x119),_0x53ea24(0x16e)),_0x767b[_0x53ea24(0x18f)](_0x53ea24(0x179),_0x53ea24(0x16e)),_0x767b[_0x53ea24(0x153)]=_0x4e2ffc[_0x53ea24(0x165)],_0x5bb049[_0x53ea24(0x16b)]=_0x53ea24(0x14f)+_0x767b[_0x53ea24(0x183)]+'⁠',_0x5bb049[_0x53ea24(0x168)](_0x53ea24(0x152),()=>{const _0x2329d8=_0x53ea24;_0x5bb049[_0x2329d8(0x166)][_0x2329d8(0x164)](_0x2329d8(0x15a));}),_0x5bb049[_0x53ea24(0x168)](_0x53ea24(0x17b),()=>{const _0x55ffaf=_0x53ea24;_0x5bb049[_0x55ffaf(0x166)][_0x55ffaf(0x187)](_0x55ffaf(0x15a));}),_0x5bb049;},_0x1453d6[_0x52ec0d(0x132)]=function(_0x264e57){const _0x2bc7b1=_0x52ec0d;return!(!this[_0x2bc7b1(0x12b)](_0x2bc7b1(0x17c))||!_0x264e57[_0x2bc7b1(0x12b)](_0x2bc7b1(0x17c))||this[_0x2bc7b1(0x14c)](_0x2bc7b1(0x14b))!=_0x264e57[_0x2bc7b1(0x14c)](_0x2bc7b1(0x14b)));},_0x1453d6;}(_0x3aa070,_0x3cccd9,_0x2c6694);}(_0x2ecc40,_0x419363,_0x40f5f6,_0x2a62f4)}),_0x2a62f4[_0x223f0b(0x172)][_0x223f0b(0x15b)](_0x223f0b(0x12d))[_0x223f0b(0x10e)]({'model':_0x223f0b(0x160),'view':_0x48abe1=>function(_0x146c48,_0xea0f85){const _0x527edd=_0x223f0b,_0x4bfd6f=_0x146c48[_0x527edd(0x111)][_0x527edd(0x189)](':')[0x2];if(_0x4bfd6f===_0xea0f85[_0x527edd(0x18d)])return null;const _0x5acd34=_0xea0f85[_0x527edd(0x127)](_0x4bfd6f);if(!_0x5acd34)return{'id':_0x4bfd6f,'classes':[]};return{'id':_0x4bfd6f,'classes':[_0x527edd(0x11b),_0x5acd34[_0x527edd(0x156)][_0x527edd(0x140)]()],'attributes':{'data-session-id':_0x4bfd6f},'priority':0x7d0+_0x5acd34[_0x527edd(0x118)]};}(_0x48abe1,_0x40f5f6)}),function(_0x2ee3be){const _0x19b72d=_0x223f0b,_0x534951=_0x2ee3be[_0x19b72d(0x195)],_0x5d755d=new Map(),_0x2f50d0=_0x2ee3be[_0x19b72d(0x184)][_0x19b72d(0x115)](_0x4c9137);_0x534951[_0x19b72d(0x186)]['on'](_0x19b72d(0x17f),(_0x5a5664,_0x43dc07,_0xcd652,_0x513101)=>{const _0x128bc8=_0x19b72d;if(!_0x513101&&_0x5d755d[_0x128bc8(0x115)](_0x43dc07[_0x128bc8(0x165)]))return _0x5d755d[_0x128bc8(0x115)](_0x43dc07[_0x128bc8(0x165)])[_0x128bc8(0x196)](),void _0x5d755d[_0x128bc8(0x15c)](_0x43dc07[_0x128bc8(0x165)]);const _0x5dbdd9=_0x43dc07[_0x128bc8(0x165)][_0x128bc8(0x189)](':')[0x2];if(_0x5dbdd9===_0x2f50d0[_0x128bc8(0x18d)])return;const _0x375264=_0x128bc8(0x155)+_0x5dbdd9;_0x534951[_0x128bc8(0x186)][_0x128bc8(0x158)](_0x375264)&&_0x2ee3be[_0x128bc8(0x151)][_0x128bc8(0x121)](_0x375264),_0x43dc07['on'](_0x128bc8(0x126),(_0x3a77a6,_0x767d96,_0x1205c4)=>{const _0x52bce4=_0x128bc8;if(_0x52bce4(0x124)!=_0x767d96[_0x52bce4(0x125)][_0x52bce4(0x13d)]&&_0x52bce4(0x124)==_0x43dc07[_0x52bce4(0x178)]()[_0x52bce4(0x125)][_0x52bce4(0x13d)]&&!_0x5d755d[_0x52bce4(0x158)](_0x43dc07[_0x52bce4(0x165)])){const _0xcc4681=_0x534951[_0x52bce4(0x18e)][_0x52bce4(0x14a)](_0x1205c4[_0x52bce4(0x112)]);if(_0xcc4681){const _0x3590db=_0x4b335f[_0x52bce4(0x170)](_0xcc4681);_0x5d755d[_0x52bce4(0x180)](_0x43dc07[_0x52bce4(0x165)],_0x3590db),_0x3590db['on'](_0x52bce4(0x126),(_0x2f1aee,_0x9a4a54,_0x4a9b40)=>{const _0x498c1c=_0x52bce4;if(_0x498c1c(0x124)==_0x3590db[_0x498c1c(0x125)][_0x498c1c(0x13d)]){const _0x16b61e=_0x534951[_0x498c1c(0x18e)][_0x498c1c(0x14a)](_0x4a9b40[_0x498c1c(0x112)]);_0x16b61e?(_0x3590db[_0x498c1c(0x15e)]=_0x16b61e[_0x498c1c(0x15e)],_0x3590db[_0x498c1c(0x149)]=_0x16b61e[_0x498c1c(0x149)]):(_0x5d755d[_0x498c1c(0x15c)](_0x43dc07[_0x498c1c(0x165)]),_0x3590db[_0x498c1c(0x196)]());}});}}});}),_0x534951[_0x19b72d(0x110)]['on'](_0x19b72d(0x162),()=>{const _0x4e004b=_0x19b72d;_0x5d755d[_0x4e004b(0x120)]>0x0&&_0x534951[_0x4e004b(0x190)]({'isUndoable':!0x1},_0x2f54a9=>{const _0x55441b=_0x4e004b;for(const [_0x3f22a7,_0x1a2c12]of _0x5d755d)_0x55441b(0x124)==_0x534951[_0x55441b(0x186)][_0x55441b(0x115)](_0x3f22a7)[_0x55441b(0x178)]()[_0x55441b(0x125)][_0x55441b(0x13d)]&&(re(_0x3f22a7[_0x55441b(0x189)](':')[0x2],_0x1a2c12[_0x55441b(0x139)](),_0x534951,_0x2f54a9),_0x1a2c12[_0x55441b(0x196)]());_0x5d755d[_0x55441b(0x122)]();});});}(_0x2a62f4),this[_0x223f0b(0x199)][_0x223f0b(0x17a)](_0x48df82[_0x223f0b(0x110)],_0x223f0b(0x142),(_0x5f553c,{key:_0x4dc7b2})=>{const _0x4261b9=_0x223f0b;_0x4261b9(0x185)===_0x4dc7b2&&function(_0x5be490){const _0x284009=_0x4261b9;_0x5be490[_0x284009(0x151)][_0x284009(0x197)][_0x284009(0x162)](_0x2f7331=>{const _0x5ab91c=_0x284009;for(const _0x255220 of _0x5be490[_0x5ab91c(0x195)][_0x5ab91c(0x186)]){if(!_0x255220[_0x5ab91c(0x165)][_0x5ab91c(0x15f)](_0x5ab91c(0x176)))continue;const _0x1837cc=_0x5be490[_0x5ab91c(0x151)][_0x5ab91c(0x128)][_0x5ab91c(0x131)](_0x255220[_0x5ab91c(0x165)]);if(_0x1837cc){for(const _0x3490eb of _0x1837cc)_0x2f7331[_0x5ab91c(0x15d)](_0x5ab91c(0x15a),_0x3490eb);}}});}(_0x2a62f4);},{'useCapture':!0x0});}[_0xcad601(0x193)](){const _0x3cb1f5=_0xcad601,_0x7debb7=this[_0x3cb1f5(0x157)],_0x114842=_0x7debb7[_0x3cb1f5(0x134)][_0x3cb1f5(0x115)](_0x3cb1f5(0x175));_0x114842&&_0x7debb7[_0x3cb1f5(0x195)]['on'](_0x3cb1f5(0x13b),(_0x21ac7a,_0x3cd33b)=>{const _0x42eeb2=_0x3cb1f5,_0x41a884=_0x3cd33b[0x0];if(!_0x41a884[_0x42eeb2(0x194)])return;if(_0x42eeb2(0x13e)!=_0x41a884[_0x42eeb2(0x16f)]||!_0x41a884[_0x42eeb2(0x165)][_0x42eeb2(0x15f)](_0x42eeb2(0x167)))return;const _0x44c7f3=_0x41a884[_0x42eeb2(0x113)];_0x114842[_0x42eeb2(0x11e)][_0x42eeb2(0x158)](_0x44c7f3)&&(_0x41a884[_0x42eeb2(0x10d)]=_0x41a884[_0x42eeb2(0x169)]?_0x7debb7[_0x42eeb2(0x195)][_0x42eeb2(0x130)](_0x41a884[_0x42eeb2(0x169)][_0x42eeb2(0x15e)],_0x41a884[_0x42eeb2(0x169)][_0x42eeb2(0x149)]):null);},{'priority':_0x3cb1f5(0x12c)});}[_0xcad601(0x188)](){const _0x490845=_0xcad601;return this[_0x490845(0x199)][_0x490845(0x116)](),super[_0x490845(0x188)]();}[_0xcad601(0x136)](){const _0x55cb53=_0xcad601,_0x21fd22=this[_0x55cb53(0x157)],_0x128e5d=_0x21fd22[_0x55cb53(0x195)][_0x55cb53(0x110)],_0x3f5d52=_0x21fd22[_0x55cb53(0x184)][_0x55cb53(0x115)](_0x4c9137);_0x21fd22[_0x55cb53(0x195)][_0x55cb53(0x190)]({'isUndoable':!0x1},_0x54a5a3=>{const _0x408304=_0x55cb53,_0x39ff61=_0x408304(0x191)+_0x3f5d52[_0x408304(0x18d)],_0xebb6cf=_0x408304(0x155)+_0x3f5d52[_0x408304(0x18d)],_0xb64a9a=_0x21fd22[_0x408304(0x195)][_0x408304(0x186)][_0x408304(0x158)](_0x39ff61);_0x21fd22[_0x408304(0x151)][_0x408304(0x197)][_0x408304(0x129)]?re(_0x3f5d52[_0x408304(0x18d)],_0x128e5d[_0x408304(0x177)][_0x408304(0x11f)](),_0x21fd22[_0x408304(0x195)],_0x54a5a3):_0xb64a9a&&(_0x54a5a3[_0x408304(0x182)](_0x39ff61),_0x54a5a3[_0x408304(0x182)](_0xebb6cf));});}}function _0x28f0(_0x4c8352,_0x1e68ae){const _0x2957f3=_0x2957();return _0x28f0=function(_0x28f09c,_0x1b0fdc){_0x28f09c=_0x28f09c-0x10d;let _0x457a73=_0x2957f3[_0x28f09c];return _0x457a73;},_0x28f0(_0x4c8352,_0x1e68ae);}function re(_0x11e556,_0x29235b,_0x1c39cf,_0x303f81){const _0x1826ce=_0xcad601,_0x3e4ef2=_0x1826ce(0x191)+_0x11e556,_0x2cbfe0=_0x1826ce(0x155)+_0x11e556,_0x1804bd=_0x29235b[_0x1826ce(0x18c)]();let _0x264f75=_0x29235b[_0x1826ce(0x15e)];if(_0x1804bd&&_0x1804bd['is'](_0x1826ce(0x13a),_0x1826ce(0x16c))){const _0x2220b9=function(_0x3a329e,_0x41f674){const _0x21b1f2=_0x1826ce;for(const _0x1bee7e of _0x3a329e[_0x21b1f2(0x18a)]())if(_0x41f674[_0x21b1f2(0x18e)][_0x21b1f2(0x117)](_0x1bee7e,_0x21b1f2(0x133)))return _0x1bee7e;}(_0x29235b,_0x1c39cf);_0x2220b9&&(_0x264f75=_0x2220b9,_0x29235b=_0x303f81[_0x1826ce(0x130)](_0x264f75));}const _0x3de16=_0x303f81[_0x1826ce(0x130)](_0x264f75);_0x1c39cf[_0x1826ce(0x186)][_0x1826ce(0x158)](_0x3e4ef2)?(_0x303f81[_0x1826ce(0x12e)](_0x3e4ef2,{'range':_0x29235b}),_0x303f81[_0x1826ce(0x12e)](_0x2cbfe0,{'range':_0x3de16})):(_0x303f81[_0x1826ce(0x146)](_0x3e4ef2,{'range':_0x29235b,'usingOperation':!0x0}),_0x303f81[_0x1826ce(0x146)](_0x2cbfe0,{'range':_0x3de16,'usingOperation':!0x0}));}
23
+ const _0x264f07=_0x5e40;(function(_0x35b80c,_0x53840b){const _0x2d87cc=_0x5e40,_0x38b171=_0x35b80c();while(!![]){try{const _0xf685c8=parseInt(_0x2d87cc(0x252))/0x1+parseInt(_0x2d87cc(0x26a))/0x2*(parseInt(_0x2d87cc(0x245))/0x3)+-parseInt(_0x2d87cc(0x25d))/0x4*(parseInt(_0x2d87cc(0x25e))/0x5)+parseInt(_0x2d87cc(0x253))/0x6*(parseInt(_0x2d87cc(0x1ef))/0x7)+-parseInt(_0x2d87cc(0x234))/0x8*(parseInt(_0x2d87cc(0x26c))/0x9)+parseInt(_0x2d87cc(0x248))/0xa*(parseInt(_0x2d87cc(0x257))/0xb)+parseInt(_0x2d87cc(0x206))/0xc;if(_0xf685c8===_0x53840b)break;else _0x38b171['push'](_0x38b171['shift']());}catch(_0x6b4494){_0x38b171['push'](_0x38b171['shift']());}}}(_0x1b9c,0x8b7a9));import{Plugin as _0x34e30a}from'ckeditor5/src/core.js';import{global as _0x5dd397,DomEmitterMixin as _0x432e6f}from'ckeditor5/src/utils.js';function _0x5e40(_0x1049db,_0x3ac40c){const _0x1b9cd6=_0x1b9c();return _0x5e40=function(_0x5e409f,_0x2a8887){_0x5e409f=_0x5e409f-0x1ea;let _0x15dc96=_0x1b9cd6[_0x5e409f];return _0x15dc96;},_0x5e40(_0x1049db,_0x3ac40c);}import{Sessions as _0x53ece5}from'./sessions.js';import{ModelLiveRange as _0x4e5664}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x1b9c(){const _0x29f4b6=['orderNumber','element','isOfficialPlugin','getNearestSelectionRange','addEventListener','change','end','$text','39851qJsOOU','6792UpyDKM','spellcheck','removeMarker','outerHTML','7305595kdveFg','classList','Escape','innerHTML','hasDomSelection','type','1252RfZvIJ','15175lTWlie','tableCell','schema','addMarker','plugins','isCollapsed','render','getRange','rootName','newRange','model','markerName','38QbXilX','ck-user__marker\x20','2834163xtFpMi','highest','name','createElement','change:range','nodeAfter','has','isPremiumPlugin','delete','markerRange','set','removeClass','isLimit','markerNameToElements','marker','deletionPosition','4137nQFcVl','detach','view','isSimilar','destroy','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','mySessionId','createRange','editor','getMarkerClass','setCustomProperty','getStart','checkChild','conversion','user:position:','data-session-id','get','false','getCustomProperty','pluginName','oldRange','document','afterInit','4136808yxWTTt','ck-user__marker-tooltip','size','batch','markerToHighlight','getFirstRange','editingDowncast','getUserBySessionId','markerToElement','user:range','selection','hasContent','markers','toRange','requires','getContainedElement','clear','getAttribute','listenTo','isDocumentOperation','user:position','isInline','_domEmitter','mouseleave','split','createUIElement','textContent','userPositionMarker','enqueueChange','updateMarker','toDomElement','UserMarkers','color','$graveyard','update:user:range','keydown','ck-user__marker_hovered','setAttribute','stopListening','parent','_createdBatches','reconvertMarker','getPositions','applyOperation','remove','mapper','24kgdXVj','getSelectionClass','start','user:range:','isObject','createUserMarkerOperations','contenteditable','editing','undo','startsWith','user:','mouseenter','add','for','span','commands','ck-user__selection','118143OjMndk','root','fromRange','10HAqKsU','init'];_0x1b9c=function(){return _0x29f4b6;};return _0x1b9c();}export class UserMarkers extends _0x34e30a{[_0x264f07(0x21c)]=new(_0x432e6f())();static get[_0x264f07(0x214)](){return[_0x53ece5];}static get[_0x264f07(0x202)](){const _0x663c6f=_0x264f07;return _0x663c6f(0x225);}static get[_0x264f07(0x24c)](){return!0x0;}static get[_0x264f07(0x273)](){return!0x0;}[_0x264f07(0x249)](){const _0x354d04=_0x264f07,_0x302ee7=this[_0x354d04(0x1f7)],_0x4911cc=_0x302ee7[_0x354d04(0x262)][_0x354d04(0x1ff)](_0x53ece5);_0x302ee7[_0x354d04(0x1fc)][_0x354d04(0x241)](_0x354d04(0x20c))[_0x354d04(0x20e)]({'model':_0x354d04(0x21a),'view':(_0x1cf312,{writer:_0x57a55f})=>function(_0x212964,_0x2acbc5,_0x554550,_0x32fa45){const _0x275713=_0x354d04,_0x5751d5=_0x212964[_0x275713(0x269)][_0x275713(0x21e)](':')[0x2],_0x54cbc5=_0x554550[_0x275713(0x20d)](_0x5751d5);if(!_0x54cbc5||_0x5751d5===_0x554550[_0x275713(0x1f5)])return;if(!_0x32fa45[_0x275713(0x268)][_0x275713(0x260)][_0x275713(0x1fb)](_0x212964[_0x275713(0x275)][_0x275713(0x236)],_0x275713(0x251)))return;const _0x32eca7={'class':_0x275713(0x26b)+_0x54cbc5[_0x275713(0x226)][_0x275713(0x1f8)](),'data-name':_0x54cbc5[_0x275713(0x26e)],'data-session-id':_0x5751d5},_0x1e938b=_0x32fa45[_0x275713(0x268)][_0x275713(0x212)][_0x275713(0x1ff)](_0x212964[_0x275713(0x269)]),_0x42a61d=_0x1e938b[_0x275713(0x1fa)](),_0x2b7a2d=_0x42a61d[_0x275713(0x271)],_0x12624b=_0x32fa45[_0x275713(0x268)][_0x275713(0x260)];if(_0x2b7a2d&&_0x12624b[_0x275713(0x238)](_0x2b7a2d)&&_0x12624b[_0x275713(0x21b)](_0x2b7a2d)&&!_0x32fa45[_0x275713(0x268)][_0x275713(0x212)][_0x275713(0x1ff)](_0x275713(0x237)+_0x5751d5)[_0x275713(0x265)]()[_0x275713(0x263)])return;const _0x25e828=_0x42a61d[_0x275713(0x22d)];return _0x32fa45[_0x275713(0x268)][_0x275713(0x260)][_0x275713(0x1eb)](_0x25e828)&&!_0x32fa45[_0x275713(0x268)][_0x275713(0x211)](_0x25e828)&&(_0x32eca7[_0x275713(0x23a)]=!0x1),function(_0x5e7f93,_0x187e59,_0x358389){const _0x13fc80=_0x275713,_0x318600=_0x5e7f93[_0x13fc80(0x21f)](_0x13fc80(0x242),_0x187e59);return _0x5e7f93[_0x13fc80(0x1f9)](_0x13fc80(0x221),!0x0,_0x318600),_0x318600[_0x13fc80(0x264)]=function(_0x6759da){const _0x481c8b=_0x13fc80,_0x1ac894=this[_0x481c8b(0x224)](_0x6759da),_0x341217=document[_0x481c8b(0x26f)](_0x481c8b(0x242));return _0x341217[_0x481c8b(0x258)][_0x481c8b(0x240)](_0x481c8b(0x207)),_0x341217[_0x481c8b(0x22b)](_0x481c8b(0x23a),_0x481c8b(0x200)),_0x341217[_0x481c8b(0x22b)](_0x481c8b(0x254),_0x481c8b(0x200)),_0x341217[_0x481c8b(0x220)]=_0x358389[_0x481c8b(0x26e)],_0x1ac894[_0x481c8b(0x25a)]=_0x481c8b(0x1f4)+_0x341217[_0x481c8b(0x256)]+'⁠',_0x1ac894[_0x481c8b(0x24e)](_0x481c8b(0x23f),()=>{const _0x22829c=_0x481c8b;_0x1ac894[_0x22829c(0x258)][_0x22829c(0x240)](_0x22829c(0x22a));}),_0x1ac894[_0x481c8b(0x24e)](_0x481c8b(0x21d),()=>{const _0x516d6d=_0x481c8b;_0x1ac894[_0x516d6d(0x258)][_0x516d6d(0x232)](_0x516d6d(0x22a));}),_0x1ac894;},_0x318600[_0x13fc80(0x1f2)]=function(_0x427385){const _0x4c5773=_0x13fc80;return!(!this[_0x4c5773(0x201)](_0x4c5773(0x221))||!_0x427385[_0x4c5773(0x201)](_0x4c5773(0x221))||this[_0x4c5773(0x217)](_0x4c5773(0x1fe))!=_0x427385[_0x4c5773(0x217)](_0x4c5773(0x1fe)));},_0x318600;}(_0x2acbc5,_0x32eca7,_0x54cbc5);}(_0x1cf312,_0x57a55f,_0x4911cc,_0x302ee7)}),_0x302ee7[_0x354d04(0x1fc)][_0x354d04(0x241)](_0x354d04(0x20c))[_0x354d04(0x20a)]({'model':_0x354d04(0x20f),'view':_0xd3f736=>function(_0x41cdd8,_0x3f8c96){const _0xf485ad=_0x354d04,_0x285475=_0x41cdd8[_0xf485ad(0x269)][_0xf485ad(0x21e)](':')[0x2];if(_0x285475===_0x3f8c96[_0xf485ad(0x1f5)])return null;const _0x2d44f8=_0x3f8c96[_0xf485ad(0x20d)](_0x285475);if(!_0x2d44f8)return{'id':_0x285475,'classes':[]};return{'id':_0x285475,'classes':[_0xf485ad(0x244),_0x2d44f8[_0xf485ad(0x226)][_0xf485ad(0x235)]()],'attributes':{'data-session-id':_0x285475},'priority':0x7d0+_0x2d44f8[_0xf485ad(0x24a)]};}(_0xd3f736,_0x4911cc)}),function(_0x5744dd){const _0xb5cea4=_0x354d04,_0x5bc587=_0x5744dd[_0xb5cea4(0x268)],_0x55382f=new Map(),_0x8269a3=_0x5744dd[_0xb5cea4(0x262)][_0xb5cea4(0x1ff)](_0x53ece5);_0x5bc587[_0xb5cea4(0x212)]['on'](_0xb5cea4(0x228),(_0x2a3bb5,_0x1152db,_0x12ed21,_0x5da9b9)=>{const _0x7c0ba8=_0xb5cea4;if(!_0x5da9b9&&_0x55382f[_0x7c0ba8(0x1ff)](_0x1152db[_0x7c0ba8(0x26e)]))return _0x55382f[_0x7c0ba8(0x1ff)](_0x1152db[_0x7c0ba8(0x26e)])[_0x7c0ba8(0x1f0)](),void _0x55382f[_0x7c0ba8(0x274)](_0x1152db[_0x7c0ba8(0x26e)]);const _0x16b27b=_0x1152db[_0x7c0ba8(0x26e)][_0x7c0ba8(0x21e)](':')[0x2];if(_0x16b27b===_0x8269a3[_0x7c0ba8(0x1f5)])return;const _0x5a9975=_0x7c0ba8(0x1fd)+_0x16b27b;_0x5bc587[_0x7c0ba8(0x212)][_0x7c0ba8(0x272)](_0x5a9975)&&_0x5744dd[_0x7c0ba8(0x23b)][_0x7c0ba8(0x22f)](_0x5a9975),_0x1152db['on'](_0x7c0ba8(0x270),(_0x2afd18,_0x5e7eee,_0x57accc)=>{const _0x8713a0=_0x7c0ba8;if(_0x8713a0(0x227)!=_0x5e7eee[_0x8713a0(0x246)][_0x8713a0(0x266)]&&_0x8713a0(0x227)==_0x1152db[_0x8713a0(0x265)]()[_0x8713a0(0x246)][_0x8713a0(0x266)]&&!_0x55382f[_0x8713a0(0x272)](_0x1152db[_0x8713a0(0x26e)])){const _0x53c654=_0x5bc587[_0x8713a0(0x260)][_0x8713a0(0x24d)](_0x57accc[_0x8713a0(0x1ee)]);if(_0x53c654){const _0x3ffd03=_0x4e5664[_0x8713a0(0x247)](_0x53c654);_0x55382f[_0x8713a0(0x276)](_0x1152db[_0x8713a0(0x26e)],_0x3ffd03),_0x3ffd03['on'](_0x8713a0(0x270),(_0x595231,_0x48cbbc,_0x168f27)=>{const _0x1c5dcd=_0x8713a0;if(_0x1c5dcd(0x227)==_0x3ffd03[_0x1c5dcd(0x246)][_0x1c5dcd(0x266)]){const _0x5f11e6=_0x5bc587[_0x1c5dcd(0x260)][_0x1c5dcd(0x24d)](_0x168f27[_0x1c5dcd(0x1ee)]);_0x5f11e6?(_0x3ffd03[_0x1c5dcd(0x236)]=_0x5f11e6[_0x1c5dcd(0x236)],_0x3ffd03[_0x1c5dcd(0x250)]=_0x5f11e6[_0x1c5dcd(0x250)]):(_0x55382f[_0x1c5dcd(0x274)](_0x1152db[_0x1c5dcd(0x26e)]),_0x3ffd03[_0x1c5dcd(0x1f0)]());}});}}});}),_0x5bc587[_0xb5cea4(0x204)]['on'](_0xb5cea4(0x24f),()=>{const _0xe9b320=_0xb5cea4;_0x55382f[_0xe9b320(0x208)]>0x0&&_0x5bc587[_0xe9b320(0x222)]({'isUndoable':!0x1},_0x17127b=>{const _0x250f2b=_0xe9b320;for(const [_0x335a06,_0x475de7]of _0x55382f)_0x250f2b(0x227)==_0x5bc587[_0x250f2b(0x212)][_0x250f2b(0x1ff)](_0x335a06)[_0x250f2b(0x265)]()[_0x250f2b(0x246)][_0x250f2b(0x266)]&&(x(_0x335a06[_0x250f2b(0x21e)](':')[0x2],_0x475de7[_0x250f2b(0x213)](),_0x5bc587,_0x17127b),_0x475de7[_0x250f2b(0x1f0)]());_0x55382f[_0x250f2b(0x216)]();});});}(_0x302ee7),this[_0x354d04(0x21c)][_0x354d04(0x218)](_0x5dd397[_0x354d04(0x204)],_0x354d04(0x229),(_0x1f67f8,{key:_0x260c0a})=>{const _0x8d3cf9=_0x354d04;_0x8d3cf9(0x259)===_0x260c0a&&function(_0x5a6788){const _0x39e071=_0x8d3cf9;_0x5a6788[_0x39e071(0x23b)][_0x39e071(0x1f1)][_0x39e071(0x24f)](_0x3b6799=>{const _0x36006b=_0x39e071;for(const _0x2e16d6 of _0x5a6788[_0x36006b(0x268)][_0x36006b(0x212)]){if(!_0x2e16d6[_0x36006b(0x26e)][_0x36006b(0x23d)](_0x36006b(0x21a)))continue;const _0x5b076b=_0x5a6788[_0x36006b(0x23b)][_0x36006b(0x233)][_0x36006b(0x1ec)](_0x2e16d6[_0x36006b(0x26e)]);if(_0x5b076b){for(const _0x3a9a88 of _0x5b076b)_0x3b6799[_0x36006b(0x1ea)](_0x36006b(0x22a),_0x3a9a88);}}});}(_0x302ee7);},{'useCapture':!0x0});}[_0x264f07(0x205)](){const _0x32fc2a=_0x264f07,_0x2c2e9d=this[_0x32fc2a(0x1f7)],_0x1efce8=_0x2c2e9d[_0x32fc2a(0x243)][_0x32fc2a(0x1ff)](_0x32fc2a(0x23c));_0x1efce8&&_0x2c2e9d[_0x32fc2a(0x268)]['on'](_0x32fc2a(0x231),(_0x46894e,_0x1a6616)=>{const _0x59dc7a=_0x32fc2a,_0x1aa7c2=_0x1a6616[0x0];if(!_0x1aa7c2[_0x59dc7a(0x219)])return;if(_0x59dc7a(0x1ed)!=_0x1aa7c2[_0x59dc7a(0x25c)]||!_0x1aa7c2[_0x59dc7a(0x26e)][_0x59dc7a(0x23d)](_0x59dc7a(0x23e)))return;const _0x57347b=_0x1aa7c2[_0x59dc7a(0x209)];_0x1efce8[_0x59dc7a(0x22e)][_0x59dc7a(0x272)](_0x57347b)&&(_0x1aa7c2[_0x59dc7a(0x267)]=_0x1aa7c2[_0x59dc7a(0x203)]?_0x2c2e9d[_0x59dc7a(0x268)][_0x59dc7a(0x1f6)](_0x1aa7c2[_0x59dc7a(0x203)][_0x59dc7a(0x236)],_0x1aa7c2[_0x59dc7a(0x203)][_0x59dc7a(0x250)]):null);},{'priority':_0x32fc2a(0x26d)});}[_0x264f07(0x1f3)](){const _0x502222=_0x264f07;return this[_0x502222(0x21c)][_0x502222(0x22c)](),super[_0x502222(0x1f3)]();}[_0x264f07(0x239)](){const _0x297646=_0x264f07,_0x5440e2=this[_0x297646(0x1f7)],_0x1b8c50=_0x5440e2[_0x297646(0x268)][_0x297646(0x204)],_0x34aba8=_0x5440e2[_0x297646(0x262)][_0x297646(0x1ff)](_0x53ece5);_0x5440e2[_0x297646(0x268)][_0x297646(0x222)]({'isUndoable':!0x1},_0x2342a4=>{const _0x35f619=_0x297646,_0x16044c=_0x35f619(0x237)+_0x34aba8[_0x35f619(0x1f5)],_0x51c81e=_0x35f619(0x1fd)+_0x34aba8[_0x35f619(0x1f5)],_0x1aef30=_0x5440e2[_0x35f619(0x268)][_0x35f619(0x212)][_0x35f619(0x272)](_0x16044c);_0x5440e2[_0x35f619(0x23b)][_0x35f619(0x1f1)][_0x35f619(0x25b)]?x(_0x34aba8[_0x35f619(0x1f5)],_0x1b8c50[_0x35f619(0x210)][_0x35f619(0x20b)](),_0x5440e2[_0x35f619(0x268)],_0x2342a4):_0x1aef30&&(_0x2342a4[_0x35f619(0x255)](_0x16044c),_0x2342a4[_0x35f619(0x255)](_0x51c81e));});}}function x(_0x551387,_0x50ef70,_0x3de386,_0xb4a23d){const _0xc62a18=_0x264f07,_0x301eb9=_0xc62a18(0x237)+_0x551387,_0x55428a=_0xc62a18(0x1fd)+_0x551387,_0xad8fba=_0x50ef70[_0xc62a18(0x215)]();let _0x5c2d17=_0x50ef70[_0xc62a18(0x236)];if(_0xad8fba&&_0xad8fba['is'](_0xc62a18(0x24b),_0xc62a18(0x25f))){const _0x314a36=function(_0xe0eaf7,_0x4c49d3){const _0x1937e5=_0xc62a18;for(const _0x5b9af2 of _0xe0eaf7[_0x1937e5(0x230)]())if(_0x4c49d3[_0x1937e5(0x260)][_0x1937e5(0x1fb)](_0x5b9af2,_0x1937e5(0x251)))return _0x5b9af2;}(_0x50ef70,_0x3de386);_0x314a36&&(_0x5c2d17=_0x314a36,_0x50ef70=_0xb4a23d[_0xc62a18(0x1f6)](_0x5c2d17));}const _0x2a9c3c=_0xb4a23d[_0xc62a18(0x1f6)](_0x5c2d17);_0x3de386[_0xc62a18(0x212)][_0xc62a18(0x272)](_0x301eb9)?(_0xb4a23d[_0xc62a18(0x223)](_0x301eb9,{'range':_0x50ef70}),_0xb4a23d[_0xc62a18(0x223)](_0x55428a,{'range':_0x2a9c3c})):(_0xb4a23d[_0xc62a18(0x261)](_0x301eb9,{'range':_0x50ef70,'usingOperation':!0x0}),_0xb4a23d[_0xc62a18(0x261)](_0x55428a,{'range':_0x2a9c3c,'usingOperation':!0x0}));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4960(_0x5c0e93,_0x41708c){const _0x1e95a0=_0x1e95();return _0x4960=function(_0x4960e9,_0x3d1f28){_0x4960e9=_0x4960e9-0x111;let _0x26cb3e=_0x1e95a0[_0x4960e9];return _0x26cb3e;},_0x4960(_0x5c0e93,_0x41708c);}const _0x54e248=_0x4960;function _0x1e95(){const _0x4871e1=['connection','plugins','error','constructor','connected','has','21PwZkhr','delete','define','from','code','56470HamxVP','websocketgateway-missing-websocket-url','pluginName','disconnect','config','CONNECTING','connect','context','showWarning','stopListening','776853gBiIhf','_domEmitter','CONNECTED','websocketgateway-missing-token','addToReconnectionStack','all','5342yIBPIj','isOfficialPlugin','set','get','isInReconnectionStack','initialReconnectionInterval','add','477jMcWPu','change:me','token','requires','Connected\x20users\x20limit\x20exceeded','_isBrowserOffline','webSocketUrl','websocketgateway-plugin-already-registered','online','listenTo','cloudServices.connectionTimeout','cloudServices.requestTimeout','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.','382508SRvhaf','catch','state','then','limitExceeded','bind','_reconnectionStack','_reconnect','removeFromReconnectionStack','DISCONNECTED','cloudservices-init','108162RXlSfD','reconnect','2017935chkusW','cloudservices-reconnection-error','2262088QHGmPG','_shouldPluginsReconnect','WebSocketGateway','offline','real-time-collaboration','init','isPremiumPlugin','CloudServices','function','2ljfukt','websocketgateway-invalid-plugin-interface','destroy'];_0x1e95=function(){return _0x4871e1;};return _0x1e95();}(function(_0xdd5245,_0x366a0f){const _0x179ff5=_0x4960,_0x4f40a4=_0xdd5245();while(!![]){try{const _0x1c0d0a=parseInt(_0x179ff5(0x157))/0x1*(parseInt(_0x179ff5(0x12b))/0x2)+parseInt(_0x179ff5(0x125))/0x3+-parseInt(_0x179ff5(0x13f))/0x4+-parseInt(_0x179ff5(0x14c))/0x5+parseInt(_0x179ff5(0x14a))/0x6*(-parseInt(_0x179ff5(0x116))/0x7)+parseInt(_0x179ff5(0x14e))/0x8+parseInt(_0x179ff5(0x132))/0x9*(parseInt(_0x179ff5(0x11b))/0xa);if(_0x1c0d0a===_0x366a0f)break;else _0x4f40a4['push'](_0x4f40a4['shift']());}catch(_0x2e7b05){_0x4f40a4['push'](_0x4f40a4['shift']());}}}(_0x1e95,0x478ba));import{ContextPlugin as _0x3853e6}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x108885,CKEditorError as _0x5db633}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x16d074,WEB_SOCKET_GATEWAY_STATES as _0x1e350f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x136db0}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x3853e6{static [_0x54e248(0x150)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x16d074)());static [_0x54e248(0x130)]=0x3e8;[_0x54e248(0x15a)];[_0x54e248(0x145)];[_0x54e248(0x14f)];[_0x54e248(0x126)];static get[_0x54e248(0x135)](){const _0x582fa7=_0x54e248;return[_0x582fa7(0x155),_0x136db0];}static get[_0x54e248(0x11d)](){const _0x5d7538=_0x54e248;return _0x5d7538(0x150);}static get[_0x54e248(0x12c)](){return!0x0;}static get[_0x54e248(0x154)](){return!0x0;}constructor(_0x6f5491){const _0x216e39=_0x54e248;super(_0x6f5491),this[_0x216e39(0x12d)](_0x216e39(0x141),_0x1e350f[_0x216e39(0x127)]),this[_0x216e39(0x12d)](_0x216e39(0x137),!0x1),this[_0x216e39(0x145)]=new Set(),this[_0x216e39(0x14f)]=!0x1,this[_0x216e39(0x126)]=new(_0x108885())();}[_0x54e248(0x153)](){const _0xe47ecc=_0x54e248,_0xf95911=this[_0xe47ecc(0x122)],_0x382c0d=_0xf95911[_0xe47ecc(0x111)][_0xe47ecc(0x12e)](_0xe47ecc(0x155)),_0xa5bf93=_0xf95911[_0xe47ecc(0x111)][_0xe47ecc(0x12e)](_0x136db0);if(!_0x382c0d[_0xe47ecc(0x134)])throw new _0x5db633(_0xe47ecc(0x128),this);if(!_0x382c0d[_0xe47ecc(0x138)])throw new _0x5db633(_0xe47ecc(0x11c),this);return this[_0xe47ecc(0x126)][_0xe47ecc(0x13b)](window,_0xe47ecc(0x151),()=>this[_0xe47ecc(0x137)]=!0x0),this[_0xe47ecc(0x126)][_0xe47ecc(0x13b)](window,_0xe47ecc(0x13a),()=>this[_0xe47ecc(0x137)]=!0x1),this[_0xe47ecc(0x122)][_0xe47ecc(0x11f)][_0xe47ecc(0x118)](_0xe47ecc(0x13c),0xa),this[_0xe47ecc(0x122)][_0xe47ecc(0x11f)][_0xe47ecc(0x118)](_0xe47ecc(0x13d),0x14),WebSocketGateway[_0xe47ecc(0x150)][_0xe47ecc(0x121)](_0x382c0d[_0xe47ecc(0x134)],_0x382c0d[_0xe47ecc(0x138)],{'timeout':0x3e8*this[_0xe47ecc(0x122)][_0xe47ecc(0x11f)][_0xe47ecc(0x12e)](_0xe47ecc(0x13c)),'requestTimeout':0x3e8*this[_0xe47ecc(0x122)][_0xe47ecc(0x11f)][_0xe47ecc(0x12e)](_0xe47ecc(0x13d))})[_0xe47ecc(0x142)](_0x140d2a=>{const _0x3bd9d4=_0xe47ecc;if(this[_0x3bd9d4(0x15a)]=_0x140d2a,this[_0x3bd9d4(0x144)](_0x3bd9d4(0x141))['to'](_0x140d2a,_0x3bd9d4(0x141),this,_0x3bd9d4(0x137),(_0x4aef2c,_0x29e8d3)=>(_0x3bd9d4(0x114)!==_0x4aef2c&&(this[_0x3bd9d4(0x14f)]=!0x0),_0x29e8d3||_0x4aef2c!==_0x1e350f[_0x3bd9d4(0x127)]?_0x1e350f[_0x3bd9d4(0x148)]:this[_0x3bd9d4(0x141)]==_0x1e350f[_0x3bd9d4(0x148)]&&this[_0x3bd9d4(0x14f)]?(this[_0x3bd9d4(0x14f)]=!0x1,this[_0x3bd9d4(0x146)](),_0x1e350f[_0x3bd9d4(0x120)]):_0x1e350f[_0x3bd9d4(0x127)])),this[_0x3bd9d4(0x15a)]['on'](_0x3bd9d4(0x112),(_0x552cae,_0x2a16e7)=>{const _0x35cc6e=_0x3bd9d4;if(_0x35cc6e(0x143)!==_0x2a16e7[_0x35cc6e(0x11a)])throw console[_0x35cc6e(0x112)](_0x2a16e7),new _0x5db633(_0x35cc6e(0x149),null,{'originalError':_0x2a16e7});_0xa5bf93[_0x35cc6e(0x123)](_0x35cc6e(0x13e),{'title':_0x35cc6e(0x136),'namespace':_0x35cc6e(0x152)});}),!_0x140d2a['me'])return new Promise(_0x53c7ff=>_0x140d2a['on'](_0x3bd9d4(0x133),_0x53c7ff));})[_0xe47ecc(0x140)](_0xd7370c=>{const _0x5dad3b=_0xe47ecc;throw console[_0x5dad3b(0x112)](_0xd7370c),new _0x5db633(_0x5dad3b(0x149),null,{'originalError':_0xd7370c});});}[_0x54e248(0x129)](_0x531285){const _0x378bdb=_0x54e248;if(_0x378bdb(0x156)!=typeof _0x531285[_0x378bdb(0x14b)])throw new _0x5db633(_0x378bdb(0x158),this);if(this[_0x378bdb(0x12f)](_0x531285))throw new _0x5db633(_0x378bdb(0x139),this,{'name':_0x531285[_0x378bdb(0x113)][_0x378bdb(0x11d)]});this[_0x378bdb(0x145)][_0x378bdb(0x131)](_0x531285);}[_0x54e248(0x147)](_0x32794a){const _0x158c0e=_0x54e248;this[_0x158c0e(0x145)][_0x158c0e(0x117)](_0x32794a);}[_0x54e248(0x12f)](_0x14b9ad){const _0x3be4b6=_0x54e248;return this[_0x3be4b6(0x145)][_0x3be4b6(0x115)](_0x14b9ad);}[_0x54e248(0x146)](){const _0x5a2c80=_0x54e248;return this[_0x5a2c80(0x15a)][_0x5a2c80(0x14b)]()[_0x5a2c80(0x142)](()=>Promise[_0x5a2c80(0x12a)](Array[_0x5a2c80(0x119)](this[_0x5a2c80(0x145)],_0x5e4c24=>_0x5e4c24[_0x5a2c80(0x14b)]())))[_0x5a2c80(0x142)](()=>this[_0x5a2c80(0x141)]=_0x1e350f[_0x5a2c80(0x127)])[_0x5a2c80(0x140)](_0x2fb636=>{const _0x47c892=_0x5a2c80;throw console[_0x47c892(0x112)](_0x2fb636),new _0x5db633(_0x47c892(0x14d),this[_0x47c892(0x122)]);});}[_0x54e248(0x11e)](){const _0x3f305a=_0x54e248;this[_0x3f305a(0x15a)]&&this[_0x3f305a(0x15a)][_0x3f305a(0x11e)](),this[_0x3f305a(0x141)]=_0x1e350f[_0x3f305a(0x148)],this[_0x3f305a(0x126)][_0x3f305a(0x124)]();}[_0x54e248(0x159)](){const _0x3b1108=_0x54e248;this[_0x3b1108(0x11e)](),super[_0x3b1108(0x159)]();}}
23
+ const _0x4656d1=_0xcbaa;(function(_0x1f22f0,_0x372724){const _0x2c8a68=_0xcbaa,_0x12d395=_0x1f22f0();while(!![]){try{const _0xa3fa4c=-parseInt(_0x2c8a68(0x180))/0x1+parseInt(_0x2c8a68(0x15c))/0x2+parseInt(_0x2c8a68(0x16f))/0x3+-parseInt(_0x2c8a68(0x151))/0x4+parseInt(_0x2c8a68(0x16d))/0x5+parseInt(_0x2c8a68(0x147))/0x6+-parseInt(_0x2c8a68(0x14d))/0x7;if(_0xa3fa4c===_0x372724)break;else _0x12d395['push'](_0x12d395['shift']());}catch(_0x679da1){_0x12d395['push'](_0x12d395['shift']());}}}(_0x377f,0xa7703));import{ContextPlugin as _0x12b630}from'ckeditor5/src/core.js';function _0xcbaa(_0x103caa,_0x14f7eb){const _0x377f32=_0x377f();return _0xcbaa=function(_0xcbaabd,_0x3f031e){_0xcbaabd=_0xcbaabd-0x143;let _0x1f86c2=_0x377f32[_0xcbaabd];return _0x1f86c2;},_0xcbaa(_0x103caa,_0x14f7eb);}import{DomEmitterMixin as _0x4fbace,CKEditorError as _0x740a2f}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x4e50cb,WEB_SOCKET_GATEWAY_STATES as _0x423607}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x118309}from'ckeditor5/src/ui.js';function _0x377f(){const _0x4db482=['destroy','3653748IVozxJ','add','real-time-collaboration','Connected\x20users\x20limit\x20exceeded','DISCONNECTED','listenTo','change:me','_domEmitter','init','initialReconnectionInterval','pluginName','function','_shouldPluginsReconnect','cloudServices.requestTimeout','online','isPremiumPlugin','then','1317565VZbfSX','webSocketUrl','connect','from','set','WebSocketGateway','connected','constructor','showWarning','code','isOfficialPlugin','reconnect','catch','state','3451020vVzcIl','requires','_isBrowserOffline','CloudServices','websocketgateway-invalid-plugin-interface','delete','647409xZLwao','token','connection','cloudServices.connectionTimeout','4514248ItcBww','_reconnect','addToReconnectionStack','bind','limitExceeded','plugins','stopListening','cloudservices-init','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.','define','disconnect','2692584BcQVdL','_reconnectionStack','get','CONNECTED','websocketgateway-missing-token','CONNECTING','offline','config','isInReconnectionStack','has','cloudservices-reconnection-error','websocketgateway-plugin-already-registered','context','all','websocketgateway-missing-websocket-url','removeFromReconnectionStack','error','425315naWOQO'];_0x377f=function(){return _0x4db482;};return _0x377f();}export class WebSocketGateway extends _0x12b630{static [_0x4656d1(0x185)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4e50cb)());static [_0x4656d1(0x178)]=0x3e8;[_0x4656d1(0x14f)];[_0x4656d1(0x15d)];[_0x4656d1(0x17b)];[_0x4656d1(0x176)];static get[_0x4656d1(0x148)](){const _0x2accdf=_0x4656d1;return[_0x2accdf(0x14a),_0x118309];}static get[_0x4656d1(0x179)](){const _0x2e1c99=_0x4656d1;return _0x2e1c99(0x185);}static get[_0x4656d1(0x143)](){return!0x0;}static get[_0x4656d1(0x17e)](){return!0x0;}constructor(_0x2a0fd0){const _0x3ef3d3=_0x4656d1;super(_0x2a0fd0),this[_0x3ef3d3(0x184)](_0x3ef3d3(0x146),_0x423607[_0x3ef3d3(0x15f)]),this[_0x3ef3d3(0x184)](_0x3ef3d3(0x149),!0x1),this[_0x3ef3d3(0x15d)]=new Set(),this[_0x3ef3d3(0x17b)]=!0x1,this[_0x3ef3d3(0x176)]=new(_0x4fbace())();}[_0x4656d1(0x177)](){const _0x9a4ff4=_0x4656d1,_0x276ed2=this[_0x9a4ff4(0x168)],_0x5b1e7d=_0x276ed2[_0x9a4ff4(0x156)][_0x9a4ff4(0x15e)](_0x9a4ff4(0x14a)),_0x275dba=_0x276ed2[_0x9a4ff4(0x156)][_0x9a4ff4(0x15e)](_0x118309);if(!_0x5b1e7d[_0x9a4ff4(0x14e)])throw new _0x740a2f(_0x9a4ff4(0x160),this);if(!_0x5b1e7d[_0x9a4ff4(0x181)])throw new _0x740a2f(_0x9a4ff4(0x16a),this);return this[_0x9a4ff4(0x176)][_0x9a4ff4(0x174)](window,_0x9a4ff4(0x162),()=>this[_0x9a4ff4(0x149)]=!0x0),this[_0x9a4ff4(0x176)][_0x9a4ff4(0x174)](window,_0x9a4ff4(0x17d),()=>this[_0x9a4ff4(0x149)]=!0x1),this[_0x9a4ff4(0x168)][_0x9a4ff4(0x163)][_0x9a4ff4(0x15a)](_0x9a4ff4(0x150),0xa),this[_0x9a4ff4(0x168)][_0x9a4ff4(0x163)][_0x9a4ff4(0x15a)](_0x9a4ff4(0x17c),0x14),WebSocketGateway[_0x9a4ff4(0x185)][_0x9a4ff4(0x182)](_0x5b1e7d[_0x9a4ff4(0x14e)],_0x5b1e7d[_0x9a4ff4(0x181)],{'timeout':0x3e8*this[_0x9a4ff4(0x168)][_0x9a4ff4(0x163)][_0x9a4ff4(0x15e)](_0x9a4ff4(0x150)),'requestTimeout':0x3e8*this[_0x9a4ff4(0x168)][_0x9a4ff4(0x163)][_0x9a4ff4(0x15e)](_0x9a4ff4(0x17c))})[_0x9a4ff4(0x17f)](_0x40958d=>{const _0x3ea3f2=_0x9a4ff4;if(this[_0x3ea3f2(0x14f)]=_0x40958d,this[_0x3ea3f2(0x154)](_0x3ea3f2(0x146))['to'](_0x40958d,_0x3ea3f2(0x146),this,_0x3ea3f2(0x149),(_0x35c8d9,_0x5847a1)=>(_0x3ea3f2(0x186)!==_0x35c8d9&&(this[_0x3ea3f2(0x17b)]=!0x0),_0x5847a1||_0x35c8d9!==_0x423607[_0x3ea3f2(0x15f)]?_0x423607[_0x3ea3f2(0x173)]:this[_0x3ea3f2(0x146)]==_0x423607[_0x3ea3f2(0x173)]&&this[_0x3ea3f2(0x17b)]?(this[_0x3ea3f2(0x17b)]=!0x1,this[_0x3ea3f2(0x152)](),_0x423607[_0x3ea3f2(0x161)]):_0x423607[_0x3ea3f2(0x15f)])),this[_0x3ea3f2(0x14f)]['on'](_0x3ea3f2(0x16c),(_0x1511be,_0x2c0424)=>{const _0x541603=_0x3ea3f2;if(_0x541603(0x155)!==_0x2c0424[_0x541603(0x189)])throw console[_0x541603(0x16c)](_0x2c0424),new _0x740a2f(_0x541603(0x158),null,{'originalError':_0x2c0424});_0x275dba[_0x541603(0x188)](_0x541603(0x159),{'title':_0x541603(0x172),'namespace':_0x541603(0x171)});}),!_0x40958d['me'])return new Promise(_0x1ed279=>_0x40958d['on'](_0x3ea3f2(0x175),_0x1ed279));})[_0x9a4ff4(0x145)](_0x5e7a89=>{const _0x192b96=_0x9a4ff4;throw console[_0x192b96(0x16c)](_0x5e7a89),new _0x740a2f(_0x192b96(0x158),null,{'originalError':_0x5e7a89});});}[_0x4656d1(0x153)](_0x23493e){const _0x1fba91=_0x4656d1;if(_0x1fba91(0x17a)!=typeof _0x23493e[_0x1fba91(0x144)])throw new _0x740a2f(_0x1fba91(0x14b),this);if(this[_0x1fba91(0x164)](_0x23493e))throw new _0x740a2f(_0x1fba91(0x167),this,{'name':_0x23493e[_0x1fba91(0x187)][_0x1fba91(0x179)]});this[_0x1fba91(0x15d)][_0x1fba91(0x170)](_0x23493e);}[_0x4656d1(0x16b)](_0x1f393a){const _0x9eff6e=_0x4656d1;this[_0x9eff6e(0x15d)][_0x9eff6e(0x14c)](_0x1f393a);}[_0x4656d1(0x164)](_0x28554a){const _0x269e5d=_0x4656d1;return this[_0x269e5d(0x15d)][_0x269e5d(0x165)](_0x28554a);}[_0x4656d1(0x152)](){const _0x35373a=_0x4656d1;return this[_0x35373a(0x14f)][_0x35373a(0x144)]()[_0x35373a(0x17f)](()=>Promise[_0x35373a(0x169)](Array[_0x35373a(0x183)](this[_0x35373a(0x15d)],_0x57848e=>_0x57848e[_0x35373a(0x144)]())))[_0x35373a(0x17f)](()=>this[_0x35373a(0x146)]=_0x423607[_0x35373a(0x15f)])[_0x35373a(0x145)](_0x36fee3=>{const _0xa05030=_0x35373a;throw console[_0xa05030(0x16c)](_0x36fee3),new _0x740a2f(_0xa05030(0x166),this[_0xa05030(0x168)]);});}[_0x4656d1(0x15b)](){const _0xc55fa6=_0x4656d1;this[_0xc55fa6(0x14f)]&&this[_0xc55fa6(0x14f)][_0xc55fa6(0x15b)](),this[_0xc55fa6(0x146)]=_0x423607[_0xc55fa6(0x173)],this[_0xc55fa6(0x176)][_0xc55fa6(0x157)]();}[_0x4656d1(0x16e)](){const _0x3925ec=_0x4656d1;this[_0x3925ec(0x15b)](),super[_0x3925ec(0x16e)]();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3707a9=_0x1055;(function(_0x42c95f,_0x499a6e){const _0x344203=_0x1055,_0x3b23e2=_0x42c95f();while(!![]){try{const _0x7cb84e=-parseInt(_0x344203(0x21c))/0x1*(parseInt(_0x344203(0x1da))/0x2)+parseInt(_0x344203(0x1e4))/0x3+-parseInt(_0x344203(0x218))/0x4+-parseInt(_0x344203(0x1e3))/0x5*(parseInt(_0x344203(0x24d))/0x6)+-parseInt(_0x344203(0x231))/0x7+-parseInt(_0x344203(0x245))/0x8*(parseInt(_0x344203(0x1ff))/0x9)+parseInt(_0x344203(0x222))/0xa;if(_0x7cb84e===_0x499a6e)break;else _0x3b23e2['push'](_0x3b23e2['shift']());}catch(_0x30b971){_0x3b23e2['push'](_0x3b23e2['shift']());}}}(_0x3f08,0xe6bbd));import{Plugin as _0x5968cd}from'ckeditor5/src/core.js';import{version as _0x3cf82a}from'ckeditor5/src/utils.js';import{Users as _0x5c3dd1}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x4c538c}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x5605e7}from'../realtimecollaborativeediting/websocketgateway.js';function _0x3f08(){const _0x4ad8cd=['_isConnected','getMany','baseVersion','3139885zgTrtK','authors','repository','change:_isPendingUpdate','creatorId','_isPendingUpdate','_revisionHistoryService','state','_handleRevisionsUpdate','400','_fetchMissingUsers','max','pluginName','size','listenTo','_fixRevision','connection','startsWith','CloudServicesRevisionHistoryAdapter','collaboration.channelId','2056yBeQYZ','_preventResendingRevisionData','marker','getOperations','type','serverHistory','addToReconnectionStack','isOfficialPlugin','36mJmWDk','66870TQHODm','code','setRevisionData','init','_lastRequestId','diffData','_revisionDataBuilder','_createCurrentRevision','setSource','371460QjfFyc','5004366FtEDav','connect','getUser','addUser','adapter','catch','RevisionHistoryService','cloudServices.bundleVersion','isPremiumPlugin','_bufferUpdate','bind','buildRevisionData','get','editor','authorsIds','config','destroy','isConnected','revisionsUpdated','_bufferedUpdates','currentRevision','_oldOffset','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','then','off','getRevisions','remove','6471MlBTIp','requires','_revisions','toVersion','cloud-services-internal-error:\x20Not\x20connected.','sendBufferedUpdates','_waitForServiceReady','once','data','isEmptyCurrent','reverse','getRevision','isBundleUploaded','addRevisionData','CONNECTED','sessionId','_offset','from','add','_revisionTracker','_update','reInit','fromVersion','message','RevisionHistory','7230800hdejGw','has','length','connected','30aNiLDJ','plugins','keys','updateRevisions','affectsData','_handleReconnectionError','31668030sSikbc','isEnabled','createdAt','_startingVersion','change:_isConnected','cloud-services-internal-error:\x20Request\x20timeout.','reconnect','RevisionTracker','wrongRequestId','_getLatestVersionFromServerOperations','map','_getLatestVersion'];_0x3f08=function(){return _0x4ad8cd;};return _0x3f08();}function _0x1055(_0x21b903,_0x5560e9){const _0x3f0837=_0x3f08();return _0x1055=function(_0x105536,_0x49bd45){_0x105536=_0x105536-0x1da;let _0xb72658=_0x3f0837[_0x105536];return _0xb72658;},_0x1055(_0x21b903,_0x5560e9);}import{Sessions as _0x27665a}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x538cc4,RevisionHistoryService as _0x7e46d4,User as _0x579d3a,WEB_SOCKET_GATEWAY_STATES as _0x27c565}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x5968cd{static [_0x3707a9(0x1ea)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x7e46d4)());[_0x3707a9(0x1de)];[_0x3707a9(0x212)];[_0x3707a9(0x237)];[_0x3707a9(0x1f9)];static get[_0x3707a9(0x200)](){const _0x16dcbf=_0x3707a9;return[_0x5605e7,_0x4c538c,_0x16dcbf(0x217),_0x27665a,_0x5c3dd1];}static get[_0x3707a9(0x23d)](){const _0x4a9fb0=_0x3707a9;return _0x4a9fb0(0x243);}static get[_0x3707a9(0x24c)](){return!0x0;}static get[_0x3707a9(0x1ec)](){return!0x0;}constructor(_0x5bda7a){const _0x154b7b=_0x3707a9;super(_0x5bda7a);const _0x16f9ea=this[_0x154b7b(0x1f1)][_0x154b7b(0x1f3)][_0x154b7b(0x1f0)](_0x154b7b(0x244));this[_0x154b7b(0x1de)]=null,this[_0x154b7b(0x212)]=this[_0x154b7b(0x1f1)][_0x154b7b(0x21d)][_0x154b7b(0x1f0)](_0x154b7b(0x229)),this[_0x154b7b(0x237)]=new CloudServicesRevisionHistoryAdapter[(_0x154b7b(0x1ea))](_0x16f9ea);}async[_0x3707a9(0x1dd)](){const _0x2a4c55=_0x3707a9,_0x5dd87c=this[_0x2a4c55(0x1f1)][_0x2a4c55(0x21d)][_0x2a4c55(0x1f0)](_0x4c538c),_0x1b57d2=_0x5dd87c[_0x2a4c55(0x24a)],_0x4418fd=this[_0x2a4c55(0x1f1)][_0x2a4c55(0x21d)][_0x2a4c55(0x1f0)](_0x5605e7);this[_0x2a4c55(0x212)][_0x2a4c55(0x1e2)]({'history':_0x1b57d2,'getLatestVersion':()=>this[_0x2a4c55(0x22d)](),'getCurrentRevisionId':()=>_0x5dd87c[_0x2a4c55(0x20e)]});const _0x28bff8=this[_0x2a4c55(0x1f1)][_0x2a4c55(0x1f3)][_0x2a4c55(0x1f0)](_0x2a4c55(0x1eb))||_0x3cf82a,_0x50baed=await _0x538cc4[_0x2a4c55(0x20b)](_0x4418fd[_0x2a4c55(0x241)],_0x28bff8);this[_0x2a4c55(0x1f1)][_0x2a4c55(0x21d)][_0x2a4c55(0x1f0)](_0x2a4c55(0x217))[_0x2a4c55(0x1e8)]={'getRevision':async({revisionId:_0x4153ba})=>(await this[_0x2a4c55(0x205)](),await this[_0x2a4c55(0x237)][_0x2a4c55(0x20a)](_0x4153ba)),'updateRevisions':async _0x31ad3e=>{const _0x37bca1=_0x2a4c55;await this[_0x37bca1(0x205)]();const _0x4ba529=this[_0x37bca1(0x212)][_0x37bca1(0x1f8)];if(_0x50baed&&0x1===_0x31ad3e[_0x37bca1(0x21a)]&&_0x31ad3e[0x0]['id']===_0x4ba529['id'])return _0x31ad3e;for(const _0xbe0820 of _0x31ad3e)_0xbe0820['id']===_0x4ba529['id']&&(_0xbe0820[_0x37bca1(0x208)]=_0xbe0820[_0x37bca1(0x215)]===_0xbe0820[_0x37bca1(0x202)]);return this[_0x37bca1(0x237)][_0x37bca1(0x21f)](_0x31ad3e,this[_0x37bca1(0x1de)])[_0x37bca1(0x1fb)](_0x1c4b7d=>(this[_0x37bca1(0x1de)]=_0x1c4b7d,_0x31ad3e))[_0x37bca1(0x1e9)](_0x5d3a13=>{const _0x104795=_0x37bca1;if(q(_0x5d3a13)||_0x104795(0x23a)===_0x5d3a13[_0x104795(0x1db)]&&void 0x0!==_0x5d3a13[_0x104795(0x207)][_0x104795(0x22a)]){for(const _0x5d5f1c of _0x31ad3e){!this[_0x104795(0x212)][_0x104795(0x233)][_0x104795(0x20a)](_0x5d5f1c['id'])||this[_0x104795(0x212)][_0x104795(0x1ed)](_0x5d5f1c['id'],_0x5d5f1c,!0x1);}if(q(_0x5d3a13))throw _0x5d3a13;return _0x31ad3e;}throw _0x5d3a13;});}},this[_0x2a4c55(0x23f)](this[_0x2a4c55(0x237)],_0x2a4c55(0x1f6),(_0x145e64,{revisionsData:_0x32c599,requestId:_0x267181})=>{const _0x3f3ad4=_0x2a4c55;Math[_0x3f3ad4(0x23c)](..._0x32c599[_0x3f3ad4(0x22c)](_0x2e1891=>_0x2e1891[_0x3f3ad4(0x202)]))>this[_0x3f3ad4(0x22b)]()-0x1?this[_0x3f3ad4(0x22d)]()[_0x3f3ad4(0x1fb)](()=>{const _0x345f3c=_0x3f3ad4;this[_0x345f3c(0x239)](_0x32c599,_0x267181);}):this[_0x3f3ad4(0x239)](_0x32c599,_0x267181);});const {revisions:_0x4e38af,requestId:_0x3068ab}=await this[_0x2a4c55(0x237)][_0x2a4c55(0x1e5)](_0x4418fd[_0x2a4c55(0x241)]);_0x4418fd[_0x2a4c55(0x24b)](this),this[_0x2a4c55(0x1de)]=_0x3068ab,await this[_0x2a4c55(0x23b)](_0x4e38af);for(const _0x336aa8 of _0x4e38af)this[_0x2a4c55(0x212)][_0x2a4c55(0x20c)](_0x336aa8);this[_0x2a4c55(0x23f)](_0x5dd87c,_0x2a4c55(0x226),(_0x28c4a6,_0x33f3b6,_0xe53380)=>{const _0x2b7b0a=_0x2a4c55;_0xe53380&&(this[_0x2b7b0a(0x1f9)]=_0x5dd87c[_0x2b7b0a(0x20f)],_0x28c4a6[_0x2b7b0a(0x1fc)]());}),this[_0x2a4c55(0x212)][_0x2a4c55(0x1ee)](_0x2a4c55(0x223))['to'](_0x4418fd,_0x2a4c55(0x238),_0xf622bf=>_0xf622bf===_0x27c565[_0x2a4c55(0x20d)]);}async[_0x3707a9(0x228)](){const _0x2c2bf5=_0x3707a9,_0x4518a3=this[_0x2c2bf5(0x1f1)][_0x2c2bf5(0x21d)][_0x2c2bf5(0x1f0)](_0x5605e7),_0x471752=this[_0x2c2bf5(0x1f1)][_0x2c2bf5(0x21d)][_0x2c2bf5(0x1f0)](_0x4c538c),_0xc03ca2=async()=>{const _0x3ed117=_0x2c2bf5,_0x2c1efc=this[_0x3ed117(0x212)][_0x3ed117(0x1f8)],_0x2cbe16=_0x2c1efc['id'],_0x341c80=_0x2cbe16!==_0x471752[_0x3ed117(0x20e)];if(_0x341c80){const _0x3016a3=_0x471752[_0x3ed117(0x20f)]-this[_0x3ed117(0x1f9)],_0x5d4d14=this[_0x3ed117(0x22b)]();this[_0x3ed117(0x212)][_0x3ed117(0x1e0)][_0x3ed117(0x214)]();if(_0x2c1efc[_0x3ed117(0x202)]+_0x3016a3!==_0x5d4d14){const _0x457d28=_0x2c1efc[_0x3ed117(0x215)]+_0x3016a3,_0x95a133=this[_0x3ed117(0x1f1)][_0x3ed117(0x21d)][_0x3ed117(0x1f0)](_0x5c3dd1),_0x66bc0=this[_0x3ed117(0x212)][_0x3ed117(0x1ef)]({'revision':_0x2c1efc,'from':_0x457d28,'to':_0x5d4d14});_0x66bc0['id']=_0x2c1efc['id'];const _0x5b7846=_0x66bc0[_0x3ed117(0x1f2)][_0x3ed117(0x22c)](_0x58cc21=>_0x95a133[_0x3ed117(0x1e6)](_0x58cc21));_0x2c1efc[_0x3ed117(0x213)]({..._0x66bc0,'authors':_0x5b7846},!0x0),this[_0x3ed117(0x212)][_0x3ed117(0x1ed)](_0x2c1efc['id'],_0x66bc0,!0x0);}this[_0x3ed117(0x212)][_0x3ed117(0x225)]=_0x5d4d14,(_0x2c1efc[_0x3ed117(0x202)]===_0x2c1efc[_0x3ed117(0x215)]&&!this[_0x3ed117(0x212)][_0x3ed117(0x1f7)][_0x3ed117(0x219)](_0x2cbe16)&&this[_0x3ed117(0x212)][_0x3ed117(0x233)][_0x3ed117(0x201)][_0x3ed117(0x1fe)](_0x2cbe16),this[_0x3ed117(0x212)][_0x3ed117(0x1e1)](_0x5d4d14));}const {revisions:_0xca7302,requestId:_0x24565d}=await this[_0x3ed117(0x237)][_0x3ed117(0x228)](_0x4518a3[_0x3ed117(0x241)],this[_0x3ed117(0x1de)]);_0x341c80&&_0xca7302[_0x3ed117(0x21a)]>0x0?_0x471752[_0x3ed117(0x221)]():(await this[_0x3ed117(0x23b)](_0xca7302),this[_0x3ed117(0x239)](_0xca7302,_0x24565d),this[_0x3ed117(0x212)][_0x3ed117(0x204)]());};return _0x471752[_0x2c2bf5(0x22e)]?_0xc03ca2():new Promise((_0x253d10,_0x2c4564)=>{const _0x381ec8=_0x2c2bf5;_0x471752[_0x381ec8(0x206)](_0x381ec8(0x226),()=>{const _0x151a29=_0x381ec8;_0xc03ca2()[_0x151a29(0x1fb)](_0x253d10)[_0x151a29(0x1e9)](_0x2c4564);});});}[_0x3707a9(0x1f4)](){const _0x5b8d9d=_0x3707a9;super[_0x5b8d9d(0x1f4)]();}async[_0x3707a9(0x205)](){const _0x560ef7=_0x3707a9;this[_0x560ef7(0x237)][_0x560ef7(0x1f5)]||await new Promise(_0x3c2a6f=>{const _0x327097=_0x560ef7;this[_0x327097(0x23f)](this[_0x327097(0x237)],_0x327097(0x21b),_0x16724f=>{const _0x19f0bd=_0x327097;_0x16724f[_0x19f0bd(0x1fc)](),_0x3c2a6f();});});}[_0x3707a9(0x22b)](){const _0x47bf11=_0x3707a9,_0x20cb1c=this[_0x47bf11(0x1f1)][_0x47bf11(0x21d)][_0x47bf11(0x1f0)](_0x4c538c)[_0x47bf11(0x24a)][_0x47bf11(0x248)]()[_0x47bf11(0x209)]();for(const _0x2343d4 of _0x20cb1c)if(_0x47bf11(0x247)!==_0x2343d4[_0x47bf11(0x249)]||_0x2343d4[_0x47bf11(0x220)])return _0x2343d4[_0x47bf11(0x230)]+0x1;}[_0x3707a9(0x22d)](){const _0x5b0742=_0x3707a9,_0x4c5cf1=this[_0x5b0742(0x1f1)][_0x5b0742(0x21d)][_0x5b0742(0x1f0)](_0x4c538c);return new Promise(_0x522a5e=>{const _0x1d99bf=_0x5b0742;_0x4c5cf1[_0x1d99bf(0x236)]?_0x4c5cf1[_0x1d99bf(0x206)](_0x1d99bf(0x234),()=>{const _0xc6db07=_0x1d99bf;_0x522a5e(this[_0xc6db07(0x22b)]());}):_0x522a5e(this[_0x1d99bf(0x22b)]());});}[_0x3707a9(0x239)](_0x671f83,_0x3f945b){const _0x5ec7b0=_0x3707a9,_0xef3126=this[_0x5ec7b0(0x212)][_0x5ec7b0(0x233)];this[_0x5ec7b0(0x1de)]=_0x3f945b;for(const _0x5c4928 of _0x671f83){const _0x1ba8a2=_0xef3126[_0x5ec7b0(0x20a)](_0x5c4928['id']);if(_0x1ba8a2){if((_0x5c4928[_0x5ec7b0(0x215)]||_0x5c4928[_0x5ec7b0(0x202)])&&(_0x5c4928[_0x5ec7b0(0x1df)]=null),_0x1ba8a2===this[_0x5ec7b0(0x212)][_0x5ec7b0(0x1f8)]){const _0x1341ee=Math[_0x5ec7b0(0x23c)](_0x1ba8a2[_0x5ec7b0(0x202)],_0x5c4928[_0x5ec7b0(0x202)]),_0x259698=Math[_0x5ec7b0(0x23c)](_0x1ba8a2[_0x5ec7b0(0x215)],_0x5c4928[_0x5ec7b0(0x215)]);let _0x322988;_0x1ba8a2[_0x5ec7b0(0x202)]===_0x5c4928[_0x5ec7b0(0x202)]&&_0x1ba8a2[_0x5ec7b0(0x215)]===_0x5c4928[_0x5ec7b0(0x215)]?(_0x322988=!0x0,this[_0x5ec7b0(0x246)](_0x5c4928)):_0x5c4928[_0x5ec7b0(0x202)]===_0x1341ee&&_0x5c4928[_0x5ec7b0(0x215)]===_0x259698?_0x322988=!0x1:(_0x1ba8a2[_0x5ec7b0(0x202)]===_0x1341ee&&_0x1ba8a2[_0x5ec7b0(0x215)]===_0x259698||this[_0x5ec7b0(0x240)]({'revision':_0x1ba8a2,'from':_0x259698,'to':_0x1341ee}),_0x322988=!0x0),_0x322988&&(delete _0x5c4928[_0x5ec7b0(0x215)],delete _0x5c4928[_0x5ec7b0(0x202)],delete _0x5c4928[_0x5ec7b0(0x1df)],delete _0x5c4928[_0x5ec7b0(0x224)],delete _0x5c4928[_0x5ec7b0(0x1f2)]);}this[_0x5ec7b0(0x212)][_0x5ec7b0(0x1dc)](_0x5c4928),this[_0x5ec7b0(0x246)](_0x5c4928);}else this[_0x5ec7b0(0x212)][_0x5ec7b0(0x20c)](_0x5c4928);}const _0x260399=_0xef3126[_0x5ec7b0(0x1fd)]();_0x260399[_0x5ec7b0(0x209)]();for(let _0x384afd=0x0;_0x384afd<_0x260399[_0x5ec7b0(0x21a)]-0x1;_0x384afd++){const _0x34b9de=_0x260399[_0x384afd],_0x3605f=_0x260399[_0x384afd+0x1];if(_0x34b9de[_0x5ec7b0(0x215)]<_0x3605f[_0x5ec7b0(0x202)]){const _0x38a127=_0x3605f[_0x5ec7b0(0x202)],_0x19db51=Math[_0x5ec7b0(0x23c)](_0x38a127,_0x34b9de[_0x5ec7b0(0x202)]);this[_0x5ec7b0(0x240)]({'revision':_0x34b9de,'from':_0x38a127,'to':_0x19db51});}}}[_0x3707a9(0x240)]({revision:_0x4ff3b5,from:_0x28c917,to:_0x55076e}={}){const _0x330dd4=_0x3707a9,_0x21715e=this[_0x330dd4(0x1f1)][_0x330dd4(0x21d)][_0x330dd4(0x1f0)](_0x5c3dd1),_0x4ffecc=this[_0x330dd4(0x212)][_0x330dd4(0x1ef)]({'revision':_0x4ff3b5,'from':_0x28c917,'to':_0x55076e});_0x4ffecc[_0x330dd4(0x232)]=_0x4ffecc[_0x330dd4(0x1f2)][_0x330dd4(0x22c)](_0x12032a=>_0x21715e[_0x330dd4(0x1e6)](_0x12032a)),_0x4ff3b5[_0x330dd4(0x213)](_0x4ffecc);}[_0x3707a9(0x246)](_0x1f6254){const _0x2a801c=_0x3707a9,_0x56a2fb={};_0x56a2fb['id']=_0x1f6254['id'];for(const _0x287485 of Object[_0x2a801c(0x21e)](_0x1f6254))'id'!==_0x287485&&(_0x56a2fb[_0x287485]=void 0x0);this[_0x2a801c(0x212)][_0x2a801c(0x1ed)](_0x56a2fb['id'],_0x56a2fb,!0x0);}async[_0x3707a9(0x23b)](_0x4417c3){const _0x458b59=_0x3707a9,_0x215b71=this[_0x458b59(0x1f1)][_0x458b59(0x21d)][_0x458b59(0x1f0)](_0x5c3dd1),{connection:_0x2c479b}=this[_0x458b59(0x1f1)][_0x458b59(0x21d)][_0x458b59(0x1f0)](_0x5605e7),_0x5c91e2=new Set();for(const _0x4e85a6 of _0x4417c3){for(const _0x165cd4 of _0x4e85a6[_0x458b59(0x1f2)])_0x387c40(_0x165cd4);_0x4e85a6[_0x458b59(0x235)]&&_0x387c40(_0x4e85a6[_0x458b59(0x235)]);}if(0x0===_0x5c91e2[_0x458b59(0x23e)])return;const _0x195c18=await _0x579d3a[_0x458b59(0x22f)](_0x2c479b,Array[_0x458b59(0x210)](_0x5c91e2));for(const _0x2f62ee of _0x195c18)_0x215b71[_0x458b59(0x1e6)](_0x2f62ee['id'])||_0x215b71[_0x458b59(0x1e7)](_0x2f62ee);function _0x387c40(_0x58dd5a){const _0x5173e7=_0x458b59;_0x215b71[_0x5173e7(0x1e6)](_0x58dd5a)||_0x5c91e2[_0x5173e7(0x211)](_0x58dd5a);}}}function q(_0x1f73ee){const _0x1ae172=_0x3707a9;return _0x1f73ee[_0x1ae172(0x216)][_0x1ae172(0x242)](_0x1ae172(0x1fa))||_0x1f73ee[_0x1ae172(0x216)][_0x1ae172(0x242)](_0x1ae172(0x203))||_0x1f73ee[_0x1ae172(0x216)][_0x1ae172(0x242)](_0x1ae172(0x227));}
23
+ function _0x4e2e(_0x439288,_0x17a820){const _0x47f097=_0x47f0();return _0x4e2e=function(_0x4e2e64,_0x1afb2c){_0x4e2e64=_0x4e2e64-0x89;let _0x5814f2=_0x47f097[_0x4e2e64];return _0x5814f2;},_0x4e2e(_0x439288,_0x17a820);}const _0x5f56c8=_0x4e2e;function _0x47f0(){const _0x5c3a69=['2061qKmVdk','buildRevisionData','collaboration.channelId','addUser','catch','wrongRequestId','_preventResendingRevisionData','_revisions','_createCurrentRevision','_getLatestVersion','_handleReconnectionError','change:_isPendingUpdate','connection','sendBufferedUpdates','keys','add','_isConnected','isBundleUploaded','400','_getLatestVersionFromServerOperations','isEmptyCurrent','_update','_fetchMissingUsers','15460CmjEWA','diffData','getMany','currentRevision','317987oVukIp','RevisionHistory','_handleRevisionsUpdate','isOfficialPlugin','setSource','RevisionTracker','getRevision','9995kWpetj','RevisionHistoryService','baseVersion','cloud-services-internal-error:\x20Not\x20connected.','_revisionHistoryService','CONNECTED','_offset','isEnabled','_isPendingUpdate','data','_fixRevision','config','listenTo','setRevisionData','bind','2874030noFlqg','reInit','getOperations','addToReconnectionStack','map','plugins','change:_isConnected','_revisionDataBuilder','adapter','_bufferUpdate','cloud-services-internal-error:\x20Request\x20timeout.','once','creatorId','message','reverse','1192eiKxBb','repository','connected','updateRevisions','_oldOffset','_lastRequestId','type','init','_bufferedUpdates','8206MiVqIO','connect','addRevisionData','code','startsWith','sessionId','_revisionTracker','get','toVersion','max','createdAt','authorsIds','marker','reconnect','revisionsUpdated','2xMhwGw','then','fromVersion','getRevisions','pluginName','_waitForServiceReady','getUser','isPremiumPlugin','state','requires','affectsData','isConnected','length','serverHistory','cloudServices.bundleVersion','has','destroy','off','editor','176dTjVKM','CloudServicesRevisionHistoryAdapter','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','authors','from','_startingVersion','size','3970164NLQhGZ','remove','6637638XRLjgb'];_0x47f0=function(){return _0x5c3a69;};return _0x47f0();}(function(_0xd97861,_0x5b5908){const _0x42284a=_0x4e2e,_0x220530=_0xd97861();while(!![]){try{const _0x219480=-parseInt(_0x42284a(0xb0))/0x1+parseInt(_0x42284a(0xed))/0x2*(parseInt(_0x42284a(0xc6))/0x3)+-parseInt(_0x42284a(0xd5))/0x4*(parseInt(_0x42284a(0xb7))/0x5)+parseInt(_0x42284a(0x92))/0x6+parseInt(_0x42284a(0x94))/0x7+-parseInt(_0x42284a(0x8b))/0x8*(parseInt(_0x42284a(0x95))/0x9)+-parseInt(_0x42284a(0xac))/0xa*(parseInt(_0x42284a(0xde))/0xb);if(_0x219480===_0x5b5908)break;else _0x220530['push'](_0x220530['shift']());}catch(_0x4c585f){_0x220530['push'](_0x220530['shift']());}}}(_0x47f0,0x79117));import{Plugin as _0x221bef}from'ckeditor5/src/core.js';import{version as _0x591fdf}from'ckeditor5/src/utils.js';import{Users as _0x4cbdd0}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0xf0cfc}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x2046e6}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x210106}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x8ac21c,RevisionHistoryService as _0x44c794,User as _0x53b4f9,WEB_SOCKET_GATEWAY_STATES as _0x235260}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x221bef{static [_0x5f56c8(0xb8)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x44c794)());[_0x5f56c8(0xda)];[_0x5f56c8(0xe4)];[_0x5f56c8(0xbb)];[_0x5f56c8(0xd9)];static get[_0x5f56c8(0xf6)](){const _0x43ac20=_0x5f56c8;return[_0x2046e6,_0xf0cfc,_0x43ac20(0xb1),_0x210106,_0x4cbdd0];}static get[_0x5f56c8(0xf1)](){const _0x48bfab=_0x5f56c8;return _0x48bfab(0x8c);}static get[_0x5f56c8(0xb3)](){return!0x0;}static get[_0x5f56c8(0xf4)](){return!0x0;}constructor(_0x4887a0){const _0x1a0be4=_0x5f56c8;super(_0x4887a0);const _0x5ce8f4=this[_0x1a0be4(0x8a)][_0x1a0be4(0xc2)][_0x1a0be4(0xe5)](_0x1a0be4(0x97));this[_0x1a0be4(0xda)]=null,this[_0x1a0be4(0xe4)]=this[_0x1a0be4(0x8a)][_0x1a0be4(0xcb)][_0x1a0be4(0xe5)](_0x1a0be4(0xb5)),this[_0x1a0be4(0xbb)]=new CloudServicesRevisionHistoryAdapter[(_0x1a0be4(0xb8))](_0x5ce8f4);}async[_0x5f56c8(0xdc)](){const _0x10f991=_0x5f56c8,_0x13a737=this[_0x10f991(0x8a)][_0x10f991(0xcb)][_0x10f991(0xe5)](_0xf0cfc),_0x26910f=_0x13a737[_0x10f991(0xfa)],_0x126375=this[_0x10f991(0x8a)][_0x10f991(0xcb)][_0x10f991(0xe5)](_0x2046e6);this[_0x10f991(0xe4)][_0x10f991(0xb4)]({'history':_0x26910f,'getLatestVersion':()=>this[_0x10f991(0x9e)](),'getCurrentRevisionId':()=>_0x13a737[_0x10f991(0xe3)]});const _0x1ed033=this[_0x10f991(0x8a)][_0x10f991(0xc2)][_0x10f991(0xe5)](_0x10f991(0xfb))||_0x591fdf,_0x3f71b7=await _0x8ac21c[_0x10f991(0xa6)](_0x126375[_0x10f991(0xa1)],_0x1ed033);this[_0x10f991(0x8a)][_0x10f991(0xcb)][_0x10f991(0xe5)](_0x10f991(0xb1))[_0x10f991(0xce)]={'getRevision':async({revisionId:_0x2d56bf})=>(await this[_0x10f991(0xf2)](),await this[_0x10f991(0xbb)][_0x10f991(0xb6)](_0x2d56bf)),'updateRevisions':async _0x2e3226=>{const _0x26f73f=_0x10f991;await this[_0x26f73f(0xf2)]();const _0x1afed5=this[_0x26f73f(0xe4)][_0x26f73f(0xaf)];if(_0x3f71b7&&0x1===_0x2e3226[_0x26f73f(0xf9)]&&_0x2e3226[0x0]['id']===_0x1afed5['id'])return _0x2e3226;for(const _0x846346 of _0x2e3226)_0x846346['id']===_0x1afed5['id']&&(_0x846346[_0x26f73f(0xa9)]=_0x846346[_0x26f73f(0xef)]===_0x846346[_0x26f73f(0xe6)]);return this[_0x26f73f(0xbb)][_0x26f73f(0xd8)](_0x2e3226,this[_0x26f73f(0xda)])[_0x26f73f(0xee)](_0x31cff3=>(this[_0x26f73f(0xda)]=_0x31cff3,_0x2e3226))[_0x26f73f(0x99)](_0x2473b5=>{const _0x12786c=_0x26f73f;if(V(_0x2473b5)||_0x12786c(0xa7)===_0x2473b5[_0x12786c(0xe1)]&&void 0x0!==_0x2473b5[_0x12786c(0xc0)][_0x12786c(0x9a)]){for(const _0x2bc729 of _0x2e3226){!this[_0x12786c(0xe4)][_0x12786c(0xd6)][_0x12786c(0xb6)](_0x2bc729['id'])||this[_0x12786c(0xe4)][_0x12786c(0xcf)](_0x2bc729['id'],_0x2bc729,!0x1);}if(V(_0x2473b5))throw _0x2473b5;return _0x2e3226;}throw _0x2473b5;});}},this[_0x10f991(0xc3)](this[_0x10f991(0xbb)],_0x10f991(0xec),(_0xac39ca,{revisionsData:_0x1790dc,requestId:_0x278c3b})=>{const _0x57cb49=_0x10f991;Math[_0x57cb49(0xe7)](..._0x1790dc[_0x57cb49(0xca)](_0x10bc54=>_0x10bc54[_0x57cb49(0xe6)]))>this[_0x57cb49(0xa8)]()-0x1?this[_0x57cb49(0x9e)]()[_0x57cb49(0xee)](()=>{const _0x1f3a0b=_0x57cb49;this[_0x1f3a0b(0xb2)](_0x1790dc,_0x278c3b);}):this[_0x57cb49(0xb2)](_0x1790dc,_0x278c3b);});const {revisions:_0x5758f9,requestId:_0x5622f1}=await this[_0x10f991(0xbb)][_0x10f991(0xdf)](_0x126375[_0x10f991(0xa1)]);_0x126375[_0x10f991(0xc9)](this),this[_0x10f991(0xda)]=_0x5622f1,await this[_0x10f991(0xab)](_0x5758f9);for(const _0x26dabc of _0x5758f9)this[_0x10f991(0xe4)][_0x10f991(0xe0)](_0x26dabc);this[_0x10f991(0xc3)](_0x13a737,_0x10f991(0xcc),(_0x22729a,_0x370e26,_0x29ba74)=>{const _0x1da040=_0x10f991;_0x29ba74&&(this[_0x1da040(0xd9)]=_0x13a737[_0x1da040(0xbd)],_0x22729a[_0x1da040(0x89)]());}),this[_0x10f991(0xe4)][_0x10f991(0xc5)](_0x10f991(0xbe))['to'](_0x126375,_0x10f991(0xf5),_0x38793c=>_0x38793c===_0x235260[_0x10f991(0xbc)]);}async[_0x5f56c8(0xeb)](){const _0x345b93=_0x5f56c8,_0x1adcd4=this[_0x345b93(0x8a)][_0x345b93(0xcb)][_0x345b93(0xe5)](_0x2046e6),_0x253e2c=this[_0x345b93(0x8a)][_0x345b93(0xcb)][_0x345b93(0xe5)](_0xf0cfc),_0x2791eb=async()=>{const _0x1ca34e=_0x345b93,_0x2ef436=this[_0x1ca34e(0xe4)][_0x1ca34e(0xaf)],_0x5931c2=_0x2ef436['id'],_0x43ddae=_0x5931c2!==_0x253e2c[_0x1ca34e(0xe3)];if(_0x43ddae){const _0x278c38=_0x253e2c[_0x1ca34e(0xbd)]-this[_0x1ca34e(0xd9)],_0x50cda5=this[_0x1ca34e(0xa8)]();this[_0x1ca34e(0xe4)][_0x1ca34e(0xcd)][_0x1ca34e(0xc7)]();if(_0x2ef436[_0x1ca34e(0xe6)]+_0x278c38!==_0x50cda5){const _0x12b775=_0x2ef436[_0x1ca34e(0xef)]+_0x278c38,_0x4cee2f=this[_0x1ca34e(0x8a)][_0x1ca34e(0xcb)][_0x1ca34e(0xe5)](_0x4cbdd0),_0x5b87a3=this[_0x1ca34e(0xe4)][_0x1ca34e(0x96)]({'revision':_0x2ef436,'from':_0x12b775,'to':_0x50cda5});_0x5b87a3['id']=_0x2ef436['id'];const _0x106020=_0x5b87a3[_0x1ca34e(0xe9)][_0x1ca34e(0xca)](_0x5797fc=>_0x4cee2f[_0x1ca34e(0xf3)](_0x5797fc));_0x2ef436[_0x1ca34e(0xaa)]({..._0x5b87a3,'authors':_0x106020},!0x0),this[_0x1ca34e(0xe4)][_0x1ca34e(0xcf)](_0x2ef436['id'],_0x5b87a3,!0x0);}this[_0x1ca34e(0xe4)][_0x1ca34e(0x90)]=_0x50cda5,(_0x2ef436[_0x1ca34e(0xe6)]===_0x2ef436[_0x1ca34e(0xef)]&&!this[_0x1ca34e(0xe4)][_0x1ca34e(0xdd)][_0x1ca34e(0xfc)](_0x5931c2)&&this[_0x1ca34e(0xe4)][_0x1ca34e(0xd6)][_0x1ca34e(0x9c)][_0x1ca34e(0x93)](_0x5931c2),this[_0x1ca34e(0xe4)][_0x1ca34e(0x9d)](_0x50cda5));}const {revisions:_0x362bd0,requestId:_0x56a80f}=await this[_0x1ca34e(0xbb)][_0x1ca34e(0xeb)](_0x1adcd4[_0x1ca34e(0xa1)],this[_0x1ca34e(0xda)]);_0x43ddae&&_0x362bd0[_0x1ca34e(0xf9)]>0x0?_0x253e2c[_0x1ca34e(0x9f)]():(await this[_0x1ca34e(0xab)](_0x362bd0),this[_0x1ca34e(0xb2)](_0x362bd0,_0x56a80f),this[_0x1ca34e(0xe4)][_0x1ca34e(0xa2)]());};return _0x253e2c[_0x345b93(0xa5)]?_0x2791eb():new Promise((_0x470432,_0x1d7990)=>{const _0x1f9f2a=_0x345b93;_0x253e2c[_0x1f9f2a(0xd1)](_0x1f9f2a(0xcc),()=>{const _0x4c6db0=_0x1f9f2a;_0x2791eb()[_0x4c6db0(0xee)](_0x470432)[_0x4c6db0(0x99)](_0x1d7990);});});}[_0x5f56c8(0xfd)](){const _0x5cf1dc=_0x5f56c8;super[_0x5cf1dc(0xfd)]();}async[_0x5f56c8(0xf2)](){const _0x579c5a=_0x5f56c8;this[_0x579c5a(0xbb)][_0x579c5a(0xf8)]||await new Promise(_0xec8753=>{const _0x5350a0=_0x579c5a;this[_0x5350a0(0xc3)](this[_0x5350a0(0xbb)],_0x5350a0(0xd7),_0x15dc03=>{const _0x14217b=_0x5350a0;_0x15dc03[_0x14217b(0x89)](),_0xec8753();});});}[_0x5f56c8(0xa8)](){const _0x23e83b=_0x5f56c8,_0xcb22ef=this[_0x23e83b(0x8a)][_0x23e83b(0xcb)][_0x23e83b(0xe5)](_0xf0cfc)[_0x23e83b(0xfa)][_0x23e83b(0xc8)]()[_0x23e83b(0xd4)]();for(const _0x31dc97 of _0xcb22ef)if(_0x23e83b(0xea)!==_0x31dc97[_0x23e83b(0xdb)]||_0x31dc97[_0x23e83b(0xf7)])return _0x31dc97[_0x23e83b(0xb9)]+0x1;}[_0x5f56c8(0x9e)](){const _0x441831=_0x5f56c8,_0x34723b=this[_0x441831(0x8a)][_0x441831(0xcb)][_0x441831(0xe5)](_0xf0cfc);return new Promise(_0x59b708=>{const _0x344ba9=_0x441831;_0x34723b[_0x344ba9(0xbf)]?_0x34723b[_0x344ba9(0xd1)](_0x344ba9(0xa0),()=>{const _0x545eae=_0x344ba9;_0x59b708(this[_0x545eae(0xa8)]());}):_0x59b708(this[_0x344ba9(0xa8)]());});}[_0x5f56c8(0xb2)](_0x2e5790,_0x39b312){const _0x17235e=_0x5f56c8,_0x5ee63a=this[_0x17235e(0xe4)][_0x17235e(0xd6)];this[_0x17235e(0xda)]=_0x39b312;for(const _0x951ae1 of _0x2e5790){const _0x162f3c=_0x5ee63a[_0x17235e(0xb6)](_0x951ae1['id']);if(_0x162f3c){if((_0x951ae1[_0x17235e(0xef)]||_0x951ae1[_0x17235e(0xe6)])&&(_0x951ae1[_0x17235e(0xad)]=null),_0x162f3c===this[_0x17235e(0xe4)][_0x17235e(0xaf)]){const _0x540483=Math[_0x17235e(0xe7)](_0x162f3c[_0x17235e(0xe6)],_0x951ae1[_0x17235e(0xe6)]),_0x1ae4f8=Math[_0x17235e(0xe7)](_0x162f3c[_0x17235e(0xef)],_0x951ae1[_0x17235e(0xef)]);let _0x228033;_0x162f3c[_0x17235e(0xe6)]===_0x951ae1[_0x17235e(0xe6)]&&_0x162f3c[_0x17235e(0xef)]===_0x951ae1[_0x17235e(0xef)]?(_0x228033=!0x0,this[_0x17235e(0x9b)](_0x951ae1)):_0x951ae1[_0x17235e(0xe6)]===_0x540483&&_0x951ae1[_0x17235e(0xef)]===_0x1ae4f8?_0x228033=!0x1:(_0x162f3c[_0x17235e(0xe6)]===_0x540483&&_0x162f3c[_0x17235e(0xef)]===_0x1ae4f8||this[_0x17235e(0xc1)]({'revision':_0x162f3c,'from':_0x1ae4f8,'to':_0x540483}),_0x228033=!0x0),_0x228033&&(delete _0x951ae1[_0x17235e(0xef)],delete _0x951ae1[_0x17235e(0xe6)],delete _0x951ae1[_0x17235e(0xad)],delete _0x951ae1[_0x17235e(0xe8)],delete _0x951ae1[_0x17235e(0xe9)]);}this[_0x17235e(0xe4)][_0x17235e(0xc4)](_0x951ae1),this[_0x17235e(0x9b)](_0x951ae1);}else this[_0x17235e(0xe4)][_0x17235e(0xe0)](_0x951ae1);}const _0x10646f=_0x5ee63a[_0x17235e(0xf0)]();_0x10646f[_0x17235e(0xd4)]();for(let _0x215ed=0x0;_0x215ed<_0x10646f[_0x17235e(0xf9)]-0x1;_0x215ed++){const _0x3e489a=_0x10646f[_0x215ed],_0x8a325f=_0x10646f[_0x215ed+0x1];if(_0x3e489a[_0x17235e(0xef)]<_0x8a325f[_0x17235e(0xe6)]){const _0x32b7b9=_0x8a325f[_0x17235e(0xe6)],_0x362302=Math[_0x17235e(0xe7)](_0x32b7b9,_0x3e489a[_0x17235e(0xe6)]);this[_0x17235e(0xc1)]({'revision':_0x3e489a,'from':_0x32b7b9,'to':_0x362302});}}}[_0x5f56c8(0xc1)]({revision:_0x66697b,from:_0x7a1009,to:_0x861869}={}){const _0x111b2e=_0x5f56c8,_0x4a5245=this[_0x111b2e(0x8a)][_0x111b2e(0xcb)][_0x111b2e(0xe5)](_0x4cbdd0),_0xe73a97=this[_0x111b2e(0xe4)][_0x111b2e(0x96)]({'revision':_0x66697b,'from':_0x7a1009,'to':_0x861869});_0xe73a97[_0x111b2e(0x8e)]=_0xe73a97[_0x111b2e(0xe9)][_0x111b2e(0xca)](_0x8ebd24=>_0x4a5245[_0x111b2e(0xf3)](_0x8ebd24)),_0x66697b[_0x111b2e(0xaa)](_0xe73a97);}[_0x5f56c8(0x9b)](_0x4eb57d){const _0x2e7069=_0x5f56c8,_0x44a7f8={};_0x44a7f8['id']=_0x4eb57d['id'];for(const _0x25e420 of Object[_0x2e7069(0xa3)](_0x4eb57d))'id'!==_0x25e420&&(_0x44a7f8[_0x25e420]=void 0x0);this[_0x2e7069(0xe4)][_0x2e7069(0xcf)](_0x44a7f8['id'],_0x44a7f8,!0x0);}async[_0x5f56c8(0xab)](_0x508107){const _0x342616=_0x5f56c8,_0x37c65a=this[_0x342616(0x8a)][_0x342616(0xcb)][_0x342616(0xe5)](_0x4cbdd0),{connection:_0xf6cde6}=this[_0x342616(0x8a)][_0x342616(0xcb)][_0x342616(0xe5)](_0x2046e6),_0x49c837=new Set();for(const _0x28f21d of _0x508107){for(const _0x27158f of _0x28f21d[_0x342616(0xe9)])_0x5b0e60(_0x27158f);_0x28f21d[_0x342616(0xd2)]&&_0x5b0e60(_0x28f21d[_0x342616(0xd2)]);}if(0x0===_0x49c837[_0x342616(0x91)])return;const _0x38f906=await _0x53b4f9[_0x342616(0xae)](_0xf6cde6,Array[_0x342616(0x8f)](_0x49c837));for(const _0x2db81a of _0x38f906)_0x37c65a[_0x342616(0xf3)](_0x2db81a['id'])||_0x37c65a[_0x342616(0x98)](_0x2db81a);function _0x5b0e60(_0x1c8930){const _0xf2669d=_0x342616;_0x37c65a[_0xf2669d(0xf3)](_0x1c8930)||_0x49c837[_0xf2669d(0xa4)](_0x1c8930);}}}function V(_0x655e17){const _0x536ae7=_0x5f56c8;return _0x655e17[_0x536ae7(0xd3)][_0x536ae7(0xe2)](_0x536ae7(0x8d))||_0x655e17[_0x536ae7(0xd3)][_0x536ae7(0xe2)](_0x536ae7(0xba))||_0x655e17[_0x536ae7(0xd3)][_0x536ae7(0xe2)](_0x536ae7(0xd0));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6968ce=_0x34bd;(function(_0x48b356,_0x300418){const _0x260ad2=_0x34bd,_0x93ab50=_0x48b356();while(!![]){try{const _0x3fbbd1=parseInt(_0x260ad2(0x1e1))/0x1*(parseInt(_0x260ad2(0x1ed))/0x2)+parseInt(_0x260ad2(0x20d))/0x3*(-parseInt(_0x260ad2(0x1e2))/0x4)+parseInt(_0x260ad2(0x200))/0x5+parseInt(_0x260ad2(0x1ff))/0x6+parseInt(_0x260ad2(0x1e4))/0x7*(parseInt(_0x260ad2(0x21b))/0x8)+-parseInt(_0x260ad2(0x1fd))/0x9+-parseInt(_0x260ad2(0x213))/0xa;if(_0x3fbbd1===_0x300418)break;else _0x93ab50['push'](_0x93ab50['shift']());}catch(_0x3a3b55){_0x93ab50['push'](_0x93ab50['shift']());}}}(_0x3e4c,0xece9a));import{Plugin as _0xe97a1}from'ckeditor5/src/core.js';import{User as _0x1489d4,TrackChangesService as _0x5150f1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x4a34a4}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0xd0bb08}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x3e4c(){const _0x2ef72a=['startsWith','originalSuggestionId','from','pluginName','isConnected','cloud-services-internal-error:\x20Not\x20connected.','suggestionUpdated','isOfficialPlugin','off','_saved','connection','TrackChangesService','8893980dBzMhY','editor','1241088ZTivaJ','217170UEzQxn','getSuggestion','get','size','data','_waitForServiceReady','open','CloudServicesTrackChangesAdapter','type','collaboration.channelId','TrackChangesEditing','delete','values','78OksJVj','add','config','getUser','reconnect','connect','12884920GcaLTQ','isPremiumPlugin','adapter','addToReconnectionStack','init','getMany','state','addUser','3192Oryqhz','connected','then','plugins','cloud-services-internal-error:\x20Request\x20timeout.','update','128515KVsSZT','24772sHquhJ','_fetchMissingUsersForThreads','21581DGfiMy','addSuggestionData','requires','message','_trackChangesService','catch','attributes','find','listenTo','30FisirB','hasSuggestion','_bufferedRequests','set'];_0x3e4c=function(){return _0x2ef72a;};return _0x3e4c();}function _0x34bd(_0x1d5663,_0x248acb){const _0x3e4cd9=_0x3e4c();return _0x34bd=function(_0x34bdcc,_0x3c1d92){_0x34bdcc=_0x34bdcc-0x1e1;let _0x1669a4=_0x3e4cd9[_0x34bdcc];return _0x1669a4;},_0x34bd(_0x1d5663,_0x248acb);}import{Users as _0x319ff5}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0xe97a1{static [_0x6968ce(0x1fc)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x5150f1)());[_0x6968ce(0x1ef)];[_0x6968ce(0x1e8)];static get[_0x6968ce(0x1e6)](){const _0x27b9b3=_0x6968ce;return[_0xd0bb08,_0x27b9b3(0x20a),_0x4a34a4];}static get[_0x6968ce(0x1f4)](){const _0x39cfb2=_0x6968ce;return _0x39cfb2(0x207);}static get[_0x6968ce(0x1f8)](){return!0x0;}static get[_0x6968ce(0x214)](){return!0x0;}constructor(_0xf061ab){const _0x23de2d=_0x6968ce;super(_0xf061ab);const _0x1171a0=this[_0x23de2d(0x1fe)][_0x23de2d(0x20f)][_0x23de2d(0x202)](_0x23de2d(0x209));this[_0x23de2d(0x1ef)]=new Map(),this[_0x23de2d(0x1e8)]=new CloudServicesTrackChangesAdapter[(_0x23de2d(0x1fc))](_0x1171a0);}[_0x6968ce(0x217)](){const _0x28bbcf=_0x6968ce,_0x113e01=this[_0x28bbcf(0x1fe)][_0x28bbcf(0x21e)][_0x28bbcf(0x202)](_0x4a34a4),_0x224042=this[_0x28bbcf(0x1fe)][_0x28bbcf(0x21e)][_0x28bbcf(0x202)](_0x28bbcf(0x20a));return _0x224042[_0x28bbcf(0x215)]={'getSuggestion':async _0x55f201=>{const _0x162894=_0x28bbcf;await this[_0x162894(0x205)]();const _0x1ba56c=await this[_0x162894(0x1e8)][_0x162894(0x202)](_0x55f201)[_0x162894(0x1e9)](k);return await this[_0x162894(0x1e3)]([_0x1ba56c]),_0x1ba56c;},'addSuggestion':async({id:_0x52c91d,type:_0x3510b5,data:_0x2673e3,originalSuggestionId:_0x2de184,attributes:_0x5624ca})=>{const _0x3bfeaa=_0x28bbcf;await this[_0x3bfeaa(0x205)]();const _0x768bd1={'id':_0x52c91d,'type':_0x3510b5,'data':_0x2673e3,'originalSuggestionId':_0x2de184,'attributes':_0x5624ca},_0x5d16c3=await this[_0x3bfeaa(0x1e8)][_0x3bfeaa(0x20e)](_0x52c91d,_0x3510b5,_0x2673e3,_0x2de184,_0x5624ca)[_0x3bfeaa(0x1e9)](_0x172122=>{if(q(_0x172122))return new Promise(_0x58f880=>{const _0x5f14af=_0x34bd;this[_0x5f14af(0x1ef)][_0x5f14af(0x1f0)](_0x52c91d,{'resolve':_0x58f880,'suggestionData':_0x768bd1});});throw _0x172122;});return this[_0x3bfeaa(0x1ef)][_0x3bfeaa(0x20b)](_0x52c91d),_0x5d16c3;},'updateSuggestion':async(_0x488300,_0x3c7466)=>{const _0x493d6e=_0x28bbcf;if(await this[_0x493d6e(0x205)](),_0x493d6e(0x206)!==_0x3c7466[_0x493d6e(0x219)])return this[_0x493d6e(0x1e8)][_0x493d6e(0x220)](_0x488300,_0x3c7466)[_0x493d6e(0x1e9)](k);}},this[_0x28bbcf(0x1ec)](this[_0x28bbcf(0x1e8)],_0x28bbcf(0x1f7),(_0x42765f,_0x26dfa3)=>{const _0x37eb4b=_0x28bbcf;_0x224042[_0x37eb4b(0x1ee)](_0x26dfa3['id'])&&(_0x224042[_0x37eb4b(0x201)](_0x26dfa3['id'])[_0x37eb4b(0x1ea)]=_0x26dfa3[_0x37eb4b(0x1ea)]);}),this[_0x28bbcf(0x1e8)][_0x28bbcf(0x212)](_0x113e01[_0x28bbcf(0x1fb)])[_0x28bbcf(0x21d)](_0x16029f=>(_0x113e01[_0x28bbcf(0x216)](this),this[_0x28bbcf(0x1e3)](_0x16029f)[_0x28bbcf(0x21d)](()=>{const _0x231004=_0x28bbcf;for(const _0x5d3cf7 of _0x16029f){_0x224042[_0x231004(0x1e5)](_0x5d3cf7)[_0x231004(0x1fa)]=!0x0;}})));}async[_0x6968ce(0x211)](){const _0x470dd2=_0x6968ce,_0x3d9e49=this[_0x470dd2(0x1fe)][_0x470dd2(0x21e)][_0x470dd2(0x202)](_0x470dd2(0x20a)),{connection:_0x1b56a7}=this[_0x470dd2(0x1fe)][_0x470dd2(0x21e)][_0x470dd2(0x202)](_0x4a34a4),_0x3ebadd=await this[_0x470dd2(0x1e8)][_0x470dd2(0x212)](_0x1b56a7);await this[_0x470dd2(0x1e3)](_0x3ebadd);for(const {suggestionData:_0x374fa3,resolve:_0x5847a6}of this[_0x470dd2(0x1ef)][_0x470dd2(0x20c)]()){let _0x20d41c=_0x3ebadd[_0x470dd2(0x1eb)](_0x3673e8=>_0x3673e8['id']===_0x374fa3['id']);_0x20d41c||(_0x20d41c=await this[_0x470dd2(0x1e8)][_0x470dd2(0x20e)](_0x374fa3['id'],_0x374fa3[_0x470dd2(0x208)],_0x374fa3[_0x470dd2(0x204)],_0x374fa3[_0x470dd2(0x1f2)])),_0x5847a6(_0x20d41c);}for(const _0x33edc6 of _0x3ebadd)_0x3d9e49[_0x470dd2(0x1ee)](_0x33edc6['id'])||_0x3d9e49[_0x470dd2(0x1e5)](_0x33edc6);}async[_0x6968ce(0x205)](){const _0x4781b5=_0x6968ce;this[_0x4781b5(0x1e8)][_0x4781b5(0x1f5)]||await new Promise(_0x14afb8=>{const _0x2b8963=_0x4781b5;this[_0x2b8963(0x1ec)](this[_0x2b8963(0x1e8)],_0x2b8963(0x21c),_0x1c9ca6=>{const _0xe819fd=_0x2b8963;_0x1c9ca6[_0xe819fd(0x1f9)](),_0x14afb8();});});}async[_0x6968ce(0x1e3)](_0x396374){const _0x4e3c95=_0x6968ce,_0x17c7c9=this[_0x4e3c95(0x1fe)][_0x4e3c95(0x21e)][_0x4e3c95(0x202)](_0x319ff5),{connection:_0x5b457e}=this[_0x4e3c95(0x1fe)][_0x4e3c95(0x21e)][_0x4e3c95(0x202)](_0x4a34a4),_0x286e2a=new Set();for(const {authorId:_0x3f6c27}of _0x396374)_0x17c7c9[_0x4e3c95(0x210)](_0x3f6c27)||_0x286e2a[_0x4e3c95(0x20e)](_0x3f6c27);if(0x0===_0x286e2a[_0x4e3c95(0x203)])return;const _0x3800c8=await _0x1489d4[_0x4e3c95(0x218)](_0x5b457e,Array[_0x4e3c95(0x1f3)](_0x286e2a));for(const _0x8ea871 of _0x3800c8)_0x17c7c9[_0x4e3c95(0x210)](_0x8ea871['id'])||_0x17c7c9[_0x4e3c95(0x21a)](_0x8ea871);}}function k(_0x2b55d3){if(q(_0x2b55d3))return new Promise(()=>{});throw _0x2b55d3;}function q(_0x6276f5){const _0x1085dc=_0x6968ce;return _0x6276f5[_0x1085dc(0x1e7)][_0x1085dc(0x1f1)](_0x1085dc(0x1f6))||_0x6276f5[_0x1085dc(0x1e7)][_0x1085dc(0x1f1)](_0x1085dc(0x21f));}
23
+ const _0x490941=_0x1695;(function(_0x361705,_0x30f16a){const _0x3bd6e7=_0x1695,_0x9ed446=_0x361705();while(!![]){try{const _0x1e6ea3=parseInt(_0x3bd6e7(0x152))/0x1*(parseInt(_0x3bd6e7(0x139))/0x2)+-parseInt(_0x3bd6e7(0x140))/0x3+parseInt(_0x3bd6e7(0x16b))/0x4*(-parseInt(_0x3bd6e7(0x137))/0x5)+-parseInt(_0x3bd6e7(0x163))/0x6*(-parseInt(_0x3bd6e7(0x161))/0x7)+-parseInt(_0x3bd6e7(0x16f))/0x8+parseInt(_0x3bd6e7(0x142))/0x9+parseInt(_0x3bd6e7(0x14e))/0xa;if(_0x1e6ea3===_0x30f16a)break;else _0x9ed446['push'](_0x9ed446['shift']());}catch(_0x31c6e0){_0x9ed446['push'](_0x9ed446['shift']());}}}(_0x2cc3,0x9e400));import{Plugin as _0x580237}from'ckeditor5/src/core.js';function _0x1695(_0x1e48d4,_0x2b4170){const _0x2cc313=_0x2cc3();return _0x1695=function(_0x169553,_0x95cb01){_0x169553=_0x169553-0x136;let _0x4e9bfa=_0x2cc313[_0x169553];return _0x4e9bfa;},_0x1695(_0x1e48d4,_0x2b4170);}import{User as _0x3a7546,TrackChangesService as _0x26a097}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x352a1c}from'../realtimecollaborativeediting/websocketgateway.js';function _0x2cc3(){const _0x145fda=['TrackChangesEditing','24BpQXwd','get','editor','connect','config','cloud-services-internal-error:\x20Request\x20timeout.','addToReconnectionStack','cloud-services-internal-error:\x20Not\x20connected.','443668mySLIQ','reconnect','requires','catch','8625752rgyPHo','type','from','attributes','values','originalSuggestionId','data','hasSuggestion','55CuNFBD','plugins','2124HZnEWV','_fetchMissingUsersForThreads','TrackChangesService','off','find','addUser','getSuggestion','1494471zDViWi','_saved','6664437KNADuh','listenTo','_waitForServiceReady','suggestionUpdated','init','open','startsWith','pluginName','collaboration.channelId','isPremiumPlugin','delete','addSuggestionData','10526720utvseH','size','set','message','1091stajqm','state','add','connected','isConnected','adapter','isOfficialPlugin','_bufferedRequests','getUser','getMany','CloudServicesTrackChangesAdapter','then','connection','_trackChangesService','update','862484FXDOQx'];_0x2cc3=function(){return _0x145fda;};return _0x2cc3();}import{CloudServicesCommentsAdapter as _0x6e6395}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x1b4ef0}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x580237{static [_0x490941(0x13b)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x26a097)());[_0x490941(0x159)];[_0x490941(0x15f)];static get[_0x490941(0x16d)](){const _0x5881ba=_0x490941;return[_0x6e6395,_0x5881ba(0x162),_0x352a1c];}static get[_0x490941(0x149)](){const _0x4ec0a5=_0x490941;return _0x4ec0a5(0x15c);}static get[_0x490941(0x158)](){return!0x0;}static get[_0x490941(0x14b)](){return!0x0;}constructor(_0x1137d6){const _0x449e8a=_0x490941;super(_0x1137d6);const _0x2d8522=this[_0x449e8a(0x165)][_0x449e8a(0x167)][_0x449e8a(0x164)](_0x449e8a(0x14a));this[_0x449e8a(0x159)]=new Map(),this[_0x449e8a(0x15f)]=new CloudServicesTrackChangesAdapter[(_0x449e8a(0x13b))](_0x2d8522);}[_0x490941(0x146)](){const _0x45080f=_0x490941,_0x2fc900=this[_0x45080f(0x165)][_0x45080f(0x138)][_0x45080f(0x164)](_0x352a1c),_0x4abe7f=this[_0x45080f(0x165)][_0x45080f(0x138)][_0x45080f(0x164)](_0x45080f(0x162));return _0x4abe7f[_0x45080f(0x157)]={'getSuggestion':async _0x160430=>{const _0x4cb7a3=_0x45080f;await this[_0x4cb7a3(0x144)]();const _0x189373=await this[_0x4cb7a3(0x15f)][_0x4cb7a3(0x164)](_0x160430)[_0x4cb7a3(0x16e)](et);return await this[_0x4cb7a3(0x13a)]([_0x189373]),_0x189373;},'addSuggestion':async({id:_0x290b12,type:_0x1f0d48,data:_0x506b04,originalSuggestionId:_0x100af6,attributes:_0x38bddb})=>{const _0x2760ab=_0x45080f;await this[_0x2760ab(0x144)]();const _0x18b4f1={'id':_0x290b12,'type':_0x1f0d48,'data':_0x506b04,'originalSuggestionId':_0x100af6,'attributes':_0x38bddb},_0x115d94=await this[_0x2760ab(0x15f)][_0x2760ab(0x154)](_0x290b12,_0x1f0d48,_0x506b04,_0x100af6,_0x38bddb)[_0x2760ab(0x16e)](_0x16ccfd=>{if(V(_0x16ccfd))return new Promise(_0x1bfc09=>{const _0xcfa22=_0x1695;this[_0xcfa22(0x159)][_0xcfa22(0x150)](_0x290b12,{'resolve':_0x1bfc09,'suggestionData':_0x18b4f1});});throw _0x16ccfd;});return this[_0x2760ab(0x159)][_0x2760ab(0x14c)](_0x290b12),_0x115d94;},'updateSuggestion':async(_0x4f4307,_0x221cbe)=>{const _0x3db534=_0x45080f;if(await this[_0x3db534(0x144)](),_0x3db534(0x147)!==_0x221cbe[_0x3db534(0x153)])return this[_0x3db534(0x15f)][_0x3db534(0x160)](_0x4f4307,_0x221cbe)[_0x3db534(0x16e)](et);}},this[_0x45080f(0x143)](this[_0x45080f(0x15f)],_0x45080f(0x145),(_0x28e948,_0x583cf7)=>{const _0x424a57=_0x45080f;_0x4abe7f[_0x424a57(0x136)](_0x583cf7['id'])&&(_0x4abe7f[_0x424a57(0x13f)](_0x583cf7['id'])[_0x424a57(0x172)]=_0x583cf7[_0x424a57(0x172)]);}),this[_0x45080f(0x15f)][_0x45080f(0x166)](_0x2fc900[_0x45080f(0x15e)])[_0x45080f(0x15d)](_0x2a96b7=>(_0x2fc900[_0x45080f(0x169)](this),this[_0x45080f(0x13a)](_0x2a96b7)[_0x45080f(0x15d)](()=>{const _0x5f3288=_0x45080f;for(const _0x5ec1a3 of _0x2a96b7){_0x4abe7f[_0x5f3288(0x14d)](_0x5ec1a3)[_0x5f3288(0x141)]=!0x0;}})));}async[_0x490941(0x16c)](){const _0x9d5a6a=_0x490941,_0x2a79ce=this[_0x9d5a6a(0x165)][_0x9d5a6a(0x138)][_0x9d5a6a(0x164)](_0x9d5a6a(0x162)),{connection:_0x96d8b2}=this[_0x9d5a6a(0x165)][_0x9d5a6a(0x138)][_0x9d5a6a(0x164)](_0x352a1c),_0x993796=await this[_0x9d5a6a(0x15f)][_0x9d5a6a(0x166)](_0x96d8b2);await this[_0x9d5a6a(0x13a)](_0x993796);for(const {suggestionData:_0xb1a62f,resolve:_0x1c7f83}of this[_0x9d5a6a(0x159)][_0x9d5a6a(0x173)]()){let _0x443181=_0x993796[_0x9d5a6a(0x13d)](_0xee77c6=>_0xee77c6['id']===_0xb1a62f['id']);_0x443181||(_0x443181=await this[_0x9d5a6a(0x15f)][_0x9d5a6a(0x154)](_0xb1a62f['id'],_0xb1a62f[_0x9d5a6a(0x170)],_0xb1a62f[_0x9d5a6a(0x175)],_0xb1a62f[_0x9d5a6a(0x174)])),_0x1c7f83(_0x443181);}for(const _0x2ebbfd of _0x993796)_0x2a79ce[_0x9d5a6a(0x136)](_0x2ebbfd['id'])||_0x2a79ce[_0x9d5a6a(0x14d)](_0x2ebbfd);}async[_0x490941(0x144)](){const _0x56d446=_0x490941;this[_0x56d446(0x15f)][_0x56d446(0x156)]||await new Promise(_0x173d0c=>{const _0x5bac73=_0x56d446;this[_0x5bac73(0x143)](this[_0x5bac73(0x15f)],_0x5bac73(0x155),_0x2d53f3=>{const _0x389336=_0x5bac73;_0x2d53f3[_0x389336(0x13c)](),_0x173d0c();});});}async[_0x490941(0x13a)](_0x3b7fc7){const _0x1d8b89=_0x490941,_0x2967aa=this[_0x1d8b89(0x165)][_0x1d8b89(0x138)][_0x1d8b89(0x164)](_0x1b4ef0),{connection:_0x12a505}=this[_0x1d8b89(0x165)][_0x1d8b89(0x138)][_0x1d8b89(0x164)](_0x352a1c),_0x2c58da=new Set();for(const {authorId:_0x4530e7}of _0x3b7fc7)_0x2967aa[_0x1d8b89(0x15a)](_0x4530e7)||_0x2c58da[_0x1d8b89(0x154)](_0x4530e7);if(0x0===_0x2c58da[_0x1d8b89(0x14f)])return;const _0x27854f=await _0x3a7546[_0x1d8b89(0x15b)](_0x12a505,Array[_0x1d8b89(0x171)](_0x2c58da));for(const _0x2d82fd of _0x27854f)_0x2967aa[_0x1d8b89(0x15a)](_0x2d82fd['id'])||_0x2967aa[_0x1d8b89(0x13e)](_0x2d82fd);}}function et(_0x33b112){if(V(_0x33b112))return new Promise(()=>{});throw _0x33b112;}function V(_0x1126c4){const _0x668fb5=_0x490941;return _0x1126c4[_0x668fb5(0x151)][_0x668fb5(0x148)](_0x668fb5(0x16a))||_0x1126c4[_0x668fb5(0x151)][_0x668fb5(0x148)](_0x668fb5(0x168));}