@ckeditor/ckeditor5-real-time-collaboration 47.2.0 → 47.3.0-alpha.1
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/LICENSE.md +4 -4
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +14 -14
- package/src/common-translations.js +1 -1
- package/src/index.js +1 -1
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x391f56=_0x7334;(function(_0x14b130,_0x4ab12a){const _0x16da9b=_0x7334,_0x36ef6e=_0x14b130();while(!![]){try{const _0x54465b=-parseInt(_0x16da9b(0x1a0))/0x1*(parseInt(_0x16da9b(0x1b6))/0x2)+-parseInt(_0x16da9b(0x1a6))/0x3+parseInt(_0x16da9b(0x1bf))/0x4+parseInt(_0x16da9b(0x1c0))/0x5+-parseInt(_0x16da9b(0x1be))/0x6+parseInt(_0x16da9b(0x1bb))/0x7+parseInt(_0x16da9b(0x1c4))/0x8*(-parseInt(_0x16da9b(0x1af))/0x9);if(_0x54465b===_0x4ab12a)break;else _0x36ef6e['push'](_0x36ef6e['shift']());}catch(_0x30c45f){_0x36ef6e['push'](_0x36ef6e['shift']());}}}(_0x13b6,0x6a15d));import{View as _0x514630}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x57685e}from'ckeditor5/src/utils.js';function _0x13b6(){const _0x48ee31=['2634163zSuUPT','setTemplate','ck-presence-list__list','53994LLzcVX','3113824QIVRFp','261940qAihMO','.ck-balloon-panel_with-arrow','element','presencelist:hide','616CGkKdc','querySelector','7QYaOJK','createCollection','hasPopup','contains','bindTemplate','keystrokes','1723299qrmabx','items','change:hasPopup','list','setAttribute','removeAttribute','focus','div','Connected\x20users\x20list','21825HMaJnX','set','aria-expanded','listenTo','isExpanded','fire','presencelist:show','706DOpdxE','relatedTarget','.ck-presence-list__dropdown-list','render','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)'];_0x13b6=function(){return _0x48ee31;};return _0x13b6();}import{getTranslation as _0x41cd13}from'../../common-translations.js';function _0x7334(_0x230f9e,_0x41ae57){const _0x13b6de=_0x13b6();return _0x7334=function(_0x73349b,_0x138d4d){_0x73349b=_0x73349b-0x19f;let _0x510cd9=_0x13b6de[_0x73349b];return _0x510cd9;},_0x7334(_0x230f9e,_0x41ae57);}export class PresenceInlineListView extends _0x514630{[_0x391f56(0x1a7)];[_0x391f56(0x1a5)];constructor(_0x44907d){const _0x5c8d11=_0x391f56;super(_0x44907d);const _0x1634b5=this[_0x5c8d11(0x1a4)];this[_0x5c8d11(0x1a7)]=this[_0x5c8d11(0x1a1)](),this[_0x5c8d11(0x1a5)]=new _0x57685e(),this[_0x5c8d11(0x1b0)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x5c8d11(0x1bc)]({'tag':_0x5c8d11(0x1ad),'attributes':{'aria-haspopup':_0x1634b5['if'](_0x5c8d11(0x1a2)),'aria-expanded':_0x1634b5['to'](_0x5c8d11(0x1b3),_0x170604=>this[_0x5c8d11(0x1a2)]&&String(_0x170604)),'aria-label':_0x1634b5['to'](_0x5c8d11(0x1a2),_0x1d1e42=>_0x41cd13(_0x44907d,_0x1d1e42?_0x5c8d11(0x1ba):_0x5c8d11(0x1ae))),'role':_0x5c8d11(0x1a9),'tabindex':_0x1634b5['to'](_0x5c8d11(0x1a2),_0x2e107a=>!!_0x2e107a&&0x0),'class':['ck',_0x5c8d11(0x1bd)]},'children':this[_0x5c8d11(0x1a7)],'on':{'mouseenter':_0x1634b5['to'](()=>this[_0x5c8d11(0x1b4)](_0x5c8d11(0x1b5))),'mouseleave':_0x1634b5['to'](_0x4c030c=>{const _0x2158c5=_0x5c8d11,_0x589e63=_0x4c030c,_0x32d524=document[_0x2158c5(0x19f)](_0x2158c5(0x1b8)),_0x4ffbc2=document[_0x2158c5(0x19f)](_0x2158c5(0x1c1));_0x32d524?.[_0x2158c5(0x1a3)](_0x589e63[_0x2158c5(0x1b7)])||_0x4ffbc2?.[_0x2158c5(0x1a3)](_0x589e63[_0x2158c5(0x1b7)])||this[_0x2158c5(0x1b4)](_0x2158c5(0x1c3));})}}),this['on'](_0x5c8d11(0x1a8),(_0x5716ba,_0x3779b2,_0x303e35)=>{const _0x1ad1f2=_0x5c8d11;this[_0x1ad1f2(0x1c2)]&&(_0x303e35?this[_0x1ad1f2(0x1c2)][_0x1ad1f2(0x1aa)](_0x1ad1f2(0x1b1),String(this[_0x1ad1f2(0x1b3)])):this[_0x1ad1f2(0x1c2)][_0x1ad1f2(0x1ab)](_0x1ad1f2(0x1b1)));});}[_0x391f56(0x1ac)](){const _0xc2375d=_0x391f56;this[_0xc2375d(0x1c2)][_0xc2375d(0x1ac)]();}[_0x391f56(0x1b9)](){const _0x4ac0e9=_0x391f56;super[_0x4ac0e9(0x1b9)](),this[_0x4ac0e9(0x1a5)][_0x4ac0e9(0x1b2)](this[_0x4ac0e9(0x1c2)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2bf1(_0x421909,_0x563660){const _0xc6cae0=_0xc6ca();return _0x2bf1=function(_0x2bf1c2,_0x503b16){_0x2bf1c2=_0x2bf1c2-0x106;let _0x19b68f=_0xc6cae0[_0x2bf1c2];return _0x19b68f;},_0x2bf1(_0x421909,_0x563660);}const _0x41c033=_0x2bf1;(function(_0x342243,_0x2d0513){const _0x422fbc=_0x2bf1,_0x56c5bc=_0x342243();while(!![]){try{const _0x70c733=parseInt(_0x422fbc(0x110))/0x1*(parseInt(_0x422fbc(0x121))/0x2)+-parseInt(_0x422fbc(0x11a))/0x3+-parseInt(_0x422fbc(0x117))/0x4+-parseInt(_0x422fbc(0x10a))/0x5+parseInt(_0x422fbc(0x106))/0x6*(-parseInt(_0x422fbc(0x115))/0x7)+-parseInt(_0x422fbc(0x11c))/0x8+parseInt(_0x422fbc(0x11b))/0x9;if(_0x70c733===_0x2d0513)break;else _0x56c5bc['push'](_0x56c5bc['shift']());}catch(_0x35e38b){_0x56c5bc['push'](_0x56c5bc['shift']());}}}(_0xc6ca,0xbc516));import{View as _0x470438}from'ckeditor5/src/ui.js';import{PresenceCounterView as _0x31bd86}from'./presencecounterview.js';import{PresenceInlineListView as _0x5b2b8d}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';export class PresenceListView extends _0x470438{[_0x41c033(0x120)];[_0x41c033(0x118)];constructor(_0x595e97,_0x3f8850=0x6){const _0x5167bc=_0x41c033;super(_0x595e97);const _0x5c0354=this[_0x5167bc(0x10b)];this[_0x5167bc(0x11d)](_0x5167bc(0x109),!0x0),this[_0x5167bc(0x120)]=new _0x31bd86(this[_0x5167bc(0x119)],_0x3f8850),this[_0x5167bc(0x118)]=new _0x5b2b8d(_0x595e97),this[_0x5167bc(0x118)][_0x5167bc(0x116)](_0x5167bc(0x113))['to'](this,_0x5167bc(0x109)),this[_0x5167bc(0x114)](this[_0x5167bc(0x118)][_0x5167bc(0x112)],_0x5167bc(0x11f),()=>{const _0x1f30d6=_0x5167bc;for(const _0x5d6260 of this[_0x1f30d6(0x118)][_0x1f30d6(0x112)])_0x5d6260[_0x1f30d6(0x10f)]='s';this[_0x1f30d6(0x118)][_0x1f30d6(0x112)][_0x1f30d6(0x11e)]&&(this[_0x1f30d6(0x118)][_0x1f30d6(0x112)][_0x1f30d6(0x11e)][_0x1f30d6(0x10f)]='se');}),this[_0x5167bc(0x107)]({'tag':_0x5167bc(0x10e),'attributes':{'class':['ck',_0x5167bc(0x10d),_0x5167bc(0x111),_0x5167bc(0x10c),_0x5c0354['if'](_0x5167bc(0x109),_0x5167bc(0x108))]},'children':[this[_0x5167bc(0x118)]]});}}function _0xc6ca(){const _0x7f88d1=['2069PNpyPF','ck-reset','items','hasPopup','listenTo','12887AIORoC','bind','5841148GgBzUi','inlineListView','locale','693459oxrevc','29276325KbKdpV','2345568rJOVrB','set','first','change','counterView','730lZZfGI','1122hAXvsk','setTemplate','ck-presence-list--collapsed','isCollapsed','4539285daCzkj','bindTemplate','ck-rounded-corners','ck-presence-list','div','tooltipPosition'];_0xc6ca=function(){return _0x7f88d1;};return _0xc6ca();}
|
package/src/presencelist.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2e02f3=_0x588d;(function(_0x292790,_0x5788ea){var _0x595099=_0x588d,_0x425f92=_0x292790();while(!![]){try{var _0x1d4617=parseInt(_0x595099(0xd6))/0x1+-parseInt(_0x595099(0xd0))/0x2*(parseInt(_0x595099(0xce))/0x3)+-parseInt(_0x595099(0xd7))/0x4*(-parseInt(_0x595099(0xcb))/0x5)+-parseInt(_0x595099(0xca))/0x6+-parseInt(_0x595099(0xd2))/0x7*(-parseInt(_0x595099(0xcf))/0x8)+-parseInt(_0x595099(0xcd))/0x9*(parseInt(_0x595099(0xd4))/0xa)+-parseInt(_0x595099(0xcc))/0xb*(-parseInt(_0x595099(0xd5))/0xc);if(_0x1d4617===_0x5788ea)break;else _0x425f92['push'](_0x425f92['shift']());}catch(_0x21bb33){_0x425f92['push'](_0x425f92['shift']());}}}(_0x46e4,0x5b763));import{ContextPlugin as _0x38dcb7}from'ckeditor5/src/core.js';function _0x588d(_0x3cd6c9,_0x1b3441){var _0x46e4c0=_0x46e4();return _0x588d=function(_0x588dcd,_0x39d427){_0x588dcd=_0x588dcd-0xc9;var _0xb3107c=_0x46e4c0[_0x588dcd];return _0xb3107c;},_0x588d(_0x3cd6c9,_0x1b3441);}import{Sessions as _0x2dbcf1}from'./realtimecollaborativeediting/sessions.js';import{PresenceListUI as _0x56fead}from'./presencelist/presencelistui.js';function _0x46e4(){var _0x2b92cc=['6268044JkMsfk','172008faMILg','1886108JaDvSU','isPremiumPlugin','requires','PresenceList','3794256UKQJwU','5zyBtSg','22QssLWm','1974879rJryhD','573sARced','113816zOHzoF','6772KLrapU','isOfficialPlugin','91EohtTX','pluginName','10UXCMfu'];_0x46e4=function(){return _0x2b92cc;};return _0x46e4();}export class PresenceList extends _0x38dcb7{static get[_0x2e02f3(0xd9)](){return[_0x2dbcf1,_0x56fead];}static get[_0x2e02f3(0xd3)](){var _0x7ffba3=_0x2e02f3;return _0x7ffba3(0xc9);}static get[_0x2e02f3(0xd1)](){return!0x0;}static get[_0x2e02f3(0xd8)](){return!0x0;}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>_0x1c75a1)());[_0x3bd69d(0x142)];static get[_0x3bd69d(0xf8)](){const _0x51e9de=_0x3bd69d;return[_0x24a6b6,_0x51e9de(0x133),_0x5d43e3,_0x31686f];}static get[_0x3bd69d(0x136)](){const _0x39be5b=_0x3bd69d;return _0x39be5b(0x13c);}static get[_0x3bd69d(0x13a)](){return!0x0;}static get[_0x3bd69d(0x122)](){return!0x0;}constructor(_0x5a88dd){const _0x54a8aa=_0x3bd69d;super(_0x5a88dd),this[_0x54a8aa(0x142)]=new Map();}async[_0x3bd69d(0x128)](){const _0x5296a8=_0x3bd69d,_0x477998=this[_0x5296a8(0xfd)],_0x17125d=_0x477998[_0x5296a8(0x111)][_0x5296a8(0x13d)](_0x5296a8(0x133));if(_0x477998[_0x5296a8(0x111)][_0x5296a8(0x13d)](_0x24a6b6)[_0x5296a8(0x10d)](this),_0x17125d[_0x5296a8(0xf2)]={'addCommentThread':async({channelId:_0x1ef9c7,threadId:_0x4b3c41,comments:_0x39b67b,resolvedAt:_0x1db26d,resolvedBy:_0x37d432,context:_0x170ac6,attributes:_0x1807e6})=>{const _0x14816c=_0x5296a8,_0x2c6f3d=await this[_0x14816c(0x120)](_0x1ef9c7)[_0x14816c(0x149)]({'commentThreadId':_0x4b3c41,'comments':_0x39b67b[_0x14816c(0x104)](_0x42825d=>function(_0x2261bd,_0x2381c9,_0x18fc51){const _0x407eb5=_0x14816c;return{'commentThreadId':_0x18fc51,'commentId':_0x2261bd[_0x407eb5(0x13f)],'userId':_0x2261bd[_0x407eb5(0xe8)],'content':_0x2261bd[_0x407eb5(0xfa)],'documentId':_0x2381c9,'createdAt':_0x2261bd[_0x407eb5(0x126)],'attributes':_0x2261bd[_0x407eb5(0xea)]||{}};}(_0x42825d,_0x1ef9c7,_0x4b3c41)),'resolvedAt':_0x1db26d,'resolvedBy':_0x37d432,'context':_0x170ac6,'attributes':_0x1807e6})[_0x14816c(0x13e)](A);return{'threadId':_0x2c6f3d[_0x14816c(0x107)],'comments':_0x2c6f3d[_0x14816c(0xf3)]};},'getCommentThread':async({channelId:_0x2cedc0,threadId:_0x151db8})=>{const _0x73cceb=_0x5296a8,_0x560626=await this[_0x73cceb(0x120)](_0x2cedc0)[_0x73cceb(0x132)](_0x151db8)[_0x73cceb(0x13e)](f)[_0x73cceb(0x13e)](A);return _0x560626?_0x560626[_0x73cceb(0x12a)]?null:(await this[_0x73cceb(0x12f)]([_0x560626]),{'threadId':_0x560626[_0x73cceb(0x107)],'comments':_0x560626[_0x73cceb(0xf3)][_0x73cceb(0x104)](p),'context':_0x560626[_0x73cceb(0xfd)],'resolvedAt':_0x560626[_0x73cceb(0xfe)],'resolvedBy':_0x560626[_0x73cceb(0x118)],'attributes':_0x560626[_0x73cceb(0xea)]||{}}):null;},'updateCommentThread':async({channelId:_0x56a187,threadId:_0x5d9d5c,context:_0x62124e,unlinkedAt:_0x3bfe04,attributes:_0x9f8b49})=>this[_0x5296a8(0x120)](_0x56a187)[_0x5296a8(0x123)]({'commentThreadId':_0x5d9d5c,'context':_0x62124e,'attributes':_0x9f8b49,'unlinkedAt':_0x3bfe04})[_0x5296a8(0x13e)](f)[_0x5296a8(0x13e)](A),'resolveCommentThread':async({channelId:_0x348364,threadId:_0x53a14f})=>{const _0x4fac27=_0x5296a8,_0x5716bc=await this[_0x4fac27(0x120)](_0x348364)[_0x4fac27(0x131)](_0x53a14f)[_0x4fac27(0x13e)](f)[_0x4fac27(0x13e)](A);return{'threadId':_0x5716bc[_0x4fac27(0x107)],'resolvedAt':_0x5716bc[_0x4fac27(0xfe)],'resolvedBy':_0x5716bc[_0x4fac27(0x118)]};},'reopenCommentThread':async({channelId:_0x123267,threadId:_0x2e9bb6})=>this[_0x5296a8(0x120)](_0x123267)[_0x5296a8(0x143)](_0x2e9bb6)[_0x5296a8(0x13e)](f)[_0x5296a8(0x13e)](A),'removeCommentThread':({channelId:_0x46c34b,threadId:_0x1749b1})=>this[_0x5296a8(0x120)](_0x46c34b)[_0x5296a8(0x106)](_0x1749b1)[_0x5296a8(0x13e)](f)[_0x5296a8(0x13e)](A),'addComment':({channelId:_0x5269a8,threadId:_0x5b699c,commentId:_0x546f18,content:_0x2aadd9,attributes:_0x2aca57})=>this[_0x5296a8(0x120)](_0x5269a8)[_0x5296a8(0x134)](_0x5b699c,_0x546f18,_0x2aadd9,_0x2aca57)[_0x5296a8(0x13e)](A),'updateComment':({channelId:_0xc0fa58,threadId:_0x3239f5,commentId:_0x47bbea,content:_0xa5386b,attributes:_0x9fb5d8})=>this[_0x5296a8(0x120)](_0xc0fa58)[_0x5296a8(0x148)](_0x3239f5,_0x47bbea,_0xa5386b,_0x9fb5d8)[_0x5296a8(0x13e)](f)[_0x5296a8(0x13e)](A),'removeComment':({channelId:_0x279471,threadId:_0x2f0751,commentId:_0x2d07cf})=>this[_0x5296a8(0x120)](_0x279471)[_0x5296a8(0x12b)](_0x2f0751,_0x2d07cf)[_0x5296a8(0x13e)](f)[_0x5296a8(0x13e)](A)},_0x477998 instanceof _0x344782){const _0x29f6f2=_0x477998[_0x5296a8(0x141)][_0x5296a8(0x13d)](_0x5296a8(0x137)),_0x25f429=_0x477998[_0x5296a8(0x111)][_0x5296a8(0x13d)](_0x5d43e3);await this[_0x5296a8(0x117)](_0x29f6f2);const _0x20bcf2=await this[_0x5296a8(0x142)][_0x5296a8(0x13d)](_0x29f6f2)[_0x5296a8(0xee)]();this[_0x5296a8(0x119)](_0x25f429,_0x5296a8(0xfb)+_0x29f6f2,(_0x42dfe0,{session:_0x1d052a})=>{const _0x2c696c=_0x5296a8;_0x1d052a['id']===_0x25f429[_0x2c696c(0x127)]&&(_0x42dfe0[_0x2c696c(0xe9)](),this[_0x2c696c(0xfd)][_0x2c696c(0x111)][_0x2c696c(0x13d)](_0x2c696c(0x101))[_0x2c696c(0x12c)](_0x1d052a[_0x2c696c(0xec)],_0x29f6f2));}),_0x25f429[_0x5296a8(0x11d)](_0x29f6f2,_0x20bcf2);}}async[_0x3bd69d(0x117)](_0x1c7b12){const _0x1c8130=_0x3bd69d;if(this[_0x1c8130(0x142)][_0x1c8130(0xf9)](_0x1c7b12))throw new _0x4e2a7d(_0x1c8130(0x10e),null,{'channelId':_0x1c7b12});const _0x363716=this[_0x1c8130(0xfd)][_0x1c8130(0x111)][_0x1c8130(0x13d)](_0x1c8130(0x133)),_0x41c76e=new CloudServicesCommentsAdapter[(_0x1c8130(0x114))](_0x1c7b12);this[_0x1c8130(0x142)][_0x1c8130(0x12d)](_0x1c7b12,_0x41c76e),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0xe7),(_0x387f1e,_0x1660c2)=>{const _0x16f583=_0x1c8130,{commentThreadId:_0x1bcdae,documentId:_0x2841b8,context:_0x14f500,attributes:_0x2f5e90,resolvedAt:_0x28cc9d,resolvedBy:_0x5650d8,comments:_0x26ea41}=_0x1660c2;_0x363716[_0x16f583(0x132)](_0x1bcdae)||_0x363716[_0x16f583(0x149)]({'threadId':_0x1bcdae,'channelId':_0x2841b8,'comments':_0x26ea41?_0x26ea41[_0x16f583(0x104)](p):[],'context':_0x14f500,'attributes':_0x2f5e90,'resolvedAt':_0x28cc9d,'resolvedBy':_0x5650d8,'isFromAdapter':!0x0});}),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0x14c),(_0x1e9196,{commentThreadId:_0x550efa,documentId:_0x2fbcc0,context:_0x440e7d,unlinkedAt:_0x371aae,attributes:_0x1e02bb})=>{const _0x362222=_0x1c8130;_0x363716[_0x362222(0x132)](_0x550efa)&&_0x363716[_0x362222(0x123)]({'threadId':_0x550efa,'channelId':_0x2fbcc0,'context':_0x440e7d,'unlinkedAt':_0x371aae,'attributes':_0x1e02bb,'isFromAdapter':!0x0});}),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0x11f),(_0x11002c,{commentThreadId:_0x490bf8,resolvedBy:_0x396d04,resolvedAt:_0x5645c9})=>{const _0x1af9ce=_0x1c8130,_0x1cc616=_0x363716[_0x1af9ce(0x132)](_0x490bf8);_0x1cc616&&_0x1cc616[_0x1af9ce(0x112)]({'resolvedBy':_0x396d04,'resolvedAt':_0x5645c9,'isFromAdapter':!0x0});}),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0x13b),(_0x3040c4,{commentThreadId:_0x3cf082})=>{const _0x59642e=_0x1c8130,_0x2410d0=_0x363716[_0x59642e(0x132)](_0x3cf082);_0x2410d0&&_0x2410d0[_0x59642e(0xed)]({'isFromAdapter':!0x0});}),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0xfc),(_0x319a30,{commentThreadId:_0x4ecd48})=>{const _0x200793=_0x1c8130,_0x399fb6=_0x363716[_0x200793(0x132)](_0x4ecd48);_0x399fb6&&_0x399fb6[_0x200793(0x12e)]({'isFromAdapter':!0x0});}),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0x140),(_0x362e5a,_0x1afeb0)=>{const _0x28f314=_0x1c8130,_0x570af1=_0x1afeb0[_0x28f314(0x107)],_0x2b9639=_0x363716[_0x28f314(0x132)](_0x570af1);_0x2b9639&&_0x2b9639[_0x28f314(0x134)]({...p(_0x1afeb0),'isFromAdapter':!0x0});}),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0x113),(_0x4ed053,{commentThreadId:_0x42fd93,commentId:_0x56a55f,content:_0xf4dfff,attributes:_0x39863d})=>{const _0x4b52e3=_0x1c8130,_0x3134b2=_0x363716[_0x4b52e3(0x132)](_0x42fd93);if(_0x3134b2){const _0x113ed5=_0x3134b2[_0x4b52e3(0x105)](_0x56a55f);_0x113ed5&&_0x113ed5[_0x4b52e3(0xf1)]({'content':_0xf4dfff,'attributes':_0x39863d,'isFromAdapter':!0x0});}}),this[_0x1c8130(0x119)](_0x41c76e,_0x1c8130(0x138),(_0x17c224,{commentThreadId:_0x245828,commentId:_0x5b4404})=>{const _0xe9534f=_0x1c8130,_0x451e42=_0x363716[_0xe9534f(0x132)](_0x245828);if(_0x451e42){const _0x4abb65=_0x451e42[_0xe9534f(0x105)](_0x5b4404);_0x4abb65&&_0x4abb65[_0xe9534f(0x12e)]({'isFromAdapter':!0x0});}}),await this[_0x1c8130(0x116)](_0x1c7b12);}[_0x3bd69d(0x10a)](){const _0x5bd9af=_0x3bd69d;if(this[_0x5bd9af(0xfd)]instanceof _0x344782){const _0x24dc06=this[_0x5bd9af(0xfd)][_0x5bd9af(0x141)][_0x5bd9af(0x13d)](_0x5bd9af(0x137));this[_0x5bd9af(0xf4)](_0x24dc06);}}[_0x3bd69d(0xf4)](_0x3dbb18){const _0x16a4c3=_0x3bd69d;if(!this[_0x16a4c3(0x142)][_0x16a4c3(0xf9)](_0x3dbb18))throw new _0x4e2a7d(_0x16a4c3(0xf7),null,{'channelId':_0x3dbb18});this[_0x16a4c3(0x120)](_0x3dbb18)[_0x16a4c3(0x11b)](),this[_0x16a4c3(0x142)][_0x16a4c3(0x10c)](_0x3dbb18);}async[_0x3bd69d(0x11e)](){const _0x1a4f70=_0x3bd69d;for(const _0x3f6888 of this[_0x1a4f70(0x142)][_0x1a4f70(0x146)]())await this[_0x1a4f70(0x116)](_0x3f6888);if(this[_0x1a4f70(0xfd)]instanceof _0x344782){const _0x527982=this[_0x1a4f70(0xfd)][_0x1a4f70(0x141)][_0x1a4f70(0x13d)](_0x1a4f70(0x137)),_0x414e2a=this[_0x1a4f70(0xfd)][_0x1a4f70(0x111)][_0x1a4f70(0x13d)](_0x5d43e3);_0x414e2a[_0x1a4f70(0xf5)](_0x527982);const _0x2b69af=await this[_0x1a4f70(0x142)][_0x1a4f70(0x13d)](_0x527982)[_0x1a4f70(0xee)]();_0x414e2a[_0x1a4f70(0x11d)](_0x527982,_0x2b69af);}}async[_0x3bd69d(0x116)](_0x48584e){const _0x2762e8=_0x3bd69d,{connection:_0x42d080}=this[_0x2762e8(0xfd)][_0x2762e8(0x111)][_0x2762e8(0x13d)](_0x24a6b6),_0x4d456e=this[_0x2762e8(0xfd)][_0x2762e8(0x111)][_0x2762e8(0x13d)](_0x2762e8(0x133)),_0x1fc18d=this[_0x2762e8(0x142)][_0x2762e8(0x13d)](_0x48584e),_0x312d4f=await _0x1fc18d[_0x2762e8(0x10f)](_0x42d080);await this[_0x2762e8(0x12f)](_0x312d4f);const _0x322251=new Set(Array[_0x2762e8(0x135)](_0x4d456e[_0x2762e8(0x11a)]({'channelId':_0x48584e}),_0x18cf25=>_0x18cf25['id']));for(const _0x57a672 of _0x312d4f)_0x57a672[_0x2762e8(0x12a)]||_0x322251[_0x2762e8(0x10c)](_0x57a672[_0x2762e8(0x107)]);for(const _0x1be492 of _0x322251)_0x4d456e[_0x2762e8(0x132)](_0x1be492)[_0x2762e8(0x12e)]({'isFromAdapter':!0x0});for(const _0x1bd37c of _0x312d4f){let _0x17f6d9=_0x4d456e[_0x2762e8(0x132)](_0x1bd37c[_0x2762e8(0x107)]);const {commentThreadId:_0x576215,context:_0x5858b2,attributes:_0x278936,resolvedBy:_0x4a18f2,resolvedAt:_0x4c00b0,unlinkedAt:_0x4f43e7,deletedAt:_0x439f9c}=_0x1bd37c;if(_0x439f9c)continue;_0x17f6d9||(_0x17f6d9=_0x4d456e[_0x2762e8(0x149)]({'channelId':_0x48584e,'threadId':_0x576215,'context':_0x5858b2,'attributes':_0x278936||{},'resolvedBy':_0x4a18f2,'resolvedAt':_0x4c00b0,'unlinkedAt':_0x4f43e7,'isFromAdapter':!0x0}));const _0x681a31=new Set(Array[_0x2762e8(0x135)](_0x17f6d9[_0x2762e8(0xf3)],_0x5a23e6=>_0x5a23e6['id']));for(const _0x3c4a80 of _0x1bd37c[_0x2762e8(0xf3)])_0x681a31[_0x2762e8(0x10c)](_0x3c4a80[_0x2762e8(0x13f)]);for(const _0x34d05c of _0x681a31)_0x17f6d9[_0x2762e8(0x105)](_0x34d05c)[_0x2762e8(0x12e)]({'isFromAdapter':!0x0});for(const _0x20dd93 of _0x1bd37c[_0x2762e8(0xf3)]){const _0x56cd0b=_0x17f6d9[_0x2762e8(0x105)](_0x20dd93[_0x2762e8(0x13f)]);_0x56cd0b?_0x56cd0b[_0x2762e8(0xfa)]!==_0x20dd93[_0x2762e8(0xfa)]&&_0x56cd0b[_0x2762e8(0xf1)]({'content':_0x20dd93[_0x2762e8(0xfa)],'isFromAdapter':!0x0}):_0x17f6d9[_0x2762e8(0x134)](Object[_0x2762e8(0xf0)](p(_0x20dd93),{'isFromAdapter':!0x0}));}}}[_0x3bd69d(0x120)](_0x37b235){const _0xfca8b5=_0x3bd69d;if(!this[_0xfca8b5(0x142)][_0xfca8b5(0xf9)](_0x37b235))throw new _0x4e2a7d(_0xfca8b5(0x14b),null,{'channelId':_0x37b235});return this[_0xfca8b5(0x142)][_0xfca8b5(0x13d)](_0x37b235);}async[_0x3bd69d(0x12f)](_0x8656c5){const _0x221f73=_0x3bd69d,_0x1cadf=this[_0x221f73(0xfd)][_0x221f73(0x111)][_0x221f73(0x13d)](_0x31686f),{connection:_0x448069}=this[_0x221f73(0xfd)][_0x221f73(0x111)][_0x221f73(0x13d)](_0x24a6b6),_0x57b37d=new Set();for(const {resolvedBy:_0x231a29,comments:_0xa07d36}of _0x8656c5){_0x231a29&&!_0x1cadf[_0x221f73(0xff)](_0x231a29)&&_0x57b37d[_0x221f73(0x124)](_0x231a29);for(const {userId:_0x6c5f6b}of _0xa07d36)_0x1cadf[_0x221f73(0xff)](_0x6c5f6b)||_0x57b37d[_0x221f73(0x124)](_0x6c5f6b);}if(0x0===_0x57b37d[_0x221f73(0x121)])return;const _0x354978=await _0x414445[_0x221f73(0xef)](_0x448069,Array[_0x221f73(0x135)](_0x57b37d));for(const _0x29aec3 of _0x354978)_0x1cadf[_0x221f73(0xff)](_0x29aec3['id'])||_0x1cadf[_0x221f73(0x102)](_0x29aec3);}}async function f(_0x18baa9){const _0x34d914=_0x3bd69d;if(_0x34d914(0x108)!==_0x18baa9[_0x34d914(0x110)])throw _0x18baa9;}function A(_0x57cdc9){const _0x22e5cc=_0x3bd69d;if((_0x2f8b47=_0x57cdc9)[_0x22e5cc(0x115)][_0x22e5cc(0x109)](_0x22e5cc(0x144))||_0x2f8b47[_0x22e5cc(0x115)][_0x22e5cc(0x109)](_0x22e5cc(0x129))||_0x2f8b47[_0x22e5cc(0x115)][_0x22e5cc(0x109)](_0x22e5cc(0xeb)))return new Promise(()=>{});var _0x2f8b47;throw _0x57cdc9;}function p(_0x31bb50){const _0x475c7a=_0x3bd69d;return{'threadId':_0x31bb50[_0x475c7a(0x107)],'commentId':_0x31bb50[_0x475c7a(0x13f)],'content':_0x31bb50[_0x475c7a(0xfa)],'createdAt':_0x31bb50[_0x475c7a(0x126)],'authorId':_0x31bb50[_0x475c7a(0x100)],'attributes':_0x31bb50[_0x475c7a(0xea)]||{}};}
|
|
23
|
+
const _0x54f082=_0x3ebc;(function(_0xc23802,_0xfa3b22){const _0x45f789=_0x3ebc,_0x2b894d=_0xc23802();while(!![]){try{const _0x1c21ba=-parseInt(_0x45f789(0x192))/0x1*(parseInt(_0x45f789(0x19c))/0x2)+parseInt(_0x45f789(0x1a6))/0x3*(parseInt(_0x45f789(0x189))/0x4)+-parseInt(_0x45f789(0x174))/0x5*(parseInt(_0x45f789(0x179))/0x6)+-parseInt(_0x45f789(0x1c0))/0x7*(parseInt(_0x45f789(0x1af))/0x8)+-parseInt(_0x45f789(0x183))/0x9*(parseInt(_0x45f789(0x16a))/0xa)+parseInt(_0x45f789(0x1ba))/0xb+parseInt(_0x45f789(0x175))/0xc*(parseInt(_0x45f789(0x1c2))/0xd);if(_0x1c21ba===_0xfa3b22)break;else _0x2b894d['push'](_0x2b894d['shift']());}catch(_0x95295a){_0x2b894d['push'](_0x2b894d['shift']());}}}(_0x1117,0xbfb70));function _0x1117(){const _0x1664fd=['_fetchMissingUsersForThreads','getUser','isPremiumPlugin','getMany','has','isOfficialPlugin','7769663xXFkXZ','resolve','init','authorId','cloud-services-internal-error:\x20Not\x20connected.','size','2345BKtRkb','off','27326kLnrFS','cloudservicescommentsadapter-service-not-exist','commentThreadUpdated','_setUpService','reopen','update','commentThreadReopened','reconnect','commentThreadAdded','_connectService','getCommentThreads','permissions','Permissions','getComment','set','commentRemoved','setPermissions','7037530wGKxid','requires','register','_getService','deletedAt','updateComment','context','commentThreadRemoved','message','commentId','5jRpwQV','20172eWyQuF','resolvedBy','commentAdded','startsWith','7543986JToAri','getConnectedSessions','config','reopenCommentThread','plugins','_terminateService','getCommentThread','catch','404','_services','9uRikMu','delete','connect','code','commentUpdated','unregister','2203804LrCqaQ','assign','cloudservicescommentsadapter-connect-already-connected','commentThreadResolved','createdAt','get','listenTo','addCommentThread','pluginName','529PgCpDs','sessionAdd:','removeCommentThread','collaboration.channelId','keys','map','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','attributes','mySessionId','destroy','5314DwrGOl','add','comments','from','CloudServicesCommentsAdapter','resolveCommentThread','updateCommentThread','userId','removeComment','remove','3EOQQNc','adapter','resolvedAt','cloudservicescommentsadapter-disconnect-not-exist','addComment','commentThreadId','addUser','content','CommentsService','15256VrPKMt','disconnect','CommentsRepository','cloud-services-internal-error:\x20Request\x20timeout.','addToReconnectionStack'];_0x1117=function(){return _0x1664fd;};return _0x1117();}import{Context as _0x2f16bc,ContextPlugin as _0x1d9796}from'ckeditor5/src/core.js';import{CKEditorError as _0x2c9f59}from'ckeditor5/src/utils.js';import{Users as _0x3caef2}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0xb84a8d,User as _0x507414}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x52fba3}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x50fb68}from'../realtimecollaborativeediting/sessions.js';function _0x3ebc(_0x11a052,_0x3067ab){const _0x11174c=_0x1117();return _0x3ebc=function(_0x3ebcda,_0x4bbb3e){_0x3ebcda=_0x3ebcda-0x167;let _0x462407=_0x11174c[_0x3ebcda];return _0x462407;},_0x3ebc(_0x11a052,_0x3067ab);}export class CloudServicesCommentsAdapter extends _0x1d9796{static [_0x54f082(0x1ae)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0xb84a8d)());[_0x54f082(0x182)];static get[_0x54f082(0x16b)](){const _0x22129a=_0x54f082;return[_0x52fba3,_0x22129a(0x1b1),_0x50fb68,_0x3caef2];}static get[_0x54f082(0x191)](){const _0x197349=_0x54f082;return _0x197349(0x1a0);}static get[_0x54f082(0x1b9)](){return!0x0;}static get[_0x54f082(0x1b6)](){return!0x0;}constructor(_0x4821ef){const _0x1b3f63=_0x54f082;super(_0x4821ef),this[_0x1b3f63(0x182)]=new Map();}async[_0x54f082(0x1bc)](){const _0x1898f3=_0x54f082,_0xae0c19=this[_0x1898f3(0x170)],_0x1aa5ed=_0xae0c19[_0x1898f3(0x17d)][_0x1898f3(0x18e)](_0x1898f3(0x1b1));if(_0xae0c19[_0x1898f3(0x17d)][_0x1898f3(0x18e)](_0x52fba3)[_0x1898f3(0x1b3)](this),_0x1aa5ed[_0x1898f3(0x1a7)]={'addCommentThread':async({channelId:_0x1f4b02,threadId:_0xd12a8b,comments:_0xef9824,resolvedAt:_0x21e16a,resolvedBy:_0x538193,context:_0x4c6e01,attributes:_0x3f498d})=>{const _0x5c45b4=_0x1898f3,_0x53bb22=await this[_0x5c45b4(0x16d)](_0x1f4b02)[_0x5c45b4(0x190)]({'commentThreadId':_0xd12a8b,'comments':_0xef9824[_0x5c45b4(0x197)](_0x3f80fa=>function(_0x645988,_0x3b0d3a,_0x37e68e){const _0x2dd2fa=_0x5c45b4;return{'commentThreadId':_0x37e68e,'commentId':_0x645988[_0x2dd2fa(0x173)],'userId':_0x645988[_0x2dd2fa(0x1bd)],'content':_0x645988[_0x2dd2fa(0x1ad)],'documentId':_0x3b0d3a,'createdAt':_0x645988[_0x2dd2fa(0x18d)],'attributes':_0x645988[_0x2dd2fa(0x199)]||{}};}(_0x3f80fa,_0x1f4b02,_0xd12a8b)),'resolvedAt':_0x21e16a,'resolvedBy':_0x538193,'context':_0x4c6e01,'attributes':_0x3f498d})[_0x5c45b4(0x180)](T);return{'threadId':_0x53bb22[_0x5c45b4(0x1ab)],'comments':_0x53bb22[_0x5c45b4(0x19e)]};},'getCommentThread':async({channelId:_0x47b3a1,threadId:_0x548a5d})=>{const _0x221a72=_0x1898f3,_0x2844f7=await this[_0x221a72(0x16d)](_0x47b3a1)[_0x221a72(0x17f)](_0x548a5d)[_0x221a72(0x180)](ot)[_0x221a72(0x180)](T);return _0x2844f7?_0x2844f7[_0x221a72(0x16e)]?null:(await this[_0x221a72(0x1b4)]([_0x2844f7]),{'threadId':_0x2844f7[_0x221a72(0x1ab)],'comments':_0x2844f7[_0x221a72(0x19e)][_0x221a72(0x197)](nt),'context':_0x2844f7[_0x221a72(0x170)],'resolvedAt':_0x2844f7[_0x221a72(0x1a8)],'resolvedBy':_0x2844f7[_0x221a72(0x176)],'attributes':_0x2844f7[_0x221a72(0x199)]||{}}):null;},'updateCommentThread':async({channelId:_0x29f594,threadId:_0x22b3f6,context:_0x23ff3a,unlinkedAt:_0x21cf8a,attributes:_0x4034f9})=>this[_0x1898f3(0x16d)](_0x29f594)[_0x1898f3(0x1a2)]({'commentThreadId':_0x22b3f6,'context':_0x23ff3a,'attributes':_0x4034f9,'unlinkedAt':_0x21cf8a})[_0x1898f3(0x180)](ot)[_0x1898f3(0x180)](T),'resolveCommentThread':async({channelId:_0x104fad,threadId:_0x5ab78a})=>{const _0x2d5402=_0x1898f3,_0x355a24=await this[_0x2d5402(0x16d)](_0x104fad)[_0x2d5402(0x1a1)](_0x5ab78a)[_0x2d5402(0x180)](ot)[_0x2d5402(0x180)](T);return{'threadId':_0x355a24[_0x2d5402(0x1ab)],'resolvedAt':_0x355a24[_0x2d5402(0x1a8)],'resolvedBy':_0x355a24[_0x2d5402(0x176)]};},'reopenCommentThread':async({channelId:_0x5191b8,threadId:_0x5d03a7})=>this[_0x1898f3(0x16d)](_0x5191b8)[_0x1898f3(0x17c)](_0x5d03a7)[_0x1898f3(0x180)](ot)[_0x1898f3(0x180)](T),'removeCommentThread':({channelId:_0x20c541,threadId:_0x5745e6})=>this[_0x1898f3(0x16d)](_0x20c541)[_0x1898f3(0x194)](_0x5745e6)[_0x1898f3(0x180)](ot)[_0x1898f3(0x180)](T),'addComment':({channelId:_0x439c2f,threadId:_0x1f080b,commentId:_0x16fff4,content:_0xc42c77,attributes:_0x335fec})=>this[_0x1898f3(0x16d)](_0x439c2f)[_0x1898f3(0x1aa)](_0x1f080b,_0x16fff4,_0xc42c77,_0x335fec)[_0x1898f3(0x180)](T),'updateComment':({channelId:_0x5b6ae6,threadId:_0x43abc8,commentId:_0x17284e,content:_0x86361e,attributes:_0x5b9561})=>this[_0x1898f3(0x16d)](_0x5b6ae6)[_0x1898f3(0x16f)](_0x43abc8,_0x17284e,_0x86361e,_0x5b9561)[_0x1898f3(0x180)](ot)[_0x1898f3(0x180)](T),'removeComment':({channelId:_0x10a6e9,threadId:_0x6b0a01,commentId:_0x1ad9a0})=>this[_0x1898f3(0x16d)](_0x10a6e9)[_0x1898f3(0x1a4)](_0x6b0a01,_0x1ad9a0)[_0x1898f3(0x180)](ot)[_0x1898f3(0x180)](T)},_0xae0c19 instanceof _0x2f16bc){const _0x42eea7=_0xae0c19[_0x1898f3(0x17b)][_0x1898f3(0x18e)](_0x1898f3(0x195)),_0x16ce33=_0xae0c19[_0x1898f3(0x17d)][_0x1898f3(0x18e)](_0x50fb68);await this[_0x1898f3(0x1c5)](_0x42eea7);const _0x36e341=await this[_0x1898f3(0x182)][_0x1898f3(0x18e)](_0x42eea7)[_0x1898f3(0x17a)]();this[_0x1898f3(0x18f)](_0x16ce33,_0x1898f3(0x193)+_0x42eea7,(_0x5e6d6f,{session:_0x25923b})=>{const _0x5c7ee6=_0x1898f3;_0x25923b['id']===_0x16ce33[_0x5c7ee6(0x19a)]&&(_0x5e6d6f[_0x5c7ee6(0x1c1)](),this[_0x5c7ee6(0x170)][_0x5c7ee6(0x17d)][_0x5c7ee6(0x18e)](_0x5c7ee6(0x1ce))[_0x5c7ee6(0x169)](_0x25923b[_0x5c7ee6(0x1cd)],_0x42eea7));}),_0x16ce33[_0x1898f3(0x16c)](_0x42eea7,_0x36e341);}}async[_0x54f082(0x1c5)](_0x2befe9){const _0x3a4452=_0x54f082;if(this[_0x3a4452(0x182)][_0x3a4452(0x1b8)](_0x2befe9))throw new _0x2c9f59(_0x3a4452(0x18b),null,{'channelId':_0x2befe9});const _0x17b2db=this[_0x3a4452(0x170)][_0x3a4452(0x17d)][_0x3a4452(0x18e)](_0x3a4452(0x1b1)),_0xff5dfa=new CloudServicesCommentsAdapter[(_0x3a4452(0x1ae))](_0x2befe9);this[_0x3a4452(0x182)][_0x3a4452(0x167)](_0x2befe9,_0xff5dfa),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x1ca),(_0x586d92,_0x30b0d3)=>{const _0x5c770a=_0x3a4452,{commentThreadId:_0x45270d,documentId:_0x5f50c0,context:_0x103e5a,attributes:_0xbf58c6,resolvedAt:_0x2ffbdf,resolvedBy:_0x31b630,comments:_0x58958b}=_0x30b0d3;_0x17b2db[_0x5c770a(0x17f)](_0x45270d)||_0x17b2db[_0x5c770a(0x190)]({'threadId':_0x45270d,'channelId':_0x5f50c0,'comments':_0x58958b?_0x58958b[_0x5c770a(0x197)](nt):[],'context':_0x103e5a,'attributes':_0xbf58c6,'resolvedAt':_0x2ffbdf,'resolvedBy':_0x31b630,'isFromAdapter':!0x0});}),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x1c4),(_0x43da99,{commentThreadId:_0x454e21,documentId:_0x56a4ef,context:_0x1a5e6d,unlinkedAt:_0x522d44,attributes:_0x9b8a6b})=>{const _0xc871c=_0x3a4452;_0x17b2db[_0xc871c(0x17f)](_0x454e21)&&_0x17b2db[_0xc871c(0x1a2)]({'threadId':_0x454e21,'channelId':_0x56a4ef,'context':_0x1a5e6d,'unlinkedAt':_0x522d44,'attributes':_0x9b8a6b,'isFromAdapter':!0x0});}),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x18c),(_0x5c6aef,{commentThreadId:_0x12a52e,resolvedBy:_0x5a93a1,resolvedAt:_0x5335e4})=>{const _0x3797df=_0x3a4452,_0x2e8831=_0x17b2db[_0x3797df(0x17f)](_0x12a52e);_0x2e8831&&_0x2e8831[_0x3797df(0x1bb)]({'resolvedBy':_0x5a93a1,'resolvedAt':_0x5335e4,'isFromAdapter':!0x0});}),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x1c8),(_0x27e9ac,{commentThreadId:_0x72deb1})=>{const _0x16e1e2=_0x3a4452,_0xd99893=_0x17b2db[_0x16e1e2(0x17f)](_0x72deb1);_0xd99893&&_0xd99893[_0x16e1e2(0x1c6)]({'isFromAdapter':!0x0});}),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x171),(_0x2f6e7e,{commentThreadId:_0x5685a8})=>{const _0x420c56=_0x3a4452,_0x538153=_0x17b2db[_0x420c56(0x17f)](_0x5685a8);_0x538153&&_0x538153[_0x420c56(0x1a5)]({'isFromAdapter':!0x0});}),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x177),(_0x5f1c04,_0x2be02a)=>{const _0x5405ff=_0x3a4452,_0x51aedb=_0x2be02a[_0x5405ff(0x1ab)],_0x591e17=_0x17b2db[_0x5405ff(0x17f)](_0x51aedb);_0x591e17&&_0x591e17[_0x5405ff(0x1aa)]({...nt(_0x2be02a),'isFromAdapter':!0x0});}),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x187),(_0x259125,{commentThreadId:_0x50d490,commentId:_0x5284e9,content:_0xc38120,attributes:_0x2a29a3})=>{const _0x36e88a=_0x3a4452,_0x57452b=_0x17b2db[_0x36e88a(0x17f)](_0x50d490);if(_0x57452b){const _0x898b7d=_0x57452b[_0x36e88a(0x1cf)](_0x5284e9);_0x898b7d&&_0x898b7d[_0x36e88a(0x1c7)]({'content':_0xc38120,'attributes':_0x2a29a3,'isFromAdapter':!0x0});}}),this[_0x3a4452(0x18f)](_0xff5dfa,_0x3a4452(0x168),(_0x3f3edc,{commentThreadId:_0x20d303,commentId:_0x362519})=>{const _0x5c5c9f=_0x3a4452,_0x11b191=_0x17b2db[_0x5c5c9f(0x17f)](_0x20d303);if(_0x11b191){const _0x57b432=_0x11b191[_0x5c5c9f(0x1cf)](_0x362519);_0x57b432&&_0x57b432[_0x5c5c9f(0x1a5)]({'isFromAdapter':!0x0});}}),await this[_0x3a4452(0x1cb)](_0x2befe9);}[_0x54f082(0x19b)](){const _0x22e719=_0x54f082;if(this[_0x22e719(0x170)]instanceof _0x2f16bc){const _0x932d6e=this[_0x22e719(0x170)][_0x22e719(0x17b)][_0x22e719(0x18e)](_0x22e719(0x195));this[_0x22e719(0x17e)](_0x932d6e);}}[_0x54f082(0x17e)](_0x4a3f5c){const _0x34dc15=_0x54f082;if(!this[_0x34dc15(0x182)][_0x34dc15(0x1b8)](_0x4a3f5c))throw new _0x2c9f59(_0x34dc15(0x1a9),null,{'channelId':_0x4a3f5c});this[_0x34dc15(0x16d)](_0x4a3f5c)[_0x34dc15(0x1b0)](),this[_0x34dc15(0x182)][_0x34dc15(0x184)](_0x4a3f5c);}async[_0x54f082(0x1c9)](){const _0x571827=_0x54f082;for(const _0xddd5d7 of this[_0x571827(0x182)][_0x571827(0x196)]())await this[_0x571827(0x1cb)](_0xddd5d7);if(this[_0x571827(0x170)]instanceof _0x2f16bc){const _0x49b480=this[_0x571827(0x170)][_0x571827(0x17b)][_0x571827(0x18e)](_0x571827(0x195)),_0x3dbb48=this[_0x571827(0x170)][_0x571827(0x17d)][_0x571827(0x18e)](_0x50fb68);_0x3dbb48[_0x571827(0x188)](_0x49b480);const _0x138161=await this[_0x571827(0x182)][_0x571827(0x18e)](_0x49b480)[_0x571827(0x17a)]();_0x3dbb48[_0x571827(0x16c)](_0x49b480,_0x138161);}}async[_0x54f082(0x1cb)](_0x36d428){const _0x26f883=_0x54f082,{connection:_0xca2ef1}=this[_0x26f883(0x170)][_0x26f883(0x17d)][_0x26f883(0x18e)](_0x52fba3),_0x41dec8=this[_0x26f883(0x170)][_0x26f883(0x17d)][_0x26f883(0x18e)](_0x26f883(0x1b1)),_0x3b19ad=this[_0x26f883(0x182)][_0x26f883(0x18e)](_0x36d428),_0x1a5ce0=await _0x3b19ad[_0x26f883(0x185)](_0xca2ef1);await this[_0x26f883(0x1b4)](_0x1a5ce0);const _0xeda75d=new Set(Array[_0x26f883(0x19f)](_0x41dec8[_0x26f883(0x1cc)]({'channelId':_0x36d428}),_0x28466d=>_0x28466d['id']));for(const _0x4d3371 of _0x1a5ce0)_0x4d3371[_0x26f883(0x16e)]||_0xeda75d[_0x26f883(0x184)](_0x4d3371[_0x26f883(0x1ab)]);for(const _0x2556d9 of _0xeda75d)_0x41dec8[_0x26f883(0x17f)](_0x2556d9)[_0x26f883(0x1a5)]({'isFromAdapter':!0x0});for(const _0x12b85e of _0x1a5ce0){let _0x4fd26c=_0x41dec8[_0x26f883(0x17f)](_0x12b85e[_0x26f883(0x1ab)]);const {commentThreadId:_0x50b4b7,context:_0x3440ea,attributes:_0x1ae8bf,resolvedBy:_0x4ea38c,resolvedAt:_0x2a6e1e,unlinkedAt:_0x33ce95,deletedAt:_0x431e42}=_0x12b85e;if(_0x431e42)continue;_0x4fd26c||(_0x4fd26c=_0x41dec8[_0x26f883(0x190)]({'channelId':_0x36d428,'threadId':_0x50b4b7,'context':_0x3440ea,'attributes':_0x1ae8bf||{},'resolvedBy':_0x4ea38c,'resolvedAt':_0x2a6e1e,'unlinkedAt':_0x33ce95,'isFromAdapter':!0x0}));const _0x489e4f=new Set(Array[_0x26f883(0x19f)](_0x4fd26c[_0x26f883(0x19e)],_0x194081=>_0x194081['id']));for(const _0x1caccb of _0x12b85e[_0x26f883(0x19e)])_0x489e4f[_0x26f883(0x184)](_0x1caccb[_0x26f883(0x173)]);for(const _0x2fa551 of _0x489e4f)_0x4fd26c[_0x26f883(0x1cf)](_0x2fa551)[_0x26f883(0x1a5)]({'isFromAdapter':!0x0});for(const _0x5ccf00 of _0x12b85e[_0x26f883(0x19e)]){const _0x535013=_0x4fd26c[_0x26f883(0x1cf)](_0x5ccf00[_0x26f883(0x173)]);_0x535013?_0x535013[_0x26f883(0x1ad)]!==_0x5ccf00[_0x26f883(0x1ad)]&&_0x535013[_0x26f883(0x1c7)]({'content':_0x5ccf00[_0x26f883(0x1ad)],'isFromAdapter':!0x0}):_0x4fd26c[_0x26f883(0x1aa)](Object[_0x26f883(0x18a)](nt(_0x5ccf00),{'isFromAdapter':!0x0}));}}}[_0x54f082(0x16d)](_0x594000){const _0x5a22e7=_0x54f082;if(!this[_0x5a22e7(0x182)][_0x5a22e7(0x1b8)](_0x594000))throw new _0x2c9f59(_0x5a22e7(0x1c3),null,{'channelId':_0x594000});return this[_0x5a22e7(0x182)][_0x5a22e7(0x18e)](_0x594000);}async[_0x54f082(0x1b4)](_0x21af1b){const _0x1b1223=_0x54f082,_0x319f46=this[_0x1b1223(0x170)][_0x1b1223(0x17d)][_0x1b1223(0x18e)](_0x3caef2),{connection:_0x30c60b}=this[_0x1b1223(0x170)][_0x1b1223(0x17d)][_0x1b1223(0x18e)](_0x52fba3),_0x505893=new Set();for(const {resolvedBy:_0x21f865,comments:_0x458d0e}of _0x21af1b){_0x21f865&&!_0x319f46[_0x1b1223(0x1b5)](_0x21f865)&&_0x505893[_0x1b1223(0x19d)](_0x21f865);for(const {userId:_0x24fb04}of _0x458d0e)_0x319f46[_0x1b1223(0x1b5)](_0x24fb04)||_0x505893[_0x1b1223(0x19d)](_0x24fb04);}if(0x0===_0x505893[_0x1b1223(0x1bf)])return;const _0x3974b8=await _0x507414[_0x1b1223(0x1b7)](_0x30c60b,Array[_0x1b1223(0x19f)](_0x505893));for(const _0x38b8f of _0x3974b8)_0x319f46[_0x1b1223(0x1b5)](_0x38b8f['id'])||_0x319f46[_0x1b1223(0x1ac)](_0x38b8f);}}async function ot(_0x6506b8){const _0x516c5d=_0x54f082;if(_0x516c5d(0x181)!==_0x6506b8[_0x516c5d(0x186)])throw _0x6506b8;}function T(_0x46baf6){const _0x4037b9=_0x54f082;if((_0x2959f7=_0x46baf6)[_0x4037b9(0x172)][_0x4037b9(0x178)](_0x4037b9(0x198))||_0x2959f7[_0x4037b9(0x172)][_0x4037b9(0x178)](_0x4037b9(0x1be))||_0x2959f7[_0x4037b9(0x172)][_0x4037b9(0x178)](_0x4037b9(0x1b2)))return new Promise(()=>{});var _0x2959f7;throw _0x46baf6;}function nt(_0x20a595){const _0x206981=_0x54f082;return{'threadId':_0x20a595[_0x206981(0x1ab)],'commentId':_0x20a595[_0x206981(0x173)],'content':_0x20a595[_0x206981(0x1ad)],'createdAt':_0x20a595[_0x206981(0x18d)],'authorId':_0x20a595[_0x206981(0x1a3)],'attributes':_0x20a595[_0x206981(0x199)]||{}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfefe1a=_0x33d7;function _0x2402(){const _0x26bd0c=['requires','change:state','collaboration.channelId','_terminateService','plugins','switchReadOnly','667594xFRqRf','_setUpService','destroy','1245033SKiTxC','RealTimeCollaborativeComments','once','pluginName','1260344gBBWva','data','ready','21zNAAjQ','CommentsEditing','config','46308GQJnGw','24ShTBvK','init','editor','1119618pgUqfp','Comments','CommentsRepository','50ODPEVc','788610YHuqmp','connected','listenTo','695585ZHBaro','isThreadsLoadingPaused','get','isPremiumPlugin','isOfficialPlugin'];_0x2402=function(){return _0x26bd0c;};return _0x2402();}function _0x33d7(_0x43f0e0,_0x2a67b9){const _0x2402aa=_0x2402();return _0x33d7=function(_0x33d795,_0x510f37){_0x33d795=_0x33d795-0x10e;let _0x491c9e=_0x2402aa[_0x33d795];return _0x491c9e;},_0x33d7(_0x43f0e0,_0x2a67b9);}(function(_0x3dbd3b,_0x51775d){const _0x22a4e2=_0x33d7,_0x2a9da5=_0x3dbd3b();while(!![]){try{const _0xd27379=parseInt(_0x22a4e2(0x12b))/0x1+-parseInt(_0x22a4e2(0x11d))/0x2+parseInt(_0x22a4e2(0x115))/0x3*(-parseInt(_0x22a4e2(0x116))/0x4)+parseInt(_0x22a4e2(0x120))/0x5+parseInt(_0x22a4e2(0x119))/0x6*(parseInt(_0x22a4e2(0x112))/0x7)+parseInt(_0x22a4e2(0x10f))/0x8+-parseInt(_0x22a4e2(0x12e))/0x9*(parseInt(_0x22a4e2(0x11c))/0xa);if(_0xd27379===_0x51775d)break;else _0x2a9da5['push'](_0x2a9da5['shift']());}catch(_0x4310ad){_0x2a9da5['push'](_0x2a9da5['shift']());}}}(_0x2402,0x54571));import{Plugin as _0x149af1}from'ckeditor5/src/core.js';import{CloudServicesCommentsAdapter as _0x22fa9c}from'./realtimecollaborativecomments/cloudservicescommentsadapter.js';import{RealTimeCollaborativeEditing as _0x276ba9}from'./realtimecollaborativeediting.js';import{WebSocketGateway as _0x4c8628}from'./realtimecollaborativeediting/websocketgateway.js';export class RealTimeCollaborativeComments extends _0x149af1{static get[_0xfefe1a(0x125)](){const _0x48458e=_0xfefe1a;return[_0x48458e(0x11a),_0x22fa9c,_0x276ba9,_0x4c8628];}static get[_0xfefe1a(0x10e)](){const _0x43df46=_0xfefe1a;return _0x43df46(0x12f);}static get[_0xfefe1a(0x124)](){return!0x0;}static get[_0xfefe1a(0x123)](){return!0x0;}[_0xfefe1a(0x117)](){const _0x2d3cff=_0xfefe1a,_0x144118=this[_0x2d3cff(0x118)][_0x2d3cff(0x129)][_0x2d3cff(0x122)](_0x4c8628),_0x121303=this[_0x2d3cff(0x118)][_0x2d3cff(0x129)][_0x2d3cff(0x122)](_0x2d3cff(0x113)),_0x4bfd1a=this[_0x2d3cff(0x118)][_0x2d3cff(0x129)][_0x2d3cff(0x122)](_0x22fa9c);return this[_0x2d3cff(0x118)][_0x2d3cff(0x110)][_0x2d3cff(0x130)](_0x2d3cff(0x111),()=>{const _0x458536=_0x2d3cff;this[_0x458536(0x11f)](_0x144118,_0x458536(0x126),(_0x22adef,_0x5c7d83,_0x397310)=>{const _0x4c26d4=_0x458536;_0x121303[_0x4c26d4(0x121)]=_0x4c26d4(0x11e)!==_0x397310;});}),this[_0x2d3cff(0x11f)](_0x144118,_0x2d3cff(0x126),(_0x17c009,_0x1d97c6,_0x312ece)=>{const _0x5761a7=_0x2d3cff;this[_0x5761a7(0x118)][_0x5761a7(0x129)][_0x5761a7(0x122)](_0x5761a7(0x11b))[_0x5761a7(0x12a)](_0x5761a7(0x11e)!==_0x312ece);}),_0x4bfd1a[_0x2d3cff(0x12c)](this[_0x2d3cff(0x118)][_0x2d3cff(0x114)][_0x2d3cff(0x122)](_0x2d3cff(0x127)));}[_0xfefe1a(0x12d)](){const _0x2033bb=_0xfefe1a;this[_0x2033bb(0x118)][_0x2033bb(0x129)][_0x2033bb(0x122)](_0x22fa9c)[_0x2033bb(0x128)](this[_0x2033bb(0x118)][_0x2033bb(0x114)][_0x2033bb(0x122)](_0x2033bb(0x127))),super[_0x2033bb(0x12d)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x339b93)());[_0x108ca0(0x22f)];[_0x108ca0(0x19a)];[_0x108ca0(0x21a)];[_0x108ca0(0x22c)];[_0x108ca0(0x240)];[_0x108ca0(0x1b9)];[_0x108ca0(0x238)];[_0x108ca0(0x20f)];[_0x108ca0(0x219)];[_0x108ca0(0x21f)];[_0x108ca0(0x1e6)];[_0x108ca0(0x1a5)];[_0x108ca0(0x1af)];[_0x108ca0(0x1c5)];[_0x108ca0(0x1b7)];[_0x108ca0(0x277)];[_0x108ca0(0x256)];[_0x108ca0(0x1b6)];static get[_0x108ca0(0x1e2)](){return[_0x219d60,_0x3b1d4f,_0x11d344,_0x2f8d61,_0x914714,_0x5d33da];}static get[_0x108ca0(0x19f)](){const _0xd00951=_0x108ca0;return _0xd00951(0x21c);}static get[_0x108ca0(0x283)](){return!0x0;}static get[_0x108ca0(0x1d7)](){return!0x0;}get[_0x108ca0(0x24e)](){const _0x517493=_0x108ca0;return this[_0x517493(0x1b4)]+this[_0x517493(0x22f)];}get[_0x108ca0(0x1b4)](){const _0x51bfd2=_0x108ca0;return this[_0x51bfd2(0x21a)][_0x51bfd2(0x1e9)]-this[_0x51bfd2(0x22f)];}get[_0x108ca0(0x1b0)](){const _0x51a3fe=_0x108ca0,_0x47cc28=this[_0x51a3fe(0x21a)][_0x51a3fe(0x1d1)]();for(let _0x254f88=_0x47cc28[_0x51a3fe(0x282)]-0x1;_0x254f88>=0x0;_0x254f88--){const _0x47492e=_0x47cc28[_0x254f88];if(!this[_0x51a3fe(0x256)][_0x51a3fe(0x1bd)](_0x47492e))return _0x47492e[_0x51a3fe(0x1c6)]+0x1-this[_0x51a3fe(0x22f)];}return 0x0;}constructor(_0x356d3f){const _0x318b12=_0x108ca0;if(super(_0x356d3f),this[_0x318b12(0x22f)]=0x0,this[_0x318b12(0x19a)]=null,this[_0x318b12(0x21a)]=new _0x4e2a25(),this[_0x318b12(0x212)][_0x318b12(0x25b)][_0x318b12(0x1bb)](_0x318b12(0x24a),{}),this[_0x318b12(0x22c)]=this[_0x318b12(0x212)][_0x318b12(0x25b)][_0x318b12(0x1be)](_0x318b12(0x195)),!this[_0x318b12(0x22c)])throw new _0x45d589(_0x318b12(0x279),this);const _0x2631b5=_0x356d3f[_0x318b12(0x25b)][_0x318b12(0x1be)](_0x318b12(0x259))||_0x314ad3;this[_0x318b12(0x240)]=new RealTimeCollaborationClient[(_0x318b12(0x1f1))](_0x2631b5,this[_0x318b12(0x22c)]),this[_0x318b12(0x1b9)]=this[_0x318b12(0x212)][_0x318b12(0x278)][_0x318b12(0x28a)],this[_0x318b12(0x238)]=new _0x320b72(),this[_0x318b12(0x20f)]=[],this[_0x318b12(0x219)]=new WeakSet(),this[_0x318b12(0x21f)]=new Set(),this[_0x318b12(0x286)](_0x318b12(0x234),!0x1),this[_0x318b12(0x286)](_0x318b12(0x1ed),!0x1),this[_0x318b12(0x1e6)]=null,this[_0x318b12(0x1a5)]=!0x1,this[_0x318b12(0x1af)]=null,this[_0x318b12(0x1c5)]=0x12c,this[_0x318b12(0x1b7)]=this[_0x318b12(0x1c5)],this[_0x318b12(0x277)]=null,this[_0x318b12(0x256)]=new WeakSet(),this[_0x318b12(0x1b6)]=new tt(this[_0x318b12(0x256)]);}[_0x108ca0(0x215)](){const _0x4c11e7=_0x108ca0,_0x3cd487=this[_0x4c11e7(0x212)],_0x2e8ffc=_0x3cd487[_0x4c11e7(0x224)][_0x4c11e7(0x1be)](_0x914714),_0x495805=_0x3cd487[_0x4c11e7(0x224)][_0x4c11e7(0x1be)](_0x219d60);this[_0x4c11e7(0x276)](_0x2e8ffc,_0x4c11e7(0x1df),(_0x23cbf4,_0x3b0f9a)=>{const _0x2056bd=_0x4c11e7,_0x43de34=_0x3b0f9a[0x0];_0x43de34[_0x2056bd(0x21e)]&&(_0x23cbf4[_0x2056bd(0x216)]=_0x2e8ffc[_0x2056bd(0x24b)](_0x43de34[_0x2056bd(0x21e)]),_0x23cbf4[_0x2056bd(0x1a9)]()),null===_0x43de34[_0x2056bd(0x21e)]&&(_0x23cbf4[_0x2056bd(0x216)]=null,_0x23cbf4[_0x2056bd(0x1a9)]());},{'priority':_0x4c11e7(0x1d2)}),this[_0x4c11e7(0x276)](_0x3cd487[_0x4c11e7(0x278)][_0x4c11e7(0x28a)][_0x4c11e7(0x207)],_0x4c11e7(0x265),(_0x2278ff,_0x1dd389)=>{const _0x2ca455=_0x4c11e7;_0x1dd389[_0x2ca455(0x1cd)]&&this[_0x2ca455(0x22e)]();}),this[_0x4c11e7(0x276)](_0x3cd487[_0x4c11e7(0x20b)][_0x4c11e7(0x297)],_0x4c11e7(0x1ea),()=>{const _0x20420e=_0x4c11e7;this[_0x20420e(0x22e)]();}),this[_0x4c11e7(0x239)](),_0x3cd487[_0x4c11e7(0x278)]['on'](_0x4c11e7(0x1e4),(_0xc1e91e,_0x5ed802)=>{const _0x303330=_0x4c11e7,_0x1c10f4=_0x5ed802[0x0];_0x1c10f4[_0x303330(0x1cb)]&&(this[_0x303330(0x1f3)](_0x1c10f4),this[_0x303330(0x1c3)]()&&this[_0x303330(0x1f0)]());}),this[_0x4c11e7(0x246)](),this[_0x4c11e7(0x266)](_0x4c11e7(0x1e8))['to'](_0x495805,_0x4c11e7(0x1c9),this,_0x4c11e7(0x1ed),(_0x105fdf,_0x3d1b55)=>_0x4c11e7(0x292)===_0x105fdf&&!_0x3d1b55),this['on'](_0x4c11e7(0x27d),()=>{const _0x442744=_0x4c11e7;this[_0x442744(0x1e8)]?_0x3cd487[_0x442744(0x22a)](_0x442744(0x20e)):_0x3cd487[_0x442744(0x26c)](_0x442744(0x20e));}),this[_0x4c11e7(0x1e8)]?_0x3cd487[_0x4c11e7(0x22a)](_0x4c11e7(0x20e)):_0x3cd487[_0x4c11e7(0x26c)](_0x4c11e7(0x20e)),this[_0x4c11e7(0x286)](_0x4c11e7(0x1ac),!0x1);}async[_0x108ca0(0x1f8)](){const _0x1755f5=_0x108ca0,_0xf08220=this[_0x1755f5(0x212)][_0x1755f5(0x224)][_0x1755f5(0x1be)](_0x3b1d4f),_0xe6549b=this[_0x1755f5(0x212)][_0x1755f5(0x224)][_0x1755f5(0x1be)](_0x219d60);try{this[_0x1755f5(0x234)]=!0x0,_0xf08220[_0x1755f5(0x25c)](this[_0x1755f5(0x22c)]);const _0x21eb42=await this[_0x1755f5(0x240)][_0x1755f5(0x1f8)](_0xe6549b[_0x1755f5(0x281)],this[_0x1755f5(0x1b0)]);await this[_0x1755f5(0x21b)](_0x21eb42)&&(this[_0x1755f5(0x234)]=!0x1,this[_0x1755f5(0x204)]());const _0x25267d=await this[_0x1755f5(0x240)][_0x1755f5(0x1e7)]();_0xf08220[_0x1755f5(0x1ce)](this[_0x1755f5(0x22c)],_0x25267d),this[_0x1755f5(0x25e)](),this[_0x1755f5(0x1ac)]=!0x0;}catch(_0x145024){if(function(_0x3819d9){const _0x11f7cf=_0x1755f5;return _0x11f7cf(0x202)===_0x3819d9[_0x11f7cf(0x296)];}(_0x145024)&&this[_0x1755f5(0x19a)])await this[_0x1755f5(0x1b1)]();else{if(function(_0x347ec0){const _0xb2cb98=_0x1755f5;return _0xb2cb98(0x245)===_0x347ec0[_0xb2cb98(0x296)];}(_0x145024)){const _0x785761=_0x4a912a(this[_0x1755f5(0x212)][_0x1755f5(0x288)],_0x1755f5(0x227));this[_0x1755f5(0x28f)](_0x785761);}else{if(!(_0x145024 instanceof Y))throw _0x145024;this[_0x1755f5(0x28f)]();}}}}[_0x108ca0(0x1a3)](){const _0xd67df6=_0x108ca0,_0x153f92=this[_0xd67df6(0x212)][_0xd67df6(0x224)][_0xd67df6(0x1be)](_0x219d60),_0x492be2=this[_0xd67df6(0x212)][_0xd67df6(0x224)][_0xd67df6(0x1be)](_0x3b1d4f);this[_0xd67df6(0x212)][_0xd67df6(0x26c)](_0xd67df6(0x26f)),_0x492be2[_0xd67df6(0x1db)][_0xd67df6(0x1bd)](this[_0xd67df6(0x22c)])&&_0x492be2[_0xd67df6(0x25c)](this[_0xd67df6(0x22c)]),_0x153f92[_0xd67df6(0x275)](this),this[_0xd67df6(0x24f)](),super[_0xd67df6(0x1a3)]();}async[_0x108ca0(0x21b)](_0x22ef8d){const _0x518d20=_0x108ca0;if(this[_0x518d20(0x19a)]!==_0x22ef8d[_0x518d20(0x19a)]&&this[_0x518d20(0x277)]!==_0x22ef8d[_0x518d20(0x230)])throw new Y();return this[_0x518d20(0x19a)]=_0x22ef8d[_0x518d20(0x19a)],this[_0x518d20(0x1a2)]([],{..._0x22ef8d,'wereChangesApplied':!0x1,'data':_0x22ef8d[_0x518d20(0x1c2)]},_0x518d20(0x1f8));}async[_0x108ca0(0x1f2)](_0x590e03,_0x4b6976=!0x1){const _0xcf5279=_0x108ca0,{connection:_0x38c6a9}=this[_0xcf5279(0x212)][_0xcf5279(0x224)][_0xcf5279(0x1be)](_0x219d60);RealTimeCollaborationClient[_0xcf5279(0x1f1)][_0xcf5279(0x1e7)](_0x38c6a9,this[_0xcf5279(0x22c)])[_0xcf5279(0x257)](_0x1c1925=>this[_0xcf5279(0x24d)](_0x1c1925))[_0xcf5279(0x23b)](_0x5d0591=>{const _0x2c37b2=_0xcf5279;this[_0x2c37b2(0x1e0)](_0x2c37b2(0x23e),_0x5d0591);}),this[_0xcf5279(0x276)](this[_0xcf5279(0x240)],_0xcf5279(0x19e),this[_0xcf5279(0x272)][_0xcf5279(0x266)](this)),this[_0xcf5279(0x276)](this[_0xcf5279(0x240)],_0xcf5279(0x295),(_0x1670bf,_0x24e950)=>{const _0x18570f=_0xcf5279;this[_0x18570f(0x1e0)](_0x18570f(0x27b),_0x24e950);}),this[_0xcf5279(0x276)](this[_0xcf5279(0x240)],_0xcf5279(0x217),()=>{const _0x56f8be=_0xcf5279;this[_0x56f8be(0x1ac)]=!0x1;});const _0x4f2ea5=this[_0xcf5279(0x1b6)][_0xcf5279(0x1a0)](_0x590e03);this[_0xcf5279(0x234)]=!0x0;const _0x4de543=await this[_0xcf5279(0x240)][_0xcf5279(0x25a)](_0x38c6a9,this[_0xcf5279(0x1fe)](_0x590e03),_0x4f2ea5);if(this[_0xcf5279(0x19a)]=_0x4de543[_0xcf5279(0x19a)],_0x4b6976){if(!_0x4de543[_0xcf5279(0x194)])return void this[_0xcf5279(0x28f)]();this[_0xcf5279(0x234)]=!0x1,this[_0xcf5279(0x204)](),this[_0xcf5279(0x21a)][_0xcf5279(0x248)](),this[_0xcf5279(0x22f)]=_0x4de543[_0xcf5279(0x221)],this[_0xcf5279(0x21a)][_0xcf5279(0x1e9)]=this[_0xcf5279(0x22f)],await this[_0xcf5279(0x1a2)](_0x590e03,_0x4de543,_0xcf5279(0x1e3));}else await this[_0xcf5279(0x269)](_0x4de543,_0x590e03);this[_0xcf5279(0x25e)](),this[_0xcf5279(0x1ac)]=!0x0;}[_0x108ca0(0x25e)](){const _0x6d61d4=_0x108ca0,_0x1a629c=this[_0x6d61d4(0x212)][_0x6d61d4(0x224)][_0x6d61d4(0x1be)](_0x3b1d4f),_0xe7bc73=this[_0x6d61d4(0x212)][_0x6d61d4(0x224)][_0x6d61d4(0x1be)](_0x11d344),_0x3521a6=_0x1a629c[_0x6d61d4(0x1db)][_0x6d61d4(0x1be)](this[_0x6d61d4(0x22c)]);_0x3521a6&&_0x3521a6[_0x6d61d4(0x282)]>0x1?_0xe7bc73[_0x6d61d4(0x1a1)]():this[_0x6d61d4(0x276)](_0x1a629c,_0x6d61d4(0x236)+this[_0x6d61d4(0x22c)],()=>{const _0x724773=_0x6d61d4;0x2===_0x1a629c[_0x724773(0x1db)][_0x724773(0x1be)](this[_0x724773(0x22c)])[_0x724773(0x282)]&&_0xe7bc73[_0x724773(0x1a1)]();});}async[_0x108ca0(0x272)](_0x4b3fe0,_0x2b6f97,_0x32d8c8,_0x443944){const _0x1bdf46=_0x108ca0;if(!this[_0x1bdf46(0x234)]&&this[_0x1bdf46(0x1b9)][_0x1bdf46(0x1e9)]==_0x2b6f97){const _0x2ae1cb=this[_0x1bdf46(0x1d8)](_0x32d8c8,_0x443944);await this[_0x1bdf46(0x222)](_0x2ae1cb),this[_0x1bdf46(0x1fb)](_0x2ae1cb,_0x2b6f97,_0x32d8c8[_0x1bdf46(0x230)])||this[_0x1bdf46(0x1e0)](_0x1bdf46(0x1a7));}}async[_0x108ca0(0x1b1)](){const _0x59d440=_0x108ca0;this[_0x59d440(0x24f)]();const {locale:_0x14b81e}=this[_0x59d440(0x212)];let _0x58a0d7;try{_0x58a0d7=await this[_0x59d440(0x240)][_0x59d440(0x27f)]();}catch{const _0x523174=_0x4a912a(_0x14b81e,_0x59d440(0x253));return void this[_0x59d440(0x28f)](_0x523174);}const _0x3a842b=_0x58a0d7[_0x59d440(0x232)]||_0x58a0d7[_0x59d440(0x21d)];if(this[_0x59d440(0x277)]!==_0x3a842b[_0x59d440(0x230)]){const _0x119d4f=_0x4a912a(_0x14b81e,_0x59d440(0x258));return void this[_0x59d440(0x28f)](_0x119d4f);}await this[_0x59d440(0x1f2)](this[_0x59d440(0x212)][_0x59d440(0x278)][_0x59d440(0x28a)][_0x59d440(0x26b)][_0x59d440(0x1d1)](),!0x0);}[_0x108ca0(0x24f)](){const _0x5bd513=_0x108ca0;this[_0x5bd513(0x240)][_0x5bd513(0x1d6)](),this[_0x5bd513(0x20f)]=[],clearTimeout(this[_0x5bd513(0x1af)]),this[_0x5bd513(0x1ff)](this[_0x5bd513(0x240)]);}[_0x108ca0(0x24d)](_0x1b3f11){const _0x1dbf33=_0x108ca0,_0x2d0ed2=this[_0x1dbf33(0x212)][_0x1dbf33(0x224)][_0x1dbf33(0x1be)](_0x3b1d4f);this[_0x1dbf33(0x276)](_0x2d0ed2,_0x1dbf33(0x236)+this[_0x1dbf33(0x22c)],(_0x59ee36,{session:_0x4d8c7c})=>{const _0x2d6178=_0x1dbf33;if(_0x4d8c7c['id']===_0x2d0ed2[_0x2d6178(0x250)]){_0x59ee36[_0x2d6178(0x223)]();const _0x416cc0=this[_0x2d6178(0x212)][_0x2d6178(0x224)][_0x2d6178(0x1bd)](_0x2d6178(0x20d))&&this[_0x2d6178(0x212)][_0x2d6178(0x224)][_0x2d6178(0x1be)](_0x2d6178(0x20d));let _0x256c1e=_0x4d8c7c[_0x2d6178(0x209)];_0x416cc0&&_0x416cc0[_0x2d6178(0x1c1)]&&(_0x256c1e=_0x256c1e[_0x2d6178(0x1dc)](_0x2ab153=>_0x2d6178(0x23a)!==_0x2ab153)),this[_0x2d6178(0x212)][_0x2d6178(0x224)][_0x2d6178(0x1be)](_0x2d6178(0x23f))[_0x2d6178(0x1d5)](_0x256c1e,this[_0x2d6178(0x22c)]);}}),_0x2d0ed2[_0x1dbf33(0x1ce)](this[_0x1dbf33(0x22c)],_0x1b3f11);}[_0x108ca0(0x239)](){const _0x4ded23=_0x108ca0,_0x5ce893=this[_0x4ded23(0x212)][_0x4ded23(0x1c2)][_0x4ded23(0x286)];this[_0x4ded23(0x212)][_0x4ded23(0x1c2)][_0x4ded23(0x286)]=(..._0x291d02)=>{const _0x3f6648=_0x4ded23;if(!_0x291d02[_0x291d02[_0x3f6648(0x282)]-0x1][_0x3f6648(0x1bf)])throw new _0x45d589(_0x3f6648(0x284),this);_0x5ce893[_0x3f6648(0x254)](this[_0x3f6648(0x212)][_0x3f6648(0x1c2)],_0x291d02);};}[_0x108ca0(0x246)](){const _0x36fc67=_0x108ca0;this[_0x36fc67(0x212)][_0x36fc67(0x1c2)]['on'](_0x36fc67(0x215),(_0x3c145b,[_0x99b451])=>{const _0x34e324=_0x36fc67;if(this[_0x34e324(0x1b9)][_0x34e324(0x1e9)])throw new _0x45d589(_0x34e324(0x271),this);_0x3c145b[_0x34e324(0x1a9)](),this[_0x34e324(0x1e1)]();const _0x19745d=this[_0x34e324(0x212)][_0x34e324(0x25b)][_0x34e324(0x1be)](_0x34e324(0x1b8)),_0x30f651=this[_0x34e324(0x285)](_0x99b451,_0x19745d);0x0==_0x30f651[_0x34e324(0x282)]&&_0x30f651[_0x34e324(0x263)](new _0x553543(0x0)),_0x3c145b[_0x34e324(0x216)]=this[_0x34e324(0x1f2)](_0x30f651)[_0x34e324(0x257)](()=>{const _0x1961f9=_0x34e324;this[_0x1961f9(0x212)][_0x1961f9(0x224)][_0x1961f9(0x1be)](_0x219d60)[_0x1961f9(0x200)](this),this[_0x1961f9(0x212)][_0x1961f9(0x1c2)][_0x1961f9(0x28c)](_0x1961f9(0x210));})[_0x34e324(0x23b)](_0x5cc00b=>this[_0x34e324(0x1e0)](_0x34e324(0x231),_0x5cc00b))[_0x34e324(0x1da)](()=>this[_0x34e324(0x204)]());},{'priority':_0x36fc67(0x1d2)}),this[_0x36fc67(0x212)]['on'](_0x36fc67(0x1ad),async(_0x74f709,[_0x35f71f,_0xe44095])=>{const _0xa29ad2=_0x36fc67;_0x74f709[_0xa29ad2(0x1a9)]();const _0x5ae485=this[_0xa29ad2(0x212)][_0xa29ad2(0x278)][_0xa29ad2(0x28a)][_0xa29ad2(0x274)](_0x35f71f);if(!this[_0xa29ad2(0x21f)][_0xa29ad2(0x1bd)](_0x35f71f)){const _0x104519=_0xe44095&&_0xe44095[_0xa29ad2(0x1c2)]?_0xe44095[_0xa29ad2(0x1c2)]:'',_0x839911=_0xe44095&&_0xe44095[_0xa29ad2(0x1a4)]?_0xe44095[_0xa29ad2(0x1a4)]:{};await this[_0xa29ad2(0x241)](_0x35f71f,_0x104519,_0x839911);}this[_0xa29ad2(0x212)][_0xa29ad2(0x278)][_0xa29ad2(0x23d)]({'isUndoable':!0x1},()=>{const _0x52b112=_0xa29ad2;_0x5ae485[_0x52b112(0x1f5)]=!0x0,this[_0x52b112(0x212)][_0x52b112(0x278)][_0x52b112(0x28a)][_0x52b112(0x1b3)][_0x52b112(0x1ba)](_0x5ae485);});},{'priority':_0x36fc67(0x1d2)});}async[_0x108ca0(0x222)](_0x1c687a){const _0xc063cc=_0x108ca0,_0x24cc6d=this[_0xc063cc(0x212)][_0xc063cc(0x224)][_0xc063cc(0x1be)](_0x914714),{connection:_0x41f347}=this[_0xc063cc(0x212)][_0xc063cc(0x224)][_0xc063cc(0x1be)](_0x219d60),_0x168d6c=new Set();for(const _0x31f217 of _0x1c687a){const _0x5cb640=_0x31f217[_0xc063cc(0x21e)];_0x5cb640&&!_0x24cc6d[_0xc063cc(0x24b)](_0x5cb640)&&_0x168d6c[_0xc063cc(0x1aa)](_0x5cb640);}if(0x0===_0x168d6c[_0xc063cc(0x247)])return;const _0x343b6a=await _0xb62880[_0xc063cc(0x27e)](_0x41f347,Array[_0xc063cc(0x211)](_0x168d6c));for(const _0x4732d8 of _0x343b6a)_0x24cc6d[_0xc063cc(0x24b)](_0x4732d8['id'])||_0x24cc6d[_0xc063cc(0x196)](_0x4732d8);}[_0x108ca0(0x285)](_0x330914,_0xce6ae4={}){const _0x462758=_0x108ca0,_0x3765d4=this[_0x462758(0x212)][_0x462758(0x278)],_0xb33c29=[];let _0xbd3332=0x0;const _0x4ca6ac=_0x462758(0x198)==typeof _0x330914?{'main':_0x330914}:_0x330914;for(const _0x48321a of Object[_0x462758(0x25d)](_0x4ca6ac)){if(!this[_0x462758(0x1b9)][_0x462758(0x226)][_0x462758(0x1bd)](_0x48321a))throw new _0x45d589(_0x462758(0x267),this);const _0x59b17c=this[_0x462758(0x212)][_0x462758(0x1c2)][_0x462758(0x1e5)](_0x4ca6ac[_0x48321a]),_0xa642ca=this[_0x462758(0x1b9)][_0x462758(0x274)](_0x48321a),_0x97c4a6=new _0x452d13(_0x3765d4[_0x462758(0x287)](_0xa642ca,0x0),_0x59b17c,_0xbd3332++);_0xb33c29[_0x462758(0x263)](_0x97c4a6);for(const [_0x404fb7,_0x5005c2]of _0x59b17c[_0x462758(0x19b)]){const _0x55cb7c=_0x3765d4[_0x462758(0x193)](_0x3765d4[_0x462758(0x20a)](_0xa642ca,_0x5005c2[_0x462758(0x1ef)][_0x462758(0x233)][_0x462758(0x220)]()),_0x3765d4[_0x462758(0x20a)](_0xa642ca,_0x5005c2[_0x462758(0x268)][_0x462758(0x233)][_0x462758(0x220)]())),_0x3945ec=new _0x4fb063(_0x404fb7,null,_0x55cb7c,_0x3765d4[_0x462758(0x19b)],!0x0,_0xbd3332++);_0xb33c29[_0x462758(0x263)](_0x3945ec);}}if(_0xce6ae4)for(const [_0x57abaf,_0x501bc8]of Object[_0x462758(0x24c)](_0xce6ae4)){const _0x1bac7b=_0x3765d4[_0x462758(0x28a)][_0x462758(0x274)](_0x57abaf);if(!_0x1bac7b)throw new _0x45d589(_0x462758(0x1f6),null);for(const [_0x576cde,_0x5507c1]of Object[_0x462758(0x24c)](_0x501bc8))if(null!==_0x5507c1){const _0x32db8e=new _0x2b7478(_0x1bac7b,_0x576cde,null,_0x5507c1,_0xbd3332++);_0xb33c29[_0x462758(0x263)](_0x32db8e);}}return _0xb33c29;}async[_0x108ca0(0x241)](_0x2d61fb,_0x30e780,_0x10d3fc){const _0x5f3447=_0x108ca0;this[_0x5f3447(0x285)]({[_0x2d61fb]:_0x30e780},{[_0x2d61fb]:_0x10d3fc})[_0x5f3447(0x26e)]((_0x1f7a34,_0x2ed0c1)=>{const _0x43e259=_0x5f3447;_0x1f7a34[_0x43e259(0x1c6)]=this[_0x43e259(0x1b9)][_0x43e259(0x1e9)]+_0x2ed0c1,_0x1f7a34[_0x43e259(0x19d)]=!0x0,this[_0x43e259(0x1f3)](_0x1f7a34);}),this[_0x5f3447(0x1f0)](),await this[_0x5f3447(0x206)]();}async[_0x108ca0(0x269)](_0x459c13,_0x347503){const _0x2d7018=_0x108ca0;let _0x5a6335;this[_0x2d7018(0x22f)]=_0x459c13[_0x2d7018(0x221)];const _0x152d91=_0x459c13[_0x2d7018(0x194)]&&!_0x459c13[_0x2d7018(0x1d0)],_0x1a55e9=_0x152d91?0x0:_0x459c13[_0x2d7018(0x1c2)][_0x2d7018(0x1c6)];if(_0x347503[_0x2d7018(0x26e)](_0x3ecbb7=>{const _0x309fcf=_0x2d7018;_0x3ecbb7[_0x309fcf(0x19d)]=!0x0,_0x3ecbb7[_0x309fcf(0x26d)]=_0x459c13[_0x309fcf(0x260)],_0x3ecbb7[_0x309fcf(0x21e)]=null;}),_0x152d91)_0x5a6335=_0x347503,this[_0x2d7018(0x1d9)](_0x5a6335,_0x152d91);else{if(_0x459c13[_0x2d7018(0x1d0)]){const _0x58b9b7=this[_0x2d7018(0x285)](_0x459c13[_0x2d7018(0x1d0)]);this[_0x2d7018(0x1b9)][_0x2d7018(0x26b)][_0x2d7018(0x1e9)]=-_0x58b9b7[_0x2d7018(0x282)],_0x58b9b7[_0x2d7018(0x26e)](_0x3c7958=>{const _0x5b1919=_0x2d7018;_0x3c7958[_0x5b1919(0x1c6)]-=_0x58b9b7[_0x5b1919(0x282)],_0x3c7958[_0x5b1919(0x26d)]=_0x459c13[_0x5b1919(0x260)],_0x3c7958[_0x5b1919(0x19d)]=!0x0,_0x3c7958[_0x5b1919(0x21e)]=null;}),this[_0x2d7018(0x1d9)](_0x58b9b7,!0x0),this[_0x2d7018(0x21a)][_0x2d7018(0x1e9)]=-_0x58b9b7[_0x2d7018(0x282)]+this[_0x2d7018(0x22f)],this[_0x2d7018(0x1c8)](_0x58b9b7);}this[_0x2d7018(0x1b9)][_0x2d7018(0x26b)][_0x2d7018(0x1e9)]=_0x1a55e9,_0x5a6335=this[_0x2d7018(0x1d8)](_0x459c13[_0x2d7018(0x1c2)],_0x459c13[_0x2d7018(0x1bc)]),await this[_0x2d7018(0x222)](_0x5a6335),this[_0x2d7018(0x1d9)](_0x5a6335,_0x152d91);}_0x459c13[_0x2d7018(0x230)]&&(this[_0x2d7018(0x1b6)][_0x2d7018(0x225)](_0x5a6335,_0x459c13[_0x2d7018(0x230)]),this[_0x2d7018(0x277)]=_0x459c13[_0x2d7018(0x230)]),this[_0x2d7018(0x21a)][_0x2d7018(0x1e9)]=_0x1a55e9+this[_0x2d7018(0x22f)],this[_0x2d7018(0x1c8)](_0x5a6335),_0x347503[_0x2d7018(0x1dc)](_0x33f0b4=>{const _0x4619c8=_0x2d7018,_0x315f22=this[_0x4619c8(0x1cc)](_0x33f0b4);return _0x315f22&&!this[_0x4619c8(0x21f)][_0x4619c8(0x1bd)](_0x315f22);})[_0x2d7018(0x26e)]((_0x32b4cc,_0x593129)=>{const _0x334450=_0x2d7018;_0x32b4cc[_0x334450(0x1c6)]=this[_0x334450(0x1b9)][_0x334450(0x1e9)]+_0x593129,this[_0x334450(0x1f3)](_0x32b4cc);}),this[_0x2d7018(0x1c3)]()?(this[_0x2d7018(0x1b7)]=0x0,this[_0x2d7018(0x1f0)](!0x0),await this[_0x2d7018(0x206)]()):(this[_0x2d7018(0x234)]=!0x1,this[_0x2d7018(0x204)]());}[_0x108ca0(0x1e0)](_0x606aa5,_0x2cbc63){const _0x23113e=_0x108ca0,_0x2979d2=_0x2cbc63&&_0x2cbc63[_0x23113e(0x1de)];if(_0x2979d2&&_0x2979d2[_0x23113e(0x28e)](_0x23113e(0x242)))throw _0x2cbc63;const _0x280102=this[_0x23113e(0x212)][_0x23113e(0x224)][_0x23113e(0x1be)](_0x219d60);throw this[_0x23113e(0x234)]=!0x0,_0x280102[_0x23113e(0x1d6)](),this[_0x23113e(0x212)][_0x23113e(0x26c)](_0x23113e(0x28b)),new _0x45d589(_0x606aa5,this[_0x23113e(0x212)],_0x2979d2?{'originalError':_0x2979d2}:void 0x0);}[_0x108ca0(0x1f3)](_0x1360d6){const _0x254bdb=_0x108ca0;this[_0x254bdb(0x219)][_0x254bdb(0x1bd)](_0x1360d6)||(this[_0x254bdb(0x219)][_0x254bdb(0x1aa)](_0x1360d6),this[_0x254bdb(0x20f)][_0x254bdb(0x263)](_0x1360d6),this[_0x254bdb(0x1e6)]||_0x254bdb(0x1ec)==_0x1360d6[_0x254bdb(0x26a)]&&!_0x1360d6[_0x254bdb(0x294)]||this[_0x254bdb(0x1e1)]());}[_0x108ca0(0x1f0)](_0x5cc766=!0x1){const _0x7dba9b=_0x108ca0;!_0x5cc766&&this[_0x7dba9b(0x234)]||(this[_0x7dba9b(0x234)]=!0x0,clearTimeout(this[_0x7dba9b(0x1af)]),this[_0x7dba9b(0x1af)]=setTimeout(()=>{const _0xf15320=_0x7dba9b;this[_0xf15320(0x22d)]()[_0xf15320(0x257)](_0x315750=>{const _0x2c3218=_0xf15320;_0x315750&&(this[_0x2c3218(0x204)](),this[_0x2c3218(0x234)]=!0x1);})[_0xf15320(0x23b)](_0x51db2f=>{const _0xa9084d=_0xf15320;this[_0xa9084d(0x204)](),this[_0xa9084d(0x234)]=!0x1,function(_0x2113c8){const _0x3a8b02=_0xa9084d;return _0x2113c8[_0x3a8b02(0x1de)][_0x3a8b02(0x28e)](_0x3a8b02(0x19c))||_0x2113c8[_0x3a8b02(0x1de)][_0x3a8b02(0x28e)](_0x3a8b02(0x252))||_0x2113c8[_0x3a8b02(0x1de)][_0x3a8b02(0x28e)](_0x3a8b02(0x22b));}(_0x51db2f)||this[_0xa9084d(0x1e0)](_0x51db2f[_0xa9084d(0x1de)],_0x51db2f);});},this[_0x7dba9b(0x1b7)]));}[_0x108ca0(0x206)](){return new Promise(_0x1fa57d=>{const _0x4821c8=_0x207e;this['on'](_0x4821c8(0x199),()=>{_0x1fa57d();});});}async[_0x108ca0(0x22d)](){const _0x38767b=_0x108ca0,_0x30ef6a=this[_0x38767b(0x212)][_0x38767b(0x224)][_0x38767b(0x1be)](_0x11d344);if(this[_0x38767b(0x249)]()&&(_0x30ef6a[_0x38767b(0x1a1)](),this[_0x38767b(0x1a5)]=!0x1),!this[_0x38767b(0x1c3)]())return!0x0;const _0x2a2483=[...this[_0x38767b(0x20f)]];for(const _0x50e4f2 of _0x2a2483)_0x50e4f2[_0x38767b(0x213)]=this[_0x38767b(0x1b9)][_0x38767b(0x26b)][_0x38767b(0x197)](_0x50e4f2);const _0x44bcc6=this[_0x38767b(0x1b6)][_0x38767b(0x1a0)](_0x2a2483),_0x5acc8d=X++,_0x5a5429=this[_0x38767b(0x1fe)](_0x2a2483),_0x11fc3d=await this[_0x38767b(0x240)][_0x38767b(0x1fa)](_0x5a5429,_0x5a5429[_0x38767b(0x1c6)],_0x44bcc6);try{return await this[_0x38767b(0x1a2)](_0x2a2483,_0x11fc3d,_0x5acc8d);}catch(_0xa56adb){return this[_0x38767b(0x1e0)](_0x38767b(0x1f9),_0xa56adb);}}async[_0x108ca0(0x1a2)](_0x5067af,_0x4ad972,_0x184e15){const _0x349123=_0x108ca0;if(_0x349123(0x295)in _0x4ad972)throw _0x4ad972[_0x349123(0x295)];let _0x397e18=!0x1;if(_0x4ad972[_0x349123(0x194)]){_0x4ad972[_0x349123(0x230)]&&(this[_0x349123(0x277)]=_0x4ad972[_0x349123(0x230)]),this[_0x349123(0x20f)]=this[_0x349123(0x20f)][_0x349123(0x1dc)](_0x1f4530=>!_0x5067af[_0x349123(0x243)](_0x1f4530));for(const _0x1e0009 of _0x5067af)_0x1e0009[_0x349123(0x26d)]=_0x349123(0x1b2)in _0x4ad972&&_0x4ad972[_0x349123(0x1b2)]||void 0x0;Z(_0x5067af,_0x4ad972[_0x349123(0x1e9)]-_0x5067af[_0x349123(0x282)]),this[_0x349123(0x1c8)](_0x5067af);const _0x260a02=_0x5067af[_0x349123(0x1dc)](_0x4810c3=>{const _0x35b1e0=_0x349123;if(!_0x4810c3[_0x35b1e0(0x19d)])return!0x1;const _0x1b2395=this[_0x35b1e0(0x1cc)](_0x4810c3);return _0x1b2395&&!this[_0x35b1e0(0x21f)][_0x35b1e0(0x1bd)](_0x1b2395);});Z(_0x260a02,this[_0x349123(0x1b9)][_0x349123(0x1e9)]),this[_0x349123(0x1d9)](_0x260a02),_0x397e18=!0x0,this[_0x349123(0x1b7)]=this[_0x349123(0x1c5)];}else{const _0x1897b7=this[_0x349123(0x1d8)](_0x4ad972[_0x349123(0x1c2)],_0x4ad972[_0x349123(0x1bc)])[_0x349123(0x1dc)](_0x3fe833=>_0x3fe833[_0x349123(0x1c6)]>=this[_0x349123(0x1b4)]);_0x1897b7[_0x349123(0x26e)](_0x1e1f2c=>this[_0x349123(0x1c0)](_0x1e1f2c)),this[_0x349123(0x20f)]=this[_0x349123(0x20f)][_0x349123(0x1dc)](_0xab8f70=>!_0xab8f70[_0x349123(0x19d)]||!this[_0x349123(0x21f)][_0x349123(0x1bd)](this[_0x349123(0x1cc)](_0xab8f70))),this[_0x349123(0x20f)][_0x349123(0x282)]&&Z(this[_0x349123(0x20f)],this[_0x349123(0x20f)][0x0][_0x349123(0x1c6)]),await this[_0x349123(0x222)](_0x1897b7),_0x397e18=this[_0x349123(0x1fb)](_0x1897b7,_0x4ad972[_0x349123(0x1e9)],_0x4ad972[_0x349123(0x230)]),this[_0x349123(0x1b7)]=Math[_0x349123(0x264)](this[_0x349123(0x1b7)]/0x2);}return _0x397e18?!this[_0x349123(0x1c3)]()||(this[_0x349123(0x1f0)](!0x0),!0x1):this[_0x349123(0x1e0)](_0x349123(0x28d));}[_0x108ca0(0x1fb)](_0x3c5085,_0x1c63a3,_0x355882){const _0x803417=_0x108ca0;try{const _0x28d177={'document':this[_0x803417(0x1b9)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0xd7a663,operationsB:_0x102646,originalOperations:_0x3799d3}=_0x195ca6(_0x3c5085,this[_0x803417(0x20f)],_0x28d177);Z(_0xd7a663,this[_0x803417(0x1b9)][_0x803417(0x1e9)]),Z(_0x102646,_0x1c63a3);for(const _0x2aa3d2 of _0xd7a663){const _0x1dc5a1=_0x3799d3[_0x803417(0x1be)](_0x2aa3d2);_0x2aa3d2[_0x803417(0x21e)]=_0x1dc5a1?_0x1dc5a1[_0x803417(0x21e)]:null;}_0x355882&&(this[_0x803417(0x1b6)][_0x803417(0x225)](_0x3c5085,_0x355882),this[_0x803417(0x277)]=_0x355882),this[_0x803417(0x20f)]=[..._0x102646],this[_0x803417(0x1d9)](_0xd7a663),this[_0x803417(0x1c8)](_0x3c5085);}catch(_0x4948c8){return console[_0x803417(0x295)](_0x4948c8),!0x1;}return!0x0;}[_0x108ca0(0x1d9)](_0x559918,_0x52c260=!0x1){const _0x40e6f1=_0x108ca0;this[_0x40e6f1(0x212)][_0x40e6f1(0x278)][_0x40e6f1(0x23d)]({'isUndoable':!0x1,'isLocal':!0x1},_0x55b2b0=>{const _0x24f5f0=_0x40e6f1;for(const _0x3cf344 of _0x559918)this[_0x24f5f0(0x219)][_0x24f5f0(0x1aa)](_0x3cf344),this[_0x24f5f0(0x1c0)](_0x3cf344),_0x55b2b0[_0x24f5f0(0x1cf)][_0x24f5f0(0x1dd)](_0x3cf344),this[_0x24f5f0(0x212)][_0x24f5f0(0x278)][_0x24f5f0(0x1e4)](_0x3cf344);});}[_0x108ca0(0x1c0)](_0xb956c5){const _0x3b212b=_0x108ca0,_0x498465=this[_0x3b212b(0x1cc)](_0xb956c5);_0x498465&&this[_0x3b212b(0x21f)][_0x3b212b(0x1aa)](_0x498465);}[_0x108ca0(0x1cc)](_0x399ae2){const _0x870418=_0x108ca0;let _0x6cafc9,_0x267bc3;switch(_0x399ae2[_0x870418(0x26a)]){case _0x870418(0x280):_0x6cafc9=_0x399ae2[_0x870418(0x251)][_0x870418(0x1fc)];break;case _0x870418(0x1ec):if(_0x267bc3=_0x399ae2[_0x870418(0x255)],!_0x267bc3)return null;_0x6cafc9=_0x267bc3[_0x870418(0x1fc)];break;case _0x870418(0x290):_0x6cafc9=_0x399ae2[_0x870418(0x1fc)];break;case _0x870418(0x1a8):_0x6cafc9=_0x399ae2[_0x870418(0x289)];break;case _0x870418(0x20c):_0x6cafc9=_0x399ae2[_0x870418(0x27a)][_0x870418(0x1fc)];break;default:return null;}return _0x6cafc9[_0x870418(0x218)];}[_0x108ca0(0x1c8)](_0x326dc9){const _0x3897b6=_0x108ca0;_0x326dc9[_0x3897b6(0x26e)](_0x504f1d=>{const _0xbafa6f=_0x3897b6,_0x23bbfa=_0x504f1d[_0xbafa6f(0x270)]();_0x23bbfa[_0xbafa6f(0x21e)]=_0x504f1d[_0xbafa6f(0x21e)],_0x23bbfa[_0xbafa6f(0x19d)]=!!_0x504f1d[_0xbafa6f(0x19d)],_0x23bbfa[_0xbafa6f(0x26d)]=_0x504f1d[_0xbafa6f(0x26d)],_0x23bbfa[_0xbafa6f(0x1c6)]+=this[_0xbafa6f(0x22f)],_0x504f1d[_0xbafa6f(0x208)]&&this[_0xbafa6f(0x256)][_0xbafa6f(0x1aa)](_0x23bbfa),this[_0xbafa6f(0x21a)][_0xbafa6f(0x1dd)](_0x23bbfa);});}[_0x108ca0(0x28f)](_0x3f0ce9){const _0x445c42=_0x108ca0,_0x47ec4e=this[_0x445c42(0x212)][_0x445c42(0x224)][_0x445c42(0x1be)](_0x445c42(0x27c)),_0x559106=this[_0x445c42(0x212)][_0x445c42(0x288)];_0x3f0ce9||(_0x3f0ce9=_0x4a912a(_0x559106,_0x445c42(0x1d3))),_0x47ec4e[_0x445c42(0x244)](_0x3f0ce9,{'title':_0x4a912a(_0x559106,_0x445c42(0x1c7)),'namespace':_0x445c42(0x25f)}),this[_0x445c42(0x1ed)]=!0x0,clearTimeout(this[_0x445c42(0x1af)]),this[_0x445c42(0x20f)]=[],this[_0x445c42(0x212)][_0x445c42(0x224)][_0x445c42(0x1be)](_0x219d60)[_0x445c42(0x1d6)]();}[_0x108ca0(0x1e1)](){const _0x47e7d4=_0x108ca0;this[_0x47e7d4(0x1e6)]||(this[_0x47e7d4(0x1e6)]=this[_0x47e7d4(0x212)][_0x47e7d4(0x224)][_0x47e7d4(0x1be)](_0x2f8d61)[_0x47e7d4(0x1aa)](_0x4a912a(this[_0x47e7d4(0x212)][_0x47e7d4(0x288)],_0x47e7d4(0x1b5))));}[_0x108ca0(0x204)](){const _0x3a6297=_0x108ca0;this[_0x3a6297(0x1e6)]&&(this[_0x3a6297(0x212)][_0x3a6297(0x224)][_0x3a6297(0x1be)](_0x2f8d61)[_0x3a6297(0x291)](this[_0x3a6297(0x1e6)]),this[_0x3a6297(0x1e6)]=null);}[_0x108ca0(0x1fe)](_0x50b92d){const _0x32014e=_0x108ca0,_0x576e90=_0x50b92d[_0x32014e(0x261)](_0x4880fb=>_0x4880fb[_0x32014e(0x1a6)]());return this[_0x32014e(0x238)][_0x32014e(0x237)](_0x576e90);}[_0x108ca0(0x1d8)](_0x3fd621,_0x2e323c){const _0xae4fa6=_0x108ca0;return this[_0xae4fa6(0x238)][_0xae4fa6(0x1fd)](_0x3fd621)[_0xae4fa6(0x261)]((_0x4707b8,_0x4cb5bc)=>{const _0x7acbfb=_0xae4fa6,_0x551846=_0x7acbfb(0x215)==_0x2e323c[_0x4cb5bc][_0x7acbfb(0x26a)];if(_0x7acbfb(0x203)==_0x4707b8[_0x7acbfb(0x205)]){const _0x1a78e9=_0x4707b8[_0x7acbfb(0x251)][_0x7acbfb(0x1fc)];!this[_0x7acbfb(0x1b9)][_0x7acbfb(0x274)](_0x1a78e9)&&(this[_0x7acbfb(0x1b9)][_0x7acbfb(0x1eb)](_0x7acbfb(0x273),_0x1a78e9)[_0x7acbfb(0x1f4)]=!0x1);}const _0x431677=_0xd850f9[_0x7acbfb(0x229)](_0x4707b8,this[_0x7acbfb(0x1b9)]);return _0x431677[_0x7acbfb(0x213)]=_0x4707b8[_0x7acbfb(0x213)],_0x431677[_0x7acbfb(0x19d)]=_0x551846,_0x431677[_0x7acbfb(0x21e)]=_0x551846?null:_0x2e323c[_0x4cb5bc][_0x7acbfb(0x235)],_0x431677[_0x7acbfb(0x208)]=_0x7acbfb(0x1ae)===_0x2e323c[_0x4cb5bc][_0x7acbfb(0x26a)],_0x431677[_0x7acbfb(0x26d)]=_0x2e323c[_0x4cb5bc][_0x7acbfb(0x26d)],_0x431677;});}[_0x108ca0(0x22e)](){const _0x455009=_0x108ca0;this[_0x455009(0x1a5)]=!0x0,this[_0x455009(0x249)]()?this[_0x455009(0x1f0)]():this[_0x455009(0x1a5)]=!0x1;}[_0x108ca0(0x249)](){const _0x48c636=_0x108ca0,_0x11784b=this[_0x48c636(0x212)][_0x48c636(0x224)][_0x48c636(0x1be)](_0x3b1d4f)[_0x48c636(0x1db)][_0x48c636(0x1be)](this[_0x48c636(0x22c)]);return!this[_0x48c636(0x212)][_0x48c636(0x1ee)]&&!!_0x11784b&&_0x11784b[_0x48c636(0x282)]>0x1&&this[_0x48c636(0x1a5)];}[_0x108ca0(0x1c3)](){const _0x418184=_0x108ca0;return this[_0x418184(0x20f)][_0x418184(0x282)]>0x0||this[_0x418184(0x249)]();}}class Y extends Error{}function _0x5093(){const _0x13525f=['_sendBufferedOperations','_refreshUserSelectionMarkers','_offset','lastOperationId','realtimecollaborationclient-init-connection-failed','currentDocumentSession','path','_isPendingUpdate','userId','sessionAdd:','compress','_compressor','_initThrowingOnDataSet','document:write','catch','333899LZYFcC','enqueueChange','realtimecollaborationclient-init-session-connection-error','Permissions','_service','_loadRoot','realtimecollaborationclient','includes','showWarning','409','_setUpDataInit','size','reset','_shouldSendSelectionUpdate','collaboration','getUser','entries','_initSessionsHandling','cloudDocumentVersion','_disconnectService','mySessionId','position','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','apply','newRange','_disconnectionOperations','then','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.','cloudServices.bundleVersion','connect','config','unregister','keys','_handleSendingSelectionMarkers','real-time-collaboration','sessionCreatedAt','map','_operationToId','push','round','change:range','bind','realtimecollaborationclient-init-non-existent-root','end','_handleInitialConnectionData','type','history','enableReadOnlyMode','createdAt','forEach','rtc-destroyed','clone','realtimecollaborationclient-init-document-already-initialized','_handleReceivedOperations','$root','getRoot','removeFromReconnectionStack','listenTo','_lastSyncedOperationId','model','collaboration-missing-channelid','targetPosition','realtimecollaborationclient-init-service-internal-error','Notification','change:_isEditingAllowed','getMany','getDocumentDetails','insert','connection','length','isOfficialPlugin','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','_getOperationsFromInitData','set','createPositionAt','locale','affectedSelectable','document','realtimecollaborationclient-error','fire','realtimecollaborationclient-handleserverresponse','startsWith','_handleReconnectionError','addRootAttribute','remove','connected','_ignoredOperations','affectsData','error','code','view','1629tcljbv','2031640qEXrLA','createRange','wereChangesApplied','collaboration.channelId','addUser','isUndoneOperation','string','change:_isPendingUpdate','sessionId','markers','cloud-services-internal-error:\x20Not\x20connected.','_isInit','operationsReceived','pluginName','getIdOfTheLastOperation','createUserMarkerOperations','_handleServerResponse','destroy','attributes','_hasSelectionChanged','toJSON','realtimecollaborationclient-init-service-incorrect-server-operation','addRoot','stop','add','467358FUbbkE','_isConnected','loadRoot','cs:removeUser','_sendBufferedOperationsDelayId','lastSyncVersion','_connectAfterSessionHasBeenFlushed','lastOperationAcceptedAt','differ','_lastServerVersion','PENDING_ACTION_SENDING_DATA','_operationIdentifier','_currentBufferDelay','rootsAttributes','_document','_bufferRootLoad','define','metadata','has','get','suppressErrorInCollaboration','_addKnownRoot','isEnabled','data','_shouldSendUpdate','2424600JleGKH','_baseBufferDelay','baseVersion','Synchronization\x20issue','_updateServerHistory','state','28mKzClT','isDocumentOperation','_getAffectedRoot','directChange','register','batch','initData','getOperations','high','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.','236baMYGy','setPermissions','disconnect','isPremiumPlugin','_decompressOperations','_applyOperationsSet','finally','channelSessions','filter','addOperation','message','getOperationAuthor','_crash','_setPendingAction','requires','reconnection:\x20flushed\x20session','applyOperation','parse','_pendingAction','getConnectedSessions','_isEditingAllowed','version','change:hasDomSelection','createRoot','marker','_hasSynchronizationProblem','isReadOnly','start','_sendBufferedOperationsDelayed','CollaborativeEditingService','_connectService','_saveOperationInBuffer','_isAttached','_isLoaded','multi-root-editor-root-attributes-no-root','9300621CKjpWa','reconnect','realtimecollaborationclient-sendbufferedoperations','sendOperations','_handleExternalOperations','root','decompress','_compressOperations','stopListening','addToReconnectionStack','10yQptnU','404','InsertOperation','_clearPendingAction','__className','_waitUntilSynced','selection','_isDisconnection','permissions','createPositionFromPath','editing','move','CommentsOnly','rtc-offline','_bufferedOperations','ready','from','editor','wasUndone','1992uFSSmp','init','return','disconnected','rootName','_knownOperations','serverHistory','_handleReconnectionResponse','RealTimeCollaborationClient','lastDocumentSession','_authorId','_knownRootNames','slice','offset','_fetchMissingUsers','off','plugins','setIdForTheLastOperation','roots','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','1105QgRYwG','fromJSON','disableReadOnlyMode','cloud-services-internal-error:\x20Request\x20timeout.','_channelId'];_0x5093=function(){return _0x13525f;};return _0x5093();}function Z(_0x5d71a4,_0x38ab64){const _0x13577a=_0x108ca0;for(const _0x516c7e of _0x5d71a4)_0x516c7e[_0x13577a(0x1c6)]=_0x38ab64++;}class tt{[_0x108ca0(0x293)];[_0x108ca0(0x262)];constructor(_0x86d975){const _0x2d028f=_0x108ca0;this[_0x2d028f(0x293)]=_0x86d975,this[_0x2d028f(0x262)]=new WeakMap();}[_0x108ca0(0x1a0)](_0x7641ac){const _0x173a06=_0x108ca0;let _0x3aea28=_0x7641ac[_0x173a06(0x282)];for(;_0x3aea28--;){const _0x2c6c8b=_0x7641ac[_0x3aea28];if(!this[_0x173a06(0x293)][_0x173a06(0x1bd)](_0x2c6c8b)){if(!this[_0x173a06(0x262)][_0x173a06(0x1bd)](_0x2c6c8b)){const _0x14891f=_0xd2597f()[_0x173a06(0x220)](0x1,0x12);this[_0x173a06(0x262)][_0x173a06(0x286)](_0x2c6c8b,_0x14891f);}return this[_0x173a06(0x262)][_0x173a06(0x1be)](_0x2c6c8b);}}}[_0x108ca0(0x225)](_0x583845,_0x1be79b){const _0x128bca=_0x108ca0;if(!_0x1be79b)return;let _0x2d60a8=_0x583845[_0x128bca(0x282)];for(;_0x2d60a8--;){const _0x4647e8=_0x583845[_0x2d60a8];this[_0x128bca(0x293)][_0x128bca(0x1bd)](_0x4647e8)||this[_0x128bca(0x262)][_0x128bca(0x286)](_0x4647e8,_0x1be79b);}}}
|
|
23
|
+
const _0x546035=_0xacb7;function _0xacb7(_0x336cf2,_0x283503){const _0x50a9e3=_0x50a9();return _0xacb7=function(_0xacb795,_0x5e150b){_0xacb795=_0xacb795-0x13b;let _0x376020=_0x50a9e3[_0xacb795];return _0x376020;},_0xacb7(_0x336cf2,_0x283503);}(function(_0x35c5e8,_0x16b5f8){const _0x473fb5=_0xacb7,_0xf2916c=_0x35c5e8();while(!![]){try{const _0x10bef5=-parseInt(_0x473fb5(0x1e1))/0x1+-parseInt(_0x473fb5(0x200))/0x2+-parseInt(_0x473fb5(0x205))/0x3*(-parseInt(_0x473fb5(0x1c3))/0x4)+-parseInt(_0x473fb5(0x180))/0x5+parseInt(_0x473fb5(0x1ab))/0x6*(-parseInt(_0x473fb5(0x141))/0x7)+parseInt(_0x473fb5(0x172))/0x8*(parseInt(_0x473fb5(0x22d))/0x9)+-parseInt(_0x473fb5(0x1f1))/0xa;if(_0x10bef5===_0x16b5f8)break;else _0xf2916c['push'](_0xf2916c['shift']());}catch(_0x2b49ac){_0xf2916c['push'](_0xf2916c['shift']());}}}(_0x50a9,0xbce20));import{Plugin as _0xdfabfd,PendingActions as _0x3cd6bd}from'ckeditor5/src/core.js';import{CKEditorError as _0x32e1ca,version as _0x59c7cf,uid as _0x507741}from'ckeditor5/src/utils.js';import{Notification as _0x3a8667}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x2e243e,NoOperation as _0xfb9705,InsertOperation as _0x3ab784,MarkerOperation as _0x145798,RootAttributeOperation as _0x1a0991,OperationFactory as _0x36a7b9,History as _0x4e25c4}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x461f58}from'./websocketgateway.js';import{Sessions as _0x461c22}from'./sessions.js';import{UserMarkers as _0x3553dc}from'./usermarkers.js';import{getTranslation as _0x3c08bb}from'../common-translations.js';import{Compressor as _0xa0626d}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x1376bb}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x43c1e3,CollaborativeEditingService as _0x5244bf}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let $=0x1;function _0x50a9(){const _0x20e5fc=['reconnect','getUser','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','2385QJjWWw','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','requires','isEnabled','startsWith','getIdOfTheLastOperation','rtc-offline','_pendingAction','_knownRootNames','CollaborativeEditingService','start','high','stop','view','_isLoaded','destroy','applyOperation','realtimecollaborationclient-handleserverresponse','initData','_addKnownRoot','sessionId','_ignoredOperations','entries','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.','_sendBufferedOperationsDelayId','move','9457kEKyOB','filter','_lastSyncedOperationId','_lastServerVersion','string','insert','isDocumentOperation','Synchronization\x20issue','marker','attributes','model','has','differ','_isEditingAllowed','_connectAfterSessionHasBeenFlushed','realtimecollaborationclient-init-document-already-initialized','connected','_handleInitialConnectionData','unregister','Notification','newRange','then','showWarning','define','_authorId','_initThrowingOnDataSet','channelSessions','realtimecollaborationclient-sendbufferedoperations','disableReadOnlyMode','realtimecollaborationclient-error','change:range','cloud-services-internal-error:\x20Not\x20connected.','_handleExternalOperations','createPositionFromPath','permissions','CommentsOnly','from','stopListening','metadata','sessionCreatedAt','return','enableReadOnlyMode','_initSessionsHandling','currentDocumentSession','map','_handleReconnectionResponse','realtimecollaborationclient-init-service-internal-error','includes','getDocumentDetails','22568hMllrx','getConnectedSessions','_loadRoot','_fetchMissingUsers','setPermissions','addToReconnectionStack','_handleReceivedOperations','ready','affectedSelectable','editing','toJSON','end','directChange','_setPendingAction','752005KMQmNt','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.','type','locale','reconnection:\x20flushed\x20session','_shouldSendUpdate','lastSyncVersion','reset','getMany','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','size','isPremiumPlugin','_sendBufferedOperations','addRoot','_disconnectionOperations','change:_isEditingAllowed','isOfficialPlugin','addOperation','createRange','addUser','addRootAttribute','operationsReceived','serverHistory','document:write','_shouldSendSelectionUpdate','__className','collaboration.channelId','length','get','getOperationAuthor','_operationToId','forEach','slice','$root','apply','fromJSON','createRoot','_service','_baseBufferDelay','decompress','compress','_channelId','state','354zULxjr','_handleReconnectionError','round','message','keys','suppressErrorInCollaboration','real-time-collaboration','_saveOperationInBuffer','cloud-services-internal-error:\x20Request\x20timeout.','connection','_operationIdentifier','init','version','selection','push','setIdForTheLastOperation','mySessionId','_bufferedOperations','_isDisconnection','cloudServices.bundleVersion','_crash','multi-root-editor-root-attributes-no-root','cloudDocumentVersion','_currentBufferDelay','9508LAFfzI','_compressOperations','rootsAttributes','cs:removeUser','register','_applyOperationsSet','batch','_bufferRootLoad','_updateServerHistory','realtimecollaborationclient-init-service-incorrect-server-operation','_hasSynchronizationProblem','createdAt','wereChangesApplied','_disconnectService','root','removeFromReconnectionStack','isReadOnly','listenTo','collaboration-missing-channelid','affectsData','enqueueChange','set','path','_decompressOperations','off','getOperations','lastOperationId','targetPosition','roots','isUndoneOperation','651324YtIlaT','_document','_isAttached','finally','collaboration','config','disconnected','offset','baseVersion','_refreshUserSelectionMarkers','pluginName','userId','_hasSelectionChanged','rtc-destroyed','position','_compressor','3701610MuMvsz','_getAffectedRoot','InsertOperation','editor','_handleServerResponse','catch','bind','data','change:_isPendingUpdate','disconnect','fire','_offset','_isConnected','realtimecollaborationclient-init-connection-failed','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','358814qtJVBW','_clearPendingAction','createPositionAt','RealTimeCollaborationClient','plugins','1839BdgAqF','sessionAdd:','_getOperationsFromInitData','lastDocumentSession','loadRoot','markers','parse','wasUndone','404','_waitUntilSynced','lastOperationAcceptedAt','_handleSendingSelectionMarkers','_isPendingUpdate','realtimecollaborationclient-init-non-existent-root','getRoot','connect','code','realtimecollaborationclient','add','_setUpDataInit','realtimecollaborationclient-init-session-connection-error','document','PENDING_ACTION_SENDING_DATA','clone','sendOperations','409','_isInit','rootName','remove','history','_connectService','_knownOperations','createUserMarkerOperations','Permissions','_sendBufferedOperationsDelayed','change:hasDomSelection','error'];_0x50a9=function(){return _0x20e5fc;};return _0x50a9();}export class RealTimeCollaborationClient extends _0xdfabfd{static [_0x546035(0x236)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x5244bf)());[_0x546035(0x1fc)];[_0x546035(0x13b)];[_0x546035(0x196)];[_0x546035(0x1a9)];[_0x546035(0x1a5)];[_0x546035(0x1e2)];[_0x546035(0x1f0)];[_0x546035(0x1bc)];[_0x546035(0x224)];[_0x546035(0x235)];[_0x546035(0x234)];[_0x546035(0x1ed)];[_0x546035(0x13f)];[_0x546035(0x1a6)];[_0x546035(0x1c2)];[_0x546035(0x143)];[_0x546035(0x18e)];[_0x546035(0x1b5)];static get[_0x546035(0x22f)](){return[_0x461f58,_0x461c22,_0x3553dc,_0x3cd6bd,_0x1376bb,_0x3a8667];}static get[_0x546035(0x1eb)](){const _0x90757b=_0x546035;return _0x90757b(0x203);}static get[_0x546035(0x190)](){return!0x0;}static get[_0x546035(0x18b)](){return!0x0;}get[_0x546035(0x1c1)](){const _0x5a917c=_0x546035;return this[_0x5a917c(0x144)]+this[_0x5a917c(0x1fc)];}get[_0x546035(0x144)](){const _0x4a08cc=_0x546035;return this[_0x4a08cc(0x196)][_0x4a08cc(0x1b7)]-this[_0x4a08cc(0x1fc)];}get[_0x546035(0x186)](){const _0x42b3a0=_0x546035,_0x504c81=this[_0x42b3a0(0x196)][_0x42b3a0(0x1dc)]();for(let _0x31a4f8=_0x504c81[_0x42b3a0(0x19b)]-0x1;_0x31a4f8>=0x0;_0x31a4f8--){const _0x2f16ea=_0x504c81[_0x31a4f8];if(!this[_0x42b3a0(0x18e)][_0x42b3a0(0x14c)](_0x2f16ea))return _0x2f16ea[_0x42b3a0(0x1e9)]+0x1-this[_0x42b3a0(0x1fc)];}return 0x0;}constructor(_0x916b3b){const _0x3b774b=_0x546035;if(super(_0x916b3b),this[_0x3b774b(0x1fc)]=0x0,this[_0x3b774b(0x13b)]=null,this[_0x3b774b(0x196)]=new _0x4e25c4(),this[_0x3b774b(0x1f4)][_0x3b774b(0x1e6)][_0x3b774b(0x158)](_0x3b774b(0x1e5),{}),this[_0x3b774b(0x1a9)]=this[_0x3b774b(0x1f4)][_0x3b774b(0x1e6)][_0x3b774b(0x19c)](_0x3b774b(0x19a)),!this[_0x3b774b(0x1a9)])throw new _0x32e1ca(_0x3b774b(0x1d5),this);const _0x541d5c=_0x916b3b[_0x3b774b(0x1e6)][_0x3b774b(0x19c)](_0x3b774b(0x1be))||_0x59c7cf;this[_0x3b774b(0x1a5)]=new RealTimeCollaborationClient[(_0x3b774b(0x236))](_0x541d5c,this[_0x3b774b(0x1a9)]),this[_0x3b774b(0x1e2)]=this[_0x3b774b(0x1f4)][_0x3b774b(0x14b)][_0x3b774b(0x21a)],this[_0x3b774b(0x1f0)]=new _0xa0626d(),this[_0x3b774b(0x1bc)]=[],this[_0x3b774b(0x224)]=new WeakSet(),this[_0x3b774b(0x235)]=new Set(),this[_0x3b774b(0x1d8)](_0x3b774b(0x211),!0x1),this[_0x3b774b(0x1d8)](_0x3b774b(0x1cd),!0x1),this[_0x3b774b(0x234)]=null,this[_0x3b774b(0x1ed)]=!0x1,this[_0x3b774b(0x13f)]=null,this[_0x3b774b(0x1a6)]=0x12c,this[_0x3b774b(0x1c2)]=this[_0x3b774b(0x1a6)],this[_0x3b774b(0x143)]=null,this[_0x3b774b(0x18e)]=new WeakSet(),this[_0x3b774b(0x1b5)]=new Q(this[_0x3b774b(0x18e)]);}[_0x546035(0x1b6)](){const _0x651767=_0x546035,_0x2a20e5=this[_0x651767(0x1f4)],_0x1a53b5=_0x2a20e5[_0x651767(0x204)][_0x651767(0x19c)](_0x1376bb),_0xb2b239=_0x2a20e5[_0x651767(0x204)][_0x651767(0x19c)](_0x461f58);this[_0x651767(0x1d4)](_0x1a53b5,_0x651767(0x19d),(_0x4af868,_0x2a52a0)=>{const _0xf8a775=_0x651767,_0x925253=_0x2a52a0[0x0];_0x925253[_0xf8a775(0x159)]&&(_0x4af868[_0xf8a775(0x169)]=_0x1a53b5[_0xf8a775(0x22b)](_0x925253[_0xf8a775(0x159)]),_0x4af868[_0xf8a775(0x239)]()),null===_0x925253[_0xf8a775(0x159)]&&(_0x4af868[_0xf8a775(0x169)]=null,_0x4af868[_0xf8a775(0x239)]());},{'priority':_0x651767(0x238)}),this[_0x651767(0x1d4)](_0x2a20e5[_0x651767(0x14b)][_0x651767(0x21a)][_0x651767(0x1b8)],_0x651767(0x15f),(_0x3a50a2,_0x9fd1db)=>{const _0x52ce73=_0x651767;_0x9fd1db[_0x52ce73(0x17e)]&&this[_0x52ce73(0x1ea)]();}),this[_0x651767(0x1d4)](_0x2a20e5[_0x651767(0x17b)][_0x651767(0x23a)],_0x651767(0x228),()=>{const _0x2a2ed6=_0x651767;this[_0x2a2ed6(0x1ea)]();}),this[_0x651767(0x15a)](),_0x2a20e5[_0x651767(0x14b)]['on'](_0x651767(0x23d),(_0x4bd819,_0x39e54d)=>{const _0x55a68a=_0x651767,_0x160aec=_0x39e54d[0x0];_0x160aec[_0x55a68a(0x147)]&&(this[_0x55a68a(0x1b2)](_0x160aec),this[_0x55a68a(0x185)]()&&this[_0x55a68a(0x227)]());}),this[_0x651767(0x218)](),this[_0x651767(0x1f7)](_0x651767(0x14e))['to'](_0xb2b239,_0x651767(0x1aa),this,_0x651767(0x1cd),(_0x39fe8b,_0xab6cc)=>_0x651767(0x151)===_0x39fe8b&&!_0xab6cc),this['on'](_0x651767(0x18f),()=>{const _0x17529c=_0x651767;this[_0x17529c(0x14e)]?_0x2a20e5[_0x17529c(0x15d)](_0x17529c(0x233)):_0x2a20e5[_0x17529c(0x16a)](_0x17529c(0x233));}),this[_0x651767(0x14e)]?_0x2a20e5[_0x651767(0x15d)](_0x651767(0x233)):_0x2a20e5[_0x651767(0x16a)](_0x651767(0x233)),this[_0x651767(0x1d8)](_0x651767(0x1fd),!0x1);}async[_0x546035(0x22a)](){const _0x5ba0d0=_0x546035,_0x2a77e8=this[_0x5ba0d0(0x1f4)][_0x5ba0d0(0x204)][_0x5ba0d0(0x19c)](_0x461c22),_0xf93fe=this[_0x5ba0d0(0x1f4)][_0x5ba0d0(0x204)][_0x5ba0d0(0x19c)](_0x461f58);try{this[_0x5ba0d0(0x211)]=!0x0,_0x2a77e8[_0x5ba0d0(0x153)](this[_0x5ba0d0(0x1a9)]);const _0x536673=await this[_0x5ba0d0(0x1a5)][_0x5ba0d0(0x22a)](_0xf93fe[_0x5ba0d0(0x1b4)],this[_0x5ba0d0(0x186)]);await this[_0x5ba0d0(0x16e)](_0x536673)&&(this[_0x5ba0d0(0x211)]=!0x1,this[_0x5ba0d0(0x201)]());const _0x33d13e=await this[_0x5ba0d0(0x1a5)][_0x5ba0d0(0x173)]();_0x2a77e8[_0x5ba0d0(0x1c7)](this[_0x5ba0d0(0x1a9)],_0x33d13e),this[_0x5ba0d0(0x210)](),this[_0x5ba0d0(0x1fd)]=!0x0;}catch(_0x487bab){if(function(_0x5c2288){const _0x5d5cc9=_0x5ba0d0;return _0x5d5cc9(0x20d)===_0x5c2288[_0x5d5cc9(0x215)];}(_0x487bab)&&this[_0x5ba0d0(0x13b)])await this[_0x5ba0d0(0x14f)]();else{if(function(_0x1f4c7f){const _0x230d90=_0x5ba0d0;return _0x230d90(0x21e)===_0x1f4c7f[_0x230d90(0x215)];}(_0x487bab)){const _0x37a5b4=_0x3c08bb(this[_0x5ba0d0(0x1f4)][_0x5ba0d0(0x183)],_0x5ba0d0(0x22c));this[_0x5ba0d0(0x1ac)](_0x37a5b4);}else{if(!(_0x487bab instanceof K))throw _0x487bab;this[_0x5ba0d0(0x1ac)]();}}}}[_0x546035(0x23c)](){const _0x34a55c=_0x546035,_0x527d32=this[_0x34a55c(0x1f4)][_0x34a55c(0x204)][_0x34a55c(0x19c)](_0x461f58),_0x3ed15c=this[_0x34a55c(0x1f4)][_0x34a55c(0x204)][_0x34a55c(0x19c)](_0x461c22);this[_0x34a55c(0x1f4)][_0x34a55c(0x16a)](_0x34a55c(0x1ee)),_0x3ed15c[_0x34a55c(0x15b)][_0x34a55c(0x14c)](this[_0x34a55c(0x1a9)])&&_0x3ed15c[_0x34a55c(0x153)](this[_0x34a55c(0x1a9)]),_0x527d32[_0x34a55c(0x1d2)](this),this[_0x34a55c(0x1d0)](),super[_0x34a55c(0x23c)]();}async[_0x546035(0x16e)](_0x2c173f){const _0x555252=_0x546035;if(this[_0x555252(0x13b)]!==_0x2c173f[_0x555252(0x13b)]&&this[_0x555252(0x143)]!==_0x2c173f[_0x555252(0x1dd)])throw new K();return this[_0x555252(0x13b)]=_0x2c173f[_0x555252(0x13b)],this[_0x555252(0x1f5)]([],{..._0x2c173f,'wereChangesApplied':!0x1,'data':_0x2c173f[_0x555252(0x1f8)]},_0x555252(0x22a));}async[_0x546035(0x223)](_0x118ce3,_0xc3c427=!0x1){const _0x404425=_0x546035,{connection:_0xcd5f7e}=this[_0x404425(0x1f4)][_0x404425(0x204)][_0x404425(0x19c)](_0x461f58);RealTimeCollaborationClient[_0x404425(0x236)][_0x404425(0x173)](_0xcd5f7e,this[_0x404425(0x1a9)])[_0x404425(0x156)](_0x2d5942=>this[_0x404425(0x16b)](_0x2d5942))[_0x404425(0x1f6)](_0x1ec2d9=>{const _0x4dd0c3=_0x404425;this[_0x4dd0c3(0x1bf)](_0x4dd0c3(0x219),_0x1ec2d9);}),this[_0x404425(0x1d4)](this[_0x404425(0x1a5)],_0x404425(0x195),this[_0x404425(0x178)][_0x404425(0x1f7)](this)),this[_0x404425(0x1d4)](this[_0x404425(0x1a5)],_0x404425(0x229),(_0x257172,_0x35f4dd)=>{const _0x210285=_0x404425;this[_0x210285(0x1bf)](_0x210285(0x16f),_0x35f4dd);}),this[_0x404425(0x1d4)](this[_0x404425(0x1a5)],_0x404425(0x1e7),()=>{const _0x25befb=_0x404425;this[_0x25befb(0x1fd)]=!0x1;});const _0xd99b22=this[_0x404425(0x1b5)][_0x404425(0x232)](_0x118ce3);this[_0x404425(0x211)]=!0x0;const _0x448cd9=await this[_0x404425(0x1a5)][_0x404425(0x214)](_0xcd5f7e,this[_0x404425(0x1c4)](_0x118ce3),_0xd99b22);if(this[_0x404425(0x13b)]=_0x448cd9[_0x404425(0x13b)],_0xc3c427){if(!_0x448cd9[_0x404425(0x1cf)])return void this[_0x404425(0x1ac)]();this[_0x404425(0x211)]=!0x1,this[_0x404425(0x201)](),this[_0x404425(0x196)][_0x404425(0x187)](),this[_0x404425(0x1fc)]=_0x448cd9[_0x404425(0x1e8)],this[_0x404425(0x196)][_0x404425(0x1b7)]=this[_0x404425(0x1fc)],await this[_0x404425(0x1f5)](_0x118ce3,_0x448cd9,_0x404425(0x184));}else await this[_0x404425(0x152)](_0x448cd9,_0x118ce3);this[_0x404425(0x210)](),this[_0x404425(0x1fd)]=!0x0;}[_0x546035(0x210)](){const _0x43f102=_0x546035,_0x18f544=this[_0x43f102(0x1f4)][_0x43f102(0x204)][_0x43f102(0x19c)](_0x461c22),_0x5509aa=this[_0x43f102(0x1f4)][_0x43f102(0x204)][_0x43f102(0x19c)](_0x3553dc),_0x3769b3=_0x18f544[_0x43f102(0x15b)][_0x43f102(0x19c)](this[_0x43f102(0x1a9)]);_0x3769b3&&_0x3769b3[_0x43f102(0x19b)]>0x1?_0x5509aa[_0x43f102(0x225)]():this[_0x43f102(0x1d4)](_0x18f544,_0x43f102(0x206)+this[_0x43f102(0x1a9)],()=>{const _0x45c605=_0x43f102;0x2===_0x18f544[_0x45c605(0x15b)][_0x45c605(0x19c)](this[_0x45c605(0x1a9)])[_0x45c605(0x19b)]&&_0x5509aa[_0x45c605(0x225)]();});}async[_0x546035(0x178)](_0x159219,_0x11aaef,_0x2f152e,_0x49e002){const _0x4fdfd9=_0x546035;if(!this[_0x4fdfd9(0x211)]&&this[_0x4fdfd9(0x1e2)][_0x4fdfd9(0x1b7)]==_0x11aaef){const _0x1e156a=this[_0x4fdfd9(0x1da)](_0x2f152e,_0x49e002);await this[_0x4fdfd9(0x175)](_0x1e156a),this[_0x4fdfd9(0x161)](_0x1e156a,_0x11aaef,_0x2f152e[_0x4fdfd9(0x1dd)])||this[_0x4fdfd9(0x1bf)](_0x4fdfd9(0x1cc));}}async[_0x546035(0x14f)](){const _0x576d3f=_0x546035;this[_0x576d3f(0x1d0)]();const {locale:_0x2e4fe3}=this[_0x576d3f(0x1f4)];let _0x2b69fe;try{_0x2b69fe=await this[_0x576d3f(0x1a5)][_0x576d3f(0x171)]();}catch{const _0x4f16bd=_0x3c08bb(_0x2e4fe3,_0x576d3f(0x22e));return void this[_0x576d3f(0x1ac)](_0x4f16bd);}const _0x3156f5=_0x2b69fe[_0x576d3f(0x16c)]||_0x2b69fe[_0x576d3f(0x208)];if(this[_0x576d3f(0x143)]!==_0x3156f5[_0x576d3f(0x1dd)]){const _0x48b6e7=_0x3c08bb(_0x2e4fe3,_0x576d3f(0x13e));return void this[_0x576d3f(0x1ac)](_0x48b6e7);}await this[_0x576d3f(0x223)](this[_0x576d3f(0x1f4)][_0x576d3f(0x14b)][_0x576d3f(0x21a)][_0x576d3f(0x222)][_0x576d3f(0x1dc)](),!0x0);}[_0x546035(0x1d0)](){const _0x1d87a2=_0x546035;this[_0x1d87a2(0x1a5)][_0x1d87a2(0x1fa)](),this[_0x1d87a2(0x1bc)]=[],clearTimeout(this[_0x1d87a2(0x13f)]),this[_0x1d87a2(0x166)](this[_0x1d87a2(0x1a5)]);}[_0x546035(0x16b)](_0xb9be5a){const _0x47009c=_0x546035,_0x2e4ccb=this[_0x47009c(0x1f4)][_0x47009c(0x204)][_0x47009c(0x19c)](_0x461c22);this[_0x47009c(0x1d4)](_0x2e4ccb,_0x47009c(0x206)+this[_0x47009c(0x1a9)],(_0x38a540,{session:_0x3431e6})=>{const _0x4c1038=_0x47009c;if(_0x3431e6['id']===_0x2e4ccb[_0x4c1038(0x1bb)]){_0x38a540[_0x4c1038(0x1db)]();const _0x45fe26=this[_0x4c1038(0x1f4)][_0x4c1038(0x204)][_0x4c1038(0x14c)](_0x4c1038(0x164))&&this[_0x4c1038(0x1f4)][_0x4c1038(0x204)][_0x4c1038(0x19c)](_0x4c1038(0x164));let _0x287b39=_0x3431e6[_0x4c1038(0x163)];_0x45fe26&&_0x45fe26[_0x4c1038(0x230)]&&(_0x287b39=_0x287b39[_0x4c1038(0x142)](_0x39ae6e=>_0x4c1038(0x197)!==_0x39ae6e)),this[_0x4c1038(0x1f4)][_0x4c1038(0x204)][_0x4c1038(0x19c)](_0x4c1038(0x226))[_0x4c1038(0x176)](_0x287b39,this[_0x4c1038(0x1a9)]);}}),_0x2e4ccb[_0x47009c(0x1c7)](this[_0x47009c(0x1a9)],_0xb9be5a);}[_0x546035(0x15a)](){const _0x40c065=_0x546035,_0x4a480f=this[_0x40c065(0x1f4)][_0x40c065(0x1f8)][_0x40c065(0x1d8)];this[_0x40c065(0x1f4)][_0x40c065(0x1f8)][_0x40c065(0x1d8)]=(..._0x1b1e46)=>{const _0x3c0adc=_0x40c065;if(!_0x1b1e46[_0x1b1e46[_0x3c0adc(0x19b)]-0x1][_0x3c0adc(0x1b0)])throw new _0x32e1ca(_0x3c0adc(0x1ff),this);_0x4a480f[_0x3c0adc(0x1a2)](this[_0x3c0adc(0x1f4)][_0x3c0adc(0x1f8)],_0x1b1e46);};}[_0x546035(0x218)](){const _0x4fb0e8=_0x546035;this[_0x4fb0e8(0x1f4)][_0x4fb0e8(0x1f8)]['on'](_0x4fb0e8(0x1b6),(_0x2d21dd,[_0x15c5c5])=>{const _0x44f9ec=_0x4fb0e8;if(this[_0x44f9ec(0x1e2)][_0x44f9ec(0x1b7)])throw new _0x32e1ca(_0x44f9ec(0x150),this);_0x2d21dd[_0x44f9ec(0x239)](),this[_0x44f9ec(0x17f)]();const _0x1be37f=this[_0x44f9ec(0x1f4)][_0x44f9ec(0x1e6)][_0x44f9ec(0x19c)](_0x44f9ec(0x1c5)),_0x424c46=this[_0x44f9ec(0x207)](_0x15c5c5,_0x1be37f);0x0==_0x424c46[_0x44f9ec(0x19b)]&&_0x424c46[_0x44f9ec(0x1b9)](new _0xfb9705(0x0)),_0x2d21dd[_0x44f9ec(0x169)]=this[_0x44f9ec(0x223)](_0x424c46)[_0x44f9ec(0x156)](()=>{const _0x38953f=_0x44f9ec;this[_0x38953f(0x1f4)][_0x38953f(0x204)][_0x38953f(0x19c)](_0x461f58)[_0x38953f(0x177)](this),this[_0x38953f(0x1f4)][_0x38953f(0x1f8)][_0x38953f(0x1fb)](_0x38953f(0x179));})[_0x44f9ec(0x1f6)](_0x112c9c=>this[_0x44f9ec(0x1bf)](_0x44f9ec(0x1fe),_0x112c9c))[_0x44f9ec(0x1e4)](()=>this[_0x44f9ec(0x201)]());},{'priority':_0x4fb0e8(0x238)}),this[_0x4fb0e8(0x1f4)]['on'](_0x4fb0e8(0x209),async(_0x4b2db5,[_0x5f9036,_0x45dccb])=>{const _0x4a7aec=_0x4fb0e8;_0x4b2db5[_0x4a7aec(0x239)]();const _0x2b09d1=this[_0x4a7aec(0x1f4)][_0x4a7aec(0x14b)][_0x4a7aec(0x21a)][_0x4a7aec(0x213)](_0x5f9036);if(!this[_0x4a7aec(0x235)][_0x4a7aec(0x14c)](_0x5f9036)){const _0x3d859a=_0x45dccb&&_0x45dccb[_0x4a7aec(0x1f8)]?_0x45dccb[_0x4a7aec(0x1f8)]:'',_0x12d04f=_0x45dccb&&_0x45dccb[_0x4a7aec(0x14a)]?_0x45dccb[_0x4a7aec(0x14a)]:{};await this[_0x4a7aec(0x174)](_0x5f9036,_0x3d859a,_0x12d04f);}this[_0x4a7aec(0x1f4)][_0x4a7aec(0x14b)][_0x4a7aec(0x1d7)]({'isUndoable':!0x1},()=>{const _0x3a2ba9=_0x4a7aec;_0x2b09d1[_0x3a2ba9(0x23b)]=!0x0,this[_0x3a2ba9(0x1f4)][_0x3a2ba9(0x14b)][_0x3a2ba9(0x21a)][_0x3a2ba9(0x14d)][_0x3a2ba9(0x1ca)](_0x2b09d1);});},{'priority':_0x4fb0e8(0x238)});}async[_0x546035(0x175)](_0x59677a){const _0x12cb0e=_0x546035,_0x297d68=this[_0x12cb0e(0x1f4)][_0x12cb0e(0x204)][_0x12cb0e(0x19c)](_0x1376bb),{connection:_0x584994}=this[_0x12cb0e(0x1f4)][_0x12cb0e(0x204)][_0x12cb0e(0x19c)](_0x461f58),_0x1519db=new Set();for(const _0x30d078 of _0x59677a){const _0x5099c7=_0x30d078[_0x12cb0e(0x159)];_0x5099c7&&!_0x297d68[_0x12cb0e(0x22b)](_0x5099c7)&&_0x1519db[_0x12cb0e(0x217)](_0x5099c7);}if(0x0===_0x1519db[_0x12cb0e(0x18a)])return;const _0x177d74=await _0x43c1e3[_0x12cb0e(0x188)](_0x584994,Array[_0x12cb0e(0x165)](_0x1519db));for(const _0x14c9f4 of _0x177d74)_0x297d68[_0x12cb0e(0x22b)](_0x14c9f4['id'])||_0x297d68[_0x12cb0e(0x193)](_0x14c9f4);}[_0x546035(0x207)](_0x18d17b,_0x580976={}){const _0x4b67ca=_0x546035,_0x43af02=this[_0x4b67ca(0x1f4)][_0x4b67ca(0x14b)],_0x5570bd=[];let _0x196247=0x0;const _0x33b770=_0x4b67ca(0x145)==typeof _0x18d17b?{'main':_0x18d17b}:_0x18d17b;for(const _0x3206f4 of Object[_0x4b67ca(0x1af)](_0x33b770)){if(!this[_0x4b67ca(0x1e2)][_0x4b67ca(0x1df)][_0x4b67ca(0x14c)](_0x3206f4))throw new _0x32e1ca(_0x4b67ca(0x212),this);const _0x97e93c=this[_0x4b67ca(0x1f4)][_0x4b67ca(0x1f8)][_0x4b67ca(0x20b)](_0x33b770[_0x3206f4]),_0x42251b=this[_0x4b67ca(0x1e2)][_0x4b67ca(0x213)](_0x3206f4),_0x54cb9c=new _0x3ab784(_0x43af02[_0x4b67ca(0x202)](_0x42251b,0x0),_0x97e93c,_0x196247++);_0x5570bd[_0x4b67ca(0x1b9)](_0x54cb9c);for(const [_0x2a9e9b,_0x1c411b]of _0x97e93c[_0x4b67ca(0x20a)]){const _0x180ede=_0x43af02[_0x4b67ca(0x192)](_0x43af02[_0x4b67ca(0x162)](_0x42251b,_0x1c411b[_0x4b67ca(0x237)][_0x4b67ca(0x1d9)][_0x4b67ca(0x1a0)]()),_0x43af02[_0x4b67ca(0x162)](_0x42251b,_0x1c411b[_0x4b67ca(0x17d)][_0x4b67ca(0x1d9)][_0x4b67ca(0x1a0)]())),_0x1e06ff=new _0x145798(_0x2a9e9b,null,_0x180ede,_0x43af02[_0x4b67ca(0x20a)],!0x0,_0x196247++);_0x5570bd[_0x4b67ca(0x1b9)](_0x1e06ff);}}if(_0x580976)for(const [_0x2f2b56,_0x45ae3b]of Object[_0x4b67ca(0x13d)](_0x580976)){const _0x3ecf8b=_0x43af02[_0x4b67ca(0x21a)][_0x4b67ca(0x213)](_0x2f2b56);if(!_0x3ecf8b)throw new _0x32e1ca(_0x4b67ca(0x1c0),null);for(const [_0x1c66b8,_0x3ddb78]of Object[_0x4b67ca(0x13d)](_0x45ae3b))if(null!==_0x3ddb78){const _0x2dae3f=new _0x1a0991(_0x3ecf8b,_0x1c66b8,null,_0x3ddb78,_0x196247++);_0x5570bd[_0x4b67ca(0x1b9)](_0x2dae3f);}}return _0x5570bd;}async[_0x546035(0x174)](_0x1334d3,_0x3bda13,_0x392111){const _0x4e52d1=_0x546035;this[_0x4e52d1(0x207)]({[_0x1334d3]:_0x3bda13},{[_0x1334d3]:_0x392111})[_0x4e52d1(0x19f)]((_0x31b95b,_0x4a5e1b)=>{const _0x251613=_0x4e52d1;_0x31b95b[_0x251613(0x1e9)]=this[_0x251613(0x1e2)][_0x251613(0x1b7)]+_0x4a5e1b,_0x31b95b[_0x251613(0x21f)]=!0x0,this[_0x251613(0x1b2)](_0x31b95b);}),this[_0x4e52d1(0x227)](),await this[_0x4e52d1(0x20e)]();}async[_0x546035(0x152)](_0x3170b9,_0x2538c2){const _0x49cac0=_0x546035;let _0x522556;this[_0x49cac0(0x1fc)]=_0x3170b9[_0x49cac0(0x1e8)];const _0x1bfc53=_0x3170b9[_0x49cac0(0x1cf)]&&!_0x3170b9[_0x49cac0(0x23f)],_0x153475=_0x1bfc53?0x0:_0x3170b9[_0x49cac0(0x1f8)][_0x49cac0(0x1e9)];if(_0x2538c2[_0x49cac0(0x19f)](_0x2e4578=>{const _0x4347a0=_0x49cac0;_0x2e4578[_0x4347a0(0x21f)]=!0x0,_0x2e4578[_0x4347a0(0x1ce)]=_0x3170b9[_0x4347a0(0x168)],_0x2e4578[_0x4347a0(0x159)]=null;}),_0x1bfc53)_0x522556=_0x2538c2,this[_0x49cac0(0x1c8)](_0x522556,_0x1bfc53);else{if(_0x3170b9[_0x49cac0(0x23f)]){const _0x31b2c2=this[_0x49cac0(0x207)](_0x3170b9[_0x49cac0(0x23f)]);this[_0x49cac0(0x1e2)][_0x49cac0(0x222)][_0x49cac0(0x1b7)]=-_0x31b2c2[_0x49cac0(0x19b)],_0x31b2c2[_0x49cac0(0x19f)](_0x1a7f5f=>{const _0x3584bf=_0x49cac0;_0x1a7f5f[_0x3584bf(0x1e9)]-=_0x31b2c2[_0x3584bf(0x19b)],_0x1a7f5f[_0x3584bf(0x1ce)]=_0x3170b9[_0x3584bf(0x168)],_0x1a7f5f[_0x3584bf(0x21f)]=!0x0,_0x1a7f5f[_0x3584bf(0x159)]=null;}),this[_0x49cac0(0x1c8)](_0x31b2c2,!0x0),this[_0x49cac0(0x196)][_0x49cac0(0x1b7)]=-_0x31b2c2[_0x49cac0(0x19b)]+this[_0x49cac0(0x1fc)],this[_0x49cac0(0x1cb)](_0x31b2c2);}this[_0x49cac0(0x1e2)][_0x49cac0(0x222)][_0x49cac0(0x1b7)]=_0x153475,_0x522556=this[_0x49cac0(0x1da)](_0x3170b9[_0x49cac0(0x1f8)],_0x3170b9[_0x49cac0(0x167)]),await this[_0x49cac0(0x175)](_0x522556),this[_0x49cac0(0x1c8)](_0x522556,_0x1bfc53);}_0x3170b9[_0x49cac0(0x1dd)]&&(this[_0x49cac0(0x1b5)][_0x49cac0(0x1ba)](_0x522556,_0x3170b9[_0x49cac0(0x1dd)]),this[_0x49cac0(0x143)]=_0x3170b9[_0x49cac0(0x1dd)]),this[_0x49cac0(0x196)][_0x49cac0(0x1b7)]=_0x153475+this[_0x49cac0(0x1fc)],this[_0x49cac0(0x1cb)](_0x522556),_0x2538c2[_0x49cac0(0x142)](_0x5e97e6=>{const _0x33506b=_0x49cac0,_0x4919c3=this[_0x33506b(0x1f2)](_0x5e97e6);return _0x4919c3&&!this[_0x33506b(0x235)][_0x33506b(0x14c)](_0x4919c3);})[_0x49cac0(0x19f)]((_0xfd2fb7,_0x5a3a8c)=>{const _0x5cd350=_0x49cac0;_0xfd2fb7[_0x5cd350(0x1e9)]=this[_0x5cd350(0x1e2)][_0x5cd350(0x1b7)]+_0x5a3a8c,this[_0x5cd350(0x1b2)](_0xfd2fb7);}),this[_0x49cac0(0x185)]()?(this[_0x49cac0(0x1c2)]=0x0,this[_0x49cac0(0x227)](!0x0),await this[_0x49cac0(0x20e)]()):(this[_0x49cac0(0x211)]=!0x1,this[_0x49cac0(0x201)]());}[_0x546035(0x1bf)](_0x58f0d1,_0x7dc4b9){const _0x5438f8=_0x546035,_0x58446a=_0x7dc4b9&&_0x7dc4b9[_0x5438f8(0x1ae)];if(_0x58446a&&_0x58446a[_0x5438f8(0x231)](_0x5438f8(0x216)))throw _0x7dc4b9;const _0x38f5e9=this[_0x5438f8(0x1f4)][_0x5438f8(0x204)][_0x5438f8(0x19c)](_0x461f58);throw this[_0x5438f8(0x211)]=!0x0,_0x38f5e9[_0x5438f8(0x1fa)](),this[_0x5438f8(0x1f4)][_0x5438f8(0x16a)](_0x5438f8(0x15e)),new _0x32e1ca(_0x58f0d1,this[_0x5438f8(0x1f4)],_0x58446a?{'originalError':_0x58446a}:void 0x0);}[_0x546035(0x1b2)](_0x2a8432){const _0x5ad892=_0x546035;this[_0x5ad892(0x224)][_0x5ad892(0x14c)](_0x2a8432)||(this[_0x5ad892(0x224)][_0x5ad892(0x217)](_0x2a8432),this[_0x5ad892(0x1bc)][_0x5ad892(0x1b9)](_0x2a8432),this[_0x5ad892(0x234)]||_0x5ad892(0x149)==_0x2a8432[_0x5ad892(0x182)]&&!_0x2a8432[_0x5ad892(0x1d6)]||this[_0x5ad892(0x17f)]());}[_0x546035(0x227)](_0x504f96=!0x1){const _0xdb7200=_0x546035;!_0x504f96&&this[_0xdb7200(0x211)]||(this[_0xdb7200(0x211)]=!0x0,clearTimeout(this[_0xdb7200(0x13f)]),this[_0xdb7200(0x13f)]=setTimeout(()=>{const _0x1152e9=_0xdb7200;this[_0x1152e9(0x18c)]()[_0x1152e9(0x156)](_0x439c49=>{const _0x267c26=_0x1152e9;_0x439c49&&(this[_0x267c26(0x201)](),this[_0x267c26(0x211)]=!0x1);})[_0x1152e9(0x1f6)](_0x1764ed=>{const _0x3f9d6d=_0x1152e9;this[_0x3f9d6d(0x201)](),this[_0x3f9d6d(0x211)]=!0x1,function(_0x6c4f63){const _0x3e69d7=_0x3f9d6d;return _0x6c4f63[_0x3e69d7(0x1ae)][_0x3e69d7(0x231)](_0x3e69d7(0x160))||_0x6c4f63[_0x3e69d7(0x1ae)][_0x3e69d7(0x231)](_0x3e69d7(0x189))||_0x6c4f63[_0x3e69d7(0x1ae)][_0x3e69d7(0x231)](_0x3e69d7(0x1b3));}(_0x1764ed)||this[_0x3f9d6d(0x1bf)](_0x1764ed[_0x3f9d6d(0x1ae)],_0x1764ed);});},this[_0xdb7200(0x1c2)]));}[_0x546035(0x20e)](){return new Promise(_0x4cbb8f=>{const _0x4b29fd=_0xacb7;this['on'](_0x4b29fd(0x1f9),()=>{_0x4cbb8f();});});}async[_0x546035(0x18c)](){const _0x24c8bd=_0x546035,_0x39682c=this[_0x24c8bd(0x1f4)][_0x24c8bd(0x204)][_0x24c8bd(0x19c)](_0x3553dc);if(this[_0x24c8bd(0x198)]()&&(_0x39682c[_0x24c8bd(0x225)](),this[_0x24c8bd(0x1ed)]=!0x1),!this[_0x24c8bd(0x185)]())return!0x0;const _0x36e53a=[...this[_0x24c8bd(0x1bc)]];for(const _0x36c120 of _0x36e53a)_0x36c120[_0x24c8bd(0x20c)]=this[_0x24c8bd(0x1e2)][_0x24c8bd(0x222)][_0x24c8bd(0x1e0)](_0x36c120);const _0x3bc41f=this[_0x24c8bd(0x1b5)][_0x24c8bd(0x232)](_0x36e53a),_0x308f76=$++,_0x20d691=this[_0x24c8bd(0x1c4)](_0x36e53a),_0x40efd6=await this[_0x24c8bd(0x1a5)][_0x24c8bd(0x21d)](_0x20d691,_0x20d691[_0x24c8bd(0x1e9)],_0x3bc41f);try{return await this[_0x24c8bd(0x1f5)](_0x36e53a,_0x40efd6,_0x308f76);}catch(_0x122db0){return this[_0x24c8bd(0x1bf)](_0x24c8bd(0x15c),_0x122db0);}}async[_0x546035(0x1f5)](_0x49c7ca,_0x24008f,_0x118afd){const _0x105f61=_0x546035;if(_0x105f61(0x229)in _0x24008f)throw _0x24008f[_0x105f61(0x229)];let _0x46e2e2=!0x1;if(_0x24008f[_0x105f61(0x1cf)]){_0x24008f[_0x105f61(0x1dd)]&&(this[_0x105f61(0x143)]=_0x24008f[_0x105f61(0x1dd)]),this[_0x105f61(0x1bc)]=this[_0x105f61(0x1bc)][_0x105f61(0x142)](_0x53dbc2=>!_0x49c7ca[_0x105f61(0x170)](_0x53dbc2));for(const _0x2b70f8 of _0x49c7ca)_0x2b70f8[_0x105f61(0x1ce)]=_0x105f61(0x20f)in _0x24008f&&_0x24008f[_0x105f61(0x20f)]||void 0x0;J(_0x49c7ca,_0x24008f[_0x105f61(0x1b7)]-_0x49c7ca[_0x105f61(0x19b)]),this[_0x105f61(0x1cb)](_0x49c7ca);const _0x3b8d25=_0x49c7ca[_0x105f61(0x142)](_0x18ecb9=>{const _0x3b0589=_0x105f61;if(!_0x18ecb9[_0x3b0589(0x21f)])return!0x1;const _0xb16d07=this[_0x3b0589(0x1f2)](_0x18ecb9);return _0xb16d07&&!this[_0x3b0589(0x235)][_0x3b0589(0x14c)](_0xb16d07);});J(_0x3b8d25,this[_0x105f61(0x1e2)][_0x105f61(0x1b7)]),this[_0x105f61(0x1c8)](_0x3b8d25),_0x46e2e2=!0x0,this[_0x105f61(0x1c2)]=this[_0x105f61(0x1a6)];}else{const _0x4bef8a=this[_0x105f61(0x1da)](_0x24008f[_0x105f61(0x1f8)],_0x24008f[_0x105f61(0x167)])[_0x105f61(0x142)](_0x181ec6=>_0x181ec6[_0x105f61(0x1e9)]>=this[_0x105f61(0x144)]);_0x4bef8a[_0x105f61(0x19f)](_0x215e0a=>this[_0x105f61(0x240)](_0x215e0a)),this[_0x105f61(0x1bc)]=this[_0x105f61(0x1bc)][_0x105f61(0x142)](_0x54c390=>!_0x54c390[_0x105f61(0x21f)]||!this[_0x105f61(0x235)][_0x105f61(0x14c)](this[_0x105f61(0x1f2)](_0x54c390))),this[_0x105f61(0x1bc)][_0x105f61(0x19b)]&&J(this[_0x105f61(0x1bc)],this[_0x105f61(0x1bc)][0x0][_0x105f61(0x1e9)]),await this[_0x105f61(0x175)](_0x4bef8a),_0x46e2e2=this[_0x105f61(0x161)](_0x4bef8a,_0x24008f[_0x105f61(0x1b7)],_0x24008f[_0x105f61(0x1dd)]),this[_0x105f61(0x1c2)]=Math[_0x105f61(0x1ad)](this[_0x105f61(0x1c2)]/0x2);}return _0x46e2e2?!this[_0x105f61(0x185)]()||(this[_0x105f61(0x227)](!0x0),!0x1):this[_0x105f61(0x1bf)](_0x105f61(0x23e));}[_0x546035(0x161)](_0x5116a2,_0x23af1f,_0x54aa26){const _0x3ac3b6=_0x546035;try{const _0x33cbb9={'document':this[_0x3ac3b6(0x1e2)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x25bfcc,operationsB:_0xac8bc4,originalOperations:_0x4bccfc}=_0x2e243e(_0x5116a2,this[_0x3ac3b6(0x1bc)],_0x33cbb9);J(_0x25bfcc,this[_0x3ac3b6(0x1e2)][_0x3ac3b6(0x1b7)]),J(_0xac8bc4,_0x23af1f);for(const _0x3ba128 of _0x25bfcc){const _0x47be5d=_0x4bccfc[_0x3ac3b6(0x19c)](_0x3ba128);_0x3ba128[_0x3ac3b6(0x159)]=_0x47be5d?_0x47be5d[_0x3ac3b6(0x159)]:null;}_0x54aa26&&(this[_0x3ac3b6(0x1b5)][_0x3ac3b6(0x1ba)](_0x5116a2,_0x54aa26),this[_0x3ac3b6(0x143)]=_0x54aa26),this[_0x3ac3b6(0x1bc)]=[..._0xac8bc4],this[_0x3ac3b6(0x1c8)](_0x25bfcc),this[_0x3ac3b6(0x1cb)](_0x5116a2);}catch(_0x359003){return console[_0x3ac3b6(0x229)](_0x359003),!0x1;}return!0x0;}[_0x546035(0x1c8)](_0x37dd10,_0x333661=!0x1){const _0x4b9dc9=_0x546035;this[_0x4b9dc9(0x1f4)][_0x4b9dc9(0x14b)][_0x4b9dc9(0x1d7)]({'isUndoable':!0x1,'isLocal':!0x1},_0x2f185e=>{const _0x45e121=_0x4b9dc9;for(const _0x446272 of _0x37dd10)this[_0x45e121(0x224)][_0x45e121(0x217)](_0x446272),this[_0x45e121(0x240)](_0x446272),_0x2f185e[_0x45e121(0x1c9)][_0x45e121(0x191)](_0x446272),this[_0x45e121(0x1f4)][_0x45e121(0x14b)][_0x45e121(0x23d)](_0x446272);});}[_0x546035(0x240)](_0x388b5b){const _0xa55d50=_0x546035,_0x49a635=this[_0xa55d50(0x1f2)](_0x388b5b);_0x49a635&&this[_0xa55d50(0x235)][_0xa55d50(0x217)](_0x49a635);}[_0x546035(0x1f2)](_0x12a92d){const _0xa86ffe=_0x546035;let _0x2113c2,_0x24fac6;switch(_0x12a92d[_0xa86ffe(0x182)]){case _0xa86ffe(0x146):_0x2113c2=_0x12a92d[_0xa86ffe(0x1ef)][_0xa86ffe(0x1d1)];break;case _0xa86ffe(0x149):if(_0x24fac6=_0x12a92d[_0xa86ffe(0x155)],!_0x24fac6)return null;_0x2113c2=_0x24fac6[_0xa86ffe(0x1d1)];break;case _0xa86ffe(0x194):_0x2113c2=_0x12a92d[_0xa86ffe(0x1d1)];break;case _0xa86ffe(0x18d):_0x2113c2=_0x12a92d[_0xa86ffe(0x17a)];break;case _0xa86ffe(0x140):_0x2113c2=_0x12a92d[_0xa86ffe(0x1de)][_0xa86ffe(0x1d1)];break;default:return null;}return _0x2113c2[_0xa86ffe(0x220)];}[_0x546035(0x1cb)](_0xda3b79){const _0x211649=_0x546035;_0xda3b79[_0x211649(0x19f)](_0x3298fb=>{const _0x3e268c=_0x211649,_0x36b594=_0x3298fb[_0x3e268c(0x21c)]();_0x36b594[_0x3e268c(0x159)]=_0x3298fb[_0x3e268c(0x159)],_0x36b594[_0x3e268c(0x21f)]=!!_0x3298fb[_0x3e268c(0x21f)],_0x36b594[_0x3e268c(0x1ce)]=_0x3298fb[_0x3e268c(0x1ce)],_0x36b594[_0x3e268c(0x1e9)]+=this[_0x3e268c(0x1fc)],_0x3298fb[_0x3e268c(0x1bd)]&&this[_0x3e268c(0x18e)][_0x3e268c(0x217)](_0x36b594),this[_0x3e268c(0x196)][_0x3e268c(0x191)](_0x36b594);});}[_0x546035(0x1ac)](_0x4e8e0e){const _0x149fdc=_0x546035,_0x53df67=this[_0x149fdc(0x1f4)][_0x149fdc(0x204)][_0x149fdc(0x19c)](_0x149fdc(0x154)),_0x8b61d9=this[_0x149fdc(0x1f4)][_0x149fdc(0x183)];_0x4e8e0e||(_0x4e8e0e=_0x3c08bb(_0x8b61d9,_0x149fdc(0x181))),_0x53df67[_0x149fdc(0x157)](_0x4e8e0e,{'title':_0x3c08bb(_0x8b61d9,_0x149fdc(0x148)),'namespace':_0x149fdc(0x1b1)}),this[_0x149fdc(0x1cd)]=!0x0,clearTimeout(this[_0x149fdc(0x13f)]),this[_0x149fdc(0x1bc)]=[],this[_0x149fdc(0x1f4)][_0x149fdc(0x204)][_0x149fdc(0x19c)](_0x461f58)[_0x149fdc(0x1fa)]();}[_0x546035(0x17f)](){const _0x6af5aa=_0x546035;this[_0x6af5aa(0x234)]||(this[_0x6af5aa(0x234)]=this[_0x6af5aa(0x1f4)][_0x6af5aa(0x204)][_0x6af5aa(0x19c)](_0x3cd6bd)[_0x6af5aa(0x217)](_0x3c08bb(this[_0x6af5aa(0x1f4)][_0x6af5aa(0x183)],_0x6af5aa(0x21b))));}[_0x546035(0x201)](){const _0x88a8a7=_0x546035;this[_0x88a8a7(0x234)]&&(this[_0x88a8a7(0x1f4)][_0x88a8a7(0x204)][_0x88a8a7(0x19c)](_0x3cd6bd)[_0x88a8a7(0x221)](this[_0x88a8a7(0x234)]),this[_0x88a8a7(0x234)]=null);}[_0x546035(0x1c4)](_0x10baf0){const _0x24a22a=_0x546035,_0x28afe6=_0x10baf0[_0x24a22a(0x16d)](_0x1bef98=>_0x1bef98[_0x24a22a(0x17c)]());return this[_0x24a22a(0x1f0)][_0x24a22a(0x1a8)](_0x28afe6);}[_0x546035(0x1da)](_0x1fcb72,_0x5c07c0){const _0xc7a871=_0x546035;return this[_0xc7a871(0x1f0)][_0xc7a871(0x1a7)](_0x1fcb72)[_0xc7a871(0x16d)]((_0x398124,_0x14f677)=>{const _0x4f1a2a=_0xc7a871,_0x54db5e=_0x4f1a2a(0x1b6)==_0x5c07c0[_0x14f677][_0x4f1a2a(0x182)];if(_0x4f1a2a(0x1f3)==_0x398124[_0x4f1a2a(0x199)]){const _0x52f933=_0x398124[_0x4f1a2a(0x1ef)][_0x4f1a2a(0x1d1)];!this[_0x4f1a2a(0x1e2)][_0x4f1a2a(0x213)](_0x52f933)&&(this[_0x4f1a2a(0x1e2)][_0x4f1a2a(0x1a4)](_0x4f1a2a(0x1a1),_0x52f933)[_0x4f1a2a(0x1e3)]=!0x1);}const _0x52ab70=_0x36a7b9[_0x4f1a2a(0x1a3)](_0x398124,this[_0x4f1a2a(0x1e2)]);return _0x52ab70[_0x4f1a2a(0x20c)]=_0x398124[_0x4f1a2a(0x20c)],_0x52ab70[_0x4f1a2a(0x21f)]=_0x54db5e,_0x52ab70[_0x4f1a2a(0x159)]=_0x54db5e?null:_0x5c07c0[_0x14f677][_0x4f1a2a(0x1ec)],_0x52ab70[_0x4f1a2a(0x1bd)]=_0x4f1a2a(0x1c6)===_0x5c07c0[_0x14f677][_0x4f1a2a(0x182)],_0x52ab70[_0x4f1a2a(0x1ce)]=_0x5c07c0[_0x14f677][_0x4f1a2a(0x1ce)],_0x52ab70;});}[_0x546035(0x1ea)](){const _0x15f520=_0x546035;this[_0x15f520(0x1ed)]=!0x0,this[_0x15f520(0x198)]()?this[_0x15f520(0x227)]():this[_0x15f520(0x1ed)]=!0x1;}[_0x546035(0x198)](){const _0xeb2c0b=_0x546035,_0x38b559=this[_0xeb2c0b(0x1f4)][_0xeb2c0b(0x204)][_0xeb2c0b(0x19c)](_0x461c22)[_0xeb2c0b(0x15b)][_0xeb2c0b(0x19c)](this[_0xeb2c0b(0x1a9)]);return!this[_0xeb2c0b(0x1f4)][_0xeb2c0b(0x1d3)]&&!!_0x38b559&&_0x38b559[_0xeb2c0b(0x19b)]>0x1&&this[_0xeb2c0b(0x1ed)];}[_0x546035(0x185)](){const _0x970b80=_0x546035;return this[_0x970b80(0x1bc)][_0x970b80(0x19b)]>0x0||this[_0x970b80(0x198)]();}}class K extends Error{}function J(_0x17960f,_0x4c2411){const _0x508631=_0x546035;for(const _0x261763 of _0x17960f)_0x261763[_0x508631(0x1e9)]=_0x4c2411++;}class Q{[_0x546035(0x13c)];[_0x546035(0x19e)];constructor(_0x5cb9f8){const _0x173ce7=_0x546035;this[_0x173ce7(0x13c)]=_0x5cb9f8,this[_0x173ce7(0x19e)]=new WeakMap();}[_0x546035(0x232)](_0x7b6731){const _0x5ebfbc=_0x546035;let _0x3b2c43=_0x7b6731[_0x5ebfbc(0x19b)];for(;_0x3b2c43--;){const _0x1f8fbf=_0x7b6731[_0x3b2c43];if(!this[_0x5ebfbc(0x13c)][_0x5ebfbc(0x14c)](_0x1f8fbf)){if(!this[_0x5ebfbc(0x19e)][_0x5ebfbc(0x14c)](_0x1f8fbf)){const _0xe20e2e=_0x507741()[_0x5ebfbc(0x1a0)](0x1,0x12);this[_0x5ebfbc(0x19e)][_0x5ebfbc(0x1d8)](_0x1f8fbf,_0xe20e2e);}return this[_0x5ebfbc(0x19e)][_0x5ebfbc(0x19c)](_0x1f8fbf);}}}[_0x546035(0x1ba)](_0x1b4471,_0x3f3965){const _0x1c5e9f=_0x546035;if(!_0x3f3965)return;let _0x1cda9c=_0x1b4471[_0x1c5e9f(0x19b)];for(;_0x1cda9c--;){const _0xeaeca2=_0x1b4471[_0x1cda9c];this[_0x1c5e9f(0x13c)][_0x1c5e9f(0x14c)](_0xeaeca2)||this[_0x1c5e9f(0x19e)][_0x1c5e9f(0x1d8)](_0xeaeca2,_0x3f3965);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x15c0(_0x314c38,_0x3f3ef3){const _0x2a7141=_0x2a71();return _0x15c0=function(_0x15c0d3,_0xc8dd2){_0x15c0d3=_0x15c0d3-0x184;let _0x17220e=_0x2a7141[_0x15c0d3];return _0x17220e;},_0x15c0(_0x314c38,_0x3f3ef3);}const _0x5f44cf=_0x15c0;(function(_0x456962,_0x16c272){const _0x3baf03=_0x15c0,_0x280578=_0x456962();while(!![]){try{const _0x512f42=-parseInt(_0x3baf03(0x19c))/0x1*(-parseInt(_0x3baf03(0x188))/0x2)+-parseInt(_0x3baf03(0x1a6))/0x3+-parseInt(_0x3baf03(0x1b1))/0x4+parseInt(_0x3baf03(0x187))/0x5*(parseInt(_0x3baf03(0x1b2))/0x6)+parseInt(_0x3baf03(0x1bd))/0x7+parseInt(_0x3baf03(0x1b8))/0x8+-parseInt(_0x3baf03(0x19b))/0x9*(parseInt(_0x3baf03(0x1ae))/0xa);if(_0x512f42===_0x16c272)break;else _0x280578['push'](_0x280578['shift']());}catch(_0x480a5e){_0x280578['push'](_0x280578['shift']());}}}(_0x2a71,0xc2475));import{ContextPlugin as _0x20ee1b}from'ckeditor5/src/core.js';import{Collection as _0x5000a2,CKEditorError as _0x3684aa}from'ckeditor5/src/utils.js';function _0x2a71(){const _0x2edd60=['listenTo','isPremiumPlugin','10wsOVSq','4ZZkIGO','role','mySessionId','register','sessionId','_createUser','hiddenInPresenceList','change:state','remove','getUserBySessionId','Sessions','state','delete','values','_handleSessionAdd','connection','sessionAdd:','_users','get','10693359hYhjKy','493823XHULVU','size','_uniqueUsersCount','plugins','user','isMe','getUserSessions','set','orderNumber','stopListening','2751531lBXXga','clear','_registeredSessions','requires','addUser','context','connected','channelConnectedUsers','10NYilJI','assign','allConnectedUsers','2936700fhvgqK','2621598WlOWhD','channelSessions','isOfficialPlugin','add','forEach','unregister','3133160ZOaxib','has','getUser','init','defineMe','9674777QDlwzu','_handleSessionRemove','pluginName','getUserRole','sessions-unregister-not-exist','fire','sessions-register-already-registered'];_0x2a71=function(){return _0x2edd60;};return _0x2a71();}import{WebSocketGateway as _0x2e994a}from'./websocketgateway.js';import{Users as _0x45d1ce}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x20ee1b{[_0x5f44cf(0x1b3)];[_0x5f44cf(0x1ad)];[_0x5f44cf(0x1b0)];[_0x5f44cf(0x1a8)];[_0x5f44cf(0x19e)];[_0x5f44cf(0x199)];static get[_0x5f44cf(0x1bf)](){const _0x1c44e7=_0x5f44cf;return _0x1c44e7(0x192);}static get[_0x5f44cf(0x1b4)](){return!0x0;}static get[_0x5f44cf(0x186)](){return!0x0;}static get[_0x5f44cf(0x1a9)](){return[_0x2e994a,_0x45d1ce];}constructor(_0x43dfd3){const _0x20fb3f=_0x5f44cf;super(_0x43dfd3),this[_0x20fb3f(0x1b3)]=new Map(),this[_0x20fb3f(0x1ad)]=new Map(),this[_0x20fb3f(0x1b0)]=new _0x5000a2(),this[_0x20fb3f(0x1a8)]=new Map(),this[_0x20fb3f(0x19e)]=0x0,this[_0x20fb3f(0x199)]=this[_0x20fb3f(0x1ab)][_0x20fb3f(0x19f)][_0x20fb3f(0x19a)](_0x45d1ce);}[_0x5f44cf(0x1bb)](){const _0x468348=_0x5f44cf,_0x3e08f9=this[_0x468348(0x1ab)][_0x468348(0x19f)][_0x468348(0x19a)](_0x2e994a);this[_0x468348(0x185)](_0x3e08f9,_0x468348(0x18f),(_0x287cbb,_0x130c30,_0x3d38f7)=>{const _0x2dfa7e=_0x468348;if(_0x2dfa7e(0x1ac)!==_0x3d38f7)this[_0x2dfa7e(0x1b3)][_0x2dfa7e(0x1b6)](_0x4006f9=>_0x4006f9[_0x2dfa7e(0x1a7)]()),this[_0x2dfa7e(0x1ad)][_0x2dfa7e(0x1b6)](_0x3f0798=>_0x3f0798[_0x2dfa7e(0x1a7)]()),this[_0x2dfa7e(0x1b0)][_0x2dfa7e(0x1a7)]();else{for(const [_0x46e6fe,_0x210d83]of this[_0x2dfa7e(0x1a8)])for(const _0xefe0e1 of _0x210d83)this[_0x2dfa7e(0x196)](_0x46e6fe,_0xefe0e1);}}),this[_0x468348(0x18d)](_0x3e08f9[_0x468348(0x197)]['me'],!0x0);}[_0x5f44cf(0x18b)](_0x383c91,_0x2d07f5){const _0x6bc75e=_0x5f44cf;if(this[_0x6bc75e(0x1a8)][_0x6bc75e(0x1b9)](_0x383c91))throw new _0x3684aa(_0x6bc75e(0x184),null,{'channelId':_0x383c91});this[_0x6bc75e(0x1a8)][_0x6bc75e(0x1a3)](_0x383c91,_0x2d07f5),this[_0x6bc75e(0x1b3)][_0x6bc75e(0x1a3)](_0x383c91,new _0x5000a2()),this[_0x6bc75e(0x1ad)][_0x6bc75e(0x1a3)](_0x383c91,new _0x5000a2()),this[_0x6bc75e(0x185)](_0x2d07f5,_0x6bc75e(0x1b5),(_0x516537,_0x128d85)=>this[_0x6bc75e(0x196)](_0x383c91,_0x128d85)),this[_0x6bc75e(0x185)](_0x2d07f5,_0x6bc75e(0x190),(_0x28401e,_0x3dfdb1)=>this[_0x6bc75e(0x1be)](_0x383c91,_0x3dfdb1));for(const _0x2b001e of _0x2d07f5)this[_0x6bc75e(0x196)](_0x383c91,_0x2b001e);}[_0x5f44cf(0x1b7)](_0x46b844){const _0x198799=_0x5f44cf;if(!this[_0x198799(0x1a8)][_0x198799(0x1b9)](_0x46b844))throw new _0x3684aa(_0x198799(0x1c1),null,{'channelId':_0x46b844});const _0x1886d8=this[_0x198799(0x1a8)][_0x198799(0x19a)](_0x46b844);this[_0x198799(0x1a5)](_0x1886d8);for(const _0x521fe9 of _0x1886d8)_0x198799(0x1ac)===this[_0x198799(0x1ab)][_0x198799(0x19f)][_0x198799(0x19a)](_0x2e994a)[_0x198799(0x193)]&&this[_0x198799(0x1be)](_0x46b844,_0x521fe9);this[_0x198799(0x1a8)][_0x198799(0x194)](_0x46b844),this[_0x198799(0x1b3)][_0x198799(0x194)](_0x46b844),this[_0x198799(0x1ad)][_0x198799(0x194)](_0x46b844);}get[_0x5f44cf(0x18a)](){const _0xe5e33e=_0x5f44cf;return this[_0xe5e33e(0x1ab)][_0xe5e33e(0x19f)][_0xe5e33e(0x19a)](_0x2e994a)[_0xe5e33e(0x197)][_0xe5e33e(0x18c)];}[_0x5f44cf(0x191)](_0x597222){const _0x340a85=_0x5f44cf;for(const _0x2aca74 of this[_0x340a85(0x1b3)][_0x340a85(0x195)]())for(const _0x2fb148 of _0x2aca74)if(_0x2fb148['id']===_0x597222)return _0x2fb148[_0x340a85(0x1a0)];}[_0x5f44cf(0x1a2)](_0x13d347,_0x1b076d){const _0x333eab=_0x5f44cf,_0x4811cc=_0x1b076d?[this[_0x333eab(0x1b3)][_0x333eab(0x19a)](_0x1b076d)]:this[_0x333eab(0x1b3)][_0x333eab(0x195)](),_0x11e11e=new Set();for(const _0x5acdfa of _0x4811cc)for(const _0x3650e8 of _0x5acdfa)_0x3650e8[_0x333eab(0x1a0)]['id']===_0x13d347['id']&&_0x11e11e[_0x333eab(0x1b5)](_0x3650e8['id']);return _0x11e11e;}[_0x5f44cf(0x1c0)](_0x9c8d60){const _0x478c06=_0x5f44cf;for(const _0x210f2f of this[_0x478c06(0x1b3)][_0x478c06(0x195)]())for(const _0xbe7d3e of _0x210f2f)if(_0xbe7d3e[_0x478c06(0x1a0)]===_0x9c8d60)return _0xbe7d3e[_0x478c06(0x189)];}[_0x5f44cf(0x196)](_0x2b07b1,_0x297231){const _0x4562af=_0x5f44cf;if(_0x4562af(0x1ac)!==this[_0x4562af(0x1ab)][_0x4562af(0x19f)][_0x4562af(0x19a)](_0x2e994a)[_0x4562af(0x193)])return;const _0x3c0a09=_0x297231[_0x4562af(0x1a0)],_0xd2c83a=this[_0x4562af(0x199)][_0x4562af(0x1ba)](_0x3c0a09['id'])||this[_0x4562af(0x18d)](_0x3c0a09),_0x371f78=Object[_0x4562af(0x1af)]({},_0x297231,{'user':_0xd2c83a});if(this[_0x4562af(0x1b3)][_0x4562af(0x19a)](_0x2b07b1)[_0x4562af(0x1b5)](_0x371f78),!_0x3c0a09[_0x4562af(0x18e)]){const _0x4b601a=this[_0x4562af(0x1ad)][_0x4562af(0x19a)](_0x2b07b1);_0x4b601a[_0x4562af(0x1b9)](_0xd2c83a['id'])||_0x4b601a[_0x4562af(0x1b5)](_0xd2c83a),this[_0x4562af(0x1b0)][_0x4562af(0x1b9)](_0xd2c83a['id'])||_0x3c0a09[_0x4562af(0x18e)]||this[_0x4562af(0x1b0)][_0x4562af(0x1b5)](_0xd2c83a,_0xd2c83a[_0x4562af(0x1a1)]?0x0:void 0x0);}this[_0x4562af(0x1c2)](_0x4562af(0x198)+_0x2b07b1,{'channelId':_0x2b07b1,'session':_0x371f78});}[_0x5f44cf(0x1be)](_0x2c92b2,_0x3d5e07){const _0x2a5bf5=_0x5f44cf;if(_0x2a5bf5(0x1ac)!==this[_0x2a5bf5(0x1ab)][_0x2a5bf5(0x19f)][_0x2a5bf5(0x19a)](_0x2e994a)[_0x2a5bf5(0x193)])return;const _0xb0e677=this[_0x2a5bf5(0x1ad)][_0x2a5bf5(0x19a)](_0x2c92b2),_0x2138b9=_0x3d5e07[_0x2a5bf5(0x1a0)];_0x2138b9['id']&&(this[_0x2a5bf5(0x1b3)][_0x2a5bf5(0x19a)](_0x2c92b2)[_0x2a5bf5(0x190)](_0x3d5e07['id']),_0xb0e677[_0x2a5bf5(0x1b9)](_0x2138b9['id'])&&!this[_0x2a5bf5(0x1a2)](_0x2138b9,_0x2c92b2)[_0x2a5bf5(0x19d)]&&_0xb0e677[_0x2a5bf5(0x190)](_0x2138b9['id']),this[_0x2a5bf5(0x1b0)][_0x2a5bf5(0x19a)](_0x2138b9['id'])&&!this[_0x2a5bf5(0x1a2)](_0x2138b9)[_0x2a5bf5(0x19d)]&&this[_0x2a5bf5(0x1b0)][_0x2a5bf5(0x190)](_0x2138b9['id']));}[_0x5f44cf(0x18d)](_0x232760,_0x5d727d){const _0x5657e3=_0x5f44cf,_0x1b46d6=this[_0x5657e3(0x199)][_0x5657e3(0x1aa)](_0x232760);return _0x5d727d&&this[_0x5657e3(0x199)][_0x5657e3(0x1bc)](_0x232760['id']),_0x1b46d6[_0x5657e3(0x1a4)]=this[_0x5657e3(0x19e)]++,_0x1b46d6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32326d=_0x4a17;(function(_0x400bf0,_0x18f78f){const _0x1a814f=_0x4a17,_0x11af21=_0x400bf0();while(!![]){try{const _0x59249a=-parseInt(_0x1a814f(0x6f))/0x1*(-parseInt(_0x1a814f(0x75))/0x2)+parseInt(_0x1a814f(0x8e))/0x3*(parseInt(_0x1a814f(0xd9))/0x4)+parseInt(_0x1a814f(0x6d))/0x5+parseInt(_0x1a814f(0x8c))/0x6+parseInt(_0x1a814f(0x7a))/0x7+parseInt(_0x1a814f(0xc0))/0x8*(parseInt(_0x1a814f(0xf2))/0x9)+parseInt(_0x1a814f(0x7e))/0xa*(-parseInt(_0x1a814f(0x72))/0xb);if(_0x59249a===_0x18f78f)break;else _0x11af21['push'](_0x11af21['shift']());}catch(_0x3001e6){_0x11af21['push'](_0x11af21['shift']());}}}(_0xff96,0x52b83));import{Plugin as _0x1774ab}from'ckeditor5/src/core.js';function _0x4a17(_0x2c64d4,_0x2a8076){const _0xff9693=_0xff96();return _0x4a17=function(_0x4a179c,_0x53f710){_0x4a179c=_0x4a179c-0x68;let _0xd17dd7=_0xff9693[_0x4a179c];return _0xd17dd7;},_0x4a17(_0x2c64d4,_0x2a8076);}import{global as _0x3c273b,DomEmitterMixin as _0x304139}from'ckeditor5/src/utils.js';function _0xff96(){const _0x5dc55e=['791924GSYtYu','getMarkerClass','getAttribute','marker','getSelectionClass','user:','undo','addMarker','remove','Escape','setCustomProperty','user:position','requires','getPositions','change','name','mouseleave','toRange','stopListening','$text','editing','start','markerRange','commands','removeClass','9TjwVsk','markerName','checkChild','userPositionMarker','mySessionId','applyOperation','classList','1980530ZxeDfS','getUserBySessionId','2111FkuRBu','markerToHighlight','nodeAfter','55kNAiXi','mapper','getStart','218puJgnY','isDocumentOperation','init','end','selection','4018532thketa','oldRange','isObject','addEventListener','4047150mytfQR','root','startsWith','getCustomProperty','change:range','highest','fromRange','isPremiumPlugin','span','get','hasDomSelection','getNearestSelectionRange','isInline','user:range','3467208PITHLy','getFirstRange','6EMNcQY','plugins','textContent','markerNameToElements','listenTo','_domEmitter','removeMarker','keydown','_createdBatches','document','$graveyard','delete','false','tableCell','model','clear','isSimilar','isCollapsed','mouseenter','size','isOfficialPlugin','reconvertMarker','setAttribute','pluginName','schema','createElement','createRange','createUIElement','toDomElement','ck-user__marker-tooltip','getContainedElement','markers','element','deletionPosition','ck-user__marker_hovered','markerToElement','spellcheck','data-session-id','render','for','add','user:position:','update:user:range','type','contenteditable','color','ck-user__marker\x20','innerHTML','ck-user__selection','editingDowncast','1506264GxtpNs','batch','editor','detach','afterInit','user:range:','conversion','split','UserMarkers','outerHTML','enqueueChange','isLimit','newRange','rootName','set','has','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','view','parent','hasContent','createUserMarkerOperations','getRange','orderNumber','destroy','updateMarker'];_0xff96=function(){return _0x5dc55e;};return _0xff96();}import{Sessions as _0x15ea52}from'./sessions.js';import{ModelLiveRange as _0x1142a8}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x1774ab{[_0x32326d(0x93)]=new(_0x304139())();static get[_0x32326d(0xe5)](){return[_0x15ea52];}static get[_0x32326d(0xa5)](){const _0x5d7393=_0x32326d;return _0x5d7393(0xc8);}static get[_0x32326d(0xa2)](){return!0x0;}static get[_0x32326d(0x85)](){return!0x0;}[_0x32326d(0x77)](){const _0xcc7fcd=_0x32326d,_0xc7e11f=this[_0xcc7fcd(0xc2)],_0x51c8ac=_0xc7e11f[_0xcc7fcd(0x8f)][_0xcc7fcd(0x87)](_0x15ea52);_0xc7e11f[_0xcc7fcd(0xc6)][_0xcc7fcd(0xb5)](_0xcc7fcd(0xbf))[_0xcc7fcd(0xb1)]({'model':_0xcc7fcd(0xe4),'view':(_0x117c76,{writer:_0x635d21})=>function(_0x5f16e4,_0x10a725,_0x1a9a27,_0x20fece){const _0x28f9d4=_0xcc7fcd,_0x4697f2=_0x5f16e4[_0x28f9d4(0xf3)][_0x28f9d4(0xc7)](':')[0x2],_0x12741b=_0x1a9a27[_0x28f9d4(0x6e)](_0x4697f2);if(!_0x12741b||_0x4697f2===_0x1a9a27[_0x28f9d4(0x6a)])return;if(!_0x20fece[_0x28f9d4(0x9c)][_0x28f9d4(0xa6)][_0x28f9d4(0x68)](_0x5f16e4[_0x28f9d4(0xef)][_0x28f9d4(0xee)],_0x28f9d4(0xec)))return;const _0x126e90={'class':_0x28f9d4(0xbc)+_0x12741b[_0x28f9d4(0xbb)][_0x28f9d4(0xda)](),'data-name':_0x12741b[_0x28f9d4(0xe8)],'data-session-id':_0x4697f2},_0x3a2dc2=_0x20fece[_0x28f9d4(0x9c)][_0x28f9d4(0xad)][_0x28f9d4(0x87)](_0x5f16e4[_0x28f9d4(0xf3)]),_0x403fd8=_0x3a2dc2[_0x28f9d4(0x74)](),_0x22eae2=_0x403fd8[_0x28f9d4(0x71)],_0x16a0e3=_0x20fece[_0x28f9d4(0x9c)][_0x28f9d4(0xa6)];if(_0x22eae2&&_0x16a0e3[_0x28f9d4(0x7c)](_0x22eae2)&&_0x16a0e3[_0x28f9d4(0x8a)](_0x22eae2)&&!_0x20fece[_0x28f9d4(0x9c)][_0x28f9d4(0xad)][_0x28f9d4(0x87)](_0x28f9d4(0xc5)+_0x4697f2)[_0x28f9d4(0xd5)]()[_0x28f9d4(0x9f)])return;const _0x4ad6cb=_0x403fd8[_0x28f9d4(0xd2)];return _0x20fece[_0x28f9d4(0x9c)][_0x28f9d4(0xa6)][_0x28f9d4(0xcb)](_0x4ad6cb)&&!_0x20fece[_0x28f9d4(0x9c)][_0x28f9d4(0xd3)](_0x4ad6cb)&&(_0x126e90[_0x28f9d4(0xba)]=!0x1),function(_0x7c7dde,_0xcbad08,_0x221902){const _0x36acce=_0x28f9d4,_0x3746d6=_0x7c7dde[_0x36acce(0xa9)](_0x36acce(0x86),_0xcbad08);return _0x7c7dde[_0x36acce(0xe3)](_0x36acce(0x69),!0x0,_0x3746d6),_0x3746d6[_0x36acce(0xb4)]=function(_0x2d680d){const _0x4908b2=_0x36acce,_0x289e04=this[_0x4908b2(0xaa)](_0x2d680d),_0x47e85b=document[_0x4908b2(0xa7)](_0x4908b2(0x86));return _0x47e85b[_0x4908b2(0x6c)][_0x4908b2(0xb6)](_0x4908b2(0xab)),_0x47e85b[_0x4908b2(0xa4)](_0x4908b2(0xba),_0x4908b2(0x9a)),_0x47e85b[_0x4908b2(0xa4)](_0x4908b2(0xb2),_0x4908b2(0x9a)),_0x47e85b[_0x4908b2(0x90)]=_0x221902[_0x4908b2(0xe8)],_0x289e04[_0x4908b2(0xbd)]=_0x4908b2(0xd0)+_0x47e85b[_0x4908b2(0xc9)]+'',_0x289e04[_0x4908b2(0x7d)](_0x4908b2(0xa0),()=>{const _0x37b50b=_0x4908b2;_0x289e04[_0x37b50b(0x6c)][_0x37b50b(0xb6)](_0x37b50b(0xb0));}),_0x289e04[_0x4908b2(0x7d)](_0x4908b2(0xe9),()=>{const _0x5a0434=_0x4908b2;_0x289e04[_0x5a0434(0x6c)][_0x5a0434(0xe1)](_0x5a0434(0xb0));}),_0x289e04;},_0x3746d6[_0x36acce(0x9e)]=function(_0x7024b9){const _0x432629=_0x36acce;return!(!this[_0x432629(0x81)](_0x432629(0x69))||!_0x7024b9[_0x432629(0x81)](_0x432629(0x69))||this[_0x432629(0xdb)](_0x432629(0xb3))!=_0x7024b9[_0x432629(0xdb)](_0x432629(0xb3)));},_0x3746d6;}(_0x10a725,_0x126e90,_0x12741b);}(_0x117c76,_0x635d21,_0x51c8ac,_0xc7e11f)}),_0xc7e11f[_0xcc7fcd(0xc6)][_0xcc7fcd(0xb5)](_0xcc7fcd(0xbf))[_0xcc7fcd(0x70)]({'model':_0xcc7fcd(0x8b),'view':_0x3eaad8=>function(_0x3d2a05,_0x1c0db1){const _0x1981b9=_0xcc7fcd,_0x55aa3b=_0x3d2a05[_0x1981b9(0xf3)][_0x1981b9(0xc7)](':')[0x2];if(_0x55aa3b===_0x1c0db1[_0x1981b9(0x6a)])return null;const _0x5bc774=_0x1c0db1[_0x1981b9(0x6e)](_0x55aa3b);if(!_0x5bc774)return{'id':_0x55aa3b,'classes':[]};return{'id':_0x55aa3b,'classes':[_0x1981b9(0xbe),_0x5bc774[_0x1981b9(0xbb)][_0x1981b9(0xdd)]()],'attributes':{'data-session-id':_0x55aa3b},'priority':0x7d0+_0x5bc774[_0x1981b9(0xd6)]};}(_0x3eaad8,_0x51c8ac)}),function(_0x14e38e){const _0x498d85=_0xcc7fcd,_0x4f50a1=_0x14e38e[_0x498d85(0x9c)],_0xe8f2dc=new Map(),_0x3890de=_0x14e38e[_0x498d85(0x8f)][_0x498d85(0x87)](_0x15ea52);_0x4f50a1[_0x498d85(0xad)]['on'](_0x498d85(0xb8),(_0x45dbab,_0x416e84,_0x5811ce,_0x2634c4)=>{const _0x41e150=_0x498d85;if(!_0x2634c4&&_0xe8f2dc[_0x41e150(0x87)](_0x416e84[_0x41e150(0xe8)]))return _0xe8f2dc[_0x41e150(0x87)](_0x416e84[_0x41e150(0xe8)])[_0x41e150(0xc3)](),void _0xe8f2dc[_0x41e150(0x99)](_0x416e84[_0x41e150(0xe8)]);const _0x8dacf6=_0x416e84[_0x41e150(0xe8)][_0x41e150(0xc7)](':')[0x2];if(_0x8dacf6===_0x3890de[_0x41e150(0x6a)])return;const _0x578636=_0x41e150(0xb7)+_0x8dacf6;_0x4f50a1[_0x41e150(0xad)][_0x41e150(0xcf)](_0x578636)&&_0x14e38e[_0x41e150(0xed)][_0x41e150(0xa3)](_0x578636),_0x416e84['on'](_0x41e150(0x82),(_0x1bb0bd,_0x4d536d,_0x587d60)=>{const _0x187d04=_0x41e150;if(_0x187d04(0x98)!=_0x4d536d[_0x187d04(0x7f)][_0x187d04(0xcd)]&&_0x187d04(0x98)==_0x416e84[_0x187d04(0xd5)]()[_0x187d04(0x7f)][_0x187d04(0xcd)]&&!_0xe8f2dc[_0x187d04(0xcf)](_0x416e84[_0x187d04(0xe8)])){const _0x1d8176=_0x4f50a1[_0x187d04(0xa6)][_0x187d04(0x89)](_0x587d60[_0x187d04(0xaf)]);if(_0x1d8176){const _0x1c8fa4=_0x1142a8[_0x187d04(0x84)](_0x1d8176);_0xe8f2dc[_0x187d04(0xce)](_0x416e84[_0x187d04(0xe8)],_0x1c8fa4),_0x1c8fa4['on'](_0x187d04(0x82),(_0x22857e,_0x560b66,_0xb1c943)=>{const _0x1717d6=_0x187d04;if(_0x1717d6(0x98)==_0x1c8fa4[_0x1717d6(0x7f)][_0x1717d6(0xcd)]){const _0x2d6d25=_0x4f50a1[_0x1717d6(0xa6)][_0x1717d6(0x89)](_0xb1c943[_0x1717d6(0xaf)]);_0x2d6d25?(_0x1c8fa4[_0x1717d6(0xee)]=_0x2d6d25[_0x1717d6(0xee)],_0x1c8fa4[_0x1717d6(0x78)]=_0x2d6d25[_0x1717d6(0x78)]):(_0xe8f2dc[_0x1717d6(0x99)](_0x416e84[_0x1717d6(0xe8)]),_0x1c8fa4[_0x1717d6(0xc3)]());}});}}});}),_0x4f50a1[_0x498d85(0x97)]['on'](_0x498d85(0xe7),()=>{const _0x33e61a=_0x498d85;_0xe8f2dc[_0x33e61a(0xa1)]>0x0&&_0x4f50a1[_0x33e61a(0xca)]({'isUndoable':!0x1},_0x3bceac=>{const _0x1a6030=_0x33e61a;for(const [_0x489f8d,_0x5b034e]of _0xe8f2dc)_0x1a6030(0x98)==_0x4f50a1[_0x1a6030(0xad)][_0x1a6030(0x87)](_0x489f8d)[_0x1a6030(0xd5)]()[_0x1a6030(0x7f)][_0x1a6030(0xcd)]&&(te(_0x489f8d[_0x1a6030(0xc7)](':')[0x2],_0x5b034e[_0x1a6030(0xea)](),_0x4f50a1,_0x3bceac),_0x5b034e[_0x1a6030(0xc3)]());_0xe8f2dc[_0x1a6030(0x9d)]();});});}(_0xc7e11f),this[_0xcc7fcd(0x93)][_0xcc7fcd(0x92)](_0x3c273b[_0xcc7fcd(0x97)],_0xcc7fcd(0x95),(_0x3032df,{key:_0x2c41b0})=>{const _0x15e871=_0xcc7fcd;_0x15e871(0xe2)===_0x2c41b0&&function(_0x3dbb21){const _0x11e668=_0x15e871;_0x3dbb21[_0x11e668(0xed)][_0x11e668(0xd1)][_0x11e668(0xe7)](_0x5bbfda=>{const _0x94fdde=_0x11e668;for(const _0x378073 of _0x3dbb21[_0x94fdde(0x9c)][_0x94fdde(0xad)]){if(!_0x378073[_0x94fdde(0xe8)][_0x94fdde(0x80)](_0x94fdde(0xe4)))continue;const _0x2183c7=_0x3dbb21[_0x94fdde(0xed)][_0x94fdde(0x73)][_0x94fdde(0x91)](_0x378073[_0x94fdde(0xe8)]);if(_0x2183c7){for(const _0x55af3d of _0x2183c7)_0x5bbfda[_0x94fdde(0xf1)](_0x94fdde(0xb0),_0x55af3d);}}});}(_0xc7e11f);},{'useCapture':!0x0});}[_0x32326d(0xc4)](){const _0x4d8f67=_0x32326d,_0x5c2899=this[_0x4d8f67(0xc2)],_0x20dc10=_0x5c2899[_0x4d8f67(0xf0)][_0x4d8f67(0x87)](_0x4d8f67(0xdf));_0x20dc10&&_0x5c2899[_0x4d8f67(0x9c)]['on'](_0x4d8f67(0x6b),(_0x19e367,_0x471f28)=>{const _0x688a5f=_0x4d8f67,_0x2cd0f0=_0x471f28[0x0];if(!_0x2cd0f0[_0x688a5f(0x76)])return;if(_0x688a5f(0xdc)!=_0x2cd0f0[_0x688a5f(0xb9)]||!_0x2cd0f0[_0x688a5f(0xe8)][_0x688a5f(0x80)](_0x688a5f(0xde)))return;const _0x597012=_0x2cd0f0[_0x688a5f(0xc1)];_0x20dc10[_0x688a5f(0x96)][_0x688a5f(0xcf)](_0x597012)&&(_0x2cd0f0[_0x688a5f(0xcc)]=_0x2cd0f0[_0x688a5f(0x7b)]?_0x5c2899[_0x688a5f(0x9c)][_0x688a5f(0xa8)](_0x2cd0f0[_0x688a5f(0x7b)][_0x688a5f(0xee)],_0x2cd0f0[_0x688a5f(0x7b)][_0x688a5f(0x78)]):null);},{'priority':_0x4d8f67(0x83)});}[_0x32326d(0xd7)](){const _0xadcc49=_0x32326d;return this[_0xadcc49(0x93)][_0xadcc49(0xeb)](),super[_0xadcc49(0xd7)]();}[_0x32326d(0xd4)](){const _0x4728d8=_0x32326d,_0x329a15=this[_0x4728d8(0xc2)],_0x2cf974=_0x329a15[_0x4728d8(0x9c)][_0x4728d8(0x97)],_0x3817c3=_0x329a15[_0x4728d8(0x8f)][_0x4728d8(0x87)](_0x15ea52);_0x329a15[_0x4728d8(0x9c)][_0x4728d8(0xca)]({'isUndoable':!0x1},_0x50480d=>{const _0x72a901=_0x4728d8,_0x4ff6af=_0x72a901(0xc5)+_0x3817c3[_0x72a901(0x6a)],_0x35ec04=_0x72a901(0xb7)+_0x3817c3[_0x72a901(0x6a)],_0x2a3541=_0x329a15[_0x72a901(0x9c)][_0x72a901(0xad)][_0x72a901(0xcf)](_0x4ff6af);_0x329a15[_0x72a901(0xed)][_0x72a901(0xd1)][_0x72a901(0x88)]?te(_0x3817c3[_0x72a901(0x6a)],_0x2cf974[_0x72a901(0x79)][_0x72a901(0x8d)](),_0x329a15[_0x72a901(0x9c)],_0x50480d):_0x2a3541&&(_0x50480d[_0x72a901(0x94)](_0x4ff6af),_0x50480d[_0x72a901(0x94)](_0x35ec04));});}}function te(_0x23abcc,_0x377ebd,_0x406f49,_0x6e872f){const _0x563019=_0x32326d,_0x152b61=_0x563019(0xc5)+_0x23abcc,_0x148031=_0x563019(0xb7)+_0x23abcc,_0x99f00f=_0x377ebd[_0x563019(0xac)]();let _0x506bc3=_0x377ebd[_0x563019(0xee)];if(_0x99f00f&&_0x99f00f['is'](_0x563019(0xae),_0x563019(0x9b))){const _0x309386=function(_0x5ce791,_0x501136){const _0x545346=_0x563019;for(const _0x2d1fd0 of _0x5ce791[_0x545346(0xe6)]())if(_0x501136[_0x545346(0xa6)][_0x545346(0x68)](_0x2d1fd0,_0x545346(0xec)))return _0x2d1fd0;}(_0x377ebd,_0x406f49);_0x309386&&(_0x506bc3=_0x309386,_0x377ebd=_0x6e872f[_0x563019(0xa8)](_0x506bc3));}const _0x2fc5fa=_0x6e872f[_0x563019(0xa8)](_0x506bc3);_0x406f49[_0x563019(0xad)][_0x563019(0xcf)](_0x152b61)?(_0x6e872f[_0x563019(0xd8)](_0x152b61,{'range':_0x377ebd}),_0x6e872f[_0x563019(0xd8)](_0x148031,{'range':_0x2fc5fa})):(_0x6e872f[_0x563019(0xe0)](_0x152b61,{'range':_0x377ebd,'usingOperation':!0x0}),_0x6e872f[_0x563019(0xe0)](_0x148031,{'range':_0x2fc5fa,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x30f950=_0x408c;function _0x4bcb(){const _0x5c76d1=['$graveyard','element','conversion','ck-user__marker_hovered','textContent','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','13852jdQvYL','pluginName','isOfficialPlugin','Escape','user:','render','getContainedElement','mouseenter','enqueueChange','commands','innerHTML','nodeAfter','checkChild','getFirstRange','orderNumber','239cAmnMK','createRange','change:range','markerToElement','plugins','getSelectionClass','marker','get','getPositions','getCustomProperty','7958205YevVVM','UserMarkers','mySessionId','getRange','isPremiumPlugin','toRange','remove','16596390Zdypgz','type','ck-user__marker-tooltip','destroy','batch','markerName','_createdBatches','highest','editing','end','user:range:','getUserBySessionId','deletionPosition','isObject','isInline','afterInit','getStart','reconvertMarker','8842hpRPbY','isCollapsed','color','removeClass','editingDowncast','user:range','markerToHighlight','6960793vRTytn','hasContent','removeMarker','createUIElement','$text','_domEmitter','span','init','userPositionMarker','outerHTML','update:user:range','name','model','split','ck-user__selection','6276824haTzLD','keydown','view','getAttribute','createUserMarkerOperations','start','selection','undo','oldRange','mapper','isDocumentOperation','ck-user__marker\x20','toDomElement','addMarker','getNearestSelectionRange','startsWith','setCustomProperty','editor','delete','parent','getMarkerClass','updateMarker','291KfpQSN','user:position','contenteditable','fromRange','set','data-session-id','classList','stopListening','markerRange','has','user:position:','root','isLimit','mouseleave','createElement','9684720LhuHLM','setAttribute','schema','addEventListener','tableCell','rootName','false','document','markerNameToElements','applyOperation','listenTo','clear','hasDomSelection','for','add','detach','6xXlyAh','newRange','requires','spellcheck','size','markers','change','isSimilar'];_0x4bcb=function(){return _0x5c76d1;};return _0x4bcb();}(function(_0x55a25d,_0x94dc96){const _0x2e42a7=_0x408c,_0x341e5f=_0x55a25d();while(!![]){try{const _0x346edc=-parseInt(_0x2e42a7(0x207))/0x1*(-parseInt(_0x2e42a7(0x22a))/0x2)+parseInt(_0x2e42a7(0x1cb))/0x3*(parseInt(_0x2e42a7(0x1f8))/0x4)+-parseInt(_0x2e42a7(0x211))/0x5+-parseInt(_0x2e42a7(0x1ea))/0x6*(-parseInt(_0x2e42a7(0x231))/0x7)+parseInt(_0x2e42a7(0x240))/0x8+parseInt(_0x2e42a7(0x1da))/0x9+-parseInt(_0x2e42a7(0x218))/0xa;if(_0x346edc===_0x94dc96)break;else _0x341e5f['push'](_0x341e5f['shift']());}catch(_0x31dae8){_0x341e5f['push'](_0x341e5f['shift']());}}}(_0x4bcb,0xf33ec));import{Plugin as _0x9fdcd7}from'ckeditor5/src/core.js';function _0x408c(_0x7a8cf1,_0x17094b){const _0x4bcbac=_0x4bcb();return _0x408c=function(_0x408c06,_0xbf3d0b){_0x408c06=_0x408c06-0x1bc;let _0x4b0121=_0x4bcbac[_0x408c06];return _0x4b0121;},_0x408c(_0x7a8cf1,_0x17094b);}import{global as _0x914c19,DomEmitterMixin as _0x2925c3}from'ckeditor5/src/utils.js';import{Sessions as _0x21e0c1}from'./sessions.js';import{ModelLiveRange as _0x319c9d}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x9fdcd7{[_0x30f950(0x236)]=new(_0x2925c3())();static get[_0x30f950(0x1ec)](){return[_0x21e0c1];}static get[_0x30f950(0x1f9)](){const _0x266f98=_0x30f950;return _0x266f98(0x212);}static get[_0x30f950(0x1fa)](){return!0x0;}static get[_0x30f950(0x215)](){return!0x0;}[_0x30f950(0x238)](){const _0x3b4c64=_0x30f950,_0x4031f9=this[_0x3b4c64(0x1c6)],_0x487813=_0x4031f9[_0x3b4c64(0x20b)][_0x3b4c64(0x20e)](_0x21e0c1);_0x4031f9[_0x3b4c64(0x1f4)][_0x3b4c64(0x1e7)](_0x3b4c64(0x22e))[_0x3b4c64(0x20a)]({'model':_0x3b4c64(0x1cc),'view':(_0x1e69d8,{writer:_0x3acef2})=>function(_0x5247c4,_0x5af227,_0x3de37f,_0x492d94){const _0x118e25=_0x3b4c64,_0x861fc2=_0x5247c4[_0x118e25(0x21d)][_0x118e25(0x23e)](':')[0x2],_0x12c3dc=_0x3de37f[_0x118e25(0x223)](_0x861fc2);if(!_0x12c3dc||_0x861fc2===_0x3de37f[_0x118e25(0x213)])return;if(!_0x492d94[_0x118e25(0x23d)][_0x118e25(0x1dc)][_0x118e25(0x204)](_0x5247c4[_0x118e25(0x1d3)][_0x118e25(0x245)],_0x118e25(0x235)))return;const _0x11831e={'class':_0x118e25(0x1c0)+_0x12c3dc[_0x118e25(0x22c)][_0x118e25(0x1c9)](),'data-name':_0x12c3dc[_0x118e25(0x23c)],'data-session-id':_0x861fc2},_0x3aa19b=_0x492d94[_0x118e25(0x23d)][_0x118e25(0x1ef)][_0x118e25(0x20e)](_0x5247c4[_0x118e25(0x21d)]),_0x3e7b85=_0x3aa19b[_0x118e25(0x228)](),_0x34cbd1=_0x3e7b85[_0x118e25(0x203)],_0x30b244=_0x492d94[_0x118e25(0x23d)][_0x118e25(0x1dc)];if(_0x34cbd1&&_0x30b244[_0x118e25(0x225)](_0x34cbd1)&&_0x30b244[_0x118e25(0x226)](_0x34cbd1)&&!_0x492d94[_0x118e25(0x23d)][_0x118e25(0x1ef)][_0x118e25(0x20e)](_0x118e25(0x222)+_0x861fc2)[_0x118e25(0x214)]()[_0x118e25(0x22b)])return;const _0x3d070b=_0x3e7b85[_0x118e25(0x1c8)];return _0x492d94[_0x118e25(0x23d)][_0x118e25(0x1dc)][_0x118e25(0x1d7)](_0x3d070b)&&!_0x492d94[_0x118e25(0x23d)][_0x118e25(0x232)](_0x3d070b)&&(_0x11831e[_0x118e25(0x1cd)]=!0x1),function(_0x2c5bf6,_0x2bd059,_0x4c4297){const _0x3fade1=_0x118e25,_0x1a805c=_0x2c5bf6[_0x3fade1(0x234)](_0x3fade1(0x237),_0x2bd059);return _0x2c5bf6[_0x3fade1(0x1c5)](_0x3fade1(0x239),!0x0,_0x1a805c),_0x1a805c[_0x3fade1(0x1fd)]=function(_0x3b9ad8){const _0x22877d=_0x3fade1,_0x44e7a5=this[_0x22877d(0x1c1)](_0x3b9ad8),_0x21a101=document[_0x22877d(0x1d9)](_0x22877d(0x237));return _0x21a101[_0x22877d(0x1d1)][_0x22877d(0x1e8)](_0x22877d(0x21a)),_0x21a101[_0x22877d(0x1db)](_0x22877d(0x1cd),_0x22877d(0x1e0)),_0x21a101[_0x22877d(0x1db)](_0x22877d(0x1ed),_0x22877d(0x1e0)),_0x21a101[_0x22877d(0x1f6)]=_0x4c4297[_0x22877d(0x23c)],_0x44e7a5[_0x22877d(0x202)]=_0x22877d(0x1f7)+_0x21a101[_0x22877d(0x23a)]+'',_0x44e7a5[_0x22877d(0x1dd)](_0x22877d(0x1ff),()=>{const _0x45d932=_0x22877d;_0x44e7a5[_0x45d932(0x1d1)][_0x45d932(0x1e8)](_0x45d932(0x1f5));}),_0x44e7a5[_0x22877d(0x1dd)](_0x22877d(0x1d8),()=>{const _0x1986a8=_0x22877d;_0x44e7a5[_0x1986a8(0x1d1)][_0x1986a8(0x217)](_0x1986a8(0x1f5));}),_0x44e7a5;},_0x1a805c[_0x3fade1(0x1f1)]=function(_0x195a2b){const _0x142d99=_0x3fade1;return!(!this[_0x142d99(0x210)](_0x142d99(0x239))||!_0x195a2b[_0x142d99(0x210)](_0x142d99(0x239))||this[_0x142d99(0x243)](_0x142d99(0x1d0))!=_0x195a2b[_0x142d99(0x243)](_0x142d99(0x1d0)));},_0x1a805c;}(_0x5af227,_0x11831e,_0x12c3dc);}(_0x1e69d8,_0x3acef2,_0x487813,_0x4031f9)}),_0x4031f9[_0x3b4c64(0x1f4)][_0x3b4c64(0x1e7)](_0x3b4c64(0x22e))[_0x3b4c64(0x230)]({'model':_0x3b4c64(0x22f),'view':_0x382522=>function(_0x2e3529,_0xe7f363){const _0x26e43c=_0x3b4c64,_0x2de0c3=_0x2e3529[_0x26e43c(0x21d)][_0x26e43c(0x23e)](':')[0x2];if(_0x2de0c3===_0xe7f363[_0x26e43c(0x213)])return null;const _0x46ed3a=_0xe7f363[_0x26e43c(0x223)](_0x2de0c3);if(!_0x46ed3a)return{'id':_0x2de0c3,'classes':[]};return{'id':_0x2de0c3,'classes':[_0x26e43c(0x23f),_0x46ed3a[_0x26e43c(0x22c)][_0x26e43c(0x20c)]()],'attributes':{'data-session-id':_0x2de0c3},'priority':0x7d0+_0x46ed3a[_0x26e43c(0x206)]};}(_0x382522,_0x487813)}),function(_0x1242ca){const _0x13760f=_0x3b4c64,_0x13caf6=_0x1242ca[_0x13760f(0x23d)],_0x5b9c65=new Map(),_0x37704e=_0x1242ca[_0x13760f(0x20b)][_0x13760f(0x20e)](_0x21e0c1);_0x13caf6[_0x13760f(0x1ef)]['on'](_0x13760f(0x23b),(_0x2734b6,_0x445c7e,_0x531f0a,_0x17a57c)=>{const _0xec477=_0x13760f;if(!_0x17a57c&&_0x5b9c65[_0xec477(0x20e)](_0x445c7e[_0xec477(0x23c)]))return _0x5b9c65[_0xec477(0x20e)](_0x445c7e[_0xec477(0x23c)])[_0xec477(0x1e9)](),void _0x5b9c65[_0xec477(0x1c7)](_0x445c7e[_0xec477(0x23c)]);const _0x51278c=_0x445c7e[_0xec477(0x23c)][_0xec477(0x23e)](':')[0x2];if(_0x51278c===_0x37704e[_0xec477(0x213)])return;const _0x51e347=_0xec477(0x1d5)+_0x51278c;_0x13caf6[_0xec477(0x1ef)][_0xec477(0x1d4)](_0x51e347)&&_0x1242ca[_0xec477(0x220)][_0xec477(0x229)](_0x51e347),_0x445c7e['on'](_0xec477(0x209),(_0x19ff70,_0x5ecd71,_0x41f788)=>{const _0x2df2cc=_0xec477;if(_0x2df2cc(0x1f2)!=_0x5ecd71[_0x2df2cc(0x1d6)][_0x2df2cc(0x1df)]&&_0x2df2cc(0x1f2)==_0x445c7e[_0x2df2cc(0x214)]()[_0x2df2cc(0x1d6)][_0x2df2cc(0x1df)]&&!_0x5b9c65[_0x2df2cc(0x1d4)](_0x445c7e[_0x2df2cc(0x23c)])){const _0x53c3e9=_0x13caf6[_0x2df2cc(0x1dc)][_0x2df2cc(0x1c3)](_0x41f788[_0x2df2cc(0x224)]);if(_0x53c3e9){const _0x5cb40a=_0x319c9d[_0x2df2cc(0x1ce)](_0x53c3e9);_0x5b9c65[_0x2df2cc(0x1cf)](_0x445c7e[_0x2df2cc(0x23c)],_0x5cb40a),_0x5cb40a['on'](_0x2df2cc(0x209),(_0x1db247,_0x2a6acd,_0x3abe97)=>{const _0x2ffaee=_0x2df2cc;if(_0x2ffaee(0x1f2)==_0x5cb40a[_0x2ffaee(0x1d6)][_0x2ffaee(0x1df)]){const _0x31de9a=_0x13caf6[_0x2ffaee(0x1dc)][_0x2ffaee(0x1c3)](_0x3abe97[_0x2ffaee(0x224)]);_0x31de9a?(_0x5cb40a[_0x2ffaee(0x245)]=_0x31de9a[_0x2ffaee(0x245)],_0x5cb40a[_0x2ffaee(0x221)]=_0x31de9a[_0x2ffaee(0x221)]):(_0x5b9c65[_0x2ffaee(0x1c7)](_0x445c7e[_0x2ffaee(0x23c)]),_0x5cb40a[_0x2ffaee(0x1e9)]());}});}}});}),_0x13caf6[_0x13760f(0x1e1)]['on'](_0x13760f(0x1f0),()=>{const _0x3c721d=_0x13760f;_0x5b9c65[_0x3c721d(0x1ee)]>0x0&&_0x13caf6[_0x3c721d(0x200)]({'isUndoable':!0x1},_0x317811=>{const _0x58208f=_0x3c721d;for(const [_0x27bdac,_0x18af7d]of _0x5b9c65)_0x58208f(0x1f2)==_0x13caf6[_0x58208f(0x1ef)][_0x58208f(0x20e)](_0x27bdac)[_0x58208f(0x214)]()[_0x58208f(0x1d6)][_0x58208f(0x1df)]&&(ee(_0x27bdac[_0x58208f(0x23e)](':')[0x2],_0x18af7d[_0x58208f(0x216)](),_0x13caf6,_0x317811),_0x18af7d[_0x58208f(0x1e9)]());_0x5b9c65[_0x58208f(0x1e5)]();});});}(_0x4031f9),this[_0x3b4c64(0x236)][_0x3b4c64(0x1e4)](_0x914c19[_0x3b4c64(0x1e1)],_0x3b4c64(0x241),(_0x16c081,{key:_0x36f3a2})=>{const _0x5cc5d4=_0x3b4c64;_0x5cc5d4(0x1fb)===_0x36f3a2&&function(_0x3288b2){const _0x47a95f=_0x5cc5d4;_0x3288b2[_0x47a95f(0x220)][_0x47a95f(0x242)][_0x47a95f(0x1f0)](_0x18bcb5=>{const _0x2a1135=_0x47a95f;for(const _0x3287e5 of _0x3288b2[_0x2a1135(0x23d)][_0x2a1135(0x1ef)]){if(!_0x3287e5[_0x2a1135(0x23c)][_0x2a1135(0x1c4)](_0x2a1135(0x1cc)))continue;const _0x2d0587=_0x3288b2[_0x2a1135(0x220)][_0x2a1135(0x1be)][_0x2a1135(0x1e2)](_0x3287e5[_0x2a1135(0x23c)]);if(_0x2d0587){for(const _0x477e3f of _0x2d0587)_0x18bcb5[_0x2a1135(0x22d)](_0x2a1135(0x1f5),_0x477e3f);}}});}(_0x4031f9);},{'useCapture':!0x0});}[_0x30f950(0x227)](){const _0x52d932=_0x30f950,_0x1ef276=this[_0x52d932(0x1c6)],_0x5e1603=_0x1ef276[_0x52d932(0x201)][_0x52d932(0x20e)](_0x52d932(0x1bc));_0x5e1603&&_0x1ef276[_0x52d932(0x23d)]['on'](_0x52d932(0x1e3),(_0x3eb5fe,_0x2eddb9)=>{const _0x5edf23=_0x52d932,_0x156dd0=_0x2eddb9[0x0];if(!_0x156dd0[_0x5edf23(0x1bf)])return;if(_0x5edf23(0x20d)!=_0x156dd0[_0x5edf23(0x219)]||!_0x156dd0[_0x5edf23(0x23c)][_0x5edf23(0x1c4)](_0x5edf23(0x1fc)))return;const _0x3af8f1=_0x156dd0[_0x5edf23(0x21c)];_0x5e1603[_0x5edf23(0x21e)][_0x5edf23(0x1d4)](_0x3af8f1)&&(_0x156dd0[_0x5edf23(0x1eb)]=_0x156dd0[_0x5edf23(0x1bd)]?_0x1ef276[_0x5edf23(0x23d)][_0x5edf23(0x208)](_0x156dd0[_0x5edf23(0x1bd)][_0x5edf23(0x245)],_0x156dd0[_0x5edf23(0x1bd)][_0x5edf23(0x221)]):null);},{'priority':_0x52d932(0x21f)});}[_0x30f950(0x21b)](){const _0x30868c=_0x30f950;return this[_0x30868c(0x236)][_0x30868c(0x1d2)](),super[_0x30868c(0x21b)]();}[_0x30f950(0x244)](){const _0x114fc4=_0x30f950,_0x588ed7=this[_0x114fc4(0x1c6)],_0x30fe05=_0x588ed7[_0x114fc4(0x23d)][_0x114fc4(0x1e1)],_0x3a0c84=_0x588ed7[_0x114fc4(0x20b)][_0x114fc4(0x20e)](_0x21e0c1);_0x588ed7[_0x114fc4(0x23d)][_0x114fc4(0x200)]({'isUndoable':!0x1},_0x183c5e=>{const _0x454dbd=_0x114fc4,_0x3e488e=_0x454dbd(0x222)+_0x3a0c84[_0x454dbd(0x213)],_0x4cf635=_0x454dbd(0x1d5)+_0x3a0c84[_0x454dbd(0x213)],_0x48935f=_0x588ed7[_0x454dbd(0x23d)][_0x454dbd(0x1ef)][_0x454dbd(0x1d4)](_0x3e488e);_0x588ed7[_0x454dbd(0x220)][_0x454dbd(0x242)][_0x454dbd(0x1e6)]?ee(_0x3a0c84[_0x454dbd(0x213)],_0x30fe05[_0x454dbd(0x246)][_0x454dbd(0x205)](),_0x588ed7[_0x454dbd(0x23d)],_0x183c5e):_0x48935f&&(_0x183c5e[_0x454dbd(0x233)](_0x3e488e),_0x183c5e[_0x454dbd(0x233)](_0x4cf635));});}}function ee(_0x626355,_0x2e61ae,_0x306736,_0x20e1a5){const _0x1a775c=_0x30f950,_0x5586b7=_0x1a775c(0x222)+_0x626355,_0x42d92f=_0x1a775c(0x1d5)+_0x626355,_0x592bd8=_0x2e61ae[_0x1a775c(0x1fe)]();let _0x3b9d28=_0x2e61ae[_0x1a775c(0x245)];if(_0x592bd8&&_0x592bd8['is'](_0x1a775c(0x1f3),_0x1a775c(0x1de))){const _0x5ddd91=function(_0x5ab833,_0x59c445){const _0x56aa67=_0x1a775c;for(const _0x17e022 of _0x5ab833[_0x56aa67(0x20f)]())if(_0x59c445[_0x56aa67(0x1dc)][_0x56aa67(0x204)](_0x17e022,_0x56aa67(0x235)))return _0x17e022;}(_0x2e61ae,_0x306736);_0x5ddd91&&(_0x3b9d28=_0x5ddd91,_0x2e61ae=_0x20e1a5[_0x1a775c(0x208)](_0x3b9d28));}const _0x35b7e5=_0x20e1a5[_0x1a775c(0x208)](_0x3b9d28);_0x306736[_0x1a775c(0x1ef)][_0x1a775c(0x1d4)](_0x5586b7)?(_0x20e1a5[_0x1a775c(0x1ca)](_0x5586b7,{'range':_0x2e61ae}),_0x20e1a5[_0x1a775c(0x1ca)](_0x42d92f,{'range':_0x35b7e5})):(_0x20e1a5[_0x1a775c(0x1c2)](_0x5586b7,{'range':_0x2e61ae,'usingOperation':!0x0}),_0x20e1a5[_0x1a775c(0x1c2)](_0x42d92f,{'range':_0x35b7e5,'usingOperation':!0x0}));}
|