UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 4.66 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x277416=_0x3792;(function(_0x358e35,_0x262301){const _0x159c50=_0x3792,_0x4c5958=_0x358e35();while(!![]){try{const _0x4bed82=-parseInt(_0x159c50(0xd2))/0x1*(-parseInt(_0x159c50(0xd0))/0x2)+-parseInt(_0x159c50(0xce))/0x3*(-parseInt(_0x159c50(0xcf))/0x4)+-parseInt(_0x159c50(0xc1))/0x5*(parseInt(_0x159c50(0xc3))/0x6)+parseInt(_0x159c50(0xc5))/0x7*(parseInt(_0x159c50(0xb9))/0x8)+-parseInt(_0x159c50(0xbf))/0x9+-parseInt(_0x159c50(0xbc))/0xa*(-parseInt(_0x159c50(0xc9))/0xb)+-parseInt(_0x159c50(0xb6))/0xc*(-parseInt(_0x159c50(0xc4))/0xd);if(_0x4bed82===_0x262301)break;else _0x4c5958['push'](_0x4c5958['shift']());}catch(_0x45ae40){_0x4c5958['push'](_0x4c5958['shift']());}}}(_0x59aa,0x5ce60));import _0x80f61e from'./operationcompressor.js';function _0x59aa(){const _0x2c0e85=['stringify','8OPffOf','attributesJson','children','1240950KerlMD','every','_serializeNodesAttributes','5600286xaCiBd','push','125525SqbySw','decompress','6yufwba','26zcOgrt','215411LUjYKc','shift','_protobufDescriptor','attributes','11KCqvDY','boolean','types','_operationName','_areValuesBoolean','13932DWqTAB','516TVzzSm','398758axtPGl','_id','1sTYyLY','compress','attributesBoolean','_deserializeNodesAttributes','buffers','keys','__className','parse','447288lrInhB','nodes'];_0x59aa=function(){return _0x2c0e85;};return _0x59aa();}function _0x3792(_0x3dfa91,_0x7fe2dc){const _0x59aaed=_0x59aa();return _0x3792=function(_0x379264,_0x5247ad){_0x379264=_0x379264-0xb2;let _0x33c1dc=_0x59aaed[_0x379264];return _0x33c1dc;},_0x3792(_0x3dfa91,_0x7fe2dc);}import{parsePositionBeforeCompression as _0x3cce06,parsePositionAfterCompression as _0x2c94f8}from'../utils.js';export default class i extends _0x80f61e{[_0x277416(0xd3)](_0x38415c,_0xdc56a5){const _0x2ff32f=_0x277416,_0x23f675=_0xdc56a5[_0x2ff32f(0xc6)]();return this[_0x2ff32f(0xbe)](_0x23f675[_0x2ff32f(0xb7)]),_0x3cce06(_0x23f675),_0x38415c[_0x2ff32f(0xb2)][_0x2ff32f(0xc0)](this[_0x2ff32f(0xc7)][_0x2ff32f(0xd3)](_0x23f675)),_0x38415c[_0x2ff32f(0xcb)][_0x2ff32f(0xc0)](this[_0x2ff32f(0xd1)]),!0x0;}[_0x277416(0xc2)](_0x44fcd3,_0xcfeced){const _0x1c4d2f=_0x277416,{types:_0x5933c9,buffers:_0x5b9c40}=_0xcfeced,_0x471414=this[_0x1c4d2f(0xc7)][_0x1c4d2f(0xc2)](_0x5b9c40[_0x1c4d2f(0xc6)]());_0x5933c9[_0x1c4d2f(0xc6)](),_0x471414[_0x1c4d2f(0xb7)]||(_0x471414[_0x1c4d2f(0xb7)]=[]),this[_0x1c4d2f(0xd5)](_0x471414[_0x1c4d2f(0xb7)]),_0x2c94f8(_0x471414),_0x471414[_0x1c4d2f(0xb4)]=this[_0x1c4d2f(0xcc)],_0x44fcd3[_0x1c4d2f(0xc0)](_0x471414);}[_0x277416(0xbe)](_0x54f563){const _0x102e0e=_0x277416;for(const _0x622f6a of _0x54f563){if(_0x622f6a[_0x102e0e(0xc8)]){const _0x18dde9=_0x622f6a[_0x102e0e(0xc8)];this[_0x102e0e(0xcd)](_0x18dde9)?_0x622f6a[_0x102e0e(0xd4)]=_0x18dde9:_0x622f6a[_0x102e0e(0xba)]=JSON[_0x102e0e(0xb8)](_0x18dde9);}_0x622f6a[_0x102e0e(0xbb)]&&this[_0x102e0e(0xbe)](_0x622f6a[_0x102e0e(0xbb)]);}}[_0x277416(0xd5)](_0x32fc5f){const _0x5611d9=_0x277416;for(const _0x3fe0d1 of _0x32fc5f)(_0x3fe0d1[_0x5611d9(0xd4)]||_0x3fe0d1[_0x5611d9(0xba)])&&(_0x3fe0d1[_0x5611d9(0xd4)]?(_0x3fe0d1[_0x5611d9(0xc8)]=_0x3fe0d1[_0x5611d9(0xd4)],delete _0x3fe0d1[_0x5611d9(0xd4)]):(_0x3fe0d1[_0x5611d9(0xc8)]=JSON[_0x5611d9(0xb5)](_0x3fe0d1[_0x5611d9(0xba)]),delete _0x3fe0d1[_0x5611d9(0xba)])),_0x3fe0d1[_0x5611d9(0xbb)]&&this[_0x5611d9(0xd5)](_0x3fe0d1[_0x5611d9(0xbb)]);}[_0x277416(0xcd)](_0x2a8a82){const _0x54daa8=_0x277416;return Object[_0x54daa8(0xb3)](_0x2a8a82)[_0x54daa8(0xbd)](_0x6c689d=>_0x54daa8(0xca)==typeof _0x2a8a82[_0x6c689d]);}}