@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231130.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 (68) hide show
  1. package/CHANGELOG.md +15 -15
  2. package/README.md +1 -1
  3. package/build/track-changes.js +1 -1
  4. package/package.json +3 -3
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.js +1 -1
  7. package/src/commands/executeonallsuggestionscommand.js +1 -1
  8. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  9. package/src/commands/trackchangescommand.js +1 -1
  10. package/src/integrations/aiassistant.js +1 -1
  11. package/src/integrations/alignment.js +1 -1
  12. package/src/integrations/basicstyles.js +1 -1
  13. package/src/integrations/blockquote.js +1 -1
  14. package/src/integrations/ckbox.js +1 -1
  15. package/src/integrations/codeblock.js +1 -1
  16. package/src/integrations/comments.js +1 -1
  17. package/src/integrations/deletecommand.js +1 -1
  18. package/src/integrations/documentlist.js +1 -1
  19. package/src/integrations/documentlistproperties.js +1 -1
  20. package/src/integrations/entercommand.js +1 -1
  21. package/src/integrations/findandreplace.js +1 -1
  22. package/src/integrations/font.js +1 -1
  23. package/src/integrations/formatpainter.js +1 -1
  24. package/src/integrations/heading.js +1 -1
  25. package/src/integrations/highlight.js +1 -1
  26. package/src/integrations/horizontalline.js +1 -1
  27. package/src/integrations/htmlembed.js +1 -1
  28. package/src/integrations/image.js +1 -1
  29. package/src/integrations/imagereplace.js +1 -1
  30. package/src/integrations/imagestyle.js +1 -1
  31. package/src/integrations/importword.js +1 -1
  32. package/src/integrations/indent.js +1 -1
  33. package/src/integrations/inputcommand.js +1 -1
  34. package/src/integrations/link.js +1 -1
  35. package/src/integrations/list.js +1 -1
  36. package/src/integrations/listproperties.js +1 -1
  37. package/src/integrations/mediaembed.js +1 -1
  38. package/src/integrations/mention.js +1 -1
  39. package/src/integrations/pagebreak.js +1 -1
  40. package/src/integrations/paragraph.js +1 -1
  41. package/src/integrations/removeformat.js +1 -1
  42. package/src/integrations/restrictededitingmode.js +1 -1
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.js +1 -1
  48. package/src/integrations/tableclipboard.js +1 -1
  49. package/src/integrations/tablecolumnresize.js +1 -1
  50. package/src/integrations/tableheadings.js +1 -1
  51. package/src/integrations/tablemergesplit.js +1 -1
  52. package/src/integrations/tableofcontents.js +1 -1
  53. package/src/integrations/tableproperties.js +1 -1
  54. package/src/integrations/template.js +1 -1
  55. package/src/integrations/title.js +1 -1
  56. package/src/integrations/undo.js +1 -1
  57. package/src/integrations/utils.js +1 -1
  58. package/src/suggestion.js +1 -1
  59. package/src/suggestiondescriptionfactory.js +1 -1
  60. package/src/trackchanges.js +1 -1
  61. package/src/trackchangesdata.js +1 -1
  62. package/src/trackchangesediting.js +1 -1
  63. package/src/trackchangesui.js +1 -1
  64. package/src/ui/suggestioncontroller.js +1 -1
  65. package/src/ui/view/basesuggestionthreadview.js +1 -1
  66. package/src/ui/view/suggestionthreadview.js +1 -1
  67. package/src/utils/common-translations.js +1 -1
  68. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4036=['author','add','setAttributes','discard','getRows','getItems','type','TableClipboard','registerDescriptionCallback','cell','ck-suggestion-marker--active','paragraph','isEqual','*Replace\x20table\x20cells*','createRangeIn','markerAttributes','registerCustomCallback','forceDefaultExecution','tableCellSuggestion','fill','previous','subType','createRange','nodeAfter','_tablePostFixingSubtypes','tablePaste','getAllAdjacentSuggestions','return','map','Users','documentSelection','tableCellBackgroundColor','_suggestionFactory','newRange','from','markMultiRangeInsertion','deletionRanges','TrackChangesEditing','schema','suggestionUnloaded','requires','rows','_getCoordsForCells','getRanges','tableCell','editor','getColumns','tablePasteCell','removeMarkers','attributes','join','getColumnIndexes','value','afterInit','some','filter','tableCellBorderStyle','low','keys','for','tablePasteChainId','getSelectionAffectedTableCells','last','end','batch','isInContent','startsWith','remove','unwrap','oldRange','trackChanges','tablePasteRow','_createdBatches','getSuggestionCallback','move','stop','_splitMarkerName','differ','markMultiRangeDeletion','getChangedMarkers','tablePasteColumn','view','conversion','ck-suggestion-marker-insertion','insertContent','start','cells','insertRows','position','createRangeOn','insertion','get','columns','getAttributes','getContainedElement','getRange','getTableIfOnlyTableInContent','rootName','insert','find','getChild','includes','removeRows','getMarkers','document','register','high','fromEntries','columnInsertionIndexes','element','createTableWalker','createElement','first','deletion','locale','row','model','removeMarker','has','column','table','formatBlock','$graveyard','length','markerName','markerToHighlight','commands','elementToElement','ck-suggestion-marker','removeColumns','next','change','editing','suggestion-td','entries','getChanges','registerPostFixer','suggestion:formatBlock:tablePasteCell','clipboardOutput','isEmpty','markers','containsRange','suggestion','plugins','endColumn','name','findAncestor','accept','getSuggestions','push','markMultiRangeBlockFormat','getChildren'];(function(_0x5e07e8,_0x40366b){const _0x482ed2=function(_0x531d8a){while(--_0x531d8a){_0x5e07e8['push'](_0x5e07e8['shift']());}};_0x482ed2(++_0x40366b);}(_0x4036,0x1ef));const _0x482e=function(_0x5e07e8,_0x40366b){_0x5e07e8=_0x5e07e8-0x0;let _0x482ed2=_0x4036[_0x5e07e8];return _0x482ed2;};import{getTranslation as _0x32d509}from'../utils/common-translations';import{Plugin as _0x56a1a1}from'ckeditor5/src/core';import{uid as _0x160968,priorities as _0x51ed32}from'ckeditor5/src/utils';import _0x33fb1e from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x482e('0x11'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x482e('0x90'),'tableCellPadding'],ae=Object[_0x482e('0x44')](le[_0x482e('0x8d')](_0x536a23=>[_0x536a23,null]));export default class At extends _0x56a1a1{static get[_0x482e('0x1')](){return[_0x33fb1e];}[_0x482e('0xe')](){const _0x9286c4=this[_0x482e('0x6')];if(!_0x9286c4[_0x482e('0x68')][_0x482e('0x4f')](_0x482e('0x78')))return;const _0x40201c=_0x9286c4['plugins'][_0x482e('0x34')](_0x482e('0x96')),_0x9cc208=_0x9286c4['plugins'][_0x482e('0x34')]('TableUtils'),_0x14ab4b=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x33fb1e),_0x4389ee=_0x9286c4['plugins'][_0x482e('0x34')](_0x482e('0x78'));_0x14ab4b[_0x482e('0x89')][_0x482e('0x6e')]('tablePasteRow','tablePasteColumn'),_0x9286c4[_0x482e('0x4d')][_0x482e('0x97')][_0x482e('0x42')](_0x482e('0x83'),{'allowIn':_0x482e('0x5'),'allowContentOf':_0x482e('0x5'),'isLimit':!0x0}),_0x9286c4[_0x482e('0x2b')][_0x482e('0x58')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x191931=null;_0x9286c4['model']['on'](_0x482e('0x2d'),(_0x199174,_0x5b1ca2)=>{const [_0x551384,_0xe5f8f0]=_0x5b1ca2,_0x650ce9=_0x5b1ca2[_0x5b1ca2[_0x482e('0x54')]-0x1];_0x650ce9&&_0x650ce9[_0x482e('0x82')]||_0x40201c['_isForcedDefaultExecutionBlock']||this[_0x482e('0x6')][_0x482e('0x57')][_0x482e('0x34')](_0x482e('0x1f'))[_0x482e('0xd')]&&function(_0x14ba55,_0x350266,_0x1bb1b2,_0x34a596,_0x1aca8b){if(_0x350266&&!_0x350266['is'](_0x482e('0x8f')))return!0x1;const _0x22570f=_0x1aca8b[_0x482e('0x39')](_0x14ba55,_0x1bb1b2);if(!_0x22570f||!fe(_0x22570f,void 0x0,_0x34a596))return!0x1;const _0x451620=_0x34a596[_0x482e('0x16')](_0x1bb1b2[_0x482e('0x41')]['selection']);if(!_0x451620['length'])return!0x1;const _0x4ddb11=_0x451620[0x0][_0x482e('0x6b')](_0x482e('0x51')),_0x5c2e39=_0x34a596['getRowIndexes'](_0x451620),_0x584f0c=_0x34a596[_0x482e('0xc')](_0x451620),_0x4f6933={'startRow':_0x5c2e39[_0x482e('0x49')],'endRow':_0x5c2e39[_0x482e('0x17')],'startColumn':_0x584f0c[_0x482e('0x49')],'endColumn':_0x584f0c[_0x482e('0x17')]};return 0x1==_0x451620[_0x482e('0x54')]&&(_0x4f6933['endRow']+=_0x34a596[_0x482e('0x75')](_0x22570f)-0x1,_0x4f6933[_0x482e('0x69')]+=_0x34a596[_0x482e('0x7')](_0x22570f)-0x1),fe(_0x4ddb11,_0x4f6933,_0x34a596);}(_0x551384,_0xe5f8f0,_0x9286c4['model'],_0x9cc208,_0x4389ee)&&(_0x199174[_0x482e('0x24')](),_0x191931={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9286c4[_0x482e('0x4d')][_0x482e('0x5c')](()=>{_0x9286c4[_0x482e('0x4d')][_0x482e('0x2d')](_0x5b1ca2[0x0],_0x5b1ca2[0x1],_0x5b1ca2[0x2],{'forceDefaultExecution':!0x0});const _0x41cc1d=_0x160968(),{rowInsertionRanges:_0x44da5b,columnInsertionRanges:_0x25ca39,insertionRanges:_0x1061a9,deletionRanges:_0x166916,cells:_0x51a12c}=_0x191931;_0x44da5b[_0x482e('0x54')]&&_0x40201c[_0x482e('0x94')](_0x44da5b,_0x482e('0x20'),{'tablePasteChainId':_0x41cc1d}),_0x25ca39[_0x482e('0x54')]&&_0x40201c['markMultiRangeInsertion'](_0x25ca39,_0x482e('0x29'),{'tablePasteChainId':_0x41cc1d}),_0x1061a9[_0x482e('0x54')]&&_0x40201c[_0x482e('0x94')](_0x1061a9,'tablePaste',{'tablePasteChainId':_0x41cc1d,'skipNestingCheck':!0x0}),_0x166916[_0x482e('0x54')]&&_0x40201c[_0x482e('0x27')](_0x166916,_0x482e('0x8a'),{'tablePasteChainId':_0x41cc1d,'skipNestingCheck':!0x0});const _0x35b4e0=_0x40201c[_0x482e('0x6f')](_0x51a12c[_0x482e('0x8d')](({element:_0xff7b6e})=>_0xff7b6e),{'formatGroupId':_0x160968()},[],_0x482e('0x8'),{'tablePasteChainId':_0x41cc1d});if(_0x35b4e0){const _0x20b1da=_0x35b4e0[_0x482e('0x40')](),_0x11241e=[];for(const {element:_0x2047fc,attributes:_0x51cf52}of _0x51a12c){if(!_0x51cf52)continue;const _0x1012a4=_0x9286c4[_0x482e('0x4d')]['createRangeOn'](_0x2047fc),_0x345ffe=_0x20b1da[_0x482e('0x3c')](_0x5ecc29=>_0x5ecc29['getRange']()['isEqual'](_0x1012a4));_0x345ffe&&_0x11241e[_0x482e('0x6e')]([_0x345ffe[_0x482e('0x6a')],_0x51cf52]);}_0x11241e[_0x482e('0x54')]&&_0x35b4e0['setAttribute'](_0x482e('0x80'),Object[_0x482e('0x44')](_0x11241e));}_0x191931=null;}));},{'priority':_0x51ed32[_0x482e('0x43')]+0xa}),_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x78'))['on']('_replaceTableSlotCell',(_0xb7cef7,_0x359eb9)=>{const [_0x262fca,_0x29f015,,_0xcea234]=_0x359eb9;if(!_0x191931)return;_0xb7cef7[_0x482e('0x24')]();const _0x3c8a16=_0x262fca[_0x482e('0x7a')],_0x52c340=_0x29f015,_0x25803c=ce(_0x3c8a16),_0x25132b=ce(_0x52c340);_0xb7cef7[_0x482e('0x8c')]=_0x3c8a16;let _0x1811a4=null,_0x3627d1=null;if(_0x25132b||_0x25803c){if(_0x25803c&&!_0x25132b){_0xcea234[_0x482e('0x1c')](_0x3c8a16['getChild'](0x0));for(const _0x1c31a6 of Array['from'](_0x52c340[_0x482e('0x70')]()))_0xcea234[_0x482e('0x3b')](_0x1c31a6,_0x3c8a16,'end');const _0x18f504=_0x191931['rowInsertionIndexes'][_0x482e('0x3e')](_0x262fca[_0x482e('0x4c')]),_0x4f70cf=_0x191931[_0x482e('0x45')][_0x482e('0x3e')](_0x262fca[_0x482e('0x50')]);_0x18f504||_0x4f70cf||(_0x1811a4=_0xcea234[_0x482e('0x7f')](_0x3c8a16));}else _0x25132b&&!_0x25803c&&(_0x3627d1=_0xcea234['createRangeIn'](_0x3c8a16));}else{const _0x90da8d=_0xcea234[_0x482e('0x48')](_0x482e('0x83')),_0x463104=_0xcea234[_0x482e('0x48')](_0x482e('0x83'));_0xcea234['wrap'](_0xcea234[_0x482e('0x7f')](_0x3c8a16),_0x463104),_0xcea234[_0x482e('0x3b')](_0x90da8d,_0x3c8a16,0x0);for(const _0x181d0e of Array[_0x482e('0x93')](_0x52c340[_0x482e('0x70')]()))_0xcea234[_0x482e('0x3b')](_0x181d0e,_0x90da8d,_0x482e('0x18'));_0x1811a4=_0xcea234[_0x482e('0x32')](_0x90da8d),_0x3627d1=_0xcea234[_0x482e('0x32')](_0x463104);}const _0x1c0078=Array[_0x482e('0x93')](_0x52c340[_0x482e('0x36')]())[_0x482e('0x10')](([_0x31250e])=>le['includes'](_0x31250e));_0x191931[_0x482e('0x2f')]['push']({'element':_0x3c8a16,'attributes':_0x1c0078['length']?Object['fromEntries'](_0x1c0078):null}),_0x1811a4&&_0x191931['insertionRanges'][_0x482e('0x6e')](_0x1811a4),_0x3627d1&&_0x191931[_0x482e('0x95')]['push'](_0x3627d1);},{'priority':_0x482e('0x43')}),_0x9cc208['on']('insertColumns',(_0x28c78b,_0x13cccc)=>{const [_0x26d908,_0x32660c={}]=_0x13cccc;if(!_0x191931)return;const _0x4a92dd=_0x32660c['at']||0x0,_0x4feda0=_0x32660c[_0x482e('0x35')]||0x1;_0x191931[_0x482e('0x45')]=new Array(_0x4feda0)['fill'](_0x4a92dd)[_0x482e('0x8d')]((_0x56193d,_0x4b7030)=>_0x56193d+_0x4b7030);for(const {cell:_0x1c6e91}of _0x9cc208[_0x482e('0x47')](_0x26d908,{'startColumn':_0x4a92dd,'endColumn':_0x4a92dd+_0x4feda0-0x1}))_0x191931['columnInsertionRanges']['push'](_0x9286c4[_0x482e('0x4d')][_0x482e('0x32')](_0x1c6e91));},{'priority':_0x482e('0x12')}),_0x9cc208['on'](_0x482e('0x30'),(_0x2a2bf7,_0x1355bc)=>{const [_0x524108,_0x15a61e={}]=_0x1355bc;if(!_0x191931)return;const _0x88957e=_0x15a61e['at']||0x0,_0x22d66e=_0x15a61e[_0x482e('0x2')]||0x1;_0x191931['rowInsertionIndexes']=new Array(_0x22d66e)[_0x482e('0x84')](_0x88957e)[_0x482e('0x8d')]((_0x5e1c86,_0x41bb06)=>_0x5e1c86+_0x41bb06);for(const {cell:_0x1eb858}of _0x9cc208['createTableWalker'](_0x524108,{'startRow':_0x88957e,'endRow':_0x88957e+_0x22d66e-0x1}))_0x191931['rowInsertionRanges']['push'](_0x9286c4[_0x482e('0x4d')]['createRangeOn'](_0x1eb858));},{'priority':_0x482e('0x12')}),_0x40201c['_descriptionFactory'][_0x482e('0x79')](_0x5b4aac=>{if(_0x5b4aac[_0x482e('0x86')]&&_0x5b4aac[_0x482e('0x86')][_0x482e('0x1b')]('tablePaste'))return _0x5b4aac[_0x482e('0x85')]?{}:{'type':_0x482e('0x33'),'content':_0x32d509(_0x9286c4[_0x482e('0x4b')],_0x482e('0x7e'))};});const _0x1a519c=()=>!0x1;for(const _0x4be70c of['tablePaste','tablePasteColumn',_0x482e('0x20'),_0x482e('0x8')])_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x33'),_0x4be70c,_0x482e('0xb'),_0x1a519c),_0x40201c['_suggestionFactory'][_0x482e('0x81')](_0x482e('0x4a'),_0x4be70c,_0x482e('0xb'),_0x1a519c),_0x40201c['_suggestionFactory']['registerCustomCallback'](_0x482e('0x52'),_0x4be70c,_0x482e('0xb'),_0x1a519c);_0x40201c[_0x482e('0x91')][_0x482e('0x81')](_0x482e('0x52'),_0x482e('0x8'),_0x482e('0x74'),_0x1a519c),_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x52'),'tablePasteCell','accept',(_0x3bf10c,_0x28ccd5,_0x4dddab)=>{const _0x4bb3d1=_0x3bf10c['map'](_0xf312c1=>_0xf312c1[_0x482e('0x37')]())[_0x482e('0x10')](_0x5dde9a=>_0x5dde9a),_0x519b8d=new Map(_0x4bb3d1[_0x482e('0x8d')](_0x281c8a=>[_0x281c8a,null]));if(_0x191931)for(const {element:_0x46490d,attributes:_0x15a6a1}of _0x191931[_0x482e('0x2f')])_0x15a6a1&&_0x519b8d['set'](_0x46490d,_0x15a6a1);else{if(_0x4dddab&&_0x4dddab[_0x482e('0x80')])for(const [_0x49d96b,_0x5769e9]of Object[_0x482e('0x5f')](_0x4dddab[_0x482e('0x80')])){const _0x43dde1=_0x9286c4['model'][_0x482e('0x65')][_0x482e('0x34')](_0x49d96b),_0x26ce16=_0x43dde1?_0x43dde1[_0x482e('0x38')]()[_0x482e('0x37')]():null;_0x26ce16&&_0x519b8d['set'](_0x26ce16,_0x5769e9);}}_0x9286c4['model']['change'](_0x56c11e=>{for(const [_0x4e787b,_0x44eeb8]of _0x519b8d)_0x56c11e[_0x482e('0x73')]({...ae,..._0x44eeb8},_0x4e787b);});});const _0x2adbe0=(_0x2d92db,_0x11869c)=>{_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x2d92db,'tablePaste',_0x11869c,(_0x444992,_0x2098f8,_0x155914)=>{_0x9286c4['model'][_0x482e('0x5c')](_0x2e8fe3=>{const _0x5f209d=[];for(const _0x4d3ab5 of _0x444992){const _0x5f2c3f=_0x4d3ab5[_0x482e('0x2e')][_0x482e('0x88')];_0x5f2c3f['is'](_0x482e('0x46'),_0x482e('0x83'))&&_0x5f209d[_0x482e('0x6e')](_0x5f2c3f);}_0x40201c[_0x482e('0x91')][_0x482e('0x22')](_0x2d92db,null,_0x11869c)(_0x444992,_0x2098f8,_0x155914);for(const _0x2ff10e of _0x5f209d)_0x482e('0x53')!=_0x2ff10e['root'][_0x482e('0x3a')]&&_0x2e8fe3[_0x482e('0x1d')](_0x2ff10e);});});};_0x2adbe0(_0x482e('0x33'),_0x482e('0x6c')),_0x2adbe0(_0x482e('0x33'),'discard'),_0x2adbe0(_0x482e('0x4a'),_0x482e('0x6c')),_0x2adbe0(_0x482e('0x4a'),_0x482e('0x74')),_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x33'),'tablePasteRow',_0x482e('0x74'),_0x5dfd80=>{const _0x3e7645=_0x5dfd80[_0x482e('0x8d')](_0x26e408=>_0x26e408['getContainedElement']()),_0xd6683d=_0x3e7645[0x0][_0x482e('0x6b')](_0x482e('0x51')),{minRow:_0x2eda37,maxRow:_0x555cee}=_0x14ab4b['_getCoordsForCells'](_0x3e7645);_0x9cc208[_0x482e('0x3f')](_0xd6683d,{'at':_0x2eda37,'rows':_0x555cee-_0x2eda37+0x1});}),_0x40201c[_0x482e('0x91')][_0x482e('0x81')]('insertion','tablePasteColumn',_0x482e('0x74'),_0x12a04e=>{const _0x43a8ea=_0x12a04e['map'](_0x5f42c0=>_0x5f42c0[_0x482e('0x37')]()),_0x159ecd=_0x43a8ea[0x0][_0x482e('0x6b')](_0x482e('0x51')),{minColumn:_0x9a6835,maxColumn:_0x42a4a0}=_0x14ab4b[_0x482e('0x3')](_0x43a8ea);_0x9cc208[_0x482e('0x5a')](_0x159ecd,{'at':_0x9a6835,'columns':_0x42a4a0-_0x9a6835+0x1});});const _0x24eb72=(_0x34caad,_0xe9a31b)=>{if(!_0xe9a31b['subType']||!_0xe9a31b[_0x482e('0x86')][_0x482e('0x1b')]('tablePaste'))return;const _0x78e9f5=_0xe9a31b['attributes'][_0x482e('0x15')],_0x431a2b=_0x40201c['getSuggestions']()[_0x482e('0x10')](_0x21fa3d=>_0x21fa3d['isInContent']&&_0x21fa3d['attributes']&&_0x21fa3d[_0x482e('0xa')][_0x482e('0x15')]==_0x78e9f5);_0x431a2b[_0x482e('0x54')]&&_0xe9a31b[_0x482e('0x8b')]()[_0x482e('0x54')]!=_0x431a2b[_0x482e('0x54')]&&_0x431a2b['reduce']((_0x595569,_0x5c6780)=>(_0x595569[_0x482e('0x5b')]=_0x5c6780,_0x5c6780[_0x482e('0x85')]=_0x595569,_0x5c6780));};function _0x594ccb(_0x4fba10,_0x421078=!0x0){const {id:_0x238f9d}=_0x40201c[_0x482e('0x25')](_0x4fba10[_0x482e('0x55')]),_0x59de93=[_0x482e('0x59'),_0x482e('0x2c')],_0x4236b2=_0x40201c['activeMarkers'][_0x482e('0x3e')](_0x4fba10[_0x482e('0x55')]);return _0x4236b2&&_0x59de93[_0x482e('0x6e')](_0x482e('0x7b')),{'classes':_0x59de93,'attributes':{'data-suggestion':_0x238f9d},'priority':_0x4236b2&&_0x421078?0xbc2:0xbb8};}_0x40201c['on']('suggestionLoaded',_0x24eb72,{'priority':_0x482e('0x43')}),_0x40201c['on'](_0x482e('0x0'),_0x24eb72,{'priority':_0x482e('0x43')}),_0x9286c4[_0x482e('0x4d')]['document']['registerPostFixer'](()=>{let _0x548e01=!0x1;const _0x61bfd2=Array['from'](_0x9286c4[_0x482e('0x4d')]['document'][_0x482e('0x26')][_0x482e('0x28')]());for(const {name:_0x2a6c82,data:_0x211b70}of _0x61bfd2){const {group:_0x3ee054,type:_0x2c77cd,id:_0x5359af}=_0x40201c[_0x482e('0x25')](_0x2a6c82);if(_0x482e('0x67')!=_0x3ee054||_0x482e('0x4a')!=_0x2c77cd||_0x211b70[_0x482e('0x1e')])continue;if(!_0x40201c['hasSuggestion'](_0x5359af))continue;const _0x180532=_0x40201c['getSuggestion'](_0x5359af)[_0x482e('0x4')](),_0x93f208=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x8e'))['me'];for(const _0x5c4e05 of _0x40201c[_0x482e('0x6d')]()){if(!_0x5c4e05[_0x482e('0x1a')]||_0x5c4e05[_0x482e('0x71')]!=_0x93f208)continue;if(_0x482e('0x52')!=_0x5c4e05['type']||_0x482e('0x8')!=_0x5c4e05['subType'])continue;if(_0x5c4e05[_0x482e('0x4')]()['every'](_0x1c8bf4=>_0x180532[_0x482e('0xf')](_0x2afeac=>_0x2afeac[_0x482e('0x66')](_0x1c8bf4,!0x0))))for(const _0x241cfc of _0x5c4e05['getAllAdjacentSuggestions']())_0x241cfc['isInContent']&&(_0x241cfc[_0x482e('0x74')](),_0x548e01=!0x0);}}return _0x548e01;}),_0x9286c4[_0x482e('0x4d')]['document']['registerPostFixer'](_0x299b67=>{const _0x4af57e=_0x9286c4[_0x482e('0x57')]['get']('redo');if(!_0x4af57e||!_0x4af57e[_0x482e('0x21')][_0x482e('0x4f')](_0x299b67[_0x482e('0x19')]))return!0x1;let _0x133291=!0x1;const _0x438b81=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x8e'))['me'],_0x35f96d=_0x9286c4['model'][_0x482e('0x41')]['differ'][_0x482e('0x60')](),_0x38cf54=Array['from'](_0x9286c4[_0x482e('0x4d')][_0x482e('0x41')][_0x482e('0x26')][_0x482e('0x28')]())[_0x482e('0x10')](({name:_0x2a7bcd,data:_0x9caeca})=>{const {group:_0x4a001f,subType:_0x7853fb,authorId:_0x1bc89f}=_0x40201c[_0x482e('0x25')](_0x2a7bcd);return _0x482e('0x67')==_0x4a001f&&_0x482e('0x8a')==_0x7853fb&&_0x1bc89f==_0x438b81['id']&&!_0x9caeca[_0x482e('0x1e')];});for(const _0x5b49d4 of _0x35f96d){if(_0x482e('0x3b')!=_0x5b49d4[_0x482e('0x77')]||_0x482e('0x83')!=_0x5b49d4['name']||0x1!=_0x5b49d4[_0x482e('0x54')])continue;const _0x7e9986=_0x299b67[_0x482e('0x87')](_0x5b49d4[_0x482e('0x31')],_0x5b49d4[_0x482e('0x31')]['getShiftedBy'](0x1));if(!_0x38cf54['find'](({data:_0x3a8582})=>_0x3a8582[_0x482e('0x92')][_0x482e('0x7d')](_0x7e9986)))for(const {name:_0x3ad39d,data:_0x50caef}of _0x38cf54)if(_0x7e9986['containsRange'](_0x50caef[_0x482e('0x92')])){_0x299b67['updateMarker'](_0x3ad39d,{'range':_0x7e9986}),_0x133291=!0x0;break;}}return _0x133291;}),_0x9286c4[_0x482e('0x4d')]['document'][_0x482e('0x61')](_0x23c548=>{let _0x2796d9=!0x1;const _0x13e1b5=_0x9286c4[_0x482e('0x68')]['get']('Users')['me'],_0x35c535=_0x40201c[_0x482e('0x6d')]()['filter'](_0x236b67=>_0x236b67[_0x482e('0x1a')]&&_0x236b67[_0x482e('0x71')]==_0x13e1b5),_0x4de513=new Set(),_0x4f01d9=new Set();for(const _0xc97a5d of _0x35c535)if(_0x482e('0x8a')==_0xc97a5d[_0x482e('0x86')])for(const _0x3968c1 of _0xc97a5d[_0x482e('0x40')]()){const _0x47e32d=_0x3968c1[_0x482e('0x38')]()['getContainedElement']();if(_0x47e32d){if(_0x47e32d['is'](_0x482e('0x46'),_0x482e('0x83'))&&ce(_0x47e32d)){_0xc97a5d[_0x482e('0x4e')](_0x3968c1[_0x482e('0x6a')]),_0x4de513[_0x482e('0x72')](_0x47e32d),_0x2796d9=!0x0;const _0x4c6a54=_0x47e32d['nextSibling'],_0x1f7fb0=_0x47e32d['previousSibling'],_0x27a6e4=_0x4c6a54&&_0x4c6a54['is'](_0x482e('0x46'),_0x482e('0x83')),_0x4cd230=_0x1f7fb0&&_0x1f7fb0['is']('element',_0x482e('0x83'));_0x27a6e4&&!_0x4de513[_0x482e('0x4f')](_0x4c6a54)&&_0x4f01d9[_0x482e('0x72')](_0x4c6a54),_0x4cd230&&!_0x4de513[_0x482e('0x4f')](_0x1f7fb0)&&_0x4f01d9[_0x482e('0x72')](_0x1f7fb0);}else _0x47e32d['is'](_0x482e('0x46'),_0x482e('0x7c'))&&_0x47e32d[_0x482e('0x64')]&&(_0xc97a5d[_0x482e('0x4e')](_0x3968c1['name']),_0x2796d9=!0x0);}}else{if(_0x482e('0x8')==_0xc97a5d[_0x482e('0x86')]){if(!_0xc97a5d[_0x482e('0xa')]||!_0xc97a5d[_0x482e('0xa')][_0x482e('0x15')])continue;const _0x1768ec=_0xc97a5d[_0x482e('0xa')]['markerAttributes'];if(_0x1768ec&&Object[_0x482e('0x13')](_0x1768ec)[_0x482e('0x54')])continue;const _0xdeec8c=_0xc97a5d[_0x482e('0xa')][_0x482e('0x15')];let _0xa7670c=!0x0,_0x5ba65e=!0x0;for(const _0x14d795 of _0x35c535)if(_0x14d795[_0x482e('0x86')]&&_0x14d795['subType'][_0x482e('0x1b')](_0x482e('0x8a'))){if(!_0x14d795['attributes'][_0x482e('0x15')]){_0x5ba65e=!0x1;break;}if(_0x14d795['id']!=_0xc97a5d['id']&&_0x14d795[_0x482e('0xa')]['tablePasteChainId']==_0xdeec8c){_0xa7670c=!0x1;break;}}_0x5ba65e&&_0xa7670c&&(_0xc97a5d[_0x482e('0x9')](),_0x2796d9=!0x0);}}for(const _0x128e60 of _0x4de513)_0x23c548[_0x482e('0x1c')](_0x128e60);for(const _0x41aa8b of _0x4f01d9)_0x23c548[_0x482e('0x1d')](_0x41aa8b);return _0x2796d9;}),_0x9286c4['conversion'][_0x482e('0x14')]('editingDowncast')[_0x482e('0x56')]({'model':_0x482e('0x62'),'view':(_0x1c1a7d,_0x30557d)=>_0x594ccb(_0x1c1a7d),'converterPriority':_0x482e('0x43')}),_0x9286c4[_0x482e('0x2b')][_0x482e('0x14')]('dataDowncast')[_0x482e('0x56')]({'model':_0x482e('0x62'),'view':(_0x4aa888,_0x481992)=>_0x481992['options']['showSuggestionHighlights']?_0x594ccb(_0x4aa888,!0x1):null,'converterPriority':_0x482e('0x43')});const _0x1c605e=_0x9286c4[_0x482e('0x5d')][_0x482e('0x2a')];this['listenTo'](_0x1c605e['document'],_0x482e('0x63'),(_0xdc72a7,_0x36bd7e)=>{const _0x559879=[];for(const _0x5d3b2f of _0x1c605e[_0x482e('0x7f')](_0x36bd7e['content'])[_0x482e('0x76')]())_0x5d3b2f['is'](_0x482e('0x46'),_0x482e('0x5e'))&&_0x559879[_0x482e('0x6e')](_0x5d3b2f);_0x1c605e['change'](_0x498b2e=>{for(const _0x296a28 of _0x559879)_0x498b2e[_0x482e('0x23')](_0x498b2e[_0x482e('0x7f')](_0x296a28),_0x498b2e['createPositionBefore'](_0x296a28)),_0x498b2e[_0x482e('0x1c')](_0x296a28);});});}}function ce(_0x27256c){if(_0x27256c['isEmpty'])return!0x0;const _0x5dedf6=_0x27256c[_0x482e('0x3d')](0x0);return _0x5dedf6['is'](_0x482e('0x46'),'paragraph')&&_0x5dedf6[_0x482e('0x64')];}function fe(_0x4bb178,_0x14d16c={},_0x33c190){for(const {isAnchor:_0x361882,cellHeight:_0x160952,cellWidth:_0x4e9813}of _0x33c190[_0x482e('0x47')](_0x4bb178,{'includeAllSlots':!0x0,..._0x14d16c}))if(!_0x361882||0x1!=_0x160952||0x1!=_0x4e9813)return!0x1;return!0x0;}
23
+ const _0xb39d=['deletionRanges','endColumn','suggestionUnloaded','trackChanges','getChanges','getChildren','columnInsertionIndexes','set','schema','elementToElement','getColumnIndexes','insertColumns','remove','low','getShiftedBy','options','isEmpty','value','getMarkers','registerDescriptionCallback','rows','wrap','_isForcedDefaultExecutionBlock','has','register','join','tableCellBorderColor','filter','getAllAdjacentSuggestions','locale','end','unwrap','activeMarkers','row','push','markerAttributes','root','markMultiRangeDeletion','cells','registerCustomCallback','get','getSuggestions','model','previous','hasSuggestion','_splitMarkerName','newRange','_suggestionFactory','_getCoordsForCells','getTableIfOnlyTableInContent','some','suggestion-td','tableCellBackgroundColor','tableCellVerticalAlignment','removeColumns','getContainedElement','markers','name','from','clipboardOutput','tablePasteRow','createElement','entries','tablePasteColumn','_tablePostFixingSubtypes','previousSibling','findAncestor','rootName','oldRange','author','move','createTableWalker','listenTo','getRanges','getRange','insertion','containsRange','last','tablePaste','ck-suggestion-marker-insertion','selection','cell','length','insertRows','TrackChangesEditing','tableCellPadding','dataDowncast','suggestion','tablePasteCell','includes','setAttributes','columnInsertionRanges','removeMarker','plugins','isInContent','rowInsertionRanges','conversion','column','paragraph','insertionRanges','_createdBatches','type','subType','requires','getItems','TableClipboard','TableUtils','removeRows','next','discard','stop','markerName','tablePasteChainId','tableCell','insert','endRow','createPositionBefore','updateMarker','getRows','createRangeIn','getSuggestionCallback','differ','fill','start','commands','attributes','getAttributes','change','first','suggestion:formatBlock:tablePasteCell','editor','add','fromEntries','editing','keys','for','Users','_replaceTableSlotCell','ck-suggestion-marker--active','tableCellSuggestion','insertContent','reduce','showSuggestionHighlights','removeMarkers','accept','registerPostFixer','startsWith','deletion','table','createRangeOn','map','position','editingDowncast','getSelectionAffectedTableCells','element','document','forceDefaultExecution','high','isEqual','batch','redo','nextSibling','nodeAfter','formatBlock','getChild'];(function(_0x9bbdf8,_0xb39dec){const _0xf81448=function(_0x3ad426){while(--_0x3ad426){_0x9bbdf8['push'](_0x9bbdf8['shift']());}};_0xf81448(++_0xb39dec);}(_0xb39d,0x8c));const _0xf814=function(_0x9bbdf8,_0xb39dec){_0x9bbdf8=_0x9bbdf8-0x0;let _0xf81448=_0xb39d[_0x9bbdf8];return _0xf81448;};import{getTranslation as _0x369705}from'../utils/common-translations';import{Plugin as _0x1a1d97}from'ckeditor5/src/core';import{uid as _0xd02e8e,priorities as _0x2df47b}from'ckeditor5/src/utils';import _0x303f88 from'./table';const le=['tableCellBorderWidth',_0xf814('0x33'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0xf814('0x4e'),_0xf814('0x4d'),_0xf814('0x6e')],ae=Object[_0xf814('0x9d')](le['map'](_0x158289=>[_0x158289,null]));export default class At extends _0x1a1d97{static get[_0xf814('0x80')](){return[_0x303f88];}['afterInit'](){const _0x10345f=this[_0xf814('0x9b')];if(!_0x10345f[_0xf814('0x76')][_0xf814('0x30')](_0xf814('0x82')))return;const _0x192601=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0x6d')),_0x57b270=_0x10345f['plugins'][_0xf814('0x41')](_0xf814('0x83')),_0x157393=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0x303f88),_0x138959=_0x10345f[_0xf814('0x76')][_0xf814('0x41')]('TableClipboard');_0x157393[_0xf814('0x59')][_0xf814('0x3b')](_0xf814('0x55'),_0xf814('0x58')),_0x10345f['model'][_0xf814('0x21')][_0xf814('0x31')](_0xf814('0xa4'),{'allowIn':_0xf814('0x8a'),'allowContentOf':_0xf814('0x8a'),'isLimit':!0x0}),_0x10345f['conversion'][_0xf814('0x22')]({'model':_0xf814('0xa4'),'view':_0xf814('0x4c')});let _0x4bd469=null;_0x10345f[_0xf814('0x43')]['on'](_0xf814('0x0'),(_0x23fa6c,_0x59e65a)=>{const [_0x155b40,_0x36e395]=_0x59e65a,_0x37ae3c=_0x59e65a[_0x59e65a[_0xf814('0x6b')]-0x1];_0x37ae3c&&_0x37ae3c[_0xf814('0x10')]||_0x192601[_0xf814('0x2f')]||this[_0xf814('0x9b')][_0xf814('0x95')][_0xf814('0x41')](_0xf814('0x1c'))[_0xf814('0x2a')]&&function(_0x11586a,_0x3f3369,_0x1c4dd4,_0x3365d3,_0x1d215f){if(_0x3f3369&&!_0x3f3369['is']('documentSelection'))return!0x1;const _0x2f4e6f=_0x1d215f[_0xf814('0x4a')](_0x11586a,_0x1c4dd4);if(!_0x2f4e6f||!fe(_0x2f4e6f,void 0x0,_0x3365d3))return!0x1;const _0x438bdd=_0x3365d3[_0xf814('0xd')](_0x1c4dd4[_0xf814('0xf')][_0xf814('0x69')]);if(!_0x438bdd['length'])return!0x1;const _0x15f694=_0x438bdd[0x0][_0xf814('0x5b')]('table'),_0x2085af=_0x3365d3['getRowIndexes'](_0x438bdd),_0x37365b=_0x3365d3[_0xf814('0x23')](_0x438bdd),_0xafa7bc={'startRow':_0x2085af[_0xf814('0x99')],'endRow':_0x2085af[_0xf814('0x66')],'startColumn':_0x37365b[_0xf814('0x99')],'endColumn':_0x37365b[_0xf814('0x66')]};return 0x1==_0x438bdd[_0xf814('0x6b')]&&(_0xafa7bc[_0xf814('0x8c')]+=_0x3365d3[_0xf814('0x8f')](_0x2f4e6f)-0x1,_0xafa7bc[_0xf814('0x1a')]+=_0x3365d3['getColumns'](_0x2f4e6f)-0x1),fe(_0x15f694,_0xafa7bc,_0x3365d3);}(_0x155b40,_0x36e395,_0x10345f[_0xf814('0x43')],_0x57b270,_0x138959)&&(_0x23fa6c[_0xf814('0x87')](),_0x4bd469={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x10345f[_0xf814('0x43')]['change'](()=>{_0x10345f['model'][_0xf814('0x0')](_0x59e65a[0x0],_0x59e65a[0x1],_0x59e65a[0x2],{'forceDefaultExecution':!0x0});const _0x34aa56=_0xd02e8e(),{rowInsertionRanges:_0x1845f0,columnInsertionRanges:_0x5b6a70,insertionRanges:_0x315958,deletionRanges:_0x4696f6,cells:_0x4a4cd3}=_0x4bd469;_0x1845f0[_0xf814('0x6b')]&&_0x192601['markMultiRangeInsertion'](_0x1845f0,_0xf814('0x55'),{'tablePasteChainId':_0x34aa56}),_0x5b6a70[_0xf814('0x6b')]&&_0x192601['markMultiRangeInsertion'](_0x5b6a70,_0xf814('0x58'),{'tablePasteChainId':_0x34aa56}),_0x315958['length']&&_0x192601['markMultiRangeInsertion'](_0x315958,_0xf814('0x67'),{'tablePasteChainId':_0x34aa56,'skipNestingCheck':!0x0}),_0x4696f6[_0xf814('0x6b')]&&_0x192601[_0xf814('0x3e')](_0x4696f6,_0xf814('0x67'),{'tablePasteChainId':_0x34aa56,'skipNestingCheck':!0x0});const _0x38cf89=_0x192601['markMultiRangeBlockFormat'](_0x4a4cd3[_0xf814('0xa')](({element:_0x96247})=>_0x96247),{'formatGroupId':_0xd02e8e()},[],'tablePasteCell',{'tablePasteChainId':_0x34aa56});if(_0x38cf89){const _0x108091=_0x38cf89[_0xf814('0x2b')](),_0x44331d=[];for(const {element:_0x17a87d,attributes:_0x13f98b}of _0x4a4cd3){if(!_0x13f98b)continue;const _0x4e7c35=_0x10345f['model'][_0xf814('0x9')](_0x17a87d),_0x2c7a46=_0x108091['find'](_0x2e987e=>_0x2e987e[_0xf814('0x63')]()[_0xf814('0x12')](_0x4e7c35));_0x2c7a46&&_0x44331d[_0xf814('0x3b')]([_0x2c7a46[_0xf814('0x52')],_0x13f98b]);}_0x44331d[_0xf814('0x6b')]&&_0x38cf89['setAttribute'](_0xf814('0x3c'),Object['fromEntries'](_0x44331d));}_0x4bd469=null;}));},{'priority':_0x2df47b[_0xf814('0x11')]+0xa}),_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0x82'))['on'](_0xf814('0xa2'),(_0x5a809e,_0x5ede0c)=>{const [_0x3bcf88,_0x23e9f2,,_0x5cec51]=_0x5ede0c;if(!_0x4bd469)return;_0x5a809e['stop']();const _0x2b76f0=_0x3bcf88[_0xf814('0x6a')],_0x378a5c=_0x23e9f2,_0x4bd5e7=ce(_0x2b76f0),_0x16bce4=ce(_0x378a5c);_0x5a809e['return']=_0x2b76f0;let _0x32b4d8=null,_0x534602=null;if(_0x16bce4||_0x4bd5e7){if(_0x4bd5e7&&!_0x16bce4){_0x5cec51[_0xf814('0x25')](_0x2b76f0[_0xf814('0x18')](0x0));for(const _0x47ed5e of Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x1e')]()))_0x5cec51[_0xf814('0x8b')](_0x47ed5e,_0x2b76f0,_0xf814('0x37'));const _0x5d06e9=_0x4bd469['rowInsertionIndexes'][_0xf814('0x72')](_0x3bcf88[_0xf814('0x3a')]),_0x840d50=_0x4bd469[_0xf814('0x1f')][_0xf814('0x72')](_0x3bcf88[_0xf814('0x7a')]);_0x5d06e9||_0x840d50||(_0x32b4d8=_0x5cec51['createRangeIn'](_0x2b76f0));}else _0x16bce4&&!_0x4bd5e7&&(_0x534602=_0x5cec51['createRangeIn'](_0x2b76f0));}else{const _0x4b7282=_0x5cec51[_0xf814('0x56')]('tableCellSuggestion'),_0x117ec5=_0x5cec51[_0xf814('0x56')](_0xf814('0xa4'));_0x5cec51[_0xf814('0x2e')](_0x5cec51[_0xf814('0x90')](_0x2b76f0),_0x117ec5),_0x5cec51['insert'](_0x4b7282,_0x2b76f0,0x0);for(const _0x3ab8f2 of Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x1e')]()))_0x5cec51[_0xf814('0x8b')](_0x3ab8f2,_0x4b7282,'end');_0x32b4d8=_0x5cec51[_0xf814('0x9')](_0x4b7282),_0x534602=_0x5cec51[_0xf814('0x9')](_0x117ec5);}const _0x11ab94=Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x97')]())['filter'](([_0x2fdd67])=>le[_0xf814('0x72')](_0x2fdd67));_0x4bd469[_0xf814('0x3f')][_0xf814('0x3b')]({'element':_0x2b76f0,'attributes':_0x11ab94[_0xf814('0x6b')]?Object[_0xf814('0x9d')](_0x11ab94):null}),_0x32b4d8&&_0x4bd469[_0xf814('0x7c')][_0xf814('0x3b')](_0x32b4d8),_0x534602&&_0x4bd469[_0xf814('0x19')][_0xf814('0x3b')](_0x534602);},{'priority':_0xf814('0x11')}),_0x57b270['on'](_0xf814('0x24'),(_0x186b3b,_0x559207)=>{const [_0x4ef6db,_0x131b4b={}]=_0x559207;if(!_0x4bd469)return;const _0x41e3c1=_0x131b4b['at']||0x0,_0x760e3b=_0x131b4b['columns']||0x1;_0x4bd469[_0xf814('0x1f')]=new Array(_0x760e3b)[_0xf814('0x93')](_0x41e3c1)[_0xf814('0xa')]((_0x17a92c,_0x428137)=>_0x17a92c+_0x428137);for(const {cell:_0xe5fb14}of _0x57b270[_0xf814('0x60')](_0x4ef6db,{'startColumn':_0x41e3c1,'endColumn':_0x41e3c1+_0x760e3b-0x1}))_0x4bd469[_0xf814('0x74')][_0xf814('0x3b')](_0x10345f[_0xf814('0x43')][_0xf814('0x9')](_0xe5fb14));},{'priority':_0xf814('0x26')}),_0x57b270['on'](_0xf814('0x6c'),(_0x26d5fd,_0x2d5eb3)=>{const [_0x2fb40e,_0x1b1b10={}]=_0x2d5eb3;if(!_0x4bd469)return;const _0x448653=_0x1b1b10['at']||0x0,_0x15a99b=_0x1b1b10[_0xf814('0x2d')]||0x1;_0x4bd469['rowInsertionIndexes']=new Array(_0x15a99b)[_0xf814('0x93')](_0x448653)[_0xf814('0xa')]((_0x44a289,_0x28d53d)=>_0x44a289+_0x28d53d);for(const {cell:_0x498498}of _0x57b270[_0xf814('0x60')](_0x2fb40e,{'startRow':_0x448653,'endRow':_0x448653+_0x15a99b-0x1}))_0x4bd469[_0xf814('0x78')][_0xf814('0x3b')](_0x10345f[_0xf814('0x43')][_0xf814('0x9')](_0x498498));},{'priority':_0xf814('0x26')}),_0x192601['_descriptionFactory'][_0xf814('0x2c')](_0x1fc670=>{if(_0x1fc670[_0xf814('0x7f')]&&_0x1fc670[_0xf814('0x7f')]['startsWith'](_0xf814('0x67')))return _0x1fc670[_0xf814('0x44')]?{}:{'type':_0xf814('0x64'),'content':_0x369705(_0x10345f[_0xf814('0x36')],'*Replace\x20table\x20cells*')};});const _0x10ad01=()=>!0x1;for(const _0x34de02 of['tablePaste',_0xf814('0x58'),'tablePasteRow',_0xf814('0x71')])_0x192601[_0xf814('0x48')][_0xf814('0x40')]('insertion',_0x34de02,_0xf814('0x32'),_0x10ad01),_0x192601['_suggestionFactory'][_0xf814('0x40')](_0xf814('0x7'),_0x34de02,_0xf814('0x32'),_0x10ad01),_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xf814('0x17'),_0x34de02,_0xf814('0x32'),_0x10ad01);_0x192601[_0xf814('0x48')]['registerCustomCallback'](_0xf814('0x17'),'tablePasteCell',_0xf814('0x86'),_0x10ad01),_0x192601[_0xf814('0x48')]['registerCustomCallback'](_0xf814('0x17'),_0xf814('0x71'),_0xf814('0x4'),(_0x412d29,_0x11e5db,_0x18b4a8)=>{const _0x4d3978=_0x412d29[_0xf814('0xa')](_0x20e472=>_0x20e472[_0xf814('0x50')]())[_0xf814('0x34')](_0x14eedf=>_0x14eedf),_0x589d59=new Map(_0x4d3978[_0xf814('0xa')](_0x30452e=>[_0x30452e,null]));if(_0x4bd469)for(const {element:_0x17f436,attributes:_0x2158ed}of _0x4bd469[_0xf814('0x3f')])_0x2158ed&&_0x589d59[_0xf814('0x20')](_0x17f436,_0x2158ed);else{if(_0x18b4a8&&_0x18b4a8['markerAttributes'])for(const [_0x15a1e7,_0x55fd53]of Object[_0xf814('0x57')](_0x18b4a8[_0xf814('0x3c')])){const _0x178c74=_0x10345f[_0xf814('0x43')][_0xf814('0x51')][_0xf814('0x41')](_0x15a1e7),_0x5157d5=_0x178c74?_0x178c74[_0xf814('0x63')]()['getContainedElement']():null;_0x5157d5&&_0x589d59['set'](_0x5157d5,_0x55fd53);}}_0x10345f[_0xf814('0x43')][_0xf814('0x98')](_0x4fd847=>{for(const [_0x57c704,_0x385451]of _0x589d59)_0x4fd847[_0xf814('0x73')]({...ae,..._0x385451},_0x57c704);});});const _0x656a7d=(_0xec2045,_0x20f81a)=>{_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xec2045,'tablePaste',_0x20f81a,(_0x22698c,_0x5a498e,_0x330b6c)=>{_0x10345f[_0xf814('0x43')]['change'](_0x35ae5a=>{const _0x22ba13=[];for(const _0x2a1063 of _0x22698c){const _0xec5c3e=_0x2a1063[_0xf814('0x94')][_0xf814('0x16')];_0xec5c3e['is']('element',_0xf814('0xa4'))&&_0x22ba13[_0xf814('0x3b')](_0xec5c3e);}_0x192601[_0xf814('0x48')][_0xf814('0x91')](_0xec2045,null,_0x20f81a)(_0x22698c,_0x5a498e,_0x330b6c);for(const _0x87c420 of _0x22ba13)'$graveyard'!=_0x87c420[_0xf814('0x3d')][_0xf814('0x5c')]&&_0x35ae5a[_0xf814('0x38')](_0x87c420);});});};_0x656a7d('insertion',_0xf814('0x4')),_0x656a7d('insertion',_0xf814('0x86')),_0x656a7d(_0xf814('0x7'),_0xf814('0x4')),_0x656a7d(_0xf814('0x7'),_0xf814('0x86')),_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xf814('0x64'),'tablePasteRow',_0xf814('0x86'),_0x289226=>{const _0x5674e7=_0x289226[_0xf814('0xa')](_0x2833b1=>_0x2833b1['getContainedElement']()),_0x6dca29=_0x5674e7[0x0][_0xf814('0x5b')](_0xf814('0x8')),{minRow:_0x379748,maxRow:_0x4957fd}=_0x157393[_0xf814('0x49')](_0x5674e7);_0x57b270[_0xf814('0x84')](_0x6dca29,{'at':_0x379748,'rows':_0x4957fd-_0x379748+0x1});}),_0x192601[_0xf814('0x48')][_0xf814('0x40')]('insertion',_0xf814('0x58'),_0xf814('0x86'),_0x22a0a1=>{const _0x1d013c=_0x22a0a1[_0xf814('0xa')](_0x493134=>_0x493134[_0xf814('0x50')]()),_0x2c13c7=_0x1d013c[0x0][_0xf814('0x5b')]('table'),{minColumn:_0x1c448b,maxColumn:_0x2e000d}=_0x157393['_getCoordsForCells'](_0x1d013c);_0x57b270[_0xf814('0x4f')](_0x2c13c7,{'at':_0x1c448b,'columns':_0x2e000d-_0x1c448b+0x1});});const _0x1154b1=(_0x5d99c6,_0x1d5b8d)=>{if(!_0x1d5b8d[_0xf814('0x7f')]||!_0x1d5b8d['subType']['startsWith']('tablePaste'))return;const _0x59fc89=_0x1d5b8d[_0xf814('0x96')][_0xf814('0x89')],_0x48a0cb=_0x192601['getSuggestions']()[_0xf814('0x34')](_0xcdceb8=>_0xcdceb8[_0xf814('0x77')]&&_0xcdceb8['attributes']&&_0xcdceb8[_0xf814('0x96')][_0xf814('0x89')]==_0x59fc89);_0x48a0cb['length']&&_0x1d5b8d[_0xf814('0x35')]()['length']!=_0x48a0cb[_0xf814('0x6b')]&&_0x48a0cb[_0xf814('0x1')]((_0x314282,_0x88cd7)=>(_0x314282[_0xf814('0x85')]=_0x88cd7,_0x88cd7[_0xf814('0x44')]=_0x314282,_0x88cd7));};function _0x320187(_0x4ad8c9,_0x839237=!0x0){const {id:_0x39fb45}=_0x192601[_0xf814('0x46')](_0x4ad8c9['markerName']),_0x5323f0=['ck-suggestion-marker',_0xf814('0x68')],_0x37fc07=_0x192601[_0xf814('0x39')]['includes'](_0x4ad8c9[_0xf814('0x88')]);return _0x37fc07&&_0x5323f0['push'](_0xf814('0xa3')),{'classes':_0x5323f0,'attributes':{'data-suggestion':_0x39fb45},'priority':_0x37fc07&&_0x839237?0xbc2:0xbb8};}_0x192601['on']('suggestionLoaded',_0x1154b1,{'priority':'high'}),_0x192601['on'](_0xf814('0x1b'),_0x1154b1,{'priority':_0xf814('0x11')}),_0x10345f[_0xf814('0x43')]['document'][_0xf814('0x5')](()=>{let _0x3add41=!0x1;const _0x10f7c7=Array[_0xf814('0x53')](_0x10345f[_0xf814('0x43')][_0xf814('0xf')]['differ']['getChangedMarkers']());for(const {name:_0x22f0b4,data:_0x38f986}of _0x10f7c7){const {group:_0x460cf1,type:_0x18caa6,id:_0x3262b1}=_0x192601[_0xf814('0x46')](_0x22f0b4);if(_0xf814('0x70')!=_0x460cf1||_0xf814('0x7')!=_0x18caa6||_0x38f986[_0xf814('0x5d')])continue;if(!_0x192601[_0xf814('0x45')](_0x3262b1))continue;const _0x257ccf=_0x192601['getSuggestion'](_0x3262b1)[_0xf814('0x62')](),_0x4d297d=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0xa1'))['me'];for(const _0x2c42f7 of _0x192601['getSuggestions']()){if(!_0x2c42f7[_0xf814('0x77')]||_0x2c42f7[_0xf814('0x5e')]!=_0x4d297d)continue;if(_0xf814('0x17')!=_0x2c42f7[_0xf814('0x7e')]||_0xf814('0x71')!=_0x2c42f7['subType'])continue;if(_0x2c42f7[_0xf814('0x62')]()['every'](_0x43708c=>_0x257ccf[_0xf814('0x4b')](_0x9cb2ee=>_0x9cb2ee[_0xf814('0x65')](_0x43708c,!0x0))))for(const _0x58b598 of _0x2c42f7[_0xf814('0x35')]())_0x58b598[_0xf814('0x77')]&&(_0x58b598['discard'](),_0x3add41=!0x0);}}return _0x3add41;}),_0x10345f['model'][_0xf814('0xf')][_0xf814('0x5')](_0x3a9508=>{const _0x3aaa01=_0x10345f[_0xf814('0x95')][_0xf814('0x41')](_0xf814('0x14'));if(!_0x3aaa01||!_0x3aaa01[_0xf814('0x7d')][_0xf814('0x30')](_0x3a9508[_0xf814('0x13')]))return!0x1;let _0x2d18a0=!0x1;const _0x4bee1c=_0x10345f[_0xf814('0x76')][_0xf814('0x41')]('Users')['me'],_0x5393e6=_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x92')][_0xf814('0x1d')](),_0x4de3c9=Array[_0xf814('0x53')](_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x92')]['getChangedMarkers']())[_0xf814('0x34')](({name:_0x5e9c7d,data:_0x5baab7})=>{const {group:_0x5146a4,subType:_0x2dfb2c,authorId:_0x2a57b7}=_0x192601[_0xf814('0x46')](_0x5e9c7d);return'suggestion'==_0x5146a4&&_0xf814('0x67')==_0x2dfb2c&&_0x2a57b7==_0x4bee1c['id']&&!_0x5baab7[_0xf814('0x5d')];});for(const _0x1c3d09 of _0x5393e6){if(_0xf814('0x8b')!=_0x1c3d09['type']||_0xf814('0xa4')!=_0x1c3d09[_0xf814('0x52')]||0x1!=_0x1c3d09[_0xf814('0x6b')])continue;const _0x5ce1e5=_0x3a9508['createRange'](_0x1c3d09[_0xf814('0xb')],_0x1c3d09[_0xf814('0xb')][_0xf814('0x27')](0x1));if(!_0x4de3c9['find'](({data:_0x5a4575})=>_0x5a4575['newRange'][_0xf814('0x12')](_0x5ce1e5)))for(const {name:_0xeeeae3,data:_0x2e4861}of _0x4de3c9)if(_0x5ce1e5['containsRange'](_0x2e4861[_0xf814('0x47')])){_0x3a9508[_0xf814('0x8e')](_0xeeeae3,{'range':_0x5ce1e5}),_0x2d18a0=!0x0;break;}}return _0x2d18a0;}),_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x5')](_0x341c18=>{let _0x447977=!0x1;const _0x4d304b=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0xa1'))['me'],_0x27430a=_0x192601[_0xf814('0x42')]()[_0xf814('0x34')](_0x348d34=>_0x348d34[_0xf814('0x77')]&&_0x348d34['author']==_0x4d304b),_0x332214=new Set(),_0x148137=new Set();for(const _0x4582dd of _0x27430a)if(_0xf814('0x67')==_0x4582dd[_0xf814('0x7f')])for(const _0x5bcd24 of _0x4582dd[_0xf814('0x2b')]()){const _0x293be8=_0x5bcd24[_0xf814('0x63')]()[_0xf814('0x50')]();if(_0x293be8){if(_0x293be8['is'](_0xf814('0xe'),_0xf814('0xa4'))&&ce(_0x293be8)){_0x4582dd[_0xf814('0x75')](_0x5bcd24[_0xf814('0x52')]),_0x332214[_0xf814('0x9c')](_0x293be8),_0x447977=!0x0;const _0x5be2e3=_0x293be8[_0xf814('0x15')],_0x2041d6=_0x293be8[_0xf814('0x5a')],_0x163a4b=_0x5be2e3&&_0x5be2e3['is'](_0xf814('0xe'),'tableCellSuggestion'),_0x53f4b4=_0x2041d6&&_0x2041d6['is']('element',_0xf814('0xa4'));_0x163a4b&&!_0x332214[_0xf814('0x30')](_0x5be2e3)&&_0x148137[_0xf814('0x9c')](_0x5be2e3),_0x53f4b4&&!_0x332214[_0xf814('0x30')](_0x2041d6)&&_0x148137[_0xf814('0x9c')](_0x2041d6);}else _0x293be8['is'](_0xf814('0xe'),_0xf814('0x7b'))&&_0x293be8[_0xf814('0x29')]&&(_0x4582dd['removeMarker'](_0x5bcd24[_0xf814('0x52')]),_0x447977=!0x0);}}else{if(_0xf814('0x71')==_0x4582dd[_0xf814('0x7f')]){if(!_0x4582dd[_0xf814('0x96')]||!_0x4582dd[_0xf814('0x96')]['tablePasteChainId'])continue;const _0x49e0ca=_0x4582dd['attributes'][_0xf814('0x3c')];if(_0x49e0ca&&Object[_0xf814('0x9f')](_0x49e0ca)['length'])continue;const _0x2fb172=_0x4582dd[_0xf814('0x96')][_0xf814('0x89')];let _0x5cd6e7=!0x0,_0x5012de=!0x0;for(const _0x2fd222 of _0x27430a)if(_0x2fd222[_0xf814('0x7f')]&&_0x2fd222[_0xf814('0x7f')][_0xf814('0x6')](_0xf814('0x67'))){if(!_0x2fd222[_0xf814('0x96')]['tablePasteChainId']){_0x5012de=!0x1;break;}if(_0x2fd222['id']!=_0x4582dd['id']&&_0x2fd222[_0xf814('0x96')][_0xf814('0x89')]==_0x2fb172){_0x5cd6e7=!0x1;break;}}_0x5012de&&_0x5cd6e7&&(_0x4582dd[_0xf814('0x3')](),_0x447977=!0x0);}}for(const _0x4c6c21 of _0x332214)_0x341c18['remove'](_0x4c6c21);for(const _0x2a178c of _0x148137)_0x341c18[_0xf814('0x38')](_0x2a178c);return _0x447977;}),_0x10345f['conversion'][_0xf814('0xa0')](_0xf814('0xc'))['markerToHighlight']({'model':_0xf814('0x9a'),'view':(_0x2f09c3,_0x1635ff)=>_0x320187(_0x2f09c3),'converterPriority':_0xf814('0x11')}),_0x10345f[_0xf814('0x79')]['for'](_0xf814('0x6f'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xdc5f2a,_0x588cb1)=>_0x588cb1[_0xf814('0x28')][_0xf814('0x2')]?_0x320187(_0xdc5f2a,!0x1):null,'converterPriority':_0xf814('0x11')});const _0x1def38=_0x10345f[_0xf814('0x9e')]['view'];this[_0xf814('0x61')](_0x1def38['document'],_0xf814('0x54'),(_0x4142e5,_0x1141ea)=>{const _0x2403a4=[];for(const _0x1f1691 of _0x1def38['createRangeIn'](_0x1141ea['content'])[_0xf814('0x81')]())_0x1f1691['is'](_0xf814('0xe'),_0xf814('0x4c'))&&_0x2403a4[_0xf814('0x3b')](_0x1f1691);_0x1def38[_0xf814('0x98')](_0x2b41a4=>{for(const _0x1618e1 of _0x2403a4)_0x2b41a4[_0xf814('0x5f')](_0x2b41a4[_0xf814('0x90')](_0x1618e1),_0x2b41a4[_0xf814('0x8d')](_0x1618e1)),_0x2b41a4[_0xf814('0x25')](_0x1618e1);});});}}function ce(_0x355e89){if(_0x355e89[_0xf814('0x29')])return!0x0;const _0x2df947=_0x355e89[_0xf814('0x18')](0x0);return _0x2df947['is'](_0xf814('0xe'),_0xf814('0x7b'))&&_0x2df947['isEmpty'];}function fe(_0x192cef,_0x2f8967={},_0x5a25ac){for(const {isAnchor:_0x3ca2d3,cellHeight:_0x3f80a3,cellWidth:_0x266fda}of _0x5a25ac[_0xf814('0x60')](_0x192cef,{'includeAllSlots':!0x0,..._0x2f8967}))if(!_0x3ca2d3||0x1!=_0x3f80a3||0x1!=_0x266fda)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cc4=['table','_suggestionFactory','tableWidth','subType','Users','TableColumnResizeEditing','commandParams','getColumnGroupElement','selection','markBlockFormat','resizeTable','formatGroupId','format','has','TrackChangesEditing','handleResizeTableWidthCommand','editor','get','registerCustomCallback','bind','getSelectedElement','getTableColumnsWidths','document','formatBlock','*Format:*\x20resize\x20table','handleSuggestionDescription','resizeTableWidth','accept','getSuggestions','getSuggestionCallback','model','change','formatInline','data','discard','type','afterInit','plugins'];(function(_0xdd34ed,_0x4cc453){const _0x3c33a2=function(_0x2977b4){while(--_0x2977b4){_0xdd34ed['push'](_0xdd34ed['shift']());}};_0x3c33a2(++_0x4cc453);}(_0x4cc4,0x9e));const _0x3c33=function(_0xdd34ed,_0x4cc453){_0xdd34ed=_0xdd34ed-0x0;let _0x3c33a2=_0x4cc4[_0xdd34ed];return _0x3c33a2;};import{Plugin as _0x5e8f93}from'ckeditor5/src/core';import{getTranslation as _0x49cb27}from'../utils/common-translations';export default class It extends _0x5e8f93{[_0x3c33('0x1e')](){if(!this[_0x3c33('0xa')]['plugins'][_0x3c33('0x7')](_0x3c33('0x25')))return;const _0x320fbc=this[_0x3c33('0xa')][_0x3c33('0x1f')][_0x3c33('0xb')](_0x3c33('0x8'));_0x320fbc['enableCommand'](_0x3c33('0x14'),this[_0x3c33('0x9')][_0x3c33('0xd')](this)),_0x320fbc[_0x3c33('0x21')][_0x3c33('0xc')]('formatBlock',_0x3c33('0x4'),_0x3c33('0x15'),_0x320fbc[_0x3c33('0x21')][_0x3c33('0x17')](_0x3c33('0x11'),null,'discard')),_0x320fbc['_suggestionFactory'][_0x3c33('0xc')]('formatBlock','resizeTable',_0x3c33('0x1c'),_0x320fbc[_0x3c33('0x21')][_0x3c33('0x17')]('formatBlock',null,_0x3c33('0x15'))),_0x320fbc['_descriptionFactory']['registerDescriptionCallback'](this[_0x3c33('0x13')][_0x3c33('0xd')](this));}[_0x3c33('0x9')](_0x158bd5,_0x34ef34){const _0x6f000e=this['editor'][_0x3c33('0x1f')]['get'](_0x3c33('0x8')),_0x2fd46a=this['editor']['plugins'][_0x3c33('0xb')](_0x3c33('0x25')),_0x521bff=_0x34ef34[_0x3c33('0x20')]||this[_0x3c33('0xa')]['model'][_0x3c33('0x10')][_0x3c33('0x2')][_0x3c33('0xe')]();this[_0x3c33('0xa')][_0x3c33('0x18')][_0x3c33('0x19')](()=>{const _0x36f60c=_0x2fd46a[_0x3c33('0x1')](_0x521bff);let _0x50b435=_0x36f60c?_0x2fd46a[_0x3c33('0xf')](_0x36f60c):null,_0x3da4a8=_0x521bff['getAttribute'](_0x3c33('0x22'))||null;const _0x3784ab=_0x34ef34['tableWidth']||_0x3da4a8,_0x8c9910=_0x34ef34['columnWidths']||_0x50b435,_0xa34f6b=this['editor']['plugins'][_0x3c33('0xb')](_0x3c33('0x24'))['me'];for(const _0x12b7a4 of _0x6f000e[_0x3c33('0x16')]()){const _0x1311c4=_0x12b7a4['getContainedElement']();if(_0x3c33('0x4')===_0x12b7a4[_0x3c33('0x23')]&&_0x1311c4===_0x521bff){_0x12b7a4['author']!==_0xa34f6b&&_0x12b7a4[_0x3c33('0x1c')]();const _0x1f7340=_0x12b7a4[_0x3c33('0x1b')][_0x3c33('0x0')];_0x3da4a8=_0x1f7340[0x0]['tableWidth'],_0x50b435=_0x1f7340[0x0]['columnWidths'];break;}}_0x158bd5({'table':_0x521bff,'tableWidth':_0x3784ab,'columnWidths':_0x8c9910}),_0x6f000e[_0x3c33('0x3')](_0x521bff,{'commandName':_0x3c33('0x14'),'commandParams':[{'tableWidth':_0x3da4a8,'columnWidths':_0x50b435}],'formatGroupId':_0x3c33('0x4')},[],_0x3c33('0x4'));});}['handleSuggestionDescription'](_0x2a2dca){if(_0x3c33('0x11')!=_0x2a2dca['type']&&_0x3c33('0x1a')!=_0x2a2dca[_0x3c33('0x1d')])return;const {data:_0x483bf3}=_0x2a2dca;if(_0x483bf3&&'resizeTable'===_0x483bf3[_0x3c33('0x5')]){const _0x3f6da1=_0x3c33('0x12');return{'type':_0x3c33('0x6'),'content':_0x49cb27(this['editor']['locale'],_0x3f6da1)};}}}
23
+ const _0xd9da=['model','accept','get','getSuggestionCallback','getTableColumnsWidths','getSuggestions','TableColumnResizeEditing','formatGroupId','Users','tableWidth','locale','formatBlock','markBlockFormat','getColumnGroupElement','getAttribute','data','resizeTable','columnWidths','commandParams','afterInit','_descriptionFactory','formatInline','handleSuggestionDescription','format','discard','table','enableCommand','registerCustomCallback','editor','handleResizeTableWidthCommand','change','_suggestionFactory','document','TrackChangesEditing','getContainedElement','getSelectedElement','bind','has','type','plugins'];(function(_0x364a48,_0xd9da47){const _0x3bab15=function(_0x25b1a6){while(--_0x25b1a6){_0x364a48['push'](_0x364a48['shift']());}};_0x3bab15(++_0xd9da47);}(_0xd9da,0x148));const _0x3bab=function(_0x364a48,_0xd9da47){_0x364a48=_0x364a48-0x0;let _0x3bab15=_0xd9da[_0x364a48];return _0x3bab15;};import{Plugin as _0x38e101}from'ckeditor5/src/core';import{getTranslation as _0x6379c4}from'../utils/common-translations';export default class It extends _0x38e101{[_0x3bab('0xb')](){if(!this['editor'][_0x3bab('0x1f')][_0x3bab('0x1d')](_0x3bab('0x26')))return;const _0x5168ff=this[_0x3bab('0x14')][_0x3bab('0x1f')][_0x3bab('0x22')]('TrackChangesEditing');_0x5168ff[_0x3bab('0x12')]('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5168ff[_0x3bab('0x17')][_0x3bab('0x13')](_0x3bab('0x3'),_0x3bab('0x8'),_0x3bab('0x21'),_0x5168ff['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x3bab('0x10'))),_0x5168ff['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3bab('0x8'),_0x3bab('0x10'),_0x5168ff[_0x3bab('0x17')][_0x3bab('0x23')](_0x3bab('0x3'),null,_0x3bab('0x21'))),_0x5168ff[_0x3bab('0xc')]['registerDescriptionCallback'](this[_0x3bab('0xe')][_0x3bab('0x1c')](this));}[_0x3bab('0x15')](_0x37db1f,_0x266570){const _0xad4412=this['editor'][_0x3bab('0x1f')]['get'](_0x3bab('0x19')),_0xe659b2=this[_0x3bab('0x14')]['plugins'][_0x3bab('0x22')](_0x3bab('0x26')),_0x2591ef=_0x266570[_0x3bab('0x11')]||this[_0x3bab('0x14')][_0x3bab('0x20')][_0x3bab('0x18')]['selection'][_0x3bab('0x1b')]();this['editor'][_0x3bab('0x20')][_0x3bab('0x16')](()=>{const _0x3a151b=_0xe659b2[_0x3bab('0x5')](_0x2591ef);let _0x551d0a=_0x3a151b?_0xe659b2[_0x3bab('0x24')](_0x3a151b):null,_0x555863=_0x2591ef[_0x3bab('0x6')](_0x3bab('0x1'))||null;const _0x3a246d=_0x266570['tableWidth']||_0x555863,_0x387256=_0x266570['columnWidths']||_0x551d0a,_0x3f369b=this[_0x3bab('0x14')][_0x3bab('0x1f')][_0x3bab('0x22')](_0x3bab('0x0'))['me'];for(const _0x5cd954 of _0xad4412[_0x3bab('0x25')]()){const _0x10989f=_0x5cd954[_0x3bab('0x1a')]();if('resizeTable'===_0x5cd954['subType']&&_0x10989f===_0x2591ef){_0x5cd954['author']!==_0x3f369b&&_0x5cd954[_0x3bab('0x10')]();const _0x5642f5=_0x5cd954[_0x3bab('0x7')][_0x3bab('0xa')];_0x555863=_0x5642f5[0x0][_0x3bab('0x1')],_0x551d0a=_0x5642f5[0x0][_0x3bab('0x9')];break;}}_0x37db1f({'table':_0x2591ef,'tableWidth':_0x3a246d,'columnWidths':_0x387256}),_0xad4412[_0x3bab('0x4')](_0x2591ef,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x555863,'columnWidths':_0x551d0a}],'formatGroupId':_0x3bab('0x8')},[],'resizeTable');});}[_0x3bab('0xe')](_0x37f080){if(_0x3bab('0x3')!=_0x37f080[_0x3bab('0x1e')]&&_0x3bab('0xd')!=_0x37f080[_0x3bab('0x1e')])return;const {data:_0x5658c5}=_0x37f080;if(_0x5658c5&&'resizeTable'===_0x5658c5[_0x3bab('0x27')]){const _0x4e9e83='*Format:*\x20resize\x20table';return{'type':_0x3bab('0xf'),'content':_0x6379c4(this[_0x3bab('0x14')][_0x3bab('0x2')],_0x4e9e83)};}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x71c3=['data','_enableDefaultAttributesIntegration','activeMarkers','setAttribute','mapper','setTableRowHeader','data-suggestion','writer','parent','setTableColumnHeader','_acceptFormatSuggestionCallbackFactory','removeAttribute','consumable','includes','cell','showSuggestionHighlights','forceValue','createTableWalker','FORMAT_HEADER_COLUMN','downcastDispatcher','type','unbindElementFromMarkerName','plugins','FORMAT_HEADER_ROW','toViewElement','_handleLegacySuggestions','editor','item','nodeBefore','end','markerRange','options','TrackChangesEditing','FORMAT_REGULAR_COLUMN','editing','commandName','accept','_registerLegacyDescription','ck-suggestion-marker-','ck-suggestion-marker--active','format','headingColumns','getSuggestion','nodeAfter','registerAttributeLabel','bindElementToMarker','stop','markerNameToElements','commandParams','formatBlock','markerName','consume','addClass','_descriptionFactory','name','_splitMarkerName','start','addMarker:suggestion','locale','_suggestionFactory','registerCustomCallback','requires','FORMAT_REGULAR_ROW','removeClass','highest','*Format:*\x20%0','get'];(function(_0x1f7926,_0x71c37a){const _0x48e1ae=function(_0x529646){while(--_0x529646){_0x1f7926['push'](_0x1f7926['shift']());}};_0x48e1ae(++_0x71c37a);}(_0x71c3,0x6c));const _0x48e1=function(_0x1f7926,_0x71c37a){_0x1f7926=_0x1f7926-0x0;let _0x48e1ae=_0x71c3[_0x1f7926];return _0x48e1ae;};import{Plugin as _0x54a305}from'ckeditor5/src/core';import _0x3e5919 from'./table';import{getTranslation as _0x119b48}from'../utils/common-translations';export default class St extends _0x54a305{static get[_0x48e1('0x14')](){return[_0x3e5919];}['afterInit'](){const _0x397c5b=this['editor'];if(!_0x397c5b[_0x48e1('0x30')]['has']('TableEditing'))return;const _0x214ff1=_0x397c5b[_0x48e1('0x11')],_0x255935=_0x397c5b[_0x48e1('0x30')][_0x48e1('0x19')](_0x48e1('0x3a'));_0x255935[_0x48e1('0x1b')](_0x48e1('0x1f'),[],['headingRows']),_0x255935[_0x48e1('0x1b')](_0x48e1('0x23'),[],[_0x48e1('0x0')]),_0x255935[_0x48e1('0xc')]['registerAttributeLabel']('headingRows',_0x119b48(_0x214ff1,_0x48e1('0x31'))),_0x255935[_0x48e1('0xc')][_0x48e1('0x3')](_0x48e1('0x0'),_0x119b48(_0x214ff1,_0x48e1('0x2c'))),this[_0x48e1('0x33')]();}[_0x48e1('0x33')](){const _0x1dc324=this[_0x48e1('0x34')][_0x48e1('0x30')][_0x48e1('0x19')](_0x48e1('0x3a')),_0x12e6c2=this[_0x48e1('0x34')][_0x48e1('0x30')][_0x48e1('0x19')]('TableUtils'),_0x274b5a=this['editor'][_0x48e1('0x30')]['get'](_0x3e5919)[_0x48e1('0x24')]();function _0x19d5b5({showActiveMarker:_0x864fe5=!0x0,setDataAttribute:_0x596b80=!0x0}={}){return(_0x3b3fc2,_0x591edb,_0x8f048d)=>{const {type:_0x527086,id:_0x4fc25a}=_0x1dc324[_0x48e1('0xe')](_0x591edb[_0x48e1('0x9')]),_0x581b4e=_0x1dc324['getSuggestion'](_0x4fc25a),_0x298866=_0x581b4e['data'];if(_0x48e1('0x8')!=_0x581b4e[_0x48e1('0x2e')]||!_0x298866||_0x48e1('0x23')!=_0x298866[_0x48e1('0x3d')])return;if(_0x591edb[_0x48e1('0x35')])return void _0x3b3fc2[_0x48e1('0x5')]();if(!_0x8f048d[_0x48e1('0x26')][_0x48e1('0xa')](_0x591edb[_0x48e1('0x38')],_0x3b3fc2[_0x48e1('0xd')]))return;const _0x1b10ae=_0x591edb[_0x48e1('0x38')][_0x48e1('0xf')][_0x48e1('0x2')],_0x464963=_0x591edb[_0x48e1('0x38')][_0x48e1('0x37')][_0x48e1('0x36')],_0x2d7bf1=_0x1b10ae[_0x48e1('0x22')][_0x48e1('0x22')],{column:_0x35d25a}=_0x12e6c2['getCellLocation'](_0x1b10ae),{column:_0x59d17b}=_0x12e6c2['getCellLocation'](_0x464963);for(let _0x4f4748=_0x35d25a;_0x4f4748<=_0x59d17b;_0x4f4748++){const _0x249de5=_0x12e6c2[_0x48e1('0x2b')](_0x2d7bf1,{'column':_0x4f4748,'includeAllSlots':!0x1});for(const _0x64978f of _0x249de5){const _0x1b1543=_0x64978f[_0x48e1('0x28')],_0xbea763=_0x8f048d[_0x48e1('0x1e')][_0x48e1('0x32')](_0x1b1543);_0x8f048d[_0x48e1('0x21')][_0x48e1('0xb')](_0x48e1('0x40')+_0x527086,_0xbea763),_0x596b80&&_0x8f048d[_0x48e1('0x21')][_0x48e1('0x1d')](_0x48e1('0x20'),_0x4fc25a,_0xbea763),_0x8f048d[_0x48e1('0x1e')][_0x48e1('0x4')](_0xbea763,_0x591edb[_0x48e1('0x9')]),_0x864fe5&&(_0x1dc324[_0x48e1('0x1c')][_0x48e1('0x27')](_0x591edb[_0x48e1('0x9')])?_0x8f048d['writer']['addClass']('ck-suggestion-marker--active',_0xbea763):_0x8f048d[_0x48e1('0x21')]['removeClass'](_0x48e1('0x41'),_0xbea763));}}};}_0x1dc324[_0x48e1('0x12')]['registerCustomCallback'](_0x48e1('0x8'),_0x48e1('0x1f'),_0x48e1('0x3e'),_0x274b5a),_0x1dc324['_suggestionFactory'][_0x48e1('0x13')](_0x48e1('0x8'),_0x48e1('0x23'),_0x48e1('0x3e'),_0x274b5a),this[_0x48e1('0x34')][_0x48e1('0x3c')][_0x48e1('0x2d')]['on']('addMarker:suggestion',_0x19d5b5(),{'priority':_0x48e1('0x17')}),this[_0x48e1('0x34')][_0x48e1('0x1a')][_0x48e1('0x2d')]['on'](_0x48e1('0x10'),(_0x2f12ea,_0x1f1bbf,_0xb32521)=>{_0xb32521[_0x48e1('0x39')][_0x48e1('0x29')]&&_0x19d5b5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f12ea,_0x1f1bbf,_0xb32521);},{'priority':_0x48e1('0x17')}),this[_0x48e1('0x34')]['editing'][_0x48e1('0x2d')]['on']('removeMarker:suggestion',(_0x57d7f3,_0xfd6c8b,_0x1cd648)=>{const {type:_0x2ffe0d,id:_0x1dfdc7}=_0x1dc324['_splitMarkerName'](_0xfd6c8b['markerName']),_0x5008a6=_0x1dc324[_0x48e1('0x1')](_0x1dfdc7),_0x33f46f=_0x5008a6[_0x48e1('0x1a')];if(_0x48e1('0x8')!=_0x5008a6[_0x48e1('0x2e')]||!_0x33f46f||_0x48e1('0x23')!=_0x33f46f[_0x48e1('0x3d')])return;const _0x218890=_0x1cd648[_0x48e1('0x1e')][_0x48e1('0x6')](_0xfd6c8b[_0x48e1('0x9')]);if(_0x218890)for(const _0x4929e7 of _0x218890)_0x1cd648['writer'][_0x48e1('0x16')](_0x48e1('0x40')+_0x2ffe0d,_0x4929e7),_0x1cd648[_0x48e1('0x21')]['removeClass'](_0x48e1('0x41'),_0x4929e7),_0x1cd648[_0x48e1('0x21')][_0x48e1('0x25')]('data-suggestion',_0x4929e7),_0x1cd648['mapper'][_0x48e1('0x2f')](_0x4929e7,_0xfd6c8b['markerName']);},{'priority':'highest'}),this[_0x48e1('0x3f')]();}[_0x48e1('0x3f')](){const _0x1013ad=this[_0x48e1('0x34')],_0x580497=_0x1013ad[_0x48e1('0x11')];function _0x2255f1(_0x262c8b){return{'type':_0x48e1('0x42'),'content':_0x119b48(_0x580497,_0x48e1('0x18'),_0x262c8b)};}_0x1013ad['plugins'][_0x48e1('0x19')]('TrackChangesEditing')[_0x48e1('0xc')]['registerDescriptionCallback'](_0x21056e=>{if(_0x48e1('0x8')!=_0x21056e[_0x48e1('0x2e')])return;const {data:_0x5b631c}=_0x21056e;if(_0x5b631c){if(_0x48e1('0x1f')==_0x5b631c['commandName']){const _0x573fbd=_0x5b631c[_0x48e1('0x7')][0x0][_0x48e1('0x2a')];return _0x2255f1(_0x119b48(_0x580497,_0x573fbd?_0x48e1('0x31'):_0x48e1('0x15')));}if(_0x48e1('0x23')==_0x5b631c[_0x48e1('0x3d')]){const _0x24a486=_0x5b631c['commandParams'][0x0]['forceValue'];return _0x2255f1(_0x119b48(_0x580497,_0x24a486?_0x48e1('0x2c'):_0x48e1('0x3b')));}}});}}
23
+ const _0x2dc4=['setTableColumnHeader','_descriptionFactory','stop','data-suggestion','unbindElementFromMarkerName','ck-suggestion-marker-','highest','FORMAT_REGULAR_ROW','markerName','editor','TrackChangesEditing','get','setAttribute','removeClass','accept','mapper','_suggestionFactory','name','FORMAT_REGULAR_COLUMN','writer','includes','consume','requires','_acceptFormatSuggestionCallbackFactory','addClass','_handleLegacySuggestions','addMarker:suggestion','TableEditing','setTableRowHeader','FORMAT_HEADER_COLUMN','afterInit','activeMarkers','getSuggestion','markerRange','formatBlock','registerAttributeLabel','has','ck-suggestion-marker--active','markerNameToElements','registerCustomCallback','forceValue','format','_enableDefaultAttributesIntegration','parent','headingRows','commandParams','getCellLocation','nodeBefore','FORMAT_HEADER_ROW','plugins','registerDescriptionCallback','data','item','commandName','locale','nodeAfter','cell','start','downcastDispatcher','_registerLegacyDescription','editing','type'];(function(_0x279338,_0x2dc467){const _0x17785c=function(_0x2b0d98){while(--_0x2b0d98){_0x279338['push'](_0x279338['shift']());}};_0x17785c(++_0x2dc467);}(_0x2dc4,0x10a));const _0x1778=function(_0x279338,_0x2dc467){_0x279338=_0x279338-0x0;let _0x17785c=_0x2dc4[_0x279338];return _0x17785c;};import{Plugin as _0x56d380}from'ckeditor5/src/core';import _0x3061a1 from'./table';import{getTranslation as _0x5aef08}from'../utils/common-translations';export default class St extends _0x56d380{static get[_0x1778('0x4')](){return[_0x3061a1];}[_0x1778('0xc')](){const _0xcb79d1=this['editor'];if(!_0xcb79d1[_0x1778('0x1f')][_0x1778('0x12')](_0x1778('0x9')))return;const _0x35e502=_0xcb79d1['locale'],_0x2a0867=_0xcb79d1['plugins'][_0x1778('0x37')]('TrackChangesEditing');_0x2a0867[_0x1778('0x18')](_0x1778('0xa'),[],[_0x1778('0x1a')]),_0x2a0867['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x2a0867[_0x1778('0x2d')][_0x1778('0x11')](_0x1778('0x1a'),_0x5aef08(_0x35e502,_0x1778('0x1e'))),_0x2a0867[_0x1778('0x2d')][_0x1778('0x11')]('headingColumns',_0x5aef08(_0x35e502,_0x1778('0xb'))),this[_0x1778('0x7')]();}['_handleLegacySuggestions'](){const _0x4edddf=this['editor']['plugins'][_0x1778('0x37')](_0x1778('0x36')),_0x4590fe=this['editor']['plugins'][_0x1778('0x37')]('TableUtils'),_0x11fd98=this[_0x1778('0x35')]['plugins']['get'](_0x3061a1)[_0x1778('0x5')]();function _0x41e532({showActiveMarker:_0x56e534=!0x0,setDataAttribute:_0x3f44eb=!0x0}={}){return(_0x5de40c,_0x56fdfa,_0x33b2d)=>{const {type:_0x5e33bb,id:_0x1a2fb1}=_0x4edddf['_splitMarkerName'](_0x56fdfa[_0x1778('0x34')]),_0x19138f=_0x4edddf[_0x1778('0xe')](_0x1a2fb1),_0x3d7310=_0x19138f[_0x1778('0x21')];if(_0x1778('0x10')!=_0x19138f[_0x1778('0x2b')]||!_0x3d7310||'setTableColumnHeader'!=_0x3d7310[_0x1778('0x23')])return;if(_0x56fdfa[_0x1778('0x22')])return void _0x5de40c[_0x1778('0x2e')]();if(!_0x33b2d['consumable'][_0x1778('0x3')](_0x56fdfa[_0x1778('0xf')],_0x5de40c[_0x1778('0x3d')]))return;const _0x5dd2a2=_0x56fdfa['markerRange'][_0x1778('0x27')][_0x1778('0x25')],_0x46e6ed=_0x56fdfa[_0x1778('0xf')]['end'][_0x1778('0x1d')],_0x4faae2=_0x5dd2a2[_0x1778('0x19')][_0x1778('0x19')],{column:_0xf71748}=_0x4590fe[_0x1778('0x1c')](_0x5dd2a2),{column:_0xce92c}=_0x4590fe[_0x1778('0x1c')](_0x46e6ed);for(let _0x5565fb=_0xf71748;_0x5565fb<=_0xce92c;_0x5565fb++){const _0x2ea430=_0x4590fe['createTableWalker'](_0x4faae2,{'column':_0x5565fb,'includeAllSlots':!0x1});for(const _0x12eb96 of _0x2ea430){const _0x3607d9=_0x12eb96[_0x1778('0x26')],_0x16f443=_0x33b2d[_0x1778('0x3b')]['toViewElement'](_0x3607d9);_0x33b2d[_0x1778('0x1')][_0x1778('0x6')](_0x1778('0x31')+_0x5e33bb,_0x16f443),_0x3f44eb&&_0x33b2d['writer'][_0x1778('0x38')](_0x1778('0x2f'),_0x1a2fb1,_0x16f443),_0x33b2d[_0x1778('0x3b')]['bindElementToMarker'](_0x16f443,_0x56fdfa['markerName']),_0x56e534&&(_0x4edddf[_0x1778('0xd')][_0x1778('0x2')](_0x56fdfa['markerName'])?_0x33b2d[_0x1778('0x1')][_0x1778('0x6')](_0x1778('0x13'),_0x16f443):_0x33b2d['writer'][_0x1778('0x39')](_0x1778('0x13'),_0x16f443));}}};}_0x4edddf[_0x1778('0x3c')][_0x1778('0x15')](_0x1778('0x10'),_0x1778('0xa'),'accept',_0x11fd98),_0x4edddf[_0x1778('0x3c')][_0x1778('0x15')](_0x1778('0x10'),_0x1778('0x2c'),_0x1778('0x3a'),_0x11fd98),this[_0x1778('0x35')][_0x1778('0x2a')][_0x1778('0x28')]['on'](_0x1778('0x8'),_0x41e532(),{'priority':'highest'}),this[_0x1778('0x35')][_0x1778('0x21')][_0x1778('0x28')]['on'](_0x1778('0x8'),(_0x1b5968,_0x548f1c,_0x4fa181)=>{_0x4fa181['options']['showSuggestionHighlights']&&_0x41e532({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b5968,_0x548f1c,_0x4fa181);},{'priority':'highest'}),this[_0x1778('0x35')][_0x1778('0x2a')]['downcastDispatcher']['on']('removeMarker:suggestion',(_0x49fa23,_0x52a683,_0x3d8391)=>{const {type:_0x5eb99b,id:_0x5497fb}=_0x4edddf['_splitMarkerName'](_0x52a683[_0x1778('0x34')]),_0x3b4bdd=_0x4edddf['getSuggestion'](_0x5497fb),_0xdc90c=_0x3b4bdd[_0x1778('0x21')];if(_0x1778('0x10')!=_0x3b4bdd[_0x1778('0x2b')]||!_0xdc90c||_0x1778('0x2c')!=_0xdc90c[_0x1778('0x23')])return;const _0x25e342=_0x3d8391[_0x1778('0x3b')][_0x1778('0x14')](_0x52a683[_0x1778('0x34')]);if(_0x25e342)for(const _0x2b6b1c of _0x25e342)_0x3d8391[_0x1778('0x1')][_0x1778('0x39')](_0x1778('0x31')+_0x5eb99b,_0x2b6b1c),_0x3d8391[_0x1778('0x1')][_0x1778('0x39')]('ck-suggestion-marker--active',_0x2b6b1c),_0x3d8391[_0x1778('0x1')]['removeAttribute'](_0x1778('0x2f'),_0x2b6b1c),_0x3d8391['mapper'][_0x1778('0x30')](_0x2b6b1c,_0x52a683['markerName']);},{'priority':_0x1778('0x32')}),this[_0x1778('0x29')]();}[_0x1778('0x29')](){const _0x3d969d=this['editor'],_0x5f48eb=_0x3d969d[_0x1778('0x24')];function _0x5ef128(_0x456923){return{'type':_0x1778('0x17'),'content':_0x5aef08(_0x5f48eb,'*Format:*\x20%0',_0x456923)};}_0x3d969d['plugins']['get'](_0x1778('0x36'))[_0x1778('0x2d')][_0x1778('0x20')](_0x5e0f97=>{if(_0x1778('0x10')!=_0x5e0f97[_0x1778('0x2b')])return;const {data:_0x1efd75}=_0x5e0f97;if(_0x1efd75){if(_0x1778('0xa')==_0x1efd75[_0x1778('0x23')]){const _0x22474f=_0x1efd75['commandParams'][0x0][_0x1778('0x16')];return _0x5ef128(_0x5aef08(_0x5f48eb,_0x22474f?_0x1778('0x1e'):_0x1778('0x33')));}if(_0x1778('0x2c')==_0x1efd75[_0x1778('0x23')]){const _0xaded93=_0x1efd75[_0x1778('0x1b')][0x0][_0x1778('0x16')];return _0x5ef128(_0x5aef08(_0x5f48eb,_0xaded93?_0x1778('0xb'):_0x1778('0x0')));}}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c75=['findAncestor','set:isEnabled','formatBlock','low','editor','getRanges','get','requires','document','containsRange','commandName','plugins','model','TrackChangesEditing','execute','*Merge\x20cells*','createRangeOn','cell','enableCommand','isInContent','TableEditing','change','push','mergeTableCellDown','_isForcedDefaultExecutionBlock','mergeTableCellRight','size','registerCustomCallback','splitTableCellHorizontally','fromRange','subType','mergeTableCells','_areMergableCells','*Split\x20cell:*\x20vertically','refresh','has','isEnabled','mergeTableCellUp','setSelection','mergeTableCellLeft','getCellLocation','from','markMultiRangeBlockFormat','getAncestors','*Split\x20cell:*\x20horizontally','table','selection','trackChanges','commands','length','locale','map','find','filter','$graveyard','horizontally','accept','splitTableCellVertically','_areSelectedCellsMergable','format','createTableWalker','TableUtils','value','add','forceDefaultExecution','author','direction','root','_suggestionFactory','_descriptionFactory','type','getSelectionAffectedTableCells','registerDescriptionCallback','insertion','stop','getFirstPosition','tableCell','element','highest'];(function(_0x3abc12,_0x2c7551){const _0x42206b=function(_0x487f4f){while(--_0x487f4f){_0x3abc12['push'](_0x3abc12['shift']());}};_0x42206b(++_0x2c7551);}(_0x2c75,0x15a));const _0x4220=function(_0x3abc12,_0x2c7551){_0x3abc12=_0x3abc12-0x0;let _0x42206b=_0x2c75[_0x3abc12];return _0x42206b;};import{Plugin as _0x4fe27f}from'ckeditor5/src/core';import _0x2239ae from'./table';import{LiveRange as _0x5c1c4f}from'ckeditor5/src/engine';import{getTranslation as _0x5b6bcf}from'../utils/common-translations';export default class yt extends _0x4fe27f{static get[_0x4220('0x38')](){return[_0x2239ae];}['afterInit'](){const _0x28040f=this[_0x4220('0x35')],_0x419275=_0x28040f[_0x4220('0x3d')][_0x4220('0x39')][_0x4220('0x10')],_0x4f1735=_0x28040f[_0x4220('0x14')];if(!_0x28040f[_0x4220('0x3c')][_0x4220('0x5')](_0x4220('0x45')))return;const _0x3bee50=_0x28040f[_0x4220('0x3c')]['get'](_0x4220('0x3e')),_0x458944=_0x28040f[_0x4220('0x3c')]['get']('TableUtils'),_0x50efa1=_0x28040f[_0x4220('0x3c')][_0x4220('0x37')](_0x2239ae);_0x50efa1['_tablePostFixingSubtypes'][_0x4220('0x47')](_0x4220('0x1')),_0x3bee50[_0x4220('0x43')](_0x4220('0x1'),()=>{const _0x32d734=_0x458944['getSelectionAffectedTableCells'](_0x28040f['model'][_0x4220('0x39')][_0x4220('0x10')]);_0x28040f[_0x4220('0x3d')][_0x4220('0x46')](()=>{_0x3bee50[_0x4220('0xc')](_0x32d734,{'commandName':_0x4220('0x1'),'commandParams':[]},[],_0x4220('0x1'));});}),_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x4220('0x1'))['on'](_0x4220('0x3f'),(_0x533266,_0x28726d)=>{_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x4220('0x11'))[_0x4220('0x20')]&&(_0x28726d[_0x4220('0x13')]>0x0&&_0x28726d[_0x28726d[_0x4220('0x13')]-0x1]&&_0x28726d[_0x28726d['length']-0x1][_0x4220('0x22')]||_0x3bee50[_0x4220('0x49')]||this['_areSelectedCellsMergable']()||_0x533266['stop']());},{'priority':_0x4220('0x30')});for(const _0x4de529 of[_0x4220('0x7'),'mergeTableCellRight',_0x4220('0x48'),_0x4220('0x9')]){const _0x5658a9=_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x4de529);_0x3bee50['enableCommand'](_0x4de529,()=>{const _0x172669=_0x28040f[_0x4220('0x3d')][_0x4220('0x39')]['selection'][_0x4220('0x2d')]()[_0x4220('0xd')]()[_0x4220('0x16')](_0x43a25d=>_0x43a25d['is'](_0x4220('0x2f'),_0x4220('0x2e'))),_0x28225f=_0x5658a9['value'];_0x28040f[_0x4220('0x3d')][_0x4220('0x46')](()=>{_0x3bee50[_0x4220('0xc')]([_0x172669,_0x28225f],{'commandName':'mergeTableCells','commandParams':[]},[],_0x4220('0x1'));});});}for(const _0x5d92bd of[_0x4220('0x1b'),_0x4220('0x4d')]){const _0x479ce7=_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x5d92bd);_0x3bee50[_0x4220('0x43')](_0x5d92bd,()=>{const _0x1fd3a6=_0x458944[_0x4220('0x29')](_0x28040f[_0x4220('0x3d')]['document'][_0x4220('0x10')])[0x0],_0xbefe95=_0x1fd3a6[_0x4220('0x31')](_0x4220('0xf')),{column:_0x3b3b31,row:_0x354738}=_0x458944[_0x4220('0xa')](_0x1fd3a6);let _0x73482=[];if(_0x4220('0x19')==_0x479ce7[_0x4220('0x24')]){const _0x206df6=_0x458944[_0x4220('0x1e')](_0xbefe95,{'startRow':_0x354738,'endRow':_0x354738,'includeAllSlots':!0x0});_0x73482=Array[_0x4220('0xb')](_0x206df6)['map'](_0x507d33=>_0x507d33[_0x4220('0x42')]);}else{const _0x283d15=_0x458944[_0x4220('0x1e')](_0xbefe95,{'column':_0x3b3b31,'includeAllSlots':!0x0});_0x73482=Array[_0x4220('0xb')](_0x283d15)[_0x4220('0x15')](_0x3aa70a=>_0x3aa70a[_0x4220('0x42')]);}_0x28040f[_0x4220('0x3d')][_0x4220('0x46')](_0x212576=>{_0x3bee50['markBlockFormat'](_0x212576[_0x4220('0x41')](_0x1fd3a6),{'commandName':_0x5d92bd,'commandParams':[]},_0x73482,_0x5d92bd);});});}_0x3bee50[_0x4220('0x27')]['registerDescriptionCallback'](_0x5aa29e=>{if('formatBlock'!=_0x5aa29e['type']&&'formatInline'!=_0x5aa29e[_0x4220('0x28')])return;const {data:_0x4d38ae}=_0x5aa29e;return _0x4d38ae&&_0x4220('0x1')==_0x4d38ae[_0x4220('0x3b')]?{'type':_0x4220('0x1d'),'content':_0x5b6bcf(_0x4f1735,_0x4220('0x40'))}:void 0x0;}),_0x3bee50['_descriptionFactory'][_0x4220('0x2a')](_0x121c2f=>{if('formatBlock'!=_0x121c2f[_0x4220('0x28')]&&'formatInline'!=_0x121c2f[_0x4220('0x28')])return;const {data:_0x1902bf}=_0x121c2f;return _0x1902bf?'splitTableCellVertically'==_0x1902bf[_0x4220('0x3b')]?{'type':'format','content':_0x5b6bcf(_0x4f1735,_0x4220('0x3'))}:_0x4220('0x4d')==_0x1902bf[_0x4220('0x3b')]?{'type':_0x4220('0x1d'),'content':_0x5b6bcf(_0x4f1735,_0x4220('0xe'))}:void 0x0:void 0x0;});const _0x3d6b10=_0x50efa1['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a5e20 of[_0x4220('0x7'),_0x4220('0x4a'),'mergeTableCellDown','mergeTableCellLeft'])_0x3bee50[_0x4220('0x26')][_0x4220('0x4c')](_0x4220('0x33'),_0x1a5e20,'accept',_0x3d6b10);for(const _0x3ea0ff of[_0x4220('0x1b'),_0x4220('0x4d')])_0x3bee50[_0x4220('0x26')][_0x4220('0x4c')](_0x4220('0x33'),_0x3ea0ff,'accept',_0x3d6b10);_0x3bee50[_0x4220('0x26')][_0x4220('0x4c')]('formatBlock','mergeTableCells',_0x4220('0x1a'),_0x4a3aaf=>{_0x28040f['model']['change'](_0x12d8e0=>{const _0x3148c7=Array['from'](_0x419275[_0x4220('0x36')]())[_0x4220('0x15')](_0x2030c9=>_0x5c1c4f[_0x4220('0x4e')](_0x2030c9));_0x12d8e0[_0x4220('0x8')](_0x4a3aaf),_0x28040f[_0x4220('0x12')][_0x4220('0x37')]('mergeTableCells')[_0x4220('0x4')](),_0x28040f['execute'](_0x4220('0x1'),{'forceDefaultExecution':!0x0});const _0xd36370=_0x3148c7[_0x4220('0x17')](_0x241d61=>_0x4220('0x18')!=_0x241d61[_0x4220('0x25')]['rootName']);_0xd36370[_0x4220('0x13')]>0x0&&_0x12d8e0['setSelection'](_0xd36370);for(const _0xa9d31c of _0x3148c7)_0xa9d31c['detach']();});});for(const _0x3ebb6f of[_0x4220('0x7'),_0x4220('0x48'),_0x4220('0x9'),'mergeTableCellRight']){const _0x4becae=_0x28040f['commands']['get'](_0x3ebb6f);_0x4becae['on'](_0x4220('0x32'),(_0x41b4b1,_0x56e8e9,_0xa5002f)=>{if(_0xa5002f){const _0xfd9c26=_0x28040f[_0x4220('0x3d')]['document'][_0x4220('0x10')]['getFirstPosition']()[_0x4220('0xd')]()['find'](_0x44924e=>_0x44924e['is'](_0x4220('0x2f'),_0x4220('0x2e')));this[_0x4220('0x2')](_0x4becae[_0x4220('0x20')],_0xfd9c26)||(_0x41b4b1['return']=!0x1,_0x41b4b1[_0x4220('0x2c')]());}},{'priority':_0x4220('0x34')});}}[_0x4220('0x1c')](){const _0x482b02=this['editor'][_0x4220('0x12')][_0x4220('0x37')](_0x4220('0x1')),_0x471b34=this[_0x4220('0x35')]['plugins'][_0x4220('0x37')](_0x4220('0x1f'));if(!_0x482b02[_0x4220('0x6')])return!0x1;const _0x5b4327=_0x471b34['getSelectionAffectedTableCells'](this[_0x4220('0x35')][_0x4220('0x3d')][_0x4220('0x39')]['selection']);for(const _0x1420cd of _0x5b4327)for(const _0x5166ae of _0x5b4327)if(_0x1420cd!=_0x5166ae&&!this[_0x4220('0x2')](_0x1420cd,_0x5166ae))return!0x1;return!0x0;}[_0x4220('0x2')](_0x2baca9,_0x234521){const _0xa5c43f=this[_0x4220('0x35')][_0x4220('0x3c')][_0x4220('0x37')]('TrackChangesEditing'),_0x53a376=this[_0x4220('0x35')]['model']['createRangeOn'](_0x2baca9),_0x396221=this[_0x4220('0x35')][_0x4220('0x3d')][_0x4220('0x41')](_0x234521),_0x1beaca=new Set(),_0x136967=new Set();for(const _0x226223 of _0xa5c43f['getSuggestions']())if((_0x4220('0x2b')==_0x226223['type']||'deletion'==_0x226223[_0x4220('0x28')]||_0x4220('0x1')==_0x226223[_0x4220('0x0')])&&_0x226223[_0x4220('0x44')])for(const _0x30ce16 of _0x226223[_0x4220('0x36')]())_0x30ce16[_0x4220('0x3a')](_0x53a376,!0x0)&&_0x1beaca[_0x4220('0x21')](_0x226223['type']+':'+_0x226223[_0x4220('0x23')]['id']),_0x30ce16[_0x4220('0x3a')](_0x396221,!0x0)&&_0x136967[_0x4220('0x21')](_0x226223[_0x4220('0x28')]+':'+_0x226223[_0x4220('0x23')]['id']);if(_0x1beaca[_0x4220('0x4b')]!=_0x136967[_0x4220('0x4b')])return!0x1;for(const _0x2b4164 of _0x1beaca)if(!_0x136967[_0x4220('0x5')](_0x2b4164))return!0x1;return!0x0;}}
23
+ const _0x17ef=['selection','getAncestors','_tablePostFixingSubtypes','afterInit','getSelectionAffectedTableCells','_areMergableCells','TableUtils','mergeTableCellLeft','enableCommand','author','insertion','from','*Merge\x20cells*','formatBlock','registerDescriptionCallback','createRangeOn','set:isEnabled','format','_suggestionFactory','locale','find','detach','isInContent','mergeTableCells','_areSelectedCellsMergable','commands','commandName','*Split\x20cell:*\x20vertically','subType','_isForcedDefaultExecutionBlock','element','stop','$graveyard','markBlockFormat','change','editor','size','TrackChangesEditing','mergeTableCellRight','isEnabled','markMultiRangeBlockFormat','mergeTableCellDown','getCellLocation','model','length','get','formatInline','plugins','getRanges','value','rootName','mergeTableCellUp','horizontally','document','_descriptionFactory','return','createTableWalker','registerCustomCallback','cell','map','containsRange','execute','splitTableCellHorizontally','findAncestor','TableEditing','trackChanges','splitTableCellVertically','tableCell','push','type','getSuggestions','add','*Split\x20cell:*\x20horizontally','deletion','low'];(function(_0x5cf8db,_0x17ef0e){const _0x1edc22=function(_0x4e934e){while(--_0x4e934e){_0x5cf8db['push'](_0x5cf8db['shift']());}};_0x1edc22(++_0x17ef0e);}(_0x17ef,0x1ea));const _0x1edc=function(_0x5cf8db,_0x17ef0e){_0x5cf8db=_0x5cf8db-0x0;let _0x1edc22=_0x17ef[_0x5cf8db];return _0x1edc22;};import{Plugin as _0x3756fc}from'ckeditor5/src/core';import _0x231ad9 from'./table';import{LiveRange as _0x29480d}from'ckeditor5/src/engine';import{getTranslation as _0x3272c5}from'../utils/common-translations';export default class yt extends _0x3756fc{static get['requires'](){return[_0x231ad9];}[_0x1edc('0x26')](){const _0x45eee1=this[_0x1edc('0x46')],_0x4c64fd=_0x45eee1['model'][_0x1edc('0xd')][_0x1edc('0x23')],_0x1181e9=_0x45eee1[_0x1edc('0x36')];if(!_0x45eee1[_0x1edc('0x7')]['has'](_0x1edc('0x18')))return;const _0x575cac=_0x45eee1[_0x1edc('0x7')]['get']('TrackChangesEditing'),_0x52d88a=_0x45eee1[_0x1edc('0x7')]['get'](_0x1edc('0x29')),_0x4e7131=_0x45eee1[_0x1edc('0x7')][_0x1edc('0x5')](_0x231ad9);_0x4e7131[_0x1edc('0x25')][_0x1edc('0x1c')](_0x1edc('0x3a')),_0x575cac[_0x1edc('0x2b')](_0x1edc('0x3a'),()=>{const _0x4e9dfe=_0x52d88a['getSelectionAffectedTableCells'](_0x45eee1[_0x1edc('0x3')][_0x1edc('0xd')][_0x1edc('0x23')]);_0x45eee1[_0x1edc('0x3')][_0x1edc('0x45')](()=>{_0x575cac[_0x1edc('0x0')](_0x4e9dfe,{'commandName':_0x1edc('0x3a'),'commandParams':[]},[],_0x1edc('0x3a'));});}),_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x1edc('0x3a'))['on'](_0x1edc('0x15'),(_0x3a40b9,_0x1bbe8e)=>{_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x1edc('0x19'))['value']&&(_0x1bbe8e['length']>0x0&&_0x1bbe8e[_0x1bbe8e[_0x1edc('0x4')]-0x1]&&_0x1bbe8e[_0x1bbe8e[_0x1edc('0x4')]-0x1]['forceDefaultExecution']||_0x575cac[_0x1edc('0x40')]||this[_0x1edc('0x3b')]()||_0x3a40b9[_0x1edc('0x42')]());},{'priority':'highest'});for(const _0x430443 of[_0x1edc('0xb'),_0x1edc('0x49'),_0x1edc('0x1'),_0x1edc('0x2a')]){const _0x210e98=_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x430443);_0x575cac['enableCommand'](_0x430443,()=>{const _0x4eb8e4=_0x45eee1['model'][_0x1edc('0xd')][_0x1edc('0x23')]['getFirstPosition']()[_0x1edc('0x24')]()[_0x1edc('0x37')](_0x66ff08=>_0x66ff08['is'](_0x1edc('0x41'),_0x1edc('0x1b'))),_0x21955e=_0x210e98['value'];_0x45eee1['model'][_0x1edc('0x45')](()=>{_0x575cac[_0x1edc('0x0')]([_0x4eb8e4,_0x21955e],{'commandName':'mergeTableCells','commandParams':[]},[],_0x1edc('0x3a'));});});}for(const _0x198c9a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d7a4d=_0x45eee1['commands']['get'](_0x198c9a);_0x575cac[_0x1edc('0x2b')](_0x198c9a,()=>{const _0x1eea47=_0x52d88a[_0x1edc('0x27')](_0x45eee1[_0x1edc('0x3')]['document']['selection'])[0x0],_0x12c16a=_0x1eea47[_0x1edc('0x17')]('table'),{column:_0x3daac4,row:_0x16cd50}=_0x52d88a[_0x1edc('0x2')](_0x1eea47);let _0x1a05c1=[];if(_0x1edc('0xc')==_0x1d7a4d['direction']){const _0x2730b4=_0x52d88a['createTableWalker'](_0x12c16a,{'startRow':_0x16cd50,'endRow':_0x16cd50,'includeAllSlots':!0x0});_0x1a05c1=Array[_0x1edc('0x2e')](_0x2730b4)[_0x1edc('0x13')](_0xdd3792=>_0xdd3792[_0x1edc('0x12')]);}else{const _0x50f033=_0x52d88a[_0x1edc('0x10')](_0x12c16a,{'column':_0x3daac4,'includeAllSlots':!0x0});_0x1a05c1=Array['from'](_0x50f033)[_0x1edc('0x13')](_0x2e3125=>_0x2e3125[_0x1edc('0x12')]);}_0x45eee1[_0x1edc('0x3')][_0x1edc('0x45')](_0x285cc7=>{_0x575cac[_0x1edc('0x44')](_0x285cc7['createRangeOn'](_0x1eea47),{'commandName':_0x198c9a,'commandParams':[]},_0x1a05c1,_0x198c9a);});});}_0x575cac[_0x1edc('0xe')][_0x1edc('0x31')](_0x1fc46d=>{if('formatBlock'!=_0x1fc46d['type']&&_0x1edc('0x6')!=_0x1fc46d['type'])return;const {data:_0x54fd53}=_0x1fc46d;return _0x54fd53&&_0x1edc('0x3a')==_0x54fd53[_0x1edc('0x3d')]?{'type':_0x1edc('0x34'),'content':_0x3272c5(_0x1181e9,_0x1edc('0x2f'))}:void 0x0;}),_0x575cac[_0x1edc('0xe')]['registerDescriptionCallback'](_0x10c5d5=>{if(_0x1edc('0x30')!=_0x10c5d5['type']&&'formatInline'!=_0x10c5d5[_0x1edc('0x1d')])return;const {data:_0x56f413}=_0x10c5d5;return _0x56f413?_0x1edc('0x1a')==_0x56f413[_0x1edc('0x3d')]?{'type':_0x1edc('0x34'),'content':_0x3272c5(_0x1181e9,_0x1edc('0x3e'))}:'splitTableCellHorizontally'==_0x56f413[_0x1edc('0x3d')]?{'type':_0x1edc('0x34'),'content':_0x3272c5(_0x1181e9,_0x1edc('0x20'))}:void 0x0:void 0x0;});const _0x5962b4=_0x4e7131['_acceptFormatSuggestionCallbackFactory']();for(const _0x104993 of[_0x1edc('0xb'),_0x1edc('0x49'),_0x1edc('0x1'),'mergeTableCellLeft'])_0x575cac[_0x1edc('0x35')][_0x1edc('0x11')](_0x1edc('0x30'),_0x104993,'accept',_0x5962b4);for(const _0x16f65d of[_0x1edc('0x1a'),_0x1edc('0x16')])_0x575cac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16f65d,'accept',_0x5962b4);_0x575cac['_suggestionFactory'][_0x1edc('0x11')](_0x1edc('0x30'),_0x1edc('0x3a'),'accept',_0x5b5de3=>{_0x45eee1[_0x1edc('0x3')][_0x1edc('0x45')](_0x5862b8=>{const _0x2fffe6=Array[_0x1edc('0x2e')](_0x4c64fd[_0x1edc('0x8')]())[_0x1edc('0x13')](_0x30b18a=>_0x29480d['fromRange'](_0x30b18a));_0x5862b8['setSelection'](_0x5b5de3),_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x1edc('0x3a'))['refresh'](),_0x45eee1[_0x1edc('0x15')](_0x1edc('0x3a'),{'forceDefaultExecution':!0x0});const _0x2f814e=_0x2fffe6['filter'](_0x127c38=>_0x1edc('0x43')!=_0x127c38['root'][_0x1edc('0xa')]);_0x2f814e[_0x1edc('0x4')]>0x0&&_0x5862b8['setSelection'](_0x2f814e);for(const _0xfdfda4 of _0x2fffe6)_0xfdfda4[_0x1edc('0x38')]();});});for(const _0x2552b5 of['mergeTableCellUp',_0x1edc('0x1'),_0x1edc('0x2a'),_0x1edc('0x49')]){const _0x1b530c=_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x2552b5);_0x1b530c['on'](_0x1edc('0x33'),(_0x18c785,_0x1d6291,_0x3883cb)=>{if(_0x3883cb){const _0x341d69=_0x45eee1[_0x1edc('0x3')]['document'][_0x1edc('0x23')]['getFirstPosition']()[_0x1edc('0x24')]()[_0x1edc('0x37')](_0x182b45=>_0x182b45['is']('element',_0x1edc('0x1b')));this[_0x1edc('0x28')](_0x1b530c[_0x1edc('0x9')],_0x341d69)||(_0x18c785[_0x1edc('0xf')]=!0x1,_0x18c785['stop']());}},{'priority':_0x1edc('0x22')});}}[_0x1edc('0x3b')](){const _0x516616=this['editor']['commands'][_0x1edc('0x5')]('mergeTableCells'),_0x409434=this[_0x1edc('0x46')][_0x1edc('0x7')][_0x1edc('0x5')](_0x1edc('0x29'));if(!_0x516616[_0x1edc('0x4a')])return!0x1;const _0x4912de=_0x409434[_0x1edc('0x27')](this[_0x1edc('0x46')][_0x1edc('0x3')]['document'][_0x1edc('0x23')]);for(const _0x3d199e of _0x4912de)for(const _0xe69a49 of _0x4912de)if(_0x3d199e!=_0xe69a49&&!this['_areMergableCells'](_0x3d199e,_0xe69a49))return!0x1;return!0x0;}[_0x1edc('0x28')](_0x5d6252,_0x16a453){const _0x5d1d73=this['editor'][_0x1edc('0x7')][_0x1edc('0x5')](_0x1edc('0x48')),_0x4c7592=this[_0x1edc('0x46')][_0x1edc('0x3')][_0x1edc('0x32')](_0x5d6252),_0x115a09=this[_0x1edc('0x46')][_0x1edc('0x3')][_0x1edc('0x32')](_0x16a453),_0x4f2737=new Set(),_0x399291=new Set();for(const _0x255d94 of _0x5d1d73[_0x1edc('0x1e')]())if((_0x1edc('0x2d')==_0x255d94[_0x1edc('0x1d')]||_0x1edc('0x21')==_0x255d94[_0x1edc('0x1d')]||'mergeTableCells'==_0x255d94[_0x1edc('0x3f')])&&_0x255d94[_0x1edc('0x39')])for(const _0x2bb960 of _0x255d94[_0x1edc('0x8')]())_0x2bb960[_0x1edc('0x14')](_0x4c7592,!0x0)&&_0x4f2737[_0x1edc('0x1f')](_0x255d94[_0x1edc('0x1d')]+':'+_0x255d94[_0x1edc('0x2c')]['id']),_0x2bb960[_0x1edc('0x14')](_0x115a09,!0x0)&&_0x399291['add'](_0x255d94[_0x1edc('0x1d')]+':'+_0x255d94[_0x1edc('0x2c')]['id']);if(_0x4f2737['size']!=_0x399291[_0x1edc('0x47')])return!0x1;for(const _0x1c2377 of _0x4f2737)if(!_0x399291['has'](_0x1c2377))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5851=['commands','tableOfContents','ELEMENT_TABLE_OF_CONTENTS','get','enableCommand','plugins','editor','TrackChangesEditing','locale','afterInit','insertTableOfContents'];(function(_0x56e9d9,_0x585109){const _0x18ed7c=function(_0x2272b1){while(--_0x2272b1){_0x56e9d9['push'](_0x56e9d9['shift']());}};_0x18ed7c(++_0x585109);}(_0x5851,0x1d1));const _0x18ed=function(_0x56e9d9,_0x585109){_0x56e9d9=_0x56e9d9-0x0;let _0x18ed7c=_0x5851[_0x56e9d9];return _0x18ed7c;};import{Plugin as _0x426da0}from'ckeditor5/src/core';import{getTranslation as _0x40fa98}from'../utils/common-translations';export default class _t extends _0x426da0{[_0x18ed('0x6')](){const _0x5c339c=this[_0x18ed('0x3')];if(!_0x5c339c[_0x18ed('0x8')]['get'](_0x18ed('0x7')))return;_0x5c339c[_0x18ed('0x2')][_0x18ed('0x0')]('TrackChangesEditing')[_0x18ed('0x1')]('insertTableOfContents');const _0x564a76=_0x5c339c['plugins'][_0x18ed('0x0')](_0x18ed('0x4')),_0x4dbbaa=_0x5c339c[_0x18ed('0x5')];_0x564a76['_descriptionFactory']['registerElementLabel'](_0x18ed('0x9'),_0x5237d3=>_0x40fa98(_0x4dbbaa,_0x18ed('0xa'),_0x5237d3));}}
23
+ const _0x3c05=['plugins','insertTableOfContents','registerElementLabel','get','TrackChangesEditing','_descriptionFactory','ELEMENT_TABLE_OF_CONTENTS','tableOfContents','locale','afterInit','commands','editor'];(function(_0x12570d,_0x3c05a6){const _0x223c98=function(_0xe7a86e){while(--_0xe7a86e){_0x12570d['push'](_0x12570d['shift']());}};_0x223c98(++_0x3c05a6);}(_0x3c05,0xb1));const _0x223c=function(_0x12570d,_0x3c05a6){_0x12570d=_0x12570d-0x0;let _0x223c98=_0x3c05[_0x12570d];return _0x223c98;};import{Plugin as _0x570dc7}from'ckeditor5/src/core';import{getTranslation as _0x475fca}from'../utils/common-translations';export default class _t extends _0x570dc7{[_0x223c('0x0')](){const _0x8870ff=this[_0x223c('0x2')];if(!_0x8870ff[_0x223c('0x1')][_0x223c('0x6')]('insertTableOfContents'))return;_0x8870ff[_0x223c('0x3')][_0x223c('0x6')](_0x223c('0x7'))['enableCommand'](_0x223c('0x4'));const _0x547f8f=_0x8870ff[_0x223c('0x3')][_0x223c('0x6')](_0x223c('0x7')),_0x26cd5b=_0x8870ff[_0x223c('0xb')];_0x547f8f[_0x223c('0x8')][_0x223c('0x5')](_0x223c('0xa'),_0x3f31f9=>_0x475fca(_0x26cd5b,_0x223c('0x9'),_0x3f31f9));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xafab=['has','tableCellHeight','tableCellBackgroundColor','join','data','editor','registerDescriptionCallback','TrackChangesTableProperties','tableProperties','accept','locale','tableBackgroundColor','tableBorderColor','getAttribute','formatBlock','registerCustomCallback','handleDiscardAction','start','tableBorderStyle','tableAlignment','TableCellPropertiesEditing','tableCellPadding','get','removeAttribute','change','table','tableCellProperties','tableWidth','tableCellVerticalAlignment','_getSuggestion','tableCellWidth','tableBorderWidth','batch','findAncestor','pluginName','tableCellBorderWidth','tableHeight','_suggestionFactory','format','*Format:*\x20change\x20table\x20cell\x20properties','handleSuggestionDescription','model','getSuggestionCallback','_descriptionFactory','TrackChangesEditing','selection','discard','_handlePropertyChange','nodeAfter','plugins','subType','tableCellHorizontalAlignment','enqueueChange','enableCommand','document'];(function(_0x5cc543,_0xafabe6){const _0x50b605=function(_0x16c715){while(--_0x16c715){_0x5cc543['push'](_0x5cc543['shift']());}};_0x50b605(++_0xafabe6);}(_0xafab,0x1ea));const _0x50b6=function(_0x5cc543,_0xafabe6){_0x5cc543=_0x5cc543-0x0;let _0x50b605=_0xafab[_0x5cc543];return _0x50b605;};import{Plugin as _0x413448}from'ckeditor5/src/core';import{getTranslation as _0x4ca49d}from'../utils/common-translations';export default class Mt extends _0x413448{constructor(_0x1bcd76){super(_0x1bcd76),this[_0x50b6('0xd')]=[_0x50b6('0x11'),_0x50b6('0x17'),_0x50b6('0x24'),_0x50b6('0x18'),_0x50b6('0x20'),_0x50b6('0x29'),_0x50b6('0x10')],this[_0x50b6('0x1f')]=['tableCellBorderColor','tableCellBorderStyle',_0x50b6('0x28'),_0x50b6('0x1a'),_0x50b6('0x23'),_0x50b6('0x6'),_0x50b6('0x7'),_0x50b6('0x1'),_0x50b6('0x21')];}static get[_0x50b6('0x27')](){return _0x50b6('0xc');}['afterInit'](){const _0x178d6b=this[_0x50b6('0xa')]['plugins'][_0x50b6('0x1b')](_0x50b6('0x31'));if(this[_0x50b6('0xa')][_0x50b6('0x36')][_0x50b6('0x5')]('TablePropertiesEditing')){for(const _0x368d20 of this[_0x50b6('0xd')])_0x178d6b[_0x50b6('0x3')](_0x368d20,(_0x2bbfc4,_0x28f9e7)=>{const _0x59a475=this[_0x50b6('0xa')][_0x50b6('0x2e')][_0x50b6('0x4')]['selection']['getFirstPosition']()[_0x50b6('0x26')](_0x50b6('0x1e'));this[_0x50b6('0x34')](_0x368d20,[_0x59a475],this[_0x50b6('0xd')],'tableProperties',_0x2bbfc4,_0x28f9e7);});_0x178d6b[_0x50b6('0x2a')]['registerCustomCallback'](_0x50b6('0x13'),_0x50b6('0xd'),_0x50b6('0xe'),_0x178d6b[_0x50b6('0x2a')][_0x50b6('0x2f')](_0x50b6('0x13'),null,'discard')),_0x178d6b['_suggestionFactory'][_0x50b6('0x14')](_0x50b6('0x13'),'tableProperties',_0x50b6('0x33'),(_0x1bfab2,_0x27def3)=>this[_0x50b6('0x15')](this['tableProperties'],_0x1bfab2,_0x27def3)),_0x178d6b[_0x50b6('0x2a')]['registerCustomCallback'](_0x50b6('0x13'),_0x50b6('0xd'),_0x50b6('0x8'),()=>!0x1);}if(this[_0x50b6('0xa')]['plugins']['has'](_0x50b6('0x19'))){for(const _0x2a51d6 of this[_0x50b6('0x1f')])_0x178d6b[_0x50b6('0x3')](_0x2a51d6,(_0x378a42,_0x4d7cdb)=>{const _0x144443=this[_0x50b6('0xa')]['plugins'][_0x50b6('0x1b')]('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model'][_0x50b6('0x4')][_0x50b6('0x32')]);this[_0x50b6('0x34')](_0x2a51d6,_0x144443,this[_0x50b6('0x1f')],_0x50b6('0x1f'),_0x378a42,_0x4d7cdb);});_0x178d6b['_suggestionFactory'][_0x50b6('0x14')](_0x50b6('0x13'),'tableCellProperties',_0x50b6('0xe'),_0x178d6b[_0x50b6('0x2a')][_0x50b6('0x2f')](_0x50b6('0x13'),null,_0x50b6('0x33'))),_0x178d6b[_0x50b6('0x2a')][_0x50b6('0x14')](_0x50b6('0x13'),'tableCellProperties',_0x50b6('0x33'),(_0x32b17b,_0x4b7b13)=>this['handleDiscardAction'](this[_0x50b6('0x1f')],_0x32b17b,_0x4b7b13)),_0x178d6b['_suggestionFactory'][_0x50b6('0x14')](_0x50b6('0x13'),_0x50b6('0x1f'),'join',()=>!0x1);}_0x178d6b[_0x50b6('0x30')][_0x50b6('0xb')](_0x2ca218=>this['handleSuggestionDescription'](_0x2ca218));}[_0x50b6('0x34')](_0x499c0d,_0x13e2d6,_0xa9f4f0,_0x55c5e4,_0x53515a,_0x5d5613){const _0x472532=this['editor']['plugins']['get'](_0x50b6('0x31'));this[_0x50b6('0xa')][_0x50b6('0x2e')][_0x50b6('0x2')](_0x5d5613[_0x50b6('0x25')],()=>{for(const _0xfbe6a7 of _0x13e2d6){if(this[_0x50b6('0x22')](_0xfbe6a7,_0x55c5e4))_0x53515a(_0x5d5613);else{const _0x1cdcb7={};for(const _0x35d586 of _0xa9f4f0){const _0x25d002=_0xfbe6a7[_0x50b6('0x12')](_0x35d586);void 0x0!==_0x25d002&&(_0x1cdcb7[_0x35d586]=_0x25d002);}_0x53515a(_0x5d5613),_0x472532['markBlockFormat'](_0xfbe6a7,{'commandParams':[_0x1cdcb7]},[],_0x55c5e4);}}});}['handleDiscardAction'](_0x3cdbc9,_0x505b3,_0x3cccd1){const _0x2e3847=_0x505b3[0x0][_0x50b6('0x16')][_0x50b6('0x35')],_0x4abb54=_0x3cccd1['commandParams'][0x0];this[_0x50b6('0xa')][_0x50b6('0x2e')][_0x50b6('0x1d')](_0x30e5d2=>{for(const _0x3e517d of _0x3cdbc9)void 0x0!==_0x4abb54[_0x3e517d]?_0x30e5d2['setAttribute'](_0x3e517d,_0x4abb54[_0x3e517d],_0x2e3847):_0x30e5d2[_0x50b6('0x1c')](_0x3e517d,_0x2e3847);});}[_0x50b6('0x2d')](_0x3d423a){if(_0x3d423a[_0x50b6('0x9')])switch(_0x3d423a[_0x50b6('0x0')]){case _0x50b6('0xd'):return{'type':_0x50b6('0x2b'),'content':_0x4ca49d(this[_0x50b6('0xa')][_0x50b6('0xf')],'*Format:*\x20change\x20table\x20properties')};case _0x50b6('0x1f'):return{'type':_0x50b6('0x2b'),'content':_0x4ca49d(this[_0x50b6('0xa')][_0x50b6('0xf')],_0x50b6('0x2c'))};}}[_0x50b6('0x22')](_0x244478,_0x12ffba){const _0x307019=this[_0x50b6('0xa')]['plugins'][_0x50b6('0x1b')]('TrackChangesEditing');for(const _0x590e44 of _0x307019['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ebec7=_0x590e44['getContainedElement']();if(_0x590e44[_0x50b6('0x0')]===_0x12ffba&&_0x5ebec7===_0x244478)return _0x590e44;}return null;}}
23
+ const _0x33bc=['getSuggestions','getFirstPosition','getAttribute','change','get','enableCommand','tableBorderStyle','getSelectionAffectedTableCells','model','tableWidth','handleSuggestionDescription','getSuggestionCallback','tableCellHorizontalAlignment','_getSuggestion','tableAlignment','locale','table','tableCellHeight','_descriptionFactory','tableCellBackgroundColor','tableProperties','has','_handlePropertyChange','plugins','*Format:*\x20change\x20table\x20properties','tableCellProperties','tableHeight','discard','TrackChangesEditing','start','markBlockFormat','registerCustomCallback','data','format','tableCellVerticalAlignment','TableCellPropertiesEditing','_suggestionFactory','accept','removeAttribute','handleDiscardAction','registerDescriptionCallback','tableCellWidth','afterInit','tableCellBorderColor','commandParams','batch','formatBlock','editor','join','tableCellBorderWidth','tableBorderColor','subType','tableBorderWidth','selection','enqueueChange','tableCellBorderStyle'];(function(_0x3898a5,_0x33bc6b){const _0x1c79b6=function(_0xace9a0){while(--_0xace9a0){_0x3898a5['push'](_0x3898a5['shift']());}};_0x1c79b6(++_0x33bc6b);}(_0x33bc,0x151));const _0x1c79=function(_0x3898a5,_0x33bc6b){_0x3898a5=_0x3898a5-0x0;let _0x1c79b6=_0x33bc[_0x3898a5];return _0x1c79b6;};import{Plugin as _0x23ec50}from'ckeditor5/src/core';import{getTranslation as _0x2d9ca3}from'../utils/common-translations';export default class Mt extends _0x23ec50{constructor(_0x3ca89a){super(_0x3ca89a),this[_0x1c79('0x13')]=[_0x1c79('0x31'),_0x1c79('0x5'),_0x1c79('0x33'),_0x1c79('0xd'),_0x1c79('0x8'),_0x1c79('0x19'),'tableBackgroundColor'],this[_0x1c79('0x18')]=[_0x1c79('0x2a'),_0x1c79('0x36'),_0x1c79('0x30'),'tableCellPadding',_0x1c79('0x28'),_0x1c79('0x10'),_0x1c79('0x12'),_0x1c79('0xb'),_0x1c79('0x21')];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x1c79('0x29')](){const _0x542ed9=this[_0x1c79('0x2e')]['plugins']['get'](_0x1c79('0x1b'));if(this['editor'][_0x1c79('0x16')][_0x1c79('0x14')]('TablePropertiesEditing')){for(const _0x4736db of this[_0x1c79('0x13')])_0x542ed9[_0x1c79('0x4')](_0x4736db,(_0x2bcbcf,_0x2e0ce5)=>{const _0x1cafc9=this[_0x1c79('0x2e')][_0x1c79('0x7')]['document'][_0x1c79('0x34')][_0x1c79('0x0')]()['findAncestor'](_0x1c79('0xf'));this[_0x1c79('0x15')](_0x4736db,[_0x1cafc9],this[_0x1c79('0x13')],_0x1c79('0x13'),_0x2bcbcf,_0x2e0ce5);});_0x542ed9['_suggestionFactory'][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x13'),_0x1c79('0x24'),_0x542ed9[_0x1c79('0x23')]['getSuggestionCallback'](_0x1c79('0x2d'),null,_0x1c79('0x1a'))),_0x542ed9[_0x1c79('0x23')][_0x1c79('0x1e')](_0x1c79('0x2d'),'tableProperties',_0x1c79('0x1a'),(_0x34bcb9,_0x237d7c)=>this[_0x1c79('0x26')](this[_0x1c79('0x13')],_0x34bcb9,_0x237d7c)),_0x542ed9[_0x1c79('0x23')][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x13'),_0x1c79('0x2f'),()=>!0x1);}if(this[_0x1c79('0x2e')]['plugins'][_0x1c79('0x14')](_0x1c79('0x22'))){for(const _0x1ed8c1 of this['tableCellProperties'])_0x542ed9[_0x1c79('0x4')](_0x1ed8c1,(_0x6f545,_0x3539de)=>{const _0x4816a1=this[_0x1c79('0x2e')][_0x1c79('0x16')][_0x1c79('0x3')]('TableUtils')[_0x1c79('0x6')](this[_0x1c79('0x2e')]['model']['document'][_0x1c79('0x34')]);this['_handlePropertyChange'](_0x1ed8c1,_0x4816a1,this[_0x1c79('0x18')],_0x1c79('0x18'),_0x6f545,_0x3539de);});_0x542ed9[_0x1c79('0x23')][_0x1c79('0x1e')](_0x1c79('0x2d'),'tableCellProperties',_0x1c79('0x24'),_0x542ed9[_0x1c79('0x23')][_0x1c79('0xa')]('formatBlock',null,_0x1c79('0x1a'))),_0x542ed9['_suggestionFactory'][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x18'),_0x1c79('0x1a'),(_0x4ff9ab,_0x217940)=>this[_0x1c79('0x26')](this[_0x1c79('0x18')],_0x4ff9ab,_0x217940)),_0x542ed9['_suggestionFactory'][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x18'),_0x1c79('0x2f'),()=>!0x1);}_0x542ed9[_0x1c79('0x11')][_0x1c79('0x27')](_0x1d76ec=>this[_0x1c79('0x9')](_0x1d76ec));}[_0x1c79('0x15')](_0x1d6fbe,_0x47a450,_0x1a0385,_0x382590,_0x3d2f74,_0x98c73e){const _0x4caec7=this[_0x1c79('0x2e')][_0x1c79('0x16')][_0x1c79('0x3')]('TrackChangesEditing');this[_0x1c79('0x2e')][_0x1c79('0x7')][_0x1c79('0x35')](_0x98c73e[_0x1c79('0x2c')],()=>{for(const _0x228a73 of _0x47a450){if(this['_getSuggestion'](_0x228a73,_0x382590))_0x3d2f74(_0x98c73e);else{const _0x5ce2ef={};for(const _0x18fcfe of _0x1a0385){const _0x43e656=_0x228a73[_0x1c79('0x1')](_0x18fcfe);void 0x0!==_0x43e656&&(_0x5ce2ef[_0x18fcfe]=_0x43e656);}_0x3d2f74(_0x98c73e),_0x4caec7[_0x1c79('0x1d')](_0x228a73,{'commandParams':[_0x5ce2ef]},[],_0x382590);}}});}[_0x1c79('0x26')](_0x5e31b9,_0x440732,_0x2f9c9a){const _0x1f832e=_0x440732[0x0][_0x1c79('0x1c')]['nodeAfter'],_0x11925c=_0x2f9c9a[_0x1c79('0x2b')][0x0];this[_0x1c79('0x2e')][_0x1c79('0x7')][_0x1c79('0x2')](_0x328261=>{for(const _0x5745fe of _0x5e31b9)void 0x0!==_0x11925c[_0x5745fe]?_0x328261['setAttribute'](_0x5745fe,_0x11925c[_0x5745fe],_0x1f832e):_0x328261[_0x1c79('0x25')](_0x5745fe,_0x1f832e);});}[_0x1c79('0x9')](_0x20edb2){if(_0x20edb2[_0x1c79('0x1f')])switch(_0x20edb2['subType']){case _0x1c79('0x13'):return{'type':_0x1c79('0x20'),'content':_0x2d9ca3(this[_0x1c79('0x2e')]['locale'],_0x1c79('0x17'))};case'tableCellProperties':return{'type':'format','content':_0x2d9ca3(this[_0x1c79('0x2e')][_0x1c79('0xe')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x1c79('0xc')](_0x44b306,_0x4d98f7){const _0x224e47=this[_0x1c79('0x2e')]['plugins']['get'](_0x1c79('0x1b'));for(const _0x5d23b2 of _0x224e47[_0x1c79('0x37')]({'skipNotAttached':!0x0})){const _0x435dc4=_0x5d23b2['getContainedElement']();if(_0x5d23b2[_0x1c79('0x32')]===_0x4d98f7&&_0x435dc4===_0x44b306)return _0x5d23b2;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f55=['Template','plugins','has','enableCommand','editor','afterInit','get'];(function(_0x83a6df,_0x2f55af){const _0x305ede=function(_0x2515b9){while(--_0x2515b9){_0x83a6df['push'](_0x83a6df['shift']());}};_0x305ede(++_0x2f55af);}(_0x2f55,0x86));const _0x305e=function(_0x83a6df,_0x2f55af){_0x83a6df=_0x83a6df-0x0;let _0x305ede=_0x2f55[_0x83a6df];return _0x305ede;};import{Plugin as _0x3d7809}from'ckeditor5/src/core';export default class vt extends _0x3d7809{[_0x305e('0x4')](){const _0x39e9bb=this[_0x305e('0x3')];_0x39e9bb['plugins'][_0x305e('0x1')](_0x305e('0x6'))&&_0x39e9bb[_0x305e('0x0')][_0x305e('0x5')]('TrackChangesEditing')[_0x305e('0x2')]('insertTemplate');}}
23
+ const _0x2bb9=['TrackChangesEditing','plugins','editor','enableCommand','insertTemplate','get','has','Template'];(function(_0x543080,_0x2bb987){const _0x39dd7c=function(_0x1e4881){while(--_0x1e4881){_0x543080['push'](_0x543080['shift']());}};_0x39dd7c(++_0x2bb987);}(_0x2bb9,0x1c5));const _0x39dd=function(_0x543080,_0x2bb987){_0x543080=_0x543080-0x0;let _0x39dd7c=_0x2bb9[_0x543080];return _0x39dd7c;};import{Plugin as _0x1b983f}from'ckeditor5/src/core';export default class vt extends _0x1b983f{['afterInit'](){const _0x380559=this[_0x39dd('0x5')];_0x380559[_0x39dd('0x4')][_0x39dd('0x1')](_0x39dd('0x2'))&&_0x380559[_0x39dd('0x4')][_0x39dd('0x0')](_0x39dd('0x3'))[_0x39dd('0x6')](_0x39dd('0x7'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1904=['getChangedMarkers','model','title-content','editor','document','has','schema','element','end','registerPostFixer','getNearestSelectionRange','forward','_descriptionFactory','removeMarker','isCollapsed','locale','afterInit','isTouching','plugins','updateMarker','createRange','start','newRange','suggestion','TrackChangesEditing','registerElementLabel','from'];(function(_0x132590,_0x19044d){const _0x1a1ac8=function(_0xa7493d){while(--_0xa7493d){_0x132590['push'](_0x132590['shift']());}};_0x1a1ac8(++_0x19044d);}(_0x1904,0xb4));const _0x1a1a=function(_0x132590,_0x19044d){_0x132590=_0x132590-0x0;let _0x1a1ac8=_0x1904[_0x132590];return _0x1a1ac8;};import{Plugin as _0x4805bf}from'ckeditor5/src/core';import{getTranslation as _0x4343b5}from'../utils/common-translations';export default class Ct extends _0x4805bf{[_0x1a1a('0x19')](){const _0x2c746b=this[_0x1a1a('0xc')];if(!_0x2c746b[_0x1a1a('0x0')][_0x1a1a('0xe')]('Title'))return;const _0x35789f=_0x2c746b[_0x1a1a('0x0')]['get'](_0x1a1a('0x6'));_0x35789f[_0x1a1a('0x15')][_0x1a1a('0x7')](_0x1a1a('0xb'),()=>_0x4343b5(_0x2c746b[_0x1a1a('0x18')],'ELEMENT_TITLE')),_0x2c746b[_0x1a1a('0xa')][_0x1a1a('0xd')][_0x1a1a('0x12')](_0x5aa857=>{let _0x1c2bf2=!0x1;const _0x363481=Array[_0x1a1a('0x8')](_0x2c746b['model'][_0x1a1a('0xd')]['differ'][_0x1a1a('0x9')]());for(const {name:_0x2d5d45,data:_0x568205}of _0x363481){const {group:_0x26a5f9}=_0x35789f['_splitMarkerName'](_0x2d5d45);if(_0x1a1a('0x5')!==_0x26a5f9||!_0x568205['newRange'])continue;const _0x1819ac=_0x568205[_0x1a1a('0x4')],_0x58c4d3=_0x1819ac['end']['nodeBefore'];if(!_0x58c4d3||!_0x58c4d3['is'](_0x1a1a('0x10'),_0x1a1a('0xb')))continue;if(!_0x1819ac[_0x1a1a('0x3')][_0x1a1a('0x1a')](_0x1819ac['end']))continue;const _0x1a7969=_0x2c746b[_0x1a1a('0xa')][_0x1a1a('0xf')][_0x1a1a('0x13')](_0x1819ac[_0x1a1a('0x11')],_0x1a1a('0x14'));if(_0x1a7969&&_0x1a7969[_0x1a1a('0x17')]){const _0x1107ab=_0x5aa857[_0x1a1a('0x2')](_0x1819ac[_0x1a1a('0x3')],_0x1a7969[_0x1a1a('0x3')]);_0x1107ab['isEqual'](_0x1819ac)||(_0x5aa857[_0x1a1a('0x1')](_0x2d5d45,{'range':_0x1107ab}),_0x1c2bf2=!0x0);}_0x1c2bf2||(_0x5aa857[_0x1a1a('0x16')](_0x2d5d45),_0x1c2bf2=!0x0);}return _0x1c2bf2;});}}
23
+ const _0x2bbc=['ELEMENT_TITLE','registerPostFixer','_descriptionFactory','locale','schema','model','createRange','start','updateMarker','getNearestSelectionRange','title-content','newRange','TrackChangesEditing','from','differ','removeMarker','document','_splitMarkerName','element','Title','has','end','isTouching','get','registerElementLabel','plugins','forward','suggestion','editor'];(function(_0x1b7492,_0x2bbccd){const _0x32d3e4=function(_0x3e76f1){while(--_0x3e76f1){_0x1b7492['push'](_0x1b7492['shift']());}};_0x32d3e4(++_0x2bbccd);}(_0x2bbc,0xd7));const _0x32d3=function(_0x1b7492,_0x2bbccd){_0x1b7492=_0x1b7492-0x0;let _0x32d3e4=_0x2bbc[_0x1b7492];return _0x32d3e4;};import{Plugin as _0x2a9ced}from'ckeditor5/src/core';import{getTranslation as _0x463442}from'../utils/common-translations';export default class Ct extends _0x2a9ced{['afterInit'](){const _0x23919a=this[_0x32d3('0x10')];if(!_0x23919a[_0x32d3('0xd')][_0x32d3('0x8')](_0x32d3('0x7')))return;const _0x1eb8b6=_0x23919a[_0x32d3('0xd')][_0x32d3('0xb')](_0x32d3('0x0'));_0x1eb8b6[_0x32d3('0x13')][_0x32d3('0xc')]('title-content',()=>_0x463442(_0x23919a[_0x32d3('0x14')],_0x32d3('0x11'))),_0x23919a[_0x32d3('0x16')][_0x32d3('0x4')][_0x32d3('0x12')](_0x327fd6=>{let _0x30b1c8=!0x1;const _0x198060=Array[_0x32d3('0x1')](_0x23919a['model'][_0x32d3('0x4')][_0x32d3('0x2')]['getChangedMarkers']());for(const {name:_0x3dd824,data:_0x3fe952}of _0x198060){const {group:_0x522fc8}=_0x1eb8b6[_0x32d3('0x5')](_0x3dd824);if(_0x32d3('0xf')!==_0x522fc8||!_0x3fe952[_0x32d3('0x1c')])continue;const _0xa89f=_0x3fe952[_0x32d3('0x1c')],_0x2465af=_0xa89f[_0x32d3('0x9')]['nodeBefore'];if(!_0x2465af||!_0x2465af['is'](_0x32d3('0x6'),_0x32d3('0x1b')))continue;if(!_0xa89f[_0x32d3('0x18')][_0x32d3('0xa')](_0xa89f[_0x32d3('0x9')]))continue;const _0x2bde5b=_0x23919a[_0x32d3('0x16')][_0x32d3('0x15')][_0x32d3('0x1a')](_0xa89f[_0x32d3('0x9')],_0x32d3('0xe'));if(_0x2bde5b&&_0x2bde5b['isCollapsed']){const _0x13a127=_0x327fd6[_0x32d3('0x17')](_0xa89f['start'],_0x2bde5b['start']);_0x13a127['isEqual'](_0xa89f)||(_0x327fd6[_0x32d3('0x19')](_0x3dd824,{'range':_0x13a127}),_0x30b1c8=!0x0);}_0x30b1c8||(_0x327fd6[_0x32d3('0x3')](_0x3dd824),_0x30b1c8=!0x0);}return _0x30b1c8;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16ce=['UndoEditing','editor','has','afterInit','plugins','enableCommand','redo','TrackChangesEditing'];(function(_0x50d7b2,_0x16cecf){const _0x5072d4=function(_0x1bf8b4){while(--_0x1bf8b4){_0x50d7b2['push'](_0x50d7b2['shift']());}};_0x5072d4(++_0x16cecf);}(_0x16ce,0x1b7));const _0x5072=function(_0x50d7b2,_0x16cecf){_0x50d7b2=_0x50d7b2-0x0;let _0x5072d4=_0x16ce[_0x50d7b2];return _0x5072d4;};import{Plugin as _0x1c22e2}from'ckeditor5/src/core';export default class Dt extends _0x1c22e2{[_0x5072('0x4')](){const _0x3069ca=this[_0x5072('0x2')],_0x2130d3=_0x3069ca[_0x5072('0x5')]['get'](_0x5072('0x0'));_0x3069ca[_0x5072('0x5')][_0x5072('0x3')](_0x5072('0x1'))&&(_0x2130d3[_0x5072('0x6')]('undo'),_0x2130d3[_0x5072('0x6')](_0x5072('0x7')));}}
23
+ const _0x4cd6=['enableCommand','editor','redo','get','afterInit','UndoEditing','undo','TrackChangesEditing','has'];(function(_0x5e6cf4,_0x4cd63f){const _0x325823=function(_0x1054da){while(--_0x1054da){_0x5e6cf4['push'](_0x5e6cf4['shift']());}};_0x325823(++_0x4cd63f);}(_0x4cd6,0x7c));const _0x3258=function(_0x5e6cf4,_0x4cd63f){_0x5e6cf4=_0x5e6cf4-0x0;let _0x325823=_0x4cd6[_0x5e6cf4];return _0x325823;};import{Plugin as _0x1f3277}from'ckeditor5/src/core';export default class Dt extends _0x1f3277{[_0x3258('0x6')](){const _0x17eb30=this[_0x3258('0x3')],_0x5601eb=_0x17eb30['plugins'][_0x3258('0x5')](_0x3258('0x0'));_0x17eb30['plugins'][_0x3258('0x1')](_0x3258('0x7'))&&(_0x5601eb[_0x3258('0x2')](_0x3258('0x8')),_0x5601eb['enableCommand'](_0x3258('0x4')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46cb=['getAttribute','bindElementToMarker','getCustomProperty','parent','schema','hasAttribute','get','element','listIndent','push','start','previousPosition','getWalker','isBlock','elementEnd','listItem','addHighlight','addClass','isContent','type','toViewElement','mapper','consumable','ck-suggestion-marker-','createRangeOn','markerName','writer','name','markerRange','TrackChangesEditing','ck-suggestion-marker--active','includes','model'];(function(_0x22139e,_0x46cba9){const _0x2d9d43=function(_0x118306){while(--_0x118306){_0x22139e['push'](_0x22139e['shift']());}};_0x2d9d43(++_0x46cba9);}(_0x46cb,0xf3));const _0x2d9d=function(_0x22139e,_0x46cba9){_0x22139e=_0x22139e-0x0;let _0x2d9d43=_0x46cb[_0x22139e];return _0x2d9d43;};export function getRangesWithAttribute(_0xb6866a,_0x5bad4b,_0xfa2091){const _0x19dcd7=[];for(const _0x33c4f8 of _0x5bad4b['getItems']())_0x33c4f8[_0x2d9d('0x1a')](_0xb6866a)&&_0x19dcd7['push'](_0xfa2091[_0x2d9d('0xc')](_0x33c4f8));return _0x19dcd7;}export function getElementsAffectedByListItemRename(_0x424311){const _0x28b56f=[];if(_0x424311['is'](_0x2d9d('0x1c'),_0x2d9d('0x3'))){let _0x5287bb=_0x424311['nextSibling'];for(;_0x5287bb&&_0x5287bb['is'](_0x2d9d('0x1c'),'listItem')&&_0x5287bb[_0x2d9d('0x15')](_0x2d9d('0x1d'))>0x0;)_0x28b56f[_0x2d9d('0x1e')](_0x5287bb),_0x5287bb=_0x5287bb['nextSibling'];}return _0x28b56f;}export function downcastSplitMergeMarker(_0x81af50,_0x14cc61,{showActiveMarker:_0x35a266=!0x0}={}){const _0x54be60=_0x81af50['plugins'][_0x2d9d('0x1b')](_0x2d9d('0x11'));return(_0xa379e9,_0xedc5f8,_0x52f2be)=>{if(!_0x52f2be[_0x2d9d('0xa')]['test'](_0xedc5f8['markerRange'],_0xa379e9[_0x2d9d('0xf')]))return;const _0x4502ab=_0xedc5f8[_0x2d9d('0x10')][_0x2d9d('0x0')](),_0x5f4d4a=_0xedc5f8[_0x2d9d('0x10')][_0x2d9d('0x1f')],_0x11121b=_0x81af50[_0x2d9d('0x14')][_0x2d9d('0x19')];let _0x374d4b=null,_0x13f855=null,_0x4f577c=!0x1,_0x136c39=!0x1;for(const _0x1adb7e of _0x4502ab){const _0x5af5fc=_0x1adb7e['item'];_0x4f577c=_0x4f577c||_0x11121b[_0x2d9d('0x6')](_0x5af5fc);const _0x4966b6=_0x52f2be['mapper'][_0x2d9d('0x8')](_0x5af5fc);if(_0x4966b6&&_0x4966b6[_0x2d9d('0x17')](_0x2d9d('0x4')))return;_0x2d9d('0x2')==_0x1adb7e[_0x2d9d('0x7')]&&(_0x11121b[_0x2d9d('0x1')](_0x5af5fc)&&!_0x11121b['isLimit'](_0x5af5fc)&&(_0x5af5fc['nextSibling']||_0x5f4d4a['isAtEnd']?_0x374d4b&&_0x374d4b[_0x2d9d('0x18')]==_0x5af5fc||(_0x374d4b=_0x5af5fc,_0x3e12f6(_0x1adb7e[_0x2d9d('0x20')]),_0x136c39=!0x0):_0x13f855=_0x13f855||_0x1adb7e[_0x2d9d('0x20')]));}function _0x3e12f6(_0x3e1b97){const _0x302f4e=_0x52f2be[_0x2d9d('0xe')]['createUIElement']('span',{'class':_0x2d9d('0xb')+_0x14cc61}),_0x1b8423=_0x52f2be[_0x2d9d('0x9')]['toViewPosition'](_0x3e1b97);_0x35a266&&_0x54be60['activeMarkers'][_0x2d9d('0x13')](_0xedc5f8['markerName'])&&_0x52f2be[_0x2d9d('0xe')][_0x2d9d('0x5')](_0x2d9d('0x12'),_0x302f4e),_0x52f2be['writer']['insert'](_0x1b8423,_0x302f4e),_0x52f2be[_0x2d9d('0x9')][_0x2d9d('0x16')](_0x302f4e,_0xedc5f8[_0x2d9d('0xd')]);}_0x4f577c||_0x136c39||!_0x13f855||_0x3e12f6(_0x13f855);};}
23
+ const _0x494b=['nextSibling','get','span','push','bindElementToMarker','listItem','includes','addClass','consumable','getCustomProperty','type','createRangeOn','test','mapper','model','markerName','ck-suggestion-marker-','elementEnd','writer','isBlock','previousPosition','getAttribute','getItems','markerRange','toViewElement','activeMarkers','plugins','parent','createUIElement','toViewPosition','addHighlight','isLimit','start','hasAttribute','schema','insert','listIndent'];(function(_0xec31d4,_0x494b18){const _0x5e1a68=function(_0x40f68a){while(--_0x40f68a){_0xec31d4['push'](_0xec31d4['shift']());}};_0x5e1a68(++_0x494b18);}(_0x494b,0xa2));const _0x5e1a=function(_0xec31d4,_0x494b18){_0xec31d4=_0xec31d4-0x0;let _0x5e1a68=_0x494b[_0xec31d4];return _0x5e1a68;};export function getRangesWithAttribute(_0x3faf27,_0x2d7766,_0x537be8){const _0xededc8=[];for(const _0x3a4029 of _0x2d7766[_0x5e1a('0x8')]())_0x3a4029[_0x5e1a('0x13')](_0x3faf27)&&_0xededc8[_0x5e1a('0x1a')](_0x537be8[_0x5e1a('0x22')](_0x3a4029));return _0xededc8;}export function getElementsAffectedByListItemRename(_0x31215a){const _0x20d3f9=[];if(_0x31215a['is']('element',_0x5e1a('0x1c'))){let _0x5f0471=_0x31215a[_0x5e1a('0x17')];for(;_0x5f0471&&_0x5f0471['is']('element',_0x5e1a('0x1c'))&&_0x5f0471[_0x5e1a('0x7')](_0x5e1a('0x16'))>0x0;)_0x20d3f9[_0x5e1a('0x1a')](_0x5f0471),_0x5f0471=_0x5f0471['nextSibling'];}return _0x20d3f9;}export function downcastSplitMergeMarker(_0x5adeab,_0xce7479,{showActiveMarker:_0x533c08=!0x0}={}){const _0x18df32=_0x5adeab[_0x5e1a('0xc')][_0x5e1a('0x18')]('TrackChangesEditing');return(_0x3176c,_0x17c755,_0x3202fb)=>{if(!_0x3202fb[_0x5e1a('0x1f')][_0x5e1a('0x23')](_0x17c755[_0x5e1a('0x9')],_0x3176c['name']))return;const _0x1bfd6e=_0x17c755['markerRange']['getWalker'](),_0x32a44d=_0x17c755[_0x5e1a('0x9')][_0x5e1a('0x12')],_0x5c5c69=_0x5adeab[_0x5e1a('0x0')][_0x5e1a('0x14')];let _0x2b0c3e=null,_0x24040b=null,_0x26e628=!0x1,_0x29d2d6=!0x1;for(const _0x33007e of _0x1bfd6e){const _0x863b04=_0x33007e['item'];_0x26e628=_0x26e628||_0x5c5c69['isContent'](_0x863b04);const _0x16689f=_0x3202fb['mapper'][_0x5e1a('0xa')](_0x863b04);if(_0x16689f&&_0x16689f[_0x5e1a('0x20')](_0x5e1a('0x10')))return;_0x5e1a('0x3')==_0x33007e[_0x5e1a('0x21')]&&(_0x5c5c69[_0x5e1a('0x5')](_0x863b04)&&!_0x5c5c69[_0x5e1a('0x11')](_0x863b04)&&(_0x863b04[_0x5e1a('0x17')]||_0x32a44d['isAtEnd']?_0x2b0c3e&&_0x2b0c3e[_0x5e1a('0xd')]==_0x863b04||(_0x2b0c3e=_0x863b04,_0x263cc6(_0x33007e[_0x5e1a('0x6')]),_0x29d2d6=!0x0):_0x24040b=_0x24040b||_0x33007e[_0x5e1a('0x6')]));}function _0x263cc6(_0x148330){const _0x4bc64e=_0x3202fb[_0x5e1a('0x4')][_0x5e1a('0xe')](_0x5e1a('0x19'),{'class':_0x5e1a('0x2')+_0xce7479}),_0x444b4d=_0x3202fb['mapper'][_0x5e1a('0xf')](_0x148330);_0x533c08&&_0x18df32[_0x5e1a('0xb')][_0x5e1a('0x1d')](_0x17c755[_0x5e1a('0x1')])&&_0x3202fb[_0x5e1a('0x4')][_0x5e1a('0x1e')]('ck-suggestion-marker--active',_0x4bc64e),_0x3202fb['writer'][_0x5e1a('0x15')](_0x444b4d,_0x4bc64e),_0x3202fb[_0x5e1a('0x24')][_0x5e1a('0x1b')](_0x4bc64e,_0x17c755[_0x5e1a('0x1')]);}_0x26e628||_0x29d2d6||!_0x24040b||_0x263cc6(_0x24040b);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3024=['removeMarker','map','subType','accept','getMultiRangeId','previous','isExternal','decorate','split','_onAccept','substr','_onDiscard','add','delete','_isDataLoaded','isMultiRange','getRanges','data','type','getFirstRange','size','onDiscard','_onAttributesChange','nodeBefore','start','_model','filter','end','addRange','author','commentThread','next','addMarkerName','getFirstMarker','attributes','getAllAdjacentSuggestions','isIntersecting','isIntersectingWithRange','push','from','reduce','onAccept','getRange','length','hasComments','nodeAfter','suggestion:','createdAt','head','getItems','discard','getContainedElement','_markerNames','_saved','creator','set','removeMarkers','getMarkers','change','onAttributesChange','@external'];(function(_0x35a769,_0x302404){const _0x1ea555=function(_0xed0bbf){while(--_0xed0bbf){_0x35a769['push'](_0x35a769['shift']());}};_0x1ea555(++_0x302404);}(_0x3024,0x145));const _0x1ea5=function(_0x35a769,_0x302404){_0x35a769=_0x35a769-0x0;let _0x1ea555=_0x3024[_0x35a769];return _0x1ea555;};import{Element as _0x229a60}from'ckeditor5/src/engine';import{ObservableMixin as _0xa1a6a,uid as _0xd71a4}from'ckeditor5/src/utils';import{cloneDeep as _0x199eee,isEqual as _0x469433,set as _0x12bef5,unset as _0x420068}from'lodash-es';export default class u extends _0xa1a6a(){constructor(_0x493041,_0x586613){super(),this[_0x1ea5('0x37')]=!0x1,this['id']=_0x586613['id'],this[_0x1ea5('0x3b')]=_0x586613['type'],this[_0x1ea5('0x2b')]=_0x586613[_0x1ea5('0x2b')]||null,this['author']=_0x586613[_0x1ea5('0x9')],this[_0x1ea5('0x22')]=_0x586613['creator']||_0x586613['author'],this[_0x1ea5('0x2f')]=Boolean(_0x586613[_0x1ea5('0xe')]&&_0x586613[_0x1ea5('0xe')][_0x1ea5('0x28')]),this[_0x1ea5('0x3a')]=null,this['_model']=_0x493041,this[_0x1ea5('0x32')]=_0x586613[_0x1ea5('0x15')],this[_0x1ea5('0x34')]=_0x586613[_0x1ea5('0x1')],this[_0x1ea5('0x2')]=_0x586613[_0x1ea5('0x27')],this['_markerNames']=new Set(),this[_0x1ea5('0x1b')]=null,this[_0x1ea5('0x23')]('authoredAt',null),this[_0x1ea5('0x23')]('attributes',_0x586613[_0x1ea5('0xe')]||{}),this[_0x1ea5('0x23')](_0x1ea5('0x2e'),null),this[_0x1ea5('0x23')](_0x1ea5('0xb'),null),this[_0x1ea5('0x23')](_0x1ea5('0xa'),null),this['set'](_0x1ea5('0x21'),!0x1),this[_0x1ea5('0x30')](_0x1ea5('0x2c')),this[_0x1ea5('0x30')](_0x1ea5('0x1e'));}get[_0x1ea5('0x1c')](){let _0x554161=this;for(;_0x554161[_0x1ea5('0x2e')];)_0x554161=_0x554161[_0x1ea5('0x2e')];return _0x554161;}get[_0x1ea5('0x18')](){return!!this['commentThread']&&this['commentThread'][_0x1ea5('0x17')]>0x0;}get[_0x1ea5('0x38')](){if(0x0==this['_markerNames'][_0x1ea5('0x0')])return!0x1;return 0x6==Array[_0x1ea5('0x13')](this[_0x1ea5('0x20')])[0x0][_0x1ea5('0x31')](':')[_0x1ea5('0x17')];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x56d5ae){this[_0x1ea5('0x20')][_0x1ea5('0x35')](_0x56d5ae);}['getMarkerNames'](){return Array[_0x1ea5('0x13')](this[_0x1ea5('0x20')]);}['getMarkers'](){return this['getMarkerNames']()[_0x1ea5('0x2a')](_0x48938c=>this[_0x1ea5('0x5')]['markers']['get'](_0x48938c))[_0x1ea5('0x6')](_0x51d3b8=>_0x51d3b8);}[_0x1ea5('0xd')](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this[_0x1ea5('0x5')]['change'](_0x28e4ca=>{for(const _0x44884c of this[_0x1ea5('0x25')]())_0x28e4ca['removeMarker'](_0x44884c);}),this[_0x1ea5('0x20')]['clear']();}[_0x1ea5('0x29')](_0x163551){this[_0x1ea5('0x5')][_0x1ea5('0x26')](_0x4048c6=>{_0x4048c6[_0x1ea5('0x29')](_0x163551);}),this[_0x1ea5('0x20')][_0x1ea5('0x36')](_0x163551);}[_0x1ea5('0x8')](_0x48a42a){const _0x7fe2eb=_0x1ea5('0x1a')+this[_0x1ea5('0x3b')]+':'+this['subType']+':'+this['id']+':'+this[_0x1ea5('0x22')]['id']+':'+u['getMultiRangeId']();this[_0x1ea5('0xc')](_0x7fe2eb),this[_0x1ea5('0x5')][_0x1ea5('0x26')](_0x2df1d3=>{_0x2df1d3['addMarker'](_0x7fe2eb,{'range':_0x48a42a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1ea5('0x11')](_0x4c9590){for(const _0x582007 of this[_0x1ea5('0x39')]())if(_0x582007[_0x1ea5('0x10')](_0x4c9590))return!0x0;return!0x1;}[_0x1ea5('0x39')](){return this['getMarkers']()[_0x1ea5('0x2a')](_0x51ae3b=>_0x51ae3b[_0x1ea5('0x16')]());}[_0x1ea5('0x1d')](){return this['getRanges']()[_0x1ea5('0x14')]((_0x441d90,_0x8ae80c)=>[..._0x441d90,..._0x8ae80c['getItems']()],[]);}[_0x1ea5('0x3c')](){var _0x34966f;return(null===(_0x34966f=this['getFirstMarker']())||void 0x0===_0x34966f?void 0x0:_0x34966f[_0x1ea5('0x16')]())||null;}[_0x1ea5('0x1f')](){const _0x5312cc=this[_0x1ea5('0x39')]();if(0x1!=_0x5312cc[_0x1ea5('0x17')])return null;const _0xe2658c=_0x5312cc[0x0],_0xe84df4=_0xe2658c[_0x1ea5('0x4')][_0x1ea5('0x19')],_0xc364df=_0xe2658c[_0x1ea5('0x7')][_0x1ea5('0x3')];return _0xe84df4 instanceof _0x229a60?_0xe84df4!=_0xc364df?null:_0xe84df4:null;}['accept'](){this[_0x1ea5('0x32')](this[_0x1ea5('0x39')](),this[_0x1ea5('0x3a')],this[_0x1ea5('0xe')]),this[_0x1ea5('0x24')]();}[_0x1ea5('0x1e')](){this['_onDiscard'](this[_0x1ea5('0x39')](),this[_0x1ea5('0x3a')],this['attributes']),this[_0x1ea5('0x24')]();}[_0x1ea5('0xf')](){const _0x171192=[];let _0x5cee1a=this[_0x1ea5('0x1c')];for(;_0x5cee1a;)_0x171192[_0x1ea5('0x12')](_0x5cee1a),_0x5cee1a=_0x5cee1a[_0x1ea5('0xb')];return _0x171192;}['setAttribute'](_0x2e4b70,_0x142a29){const _0x513a6f=_0x199eee(this[_0x1ea5('0xe')]);_0x12bef5(_0x513a6f,_0x2e4b70,_0x142a29),_0x469433(_0x513a6f,this[_0x1ea5('0xe')])||(this['attributes']=_0x513a6f,this[_0x1ea5('0x2')](_0x513a6f));}['removeAttribute'](_0x310e1f){const _0x292d2d=_0x199eee(this[_0x1ea5('0xe')]);_0x420068(_0x292d2d,_0x310e1f),_0x469433(_0x292d2d,this[_0x1ea5('0xe')])||(this['attributes']=_0x292d2d,this[_0x1ea5('0x2')](this[_0x1ea5('0xe')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x1ea5('0x2b')]?this[_0x1ea5('0x3b')]+':'+this['subType']:this[_0x1ea5('0x3b')],'authorId':this['creator']['id'],'createdAt':this[_0x1ea5('0x1b')],'hasComments':this[_0x1ea5('0x18')],'data':this[_0x1ea5('0x3a')],'attributes':this['attributes']};}static[_0x1ea5('0x2d')](){return _0xd71a4()[_0x1ea5('0x33')](0x1,0x5);}}
23
+ const _0x42d9=['type','accept','next','attributes','from','decorate','getContainedElement','size','getMultiRangeId','_isDataLoaded','hasComments','set','getMarkers','markers','map','getRange','createdAt','@external','author','isInContent','getItems','getRanges','getFirstMarker','delete','end','creator','nodeBefore','previous','getFirstRange','clear','reduce','removeMarkers','discard','isExternal','suggestion:','_onAttributesChange','setAttribute','_markerNames','addMarkerName','onAccept','push','add','change','removeMarker','get','length','_saved','isIntersecting','_model','data','onAttributesChange','_onDiscard','substr','isMultiRange','subType','commentThread','isIntersectingWithRange','head'];(function(_0x3c4500,_0x42d946){const _0x21a2ac=function(_0x18dc81){while(--_0x18dc81){_0x3c4500['push'](_0x3c4500['shift']());}};_0x21a2ac(++_0x42d946);}(_0x42d9,0x161));const _0x21a2=function(_0x3c4500,_0x42d946){_0x3c4500=_0x3c4500-0x0;let _0x21a2ac=_0x42d9[_0x3c4500];return _0x21a2ac;};import{Element as _0x39df79}from'ckeditor5/src/engine';import{ObservableMixin as _0x24e1dc,uid as _0x102302}from'ckeditor5/src/utils';import{cloneDeep as _0x1f326c,isEqual as _0x3cf90c,set as _0x4cd391,unset as _0x17d59d}from'lodash-es';export default class u extends _0x24e1dc(){constructor(_0x155469,_0x493a06){super(),this[_0x21a2('0x4')]=!0x1,this['id']=_0x493a06['id'],this[_0x21a2('0x35')]=_0x493a06[_0x21a2('0x35')],this[_0x21a2('0x31')]=_0x493a06[_0x21a2('0x31')]||null,this[_0x21a2('0xd')]=_0x493a06['author'],this[_0x21a2('0x14')]=_0x493a06['creator']||_0x493a06['author'],this[_0x21a2('0x1c')]=Boolean(_0x493a06[_0x21a2('0x38')]&&_0x493a06[_0x21a2('0x38')][_0x21a2('0xc')]),this['data']=null,this['_model']=_0x155469,this['_onAccept']=_0x493a06[_0x21a2('0x22')],this[_0x21a2('0x2e')]=_0x493a06['onDiscard'],this[_0x21a2('0x1e')]=_0x493a06[_0x21a2('0x2d')],this[_0x21a2('0x20')]=new Set(),this[_0x21a2('0xb')]=null,this[_0x21a2('0x6')]('authoredAt',null),this[_0x21a2('0x6')]('attributes',_0x493a06[_0x21a2('0x38')]||{}),this[_0x21a2('0x6')](_0x21a2('0x16'),null),this[_0x21a2('0x6')](_0x21a2('0x37'),null),this[_0x21a2('0x6')](_0x21a2('0x32'),null),this[_0x21a2('0x6')](_0x21a2('0x29'),!0x1),this[_0x21a2('0x0')](_0x21a2('0x36')),this[_0x21a2('0x0')]('discard');}get['head'](){let _0x330564=this;for(;_0x330564['previous'];)_0x330564=_0x330564[_0x21a2('0x16')];return _0x330564;}get[_0x21a2('0x5')](){return!!this[_0x21a2('0x32')]&&this[_0x21a2('0x32')][_0x21a2('0x28')]>0x0;}get[_0x21a2('0x30')](){if(0x0==this[_0x21a2('0x20')][_0x21a2('0x2')])return!0x1;return 0x6==Array[_0x21a2('0x39')](this[_0x21a2('0x20')])[0x0]['split'](':')[_0x21a2('0x28')];}get[_0x21a2('0xe')](){return null!==this[_0x21a2('0x11')]();}[_0x21a2('0x21')](_0x51ab6b){this[_0x21a2('0x20')][_0x21a2('0x24')](_0x51ab6b);}['getMarkerNames'](){return Array[_0x21a2('0x39')](this[_0x21a2('0x20')]);}['getMarkers'](){return this['getMarkerNames']()[_0x21a2('0x9')](_0x3f0a2a=>this[_0x21a2('0x2b')][_0x21a2('0x8')][_0x21a2('0x27')](_0x3f0a2a))['filter'](_0x484afd=>_0x484afd);}[_0x21a2('0x11')](){return this[_0x21a2('0x7')]()[0x0]||null;}[_0x21a2('0x1a')](){this['_model'][_0x21a2('0x25')](_0xc4a985=>{for(const _0x474d24 of this[_0x21a2('0x7')]())_0xc4a985['removeMarker'](_0x474d24);}),this[_0x21a2('0x20')][_0x21a2('0x18')]();}[_0x21a2('0x26')](_0x2d0426){this[_0x21a2('0x2b')][_0x21a2('0x25')](_0xa7f766=>{_0xa7f766[_0x21a2('0x26')](_0x2d0426);}),this['_markerNames'][_0x21a2('0x12')](_0x2d0426);}['addRange'](_0x2ffa5d){const _0x424d1d=_0x21a2('0x1d')+this[_0x21a2('0x35')]+':'+this['subType']+':'+this['id']+':'+this[_0x21a2('0x14')]['id']+':'+u[_0x21a2('0x3')]();this['addMarkerName'](_0x424d1d),this['_model'][_0x21a2('0x25')](_0x588a95=>{_0x588a95['addMarker'](_0x424d1d,{'range':_0x2ffa5d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x21a2('0x33')](_0x394ae0){for(const _0x5144b0 of this['getRanges']())if(_0x5144b0[_0x21a2('0x2a')](_0x394ae0))return!0x0;return!0x1;}['getRanges'](){return this[_0x21a2('0x7')]()[_0x21a2('0x9')](_0x329f23=>_0x329f23[_0x21a2('0xa')]());}[_0x21a2('0xf')](){return this['getRanges']()[_0x21a2('0x19')]((_0x3837ad,_0x588798)=>[..._0x3837ad,..._0x588798['getItems']()],[]);}[_0x21a2('0x17')](){var _0x1c3975;return(null===(_0x1c3975=this['getFirstMarker']())||void 0x0===_0x1c3975?void 0x0:_0x1c3975[_0x21a2('0xa')]())||null;}[_0x21a2('0x1')](){const _0x3c3839=this[_0x21a2('0x10')]();if(0x1!=_0x3c3839[_0x21a2('0x28')])return null;const _0x292872=_0x3c3839[0x0],_0x367500=_0x292872['start']['nodeAfter'],_0x5e0bcd=_0x292872[_0x21a2('0x13')][_0x21a2('0x15')];return _0x367500 instanceof _0x39df79?_0x367500!=_0x5e0bcd?null:_0x367500:null;}['accept'](){this['_onAccept'](this[_0x21a2('0x10')](),this[_0x21a2('0x2c')],this['attributes']),this[_0x21a2('0x1a')]();}[_0x21a2('0x1b')](){this[_0x21a2('0x2e')](this[_0x21a2('0x10')](),this[_0x21a2('0x2c')],this['attributes']),this[_0x21a2('0x1a')]();}['getAllAdjacentSuggestions'](){const _0x18be2c=[];let _0xd628de=this[_0x21a2('0x34')];for(;_0xd628de;)_0x18be2c[_0x21a2('0x23')](_0xd628de),_0xd628de=_0xd628de[_0x21a2('0x37')];return _0x18be2c;}[_0x21a2('0x1f')](_0xe6092a,_0x363bf0){const _0xe5e8d5=_0x1f326c(this[_0x21a2('0x38')]);_0x4cd391(_0xe5e8d5,_0xe6092a,_0x363bf0),_0x3cf90c(_0xe5e8d5,this['attributes'])||(this['attributes']=_0xe5e8d5,this[_0x21a2('0x1e')](_0xe5e8d5));}['removeAttribute'](_0x45d23b){const _0x2762cf=_0x1f326c(this[_0x21a2('0x38')]);_0x17d59d(_0x2762cf,_0x45d23b),_0x3cf90c(_0x2762cf,this['attributes'])||(this[_0x21a2('0x38')]=_0x2762cf,this['_onAttributesChange'](this[_0x21a2('0x38')]));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this[_0x21a2('0x35')]+':'+this['subType']:this['type'],'authorId':this[_0x21a2('0x14')]['id'],'createdAt':this[_0x21a2('0xb')],'hasComments':this['hasComments'],'data':this[_0x21a2('0x2c')],'attributes':this[_0x21a2('0x38')]};}static['getMultiRangeId'](){return _0x102302()[_0x21a2('0x2f')](0x1,0x5);}}