@ckeditor/ckeditor5-operations-compressor 34.1.0 → 35.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/actioncompressor/actioncompressor.js +1 -1
- package/src/actioncompressor/deletingactioncompressor.js +1 -1
- package/src/actioncompressor/forwarddeletingactioncompressor.js +1 -1
- package/src/actioncompressor/typingactioncompressor.js +1 -1
- package/src/actioncompressor/userselectionactioncompressor.js +1 -1
- package/src/commondescriptions.js +1 -1
- package/src/compressor.js +1 -1
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +1 -1
- package/src/operationcompressor/attributeoperationcompressor.js +1 -1
- package/src/operationcompressor/insertoperationcompressor.js +1 -1
- package/src/operationcompressor/markeroperationcompressor.js +1 -1
- package/src/operationcompressor/mergeoperationcompressor.js +1 -1
- package/src/operationcompressor/moveoperationcompressor.js +1 -1
- package/src/operationcompressor/nooperationcompressor.js +1 -1
- package/src/operationcompressor/operationcompressor.js +1 -1
- package/src/operationcompressor/renameoperationcompressor.js +1 -1
- package/src/operationcompressor/rootattributeoperationcompressor.js +1 -1
- package/src/operationcompressor/splitoperationcompressor.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-operations-compressor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.1.0",
|
|
4
4
|
"description": "CKEditor 5 operations compressor for real-time collaboration.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://ckeditor.com/collaboration/real-time/",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"author": "CKSource (http://cksource.com/)",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"ckeditor5": "^
|
|
30
|
+
"ckeditor5": "^35.1.0",
|
|
31
31
|
"lodash-es": "^4.17.11",
|
|
32
32
|
"protobufjs": "^6.8.8"
|
|
33
33
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23e4=['_decompressSingleOperation','_context','push','_combineNext','types','_splitCurrent','_compressSingleOperation','compress','_compareOperations','length','decompress','shift'];(function(_0x39a930,_0x23e46c){const _0x5b7193=function(_0x20e4f4){while(--_0x20e4f4){_0x39a930['push'](_0x39a930['shift']());}};_0x5b7193(++_0x23e46c);}(_0x23e4,0x156));const _0x5b71=function(_0x39a930,_0x23e46c){_0x39a930=_0x39a930-0x0;let _0x5b7193=_0x23e4[_0x39a930];return _0x5b7193;};import{cloneDeep as _0x41137e}from'lodash-es';export default class j{constructor(_0x197a69,_0x16f7c5){this['id']=_0x197a69,this[_0x5b71('0x7')]=_0x16f7c5;}[_0x5b71('0x1')](_0xd4d826,_0x4d849b){let _0x2cc87a;for(;_0x4d849b[_0x5b71('0x3')]>0x1&&this[_0x5b71('0x2')](_0x4d849b[0x0],_0x4d849b[0x1]);)_0x2cc87a?(_0x2cc87a=this[_0x5b71('0x9')](_0x4d849b[_0x5b71('0x5')](),_0x2cc87a),_0xd4d826[_0x5b71('0xa')][_0x5b71('0x8')](0x0)):(_0x2cc87a=_0x41137e(_0x4d849b[_0x5b71('0x5')]()),_0xd4d826[_0x5b71('0xa')][_0x5b71('0x8')](this['id']));return!!_0x2cc87a&&(_0x2cc87a=this[_0x5b71('0x9')](_0x4d849b['shift'](),_0x2cc87a),_0xd4d826[_0x5b71('0xa')]['push'](0x0),_0xd4d826['buffers'][_0x5b71('0x8')](this[_0x5b71('0x0')](_0x2cc87a)),!0x0);}[_0x5b71('0x4')](_0x549721,_0xeeffcf){const _0xa19abf=this[_0x5b71('0x6')](_0xeeffcf);for(;0x0==_0xeeffcf[_0x5b71('0xa')][0x0];)_0xeeffcf['types'][_0x5b71('0x5')](),_0x549721[_0x5b71('0x8')](this[_0x5b71('0xb')](_0xa19abf));_0x549721[_0x5b71('0x8')](_0xa19abf);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x239b=['decompress','_decompressSingleOperation','buffers','MoveOperation','_getCompressorByName','__className','root','_context','sourcePosition','_combineNext','targetPosition','$graveyard','howMany','_compressSingleOperation','wasUndone','compress'];(function(_0x289deb,_0x239b30){const _0x1af808=function(_0xce1cd7){while(--_0xce1cd7){_0x289deb['push'](_0x289deb['shift']());}};_0x1af808(++_0x239b30);}(_0x239b,0x10e));const _0x1af8=function(_0x289deb,_0x239b30){_0x289deb=_0x289deb-0x0;let _0x1af808=_0x239b[_0x289deb];return _0x1af808;};import _0x29834f from'./actioncompressor';import{arePositionsEqual as _0xa490e6,getPositionShiftedBy as _0x33b774}from'../utils';import{cloneDeep as _0x58bb7b}from'lodash-es';export default class u extends _0x29834f{[_0x1af8('0xb')](_0x465cda,_0x475e37){return _0x475e37[_0x1af8('0xe')]++,_0x475e37[_0x1af8('0xa')]=_0x58bb7b(_0x465cda[_0x1af8('0xa')]),_0x475e37;}['_splitCurrent'](_0x32783b){const _0x5059c6=_0x58bb7b(_0x32783b);return _0x32783b[_0x1af8('0xe')]--,_0x5059c6[_0x1af8('0xe')]=0x1,_0x5059c6[_0x1af8('0xa')]=_0x33b774(_0x5059c6['sourcePosition'],_0x32783b['howMany']),_0x5059c6;}['_compareOperations'](_0x49cc03,_0x128f11){return!(!S(_0x49cc03)||!S(_0x128f11))&&(_0xa490e6(_0x33b774(_0x49cc03[_0x1af8('0xa')],-0x1),_0x128f11['sourcePosition'])&&_0xa490e6(_0x49cc03[_0x1af8('0xc')],_0x128f11[_0x1af8('0xc')]));}[_0x1af8('0xf')](_0x5be866){const _0x2dbd1f={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1af8('0x9')][_0x1af8('0x6')](_0x1af8('0x5'))[_0x1af8('0x1')](_0x2dbd1f,[_0x5be866]),_0x2dbd1f[_0x1af8('0x4')][0x0];}[_0x1af8('0x3')](_0x1582f4){const _0x3fdf02=[];return this[_0x1af8('0x9')][_0x1af8('0x6')]('MoveOperation')[_0x1af8('0x2')](_0x3fdf02,_0x1582f4),_0x3fdf02[0x0];}}function S(_0x180cd5){return _0x1af8('0x5')==_0x180cd5[_0x1af8('0x7')]&&_0x1af8('0xd')==_0x180cd5[_0x1af8('0xc')][_0x1af8('0x8')]&&0x1==_0x180cd5[_0x1af8('0xe')]&&!_0x180cd5[_0x1af8('0x0')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x292c=['wasUndone','root','_compareOperations','_combineNext','_context','buffers','targetPosition','__className','MoveOperation','sourcePosition','$graveyard','_getCompressorByName','howMany','_splitCurrent'];(function(_0xc4d18d,_0x292cf9){const _0x107329=function(_0x3c106c){while(--_0x3c106c){_0xc4d18d['push'](_0xc4d18d['shift']());}};_0x107329(++_0x292cf9);}(_0x292c,0x97));const _0x1073=function(_0xc4d18d,_0x292cf9){_0xc4d18d=_0xc4d18d-0x0;let _0x107329=_0x292c[_0xc4d18d];return _0x107329;};import _0x398d6b from'./actioncompressor';import{arePositionsEqual as _0x54c3e3}from'../utils';import{cloneDeep as _0x18df48}from'lodash-es';export default class l extends _0x398d6b{[_0x1073('0x6')](_0xd8108f,_0x3de71){return _0x3de71[_0x1073('0x1')]++,_0x3de71;}[_0x1073('0x2')](_0x142cac){const _0x207d8e=_0x18df48(_0x142cac);return _0x207d8e['howMany']=0x1,_0x142cac['howMany']--,_0x207d8e;}[_0x1073('0x5')](_0x5a5c6d,_0x2acc11){return!(!S(_0x5a5c6d)||!S(_0x2acc11))&&(_0x54c3e3(_0x5a5c6d[_0x1073('0xc')],_0x2acc11[_0x1073('0xc')])&&_0x54c3e3(_0x5a5c6d[_0x1073('0x9')],_0x2acc11['targetPosition']));}['_compressSingleOperation'](_0x47a363){const _0x3ab929={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1073('0x7')][_0x1073('0x0')](_0x1073('0xb'))['compress'](_0x3ab929,[_0x47a363]),_0x3ab929[_0x1073('0x8')][0x0];}['_decompressSingleOperation'](_0x1616ca){const _0x3c8f1e=[];return this[_0x1073('0x7')][_0x1073('0x0')](_0x1073('0xb'))['decompress'](_0x3c8f1e,_0x1616ca),_0x3c8f1e[0x0];}}function S(_0x17ed51){return _0x1073('0xb')==_0x17ed51[_0x1073('0xa')]&&_0x1073('0xd')==_0x17ed51[_0x1073('0x9')][_0x1073('0x4')]&&0x1==_0x17ed51[_0x1073('0x1')]&&!_0x17ed51[_0x1073('0x3')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1597=['value','keys','data','_getCompressorByName','attributes','length','_compareOperations','_combineNext','every','wasUndone','InsertOperation','_splitCurrent','nodes','__className','position','next','compress','substr','from','iterator','_compressSingleOperation'];(function(_0x1c2987,_0x15974f){const _0x2d8a57=function(_0x59c152){while(--_0x59c152){_0x1c2987['push'](_0x1c2987['shift']());}};_0x2d8a57(++_0x15974f);}(_0x1597,0xda));const _0x2d8a=function(_0x1c2987,_0x15974f){_0x1c2987=_0x1c2987-0x0;let _0x2d8a57=_0x1597[_0x1c2987];return _0x2d8a57;};import _0x525c42 from'./actioncompressor';import{arePositionsEqual as _0xb1729e,getPositionShiftedBy as _0x487129}from'../utils';import{cloneDeep as _0x79604c}from'lodash-es';export default class g extends _0x525c42{[_0x2d8a('0x14')](_0x4a36bf,_0x5049bc){return _0x5049bc[_0x2d8a('0x4')][0x0][_0x2d8a('0xf')]+=_0x4a36bf[_0x2d8a('0x4')][0x0][_0x2d8a('0xf')],_0x5049bc;}[_0x2d8a('0x3')](_0x2f61b5){const _0x24f4f8=_0x79604c(_0x2f61b5),_0xd2508c=_0x24f4f8['nodes'][0x0],_0xe7ec77=_0x2f61b5['nodes'][0x0],_0x59940c=_0xe7ec77[_0x2d8a('0xf')][Symbol[_0x2d8a('0xb')]]()[_0x2d8a('0x7')]()[_0x2d8a('0xd')],_0x5396b4=_0x59940c[_0x2d8a('0x12')];return _0xd2508c[_0x2d8a('0xf')]=_0x59940c,_0xe7ec77[_0x2d8a('0xf')]=_0xe7ec77['data'][_0x2d8a('0x9')](_0x5396b4),_0x2f61b5['position']=_0x487129(_0x2f61b5[_0x2d8a('0x6')],_0x5396b4),_0x24f4f8;}[_0x2d8a('0x13')](_0x5373b7,_0x297b52){if(S(_0x5373b7)&&S(_0x297b52)){const _0x5c417c=_0x5373b7['nodes'][0x0][_0x2d8a('0xf')][_0x2d8a('0x12')],_0x1f4c69=_0xb1729e(_0x487129(_0x5373b7['position'],_0x5c417c),_0x297b52[_0x2d8a('0x6')]),_0xf75ae8=_0x5373b7['nodes'][0x0],_0x25327f=_0x297b52[_0x2d8a('0x4')][0x0];return _0x1f4c69&&function(_0x9ff822,_0x113c10){const _0x4ac9fb=Object[_0x2d8a('0xe')](_0x9ff822[_0x2d8a('0x11')]||{}),_0x377d68=Object[_0x2d8a('0xe')](_0x113c10[_0x2d8a('0x11')]||{});if(_0x4ac9fb['length']!==_0x377d68[_0x2d8a('0x12')])return!0x1;return _0x4ac9fb[_0x2d8a('0x0')](_0x5b9485=>_0x113c10[_0x2d8a('0x11')][_0x5b9485]&&_0x113c10[_0x2d8a('0x11')][_0x5b9485]===_0x9ff822[_0x2d8a('0x11')][_0x5b9485]);}(_0xf75ae8,_0x25327f);}return!0x1;}[_0x2d8a('0xc')](_0x131f99){const _0x228db8={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x2d8a('0x10')]('InsertOperation')[_0x2d8a('0x8')](_0x228db8,[_0x131f99]),_0x228db8['buffers'][0x0];}['_decompressSingleOperation'](_0x257a8b){const _0x47fa1d=[];return this['_context'][_0x2d8a('0x10')](_0x2d8a('0x2'))['decompress'](_0x47fa1d,_0x257a8b),_0x47fa1d[0x0];}}function S(_0x3974f1){return _0x2d8a('0x2')==_0x3974f1[_0x2d8a('0x5')]&&0x1==_0x3974f1[_0x2d8a('0x4')][_0x2d8a('0x12')]&&_0x3974f1[_0x2d8a('0x4')][0x0][_0x2d8a('0xf')]&&!_0x3974f1[_0x2d8a('0x1')]&&0x1==Array[_0x2d8a('0xa')](_0x3974f1['nodes'][0x0][_0x2d8a('0xf')])[_0x2d8a('0x12')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a00=['newRange','buffers','name','_compressSingleOperation','compress','types','decompress','split','startsWith','push','shift','end','toNone','_getCompressorByName','stickiness','MarkerOperation','__className','user:','oldRange','start','user:position:','_decompressSingleOperation','_context'];(function(_0x54ab5e,_0x2a00d6){const _0x3d7be4=function(_0x2ccd67){while(--_0x2ccd67){_0x54ab5e['push'](_0x54ab5e['shift']());}};_0x3d7be4(++_0x2a00d6);}(_0x2a00,0x1c8));const _0x3d7b=function(_0x54ab5e,_0x2a00d6){_0x54ab5e=_0x54ab5e-0x0;let _0x3d7be4=_0x2a00[_0x54ab5e];return _0x3d7be4;};import _0x2fedbc from'./actioncompressor';import{arePositionsEqual as _0x1ece7c}from'../utils';import{cloneDeep as _0x1ce567}from'lodash-es';export default class M extends _0x2fedbc{[_0x3d7b('0x8')](_0x473b38,_0x16f51e){if(!function(_0x2f6993,_0x11c204){if(!_0x2f6993||!_0x11c204)return!0x1;if(_0x3d7b('0x13')!=_0x2f6993[_0x3d7b('0x14')]||_0x3d7b('0x13')!=_0x11c204[_0x3d7b('0x14')])return!0x1;if(_0x2f6993[_0x3d7b('0x6')][_0x3d7b('0xc')](_0x3d7b('0x15'))&&_0x11c204[_0x3d7b('0x6')][_0x3d7b('0xc')]('user:')&&_0x2f6993['name']!=_0x11c204[_0x3d7b('0x6')])return!0x0;return!0x1;}(_0x16f51e[0x0],_0x16f51e[0x1]))return!0x1;const _0x40a788=_0x16f51e[_0x3d7b('0xe')]();return _0x40a788[_0x3d7b('0x16')]=null,_0x40a788[_0x3d7b('0x4')]&&_0x1ece7c(_0x40a788['newRange'][_0x3d7b('0x0')],_0x40a788['newRange'][_0x3d7b('0xf')])&&(_0x40a788[_0x3d7b('0x4')][_0x3d7b('0xf')]=null),_0x16f51e[_0x3d7b('0xe')](),_0x473b38[_0x3d7b('0x9')]['push'](this['id']),_0x473b38['types']['push'](0x0),_0x473b38['buffers']['push'](this[_0x3d7b('0x7')](_0x40a788)),!0x0;}[_0x3d7b('0xa')](_0x49aacc,_0x4f12fb){const _0x4997ab=this[_0x3d7b('0x2')](_0x4f12fb);_0x4997ab['newRange']&&!_0x4997ab[_0x3d7b('0x4')][_0x3d7b('0xf')]&&(_0x4997ab['newRange'][_0x3d7b('0xf')]=_0x1ce567(_0x4997ab['newRange']['start']));const _0x41da26=_0x1ce567(_0x4997ab);_0x41da26['newRange']&&(_0x41da26['newRange']['start'][_0x3d7b('0x12')]=_0x3d7b('0x10'),_0x41da26[_0x3d7b('0x4')][_0x3d7b('0xf')]=_0x1ce567(_0x41da26[_0x3d7b('0x4')][_0x3d7b('0x0')])),_0x41da26[_0x3d7b('0x6')]=_0x3d7b('0x1')+_0x41da26[_0x3d7b('0x6')][_0x3d7b('0xb')](':')[0x2],_0x4f12fb[_0x3d7b('0x9')][_0x3d7b('0xe')](),_0x49aacc[_0x3d7b('0xd')](_0x4997ab),_0x49aacc[_0x3d7b('0xd')](_0x41da26);}['_compressSingleOperation'](_0xd4cfad){const _0x1ced10={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x3d7b('0x3')]['_getCompressorByName']('MarkerOperation')[_0x3d7b('0x8')](_0x1ced10,[_0xd4cfad]),_0x1ced10[_0x3d7b('0x5')][0x0];}['_decompressSingleOperation'](_0x10a397){const _0x3ae7ff=[];return this[_0x3d7b('0x3')][_0x3d7b('0x11')](_0x3d7b('0x13'))['decompress'](_0x3ae7ff,_0x10a397),_0x3ae7ff[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x30c7=['Element','string','bool','repeated','Position'];(function(_0x1a9241,_0x30c76d){var _0x58e770=function(_0x35367e){while(--_0x35367e){_0x1a9241['push'](_0x1a9241['shift']());}};_0x58e770(++_0x30c76d);}(_0x30c7,0xd3));var _0x58e7=function(_0x1a9241,_0x30c76d){_0x1a9241=_0x1a9241-0x0;var _0x58e770=_0x30c7[_0x1a9241];return _0x58e770;};export default{'Position':{'fields':{'root':{'type':_0x58e7('0x0'),'id':0x1},'rootMain':{'type':_0x58e7('0x1'),'id':0x2},'rootGraveyard':{'type':_0x58e7('0x1'),'id':0x3},'path':{'rule':_0x58e7('0x2'),'type':'uint32','id':0x4},'stickiness':{'type':'string','id':0x5}}},'Range':{'fields':{'start':{'type':'Position','id':0x1},'end':{'type':_0x58e7('0x3'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x58e7('0x0'),'id':0x1},'children':{'rule':_0x58e7('0x2'),'type':_0x58e7('0x4'),'id':0x2},'data':{'type':_0x58e7('0x0'),'id':0x3},'attributesBoolean':{'keyType':'string','type':_0x58e7('0x1'),'id':0x4},'attributesJson':{'type':_0x58e7('0x0'),'id':0x5}}}};
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58e0=['length','MarkerOperation','SplitOperation','_registerActionCompressor','baseVersion','InsertOperation','RootAttributeOperation','_compressorById','decompress','_getCompressorByName','SuggestionMarkerOperation','_registerOperationCompressor','NoOperation','RenameOperation','_protobufFactory','get','types','MoveOperation','CommentMarkerOperation','AttributeOperation','Range','TypingAction','__className','set','UserSelectionAction','Element','suggestion','compress','Position','registerDescriptor','no-operations-provided','_registerCompressor','getDescriptor','description','_compressorByName','build'];(function(_0x5a8e72,_0x58e00b){const _0x573560=function(_0x4ae9f2){while(--_0x4ae9f2){_0x5a8e72['push'](_0x5a8e72['shift']());}};_0x573560(++_0x58e00b);}(_0x58e0,0x1e0));const _0x5735=function(_0x5a8e72,_0x58e00b){_0x5a8e72=_0x5a8e72-0x0;let _0x573560=_0x58e0[_0x5a8e72];return _0x573560;};import{CKEditorError as _0x4e54ef}from'ckeditor5/src/utils';import _0x101099 from'./protobuffactory';import _0x533743 from'./commondescriptions';import _0x6f287f from'./operationcompressor/attributeoperationcompressor';import _0x23d871 from'./operationcompressor/insertoperationcompressor';import _0x28f05 from'./operationcompressor/markeroperationcompressor';import _0x27be68 from'./operationcompressor/mergeoperationcompressor';import _0x4b7380 from'./operationcompressor/moveoperationcompressor';import _0x38392d from'./operationcompressor/renameoperationcompressor';import _0x16c7fd from'./operationcompressor/rootattributeoperationcompressor';import _0x5e7fd5 from'./operationcompressor/splitoperationcompressor';import _0x2ddfc7 from'./operationcompressor/nooperationcompressor';import _0x31e1c6 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x455ae4 from'./actioncompressor/typingactioncompressor';import _0x342703 from'./actioncompressor/deletingactioncompressor';import _0x476d4e from'./actioncompressor/forwarddeletingactioncompressor';import _0x35bcf4 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x5735('0x1f')]=new Map(),this[_0x5735('0x16')]=new Map(),this[_0x5735('0x2')]=new _0x101099(),this[_0x5735('0x2')][_0x5735('0x11')](_0x5735('0x10'),_0x533743[_0x5735('0x10')]),this[_0x5735('0x2')]['registerDescriptor'](_0x5735('0x8'),_0x533743[_0x5735('0x8')]),this[_0x5735('0x2')][_0x5735('0x11')](_0x5735('0xd'),_0x533743[_0x5735('0xd')]),this[_0x5735('0x2')][_0x5735('0x11')](_0x5735('0x7'),_0x6f287f[_0x5735('0x15')]),this[_0x5735('0x2')][_0x5735('0x11')](_0x5735('0x1d'),_0x23d871[_0x5735('0x15')]),this[_0x5735('0x2')][_0x5735('0x11')](_0x5735('0x19'),_0x28f05[_0x5735('0x15')]),this['_protobufFactory'][_0x5735('0x11')]('MergeOperation',_0x27be68[_0x5735('0x15')]),this[_0x5735('0x2')]['registerDescriptor'](_0x5735('0x5'),_0x4b7380[_0x5735('0x15')]),this['_protobufFactory'][_0x5735('0x11')](_0x5735('0x1'),_0x38392d[_0x5735('0x15')]),this['_protobufFactory']['registerDescriptor'](_0x5735('0x1e'),_0x16c7fd[_0x5735('0x15')]),this[_0x5735('0x2')][_0x5735('0x11')](_0x5735('0x1a'),_0x5e7fd5[_0x5735('0x15')]),this[_0x5735('0x2')][_0x5735('0x17')](),this[_0x5735('0x13')](0x1,_0x5735('0x0'),new _0x2ddfc7(0x1,_0x5735('0x0'))),this[_0x5735('0x23')](0xa,'AttributeOperation',_0x6f287f),this[_0x5735('0x23')](0xb,'InsertOperation',_0x23d871),this['_registerOperationCompressor'](0xc,'MarkerOperation',_0x28f05),this[_0x5735('0x23')](0xd,'MergeOperation',_0x27be68),this[_0x5735('0x23')](0xe,_0x5735('0x5'),_0x4b7380),this[_0x5735('0x23')](0xf,_0x5735('0x1'),_0x38392d),this[_0x5735('0x23')](0x10,_0x5735('0x1e'),_0x16c7fd),this[_0x5735('0x23')](0x11,_0x5735('0x1a'),_0x5e7fd5);const _0x5cce55=this[_0x5735('0x2')][_0x5735('0x14')]('MarkerOperation');this[_0x5735('0x13')](0x12,_0x5735('0x6'),new _0x31e1c6(0x12,_0x5735('0x19'),_0x5cce55,'comment')),this[_0x5735('0x13')](0x13,'SuggestionMarkerOperation',new _0x31e1c6(0x13,_0x5735('0x19'),_0x5cce55,_0x5735('0xe'))),this['_registerActionCompressor'](0x64,_0x5735('0x9'),_0x455ae4),this[_0x5735('0x1b')](0x65,'DeletingAction',_0x342703),this[_0x5735('0x1b')](0x66,'ForwardDeletingAction',_0x476d4e),this['_registerActionCompressor'](0x67,_0x5735('0xc'),_0x35bcf4);}['_registerOperationCompressor'](_0x2b23df,_0x52395a,_0x17661e){const _0x3d38a5=new _0x17661e(_0x2b23df,_0x52395a,this[_0x5735('0x2')][_0x5735('0x14')](_0x52395a));this[_0x5735('0x13')](_0x2b23df,_0x52395a,_0x3d38a5);}['_registerActionCompressor'](_0x367deb,_0x28395a,_0x130015){const _0x5a8055=new _0x130015(_0x367deb,this);this[_0x5735('0x13')](_0x367deb,_0x28395a,_0x5a8055);}['_registerCompressor'](_0x59cfc7,_0x330f1e,_0x211a79){this[_0x5735('0x1f')][_0x5735('0xb')](_0x59cfc7,_0x211a79),this['_compressorByName']['set'](_0x330f1e,_0x211a79);}[_0x5735('0x21')](_0x22cb79){return this[_0x5735('0x16')][_0x5735('0x3')](_0x22cb79);}['compress'](_0x394fbb){if(!_0x394fbb||!_0x394fbb[0x0])throw new _0x4e54ef(_0x5735('0x12'),this);const _0x442161={'types':[],'buffers':[],'baseVersion':_0x394fbb[0x0][_0x5735('0x1c')]};for(;_0x394fbb['length'];)this[_0x5735('0x21')](_0x5735('0xc'))['compress'](_0x442161,_0x394fbb)||this[_0x5735('0x21')]('TypingAction')[_0x5735('0xf')](_0x442161,_0x394fbb)||this[_0x5735('0x21')]('DeletingAction')[_0x5735('0xf')](_0x442161,_0x394fbb)||this[_0x5735('0x21')]('ForwardDeletingAction')['compress'](_0x442161,_0x394fbb)||this[_0x5735('0x21')]('CommentMarkerOperation')[_0x5735('0xf')](_0x442161,_0x394fbb)||this[_0x5735('0x21')](_0x5735('0x22'))[_0x5735('0xf')](_0x442161,_0x394fbb)||this[_0x5735('0x21')](_0x394fbb[0x0][_0x5735('0xa')])[_0x5735('0xf')](_0x442161,_0x394fbb);return _0x442161;}['decompress'](_0x41b9ed){const _0x1c7418=[];for(;_0x41b9ed['types'][_0x5735('0x18')];){this[_0x5735('0x1f')][_0x5735('0x3')](_0x41b9ed[_0x5735('0x4')][0x0])[_0x5735('0x20')](_0x1c7418,_0x41b9ed);}return _0x1c7418['forEach']((_0x1d42d4,_0x39d0f1)=>_0x1d42d4[_0x5735('0x1c')]=_0x41b9ed[_0x5735('0x1c')]+_0x39d0f1),_0x1c7418;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dcd=['_omittedNamespace','startsWith','MarkerOperation','length','compress','decompress','name'];(function(_0x1c3898,_0x4dcdc6){const _0x1a0af1=function(_0x358e85){while(--_0x358e85){_0x1c3898['push'](_0x1c3898['shift']());}};_0x1a0af1(++_0x4dcdc6);}(_0x4dcd,0xda));const _0x1a0a=function(_0x1c3898,_0x4dcdc6){_0x1c3898=_0x1c3898-0x0;let _0x1a0af1=_0x4dcd[_0x1c3898];return _0x1a0af1;};import _0x81c9a3 from'./markeroperationcompressor';export default class O extends _0x81c9a3{constructor(_0x4b43c1,_0x1b67f1,_0x4f9887,_0x37184c){super(_0x4b43c1,_0x1b67f1,_0x4f9887),this[_0x1a0a('0x6')]=_0x37184c+':';}[_0x1a0a('0x3')](_0x458756,_0x1c62fa){return!(_0x1a0a('0x1')!=_0x1c62fa[0x0]['__className']||!_0x1c62fa[0x0][_0x1a0a('0x5')][_0x1a0a('0x0')](this[_0x1a0a('0x6')]))&&(_0x1c62fa[0x0][_0x1a0a('0x5')]=_0x1c62fa[0x0][_0x1a0a('0x5')]['replace'](new RegExp('^'+this['_omittedNamespace']),''),super[_0x1a0a('0x3')](_0x458756,_0x1c62fa),!0x0);}[_0x1a0a('0x4')](_0x3a7ffe,_0x188e5a){super[_0x1a0a('0x4')](_0x3a7ffe,_0x188e5a);const _0x1f9149=_0x3a7ffe[_0x3a7ffe[_0x1a0a('0x2')]-0x1];_0x1f9149[_0x1a0a('0x5')]=this[_0x1a0a('0x6')]+_0x1f9149['name'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa946=['string','bool','Json','buffers','_protobufDescriptor','Boolean','stringify','compress','boolean','parse','operationName','oldValue','shift','description','push','newValue','decompress','__className'];(function(_0x3b0ffa,_0xa94675){const _0x5a6eb0=function(_0x2e3900){while(--_0x2e3900){_0x3b0ffa['push'](_0x3b0ffa['shift']());}};_0x5a6eb0(++_0xa94675);}(_0xa946,0x15c));const _0x5a6e=function(_0x3b0ffa,_0xa94675){_0x3b0ffa=_0x3b0ffa-0x0;let _0x5a6eb0=_0xa946[_0x3b0ffa];return _0x5a6eb0;};import _0x33cc0a from'./operationcompressor';import{parsePositionBeforeCompression as _0xe9bb5e,parsePositionAfterCompression as _0x552001}from'../utils';export default class i extends _0x33cc0a{static get[_0x5a6e('0x7')](){return{'fields':{'range':{'type':'Range','id':0x1},'key':{'type':_0x5a6e('0xc'),'id':0x2},'oldValueBoolean':{'type':_0x5a6e('0xd'),'id':0x3},'oldValueJson':{'type':_0x5a6e('0xc'),'id':0x4},'newValueBoolean':{'type':_0x5a6e('0xd'),'id':0x5},'newValueJson':{'type':_0x5a6e('0xc'),'id':0x6},'wasUndone':{'type':_0x5a6e('0xd'),'id':0x7}}};}[_0x5a6e('0x1')](_0x3ea0e1,_0x4269bb){const _0xeeda64=_0x4269bb['shift']();$(_0x5a6e('0x5'),_0xeeda64),$(_0x5a6e('0x9'),_0xeeda64),_0xe9bb5e(_0xeeda64),_0x3ea0e1[_0x5a6e('0xf')][_0x5a6e('0x8')](this[_0x5a6e('0x10')][_0x5a6e('0x1')](_0xeeda64)),_0x3ea0e1['types'][_0x5a6e('0x8')](this['id']);}[_0x5a6e('0xa')](_0x17602c,_0x22ccf8){const {types:_0x9725ee,buffers:_0x1ffad3}=_0x22ccf8,_0x40b2e0=this[_0x5a6e('0x10')]['decompress'](_0x1ffad3[_0x5a6e('0x6')]());_0x9725ee['shift'](),N(_0x5a6e('0x5'),_0x40b2e0),N('newValue',_0x40b2e0),_0x552001(_0x40b2e0),_0x40b2e0[_0x5a6e('0xb')]=this[_0x5a6e('0x4')],_0x17602c['push'](_0x40b2e0);}}function $(_0x5ea6ed,_0x1142c2){const _0xc0641e=_0x1142c2[_0x5ea6ed];_0x5a6e('0x2')==typeof _0xc0641e?_0x1142c2[_0x5ea6ed+_0x5a6e('0x11')]=_0xc0641e:_0x1142c2[_0x5ea6ed+_0x5a6e('0xe')]=JSON[_0x5a6e('0x0')](_0xc0641e);}function N(_0x185bb0,_0x23119f){const _0x4b388c=_0x185bb0+'Json';_0x23119f[_0x4b388c]?(_0x23119f[_0x185bb0]=JSON[_0x5a6e('0x3')](_0x23119f[_0x4b388c]),delete _0x23119f[_0x4b388c]):(_0x23119f[_0x185bb0]=_0x23119f[_0x185bb0+_0x5a6e('0x11')],delete _0x23119f[_0x185bb0+_0x5a6e('0x11')]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ea3=['attributesJson','description','Element','attributesBoolean','children','types','buffers','repeated','stringify','push','compress','_protobufDescriptor','shift','parse','decompress','Position','nodes','boolean','operationName','attributes','bool','__className'];(function(_0x337839,_0x1ea3f0){const _0x3269d6=function(_0x3797f4){while(--_0x3797f4){_0x337839['push'](_0x337839['shift']());}};_0x3269d6(++_0x1ea3f0);}(_0x1ea3,0x13c));const _0x3269=function(_0x337839,_0x1ea3f0){_0x337839=_0x337839-0x0;let _0x3269d6=_0x1ea3[_0x337839];return _0x3269d6;};import _0x51f305 from'./operationcompressor';import{parsePositionBeforeCompression as _0x5a21ac,parsePositionAfterCompression as _0x53f709}from'../utils';export default class s extends _0x51f305{static get[_0x3269('0xf')](){return{'fields':{'position':{'type':_0x3269('0x7'),'id':0x1},'nodes':{'rule':_0x3269('0x15'),'type':_0x3269('0x10'),'id':0x2},'shouldReceiveAttributes':{'type':'bool','id':0x3},'wasUndone':{'type':_0x3269('0xc'),'id':0x4}}};}[_0x3269('0x2')](_0x5889f2,_0x1881bb){const _0x3e2005=_0x1881bb[_0x3269('0x4')]();A(_0x3e2005[_0x3269('0x8')]),_0x5a21ac(_0x3e2005),_0x5889f2[_0x3269('0x14')][_0x3269('0x1')](this['_protobufDescriptor'][_0x3269('0x2')](_0x3e2005)),_0x5889f2[_0x3269('0x13')][_0x3269('0x1')](this['id']);}[_0x3269('0x6')](_0x156a17,_0x3e0151){const {types:_0x15bc35,buffers:_0x3a1798}=_0x3e0151,_0x4d0b3b=this[_0x3269('0x3')][_0x3269('0x6')](_0x3a1798[_0x3269('0x4')]());_0x15bc35[_0x3269('0x4')](),_0x4d0b3b[_0x3269('0x8')]||(_0x4d0b3b[_0x3269('0x8')]=[]),E(_0x4d0b3b[_0x3269('0x8')]),_0x53f709(_0x4d0b3b),_0x4d0b3b[_0x3269('0xd')]=this[_0x3269('0xa')],_0x156a17['push'](_0x4d0b3b);}}function A(_0x35f9c6){for(const _0x1b752d of _0x35f9c6){if(_0x1b752d['attributes']){const _0x527433=_0x1b752d[_0x3269('0xb')];R(_0x527433)?_0x1b752d[_0x3269('0x11')]=_0x527433:_0x1b752d['attributesJson']=JSON[_0x3269('0x0')](_0x527433);}_0x1b752d[_0x3269('0x12')]&&A(_0x1b752d[_0x3269('0x12')]);}}function E(_0x880055){for(const _0x46025e of _0x880055)(_0x46025e[_0x3269('0x11')]||_0x46025e[_0x3269('0xe')])&&(_0x46025e[_0x3269('0x11')]?(_0x46025e[_0x3269('0xb')]=_0x46025e[_0x3269('0x11')],delete _0x46025e['attributesBoolean']):(_0x46025e[_0x3269('0xb')]=JSON[_0x3269('0x5')](_0x46025e[_0x3269('0xe')]),delete _0x46025e['attributesJson'])),_0x46025e['children']&&E(_0x46025e[_0x3269('0x12')]);}function R(_0x20e8f9){return Object['keys'](_0x20e8f9)['every'](_0x1f6113=>_0x3269('0x9')==typeof _0x20e8f9[_0x1f6113]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x203e=['newRange','string','Range','decompress','length','oldRange','bool'];(function(_0x3f8a99,_0x203e05){const _0x47bcff=function(_0x3d438d){while(--_0x3d438d){_0x3f8a99['push'](_0x3f8a99['shift']());}};_0x47bcff(++_0x203e05);}(_0x203e,0x16f));const _0x47bc=function(_0x3f8a99,_0x203e05){_0x3f8a99=_0x3f8a99-0x0;let _0x47bcff=_0x203e[_0x3f8a99];return _0x47bcff;};import _0x451aff from'./operationcompressor';export default class n extends _0x451aff{static get['description'](){return{'fields':{'name':{'type':_0x47bc('0x5'),'id':0x1},'oldRange':{'type':_0x47bc('0x6'),'id':0x2},'newRange':{'type':_0x47bc('0x6'),'id':0x3},'affectsData':{'type':_0x47bc('0x3'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}['decompress'](_0x126797,_0x4cfe19){super[_0x47bc('0x0')](_0x126797,_0x4cfe19);const _0x12680b=_0x126797[_0x126797[_0x47bc('0x1')]-0x1];_0x12680b[_0x47bc('0x2')]||(_0x12680b[_0x47bc('0x2')]=null),_0x12680b[_0x47bc('0x4')]||(_0x12680b['newRange']=null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16c9=['bool','description','uint32','Position'];(function(_0x2f5c16,_0x16c93a){var _0xda147a=function(_0x1662d4){while(--_0x1662d4){_0x2f5c16['push'](_0x2f5c16['shift']());}};_0xda147a(++_0x16c93a);}(_0x16c9,0x12b));var _0xda14=function(_0x2f5c16,_0x16c93a){_0x2f5c16=_0x2f5c16-0x0;var _0xda147a=_0x16c9[_0x2f5c16];return _0xda147a;};import _0x48e602 from'./operationcompressor';export default class p extends _0x48e602{static get[_0xda14('0x2')](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'targetPosition':{'type':_0xda14('0x0'),'id':0x2},'graveyardPosition':{'type':_0xda14('0x0'),'id':0x3},'howMany':{'type':_0xda14('0x3'),'id':0x4},'wasUndone':{'type':_0xda14('0x1'),'id':0x5}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2f53=['uint32','Position','description'];(function(_0x10c827,_0x2f53be){var _0x42b422=function(_0x1ad203){while(--_0x1ad203){_0x10c827['push'](_0x10c827['shift']());}};_0x42b422(++_0x2f53be);}(_0x2f53,0xaa));var _0x42b4=function(_0x10c827,_0x2f53be){_0x10c827=_0x10c827-0x0;var _0x42b422=_0x2f53[_0x10c827];return _0x42b422;};import _0x5a09f6 from'./operationcompressor';export default class m extends _0x5a09f6{static get[_0x42b4('0x0')](){return{'fields':{'sourcePosition':{'type':_0x42b4('0x2'),'id':0x1},'howMany':{'type':_0x42b4('0x1'),'id':0x2},'targetPosition':{'type':_0x42b4('0x2'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x6937=['shift','operationName','types','push'];(function(_0x2108db,_0x693783){var _0x417d72=function(_0x4aebf6){while(--_0x4aebf6){_0x2108db['push'](_0x2108db['shift']());}};_0x417d72(++_0x693783);}(_0x6937,0xee));var _0x417d=function(_0x2108db,_0x693783){_0x2108db=_0x2108db-0x0;var _0x417d72=_0x6937[_0x2108db];return _0x417d72;};import _0x2ee468 from'./operationcompressor';export default class f extends _0x2ee468{['compress'](_0x473630,_0x128737){_0x128737[_0x417d('0x2')](),_0x473630[_0x417d('0x0')][_0x417d('0x1')](this['id']);}['decompress'](_0x307087,_0x560e72){_0x560e72[_0x417d('0x0')]['shift'](),_0x307087['push']({'__className':this[_0x417d('0x3')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xceeb=['compress','types','decompress','operationName','push','_protobufDescriptor','buffers','shift','__className'];(function(_0x22b709,_0xceeb71){const _0x1b0a55=function(_0xc89e7a){while(--_0xc89e7a){_0x22b709['push'](_0x22b709['shift']());}};_0x1b0a55(++_0xceeb71);}(_0xceeb,0x6d));const _0x1b0a=function(_0x22b709,_0xceeb71){_0x22b709=_0x22b709-0x0;let _0x1b0a55=_0xceeb[_0x22b709];return _0x1b0a55;};import{parsePositionBeforeCompression as _0xb0fcbf,parsePositionAfterCompression as _0x50b380}from'../utils';export default class V{constructor(_0x351a41,_0x59c3a4,_0x135554){this['id']=_0x351a41,this[_0x1b0a('0x2')]=_0x59c3a4,this[_0x1b0a('0x4')]=_0x135554;}[_0x1b0a('0x8')](_0x21228c,_0x1b37f2){const _0x8dd100=_0x1b37f2[_0x1b0a('0x6')]();_0xb0fcbf(_0x8dd100),_0x21228c[_0x1b0a('0x5')][_0x1b0a('0x3')](this[_0x1b0a('0x4')][_0x1b0a('0x8')](_0x8dd100)),_0x21228c[_0x1b0a('0x0')][_0x1b0a('0x3')](this['id']);}['decompress'](_0x28c41c,_0x9ed8e2){_0x9ed8e2[_0x1b0a('0x0')][_0x1b0a('0x6')]();const _0x5e60e1=this[_0x1b0a('0x4')][_0x1b0a('0x1')](_0x9ed8e2[_0x1b0a('0x5')][_0x1b0a('0x6')]());_0x50b380(_0x5e60e1),_0x5e60e1[_0x1b0a('0x7')]=this['operationName'],_0x28c41c['push'](_0x5e60e1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5d44=['Position','bool'];(function(_0x2294e2,_0x5d44fc){var _0xa1218b=function(_0x7449a1){while(--_0x7449a1){_0x2294e2['push'](_0x2294e2['shift']());}};_0xa1218b(++_0x5d44fc);}(_0x5d44,0xf5));var _0xa121=function(_0x2294e2,_0x5d44fc){_0x2294e2=_0x2294e2-0x0;var _0xa1218b=_0x5d44[_0x2294e2];return _0xa1218b;};import _0x213d11 from'./operationcompressor';export default class a extends _0x213d11{static get['description'](){return{'fields':{'position':{'type':_0xa121('0x1'),'id':0x1},'oldName':{'type':'string','id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':_0xa121('0x0'),'id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x89fd=['description','string','range','fields'];(function(_0x479fcc,_0x89fdf4){const _0x1aae81=function(_0x1b71c2){while(--_0x1b71c2){_0x479fcc['push'](_0x479fcc['shift']());}};_0x1aae81(++_0x89fdf4);}(_0x89fd,0x191));const _0x1aae=function(_0x479fcc,_0x89fdf4){_0x479fcc=_0x479fcc-0x0;let _0x1aae81=_0x89fd[_0x479fcc];return _0x1aae81;};import _0x415b91 from'./attributeoperationcompressor';export default class c extends _0x415b91{static get[_0x1aae('0x3')](){const _0x45c4dd=_0x415b91[_0x1aae('0x3')];return delete _0x45c4dd[_0x1aae('0x2')][_0x1aae('0x1')],_0x45c4dd[_0x1aae('0x2')]['root']={'type':_0x1aae('0x0'),'id':0x1},_0x45c4dd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5047=['bool','Position','uint32','description'];(function(_0x7352da,_0x50473d){var _0x2757db=function(_0x4f4186){while(--_0x4f4186){_0x7352da['push'](_0x7352da['shift']());}};_0x2757db(++_0x50473d);}(_0x5047,0x82));var _0x2757=function(_0x7352da,_0x50473d){_0x7352da=_0x7352da-0x0;var _0x2757db=_0x5047[_0x7352da];return _0x2757db;};import _0x4c37d0 from'./operationcompressor';export default class h extends _0x4c37d0{static get[_0x2757('0x1')](){return{'fields':{'splitPosition':{'type':_0x2757('0x3'),'id':0x1},'graveyardPosition':{'type':_0x2757('0x3'),'id':0x2},'howMany':{'type':_0x2757('0x0'),'id':0x3},'insertionPosition':{'type':_0x2757('0x3'),'id':0x4},'wasUndone':{'type':_0x2757('0x2'),'id':0x5}}};}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5724=['getDescriptor','encode','_description','_protobufRoot','toObject','compress','create','Root','finish','verify','_protobuf','build','decompress','fromJSON','lookupType','protobuffactory-cannot-get-descriptor-before-build'];(function(_0xd3d16,_0x572478){const _0x466349=function(_0x286f4e){while(--_0x286f4e){_0xd3d16['push'](_0xd3d16['shift']());}};_0x466349(++_0x572478);}(_0x5724,0x67));const _0x4663=function(_0xd3d16,_0x572478){_0xd3d16=_0xd3d16-0x0;let _0x466349=_0x5724[_0xd3d16];return _0x466349;};import _0xeef685 from'protobufjs/light';import{CKEditorError as _0x61eb30}from'ckeditor5/src/utils';import{cloneDeep as _0x35d5c8}from'lodash-es';export default class r{constructor(){this[_0x4663('0xb')]={'nested':{}};}['registerDescriptor'](_0x44384b,_0x365eeb){this[_0x4663('0xb')]['nested'][_0x44384b]=_0x35d5c8(_0x365eeb);}[_0x4663('0x4')](){this[_0x4663('0xc')]=_0xeef685[_0x4663('0x0')][_0x4663('0x6')](this[_0x4663('0xb')]);}[_0x4663('0x9')](_0x3a170c){if(!this['_protobufRoot'])throw new _0x61eb30(_0x4663('0x8'),this);return new D(this['_protobufRoot'][_0x4663('0x7')](_0x3a170c));}}class D{constructor(_0x36c3ba){this[_0x4663('0x3')]=_0x36c3ba;}[_0x4663('0xe')](_0x36b6ee){const _0x3f4c73=this[_0x4663('0x3')][_0x4663('0x2')](_0x36b6ee);if(_0x3f4c73)throw Error(_0x3f4c73);return this['_protobuf'][_0x4663('0xa')](this[_0x4663('0x3')][_0x4663('0xf')](_0x36b6ee))[_0x4663('0x1')]();}[_0x4663('0x5')](_0x184b5b){return this[_0x4663('0x3')][_0x4663('0xd')](this[_0x4663('0x3')]['decode'](_0x184b5b),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31ae=['root','length','nodes','main','path','rootMain','$graveyard','rootGraveyard'];(function(_0x610f2e,_0x31ae72){const _0x28cbb2=function(_0xab42b5){while(--_0xab42b5){_0x610f2e['push'](_0x610f2e['shift']());}};_0x28cbb2(++_0x31ae72);}(_0x31ae,0x7d));const _0x28cb=function(_0x610f2e,_0x31ae72){_0x610f2e=_0x610f2e-0x0;let _0x28cbb2=_0x31ae[_0x610f2e];return _0x28cbb2;};import{cloneDeep as _0x48a5f6,isEqual as _0x12eea7,isObject as _0x216331}from'lodash-es';export function getPositionShiftedBy(_0x371a8f,_0x283762){const _0x49702b=_0x48a5f6(_0x371a8f);return _0x49702b['path'][_0x49702b[_0x28cb('0x7')][_0x28cb('0x4')]-0x1]+=_0x283762,_0x49702b;}export function arePositionsEqual(_0x473059,_0x4c64a4){return _0x473059[_0x28cb('0x3')]===_0x4c64a4[_0x28cb('0x3')]&&_0x12eea7(_0x473059[_0x28cb('0x7')],_0x4c64a4[_0x28cb('0x7')]);}export function parsePositionBeforeCompression(_0x235e3f){y(_0x235e3f,_0x1c5e40=>(_0x28cb('0x6')==_0x1c5e40['root']?(_0x1c5e40[_0x28cb('0x0')]=!0x0,delete _0x1c5e40[_0x28cb('0x3')]):_0x28cb('0x1')==_0x1c5e40[_0x28cb('0x3')]&&(_0x1c5e40[_0x28cb('0x2')]=!0x0,delete _0x1c5e40['root']),_0x1c5e40));}export function parsePositionAfterCompression(_0x2a1b26){y(_0x2a1b26,_0x482b73=>(_0x482b73[_0x28cb('0x0')]?(_0x482b73['root']=_0x28cb('0x6'),delete _0x482b73['rootMain']):_0x482b73[_0x28cb('0x2')]&&(_0x482b73[_0x28cb('0x3')]=_0x28cb('0x1'),delete _0x482b73[_0x28cb('0x2')]),_0x482b73));}function y(_0x26896a,_0x3386a5){for(const _0x18fca8 in _0x26896a){const _0x1bc57e=_0x26896a[_0x18fca8];_0x28cb('0x5')!==_0x18fca8&&_0x216331(_0x1bc57e)&&(_0x1bc57e[_0x28cb('0x7')]&&(_0x1bc57e[_0x28cb('0x3')]||_0x1bc57e[_0x28cb('0x0')]||_0x1bc57e[_0x28cb('0x2')])?_0x26896a[_0x18fca8]=_0x3386a5(_0x1bc57e):y(_0x1bc57e,_0x3386a5));}return _0x26896a;}
|