@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 5.21 kB
JavaScript
/*
* 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 _0x31be70=_0x41c5;(function(_0x2fe8f6,_0x53b721){const _0x591f83=_0x41c5,_0xb1e8e=_0x2fe8f6();while(!![]){try{const _0x3c3b3c=parseInt(_0x591f83(0xc0))/0x1*(parseInt(_0x591f83(0xc5))/0x2)+-parseInt(_0x591f83(0xd4))/0x3+-parseInt(_0x591f83(0xc4))/0x4*(parseInt(_0x591f83(0xca))/0x5)+-parseInt(_0x591f83(0xb6))/0x6*(parseInt(_0x591f83(0xcb))/0x7)+parseInt(_0x591f83(0xc8))/0x8*(-parseInt(_0x591f83(0xd9))/0x9)+parseInt(_0x591f83(0xd0))/0xa+parseInt(_0x591f83(0xd8))/0xb;if(_0x3c3b3c===_0x53b721)break;else _0xb1e8e['push'](_0xb1e8e['shift']());}catch(_0x123ff4){_0xb1e8e['push'](_0xb1e8e['shift']());}}}(_0x8148,0x2d586));import _0x5c6a04 from'./actioncompressor.js';function _0x8148(){const _0x2c4778=['22eyGdHU','_decompressSingleOperation','position','136XSJzId','every','585mgdKRb','14zgYMVE','data','attributes','buffers','wasUndone','194430HmecbP','_compressSingleOperation','_compareAttributes','_checkOperation','393726slyYNk','_getCompressorByName','__className','InsertOperation','4721541CybKpu','54063nmbMIF','_splitCurrent','next','510426fxmdPY','keys','nodes','iterator','substr','_combineNext','length','from','decompress','value','32009JKOuEp','_compareOperations','compress','_context','7232GVTISl'];_0x8148=function(){return _0x2c4778;};return _0x8148();}import{arePositionsEqual as _0x54f4a1,getPositionShiftedBy as _0x746db6}from'../utils.js';import{cloneDeep as _0x3a9ca6}from'es-toolkit/compat';function _0x41c5(_0xbf0201,_0x54a5b9){const _0x81489=_0x8148();return _0x41c5=function(_0x41c5f7,_0x1d3da0){_0x41c5f7=_0x41c5f7-0xb6;let _0xf768ae=_0x81489[_0x41c5f7];return _0xf768ae;},_0x41c5(_0xbf0201,_0x54a5b9);}export default class m extends _0x5c6a04{[_0x31be70(0xbb)](_0x20e117,_0x1b9731){const _0x3a24a9=_0x31be70;return _0x1b9731[_0x3a24a9(0xb8)][0x0][_0x3a24a9(0xcc)]+=_0x20e117[_0x3a24a9(0xb8)][0x0][_0x3a24a9(0xcc)],_0x1b9731;}[_0x31be70(0xda)](_0x2a437a){const _0x20e660=_0x31be70,_0x6730ee=_0x3a9ca6(_0x2a437a),_0x4ab38c=_0x6730ee[_0x20e660(0xb8)][0x0],_0x1302cf=_0x2a437a[_0x20e660(0xb8)][0x0],_0x23faf7=_0x1302cf[_0x20e660(0xcc)][Symbol[_0x20e660(0xb9)]]()[_0x20e660(0xdb)]()[_0x20e660(0xbf)],_0x297fac=_0x23faf7[_0x20e660(0xbc)];return _0x4ab38c[_0x20e660(0xcc)]=_0x23faf7,_0x1302cf[_0x20e660(0xcc)]=_0x1302cf[_0x20e660(0xcc)][_0x20e660(0xba)](_0x297fac),_0x2a437a[_0x20e660(0xc7)]=_0x746db6(_0x2a437a[_0x20e660(0xc7)],_0x297fac),_0x6730ee;}[_0x31be70(0xc1)](_0x24a724,_0xa5607a){const _0x371f91=_0x31be70;if(this[_0x371f91(0xd3)](_0x24a724)&&this[_0x371f91(0xd3)](_0xa5607a)){const _0x4c278c=_0x24a724[_0x371f91(0xb8)][0x0][_0x371f91(0xcc)][_0x371f91(0xbc)],_0x346299=_0x54f4a1(_0x746db6(_0x24a724[_0x371f91(0xc7)],_0x4c278c),_0xa5607a[_0x371f91(0xc7)]),_0x5d49b4=_0x24a724[_0x371f91(0xb8)][0x0],_0x84c636=_0xa5607a[_0x371f91(0xb8)][0x0];return _0x346299&&this[_0x371f91(0xd2)](_0x5d49b4,_0x84c636);}return!0x1;}[_0x31be70(0xd1)](_0x51d049){const _0x4d0159=_0x31be70,_0x3e2e07={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x4d0159(0xc3)][_0x4d0159(0xd5)](_0x4d0159(0xd7))[_0x4d0159(0xc2)](_0x3e2e07,[_0x51d049]),_0x3e2e07[_0x4d0159(0xce)][0x0];}[_0x31be70(0xc6)](_0x53c6d8){const _0x4a5608=_0x31be70,_0xd0432e=[];return this[_0x4a5608(0xc3)][_0x4a5608(0xd5)](_0x4a5608(0xd7))[_0x4a5608(0xbe)](_0xd0432e,_0x53c6d8),_0xd0432e[0x0];}[_0x31be70(0xd3)](_0x46b480){const _0x4473f6=_0x31be70;return _0x4473f6(0xd7)==_0x46b480[_0x4473f6(0xd6)]&&0x1==_0x46b480[_0x4473f6(0xb8)][_0x4473f6(0xbc)]&&_0x46b480[_0x4473f6(0xb8)][0x0][_0x4473f6(0xcc)]&&!_0x46b480[_0x4473f6(0xcf)]&&0x1==Array[_0x4473f6(0xbd)](_0x46b480[_0x4473f6(0xb8)][0x0][_0x4473f6(0xcc)])[_0x4473f6(0xbc)];}[_0x31be70(0xd2)](_0x3b0209,_0x23d34b){const _0x15d6cd=_0x31be70,_0x422a78=Object[_0x15d6cd(0xb7)](_0x3b0209[_0x15d6cd(0xcd)]||{}),_0x3d3218=Object[_0x15d6cd(0xb7)](_0x23d34b[_0x15d6cd(0xcd)]||{});return _0x422a78[_0x15d6cd(0xbc)]===_0x3d3218[_0x15d6cd(0xbc)]&&_0x422a78[_0x15d6cd(0xc9)](_0x527abc=>_0x23d34b[_0x15d6cd(0xcd)][_0x527abc]&&_0x23d34b[_0x15d6cd(0xcd)][_0x527abc]===_0x3b0209[_0x15d6cd(0xcd)][_0x527abc]);}}