UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 7.34 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 _0x11316f=_0x6458;(function(_0x49eb79,_0x16018f){const _0x3a9907=_0x6458,_0x304d71=_0x49eb79();while(!![]){try{const _0x1fb8af=parseInt(_0x3a9907(0xee))/0x1+-parseInt(_0x3a9907(0xff))/0x2+-parseInt(_0x3a9907(0xf9))/0x3*(parseInt(_0x3a9907(0xdf))/0x4)+-parseInt(_0x3a9907(0x104))/0x5+-parseInt(_0x3a9907(0xf4))/0x6+parseInt(_0x3a9907(0x10b))/0x7+parseInt(_0x3a9907(0xe4))/0x8*(parseInt(_0x3a9907(0xf8))/0x9);if(_0x1fb8af===_0x16018f)break;else _0x304d71['push'](_0x304d71['shift']());}catch(_0x683114){_0x304d71['push'](_0x304d71['shift']());}}}(_0x1219,0x89523));import{CKEditorError as _0xc9339}from'ckeditor5/src/utils.js';import{ProtobufFactory as _0x46d324}from'./protobuffactory.js';import{OperationCompressor as _0x42e052}from'./operationcompressor/operationcompressor.js';import{AttributeOperationCompressor as _0x1b3c00}from'./operationcompressor/attributeoperationcompressor.js';import{InsertOperationCompressor as _0x59b19f}from'./operationcompressor/insertoperationcompressor.js';import{MarkerOperationCompressor as _0x5a5031}from'./operationcompressor/markeroperationcompressor.js';function _0x1219(){const _0x42ce7a=['get','compress','InsertOperation','100834YvYuyt','SuggestionMarkerOperation','comment','CommentMarkerOperation','types','MoveOperation','3116454pvneIb','UserSelectionAction','DeletingAction','_compressorById','11295tnZtyV','12qxdbJc','length','_protobufFactory','baseVersion','set','suggestion','126420icGCjl','NoOperation','RenameOperation','MergeOperation','_getCompressorByName','1350635NfGBUp','RootOperation','no-operations-provided','SplitOperation','TypingAction','_compressorByName','RootAttributeOperation','1101562xUHoHZ','decompress-compressor-not-found','1005352BTwMyZ','MarkerOperation','forEach','_registerOperationCompressor','AttributeOperation','13784BtQmZX','getDescriptor','_registerCompressor','__className','decompress','ForwardDeletingAction','_registerActionCompressor'];_0x1219=function(){return _0x42ce7a;};return _0x1219();}function _0x6458(_0x3ee77f,_0x398bf8){const _0x121914=_0x1219();return _0x6458=function(_0x645840,_0x1e9426){_0x645840=_0x645840-0xdf;let _0x421226=_0x121914[_0x645840];return _0x421226;},_0x6458(_0x3ee77f,_0x398bf8);}import{NoOperationCompressor as _0x109ee4}from'./operationcompressor/nooperationcompressor.js';import{AnnotationMarkerOperationCompressor as _0x39bb49}from'./operationcompressor/annotationmarkeroperationcompressor.js';import{TypingActionCompressor as _0x28874c}from'./actioncompressor/typingactioncompressor.js';import{DeletingActionCompressor as _0x516ada}from'./actioncompressor/deletingactioncompressor.js';import{ForwardDeletingActionCompressor as _0x3a70ad}from'./actioncompressor/forwarddeletingactioncompressor.js';import{UserSelectionActionCompressor as _0x166c6c}from'./actioncompressor/userselectionactioncompressor.js';export class Compressor{[_0x11316f(0xf7)];[_0x11316f(0x109)];[_0x11316f(0xfb)];constructor(){const _0x12b186=_0x11316f;this[_0x12b186(0xf7)]=new Map(),this[_0x12b186(0x109)]=new Map(),this[_0x12b186(0xfb)]=new _0x46d324();const _0x5530a0=this[_0x12b186(0xfb)][_0x12b186(0xe5)](_0x12b186(0xe0));this[_0x12b186(0xe6)](0x1,_0x12b186(0x100),new _0x109ee4(0x1,_0x12b186(0x100),void 0x0)),this[_0x12b186(0xe2)](0xa,_0x12b186(0xe3),_0x1b3c00),this[_0x12b186(0xe2)](0xb,_0x12b186(0xed),_0x59b19f),this[_0x12b186(0xe2)](0xc,_0x12b186(0xe0),_0x5a5031),this[_0x12b186(0xe2)](0xd,_0x12b186(0x102),_0x42e052),this[_0x12b186(0xe2)](0xe,_0x12b186(0xf3),_0x42e052),this[_0x12b186(0xe2)](0xf,_0x12b186(0x101),_0x42e052),this[_0x12b186(0xe2)](0x10,_0x12b186(0x10a),_0x1b3c00),this[_0x12b186(0xe2)](0x11,_0x12b186(0x107),_0x42e052),this[_0x12b186(0xe6)](0x12,_0x12b186(0xf1),new _0x39bb49(0x12,_0x12b186(0xe0),_0x5530a0,_0x12b186(0xf0))),this[_0x12b186(0xe6)](0x13,_0x12b186(0xef),new _0x39bb49(0x13,_0x12b186(0xe0),_0x5530a0,_0x12b186(0xfe))),this[_0x12b186(0xe2)](0x14,_0x12b186(0x105),_0x42e052),this[_0x12b186(0xea)](0x64,_0x12b186(0x108),_0x28874c),this[_0x12b186(0xea)](0x65,_0x12b186(0xf6),_0x516ada),this[_0x12b186(0xea)](0x66,_0x12b186(0xe9),_0x3a70ad),this[_0x12b186(0xea)](0x67,_0x12b186(0xf5),_0x166c6c);}[_0x11316f(0xec)](_0x386ed4){const _0xc803be=_0x11316f;if(!_0x386ed4||!_0x386ed4[0x0])throw new _0xc9339(_0xc803be(0x106),this);const _0x3345e7={'types':[],'buffers':[],'baseVersion':_0x386ed4[0x0][_0xc803be(0xfc)]};for(;_0x386ed4[_0xc803be(0xfa)];)this[_0xc803be(0x103)](_0xc803be(0xf5))[_0xc803be(0xec)](_0x3345e7,_0x386ed4)||this[_0xc803be(0x103)](_0xc803be(0x108))[_0xc803be(0xec)](_0x3345e7,_0x386ed4)||this[_0xc803be(0x103)](_0xc803be(0xf6))[_0xc803be(0xec)](_0x3345e7,_0x386ed4)||this[_0xc803be(0x103)](_0xc803be(0xe9))[_0xc803be(0xec)](_0x3345e7,_0x386ed4)||this[_0xc803be(0x103)](_0xc803be(0xf1))[_0xc803be(0xec)](_0x3345e7,_0x386ed4)||this[_0xc803be(0x103)](_0xc803be(0xef))[_0xc803be(0xec)](_0x3345e7,_0x386ed4)||this[_0xc803be(0x103)](_0x386ed4[0x0][_0xc803be(0xe7)])[_0xc803be(0xec)](_0x3345e7,_0x386ed4);return _0x3345e7;}[_0x11316f(0xe8)](_0x440e6d){const _0x4ff403=_0x11316f,_0x57b7fd=[];for(;_0x440e6d[_0x4ff403(0xf2)][_0x4ff403(0xfa)];){const _0x2318fa=this[_0x4ff403(0xf7)][_0x4ff403(0xeb)](_0x440e6d[_0x4ff403(0xf2)][0x0]);if(!_0x2318fa)throw new _0xc9339(_0x4ff403(0x10c),this,{'type':_0x440e6d[_0x4ff403(0xf2)][0x0]});_0x2318fa[_0x4ff403(0xe8)](_0x57b7fd,_0x440e6d);}return _0x57b7fd[_0x4ff403(0xe1)]((_0x45d9b9,_0x4e3b79)=>_0x45d9b9[_0x4ff403(0xfc)]=_0x440e6d[_0x4ff403(0xfc)]+_0x4e3b79),_0x57b7fd;}[_0x11316f(0x103)](_0x1f5a20){const _0x26559d=_0x11316f;return this[_0x26559d(0x109)][_0x26559d(0xeb)](_0x1f5a20);}[_0x11316f(0xe2)](_0x1a384d,_0x4467e3,_0x12d9bd){const _0x58a19c=_0x11316f,_0x52d18e=new _0x12d9bd(_0x1a384d,_0x4467e3,this[_0x58a19c(0xfb)][_0x58a19c(0xe5)](_0x4467e3));this[_0x58a19c(0xe6)](_0x1a384d,_0x4467e3,_0x52d18e);}[_0x11316f(0xea)](_0x46d6df,_0x24912b,_0x42a255){const _0x24a6d2=_0x11316f,_0x4feccf=new _0x42a255(_0x46d6df,this);this[_0x24a6d2(0xe6)](_0x46d6df,_0x24912b,_0x4feccf);}[_0x11316f(0xe6)](_0x412a77,_0x5ce625,_0x383d75){const _0x2d2a07=_0x11316f;this[_0x2d2a07(0xf7)][_0x2d2a07(0xfd)](_0x412a77,_0x383d75),this[_0x2d2a07(0x109)][_0x2d2a07(0xfd)](_0x5ce625,_0x383d75);}}