@ckeditor/ckeditor5-real-time-collaboration 47.4.0-alpha.6 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/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
|
-
const
|
|
23
|
+
const _0x2e0ba4=_0x2c39;(function(_0x3b4236,_0x1214f1){const _0x564d5c=_0x2c39,_0x3d4dbd=_0x3b4236();while(!![]){try{const _0x738e34=-parseInt(_0x564d5c(0x171))/0x1*(-parseInt(_0x564d5c(0x157))/0x2)+parseInt(_0x564d5c(0x16f))/0x3+-parseInt(_0x564d5c(0x16d))/0x4+parseInt(_0x564d5c(0x191))/0x5*(parseInt(_0x564d5c(0x15a))/0x6)+parseInt(_0x564d5c(0x165))/0x7+parseInt(_0x564d5c(0x15b))/0x8*(-parseInt(_0x564d5c(0x169))/0x9)+parseInt(_0x564d5c(0x154))/0xa*(-parseInt(_0x564d5c(0x190))/0xb);if(_0x738e34===_0x1214f1)break;else _0x3d4dbd['push'](_0x3d4dbd['shift']());}catch(_0x33834b){_0x3d4dbd['push'](_0x3d4dbd['shift']());}}}(_0x7b1c,0x1e230));import{ContextPlugin as _0x15123e}from'ckeditor5/src/core.js';import{Collection as _0xc17dfc,CKEditorError as _0x1e2322}from'ckeditor5/src/utils.js';function _0x7b1c(){const _0x2170a8=['376558VazdPj','_handleSessionAdd','role','sessionAdd:','171TOwxRU','get','init','connection','47276utVbya','_registeredSessions','675609SczPwW','stopListening','1vkLZfj','add','channelConnectedUsers','set','register','isMe','listenTo','orderNumber','sessionId','getUserSessions','hiddenInPresenceList','channelSessions','assign','requires','_createUser','mySessionId','values','sessions-register-already-registered','change:state','_handleSessionRemove','allConnectedUsers','isOfficialPlugin','connected','getUser','defineMe','_users','sessions-unregister-not-exist','_uniqueUsersCount','fire','remove','plugins','385pYanyq','2845BoCmbH','forEach','context','60010qUnTqK','delete','size','10622asyuGv','user','getUserBySessionId','1506jKyjYZ','34456KQbAby','unregister','clear','has','Sessions','isPremiumPlugin','addUser','state','getUserRole','pluginName'];_0x7b1c=function(){return _0x2170a8;};return _0x7b1c();}import{WebSocketGateway as _0x2d2352}from'./websocketgateway.js';import{Users as _0x2e798e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2c39(_0xff774c,_0x5c6808){const _0x7b1cfa=_0x7b1c();return _0x2c39=function(_0x2c3938,_0x5ce592){_0x2c3938=_0x2c3938-0x154;let _0x25bde3=_0x7b1cfa[_0x2c3938];return _0x25bde3;},_0x2c39(_0xff774c,_0x5c6808);}export class Sessions extends _0x15123e{[_0x2e0ba4(0x17c)];[_0x2e0ba4(0x173)];[_0x2e0ba4(0x185)];[_0x2e0ba4(0x16e)];[_0x2e0ba4(0x18c)];[_0x2e0ba4(0x18a)];static get[_0x2e0ba4(0x164)](){const _0x421ad7=_0x2e0ba4;return _0x421ad7(0x15f);}static get[_0x2e0ba4(0x186)](){return!0x0;}static get[_0x2e0ba4(0x160)](){return!0x0;}static get[_0x2e0ba4(0x17e)](){return[_0x2d2352,_0x2e798e];}constructor(_0x36e23d){const _0x55025a=_0x2e0ba4;super(_0x36e23d),this[_0x55025a(0x17c)]=new Map(),this[_0x55025a(0x173)]=new Map(),this[_0x55025a(0x185)]=new _0xc17dfc(),this[_0x55025a(0x16e)]=new Map(),this[_0x55025a(0x18c)]=0x0,this[_0x55025a(0x18a)]=this[_0x55025a(0x193)][_0x55025a(0x18f)][_0x55025a(0x16a)](_0x2e798e);}[_0x2e0ba4(0x16b)](){const _0x172f3a=_0x2e0ba4,_0x390d6c=this[_0x172f3a(0x193)][_0x172f3a(0x18f)][_0x172f3a(0x16a)](_0x2d2352);this[_0x172f3a(0x177)](_0x390d6c,_0x172f3a(0x183),(_0x56f494,_0x3a5078,_0x44ef9c)=>{const _0x994ffe=_0x172f3a;if(_0x994ffe(0x187)!==_0x44ef9c)this[_0x994ffe(0x17c)][_0x994ffe(0x192)](_0x4cca25=>_0x4cca25[_0x994ffe(0x15d)]()),this[_0x994ffe(0x173)][_0x994ffe(0x192)](_0x386cd1=>_0x386cd1[_0x994ffe(0x15d)]()),this[_0x994ffe(0x185)][_0x994ffe(0x15d)]();else{for(const [_0x16265,_0x4f3b52]of this[_0x994ffe(0x16e)])for(const _0x15a2a6 of _0x4f3b52)this[_0x994ffe(0x166)](_0x16265,_0x15a2a6);}}),this[_0x172f3a(0x17f)](_0x390d6c[_0x172f3a(0x16c)]['me'],!0x0);}[_0x2e0ba4(0x175)](_0x43e55c,_0x43faf9){const _0x1e256f=_0x2e0ba4;if(this[_0x1e256f(0x16e)][_0x1e256f(0x15e)](_0x43e55c))throw new _0x1e2322(_0x1e256f(0x182),null,{'channelId':_0x43e55c});this[_0x1e256f(0x16e)][_0x1e256f(0x174)](_0x43e55c,_0x43faf9),this[_0x1e256f(0x17c)][_0x1e256f(0x174)](_0x43e55c,new _0xc17dfc()),this[_0x1e256f(0x173)][_0x1e256f(0x174)](_0x43e55c,new _0xc17dfc()),this[_0x1e256f(0x177)](_0x43faf9,_0x1e256f(0x172),(_0x1216f3,_0x9be698)=>this[_0x1e256f(0x166)](_0x43e55c,_0x9be698)),this[_0x1e256f(0x177)](_0x43faf9,_0x1e256f(0x18e),(_0xee4803,_0x207500)=>this[_0x1e256f(0x184)](_0x43e55c,_0x207500));for(const _0x183761 of _0x43faf9)this[_0x1e256f(0x166)](_0x43e55c,_0x183761);}[_0x2e0ba4(0x15c)](_0x50f598){const _0x500530=_0x2e0ba4;if(!this[_0x500530(0x16e)][_0x500530(0x15e)](_0x50f598))throw new _0x1e2322(_0x500530(0x18b),null,{'channelId':_0x50f598});const _0x372ac8=this[_0x500530(0x16e)][_0x500530(0x16a)](_0x50f598);this[_0x500530(0x170)](_0x372ac8);for(const _0x1dcc0a of _0x372ac8)_0x500530(0x187)===this[_0x500530(0x193)][_0x500530(0x18f)][_0x500530(0x16a)](_0x2d2352)[_0x500530(0x162)]&&this[_0x500530(0x184)](_0x50f598,_0x1dcc0a);this[_0x500530(0x16e)][_0x500530(0x155)](_0x50f598),this[_0x500530(0x17c)][_0x500530(0x155)](_0x50f598),this[_0x500530(0x173)][_0x500530(0x155)](_0x50f598);}get[_0x2e0ba4(0x180)](){const _0x50d8a1=_0x2e0ba4;return this[_0x50d8a1(0x193)][_0x50d8a1(0x18f)][_0x50d8a1(0x16a)](_0x2d2352)[_0x50d8a1(0x16c)][_0x50d8a1(0x179)];}[_0x2e0ba4(0x159)](_0x15ec92){const _0x4bd7e9=_0x2e0ba4;for(const _0x2e4ef0 of this[_0x4bd7e9(0x17c)][_0x4bd7e9(0x181)]())for(const _0x557720 of _0x2e4ef0)if(_0x557720['id']===_0x15ec92)return _0x557720[_0x4bd7e9(0x158)];}[_0x2e0ba4(0x17a)](_0x8026a3,_0x3d682a){const _0x51c350=_0x2e0ba4,_0x3fa551=_0x3d682a?[this[_0x51c350(0x17c)][_0x51c350(0x16a)](_0x3d682a)]:this[_0x51c350(0x17c)][_0x51c350(0x181)](),_0x284eea=new Set();for(const _0x635d53 of _0x3fa551)for(const _0x229696 of _0x635d53)_0x229696[_0x51c350(0x158)]['id']===_0x8026a3['id']&&_0x284eea[_0x51c350(0x172)](_0x229696['id']);return _0x284eea;}[_0x2e0ba4(0x163)](_0x4e2125){const _0x45ffc5=_0x2e0ba4;for(const _0x4d7e4e of this[_0x45ffc5(0x17c)][_0x45ffc5(0x181)]())for(const _0x95c7e of _0x4d7e4e)if(_0x95c7e[_0x45ffc5(0x158)]===_0x4e2125)return _0x95c7e[_0x45ffc5(0x167)];}[_0x2e0ba4(0x166)](_0x1693a5,_0x2e8dd4){const _0x4969d1=_0x2e0ba4;if(_0x4969d1(0x187)!==this[_0x4969d1(0x193)][_0x4969d1(0x18f)][_0x4969d1(0x16a)](_0x2d2352)[_0x4969d1(0x162)])return;const _0x4b0216=_0x2e8dd4[_0x4969d1(0x158)],_0x3c91cc=this[_0x4969d1(0x18a)][_0x4969d1(0x188)](_0x4b0216['id'])||this[_0x4969d1(0x17f)](_0x4b0216),_0x5115dd=Object[_0x4969d1(0x17d)]({},_0x2e8dd4,{'user':_0x3c91cc});if(this[_0x4969d1(0x17c)][_0x4969d1(0x16a)](_0x1693a5)[_0x4969d1(0x172)](_0x5115dd),!_0x4b0216[_0x4969d1(0x17b)]){const _0x1b0108=this[_0x4969d1(0x173)][_0x4969d1(0x16a)](_0x1693a5);_0x1b0108[_0x4969d1(0x15e)](_0x3c91cc['id'])||_0x1b0108[_0x4969d1(0x172)](_0x3c91cc),this[_0x4969d1(0x185)][_0x4969d1(0x15e)](_0x3c91cc['id'])||_0x4b0216[_0x4969d1(0x17b)]||this[_0x4969d1(0x185)][_0x4969d1(0x172)](_0x3c91cc,_0x3c91cc[_0x4969d1(0x176)]?0x0:void 0x0);}this[_0x4969d1(0x18d)](_0x4969d1(0x168)+_0x1693a5,{'channelId':_0x1693a5,'session':_0x5115dd});}[_0x2e0ba4(0x184)](_0x5ae8ab,_0xbc578a){const _0x407bc1=_0x2e0ba4;if(_0x407bc1(0x187)!==this[_0x407bc1(0x193)][_0x407bc1(0x18f)][_0x407bc1(0x16a)](_0x2d2352)[_0x407bc1(0x162)])return;const _0x1ff30b=this[_0x407bc1(0x173)][_0x407bc1(0x16a)](_0x5ae8ab),_0x51feba=_0xbc578a[_0x407bc1(0x158)];_0x51feba['id']&&(this[_0x407bc1(0x17c)][_0x407bc1(0x16a)](_0x5ae8ab)[_0x407bc1(0x18e)](_0xbc578a['id']),_0x1ff30b[_0x407bc1(0x15e)](_0x51feba['id'])&&!this[_0x407bc1(0x17a)](_0x51feba,_0x5ae8ab)[_0x407bc1(0x156)]&&_0x1ff30b[_0x407bc1(0x18e)](_0x51feba['id']),this[_0x407bc1(0x185)][_0x407bc1(0x16a)](_0x51feba['id'])&&!this[_0x407bc1(0x17a)](_0x51feba)[_0x407bc1(0x156)]&&this[_0x407bc1(0x185)][_0x407bc1(0x18e)](_0x51feba['id']));}[_0x2e0ba4(0x17f)](_0x4e5579,_0x210ca6){const _0x2d7385=_0x2e0ba4,_0x3ef7fe=this[_0x2d7385(0x18a)][_0x2d7385(0x161)](_0x4e5579);return _0x210ca6&&this[_0x2d7385(0x18a)][_0x2d7385(0x189)](_0x4e5579['id']),_0x3ef7fe[_0x2d7385(0x178)]=this[_0x2d7385(0x18c)]++,_0x3ef7fe;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x431357=_0x15c9;function _0x15c9(_0x3df5dc,_0x34e4c9){const _0x193292=_0x1932();return _0x15c9=function(_0x15c992,_0x5903c7){_0x15c992=_0x15c992-0x167;let _0x192ed6=_0x193292[_0x15c992];return _0x192ed6;},_0x15c9(_0x3df5dc,_0x34e4c9);}(function(_0x36205e,_0x22f8d0){const _0x4cd55f=_0x15c9,_0x544828=_0x36205e();while(!![]){try{const _0xc55563=-parseInt(_0x4cd55f(0x1a3))/0x1+-parseInt(_0x4cd55f(0x1c9))/0x2+parseInt(_0x4cd55f(0x1df))/0x3*(parseInt(_0x4cd55f(0x1a4))/0x4)+parseInt(_0x4cd55f(0x1a7))/0x5*(parseInt(_0x4cd55f(0x1f0))/0x6)+-parseInt(_0x4cd55f(0x1be))/0x7+parseInt(_0x4cd55f(0x1e1))/0x8*(-parseInt(_0x4cd55f(0x1d5))/0x9)+-parseInt(_0x4cd55f(0x168))/0xa*(-parseInt(_0x4cd55f(0x1cc))/0xb);if(_0xc55563===_0x22f8d0)break;else _0x544828['push'](_0x544828['shift']());}catch(_0x472262){_0x544828['push'](_0x544828['shift']());}}}(_0x1932,0x1fdf5));import{Plugin as _0x25593f}from'ckeditor5/src/core.js';function _0x1932(){const _0x46972f=['isInline','orderNumber','batch','innerHTML','toDomElement','type','9ZtGjbS','data-session-id','updateMarker','false','isOfficialPlugin','createUIElement','user:','user:position:','enqueueChange','hasContent','607134wCsWQo','contenteditable','309704HbANOc','mySessionId','getCustomProperty','ck-user__marker\x20','ck-user__marker_hovered','user:range','applyOperation','markerName','remove','isDocumentOperation','markerToHighlight','toRange','marker','isPremiumPlugin','removeMarker','6eiHOCm','has','getSelectionClass','createElement','412650xBuwpp','stopListening','createUserMarkerOperations','fromRange','editingDowncast','update:user:range','markerToElement','getUserBySessionId','classList','schema','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','editing','getMarkerClass','isObject','getAttribute','ck-user__marker-tooltip','root','size','rootName','name','addMarker','tableCell','change:range','init','render','end','document','commands','markers','ck-user__selection','add','getRange','mouseleave','clear','element','getNearestSelectionRange','spellcheck','detach','pluginName','isCollapsed','newRange','isSimilar','split','parent','view','mapper','textContent','mouseenter','selection','keydown','hasDomSelection','listenTo','Escape','user:position','getPositions','setCustomProperty','$graveyard','getFirstRange','nodeAfter','221881hrrHaU','4wwrBjn','_createdBatches','removeClass','1235605gyVKmf','getStart','get','getContainedElement','start','plugins','reconvertMarker','markerRange','destroy','set','oldRange','addEventListener','createRange','for','highest','model','outerHTML','afterInit','UserMarkers','userPositionMarker','requires','span','_domEmitter','997640McEBjn','change','setAttribute','color','markerNameToElements','delete','$text','editor','undo','deletionPosition','conversion','79262GqIFQe','user:range:','isLimit','33jFUQhR','startsWith','checkChild'];_0x1932=function(){return _0x46972f;};return _0x1932();}import{global as _0x5f0bb2,DomEmitterMixin as _0x50c5c7}from'ckeditor5/src/utils.js';import{Sessions as _0x1cd03f}from'./sessions.js';import{ModelLiveRange as _0x5b7371}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x25593f{[_0x431357(0x1bd)]=new(_0x50c5c7())();static get[_0x431357(0x1bb)](){return[_0x1cd03f];}static get[_0x431357(0x18e)](){const _0x5aba50=_0x431357;return _0x5aba50(0x1b9);}static get[_0x431357(0x1d9)](){return!0x0;}static get[_0x431357(0x1ee)](){return!0x0;}[_0x431357(0x17f)](){const _0x539d65=_0x431357,_0x3654e=this[_0x539d65(0x1c5)],_0xb5d841=_0x3654e[_0x539d65(0x1ac)][_0x539d65(0x1a9)](_0x1cd03f);_0x3654e[_0x539d65(0x1c8)][_0x539d65(0x1b4)](_0x539d65(0x16c))[_0x539d65(0x16e)]({'model':_0x539d65(0x19d),'view':(_0x59e890,{writer:_0x330507})=>function(_0x189b3c,_0x54f9b3,_0xa7fb52,_0x5250ea){const _0x2a91e7=_0x539d65,_0x559a2a=_0x189b3c[_0x2a91e7(0x1e8)][_0x2a91e7(0x192)](':')[0x2],_0x4fc777=_0xa7fb52[_0x2a91e7(0x16f)](_0x559a2a);if(!_0x4fc777||_0x559a2a===_0xa7fb52[_0x2a91e7(0x1e2)])return;if(!_0x5250ea[_0x2a91e7(0x1b6)][_0x2a91e7(0x171)][_0x2a91e7(0x1ce)](_0x189b3c[_0x2a91e7(0x1ae)][_0x2a91e7(0x1ab)],_0x2a91e7(0x1c4)))return;const _0x334d89={'class':_0x2a91e7(0x1e4)+_0x4fc777[_0x2a91e7(0x1c1)][_0x2a91e7(0x174)](),'data-name':_0x4fc777[_0x2a91e7(0x17b)],'data-session-id':_0x559a2a},_0x568d9e=_0x5250ea[_0x2a91e7(0x1b6)][_0x2a91e7(0x184)][_0x2a91e7(0x1a9)](_0x189b3c[_0x2a91e7(0x1e8)]),_0x8da809=_0x568d9e[_0x2a91e7(0x1a8)](),_0x5a8e4d=_0x8da809[_0x2a91e7(0x1a2)],_0x2412cf=_0x5250ea[_0x2a91e7(0x1b6)][_0x2a91e7(0x171)];if(_0x5a8e4d&&_0x2412cf[_0x2a91e7(0x175)](_0x5a8e4d)&&_0x2412cf[_0x2a91e7(0x1cf)](_0x5a8e4d)&&!_0x5250ea[_0x2a91e7(0x1b6)][_0x2a91e7(0x184)][_0x2a91e7(0x1a9)](_0x2a91e7(0x1ca)+_0x559a2a)[_0x2a91e7(0x187)]()[_0x2a91e7(0x18f)])return;const _0x5c2274=_0x8da809[_0x2a91e7(0x193)];return _0x5250ea[_0x2a91e7(0x1b6)][_0x2a91e7(0x171)][_0x2a91e7(0x1cb)](_0x5c2274)&&!_0x5250ea[_0x2a91e7(0x1b6)][_0x2a91e7(0x1de)](_0x5c2274)&&(_0x334d89[_0x2a91e7(0x1e0)]=!0x1),function(_0x12987a,_0x2991d0,_0x3c486d){const _0x457a92=_0x2a91e7,_0x1f745e=_0x12987a[_0x457a92(0x1da)](_0x457a92(0x1bc),_0x2991d0);return _0x12987a[_0x457a92(0x19f)](_0x457a92(0x1ba),!0x0,_0x1f745e),_0x1f745e[_0x457a92(0x180)]=function(_0x2f031e){const _0x43bd11=_0x457a92,_0x15141d=this[_0x43bd11(0x1d3)](_0x2f031e),_0x524640=document[_0x43bd11(0x167)](_0x43bd11(0x1bc));return _0x524640[_0x43bd11(0x170)][_0x43bd11(0x186)](_0x43bd11(0x177)),_0x524640[_0x43bd11(0x1c0)](_0x43bd11(0x1e0),_0x43bd11(0x1d8)),_0x524640[_0x43bd11(0x1c0)](_0x43bd11(0x18c),_0x43bd11(0x1d8)),_0x524640[_0x43bd11(0x196)]=_0x3c486d[_0x43bd11(0x17b)],_0x15141d[_0x43bd11(0x1d2)]=_0x43bd11(0x172)+_0x524640[_0x43bd11(0x1b7)]+'',_0x15141d[_0x43bd11(0x1b2)](_0x43bd11(0x197),()=>{const _0x280101=_0x43bd11;_0x15141d[_0x280101(0x170)][_0x280101(0x186)](_0x280101(0x1e5));}),_0x15141d[_0x43bd11(0x1b2)](_0x43bd11(0x188),()=>{const _0x40a043=_0x43bd11;_0x15141d[_0x40a043(0x170)][_0x40a043(0x1e9)](_0x40a043(0x1e5));}),_0x15141d;},_0x1f745e[_0x457a92(0x191)]=function(_0x1dad19){const _0x1c1d24=_0x457a92;return!(!this[_0x1c1d24(0x1e3)](_0x1c1d24(0x1ba))||!_0x1dad19[_0x1c1d24(0x1e3)](_0x1c1d24(0x1ba))||this[_0x1c1d24(0x176)](_0x1c1d24(0x1d6))!=_0x1dad19[_0x1c1d24(0x176)](_0x1c1d24(0x1d6)));},_0x1f745e;}(_0x54f9b3,_0x334d89,_0x4fc777);}(_0x59e890,_0x330507,_0xb5d841,_0x3654e)}),_0x3654e[_0x539d65(0x1c8)][_0x539d65(0x1b4)](_0x539d65(0x16c))[_0x539d65(0x1eb)]({'model':_0x539d65(0x1e6),'view':_0xa736c9=>function(_0x365bcc,_0x3113d8){const _0x5f35fe=_0x539d65,_0x13a8d8=_0x365bcc[_0x5f35fe(0x1e8)][_0x5f35fe(0x192)](':')[0x2];if(_0x13a8d8===_0x3113d8[_0x5f35fe(0x1e2)])return null;const _0x5a310f=_0x3113d8[_0x5f35fe(0x16f)](_0x13a8d8);if(!_0x5a310f)return{'id':_0x13a8d8,'classes':[]};return{'id':_0x13a8d8,'classes':[_0x5f35fe(0x185),_0x5a310f[_0x5f35fe(0x1c1)][_0x5f35fe(0x1f2)]()],'attributes':{'data-session-id':_0x13a8d8},'priority':0x7d0+_0x5a310f[_0x5f35fe(0x1d0)]};}(_0xa736c9,_0xb5d841)}),function(_0x2cce19){const _0x274763=_0x539d65,_0x1b4e86=_0x2cce19[_0x274763(0x1b6)],_0x16ea68=new Map(),_0x20bc6c=_0x2cce19[_0x274763(0x1ac)][_0x274763(0x1a9)](_0x1cd03f);_0x1b4e86[_0x274763(0x184)]['on'](_0x274763(0x16d),(_0x2437a9,_0x46c46f,_0x184e82,_0x169de9)=>{const _0x4f4d93=_0x274763;if(!_0x169de9&&_0x16ea68[_0x4f4d93(0x1a9)](_0x46c46f[_0x4f4d93(0x17b)]))return _0x16ea68[_0x4f4d93(0x1a9)](_0x46c46f[_0x4f4d93(0x17b)])[_0x4f4d93(0x18d)](),void _0x16ea68[_0x4f4d93(0x1c3)](_0x46c46f[_0x4f4d93(0x17b)]);const _0x1e1587=_0x46c46f[_0x4f4d93(0x17b)][_0x4f4d93(0x192)](':')[0x2];if(_0x1e1587===_0x20bc6c[_0x4f4d93(0x1e2)])return;const _0x4947f8=_0x4f4d93(0x1dc)+_0x1e1587;_0x1b4e86[_0x4f4d93(0x184)][_0x4f4d93(0x1f1)](_0x4947f8)&&_0x2cce19[_0x4f4d93(0x173)][_0x4f4d93(0x1ad)](_0x4947f8),_0x46c46f['on'](_0x4f4d93(0x17e),(_0x3e66ec,_0x474975,_0x350d0c)=>{const _0x98f741=_0x4f4d93;if(_0x98f741(0x1a0)!=_0x474975[_0x98f741(0x178)][_0x98f741(0x17a)]&&_0x98f741(0x1a0)==_0x46c46f[_0x98f741(0x187)]()[_0x98f741(0x178)][_0x98f741(0x17a)]&&!_0x16ea68[_0x98f741(0x1f1)](_0x46c46f[_0x98f741(0x17b)])){const _0x282bd6=_0x1b4e86[_0x98f741(0x171)][_0x98f741(0x18b)](_0x350d0c[_0x98f741(0x1c7)]);if(_0x282bd6){const _0x3e542a=_0x5b7371[_0x98f741(0x16b)](_0x282bd6);_0x16ea68[_0x98f741(0x1b0)](_0x46c46f[_0x98f741(0x17b)],_0x3e542a),_0x3e542a['on'](_0x98f741(0x17e),(_0x28beb7,_0x4c6453,_0x559c82)=>{const _0x3dc2c5=_0x98f741;if(_0x3dc2c5(0x1a0)==_0x3e542a[_0x3dc2c5(0x178)][_0x3dc2c5(0x17a)]){const _0xd238c5=_0x1b4e86[_0x3dc2c5(0x171)][_0x3dc2c5(0x18b)](_0x559c82[_0x3dc2c5(0x1c7)]);_0xd238c5?(_0x3e542a[_0x3dc2c5(0x1ab)]=_0xd238c5[_0x3dc2c5(0x1ab)],_0x3e542a[_0x3dc2c5(0x181)]=_0xd238c5[_0x3dc2c5(0x181)]):(_0x16ea68[_0x3dc2c5(0x1c3)](_0x46c46f[_0x3dc2c5(0x17b)]),_0x3e542a[_0x3dc2c5(0x18d)]());}});}}});}),_0x1b4e86[_0x274763(0x182)]['on'](_0x274763(0x1bf),()=>{const _0x4f742c=_0x274763;_0x16ea68[_0x4f742c(0x179)]>0x0&&_0x1b4e86[_0x4f742c(0x1dd)]({'isUndoable':!0x1},_0x4df472=>{const _0xf647ee=_0x4f742c;for(const [_0x157f61,_0x3096ff]of _0x16ea68)_0xf647ee(0x1a0)==_0x1b4e86[_0xf647ee(0x184)][_0xf647ee(0x1a9)](_0x157f61)[_0xf647ee(0x187)]()[_0xf647ee(0x178)][_0xf647ee(0x17a)]&&(Z(_0x157f61[_0xf647ee(0x192)](':')[0x2],_0x3096ff[_0xf647ee(0x1ec)](),_0x1b4e86,_0x4df472),_0x3096ff[_0xf647ee(0x18d)]());_0x16ea68[_0xf647ee(0x189)]();});});}(_0x3654e),this[_0x539d65(0x1bd)][_0x539d65(0x19b)](_0x5f0bb2[_0x539d65(0x182)],_0x539d65(0x199),(_0x2f80dd,{key:_0x199d33})=>{const _0x1b3366=_0x539d65;_0x1b3366(0x19c)===_0x199d33&&function(_0x48f0b6){const _0xd40620=_0x1b3366;_0x48f0b6[_0xd40620(0x173)][_0xd40620(0x194)][_0xd40620(0x1bf)](_0x36c7fa=>{const _0x1f96da=_0xd40620;for(const _0x27c532 of _0x48f0b6[_0x1f96da(0x1b6)][_0x1f96da(0x184)]){if(!_0x27c532[_0x1f96da(0x17b)][_0x1f96da(0x1cd)](_0x1f96da(0x19d)))continue;const _0x41e132=_0x48f0b6[_0x1f96da(0x173)][_0x1f96da(0x195)][_0x1f96da(0x1c2)](_0x27c532[_0x1f96da(0x17b)]);if(_0x41e132){for(const _0x114c2c of _0x41e132)_0x36c7fa[_0x1f96da(0x1a6)](_0x1f96da(0x1e5),_0x114c2c);}}});}(_0x3654e);},{'useCapture':!0x0});}[_0x431357(0x1b8)](){const _0x2a528b=_0x431357,_0x543768=this[_0x2a528b(0x1c5)],_0x1e787d=_0x543768[_0x2a528b(0x183)][_0x2a528b(0x1a9)](_0x2a528b(0x1c6));_0x1e787d&&_0x543768[_0x2a528b(0x1b6)]['on'](_0x2a528b(0x1e7),(_0x44736a,_0x2b4660)=>{const _0x3a65bc=_0x2a528b,_0x21cc88=_0x2b4660[0x0];if(!_0x21cc88[_0x3a65bc(0x1ea)])return;if(_0x3a65bc(0x1ed)!=_0x21cc88[_0x3a65bc(0x1d4)]||!_0x21cc88[_0x3a65bc(0x17b)][_0x3a65bc(0x1cd)](_0x3a65bc(0x1db)))return;const _0x1acc92=_0x21cc88[_0x3a65bc(0x1d1)];_0x1e787d[_0x3a65bc(0x1a5)][_0x3a65bc(0x1f1)](_0x1acc92)&&(_0x21cc88[_0x3a65bc(0x190)]=_0x21cc88[_0x3a65bc(0x1b1)]?_0x543768[_0x3a65bc(0x1b6)][_0x3a65bc(0x1b3)](_0x21cc88[_0x3a65bc(0x1b1)][_0x3a65bc(0x1ab)],_0x21cc88[_0x3a65bc(0x1b1)][_0x3a65bc(0x181)]):null);},{'priority':_0x2a528b(0x1b5)});}[_0x431357(0x1af)](){const _0x7373b1=_0x431357;return this[_0x7373b1(0x1bd)][_0x7373b1(0x169)](),super[_0x7373b1(0x1af)]();}[_0x431357(0x16a)](){const _0x5c179c=_0x431357,_0x7f1496=this[_0x5c179c(0x1c5)],_0x59a38a=_0x7f1496[_0x5c179c(0x1b6)][_0x5c179c(0x182)],_0x4acec0=_0x7f1496[_0x5c179c(0x1ac)][_0x5c179c(0x1a9)](_0x1cd03f);_0x7f1496[_0x5c179c(0x1b6)][_0x5c179c(0x1dd)]({'isUndoable':!0x1},_0x184c87=>{const _0xfd6287=_0x5c179c,_0x1e42a3=_0xfd6287(0x1ca)+_0x4acec0[_0xfd6287(0x1e2)],_0x43ce1b=_0xfd6287(0x1dc)+_0x4acec0[_0xfd6287(0x1e2)],_0x5e998c=_0x7f1496[_0xfd6287(0x1b6)][_0xfd6287(0x184)][_0xfd6287(0x1f1)](_0x1e42a3);_0x7f1496[_0xfd6287(0x173)][_0xfd6287(0x194)][_0xfd6287(0x19a)]?Z(_0x4acec0[_0xfd6287(0x1e2)],_0x59a38a[_0xfd6287(0x198)][_0xfd6287(0x1a1)](),_0x7f1496[_0xfd6287(0x1b6)],_0x184c87):_0x5e998c&&(_0x184c87[_0xfd6287(0x1ef)](_0x1e42a3),_0x184c87[_0xfd6287(0x1ef)](_0x43ce1b));});}}function Z(_0x3d0daa,_0x3554e3,_0x39210b,_0x4fc670){const _0x49b85e=_0x431357,_0x39f8bc=_0x49b85e(0x1ca)+_0x3d0daa,_0x4d2f09=_0x49b85e(0x1dc)+_0x3d0daa,_0x759a6b=_0x3554e3[_0x49b85e(0x1aa)]();let _0x2e0e46=_0x3554e3[_0x49b85e(0x1ab)];if(_0x759a6b&&_0x759a6b['is'](_0x49b85e(0x18a),_0x49b85e(0x17d))){const _0x1b8373=function(_0x3b0e8b,_0x11abc2){const _0x218b3f=_0x49b85e;for(const _0x126469 of _0x3b0e8b[_0x218b3f(0x19e)]())if(_0x11abc2[_0x218b3f(0x171)][_0x218b3f(0x1ce)](_0x126469,_0x218b3f(0x1c4)))return _0x126469;}(_0x3554e3,_0x39210b);_0x1b8373&&(_0x2e0e46=_0x1b8373,_0x3554e3=_0x4fc670[_0x49b85e(0x1b3)](_0x2e0e46));}const _0x18af34=_0x4fc670[_0x49b85e(0x1b3)](_0x2e0e46);_0x39210b[_0x49b85e(0x184)][_0x49b85e(0x1f1)](_0x39f8bc)?(_0x4fc670[_0x49b85e(0x1d7)](_0x39f8bc,{'range':_0x3554e3}),_0x4fc670[_0x49b85e(0x1d7)](_0x4d2f09,{'range':_0x18af34})):(_0x4fc670[_0x49b85e(0x17c)](_0x39f8bc,{'range':_0x3554e3,'usingOperation':!0x0}),_0x4fc670[_0x49b85e(0x17c)](_0x4d2f09,{'range':_0x18af34,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x3ff936=_0x4490;(function(_0x32b176,_0x21d7b0){const _0x1b8b85=_0x4490,_0x194b3e=_0x32b176();while(!![]){try{const _0x4ca342=-parseInt(_0x1b8b85(0x220))/0x1+-parseInt(_0x1b8b85(0x22e))/0x2+-parseInt(_0x1b8b85(0x252))/0x3*(-parseInt(_0x1b8b85(0x1de))/0x4)+-parseInt(_0x1b8b85(0x204))/0x5+parseInt(_0x1b8b85(0x1e7))/0x6+parseInt(_0x1b8b85(0x257))/0x7*(parseInt(_0x1b8b85(0x1fa))/0x8)+parseInt(_0x1b8b85(0x225))/0x9;if(_0x4ca342===_0x21d7b0)break;else _0x194b3e['push'](_0x194b3e['shift']());}catch(_0x42b6fe){_0x194b3e['push'](_0x194b3e['shift']());}}}(_0x5b36,0xd807c));import{Plugin as _0x4eb4fc}from'ckeditor5/src/core.js';import{global as _0x120b12,DomEmitterMixin as _0x4895f2}from'ckeditor5/src/utils.js';function _0x4490(_0x35f438,_0x3fc438){const _0x5b3626=_0x5b36();return _0x4490=function(_0x4490b4,_0x2fa190){_0x4490b4=_0x4490b4-0x1cf;let _0x5d086d=_0x5b3626[_0x4490b4];return _0x5d086d;},_0x4490(_0x35f438,_0x3fc438);}import{Sessions as _0x16f702}from'./sessions.js';import{ModelLiveRange as _0x1e76cc}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x5b36(){const _0x5e9ce1=['editingDowncast','markers','outerHTML','nodeAfter','root','has','document','mapper','type','markerRange','382744AyUyLJ','reconvertMarker','marker','getAttribute','for','set','plugins','_createdBatches','editing','isOfficialPlugin','2099070XBotPi','checkChild','mySessionId','UserMarkers','addEventListener','setCustomProperty','span','delete','remove','getFirstRange','spellcheck','user:range:','createUserMarkerOperations','getContainedElement','update:user:range','view','toDomElement','markerToHighlight','parent','oldRange','data-session-id','schema','change:range','user:range','detach','ck-user__selection','textContent','batch','897839bJITHd','isObject','createUIElement','tableCell','mouseenter','15278859PDPaAq','userPositionMarker','isSimilar','listenTo','markerToElement','stopListening','color','render','name','2895626jmWxcx','end','conversion','clear','false','user:position:','toRange','isPremiumPlugin','undo','model','fromRange','createElement','change','$text','get','user:','createRange','isLimit','ck-user__marker\x20','commands','startsWith','applyOperation','add','getPositions','orderNumber','_domEmitter','removeClass','ck-user__marker-tooltip','rootName','getNearestSelectionRange','element','split','editor','hasDomSelection','selection','ck-user__marker_hovered','3vygyrz','getMarkerClass','addMarker','hasContent','size','175quXWwv','keydown','isDocumentOperation','markerNameToElements','getStart','getUserBySessionId','deletionPosition','enqueueChange','destroy','setAttribute','getRange','start','markerName','innerHTML','updateMarker','classList','Escape','36588kDHOAX','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','mouseleave','newRange','pluginName','user:position','requires','removeMarker','afterInit','4484718jeNaxI','isInline','isCollapsed','$graveyard','init','getSelectionClass','getCustomProperty','contenteditable','highest'];_0x5b36=function(){return _0x5e9ce1;};return _0x5b36();}export class UserMarkers extends _0x4eb4fc{[_0x3ff936(0x247)]=new(_0x4895f2())();static get[_0x3ff936(0x1e4)](){return[_0x16f702];}static get[_0x3ff936(0x1e2)](){const _0xbef577=_0x3ff936;return _0xbef577(0x207);}static get[_0x3ff936(0x203)](){return!0x0;}static get[_0x3ff936(0x235)](){return!0x0;}[_0x3ff936(0x1eb)](){const _0x4341f9=_0x3ff936,_0x1fea7f=this[_0x4341f9(0x24e)],_0x1c426d=_0x1fea7f[_0x4341f9(0x200)][_0x4341f9(0x23c)](_0x16f702);_0x1fea7f[_0x4341f9(0x230)][_0x4341f9(0x1fe)](_0x4341f9(0x1f0))[_0x4341f9(0x229)]({'model':_0x4341f9(0x1e3),'view':(_0x12ad16,{writer:_0xd9fce1})=>function(_0x33f9d8,_0x4783d7,_0x2509ae,_0x256fb5){const _0xf9f92d=_0x4341f9,_0x13cfda=_0x33f9d8[_0xf9f92d(0x1d9)][_0xf9f92d(0x24d)](':')[0x2],_0x4b2ac0=_0x2509ae[_0xf9f92d(0x1d2)](_0x13cfda);if(!_0x4b2ac0||_0x13cfda===_0x2509ae[_0xf9f92d(0x206)])return;if(!_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x219)][_0xf9f92d(0x205)](_0x33f9d8[_0xf9f92d(0x1f9)][_0xf9f92d(0x1d8)],_0xf9f92d(0x23b)))return;const _0xb7d676={'class':_0xf9f92d(0x240)+_0x4b2ac0[_0xf9f92d(0x22b)][_0xf9f92d(0x253)](),'data-name':_0x4b2ac0[_0xf9f92d(0x22d)],'data-session-id':_0x13cfda},_0x39cd07=_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x1f1)][_0xf9f92d(0x23c)](_0x33f9d8[_0xf9f92d(0x1d9)]),_0x2bbd1d=_0x39cd07[_0xf9f92d(0x1d1)](),_0x57941b=_0x2bbd1d[_0xf9f92d(0x1f3)],_0x338b9f=_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x219)];if(_0x57941b&&_0x338b9f[_0xf9f92d(0x221)](_0x57941b)&&_0x338b9f[_0xf9f92d(0x1e8)](_0x57941b)&&!_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x1f1)][_0xf9f92d(0x23c)](_0xf9f92d(0x20f)+_0x13cfda)[_0xf9f92d(0x1d7)]()[_0xf9f92d(0x1e9)])return;const _0x5cb3fe=_0x2bbd1d[_0xf9f92d(0x216)];return _0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x219)][_0xf9f92d(0x23f)](_0x5cb3fe)&&!_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x255)](_0x5cb3fe)&&(_0xb7d676[_0xf9f92d(0x1ee)]=!0x1),function(_0xa40eda,_0x4102c7,_0x3f80be){const _0x2d71b0=_0xf9f92d,_0x15badb=_0xa40eda[_0x2d71b0(0x222)](_0x2d71b0(0x20a),_0x4102c7);return _0xa40eda[_0x2d71b0(0x209)](_0x2d71b0(0x226),!0x0,_0x15badb),_0x15badb[_0x2d71b0(0x22c)]=function(_0x21d78e){const _0x2d87f1=_0x2d71b0,_0x5b442f=this[_0x2d87f1(0x214)](_0x21d78e),_0x7daec5=document[_0x2d87f1(0x239)](_0x2d87f1(0x20a));return _0x7daec5[_0x2d87f1(0x1dc)][_0x2d87f1(0x244)](_0x2d87f1(0x249)),_0x7daec5[_0x2d87f1(0x1d6)](_0x2d87f1(0x1ee),_0x2d87f1(0x232)),_0x7daec5[_0x2d87f1(0x1d6)](_0x2d87f1(0x20e),_0x2d87f1(0x232)),_0x7daec5[_0x2d87f1(0x21e)]=_0x3f80be[_0x2d87f1(0x22d)],_0x5b442f[_0x2d87f1(0x1da)]=_0x2d87f1(0x1df)+_0x7daec5[_0x2d87f1(0x1f2)]+'',_0x5b442f[_0x2d87f1(0x208)](_0x2d87f1(0x224),()=>{const _0x11716e=_0x2d87f1;_0x5b442f[_0x11716e(0x1dc)][_0x11716e(0x244)](_0x11716e(0x251));}),_0x5b442f[_0x2d87f1(0x208)](_0x2d87f1(0x1e0),()=>{const _0x4d972d=_0x2d87f1;_0x5b442f[_0x4d972d(0x1dc)][_0x4d972d(0x20c)](_0x4d972d(0x251));}),_0x5b442f;},_0x15badb[_0x2d71b0(0x227)]=function(_0x2aec73){const _0x4e7a3d=_0x2d71b0;return!(!this[_0x4e7a3d(0x1ed)](_0x4e7a3d(0x226))||!_0x2aec73[_0x4e7a3d(0x1ed)](_0x4e7a3d(0x226))||this[_0x4e7a3d(0x1fd)](_0x4e7a3d(0x218))!=_0x2aec73[_0x4e7a3d(0x1fd)](_0x4e7a3d(0x218)));},_0x15badb;}(_0x4783d7,_0xb7d676,_0x4b2ac0);}(_0x12ad16,_0xd9fce1,_0x1c426d,_0x1fea7f)}),_0x1fea7f[_0x4341f9(0x230)][_0x4341f9(0x1fe)](_0x4341f9(0x1f0))[_0x4341f9(0x215)]({'model':_0x4341f9(0x21b),'view':_0x26baf7=>function(_0x4a1bd9,_0x56aa22){const _0xbb6726=_0x4341f9,_0x4351af=_0x4a1bd9[_0xbb6726(0x1d9)][_0xbb6726(0x24d)](':')[0x2];if(_0x4351af===_0x56aa22[_0xbb6726(0x206)])return null;const _0x2cb8c8=_0x56aa22[_0xbb6726(0x1d2)](_0x4351af);if(!_0x2cb8c8)return{'id':_0x4351af,'classes':[]};return{'id':_0x4351af,'classes':[_0xbb6726(0x21d),_0x2cb8c8[_0xbb6726(0x22b)][_0xbb6726(0x1ec)]()],'attributes':{'data-session-id':_0x4351af},'priority':0x7d0+_0x2cb8c8[_0xbb6726(0x246)]};}(_0x26baf7,_0x1c426d)}),function(_0x3117e1){const _0x4c6140=_0x4341f9,_0x3c6b59=_0x3117e1[_0x4c6140(0x237)],_0x3731c3=new Map(),_0xe93aed=_0x3117e1[_0x4c6140(0x200)][_0x4c6140(0x23c)](_0x16f702);_0x3c6b59[_0x4c6140(0x1f1)]['on'](_0x4c6140(0x212),(_0x30e989,_0x1e270,_0x6a2125,_0x4cde12)=>{const _0x571964=_0x4c6140;if(!_0x4cde12&&_0x3731c3[_0x571964(0x23c)](_0x1e270[_0x571964(0x22d)]))return _0x3731c3[_0x571964(0x23c)](_0x1e270[_0x571964(0x22d)])[_0x571964(0x21c)](),void _0x3731c3[_0x571964(0x20b)](_0x1e270[_0x571964(0x22d)]);const _0x582d32=_0x1e270[_0x571964(0x22d)][_0x571964(0x24d)](':')[0x2];if(_0x582d32===_0xe93aed[_0x571964(0x206)])return;const _0x376e67=_0x571964(0x233)+_0x582d32;_0x3c6b59[_0x571964(0x1f1)][_0x571964(0x1f5)](_0x376e67)&&_0x3117e1[_0x571964(0x202)][_0x571964(0x1fb)](_0x376e67),_0x1e270['on'](_0x571964(0x21a),(_0x15e035,_0x2b06b2,_0x338b16)=>{const _0x32d347=_0x571964;if(_0x32d347(0x1ea)!=_0x2b06b2[_0x32d347(0x1f4)][_0x32d347(0x24a)]&&_0x32d347(0x1ea)==_0x1e270[_0x32d347(0x1d7)]()[_0x32d347(0x1f4)][_0x32d347(0x24a)]&&!_0x3731c3[_0x32d347(0x1f5)](_0x1e270[_0x32d347(0x22d)])){const _0x4a95f5=_0x3c6b59[_0x32d347(0x219)][_0x32d347(0x24b)](_0x338b16[_0x32d347(0x1d3)]);if(_0x4a95f5){const _0x17da11=_0x1e76cc[_0x32d347(0x238)](_0x4a95f5);_0x3731c3[_0x32d347(0x1ff)](_0x1e270[_0x32d347(0x22d)],_0x17da11),_0x17da11['on'](_0x32d347(0x21a),(_0x5c5e82,_0x3ba634,_0x5320e1)=>{const _0x704c7=_0x32d347;if(_0x704c7(0x1ea)==_0x17da11[_0x704c7(0x1f4)][_0x704c7(0x24a)]){const _0x48d343=_0x3c6b59[_0x704c7(0x219)][_0x704c7(0x24b)](_0x5320e1[_0x704c7(0x1d3)]);_0x48d343?(_0x17da11[_0x704c7(0x1d8)]=_0x48d343[_0x704c7(0x1d8)],_0x17da11[_0x704c7(0x22f)]=_0x48d343[_0x704c7(0x22f)]):(_0x3731c3[_0x704c7(0x20b)](_0x1e270[_0x704c7(0x22d)]),_0x17da11[_0x704c7(0x21c)]());}});}}});}),_0x3c6b59[_0x4c6140(0x1f6)]['on'](_0x4c6140(0x23a),()=>{const _0x322db8=_0x4c6140;_0x3731c3[_0x322db8(0x256)]>0x0&&_0x3c6b59[_0x322db8(0x1d4)]({'isUndoable':!0x1},_0x252d08=>{const _0x5a3086=_0x322db8;for(const [_0x6978ee,_0x34166b]of _0x3731c3)_0x5a3086(0x1ea)==_0x3c6b59[_0x5a3086(0x1f1)][_0x5a3086(0x23c)](_0x6978ee)[_0x5a3086(0x1d7)]()[_0x5a3086(0x1f4)][_0x5a3086(0x24a)]&&(q(_0x6978ee[_0x5a3086(0x24d)](':')[0x2],_0x34166b[_0x5a3086(0x234)](),_0x3c6b59,_0x252d08),_0x34166b[_0x5a3086(0x21c)]());_0x3731c3[_0x5a3086(0x231)]();});});}(_0x1fea7f),this[_0x4341f9(0x247)][_0x4341f9(0x228)](_0x120b12[_0x4341f9(0x1f6)],_0x4341f9(0x258),(_0x30bde7,{key:_0x324b5a})=>{const _0x191d71=_0x4341f9;_0x191d71(0x1dd)===_0x324b5a&&function(_0x46305b){const _0x45837c=_0x191d71;_0x46305b[_0x45837c(0x202)][_0x45837c(0x213)][_0x45837c(0x23a)](_0x4498d1=>{const _0x32c363=_0x45837c;for(const _0x54e01c of _0x46305b[_0x32c363(0x237)][_0x32c363(0x1f1)]){if(!_0x54e01c[_0x32c363(0x22d)][_0x32c363(0x242)](_0x32c363(0x1e3)))continue;const _0x4e0f5a=_0x46305b[_0x32c363(0x202)][_0x32c363(0x1f7)][_0x32c363(0x1d0)](_0x54e01c[_0x32c363(0x22d)]);if(_0x4e0f5a){for(const _0x136602 of _0x4e0f5a)_0x4498d1[_0x32c363(0x248)](_0x32c363(0x251),_0x136602);}}});}(_0x1fea7f);},{'useCapture':!0x0});}[_0x3ff936(0x1e6)](){const _0x5dd98c=_0x3ff936,_0x4aafe2=this[_0x5dd98c(0x24e)],_0x3a8f77=_0x4aafe2[_0x5dd98c(0x241)][_0x5dd98c(0x23c)](_0x5dd98c(0x236));_0x3a8f77&&_0x4aafe2[_0x5dd98c(0x237)]['on'](_0x5dd98c(0x243),(_0x1c1e35,_0x132f96)=>{const _0x41468a=_0x5dd98c,_0xc9d3ec=_0x132f96[0x0];if(!_0xc9d3ec[_0x41468a(0x1cf)])return;if(_0x41468a(0x1fc)!=_0xc9d3ec[_0x41468a(0x1f8)]||!_0xc9d3ec[_0x41468a(0x22d)][_0x41468a(0x242)](_0x41468a(0x23d)))return;const _0x5a8da5=_0xc9d3ec[_0x41468a(0x21f)];_0x3a8f77[_0x41468a(0x201)][_0x41468a(0x1f5)](_0x5a8da5)&&(_0xc9d3ec[_0x41468a(0x1e1)]=_0xc9d3ec[_0x41468a(0x217)]?_0x4aafe2[_0x41468a(0x237)][_0x41468a(0x23e)](_0xc9d3ec[_0x41468a(0x217)][_0x41468a(0x1d8)],_0xc9d3ec[_0x41468a(0x217)][_0x41468a(0x22f)]):null);},{'priority':_0x5dd98c(0x1ef)});}[_0x3ff936(0x1d5)](){const _0x5931a1=_0x3ff936;return this[_0x5931a1(0x247)][_0x5931a1(0x22a)](),super[_0x5931a1(0x1d5)]();}[_0x3ff936(0x210)](){const _0x219110=_0x3ff936,_0x4595ee=this[_0x219110(0x24e)],_0x340dc7=_0x4595ee[_0x219110(0x237)][_0x219110(0x1f6)],_0x4d3232=_0x4595ee[_0x219110(0x200)][_0x219110(0x23c)](_0x16f702);_0x4595ee[_0x219110(0x237)][_0x219110(0x1d4)]({'isUndoable':!0x1},_0xb8ac87=>{const _0x45569a=_0x219110,_0x4fd089=_0x45569a(0x20f)+_0x4d3232[_0x45569a(0x206)],_0x108048=_0x45569a(0x233)+_0x4d3232[_0x45569a(0x206)],_0x386be0=_0x4595ee[_0x45569a(0x237)][_0x45569a(0x1f1)][_0x45569a(0x1f5)](_0x4fd089);_0x4595ee[_0x45569a(0x202)][_0x45569a(0x213)][_0x45569a(0x24f)]?q(_0x4d3232[_0x45569a(0x206)],_0x340dc7[_0x45569a(0x250)][_0x45569a(0x20d)](),_0x4595ee[_0x45569a(0x237)],_0xb8ac87):_0x386be0&&(_0xb8ac87[_0x45569a(0x1e5)](_0x4fd089),_0xb8ac87[_0x45569a(0x1e5)](_0x108048));});}}function q(_0x1e9df8,_0x2ce2e9,_0x28221f,_0x2b4152){const _0x533e53=_0x3ff936,_0x3e96b3=_0x533e53(0x20f)+_0x1e9df8,_0x49c0c1=_0x533e53(0x233)+_0x1e9df8,_0x4f73c0=_0x2ce2e9[_0x533e53(0x211)]();let _0x349f3f=_0x2ce2e9[_0x533e53(0x1d8)];if(_0x4f73c0&&_0x4f73c0['is'](_0x533e53(0x24c),_0x533e53(0x223))){const _0x22c5d2=function(_0x3cfb8a,_0x13e739){const _0x13e46d=_0x533e53;for(const _0x4251db of _0x3cfb8a[_0x13e46d(0x245)]())if(_0x13e739[_0x13e46d(0x219)][_0x13e46d(0x205)](_0x4251db,_0x13e46d(0x23b)))return _0x4251db;}(_0x2ce2e9,_0x28221f);_0x22c5d2&&(_0x349f3f=_0x22c5d2,_0x2ce2e9=_0x2b4152[_0x533e53(0x23e)](_0x349f3f));}const _0x279579=_0x2b4152[_0x533e53(0x23e)](_0x349f3f);_0x28221f[_0x533e53(0x1f1)][_0x533e53(0x1f5)](_0x3e96b3)?(_0x2b4152[_0x533e53(0x1db)](_0x3e96b3,{'range':_0x2ce2e9}),_0x2b4152[_0x533e53(0x1db)](_0x49c0c1,{'range':_0x279579})):(_0x2b4152[_0x533e53(0x254)](_0x3e96b3,{'range':_0x2ce2e9,'usingOperation':!0x0}),_0x2b4152[_0x533e53(0x254)](_0x49c0c1,{'range':_0x279579,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x1b883c=_0x5a88;function _0x5a88(_0x3f2b39,_0x18dacf){const _0x3c95b6=_0x3c95();return _0x5a88=function(_0x5a8832,_0x547b38){_0x5a8832=_0x5a8832-0x14e;let _0xf0e967=_0x3c95b6[_0x5a8832];return _0xf0e967;},_0x5a88(_0x3f2b39,_0x18dacf);}(function(_0x597c9d,_0x6c5b44){const _0x9156e8=_0x5a88,_0x1dea1f=_0x597c9d();while(!![]){try{const _0x49a614=parseInt(_0x9156e8(0x185))/0x1+-parseInt(_0x9156e8(0x16e))/0x2+-parseInt(_0x9156e8(0x196))/0x3+-parseInt(_0x9156e8(0x195))/0x4*(-parseInt(_0x9156e8(0x191))/0x5)+parseInt(_0x9156e8(0x170))/0x6*(parseInt(_0x9156e8(0x192))/0x7)+parseInt(_0x9156e8(0x176))/0x8*(parseInt(_0x9156e8(0x15d))/0x9)+-parseInt(_0x9156e8(0x14f))/0xa;if(_0x49a614===_0x6c5b44)break;else _0x1dea1f['push'](_0x1dea1f['shift']());}catch(_0x5736d8){_0x1dea1f['push'](_0x1dea1f['shift']());}}}(_0x3c95,0xbde9b));import{ContextPlugin as _0x1c4a65}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x2bf45d,CKEditorError as _0x49985d}from'ckeditor5/src/utils.js';function _0x3c95(){const _0x91cea5=['change:me','error','Connected\x20users\x20limit\x20exceeded','webSocketUrl','get','state','listenTo','initialReconnectionInterval','_reconnect','delete','stopListening','1273715FstszZ','DISCONNECTED','_domEmitter','showWarning','function','connection','websocketgateway-missing-websocket-url','WebSocketGateway','isInReconnectionStack','CONNECTED','websocketgateway-invalid-plugin-interface','removeFromReconnectionStack','10UTldti','210eWaJKc','context','_reconnectionStack','3082492ffuHbF','506952vxgkcw','bind','isPremiumPlugin','36987850zYlzBG','reconnect','websocketgateway-plugin-already-registered','_isBrowserOffline','then','set','constructor','has','code','from','real-time-collaboration','disconnect','cloudservices-reconnection-error','pluginName','18VAHlUS','CloudServices','_shouldPluginsReconnect','connected','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.','online','token','requires','isOfficialPlugin','addToReconnectionStack','catch','connect','cloudServices.connectionTimeout','add','init','offline','cloudServices.requestTimeout','217698EzQdFc','limitExceeded','185490fHBVdF','cloudservices-init','CONNECTING','websocketgateway-missing-token','define','config','4048360jsuONZ','plugins','all','destroy'];_0x3c95=function(){return _0x91cea5;};return _0x3c95();}import{WebSocketGateway as _0x248116,WEB_SOCKET_GATEWAY_STATES as _0x79ea2f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x5d7fb8}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x1c4a65{static [_0x1b883c(0x18c)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x248116)());static [_0x1b883c(0x181)]=0x3e8;[_0x1b883c(0x18a)];[_0x1b883c(0x194)];[_0x1b883c(0x15f)];[_0x1b883c(0x187)];static get[_0x1b883c(0x164)](){const _0x343fac=_0x1b883c;return[_0x343fac(0x15e),_0x5d7fb8];}static get[_0x1b883c(0x15c)](){const _0x126761=_0x1b883c;return _0x126761(0x18c);}static get[_0x1b883c(0x165)](){return!0x0;}static get[_0x1b883c(0x14e)](){return!0x0;}constructor(_0x295663){const _0xd07859=_0x1b883c;super(_0x295663),this[_0xd07859(0x154)](_0xd07859(0x17f),_0x79ea2f[_0xd07859(0x18e)]),this[_0xd07859(0x154)](_0xd07859(0x152),!0x1),this[_0xd07859(0x194)]=new Set(),this[_0xd07859(0x15f)]=!0x1,this[_0xd07859(0x187)]=new(_0x2bf45d())();}[_0x1b883c(0x16b)](){const _0x3ef235=_0x1b883c,_0x181d70=this[_0x3ef235(0x193)],_0x53de7d=_0x181d70[_0x3ef235(0x177)][_0x3ef235(0x17e)](_0x3ef235(0x15e)),_0x529faf=_0x181d70[_0x3ef235(0x177)][_0x3ef235(0x17e)](_0x5d7fb8);if(!_0x53de7d[_0x3ef235(0x163)])throw new _0x49985d(_0x3ef235(0x173),this);if(!_0x53de7d[_0x3ef235(0x17d)])throw new _0x49985d(_0x3ef235(0x18b),this);return this[_0x3ef235(0x187)][_0x3ef235(0x180)](window,_0x3ef235(0x16c),()=>this[_0x3ef235(0x152)]=!0x0),this[_0x3ef235(0x187)][_0x3ef235(0x180)](window,_0x3ef235(0x162),()=>this[_0x3ef235(0x152)]=!0x1),this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x174)](_0x3ef235(0x169),0xa),this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x174)](_0x3ef235(0x16d),0x14),WebSocketGateway[_0x3ef235(0x18c)][_0x3ef235(0x168)](_0x53de7d[_0x3ef235(0x163)],_0x53de7d[_0x3ef235(0x17d)],{'timeout':0x3e8*this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x17e)](_0x3ef235(0x169)),'requestTimeout':0x3e8*this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x17e)](_0x3ef235(0x16d))})[_0x3ef235(0x153)](_0x59b34c=>{const _0x1793d9=_0x3ef235;if(this[_0x1793d9(0x18a)]=_0x59b34c,this[_0x1793d9(0x197)](_0x1793d9(0x17f))['to'](_0x59b34c,_0x1793d9(0x17f),this,_0x1793d9(0x152),(_0x357ba8,_0x3a8fdc)=>(_0x1793d9(0x160)!==_0x357ba8&&(this[_0x1793d9(0x15f)]=!0x0),_0x3a8fdc||_0x357ba8!==_0x79ea2f[_0x1793d9(0x18e)]?_0x79ea2f[_0x1793d9(0x186)]:this[_0x1793d9(0x17f)]==_0x79ea2f[_0x1793d9(0x186)]&&this[_0x1793d9(0x15f)]?(this[_0x1793d9(0x15f)]=!0x1,this[_0x1793d9(0x182)](),_0x79ea2f[_0x1793d9(0x172)]):_0x79ea2f[_0x1793d9(0x18e)])),this[_0x1793d9(0x18a)]['on'](_0x1793d9(0x17b),(_0x25d2f0,_0x29f42f)=>{const _0x27d764=_0x1793d9;if(_0x27d764(0x16f)!==_0x29f42f[_0x27d764(0x157)])throw console[_0x27d764(0x17b)](_0x29f42f),new _0x49985d(_0x27d764(0x171),null,{'originalError':_0x29f42f});_0x529faf[_0x27d764(0x188)](_0x27d764(0x161),{'title':_0x27d764(0x17c),'namespace':_0x27d764(0x159)});}),!_0x59b34c['me'])return new Promise(_0x3a1952=>_0x59b34c['on'](_0x1793d9(0x17a),_0x3a1952));})[_0x3ef235(0x167)](_0x5b7a95=>{const _0x466a54=_0x3ef235;throw console[_0x466a54(0x17b)](_0x5b7a95),new _0x49985d(_0x466a54(0x171),null,{'originalError':_0x5b7a95});});}[_0x1b883c(0x166)](_0x9c918e){const _0x493dd7=_0x1b883c;if(_0x493dd7(0x189)!=typeof _0x9c918e[_0x493dd7(0x150)])throw new _0x49985d(_0x493dd7(0x18f),this);if(this[_0x493dd7(0x18d)](_0x9c918e))throw new _0x49985d(_0x493dd7(0x151),this,{'name':_0x9c918e[_0x493dd7(0x155)][_0x493dd7(0x15c)]});this[_0x493dd7(0x194)][_0x493dd7(0x16a)](_0x9c918e);}[_0x1b883c(0x190)](_0x1e95be){const _0x3841cf=_0x1b883c;this[_0x3841cf(0x194)][_0x3841cf(0x183)](_0x1e95be);}[_0x1b883c(0x18d)](_0x464669){const _0x1b6e05=_0x1b883c;return this[_0x1b6e05(0x194)][_0x1b6e05(0x156)](_0x464669);}[_0x1b883c(0x182)](){const _0x3822cf=_0x1b883c;return this[_0x3822cf(0x18a)][_0x3822cf(0x150)]()[_0x3822cf(0x153)](()=>Promise[_0x3822cf(0x178)](Array[_0x3822cf(0x158)](this[_0x3822cf(0x194)],_0x2f6c8e=>_0x2f6c8e[_0x3822cf(0x150)]())))[_0x3822cf(0x153)](()=>this[_0x3822cf(0x17f)]=_0x79ea2f[_0x3822cf(0x18e)])[_0x3822cf(0x167)](_0x250e33=>{const _0x50762a=_0x3822cf;throw console[_0x50762a(0x17b)](_0x250e33),new _0x49985d(_0x50762a(0x15b),this[_0x50762a(0x193)]);});}[_0x1b883c(0x15a)](){const _0x253d25=_0x1b883c;this[_0x253d25(0x18a)]&&this[_0x253d25(0x18a)][_0x253d25(0x15a)](),this[_0x253d25(0x17f)]=_0x79ea2f[_0x253d25(0x186)],this[_0x253d25(0x187)][_0x253d25(0x184)]();}[_0x1b883c(0x179)](){const _0x47812e=_0x1b883c;this[_0x47812e(0x15a)](),super[_0x47812e(0x179)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x12d124)());[_0x8a2e0a(0x1e0)];[_0x8a2e0a(0x1ff)];[_0x8a2e0a(0x208)];[_0x8a2e0a(0x212)];static get[_0x8a2e0a(0x1e5)](){const _0x1ed95a=_0x8a2e0a;return[_0x4c6e0f,_0x4e41c2,_0x1ed95a(0x1e2),_0x228f8b,_0x215f55];}static get[_0x8a2e0a(0x20a)](){const _0x4bf618=_0x8a2e0a;return _0x4bf618(0x1f1);}static get[_0x8a2e0a(0x1ec)](){return!0x0;}static get[_0x8a2e0a(0x21c)](){return!0x0;}constructor(_0x325acf){const _0x36fa15=_0x8a2e0a;super(_0x325acf);const _0xbdbfaa=this[_0x36fa15(0x221)][_0x36fa15(0x232)][_0x36fa15(0x1f6)](_0x36fa15(0x218));this[_0x36fa15(0x1e0)]=null,this[_0x36fa15(0x1ff)]=this[_0x36fa15(0x221)][_0x36fa15(0x1db)][_0x36fa15(0x1f6)](_0x36fa15(0x23a)),this[_0x36fa15(0x208)]=new CloudServicesRevisionHistoryAdapter[(_0x36fa15(0x20f))](_0xbdbfaa);}async[_0x8a2e0a(0x1e8)](){const _0x564318=_0x8a2e0a,_0xc27ca9=this[_0x564318(0x221)][_0x564318(0x1db)][_0x564318(0x1f6)](_0x4e41c2),_0x174935=_0xc27ca9[_0x564318(0x220)],_0x1bf681=this[_0x564318(0x221)][_0x564318(0x1db)][_0x564318(0x1f6)](_0x4c6e0f);this[_0x564318(0x1ff)][_0x564318(0x248)]({'history':_0x174935,'getLatestVersion':()=>this[_0x564318(0x22a)](),'getCurrentRevisionId':()=>_0xc27ca9[_0x564318(0x226)]});const _0x3ef562=this[_0x564318(0x221)][_0x564318(0x232)][_0x564318(0x1f6)](_0x564318(0x219))||_0x1230ec,_0x10fc99=await _0xcf9255[_0x564318(0x205)](_0x1bf681[_0x564318(0x1ef)],_0x3ef562);this[_0x564318(0x221)][_0x564318(0x1db)][_0x564318(0x1f6)](_0x564318(0x1e2))[_0x564318(0x201)]={'getRevision':async({revisionId:_0x449451})=>(await this[_0x564318(0x23e)](),await this[_0x564318(0x208)][_0x564318(0x1e9)](_0x449451)),'updateRevisions':async _0x53498d=>{const _0x3651fd=_0x564318;await this[_0x3651fd(0x23e)]();const _0x4556bf=this[_0x3651fd(0x1ff)][_0x3651fd(0x21e)];if(_0x10fc99&&0x1===_0x53498d[_0x3651fd(0x242)]&&_0x53498d[0x0]['id']===_0x4556bf['id'])return _0x53498d;for(const _0x59af61 of _0x53498d)_0x59af61['id']===_0x4556bf['id']&&(_0x59af61[_0x3651fd(0x211)]=_0x59af61[_0x3651fd(0x238)]===_0x59af61[_0x3651fd(0x1f7)]);return this[_0x3651fd(0x208)][_0x3651fd(0x20d)](_0x53498d,this[_0x3651fd(0x1e0)])[_0x3651fd(0x251)](_0x40dcbd=>(this[_0x3651fd(0x1e0)]=_0x40dcbd,_0x53498d))[_0x3651fd(0x1dd)](_0x2c342b=>{const _0x25dea2=_0x3651fd;if(st(_0x2c342b)||_0x25dea2(0x240)===_0x2c342b[_0x25dea2(0x249)]&&void 0x0!==_0x2c342b[_0x25dea2(0x1e7)][_0x25dea2(0x1f0)]){for(const _0x52e371 of _0x53498d){!this[_0x25dea2(0x1ff)][_0x25dea2(0x20c)][_0x25dea2(0x1e9)](_0x52e371['id'])||this[_0x25dea2(0x1ff)][_0x25dea2(0x1de)](_0x52e371['id'],_0x52e371,!0x1);}if(st(_0x2c342b))throw _0x2c342b;return _0x53498d;}throw _0x2c342b;});}},this[_0x564318(0x210)](this[_0x564318(0x208)],_0x564318(0x24d),(_0x4dd4b5,{revisionsData:_0x412f42,requestId:_0x542333})=>{const _0x4d0f49=_0x564318;Math[_0x4d0f49(0x244)](..._0x412f42[_0x4d0f49(0x1dc)](_0x354298=>_0x354298[_0x4d0f49(0x1f7)]))>this[_0x4d0f49(0x24f)]()-0x1?this[_0x4d0f49(0x22a)]()[_0x4d0f49(0x251)](()=>{const _0x385488=_0x4d0f49;this[_0x385488(0x20e)](_0x412f42,_0x542333);}):this[_0x4d0f49(0x20e)](_0x412f42,_0x542333);});const {revisions:_0x3aa47c,requestId:_0x3a4524}=await this[_0x564318(0x208)][_0x564318(0x233)](_0x1bf681[_0x564318(0x1ef)]);_0x1bf681[_0x564318(0x228)](this),this[_0x564318(0x1e0)]=_0x3a4524,await this[_0x564318(0x1ed)](_0x3aa47c);for(const _0x28a32c of _0x3aa47c)this[_0x564318(0x1ff)][_0x564318(0x1f3)](_0x28a32c);this[_0x564318(0x210)](_0xc27ca9,_0x564318(0x23d),(_0x4f6efa,_0x3b2be1,_0x3447bb)=>{const _0x5eb548=_0x564318;_0x3447bb&&(this[_0x5eb548(0x212)]=_0xc27ca9[_0x5eb548(0x1e6)],_0x4f6efa[_0x5eb548(0x203)]());}),this[_0x564318(0x1ff)][_0x564318(0x23b)](_0x564318(0x22b))['to'](_0x1bf681,_0x564318(0x239),_0x556e86=>_0x556e86===_0x45f7b1[_0x564318(0x1fb)]);}async[_0x8a2e0a(0x235)](){const _0x3a903d=_0x8a2e0a,_0xf59597=this[_0x3a903d(0x221)][_0x3a903d(0x1db)][_0x3a903d(0x1f6)](_0x4c6e0f),_0x131858=this[_0x3a903d(0x221)][_0x3a903d(0x1db)][_0x3a903d(0x1f6)](_0x4e41c2),_0x3dd54d=async()=>{const _0x598849=_0x3a903d,_0x5cf362=this[_0x598849(0x1ff)][_0x598849(0x21e)],_0x3a22cd=_0x5cf362['id'],_0x14d2fc=_0x3a22cd!==_0x131858[_0x598849(0x226)];if(_0x14d2fc){const _0x7aaf57=_0x131858[_0x598849(0x1e6)]-this[_0x598849(0x212)],_0x1f6d40=this[_0x598849(0x24f)]();this[_0x598849(0x1ff)][_0x598849(0x21f)][_0x598849(0x1e3)]();if(_0x5cf362[_0x598849(0x1f7)]+_0x7aaf57!==_0x1f6d40){const _0x4f64e8=_0x5cf362[_0x598849(0x238)]+_0x7aaf57,_0xfc2a19=this[_0x598849(0x221)][_0x598849(0x1db)][_0x598849(0x1f6)](_0x215f55),_0x51ae8e=this[_0x598849(0x1ff)][_0x598849(0x1ea)]({'revision':_0x5cf362,'from':_0x4f64e8,'to':_0x1f6d40});_0x51ae8e['id']=_0x5cf362['id'];const _0x1cbcff=_0x51ae8e[_0x598849(0x22c)][_0x598849(0x1dc)](_0x473c86=>_0xfc2a19[_0x598849(0x1e4)](_0x473c86));_0x5cf362[_0x598849(0x207)]({..._0x51ae8e,'authors':_0x1cbcff},!0x0),this[_0x598849(0x1ff)][_0x598849(0x1de)](_0x5cf362['id'],_0x51ae8e,!0x0);}this[_0x598849(0x1ff)][_0x598849(0x24c)]=_0x1f6d40,(_0x5cf362[_0x598849(0x1f7)]===_0x5cf362[_0x598849(0x238)]&&!this[_0x598849(0x1ff)][_0x598849(0x234)][_0x598849(0x250)](_0x3a22cd)&&this[_0x598849(0x1ff)][_0x598849(0x20c)][_0x598849(0x243)][_0x598849(0x24e)](_0x3a22cd),this[_0x598849(0x1ff)][_0x598849(0x21b)](_0x1f6d40));}const {revisions:_0x372b4d,requestId:_0x52fb5d}=await this[_0x598849(0x208)][_0x598849(0x235)](_0xf59597[_0x598849(0x1ef)],this[_0x598849(0x1e0)]);_0x14d2fc&&_0x372b4d[_0x598849(0x242)]>0x0?_0x131858[_0x598849(0x20b)]():(await this[_0x598849(0x1ed)](_0x372b4d),this[_0x598849(0x20e)](_0x372b4d,_0x52fb5d),this[_0x598849(0x1ff)][_0x598849(0x215)]());};return _0x131858[_0x3a903d(0x231)]?_0x3dd54d():new Promise((_0x399bb3,_0x4bbc4e)=>{const _0xcd44bd=_0x3a903d;_0x131858[_0xcd44bd(0x229)](_0xcd44bd(0x23d),()=>{const _0x7bfbb4=_0xcd44bd;_0x3dd54d()[_0x7bfbb4(0x251)](_0x399bb3)[_0x7bfbb4(0x1dd)](_0x4bbc4e);});});}[_0x8a2e0a(0x1fa)](){const _0x46a835=_0x8a2e0a;super[_0x46a835(0x1fa)]();}async[_0x8a2e0a(0x23e)](){const _0x309a38=_0x8a2e0a;this[_0x309a38(0x208)][_0x309a38(0x237)]||await new Promise(_0x198cdd=>{const _0x148ffa=_0x309a38;this[_0x148ffa(0x210)](this[_0x148ffa(0x208)],_0x148ffa(0x21d),_0x56eb44=>{const _0x5c61cc=_0x148ffa;_0x56eb44[_0x5c61cc(0x203)](),_0x198cdd();});});}[_0x8a2e0a(0x24f)](){const _0x13e3ac=_0x8a2e0a,_0x14ca36=this[_0x13e3ac(0x221)][_0x13e3ac(0x1db)][_0x13e3ac(0x1f6)](_0x4e41c2)[_0x13e3ac(0x220)][_0x13e3ac(0x23c)]()[_0x13e3ac(0x222)]();for(const _0x77e78d of _0x14ca36)if(_0x13e3ac(0x209)!==_0x77e78d[_0x13e3ac(0x1f2)]||_0x77e78d[_0x13e3ac(0x1fe)])return _0x77e78d[_0x13e3ac(0x24a)]+0x1;}[_0x8a2e0a(0x22a)](){const _0x5ec8fa=_0x8a2e0a,_0x2d556a=this[_0x5ec8fa(0x221)][_0x5ec8fa(0x1db)][_0x5ec8fa(0x1f6)](_0x4e41c2);return new Promise(_0x325971=>{const _0x180160=_0x5ec8fa;_0x2d556a[_0x180160(0x241)]?_0x2d556a[_0x180160(0x229)](_0x180160(0x22d),()=>{const _0x2578c8=_0x180160;_0x325971(this[_0x2578c8(0x24f)]());}):_0x325971(this[_0x180160(0x24f)]());});}[_0x8a2e0a(0x20e)](_0x4d9836,_0x21e699){const _0x951f0c=_0x8a2e0a,_0x1bb361=this[_0x951f0c(0x1ff)][_0x951f0c(0x20c)];this[_0x951f0c(0x1e0)]=_0x21e699;for(const _0x31be5c of _0x4d9836){const _0x25fb4b=_0x1bb361[_0x951f0c(0x1e9)](_0x31be5c['id']);if(_0x25fb4b){if((_0x31be5c[_0x951f0c(0x238)]||_0x31be5c[_0x951f0c(0x1f7)])&&(_0x31be5c[_0x951f0c(0x1f4)]=null),_0x25fb4b===this[_0x951f0c(0x1ff)][_0x951f0c(0x21e)]){const _0x4a60a5=Math[_0x951f0c(0x244)](_0x25fb4b[_0x951f0c(0x1f7)],_0x31be5c[_0x951f0c(0x1f7)]),_0x46f6fc=Math[_0x951f0c(0x244)](_0x25fb4b[_0x951f0c(0x238)],_0x31be5c[_0x951f0c(0x238)]);let _0x4903ea;_0x25fb4b[_0x951f0c(0x1f7)]===_0x31be5c[_0x951f0c(0x1f7)]&&_0x25fb4b[_0x951f0c(0x238)]===_0x31be5c[_0x951f0c(0x238)]?(_0x4903ea=!0x0,this[_0x951f0c(0x204)](_0x31be5c)):_0x31be5c[_0x951f0c(0x1f7)]===_0x4a60a5&&_0x31be5c[_0x951f0c(0x238)]===_0x46f6fc?_0x4903ea=!0x1:(_0x25fb4b[_0x951f0c(0x1f7)]===_0x4a60a5&&_0x25fb4b[_0x951f0c(0x238)]===_0x46f6fc||this[_0x951f0c(0x1df)]({'revision':_0x25fb4b,'from':_0x46f6fc,'to':_0x4a60a5}),_0x4903ea=!0x0),_0x4903ea&&(delete _0x31be5c[_0x951f0c(0x238)],delete _0x31be5c[_0x951f0c(0x1f7)],delete _0x31be5c[_0x951f0c(0x1f4)],delete _0x31be5c[_0x951f0c(0x22f)],delete _0x31be5c[_0x951f0c(0x22c)]);}this[_0x951f0c(0x1ff)][_0x951f0c(0x1f9)](_0x31be5c),this[_0x951f0c(0x204)](_0x31be5c);}else this[_0x951f0c(0x1ff)][_0x951f0c(0x1f3)](_0x31be5c);}const _0x3ca38c=_0x1bb361[_0x951f0c(0x225)]();_0x3ca38c[_0x951f0c(0x222)]();for(let _0xa56ef4=0x0;_0xa56ef4<_0x3ca38c[_0x951f0c(0x242)]-0x1;_0xa56ef4++){const _0x531b29=_0x3ca38c[_0xa56ef4],_0xb99988=_0x3ca38c[_0xa56ef4+0x1];if(_0x531b29[_0x951f0c(0x238)]<_0xb99988[_0x951f0c(0x1f7)]){const _0x3e3497=_0xb99988[_0x951f0c(0x1f7)],_0x32f9d6=Math[_0x951f0c(0x244)](_0x3e3497,_0x531b29[_0x951f0c(0x1f7)]);this[_0x951f0c(0x1df)]({'revision':_0x531b29,'from':_0x3e3497,'to':_0x32f9d6});}}}[_0x8a2e0a(0x1df)]({revision:_0x604748,from:_0x5b77a8,to:_0x20ad53}={}){const _0xc3c705=_0x8a2e0a,_0x55849e=this[_0xc3c705(0x221)][_0xc3c705(0x1db)][_0xc3c705(0x1f6)](_0x215f55),_0x56e805=this[_0xc3c705(0x1ff)][_0xc3c705(0x1ea)]({'revision':_0x604748,'from':_0x5b77a8,'to':_0x20ad53});_0x56e805[_0xc3c705(0x224)]=_0x56e805[_0xc3c705(0x22c)][_0xc3c705(0x1dc)](_0x4be6d4=>_0x55849e[_0xc3c705(0x1e4)](_0x4be6d4)),_0x604748[_0xc3c705(0x207)](_0x56e805);}[_0x8a2e0a(0x204)](_0x3f4d1a){const _0x22e553=_0x8a2e0a,_0x414074={};_0x414074['id']=_0x3f4d1a['id'];for(const _0xb41e44 of Object[_0x22e553(0x245)](_0x3f4d1a))'id'!==_0xb41e44&&(_0x414074[_0xb41e44]=void 0x0);this[_0x22e553(0x1ff)][_0x22e553(0x1de)](_0x414074['id'],_0x414074,!0x0);}async[_0x8a2e0a(0x1ed)](_0x5204d4){const _0x4c5f62=_0x8a2e0a,_0x3f18f5=this[_0x4c5f62(0x221)][_0x4c5f62(0x1db)][_0x4c5f62(0x1f6)](_0x215f55),{connection:_0x34e6ea}=this[_0x4c5f62(0x221)][_0x4c5f62(0x1db)][_0x4c5f62(0x1f6)](_0x4c6e0f),_0x4005ec=new Set();for(const _0x1eeeea of _0x5204d4){for(const _0x37c565 of _0x1eeeea[_0x4c5f62(0x22c)])_0x4f486a(_0x37c565);_0x1eeeea[_0x4c5f62(0x213)]&&_0x4f486a(_0x1eeeea[_0x4c5f62(0x213)]);}if(0x0===_0x4005ec[_0x4c5f62(0x246)])return;const _0x58005b=await _0x48595c[_0x4c5f62(0x1fc)](_0x34e6ea,Array[_0x4c5f62(0x247)](_0x4005ec));for(const _0x4d55a1 of _0x58005b)_0x3f18f5[_0x4c5f62(0x1e4)](_0x4d55a1['id'])||_0x3f18f5[_0x4c5f62(0x22e)](_0x4d55a1);function _0x4f486a(_0x35c203){const _0x235a92=_0x4c5f62;_0x3f18f5[_0x235a92(0x1e4)](_0x35c203)||_0x4005ec[_0x235a92(0x236)](_0x35c203);}}}function st(_0x529c84){const _0x55bd6c=_0x8a2e0a;return _0x529c84[_0x55bd6c(0x1f8)][_0x55bd6c(0x21a)](_0x55bd6c(0x216))||_0x529c84[_0x55bd6c(0x1f8)][_0x55bd6c(0x21a)](_0x55bd6c(0x1e1))||_0x529c84[_0x55bd6c(0x1f8)][_0x55bd6c(0x21a)](_0x55bd6c(0x1fd));}
|
|
23
|
+
const _0x1cae30=_0x4945;(function(_0x27084a,_0x5ab13f){const _0x4f23f8=_0x4945,_0x14f9d4=_0x27084a();while(!![]){try{const _0x592735=-parseInt(_0x4f23f8(0x182))/0x1*(parseInt(_0x4f23f8(0x16d))/0x2)+parseInt(_0x4f23f8(0x1b0))/0x3*(-parseInt(_0x4f23f8(0x186))/0x4)+-parseInt(_0x4f23f8(0x172))/0x5+-parseInt(_0x4f23f8(0x18a))/0x6*(parseInt(_0x4f23f8(0x1aa))/0x7)+-parseInt(_0x4f23f8(0x17a))/0x8+parseInt(_0x4f23f8(0x1af))/0x9+parseInt(_0x4f23f8(0x1c7))/0xa;if(_0x592735===_0x5ab13f)break;else _0x14f9d4['push'](_0x14f9d4['shift']());}catch(_0x27b5bd){_0x14f9d4['push'](_0x14f9d4['shift']());}}}(_0x4de7,0xf2d91));import{Plugin as _0x52ed5f}from'ckeditor5/src/core.js';function _0x4de7(){const _0x4cdb89=['_isPendingUpdate','add','fromVersion','39679930lKixRr','type','adapter','CloudServicesRevisionHistoryAdapter','connection','has','destroy','createdAt','reInit','keys','revisionsUpdated','addUser','getMany','_revisionTracker','getRevisions','getOperations','bind','CONNECTED','once','startsWith','pluginName','_revisionDataBuilder','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','sendBufferedUpdates','code','setRevisionData','2998pScvYh','_bufferUpdate','reconnect','authors','marker','2879990DqlHQI','getUser','currentRevision','getRevision','remove','_fixRevision','connected','_waitForServiceReady','10903680UxdGda','setSource','_offset','config','init','editor','isConnected','isEnabled','609jwICft','sessionId','plugins','_isConnected','27172NGlIwQ','change:_isConnected','_oldOffset','isPremiumPlugin','18ZIuehz','cloud-services-internal-error:\x20Not\x20connected.','off','isEmptyCurrent','collaboration.channelId','size','baseVersion','catch','length','_revisions','_update','from','requires','_handleRevisionsUpdate','_getLatestVersion','data','repository','serverHistory','diffData','isOfficialPlugin','then','_getLatestVersionFromServerOperations','_handleReconnectionError','_lastRequestId','cloud-services-internal-error:\x20Request\x20timeout.','_fetchMissingUsers','listenTo','isBundleUploaded','_bufferedUpdates','reverse','buildRevisionData','updateRevisions','1034530dPfHof','addToReconnectionStack','400','message','change:_isPendingUpdate','7910613iHPxkx','246odYPZW','_createCurrentRevision','map','get','RevisionHistoryService','connect','RevisionHistory','_preventResendingRevisionData','toVersion','creatorId','max','affectsData','addRevisionData','cloudServices.bundleVersion','authorsIds','_revisionHistoryService','RevisionTracker','state','_startingVersion','wrongRequestId'];_0x4de7=function(){return _0x4cdb89;};return _0x4de7();}import{version as _0x1b7086}from'ckeditor5/src/utils.js';import{Users as _0x49ac99}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x5a5e48}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4bd860}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x3a1368}from'../realtimecollaborativeediting/sessions.js';function _0x4945(_0x2f235,_0x3768a0){const _0x4de708=_0x4de7();return _0x4945=function(_0x494543,_0x3bc4c6){_0x494543=_0x494543-0x158;let _0x473cac=_0x4de708[_0x494543];return _0x473cac;},_0x4945(_0x2f235,_0x3768a0);}import{EditorService as _0x481efa,RevisionHistoryService as _0x11b19a,User as _0x19182b,WEB_SOCKET_GATEWAY_STATES as _0x44c41a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x52ed5f{static [_0x1cae30(0x1b4)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x11b19a)());[_0x1cae30(0x1a1)];[_0x1cae30(0x160)];[_0x1cae30(0x1bf)];[_0x1cae30(0x188)];static get[_0x1cae30(0x196)](){const _0x5832a8=_0x1cae30;return[_0x4bd860,_0x5a5e48,_0x5832a8(0x1b6),_0x3a1368,_0x49ac99];}static get[_0x1cae30(0x167)](){const _0x964fdc=_0x1cae30;return _0x964fdc(0x1ca);}static get[_0x1cae30(0x19d)](){return!0x0;}static get[_0x1cae30(0x189)](){return!0x0;}constructor(_0x1ea562){const _0x670daf=_0x1cae30;super(_0x1ea562);const _0x5119d1=this[_0x670daf(0x17f)][_0x670daf(0x17d)][_0x670daf(0x1b3)](_0x670daf(0x18e));this[_0x670daf(0x1a1)]=null,this[_0x670daf(0x160)]=this[_0x670daf(0x17f)][_0x670daf(0x184)][_0x670daf(0x1b3)](_0x670daf(0x1c0)),this[_0x670daf(0x1bf)]=new CloudServicesRevisionHistoryAdapter[(_0x670daf(0x1b4))](_0x5119d1);}async[_0x1cae30(0x17e)](){const _0x373957=_0x1cae30,_0x261ad9=this[_0x373957(0x17f)][_0x373957(0x184)][_0x373957(0x1b3)](_0x5a5e48),_0x401608=_0x261ad9[_0x373957(0x19b)],_0x89a3ed=this[_0x373957(0x17f)][_0x373957(0x184)][_0x373957(0x1b3)](_0x4bd860);this[_0x373957(0x160)][_0x373957(0x17b)]({'history':_0x401608,'getLatestVersion':()=>this[_0x373957(0x198)](),'getCurrentRevisionId':()=>_0x261ad9[_0x373957(0x183)]});const _0x25c1cb=this[_0x373957(0x17f)][_0x373957(0x17d)][_0x373957(0x1b3)](_0x373957(0x1bd))||_0x1b7086,_0x1a2047=await _0x481efa[_0x373957(0x1a5)](_0x89a3ed[_0x373957(0x1cb)],_0x25c1cb);this[_0x373957(0x17f)][_0x373957(0x184)][_0x373957(0x1b3)](_0x373957(0x1b6))[_0x373957(0x1c9)]={'getRevision':async({revisionId:_0x5c60a7})=>(await this[_0x373957(0x179)](),await this[_0x373957(0x1bf)][_0x373957(0x175)](_0x5c60a7)),'updateRevisions':async _0xcea2c7=>{const _0x106ef5=_0x373957;await this[_0x106ef5(0x179)]();const _0x24f3d6=this[_0x106ef5(0x160)][_0x106ef5(0x174)];if(_0x1a2047&&0x1===_0xcea2c7[_0x106ef5(0x192)]&&_0xcea2c7[0x0]['id']===_0x24f3d6['id'])return _0xcea2c7;for(const _0xa0a2eb of _0xcea2c7)_0xa0a2eb['id']===_0x24f3d6['id']&&(_0xa0a2eb[_0x106ef5(0x18d)]=_0xa0a2eb[_0x106ef5(0x1c6)]===_0xa0a2eb[_0x106ef5(0x1b8)]);return this[_0x106ef5(0x1bf)][_0x106ef5(0x1a9)](_0xcea2c7,this[_0x106ef5(0x1a1)])[_0x106ef5(0x19e)](_0x506735=>(this[_0x106ef5(0x1a1)]=_0x506735,_0xcea2c7))[_0x106ef5(0x191)](_0x1db16b=>{const _0x3e4b15=_0x106ef5;if(L(_0x1db16b)||_0x3e4b15(0x1ac)===_0x1db16b[_0x3e4b15(0x16b)]&&void 0x0!==_0x1db16b[_0x3e4b15(0x199)][_0x3e4b15(0x1c3)]){for(const _0x5f32ca of _0xcea2c7){!this[_0x3e4b15(0x160)][_0x3e4b15(0x19a)][_0x3e4b15(0x175)](_0x5f32ca['id'])||this[_0x3e4b15(0x160)][_0x3e4b15(0x16e)](_0x5f32ca['id'],_0x5f32ca,!0x1);}if(L(_0x1db16b))throw _0x1db16b;return _0xcea2c7;}throw _0x1db16b;});}},this[_0x373957(0x1a4)](this[_0x373957(0x1bf)],_0x373957(0x15d),(_0x3b1ed1,{revisionsData:_0x21baa8,requestId:_0x2e9347})=>{const _0x46c9fd=_0x373957;Math[_0x46c9fd(0x1ba)](..._0x21baa8[_0x46c9fd(0x1b2)](_0x7f2890=>_0x7f2890[_0x46c9fd(0x1b8)]))>this[_0x46c9fd(0x19f)]()-0x1?this[_0x46c9fd(0x198)]()[_0x46c9fd(0x19e)](()=>{const _0x2c4bcd=_0x46c9fd;this[_0x2c4bcd(0x197)](_0x21baa8,_0x2e9347);}):this[_0x46c9fd(0x197)](_0x21baa8,_0x2e9347);});const {revisions:_0x5adff0,requestId:_0x58548e}=await this[_0x373957(0x1bf)][_0x373957(0x1b5)](_0x89a3ed[_0x373957(0x1cb)]);_0x89a3ed[_0x373957(0x1ab)](this),this[_0x373957(0x1a1)]=_0x58548e,await this[_0x373957(0x1a3)](_0x5adff0);for(const _0x351c42 of _0x5adff0)this[_0x373957(0x160)][_0x373957(0x1bc)](_0x351c42);this[_0x373957(0x1a4)](_0x261ad9,_0x373957(0x187),(_0x4e2d53,_0x302ffa,_0x49ea69)=>{const _0x4188d6=_0x373957;_0x49ea69&&(this[_0x4188d6(0x188)]=_0x261ad9[_0x4188d6(0x17c)],_0x4e2d53[_0x4188d6(0x18c)]());}),this[_0x373957(0x160)][_0x373957(0x163)](_0x373957(0x181))['to'](_0x89a3ed,_0x373957(0x1c1),_0x18be41=>_0x18be41===_0x44c41a[_0x373957(0x164)]);}async[_0x1cae30(0x16f)](){const _0x8acd52=_0x1cae30,_0x36f96f=this[_0x8acd52(0x17f)][_0x8acd52(0x184)][_0x8acd52(0x1b3)](_0x4bd860),_0x188f16=this[_0x8acd52(0x17f)][_0x8acd52(0x184)][_0x8acd52(0x1b3)](_0x5a5e48),_0xc1520a=async()=>{const _0x2edf1a=_0x8acd52,_0x4571c4=this[_0x2edf1a(0x160)][_0x2edf1a(0x174)],_0x17c903=_0x4571c4['id'],_0x1f5630=_0x17c903!==_0x188f16[_0x2edf1a(0x183)];if(_0x1f5630){const _0x2ad802=_0x188f16[_0x2edf1a(0x17c)]-this[_0x2edf1a(0x188)],_0x46d9f9=this[_0x2edf1a(0x19f)]();this[_0x2edf1a(0x160)][_0x2edf1a(0x168)][_0x2edf1a(0x15b)]();if(_0x4571c4[_0x2edf1a(0x1b8)]+_0x2ad802!==_0x46d9f9){const _0x126e18=_0x4571c4[_0x2edf1a(0x1c6)]+_0x2ad802,_0x146d01=this[_0x2edf1a(0x17f)][_0x2edf1a(0x184)][_0x2edf1a(0x1b3)](_0x49ac99),_0x57e486=this[_0x2edf1a(0x160)][_0x2edf1a(0x1a8)]({'revision':_0x4571c4,'from':_0x126e18,'to':_0x46d9f9});_0x57e486['id']=_0x4571c4['id'];const _0x4a1f70=_0x57e486[_0x2edf1a(0x1be)][_0x2edf1a(0x1b2)](_0x5ba8a1=>_0x146d01[_0x2edf1a(0x173)](_0x5ba8a1));_0x4571c4[_0x2edf1a(0x194)]({..._0x57e486,'authors':_0x4a1f70},!0x0),this[_0x2edf1a(0x160)][_0x2edf1a(0x16e)](_0x4571c4['id'],_0x57e486,!0x0);}this[_0x2edf1a(0x160)][_0x2edf1a(0x1c2)]=_0x46d9f9,(_0x4571c4[_0x2edf1a(0x1b8)]===_0x4571c4[_0x2edf1a(0x1c6)]&&!this[_0x2edf1a(0x160)][_0x2edf1a(0x1a6)][_0x2edf1a(0x158)](_0x17c903)&&this[_0x2edf1a(0x160)][_0x2edf1a(0x19a)][_0x2edf1a(0x193)][_0x2edf1a(0x176)](_0x17c903),this[_0x2edf1a(0x160)][_0x2edf1a(0x1b1)](_0x46d9f9));}const {revisions:_0x165cff,requestId:_0x5dfc58}=await this[_0x2edf1a(0x1bf)][_0x2edf1a(0x16f)](_0x36f96f[_0x2edf1a(0x1cb)],this[_0x2edf1a(0x1a1)]);_0x1f5630&&_0x165cff[_0x2edf1a(0x192)]>0x0?_0x188f16[_0x2edf1a(0x1a0)]():(await this[_0x2edf1a(0x1a3)](_0x165cff),this[_0x2edf1a(0x197)](_0x165cff,_0x5dfc58),this[_0x2edf1a(0x160)][_0x2edf1a(0x16a)]());};return _0x188f16[_0x8acd52(0x185)]?_0xc1520a():new Promise((_0x3b0baf,_0x77d7d1)=>{const _0xa549ac=_0x8acd52;_0x188f16[_0xa549ac(0x165)](_0xa549ac(0x187),()=>{const _0xc91ba6=_0xa549ac;_0xc1520a()[_0xc91ba6(0x19e)](_0x3b0baf)[_0xc91ba6(0x191)](_0x77d7d1);});});}[_0x1cae30(0x159)](){const _0x38588e=_0x1cae30;super[_0x38588e(0x159)]();}async[_0x1cae30(0x179)](){const _0x45f6da=_0x1cae30;this[_0x45f6da(0x1bf)][_0x45f6da(0x180)]||await new Promise(_0x4cd30d=>{const _0xe92653=_0x45f6da;this[_0xe92653(0x1a4)](this[_0xe92653(0x1bf)],_0xe92653(0x178),_0x4bd485=>{const _0x193896=_0xe92653;_0x4bd485[_0x193896(0x18c)](),_0x4cd30d();});});}[_0x1cae30(0x19f)](){const _0x1afb51=_0x1cae30,_0x3cbf93=this[_0x1afb51(0x17f)][_0x1afb51(0x184)][_0x1afb51(0x1b3)](_0x5a5e48)[_0x1afb51(0x19b)][_0x1afb51(0x162)]()[_0x1afb51(0x1a7)]();for(const _0x19ef2b of _0x3cbf93)if(_0x1afb51(0x171)!==_0x19ef2b[_0x1afb51(0x1c8)]||_0x19ef2b[_0x1afb51(0x1bb)])return _0x19ef2b[_0x1afb51(0x190)]+0x1;}[_0x1cae30(0x198)](){const _0x5ff0a3=_0x1cae30,_0xd490ef=this[_0x5ff0a3(0x17f)][_0x5ff0a3(0x184)][_0x5ff0a3(0x1b3)](_0x5a5e48);return new Promise(_0x45ee03=>{const _0x3d8dd8=_0x5ff0a3;_0xd490ef[_0x3d8dd8(0x1c4)]?_0xd490ef[_0x3d8dd8(0x165)](_0x3d8dd8(0x1ae),()=>{const _0x387be0=_0x3d8dd8;_0x45ee03(this[_0x387be0(0x19f)]());}):_0x45ee03(this[_0x3d8dd8(0x19f)]());});}[_0x1cae30(0x197)](_0x37ef93,_0x596527){const _0x459ce4=_0x1cae30,_0x1c4319=this[_0x459ce4(0x160)][_0x459ce4(0x19a)];this[_0x459ce4(0x1a1)]=_0x596527;for(const _0x53a35a of _0x37ef93){const _0xd0186c=_0x1c4319[_0x459ce4(0x175)](_0x53a35a['id']);if(_0xd0186c){if((_0x53a35a[_0x459ce4(0x1c6)]||_0x53a35a[_0x459ce4(0x1b8)])&&(_0x53a35a[_0x459ce4(0x19c)]=null),_0xd0186c===this[_0x459ce4(0x160)][_0x459ce4(0x174)]){const _0x2034f5=Math[_0x459ce4(0x1ba)](_0xd0186c[_0x459ce4(0x1b8)],_0x53a35a[_0x459ce4(0x1b8)]),_0x58f92f=Math[_0x459ce4(0x1ba)](_0xd0186c[_0x459ce4(0x1c6)],_0x53a35a[_0x459ce4(0x1c6)]);let _0x1bd137;_0xd0186c[_0x459ce4(0x1b8)]===_0x53a35a[_0x459ce4(0x1b8)]&&_0xd0186c[_0x459ce4(0x1c6)]===_0x53a35a[_0x459ce4(0x1c6)]?(_0x1bd137=!0x0,this[_0x459ce4(0x1b7)](_0x53a35a)):_0x53a35a[_0x459ce4(0x1b8)]===_0x2034f5&&_0x53a35a[_0x459ce4(0x1c6)]===_0x58f92f?_0x1bd137=!0x1:(_0xd0186c[_0x459ce4(0x1b8)]===_0x2034f5&&_0xd0186c[_0x459ce4(0x1c6)]===_0x58f92f||this[_0x459ce4(0x177)]({'revision':_0xd0186c,'from':_0x58f92f,'to':_0x2034f5}),_0x1bd137=!0x0),_0x1bd137&&(delete _0x53a35a[_0x459ce4(0x1c6)],delete _0x53a35a[_0x459ce4(0x1b8)],delete _0x53a35a[_0x459ce4(0x19c)],delete _0x53a35a[_0x459ce4(0x15a)],delete _0x53a35a[_0x459ce4(0x1be)]);}this[_0x459ce4(0x160)][_0x459ce4(0x16c)](_0x53a35a),this[_0x459ce4(0x1b7)](_0x53a35a);}else this[_0x459ce4(0x160)][_0x459ce4(0x1bc)](_0x53a35a);}const _0x132c52=_0x1c4319[_0x459ce4(0x161)]();_0x132c52[_0x459ce4(0x1a7)]();for(let _0x453c90=0x0;_0x453c90<_0x132c52[_0x459ce4(0x192)]-0x1;_0x453c90++){const _0x1d4eea=_0x132c52[_0x453c90],_0x309f8e=_0x132c52[_0x453c90+0x1];if(_0x1d4eea[_0x459ce4(0x1c6)]<_0x309f8e[_0x459ce4(0x1b8)]){const _0x3af19a=_0x309f8e[_0x459ce4(0x1b8)],_0x4f6df4=Math[_0x459ce4(0x1ba)](_0x3af19a,_0x1d4eea[_0x459ce4(0x1b8)]);this[_0x459ce4(0x177)]({'revision':_0x1d4eea,'from':_0x3af19a,'to':_0x4f6df4});}}}[_0x1cae30(0x177)]({revision:_0x347381,from:_0x2682a0,to:_0x5f24cb}={}){const _0x5f2141=_0x1cae30,_0x2b41c1=this[_0x5f2141(0x17f)][_0x5f2141(0x184)][_0x5f2141(0x1b3)](_0x49ac99),_0x3aa55e=this[_0x5f2141(0x160)][_0x5f2141(0x1a8)]({'revision':_0x347381,'from':_0x2682a0,'to':_0x5f24cb});_0x3aa55e[_0x5f2141(0x170)]=_0x3aa55e[_0x5f2141(0x1be)][_0x5f2141(0x1b2)](_0x5207ef=>_0x2b41c1[_0x5f2141(0x173)](_0x5207ef)),_0x347381[_0x5f2141(0x194)](_0x3aa55e);}[_0x1cae30(0x1b7)](_0x586b47){const _0x4a463f=_0x1cae30,_0xdb0299={};_0xdb0299['id']=_0x586b47['id'];for(const _0x44ccbd of Object[_0x4a463f(0x15c)](_0x586b47))'id'!==_0x44ccbd&&(_0xdb0299[_0x44ccbd]=void 0x0);this[_0x4a463f(0x160)][_0x4a463f(0x16e)](_0xdb0299['id'],_0xdb0299,!0x0);}async[_0x1cae30(0x1a3)](_0x602d20){const _0x4050a5=_0x1cae30,_0x15e1fe=this[_0x4050a5(0x17f)][_0x4050a5(0x184)][_0x4050a5(0x1b3)](_0x49ac99),{connection:_0x33bacf}=this[_0x4050a5(0x17f)][_0x4050a5(0x184)][_0x4050a5(0x1b3)](_0x4bd860),_0x1c90a2=new Set();for(const _0x317b68 of _0x602d20){for(const _0x46b9eb of _0x317b68[_0x4050a5(0x1be)])_0x29e763(_0x46b9eb);_0x317b68[_0x4050a5(0x1b9)]&&_0x29e763(_0x317b68[_0x4050a5(0x1b9)]);}if(0x0===_0x1c90a2[_0x4050a5(0x18f)])return;const _0x351f01=await _0x19182b[_0x4050a5(0x15f)](_0x33bacf,Array[_0x4050a5(0x195)](_0x1c90a2));for(const _0x345c7d of _0x351f01)_0x15e1fe[_0x4050a5(0x173)](_0x345c7d['id'])||_0x15e1fe[_0x4050a5(0x15e)](_0x345c7d);function _0x29e763(_0x4e2805){const _0x935444=_0x4050a5;_0x15e1fe[_0x935444(0x173)](_0x4e2805)||_0x1c90a2[_0x935444(0x1c5)](_0x4e2805);}}}function L(_0x3bd876){const _0x134941=_0x1cae30;return _0x3bd876[_0x134941(0x1ad)][_0x134941(0x166)](_0x134941(0x169))||_0x3bd876[_0x134941(0x1ad)][_0x134941(0x166)](_0x134941(0x18b))||_0x3bd876[_0x134941(0x1ad)][_0x134941(0x166)](_0x134941(0x1a2));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x52656f=_0x18bc;(function(_0x591610,_0x552905){const _0x460762=_0x18bc,_0x28ed8e=_0x591610();while(!![]){try{const _0x3223da=parseInt(_0x460762(0x109))/0x1+-parseInt(_0x460762(0x111))/0x2+parseInt(_0x460762(0xe0))/0x3*(parseInt(_0x460762(0xea))/0x4)+-parseInt(_0x460762(0xd6))/0x5*(-parseInt(_0x460762(0xdd))/0x6)+parseInt(_0x460762(0xf5))/0x7+-parseInt(_0x460762(0xfc))/0x8+-parseInt(_0x460762(0xdb))/0x9;if(_0x3223da===_0x552905)break;else _0x28ed8e['push'](_0x28ed8e['shift']());}catch(_0x442d31){_0x28ed8e['push'](_0x28ed8e['shift']());}}}(_0x57c9,0xb715e));import{Plugin as _0x527ff8}from'ckeditor5/src/core.js';import{User as _0x2dade0,TrackChangesService as _0x2da8d2}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x48d65c}from'../realtimecollaborativeediting/websocketgateway.js';function _0x18bc(_0x25ec4f,_0x2e9f22){const _0x57c951=_0x57c9();return _0x18bc=function(_0x18bc7b,_0x2ada52){_0x18bc7b=_0x18bc7b-0xd3;let _0x564934=_0x57c951[_0x18bc7b];return _0x564934;},_0x18bc(_0x25ec4f,_0x2e9f22);}import{CloudServicesCommentsAdapter as _0x2081e0}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x172150}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x527ff8{static [_0x52656f(0x10a)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x2da8d2)());[_0x52656f(0x102)];[_0x52656f(0xd4)];static get[_0x52656f(0xd7)](){const _0x3a858e=_0x52656f;return[_0x2081e0,_0x3a858e(0xde),_0x48d65c];}static get[_0x52656f(0xe8)](){const _0x2fe2b1=_0x52656f;return _0x2fe2b1(0xfd);}static get[_0x52656f(0x10d)](){return!0x0;}static get[_0x52656f(0xd5)](){return!0x0;}constructor(_0x53633f){const _0x319807=_0x52656f;super(_0x53633f);const _0x41888e=this[_0x319807(0xe1)][_0x319807(0x103)][_0x319807(0xd3)](_0x319807(0xec));this[_0x319807(0x102)]=new Map(),this[_0x319807(0xd4)]=new CloudServicesTrackChangesAdapter[(_0x319807(0x10a))](_0x41888e);}[_0x52656f(0xd8)](){const _0x1ca3aa=_0x52656f,_0x1e7f94=this[_0x1ca3aa(0xe1)][_0x1ca3aa(0xe9)][_0x1ca3aa(0xd3)](_0x48d65c),_0x12ef8b=this[_0x1ca3aa(0xe1)][_0x1ca3aa(0xe9)][_0x1ca3aa(0xd3)](_0x1ca3aa(0xde));return _0x12ef8b[_0x1ca3aa(0x107)]={'getSuggestion':async _0x5638e1=>{const _0x31976f=_0x1ca3aa;await this[_0x31976f(0xf6)]();const _0x173a4f=await this[_0x31976f(0xd4)][_0x31976f(0xd3)](_0x5638e1)[_0x31976f(0xf9)](nt);return await this[_0x31976f(0xdf)]([_0x173a4f]),_0x173a4f;},'addSuggestion':async({id:_0x4978a1,type:_0x228d85,data:_0x57b863,originalSuggestionId:_0x2720af,attributes:_0x4213db})=>{const _0x10b466=_0x1ca3aa;await this[_0x10b466(0xf6)]();const _0x223dbb={'id':_0x4978a1,'type':_0x228d85,'data':_0x57b863,'originalSuggestionId':_0x2720af,'attributes':_0x4213db},_0x184959=await this[_0x10b466(0xd4)][_0x10b466(0xfa)](_0x4978a1,_0x228d85,_0x57b863,_0x2720af,_0x4213db)[_0x10b466(0xf9)](_0x2ac53b=>{if(L(_0x2ac53b))return new Promise(_0x97e6d9=>{const _0x22f639=_0x18bc;this[_0x22f639(0x102)][_0x22f639(0xfb)](_0x4978a1,{'resolve':_0x97e6d9,'suggestionData':_0x223dbb});});throw _0x2ac53b;});return this[_0x10b466(0x102)][_0x10b466(0x105)](_0x4978a1),_0x184959;},'updateSuggestion':async(_0x37eb87,_0x5ea7ca)=>{const _0x1e8752=_0x1ca3aa;if(await this[_0x1e8752(0xf6)](),_0x1e8752(0x10e)!==_0x5ea7ca[_0x1e8752(0xf4)])return this[_0x1e8752(0xd4)][_0x1e8752(0xf2)](_0x37eb87,_0x5ea7ca)[_0x1e8752(0xf9)](nt);}},this[_0x1ca3aa(0x10b)](this[_0x1ca3aa(0xd4)],_0x1ca3aa(0x10f),(_0x434956,_0x418838)=>{const _0x578dd5=_0x1ca3aa;_0x12ef8b[_0x578dd5(0x100)](_0x418838['id'])&&(_0x12ef8b[_0x578dd5(0x110)](_0x418838['id'])[_0x578dd5(0x108)]=_0x418838[_0x578dd5(0x108)]);}),this[_0x1ca3aa(0xd4)][_0x1ca3aa(0xef)](_0x1e7f94[_0x1ca3aa(0xf7)])[_0x1ca3aa(0xeb)](_0x5e0571=>(_0x1e7f94[_0x1ca3aa(0xe3)](this),this[_0x1ca3aa(0xdf)](_0x5e0571)[_0x1ca3aa(0xeb)](()=>{const _0x368b2b=_0x1ca3aa;for(const _0x4f3795 of _0x5e0571){_0x12ef8b[_0x368b2b(0xf8)](_0x4f3795)[_0x368b2b(0xff)]=!0x0;}})));}async[_0x52656f(0xdc)](){const _0x2e3c29=_0x52656f,_0x31c734=this[_0x2e3c29(0xe1)][_0x2e3c29(0xe9)][_0x2e3c29(0xd3)](_0x2e3c29(0xde)),{connection:_0x4788dd}=this[_0x2e3c29(0xe1)][_0x2e3c29(0xe9)][_0x2e3c29(0xd3)](_0x48d65c),_0x1a6287=await this[_0x2e3c29(0xd4)][_0x2e3c29(0xef)](_0x4788dd);await this[_0x2e3c29(0xdf)](_0x1a6287);for(const {suggestionData:_0x2ad5e8,resolve:_0x56f2fb}of this[_0x2e3c29(0x102)][_0x2e3c29(0xe6)]()){let _0x19b8d9=_0x1a6287[_0x2e3c29(0xe4)](_0x146b89=>_0x146b89['id']===_0x2ad5e8['id']);_0x19b8d9||(_0x19b8d9=await this[_0x2e3c29(0xd4)][_0x2e3c29(0xfa)](_0x2ad5e8['id'],_0x2ad5e8[_0x2e3c29(0xda)],_0x2ad5e8[_0x2e3c29(0xed)],_0x2ad5e8[_0x2e3c29(0xf3)])),_0x56f2fb(_0x19b8d9);}for(const _0x27cb85 of _0x1a6287)_0x31c734[_0x2e3c29(0x100)](_0x27cb85['id'])||_0x31c734[_0x2e3c29(0xf8)](_0x27cb85);}async[_0x52656f(0xf6)](){const _0x1b1206=_0x52656f;this[_0x1b1206(0xd4)][_0x1b1206(0xd9)]||await new Promise(_0x1354c6=>{const _0x5aca0c=_0x1b1206;this[_0x5aca0c(0x10b)](this[_0x5aca0c(0xd4)],_0x5aca0c(0xe2),_0x57144a=>{const _0xa7eab3=_0x5aca0c;_0x57144a[_0xa7eab3(0x101)](),_0x1354c6();});});}async[_0x52656f(0xdf)](_0x374eee){const _0x221b86=_0x52656f,_0x2b0774=this[_0x221b86(0xe1)][_0x221b86(0xe9)][_0x221b86(0xd3)](_0x172150),{connection:_0x32f0b8}=this[_0x221b86(0xe1)][_0x221b86(0xe9)][_0x221b86(0xd3)](_0x48d65c),_0x24b022=new Set();for(const {authorId:_0x317890}of _0x374eee)_0x2b0774[_0x221b86(0x10c)](_0x317890)||_0x24b022[_0x221b86(0xfa)](_0x317890);if(0x0===_0x24b022[_0x221b86(0xf1)])return;const _0x3a4eda=await _0x2dade0[_0x221b86(0xe5)](_0x32f0b8,Array[_0x221b86(0x104)](_0x24b022));for(const _0x5a6320 of _0x3a4eda)_0x2b0774[_0x221b86(0x10c)](_0x5a6320['id'])||_0x2b0774[_0x221b86(0xee)](_0x5a6320);}}function nt(_0x504028){if(L(_0x504028))return new Promise(()=>{});throw _0x504028;}function _0x57c9(){const _0x18e94b=['cloud-services-internal-error:\x20Request\x20timeout.','_saved','hasSuggestion','off','_bufferedRequests','config','from','delete','message','adapter','attributes','475081JcmEky','TrackChangesService','listenTo','getUser','isOfficialPlugin','open','suggestionUpdated','getSuggestion','2247630yOPUfq','get','_trackChangesService','isPremiumPlugin','2546460rseviu','requires','init','isConnected','type','1343466accGvh','reconnect','12fTkEnv','TrackChangesEditing','_fetchMissingUsersForThreads','2358ScBvUG','editor','connected','addToReconnectionStack','find','getMany','values','startsWith','pluginName','plugins','4372EoDcZn','then','collaboration.channelId','data','addUser','connect','cloud-services-internal-error:\x20Not\x20connected.','size','update','originalSuggestionId','state','248395xVaqWz','_waitForServiceReady','connection','addSuggestionData','catch','add','set','2921928oDgXFd','CloudServicesTrackChangesAdapter'];_0x57c9=function(){return _0x18e94b;};return _0x57c9();}function L(_0x155607){const _0x2dba84=_0x52656f;return _0x155607[_0x2dba84(0x106)][_0x2dba84(0xe7)](_0x2dba84(0xf0))||_0x155607[_0x2dba84(0x106)][_0x2dba84(0xe7)](_0x2dba84(0xfe));}
|