@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.6 → 46.0.1-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2094(_0xae33b4,_0x489811){const _0x12f7e0=_0x12f7();return _0x2094=function(_0x2094d6,_0x5eb633){_0x2094d6=_0x2094d6-0xab;let _0x6960d=_0x12f7e0[_0x2094d6];return _0x6960d;},_0x2094(_0xae33b4,_0x489811);}const _0x591f59=_0x2094;(function(_0x23b14b,_0x2053aa){const _0x382b7a=_0x2094,_0x523444=_0x23b14b();while(!![]){try{const _0x363d93=parseInt(_0x382b7a(0xbb))/0x1*(-parseInt(_0x382b7a(0xe2))/0x2)+parseInt(_0x382b7a(0xea))/0x3*(-parseInt(_0x382b7a(0xda))/0x4)+parseInt(_0x382b7a(0xde))/0x5+-parseInt(_0x382b7a(0xbd))/0x6*(parseInt(_0x382b7a(0xc5))/0x7)+-parseInt(_0x382b7a(0xc8))/0x8*(parseInt(_0x382b7a(0xbe))/0x9)+-parseInt(_0x382b7a(0xe3))/0xa*(parseInt(_0x382b7a(0xdc))/0xb)+-parseInt(_0x382b7a(0xe0))/0xc*(-parseInt(_0x382b7a(0xaf))/0xd);if(_0x363d93===_0x2053aa)break;else _0x523444['push'](_0x523444['shift']());}catch(_0x4de731){_0x523444['push'](_0x523444['shift']());}}}(_0x12f7,0x6c987));import{ContextPlugin as _0x1deac7}from'ckeditor5/src/core.js';import{Collection as _0x9d9950,CKEditorError as _0x3476da}from'ckeditor5/src/utils.js';function _0x12f7(){const _0x4c240c=['2059400WnncUE','get','init','getUserBySessionId','size','getUserSessions','addUser','getUserRole','mySessionId','_createUser','pluginName','defineMe','add','channelConnectedUsers','assign','role','set','change:state','559880vPgVjG','forEach','185779LAJBkv','values','2342580NaYbXp','orderNumber','60wNYRbo','getUser','35366mJaLDc','470ZUOowj','context','connection','sessions-unregister-not-exist','channelSessions','_users','Sessions','12SgMyIU','isOfficialPlugin','_uniqueUsersCount','user','sessionId','sessionAdd:','6578546mUIZAH','remove','unregister','_registeredSessions','plugins','connected','_handleSessionAdd','state','fire','delete','_handleSessionRemove','isMe','25PgceZv','listenTo','3004536Lppepa','9wunfJo','sessions-register-already-registered','allConnectedUsers','isPremiumPlugin','clear','stopListening','requires','7NWlWpX','register','has'];_0x12f7=function(){return _0x4c240c;};return _0x12f7();}import{WebSocketGateway as _0xf16060}from'./websocketgateway.js';import{Users as _0x1429ef}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x1deac7{[_0x591f59(0xe7)];[_0x591f59(0xd5)];[_0x591f59(0xc0)];[_0x591f59(0xb2)];[_0x591f59(0xab)];[_0x591f59(0xe8)];static get[_0x591f59(0xd2)](){const _0x1ada74=_0x591f59;return _0x1ada74(0xe9);}static get[_0x591f59(0xeb)](){return!0x0;}static get[_0x591f59(0xc1)](){return!0x0;}static get[_0x591f59(0xc4)](){return[_0xf16060,_0x1429ef];}constructor(_0x1b00cd){const _0x50d89d=_0x591f59;super(_0x1b00cd),this[_0x50d89d(0xe7)]=new Map(),this[_0x50d89d(0xd5)]=new Map(),this[_0x50d89d(0xc0)]=new _0x9d9950(),this[_0x50d89d(0xb2)]=new Map(),this[_0x50d89d(0xab)]=0x0,this[_0x50d89d(0xe8)]=this[_0x50d89d(0xe4)][_0x50d89d(0xb3)][_0x50d89d(0xc9)](_0x1429ef);}[_0x591f59(0xca)](){const _0x2dded3=_0x591f59,_0x49d175=this[_0x2dded3(0xe4)][_0x2dded3(0xb3)][_0x2dded3(0xc9)](_0xf16060);this[_0x2dded3(0xbc)](_0x49d175,_0x2dded3(0xd9),(_0x594305,_0x346450,_0x4c0336)=>{const _0x3a28d4=_0x2dded3;if(_0x3a28d4(0xb4)!==_0x4c0336)this[_0x3a28d4(0xe7)][_0x3a28d4(0xdb)](_0x591851=>_0x591851[_0x3a28d4(0xc2)]()),this[_0x3a28d4(0xd5)][_0x3a28d4(0xdb)](_0x14ad0a=>_0x14ad0a[_0x3a28d4(0xc2)]()),this[_0x3a28d4(0xc0)][_0x3a28d4(0xc2)]();else{for(const [_0x1ccfa4,_0x2f9fe4]of this[_0x3a28d4(0xb2)])for(const _0x20fea4 of _0x2f9fe4)this[_0x3a28d4(0xb5)](_0x1ccfa4,_0x20fea4);}}),this[_0x2dded3(0xd1)](_0x49d175[_0x2dded3(0xe5)]['me'],!0x0);}[_0x591f59(0xc6)](_0x2ac30a,_0x2af551){const _0x48efdf=_0x591f59;if(this[_0x48efdf(0xb2)][_0x48efdf(0xc7)](_0x2ac30a))throw new _0x3476da(_0x48efdf(0xbf),null,{'channelId':_0x2ac30a});this[_0x48efdf(0xb2)][_0x48efdf(0xd8)](_0x2ac30a,_0x2af551),this[_0x48efdf(0xe7)][_0x48efdf(0xd8)](_0x2ac30a,new _0x9d9950()),this[_0x48efdf(0xd5)][_0x48efdf(0xd8)](_0x2ac30a,new _0x9d9950()),this[_0x48efdf(0xbc)](_0x2af551,_0x48efdf(0xd4),(_0x4fd909,_0xb74733)=>this[_0x48efdf(0xb5)](_0x2ac30a,_0xb74733)),this[_0x48efdf(0xbc)](_0x2af551,_0x48efdf(0xb0),(_0x4226b5,_0x3d6a22)=>this[_0x48efdf(0xb9)](_0x2ac30a,_0x3d6a22));for(const _0x1ad252 of _0x2af551)this[_0x48efdf(0xb5)](_0x2ac30a,_0x1ad252);}[_0x591f59(0xb1)](_0x2b223e){const _0x41e0a7=_0x591f59;if(!this[_0x41e0a7(0xb2)][_0x41e0a7(0xc7)](_0x2b223e))throw new _0x3476da(_0x41e0a7(0xe6),null,{'channelId':_0x2b223e});const _0x6f9473=this[_0x41e0a7(0xb2)][_0x41e0a7(0xc9)](_0x2b223e);this[_0x41e0a7(0xc3)](_0x6f9473);for(const _0x1222a7 of _0x6f9473)_0x41e0a7(0xb4)===this[_0x41e0a7(0xe4)][_0x41e0a7(0xb3)][_0x41e0a7(0xc9)](_0xf16060)[_0x41e0a7(0xb6)]&&this[_0x41e0a7(0xb9)](_0x2b223e,_0x1222a7);this[_0x41e0a7(0xb2)][_0x41e0a7(0xb8)](_0x2b223e),this[_0x41e0a7(0xe7)][_0x41e0a7(0xb8)](_0x2b223e),this[_0x41e0a7(0xd5)][_0x41e0a7(0xb8)](_0x2b223e);}get[_0x591f59(0xd0)](){const _0x3187c1=_0x591f59;return this[_0x3187c1(0xe4)][_0x3187c1(0xb3)][_0x3187c1(0xc9)](_0xf16060)[_0x3187c1(0xe5)][_0x3187c1(0xad)];}[_0x591f59(0xcb)](_0x2dfd6d){const _0xce301b=_0x591f59;for(const _0x33f7bc of this[_0xce301b(0xe7)][_0xce301b(0xdd)]())for(const _0x558950 of _0x33f7bc)if(_0x558950['id']===_0x2dfd6d)return _0x558950[_0xce301b(0xac)];}[_0x591f59(0xcd)](_0x34c9e7,_0x434e59){const _0x1ae1fe=_0x591f59,_0x4d2c5=_0x434e59?[this[_0x1ae1fe(0xe7)][_0x1ae1fe(0xc9)](_0x434e59)]:this[_0x1ae1fe(0xe7)][_0x1ae1fe(0xdd)](),_0x29a2c0=new Set();for(const _0x9a5f88 of _0x4d2c5)for(const _0x9014c4 of _0x9a5f88)_0x9014c4[_0x1ae1fe(0xac)]['id']===_0x34c9e7['id']&&_0x29a2c0[_0x1ae1fe(0xd4)](_0x9014c4['id']);return _0x29a2c0;}[_0x591f59(0xcf)](_0x4eab10){const _0x406f76=_0x591f59;for(const _0x30cb0e of this[_0x406f76(0xe7)][_0x406f76(0xdd)]())for(const _0x587aa5 of _0x30cb0e)if(_0x587aa5[_0x406f76(0xac)]===_0x4eab10)return _0x587aa5[_0x406f76(0xd7)];}[_0x591f59(0xb5)](_0x5c6090,_0xac8dbe){const _0x2b6e4c=_0x591f59;if(_0x2b6e4c(0xb4)!==this[_0x2b6e4c(0xe4)][_0x2b6e4c(0xb3)][_0x2b6e4c(0xc9)](_0xf16060)[_0x2b6e4c(0xb6)])return;const _0x5ca7ad=_0xac8dbe[_0x2b6e4c(0xac)],_0x34122f=this[_0x2b6e4c(0xe8)][_0x2b6e4c(0xe1)](_0x5ca7ad['id'])||this[_0x2b6e4c(0xd1)](_0x5ca7ad),_0x542e9d=Object[_0x2b6e4c(0xd6)]({},_0xac8dbe,{'user':_0x34122f});this[_0x2b6e4c(0xe7)][_0x2b6e4c(0xc9)](_0x5c6090)[_0x2b6e4c(0xd4)](_0x542e9d);const _0x349043=this[_0x2b6e4c(0xd5)][_0x2b6e4c(0xc9)](_0x5c6090);_0x349043[_0x2b6e4c(0xc7)](_0x34122f['id'])||_0x349043[_0x2b6e4c(0xd4)](_0x34122f),this[_0x2b6e4c(0xc0)][_0x2b6e4c(0xc7)](_0x34122f['id'])||this[_0x2b6e4c(0xc0)][_0x2b6e4c(0xd4)](_0x34122f,_0x34122f[_0x2b6e4c(0xba)]?0x0:void 0x0),this[_0x2b6e4c(0xb7)](_0x2b6e4c(0xae)+_0x5c6090,{'channelId':_0x5c6090,'session':_0x542e9d});}[_0x591f59(0xb9)](_0x194f81,_0x43bf79){const _0xdd9025=_0x591f59;if(_0xdd9025(0xb4)!==this[_0xdd9025(0xe4)][_0xdd9025(0xb3)][_0xdd9025(0xc9)](_0xf16060)[_0xdd9025(0xb6)])return;const _0x1e590d=this[_0xdd9025(0xd5)][_0xdd9025(0xc9)](_0x194f81),_0x402fa3=_0x43bf79[_0xdd9025(0xac)];_0x402fa3['id']&&(this[_0xdd9025(0xe7)][_0xdd9025(0xc9)](_0x194f81)[_0xdd9025(0xb0)](_0x43bf79['id']),_0x1e590d[_0xdd9025(0xc7)](_0x402fa3['id'])&&!this[_0xdd9025(0xcd)](_0x402fa3,_0x194f81)[_0xdd9025(0xcc)]&&_0x1e590d[_0xdd9025(0xb0)](_0x402fa3['id']),this[_0xdd9025(0xc0)][_0xdd9025(0xc9)](_0x402fa3['id'])&&!this[_0xdd9025(0xcd)](_0x402fa3)[_0xdd9025(0xcc)]&&this[_0xdd9025(0xc0)][_0xdd9025(0xb0)](_0x402fa3['id']));}[_0x591f59(0xd1)](_0x5c5c25,_0x2c2bab){const _0x151c53=_0x591f59,_0x3359fd=this[_0x151c53(0xe8)][_0x151c53(0xce)](_0x5c5c25);return _0x2c2bab&&this[_0x151c53(0xe8)][_0x151c53(0xd3)](_0x5c5c25['id']),_0x3359fd[_0x151c53(0xdf)]=this[_0x151c53(0xab)]++,_0x3359fd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x472362=_0x3493;(function(_0x38597b,_0x1aaf22){const _0x34bbf7=_0x3493,_0x1c59c3=_0x38597b();while(!![]){try{const _0x38baa5=parseInt(_0x34bbf7(0x142))/0x1+parseInt(_0x34bbf7(0x150))/0x2*(parseInt(_0x34bbf7(0x118))/0x3)+parseInt(_0x34bbf7(0x15d))/0x4*(parseInt(_0x34bbf7(0x134))/0x5)+-parseInt(_0x34bbf7(0x12c))/0x6*(parseInt(_0x34bbf7(0x13e))/0x7)+parseInt(_0x34bbf7(0x195))/0x8+parseInt(_0x34bbf7(0x163))/0x9*(-parseInt(_0x34bbf7(0x139))/0xa)+-parseInt(_0x34bbf7(0x123))/0xb;if(_0x38baa5===_0x1aaf22)break;else _0x1c59c3['push'](_0x1c59c3['shift']());}catch(_0x3234e8){_0x1c59c3['push'](_0x1c59c3['shift']());}}}(_0x3409,0x8bc23));import{Plugin as _0xf2e478}from'ckeditor5/src/core.js';import{global as _0x19393c,DomEmitterMixin as _0x47f173}from'ckeditor5/src/utils.js';import{Sessions as _0x2dd860}from'./sessions.js';import{ModelLiveRange as _0x7b0f44}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0xf2e478{[_0x472362(0x18c)]=new(_0x47f173())();static get[_0x472362(0x17f)](){return[_0x2dd860];}static get[_0x472362(0x174)](){const _0x41f7f7=_0x472362;return _0x41f7f7(0x141);}static get[_0x472362(0x179)](){return!0x0;}static get[_0x472362(0x193)](){return!0x0;}[_0x472362(0x190)](){const _0x3639a2=_0x472362,_0x16fd82=this[_0x3639a2(0x144)],_0x27a764=_0x16fd82[_0x3639a2(0x198)][_0x3639a2(0x180)](_0x2dd860);_0x16fd82[_0x3639a2(0x148)][_0x3639a2(0x125)](_0x3639a2(0x129))[_0x3639a2(0x133)]({'model':_0x3639a2(0x17b),'view':(_0x1424ff,{writer:_0x253519})=>function(_0x169b90,_0x476bda,_0x268d74,_0x523048){const _0x59807c=_0x3639a2,_0x56ef22=_0x169b90[_0x59807c(0x115)][_0x59807c(0x18d)](':')[0x2],_0x4adc87=_0x268d74[_0x59807c(0x177)](_0x56ef22);if(!_0x4adc87||_0x56ef22===_0x268d74[_0x59807c(0x196)])return;if(!_0x523048[_0x59807c(0x199)][_0x59807c(0x175)][_0x59807c(0x15a)](_0x169b90[_0x59807c(0x140)][_0x59807c(0x136)],_0x59807c(0x152)))return;const _0x5a4fda={'class':_0x59807c(0x11c)+_0x4adc87[_0x59807c(0x155)][_0x59807c(0x11d)](),'data-name':_0x4adc87[_0x59807c(0x187)],'data-session-id':_0x56ef22},_0x403d52=_0x523048[_0x59807c(0x199)][_0x59807c(0x161)][_0x59807c(0x180)](_0x169b90[_0x59807c(0x115)]),_0x98671a=_0x403d52[_0x59807c(0x165)](),_0x164b19=_0x98671a[_0x59807c(0x160)],_0x5a0c48=_0x523048[_0x59807c(0x199)][_0x59807c(0x175)];if(_0x164b19&&_0x5a0c48[_0x59807c(0x135)](_0x164b19)&&_0x5a0c48[_0x59807c(0x145)](_0x164b19)&&!_0x523048[_0x59807c(0x199)][_0x59807c(0x161)][_0x59807c(0x180)](_0x59807c(0x12e)+_0x56ef22)[_0x59807c(0x17c)]()[_0x59807c(0x11b)])return;const _0x1f9a0f=_0x98671a[_0x59807c(0x11a)];return _0x523048[_0x59807c(0x199)][_0x59807c(0x175)][_0x59807c(0x113)](_0x1f9a0f)&&!_0x523048[_0x59807c(0x199)][_0x59807c(0x11f)](_0x1f9a0f)&&(_0x5a4fda[_0x59807c(0x166)]=!0x1),function(_0x5f2df9,_0x521099,_0x5d25f7){const _0x57cd96=_0x59807c,_0x5593ee=_0x5f2df9[_0x57cd96(0x14e)](_0x57cd96(0x164),_0x521099);return _0x5f2df9[_0x57cd96(0x12b)](_0x57cd96(0x173),!0x0,_0x5593ee),_0x5593ee[_0x57cd96(0x149)]=function(_0x400d2d){const _0x4629fe=_0x57cd96,_0x4f903c=this[_0x4629fe(0x13d)](_0x400d2d),_0x5524f0=document[_0x4629fe(0x119)](_0x4629fe(0x164));return _0x5524f0[_0x4629fe(0x154)][_0x4629fe(0x14b)](_0x4629fe(0x143)),_0x5524f0[_0x4629fe(0x19c)](_0x4629fe(0x166),_0x4629fe(0x153)),_0x5524f0[_0x4629fe(0x19c)](_0x4629fe(0x122),_0x4629fe(0x153)),_0x5524f0[_0x4629fe(0x151)]=_0x5d25f7[_0x4629fe(0x187)],_0x4f903c[_0x4629fe(0x121)]=_0x4629fe(0x16a)+_0x5524f0[_0x4629fe(0x124)]+'',_0x4f903c[_0x4629fe(0x138)](_0x4629fe(0x111),()=>{const _0x213e00=_0x4629fe;_0x4f903c[_0x213e00(0x154)][_0x213e00(0x14b)](_0x213e00(0x18b));}),_0x4f903c[_0x4629fe(0x138)](_0x4629fe(0x137),()=>{const _0x19791c=_0x4629fe;_0x4f903c[_0x19791c(0x154)][_0x19791c(0x159)](_0x19791c(0x18b));}),_0x4f903c;},_0x5593ee[_0x57cd96(0x16f)]=function(_0x16640a){const _0x3eb3f7=_0x57cd96;return!(!this[_0x3eb3f7(0x18e)](_0x3eb3f7(0x173))||!_0x16640a[_0x3eb3f7(0x18e)](_0x3eb3f7(0x173))||this[_0x3eb3f7(0x146)](_0x3eb3f7(0x192))!=_0x16640a[_0x3eb3f7(0x146)](_0x3eb3f7(0x192)));},_0x5593ee;}(_0x476bda,_0x5a4fda,_0x4adc87);}(_0x1424ff,_0x253519,_0x27a764,_0x16fd82)}),_0x16fd82[_0x3639a2(0x148)][_0x3639a2(0x125)](_0x3639a2(0x129))[_0x3639a2(0x185)]({'model':_0x3639a2(0x178),'view':_0x43f9ea=>function(_0x5e9c45,_0x3536ae){const _0x154223=_0x3639a2,_0x4aa787=_0x5e9c45[_0x154223(0x115)][_0x154223(0x18d)](':')[0x2];if(_0x4aa787===_0x3536ae[_0x154223(0x196)])return null;const _0x585d7e=_0x3536ae[_0x154223(0x177)](_0x4aa787);if(!_0x585d7e)return{'id':_0x4aa787,'classes':[]};return{'id':_0x4aa787,'classes':[_0x154223(0x169),_0x585d7e[_0x154223(0x155)][_0x154223(0x171)]()],'attributes':{'data-session-id':_0x4aa787},'priority':0x7d0+_0x585d7e[_0x154223(0x170)]};}(_0x43f9ea,_0x27a764)}),function(_0x2718a6){const _0x222931=_0x3639a2,_0x4d7057=_0x2718a6[_0x222931(0x199)],_0x1a98e0=new Map(),_0x93e04d=_0x2718a6[_0x222931(0x198)][_0x222931(0x180)](_0x2dd860);_0x4d7057[_0x222931(0x161)]['on'](_0x222931(0x189),(_0x2fdfbf,_0x2f3bbd,_0x5ea1cc,_0x1a00bb)=>{const _0x574e2a=_0x222931;if(!_0x1a00bb&&_0x1a98e0[_0x574e2a(0x180)](_0x2f3bbd[_0x574e2a(0x187)]))return _0x1a98e0[_0x574e2a(0x180)](_0x2f3bbd[_0x574e2a(0x187)])[_0x574e2a(0x183)](),void _0x1a98e0[_0x574e2a(0x147)](_0x2f3bbd[_0x574e2a(0x187)]);const _0xa62d6f=_0x2f3bbd[_0x574e2a(0x187)][_0x574e2a(0x18d)](':')[0x2];if(_0xa62d6f===_0x93e04d[_0x574e2a(0x196)])return;const _0x54a5d1=_0x574e2a(0x17e)+_0xa62d6f;_0x4d7057[_0x574e2a(0x161)][_0x574e2a(0x17d)](_0x54a5d1)&&_0x2718a6[_0x574e2a(0x14c)][_0x574e2a(0x182)](_0x54a5d1),_0x2f3bbd['on'](_0x574e2a(0x184),(_0x54f3f3,_0x49683f,_0x1ca819)=>{const _0xede33a=_0x574e2a;if(_0xede33a(0x186)!=_0x49683f[_0xede33a(0x13f)][_0xede33a(0x158)]&&_0xede33a(0x186)==_0x2f3bbd[_0xede33a(0x17c)]()[_0xede33a(0x13f)][_0xede33a(0x158)]&&!_0x1a98e0[_0xede33a(0x17d)](_0x2f3bbd[_0xede33a(0x187)])){const _0x4f66bb=_0x4d7057[_0xede33a(0x175)][_0xede33a(0x114)](_0x1ca819[_0xede33a(0x15e)]);if(_0x4f66bb){const _0xc566ec=_0x7b0f44[_0xede33a(0x13a)](_0x4f66bb);_0x1a98e0[_0xede33a(0x12d)](_0x2f3bbd[_0xede33a(0x187)],_0xc566ec),_0xc566ec['on'](_0xede33a(0x184),(_0x38e0fa,_0x486210,_0x582d1a)=>{const _0x40b37b=_0xede33a;if(_0x40b37b(0x186)==_0xc566ec[_0x40b37b(0x13f)][_0x40b37b(0x158)]){const _0x1a154d=_0x4d7057[_0x40b37b(0x175)][_0x40b37b(0x114)](_0x582d1a[_0x40b37b(0x15e)]);_0x1a154d?(_0xc566ec[_0x40b37b(0x136)]=_0x1a154d[_0x40b37b(0x136)],_0xc566ec[_0x40b37b(0x19b)]=_0x1a154d[_0x40b37b(0x19b)]):(_0x1a98e0[_0x40b37b(0x147)](_0x2f3bbd[_0x40b37b(0x187)]),_0xc566ec[_0x40b37b(0x183)]());}});}}});}),_0x4d7057[_0x222931(0x16b)]['on'](_0x222931(0x128),()=>{const _0x4bf6a6=_0x222931;_0x1a98e0[_0x4bf6a6(0x16e)]>0x0&&_0x4d7057[_0x4bf6a6(0x172)]({'isUndoable':!0x1},_0x5506b3=>{const _0x2798b1=_0x4bf6a6;for(const [_0x5e3a39,_0x54272c]of _0x1a98e0)_0x2798b1(0x186)==_0x4d7057[_0x2798b1(0x161)][_0x2798b1(0x180)](_0x5e3a39)[_0x2798b1(0x17c)]()[_0x2798b1(0x13f)][_0x2798b1(0x158)]&&(te(_0x5e3a39[_0x2798b1(0x18d)](':')[0x2],_0x54272c[_0x2798b1(0x15f)](),_0x4d7057,_0x5506b3),_0x54272c[_0x2798b1(0x183)]());_0x1a98e0[_0x2798b1(0x181)]();});});}(_0x16fd82),this[_0x3639a2(0x18c)][_0x3639a2(0x12f)](_0x19393c[_0x3639a2(0x16b)],_0x3639a2(0x130),(_0x1678af,{key:_0x1bbd6d})=>{const _0x4a5ed3=_0x3639a2;_0x4a5ed3(0x168)===_0x1bbd6d&&function(_0x292729){const _0x45ed28=_0x4a5ed3;_0x292729[_0x45ed28(0x14c)][_0x45ed28(0x127)][_0x45ed28(0x128)](_0xa3215a=>{const _0x224cda=_0x45ed28;for(const _0x4eac39 of _0x292729[_0x224cda(0x199)][_0x224cda(0x161)]){if(!_0x4eac39[_0x224cda(0x187)][_0x224cda(0x112)](_0x224cda(0x17b)))continue;const _0x76a82a=_0x292729[_0x224cda(0x14c)][_0x224cda(0x126)][_0x224cda(0x16c)](_0x4eac39[_0x224cda(0x187)]);if(_0x76a82a){for(const _0x291475 of _0x76a82a)_0xa3215a[_0x224cda(0x12a)](_0x224cda(0x18b),_0x291475);}}});}(_0x16fd82);},{'useCapture':!0x0});}[_0x472362(0x116)](){const _0x9d8de9=_0x472362,_0x33e7e4=this[_0x9d8de9(0x144)],_0x2384ab=_0x33e7e4[_0x9d8de9(0x117)][_0x9d8de9(0x180)](_0x9d8de9(0x14d));_0x2384ab&&_0x33e7e4[_0x9d8de9(0x199)]['on'](_0x9d8de9(0x11e),(_0xc4888a,_0x55ccbb)=>{const _0x1460d9=_0x9d8de9,_0x141e12=_0x55ccbb[0x0];if(!_0x141e12[_0x1460d9(0x18a)])return;if(_0x1460d9(0x15c)!=_0x141e12[_0x1460d9(0x13c)]||!_0x141e12[_0x1460d9(0x187)][_0x1460d9(0x112)](_0x1460d9(0x194)))return;const _0x4fb44=_0x141e12[_0x1460d9(0x14f)];_0x2384ab[_0x1460d9(0x157)][_0x1460d9(0x17d)](_0x4fb44)&&(_0x141e12[_0x1460d9(0x191)]=_0x141e12[_0x1460d9(0x176)]?_0x33e7e4[_0x1460d9(0x199)][_0x1460d9(0x197)](_0x141e12[_0x1460d9(0x176)][_0x1460d9(0x136)],_0x141e12[_0x1460d9(0x176)][_0x1460d9(0x19b)]):null);},{'priority':_0x9d8de9(0x156)});}[_0x472362(0x120)](){const _0x27a624=_0x472362;return this[_0x27a624(0x18c)][_0x27a624(0x17a)](),super[_0x27a624(0x120)]();}[_0x472362(0x13b)](){const _0x3be790=_0x472362,_0x506e6b=this[_0x3be790(0x144)],_0x5b556c=_0x506e6b[_0x3be790(0x199)][_0x3be790(0x16b)],_0x44bc88=_0x506e6b[_0x3be790(0x198)][_0x3be790(0x180)](_0x2dd860);_0x506e6b[_0x3be790(0x199)][_0x3be790(0x172)]({'isUndoable':!0x1},_0x400817=>{const _0x248714=_0x3be790,_0x468f00=_0x248714(0x12e)+_0x44bc88[_0x248714(0x196)],_0xb3cec0=_0x248714(0x17e)+_0x44bc88[_0x248714(0x196)],_0x2f9ce2=_0x506e6b[_0x248714(0x199)][_0x248714(0x161)][_0x248714(0x17d)](_0x468f00);_0x506e6b[_0x248714(0x14c)][_0x248714(0x127)][_0x248714(0x14a)]?te(_0x44bc88[_0x248714(0x196)],_0x5b556c[_0x248714(0x19a)][_0x248714(0x162)](),_0x506e6b[_0x248714(0x199)],_0x400817):_0x2f9ce2&&(_0x400817[_0x248714(0x132)](_0x468f00),_0x400817[_0x248714(0x132)](_0xb3cec0));});}}function _0x3409(){const _0x282fea=['setCustomProperty','1146JRfJJV','set','user:range:','listenTo','keydown','addMarker','removeMarker','markerToElement','5ZGQArK','isObject','start','mouseleave','addEventListener','3665940JqpOiw','fromRange','createUserMarkerOperations','type','toDomElement','11291TVguVW','root','markerRange','UserMarkers','571399LHwiIW','ck-user__marker-tooltip','editor','isInline','getAttribute','delete','conversion','render','hasDomSelection','add','editing','undo','createUIElement','batch','2vQZtkt','textContent','$text','false','classList','color','highest','_createdBatches','rootName','remove','checkChild','getContainedElement','marker','2590084hOxxhh','deletionPosition','toRange','nodeAfter','markers','getFirstRange','9RlLvRI','span','getStart','contenteditable','tableCell','Escape','ck-user__selection','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','document','markerNameToElements','getPositions','size','isSimilar','orderNumber','getSelectionClass','enqueueChange','userPositionMarker','pluginName','schema','oldRange','getUserBySessionId','user:range','isOfficialPlugin','stopListening','user:position','getRange','has','user:position:','requires','get','clear','reconvertMarker','detach','change:range','markerToHighlight','$graveyard','name','updateMarker','update:user:range','isDocumentOperation','ck-user__marker_hovered','_domEmitter','split','getCustomProperty','element','init','newRange','data-session-id','isPremiumPlugin','user:','3251368DsPYGV','mySessionId','createRange','plugins','model','selection','end','setAttribute','mouseenter','startsWith','isLimit','getNearestSelectionRange','markerName','afterInit','commands','2339637RMJWRD','createElement','parent','isCollapsed','ck-user__marker\x20','getMarkerClass','applyOperation','hasContent','destroy','innerHTML','spellcheck','12739012akbESv','outerHTML','for','mapper','view','change','editingDowncast','removeClass'];_0x3409=function(){return _0x282fea;};return _0x3409();}function _0x3493(_0x309907,_0x51dd2d){const _0x3409fe=_0x3409();return _0x3493=function(_0x349354,_0x2dd593){_0x349354=_0x349354-0x111;let _0x6ced9c=_0x3409fe[_0x349354];return _0x6ced9c;},_0x3493(_0x309907,_0x51dd2d);}function te(_0x49776f,_0x18ee67,_0x38464f,_0x47cfdc){const _0x2b2892=_0x472362,_0x658121=_0x2b2892(0x12e)+_0x49776f,_0x1a8532=_0x2b2892(0x17e)+_0x49776f,_0xeb71e0=_0x18ee67[_0x2b2892(0x15b)]();let _0x109208=_0x18ee67[_0x2b2892(0x136)];if(_0xeb71e0&&_0xeb71e0['is'](_0x2b2892(0x18f),_0x2b2892(0x167))){const _0x36e3ab=function(_0x32b601,_0x4680a7){const _0x519c96=_0x2b2892;for(const _0xb7a1be of _0x32b601[_0x519c96(0x16d)]())if(_0x4680a7[_0x519c96(0x175)][_0x519c96(0x15a)](_0xb7a1be,_0x519c96(0x152)))return _0xb7a1be;}(_0x18ee67,_0x38464f);_0x36e3ab&&(_0x109208=_0x36e3ab,_0x18ee67=_0x47cfdc[_0x2b2892(0x197)](_0x109208));}const _0x568fc6=_0x47cfdc[_0x2b2892(0x197)](_0x109208);_0x38464f[_0x2b2892(0x161)][_0x2b2892(0x17d)](_0x658121)?(_0x47cfdc[_0x2b2892(0x188)](_0x658121,{'range':_0x18ee67}),_0x47cfdc[_0x2b2892(0x188)](_0x1a8532,{'range':_0x568fc6})):(_0x47cfdc[_0x2b2892(0x131)](_0x658121,{'range':_0x18ee67,'usingOperation':!0x0}),_0x47cfdc[_0x2b2892(0x131)](_0x1a8532,{'range':_0x568fc6,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x4dc73e=_0x2606;(function(_0x66c2e6,_0x38aff1){const _0x1173cc=_0x2606,_0x5dcdfe=_0x66c2e6();while(!![]){try{const _0x313510=parseInt(_0x1173cc(0x124))/0x1*(-parseInt(_0x1173cc(0xa2))/0x2)+parseInt(_0x1173cc(0xad))/0x3*(parseInt(_0x1173cc(0xaf))/0x4)+-parseInt(_0x1173cc(0x9a))/0x5*(parseInt(_0x1173cc(0xba))/0x6)+-parseInt(_0x1173cc(0xab))/0x7*(parseInt(_0x1173cc(0x10f))/0x8)+parseInt(_0x1173cc(0xe7))/0x9+-parseInt(_0x1173cc(0xb2))/0xa+parseInt(_0x1173cc(0x10e))/0xb*(parseInt(_0x1173cc(0xc7))/0xc);if(_0x313510===_0x38aff1)break;else _0x5dcdfe['push'](_0x5dcdfe['shift']());}catch(_0x5db779){_0x5dcdfe['push'](_0x5dcdfe['shift']());}}}(_0x1c3c,0xbc350));function _0x2606(_0x34797c,_0x185697){const _0x1c3cc4=_0x1c3c();return _0x2606=function(_0x2606af,_0x57dff4){_0x2606af=_0x2606af-0x9a;let _0x573000=_0x1c3cc4[_0x2606af];return _0x573000;},_0x2606(_0x34797c,_0x185697);}import{Plugin as _0x385076}from'ckeditor5/src/core.js';import{global as _0x2e766f,DomEmitterMixin as _0x495d29}from'ckeditor5/src/utils.js';import{Sessions as _0x3cf3a4}from'./sessions.js';import{ModelLiveRange as _0x458403}from'ckeditor5/src/engine.js';function _0x1c3c(){const _0x4f727e=['reconvertMarker','createElement','createUserMarkerOperations','textContent','getNearestSelectionRange','markerToElement','mouseenter','split','span','schema','size','84327DGHAee','mouseleave','isLimit','5PppJDa','spellcheck','parent','editor','hasContent','detach','false','type','18URBkZC','view','toDomElement','user:range','init','markerToHighlight','ck-user__selection','Escape','userPositionMarker','119yInbGl','user:','3UZIAIV','element','4629288lUjXgs','checkChild','mapper','11335590XnfuPQ','highest','update:user:range','classList','contenteditable','applyOperation','model','pluginName','5682426WJyBtg','isCollapsed','tableCell','rootName','hasDomSelection','markers','nodeAfter','getRange','fromRange','for','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','plugins','batch','300KdDZoP','getContainedElement','getCustomProperty','$text','change','user:range:','isInline','getSelectionClass','markerName','isDocumentOperation','enqueueChange','outerHTML','name','commands','oldRange','listenTo','markerNameToElements','editingDowncast','document','isPremiumPlugin','markerRange','user:position:','getStart','clear','innerHTML','startsWith','render','add','createRange','root','color','toRange','9250317lGtYWT','mySessionId','ck-user__marker-tooltip','start','getFirstRange','end','ck-user__marker_hovered','getUserBySessionId','isObject','addMarker','isOfficialPlugin','change:range','newRange','set','remove','_domEmitter','removeMarker','getAttribute','get','undo','editing','selection','setAttribute','destroy','ck-user__marker\x20','keydown','getPositions','UserMarkers','updateMarker','stopListening','removeClass','orderNumber','_createdBatches','data-session-id','requires','deletionPosition','afterInit','delete','user:position','858638fcHdwN','247584McRCVX','marker','$graveyard','setCustomProperty','addEventListener','isSimilar','has','conversion','createUIElement','getMarkerClass'];_0x1c3c=function(){return _0x4f727e;};return _0x1c3c();}import'../../theme/usermarkers.css';export class UserMarkers extends _0x385076{[_0x4dc73e(0xf6)]=new(_0x495d29())();static get[_0x4dc73e(0x109)](){return[_0x3cf3a4];}static get[_0x4dc73e(0xb9)](){const _0x1e950d=_0x4dc73e;return _0x1e950d(0x102);}static get[_0x4dc73e(0xf1)](){return!0x0;}static get[_0x4dc73e(0xda)](){return!0x0;}[_0x4dc73e(0xa6)](){const _0x1026bc=_0x4dc73e,_0x4f4017=this[_0x1026bc(0x9d)],_0x593861=_0x4f4017[_0x1026bc(0xc5)][_0x1026bc(0xf9)](_0x3cf3a4);_0x4f4017[_0x1026bc(0x116)][_0x1026bc(0xc3)](_0x1026bc(0xd8))[_0x1026bc(0x11e)]({'model':_0x1026bc(0x10d),'view':(_0xd9578a,{writer:_0x17a921})=>function(_0x330188,_0x3ddded,_0x390f2a,_0x3227c8){const _0x267e8b=_0x1026bc,_0x2f9317=_0x330188[_0x267e8b(0xcf)][_0x267e8b(0x120)](':')[0x2],_0x3c3b7f=_0x390f2a[_0x267e8b(0xee)](_0x2f9317);if(!_0x3c3b7f||_0x2f9317===_0x390f2a[_0x267e8b(0xe8)])return;if(!_0x3227c8[_0x267e8b(0xb8)][_0x267e8b(0x122)][_0x267e8b(0xb0)](_0x330188[_0x267e8b(0xdb)][_0x267e8b(0xea)],_0x267e8b(0xca)))return;const _0x1b81f5={'class':_0x267e8b(0xff)+_0x3c3b7f[_0x267e8b(0xe5)][_0x267e8b(0x118)](),'data-name':_0x3c3b7f[_0x267e8b(0xd3)],'data-session-id':_0x2f9317},_0x5536b2=_0x3227c8[_0x267e8b(0xb8)][_0x267e8b(0xbf)][_0x267e8b(0xf9)](_0x330188[_0x267e8b(0xcf)]),_0x3a1784=_0x5536b2[_0x267e8b(0xdd)](),_0x4b6fbf=_0x3a1784[_0x267e8b(0xc0)],_0xa91484=_0x3227c8[_0x267e8b(0xb8)][_0x267e8b(0x122)];if(_0x4b6fbf&&_0xa91484[_0x267e8b(0xef)](_0x4b6fbf)&&_0xa91484[_0x267e8b(0xcd)](_0x4b6fbf)&&!_0x3227c8[_0x267e8b(0xb8)][_0x267e8b(0xbf)][_0x267e8b(0xf9)](_0x267e8b(0xcc)+_0x2f9317)[_0x267e8b(0xc1)]()[_0x267e8b(0xbb)])return;const _0x2028ec=_0x3a1784[_0x267e8b(0x9c)];return _0x3227c8[_0x267e8b(0xb8)][_0x267e8b(0x122)][_0x267e8b(0x126)](_0x2028ec)&&!_0x3227c8[_0x267e8b(0xb8)][_0x267e8b(0x9e)](_0x2028ec)&&(_0x1b81f5[_0x267e8b(0xb6)]=!0x1),function(_0x594cf7,_0x4ee2d9,_0x5f0d06){const _0x5ad4f1=_0x267e8b,_0x278856=_0x594cf7[_0x5ad4f1(0x117)](_0x5ad4f1(0x121),_0x4ee2d9);return _0x594cf7[_0x5ad4f1(0x112)](_0x5ad4f1(0xaa),!0x0,_0x278856),_0x278856[_0x5ad4f1(0xe1)]=function(_0x1d8f7b){const _0x590f02=_0x5ad4f1,_0x651d8a=this[_0x590f02(0xa4)](_0x1d8f7b),_0xafa041=document[_0x590f02(0x11a)](_0x590f02(0x121));return _0xafa041[_0x590f02(0xb5)][_0x590f02(0xe2)](_0x590f02(0xe9)),_0xafa041[_0x590f02(0xfd)](_0x590f02(0xb6),_0x590f02(0xa0)),_0xafa041[_0x590f02(0xfd)](_0x590f02(0x9b),_0x590f02(0xa0)),_0xafa041[_0x590f02(0x11c)]=_0x5f0d06[_0x590f02(0xd3)],_0x651d8a[_0x590f02(0xdf)]=_0x590f02(0xc4)+_0xafa041[_0x590f02(0xd2)]+'',_0x651d8a[_0x590f02(0x113)](_0x590f02(0x11f),()=>{const _0x69e3c7=_0x590f02;_0x651d8a[_0x69e3c7(0xb5)][_0x69e3c7(0xe2)](_0x69e3c7(0xed));}),_0x651d8a[_0x590f02(0x113)](_0x590f02(0x125),()=>{const _0x37d5bb=_0x590f02;_0x651d8a[_0x37d5bb(0xb5)][_0x37d5bb(0xf5)](_0x37d5bb(0xed));}),_0x651d8a;},_0x278856[_0x5ad4f1(0x114)]=function(_0x57ffc4){const _0xf0f5d1=_0x5ad4f1;return!(!this[_0xf0f5d1(0xc9)](_0xf0f5d1(0xaa))||!_0x57ffc4[_0xf0f5d1(0xc9)](_0xf0f5d1(0xaa))||this[_0xf0f5d1(0xf8)](_0xf0f5d1(0x108))!=_0x57ffc4[_0xf0f5d1(0xf8)](_0xf0f5d1(0x108)));},_0x278856;}(_0x3ddded,_0x1b81f5,_0x3c3b7f);}(_0xd9578a,_0x17a921,_0x593861,_0x4f4017)}),_0x4f4017[_0x1026bc(0x116)][_0x1026bc(0xc3)](_0x1026bc(0xd8))[_0x1026bc(0xa7)]({'model':_0x1026bc(0xa5),'view':_0x1f4702=>function(_0xae540f,_0x4ecbc3){const _0x45d3e3=_0x1026bc,_0xfcdb73=_0xae540f[_0x45d3e3(0xcf)][_0x45d3e3(0x120)](':')[0x2];if(_0xfcdb73===_0x4ecbc3[_0x45d3e3(0xe8)])return null;const _0x463f68=_0x4ecbc3[_0x45d3e3(0xee)](_0xfcdb73);if(!_0x463f68)return{'id':_0xfcdb73,'classes':[]};return{'id':_0xfcdb73,'classes':[_0x45d3e3(0xa8),_0x463f68[_0x45d3e3(0xe5)][_0x45d3e3(0xce)]()],'attributes':{'data-session-id':_0xfcdb73},'priority':0x7d0+_0x463f68[_0x45d3e3(0x106)]};}(_0x1f4702,_0x593861)}),function(_0x1d1011){const _0x20e342=_0x1026bc,_0x3cee38=_0x1d1011[_0x20e342(0xb8)],_0x190e91=new Map(),_0x101b7b=_0x1d1011[_0x20e342(0xc5)][_0x20e342(0xf9)](_0x3cf3a4);_0x3cee38[_0x20e342(0xbf)]['on'](_0x20e342(0xb4),(_0x3f0cea,_0x8375d4,_0x253507,_0x46ca23)=>{const _0x53eb09=_0x20e342;if(!_0x46ca23&&_0x190e91[_0x53eb09(0xf9)](_0x8375d4[_0x53eb09(0xd3)]))return _0x190e91[_0x53eb09(0xf9)](_0x8375d4[_0x53eb09(0xd3)])[_0x53eb09(0x9f)](),void _0x190e91[_0x53eb09(0x10c)](_0x8375d4[_0x53eb09(0xd3)]);const _0x132354=_0x8375d4[_0x53eb09(0xd3)][_0x53eb09(0x120)](':')[0x2];if(_0x132354===_0x101b7b[_0x53eb09(0xe8)])return;const _0xb7e7d9=_0x53eb09(0xdc)+_0x132354;_0x3cee38[_0x53eb09(0xbf)][_0x53eb09(0x115)](_0xb7e7d9)&&_0x1d1011[_0x53eb09(0xfb)][_0x53eb09(0x119)](_0xb7e7d9),_0x8375d4['on'](_0x53eb09(0xf2),(_0x230123,_0x41562c,_0x4683cc)=>{const _0x5aa70f=_0x53eb09;if(_0x5aa70f(0x111)!=_0x41562c[_0x5aa70f(0xe4)][_0x5aa70f(0xbd)]&&_0x5aa70f(0x111)==_0x8375d4[_0x5aa70f(0xc1)]()[_0x5aa70f(0xe4)][_0x5aa70f(0xbd)]&&!_0x190e91[_0x5aa70f(0x115)](_0x8375d4[_0x5aa70f(0xd3)])){const _0x199271=_0x3cee38[_0x5aa70f(0x122)][_0x5aa70f(0x11d)](_0x4683cc[_0x5aa70f(0x10a)]);if(_0x199271){const _0x5afee1=_0x458403[_0x5aa70f(0xc2)](_0x199271);_0x190e91[_0x5aa70f(0xf4)](_0x8375d4[_0x5aa70f(0xd3)],_0x5afee1),_0x5afee1['on'](_0x5aa70f(0xf2),(_0x4618a3,_0x3e8ce5,_0x1ba8ca)=>{const _0x193fea=_0x5aa70f;if(_0x193fea(0x111)==_0x5afee1[_0x193fea(0xe4)][_0x193fea(0xbd)]){const _0x11e272=_0x3cee38[_0x193fea(0x122)][_0x193fea(0x11d)](_0x1ba8ca[_0x193fea(0x10a)]);_0x11e272?(_0x5afee1[_0x193fea(0xea)]=_0x11e272[_0x193fea(0xea)],_0x5afee1[_0x193fea(0xec)]=_0x11e272[_0x193fea(0xec)]):(_0x190e91[_0x193fea(0x10c)](_0x8375d4[_0x193fea(0xd3)]),_0x5afee1[_0x193fea(0x9f)]());}});}}});}),_0x3cee38[_0x20e342(0xd9)]['on'](_0x20e342(0xcb),()=>{const _0x29d42b=_0x20e342;_0x190e91[_0x29d42b(0x123)]>0x0&&_0x3cee38[_0x29d42b(0xd1)]({'isUndoable':!0x1},_0x23707a=>{const _0x3a5066=_0x29d42b;for(const [_0x531075,_0x50813f]of _0x190e91)_0x3a5066(0x111)==_0x3cee38[_0x3a5066(0xbf)][_0x3a5066(0xf9)](_0x531075)[_0x3a5066(0xc1)]()[_0x3a5066(0xe4)][_0x3a5066(0xbd)]&&(J(_0x531075[_0x3a5066(0x120)](':')[0x2],_0x50813f[_0x3a5066(0xe6)](),_0x3cee38,_0x23707a),_0x50813f[_0x3a5066(0x9f)]());_0x190e91[_0x3a5066(0xde)]();});});}(_0x4f4017),this[_0x1026bc(0xf6)][_0x1026bc(0xd6)](_0x2e766f[_0x1026bc(0xd9)],_0x1026bc(0x100),(_0x171e7a,{key:_0x3cf08c})=>{const _0x3bebf7=_0x1026bc;_0x3bebf7(0xa9)===_0x3cf08c&&function(_0x335308){const _0x5606d6=_0x3bebf7;_0x335308[_0x5606d6(0xfb)][_0x5606d6(0xa3)][_0x5606d6(0xcb)](_0x11955a=>{const _0x275424=_0x5606d6;for(const _0x49a412 of _0x335308[_0x275424(0xb8)][_0x275424(0xbf)]){if(!_0x49a412[_0x275424(0xd3)][_0x275424(0xe0)](_0x275424(0x10d)))continue;const _0xb7a4fe=_0x335308[_0x275424(0xfb)][_0x275424(0xb1)][_0x275424(0xd7)](_0x49a412[_0x275424(0xd3)]);if(_0xb7a4fe){for(const _0x5b7fa1 of _0xb7a4fe)_0x11955a[_0x275424(0x105)](_0x275424(0xed),_0x5b7fa1);}}});}(_0x4f4017);},{'useCapture':!0x0});}[_0x4dc73e(0x10b)](){const _0x554e34=_0x4dc73e,_0x5b278b=this[_0x554e34(0x9d)],_0x36fbe9=_0x5b278b[_0x554e34(0xd4)][_0x554e34(0xf9)](_0x554e34(0xfa));_0x36fbe9&&_0x5b278b[_0x554e34(0xb8)]['on'](_0x554e34(0xb7),(_0x1194ea,_0x12d360)=>{const _0x48159f=_0x554e34,_0x316cbf=_0x12d360[0x0];if(!_0x316cbf[_0x48159f(0xd0)])return;if(_0x48159f(0x110)!=_0x316cbf[_0x48159f(0xa1)]||!_0x316cbf[_0x48159f(0xd3)][_0x48159f(0xe0)](_0x48159f(0xac)))return;const _0x1ced4d=_0x316cbf[_0x48159f(0xc6)];_0x36fbe9[_0x48159f(0x107)][_0x48159f(0x115)](_0x1ced4d)&&(_0x316cbf[_0x48159f(0xf3)]=_0x316cbf[_0x48159f(0xd5)]?_0x5b278b[_0x48159f(0xb8)][_0x48159f(0xe3)](_0x316cbf[_0x48159f(0xd5)][_0x48159f(0xea)],_0x316cbf[_0x48159f(0xd5)][_0x48159f(0xec)]):null);},{'priority':_0x554e34(0xb3)});}[_0x4dc73e(0xfe)](){const _0x5d6db2=_0x4dc73e;return this[_0x5d6db2(0xf6)][_0x5d6db2(0x104)](),super[_0x5d6db2(0xfe)]();}[_0x4dc73e(0x11b)](){const _0x5a82d0=_0x4dc73e,_0x42917a=this[_0x5a82d0(0x9d)],_0x126bc4=_0x42917a[_0x5a82d0(0xb8)][_0x5a82d0(0xd9)],_0x2577e0=_0x42917a[_0x5a82d0(0xc5)][_0x5a82d0(0xf9)](_0x3cf3a4);_0x42917a[_0x5a82d0(0xb8)][_0x5a82d0(0xd1)]({'isUndoable':!0x1},_0x1eaa66=>{const _0x139e8c=_0x5a82d0,_0x93a60d=_0x139e8c(0xcc)+_0x2577e0[_0x139e8c(0xe8)],_0x38d008=_0x139e8c(0xdc)+_0x2577e0[_0x139e8c(0xe8)],_0x14111e=_0x42917a[_0x139e8c(0xb8)][_0x139e8c(0xbf)][_0x139e8c(0x115)](_0x93a60d);_0x42917a[_0x139e8c(0xfb)][_0x139e8c(0xa3)][_0x139e8c(0xbe)]?J(_0x2577e0[_0x139e8c(0xe8)],_0x126bc4[_0x139e8c(0xfc)][_0x139e8c(0xeb)](),_0x42917a[_0x139e8c(0xb8)],_0x1eaa66):_0x14111e&&(_0x1eaa66[_0x139e8c(0xf7)](_0x93a60d),_0x1eaa66[_0x139e8c(0xf7)](_0x38d008));});}}function J(_0x5b443b,_0x21d75e,_0x163752,_0x3b546b){const _0x35c212=_0x4dc73e,_0x43ffd0=_0x35c212(0xcc)+_0x5b443b,_0x3723bd=_0x35c212(0xdc)+_0x5b443b,_0x4e0821=_0x21d75e[_0x35c212(0xc8)]();let _0x51ecdd=_0x21d75e[_0x35c212(0xea)];if(_0x4e0821&&_0x4e0821['is'](_0x35c212(0xae),_0x35c212(0xbc))){const _0x387532=function(_0x178818,_0x4349cf){const _0x295833=_0x35c212;for(const _0x26822f of _0x178818[_0x295833(0x101)]())if(_0x4349cf[_0x295833(0x122)][_0x295833(0xb0)](_0x26822f,_0x295833(0xca)))return _0x26822f;}(_0x21d75e,_0x163752);_0x387532&&(_0x51ecdd=_0x387532,_0x21d75e=_0x3b546b[_0x35c212(0xe3)](_0x51ecdd));}const _0x3adbce=_0x3b546b[_0x35c212(0xe3)](_0x51ecdd);_0x163752[_0x35c212(0xbf)][_0x35c212(0x115)](_0x43ffd0)?(_0x3b546b[_0x35c212(0x103)](_0x43ffd0,{'range':_0x21d75e}),_0x3b546b[_0x35c212(0x103)](_0x3723bd,{'range':_0x3adbce})):(_0x3b546b[_0x35c212(0xf0)](_0x43ffd0,{'range':_0x21d75e,'usingOperation':!0x0}),_0x3b546b[_0x35c212(0xf0)](_0x3723bd,{'range':_0x3adbce,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x5f0adc=_0x5b63;(function(_0x35fa41,_0x2fce24){const _0x4c1cb4=_0x5b63,_0x31d195=_0x35fa41();while(!![]){try{const _0x339793=-parseInt(_0x4c1cb4(0xd7))/0x1+parseInt(_0x4c1cb4(0x10c))/0x2+-parseInt(_0x4c1cb4(0x110))/0x3+-parseInt(_0x4c1cb4(0x104))/0x4*(-parseInt(_0x4c1cb4(0xf5))/0x5)+-parseInt(_0x4c1cb4(0xf7))/0x6+parseInt(_0x4c1cb4(0xf1))/0x7+parseInt(_0x4c1cb4(0x10d))/0x8;if(_0x339793===_0x2fce24)break;else _0x31d195['push'](_0x31d195['shift']());}catch(_0x3eab76){_0x31d195['push'](_0x31d195['shift']());}}}(_0x3d79,0x2b652));import{ContextPlugin as _0x12ee89}from'ckeditor5/src/core.js';function _0x3d79(){const _0xec6b32=['set','plugins','offline','CloudServices','1163785IyyMyd','has','DISCONNECTED','listenTo','805745keZwJO','context','574710gXDSKa','_reconnect','all','then','WebSocketGateway','catch','Connected\x20users\x20limit\x20exceeded','cloudservices-reconnection-error','constructor','isInReconnectionStack','_domEmitter','webSocketUrl','define','4sKvVRS','CONNECTING','pluginName','delete','requires','cloudServices.connectionTimeout','cloudServices.requestTimeout','isPremiumPlugin','423698DKVLHW','228928HWvjaN','change:me','addToReconnectionStack','771519zNOxUa','online','showWarning','destroy','stopListening','cloudservices-init','limitExceeded','websocketgateway-invalid-plugin-interface','websocketgateway-plugin-already-registered','disconnect','_reconnectionStack','isOfficialPlugin','token','state','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.','37165YDttPB','error','config','connection','function','reconnect','from','_isBrowserOffline','real-time-collaboration','connect','_shouldPluginsReconnect','connected','removeFromReconnectionStack','websocketgateway-missing-websocket-url','get','code','add','init','bind','initialReconnectionInterval','websocketgateway-missing-token','CONNECTED'];_0x3d79=function(){return _0xec6b32;};return _0x3d79();}import{DomEmitterMixin as _0x4be504,CKEditorError as _0x2c1c7a}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x5ecc87,WEB_SOCKET_GATEWAY_STATES as _0x9b05a1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x3f0ff4}from'ckeditor5/src/ui.js';function _0x5b63(_0xa54546,_0x22fdf3){const _0x3d7957=_0x3d79();return _0x5b63=function(_0x5b6388,_0x390e10){_0x5b6388=_0x5b6388-0xd0;let _0x31c92b=_0x3d7957[_0x5b6388];return _0x31c92b;},_0x5b63(_0xa54546,_0x22fdf3);}class n extends _0x12ee89{static [_0x5f0adc(0xfb)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x5ecc87)());static [_0x5f0adc(0xea)]=0x3e8;[_0x5f0adc(0xda)];[_0x5f0adc(0xd2)];[_0x5f0adc(0xe1)];[_0x5f0adc(0x101)];static get[_0x5f0adc(0x108)](){const _0x4ce5f1=_0x5f0adc;return[_0x4ce5f1(0xf0),_0x3f0ff4];}static get[_0x5f0adc(0x106)](){const _0x4463b7=_0x5f0adc;return _0x4463b7(0xfb);}static get[_0x5f0adc(0xd3)](){return!0x0;}static get[_0x5f0adc(0x10b)](){return!0x0;}constructor(_0x5152f4){const _0x2e3b4a=_0x5f0adc;super(_0x5152f4),this[_0x2e3b4a(0xed)](_0x2e3b4a(0xd5),_0x9b05a1[_0x2e3b4a(0xec)]),this[_0x2e3b4a(0xed)](_0x2e3b4a(0xde),!0x1),this[_0x2e3b4a(0xd2)]=new Set(),this[_0x2e3b4a(0xe1)]=!0x1,this[_0x2e3b4a(0x101)]=new(_0x4be504())();}[_0x5f0adc(0xe8)](){const _0x138d7e=_0x5f0adc,_0x65a084=this[_0x138d7e(0xf6)],_0x323143=_0x65a084[_0x138d7e(0xee)][_0x138d7e(0xe5)](_0x138d7e(0xf0)),_0x1c8efd=_0x65a084[_0x138d7e(0xee)][_0x138d7e(0xe5)](_0x3f0ff4);if(!_0x323143[_0x138d7e(0xd4)])throw new _0x2c1c7a(_0x138d7e(0xeb),this);if(!_0x323143[_0x138d7e(0x102)])throw new _0x2c1c7a(_0x138d7e(0xe4),this);return this[_0x138d7e(0x101)][_0x138d7e(0xf4)](window,_0x138d7e(0xef),()=>this[_0x138d7e(0xde)]=!0x0),this[_0x138d7e(0x101)][_0x138d7e(0xf4)](window,_0x138d7e(0x111),()=>this[_0x138d7e(0xde)]=!0x1),this[_0x138d7e(0xf6)][_0x138d7e(0xd9)][_0x138d7e(0x103)](_0x138d7e(0x109),0xa),this[_0x138d7e(0xf6)][_0x138d7e(0xd9)][_0x138d7e(0x103)](_0x138d7e(0x10a),0x14),n[_0x138d7e(0xfb)][_0x138d7e(0xe0)](_0x323143[_0x138d7e(0xd4)],_0x323143[_0x138d7e(0x102)],{'timeout':0x3e8*this[_0x138d7e(0xf6)][_0x138d7e(0xd9)][_0x138d7e(0xe5)](_0x138d7e(0x109)),'requestTimeout':0x3e8*this[_0x138d7e(0xf6)][_0x138d7e(0xd9)][_0x138d7e(0xe5)](_0x138d7e(0x10a))})[_0x138d7e(0xfa)](_0x5e2574=>{const _0x5798da=_0x138d7e;if(this[_0x5798da(0xda)]=_0x5e2574,this[_0x5798da(0xe9)](_0x5798da(0xd5))['to'](_0x5e2574,_0x5798da(0xd5),this,_0x5798da(0xde),(_0x9a7ad7,_0x4ea779)=>(_0x5798da(0xe2)!==_0x9a7ad7&&(this[_0x5798da(0xe1)]=!0x0),_0x4ea779||_0x9a7ad7!==_0x9b05a1[_0x5798da(0xec)]?_0x9b05a1[_0x5798da(0xf3)]:this[_0x5798da(0xd5)]==_0x9b05a1[_0x5798da(0xf3)]&&this[_0x5798da(0xe1)]?(this[_0x5798da(0xe1)]=!0x1,this[_0x5798da(0xf8)](),_0x9b05a1[_0x5798da(0x105)]):_0x9b05a1[_0x5798da(0xec)])),this[_0x5798da(0xda)]['on'](_0x5798da(0xd8),(_0x2db49e,_0x10882b)=>{const _0x448383=_0x5798da;if(_0x448383(0x116)!==_0x10882b[_0x448383(0xe6)])throw console[_0x448383(0xd8)](_0x10882b),new _0x2c1c7a(_0x448383(0x115),null,{'originalError':_0x10882b});_0x1c8efd[_0x448383(0x112)](_0x448383(0xd6),{'title':_0x448383(0xfd),'namespace':_0x448383(0xdf)});}),!_0x5e2574['me'])return new Promise(_0x487e6d=>_0x5e2574['on'](_0x5798da(0x10e),_0x487e6d));})[_0x138d7e(0xfc)](_0x537ddf=>{const _0x414b85=_0x138d7e;throw console[_0x414b85(0xd8)](_0x537ddf),new _0x2c1c7a(_0x414b85(0x115),null,{'originalError':_0x537ddf});});}[_0x5f0adc(0x10f)](_0x28235d){const _0x430e79=_0x5f0adc;if(_0x430e79(0xdb)!=typeof _0x28235d[_0x430e79(0xdc)])throw new _0x2c1c7a(_0x430e79(0x117),this);if(this[_0x430e79(0x100)](_0x28235d))throw new _0x2c1c7a(_0x430e79(0xd0),this,{'name':_0x28235d[_0x430e79(0xff)][_0x430e79(0x106)]});this[_0x430e79(0xd2)][_0x430e79(0xe7)](_0x28235d);}[_0x5f0adc(0xe3)](_0x9743){const _0x3a4e5d=_0x5f0adc;this[_0x3a4e5d(0xd2)][_0x3a4e5d(0x107)](_0x9743);}[_0x5f0adc(0x100)](_0x76dab7){const _0x25c515=_0x5f0adc;return this[_0x25c515(0xd2)][_0x25c515(0xf2)](_0x76dab7);}[_0x5f0adc(0xf8)](){const _0x48fd94=_0x5f0adc;return this[_0x48fd94(0xda)][_0x48fd94(0xdc)]()[_0x48fd94(0xfa)](()=>Promise[_0x48fd94(0xf9)](Array[_0x48fd94(0xdd)](this[_0x48fd94(0xd2)],_0x4f893d=>_0x4f893d[_0x48fd94(0xdc)]())))[_0x48fd94(0xfa)](()=>this[_0x48fd94(0xd5)]=_0x9b05a1[_0x48fd94(0xec)])[_0x48fd94(0xfc)](_0xeab2b8=>{const _0x51fbaa=_0x48fd94;throw console[_0x51fbaa(0xd8)](_0xeab2b8),new _0x2c1c7a(_0x51fbaa(0xfe),this[_0x51fbaa(0xf6)]);});}[_0x5f0adc(0xd1)](){const _0x16ad1c=_0x5f0adc;this[_0x16ad1c(0xda)]&&this[_0x16ad1c(0xda)][_0x16ad1c(0xd1)](),this[_0x16ad1c(0xd5)]=_0x9b05a1[_0x16ad1c(0xf3)],this[_0x16ad1c(0x101)][_0x16ad1c(0x114)]();}[_0x5f0adc(0x113)](){const _0x413a14=_0x5f0adc;this[_0x413a14(0xd1)](),super[_0x413a14(0x113)]();}}export{n as WebSocketGateway};
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x3ba420)());[_0xec21e7(0xa5)];[_0xec21e7(0x101)];[_0xec21e7(0xfa)];[_0xec21e7(0xa9)];static get[_0xec21e7(0xca)](){const _0x4d2f3b=_0xec21e7;return[_0x48ebca,_0x48ca4f,_0x4d2f3b(0x105),_0x5ad687,_0xb0d2c1];}static get[_0xec21e7(0xe8)](){const _0x21871c=_0xec21e7;return _0x21871c(0xab);}static get[_0xec21e7(0xc6)](){return!0x0;}static get[_0xec21e7(0xf6)](){return!0x0;}constructor(_0x108701){const _0x164a84=_0xec21e7;super(_0x108701);const _0x57be35=this[_0x164a84(0x104)][_0x164a84(0x10e)][_0x164a84(0xaa)](_0x164a84(0xa1));this[_0x164a84(0xa5)]=null,this[_0x164a84(0x101)]=this[_0x164a84(0x104)][_0x164a84(0xe4)][_0x164a84(0xaa)](_0x164a84(0xc4)),this[_0x164a84(0xfa)]=new c[(_0x164a84(0xc0))](_0x57be35);}async[_0xec21e7(0xc9)](){const _0x24ea1e=_0xec21e7,_0x53bb55=this[_0x24ea1e(0x104)][_0x24ea1e(0xe4)][_0x24ea1e(0xaa)](_0x48ca4f),_0x4a1bcc=_0x53bb55[_0x24ea1e(0xc2)],_0x5cc730=this[_0x24ea1e(0x104)][_0x24ea1e(0xe4)][_0x24ea1e(0xaa)](_0x48ebca);this[_0x24ea1e(0x101)][_0x24ea1e(0x108)]({'history':_0x4a1bcc,'getLatestVersion':()=>this[_0x24ea1e(0x10a)](),'getCurrentRevisionId':()=>_0x53bb55[_0x24ea1e(0x109)]});const _0x51ec1c=this[_0x24ea1e(0x104)][_0x24ea1e(0x10e)][_0x24ea1e(0xaa)](_0x24ea1e(0xf9))||_0x3e3d9e,_0x3282ab=await _0x49e9b7[_0x24ea1e(0xa0)](_0x5cc730[_0x24ea1e(0xec)],_0x51ec1c);this[_0x24ea1e(0x104)][_0x24ea1e(0xe4)][_0x24ea1e(0xaa)](_0x24ea1e(0x105))[_0x24ea1e(0xb9)]={'getRevision':async({revisionId:_0xf11b88})=>(await this[_0x24ea1e(0xbb)](),await this[_0x24ea1e(0xfa)][_0x24ea1e(0xae)](_0xf11b88)),'updateRevisions':async _0x11cc90=>{const _0x3a5d1c=_0x24ea1e;await this[_0x3a5d1c(0xbb)]();const _0x26a737=this[_0x3a5d1c(0x101)][_0x3a5d1c(0xf3)];if(_0x3282ab&&0x1===_0x11cc90[_0x3a5d1c(0xf5)]&&_0x11cc90[0x0]['id']===_0x26a737['id'])return _0x11cc90;for(const _0x554fd9 of _0x11cc90)_0x554fd9['id']===_0x26a737['id']&&(_0x554fd9[_0x3a5d1c(0xea)]=_0x554fd9[_0x3a5d1c(0xdf)]===_0x554fd9[_0x3a5d1c(0xfb)]);return this[_0x3a5d1c(0xfa)][_0x3a5d1c(0xd7)](_0x11cc90,this[_0x3a5d1c(0xa5)])[_0x3a5d1c(0xe9)](_0x5d9260=>(this[_0x3a5d1c(0xa5)]=_0x5d9260,_0x11cc90))[_0x3a5d1c(0xd5)](_0x1d783a=>{const _0x222781=_0x3a5d1c;if(b(_0x1d783a)||_0x222781(0x9c)===_0x1d783a[_0x222781(0xed)]&&void 0x0!==_0x1d783a[_0x222781(0xc3)][_0x222781(0x100)]){for(const _0x3f26a9 of _0x11cc90){!this[_0x222781(0x101)][_0x222781(0xc7)][_0x222781(0xae)](_0x3f26a9['id'])||this[_0x222781(0x101)][_0x222781(0x10c)](_0x3f26a9['id'],_0x3f26a9,!0x1);}if(b(_0x1d783a))throw _0x1d783a;return _0x11cc90;}throw _0x1d783a;});}},this[_0x24ea1e(0xfc)](this[_0x24ea1e(0xfa)],_0x24ea1e(0x106),(_0x2a0b98,{revisionsData:_0xd30113,requestId:_0x29a0c9})=>{const _0x2004e0=_0x24ea1e;Math[_0x2004e0(0xee)](..._0xd30113[_0x2004e0(0xe0)](_0x1e20a0=>_0x1e20a0[_0x2004e0(0xfb)]))>this[_0x2004e0(0x10d)]()-0x1?this[_0x2004e0(0x10a)]()[_0x2004e0(0xe9)](()=>{const _0x55e4e7=_0x2004e0;this[_0x55e4e7(0xcc)](_0xd30113,_0x29a0c9);}):this[_0x2004e0(0xcc)](_0xd30113,_0x29a0c9);});const {revisions:_0x659ecb,requestId:_0x59e6f1}=await this[_0x24ea1e(0xfa)][_0x24ea1e(0xda)](_0x5cc730[_0x24ea1e(0xec)]);_0x5cc730[_0x24ea1e(0xe5)](this),this[_0x24ea1e(0xa5)]=_0x59e6f1,await this[_0x24ea1e(0xd3)](_0x659ecb);for(const _0x29d781 of _0x659ecb)this[_0x24ea1e(0x101)][_0x24ea1e(0x110)](_0x29d781);this[_0x24ea1e(0xfc)](_0x53bb55,_0x24ea1e(0xd9),(_0x56ebaf,_0x4f541a,_0xddcfb)=>{const _0x51740b=_0x24ea1e;_0xddcfb&&(this[_0x51740b(0xa9)]=_0x53bb55[_0x51740b(0xce)],_0x56ebaf[_0x51740b(0xac)]());}),this[_0x24ea1e(0x101)][_0x24ea1e(0xde)](_0x24ea1e(0xfd))['to'](_0x5cc730,_0x24ea1e(0xff),_0x296904=>_0x296904===_0x28efe0[_0x24ea1e(0x10b)]);}async[_0xec21e7(0xe1)](){const _0x1a8dd4=_0xec21e7,_0x1e3e41=this[_0x1a8dd4(0x104)][_0x1a8dd4(0xe4)][_0x1a8dd4(0xaa)](_0x48ebca),_0x4df73f=this[_0x1a8dd4(0x104)][_0x1a8dd4(0xe4)][_0x1a8dd4(0xaa)](_0x48ca4f),_0x14eafe=async()=>{const _0x8b1b6e=_0x1a8dd4,_0x40ed80=this[_0x8b1b6e(0x101)][_0x8b1b6e(0xf3)],_0x3fa089=_0x40ed80['id'],_0x398ee0=_0x3fa089!==_0x4df73f[_0x8b1b6e(0x109)];if(_0x398ee0){const _0x4242df=_0x4df73f[_0x8b1b6e(0xce)]-this[_0x8b1b6e(0xa9)],_0x4dcf6c=this[_0x8b1b6e(0x10d)]();this[_0x8b1b6e(0x101)][_0x8b1b6e(0xfe)][_0x8b1b6e(0xa4)]();if(_0x40ed80[_0x8b1b6e(0xfb)]+_0x4242df!==_0x4dcf6c){const _0x48431e=_0x40ed80[_0x8b1b6e(0xdf)]+_0x4242df,_0x223ebb=this[_0x8b1b6e(0x104)][_0x8b1b6e(0xe4)][_0x8b1b6e(0xaa)](_0xb0d2c1),_0x47ccd2=this[_0x8b1b6e(0x101)][_0x8b1b6e(0xeb)]({'revision':_0x40ed80,'from':_0x48431e,'to':_0x4dcf6c});_0x47ccd2['id']=_0x40ed80['id'];const _0x46bec8=_0x47ccd2[_0x8b1b6e(0x9d)][_0x8b1b6e(0xe0)](_0x2d91ce=>_0x223ebb[_0x8b1b6e(0xc1)](_0x2d91ce));_0x40ed80[_0x8b1b6e(0xe3)]({..._0x47ccd2,'authors':_0x46bec8},!0x0),this[_0x8b1b6e(0x101)][_0x8b1b6e(0x10c)](_0x40ed80['id'],_0x47ccd2,!0x0);}this[_0x8b1b6e(0x101)][_0x8b1b6e(0xa6)]=_0x4dcf6c,(_0x40ed80[_0x8b1b6e(0xfb)]===_0x40ed80[_0x8b1b6e(0xdf)]&&!this[_0x8b1b6e(0x101)][_0x8b1b6e(0xb8)][_0x8b1b6e(0xdb)](_0x3fa089)&&this[_0x8b1b6e(0x101)][_0x8b1b6e(0xc7)][_0x8b1b6e(0xb5)][_0x8b1b6e(0x103)](_0x3fa089),this[_0x8b1b6e(0x101)][_0x8b1b6e(0x111)](_0x4dcf6c));}const {revisions:_0x37e510,requestId:_0x49b381}=await this[_0x8b1b6e(0xfa)][_0x8b1b6e(0xe1)](_0x1e3e41[_0x8b1b6e(0xec)],this[_0x8b1b6e(0xa5)]);_0x398ee0&&_0x37e510[_0x8b1b6e(0xf5)]>0x0?_0x4df73f[_0x8b1b6e(0xbd)]():(await this[_0x8b1b6e(0xd3)](_0x37e510),this[_0x8b1b6e(0xcc)](_0x37e510,_0x49b381),this[_0x8b1b6e(0x101)][_0x8b1b6e(0xd2)]());};return _0x4df73f[_0x1a8dd4(0xbe)]?_0x14eafe():new Promise((_0x9c3f40,_0x3fda05)=>{const _0x237f13=_0x1a8dd4;_0x4df73f[_0x237f13(0xf1)](_0x237f13(0xd9),()=>{const _0xfb5894=_0x237f13;_0x14eafe()[_0xfb5894(0xe9)](_0x9c3f40)[_0xfb5894(0xd5)](_0x3fda05);});});}[_0xec21e7(0xa2)](){const _0xcdd3dd=_0xec21e7;super[_0xcdd3dd(0xa2)]();}async[_0xec21e7(0xbb)](){const _0x5cff0e=_0xec21e7;this[_0x5cff0e(0xfa)][_0x5cff0e(0x9e)]||await new Promise(_0x16f3da=>{const _0xdf98bf=_0x5cff0e;this[_0xdf98bf(0xfc)](this[_0xdf98bf(0xfa)],_0xdf98bf(0xf7),_0x5a7a34=>{const _0x106927=_0xdf98bf;_0x5a7a34[_0x106927(0xac)](),_0x16f3da();});});}[_0xec21e7(0x10d)](){const _0x62d3eb=_0xec21e7,_0x313240=this[_0x62d3eb(0x104)][_0x62d3eb(0xe4)][_0x62d3eb(0xaa)](_0x48ca4f)[_0x62d3eb(0xc2)][_0x62d3eb(0x10f)]()[_0x62d3eb(0xf8)]();for(const _0x20f1a5 of _0x313240)if(_0x62d3eb(0xe2)!==_0x20f1a5[_0x62d3eb(0xb4)]||_0x20f1a5[_0x62d3eb(0xbc)])return _0x20f1a5[_0x62d3eb(0xa8)]+0x1;}[_0xec21e7(0x10a)](){const _0x3593e6=_0xec21e7,_0x39a5ac=this[_0x3593e6(0x104)][_0x3593e6(0xe4)][_0x3593e6(0xaa)](_0x48ca4f);return new Promise(_0x2e8d92=>{const _0x19fadc=_0x3593e6;_0x39a5ac[_0x19fadc(0xb2)]?_0x39a5ac[_0x19fadc(0xf1)](_0x19fadc(0x107),()=>{const _0x3af881=_0x19fadc;_0x2e8d92(this[_0x3af881(0x10d)]());}):_0x2e8d92(this[_0x19fadc(0x10d)]());});}[_0xec21e7(0xcc)](_0xf8f87a,_0x2ab973){const _0x2d99f0=_0xec21e7,_0x4f7098=this[_0x2d99f0(0x101)][_0x2d99f0(0xc7)];this[_0x2d99f0(0xa5)]=_0x2ab973;for(const _0x1b04b0 of _0xf8f87a){const _0x1f4737=_0x4f7098[_0x2d99f0(0xae)](_0x1b04b0['id']);if(_0x1f4737){if((_0x1b04b0[_0x2d99f0(0xdf)]||_0x1b04b0[_0x2d99f0(0xfb)])&&(_0x1b04b0[_0x2d99f0(0xc5)]=null),_0x1f4737===this[_0x2d99f0(0x101)][_0x2d99f0(0xf3)]){const _0x446128=Math[_0x2d99f0(0xee)](_0x1f4737[_0x2d99f0(0xfb)],_0x1b04b0[_0x2d99f0(0xfb)]),_0x1b7109=Math[_0x2d99f0(0xee)](_0x1f4737[_0x2d99f0(0xdf)],_0x1b04b0[_0x2d99f0(0xdf)]);let _0x1990b3;_0x1f4737[_0x2d99f0(0xfb)]===_0x1b04b0[_0x2d99f0(0xfb)]&&_0x1f4737[_0x2d99f0(0xdf)]===_0x1b04b0[_0x2d99f0(0xdf)]?(_0x1990b3=!0x0,this[_0x2d99f0(0xad)](_0x1b04b0)):_0x1b04b0[_0x2d99f0(0xfb)]===_0x446128&&_0x1b04b0[_0x2d99f0(0xdf)]===_0x1b7109?_0x1990b3=!0x1:(_0x1f4737[_0x2d99f0(0xfb)]===_0x446128&&_0x1f4737[_0x2d99f0(0xdf)]===_0x1b7109||this[_0x2d99f0(0xb1)]({'revision':_0x1f4737,'from':_0x1b7109,'to':_0x446128}),_0x1990b3=!0x0),_0x1990b3&&(delete _0x1b04b0[_0x2d99f0(0xdf)],delete _0x1b04b0[_0x2d99f0(0xfb)],delete _0x1b04b0[_0x2d99f0(0xc5)],delete _0x1b04b0[_0x2d99f0(0xb3)],delete _0x1b04b0[_0x2d99f0(0x9d)]);}this[_0x2d99f0(0x101)][_0x2d99f0(0xc8)](_0x1b04b0),this[_0x2d99f0(0xad)](_0x1b04b0);}else this[_0x2d99f0(0x101)][_0x2d99f0(0x110)](_0x1b04b0);}const _0x504cee=_0x4f7098[_0x2d99f0(0xcf)]();_0x504cee[_0x2d99f0(0xf8)]();for(let _0x3f6ae1=0x0;_0x3f6ae1<_0x504cee[_0x2d99f0(0xf5)]-0x1;_0x3f6ae1++){const _0x362039=_0x504cee[_0x3f6ae1],_0x373895=_0x504cee[_0x3f6ae1+0x1];if(_0x362039[_0x2d99f0(0xdf)]<_0x373895[_0x2d99f0(0xfb)]){const _0x26c79c=_0x373895[_0x2d99f0(0xfb)],_0xbfafb2=Math[_0x2d99f0(0xee)](_0x26c79c,_0x362039[_0x2d99f0(0xfb)]);this[_0x2d99f0(0xb1)]({'revision':_0x362039,'from':_0x26c79c,'to':_0xbfafb2});}}}[_0xec21e7(0xb1)]({revision:_0xce2089,from:_0x219201,to:_0x2cda14}={}){const _0x21514f=_0xec21e7,_0x1e1173=this[_0x21514f(0x104)][_0x21514f(0xe4)][_0x21514f(0xaa)](_0xb0d2c1),_0x311ced=this[_0x21514f(0x101)][_0x21514f(0xeb)]({'revision':_0xce2089,'from':_0x219201,'to':_0x2cda14});_0x311ced[_0x21514f(0xcb)]=_0x311ced[_0x21514f(0x9d)][_0x21514f(0xe0)](_0x5da33d=>_0x1e1173[_0x21514f(0xc1)](_0x5da33d)),_0xce2089[_0x21514f(0xe3)](_0x311ced);}[_0xec21e7(0xad)](_0x2e6ba6){const _0x28331f=_0xec21e7,_0x48f883={};_0x48f883['id']=_0x2e6ba6['id'];for(const _0x26f9be of Object[_0x28331f(0xf2)](_0x2e6ba6))'id'!==_0x26f9be&&(_0x48f883[_0x26f9be]=void 0x0);this[_0x28331f(0x101)][_0x28331f(0x10c)](_0x48f883['id'],_0x48f883,!0x0);}async[_0xec21e7(0xd3)](_0x244351){const _0x1f58b0=_0xec21e7,_0x52b771=this[_0x1f58b0(0x104)][_0x1f58b0(0xe4)][_0x1f58b0(0xaa)](_0xb0d2c1),{connection:_0x431d36}=this[_0x1f58b0(0x104)][_0x1f58b0(0xe4)][_0x1f58b0(0xaa)](_0x48ebca),_0x4a51e1=new Set();for(const _0x54b43a of _0x244351){for(const _0x25d6c5 of _0x54b43a[_0x1f58b0(0x9d)])_0x5e57dd(_0x25d6c5);_0x54b43a[_0x1f58b0(0xb6)]&&_0x5e57dd(_0x54b43a[_0x1f58b0(0xb6)]);}if(0x0===_0x4a51e1[_0x1f58b0(0xd6)])return;const _0x4061ea=await _0x4a0716[_0x1f58b0(0xe7)](_0x431d36,Array[_0x1f58b0(0xd8)](_0x4a51e1));for(const _0x29d23a of _0x4061ea)_0x52b771[_0x1f58b0(0xc1)](_0x29d23a['id'])||_0x52b771[_0x1f58b0(0xbf)](_0x29d23a);function _0x5e57dd(_0x1ba880){const _0x553703=_0x1f58b0;_0x52b771[_0x553703(0xc1)](_0x1ba880)||_0x4a51e1[_0x553703(0xdd)](_0x1ba880);}}}export{c as CloudServicesRevisionHistoryAdapter};function b(_0x47d002){const _0x70ed5c=_0xec21e7;return _0x47d002[_0x70ed5c(0xe6)][_0x70ed5c(0xaf)](_0x70ed5c(0xf0))||_0x47d002[_0x70ed5c(0xe6)][_0x70ed5c(0xaf)](_0x70ed5c(0xd1))||_0x47d002[_0x70ed5c(0xe6)][_0x70ed5c(0xaf)](_0x70ed5c(0xf4));}
|
|
23
|
+
const _0x55ad26=_0x3d78;function _0x3d78(_0x34fe35,_0x2ffaa4){const _0x28c39b=_0x28c3();return _0x3d78=function(_0x3d7857,_0x10006e){_0x3d7857=_0x3d7857-0x149;let _0x1099a7=_0x28c39b[_0x3d7857];return _0x1099a7;},_0x3d78(_0x34fe35,_0x2ffaa4);}(function(_0x2a7133,_0x1710d4){const _0x3b3238=_0x3d78,_0x2bd324=_0x2a7133();while(!![]){try{const _0x37ca5e=-parseInt(_0x3b3238(0x17d))/0x1+parseInt(_0x3b3238(0x173))/0x2+parseInt(_0x3b3238(0x1a8))/0x3+-parseInt(_0x3b3238(0x156))/0x4+-parseInt(_0x3b3238(0x195))/0x5*(-parseInt(_0x3b3238(0x158))/0x6)+parseInt(_0x3b3238(0x163))/0x7+parseInt(_0x3b3238(0x177))/0x8;if(_0x37ca5e===_0x1710d4)break;else _0x2bd324['push'](_0x2bd324['shift']());}catch(_0xdd4162){_0x2bd324['push'](_0x2bd324['shift']());}}}(_0x28c3,0xa5eeb));import{Plugin as _0x7c312c}from'ckeditor5/src/core.js';import{version as _0x40e9bf}from'ckeditor5/src/utils.js';import{Users as _0xc73ea9}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x26fdf8}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x2f34be}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x26e2c9}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x2f5a38,RevisionHistoryService as _0x493d8b,User as _0x544d4c,WEB_SOCKET_GATEWAY_STATES as _0x418066}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x7c312c{static [_0x55ad26(0x15b)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x493d8b)());[_0x55ad26(0x19b)];[_0x55ad26(0x169)];[_0x55ad26(0x18f)];[_0x55ad26(0x18c)];static get[_0x55ad26(0x182)](){const _0x36faf4=_0x55ad26;return[_0x2f34be,_0x26fdf8,_0x36faf4(0x1b2),_0x26e2c9,_0xc73ea9];}static get[_0x55ad26(0x149)](){const _0x4ae3a8=_0x55ad26;return _0x4ae3a8(0x15e);}static get[_0x55ad26(0x1ae)](){return!0x0;}static get[_0x55ad26(0x14f)](){return!0x0;}constructor(_0x509c36){const _0x27c8c2=_0x55ad26;super(_0x509c36);const _0x44b1c9=this[_0x27c8c2(0x15f)][_0x27c8c2(0x168)][_0x27c8c2(0x1b6)](_0x27c8c2(0x1b3));this[_0x27c8c2(0x19b)]=null,this[_0x27c8c2(0x169)]=this[_0x27c8c2(0x15f)][_0x27c8c2(0x1a6)][_0x27c8c2(0x1b6)](_0x27c8c2(0x14e)),this[_0x27c8c2(0x18f)]=new c[(_0x27c8c2(0x15b))](_0x44b1c9);}async[_0x55ad26(0x1a2)](){const _0x27dc90=_0x55ad26,_0x5de0c2=this[_0x27dc90(0x15f)][_0x27dc90(0x1a6)][_0x27dc90(0x1b6)](_0x26fdf8),_0x8ab25b=_0x5de0c2[_0x27dc90(0x171)],_0x38135c=this[_0x27dc90(0x15f)][_0x27dc90(0x1a6)][_0x27dc90(0x1b6)](_0x2f34be);this[_0x27dc90(0x169)][_0x27dc90(0x187)]({'history':_0x8ab25b,'getLatestVersion':()=>this[_0x27dc90(0x18d)](),'getCurrentRevisionId':()=>_0x5de0c2[_0x27dc90(0x1b0)]});const _0x68b979=this[_0x27dc90(0x15f)][_0x27dc90(0x168)][_0x27dc90(0x1b6)](_0x27dc90(0x19e))||_0x40e9bf,_0x4693bb=await _0x2f5a38[_0x27dc90(0x1b8)](_0x38135c[_0x27dc90(0x197)],_0x68b979);this[_0x27dc90(0x15f)][_0x27dc90(0x1a6)][_0x27dc90(0x1b6)](_0x27dc90(0x1b2))[_0x27dc90(0x178)]={'getRevision':async({revisionId:_0x3ccc44})=>(await this[_0x27dc90(0x16e)](),await this[_0x27dc90(0x18f)][_0x27dc90(0x170)](_0x3ccc44)),'updateRevisions':async _0x172b4f=>{const _0x130cf8=_0x27dc90;await this[_0x130cf8(0x16e)]();const _0x4f72de=this[_0x130cf8(0x169)][_0x130cf8(0x17b)];if(_0x4693bb&&0x1===_0x172b4f[_0x130cf8(0x1ab)]&&_0x172b4f[0x0]['id']===_0x4f72de['id'])return _0x172b4f;for(const _0x2569af of _0x172b4f)_0x2569af['id']===_0x4f72de['id']&&(_0x2569af[_0x130cf8(0x161)]=_0x2569af[_0x130cf8(0x1b5)]===_0x2569af[_0x130cf8(0x1a7)]);return this[_0x130cf8(0x18f)][_0x130cf8(0x16c)](_0x172b4f,this[_0x130cf8(0x19b)])[_0x130cf8(0x172)](_0x1758f2=>(this[_0x130cf8(0x19b)]=_0x1758f2,_0x172b4f))[_0x130cf8(0x15a)](_0x4a4879=>{const _0x4f9d7f=_0x130cf8;if(Z(_0x4a4879)||_0x4f9d7f(0x194)===_0x4a4879[_0x4f9d7f(0x186)]&&void 0x0!==_0x4a4879[_0x4f9d7f(0x198)][_0x4f9d7f(0x160)]){for(const _0x1e8d3f of _0x172b4f){!this[_0x4f9d7f(0x169)][_0x4f9d7f(0x18b)][_0x4f9d7f(0x170)](_0x1e8d3f['id'])||this[_0x4f9d7f(0x169)][_0x4f9d7f(0x176)](_0x1e8d3f['id'],_0x1e8d3f,!0x1);}if(Z(_0x4a4879))throw _0x4a4879;return _0x172b4f;}throw _0x4a4879;});}},this[_0x27dc90(0x1a3)](this[_0x27dc90(0x18f)],_0x27dc90(0x191),(_0x33722f,{revisionsData:_0xf5c4a3,requestId:_0x1fb8b9})=>{const _0x30c6a7=_0x27dc90;Math[_0x30c6a7(0x1b9)](..._0xf5c4a3[_0x30c6a7(0x166)](_0xb30da9=>_0xb30da9[_0x30c6a7(0x1a7)]))>this[_0x30c6a7(0x1b1)]()-0x1?this[_0x30c6a7(0x18d)]()[_0x30c6a7(0x172)](()=>{const _0x360fda=_0x30c6a7;this[_0x360fda(0x19c)](_0xf5c4a3,_0x1fb8b9);}):this[_0x30c6a7(0x19c)](_0xf5c4a3,_0x1fb8b9);});const {revisions:_0x49ed6d,requestId:_0x5ab172}=await this[_0x27dc90(0x18f)][_0x27dc90(0x185)](_0x38135c[_0x27dc90(0x197)]);_0x38135c[_0x27dc90(0x15c)](this),this[_0x27dc90(0x19b)]=_0x5ab172,await this[_0x27dc90(0x189)](_0x49ed6d);for(const _0x2f3a5e of _0x49ed6d)this[_0x27dc90(0x169)][_0x27dc90(0x190)](_0x2f3a5e);this[_0x27dc90(0x1a3)](_0x5de0c2,_0x27dc90(0x164),(_0x92bcf7,_0x15f2a5,_0x445093)=>{const _0x29ddf5=_0x27dc90;_0x445093&&(this[_0x29ddf5(0x18c)]=_0x5de0c2[_0x29ddf5(0x14d)],_0x92bcf7[_0x29ddf5(0x16a)]());}),this[_0x27dc90(0x169)][_0x27dc90(0x1b4)](_0x27dc90(0x17a))['to'](_0x38135c,_0x27dc90(0x154),_0x34f5ba=>_0x34f5ba===_0x418066[_0x27dc90(0x19f)]);}async[_0x55ad26(0x153)](){const _0x23d6a2=_0x55ad26,_0x5ece13=this[_0x23d6a2(0x15f)][_0x23d6a2(0x1a6)][_0x23d6a2(0x1b6)](_0x2f34be),_0x29c9b2=this[_0x23d6a2(0x15f)][_0x23d6a2(0x1a6)][_0x23d6a2(0x1b6)](_0x26fdf8),_0x2b2f62=async()=>{const _0x167285=_0x23d6a2,_0x1a56f4=this[_0x167285(0x169)][_0x167285(0x17b)],_0x2db7ad=_0x1a56f4['id'],_0xfc5aec=_0x2db7ad!==_0x29c9b2[_0x167285(0x1b0)];if(_0xfc5aec){const _0x14e4e0=_0x29c9b2[_0x167285(0x14d)]-this[_0x167285(0x18c)],_0x470279=this[_0x167285(0x1b1)]();this[_0x167285(0x169)][_0x167285(0x159)][_0x167285(0x15d)]();if(_0x1a56f4[_0x167285(0x1a7)]+_0x14e4e0!==_0x470279){const _0x417425=_0x1a56f4[_0x167285(0x1b5)]+_0x14e4e0,_0x237b82=this[_0x167285(0x15f)][_0x167285(0x1a6)][_0x167285(0x1b6)](_0xc73ea9),_0x3b9a59=this[_0x167285(0x169)][_0x167285(0x18e)]({'revision':_0x1a56f4,'from':_0x417425,'to':_0x470279});_0x3b9a59['id']=_0x1a56f4['id'];const _0x1f53a2=_0x3b9a59[_0x167285(0x1af)][_0x167285(0x166)](_0x595021=>_0x237b82[_0x167285(0x174)](_0x595021));_0x1a56f4[_0x167285(0x16b)]({..._0x3b9a59,'authors':_0x1f53a2},!0x0),this[_0x167285(0x169)][_0x167285(0x176)](_0x1a56f4['id'],_0x3b9a59,!0x0);}this[_0x167285(0x169)][_0x167285(0x1ba)]=_0x470279,(_0x1a56f4[_0x167285(0x1a7)]===_0x1a56f4[_0x167285(0x1b5)]&&!this[_0x167285(0x169)][_0x167285(0x193)][_0x167285(0x18a)](_0x2db7ad)&&this[_0x167285(0x169)][_0x167285(0x18b)][_0x167285(0x151)][_0x167285(0x192)](_0x2db7ad),this[_0x167285(0x169)][_0x167285(0x16f)](_0x470279));}const {revisions:_0x50a124,requestId:_0x172bbe}=await this[_0x167285(0x18f)][_0x167285(0x153)](_0x5ece13[_0x167285(0x197)],this[_0x167285(0x19b)]);_0xfc5aec&&_0x50a124[_0x167285(0x1ab)]>0x0?_0x29c9b2[_0x167285(0x1a0)]():(await this[_0x167285(0x189)](_0x50a124),this[_0x167285(0x19c)](_0x50a124,_0x172bbe),this[_0x167285(0x169)][_0x167285(0x17c)]());};return _0x29c9b2[_0x23d6a2(0x1ac)]?_0x2b2f62():new Promise((_0x58c0eb,_0x2bf18d)=>{const _0x31afcf=_0x23d6a2;_0x29c9b2[_0x31afcf(0x184)](_0x31afcf(0x164),()=>{const _0xe9a050=_0x31afcf;_0x2b2f62()[_0xe9a050(0x172)](_0x58c0eb)[_0xe9a050(0x15a)](_0x2bf18d);});});}[_0x55ad26(0x199)](){const _0x68ada3=_0x55ad26;super[_0x68ada3(0x199)]();}async[_0x55ad26(0x16e)](){const _0x5b59ff=_0x55ad26;this[_0x5b59ff(0x18f)][_0x5b59ff(0x165)]||await new Promise(_0x1c2748=>{const _0x58e0e7=_0x5b59ff;this[_0x58e0e7(0x1a3)](this[_0x58e0e7(0x18f)],_0x58e0e7(0x14b),_0x3810c0=>{const _0x222bdb=_0x58e0e7;_0x3810c0[_0x222bdb(0x16a)](),_0x1c2748();});});}[_0x55ad26(0x1b1)](){const _0xd70869=_0x55ad26,_0x4a1e45=this[_0xd70869(0x15f)][_0xd70869(0x1a6)][_0xd70869(0x1b6)](_0x26fdf8)[_0xd70869(0x171)][_0xd70869(0x17e)]()[_0xd70869(0x179)]();for(const _0x3a1697 of _0x4a1e45)if(_0xd70869(0x157)!==_0x3a1697[_0xd70869(0x196)]||_0x3a1697[_0xd70869(0x1a5)])return _0x3a1697[_0xd70869(0x167)]+0x1;}[_0x55ad26(0x18d)](){const _0x425399=_0x55ad26,_0x169c2e=this[_0x425399(0x15f)][_0x425399(0x1a6)][_0x425399(0x1b6)](_0x26fdf8);return new Promise(_0x3600d2=>{const _0x32700a=_0x425399;_0x169c2e[_0x32700a(0x181)]?_0x169c2e[_0x32700a(0x184)](_0x32700a(0x19d),()=>{const _0x3d86fe=_0x32700a;_0x3600d2(this[_0x3d86fe(0x1b1)]());}):_0x3600d2(this[_0x32700a(0x1b1)]());});}[_0x55ad26(0x19c)](_0x2b422f,_0x46578d){const _0x4340b2=_0x55ad26,_0xefe990=this[_0x4340b2(0x169)][_0x4340b2(0x18b)];this[_0x4340b2(0x19b)]=_0x46578d;for(const _0x4c3141 of _0x2b422f){const _0x6cd4a2=_0xefe990[_0x4340b2(0x170)](_0x4c3141['id']);if(_0x6cd4a2){if((_0x4c3141[_0x4340b2(0x1b5)]||_0x4c3141[_0x4340b2(0x1a7)])&&(_0x4c3141[_0x4340b2(0x1a1)]=null),_0x6cd4a2===this[_0x4340b2(0x169)][_0x4340b2(0x17b)]){const _0x410f59=Math[_0x4340b2(0x1b9)](_0x6cd4a2[_0x4340b2(0x1a7)],_0x4c3141[_0x4340b2(0x1a7)]),_0x506483=Math[_0x4340b2(0x1b9)](_0x6cd4a2[_0x4340b2(0x1b5)],_0x4c3141[_0x4340b2(0x1b5)]);let _0x3b7cc9;_0x6cd4a2[_0x4340b2(0x1a7)]===_0x4c3141[_0x4340b2(0x1a7)]&&_0x6cd4a2[_0x4340b2(0x1b5)]===_0x4c3141[_0x4340b2(0x1b5)]?(_0x3b7cc9=!0x0,this[_0x4340b2(0x1a9)](_0x4c3141)):_0x4c3141[_0x4340b2(0x1a7)]===_0x410f59&&_0x4c3141[_0x4340b2(0x1b5)]===_0x506483?_0x3b7cc9=!0x1:(_0x6cd4a2[_0x4340b2(0x1a7)]===_0x410f59&&_0x6cd4a2[_0x4340b2(0x1b5)]===_0x506483||this[_0x4340b2(0x180)]({'revision':_0x6cd4a2,'from':_0x506483,'to':_0x410f59}),_0x3b7cc9=!0x0),_0x3b7cc9&&(delete _0x4c3141[_0x4340b2(0x1b5)],delete _0x4c3141[_0x4340b2(0x1a7)],delete _0x4c3141[_0x4340b2(0x1a1)],delete _0x4c3141[_0x4340b2(0x1aa)],delete _0x4c3141[_0x4340b2(0x1af)]);}this[_0x4340b2(0x169)][_0x4340b2(0x188)](_0x4c3141),this[_0x4340b2(0x1a9)](_0x4c3141);}else this[_0x4340b2(0x169)][_0x4340b2(0x190)](_0x4c3141);}const _0xdad8f9=_0xefe990[_0x4340b2(0x1b7)]();_0xdad8f9[_0x4340b2(0x179)]();for(let _0xabc4c6=0x0;_0xabc4c6<_0xdad8f9[_0x4340b2(0x1ab)]-0x1;_0xabc4c6++){const _0x11053b=_0xdad8f9[_0xabc4c6],_0x165af2=_0xdad8f9[_0xabc4c6+0x1];if(_0x11053b[_0x4340b2(0x1b5)]<_0x165af2[_0x4340b2(0x1a7)]){const _0x1e29c3=_0x165af2[_0x4340b2(0x1a7)],_0x511c11=Math[_0x4340b2(0x1b9)](_0x1e29c3,_0x11053b[_0x4340b2(0x1a7)]);this[_0x4340b2(0x180)]({'revision':_0x11053b,'from':_0x1e29c3,'to':_0x511c11});}}}[_0x55ad26(0x180)]({revision:_0x129f78,from:_0x1cfa87,to:_0x5c991d}={}){const _0x4907ec=_0x55ad26,_0x5b245e=this[_0x4907ec(0x15f)][_0x4907ec(0x1a6)][_0x4907ec(0x1b6)](_0xc73ea9),_0xe24f45=this[_0x4907ec(0x169)][_0x4907ec(0x18e)]({'revision':_0x129f78,'from':_0x1cfa87,'to':_0x5c991d});_0xe24f45[_0x4907ec(0x14a)]=_0xe24f45[_0x4907ec(0x1af)][_0x4907ec(0x166)](_0x5cb083=>_0x5b245e[_0x4907ec(0x174)](_0x5cb083)),_0x129f78[_0x4907ec(0x16b)](_0xe24f45);}[_0x55ad26(0x1a9)](_0xa1c513){const _0x591f8a=_0x55ad26,_0x41b75c={};_0x41b75c['id']=_0xa1c513['id'];for(const _0x5705ee of Object[_0x591f8a(0x183)](_0xa1c513))'id'!==_0x5705ee&&(_0x41b75c[_0x5705ee]=void 0x0);this[_0x591f8a(0x169)][_0x591f8a(0x176)](_0x41b75c['id'],_0x41b75c,!0x0);}async[_0x55ad26(0x189)](_0x54aa81){const _0x264063=_0x55ad26,_0x33975f=this[_0x264063(0x15f)][_0x264063(0x1a6)][_0x264063(0x1b6)](_0xc73ea9),{connection:_0xf3e067}=this[_0x264063(0x15f)][_0x264063(0x1a6)][_0x264063(0x1b6)](_0x2f34be),_0x10bb33=new Set();for(const _0x43030c of _0x54aa81){for(const _0x4234be of _0x43030c[_0x264063(0x1af)])_0x5048cb(_0x4234be);_0x43030c[_0x264063(0x1ad)]&&_0x5048cb(_0x43030c[_0x264063(0x1ad)]);}if(0x0===_0x10bb33[_0x264063(0x155)])return;const _0x3938ed=await _0x544d4c[_0x264063(0x152)](_0xf3e067,Array[_0x264063(0x19a)](_0x10bb33));for(const _0x55879c of _0x3938ed)_0x33975f[_0x264063(0x174)](_0x55879c['id'])||_0x33975f[_0x264063(0x175)](_0x55879c);function _0x5048cb(_0x1ef3ca){const _0x3a0cee=_0x264063;_0x33975f[_0x3a0cee(0x174)](_0x1ef3ca)||_0x10bb33[_0x3a0cee(0x17f)](_0x1ef3ca);}}}export{c as CloudServicesRevisionHistoryAdapter};function Z(_0x4764a9){const _0x1c49c2=_0x55ad26;return _0x4764a9[_0x1c49c2(0x162)][_0x1c49c2(0x1a4)](_0x1c49c2(0x14c))||_0x4764a9[_0x1c49c2(0x162)][_0x1c49c2(0x1a4)](_0x1c49c2(0x150))||_0x4764a9[_0x1c49c2(0x162)][_0x1c49c2(0x1a4)](_0x1c49c2(0x16d));}function _0x28c3(){const _0xa2a9c9=['isEnabled','currentRevision','sendBufferedUpdates','685534aUQqHx','getOperations','add','_fixRevision','_isPendingUpdate','requires','keys','once','connect','code','setSource','setRevisionData','_fetchMissingUsers','has','repository','_oldOffset','_getLatestVersion','buildRevisionData','_revisionHistoryService','addRevisionData','revisionsUpdated','remove','_bufferedUpdates','400','5SqIDpp','type','connection','data','destroy','from','_lastRequestId','_handleRevisionsUpdate','change:_isPendingUpdate','cloudServices.bundleVersion','CONNECTED','_handleReconnectionError','diffData','init','listenTo','startsWith','affectsData','plugins','toVersion','398508dlOsKJ','_preventResendingRevisionData','createdAt','length','_isConnected','creatorId','isOfficialPlugin','authorsIds','sessionId','_getLatestVersionFromServerOperations','RevisionHistory','collaboration.channelId','bind','fromVersion','get','getRevisions','isBundleUploaded','max','_startingVersion','pluginName','authors','connected','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_offset','RevisionTracker','isPremiumPlugin','cloud-services-internal-error:\x20Not\x20connected.','_revisions','getMany','reconnect','state','size','3862464Zehkya','marker','5927514gaXLNd','_revisionDataBuilder','catch','RevisionHistoryService','addToReconnectionStack','reInit','CloudServicesRevisionHistoryAdapter','editor','wrongRequestId','isEmptyCurrent','message','4243442NkycXV','change:_isConnected','isConnected','map','baseVersion','config','_revisionTracker','off','_update','updateRevisions','cloud-services-internal-error:\x20Request\x20timeout.','_waitForServiceReady','_createCurrentRevision','getRevision','serverHistory','then','268130xCmNyi','getUser','addUser','_bufferUpdate','3758264CdUjxj','adapter','reverse'];_0x28c3=function(){return _0xa2a9c9;};return _0x28c3();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x37f0df=_0x3c9b;(function(_0x77bd0b,_0x333518){const _0x8ebde5=_0x3c9b,_0xd2301a=_0x77bd0b();while(!![]){try{const _0x93c57b=parseInt(_0x8ebde5(0x1a9))/0x1*(-parseInt(_0x8ebde5(0x19f))/0x2)+-parseInt(_0x8ebde5(0x1c5))/0x3*(-parseInt(_0x8ebde5(0x1b3))/0x4)+parseInt(_0x8ebde5(0x1ad))/0x5+parseInt(_0x8ebde5(0x1a4))/0x6+-parseInt(_0x8ebde5(0x19b))/0x7+parseInt(_0x8ebde5(0x190))/0x8+-parseInt(_0x8ebde5(0x195))/0x9*(parseInt(_0x8ebde5(0x1b6))/0xa);if(_0x93c57b===_0x333518)break;else _0xd2301a['push'](_0xd2301a['shift']());}catch(_0x2e3b34){_0xd2301a['push'](_0xd2301a['shift']());}}}(_0x14d8,0x5fea1));function _0x14d8(){const _0x37f7be=['_bufferedRequests','_waitForServiceReady','isPremiumPlugin','reconnect','editor','hasSuggestion','getMany','type','adapter','startsWith','connected','from','addToReconnectionStack','update','75jzXUfR','set','_fetchMissingUsersForThreads','suggestionUpdated','CloudServicesTrackChangesAdapter','listenTo','originalSuggestionId','off','add','size','delete','866136dQxqel','find','TrackChangesEditing','pluginName','collaboration.channelId','27eaYuLz','_trackChangesService','isOfficialPlugin','addUser','init','open','4547340FKFrOe','get','getSuggestion','requires','90302TPLGMH','cloud-services-internal-error:\x20Not\x20connected.','then','connection','data','3569706Jdjfra','_saved','attributes','state','TrackChangesService','5iXxyGR','values','addSuggestionData','plugins','2691515kBobvE','message','config','cloud-services-internal-error:\x20Request\x20timeout.','catch','getUser','31156NgVYwP','connect','isConnected','560020cxvhUn'];_0x14d8=function(){return _0x37f7be;};return _0x14d8();}import{Plugin as _0x367fa2}from'ckeditor5/src/core.js';import{User as _0x44d001,TrackChangesService as _0x17f04f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0xb9dcb2}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x2aed42}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x53884e}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x367fa2{static [_0x37f0df(0x1a8)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x17f04f)());[_0x37f0df(0x1b7)];[_0x37f0df(0x196)];static get[_0x37f0df(0x19e)](){const _0x58c43f=_0x37f0df;return[_0x2aed42,_0x58c43f(0x192),_0xb9dcb2];}static get[_0x37f0df(0x193)](){const _0x390395=_0x37f0df;return _0x390395(0x1c9);}static get[_0x37f0df(0x197)](){return!0x0;}static get[_0x37f0df(0x1b9)](){return!0x0;}constructor(_0x343231){const _0x4a6e91=_0x37f0df;super(_0x343231);const _0x374890=this[_0x4a6e91(0x1bb)][_0x4a6e91(0x1af)][_0x4a6e91(0x19c)](_0x4a6e91(0x194));this[_0x4a6e91(0x1b7)]=new Map(),this[_0x4a6e91(0x196)]=new m[(_0x4a6e91(0x1a8))](_0x374890);}[_0x37f0df(0x199)](){const _0x36db9b=_0x37f0df,_0x192155=this[_0x36db9b(0x1bb)][_0x36db9b(0x1ac)][_0x36db9b(0x19c)](_0xb9dcb2),_0x3fa3a4=this[_0x36db9b(0x1bb)][_0x36db9b(0x1ac)][_0x36db9b(0x19c)](_0x36db9b(0x192));return _0x3fa3a4[_0x36db9b(0x1bf)]={'getSuggestion':async _0xa7ab5f=>{const _0x1f4a40=_0x36db9b;await this[_0x1f4a40(0x1b8)]();const _0x1a948d=await this[_0x1f4a40(0x196)][_0x1f4a40(0x19c)](_0xa7ab5f)[_0x1f4a40(0x1b1)](it);return await this[_0x1f4a40(0x1c7)]([_0x1a948d]),_0x1a948d;},'addSuggestion':async({id:_0x33a323,type:_0x2109ef,data:_0x5adfc9,originalSuggestionId:_0x1c7257,attributes:_0x3bf8e5})=>{const _0x1a36f4=_0x36db9b;await this[_0x1a36f4(0x1b8)]();const _0x4dbaf7={'id':_0x33a323,'type':_0x2109ef,'data':_0x5adfc9,'originalSuggestionId':_0x1c7257,'attributes':_0x3bf8e5},_0x161f97=await this[_0x1a36f4(0x196)][_0x1a36f4(0x1cd)](_0x33a323,_0x2109ef,_0x5adfc9,_0x1c7257,_0x3bf8e5)[_0x1a36f4(0x1b1)](_0x1c1393=>{if(Z(_0x1c1393))return new Promise(_0x251fbb=>{const _0xd0dff8=_0x3c9b;this[_0xd0dff8(0x1b7)][_0xd0dff8(0x1c6)](_0x33a323,{'resolve':_0x251fbb,'suggestionData':_0x4dbaf7});});throw _0x1c1393;});return this[_0x1a36f4(0x1b7)][_0x1a36f4(0x18f)](_0x33a323),_0x161f97;},'updateSuggestion':async(_0x228bd7,_0x2796af)=>{const _0x2182af=_0x36db9b;if(await this[_0x2182af(0x1b8)](),_0x2182af(0x19a)!==_0x2796af[_0x2182af(0x1a7)])return this[_0x2182af(0x196)][_0x2182af(0x1c4)](_0x228bd7,_0x2796af)[_0x2182af(0x1b1)](it);}},this[_0x36db9b(0x1ca)](this[_0x36db9b(0x196)],_0x36db9b(0x1c8),(_0x2898ed,_0x31f414)=>{const _0x100201=_0x36db9b;_0x3fa3a4[_0x100201(0x1bc)](_0x31f414['id'])&&(_0x3fa3a4[_0x100201(0x19d)](_0x31f414['id'])[_0x100201(0x1a6)]=_0x31f414[_0x100201(0x1a6)]);}),this[_0x36db9b(0x196)][_0x36db9b(0x1b4)](_0x192155[_0x36db9b(0x1a2)])[_0x36db9b(0x1a1)](_0xa56492=>(_0x192155[_0x36db9b(0x1c3)](this),this[_0x36db9b(0x1c7)](_0xa56492)[_0x36db9b(0x1a1)](()=>{const _0x54b678=_0x36db9b;for(const _0x6a1149 of _0xa56492){_0x3fa3a4[_0x54b678(0x1ab)](_0x6a1149)[_0x54b678(0x1a5)]=!0x0;}})));}async[_0x37f0df(0x1ba)](){const _0x82adde=_0x37f0df,_0x1f7c88=this[_0x82adde(0x1bb)][_0x82adde(0x1ac)][_0x82adde(0x19c)](_0x82adde(0x192)),{connection:_0x4967db}=this[_0x82adde(0x1bb)][_0x82adde(0x1ac)][_0x82adde(0x19c)](_0xb9dcb2),_0x52b214=await this[_0x82adde(0x196)][_0x82adde(0x1b4)](_0x4967db);await this[_0x82adde(0x1c7)](_0x52b214);for(const {suggestionData:_0x123705,resolve:_0x5e8f2b}of this[_0x82adde(0x1b7)][_0x82adde(0x1aa)]()){let _0xb3b981=_0x52b214[_0x82adde(0x191)](_0x562640=>_0x562640['id']===_0x123705['id']);_0xb3b981||(_0xb3b981=await this[_0x82adde(0x196)][_0x82adde(0x1cd)](_0x123705['id'],_0x123705[_0x82adde(0x1be)],_0x123705[_0x82adde(0x1a3)],_0x123705[_0x82adde(0x1cb)])),_0x5e8f2b(_0xb3b981);}for(const _0x55b580 of _0x52b214)_0x1f7c88[_0x82adde(0x1bc)](_0x55b580['id'])||_0x1f7c88[_0x82adde(0x1ab)](_0x55b580);}async[_0x37f0df(0x1b8)](){const _0x5edc24=_0x37f0df;this[_0x5edc24(0x196)][_0x5edc24(0x1b5)]||await new Promise(_0x3e1f55=>{const _0x3220b7=_0x5edc24;this[_0x3220b7(0x1ca)](this[_0x3220b7(0x196)],_0x3220b7(0x1c1),_0x90dcb3=>{const _0x3d690c=_0x3220b7;_0x90dcb3[_0x3d690c(0x1cc)](),_0x3e1f55();});});}async[_0x37f0df(0x1c7)](_0x3431aa){const _0x327504=_0x37f0df,_0x3f904d=this[_0x327504(0x1bb)][_0x327504(0x1ac)][_0x327504(0x19c)](_0x53884e),{connection:_0x30aff0}=this[_0x327504(0x1bb)][_0x327504(0x1ac)][_0x327504(0x19c)](_0xb9dcb2),_0x2a8f19=new Set();for(const {authorId:_0x428164}of _0x3431aa)_0x3f904d[_0x327504(0x1b2)](_0x428164)||_0x2a8f19[_0x327504(0x1cd)](_0x428164);if(0x0===_0x2a8f19[_0x327504(0x18e)])return;const _0x5abac7=await _0x44d001[_0x327504(0x1bd)](_0x30aff0,Array[_0x327504(0x1c2)](_0x2a8f19));for(const _0x5362b0 of _0x5abac7)_0x3f904d[_0x327504(0x1b2)](_0x5362b0['id'])||_0x3f904d[_0x327504(0x198)](_0x5362b0);}}export{m as CloudServicesTrackChangesAdapter};function _0x3c9b(_0x7a95eb,_0x4128de){const _0x14d88f=_0x14d8();return _0x3c9b=function(_0x3c9be1,_0x5cc091){_0x3c9be1=_0x3c9be1-0x18e;let _0x932314=_0x14d88f[_0x3c9be1];return _0x932314;},_0x3c9b(_0x7a95eb,_0x4128de);}function it(_0x4ff985){if(Z(_0x4ff985))return new Promise(()=>{});throw _0x4ff985;}function Z(_0x387c27){const _0x27a85d=_0x37f0df;return _0x387c27[_0x27a85d(0x1ae)][_0x27a85d(0x1c0)](_0x27a85d(0x1a0))||_0x387c27[_0x27a85d(0x1ae)][_0x27a85d(0x1c0)](_0x27a85d(0x1b0));}
|