@ckeditor/ckeditor5-operations-compressor 32.0.0 → 33.0.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/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 operations compressor**<br>
5
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
5
+ Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
6
6
 
7
7
  CKEditor 5 operations compressor is licensed under a commercial license and is protected by copyright law.
8
8
  For more details about available licensing options please contact us at sales@cksource.com.
package/README.md CHANGED
@@ -17,7 +17,7 @@ As a licensed CKEditor 5 Collaboration features user you can report bugs and req
17
17
  ## License
18
18
 
19
19
  **CKEditor 5 operations compressor**<br>
20
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
20
+ Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
21
21
 
22
22
  CKEditor 5 operations compressor is licensed under a commercial license and is protected by copyright law.
23
23
  For more details about available licensing options please contact us at sales@cksource.com.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-operations-compressor",
3
- "version": "32.0.0",
3
+ "version": "33.0.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": "^32.0.0",
30
+ "ckeditor5": "^33.0.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 _0x3b5d=['shift','decompress','length','buffers','push','_compressSingleOperation','_combineNext','types','_decompressSingleOperation','compress'];(function(_0x4dea46,_0x3b5d55){const _0x49367b=function(_0x3d2482){while(--_0x3d2482){_0x4dea46['push'](_0x4dea46['shift']());}};_0x49367b(++_0x3b5d55);}(_0x3b5d,0x1ab));const _0x4936=function(_0x4dea46,_0x3b5d55){_0x4dea46=_0x4dea46-0x0;let _0x49367b=_0x3b5d[_0x4dea46];return _0x49367b;};import{cloneDeep as _0x1bd0fc}from'lodash-es';export default class j{constructor(_0x4dca60,_0x5c30a9){this['id']=_0x4dca60,this['_context']=_0x5c30a9;}[_0x4936('0x2')](_0x3bc301,_0x1c9c0e){let _0x3db4f1;for(;_0x1c9c0e[_0x4936('0x5')]>0x1&&this['_compareOperations'](_0x1c9c0e[0x0],_0x1c9c0e[0x1]);)_0x3db4f1?(_0x3db4f1=this[_0x4936('0x9')](_0x1c9c0e[_0x4936('0x3')](),_0x3db4f1),_0x3bc301[_0x4936('0x0')][_0x4936('0x7')](0x0)):(_0x3db4f1=_0x1bd0fc(_0x1c9c0e['shift']()),_0x3bc301[_0x4936('0x0')][_0x4936('0x7')](this['id']));return!!_0x3db4f1&&(_0x3db4f1=this['_combineNext'](_0x1c9c0e[_0x4936('0x3')](),_0x3db4f1),_0x3bc301[_0x4936('0x0')]['push'](0x0),_0x3bc301[_0x4936('0x6')][_0x4936('0x7')](this[_0x4936('0x8')](_0x3db4f1)),!0x0);}[_0x4936('0x4')](_0x41075b,_0x5df82a){const _0x42ce11=this[_0x4936('0x1')](_0x5df82a);for(;0x0==_0x5df82a[_0x4936('0x0')][0x0];)_0x5df82a['types'][_0x4936('0x3')](),_0x41075b['push'](this['_splitCurrent'](_0x42ce11));_0x41075b[_0x4936('0x7')](_0x42ce11);}}
23
+ const _0x2a2f=['shift','types','_decompressSingleOperation','compress','push','decompress','length','_context','_compressSingleOperation','_compareOperations','_combineNext'];(function(_0x2b58c4,_0x2a2fda){const _0x12cc0d=function(_0x3d3aff){while(--_0x3d3aff){_0x2b58c4['push'](_0x2b58c4['shift']());}};_0x12cc0d(++_0x2a2fda);}(_0x2a2f,0x11a));const _0x12cc=function(_0x2b58c4,_0x2a2fda){_0x2b58c4=_0x2b58c4-0x0;let _0x12cc0d=_0x2a2f[_0x2b58c4];return _0x12cc0d;};import{cloneDeep as _0x417a79}from'lodash-es';export default class j{constructor(_0xbd3f6b,_0x8eb602){this['id']=_0xbd3f6b,this[_0x12cc('0x0')]=_0x8eb602;}[_0x12cc('0x7')](_0x4163f4,_0x5e773d){let _0x3ce7a0;for(;_0x5e773d[_0x12cc('0xa')]>0x1&&this[_0x12cc('0x2')](_0x5e773d[0x0],_0x5e773d[0x1]);)_0x3ce7a0?(_0x3ce7a0=this[_0x12cc('0x3')](_0x5e773d[_0x12cc('0x4')](),_0x3ce7a0),_0x4163f4[_0x12cc('0x5')][_0x12cc('0x8')](0x0)):(_0x3ce7a0=_0x417a79(_0x5e773d[_0x12cc('0x4')]()),_0x4163f4['types'][_0x12cc('0x8')](this['id']));return!!_0x3ce7a0&&(_0x3ce7a0=this['_combineNext'](_0x5e773d['shift'](),_0x3ce7a0),_0x4163f4[_0x12cc('0x5')]['push'](0x0),_0x4163f4['buffers'][_0x12cc('0x8')](this[_0x12cc('0x1')](_0x3ce7a0)),!0x0);}[_0x12cc('0x9')](_0x454491,_0x22c189){const _0x107833=this[_0x12cc('0x6')](_0x22c189);for(;0x0==_0x22c189[_0x12cc('0x5')][0x0];)_0x22c189[_0x12cc('0x5')][_0x12cc('0x4')](),_0x454491[_0x12cc('0x8')](this['_splitCurrent'](_0x107833));_0x454491['push'](_0x107833);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52b5=['_getCompressorByName','compress','wasUndone','root','_combineNext','MoveOperation','decompress','_compareOperations','sourcePosition','howMany','__className','_decompressSingleOperation','targetPosition','buffers','_context'];(function(_0x556488,_0x52b542){const _0x134109=function(_0x23b09e){while(--_0x23b09e){_0x556488['push'](_0x556488['shift']());}};_0x134109(++_0x52b542);}(_0x52b5,0x7a));const _0x1341=function(_0x556488,_0x52b542){_0x556488=_0x556488-0x0;let _0x134109=_0x52b5[_0x556488];return _0x134109;};import _0x1d8fbb from'./actioncompressor';import{arePositionsEqual as _0x542d10,getPositionShiftedBy as _0xf91e13}from'../utils';import{cloneDeep as _0x2f1511}from'lodash-es';export default class u extends _0x1d8fbb{[_0x1341('0x2')](_0xfd4eae,_0x274bf5){return _0x274bf5[_0x1341('0x7')]++,_0x274bf5['sourcePosition']=_0x2f1511(_0xfd4eae[_0x1341('0x6')]),_0x274bf5;}['_splitCurrent'](_0x2cf6db){const _0x5de8a3=_0x2f1511(_0x2cf6db);return _0x2cf6db[_0x1341('0x7')]--,_0x5de8a3[_0x1341('0x7')]=0x1,_0x5de8a3['sourcePosition']=_0xf91e13(_0x5de8a3['sourcePosition'],_0x2cf6db[_0x1341('0x7')]),_0x5de8a3;}[_0x1341('0x5')](_0x5df57a,_0x474c4b){return!(!S(_0x5df57a)||!S(_0x474c4b))&&(_0x542d10(_0xf91e13(_0x5df57a[_0x1341('0x6')],-0x1),_0x474c4b['sourcePosition'])&&_0x542d10(_0x5df57a[_0x1341('0xa')],_0x474c4b[_0x1341('0xa')]));}['_compressSingleOperation'](_0x9d757){const _0x1ab153={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1341('0xc')][_0x1341('0xd')](_0x1341('0x3'))[_0x1341('0xe')](_0x1ab153,[_0x9d757]),_0x1ab153[_0x1341('0xb')][0x0];}[_0x1341('0x9')](_0x1cfae9){const _0x259556=[];return this[_0x1341('0xc')][_0x1341('0xd')]('MoveOperation')[_0x1341('0x4')](_0x259556,_0x1cfae9),_0x259556[0x0];}}function S(_0x116234){return _0x1341('0x3')==_0x116234[_0x1341('0x8')]&&'$graveyard'==_0x116234[_0x1341('0xa')][_0x1341('0x1')]&&0x1==_0x116234[_0x1341('0x7')]&&!_0x116234[_0x1341('0x0')];}
23
+ const _0x3981=['_combineNext','MoveOperation','_splitCurrent','targetPosition','buffers','_context','howMany','_getCompressorByName','_compareOperations','decompress','_decompressSingleOperation','_compressSingleOperation','sourcePosition','root'];(function(_0x1b1100,_0x39813b){const _0x27acc8=function(_0x31eff8){while(--_0x31eff8){_0x1b1100['push'](_0x1b1100['shift']());}};_0x27acc8(++_0x39813b);}(_0x3981,0xd5));const _0x27ac=function(_0x1b1100,_0x39813b){_0x1b1100=_0x1b1100-0x0;let _0x27acc8=_0x3981[_0x1b1100];return _0x27acc8;};import _0x47c700 from'./actioncompressor';import{arePositionsEqual as _0x403295,getPositionShiftedBy as _0x20dde2}from'../utils';import{cloneDeep as _0x2d47f8}from'lodash-es';export default class u extends _0x47c700{[_0x27ac('0xb')](_0x5cc75a,_0x54059b){return _0x54059b[_0x27ac('0x3')]++,_0x54059b[_0x27ac('0x9')]=_0x2d47f8(_0x5cc75a[_0x27ac('0x9')]),_0x54059b;}[_0x27ac('0xd')](_0x3a8b72){const _0xc21700=_0x2d47f8(_0x3a8b72);return _0x3a8b72[_0x27ac('0x3')]--,_0xc21700[_0x27ac('0x3')]=0x1,_0xc21700[_0x27ac('0x9')]=_0x20dde2(_0xc21700[_0x27ac('0x9')],_0x3a8b72[_0x27ac('0x3')]),_0xc21700;}[_0x27ac('0x5')](_0x3bbdd7,_0x582e12){return!(!S(_0x3bbdd7)||!S(_0x582e12))&&(_0x403295(_0x20dde2(_0x3bbdd7[_0x27ac('0x9')],-0x1),_0x582e12['sourcePosition'])&&_0x403295(_0x3bbdd7[_0x27ac('0x0')],_0x582e12[_0x27ac('0x0')]));}[_0x27ac('0x8')](_0x2ed8ba){const _0x39ed21={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x27ac('0x2')]['_getCompressorByName'](_0x27ac('0xc'))['compress'](_0x39ed21,[_0x2ed8ba]),_0x39ed21[_0x27ac('0x1')][0x0];}[_0x27ac('0x7')](_0x4bf626){const _0xffd03d=[];return this['_context'][_0x27ac('0x4')]('MoveOperation')[_0x27ac('0x6')](_0xffd03d,_0x4bf626),_0xffd03d[0x0];}}function S(_0x4014a6){return _0x27ac('0xc')==_0x4014a6['__className']&&'$graveyard'==_0x4014a6['targetPosition'][_0x27ac('0xa')]&&0x1==_0x4014a6['howMany']&&!_0x4014a6['wasUndone'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ae9=['buffers','targetPosition','compress','_decompressSingleOperation','_splitCurrent','_compareOperations','sourcePosition','wasUndone','_getCompressorByName','_compressSingleOperation','_context','decompress','root','MoveOperation','howMany'];(function(_0x55cdd0,_0x3ae982){const _0x8cf927=function(_0x112554){while(--_0x112554){_0x55cdd0['push'](_0x55cdd0['shift']());}};_0x8cf927(++_0x3ae982);}(_0x3ae9,0x1cc));const _0x8cf9=function(_0x55cdd0,_0x3ae982){_0x55cdd0=_0x55cdd0-0x0;let _0x8cf927=_0x3ae9[_0x55cdd0];return _0x8cf927;};import _0x3e24d4 from'./actioncompressor';import{arePositionsEqual as _0x38122f}from'../utils';import{cloneDeep as _0x160d11}from'lodash-es';export default class l extends _0x3e24d4{['_combineNext'](_0x1406a9,_0x4b6f4f){return _0x4b6f4f[_0x8cf9('0x4')]++,_0x4b6f4f;}[_0x8cf9('0x9')](_0x197c52){const _0x21c635=_0x160d11(_0x197c52);return _0x21c635[_0x8cf9('0x4')]=0x1,_0x197c52[_0x8cf9('0x4')]--,_0x21c635;}[_0x8cf9('0xa')](_0x49abee,_0x264a45){return!(!S(_0x49abee)||!S(_0x264a45))&&(_0x38122f(_0x49abee[_0x8cf9('0xb')],_0x264a45[_0x8cf9('0xb')])&&_0x38122f(_0x49abee[_0x8cf9('0x6')],_0x264a45[_0x8cf9('0x6')]));}[_0x8cf9('0xe')](_0x149bec){const _0x45614d={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x8cf9('0x0')][_0x8cf9('0xd')](_0x8cf9('0x3'))[_0x8cf9('0x7')](_0x45614d,[_0x149bec]),_0x45614d[_0x8cf9('0x5')][0x0];}[_0x8cf9('0x8')](_0x37835d){const _0x4189eb=[];return this['_context'][_0x8cf9('0xd')](_0x8cf9('0x3'))[_0x8cf9('0x1')](_0x4189eb,_0x37835d),_0x4189eb[0x0];}}function S(_0x46d159){return'MoveOperation'==_0x46d159['__className']&&'$graveyard'==_0x46d159['targetPosition'][_0x8cf9('0x2')]&&0x1==_0x46d159[_0x8cf9('0x4')]&&!_0x46d159[_0x8cf9('0xc')];}
23
+ const _0x5c05=['_context','buffers','targetPosition','wasUndone','$graveyard','_decompressSingleOperation','_compressSingleOperation','sourcePosition','__className','_compareOperations','_getCompressorByName','decompress','_splitCurrent','MoveOperation','howMany','root'];(function(_0x3054fe,_0x5c054a){const _0xd4e728=function(_0x21269d){while(--_0x21269d){_0x3054fe['push'](_0x3054fe['shift']());}};_0xd4e728(++_0x5c054a);}(_0x5c05,0x12f));const _0xd4e7=function(_0x3054fe,_0x5c054a){_0x3054fe=_0x3054fe-0x0;let _0xd4e728=_0x5c05[_0x3054fe];return _0xd4e728;};import _0x38122d from'./actioncompressor';import{arePositionsEqual as _0x1d8358}from'../utils';import{cloneDeep as _0x5c10b1}from'lodash-es';export default class l extends _0x38122d{['_combineNext'](_0x57ee6f,_0x574a89){return _0x574a89[_0xd4e7('0xf')]++,_0x574a89;}[_0xd4e7('0xd')](_0xcc505a){const _0x39cd17=_0x5c10b1(_0xcc505a);return _0x39cd17[_0xd4e7('0xf')]=0x1,_0xcc505a[_0xd4e7('0xf')]--,_0x39cd17;}[_0xd4e7('0xa')](_0x5ba4f8,_0x5098e3){return!(!S(_0x5ba4f8)||!S(_0x5098e3))&&(_0x1d8358(_0x5ba4f8[_0xd4e7('0x8')],_0x5098e3['sourcePosition'])&&_0x1d8358(_0x5ba4f8[_0xd4e7('0x3')],_0x5098e3[_0xd4e7('0x3')]));}[_0xd4e7('0x7')](_0xcf3bec){const _0x32fa52={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xd4e7('0x1')][_0xd4e7('0xb')](_0xd4e7('0xe'))['compress'](_0x32fa52,[_0xcf3bec]),_0x32fa52[_0xd4e7('0x2')][0x0];}[_0xd4e7('0x6')](_0x29e291){const _0x3864a1=[];return this[_0xd4e7('0x1')]['_getCompressorByName'](_0xd4e7('0xe'))[_0xd4e7('0xc')](_0x3864a1,_0x29e291),_0x3864a1[0x0];}}function S(_0x29241c){return'MoveOperation'==_0x29241c[_0xd4e7('0x9')]&&_0xd4e7('0x5')==_0x29241c[_0xd4e7('0x3')][_0xd4e7('0x0')]&&0x1==_0x29241c[_0xd4e7('0xf')]&&!_0x29241c[_0xd4e7('0x4')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd73b=['__className','_splitCurrent','_compareOperations','data','position','keys','InsertOperation','nodes','from','_context','every','decompress','length','wasUndone','_decompressSingleOperation','substr','attributes','_getCompressorByName','_compressSingleOperation','_combineNext'];(function(_0x496f12,_0xd73b56){const _0xf32008=function(_0x25a0b8){while(--_0x25a0b8){_0x496f12['push'](_0x496f12['shift']());}};_0xf32008(++_0xd73b56);}(_0xd73b,0x198));const _0xf320=function(_0x496f12,_0xd73b56){_0x496f12=_0x496f12-0x0;let _0xf32008=_0xd73b[_0x496f12];return _0xf32008;};import _0x536b77 from'./actioncompressor';import{arePositionsEqual as _0x1d1c50,getPositionShiftedBy as _0x5690b2}from'../utils';import{cloneDeep as _0x387c17}from'lodash-es';export default class g extends _0x536b77{[_0xf320('0xb')](_0x5f4528,_0x3f24ed){return _0x3f24ed['nodes'][0x0]['data']+=_0x5f4528[_0xf320('0x13')][0x0][_0xf320('0xf')],_0x3f24ed;}[_0xf320('0xd')](_0xaaec23){const _0x2ee8e1=_0x387c17(_0xaaec23),_0x59b0be=_0x2ee8e1['nodes'][0x0],_0x1965d1=_0xaaec23['nodes'][0x0],_0x588d68=Array[_0xf320('0x0')](_0x1965d1[_0xf320('0xf')])[0x0],_0x4b66b3=_0x588d68[_0xf320('0x4')];return _0x59b0be[_0xf320('0xf')]=_0x588d68,_0x1965d1[_0xf320('0xf')]=_0x1965d1[_0xf320('0xf')][_0xf320('0x7')](_0x4b66b3),_0xaaec23[_0xf320('0x10')]=_0x5690b2(_0xaaec23[_0xf320('0x10')],_0x4b66b3),_0x2ee8e1;}[_0xf320('0xe')](_0x18a191,_0x4afcbe){if(S(_0x18a191)&&S(_0x4afcbe)){const _0x2d0648=_0x18a191[_0xf320('0x13')][0x0]['data'][_0xf320('0x4')],_0xdfffc0=_0x1d1c50(_0x5690b2(_0x18a191[_0xf320('0x10')],_0x2d0648),_0x4afcbe['position']),_0x2493dd=_0x18a191[_0xf320('0x13')][0x0],_0x23f69c=_0x4afcbe[_0xf320('0x13')][0x0];return _0xdfffc0&&function(_0x210196,_0x449cf3){const _0x1396fc=Object['keys'](_0x210196[_0xf320('0x8')]||{}),_0x24be5a=Object[_0xf320('0x11')](_0x449cf3[_0xf320('0x8')]||{});if(_0x1396fc[_0xf320('0x4')]!==_0x24be5a['length'])return!0x1;return _0x1396fc[_0xf320('0x2')](_0x540632=>_0x449cf3['attributes'][_0x540632]&&_0x449cf3[_0xf320('0x8')][_0x540632]===_0x210196[_0xf320('0x8')][_0x540632]);}(_0x2493dd,_0x23f69c);}return!0x1;}[_0xf320('0xa')](_0x47c910){const _0x4fd7f1={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xf320('0x1')][_0xf320('0x9')](_0xf320('0x12'))['compress'](_0x4fd7f1,[_0x47c910]),_0x4fd7f1['buffers'][0x0];}[_0xf320('0x6')](_0x46118b){const _0x3ce4bf=[];return this[_0xf320('0x1')][_0xf320('0x9')](_0xf320('0x12'))[_0xf320('0x3')](_0x3ce4bf,_0x46118b),_0x3ce4bf[0x0];}}function S(_0x55ce22){return _0xf320('0x12')==_0x55ce22[_0xf320('0xc')]&&0x1==_0x55ce22[_0xf320('0x13')][_0xf320('0x4')]&&_0x55ce22[_0xf320('0x13')][0x0]['data']&&!_0x55ce22[_0xf320('0x5')]&&0x1==Array[_0xf320('0x0')](_0x55ce22[_0xf320('0x13')][0x0][_0xf320('0xf')])[_0xf320('0x4')];}
23
+ const _0x4c1d=['_compareOperations','_compressSingleOperation','compress','nodes','_getCompressorByName','from','keys','InsertOperation','length','attributes','decompress','_splitCurrent','substr','position','_context','wasUndone','data'];(function(_0x5c94e8,_0x4c1d5f){const _0x120400=function(_0x3a8178){while(--_0x3a8178){_0x5c94e8['push'](_0x5c94e8['shift']());}};_0x120400(++_0x4c1d5f);}(_0x4c1d,0x1e9));const _0x1204=function(_0x5c94e8,_0x4c1d5f){_0x5c94e8=_0x5c94e8-0x0;let _0x120400=_0x4c1d[_0x5c94e8];return _0x120400;};import _0x429319 from'./actioncompressor';import{arePositionsEqual as _0x311d25,getPositionShiftedBy as _0x219a63}from'../utils';import{cloneDeep as _0x585da8}from'lodash-es';export default class g extends _0x429319{['_combineNext'](_0x343e4f,_0x478bf4){return _0x478bf4[_0x1204('0x7')][0x0]['data']+=_0x343e4f['nodes'][0x0]['data'],_0x478bf4;}[_0x1204('0xf')](_0x4d50c0){const _0x9b7240=_0x585da8(_0x4d50c0),_0x55607b=_0x9b7240['nodes'][0x0],_0x235473=_0x4d50c0[_0x1204('0x7')][0x0],_0x226ac7=Array[_0x1204('0x9')](_0x235473[_0x1204('0x3')])[0x0],_0x2b33df=_0x226ac7[_0x1204('0xc')];return _0x55607b[_0x1204('0x3')]=_0x226ac7,_0x235473[_0x1204('0x3')]=_0x235473[_0x1204('0x3')][_0x1204('0x10')](_0x2b33df),_0x4d50c0[_0x1204('0x0')]=_0x219a63(_0x4d50c0[_0x1204('0x0')],_0x2b33df),_0x9b7240;}[_0x1204('0x4')](_0x4a5f44,_0x123b8a){if(S(_0x4a5f44)&&S(_0x123b8a)){const _0x303111=_0x4a5f44[_0x1204('0x7')][0x0][_0x1204('0x3')][_0x1204('0xc')],_0x36c81f=_0x311d25(_0x219a63(_0x4a5f44[_0x1204('0x0')],_0x303111),_0x123b8a['position']),_0x495296=_0x4a5f44[_0x1204('0x7')][0x0],_0x3d00d2=_0x123b8a[_0x1204('0x7')][0x0];return _0x36c81f&&function(_0x366df7,_0x40b376){const _0x54c6ba=Object[_0x1204('0xa')](_0x366df7[_0x1204('0xd')]||{}),_0x183ff5=Object[_0x1204('0xa')](_0x40b376['attributes']||{});if(_0x54c6ba[_0x1204('0xc')]!==_0x183ff5[_0x1204('0xc')])return!0x1;return _0x54c6ba['every'](_0x11c80d=>_0x40b376[_0x1204('0xd')][_0x11c80d]&&_0x40b376[_0x1204('0xd')][_0x11c80d]===_0x366df7['attributes'][_0x11c80d]);}(_0x495296,_0x3d00d2);}return!0x1;}[_0x1204('0x5')](_0x2022e9){const _0x5a8de9={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1204('0x1')][_0x1204('0x8')](_0x1204('0xb'))[_0x1204('0x6')](_0x5a8de9,[_0x2022e9]),_0x5a8de9['buffers'][0x0];}['_decompressSingleOperation'](_0x3deb54){const _0x489e5f=[];return this[_0x1204('0x1')][_0x1204('0x8')]('InsertOperation')[_0x1204('0xe')](_0x489e5f,_0x3deb54),_0x489e5f[0x0];}}function S(_0x98531d){return _0x1204('0xb')==_0x98531d['__className']&&0x1==_0x98531d[_0x1204('0x7')][_0x1204('0xc')]&&_0x98531d[_0x1204('0x7')][0x0][_0x1204('0x3')]&&!_0x98531d[_0x1204('0x2')]&&0x1==Array[_0x1204('0x9')](_0x98531d[_0x1204('0x7')][0x0][_0x1204('0x3')])[_0x1204('0xc')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d45=['MarkerOperation','__className','compress','oldRange','user:position:','startsWith','_getCompressorByName','split','types','end','decompress','buffers','toNone','stickiness','shift','push','_compressSingleOperation','name','user:','start','newRange'];(function(_0x5b9d7e,_0x5d4546){const _0x156284=function(_0x17bc19){while(--_0x17bc19){_0x5b9d7e['push'](_0x5b9d7e['shift']());}};_0x156284(++_0x5d4546);}(_0x5d45,0x7c));const _0x1562=function(_0x5b9d7e,_0x5d4546){_0x5b9d7e=_0x5b9d7e-0x0;let _0x156284=_0x5d45[_0x5b9d7e];return _0x156284;};import _0x50d7cf from'./actioncompressor';import{arePositionsEqual as _0x361471}from'../utils';import{cloneDeep as _0x235266}from'lodash-es';export default class M extends _0x50d7cf{['compress'](_0x32fec8,_0x5921b6){if(!function(_0x2782ce,_0x2ed174){if(!_0x2782ce||!_0x2ed174)return!0x1;if(_0x1562('0x2')!=_0x2782ce[_0x1562('0x3')]||_0x1562('0x2')!=_0x2ed174[_0x1562('0x3')])return!0x1;if(_0x2782ce[_0x1562('0x13')][_0x1562('0x7')](_0x1562('0x14'))&&_0x2ed174[_0x1562('0x13')][_0x1562('0x7')](_0x1562('0x14'))&&_0x2782ce['name']!=_0x2ed174[_0x1562('0x13')])return!0x0;return!0x1;}(_0x5921b6[0x0],_0x5921b6[0x1]))return!0x1;const _0x1c8ac3=_0x5921b6[_0x1562('0x10')]();return _0x1c8ac3[_0x1562('0x5')]=null,_0x1c8ac3[_0x1562('0x1')]&&_0x361471(_0x1c8ac3['newRange'][_0x1562('0x0')],_0x1c8ac3[_0x1562('0x1')]['end'])&&(_0x1c8ac3[_0x1562('0x1')]['end']=null),_0x5921b6['shift'](),_0x32fec8[_0x1562('0xa')][_0x1562('0x11')](this['id']),_0x32fec8[_0x1562('0xa')]['push'](0x0),_0x32fec8[_0x1562('0xd')]['push'](this[_0x1562('0x12')](_0x1c8ac3)),!0x0;}[_0x1562('0xc')](_0x1a4995,_0x220506){const _0xc8456c=this['_decompressSingleOperation'](_0x220506);_0xc8456c['newRange']&&!_0xc8456c[_0x1562('0x1')]['end']&&(_0xc8456c[_0x1562('0x1')][_0x1562('0xb')]=_0x235266(_0xc8456c['newRange'][_0x1562('0x0')]));const _0x4a5661=_0x235266(_0xc8456c);_0x4a5661['newRange']&&(_0x4a5661[_0x1562('0x1')][_0x1562('0x0')][_0x1562('0xf')]=_0x1562('0xe'),_0x4a5661[_0x1562('0x1')][_0x1562('0xb')]=_0x235266(_0x4a5661[_0x1562('0x1')]['start'])),_0x4a5661[_0x1562('0x13')]=_0x1562('0x6')+_0x4a5661['name'][_0x1562('0x9')](':')[0x2],_0x220506[_0x1562('0xa')][_0x1562('0x10')](),_0x1a4995[_0x1562('0x11')](_0xc8456c),_0x1a4995[_0x1562('0x11')](_0x4a5661);}['_compressSingleOperation'](_0x384287){const _0x1ed3ec={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x1562('0x8')](_0x1562('0x2'))[_0x1562('0x4')](_0x1ed3ec,[_0x384287]),_0x1ed3ec[_0x1562('0xd')][0x0];}['_decompressSingleOperation'](_0x3ffde0){const _0x5a8478=[];return this['_context'][_0x1562('0x8')](_0x1562('0x2'))[_0x1562('0xc')](_0x5a8478,_0x3ffde0),_0x5a8478[0x0];}}
23
+ const _0x581e=['types','push','user:','split','_compressSingleOperation','end','newRange','start','_context','__className','_decompressSingleOperation','toNone','oldRange','compress','name','startsWith','_getCompressorByName','shift','buffers','MarkerOperation','stickiness','decompress'];(function(_0xb94c55,_0x581e59){const _0x1292a9=function(_0x2e29db){while(--_0x2e29db){_0xb94c55['push'](_0xb94c55['shift']());}};_0x1292a9(++_0x581e59);}(_0x581e,0x94));const _0x1292=function(_0xb94c55,_0x581e59){_0xb94c55=_0xb94c55-0x0;let _0x1292a9=_0x581e[_0xb94c55];return _0x1292a9;};import _0xd4378d from'./actioncompressor';import{arePositionsEqual as _0x581eb2}from'../utils';import{cloneDeep as _0x2d5154}from'lodash-es';export default class M extends _0xd4378d{[_0x1292('0x13')](_0x5eb5cd,_0x13dba7){if(!function(_0x4469d6,_0x4b08a3){if(!_0x4469d6||!_0x4b08a3)return!0x1;if('MarkerOperation'!=_0x4469d6['__className']||_0x1292('0x3')!=_0x4b08a3[_0x1292('0xf')])return!0x1;if(_0x4469d6['name'][_0x1292('0x15')](_0x1292('0x8'))&&_0x4b08a3[_0x1292('0x14')][_0x1292('0x15')](_0x1292('0x8'))&&_0x4469d6['name']!=_0x4b08a3[_0x1292('0x14')])return!0x0;return!0x1;}(_0x13dba7[0x0],_0x13dba7[0x1]))return!0x1;const _0x1535c4=_0x13dba7['shift']();return _0x1535c4[_0x1292('0x12')]=null,_0x1535c4[_0x1292('0xc')]&&_0x581eb2(_0x1535c4[_0x1292('0xc')]['start'],_0x1535c4[_0x1292('0xc')]['end'])&&(_0x1535c4[_0x1292('0xc')]['end']=null),_0x13dba7[_0x1292('0x1')](),_0x5eb5cd[_0x1292('0x6')][_0x1292('0x7')](this['id']),_0x5eb5cd[_0x1292('0x6')][_0x1292('0x7')](0x0),_0x5eb5cd[_0x1292('0x2')][_0x1292('0x7')](this['_compressSingleOperation'](_0x1535c4)),!0x0;}[_0x1292('0x5')](_0x3f5b8f,_0x3cf61d){const _0x3c2e92=this[_0x1292('0x10')](_0x3cf61d);_0x3c2e92['newRange']&&!_0x3c2e92[_0x1292('0xc')][_0x1292('0xb')]&&(_0x3c2e92[_0x1292('0xc')][_0x1292('0xb')]=_0x2d5154(_0x3c2e92[_0x1292('0xc')][_0x1292('0xd')]));const _0x464cdf=_0x2d5154(_0x3c2e92);_0x464cdf[_0x1292('0xc')]&&(_0x464cdf[_0x1292('0xc')][_0x1292('0xd')][_0x1292('0x4')]=_0x1292('0x11'),_0x464cdf['newRange']['end']=_0x2d5154(_0x464cdf['newRange'][_0x1292('0xd')])),_0x464cdf[_0x1292('0x14')]='user:position:'+_0x464cdf[_0x1292('0x14')][_0x1292('0x9')](':')[0x2],_0x3cf61d[_0x1292('0x6')][_0x1292('0x1')](),_0x3f5b8f['push'](_0x3c2e92),_0x3f5b8f[_0x1292('0x7')](_0x464cdf);}[_0x1292('0xa')](_0x2a79a6){const _0x51c03c={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1292('0xe')][_0x1292('0x0')]('MarkerOperation')[_0x1292('0x13')](_0x51c03c,[_0x2a79a6]),_0x51c03c[_0x1292('0x2')][0x0];}[_0x1292('0x10')](_0x614b82){const _0x9327be=[];return this[_0x1292('0xe')]['_getCompressorByName']('MarkerOperation')[_0x1292('0x5')](_0x9327be,_0x614b82),_0x9327be[0x0];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4cb4=['Element','bool','uint32','Position','string','repeated'];(function(_0xdfe555,_0x4cb4af){var _0x21df1a=function(_0xd805bb){while(--_0xd805bb){_0xdfe555['push'](_0xdfe555['shift']());}};_0x21df1a(++_0x4cb4af);}(_0x4cb4,0x9e));var _0x21df=function(_0xdfe555,_0x4cb4af){_0xdfe555=_0xdfe555-0x0;var _0x21df1a=_0x4cb4[_0xdfe555];return _0x21df1a;};export default{'Position':{'fields':{'root':{'type':_0x21df('0x2'),'id':0x1},'rootMain':{'type':_0x21df('0x5'),'id':0x2},'rootGraveyard':{'type':_0x21df('0x5'),'id':0x3},'path':{'rule':'repeated','type':_0x21df('0x0'),'id':0x4},'stickiness':{'type':_0x21df('0x2'),'id':0x5}}},'Range':{'fields':{'start':{'type':'Position','id':0x1},'end':{'type':_0x21df('0x1'),'id':0x2}}},'Element':{'fields':{'name':{'type':'string','id':0x1},'children':{'rule':_0x21df('0x3'),'type':_0x21df('0x4'),'id':0x2},'data':{'type':_0x21df('0x2'),'id':0x3},'attributesBoolean':{'keyType':_0x21df('0x2'),'type':_0x21df('0x5'),'id':0x4},'attributesJson':{'type':_0x21df('0x2'),'id':0x5}}}};
23
+ var _0x309e=['bool','uint32','Element','string','repeated','Position'];(function(_0x201ca1,_0x309e4e){var _0x270b36=function(_0x11cf53){while(--_0x11cf53){_0x201ca1['push'](_0x201ca1['shift']());}};_0x270b36(++_0x309e4e);}(_0x309e,0xea));var _0x270b=function(_0x201ca1,_0x309e4e){_0x201ca1=_0x201ca1-0x0;var _0x270b36=_0x309e[_0x201ca1];return _0x270b36;};export default{'Position':{'fields':{'root':{'type':'string','id':0x1},'rootMain':{'type':_0x270b('0x0'),'id':0x2},'rootGraveyard':{'type':'bool','id':0x3},'path':{'rule':_0x270b('0x4'),'type':_0x270b('0x1'),'id':0x4},'stickiness':{'type':_0x270b('0x3'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x270b('0x5'),'id':0x1},'end':{'type':_0x270b('0x5'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x270b('0x3'),'id':0x1},'children':{'rule':'repeated','type':_0x270b('0x2'),'id':0x2},'data':{'type':_0x270b('0x3'),'id':0x3},'attributesBoolean':{'keyType':_0x270b('0x3'),'type':'bool','id':0x4},'attributesJson':{'type':_0x270b('0x3'),'id':0x5}}}};
package/src/compressor.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c0f=['ForwardDeletingAction','AttributeOperation','__className','types','DeletingAction','compress','forEach','_registerOperationCompressor','registerDescriptor','RenameOperation','_registerCompressor','RootAttributeOperation','TypingAction','_compressorById','length','_compressorByName','CommentMarkerOperation','MoveOperation','_protobufFactory','description','MergeOperation','Position','_registerActionCompressor','SplitOperation','InsertOperation','_getCompressorByName','MarkerOperation','get','no-operations-provided','NoOperation','set','UserSelectionAction','baseVersion','Range','decompress','Element','SuggestionMarkerOperation','getDescriptor','suggestion'];(function(_0x319bae,_0x4c0f1a){const _0x479184=function(_0xf02453){while(--_0xf02453){_0x319bae['push'](_0x319bae['shift']());}};_0x479184(++_0x4c0f1a);}(_0x4c0f,0x134));const _0x4791=function(_0x319bae,_0x4c0f1a){_0x319bae=_0x319bae-0x0;let _0x479184=_0x4c0f[_0x319bae];return _0x479184;};import{CKEditorError as _0x38c48b}from'ckeditor5/src/utils';import _0x4540e7 from'./protobuffactory';import _0x37c1c4 from'./commondescriptions';import _0x49b2b5 from'./operationcompressor/attributeoperationcompressor';import _0x421334 from'./operationcompressor/insertoperationcompressor';import _0x1aac2a from'./operationcompressor/markeroperationcompressor';import _0x3d6d72 from'./operationcompressor/mergeoperationcompressor';import _0x555439 from'./operationcompressor/moveoperationcompressor';import _0x2dd8bb from'./operationcompressor/renameoperationcompressor';import _0x3ff017 from'./operationcompressor/rootattributeoperationcompressor';import _0x2bc552 from'./operationcompressor/splitoperationcompressor';import _0x16c5e3 from'./operationcompressor/nooperationcompressor';import _0x19b2ad from'./operationcompressor/annotationmarkeroperationcompressor';import _0x500a19 from'./actioncompressor/typingactioncompressor';import _0x184133 from'./actioncompressor/deletingactioncompressor';import _0x1e0f27 from'./actioncompressor/forwarddeletingactioncompressor';import _0x4cc507 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x4791('0x11')]=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new _0x4540e7(),this['_protobufFactory'][_0x4791('0xc')]('Position',_0x37c1c4[_0x4791('0x19')]),this['_protobufFactory'][_0x4791('0xc')](_0x4791('0x25'),_0x37c1c4[_0x4791('0x25')]),this[_0x4791('0x16')]['registerDescriptor'](_0x4791('0x0'),_0x37c1c4[_0x4791('0x0')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x5'),_0x49b2b5[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x1c'),_0x421334[_0x4791('0x17')]),this['_protobufFactory'][_0x4791('0xc')]('MarkerOperation',_0x1aac2a[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x18'),_0x3d6d72['description']),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x15'),_0x555439[_0x4791('0x17')]),this['_protobufFactory'][_0x4791('0xc')](_0x4791('0xd'),_0x2dd8bb[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0xf'),_0x3ff017[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x1b'),_0x2bc552[_0x4791('0x17')]),this['_protobufFactory']['build'](),this[_0x4791('0xe')](0x1,_0x4791('0x21'),new _0x16c5e3(0x1,_0x4791('0x21'))),this[_0x4791('0xb')](0xa,'AttributeOperation',_0x49b2b5),this['_registerOperationCompressor'](0xb,_0x4791('0x1c'),_0x421334),this[_0x4791('0xb')](0xc,_0x4791('0x1e'),_0x1aac2a),this[_0x4791('0xb')](0xd,'MergeOperation',_0x3d6d72),this[_0x4791('0xb')](0xe,'MoveOperation',_0x555439),this[_0x4791('0xb')](0xf,_0x4791('0xd'),_0x2dd8bb),this[_0x4791('0xb')](0x10,_0x4791('0xf'),_0x3ff017),this['_registerOperationCompressor'](0x11,_0x4791('0x1b'),_0x2bc552);const _0x39352a=this[_0x4791('0x16')][_0x4791('0x2')](_0x4791('0x1e'));this[_0x4791('0xe')](0x12,_0x4791('0x14'),new _0x19b2ad(0x12,_0x4791('0x1e'),_0x39352a,'comment')),this[_0x4791('0xe')](0x13,_0x4791('0x1'),new _0x19b2ad(0x13,_0x4791('0x1e'),_0x39352a,_0x4791('0x3'))),this[_0x4791('0x1a')](0x64,_0x4791('0x10'),_0x500a19),this[_0x4791('0x1a')](0x65,_0x4791('0x8'),_0x184133),this['_registerActionCompressor'](0x66,_0x4791('0x4'),_0x1e0f27),this[_0x4791('0x1a')](0x67,'UserSelectionAction',_0x4cc507);}[_0x4791('0xb')](_0x28cceb,_0x4c77ac,_0x225ca5){const _0x58df75=new _0x225ca5(_0x28cceb,_0x4c77ac,this['_protobufFactory'][_0x4791('0x2')](_0x4c77ac));this[_0x4791('0xe')](_0x28cceb,_0x4c77ac,_0x58df75);}[_0x4791('0x1a')](_0x265aca,_0x3bca3e,_0x43926a){const _0xb817e6=new _0x43926a(_0x265aca,this);this[_0x4791('0xe')](_0x265aca,_0x3bca3e,_0xb817e6);}[_0x4791('0xe')](_0x5b0f3c,_0x225da0,_0x1e6c64){this[_0x4791('0x11')][_0x4791('0x22')](_0x5b0f3c,_0x1e6c64),this[_0x4791('0x13')][_0x4791('0x22')](_0x225da0,_0x1e6c64);}['_getCompressorByName'](_0x293e68){return this[_0x4791('0x13')][_0x4791('0x1f')](_0x293e68);}[_0x4791('0x9')](_0x57430c){if(!_0x57430c||!_0x57430c[0x0])throw new _0x38c48b(_0x4791('0x20'),this);const _0x59b2f0={'types':[],'buffers':[],'baseVersion':_0x57430c[0x0][_0x4791('0x24')]};for(;_0x57430c[_0x4791('0x12')];)this['_getCompressorByName'](_0x4791('0x23'))['compress'](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x4791('0x10'))[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')]('DeletingAction')[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this['_getCompressorByName']('ForwardDeletingAction')[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x4791('0x14'))[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x4791('0x1'))[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x57430c[0x0][_0x4791('0x6')])[_0x4791('0x9')](_0x59b2f0,_0x57430c);return _0x59b2f0;}[_0x4791('0x26')](_0x2a09a){const _0x598068=[];for(;_0x2a09a[_0x4791('0x7')][_0x4791('0x12')];){this[_0x4791('0x11')][_0x4791('0x1f')](_0x2a09a[_0x4791('0x7')][0x0])['decompress'](_0x598068,_0x2a09a);}return _0x598068[_0x4791('0xa')]((_0x847e14,_0x55576b)=>_0x847e14[_0x4791('0x24')]=_0x2a09a[_0x4791('0x24')]+_0x55576b),_0x598068;}}
23
+ const _0x5a76=['Range','RootAttributeOperation','Position','TypingAction','AttributeOperation','UserSelectionAction','MergeOperation','getDescriptor','CommentMarkerOperation','Element','build','NoOperation','baseVersion','_getCompressorByName','registerDescriptor','SuggestionMarkerOperation','__className','suggestion','RenameOperation','_registerActionCompressor','description','forEach','compress','MoveOperation','_registerCompressor','MarkerOperation','get','_registerOperationCompressor','_protobufFactory','types','_compressorById','set','DeletingAction','ForwardDeletingAction','_compressorByName','length'];(function(_0x1cff4b,_0x5a76e1){const _0x1e4664=function(_0xd4c13a){while(--_0xd4c13a){_0x1cff4b['push'](_0x1cff4b['shift']());}};_0x1e4664(++_0x5a76e1);}(_0x5a76,0xdd));const _0x1e46=function(_0x1cff4b,_0x5a76e1){_0x1cff4b=_0x1cff4b-0x0;let _0x1e4664=_0x5a76[_0x1cff4b];return _0x1e4664;};import{CKEditorError as _0x567d4f}from'ckeditor5/src/utils';import _0x45ce10 from'./protobuffactory';import _0x22975e from'./commondescriptions';import _0x2075f7 from'./operationcompressor/attributeoperationcompressor';import _0x5f12aa from'./operationcompressor/insertoperationcompressor';import _0x1983de from'./operationcompressor/markeroperationcompressor';import _0x41ec89 from'./operationcompressor/mergeoperationcompressor';import _0x4d2a2d from'./operationcompressor/moveoperationcompressor';import _0x3c5001 from'./operationcompressor/renameoperationcompressor';import _0x529b45 from'./operationcompressor/rootattributeoperationcompressor';import _0x3f77e2 from'./operationcompressor/splitoperationcompressor';import _0x25e076 from'./operationcompressor/nooperationcompressor';import _0x140d93 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x2e5309 from'./actioncompressor/typingactioncompressor';import _0x5450e5 from'./actioncompressor/deletingactioncompressor';import _0x52ac4f from'./actioncompressor/forwarddeletingactioncompressor';import _0x2594c1 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x1e46('0x19')]=new Map(),this[_0x1e46('0x1d')]=new Map(),this[_0x1e46('0x17')]=new _0x45ce10(),this[_0x1e46('0x17')][_0x1e46('0x9')](_0x1e46('0x21'),_0x22975e[_0x1e46('0x21')]),this[_0x1e46('0x17')][_0x1e46('0x9')](_0x1e46('0x1f'),_0x22975e['Range']),this['_protobufFactory'][_0x1e46('0x9')]('Element',_0x22975e[_0x1e46('0x4')]),this[_0x1e46('0x17')][_0x1e46('0x9')](_0x1e46('0x23'),_0x2075f7['description']),this['_protobufFactory'][_0x1e46('0x9')]('InsertOperation',_0x5f12aa[_0x1e46('0xf')]),this[_0x1e46('0x17')][_0x1e46('0x9')]('MarkerOperation',_0x1983de['description']),this['_protobufFactory'][_0x1e46('0x9')](_0x1e46('0x1'),_0x41ec89[_0x1e46('0xf')]),this[_0x1e46('0x17')][_0x1e46('0x9')](_0x1e46('0x12'),_0x4d2a2d[_0x1e46('0xf')]),this[_0x1e46('0x17')][_0x1e46('0x9')](_0x1e46('0xd'),_0x3c5001[_0x1e46('0xf')]),this[_0x1e46('0x17')]['registerDescriptor'](_0x1e46('0x20'),_0x529b45['description']),this[_0x1e46('0x17')][_0x1e46('0x9')]('SplitOperation',_0x3f77e2[_0x1e46('0xf')]),this[_0x1e46('0x17')][_0x1e46('0x5')](),this[_0x1e46('0x13')](0x1,_0x1e46('0x6'),new _0x25e076(0x1,_0x1e46('0x6'))),this[_0x1e46('0x16')](0xa,_0x1e46('0x23'),_0x2075f7),this[_0x1e46('0x16')](0xb,'InsertOperation',_0x5f12aa),this[_0x1e46('0x16')](0xc,_0x1e46('0x14'),_0x1983de),this['_registerOperationCompressor'](0xd,_0x1e46('0x1'),_0x41ec89),this[_0x1e46('0x16')](0xe,_0x1e46('0x12'),_0x4d2a2d),this[_0x1e46('0x16')](0xf,_0x1e46('0xd'),_0x3c5001),this[_0x1e46('0x16')](0x10,_0x1e46('0x20'),_0x529b45),this[_0x1e46('0x16')](0x11,'SplitOperation',_0x3f77e2);const _0x5940d5=this[_0x1e46('0x17')][_0x1e46('0x2')]('MarkerOperation');this[_0x1e46('0x13')](0x12,_0x1e46('0x3'),new _0x140d93(0x12,'MarkerOperation',_0x5940d5,'comment')),this[_0x1e46('0x13')](0x13,'SuggestionMarkerOperation',new _0x140d93(0x13,_0x1e46('0x14'),_0x5940d5,_0x1e46('0xc'))),this[_0x1e46('0xe')](0x64,_0x1e46('0x22'),_0x2e5309),this[_0x1e46('0xe')](0x65,_0x1e46('0x1b'),_0x5450e5),this[_0x1e46('0xe')](0x66,_0x1e46('0x1c'),_0x52ac4f),this['_registerActionCompressor'](0x67,_0x1e46('0x0'),_0x2594c1);}[_0x1e46('0x16')](_0x365ccd,_0x204d2d,_0x2e498e){const _0x405cb3=new _0x2e498e(_0x365ccd,_0x204d2d,this[_0x1e46('0x17')][_0x1e46('0x2')](_0x204d2d));this[_0x1e46('0x13')](_0x365ccd,_0x204d2d,_0x405cb3);}[_0x1e46('0xe')](_0x2cd161,_0x1e1acc,_0x26937e){const _0x39b741=new _0x26937e(_0x2cd161,this);this['_registerCompressor'](_0x2cd161,_0x1e1acc,_0x39b741);}[_0x1e46('0x13')](_0x5138f7,_0x2e2ebb,_0x11fbd8){this[_0x1e46('0x19')][_0x1e46('0x1a')](_0x5138f7,_0x11fbd8),this['_compressorByName'][_0x1e46('0x1a')](_0x2e2ebb,_0x11fbd8);}[_0x1e46('0x8')](_0x2de534){return this['_compressorByName'][_0x1e46('0x15')](_0x2de534);}[_0x1e46('0x11')](_0x21a152){if(!_0x21a152||!_0x21a152[0x0])throw new _0x567d4f('no-operations-provided',this);const _0x261b88={'types':[],'buffers':[],'baseVersion':_0x21a152[0x0][_0x1e46('0x7')]};for(;_0x21a152['length'];)this[_0x1e46('0x8')](_0x1e46('0x0'))[_0x1e46('0x11')](_0x261b88,_0x21a152)||this['_getCompressorByName']('TypingAction')[_0x1e46('0x11')](_0x261b88,_0x21a152)||this[_0x1e46('0x8')](_0x1e46('0x1b'))[_0x1e46('0x11')](_0x261b88,_0x21a152)||this[_0x1e46('0x8')](_0x1e46('0x1c'))[_0x1e46('0x11')](_0x261b88,_0x21a152)||this[_0x1e46('0x8')](_0x1e46('0x3'))[_0x1e46('0x11')](_0x261b88,_0x21a152)||this[_0x1e46('0x8')](_0x1e46('0xa'))[_0x1e46('0x11')](_0x261b88,_0x21a152)||this[_0x1e46('0x8')](_0x21a152[0x0][_0x1e46('0xb')])[_0x1e46('0x11')](_0x261b88,_0x21a152);return _0x261b88;}['decompress'](_0x3737f7){const _0x157f6f=[];for(;_0x3737f7['types'][_0x1e46('0x1e')];){this['_compressorById'][_0x1e46('0x15')](_0x3737f7[_0x1e46('0x18')][0x0])['decompress'](_0x157f6f,_0x3737f7);}return _0x157f6f[_0x1e46('0x10')]((_0x32f8dc,_0x197b79)=>_0x32f8dc[_0x1e46('0x7')]=_0x3737f7[_0x1e46('0x7')]+_0x197b79),_0x157f6f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c83=['replace','__className','decompress','startsWith','compress','MarkerOperation','name','_omittedNamespace','length'];(function(_0x2bda52,_0x1c8349){const _0x5842dc=function(_0x2c67d7){while(--_0x2c67d7){_0x2bda52['push'](_0x2bda52['shift']());}};_0x5842dc(++_0x1c8349);}(_0x1c83,0x11c));const _0x5842=function(_0x2bda52,_0x1c8349){_0x2bda52=_0x2bda52-0x0;let _0x5842dc=_0x1c83[_0x2bda52];return _0x5842dc;};import _0x2419af from'./markeroperationcompressor';export default class O extends _0x2419af{constructor(_0x388e4f,_0x555ad4,_0x3f5305,_0x334f07){super(_0x388e4f,_0x555ad4,_0x3f5305),this[_0x5842('0x2')]=_0x334f07+':';}[_0x5842('0x8')](_0x1bfdd8,_0x445cb7){return!(_0x5842('0x0')!=_0x445cb7[0x0][_0x5842('0x5')]||!_0x445cb7[0x0]['name'][_0x5842('0x7')](this[_0x5842('0x2')]))&&(_0x445cb7[0x0]['name']=_0x445cb7[0x0][_0x5842('0x1')][_0x5842('0x4')](new RegExp('^'+this[_0x5842('0x2')]),''),super[_0x5842('0x8')](_0x1bfdd8,_0x445cb7),!0x0);}[_0x5842('0x6')](_0x423b90,_0x18c8d1){super[_0x5842('0x6')](_0x423b90,_0x18c8d1);const _0x3b4e1a=_0x423b90[_0x423b90[_0x5842('0x3')]-0x1];_0x3b4e1a[_0x5842('0x1')]=this['_omittedNamespace']+_0x3b4e1a['name'];}}
23
+ const _0x53a3=['startsWith','length','name','replace','decompress','_omittedNamespace','__className','compress'];(function(_0x13741e,_0x53a363){const _0x48a821=function(_0x4c0e05){while(--_0x4c0e05){_0x13741e['push'](_0x13741e['shift']());}};_0x48a821(++_0x53a363);}(_0x53a3,0xb5));const _0x48a8=function(_0x13741e,_0x53a363){_0x13741e=_0x13741e-0x0;let _0x48a821=_0x53a3[_0x13741e];return _0x48a821;};import _0x5d0687 from'./markeroperationcompressor';export default class O extends _0x5d0687{constructor(_0x16a061,_0x56ad8b,_0x4d304c,_0x5b66c6){super(_0x16a061,_0x56ad8b,_0x4d304c),this[_0x48a8('0x0')]=_0x5b66c6+':';}[_0x48a8('0x2')](_0x31d90f,_0x300bf5){return!('MarkerOperation'!=_0x300bf5[0x0][_0x48a8('0x1')]||!_0x300bf5[0x0][_0x48a8('0x5')][_0x48a8('0x3')](this[_0x48a8('0x0')]))&&(_0x300bf5[0x0][_0x48a8('0x5')]=_0x300bf5[0x0][_0x48a8('0x5')][_0x48a8('0x6')](new RegExp('^'+this[_0x48a8('0x0')]),''),super[_0x48a8('0x2')](_0x31d90f,_0x300bf5),!0x0);}[_0x48a8('0x7')](_0x572e6a,_0x3b9b8e){super[_0x48a8('0x7')](_0x572e6a,_0x3b9b8e);const _0x42439d=_0x572e6a[_0x572e6a[_0x48a8('0x4')]-0x1];_0x42439d[_0x48a8('0x5')]=this[_0x48a8('0x0')]+_0x42439d['name'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b8f=['Boolean','shift','stringify','description','compress','types','Json','newValue','string','Range','boolean','push','bool','oldValue','operationName','decompress','__className','parse'];(function(_0x64cdb8,_0x2b8f99){const _0x262d1a=function(_0x306e93){while(--_0x306e93){_0x64cdb8['push'](_0x64cdb8['shift']());}};_0x262d1a(++_0x2b8f99);}(_0x2b8f,0x7e));const _0x262d=function(_0x64cdb8,_0x2b8f99){_0x64cdb8=_0x64cdb8-0x0;let _0x262d1a=_0x2b8f[_0x64cdb8];return _0x262d1a;};import _0x1f97cb from'./operationcompressor';import{parsePositionBeforeCompression as _0x34c20b,parsePositionAfterCompression as _0x26ef96}from'../utils';export default class i extends _0x1f97cb{static get[_0x262d('0x3')](){return{'fields':{'range':{'type':_0x262d('0x9'),'id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':_0x262d('0xc'),'id':0x3},'oldValueJson':{'type':_0x262d('0x8'),'id':0x4},'newValueBoolean':{'type':_0x262d('0xc'),'id':0x5},'newValueJson':{'type':_0x262d('0x8'),'id':0x6},'wasUndone':{'type':'bool','id':0x7}}};}[_0x262d('0x4')](_0x3b61e3,_0x204664){const _0x342d66=_0x204664[_0x262d('0x1')]();$(_0x262d('0xd'),_0x342d66),$('newValue',_0x342d66),_0x34c20b(_0x342d66),_0x3b61e3['buffers'][_0x262d('0xb')](this['_protobufDescriptor']['compress'](_0x342d66)),_0x3b61e3[_0x262d('0x5')][_0x262d('0xb')](this['id']);}[_0x262d('0xf')](_0x314620,_0x54f6ff){const {types:_0x25a3e1,buffers:_0x4a56d0}=_0x54f6ff,_0x598057=this['_protobufDescriptor'][_0x262d('0xf')](_0x4a56d0[_0x262d('0x1')]());_0x25a3e1['shift'](),N(_0x262d('0xd'),_0x598057),N(_0x262d('0x7'),_0x598057),_0x26ef96(_0x598057),_0x598057[_0x262d('0x10')]=this[_0x262d('0xe')],_0x314620['push'](_0x598057);}}function $(_0x5be699,_0x5957be){const _0x93b425=_0x5957be[_0x5be699];_0x262d('0xa')==typeof _0x93b425?_0x5957be[_0x5be699+_0x262d('0x0')]=_0x93b425:_0x5957be[_0x5be699+_0x262d('0x6')]=JSON[_0x262d('0x2')](_0x93b425);}function N(_0x30ad4d,_0x55a2bb){const _0x3665ee=_0x30ad4d+_0x262d('0x6');_0x55a2bb[_0x3665ee]?(_0x55a2bb[_0x30ad4d]=JSON[_0x262d('0x11')](_0x55a2bb[_0x3665ee]),delete _0x55a2bb[_0x3665ee]):(_0x55a2bb[_0x30ad4d]=_0x55a2bb[_0x30ad4d+_0x262d('0x0')],delete _0x55a2bb[_0x30ad4d+_0x262d('0x0')]);}
23
+ const _0x22ac=['operationName','Boolean','decompress','stringify','Json','oldValue','description','types','parse','newValue','boolean','shift','bool','string','_protobufDescriptor','push','buffers','compress'];(function(_0x3a5e35,_0x22ac0d){const _0x1a7bdb=function(_0x254230){while(--_0x254230){_0x3a5e35['push'](_0x3a5e35['shift']());}};_0x1a7bdb(++_0x22ac0d);}(_0x22ac,0x159));const _0x1a7b=function(_0x3a5e35,_0x22ac0d){_0x3a5e35=_0x3a5e35-0x0;let _0x1a7bdb=_0x22ac[_0x3a5e35];return _0x1a7bdb;};import _0x4a318c from'./operationcompressor';import{parsePositionBeforeCompression as _0x171447,parsePositionAfterCompression as _0x179916}from'../utils';export default class i extends _0x4a318c{static get[_0x1a7b('0x3')](){return{'fields':{'range':{'type':'Range','id':0x1},'key':{'type':_0x1a7b('0xa'),'id':0x2},'oldValueBoolean':{'type':'bool','id':0x3},'oldValueJson':{'type':_0x1a7b('0xa'),'id':0x4},'newValueBoolean':{'type':_0x1a7b('0x9'),'id':0x5},'newValueJson':{'type':_0x1a7b('0xa'),'id':0x6},'wasUndone':{'type':_0x1a7b('0x9'),'id':0x7}}};}[_0x1a7b('0xe')](_0x155fc4,_0x188d96){const _0x36a5b7=_0x188d96[_0x1a7b('0x8')]();$(_0x1a7b('0x2'),_0x36a5b7),$(_0x1a7b('0x6'),_0x36a5b7),_0x171447(_0x36a5b7),_0x155fc4[_0x1a7b('0xd')][_0x1a7b('0xc')](this[_0x1a7b('0xb')][_0x1a7b('0xe')](_0x36a5b7)),_0x155fc4[_0x1a7b('0x4')]['push'](this['id']);}[_0x1a7b('0x11')](_0x4d8567,_0x377920){const {types:_0x4f4178,buffers:_0x43d174}=_0x377920,_0x3057c4=this[_0x1a7b('0xb')]['decompress'](_0x43d174[_0x1a7b('0x8')]());_0x4f4178[_0x1a7b('0x8')](),N('oldValue',_0x3057c4),N(_0x1a7b('0x6'),_0x3057c4),_0x179916(_0x3057c4),_0x3057c4['__className']=this[_0x1a7b('0xf')],_0x4d8567[_0x1a7b('0xc')](_0x3057c4);}}function $(_0x6f5cf2,_0x232954){const _0x198641=_0x232954[_0x6f5cf2];_0x1a7b('0x7')==typeof _0x198641?_0x232954[_0x6f5cf2+'Boolean']=_0x198641:_0x232954[_0x6f5cf2+_0x1a7b('0x1')]=JSON[_0x1a7b('0x0')](_0x198641);}function N(_0x4f05f6,_0x1b129d){const _0x13c31c=_0x4f05f6+_0x1a7b('0x1');_0x1b129d[_0x13c31c]?(_0x1b129d[_0x4f05f6]=JSON[_0x1a7b('0x5')](_0x1b129d[_0x13c31c]),delete _0x1b129d[_0x13c31c]):(_0x1b129d[_0x4f05f6]=_0x1b129d[_0x4f05f6+_0x1a7b('0x10')],delete _0x1b129d[_0x4f05f6+_0x1a7b('0x10')]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x501f=['decompress','operationName','boolean','compress','push','stringify','repeated','attributesBoolean','attributesJson','shift','types','keys','description','children','Position','attributes','bool','every','nodes','_protobufDescriptor'];(function(_0x5d3271,_0x501f03){const _0x14fd69=function(_0x4be3dd){while(--_0x4be3dd){_0x5d3271['push'](_0x5d3271['shift']());}};_0x14fd69(++_0x501f03);}(_0x501f,0x1eb));const _0x14fd=function(_0x5d3271,_0x501f03){_0x5d3271=_0x5d3271-0x0;let _0x14fd69=_0x501f[_0x5d3271];return _0x14fd69;};import _0x5ebf63 from'./operationcompressor';import{parsePositionBeforeCompression as _0x2606ed,parsePositionAfterCompression as _0x2ecc64}from'../utils';export default class s extends _0x5ebf63{static get[_0x14fd('0x1')](){return{'fields':{'position':{'type':_0x14fd('0x3'),'id':0x1},'nodes':{'rule':_0x14fd('0xf'),'type':'Element','id':0x2},'shouldReceiveAttributes':{'type':_0x14fd('0x5'),'id':0x3},'wasUndone':{'type':_0x14fd('0x5'),'id':0x4}}};}[_0x14fd('0xc')](_0x2fd46b,_0x17e421){const _0x1d68b0=_0x17e421[_0x14fd('0x12')]();A(_0x1d68b0[_0x14fd('0x7')]),_0x2606ed(_0x1d68b0),_0x2fd46b['buffers']['push'](this[_0x14fd('0x8')][_0x14fd('0xc')](_0x1d68b0)),_0x2fd46b[_0x14fd('0x13')]['push'](this['id']);}[_0x14fd('0x9')](_0x392c1b,_0xd63707){const {types:_0x3c1661,buffers:_0x37324d}=_0xd63707,_0x1bdd2a=this[_0x14fd('0x8')][_0x14fd('0x9')](_0x37324d['shift']());_0x3c1661[_0x14fd('0x12')](),_0x1bdd2a[_0x14fd('0x7')]||(_0x1bdd2a[_0x14fd('0x7')]=[]),E(_0x1bdd2a[_0x14fd('0x7')]),_0x2ecc64(_0x1bdd2a),_0x1bdd2a['__className']=this[_0x14fd('0xa')],_0x392c1b[_0x14fd('0xd')](_0x1bdd2a);}}function A(_0x390725){for(const _0x5cf642 of _0x390725){if(_0x5cf642[_0x14fd('0x4')]){const _0x30d1a0=_0x5cf642[_0x14fd('0x4')];R(_0x30d1a0)?_0x5cf642['attributesBoolean']=_0x30d1a0:_0x5cf642[_0x14fd('0x11')]=JSON[_0x14fd('0xe')](_0x30d1a0);}_0x5cf642[_0x14fd('0x2')]&&A(_0x5cf642[_0x14fd('0x2')]);}}function E(_0x3ca54a){for(const _0x16e29b of _0x3ca54a)(_0x16e29b[_0x14fd('0x10')]||_0x16e29b[_0x14fd('0x11')])&&(_0x16e29b['attributesBoolean']?(_0x16e29b[_0x14fd('0x4')]=_0x16e29b[_0x14fd('0x10')],delete _0x16e29b[_0x14fd('0x10')]):(_0x16e29b['attributes']=JSON['parse'](_0x16e29b[_0x14fd('0x11')]),delete _0x16e29b[_0x14fd('0x11')])),_0x16e29b[_0x14fd('0x2')]&&E(_0x16e29b['children']);}function R(_0xf8ace3){return Object[_0x14fd('0x0')](_0xf8ace3)[_0x14fd('0x6')](_0x3709d2=>_0x14fd('0xb')==typeof _0xf8ace3[_0x3709d2]);}
23
+ const _0x3c1f=['attributes','push','_protobufDescriptor','children','compress','Position','parse','boolean','description','buffers','Element','shift','attributesJson','keys','repeated','nodes','operationName','attributesBoolean','every','bool'];(function(_0x6c78a9,_0x3c1f18){const _0x5b1d41=function(_0xd185d1){while(--_0xd185d1){_0x6c78a9['push'](_0x6c78a9['shift']());}};_0x5b1d41(++_0x3c1f18);}(_0x3c1f,0x80));const _0x5b1d=function(_0x6c78a9,_0x3c1f18){_0x6c78a9=_0x6c78a9-0x0;let _0x5b1d41=_0x3c1f[_0x6c78a9];return _0x5b1d41;};import _0x27d81f from'./operationcompressor';import{parsePositionBeforeCompression as _0x4524dd,parsePositionAfterCompression as _0x566a7f}from'../utils';export default class s extends _0x27d81f{static get[_0x5b1d('0x0')](){return{'fields':{'position':{'type':_0x5b1d('0x11'),'id':0x1},'nodes':{'rule':_0x5b1d('0x6'),'type':_0x5b1d('0x2'),'id':0x2},'shouldReceiveAttributes':{'type':'bool','id':0x3},'wasUndone':{'type':_0x5b1d('0xb'),'id':0x4}}};}['compress'](_0x4a7932,_0x4b6fb5){const _0x26f33a=_0x4b6fb5[_0x5b1d('0x3')]();A(_0x26f33a['nodes']),_0x4524dd(_0x26f33a),_0x4a7932[_0x5b1d('0x1')][_0x5b1d('0xd')](this[_0x5b1d('0xe')][_0x5b1d('0x10')](_0x26f33a)),_0x4a7932['types']['push'](this['id']);}['decompress'](_0x44efbf,_0x344bdb){const {types:_0x3bebb5,buffers:_0x5dc6e2}=_0x344bdb,_0x2fab15=this[_0x5b1d('0xe')]['decompress'](_0x5dc6e2[_0x5b1d('0x3')]());_0x3bebb5[_0x5b1d('0x3')](),_0x2fab15['nodes']||(_0x2fab15[_0x5b1d('0x7')]=[]),E(_0x2fab15[_0x5b1d('0x7')]),_0x566a7f(_0x2fab15),_0x2fab15['__className']=this[_0x5b1d('0x8')],_0x44efbf[_0x5b1d('0xd')](_0x2fab15);}}function A(_0x9ab28e){for(const _0x2cd046 of _0x9ab28e){if(_0x2cd046['attributes']){const _0x268762=_0x2cd046[_0x5b1d('0xc')];R(_0x268762)?_0x2cd046[_0x5b1d('0x9')]=_0x268762:_0x2cd046[_0x5b1d('0x4')]=JSON['stringify'](_0x268762);}_0x2cd046['children']&&A(_0x2cd046[_0x5b1d('0xf')]);}}function E(_0x293ecf){for(const _0x58dfef of _0x293ecf)(_0x58dfef[_0x5b1d('0x9')]||_0x58dfef[_0x5b1d('0x4')])&&(_0x58dfef[_0x5b1d('0x9')]?(_0x58dfef['attributes']=_0x58dfef[_0x5b1d('0x9')],delete _0x58dfef['attributesBoolean']):(_0x58dfef[_0x5b1d('0xc')]=JSON[_0x5b1d('0x12')](_0x58dfef['attributesJson']),delete _0x58dfef[_0x5b1d('0x4')])),_0x58dfef[_0x5b1d('0xf')]&&E(_0x58dfef['children']);}function R(_0x54c930){return Object[_0x5b1d('0x5')](_0x54c930)[_0x5b1d('0xa')](_0x2e36d1=>_0x5b1d('0x13')==typeof _0x54c930[_0x2e36d1]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc847=['Range','description','oldRange','decompress','length','string','bool','newRange'];(function(_0x1dadf3,_0xc8474c){const _0x18c30a=function(_0x238f78){while(--_0x238f78){_0x1dadf3['push'](_0x1dadf3['shift']());}};_0x18c30a(++_0xc8474c);}(_0xc847,0xe0));const _0x18c3=function(_0x1dadf3,_0xc8474c){_0x1dadf3=_0x1dadf3-0x0;let _0x18c30a=_0xc847[_0x1dadf3];return _0x18c30a;};import _0x38ae69 from'./operationcompressor';export default class n extends _0x38ae69{static get[_0x18c3('0x1')](){return{'fields':{'name':{'type':_0x18c3('0x5'),'id':0x1},'oldRange':{'type':_0x18c3('0x0'),'id':0x2},'newRange':{'type':_0x18c3('0x0'),'id':0x3},'affectsData':{'type':'bool','id':0x4},'wasUndone':{'type':_0x18c3('0x6'),'id':0x5}}};}['decompress'](_0x59fe95,_0x396406){super[_0x18c3('0x3')](_0x59fe95,_0x396406);const _0x343a59=_0x59fe95[_0x59fe95[_0x18c3('0x4')]-0x1];_0x343a59[_0x18c3('0x2')]||(_0x343a59[_0x18c3('0x2')]=null),_0x343a59['newRange']||(_0x343a59[_0x18c3('0x7')]=null);}}
23
+ const _0x4bc4=['Range','string','decompress','oldRange','length','newRange'];(function(_0x16119c,_0x4bc43e){const _0x1a89ac=function(_0x15b761){while(--_0x15b761){_0x16119c['push'](_0x16119c['shift']());}};_0x1a89ac(++_0x4bc43e);}(_0x4bc4,0xc0));const _0x1a89=function(_0x16119c,_0x4bc43e){_0x16119c=_0x16119c-0x0;let _0x1a89ac=_0x4bc4[_0x16119c];return _0x1a89ac;};import _0x1606c5 from'./operationcompressor';export default class n extends _0x1606c5{static get['description'](){return{'fields':{'name':{'type':_0x1a89('0x1'),'id':0x1},'oldRange':{'type':'Range','id':0x2},'newRange':{'type':_0x1a89('0x0'),'id':0x3},'affectsData':{'type':'bool','id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}[_0x1a89('0x2')](_0x5238b3,_0x3faedb){super[_0x1a89('0x2')](_0x5238b3,_0x3faedb);const _0x1b40d9=_0x5238b3[_0x5238b3[_0x1a89('0x4')]-0x1];_0x1b40d9[_0x1a89('0x3')]||(_0x1b40d9[_0x1a89('0x3')]=null),_0x1b40d9[_0x1a89('0x5')]||(_0x1b40d9[_0x1a89('0x5')]=null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xb572=['uint32','Position','description'];(function(_0x35c130,_0xb57202){var _0x4b7bf2=function(_0x3f2b89){while(--_0x3f2b89){_0x35c130['push'](_0x35c130['shift']());}};_0x4b7bf2(++_0xb57202);}(_0xb572,0x146));var _0x4b7b=function(_0x35c130,_0xb57202){_0x35c130=_0x35c130-0x0;var _0x4b7bf2=_0xb572[_0x35c130];return _0x4b7bf2;};import _0x364e55 from'./operationcompressor';export default class p extends _0x364e55{static get[_0x4b7b('0x0')](){return{'fields':{'sourcePosition':{'type':_0x4b7b('0x2'),'id':0x1},'targetPosition':{'type':'Position','id':0x2},'graveyardPosition':{'type':_0x4b7b('0x2'),'id':0x3},'howMany':{'type':_0x4b7b('0x1'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
23
+ var _0x4247=['Position','description','uint32'];(function(_0x2c67a0,_0x424731){var _0x4f580a=function(_0x429efe){while(--_0x429efe){_0x2c67a0['push'](_0x2c67a0['shift']());}};_0x4f580a(++_0x424731);}(_0x4247,0x11e));var _0x4f58=function(_0x2c67a0,_0x424731){_0x2c67a0=_0x2c67a0-0x0;var _0x4f580a=_0x4247[_0x2c67a0];return _0x4f580a;};import _0x3847f7 from'./operationcompressor';export default class p extends _0x3847f7{static get[_0x4f58('0x0')](){return{'fields':{'sourcePosition':{'type':_0x4f58('0x2'),'id':0x1},'targetPosition':{'type':'Position','id':0x2},'graveyardPosition':{'type':_0x4f58('0x2'),'id':0x3},'howMany':{'type':_0x4f58('0x1'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3d0e=['bool','Position'];(function(_0x3beea1,_0x3d0e26){var _0x10b91a=function(_0x5caa60){while(--_0x5caa60){_0x3beea1['push'](_0x3beea1['shift']());}};_0x10b91a(++_0x3d0e26);}(_0x3d0e,0x15f));var _0x10b9=function(_0x3beea1,_0x3d0e26){_0x3beea1=_0x3beea1-0x0;var _0x10b91a=_0x3d0e[_0x3beea1];return _0x10b91a;};import _0x31f799 from'./operationcompressor';export default class m extends _0x31f799{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x10b9('0x0'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x10b9('0x1'),'id':0x4}}};}}
23
+ var _0x3bff=['uint32','description','bool'];(function(_0x4903f9,_0x3bff7b){var _0x55af05=function(_0x4c9577){while(--_0x4c9577){_0x4903f9['push'](_0x4903f9['shift']());}};_0x55af05(++_0x3bff7b);}(_0x3bff,0x197));var _0x55af=function(_0x4903f9,_0x3bff7b){_0x4903f9=_0x4903f9-0x0;var _0x55af05=_0x3bff[_0x4903f9];return _0x55af05;};import _0x57a36c from'./operationcompressor';export default class m extends _0x57a36c{static get[_0x55af('0x2')](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'howMany':{'type':_0x55af('0x1'),'id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x55af('0x0'),'id':0x4}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x132d=['compress','decompress','push','shift','types','operationName'];(function(_0x4fddb2,_0x132d86){var _0x40699d=function(_0x38287e){while(--_0x38287e){_0x4fddb2['push'](_0x4fddb2['shift']());}};_0x40699d(++_0x132d86);}(_0x132d,0x1b3));var _0x4069=function(_0x4fddb2,_0x132d86){_0x4fddb2=_0x4fddb2-0x0;var _0x40699d=_0x132d[_0x4fddb2];return _0x40699d;};import _0x2bab3d from'./operationcompressor';export default class f extends _0x2bab3d{[_0x4069('0x3')](_0x4a402a,_0x295fbb){_0x295fbb[_0x4069('0x0')](),_0x4a402a['types'][_0x4069('0x5')](this['id']);}[_0x4069('0x4')](_0x4d4a50,_0x468e83){_0x468e83[_0x4069('0x1')][_0x4069('0x0')](),_0x4d4a50[_0x4069('0x5')]({'__className':this[_0x4069('0x2')]});}}
23
+ var _0x37a3=['shift','decompress','operationName','push','compress','types'];(function(_0xcd4cd,_0x37a360){var _0x1d8ac3=function(_0xd42185){while(--_0xd42185){_0xcd4cd['push'](_0xcd4cd['shift']());}};_0x1d8ac3(++_0x37a360);}(_0x37a3,0x67));var _0x1d8a=function(_0xcd4cd,_0x37a360){_0xcd4cd=_0xcd4cd-0x0;var _0x1d8ac3=_0x37a3[_0xcd4cd];return _0x1d8ac3;};import _0xf5d116 from'./operationcompressor';export default class f extends _0xf5d116{[_0x1d8a('0x3')](_0x274ba6,_0x1633d7){_0x1633d7[_0x1d8a('0x5')](),_0x274ba6[_0x1d8a('0x4')][_0x1d8a('0x2')](this['id']);}[_0x1d8a('0x0')](_0x277d45,_0x20f0b9){_0x20f0b9[_0x1d8a('0x4')][_0x1d8a('0x5')](),_0x277d45[_0x1d8a('0x2')]({'__className':this[_0x1d8a('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a7f=['operationName','_protobufDescriptor','compress','buffers','shift','types','push','decompress','__className'];(function(_0x574521,_0x4a7f80){const _0x3b4b1a=function(_0x182e01){while(--_0x182e01){_0x574521['push'](_0x574521['shift']());}};_0x3b4b1a(++_0x4a7f80);}(_0x4a7f,0x1d2));const _0x3b4b=function(_0x574521,_0x4a7f80){_0x574521=_0x574521-0x0;let _0x3b4b1a=_0x4a7f[_0x574521];return _0x3b4b1a;};import{parsePositionBeforeCompression as _0x5cba11,parsePositionAfterCompression as _0x4d1e57}from'../utils';export default class V{constructor(_0x8b103e,_0x345ec4,_0x23b903){this['id']=_0x8b103e,this[_0x3b4b('0x2')]=_0x345ec4,this['_protobufDescriptor']=_0x23b903;}[_0x3b4b('0x4')](_0x423d95,_0x460214){const _0x3952ce=_0x460214[_0x3b4b('0x6')]();_0x5cba11(_0x3952ce),_0x423d95[_0x3b4b('0x5')]['push'](this[_0x3b4b('0x3')][_0x3b4b('0x4')](_0x3952ce)),_0x423d95[_0x3b4b('0x7')]['push'](this['id']);}[_0x3b4b('0x0')](_0x1278ea,_0x59f5ac){_0x59f5ac[_0x3b4b('0x7')][_0x3b4b('0x6')]();const _0x564a7c=this[_0x3b4b('0x3')][_0x3b4b('0x0')](_0x59f5ac[_0x3b4b('0x5')][_0x3b4b('0x6')]());_0x4d1e57(_0x564a7c),_0x564a7c[_0x3b4b('0x1')]=this[_0x3b4b('0x2')],_0x1278ea[_0x3b4b('0x8')](_0x564a7c);}}
23
+ const _0x2499=['_protobufDescriptor','operationName','push','decompress','shift','compress','__className','types'];(function(_0xa19493,_0x2499a9){const _0x56893d=function(_0x4e1ff0){while(--_0x4e1ff0){_0xa19493['push'](_0xa19493['shift']());}};_0x56893d(++_0x2499a9);}(_0x2499,0x8e));const _0x5689=function(_0xa19493,_0x2499a9){_0xa19493=_0xa19493-0x0;let _0x56893d=_0x2499[_0xa19493];return _0x56893d;};import{parsePositionBeforeCompression as _0x3728f0,parsePositionAfterCompression as _0x59b60a}from'../utils';export default class V{constructor(_0x2070a7,_0x2b12d0,_0x41ab7e){this['id']=_0x2070a7,this[_0x5689('0x3')]=_0x2b12d0,this['_protobufDescriptor']=_0x41ab7e;}[_0x5689('0x7')](_0x5a843c,_0x384246){const _0x355029=_0x384246[_0x5689('0x6')]();_0x3728f0(_0x355029),_0x5a843c['buffers'][_0x5689('0x4')](this[_0x5689('0x2')][_0x5689('0x7')](_0x355029)),_0x5a843c[_0x5689('0x1')][_0x5689('0x4')](this['id']);}[_0x5689('0x5')](_0x2a8047,_0x58c700){_0x58c700[_0x5689('0x1')][_0x5689('0x6')]();const _0x1d185c=this[_0x5689('0x2')][_0x5689('0x5')](_0x58c700['buffers']['shift']());_0x59b60a(_0x1d185c),_0x1d185c[_0x5689('0x0')]=this['operationName'],_0x2a8047[_0x5689('0x4')](_0x1d185c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x23da=['description','bool','Position'];(function(_0x43e4d4,_0x23daf6){var _0x45f202=function(_0x73999d){while(--_0x73999d){_0x43e4d4['push'](_0x43e4d4['shift']());}};_0x45f202(++_0x23daf6);}(_0x23da,0x181));var _0x45f2=function(_0x43e4d4,_0x23daf6){_0x43e4d4=_0x43e4d4-0x0;var _0x45f202=_0x23da[_0x43e4d4];return _0x45f202;};import _0x23ca9e from'./operationcompressor';export default class a extends _0x23ca9e{static get[_0x45f2('0x2')](){return{'fields':{'position':{'type':_0x45f2('0x1'),'id':0x1},'oldName':{'type':'string','id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':_0x45f2('0x0'),'id':0x4}}};}}
23
+ var _0x43bc=['description','string','bool'];(function(_0x294a8c,_0x43bc71){var _0x36f39d=function(_0x143509){while(--_0x143509){_0x294a8c['push'](_0x294a8c['shift']());}};_0x36f39d(++_0x43bc71);}(_0x43bc,0x111));var _0x36f3=function(_0x294a8c,_0x43bc71){_0x294a8c=_0x294a8c-0x0;var _0x36f39d=_0x43bc[_0x294a8c];return _0x36f39d;};import _0x57edf4 from'./operationcompressor';export default class a extends _0x57edf4{static get[_0x36f3('0x0')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0x36f3('0x1'),'id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':_0x36f3('0x2'),'id':0x4}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x410b=['fields','root','range'];(function(_0x4f91de,_0x410b56){const _0x544bab=function(_0x4b9bb8){while(--_0x4b9bb8){_0x4f91de['push'](_0x4f91de['shift']());}};_0x544bab(++_0x410b56);}(_0x410b,0x1b2));const _0x544b=function(_0x4f91de,_0x410b56){_0x4f91de=_0x4f91de-0x0;let _0x544bab=_0x410b[_0x4f91de];return _0x544bab;};import _0x1818e0 from'./attributeoperationcompressor';export default class c extends _0x1818e0{static get['description'](){const _0x28c61a=_0x1818e0['description'];return delete _0x28c61a['fields'][_0x544b('0x0')],_0x28c61a[_0x544b('0x1')][_0x544b('0x2')]={'type':'string','id':0x1},_0x28c61a;}}
23
+ const _0x1d22=['root','description','fields','string'];(function(_0x27e3e0,_0x1d22ba){const _0x3b14b2=function(_0x2c05b6){while(--_0x2c05b6){_0x27e3e0['push'](_0x27e3e0['shift']());}};_0x3b14b2(++_0x1d22ba);}(_0x1d22,0x10b));const _0x3b14=function(_0x27e3e0,_0x1d22ba){_0x27e3e0=_0x27e3e0-0x0;let _0x3b14b2=_0x1d22[_0x27e3e0];return _0x3b14b2;};import _0x3cfaa6 from'./attributeoperationcompressor';export default class c extends _0x3cfaa6{static get['description'](){const _0x4777e8=_0x3cfaa6[_0x3b14('0x2')];return delete _0x4777e8[_0x3b14('0x3')]['range'],_0x4777e8['fields'][_0x3b14('0x1')]={'type':_0x3b14('0x0'),'id':0x1},_0x4777e8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5172=['Position','description','uint32'];(function(_0x315740,_0x5172b9){var _0x3015e7=function(_0x45b4b2){while(--_0x45b4b2){_0x315740['push'](_0x315740['shift']());}};_0x3015e7(++_0x5172b9);}(_0x5172,0x133));var _0x3015=function(_0x315740,_0x5172b9){_0x315740=_0x315740-0x0;var _0x3015e7=_0x5172[_0x315740];return _0x3015e7;};import _0x349077 from'./operationcompressor';export default class h extends _0x349077{static get[_0x3015('0x0')](){return{'fields':{'splitPosition':{'type':'Position','id':0x1},'graveyardPosition':{'type':_0x3015('0x2'),'id':0x2},'howMany':{'type':_0x3015('0x1'),'id':0x3},'insertionPosition':{'type':_0x3015('0x2'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
23
+ var _0x5afa=['uint32','description','Position'];(function(_0x5aca36,_0x5afa80){var _0x4f14df=function(_0x5eeca8){while(--_0x5eeca8){_0x5aca36['push'](_0x5aca36['shift']());}};_0x4f14df(++_0x5afa80);}(_0x5afa,0x1e1));var _0x4f14=function(_0x5aca36,_0x5afa80){_0x5aca36=_0x5aca36-0x0;var _0x4f14df=_0x5afa[_0x5aca36];return _0x4f14df;};import _0x5053d8 from'./operationcompressor';export default class h extends _0x5053d8{static get[_0x4f14('0x0')](){return{'fields':{'splitPosition':{'type':_0x4f14('0x1'),'id':0x1},'graveyardPosition':{'type':'Position','id':0x2},'howMany':{'type':_0x4f14('0x2'),'id':0x3},'insertionPosition':{'type':_0x4f14('0x1'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3228=['nested','build','lookupType','registerDescriptor','decompress','_protobufRoot','compress','create','_description','Root','fromJSON','toObject','finish','_protobuf'];(function(_0x4437ce,_0x32287c){const _0x5aa6d9=function(_0x49abae){while(--_0x49abae){_0x4437ce['push'](_0x4437ce['shift']());}};_0x5aa6d9(++_0x32287c);}(_0x3228,0x182));const _0x5aa6=function(_0x4437ce,_0x32287c){_0x4437ce=_0x4437ce-0x0;let _0x5aa6d9=_0x3228[_0x4437ce];return _0x5aa6d9;};import _0x4d9f08 from'protobufjs/light';import{CKEditorError as _0x25ece2}from'ckeditor5/src/utils';import{cloneDeep as _0x3e5d45}from'lodash-es';export default class r{constructor(){this[_0x5aa6('0x0')]={'nested':{}};}[_0x5aa6('0x9')](_0x3d547d,_0x116e8c){this[_0x5aa6('0x0')][_0x5aa6('0x6')][_0x3d547d]=_0x3e5d45(_0x116e8c);}[_0x5aa6('0x7')](){this['_protobufRoot']=_0x4d9f08[_0x5aa6('0x1')][_0x5aa6('0x2')](this[_0x5aa6('0x0')]);}['getDescriptor'](_0x5c46b1){if(!this['_protobufRoot'])throw new _0x25ece2('protobuffactory-cannot-get-descriptor-before-build',this);return new D(this[_0x5aa6('0xb')][_0x5aa6('0x8')](_0x5c46b1));}}class D{constructor(_0x8ca38b){this[_0x5aa6('0x5')]=_0x8ca38b;}[_0x5aa6('0xc')](_0x161474){const _0x30d294=this[_0x5aa6('0x5')]['verify'](_0x161474);if(_0x30d294)throw Error(_0x30d294);return this['_protobuf']['encode'](this[_0x5aa6('0x5')][_0x5aa6('0xd')](_0x161474))[_0x5aa6('0x4')]();}[_0x5aa6('0xa')](_0x3e2275){return this[_0x5aa6('0x5')][_0x5aa6('0x3')](this['_protobuf']['decode'](_0x3e2275),{'oneofs':!0x0});}}
23
+ const _0x2c85=['fromJSON','encode','finish','lookupType','compress','create','nested','_protobufRoot','decompress','protobuffactory-cannot-get-descriptor-before-build','decode','getDescriptor','verify','_protobuf','registerDescriptor','Root','_description'];(function(_0x1ac9e0,_0x2c856a){const _0x4e3f6c=function(_0x2242f5){while(--_0x2242f5){_0x1ac9e0['push'](_0x1ac9e0['shift']());}};_0x4e3f6c(++_0x2c856a);}(_0x2c85,0x6b));const _0x4e3f=function(_0x1ac9e0,_0x2c856a){_0x1ac9e0=_0x1ac9e0-0x0;let _0x4e3f6c=_0x2c85[_0x1ac9e0];return _0x4e3f6c;};import _0x2eeac0 from'protobufjs/light';import{CKEditorError as _0x4ff2e1}from'ckeditor5/src/utils';import{cloneDeep as _0x30c7ff}from'lodash-es';export default class r{constructor(){this[_0x4e3f('0xb')]={'nested':{}};}[_0x4e3f('0x9')](_0x26f4a9,_0x262eb5){this['_description'][_0x4e3f('0x1')][_0x26f4a9]=_0x30c7ff(_0x262eb5);}['build'](){this[_0x4e3f('0x2')]=_0x2eeac0[_0x4e3f('0xa')][_0x4e3f('0xc')](this[_0x4e3f('0xb')]);}[_0x4e3f('0x6')](_0x2a84fd){if(!this[_0x4e3f('0x2')])throw new _0x4ff2e1(_0x4e3f('0x4'),this);return new D(this[_0x4e3f('0x2')][_0x4e3f('0xf')](_0x2a84fd));}}class D{constructor(_0x1b654a){this['_protobuf']=_0x1b654a;}[_0x4e3f('0x10')](_0x3e21d9){const _0x1a9da7=this[_0x4e3f('0x8')][_0x4e3f('0x7')](_0x3e21d9);if(_0x1a9da7)throw Error(_0x1a9da7);return this[_0x4e3f('0x8')][_0x4e3f('0xd')](this[_0x4e3f('0x8')][_0x4e3f('0x0')](_0x3e21d9))[_0x4e3f('0xe')]();}[_0x4e3f('0x3')](_0x6c2c34){return this[_0x4e3f('0x8')]['toObject'](this[_0x4e3f('0x8')][_0x4e3f('0x5')](_0x6c2c34),{'oneofs':!0x0});}}
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c99=['path','rootGraveyard','$graveyard','main','root','rootMain','nodes'];(function(_0x4a7466,_0x4c992d){const _0x362a71=function(_0x1af0cf){while(--_0x1af0cf){_0x4a7466['push'](_0x4a7466['shift']());}};_0x362a71(++_0x4c992d);}(_0x4c99,0x19d));const _0x362a=function(_0x4a7466,_0x4c992d){_0x4a7466=_0x4a7466-0x0;let _0x362a71=_0x4c99[_0x4a7466];return _0x362a71;};import{cloneDeep as _0x3155b2,isEqual as _0x5c5ca2,isObject as _0x2aeebe}from'lodash-es';export function getPositionShiftedBy(_0x162130,_0x3a1104){const _0x21f8d7=_0x3155b2(_0x162130);return _0x21f8d7['path'][_0x21f8d7['path']['length']-0x1]+=_0x3a1104,_0x21f8d7;}export function arePositionsEqual(_0x21d448,_0x25717f){return _0x21d448[_0x362a('0x4')]===_0x25717f[_0x362a('0x4')]&&_0x5c5ca2(_0x21d448[_0x362a('0x0')],_0x25717f[_0x362a('0x0')]);}export function parsePositionBeforeCompression(_0xcb5dcb){y(_0xcb5dcb,_0x548ec8=>(_0x362a('0x3')==_0x548ec8[_0x362a('0x4')]?(_0x548ec8[_0x362a('0x5')]=!0x0,delete _0x548ec8[_0x362a('0x4')]):_0x362a('0x2')==_0x548ec8[_0x362a('0x4')]&&(_0x548ec8[_0x362a('0x1')]=!0x0,delete _0x548ec8['root']),_0x548ec8));}export function parsePositionAfterCompression(_0x5c6ad4){y(_0x5c6ad4,_0x4b720d=>(_0x4b720d[_0x362a('0x5')]?(_0x4b720d['root']=_0x362a('0x3'),delete _0x4b720d[_0x362a('0x5')]):_0x4b720d[_0x362a('0x1')]&&(_0x4b720d['root']=_0x362a('0x2'),delete _0x4b720d[_0x362a('0x1')]),_0x4b720d));}function y(_0x3a7250,_0x46cbef){for(const _0x80fafc in _0x3a7250){const _0x27953d=_0x3a7250[_0x80fafc];_0x362a('0x6')!==_0x80fafc&&_0x2aeebe(_0x27953d)&&(_0x27953d['path']&&(_0x27953d[_0x362a('0x4')]||_0x27953d[_0x362a('0x5')]||_0x27953d[_0x362a('0x1')])?_0x3a7250[_0x80fafc]=_0x46cbef(_0x27953d):y(_0x27953d,_0x46cbef));}return _0x3a7250;}
23
+ const _0x21b0=['path','$graveyard','rootMain','root','length','rootGraveyard','nodes','main'];(function(_0x56e589,_0x21b0bd){const _0x2c349f=function(_0xc4dda5){while(--_0xc4dda5){_0x56e589['push'](_0x56e589['shift']());}};_0x2c349f(++_0x21b0bd);}(_0x21b0,0x1d1));const _0x2c34=function(_0x56e589,_0x21b0bd){_0x56e589=_0x56e589-0x0;let _0x2c349f=_0x21b0[_0x56e589];return _0x2c349f;};import{cloneDeep as _0x33bbfb,isEqual as _0x22abc9,isObject as _0x5d1ab1}from'lodash-es';export function getPositionShiftedBy(_0x5493fd,_0x2302a5){const _0x1796f2=_0x33bbfb(_0x5493fd);return _0x1796f2[_0x2c34('0x7')][_0x1796f2[_0x2c34('0x7')][_0x2c34('0x3')]-0x1]+=_0x2302a5,_0x1796f2;}export function arePositionsEqual(_0x51ddb9,_0x537563){return _0x51ddb9[_0x2c34('0x2')]===_0x537563['root']&&_0x22abc9(_0x51ddb9[_0x2c34('0x7')],_0x537563[_0x2c34('0x7')]);}export function parsePositionBeforeCompression(_0x45665c){y(_0x45665c,_0x3b2e6c=>('main'==_0x3b2e6c[_0x2c34('0x2')]?(_0x3b2e6c[_0x2c34('0x1')]=!0x0,delete _0x3b2e6c[_0x2c34('0x2')]):'$graveyard'==_0x3b2e6c['root']&&(_0x3b2e6c[_0x2c34('0x4')]=!0x0,delete _0x3b2e6c[_0x2c34('0x2')]),_0x3b2e6c));}export function parsePositionAfterCompression(_0x2b9dbd){y(_0x2b9dbd,_0x1ade07=>(_0x1ade07[_0x2c34('0x1')]?(_0x1ade07[_0x2c34('0x2')]=_0x2c34('0x6'),delete _0x1ade07[_0x2c34('0x1')]):_0x1ade07[_0x2c34('0x4')]&&(_0x1ade07['root']=_0x2c34('0x0'),delete _0x1ade07[_0x2c34('0x4')]),_0x1ade07));}function y(_0x5278ac,_0x711457){for(const _0x5801b4 in _0x5278ac){const _0x41c5c2=_0x5278ac[_0x5801b4];_0x2c34('0x5')!==_0x5801b4&&_0x5d1ab1(_0x41c5c2)&&(_0x41c5c2[_0x2c34('0x7')]&&(_0x41c5c2['root']||_0x41c5c2[_0x2c34('0x1')]||_0x41c5c2[_0x2c34('0x4')])?_0x5278ac[_0x5801b4]=_0x711457(_0x41c5c2):y(_0x41c5c2,_0x711457));}return _0x5278ac;}