@ckeditor/ckeditor5-track-changes 35.0.1 → 35.2.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 (153) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -0
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -0
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -1
  49. package/lang/translations/ar.po +4 -0
  50. package/lang/translations/az.po +4 -0
  51. package/lang/translations/bg.po +4 -0
  52. package/lang/translations/bn.po +4 -0
  53. package/lang/translations/ca.po +4 -0
  54. package/lang/translations/cs.po +4 -0
  55. package/lang/translations/da.po +4 -0
  56. package/lang/translations/de.po +4 -0
  57. package/lang/translations/el.po +4 -0
  58. package/lang/translations/en-au.po +4 -0
  59. package/lang/translations/en.po +4 -0
  60. package/lang/translations/es.po +4 -0
  61. package/lang/translations/et.po +4 -0
  62. package/lang/translations/fi.po +4 -0
  63. package/lang/translations/fr.po +4 -0
  64. package/lang/translations/gl.po +4 -0
  65. package/lang/translations/he.po +4 -0
  66. package/lang/translations/hi.po +4 -0
  67. package/lang/translations/hr.po +4 -0
  68. package/lang/translations/hu.po +4 -0
  69. package/lang/translations/id.po +4 -0
  70. package/lang/translations/it.po +4 -0
  71. package/lang/translations/ja.po +4 -0
  72. package/lang/translations/ko.po +27 -23
  73. package/lang/translations/lt.po +4 -0
  74. package/lang/translations/lv.po +4 -0
  75. package/lang/translations/ms.po +4 -0
  76. package/lang/translations/nl.po +4 -0
  77. package/lang/translations/no.po +4 -0
  78. package/lang/translations/pl.po +4 -0
  79. package/lang/translations/pt-br.po +4 -0
  80. package/lang/translations/pt.po +4 -0
  81. package/lang/translations/ro.po +4 -0
  82. package/lang/translations/ru.po +4 -0
  83. package/lang/translations/sk.po +4 -0
  84. package/lang/translations/sr-latn.po +4 -0
  85. package/lang/translations/sr.po +4 -0
  86. package/lang/translations/sv.po +4 -0
  87. package/lang/translations/th.po +4 -0
  88. package/lang/translations/tk.po +4 -0
  89. package/lang/translations/tr.po +4 -0
  90. package/lang/translations/tt.po +383 -0
  91. package/lang/translations/uk.po +4 -0
  92. package/lang/translations/ur.po +401 -0
  93. package/lang/translations/vi.po +4 -0
  94. package/lang/translations/zh-cn.po +4 -0
  95. package/lang/translations/zh.po +4 -0
  96. package/package.json +4 -4
  97. package/src/commands/acceptallsuggestionscommand.js +1 -1
  98. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardallsuggestionscommand.js +1 -1
  101. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  102. package/src/commands/discardsuggestioncommand.js +1 -1
  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/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +1 -1
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/importword.js +23 -0
  119. package/src/integrations/indent.js +1 -1
  120. package/src/integrations/inputcommand.js +1 -1
  121. package/src/integrations/link.js +1 -1
  122. package/src/integrations/list.js +1 -1
  123. package/src/integrations/mediaembed.js +1 -1
  124. package/src/integrations/mention.js +1 -1
  125. package/src/integrations/pagebreak.js +1 -1
  126. package/src/integrations/paragraph.js +1 -1
  127. package/src/integrations/removeformat.js +1 -1
  128. package/src/integrations/restrictededitingmode.js +1 -1
  129. package/src/integrations/shiftentercommand.js +1 -1
  130. package/src/integrations/standardeditingmode.js +1 -1
  131. package/src/integrations/style.js +1 -1
  132. package/src/integrations/table.js +1 -1
  133. package/src/integrations/tableclipboard.js +1 -1
  134. package/src/integrations/tableheadings.js +1 -1
  135. package/src/integrations/tablemergesplit.js +1 -1
  136. package/src/integrations/title.js +1 -1
  137. package/src/integrations/undo.js +1 -1
  138. package/src/integrations/utils.js +1 -1
  139. package/src/suggestion.js +1 -1
  140. package/src/suggestiondescriptionfactory.js +1 -1
  141. package/src/trackchanges.js +1 -1
  142. package/src/trackchangesdata.js +1 -1
  143. package/src/trackchangesediting.js +1 -1
  144. package/src/trackchangesui.js +1 -1
  145. package/src/ui/suggestioncontroller.js +1 -1
  146. package/src/ui/view/basesuggestionthreadview.js +1 -1
  147. package/src/ui/view/suggestionthreadview.js +1 -1
  148. package/src/utils/common-translations.js +1 -1
  149. package/src/utils/getrangesofblockgroups.js +1 -1
  150. package/src/utils/getselectedsuggestions.js +1 -1
  151. package/src/utils/hashobject.js +1 -1
  152. package/src/utils/normalizedescription.js +1 -1
  153. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23e9=['last','previous','fill','join','getChangedMarkers','accept','TrackChangesEditing','insertContent','getSelectionAffectedTableCells','reduce','batch','tableCellBackgroundColor','TableClipboard','createTableWalker','set','getColumnIndexes','return','getRanges','tablePasteCell','filter','suggestion:formatBlock:tablePasteCell','_getCoordsForCells','afterInit','remove','fromEntries','map','isEqual','_createdBatches','startsWith','insertColumns','markMultiRangeInsertion','editing','isEmpty','from','next','table','clipboardOutput','rootName','tableCellBorderStyle','tablePasteColumn','ck-suggestion-marker--active','markerToHighlight','includes','entries','suggestionUnloaded','dataDowncast','selection','get','getRange','tableCell','markers','setAttributes','tableCellHorizontalAlignment','length','row','every','suggestion','view','options','getAttributes','root','getShiftedBy','for','createRangeIn','registerCustomCallback','high','removeMarker','tablePasteChainId','markMultiRangeBlockFormat','markerName','element','name','register','low','getItems','model','find','removeMarkers','attributes','end','add','setAttribute','keys','value','content','editor','push','markerAttributes','change','columns','findAncestor','move','nextSibling','isInContent','getRowIndexes','endRow','tableCellBorderColor','insertRows','suggestion-td','editingDowncast','plugins','Users','removeRows','tablePasteRow','tableCellPadding','forceDefaultExecution','commands','rowInsertionRanges','insert','deletionRanges','_splitMarkerName','removeColumns','getSuggestions','column','stop','activeMarkers','type','paragraph','getSuggestionCallback','redo','containsRange','rowInsertionIndexes','getSuggestion','author','TableUtils','registerPostFixer','start','suggestionLoaded','insertion','_replaceTableSlotCell','columnInsertionRanges','_isForcedDefaultExecutionBlock','getContainedElement','rows','getChild','unwrap','elementToElement','tablePaste','getMarkers','markMultiRangeDeletion','endColumn','discard','documentSelection','tableCellSuggestion','showSuggestionHighlights','schema','_tablePostFixingSubtypes','first','differ','position','getAllAdjacentSuggestions','requires','listenTo','document','getChildren','_suggestionFactory','deletion','newRange','cells','has','_descriptionFactory','wrap','oldRange','getRows','conversion','subType','createRangeOn'];(function(_0x49b24c,_0x23e9c4){const _0x42b6ca=function(_0x5c0a2b){while(--_0x5c0a2b){_0x49b24c['push'](_0x49b24c['shift']());}};_0x42b6ca(++_0x23e9c4);}(_0x23e9,0x199));const _0x42b6=function(_0x49b24c,_0x23e9c4){_0x49b24c=_0x49b24c-0x0;let _0x42b6ca=_0x23e9[_0x49b24c];return _0x42b6ca;};import{getTranslation as _0x8e66e5}from'../utils/common-translations';import{Plugin as _0x34bbfc}from'ckeditor5/src/core';import _0x601945 from'./table';import{uid as _0x55c53c,priorities as _0x3a171c}from'ckeditor5/src/utils';const le=['tableCellBorderWidth',_0x42b6('0x15'),_0x42b6('0x82'),_0x42b6('0x90'),'tableCellVerticalAlignment',_0x42b6('0x67'),_0x42b6('0x1d')],ce=Object[_0x42b6('0x74')](le['map'](_0x22dc77=>[_0x22dc77,null]));export default class lt extends _0x34bbfc{static get[_0x42b6('0x4c')](){return[_0x601945];}[_0x42b6('0x72')](){const _0x2bc90a=this[_0x42b6('0xa')];if(!_0x2bc90a[_0x42b6('0x19')]['has'](_0x42b6('0x68')))return;const _0x281083=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x62')),_0x3340f3=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x31')),_0x507b34=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x601945),_0x1bfbf3=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x68'));_0x507b34[_0x42b6('0x47')][_0x42b6('0xb')](_0x42b6('0x1c'),_0x42b6('0x83')),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x46')][_0x42b6('0xa4')](_0x42b6('0x44'),{'allowIn':_0x42b6('0x8d'),'allowContentOf':_0x42b6('0x8d'),'isLimit':!0x0}),_0x2bc90a['conversion'][_0x42b6('0x3d')]({'model':_0x42b6('0x44'),'view':_0x42b6('0x17')});let _0x39a589=null;_0x2bc90a[_0x42b6('0x0')]['on']('insertContent',(_0x4707c5,_0x5ceb29)=>{const [_0x56770d,_0x19fb01]=_0x5ceb29,_0x2dcd9e=_0x5ceb29[_0x5ceb29[_0x42b6('0x91')]-0x1];_0x2dcd9e&&_0x2dcd9e[_0x42b6('0x1e')]||_0x281083[_0x42b6('0x38')]||this['editor'][_0x42b6('0x1f')][_0x42b6('0x8b')]('trackChanges')[_0x42b6('0x8')]&&function(_0x467549,_0x44d6d9,_0x7211c7,_0x29002b,_0x4b1b7b){if(_0x44d6d9&&!_0x44d6d9['is'](_0x42b6('0x43')))return!0x1;const _0x2127ca=_0x4b1b7b['getTableIfOnlyTableInContent'](_0x467549,_0x7211c7);if(!_0x2127ca||!ue(_0x2127ca,null,_0x29002b))return!0x1;const _0x4e61a1=_0x29002b[_0x42b6('0x64')](_0x7211c7[_0x42b6('0x4e')][_0x42b6('0x8a')]);if(!_0x4e61a1['length'])return!0x1;const _0x7dc220=_0x4e61a1[0x0]['findAncestor']('table'),_0x104cf8=_0x29002b[_0x42b6('0x13')](_0x4e61a1),_0x44945a=_0x29002b[_0x42b6('0x6b')](_0x4e61a1),_0x332fa0={'startRow':_0x104cf8[_0x42b6('0x48')],'endRow':_0x104cf8[_0x42b6('0x5c')],'startColumn':_0x44945a['first'],'endColumn':_0x44945a[_0x42b6('0x5c')]};return 0x1==_0x4e61a1[_0x42b6('0x91')]&&(_0x332fa0[_0x42b6('0x14')]+=_0x29002b[_0x42b6('0x58')](_0x2127ca)-0x1,_0x332fa0[_0x42b6('0x41')]+=_0x29002b['getColumns'](_0x2127ca)-0x1),ue(_0x7dc220,_0x332fa0,_0x29002b);}(_0x56770d,_0x19fb01,_0x2bc90a[_0x42b6('0x0')],_0x3340f3,_0x1bfbf3)&&(_0x4707c5[_0x42b6('0x27')](),_0x39a589={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2bc90a[_0x42b6('0x0')][_0x42b6('0xd')](()=>{_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x63')](_0x5ceb29[0x0],_0x5ceb29[0x1],_0x5ceb29[0x2],_0x5ceb29[0x3],{'forceDefaultExecution':!0x0});const _0x5cbddf=_0x55c53c(),{rowInsertionRanges:_0x4f914d,columnInsertionRanges:_0x1787fb,insertionRanges:_0x7f844a,deletionRanges:_0x57a51a,cells:_0x654029}=_0x39a589;_0x4f914d[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x4f914d,_0x42b6('0x1c'),{'tablePasteChainId':_0x5cbddf}),_0x1787fb[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x1787fb,_0x42b6('0x83'),{'tablePasteChainId':_0x5cbddf}),_0x7f844a[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x7f844a,_0x42b6('0x3e'),{'tablePasteChainId':_0x5cbddf,'skipNestingCheck':!0x0}),_0x57a51a[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x40')](_0x57a51a,_0x42b6('0x3e'),{'tablePasteChainId':_0x5cbddf,'skipNestingCheck':!0x0});const _0x202a4d=_0x281083[_0x42b6('0xa0')](_0x654029[_0x42b6('0x75')](({element:_0x5a41b6})=>_0x5a41b6),{'formatGroupId':_0x55c53c()},[],_0x42b6('0x6e'),{'tablePasteChainId':_0x5cbddf});if(_0x202a4d){const _0x4c6e7d=_0x202a4d[_0x42b6('0x3f')](),_0x522070=[];for(const {element:_0x35f25d,attributes:_0x2c98fa}of _0x654029){if(!_0x2c98fa)continue;const _0x44c0d8=_0x2bc90a['model'][_0x42b6('0x5b')](_0x35f25d),_0x4515c6=_0x4c6e7d[_0x42b6('0x1')](_0x45791e=>_0x45791e[_0x42b6('0x8c')]()[_0x42b6('0x76')](_0x44c0d8));_0x4515c6&&_0x522070['push']([_0x4515c6[_0x42b6('0xa3')],_0x2c98fa]);}_0x522070[_0x42b6('0x91')]&&_0x202a4d[_0x42b6('0x6')](_0x42b6('0xc'),Object[_0x42b6('0x74')](_0x522070));}_0x39a589=null;}));},{'priority':_0x3a171c['high']+0xa}),_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x68'))['on'](_0x42b6('0x36'),(_0x3e4638,_0x404487)=>{const [_0x5cc8af,_0x2437fc,,_0x4501a5]=_0x404487;if(!_0x39a589)return;_0x3e4638['stop']();const _0x51c9d5=_0x5cc8af['cell'],_0x4240a0=_0x2437fc,_0x362a56=fe(_0x51c9d5),_0x2a33b4=fe(_0x4240a0);_0x3e4638[_0x42b6('0x6c')]=_0x51c9d5;let _0x4f56d1=null,_0x40e226=null;if(_0x2a33b4||_0x362a56){if(_0x362a56&&!_0x2a33b4){_0x4501a5['remove'](_0x51c9d5[_0x42b6('0x3b')](0x0));for(const _0x4abcf2 of Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x4f')]()))_0x4501a5[_0x42b6('0x21')](_0x4abcf2,_0x51c9d5,_0x42b6('0x4'));const _0x5abb12=_0x39a589[_0x42b6('0x2e')][_0x42b6('0x86')](_0x5cc8af[_0x42b6('0x92')]),_0x2a03f3=_0x39a589['columnInsertionIndexes']['includes'](_0x5cc8af[_0x42b6('0x26')]);_0x5abb12||_0x2a03f3||(_0x4f56d1=_0x4501a5[_0x42b6('0x9b')](_0x51c9d5));}else _0x2a33b4&&!_0x362a56&&(_0x40e226=_0x4501a5[_0x42b6('0x9b')](_0x51c9d5));}else{const _0x326099=_0x4501a5['createElement'](_0x42b6('0x44')),_0x45416a=_0x4501a5['createElement']('tableCellSuggestion');_0x4501a5[_0x42b6('0x56')](_0x4501a5[_0x42b6('0x9b')](_0x51c9d5),_0x45416a),_0x4501a5[_0x42b6('0x21')](_0x326099,_0x51c9d5,0x0);for(const _0x20aebe of Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x4f')]()))_0x4501a5[_0x42b6('0x21')](_0x20aebe,_0x326099,'end');_0x4f56d1=_0x4501a5['createRangeOn'](_0x326099),_0x40e226=_0x4501a5[_0x42b6('0x5b')](_0x45416a);}const _0x48a322=Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x97')]())[_0x42b6('0x6f')](([_0x4d45c7])=>le['includes'](_0x4d45c7));_0x39a589['cells'][_0x42b6('0xb')]({'element':_0x51c9d5,'attributes':_0x48a322[_0x42b6('0x91')]?Object['fromEntries'](_0x48a322):null}),_0x4f56d1&&_0x39a589['insertionRanges'][_0x42b6('0xb')](_0x4f56d1),_0x40e226&&_0x39a589[_0x42b6('0x22')][_0x42b6('0xb')](_0x40e226);},{'priority':'high'}),_0x3340f3['on'](_0x42b6('0x79'),(_0x2c9888,_0x254e77)=>{const [_0x5b3e11,_0x167d35={}]=_0x254e77;if(!_0x39a589)return;const _0x2dcf32=_0x167d35['at']||0x0,_0x2a2f9d=_0x167d35[_0x42b6('0xe')]||0x1;_0x39a589['columnInsertionIndexes']=new Array(_0x2a2f9d)[_0x42b6('0x5e')](_0x2dcf32)[_0x42b6('0x75')]((_0x282c00,_0x513a16)=>_0x282c00+_0x513a16);for(const {cell:_0x37e5ba}of _0x3340f3[_0x42b6('0x69')](_0x5b3e11,{'startColumn':_0x2dcf32,'endColumn':_0x2dcf32+_0x2a2f9d-0x1}))_0x39a589[_0x42b6('0x37')][_0x42b6('0xb')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x5b')](_0x37e5ba));},{'priority':_0x42b6('0xa5')}),_0x3340f3['on'](_0x42b6('0x16'),(_0x4b958b,_0x255226)=>{const [_0x301628,_0x4ffc63={}]=_0x255226;if(!_0x39a589)return;const _0x52b7fe=_0x4ffc63['at']||0x0,_0x175079=_0x4ffc63[_0x42b6('0x3a')]||0x1;_0x39a589[_0x42b6('0x2e')]=new Array(_0x175079)[_0x42b6('0x5e')](_0x52b7fe)['map']((_0x1dc609,_0x5805ff)=>_0x1dc609+_0x5805ff);for(const {cell:_0x18ec84}of _0x3340f3[_0x42b6('0x69')](_0x301628,{'startRow':_0x52b7fe,'endRow':_0x52b7fe+_0x175079-0x1}))_0x39a589[_0x42b6('0x20')][_0x42b6('0xb')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x5b')](_0x18ec84));},{'priority':_0x42b6('0xa5')}),_0x281083[_0x42b6('0x55')]['registerDescriptionCallback'](_0x54279f=>{if(_0x54279f[_0x42b6('0x5a')]&&_0x54279f['subType'][_0x42b6('0x78')]('tablePaste'))return _0x54279f['previous']?{}:{'type':'insertion','content':_0x8e66e5(_0x2bc90a['locale'],'*Replace\x20table\x20cells*')};});const _0x62ab89=()=>{};for(const _0x266e2e of[_0x42b6('0x3e'),_0x42b6('0x83'),_0x42b6('0x1c'),_0x42b6('0x6e')])_0x281083['_suggestionFactory'][_0x42b6('0x9c')](_0x42b6('0x35'),_0x266e2e,_0x42b6('0x5f'),_0x62ab89),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')](_0x42b6('0x51'),_0x266e2e,'join',_0x62ab89);_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')]('formatBlock',_0x42b6('0x6e'),'discard',_0x62ab89),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')]('formatBlock',_0x42b6('0x6e'),'accept',(_0x2df1d0,_0x52fbd1,_0x4d5109)=>{const _0x224131=_0x2df1d0[_0x42b6('0x75')](_0x157393=>_0x157393[_0x42b6('0x39')]())['filter'](_0x13375c=>_0x13375c),_0x5186c2=new Map(_0x224131[_0x42b6('0x75')](_0x1555b4=>[_0x1555b4,null]));if(_0x39a589)for(const {element:_0xa889f7,attributes:_0x3e1bdd}of _0x39a589[_0x42b6('0x53')])_0x3e1bdd&&_0x5186c2[_0x42b6('0x6a')](_0xa889f7,_0x3e1bdd);else{if(_0x4d5109&&_0x4d5109['markerAttributes'])for(const [_0x4eefa3,_0x1df1b1]of Object[_0x42b6('0x87')](_0x4d5109['markerAttributes'])){const _0x148a21=_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x8e')]['get'](_0x4eefa3),_0x36f55b=_0x148a21?_0x148a21[_0x42b6('0x8c')]()['getContainedElement']():null;_0x36f55b&&_0x5186c2[_0x42b6('0x6a')](_0x36f55b,_0x1df1b1);}}_0x2bc90a[_0x42b6('0x0')][_0x42b6('0xd')](_0x59c0b6=>{for(const [_0x4a2aa2,_0xf21325]of _0x5186c2)_0x59c0b6[_0x42b6('0x8f')]({...ce,..._0xf21325},_0x4a2aa2);});});const _0x385c4d=(_0x12cd49,_0x30126e)=>{_0x281083['_suggestionFactory']['registerCustomCallback'](_0x12cd49,_0x42b6('0x3e'),_0x30126e,(_0x264b63,_0x165d1c,_0x11ae3d)=>{_0x2bc90a['model'][_0x42b6('0xd')](_0x13723d=>{const _0x4ba75e=[];for(const _0x7ca36 of _0x264b63){const _0x136982=_0x7ca36[_0x42b6('0x33')]['nodeAfter'];_0x136982['is'](_0x42b6('0xa2'),_0x42b6('0x44'))&&_0x4ba75e[_0x42b6('0xb')](_0x136982);}_0x281083['_suggestionFactory'][_0x42b6('0x2b')](_0x12cd49,null,_0x30126e)(_0x264b63,_0x165d1c,_0x11ae3d);for(const _0x5ef74b of _0x4ba75e)'$graveyard'!=_0x5ef74b[_0x42b6('0x98')][_0x42b6('0x81')]&&_0x13723d[_0x42b6('0x3c')](_0x5ef74b);});});};_0x385c4d(_0x42b6('0x35'),_0x42b6('0x61')),_0x385c4d(_0x42b6('0x35'),_0x42b6('0x42')),_0x385c4d(_0x42b6('0x51'),_0x42b6('0x61')),_0x385c4d(_0x42b6('0x51'),'discard'),_0x281083['_suggestionFactory'][_0x42b6('0x9c')](_0x42b6('0x35'),'tablePasteRow',_0x42b6('0x42'),_0x279c96=>{const _0x2a6952=_0x279c96[_0x42b6('0x75')](_0x1ce40f=>_0x1ce40f[_0x42b6('0x39')]()),_0x54ee75=_0x2a6952[0x0][_0x42b6('0xf')](_0x42b6('0x7f')),{minRow:_0xab9c5d,maxRow:_0x5626c7}=_0x507b34[_0x42b6('0x71')](_0x2a6952);_0x3340f3[_0x42b6('0x1b')](_0x54ee75,{'at':_0xab9c5d,'rows':_0x5626c7-_0xab9c5d+0x1});}),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')](_0x42b6('0x35'),_0x42b6('0x83'),_0x42b6('0x42'),_0x339cfb=>{const _0x2768a0=_0x339cfb[_0x42b6('0x75')](_0xd047fd=>_0xd047fd[_0x42b6('0x39')]()),_0x2df974=_0x2768a0[0x0][_0x42b6('0xf')](_0x42b6('0x7f')),{minColumn:_0xdeb7b1,maxColumn:_0x5da46a}=_0x507b34[_0x42b6('0x71')](_0x2768a0);_0x3340f3[_0x42b6('0x24')](_0x2df974,{'at':_0xdeb7b1,'columns':_0x5da46a-_0xdeb7b1+0x1});});const _0x5573f4=(_0x136d88,_0x3beb92)=>{if(!_0x3beb92[_0x42b6('0x5a')]||!_0x3beb92[_0x42b6('0x5a')][_0x42b6('0x78')](_0x42b6('0x3e')))return;const _0x4a1baa=_0x3beb92[_0x42b6('0x3')][_0x42b6('0x9f')],_0x39ade0=_0x281083[_0x42b6('0x25')]()[_0x42b6('0x6f')](_0x316b23=>_0x316b23['isInContent']&&_0x316b23[_0x42b6('0x3')]&&_0x316b23[_0x42b6('0x3')][_0x42b6('0x9f')]==_0x4a1baa);_0x39ade0[_0x42b6('0x91')]&&_0x3beb92[_0x42b6('0x4b')]()[_0x42b6('0x91')]!=_0x39ade0[_0x42b6('0x91')]&&_0x39ade0[_0x42b6('0x65')]((_0x37f236,_0x2ba30c)=>(_0x37f236[_0x42b6('0x7e')]=_0x2ba30c,_0x2ba30c[_0x42b6('0x5d')]=_0x37f236,_0x2ba30c));};function _0x229f52(_0x1cb283,{showActiveMarker:_0x5f42e4=!0x0}={}){const {id:_0x44e635}=_0x281083['_splitMarkerName'](_0x1cb283['markerName']),_0x1044ef=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d79cf=_0x281083[_0x42b6('0x28')][_0x42b6('0x86')](_0x1cb283[_0x42b6('0xa1')]);return _0x1d79cf&&_0x1044ef['push'](_0x42b6('0x84')),{'classes':_0x1044ef,'attributes':{'data-suggestion':_0x44e635},'priority':_0x1d79cf&&_0x5f42e4?0xbc2:0xbb8};}_0x281083['on'](_0x42b6('0x34'),_0x5573f4,{'priority':'high'}),_0x281083['on'](_0x42b6('0x88'),_0x5573f4,{'priority':_0x42b6('0x9d')}),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')]['registerPostFixer'](()=>{let _0xfc7ca6=!0x1;const _0x13e65b=Array[_0x42b6('0x7d')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')]['differ'][_0x42b6('0x60')]());for(const {name:_0x41f20e,data:_0x2fd3ea}of _0x13e65b){const {group:_0x1555cc,type:_0x4a2c49,id:_0x2984f6}=_0x281083[_0x42b6('0x23')](_0x41f20e);if(_0x42b6('0x94')!=_0x1555cc||_0x42b6('0x51')!=_0x4a2c49||_0x2fd3ea[_0x42b6('0x57')])continue;if(!_0x281083['hasSuggestion'](_0x2984f6))continue;const _0x28be12=_0x281083[_0x42b6('0x2f')](_0x2984f6)[_0x42b6('0x6d')](),_0x26f847=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')]('Users')['me'];for(const _0x5ebf99 of _0x281083[_0x42b6('0x25')]()){if(!_0x5ebf99['isInContent']||_0x5ebf99[_0x42b6('0x30')]!=_0x26f847)continue;if('formatBlock'!=_0x5ebf99[_0x42b6('0x29')]||'tablePasteCell'!=_0x5ebf99['subType'])continue;if(_0x5ebf99[_0x42b6('0x6d')]()[_0x42b6('0x93')](_0xd60028=>_0x28be12['some'](_0x5da1a4=>_0x5da1a4[_0x42b6('0x2d')](_0xd60028,!0x0))))for(const _0x31de09 of _0x5ebf99[_0x42b6('0x4b')]())_0x31de09[_0x42b6('0x12')]&&(_0x31de09[_0x42b6('0x42')](),_0xfc7ca6=!0x0);}}return _0xfc7ca6;}),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')][_0x42b6('0x32')](_0x3abf3c=>{const _0x28905e=_0x2bc90a[_0x42b6('0x1f')]['get'](_0x42b6('0x2c'));if(!_0x28905e||!_0x28905e[_0x42b6('0x77')][_0x42b6('0x54')](_0x3abf3c[_0x42b6('0x66')]))return!0x1;let _0x233f31=!0x1;const _0x4109db=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x1a'))['me'],_0x4561bd=_0x2bc90a[_0x42b6('0x0')]['document']['differ']['getChanges'](),_0x39dcd0=Array['from'](_0x2bc90a['model']['document'][_0x42b6('0x49')][_0x42b6('0x60')]())[_0x42b6('0x6f')](({name:_0x312ba1,data:_0x31f633})=>{const {group:_0x2e71f1,subType:_0x1690c1,authorId:_0x21d88b}=_0x281083['_splitMarkerName'](_0x312ba1);return _0x42b6('0x94')==_0x2e71f1&&_0x42b6('0x3e')==_0x1690c1&&_0x21d88b==_0x4109db['id']&&!_0x31f633[_0x42b6('0x57')];});for(const _0x471ef3 of _0x4561bd){if(_0x42b6('0x21')!=_0x471ef3[_0x42b6('0x29')]||'tableCellSuggestion'!=_0x471ef3[_0x42b6('0xa3')]||0x1!=_0x471ef3['length'])continue;const _0x6facf9=_0x3abf3c['createRange'](_0x471ef3[_0x42b6('0x4a')],_0x471ef3[_0x42b6('0x4a')][_0x42b6('0x99')](0x1));if(!_0x39dcd0[_0x42b6('0x1')](({data:_0x1e0f02})=>_0x1e0f02[_0x42b6('0x52')][_0x42b6('0x76')](_0x6facf9)))for(const {name:_0x471cfd,data:_0x2c602c}of _0x39dcd0)if(_0x6facf9[_0x42b6('0x2d')](_0x2c602c[_0x42b6('0x52')])){_0x3abf3c['updateMarker'](_0x471cfd,{'range':_0x6facf9}),_0x233f31=!0x0;break;}}return _0x233f31;}),_0x2bc90a['model'][_0x42b6('0x4e')]['registerPostFixer'](_0x4ff9ba=>{let _0x7bfe78=!0x1;const _0x18eb3e=_0x2bc90a['plugins']['get'](_0x42b6('0x1a'))['me'],_0x5c5214=_0x281083[_0x42b6('0x25')]()[_0x42b6('0x6f')](_0x2eabe5=>_0x2eabe5[_0x42b6('0x12')]&&_0x2eabe5[_0x42b6('0x30')]==_0x18eb3e),_0x417e6b=new Set(),_0x540923=new Set();for(const _0x29b9bf of _0x5c5214)if(_0x42b6('0x3e')==_0x29b9bf[_0x42b6('0x5a')])for(const _0x58a542 of _0x29b9bf[_0x42b6('0x3f')]()){const _0x4d5bf2=_0x58a542[_0x42b6('0x8c')]()[_0x42b6('0x39')]();if(_0x4d5bf2){if(_0x4d5bf2['is'](_0x42b6('0xa2'),_0x42b6('0x44'))&&fe(_0x4d5bf2)){_0x29b9bf[_0x42b6('0x9e')](_0x58a542['name']),_0x417e6b[_0x42b6('0x5')](_0x4d5bf2),_0x7bfe78=!0x0;const _0x394069=_0x4d5bf2[_0x42b6('0x11')],_0x29235e=_0x4d5bf2['previousSibling'],_0x28a405=_0x394069&&_0x394069['is'](_0x42b6('0xa2'),_0x42b6('0x44')),_0x3590e3=_0x29235e&&_0x29235e['is'](_0x42b6('0xa2'),_0x42b6('0x44'));_0x28a405&&!_0x417e6b['has'](_0x394069)&&_0x540923[_0x42b6('0x5')](_0x394069),_0x3590e3&&!_0x417e6b['has'](_0x29235e)&&_0x540923[_0x42b6('0x5')](_0x29235e);}else _0x4d5bf2['is']('element','paragraph')&&_0x4d5bf2[_0x42b6('0x7c')]&&(_0x29b9bf[_0x42b6('0x9e')](_0x58a542[_0x42b6('0xa3')]),_0x7bfe78=!0x0);}}else{if(_0x42b6('0x6e')==_0x29b9bf[_0x42b6('0x5a')]){if(!_0x29b9bf['attributes']||!_0x29b9bf[_0x42b6('0x3')]['tablePasteChainId'])continue;const _0x38bdaf=_0x29b9bf[_0x42b6('0x3')][_0x42b6('0xc')];if(_0x38bdaf&&Object[_0x42b6('0x7')](_0x38bdaf)[_0x42b6('0x91')])continue;const _0x469519=_0x29b9bf[_0x42b6('0x3')]['tablePasteChainId'];let _0x14e568=!0x0,_0x36c75c=!0x0;for(const _0x3422f4 of _0x5c5214)if(_0x3422f4[_0x42b6('0x5a')]&&_0x3422f4[_0x42b6('0x5a')]['startsWith'](_0x42b6('0x3e'))){if(!_0x3422f4[_0x42b6('0x3')][_0x42b6('0x9f')]){_0x36c75c=!0x1;break;}if(_0x3422f4['id']!=_0x29b9bf['id']&&_0x3422f4[_0x42b6('0x3')][_0x42b6('0x9f')]==_0x469519){_0x14e568=!0x1;break;}}_0x36c75c&&_0x14e568&&(_0x29b9bf[_0x42b6('0x2')](),_0x7bfe78=!0x0);}}for(const _0x243e34 of _0x417e6b)_0x4ff9ba[_0x42b6('0x73')](_0x243e34);for(const _0x3482cd of _0x540923)_0x4ff9ba['unwrap'](_0x3482cd);return _0x7bfe78;}),_0x2bc90a[_0x42b6('0x59')][_0x42b6('0x9a')](_0x42b6('0x18'))['markerToHighlight']({'model':_0x42b6('0x70'),'view':_0x229f52,'converterPriority':_0x42b6('0x9d')}),_0x2bc90a[_0x42b6('0x59')][_0x42b6('0x9a')](_0x42b6('0x89'))[_0x42b6('0x85')]({'model':_0x42b6('0x70'),'view':(_0x1a179c,_0x364ded)=>{if(_0x364ded[_0x42b6('0x96')][_0x42b6('0x45')])return _0x229f52(_0x1a179c,{'showActiveMarker':!0x1});},'converterPriority':_0x42b6('0x9d')});const _0x26937b=_0x2bc90a[_0x42b6('0x7b')][_0x42b6('0x95')];this[_0x42b6('0x4d')](_0x26937b[_0x42b6('0x4e')],_0x42b6('0x80'),(_0x2452ba,_0x49a547)=>{const _0x577555=[];for(const _0x376697 of _0x26937b[_0x42b6('0x9b')](_0x49a547[_0x42b6('0x9')])[_0x42b6('0xa6')]())_0x376697['is']('element',_0x42b6('0x17'))&&_0x577555['push'](_0x376697);_0x26937b[_0x42b6('0xd')](_0x5a23c4=>{for(const _0x1bcc1f of _0x577555)_0x5a23c4[_0x42b6('0x10')](_0x5a23c4[_0x42b6('0x9b')](_0x1bcc1f),_0x5a23c4['createPositionBefore'](_0x1bcc1f)),_0x5a23c4[_0x42b6('0x73')](_0x1bcc1f);});});}}function fe(_0x4e342a){if(_0x4e342a[_0x42b6('0x7c')])return!0x0;const _0x45bcfe=_0x4e342a[_0x42b6('0x3b')](0x0);return _0x45bcfe['is'](_0x42b6('0xa2'),_0x42b6('0x2a'))&&_0x45bcfe[_0x42b6('0x7c')];}function ue(_0x3a864e,_0x36065c={},_0x13e79f){for(const {isAnchor:_0x18f632,cellHeight:_0x5328d2,cellWidth:_0x3d6100}of _0x13e79f[_0x42b6('0x69')](_0x3a864e,{'includeAllSlots':!0x0,..._0x36065c}))if(!_0x18f632||0x1!=_0x5328d2||0x1!=_0x3d6100)return!0x1;return!0x0;}
23
+ const _0x9fc0=['from','view','name','get','column','deletion','isEmpty','filter','nextSibling','getAttributes','editor','fromEntries','fill','keys','next','for','editing','author','ck-suggestion-marker--active','clipboardOutput','locale','insertContent','has','columnInsertionIndexes','getContainedElement','discard','containsRange','newRange','accept','updateMarker','removeMarker','getRange','subType','getMarkers','afterInit','end','tableCellPadding','getRowIndexes','type','getRanges','createRangeOn','high','insertRows','Users','isEqual','ck-suggestion-marker','tableCellBackgroundColor','setAttribute','getChanges','length','tableCellVerticalAlignment','requires','selection','deletionRanges','stop','activeMarkers','formatBlock','push','registerDescriptionCallback','suggestionLoaded','hasSuggestion','some','paragraph','endRow','markerName','elementToElement','columnInsertionRanges','root','getShiftedBy','previous','insert','tableCellBorderColor','getItems','*Replace\x20table\x20cells*','add','_descriptionFactory','tablePaste','unwrap','getTableIfOnlyTableInContent','suggestionUnloaded','tablePasteColumn','register','tablePasteRow','insertion','ck-suggestion-marker-insertion','nodeAfter','markMultiRangeBlockFormat','_isForcedDefaultExecutionBlock','insertColumns','getSuggestion','suggestion','markerToHighlight','_tablePostFixingSubtypes','cells','getChildren','tableCellBorderStyle','TableClipboard','isInContent','first','tableCell','suggestion-td','markMultiRangeInsertion','suggestion:formatBlock:tablePasteCell','map','showSuggestionHighlights','markMultiRangeDeletion','tablePasteChainId','getColumns','registerPostFixer','getSelectionAffectedTableCells','cell','batch','endColumn','previousSibling','differ','row','getChild','reduce','tableCellHorizontalAlignment','rowInsertionIndexes','find','conversion','remove','commands','join','_splitMarkerName','last','getRows','move','TableUtils','createTableWalker','wrap','attributes','_suggestionFactory','createElement','getChangedMarkers','columns','element','tablePasteCell','removeColumns','low','model','document','$graveyard','dataDowncast','includes','getSuggestions','listenTo','change','plugins','findAncestor','set','_getCoordsForCells','startsWith','rowInsertionRanges','entries','oldRange','table','trackChanges','markerAttributes','createRangeIn','tableCellSuggestion','registerCustomCallback'];(function(_0x5c5274,_0x9fc0f4){const _0x20d97c=function(_0xb3a076){while(--_0xb3a076){_0x5c5274['push'](_0x5c5274['shift']());}};_0x20d97c(++_0x9fc0f4);}(_0x9fc0,0x1e8));const _0x20d9=function(_0x5c5274,_0x9fc0f4){_0x5c5274=_0x5c5274-0x0;let _0x20d97c=_0x9fc0[_0x5c5274];return _0x20d97c;};import{getTranslation as _0xd94375}from'../utils/common-translations';import{Plugin as _0x47398c}from'ckeditor5/src/core';import _0x5d24b5 from'./table';import{uid as _0x1b9d9a,priorities as _0x10bd24}from'ckeditor5/src/utils';const oe=['tableCellBorderWidth',_0x20d9('0x48'),_0x20d9('0x60'),_0x20d9('0x77'),_0x20d9('0x33'),_0x20d9('0x2f'),_0x20d9('0x25')],ne=Object[_0x20d9('0xc')](oe['map'](_0x5a6267=>[_0x5a6267,null]));export default class mt extends _0x47398c{static get[_0x20d9('0x34')](){return[_0x5d24b5];}[_0x20d9('0x23')](){const _0x39d662=this[_0x20d9('0xb')];if(!_0x39d662[_0x20d9('0x96')][_0x20d9('0x17')]('TableClipboard'))return;const _0x40d706=_0x39d662['plugins'][_0x20d9('0x4')]('TrackChangesEditing'),_0x5e8d58=_0x39d662['plugins'][_0x20d9('0x4')](_0x20d9('0x82')),_0x153a22=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x5d24b5),_0x4a20c9=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x20d9('0x61'));_0x153a22[_0x20d9('0x5d')][_0x20d9('0x3a')]('tablePasteRow',_0x20d9('0x51')),_0x39d662[_0x20d9('0x8e')]['schema'][_0x20d9('0x52')](_0x20d9('0xa2'),{'allowIn':_0x20d9('0x64'),'allowContentOf':_0x20d9('0x64'),'isLimit':!0x0}),_0x39d662['conversion'][_0x20d9('0x42')]({'model':_0x20d9('0xa2'),'view':_0x20d9('0x65')});let _0x55335b=null;_0x39d662[_0x20d9('0x8e')]['on'](_0x20d9('0x16'),(_0x140698,_0xa2ea36)=>{const [_0x31b108,_0x1d24f7]=_0xa2ea36,_0x431406=_0xa2ea36[_0xa2ea36[_0x20d9('0x32')]-0x1];_0x431406&&_0x431406['forceDefaultExecution']||_0x40d706[_0x20d9('0x58')]||this['editor'][_0x20d9('0x7c')][_0x20d9('0x4')](_0x20d9('0x9f'))['value']&&function(_0xbae967,_0x5c5ab7,_0x40359d,_0x34605a,_0x1fb9c0){if(_0x5c5ab7&&!_0x5c5ab7['is']('documentSelection'))return!0x1;const _0x2f9ed6=_0x1fb9c0[_0x20d9('0x4f')](_0xbae967,_0x40359d);if(!_0x2f9ed6||!se(_0x2f9ed6,null,_0x34605a))return!0x1;const _0x5eee15=_0x34605a[_0x20d9('0x6e')](_0x40359d[_0x20d9('0x8f')][_0x20d9('0x35')]);if(!_0x5eee15['length'])return!0x1;const _0x1f059d=_0x5eee15[0x0][_0x20d9('0x97')]('table'),_0x90e701=_0x34605a[_0x20d9('0x26')](_0x5eee15),_0xdeb34d=_0x34605a['getColumnIndexes'](_0x5eee15),_0x531515={'startRow':_0x90e701[_0x20d9('0x63')],'endRow':_0x90e701[_0x20d9('0x7f')],'startColumn':_0xdeb34d[_0x20d9('0x63')],'endColumn':_0xdeb34d[_0x20d9('0x7f')]};return 0x1==_0x5eee15[_0x20d9('0x32')]&&(_0x531515[_0x20d9('0x40')]+=_0x34605a[_0x20d9('0x80')](_0x2f9ed6)-0x1,_0x531515[_0x20d9('0x71')]+=_0x34605a[_0x20d9('0x6c')](_0x2f9ed6)-0x1),se(_0x1f059d,_0x531515,_0x34605a);}(_0x31b108,_0x1d24f7,_0x39d662[_0x20d9('0x8e')],_0x5e8d58,_0x4a20c9)&&(_0x140698[_0x20d9('0x37')](),_0x55335b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x39d662[_0x20d9('0x8e')][_0x20d9('0x95')](()=>{_0x39d662[_0x20d9('0x8e')][_0x20d9('0x16')](_0xa2ea36[0x0],_0xa2ea36[0x1],_0xa2ea36[0x2],_0xa2ea36[0x3],{'forceDefaultExecution':!0x0});const _0x5a6d99=_0x1b9d9a(),{rowInsertionRanges:_0x4d5aee,columnInsertionRanges:_0x2f9d3c,insertionRanges:_0x15a79b,deletionRanges:_0x4bf867,cells:_0x58dce1}=_0x55335b;_0x4d5aee[_0x20d9('0x32')]&&_0x40d706[_0x20d9('0x66')](_0x4d5aee,'tablePasteRow',{'tablePasteChainId':_0x5a6d99}),_0x2f9d3c[_0x20d9('0x32')]&&_0x40d706[_0x20d9('0x66')](_0x2f9d3c,'tablePasteColumn',{'tablePasteChainId':_0x5a6d99}),_0x15a79b['length']&&_0x40d706['markMultiRangeInsertion'](_0x15a79b,_0x20d9('0x4d'),{'tablePasteChainId':_0x5a6d99,'skipNestingCheck':!0x0}),_0x4bf867[_0x20d9('0x32')]&&_0x40d706[_0x20d9('0x6a')](_0x4bf867,'tablePaste',{'tablePasteChainId':_0x5a6d99,'skipNestingCheck':!0x0});const _0x2fff08=_0x40d706[_0x20d9('0x57')](_0x58dce1['map'](({element:_0x4a6b39})=>_0x4a6b39),{'formatGroupId':_0x1b9d9a()},[],'tablePasteCell',{'tablePasteChainId':_0x5a6d99});if(_0x2fff08){const _0x5200de=_0x2fff08[_0x20d9('0x22')](),_0x24935e=[];for(const {element:_0x41962e,attributes:_0x43ffbc}of _0x58dce1){if(!_0x43ffbc)continue;const _0x5195a0=_0x39d662[_0x20d9('0x8e')][_0x20d9('0x29')](_0x41962e),_0x48086f=_0x5200de['find'](_0x1f3233=>_0x1f3233[_0x20d9('0x20')]()[_0x20d9('0x2d')](_0x5195a0));_0x48086f&&_0x24935e[_0x20d9('0x3a')]([_0x48086f[_0x20d9('0x3')],_0x43ffbc]);}_0x24935e[_0x20d9('0x32')]&&_0x2fff08[_0x20d9('0x30')](_0x20d9('0xa0'),Object[_0x20d9('0xc')](_0x24935e));}_0x55335b=null;}));},{'priority':_0x10bd24[_0x20d9('0x2a')]+0xa}),_0x39d662['plugins'][_0x20d9('0x4')]('TableClipboard')['on']('_replaceTableSlotCell',(_0x358b64,_0x2d6631)=>{const [_0x120e0a,_0x35e86e,,_0x1c73d7]=_0x2d6631;if(!_0x55335b)return;_0x358b64['stop']();const _0x5200f4=_0x120e0a[_0x20d9('0x6f')],_0x3b8b42=_0x35e86e,_0x2b01a2=le(_0x5200f4),_0x72afe8=le(_0x3b8b42);_0x358b64['return']=_0x5200f4;let _0x2a6721=null,_0x15c6a1=null;if(_0x72afe8||_0x2b01a2){if(_0x2b01a2&&!_0x72afe8){_0x1c73d7[_0x20d9('0x7b')](_0x5200f4[_0x20d9('0x75')](0x0));for(const _0x3ccf8e of Array[_0x20d9('0x1')](_0x3b8b42[_0x20d9('0x5f')]()))_0x1c73d7[_0x20d9('0x47')](_0x3ccf8e,_0x5200f4,_0x20d9('0x24'));const _0x32d7fc=_0x55335b[_0x20d9('0x78')][_0x20d9('0x92')](_0x120e0a[_0x20d9('0x74')]),_0x4bec0c=_0x55335b['columnInsertionIndexes'][_0x20d9('0x92')](_0x120e0a[_0x20d9('0x5')]);_0x32d7fc||_0x4bec0c||(_0x2a6721=_0x1c73d7[_0x20d9('0xa1')](_0x5200f4));}else _0x72afe8&&!_0x2b01a2&&(_0x15c6a1=_0x1c73d7['createRangeIn'](_0x5200f4));}else{const _0x26e070=_0x1c73d7['createElement'](_0x20d9('0xa2')),_0x3624e5=_0x1c73d7[_0x20d9('0x87')]('tableCellSuggestion');_0x1c73d7[_0x20d9('0x84')](_0x1c73d7['createRangeIn'](_0x5200f4),_0x3624e5),_0x1c73d7[_0x20d9('0x47')](_0x26e070,_0x5200f4,0x0);for(const _0x46b462 of Array[_0x20d9('0x1')](_0x3b8b42[_0x20d9('0x5f')]()))_0x1c73d7[_0x20d9('0x47')](_0x46b462,_0x26e070,'end');_0x2a6721=_0x1c73d7[_0x20d9('0x29')](_0x26e070),_0x15c6a1=_0x1c73d7[_0x20d9('0x29')](_0x3624e5);}const _0x43c7f4=Array['from'](_0x3b8b42[_0x20d9('0xa')]())[_0x20d9('0x8')](([_0xb31709])=>oe[_0x20d9('0x92')](_0xb31709));_0x55335b[_0x20d9('0x5e')][_0x20d9('0x3a')]({'element':_0x5200f4,'attributes':_0x43c7f4[_0x20d9('0x32')]?Object[_0x20d9('0xc')](_0x43c7f4):null}),_0x2a6721&&_0x55335b['insertionRanges']['push'](_0x2a6721),_0x15c6a1&&_0x55335b[_0x20d9('0x36')]['push'](_0x15c6a1);},{'priority':'high'}),_0x5e8d58['on'](_0x20d9('0x59'),(_0x388627,_0x220987)=>{const [_0x4c42e8,_0x2c5c67={}]=_0x220987;if(!_0x55335b)return;const _0x5ccd18=_0x2c5c67['at']||0x0,_0x14f847=_0x2c5c67[_0x20d9('0x89')]||0x1;_0x55335b[_0x20d9('0x18')]=new Array(_0x14f847)[_0x20d9('0xd')](_0x5ccd18)['map']((_0x2360e6,_0x4cef94)=>_0x2360e6+_0x4cef94);for(const {cell:_0x23ed23}of _0x5e8d58[_0x20d9('0x83')](_0x4c42e8,{'startColumn':_0x5ccd18,'endColumn':_0x5ccd18+_0x14f847-0x1}))_0x55335b[_0x20d9('0x43')][_0x20d9('0x3a')](_0x39d662[_0x20d9('0x8e')][_0x20d9('0x29')](_0x23ed23));},{'priority':_0x20d9('0x8d')}),_0x5e8d58['on'](_0x20d9('0x2b'),(_0x59eb1b,_0x33ab8c)=>{const [_0x3bfff7,_0x54a919={}]=_0x33ab8c;if(!_0x55335b)return;const _0x53cd4c=_0x54a919['at']||0x0,_0x47265f=_0x54a919['rows']||0x1;_0x55335b['rowInsertionIndexes']=new Array(_0x47265f)[_0x20d9('0xd')](_0x53cd4c)[_0x20d9('0x68')]((_0x1ba322,_0x5a7cef)=>_0x1ba322+_0x5a7cef);for(const {cell:_0x2c7c7d}of _0x5e8d58['createTableWalker'](_0x3bfff7,{'startRow':_0x53cd4c,'endRow':_0x53cd4c+_0x47265f-0x1}))_0x55335b[_0x20d9('0x9b')][_0x20d9('0x3a')](_0x39d662[_0x20d9('0x8e')]['createRangeOn'](_0x2c7c7d));},{'priority':_0x20d9('0x8d')}),_0x40d706[_0x20d9('0x4c')][_0x20d9('0x3b')](_0x336063=>{if(_0x336063[_0x20d9('0x21')]&&_0x336063['subType'][_0x20d9('0x9a')]('tablePaste'))return _0x336063[_0x20d9('0x46')]?{}:{'type':_0x20d9('0x54'),'content':_0xd94375(_0x39d662[_0x20d9('0x15')],_0x20d9('0x4a'))};});const _0x27a96a=()=>{};for(const _0x29a3fc of[_0x20d9('0x4d'),'tablePasteColumn',_0x20d9('0x53'),_0x20d9('0x8b')])_0x40d706[_0x20d9('0x86')]['registerCustomCallback'](_0x20d9('0x54'),_0x29a3fc,'join',_0x27a96a),_0x40d706['_suggestionFactory'][_0x20d9('0x0')](_0x20d9('0x6'),_0x29a3fc,_0x20d9('0x7d'),_0x27a96a);_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')](_0x20d9('0x39'),_0x20d9('0x8b'),_0x20d9('0x1a'),_0x27a96a),_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')]('formatBlock',_0x20d9('0x8b'),_0x20d9('0x1d'),(_0x227f19,_0x496d2b,_0x1739a5)=>{const _0x3caefb=_0x227f19[_0x20d9('0x68')](_0x1f5306=>_0x1f5306[_0x20d9('0x19')]())[_0x20d9('0x8')](_0x321f3d=>_0x321f3d),_0x45f1f4=new Map(_0x3caefb[_0x20d9('0x68')](_0x3e494a=>[_0x3e494a,null]));if(_0x55335b)for(const {element:_0x542a7a,attributes:_0xc72f31}of _0x55335b[_0x20d9('0x5e')])_0xc72f31&&_0x45f1f4['set'](_0x542a7a,_0xc72f31);else{if(_0x1739a5&&_0x1739a5[_0x20d9('0xa0')])for(const [_0x2f2173,_0x2ac722]of Object[_0x20d9('0x9c')](_0x1739a5['markerAttributes'])){const _0x3b6e48=_0x39d662[_0x20d9('0x8e')]['markers'][_0x20d9('0x4')](_0x2f2173),_0x5da37e=_0x3b6e48?_0x3b6e48[_0x20d9('0x20')]()[_0x20d9('0x19')]():null;_0x5da37e&&_0x45f1f4[_0x20d9('0x98')](_0x5da37e,_0x2ac722);}}_0x39d662[_0x20d9('0x8e')][_0x20d9('0x95')](_0x439963=>{for(const [_0x4c9c08,_0x1f544b]of _0x45f1f4)_0x439963['setAttributes']({...ne,..._0x1f544b},_0x4c9c08);});});const _0x1f5d32=(_0x4d14d6,_0x560494)=>{_0x40d706[_0x20d9('0x86')]['registerCustomCallback'](_0x4d14d6,_0x20d9('0x4d'),_0x560494,(_0x4f2960,_0x575156,_0x220e47)=>{_0x39d662[_0x20d9('0x8e')]['change'](_0x4f3262=>{const _0x3ce091=[];for(const _0x5eab6e of _0x4f2960){const _0x2f9013=_0x5eab6e['start'][_0x20d9('0x56')];_0x2f9013['is'](_0x20d9('0x8a'),_0x20d9('0xa2'))&&_0x3ce091['push'](_0x2f9013);}_0x40d706['_suggestionFactory']['getSuggestionCallback'](_0x4d14d6,null,_0x560494)(_0x4f2960,_0x575156,_0x220e47);for(const _0x3879b3 of _0x3ce091)_0x20d9('0x90')!=_0x3879b3[_0x20d9('0x44')]['rootName']&&_0x4f3262['unwrap'](_0x3879b3);});});};_0x1f5d32(_0x20d9('0x54'),_0x20d9('0x1d')),_0x1f5d32(_0x20d9('0x54'),'discard'),_0x1f5d32(_0x20d9('0x6'),_0x20d9('0x1d')),_0x1f5d32(_0x20d9('0x6'),_0x20d9('0x1a')),_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')](_0x20d9('0x54'),_0x20d9('0x53'),_0x20d9('0x1a'),_0x56f2aa=>{const _0x3eb355=_0x56f2aa[_0x20d9('0x68')](_0x3429f3=>_0x3429f3['getContainedElement']()),_0x4365a1=_0x3eb355[0x0][_0x20d9('0x97')](_0x20d9('0x9e')),{minRow:_0x3d55fe,maxRow:_0x574494}=_0x153a22[_0x20d9('0x99')](_0x3eb355);_0x5e8d58['removeRows'](_0x4365a1,{'at':_0x3d55fe,'rows':_0x574494-_0x3d55fe+0x1});}),_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')](_0x20d9('0x54'),'tablePasteColumn',_0x20d9('0x1a'),_0xa5753f=>{const _0x2268fc=_0xa5753f[_0x20d9('0x68')](_0x4bac35=>_0x4bac35[_0x20d9('0x19')]()),_0x447ef7=_0x2268fc[0x0][_0x20d9('0x97')](_0x20d9('0x9e')),{minColumn:_0x15cb3f,maxColumn:_0x17cbb2}=_0x153a22[_0x20d9('0x99')](_0x2268fc);_0x5e8d58[_0x20d9('0x8c')](_0x447ef7,{'at':_0x15cb3f,'columns':_0x17cbb2-_0x15cb3f+0x1});});const _0x251ef9=(_0x4a2564,_0x2fbc29)=>{if(!_0x2fbc29[_0x20d9('0x21')]||!_0x2fbc29['subType'][_0x20d9('0x9a')](_0x20d9('0x4d')))return;const _0x3055ef=_0x2fbc29[_0x20d9('0x85')][_0x20d9('0x6b')],_0x4a1088=_0x40d706['getSuggestions']()[_0x20d9('0x8')](_0x1f3ae8=>_0x1f3ae8[_0x20d9('0x62')]&&_0x1f3ae8['attributes']&&_0x1f3ae8[_0x20d9('0x85')][_0x20d9('0x6b')]==_0x3055ef);_0x4a1088[_0x20d9('0x32')]&&_0x2fbc29['getAllAdjacentSuggestions']()[_0x20d9('0x32')]!=_0x4a1088['length']&&_0x4a1088[_0x20d9('0x76')]((_0x1544bb,_0x491318)=>(_0x1544bb[_0x20d9('0xf')]=_0x491318,_0x491318[_0x20d9('0x46')]=_0x1544bb,_0x491318));};function _0x467c66(_0xeac254,{showActiveMarker:_0x84ea63=!0x0}={}){const {id:_0x406f6f}=_0x40d706[_0x20d9('0x7e')](_0xeac254[_0x20d9('0x41')]),_0x2bf3b0=[_0x20d9('0x2e'),_0x20d9('0x55')],_0x4ab6ad=_0x40d706[_0x20d9('0x38')]['includes'](_0xeac254['markerName']);return _0x4ab6ad&&_0x2bf3b0[_0x20d9('0x3a')](_0x20d9('0x13')),{'classes':_0x2bf3b0,'attributes':{'data-suggestion':_0x406f6f},'priority':_0x4ab6ad&&_0x84ea63?0xbc2:0xbb8};}_0x40d706['on'](_0x20d9('0x3c'),_0x251ef9,{'priority':_0x20d9('0x2a')}),_0x40d706['on'](_0x20d9('0x50'),_0x251ef9,{'priority':_0x20d9('0x2a')}),_0x39d662['model'][_0x20d9('0x8f')][_0x20d9('0x6d')](()=>{let _0x51fb59=!0x1;const _0x4733dc=Array['from'](_0x39d662[_0x20d9('0x8e')]['document'][_0x20d9('0x73')][_0x20d9('0x88')]());for(const {name:_0x211a13,data:_0x2ee97b}of _0x4733dc){const {group:_0x3e9b01,type:_0x44ec58,id:_0x7c4fc7}=_0x40d706[_0x20d9('0x7e')](_0x211a13);if(_0x20d9('0x5b')!=_0x3e9b01||_0x20d9('0x6')!=_0x44ec58||_0x2ee97b[_0x20d9('0x9d')])continue;if(!_0x40d706[_0x20d9('0x3d')](_0x7c4fc7))continue;const _0x30a1a8=_0x40d706[_0x20d9('0x5a')](_0x7c4fc7)[_0x20d9('0x28')](),_0x1759dd=_0x39d662['plugins'][_0x20d9('0x4')](_0x20d9('0x2c'))['me'];for(const _0x419dbf of _0x40d706[_0x20d9('0x93')]()){if(!_0x419dbf[_0x20d9('0x62')]||_0x419dbf['author']!=_0x1759dd)continue;if('formatBlock'!=_0x419dbf[_0x20d9('0x27')]||'tablePasteCell'!=_0x419dbf['subType'])continue;if(_0x419dbf[_0x20d9('0x28')]()['every'](_0x1e5db0=>_0x30a1a8[_0x20d9('0x3e')](_0x4f7fed=>_0x4f7fed['containsRange'](_0x1e5db0,!0x0))))for(const _0x2905bc of _0x419dbf['getAllAdjacentSuggestions']())_0x2905bc[_0x20d9('0x62')]&&(_0x2905bc[_0x20d9('0x1a')](),_0x51fb59=!0x0);}}return _0x51fb59;}),_0x39d662[_0x20d9('0x8e')][_0x20d9('0x8f')][_0x20d9('0x6d')](_0x489c88=>{const _0x39a5a5=_0x39d662[_0x20d9('0x7c')][_0x20d9('0x4')]('redo');if(!_0x39a5a5||!_0x39a5a5['_createdBatches'][_0x20d9('0x17')](_0x489c88[_0x20d9('0x70')]))return!0x1;let _0x26b1c5=!0x1;const _0x3089ae=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x20d9('0x2c'))['me'],_0x3e270d=_0x39d662[_0x20d9('0x8e')]['document']['differ'][_0x20d9('0x31')](),_0x116064=Array[_0x20d9('0x1')](_0x39d662[_0x20d9('0x8e')]['document'][_0x20d9('0x73')]['getChangedMarkers']())[_0x20d9('0x8')](({name:_0x427529,data:_0x12a356})=>{const {group:_0x110821,subType:_0x223e67,authorId:_0x50ffa3}=_0x40d706[_0x20d9('0x7e')](_0x427529);return'suggestion'==_0x110821&&_0x20d9('0x4d')==_0x223e67&&_0x50ffa3==_0x3089ae['id']&&!_0x12a356['oldRange'];});for(const _0x383e62 of _0x3e270d){if(_0x20d9('0x47')!=_0x383e62[_0x20d9('0x27')]||_0x20d9('0xa2')!=_0x383e62['name']||0x1!=_0x383e62[_0x20d9('0x32')])continue;const _0x17905d=_0x489c88['createRange'](_0x383e62['position'],_0x383e62['position'][_0x20d9('0x45')](0x1));if(!_0x116064[_0x20d9('0x79')](({data:_0x1f8b95})=>_0x1f8b95['newRange'][_0x20d9('0x2d')](_0x17905d)))for(const {name:_0x2eba55,data:_0x189b66}of _0x116064)if(_0x17905d[_0x20d9('0x1b')](_0x189b66[_0x20d9('0x1c')])){_0x489c88[_0x20d9('0x1e')](_0x2eba55,{'range':_0x17905d}),_0x26b1c5=!0x0;break;}}return _0x26b1c5;}),_0x39d662['model'][_0x20d9('0x8f')][_0x20d9('0x6d')](_0x4f6646=>{let _0x1e3e90=!0x1;const _0x708c88=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x20d9('0x2c'))['me'],_0x7da18e=_0x40d706[_0x20d9('0x93')]()[_0x20d9('0x8')](_0x34ec4d=>_0x34ec4d[_0x20d9('0x62')]&&_0x34ec4d[_0x20d9('0x12')]==_0x708c88),_0x9c20a8=new Set(),_0x4c368e=new Set();for(const _0x43f332 of _0x7da18e)if(_0x20d9('0x4d')==_0x43f332[_0x20d9('0x21')])for(const _0x4af5ff of _0x43f332[_0x20d9('0x22')]()){const _0xd6ea28=_0x4af5ff[_0x20d9('0x20')]()['getContainedElement']();if(_0xd6ea28){if(_0xd6ea28['is'](_0x20d9('0x8a'),_0x20d9('0xa2'))&&le(_0xd6ea28)){_0x43f332[_0x20d9('0x1f')](_0x4af5ff['name']),_0x9c20a8[_0x20d9('0x4b')](_0xd6ea28),_0x1e3e90=!0x0;const _0xa72317=_0xd6ea28[_0x20d9('0x9')],_0x13c4fd=_0xd6ea28[_0x20d9('0x72')],_0x1660b7=_0xa72317&&_0xa72317['is'](_0x20d9('0x8a'),_0x20d9('0xa2')),_0x1b0956=_0x13c4fd&&_0x13c4fd['is'](_0x20d9('0x8a'),'tableCellSuggestion');_0x1660b7&&!_0x9c20a8[_0x20d9('0x17')](_0xa72317)&&_0x4c368e[_0x20d9('0x4b')](_0xa72317),_0x1b0956&&!_0x9c20a8['has'](_0x13c4fd)&&_0x4c368e['add'](_0x13c4fd);}else _0xd6ea28['is']('element',_0x20d9('0x3f'))&&_0xd6ea28[_0x20d9('0x7')]&&(_0x43f332[_0x20d9('0x1f')](_0x4af5ff[_0x20d9('0x3')]),_0x1e3e90=!0x0);}}else{if(_0x20d9('0x8b')==_0x43f332[_0x20d9('0x21')]){if(!_0x43f332[_0x20d9('0x85')]||!_0x43f332[_0x20d9('0x85')]['tablePasteChainId'])continue;const _0x2add78=_0x43f332[_0x20d9('0x85')][_0x20d9('0xa0')];if(_0x2add78&&Object[_0x20d9('0xe')](_0x2add78)[_0x20d9('0x32')])continue;const _0x59d035=_0x43f332[_0x20d9('0x85')]['tablePasteChainId'];let _0x6beaee=!0x0,_0x3a0ff0=!0x0;for(const _0xde4086 of _0x7da18e)if(_0xde4086[_0x20d9('0x21')]&&_0xde4086['subType'][_0x20d9('0x9a')](_0x20d9('0x4d'))){if(!_0xde4086['attributes'][_0x20d9('0x6b')]){_0x3a0ff0=!0x1;break;}if(_0xde4086['id']!=_0x43f332['id']&&_0xde4086[_0x20d9('0x85')][_0x20d9('0x6b')]==_0x59d035){_0x6beaee=!0x1;break;}}_0x3a0ff0&&_0x6beaee&&(_0x43f332['removeMarkers'](),_0x1e3e90=!0x0);}}for(const _0x53d5c1 of _0x9c20a8)_0x4f6646[_0x20d9('0x7b')](_0x53d5c1);for(const _0x20d419 of _0x4c368e)_0x4f6646[_0x20d9('0x4e')](_0x20d419);return _0x1e3e90;}),_0x39d662[_0x20d9('0x7a')][_0x20d9('0x10')]('editingDowncast')[_0x20d9('0x5c')]({'model':_0x20d9('0x67'),'view':_0x467c66,'converterPriority':'high'}),_0x39d662['conversion'][_0x20d9('0x10')](_0x20d9('0x91'))['markerToHighlight']({'model':_0x20d9('0x67'),'view':(_0x3bcb4f,_0x1cc487)=>{if(_0x1cc487['options'][_0x20d9('0x69')])return _0x467c66(_0x3bcb4f,{'showActiveMarker':!0x1});},'converterPriority':_0x20d9('0x2a')});const _0xf7e1ed=_0x39d662[_0x20d9('0x11')][_0x20d9('0x2')];this[_0x20d9('0x94')](_0xf7e1ed[_0x20d9('0x8f')],_0x20d9('0x14'),(_0x55db53,_0x3d8eb4)=>{const _0x3bc2e7=[];for(const _0x1d1113 of _0xf7e1ed['createRangeIn'](_0x3d8eb4['content'])[_0x20d9('0x49')]())_0x1d1113['is'](_0x20d9('0x8a'),_0x20d9('0x65'))&&_0x3bc2e7['push'](_0x1d1113);_0xf7e1ed[_0x20d9('0x95')](_0x140b82=>{for(const _0x3f4de6 of _0x3bc2e7)_0x140b82[_0x20d9('0x81')](_0x140b82[_0x20d9('0xa1')](_0x3f4de6),_0x140b82['createPositionBefore'](_0x3f4de6)),_0x140b82[_0x20d9('0x7b')](_0x3f4de6);});});}}function le(_0x2052c0){if(_0x2052c0['isEmpty'])return!0x0;const _0x538235=_0x2052c0[_0x20d9('0x75')](0x0);return _0x538235['is'](_0x20d9('0x8a'),_0x20d9('0x3f'))&&_0x538235['isEmpty'];}function se(_0x29ab70,_0x2d0119={},_0x5884af){for(const {isAnchor:_0x4c1e20,cellHeight:_0x5604aa,cellWidth:_0x18944d}of _0x5884af['createTableWalker'](_0x29ab70,{'includeAllSlots':!0x0,..._0x2d0119}))if(!_0x4c1e20||0x1!=_0x5604aa||0x1!=_0x18944d)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e09=['getSuggestion','findAncestor','commandParams','model','cell','getRowIndexes','toViewElement','first','selection','addMarker:suggestion','change','stop','item','ck-suggestion-marker-','createPositionAfter','index','formatBlock','writer','FORMAT_REGULAR_COLUMN','last','options','_suggestionFactory','parent','createTableWalker','removeClass','has','ck-suggestion-marker--active','getChild','removeMarker:suggestion','headingColumns','TrackChangesEditing','_descriptionFactory','createPositionBefore','mapper','editor','plugins','childCount','markerRange','locale','getColumnIndexes','getSelectionAffectedTableCells','consume','end','get','editing','removeAttribute','setTableRowHeader','unbindElementFromMarkerName','bindElementToMarker','table','forceValue','getCellLocation','TableUtils','requires','enableCommand','_splitMarkerName','markerName','name','setAttribute','from','markBlockFormat','commandName','data','includes','document','downcastDispatcher','headingRows','isBefore','createRange','nodeBefore','consumable','highest','data-suggestion','markerNameToElements','getAttribute','format','registerCustomCallback','activeMarkers','FORMAT_HEADER_ROW','addClass','commands','accept','value','setTableColumnHeader'];(function(_0x2bcc59,_0x2e09ff){const _0x44b589=function(_0x3aa868){while(--_0x3aa868){_0x2bcc59['push'](_0x2bcc59['shift']());}};_0x44b589(++_0x2e09ff);}(_0x2e09,0x11c));const _0x44b5=function(_0x2bcc59,_0x2e09ff){_0x2bcc59=_0x2bcc59-0x0;let _0x44b589=_0x2e09[_0x2bcc59];return _0x44b589;};import{Plugin as _0x119690}from'ckeditor5/src/core';import _0x423e16 from'./table';import{getTranslation as _0x82bc40}from'../utils/common-translations';export default class gt extends _0x119690{static get[_0x44b5('0x15')](){return[_0x423e16];}['afterInit'](){const _0x411f41=this[_0x44b5('0x2')];if(!_0x411f41[_0x44b5('0x3')][_0x44b5('0x4d')]('TableEditing'))return;const _0x361b81=_0x411f41[_0x44b5('0x6')],_0x2dc58f=_0x411f41[_0x44b5('0x3')]['get'](_0x44b5('0x52')),_0x184648=_0x411f41['plugins'][_0x44b5('0xb')](_0x44b5('0x14')),_0x4bf085=_0x411f41['plugins'][_0x44b5('0xb')](_0x423e16);function _0xbac303({showActiveMarker:_0x7e3fc1=!0x0,setDataAttribute:_0x33c97b=!0x0}={}){return(_0x423401,_0x2f028c,_0x51722d)=>{const {type:_0x2d44b8,id:_0x31e666}=_0x2dc58f[_0x44b5('0x17')](_0x2f028c[_0x44b5('0x18')]),_0x4099e6=_0x2dc58f[_0x44b5('0x34')](_0x31e666);if(!_0x4099e6[_0x44b5('0x1e')]||_0x44b5('0x33')!=_0x4099e6[_0x44b5('0x1e')][_0x44b5('0x1d')])return;if(_0x2f028c[_0x44b5('0x40')])return void _0x423401[_0x44b5('0x3f')]();if(!_0x51722d[_0x44b5('0x26')][_0x44b5('0x9')](_0x2f028c[_0x44b5('0x5')],_0x423401[_0x44b5('0x19')]))return;const _0x29c024=_0x2f028c[_0x44b5('0x5')]['start']['nodeAfter'],_0xdca943=_0x2f028c[_0x44b5('0x5')][_0x44b5('0xa')][_0x44b5('0x25')],_0x7299a3=_0x29c024[_0x44b5('0x4a')][_0x44b5('0x4a')],{column:_0x30862a}=_0x184648[_0x44b5('0x13')](_0x29c024),{column:_0x8f5291}=_0x184648['getCellLocation'](_0xdca943);for(let _0x720ac6=_0x30862a;_0x720ac6<=_0x8f5291;_0x720ac6++){const _0x82b9a7=_0x184648[_0x44b5('0x4b')](_0x7299a3,{'column':_0x720ac6,'includeAllSlots':!0x1});for(const _0x3bfe80 of _0x82b9a7){const _0x3247ab=_0x3bfe80[_0x44b5('0x38')],_0x25ad75=_0x51722d[_0x44b5('0x1')][_0x44b5('0x3a')](_0x3247ab);_0x51722d[_0x44b5('0x45')][_0x44b5('0x2f')](_0x44b5('0x41')+_0x2d44b8,_0x25ad75),_0x33c97b&&_0x51722d['writer'][_0x44b5('0x1a')]('data-suggestion',_0x31e666,_0x25ad75),_0x51722d[_0x44b5('0x1')][_0x44b5('0x10')](_0x25ad75,_0x2f028c[_0x44b5('0x18')]),_0x7e3fc1&&(_0x2dc58f[_0x44b5('0x2d')][_0x44b5('0x1f')](_0x2f028c[_0x44b5('0x18')])?_0x51722d[_0x44b5('0x45')][_0x44b5('0x2f')]('ck-suggestion-marker--active',_0x25ad75):_0x51722d[_0x44b5('0x45')][_0x44b5('0x4c')](_0x44b5('0x4e'),_0x25ad75));}}};}_0x2dc58f[_0x44b5('0x16')](_0x44b5('0xe'),(_0x3c9298,_0x59817c)=>{const _0x90eb84=_0x184648['getSelectionAffectedTableCells'](_0x411f41['model'][_0x44b5('0x20')][_0x44b5('0x3c')]),_0x39078f=_0x184648[_0x44b5('0x39')](_0x90eb84),_0x2a952a=_0x90eb84[0x0][_0x44b5('0x35')](_0x44b5('0x11')),_0x1ec327=_0x2a952a[_0x44b5('0x2a')](_0x44b5('0x22'))||0x0,_0x531f21=_0x59817c&&null!==_0x59817c['forceValue']?_0x59817c[_0x44b5('0x12')]:!_0x411f41['commands']['get']('setTableRowHeader')[_0x44b5('0x32')],_0x58d654=_0x531f21?_0x39078f[_0x44b5('0x47')]:_0x39078f[_0x44b5('0x3b')],_0x3b4c60=_0x2a952a[_0x44b5('0x4f')](_0x58d654);let _0x560ff1;if(_0x531f21){const _0x4f431a=_0x2a952a[_0x44b5('0x4f')](_0x1ec327);if(_0x3b4c60['index']<_0x4f431a[_0x44b5('0x43')])return;_0x560ff1=_0x411f41['model'][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')]['createPositionBefore'](_0x4f431a[_0x44b5('0x4f')](0x0)),_0x411f41['model'][_0x44b5('0x42')](_0x3b4c60[_0x44b5('0x4f')](_0x3b4c60['childCount']-0x1)));}else{const _0x2b6c53=_0x2a952a[_0x44b5('0x4f')](_0x1ec327-0x1);if(!_0x2b6c53)return;_0x560ff1=_0x411f41['model'][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x0')](_0x3b4c60[_0x44b5('0x4f')](0x0)),_0x411f41[_0x44b5('0x37')]['createPositionAfter'](_0x2b6c53[_0x44b5('0x4f')](_0x2b6c53[_0x44b5('0x4')]-0x1)));}_0x411f41[_0x44b5('0x37')]['change'](()=>{_0x2dc58f[_0x44b5('0x1c')](_0x560ff1,{'commandName':_0x44b5('0xe'),'commandParams':[{'forceValue':_0x531f21}]},[],'setTableRowHeader');});}),_0x2dc58f[_0x44b5('0x16')](_0x44b5('0x33'),(_0xb39165,_0x1ac9c7)=>{const _0x5f448c=_0x411f41[_0x44b5('0x3')]['get'](_0x44b5('0x14')),_0x1a5834=_0x5f448c[_0x44b5('0x8')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x20')][_0x44b5('0x3c')]),_0x39a333=_0x5f448c[_0x44b5('0x7')](_0x1a5834),_0x2b5d06=_0x1a5834[0x0]['findAncestor'](_0x44b5('0x11')),_0x20cba5=_0x2b5d06[_0x44b5('0x2a')](_0x44b5('0x51'))||0x0,_0x595d31=_0x1ac9c7&&null!==_0x1ac9c7['forceValue']?_0x1ac9c7['forceValue']:!_0x411f41[_0x44b5('0x30')][_0x44b5('0xb')](_0x44b5('0x33'))['value'];let _0x319c81;const _0x37e413=_0x2b5d06[_0x44b5('0x4f')](0x0),_0x3df80d=_0x595d31?_0x39a333[_0x44b5('0x47')]:_0x39a333[_0x44b5('0x3b')],_0x2b0dbc=_0x5f448c[_0x44b5('0x4b')](_0x2b5d06,{'startRow':0x0,'column':_0x3df80d,'includeAllSlots':!0x1}),_0x1115f4=Array[_0x44b5('0x1b')](_0x2b0dbc)[0x0][_0x44b5('0x38')];if(_0x595d31){const _0x1f7350=_0x37e413[_0x44b5('0x4f')](_0x20cba5);if(_0x1115f4[_0x44b5('0x23')](_0x1f7350))return;_0x319c81=_0x411f41[_0x44b5('0x37')][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x0')](_0x1f7350),_0x411f41[_0x44b5('0x37')][_0x44b5('0x42')](_0x1115f4));}else{const _0x469aa2=_0x37e413[_0x44b5('0x4f')](_0x20cba5-0x1);if(!_0x469aa2)return;_0x319c81=_0x411f41[_0x44b5('0x37')][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x0')](_0x1115f4),_0x411f41[_0x44b5('0x37')][_0x44b5('0x42')](_0x469aa2));}_0x411f41['model'][_0x44b5('0x3e')](()=>{_0x2dc58f[_0x44b5('0x1c')](_0x319c81,{'commandName':_0x44b5('0x33'),'commandParams':[{'forceValue':_0x595d31}]},[],_0x44b5('0x33'));});}),_0x411f41[_0x44b5('0xc')][_0x44b5('0x21')]['on'](_0x44b5('0x3d'),_0xbac303(),{'priority':'highest'}),_0x411f41[_0x44b5('0x1e')][_0x44b5('0x21')]['on'](_0x44b5('0x3d'),(_0x2fd7d1,_0x4a980e,_0x57ef63)=>{_0x57ef63[_0x44b5('0x48')]['showSuggestionHighlights']&&_0xbac303({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2fd7d1,_0x4a980e,_0x57ef63);},{'priority':_0x44b5('0x27')}),_0x411f41[_0x44b5('0xc')][_0x44b5('0x21')]['on'](_0x44b5('0x50'),(_0x1602c6,_0x2743ff,_0x373ada)=>{const {type:_0x1ef61f,id:_0x1e8fb6}=_0x2dc58f[_0x44b5('0x17')](_0x2743ff[_0x44b5('0x18')]),_0x3fe52b=_0x2dc58f[_0x44b5('0x34')](_0x1e8fb6);if(!_0x3fe52b[_0x44b5('0x1e')]||_0x44b5('0x33')!=_0x3fe52b[_0x44b5('0x1e')][_0x44b5('0x1d')])return;const _0x408e7f=_0x373ada[_0x44b5('0x1')][_0x44b5('0x29')](_0x2743ff['markerName']);if(_0x408e7f)for(const _0x54efd1 of _0x408e7f)_0x373ada[_0x44b5('0x45')][_0x44b5('0x4c')]('ck-suggestion-marker-'+_0x1ef61f,_0x54efd1),_0x373ada[_0x44b5('0x45')][_0x44b5('0x4c')]('ck-suggestion-marker--active',_0x54efd1),_0x373ada[_0x44b5('0x45')][_0x44b5('0xd')](_0x44b5('0x28'),_0x54efd1),_0x373ada[_0x44b5('0x1')][_0x44b5('0xf')](_0x54efd1,_0x2743ff['markerName']);},{'priority':_0x44b5('0x27')}),_0x2dc58f[_0x44b5('0x53')]['registerDescriptionCallback'](_0x5a9bb4=>{const {data:_0x257f3b}=_0x5a9bb4;if(_0x257f3b){if(_0x44b5('0xe')==_0x257f3b[_0x44b5('0x1d')]){const _0x292e74=_0x257f3b['commandParams'][0x0][_0x44b5('0x12')];return _0x583ba7(_0x82bc40(_0x361b81,_0x292e74?_0x44b5('0x2e'):'FORMAT_REGULAR_ROW'));}if(_0x44b5('0x33')==_0x257f3b[_0x44b5('0x1d')]){const _0x4f91a2=_0x257f3b[_0x44b5('0x36')][0x0]['forceValue'];return _0x583ba7(_0x82bc40(_0x361b81,_0x4f91a2?'FORMAT_HEADER_COLUMN':_0x44b5('0x46')));}}function _0x583ba7(_0x10ee4d){return{'type':_0x44b5('0x2b'),'content':_0x82bc40(_0x361b81,'*Format:*\x20%0',_0x10ee4d)};}});const _0x2a901f=_0x4bf085['_acceptFormatSuggestionCallbackFactory']();_0x2dc58f[_0x44b5('0x49')][_0x44b5('0x2c')](_0x44b5('0x44'),_0x44b5('0xe'),_0x44b5('0x31'),_0x2a901f),_0x2dc58f['_suggestionFactory']['registerCustomCallback'](_0x44b5('0x44'),_0x44b5('0x33'),_0x44b5('0x31'),_0x2a901f);}}
23
+ const _0x3054=['first','_suggestionFactory','ck-suggestion-marker-','childCount','_splitMarkerName','addMarker:suggestion','plugins','getSuggestion','selection','end','index','model','data','document','locale','setTableRowHeader','registerDescriptionCallback','item','table','toViewElement','ck-suggestion-marker--active','TableUtils','getColumnIndexes','get','highest','removeClass','bindElementToMarker','change','accept','cell','value','stop','markBlockFormat','unbindElementFromMarkerName','createPositionBefore','requires','afterInit','mapper','getSelectionAffectedTableCells','nodeAfter','markerRange','findAncestor','activeMarkers','setAttribute','commandParams','data-suggestion','options','includes','FORMAT_HEADER_ROW','TrackChangesEditing','commandName','editor','nodeBefore','from','parent','start','setTableColumnHeader','createPositionAfter','markerName','forceValue','addClass','enableCommand','consumable','getCellLocation','showSuggestionHighlights','last','commands','formatBlock','createRange','getRowIndexes','format','consume','getAttribute','writer','headingRows','getChild','createTableWalker','downcastDispatcher','removeMarker:suggestion','_descriptionFactory','removeAttribute'];(function(_0x4b6cd8,_0x3054eb){const _0x41dbee=function(_0xd33e79){while(--_0xd33e79){_0x4b6cd8['push'](_0x4b6cd8['shift']());}};_0x41dbee(++_0x3054eb);}(_0x3054,0x1a1));const _0x41db=function(_0x4b6cd8,_0x3054eb){_0x4b6cd8=_0x4b6cd8-0x0;let _0x41dbee=_0x3054[_0x4b6cd8];return _0x41dbee;};import{Plugin as _0x40208a}from'ckeditor5/src/core';import _0x4974ce from'./table';import{getTranslation as _0x340498}from'../utils/common-translations';export default class lt extends _0x40208a{static get[_0x41db('0x17')](){return[_0x4974ce];}[_0x41db('0x18')](){const _0x112dff=this[_0x41db('0x27')];if(!_0x112dff[_0x41db('0x4b')]['has']('TableEditing'))return;const _0x7bf1e9=_0x112dff[_0x41db('0x2')],_0x314625=_0x112dff[_0x41db('0x4b')][_0x41db('0xb')](_0x41db('0x25')),_0x460f1b=_0x112dff[_0x41db('0x4b')][_0x41db('0xb')](_0x41db('0x9')),_0x30a682=_0x112dff[_0x41db('0x4b')]['get'](_0x4974ce);function _0x5cf6d9({showActiveMarker:_0x2fdcf2=!0x0,setDataAttribute:_0x41be27=!0x0}={}){return(_0x39d4fc,_0x35db53,_0x455fac)=>{const {type:_0x3d7214,id:_0x471e70}=_0x314625[_0x41db('0x49')](_0x35db53[_0x41db('0x2e')]),_0x3d8c2a=_0x314625[_0x41db('0x4c')](_0x471e70);if(!_0x3d8c2a[_0x41db('0x0')]||_0x41db('0x2c')!=_0x3d8c2a['data'][_0x41db('0x26')])return;if(_0x35db53[_0x41db('0x5')])return void _0x39d4fc[_0x41db('0x13')]();if(!_0x455fac[_0x41db('0x32')][_0x41db('0x3b')](_0x35db53[_0x41db('0x1c')],_0x39d4fc['name']))return;const _0x44c377=_0x35db53[_0x41db('0x1c')][_0x41db('0x2b')][_0x41db('0x1b')],_0xcd90db=_0x35db53[_0x41db('0x1c')][_0x41db('0x4e')][_0x41db('0x28')],_0x33e9ba=_0x44c377[_0x41db('0x2a')][_0x41db('0x2a')],{column:_0x4517cb}=_0x460f1b[_0x41db('0x33')](_0x44c377),{column:_0x4e33a9}=_0x460f1b[_0x41db('0x33')](_0xcd90db);for(let _0x5b238c=_0x4517cb;_0x5b238c<=_0x4e33a9;_0x5b238c++){const _0x57a273=_0x460f1b[_0x41db('0x40')](_0x33e9ba,{'column':_0x5b238c,'includeAllSlots':!0x1});for(const _0x5d6f7d of _0x57a273){const _0x48b256=_0x5d6f7d[_0x41db('0x11')],_0x5128d0=_0x455fac[_0x41db('0x19')][_0x41db('0x7')](_0x48b256);_0x455fac[_0x41db('0x3d')]['addClass'](_0x41db('0x47')+_0x3d7214,_0x5128d0),_0x41be27&&_0x455fac[_0x41db('0x3d')][_0x41db('0x1f')]('data-suggestion',_0x471e70,_0x5128d0),_0x455fac[_0x41db('0x19')][_0x41db('0xe')](_0x5128d0,_0x35db53['markerName']),_0x2fdcf2&&(_0x314625[_0x41db('0x1e')][_0x41db('0x23')](_0x35db53[_0x41db('0x2e')])?_0x455fac['writer'][_0x41db('0x30')](_0x41db('0x8'),_0x5128d0):_0x455fac[_0x41db('0x3d')][_0x41db('0xd')]('ck-suggestion-marker--active',_0x5128d0));}}};}_0x314625[_0x41db('0x31')]('setTableRowHeader',(_0x3592d8,_0x333586)=>{const _0x1a1b95=_0x460f1b[_0x41db('0x1a')](_0x112dff['model'][_0x41db('0x1')][_0x41db('0x4d')]),_0x47be1d=_0x460f1b[_0x41db('0x39')](_0x1a1b95),_0x59e4d6=_0x1a1b95[0x0][_0x41db('0x1d')](_0x41db('0x6')),_0x34ce2e=_0x59e4d6[_0x41db('0x3c')](_0x41db('0x3e'))||0x0,_0x244379=_0x333586&&null!==_0x333586['forceValue']?_0x333586[_0x41db('0x2f')]:!_0x112dff['commands'][_0x41db('0xb')](_0x41db('0x3'))[_0x41db('0x12')],_0x5e7827=_0x244379?_0x47be1d[_0x41db('0x35')]:_0x47be1d['first'],_0x349927=_0x59e4d6[_0x41db('0x3f')](_0x5e7827);let _0x4ecd6b;if(_0x244379){const _0x2ee4c6=_0x59e4d6[_0x41db('0x3f')](_0x34ce2e);if(_0x349927[_0x41db('0x4f')]<_0x2ee4c6[_0x41db('0x4f')])return;_0x4ecd6b=_0x112dff[_0x41db('0x50')][_0x41db('0x38')](_0x112dff[_0x41db('0x50')]['createPositionBefore'](_0x2ee4c6[_0x41db('0x3f')](0x0)),_0x112dff[_0x41db('0x50')]['createPositionAfter'](_0x349927[_0x41db('0x3f')](_0x349927[_0x41db('0x48')]-0x1)));}else{const _0x597879=_0x59e4d6[_0x41db('0x3f')](_0x34ce2e-0x1);if(!_0x597879)return;_0x4ecd6b=_0x112dff['model'][_0x41db('0x38')](_0x112dff[_0x41db('0x50')]['createPositionBefore'](_0x349927['getChild'](0x0)),_0x112dff[_0x41db('0x50')][_0x41db('0x2d')](_0x597879['getChild'](_0x597879['childCount']-0x1)));}_0x112dff['model'][_0x41db('0xf')](()=>{_0x314625[_0x41db('0x14')](_0x4ecd6b,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x244379}]},[],_0x41db('0x3'));});}),_0x314625[_0x41db('0x31')](_0x41db('0x2c'),(_0x54a149,_0x2ee291)=>{const _0x56e8bf=_0x112dff[_0x41db('0x4b')][_0x41db('0xb')](_0x41db('0x9')),_0x53d314=_0x56e8bf[_0x41db('0x1a')](_0x112dff['model'][_0x41db('0x1')]['selection']),_0x234ddd=_0x56e8bf[_0x41db('0xa')](_0x53d314),_0x11a44a=_0x53d314[0x0]['findAncestor'](_0x41db('0x6')),_0x130759=_0x11a44a[_0x41db('0x3c')]('headingColumns')||0x0,_0x168895=_0x2ee291&&null!==_0x2ee291[_0x41db('0x2f')]?_0x2ee291['forceValue']:!_0x112dff[_0x41db('0x36')][_0x41db('0xb')](_0x41db('0x2c'))[_0x41db('0x12')];let _0x4738b7;const _0x1f7ee9=_0x11a44a[_0x41db('0x3f')](0x0),_0x4b5f71=_0x168895?_0x234ddd[_0x41db('0x35')]:_0x234ddd[_0x41db('0x45')],_0x337b50=_0x56e8bf[_0x41db('0x40')](_0x11a44a,{'startRow':0x0,'column':_0x4b5f71,'includeAllSlots':!0x1}),_0x559ca8=Array[_0x41db('0x29')](_0x337b50)[0x0][_0x41db('0x11')];if(_0x168895){const _0x1d6296=_0x1f7ee9[_0x41db('0x3f')](_0x130759);if(_0x559ca8['isBefore'](_0x1d6296))return;_0x4738b7=_0x112dff[_0x41db('0x50')][_0x41db('0x38')](_0x112dff['model'][_0x41db('0x16')](_0x1d6296),_0x112dff[_0x41db('0x50')][_0x41db('0x2d')](_0x559ca8));}else{const _0x18486c=_0x1f7ee9[_0x41db('0x3f')](_0x130759-0x1);if(!_0x18486c)return;_0x4738b7=_0x112dff['model'][_0x41db('0x38')](_0x112dff[_0x41db('0x50')][_0x41db('0x16')](_0x559ca8),_0x112dff['model'][_0x41db('0x2d')](_0x18486c));}_0x112dff[_0x41db('0x50')][_0x41db('0xf')](()=>{_0x314625[_0x41db('0x14')](_0x4738b7,{'commandName':_0x41db('0x2c'),'commandParams':[{'forceValue':_0x168895}]},[],_0x41db('0x2c'));});}),_0x112dff['editing']['downcastDispatcher']['on'](_0x41db('0x4a'),_0x5cf6d9(),{'priority':_0x41db('0xc')}),_0x112dff[_0x41db('0x0')][_0x41db('0x41')]['on'](_0x41db('0x4a'),(_0x312b2c,_0x20b4da,_0x3945a3)=>{_0x3945a3[_0x41db('0x22')][_0x41db('0x34')]&&_0x5cf6d9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x312b2c,_0x20b4da,_0x3945a3);},{'priority':_0x41db('0xc')}),_0x112dff['editing']['downcastDispatcher']['on'](_0x41db('0x42'),(_0x504b10,_0x38a7ec,_0x83ab50)=>{const {type:_0x5f13e3,id:_0x32bbb5}=_0x314625[_0x41db('0x49')](_0x38a7ec[_0x41db('0x2e')]),_0x375b82=_0x314625[_0x41db('0x4c')](_0x32bbb5);if(!_0x375b82[_0x41db('0x0')]||_0x41db('0x2c')!=_0x375b82['data'][_0x41db('0x26')])return;const _0x182e5f=_0x83ab50[_0x41db('0x19')]['markerNameToElements'](_0x38a7ec[_0x41db('0x2e')]);if(_0x182e5f)for(const _0x4447b8 of _0x182e5f)_0x83ab50[_0x41db('0x3d')]['removeClass'](_0x41db('0x47')+_0x5f13e3,_0x4447b8),_0x83ab50[_0x41db('0x3d')]['removeClass'](_0x41db('0x8'),_0x4447b8),_0x83ab50['writer'][_0x41db('0x44')](_0x41db('0x21'),_0x4447b8),_0x83ab50[_0x41db('0x19')][_0x41db('0x15')](_0x4447b8,_0x38a7ec['markerName']);},{'priority':'highest'}),_0x314625[_0x41db('0x43')][_0x41db('0x4')](_0x5bcc59=>{const {data:_0x43d3c2}=_0x5bcc59;if(_0x43d3c2){if(_0x41db('0x3')==_0x43d3c2['commandName']){const _0x24c122=_0x43d3c2[_0x41db('0x20')][0x0]['forceValue'];return _0x460f20(_0x340498(_0x7bf1e9,_0x24c122?_0x41db('0x24'):'FORMAT_REGULAR_ROW'));}if(_0x41db('0x2c')==_0x43d3c2[_0x41db('0x26')]){const _0x256353=_0x43d3c2[_0x41db('0x20')][0x0][_0x41db('0x2f')];return _0x460f20(_0x340498(_0x7bf1e9,_0x256353?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}function _0x460f20(_0x1efd0c){return{'type':_0x41db('0x3a'),'content':_0x340498(_0x7bf1e9,'*Format:*\x20%0',_0x1efd0c)};}});const _0x1e5b3b=_0x30a682['_acceptFormatSuggestionCallbackFactory']();_0x314625[_0x41db('0x46')]['registerCustomCallback'](_0x41db('0x37'),_0x41db('0x3'),_0x41db('0x10'),_0x1e5b3b),_0x314625[_0x41db('0x46')]['registerCustomCallback'](_0x41db('0x37'),'setTableColumnHeader',_0x41db('0x10'),_0x1e5b3b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a1a=['table','_suggestionFactory','TableEditing','registerCustomCallback','size','document','commands','change','isEnabled','_areSelectedCellsMergable','markMultiRangeBlockFormat','get','containsRange','from','_areMergableCells','splitTableCellVertically','setSelection','cell','direction','createTableWalker','splitTableCellHorizontally','registerDescriptionCallback','findAncestor','execute','value','_descriptionFactory','*Split\x20cell:*\x20horizontally','tableCell','TableUtils','enableCommand','filter','_acceptFormatSuggestionCallbackFactory','forceDefaultExecution','selection','length','requires','map','afterInit','has','push','getSuggestions','fromRange','format','horizontally','markBlockFormat','subType','element','_tablePostFixingSubtypes','stop','formatBlock','commandName','type','mergeTableCellDown','plugins','low','refresh','mergeTableCellRight','insertion','add','createRangeOn','getFirstPosition','getSelectionAffectedTableCells','root','_isForcedDefaultExecutionBlock','getCellLocation','mergeTableCellLeft','*Merge\x20cells*','model','$graveyard','TrackChangesEditing','getAncestors','isInContent','editor','trackChanges','find','accept','author','locale','getRanges','mergeTableCells','mergeTableCellUp','highest','*Split\x20cell:*\x20vertically'];(function(_0x4345a1,_0x3a1aec){const _0x401fbe=function(_0x577ed9){while(--_0x577ed9){_0x4345a1['push'](_0x4345a1['shift']());}};_0x401fbe(++_0x3a1aec);}(_0x3a1a,0x17e));const _0x401f=function(_0x4345a1,_0x3a1aec){_0x4345a1=_0x4345a1-0x0;let _0x401fbe=_0x3a1a[_0x4345a1];return _0x401fbe;};import{Plugin as _0x71894c}from'ckeditor5/src/core';import _0x2910cd from'./table';import{LiveRange as _0x2bb5fb}from'ckeditor5/src/engine';import{getTranslation as _0x5a8700}from'../utils/common-translations';export default class ft extends _0x71894c{static get[_0x401f('0x44')](){return[_0x2910cd];}[_0x401f('0x46')](){const _0x4487a9=this[_0x401f('0x16')],_0x3a3255=_0x4487a9[_0x401f('0x11')]['document'][_0x401f('0x42')],_0x1aa6e3=_0x4487a9[_0x401f('0x1b')];if(!_0x4487a9[_0x401f('0x3')]['has'](_0x401f('0x23')))return;const _0x152501=_0x4487a9['plugins']['get'](_0x401f('0x13')),_0xa80fb2=_0x4487a9[_0x401f('0x3')][_0x401f('0x2c')](_0x401f('0x3d')),_0x1ed8d4=_0x4487a9[_0x401f('0x3')][_0x401f('0x2c')](_0x2910cd);_0x1ed8d4[_0x401f('0x50')][_0x401f('0x48')]('mergeTableCells'),_0x152501[_0x401f('0x3e')](_0x401f('0x1d'),()=>{const _0xdf93aa=_0xa80fb2[_0x401f('0xb')](_0x4487a9['model']['document'][_0x401f('0x42')]);_0x4487a9[_0x401f('0x11')][_0x401f('0x28')](()=>{_0x152501[_0x401f('0x2b')](_0xdf93aa,{'commandName':'mergeTableCells','commandParams':[]},[],_0x401f('0x1d'));});}),_0x4487a9['commands'][_0x401f('0x2c')](_0x401f('0x1d'))['on'](_0x401f('0x38'),(_0x265e3b,_0x378895)=>{_0x4487a9[_0x401f('0x27')]['get'](_0x401f('0x17'))[_0x401f('0x39')]&&(_0x378895[_0x401f('0x43')]>0x0&&_0x378895[_0x378895[_0x401f('0x43')]-0x1]&&_0x378895[_0x378895[_0x401f('0x43')]-0x1][_0x401f('0x41')]||_0x152501[_0x401f('0xd')]||this['_areSelectedCellsMergable']()||_0x265e3b[_0x401f('0x51')]());},{'priority':_0x401f('0x1f')});for(const _0x232adb of[_0x401f('0x1e'),_0x401f('0x6'),_0x401f('0x2'),_0x401f('0xf')]){const _0x33a3ac=_0x4487a9[_0x401f('0x27')]['get'](_0x232adb);_0x152501[_0x401f('0x3e')](_0x232adb,()=>{const _0x403e1e=_0x4487a9[_0x401f('0x11')][_0x401f('0x26')][_0x401f('0x42')][_0x401f('0xa')]()[_0x401f('0x14')]()[_0x401f('0x18')](_0x2fcf89=>_0x2fcf89['is'](_0x401f('0x4f'),_0x401f('0x3c'))),_0x3399c=_0x33a3ac[_0x401f('0x39')];_0x4487a9[_0x401f('0x11')]['change'](()=>{_0x152501[_0x401f('0x2b')]([_0x403e1e,_0x3399c],{'commandName':_0x401f('0x1d'),'commandParams':[]},[],_0x401f('0x1d'));});});}for(const _0x3f51ee of['splitTableCellVertically',_0x401f('0x35')]){const _0x1a4fc2=_0x4487a9[_0x401f('0x27')][_0x401f('0x2c')](_0x3f51ee);_0x152501[_0x401f('0x3e')](_0x3f51ee,()=>{const _0x5c8a3c=_0xa80fb2[_0x401f('0xb')](_0x4487a9[_0x401f('0x11')][_0x401f('0x26')][_0x401f('0x42')])[0x0],_0x291cb3=_0x5c8a3c[_0x401f('0x37')](_0x401f('0x21')),{column:_0x2adffb,row:_0x1f9b2b}=_0xa80fb2[_0x401f('0xe')](_0x5c8a3c);let _0x19a6d0=[];if(_0x401f('0x4c')==_0x1a4fc2[_0x401f('0x33')]){const _0x67abe0=_0xa80fb2[_0x401f('0x34')](_0x291cb3,{'startRow':_0x1f9b2b,'endRow':_0x1f9b2b,'includeAllSlots':!0x0});_0x19a6d0=Array[_0x401f('0x2e')](_0x67abe0)[_0x401f('0x45')](_0x15a04b=>_0x15a04b[_0x401f('0x32')]);}else{const _0x43f9d3=_0xa80fb2['createTableWalker'](_0x291cb3,{'column':_0x2adffb,'includeAllSlots':!0x0});_0x19a6d0=Array[_0x401f('0x2e')](_0x43f9d3)['map'](_0x357b6e=>_0x357b6e[_0x401f('0x32')]);}_0x4487a9['model'][_0x401f('0x28')](_0x2845b9=>{_0x152501[_0x401f('0x4d')](_0x2845b9[_0x401f('0x9')](_0x5c8a3c),{'commandName':_0x3f51ee,'commandParams':[]},_0x19a6d0,_0x3f51ee);});});}_0x152501[_0x401f('0x3a')][_0x401f('0x36')](_0x478538=>{const {data:_0x6a2d69}=_0x478538;if(_0x6a2d69)return _0x401f('0x1d')==_0x6a2d69[_0x401f('0x0')]?{'type':'format','content':_0x5a8700(_0x1aa6e3,_0x401f('0x10'))}:void 0x0;}),_0x152501[_0x401f('0x3a')][_0x401f('0x36')](_0x1590f7=>{const {data:_0x77c516}=_0x1590f7;if(_0x77c516)return _0x401f('0x30')==_0x77c516['commandName']?{'type':_0x401f('0x4b'),'content':_0x5a8700(_0x1aa6e3,_0x401f('0x20'))}:_0x401f('0x35')==_0x77c516['commandName']?{'type':'format','content':_0x5a8700(_0x1aa6e3,_0x401f('0x3b'))}:void 0x0;});const _0x4a01de=_0x1ed8d4[_0x401f('0x40')]();for(const _0x5a96ee of[_0x401f('0x1e'),_0x401f('0x6'),_0x401f('0x2'),_0x401f('0xf')])_0x152501[_0x401f('0x22')][_0x401f('0x24')](_0x401f('0x52'),_0x5a96ee,_0x401f('0x19'),_0x4a01de);for(const _0x3c6388 of[_0x401f('0x30'),_0x401f('0x35')])_0x152501[_0x401f('0x22')][_0x401f('0x24')]('formatBlock',_0x3c6388,'accept',_0x4a01de);_0x152501[_0x401f('0x22')][_0x401f('0x24')]('formatBlock',_0x401f('0x1d'),'accept',_0x5563f4=>{_0x4487a9[_0x401f('0x11')][_0x401f('0x28')](_0x12edbc=>{const _0x5cf67f=Array['from'](_0x3a3255['getRanges']())['map'](_0x1690ef=>_0x2bb5fb[_0x401f('0x4a')](_0x1690ef));_0x12edbc[_0x401f('0x31')](_0x5563f4),_0x4487a9[_0x401f('0x27')][_0x401f('0x2c')](_0x401f('0x1d'))[_0x401f('0x5')](),_0x4487a9['execute'](_0x401f('0x1d'),{'forceDefaultExecution':!0x0});const _0x5607ac=_0x5cf67f[_0x401f('0x3f')](_0x5b0f23=>_0x401f('0x12')!=_0x5b0f23[_0x401f('0xc')]['rootName']);_0x5607ac['length']>0x0&&_0x12edbc[_0x401f('0x31')](_0x5607ac);for(const _0x341a51 of _0x5cf67f)_0x341a51['detach']();});});for(const _0x916ac5 of['mergeTableCellUp',_0x401f('0x2'),_0x401f('0xf'),'mergeTableCellRight']){const _0x48a592=_0x4487a9[_0x401f('0x27')][_0x401f('0x2c')](_0x916ac5);_0x48a592['on']('set:isEnabled',(_0x1f7e3b,_0x3b9d9d,_0x131c68)=>{if(_0x131c68){const _0x2419f6=_0x4487a9[_0x401f('0x11')]['document'][_0x401f('0x42')]['getFirstPosition']()[_0x401f('0x14')]()[_0x401f('0x18')](_0x1f5292=>_0x1f5292['is']('element',_0x401f('0x3c')));this['_areMergableCells'](_0x48a592[_0x401f('0x39')],_0x2419f6)||(_0x1f7e3b['return']=!0x1,_0x1f7e3b[_0x401f('0x51')]());}},{'priority':_0x401f('0x4')});}}[_0x401f('0x2a')](){const _0x2774bd=this['editor'][_0x401f('0x27')][_0x401f('0x2c')](_0x401f('0x1d')),_0x666873=this[_0x401f('0x16')][_0x401f('0x3')][_0x401f('0x2c')](_0x401f('0x3d'));if(!_0x2774bd[_0x401f('0x29')])return!0x1;const _0x540467=_0x666873[_0x401f('0xb')](this[_0x401f('0x16')][_0x401f('0x11')][_0x401f('0x26')]['selection']);for(const _0x487156 of _0x540467)for(const _0x496b79 of _0x540467)if(_0x487156!=_0x496b79&&!this[_0x401f('0x2f')](_0x487156,_0x496b79))return!0x1;return!0x0;}[_0x401f('0x2f')](_0xfb4459,_0x116145){const _0x52150f=this[_0x401f('0x16')][_0x401f('0x3')][_0x401f('0x2c')](_0x401f('0x13')),_0x33120f=this[_0x401f('0x16')][_0x401f('0x11')]['createRangeOn'](_0xfb4459),_0x297cb1=this[_0x401f('0x16')][_0x401f('0x11')][_0x401f('0x9')](_0x116145),_0x234c67=new Set(),_0x572b19=new Set();for(const _0x42d629 of _0x52150f[_0x401f('0x49')]())if((_0x401f('0x7')==_0x42d629[_0x401f('0x1')]||'deletion'==_0x42d629[_0x401f('0x1')]||_0x401f('0x1d')==_0x42d629[_0x401f('0x4e')])&&_0x42d629[_0x401f('0x15')])for(const _0x333452 of _0x42d629[_0x401f('0x1c')]())_0x333452[_0x401f('0x2d')](_0x33120f,!0x0)&&_0x234c67[_0x401f('0x8')](_0x42d629[_0x401f('0x1')]+':'+_0x42d629[_0x401f('0x1a')]['id']),_0x333452[_0x401f('0x2d')](_0x297cb1,!0x0)&&_0x572b19[_0x401f('0x8')](_0x42d629[_0x401f('0x1')]+':'+_0x42d629[_0x401f('0x1a')]['id']);if(_0x234c67[_0x401f('0x25')]!=_0x572b19[_0x401f('0x25')])return!0x1;for(const _0x49ff28 of _0x234c67)if(!_0x572b19[_0x401f('0x47')](_0x49ff28))return!0x1;return!0x0;}}
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;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e67=['document','start','registerElementLabel','plugins','isEqual','differ','_splitMarkerName','model','isTouching','isCollapsed','afterInit','suggestion','locale','get','getNearestSelectionRange','removeMarker','title-content','end','editor','has','forward','updateMarker','ELEMENT_TITLE','element','schema'];(function(_0x5f2d24,_0x1e67a9){const _0x1819ed=function(_0x5e6271){while(--_0x5e6271){_0x5f2d24['push'](_0x5f2d24['shift']());}};_0x1819ed(++_0x1e67a9);}(_0x1e67,0x1f4));const _0x1819=function(_0x5f2d24,_0x1e67a9){_0x5f2d24=_0x5f2d24-0x0;let _0x1819ed=_0x1e67[_0x5f2d24];return _0x1819ed;};import{Plugin as _0x585892}from'ckeditor5/src/core';import{getTranslation as _0x2bc551}from'../utils/common-translations';export default class mt extends _0x585892{[_0x1819('0xa')](){const _0x5b625a=this[_0x1819('0x12')];if(!_0x5b625a[_0x1819('0x3')][_0x1819('0x13')]('Title'))return;const _0x544f61=_0x5b625a[_0x1819('0x3')][_0x1819('0xd')]('TrackChangesEditing');_0x544f61['_descriptionFactory'][_0x1819('0x2')](_0x1819('0x10'),()=>_0x2bc551(_0x5b625a[_0x1819('0xc')],_0x1819('0x16'))),_0x5b625a['model'][_0x1819('0x0')]['registerPostFixer'](_0x25e12a=>{let _0x25cb05=!0x1;const _0x230e23=Array['from'](_0x5b625a[_0x1819('0x7')][_0x1819('0x0')][_0x1819('0x5')]['getChangedMarkers']());for(const {name:_0x1007c8,data:_0x43fa52}of _0x230e23){const {group:_0x1a41a7}=_0x544f61[_0x1819('0x6')](_0x1007c8);if(_0x1819('0xb')!==_0x1a41a7||!_0x43fa52['newRange'])continue;const _0x337c8e=_0x43fa52['newRange'],_0xe3b788=_0x337c8e[_0x1819('0x11')]['nodeBefore'];if(!_0xe3b788||!_0xe3b788['is'](_0x1819('0x17'),_0x1819('0x10')))continue;if(!_0x337c8e[_0x1819('0x1')][_0x1819('0x8')](_0x337c8e[_0x1819('0x11')]))continue;const _0x1874f4=_0x5b625a[_0x1819('0x7')][_0x1819('0x18')][_0x1819('0xe')](_0x337c8e[_0x1819('0x11')],_0x1819('0x14'));if(_0x1874f4&&_0x1874f4[_0x1819('0x9')]){const _0x220627=_0x25e12a['createRange'](_0x337c8e['start'],_0x1874f4[_0x1819('0x1')]);_0x220627[_0x1819('0x4')](_0x337c8e)||(_0x25e12a[_0x1819('0x15')](_0x1007c8,{'range':_0x220627}),_0x25cb05=!0x0);}_0x25cb05||(_0x25e12a[_0x1819('0xf')](_0x1007c8),_0x25cb05=!0x0);}return _0x25cb05;});}}
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;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18d7=['afterInit','plugins','enableCommand','editor','has','undo','redo'];(function(_0x21d8c3,_0x18d7b2){const _0x4338c5=function(_0x1da496){while(--_0x1da496){_0x21d8c3['push'](_0x21d8c3['shift']());}};_0x4338c5(++_0x18d7b2);}(_0x18d7,0xf2));const _0x4338=function(_0x21d8c3,_0x18d7b2){_0x21d8c3=_0x21d8c3-0x0;let _0x4338c5=_0x18d7[_0x21d8c3];return _0x4338c5;};import{Plugin as _0x486097}from'ckeditor5/src/core';export default class dt extends _0x486097{[_0x4338('0x3')](){const _0xbae86b=this[_0x4338('0x6')],_0x2c7de5=_0xbae86b['plugins']['get']('TrackChangesEditing');_0xbae86b[_0x4338('0x4')][_0x4338('0x0')]('UndoEditing')&&(_0x2c7de5['enableCommand'](_0x4338('0x1')),_0x2c7de5[_0x4338('0x5')](_0x4338('0x2')));}}
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')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2660=['model','writer','TrackChangesEditing','item','bindElementToMarker','push','ck-suggestion-marker-','markerRange','test','span','ck-suggestion-marker--active','getCustomProperty','isContent','mapper','elementEnd','toViewPosition','createUIElement','addClass','insert','nextSibling','listIndent','hasAttribute','schema','getItems','includes','isLimit','isAtEnd','getWalker','markerName','createRangeOn','getAttribute','previousPosition'];(function(_0x5d7d6b,_0x2660ef){const _0x34d986=function(_0x29078c){while(--_0x29078c){_0x5d7d6b['push'](_0x5d7d6b['shift']());}};_0x34d986(++_0x2660ef);}(_0x2660,0x1ed));const _0x34d9=function(_0x5d7d6b,_0x2660ef){_0x5d7d6b=_0x5d7d6b-0x0;let _0x34d986=_0x2660[_0x5d7d6b];return _0x34d986;};export function getRangesWithAttribute(_0x160a2b,_0x1fd0ef,_0x369fe1){const _0x23b2ac=[];for(const _0x4ae7af of _0x1fd0ef[_0x34d9('0xa')]())_0x4ae7af[_0x34d9('0x8')](_0x160a2b)&&_0x23b2ac[_0x34d9('0x18')](_0x369fe1[_0x34d9('0x10')](_0x4ae7af));return _0x23b2ac;}export function getElementsAffectedByListItemRename(_0x1ad7b9){const _0x4415b0=[];if(_0x1ad7b9['is']('element','listItem')){let _0x3b1db1=_0x1ad7b9[_0x34d9('0x6')];for(;_0x3b1db1&&_0x3b1db1['is']('element','listItem')&&_0x3b1db1[_0x34d9('0x11')](_0x34d9('0x7'))>0x0;)_0x4415b0['push'](_0x3b1db1),_0x3b1db1=_0x3b1db1[_0x34d9('0x6')];}return _0x4415b0;}export function downcastSplitMergeMarker(_0x1023d6,_0x33ff98,{showActiveMarker:_0x242b49=!0x0}={}){const _0x2be16f=_0x1023d6['plugins']['get'](_0x34d9('0x15'));return(_0x573832,_0x1a97ad,_0x10b6fb)=>{if(!_0x10b6fb['consumable'][_0x34d9('0x1b')](_0x1a97ad[_0x34d9('0x1a')],_0x573832['name']))return;const _0x9a4503=_0x1a97ad[_0x34d9('0x1a')][_0x34d9('0xe')](),_0x23d107=_0x1a97ad['markerRange']['start'],_0x328b55=_0x1023d6[_0x34d9('0x13')][_0x34d9('0x9')];let _0x9bd23f=null,_0x3c563d=null,_0x4fa8c2=!0x1,_0x4fd6ff=!0x1;for(const _0x3f5abc of _0x9a4503){const _0x51aab9=_0x3f5abc[_0x34d9('0x16')];_0x4fa8c2=_0x4fa8c2||_0x328b55[_0x34d9('0x1f')](_0x51aab9);const _0x3103a6=_0x10b6fb['mapper']['toViewElement'](_0x51aab9);if(_0x3103a6&&_0x3103a6[_0x34d9('0x1e')]('addHighlight'))return;_0x34d9('0x1')==_0x3f5abc['type']&&(_0x328b55['isBlock'](_0x51aab9)&&!_0x328b55[_0x34d9('0xc')](_0x51aab9)&&(_0x51aab9[_0x34d9('0x6')]||_0x23d107[_0x34d9('0xd')]?_0x9bd23f&&_0x9bd23f['parent']==_0x51aab9||(_0x9bd23f=_0x51aab9,_0x431347(_0x3f5abc[_0x34d9('0x12')]),_0x4fd6ff=!0x0):_0x3c563d=_0x3c563d||_0x3f5abc[_0x34d9('0x12')]));}function _0x431347(_0x5c2469){const _0xa3c812=_0x10b6fb[_0x34d9('0x14')][_0x34d9('0x3')](_0x34d9('0x1c'),{'class':_0x34d9('0x19')+_0x33ff98}),_0x271cfd=_0x10b6fb[_0x34d9('0x0')][_0x34d9('0x2')](_0x5c2469);_0x242b49&&_0x2be16f['activeMarkers'][_0x34d9('0xb')](_0x1a97ad[_0x34d9('0xf')])&&_0x10b6fb[_0x34d9('0x14')][_0x34d9('0x4')](_0x34d9('0x1d'),_0xa3c812),_0x10b6fb[_0x34d9('0x14')][_0x34d9('0x5')](_0x271cfd,_0xa3c812),_0x10b6fb[_0x34d9('0x0')][_0x34d9('0x17')](_0xa3c812,_0x1a97ad[_0x34d9('0xf')]);}_0x4fa8c2||_0x4fd6ff||!_0x3c563d||_0x431347(_0x3c563d);};}
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);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x142e=['onAttributesChange','removeMarkers','getRange','add','accept','getMultiRangeId','suggestion:','author','createdAt','hasComments','size','getFirstMarker','markers','getItems','getAllAdjacentSuggestions','setAttribute','nodeBefore','delete','isMultiRange','_markerNames','_onDiscard','clear','type','discard','subType','_model','addMarkerName','start','get','data','next','getMarkerNames','nodeAfter','decorate','reduce','toJSON','length','map','_saved','change','head','isIntersecting','filter','getRanges','substr','onAccept','from','removeAttribute','commentThread','getMarkers','removeMarker','attributes','previous','_onAttributesChange','set'];(function(_0x35811b,_0x142e11){const _0x5f2a9f=function(_0x190b99){while(--_0x190b99){_0x35811b['push'](_0x35811b['shift']());}};_0x5f2a9f(++_0x142e11);}(_0x142e,0x144));const _0x5f2a=function(_0x35811b,_0x142e11){_0x35811b=_0x35811b-0x0;let _0x5f2a9f=_0x142e[_0x35811b];return _0x5f2a9f;};import{Element as _0x2bd862}from'ckeditor5/src/engine';import{ObservableMixin as _0x144ead,mix as _0x5d33b9,uid as _0x25ac3b}from'ckeditor5/src/utils';import{cloneDeep as _0x8e3848,isEqual as _0xdce7ab,set as _0x1db1ac,unset as _0x5a17b2}from'lodash-es';export default class o{constructor(_0x2b71c7,_0x381067){this['id']=_0x381067['id'],this['type']=_0x381067[_0x5f2a('0x1c')],this[_0x5f2a('0x1e')]=_0x381067['subType']||null,this[_0x5f2a('0xd')]=_0x381067[_0x5f2a('0xd')],this['data']=null,this[_0x5f2a('0x1f')]=_0x2b71c7,this['_onAccept']=_0x381067[_0x5f2a('0x33')],this[_0x5f2a('0x1a')]=_0x381067['onDiscard'],this[_0x5f2a('0x4')]=_0x381067[_0x5f2a('0x6')],this[_0x5f2a('0x19')]=new Set(),this['set']('createdAt',null),this[_0x5f2a('0x5')]('attributes',_0x381067[_0x5f2a('0x2')]||{}),this['set'](_0x5f2a('0x3'),null),this['set'](_0x5f2a('0x24'),null),this[_0x5f2a('0x5')](_0x5f2a('0x36'),null),this[_0x5f2a('0x5')](_0x5f2a('0x2c'),!0x1),this[_0x5f2a('0x27')](_0x5f2a('0xa')),this[_0x5f2a('0x27')](_0x5f2a('0x1d'));}get['head'](){let _0x527fcc=this;for(;_0x527fcc['previous'];)_0x527fcc=_0x527fcc[_0x5f2a('0x3')];return _0x527fcc;}get[_0x5f2a('0xf')](){return!!this['commentThread']&&this[_0x5f2a('0x36')][_0x5f2a('0x2a')]>0x0;}get[_0x5f2a('0x18')](){if(0x0==this[_0x5f2a('0x19')][_0x5f2a('0x10')])return!0x1;return 0x6==Array[_0x5f2a('0x34')](this[_0x5f2a('0x19')])[0x0]['split'](':')[_0x5f2a('0x2a')];}get['isInContent'](){return null!==this['getFirstMarker']();}[_0x5f2a('0x20')](_0x51f28a){this[_0x5f2a('0x19')][_0x5f2a('0x9')](_0x51f28a);}[_0x5f2a('0x25')](){return Array['from'](this['_markerNames']);}[_0x5f2a('0x0')](){return this['getMarkerNames']()[_0x5f2a('0x2b')](_0x1b9a5e=>this[_0x5f2a('0x1f')][_0x5f2a('0x12')][_0x5f2a('0x22')](_0x1b9a5e))[_0x5f2a('0x30')](_0x39434d=>_0x39434d);}['getFirstMarker'](){return this[_0x5f2a('0x0')]()[0x0]||null;}[_0x5f2a('0x7')](){this[_0x5f2a('0x1f')][_0x5f2a('0x2d')](_0x2f1d72=>{for(const _0x7758e6 of this[_0x5f2a('0x0')]())_0x2f1d72[_0x5f2a('0x1')](_0x7758e6);}),this[_0x5f2a('0x19')][_0x5f2a('0x1b')]();}[_0x5f2a('0x1')](_0x5c5835){this[_0x5f2a('0x1f')][_0x5f2a('0x2d')](_0x4e36cc=>{_0x4e36cc[_0x5f2a('0x1')](_0x5c5835);}),this[_0x5f2a('0x19')][_0x5f2a('0x17')](_0x5c5835);}['addRange'](_0x563df0){const _0x3ab068=_0x5f2a('0xc')+this[_0x5f2a('0x1c')]+':'+this[_0x5f2a('0x1e')]+':'+this['id']+':'+this[_0x5f2a('0xd')]['id']+':'+o[_0x5f2a('0xb')]();this['addMarkerName'](_0x3ab068),this[_0x5f2a('0x1f')]['change'](_0x3b99fd=>{_0x3b99fd['addMarker'](_0x3ab068,{'range':_0x563df0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5786a9){for(const _0x4609c5 of this[_0x5f2a('0x31')]())if(_0x4609c5[_0x5f2a('0x2f')](_0x5786a9))return!0x0;return!0x1;}[_0x5f2a('0x31')](){return this['getMarkers']()[_0x5f2a('0x2b')](_0x1c7b9b=>_0x1c7b9b[_0x5f2a('0x8')]());}[_0x5f2a('0x13')](){return this[_0x5f2a('0x31')]()[_0x5f2a('0x28')]((_0x426c74,_0x58b1ad)=>[..._0x426c74,..._0x58b1ad[_0x5f2a('0x13')]()],[]);}['getFirstRange'](){return this[_0x5f2a('0x11')]()['getRange']();}['getContainedElement'](){const _0x3e45e4=this[_0x5f2a('0x31')]();if(0x1!=_0x3e45e4[_0x5f2a('0x2a')])return null;const _0x54e765=_0x3e45e4[0x0],_0x4f6c5d=_0x54e765[_0x5f2a('0x21')][_0x5f2a('0x26')],_0x64b0aa=_0x54e765['end'][_0x5f2a('0x16')];return _0x4f6c5d instanceof _0x2bd862?_0x4f6c5d!=_0x64b0aa?null:_0x4f6c5d:null;}[_0x5f2a('0xa')](){this['_onAccept'](this[_0x5f2a('0x31')](),this['data'],this[_0x5f2a('0x2')]),this[_0x5f2a('0x7')]();}[_0x5f2a('0x1d')](){this[_0x5f2a('0x1a')](this['getRanges'](),this[_0x5f2a('0x23')],this['attributes']),this[_0x5f2a('0x7')]();}[_0x5f2a('0x14')](){const _0x8c7642=[];let _0x350dde=this[_0x5f2a('0x2e')];for(;_0x350dde;)_0x8c7642['push'](_0x350dde),_0x350dde=_0x350dde[_0x5f2a('0x24')];return _0x8c7642;}[_0x5f2a('0x15')](_0x3c357b,_0x338798){const _0x4d0092=_0x8e3848(this[_0x5f2a('0x2')]);_0x1db1ac(_0x4d0092,_0x3c357b,_0x338798),_0xdce7ab(_0x4d0092,this[_0x5f2a('0x2')])||(this[_0x5f2a('0x2')]=_0x4d0092,this['_onAttributesChange'](_0x4d0092));}[_0x5f2a('0x35')](_0x14cb11){const _0x4836be=_0x8e3848(this[_0x5f2a('0x2')]);_0x5a17b2(_0x4836be,_0x14cb11),_0xdce7ab(_0x4836be,this['attributes'])||(this[_0x5f2a('0x2')]=_0x4836be,this[_0x5f2a('0x4')](this[_0x5f2a('0x2')]));}[_0x5f2a('0x29')](){return{'id':this['id'],'type':this[_0x5f2a('0x1e')]?this[_0x5f2a('0x1c')]+':'+this['subType']:this['type'],'authorId':this[_0x5f2a('0xd')]['id'],'createdAt':this[_0x5f2a('0xe')],'hasComments':this[_0x5f2a('0xf')],'data':this['data'],'attributes':this[_0x5f2a('0x2')]};}static[_0x5f2a('0xb')](){return _0x25ac3b()[_0x5f2a('0x32')](0x1,0x5);}}_0x5d33b9(o,_0x144ead);
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);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f3f=['*Insert:*\x20%0','addObject','isInContent','nextSibling','match','isEmpty','item','name','remove','*Split:*\x20%0','insertion','_customCallbacks','softBreak','add','isEqual','start','length','quantity','REPLACE_TEXT','textProxy','ELEMENT_SPACE','skip','removeEmptyContainer','*Remove:*\x20%0','elementStart','_itemLabels','addEmptyContainer','previousSibling','Container','get','pop','isObject','getItemLabel','replace','registerDescriptionCallback','indexOf','_locale','getFirstRange','getDescriptions','data','Object','text','type','*Merge:*\x20%0','checkChild','$1\x20$2','push','set','getWalker','elementEnd','deletion','addContainer','_addDescriptionItems','removeObject','_schema','EmptyContainer'];(function(_0x325615,_0x5f3f75){const _0x1dd738=function(_0x3637ac){while(--_0x3637ac){_0x325615['push'](_0x325615['shift']());}};_0x1dd738(++_0x5f3f75);}(_0x5f3f,0x137));const _0x1dd7=function(_0x325615,_0x5f3f75){_0x325615=_0x325615-0x0;let _0x1dd738=_0x5f3f[_0x325615];return _0x1dd738;};import{getTranslation as _0x2e56bf}from'./utils/common-translations';export default class l{constructor(_0xf331b4,_0x132eb8){this[_0x1dd7('0x24')]=[],this[_0x1dd7('0x32')]=new Map(),this[_0x1dd7('0x17')]=_0xf331b4,this[_0x1dd7('0x5')]=_0x132eb8;}[_0x1dd7('0x7')](_0x536d57){const _0xa51842=[];for(let _0x4f3b32=0x0;_0x4f3b32<_0x536d57[_0x1dd7('0x29')];_0x4f3b32++){const _0x1f10ff=_0x536d57[_0x4f3b32];if(!_0x1f10ff[_0x1dd7('0x1b')])continue;let _0x42df0b=!0x1;for(const _0x1775dc of this[_0x1dd7('0x24')]){const _0x59ce02=_0x1775dc(_0x1f10ff);if(_0x59ce02){_0x59ce02[_0x1dd7('0xb')]&&_0xa51842['push'](_0x59ce02),_0x42df0b=!0x0;break;}}if(!_0x42df0b){this[_0x1dd7('0x15')](_0xa51842,_0x1f10ff);const _0x53ee10=_0x536d57[_0x4f3b32+0x1];if(_0x53ee10&&!_0x1f10ff[_0x1dd7('0x6')]()['end'][_0x1dd7('0x27')](_0x53ee10['getFirstRange']()[_0x1dd7('0x28')])){const _0x340a5a=_0xa51842[_0xa51842['length']-0x1],_0x17628d=_0x1dd7('0x23')==_0x1f10ff[_0x1dd7('0xb')]?_0x1dd7('0x26'):_0x1dd7('0x21');_0x340a5a&&'text'==_0x340a5a['type']&&(_0x340a5a[_0x17628d]+='\x0a');}}}return this['_resolveDescriptionItems'](_0xa51842);}[_0x1dd7('0x3')](_0x372f93){this['_customCallbacks'][_0x1dd7('0xf')](_0x372f93);}['registerElementLabel'](_0x20277c,_0x34c917){this[_0x1dd7('0x32')][_0x1dd7('0x10')](_0x20277c,_0x34c917);}[_0x1dd7('0x1')](_0x158d84,_0x1833a5=0x1){const _0x44b46b=this[_0x1dd7('0x32')][_0x1dd7('0x36')](_0x158d84)||_0x158d84;return'function'==typeof _0x44b46b?_0x44b46b(_0x1833a5):0x1!==_0x1833a5?_0x1833a5+'\x20'+_0x44b46b+'s':''+_0x44b46b;}[_0x1dd7('0x15')](_0x6f7ab3,_0x9c9e66){const _0x355b32=_0x9c9e66['getFirstRange']()[_0x1dd7('0x11')](),_0xecf38=_0x1dd7('0x23')==_0x9c9e66[_0x1dd7('0xb')]?_0x1dd7('0x26'):_0x1dd7('0x21');for(const _0x46dfb3 of _0x355b32){const _0x532fef=_0x46dfb3[_0x1dd7('0x1f')],_0x4761fa=_0x6f7ab3[_0x6f7ab3[_0x1dd7('0x29')]-0x1];if(_0x532fef['is'](_0x1dd7('0x2c')))_0x4761fa&&_0x4761fa[_0x1dd7('0xb')][_0x1dd7('0x4')]('Container')>-0x1&&_0x6f7ab3['pop'](),_0x4761fa&&_0x1dd7('0xa')==_0x4761fa[_0x1dd7('0xb')]?_0x4761fa[_0xecf38]+=_0x532fef['data']:_0x6f7ab3[_0x1dd7('0xf')]({'type':_0x1dd7('0xa'),'add':_0x1dd7('0x26')==_0xecf38?_0x532fef[_0x1dd7('0x8')]:'','remove':'remove'==_0xecf38?_0x532fef[_0x1dd7('0x8')]:''});else{if(this[_0x1dd7('0x17')]['isObject'](_0x532fef)){if(_0x4761fa&&_0x4761fa[_0x1dd7('0xb')][_0x1dd7('0x4')](_0x1dd7('0x35'))>-0x1&&_0x6f7ab3[_0x1dd7('0x37')](),_0x1dd7('0x12')==_0x46dfb3[_0x1dd7('0xb')])continue;_0x4761fa&&_0x4761fa['type']==_0xecf38+_0x1dd7('0x9')&&_0x4761fa[_0x1dd7('0x20')]==_0x532fef[_0x1dd7('0x20')]?_0x4761fa[_0x1dd7('0x2a')]++:_0x6f7ab3[_0x1dd7('0xf')]({'type':_0xecf38+_0x1dd7('0x9'),'name':_0x532fef[_0x1dd7('0x20')],'quantity':0x1}),_0x355b32[_0x1dd7('0x2e')](_0x56c718=>!('elementEnd'==_0x56c718[_0x1dd7('0xb')]&&_0x56c718[_0x1dd7('0x1f')]==_0x532fef));}else{if(this[_0x1dd7('0x17')][_0x1dd7('0xd')](_0x532fef,'$text')||_0x532fef['is']('element',_0x1dd7('0x25'))){if(_0x1dd7('0x26')==_0xecf38&&_0x1dd7('0x31')==_0x46dfb3['type']||_0x1dd7('0x21')==_0xecf38&&_0x1dd7('0x12')==_0x46dfb3[_0x1dd7('0xb')])continue;if(_0x4761fa&&-0x1==_0x4761fa[_0x1dd7('0xb')]['indexOf'](_0x1dd7('0x35'))){_0x1dd7('0xa')==_0x4761fa[_0x1dd7('0xb')]&&(_0x4761fa[_0xecf38]+='\x0a');continue;}let _0x3d5a4a;if(_0x3d5a4a=_0x1dd7('0x26')==_0xecf38?_0x532fef[_0x1dd7('0x1c')]&&!this[_0x1dd7('0x17')][_0x1dd7('0x0')](_0x532fef[_0x1dd7('0x1c')])?_0x532fef[_0x1dd7('0x1c')]:null:_0x532fef[_0x1dd7('0x34')]&&!this[_0x1dd7('0x17')][_0x1dd7('0x0')](_0x532fef[_0x1dd7('0x34')])?_0x532fef[_0x1dd7('0x34')]:null,_0x532fef[_0x1dd7('0x1e')]||_0x3d5a4a&&_0x3d5a4a[_0x1dd7('0x1e')]){const _0x5c2825=_0x3d5a4a&&_0x3d5a4a[_0x1dd7('0x1e')]?_0x3d5a4a[_0x1dd7('0x20')]:_0x532fef[_0x1dd7('0x20')];_0x4761fa&&_0x4761fa[_0x1dd7('0xb')]==_0xecf38+'EmptyContainer'&&_0x4761fa['name']==_0x5c2825?_0x4761fa[_0x1dd7('0x2a')]++:_0x6f7ab3[_0x1dd7('0xf')]({'type':_0xecf38+_0x1dd7('0x18'),'name':_0x5c2825,'quantity':0x1});}else _0x6f7ab3[_0x1dd7('0xf')]({'type':_0xecf38+_0x1dd7('0x35'),'name':_0x532fef[_0x1dd7('0x20')]});}}}}}['_resolveDescriptionItems'](_0x2fc80e){const _0x17fed5=this[_0x1dd7('0x5')],_0x4e747b=[];for(const _0x37a290 of _0x2fc80e){switch(_0x37a290[_0x1dd7('0xb')]){case _0x1dd7('0xa'):if(_0x37a290[_0x1dd7('0x26')]=_0x37a290['add']['replace'](/(\S)\u000A+(\S)/g,_0x1dd7('0xe'))[_0x1dd7('0x2')](/\u000A/g,''),_0x37a290['remove']=_0x37a290[_0x1dd7('0x21')][_0x1dd7('0x2')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x1dd7('0x2')](/\u000A/g,''),''!=_0x37a290[_0x1dd7('0x26')]&&''!=_0x37a290[_0x1dd7('0x21')]){_0x4e747b[_0x1dd7('0xf')]({'type':'replace','content':_0x2e56bf(_0x17fed5,_0x1dd7('0x2b'),['\x22'+_0x37a290['remove']+'\x22','\x22'+_0x37a290[_0x1dd7('0x26')]+'\x22'])});continue;}if(null!=_0x37a290[_0x1dd7('0x26')][_0x1dd7('0x1d')](/^ +$/)){_0x4e747b[_0x1dd7('0xf')]({'type':'insertion','content':_0x2e56bf(_0x17fed5,_0x1dd7('0x19'),_0x2e56bf(_0x17fed5,'ELEMENT_SPACE',_0x37a290['add'][_0x1dd7('0x29')]))});continue;}if(null!=_0x37a290[_0x1dd7('0x21')][_0x1dd7('0x1d')](/^ +$/)){_0x4e747b[_0x1dd7('0xf')]({'type':'deletion','content':_0x2e56bf(_0x17fed5,_0x1dd7('0x30'),_0x2e56bf(_0x17fed5,_0x1dd7('0x2d'),_0x37a290[_0x1dd7('0x21')]['length']))});continue;}if(''!=_0x37a290[_0x1dd7('0x26')]){_0x4e747b['push']({'type':_0x1dd7('0x23'),'content':_0x2e56bf(_0x17fed5,_0x1dd7('0x19'),'\x22'+_0x37a290[_0x1dd7('0x26')]+'\x22')});continue;}_0x4e747b[_0x1dd7('0xf')]({'type':_0x1dd7('0x13'),'content':_0x2e56bf(_0x17fed5,_0x1dd7('0x30'),'\x22'+_0x37a290[_0x1dd7('0x21')]+'\x22')});continue;case _0x1dd7('0x33'):case _0x1dd7('0x1a'):_0x4e747b[_0x1dd7('0xf')]({'type':_0x1dd7('0x23'),'content':_0x2e56bf(_0x17fed5,_0x1dd7('0x19'),this[_0x1dd7('0x1')](_0x37a290[_0x1dd7('0x20')],_0x37a290[_0x1dd7('0x2a')]))});continue;case _0x1dd7('0x2f'):case _0x1dd7('0x16'):_0x4e747b[_0x1dd7('0xf')]({'type':_0x1dd7('0x13'),'content':_0x2e56bf(_0x17fed5,_0x1dd7('0x30'),this[_0x1dd7('0x1')](_0x37a290[_0x1dd7('0x20')],_0x37a290['quantity']))});continue;case _0x1dd7('0x14'):_0x4e747b[_0x1dd7('0xf')]({'type':_0x1dd7('0x23'),'content':_0x2e56bf(_0x17fed5,_0x1dd7('0x22'),this['getItemLabel'](_0x37a290[_0x1dd7('0x20')],_0x37a290[_0x1dd7('0x2a')]))});continue;case'removeContainer':_0x4e747b[_0x1dd7('0xf')]({'type':_0x1dd7('0x13'),'content':_0x2e56bf(_0x17fed5,_0x1dd7('0xc'),this['getItemLabel'](_0x37a290[_0x1dd7('0x20')],_0x37a290['quantity']))});continue;}_0x4e747b[_0x1dd7('0xf')](_0x37a290);}return _0x4e747b;}}
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;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4011=['getSuggestions','TrackChanges','editor','plugins','getSuggestion','adapter','get','addSuggestion','addSuggestionData'];(function(_0x3de0dd,_0x4011ff){var _0x2cf131=function(_0x22532f){while(--_0x22532f){_0x3de0dd['push'](_0x3de0dd['shift']());}};_0x2cf131(++_0x4011ff);}(_0x4011,0x168));var _0x2cf1=function(_0x3de0dd,_0x4011ff){_0x3de0dd=_0x3de0dd-0x0;var _0x2cf131=_0x4011[_0x3de0dd];return _0x2cf131;};import{Plugin as _0x2850f5}from'ckeditor5/src/core';import _0x117ed2 from'./trackchangesui';import _0x28fd84 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x2850f5{static get['requires'](){return[_0x28fd84,_0x117ed2,'Comments'];}static get['pluginName'](){return _0x2cf1('0x1');}set[_0x2cf1('0x5')](_0x5a2c73){this[_0x2cf1('0x2')][_0x2cf1('0x3')][_0x2cf1('0x6')](_0x28fd84)[_0x2cf1('0x5')]=_0x5a2c73;}get[_0x2cf1('0x5')](){return this['editor']['plugins'][_0x2cf1('0x6')](_0x28fd84)[_0x2cf1('0x5')];}[_0x2cf1('0x7')](_0x575d34){return this[_0x2cf1('0x2')]['plugins'][_0x2cf1('0x6')](_0x28fd84)[_0x2cf1('0x8')](_0x575d34);}[_0x2cf1('0x0')](_0x28326d){return this[_0x2cf1('0x2')][_0x2cf1('0x3')]['get'](_0x28fd84)[_0x2cf1('0x0')](_0x28326d);}[_0x2cf1('0x4')](_0x2175af){return this[_0x2cf1('0x2')][_0x2cf1('0x3')][_0x2cf1('0x6')](_0x28fd84)['getSuggestion'](_0x2175af);}}
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);}}