@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 4.72 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 _0x3a79aa=_0x378b;(function(_0x1d6682,_0x57f397){const _0x3be648=_0x378b,_0x311222=_0x1d6682();while(!![]){try{const _0x214e7b=-parseInt(_0x3be648(0x134))/0x1*(-parseInt(_0x3be648(0x119))/0x2)+parseInt(_0x3be648(0x130))/0x3+-parseInt(_0x3be648(0x11d))/0x4+parseInt(_0x3be648(0x124))/0x5*(-parseInt(_0x3be648(0x135))/0x6)+parseInt(_0x3be648(0x136))/0x7*(-parseInt(_0x3be648(0x128))/0x8)+parseInt(_0x3be648(0x12a))/0x9*(parseInt(_0x3be648(0x126))/0xa)+-parseInt(_0x3be648(0x12f))/0xb*(-parseInt(_0x3be648(0x127))/0xc);if(_0x214e7b===_0x57f397)break;else _0x311222['push'](_0x311222['shift']());}catch(_0x1d95b5){_0x311222['push'](_0x311222['shift']());}}}(_0x49ba,0x8f26d));import{OperationCompressor as _0x2ffe4a}from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x2ee501,parsePositionAfterCompression as _0x447ab6}from'../utils.js';function _0x378b(_0x3b38f2,_0x3ad2cc){const _0x49bafb=_0x49ba();return _0x378b=function(_0x378b29,_0xcd5e59){_0x378b29=_0x378b29-0x119;let _0x4894ef=_0x49bafb[_0x378b29];return _0x4894ef;},_0x378b(_0x3b38f2,_0x3ad2cc);}export class InsertOperationCompressor extends _0x2ffe4a{[_0x3a79aa(0x137)](_0x31fac4,_0x30cc55){const _0x2f70d9=_0x3a79aa,_0x38163c=_0x30cc55[_0x2f70d9(0x11c)]();return this[_0x2f70d9(0x11b)](_0x38163c[_0x2f70d9(0x13b)]),_0x2ee501(_0x38163c),_0x31fac4[_0x2f70d9(0x133)][_0x2f70d9(0x122)](this[_0x2f70d9(0x123)][_0x2f70d9(0x137)](_0x38163c)),_0x31fac4[_0x2f70d9(0x13a)][_0x2f70d9(0x122)](this[_0x2f70d9(0x139)]),!0x0;}[_0x3a79aa(0x11e)](_0x1e61b8,_0x2f7ea4){const _0x281248=_0x3a79aa,{types:_0x2324d7,buffers:_0x6eca5e}=_0x2f7ea4,_0x5c77e4=this[_0x281248(0x123)][_0x281248(0x11e)](_0x6eca5e[_0x281248(0x11c)]());_0x2324d7[_0x281248(0x11c)](),_0x5c77e4[_0x281248(0x13b)]||(_0x5c77e4[_0x281248(0x13b)]=[]),this[_0x281248(0x125)](_0x5c77e4[_0x281248(0x13b)]),_0x447ab6(_0x5c77e4),_0x5c77e4[_0x281248(0x11f)]=this[_0x281248(0x12e)],_0x1e61b8[_0x281248(0x122)](_0x5c77e4);}[_0x3a79aa(0x11b)](_0x387c71){const _0x2eaa72=_0x3a79aa;for(const _0x209e1b of _0x387c71){if(_0x209e1b[_0x2eaa72(0x120)]){const _0x3a1d6b=_0x209e1b[_0x2eaa72(0x120)];this[_0x2eaa72(0x138)](_0x3a1d6b)?_0x209e1b[_0x2eaa72(0x129)]=_0x3a1d6b:_0x209e1b[_0x2eaa72(0x12c)]=JSON[_0x2eaa72(0x132)](_0x3a1d6b);}_0x209e1b[_0x2eaa72(0x131)]&&this[_0x2eaa72(0x11b)](_0x209e1b[_0x2eaa72(0x131)]);}}[_0x3a79aa(0x125)](_0x248b69){const _0x1d907b=_0x3a79aa;for(const _0x481345 of _0x248b69)(_0x481345[_0x1d907b(0x129)]||_0x481345[_0x1d907b(0x12c)])&&(_0x481345[_0x1d907b(0x129)]?(_0x481345[_0x1d907b(0x120)]=_0x481345[_0x1d907b(0x129)],delete _0x481345[_0x1d907b(0x129)]):(_0x481345[_0x1d907b(0x120)]=JSON[_0x1d907b(0x11a)](_0x481345[_0x1d907b(0x12c)]),delete _0x481345[_0x1d907b(0x12c)])),_0x481345[_0x1d907b(0x131)]&&this[_0x1d907b(0x125)](_0x481345[_0x1d907b(0x131)]);}[_0x3a79aa(0x138)](_0x3c1cbd){const _0x39f1b4=_0x3a79aa;return Object[_0x39f1b4(0x12d)](_0x3c1cbd)[_0x39f1b4(0x121)](_0x45e4ed=>_0x39f1b4(0x12b)==typeof _0x3c1cbd[_0x45e4ed]);}}function _0x49ba(){const _0x307fc8=['9133497zMTYbJ','boolean','attributesJson','keys','_operationName','94798MuAmaP','1238586sZlppJ','children','stringify','buffers','970151XkpEOn','6107934tGrKLB','329wrBxXk','compress','_areValuesBoolean','_id','types','nodes','2PBtOIR','parse','_serializeNodesAttributes','shift','4546708uSaVpb','decompress','__className','attributes','every','push','_protobufDescriptor','5GtabMl','_deserializeNodesAttributes','10XLiDvb','1044rUgwYx','69208aYjdMo','attributesBoolean'];_0x49ba=function(){return _0x307fc8;};return _0x49ba();}