@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 5.26 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x48f3(_0x4bb632,_0x2f134a){const _0x15f3b6=_0x15f3();return _0x48f3=function(_0x48f382,_0x47086){_0x48f382=_0x48f382-0x9d;let _0x9338cb=_0x15f3b6[_0x48f382];return _0x9338cb;},_0x48f3(_0x4bb632,_0x2f134a);}const _0x5c523b=_0x48f3;(function(_0x23b75b,_0x234e8c){const _0x2f5b34=_0x48f3,_0x5ddb0d=_0x23b75b();while(!![]){try{const _0x485f3c=parseInt(_0x2f5b34(0xa8))/0x1*(parseInt(_0x2f5b34(0xc2))/0x2)+-parseInt(_0x2f5b34(0xbb))/0x3*(parseInt(_0x2f5b34(0xa9))/0x4)+-parseInt(_0x2f5b34(0xbe))/0x5*(parseInt(_0x2f5b34(0xae))/0x6)+parseInt(_0x2f5b34(0xba))/0x7*(-parseInt(_0x2f5b34(0xad))/0x8)+parseInt(_0x2f5b34(0xa3))/0x9+parseInt(_0x2f5b34(0xc3))/0xa+parseInt(_0x2f5b34(0x9e))/0xb*(parseInt(_0x2f5b34(0xbf))/0xc);if(_0x485f3c===_0x234e8c)break;else _0x5ddb0d['push'](_0x5ddb0d['shift']());}catch(_0x4eecb7){_0x5ddb0d['push'](_0x5ddb0d['shift']());}}}(_0x15f3,0x8d67a));import _0x324959 from'./actioncompressor.js';import{arePositionsEqual as _0x4accb2,getPositionShiftedBy as _0x55de1b}from'../utils.js';function _0x15f3(){const _0x5b720f=['substr','position','_checkOperation','175847rwgpZi','15PDQEpg','value','next','1570JiaxCI','2148XhiFem','_getCompressorByName','_compareAttributes','1788TONxfl','5902520RWvjZv','_splitCurrent','49577edvXDR','iterator','_decompressSingleOperation','nodes','_compareOperations','3865635slhaOR','attributes','__className','InsertOperation','length','23HFHggX','51196qkupnU','_context','every','from','136EWvlPQ','14844hdZtxz','buffers','keys','_combineNext','compress','data','wasUndone','_compressSingleOperation','decompress'];_0x15f3=function(){return _0x5b720f;};return _0x15f3();}import{cloneDeep as _0x2e72d0}from'es-toolkit/compat';export default class m extends _0x324959{[_0x5c523b(0xb1)](_0x3d5f53,_0x5cdee9){const _0xa111b0=_0x5c523b;return _0x5cdee9[_0xa111b0(0xa1)][0x0][_0xa111b0(0xb3)]+=_0x3d5f53[_0xa111b0(0xa1)][0x0][_0xa111b0(0xb3)],_0x5cdee9;}[_0x5c523b(0x9d)](_0x455e8d){const _0x4402da=_0x5c523b,_0x141657=_0x2e72d0(_0x455e8d),_0x2d451d=_0x141657[_0x4402da(0xa1)][0x0],_0x3fe339=_0x455e8d[_0x4402da(0xa1)][0x0],_0x57633d=_0x3fe339[_0x4402da(0xb3)][Symbol[_0x4402da(0x9f)]]()[_0x4402da(0xbd)]()[_0x4402da(0xbc)],_0x5adb55=_0x57633d[_0x4402da(0xa7)];return _0x2d451d[_0x4402da(0xb3)]=_0x57633d,_0x3fe339[_0x4402da(0xb3)]=_0x3fe339[_0x4402da(0xb3)][_0x4402da(0xb7)](_0x5adb55),_0x455e8d[_0x4402da(0xb8)]=_0x55de1b(_0x455e8d[_0x4402da(0xb8)],_0x5adb55),_0x141657;}[_0x5c523b(0xa2)](_0x5bdd3c,_0x2dc2be){const _0x25d01a=_0x5c523b;if(this[_0x25d01a(0xb9)](_0x5bdd3c)&&this[_0x25d01a(0xb9)](_0x2dc2be)){const _0x5a202b=_0x5bdd3c[_0x25d01a(0xa1)][0x0][_0x25d01a(0xb3)][_0x25d01a(0xa7)],_0x3deb46=_0x4accb2(_0x55de1b(_0x5bdd3c[_0x25d01a(0xb8)],_0x5a202b),_0x2dc2be[_0x25d01a(0xb8)]),_0xef50eb=_0x5bdd3c[_0x25d01a(0xa1)][0x0],_0x29cc5f=_0x2dc2be[_0x25d01a(0xa1)][0x0];return _0x3deb46&&this[_0x25d01a(0xc1)](_0xef50eb,_0x29cc5f);}return!0x1;}[_0x5c523b(0xb5)](_0x1badd1){const _0x1b2a5c=_0x5c523b,_0x5bbcdc={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1b2a5c(0xaa)][_0x1b2a5c(0xc0)](_0x1b2a5c(0xa6))[_0x1b2a5c(0xb2)](_0x5bbcdc,[_0x1badd1]),_0x5bbcdc[_0x1b2a5c(0xaf)][0x0];}[_0x5c523b(0xa0)](_0x29c157){const _0x22e655=_0x5c523b,_0x454d99=[];return this[_0x22e655(0xaa)][_0x22e655(0xc0)](_0x22e655(0xa6))[_0x22e655(0xb6)](_0x454d99,_0x29c157),_0x454d99[0x0];}[_0x5c523b(0xb9)](_0x29708d){const _0xaed788=_0x5c523b;return _0xaed788(0xa6)==_0x29708d[_0xaed788(0xa5)]&&0x1==_0x29708d[_0xaed788(0xa1)][_0xaed788(0xa7)]&&_0x29708d[_0xaed788(0xa1)][0x0][_0xaed788(0xb3)]&&!_0x29708d[_0xaed788(0xb4)]&&0x1==Array[_0xaed788(0xac)](_0x29708d[_0xaed788(0xa1)][0x0][_0xaed788(0xb3)])[_0xaed788(0xa7)];}[_0x5c523b(0xc1)](_0x144ea4,_0x51a771){const _0x7fe29d=_0x5c523b,_0x5bb141=Object[_0x7fe29d(0xb0)](_0x144ea4[_0x7fe29d(0xa4)]||{}),_0x4e8933=Object[_0x7fe29d(0xb0)](_0x51a771[_0x7fe29d(0xa4)]||{});return _0x5bb141[_0x7fe29d(0xa7)]===_0x4e8933[_0x7fe29d(0xa7)]&&_0x5bb141[_0x7fe29d(0xab)](_0x2154c5=>_0x51a771[_0x7fe29d(0xa4)][_0x2154c5]&&_0x51a771[_0x7fe29d(0xa4)][_0x2154c5]===_0x144ea4[_0x7fe29d(0xa4)][_0x2154c5]);}}