@ckeditor/ckeditor5-operations-compressor 31.1.0 → 34.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) Frederico Knabben. 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.
@@ -24,4 +24,4 @@ The following libraries are included in CKEditor 5 Operations Compressor under t
24
24
  Trademarks
25
25
  ----------
26
26
 
27
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
27
+ **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CKEditor 5 operations compressor
2
2
 
3
+ [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-operations-compressor.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-operations-compressor)
4
+ ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-operations-compressor)
5
+
3
6
  CKEditor 5 operations compressor is a low-level API that compresses and decompresses operations to a normalized binary format in order to decrease network usage during real-time collaborative editing. It is required by the [CKEditor 5 real-time collaborative editing](https://ckeditor.com/collaboration/real-time/) feature to enable collaboration in [CKEditor 5](https://ckeditor.com/ckeditor-5/).
4
7
 
5
8
  ## Documentation
@@ -17,11 +20,11 @@ As a licensed CKEditor 5 Collaboration features user you can report bugs and req
17
20
  ## License
18
21
 
19
22
  **CKEditor 5 operations compressor**<br>
20
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
23
+ Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
21
24
 
22
25
  CKEditor 5 operations compressor is licensed under a commercial license and is protected by copyright law.
23
26
  For more details about available licensing options please contact us at sales@cksource.com.
24
27
 
25
28
  ### Trademarks
26
29
 
27
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
30
+ **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-operations-compressor",
3
- "version": "31.1.0",
3
+ "version": "34.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": "^31.1.0",
30
+ "ckeditor5": "^34.0.0",
31
31
  "lodash-es": "^4.17.11",
32
32
  "protobufjs": "^6.8.8"
33
33
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x106f=['length','_combineNext','buffers','_compressSingleOperation','decompress','types','_compareOperations','compress','push','shift','_context','_splitCurrent'];(function(_0x81a227,_0x106f3a){const _0x5aaaad=function(_0x4d56ef){while(--_0x4d56ef){_0x81a227['push'](_0x81a227['shift']());}};_0x5aaaad(++_0x106f3a);}(_0x106f,0x86));const _0x5aaa=function(_0x81a227,_0x106f3a){_0x81a227=_0x81a227-0x0;let _0x5aaaad=_0x106f[_0x81a227];return _0x5aaaad;};import{cloneDeep as _0x3ab985}from'lodash-es';export default class j{constructor(_0x28bcc2,_0x664495){this['id']=_0x28bcc2,this[_0x5aaa('0x8')]=_0x664495;}[_0x5aaa('0x5')](_0x51ac4d,_0x1daade){let _0x3ccaf2;for(;_0x1daade[_0x5aaa('0xa')]>0x1&&this[_0x5aaa('0x4')](_0x1daade[0x0],_0x1daade[0x1]);)_0x3ccaf2?(_0x3ccaf2=this[_0x5aaa('0xb')](_0x1daade[_0x5aaa('0x7')](),_0x3ccaf2),_0x51ac4d[_0x5aaa('0x3')][_0x5aaa('0x6')](0x0)):(_0x3ccaf2=_0x3ab985(_0x1daade[_0x5aaa('0x7')]()),_0x51ac4d[_0x5aaa('0x3')]['push'](this['id']));return!!_0x3ccaf2&&(_0x3ccaf2=this['_combineNext'](_0x1daade['shift'](),_0x3ccaf2),_0x51ac4d[_0x5aaa('0x3')][_0x5aaa('0x6')](0x0),_0x51ac4d[_0x5aaa('0x0')][_0x5aaa('0x6')](this[_0x5aaa('0x1')](_0x3ccaf2)),!0x0);}[_0x5aaa('0x2')](_0xa8982,_0x544762){const _0x406cdd=this['_decompressSingleOperation'](_0x544762);for(;0x0==_0x544762[_0x5aaa('0x3')][0x0];)_0x544762[_0x5aaa('0x3')][_0x5aaa('0x7')](),_0xa8982['push'](this[_0x5aaa('0x9')](_0x406cdd));_0xa8982[_0x5aaa('0x6')](_0x406cdd);}}
23
+ const _0x2b21=['length','_compressSingleOperation','_splitCurrent','_compareOperations','types','_combineNext','push','decompress','_context','_decompressSingleOperation','buffers','shift','compress'];(function(_0x1a0fa7,_0x2b2101){const _0x21490b=function(_0x4f970c){while(--_0x4f970c){_0x1a0fa7['push'](_0x1a0fa7['shift']());}};_0x21490b(++_0x2b2101);}(_0x2b21,0xd1));const _0x2149=function(_0x1a0fa7,_0x2b2101){_0x1a0fa7=_0x1a0fa7-0x0;let _0x21490b=_0x2b21[_0x1a0fa7];return _0x21490b;};import{cloneDeep as _0x512f7a}from'lodash-es';export default class j{constructor(_0x64174,_0x1bb514){this['id']=_0x64174,this[_0x2149('0x7')]=_0x1bb514;}[_0x2149('0xb')](_0x29af86,_0x43f760){let _0x1103f6;for(;_0x43f760[_0x2149('0xc')]>0x1&&this[_0x2149('0x2')](_0x43f760[0x0],_0x43f760[0x1]);)_0x1103f6?(_0x1103f6=this[_0x2149('0x4')](_0x43f760[_0x2149('0xa')](),_0x1103f6),_0x29af86['types'][_0x2149('0x5')](0x0)):(_0x1103f6=_0x512f7a(_0x43f760[_0x2149('0xa')]()),_0x29af86[_0x2149('0x3')][_0x2149('0x5')](this['id']));return!!_0x1103f6&&(_0x1103f6=this[_0x2149('0x4')](_0x43f760[_0x2149('0xa')](),_0x1103f6),_0x29af86[_0x2149('0x3')][_0x2149('0x5')](0x0),_0x29af86[_0x2149('0x9')][_0x2149('0x5')](this[_0x2149('0x0')](_0x1103f6)),!0x0);}[_0x2149('0x6')](_0x3b00aa,_0x14a024){const _0x23c52f=this[_0x2149('0x8')](_0x14a024);for(;0x0==_0x14a024['types'][0x0];)_0x14a024[_0x2149('0x3')][_0x2149('0xa')](),_0x3b00aa['push'](this[_0x2149('0x1')](_0x23c52f));_0x3b00aa['push'](_0x23c52f);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5113=['_compareOperations','howMany','wasUndone','$graveyard','sourcePosition','_getCompressorByName','_splitCurrent','_compressSingleOperation','_context','_combineNext','MoveOperation','root','__className','targetPosition','buffers'];(function(_0x48b9e2,_0x5113d0){const _0x59e4f8=function(_0x5d812c){while(--_0x5d812c){_0x48b9e2['push'](_0x48b9e2['shift']());}};_0x59e4f8(++_0x5113d0);}(_0x5113,0x195));const _0x59e4=function(_0x48b9e2,_0x5113d0){_0x48b9e2=_0x48b9e2-0x0;let _0x59e4f8=_0x5113[_0x48b9e2];return _0x59e4f8;};import _0x5f1739 from'./actioncompressor';import{arePositionsEqual as _0x2d8a43,getPositionShiftedBy as _0x281c62}from'../utils';import{cloneDeep as _0x415066}from'lodash-es';export default class u extends _0x5f1739{[_0x59e4('0x9')](_0x2fb32f,_0x52f7fa){return _0x52f7fa[_0x59e4('0x1')]++,_0x52f7fa[_0x59e4('0x4')]=_0x415066(_0x2fb32f['sourcePosition']),_0x52f7fa;}[_0x59e4('0x6')](_0x3b2882){const _0x10b734=_0x415066(_0x3b2882);return _0x3b2882['howMany']--,_0x10b734['howMany']=0x1,_0x10b734[_0x59e4('0x4')]=_0x281c62(_0x10b734['sourcePosition'],_0x3b2882['howMany']),_0x10b734;}[_0x59e4('0x0')](_0x12536b,_0x4894cb){return!(!S(_0x12536b)||!S(_0x4894cb))&&(_0x2d8a43(_0x281c62(_0x12536b[_0x59e4('0x4')],-0x1),_0x4894cb[_0x59e4('0x4')])&&_0x2d8a43(_0x12536b['targetPosition'],_0x4894cb[_0x59e4('0xd')]));}[_0x59e4('0x7')](_0x461da1){const _0x5768f6={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x59e4('0x5')](_0x59e4('0xa'))['compress'](_0x5768f6,[_0x461da1]),_0x5768f6[_0x59e4('0xe')][0x0];}['_decompressSingleOperation'](_0x367078){const _0xeadab=[];return this[_0x59e4('0x8')][_0x59e4('0x5')](_0x59e4('0xa'))['decompress'](_0xeadab,_0x367078),_0xeadab[0x0];}}function S(_0x3dff5b){return _0x59e4('0xa')==_0x3dff5b[_0x59e4('0xc')]&&_0x59e4('0x3')==_0x3dff5b[_0x59e4('0xd')][_0x59e4('0xb')]&&0x1==_0x3dff5b[_0x59e4('0x1')]&&!_0x3dff5b[_0x59e4('0x2')];}
23
+ const _0x385f=['_compareOperations','compress','$graveyard','targetPosition','_getCompressorByName','_compressSingleOperation','wasUndone','__className','MoveOperation','sourcePosition','decompress','buffers','howMany','root'];(function(_0x3d4cb7,_0x385f62){const _0x413691=function(_0x209417){while(--_0x209417){_0x3d4cb7['push'](_0x3d4cb7['shift']());}};_0x413691(++_0x385f62);}(_0x385f,0x165));const _0x4136=function(_0x3d4cb7,_0x385f62){_0x3d4cb7=_0x3d4cb7-0x0;let _0x413691=_0x385f[_0x3d4cb7];return _0x413691;};import _0xa7ebaa from'./actioncompressor';import{arePositionsEqual as _0x25b23c,getPositionShiftedBy as _0x1c3e87}from'../utils';import{cloneDeep as _0x4fb3b4}from'lodash-es';export default class u extends _0xa7ebaa{['_combineNext'](_0x24c47e,_0x4a47fb){return _0x4a47fb[_0x4136('0x5')]++,_0x4a47fb[_0x4136('0x2')]=_0x4fb3b4(_0x24c47e[_0x4136('0x2')]),_0x4a47fb;}['_splitCurrent'](_0x228e7d){const _0x413377=_0x4fb3b4(_0x228e7d);return _0x228e7d[_0x4136('0x5')]--,_0x413377['howMany']=0x1,_0x413377['sourcePosition']=_0x1c3e87(_0x413377[_0x4136('0x2')],_0x228e7d[_0x4136('0x5')]),_0x413377;}[_0x4136('0x7')](_0x1a527b,_0x356c27){return!(!S(_0x1a527b)||!S(_0x356c27))&&(_0x25b23c(_0x1c3e87(_0x1a527b[_0x4136('0x2')],-0x1),_0x356c27['sourcePosition'])&&_0x25b23c(_0x1a527b[_0x4136('0xa')],_0x356c27[_0x4136('0xa')]));}[_0x4136('0xc')](_0x1ec823){const _0x592ff6={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x4136('0xb')](_0x4136('0x1'))[_0x4136('0x8')](_0x592ff6,[_0x1ec823]),_0x592ff6[_0x4136('0x4')][0x0];}['_decompressSingleOperation'](_0x4aeadd){const _0x45ed46=[];return this['_context'][_0x4136('0xb')](_0x4136('0x1'))[_0x4136('0x3')](_0x45ed46,_0x4aeadd),_0x45ed46[0x0];}}function S(_0x4ab6ba){return'MoveOperation'==_0x4ab6ba[_0x4136('0x0')]&&_0x4136('0x9')==_0x4ab6ba[_0x4136('0xa')][_0x4136('0x6')]&&0x1==_0x4ab6ba[_0x4136('0x5')]&&!_0x4ab6ba[_0x4136('0xd')];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x236a=['howMany','__className','_getCompressorByName','_compareOperations','_context','targetPosition','compress','$graveyard','_combineNext','MoveOperation','wasUndone','_compressSingleOperation','sourcePosition','_splitCurrent','buffers'];(function(_0x49f9da,_0x236a6a){const _0x76236e=function(_0x2f6e5d){while(--_0x2f6e5d){_0x49f9da['push'](_0x49f9da['shift']());}};_0x76236e(++_0x236a6a);}(_0x236a,0x19b));const _0x7623=function(_0x49f9da,_0x236a6a){_0x49f9da=_0x49f9da-0x0;let _0x76236e=_0x236a[_0x49f9da];return _0x76236e;};import _0xb9db6b from'./actioncompressor';import{arePositionsEqual as _0x4ca220}from'../utils';import{cloneDeep as _0x3c66f5}from'lodash-es';export default class l extends _0xb9db6b{[_0x7623('0x2')](_0x30bd4e,_0x35db83){return _0x35db83['howMany']++,_0x35db83;}[_0x7623('0x7')](_0x32e3ea){const _0x3ae785=_0x3c66f5(_0x32e3ea);return _0x3ae785[_0x7623('0x9')]=0x1,_0x32e3ea['howMany']--,_0x3ae785;}[_0x7623('0xc')](_0x37fe69,_0x7099b3){return!(!S(_0x37fe69)||!S(_0x7099b3))&&(_0x4ca220(_0x37fe69[_0x7623('0x6')],_0x7099b3[_0x7623('0x6')])&&_0x4ca220(_0x37fe69[_0x7623('0xe')],_0x7099b3['targetPosition']));}[_0x7623('0x5')](_0x389502){const _0x568794={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x7623('0xd')][_0x7623('0xb')]('MoveOperation')[_0x7623('0x0')](_0x568794,[_0x389502]),_0x568794[_0x7623('0x8')][0x0];}['_decompressSingleOperation'](_0xa481dd){const _0x11bf3a=[];return this['_context']['_getCompressorByName'](_0x7623('0x3'))['decompress'](_0x11bf3a,_0xa481dd),_0x11bf3a[0x0];}}function S(_0x1a0732){return _0x7623('0x3')==_0x1a0732[_0x7623('0xa')]&&_0x7623('0x1')==_0x1a0732[_0x7623('0xe')]['root']&&0x1==_0x1a0732['howMany']&&!_0x1a0732[_0x7623('0x4')];}
23
+ const _0x2f9a=['targetPosition','_combineNext','howMany','_getCompressorByName','_context','root','wasUndone','_compressSingleOperation','sourcePosition','_decompressSingleOperation','__className','compress','decompress','MoveOperation'];(function(_0x3f9156,_0x2f9a8e){const _0x5eadcd=function(_0xd9a7e2){while(--_0xd9a7e2){_0x3f9156['push'](_0x3f9156['shift']());}};_0x5eadcd(++_0x2f9a8e);}(_0x2f9a,0x16f));const _0x5ead=function(_0x3f9156,_0x2f9a8e){_0x3f9156=_0x3f9156-0x0;let _0x5eadcd=_0x2f9a[_0x3f9156];return _0x5eadcd;};import _0x5167fb from'./actioncompressor';import{arePositionsEqual as _0x3243d9}from'../utils';import{cloneDeep as _0x568a94}from'lodash-es';export default class l extends _0x5167fb{[_0x5ead('0xc')](_0x57766e,_0x380afc){return _0x380afc[_0x5ead('0xd')]++,_0x380afc;}['_splitCurrent'](_0x4f18c0){const _0x422398=_0x568a94(_0x4f18c0);return _0x422398[_0x5ead('0xd')]=0x1,_0x4f18c0['howMany']--,_0x422398;}['_compareOperations'](_0x509df5,_0x5a67e4){return!(!S(_0x509df5)||!S(_0x5a67e4))&&(_0x3243d9(_0x509df5[_0x5ead('0x5')],_0x5a67e4[_0x5ead('0x5')])&&_0x3243d9(_0x509df5[_0x5ead('0xb')],_0x5a67e4[_0x5ead('0xb')]));}[_0x5ead('0x4')](_0x2a5ea5){const _0x2b03c6={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5ead('0x1')]['_getCompressorByName'](_0x5ead('0xa'))[_0x5ead('0x8')](_0x2b03c6,[_0x2a5ea5]),_0x2b03c6['buffers'][0x0];}[_0x5ead('0x6')](_0x4884fe){const _0x1c5d9b=[];return this[_0x5ead('0x1')][_0x5ead('0x0')]('MoveOperation')[_0x5ead('0x9')](_0x1c5d9b,_0x4884fe),_0x1c5d9b[0x0];}}function S(_0x33186a){return _0x5ead('0xa')==_0x33186a[_0x5ead('0x7')]&&'$graveyard'==_0x33186a[_0x5ead('0xb')][_0x5ead('0x2')]&&0x1==_0x33186a[_0x5ead('0xd')]&&!_0x33186a[_0x5ead('0x3')];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23e1=['position','substr','nodes','buffers','_compressSingleOperation','every','from','_getCompressorByName','keys','data','_context','_combineNext','compress','_splitCurrent','wasUndone','attributes','__className','InsertOperation','length','decompress'];(function(_0x5ad352,_0x23e1b1){const _0x176457=function(_0x232e89){while(--_0x232e89){_0x5ad352['push'](_0x5ad352['shift']());}};_0x176457(++_0x23e1b1);}(_0x23e1,0x7b));const _0x1764=function(_0x5ad352,_0x23e1b1){_0x5ad352=_0x5ad352-0x0;let _0x176457=_0x23e1[_0x5ad352];return _0x176457;};import _0x3913d9 from'./actioncompressor';import{arePositionsEqual as _0x3f894b,getPositionShiftedBy as _0x26f94b}from'../utils';import{cloneDeep as _0x43cde4}from'lodash-es';export default class g extends _0x3913d9{[_0x1764('0x8')](_0x451d7b,_0x2d61de){return _0x2d61de[_0x1764('0x13')][0x0][_0x1764('0x6')]+=_0x451d7b[_0x1764('0x13')][0x0][_0x1764('0x6')],_0x2d61de;}[_0x1764('0xa')](_0x5e7e7e){const _0x5ac274=_0x43cde4(_0x5e7e7e),_0xa262ad=_0x5ac274['nodes'][0x0],_0x4a2411=_0x5e7e7e[_0x1764('0x13')][0x0],_0x3c7d9e=Array[_0x1764('0x3')](_0x4a2411[_0x1764('0x6')])[0x0],_0x1cec11=_0x3c7d9e[_0x1764('0xf')];return _0xa262ad[_0x1764('0x6')]=_0x3c7d9e,_0x4a2411['data']=_0x4a2411[_0x1764('0x6')][_0x1764('0x12')](_0x1cec11),_0x5e7e7e[_0x1764('0x11')]=_0x26f94b(_0x5e7e7e[_0x1764('0x11')],_0x1cec11),_0x5ac274;}['_compareOperations'](_0x4b4f9b,_0x3fe61c){if(S(_0x4b4f9b)&&S(_0x3fe61c)){const _0x172f1b=_0x4b4f9b['nodes'][0x0][_0x1764('0x6')][_0x1764('0xf')],_0x2600d4=_0x3f894b(_0x26f94b(_0x4b4f9b['position'],_0x172f1b),_0x3fe61c['position']),_0x57e4fd=_0x4b4f9b[_0x1764('0x13')][0x0],_0x489dab=_0x3fe61c[_0x1764('0x13')][0x0];return _0x2600d4&&function(_0x5c3f5b,_0x579fd2){const _0x178601=Object[_0x1764('0x5')](_0x5c3f5b[_0x1764('0xc')]||{}),_0x543a72=Object[_0x1764('0x5')](_0x579fd2['attributes']||{});if(_0x178601['length']!==_0x543a72['length'])return!0x1;return _0x178601[_0x1764('0x2')](_0xb83d4b=>_0x579fd2[_0x1764('0xc')][_0xb83d4b]&&_0x579fd2[_0x1764('0xc')][_0xb83d4b]===_0x5c3f5b[_0x1764('0xc')][_0xb83d4b]);}(_0x57e4fd,_0x489dab);}return!0x1;}[_0x1764('0x1')](_0x38f91a){const _0x1f640d={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1764('0x7')][_0x1764('0x4')](_0x1764('0xe'))[_0x1764('0x9')](_0x1f640d,[_0x38f91a]),_0x1f640d[_0x1764('0x0')][0x0];}['_decompressSingleOperation'](_0x2495aa){const _0x25d615=[];return this[_0x1764('0x7')]['_getCompressorByName'](_0x1764('0xe'))[_0x1764('0x10')](_0x25d615,_0x2495aa),_0x25d615[0x0];}}function S(_0x9c4f9){return _0x1764('0xe')==_0x9c4f9[_0x1764('0xd')]&&0x1==_0x9c4f9[_0x1764('0x13')][_0x1764('0xf')]&&_0x9c4f9['nodes'][0x0][_0x1764('0x6')]&&!_0x9c4f9[_0x1764('0xb')]&&0x1==Array['from'](_0x9c4f9[_0x1764('0x13')][0x0][_0x1764('0x6')])[_0x1764('0xf')];}
23
+ const _0xdaed=['data','buffers','substr','length','InsertOperation','_combineNext','_getCompressorByName','wasUndone','position','keys','decompress','_context','_decompressSingleOperation','nodes','every','attributes','from','compress'];(function(_0x5c7b7d,_0xdaed24){const _0x2304dd=function(_0x3801fd){while(--_0x3801fd){_0x5c7b7d['push'](_0x5c7b7d['shift']());}};_0x2304dd(++_0xdaed24);}(_0xdaed,0x1e8));const _0x2304=function(_0x5c7b7d,_0xdaed24){_0x5c7b7d=_0x5c7b7d-0x0;let _0x2304dd=_0xdaed[_0x5c7b7d];return _0x2304dd;};import _0x8bb865 from'./actioncompressor';import{arePositionsEqual as _0x451d43,getPositionShiftedBy as _0x5c0b93}from'../utils';import{cloneDeep as _0x4d3d7d}from'lodash-es';export default class g extends _0x8bb865{[_0x2304('0x3')](_0x1ff67a,_0xc5f0e8){return _0xc5f0e8[_0x2304('0xb')][0x0][_0x2304('0x10')]+=_0x1ff67a['nodes'][0x0]['data'],_0xc5f0e8;}['_splitCurrent'](_0xdda43){const _0x538c1a=_0x4d3d7d(_0xdda43),_0x3d0ddb=_0x538c1a['nodes'][0x0],_0x547e44=_0xdda43[_0x2304('0xb')][0x0],_0x38acdd=Array[_0x2304('0xe')](_0x547e44[_0x2304('0x10')])[0x0],_0x1c96cc=_0x38acdd['length'];return _0x3d0ddb[_0x2304('0x10')]=_0x38acdd,_0x547e44['data']=_0x547e44[_0x2304('0x10')][_0x2304('0x0')](_0x1c96cc),_0xdda43[_0x2304('0x6')]=_0x5c0b93(_0xdda43[_0x2304('0x6')],_0x1c96cc),_0x538c1a;}['_compareOperations'](_0x180928,_0xd8db6f){if(S(_0x180928)&&S(_0xd8db6f)){const _0x50eb11=_0x180928['nodes'][0x0]['data'][_0x2304('0x1')],_0xa7995=_0x451d43(_0x5c0b93(_0x180928['position'],_0x50eb11),_0xd8db6f[_0x2304('0x6')]),_0x4799e3=_0x180928[_0x2304('0xb')][0x0],_0x3c7841=_0xd8db6f[_0x2304('0xb')][0x0];return _0xa7995&&function(_0xf45a8b,_0x52d47f){const _0x10cb45=Object['keys'](_0xf45a8b[_0x2304('0xd')]||{}),_0x2db534=Object[_0x2304('0x7')](_0x52d47f['attributes']||{});if(_0x10cb45[_0x2304('0x1')]!==_0x2db534['length'])return!0x1;return _0x10cb45[_0x2304('0xc')](_0x146517=>_0x52d47f[_0x2304('0xd')][_0x146517]&&_0x52d47f['attributes'][_0x146517]===_0xf45a8b[_0x2304('0xd')][_0x146517]);}(_0x4799e3,_0x3c7841);}return!0x1;}['_compressSingleOperation'](_0x2d58c6){const _0x1eca89={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2304('0x9')][_0x2304('0x4')](_0x2304('0x2'))[_0x2304('0xf')](_0x1eca89,[_0x2d58c6]),_0x1eca89[_0x2304('0x11')][0x0];}[_0x2304('0xa')](_0x403cdc){const _0x3de2c7=[];return this[_0x2304('0x9')][_0x2304('0x4')](_0x2304('0x2'))[_0x2304('0x8')](_0x3de2c7,_0x403cdc),_0x3de2c7[0x0];}}function S(_0x5a8604){return _0x2304('0x2')==_0x5a8604['__className']&&0x1==_0x5a8604[_0x2304('0xb')]['length']&&_0x5a8604[_0x2304('0xb')][0x0][_0x2304('0x10')]&&!_0x5a8604[_0x2304('0x5')]&&0x1==Array['from'](_0x5a8604[_0x2304('0xb')][0x0]['data'])[_0x2304('0x1')];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a73=['types','_context','decompress','MarkerOperation','split','end','_getCompressorByName','push','user:position:','__className','toNone','stickiness','user:','_decompressSingleOperation','shift','compress','name','newRange','start','buffers','_compressSingleOperation'];(function(_0x11ca1b,_0x5a7318){const _0x31e19b=function(_0x265255){while(--_0x265255){_0x11ca1b['push'](_0x11ca1b['shift']());}};_0x31e19b(++_0x5a7318);}(_0x5a73,0xae));const _0x31e1=function(_0x11ca1b,_0x5a7318){_0x11ca1b=_0x11ca1b-0x0;let _0x31e19b=_0x5a73[_0x11ca1b];return _0x31e19b;};import _0x5f2981 from'./actioncompressor';import{arePositionsEqual as _0x2dfcaf}from'../utils';import{cloneDeep as _0x47f3b4}from'lodash-es';export default class M extends _0x5f2981{['compress'](_0x3c7716,_0x1988a7){if(!function(_0x105903,_0x332a8a){if(!_0x105903||!_0x332a8a)return!0x1;if(_0x31e1('0x12')!=_0x105903['__className']||'MarkerOperation'!=_0x332a8a[_0x31e1('0x3')])return!0x1;if(_0x105903[_0x31e1('0xa')]['startsWith'](_0x31e1('0x6'))&&_0x332a8a[_0x31e1('0xa')]['startsWith'](_0x31e1('0x6'))&&_0x105903['name']!=_0x332a8a[_0x31e1('0xa')])return!0x0;return!0x1;}(_0x1988a7[0x0],_0x1988a7[0x1]))return!0x1;const _0x47acae=_0x1988a7[_0x31e1('0x8')]();return _0x47acae['oldRange']=null,_0x47acae[_0x31e1('0xb')]&&_0x2dfcaf(_0x47acae[_0x31e1('0xb')][_0x31e1('0xc')],_0x47acae[_0x31e1('0xb')][_0x31e1('0x14')])&&(_0x47acae[_0x31e1('0xb')][_0x31e1('0x14')]=null),_0x1988a7['shift'](),_0x3c7716[_0x31e1('0xf')][_0x31e1('0x1')](this['id']),_0x3c7716[_0x31e1('0xf')][_0x31e1('0x1')](0x0),_0x3c7716[_0x31e1('0xd')][_0x31e1('0x1')](this[_0x31e1('0xe')](_0x47acae)),!0x0;}['decompress'](_0x3bf463,_0x344dc8){const _0x4b42d9=this[_0x31e1('0x7')](_0x344dc8);_0x4b42d9[_0x31e1('0xb')]&&!_0x4b42d9['newRange'][_0x31e1('0x14')]&&(_0x4b42d9[_0x31e1('0xb')][_0x31e1('0x14')]=_0x47f3b4(_0x4b42d9[_0x31e1('0xb')][_0x31e1('0xc')]));const _0x282083=_0x47f3b4(_0x4b42d9);_0x282083[_0x31e1('0xb')]&&(_0x282083[_0x31e1('0xb')]['start'][_0x31e1('0x5')]=_0x31e1('0x4'),_0x282083[_0x31e1('0xb')]['end']=_0x47f3b4(_0x282083[_0x31e1('0xb')][_0x31e1('0xc')])),_0x282083['name']=_0x31e1('0x2')+_0x282083[_0x31e1('0xa')][_0x31e1('0x13')](':')[0x2],_0x344dc8[_0x31e1('0xf')][_0x31e1('0x8')](),_0x3bf463[_0x31e1('0x1')](_0x4b42d9),_0x3bf463[_0x31e1('0x1')](_0x282083);}[_0x31e1('0xe')](_0x28f9b6){const _0x12e8a5={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x31e1('0x10')][_0x31e1('0x0')](_0x31e1('0x12'))[_0x31e1('0x9')](_0x12e8a5,[_0x28f9b6]),_0x12e8a5['buffers'][0x0];}[_0x31e1('0x7')](_0x8990f4){const _0x38458c=[];return this[_0x31e1('0x10')][_0x31e1('0x0')](_0x31e1('0x12'))[_0x31e1('0x11')](_0x38458c,_0x8990f4),_0x38458c[0x0];}}
23
+ const _0x5922=['_decompressSingleOperation','user:','compress','start','startsWith','name','_context','newRange','split','end','user:position:','push','types','oldRange','_compressSingleOperation','MarkerOperation','__className','shift','buffers','toNone','_getCompressorByName'];(function(_0x5dc594,_0x5922e7){const _0x484e88=function(_0xbe7d9f){while(--_0xbe7d9f){_0x5dc594['push'](_0x5dc594['shift']());}};_0x484e88(++_0x5922e7);}(_0x5922,0x1ee));const _0x484e=function(_0x5dc594,_0x5922e7){_0x5dc594=_0x5dc594-0x0;let _0x484e88=_0x5922[_0x5dc594];return _0x484e88;};import _0x98bc47 from'./actioncompressor';import{arePositionsEqual as _0x4905fe}from'../utils';import{cloneDeep as _0x21729b}from'lodash-es';export default class M extends _0x98bc47{[_0x484e('0xc')](_0x45a9c4,_0x102b5f){if(!function(_0x597ba1,_0x5f28cf){if(!_0x597ba1||!_0x5f28cf)return!0x1;if(_0x484e('0x4')!=_0x597ba1[_0x484e('0x5')]||'MarkerOperation'!=_0x5f28cf[_0x484e('0x5')])return!0x1;if(_0x597ba1['name'][_0x484e('0xe')](_0x484e('0xb'))&&_0x5f28cf[_0x484e('0xf')][_0x484e('0xe')](_0x484e('0xb'))&&_0x597ba1[_0x484e('0xf')]!=_0x5f28cf[_0x484e('0xf')])return!0x0;return!0x1;}(_0x102b5f[0x0],_0x102b5f[0x1]))return!0x1;const _0x21d93e=_0x102b5f[_0x484e('0x6')]();return _0x21d93e[_0x484e('0x2')]=null,_0x21d93e[_0x484e('0x11')]&&_0x4905fe(_0x21d93e[_0x484e('0x11')][_0x484e('0xd')],_0x21d93e[_0x484e('0x11')][_0x484e('0x13')])&&(_0x21d93e[_0x484e('0x11')][_0x484e('0x13')]=null),_0x102b5f[_0x484e('0x6')](),_0x45a9c4[_0x484e('0x1')][_0x484e('0x0')](this['id']),_0x45a9c4['types']['push'](0x0),_0x45a9c4[_0x484e('0x7')][_0x484e('0x0')](this[_0x484e('0x3')](_0x21d93e)),!0x0;}['decompress'](_0x3499a8,_0x5d89ec){const _0x38fe1f=this[_0x484e('0xa')](_0x5d89ec);_0x38fe1f['newRange']&&!_0x38fe1f[_0x484e('0x11')][_0x484e('0x13')]&&(_0x38fe1f[_0x484e('0x11')][_0x484e('0x13')]=_0x21729b(_0x38fe1f['newRange']['start']));const _0x49717f=_0x21729b(_0x38fe1f);_0x49717f['newRange']&&(_0x49717f[_0x484e('0x11')][_0x484e('0xd')]['stickiness']=_0x484e('0x8'),_0x49717f[_0x484e('0x11')]['end']=_0x21729b(_0x49717f[_0x484e('0x11')][_0x484e('0xd')])),_0x49717f[_0x484e('0xf')]=_0x484e('0x14')+_0x49717f['name'][_0x484e('0x12')](':')[0x2],_0x5d89ec['types']['shift'](),_0x3499a8['push'](_0x38fe1f),_0x3499a8[_0x484e('0x0')](_0x49717f);}[_0x484e('0x3')](_0x5ccd0a){const _0x58b569={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x484e('0x9')](_0x484e('0x4'))['compress'](_0x58b569,[_0x5ccd0a]),_0x58b569[_0x484e('0x7')][0x0];}[_0x484e('0xa')](_0x4e7a63){const _0xa5e60=[];return this[_0x484e('0x10')]['_getCompressorByName']('MarkerOperation')['decompress'](_0xa5e60,_0x4e7a63),_0xa5e60[0x0];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5d41=['repeated','Element','bool','Position','uint32','string'];(function(_0x1121b8,_0x5d41e2){var _0x29bf3a=function(_0x152b15){while(--_0x152b15){_0x1121b8['push'](_0x1121b8['shift']());}};_0x29bf3a(++_0x5d41e2);}(_0x5d41,0xac));var _0x29bf=function(_0x1121b8,_0x5d41e2){_0x1121b8=_0x1121b8-0x0;var _0x29bf3a=_0x5d41[_0x1121b8];return _0x29bf3a;};export default{'Position':{'fields':{'root':{'type':'string','id':0x1},'rootMain':{'type':_0x29bf('0x4'),'id':0x2},'rootGraveyard':{'type':_0x29bf('0x4'),'id':0x3},'path':{'rule':_0x29bf('0x2'),'type':_0x29bf('0x0'),'id':0x4},'stickiness':{'type':_0x29bf('0x1'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x29bf('0x5'),'id':0x1},'end':{'type':'Position','id':0x2}}},'Element':{'fields':{'name':{'type':_0x29bf('0x1'),'id':0x1},'children':{'rule':_0x29bf('0x2'),'type':_0x29bf('0x3'),'id':0x2},'data':{'type':'string','id':0x3},'attributesBoolean':{'keyType':_0x29bf('0x1'),'type':_0x29bf('0x4'),'id':0x4},'attributesJson':{'type':'string','id':0x5}}}};
23
+ var _0x5ec5=['bool','Element','Position','repeated','string'];(function(_0x968d61,_0x5ec598){var _0xc93873=function(_0x9c032d){while(--_0x9c032d){_0x968d61['push'](_0x968d61['shift']());}};_0xc93873(++_0x5ec598);}(_0x5ec5,0x8b));var _0xc938=function(_0x968d61,_0x5ec598){_0x968d61=_0x968d61-0x0;var _0xc93873=_0x5ec5[_0x968d61];return _0xc93873;};export default{'Position':{'fields':{'root':{'type':_0xc938('0x0'),'id':0x1},'rootMain':{'type':'bool','id':0x2},'rootGraveyard':{'type':_0xc938('0x1'),'id':0x3},'path':{'rule':_0xc938('0x4'),'type':'uint32','id':0x4},'stickiness':{'type':_0xc938('0x0'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0xc938('0x3'),'id':0x1},'end':{'type':_0xc938('0x3'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0xc938('0x0'),'id':0x1},'children':{'rule':_0xc938('0x4'),'type':_0xc938('0x2'),'id':0x2},'data':{'type':_0xc938('0x0'),'id':0x3},'attributesBoolean':{'keyType':'string','type':_0xc938('0x1'),'id':0x4},'attributesJson':{'type':_0xc938('0x0'),'id':0x5}}}};
package/src/compressor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3295=['registerDescriptor','AttributeOperation','MergeOperation','DeletingAction','SuggestionMarkerOperation','_getCompressorByName','Position','types','forEach','__className','_compressorById','_registerActionCompressor','comment','Element','getDescriptor','decompress','MoveOperation','NoOperation','suggestion','RootAttributeOperation','baseVersion','build','compress','set','description','RenameOperation','MarkerOperation','UserSelectionAction','get','_registerCompressor','Range','InsertOperation','CommentMarkerOperation','_protobufFactory','length','_compressorByName','TypingAction','no-operations-provided','ForwardDeletingAction','_registerOperationCompressor'];(function(_0x52adbf,_0x3295d4){const _0x3d2324=function(_0x44d9dc){while(--_0x44d9dc){_0x52adbf['push'](_0x52adbf['shift']());}};_0x3d2324(++_0x3295d4);}(_0x3295,0x1bf));const _0x3d23=function(_0x52adbf,_0x3295d4){_0x52adbf=_0x52adbf-0x0;let _0x3d2324=_0x3295[_0x52adbf];return _0x3d2324;};import{CKEditorError as _0x560b0c}from'ckeditor5/src/utils';import _0x76b753 from'./protobuffactory';import _0x596633 from'./commondescriptions';import _0x36b275 from'./operationcompressor/attributeoperationcompressor';import _0x34ff85 from'./operationcompressor/insertoperationcompressor';import _0x1dae78 from'./operationcompressor/markeroperationcompressor';import _0x4a9d6e from'./operationcompressor/mergeoperationcompressor';import _0xca4a16 from'./operationcompressor/moveoperationcompressor';import _0x4f0b98 from'./operationcompressor/renameoperationcompressor';import _0x223b33 from'./operationcompressor/rootattributeoperationcompressor';import _0x1c535b from'./operationcompressor/splitoperationcompressor';import _0xbf5c73 from'./operationcompressor/nooperationcompressor';import _0x13bf9c from'./operationcompressor/annotationmarkeroperationcompressor';import _0x52be44 from'./actioncompressor/typingactioncompressor';import _0x595cfa from'./actioncompressor/deletingactioncompressor';import _0x4ca4b6 from'./actioncompressor/forwarddeletingactioncompressor';import _0x4827b2 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x3d23('0x3')]=new Map(),this[_0x3d23('0x1c')]=new Map(),this['_protobufFactory']=new _0x76b753(),this[_0x3d23('0x1a')][_0x3d23('0x21')](_0x3d23('0x27'),_0x596633[_0x3d23('0x27')]),this[_0x3d23('0x1a')]['registerDescriptor'](_0x3d23('0x17'),_0x596633[_0x3d23('0x17')]),this[_0x3d23('0x1a')][_0x3d23('0x21')](_0x3d23('0x6'),_0x596633['Element']),this[_0x3d23('0x1a')][_0x3d23('0x21')](_0x3d23('0x22'),_0x36b275[_0x3d23('0x11')]),this['_protobufFactory']['registerDescriptor']('InsertOperation',_0x34ff85[_0x3d23('0x11')]),this[_0x3d23('0x1a')][_0x3d23('0x21')](_0x3d23('0x13'),_0x1dae78[_0x3d23('0x11')]),this[_0x3d23('0x1a')][_0x3d23('0x21')](_0x3d23('0x23'),_0x4a9d6e[_0x3d23('0x11')]),this[_0x3d23('0x1a')]['registerDescriptor'](_0x3d23('0x9'),_0xca4a16[_0x3d23('0x11')]),this['_protobufFactory'][_0x3d23('0x21')](_0x3d23('0x12'),_0x4f0b98[_0x3d23('0x11')]),this[_0x3d23('0x1a')][_0x3d23('0x21')](_0x3d23('0xc'),_0x223b33[_0x3d23('0x11')]),this[_0x3d23('0x1a')][_0x3d23('0x21')]('SplitOperation',_0x1c535b[_0x3d23('0x11')]),this[_0x3d23('0x1a')][_0x3d23('0xe')](),this[_0x3d23('0x16')](0x1,_0x3d23('0xa'),new _0xbf5c73(0x1,_0x3d23('0xa'))),this[_0x3d23('0x20')](0xa,_0x3d23('0x22'),_0x36b275),this['_registerOperationCompressor'](0xb,_0x3d23('0x18'),_0x34ff85),this[_0x3d23('0x20')](0xc,_0x3d23('0x13'),_0x1dae78),this[_0x3d23('0x20')](0xd,'MergeOperation',_0x4a9d6e),this[_0x3d23('0x20')](0xe,_0x3d23('0x9'),_0xca4a16),this[_0x3d23('0x20')](0xf,_0x3d23('0x12'),_0x4f0b98),this[_0x3d23('0x20')](0x10,_0x3d23('0xc'),_0x223b33),this[_0x3d23('0x20')](0x11,'SplitOperation',_0x1c535b);const _0x159c2d=this[_0x3d23('0x1a')][_0x3d23('0x7')](_0x3d23('0x13'));this[_0x3d23('0x16')](0x12,'CommentMarkerOperation',new _0x13bf9c(0x12,_0x3d23('0x13'),_0x159c2d,_0x3d23('0x5'))),this['_registerCompressor'](0x13,_0x3d23('0x25'),new _0x13bf9c(0x13,_0x3d23('0x13'),_0x159c2d,_0x3d23('0xb'))),this[_0x3d23('0x4')](0x64,_0x3d23('0x1d'),_0x52be44),this[_0x3d23('0x4')](0x65,'DeletingAction',_0x595cfa),this[_0x3d23('0x4')](0x66,_0x3d23('0x1f'),_0x4ca4b6),this['_registerActionCompressor'](0x67,_0x3d23('0x14'),_0x4827b2);}['_registerOperationCompressor'](_0x22d499,_0x382de9,_0x5b7071){const _0x2f8726=new _0x5b7071(_0x22d499,_0x382de9,this[_0x3d23('0x1a')][_0x3d23('0x7')](_0x382de9));this[_0x3d23('0x16')](_0x22d499,_0x382de9,_0x2f8726);}[_0x3d23('0x4')](_0x2cf8cc,_0x4f8b21,_0x2eebcc){const _0x4a68c8=new _0x2eebcc(_0x2cf8cc,this);this[_0x3d23('0x16')](_0x2cf8cc,_0x4f8b21,_0x4a68c8);}['_registerCompressor'](_0x261b67,_0xfa2013,_0x315e8a){this[_0x3d23('0x3')][_0x3d23('0x10')](_0x261b67,_0x315e8a),this[_0x3d23('0x1c')][_0x3d23('0x10')](_0xfa2013,_0x315e8a);}['_getCompressorByName'](_0x56d1fe){return this[_0x3d23('0x1c')]['get'](_0x56d1fe);}['compress'](_0x4e265c){if(!_0x4e265c||!_0x4e265c[0x0])throw new _0x560b0c(_0x3d23('0x1e'),this);const _0x57937e={'types':[],'buffers':[],'baseVersion':_0x4e265c[0x0][_0x3d23('0xd')]};for(;_0x4e265c['length'];)this[_0x3d23('0x26')](_0x3d23('0x14'))[_0x3d23('0xf')](_0x57937e,_0x4e265c)||this['_getCompressorByName']('TypingAction')[_0x3d23('0xf')](_0x57937e,_0x4e265c)||this[_0x3d23('0x26')](_0x3d23('0x24'))[_0x3d23('0xf')](_0x57937e,_0x4e265c)||this['_getCompressorByName'](_0x3d23('0x1f'))[_0x3d23('0xf')](_0x57937e,_0x4e265c)||this[_0x3d23('0x26')](_0x3d23('0x19'))[_0x3d23('0xf')](_0x57937e,_0x4e265c)||this[_0x3d23('0x26')]('SuggestionMarkerOperation')[_0x3d23('0xf')](_0x57937e,_0x4e265c)||this[_0x3d23('0x26')](_0x4e265c[0x0][_0x3d23('0x2')])[_0x3d23('0xf')](_0x57937e,_0x4e265c);return _0x57937e;}[_0x3d23('0x8')](_0x14ed2c){const _0x2484ad=[];for(;_0x14ed2c[_0x3d23('0x0')][_0x3d23('0x1b')];){this['_compressorById'][_0x3d23('0x15')](_0x14ed2c[_0x3d23('0x0')][0x0])[_0x3d23('0x8')](_0x2484ad,_0x14ed2c);}return _0x2484ad[_0x3d23('0x1')]((_0x14a5e9,_0x58059c)=>_0x14a5e9[_0x3d23('0xd')]=_0x14ed2c[_0x3d23('0xd')]+_0x58059c),_0x2484ad;}}
23
+ const _0x3d4f=['Position','UserSelectionAction','_registerActionCompressor','_compressorByName','SplitOperation','_compressorById','get','Range','_registerCompressor','baseVersion','suggestion','getDescriptor','_protobufFactory','InsertOperation','TypingAction','SuggestionMarkerOperation','set','no-operations-provided','ForwardDeletingAction','types','registerDescriptor','description','length','DeletingAction','NoOperation','RootAttributeOperation','_registerOperationCompressor','decompress','_getCompressorByName','RenameOperation','comment','MergeOperation','compress','__className','MarkerOperation','CommentMarkerOperation','AttributeOperation'];(function(_0x305560,_0x3d4fbe){const _0x52edc8=function(_0x55fdde){while(--_0x55fdde){_0x305560['push'](_0x305560['shift']());}};_0x52edc8(++_0x3d4fbe);}(_0x3d4f,0x12f));const _0x52ed=function(_0x305560,_0x3d4fbe){_0x305560=_0x305560-0x0;let _0x52edc8=_0x3d4f[_0x305560];return _0x52edc8;};import{CKEditorError as _0x1b9066}from'ckeditor5/src/utils';import _0x51ac27 from'./protobuffactory';import _0x578b48 from'./commondescriptions';import _0x59bc7d from'./operationcompressor/attributeoperationcompressor';import _0x256396 from'./operationcompressor/insertoperationcompressor';import _0x603169 from'./operationcompressor/markeroperationcompressor';import _0x869cfe from'./operationcompressor/mergeoperationcompressor';import _0x19f284 from'./operationcompressor/moveoperationcompressor';import _0x1f5868 from'./operationcompressor/renameoperationcompressor';import _0x34128e from'./operationcompressor/rootattributeoperationcompressor';import _0x5aa7c3 from'./operationcompressor/splitoperationcompressor';import _0x292409 from'./operationcompressor/nooperationcompressor';import _0x14f78c from'./operationcompressor/annotationmarkeroperationcompressor';import _0x516877 from'./actioncompressor/typingactioncompressor';import _0x2f6014 from'./actioncompressor/deletingactioncompressor';import _0x695113 from'./actioncompressor/forwarddeletingactioncompressor';import _0x2fe91d from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x52ed('0x23')]=new Map(),this[_0x52ed('0x21')]=new Map(),this[_0x52ed('0x5')]=new _0x51ac27(),this[_0x52ed('0x5')]['registerDescriptor'](_0x52ed('0x1e'),_0x578b48[_0x52ed('0x1e')]),this['_protobufFactory']['registerDescriptor'](_0x52ed('0x0'),_0x578b48[_0x52ed('0x0')]),this[_0x52ed('0x5')][_0x52ed('0xd')]('Element',_0x578b48['Element']),this['_protobufFactory'][_0x52ed('0xd')](_0x52ed('0x1d'),_0x59bc7d[_0x52ed('0xe')]),this[_0x52ed('0x5')][_0x52ed('0xd')](_0x52ed('0x6'),_0x256396[_0x52ed('0xe')]),this[_0x52ed('0x5')][_0x52ed('0xd')](_0x52ed('0x1b'),_0x603169[_0x52ed('0xe')]),this[_0x52ed('0x5')]['registerDescriptor']('MergeOperation',_0x869cfe[_0x52ed('0xe')]),this['_protobufFactory']['registerDescriptor']('MoveOperation',_0x19f284[_0x52ed('0xe')]),this[_0x52ed('0x5')][_0x52ed('0xd')]('RenameOperation',_0x1f5868[_0x52ed('0xe')]),this['_protobufFactory'][_0x52ed('0xd')]('RootAttributeOperation',_0x34128e['description']),this[_0x52ed('0x5')][_0x52ed('0xd')](_0x52ed('0x22'),_0x5aa7c3[_0x52ed('0xe')]),this['_protobufFactory']['build'](),this[_0x52ed('0x1')](0x1,'NoOperation',new _0x292409(0x1,_0x52ed('0x11'))),this[_0x52ed('0x13')](0xa,_0x52ed('0x1d'),_0x59bc7d),this[_0x52ed('0x13')](0xb,'InsertOperation',_0x256396),this['_registerOperationCompressor'](0xc,_0x52ed('0x1b'),_0x603169),this[_0x52ed('0x13')](0xd,_0x52ed('0x18'),_0x869cfe),this[_0x52ed('0x13')](0xe,'MoveOperation',_0x19f284),this[_0x52ed('0x13')](0xf,_0x52ed('0x16'),_0x1f5868),this['_registerOperationCompressor'](0x10,_0x52ed('0x12'),_0x34128e),this['_registerOperationCompressor'](0x11,_0x52ed('0x22'),_0x5aa7c3);const _0x18b25b=this[_0x52ed('0x5')][_0x52ed('0x4')]('MarkerOperation');this[_0x52ed('0x1')](0x12,_0x52ed('0x1c'),new _0x14f78c(0x12,_0x52ed('0x1b'),_0x18b25b,_0x52ed('0x17'))),this[_0x52ed('0x1')](0x13,'SuggestionMarkerOperation',new _0x14f78c(0x13,_0x52ed('0x1b'),_0x18b25b,_0x52ed('0x3'))),this[_0x52ed('0x20')](0x64,'TypingAction',_0x516877),this[_0x52ed('0x20')](0x65,_0x52ed('0x10'),_0x2f6014),this[_0x52ed('0x20')](0x66,_0x52ed('0xb'),_0x695113),this['_registerActionCompressor'](0x67,_0x52ed('0x1f'),_0x2fe91d);}[_0x52ed('0x13')](_0x2ab7a8,_0x53c29b,_0x27fff3){const _0x2ad61d=new _0x27fff3(_0x2ab7a8,_0x53c29b,this[_0x52ed('0x5')][_0x52ed('0x4')](_0x53c29b));this[_0x52ed('0x1')](_0x2ab7a8,_0x53c29b,_0x2ad61d);}[_0x52ed('0x20')](_0x31b15f,_0x102eb4,_0x30798f){const _0x9599f2=new _0x30798f(_0x31b15f,this);this[_0x52ed('0x1')](_0x31b15f,_0x102eb4,_0x9599f2);}[_0x52ed('0x1')](_0x45a966,_0x5b0615,_0x4cd1ef){this[_0x52ed('0x23')][_0x52ed('0x9')](_0x45a966,_0x4cd1ef),this[_0x52ed('0x21')][_0x52ed('0x9')](_0x5b0615,_0x4cd1ef);}['_getCompressorByName'](_0x53a39b){return this[_0x52ed('0x21')]['get'](_0x53a39b);}[_0x52ed('0x19')](_0x4a5032){if(!_0x4a5032||!_0x4a5032[0x0])throw new _0x1b9066(_0x52ed('0xa'),this);const _0x3c83f1={'types':[],'buffers':[],'baseVersion':_0x4a5032[0x0]['baseVersion']};for(;_0x4a5032[_0x52ed('0xf')];)this[_0x52ed('0x15')](_0x52ed('0x1f'))[_0x52ed('0x19')](_0x3c83f1,_0x4a5032)||this[_0x52ed('0x15')](_0x52ed('0x7'))['compress'](_0x3c83f1,_0x4a5032)||this['_getCompressorByName'](_0x52ed('0x10'))[_0x52ed('0x19')](_0x3c83f1,_0x4a5032)||this['_getCompressorByName'](_0x52ed('0xb'))[_0x52ed('0x19')](_0x3c83f1,_0x4a5032)||this[_0x52ed('0x15')](_0x52ed('0x1c'))[_0x52ed('0x19')](_0x3c83f1,_0x4a5032)||this[_0x52ed('0x15')](_0x52ed('0x8'))[_0x52ed('0x19')](_0x3c83f1,_0x4a5032)||this['_getCompressorByName'](_0x4a5032[0x0][_0x52ed('0x1a')])[_0x52ed('0x19')](_0x3c83f1,_0x4a5032);return _0x3c83f1;}[_0x52ed('0x14')](_0x1ec8ac){const _0x1ed6bc=[];for(;_0x1ec8ac['types'][_0x52ed('0xf')];){this[_0x52ed('0x23')][_0x52ed('0x24')](_0x1ec8ac[_0x52ed('0xc')][0x0])[_0x52ed('0x14')](_0x1ed6bc,_0x1ec8ac);}return _0x1ed6bc['forEach']((_0x1eb003,_0x5d882f)=>_0x1eb003[_0x52ed('0x2')]=_0x1ec8ac[_0x52ed('0x2')]+_0x5d882f),_0x1ed6bc;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe14a=['_omittedNamespace','MarkerOperation','decompress','compress','name','startsWith','length','replace'];(function(_0x67eb4f,_0xe14ae3){const _0xcf22a0=function(_0x3a045c){while(--_0x3a045c){_0x67eb4f['push'](_0x67eb4f['shift']());}};_0xcf22a0(++_0xe14ae3);}(_0xe14a,0x7f));const _0xcf22=function(_0x67eb4f,_0xe14ae3){_0x67eb4f=_0x67eb4f-0x0;let _0xcf22a0=_0xe14a[_0x67eb4f];return _0xcf22a0;};import _0x1b40e9 from'./markeroperationcompressor';export default class O extends _0x1b40e9{constructor(_0x316943,_0x1e8723,_0x12c61d,_0x392b26){super(_0x316943,_0x1e8723,_0x12c61d),this[_0xcf22('0x1')]=_0x392b26+':';}[_0xcf22('0x4')](_0x1cebce,_0x2d21f3){return!(_0xcf22('0x2')!=_0x2d21f3[0x0]['__className']||!_0x2d21f3[0x0][_0xcf22('0x5')][_0xcf22('0x6')](this[_0xcf22('0x1')]))&&(_0x2d21f3[0x0][_0xcf22('0x5')]=_0x2d21f3[0x0][_0xcf22('0x5')][_0xcf22('0x0')](new RegExp('^'+this[_0xcf22('0x1')]),''),super[_0xcf22('0x4')](_0x1cebce,_0x2d21f3),!0x0);}['decompress'](_0x561c07,_0x351f65){super[_0xcf22('0x3')](_0x561c07,_0x351f65);const _0x121e8b=_0x561c07[_0x561c07[_0xcf22('0x7')]-0x1];_0x121e8b[_0xcf22('0x5')]=this[_0xcf22('0x1')]+_0x121e8b[_0xcf22('0x5')];}}
23
+ const _0x5749=['length','name','compress','__className','_omittedNamespace','decompress','replace'];(function(_0x1990a3,_0x57496f){const _0x208729=function(_0x168150){while(--_0x168150){_0x1990a3['push'](_0x1990a3['shift']());}};_0x208729(++_0x57496f);}(_0x5749,0xcf));const _0x2087=function(_0x1990a3,_0x57496f){_0x1990a3=_0x1990a3-0x0;let _0x208729=_0x5749[_0x1990a3];return _0x208729;};import _0x6f4bab from'./markeroperationcompressor';export default class O extends _0x6f4bab{constructor(_0x39b3c3,_0x37c457,_0x55c24e,_0x527c27){super(_0x39b3c3,_0x37c457,_0x55c24e),this[_0x2087('0x0')]=_0x527c27+':';}[_0x2087('0x5')](_0xf336f8,_0x43f0e4){return!('MarkerOperation'!=_0x43f0e4[0x0][_0x2087('0x6')]||!_0x43f0e4[0x0][_0x2087('0x4')]['startsWith'](this[_0x2087('0x0')]))&&(_0x43f0e4[0x0]['name']=_0x43f0e4[0x0][_0x2087('0x4')][_0x2087('0x2')](new RegExp('^'+this[_0x2087('0x0')]),''),super[_0x2087('0x5')](_0xf336f8,_0x43f0e4),!0x0);}[_0x2087('0x1')](_0x5438d1,_0x33dee0){super[_0x2087('0x1')](_0x5438d1,_0x33dee0);const _0x2e761f=_0x5438d1[_0x5438d1[_0x2087('0x3')]-0x1];_0x2e761f[_0x2087('0x4')]=this['_omittedNamespace']+_0x2e761f[_0x2087('0x4')];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17a8=['decompress','shift','bool','string','parse','_protobufDescriptor','compress','types','newValue','Json','__className','oldValue','buffers','Boolean','stringify','push','boolean'];(function(_0x20da9f,_0x17a81b){const _0x2f034a=function(_0x554f4f){while(--_0x554f4f){_0x20da9f['push'](_0x20da9f['shift']());}};_0x2f034a(++_0x17a81b);}(_0x17a8,0xee));const _0x2f03=function(_0x20da9f,_0x17a81b){_0x20da9f=_0x20da9f-0x0;let _0x2f034a=_0x17a8[_0x20da9f];return _0x2f034a;};import _0x49e577 from'./operationcompressor';import{parsePositionBeforeCompression as _0x3bd43c,parsePositionAfterCompression as _0x515a19}from'../utils';export default class i extends _0x49e577{static get['description'](){return{'fields':{'range':{'type':'Range','id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':_0x2f03('0x2'),'id':0x3},'oldValueJson':{'type':_0x2f03('0x3'),'id':0x4},'newValueBoolean':{'type':_0x2f03('0x2'),'id':0x5},'newValueJson':{'type':_0x2f03('0x3'),'id':0x6},'wasUndone':{'type':_0x2f03('0x2'),'id':0x7}}};}[_0x2f03('0x6')](_0x4aa886,_0x2b57be){const _0x25cf59=_0x2b57be['shift']();$(_0x2f03('0xb'),_0x25cf59),$(_0x2f03('0x8'),_0x25cf59),_0x3bd43c(_0x25cf59),_0x4aa886[_0x2f03('0xc')]['push'](this[_0x2f03('0x5')]['compress'](_0x25cf59)),_0x4aa886[_0x2f03('0x7')]['push'](this['id']);}[_0x2f03('0x0')](_0x2e8419,_0x16d713){const {types:_0x3f6ea2,buffers:_0x3abde8}=_0x16d713,_0x400039=this[_0x2f03('0x5')][_0x2f03('0x0')](_0x3abde8['shift']());_0x3f6ea2[_0x2f03('0x1')](),N('oldValue',_0x400039),N(_0x2f03('0x8'),_0x400039),_0x515a19(_0x400039),_0x400039[_0x2f03('0xa')]=this['operationName'],_0x2e8419[_0x2f03('0xf')](_0x400039);}}function $(_0x96ee5c,_0x1ff8c3){const _0x51479a=_0x1ff8c3[_0x96ee5c];_0x2f03('0x10')==typeof _0x51479a?_0x1ff8c3[_0x96ee5c+_0x2f03('0xd')]=_0x51479a:_0x1ff8c3[_0x96ee5c+_0x2f03('0x9')]=JSON[_0x2f03('0xe')](_0x51479a);}function N(_0x61c85f,_0x5e6bfa){const _0x2525c7=_0x61c85f+_0x2f03('0x9');_0x5e6bfa[_0x2525c7]?(_0x5e6bfa[_0x61c85f]=JSON[_0x2f03('0x4')](_0x5e6bfa[_0x2525c7]),delete _0x5e6bfa[_0x2525c7]):(_0x5e6bfa[_0x61c85f]=_0x5e6bfa[_0x61c85f+_0x2f03('0xd')],delete _0x5e6bfa[_0x61c85f+_0x2f03('0xd')]);}
23
+ const _0x2363=['decompress','Range','boolean','Boolean','__className','push','shift','bool','string','Json','newValue','operationName','description','buffers','_protobufDescriptor','stringify','compress','oldValue'];(function(_0x5428a4,_0x2363ff){const _0x4d557c=function(_0x38d649){while(--_0x38d649){_0x5428a4['push'](_0x5428a4['shift']());}};_0x4d557c(++_0x2363ff);}(_0x2363,0x1c5));const _0x4d55=function(_0x5428a4,_0x2363ff){_0x5428a4=_0x5428a4-0x0;let _0x4d557c=_0x2363[_0x5428a4];return _0x4d557c;};import _0x2d9201 from'./operationcompressor';import{parsePositionBeforeCompression as _0x44fe1e,parsePositionAfterCompression as _0x82dd0f}from'../utils';export default class i extends _0x2d9201{static get[_0x4d55('0x9')](){return{'fields':{'range':{'type':_0x4d55('0x10'),'id':0x1},'key':{'type':_0x4d55('0x5'),'id':0x2},'oldValueBoolean':{'type':'bool','id':0x3},'oldValueJson':{'type':_0x4d55('0x5'),'id':0x4},'newValueBoolean':{'type':_0x4d55('0x4'),'id':0x5},'newValueJson':{'type':'string','id':0x6},'wasUndone':{'type':_0x4d55('0x4'),'id':0x7}}};}[_0x4d55('0xd')](_0x565eb7,_0x1e32f1){const _0x38cad5=_0x1e32f1[_0x4d55('0x3')]();$('oldValue',_0x38cad5),$(_0x4d55('0x7'),_0x38cad5),_0x44fe1e(_0x38cad5),_0x565eb7[_0x4d55('0xa')][_0x4d55('0x2')](this[_0x4d55('0xb')]['compress'](_0x38cad5)),_0x565eb7['types'][_0x4d55('0x2')](this['id']);}[_0x4d55('0xf')](_0x27de05,_0xc0e9c8){const {types:_0x6bca3e,buffers:_0xa388e0}=_0xc0e9c8,_0x5e2796=this['_protobufDescriptor']['decompress'](_0xa388e0[_0x4d55('0x3')]());_0x6bca3e['shift'](),N(_0x4d55('0xe'),_0x5e2796),N(_0x4d55('0x7'),_0x5e2796),_0x82dd0f(_0x5e2796),_0x5e2796[_0x4d55('0x1')]=this[_0x4d55('0x8')],_0x27de05[_0x4d55('0x2')](_0x5e2796);}}function $(_0x8af249,_0x3adb37){const _0x15b91e=_0x3adb37[_0x8af249];_0x4d55('0x11')==typeof _0x15b91e?_0x3adb37[_0x8af249+'Boolean']=_0x15b91e:_0x3adb37[_0x8af249+_0x4d55('0x6')]=JSON[_0x4d55('0xc')](_0x15b91e);}function N(_0x50a462,_0x2b01f3){const _0x318bec=_0x50a462+'Json';_0x2b01f3[_0x318bec]?(_0x2b01f3[_0x50a462]=JSON['parse'](_0x2b01f3[_0x318bec]),delete _0x2b01f3[_0x318bec]):(_0x2b01f3[_0x50a462]=_0x2b01f3[_0x50a462+_0x4d55('0x0')],delete _0x2b01f3[_0x50a462+_0x4d55('0x0')]);}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e49=['types','Position','keys','every','parse','buffers','Element','bool','description','compress','shift','stringify','attributesJson','nodes','decompress','operationName','attributes','children','_protobufDescriptor','attributesBoolean','__className','push'];(function(_0x45fb03,_0x3e4985){const _0x36616b=function(_0x4f129a){while(--_0x4f129a){_0x45fb03['push'](_0x45fb03['shift']());}};_0x36616b(++_0x3e4985);}(_0x3e49,0x18a));const _0x3661=function(_0x45fb03,_0x3e4985){_0x45fb03=_0x45fb03-0x0;let _0x36616b=_0x3e49[_0x45fb03];return _0x36616b;};import _0x3b881d from'./operationcompressor';import{parsePositionBeforeCompression as _0x823bb5,parsePositionAfterCompression as _0x56ac46}from'../utils';export default class s extends _0x3b881d{static get[_0x3661('0xa')](){return{'fields':{'position':{'type':_0x3661('0x3'),'id':0x1},'nodes':{'rule':'repeated','type':_0x3661('0x8'),'id':0x2},'shouldReceiveAttributes':{'type':_0x3661('0x9'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}[_0x3661('0xb')](_0x10803a,_0x254b84){const _0x3c218=_0x254b84['shift']();A(_0x3c218[_0x3661('0xf')]),_0x823bb5(_0x3c218),_0x10803a[_0x3661('0x7')][_0x3661('0x1')](this[_0x3661('0x14')][_0x3661('0xb')](_0x3c218)),_0x10803a[_0x3661('0x2')][_0x3661('0x1')](this['id']);}[_0x3661('0x10')](_0xa36c83,_0x45f852){const {types:_0x274376,buffers:_0x392845}=_0x45f852,_0x45703d=this[_0x3661('0x14')]['decompress'](_0x392845[_0x3661('0xc')]());_0x274376['shift'](),_0x45703d[_0x3661('0xf')]||(_0x45703d['nodes']=[]),E(_0x45703d[_0x3661('0xf')]),_0x56ac46(_0x45703d),_0x45703d[_0x3661('0x0')]=this[_0x3661('0x11')],_0xa36c83[_0x3661('0x1')](_0x45703d);}}function A(_0x163ec0){for(const _0x4c82ed of _0x163ec0){if(_0x4c82ed[_0x3661('0x12')]){const _0xfe40d9=_0x4c82ed['attributes'];R(_0xfe40d9)?_0x4c82ed[_0x3661('0x15')]=_0xfe40d9:_0x4c82ed['attributesJson']=JSON[_0x3661('0xd')](_0xfe40d9);}_0x4c82ed[_0x3661('0x13')]&&A(_0x4c82ed[_0x3661('0x13')]);}}function E(_0xf620f7){for(const _0x5210d6 of _0xf620f7)(_0x5210d6['attributesBoolean']||_0x5210d6[_0x3661('0xe')])&&(_0x5210d6[_0x3661('0x15')]?(_0x5210d6[_0x3661('0x12')]=_0x5210d6['attributesBoolean'],delete _0x5210d6[_0x3661('0x15')]):(_0x5210d6[_0x3661('0x12')]=JSON[_0x3661('0x6')](_0x5210d6['attributesJson']),delete _0x5210d6['attributesJson'])),_0x5210d6['children']&&E(_0x5210d6['children']);}function R(_0x2d8576){return Object[_0x3661('0x4')](_0x2d8576)[_0x3661('0x5')](_0x295242=>'boolean'==typeof _0x2d8576[_0x295242]);}
23
+ const _0x915a=['bool','description','Position','attributes','push','repeated','attributesBoolean','Element','nodes','types','__className','stringify','decompress','keys','attributesJson','shift','parse','operationName','buffers','children','every','compress'];(function(_0xe8e93,_0x915a4f){const _0x1ffb14=function(_0x49f682){while(--_0x49f682){_0xe8e93['push'](_0xe8e93['shift']());}};_0x1ffb14(++_0x915a4f);}(_0x915a,0x67));const _0x1ffb=function(_0xe8e93,_0x915a4f){_0xe8e93=_0xe8e93-0x0;let _0x1ffb14=_0x915a[_0xe8e93];return _0x1ffb14;};import _0x511e77 from'./operationcompressor';import{parsePositionBeforeCompression as _0x551ac2,parsePositionAfterCompression as _0x338443}from'../utils';export default class s extends _0x511e77{static get[_0x1ffb('0x8')](){return{'fields':{'position':{'type':_0x1ffb('0x9'),'id':0x1},'nodes':{'rule':_0x1ffb('0xc'),'type':_0x1ffb('0xe'),'id':0x2},'shouldReceiveAttributes':{'type':_0x1ffb('0x7'),'id':0x3},'wasUndone':{'type':_0x1ffb('0x7'),'id':0x4}}};}[_0x1ffb('0x6')](_0x189690,_0x4350b8){const _0x2b8a9d=_0x4350b8['shift']();A(_0x2b8a9d[_0x1ffb('0xf')]),_0x551ac2(_0x2b8a9d),_0x189690[_0x1ffb('0x3')]['push'](this['_protobufDescriptor']['compress'](_0x2b8a9d)),_0x189690[_0x1ffb('0x10')][_0x1ffb('0xb')](this['id']);}['decompress'](_0x121330,_0x3a7604){const {types:_0x1d8063,buffers:_0x1dd171}=_0x3a7604,_0x30206b=this['_protobufDescriptor'][_0x1ffb('0x13')](_0x1dd171[_0x1ffb('0x0')]());_0x1d8063[_0x1ffb('0x0')](),_0x30206b[_0x1ffb('0xf')]||(_0x30206b['nodes']=[]),E(_0x30206b[_0x1ffb('0xf')]),_0x338443(_0x30206b),_0x30206b[_0x1ffb('0x11')]=this[_0x1ffb('0x2')],_0x121330[_0x1ffb('0xb')](_0x30206b);}}function A(_0x3ad506){for(const _0x23ddd5 of _0x3ad506){if(_0x23ddd5[_0x1ffb('0xa')]){const _0x1ff9c3=_0x23ddd5[_0x1ffb('0xa')];R(_0x1ff9c3)?_0x23ddd5[_0x1ffb('0xd')]=_0x1ff9c3:_0x23ddd5['attributesJson']=JSON[_0x1ffb('0x12')](_0x1ff9c3);}_0x23ddd5[_0x1ffb('0x4')]&&A(_0x23ddd5[_0x1ffb('0x4')]);}}function E(_0x4e57df){for(const _0x10518c of _0x4e57df)(_0x10518c[_0x1ffb('0xd')]||_0x10518c[_0x1ffb('0x15')])&&(_0x10518c['attributesBoolean']?(_0x10518c[_0x1ffb('0xa')]=_0x10518c['attributesBoolean'],delete _0x10518c[_0x1ffb('0xd')]):(_0x10518c[_0x1ffb('0xa')]=JSON[_0x1ffb('0x1')](_0x10518c['attributesJson']),delete _0x10518c[_0x1ffb('0x15')])),_0x10518c[_0x1ffb('0x4')]&&E(_0x10518c['children']);}function R(_0x1d9634){return Object[_0x1ffb('0x14')](_0x1d9634)[_0x1ffb('0x5')](_0x21f66e=>'boolean'==typeof _0x1d9634[_0x21f66e]);}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e7f=['length','oldRange','description','Range','decompress','newRange','bool'];(function(_0x4d3e8e,_0x2e7ff2){const _0x389264=function(_0x48ec55){while(--_0x48ec55){_0x4d3e8e['push'](_0x4d3e8e['shift']());}};_0x389264(++_0x2e7ff2);}(_0x2e7f,0x1a8));const _0x3892=function(_0x4d3e8e,_0x2e7ff2){_0x4d3e8e=_0x4d3e8e-0x0;let _0x389264=_0x2e7f[_0x4d3e8e];return _0x389264;};import _0x55e2e2 from'./operationcompressor';export default class n extends _0x55e2e2{static get[_0x3892('0x5')](){return{'fields':{'name':{'type':'string','id':0x1},'oldRange':{'type':_0x3892('0x6'),'id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':_0x3892('0x2'),'id':0x4},'wasUndone':{'type':_0x3892('0x2'),'id':0x5}}};}[_0x3892('0x0')](_0x4182ce,_0x57c59f){super[_0x3892('0x0')](_0x4182ce,_0x57c59f);const _0x24416a=_0x4182ce[_0x4182ce[_0x3892('0x3')]-0x1];_0x24416a[_0x3892('0x4')]||(_0x24416a[_0x3892('0x4')]=null),_0x24416a[_0x3892('0x1')]||(_0x24416a[_0x3892('0x1')]=null);}}
23
+ const _0x33cd=['decompress','bool','Range','newRange','oldRange','description','string'];(function(_0x4cedd2,_0x33cdcf){const _0x5279f0=function(_0x1c1272){while(--_0x1c1272){_0x4cedd2['push'](_0x4cedd2['shift']());}};_0x5279f0(++_0x33cdcf);}(_0x33cd,0x1a7));const _0x5279=function(_0x4cedd2,_0x33cdcf){_0x4cedd2=_0x4cedd2-0x0;let _0x5279f0=_0x33cd[_0x4cedd2];return _0x5279f0;};import _0x349278 from'./operationcompressor';export default class n extends _0x349278{static get[_0x5279('0x2')](){return{'fields':{'name':{'type':_0x5279('0x3'),'id':0x1},'oldRange':{'type':_0x5279('0x6'),'id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':_0x5279('0x5'),'id':0x4},'wasUndone':{'type':_0x5279('0x5'),'id':0x5}}};}['decompress'](_0x1083ec,_0x427bab){super[_0x5279('0x4')](_0x1083ec,_0x427bab);const _0x176a01=_0x1083ec[_0x1083ec['length']-0x1];_0x176a01[_0x5279('0x1')]||(_0x176a01[_0x5279('0x1')]=null),_0x176a01[_0x5279('0x0')]||(_0x176a01['newRange']=null);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5ae3=['bool','uint32','description','Position'];(function(_0x7002f5,_0x5ae3b){var _0x28c745=function(_0x19709a){while(--_0x19709a){_0x7002f5['push'](_0x7002f5['shift']());}};_0x28c745(++_0x5ae3b);}(_0x5ae3,0x81));var _0x28c7=function(_0x7002f5,_0x5ae3b){_0x7002f5=_0x7002f5-0x0;var _0x28c745=_0x5ae3[_0x7002f5];return _0x28c745;};import _0x319fc0 from'./operationcompressor';export default class p extends _0x319fc0{static get[_0x28c7('0x1')](){return{'fields':{'sourcePosition':{'type':_0x28c7('0x2'),'id':0x1},'targetPosition':{'type':_0x28c7('0x2'),'id':0x2},'graveyardPosition':{'type':_0x28c7('0x2'),'id':0x3},'howMany':{'type':_0x28c7('0x0'),'id':0x4},'wasUndone':{'type':_0x28c7('0x3'),'id':0x5}}};}}
23
+ var _0x5b13=['Position','description','uint32'];(function(_0x511d35,_0x5b13ab){var _0x5a33ea=function(_0x4731a6){while(--_0x4731a6){_0x511d35['push'](_0x511d35['shift']());}};_0x5a33ea(++_0x5b13ab);}(_0x5b13,0x1b9));var _0x5a33=function(_0x511d35,_0x5b13ab){_0x511d35=_0x511d35-0x0;var _0x5a33ea=_0x5b13[_0x511d35];return _0x5a33ea;};import _0x3fb732 from'./operationcompressor';export default class p extends _0x3fb732{static get[_0x5a33('0x1')](){return{'fields':{'sourcePosition':{'type':_0x5a33('0x0'),'id':0x1},'targetPosition':{'type':_0x5a33('0x0'),'id':0x2},'graveyardPosition':{'type':_0x5a33('0x0'),'id':0x3},'howMany':{'type':_0x5a33('0x2'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4e6a=['bool','Position'];(function(_0x2fea44,_0x4e6a94){var _0x39e7b3=function(_0xad9e56){while(--_0xad9e56){_0x2fea44['push'](_0x2fea44['shift']());}};_0x39e7b3(++_0x4e6a94);}(_0x4e6a,0x12d));var _0x39e7=function(_0x2fea44,_0x4e6a94){_0x2fea44=_0x2fea44-0x0;var _0x39e7b3=_0x4e6a[_0x2fea44];return _0x39e7b3;};import _0x501df5 from'./operationcompressor';export default class m extends _0x501df5{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x39e7('0x0'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x39e7('0x1'),'id':0x4}}};}}
23
+ var _0x4462=['uint32','bool'];(function(_0xbf8c7f,_0x4462b1){var _0x39c119=function(_0x52ed8a){while(--_0x52ed8a){_0xbf8c7f['push'](_0xbf8c7f['shift']());}};_0x39c119(++_0x4462b1);}(_0x4462,0x96));var _0x39c1=function(_0xbf8c7f,_0x4462b1){_0xbf8c7f=_0xbf8c7f-0x0;var _0x39c119=_0x4462[_0xbf8c7f];return _0x39c119;};import _0x4be51d from'./operationcompressor';export default class m extends _0x4be51d{static get['description'](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'howMany':{'type':_0x39c1('0x0'),'id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x39c1('0x1'),'id':0x4}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2305=['operationName','types'];(function(_0x53d5a0,_0x230502){var _0x27109b=function(_0x13db2d){while(--_0x13db2d){_0x53d5a0['push'](_0x53d5a0['shift']());}};_0x27109b(++_0x230502);}(_0x2305,0x1c4));var _0x2710=function(_0x53d5a0,_0x230502){_0x53d5a0=_0x53d5a0-0x0;var _0x27109b=_0x2305[_0x53d5a0];return _0x27109b;};import _0x13504c from'./operationcompressor';export default class f extends _0x13504c{['compress'](_0x504525,_0x3f211f){_0x3f211f['shift'](),_0x504525[_0x2710('0x1')]['push'](this['id']);}['decompress'](_0x3be2ba,_0x443664){_0x443664[_0x2710('0x1')]['shift'](),_0x3be2ba['push']({'__className':this[_0x2710('0x0')]});}}
23
+ var _0x3f76=['shift','operationName','push','compress','types'];(function(_0x4a6e2c,_0x3f76c6){var _0x150fd9=function(_0x5f3b7c){while(--_0x5f3b7c){_0x4a6e2c['push'](_0x4a6e2c['shift']());}};_0x150fd9(++_0x3f76c6);}(_0x3f76,0x19c));var _0x150f=function(_0x4a6e2c,_0x3f76c6){_0x4a6e2c=_0x4a6e2c-0x0;var _0x150fd9=_0x3f76[_0x4a6e2c];return _0x150fd9;};import _0x3a64c6 from'./operationcompressor';export default class f extends _0x3a64c6{[_0x150f('0x1')](_0x482b5f,_0x5f2b5b){_0x5f2b5b[_0x150f('0x3')](),_0x482b5f[_0x150f('0x2')]['push'](this['id']);}['decompress'](_0x32b7c2,_0x4eb0d0){_0x4eb0d0[_0x150f('0x2')][_0x150f('0x3')](),_0x32b7c2[_0x150f('0x0')]({'__className':this[_0x150f('0x4')]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a50=['decompress','types','buffers','shift','compress','push','_protobufDescriptor','operationName'];(function(_0x467e05,_0x3a5038){const _0x257902=function(_0x4c1aa5){while(--_0x4c1aa5){_0x467e05['push'](_0x467e05['shift']());}};_0x257902(++_0x3a5038);}(_0x3a50,0x18c));const _0x2579=function(_0x467e05,_0x3a5038){_0x467e05=_0x467e05-0x0;let _0x257902=_0x3a50[_0x467e05];return _0x257902;};import{parsePositionBeforeCompression as _0x1e0fa2,parsePositionAfterCompression as _0x53177a}from'../utils';export default class V{constructor(_0x3a7870,_0x543204,_0xd20ad6){this['id']=_0x3a7870,this[_0x2579('0x3')]=_0x543204,this[_0x2579('0x2')]=_0xd20ad6;}['compress'](_0x28f109,_0x53b6c1){const _0x4abb13=_0x53b6c1[_0x2579('0x7')]();_0x1e0fa2(_0x4abb13),_0x28f109['buffers']['push'](this[_0x2579('0x2')][_0x2579('0x0')](_0x4abb13)),_0x28f109[_0x2579('0x5')][_0x2579('0x1')](this['id']);}[_0x2579('0x4')](_0x5a4bca,_0x57d845){_0x57d845[_0x2579('0x5')][_0x2579('0x7')]();const _0x1de226=this['_protobufDescriptor'][_0x2579('0x4')](_0x57d845[_0x2579('0x6')][_0x2579('0x7')]());_0x53177a(_0x1de226),_0x1de226['__className']=this[_0x2579('0x3')],_0x5a4bca[_0x2579('0x1')](_0x1de226);}}
23
+ const _0x40e3=['operationName','types','decompress','compress','push','_protobufDescriptor','__className','shift','buffers'];(function(_0x35e155,_0x40e3ec){const _0x481179=function(_0x38c83f){while(--_0x38c83f){_0x35e155['push'](_0x35e155['shift']());}};_0x481179(++_0x40e3ec);}(_0x40e3,0x146));const _0x4811=function(_0x35e155,_0x40e3ec){_0x35e155=_0x35e155-0x0;let _0x481179=_0x40e3[_0x35e155];return _0x481179;};import{parsePositionBeforeCompression as _0x50b958,parsePositionAfterCompression as _0x3f64ae}from'../utils';export default class V{constructor(_0x3df7de,_0x3221f4,_0x21425a){this['id']=_0x3df7de,this[_0x4811('0x7')]=_0x3221f4,this['_protobufDescriptor']=_0x21425a;}['compress'](_0x50c235,_0x428fed){const _0x4940bd=_0x428fed[_0x4811('0x5')]();_0x50b958(_0x4940bd),_0x50c235[_0x4811('0x6')][_0x4811('0x2')](this[_0x4811('0x3')][_0x4811('0x1')](_0x4940bd)),_0x50c235[_0x4811('0x8')][_0x4811('0x2')](this['id']);}[_0x4811('0x0')](_0x3550aa,_0x5cebf6){_0x5cebf6['types']['shift']();const _0x3a0b55=this[_0x4811('0x3')][_0x4811('0x0')](_0x5cebf6[_0x4811('0x6')][_0x4811('0x5')]());_0x3f64ae(_0x3a0b55),_0x3a0b55[_0x4811('0x4')]=this[_0x4811('0x7')],_0x3550aa[_0x4811('0x2')](_0x3a0b55);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2123=['bool','string','description'];(function(_0x5bfebc,_0x212367){var _0x470e26=function(_0xcba6b7){while(--_0xcba6b7){_0x5bfebc['push'](_0x5bfebc['shift']());}};_0x470e26(++_0x212367);}(_0x2123,0x1e6));var _0x470e=function(_0x5bfebc,_0x212367){_0x5bfebc=_0x5bfebc-0x0;var _0x470e26=_0x2123[_0x5bfebc];return _0x470e26;};import _0x485a1a from'./operationcompressor';export default class a extends _0x485a1a{static get[_0x470e('0x2')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0x470e('0x1'),'id':0x2},'newName':{'type':_0x470e('0x1'),'id':0x3},'wasUndone':{'type':_0x470e('0x0'),'id':0x4}}};}}
23
+ var _0x3ff5=['string','Position','description','bool'];(function(_0x1e3990,_0x3ff59b){var _0x40f4d9=function(_0x4e046c){while(--_0x4e046c){_0x1e3990['push'](_0x1e3990['shift']());}};_0x40f4d9(++_0x3ff59b);}(_0x3ff5,0xe3));var _0x40f4=function(_0x1e3990,_0x3ff59b){_0x1e3990=_0x1e3990-0x0;var _0x40f4d9=_0x3ff5[_0x1e3990];return _0x40f4d9;};import _0x2e955f from'./operationcompressor';export default class a extends _0x2e955f{static get[_0x40f4('0x3')](){return{'fields':{'position':{'type':_0x40f4('0x2'),'id':0x1},'oldName':{'type':_0x40f4('0x1'),'id':0x2},'newName':{'type':_0x40f4('0x1'),'id':0x3},'wasUndone':{'type':_0x40f4('0x0'),'id':0x4}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51a7=['root','description','fields','string','range'];(function(_0x4d6ccd,_0x51a7c4){const _0x392607=function(_0x5a4861){while(--_0x5a4861){_0x4d6ccd['push'](_0x4d6ccd['shift']());}};_0x392607(++_0x51a7c4);}(_0x51a7,0x1a9));const _0x3926=function(_0x4d6ccd,_0x51a7c4){_0x4d6ccd=_0x4d6ccd-0x0;let _0x392607=_0x51a7[_0x4d6ccd];return _0x392607;};import _0x43e708 from'./attributeoperationcompressor';export default class c extends _0x43e708{static get['description'](){const _0x4db404=_0x43e708[_0x3926('0x1')];return delete _0x4db404[_0x3926('0x2')][_0x3926('0x4')],_0x4db404[_0x3926('0x2')][_0x3926('0x0')]={'type':_0x3926('0x3'),'id':0x1},_0x4db404;}}
23
+ const _0x1062=['range','description','string','root','fields'];(function(_0x304d13,_0x10628e){const _0x3a4df8=function(_0x403c5b){while(--_0x403c5b){_0x304d13['push'](_0x304d13['shift']());}};_0x3a4df8(++_0x10628e);}(_0x1062,0x12f));const _0x3a4d=function(_0x304d13,_0x10628e){_0x304d13=_0x304d13-0x0;let _0x3a4df8=_0x1062[_0x304d13];return _0x3a4df8;};import _0x2bfb72 from'./attributeoperationcompressor';export default class c extends _0x2bfb72{static get[_0x3a4d('0x3')](){const _0x4f40a1=_0x2bfb72[_0x3a4d('0x3')];return delete _0x4f40a1[_0x3a4d('0x1')][_0x3a4d('0x2')],_0x4f40a1[_0x3a4d('0x1')][_0x3a4d('0x0')]={'type':_0x3a4d('0x4'),'id':0x1},_0x4f40a1;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4ac9=['uint32','Position'];(function(_0x456935,_0x4ac9dc){var _0x28bdbb=function(_0x37aa49){while(--_0x37aa49){_0x456935['push'](_0x456935['shift']());}};_0x28bdbb(++_0x4ac9dc);}(_0x4ac9,0x187));var _0x28bd=function(_0x456935,_0x4ac9dc){_0x456935=_0x456935-0x0;var _0x28bdbb=_0x4ac9[_0x456935];return _0x28bdbb;};import _0x46bb4c from'./operationcompressor';export default class h extends _0x46bb4c{static get['description'](){return{'fields':{'splitPosition':{'type':_0x28bd('0x0'),'id':0x1},'graveyardPosition':{'type':_0x28bd('0x0'),'id':0x2},'howMany':{'type':_0x28bd('0x1'),'id':0x3},'insertionPosition':{'type':_0x28bd('0x0'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
23
+ var _0xd121=['Position','bool','uint32','description'];(function(_0x5abe9d,_0xd121ee){var _0x15ada7=function(_0x306f74){while(--_0x306f74){_0x5abe9d['push'](_0x5abe9d['shift']());}};_0x15ada7(++_0xd121ee);}(_0xd121,0x1e1));var _0x15ad=function(_0x5abe9d,_0xd121ee){_0x5abe9d=_0x5abe9d-0x0;var _0x15ada7=_0xd121[_0x5abe9d];return _0x15ada7;};import _0x370788 from'./operationcompressor';export default class h extends _0x370788{static get[_0x15ad('0x2')](){return{'fields':{'splitPosition':{'type':_0x15ad('0x3'),'id':0x1},'graveyardPosition':{'type':_0x15ad('0x3'),'id':0x2},'howMany':{'type':_0x15ad('0x1'),'id':0x3},'insertionPosition':{'type':_0x15ad('0x3'),'id':0x4},'wasUndone':{'type':_0x15ad('0x0'),'id':0x5}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d31=['decompress','build','encode','_protobufRoot','decode','compress','_description','verify','nested','finish','fromJSON','toObject','_protobuf','protobuffactory-cannot-get-descriptor-before-build','Root'];(function(_0x282d2a,_0x2d3166){const _0x3f2996=function(_0x4b0d4e){while(--_0x4b0d4e){_0x282d2a['push'](_0x282d2a['shift']());}};_0x3f2996(++_0x2d3166);}(_0x2d31,0x10c));const _0x3f29=function(_0x282d2a,_0x2d3166){_0x282d2a=_0x282d2a-0x0;let _0x3f2996=_0x2d31[_0x282d2a];return _0x3f2996;};import _0x2ef302 from'protobufjs/light';import{CKEditorError as _0x21a077}from'ckeditor5/src/utils';import{cloneDeep as _0x127323}from'lodash-es';export default class r{constructor(){this[_0x3f29('0x8')]={'nested':{}};}['registerDescriptor'](_0x19c973,_0x5d6a95){this[_0x3f29('0x8')][_0x3f29('0xa')][_0x19c973]=_0x127323(_0x5d6a95);}[_0x3f29('0x3')](){this[_0x3f29('0x5')]=_0x2ef302[_0x3f29('0x1')][_0x3f29('0xc')](this[_0x3f29('0x8')]);}['getDescriptor'](_0x394897){if(!this['_protobufRoot'])throw new _0x21a077(_0x3f29('0x0'),this);return new D(this['_protobufRoot']['lookupType'](_0x394897));}}class D{constructor(_0x36d399){this[_0x3f29('0xe')]=_0x36d399;}[_0x3f29('0x7')](_0x12cffb){const _0x12067f=this[_0x3f29('0xe')][_0x3f29('0x9')](_0x12cffb);if(_0x12067f)throw Error(_0x12067f);return this[_0x3f29('0xe')][_0x3f29('0x4')](this[_0x3f29('0xe')]['create'](_0x12cffb))[_0x3f29('0xb')]();}[_0x3f29('0x2')](_0x128685){return this[_0x3f29('0xe')][_0x3f29('0xd')](this[_0x3f29('0xe')][_0x3f29('0x6')](_0x128685),{'oneofs':!0x0});}}
23
+ const _0x4381=['build','_description','finish','fromJSON','toObject','decompress','decode','Root','_protobuf','create','registerDescriptor','nested','getDescriptor','_protobufRoot','lookupType'];(function(_0xd4897c,_0x438175){const _0x1410cb=function(_0x2fe22c){while(--_0x2fe22c){_0xd4897c['push'](_0xd4897c['shift']());}};_0x1410cb(++_0x438175);}(_0x4381,0x9b));const _0x1410=function(_0xd4897c,_0x438175){_0xd4897c=_0xd4897c-0x0;let _0x1410cb=_0x4381[_0xd4897c];return _0x1410cb;};import _0x51681b from'protobufjs/light';import{CKEditorError as _0xe0bc4b}from'ckeditor5/src/utils';import{cloneDeep as _0x5b8e8e}from'lodash-es';export default class r{constructor(){this[_0x1410('0xb')]={'nested':{}};}[_0x1410('0x5')](_0x568993,_0x5579b4){this['_description'][_0x1410('0x6')][_0x568993]=_0x5b8e8e(_0x5579b4);}[_0x1410('0xa')](){this[_0x1410('0x8')]=_0x51681b[_0x1410('0x2')][_0x1410('0xd')](this[_0x1410('0xb')]);}[_0x1410('0x7')](_0x1d96a4){if(!this['_protobufRoot'])throw new _0xe0bc4b('protobuffactory-cannot-get-descriptor-before-build',this);return new D(this[_0x1410('0x8')][_0x1410('0x9')](_0x1d96a4));}}class D{constructor(_0x2f7109){this['_protobuf']=_0x2f7109;}['compress'](_0xd6176a){const _0x157cf1=this[_0x1410('0x3')]['verify'](_0xd6176a);if(_0x157cf1)throw Error(_0x157cf1);return this[_0x1410('0x3')]['encode'](this[_0x1410('0x3')][_0x1410('0x4')](_0xd6176a))[_0x1410('0xc')]();}[_0x1410('0x0')](_0x451fb4){return this[_0x1410('0x3')][_0x1410('0xe')](this[_0x1410('0x3')][_0x1410('0x1')](_0x451fb4),{'oneofs':!0x0});}}
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59fd=['rootMain','root','main','$graveyard','path','rootGraveyard','length'];(function(_0x4a6202,_0x59fd85){const _0x30e211=function(_0x586d2e){while(--_0x586d2e){_0x4a6202['push'](_0x4a6202['shift']());}};_0x30e211(++_0x59fd85);}(_0x59fd,0x19c));const _0x30e2=function(_0x4a6202,_0x59fd85){_0x4a6202=_0x4a6202-0x0;let _0x30e211=_0x59fd[_0x4a6202];return _0x30e211;};import{cloneDeep as _0x291506,isEqual as _0x4c2bee,isObject as _0x43cbaa}from'lodash-es';export function getPositionShiftedBy(_0x53a37d,_0x4a473a){const _0xca5db5=_0x291506(_0x53a37d);return _0xca5db5['path'][_0xca5db5[_0x30e2('0x5')][_0x30e2('0x0')]-0x1]+=_0x4a473a,_0xca5db5;}export function arePositionsEqual(_0x10ae81,_0x2d2c48){return _0x10ae81[_0x30e2('0x2')]===_0x2d2c48[_0x30e2('0x2')]&&_0x4c2bee(_0x10ae81[_0x30e2('0x5')],_0x2d2c48[_0x30e2('0x5')]);}export function parsePositionBeforeCompression(_0x103fa3){y(_0x103fa3,_0x52ce7d=>(_0x30e2('0x3')==_0x52ce7d[_0x30e2('0x2')]?(_0x52ce7d[_0x30e2('0x1')]=!0x0,delete _0x52ce7d[_0x30e2('0x2')]):_0x30e2('0x4')==_0x52ce7d[_0x30e2('0x2')]&&(_0x52ce7d[_0x30e2('0x6')]=!0x0,delete _0x52ce7d[_0x30e2('0x2')]),_0x52ce7d));}export function parsePositionAfterCompression(_0x4b08cc){y(_0x4b08cc,_0x3034dc=>(_0x3034dc[_0x30e2('0x1')]?(_0x3034dc[_0x30e2('0x2')]=_0x30e2('0x3'),delete _0x3034dc['rootMain']):_0x3034dc[_0x30e2('0x6')]&&(_0x3034dc[_0x30e2('0x2')]=_0x30e2('0x4'),delete _0x3034dc[_0x30e2('0x6')]),_0x3034dc));}function y(_0x1d6f28,_0x4314c2){for(const _0x3aaec2 in _0x1d6f28){const _0x196bd7=_0x1d6f28[_0x3aaec2];'nodes'!==_0x3aaec2&&_0x43cbaa(_0x196bd7)&&(_0x196bd7['path']&&(_0x196bd7[_0x30e2('0x2')]||_0x196bd7['rootMain']||_0x196bd7[_0x30e2('0x6')])?_0x1d6f28[_0x3aaec2]=_0x4314c2(_0x196bd7):y(_0x196bd7,_0x4314c2));}return _0x1d6f28;}
23
+ const _0x4f4a=['path','length','rootMain','root','nodes','rootGraveyard','$graveyard','main'];(function(_0x4130c8,_0x4f4aa5){const _0x39fe01=function(_0x496496){while(--_0x496496){_0x4130c8['push'](_0x4130c8['shift']());}};_0x39fe01(++_0x4f4aa5);}(_0x4f4a,0x176));const _0x39fe=function(_0x4130c8,_0x4f4aa5){_0x4130c8=_0x4130c8-0x0;let _0x39fe01=_0x4f4a[_0x4130c8];return _0x39fe01;};import{cloneDeep as _0x22922d,isEqual as _0x4132cc,isObject as _0x3be89c}from'lodash-es';export function getPositionShiftedBy(_0x2d35bf,_0x1fb945){const _0x15bee4=_0x22922d(_0x2d35bf);return _0x15bee4[_0x39fe('0x2')][_0x15bee4[_0x39fe('0x2')][_0x39fe('0x3')]-0x1]+=_0x1fb945,_0x15bee4;}export function arePositionsEqual(_0x336e99,_0xd8dd35){return _0x336e99[_0x39fe('0x5')]===_0xd8dd35[_0x39fe('0x5')]&&_0x4132cc(_0x336e99[_0x39fe('0x2')],_0xd8dd35[_0x39fe('0x2')]);}export function parsePositionBeforeCompression(_0xb2804){y(_0xb2804,_0x3464b7=>(_0x39fe('0x1')==_0x3464b7['root']?(_0x3464b7[_0x39fe('0x4')]=!0x0,delete _0x3464b7[_0x39fe('0x5')]):_0x39fe('0x0')==_0x3464b7[_0x39fe('0x5')]&&(_0x3464b7[_0x39fe('0x7')]=!0x0,delete _0x3464b7[_0x39fe('0x5')]),_0x3464b7));}export function parsePositionAfterCompression(_0x33787b){y(_0x33787b,_0x135b49=>(_0x135b49[_0x39fe('0x4')]?(_0x135b49[_0x39fe('0x5')]=_0x39fe('0x1'),delete _0x135b49[_0x39fe('0x4')]):_0x135b49[_0x39fe('0x7')]&&(_0x135b49[_0x39fe('0x5')]=_0x39fe('0x0'),delete _0x135b49[_0x39fe('0x7')]),_0x135b49));}function y(_0x1d4959,_0x513548){for(const _0x474e0d in _0x1d4959){const _0x562393=_0x1d4959[_0x474e0d];_0x39fe('0x6')!==_0x474e0d&&_0x3be89c(_0x562393)&&(_0x562393['path']&&(_0x562393['root']||_0x562393[_0x39fe('0x4')]||_0x562393[_0x39fe('0x7')])?_0x1d4959[_0x474e0d]=_0x513548(_0x562393):y(_0x562393,_0x513548));}return _0x1d4959;}