@ckeditor/ckeditor5-track-changes 35.2.0 → 35.3.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 (158) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fi.js +1 -1
  17. package/build/translations/fr.js +1 -1
  18. package/build/translations/gl.js +1 -1
  19. package/build/translations/he.js +1 -1
  20. package/build/translations/hi.js +1 -1
  21. package/build/translations/hr.js +1 -1
  22. package/build/translations/hu.js +1 -1
  23. package/build/translations/id.js +1 -1
  24. package/build/translations/it.js +1 -1
  25. package/build/translations/ja.js +1 -1
  26. package/build/translations/ko.js +1 -1
  27. package/build/translations/lt.js +1 -1
  28. package/build/translations/lv.js +1 -1
  29. package/build/translations/ms.js +1 -1
  30. package/build/translations/nl.js +1 -1
  31. package/build/translations/no.js +1 -1
  32. package/build/translations/pl.js +1 -1
  33. package/build/translations/pt-br.js +1 -1
  34. package/build/translations/pt.js +1 -1
  35. package/build/translations/ro.js +1 -1
  36. package/build/translations/ru.js +1 -1
  37. package/build/translations/sk.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -1
  41. package/build/translations/th.js +1 -1
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/tt.js +1 -1
  45. package/build/translations/uk.js +1 -1
  46. package/build/translations/ur.js +1 -1
  47. package/build/translations/vi.js +1 -1
  48. package/build/translations/zh-cn.js +1 -1
  49. package/build/translations/zh.js +1 -1
  50. package/lang/contexts.json +4 -1
  51. package/lang/translations/ar.po +12 -0
  52. package/lang/translations/az.po +12 -0
  53. package/lang/translations/bg.po +12 -0
  54. package/lang/translations/bn.po +12 -0
  55. package/lang/translations/ca.po +12 -0
  56. package/lang/translations/cs.po +12 -0
  57. package/lang/translations/da.po +12 -0
  58. package/lang/translations/de.po +12 -0
  59. package/lang/translations/el.po +12 -0
  60. package/lang/translations/en-au.po +12 -0
  61. package/lang/translations/en.po +12 -0
  62. package/lang/translations/es.po +12 -0
  63. package/lang/translations/et.po +12 -0
  64. package/lang/translations/fi.po +12 -0
  65. package/lang/translations/fr.po +12 -0
  66. package/lang/translations/gl.po +12 -0
  67. package/lang/translations/he.po +12 -0
  68. package/lang/translations/hi.po +12 -0
  69. package/lang/translations/hr.po +12 -0
  70. package/lang/translations/hu.po +12 -0
  71. package/lang/translations/id.po +12 -0
  72. package/lang/translations/it.po +12 -0
  73. package/lang/translations/ja.po +12 -0
  74. package/lang/translations/ko.po +12 -0
  75. package/lang/translations/lt.po +12 -0
  76. package/lang/translations/lv.po +12 -0
  77. package/lang/translations/ms.po +12 -0
  78. package/lang/translations/nl.po +12 -0
  79. package/lang/translations/no.po +12 -0
  80. package/lang/translations/pl.po +12 -0
  81. package/lang/translations/pt-br.po +12 -0
  82. package/lang/translations/pt.po +12 -0
  83. package/lang/translations/ro.po +12 -0
  84. package/lang/translations/ru.po +12 -0
  85. package/lang/translations/sk.po +12 -0
  86. package/lang/translations/sr-latn.po +12 -0
  87. package/lang/translations/sr.po +12 -0
  88. package/lang/translations/sv.po +12 -0
  89. package/lang/translations/th.po +12 -0
  90. package/lang/translations/tk.po +12 -0
  91. package/lang/translations/tr.po +12 -0
  92. package/lang/translations/tt.po +12 -0
  93. package/lang/translations/uk.po +12 -0
  94. package/lang/translations/ur.po +12 -0
  95. package/lang/translations/vi.po +12 -0
  96. package/lang/translations/zh-cn.po +12 -0
  97. package/lang/translations/zh.po +12 -0
  98. package/package.json +4 -4
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/{utils/sortsuggestions.js → commands/executeonallsuggestionscommand.js} +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +23 -0
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/integrations/alignment.js +1 -1
  105. package/src/integrations/basicstyles.js +1 -1
  106. package/src/integrations/blockquote.js +1 -1
  107. package/src/integrations/ckbox.js +1 -1
  108. package/src/integrations/codeblock.js +1 -1
  109. package/src/integrations/comments.js +1 -1
  110. package/src/integrations/deletecommand.js +1 -1
  111. package/src/integrations/documentlist.js +23 -0
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/font.js +1 -1
  114. package/src/integrations/heading.js +1 -1
  115. package/src/integrations/highlight.js +1 -1
  116. package/src/integrations/horizontalline.js +1 -1
  117. package/src/integrations/htmlembed.js +1 -1
  118. package/src/integrations/image.js +1 -1
  119. package/src/integrations/importword.js +1 -1
  120. package/src/integrations/indent.js +1 -1
  121. package/src/integrations/inputcommand.js +1 -1
  122. package/src/integrations/link.js +1 -1
  123. package/src/integrations/list.js +1 -1
  124. package/src/integrations/mediaembed.js +1 -1
  125. package/src/integrations/mention.js +1 -1
  126. package/src/integrations/pagebreak.js +1 -1
  127. package/src/integrations/paragraph.js +1 -1
  128. package/src/integrations/removeformat.js +1 -1
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.js +1 -1
  131. package/src/integrations/standardeditingmode.js +1 -1
  132. package/src/integrations/style.js +1 -1
  133. package/src/integrations/table.js +1 -1
  134. package/src/{utils/normalizedescription.js → integrations/tablecaption.js} +1 -1
  135. package/src/integrations/tableclipboard.js +1 -1
  136. package/src/integrations/tableheadings.js +1 -1
  137. package/src/integrations/tablemergesplit.js +1 -1
  138. package/src/integrations/title.js +1 -1
  139. package/src/integrations/undo.js +1 -1
  140. package/src/integrations/utils.js +1 -1
  141. package/src/suggestion.js +1 -1
  142. package/src/suggestiondescriptionfactory.js +1 -1
  143. package/src/trackchanges.js +1 -1
  144. package/src/trackchangesdata.js +1 -1
  145. package/src/trackchangesediting.js +1 -1
  146. package/src/trackchangesui.js +1 -1
  147. package/src/ui/suggestioncontroller.js +1 -1
  148. package/src/ui/view/basesuggestionthreadview.js +1 -1
  149. package/src/ui/view/suggestionthreadview.js +1 -1
  150. package/src/utils/common-translations.js +1 -1
  151. package/src/utils/utils.js +23 -0
  152. package/src/commands/acceptallsuggestionscommand.js +0 -23
  153. package/src/commands/acceptselectedsuggestionscommand.js +0 -23
  154. package/src/commands/discardallsuggestionscommand.js +0 -23
  155. package/src/commands/discardselectedsuggestionscommand.js +0 -23
  156. package/src/utils/getrangesofblockgroups.js +0 -23
  157. package/src/utils/getselectedsuggestions.js +0 -23
  158. package/src/utils/hashobject.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f99=['getSelectionAffectedTableCells','element','horizontally','createRangeOn','selection','change','length','table','has','getSuggestions','add','detach','map','*Split\x20cell:*\x20horizontally','getRanges','formatBlock','splitTableCellHorizontally','markBlockFormat','subType','commandName','mergeTableCellLeft','return','afterInit','enableCommand','_areMergableCells','get','accept','find','findAncestor','filter','commands','_suggestionFactory','_areSelectedCellsMergable','*Merge\x20cells*','size','mergeTableCellUp','plugins','low','_tablePostFixingSubtypes','_descriptionFactory','getCellLocation','$graveyard','TrackChangesEditing','mergeTableCellDown','model','document','format','set:isEnabled','type','_isForcedDefaultExecutionBlock','rootName','*Split\x20cell:*\x20vertically','from','setSelection','mergeTableCellRight','highest','tableCell','refresh','getAncestors','registerDescriptionCallback','registerCustomCallback','execute','TableUtils','cell','splitTableCellVertically','mergeTableCells','TableEditing','_acceptFormatSuggestionCallbackFactory','value','stop','push','insertion','containsRange','getFirstPosition','editor','createTableWalker','markMultiRangeBlockFormat','author','fromRange','isInContent'];(function(_0x23c460,_0x3f99fe){const _0x12e006=function(_0x17030a){while(--_0x17030a){_0x23c460['push'](_0x23c460['shift']());}};_0x12e006(++_0x3f99fe);}(_0x3f99,0xfa));const _0x12e0=function(_0x23c460,_0x3f99fe){_0x23c460=_0x23c460-0x0;let _0x12e006=_0x3f99[_0x23c460];return _0x12e006;};import{Plugin as _0x24aa03}from'ckeditor5/src/core';import _0x5f3b6c from'./table';import{LiveRange as _0x5caeaf}from'ckeditor5/src/engine';import{getTranslation as _0x2bfece}from'../utils/common-translations';export default class gt extends _0x24aa03{static get['requires'](){return[_0x5f3b6c];}[_0x12e0('0xc')](){const _0x55826c=this[_0x12e0('0x40')],_0x21b20f=_0x55826c[_0x12e0('0x22')][_0x12e0('0x23')][_0x12e0('0x4a')],_0x3f4e8a=_0x55826c['locale'];if(!_0x55826c[_0x12e0('0x1a')][_0x12e0('0x4e')](_0x12e0('0x38')))return;const _0x4540f5=_0x55826c['plugins'][_0x12e0('0xf')](_0x12e0('0x20')),_0x3a5ea3=_0x55826c['plugins'][_0x12e0('0xf')]('TableUtils'),_0x523d7a=_0x55826c[_0x12e0('0x1a')][_0x12e0('0xf')](_0x5f3b6c);_0x523d7a[_0x12e0('0x1c')][_0x12e0('0x3c')](_0x12e0('0x37')),_0x4540f5[_0x12e0('0xd')](_0x12e0('0x37'),()=>{const _0x5a2e11=_0x3a5ea3['getSelectionAffectedTableCells'](_0x55826c[_0x12e0('0x22')]['document'][_0x12e0('0x4a')]);_0x55826c[_0x12e0('0x22')][_0x12e0('0x4b')](()=>{_0x4540f5[_0x12e0('0x42')](_0x5a2e11,{'commandName':'mergeTableCells','commandParams':[]},[],_0x12e0('0x37'));});}),_0x55826c[_0x12e0('0x14')]['get'](_0x12e0('0x37'))['on'](_0x12e0('0x33'),(_0x5accbf,_0x338b3a)=>{_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')]('trackChanges')[_0x12e0('0x3a')]&&(_0x338b3a[_0x12e0('0x4c')]>0x0&&_0x338b3a[_0x338b3a[_0x12e0('0x4c')]-0x1]&&_0x338b3a[_0x338b3a[_0x12e0('0x4c')]-0x1]['forceDefaultExecution']||_0x4540f5[_0x12e0('0x27')]||this[_0x12e0('0x16')]()||_0x5accbf['stop']());},{'priority':_0x12e0('0x2d')});for(const _0x56fa30 of[_0x12e0('0x19'),'mergeTableCellRight',_0x12e0('0x21'),_0x12e0('0xa')]){const _0xb3fde8=_0x55826c[_0x12e0('0x14')]['get'](_0x56fa30);_0x4540f5[_0x12e0('0xd')](_0x56fa30,()=>{const _0xcbd2aa=_0x55826c['model']['document'][_0x12e0('0x4a')][_0x12e0('0x3f')]()[_0x12e0('0x30')]()[_0x12e0('0x11')](_0x1cf5db=>_0x1cf5db['is'](_0x12e0('0x47'),_0x12e0('0x2e'))),_0x5a1280=_0xb3fde8[_0x12e0('0x3a')];_0x55826c[_0x12e0('0x22')]['change'](()=>{_0x4540f5[_0x12e0('0x42')]([_0xcbd2aa,_0x5a1280],{'commandName':_0x12e0('0x37'),'commandParams':[]},[],_0x12e0('0x37'));});});}for(const _0x59092f of[_0x12e0('0x36'),_0x12e0('0x6')]){const _0xe64c6=_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')](_0x59092f);_0x4540f5[_0x12e0('0xd')](_0x59092f,()=>{const _0x560804=_0x3a5ea3[_0x12e0('0x46')](_0x55826c[_0x12e0('0x22')][_0x12e0('0x23')][_0x12e0('0x4a')])[0x0],_0x439c1c=_0x560804[_0x12e0('0x12')](_0x12e0('0x4d')),{column:_0x3073b4,row:_0x450aa8}=_0x3a5ea3[_0x12e0('0x1e')](_0x560804);let _0x44ec55=[];if(_0x12e0('0x48')==_0xe64c6['direction']){const _0x4b4269=_0x3a5ea3[_0x12e0('0x41')](_0x439c1c,{'startRow':_0x450aa8,'endRow':_0x450aa8,'includeAllSlots':!0x0});_0x44ec55=Array[_0x12e0('0x2a')](_0x4b4269)[_0x12e0('0x2')](_0x25552d=>_0x25552d[_0x12e0('0x35')]);}else{const _0x46054d=_0x3a5ea3['createTableWalker'](_0x439c1c,{'column':_0x3073b4,'includeAllSlots':!0x0});_0x44ec55=Array[_0x12e0('0x2a')](_0x46054d)[_0x12e0('0x2')](_0x17a719=>_0x17a719[_0x12e0('0x35')]);}_0x55826c['model']['change'](_0x2a7e6b=>{_0x4540f5[_0x12e0('0x7')](_0x2a7e6b[_0x12e0('0x49')](_0x560804),{'commandName':_0x59092f,'commandParams':[]},_0x44ec55,_0x59092f);});});}_0x4540f5[_0x12e0('0x1d')]['registerDescriptionCallback'](_0x57470e=>{const {data:_0x386aba}=_0x57470e;if(_0x386aba)return _0x12e0('0x37')==_0x386aba[_0x12e0('0x9')]?{'type':_0x12e0('0x24'),'content':_0x2bfece(_0x3f4e8a,_0x12e0('0x17'))}:void 0x0;}),_0x4540f5[_0x12e0('0x1d')][_0x12e0('0x31')](_0x2b018d=>{const {data:_0x1875ff}=_0x2b018d;if(_0x1875ff)return'splitTableCellVertically'==_0x1875ff[_0x12e0('0x9')]?{'type':_0x12e0('0x24'),'content':_0x2bfece(_0x3f4e8a,_0x12e0('0x29'))}:'splitTableCellHorizontally'==_0x1875ff[_0x12e0('0x9')]?{'type':_0x12e0('0x24'),'content':_0x2bfece(_0x3f4e8a,_0x12e0('0x3'))}:void 0x0;});const _0x14d29c=_0x523d7a[_0x12e0('0x39')]();for(const _0x31d21f of[_0x12e0('0x19'),_0x12e0('0x2c'),'mergeTableCellDown',_0x12e0('0xa')])_0x4540f5[_0x12e0('0x15')][_0x12e0('0x32')](_0x12e0('0x5'),_0x31d21f,_0x12e0('0x10'),_0x14d29c);for(const _0x303a5f of['splitTableCellVertically',_0x12e0('0x6')])_0x4540f5['_suggestionFactory'][_0x12e0('0x32')]('formatBlock',_0x303a5f,_0x12e0('0x10'),_0x14d29c);_0x4540f5[_0x12e0('0x15')][_0x12e0('0x32')](_0x12e0('0x5'),_0x12e0('0x37'),_0x12e0('0x10'),_0x5d7f1e=>{_0x55826c[_0x12e0('0x22')][_0x12e0('0x4b')](_0x199517=>{const _0x21f8a1=Array[_0x12e0('0x2a')](_0x21b20f[_0x12e0('0x4')]())['map'](_0x4cf436=>_0x5caeaf[_0x12e0('0x44')](_0x4cf436));_0x199517['setSelection'](_0x5d7f1e),_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')](_0x12e0('0x37'))[_0x12e0('0x2f')](),_0x55826c[_0x12e0('0x33')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x283199=_0x21f8a1[_0x12e0('0x13')](_0x2e0a0c=>_0x12e0('0x1f')!=_0x2e0a0c['root'][_0x12e0('0x28')]);_0x283199['length']>0x0&&_0x199517[_0x12e0('0x2b')](_0x283199);for(const _0x2a6d39 of _0x21f8a1)_0x2a6d39[_0x12e0('0x1')]();});});for(const _0xa605bd of[_0x12e0('0x19'),_0x12e0('0x21'),_0x12e0('0xa'),_0x12e0('0x2c')]){const _0xb3f584=_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')](_0xa605bd);_0xb3f584['on'](_0x12e0('0x25'),(_0x54cad5,_0x28adaf,_0x258168)=>{if(_0x258168){const _0x4acbdc=_0x55826c[_0x12e0('0x22')]['document'][_0x12e0('0x4a')][_0x12e0('0x3f')]()[_0x12e0('0x30')]()[_0x12e0('0x11')](_0x1ef1b3=>_0x1ef1b3['is'](_0x12e0('0x47'),_0x12e0('0x2e')));this[_0x12e0('0xe')](_0xb3f584[_0x12e0('0x3a')],_0x4acbdc)||(_0x54cad5[_0x12e0('0xb')]=!0x1,_0x54cad5[_0x12e0('0x3b')]());}},{'priority':_0x12e0('0x1b')});}}['_areSelectedCellsMergable'](){const _0x4fbe43=this['editor']['commands']['get'](_0x12e0('0x37')),_0x7ed700=this['editor']['plugins']['get'](_0x12e0('0x34'));if(!_0x4fbe43['isEnabled'])return!0x1;const _0x2902be=_0x7ed700[_0x12e0('0x46')](this[_0x12e0('0x40')]['model'][_0x12e0('0x23')]['selection']);for(const _0x58fbfc of _0x2902be)for(const _0x187dc7 of _0x2902be)if(_0x58fbfc!=_0x187dc7&&!this[_0x12e0('0xe')](_0x58fbfc,_0x187dc7))return!0x1;return!0x0;}[_0x12e0('0xe')](_0x3e0d63,_0xea2f7c){const _0x310e91=this[_0x12e0('0x40')][_0x12e0('0x1a')][_0x12e0('0xf')](_0x12e0('0x20')),_0x1bfaab=this['editor'][_0x12e0('0x22')][_0x12e0('0x49')](_0x3e0d63),_0x38098b=this[_0x12e0('0x40')]['model'][_0x12e0('0x49')](_0xea2f7c),_0x52a8ae=new Set(),_0x1172d1=new Set();for(const _0x186b7c of _0x310e91[_0x12e0('0x4f')]())if((_0x12e0('0x3d')==_0x186b7c[_0x12e0('0x26')]||'deletion'==_0x186b7c['type']||_0x12e0('0x37')==_0x186b7c[_0x12e0('0x8')])&&_0x186b7c[_0x12e0('0x45')])for(const _0x59f1aa of _0x186b7c['getRanges']())_0x59f1aa[_0x12e0('0x3e')](_0x1bfaab,!0x0)&&_0x52a8ae[_0x12e0('0x0')](_0x186b7c['type']+':'+_0x186b7c[_0x12e0('0x43')]['id']),_0x59f1aa['containsRange'](_0x38098b,!0x0)&&_0x1172d1['add'](_0x186b7c[_0x12e0('0x26')]+':'+_0x186b7c[_0x12e0('0x43')]['id']);if(_0x52a8ae[_0x12e0('0x18')]!=_0x1172d1[_0x12e0('0x18')])return!0x1;for(const _0x469c9b of _0x52a8ae)if(!_0x1172d1[_0x12e0('0x4e')](_0x469c9b))return!0x1;return!0x0;}}
23
+ const _0x26a2=['getRanges','size','formatBlock','tableCell','mergeTableCellDown','set:isEnabled','splitTableCellHorizontally','stop','registerCustomCallback','TableEditing','rootName','getSelectionAffectedTableCells','TrackChangesEditing','_areMergableCells','commands','get','createRangeOn','TableUtils','table','model','*Split\x20cell:*\x20horizontally','detach','afterInit','_acceptFormatSuggestionCallbackFactory','commandName','_descriptionFactory','getAncestors','isInContent','change','registerDescriptionCallback','_areSelectedCellsMergable','markBlockFormat','push','filter','locale','*Split\x20cell:*\x20vertically','findAncestor','from','has','highest','map','low','return','_isForcedDefaultExecutionBlock','isEnabled','createTableWalker','mergeTableCells','mergeTableCellLeft','subType','_suggestionFactory','cell','find','forceDefaultExecution','format','refresh','*Merge\x20cells*','add','length','setSelection','direction','accept','enableCommand','getCellLocation','element','containsRange','getFirstPosition','author','execute','deletion','selection','requires','editor','plugins','document','markMultiRangeBlockFormat','value','root','mergeTableCellUp','mergeTableCellRight','splitTableCellVertically','type','$graveyard'];(function(_0x1907a9,_0x26a259){const _0xb77508=function(_0x2f925d){while(--_0x2f925d){_0x1907a9['push'](_0x1907a9['shift']());}};_0xb77508(++_0x26a259);}(_0x26a2,0xcd));const _0xb775=function(_0x1907a9,_0x26a259){_0x1907a9=_0x1907a9-0x0;let _0xb77508=_0x26a2[_0x1907a9];return _0xb77508;};import{Plugin as _0x420082}from'ckeditor5/src/core';import _0x2052a1 from'./table';import{LiveRange as _0x10e41e}from'ckeditor5/src/engine';import{getTranslation as _0x1263ea}from'../utils/common-translations';export default class gt extends _0x420082{static get[_0xb775('0x1d')](){return[_0x2052a1];}[_0xb775('0x3f')](){const _0x4bb143=this[_0xb775('0x1e')],_0x34cf46=_0x4bb143[_0xb775('0x3c')]['document'][_0xb775('0x1c')],_0x104e68=_0x4bb143[_0xb775('0x4b')];if(!_0x4bb143['plugins'][_0xb775('0x4f')](_0xb775('0x32')))return;const _0x541d0c=_0x4bb143[_0xb775('0x1f')]['get']('TrackChangesEditing'),_0x2619f1=_0x4bb143['plugins']['get'](_0xb775('0x3a')),_0x14c5c4=_0x4bb143['plugins']['get'](_0x2052a1);_0x14c5c4['_tablePostFixingSubtypes'][_0xb775('0x49')](_0xb775('0x5')),_0x541d0c[_0xb775('0x14')](_0xb775('0x5'),()=>{const _0x51e7d4=_0x2619f1[_0xb775('0x34')](_0x4bb143['model'][_0xb775('0x20')][_0xb775('0x1c')]);_0x4bb143[_0xb775('0x3c')]['change'](()=>{_0x541d0c[_0xb775('0x21')](_0x51e7d4,{'commandName':_0xb775('0x5'),'commandParams':[]},[],'mergeTableCells');});}),_0x4bb143[_0xb775('0x37')][_0xb775('0x38')]('mergeTableCells')['on'](_0xb775('0x1a'),(_0x21d158,_0xccc3bd)=>{_0x4bb143[_0xb775('0x37')][_0xb775('0x38')]('trackChanges')[_0xb775('0x22')]&&(_0xccc3bd[_0xb775('0x10')]>0x0&&_0xccc3bd[_0xccc3bd[_0xb775('0x10')]-0x1]&&_0xccc3bd[_0xccc3bd[_0xb775('0x10')]-0x1][_0xb775('0xb')]||_0x541d0c[_0xb775('0x2')]||this['_areSelectedCellsMergable']()||_0x21d158[_0xb775('0x30')]());},{'priority':_0xb775('0x50')});for(const _0x3578d4 of[_0xb775('0x24'),_0xb775('0x25'),'mergeTableCellDown',_0xb775('0x6')]){const _0x173217=_0x4bb143['commands'][_0xb775('0x38')](_0x3578d4);_0x541d0c[_0xb775('0x14')](_0x3578d4,()=>{const _0x37746b=_0x4bb143[_0xb775('0x3c')][_0xb775('0x20')][_0xb775('0x1c')][_0xb775('0x18')]()[_0xb775('0x43')]()[_0xb775('0xa')](_0x2e361a=>_0x2e361a['is'](_0xb775('0x16'),_0xb775('0x2c'))),_0x5dbe22=_0x173217[_0xb775('0x22')];_0x4bb143[_0xb775('0x3c')][_0xb775('0x45')](()=>{_0x541d0c[_0xb775('0x21')]([_0x37746b,_0x5dbe22],{'commandName':_0xb775('0x5'),'commandParams':[]},[],_0xb775('0x5'));});});}for(const _0x4d1eef of[_0xb775('0x26'),_0xb775('0x2f')]){const _0x3c88b1=_0x4bb143[_0xb775('0x37')]['get'](_0x4d1eef);_0x541d0c[_0xb775('0x14')](_0x4d1eef,()=>{const _0x72868=_0x2619f1[_0xb775('0x34')](_0x4bb143[_0xb775('0x3c')][_0xb775('0x20')][_0xb775('0x1c')])[0x0],_0x4563b3=_0x72868[_0xb775('0x4d')](_0xb775('0x3b')),{column:_0x3e21da,row:_0x9b5669}=_0x2619f1[_0xb775('0x15')](_0x72868);let _0x364c44=[];if('horizontally'==_0x3c88b1[_0xb775('0x12')]){const _0x3ee1fa=_0x2619f1[_0xb775('0x4')](_0x4563b3,{'startRow':_0x9b5669,'endRow':_0x9b5669,'includeAllSlots':!0x0});_0x364c44=Array[_0xb775('0x4e')](_0x3ee1fa)[_0xb775('0x51')](_0xa32c86=>_0xa32c86[_0xb775('0x9')]);}else{const _0x8170a=_0x2619f1[_0xb775('0x4')](_0x4563b3,{'column':_0x3e21da,'includeAllSlots':!0x0});_0x364c44=Array['from'](_0x8170a)[_0xb775('0x51')](_0x165532=>_0x165532['cell']);}_0x4bb143[_0xb775('0x3c')][_0xb775('0x45')](_0x38df66=>{_0x541d0c[_0xb775('0x48')](_0x38df66[_0xb775('0x39')](_0x72868),{'commandName':_0x4d1eef,'commandParams':[]},_0x364c44,_0x4d1eef);});});}_0x541d0c['_descriptionFactory']['registerDescriptionCallback'](_0x2530d3=>{const {data:_0x54ab68}=_0x2530d3;if(_0x54ab68)return'mergeTableCells'==_0x54ab68[_0xb775('0x41')]?{'type':'format','content':_0x1263ea(_0x104e68,_0xb775('0xe'))}:void 0x0;}),_0x541d0c[_0xb775('0x42')][_0xb775('0x46')](_0x4dd0ea=>{const {data:_0x1cad67}=_0x4dd0ea;if(_0x1cad67)return'splitTableCellVertically'==_0x1cad67[_0xb775('0x41')]?{'type':'format','content':_0x1263ea(_0x104e68,_0xb775('0x4c'))}:_0xb775('0x2f')==_0x1cad67['commandName']?{'type':_0xb775('0xc'),'content':_0x1263ea(_0x104e68,_0xb775('0x3d'))}:void 0x0;});const _0x4b5008=_0x14c5c4[_0xb775('0x40')]();for(const _0x1f224d of['mergeTableCellUp',_0xb775('0x25'),_0xb775('0x2d'),_0xb775('0x6')])_0x541d0c[_0xb775('0x8')]['registerCustomCallback'](_0xb775('0x2b'),_0x1f224d,_0xb775('0x13'),_0x4b5008);for(const _0x18f21f of[_0xb775('0x26'),_0xb775('0x2f')])_0x541d0c[_0xb775('0x8')][_0xb775('0x31')](_0xb775('0x2b'),_0x18f21f,_0xb775('0x13'),_0x4b5008);_0x541d0c[_0xb775('0x8')][_0xb775('0x31')](_0xb775('0x2b'),_0xb775('0x5'),'accept',_0x1f890f=>{_0x4bb143[_0xb775('0x3c')][_0xb775('0x45')](_0x219ee0=>{const _0x194ede=Array[_0xb775('0x4e')](_0x34cf46[_0xb775('0x29')]())[_0xb775('0x51')](_0x584adb=>_0x10e41e['fromRange'](_0x584adb));_0x219ee0[_0xb775('0x11')](_0x1f890f),_0x4bb143[_0xb775('0x37')][_0xb775('0x38')](_0xb775('0x5'))[_0xb775('0xd')](),_0x4bb143['execute'](_0xb775('0x5'),{'forceDefaultExecution':!0x0});const _0xa2fe6b=_0x194ede[_0xb775('0x4a')](_0x36f703=>_0xb775('0x28')!=_0x36f703[_0xb775('0x23')][_0xb775('0x33')]);_0xa2fe6b['length']>0x0&&_0x219ee0[_0xb775('0x11')](_0xa2fe6b);for(const _0x19b547 of _0x194ede)_0x19b547[_0xb775('0x3e')]();});});for(const _0x1dacd8 of[_0xb775('0x24'),_0xb775('0x2d'),'mergeTableCellLeft',_0xb775('0x25')]){const _0x303803=_0x4bb143[_0xb775('0x37')][_0xb775('0x38')](_0x1dacd8);_0x303803['on'](_0xb775('0x2e'),(_0x3c8370,_0x1467dc,_0x228e41)=>{if(_0x228e41){const _0x4b2474=_0x4bb143[_0xb775('0x3c')][_0xb775('0x20')]['selection'][_0xb775('0x18')]()[_0xb775('0x43')]()[_0xb775('0xa')](_0x18fd0f=>_0x18fd0f['is']('element',_0xb775('0x2c')));this[_0xb775('0x36')](_0x303803[_0xb775('0x22')],_0x4b2474)||(_0x3c8370[_0xb775('0x1')]=!0x1,_0x3c8370['stop']());}},{'priority':_0xb775('0x0')});}}[_0xb775('0x47')](){const _0x387f17=this[_0xb775('0x1e')][_0xb775('0x37')][_0xb775('0x38')](_0xb775('0x5')),_0x17f896=this['editor'][_0xb775('0x1f')]['get'](_0xb775('0x3a'));if(!_0x387f17[_0xb775('0x3')])return!0x1;const _0x1e0560=_0x17f896[_0xb775('0x34')](this['editor']['model'][_0xb775('0x20')]['selection']);for(const _0x29d12a of _0x1e0560)for(const _0x1a5635 of _0x1e0560)if(_0x29d12a!=_0x1a5635&&!this['_areMergableCells'](_0x29d12a,_0x1a5635))return!0x1;return!0x0;}[_0xb775('0x36')](_0x35bb89,_0x5263d1){const _0x519b67=this[_0xb775('0x1e')]['plugins'][_0xb775('0x38')](_0xb775('0x35')),_0x9fc8b1=this[_0xb775('0x1e')][_0xb775('0x3c')][_0xb775('0x39')](_0x35bb89),_0x38ea73=this['editor'][_0xb775('0x3c')][_0xb775('0x39')](_0x5263d1),_0x3fef59=new Set(),_0x8ebc6f=new Set();for(const _0x52980d of _0x519b67['getSuggestions']())if(('insertion'==_0x52980d[_0xb775('0x27')]||_0xb775('0x1b')==_0x52980d['type']||_0xb775('0x5')==_0x52980d[_0xb775('0x7')])&&_0x52980d[_0xb775('0x44')])for(const _0x2aca46 of _0x52980d[_0xb775('0x29')]())_0x2aca46[_0xb775('0x17')](_0x9fc8b1,!0x0)&&_0x3fef59[_0xb775('0xf')](_0x52980d['type']+':'+_0x52980d[_0xb775('0x19')]['id']),_0x2aca46[_0xb775('0x17')](_0x38ea73,!0x0)&&_0x8ebc6f['add'](_0x52980d[_0xb775('0x27')]+':'+_0x52980d[_0xb775('0x19')]['id']);if(_0x3fef59[_0xb775('0x2a')]!=_0x8ebc6f[_0xb775('0x2a')])return!0x1;for(const _0x958d4e of _0x3fef59)if(!_0x8ebc6f[_0xb775('0x4f')](_0x958d4e))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e32=['get','isCollapsed','document','plugins','forward','locale','registerPostFixer','schema','afterInit','end','_descriptionFactory','TrackChangesEditing','updateMarker','Title','nodeBefore','getChangedMarkers','title-content','differ','newRange','editor','model','ELEMENT_TITLE','isEqual','isTouching','_splitMarkerName','has','element','start','suggestion'];(function(_0x34c489,_0x3e3283){const _0x4f3f25=function(_0x15d44f){while(--_0x15d44f){_0x34c489['push'](_0x34c489['shift']());}};_0x4f3f25(++_0x3e3283);}(_0x3e32,0x141));const _0x4f3f=function(_0x34c489,_0x3e3283){_0x34c489=_0x34c489-0x0;let _0x4f3f25=_0x3e32[_0x34c489];return _0x4f3f25;};import{Plugin as _0x1cf716}from'ckeditor5/src/core';import{getTranslation as _0x465935}from'../utils/common-translations';export default class dt extends _0x1cf716{[_0x4f3f('0x6')](){const _0xb42c1c=this[_0x4f3f('0x11')];if(!_0xb42c1c[_0x4f3f('0x1')][_0x4f3f('0x17')](_0x4f3f('0xb')))return;const _0x5dd47f=_0xb42c1c[_0x4f3f('0x1')][_0x4f3f('0x1b')](_0x4f3f('0x9'));_0x5dd47f[_0x4f3f('0x8')]['registerElementLabel'](_0x4f3f('0xe'),()=>_0x465935(_0xb42c1c[_0x4f3f('0x3')],_0x4f3f('0x13'))),_0xb42c1c[_0x4f3f('0x12')]['document'][_0x4f3f('0x4')](_0x2d0b7b=>{let _0x8be040=!0x1;const _0x1c90b1=Array['from'](_0xb42c1c[_0x4f3f('0x12')][_0x4f3f('0x0')][_0x4f3f('0xf')][_0x4f3f('0xd')]());for(const {name:_0xc6e5cc,data:_0x596a05}of _0x1c90b1){const {group:_0x11cd40}=_0x5dd47f[_0x4f3f('0x16')](_0xc6e5cc);if(_0x4f3f('0x1a')!==_0x11cd40||!_0x596a05[_0x4f3f('0x10')])continue;const _0x6be15c=_0x596a05[_0x4f3f('0x10')],_0x487ed0=_0x6be15c[_0x4f3f('0x7')][_0x4f3f('0xc')];if(!_0x487ed0||!_0x487ed0['is'](_0x4f3f('0x18'),_0x4f3f('0xe')))continue;if(!_0x6be15c[_0x4f3f('0x19')][_0x4f3f('0x15')](_0x6be15c['end']))continue;const _0x23a537=_0xb42c1c[_0x4f3f('0x12')][_0x4f3f('0x5')]['getNearestSelectionRange'](_0x6be15c[_0x4f3f('0x7')],_0x4f3f('0x2'));if(_0x23a537&&_0x23a537[_0x4f3f('0x1c')]){const _0x1ba174=_0x2d0b7b['createRange'](_0x6be15c[_0x4f3f('0x19')],_0x23a537[_0x4f3f('0x19')]);_0x1ba174[_0x4f3f('0x14')](_0x6be15c)||(_0x2d0b7b[_0x4f3f('0xa')](_0xc6e5cc,{'range':_0x1ba174}),_0x8be040=!0x0);}_0x8be040||(_0x2d0b7b['removeMarker'](_0xc6e5cc),_0x8be040=!0x0);}return _0x8be040;});}}
23
+ const _0x34f8=['Title','_splitMarkerName','start','has','newRange','removeMarker','end','model','title-content','getNearestSelectionRange','registerPostFixer','plugins','registerElementLabel','schema','locale','isEqual','TrackChangesEditing','getChangedMarkers','updateMarker','isTouching','afterInit','_descriptionFactory','from','differ','get','document'];(function(_0x31db35,_0x34f87a){const _0x37e8a1=function(_0x28d49b){while(--_0x28d49b){_0x31db35['push'](_0x31db35['shift']());}};_0x37e8a1(++_0x34f87a);}(_0x34f8,0x135));const _0x37e8=function(_0x31db35,_0x34f87a){_0x31db35=_0x31db35-0x0;let _0x37e8a1=_0x34f8[_0x31db35];return _0x37e8a1;};import{Plugin as _0xc2c01b}from'ckeditor5/src/core';import{getTranslation as _0x481c2c}from'../utils/common-translations';export default class dt extends _0xc2c01b{[_0x37e8('0x17')](){const _0x12f7ce=this['editor'];if(!_0x12f7ce[_0x37e8('0xe')][_0x37e8('0x6')](_0x37e8('0x3')))return;const _0x3bb51b=_0x12f7ce[_0x37e8('0xe')][_0x37e8('0x1')](_0x37e8('0x13'));_0x3bb51b[_0x37e8('0x18')][_0x37e8('0xf')](_0x37e8('0xb'),()=>_0x481c2c(_0x12f7ce[_0x37e8('0x11')],'ELEMENT_TITLE')),_0x12f7ce[_0x37e8('0xa')][_0x37e8('0x2')][_0x37e8('0xd')](_0x5bdb17=>{let _0x440325=!0x1;const _0x49760b=Array[_0x37e8('0x19')](_0x12f7ce[_0x37e8('0xa')][_0x37e8('0x2')][_0x37e8('0x0')][_0x37e8('0x14')]());for(const {name:_0x4b7e54,data:_0x3c6802}of _0x49760b){const {group:_0x623c3e}=_0x3bb51b[_0x37e8('0x4')](_0x4b7e54);if('suggestion'!==_0x623c3e||!_0x3c6802[_0x37e8('0x7')])continue;const _0x47932b=_0x3c6802['newRange'],_0x4d2654=_0x47932b['end']['nodeBefore'];if(!_0x4d2654||!_0x4d2654['is']('element','title-content'))continue;if(!_0x47932b[_0x37e8('0x5')][_0x37e8('0x16')](_0x47932b[_0x37e8('0x9')]))continue;const _0x40d045=_0x12f7ce[_0x37e8('0xa')][_0x37e8('0x10')][_0x37e8('0xc')](_0x47932b[_0x37e8('0x9')],'forward');if(_0x40d045&&_0x40d045['isCollapsed']){const _0x5ab44b=_0x5bdb17['createRange'](_0x47932b[_0x37e8('0x5')],_0x40d045[_0x37e8('0x5')]);_0x5ab44b[_0x37e8('0x12')](_0x47932b)||(_0x5bdb17[_0x37e8('0x15')](_0x4b7e54,{'range':_0x5ab44b}),_0x440325=!0x0);}_0x440325||(_0x5bdb17[_0x37e8('0x8')](_0x4b7e54),_0x440325=!0x0);}return _0x440325;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x74ca=['editor','enableCommand','plugins','TrackChangesEditing','undo','afterInit','redo','get','has'];(function(_0xa987be,_0x74ca8b){const _0x3e8ac6=function(_0x1f6df9){while(--_0x1f6df9){_0xa987be['push'](_0xa987be['shift']());}};_0x3e8ac6(++_0x74ca8b);}(_0x74ca,0x90));const _0x3e8a=function(_0xa987be,_0x74ca8b){_0xa987be=_0xa987be-0x0;let _0x3e8ac6=_0x74ca[_0xa987be];return _0x3e8ac6;};import{Plugin as _0x570c6c}from'ckeditor5/src/core';export default class pt extends _0x570c6c{[_0x3e8a('0x5')](){const _0x10ca65=this[_0x3e8a('0x0')],_0x50b379=_0x10ca65[_0x3e8a('0x2')][_0x3e8a('0x7')](_0x3e8a('0x3'));_0x10ca65['plugins'][_0x3e8a('0x8')]('UndoEditing')&&(_0x50b379[_0x3e8a('0x1')](_0x3e8a('0x4')),_0x50b379[_0x3e8a('0x1')](_0x3e8a('0x6')));}}
23
+ const _0x3418=['enableCommand','editor','TrackChangesEditing','get','plugins','has'];(function(_0x85f1eb,_0x341877){const _0x3093d0=function(_0x295f6d){while(--_0x295f6d){_0x85f1eb['push'](_0x85f1eb['shift']());}};_0x3093d0(++_0x341877);}(_0x3418,0x87));const _0x3093=function(_0x85f1eb,_0x341877){_0x85f1eb=_0x85f1eb-0x0;let _0x3093d0=_0x3418[_0x85f1eb];return _0x3093d0;};import{Plugin as _0x59b73b}from'ckeditor5/src/core';export default class pt extends _0x59b73b{['afterInit'](){const _0x3b40bb=this[_0x3093('0x4')],_0x469e3f=_0x3b40bb[_0x3093('0x1')][_0x3093('0x0')](_0x3093('0x5'));_0x3b40bb['plugins'][_0x3093('0x2')]('UndoEditing')&&(_0x469e3f[_0x3093('0x3')]('undo'),_0x469e3f['enableCommand']('redo'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1309=['ck-suggestion-marker--active','listIndent','plugins','writer','toViewPosition','insert','markerRange','schema','mapper','addClass','push','element','ck-suggestion-marker-','getCustomProperty','elementEnd','isContent','addHighlight','markerName','createUIElement','previousPosition','item','type','TrackChangesEditing','includes','getAttribute','isLimit','get','toViewElement','bindElementToMarker','model','isBlock','listItem','consumable','start','nextSibling','span','test','name','hasAttribute'];(function(_0x297084,_0x130949){const _0x309d78=function(_0x225730){while(--_0x225730){_0x297084['push'](_0x297084['shift']());}};_0x309d78(++_0x130949);}(_0x1309,0x112));const _0x309d=function(_0x297084,_0x130949){_0x297084=_0x297084-0x0;let _0x309d78=_0x1309[_0x297084];return _0x309d78;};export function getRangesWithAttribute(_0xdefdfa,_0x2bdaff,_0x4b0e85){const _0x55ea6c=[];for(const _0x1dd6f7 of _0x2bdaff['getItems']())_0x1dd6f7[_0x309d('0x25')](_0xdefdfa)&&_0x55ea6c['push'](_0x4b0e85['createRangeOn'](_0x1dd6f7));return _0x55ea6c;}export function getElementsAffectedByListItemRename(_0x40a683){const _0x245107=[];if(_0x40a683['is'](_0x309d('0xa'),'listItem')){let _0x1ea82d=_0x40a683[_0x309d('0x21')];for(;_0x1ea82d&&_0x1ea82d['is']('element',_0x309d('0x1e'))&&_0x1ea82d[_0x309d('0x17')](_0x309d('0x0'))>0x0;)_0x245107[_0x309d('0x9')](_0x1ea82d),_0x1ea82d=_0x1ea82d[_0x309d('0x21')];}return _0x245107;}export function downcastSplitMergeMarker(_0x53b210,_0x1f8acd,{showActiveMarker:_0x45dfc6=!0x0}={}){const _0x1d0525=_0x53b210[_0x309d('0x1')][_0x309d('0x19')](_0x309d('0x15'));return(_0x1d3910,_0xbd73bb,_0x39951b)=>{if(!_0x39951b[_0x309d('0x1f')][_0x309d('0x23')](_0xbd73bb[_0x309d('0x5')],_0x1d3910[_0x309d('0x24')]))return;const _0x212ef8=_0xbd73bb[_0x309d('0x5')]['getWalker'](),_0x303291=_0xbd73bb[_0x309d('0x5')][_0x309d('0x20')],_0x213b7e=_0x53b210[_0x309d('0x1c')][_0x309d('0x6')];let _0x27c4a8=null,_0x578496=null,_0xc15b08=!0x1,_0x10655e=!0x1;for(const _0x4ba0df of _0x212ef8){const _0x1ce1be=_0x4ba0df[_0x309d('0x13')];_0xc15b08=_0xc15b08||_0x213b7e[_0x309d('0xe')](_0x1ce1be);const _0x35c9bf=_0x39951b[_0x309d('0x7')][_0x309d('0x1a')](_0x1ce1be);if(_0x35c9bf&&_0x35c9bf[_0x309d('0xc')](_0x309d('0xf')))return;_0x309d('0xd')==_0x4ba0df[_0x309d('0x14')]&&(_0x213b7e[_0x309d('0x1d')](_0x1ce1be)&&!_0x213b7e[_0x309d('0x18')](_0x1ce1be)&&(_0x1ce1be[_0x309d('0x21')]||_0x303291['isAtEnd']?_0x27c4a8&&_0x27c4a8['parent']==_0x1ce1be||(_0x27c4a8=_0x1ce1be,_0x4d79ae(_0x4ba0df[_0x309d('0x12')]),_0x10655e=!0x0):_0x578496=_0x578496||_0x4ba0df['previousPosition']));}function _0x4d79ae(_0x40ef4d){const _0x5265c4=_0x39951b[_0x309d('0x2')][_0x309d('0x11')](_0x309d('0x22'),{'class':_0x309d('0xb')+_0x1f8acd}),_0x4d910f=_0x39951b[_0x309d('0x7')][_0x309d('0x3')](_0x40ef4d);_0x45dfc6&&_0x1d0525['activeMarkers'][_0x309d('0x16')](_0xbd73bb[_0x309d('0x10')])&&_0x39951b[_0x309d('0x2')][_0x309d('0x8')](_0x309d('0x26'),_0x5265c4),_0x39951b[_0x309d('0x2')][_0x309d('0x4')](_0x4d910f,_0x5265c4),_0x39951b[_0x309d('0x7')][_0x309d('0x1b')](_0x5265c4,_0xbd73bb[_0x309d('0x10')]);}_0xc15b08||_0x10655e||!_0x578496||_0x4d79ae(_0x578496);};}
23
+ const _0xa98e=['type','start','markerName','getWalker','push','createRangeOn','markerRange','writer','schema','item','parent','addHighlight','bindElementToMarker','elementEnd','test','insert','toViewElement','getItems','hasAttribute','ck-suggestion-marker--active','element','getCustomProperty','isBlock','name','mapper','isContent','listItem','listIndent','nextSibling','getAttribute','isLimit','plugins','previousPosition'];(function(_0x17cd51,_0xa98e06){const _0x46779a=function(_0x2fe6e7){while(--_0x2fe6e7){_0x17cd51['push'](_0x17cd51['shift']());}};_0x46779a(++_0xa98e06);}(_0xa98e,0xc8));const _0x4677=function(_0x17cd51,_0xa98e06){_0x17cd51=_0x17cd51-0x0;let _0x46779a=_0xa98e[_0x17cd51];return _0x46779a;};export function getRangesWithAttribute(_0x3d69ee,_0x2b89b2,_0x3cc01a){const _0x21d1db=[];for(const _0x504af3 of _0x2b89b2[_0x4677('0xf')]())_0x504af3[_0x4677('0x10')](_0x3d69ee)&&_0x21d1db[_0x4677('0x2')](_0x3cc01a[_0x4677('0x3')](_0x504af3));return _0x21d1db;}export function getElementsAffectedByListItemRename(_0x5db37c){const _0x52e811=[];if(_0x5db37c['is'](_0x4677('0x12'),'listItem')){let _0x3b9f69=_0x5db37c[_0x4677('0x1a')];for(;_0x3b9f69&&_0x3b9f69['is'](_0x4677('0x12'),_0x4677('0x18'))&&_0x3b9f69[_0x4677('0x1b')](_0x4677('0x19'))>0x0;)_0x52e811['push'](_0x3b9f69),_0x3b9f69=_0x3b9f69[_0x4677('0x1a')];}return _0x52e811;}export function downcastSplitMergeMarker(_0xc6e133,_0x199cb8,{showActiveMarker:_0x304225=!0x0}={}){const _0x321397=_0xc6e133[_0x4677('0x1d')]['get']('TrackChangesEditing');return(_0x21058c,_0x3f3357,_0x3400cb)=>{if(!_0x3400cb['consumable'][_0x4677('0xc')](_0x3f3357[_0x4677('0x4')],_0x21058c[_0x4677('0x15')]))return;const _0x5e5445=_0x3f3357[_0x4677('0x4')][_0x4677('0x1')](),_0x4a1311=_0x3f3357[_0x4677('0x4')][_0x4677('0x20')],_0x15ef9f=_0xc6e133['model'][_0x4677('0x6')];let _0x16f8c8=null,_0x3b4074=null,_0x419f4d=!0x1,_0x5bdf3c=!0x1;for(const _0x5e3450 of _0x5e5445){const _0x72e0ac=_0x5e3450[_0x4677('0x7')];_0x419f4d=_0x419f4d||_0x15ef9f[_0x4677('0x17')](_0x72e0ac);const _0x5ccc09=_0x3400cb[_0x4677('0x16')][_0x4677('0xe')](_0x72e0ac);if(_0x5ccc09&&_0x5ccc09[_0x4677('0x13')](_0x4677('0x9')))return;_0x4677('0xb')==_0x5e3450[_0x4677('0x1f')]&&(_0x15ef9f[_0x4677('0x14')](_0x72e0ac)&&!_0x15ef9f[_0x4677('0x1c')](_0x72e0ac)&&(_0x72e0ac[_0x4677('0x1a')]||_0x4a1311['isAtEnd']?_0x16f8c8&&_0x16f8c8[_0x4677('0x8')]==_0x72e0ac||(_0x16f8c8=_0x72e0ac,_0x47ed19(_0x5e3450[_0x4677('0x1e')]),_0x5bdf3c=!0x0):_0x3b4074=_0x3b4074||_0x5e3450['previousPosition']));}function _0x47ed19(_0x4201fb){const _0x57d6d7=_0x3400cb[_0x4677('0x5')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x199cb8}),_0x379ace=_0x3400cb[_0x4677('0x16')]['toViewPosition'](_0x4201fb);_0x304225&&_0x321397['activeMarkers']['includes'](_0x3f3357[_0x4677('0x0')])&&_0x3400cb[_0x4677('0x5')]['addClass'](_0x4677('0x11'),_0x57d6d7),_0x3400cb[_0x4677('0x5')][_0x4677('0xd')](_0x379ace,_0x57d6d7),_0x3400cb[_0x4677('0x16')][_0x4677('0xa')](_0x57d6d7,_0x3f3357[_0x4677('0x0')]);}_0x419f4d||_0x5bdf3c||!_0x3b4074||_0x47ed19(_0x3b4074);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33d0=['onAttributesChange','filter','size','getMultiRangeId','removeMarkers','getMarkers','map','type','nodeBefore','addRange','onAccept','accept','author','getAllAdjacentSuggestions','get','_onDiscard','_onAttributesChange','nodeAfter','markers','_saved','next','hasComments','from','reduce','head','set','getRange','getFirstMarker','clear','toJSON','onDiscard','substr','suggestion:','removeMarker','data','isInContent','attributes','start','push','createdAt','discard','subType','_markerNames','getContainedElement','getItems','getMarkerNames','_model','add','_onAccept','isMultiRange','delete','isIntersecting','length','end','commentThread','getRanges','change','previous','decorate','addMarkerName'];(function(_0x5c09ae,_0x33d05d){const _0x1f76e1=function(_0x11bc4b){while(--_0x11bc4b){_0x5c09ae['push'](_0x5c09ae['shift']());}};_0x1f76e1(++_0x33d05d);}(_0x33d0,0x1e6));const _0x1f76=function(_0x5c09ae,_0x33d05d){_0x5c09ae=_0x5c09ae-0x0;let _0x1f76e1=_0x33d0[_0x5c09ae];return _0x1f76e1;};import{Element as _0x59bce1}from'ckeditor5/src/engine';import{ObservableMixin as _0xba55fc,mix as _0x24f273,uid as _0x8dd5c7}from'ckeditor5/src/utils';import{cloneDeep as _0x5973aa,isEqual as _0x14e8a7,set as _0x32294f,unset as _0x3bd18e}from'lodash-es';export default class o{constructor(_0x4ce0e0,_0x4811c1){this['id']=_0x4811c1['id'],this[_0x1f76('0x1')]=_0x4811c1[_0x1f76('0x1')],this['subType']=_0x4811c1[_0x1f76('0x23')]||null,this[_0x1f76('0x6')]=_0x4811c1['author'],this['externalAuthor']=_0x4811c1['externalAuthor'],this['data']=null,this[_0x1f76('0x28')]=_0x4ce0e0,this[_0x1f76('0x2a')]=_0x4811c1[_0x1f76('0x4')],this[_0x1f76('0x9')]=_0x4811c1[_0x1f76('0x18')],this[_0x1f76('0xa')]=_0x4811c1[_0x1f76('0x36')],this[_0x1f76('0x24')]=new Set(),this[_0x1f76('0x13')](_0x1f76('0x21'),null),this[_0x1f76('0x13')](_0x1f76('0x1e'),_0x4811c1[_0x1f76('0x1e')]||{}),this[_0x1f76('0x13')](_0x1f76('0x33'),null),this[_0x1f76('0x13')]('next',null),this[_0x1f76('0x13')](_0x1f76('0x30'),null),this[_0x1f76('0x13')](_0x1f76('0xd'),!0x1),this[_0x1f76('0x34')](_0x1f76('0x5')),this[_0x1f76('0x34')]('discard');}get['head'](){let _0x18ec00=this;for(;_0x18ec00['previous'];)_0x18ec00=_0x18ec00[_0x1f76('0x33')];return _0x18ec00;}get[_0x1f76('0xf')](){return!!this[_0x1f76('0x30')]&&this[_0x1f76('0x30')][_0x1f76('0x2e')]>0x0;}get[_0x1f76('0x2b')](){if(0x0==this['_markerNames'][_0x1f76('0x38')])return!0x1;return 0x6==Array[_0x1f76('0x10')](this[_0x1f76('0x24')])[0x0]['split'](':')['length'];}get[_0x1f76('0x1d')](){return null!==this[_0x1f76('0x15')]();}[_0x1f76('0x35')](_0x90ba48){this[_0x1f76('0x24')][_0x1f76('0x29')](_0x90ba48);}[_0x1f76('0x27')](){return Array[_0x1f76('0x10')](this[_0x1f76('0x24')]);}[_0x1f76('0x3b')](){return this[_0x1f76('0x27')]()[_0x1f76('0x0')](_0x1bc72e=>this[_0x1f76('0x28')][_0x1f76('0xc')][_0x1f76('0x8')](_0x1bc72e))[_0x1f76('0x37')](_0x5becb2=>_0x5becb2);}[_0x1f76('0x15')](){return this[_0x1f76('0x3b')]()[0x0]||null;}[_0x1f76('0x3a')](){this['_model']['change'](_0x22485d=>{for(const _0x1773b of this[_0x1f76('0x3b')]())_0x22485d[_0x1f76('0x1b')](_0x1773b);}),this['_markerNames'][_0x1f76('0x16')]();}[_0x1f76('0x1b')](_0x285b11){this[_0x1f76('0x28')]['change'](_0x5b9fbd=>{_0x5b9fbd[_0x1f76('0x1b')](_0x285b11);}),this[_0x1f76('0x24')][_0x1f76('0x2c')](_0x285b11);}[_0x1f76('0x3')](_0x278516){const _0x35471b=_0x1f76('0x1a')+this[_0x1f76('0x1')]+':'+this['subType']+':'+this['id']+':'+this[_0x1f76('0x6')]['id']+':'+o['getMultiRangeId']();this[_0x1f76('0x35')](_0x35471b),this[_0x1f76('0x28')][_0x1f76('0x32')](_0x2d8005=>{_0x2d8005['addMarker'](_0x35471b,{'range':_0x278516,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d7414){for(const _0x22182e of this[_0x1f76('0x31')]())if(_0x22182e[_0x1f76('0x2d')](_0x3d7414))return!0x0;return!0x1;}[_0x1f76('0x31')](){return this[_0x1f76('0x3b')]()[_0x1f76('0x0')](_0x5bfdcd=>_0x5bfdcd[_0x1f76('0x14')]());}[_0x1f76('0x26')](){return this[_0x1f76('0x31')]()[_0x1f76('0x11')]((_0x595264,_0xa77b25)=>[..._0x595264,..._0xa77b25[_0x1f76('0x26')]()],[]);}['getFirstRange'](){return this[_0x1f76('0x15')]()[_0x1f76('0x14')]();}[_0x1f76('0x25')](){const _0x2336ac=this[_0x1f76('0x31')]();if(0x1!=_0x2336ac[_0x1f76('0x2e')])return null;const _0x3339ba=_0x2336ac[0x0],_0x367ca0=_0x3339ba[_0x1f76('0x1f')][_0x1f76('0xb')],_0x2ea147=_0x3339ba[_0x1f76('0x2f')][_0x1f76('0x2')];return _0x367ca0 instanceof _0x59bce1?_0x367ca0!=_0x2ea147?null:_0x367ca0:null;}[_0x1f76('0x5')](){this[_0x1f76('0x2a')](this[_0x1f76('0x31')](),this[_0x1f76('0x1c')],this[_0x1f76('0x1e')]),this['removeMarkers']();}[_0x1f76('0x22')](){this[_0x1f76('0x9')](this['getRanges'](),this[_0x1f76('0x1c')],this[_0x1f76('0x1e')]),this['removeMarkers']();}[_0x1f76('0x7')](){const _0x30401b=[];let _0x14ccf9=this[_0x1f76('0x12')];for(;_0x14ccf9;)_0x30401b[_0x1f76('0x20')](_0x14ccf9),_0x14ccf9=_0x14ccf9[_0x1f76('0xe')];return _0x30401b;}['setAttribute'](_0x22ab4c,_0x3b29f3){const _0x1d2d50=_0x5973aa(this[_0x1f76('0x1e')]);_0x32294f(_0x1d2d50,_0x22ab4c,_0x3b29f3),_0x14e8a7(_0x1d2d50,this[_0x1f76('0x1e')])||(this[_0x1f76('0x1e')]=_0x1d2d50,this['_onAttributesChange'](_0x1d2d50));}['removeAttribute'](_0x1447b8){const _0x382e17=_0x5973aa(this[_0x1f76('0x1e')]);_0x3bd18e(_0x382e17,_0x1447b8),_0x14e8a7(_0x382e17,this[_0x1f76('0x1e')])||(this[_0x1f76('0x1e')]=_0x382e17,this['_onAttributesChange'](this[_0x1f76('0x1e')]));}[_0x1f76('0x17')](){return{'id':this['id'],'type':this['subType']?this[_0x1f76('0x1')]+':'+this[_0x1f76('0x23')]:this['type'],'authorId':this[_0x1f76('0x6')]['id'],'createdAt':this[_0x1f76('0x21')],'hasComments':this['hasComments'],'data':this[_0x1f76('0x1c')],'attributes':this[_0x1f76('0x1e')]};}static[_0x1f76('0x39')](){return _0x8dd5c7()[_0x1f76('0x19')](0x1,0x5);}}_0x24f273(o,_0xba55fc);
23
+ const _0x415b=['commentThread','previous','attributes','getFirstMarker','addRange','getItems','setAttribute','isIntersectingWithRange','getMarkers','authoredAt','_onAccept','creator','_onDiscard','accept','_markerNames','removeMarker','markers','onAttributesChange','data','isMultiRange','change','split','next','removeAttribute','getRange','getContainedElement','head','delete','hasComments','reduce','@external','toJSON','push','createdAt','removeMarkers','subType','getMultiRangeId','type','onDiscard','getMarkerNames','decorate','_onAttributesChange','length','add','onAccept','set','isInContent','suggestion:','getRanges','addMarkerName','nodeAfter','isIntersecting','map','from','author','_model','discard','substr','end'];(function(_0x1b894b,_0x415ba9){const _0x1e16ab=function(_0x448e1e){while(--_0x448e1e){_0x1b894b['push'](_0x1b894b['shift']());}};_0x1e16ab(++_0x415ba9);}(_0x415b,0xd7));const _0x1e16=function(_0x1b894b,_0x415ba9){_0x1b894b=_0x1b894b-0x0;let _0x1e16ab=_0x415b[_0x1b894b];return _0x1e16ab;};import{Element as _0x266c3f}from'ckeditor5/src/engine';import{ObservableMixin as _0x4bd783,mix as _0x1be470,uid as _0x20d6d2}from'ckeditor5/src/utils';import{cloneDeep as _0x36a624,isEqual as _0x4e1e8c,set as _0x5b8a0f,unset as _0x342e92}from'lodash-es';export default class o{constructor(_0x1deda4,_0x5eb090){this['id']=_0x5eb090['id'],this[_0x1e16('0x3a')]=_0x5eb090[_0x1e16('0x3a')],this['subType']=_0x5eb090[_0x1e16('0x38')]||null,this[_0x1e16('0x10')]=_0x5eb090['author'],this[_0x1e16('0x20')]=_0x5eb090[_0x1e16('0x20')]||_0x5eb090[_0x1e16('0x10')],this['isExternal']=Boolean(_0x5eb090[_0x1e16('0x17')]&&_0x5eb090[_0x1e16('0x17')][_0x1e16('0x33')]),this['data']=null,this[_0x1e16('0x11')]=_0x1deda4,this[_0x1e16('0x1f')]=_0x5eb090[_0x1e16('0x6')],this[_0x1e16('0x21')]=_0x5eb090[_0x1e16('0x0')],this[_0x1e16('0x3')]=_0x5eb090[_0x1e16('0x26')],this[_0x1e16('0x23')]=new Set(),this['createdAt']=null,this[_0x1e16('0x7')](_0x1e16('0x1e'),null),this[_0x1e16('0x7')]('attributes',_0x5eb090[_0x1e16('0x17')]||{}),this[_0x1e16('0x7')](_0x1e16('0x16'),null),this[_0x1e16('0x7')](_0x1e16('0x2b'),null),this[_0x1e16('0x7')](_0x1e16('0x15'),null),this[_0x1e16('0x7')]('_saved',!0x1),this[_0x1e16('0x2')](_0x1e16('0x22')),this[_0x1e16('0x2')](_0x1e16('0x12'));}get['head'](){let _0x4ea6e0=this;for(;_0x4ea6e0[_0x1e16('0x16')];)_0x4ea6e0=_0x4ea6e0[_0x1e16('0x16')];return _0x4ea6e0;}get['hasComments'](){return!!this[_0x1e16('0x15')]&&this[_0x1e16('0x15')][_0x1e16('0x4')]>0x0;}get[_0x1e16('0x28')](){if(0x0==this[_0x1e16('0x23')]['size'])return!0x1;return 0x6==Array[_0x1e16('0xf')](this[_0x1e16('0x23')])[0x0][_0x1e16('0x2a')](':')[_0x1e16('0x4')];}get[_0x1e16('0x8')](){return null!==this[_0x1e16('0x18')]();}[_0x1e16('0xb')](_0x4e0b63){this[_0x1e16('0x23')][_0x1e16('0x5')](_0x4e0b63);}[_0x1e16('0x1')](){return Array['from'](this[_0x1e16('0x23')]);}['getMarkers'](){return this[_0x1e16('0x1')]()[_0x1e16('0xe')](_0x1efecb=>this[_0x1e16('0x11')][_0x1e16('0x25')]['get'](_0x1efecb))['filter'](_0x15be04=>_0x15be04);}[_0x1e16('0x18')](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model'][_0x1e16('0x29')](_0x5a10e4=>{for(const _0x38d158 of this[_0x1e16('0x1d')]())_0x5a10e4[_0x1e16('0x24')](_0x38d158);}),this[_0x1e16('0x23')]['clear']();}[_0x1e16('0x24')](_0x4de777){this['_model'][_0x1e16('0x29')](_0x25e756=>{_0x25e756['removeMarker'](_0x4de777);}),this[_0x1e16('0x23')][_0x1e16('0x30')](_0x4de777);}[_0x1e16('0x19')](_0x5145a1){const _0x18f27f=_0x1e16('0x9')+this['type']+':'+this[_0x1e16('0x38')]+':'+this['id']+':'+this[_0x1e16('0x20')]['id']+':'+o[_0x1e16('0x39')]();this[_0x1e16('0xb')](_0x18f27f),this[_0x1e16('0x11')][_0x1e16('0x29')](_0x5c9eb9=>{_0x5c9eb9['addMarker'](_0x18f27f,{'range':_0x5145a1,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1e16('0x1c')](_0x1b111c){for(const _0x51c4ad of this[_0x1e16('0xa')]())if(_0x51c4ad[_0x1e16('0xd')](_0x1b111c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()[_0x1e16('0xe')](_0x58238c=>_0x58238c[_0x1e16('0x2d')]());}[_0x1e16('0x1a')](){return this[_0x1e16('0xa')]()[_0x1e16('0x32')]((_0x464a6f,_0x2b597d)=>[..._0x464a6f,..._0x2b597d['getItems']()],[]);}['getFirstRange'](){return this[_0x1e16('0x18')]()[_0x1e16('0x2d')]();}[_0x1e16('0x2e')](){const _0x48295b=this[_0x1e16('0xa')]();if(0x1!=_0x48295b['length'])return null;const _0x1d6eef=_0x48295b[0x0],_0x1123eb=_0x1d6eef['start'][_0x1e16('0xc')],_0x17aad6=_0x1d6eef[_0x1e16('0x14')]['nodeBefore'];return _0x1123eb instanceof _0x266c3f?_0x1123eb!=_0x17aad6?null:_0x1123eb:null;}['accept'](){this[_0x1e16('0x1f')](this['getRanges'](),this[_0x1e16('0x27')],this[_0x1e16('0x17')]),this[_0x1e16('0x37')]();}[_0x1e16('0x12')](){this[_0x1e16('0x21')](this[_0x1e16('0xa')](),this[_0x1e16('0x27')],this[_0x1e16('0x17')]),this[_0x1e16('0x37')]();}['getAllAdjacentSuggestions'](){const _0x17efb5=[];let _0x548658=this[_0x1e16('0x2f')];for(;_0x548658;)_0x17efb5[_0x1e16('0x35')](_0x548658),_0x548658=_0x548658['next'];return _0x17efb5;}[_0x1e16('0x1b')](_0x563389,_0xb13283){const _0x59110f=_0x36a624(this[_0x1e16('0x17')]);_0x5b8a0f(_0x59110f,_0x563389,_0xb13283),_0x4e1e8c(_0x59110f,this[_0x1e16('0x17')])||(this['attributes']=_0x59110f,this[_0x1e16('0x3')](_0x59110f));}[_0x1e16('0x2c')](_0x29d098){const _0x4757c0=_0x36a624(this[_0x1e16('0x17')]);_0x342e92(_0x4757c0,_0x29d098),_0x4e1e8c(_0x4757c0,this[_0x1e16('0x17')])||(this[_0x1e16('0x17')]=_0x4757c0,this[_0x1e16('0x3')](this['attributes']));}[_0x1e16('0x34')](){return{'id':this['id'],'type':this[_0x1e16('0x38')]?this[_0x1e16('0x3a')]+':'+this['subType']:this[_0x1e16('0x3a')],'authorId':this[_0x1e16('0x20')]['id'],'createdAt':this[_0x1e16('0x36')],'hasComments':this[_0x1e16('0x31')],'data':this[_0x1e16('0x27')],'attributes':this['attributes']};}static[_0x1e16('0x39')](){return _0x20d6d2()[_0x1e16('0x13')](0x1,0x5);}}_0x1be470(o,_0x4bd783);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12a3=['length','function','isEmpty','isObject','_addDescriptionItems','element','registerElementLabel','name','isEqual','indexOf','_customCallbacks','remove','Object','REPLACE_TEXT','*Remove:*\x20%0','getDescriptions','get','_resolveDescriptionItems','pop','skip','checkChild','getFirstRange','Container','*Split:*\x20%0','_locale','match','type','_schema','start','$text','deletion','quantity','$1\x20$2','getWalker','data','removeObject','*Insert:*\x20%0','textProxy','nextSibling','_itemLabels','insertion','addContainer','set','replace','*Merge:*\x20%0','getItemLabel','addObject','add','item','elementEnd','removeContainer','previousSibling','EmptyContainer','text','push','ELEMENT_SPACE'];(function(_0x179ad,_0x12a389){const _0x1a297b=function(_0x307f81){while(--_0x307f81){_0x179ad['push'](_0x179ad['shift']());}};_0x1a297b(++_0x12a389);}(_0x12a3,0x64));const _0x1a29=function(_0x179ad,_0x12a389){_0x179ad=_0x179ad-0x0;let _0x1a297b=_0x12a3[_0x179ad];return _0x1a297b;};import{getTranslation as _0x481a89}from'./utils/common-translations';export default class l{constructor(_0x209f01,_0x217d31){this[_0x1a29('0x16')]=[],this[_0x1a29('0x33')]=new Map(),this[_0x1a29('0x27')]=_0x209f01,this[_0x1a29('0x24')]=_0x217d31;}[_0x1a29('0x1b')](_0x43014b){const _0x5ef2a2=[];for(let _0x3ef025=0x0;_0x3ef025<_0x43014b[_0x1a29('0xc')];_0x3ef025++){const _0x187c3a=_0x43014b[_0x3ef025];if(!_0x187c3a['isInContent'])continue;let _0x47d282=!0x1;for(const _0x219d6c of this['_customCallbacks']){const _0x3ff5b8=_0x219d6c(_0x187c3a);if(_0x3ff5b8){_0x3ff5b8[_0x1a29('0x26')]&&_0x5ef2a2[_0x1a29('0xa')](_0x3ff5b8),_0x47d282=!0x0;break;}}if(!_0x47d282){this[_0x1a29('0x10')](_0x5ef2a2,_0x187c3a);const _0x1dd887=_0x43014b[_0x3ef025+0x1];if(_0x1dd887&&!_0x187c3a['getFirstRange']()['end'][_0x1a29('0x14')](_0x1dd887[_0x1a29('0x21')]()[_0x1a29('0x28')])){const _0x217cfb=_0x5ef2a2[_0x5ef2a2[_0x1a29('0xc')]-0x1],_0x219bd3='insertion'==_0x187c3a['type']?_0x1a29('0x3'):'remove';_0x217cfb&&_0x1a29('0x9')==_0x217cfb[_0x1a29('0x26')]&&(_0x217cfb[_0x219bd3]+='\x0a');}}}return this[_0x1a29('0x1d')](_0x5ef2a2);}['registerDescriptionCallback'](_0x51d80c){this[_0x1a29('0x16')][_0x1a29('0xa')](_0x51d80c);}[_0x1a29('0x12')](_0x234b85,_0x467095){this[_0x1a29('0x33')][_0x1a29('0x36')](_0x234b85,_0x467095);}[_0x1a29('0x1')](_0x5dab79,_0x21ef5a=0x1){const _0x472efd=this[_0x1a29('0x33')][_0x1a29('0x1c')](_0x5dab79)||_0x5dab79;return _0x1a29('0xd')==typeof _0x472efd?_0x472efd(_0x21ef5a):0x1!==_0x21ef5a?_0x21ef5a+'\x20'+_0x472efd+'s':''+_0x472efd;}[_0x1a29('0x10')](_0x39a0b7,_0xbda8e9){const _0x39eacd=_0xbda8e9[_0x1a29('0x21')]()[_0x1a29('0x2d')](),_0x5e6095=_0x1a29('0x34')==_0xbda8e9['type']?'add':'remove';for(const _0x421783 of _0x39eacd){const _0x4489cf=_0x421783[_0x1a29('0x4')],_0x38bdd2=_0x39a0b7[_0x39a0b7[_0x1a29('0xc')]-0x1];if(_0x4489cf['is'](_0x1a29('0x31')))_0x38bdd2&&_0x38bdd2['type'][_0x1a29('0x15')](_0x1a29('0x22'))>-0x1&&_0x39a0b7[_0x1a29('0x1e')](),_0x38bdd2&&'text'==_0x38bdd2[_0x1a29('0x26')]?_0x38bdd2[_0x5e6095]+=_0x4489cf[_0x1a29('0x2e')]:_0x39a0b7['push']({'type':_0x1a29('0x9'),'add':'add'==_0x5e6095?_0x4489cf[_0x1a29('0x2e')]:'','remove':_0x1a29('0x17')==_0x5e6095?_0x4489cf[_0x1a29('0x2e')]:''});else{if(this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf)){if(_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')][_0x1a29('0x15')](_0x1a29('0x22'))>-0x1&&_0x39a0b7['pop'](),_0x1a29('0x5')==_0x421783[_0x1a29('0x26')])continue;_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')]==_0x5e6095+_0x1a29('0x18')&&_0x38bdd2[_0x1a29('0x13')]==_0x4489cf[_0x1a29('0x13')]?_0x38bdd2[_0x1a29('0x2b')]++:_0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x18'),'name':_0x4489cf['name'],'quantity':0x1}),_0x39eacd[_0x1a29('0x1f')](_0x3b9a7e=>!(_0x1a29('0x5')==_0x3b9a7e['type']&&_0x3b9a7e[_0x1a29('0x4')]==_0x4489cf));}else{if(this[_0x1a29('0x27')][_0x1a29('0x20')](_0x4489cf,_0x1a29('0x29'))||_0x4489cf['is'](_0x1a29('0x11'),'softBreak')){if(_0x1a29('0x3')==_0x5e6095&&'elementStart'==_0x421783[_0x1a29('0x26')]||'remove'==_0x5e6095&&_0x1a29('0x5')==_0x421783[_0x1a29('0x26')])continue;if(_0x38bdd2&&-0x1==_0x38bdd2[_0x1a29('0x26')][_0x1a29('0x15')]('Container')){_0x1a29('0x9')==_0x38bdd2[_0x1a29('0x26')]&&(_0x38bdd2[_0x5e6095]+='\x0a');continue;}let _0x5708cf;if(_0x5708cf=_0x1a29('0x3')==_0x5e6095?_0x4489cf[_0x1a29('0x32')]&&!this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf['nextSibling'])?_0x4489cf['nextSibling']:null:_0x4489cf[_0x1a29('0x7')]&&!this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf['previousSibling'])?_0x4489cf[_0x1a29('0x7')]:null,_0x4489cf[_0x1a29('0xe')]||_0x5708cf&&_0x5708cf['isEmpty']){const _0x1d84d8=_0x5708cf&&_0x5708cf['isEmpty']?_0x5708cf[_0x1a29('0x13')]:_0x4489cf[_0x1a29('0x13')];_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')]==_0x5e6095+'EmptyContainer'&&_0x38bdd2[_0x1a29('0x13')]==_0x1d84d8?_0x38bdd2[_0x1a29('0x2b')]++:_0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x8'),'name':_0x1d84d8,'quantity':0x1});}else _0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x22'),'name':_0x4489cf[_0x1a29('0x13')]});}}}}}[_0x1a29('0x1d')](_0x3bee44){const _0x225539=this[_0x1a29('0x24')],_0x53deac=[];for(const _0x338a1d of _0x3bee44){switch(_0x338a1d['type']){case _0x1a29('0x9'):if(_0x338a1d['add']=_0x338a1d[_0x1a29('0x3')][_0x1a29('0x37')](/(\S)\u000A+(\S)/g,_0x1a29('0x2c'))[_0x1a29('0x37')](/\u000A/g,''),_0x338a1d[_0x1a29('0x17')]=_0x338a1d[_0x1a29('0x17')][_0x1a29('0x37')](/(\S)\u000A+(\S)/g,_0x1a29('0x2c'))['replace'](/\u000A/g,''),''!=_0x338a1d[_0x1a29('0x3')]&&''!=_0x338a1d[_0x1a29('0x17')]){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x37'),'content':_0x481a89(_0x225539,_0x1a29('0x19'),['\x22'+_0x338a1d[_0x1a29('0x17')]+'\x22','\x22'+_0x338a1d[_0x1a29('0x3')]+'\x22'])});continue;}if(null!=_0x338a1d[_0x1a29('0x3')][_0x1a29('0x25')](/^ +$/)){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,'*Insert:*\x20%0',_0x481a89(_0x225539,_0x1a29('0xb'),_0x338a1d[_0x1a29('0x3')][_0x1a29('0xc')]))});continue;}if(null!=_0x338a1d[_0x1a29('0x17')][_0x1a29('0x25')](/^ +$/)){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x1a'),_0x481a89(_0x225539,_0x1a29('0xb'),_0x338a1d[_0x1a29('0x17')]['length']))});continue;}if(''!=_0x338a1d[_0x1a29('0x3')]){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,_0x1a29('0x30'),'\x22'+_0x338a1d['add']+'\x22')});continue;}_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,'*Remove:*\x20%0','\x22'+_0x338a1d[_0x1a29('0x17')]+'\x22')});continue;case'addEmptyContainer':case _0x1a29('0x2'):_0x53deac['push']({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,_0x1a29('0x30'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d[_0x1a29('0x2b')]))});continue;case'removeEmptyContainer':case _0x1a29('0x2f'):_0x53deac['push']({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x1a'),this['getItemLabel'](_0x338a1d[_0x1a29('0x13')],_0x338a1d[_0x1a29('0x2b')]))});continue;case _0x1a29('0x35'):_0x53deac[_0x1a29('0xa')]({'type':'insertion','content':_0x481a89(_0x225539,_0x1a29('0x23'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d['quantity']))});continue;case _0x1a29('0x6'):_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x0'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d['quantity']))});continue;}_0x53deac['push'](_0x338a1d);}return _0x53deac;}}
23
+ const _0x619b=['getDescriptions','item','_itemLabelsCallbacks','pop','start','addObject','addContainer','normal','textProxy','ELEMENT_SPACE','replace','text','_itemLabels','match','registerDescriptionCallback','function','insertion','quantity','end','$text','isEmpty','*Remove:*\x20%0','_locale','Object','*Merge:*\x20%0','element','_addDescriptionItems','getFirstRange','removeContainer','addEmptyContainer','$1\x20$2','add','indexOf','_resolveDescriptionItems','*Split:*\x20%0','getItemLabel','_schema','removeObject','previousSibling','deletion','isObject','length','removeEmptyContainer','_customCallbacks','push','*Insert:*\x20%0','elementEnd','data','type','remove','REPLACE_TEXT','matchingCallback','elementStart','label','name','softBreak','get','Container','isInContent','getWalker'];(function(_0xefe10,_0x619b0f){const _0x2a2a56=function(_0x920a76){while(--_0x920a76){_0xefe10['push'](_0xefe10['shift']());}};_0x2a2a56(++_0x619b0f);}(_0x619b,0x67));const _0x2a2a=function(_0xefe10,_0x619b0f){_0xefe10=_0xefe10-0x0;let _0x2a2a56=_0x619b[_0xefe10];return _0x2a2a56;};import{getTranslation as _0xb00a45}from'./utils/common-translations';import{priorities as _0x563c04,insertToPriorityArray as _0x171fe4}from'ckeditor5/src/utils';export default class f{constructor(_0x338080,_0x360e4d){this['_customCallbacks']=[],this[_0x2a2a('0x1d')]=new Map(),this['_itemLabelsCallbacks']=[],this['_schema']=_0x338080,this['_locale']=_0x360e4d;}[_0x2a2a('0x11')](_0x39c2db){const _0x1f558f=[];for(let _0x4fbc87=0x0;_0x4fbc87<_0x39c2db[_0x2a2a('0x3a')];_0x4fbc87++){const _0x188b04=_0x39c2db[_0x4fbc87];if(!_0x188b04[_0x2a2a('0xf')])continue;let _0x316c45=!0x1;for(const _0x42e348 of this[_0x2a2a('0x0')]){const _0x146982=_0x42e348(_0x188b04);if(_0x146982){_0x146982[_0x2a2a('0x5')]&&_0x1f558f[_0x2a2a('0x1')](_0x146982),_0x316c45=!0x0;break;}}if(!_0x316c45){this[_0x2a2a('0x2b')](_0x1f558f,_0x188b04);const _0x5111df=_0x39c2db[_0x4fbc87+0x1];if(_0x5111df&&!_0x188b04[_0x2a2a('0x2c')]()[_0x2a2a('0x23')]['isEqual'](_0x5111df[_0x2a2a('0x2c')]()[_0x2a2a('0x15')])){const _0x3e3073=_0x1f558f[_0x1f558f[_0x2a2a('0x3a')]-0x1],_0x39b628=_0x2a2a('0x21')==_0x188b04[_0x2a2a('0x5')]?_0x2a2a('0x30'):_0x2a2a('0x6');_0x3e3073&&'text'==_0x3e3073[_0x2a2a('0x5')]&&(_0x3e3073[_0x39b628]+='\x0a');}}}return this[_0x2a2a('0x32')](_0x1f558f);}[_0x2a2a('0x1f')](_0x14fa71){this[_0x2a2a('0x0')]['push'](_0x14fa71);}['registerElementLabel'](_0x20f9db,_0x395af4,_0x22f221=_0x563c04[_0x2a2a('0x18')]){_0x2a2a('0x20')==typeof _0x20f9db?_0x171fe4(this[_0x2a2a('0x13')],{'matchingCallback':_0x20f9db,'label':_0x395af4,'priority':_0x22f221}):this[_0x2a2a('0x1d')]['set'](_0x20f9db,_0x395af4);}[_0x2a2a('0x34')](_0x3f9d2f,_0x2b911a=0x1){let _0x5a9643;for(const _0x4db26a of this[_0x2a2a('0x13')])if(_0x4db26a[_0x2a2a('0x8')](_0x3f9d2f)){_0x5a9643=_0x4db26a[_0x2a2a('0xa')];break;}return _0x5a9643||(_0x5a9643=this['_itemLabels'][_0x2a2a('0xd')](_0x3f9d2f[_0x2a2a('0xb')])),_0x5a9643?_0x5a9643(_0x2b911a):0x1!==_0x2b911a?_0x2b911a+'\x20'+_0x3f9d2f['name']+'s':''+_0x3f9d2f[_0x2a2a('0xb')];}[_0x2a2a('0x2b')](_0x1adad9,_0x3359d6){const _0x4e2477=_0x3359d6[_0x2a2a('0x2c')]()[_0x2a2a('0x10')](),_0x28c04=_0x2a2a('0x21')==_0x3359d6['type']?_0x2a2a('0x30'):_0x2a2a('0x6');for(const _0x3d5daf of _0x4e2477){const _0x513752=_0x3d5daf['item'],_0x4901ef=_0x1adad9[_0x1adad9['length']-0x1];if(_0x513752['is'](_0x2a2a('0x19')))_0x4901ef&&_0x4901ef[_0x2a2a('0x5')]['indexOf'](_0x2a2a('0xe'))>-0x1&&_0x1adad9[_0x2a2a('0x14')](),_0x4901ef&&_0x2a2a('0x1c')==_0x4901ef[_0x2a2a('0x5')]?_0x4901ef[_0x28c04]+=_0x513752[_0x2a2a('0x4')]:_0x1adad9[_0x2a2a('0x1')]({'type':_0x2a2a('0x1c'),'add':'add'==_0x28c04?_0x513752[_0x2a2a('0x4')]:'','remove':'remove'==_0x28c04?_0x513752[_0x2a2a('0x4')]:''});else{if(this[_0x2a2a('0x35')][_0x2a2a('0x39')](_0x513752)){if(_0x4901ef&&_0x4901ef[_0x2a2a('0x5')]['indexOf'](_0x2a2a('0xe'))>-0x1&&_0x1adad9[_0x2a2a('0x14')](),_0x2a2a('0x3')==_0x3d5daf[_0x2a2a('0x5')])continue;_0x4901ef&&_0x4901ef[_0x2a2a('0x5')]==_0x28c04+_0x2a2a('0x28')&&_0x4901ef[_0x2a2a('0x2a')][_0x2a2a('0xb')]==_0x513752[_0x2a2a('0xb')]?_0x4901ef[_0x2a2a('0x22')]++:_0x1adad9['push']({'type':_0x28c04+_0x2a2a('0x28'),'element':_0x513752,'quantity':0x1}),_0x4e2477['skip'](_0x50129c=>!(_0x2a2a('0x3')==_0x50129c[_0x2a2a('0x5')]&&_0x50129c[_0x2a2a('0x12')]==_0x513752));}else{if(this[_0x2a2a('0x35')]['checkChild'](_0x513752,_0x2a2a('0x24'))||_0x513752['is']('element',_0x2a2a('0xc'))){if('add'==_0x28c04&&_0x2a2a('0x9')==_0x3d5daf['type']||_0x2a2a('0x6')==_0x28c04&&'elementEnd'==_0x3d5daf[_0x2a2a('0x5')])continue;if(_0x4901ef&&-0x1==_0x4901ef[_0x2a2a('0x5')][_0x2a2a('0x31')](_0x2a2a('0xe'))){_0x2a2a('0x1c')==_0x4901ef['type']&&(_0x4901ef[_0x28c04]+='\x0a');continue;}let _0x413801;if(_0x413801=_0x2a2a('0x30')==_0x28c04?_0x513752['nextSibling']&&!this[_0x2a2a('0x35')]['isObject'](_0x513752['nextSibling'])?_0x513752['nextSibling']:null:_0x513752[_0x2a2a('0x37')]&&!this[_0x2a2a('0x35')][_0x2a2a('0x39')](_0x513752[_0x2a2a('0x37')])?_0x513752[_0x2a2a('0x37')]:null,_0x513752[_0x2a2a('0x25')]||_0x413801&&_0x413801[_0x2a2a('0x25')]){const _0x316435=_0x413801&&_0x413801['isEmpty']?_0x413801:_0x513752;_0x4901ef&&_0x4901ef[_0x2a2a('0x5')]==_0x28c04+'EmptyContainer'&&_0x4901ef[_0x2a2a('0x2a')]['name']==_0x316435[_0x2a2a('0xb')]?_0x4901ef[_0x2a2a('0x22')]++:_0x1adad9[_0x2a2a('0x1')]({'type':_0x28c04+'EmptyContainer','element':_0x316435,'quantity':0x1});}else _0x1adad9['push']({'type':_0x28c04+'Container','element':_0x513752});}}}}}[_0x2a2a('0x32')](_0x33fea7){const _0x27752d=this[_0x2a2a('0x27')],_0x17080d=[];for(const _0x4217f8 of _0x33fea7){switch(_0x4217f8[_0x2a2a('0x5')]){case'text':if(_0x4217f8['add']=_0x4217f8['add'][_0x2a2a('0x1b')](/(\S)\u000A+(\S)/g,_0x2a2a('0x2f'))[_0x2a2a('0x1b')](/\u000A/g,''),_0x4217f8[_0x2a2a('0x6')]=_0x4217f8[_0x2a2a('0x6')]['replace'](/(\S)\u000A+(\S)/g,_0x2a2a('0x2f'))[_0x2a2a('0x1b')](/\u000A/g,''),''!=_0x4217f8[_0x2a2a('0x30')]&&''!=_0x4217f8['remove']){_0x17080d[_0x2a2a('0x1')]({'type':'replace','content':_0xb00a45(_0x27752d,_0x2a2a('0x7'),['\x22'+_0x4217f8[_0x2a2a('0x6')]+'\x22','\x22'+_0x4217f8[_0x2a2a('0x30')]+'\x22'])});continue;}if(null!=_0x4217f8[_0x2a2a('0x30')]['match'](/^ +$/)){_0x17080d[_0x2a2a('0x1')]({'type':'insertion','content':_0xb00a45(_0x27752d,_0x2a2a('0x2'),_0xb00a45(_0x27752d,_0x2a2a('0x1a'),_0x4217f8['add'][_0x2a2a('0x3a')]))});continue;}if(null!=_0x4217f8['remove'][_0x2a2a('0x1e')](/^ +$/)){_0x17080d[_0x2a2a('0x1')]({'type':_0x2a2a('0x38'),'content':_0xb00a45(_0x27752d,_0x2a2a('0x26'),_0xb00a45(_0x27752d,'ELEMENT_SPACE',_0x4217f8[_0x2a2a('0x6')][_0x2a2a('0x3a')]))});continue;}if(''!=_0x4217f8[_0x2a2a('0x30')]){_0x17080d[_0x2a2a('0x1')]({'type':'insertion','content':_0xb00a45(_0x27752d,_0x2a2a('0x2'),'\x22'+_0x4217f8[_0x2a2a('0x30')]+'\x22')});continue;}_0x17080d[_0x2a2a('0x1')]({'type':_0x2a2a('0x38'),'content':_0xb00a45(_0x27752d,'*Remove:*\x20%0','\x22'+_0x4217f8['remove']+'\x22')});continue;case _0x2a2a('0x2e'):case _0x2a2a('0x16'):_0x17080d[_0x2a2a('0x1')]({'type':_0x2a2a('0x21'),'content':_0xb00a45(_0x27752d,_0x2a2a('0x2'),this[_0x2a2a('0x34')](_0x4217f8[_0x2a2a('0x2a')],_0x4217f8[_0x2a2a('0x22')]))});continue;case _0x2a2a('0x3b'):case _0x2a2a('0x36'):_0x17080d[_0x2a2a('0x1')]({'type':_0x2a2a('0x38'),'content':_0xb00a45(_0x27752d,'*Remove:*\x20%0',this[_0x2a2a('0x34')](_0x4217f8[_0x2a2a('0x2a')],_0x4217f8['quantity']))});continue;case _0x2a2a('0x17'):_0x17080d[_0x2a2a('0x1')]({'type':_0x2a2a('0x21'),'content':_0xb00a45(_0x27752d,_0x2a2a('0x33'),this[_0x2a2a('0x34')](_0x4217f8[_0x2a2a('0x2a')],_0x4217f8['quantity']))});continue;case _0x2a2a('0x2d'):_0x17080d[_0x2a2a('0x1')]({'type':_0x2a2a('0x38'),'content':_0xb00a45(_0x27752d,_0x2a2a('0x29'),this[_0x2a2a('0x34')](_0x4217f8[_0x2a2a('0x2a')],_0x4217f8['quantity']))});continue;}_0x17080d[_0x2a2a('0x1')](_0x4217f8);}return _0x17080d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5b3f=['getSuggestion','getSuggestions','get','adapter','addSuggestionData','plugins','addSuggestion','editor'];(function(_0x5290c3,_0x5b3ff9){var _0x422991=function(_0x43d640){while(--_0x43d640){_0x5290c3['push'](_0x5290c3['shift']());}};_0x422991(++_0x5b3ff9);}(_0x5b3f,0x79));var _0x4229=function(_0x5290c3,_0x5b3ff9){_0x5290c3=_0x5290c3-0x0;var _0x422991=_0x5b3f[_0x5290c3];return _0x422991;};import{Plugin as _0x43b2a2}from'ckeditor5/src/core';import _0x16906c from'./trackchangesui';import _0x1acb2a from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x43b2a2{static get['requires'](){return[_0x1acb2a,_0x16906c,'Comments'];}static get['pluginName'](){return'TrackChanges';}set[_0x4229('0x2')](_0x55311f){this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x2')]=_0x55311f;}get[_0x4229('0x2')](){return this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x2')];}[_0x4229('0x5')](_0x4d61cf){return this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x3')](_0x4d61cf);}[_0x4229('0x0')](_0x4b7d24){return this['editor'][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x0')](_0x4b7d24);}[_0x4229('0x7')](_0x7fc3e7){return this['editor'][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)['getSuggestion'](_0x7fc3e7);}}
23
+ var _0x4966=['plugins','getSuggestions','addSuggestion','pluginName','requires','TrackChanges','editor','getSuggestion','adapter','get'];(function(_0x552184,_0x496677){var _0x30d4f4=function(_0x2dfc4a){while(--_0x2dfc4a){_0x552184['push'](_0x552184['shift']());}};_0x30d4f4(++_0x496677);}(_0x4966,0x1c9));var _0x30d4=function(_0x552184,_0x496677){_0x552184=_0x552184-0x0;var _0x30d4f4=_0x4966[_0x552184];return _0x30d4f4;};import{Plugin as _0xc17562}from'ckeditor5/src/core';import _0x26b58e from'./trackchangesui';import _0x571c1f from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0xc17562{static get[_0x30d4('0x7')](){return[_0x571c1f,_0x26b58e,'Comments'];}static get[_0x30d4('0x6')](){return _0x30d4('0x8');}set[_0x30d4('0x1')](_0x805edc){this[_0x30d4('0x9')][_0x30d4('0x3')]['get'](_0x571c1f)[_0x30d4('0x1')]=_0x805edc;}get[_0x30d4('0x1')](){return this[_0x30d4('0x9')]['plugins']['get'](_0x571c1f)['adapter'];}[_0x30d4('0x5')](_0x3862c2){return this[_0x30d4('0x9')]['plugins']['get'](_0x571c1f)['addSuggestionData'](_0x3862c2);}[_0x30d4('0x4')](_0x23bfb8){return this[_0x30d4('0x9')][_0x30d4('0x3')][_0x30d4('0x2')](_0x571c1f)[_0x30d4('0x4')](_0x23bfb8);}[_0x30d4('0x0')](_0x347a4a){return this[_0x30d4('0x9')]['plugins'][_0x30d4('0x2')](_0x571c1f)[_0x30d4('0x0')](_0x347a4a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4733=['trackChangesData.editorCreator','concat','editorCreator','discardAllSuggestions','createDocumentFragment','plugins','function','useAnonymousUser','every','users','string','toolbar','RealTimeCollaborativeComments','div','editor','names','TrackChangesDataGetter','destroy','create','addUser','createElement','includes','requires','from','data','name','document','add','filter','config','builtinPlugins','constructor','WordCount','find','RealTimeCollaborativeRevisionHistory','_adapter','pluginName','initialData','track-changes-data-invalid-editor-creator','execute','appendChild','end','RealTimeCollaborativeEditing','getUser','set','context','TrackChangesEditing','acceptAllSuggestions','define','map','model','getRootNames','init','trackChangesData','extraPlugins','CommentsRepository','Users','push','get','has'];(function(_0x490c54,_0x473359){const _0x324170=function(_0x5eef53){while(--_0x5eef53){_0x490c54['push'](_0x490c54['shift']());}};_0x324170(++_0x473359);}(_0x4733,0x197));const _0x3241=function(_0x490c54,_0x473359){_0x490c54=_0x490c54-0x0;let _0x324170=_0x4733[_0x490c54];return _0x324170;};import{Plugin as _0x5340a7}from'ckeditor5/src/core';import{CKEditorError as _0x4b9dfb}from'ckeditor5/src/utils';import _0x401f26 from'./trackchangesediting';const C=[_0x3241('0x32'),_0x3241('0x3a'),_0x3241('0x18')],k=[_0x3241('0x37'),_0x3241('0x19'),'RealTimeCollaborativeTrackChanges',_0x3241('0x2f'),'Autosave',_0x3241('0x2d')];export default class T extends _0x5340a7{static get[_0x3241('0x23')](){return[_0x401f26];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x28b474=this['editor'];if(_0x28b474[_0x3241('0x2a')][_0x3241('0x1')](_0x3241('0xd'),_0x9d44e8=>_0x28b474[_0x3241('0x2c')][_0x3241('0x1f')]('',_0x9d44e8)),_0x3241('0x13')!=typeof _0x28b474['config'][_0x3241('0xb')](_0x3241('0x6'))[_0x3241('0xf')])throw new _0x4b9dfb(_0x3241('0x33'));}['getDataWithAcceptedSuggestions'](_0x4b2c27){return v(this[_0x3241('0x1b')],!0x0,_0x4b2c27);}['getDataWithDiscardedSuggestions'](_0x48ccc9){return v(this[_0x3241('0x1b')],!0x1,_0x48ccc9);}}class D extends _0x5340a7{static get[_0x3241('0x31')](){return _0x3241('0x1d');}[_0x3241('0x5')](){this['result']=_0x3241('0x36'),this['editor'][_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x8'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this['editor']['plugins'][_0x3241('0xb')]('TrackChangesEditing')[_0x3241('0x30')]=null;}}async function v(_0x286e61,_0xb2631,_0x4c1150){const _0x2e33ee=function(_0x60b2a){const _0x40bdbb={};for(const _0x302e4f of _0x60b2a[_0x3241('0x2a')][_0x3241('0x1c')]())C['includes'](_0x302e4f)||(_0x40bdbb[_0x302e4f]=_0x60b2a[_0x3241('0x2a')][_0x3241('0xb')](_0x302e4f));const _0x2972bc=_0x60b2a['constructor'][_0x3241('0x2b')]||[],_0x3a4184=_0x40bdbb['extraPlugins']||[];delete _0x40bdbb[_0x3241('0x7')];const _0x428b74=_0x2972bc[_0x3241('0xe')](_0x40bdbb[_0x3241('0x12')])[_0x3241('0xe')](_0x3a4184)[_0x3241('0x2')](_0x4ff72e=>_0x3241('0x17')==typeof _0x4ff72e?_0x2972bc[_0x3241('0x2e')](_0x2acd7e=>_0x2acd7e[_0x3241('0x31')]==_0x4ff72e):_0x4ff72e),_0x2ac815=Array[_0x3241('0x24')](new Set(_0x428b74));return _0x40bdbb['plugins']=_0x2ac815[_0x3241('0x29')](_0x45aabb=>w(_0x45aabb,new Set())),_0x40bdbb[_0x3241('0x12')][_0x3241('0xa')](D),_0x40bdbb['plugins'][_0x3241('0xa')](_0x401f26),_0x40bdbb;}(_0x286e61),_0x40413b=document[_0x3241('0x11')](),_0x3c0443=_0x286e61[_0x3241('0x2a')][_0x3241('0xb')](_0x3241('0x6'))[_0x3241('0xf')],_0x1e8499=await _0x3c0443(_0x2e33ee,()=>function(_0x3d9fb0){const _0x1177fd=document[_0x3241('0x21')](_0x3241('0x1a'));return _0x3d9fb0[_0x3241('0x35')](_0x1177fd),_0x1177fd;}(_0x40413b));!function(_0x5a8efe,_0x5b15f0){const _0xf1489e=_0x5a8efe[_0x3241('0x3')][_0x3241('0x27')][_0x3241('0x4')]()['reduce']((_0x414b2f,_0x54c2a1)=>(_0x414b2f[_0x54c2a1]=_0x5a8efe[_0x3241('0x25')][_0x3241('0xb')]({'rootName':_0x54c2a1}),_0x414b2f),{}),_0x3eefd9=_0x5a8efe['plugins'][_0x3241('0xb')](_0x3241('0x9'))[_0x3241('0x16')][_0x3241('0x2')](_0x3545da=>({'id':_0x3545da['id']})),_0x694e8b=_0x5a8efe[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x3b'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ae430=_0x5b15f0[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x9')),_0x783264=_0x5b15f0[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x3b'));for(const _0x92c269 of _0x3eefd9)_0x2ae430[_0x3241('0x38')](_0x92c269['id'])||_0x2ae430[_0x3241('0x20')](_0x92c269);_0x2ae430['me']||_0x2ae430[_0x3241('0x14')]();for(const _0x2304d0 of _0x694e8b)_0x783264['addSuggestionData'](_0x2304d0);_0x5b15f0[_0x3241('0x25')][_0x3241('0x39')](_0xf1489e);}(_0x286e61,_0x1e8499),_0x1e8499[_0x3241('0x34')](_0xb2631?_0x3241('0x0'):_0x3241('0x10'));const _0x2f3aca=_0x1e8499[_0x3241('0x25')][_0x3241('0xb')](_0x4c1150);return await _0x1e8499[_0x3241('0x1e')](),_0x2f3aca;}function w(_0x1c88e7,_0x473665){if(_0x473665[_0x3241('0xc')](_0x1c88e7))return!0x0;_0x473665[_0x3241('0x28')](_0x1c88e7);const _0x3a1a7b=_0x3241('0x13')==typeof _0x1c88e7?_0x1c88e7[_0x3241('0x31')]||_0x1c88e7[_0x3241('0x26')]:_0x1c88e7;return(!_0x3a1a7b||!k[_0x3241('0x22')](_0x3a1a7b))&&(!_0x1c88e7[_0x3241('0x23')]||_0x1c88e7[_0x3241('0x23')][_0x3241('0x15')](_0x3df3c4=>w(_0x3df3c4,_0x473665)));}
23
+ const _0x8770=['init','discardAllSuggestions','createElement','div','pluginName','getDataWithAcceptedSuggestions','has','config','addSuggestionData','TrackChangesDataGetter','concat','CommentsRepository','RealTimeCollaborativeRevisionHistory','editor','plugins','addUser','WordCount','result','model','TrackChangesEditing','TrackChangesData','appendChild','get','getRootNames','trackChangesData.editorCreator','constructor','from','create','initialData','acceptAllSuggestions','filter','add','requires','createDocumentFragment','includes','editorCreator','trackChangesData','getDataWithDiscardedSuggestions','track-changes-data-invalid-editor-creator','RealTimeCollaborativeTrackChanges','_adapter','Users','push','users','context','execute','RealTimeCollaborativeComments','every','function','data','extraPlugins','useAnonymousUser','document','getUser'];(function(_0x472360,_0x8770e8){const _0xcb1c10=function(_0x6bb87a){while(--_0x6bb87a){_0x472360['push'](_0x472360['shift']());}};_0xcb1c10(++_0x8770e8);}(_0x8770,0x18f));const _0xcb1c=function(_0x472360,_0x8770e8){_0x472360=_0x472360-0x0;let _0xcb1c10=_0x8770[_0x472360];return _0xcb1c10;};import{Plugin as _0x5ad85a}from'ckeditor5/src/core';import{CKEditorError as _0x55f4c1}from'ckeditor5/src/utils';import _0x641cbf from'./trackchangesediting';const T=[_0xcb1c('0x7'),_0xcb1c('0x17'),'toolbar'],D=['RealTimeCollaborativeEditing',_0xcb1c('0x19'),_0xcb1c('0x12'),_0xcb1c('0x2d'),'Autosave',_0xcb1c('0x31')];export default class v extends _0x5ad85a{static get['requires'](){return[_0x641cbf];}static get[_0xcb1c('0x25')](){return _0xcb1c('0x35');}[_0xcb1c('0x21')](){const _0x4b5067=this['editor'];if(_0x4b5067['config']['define'](_0xcb1c('0x3'),_0xb86581=>_0x4b5067[_0xcb1c('0x4')][_0xcb1c('0x6')]('',_0xb86581)),_0xcb1c('0x1b')!=typeof _0x4b5067[_0xcb1c('0x28')][_0xcb1c('0x1')](_0xcb1c('0xf'))[_0xcb1c('0xe')])throw new _0x55f4c1(_0xcb1c('0x11'));}[_0xcb1c('0x26')](_0x1bd07a){return y(this['editor'],!0x0,_0x1bd07a);}[_0xcb1c('0x10')](_0x4dc021){return y(this[_0xcb1c('0x2e')],!0x1,_0x4dc021);}}class w extends _0x5ad85a{static get[_0xcb1c('0x25')](){return _0xcb1c('0x2a');}[_0xcb1c('0x21')](){this[_0xcb1c('0x32')]='end',this[_0xcb1c('0x2e')][_0xcb1c('0x2f')]['get'](_0xcb1c('0x2c'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this[_0xcb1c('0x2e')][_0xcb1c('0x2f')]['get'](_0xcb1c('0x34'))[_0xcb1c('0x13')]=null;}}async function y(_0x196605,_0x2a0f68,_0x44c344){const _0x1c5bb4=function(_0x513d1b){const _0x3dcdbb={};for(const _0x350915 of _0x513d1b['config']['names']())T['includes'](_0x350915)||(_0x3dcdbb[_0x350915]=_0x513d1b['config'][_0xcb1c('0x1')](_0x350915));const _0xa2ce00=_0x513d1b[_0xcb1c('0x4')]['builtinPlugins']||[],_0x3aa37c=_0x3dcdbb['extraPlugins']||[];delete _0x3dcdbb[_0xcb1c('0x1d')];const _0x7a403f=_0xa2ce00[_0xcb1c('0x2b')](_0x3dcdbb[_0xcb1c('0x2f')])[_0xcb1c('0x2b')](_0x3aa37c)['map'](_0x17c2e3=>'string'==typeof _0x17c2e3?_0xa2ce00['find'](_0x5a74d7=>_0x5a74d7[_0xcb1c('0x25')]==_0x17c2e3):_0x17c2e3),_0x4e5f55=Array[_0xcb1c('0x5')](new Set(_0x7a403f));return _0x3dcdbb[_0xcb1c('0x2f')]=_0x4e5f55[_0xcb1c('0x9')](_0x17eb38=>S(_0x17eb38,new Set())),_0x3dcdbb[_0xcb1c('0x2f')][_0xcb1c('0x15')](w),_0x3dcdbb['plugins'][_0xcb1c('0x15')](_0x641cbf),_0x3dcdbb;}(_0x196605),_0x20a241=document[_0xcb1c('0xc')](),_0x1db7cf=_0x196605['config'][_0xcb1c('0x1')](_0xcb1c('0xf'))['editorCreator'],_0x51fd75=await _0x1db7cf(_0x1c5bb4,()=>function(_0x46b320){const _0x3814d0=document[_0xcb1c('0x23')](_0xcb1c('0x24'));return _0x46b320[_0xcb1c('0x0')](_0x3814d0),_0x3814d0;}(_0x20a241));!function(_0x5e2278,_0x1b1b7f){const _0x26bf19=_0x5e2278[_0xcb1c('0x33')][_0xcb1c('0x1f')][_0xcb1c('0x2')]()['reduce']((_0x5a0470,_0x3cf2eb)=>(_0x5a0470[_0x3cf2eb]=_0x5e2278[_0xcb1c('0x1c')][_0xcb1c('0x1')]({'rootName':_0x3cf2eb}),_0x5a0470),{}),_0xad79b6=_0x5e2278[_0xcb1c('0x2f')][_0xcb1c('0x1')]('Users')[_0xcb1c('0x16')]['map'](_0x46c3f8=>({'id':_0x46c3f8['id']})),_0x465071=_0x5e2278[_0xcb1c('0x2f')][_0xcb1c('0x1')](_0xcb1c('0x34'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e935d=_0x1b1b7f['plugins'][_0xcb1c('0x1')](_0xcb1c('0x14')),_0x2c1b2b=_0x1b1b7f[_0xcb1c('0x2f')][_0xcb1c('0x1')](_0xcb1c('0x34'));for(const _0x36d08c of _0xad79b6)_0x2e935d[_0xcb1c('0x20')](_0x36d08c['id'])||_0x2e935d[_0xcb1c('0x30')](_0x36d08c);_0x2e935d['me']||_0x2e935d[_0xcb1c('0x1e')]();for(const _0x19bef0 of _0x465071)_0x2c1b2b[_0xcb1c('0x29')](_0x19bef0);_0x1b1b7f[_0xcb1c('0x1c')]['set'](_0x26bf19);}(_0x196605,_0x51fd75),_0x51fd75[_0xcb1c('0x18')](_0x2a0f68?_0xcb1c('0x8'):_0xcb1c('0x22'));const _0x3bdf51=_0x51fd75[_0xcb1c('0x1c')][_0xcb1c('0x1')](_0x44c344);return await _0x51fd75['destroy'](),_0x3bdf51;}function S(_0x602799,_0x396691){if(_0x396691[_0xcb1c('0x27')](_0x602799))return!0x0;_0x396691[_0xcb1c('0xa')](_0x602799);const _0x2ca158=_0xcb1c('0x1b')==typeof _0x602799?_0x602799[_0xcb1c('0x25')]||_0x602799['name']:_0x602799;return(!_0x2ca158||!D[_0xcb1c('0xd')](_0x2ca158))&&(!_0x602799[_0xcb1c('0xb')]||_0x602799[_0xcb1c('0xb')][_0xcb1c('0x1a')](_0x2d250f=>S(_0x2d250f,_0x396691)));}