@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.2 → 46.0.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "46.0.1-alpha.2",
3
+ "version": "46.0.1-alpha.4",
4
4
  "description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -47,19 +47,19 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@ckeditor/ckeditor-cloud-services-collaboration": "53.0.0",
50
- "@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.2",
51
- "@ckeditor/ckeditor5-comments": "46.0.1-alpha.2",
52
- "@ckeditor/ckeditor5-core": "46.0.1-alpha.2",
53
- "@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.2",
54
- "@ckeditor/ckeditor5-engine": "46.0.1-alpha.2",
55
- "@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.2",
56
- "@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.2",
57
- "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.2",
58
- "@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.2",
59
- "@ckeditor/ckeditor5-ui": "46.0.1-alpha.2",
60
- "@ckeditor/ckeditor5-utils": "46.0.1-alpha.2",
61
- "ckeditor5": "46.0.1-alpha.2",
62
- "ckeditor5-collaboration": "46.0.1-alpha.2",
50
+ "@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.4",
51
+ "@ckeditor/ckeditor5-comments": "46.0.1-alpha.4",
52
+ "@ckeditor/ckeditor5-core": "46.0.1-alpha.4",
53
+ "@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.4",
54
+ "@ckeditor/ckeditor5-engine": "46.0.1-alpha.4",
55
+ "@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.4",
56
+ "@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.4",
57
+ "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.4",
58
+ "@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.4",
59
+ "@ckeditor/ckeditor5-ui": "46.0.1-alpha.4",
60
+ "@ckeditor/ckeditor5-utils": "46.0.1-alpha.4",
61
+ "ckeditor5": "46.0.1-alpha.4",
62
+ "ckeditor5-collaboration": "46.0.1-alpha.4",
63
63
  "es-toolkit": "1.39.5"
64
64
  },
65
65
  "types": "src/index.d.ts",
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x104de5=_0x4f8e;(function(_0x31f40b,_0x467a62){const _0x1edcee=_0x4f8e,_0x341f83=_0x31f40b();while(!![]){try{const _0x208345=-parseInt(_0x1edcee(0xcc))/0x1+-parseInt(_0x1edcee(0xc0))/0x2+parseInt(_0x1edcee(0xdf))/0x3*(parseInt(_0x1edcee(0x100))/0x4)+parseInt(_0x1edcee(0xda))/0x5+parseInt(_0x1edcee(0xc2))/0x6*(parseInt(_0x1edcee(0xb0))/0x7)+parseInt(_0x1edcee(0xee))/0x8+-parseInt(_0x1edcee(0xe9))/0x9;if(_0x208345===_0x467a62)break;else _0x341f83['push'](_0x341f83['shift']());}catch(_0x5aad35){_0x341f83['push'](_0x341f83['shift']());}}}(_0x3013,0xc8554));function _0x3013(){const _0x456e90=['resolve','_setUpService','getMany','getUser','7482445YDjdWj','mySessionId','code','commentRemoved','requires','106041yXOYCa','disconnect','reopen','getConnectedSessions','collaboration.channelId','listenTo','pluginName','set','commentThreadId','context','8245449PQaRqP','addComment','comments','_fetchMissingUsersForThreads','updateCommentThread','2843200AdqIZF','commentThreadRemoved','commentAdded','off','permissions','update','CommentsService','assign','init','delete','commentThreadResolved','content','isOfficialPlugin','config','Permissions','CloudServicesCommentsAdapter','removeComment','addUser','76ghCkfw','removeCommentThread','cloud-services-internal-error:\x20Not\x20connected.','cloudservicescommentsadapter-disconnect-not-exist','cloudservicescommentsadapter-connect-already-connected','isPremiumPlugin','catch','reopenCommentThread','cloud-services-internal-error:\x20Request\x20timeout.','reconnect','_getService','sessionAdd:','adapter','map','_services','attributes','add','addToReconnectionStack','_connectService','resolvedBy','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','428253laKKHx','commentThreadUpdated','plugins','message','startsWith','resolvedAt','setPermissions','userId','createdAt','getComment','addCommentThread','CommentsRepository','register','has','_terminateService','remove','3208562SzMpIo','cloudservicescommentsadapter-service-not-exist','138lYDHUF','commentId','destroy','unregister','getCommentThread','getCommentThreads','keys','404','resolveCommentThread','updateComment','589593fGbelM','connect','commentUpdated','deletedAt','size','from','commentThreadAdded','commentThreadReopened','get','authorId'];_0x3013=function(){return _0x456e90;};return _0x3013();}import{Context as _0x1a7000,ContextPlugin as _0x3c3aca}from'ckeditor5/src/core.js';import{CKEditorError as _0x391f36}from'ckeditor5/src/utils.js';import{Users as _0xde4061}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x119cf7,User as _0x29bd84}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x4f8e(_0x4fbaaa,_0x3d57d2){const _0x3013a3=_0x3013();return _0x4f8e=function(_0x4f8e74,_0x5f0bf2){_0x4f8e74=_0x4f8e74-0x9d;let _0x3d3371=_0x3013a3[_0x4f8e74];return _0x3d3371;},_0x4f8e(_0x4fbaaa,_0x3d57d2);}import{WebSocketGateway as _0x1e38ac}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x66f9eb}from'../realtimecollaborativeediting/sessions.js';class s extends _0x3c3aca{static [_0x104de5(0xf4)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x119cf7)());[_0x104de5(0xa9)];static get[_0x104de5(0xde)](){const _0x43b3ed=_0x104de5;return[_0x1e38ac,_0x43b3ed(0xbb),_0x66f9eb,_0xde4061];}static get[_0x104de5(0xe5)](){const _0x17845a=_0x104de5;return _0x17845a(0xfd);}static get[_0x104de5(0xfa)](){return!0x0;}static get[_0x104de5(0xa0)](){return!0x0;}constructor(_0x5b52af){const _0x4902c6=_0x104de5;super(_0x5b52af),this[_0x4902c6(0xa9)]=new Map();}async[_0x104de5(0xf6)](){const _0xbf284f=_0x104de5,_0x2f5b4a=this[_0xbf284f(0xe8)],_0x278694=_0x2f5b4a[_0xbf284f(0xb2)][_0xbf284f(0xd4)](_0xbf284f(0xbb));if(_0x2f5b4a[_0xbf284f(0xb2)][_0xbf284f(0xd4)](_0x1e38ac)[_0xbf284f(0xac)](this),_0x278694[_0xbf284f(0xa7)]={'addCommentThread':async({channelId:_0x21023b,threadId:_0x36585a,comments:_0x1a72b4,resolvedAt:_0x14018a,resolvedBy:_0x32069c,context:_0x50a975,attributes:_0x528fbf})=>{const _0x1bb693=_0xbf284f,_0x21b2c9=await this[_0x1bb693(0xa5)](_0x21023b)[_0x1bb693(0xba)]({'commentThreadId':_0x36585a,'comments':_0x1a72b4[_0x1bb693(0xa8)](_0x3080e1=>function(_0x8539de,_0x136c44,_0x1861a8){const _0x5207e7=_0x1bb693;return{'commentThreadId':_0x1861a8,'commentId':_0x8539de[_0x5207e7(0xc3)],'userId':_0x8539de[_0x5207e7(0xd5)],'content':_0x8539de[_0x5207e7(0xf9)],'documentId':_0x136c44,'createdAt':_0x8539de[_0x5207e7(0xb8)],'attributes':_0x8539de[_0x5207e7(0xaa)]||{}};}(_0x3080e1,_0x21023b,_0x36585a)),'resolvedAt':_0x14018a,'resolvedBy':_0x32069c,'context':_0x50a975,'attributes':_0x528fbf})[_0x1bb693(0xa1)](C);return{'threadId':_0x21b2c9[_0x1bb693(0xe7)],'comments':_0x21b2c9[_0x1bb693(0xeb)]};},'getCommentThread':async({channelId:_0x377938,threadId:_0x2d921e})=>{const _0x2f3b89=_0xbf284f,_0x102ffe=await this[_0x2f3b89(0xa5)](_0x377938)[_0x2f3b89(0xc6)](_0x2d921e)[_0x2f3b89(0xa1)](C);return _0x102ffe[_0x2f3b89(0xcf)]?null:(await this[_0x2f3b89(0xec)]([_0x102ffe]),{'threadId':_0x102ffe[_0x2f3b89(0xe7)],'comments':_0x102ffe[_0x2f3b89(0xeb)][_0x2f3b89(0xa8)](U),'context':_0x102ffe[_0x2f3b89(0xe8)],'resolvedAt':_0x102ffe[_0x2f3b89(0xb5)],'resolvedBy':_0x102ffe[_0x2f3b89(0xae)],'attributes':_0x102ffe[_0x2f3b89(0xaa)]||{}});},'updateCommentThread':async({channelId:_0x3eb9c2,threadId:_0x44bdde,context:_0x429247,unlinkedAt:_0x56e440,attributes:_0x4c38cb})=>this[_0xbf284f(0xa5)](_0x3eb9c2)[_0xbf284f(0xed)]({'commentThreadId':_0x44bdde,'context':_0x429247,'attributes':_0x4c38cb,'unlinkedAt':_0x56e440})[_0xbf284f(0xa1)](B)[_0xbf284f(0xa1)](C),'resolveCommentThread':async({channelId:_0x454fc2,threadId:_0x208c94})=>{const _0x95a464=_0xbf284f,_0xfff552=await this[_0x95a464(0xa5)](_0x454fc2)[_0x95a464(0xca)](_0x208c94)[_0x95a464(0xa1)](B)[_0x95a464(0xa1)](C);return{'threadId':_0xfff552[_0x95a464(0xe7)],'resolvedAt':_0xfff552[_0x95a464(0xb5)],'resolvedBy':_0xfff552[_0x95a464(0xae)]};},'reopenCommentThread':async({channelId:_0x3a7c2e,threadId:_0x5a1e82})=>this[_0xbf284f(0xa5)](_0x3a7c2e)[_0xbf284f(0xa2)](_0x5a1e82)[_0xbf284f(0xa1)](B)[_0xbf284f(0xa1)](C),'removeCommentThread':({channelId:_0x11494a,threadId:_0x1c8dc1})=>this[_0xbf284f(0xa5)](_0x11494a)[_0xbf284f(0x101)](_0x1c8dc1)[_0xbf284f(0xa1)](B)[_0xbf284f(0xa1)](C),'addComment':({channelId:_0x5b53e3,threadId:_0x12582c,commentId:_0x398bf7,content:_0x295548,attributes:_0x451eeb})=>this[_0xbf284f(0xa5)](_0x5b53e3)[_0xbf284f(0xea)](_0x12582c,_0x398bf7,_0x295548,_0x451eeb)[_0xbf284f(0xa1)](C),'updateComment':({channelId:_0x36b2f9,threadId:_0x1f95f2,commentId:_0x32a1bd,content:_0x3750d1,attributes:_0x274f3f})=>this[_0xbf284f(0xa5)](_0x36b2f9)[_0xbf284f(0xcb)](_0x1f95f2,_0x32a1bd,_0x3750d1,_0x274f3f)[_0xbf284f(0xa1)](B)[_0xbf284f(0xa1)](C),'removeComment':({channelId:_0x4ce6bc,threadId:_0x191110,commentId:_0xc54508})=>this[_0xbf284f(0xa5)](_0x4ce6bc)[_0xbf284f(0xfe)](_0x191110,_0xc54508)[_0xbf284f(0xa1)](B)[_0xbf284f(0xa1)](C)},_0x2f5b4a instanceof _0x1a7000){const _0x5ea5bd=_0x2f5b4a[_0xbf284f(0xfb)][_0xbf284f(0xd4)](_0xbf284f(0xe3)),_0x4a98da=_0x2f5b4a[_0xbf284f(0xb2)][_0xbf284f(0xd4)](_0x66f9eb);await this[_0xbf284f(0xd7)](_0x5ea5bd);const _0x241ba6=await this[_0xbf284f(0xa9)][_0xbf284f(0xd4)](_0x5ea5bd)[_0xbf284f(0xe2)]();this[_0xbf284f(0xe4)](_0x4a98da,_0xbf284f(0xa6)+_0x5ea5bd,(_0xb66e8,{session:_0x17335c})=>{const _0x413c7c=_0xbf284f;_0x17335c['id']===_0x4a98da[_0x413c7c(0xdb)]&&(_0xb66e8[_0x413c7c(0xf1)](),this[_0x413c7c(0xe8)][_0x413c7c(0xb2)][_0x413c7c(0xd4)](_0x413c7c(0xfc))[_0x413c7c(0xb6)](_0x17335c[_0x413c7c(0xf2)],_0x5ea5bd));}),_0x4a98da[_0xbf284f(0xbc)](_0x5ea5bd,_0x241ba6);}}async[_0x104de5(0xd7)](_0xc24f3c){const _0x2711ca=_0x104de5;if(this[_0x2711ca(0xa9)][_0x2711ca(0xbd)](_0xc24f3c))throw new _0x391f36(_0x2711ca(0x9f),null,{'channelId':_0xc24f3c});const _0x4f389d=this[_0x2711ca(0xe8)][_0x2711ca(0xb2)][_0x2711ca(0xd4)](_0x2711ca(0xbb)),_0x57a9e7=new s[(_0x2711ca(0xf4))](_0xc24f3c);this[_0x2711ca(0xa9)][_0x2711ca(0xe6)](_0xc24f3c,_0x57a9e7),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xd2),(_0x66087a,_0x50ad69)=>{const _0x46bc7f=_0x2711ca,{commentThreadId:_0x4c1bf8,documentId:_0x4ead3e,context:_0x594e54,attributes:_0x5c5be4,resolvedAt:_0xa5b360,resolvedBy:_0x39ad22,comments:_0x5a61bd}=_0x50ad69;_0x4f389d[_0x46bc7f(0xc6)](_0x4c1bf8)||_0x4f389d[_0x46bc7f(0xba)]({'threadId':_0x4c1bf8,'channelId':_0x4ead3e,'comments':_0x5a61bd?_0x5a61bd[_0x46bc7f(0xa8)](U):[],'context':_0x594e54,'attributes':_0x5c5be4,'resolvedAt':_0xa5b360,'resolvedBy':_0x39ad22,'isFromAdapter':!0x0});}),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xb1),(_0x2ab68d,{commentThreadId:_0x466e32,documentId:_0x102a14,context:_0x5aa89f,unlinkedAt:_0x6d9334,attributes:_0x49650f})=>{const _0x2ddeb7=_0x2711ca;_0x4f389d[_0x2ddeb7(0xc6)](_0x466e32)&&_0x4f389d[_0x2ddeb7(0xed)]({'threadId':_0x466e32,'channelId':_0x102a14,'context':_0x5aa89f,'unlinkedAt':_0x6d9334,'attributes':_0x49650f,'isFromAdapter':!0x0});}),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xf8),(_0x1a0937,{commentThreadId:_0x20e3bf,resolvedBy:_0x4c2952,resolvedAt:_0x149d20})=>{const _0x250bb9=_0x2711ca,_0x55fe1d=_0x4f389d[_0x250bb9(0xc6)](_0x20e3bf);_0x55fe1d&&_0x55fe1d[_0x250bb9(0xd6)]({'resolvedBy':_0x4c2952,'resolvedAt':_0x149d20,'isFromAdapter':!0x0});}),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xd3),(_0xd03186,{commentThreadId:_0x56201f})=>{const _0x22b6ed=_0x2711ca,_0x11845b=_0x4f389d[_0x22b6ed(0xc6)](_0x56201f);_0x11845b&&_0x11845b[_0x22b6ed(0xe1)]({'isFromAdapter':!0x0});}),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xef),(_0x389764,{commentThreadId:_0x57b235})=>{const _0x271e41=_0x2711ca,_0x43ff41=_0x4f389d[_0x271e41(0xc6)](_0x57b235);_0x43ff41&&_0x43ff41[_0x271e41(0xbf)]({'isFromAdapter':!0x0});}),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xf0),(_0x30471d,_0x1209f1)=>{const _0x4c082c=_0x2711ca,_0x57bae0=_0x1209f1[_0x4c082c(0xe7)],_0x142ac6=_0x4f389d[_0x4c082c(0xc6)](_0x57bae0);_0x142ac6&&_0x142ac6[_0x4c082c(0xea)]({...U(_0x1209f1),'isFromAdapter':!0x0});}),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xce),(_0x3fb920,{commentThreadId:_0x593412,commentId:_0x2e61d8,content:_0x2314a0,attributes:_0x449cd9})=>{const _0x51fa02=_0x2711ca,_0x44bcaf=_0x4f389d[_0x51fa02(0xc6)](_0x593412);if(_0x44bcaf){const _0x365846=_0x44bcaf[_0x51fa02(0xb9)](_0x2e61d8);_0x365846&&_0x365846[_0x51fa02(0xf3)]({'content':_0x2314a0,'attributes':_0x449cd9,'isFromAdapter':!0x0});}}),this[_0x2711ca(0xe4)](_0x57a9e7,_0x2711ca(0xdd),(_0x21ddf9,{commentThreadId:_0x2caf9c,commentId:_0x3b247e})=>{const _0x1ac86a=_0x2711ca,_0x38c738=_0x4f389d[_0x1ac86a(0xc6)](_0x2caf9c);if(_0x38c738){const _0x2d4011=_0x38c738[_0x1ac86a(0xb9)](_0x3b247e);_0x2d4011&&_0x2d4011[_0x1ac86a(0xbf)]({'isFromAdapter':!0x0});}}),await this[_0x2711ca(0xad)](_0xc24f3c);}[_0x104de5(0xc4)](){const _0x219142=_0x104de5;if(this[_0x219142(0xe8)]instanceof _0x1a7000){const _0x8549fb=this[_0x219142(0xe8)][_0x219142(0xfb)][_0x219142(0xd4)](_0x219142(0xe3));this[_0x219142(0xbe)](_0x8549fb);}}[_0x104de5(0xbe)](_0x5e7a05){const _0x1bca20=_0x104de5;if(!this[_0x1bca20(0xa9)][_0x1bca20(0xbd)](_0x5e7a05))throw new _0x391f36(_0x1bca20(0x9e),null,{'channelId':_0x5e7a05});this[_0x1bca20(0xa5)](_0x5e7a05)[_0x1bca20(0xe0)](),this[_0x1bca20(0xa9)][_0x1bca20(0xf7)](_0x5e7a05);}async[_0x104de5(0xa4)](){const _0x4eb908=_0x104de5;for(const _0x490690 of this[_0x4eb908(0xa9)][_0x4eb908(0xc8)]())await this[_0x4eb908(0xad)](_0x490690);if(this[_0x4eb908(0xe8)]instanceof _0x1a7000){const _0x574da3=this[_0x4eb908(0xe8)][_0x4eb908(0xfb)][_0x4eb908(0xd4)](_0x4eb908(0xe3)),_0x34782e=this[_0x4eb908(0xe8)][_0x4eb908(0xb2)][_0x4eb908(0xd4)](_0x66f9eb);_0x34782e[_0x4eb908(0xc5)](_0x574da3);const _0x32d2f6=await this[_0x4eb908(0xa9)][_0x4eb908(0xd4)](_0x574da3)[_0x4eb908(0xe2)]();_0x34782e[_0x4eb908(0xbc)](_0x574da3,_0x32d2f6);}}async[_0x104de5(0xad)](_0x59e309){const _0x5db40e=_0x104de5,{connection:_0x3d59d2}=this[_0x5db40e(0xe8)][_0x5db40e(0xb2)][_0x5db40e(0xd4)](_0x1e38ac),_0x11cf03=this[_0x5db40e(0xe8)][_0x5db40e(0xb2)][_0x5db40e(0xd4)](_0x5db40e(0xbb)),_0x46bb04=this[_0x5db40e(0xa9)][_0x5db40e(0xd4)](_0x59e309),_0x1a1160=await _0x46bb04[_0x5db40e(0xcd)](_0x3d59d2);await this[_0x5db40e(0xec)](_0x1a1160);const _0x207fd0=new Set(Array[_0x5db40e(0xd1)](_0x11cf03[_0x5db40e(0xc7)]({'channelId':_0x59e309}),_0x4e162d=>_0x4e162d['id']));for(const _0x28331d of _0x1a1160)_0x28331d[_0x5db40e(0xcf)]||_0x207fd0[_0x5db40e(0xf7)](_0x28331d[_0x5db40e(0xe7)]);for(const _0xabd58c of _0x207fd0)_0x11cf03[_0x5db40e(0xc6)](_0xabd58c)[_0x5db40e(0xbf)]({'isFromAdapter':!0x0});for(const _0x43fdb8 of _0x1a1160){let _0x3eeca0=_0x11cf03[_0x5db40e(0xc6)](_0x43fdb8[_0x5db40e(0xe7)]);const {commentThreadId:_0x52d6c1,context:_0x28ab31,attributes:_0x2f7070,resolvedBy:_0x2f91d1,resolvedAt:_0x45bfbf,unlinkedAt:_0x11d9db,deletedAt:_0x391a79}=_0x43fdb8;if(_0x391a79)continue;_0x3eeca0||(_0x3eeca0=_0x11cf03[_0x5db40e(0xba)]({'channelId':_0x59e309,'threadId':_0x52d6c1,'context':_0x28ab31,'attributes':_0x2f7070||{},'resolvedBy':_0x2f91d1,'resolvedAt':_0x45bfbf,'unlinkedAt':_0x11d9db,'isFromAdapter':!0x0}));const _0x26c4ad=new Set(Array[_0x5db40e(0xd1)](_0x3eeca0[_0x5db40e(0xeb)],_0x104928=>_0x104928['id']));for(const _0x7c1454 of _0x43fdb8[_0x5db40e(0xeb)])_0x26c4ad[_0x5db40e(0xf7)](_0x7c1454[_0x5db40e(0xc3)]);for(const _0x91d59d of _0x26c4ad)_0x3eeca0[_0x5db40e(0xb9)](_0x91d59d)[_0x5db40e(0xbf)]({'isFromAdapter':!0x0});for(const _0x294955 of _0x43fdb8[_0x5db40e(0xeb)]){const _0x39600f=_0x3eeca0[_0x5db40e(0xb9)](_0x294955[_0x5db40e(0xc3)]);_0x39600f?_0x39600f[_0x5db40e(0xf9)]!==_0x294955[_0x5db40e(0xf9)]&&_0x39600f[_0x5db40e(0xf3)]({'content':_0x294955[_0x5db40e(0xf9)],'isFromAdapter':!0x0}):_0x3eeca0[_0x5db40e(0xea)](Object[_0x5db40e(0xf5)](U(_0x294955),{'isFromAdapter':!0x0}));}}}[_0x104de5(0xa5)](_0x168118){const _0x103352=_0x104de5;if(!this[_0x103352(0xa9)][_0x103352(0xbd)](_0x168118))throw new _0x391f36(_0x103352(0xc1),null,{'channelId':_0x168118});return this[_0x103352(0xa9)][_0x103352(0xd4)](_0x168118);}async[_0x104de5(0xec)](_0x4cf187){const _0x50a568=_0x104de5,_0x3b3df3=this[_0x50a568(0xe8)][_0x50a568(0xb2)][_0x50a568(0xd4)](_0xde4061),{connection:_0x1509cc}=this[_0x50a568(0xe8)][_0x50a568(0xb2)][_0x50a568(0xd4)](_0x1e38ac),_0x5f4e1d=new Set();for(const {resolvedBy:_0x3ca39d,comments:_0x56ad01}of _0x4cf187){_0x3ca39d&&!_0x3b3df3[_0x50a568(0xd9)](_0x3ca39d)&&_0x5f4e1d[_0x50a568(0xab)](_0x3ca39d);for(const {userId:_0x21ed5b}of _0x56ad01)_0x3b3df3[_0x50a568(0xd9)](_0x21ed5b)||_0x5f4e1d[_0x50a568(0xab)](_0x21ed5b);}if(0x0===_0x5f4e1d[_0x50a568(0xd0)])return;const _0x53d417=await _0x29bd84[_0x50a568(0xd8)](_0x1509cc,Array[_0x50a568(0xd1)](_0x5f4e1d));for(const _0x55690c of _0x53d417)_0x3b3df3[_0x50a568(0xd9)](_0x55690c['id'])||_0x3b3df3[_0x50a568(0xff)](_0x55690c);}}export{s as CloudServicesCommentsAdapter};async function B(_0x1e78f2){const _0x263e09=_0x104de5;if(_0x263e09(0xc9)!==_0x1e78f2[_0x263e09(0xdc)])throw _0x1e78f2;}function C(_0x3d3dcb){const _0x5cdc1b=_0x104de5;if((_0x1137e6=_0x3d3dcb)[_0x5cdc1b(0xb3)][_0x5cdc1b(0xb4)](_0x5cdc1b(0xaf))||_0x1137e6[_0x5cdc1b(0xb3)][_0x5cdc1b(0xb4)](_0x5cdc1b(0x9d))||_0x1137e6[_0x5cdc1b(0xb3)][_0x5cdc1b(0xb4)](_0x5cdc1b(0xa3)))return new Promise(()=>{});var _0x1137e6;throw _0x3d3dcb;}function U(_0x22ed29){const _0x1188cd=_0x104de5;return{'threadId':_0x22ed29[_0x1188cd(0xe7)],'commentId':_0x22ed29[_0x1188cd(0xc3)],'content':_0x22ed29[_0x1188cd(0xf9)],'createdAt':_0x22ed29[_0x1188cd(0xb8)],'authorId':_0x22ed29[_0x1188cd(0xb7)],'attributes':_0x22ed29[_0x1188cd(0xaa)]||{}};}
23
+ const _0x4ca731=_0x5182;(function(_0x1546ac,_0x333d52){const _0x11648a=_0x5182,_0x2b0bb4=_0x1546ac();while(!![]){try{const _0x5b6bac=parseInt(_0x11648a(0x10b))/0x1+parseInt(_0x11648a(0x127))/0x2*(-parseInt(_0x11648a(0x11a))/0x3)+parseInt(_0x11648a(0xe9))/0x4*(parseInt(_0x11648a(0x115))/0x5)+-parseInt(_0x11648a(0x119))/0x6+parseInt(_0x11648a(0xf4))/0x7+-parseInt(_0x11648a(0x10e))/0x8*(-parseInt(_0x11648a(0xfc))/0x9)+-parseInt(_0x11648a(0xfd))/0xa*(-parseInt(_0x11648a(0x116))/0xb);if(_0x5b6bac===_0x333d52)break;else _0x2b0bb4['push'](_0x2b0bb4['shift']());}catch(_0x934adf){_0x2b0bb4['push'](_0x2b0bb4['shift']());}}}(_0x52ec,0xf1094));import{Context as _0x20438c,ContextPlugin as _0x51b26}from'ckeditor5/src/core.js';import{CKEditorError as _0x19dc0d}from'ckeditor5/src/utils.js';import{Users as _0x5883a0}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x2e9a66,User as _0x5e5957}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5c2693}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x5d1d02}from'../realtimecollaborativeediting/sessions.js';class s extends _0x51b26{static [_0x4ca731(0xfe)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2e9a66)());[_0x4ca731(0x137)];static get[_0x4ca731(0x117)](){const _0x309aee=_0x4ca731;return[_0x5c2693,_0x309aee(0xde),_0x5d1d02,_0x5883a0];}static get[_0x4ca731(0xe7)](){const _0x171b02=_0x4ca731;return _0x171b02(0x113);}static get[_0x4ca731(0xf7)](){return!0x0;}static get[_0x4ca731(0x11b)](){return!0x0;}constructor(_0x87c07b){const _0x32c821=_0x4ca731;super(_0x87c07b),this[_0x32c821(0x137)]=new Map();}async[_0x4ca731(0x13c)](){const _0x46002d=_0x4ca731,_0x8efbea=this[_0x46002d(0x13e)],_0x38c61e=_0x8efbea[_0x46002d(0x13d)][_0x46002d(0x10d)](_0x46002d(0xde));if(_0x8efbea[_0x46002d(0x13d)][_0x46002d(0x10d)](_0x5c2693)[_0x46002d(0x107)](this),_0x38c61e[_0x46002d(0xff)]={'addCommentThread':async({channelId:_0x59e5a1,threadId:_0x502807,comments:_0x378bfe,resolvedAt:_0x13a5b9,resolvedBy:_0x11e83b,context:_0x3dac59,attributes:_0x5c4b4d})=>{const _0x338657=_0x46002d,_0x11a37f=await this[_0x338657(0x134)](_0x59e5a1)[_0x338657(0x118)]({'commentThreadId':_0x502807,'comments':_0x378bfe[_0x338657(0x11e)](_0x2a6fc4=>function(_0x3c6ae0,_0x17751c,_0x1ef2d2){const _0x7e7b75=_0x338657;return{'commentThreadId':_0x1ef2d2,'commentId':_0x3c6ae0[_0x7e7b75(0x12e)],'userId':_0x3c6ae0[_0x7e7b75(0x105)],'content':_0x3c6ae0[_0x7e7b75(0x123)],'documentId':_0x17751c,'createdAt':_0x3c6ae0[_0x7e7b75(0xdf)],'attributes':_0x3c6ae0[_0x7e7b75(0x11c)]||{}};}(_0x2a6fc4,_0x59e5a1,_0x502807)),'resolvedAt':_0x13a5b9,'resolvedBy':_0x11e83b,'context':_0x3dac59,'attributes':_0x5c4b4d})[_0x338657(0x12a)](B);return{'threadId':_0x11a37f[_0x338657(0x110)],'comments':_0x11a37f[_0x338657(0xe0)]};},'getCommentThread':async({channelId:_0x26efd5,threadId:_0x38e84e})=>{const _0x492c85=_0x46002d,_0x1b52e3=await this[_0x492c85(0x134)](_0x26efd5)[_0x492c85(0xfa)](_0x38e84e)[_0x492c85(0x12a)](B);return _0x1b52e3[_0x492c85(0xed)]?null:(await this[_0x492c85(0x138)]([_0x1b52e3]),{'threadId':_0x1b52e3[_0x492c85(0x110)],'comments':_0x1b52e3[_0x492c85(0xe0)][_0x492c85(0x11e)](U),'context':_0x1b52e3[_0x492c85(0x13e)],'resolvedAt':_0x1b52e3[_0x492c85(0x13f)],'resolvedBy':_0x1b52e3[_0x492c85(0xdc)],'attributes':_0x1b52e3[_0x492c85(0x11c)]||{}});},'updateCommentThread':async({channelId:_0x167463,threadId:_0x341168,context:_0x92ce6c,unlinkedAt:_0x549f9b,attributes:_0x96b219})=>this[_0x46002d(0x134)](_0x167463)[_0x46002d(0xf2)]({'commentThreadId':_0x341168,'context':_0x92ce6c,'attributes':_0x96b219,'unlinkedAt':_0x549f9b})[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'resolveCommentThread':async({channelId:_0x28fe4c,threadId:_0x36ae7c})=>{const _0x36e09f=_0x46002d,_0x4676f7=await this[_0x36e09f(0x134)](_0x28fe4c)[_0x36e09f(0xe8)](_0x36ae7c)[_0x36e09f(0x12a)](F)[_0x36e09f(0x12a)](B);return{'threadId':_0x4676f7[_0x36e09f(0x110)],'resolvedAt':_0x4676f7[_0x36e09f(0x13f)],'resolvedBy':_0x4676f7[_0x36e09f(0xdc)]};},'reopenCommentThread':async({channelId:_0x1f66ef,threadId:_0x5d1d69})=>this[_0x46002d(0x134)](_0x1f66ef)[_0x46002d(0x10a)](_0x5d1d69)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'removeCommentThread':({channelId:_0x4d6d99,threadId:_0x4088b8})=>this[_0x46002d(0x134)](_0x4d6d99)[_0x46002d(0x13a)](_0x4088b8)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'addComment':({channelId:_0x1d2bf9,threadId:_0x41cdd6,commentId:_0x56ffcf,content:_0x39f7e9,attributes:_0x231a7e})=>this[_0x46002d(0x134)](_0x1d2bf9)[_0x46002d(0x11d)](_0x41cdd6,_0x56ffcf,_0x39f7e9,_0x231a7e)[_0x46002d(0x12a)](B),'updateComment':({channelId:_0x22e6e2,threadId:_0x182ffc,commentId:_0x1e8d5f,content:_0x278d38,attributes:_0x52e175})=>this[_0x46002d(0x134)](_0x22e6e2)[_0x46002d(0x128)](_0x182ffc,_0x1e8d5f,_0x278d38,_0x52e175)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'removeComment':({channelId:_0x1edd1a,threadId:_0x48bca2,commentId:_0x1a6169})=>this[_0x46002d(0x134)](_0x1edd1a)[_0x46002d(0x10f)](_0x48bca2,_0x1a6169)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B)},_0x8efbea instanceof _0x20438c){const _0x25f287=_0x8efbea[_0x46002d(0xe4)][_0x46002d(0x10d)](_0x46002d(0xf1)),_0x35aca2=_0x8efbea[_0x46002d(0x13d)][_0x46002d(0x10d)](_0x5d1d02);await this[_0x46002d(0x103)](_0x25f287);const _0x258111=await this[_0x46002d(0x137)][_0x46002d(0x10d)](_0x25f287)[_0x46002d(0xf9)]();this[_0x46002d(0x132)](_0x35aca2,_0x46002d(0x136)+_0x25f287,(_0x36f765,{session:_0x14480b})=>{const _0x1f715d=_0x46002d;_0x14480b['id']===_0x35aca2[_0x1f715d(0x125)]&&(_0x36f765[_0x1f715d(0xe6)](),this[_0x1f715d(0x13e)][_0x1f715d(0x13d)][_0x1f715d(0x10d)](_0x1f715d(0xf6))[_0x1f715d(0xee)](_0x14480b[_0x1f715d(0x131)],_0x25f287));}),_0x35aca2[_0x46002d(0x122)](_0x25f287,_0x258111);}}async[_0x4ca731(0x103)](_0x3c6fdc){const _0x561c12=_0x4ca731;if(this[_0x561c12(0x137)][_0x561c12(0xec)](_0x3c6fdc))throw new _0x19dc0d(_0x561c12(0x12c),null,{'channelId':_0x3c6fdc});const _0x50a8a6=this[_0x561c12(0x13e)][_0x561c12(0x13d)][_0x561c12(0x10d)](_0x561c12(0xde)),_0x43ad31=new s[(_0x561c12(0xfe))](_0x3c6fdc);this[_0x561c12(0x137)][_0x561c12(0xe3)](_0x3c6fdc,_0x43ad31),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x104),(_0x4e2c99,_0xcbd8d5)=>{const _0x5d72d2=_0x561c12,{commentThreadId:_0x101202,documentId:_0x4c5eb4,context:_0x545f93,attributes:_0x49767c,resolvedAt:_0x2ba29b,resolvedBy:_0x57e5ed,comments:_0x56c6b4}=_0xcbd8d5;_0x50a8a6[_0x5d72d2(0xfa)](_0x101202)||_0x50a8a6[_0x5d72d2(0x118)]({'threadId':_0x101202,'channelId':_0x4c5eb4,'comments':_0x56c6b4?_0x56c6b4[_0x5d72d2(0x11e)](U):[],'context':_0x545f93,'attributes':_0x49767c,'resolvedAt':_0x2ba29b,'resolvedBy':_0x57e5ed,'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xea),(_0x34c114,{commentThreadId:_0x489f9e,documentId:_0x4409d1,context:_0x2a219f,unlinkedAt:_0x41ece9,attributes:_0x165722})=>{const _0x51085a=_0x561c12;_0x50a8a6[_0x51085a(0xfa)](_0x489f9e)&&_0x50a8a6[_0x51085a(0xf2)]({'threadId':_0x489f9e,'channelId':_0x4409d1,'context':_0x2a219f,'unlinkedAt':_0x41ece9,'attributes':_0x165722,'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x106),(_0x5ba8c0,{commentThreadId:_0x588f12,resolvedBy:_0xa3da01,resolvedAt:_0x2db144})=>{const _0x142595=_0x561c12,_0x5370c1=_0x50a8a6[_0x142595(0xfa)](_0x588f12);_0x5370c1&&_0x5370c1[_0x142595(0x109)]({'resolvedBy':_0xa3da01,'resolvedAt':_0x2db144,'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x102),(_0x1a1dfb,{commentThreadId:_0x50555d})=>{const _0x5b8140=_0x561c12,_0x146b90=_0x50a8a6[_0x5b8140(0xfa)](_0x50555d);_0x146b90&&_0x146b90[_0x5b8140(0x126)]({'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x108),(_0x2ec6c8,{commentThreadId:_0x56ee25})=>{const _0x36659f=_0x561c12,_0x818237=_0x50a8a6[_0x36659f(0xfa)](_0x56ee25);_0x818237&&_0x818237[_0x36659f(0x135)]({'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xeb),(_0x1493a8,_0x2af294)=>{const _0x50fda8=_0x561c12,_0x439db9=_0x2af294[_0x50fda8(0x110)],_0x148a53=_0x50a8a6[_0x50fda8(0xfa)](_0x439db9);_0x148a53&&_0x148a53[_0x50fda8(0x11d)]({...U(_0x2af294),'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xf3),(_0x989eb2,{commentThreadId:_0xfee904,commentId:_0x323049,content:_0x49f8db,attributes:_0x2ef317})=>{const _0x480ccc=_0x561c12,_0x1d44cc=_0x50a8a6[_0x480ccc(0xfa)](_0xfee904);if(_0x1d44cc){const _0x219ed9=_0x1d44cc[_0x480ccc(0xef)](_0x323049);_0x219ed9&&_0x219ed9[_0x480ccc(0x100)]({'content':_0x49f8db,'attributes':_0x2ef317,'isFromAdapter':!0x0});}}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xdd),(_0x1bac3d,{commentThreadId:_0x4f43ec,commentId:_0x208d15})=>{const _0x5e6c89=_0x561c12,_0x4f2f8f=_0x50a8a6[_0x5e6c89(0xfa)](_0x4f43ec);if(_0x4f2f8f){const _0x48d4f0=_0x4f2f8f[_0x5e6c89(0xef)](_0x208d15);_0x48d4f0&&_0x48d4f0[_0x5e6c89(0x135)]({'isFromAdapter':!0x0});}}),await this[_0x561c12(0xe5)](_0x3c6fdc);}[_0x4ca731(0x12b)](){const _0x3d090c=_0x4ca731;if(this[_0x3d090c(0x13e)]instanceof _0x20438c){const _0x375174=this[_0x3d090c(0x13e)][_0x3d090c(0xe4)][_0x3d090c(0x10d)](_0x3d090c(0xf1));this[_0x3d090c(0xe2)](_0x375174);}}[_0x4ca731(0xe2)](_0x17b476){const _0x1e60aa=_0x4ca731;if(!this[_0x1e60aa(0x137)][_0x1e60aa(0xec)](_0x17b476))throw new _0x19dc0d(_0x1e60aa(0x141),null,{'channelId':_0x17b476});this[_0x1e60aa(0x134)](_0x17b476)[_0x1e60aa(0xf8)](),this[_0x1e60aa(0x137)][_0x1e60aa(0x101)](_0x17b476);}async[_0x4ca731(0x139)](){const _0x51e997=_0x4ca731;for(const _0x55b673 of this[_0x51e997(0x137)][_0x51e997(0xe1)]())await this[_0x51e997(0xe5)](_0x55b673);if(this[_0x51e997(0x13e)]instanceof _0x20438c){const _0x49624f=this[_0x51e997(0x13e)][_0x51e997(0xe4)][_0x51e997(0x10d)](_0x51e997(0xf1)),_0x23c91f=this[_0x51e997(0x13e)][_0x51e997(0x13d)][_0x51e997(0x10d)](_0x5d1d02);_0x23c91f[_0x51e997(0x11f)](_0x49624f);const _0x1b1916=await this[_0x51e997(0x137)][_0x51e997(0x10d)](_0x49624f)[_0x51e997(0xf9)]();_0x23c91f[_0x51e997(0x122)](_0x49624f,_0x1b1916);}}async[_0x4ca731(0xe5)](_0x495d25){const _0x4fc05b=_0x4ca731,{connection:_0x53ec2a}=this[_0x4fc05b(0x13e)][_0x4fc05b(0x13d)][_0x4fc05b(0x10d)](_0x5c2693),_0x18bad5=this[_0x4fc05b(0x13e)][_0x4fc05b(0x13d)][_0x4fc05b(0x10d)](_0x4fc05b(0xde)),_0x47640c=this[_0x4fc05b(0x137)][_0x4fc05b(0x10d)](_0x495d25),_0x24d337=await _0x47640c[_0x4fc05b(0x12d)](_0x53ec2a);await this[_0x4fc05b(0x138)](_0x24d337);const _0x2a7fe9=new Set(Array[_0x4fc05b(0x114)](_0x18bad5[_0x4fc05b(0x130)]({'channelId':_0x495d25}),_0x68def0=>_0x68def0['id']));for(const _0x4be70c of _0x24d337)_0x4be70c[_0x4fc05b(0xed)]||_0x2a7fe9[_0x4fc05b(0x101)](_0x4be70c[_0x4fc05b(0x110)]);for(const _0x415383 of _0x2a7fe9)_0x18bad5[_0x4fc05b(0xfa)](_0x415383)[_0x4fc05b(0x135)]({'isFromAdapter':!0x0});for(const _0x4e81ca of _0x24d337){let _0x17f231=_0x18bad5[_0x4fc05b(0xfa)](_0x4e81ca[_0x4fc05b(0x110)]);const {commentThreadId:_0x3effdb,context:_0x3466b5,attributes:_0xd75eba,resolvedBy:_0x8da02f,resolvedAt:_0x5d5b69,unlinkedAt:_0x31867e,deletedAt:_0x138393}=_0x4e81ca;if(_0x138393)continue;_0x17f231||(_0x17f231=_0x18bad5[_0x4fc05b(0x118)]({'channelId':_0x495d25,'threadId':_0x3effdb,'context':_0x3466b5,'attributes':_0xd75eba||{},'resolvedBy':_0x8da02f,'resolvedAt':_0x5d5b69,'unlinkedAt':_0x31867e,'isFromAdapter':!0x0}));const _0x5065b1=new Set(Array[_0x4fc05b(0x114)](_0x17f231[_0x4fc05b(0xe0)],_0x51e824=>_0x51e824['id']));for(const _0x51e986 of _0x4e81ca[_0x4fc05b(0xe0)])_0x5065b1[_0x4fc05b(0x101)](_0x51e986[_0x4fc05b(0x12e)]);for(const _0x195603 of _0x5065b1)_0x17f231[_0x4fc05b(0xef)](_0x195603)[_0x4fc05b(0x135)]({'isFromAdapter':!0x0});for(const _0x48a20f of _0x4e81ca[_0x4fc05b(0xe0)]){const _0x255c89=_0x17f231[_0x4fc05b(0xef)](_0x48a20f[_0x4fc05b(0x12e)]);_0x255c89?_0x255c89[_0x4fc05b(0x123)]!==_0x48a20f[_0x4fc05b(0x123)]&&_0x255c89[_0x4fc05b(0x100)]({'content':_0x48a20f[_0x4fc05b(0x123)],'isFromAdapter':!0x0}):_0x17f231[_0x4fc05b(0x11d)](Object[_0x4fc05b(0x10c)](U(_0x48a20f),{'isFromAdapter':!0x0}));}}}[_0x4ca731(0x134)](_0x521615){const _0x56411b=_0x4ca731;if(!this[_0x56411b(0x137)][_0x56411b(0xec)](_0x521615))throw new _0x19dc0d(_0x56411b(0xf5),null,{'channelId':_0x521615});return this[_0x56411b(0x137)][_0x56411b(0x10d)](_0x521615);}async[_0x4ca731(0x138)](_0x2f293a){const _0x39ea0d=_0x4ca731,_0x1dc6e0=this[_0x39ea0d(0x13e)][_0x39ea0d(0x13d)][_0x39ea0d(0x10d)](_0x5883a0),{connection:_0x4cce19}=this[_0x39ea0d(0x13e)][_0x39ea0d(0x13d)][_0x39ea0d(0x10d)](_0x5c2693),_0x589d55=new Set();for(const {resolvedBy:_0x58e307,comments:_0x575a9c}of _0x2f293a){_0x58e307&&!_0x1dc6e0[_0x39ea0d(0x133)](_0x58e307)&&_0x589d55[_0x39ea0d(0x13b)](_0x58e307);for(const {userId:_0x5ebab7}of _0x575a9c)_0x1dc6e0[_0x39ea0d(0x133)](_0x5ebab7)||_0x589d55[_0x39ea0d(0x13b)](_0x5ebab7);}if(0x0===_0x589d55[_0x39ea0d(0xf0)])return;const _0x33c907=await _0x5e5957[_0x39ea0d(0x129)](_0x4cce19,Array[_0x39ea0d(0x114)](_0x589d55));for(const _0x53a1aa of _0x33c907)_0x1dc6e0[_0x39ea0d(0x133)](_0x53a1aa['id'])||_0x1dc6e0[_0x39ea0d(0x124)](_0x53a1aa);}}function _0x52ec(){const _0x2f9739=['message','cloud-services-internal-error:\x20Not\x20connected.','CloudServicesCommentsAdapter','from','315HAGCWA','22263219UKWboR','requires','addCommentThread','9392256RrpneW','867tjCYok','isPremiumPlugin','attributes','addComment','map','unregister','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','userId','register','content','addUser','mySessionId','reopen','10690baInTP','updateComment','getMany','catch','destroy','cloudservicescommentsadapter-connect-already-connected','connect','commentId','code','getCommentThreads','permissions','listenTo','getUser','_getService','remove','sessionAdd:','_services','_fetchMissingUsersForThreads','reconnect','removeCommentThread','add','init','plugins','context','resolvedAt','cloud-services-internal-error:\x20Request\x20timeout.','cloudservicescommentsadapter-disconnect-not-exist','startsWith','resolvedBy','commentRemoved','CommentsRepository','createdAt','comments','keys','_terminateService','set','config','_connectService','off','pluginName','resolveCommentThread','11868BCDPoT','commentThreadUpdated','commentAdded','has','deletedAt','setPermissions','getComment','size','collaboration.channelId','updateCommentThread','commentUpdated','3487743cDGfwj','cloudservicescommentsadapter-service-not-exist','Permissions','isOfficialPlugin','disconnect','getConnectedSessions','getCommentThread','404','90Sxngqj','10EPDMrB','CommentsService','adapter','update','delete','commentThreadReopened','_setUpService','commentThreadAdded','authorId','commentThreadResolved','addToReconnectionStack','commentThreadRemoved','resolve','reopenCommentThread','495876GdoOYy','assign','get','713912gOQwsm','removeComment','commentThreadId'];_0x52ec=function(){return _0x2f9739;};return _0x52ec();}function _0x5182(_0x3a2b00,_0x1861b4){const _0x52ec7e=_0x52ec();return _0x5182=function(_0x5182fb,_0x7af1c4){_0x5182fb=_0x5182fb-0xdc;let _0x5039b0=_0x52ec7e[_0x5182fb];return _0x5039b0;},_0x5182(_0x3a2b00,_0x1861b4);}export{s as CloudServicesCommentsAdapter};async function F(_0x4bff0f){const _0x315d76=_0x4ca731;if(_0x315d76(0xfb)!==_0x4bff0f[_0x315d76(0x12f)])throw _0x4bff0f;}function B(_0xfbc757){const _0x163d74=_0x4ca731;if((_0x58adf6=_0xfbc757)[_0x163d74(0x111)][_0x163d74(0x142)](_0x163d74(0x120))||_0x58adf6[_0x163d74(0x111)][_0x163d74(0x142)](_0x163d74(0x112))||_0x58adf6[_0x163d74(0x111)][_0x163d74(0x142)](_0x163d74(0x140)))return new Promise(()=>{});var _0x58adf6;throw _0xfbc757;}function U(_0x4fe594){const _0x230fca=_0x4ca731;return{'threadId':_0x4fe594[_0x230fca(0x110)],'commentId':_0x4fe594[_0x230fca(0x12e)],'content':_0x4fe594[_0x230fca(0x123)],'createdAt':_0x4fe594[_0x230fca(0xdf)],'authorId':_0x4fe594[_0x230fca(0x121)],'attributes':_0x4fe594[_0x230fca(0x11c)]||{}};}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x980336=_0x1b6a;(function(_0x50042a,_0x31f013){const _0x46680a=_0x1b6a,_0x1de989=_0x50042a();while(!![]){try{const _0x39691e=-parseInt(_0x46680a(0x122))/0x1*(-parseInt(_0x46680a(0x1b7))/0x2)+parseInt(_0x46680a(0x17f))/0x3+parseInt(_0x46680a(0x148))/0x4*(-parseInt(_0x46680a(0x162))/0x5)+-parseInt(_0x46680a(0x1de))/0x6+parseInt(_0x46680a(0x1af))/0x7+parseInt(_0x46680a(0x171))/0x8*(parseInt(_0x46680a(0x1a2))/0x9)+-parseInt(_0x46680a(0x13a))/0xa*(parseInt(_0x46680a(0x204))/0xb);if(_0x39691e===_0x31f013)break;else _0x1de989['push'](_0x1de989['shift']());}catch(_0x3982c1){_0x1de989['push'](_0x1de989['shift']());}}}(_0x4dcb,0xac91d));import{Plugin as _0x1ca9f7,PendingActions as _0x5e3c28}from'ckeditor5/src/core.js';import{CKEditorError as _0x43e1c2,version as _0x3ca235,uid as _0x4c34ba}from'ckeditor5/src/utils.js';import{Notification as _0x458fd3}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x344f50,NoOperation as _0x1c9742,InsertOperation as _0x45c472,MarkerOperation as _0x1af574,RootAttributeOperation as _0xd59741,OperationFactory as _0x4fa64a,History as _0x438fcc}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x1cc2c1}from'./websocketgateway.js';function _0x1b6a(_0x1edeb6,_0x922f00){const _0x4dcbc8=_0x4dcb();return _0x1b6a=function(_0x1b6a29,_0x4da6af){_0x1b6a29=_0x1b6a29-0xfe;let _0x234a91=_0x4dcbc8[_0x1b6a29];return _0x234a91;},_0x1b6a(_0x1edeb6,_0x922f00);}import{Sessions as _0x358490}from'./sessions.js';import{UserMarkers as _0x20cfdf}from'./usermarkers.js';import{getTranslation as _0x134411}from'../common-translations.js';import{Compressor as _0xc93cee}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0xfec9fd}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x35cc0d,CollaborativeEditingService as _0xefe054}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let X=0x1;class l extends _0x1ca9f7{static [_0x980336(0x1e2)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0xefe054)());[_0x980336(0x1d5)];[_0x980336(0x195)];[_0x980336(0x182)];[_0x980336(0x1c0)];[_0x980336(0x172)];[_0x980336(0x1c7)];[_0x980336(0x129)];[_0x980336(0x120)];[_0x980336(0x133)];[_0x980336(0x13f)];[_0x980336(0x1d0)];[_0x980336(0x1c3)];[_0x980336(0x158)];[_0x980336(0x1e0)];[_0x980336(0x14e)];[_0x980336(0x19a)];[_0x980336(0x115)];[_0x980336(0x150)];static get[_0x980336(0x1b4)](){return[_0x1cc2c1,_0x358490,_0x20cfdf,_0x5e3c28,_0xfec9fd,_0x458fd3];}static get[_0x980336(0x145)](){const _0x3467a7=_0x980336;return _0x3467a7(0x1a4);}static get[_0x980336(0x18c)](){return!0x0;}static get[_0x980336(0x1db)](){return!0x0;}get[_0x980336(0x105)](){const _0x228175=_0x980336;return this[_0x228175(0x1bb)]+this[_0x228175(0x1d5)];}get[_0x980336(0x1bb)](){const _0x5561b0=_0x980336;return this[_0x5561b0(0x182)][_0x5561b0(0x156)]-this[_0x5561b0(0x1d5)];}get[_0x980336(0x152)](){const _0x3cfcf5=_0x980336,_0x247747=this[_0x3cfcf5(0x182)][_0x3cfcf5(0x1b8)]();for(let _0x1b3933=_0x247747[_0x3cfcf5(0x134)]-0x1;_0x1b3933>=0x0;_0x1b3933--){const _0xe3eaee=_0x247747[_0x1b3933];if(!this[_0x3cfcf5(0x115)][_0x3cfcf5(0x1cd)](_0xe3eaee))return _0xe3eaee[_0x3cfcf5(0x16d)]+0x1-this[_0x3cfcf5(0x1d5)];}return 0x0;}constructor(_0x565d6c){const _0x225099=_0x980336;if(super(_0x565d6c),this[_0x225099(0x1d5)]=0x0,this[_0x225099(0x195)]=null,this[_0x225099(0x182)]=new _0x438fcc(),this[_0x225099(0x113)][_0x225099(0x1da)][_0x225099(0x16a)](_0x225099(0x10c),{}),this[_0x225099(0x1c0)]=this[_0x225099(0x113)][_0x225099(0x1da)][_0x225099(0x1f0)](_0x225099(0x1ad)),!this[_0x225099(0x1c0)])throw new _0x43e1c2(_0x225099(0x141),this);const _0x1e3f2f=_0x565d6c[_0x225099(0x1da)][_0x225099(0x1f0)](_0x225099(0x149))||_0x3ca235;this[_0x225099(0x172)]=new l[(_0x225099(0x1e2))](_0x1e3f2f,this[_0x225099(0x1c0)]),this[_0x225099(0x1c7)]=this[_0x225099(0x113)][_0x225099(0x166)][_0x225099(0x1b2)],this[_0x225099(0x129)]=new _0xc93cee(),this[_0x225099(0x120)]=[],this[_0x225099(0x133)]=new WeakSet(),this[_0x225099(0x13f)]=new Set(),this[_0x225099(0x15b)](_0x225099(0x127),!0x1),this[_0x225099(0x15b)](_0x225099(0x200),!0x1),this[_0x225099(0x1d0)]=null,this[_0x225099(0x1c3)]=!0x1,this[_0x225099(0x158)]=null,this[_0x225099(0x1e0)]=0x12c,this[_0x225099(0x14e)]=this[_0x225099(0x1e0)],this[_0x225099(0x19a)]=null,this[_0x225099(0x115)]=new WeakSet(),this[_0x225099(0x150)]=new tt(this[_0x225099(0x115)]);}[_0x980336(0x128)](){const _0x5df68a=_0x980336,_0x5a5549=this[_0x5df68a(0x113)],_0x4f1473=_0x5a5549[_0x5df68a(0x1be)][_0x5df68a(0x1f0)](_0xfec9fd),_0xb760a9=_0x5a5549[_0x5df68a(0x1be)][_0x5df68a(0x1f0)](_0x1cc2c1);this[_0x5df68a(0x177)](_0x4f1473,_0x5df68a(0x19e),(_0x401e5a,_0x2d4933)=>{const _0x1b745a=_0x5df68a,_0x586d98=_0x2d4933[0x0];_0x586d98[_0x1b745a(0x18e)]&&(_0x401e5a[_0x1b745a(0x14d)]=_0x4f1473[_0x1b745a(0x140)](_0x586d98[_0x1b745a(0x18e)]),_0x401e5a[_0x1b745a(0x1c9)]()),null===_0x586d98[_0x1b745a(0x18e)]&&(_0x401e5a[_0x1b745a(0x14d)]=null,_0x401e5a[_0x1b745a(0x1c9)]());},{'priority':_0x5df68a(0x1ba)}),this[_0x5df68a(0x177)](_0x5a5549[_0x5df68a(0x166)][_0x5df68a(0x1b2)][_0x5df68a(0x1bc)],_0x5df68a(0x11c),(_0xef0e3a,_0x295151)=>{const _0xd2dbb1=_0x5df68a;_0x295151[_0xd2dbb1(0x19c)]&&this[_0xd2dbb1(0x136)]();}),this[_0x5df68a(0x177)](_0x5a5549[_0x5df68a(0x1a8)][_0x5df68a(0x19d)],_0x5df68a(0x103),()=>{const _0x445451=_0x5df68a;this[_0x445451(0x136)]();}),this[_0x5df68a(0x15e)](),_0x5a5549[_0x5df68a(0x166)]['on'](_0x5df68a(0x169),(_0x434964,_0x4633b2)=>{const _0x2aa273=_0x5df68a,_0x22b9a5=_0x4633b2[0x0];_0x22b9a5[_0x2aa273(0x1b0)]&&(this[_0x2aa273(0x1ec)](_0x22b9a5),this[_0x2aa273(0x1d6)]()&&this[_0x2aa273(0x191)]());}),this[_0x5df68a(0x154)](),this[_0x5df68a(0x1e5)](_0x5df68a(0x163))['to'](_0xb760a9,_0x5df68a(0x124),this,_0x5df68a(0x200),(_0xbb2c53,_0x4cfbde)=>_0x5df68a(0x178)===_0xbb2c53&&!_0x4cfbde),this['on'](_0x5df68a(0x176),()=>{const _0x18bc42=_0x5df68a;this[_0x18bc42(0x163)]?_0x5a5549[_0x18bc42(0x126)](_0x18bc42(0x131)):_0x5a5549[_0x18bc42(0x14a)](_0x18bc42(0x131));}),this[_0x5df68a(0x163)]?_0x5a5549[_0x5df68a(0x126)](_0x5df68a(0x131)):_0x5a5549[_0x5df68a(0x14a)](_0x5df68a(0x131)),this[_0x5df68a(0x15b)](_0x5df68a(0x1f1),!0x1);}async[_0x980336(0x1e3)](){const _0x1e2fa5=_0x980336,_0x459550=this[_0x1e2fa5(0x113)][_0x1e2fa5(0x1be)][_0x1e2fa5(0x1f0)](_0x358490),_0x2cac9b=this[_0x1e2fa5(0x113)][_0x1e2fa5(0x1be)][_0x1e2fa5(0x1f0)](_0x1cc2c1);try{this[_0x1e2fa5(0x127)]=!0x0,_0x459550[_0x1e2fa5(0x15f)](this[_0x1e2fa5(0x1c0)]);const _0x5d94c3=await this[_0x1e2fa5(0x172)][_0x1e2fa5(0x1e3)](_0x2cac9b[_0x1e2fa5(0x108)],this[_0x1e2fa5(0x152)]);await this[_0x1e2fa5(0x10a)](_0x5d94c3)&&(this[_0x1e2fa5(0x127)]=!0x1,this[_0x1e2fa5(0x185)]());const _0x1a4fbc=await this[_0x1e2fa5(0x172)][_0x1e2fa5(0x1bf)]();_0x459550[_0x1e2fa5(0x1f6)](this[_0x1e2fa5(0x1c0)],_0x1a4fbc),this[_0x1e2fa5(0x1ea)](),this[_0x1e2fa5(0x1f1)]=!0x0;}catch(_0x309f55){if(function(_0x4f1970){const _0x826163=_0x1e2fa5;return _0x826163(0x1a6)===_0x4f1970[_0x826163(0x17e)];}(_0x309f55)&&this[_0x1e2fa5(0x195)])await this[_0x1e2fa5(0x1d1)]();else{if(function(_0x325271){const _0x94afc=_0x1e2fa5;return _0x94afc(0x1c4)===_0x325271[_0x94afc(0x17e)];}(_0x309f55)){const _0x2ad8fd=_0x134411(this[_0x1e2fa5(0x113)][_0x1e2fa5(0x193)],_0x1e2fa5(0x1ef));this[_0x1e2fa5(0x138)](_0x2ad8fd);}else{if(!(_0x309f55 instanceof Y))throw _0x309f55;this[_0x1e2fa5(0x138)]();}}}}[_0x980336(0x19f)](){const _0x391d44=_0x980336,_0x43dd4f=this[_0x391d44(0x113)][_0x391d44(0x1be)][_0x391d44(0x1f0)](_0x1cc2c1),_0x451ea9=this[_0x391d44(0x113)][_0x391d44(0x1be)][_0x391d44(0x1f0)](_0x358490);this[_0x391d44(0x113)][_0x391d44(0x14a)](_0x391d44(0x174)),_0x451ea9[_0x391d44(0x1bd)][_0x391d44(0x1cd)](this[_0x391d44(0x1c0)])&&_0x451ea9[_0x391d44(0x15f)](this[_0x391d44(0x1c0)]),_0x43dd4f[_0x391d44(0x1f8)](this),this[_0x391d44(0x11d)](),super[_0x391d44(0x19f)]();}async[_0x980336(0x10a)](_0x985d21){const _0x369354=_0x980336;if(this[_0x369354(0x195)]!==_0x985d21[_0x369354(0x195)]&&this[_0x369354(0x19a)]!==_0x985d21[_0x369354(0x190)])throw new Y();return this[_0x369354(0x195)]=_0x985d21[_0x369354(0x195)],this[_0x369354(0x201)]([],{..._0x985d21,'wereChangesApplied':!0x1,'data':_0x985d21[_0x369354(0x111)]},_0x369354(0x1e3));}async[_0x980336(0x1b1)](_0x4ad07d,_0x59fde8=!0x1){const _0x23ceeb=_0x980336,{connection:_0x559dd7}=this[_0x23ceeb(0x113)][_0x23ceeb(0x1be)][_0x23ceeb(0x1f0)](_0x1cc2c1);l[_0x23ceeb(0x1e2)][_0x23ceeb(0x1bf)](_0x559dd7,this[_0x23ceeb(0x1c0)])[_0x23ceeb(0x19b)](_0x454fcd=>this[_0x23ceeb(0x1d2)](_0x454fcd))[_0x23ceeb(0x1e8)](_0x204a2=>{const _0x21fc5f=_0x23ceeb;this[_0x21fc5f(0x181)](_0x21fc5f(0x14c),_0x204a2);}),this[_0x23ceeb(0x177)](this[_0x23ceeb(0x172)],_0x23ceeb(0x197),this[_0x23ceeb(0x1fb)][_0x23ceeb(0x1e5)](this)),this[_0x23ceeb(0x177)](this[_0x23ceeb(0x172)],_0x23ceeb(0x1a1),(_0x3cd908,_0x355b50)=>{const _0x4a4e32=_0x23ceeb;this[_0x4a4e32(0x181)](_0x4a4e32(0x12b),_0x355b50);}),this[_0x23ceeb(0x177)](this[_0x23ceeb(0x172)],_0x23ceeb(0x164),()=>{const _0x36549b=_0x23ceeb;this[_0x36549b(0x1f1)]=!0x1;});const _0x18372e=this[_0x23ceeb(0x150)][_0x23ceeb(0x13d)](_0x4ad07d);this[_0x23ceeb(0x127)]=!0x0;const _0x2d20d3=await this[_0x23ceeb(0x172)][_0x23ceeb(0x1cb)](_0x559dd7,this[_0x23ceeb(0x104)](_0x4ad07d),_0x18372e);if(this[_0x23ceeb(0x195)]=_0x2d20d3[_0x23ceeb(0x195)],_0x59fde8){if(!_0x2d20d3[_0x23ceeb(0x1ab)])return void this[_0x23ceeb(0x138)]();this[_0x23ceeb(0x127)]=!0x1,this[_0x23ceeb(0x185)](),this[_0x23ceeb(0x182)][_0x23ceeb(0x116)](),this[_0x23ceeb(0x1d5)]=_0x2d20d3[_0x23ceeb(0x202)],this[_0x23ceeb(0x182)][_0x23ceeb(0x156)]=this[_0x23ceeb(0x1d5)],await this[_0x23ceeb(0x201)](_0x4ad07d,_0x2d20d3,_0x23ceeb(0x1dc));}else await this[_0x23ceeb(0x1dd)](_0x2d20d3,_0x4ad07d);this[_0x23ceeb(0x1ea)](),this[_0x23ceeb(0x1f1)]=!0x0;}[_0x980336(0x1ea)](){const _0xcef1a4=_0x980336,_0x388867=this[_0xcef1a4(0x113)][_0xcef1a4(0x1be)][_0xcef1a4(0x1f0)](_0x358490),_0x203eaf=this[_0xcef1a4(0x113)][_0xcef1a4(0x1be)][_0xcef1a4(0x1f0)](_0x20cfdf),_0x42708d=_0x388867[_0xcef1a4(0x1bd)][_0xcef1a4(0x1f0)](this[_0xcef1a4(0x1c0)]);_0x42708d&&_0x42708d[_0xcef1a4(0x134)]>0x1?_0x203eaf[_0xcef1a4(0xff)]():this[_0xcef1a4(0x177)](_0x388867,_0xcef1a4(0x198)+this[_0xcef1a4(0x1c0)],()=>{const _0x38752a=_0xcef1a4;0x2===_0x388867[_0x38752a(0x1bd)][_0x38752a(0x1f0)](this[_0x38752a(0x1c0)])[_0x38752a(0x134)]&&_0x203eaf[_0x38752a(0xff)]();});}async[_0x980336(0x1fb)](_0x5a911a,_0x165550,_0x567d6a,_0x4c3b4a){const _0x304078=_0x980336;if(!this[_0x304078(0x127)]&&this[_0x304078(0x1c7)][_0x304078(0x156)]==_0x165550){const _0x2fcef3=this[_0x304078(0x184)](_0x567d6a,_0x4c3b4a);await this[_0x304078(0x18d)](_0x2fcef3),this[_0x304078(0x1b3)](_0x2fcef3,_0x165550,_0x567d6a[_0x304078(0x190)])||this[_0x304078(0x181)](_0x304078(0x1a7));}}async[_0x980336(0x1d1)](){const _0x4d5e72=_0x980336;this[_0x4d5e72(0x11d)]();const {locale:_0x21f47e}=this[_0x4d5e72(0x113)];let _0x3bb8fb;try{_0x3bb8fb=await this[_0x4d5e72(0x172)][_0x4d5e72(0x1f4)]();}catch{const _0xf356e2=_0x134411(_0x21f47e,_0x4d5e72(0x1fe));return void this[_0x4d5e72(0x138)](_0xf356e2);}const _0xf84caa=_0x3bb8fb[_0x4d5e72(0x1fc)]||_0x3bb8fb[_0x4d5e72(0x1d9)];if(this[_0x4d5e72(0x19a)]!==_0xf84caa[_0x4d5e72(0x190)]){const _0x113e49=_0x134411(_0x21f47e,_0x4d5e72(0x192));return void this[_0x4d5e72(0x138)](_0x113e49);}await this[_0x4d5e72(0x1b1)](this[_0x4d5e72(0x113)][_0x4d5e72(0x166)][_0x4d5e72(0x1b2)][_0x4d5e72(0x1cf)][_0x4d5e72(0x1b8)](),!0x0);}[_0x980336(0x11d)](){const _0x46a8e7=_0x980336;this[_0x46a8e7(0x172)][_0x46a8e7(0x106)](),this[_0x46a8e7(0x120)]=[],clearTimeout(this[_0x46a8e7(0x158)]),this[_0x46a8e7(0x199)](this[_0x46a8e7(0x172)]);}[_0x980336(0x1d2)](_0x4c73ac){const _0x4a75d3=_0x980336,_0x366e0e=this[_0x4a75d3(0x113)][_0x4a75d3(0x1be)][_0x4a75d3(0x1f0)](_0x358490);this[_0x4a75d3(0x177)](_0x366e0e,_0x4a75d3(0x198)+this[_0x4a75d3(0x1c0)],(_0x506322,{session:_0x441248})=>{const _0x4cd62f=_0x4a75d3;if(_0x441248['id']===_0x366e0e[_0x4cd62f(0x12c)]){_0x506322[_0x4cd62f(0x1e4)]();const _0x461c66=this[_0x4cd62f(0x113)][_0x4cd62f(0x1be)][_0x4cd62f(0x1cd)](_0x4cd62f(0x159))&&this[_0x4cd62f(0x113)][_0x4cd62f(0x1be)][_0x4cd62f(0x1f0)](_0x4cd62f(0x159));let _0x46aca4=_0x441248[_0x4cd62f(0x13e)];_0x461c66&&_0x461c66[_0x4cd62f(0x180)]&&(_0x46aca4=_0x46aca4[_0x4cd62f(0x13c)](_0x3ae347=>_0x4cd62f(0x10d)!==_0x3ae347)),this[_0x4cd62f(0x113)][_0x4cd62f(0x1be)][_0x4cd62f(0x1f0)](_0x4cd62f(0x1b5))[_0x4cd62f(0x11a)](_0x46aca4,this[_0x4cd62f(0x1c0)]);}}),_0x366e0e[_0x4a75d3(0x1f6)](this[_0x4a75d3(0x1c0)],_0x4c73ac);}[_0x980336(0x15e)](){const _0x379d4f=_0x980336,_0x513f45=this[_0x379d4f(0x113)][_0x379d4f(0x111)][_0x379d4f(0x15b)];this[_0x379d4f(0x113)][_0x379d4f(0x111)][_0x379d4f(0x15b)]=(..._0x48d820)=>{const _0x6a0a3=_0x379d4f;if(!_0x48d820[_0x48d820[_0x6a0a3(0x134)]-0x1][_0x6a0a3(0x1d4)])throw new _0x43e1c2(_0x6a0a3(0x16b),this);_0x513f45[_0x6a0a3(0x125)](this[_0x6a0a3(0x113)][_0x6a0a3(0x111)],_0x48d820);};}[_0x980336(0x154)](){const _0x17f32a=_0x980336;this[_0x17f32a(0x113)][_0x17f32a(0x111)]['on'](_0x17f32a(0x128),(_0x73db06,[_0x1a2afe])=>{const _0x3f9627=_0x17f32a;if(this[_0x3f9627(0x1c7)][_0x3f9627(0x156)])throw new _0x43e1c2(_0x3f9627(0x1eb),this);_0x73db06[_0x3f9627(0x1c9)](),this[_0x3f9627(0x110)]();const _0x4fcd15=this[_0x3f9627(0x113)][_0x3f9627(0x1da)][_0x3f9627(0x1f0)](_0x3f9627(0x135)),_0x892858=this[_0x3f9627(0x102)](_0x1a2afe,_0x4fcd15);0x0==_0x892858[_0x3f9627(0x134)]&&_0x892858[_0x3f9627(0x119)](new _0x1c9742(0x0)),_0x73db06[_0x3f9627(0x14d)]=this[_0x3f9627(0x1b1)](_0x892858)[_0x3f9627(0x19b)](()=>{const _0x365da9=_0x3f9627;this[_0x365da9(0x113)][_0x365da9(0x1be)][_0x365da9(0x1f0)](_0x1cc2c1)[_0x365da9(0x11f)](this),this[_0x365da9(0x113)][_0x365da9(0x111)][_0x365da9(0x1ee)](_0x365da9(0x194));})[_0x3f9627(0x1e8)](_0x48c702=>this[_0x3f9627(0x181)](_0x3f9627(0x12f),_0x48c702))[_0x3f9627(0x112)](()=>this[_0x3f9627(0x185)]());},{'priority':_0x17f32a(0x1ba)}),this[_0x17f32a(0x113)]['on'](_0x17f32a(0x1d3),async(_0x44357b,[_0x4287e5,_0x32af7a])=>{const _0x2ac3d7=_0x17f32a;_0x44357b[_0x2ac3d7(0x1c9)]();const _0x323832=this[_0x2ac3d7(0x113)][_0x2ac3d7(0x166)][_0x2ac3d7(0x1b2)][_0x2ac3d7(0x1b6)](_0x4287e5);if(!this[_0x2ac3d7(0x13f)][_0x2ac3d7(0x1cd)](_0x4287e5)){const _0x530030=_0x32af7a&&_0x32af7a[_0x2ac3d7(0x111)]?_0x32af7a[_0x2ac3d7(0x111)]:'',_0x15a352=_0x32af7a&&_0x32af7a[_0x2ac3d7(0x1e1)]?_0x32af7a[_0x2ac3d7(0x1e1)]:{};await this[_0x2ac3d7(0x15a)](_0x4287e5,_0x530030,_0x15a352);}this[_0x2ac3d7(0x113)][_0x2ac3d7(0x166)][_0x2ac3d7(0x1c6)]({'isUndoable':!0x1},()=>{const _0x4c95d1=_0x2ac3d7;_0x323832[_0x4c95d1(0x188)]=!0x0,this[_0x4c95d1(0x113)][_0x4c95d1(0x166)][_0x4c95d1(0x1b2)][_0x4c95d1(0x114)][_0x4c95d1(0x1c5)](_0x323832);});},{'priority':_0x17f32a(0x1ba)});}async[_0x980336(0x18d)](_0x139dad){const _0x568da8=_0x980336,_0x252e99=this[_0x568da8(0x113)][_0x568da8(0x1be)][_0x568da8(0x1f0)](_0xfec9fd),{connection:_0x3657ff}=this[_0x568da8(0x113)][_0x568da8(0x1be)][_0x568da8(0x1f0)](_0x1cc2c1),_0x2cd6dd=new Set();for(const _0x150e35 of _0x139dad){const _0x3f41f1=_0x150e35[_0x568da8(0x18e)];_0x3f41f1&&!_0x252e99[_0x568da8(0x140)](_0x3f41f1)&&_0x2cd6dd[_0x568da8(0x1d7)](_0x3f41f1);}if(0x0===_0x2cd6dd[_0x568da8(0x173)])return;const _0x174a37=await _0x35cc0d[_0x568da8(0x17a)](_0x3657ff,Array[_0x568da8(0x1f2)](_0x2cd6dd));for(const _0x1e58b2 of _0x174a37)_0x252e99[_0x568da8(0x140)](_0x1e58b2['id'])||_0x252e99[_0x568da8(0x12d)](_0x1e58b2);}[_0x980336(0x102)](_0x23be5e,_0xf77b89={}){const _0x581a7a=_0x980336,_0x38d6fa=this[_0x581a7a(0x113)][_0x581a7a(0x166)],_0x13da94=[];let _0x2b7f5d=0x0;const _0x42135a=_0x581a7a(0x1a9)==typeof _0x23be5e?{'main':_0x23be5e}:_0x23be5e;for(const _0x5a953a of Object[_0x581a7a(0x137)](_0x42135a)){if(!this[_0x581a7a(0x1c7)][_0x581a7a(0x101)][_0x581a7a(0x1cd)](_0x5a953a))throw new _0x43e1c2(_0x581a7a(0x1e6),this);const _0x4c60f0=this[_0x581a7a(0x113)][_0x581a7a(0x111)][_0x581a7a(0x139)](_0x42135a[_0x5a953a]),_0x20aa4b=this[_0x581a7a(0x1c7)][_0x581a7a(0x1b6)](_0x5a953a),_0x5d4f19=new _0x45c472(_0x38d6fa[_0x581a7a(0x12a)](_0x20aa4b,0x0),_0x4c60f0,_0x2b7f5d++);_0x13da94[_0x581a7a(0x119)](_0x5d4f19);for(const [_0x165a73,_0x44702e]of _0x4c60f0[_0x581a7a(0x1ce)]){const _0x24c5f1=_0x38d6fa[_0x581a7a(0x1fa)](_0x38d6fa[_0x581a7a(0x143)](_0x20aa4b,_0x44702e[_0x581a7a(0x1df)][_0x581a7a(0x1ed)][_0x581a7a(0x1c8)]()),_0x38d6fa[_0x581a7a(0x143)](_0x20aa4b,_0x44702e[_0x581a7a(0x1b9)][_0x581a7a(0x1ed)][_0x581a7a(0x1c8)]())),_0x1adfe7=new _0x1af574(_0x165a73,null,_0x24c5f1,_0x38d6fa[_0x581a7a(0x1ce)],!0x0,_0x2b7f5d++);_0x13da94[_0x581a7a(0x119)](_0x1adfe7);}}if(_0xf77b89)for(const [_0x3a5bb6,_0x53e840]of Object[_0x581a7a(0x144)](_0xf77b89)){const _0x43e048=_0x38d6fa[_0x581a7a(0x1b2)][_0x581a7a(0x1b6)](_0x3a5bb6);if(!_0x43e048)throw new _0x43e1c2(_0x581a7a(0x18f),null);for(const [_0x553fdf,_0x4b25d4]of Object[_0x581a7a(0x144)](_0x53e840))if(null!==_0x4b25d4){const _0x55ada0=new _0xd59741(_0x43e048,_0x553fdf,null,_0x4b25d4,_0x2b7f5d++);_0x13da94[_0x581a7a(0x119)](_0x55ada0);}}return _0x13da94;}async[_0x980336(0x15a)](_0x557e84,_0x1023c3,_0x3f2427){const _0xe53198=_0x980336;this[_0xe53198(0x102)]({[_0x557e84]:_0x1023c3},{[_0x557e84]:_0x3f2427})[_0xe53198(0x179)]((_0x13838f,_0x5acdbc)=>{const _0x18a1a5=_0xe53198;_0x13838f[_0x18a1a5(0x16d)]=this[_0x18a1a5(0x1c7)][_0x18a1a5(0x156)]+_0x5acdbc,_0x13838f[_0x18a1a5(0x167)]=!0x0,this[_0x18a1a5(0x1ec)](_0x13838f);}),this[_0xe53198(0x191)](),await this[_0xe53198(0x16e)]();}async[_0x980336(0x1dd)](_0x318d0a,_0x446cd7){const _0xd5c3a4=_0x980336;let _0x255d9f;this[_0xd5c3a4(0x1d5)]=_0x318d0a[_0xd5c3a4(0x202)];const _0x981da1=_0x318d0a[_0xd5c3a4(0x1ab)]&&!_0x318d0a[_0xd5c3a4(0x18b)],_0x2cf2e5=_0x981da1?0x0:_0x318d0a[_0xd5c3a4(0x111)][_0xd5c3a4(0x16d)];if(_0x446cd7[_0xd5c3a4(0x179)](_0x3571f0=>{const _0x50c734=_0xd5c3a4;_0x3571f0[_0x50c734(0x167)]=!0x0,_0x3571f0[_0x50c734(0x1c2)]=_0x318d0a[_0x50c734(0x107)],_0x3571f0[_0x50c734(0x18e)]=null;}),_0x981da1)_0x255d9f=_0x446cd7,this[_0xd5c3a4(0x161)](_0x255d9f,_0x981da1);else{if(_0x318d0a[_0xd5c3a4(0x18b)]){const _0x2509a5=this[_0xd5c3a4(0x102)](_0x318d0a[_0xd5c3a4(0x18b)]);this[_0xd5c3a4(0x1c7)][_0xd5c3a4(0x1cf)][_0xd5c3a4(0x156)]=-_0x2509a5[_0xd5c3a4(0x134)],_0x2509a5[_0xd5c3a4(0x179)](_0x3bc29b=>{const _0x2e9890=_0xd5c3a4;_0x3bc29b[_0x2e9890(0x16d)]-=_0x2509a5[_0x2e9890(0x134)],_0x3bc29b[_0x2e9890(0x1c2)]=_0x318d0a[_0x2e9890(0x107)],_0x3bc29b[_0x2e9890(0x167)]=!0x0,_0x3bc29b[_0x2e9890(0x18e)]=null;}),this[_0xd5c3a4(0x161)](_0x2509a5,!0x0),this[_0xd5c3a4(0x182)][_0xd5c3a4(0x156)]=-_0x2509a5[_0xd5c3a4(0x134)]+this[_0xd5c3a4(0x1d5)],this[_0xd5c3a4(0x121)](_0x2509a5);}this[_0xd5c3a4(0x1c7)][_0xd5c3a4(0x1cf)][_0xd5c3a4(0x156)]=_0x2cf2e5,_0x255d9f=this[_0xd5c3a4(0x184)](_0x318d0a[_0xd5c3a4(0x111)],_0x318d0a[_0xd5c3a4(0x1f3)]),await this[_0xd5c3a4(0x18d)](_0x255d9f),this[_0xd5c3a4(0x161)](_0x255d9f,_0x981da1);}_0x318d0a[_0xd5c3a4(0x190)]&&(this[_0xd5c3a4(0x150)][_0xd5c3a4(0x1ff)](_0x255d9f,_0x318d0a[_0xd5c3a4(0x190)]),this[_0xd5c3a4(0x19a)]=_0x318d0a[_0xd5c3a4(0x190)]),this[_0xd5c3a4(0x182)][_0xd5c3a4(0x156)]=_0x2cf2e5+this[_0xd5c3a4(0x1d5)],this[_0xd5c3a4(0x121)](_0x255d9f),_0x446cd7[_0xd5c3a4(0x13c)](_0x34a136=>{const _0x9bdb62=_0xd5c3a4,_0x1ac34f=this[_0x9bdb62(0xfe)](_0x34a136);return _0x1ac34f&&!this[_0x9bdb62(0x13f)][_0x9bdb62(0x1cd)](_0x1ac34f);})[_0xd5c3a4(0x179)]((_0x27f842,_0xad8469)=>{const _0x307414=_0xd5c3a4;_0x27f842[_0x307414(0x16d)]=this[_0x307414(0x1c7)][_0x307414(0x156)]+_0xad8469,this[_0x307414(0x1ec)](_0x27f842);}),this[_0xd5c3a4(0x1d6)]()?(this[_0xd5c3a4(0x14e)]=0x0,this[_0xd5c3a4(0x191)](!0x0),await this[_0xd5c3a4(0x16e)]()):(this[_0xd5c3a4(0x127)]=!0x1,this[_0xd5c3a4(0x185)]());}[_0x980336(0x181)](_0x149050,_0x54ddf){const _0x121700=_0x980336,_0x684bea=_0x54ddf&&_0x54ddf[_0x121700(0x16c)];if(_0x684bea&&_0x684bea[_0x121700(0x168)](_0x121700(0x1e7)))throw _0x54ddf;const _0x208f59=this[_0x121700(0x113)][_0x121700(0x1be)][_0x121700(0x1f0)](_0x1cc2c1);throw this[_0x121700(0x127)]=!0x0,_0x208f59[_0x121700(0x106)](),this[_0x121700(0x113)][_0x121700(0x14a)](_0x121700(0x183)),new _0x43e1c2(_0x149050,this[_0x121700(0x113)],_0x684bea?{'originalError':_0x684bea}:void 0x0);}[_0x980336(0x1ec)](_0x23afb7){const _0x323755=_0x980336;this[_0x323755(0x133)][_0x323755(0x1cd)](_0x23afb7)||(this[_0x323755(0x133)][_0x323755(0x1d7)](_0x23afb7),this[_0x323755(0x120)][_0x323755(0x119)](_0x23afb7),this[_0x323755(0x1d0)]||_0x323755(0x14f)==_0x23afb7[_0x323755(0x10f)]&&!_0x23afb7[_0x323755(0x155)]||this[_0x323755(0x110)]());}[_0x980336(0x191)](_0x27864a=!0x1){const _0x51be87=_0x980336;!_0x27864a&&this[_0x51be87(0x127)]||(this[_0x51be87(0x127)]=!0x0,clearTimeout(this[_0x51be87(0x158)]),this[_0x51be87(0x158)]=setTimeout(()=>{const _0x371dd7=_0x51be87;this[_0x371dd7(0x146)]()[_0x371dd7(0x19b)](_0x1ed71d=>{const _0x524e64=_0x371dd7;_0x1ed71d&&(this[_0x524e64(0x185)](),this[_0x524e64(0x127)]=!0x1);})[_0x371dd7(0x1e8)](_0x410233=>{const _0x160587=_0x371dd7;this[_0x160587(0x185)](),this[_0x160587(0x127)]=!0x1,function(_0x34f9bc){const _0x405e23=_0x160587;return _0x34f9bc[_0x405e23(0x16c)][_0x405e23(0x168)](_0x405e23(0x130))||_0x34f9bc[_0x405e23(0x16c)][_0x405e23(0x168)](_0x405e23(0x11b))||_0x34f9bc[_0x405e23(0x16c)][_0x405e23(0x168)](_0x405e23(0x17c));}(_0x410233)||this[_0x160587(0x181)](_0x410233[_0x160587(0x16c)],_0x410233);});},this[_0x51be87(0x14e)]));}[_0x980336(0x16e)](){return new Promise(_0x5d4d57=>{const _0x5d6249=_0x1b6a;this['on'](_0x5d6249(0x203),()=>{_0x5d4d57();});});}async[_0x980336(0x146)](){const _0x2c7100=_0x980336,_0x34bbe2=this[_0x2c7100(0x113)][_0x2c7100(0x1be)][_0x2c7100(0x1f0)](_0x20cfdf);if(this[_0x2c7100(0x1d8)]()&&(_0x34bbe2[_0x2c7100(0xff)](),this[_0x2c7100(0x1c3)]=!0x1),!this[_0x2c7100(0x1d6)]())return!0x0;const _0x244816=[...this[_0x2c7100(0x120)]];for(const _0xf0261e of _0x244816)_0xf0261e[_0x2c7100(0x17b)]=this[_0x2c7100(0x1c7)][_0x2c7100(0x1cf)][_0x2c7100(0x1ae)](_0xf0261e);const _0x18dcfc=this[_0x2c7100(0x150)][_0x2c7100(0x13d)](_0x244816),_0x27fda3=X++,_0x21ddec=this[_0x2c7100(0x104)](_0x244816),_0x5b97c0=await this[_0x2c7100(0x172)][_0x2c7100(0x10b)](_0x21ddec,_0x21ddec[_0x2c7100(0x16d)],_0x18dcfc);try{return await this[_0x2c7100(0x201)](_0x244816,_0x5b97c0,_0x27fda3);}catch(_0x2b84bc){return this[_0x2c7100(0x181)](_0x2c7100(0x186),_0x2b84bc);}}async[_0x980336(0x201)](_0xa7e71e,_0x424a0e,_0x5449e3){const _0x3c12c0=_0x980336;if(_0x3c12c0(0x1a1)in _0x424a0e)throw _0x424a0e[_0x3c12c0(0x1a1)];let _0x769a1e=!0x1;if(_0x424a0e[_0x3c12c0(0x1ab)]){_0x424a0e[_0x3c12c0(0x190)]&&(this[_0x3c12c0(0x19a)]=_0x424a0e[_0x3c12c0(0x190)]),this[_0x3c12c0(0x120)]=this[_0x3c12c0(0x120)][_0x3c12c0(0x13c)](_0x9d09f3=>!_0xa7e71e[_0x3c12c0(0x1c1)](_0x9d09f3));for(const _0xfdc4e9 of _0xa7e71e)_0xfdc4e9[_0x3c12c0(0x1c2)]=_0x3c12c0(0x151)in _0x424a0e&&_0x424a0e[_0x3c12c0(0x151)]||void 0x0;Z(_0xa7e71e,_0x424a0e[_0x3c12c0(0x156)]-_0xa7e71e[_0x3c12c0(0x134)]),this[_0x3c12c0(0x121)](_0xa7e71e);const _0x2950c0=_0xa7e71e[_0x3c12c0(0x13c)](_0x558686=>{const _0x496f25=_0x3c12c0;if(!_0x558686[_0x496f25(0x167)])return!0x1;const _0x522b70=this[_0x496f25(0xfe)](_0x558686);return _0x522b70&&!this[_0x496f25(0x13f)][_0x496f25(0x1cd)](_0x522b70);});Z(_0x2950c0,this[_0x3c12c0(0x1c7)][_0x3c12c0(0x156)]),this[_0x3c12c0(0x161)](_0x2950c0),_0x769a1e=!0x0,this[_0x3c12c0(0x14e)]=this[_0x3c12c0(0x1e0)];}else{const _0x385cd3=this[_0x3c12c0(0x184)](_0x424a0e[_0x3c12c0(0x111)],_0x424a0e[_0x3c12c0(0x1f3)])[_0x3c12c0(0x13c)](_0x550261=>_0x550261[_0x3c12c0(0x16d)]>=this[_0x3c12c0(0x1bb)]);_0x385cd3[_0x3c12c0(0x179)](_0x4b293e=>this[_0x3c12c0(0x1aa)](_0x4b293e)),this[_0x3c12c0(0x120)]=this[_0x3c12c0(0x120)][_0x3c12c0(0x13c)](_0x512d15=>!_0x512d15[_0x3c12c0(0x167)]||!this[_0x3c12c0(0x13f)][_0x3c12c0(0x1cd)](this[_0x3c12c0(0xfe)](_0x512d15))),this[_0x3c12c0(0x120)][_0x3c12c0(0x134)]&&Z(this[_0x3c12c0(0x120)],this[_0x3c12c0(0x120)][0x0][_0x3c12c0(0x16d)]),await this[_0x3c12c0(0x18d)](_0x385cd3),_0x769a1e=this[_0x3c12c0(0x1b3)](_0x385cd3,_0x424a0e[_0x3c12c0(0x156)],_0x424a0e[_0x3c12c0(0x190)]),this[_0x3c12c0(0x14e)]=Math[_0x3c12c0(0x196)](this[_0x3c12c0(0x14e)]/0x2);}return _0x769a1e?!this[_0x3c12c0(0x1d6)]()||(this[_0x3c12c0(0x191)](!0x0),!0x1):this[_0x3c12c0(0x181)](_0x3c12c0(0x132));}[_0x980336(0x1b3)](_0x4747e5,_0x1fcdae,_0x3067f6){const _0x57b2a2=_0x980336;try{const _0x51748e={'document':this[_0x57b2a2(0x1c7)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x275622,operationsB:_0x1dc06c,originalOperations:_0x5e11dc}=_0x344f50(_0x4747e5,this[_0x57b2a2(0x120)],_0x51748e);Z(_0x275622,this[_0x57b2a2(0x1c7)][_0x57b2a2(0x156)]),Z(_0x1dc06c,_0x1fcdae);for(const _0x3e6ad3 of _0x275622){const _0x222252=_0x5e11dc[_0x57b2a2(0x1f0)](_0x3e6ad3);_0x3e6ad3[_0x57b2a2(0x18e)]=_0x222252?_0x222252[_0x57b2a2(0x18e)]:null;}_0x3067f6&&(this[_0x57b2a2(0x150)][_0x57b2a2(0x1ff)](_0x4747e5,_0x3067f6),this[_0x57b2a2(0x19a)]=_0x3067f6),this[_0x57b2a2(0x120)]=[..._0x1dc06c],this[_0x57b2a2(0x161)](_0x275622),this[_0x57b2a2(0x121)](_0x4747e5);}catch(_0x412e79){return console[_0x57b2a2(0x1a1)](_0x412e79),!0x1;}return!0x0;}[_0x980336(0x161)](_0x44993c,_0x20bb2d=!0x1){const _0x46da81=_0x980336;this[_0x46da81(0x113)][_0x46da81(0x166)][_0x46da81(0x1c6)]({'isUndoable':!0x1,'isLocal':!0x1},_0x215b28=>{const _0x43da95=_0x46da81;for(const _0x5819d8 of _0x44993c)this[_0x43da95(0x133)][_0x43da95(0x1d7)](_0x5819d8),this[_0x43da95(0x1aa)](_0x5819d8),_0x215b28[_0x43da95(0x10e)][_0x43da95(0x157)](_0x5819d8),this[_0x43da95(0x113)][_0x43da95(0x166)][_0x43da95(0x169)](_0x5819d8);});}[_0x980336(0x1aa)](_0x1cc096){const _0x279e0c=_0x980336,_0x480a23=this[_0x279e0c(0xfe)](_0x1cc096);_0x480a23&&this[_0x279e0c(0x13f)][_0x279e0c(0x1d7)](_0x480a23);}[_0x980336(0xfe)](_0x50f92a){const _0x46a2d2=_0x980336;let _0xd5b227,_0x4f581f;switch(_0x50f92a[_0x46a2d2(0x10f)]){case _0x46a2d2(0x123):_0xd5b227=_0x50f92a[_0x46a2d2(0x1ac)][_0x46a2d2(0x109)];break;case _0x46a2d2(0x14f):if(_0x4f581f=_0x50f92a[_0x46a2d2(0x100)],!_0x4f581f)return null;_0xd5b227=_0x4f581f[_0x46a2d2(0x109)];break;case _0x46a2d2(0x11e):_0xd5b227=_0x50f92a[_0x46a2d2(0x109)];break;case _0x46a2d2(0x15d):_0xd5b227=_0x50f92a[_0x46a2d2(0x1fd)];break;case _0x46a2d2(0x1f9):_0xd5b227=_0x50f92a[_0x46a2d2(0x170)][_0x46a2d2(0x109)];break;default:return null;}return _0xd5b227[_0x46a2d2(0x16f)];}[_0x980336(0x121)](_0x46f43b){const _0x48c634=_0x980336;_0x46f43b[_0x48c634(0x179)](_0x3a6bc6=>{const _0x5e4422=_0x48c634,_0x418581=_0x3a6bc6[_0x5e4422(0x13b)]();_0x418581[_0x5e4422(0x18e)]=_0x3a6bc6[_0x5e4422(0x18e)],_0x418581[_0x5e4422(0x167)]=!!_0x3a6bc6[_0x5e4422(0x167)],_0x418581[_0x5e4422(0x1c2)]=_0x3a6bc6[_0x5e4422(0x1c2)],_0x418581[_0x5e4422(0x16d)]+=this[_0x5e4422(0x1d5)],_0x3a6bc6[_0x5e4422(0x117)]&&this[_0x5e4422(0x115)][_0x5e4422(0x1d7)](_0x418581),this[_0x5e4422(0x182)][_0x5e4422(0x157)](_0x418581);});}[_0x980336(0x138)](_0x4164cb){const _0x5bacfa=_0x980336,_0x5b3951=this[_0x5bacfa(0x113)][_0x5bacfa(0x1be)][_0x5bacfa(0x1f0)](_0x5bacfa(0x1cc)),_0x32b1b6=this[_0x5bacfa(0x113)][_0x5bacfa(0x193)];_0x4164cb||(_0x4164cb=_0x134411(_0x32b1b6,_0x5bacfa(0x18a))),_0x5b3951[_0x5bacfa(0x175)](_0x4164cb,{'title':_0x134411(_0x32b1b6,_0x5bacfa(0x1f7)),'namespace':_0x5bacfa(0x14b)}),this[_0x5bacfa(0x200)]=!0x0,clearTimeout(this[_0x5bacfa(0x158)]),this[_0x5bacfa(0x120)]=[],this[_0x5bacfa(0x113)][_0x5bacfa(0x1be)][_0x5bacfa(0x1f0)](_0x1cc2c1)[_0x5bacfa(0x106)]();}[_0x980336(0x110)](){const _0x3fa15a=_0x980336;this[_0x3fa15a(0x1d0)]||(this[_0x3fa15a(0x1d0)]=this[_0x3fa15a(0x113)][_0x3fa15a(0x1be)][_0x3fa15a(0x1f0)](_0x5e3c28)[_0x3fa15a(0x1d7)](_0x134411(this[_0x3fa15a(0x113)][_0x3fa15a(0x193)],_0x3fa15a(0x118))));}[_0x980336(0x185)](){const _0xef4621=_0x980336;this[_0xef4621(0x1d0)]&&(this[_0xef4621(0x113)][_0xef4621(0x1be)][_0xef4621(0x1f0)](_0x5e3c28)[_0xef4621(0x147)](this[_0xef4621(0x1d0)]),this[_0xef4621(0x1d0)]=null);}[_0x980336(0x104)](_0x2c6e0f){const _0x37e311=_0x980336,_0x34514a=_0x2c6e0f[_0x37e311(0x142)](_0x51730f=>_0x51730f[_0x37e311(0x1a5)]());return this[_0x37e311(0x129)][_0x37e311(0x1e9)](_0x34514a);}[_0x980336(0x184)](_0x575b37,_0xde39e1){const _0x1a412c=_0x980336;return this[_0x1a412c(0x129)][_0x1a412c(0x1f5)](_0x575b37)[_0x1a412c(0x142)]((_0x5102c5,_0x136ea1)=>{const _0x582b4f=_0x1a412c,_0xa94831=_0x582b4f(0x128)==_0xde39e1[_0x136ea1][_0x582b4f(0x10f)];if(_0x582b4f(0x1ca)==_0x5102c5[_0x582b4f(0x1a0)]){const _0x187f7c=_0x5102c5[_0x582b4f(0x1ac)][_0x582b4f(0x109)];!this[_0x582b4f(0x1c7)][_0x582b4f(0x1b6)](_0x187f7c)&&(this[_0x582b4f(0x1c7)][_0x582b4f(0x15c)](_0x582b4f(0x165),_0x187f7c)[_0x582b4f(0x160)]=!0x1);}const _0x65a463=_0x4fa64a[_0x582b4f(0x153)](_0x5102c5,this[_0x582b4f(0x1c7)]);return _0x65a463[_0x582b4f(0x17b)]=_0x5102c5[_0x582b4f(0x17b)],_0x65a463[_0x582b4f(0x167)]=_0xa94831,_0x65a463[_0x582b4f(0x18e)]=_0xa94831?null:_0xde39e1[_0x136ea1][_0x582b4f(0x1a3)],_0x65a463[_0x582b4f(0x117)]=_0x582b4f(0x189)===_0xde39e1[_0x136ea1][_0x582b4f(0x10f)],_0x65a463[_0x582b4f(0x1c2)]=_0xde39e1[_0x136ea1][_0x582b4f(0x1c2)],_0x65a463;});}[_0x980336(0x136)](){const _0x4cc0ce=_0x980336;this[_0x4cc0ce(0x1c3)]=!0x0,this[_0x4cc0ce(0x1d8)]()?this[_0x4cc0ce(0x191)]():this[_0x4cc0ce(0x1c3)]=!0x1;}[_0x980336(0x1d8)](){const _0x4ed5db=_0x980336,_0x5cd150=this[_0x4ed5db(0x113)][_0x4ed5db(0x1be)][_0x4ed5db(0x1f0)](_0x358490)[_0x4ed5db(0x1bd)][_0x4ed5db(0x1f0)](this[_0x4ed5db(0x1c0)]);return!this[_0x4ed5db(0x113)][_0x4ed5db(0x17d)]&&!!_0x5cd150&&_0x5cd150[_0x4ed5db(0x134)]>0x1&&this[_0x4ed5db(0x1c3)];}[_0x980336(0x1d6)](){const _0x2ea5ee=_0x980336;return this[_0x2ea5ee(0x120)][_0x2ea5ee(0x134)]>0x0||this[_0x2ea5ee(0x1d8)]();}}export{l as RealTimeCollaborationClient};class Y extends Error{}function Z(_0x146232,_0x3ef52e){const _0x117c05=_0x980336;for(const _0x14d068 of _0x146232)_0x14d068[_0x117c05(0x16d)]=_0x3ef52e++;}function _0x4dcb(){const _0x18268e=['document:write','batch','type','_setPendingAction','data','finally','editor','differ','_disconnectionOperations','reset','_isDisconnection','PENDING_ACTION_SENDING_DATA','push','setPermissions','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','change:range','_disconnectService','addRootAttribute','addToReconnectionStack','_bufferedOperations','_updateServerHistory','520502jlTfNF','insert','state','apply','disableReadOnlyMode','_isPendingUpdate','init','_compressor','createPositionAt','realtimecollaborationclient-init-service-internal-error','mySessionId','addUser','_ignoredOperations','realtimecollaborationclient-init-connection-failed','cloud-services-internal-error:\x20Not\x20connected.','rtc-offline','realtimecollaborationclient-handleserverresponse','_knownOperations','length','rootsAttributes','_refreshUserSelectionMarkers','keys','_handleReconnectionError','parse','1160pnvnpA','clone','filter','getIdOfTheLastOperation','permissions','_knownRootNames','getUser','collaboration-missing-channelid','map','createPositionFromPath','entries','pluginName','_sendBufferedOperations','remove','4ggGeXy','cloudServices.bundleVersion','enableReadOnlyMode','real-time-collaboration','realtimecollaborationclient-init-session-connection-error','return','_currentBufferDelay','marker','_operationIdentifier','lastOperationAcceptedAt','lastSyncVersion','fromJSON','_setUpDataInit','affectsData','version','addOperation','_sendBufferedOperationsDelayId','CommentsOnly','_loadRoot','set','createRoot','addRoot','_initThrowingOnDataSet','unregister','_isAttached','_applyOperationsSet','4429880BhZBQN','_isEditingAllowed','disconnected','$root','model','_isInit','startsWith','applyOperation','define','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','message','baseVersion','_waitUntilSynced','rootName','targetPosition','2332488jdekmS','_service','size','rtc-destroyed','showWarning','change:_isEditingAllowed','listenTo','connected','forEach','getMany','wasUndone','cloud-services-internal-error:\x20Request\x20timeout.','isReadOnly','code','3144597xihlNS','isEnabled','_crash','serverHistory','realtimecollaborationclient-error','_decompressOperations','_clearPendingAction','realtimecollaborationclient-sendbufferedoperations','_operationToId','_isLoaded','cs:removeUser','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','initData','isOfficialPlugin','_fetchMissingUsers','_authorId','multi-root-editor-root-attributes-no-root','lastOperationId','_sendBufferedOperationsDelayed','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','locale','ready','sessionId','round','operationsReceived','sessionAdd:','stopListening','_lastSyncedOperationId','then','directChange','view','getOperationAuthor','destroy','__className','error','18HwUAJg','userId','RealTimeCollaborationClient','toJSON','404','realtimecollaborationclient-init-service-incorrect-server-operation','editing','string','_addKnownRoot','wereChangesApplied','position','collaboration.channelId','isUndoneOperation','851858zaAlGP','isDocumentOperation','_connectService','document','_handleExternalOperations','requires','Permissions','getRoot','4RgTptI','getOperations','end','high','_lastServerVersion','selection','channelSessions','plugins','getConnectedSessions','_channelId','includes','createdAt','_hasSelectionChanged','409','_bufferRootLoad','enqueueChange','_document','slice','stop','InsertOperation','connect','Notification','has','markers','history','_pendingAction','_connectAfterSessionHasBeenFlushed','_initSessionsHandling','loadRoot','suppressErrorInCollaboration','_offset','_shouldSendUpdate','add','_shouldSendSelectionUpdate','lastDocumentSession','config','isPremiumPlugin','reconnection:\x20flushed\x20session','_handleInitialConnectionData','554820HbWiME','start','_baseBufferDelay','attributes','CollaborativeEditingService','reconnect','off','bind','realtimecollaborationclient-init-non-existent-root','realtimecollaborationclient','catch','compress','_handleSendingSelectionMarkers','realtimecollaborationclient-init-document-already-initialized','_saveOperationInBuffer','path','fire','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','get','_isConnected','from','metadata','getDocumentDetails','decompress','register','Synchronization\x20issue','removeFromReconnectionStack','move','createRange','_handleReceivedOperations','currentDocumentSession','affectedSelectable','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','setIdForTheLastOperation','_hasSynchronizationProblem','_handleServerResponse','offset','change:_isPendingUpdate','105138JAPFNj','_getAffectedRoot','createUserMarkerOperations','newRange','roots','_getOperationsFromInitData','change:hasDomSelection','_compressOperations','cloudDocumentVersion','disconnect','sessionCreatedAt','connection','root','_handleReconnectionResponse','sendOperations','collaboration'];_0x4dcb=function(){return _0x18268e;};return _0x4dcb();}class tt{[_0x980336(0x12e)];[_0x980336(0x187)];constructor(_0x46bb96){const _0xb7719d=_0x980336;this[_0xb7719d(0x12e)]=_0x46bb96,this[_0xb7719d(0x187)]=new WeakMap();}[_0x980336(0x13d)](_0x4f862e){const _0xdd013c=_0x980336;let _0x227fe6=_0x4f862e[_0xdd013c(0x134)];for(;_0x227fe6--;){const _0x24e58c=_0x4f862e[_0x227fe6];if(!this[_0xdd013c(0x12e)][_0xdd013c(0x1cd)](_0x24e58c)){if(!this[_0xdd013c(0x187)][_0xdd013c(0x1cd)](_0x24e58c)){const _0x3c4752=_0x4c34ba()[_0xdd013c(0x1c8)](0x1,0x12);this[_0xdd013c(0x187)][_0xdd013c(0x15b)](_0x24e58c,_0x3c4752);}return this[_0xdd013c(0x187)][_0xdd013c(0x1f0)](_0x24e58c);}}}[_0x980336(0x1ff)](_0x26e234,_0x894f3c){const _0x2e86ae=_0x980336;if(!_0x894f3c)return;let _0x3220ae=_0x26e234[_0x2e86ae(0x134)];for(;_0x3220ae--;){const _0x5e3d30=_0x26e234[_0x3220ae];this[_0x2e86ae(0x12e)][_0x2e86ae(0x1cd)](_0x5e3d30)||this[_0x2e86ae(0x187)][_0x2e86ae(0x15b)](_0x5e3d30,_0x894f3c);}}}
23
+ const _0x17c9b6=_0x1170;(function(_0x51937e,_0x24abee){const _0x4b76f7=_0x1170,_0x94d483=_0x51937e();while(!![]){try{const _0x56d541=-parseInt(_0x4b76f7(0x17e))/0x1+parseInt(_0x4b76f7(0x1fc))/0x2+-parseInt(_0x4b76f7(0x10b))/0x3+parseInt(_0x4b76f7(0x1bf))/0x4+parseInt(_0x4b76f7(0x1ee))/0x5*(parseInt(_0x4b76f7(0x1f0))/0x6)+-parseInt(_0x4b76f7(0x1d0))/0x7+-parseInt(_0x4b76f7(0x11b))/0x8*(-parseInt(_0x4b76f7(0x198))/0x9);if(_0x56d541===_0x24abee)break;else _0x94d483['push'](_0x94d483['shift']());}catch(_0x350ec7){_0x94d483['push'](_0x94d483['shift']());}}}(_0x4b63,0x3a6c1));import{Plugin as _0x52b0ee,PendingActions as _0x211d59}from'ckeditor5/src/core.js';import{CKEditorError as _0x4506b4,version as _0x5830f6,uid as _0x536e6d}from'ckeditor5/src/utils.js';import{Notification as _0x3c0eec}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x3d9921,NoOperation as _0x4034bf,InsertOperation as _0x889eb6,MarkerOperation as _0x467f55,RootAttributeOperation as _0x14d0aa,OperationFactory as _0x370286,History as _0x22460a}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x409934}from'./websocketgateway.js';import{Sessions as _0x2d3dc6}from'./sessions.js';import{UserMarkers as _0x3a849f}from'./usermarkers.js';import{getTranslation as _0x203777}from'../common-translations.js';import{Compressor as _0x2e2892}from'@ckeditor/ckeditor5-operations-compressor';function _0x1170(_0x93290b,_0x23b796){const _0x4b63f4=_0x4b63();return _0x1170=function(_0x117011,_0x3b8e51){_0x117011=_0x117011-0x107;let _0x382b88=_0x4b63f4[_0x117011];return _0x382b88;},_0x1170(_0x93290b,_0x23b796);}function _0x4b63(){const _0x4aff5b=['compress','realtimecollaborationclient-init-session-connection-error','getOperationAuthor','_lastSyncedOperationId','serverHistory','_crash','_fetchMissingUsers','CollaborativeEditingService','_handleReceivedOperations','isEnabled','_authorId','addUser','_isPendingUpdate','disconnect','sessionAdd:','editor','rtc-destroyed','view','wasUndone','userId','high','unregister','isOfficialPlugin','metadata','getDocumentDetails','config','newRange','state','realtimecollaborationclient','realtimecollaborationclient-handleserverresponse','requires','locale','_hasSynchronizationProblem','_saveOperationInBuffer','push','PENDING_ACTION_SENDING_DATA','change:range','affectedSelectable','getUser','plugins','register','cs:removeUser','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','type','entries','_getOperationsFromInitData','toJSON','lastDocumentSession','wereChangesApplied','attributes','_setPendingAction','_bufferedOperations','_compressor','realtimecollaborationclient-init-connection-failed','from','realtimecollaborationclient-error','_knownRootNames','lastOperationId','data','cloudServices.bundleVersion','remove','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','$root','Permissions','get','marker','_handleInitialConnectionData','_isEditingAllowed','_pendingAction','_sendBufferedOperationsDelayId','lastSyncVersion','sessionId','connected','bind','change:_isEditingAllowed','offset','string','currentDocumentSession','targetPosition','has','_sendBufferedOperationsDelayed','287065SNoKye','_setUpDataInit','_loadRoot','addToReconnectionStack','start','addRootAttribute','initData','fromJSON','rootsAttributes','RealTimeCollaborationClient','_connectAfterSessionHasBeenFlushed','__className','model','set','isUndoneOperation','forEach','stopListening','applyOperation','cloud-services-internal-error:\x20Request\x20timeout.','createPositionFromPath','rootName','round','_bufferRootLoad','_baseBufferDelay','createdAt','stop','9GbLRzx','getOperations','clone','multi-root-editor-root-attributes-no-root','size','code','realtimecollaborationclient-init-non-existent-root','editing','baseVersion','operationsReceived','_updateServerHistory','_lastServerVersion','real-time-collaboration','reconnection:\x20flushed\x20session','history','sessionCreatedAt','_handleServerResponse','isReadOnly','Notification','404','add','error','document','then','_isLoaded','reconnect','ready','sendOperations','lastOperationAcceptedAt','showWarning','getRoot','map','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','getConnectedSessions','removeFromReconnectionStack','destroy','Synchronization\x20issue','return','startsWith','8988oqyHlt','CommentsOnly','change:hasDomSelection','collaboration.channelId','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_initThrowingOnDataSet','connect','move','realtimecollaborationclient-init-service-incorrect-server-operation','_knownOperations','slice','_addKnownRoot','_currentBufferDelay','rtc-offline','position','_document','document:write','256354qbVWyx','realtimecollaborationclient-init-service-internal-error','_handleSendingSelectionMarkers','_refreshUserSelectionMarkers','suppressErrorInCollaboration','isDocumentOperation','directChange','_shouldSendUpdate','reset','parse','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','affectsData','fire','createRoot','markers','finally','collaboration','define','_channelId','getMany','setIdForTheLastOperation','filter','realtimecollaborationclient-init-document-already-initialized','_shouldSendSelectionUpdate','_isAttached','createRange','createPositionAt','permissions','_offset','init','18705vJUhKq','decompress','318emzIUO','_ignoredOperations','catch','409','_operationToId','change:_isPendingUpdate','_handleExternalOperations','cloudDocumentVersion','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','connection','_compressOperations','getIdOfTheLastOperation','752664RAsMUc','_clearPendingAction','_isDisconnection','end','pluginName','message','setPermissions','disconnected','_applyOperationsSet','_getAffectedRoot','cloud-services-internal-error:\x20Not\x20connected.','realtimecollaborationclient-sendbufferedoperations','_decompressOperations','_waitUntilSynced','batch','enableReadOnlyMode','_isConnected','root','selection','_initSessionsHandling','467688fiqJYW','enqueueChange','keys','differ','loadRoot','collaboration-missing-channelid','_sendBufferedOperations','addOperation','includes','mySessionId','InsertOperation','channelSessions','off','insert','listenTo','_handleReconnectionError','1136224qNxgmi','path','addRoot','_handleReconnectionResponse','_service','isPremiumPlugin','disableReadOnlyMode','_disconnectionOperations','_hasSelectionChanged','_connectService','version','_isInit','_disconnectService','createUserMarkerOperations','apply','length','_operationIdentifier','roots'];_0x4b63=function(){return _0x4aff5b;};return _0x4b63();}import{Users as _0x571135}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x15c739,CollaborativeEditingService as _0x320a86}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let X=0x1;class l extends _0x52b0ee{static [_0x17c9b6(0x134)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x320a86)());[_0x17c9b6(0x1ec)];[_0x17c9b6(0x174)];[_0x17c9b6(0x131)];[_0x17c9b6(0x1e2)];[_0x17c9b6(0x11f)];[_0x17c9b6(0x1ce)];[_0x17c9b6(0x161)];[_0x17c9b6(0x160)];[_0x17c9b6(0x1c8)];[_0x17c9b6(0x165)];[_0x17c9b6(0x171)];[_0x17c9b6(0x123)];[_0x17c9b6(0x172)];[_0x17c9b6(0x195)];[_0x17c9b6(0x1cb)];[_0x17c9b6(0x130)];[_0x17c9b6(0x122)];[_0x17c9b6(0x12b)];static get[_0x17c9b6(0x14b)](){return[_0x409934,_0x2d3dc6,_0x3a849f,_0x211d59,_0x571135,_0x3c0eec];}static get[_0x17c9b6(0x200)](){const _0x26cc84=_0x17c9b6;return _0x26cc84(0x187);}static get[_0x17c9b6(0x143)](){return!0x0;}static get[_0x17c9b6(0x120)](){return!0x0;}get[_0x17c9b6(0x1f7)](){const _0x58a4d3=_0x17c9b6;return this[_0x58a4d3(0x1a3)]+this[_0x58a4d3(0x1ec)];}get[_0x17c9b6(0x1a3)](){const _0xf4a9a5=_0x17c9b6;return this[_0xf4a9a5(0x131)][_0xf4a9a5(0x125)]-this[_0xf4a9a5(0x1ec)];}get[_0x17c9b6(0x173)](){const _0x1054f0=_0x17c9b6,_0x252145=this[_0x1054f0(0x131)][_0x1054f0(0x199)]();for(let _0x119696=_0x252145[_0x1054f0(0x12a)]-0x1;_0x119696>=0x0;_0x119696--){const _0x190d17=_0x252145[_0x119696];if(!this[_0x1054f0(0x122)][_0x1054f0(0x17c)](_0x190d17))return _0x190d17[_0x1054f0(0x1a0)]+0x1-this[_0x1054f0(0x1ec)];}return 0x0;}constructor(_0x291360){const _0xf58919=_0x17c9b6;if(super(_0x291360),this[_0xf58919(0x1ec)]=0x0,this[_0xf58919(0x174)]=null,this[_0xf58919(0x131)]=new _0x22460a(),this[_0xf58919(0x13c)][_0xf58919(0x146)][_0xf58919(0x1e1)](_0xf58919(0x1e0),{}),this[_0xf58919(0x1e2)]=this[_0xf58919(0x13c)][_0xf58919(0x146)][_0xf58919(0x16d)](_0xf58919(0x1c2)),!this[_0xf58919(0x1e2)])throw new _0x4506b4(_0xf58919(0x110),this);const _0x931c8=_0x291360[_0xf58919(0x146)][_0xf58919(0x16d)](_0xf58919(0x168))||_0x5830f6;this[_0xf58919(0x11f)]=new l[(_0xf58919(0x134))](_0x931c8,this[_0xf58919(0x1e2)]),this[_0xf58919(0x1ce)]=this[_0xf58919(0x13c)][_0xf58919(0x18a)][_0xf58919(0x1ae)],this[_0xf58919(0x161)]=new _0x2e2892(),this[_0xf58919(0x160)]=[],this[_0xf58919(0x1c8)]=new WeakSet(),this[_0xf58919(0x165)]=new Set(),this[_0xf58919(0x18b)](_0xf58919(0x139),!0x1),this[_0xf58919(0x18b)](_0xf58919(0x14d),!0x1),this[_0xf58919(0x171)]=null,this[_0xf58919(0x123)]=!0x1,this[_0xf58919(0x172)]=null,this[_0xf58919(0x195)]=0x12c,this[_0xf58919(0x1cb)]=this[_0xf58919(0x195)],this[_0xf58919(0x130)]=null,this[_0xf58919(0x122)]=new WeakSet(),this[_0xf58919(0x12b)]=new tt(this[_0xf58919(0x122)]);}[_0x17c9b6(0x1ed)](){const _0x2099e9=_0x17c9b6,_0x382f5e=this[_0x2099e9(0x13c)],_0x4f9221=_0x382f5e[_0x2099e9(0x154)][_0x2099e9(0x16d)](_0x571135),_0x2a0a9e=_0x382f5e[_0x2099e9(0x154)][_0x2099e9(0x16d)](_0x409934);this[_0x2099e9(0x119)](_0x4f9221,_0x2099e9(0x12f),(_0xdac881,_0x11e3cc)=>{const _0x6c0709=_0x2099e9,_0x59cd75=_0x11e3cc[0x0];_0x59cd75[_0x6c0709(0x137)]&&(_0xdac881[_0x6c0709(0x1bd)]=_0x4f9221[_0x6c0709(0x153)](_0x59cd75[_0x6c0709(0x137)]),_0xdac881[_0x6c0709(0x197)]()),null===_0x59cd75[_0x6c0709(0x137)]&&(_0xdac881[_0x6c0709(0x1bd)]=null,_0xdac881[_0x6c0709(0x197)]());},{'priority':_0x2099e9(0x141)}),this[_0x2099e9(0x119)](_0x382f5e[_0x2099e9(0x18a)][_0x2099e9(0x1ae)][_0x2099e9(0x109)],_0x2099e9(0x151),(_0x41e35f,_0x31fbad)=>{const _0x15ac46=_0x2099e9;_0x31fbad[_0x15ac46(0x1d6)]&&this[_0x15ac46(0x1d3)]();}),this[_0x2099e9(0x119)](_0x382f5e[_0x2099e9(0x19f)][_0x2099e9(0x13e)],_0x2099e9(0x1c1),()=>{const _0x237f1e=_0x2099e9;this[_0x237f1e(0x1d3)]();}),this[_0x2099e9(0x1c4)](),_0x382f5e[_0x2099e9(0x18a)]['on'](_0x2099e9(0x18f),(_0x3da712,_0xf418e8)=>{const _0x5ede41=_0x2099e9,_0x327348=_0xf418e8[0x0];_0x327348[_0x5ede41(0x1d5)]&&(this[_0x5ede41(0x14e)](_0x327348),this[_0x5ede41(0x1d7)]()&&this[_0x5ede41(0x17d)]());}),this[_0x2099e9(0x17f)](),this[_0x2099e9(0x176)](_0x2099e9(0x170))['to'](_0x2a0a9e,_0x2099e9(0x148),this,_0x2099e9(0x14d),(_0x330010,_0x4561ce)=>_0x2099e9(0x175)===_0x330010&&!_0x4561ce),this['on'](_0x2099e9(0x177),()=>{const _0x3970c0=_0x2099e9;this[_0x3970c0(0x170)]?_0x382f5e[_0x3970c0(0x121)](_0x3970c0(0x1cc)):_0x382f5e[_0x3970c0(0x20b)](_0x3970c0(0x1cc));}),this[_0x2099e9(0x170)]?_0x382f5e[_0x2099e9(0x121)](_0x2099e9(0x1cc)):_0x382f5e[_0x2099e9(0x20b)](_0x2099e9(0x1cc)),this[_0x2099e9(0x18b)](_0x2099e9(0x107),!0x1);}async[_0x17c9b6(0x1b1)](){const _0x353bcc=_0x17c9b6,_0x16a862=this[_0x353bcc(0x13c)][_0x353bcc(0x154)][_0x353bcc(0x16d)](_0x2d3dc6),_0x286d18=this[_0x353bcc(0x13c)][_0x353bcc(0x154)][_0x353bcc(0x16d)](_0x409934);try{this[_0x353bcc(0x139)]=!0x0,_0x16a862[_0x353bcc(0x142)](this[_0x353bcc(0x1e2)]);const _0x536946=await this[_0x353bcc(0x11f)][_0x353bcc(0x1b1)](_0x286d18[_0x353bcc(0x1f9)],this[_0x353bcc(0x173)]);await this[_0x353bcc(0x11e)](_0x536946)&&(this[_0x353bcc(0x139)]=!0x1,this[_0x353bcc(0x1fd)]());const _0x7954cf=await this[_0x353bcc(0x11f)][_0x353bcc(0x1b9)]();_0x16a862[_0x353bcc(0x155)](this[_0x353bcc(0x1e2)],_0x7954cf),this[_0x353bcc(0x1d2)](),this[_0x353bcc(0x107)]=!0x0;}catch(_0x2854df){if(function(_0x26d31f){const _0xf0fdb=_0x353bcc;return _0xf0fdb(0x1ab)===_0x26d31f[_0xf0fdb(0x19d)];}(_0x2854df)&&this[_0x353bcc(0x174)])await this[_0x353bcc(0x188)]();else{if(function(_0xb009c3){const _0x3c2e63=_0x353bcc;return _0x3c2e63(0x1f3)===_0xb009c3[_0x3c2e63(0x19d)];}(_0x2854df)){const _0x406498=_0x203777(this[_0x353bcc(0x13c)][_0x353bcc(0x14c)],_0x353bcc(0x157));this[_0x353bcc(0x11a)](_0x406498);}else{if(!(_0x2854df instanceof Y))throw _0x2854df;this[_0x353bcc(0x11a)]();}}}}[_0x17c9b6(0x1bb)](){const _0xd81a57=_0x17c9b6,_0x5bee5f=this[_0xd81a57(0x13c)][_0xd81a57(0x154)][_0xd81a57(0x16d)](_0x409934),_0xe4aec=this[_0xd81a57(0x13c)][_0xd81a57(0x154)][_0xd81a57(0x16d)](_0x2d3dc6);this[_0xd81a57(0x13c)][_0xd81a57(0x20b)](_0xd81a57(0x13d)),_0xe4aec[_0xd81a57(0x116)][_0xd81a57(0x17c)](this[_0xd81a57(0x1e2)])&&_0xe4aec[_0xd81a57(0x142)](this[_0xd81a57(0x1e2)]),_0x5bee5f[_0xd81a57(0x1ba)](this),this[_0xd81a57(0x127)](),super[_0xd81a57(0x1bb)]();}async[_0x17c9b6(0x11e)](_0x40139e){const _0x1a26e9=_0x17c9b6;if(this[_0x1a26e9(0x174)]!==_0x40139e[_0x1a26e9(0x174)]&&this[_0x1a26e9(0x130)]!==_0x40139e[_0x1a26e9(0x166)])throw new Y();return this[_0x1a26e9(0x174)]=_0x40139e[_0x1a26e9(0x174)],this[_0x1a26e9(0x1a8)]([],{..._0x40139e,'wereChangesApplied':!0x1,'data':_0x40139e[_0x1a26e9(0x167)]},_0x1a26e9(0x1b1));}async[_0x17c9b6(0x124)](_0x9fd2ae,_0x6f4b1a=!0x1){const _0x37219e=_0x17c9b6,{connection:_0x44227c}=this[_0x37219e(0x13c)][_0x37219e(0x154)][_0x37219e(0x16d)](_0x409934);l[_0x37219e(0x134)][_0x37219e(0x1b9)](_0x44227c,this[_0x37219e(0x1e2)])[_0x37219e(0x1af)](_0x27f524=>this[_0x37219e(0x10a)](_0x27f524))[_0x37219e(0x1f2)](_0x5963e8=>{const _0x45ebfc=_0x37219e;this[_0x45ebfc(0x132)](_0x45ebfc(0x12e),_0x5963e8);}),this[_0x37219e(0x119)](this[_0x37219e(0x11f)],_0x37219e(0x1a1),this[_0x37219e(0x135)][_0x37219e(0x176)](this)),this[_0x37219e(0x119)](this[_0x37219e(0x11f)],_0x37219e(0x1ad),(_0x271a73,_0x152a68)=>{const _0x5403e7=_0x37219e;this[_0x5403e7(0x132)](_0x5403e7(0x1d1),_0x152a68);}),this[_0x37219e(0x119)](this[_0x37219e(0x11f)],_0x37219e(0x203),()=>{const _0xcc4613=_0x37219e;this[_0xcc4613(0x107)]=!0x1;});const _0x2c432a=this[_0x37219e(0x12b)][_0x37219e(0x1fb)](_0x9fd2ae);this[_0x37219e(0x139)]=!0x0;const _0x31c5ee=await this[_0x37219e(0x11f)][_0x37219e(0x1c5)](_0x44227c,this[_0x37219e(0x1fa)](_0x9fd2ae),_0x2c432a);if(this[_0x37219e(0x174)]=_0x31c5ee[_0x37219e(0x174)],_0x6f4b1a){if(!_0x31c5ee[_0x37219e(0x15d)])return void this[_0x37219e(0x11a)]();this[_0x37219e(0x139)]=!0x1,this[_0x37219e(0x1fd)](),this[_0x37219e(0x131)][_0x37219e(0x1d8)](),this[_0x37219e(0x1ec)]=_0x31c5ee[_0x37219e(0x178)],this[_0x37219e(0x131)][_0x37219e(0x125)]=this[_0x37219e(0x1ec)],await this[_0x37219e(0x1a8)](_0x9fd2ae,_0x31c5ee,_0x37219e(0x1a5));}else await this[_0x37219e(0x16f)](_0x31c5ee,_0x9fd2ae);this[_0x37219e(0x1d2)](),this[_0x37219e(0x107)]=!0x0;}[_0x17c9b6(0x1d2)](){const _0x425677=_0x17c9b6,_0x399b7e=this[_0x425677(0x13c)][_0x425677(0x154)][_0x425677(0x16d)](_0x2d3dc6),_0x544c9d=this[_0x425677(0x13c)][_0x425677(0x154)][_0x425677(0x16d)](_0x3a849f),_0x4a835a=_0x399b7e[_0x425677(0x116)][_0x425677(0x16d)](this[_0x425677(0x1e2)]);_0x4a835a&&_0x4a835a[_0x425677(0x12a)]>0x1?_0x544c9d[_0x425677(0x128)]():this[_0x425677(0x119)](_0x399b7e,_0x425677(0x13b)+this[_0x425677(0x1e2)],()=>{const _0x528cac=_0x425677;0x2===_0x399b7e[_0x528cac(0x116)][_0x528cac(0x16d)](this[_0x528cac(0x1e2)])[_0x528cac(0x12a)]&&_0x544c9d[_0x528cac(0x128)]();});}async[_0x17c9b6(0x135)](_0x38ed53,_0x1d1c16,_0x712375,_0x1d6986){const _0x2f4087=_0x17c9b6;if(!this[_0x2f4087(0x139)]&&this[_0x2f4087(0x1ce)][_0x2f4087(0x125)]==_0x1d1c16){const _0x232231=this[_0x2f4087(0x208)](_0x712375,_0x1d6986);await this[_0x2f4087(0x133)](_0x232231),this[_0x2f4087(0x1f6)](_0x232231,_0x1d1c16,_0x712375[_0x2f4087(0x166)])||this[_0x2f4087(0x132)](_0x2f4087(0x1c7));}}async[_0x17c9b6(0x188)](){const _0x3ed822=_0x17c9b6;this[_0x3ed822(0x127)]();const {locale:_0x3852a9}=this[_0x3ed822(0x13c)];let _0x4646e4;try{_0x4646e4=await this[_0x3ed822(0x11f)][_0x3ed822(0x145)]();}catch{const _0x5b819c=_0x203777(_0x3852a9,_0x3ed822(0x1b8));return void this[_0x3ed822(0x11a)](_0x5b819c);}const _0x5666c7=_0x4646e4[_0x3ed822(0x17a)]||_0x4646e4[_0x3ed822(0x15c)];if(this[_0x3ed822(0x130)]!==_0x5666c7[_0x3ed822(0x166)]){const _0x2494b1=_0x203777(_0x3852a9,_0x3ed822(0x1c3));return void this[_0x3ed822(0x11a)](_0x2494b1);}await this[_0x3ed822(0x124)](this[_0x3ed822(0x13c)][_0x3ed822(0x18a)][_0x3ed822(0x1ae)][_0x3ed822(0x1a6)][_0x3ed822(0x199)](),!0x0);}[_0x17c9b6(0x127)](){const _0x254a61=_0x17c9b6;this[_0x254a61(0x11f)][_0x254a61(0x13a)](),this[_0x254a61(0x160)]=[],clearTimeout(this[_0x254a61(0x172)]),this[_0x254a61(0x18e)](this[_0x254a61(0x11f)]);}[_0x17c9b6(0x10a)](_0x88296b){const _0x46ac39=_0x17c9b6,_0x3e143e=this[_0x46ac39(0x13c)][_0x46ac39(0x154)][_0x46ac39(0x16d)](_0x2d3dc6);this[_0x46ac39(0x119)](_0x3e143e,_0x46ac39(0x13b)+this[_0x46ac39(0x1e2)],(_0x10f095,{session:_0x959c9})=>{const _0x587baf=_0x46ac39;if(_0x959c9['id']===_0x3e143e[_0x587baf(0x114)]){_0x10f095[_0x587baf(0x117)]();const _0x59cf3f=this[_0x587baf(0x13c)][_0x587baf(0x154)][_0x587baf(0x17c)](_0x587baf(0x1c0))&&this[_0x587baf(0x13c)][_0x587baf(0x154)][_0x587baf(0x16d)](_0x587baf(0x1c0));let _0x5841b3=_0x959c9[_0x587baf(0x1eb)];_0x59cf3f&&_0x59cf3f[_0x587baf(0x136)]&&(_0x5841b3=_0x5841b3[_0x587baf(0x1e5)](_0x421df8=>_0x587baf(0x1cf)!==_0x421df8)),this[_0x587baf(0x13c)][_0x587baf(0x154)][_0x587baf(0x16d)](_0x587baf(0x16c))[_0x587baf(0x202)](_0x5841b3,this[_0x587baf(0x1e2)]);}}),_0x3e143e[_0x46ac39(0x155)](this[_0x46ac39(0x1e2)],_0x88296b);}[_0x17c9b6(0x1c4)](){const _0x299365=_0x17c9b6,_0x2bcd81=this[_0x299365(0x13c)][_0x299365(0x167)][_0x299365(0x18b)];this[_0x299365(0x13c)][_0x299365(0x167)][_0x299365(0x18b)]=(..._0x6adaee)=>{const _0x27023c=_0x299365;if(!_0x6adaee[_0x6adaee[_0x27023c(0x12a)]-0x1][_0x27023c(0x1d4)])throw new _0x4506b4(_0x27023c(0x1da),this);_0x2bcd81[_0x27023c(0x129)](this[_0x27023c(0x13c)][_0x27023c(0x167)],_0x6adaee);};}[_0x17c9b6(0x17f)](){const _0x24e4dd=_0x17c9b6;this[_0x24e4dd(0x13c)][_0x24e4dd(0x167)]['on'](_0x24e4dd(0x1ed),(_0x43d014,[_0x25c8ef])=>{const _0x3c65a1=_0x24e4dd;if(this[_0x3c65a1(0x1ce)][_0x3c65a1(0x125)])throw new _0x4506b4(_0x3c65a1(0x1e6),this);_0x43d014[_0x3c65a1(0x197)](),this[_0x3c65a1(0x15f)]();const _0x48c15e=this[_0x3c65a1(0x13c)][_0x3c65a1(0x146)][_0x3c65a1(0x16d)](_0x3c65a1(0x186)),_0x13db9f=this[_0x3c65a1(0x15a)](_0x25c8ef,_0x48c15e);0x0==_0x13db9f[_0x3c65a1(0x12a)]&&_0x13db9f[_0x3c65a1(0x14f)](new _0x4034bf(0x0)),_0x43d014[_0x3c65a1(0x1bd)]=this[_0x3c65a1(0x124)](_0x13db9f)[_0x3c65a1(0x1af)](()=>{const _0x5b6149=_0x3c65a1;this[_0x5b6149(0x13c)][_0x5b6149(0x154)][_0x5b6149(0x16d)](_0x409934)[_0x5b6149(0x181)](this),this[_0x5b6149(0x13c)][_0x5b6149(0x167)][_0x5b6149(0x1dc)](_0x5b6149(0x1b2));})[_0x3c65a1(0x1f2)](_0x482818=>this[_0x3c65a1(0x132)](_0x3c65a1(0x162),_0x482818))[_0x3c65a1(0x1df)](()=>this[_0x3c65a1(0x1fd)]());},{'priority':_0x24e4dd(0x141)}),this[_0x24e4dd(0x13c)]['on'](_0x24e4dd(0x10f),async(_0x464281,[_0x57d92,_0x39ca7d])=>{const _0x4a0210=_0x24e4dd;_0x464281[_0x4a0210(0x197)]();const _0x489c40=this[_0x4a0210(0x13c)][_0x4a0210(0x18a)][_0x4a0210(0x1ae)][_0x4a0210(0x1b6)](_0x57d92);if(!this[_0x4a0210(0x165)][_0x4a0210(0x17c)](_0x57d92)){const _0x3899a5=_0x39ca7d&&_0x39ca7d[_0x4a0210(0x167)]?_0x39ca7d[_0x4a0210(0x167)]:'',_0x3ed8d5=_0x39ca7d&&_0x39ca7d[_0x4a0210(0x15e)]?_0x39ca7d[_0x4a0210(0x15e)]:{};await this[_0x4a0210(0x180)](_0x57d92,_0x3899a5,_0x3ed8d5);}this[_0x4a0210(0x13c)][_0x4a0210(0x18a)][_0x4a0210(0x10c)]({'isUndoable':!0x1},()=>{const _0x804970=_0x4a0210;_0x489c40[_0x804970(0x1b0)]=!0x0,this[_0x804970(0x13c)][_0x804970(0x18a)][_0x804970(0x1ae)][_0x804970(0x10e)][_0x804970(0x194)](_0x489c40);});},{'priority':_0x24e4dd(0x141)});}async[_0x17c9b6(0x133)](_0x2dd43a){const _0x48f882=_0x17c9b6,_0x310413=this[_0x48f882(0x13c)][_0x48f882(0x154)][_0x48f882(0x16d)](_0x571135),{connection:_0x5d2f56}=this[_0x48f882(0x13c)][_0x48f882(0x154)][_0x48f882(0x16d)](_0x409934),_0x4d7e97=new Set();for(const _0x219f89 of _0x2dd43a){const _0x4ad4f7=_0x219f89[_0x48f882(0x137)];_0x4ad4f7&&!_0x310413[_0x48f882(0x153)](_0x4ad4f7)&&_0x4d7e97[_0x48f882(0x1ac)](_0x4ad4f7);}if(0x0===_0x4d7e97[_0x48f882(0x19c)])return;const _0x46550d=await _0x15c739[_0x48f882(0x1e3)](_0x5d2f56,Array[_0x48f882(0x163)](_0x4d7e97));for(const _0x14ce92 of _0x46550d)_0x310413[_0x48f882(0x153)](_0x14ce92['id'])||_0x310413[_0x48f882(0x138)](_0x14ce92);}[_0x17c9b6(0x15a)](_0x4de6f4,_0x4d03c0={}){const _0x27652b=_0x17c9b6,_0x4aa79e=this[_0x27652b(0x13c)][_0x27652b(0x18a)],_0x258766=[];let _0x2cd0a3=0x0;const _0xe7c4b8=_0x27652b(0x179)==typeof _0x4de6f4?{'main':_0x4de6f4}:_0x4de6f4;for(const _0x56d047 of Object[_0x27652b(0x10d)](_0xe7c4b8)){if(!this[_0x27652b(0x1ce)][_0x27652b(0x12c)][_0x27652b(0x17c)](_0x56d047))throw new _0x4506b4(_0x27652b(0x19e),this);const _0x387bf2=this[_0x27652b(0x13c)][_0x27652b(0x167)][_0x27652b(0x1d9)](_0xe7c4b8[_0x56d047]),_0x48b8ad=this[_0x27652b(0x1ce)][_0x27652b(0x1b6)](_0x56d047),_0x3cae62=new _0x889eb6(_0x4aa79e[_0x27652b(0x1ea)](_0x48b8ad,0x0),_0x387bf2,_0x2cd0a3++);_0x258766[_0x27652b(0x14f)](_0x3cae62);for(const [_0x568fd1,_0x12d6a6]of _0x387bf2[_0x27652b(0x1de)]){const _0x161efe=_0x4aa79e[_0x27652b(0x1e9)](_0x4aa79e[_0x27652b(0x191)](_0x48b8ad,_0x12d6a6[_0x27652b(0x182)][_0x27652b(0x11c)][_0x27652b(0x1c9)]()),_0x4aa79e[_0x27652b(0x191)](_0x48b8ad,_0x12d6a6[_0x27652b(0x1ff)][_0x27652b(0x11c)][_0x27652b(0x1c9)]())),_0xa34448=new _0x467f55(_0x568fd1,null,_0x161efe,_0x4aa79e[_0x27652b(0x1de)],!0x0,_0x2cd0a3++);_0x258766[_0x27652b(0x14f)](_0xa34448);}}if(_0x4d03c0)for(const [_0x53da41,_0x3e6d95]of Object[_0x27652b(0x159)](_0x4d03c0)){const _0x207efb=_0x4aa79e[_0x27652b(0x1ae)][_0x27652b(0x1b6)](_0x53da41);if(!_0x207efb)throw new _0x4506b4(_0x27652b(0x19b),null);for(const [_0x551517,_0x57802d]of Object[_0x27652b(0x159)](_0x3e6d95))if(null!==_0x57802d){const _0x39c02f=new _0x14d0aa(_0x207efb,_0x551517,null,_0x57802d,_0x2cd0a3++);_0x258766[_0x27652b(0x14f)](_0x39c02f);}}return _0x258766;}async[_0x17c9b6(0x180)](_0x1b98cc,_0x3d35dd,_0x52d653){const _0xc3180c=_0x17c9b6;this[_0xc3180c(0x15a)]({[_0x1b98cc]:_0x3d35dd},{[_0x1b98cc]:_0x52d653})[_0xc3180c(0x18d)]((_0x447255,_0x2a2f92)=>{const _0x4cf712=_0xc3180c;_0x447255[_0x4cf712(0x1a0)]=this[_0x4cf712(0x1ce)][_0x4cf712(0x125)]+_0x2a2f92,_0x447255[_0x4cf712(0x126)]=!0x0,this[_0x4cf712(0x14e)](_0x447255);}),this[_0xc3180c(0x17d)](),await this[_0xc3180c(0x209)]();}async[_0x17c9b6(0x16f)](_0x52db5d,_0x595144){const _0x4fa09e=_0x17c9b6;let _0x525636;this[_0x4fa09e(0x1ec)]=_0x52db5d[_0x4fa09e(0x178)];const _0x444e80=_0x52db5d[_0x4fa09e(0x15d)]&&!_0x52db5d[_0x4fa09e(0x184)],_0x5727d4=_0x444e80?0x0:_0x52db5d[_0x4fa09e(0x167)][_0x4fa09e(0x1a0)];if(_0x595144[_0x4fa09e(0x18d)](_0xd8f101=>{const _0x52dbb9=_0x4fa09e;_0xd8f101[_0x52dbb9(0x126)]=!0x0,_0xd8f101[_0x52dbb9(0x196)]=_0x52db5d[_0x52dbb9(0x1a7)],_0xd8f101[_0x52dbb9(0x137)]=null;}),_0x444e80)_0x525636=_0x595144,this[_0x4fa09e(0x204)](_0x525636,_0x444e80);else{if(_0x52db5d[_0x4fa09e(0x184)]){const _0xf76c7c=this[_0x4fa09e(0x15a)](_0x52db5d[_0x4fa09e(0x184)]);this[_0x4fa09e(0x1ce)][_0x4fa09e(0x1a6)][_0x4fa09e(0x125)]=-_0xf76c7c[_0x4fa09e(0x12a)],_0xf76c7c[_0x4fa09e(0x18d)](_0x40ead8=>{const _0xf3c40b=_0x4fa09e;_0x40ead8[_0xf3c40b(0x1a0)]-=_0xf76c7c[_0xf3c40b(0x12a)],_0x40ead8[_0xf3c40b(0x196)]=_0x52db5d[_0xf3c40b(0x1a7)],_0x40ead8[_0xf3c40b(0x126)]=!0x0,_0x40ead8[_0xf3c40b(0x137)]=null;}),this[_0x4fa09e(0x204)](_0xf76c7c,!0x0),this[_0x4fa09e(0x131)][_0x4fa09e(0x125)]=-_0xf76c7c[_0x4fa09e(0x12a)]+this[_0x4fa09e(0x1ec)],this[_0x4fa09e(0x1a2)](_0xf76c7c);}this[_0x4fa09e(0x1ce)][_0x4fa09e(0x1a6)][_0x4fa09e(0x125)]=_0x5727d4,_0x525636=this[_0x4fa09e(0x208)](_0x52db5d[_0x4fa09e(0x167)],_0x52db5d[_0x4fa09e(0x144)]),await this[_0x4fa09e(0x133)](_0x525636),this[_0x4fa09e(0x204)](_0x525636,_0x444e80);}_0x52db5d[_0x4fa09e(0x166)]&&(this[_0x4fa09e(0x12b)][_0x4fa09e(0x1e4)](_0x525636,_0x52db5d[_0x4fa09e(0x166)]),this[_0x4fa09e(0x130)]=_0x52db5d[_0x4fa09e(0x166)]),this[_0x4fa09e(0x131)][_0x4fa09e(0x125)]=_0x5727d4+this[_0x4fa09e(0x1ec)],this[_0x4fa09e(0x1a2)](_0x525636),_0x595144[_0x4fa09e(0x1e5)](_0x33bff4=>{const _0x1fe059=_0x4fa09e,_0x28d718=this[_0x1fe059(0x205)](_0x33bff4);return _0x28d718&&!this[_0x1fe059(0x165)][_0x1fe059(0x17c)](_0x28d718);})[_0x4fa09e(0x18d)]((_0xede29b,_0x133e3a)=>{const _0x3eabfe=_0x4fa09e;_0xede29b[_0x3eabfe(0x1a0)]=this[_0x3eabfe(0x1ce)][_0x3eabfe(0x125)]+_0x133e3a,this[_0x3eabfe(0x14e)](_0xede29b);}),this[_0x4fa09e(0x1d7)]()?(this[_0x4fa09e(0x1cb)]=0x0,this[_0x4fa09e(0x17d)](!0x0),await this[_0x4fa09e(0x209)]()):(this[_0x4fa09e(0x139)]=!0x1,this[_0x4fa09e(0x1fd)]());}[_0x17c9b6(0x132)](_0x16928b,_0x5d76e4){const _0xcd2e1=_0x17c9b6,_0x527439=_0x5d76e4&&_0x5d76e4[_0xcd2e1(0x201)];if(_0x527439&&_0x527439[_0xcd2e1(0x1be)](_0xcd2e1(0x149)))throw _0x5d76e4;const _0x4db7a5=this[_0xcd2e1(0x13c)][_0xcd2e1(0x154)][_0xcd2e1(0x16d)](_0x409934);throw this[_0xcd2e1(0x139)]=!0x0,_0x4db7a5[_0xcd2e1(0x13a)](),this[_0xcd2e1(0x13c)][_0xcd2e1(0x20b)](_0xcd2e1(0x164)),new _0x4506b4(_0x16928b,this[_0xcd2e1(0x13c)],_0x527439?{'originalError':_0x527439}:void 0x0);}[_0x17c9b6(0x14e)](_0x26824e){const _0x13a445=_0x17c9b6;this[_0x13a445(0x1c8)][_0x13a445(0x17c)](_0x26824e)||(this[_0x13a445(0x1c8)][_0x13a445(0x1ac)](_0x26824e),this[_0x13a445(0x160)][_0x13a445(0x14f)](_0x26824e),this[_0x13a445(0x171)]||_0x13a445(0x16e)==_0x26824e[_0x13a445(0x158)]&&!_0x26824e[_0x13a445(0x1db)]||this[_0x13a445(0x15f)]());}[_0x17c9b6(0x17d)](_0x446587=!0x1){const _0x8f9ea9=_0x17c9b6;!_0x446587&&this[_0x8f9ea9(0x139)]||(this[_0x8f9ea9(0x139)]=!0x0,clearTimeout(this[_0x8f9ea9(0x172)]),this[_0x8f9ea9(0x172)]=setTimeout(()=>{const _0x2a578d=_0x8f9ea9;this[_0x2a578d(0x111)]()[_0x2a578d(0x1af)](_0x23c510=>{const _0x390e35=_0x2a578d;_0x23c510&&(this[_0x390e35(0x1fd)](),this[_0x390e35(0x139)]=!0x1);})[_0x2a578d(0x1f2)](_0x1ee040=>{const _0x5715e6=_0x2a578d;this[_0x5715e6(0x1fd)](),this[_0x5715e6(0x139)]=!0x1,function(_0x4f55ff){const _0x125dc3=_0x5715e6;return _0x4f55ff[_0x125dc3(0x201)][_0x125dc3(0x1be)](_0x125dc3(0x206))||_0x4f55ff[_0x125dc3(0x201)][_0x125dc3(0x1be)](_0x125dc3(0x1f8))||_0x4f55ff[_0x125dc3(0x201)][_0x125dc3(0x1be)](_0x125dc3(0x190));}(_0x1ee040)||this[_0x5715e6(0x132)](_0x1ee040[_0x5715e6(0x201)],_0x1ee040);});},this[_0x8f9ea9(0x1cb)]));}[_0x17c9b6(0x209)](){return new Promise(_0x1798d7=>{const _0x2cc785=_0x1170;this['on'](_0x2cc785(0x1f5),()=>{_0x1798d7();});});}async[_0x17c9b6(0x111)](){const _0x26c213=_0x17c9b6,_0x358f73=this[_0x26c213(0x13c)][_0x26c213(0x154)][_0x26c213(0x16d)](_0x3a849f);if(this[_0x26c213(0x1e7)]()&&(_0x358f73[_0x26c213(0x128)](),this[_0x26c213(0x123)]=!0x1),!this[_0x26c213(0x1d7)]())return!0x0;const _0x2b8d56=[...this[_0x26c213(0x160)]];for(const _0x1a5da1 of _0x2b8d56)_0x1a5da1[_0x26c213(0x13f)]=this[_0x26c213(0x1ce)][_0x26c213(0x1a6)][_0x26c213(0x18c)](_0x1a5da1);const _0x5c9cbe=this[_0x26c213(0x12b)][_0x26c213(0x1fb)](_0x2b8d56),_0x23e2e9=X++,_0x1b9f9b=this[_0x26c213(0x1fa)](_0x2b8d56),_0x2fd7ab=await this[_0x26c213(0x11f)][_0x26c213(0x1b3)](_0x1b9f9b,_0x1b9f9b[_0x26c213(0x1a0)],_0x5c9cbe);try{return await this[_0x26c213(0x1a8)](_0x2b8d56,_0x2fd7ab,_0x23e2e9);}catch(_0x58a265){return this[_0x26c213(0x132)](_0x26c213(0x207),_0x58a265);}}async[_0x17c9b6(0x1a8)](_0x3bcb21,_0x52fe63,_0x4fbb25){const _0x29533d=_0x17c9b6;if(_0x29533d(0x1ad)in _0x52fe63)throw _0x52fe63[_0x29533d(0x1ad)];let _0x5681ff=!0x1;if(_0x52fe63[_0x29533d(0x15d)]){_0x52fe63[_0x29533d(0x166)]&&(this[_0x29533d(0x130)]=_0x52fe63[_0x29533d(0x166)]),this[_0x29533d(0x160)]=this[_0x29533d(0x160)][_0x29533d(0x1e5)](_0x5d80f8=>!_0x3bcb21[_0x29533d(0x113)](_0x5d80f8));for(const _0x4a8ff3 of _0x3bcb21)_0x4a8ff3[_0x29533d(0x196)]=_0x29533d(0x1b4)in _0x52fe63&&_0x52fe63[_0x29533d(0x1b4)]||void 0x0;Z(_0x3bcb21,_0x52fe63[_0x29533d(0x125)]-_0x3bcb21[_0x29533d(0x12a)]),this[_0x29533d(0x1a2)](_0x3bcb21);const _0x3ece48=_0x3bcb21[_0x29533d(0x1e5)](_0x54a555=>{const _0xcb74a0=_0x29533d;if(!_0x54a555[_0xcb74a0(0x126)])return!0x1;const _0x23bd56=this[_0xcb74a0(0x205)](_0x54a555);return _0x23bd56&&!this[_0xcb74a0(0x165)][_0xcb74a0(0x17c)](_0x23bd56);});Z(_0x3ece48,this[_0x29533d(0x1ce)][_0x29533d(0x125)]),this[_0x29533d(0x204)](_0x3ece48),_0x5681ff=!0x0,this[_0x29533d(0x1cb)]=this[_0x29533d(0x195)];}else{const _0x50b992=this[_0x29533d(0x208)](_0x52fe63[_0x29533d(0x167)],_0x52fe63[_0x29533d(0x144)])[_0x29533d(0x1e5)](_0xe79b46=>_0xe79b46[_0x29533d(0x1a0)]>=this[_0x29533d(0x1a3)]);_0x50b992[_0x29533d(0x18d)](_0x3bd758=>this[_0x29533d(0x1ca)](_0x3bd758)),this[_0x29533d(0x160)]=this[_0x29533d(0x160)][_0x29533d(0x1e5)](_0x512ea2=>!_0x512ea2[_0x29533d(0x126)]||!this[_0x29533d(0x165)][_0x29533d(0x17c)](this[_0x29533d(0x205)](_0x512ea2))),this[_0x29533d(0x160)][_0x29533d(0x12a)]&&Z(this[_0x29533d(0x160)],this[_0x29533d(0x160)][0x0][_0x29533d(0x1a0)]),await this[_0x29533d(0x133)](_0x50b992),_0x5681ff=this[_0x29533d(0x1f6)](_0x50b992,_0x52fe63[_0x29533d(0x125)],_0x52fe63[_0x29533d(0x166)]),this[_0x29533d(0x1cb)]=Math[_0x29533d(0x193)](this[_0x29533d(0x1cb)]/0x2);}return _0x5681ff?!this[_0x29533d(0x1d7)]()||(this[_0x29533d(0x17d)](!0x0),!0x1):this[_0x29533d(0x132)](_0x29533d(0x14a));}[_0x17c9b6(0x1f6)](_0x5e4367,_0x42c556,_0x29ad2f){const _0x13d60d=_0x17c9b6;try{const _0x495c51={'document':this[_0x13d60d(0x1ce)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x71aea3,operationsB:_0x4d60d3,originalOperations:_0x1a08f4}=_0x3d9921(_0x5e4367,this[_0x13d60d(0x160)],_0x495c51);Z(_0x71aea3,this[_0x13d60d(0x1ce)][_0x13d60d(0x125)]),Z(_0x4d60d3,_0x42c556);for(const _0x2daa21 of _0x71aea3){const _0x4b4ca0=_0x1a08f4[_0x13d60d(0x16d)](_0x2daa21);_0x2daa21[_0x13d60d(0x137)]=_0x4b4ca0?_0x4b4ca0[_0x13d60d(0x137)]:null;}_0x29ad2f&&(this[_0x13d60d(0x12b)][_0x13d60d(0x1e4)](_0x5e4367,_0x29ad2f),this[_0x13d60d(0x130)]=_0x29ad2f),this[_0x13d60d(0x160)]=[..._0x4d60d3],this[_0x13d60d(0x204)](_0x71aea3),this[_0x13d60d(0x1a2)](_0x5e4367);}catch(_0xda3d3b){return console[_0x13d60d(0x1ad)](_0xda3d3b),!0x1;}return!0x0;}[_0x17c9b6(0x204)](_0x1b0017,_0x4953fc=!0x1){const _0x4d67f3=_0x17c9b6;this[_0x4d67f3(0x13c)][_0x4d67f3(0x18a)][_0x4d67f3(0x10c)]({'isUndoable':!0x1,'isLocal':!0x1},_0x2ba6b6=>{const _0x1de6f0=_0x4d67f3;for(const _0x4696bd of _0x1b0017)this[_0x1de6f0(0x1c8)][_0x1de6f0(0x1ac)](_0x4696bd),this[_0x1de6f0(0x1ca)](_0x4696bd),_0x2ba6b6[_0x1de6f0(0x20a)][_0x1de6f0(0x112)](_0x4696bd),this[_0x1de6f0(0x13c)][_0x1de6f0(0x18a)][_0x1de6f0(0x18f)](_0x4696bd);});}[_0x17c9b6(0x1ca)](_0x11b900){const _0x444f6f=_0x17c9b6,_0x3f01a0=this[_0x444f6f(0x205)](_0x11b900);_0x3f01a0&&this[_0x444f6f(0x165)][_0x444f6f(0x1ac)](_0x3f01a0);}[_0x17c9b6(0x205)](_0x368c9a){const _0x405712=_0x17c9b6;let _0x4c0d02,_0x727824;switch(_0x368c9a[_0x405712(0x158)]){case _0x405712(0x118):_0x4c0d02=_0x368c9a[_0x405712(0x1cd)][_0x405712(0x108)];break;case _0x405712(0x16e):if(_0x727824=_0x368c9a[_0x405712(0x147)],!_0x727824)return null;_0x4c0d02=_0x727824[_0x405712(0x108)];break;case _0x405712(0x183):_0x4c0d02=_0x368c9a[_0x405712(0x108)];break;case _0x405712(0x11d):_0x4c0d02=_0x368c9a[_0x405712(0x152)];break;case _0x405712(0x1c6):_0x4c0d02=_0x368c9a[_0x405712(0x17b)][_0x405712(0x108)];break;default:return null;}return _0x4c0d02[_0x405712(0x192)];}[_0x17c9b6(0x1a2)](_0x163643){const _0x160270=_0x17c9b6;_0x163643[_0x160270(0x18d)](_0x486e03=>{const _0x2ffa48=_0x160270,_0xb19b8d=_0x486e03[_0x2ffa48(0x19a)]();_0xb19b8d[_0x2ffa48(0x137)]=_0x486e03[_0x2ffa48(0x137)],_0xb19b8d[_0x2ffa48(0x126)]=!!_0x486e03[_0x2ffa48(0x126)],_0xb19b8d[_0x2ffa48(0x196)]=_0x486e03[_0x2ffa48(0x196)],_0xb19b8d[_0x2ffa48(0x1a0)]+=this[_0x2ffa48(0x1ec)],_0x486e03[_0x2ffa48(0x1fe)]&&this[_0x2ffa48(0x122)][_0x2ffa48(0x1ac)](_0xb19b8d),this[_0x2ffa48(0x131)][_0x2ffa48(0x112)](_0xb19b8d);});}[_0x17c9b6(0x11a)](_0x5b698a){const _0x14e0a9=_0x17c9b6,_0x50ac0c=this[_0x14e0a9(0x13c)][_0x14e0a9(0x154)][_0x14e0a9(0x16d)](_0x14e0a9(0x1aa)),_0x29e091=this[_0x14e0a9(0x13c)][_0x14e0a9(0x14c)];_0x5b698a||(_0x5b698a=_0x203777(_0x29e091,_0x14e0a9(0x16a))),_0x50ac0c[_0x14e0a9(0x1b5)](_0x5b698a,{'title':_0x203777(_0x29e091,_0x14e0a9(0x1bc)),'namespace':_0x14e0a9(0x1a4)}),this[_0x14e0a9(0x14d)]=!0x0,clearTimeout(this[_0x14e0a9(0x172)]),this[_0x14e0a9(0x160)]=[],this[_0x14e0a9(0x13c)][_0x14e0a9(0x154)][_0x14e0a9(0x16d)](_0x409934)[_0x14e0a9(0x13a)]();}[_0x17c9b6(0x15f)](){const _0x189a16=_0x17c9b6;this[_0x189a16(0x171)]||(this[_0x189a16(0x171)]=this[_0x189a16(0x13c)][_0x189a16(0x154)][_0x189a16(0x16d)](_0x211d59)[_0x189a16(0x1ac)](_0x203777(this[_0x189a16(0x13c)][_0x189a16(0x14c)],_0x189a16(0x150))));}[_0x17c9b6(0x1fd)](){const _0x1cdfaf=_0x17c9b6;this[_0x1cdfaf(0x171)]&&(this[_0x1cdfaf(0x13c)][_0x1cdfaf(0x154)][_0x1cdfaf(0x16d)](_0x211d59)[_0x1cdfaf(0x169)](this[_0x1cdfaf(0x171)]),this[_0x1cdfaf(0x171)]=null);}[_0x17c9b6(0x1fa)](_0x47622d){const _0x5c16ef=_0x17c9b6,_0x2f5333=_0x47622d[_0x5c16ef(0x1b7)](_0x3356ea=>_0x3356ea[_0x5c16ef(0x15b)]());return this[_0x5c16ef(0x161)][_0x5c16ef(0x12d)](_0x2f5333);}[_0x17c9b6(0x208)](_0x2167a3,_0x4772ec){const _0x52e4aa=_0x17c9b6;return this[_0x52e4aa(0x161)][_0x52e4aa(0x1ef)](_0x2167a3)[_0x52e4aa(0x1b7)]((_0x3086fb,_0x292306)=>{const _0x44f2f7=_0x52e4aa,_0x48a49f=_0x44f2f7(0x1ed)==_0x4772ec[_0x292306][_0x44f2f7(0x158)];if(_0x44f2f7(0x115)==_0x3086fb[_0x44f2f7(0x189)]){const _0x4a520f=_0x3086fb[_0x44f2f7(0x1cd)][_0x44f2f7(0x108)];!this[_0x44f2f7(0x1ce)][_0x44f2f7(0x1b6)](_0x4a520f)&&(this[_0x44f2f7(0x1ce)][_0x44f2f7(0x1dd)](_0x44f2f7(0x16b),_0x4a520f)[_0x44f2f7(0x1e8)]=!0x1);}const _0x2de5c2=_0x370286[_0x44f2f7(0x185)](_0x3086fb,this[_0x44f2f7(0x1ce)]);return _0x2de5c2[_0x44f2f7(0x13f)]=_0x3086fb[_0x44f2f7(0x13f)],_0x2de5c2[_0x44f2f7(0x126)]=_0x48a49f,_0x2de5c2[_0x44f2f7(0x137)]=_0x48a49f?null:_0x4772ec[_0x292306][_0x44f2f7(0x140)],_0x2de5c2[_0x44f2f7(0x1fe)]=_0x44f2f7(0x156)===_0x4772ec[_0x292306][_0x44f2f7(0x158)],_0x2de5c2[_0x44f2f7(0x196)]=_0x4772ec[_0x292306][_0x44f2f7(0x196)],_0x2de5c2;});}[_0x17c9b6(0x1d3)](){const _0x1cad74=_0x17c9b6;this[_0x1cad74(0x123)]=!0x0,this[_0x1cad74(0x1e7)]()?this[_0x1cad74(0x17d)]():this[_0x1cad74(0x123)]=!0x1;}[_0x17c9b6(0x1e7)](){const _0x10de80=_0x17c9b6,_0x536537=this[_0x10de80(0x13c)][_0x10de80(0x154)][_0x10de80(0x16d)](_0x2d3dc6)[_0x10de80(0x116)][_0x10de80(0x16d)](this[_0x10de80(0x1e2)]);return!this[_0x10de80(0x13c)][_0x10de80(0x1a9)]&&!!_0x536537&&_0x536537[_0x10de80(0x12a)]>0x1&&this[_0x10de80(0x123)];}[_0x17c9b6(0x1d7)](){const _0x304be6=_0x17c9b6;return this[_0x304be6(0x160)][_0x304be6(0x12a)]>0x0||this[_0x304be6(0x1e7)]();}}export{l as RealTimeCollaborationClient};class Y extends Error{}function Z(_0x5b8477,_0x5de843){const _0x540d97=_0x17c9b6;for(const _0x1f2088 of _0x5b8477)_0x1f2088[_0x540d97(0x1a0)]=_0x5de843++;}class tt{[_0x17c9b6(0x1f1)];[_0x17c9b6(0x1f4)];constructor(_0x5e1588){const _0x347c5e=_0x17c9b6;this[_0x347c5e(0x1f1)]=_0x5e1588,this[_0x347c5e(0x1f4)]=new WeakMap();}[_0x17c9b6(0x1fb)](_0x2ebe09){const _0x329a29=_0x17c9b6;let _0x30a333=_0x2ebe09[_0x329a29(0x12a)];for(;_0x30a333--;){const _0x4fb671=_0x2ebe09[_0x30a333];if(!this[_0x329a29(0x1f1)][_0x329a29(0x17c)](_0x4fb671)){if(!this[_0x329a29(0x1f4)][_0x329a29(0x17c)](_0x4fb671)){const _0x1d76b5=_0x536e6d()[_0x329a29(0x1c9)](0x1,0x12);this[_0x329a29(0x1f4)][_0x329a29(0x18b)](_0x4fb671,_0x1d76b5);}return this[_0x329a29(0x1f4)][_0x329a29(0x16d)](_0x4fb671);}}}[_0x17c9b6(0x1e4)](_0x344a3e,_0x42a486){const _0x12f679=_0x17c9b6;if(!_0x42a486)return;let _0x176251=_0x344a3e[_0x12f679(0x12a)];for(;_0x176251--;){const _0x14fa8d=_0x344a3e[_0x176251];this[_0x12f679(0x1f1)][_0x12f679(0x17c)](_0x14fa8d)||this[_0x12f679(0x1f4)][_0x12f679(0x18b)](_0x14fa8d,_0x42a486);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d261a=_0x4330;(function(_0x175f90,_0x4f9145){const _0x2ecae4=_0x4330,_0x40685e=_0x175f90();while(!![]){try{const _0x4bf420=parseInt(_0x2ecae4(0x189))/0x1*(-parseInt(_0x2ecae4(0x1af))/0x2)+parseInt(_0x2ecae4(0x1c0))/0x3*(-parseInt(_0x2ecae4(0x18a))/0x4)+-parseInt(_0x2ecae4(0x1a3))/0x5*(parseInt(_0x2ecae4(0x1a1))/0x6)+parseInt(_0x2ecae4(0x1b2))/0x7+parseInt(_0x2ecae4(0x19e))/0x8+-parseInt(_0x2ecae4(0x1c2))/0x9*(parseInt(_0x2ecae4(0x192))/0xa)+parseInt(_0x2ecae4(0x1bf))/0xb;if(_0x4bf420===_0x4f9145)break;else _0x40685e['push'](_0x40685e['shift']());}catch(_0x201909){_0x40685e['push'](_0x40685e['shift']());}}}(_0x3cd7,0x9bbd8));import{ContextPlugin as _0x4222f8}from'ckeditor5/src/core.js';import{Collection as _0x407ce9,CKEditorError as _0x2ea54d}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x4cca1d}from'./websocketgateway.js';import{Users as _0x227e9a}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3cd7(){const _0x56b93b=['_uniqueUsersCount','mySessionId','596390bPbbFg','remove','allConnectedUsers','role','change:state','Sessions','unregister','_handleSessionAdd','sessionAdd:','sessionId','sessions-register-already-registered','clear','8107800aTKVKj','_users','forEach','54XjRQOl','pluginName','182885qoOWNa','context','addUser','isOfficialPlugin','defineMe','values','assign','state','has','delete','listenTo','sessions-unregister-not-exist','426rMCKKF','getUserRole','_createUser','979685dSiQOV','plugins','size','get','register','_registeredSessions','requires','init','getUserBySessionId','fire','getUserSessions','channelSessions','_handleSessionRemove','10409916gEwauV','696XaPEZb','isPremiumPlugin','27dXpRkW','set','user','stopListening','add','getUser','964mWPFVP','12904FtzRyA','isMe','channelConnectedUsers','connected','connection','orderNumber'];_0x3cd7=function(){return _0x56b93b;};return _0x3cd7();}function _0x4330(_0x5820e5,_0x34ca05){const _0x3cd705=_0x3cd7();return _0x4330=function(_0x4330eb,_0xbb1e30){_0x4330eb=_0x4330eb-0x186;let _0x63f835=_0x3cd705[_0x4330eb];return _0x63f835;},_0x4330(_0x5820e5,_0x34ca05);}export class Sessions extends _0x4222f8{[_0x1d261a(0x1bd)];[_0x1d261a(0x18c)];[_0x1d261a(0x194)];[_0x1d261a(0x1b7)];[_0x1d261a(0x190)];[_0x1d261a(0x19f)];static get[_0x1d261a(0x1a2)](){const _0x446a7d=_0x1d261a;return _0x446a7d(0x197);}static get[_0x1d261a(0x1a6)](){return!0x0;}static get[_0x1d261a(0x1c1)](){return!0x0;}static get[_0x1d261a(0x1b8)](){return[_0x4cca1d,_0x227e9a];}constructor(_0x4673d8){const _0x4c4b72=_0x1d261a;super(_0x4673d8),this[_0x4c4b72(0x1bd)]=new Map(),this[_0x4c4b72(0x18c)]=new Map(),this[_0x4c4b72(0x194)]=new _0x407ce9(),this[_0x4c4b72(0x1b7)]=new Map(),this[_0x4c4b72(0x190)]=0x0,this[_0x4c4b72(0x19f)]=this[_0x4c4b72(0x1a4)][_0x4c4b72(0x1b3)][_0x4c4b72(0x1b5)](_0x227e9a);}[_0x1d261a(0x1b9)](){const _0x31a8aa=_0x1d261a,_0x162691=this[_0x31a8aa(0x1a4)][_0x31a8aa(0x1b3)][_0x31a8aa(0x1b5)](_0x4cca1d);this[_0x31a8aa(0x1ad)](_0x162691,_0x31a8aa(0x196),(_0x4c08eb,_0x1947ca,_0x5d5ef8)=>{const _0x58a37b=_0x31a8aa;if(_0x58a37b(0x18d)!==_0x5d5ef8)this[_0x58a37b(0x1bd)][_0x58a37b(0x1a0)](_0x1ccfbd=>_0x1ccfbd[_0x58a37b(0x19d)]()),this[_0x58a37b(0x18c)][_0x58a37b(0x1a0)](_0x18bc1d=>_0x18bc1d[_0x58a37b(0x19d)]()),this[_0x58a37b(0x194)][_0x58a37b(0x19d)]();else{for(const [_0x35134d,_0xef37eb]of this[_0x58a37b(0x1b7)])for(const _0x352e67 of _0xef37eb)this[_0x58a37b(0x199)](_0x35134d,_0x352e67);}}),this[_0x31a8aa(0x1b1)](_0x162691[_0x31a8aa(0x18e)]['me'],!0x0);}[_0x1d261a(0x1b6)](_0x2231d9,_0x49afb1){const _0x2e1626=_0x1d261a;if(this[_0x2e1626(0x1b7)][_0x2e1626(0x1ab)](_0x2231d9))throw new _0x2ea54d(_0x2e1626(0x19c),null,{'channelId':_0x2231d9});this[_0x2e1626(0x1b7)][_0x2e1626(0x1c3)](_0x2231d9,_0x49afb1),this[_0x2e1626(0x1bd)][_0x2e1626(0x1c3)](_0x2231d9,new _0x407ce9()),this[_0x2e1626(0x18c)][_0x2e1626(0x1c3)](_0x2231d9,new _0x407ce9()),this[_0x2e1626(0x1ad)](_0x49afb1,_0x2e1626(0x187),(_0x26a86c,_0x815f87)=>this[_0x2e1626(0x199)](_0x2231d9,_0x815f87)),this[_0x2e1626(0x1ad)](_0x49afb1,_0x2e1626(0x193),(_0x33cc29,_0x330c43)=>this[_0x2e1626(0x1be)](_0x2231d9,_0x330c43));for(const _0x31150d of _0x49afb1)this[_0x2e1626(0x199)](_0x2231d9,_0x31150d);}[_0x1d261a(0x198)](_0x3f9b86){const _0x163de0=_0x1d261a;if(!this[_0x163de0(0x1b7)][_0x163de0(0x1ab)](_0x3f9b86))throw new _0x2ea54d(_0x163de0(0x1ae),null,{'channelId':_0x3f9b86});const _0x26dab0=this[_0x163de0(0x1b7)][_0x163de0(0x1b5)](_0x3f9b86);this[_0x163de0(0x186)](_0x26dab0);for(const _0x19e0e3 of _0x26dab0)_0x163de0(0x18d)===this[_0x163de0(0x1a4)][_0x163de0(0x1b3)][_0x163de0(0x1b5)](_0x4cca1d)[_0x163de0(0x1aa)]&&this[_0x163de0(0x1be)](_0x3f9b86,_0x19e0e3);this[_0x163de0(0x1b7)][_0x163de0(0x1ac)](_0x3f9b86),this[_0x163de0(0x1bd)][_0x163de0(0x1ac)](_0x3f9b86),this[_0x163de0(0x18c)][_0x163de0(0x1ac)](_0x3f9b86);}get[_0x1d261a(0x191)](){const _0x30d868=_0x1d261a;return this[_0x30d868(0x1a4)][_0x30d868(0x1b3)][_0x30d868(0x1b5)](_0x4cca1d)[_0x30d868(0x18e)][_0x30d868(0x19b)];}[_0x1d261a(0x1ba)](_0x1f5326){const _0x5cf755=_0x1d261a;for(const _0x21eee5 of this[_0x5cf755(0x1bd)][_0x5cf755(0x1a8)]())for(const _0x406a47 of _0x21eee5)if(_0x406a47['id']===_0x1f5326)return _0x406a47[_0x5cf755(0x1c4)];}[_0x1d261a(0x1bc)](_0x47c4dd,_0xeb59ca){const _0x1d3a81=_0x1d261a,_0x355cff=_0xeb59ca?[this[_0x1d3a81(0x1bd)][_0x1d3a81(0x1b5)](_0xeb59ca)]:this[_0x1d3a81(0x1bd)][_0x1d3a81(0x1a8)](),_0x1257a7=new Set();for(const _0x3def22 of _0x355cff)for(const _0x339236 of _0x3def22)_0x339236[_0x1d3a81(0x1c4)]['id']===_0x47c4dd['id']&&_0x1257a7[_0x1d3a81(0x187)](_0x339236['id']);return _0x1257a7;}[_0x1d261a(0x1b0)](_0x5e76af){const _0xecab8a=_0x1d261a;for(const _0x65a57b of this[_0xecab8a(0x1bd)][_0xecab8a(0x1a8)]())for(const _0x38e31b of _0x65a57b)if(_0x38e31b[_0xecab8a(0x1c4)]===_0x5e76af)return _0x38e31b[_0xecab8a(0x195)];}[_0x1d261a(0x199)](_0x4d1e9e,_0x39b409){const _0x1ad166=_0x1d261a;if(_0x1ad166(0x18d)!==this[_0x1ad166(0x1a4)][_0x1ad166(0x1b3)][_0x1ad166(0x1b5)](_0x4cca1d)[_0x1ad166(0x1aa)])return;const _0x1826c3=_0x39b409[_0x1ad166(0x1c4)],_0x16cee9=this[_0x1ad166(0x19f)][_0x1ad166(0x188)](_0x1826c3['id'])||this[_0x1ad166(0x1b1)](_0x1826c3),_0x40ee2d=Object[_0x1ad166(0x1a9)]({},_0x39b409,{'user':_0x16cee9});this[_0x1ad166(0x1bd)][_0x1ad166(0x1b5)](_0x4d1e9e)[_0x1ad166(0x187)](_0x40ee2d);const _0x12c3d4=this[_0x1ad166(0x18c)][_0x1ad166(0x1b5)](_0x4d1e9e);_0x12c3d4[_0x1ad166(0x1ab)](_0x16cee9['id'])||_0x12c3d4[_0x1ad166(0x187)](_0x16cee9),this[_0x1ad166(0x194)][_0x1ad166(0x1ab)](_0x16cee9['id'])||this[_0x1ad166(0x194)][_0x1ad166(0x187)](_0x16cee9,_0x16cee9[_0x1ad166(0x18b)]?0x0:void 0x0),this[_0x1ad166(0x1bb)](_0x1ad166(0x19a)+_0x4d1e9e,{'channelId':_0x4d1e9e,'session':_0x40ee2d});}[_0x1d261a(0x1be)](_0x89a429,_0x4dda01){const _0x39a203=_0x1d261a;if(_0x39a203(0x18d)!==this[_0x39a203(0x1a4)][_0x39a203(0x1b3)][_0x39a203(0x1b5)](_0x4cca1d)[_0x39a203(0x1aa)])return;const _0x2975fd=this[_0x39a203(0x18c)][_0x39a203(0x1b5)](_0x89a429),_0x274c68=_0x4dda01[_0x39a203(0x1c4)];_0x274c68['id']&&(this[_0x39a203(0x1bd)][_0x39a203(0x1b5)](_0x89a429)[_0x39a203(0x193)](_0x4dda01['id']),_0x2975fd[_0x39a203(0x1ab)](_0x274c68['id'])&&!this[_0x39a203(0x1bc)](_0x274c68,_0x89a429)[_0x39a203(0x1b4)]&&_0x2975fd[_0x39a203(0x193)](_0x274c68['id']),this[_0x39a203(0x194)][_0x39a203(0x1b5)](_0x274c68['id'])&&!this[_0x39a203(0x1bc)](_0x274c68)[_0x39a203(0x1b4)]&&this[_0x39a203(0x194)][_0x39a203(0x193)](_0x274c68['id']));}[_0x1d261a(0x1b1)](_0x176840,_0x57bc06){const _0xf2896e=_0x1d261a,_0x541b19=this[_0xf2896e(0x19f)][_0xf2896e(0x1a5)](_0x176840);return _0x57bc06&&this[_0xf2896e(0x19f)][_0xf2896e(0x1a7)](_0x176840['id']),_0x541b19[_0xf2896e(0x18f)]=this[_0xf2896e(0x190)]++,_0x541b19;}}
23
+ function _0x5ec9(){const _0x2b5c08=['392ARTqQY','_registeredSessions','6DzHkiv','user','has','Sessions','connected','orderNumber','get','pluginName','12841367wtTPBx','forEach','getUser','delete','assign','_handleSessionAdd','state','stopListening','sessionAdd:','defineMe','register','isPremiumPlugin','mySessionId','listenTo','569495SFkCLt','change:state','requires','clear','_users','allConnectedUsers','186444cZKHLe','getUserRole','_createUser','4iHDeTT','sessions-register-already-registered','isOfficialPlugin','6JwIpII','sessionId','channelConnectedUsers','set','add','addUser','values','44918291vZafdZ','connection','getUserBySessionId','size','plugins','getUserSessions','context','fire','unregister','2989300YfNqqI','_uniqueUsersCount','role','618931MSMxvY','channelSessions','123624RYOLTr','remove','init','sessions-unregister-not-exist','isMe','_handleSessionRemove'];_0x5ec9=function(){return _0x2b5c08;};return _0x5ec9();}const _0x752726=_0x4c79;(function(_0x101b00,_0x2fe589){const _0x506502=_0x4c79,_0x2c9777=_0x101b00();while(!![]){try{const _0x50b629=parseInt(_0x506502(0xa2))/0x1*(-parseInt(_0x506502(0xce))/0x2)+-parseInt(_0x506502(0xc8))/0x3*(-parseInt(_0x506502(0xcb))/0x4)+-parseInt(_0x506502(0xc2))/0x5*(-parseInt(_0x506502(0xac))/0x6)+-parseInt(_0x506502(0xb4))/0x7+-parseInt(_0x506502(0xaa))/0x8*(-parseInt(_0x506502(0xa4))/0x9)+-parseInt(_0x506502(0x9f))/0xa+parseInt(_0x506502(0xd5))/0xb;if(_0x50b629===_0x2fe589)break;else _0x2c9777['push'](_0x2c9777['shift']());}catch(_0x4d1cfe){_0x2c9777['push'](_0x2c9777['shift']());}}}(_0x5ec9,0xe6134));import{ContextPlugin as _0xa598fa}from'ckeditor5/src/core.js';import{Collection as _0x5f14cd,CKEditorError as _0x5522e2}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x3346f2}from'./websocketgateway.js';function _0x4c79(_0x3498cc,_0x1ca748){const _0x5ec945=_0x5ec9();return _0x4c79=function(_0x4c7997,_0x6085c6){_0x4c7997=_0x4c7997-0x9c;let _0x54d4c3=_0x5ec945[_0x4c7997];return _0x54d4c3;},_0x4c79(_0x3498cc,_0x1ca748);}import{Users as _0x15652a}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0xa598fa{[_0x752726(0xa3)];[_0x752726(0xd0)];[_0x752726(0xc7)];[_0x752726(0xab)];[_0x752726(0xa0)];[_0x752726(0xc6)];static get[_0x752726(0xb3)](){const _0x2cf2e8=_0x752726;return _0x2cf2e8(0xaf);}static get[_0x752726(0xcd)](){return!0x0;}static get[_0x752726(0xbf)](){return!0x0;}static get[_0x752726(0xc4)](){return[_0x3346f2,_0x15652a];}constructor(_0x15979b){const _0x3398e7=_0x752726;super(_0x15979b),this[_0x3398e7(0xa3)]=new Map(),this[_0x3398e7(0xd0)]=new Map(),this[_0x3398e7(0xc7)]=new _0x5f14cd(),this[_0x3398e7(0xab)]=new Map(),this[_0x3398e7(0xa0)]=0x0,this[_0x3398e7(0xc6)]=this[_0x3398e7(0x9c)][_0x3398e7(0xd9)][_0x3398e7(0xb2)](_0x15652a);}[_0x752726(0xa6)](){const _0x4370d7=_0x752726,_0x37433f=this[_0x4370d7(0x9c)][_0x4370d7(0xd9)][_0x4370d7(0xb2)](_0x3346f2);this[_0x4370d7(0xc1)](_0x37433f,_0x4370d7(0xc3),(_0x7e0479,_0x4f5709,_0x3ff67d)=>{const _0x22bbd1=_0x4370d7;if(_0x22bbd1(0xb0)!==_0x3ff67d)this[_0x22bbd1(0xa3)][_0x22bbd1(0xb5)](_0xb2f36f=>_0xb2f36f[_0x22bbd1(0xc5)]()),this[_0x22bbd1(0xd0)][_0x22bbd1(0xb5)](_0x2e7b85=>_0x2e7b85[_0x22bbd1(0xc5)]()),this[_0x22bbd1(0xc7)][_0x22bbd1(0xc5)]();else{for(const [_0x264164,_0x18ec12]of this[_0x22bbd1(0xab)])for(const _0x1475a9 of _0x18ec12)this[_0x22bbd1(0xb9)](_0x264164,_0x1475a9);}}),this[_0x4370d7(0xca)](_0x37433f[_0x4370d7(0xd6)]['me'],!0x0);}[_0x752726(0xbe)](_0x287124,_0x20ee2b){const _0x557f4f=_0x752726;if(this[_0x557f4f(0xab)][_0x557f4f(0xae)](_0x287124))throw new _0x5522e2(_0x557f4f(0xcc),null,{'channelId':_0x287124});this[_0x557f4f(0xab)][_0x557f4f(0xd1)](_0x287124,_0x20ee2b),this[_0x557f4f(0xa3)][_0x557f4f(0xd1)](_0x287124,new _0x5f14cd()),this[_0x557f4f(0xd0)][_0x557f4f(0xd1)](_0x287124,new _0x5f14cd()),this[_0x557f4f(0xc1)](_0x20ee2b,_0x557f4f(0xd2),(_0x18c63c,_0x11b1cc)=>this[_0x557f4f(0xb9)](_0x287124,_0x11b1cc)),this[_0x557f4f(0xc1)](_0x20ee2b,_0x557f4f(0xa5),(_0x2ab2c7,_0xdbf244)=>this[_0x557f4f(0xa9)](_0x287124,_0xdbf244));for(const _0x4fbe71 of _0x20ee2b)this[_0x557f4f(0xb9)](_0x287124,_0x4fbe71);}[_0x752726(0x9e)](_0x538ec1){const _0x39829c=_0x752726;if(!this[_0x39829c(0xab)][_0x39829c(0xae)](_0x538ec1))throw new _0x5522e2(_0x39829c(0xa7),null,{'channelId':_0x538ec1});const _0x4469d2=this[_0x39829c(0xab)][_0x39829c(0xb2)](_0x538ec1);this[_0x39829c(0xbb)](_0x4469d2);for(const _0x55a8f3 of _0x4469d2)_0x39829c(0xb0)===this[_0x39829c(0x9c)][_0x39829c(0xd9)][_0x39829c(0xb2)](_0x3346f2)[_0x39829c(0xba)]&&this[_0x39829c(0xa9)](_0x538ec1,_0x55a8f3);this[_0x39829c(0xab)][_0x39829c(0xb7)](_0x538ec1),this[_0x39829c(0xa3)][_0x39829c(0xb7)](_0x538ec1),this[_0x39829c(0xd0)][_0x39829c(0xb7)](_0x538ec1);}get[_0x752726(0xc0)](){const _0x4a20ec=_0x752726;return this[_0x4a20ec(0x9c)][_0x4a20ec(0xd9)][_0x4a20ec(0xb2)](_0x3346f2)[_0x4a20ec(0xd6)][_0x4a20ec(0xcf)];}[_0x752726(0xd7)](_0x59a78b){const _0x2487a9=_0x752726;for(const _0x9bb3db of this[_0x2487a9(0xa3)][_0x2487a9(0xd4)]())for(const _0x34acef of _0x9bb3db)if(_0x34acef['id']===_0x59a78b)return _0x34acef[_0x2487a9(0xad)];}[_0x752726(0xda)](_0x17009b,_0x1e3788){const _0x4edabd=_0x752726,_0xc89f5e=_0x1e3788?[this[_0x4edabd(0xa3)][_0x4edabd(0xb2)](_0x1e3788)]:this[_0x4edabd(0xa3)][_0x4edabd(0xd4)](),_0x4a21a3=new Set();for(const _0x33d3dc of _0xc89f5e)for(const _0x1f94dc of _0x33d3dc)_0x1f94dc[_0x4edabd(0xad)]['id']===_0x17009b['id']&&_0x4a21a3[_0x4edabd(0xd2)](_0x1f94dc['id']);return _0x4a21a3;}[_0x752726(0xc9)](_0x3ff9f6){const _0x106999=_0x752726;for(const _0x1beaea of this[_0x106999(0xa3)][_0x106999(0xd4)]())for(const _0x6f9178 of _0x1beaea)if(_0x6f9178[_0x106999(0xad)]===_0x3ff9f6)return _0x6f9178[_0x106999(0xa1)];}[_0x752726(0xb9)](_0x2c52b2,_0x9ea063){const _0x5c6f43=_0x752726;if(_0x5c6f43(0xb0)!==this[_0x5c6f43(0x9c)][_0x5c6f43(0xd9)][_0x5c6f43(0xb2)](_0x3346f2)[_0x5c6f43(0xba)])return;const _0x5d3346=_0x9ea063[_0x5c6f43(0xad)],_0x4dc984=this[_0x5c6f43(0xc6)][_0x5c6f43(0xb6)](_0x5d3346['id'])||this[_0x5c6f43(0xca)](_0x5d3346),_0x207aef=Object[_0x5c6f43(0xb8)]({},_0x9ea063,{'user':_0x4dc984});this[_0x5c6f43(0xa3)][_0x5c6f43(0xb2)](_0x2c52b2)[_0x5c6f43(0xd2)](_0x207aef);const _0x2fc343=this[_0x5c6f43(0xd0)][_0x5c6f43(0xb2)](_0x2c52b2);_0x2fc343[_0x5c6f43(0xae)](_0x4dc984['id'])||_0x2fc343[_0x5c6f43(0xd2)](_0x4dc984),this[_0x5c6f43(0xc7)][_0x5c6f43(0xae)](_0x4dc984['id'])||this[_0x5c6f43(0xc7)][_0x5c6f43(0xd2)](_0x4dc984,_0x4dc984[_0x5c6f43(0xa8)]?0x0:void 0x0),this[_0x5c6f43(0x9d)](_0x5c6f43(0xbc)+_0x2c52b2,{'channelId':_0x2c52b2,'session':_0x207aef});}[_0x752726(0xa9)](_0x3d0a2a,_0x1600ff){const _0x41f263=_0x752726;if(_0x41f263(0xb0)!==this[_0x41f263(0x9c)][_0x41f263(0xd9)][_0x41f263(0xb2)](_0x3346f2)[_0x41f263(0xba)])return;const _0x1297eb=this[_0x41f263(0xd0)][_0x41f263(0xb2)](_0x3d0a2a),_0x448dc8=_0x1600ff[_0x41f263(0xad)];_0x448dc8['id']&&(this[_0x41f263(0xa3)][_0x41f263(0xb2)](_0x3d0a2a)[_0x41f263(0xa5)](_0x1600ff['id']),_0x1297eb[_0x41f263(0xae)](_0x448dc8['id'])&&!this[_0x41f263(0xda)](_0x448dc8,_0x3d0a2a)[_0x41f263(0xd8)]&&_0x1297eb[_0x41f263(0xa5)](_0x448dc8['id']),this[_0x41f263(0xc7)][_0x41f263(0xb2)](_0x448dc8['id'])&&!this[_0x41f263(0xda)](_0x448dc8)[_0x41f263(0xd8)]&&this[_0x41f263(0xc7)][_0x41f263(0xa5)](_0x448dc8['id']));}[_0x752726(0xca)](_0x46aff6,_0x3314ab){const _0x4237bb=_0x752726,_0x154b8a=this[_0x4237bb(0xc6)][_0x4237bb(0xd3)](_0x46aff6);return _0x3314ab&&this[_0x4237bb(0xc6)][_0x4237bb(0xbd)](_0x46aff6['id']),_0x154b8a[_0x4237bb(0xb1)]=this[_0x4237bb(0xa0)]++,_0x154b8a;}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f64a3=_0x36e6;(function(_0x3e92bf,_0x328cfd){const _0x5d2604=_0x36e6,_0x34e9f8=_0x3e92bf();while(!![]){try{const _0x2c9761=-parseInt(_0x5d2604(0x202))/0x1*(parseInt(_0x5d2604(0x1e4))/0x2)+-parseInt(_0x5d2604(0x20d))/0x3+parseInt(_0x5d2604(0x215))/0x4+parseInt(_0x5d2604(0x1e0))/0x5+parseInt(_0x5d2604(0x1f6))/0x6+-parseInt(_0x5d2604(0x1d0))/0x7*(-parseInt(_0x5d2604(0x1fe))/0x8)+-parseInt(_0x5d2604(0x206))/0x9;if(_0x2c9761===_0x328cfd)break;else _0x34e9f8['push'](_0x34e9f8['shift']());}catch(_0x1a6e16){_0x34e9f8['push'](_0x34e9f8['shift']());}}}(_0x2683,0x3359d));import{ContextPlugin as _0x50d83b}from'ckeditor5/src/core.js';function _0x2683(){const _0x3909e5=['722600lygVtW','disconnect','initialReconnectionInterval','config','14bnbpwT','set','_isBrowserOffline','plugins','context','WebSocketGateway','CloudServices','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.','cloudservices-init','real-time-collaboration','_shouldPluginsReconnect','get','function','state','requires','constructor','websocketgateway-invalid-plugin-interface','listenTo','2141652PRdXeT','connection','isPremiumPlugin','online','delete','_reconnectionStack','connect','_domEmitter','8rUTZUo','init','websocketgateway-missing-token','bind','22357EdTygt','websocketgateway-missing-websocket-url','websocketgateway-plugin-already-registered','_reconnect','3305079FXXPyd','cloudServices.connectionTimeout','isInReconnectionStack','offline','token','has','error','83694wvTnSc','from','destroy','Connected\x20users\x20limit\x20exceeded','CONNECTING','stopListening','reconnect','isOfficialPlugin','76168ixznss','pluginName','then','showWarning','1690199LTRutE','add','change:me','connected','limitExceeded','CONNECTED','cloudservices-reconnection-error','define','addToReconnectionStack','code','catch','all','cloudServices.requestTimeout','webSocketUrl','removeFromReconnectionStack','DISCONNECTED'];_0x2683=function(){return _0x3909e5;};return _0x2683();}import{DomEmitterMixin as _0x2c1856,CKEditorError as _0x3171ff}from'ckeditor5/src/utils.js';function _0x36e6(_0x3e1a30,_0xadc36f){const _0x268362=_0x2683();return _0x36e6=function(_0x36e629,_0x5e1fb7){_0x36e629=_0x36e629-0x1cf;let _0xa50b3e=_0x268362[_0x36e629];return _0xa50b3e;},_0x36e6(_0x3e1a30,_0xadc36f);}import{WebSocketGateway as _0x4fba4e,WEB_SOCKET_GATEWAY_STATES as _0x3b91cc}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x5d6ef6}from'ckeditor5/src/ui.js';class n extends _0x50d83b{static [_0x1f64a3(0x1e9)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x4fba4e)());static [_0x1f64a3(0x1e2)]=0x3e8;[_0x1f64a3(0x1f7)];[_0x1f64a3(0x1fb)];[_0x1f64a3(0x1ee)];[_0x1f64a3(0x1fd)];static get[_0x1f64a3(0x1f2)](){const _0x3ffc0a=_0x1f64a3;return[_0x3ffc0a(0x1ea),_0x5d6ef6];}static get[_0x1f64a3(0x216)](){const _0x2f4aaa=_0x1f64a3;return _0x2f4aaa(0x1e9);}static get[_0x1f64a3(0x214)](){return!0x0;}static get[_0x1f64a3(0x1f8)](){return!0x0;}constructor(_0x3fafd0){const _0x35e6d5=_0x1f64a3;super(_0x3fafd0),this[_0x35e6d5(0x1e5)](_0x35e6d5(0x1f1),_0x3b91cc[_0x35e6d5(0x1d5)]),this[_0x35e6d5(0x1e5)](_0x35e6d5(0x1e6),!0x1),this[_0x35e6d5(0x1fb)]=new Set(),this[_0x35e6d5(0x1ee)]=!0x1,this[_0x35e6d5(0x1fd)]=new(_0x2c1856())();}[_0x1f64a3(0x1ff)](){const _0xb07b58=_0x1f64a3,_0x192b60=this[_0xb07b58(0x1e8)],_0x1f84fa=_0x192b60[_0xb07b58(0x1e7)][_0xb07b58(0x1ef)](_0xb07b58(0x1ea)),_0xeb3071=_0x192b60[_0xb07b58(0x1e7)][_0xb07b58(0x1ef)](_0x5d6ef6);if(!_0x1f84fa[_0xb07b58(0x20a)])throw new _0x3171ff(_0xb07b58(0x200),this);if(!_0x1f84fa[_0xb07b58(0x1dd)])throw new _0x3171ff(_0xb07b58(0x203),this);return this[_0xb07b58(0x1fd)][_0xb07b58(0x1f5)](window,_0xb07b58(0x209),()=>this[_0xb07b58(0x1e6)]=!0x0),this[_0xb07b58(0x1fd)][_0xb07b58(0x1f5)](window,_0xb07b58(0x1f9),()=>this[_0xb07b58(0x1e6)]=!0x1),this[_0xb07b58(0x1e8)][_0xb07b58(0x1e3)][_0xb07b58(0x1d7)](_0xb07b58(0x207),0xa),this[_0xb07b58(0x1e8)][_0xb07b58(0x1e3)][_0xb07b58(0x1d7)](_0xb07b58(0x1dc),0x14),n[_0xb07b58(0x1e9)][_0xb07b58(0x1fc)](_0x1f84fa[_0xb07b58(0x20a)],_0x1f84fa[_0xb07b58(0x1dd)],{'timeout':0x3e8*this[_0xb07b58(0x1e8)][_0xb07b58(0x1e3)][_0xb07b58(0x1ef)](_0xb07b58(0x207)),'requestTimeout':0x3e8*this[_0xb07b58(0x1e8)][_0xb07b58(0x1e3)][_0xb07b58(0x1ef)](_0xb07b58(0x1dc))})[_0xb07b58(0x217)](_0x3a93ff=>{const _0x1f9a65=_0xb07b58;if(this[_0x1f9a65(0x1f7)]=_0x3a93ff,this[_0x1f9a65(0x201)](_0x1f9a65(0x1f1))['to'](_0x3a93ff,_0x1f9a65(0x1f1),this,_0x1f9a65(0x1e6),(_0x501c6d,_0x4f3651)=>(_0x1f9a65(0x1d3)!==_0x501c6d&&(this[_0x1f9a65(0x1ee)]=!0x0),_0x4f3651||_0x501c6d!==_0x3b91cc[_0x1f9a65(0x1d5)]?_0x3b91cc[_0x1f9a65(0x1df)]:this[_0x1f9a65(0x1f1)]==_0x3b91cc[_0x1f9a65(0x1df)]&&this[_0x1f9a65(0x1ee)]?(this[_0x1f9a65(0x1ee)]=!0x1,this[_0x1f9a65(0x205)](),_0x3b91cc[_0x1f9a65(0x211)]):_0x3b91cc[_0x1f9a65(0x1d5)])),this[_0x1f9a65(0x1f7)]['on'](_0x1f9a65(0x20c),(_0x5926ec,_0x58150d)=>{const _0x18f59e=_0x1f9a65;if(_0x18f59e(0x1d4)!==_0x58150d[_0x18f59e(0x1d9)])throw console[_0x18f59e(0x20c)](_0x58150d),new _0x3171ff(_0x18f59e(0x1ec),null,{'originalError':_0x58150d});_0xeb3071[_0x18f59e(0x1cf)](_0x18f59e(0x1eb),{'title':_0x18f59e(0x210),'namespace':_0x18f59e(0x1ed)});}),!_0x3a93ff['me'])return new Promise(_0x51cf2d=>_0x3a93ff['on'](_0x1f9a65(0x1d2),_0x51cf2d));})[_0xb07b58(0x1da)](_0x566b4f=>{const _0x3c6951=_0xb07b58;throw console[_0x3c6951(0x20c)](_0x566b4f),new _0x3171ff(_0x3c6951(0x1ec),null,{'originalError':_0x566b4f});});}[_0x1f64a3(0x1d8)](_0x286f40){const _0x25b096=_0x1f64a3;if(_0x25b096(0x1f0)!=typeof _0x286f40[_0x25b096(0x213)])throw new _0x3171ff(_0x25b096(0x1f4),this);if(this[_0x25b096(0x208)](_0x286f40))throw new _0x3171ff(_0x25b096(0x204),this,{'name':_0x286f40[_0x25b096(0x1f3)][_0x25b096(0x216)]});this[_0x25b096(0x1fb)][_0x25b096(0x1d1)](_0x286f40);}[_0x1f64a3(0x1de)](_0x3c5a08){const _0x3b2eef=_0x1f64a3;this[_0x3b2eef(0x1fb)][_0x3b2eef(0x1fa)](_0x3c5a08);}[_0x1f64a3(0x208)](_0x31f1ee){const _0x3a85a9=_0x1f64a3;return this[_0x3a85a9(0x1fb)][_0x3a85a9(0x20b)](_0x31f1ee);}[_0x1f64a3(0x205)](){const _0x3f7066=_0x1f64a3;return this[_0x3f7066(0x1f7)][_0x3f7066(0x213)]()[_0x3f7066(0x217)](()=>Promise[_0x3f7066(0x1db)](Array[_0x3f7066(0x20e)](this[_0x3f7066(0x1fb)],_0x41e020=>_0x41e020[_0x3f7066(0x213)]())))[_0x3f7066(0x217)](()=>this[_0x3f7066(0x1f1)]=_0x3b91cc[_0x3f7066(0x1d5)])[_0x3f7066(0x1da)](_0x42dac8=>{const _0x410028=_0x3f7066;throw console[_0x410028(0x20c)](_0x42dac8),new _0x3171ff(_0x410028(0x1d6),this[_0x410028(0x1e8)]);});}[_0x1f64a3(0x1e1)](){const _0x266afb=_0x1f64a3;this[_0x266afb(0x1f7)]&&this[_0x266afb(0x1f7)][_0x266afb(0x1e1)](),this[_0x266afb(0x1f1)]=_0x3b91cc[_0x266afb(0x1df)],this[_0x266afb(0x1fd)][_0x266afb(0x212)]();}[_0x1f64a3(0x20f)](){const _0x522398=_0x1f64a3;this[_0x522398(0x1e1)](),super[_0x522398(0x20f)]();}}export{n as WebSocketGateway};
23
+ const _0x39e3ae=_0x5c80;function _0x29ff(){const _0x1fada0=['_domEmitter','addToReconnectionStack','connected','initialReconnectionInterval','9518vNiQhA','plugins','CONNECTED','context','websocketgateway-invalid-plugin-interface','Connected\x20users\x20limit\x20exceeded','removeFromReconnectionStack','define','showWarning','3554159ZpkrIo','limitExceeded','isInReconnectionStack','websocketgateway-plugin-already-registered','token','bind','offline','1038426QYSbsd','change:me','reconnect','_shouldPluginsReconnect','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.','pluginName','cloudServices.connectionTimeout','_isBrowserOffline','all','CloudServices','listenTo','code','WebSocketGateway','CONNECTING','webSocketUrl','connection','4242855ZwCSAP','then','disconnect','real-time-collaboration','3132MwdSZj','cloudservices-init','error','destroy','config','set','websocketgateway-missing-websocket-url','function','state','1958696lHhXds','stopListening','isPremiumPlugin','get','delete','isOfficialPlugin','cloudServices.requestTimeout','cloudservices-reconnection-error','_reconnect','from','catch','4559094gpfufV','has','requires','init','_reconnectionStack','711WQybSR','add','DISCONNECTED','websocketgateway-missing-token','online','20152xjdOqn','connect','constructor'];_0x29ff=function(){return _0x1fada0;};return _0x29ff();}(function(_0x3448f7,_0x5b0094){const _0x627821=_0x5c80,_0x1747ef=_0x3448f7();while(!![]){try{const _0x4f4695=-parseInt(_0x627821(0x13a))/0x1+parseInt(_0x627821(0x173))/0x2*(parseInt(_0x627821(0x167))/0x3)+-parseInt(_0x627821(0x157))/0x4+parseInt(_0x627821(0x14a))/0x5+parseInt(_0x627821(0x162))/0x6+parseInt(_0x627821(0x17c))/0x7+-parseInt(_0x627821(0x16c))/0x8*(parseInt(_0x627821(0x14e))/0x9);if(_0x4f4695===_0x5b0094)break;else _0x1747ef['push'](_0x1747ef['shift']());}catch(_0x4e2f7a){_0x1747ef['push'](_0x1747ef['shift']());}}}(_0x29ff,0xccea0));import{ContextPlugin as _0x865b20}from'ckeditor5/src/core.js';function _0x5c80(_0x429d40,_0x5c02fd){const _0x29ff55=_0x29ff();return _0x5c80=function(_0x5c800a,_0x478ff8){_0x5c800a=_0x5c800a-0x13a;let _0x34219e=_0x29ff55[_0x5c800a];return _0x34219e;},_0x5c80(_0x429d40,_0x5c02fd);}import{DomEmitterMixin as _0x880c6e,CKEditorError as _0xa543cb}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x3fc0b3,WEB_SOCKET_GATEWAY_STATES as _0x535b12}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0xab25fe}from'ckeditor5/src/ui.js';class n extends _0x865b20{static [_0x39e3ae(0x146)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x3fc0b3)());static [_0x39e3ae(0x172)]=0x3e8;[_0x39e3ae(0x149)];[_0x39e3ae(0x166)];[_0x39e3ae(0x13d)];[_0x39e3ae(0x16f)];static get[_0x39e3ae(0x164)](){const _0xe01175=_0x39e3ae;return[_0xe01175(0x143),_0xab25fe];}static get[_0x39e3ae(0x13f)](){const _0x225e7c=_0x39e3ae;return _0x225e7c(0x146);}static get[_0x39e3ae(0x15c)](){return!0x0;}static get[_0x39e3ae(0x159)](){return!0x0;}constructor(_0xbbcbed){const _0xf2d87e=_0x39e3ae;super(_0xbbcbed),this[_0xf2d87e(0x153)](_0xf2d87e(0x156),_0x535b12[_0xf2d87e(0x175)]),this[_0xf2d87e(0x153)](_0xf2d87e(0x141),!0x1),this[_0xf2d87e(0x166)]=new Set(),this[_0xf2d87e(0x13d)]=!0x1,this[_0xf2d87e(0x16f)]=new(_0x880c6e())();}[_0x39e3ae(0x165)](){const _0x23efe1=_0x39e3ae,_0x3f11bb=this[_0x23efe1(0x176)],_0x56f269=_0x3f11bb[_0x23efe1(0x174)][_0x23efe1(0x15a)](_0x23efe1(0x143)),_0x16fd4a=_0x3f11bb[_0x23efe1(0x174)][_0x23efe1(0x15a)](_0xab25fe);if(!_0x56f269[_0x23efe1(0x180)])throw new _0xa543cb(_0x23efe1(0x16a),this);if(!_0x56f269[_0x23efe1(0x148)])throw new _0xa543cb(_0x23efe1(0x154),this);return this[_0x23efe1(0x16f)][_0x23efe1(0x144)](window,_0x23efe1(0x182),()=>this[_0x23efe1(0x141)]=!0x0),this[_0x23efe1(0x16f)][_0x23efe1(0x144)](window,_0x23efe1(0x16b),()=>this[_0x23efe1(0x141)]=!0x1),this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x17a)](_0x23efe1(0x140),0xa),this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x17a)](_0x23efe1(0x15d),0x14),n[_0x23efe1(0x146)][_0x23efe1(0x16d)](_0x56f269[_0x23efe1(0x180)],_0x56f269[_0x23efe1(0x148)],{'timeout':0x3e8*this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x15a)](_0x23efe1(0x140)),'requestTimeout':0x3e8*this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x15a)](_0x23efe1(0x15d))})[_0x23efe1(0x14b)](_0x2cc235=>{const _0x442d36=_0x23efe1;if(this[_0x442d36(0x149)]=_0x2cc235,this[_0x442d36(0x181)](_0x442d36(0x156))['to'](_0x2cc235,_0x442d36(0x156),this,_0x442d36(0x141),(_0x166c58,_0x574073)=>(_0x442d36(0x171)!==_0x166c58&&(this[_0x442d36(0x13d)]=!0x0),_0x574073||_0x166c58!==_0x535b12[_0x442d36(0x175)]?_0x535b12[_0x442d36(0x169)]:this[_0x442d36(0x156)]==_0x535b12[_0x442d36(0x169)]&&this[_0x442d36(0x13d)]?(this[_0x442d36(0x13d)]=!0x1,this[_0x442d36(0x15f)](),_0x535b12[_0x442d36(0x147)]):_0x535b12[_0x442d36(0x175)])),this[_0x442d36(0x149)]['on'](_0x442d36(0x150),(_0x5349b9,_0x42bdfb)=>{const _0x66233a=_0x442d36;if(_0x66233a(0x17d)!==_0x42bdfb[_0x66233a(0x145)])throw console[_0x66233a(0x150)](_0x42bdfb),new _0xa543cb(_0x66233a(0x14f),null,{'originalError':_0x42bdfb});_0x16fd4a[_0x66233a(0x17b)](_0x66233a(0x13e),{'title':_0x66233a(0x178),'namespace':_0x66233a(0x14d)});}),!_0x2cc235['me'])return new Promise(_0xbb51a1=>_0x2cc235['on'](_0x442d36(0x13b),_0xbb51a1));})[_0x23efe1(0x161)](_0xc00411=>{const _0x881b4e=_0x23efe1;throw console[_0x881b4e(0x150)](_0xc00411),new _0xa543cb(_0x881b4e(0x14f),null,{'originalError':_0xc00411});});}[_0x39e3ae(0x170)](_0x2c2b4d){const _0x396337=_0x39e3ae;if(_0x396337(0x155)!=typeof _0x2c2b4d[_0x396337(0x13c)])throw new _0xa543cb(_0x396337(0x177),this);if(this[_0x396337(0x17e)](_0x2c2b4d))throw new _0xa543cb(_0x396337(0x17f),this,{'name':_0x2c2b4d[_0x396337(0x16e)][_0x396337(0x13f)]});this[_0x396337(0x166)][_0x396337(0x168)](_0x2c2b4d);}[_0x39e3ae(0x179)](_0x375de1){const _0x2754ac=_0x39e3ae;this[_0x2754ac(0x166)][_0x2754ac(0x15b)](_0x375de1);}[_0x39e3ae(0x17e)](_0x3e6eaf){const _0x5e6038=_0x39e3ae;return this[_0x5e6038(0x166)][_0x5e6038(0x163)](_0x3e6eaf);}[_0x39e3ae(0x15f)](){const _0x480c2=_0x39e3ae;return this[_0x480c2(0x149)][_0x480c2(0x13c)]()[_0x480c2(0x14b)](()=>Promise[_0x480c2(0x142)](Array[_0x480c2(0x160)](this[_0x480c2(0x166)],_0x44aee7=>_0x44aee7[_0x480c2(0x13c)]())))[_0x480c2(0x14b)](()=>this[_0x480c2(0x156)]=_0x535b12[_0x480c2(0x175)])[_0x480c2(0x161)](_0x57e20e=>{const _0x164ac3=_0x480c2;throw console[_0x164ac3(0x150)](_0x57e20e),new _0xa543cb(_0x164ac3(0x15e),this[_0x164ac3(0x176)]);});}[_0x39e3ae(0x14c)](){const _0xf9cb56=_0x39e3ae;this[_0xf9cb56(0x149)]&&this[_0xf9cb56(0x149)][_0xf9cb56(0x14c)](),this[_0xf9cb56(0x156)]=_0x535b12[_0xf9cb56(0x169)],this[_0xf9cb56(0x16f)][_0xf9cb56(0x158)]();}[_0x39e3ae(0x151)](){const _0x548fea=_0x39e3ae;this[_0x548fea(0x14c)](),super[_0x548fea(0x151)]();}}export{n as WebSocketGateway};
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22a1bf=_0x5f1d;(function(_0x2b9a3,_0xf9df16){const _0x285549=_0x5f1d,_0x2b442f=_0x2b9a3();while(!![]){try{const _0x4424b7=parseInt(_0x285549(0xe8))/0x1+parseInt(_0x285549(0xff))/0x2+parseInt(_0x285549(0x11c))/0x3+parseInt(_0x285549(0x110))/0x4*(-parseInt(_0x285549(0xef))/0x5)+-parseInt(_0x285549(0x111))/0x6*(-parseInt(_0x285549(0xfa))/0x7)+-parseInt(_0x285549(0xe7))/0x8*(parseInt(_0x285549(0x10c))/0x9)+parseInt(_0x285549(0x109))/0xa*(parseInt(_0x285549(0x11f))/0xb);if(_0x4424b7===_0xf9df16)break;else _0x2b442f['push'](_0x2b442f['shift']());}catch(_0x4a5fe9){_0x2b442f['push'](_0x2b442f['shift']());}}}(_0x145f,0x5e604));import{Plugin as _0x318a7e}from'ckeditor5/src/core.js';import{version as _0x3a254c}from'ckeditor5/src/utils.js';import{Users as _0x540d3d}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x8e5a2d}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x563aac}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x148a42}from'../realtimecollaborativeediting/sessions.js';function _0x145f(){const _0x4a21bf=['collaboration.channelId','addToReconnectionStack','14HEvEjc','affectsData','message','cloudServices.bundleVersion','getRevision','324060nabkbs','_isConnected','_bufferedUpdates','isEnabled','once','_startingVersion','createdAt','editor','length','getRevisions','8770WozkIv','isBundleUploaded','_waitForServiceReady','228753ZQxAna','_offset','reconnect','updateRevisions','106128xQaFfr','1743822QIFgIV','remove','from','addRevisionData','change:_isConnected','_bufferUpdate','catch','_update','CONNECTED','_getLatestVersion','off','910941BRWqgi','repository','get','1793xPGIgS','change:_isPendingUpdate','400','isConnected','startsWith','_handleReconnectionError','isOfficialPlugin','_preventResendingRevisionData','RevisionTracker','isEmptyCurrent','adapter','RevisionHistoryService','_createCurrentRevision','getMany','buildRevisionData','_revisionDataBuilder','_oldOffset','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','has','state','connect','cloud-services-internal-error:\x20Request\x20timeout.','setSource','reverse','reInit','getOperations','add','RevisionHistory','wrongRequestId','connected','bind','max','requires','destroy','type','creatorId','fromVersion','map','connection','authorsIds','pluginName','_revisionHistoryService','marker','config','sessionId','_getLatestVersionFromServerOperations','sendBufferedUpdates','_isPendingUpdate','getUser','_fetchMissingUsers','init','_revisionTracker','diffData','size','isPremiumPlugin','cloud-services-internal-error:\x20Not\x20connected.','_handleRevisionsUpdate','revisionsUpdated','baseVersion','_revisions','data','232WUXmJM','199075SNkJoS','plugins','keys','then','currentRevision','setRevisionData','serverHistory','50PMZZKk','toVersion','authors','code','_fixRevision','listenTo','CloudServicesRevisionHistoryAdapter','_lastRequestId','addUser'];_0x145f=function(){return _0x4a21bf;};return _0x145f();}import{EditorService as _0x58fe11,RevisionHistoryService as _0x4f3e2e,User as _0x4ab5ae,WEB_SOCKET_GATEWAY_STATES as _0x1de02b}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x5f1d(_0x5282e0,_0x457992){const _0x145f9d=_0x145f();return _0x5f1d=function(_0x5f1deb,_0x5685d4){_0x5f1deb=_0x5f1deb-0xc7;let _0x4c009d=_0x145f9d[_0x5f1deb];return _0x4c009d;},_0x5f1d(_0x5282e0,_0x457992);}class c extends _0x318a7e{static [_0x22a1bf(0x12a)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x4f3e2e)());[_0x22a1bf(0xf6)];[_0x22a1bf(0xdd)];[_0x22a1bf(0xd3)];[_0x22a1bf(0x12f)];static get[_0x22a1bf(0xca)](){const _0x412cac=_0x22a1bf;return[_0x563aac,_0x8e5a2d,_0x412cac(0x13a),_0x148a42,_0x540d3d];}static get[_0x22a1bf(0xd2)](){const _0xe921f2=_0x22a1bf;return _0xe921f2(0xf5);}static get[_0x22a1bf(0x125)](){return!0x0;}static get[_0x22a1bf(0xe0)](){return!0x0;}constructor(_0x3d5111){const _0x15c828=_0x22a1bf;super(_0x3d5111);const _0x49cbdd=this[_0x15c828(0x106)][_0x15c828(0xd5)][_0x15c828(0x11e)](_0x15c828(0xf8));this[_0x15c828(0xf6)]=null,this[_0x15c828(0xdd)]=this[_0x15c828(0x106)][_0x15c828(0xe9)][_0x15c828(0x11e)](_0x15c828(0x127)),this[_0x15c828(0xd3)]=new c[(_0x15c828(0x12a))](_0x49cbdd);}async[_0x22a1bf(0xdc)](){const _0x168578=_0x22a1bf,_0x33e6ba=this[_0x168578(0x106)][_0x168578(0xe9)][_0x168578(0x11e)](_0x8e5a2d),_0x42b6d0=_0x33e6ba[_0x168578(0xee)],_0x32d790=this[_0x168578(0x106)][_0x168578(0xe9)][_0x168578(0x11e)](_0x563aac);this[_0x168578(0xdd)][_0x168578(0x135)]({'history':_0x42b6d0,'getLatestVersion':()=>this[_0x168578(0x11a)](),'getCurrentRevisionId':()=>_0x33e6ba[_0x168578(0xd6)]});const _0x5593c7=this[_0x168578(0x106)][_0x168578(0xd5)][_0x168578(0x11e)](_0x168578(0xfd))||_0x3a254c,_0x12713a=await _0x58fe11[_0x168578(0x10a)](_0x32d790[_0x168578(0xd0)],_0x5593c7);this[_0x168578(0x106)][_0x168578(0xe9)][_0x168578(0x11e)](_0x168578(0x13a))[_0x168578(0x129)]={'getRevision':async({revisionId:_0xbe817f})=>(await this[_0x168578(0x10b)](),await this[_0x168578(0xd3)][_0x168578(0xfe)](_0xbe817f)),'updateRevisions':async _0x56fd0f=>{const _0x589a75=_0x168578;await this[_0x589a75(0x10b)]();const _0x2eb2e6=this[_0x589a75(0xdd)][_0x589a75(0xec)];if(_0x12713a&&0x1===_0x56fd0f[_0x589a75(0x107)]&&_0x56fd0f[0x0]['id']===_0x2eb2e6['id'])return _0x56fd0f;for(const _0x50ead4 of _0x56fd0f)_0x50ead4['id']===_0x2eb2e6['id']&&(_0x50ead4[_0x589a75(0x128)]=_0x50ead4[_0x589a75(0xce)]===_0x50ead4[_0x589a75(0xf0)]);return this[_0x589a75(0xd3)][_0x589a75(0x10f)](_0x56fd0f,this[_0x589a75(0xf6)])[_0x589a75(0xeb)](_0x22264e=>(this[_0x589a75(0xf6)]=_0x22264e,_0x56fd0f))[_0x589a75(0x117)](_0x20ba06=>{const _0x306017=_0x589a75;if(P(_0x20ba06)||_0x306017(0x121)===_0x20ba06[_0x306017(0xf2)]&&void 0x0!==_0x20ba06[_0x306017(0xe6)][_0x306017(0x13b)]){for(const _0x281fb6 of _0x56fd0f){!this[_0x306017(0xdd)][_0x306017(0x11d)][_0x306017(0xfe)](_0x281fb6['id'])||this[_0x306017(0xdd)][_0x306017(0x116)](_0x281fb6['id'],_0x281fb6,!0x1);}if(P(_0x20ba06))throw _0x20ba06;return _0x56fd0f;}throw _0x20ba06;});}},this[_0x168578(0xf4)](this[_0x168578(0xd3)],_0x168578(0xe3),(_0x24de01,{revisionsData:_0x590efc,requestId:_0x47dd11})=>{const _0x1c3cd7=_0x168578;Math[_0x1c3cd7(0xc9)](..._0x590efc[_0x1c3cd7(0xcf)](_0x236436=>_0x236436[_0x1c3cd7(0xf0)]))>this[_0x1c3cd7(0xd7)]()-0x1?this[_0x1c3cd7(0x11a)]()[_0x1c3cd7(0xeb)](()=>{const _0xc6af41=_0x1c3cd7;this[_0xc6af41(0xe2)](_0x590efc,_0x47dd11);}):this[_0x1c3cd7(0xe2)](_0x590efc,_0x47dd11);});const {revisions:_0x5b2525,requestId:_0x53a133}=await this[_0x168578(0xd3)][_0x168578(0x133)](_0x32d790[_0x168578(0xd0)]);_0x32d790[_0x168578(0xf9)](this),this[_0x168578(0xf6)]=_0x53a133,await this[_0x168578(0xdb)](_0x5b2525);for(const _0x13d30c of _0x5b2525)this[_0x168578(0xdd)][_0x168578(0x114)](_0x13d30c);this[_0x168578(0xf4)](_0x33e6ba,_0x168578(0x115),(_0x13c570,_0x43144,_0x1c7f84)=>{const _0x3075f7=_0x168578;_0x1c7f84&&(this[_0x3075f7(0x12f)]=_0x33e6ba[_0x3075f7(0x10d)],_0x13c570[_0x3075f7(0x11b)]());}),this[_0x168578(0xdd)][_0x168578(0xc8)](_0x168578(0x102))['to'](_0x32d790,_0x168578(0x132),_0x1d135d=>_0x1d135d===_0x1de02b[_0x168578(0x119)]);}async[_0x22a1bf(0x10e)](){const _0x38359a=_0x22a1bf,_0x30a3c8=this[_0x38359a(0x106)][_0x38359a(0xe9)][_0x38359a(0x11e)](_0x563aac),_0x116177=this[_0x38359a(0x106)][_0x38359a(0xe9)][_0x38359a(0x11e)](_0x8e5a2d),_0x231011=async()=>{const _0x389a05=_0x38359a,_0x5d887c=this[_0x389a05(0xdd)][_0x389a05(0xec)],_0x17b4c7=_0x5d887c['id'],_0x383bfb=_0x17b4c7!==_0x116177[_0x389a05(0xd6)];if(_0x383bfb){const _0x2c09e3=_0x116177[_0x389a05(0x10d)]-this[_0x389a05(0x12f)],_0x406ea7=this[_0x389a05(0xd7)]();this[_0x389a05(0xdd)][_0x389a05(0x12e)][_0x389a05(0x137)]();if(_0x5d887c[_0x389a05(0xf0)]+_0x2c09e3!==_0x406ea7){const _0x5aa0f8=_0x5d887c[_0x389a05(0xce)]+_0x2c09e3,_0x4f0103=this[_0x389a05(0x106)][_0x389a05(0xe9)][_0x389a05(0x11e)](_0x540d3d),_0x4b5ae9=this[_0x389a05(0xdd)][_0x389a05(0x12d)]({'revision':_0x5d887c,'from':_0x5aa0f8,'to':_0x406ea7});_0x4b5ae9['id']=_0x5d887c['id'];const _0x42574d=_0x4b5ae9[_0x389a05(0xd1)][_0x389a05(0xcf)](_0xa1e9e2=>_0x4f0103[_0x389a05(0xda)](_0xa1e9e2));_0x5d887c[_0x389a05(0x118)]({..._0x4b5ae9,'authors':_0x42574d},!0x0),this[_0x389a05(0xdd)][_0x389a05(0x116)](_0x5d887c['id'],_0x4b5ae9,!0x0);}this[_0x389a05(0xdd)][_0x389a05(0x104)]=_0x406ea7,(_0x5d887c[_0x389a05(0xf0)]===_0x5d887c[_0x389a05(0xce)]&&!this[_0x389a05(0xdd)][_0x389a05(0x101)][_0x389a05(0x131)](_0x17b4c7)&&this[_0x389a05(0xdd)][_0x389a05(0x11d)][_0x389a05(0xe5)][_0x389a05(0x112)](_0x17b4c7),this[_0x389a05(0xdd)][_0x389a05(0x12b)](_0x406ea7));}const {revisions:_0x3783c9,requestId:_0x6ea774}=await this[_0x389a05(0xd3)][_0x389a05(0x10e)](_0x30a3c8[_0x389a05(0xd0)],this[_0x389a05(0xf6)]);_0x383bfb&&_0x3783c9[_0x389a05(0x107)]>0x0?_0x116177[_0x389a05(0x124)]():(await this[_0x389a05(0xdb)](_0x3783c9),this[_0x389a05(0xe2)](_0x3783c9,_0x6ea774),this[_0x389a05(0xdd)][_0x389a05(0xd8)]());};return _0x116177[_0x38359a(0x100)]?_0x231011():new Promise((_0x3f5d12,_0x19c66f)=>{const _0x32a76c=_0x38359a;_0x116177[_0x32a76c(0x103)](_0x32a76c(0x115),()=>{const _0x5ef1f7=_0x32a76c;_0x231011()[_0x5ef1f7(0xeb)](_0x3f5d12)[_0x5ef1f7(0x117)](_0x19c66f);});});}[_0x22a1bf(0xcb)](){const _0x520abf=_0x22a1bf;super[_0x520abf(0xcb)]();}async[_0x22a1bf(0x10b)](){const _0x4d767b=_0x22a1bf;this[_0x4d767b(0xd3)][_0x4d767b(0x122)]||await new Promise(_0x444a90=>{const _0x1f77f7=_0x4d767b;this[_0x1f77f7(0xf4)](this[_0x1f77f7(0xd3)],_0x1f77f7(0xc7),_0x79add8=>{const _0x5c239f=_0x1f77f7;_0x79add8[_0x5c239f(0x11b)](),_0x444a90();});});}[_0x22a1bf(0xd7)](){const _0x13bd62=_0x22a1bf,_0x694ae7=this[_0x13bd62(0x106)][_0x13bd62(0xe9)][_0x13bd62(0x11e)](_0x8e5a2d)[_0x13bd62(0xee)][_0x13bd62(0x138)]()[_0x13bd62(0x136)]();for(const _0x257abe of _0x694ae7)if(_0x13bd62(0xd4)!==_0x257abe[_0x13bd62(0xcc)]||_0x257abe[_0x13bd62(0xfb)])return _0x257abe[_0x13bd62(0xe4)]+0x1;}[_0x22a1bf(0x11a)](){const _0x4208a6=_0x22a1bf,_0x3f2df6=this[_0x4208a6(0x106)][_0x4208a6(0xe9)][_0x4208a6(0x11e)](_0x8e5a2d);return new Promise(_0x7e1b56=>{const _0x5e08e2=_0x4208a6;_0x3f2df6[_0x5e08e2(0xd9)]?_0x3f2df6[_0x5e08e2(0x103)](_0x5e08e2(0x120),()=>{const _0x11f922=_0x5e08e2;_0x7e1b56(this[_0x11f922(0xd7)]());}):_0x7e1b56(this[_0x5e08e2(0xd7)]());});}[_0x22a1bf(0xe2)](_0x481d57,_0x13081c){const _0x3e9361=_0x22a1bf,_0x5d28cf=this[_0x3e9361(0xdd)][_0x3e9361(0x11d)];this[_0x3e9361(0xf6)]=_0x13081c;for(const _0x2711f4 of _0x481d57){const _0x1f7893=_0x5d28cf[_0x3e9361(0xfe)](_0x2711f4['id']);if(_0x1f7893){if((_0x2711f4[_0x3e9361(0xce)]||_0x2711f4[_0x3e9361(0xf0)])&&(_0x2711f4[_0x3e9361(0xde)]=null),_0x1f7893===this[_0x3e9361(0xdd)][_0x3e9361(0xec)]){const _0x2d0614=Math[_0x3e9361(0xc9)](_0x1f7893[_0x3e9361(0xf0)],_0x2711f4[_0x3e9361(0xf0)]),_0x24dd98=Math[_0x3e9361(0xc9)](_0x1f7893[_0x3e9361(0xce)],_0x2711f4[_0x3e9361(0xce)]);let _0xfd4344;_0x1f7893[_0x3e9361(0xf0)]===_0x2711f4[_0x3e9361(0xf0)]&&_0x1f7893[_0x3e9361(0xce)]===_0x2711f4[_0x3e9361(0xce)]?(_0xfd4344=!0x0,this[_0x3e9361(0x126)](_0x2711f4)):_0x2711f4[_0x3e9361(0xf0)]===_0x2d0614&&_0x2711f4[_0x3e9361(0xce)]===_0x24dd98?_0xfd4344=!0x1:(_0x1f7893[_0x3e9361(0xf0)]===_0x2d0614&&_0x1f7893[_0x3e9361(0xce)]===_0x24dd98||this[_0x3e9361(0xf3)]({'revision':_0x1f7893,'from':_0x24dd98,'to':_0x2d0614}),_0xfd4344=!0x0),_0xfd4344&&(delete _0x2711f4[_0x3e9361(0xce)],delete _0x2711f4[_0x3e9361(0xf0)],delete _0x2711f4[_0x3e9361(0xde)],delete _0x2711f4[_0x3e9361(0x105)],delete _0x2711f4[_0x3e9361(0xd1)]);}this[_0x3e9361(0xdd)][_0x3e9361(0xed)](_0x2711f4),this[_0x3e9361(0x126)](_0x2711f4);}else this[_0x3e9361(0xdd)][_0x3e9361(0x114)](_0x2711f4);}const _0x2120e5=_0x5d28cf[_0x3e9361(0x108)]();_0x2120e5[_0x3e9361(0x136)]();for(let _0x32b38f=0x0;_0x32b38f<_0x2120e5[_0x3e9361(0x107)]-0x1;_0x32b38f++){const _0x1bbf0a=_0x2120e5[_0x32b38f],_0x1964fd=_0x2120e5[_0x32b38f+0x1];if(_0x1bbf0a[_0x3e9361(0xce)]<_0x1964fd[_0x3e9361(0xf0)]){const _0x4e8dc1=_0x1964fd[_0x3e9361(0xf0)],_0x4c530a=Math[_0x3e9361(0xc9)](_0x4e8dc1,_0x1bbf0a[_0x3e9361(0xf0)]);this[_0x3e9361(0xf3)]({'revision':_0x1bbf0a,'from':_0x4e8dc1,'to':_0x4c530a});}}}[_0x22a1bf(0xf3)]({revision:_0x43ea9c,from:_0x19d00e,to:_0x150e97}={}){const _0x370754=_0x22a1bf,_0xf2a109=this[_0x370754(0x106)][_0x370754(0xe9)][_0x370754(0x11e)](_0x540d3d),_0xec3d3e=this[_0x370754(0xdd)][_0x370754(0x12d)]({'revision':_0x43ea9c,'from':_0x19d00e,'to':_0x150e97});_0xec3d3e[_0x370754(0xf1)]=_0xec3d3e[_0x370754(0xd1)][_0x370754(0xcf)](_0x56de35=>_0xf2a109[_0x370754(0xda)](_0x56de35)),_0x43ea9c[_0x370754(0x118)](_0xec3d3e);}[_0x22a1bf(0x126)](_0x3b2132){const _0x192d67=_0x22a1bf,_0x1b6a92={};_0x1b6a92['id']=_0x3b2132['id'];for(const _0xc7cccc of Object[_0x192d67(0xea)](_0x3b2132))'id'!==_0xc7cccc&&(_0x1b6a92[_0xc7cccc]=void 0x0);this[_0x192d67(0xdd)][_0x192d67(0x116)](_0x1b6a92['id'],_0x1b6a92,!0x0);}async[_0x22a1bf(0xdb)](_0x5ec659){const _0x499caf=_0x22a1bf,_0x290415=this[_0x499caf(0x106)][_0x499caf(0xe9)][_0x499caf(0x11e)](_0x540d3d),{connection:_0xc1c496}=this[_0x499caf(0x106)][_0x499caf(0xe9)][_0x499caf(0x11e)](_0x563aac),_0x27153f=new Set();for(const _0x4cfe8e of _0x5ec659){for(const _0x992911 of _0x4cfe8e[_0x499caf(0xd1)])_0x12db88(_0x992911);_0x4cfe8e[_0x499caf(0xcd)]&&_0x12db88(_0x4cfe8e[_0x499caf(0xcd)]);}if(0x0===_0x27153f[_0x499caf(0xdf)])return;const _0x56a91f=await _0x4ab5ae[_0x499caf(0x12c)](_0xc1c496,Array[_0x499caf(0x113)](_0x27153f));for(const _0x59536c of _0x56a91f)_0x290415[_0x499caf(0xda)](_0x59536c['id'])||_0x290415[_0x499caf(0xf7)](_0x59536c);function _0x12db88(_0x68eb88){const _0x207c6d=_0x499caf;_0x290415[_0x207c6d(0xda)](_0x68eb88)||_0x27153f[_0x207c6d(0x139)](_0x68eb88);}}}export{c as CloudServicesRevisionHistoryAdapter};function P(_0x5d7b9c){const _0x5c3260=_0x22a1bf;return _0x5d7b9c[_0x5c3260(0xfc)][_0x5c3260(0x123)](_0x5c3260(0x130))||_0x5d7b9c[_0x5c3260(0xfc)][_0x5c3260(0x123)](_0x5c3260(0xe1))||_0x5d7b9c[_0x5c3260(0xfc)][_0x5c3260(0x123)](_0x5c3260(0x134));}
23
+ const _0x129bee=_0x1929;(function(_0x3b9658,_0x42dc0f){const _0x4d3200=_0x1929,_0x34d9a1=_0x3b9658();while(!![]){try{const _0x46372e=-parseInt(_0x4d3200(0xe0))/0x1+-parseInt(_0x4d3200(0x100))/0x2+parseInt(_0x4d3200(0xdd))/0x3*(-parseInt(_0x4d3200(0xb8))/0x4)+-parseInt(_0x4d3200(0xa6))/0x5+-parseInt(_0x4d3200(0xd3))/0x6+-parseInt(_0x4d3200(0xe6))/0x7*(-parseInt(_0x4d3200(0xd7))/0x8)+parseInt(_0x4d3200(0x113))/0x9;if(_0x46372e===_0x42dc0f)break;else _0x34d9a1['push'](_0x34d9a1['shift']());}catch(_0x376728){_0x34d9a1['push'](_0x34d9a1['shift']());}}}(_0xf074,0x7d765));import{Plugin as _0x3fb36d}from'ckeditor5/src/core.js';import{version as _0x5991de}from'ckeditor5/src/utils.js';function _0xf074(){const _0x4d0d76=['isPremiumPlugin','cloud-services-internal-error:\x20Request\x20timeout.','max','code','cloud-services-internal-error:\x20Not\x20connected.','1649244dLrIyj','getUser','_handleRevisionsUpdate','authors','_lastRequestId','change:_isPendingUpdate','RevisionTracker','revisionsUpdated','addRevisionData','init','plugins','RevisionHistory','reverse','connect','state','_offset','has','serverHistory','creatorId','24257988mJbFqj','cloudServices.bundleVersion','_bufferedUpdates','_getLatestVersionFromServerOperations','isBundleUploaded','createdAt','711170OZrmTi','currentRevision','_fixRevision','_preventResendingRevisionData','getMany','CloudServicesRevisionHistoryAdapter','remove','sendBufferedUpdates','_revisionTracker','map','_revisions','config','marker','affectsData','pluginName','getOperations','connected','CONNECTED','163384VzfaVV','400','data','_isConnected','addUser','keys','isEnabled','change:_isConnected','updateRevisions','catch','add','_update','getRevisions','_createCurrentRevision','message','get','listenTo','setSource','isEmptyCurrent','startsWith','fromVersion','collaboration.channelId','repository','size','toVersion','_fetchMissingUsers','then','2954172eZGJos','_bufferUpdate','isOfficialPlugin','reInit','1223568yQpCjw','length','_handleReconnectionError','adapter','connection','buildRevisionData','24lkYgfm','_revisionHistoryService','bind','1007237PusWCe','type','addToReconnectionStack','authorsIds','wrongRequestId','_isPendingUpdate','28NMxVJF','baseVersion','sessionId','destroy','_startingVersion','_oldOffset','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','RevisionHistoryService','getRevision','reconnect','from','_waitForServiceReady','diffData','once','setRevisionData','editor','off','_revisionDataBuilder','isConnected','_getLatestVersion','requires'];_0xf074=function(){return _0x4d0d76;};return _0xf074();}import{Users as _0x2b6994}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x1929(_0x308d69,_0x30d226){const _0xf0749f=_0xf074();return _0x1929=function(_0x1929be,_0x80a68a){_0x1929be=_0x1929be-0xa4;let _0x308133=_0xf0749f[_0x1929be];return _0x308133;},_0x1929(_0x308d69,_0x30d226);}import{RealTimeCollaborationClient as _0x1f3569}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4efb77}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x52f0fd}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x2b3d2c,RevisionHistoryService as _0x122830,User as _0x59a201,WEB_SOCKET_GATEWAY_STATES as _0x4b7d98}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x3fb36d{static [_0x129bee(0xed)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x122830)());[_0x129bee(0x104)];[_0x129bee(0xae)];[_0x129bee(0xde)];[_0x129bee(0xeb)];static get[_0x129bee(0xfa)](){const _0x139bcc=_0x129bee;return[_0x4efb77,_0x1f3569,_0x139bcc(0x10b),_0x52f0fd,_0x2b6994];}static get[_0x129bee(0xb4)](){const _0x359f7e=_0x129bee;return _0x359f7e(0xab);}static get[_0x129bee(0xd5)](){return!0x0;}static get[_0x129bee(0xfb)](){return!0x0;}constructor(_0x36bad4){const _0x5e1c19=_0x129bee;super(_0x36bad4);const _0x400766=this[_0x5e1c19(0xf5)][_0x5e1c19(0xb1)][_0x5e1c19(0xc7)](_0x5e1c19(0xcd));this[_0x5e1c19(0x104)]=null,this[_0x5e1c19(0xae)]=this[_0x5e1c19(0xf5)][_0x5e1c19(0x10a)][_0x5e1c19(0xc7)](_0x5e1c19(0x106)),this[_0x5e1c19(0xde)]=new c[(_0x5e1c19(0xed))](_0x400766);}async[_0x129bee(0x109)](){const _0x1690e1=_0x129bee,_0x3a1963=this[_0x1690e1(0xf5)][_0x1690e1(0x10a)][_0x1690e1(0xc7)](_0x1f3569),_0x360cee=_0x3a1963[_0x1690e1(0x111)],_0x566dd3=this[_0x1690e1(0xf5)][_0x1690e1(0x10a)][_0x1690e1(0xc7)](_0x4efb77);this[_0x1690e1(0xae)][_0x1690e1(0xc9)]({'history':_0x360cee,'getLatestVersion':()=>this[_0x1690e1(0xf9)](),'getCurrentRevisionId':()=>_0x3a1963[_0x1690e1(0xe8)]});const _0x25aebd=this[_0x1690e1(0xf5)][_0x1690e1(0xb1)][_0x1690e1(0xc7)](_0x1690e1(0x114))||_0x5991de,_0xfcca8f=await _0x2b3d2c[_0x1690e1(0xa4)](_0x566dd3[_0x1690e1(0xdb)],_0x25aebd);this[_0x1690e1(0xf5)][_0x1690e1(0x10a)][_0x1690e1(0xc7)](_0x1690e1(0x10b))[_0x1690e1(0xda)]={'getRevision':async({revisionId:_0x3fbd0c})=>(await this[_0x1690e1(0xf1)](),await this[_0x1690e1(0xde)][_0x1690e1(0xee)](_0x3fbd0c)),'updateRevisions':async _0x50b194=>{const _0x527cae=_0x1690e1;await this[_0x527cae(0xf1)]();const _0x5d042e=this[_0x527cae(0xae)][_0x527cae(0xa7)];if(_0xfcca8f&&0x1===_0x50b194[_0x527cae(0xd8)]&&_0x50b194[0x0]['id']===_0x5d042e['id'])return _0x50b194;for(const _0x277df0 of _0x50b194)_0x277df0['id']===_0x5d042e['id']&&(_0x277df0[_0x527cae(0xca)]=_0x277df0[_0x527cae(0xcc)]===_0x277df0[_0x527cae(0xd0)]);return this[_0x527cae(0xde)][_0x527cae(0xc0)](_0x50b194,this[_0x527cae(0x104)])[_0x527cae(0xd2)](_0x343d2c=>(this[_0x527cae(0x104)]=_0x343d2c,_0x50b194))[_0x527cae(0xc1)](_0xcacad8=>{const _0x28e0d8=_0x527cae;if(P(_0xcacad8)||_0x28e0d8(0xb9)===_0xcacad8[_0x28e0d8(0xfe)]&&void 0x0!==_0xcacad8[_0x28e0d8(0xba)][_0x28e0d8(0xe4)]){for(const _0x1a977b of _0x50b194){!this[_0x28e0d8(0xae)][_0x28e0d8(0xce)][_0x28e0d8(0xee)](_0x1a977b['id'])||this[_0x28e0d8(0xae)][_0x28e0d8(0xd4)](_0x1a977b['id'],_0x1a977b,!0x1);}if(P(_0xcacad8))throw _0xcacad8;return _0x50b194;}throw _0xcacad8;});}},this[_0x1690e1(0xc8)](this[_0x1690e1(0xde)],_0x1690e1(0x107),(_0x494dcd,{revisionsData:_0x1b88fb,requestId:_0x270b2b})=>{const _0x1916b2=_0x1690e1;Math[_0x1916b2(0xfd)](..._0x1b88fb[_0x1916b2(0xaf)](_0x54186d=>_0x54186d[_0x1916b2(0xd0)]))>this[_0x1916b2(0x116)]()-0x1?this[_0x1916b2(0xf9)]()[_0x1916b2(0xd2)](()=>{const _0x6ba1a4=_0x1916b2;this[_0x6ba1a4(0x102)](_0x1b88fb,_0x270b2b);}):this[_0x1916b2(0x102)](_0x1b88fb,_0x270b2b);});const {revisions:_0x5688fc,requestId:_0x344619}=await this[_0x1690e1(0xde)][_0x1690e1(0x10d)](_0x566dd3[_0x1690e1(0xdb)]);_0x566dd3[_0x1690e1(0xe2)](this),this[_0x1690e1(0x104)]=_0x344619,await this[_0x1690e1(0xd1)](_0x5688fc);for(const _0x36b56b of _0x5688fc)this[_0x1690e1(0xae)][_0x1690e1(0x108)](_0x36b56b);this[_0x1690e1(0xc8)](_0x3a1963,_0x1690e1(0xbf),(_0x2bb482,_0x30d32e,_0x41f86e)=>{const _0x39e937=_0x1690e1;_0x41f86e&&(this[_0x39e937(0xeb)]=_0x3a1963[_0x39e937(0x10f)],_0x2bb482[_0x39e937(0xf6)]());}),this[_0x1690e1(0xae)][_0x1690e1(0xdf)](_0x1690e1(0xbe))['to'](_0x566dd3,_0x1690e1(0x10e),_0x158649=>_0x158649===_0x4b7d98[_0x1690e1(0xb7)]);}async[_0x129bee(0xef)](){const _0x5153f5=_0x129bee,_0x2d6b66=this[_0x5153f5(0xf5)][_0x5153f5(0x10a)][_0x5153f5(0xc7)](_0x4efb77),_0x276700=this[_0x5153f5(0xf5)][_0x5153f5(0x10a)][_0x5153f5(0xc7)](_0x1f3569),_0x549834=async()=>{const _0x3a4aea=_0x5153f5,_0x4084fd=this[_0x3a4aea(0xae)][_0x3a4aea(0xa7)],_0xb01262=_0x4084fd['id'],_0x2786d7=_0xb01262!==_0x276700[_0x3a4aea(0xe8)];if(_0x2786d7){const _0x3c4c52=_0x276700[_0x3a4aea(0x10f)]-this[_0x3a4aea(0xeb)],_0x29e69e=this[_0x3a4aea(0x116)]();this[_0x3a4aea(0xae)][_0x3a4aea(0xf7)][_0x3a4aea(0xd6)]();if(_0x4084fd[_0x3a4aea(0xd0)]+_0x3c4c52!==_0x29e69e){const _0x1aa245=_0x4084fd[_0x3a4aea(0xcc)]+_0x3c4c52,_0x5aae88=this[_0x3a4aea(0xf5)][_0x3a4aea(0x10a)][_0x3a4aea(0xc7)](_0x2b6994),_0x2caf8e=this[_0x3a4aea(0xae)][_0x3a4aea(0xdc)]({'revision':_0x4084fd,'from':_0x1aa245,'to':_0x29e69e});_0x2caf8e['id']=_0x4084fd['id'];const _0x1df79f=_0x2caf8e[_0x3a4aea(0xe3)][_0x3a4aea(0xaf)](_0x57683f=>_0x5aae88[_0x3a4aea(0x101)](_0x57683f));_0x4084fd[_0x3a4aea(0xc3)]({..._0x2caf8e,'authors':_0x1df79f},!0x0),this[_0x3a4aea(0xae)][_0x3a4aea(0xd4)](_0x4084fd['id'],_0x2caf8e,!0x0);}this[_0x3a4aea(0xae)][_0x3a4aea(0xea)]=_0x29e69e,(_0x4084fd[_0x3a4aea(0xd0)]===_0x4084fd[_0x3a4aea(0xcc)]&&!this[_0x3a4aea(0xae)][_0x3a4aea(0x115)][_0x3a4aea(0x110)](_0xb01262)&&this[_0x3a4aea(0xae)][_0x3a4aea(0xce)][_0x3a4aea(0xb0)][_0x3a4aea(0xac)](_0xb01262),this[_0x3a4aea(0xae)][_0x3a4aea(0xc5)](_0x29e69e));}const {revisions:_0x617c6e,requestId:_0x30d39c}=await this[_0x3a4aea(0xde)][_0x3a4aea(0xef)](_0x2d6b66[_0x3a4aea(0xdb)],this[_0x3a4aea(0x104)]);_0x2786d7&&_0x617c6e[_0x3a4aea(0xd8)]>0x0?_0x276700[_0x3a4aea(0xd9)]():(await this[_0x3a4aea(0xd1)](_0x617c6e),this[_0x3a4aea(0x102)](_0x617c6e,_0x30d39c),this[_0x3a4aea(0xae)][_0x3a4aea(0xad)]());};return _0x276700[_0x5153f5(0xbb)]?_0x549834():new Promise((_0x5470bf,_0x499439)=>{const _0x176de4=_0x5153f5;_0x276700[_0x176de4(0xf3)](_0x176de4(0xbf),()=>{const _0xa8da6c=_0x176de4;_0x549834()[_0xa8da6c(0xd2)](_0x5470bf)[_0xa8da6c(0xc1)](_0x499439);});});}[_0x129bee(0xe9)](){const _0xea5bb7=_0x129bee;super[_0xea5bb7(0xe9)]();}async[_0x129bee(0xf1)](){const _0xf92684=_0x129bee;this[_0xf92684(0xde)][_0xf92684(0xf8)]||await new Promise(_0x5debc4=>{const _0x1cb659=_0xf92684;this[_0x1cb659(0xc8)](this[_0x1cb659(0xde)],_0x1cb659(0xb6),_0x24d5b5=>{const _0x3c5ccb=_0x1cb659;_0x24d5b5[_0x3c5ccb(0xf6)](),_0x5debc4();});});}[_0x129bee(0x116)](){const _0x21fa53=_0x129bee,_0x2b472a=this[_0x21fa53(0xf5)][_0x21fa53(0x10a)][_0x21fa53(0xc7)](_0x1f3569)[_0x21fa53(0x111)][_0x21fa53(0xb5)]()[_0x21fa53(0x10c)]();for(const _0x3c4b2e of _0x2b472a)if(_0x21fa53(0xb2)!==_0x3c4b2e[_0x21fa53(0xe1)]||_0x3c4b2e[_0x21fa53(0xb3)])return _0x3c4b2e[_0x21fa53(0xe7)]+0x1;}[_0x129bee(0xf9)](){const _0x224874=_0x129bee,_0x3d374c=this[_0x224874(0xf5)][_0x224874(0x10a)][_0x224874(0xc7)](_0x1f3569);return new Promise(_0xd6e66=>{const _0x1c1b42=_0x224874;_0x3d374c[_0x1c1b42(0xe5)]?_0x3d374c[_0x1c1b42(0xf3)](_0x1c1b42(0x105),()=>{const _0x28a008=_0x1c1b42;_0xd6e66(this[_0x28a008(0x116)]());}):_0xd6e66(this[_0x1c1b42(0x116)]());});}[_0x129bee(0x102)](_0x400a02,_0x27044c){const _0x23c7a0=_0x129bee,_0x17315a=this[_0x23c7a0(0xae)][_0x23c7a0(0xce)];this[_0x23c7a0(0x104)]=_0x27044c;for(const _0xe14885 of _0x400a02){const _0x55a7fd=_0x17315a[_0x23c7a0(0xee)](_0xe14885['id']);if(_0x55a7fd){if((_0xe14885[_0x23c7a0(0xcc)]||_0xe14885[_0x23c7a0(0xd0)])&&(_0xe14885[_0x23c7a0(0xf2)]=null),_0x55a7fd===this[_0x23c7a0(0xae)][_0x23c7a0(0xa7)]){const _0x5441eb=Math[_0x23c7a0(0xfd)](_0x55a7fd[_0x23c7a0(0xd0)],_0xe14885[_0x23c7a0(0xd0)]),_0x18d3f9=Math[_0x23c7a0(0xfd)](_0x55a7fd[_0x23c7a0(0xcc)],_0xe14885[_0x23c7a0(0xcc)]);let _0x4439ab;_0x55a7fd[_0x23c7a0(0xd0)]===_0xe14885[_0x23c7a0(0xd0)]&&_0x55a7fd[_0x23c7a0(0xcc)]===_0xe14885[_0x23c7a0(0xcc)]?(_0x4439ab=!0x0,this[_0x23c7a0(0xa9)](_0xe14885)):_0xe14885[_0x23c7a0(0xd0)]===_0x5441eb&&_0xe14885[_0x23c7a0(0xcc)]===_0x18d3f9?_0x4439ab=!0x1:(_0x55a7fd[_0x23c7a0(0xd0)]===_0x5441eb&&_0x55a7fd[_0x23c7a0(0xcc)]===_0x18d3f9||this[_0x23c7a0(0xa8)]({'revision':_0x55a7fd,'from':_0x18d3f9,'to':_0x5441eb}),_0x4439ab=!0x0),_0x4439ab&&(delete _0xe14885[_0x23c7a0(0xcc)],delete _0xe14885[_0x23c7a0(0xd0)],delete _0xe14885[_0x23c7a0(0xf2)],delete _0xe14885[_0x23c7a0(0xa5)],delete _0xe14885[_0x23c7a0(0xe3)]);}this[_0x23c7a0(0xae)][_0x23c7a0(0xf4)](_0xe14885),this[_0x23c7a0(0xa9)](_0xe14885);}else this[_0x23c7a0(0xae)][_0x23c7a0(0x108)](_0xe14885);}const _0x3acd36=_0x17315a[_0x23c7a0(0xc4)]();_0x3acd36[_0x23c7a0(0x10c)]();for(let _0x1fa485=0x0;_0x1fa485<_0x3acd36[_0x23c7a0(0xd8)]-0x1;_0x1fa485++){const _0x25f880=_0x3acd36[_0x1fa485],_0x4446ff=_0x3acd36[_0x1fa485+0x1];if(_0x25f880[_0x23c7a0(0xcc)]<_0x4446ff[_0x23c7a0(0xd0)]){const _0x1f1477=_0x4446ff[_0x23c7a0(0xd0)],_0xbb5e6c=Math[_0x23c7a0(0xfd)](_0x1f1477,_0x25f880[_0x23c7a0(0xd0)]);this[_0x23c7a0(0xa8)]({'revision':_0x25f880,'from':_0x1f1477,'to':_0xbb5e6c});}}}[_0x129bee(0xa8)]({revision:_0x36e36d,from:_0x1bac63,to:_0x357abb}={}){const _0x57b5ca=_0x129bee,_0x2aabe5=this[_0x57b5ca(0xf5)][_0x57b5ca(0x10a)][_0x57b5ca(0xc7)](_0x2b6994),_0x119d87=this[_0x57b5ca(0xae)][_0x57b5ca(0xdc)]({'revision':_0x36e36d,'from':_0x1bac63,'to':_0x357abb});_0x119d87[_0x57b5ca(0x103)]=_0x119d87[_0x57b5ca(0xe3)][_0x57b5ca(0xaf)](_0x108b04=>_0x2aabe5[_0x57b5ca(0x101)](_0x108b04)),_0x36e36d[_0x57b5ca(0xc3)](_0x119d87);}[_0x129bee(0xa9)](_0xdeebe0){const _0x125db6=_0x129bee,_0x1facb8={};_0x1facb8['id']=_0xdeebe0['id'];for(const _0xd3a0b4 of Object[_0x125db6(0xbd)](_0xdeebe0))'id'!==_0xd3a0b4&&(_0x1facb8[_0xd3a0b4]=void 0x0);this[_0x125db6(0xae)][_0x125db6(0xd4)](_0x1facb8['id'],_0x1facb8,!0x0);}async[_0x129bee(0xd1)](_0x3d66ed){const _0x903b0=_0x129bee,_0x1afdfe=this[_0x903b0(0xf5)][_0x903b0(0x10a)][_0x903b0(0xc7)](_0x2b6994),{connection:_0xb835d2}=this[_0x903b0(0xf5)][_0x903b0(0x10a)][_0x903b0(0xc7)](_0x4efb77),_0x2ac1c9=new Set();for(const _0x2524ea of _0x3d66ed){for(const _0x1d1641 of _0x2524ea[_0x903b0(0xe3)])_0x4a0b21(_0x1d1641);_0x2524ea[_0x903b0(0x112)]&&_0x4a0b21(_0x2524ea[_0x903b0(0x112)]);}if(0x0===_0x2ac1c9[_0x903b0(0xcf)])return;const _0x321f5b=await _0x59a201[_0x903b0(0xaa)](_0xb835d2,Array[_0x903b0(0xf0)](_0x2ac1c9));for(const _0x53de54 of _0x321f5b)_0x1afdfe[_0x903b0(0x101)](_0x53de54['id'])||_0x1afdfe[_0x903b0(0xbc)](_0x53de54);function _0x4a0b21(_0x515974){const _0x24ea95=_0x903b0;_0x1afdfe[_0x24ea95(0x101)](_0x515974)||_0x2ac1c9[_0x24ea95(0xc2)](_0x515974);}}}export{c as CloudServicesRevisionHistoryAdapter};function P(_0x4c511f){const _0x1f9eb1=_0x129bee;return _0x4c511f[_0x1f9eb1(0xc6)][_0x1f9eb1(0xcb)](_0x1f9eb1(0xec))||_0x4c511f[_0x1f9eb1(0xc6)][_0x1f9eb1(0xcb)](_0x1f9eb1(0xff))||_0x4c511f[_0x1f9eb1(0xc6)][_0x1f9eb1(0xcb)](_0x1f9eb1(0xfc));}