@ckeditor/ckeditor5-operations-compressor 44.1.0-alpha.5 → 44.2.0-alpha.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.
Files changed (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/index-content.css +2 -2
  4. package/dist/index-editor.css +2 -2
  5. package/dist/index.css +2 -2
  6. package/dist/index.js +3 -3
  7. package/package.json +21 -3
  8. package/src/actioncompressor/actioncompressor.d.ts +1 -1
  9. package/src/actioncompressor/actioncompressor.js +2 -2
  10. package/src/actioncompressor/deletingactioncompressor.d.ts +1 -1
  11. package/src/actioncompressor/deletingactioncompressor.js +2 -2
  12. package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +1 -1
  13. package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
  14. package/src/actioncompressor/typingactioncompressor.d.ts +1 -1
  15. package/src/actioncompressor/typingactioncompressor.js +2 -2
  16. package/src/actioncompressor/userselectionactioncompressor.d.ts +1 -1
  17. package/src/actioncompressor/userselectionactioncompressor.js +2 -2
  18. package/src/compressor.d.ts +1 -1
  19. package/src/compressor.js +2 -2
  20. package/src/index.d.ts +1 -1
  21. package/src/index.js +2 -2
  22. package/src/lib/compiledmessages.js +3 -3
  23. package/src/lib/protobufdescriptions.js +2 -2
  24. package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +1 -1
  25. package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
  26. package/src/operationcompressor/attributeoperationcompressor.d.ts +1 -1
  27. package/src/operationcompressor/attributeoperationcompressor.js +2 -2
  28. package/src/operationcompressor/insertoperationcompressor.d.ts +1 -1
  29. package/src/operationcompressor/insertoperationcompressor.js +2 -2
  30. package/src/operationcompressor/markeroperationcompressor.d.ts +1 -1
  31. package/src/operationcompressor/markeroperationcompressor.js +2 -2
  32. package/src/operationcompressor/nooperationcompressor.d.ts +1 -1
  33. package/src/operationcompressor/nooperationcompressor.js +2 -2
  34. package/src/operationcompressor/operationcompressor.d.ts +1 -1
  35. package/src/operationcompressor/operationcompressor.js +2 -2
  36. package/src/protobuffactory.d.ts +1 -1
  37. package/src/protobuffactory.js +2 -2
  38. package/src/utils.d.ts +1 -1
  39. package/src/utils.js +2 -2
  40. package/dist/actioncompressor/actioncompressor.d.ts +0 -64
  41. package/dist/actioncompressor/deletingactioncompressor.d.ts +0 -32
  42. package/dist/actioncompressor/forwarddeletingactioncompressor.d.ts +0 -32
  43. package/dist/actioncompressor/typingactioncompressor.d.ts +0 -32
  44. package/dist/actioncompressor/userselectionactioncompressor.d.ts +0 -20
  45. package/dist/compressor.d.ts +0 -49
  46. package/dist/index.d.ts +0 -9
  47. package/dist/operationcompressor/annotationmarkeroperationcompressor.d.ts +0 -26
  48. package/dist/operationcompressor/attributeoperationcompressor.d.ts +0 -21
  49. package/dist/operationcompressor/insertoperationcompressor.d.ts +0 -21
  50. package/dist/operationcompressor/markeroperationcompressor.d.ts +0 -17
  51. package/dist/operationcompressor/nooperationcompressor.d.ts +0 -24
  52. package/dist/operationcompressor/operationcompressor.d.ts +0 -32
  53. package/dist/protobuffactory.d.ts +0 -9
  54. package/dist/utils.d.ts +0 -34
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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
- function _0x37c2(_0x1021c2,_0x4515ab){const _0x1307db=_0x1307();return _0x37c2=function(_0x37c26f,_0x2054df){_0x37c26f=_0x37c26f-0x11c;let _0x489234=_0x1307db[_0x37c26f];return _0x489234;},_0x37c2(_0x1021c2,_0x4515ab);}const _0x544685=_0x37c2;(function(_0x1dc6cc,_0x39fb61){const _0x4dc65b=_0x37c2,_0x3466e4=_0x1dc6cc();while(!![]){try{const _0x55172a=parseInt(_0x4dc65b(0x133))/0x1+parseInt(_0x4dc65b(0x137))/0x2+parseInt(_0x4dc65b(0x11e))/0x3+-parseInt(_0x4dc65b(0x127))/0x4+-parseInt(_0x4dc65b(0x139))/0x5*(-parseInt(_0x4dc65b(0x135))/0x6)+-parseInt(_0x4dc65b(0x13b))/0x7+-parseInt(_0x4dc65b(0x126))/0x8*(parseInt(_0x4dc65b(0x13a))/0x9);if(_0x55172a===_0x39fb61)break;else _0x3466e4['push'](_0x3466e4['shift']());}catch(_0x1c4f1b){_0x3466e4['push'](_0x3466e4['shift']());}}}(_0x1307,0xafda1));import _0x4272ee from'./operationcompressor.js';function _0x1307(){const _0x525466=['children','stringify','decompress','attributesBoolean','1163732nreepN','boolean','6FAEPwT','parse','820040kxSrCY','_deserializeNodesAttributes','6628170RKLOIF','27kLlsZu','6760376IUzhZj','shift','buffers','3576483JxcZrs','_areValuesBoolean','types','every','_id','nodes','keys','compress','4082456HdiHcv','3498276AlKRcq','attributesJson','push','_protobufDescriptor','__className','_operationName','_serializeNodesAttributes','attributes'];_0x1307=function(){return _0x525466;};return _0x1307();}import{parsePositionBeforeCompression as _0x51ae9f,parsePositionAfterCompression as _0x728680}from'../utils.js';export default class i extends _0x4272ee{[_0x544685(0x125)](_0x1099bd,_0x2df605){const _0x3cef43=_0x544685,_0x477191=_0x2df605[_0x3cef43(0x11c)]();return this[_0x3cef43(0x12d)](_0x477191[_0x3cef43(0x123)]),_0x51ae9f(_0x477191),_0x1099bd[_0x3cef43(0x11d)][_0x3cef43(0x129)](this[_0x3cef43(0x12a)][_0x3cef43(0x125)](_0x477191)),_0x1099bd[_0x3cef43(0x120)][_0x3cef43(0x129)](this[_0x3cef43(0x122)]),!0x0;}[_0x544685(0x131)](_0x3230ec,_0x1e4af3){const _0x2fb2d9=_0x544685,{types:_0x4ba395,buffers:_0x33d810}=_0x1e4af3,_0x2aa9fd=this[_0x2fb2d9(0x12a)][_0x2fb2d9(0x131)](_0x33d810[_0x2fb2d9(0x11c)]());_0x4ba395[_0x2fb2d9(0x11c)](),_0x2aa9fd[_0x2fb2d9(0x123)]||(_0x2aa9fd[_0x2fb2d9(0x123)]=[]),this[_0x2fb2d9(0x138)](_0x2aa9fd[_0x2fb2d9(0x123)]),_0x728680(_0x2aa9fd),_0x2aa9fd[_0x2fb2d9(0x12b)]=this[_0x2fb2d9(0x12c)],_0x3230ec[_0x2fb2d9(0x129)](_0x2aa9fd);}[_0x544685(0x12d)](_0x23bf5c){const _0x1b7301=_0x544685;for(const _0x573ebd of _0x23bf5c){if(_0x573ebd[_0x1b7301(0x12e)]){const _0x17c4f0=_0x573ebd[_0x1b7301(0x12e)];this[_0x1b7301(0x11f)](_0x17c4f0)?_0x573ebd[_0x1b7301(0x132)]=_0x17c4f0:_0x573ebd[_0x1b7301(0x128)]=JSON[_0x1b7301(0x130)](_0x17c4f0);}_0x573ebd[_0x1b7301(0x12f)]&&this[_0x1b7301(0x12d)](_0x573ebd[_0x1b7301(0x12f)]);}}[_0x544685(0x138)](_0x5a39b1){const _0x118ba2=_0x544685;for(const _0x30f308 of _0x5a39b1)(_0x30f308[_0x118ba2(0x132)]||_0x30f308[_0x118ba2(0x128)])&&(_0x30f308[_0x118ba2(0x132)]?(_0x30f308[_0x118ba2(0x12e)]=_0x30f308[_0x118ba2(0x132)],delete _0x30f308[_0x118ba2(0x132)]):(_0x30f308[_0x118ba2(0x12e)]=JSON[_0x118ba2(0x136)](_0x30f308[_0x118ba2(0x128)]),delete _0x30f308[_0x118ba2(0x128)])),_0x30f308[_0x118ba2(0x12f)]&&this[_0x118ba2(0x138)](_0x30f308[_0x118ba2(0x12f)]);}[_0x544685(0x11f)](_0x299a1b){const _0x34b0e1=_0x544685;return Object[_0x34b0e1(0x124)](_0x299a1b)[_0x34b0e1(0x121)](_0x45bb4b=>_0x34b0e1(0x134)==typeof _0x299a1b[_0x45bb4b]);}}
23
+ function _0x3e31(_0x467112,_0x56ca3b){const _0x1ecd95=_0x1ecd();return _0x3e31=function(_0x3e31d0,_0x24d21b){_0x3e31d0=_0x3e31d0-0x1b9;let _0x3455f9=_0x1ecd95[_0x3e31d0];return _0x3455f9;},_0x3e31(_0x467112,_0x56ca3b);}const _0x55d39e=_0x3e31;(function(_0xd6689d,_0x112ff4){const _0x425fc3=_0x3e31,_0x344aef=_0xd6689d();while(!![]){try{const _0x5f0cca=-parseInt(_0x425fc3(0x1b9))/0x1*(parseInt(_0x425fc3(0x1d1))/0x2)+parseInt(_0x425fc3(0x1d3))/0x3+parseInt(_0x425fc3(0x1bd))/0x4*(parseInt(_0x425fc3(0x1bc))/0x5)+-parseInt(_0x425fc3(0x1c4))/0x6*(-parseInt(_0x425fc3(0x1c8))/0x7)+-parseInt(_0x425fc3(0x1d9))/0x8*(parseInt(_0x425fc3(0x1db))/0x9)+-parseInt(_0x425fc3(0x1c3))/0xa+parseInt(_0x425fc3(0x1d6))/0xb*(-parseInt(_0x425fc3(0x1bf))/0xc);if(_0x5f0cca===_0x112ff4)break;else _0x344aef['push'](_0x344aef['shift']());}catch(_0x28f528){_0x344aef['push'](_0x344aef['shift']());}}}(_0x1ecd,0x667b1));import _0x447c96 from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x35ca9c,parsePositionAfterCompression as _0x5b7db8}from'../utils.js';export default class i extends _0x447c96{[_0x55d39e(0x1c9)](_0x300b56,_0x8107f9){const _0x20680e=_0x55d39e,_0x1460b7=_0x8107f9[_0x20680e(0x1d4)]();return this[_0x20680e(0x1c6)](_0x1460b7[_0x20680e(0x1cb)]),_0x35ca9c(_0x1460b7),_0x300b56[_0x20680e(0x1c7)][_0x20680e(0x1d8)](this[_0x20680e(0x1c5)][_0x20680e(0x1c9)](_0x1460b7)),_0x300b56[_0x20680e(0x1ce)][_0x20680e(0x1d8)](this[_0x20680e(0x1d2)]),!0x0;}[_0x55d39e(0x1cc)](_0x21b8a6,_0x25a41c){const _0x47be13=_0x55d39e,{types:_0x4d122d,buffers:_0x2c5d87}=_0x25a41c,_0x34aae6=this[_0x47be13(0x1c5)][_0x47be13(0x1cc)](_0x2c5d87[_0x47be13(0x1d4)]());_0x4d122d[_0x47be13(0x1d4)](),_0x34aae6[_0x47be13(0x1cb)]||(_0x34aae6[_0x47be13(0x1cb)]=[]),this[_0x47be13(0x1c0)](_0x34aae6[_0x47be13(0x1cb)]),_0x5b7db8(_0x34aae6),_0x34aae6[_0x47be13(0x1ba)]=this[_0x47be13(0x1cd)],_0x21b8a6[_0x47be13(0x1d8)](_0x34aae6);}[_0x55d39e(0x1c6)](_0x1e8c71){const _0x32dcca=_0x55d39e;for(const _0x3b72ab of _0x1e8c71){if(_0x3b72ab[_0x32dcca(0x1be)]){const _0x384988=_0x3b72ab[_0x32dcca(0x1be)];this[_0x32dcca(0x1d5)](_0x384988)?_0x3b72ab[_0x32dcca(0x1da)]=_0x384988:_0x3b72ab[_0x32dcca(0x1d7)]=JSON[_0x32dcca(0x1cf)](_0x384988);}_0x3b72ab[_0x32dcca(0x1bb)]&&this[_0x32dcca(0x1c6)](_0x3b72ab[_0x32dcca(0x1bb)]);}}[_0x55d39e(0x1c0)](_0xace7e8){const _0x35458d=_0x55d39e;for(const _0x42b87e of _0xace7e8)(_0x42b87e[_0x35458d(0x1da)]||_0x42b87e[_0x35458d(0x1d7)])&&(_0x42b87e[_0x35458d(0x1da)]?(_0x42b87e[_0x35458d(0x1be)]=_0x42b87e[_0x35458d(0x1da)],delete _0x42b87e[_0x35458d(0x1da)]):(_0x42b87e[_0x35458d(0x1be)]=JSON[_0x35458d(0x1d0)](_0x42b87e[_0x35458d(0x1d7)]),delete _0x42b87e[_0x35458d(0x1d7)])),_0x42b87e[_0x35458d(0x1bb)]&&this[_0x35458d(0x1c0)](_0x42b87e[_0x35458d(0x1bb)]);}[_0x55d39e(0x1d5)](_0x400afe){const _0x4c2c20=_0x55d39e;return Object[_0x4c2c20(0x1ca)](_0x400afe)[_0x4c2c20(0x1c1)](_0x109fb8=>_0x4c2c20(0x1c2)==typeof _0x400afe[_0x109fb8]);}}function _0x1ecd(){const _0x31c2bd=['_operationName','types','stringify','parse','71092CbXPRO','_id','1847271fMKBJv','shift','_areValuesBoolean','22haYIiP','attributesJson','push','440fyVEvi','attributesBoolean','28125oxKAhA','20dExDuD','__className','children','20790RAuBWn','720GIobnm','attributes','1906068NpGrYd','_deserializeNodesAttributes','every','boolean','4480570HFvVDJ','704094GYQLXR','_protobufDescriptor','_serializeNodesAttributes','buffers','42ppMzOq','compress','keys','nodes','decompress'];_0x1ecd=function(){return _0x31c2bd;};return _0x1ecd();}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import OperationCompressor from './operationcompressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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 _0x14d28e=_0xa780;(function(_0x14ee55,_0x56ba20){const _0x5275f7=_0xa780,_0x531d7d=_0x14ee55();while(!![]){try{const _0x9debc7=parseInt(_0x5275f7(0x181))/0x1*(parseInt(_0x5275f7(0x17e))/0x2)+-parseInt(_0x5275f7(0x189))/0x3*(parseInt(_0x5275f7(0x17f))/0x4)+parseInt(_0x5275f7(0x17d))/0x5+parseInt(_0x5275f7(0x183))/0x6+-parseInt(_0x5275f7(0x17b))/0x7*(-parseInt(_0x5275f7(0x17a))/0x8)+parseInt(_0x5275f7(0x17c))/0x9*(-parseInt(_0x5275f7(0x184))/0xa)+parseInt(_0x5275f7(0x182))/0xb*(parseInt(_0x5275f7(0x188))/0xc);if(_0x9debc7===_0x56ba20)break;else _0x531d7d['push'](_0x531d7d['shift']());}catch(_0x3dd3f5){_0x531d7d['push'](_0x531d7d['shift']());}}}(_0x4a69,0x8523e));function _0x4a69(){const _0x4ffe35=['582156HgeUoS','780970FYcqvn','newRange','length','decompress','60Uhbzqc','40179hYfOGT','24jSiwRp','184086WHpcAT','99QbipvI','466435mbXVTG','2wgKSLr','40mezDqk','oldRange','394717Sebibw','1923713YPjCJQ'];_0x4a69=function(){return _0x4ffe35;};return _0x4a69();}function _0xa780(_0x4965ab,_0x57a818){const _0x4a6929=_0x4a69();return _0xa780=function(_0xa780fe,_0x5a72ff){_0xa780fe=_0xa780fe-0x17a;let _0x2e9d0c=_0x4a6929[_0xa780fe];return _0x2e9d0c;},_0xa780(_0x4965ab,_0x57a818);}import _0x3e3a2f from'./operationcompressor.js';export default class n extends _0x3e3a2f{[_0x14d28e(0x187)](_0x278068,_0x1ead68){const _0x2b5b0e=_0x14d28e;super[_0x2b5b0e(0x187)](_0x278068,_0x1ead68);const _0x24c76c=_0x278068[_0x278068[_0x2b5b0e(0x186)]-0x1];_0x24c76c[_0x2b5b0e(0x180)]||(_0x24c76c[_0x2b5b0e(0x180)]=null),_0x24c76c[_0x2b5b0e(0x185)]||(_0x24c76c[_0x2b5b0e(0x185)]=null);}}
23
+ const _0x518d8e=_0x150b;(function(_0x473fd8,_0x169320){const _0x39331f=_0x150b,_0x4ee239=_0x473fd8();while(!![]){try{const _0x544e0c=-parseInt(_0x39331f(0xf6))/0x1+parseInt(_0x39331f(0xea))/0x2*(-parseInt(_0x39331f(0xf3))/0x3)+-parseInt(_0x39331f(0xed))/0x4+parseInt(_0x39331f(0xf2))/0x5*(parseInt(_0x39331f(0xf0))/0x6)+parseInt(_0x39331f(0xf5))/0x7*(-parseInt(_0x39331f(0xf4))/0x8)+parseInt(_0x39331f(0xec))/0x9+parseInt(_0x39331f(0xf7))/0xa;if(_0x544e0c===_0x169320)break;else _0x4ee239['push'](_0x4ee239['shift']());}catch(_0x55c858){_0x4ee239['push'](_0x4ee239['shift']());}}}(_0x1e8e,0x64de0));function _0x150b(_0x3d475d,_0x4a8fc7){const _0x1e8ed9=_0x1e8e();return _0x150b=function(_0x150b01,_0x3eee69){_0x150b01=_0x150b01-0xea;let _0x1b4e8c=_0x1e8ed9[_0x150b01];return _0x1b4e8c;},_0x150b(_0x3d475d,_0x4a8fc7);}import _0x5e991c from'./operationcompressor.js';function _0x1e8e(){const _0x2b9856=['11175970gwWueZ','738134xYvjWJ','oldRange','6008670gzzNRM','2387064QfkeqS','newRange','length','10614Tkalyh','decompress','1335noFCzs','3hwbTFv','5779016VuFrTy','7Kuccol','156188TusHQt'];_0x1e8e=function(){return _0x2b9856;};return _0x1e8e();}export default class n extends _0x5e991c{[_0x518d8e(0xf1)](_0x3479a6,_0xa75d2d){const _0x9404f1=_0x518d8e;super[_0x9404f1(0xf1)](_0x3479a6,_0xa75d2d);const _0x16bdb4=_0x3479a6[_0x3479a6[_0x9404f1(0xef)]-0x1];_0x16bdb4[_0x9404f1(0xeb)]||(_0x16bdb4[_0x9404f1(0xeb)]=null),_0x16bdb4[_0x9404f1(0xee)]||(_0x16bdb4[_0x9404f1(0xee)]=null);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import OperationCompressor from './operationcompressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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 _0x53170e=_0x5653;function _0x2a7b(){var _0x450131=['456XrZGRV','types','_id','520234UTyOwe','decompress','compress','743430UxBALP','shift','_operationName','2022771wBTTKe','1874510MxDlCm','208976emNDFA','21994OKYkUM','push','156258GDHKvJ'];_0x2a7b=function(){return _0x450131;};return _0x2a7b();}function _0x5653(_0x3fcf51,_0x1a83bf){var _0x2a7b34=_0x2a7b();return _0x5653=function(_0x565375,_0x547157){_0x565375=_0x565375-0xe6;var _0x1544f8=_0x2a7b34[_0x565375];return _0x1544f8;},_0x5653(_0x3fcf51,_0x1a83bf);}(function(_0x586431,_0x48c404){var _0x5d5d74=_0x5653,_0x107e6c=_0x586431();while(!![]){try{var _0x20c8d9=-parseInt(_0x5d5d74(0xed))/0x1+parseInt(_0x5d5d74(0xf1))/0x2+parseInt(_0x5d5d74(0xe8))/0x3+parseInt(_0x5d5d74(0xea))/0x4+-parseInt(_0x5d5d74(0xe9))/0x5+parseInt(_0x5d5d74(0xf4))/0x6+-parseInt(_0x5d5d74(0xeb))/0x7*(parseInt(_0x5d5d74(0xee))/0x8);if(_0x20c8d9===_0x48c404)break;else _0x107e6c['push'](_0x107e6c['shift']());}catch(_0x4ede8b){_0x107e6c['push'](_0x107e6c['shift']());}}}(_0x2a7b,0x61b8d));import _0x27c1ce from'./operationcompressor.js';export default class p extends _0x27c1ce{[_0x53170e(0xf3)](_0x236f64,_0x54d019){var _0x1ee343=_0x53170e;return _0x54d019[_0x1ee343(0xe6)](),_0x236f64[_0x1ee343(0xef)][_0x1ee343(0xec)](this[_0x1ee343(0xf0)]),!0x0;}[_0x53170e(0xf2)](_0xd7d4,_0x576fe7){var _0x3540f8=_0x53170e;_0x576fe7[_0x3540f8(0xef)][_0x3540f8(0xe6)](),_0xd7d4[_0x3540f8(0xec)]({'__className':this[_0x3540f8(0xe7)]});}}
23
+ function _0x2d4d(_0x30b774,_0x41aac4){var _0x1b0348=_0x1b03();return _0x2d4d=function(_0x2d4da5,_0x51806f){_0x2d4da5=_0x2d4da5-0x18a;var _0x43bc22=_0x1b0348[_0x2d4da5];return _0x43bc22;},_0x2d4d(_0x30b774,_0x41aac4);}function _0x1b03(){var _0x456c8a=['55657NMKrnV','push','compress','1167166FrMRpV','80649uEJNUT','24aEaDmD','shift','1092462wRJobh','decompress','_id','33465wXlPrT','618ckTcsO','1714788nmroIp','2290piwCSi','_operationName','types','5517576JuXBZd'];_0x1b03=function(){return _0x456c8a;};return _0x1b03();}var _0x573a20=_0x2d4d;(function(_0x2eb62b,_0x101fb7){var _0x403b7b=_0x2d4d,_0x5135ad=_0x2eb62b();while(!![]){try{var _0x2a132f=parseInt(_0x403b7b(0x197))/0x1*(parseInt(_0x403b7b(0x18b))/0x2)+-parseInt(_0x403b7b(0x18d))/0x3+-parseInt(_0x403b7b(0x192))/0x4+-parseInt(_0x403b7b(0x190))/0x5*(parseInt(_0x403b7b(0x191))/0x6)+-parseInt(_0x403b7b(0x19a))/0x7+-parseInt(_0x403b7b(0x196))/0x8+parseInt(_0x403b7b(0x18a))/0x9*(parseInt(_0x403b7b(0x193))/0xa);if(_0x2a132f===_0x101fb7)break;else _0x5135ad['push'](_0x5135ad['shift']());}catch(_0x175060){_0x5135ad['push'](_0x5135ad['shift']());}}}(_0x1b03,0x5d168));import _0x2eea8e from'./operationcompressor.js';export default class p extends _0x2eea8e{[_0x573a20(0x199)](_0x1ccf07,_0x5cc9d9){var _0x26dc90=_0x573a20;return _0x5cc9d9[_0x26dc90(0x18c)](),_0x1ccf07[_0x26dc90(0x195)][_0x26dc90(0x198)](this[_0x26dc90(0x18f)]),!0x0;}[_0x573a20(0x18e)](_0x544f24,_0x40833){var _0x4f2cc9=_0x573a20;_0x40833[_0x4f2cc9(0x195)][_0x4f2cc9(0x18c)](),_0x544f24[_0x4f2cc9(0x198)]({'__className':this[_0x4f2cc9(0x194)]});}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { CompressedOperationsData } from '../compressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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
- function _0xedb2(_0x593d62,_0xb0b288){const _0x4e217d=_0x4e21();return _0xedb2=function(_0xedb22a,_0x1d8cd6){_0xedb22a=_0xedb22a-0x11b;let _0x292e92=_0x4e217d[_0xedb22a];return _0x292e92;},_0xedb2(_0x593d62,_0xb0b288);}const _0x4d3598=_0xedb2;(function(_0x435bb4,_0x3d6592){const _0x4e5404=_0xedb2,_0x5ebe1e=_0x435bb4();while(!![]){try{const _0x166ace=parseInt(_0x4e5404(0x124))/0x1*(parseInt(_0x4e5404(0x128))/0x2)+parseInt(_0x4e5404(0x11f))/0x3*(-parseInt(_0x4e5404(0x122))/0x4)+parseInt(_0x4e5404(0x127))/0x5+parseInt(_0x4e5404(0x12d))/0x6+-parseInt(_0x4e5404(0x129))/0x7*(-parseInt(_0x4e5404(0x120))/0x8)+-parseInt(_0x4e5404(0x123))/0x9+parseInt(_0x4e5404(0x11d))/0xa*(-parseInt(_0x4e5404(0x121))/0xb);if(_0x166ace===_0x3d6592)break;else _0x5ebe1e['push'](_0x5ebe1e['shift']());}catch(_0xb3dfdd){_0x5ebe1e['push'](_0x5ebe1e['shift']());}}}(_0x4e21,0x797e0));import{parsePositionBeforeCompression as _0x5f2311,parsePositionAfterCompression as _0x2effcd}from'../utils.js';function _0x4e21(){const _0x1c7e57=['compress','12LCgihm','15840KiztNe','307956ejmxHJ','25268cvKRwN','713853exdjBG','92109UCOVpx','shift','__className','3260845jRNvfW','2BpWCCm','1316gfnFOq','types','push','buffers','105738lTSviP','_id','decompress','_operationName','_protobufDescriptor','190ChSGZO'];_0x4e21=function(){return _0x1c7e57;};return _0x4e21();}export default class e{constructor(_0x2b26f3,_0x260a2c,_0xe86f20){const _0x273892=_0xedb2;this[_0x273892(0x12e)]=_0x2b26f3,this[_0x273892(0x11b)]=_0x260a2c,this[_0x273892(0x11c)]=_0xe86f20;}[_0x4d3598(0x11e)](_0x4bd679,_0xcbad90){const _0x1a162c=_0x4d3598,_0x2e2cee=_0xcbad90[_0x1a162c(0x125)]();return _0x5f2311(_0x2e2cee),_0x4bd679[_0x1a162c(0x12c)][_0x1a162c(0x12b)](this[_0x1a162c(0x11c)][_0x1a162c(0x11e)](_0x2e2cee)),_0x4bd679[_0x1a162c(0x12a)][_0x1a162c(0x12b)](this[_0x1a162c(0x12e)]),!0x0;}[_0x4d3598(0x12f)](_0x33f255,_0x185575){const _0x34ad93=_0x4d3598;_0x185575[_0x34ad93(0x12a)][_0x34ad93(0x125)]();const _0x14b0a=this[_0x34ad93(0x11c)][_0x34ad93(0x12f)](_0x185575[_0x34ad93(0x12c)][_0x34ad93(0x125)]());_0x2effcd(_0x14b0a),_0x14b0a[_0x34ad93(0x126)]=this[_0x34ad93(0x11b)],_0x33f255[_0x34ad93(0x12b)](_0x14b0a);}}
23
+ const _0x2e0ffa=_0x547d;(function(_0x31958c,_0x490a90){const _0x445bd0=_0x547d,_0x577144=_0x31958c();while(!![]){try{const _0x2659e6=parseInt(_0x445bd0(0x11a))/0x1*(parseInt(_0x445bd0(0x112))/0x2)+parseInt(_0x445bd0(0x121))/0x3+parseInt(_0x445bd0(0x113))/0x4*(parseInt(_0x445bd0(0x11f))/0x5)+parseInt(_0x445bd0(0x119))/0x6*(parseInt(_0x445bd0(0x125))/0x7)+-parseInt(_0x445bd0(0x11b))/0x8*(-parseInt(_0x445bd0(0x114))/0x9)+-parseInt(_0x445bd0(0x116))/0xa+-parseInt(_0x445bd0(0x118))/0xb*(parseInt(_0x445bd0(0x120))/0xc);if(_0x2659e6===_0x490a90)break;else _0x577144['push'](_0x577144['shift']());}catch(_0x2d92f6){_0x577144['push'](_0x577144['shift']());}}}(_0x554a,0x1dfef));function _0x547d(_0xb45b2b,_0x41b491){const _0x554aed=_0x554a();return _0x547d=function(_0x547d8a,_0x47c204){_0x547d8a=_0x547d8a-0x110;let _0x256755=_0x554aed[_0x547d8a];return _0x256755;},_0x547d(_0xb45b2b,_0x41b491);}import{parsePositionBeforeCompression as _0x351fe9,parsePositionAfterCompression as _0x34e01c}from'../utils.js';function _0x554a(){const _0x1cac7d=['21408XvsTRI','45825ZvQWTY','types','_operationName','buffers','49kOkhAL','__className','shift','2iYSDsr','61484SCczMU','18fTneGR','_id','1143330XPqlbF','_protobufDescriptor','1408FEeVBh','55158bzokuS','145509IvgoKn','900168BPtqfj','decompress','compress','push','5UUMjFh'];_0x554a=function(){return _0x1cac7d;};return _0x554a();}export default class e{constructor(_0x26630c,_0x562b11,_0x299f4c){const _0x255209=_0x547d;this[_0x255209(0x115)]=_0x26630c,this[_0x255209(0x123)]=_0x562b11,this[_0x255209(0x117)]=_0x299f4c;}[_0x2e0ffa(0x11d)](_0x32948e,_0x550dd7){const _0x9c41bf=_0x2e0ffa,_0x236fdd=_0x550dd7[_0x9c41bf(0x111)]();return _0x351fe9(_0x236fdd),_0x32948e[_0x9c41bf(0x124)][_0x9c41bf(0x11e)](this[_0x9c41bf(0x117)][_0x9c41bf(0x11d)](_0x236fdd)),_0x32948e[_0x9c41bf(0x122)][_0x9c41bf(0x11e)](this[_0x9c41bf(0x115)]),!0x0;}[_0x2e0ffa(0x11c)](_0x10fa8b,_0x5b8cb1){const _0x4c2c51=_0x2e0ffa;_0x5b8cb1[_0x4c2c51(0x122)][_0x4c2c51(0x111)]();const _0x50d96e=this[_0x4c2c51(0x117)][_0x4c2c51(0x11c)](_0x5b8cb1[_0x4c2c51(0x124)][_0x4c2c51(0x111)]());_0x34e01c(_0x50d96e),_0x50d96e[_0x4c2c51(0x110)]=this[_0x4c2c51(0x123)],_0x10fa8b[_0x4c2c51(0x11e)](_0x50d96e);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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
- function _0x293c(_0x5cc3fb,_0x47c421){const _0x15fc69=_0x15fc();return _0x293c=function(_0x293cb4,_0x4f758a){_0x293cb4=_0x293cb4-0x1aa;let _0x197f3a=_0x15fc69[_0x293cb4];return _0x197f3a;},_0x293c(_0x5cc3fb,_0x47c421);}const _0x396f9f=_0x293c;function _0x15fc(){const _0x38497e=['31002GCFfRe','296QOgEmp','_protobufRoot','18189eyAQYw','decode','finish','_protobuf','4MAzVrN','1307103xmFzzV','656324cFUgxV','decompress','compress','385110sBdZwZ','encode','979865wIRlKv','getDescriptor','create','toObject','verify','76425ojUrPj'];_0x15fc=function(){return _0x38497e;};return _0x15fc();}(function(_0x503389,_0x4d9466){const _0x566d5c=_0x293c,_0x568802=_0x503389();while(!![]){try{const _0x54f5ce=parseInt(_0x566d5c(0x1ad))/0x1*(-parseInt(_0x566d5c(0x1ba))/0x2)+-parseInt(_0x566d5c(0x1b9))/0x3+-parseInt(_0x566d5c(0x1af))/0x4+parseInt(_0x566d5c(0x1b4))/0x5+parseInt(_0x566d5c(0x1b2))/0x6+parseInt(_0x566d5c(0x1ae))/0x7+parseInt(_0x566d5c(0x1bb))/0x8*(-parseInt(_0x566d5c(0x1bd))/0x9);if(_0x54f5ce===_0x4d9466)break;else _0x568802['push'](_0x568802['shift']());}catch(_0x4ae499){_0x568802['push'](_0x568802['shift']());}}}(_0x15fc,0x1d6e6));import{messages as _0x2266e2}from'./lib/compiledmessages.js';export default class r{constructor(){const _0x355c6d=_0x293c;this[_0x355c6d(0x1bc)]=_0x2266e2;}[_0x396f9f(0x1b5)](_0x1a3ee0){const _0x5aec50=_0x396f9f;return new ProtobufDescriptor(this[_0x5aec50(0x1bc)][_0x1a3ee0]);}}export class ProtobufDescriptor{constructor(_0x3f5ef8){const _0x22ad83=_0x396f9f;this[_0x22ad83(0x1ac)]=_0x3f5ef8;}[_0x396f9f(0x1b1)](_0x4fc5d7){const _0x218d97=_0x396f9f,_0x9f769a=this[_0x218d97(0x1ac)][_0x218d97(0x1b8)](_0x4fc5d7);if(_0x9f769a)throw Error(_0x9f769a);return this[_0x218d97(0x1ac)][_0x218d97(0x1b3)](this[_0x218d97(0x1ac)][_0x218d97(0x1b6)](_0x4fc5d7))[_0x218d97(0x1ab)]();}[_0x396f9f(0x1b0)](_0x2b0e38){const _0x403a37=_0x396f9f;return this[_0x403a37(0x1ac)][_0x403a37(0x1b7)](this[_0x403a37(0x1ac)][_0x403a37(0x1aa)](_0x2b0e38),{'oneofs':!0x0});}}
23
+ const _0x3b6279=_0x4c08;function _0x4c08(_0x4736b3,_0x4c22d2){const _0x4e7cd6=_0x4e7c();return _0x4c08=function(_0x4c0835,_0x476786){_0x4c0835=_0x4c0835-0x170;let _0x22ba16=_0x4e7cd6[_0x4c0835];return _0x22ba16;},_0x4c08(_0x4736b3,_0x4c22d2);}(function(_0x22509f,_0x1ebe18){const _0x40e83=_0x4c08,_0x4bae23=_0x22509f();while(!![]){try{const _0x4365e0=-parseInt(_0x40e83(0x181))/0x1+parseInt(_0x40e83(0x184))/0x2+parseInt(_0x40e83(0x17d))/0x3+-parseInt(_0x40e83(0x171))/0x4*(-parseInt(_0x40e83(0x183))/0x5)+parseInt(_0x40e83(0x174))/0x6*(parseInt(_0x40e83(0x179))/0x7)+-parseInt(_0x40e83(0x173))/0x8*(parseInt(_0x40e83(0x17f))/0x9)+-parseInt(_0x40e83(0x176))/0xa;if(_0x4365e0===_0x1ebe18)break;else _0x4bae23['push'](_0x4bae23['shift']());}catch(_0x57e35c){_0x4bae23['push'](_0x4bae23['shift']());}}}(_0x4e7c,0xb2635));import{messages as _0x274687}from'./lib/compiledmessages.js';export default class r{constructor(){const _0x393e3c=_0x4c08;this[_0x393e3c(0x170)]=_0x274687;}[_0x3b6279(0x177)](_0x38f956){const _0x20ac8=_0x3b6279;return new ProtobufDescriptor(this[_0x20ac8(0x170)][_0x38f956]);}}function _0x4e7c(){const _0x54f5fb=['4JsBQQZ','encode','752KiXRHk','6FUMxaG','finish','16793270DSFnOf','getDescriptor','decode','3214757YbviFB','compress','verify','create','3135408asOtaf','decompress','27513TiSGIi','toObject','841351MTaklA','_protobuf','6570835oHKNIR','1440318GoNntT','_protobufRoot'];_0x4e7c=function(){return _0x54f5fb;};return _0x4e7c();}export class ProtobufDescriptor{constructor(_0x4fcc2e){const _0xbdbd5d=_0x3b6279;this[_0xbdbd5d(0x182)]=_0x4fcc2e;}[_0x3b6279(0x17a)](_0x42136b){const _0x4fc1fb=_0x3b6279,_0x122a9f=this[_0x4fc1fb(0x182)][_0x4fc1fb(0x17b)](_0x42136b);if(_0x122a9f)throw Error(_0x122a9f);return this[_0x4fc1fb(0x182)][_0x4fc1fb(0x172)](this[_0x4fc1fb(0x182)][_0x4fc1fb(0x17c)](_0x42136b))[_0x4fc1fb(0x175)]();}[_0x3b6279(0x17e)](_0x23ef96){const _0x205eb7=_0x3b6279;return this[_0x205eb7(0x182)][_0x205eb7(0x180)](this[_0x205eb7(0x182)][_0x205eb7(0x178)](_0x23ef96),{'oneofs':!0x0});}}
package/src/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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
- (function(_0x171d03,_0x3f0d41){const _0x59bf69=_0x3d0a,_0x1d07bc=_0x171d03();while(!![]){try{const _0x2b8e16=parseInt(_0x59bf69(0x1ec))/0x1+-parseInt(_0x59bf69(0x1e8))/0x2+-parseInt(_0x59bf69(0x1e5))/0x3+parseInt(_0x59bf69(0x1e3))/0x4+-parseInt(_0x59bf69(0x1e6))/0x5+parseInt(_0x59bf69(0x1e4))/0x6+parseInt(_0x59bf69(0x1e7))/0x7;if(_0x2b8e16===_0x3f0d41)break;else _0x1d07bc['push'](_0x1d07bc['shift']());}catch(_0x29ffbe){_0x1d07bc['push'](_0x1d07bc['shift']());}}}(_0x12b2,0x664dd));import{cloneDeep as _0x4db401,isEqual as _0x5b4d8c,isObject as _0x51b19d}from'lodash-es';export function getPositionShiftedBy(_0x727c10,_0x4cf9d4){const _0x30a730=_0x3d0a,_0x25e9c1=_0x4db401(_0x727c10);return _0x25e9c1[_0x30a730(0x1e9)][_0x25e9c1[_0x30a730(0x1e9)][_0x30a730(0x1e1)]-0x1]+=_0x4cf9d4,_0x25e9c1;}export function arePositionsEqual(_0x9edec8,_0x4eca5d){const _0x52bcbd=_0x3d0a;return _0x9edec8[_0x52bcbd(0x1ed)]===_0x4eca5d[_0x52bcbd(0x1ed)]&&_0x5b4d8c(_0x9edec8[_0x52bcbd(0x1e9)],_0x4eca5d[_0x52bcbd(0x1e9)]);}function _0x12b2(){const _0x55834e=['rootGraveyard','2671660YAXudX','4261038pTDgRG','1682937lnDFIS','2016210rDdxmS','45444QnWpgg','362436ZnQTim','path','nodes','$graveyard','179896iBGSOP','root','main','rootMain','length'];_0x12b2=function(){return _0x55834e;};return _0x12b2();}function _0x3d0a(_0x5644c2,_0x49eeca){const _0x12b2e1=_0x12b2();return _0x3d0a=function(_0x3d0a29,_0x5e50ea){_0x3d0a29=_0x3d0a29-0x1df;let _0x3f5253=_0x12b2e1[_0x3d0a29];return _0x3f5253;},_0x3d0a(_0x5644c2,_0x49eeca);}export function parsePositionBeforeCompression(_0x58e99a){const _0x455fa0=_0x3d0a;P(_0x58e99a,_0x2d3612=>(_0x455fa0(0x1df)==_0x2d3612[_0x455fa0(0x1ed)]?(_0x2d3612[_0x455fa0(0x1e0)]=!0x0,delete _0x2d3612[_0x455fa0(0x1ed)]):_0x455fa0(0x1eb)==_0x2d3612[_0x455fa0(0x1ed)]&&(_0x2d3612[_0x455fa0(0x1e2)]=!0x0,delete _0x2d3612[_0x455fa0(0x1ed)]),_0x2d3612));}export function parsePositionAfterCompression(_0xa56916){const _0x6426f9=_0x3d0a;P(_0xa56916,_0x396df7=>(_0x396df7[_0x6426f9(0x1e0)]?(_0x396df7[_0x6426f9(0x1ed)]=_0x6426f9(0x1df),delete _0x396df7[_0x6426f9(0x1e0)]):_0x396df7[_0x6426f9(0x1e2)]&&(_0x396df7[_0x6426f9(0x1ed)]=_0x6426f9(0x1eb),delete _0x396df7[_0x6426f9(0x1e2)]),_0x396df7));}function P(_0x43f46b,_0x19268d){const _0x3b9c08=_0x3d0a;for(const _0x29be1b in _0x43f46b){const _0xa4a8ef=_0x43f46b[_0x29be1b];_0x3b9c08(0x1ea)!==_0x29be1b&&_0x51b19d(_0xa4a8ef)&&(_0xa4a8ef[_0x3b9c08(0x1e9)]&&(_0xa4a8ef[_0x3b9c08(0x1ed)]||_0xa4a8ef[_0x3b9c08(0x1e0)]||_0xa4a8ef[_0x3b9c08(0x1e2)])?_0x43f46b[_0x29be1b]=_0x19268d(_0xa4a8ef):P(_0xa4a8ef,_0x19268d));}return _0x43f46b;}
23
+ function _0x5f02(_0x41aa2f,_0x39bbea){const _0x3f77e2=_0x3f77();return _0x5f02=function(_0x5f02a0,_0x517315){_0x5f02a0=_0x5f02a0-0x17d;let _0x527765=_0x3f77e2[_0x5f02a0];return _0x527765;},_0x5f02(_0x41aa2f,_0x39bbea);}function _0x3f77(){const _0x8ea52e=['main','4011408ReDpHx','1710330AbMIgz','$graveyard','402PwdRDH','path','476532oFjhsS','rootMain','rootGraveyard','10eWBGkc','length','5860rpHnhu','21487884TqHxfj','root','2564oFhdwe','nodes','32QtcCiK','6585XwlWld','9313941bqXmPv'];_0x3f77=function(){return _0x8ea52e;};return _0x3f77();}(function(_0x2b0e4b,_0x584cfb){const _0x7130c7=_0x5f02,_0x1b334d=_0x2b0e4b();while(!![]){try{const _0x481d95=-parseInt(_0x7130c7(0x184))/0x1*(-parseInt(_0x7130c7(0x18a))/0x2)+parseInt(_0x7130c7(0x187))/0x3+-parseInt(_0x7130c7(0x181))/0x4*(parseInt(_0x7130c7(0x17e))/0x5)+-parseInt(_0x7130c7(0x188))/0x6+parseInt(_0x7130c7(0x185))/0x7+-parseInt(_0x7130c7(0x183))/0x8*(parseInt(_0x7130c7(0x18c))/0x9)+parseInt(_0x7130c7(0x18f))/0xa*(-parseInt(_0x7130c7(0x17f))/0xb);if(_0x481d95===_0x584cfb)break;else _0x1b334d['push'](_0x1b334d['shift']());}catch(_0x1d90ee){_0x1b334d['push'](_0x1b334d['shift']());}}}(_0x3f77,0xc0ced));import{cloneDeep as _0x5b2b09,isEqual as _0x4f682c,isObject as _0x2fdd04}from'lodash-es';export function getPositionShiftedBy(_0x24f2d2,_0x5763ac){const _0x5dc5d9=_0x5f02,_0x3e0d48=_0x5b2b09(_0x24f2d2);return _0x3e0d48[_0x5dc5d9(0x18b)][_0x3e0d48[_0x5dc5d9(0x18b)][_0x5dc5d9(0x17d)]-0x1]+=_0x5763ac,_0x3e0d48;}export function arePositionsEqual(_0x32139b,_0x397f92){const _0x726da6=_0x5f02;return _0x32139b[_0x726da6(0x180)]===_0x397f92[_0x726da6(0x180)]&&_0x4f682c(_0x32139b[_0x726da6(0x18b)],_0x397f92[_0x726da6(0x18b)]);}export function parsePositionBeforeCompression(_0x52e5ab){const _0x1c489b=_0x5f02;P(_0x52e5ab,_0x2456e5=>(_0x1c489b(0x186)==_0x2456e5[_0x1c489b(0x180)]?(_0x2456e5[_0x1c489b(0x18d)]=!0x0,delete _0x2456e5[_0x1c489b(0x180)]):_0x1c489b(0x189)==_0x2456e5[_0x1c489b(0x180)]&&(_0x2456e5[_0x1c489b(0x18e)]=!0x0,delete _0x2456e5[_0x1c489b(0x180)]),_0x2456e5));}export function parsePositionAfterCompression(_0x6be95e){const _0x4a6529=_0x5f02;P(_0x6be95e,_0x273ea2=>(_0x273ea2[_0x4a6529(0x18d)]?(_0x273ea2[_0x4a6529(0x180)]=_0x4a6529(0x186),delete _0x273ea2[_0x4a6529(0x18d)]):_0x273ea2[_0x4a6529(0x18e)]&&(_0x273ea2[_0x4a6529(0x180)]=_0x4a6529(0x189),delete _0x273ea2[_0x4a6529(0x18e)]),_0x273ea2));}function P(_0x4ac277,_0x3c32b3){const _0x69ae=_0x5f02;for(const _0x3c0312 in _0x4ac277){const _0x18e8f5=_0x4ac277[_0x3c0312];_0x69ae(0x182)!==_0x3c0312&&_0x2fdd04(_0x18e8f5)&&(_0x18e8f5[_0x69ae(0x18b)]&&(_0x18e8f5[_0x69ae(0x180)]||_0x18e8f5[_0x69ae(0x18d)]||_0x18e8f5[_0x69ae(0x18e)])?_0x4ac277[_0x3c0312]=_0x3c32b3(_0x18e8f5):P(_0x18e8f5,_0x3c32b3));}return _0x4ac277;}
@@ -1,64 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { CompressedOperationsData, default as Compressor } from '../compressor.js';
10
- /**
11
- * * Compresses and decompresses multiple operations into the one buffer.
12
- */
13
- export default abstract class ActionCompressor {
14
- constructor(id: number, context: Compressor);
15
- /**
16
- * Combines and compress operations from the list.
17
- * Operations are consumed as long as match this compressor.
18
- *
19
- * @param result Object to which compression result should be added.
20
- * @param operations List of operations in JSON format to compress.
21
- * @returns `true` when operation is consumed `false` otherwise.
22
- */
23
- compress(result: CompressedOperationsData, operations: Array<any>): boolean;
24
- /**
25
- * Decompress and split compressed operations. Decompressed operations are consumed (removed from the input data).
26
- *
27
- * @param result Decompressed operations in JSON format.
28
- * @param data Compressed operations data.
29
- */
30
- decompress(result: Array<any>, data: CompressedOperationsData): void;
31
- /**
32
- * Compresses single operation using a proper compressor.
33
- *
34
- * @param operation Operation in JSON format.
35
- * @returns Operation JSON compressed to the binary format.
36
- */
37
- protected abstract _compressSingleOperation(operation: any): Uint8Array;
38
- /**
39
- * Decompresses combined operation using a proper compressor.
40
- *
41
- * @param data Data to compress.
42
- * @returns Decompressed operation in JSON format.
43
- */
44
- protected abstract _decompressSingleOperation(data: CompressedOperationsData): any;
45
- /**
46
- * Combine next operation into the combined one.
47
- *
48
- * @param nextOperation Operation to combine in JSON format.
49
- * @param combined Combined operation in JSON format.
50
- * @returns Combined operation in JSON format.
51
- */
52
- protected abstract _combineNext(nextOperation: any, combined: any): any;
53
- /**
54
- * Split operation from combined one.
55
- *
56
- * @param combined Combined operation in JSON format.
57
- * @returns Split operation in JSON format.
58
- */
59
- protected abstract _splitCurrent(combined: any): any;
60
- /**
61
- * Checks if two operations can be combined.
62
- */
63
- protected abstract _compareOperations(opA: any, opB: any): boolean;
64
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class DeletingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class ForwardDeletingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class TypingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDocs
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class UserSelectionActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- compress(result: CompressedOperationsData, operations: Array<any>): boolean;
16
- /**
17
- * @inheritDoc
18
- */
19
- decompress(result: Array<any>, data: CompressedOperationsData): void;
20
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * Compresses and decompresses given set of operations in JSON format to/from the binary format using `Protocol Buffers`.
11
- */
12
- export default class Compressor {
13
- constructor();
14
- /**
15
- * Compress given list of operations in JSON format.
16
- *
17
- * **Note** It tries to combine typing-like or deleting-like operations into the one buffer.
18
- * **Note** Input data will be consumed and modified during compression process. If you need untouched data
19
- * you need to copy it before the compression.
20
- */
21
- compress(operations: Array<any>): CompressedOperationsData;
22
- /**
23
- * Decompress given data to the list of operations in JSON format.
24
- *
25
- * **Note** Input data will be consumed during decompression process. If you need untouched data
26
- * you need to copy it before the decompression.
27
- *
28
- * @param data Compressed operations.
29
- * @returns List of operations in JSON format.
30
- */
31
- decompress(data: CompressedOperationsData): Array<any>;
32
- }
33
- /**
34
- * Compressed operations data.
35
- */
36
- export type CompressedOperationsData = {
37
- /**
38
- * List of operations compressed to the binary format.
39
- */
40
- buffers: Array<Uint8Array>;
41
- /**
42
- * List of compressor identifiers. According to this types a proper compressor will be used for the decompression.
43
- */
44
- types: Array<number>;
45
- /**
46
- * Base version of the first compressed operation.
47
- */
48
- baseVersion: number;
49
- };
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- export { default as Compressor, type CompressedOperationsData } from './compressor.js';
@@ -1,26 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import MarkerOperationCompressor from './markeroperationcompressor.js';
10
- import type { ProtobufDescriptor } from '../protobuffactory.js';
11
- import type { CompressedOperationsData } from '../compressor.js';
12
- import type { MarkerOperation } from 'ckeditor5/src/engine.js';
13
- export default class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor {
14
- /**
15
- * @inheritDoc
16
- */
17
- constructor(id: number, name: string, descriptor: ProtobufDescriptor, namespaceToOmit: string);
18
- /**
19
- * @inheritDoc
20
- */
21
- compress(result: CompressedOperationsData, operations: Array<MarkerOperation>): boolean;
22
- /**
23
- * @inheritDoc
24
- */
25
- decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
26
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { AttributeOperation } from 'ckeditor5/src/engine.js';
12
- export default class AttributeOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- compress(result: CompressedOperationsData, operations: Array<AttributeOperation>): boolean;
17
- /**
18
- * @inheritDoc
19
- */
20
- decompress(result: Array<AttributeOperation>, data: CompressedOperationsData): void;
21
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { InsertOperation } from 'ckeditor5/src/engine.js';
12
- export default class InsertOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- compress(result: CompressedOperationsData, operations: Array<InsertOperation>): boolean;
17
- /**
18
- * @inheritDoc
19
- */
20
- decompress(result: Array<InsertOperation>, data: CompressedOperationsData): void;
21
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { MarkerOperation } from 'ckeditor5/src/engine.js';
12
- export default class MarkerOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
17
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { Operation } from 'ckeditor5/src/engine.js';
12
- /**
13
- * @extends OperationCompressor
14
- */
15
- export default class NoOperationCompressor extends OperationCompressor {
16
- /**
17
- * @inheritDoc
18
- */
19
- compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
20
- /**
21
- * @inheritDoc
22
- */
23
- decompress(result: Array<any>, data: CompressedOperationsData): void;
24
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { CompressedOperationsData } from '../compressor.js';
10
- import type { ProtobufDescriptor } from '../protobuffactory.js';
11
- import type { Operation } from 'ckeditor5/src/engine.js';
12
- /**
13
- * Compresses and decompresses single operation to the binary format.
14
- */
15
- export default class OperationCompressor {
16
- constructor(id: number, operationName: string, protobufDescriptor: ProtobufDescriptor);
17
- /**
18
- * Serializes and consumes the first operation from the list.
19
- *
20
- * @param result Object to which compression result will be added.
21
- * @param operations List of operations to compress. The first one will be compressed
22
- * and removed from the list.
23
- */
24
- compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
25
- /**
26
- * Deserializes and consumes buffered operation.
27
- *
28
- * @param result Decompressed operation.
29
- * @param data Data to decompress.
30
- */
31
- decompress(result: Array<Operation>, data: CompressedOperationsData): void;
32
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- export {};