@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 5.03 kB
JavaScript
/*
* 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 _0x4967eb=_0x34cc;(function(_0x6452,_0x5ed93c){const _0x2ecff3=_0x34cc,_0x606b1a=_0x6452();while(!![]){try{const _0x1e3ad8=parseInt(_0x2ecff3(0xb8))/0x1*(parseInt(_0x2ecff3(0xc6))/0x2)+parseInt(_0x2ecff3(0xb0))/0x3+parseInt(_0x2ecff3(0xb2))/0x4*(-parseInt(_0x2ecff3(0xb6))/0x5)+parseInt(_0x2ecff3(0xa6))/0x6*(parseInt(_0x2ecff3(0xa3))/0x7)+parseInt(_0x2ecff3(0xb1))/0x8+-parseInt(_0x2ecff3(0xbc))/0x9*(parseInt(_0x2ecff3(0xb4))/0xa)+parseInt(_0x2ecff3(0xbe))/0xb*(-parseInt(_0x2ecff3(0xa8))/0xc);if(_0x1e3ad8===_0x5ed93c)break;else _0x606b1a['push'](_0x606b1a['shift']());}catch(_0x245aa7){_0x606b1a['push'](_0x606b1a['shift']());}}}(_0x3824,0x54bba));import{ActionCompressor as _0x528c92}from'./actioncompressor.js';function _0x34cc(_0x4c72da,_0x2475d9){const _0x382475=_0x3824();return _0x34cc=function(_0x34cc43,_0x5647fd){_0x34cc43=_0x34cc43-0xa2;let _0x428c01=_0x382475[_0x34cc43];return _0x428c01;},_0x34cc(_0x4c72da,_0x2475d9);}import{arePositionsEqual as _0x948122}from'../utils.js';import{cloneDeep as _0x20d248}from'es-toolkit/compat';export class UserSelectionActionCompressor extends _0x528c92{[_0x4967eb(0xaa)](_0x567f5,_0x33dbf0){const _0x217c98=_0x4967eb;if(!this[_0x217c98(0xc2)](_0x33dbf0[0x0],_0x33dbf0[0x1]))return!0x1;const _0x540cd1=_0x33dbf0[_0x217c98(0xba)]();return _0x540cd1[_0x217c98(0xb5)]=null,_0x540cd1[_0x217c98(0xa4)]&&_0x948122(_0x540cd1[_0x217c98(0xa4)][_0x217c98(0xab)],_0x540cd1[_0x217c98(0xa4)][_0x217c98(0xc1)])&&(_0x540cd1[_0x217c98(0xa4)][_0x217c98(0xc1)]=null),_0x33dbf0[_0x217c98(0xba)](),_0x567f5[_0x217c98(0xb9)][_0x217c98(0xb7)](this[_0x217c98(0xc5)]),_0x567f5[_0x217c98(0xb9)][_0x217c98(0xb7)](0x0),_0x567f5[_0x217c98(0xac)][_0x217c98(0xb7)](this[_0x217c98(0xa7)](_0x540cd1)),!0x0;}[_0x4967eb(0xaf)](_0x2860f6,_0x2a0c39){const _0x295437=_0x4967eb,_0x26c567=this[_0x295437(0xc4)](_0x2a0c39);_0x26c567[_0x295437(0xa4)]&&!_0x26c567[_0x295437(0xa4)][_0x295437(0xc1)]&&(_0x26c567[_0x295437(0xa4)][_0x295437(0xc1)]=_0x20d248(_0x26c567[_0x295437(0xa4)][_0x295437(0xab)]));const _0x20243b=_0x20d248(_0x26c567);_0x20243b[_0x295437(0xa4)]&&(_0x20243b[_0x295437(0xa4)][_0x295437(0xab)][_0x295437(0xa2)]=_0x295437(0xc0),_0x20243b[_0x295437(0xa4)][_0x295437(0xc1)]=_0x20d248(_0x20243b[_0x295437(0xa4)][_0x295437(0xab)])),_0x20243b[_0x295437(0xc3)]=_0x295437(0xa5)+_0x20243b[_0x295437(0xc3)][_0x295437(0xa9)](':')[0x2],_0x2a0c39[_0x295437(0xb9)][_0x295437(0xba)](),_0x2860f6[_0x295437(0xb7)](_0x26c567),_0x2860f6[_0x295437(0xb7)](_0x20243b);}[_0x4967eb(0xa7)](_0x21ab36){const _0x1f6b42=_0x4967eb,_0x32f116={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1f6b42(0xad)][_0x1f6b42(0xae)](_0x1f6b42(0xbf))[_0x1f6b42(0xaa)](_0x32f116,[_0x21ab36]),_0x32f116[_0x1f6b42(0xac)][0x0];}[_0x4967eb(0xc4)](_0x5e3a51){const _0x4b6511=_0x4967eb,_0x5c61d1=[];return this[_0x4b6511(0xad)][_0x4b6511(0xae)](_0x4b6511(0xbf))[_0x4b6511(0xaf)](_0x5c61d1,_0x5e3a51),_0x5c61d1[0x0];}[_0x4967eb(0xc2)](_0x7ebcd8,_0xd20467){const _0x1b068f=_0x4967eb;return!(!_0x7ebcd8||!_0xd20467)&&(_0x1b068f(0xbf)==_0x7ebcd8[_0x1b068f(0xb3)]&&_0x1b068f(0xbf)==_0xd20467[_0x1b068f(0xb3)]&&!(!_0x7ebcd8[_0x1b068f(0xc3)][_0x1b068f(0xbd)](_0x1b068f(0xbb))||!_0xd20467[_0x1b068f(0xc3)][_0x1b068f(0xbd)](_0x1b068f(0xbb))||_0x7ebcd8[_0x1b068f(0xc3)]==_0xd20467[_0x1b068f(0xc3)]));}}function _0x3824(){const _0x4c3623=['108Dyavgg','split','compress','start','buffers','_context','_getCompressorByName','decompress','589095kMLxXA','4023008IoFAjU','4RFZuxz','__className','1065720sLVVoX','oldRange','2125985laUwOx','push','1mwWTBX','types','shift','user:','36oDNTwk','startsWith','463166hfTJuu','MarkerOperation','toNone','end','_compareOperations','name','_decompressSingleOperation','_id','388142JslKQz','stickiness','763VRyFUn','newRange','user:position:','37662kSfvkA','_compressSingleOperation'];_0x3824=function(){return _0x4c3623;};return _0x3824();}