UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 3.69 kB
/* * Copyright (c) 2003-2026, 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 _0x3bde81=_0x3680;(function(_0x2036ee,_0x2d18da){const _0x534d70=_0x3680,_0x5374f6=_0x2036ee();while(!![]){try{const _0x3aa4ed=parseInt(_0x534d70(0x1da))/0x1*(parseInt(_0x534d70(0x1e0))/0x2)+-parseInt(_0x534d70(0x1e9))/0x3+parseInt(_0x534d70(0x1d9))/0x4+-parseInt(_0x534d70(0x1df))/0x5*(-parseInt(_0x534d70(0x1dc))/0x6)+parseInt(_0x534d70(0x1d3))/0x7*(parseInt(_0x534d70(0x1d4))/0x8)+-parseInt(_0x534d70(0x1e2))/0x9*(parseInt(_0x534d70(0x1e1))/0xa)+-parseInt(_0x534d70(0x1e5))/0xb;if(_0x3aa4ed===_0x2d18da)break;else _0x5374f6['push'](_0x5374f6['shift']());}catch(_0x4a09f3){_0x5374f6['push'](_0x5374f6['shift']());}}}(_0x66be,0xa2ad2));function _0x3680(_0x2f9c88,_0xd56294){const _0x66beef=_0x66be();return _0x3680=function(_0x368063,_0x527e4b){_0x368063=_0x368063-0x1d3;let _0x4d974b=_0x66beef[_0x368063];return _0x4d974b;},_0x3680(_0x2f9c88,_0xd56294);}import{cloneDeep as _0x471d68}from'es-toolkit/compat';function _0x66be(){const _0x6a0cc4=['length','_compareOperations','7THsnjc','4308144AFiUHj','_id','_compressSingleOperation','types','_context','3660336kvGzhu','497xCyiJA','_decompressSingleOperation','7200426kjuiTP','_combineNext','buffers','5jOjhiG','5218qCevGE','5470BcBIYD','1827bXbIIC','push','shift','31051548ZTBcka','_splitCurrent','decompress','compress','1050345ZOwGtu'];_0x66be=function(){return _0x6a0cc4;};return _0x66be();}export class ActionCompressor{[_0x3bde81(0x1d5)];[_0x3bde81(0x1d8)];constructor(_0x24c47d,_0x2f7578){const _0x5e2c2b=_0x3bde81;this[_0x5e2c2b(0x1d5)]=_0x24c47d,this[_0x5e2c2b(0x1d8)]=_0x2f7578;}[_0x3bde81(0x1e8)](_0x3dde33,_0x2fca23){const _0x3f51f4=_0x3bde81;let _0xfc0f4f;for(;_0x2fca23[_0x3f51f4(0x1ea)]>0x1&&this[_0x3f51f4(0x1eb)](_0x2fca23[0x0],_0x2fca23[0x1]);)_0xfc0f4f?(_0xfc0f4f=this[_0x3f51f4(0x1dd)](_0x2fca23[_0x3f51f4(0x1e4)](),_0xfc0f4f),_0x3dde33[_0x3f51f4(0x1d7)][_0x3f51f4(0x1e3)](0x0)):(_0xfc0f4f=_0x471d68(_0x2fca23[_0x3f51f4(0x1e4)]()),_0x3dde33[_0x3f51f4(0x1d7)][_0x3f51f4(0x1e3)](this[_0x3f51f4(0x1d5)]));return!!_0xfc0f4f&&(_0xfc0f4f=this[_0x3f51f4(0x1dd)](_0x2fca23[_0x3f51f4(0x1e4)](),_0xfc0f4f),_0x3dde33[_0x3f51f4(0x1d7)][_0x3f51f4(0x1e3)](0x0),_0x3dde33[_0x3f51f4(0x1de)][_0x3f51f4(0x1e3)](this[_0x3f51f4(0x1d6)](_0xfc0f4f)),!0x0);}[_0x3bde81(0x1e7)](_0x3160eb,_0x420450){const _0x2665c2=_0x3bde81,_0x47ff8f=this[_0x2665c2(0x1db)](_0x420450);for(;0x0==_0x420450[_0x2665c2(0x1d7)][0x0];)_0x420450[_0x2665c2(0x1d7)][_0x2665c2(0x1e4)](),_0x3160eb[_0x2665c2(0x1e3)](this[_0x2665c2(0x1e6)](_0x47ff8f));_0x3160eb[_0x2665c2(0x1e3)](_0x47ff8f);}}