@ckeditor/ckeditor5-operations-compressor 29.2.0 → 32.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-2021, [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
@@ -17,11 +17,11 @@ 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) Frederico Knabben. All rights reserved.
20
+ Copyright (c) 2003-2021, [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.
24
24
 
25
25
  ### Trademarks
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-operations-compressor",
3
- "version": "29.2.0",
3
+ "version": "32.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": "^29.2.0",
30
+ "ckeditor5": "^32.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 _0x20a0=['push','compress','decompress','types','_compressSingleOperation','shift','_compareOperations','buffers','_combineNext','_context'];(function(_0x4dc83f,_0x20a0a9){const _0x2d0100=function(_0x6855e6){while(--_0x6855e6){_0x4dc83f['push'](_0x4dc83f['shift']());}};_0x2d0100(++_0x20a0a9);}(_0x20a0,0x1ab));const _0x2d01=function(_0x4dc83f,_0x20a0a9){_0x4dc83f=_0x4dc83f-0x0;let _0x2d0100=_0x20a0[_0x4dc83f];return _0x2d0100;};import{cloneDeep as _0x12bf51}from'lodash-es';export default class j{constructor(_0x3757e1,_0x5aeb4e){this['id']=_0x3757e1,this[_0x2d01('0x2')]=_0x5aeb4e;}[_0x2d01('0x4')](_0xe1abe,_0x450af5){let _0x4c357a;for(;_0x450af5['length']>0x1&&this[_0x2d01('0x9')](_0x450af5[0x0],_0x450af5[0x1]);)_0x4c357a?(_0x4c357a=this[_0x2d01('0x1')](_0x450af5[_0x2d01('0x8')](),_0x4c357a),_0xe1abe[_0x2d01('0x6')][_0x2d01('0x3')](0x0)):(_0x4c357a=_0x12bf51(_0x450af5[_0x2d01('0x8')]()),_0xe1abe['types'][_0x2d01('0x3')](this['id']));return!!_0x4c357a&&(_0x4c357a=this[_0x2d01('0x1')](_0x450af5[_0x2d01('0x8')](),_0x4c357a),_0xe1abe[_0x2d01('0x6')]['push'](0x0),_0xe1abe[_0x2d01('0x0')][_0x2d01('0x3')](this[_0x2d01('0x7')](_0x4c357a)),!0x0);}[_0x2d01('0x5')](_0x305ef2,_0xdeda25){const _0x5bf0a4=this['_decompressSingleOperation'](_0xdeda25);for(;0x0==_0xdeda25['types'][0x0];)_0xdeda25['types'][_0x2d01('0x8')](),_0x305ef2['push'](this['_splitCurrent'](_0x5bf0a4));_0x305ef2[_0x2d01('0x3')](_0x5bf0a4);}}
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);}}
@@ -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 _0x5baf=['_splitCurrent','howMany','decompress','wasUndone','_compareOperations','root','_getCompressorByName','__className','_context','$graveyard','sourcePosition','compress','targetPosition','_compressSingleOperation','_combineNext','MoveOperation','_decompressSingleOperation'];(function(_0xe84c96,_0x5baf1b){const _0x16d75b=function(_0x54dbde){while(--_0x54dbde){_0xe84c96['push'](_0xe84c96['shift']());}};_0x16d75b(++_0x5baf1b);}(_0x5baf,0xa1));const _0x16d7=function(_0xe84c96,_0x5baf1b){_0xe84c96=_0xe84c96-0x0;let _0x16d75b=_0x5baf[_0xe84c96];return _0x16d75b;};import _0x327c83 from'./actioncompressor';import{arePositionsEqual as _0x3aaa1b,getPositionShiftedBy as _0xbb9ec4}from'../utils';import{cloneDeep as _0x15a81f}from'lodash-es';export default class u extends _0x327c83{[_0x16d7('0x6')](_0x1bede8,_0x6af421){return _0x6af421[_0x16d7('0xa')]++,_0x6af421[_0x16d7('0x2')]=_0x15a81f(_0x1bede8[_0x16d7('0x2')]),_0x6af421;}[_0x16d7('0x9')](_0x52d769){const _0x5cf1dd=_0x15a81f(_0x52d769);return _0x52d769['howMany']--,_0x5cf1dd[_0x16d7('0xa')]=0x1,_0x5cf1dd['sourcePosition']=_0xbb9ec4(_0x5cf1dd[_0x16d7('0x2')],_0x52d769[_0x16d7('0xa')]),_0x5cf1dd;}[_0x16d7('0xd')](_0x426249,_0x1c7273){return!(!S(_0x426249)||!S(_0x1c7273))&&(_0x3aaa1b(_0xbb9ec4(_0x426249[_0x16d7('0x2')],-0x1),_0x1c7273[_0x16d7('0x2')])&&_0x3aaa1b(_0x426249['targetPosition'],_0x1c7273[_0x16d7('0x4')]));}[_0x16d7('0x5')](_0x31652e){const _0x4da0ce={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x16d7('0x0')][_0x16d7('0xf')](_0x16d7('0x7'))[_0x16d7('0x3')](_0x4da0ce,[_0x31652e]),_0x4da0ce['buffers'][0x0];}[_0x16d7('0x8')](_0x3d11ea){const _0x183c2b=[];return this[_0x16d7('0x0')]['_getCompressorByName'](_0x16d7('0x7'))[_0x16d7('0xb')](_0x183c2b,_0x3d11ea),_0x183c2b[0x0];}}function S(_0x52a57e){return _0x16d7('0x7')==_0x52a57e[_0x16d7('0x10')]&&_0x16d7('0x1')==_0x52a57e[_0x16d7('0x4')][_0x16d7('0xe')]&&0x1==_0x52a57e[_0x16d7('0xa')]&&!_0x52a57e[_0x16d7('0xc')];}
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')];}
@@ -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 _0x52fb=['compress','__className','_context','_compareOperations','howMany','$graveyard','_combineNext','MoveOperation','buffers','sourcePosition','_getCompressorByName','targetPosition','_splitCurrent','wasUndone','_compressSingleOperation','_decompressSingleOperation','decompress'];(function(_0x538000,_0x52fbc1){const _0x5612a9=function(_0x122e07){while(--_0x122e07){_0x538000['push'](_0x538000['shift']());}};_0x5612a9(++_0x52fbc1);}(_0x52fb,0x1c3));const _0x5612=function(_0x538000,_0x52fbc1){_0x538000=_0x538000-0x0;let _0x5612a9=_0x52fb[_0x538000];return _0x5612a9;};import _0x1e5a94 from'./actioncompressor';import{arePositionsEqual as _0x14337c}from'../utils';import{cloneDeep as _0x4cc811}from'lodash-es';export default class l extends _0x1e5a94{[_0x5612('0xe')](_0x1df394,_0x6d9111){return _0x6d9111[_0x5612('0xc')]++,_0x6d9111;}[_0x5612('0x3')](_0xc86cee){const _0x5a2ec4=_0x4cc811(_0xc86cee);return _0x5a2ec4[_0x5612('0xc')]=0x1,_0xc86cee[_0x5612('0xc')]--,_0x5a2ec4;}[_0x5612('0xb')](_0x5deeb9,_0x2e323c){return!(!S(_0x5deeb9)||!S(_0x2e323c))&&(_0x14337c(_0x5deeb9[_0x5612('0x0')],_0x2e323c[_0x5612('0x0')])&&_0x14337c(_0x5deeb9['targetPosition'],_0x2e323c[_0x5612('0x2')]));}[_0x5612('0x5')](_0xb466f4){const _0x11a117={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5612('0xa')][_0x5612('0x1')](_0x5612('0xf'))[_0x5612('0x8')](_0x11a117,[_0xb466f4]),_0x11a117[_0x5612('0x10')][0x0];}[_0x5612('0x6')](_0xfa527){const _0x33ed1a=[];return this['_context'][_0x5612('0x1')]('MoveOperation')[_0x5612('0x7')](_0x33ed1a,_0xfa527),_0x33ed1a[0x0];}}function S(_0x1fcbc7){return _0x5612('0xf')==_0x1fcbc7[_0x5612('0x9')]&&_0x5612('0xd')==_0x1fcbc7[_0x5612('0x2')]['root']&&0x1==_0x1fcbc7['howMany']&&!_0x1fcbc7[_0x5612('0x4')];}
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')];}
@@ -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 _0x478c=['wasUndone','buffers','length','attributes','_splitCurrent','_compressSingleOperation','_getCompressorByName','_decompressSingleOperation','nodes','from','InsertOperation','data','_compareOperations','_context','_combineNext','position','compress'];(function(_0x30d01f,_0x478c85){const _0x44bc42=function(_0x2646a1){while(--_0x2646a1){_0x30d01f['push'](_0x30d01f['shift']());}};_0x44bc42(++_0x478c85);}(_0x478c,0x131));const _0x44bc=function(_0x30d01f,_0x478c85){_0x30d01f=_0x30d01f-0x0;let _0x44bc42=_0x478c[_0x30d01f];return _0x44bc42;};import _0xe63651 from'./actioncompressor';import{arePositionsEqual as _0x52aaaf,getPositionShiftedBy as _0x2d59c5}from'../utils';import{cloneDeep as _0x1a6477}from'lodash-es';export default class g extends _0xe63651{[_0x44bc('0xf')](_0x15d40b,_0x1353e5){return _0x1353e5[_0x44bc('0x9')][0x0]['data']+=_0x15d40b[_0x44bc('0x9')][0x0]['data'],_0x1353e5;}[_0x44bc('0x5')](_0x19b61){const _0x17ebca=_0x1a6477(_0x19b61),_0x4f374c=_0x17ebca['nodes'][0x0],_0x533117=_0x19b61[_0x44bc('0x9')][0x0],_0x2e45cd=Array['from'](_0x533117[_0x44bc('0xc')])[0x0],_0x4cf641=_0x2e45cd[_0x44bc('0x3')];return _0x4f374c[_0x44bc('0xc')]=_0x2e45cd,_0x533117[_0x44bc('0xc')]=_0x533117[_0x44bc('0xc')]['substr'](_0x4cf641),_0x19b61['position']=_0x2d59c5(_0x19b61[_0x44bc('0x10')],_0x4cf641),_0x17ebca;}[_0x44bc('0xd')](_0x363a60,_0x27d744){if(S(_0x363a60)&&S(_0x27d744)){const _0x4d31b0=_0x363a60[_0x44bc('0x9')][0x0][_0x44bc('0xc')][_0x44bc('0x3')],_0x507a2c=_0x52aaaf(_0x2d59c5(_0x363a60[_0x44bc('0x10')],_0x4d31b0),_0x27d744[_0x44bc('0x10')]),_0x29ff90=_0x363a60[_0x44bc('0x9')][0x0],_0x1df210=_0x27d744['nodes'][0x0];return _0x507a2c&&function(_0x856ab4,_0x5e3e85){const _0x2e67b7=Object['keys'](_0x856ab4[_0x44bc('0x4')]||{}),_0x3a93d3=Object['keys'](_0x5e3e85[_0x44bc('0x4')]||{});if(_0x2e67b7[_0x44bc('0x3')]!==_0x3a93d3[_0x44bc('0x3')])return!0x1;return _0x2e67b7['every'](_0x246d69=>_0x5e3e85[_0x44bc('0x4')][_0x246d69]&&_0x5e3e85[_0x44bc('0x4')][_0x246d69]===_0x856ab4['attributes'][_0x246d69]);}(_0x29ff90,_0x1df210);}return!0x1;}[_0x44bc('0x6')](_0x5dbc3e){const _0x24d8e1={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')[_0x44bc('0x0')](_0x24d8e1,[_0x5dbc3e]),_0x24d8e1[_0x44bc('0x2')][0x0];}[_0x44bc('0x8')](_0x3f6cbd){const _0x3f9f2b=[];return this[_0x44bc('0xe')][_0x44bc('0x7')](_0x44bc('0xb'))['decompress'](_0x3f9f2b,_0x3f6cbd),_0x3f9f2b[0x0];}}function S(_0x5db018){return'InsertOperation'==_0x5db018['__className']&&0x1==_0x5db018[_0x44bc('0x9')][_0x44bc('0x3')]&&_0x5db018[_0x44bc('0x9')][0x0][_0x44bc('0xc')]&&!_0x5db018[_0x44bc('0x1')]&&0x1==Array[_0x44bc('0xa')](_0x5db018[_0x44bc('0x9')][0x0][_0x44bc('0xc')])[_0x44bc('0x3')];}
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')];}
@@ -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 _0x51fa=['oldRange','user:','shift','start','decompress','types','name','stickiness','__className','_context','toNone','_compressSingleOperation','compress','user:position:','newRange','split','push','startsWith','_decompressSingleOperation','_getCompressorByName','buffers','end','MarkerOperation'];(function(_0x387597,_0x51faa9){const _0x2c8b63=function(_0x4f931f){while(--_0x4f931f){_0x387597['push'](_0x387597['shift']());}};_0x2c8b63(++_0x51faa9);}(_0x51fa,0x151));const _0x2c8b=function(_0x387597,_0x51faa9){_0x387597=_0x387597-0x0;let _0x2c8b63=_0x51fa[_0x387597];return _0x2c8b63;};import _0x12602e from'./actioncompressor';import{arePositionsEqual as _0x2c939d}from'../utils';import{cloneDeep as _0x2e5961}from'lodash-es';export default class M extends _0x12602e{[_0x2c8b('0x14')](_0x2e0915,_0x2c3c46){if(!function(_0x37cb5d,_0x1c765c){if(!_0x37cb5d||!_0x1c765c)return!0x1;if('MarkerOperation'!=_0x37cb5d[_0x2c8b('0x10')]||'MarkerOperation'!=_0x1c765c[_0x2c8b('0x10')])return!0x1;if(_0x37cb5d['name']['startsWith'](_0x2c8b('0x9'))&&_0x1c765c[_0x2c8b('0xe')][_0x2c8b('0x2')](_0x2c8b('0x9'))&&_0x37cb5d[_0x2c8b('0xe')]!=_0x1c765c[_0x2c8b('0xe')])return!0x0;return!0x1;}(_0x2c3c46[0x0],_0x2c3c46[0x1]))return!0x1;const _0x294bb9=_0x2c3c46[_0x2c8b('0xa')]();return _0x294bb9[_0x2c8b('0x8')]=null,_0x294bb9[_0x2c8b('0x16')]&&_0x2c939d(_0x294bb9['newRange'][_0x2c8b('0xb')],_0x294bb9[_0x2c8b('0x16')]['end'])&&(_0x294bb9[_0x2c8b('0x16')][_0x2c8b('0x6')]=null),_0x2c3c46[_0x2c8b('0xa')](),_0x2e0915[_0x2c8b('0xd')][_0x2c8b('0x1')](this['id']),_0x2e0915[_0x2c8b('0xd')][_0x2c8b('0x1')](0x0),_0x2e0915[_0x2c8b('0x5')][_0x2c8b('0x1')](this[_0x2c8b('0x13')](_0x294bb9)),!0x0;}[_0x2c8b('0xc')](_0x36b291,_0x2e64b9){const _0x3b58ea=this[_0x2c8b('0x3')](_0x2e64b9);_0x3b58ea['newRange']&&!_0x3b58ea['newRange'][_0x2c8b('0x6')]&&(_0x3b58ea[_0x2c8b('0x16')]['end']=_0x2e5961(_0x3b58ea[_0x2c8b('0x16')]['start']));const _0x55aaff=_0x2e5961(_0x3b58ea);_0x55aaff['newRange']&&(_0x55aaff[_0x2c8b('0x16')][_0x2c8b('0xb')][_0x2c8b('0xf')]=_0x2c8b('0x12'),_0x55aaff[_0x2c8b('0x16')][_0x2c8b('0x6')]=_0x2e5961(_0x55aaff['newRange'][_0x2c8b('0xb')])),_0x55aaff['name']=_0x2c8b('0x15')+_0x55aaff[_0x2c8b('0xe')][_0x2c8b('0x0')](':')[0x2],_0x2e64b9[_0x2c8b('0xd')][_0x2c8b('0xa')](),_0x36b291[_0x2c8b('0x1')](_0x3b58ea),_0x36b291['push'](_0x55aaff);}['_compressSingleOperation'](_0x4b3c90){const _0x57b61b={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x2c8b('0x4')]('MarkerOperation')['compress'](_0x57b61b,[_0x4b3c90]),_0x57b61b[_0x2c8b('0x5')][0x0];}[_0x2c8b('0x3')](_0x6c7fc5){const _0x4c3fe9=[];return this[_0x2c8b('0x11')][_0x2c8b('0x4')](_0x2c8b('0x7'))[_0x2c8b('0xc')](_0x4c3fe9,_0x6c7fc5),_0x4c3fe9[0x0];}}
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];}}
@@ -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 _0x5398=['string','Element','repeated','bool','Position'];(function(_0x5f0291,_0x5398ea){var _0x3069d7=function(_0x62267b){while(--_0x62267b){_0x5f0291['push'](_0x5f0291['shift']());}};_0x3069d7(++_0x5398ea);}(_0x5398,0x1f3));var _0x3069=function(_0x5f0291,_0x5398ea){_0x5f0291=_0x5f0291-0x0;var _0x3069d7=_0x5398[_0x5f0291];return _0x3069d7;};export default{'Position':{'fields':{'root':{'type':'string','id':0x1},'rootMain':{'type':_0x3069('0x4'),'id':0x2},'rootGraveyard':{'type':_0x3069('0x4'),'id':0x3},'path':{'rule':_0x3069('0x3'),'type':'uint32','id':0x4},'stickiness':{'type':_0x3069('0x1'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x3069('0x0'),'id':0x1},'end':{'type':_0x3069('0x0'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x3069('0x1'),'id':0x1},'children':{'rule':'repeated','type':_0x3069('0x2'),'id':0x2},'data':{'type':'string','id':0x3},'attributesBoolean':{'keyType':_0x3069('0x1'),'type':_0x3069('0x4'),'id':0x4},'attributesJson':{'type':'string','id':0x5}}}};
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}}}};
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 _0x35aa=['_registerCompressor','CommentMarkerOperation','decompress','_registerOperationCompressor','Range','length','InsertOperation','_getCompressorByName','TypingAction','baseVersion','_compressorByName','ForwardDeletingAction','RootAttributeOperation','description','AttributeOperation','registerDescriptor','_protobufFactory','MarkerOperation','NoOperation','UserSelectionAction','MergeOperation','types','getDescriptor','build','RenameOperation','get','suggestion','Element','_compressorById','compress','no-operations-provided','DeletingAction','set','MoveOperation','SuggestionMarkerOperation','_registerActionCompressor','Position','__className','SplitOperation'];(function(_0x68c684,_0x35aacf){const _0x5102fe=function(_0xc38523){while(--_0xc38523){_0x68c684['push'](_0x68c684['shift']());}};_0x5102fe(++_0x35aacf);}(_0x35aa,0x7f));const _0x5102=function(_0x68c684,_0x35aacf){_0x68c684=_0x68c684-0x0;let _0x5102fe=_0x35aa[_0x68c684];return _0x5102fe;};import{CKEditorError as _0x27559d}from'ckeditor5/src/utils';import _0x5f3515 from'./protobuffactory';import _0x539f96 from'./commondescriptions';import _0x5f3faf from'./operationcompressor/attributeoperationcompressor';import _0x3646a6 from'./operationcompressor/insertoperationcompressor';import _0x3bbee5 from'./operationcompressor/markeroperationcompressor';import _0x1c6c37 from'./operationcompressor/mergeoperationcompressor';import _0x4a1c72 from'./operationcompressor/moveoperationcompressor';import _0x4a679e from'./operationcompressor/renameoperationcompressor';import _0x61d50d from'./operationcompressor/rootattributeoperationcompressor';import _0x51927b from'./operationcompressor/splitoperationcompressor';import _0x1a1d30 from'./operationcompressor/nooperationcompressor';import _0x377053 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x49505f from'./actioncompressor/typingactioncompressor';import _0x1173d2 from'./actioncompressor/deletingactioncompressor';import _0x4e90cb from'./actioncompressor/forwarddeletingactioncompressor';import _0x260ea8 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x5102('0x12')]=new Map(),this[_0x5102('0x0')]=new Map(),this[_0x5102('0x6')]=new _0x5f3515(),this[_0x5102('0x6')][_0x5102('0x5')](_0x5102('0x1a'),_0x539f96[_0x5102('0x1a')]),this[_0x5102('0x6')][_0x5102('0x5')](_0x5102('0x21'),_0x539f96[_0x5102('0x21')]),this[_0x5102('0x6')][_0x5102('0x5')](_0x5102('0x11'),_0x539f96[_0x5102('0x11')]),this[_0x5102('0x6')][_0x5102('0x5')](_0x5102('0x4'),_0x5f3faf[_0x5102('0x3')]),this[_0x5102('0x6')][_0x5102('0x5')](_0x5102('0x23'),_0x3646a6['description']),this[_0x5102('0x6')][_0x5102('0x5')]('MarkerOperation',_0x3bbee5['description']),this[_0x5102('0x6')]['registerDescriptor'](_0x5102('0xa'),_0x1c6c37['description']),this[_0x5102('0x6')][_0x5102('0x5')]('MoveOperation',_0x4a1c72['description']),this[_0x5102('0x6')][_0x5102('0x5')](_0x5102('0xe'),_0x4a679e[_0x5102('0x3')]),this[_0x5102('0x6')][_0x5102('0x5')]('RootAttributeOperation',_0x61d50d[_0x5102('0x3')]),this['_protobufFactory']['registerDescriptor'](_0x5102('0x1c'),_0x51927b[_0x5102('0x3')]),this['_protobufFactory'][_0x5102('0xd')](),this[_0x5102('0x1d')](0x1,'NoOperation',new _0x1a1d30(0x1,_0x5102('0x8'))),this[_0x5102('0x20')](0xa,'AttributeOperation',_0x5f3faf),this[_0x5102('0x20')](0xb,'InsertOperation',_0x3646a6),this[_0x5102('0x20')](0xc,_0x5102('0x7'),_0x3bbee5),this[_0x5102('0x20')](0xd,'MergeOperation',_0x1c6c37),this[_0x5102('0x20')](0xe,_0x5102('0x17'),_0x4a1c72),this[_0x5102('0x20')](0xf,_0x5102('0xe'),_0x4a679e),this[_0x5102('0x20')](0x10,_0x5102('0x2'),_0x61d50d),this[_0x5102('0x20')](0x11,'SplitOperation',_0x51927b);const _0x24f704=this['_protobufFactory'][_0x5102('0xc')]('MarkerOperation');this[_0x5102('0x1d')](0x12,'CommentMarkerOperation',new _0x377053(0x12,_0x5102('0x7'),_0x24f704,'comment')),this[_0x5102('0x1d')](0x13,_0x5102('0x18'),new _0x377053(0x13,_0x5102('0x7'),_0x24f704,_0x5102('0x10'))),this[_0x5102('0x19')](0x64,_0x5102('0x25'),_0x49505f),this[_0x5102('0x19')](0x65,_0x5102('0x15'),_0x1173d2),this['_registerActionCompressor'](0x66,_0x5102('0x1'),_0x4e90cb),this[_0x5102('0x19')](0x67,'UserSelectionAction',_0x260ea8);}[_0x5102('0x20')](_0x2dc0bf,_0x204f2c,_0x14c398){const _0x5e6266=new _0x14c398(_0x2dc0bf,_0x204f2c,this[_0x5102('0x6')][_0x5102('0xc')](_0x204f2c));this[_0x5102('0x1d')](_0x2dc0bf,_0x204f2c,_0x5e6266);}[_0x5102('0x19')](_0x5302e4,_0x336a5a,_0x8da721){const _0x29be78=new _0x8da721(_0x5302e4,this);this[_0x5102('0x1d')](_0x5302e4,_0x336a5a,_0x29be78);}[_0x5102('0x1d')](_0x1690d6,_0x428d0f,_0x221684){this[_0x5102('0x12')]['set'](_0x1690d6,_0x221684),this[_0x5102('0x0')][_0x5102('0x16')](_0x428d0f,_0x221684);}[_0x5102('0x24')](_0x45a2c7){return this[_0x5102('0x0')][_0x5102('0xf')](_0x45a2c7);}[_0x5102('0x13')](_0x4bb009){if(!_0x4bb009||!_0x4bb009[0x0])throw new _0x27559d(_0x5102('0x14'),this);const _0x169121={'types':[],'buffers':[],'baseVersion':_0x4bb009[0x0]['baseVersion']};for(;_0x4bb009[_0x5102('0x22')];)this[_0x5102('0x24')](_0x5102('0x9'))[_0x5102('0x13')](_0x169121,_0x4bb009)||this[_0x5102('0x24')](_0x5102('0x25'))['compress'](_0x169121,_0x4bb009)||this['_getCompressorByName'](_0x5102('0x15'))[_0x5102('0x13')](_0x169121,_0x4bb009)||this['_getCompressorByName'](_0x5102('0x1'))[_0x5102('0x13')](_0x169121,_0x4bb009)||this[_0x5102('0x24')](_0x5102('0x1e'))[_0x5102('0x13')](_0x169121,_0x4bb009)||this[_0x5102('0x24')](_0x5102('0x18'))[_0x5102('0x13')](_0x169121,_0x4bb009)||this['_getCompressorByName'](_0x4bb009[0x0][_0x5102('0x1b')])['compress'](_0x169121,_0x4bb009);return _0x169121;}['decompress'](_0x4d6b52){const _0x1d1cbd=[];for(;_0x4d6b52[_0x5102('0xb')][_0x5102('0x22')];){this['_compressorById'][_0x5102('0xf')](_0x4d6b52[_0x5102('0xb')][0x0])[_0x5102('0x1f')](_0x1d1cbd,_0x4d6b52);}return _0x1d1cbd['forEach']((_0x2168ae,_0x527de9)=>_0x2168ae[_0x5102('0x26')]=_0x4d6b52[_0x5102('0x26')]+_0x527de9),_0x1d1cbd;}}
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;}}
@@ -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 _0x4361=['_omittedNamespace','compress','replace','__className','name','decompress','length','MarkerOperation'];(function(_0x44aaa6,_0x4361b0){const _0x2b2e73=function(_0x31c1a6){while(--_0x31c1a6){_0x44aaa6['push'](_0x44aaa6['shift']());}};_0x2b2e73(++_0x4361b0);}(_0x4361,0x184));const _0x2b2e=function(_0x44aaa6,_0x4361b0){_0x44aaa6=_0x44aaa6-0x0;let _0x2b2e73=_0x4361[_0x44aaa6];return _0x2b2e73;};import _0x55cd0b from'./markeroperationcompressor';export default class O extends _0x55cd0b{constructor(_0x2f658c,_0x28884e,_0xdc8036,_0xaffedd){super(_0x2f658c,_0x28884e,_0xdc8036),this[_0x2b2e('0x4')]=_0xaffedd+':';}[_0x2b2e('0x5')](_0x287e33,_0x21979d){return!(_0x2b2e('0x3')!=_0x21979d[0x0][_0x2b2e('0x7')]||!_0x21979d[0x0]['name']['startsWith'](this['_omittedNamespace']))&&(_0x21979d[0x0][_0x2b2e('0x0')]=_0x21979d[0x0]['name'][_0x2b2e('0x6')](new RegExp('^'+this['_omittedNamespace']),''),super[_0x2b2e('0x5')](_0x287e33,_0x21979d),!0x0);}['decompress'](_0x338f9,_0x1945ae){super[_0x2b2e('0x1')](_0x338f9,_0x1945ae);const _0x2246e4=_0x338f9[_0x338f9[_0x2b2e('0x2')]-0x1];_0x2246e4[_0x2b2e('0x0')]=this['_omittedNamespace']+_0x2246e4[_0x2b2e('0x0')];}}
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'];}}
@@ -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 _0xf29d=['shift','boolean','string','bool','decompress','_protobufDescriptor','stringify','newValue','Boolean','compress','push','description','__className','oldValue','Json'];(function(_0x1861af,_0xf29d50){const _0xa1b86e=function(_0x289137){while(--_0x289137){_0x1861af['push'](_0x1861af['shift']());}};_0xa1b86e(++_0xf29d50);}(_0xf29d,0xca));const _0xa1b8=function(_0x1861af,_0xf29d50){_0x1861af=_0x1861af-0x0;let _0xa1b86e=_0xf29d[_0x1861af];return _0xa1b86e;};import _0x3a4f7b from'./operationcompressor';import{parsePositionBeforeCompression as _0x45b21e,parsePositionAfterCompression as _0x3a3309}from'../utils';export default class i extends _0x3a4f7b{static get[_0xa1b8('0x4')](){return{'fields':{'range':{'type':'Range','id':0x1},'key':{'type':_0xa1b8('0xa'),'id':0x2},'oldValueBoolean':{'type':_0xa1b8('0xb'),'id':0x3},'oldValueJson':{'type':_0xa1b8('0xa'),'id':0x4},'newValueBoolean':{'type':'bool','id':0x5},'newValueJson':{'type':'string','id':0x6},'wasUndone':{'type':_0xa1b8('0xb'),'id':0x7}}};}[_0xa1b8('0x2')](_0x21a5e9,_0x27d312){const _0xcd1d8a=_0x27d312['shift']();$(_0xa1b8('0x6'),_0xcd1d8a),$('newValue',_0xcd1d8a),_0x45b21e(_0xcd1d8a),_0x21a5e9['buffers']['push'](this[_0xa1b8('0xd')][_0xa1b8('0x2')](_0xcd1d8a)),_0x21a5e9['types'][_0xa1b8('0x3')](this['id']);}[_0xa1b8('0xc')](_0x20bec6,_0x1b5d7c){const {types:_0x225c80,buffers:_0x552e96}=_0x1b5d7c,_0x3f0c1e=this['_protobufDescriptor'][_0xa1b8('0xc')](_0x552e96[_0xa1b8('0x8')]());_0x225c80[_0xa1b8('0x8')](),N('oldValue',_0x3f0c1e),N(_0xa1b8('0x0'),_0x3f0c1e),_0x3a3309(_0x3f0c1e),_0x3f0c1e[_0xa1b8('0x5')]=this['operationName'],_0x20bec6[_0xa1b8('0x3')](_0x3f0c1e);}}function $(_0x31b071,_0x3a554a){const _0x4f7d85=_0x3a554a[_0x31b071];_0xa1b8('0x9')==typeof _0x4f7d85?_0x3a554a[_0x31b071+'Boolean']=_0x4f7d85:_0x3a554a[_0x31b071+_0xa1b8('0x7')]=JSON[_0xa1b8('0xe')](_0x4f7d85);}function N(_0x290bb3,_0x211f79){const _0xfc9770=_0x290bb3+_0xa1b8('0x7');_0x211f79[_0xfc9770]?(_0x211f79[_0x290bb3]=JSON['parse'](_0x211f79[_0xfc9770]),delete _0x211f79[_0xfc9770]):(_0x211f79[_0x290bb3]=_0x211f79[_0x290bb3+_0xa1b8('0x1')],delete _0x211f79[_0x290bb3+_0xa1b8('0x1')]);}
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')]);}
@@ -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 _0x122c=['Element','shift','_protobufDescriptor','buffers','push','repeated','compress','parse','bool','attributesBoolean','Position','attributesJson','stringify','decompress','operationName','description','boolean','attributes','keys','children','nodes'];(function(_0x10520a,_0x122c5c){const _0x2fe8d8=function(_0x345360){while(--_0x345360){_0x10520a['push'](_0x10520a['shift']());}};_0x2fe8d8(++_0x122c5c);}(_0x122c,0xa8));const _0x2fe8=function(_0x10520a,_0x122c5c){_0x10520a=_0x10520a-0x0;let _0x2fe8d8=_0x122c[_0x10520a];return _0x2fe8d8;};import _0x563472 from'./operationcompressor';import{parsePositionBeforeCompression as _0x4ab412,parsePositionAfterCompression as _0x4efc6e}from'../utils';export default class s extends _0x563472{static get[_0x2fe8('0xf')](){return{'fields':{'position':{'type':_0x2fe8('0xa'),'id':0x1},'nodes':{'rule':_0x2fe8('0x5'),'type':_0x2fe8('0x0'),'id':0x2},'shouldReceiveAttributes':{'type':_0x2fe8('0x8'),'id':0x3},'wasUndone':{'type':_0x2fe8('0x8'),'id':0x4}}};}[_0x2fe8('0x6')](_0x11c18a,_0x2dfd02){const _0xf5ab88=_0x2dfd02[_0x2fe8('0x1')]();A(_0xf5ab88[_0x2fe8('0x14')]),_0x4ab412(_0xf5ab88),_0x11c18a[_0x2fe8('0x3')][_0x2fe8('0x4')](this['_protobufDescriptor'][_0x2fe8('0x6')](_0xf5ab88)),_0x11c18a['types'][_0x2fe8('0x4')](this['id']);}[_0x2fe8('0xd')](_0x53bbe8,_0x17b394){const {types:_0xf797c9,buffers:_0x2252e2}=_0x17b394,_0x2e1979=this[_0x2fe8('0x2')]['decompress'](_0x2252e2[_0x2fe8('0x1')]());_0xf797c9['shift'](),_0x2e1979[_0x2fe8('0x14')]||(_0x2e1979['nodes']=[]),E(_0x2e1979[_0x2fe8('0x14')]),_0x4efc6e(_0x2e1979),_0x2e1979['__className']=this[_0x2fe8('0xe')],_0x53bbe8['push'](_0x2e1979);}}function A(_0x20c9fc){for(const _0x861a85 of _0x20c9fc){if(_0x861a85[_0x2fe8('0x11')]){const _0x386747=_0x861a85[_0x2fe8('0x11')];R(_0x386747)?_0x861a85[_0x2fe8('0x9')]=_0x386747:_0x861a85[_0x2fe8('0xb')]=JSON[_0x2fe8('0xc')](_0x386747);}_0x861a85[_0x2fe8('0x13')]&&A(_0x861a85['children']);}}function E(_0x2fd374){for(const _0x186f90 of _0x2fd374)(_0x186f90[_0x2fe8('0x9')]||_0x186f90[_0x2fe8('0xb')])&&(_0x186f90[_0x2fe8('0x9')]?(_0x186f90['attributes']=_0x186f90[_0x2fe8('0x9')],delete _0x186f90[_0x2fe8('0x9')]):(_0x186f90[_0x2fe8('0x11')]=JSON[_0x2fe8('0x7')](_0x186f90[_0x2fe8('0xb')]),delete _0x186f90['attributesJson'])),_0x186f90[_0x2fe8('0x13')]&&E(_0x186f90[_0x2fe8('0x13')]);}function R(_0x1b60ee){return Object[_0x2fe8('0x12')](_0x1b60ee)['every'](_0x44df9b=>_0x2fe8('0x10')==typeof _0x1b60ee[_0x44df9b]);}
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]);}
@@ -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 _0xdcad=['string','decompress','newRange','oldRange','length','bool','Range'];(function(_0x40e948,_0xdcad62){const _0x5249e2=function(_0x23c11a){while(--_0x23c11a){_0x40e948['push'](_0x40e948['shift']());}};_0x5249e2(++_0xdcad62);}(_0xdcad,0x174));const _0x5249=function(_0x40e948,_0xdcad62){_0x40e948=_0x40e948-0x0;let _0x5249e2=_0xdcad[_0x40e948];return _0x5249e2;};import _0x37677f from'./operationcompressor';export default class n extends _0x37677f{static get['description'](){return{'fields':{'name':{'type':_0x5249('0x6'),'id':0x1},'oldRange':{'type':_0x5249('0x5'),'id':0x2},'newRange':{'type':_0x5249('0x5'),'id':0x3},'affectsData':{'type':_0x5249('0x4'),'id':0x4},'wasUndone':{'type':_0x5249('0x4'),'id':0x5}}};}[_0x5249('0x0')](_0x5b7ea9,_0x144d77){super[_0x5249('0x0')](_0x5b7ea9,_0x144d77);const _0x45e12d=_0x5b7ea9[_0x5b7ea9[_0x5249('0x3')]-0x1];_0x45e12d[_0x5249('0x2')]||(_0x45e12d['oldRange']=null),_0x45e12d[_0x5249('0x1')]||(_0x45e12d[_0x5249('0x1')]=null);}}
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);}}
@@ -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 _0x45b9=['uint32','Position','bool'];(function(_0xe11a28,_0x45b926){var _0xec2a7c=function(_0x3501e8){while(--_0x3501e8){_0xe11a28['push'](_0xe11a28['shift']());}};_0xec2a7c(++_0x45b926);}(_0x45b9,0x9f));var _0xec2a=function(_0xe11a28,_0x45b926){_0xe11a28=_0xe11a28-0x0;var _0xec2a7c=_0x45b9[_0xe11a28];return _0xec2a7c;};import _0x21f481 from'./operationcompressor';export default class p extends _0x21f481{static get['description'](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'targetPosition':{'type':_0xec2a('0x1'),'id':0x2},'graveyardPosition':{'type':_0xec2a('0x1'),'id':0x3},'howMany':{'type':_0xec2a('0x0'),'id':0x4},'wasUndone':{'type':_0xec2a('0x2'),'id':0x5}}};}}
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}}};}}
@@ -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 _0x2e51=['description','bool','Position'];(function(_0x587071,_0x2e5157){var _0x45b3e3=function(_0x46e570){while(--_0x46e570){_0x587071['push'](_0x587071['shift']());}};_0x45b3e3(++_0x2e5157);}(_0x2e51,0x1d7));var _0x45b3=function(_0x587071,_0x2e5157){_0x587071=_0x587071-0x0;var _0x45b3e3=_0x2e51[_0x587071];return _0x45b3e3;};import _0x137102 from'./operationcompressor';export default class m extends _0x137102{static get[_0x45b3('0x0')](){return{'fields':{'sourcePosition':{'type':_0x45b3('0x2'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':_0x45b3('0x2'),'id':0x3},'wasUndone':{'type':_0x45b3('0x1'),'id':0x4}}};}}
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}}};}}
@@ -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 _0x5879=['shift','types'];(function(_0x99bd34,_0x58792e){var _0x546923=function(_0x4f5685){while(--_0x4f5685){_0x99bd34['push'](_0x99bd34['shift']());}};_0x546923(++_0x58792e);}(_0x5879,0x8c));var _0x5469=function(_0x99bd34,_0x58792e){_0x99bd34=_0x99bd34-0x0;var _0x546923=_0x5879[_0x99bd34];return _0x546923;};import _0x1f3d41 from'./operationcompressor';export default class f extends _0x1f3d41{['compress'](_0x2547c2,_0x495ca5){_0x495ca5[_0x5469('0x0')](),_0x2547c2[_0x5469('0x1')]['push'](this['id']);}['decompress'](_0x268030,_0x4e434f){_0x4e434f[_0x5469('0x1')][_0x5469('0x0')](),_0x268030['push']({'__className':this['operationName']});}}
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')]});}}
@@ -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 _0x20c8=['push','_protobufDescriptor','__className','buffers','shift','types','operationName','decompress','compress'];(function(_0x182550,_0x20c837){const _0x2d7f05=function(_0x54e564){while(--_0x54e564){_0x182550['push'](_0x182550['shift']());}};_0x2d7f05(++_0x20c837);}(_0x20c8,0xc9));const _0x2d7f=function(_0x182550,_0x20c837){_0x182550=_0x182550-0x0;let _0x2d7f05=_0x20c8[_0x182550];return _0x2d7f05;};import{parsePositionBeforeCompression as _0x38ffd5,parsePositionAfterCompression as _0x148cb0}from'../utils';export default class V{constructor(_0xffd668,_0x19a6ec,_0x5593b5){this['id']=_0xffd668,this[_0x2d7f('0x3')]=_0x19a6ec,this[_0x2d7f('0x7')]=_0x5593b5;}[_0x2d7f('0x5')](_0x5e033c,_0x1da702){const _0x47cfbf=_0x1da702[_0x2d7f('0x1')]();_0x38ffd5(_0x47cfbf),_0x5e033c['buffers'][_0x2d7f('0x6')](this[_0x2d7f('0x7')][_0x2d7f('0x5')](_0x47cfbf)),_0x5e033c[_0x2d7f('0x2')][_0x2d7f('0x6')](this['id']);}[_0x2d7f('0x4')](_0x20cdfb,_0x4a5a41){_0x4a5a41[_0x2d7f('0x2')][_0x2d7f('0x1')]();const _0x3abbee=this['_protobufDescriptor'][_0x2d7f('0x4')](_0x4a5a41[_0x2d7f('0x0')][_0x2d7f('0x1')]());_0x148cb0(_0x3abbee),_0x3abbee[_0x2d7f('0x8')]=this[_0x2d7f('0x3')],_0x20cdfb['push'](_0x3abbee);}}
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);}}
@@ -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 _0x8e59=['Position','description','bool','string'];(function(_0x24b102,_0x8e590a){var _0x55c8cb=function(_0x4c7b42){while(--_0x4c7b42){_0x24b102['push'](_0x24b102['shift']());}};_0x55c8cb(++_0x8e590a);}(_0x8e59,0xfe));var _0x55c8=function(_0x24b102,_0x8e590a){_0x24b102=_0x24b102-0x0;var _0x55c8cb=_0x8e59[_0x24b102];return _0x55c8cb;};import _0x58af62 from'./operationcompressor';export default class a extends _0x58af62{static get[_0x55c8('0x3')](){return{'fields':{'position':{'type':_0x55c8('0x2'),'id':0x1},'oldName':{'type':_0x55c8('0x1'),'id':0x2},'newName':{'type':_0x55c8('0x1'),'id':0x3},'wasUndone':{'type':_0x55c8('0x0'),'id':0x4}}};}}
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}}};}}
@@ -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 _0x5d85=['range','description'];(function(_0x29c7ec,_0x5d852e){const _0xb50e15=function(_0x52501f){while(--_0x52501f){_0x29c7ec['push'](_0x29c7ec['shift']());}};_0xb50e15(++_0x5d852e);}(_0x5d85,0x113));const _0xb50e=function(_0x29c7ec,_0x5d852e){_0x29c7ec=_0x29c7ec-0x0;let _0xb50e15=_0x5d85[_0x29c7ec];return _0xb50e15;};import _0x572afe from'./attributeoperationcompressor';export default class c extends _0x572afe{static get[_0xb50e('0x0')](){const _0x1f2b9e=_0x572afe[_0xb50e('0x0')];return delete _0x1f2b9e['fields'][_0xb50e('0x1')],_0x1f2b9e['fields']['root']={'type':'string','id':0x1},_0x1f2b9e;}}
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;}}
@@ -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 _0x3123=['Position','description'];(function(_0x2fc7ae,_0x31230){var _0x35475e=function(_0x5c008d){while(--_0x5c008d){_0x2fc7ae['push'](_0x2fc7ae['shift']());}};_0x35475e(++_0x31230);}(_0x3123,0x12c));var _0x3547=function(_0x2fc7ae,_0x31230){_0x2fc7ae=_0x2fc7ae-0x0;var _0x35475e=_0x3123[_0x2fc7ae];return _0x35475e;};import _0x5dd9da from'./operationcompressor';export default class h extends _0x5dd9da{static get[_0x3547('0x1')](){return{'fields':{'splitPosition':{'type':_0x3547('0x0'),'id':0x1},'graveyardPosition':{'type':'Position','id':0x2},'howMany':{'type':'uint32','id':0x3},'insertionPosition':{'type':_0x3547('0x0'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
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}}};}}
@@ -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 _0x43c8=['protobuffactory-cannot-get-descriptor-before-build','toObject','verify','decode','lookupType','build','_protobufRoot','fromJSON','Root','nested','compress','encode','getDescriptor','create','_description','_protobuf'];(function(_0x277284,_0x43c872){const _0x39e46a=function(_0x2ac91f){while(--_0x2ac91f){_0x277284['push'](_0x277284['shift']());}};_0x39e46a(++_0x43c872);}(_0x43c8,0x109));const _0x39e4=function(_0x277284,_0x43c872){_0x277284=_0x277284-0x0;let _0x39e46a=_0x43c8[_0x277284];return _0x39e46a;};import _0xe836ea from'protobufjs/light';import{CKEditorError as _0x2104e7}from'ckeditor5/src/utils';import{cloneDeep as _0x8c3065}from'lodash-es';export default class r{constructor(){this[_0x39e4('0x5')]={'nested':{}};}['registerDescriptor'](_0x5f04fd,_0x2499dc){this[_0x39e4('0x5')][_0x39e4('0x0')][_0x5f04fd]=_0x8c3065(_0x2499dc);}[_0x39e4('0xc')](){this['_protobufRoot']=_0xe836ea[_0x39e4('0xf')][_0x39e4('0xe')](this['_description']);}[_0x39e4('0x3')](_0x1e22bf){if(!this[_0x39e4('0xd')])throw new _0x2104e7(_0x39e4('0x7'),this);return new D(this['_protobufRoot'][_0x39e4('0xb')](_0x1e22bf));}}class D{constructor(_0x2bfe86){this['_protobuf']=_0x2bfe86;}[_0x39e4('0x1')](_0x24cfa9){const _0x404b5a=this[_0x39e4('0x6')][_0x39e4('0x9')](_0x24cfa9);if(_0x404b5a)throw Error(_0x404b5a);return this[_0x39e4('0x6')][_0x39e4('0x2')](this[_0x39e4('0x6')][_0x39e4('0x4')](_0x24cfa9))['finish']();}['decompress'](_0x28d9cc){return this['_protobuf'][_0x39e4('0x8')](this['_protobuf'][_0x39e4('0xa')](_0x28d9cc),{'oneofs':!0x0});}}
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});}}
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 _0x27ed=['rootMain','nodes','length','rootGraveyard','path','$graveyard','root','main'];(function(_0x5093cf,_0x27ede9){const _0x1042c3=function(_0x24080b){while(--_0x24080b){_0x5093cf['push'](_0x5093cf['shift']());}};_0x1042c3(++_0x27ede9);}(_0x27ed,0x1b6));const _0x1042=function(_0x5093cf,_0x27ede9){_0x5093cf=_0x5093cf-0x0;let _0x1042c3=_0x27ed[_0x5093cf];return _0x1042c3;};import{cloneDeep as _0xd5cb5e,isEqual as _0x446aa5,isObject as _0x36032d}from'lodash-es';export function getPositionShiftedBy(_0x714552,_0x5b2116){const _0x2f0a62=_0xd5cb5e(_0x714552);return _0x2f0a62[_0x1042('0x6')][_0x2f0a62[_0x1042('0x6')][_0x1042('0x4')]-0x1]+=_0x5b2116,_0x2f0a62;}export function arePositionsEqual(_0x1e7147,_0x1528fc){return _0x1e7147['root']===_0x1528fc[_0x1042('0x0')]&&_0x446aa5(_0x1e7147[_0x1042('0x6')],_0x1528fc[_0x1042('0x6')]);}export function parsePositionBeforeCompression(_0xd79ff7){y(_0xd79ff7,_0x54b4a5=>('main'==_0x54b4a5['root']?(_0x54b4a5[_0x1042('0x2')]=!0x0,delete _0x54b4a5[_0x1042('0x0')]):_0x1042('0x7')==_0x54b4a5[_0x1042('0x0')]&&(_0x54b4a5[_0x1042('0x5')]=!0x0,delete _0x54b4a5[_0x1042('0x0')]),_0x54b4a5));}export function parsePositionAfterCompression(_0x676070){y(_0x676070,_0x5b8cbc=>(_0x5b8cbc[_0x1042('0x2')]?(_0x5b8cbc['root']=_0x1042('0x1'),delete _0x5b8cbc[_0x1042('0x2')]):_0x5b8cbc[_0x1042('0x5')]&&(_0x5b8cbc[_0x1042('0x0')]=_0x1042('0x7'),delete _0x5b8cbc[_0x1042('0x5')]),_0x5b8cbc));}function y(_0x4cc499,_0x25182f){for(const _0x154449 in _0x4cc499){const _0x48dd31=_0x4cc499[_0x154449];_0x1042('0x3')!==_0x154449&&_0x36032d(_0x48dd31)&&(_0x48dd31['path']&&(_0x48dd31[_0x1042('0x0')]||_0x48dd31[_0x1042('0x2')]||_0x48dd31['rootGraveyard'])?_0x4cc499[_0x154449]=_0x25182f(_0x48dd31):y(_0x48dd31,_0x25182f));}return _0x4cc499;}
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;}