@ckeditor/ckeditor5-track-changes 34.0.0 → 34.1.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 (60) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/nl.js +1 -1
  5. package/build/translations/zh-cn.js +1 -1
  6. package/lang/translations/nl.po +9 -9
  7. package/lang/translations/zh-cn.po +4 -4
  8. package/package.json +3 -3
  9. package/src/commands/acceptallsuggestionscommand.js +1 -1
  10. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  11. package/src/commands/acceptsuggestioncommand.js +1 -1
  12. package/src/commands/discardallsuggestionscommand.js +1 -1
  13. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  14. package/src/commands/discardsuggestioncommand.js +1 -1
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/integrations/alignment.js +1 -1
  17. package/src/integrations/basicstyles.js +1 -1
  18. package/src/integrations/blockquote.js +1 -1
  19. package/src/integrations/codeblock.js +1 -1
  20. package/src/integrations/comments.js +1 -1
  21. package/src/integrations/deletecommand.js +1 -1
  22. package/src/integrations/entercommand.js +1 -1
  23. package/src/integrations/font.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/image.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/mediaembed.js +1 -1
  33. package/src/integrations/mention.js +1 -1
  34. package/src/integrations/pagebreak.js +1 -1
  35. package/src/integrations/paragraph.js +1 -1
  36. package/src/integrations/removeformat.js +1 -1
  37. package/src/integrations/restrictededitingmode.js +1 -1
  38. package/src/integrations/shiftentercommand.js +1 -1
  39. package/src/integrations/standardeditingmode.js +1 -1
  40. package/src/integrations/table.js +1 -1
  41. package/src/integrations/tableclipboard.js +1 -1
  42. package/src/integrations/tableheadings.js +1 -1
  43. package/src/integrations/tablemergesplit.js +1 -1
  44. package/src/integrations/title.js +1 -1
  45. package/src/integrations/undo.js +1 -1
  46. package/src/integrations/utils.js +1 -1
  47. package/src/suggestion.js +1 -1
  48. package/src/suggestiondescriptionfactory.js +1 -1
  49. package/src/trackchanges.js +1 -1
  50. package/src/trackchangesdata.js +1 -1
  51. package/src/trackchangesediting.js +1 -1
  52. package/src/trackchangesui.js +1 -1
  53. package/src/ui/suggestioncontroller.js +1 -1
  54. package/src/ui/view/basesuggestionthreadview.js +1 -1
  55. package/src/ui/view/suggestionthreadview.js +1 -1
  56. package/src/utils/common-translations.js +23 -0
  57. package/src/utils/getselectedsuggestions.js +1 -1
  58. package/src/utils/hashobject.js +1 -1
  59. package/src/utils/normalizedescription.js +1 -1
  60. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x445cd4}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class H extends _0x445cd4{['afterInit'](){const _0x23a06d=this['editor'];if(!_0x23a06d['plugins']['has']('HighlightEditing'))return;const _0xda63aa=_0x23a06d['plugins']['get']('TrackChangesEditing');_0xda63aa['enableCommand']('highlight',(_0x3be3f6,_0x45f48e={})=>{const _0x1fb076=_0x23a06d['model']['document']['selection'],_0x54c517=_0x1fb076['getAttribute']('highlight');let _0x1db34a=_0x45f48e['value'],_0x242d2c=[];if(_0x1fb076['isCollapsed']){const _0x5a1fae=_0x1fb076['getFirstPosition']();if(!_0x1fb076['hasAttribute']('highlight'))return void _0x3be3f6(_0x45f48e);{const _0x5971ab=_0x2cb28b=>_0x2cb28b['item']['getAttribute']('highlight')===_0x54c517,_0x44b6ff=_0x5a1fae['getLastMatchingPosition'](_0x5971ab,{'direction':'backward'}),_0xd5564=_0x5a1fae['getLastMatchingPosition'](_0x5971ab);_0x242d2c=[_0x23a06d['model']['createRange'](_0x44b6ff,_0xd5564)],_0x1db34a==_0x54c517&&(_0x1db34a=null);}}else for(const _0x3fd12c of _0x1fb076['getRanges']())_0x1db34a?_0x242d2c['push'](_0x3fd12c):_0x242d2c['push'](...Rt('highlight',_0x3fd12c,_0x23a06d['model']));_0x23a06d['model']['change'](()=>{for(const _0x57c7e7 of _0x242d2c)_0xda63aa['markInlineFormat'](_0x57c7e7,{'commandName':'highlight','commandParams':[{'value':_0x1db34a}]});});});const {t:t}=_0x23a06d['locale'];_0xda63aa['_descriptionFactory']['registerDescriptionCallback'](_0x3e8bee=>{const {type:_0x3db140,data:_0x27946a}=_0x3e8bee;if('formatInline'==_0x3db140&&_0x27946a&&'highlight'==_0x27946a['commandName']){const _0x5f42d5=_0x27946a['commandParams'][0x0]['value'];if(_0x5f42d5){const _0x2e9346=_0x23a06d['config']['get']('highlight.options')['find'](_0x5da34b=>_0x5da34b['model']==_0x5f42d5),_0x56f92b=_0x23a06d['locale']['_t'](_0x2e9346['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x56f92b),'color':{'value':_0x2e9346['color'],'title':_0x2e9346['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
23
+ const _0x4cb3=['registerDescriptionCallback','getRanges','formatInline','commandName','backward','getFirstPosition','highlight.options','value','HighlightEditing','get','push','item','format','color','*Set\x20highlight:*\x20%0','getLastMatchingPosition','plugins','change','find','hasAttribute','config','model','getAttribute','document','highlight','commandParams','editor','title'];(function(_0x525586,_0x4cb363){const _0x199050=function(_0x273c15){while(--_0x273c15){_0x525586['push'](_0x525586['shift']());}};_0x199050(++_0x4cb363);}(_0x4cb3,0x1be));const _0x1990=function(_0x525586,_0x4cb363){_0x525586=_0x525586-0x0;let _0x199050=_0x4cb3[_0x525586];return _0x199050;};import{Plugin as _0x16b635}from'ckeditor5/src/core';import{getTranslation as _0x3e9772}from'../utils/common-translations';import{getRangesWithAttribute as _0x1d3587}from'./utils';export default class W extends _0x16b635{['afterInit'](){const _0x290285=this[_0x1990('0x0')];if(!_0x290285[_0x1990('0x12')]['has'](_0x1990('0xa')))return;const _0x3b1fba=_0x290285[_0x1990('0x12')]['get']('TrackChangesEditing');_0x3b1fba['enableCommand'](_0x1990('0x1a'),(_0x3d3477,_0xa400f7={})=>{const _0x68241b=_0x290285['model'][_0x1990('0x19')]['selection'],_0x149ba4=_0x68241b['getAttribute']('highlight');let _0x114987=_0xa400f7[_0x1990('0x9')],_0xe4b497=[];if(_0x68241b['isCollapsed']){const _0x32c840=_0x68241b[_0x1990('0x7')]();if(!_0x68241b[_0x1990('0x15')](_0x1990('0x1a')))return void _0x3d3477(_0xa400f7);{const _0x31a650=_0x51af0a=>_0x51af0a[_0x1990('0xd')][_0x1990('0x18')](_0x1990('0x1a'))===_0x149ba4,_0x2f4ace=_0x32c840[_0x1990('0x11')](_0x31a650,{'direction':_0x1990('0x6')}),_0x485f67=_0x32c840[_0x1990('0x11')](_0x31a650);_0xe4b497=[_0x290285[_0x1990('0x17')]['createRange'](_0x2f4ace,_0x485f67)],_0x114987==_0x149ba4&&(_0x114987=null);}}else for(const _0xf5040e of _0x68241b[_0x1990('0x3')]())_0x114987?_0xe4b497[_0x1990('0xc')](_0xf5040e):_0xe4b497[_0x1990('0xc')](..._0x1d3587(_0x1990('0x1a'),_0xf5040e,_0x290285[_0x1990('0x17')]));_0x290285['model'][_0x1990('0x13')](()=>{for(const _0x4f91c7 of _0xe4b497)_0x3b1fba['markInlineFormat'](_0x4f91c7,{'commandName':'highlight','commandParams':[{'value':_0x114987}]});});});const _0x584dfd=_0x290285['locale'];_0x3b1fba['_descriptionFactory'][_0x1990('0x2')](_0x29422e=>{const {type:_0x95f774,data:_0x15a8ab}=_0x29422e;if(_0x1990('0x4')==_0x95f774&&_0x15a8ab&&_0x1990('0x1a')==_0x15a8ab[_0x1990('0x5')]){const _0x31b04d=_0x15a8ab[_0x1990('0x1b')][0x0]['value'];if(_0x31b04d){const _0x8ed2f3=_0x290285[_0x1990('0x16')][_0x1990('0xb')](_0x1990('0x8'))[_0x1990('0x14')](_0x5c2448=>_0x5c2448['model']==_0x31b04d),_0x10743c=_0x584dfd['_t'](_0x8ed2f3[_0x1990('0x1')])['toLowerCase']();return{'type':_0x1990('0xe'),'content':_0x3e9772(_0x584dfd,_0x1990('0x10'),_0x10743c),'color':{'value':_0x8ed2f3[_0x1990('0xf')],'title':_0x8ed2f3[_0x1990('0x1')]}};}return{'type':_0x1990('0xe'),'content':_0x3e9772(_0x584dfd,'*Remove\x20highlight*',_0x3e9772(_0x584dfd,'FORMAT_HIGHLIGHT'))};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1315c3}from'ckeditor5/src/core';export default class W extends _0x1315c3{['afterInit'](){const _0x326a24=this['editor'];if(!_0x326a24['plugins']['has']('HorizontalLineEditing'))return;_0x326a24['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f170b=_0x326a24['plugins']['get']('TrackChangesEditing'),{t:t}=_0x326a24['locale'];_0x4f170b['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x2dea16=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2dea16)),_0x326a24['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4b8826,{writer:_0x1a80e5,options:_0xfd3487})=>{if(!_0xfd3487['showSuggestionHighlights'])return;const _0x3161ca=_0x1a80e5['createContainerElement']('div'),_0x5e25ee=_0x1a80e5['createEmptyElement']('hr');return _0x1a80e5['addClass']('ck-horizontal-line',_0x3161ca),_0x1a80e5['insert'](_0x1a80e5['createPositionAt'](_0x3161ca,0x0),_0x5e25ee),_0x3161ca;},'converterPriority':'high'});}}
23
+ const _0x48e3=['plugins','insert','high','HorizontalLineEditing','conversion','dataDowncast','afterInit','createEmptyElement','elementToStructure','get','horizontalLine','createContainerElement','enableCommand','showSuggestionHighlights','locale','has','_descriptionFactory'];(function(_0xc290a0,_0x48e3d4){const _0x5b3c9e=function(_0x399f12){while(--_0x399f12){_0xc290a0['push'](_0xc290a0['shift']());}};_0x5b3c9e(++_0x48e3d4);}(_0x48e3,0x97));const _0x5b3c=function(_0xc290a0,_0x48e3d4){_0xc290a0=_0xc290a0-0x0;let _0x5b3c9e=_0x48e3[_0xc290a0];return _0x5b3c9e;};import{Plugin as _0x52f773}from'ckeditor5/src/core';import{getTranslation as _0x22a042}from'../utils/common-translations';export default class z extends _0x52f773{[_0x5b3c('0x8')](){const _0x189aee=this['editor'];if(!_0x189aee['plugins'][_0x5b3c('0x0')](_0x5b3c('0x5')))return;_0x189aee[_0x5b3c('0x2')][_0x5b3c('0xb')]('TrackChangesEditing')[_0x5b3c('0xe')](_0x5b3c('0xc'));const _0x1c8182=_0x189aee[_0x5b3c('0x2')]['get']('TrackChangesEditing'),_0x59ff0d=_0x189aee[_0x5b3c('0x10')];_0x1c8182[_0x5b3c('0x1')]['registerElementLabel'](_0x5b3c('0xc'),_0x5adff1=>_0x22a042(_0x59ff0d,'ELEMENT_HORIZONTAL_LINE',_0x5adff1)),_0x189aee[_0x5b3c('0x6')]['for'](_0x5b3c('0x7'))[_0x5b3c('0xa')]({'model':'horizontalLine','view':(_0x499e90,{writer:_0x32d2be,options:_0x2fb9f5})=>{if(!_0x2fb9f5[_0x5b3c('0xf')])return;const _0x4045a5=_0x32d2be[_0x5b3c('0xd')]('div'),_0x34e0f3=_0x32d2be[_0x5b3c('0x9')]('hr');return _0x32d2be['addClass']('ck-horizontal-line',_0x4045a5),_0x32d2be[_0x5b3c('0x3')](_0x32d2be['createPositionAt'](_0x4045a5,0x0),_0x34e0f3),_0x4045a5;},'converterPriority':_0x5b3c('0x4')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3abc38}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0xe2a4f5}from'ckeditor5/src/utils';export default class z extends _0x3abc38{['afterInit'](){const _0x5d1fb1=this['editor'];if(!_0x5d1fb1['plugins']['has']('ImageEditing'))return;const _0x29a2c7=_0x5d1fb1['plugins']['get']('TrackChangesEditing'),_0x54c22e=_0x5d1fb1['plugins']['get']('ImageUtils'),_0x337e07={},{t:t}=_0x5d1fb1['locale'];if(_0x29a2c7['enableCommand']('insertImage'),_0x29a2c7['_descriptionFactory']['registerElementLabel']('imageBlock',_0x2c88fb=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2c88fb)),_0x29a2c7['_descriptionFactory']['registerElementLabel']('imageInline',_0x4a0123=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4a0123)),_0x29a2c7['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x5d1fb1['plugins']['has']('ImageUploadEditing')&&_0x29a2c7['enableCommand']('uploadImage'),_0x5d1fb1['plugins']['has']('ImageBlockEditing')&&_0x5d1fb1['plugins']['has']('ImageInlineEditing')&&(_0x29a2c7['enableCommand']('imageTypeInline',(_0xd929e2,_0x4a27fe)=>{const _0x5057dd=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']);_0x5d1fb1['model']['change'](()=>{_0x29a2c7['markBlockFormat'](_0x5057dd,{'commandName':'imageTypeInline','commandParams':[_0x4a27fe]},[],'convertBlockImageToInline');});}),_0x29a2c7['enableCommand']('imageTypeBlock',(_0xefaade,_0x5b6531)=>{_0x5d1fb1['model']['change'](_0x49fd41=>{let _0x198628=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x14ead2=_0x49fd41['createRangeOn'](_0x198628);const _0x493104=te['fromPosition'](_0x14ead2['start'],'toPrevious'),_0xd94499=te['fromPosition'](_0x14ead2['end'],'toNext');_0x29a2c7['forceDefaultExecution'](()=>_0xefaade(_0x5b6531)),_0x198628=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x14ead2=_0x49fd41['createRangeOn'](_0x198628);const _0x2fb690=_0x49fd41['createRange'](_0x493104,_0xd94499);_0x493104['detach'](),_0xd94499['detach'](),_0x29a2c7['markBlockFormat'](_0x198628,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x2fb690['start']['isBefore'](_0x14ead2['start'])&&_0x29a2c7['markInsertion'](_0x49fd41['createRange'](_0x2fb690['start'],_0x14ead2['start']),'convertInlineImageToBlock'),_0x14ead2['end']['isBefore'](_0x2fb690['end'])&&_0x29a2c7['markInsertion'](_0x49fd41['createRange'](_0x14ead2['end'],_0x2fb690['end']),'convertInlineImageToBlock');});}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x29a2c7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x129576])=>{const _0x3f7636=_0x29a2c7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1da999=_0x129576['start'],_0x1efad2=_0x129576['end'];const _0x38c554=_0x5d1fb1['model']['schema']['getNearestSelectionRange'](_0x1da999,'backward'),_0x1455a8=_0x5d1fb1['model']['schema']['getNearestSelectionRange'](_0x1efad2,'forward');_0x38c554['isCollapsed']&&(_0x1da999=_0x38c554['start']),_0x1455a8['isCollapsed']&&(_0x1efad2=_0x1455a8['end']),_0x3f7636([_0x5d1fb1['model']['createRange'](_0x1da999,_0x1efad2)]);}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x417d1f),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x417d1f)),_0x5d1fb1['plugins']['has']('ImageCaptionEditing')&&(_0x29a2c7['enableCommand']('toggleImageCaption',(_0x2f86e8,_0x675b84)=>{const _0x236cbe=_0x5d1fb1['plugins']['get']('ImageCaptionUtils');let _0x5eaa06=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x585ff7=_0x236cbe['getCaptionFromImageModelElement'](_0x5eaa06);_0x5d1fb1['model']['change'](()=>{if(_0x585ff7)return void _0x29a2c7['markDeletion'](_0x5d1fb1['model']['createRangeOn'](_0x585ff7));const _0x22b52f=_0x54c22e['isBlockImage'](_0x5eaa06);_0x2f86e8(_0x675b84),_0x5eaa06=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x585ff7=_0x236cbe['getCaptionFromImageModelElement'](_0x5eaa06),_0x29a2c7['markInsertion'](_0x5d1fb1['model']['createRangeOn'](_0x585ff7),_0x22b52f?null:'imageCaption');});}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x417d1f)),_0x5d1fb1['plugins']['has']('ImageStyleEditing')){_0x29a2c7['enableCommand']('imageStyle',(_0x442579,_0xcc67e1)=>{const _0x248006=_0x5d1fb1['plugins']['get']('Users')['me'],_0x49e9a1=_0x5d1fb1['commands']['get']('imageStyle');let _0x2c414a=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x1d6940=_0x5d1fb1['model']['createRangeOn'](_0x2c414a),_0x256d12=_0x49e9a1['value'];if(_0x256d12==_0xcc67e1['value'])return;const _0x28d9c6={'commandName':'imageStyle','commandParams':[_0xcc67e1],'formatGroupId':_0xe2a4f5()};_0x5d1fb1['model']['change'](()=>{if(_0x29a2c7['getSuggestions']()['filter'](_0x4884e0=>_0x4884e0['isInContent']&&_0x248006==_0x4884e0['author']&&('formatBlock'==_0x4884e0['type']||'formatInline'==_0x4884e0['type'])&&('imageStylePreApply'==_0x4884e0['subType']||'imageStylePostApply'==_0x4884e0['subType'])&&_0x4884e0['getFirstRange']()['isEqual'](_0x1d6940))['forEach'](_0x1a737a=>_0x29a2c7['discardSuggestion'](_0x1a737a['head'])),_0x2c414a=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x1d6940=_0x5d1fb1['model']['createRangeOn'](_0x2c414a),_0x49e9a1['refresh'](),_0x5d1fb1['commands']['get']('imageTypeInline')['refresh'](),_0x5d1fb1['commands']['get']('imageTypeBlock')['refresh'](),_0x256d12=_0x49e9a1['value'],_0x256d12!=_0xcc67e1['value'])return _0x54c22e['isInlineImage'](_0x2c414a)&&_0x49e9a1['shouldConvertImageType'](_0xcc67e1['value'],_0x2c414a)?(_0x442579(_0xcc67e1),_0x2c414a=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),void _0x29a2c7['markBlockFormat'](_0x2c414a,{..._0x28d9c6,'commandReversedParams':[{'value':_0x256d12||null}]},[],'imageStylePreApply')):void(_0x54c22e['isBlockImage'](_0x2c414a)?_0x29a2c7['markBlockFormat'](_0x2c414a,_0x28d9c6,[],'imageStylePostApply'):_0x29a2c7['markInlineFormat'](_0x1d6940,_0x28d9c6,'imageStylePostApply'));});});for(const _0x582f24 of _0x5d1fb1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x337e07[_0x582f24['name']]=_0x582f24['title']['toLowerCase']();_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52c507,_0x4326cc)=>{_0x29a2c7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52c507,{'commandName':_0x4326cc['commandName'],'commandParams':_0x4326cc['commandReversedParams']});}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x417d1f);}const _0x12c528=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29c753(_0x11b565,_0x341fa7){const _0x5ba78a=_0x12c528['findIndex'](({type:_0x5ad095,subType:_0x2aed18})=>_0x11b565['type']==_0x5ad095&&_0x11b565['subType']==_0x2aed18),_0x399544=_0x12c528['findIndex'](({type:_0x43af76,subType:_0x15dd46})=>_0x341fa7['type']==_0x43af76&&_0x341fa7['subType']==_0x15dd46);if(_0x5ba78a<0x0||_0x399544<0x0)return!0x1;const _0x1cd459=_0x11b565['getFirstRange'](),_0x14fafe=_0x341fa7['getFirstRange']();if((0x0==_0x5ba78a||0x1==_0x5ba78a)&&0x2==_0x399544&&_0x1cd459['isIntersecting'](_0x14fafe))return!0x0;if(0x2==_0x5ba78a&&0x3==_0x399544){const _0x31e85c=_0x29a2c7['_findSuggestions'](_0x1cd459,'insertion')['filter'](({suggestion:_0x1705d0,meta:_0x5adc4c})=>_0x5adc4c['isOwn']&&'convertInlineImageToBlock'==_0x1705d0['subType']);if(_0x31e85c['length']>0x1&&_0x14fafe['end']['isEqual'](_0x1cd459['start']))return!0x0;if(0x1==_0x31e85c['length']&&(_0x1cd459['start']['isEqual'](_0x14fafe['end'])||_0x1cd459['end']['isEqual'](_0x14fafe['start'])))return!0x0;}if(0x3==_0x5ba78a&&0x3==_0x399544&&_0x1cd459['start']['isBefore'](_0x14fafe['start'])){const _0x4119bc=_0x1cd459['end']['nodeAfter'],_0x5d026c=_0x14fafe['start']['nodeBefore'];return _0x54c22e['isBlockImage'](_0x4119bc)&&_0x4119bc===_0x5d026c;}return!0x1;}function _0x417d1f(_0xa7326b,_0x5198c9){return _0x29c753(_0xa7326b,_0x5198c9)?[_0xa7326b,_0x5198c9]:_0x29c753(_0x5198c9,_0xa7326b)?[_0x5198c9,_0xa7326b]:null;}_0x5d1fb1['model']['document']['registerPostFixer'](()=>{let _0x517576=!0x1;const _0xeb9d42=Array['from'](_0x5d1fb1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b0e64,data:_0x4d3ee2}of _0xeb9d42){const {group:_0x28368f,type:_0x4713d4,subType:_0x504fa6,id:_0x259c1}=_0x29a2c7['_splitMarkerName'](_0x5b0e64);if('suggestion'==_0x28368f&&_0x29a2c7['hasSuggestion'](_0x259c1)){if('formatBlock'==_0x4713d4&&('imageStylePreApply'==_0x504fa6||'imageStylePostApply'==_0x504fa6)){const _0x41663f=_0x29a2c7['getSuggestion'](_0x259c1);if(_0x4d3ee2['newRange']){const _0x172a95=_0x41663f['getFirstRange']()['getContainedElement']();if(_0x54c22e['isBlockImage'](_0x172a95))continue;_0x29a2c7['discardSuggestion'](_0x41663f),_0x517576=!0x0;}}if('insertion'==_0x4713d4&&'imageCaption'==_0x504fa6&&!_0x4d3ee2['newRange']){const _0x1a98e6=_0x29a2c7['getSuggestion'](_0x259c1);_0x1a98e6['next']&&_0x1a98e6['next']['isInContent']&&(_0x29a2c7['discardSuggestion'](_0x1a98e6['next']),_0x517576=!0x0);}}}return _0x517576;}),_0x5d1fb1['plugins']['has']('ImageResize')&&_0x29a2c7['enableCommand']('resizeImage',(_0x4610ef,_0x1f13c9)=>{const _0x213768=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']);_0x213768['getAttribute']('width')!=_0x1f13c9['width']&&_0x5d1fb1['model']['change'](()=>{_0x29a2c7['markBlockFormat'](_0x213768,{'commandName':'resizeImage','commandParams':[_0x1f13c9]});});}),_0x5d1fb1['plugins']['has']('ImageTextAlternativeEditing')&&_0x29a2c7['enableCommand']('imageTextAlternative',(_0x3e0083,_0x76156e)=>{const _0x552f0d=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']);(_0x552f0d['hasAttribute']('alt')?_0x552f0d['getAttribute']('alt'):'')!=_0x76156e['newValue']&&_0x5d1fb1['model']['change'](()=>{_0x29a2c7['markBlockFormat'](_0x552f0d,{'commandName':'imageTextAlternative','commandParams':[_0x76156e]});});}),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0x18e722=>{if(!!_0x12c528['find'](({type:_0x5e6aca,subType:_0x36ed65})=>_0x18e722['type']==_0x5e6aca&&_0x18e722['subType']==_0x36ed65))return _0x18e722['previous']?{}:void 0x0;}),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0xd79365=>{if('insertion'==_0xd79365['type']||'deletion'==_0xd79365['type']){const _0x3b061a=_0xd79365['getContainedElement']();if(_0x3b061a&&_0x3b061a['is']('element','caption'))return{'type':'insertion'==_0xd79365['type']?'addObject':'removeObject','name':_0x3b061a['name'],'quantity':0x1};}}),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0xea92c7=>'formatBlock'==_0xea92c7['type']&&'convertInlineImageToBlock'==_0xea92c7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xea92c7['type']&&'convertBlockImageToInline'==_0xea92c7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0x3b22a5=>{const {data:_0x2bad7e}=_0x3b22a5;if(_0x2bad7e){if('imageStyle'==_0x2bad7e['commandName']){const _0x31fb45=_0x2bad7e['commandParams'][0x0]['value'];return _0x5a057a('side'===_0x31fb45?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0x337e07[_0x31fb45]||_0x31fb45);}if('imageTextAlternative'==_0x2bad7e['commandName']){const _0x13be7f=_0x2bad7e['commandParams'][0x0]['newValue'];return _0x13be7f?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x13be7f+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bad7e['commandName']){const _0x377b08=_0x2bad7e['commandParams'][0x0]['width'];return _0x377b08?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0x377b08)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x5a057a(_0x932066){return{'type':'format','content':t('*Format:*\x20%0',_0x932066)};}});}}
23
+ const _0x4a50=['isInlineImage','toggleImageCaption','TrackChangesEditing','filter','registerPostFixer','ImageBlockEditing','getContainedElement','findIndex','suggestion','isIntersecting','*Set\x20image\x20width:*\x20%0','start','addObject','*Set\x20image\x20text\x20alternative:*\x20%0','markBlockFormat','selection','isBlockImage','nodeBefore','schema','find','nodeAfter','head','getAttribute','insertImage','document','ImageEditing','deletion','width','getClosestSelectedImageElement','hasAttribute','createRange','ImageUtils','commands','getChangedMarkers','from','imageStylePreApply','convertInlineImageToBlock','side','toNext','detach','getSuggestion','Users','plugins','imageStyle','_suggestionFactory','isInContent','ELEMENT_CAPTION','end','author','newValue','getCaptionFromImageModelElement','markDeletion','model','*Remove\x20image\x20text\x20alternative*','get','uploadImage','name','chain','editor','removeObject','hasSuggestion','imageStylePostApply','differ','forward','refresh','commandReversedParams','enableCommand','next','isOwn','imageTypeInline','accept','markInsertion','subType','formatInline','imageBlock','type','commandParams','_descriptionFactory','has','ImageUploadEditing','forEach','Inline\x20image\x20to\x20block\x20image','discardSuggestion','resizeImage','ImageStyleEditing','imageCaption','forceDefaultExecution','registerCustomCallback','ELEMENT_INLINE_IMAGE','createRangeOn','isEqual','caption','getSuggestionCallback','formatBlock','isBefore','FORMAT_SIDE_IMAGE','length','registerDescriptionCallback','Block\x20image\x20to\x20inline\x20image','join','*Format:*\x20%0','isCollapsed','getFirstRange','commandName','format','imageTextAlternative','registerElementLabel','alt','change','shouldConvertImageType','backward','imageTypeBlock','ImageResize','ImageInlineEditing','imageInline','fromPosition','element','ELEMENT_IMAGE','insertion','value','convertBlockImageToInline','discard'];(function(_0x93521a,_0x4a50dd){const _0x284046=function(_0x55fe74){while(--_0x55fe74){_0x93521a['push'](_0x93521a['shift']());}};_0x284046(++_0x4a50dd);}(_0x4a50,0x8a));const _0x2840=function(_0x93521a,_0x4a50dd){_0x93521a=_0x93521a-0x0;let _0x284046=_0x4a50[_0x93521a];return _0x284046;};import{Plugin as _0x3dde7a}from'ckeditor5/src/core';import{LivePosition as _0x1c23e8}from'ckeditor5/src/engine';import{uid as _0x4b86b1}from'ckeditor5/src/utils';import{getTranslation as _0x4ab2ad}from'../utils/common-translations';export default class J extends _0x3dde7a{['afterInit'](){const _0x2e5467=this[_0x2840('0x2a')];if(!_0x2e5467['plugins']['has'](_0x2840('0x9')))return;const _0x4c0ed2=_0x2e5467[_0x2840('0x1a')][_0x2840('0x26')](_0x2840('0x6c')),_0x5906f4=_0x2e5467[_0x2840('0x1a')]['get'](_0x2840('0xf')),_0x318a2b={},_0x5d1a05=_0x2e5467['locale'];if(_0x4c0ed2['enableCommand'](_0x2840('0x7')),_0x4c0ed2[_0x2840('0x3d')]['registerElementLabel'](_0x2840('0x3a'),_0x50d277=>_0x4ab2ad(_0x5d1a05,_0x2840('0x65'),_0x50d277)),_0x4c0ed2['_descriptionFactory'][_0x2840('0x5a')](_0x2840('0x62'),_0x457f66=>_0x4ab2ad(_0x5d1a05,_0x2840('0x48'),_0x457f66)),_0x4c0ed2[_0x2840('0x3d')]['registerElementLabel'](_0x2840('0x4b'),_0x4ab2ad(_0x5d1a05,_0x2840('0x1e'))),_0x2e5467[_0x2840('0x1a')][_0x2840('0x3e')](_0x2840('0x3f'))&&_0x4c0ed2['enableCommand'](_0x2840('0x27')),_0x2e5467[_0x2840('0x1a')][_0x2840('0x3e')](_0x2840('0x6f'))&&_0x2e5467[_0x2840('0x1a')][_0x2840('0x3e')](_0x2840('0x61'))&&(_0x4c0ed2[_0x2840('0x32')](_0x2840('0x35'),(_0xa98013,_0x5392f9)=>{const _0x2bbe51=_0x5906f4[_0x2840('0xc')](_0x2e5467['model'][_0x2840('0x8')]['selection']);_0x2e5467[_0x2840('0x24')][_0x2840('0x5c')](()=>{_0x4c0ed2[_0x2840('0x78')](_0x2bbe51,{'commandName':_0x2840('0x35'),'commandParams':[_0x5392f9]},[],_0x2840('0x68'));});}),_0x4c0ed2[_0x2840('0x32')]('imageTypeBlock',(_0x20ef14,_0x4e302a)=>{_0x2e5467[_0x2840('0x24')][_0x2840('0x5c')](_0x524d07=>{let _0x43e8bc=_0x5906f4[_0x2840('0xc')](_0x2e5467[_0x2840('0x24')][_0x2840('0x8')][_0x2840('0x79')]),_0x35502c=_0x524d07[_0x2840('0x49')](_0x43e8bc);const _0x5d0ac4=_0x1c23e8['fromPosition'](_0x35502c[_0x2840('0x75')],'toPrevious'),_0x570d1f=_0x1c23e8[_0x2840('0x63')](_0x35502c[_0x2840('0x1f')],_0x2840('0x16'));_0x4c0ed2[_0x2840('0x46')](()=>_0x20ef14(_0x4e302a)),_0x43e8bc=_0x5906f4[_0x2840('0xc')](_0x2e5467[_0x2840('0x24')]['document'][_0x2840('0x79')]),_0x35502c=_0x524d07[_0x2840('0x49')](_0x43e8bc);const _0x847c26=_0x524d07['createRange'](_0x5d0ac4,_0x570d1f);_0x5d0ac4[_0x2840('0x17')](),_0x570d1f[_0x2840('0x17')](),_0x4c0ed2[_0x2840('0x78')](_0x43e8bc,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x847c26['start'][_0x2840('0x4e')](_0x35502c[_0x2840('0x75')])&&_0x4c0ed2['markInsertion'](_0x524d07[_0x2840('0xe')](_0x847c26[_0x2840('0x75')],_0x35502c['start']),_0x2840('0x14')),_0x35502c['end'][_0x2840('0x4e')](_0x847c26[_0x2840('0x1f')])&&_0x4c0ed2[_0x2840('0x37')](_0x524d07[_0x2840('0xe')](_0x35502c['end'],_0x847c26['end']),_0x2840('0x14'));});}),_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x47')]('formatBlock','convertInlineImageToBlock',_0x2840('0x53'),()=>{}),_0x4c0ed2[_0x2840('0x1c')]['registerCustomCallback'](_0x2840('0x4d'),_0x2840('0x14'),_0x2840('0x36'),()=>{}),_0x4c0ed2[_0x2840('0x1c')]['registerCustomCallback'](_0x2840('0x4d'),_0x2840('0x14'),_0x2840('0x69'),_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x4c')](_0x2840('0x4d'),'',_0x2840('0x36'))),_0x4c0ed2[_0x2840('0x1c')]['registerCustomCallback']('insertion',_0x2840('0x14'),'join',()=>{}),_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x47')](_0x2840('0x66'),_0x2840('0x14'),_0x2840('0x69'),([_0x38014c])=>{const _0x5c2f9e=_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x4c')](_0x2840('0x66'),'','discard');let _0x1642e3=_0x38014c[_0x2840('0x75')],_0x3b5053=_0x38014c[_0x2840('0x1f')];const _0x3a62c2=_0x2e5467[_0x2840('0x24')][_0x2840('0x2')]['getNearestSelectionRange'](_0x1642e3,_0x2840('0x5e')),_0x51b4a2=_0x2e5467['model']['schema']['getNearestSelectionRange'](_0x3b5053,_0x2840('0x2f'));_0x3a62c2['isCollapsed']&&(_0x1642e3=_0x3a62c2[_0x2840('0x75')]),_0x51b4a2[_0x2840('0x55')]&&(_0x3b5053=_0x51b4a2['end']),_0x5c2f9e([_0x2e5467[_0x2840('0x24')][_0x2840('0xe')](_0x1642e3,_0x3b5053)]);}),_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x47')](_0x2840('0x4d'),'convertInlineImageToBlock',_0x2840('0x29'),_0x3b7d0d),_0x4c0ed2[_0x2840('0x1c')]['registerCustomCallback'](_0x2840('0x66'),_0x2840('0x14'),_0x2840('0x29'),_0x3b7d0d)),_0x2e5467['plugins'][_0x2840('0x3e')]('ImageCaptionEditing')&&(_0x4c0ed2[_0x2840('0x32')](_0x2840('0x6b'),(_0x4dd05c,_0x5b0f96)=>{const _0x2dc753=_0x2e5467[_0x2840('0x1a')]['get']('ImageCaptionUtils');let _0x1f3e19=_0x5906f4[_0x2840('0xc')](_0x2e5467[_0x2840('0x24')][_0x2840('0x8')][_0x2840('0x79')]),_0x312d63=_0x2dc753[_0x2840('0x22')](_0x1f3e19);_0x2e5467[_0x2840('0x24')][_0x2840('0x5c')](()=>{if(_0x312d63)return void _0x4c0ed2[_0x2840('0x23')](_0x2e5467['model'][_0x2840('0x49')](_0x312d63));const _0x490f8c=_0x5906f4[_0x2840('0x0')](_0x1f3e19);_0x4dd05c(_0x5b0f96),_0x1f3e19=_0x5906f4[_0x2840('0xc')](_0x2e5467[_0x2840('0x24')][_0x2840('0x8')][_0x2840('0x79')]),_0x312d63=_0x2dc753[_0x2840('0x22')](_0x1f3e19),_0x4c0ed2[_0x2840('0x37')](_0x2e5467[_0x2840('0x24')][_0x2840('0x49')](_0x312d63),_0x490f8c?null:_0x2840('0x45'));});}),_0x4c0ed2[_0x2840('0x1c')]['registerCustomCallback']('insertion',_0x2840('0x45'),'chain',_0x3b7d0d)),_0x2e5467['plugins']['has'](_0x2840('0x44'))){_0x4c0ed2[_0x2840('0x32')](_0x2840('0x1b'),(_0x1c600e,_0x4ac32e)=>{const _0x4ab8fd=_0x2e5467[_0x2840('0x1a')][_0x2840('0x26')](_0x2840('0x19'))['me'],_0x332969=_0x2e5467[_0x2840('0x10')]['get'](_0x2840('0x1b'));let _0x910273=_0x5906f4[_0x2840('0xc')](_0x2e5467['model']['document'][_0x2840('0x79')]),_0x41c10e=_0x2e5467['model'][_0x2840('0x49')](_0x910273),_0x40df67=_0x332969[_0x2840('0x67')];if(_0x40df67==_0x4ac32e[_0x2840('0x67')])return;const _0x5f1d9e={'commandName':'imageStyle','commandParams':[_0x4ac32e],'formatGroupId':_0x4b86b1()};_0x2e5467[_0x2840('0x24')][_0x2840('0x5c')](()=>{if(_0x4c0ed2['getSuggestions']()[_0x2840('0x6d')](_0x4e3160=>_0x4e3160[_0x2840('0x1d')]&&_0x4ab8fd==_0x4e3160[_0x2840('0x20')]&&('formatBlock'==_0x4e3160['type']||'formatInline'==_0x4e3160[_0x2840('0x3b')])&&(_0x2840('0x13')==_0x4e3160['subType']||_0x2840('0x2d')==_0x4e3160[_0x2840('0x38')])&&_0x4e3160[_0x2840('0x56')]()[_0x2840('0x4a')](_0x41c10e))[_0x2840('0x40')](_0x2191b7=>_0x4c0ed2[_0x2840('0x42')](_0x2191b7[_0x2840('0x5')])),_0x910273=_0x5906f4[_0x2840('0xc')](_0x2e5467[_0x2840('0x24')][_0x2840('0x8')]['selection']),_0x41c10e=_0x2e5467['model'][_0x2840('0x49')](_0x910273),_0x332969[_0x2840('0x30')](),_0x2e5467[_0x2840('0x10')][_0x2840('0x26')](_0x2840('0x35'))[_0x2840('0x30')](),_0x2e5467['commands']['get'](_0x2840('0x5f'))[_0x2840('0x30')](),_0x40df67=_0x332969[_0x2840('0x67')],_0x40df67!=_0x4ac32e[_0x2840('0x67')])return _0x5906f4[_0x2840('0x6a')](_0x910273)&&_0x332969[_0x2840('0x5d')](_0x4ac32e[_0x2840('0x67')],_0x910273)?(_0x1c600e(_0x4ac32e),_0x910273=_0x5906f4['getClosestSelectedImageElement'](_0x2e5467[_0x2840('0x24')][_0x2840('0x8')][_0x2840('0x79')]),void _0x4c0ed2['markBlockFormat'](_0x910273,{..._0x5f1d9e,'commandReversedParams':[{'value':_0x40df67||null}]},[],'imageStylePreApply')):void(_0x5906f4['isBlockImage'](_0x910273)?_0x4c0ed2[_0x2840('0x78')](_0x910273,_0x5f1d9e,[],_0x2840('0x2d')):_0x4c0ed2['markInlineFormat'](_0x41c10e,_0x5f1d9e,'imageStylePostApply'));});});for(const _0x20f7c1 of _0x2e5467[_0x2840('0x1a')][_0x2840('0x26')](_0x2840('0x44'))['normalizedStyles'])_0x318a2b[_0x20f7c1[_0x2840('0x28')]]=_0x20f7c1['title']['toLowerCase']();_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x47')](_0x2840('0x4d'),_0x2840('0x13'),_0x2840('0x53'),()=>{}),_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x47')](_0x2840('0x4d'),'imageStylePostApply',_0x2840('0x53'),()=>{}),_0x4c0ed2['_suggestionFactory']['registerCustomCallback'](_0x2840('0x39'),_0x2840('0x2d'),_0x2840('0x53'),()=>{}),_0x4c0ed2['_suggestionFactory'][_0x2840('0x47')](_0x2840('0x4d'),_0x2840('0x13'),_0x2840('0x36'),()=>{}),_0x4c0ed2['_suggestionFactory']['registerCustomCallback'](_0x2840('0x4d'),_0x2840('0x13'),_0x2840('0x69'),(_0x3fbadf,_0xf87e33)=>{_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x4c')](_0x2840('0x4d'),'',_0x2840('0x36'))(_0x3fbadf,{'commandName':_0xf87e33['commandName'],'commandParams':_0xf87e33[_0x2840('0x31')]});}),_0x4c0ed2[_0x2840('0x1c')][_0x2840('0x47')]('formatBlock','imageStylePreApply',_0x2840('0x29'),_0x3b7d0d);}const _0x1bb794=[{'type':_0x2840('0x4d'),'subType':_0x2840('0x13')},{'type':_0x2840('0x66'),'subType':_0x2840('0x45')},{'type':_0x2840('0x4d'),'subType':_0x2840('0x14')},{'type':_0x2840('0x66'),'subType':_0x2840('0x14')}];function _0x57a7e9(_0x42c0a3,_0x567381){const _0x4578db=_0x1bb794['findIndex'](({type:_0x2e6330,subType:_0x3ab3af})=>_0x42c0a3[_0x2840('0x3b')]==_0x2e6330&&_0x42c0a3[_0x2840('0x38')]==_0x3ab3af),_0x3e768e=_0x1bb794[_0x2840('0x71')](({type:_0x5e8ff2,subType:_0x400323})=>_0x567381['type']==_0x5e8ff2&&_0x567381[_0x2840('0x38')]==_0x400323);if(_0x4578db<0x0||_0x3e768e<0x0)return!0x1;const _0x364e66=_0x42c0a3[_0x2840('0x56')](),_0x168e45=_0x567381[_0x2840('0x56')]();if((0x0==_0x4578db||0x1==_0x4578db)&&0x2==_0x3e768e&&_0x364e66[_0x2840('0x73')](_0x168e45))return!0x0;if(0x2==_0x4578db&&0x3==_0x3e768e){const _0x1b84ea=_0x4c0ed2['_findSuggestions'](_0x364e66,_0x2840('0x66'))[_0x2840('0x6d')](({suggestion:_0x19095d,meta:_0x171db5})=>_0x171db5[_0x2840('0x34')]&&_0x2840('0x14')==_0x19095d[_0x2840('0x38')]);if(_0x1b84ea['length']>0x1&&_0x168e45[_0x2840('0x1f')]['isEqual'](_0x364e66[_0x2840('0x75')]))return!0x0;if(0x1==_0x1b84ea[_0x2840('0x50')]&&(_0x364e66[_0x2840('0x75')][_0x2840('0x4a')](_0x168e45[_0x2840('0x1f')])||_0x364e66[_0x2840('0x1f')][_0x2840('0x4a')](_0x168e45[_0x2840('0x75')])))return!0x0;}if(0x3==_0x4578db&&0x3==_0x3e768e&&_0x364e66[_0x2840('0x75')]['isBefore'](_0x168e45[_0x2840('0x75')])){const _0x2df1ee=_0x364e66[_0x2840('0x1f')][_0x2840('0x4')],_0x46ae90=_0x168e45[_0x2840('0x75')][_0x2840('0x1')];return _0x5906f4[_0x2840('0x0')](_0x2df1ee)&&_0x2df1ee===_0x46ae90;}return!0x1;}function _0x3b7d0d(_0x57144e,_0x584675){return _0x57a7e9(_0x57144e,_0x584675)?[_0x57144e,_0x584675]:_0x57a7e9(_0x584675,_0x57144e)?[_0x584675,_0x57144e]:null;}_0x2e5467[_0x2840('0x24')][_0x2840('0x8')][_0x2840('0x6e')](()=>{let _0x2ac673=!0x1;const _0x495d58=Array[_0x2840('0x12')](_0x2e5467[_0x2840('0x24')]['document'][_0x2840('0x2e')][_0x2840('0x11')]());for(const {name:_0x4362fd,data:_0x1a6228}of _0x495d58){const {group:_0x5ed58b,type:_0x6e57ac,subType:_0x2c790f,id:_0x227e61}=_0x4c0ed2['_splitMarkerName'](_0x4362fd);if(_0x2840('0x72')==_0x5ed58b&&_0x4c0ed2[_0x2840('0x2c')](_0x227e61)){if('formatBlock'==_0x6e57ac&&(_0x2840('0x13')==_0x2c790f||_0x2840('0x2d')==_0x2c790f)){const _0xc1749b=_0x4c0ed2[_0x2840('0x18')](_0x227e61);if(_0x1a6228['newRange']){const _0x11234e=_0xc1749b['getFirstRange']()[_0x2840('0x70')]();if(_0x5906f4[_0x2840('0x0')](_0x11234e))continue;_0x4c0ed2[_0x2840('0x42')](_0xc1749b),_0x2ac673=!0x0;}}if('insertion'==_0x6e57ac&&_0x2840('0x45')==_0x2c790f&&!_0x1a6228['newRange']){const _0x1c2d74=_0x4c0ed2['getSuggestion'](_0x227e61);_0x1c2d74['next']&&_0x1c2d74[_0x2840('0x33')][_0x2840('0x1d')]&&(_0x4c0ed2[_0x2840('0x42')](_0x1c2d74['next']),_0x2ac673=!0x0);}}}return _0x2ac673;}),_0x2e5467[_0x2840('0x1a')][_0x2840('0x3e')](_0x2840('0x60'))&&_0x4c0ed2[_0x2840('0x32')](_0x2840('0x43'),(_0xcdeb8,_0x387495)=>{const _0xb75193=_0x5906f4[_0x2840('0xc')](_0x2e5467[_0x2840('0x24')][_0x2840('0x8')]['selection']);_0xb75193['getAttribute'](_0x2840('0xb'))!=_0x387495['width']&&_0x2e5467[_0x2840('0x24')][_0x2840('0x5c')](()=>{_0x4c0ed2['markBlockFormat'](_0xb75193,{'commandName':_0x2840('0x43'),'commandParams':[_0x387495]});});}),_0x2e5467['plugins'][_0x2840('0x3e')]('ImageTextAlternativeEditing')&&_0x4c0ed2['enableCommand'](_0x2840('0x59'),(_0x5e3934,_0x4d64d8)=>{const _0x31f9bd=_0x5906f4[_0x2840('0xc')](_0x2e5467[_0x2840('0x24')][_0x2840('0x8')][_0x2840('0x79')]);(_0x31f9bd[_0x2840('0xd')]('alt')?_0x31f9bd[_0x2840('0x6')](_0x2840('0x5b')):'')!=_0x4d64d8['newValue']&&_0x2e5467['model']['change'](()=>{_0x4c0ed2[_0x2840('0x78')](_0x31f9bd,{'commandName':_0x2840('0x59'),'commandParams':[_0x4d64d8]});});}),_0x4c0ed2[_0x2840('0x3d')][_0x2840('0x51')](_0x151b87=>{if(!!_0x1bb794[_0x2840('0x3')](({type:_0x3b41a6,subType:_0x3016ae})=>_0x151b87[_0x2840('0x3b')]==_0x3b41a6&&_0x151b87['subType']==_0x3016ae))return _0x151b87['previous']?{}:void 0x0;}),_0x4c0ed2['_descriptionFactory'][_0x2840('0x51')](_0x188b79=>{if(_0x2840('0x66')==_0x188b79[_0x2840('0x3b')]||_0x2840('0xa')==_0x188b79['type']){const _0x4cc863=_0x188b79['getContainedElement']();if(_0x4cc863&&_0x4cc863['is'](_0x2840('0x64'),_0x2840('0x4b')))return{'type':_0x2840('0x66')==_0x188b79[_0x2840('0x3b')]?_0x2840('0x76'):_0x2840('0x2b'),'name':_0x4cc863['name'],'quantity':0x1};}}),_0x4c0ed2[_0x2840('0x3d')][_0x2840('0x51')](_0xfb62b9=>_0x2840('0x4d')==_0xfb62b9['type']&&_0x2840('0x14')==_0xfb62b9['subType']?{'type':_0x2840('0x58'),'content':_0x2840('0x41')}:'formatBlock'==_0xfb62b9['type']&&_0x2840('0x68')==_0xfb62b9['subType']?{'type':'format','content':_0x2840('0x52')}:void 0x0),_0x4c0ed2['_descriptionFactory'][_0x2840('0x51')](_0x304024=>{const {data:_0x59f140}=_0x304024;if(_0x59f140){if(_0x2840('0x1b')==_0x59f140[_0x2840('0x57')]){const _0x10626b=_0x59f140[_0x2840('0x3c')][0x0][_0x2840('0x67')];return _0x326f06(_0x2840('0x15')===_0x10626b?_0x4ab2ad(_0x5d1a05,_0x2840('0x4f')):_0x318a2b[_0x10626b]||_0x10626b);}if(_0x2840('0x59')==_0x59f140[_0x2840('0x57')]){const _0x4fc4c1=_0x59f140[_0x2840('0x3c')][0x0][_0x2840('0x21')];return _0x4fc4c1?{'type':_0x2840('0x58'),'content':_0x4ab2ad(_0x5d1a05,_0x2840('0x77'),'\x22'+_0x4fc4c1+'\x22')}:{'type':_0x2840('0x58'),'content':_0x4ab2ad(_0x5d1a05,_0x2840('0x25'))};}if(_0x2840('0x43')==_0x59f140[_0x2840('0x57')]){const _0x2f777d=_0x59f140[_0x2840('0x3c')][0x0][_0x2840('0xb')];return _0x2f777d?{'type':_0x2840('0x58'),'content':_0x4ab2ad(_0x5d1a05,_0x2840('0x74'),_0x2f777d)}:{'type':'format','content':_0x4ab2ad(_0x5d1a05,'*Reset\x20image\x20width*')};}}function _0x326f06(_0x21e335){return{'type':'format','content':_0x4ab2ad(_0x5d1a05,_0x2840('0x54'),_0x21e335)};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5bddf9}from'ckeditor5/src/core';export default class J extends _0x5bddf9{['afterInit'](){const _0xe80b4a=this['editor'],_0x36a2ce=_0xe80b4a['plugins']['get']('TrackChangesEditing');_0xe80b4a['plugins']['has']('IndentEditing')&&(_0x36a2ce['enableCommand']('indent'),_0x36a2ce['enableCommand']('outdent'));const {t:t}=_0xe80b4a['locale'];if(_0xe80b4a['plugins']['has']('IndentBlock')){for(const _0x40fbc9 of['indentBlock','outdentBlock'])_0x36a2ce['enableCommand'](_0x40fbc9,()=>{const _0x2ff260=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xdd60e2=>this['editor']['model']['schema']['checkAttribute'](_0xdd60e2,'blockIndent'));_0xe80b4a['model']['change'](()=>{for(const _0xef7aa6 of _0x2ff260)_0x36a2ce['markBlockFormat'](_0xef7aa6,{'commandName':_0x40fbc9,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x36a2ce['_descriptionFactory']['registerDescriptionCallback'](_0x25be57=>{const {data:_0x1d27b5}=_0x25be57;if(!_0x1d27b5)return;if('indentBlock'!=_0x1d27b5['commandName']&&'outdentBlock'!=_0x1d27b5['commandName'])return;const _0x525332=_0x25be57['getItems']()[0x0],_0x12b360=_0x36a2ce['_descriptionFactory']['getItemLabel'](_0x525332['name']);return'indentBlock'==_0x1d27b5['commandName']?{'type':'format','content':t('*Indent:*\x20%0',_0x12b360)}:'outdentBlock'==_0x1d27b5['commandName']?{'type':'format','content':t('*Outdent:*\x20%0',_0x12b360)}:void 0x0;});}}}
23
+ const _0x2a53=['from','document','registerDescriptionCallback','change','outdentBlock','plugins','getItems','indentBlock','IndentEditing','filter','checkAttribute','indent','format','selection','outdent','*Indent:*\x20%0','getItemLabel','markBlockFormat','commandName','afterInit','IndentBlock','getSelectedBlocks','has','TrackChangesEditing','enableCommand','model','_descriptionFactory','editor','locale'];(function(_0x502f18,_0x2a53b0){const _0x53a1db=function(_0x5428f8){while(--_0x5428f8){_0x502f18['push'](_0x502f18['shift']());}};_0x53a1db(++_0x2a53b0);}(_0x2a53,0x1b5));const _0x53a1=function(_0x502f18,_0x2a53b0){_0x502f18=_0x502f18-0x0;let _0x53a1db=_0x2a53[_0x502f18];return _0x53a1db;};import{Plugin as _0x5ca99e}from'ckeditor5/src/core';import{getTranslation as _0x60f3ea}from'../utils/common-translations';export default class K extends _0x5ca99e{[_0x53a1('0x11')](){const _0x1c89e8=this[_0x53a1('0x19')],_0x3c46f2=_0x1c89e8[_0x53a1('0x3')]['get'](_0x53a1('0x15'));_0x1c89e8['plugins'][_0x53a1('0x14')](_0x53a1('0x6'))&&(_0x3c46f2[_0x53a1('0x16')](_0x53a1('0x9')),_0x3c46f2[_0x53a1('0x16')](_0x53a1('0xc')));const _0x770fcc=_0x1c89e8[_0x53a1('0x1a')];if(_0x1c89e8[_0x53a1('0x3')][_0x53a1('0x14')](_0x53a1('0x12'))){for(const _0x6f62f3 of['indentBlock',_0x53a1('0x2')])_0x3c46f2[_0x53a1('0x16')](_0x6f62f3,()=>{const _0x8082a4=Array[_0x53a1('0x1b')](this[_0x53a1('0x19')][_0x53a1('0x17')][_0x53a1('0x1c')][_0x53a1('0xb')][_0x53a1('0x13')]())[_0x53a1('0x7')](_0x2a08e9=>this[_0x53a1('0x19')]['model']['schema'][_0x53a1('0x8')](_0x2a08e9,'blockIndent'));_0x1c89e8[_0x53a1('0x17')][_0x53a1('0x1')](()=>{for(const _0x2a00c8 of _0x8082a4)_0x3c46f2[_0x53a1('0xf')](_0x2a00c8,{'commandName':_0x6f62f3,'commandParams':[{'value':''}],'formatGroupId':_0x53a1('0x5')});});});_0x3c46f2[_0x53a1('0x18')][_0x53a1('0x0')](_0xea9527=>{const {data:_0x4b2ee3}=_0xea9527;if(!_0x4b2ee3)return;if(_0x53a1('0x5')!=_0x4b2ee3[_0x53a1('0x10')]&&_0x53a1('0x2')!=_0x4b2ee3[_0x53a1('0x10')])return;const _0xcaeea5=_0xea9527[_0x53a1('0x4')]()[0x0],_0x4ec159=_0x3c46f2[_0x53a1('0x18')][_0x53a1('0xe')](_0xcaeea5['name']);return _0x53a1('0x5')==_0x4b2ee3[_0x53a1('0x10')]?{'type':_0x53a1('0xa'),'content':_0x60f3ea(_0x770fcc,_0x53a1('0xd'),_0x4ec159)}:_0x53a1('0x2')==_0x4b2ee3[_0x53a1('0x10')]?{'type':'format','content':_0x60f3ea(_0x770fcc,'*Outdent:*\x20%0',_0x4ec159)}:void 0x0;});}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1171=['TrackChangesEditing','init','input','editor','plugins','enableCommand','get'];(function(_0x23c841,_0x117173){var _0x85e675=function(_0x145116){while(--_0x145116){_0x23c841['push'](_0x23c841['shift']());}};_0x85e675(++_0x117173);}(_0x1171,0xfa));var _0x85e6=function(_0x23c841,_0x117173){_0x23c841=_0x23c841-0x0;var _0x85e675=_0x1171[_0x23c841];return _0x85e675;};import{Plugin as _0xcc99bb}from'ckeditor5/src/core';import{Input as _0x44bede}from'ckeditor5/src/typing';export default class K extends _0xcc99bb{static get['requires'](){return[_0x44bede];}[_0x85e6('0x3')](){this[_0x85e6('0x5')][_0x85e6('0x6')][_0x85e6('0x1')](_0x85e6('0x2'))[_0x85e6('0x0')](_0x85e6('0x4'));}}
23
+ var _0x3c2b=['enableCommand','get','editor','init'];(function(_0x25558d,_0x3c2b7d){var _0x39ec40=function(_0x518237){while(--_0x518237){_0x25558d['push'](_0x25558d['shift']());}};_0x39ec40(++_0x3c2b7d);}(_0x3c2b,0x100));var _0x39ec=function(_0x25558d,_0x3c2b7d){_0x25558d=_0x25558d-0x0;var _0x39ec40=_0x3c2b[_0x25558d];return _0x39ec40;};import{Plugin as _0x5e2cfa}from'ckeditor5/src/core';import{Input as _0x5479ec}from'ckeditor5/src/typing';export default class Q extends _0x5e2cfa{static get['requires'](){return[_0x5479ec];}[_0x39ec('0x3')](){this[_0x39ec('0x2')]['plugins'][_0x39ec('0x1')]('TrackChangesEditing')[_0x39ec('0x0')]('input');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x387ba0}from'ckeditor5/src/core';import{findAttributeRange as _0x6c8a7b}from'ckeditor5/src/typing';import{getRangesWithAttribute as Rt}from'./utils';export default class Q extends _0x387ba0{['afterInit'](){const _0x591a88=this['editor'];if(!_0x591a88['plugins']['has']('LinkEditing'))return;const _0x2b0fdb=_0x591a88['plugins']['get']('TrackChangesEditing');_0x2b0fdb['enableCommand']('link',(_0x488891,_0x37ac66)=>{const _0x3e8294=_0x591a88['model']['document']['selection'];let _0x322073=[];if(_0x3e8294['isCollapsed']){if(!_0x3e8294['hasAttribute']('linkHref'))return void _0x488891(_0x37ac66);{const _0x2163c4=_0x6c8a7b(_0x3e8294['getFirstPosition'](),'linkHref',_0x3e8294['getAttribute']('linkHref'),_0x591a88['model']);_0x322073=[_0x2163c4];}}else _0x322073=Array['from'](_0x3e8294['getRanges']());_0x591a88['model']['change'](()=>{for(const _0x46e900 of _0x322073)_0x2b0fdb['markInlineFormat'](_0x46e900,{'commandName':'link','commandParams':[_0x37ac66]});});}),_0x2b0fdb['enableCommand']('unlink',()=>{const _0x1a1628=this['editor']['model'],_0x19f21b=_0x1a1628['document']['selection'];_0x1a1628['change'](()=>{let _0x309be3=[];if(_0x19f21b['isCollapsed'])_0x309be3=[_0x6c8a7b(_0x19f21b['getFirstPosition'](),'linkHref',_0x19f21b['getAttribute']('linkHref'),_0x591a88['model'])];else _0x309be3=Rt('linkHref',_0x19f21b['getFirstRange'](),_0x591a88['model']);for(const _0x13edd7 of _0x309be3)_0x2b0fdb['markInlineFormat'](_0x13edd7,{'commandName':'unlink','commandParams':[]});});}),_0x2b0fdb['_descriptionFactory']['registerDescriptionCallback'](_0x49f92c=>{const {data:_0x2f30a7}=_0x49f92c,{t:t}=_0x591a88['locale'];if(_0x2f30a7){if('link'==_0x2f30a7['commandName'])return{'type':'format','content':t('*Set\x20link:*\x20%0','\x22'+_0x2f30a7['commandParams'][0x0]+'\x22')};return'unlink'==_0x2f30a7['commandName']?{'type':'format','content':t('*Remove\x20link*')}:void 0x0;}});}}
23
+ const _0x27a0=['hasAttribute','selection','isCollapsed','unlink','*Remove\x20link*','registerDescriptionCallback','change','document','LinkEditing','model','commandParams','format','commandName','*Set\x20link:*\x20%0','getFirstRange','getFirstPosition','TrackChangesEditing','getAttribute','enableCommand','linkHref','link','editor','markInlineFormat'];(function(_0x65646c,_0x27a0c3){const _0x35c6a3=function(_0x1ce8fe){while(--_0x1ce8fe){_0x65646c['push'](_0x65646c['shift']());}};_0x35c6a3(++_0x27a0c3);}(_0x27a0,0x7e));const _0x35c6=function(_0x65646c,_0x27a0c3){_0x65646c=_0x65646c-0x0;let _0x35c6a3=_0x27a0[_0x65646c];return _0x35c6a3;};import{Plugin as _0xb8f7c4}from'ckeditor5/src/core';import{findAttributeRange as _0x29ce8b}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x54f21c}from'./utils';import{getTranslation as _0x4f5558}from'../utils/common-translations';export default class V extends _0xb8f7c4{['afterInit'](){const _0x1e7675=this[_0x35c6('0xa')];if(!_0x1e7675['plugins']['has'](_0x35c6('0x14')))return;const _0x539d92=_0x1e7675['plugins']['get'](_0x35c6('0x5'));_0x539d92['enableCommand']('link',(_0x6fa172,_0x86de1e)=>{const _0x31566e=_0x1e7675['model'][_0x35c6('0x13')][_0x35c6('0xd')];let _0x203f46=[];if(_0x31566e['isCollapsed']){if(!_0x31566e[_0x35c6('0xc')](_0x35c6('0x8')))return void _0x6fa172(_0x86de1e);{const _0x188f28=_0x29ce8b(_0x31566e[_0x35c6('0x4')](),_0x35c6('0x8'),_0x31566e[_0x35c6('0x6')](_0x35c6('0x8')),_0x1e7675[_0x35c6('0x15')]);_0x203f46=[_0x188f28];}}else _0x203f46=Array['from'](_0x31566e['getRanges']());_0x1e7675['model']['change'](()=>{for(const _0x4d0115 of _0x203f46)_0x539d92['markInlineFormat'](_0x4d0115,{'commandName':_0x35c6('0x9'),'commandParams':[_0x86de1e]});});}),_0x539d92[_0x35c6('0x7')](_0x35c6('0xf'),()=>{const _0x4739fd=this[_0x35c6('0xa')]['model'],_0x1b3344=_0x4739fd['document'][_0x35c6('0xd')];_0x4739fd[_0x35c6('0x12')](()=>{let _0x59c7cb=[];if(_0x1b3344[_0x35c6('0xe')])_0x59c7cb=[_0x29ce8b(_0x1b3344[_0x35c6('0x4')](),_0x35c6('0x8'),_0x1b3344['getAttribute'](_0x35c6('0x8')),_0x1e7675[_0x35c6('0x15')])];else _0x59c7cb=_0x54f21c(_0x35c6('0x8'),_0x1b3344[_0x35c6('0x3')](),_0x1e7675['model']);for(const _0x577b99 of _0x59c7cb)_0x539d92[_0x35c6('0xb')](_0x577b99,{'commandName':_0x35c6('0xf'),'commandParams':[]});});}),_0x539d92['_descriptionFactory'][_0x35c6('0x11')](_0xaec68c=>{const {data:_0xf48e38}=_0xaec68c,_0x36942f=_0x1e7675['locale'];if(_0xf48e38){if(_0x35c6('0x9')==_0xf48e38[_0x35c6('0x1')]){const _0x495a20=_0xf48e38[_0x35c6('0x16')][0x0];return{'type':_0x35c6('0x0'),'content':_0x4f5558(_0x36942f,_0x35c6('0x2'),'\x22'+_0x495a20+'\x22')};}return'unlink'==_0xf48e38[_0x35c6('0x1')]?{'type':_0x35c6('0x0'),'content':_0x4f5558(_0x36942f,_0x35c6('0x10'))}:void 0x0;}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5f30c6}from'ckeditor5/src/core';export default class V extends _0x5f30c6{['afterInit'](){const _0x3361e4=this['editor'];if(!_0x3361e4['plugins']['has']('ListEditing'))return;const _0x46fa8f=_0x3361e4['plugins']['get']('TrackChangesEditing'),_0x51ba07=_0x3361e4['plugins']['has']('TodoListEditing');function _0x3b462b(_0x974dcd){return()=>{const _0x2d3747=_0x3361e4['model']['document']['selection'],_0x221ffd=_0x3361e4['commands']['get'](_0x974dcd);if(_0x221ffd['value'])return void _0x3361e4['execute']('paragraph',{});const _0x370468=_0x974dcd['slice'](0x0,-0x4),_0x1babae=function(_0x850eab,_0x4c02b7,_0x1ebc94){let _0x39802a=Array['from'](_0x850eab)['filter'](_0x2779e5=>function(_0x3360e4,_0x58f3c7){return _0x58f3c7['checkChild'](_0x3360e4['parent'],'listItem')&&!_0x58f3c7['isObject'](_0x3360e4);}(_0x2779e5,_0x1ebc94));_0x39802a=_0x39802a['filter'](_0x5ced91=>!_0x5ced91['is']('element','listItem')||_0x5ced91['getAttribute']('listType')!=_0x4c02b7);const _0x4c377a=new Set();for(const _0x7d0b25 of _0x39802a)_0x7d0b25['is']('element','listItem')?_0x4c377a['add'](Mt(_0x7d0b25)):_0x4c377a['add'](_0x7d0b25);return Array['from'](_0x4c377a);}(_0x2d3747['getSelectedBlocks'](),_0x370468,_0x3361e4['model']['schema']);_0x3361e4['model']['change'](()=>{for(const _0x546d2e of _0x1babae)_0x46fa8f['markBlockFormat'](_0x546d2e,{'commandName':_0x974dcd,'commandParams':[{'forceValue':!_0x221ffd['value']}],'formatGroupId':'blockName'},Pt(_0x546d2e));});};}function _0x1bbbeb(_0x40b830){return()=>{const _0x4b9da2=function(_0x325d31){const _0x43d26f=(_0x325d31=Array['from'](_0x325d31))['findIndex'](_0x48db07=>'listItem'!=_0x48db07['name']);return _0x43d26f>-0x1&&(_0x325d31=_0x325d31['slice'](0x0,_0x43d26f)),_0x325d31;}(_0x3361e4['model']['document']['selection']['getSelectedBlocks']()),_0x47c8ae=_0x3361e4['model']['createRange'](_0x3361e4['model']['createPositionAt'](_0x4b9da2[0x0],'before'),_0x3361e4['model']['createPositionAt'](_0x4b9da2[_0x4b9da2['length']-0x1],'end'));_0x3361e4['model']['change'](()=>{_0x46fa8f['markBlockFormat'](_0x47c8ae,{'commandName':_0x40b830,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1c9c45){const _0x3524d9=new Set();for(const _0x212013 of _0x1c9c45){let _0x3dc996=_0x212013['nextSibling'];for(;_0x3dc996&&_0x3dc996['getAttribute']('listIndent')>_0x212013['getAttribute']('listIndent');)_0x3524d9['add'](_0x3dc996),_0x3dc996=_0x3dc996['nextSibling'];}return Array['from'](_0x3524d9);}(_0x4b9da2));});};}_0x46fa8f['enableCommand']('numberedList',_0x3b462b('numberedList')),_0x46fa8f['enableCommand']('bulletedList',_0x3b462b('bulletedList')),_0x51ba07&&_0x46fa8f['enableCommand']('todoList',_0x3b462b('todoList')),_0x46fa8f['enableCommand']('indentList',_0x1bbbeb('indentList')),_0x46fa8f['enableCommand']('outdentList',_0x1bbbeb('outdentList')),_0x51ba07&&_0x46fa8f['enableCommand']('checkTodoList',()=>{const _0x260f39=_0x3361e4['commands']['get']('checkTodoList'),_0xa83e78=Array['from'](_0x260f39['_selectedElements']);_0xa83e78['filter'](_0x45e2e2=>_0x45e2e2['getAttribute']('todoListChecked')!=_0x260f39['value']),_0x3361e4['model']['change'](()=>{for(const _0x5ae383 of _0xa83e78)_0x46fa8f['markBlockFormat'](_0x5ae383,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x260f39['value']}]});});});const {t:t}=_0x3361e4['locale'];_0x46fa8f['_descriptionFactory']['registerElementLabel']('listItem',_0x228c63=>t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x228c63)),_0x46fa8f['_descriptionFactory']['registerDescriptionCallback'](_0x46fecb=>{const {data:_0x2d5ed4}=_0x46fecb;if(_0x2d5ed4){if('numberedList'==_0x2d5ed4['commandName']||'bulletedList'==_0x2d5ed4['commandName']||'todoList'==_0x2d5ed4['commandName'])switch(_0x2d5ed4['commandName']['replace']('List','')){case'bulleted':return _0x1972d9(t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'}));case'numbered':return _0x1972d9(t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'}));case'todo':return _0x1972d9(t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'}));}if('indentList'==_0x2d5ed4['commandName'])return{'type':'format','content':t('*Indent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('outdentList'==_0x2d5ed4['commandName'])return{'type':'format','content':t('*Outdent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('checkTodoList'==_0x2d5ed4['commandName'])return _0x2d5ed4['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Check\x20item*')}:{'type':'format','content':t('*Uncheck\x20item*')};}function _0x1972d9(_0x16c490){return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x16c490)};}});}}function Mt(_0x525eaa){const _0x3271c3=_0x525eaa['getAttribute']('listIndent');if(0x0==_0x3271c3)return _0x525eaa;let _0x49ee55=_0x525eaa;for(;_0x525eaa['previousSibling']&&_0x525eaa['previousSibling']['is']('element','listItem');){const _0x1e2b54=_0x525eaa['previousSibling']['getAttribute']('listIndent');if(_0x1e2b54==_0x3271c3)_0x49ee55=_0x525eaa['previousSibling'];else{if(_0x1e2b54<_0x3271c3)break;}_0x525eaa=_0x525eaa['previousSibling'];}return _0x49ee55;}function Pt(_0x1749c6){const _0x535b08=[];if(_0x1749c6['is']('element','listItem')&&_0x1749c6['getAttribute']('listIndent')>0x0){let _0x5ecd41=_0x1749c6['nextSibling'];for(;_0x5ecd41&&'listItem'==_0x5ecd41['name']&&_0x5ecd41['getAttribute']('listIndent')==_0x1749c6['getAttribute']('listIndent');)_0x535b08['push'](_0x5ecd41),_0x5ecd41=_0x5ecd41['nextSibling'];}return _0x535b08;}
23
+ const _0x1fe0=['_selectedElements','bulletedList','*Outdent:*\x20%0','todo','afterInit','format','slice','blockName','indentList','from','createRange','listIndent','TodoListEditing','*Change\x20to:*\x20%0','checkTodoList','parent','previousSibling','name','checkChild','outdentList','element','TrackChangesEditing','replace','document','*Indent:*\x20%0','listItem','markBlockFormat','nextSibling','List','*Check\x20item*','commands','numberedList','commandParams','todoList','filter','change','selection','findIndex','createPositionAt','ELEMENT_LIST_ITEM','enableCommand','getAttribute','paragraph','has','ELEMENT_NUMBERED_LIST','model','plugins','ListEditing','execute','commandName','listType','registerElementLabel','isObject','before','_descriptionFactory','get','schema','locale','getSelectedBlocks','numbered','value','add'];(function(_0x3fa639,_0x1fe0ab){const _0x322df2=function(_0x589a34){while(--_0x589a34){_0x3fa639['push'](_0x3fa639['shift']());}};_0x322df2(++_0x1fe0ab);}(_0x1fe0,0x16f));const _0x322d=function(_0x3fa639,_0x1fe0ab){_0x3fa639=_0x3fa639-0x0;let _0x322df2=_0x1fe0[_0x3fa639];return _0x322df2;};import{Plugin as _0x19e814}from'ckeditor5/src/core';import{getTranslation as _0x497e4b}from'../utils/common-translations';export default class X extends _0x19e814{[_0x322d('0x9')](){const _0x2bd578=this['editor'],_0x5e0a64=_0x2bd578[_0x322d('0x0')];if(!_0x2bd578[_0x322d('0x33')][_0x322d('0x30')](_0x322d('0x34')))return;const _0x5771ee=_0x2bd578['plugins'][_0x322d('0x3c')](_0x322d('0x1a')),_0x27cb9b=_0x2bd578[_0x322d('0x33')]['has'](_0x322d('0x11'));function _0x5cdba2(_0xbb0a90){return()=>{const _0x376867=_0x2bd578[_0x322d('0x32')][_0x322d('0x1c')][_0x322d('0x29')],_0x4307fa=_0x2bd578[_0x322d('0x23')][_0x322d('0x3c')](_0xbb0a90);if(_0x4307fa[_0x322d('0x3')])return void _0x2bd578[_0x322d('0x35')](_0x322d('0x2f'),{});const _0x13df83=_0xbb0a90[_0x322d('0xb')](0x0,-0x4),_0x1c17f5=function(_0x3177df,_0x1ac696,_0x379d01){let _0x5da8b1=Array['from'](_0x3177df)[_0x322d('0x27')](_0x262c80=>function(_0x1b6bf2,_0x11e7aa){return _0x11e7aa[_0x322d('0x17')](_0x1b6bf2[_0x322d('0x14')],_0x322d('0x1e'))&&!_0x11e7aa[_0x322d('0x39')](_0x1b6bf2);}(_0x262c80,_0x379d01));_0x5da8b1=_0x5da8b1[_0x322d('0x27')](_0x34a5ff=>!_0x34a5ff['is'](_0x322d('0x19'),_0x322d('0x1e'))||_0x34a5ff[_0x322d('0x2e')](_0x322d('0x37'))!=_0x1ac696);const _0x4a94e6=new Set();for(const _0x1938bc of _0x5da8b1)_0x1938bc['is']('element',_0x322d('0x1e'))?_0x4a94e6[_0x322d('0x4')](Mt(_0x1938bc)):_0x4a94e6[_0x322d('0x4')](_0x1938bc);return Array[_0x322d('0xe')](_0x4a94e6);}(_0x376867[_0x322d('0x1')](),_0x13df83,_0x2bd578[_0x322d('0x32')][_0x322d('0x3d')]);_0x2bd578[_0x322d('0x32')][_0x322d('0x28')](()=>{for(const _0x445ee3 of _0x1c17f5)_0x5771ee[_0x322d('0x1f')](_0x445ee3,{'commandName':_0xbb0a90,'commandParams':[{'forceValue':!_0x4307fa[_0x322d('0x3')]}],'formatGroupId':_0x322d('0xc')},Pt(_0x445ee3));});};}function _0x10045b(_0x2e81f8){return()=>{const _0xd5cb1f=function(_0x347bb6){const _0x5d6b43=(_0x347bb6=Array[_0x322d('0xe')](_0x347bb6))[_0x322d('0x2a')](_0x22edeb=>'listItem'!=_0x22edeb['name']);return _0x5d6b43>-0x1&&(_0x347bb6=_0x347bb6[_0x322d('0xb')](0x0,_0x5d6b43)),_0x347bb6;}(_0x2bd578[_0x322d('0x32')]['document']['selection']['getSelectedBlocks']()),_0x1a6895=_0x2bd578[_0x322d('0x32')][_0x322d('0xf')](_0x2bd578['model'][_0x322d('0x2b')](_0xd5cb1f[0x0],_0x322d('0x3a')),_0x2bd578[_0x322d('0x32')][_0x322d('0x2b')](_0xd5cb1f[_0xd5cb1f['length']-0x1],'end'));_0x2bd578['model'][_0x322d('0x28')](()=>{_0x5771ee['markBlockFormat'](_0x1a6895,{'commandName':_0x2e81f8,'commandParams':[],'formatGroupId':_0x322d('0x10')},function(_0x37b2b4){const _0x1c0970=new Set();for(const _0x4a725b of _0x37b2b4){let _0x4dbf27=_0x4a725b[_0x322d('0x20')];for(;_0x4dbf27&&_0x4dbf27[_0x322d('0x2e')](_0x322d('0x10'))>_0x4a725b[_0x322d('0x2e')](_0x322d('0x10'));)_0x1c0970[_0x322d('0x4')](_0x4dbf27),_0x4dbf27=_0x4dbf27[_0x322d('0x20')];}return Array[_0x322d('0xe')](_0x1c0970);}(_0xd5cb1f));});};}_0x5771ee[_0x322d('0x2d')](_0x322d('0x24'),_0x5cdba2(_0x322d('0x24'))),_0x5771ee['enableCommand'](_0x322d('0x6'),_0x5cdba2(_0x322d('0x6'))),_0x27cb9b&&_0x5771ee[_0x322d('0x2d')](_0x322d('0x26'),_0x5cdba2(_0x322d('0x26'))),_0x5771ee[_0x322d('0x2d')](_0x322d('0xd'),_0x10045b('indentList')),_0x5771ee[_0x322d('0x2d')](_0x322d('0x18'),_0x10045b(_0x322d('0x18'))),_0x27cb9b&&_0x5771ee['enableCommand']('checkTodoList',()=>{const _0x38cfb4=_0x2bd578[_0x322d('0x23')]['get'](_0x322d('0x13')),_0x1304b5=Array['from'](_0x38cfb4[_0x322d('0x5')]);_0x1304b5['filter'](_0x59233e=>_0x59233e[_0x322d('0x2e')]('todoListChecked')!=_0x38cfb4['value']),_0x2bd578[_0x322d('0x32')][_0x322d('0x28')](()=>{for(const _0x16b360 of _0x1304b5)_0x5771ee[_0x322d('0x1f')](_0x16b360,{'commandName':_0x322d('0x13'),'commandParams':[{'forceValue':!_0x38cfb4[_0x322d('0x3')]}]});});}),_0x5771ee['_descriptionFactory'][_0x322d('0x38')](_0x322d('0x1e'),_0xaf9a5c=>_0x497e4b(_0x5e0a64,_0x322d('0x2c'),_0xaf9a5c)),_0x5771ee[_0x322d('0x3b')]['registerDescriptionCallback'](_0xab2249=>{const {data:_0x2fefb2}=_0xab2249;if(_0x2fefb2){if('numberedList'==_0x2fefb2['commandName']||_0x322d('0x6')==_0x2fefb2['commandName']||_0x322d('0x26')==_0x2fefb2[_0x322d('0x36')])switch(_0x2fefb2[_0x322d('0x36')][_0x322d('0x1b')](_0x322d('0x21'),'')){case'bulleted':return _0x31c42b(_0x497e4b(_0x5e0a64,'ELEMENT_BULLETED_LIST'));case _0x322d('0x2'):return _0x31c42b(_0x497e4b(_0x5e0a64,_0x322d('0x31')));case _0x322d('0x8'):return _0x31c42b(_0x497e4b(_0x5e0a64,'ELEMENT_TODO_LIST'));}if(_0x322d('0xd')==_0x2fefb2['commandName'])return{'type':'format','content':_0x497e4b(_0x5e0a64,_0x322d('0x1d'),_0x497e4b(_0x5e0a64,_0x322d('0x2c')))};if(_0x322d('0x18')==_0x2fefb2[_0x322d('0x36')])return{'type':'format','content':_0x497e4b(_0x5e0a64,_0x322d('0x7'),_0x497e4b(_0x5e0a64,_0x322d('0x2c')))};if(_0x322d('0x13')==_0x2fefb2[_0x322d('0x36')])return _0x2fefb2[_0x322d('0x25')][0x0]['forceValue']?{'type':_0x322d('0xa'),'content':_0x497e4b(_0x5e0a64,_0x322d('0x22'))}:{'type':_0x322d('0xa'),'content':_0x497e4b(_0x5e0a64,'*Uncheck\x20item*')};}function _0x31c42b(_0x55e884){return{'type':_0x322d('0xa'),'content':_0x497e4b(_0x5e0a64,_0x322d('0x12'),_0x55e884)};}});}}function Mt(_0x2a0f88){const _0x2e7c4f=_0x2a0f88[_0x322d('0x2e')](_0x322d('0x10'));if(0x0==_0x2e7c4f)return _0x2a0f88;let _0x159558=_0x2a0f88;for(;_0x2a0f88[_0x322d('0x15')]&&_0x2a0f88[_0x322d('0x15')]['is'](_0x322d('0x19'),'listItem');){const _0x3296d8=_0x2a0f88[_0x322d('0x15')]['getAttribute']('listIndent');if(_0x3296d8==_0x2e7c4f)_0x159558=_0x2a0f88[_0x322d('0x15')];else{if(_0x3296d8<_0x2e7c4f)break;}_0x2a0f88=_0x2a0f88[_0x322d('0x15')];}return _0x159558;}function Pt(_0x2ea73b){const _0x49151a=[];if(_0x2ea73b['is'](_0x322d('0x19'),_0x322d('0x1e'))&&_0x2ea73b[_0x322d('0x2e')](_0x322d('0x10'))>0x0){let _0x4c84af=_0x2ea73b[_0x322d('0x20')];for(;_0x4c84af&&'listItem'==_0x4c84af[_0x322d('0x16')]&&_0x4c84af[_0x322d('0x2e')](_0x322d('0x10'))==_0x2ea73b[_0x322d('0x2e')]('listIndent');)_0x49151a['push'](_0x4c84af),_0x4c84af=_0x4c84af[_0x322d('0x20')];}return _0x49151a;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x274ae8}from'ckeditor5/src/core';export default class X extends _0x274ae8{['afterInit'](){const _0x31ffd2=this['editor'];if(!_0x31ffd2['plugins']['has']('MediaEmbedEditing'))return;const _0x53d0fa=_0x31ffd2['plugins']['get']('TrackChangesEditing'),{t:t}=_0x31ffd2['locale'];_0x53d0fa['enableCommand']('mediaEmbed'),_0x53d0fa['_descriptionFactory']['registerElementLabel']('media',_0x341882=>t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x341882)),_0x31ffd2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x16544e,{writer:_0x189eae,options:_0x51fc43})=>{if(_0x51fc43['showSuggestionHighlights'])return _0x189eae['createEmptyElement']('div');},'converterPriority':'high'}),_0x31ffd2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x42579f,_0x511bc0,_0x15e68a)=>{_0x15e68a['options']['showSuggestionHighlights']&&_0x42579f['stop']();},{'priority':'high'});}}
23
+ const _0xe202=['conversion','_descriptionFactory','showSuggestionHighlights','locale','MediaEmbedEditing','dataDowncast','plugins','elementToElement','ELEMENT_MEDIA','high','mediaEmbed','afterInit','registerElementLabel','stop','div','get','enableCommand','TrackChangesEditing','downcastDispatcher','createEmptyElement','options','attribute:url:media','media'];(function(_0x279d6c,_0xe20245){const _0x4745cb=function(_0x353cdd){while(--_0x353cdd){_0x279d6c['push'](_0x279d6c['shift']());}};_0x4745cb(++_0xe20245);}(_0xe202,0x10a));const _0x4745=function(_0x279d6c,_0xe20245){_0x279d6c=_0x279d6c-0x0;let _0x4745cb=_0xe202[_0x279d6c];return _0x4745cb;};import{Plugin as _0x143cb7}from'ckeditor5/src/core';import{getTranslation as _0x80f8a0}from'../utils/common-translations';export default class Y extends _0x143cb7{[_0x4745('0x15')](){const _0x26dd46=this['editor'];if(!_0x26dd46[_0x4745('0x10')]['has'](_0x4745('0xe')))return;const _0x50baec=_0x26dd46[_0x4745('0x10')][_0x4745('0x2')](_0x4745('0x4')),_0x58929d=_0x26dd46[_0x4745('0xd')];_0x50baec[_0x4745('0x3')](_0x4745('0x14')),_0x50baec[_0x4745('0xb')][_0x4745('0x16')](_0x4745('0x9'),_0x153282=>_0x80f8a0(_0x58929d,_0x4745('0x12'),_0x153282)),_0x26dd46[_0x4745('0xa')]['for'](_0x4745('0xf'))[_0x4745('0x11')]({'model':_0x4745('0x9'),'view':(_0x5c6e52,{writer:_0x1ab898,options:_0x1b7938})=>{if(_0x1b7938[_0x4745('0xc')])return _0x1ab898[_0x4745('0x6')](_0x4745('0x1'));},'converterPriority':'high'}),_0x26dd46['data'][_0x4745('0x5')]['on'](_0x4745('0x8'),(_0x5a4ea3,_0xe43e7e,_0x538f0c)=>{_0x538f0c[_0x4745('0x7')][_0x4745('0xc')]&&_0x5a4ea3[_0x4745('0x0')]();},{'priority':_0x4745('0x13')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x63b9=['editor','afterInit','MentionEditing','TrackChangesEditing','plugins','has','mention','get'];(function(_0x1b69f6,_0x63b9b4){const _0x780540=function(_0x5baf97){while(--_0x5baf97){_0x1b69f6['push'](_0x1b69f6['shift']());}};_0x780540(++_0x63b9b4);}(_0x63b9,0xd7));const _0x7805=function(_0x1b69f6,_0x63b9b4){_0x1b69f6=_0x1b69f6-0x0;let _0x780540=_0x63b9[_0x1b69f6];return _0x780540;};import{Plugin as _0x414e44}from'ckeditor5/src/core';export default class Y extends _0x414e44{[_0x7805('0x2')](){const _0x16826c=this[_0x7805('0x1')];_0x16826c[_0x7805('0x5')][_0x7805('0x6')](_0x7805('0x3'))&&_0x16826c[_0x7805('0x5')][_0x7805('0x0')](_0x7805('0x4'))['enableCommand'](_0x7805('0x7'));}}
23
+ const _0x5a8c=['afterInit','has','MentionEditing','editor','plugins','mention','get'];(function(_0x408390,_0x5a8cb5){const _0x54ac93=function(_0x1bb287){while(--_0x1bb287){_0x408390['push'](_0x408390['shift']());}};_0x54ac93(++_0x5a8cb5);}(_0x5a8c,0x173));const _0x54ac=function(_0x408390,_0x5a8cb5){_0x408390=_0x408390-0x0;let _0x54ac93=_0x5a8c[_0x408390];return _0x54ac93;};import{Plugin as _0x14afb9}from'ckeditor5/src/core';export default class Z extends _0x14afb9{[_0x54ac('0x0')](){const _0x2b0ace=this[_0x54ac('0x3')];_0x2b0ace[_0x54ac('0x4')][_0x54ac('0x1')](_0x54ac('0x2'))&&_0x2b0ace[_0x54ac('0x4')][_0x54ac('0x6')]('TrackChangesEditing')['enableCommand'](_0x54ac('0x5'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1ae752}from'ckeditor5/src/core';export default class Z extends _0x1ae752{['afterInit'](){const _0x2a945d=this['editor'];if(!_0x2a945d['plugins']['has']('PageBreakEditing'))return;_0x2a945d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x51bb2f=_0x2a945d['plugins']['get']('TrackChangesEditing'),{t:t}=_0x2a945d['locale'];_0x51bb2f['_descriptionFactory']['registerElementLabel']('pageBreak',_0x4a7e1f=>t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4a7e1f));}}
23
+ const _0x329f=['registerElementLabel','afterInit','get','TrackChangesEditing','_descriptionFactory','ELEMENT_PAGE_BREAK','enableCommand','editor','pageBreak','PageBreakEditing','plugins'];(function(_0x83c45d,_0x329fdc){const _0x4f3ea1=function(_0x2b1320){while(--_0x2b1320){_0x83c45d['push'](_0x83c45d['shift']());}};_0x4f3ea1(++_0x329fdc);}(_0x329f,0x86));const _0x4f3e=function(_0x83c45d,_0x329fdc){_0x83c45d=_0x83c45d-0x0;let _0x4f3ea1=_0x329f[_0x83c45d];return _0x4f3ea1;};import{Plugin as _0x174b6c}from'ckeditor5/src/core';import{getTranslation as _0x34dd78}from'../utils/common-translations';export default class tt extends _0x174b6c{[_0x4f3e('0xa')](){const _0x5f56c0=this[_0x4f3e('0x5')];if(!_0x5f56c0[_0x4f3e('0x8')]['has'](_0x4f3e('0x7')))return;_0x5f56c0[_0x4f3e('0x8')][_0x4f3e('0x0')](_0x4f3e('0x1'))[_0x4f3e('0x4')](_0x4f3e('0x6'));const _0x33ad55=_0x5f56c0[_0x4f3e('0x8')][_0x4f3e('0x0')](_0x4f3e('0x1')),_0x57f24e=_0x5f56c0['locale'];_0x33ad55[_0x4f3e('0x2')][_0x4f3e('0x9')](_0x4f3e('0x6'),_0x1131a0=>_0x34dd78(_0x57f24e,_0x4f3e('0x3'),_0x1131a0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x164b2b}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2b4f42}from'./utils';export default class tt extends _0x164b2b{['afterInit'](){const _0x3b9431=this['editor'];if(!_0x3b9431['plugins']['has']('Paragraph'))return;const {t:t}=_0x3b9431['locale'],_0x82ef7c=_0x3b9431['plugins']['get']('TrackChangesEditing');_0x82ef7c['_descriptionFactory']['registerElementLabel']('paragraph',_0x94f017=>t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x94f017)),_0x82ef7c['enableCommand']('paragraph',(_0x44b38f,_0x648abe={})=>{const _0x35690b=_0x3b9431['model']['document'],_0x239dc5=_0x648abe['selection']||_0x35690b['selection'],_0x169c89=Array['from'](_0x239dc5['getSelectedBlocks']())['filter'](_0x5e8475=>function(_0x5944cb,_0x43dae0){return _0x43dae0['checkChild'](_0x5944cb['parent'],'paragraph')&&!_0x43dae0['isObject'](_0x5944cb)&&'paragraph'!=_0x5944cb['name'];}(_0x5e8475,this['editor']['model']['schema']));_0x3b9431['model']['change'](()=>{for(const _0x78b6a3 of _0x169c89)_0x82ef7c['markBlockFormat'](_0x78b6a3,{'commandName':'paragraph','commandParams':[],'formatGroupId':'blockName'},_0x2b4f42(_0x78b6a3));});}),_0x82ef7c['_descriptionFactory']['registerDescriptionCallback'](_0x19cca5=>{const {data:_0xd7745f}=_0x19cca5;if(_0xd7745f&&'paragraph'==_0xd7745f['commandName'])return{'type':'format','content':t('*Change\x20to:*\x20%0',t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'}))};}),_0x82ef7c['enableCommand']('insertParagraph'),_0x3b9431['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',tr(_0x3b9431),{'priority':'highest'}),_0x3b9431['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39ef5e,_0x740aa8,_0x52d844)=>{_0x52d844['options']['showSuggestionHighlights']&&tr(_0x3b9431,{'showActiveMarker':!0x1})(_0x39ef5e,_0x740aa8,_0x52d844);},{'priority':'highest'});const _0x4fac16=_0x82ef7c['_descriptionFactory'];_0x4fac16['registerDescriptionCallback'](_0x25aa2c=>{if('insertion'!==_0x25aa2c['type'])return;const {start:_0xda5eb6,end:_0x5660e6}=_0x25aa2c['getFirstRange']();if(!_0xda5eb6['isTouching'](_0x5660e6)||!_0xda5eb6['nodeAfter'])return;const _0x22cb11=_0x3b9431['model']['schema'],_0x51a23a=_0xda5eb6['nodeAfter'];return _0x22cb11['isBlock'](_0x51a23a)&&!_0x22cb11['isLimit'](_0x51a23a)&&_0x22cb11['checkChild'](_0x51a23a,'$text')?{'type':'insertion','content':t('*Insert:*\x20%0',_0x4fac16['getItemLabel'](_0x51a23a['name'],0x1))}:void 0x0;});}}function tr(_0x18057d,{showActiveMarker:_0x261088=!0x0}={}){return(_0x3544c1,_0x4b957f,_0x2942b6)=>{const _0x5d4c0d=_0x18057d['plugins']['get']('TrackChangesEditing'),_0x537ea9=_0x4b957f['markerRange']['start'],_0x22eeeb=_0x4b957f['markerRange']['end'],_0xe87146=_0x18057d['model']['schema'];if(!_0x537ea9['isTouching'](_0x22eeeb)||!_0x537ea9['nodeAfter'])return;const _0x263e1f=_0x537ea9['nodeAfter'];if(_0xe87146['isBlock'](_0x263e1f)&&!_0xe87146['isLimit'](_0x263e1f)&&_0xe87146['checkChild'](_0x263e1f,'$text')){if(!_0x2942b6['consumable']['consume'](_0x4b957f['markerRange'],_0x3544c1['name']))return;const _0x59862b=_0x2942b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x17c26c=_0x2942b6['mapper']['toViewPosition'](_0x22eeeb);_0x261088&&_0x5d4c0d['activeMarkers']['includes'](_0x4b957f['markerName'])&&_0x2942b6['writer']['addClass']('ck-suggestion-marker--active',_0x59862b),_0x2942b6['writer']['insert'](_0x17c26c,_0x59862b),_0x2942b6['mapper']['bindElementToMarker'](_0x59862b,_0x4b957f['markerName']);}};}
23
+ const _0x4bbe=['span','insertParagraph','isBlock','checkChild','addClass','ck-suggestion-marker-split','Paragraph','createUIElement','*Insert:*\x20%0','markerName','highest','markBlockFormat','consume','markerRange','bindElementToMarker','addMarker:suggestion:insertion','afterInit','model','registerDescriptionCallback','document','registerElementLabel','TrackChangesEditing','toViewPosition','selection','isObject','data','change','commandName','isTouching','editing','parent','$text','start','format','insert','type','downcastDispatcher','insertion','ck-suggestion-marker--active','schema','mapper','isLimit','consumable','getSelectedBlocks','_descriptionFactory','locale','activeMarkers','writer','get','enableCommand','paragraph','options','has','plugins','end','nodeAfter'];(function(_0x1e769e,_0x4bbea5){const _0x42ddd3=function(_0x7a4299){while(--_0x7a4299){_0x1e769e['push'](_0x1e769e['shift']());}};_0x42ddd3(++_0x4bbea5);}(_0x4bbe,0xe4));const _0x42dd=function(_0x1e769e,_0x4bbea5){_0x1e769e=_0x1e769e-0x0;let _0x42ddd3=_0x4bbe[_0x1e769e];return _0x42ddd3;};import{Plugin as _0x34ca08}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x54facb}from'./utils';import{getTranslation as _0x18d174}from'../utils/common-translations';export default class it extends _0x34ca08{[_0x42dd('0xc')](){const _0x207795=this['editor'];if(!_0x207795[_0x42dd('0x31')][_0x42dd('0x30')](_0x42dd('0x2')))return;const _0x3a9542=_0x207795[_0x42dd('0x29')],_0x5afcba=_0x207795[_0x42dd('0x31')][_0x42dd('0x2c')](_0x42dd('0x11'));_0x5afcba[_0x42dd('0x28')][_0x42dd('0x10')](_0x42dd('0x2e'),_0x5af026=>_0x18d174(_0x3a9542,'ELEMENT_PARAGRAPH',_0x5af026)),_0x5afcba[_0x42dd('0x2d')](_0x42dd('0x2e'),(_0x460680,_0x58a97c={})=>{const _0x29e584=_0x207795['model'][_0x42dd('0xf')],_0x1c49c5=_0x58a97c[_0x42dd('0x13')]||_0x29e584[_0x42dd('0x13')],_0x1a7151=Array['from'](_0x1c49c5[_0x42dd('0x27')]())['filter'](_0x39cf2e=>function(_0x1fef88,_0x498aa6){return _0x498aa6[_0x42dd('0x37')](_0x1fef88[_0x42dd('0x1a')],_0x42dd('0x2e'))&&!_0x498aa6[_0x42dd('0x14')](_0x1fef88)&&_0x42dd('0x2e')!=_0x1fef88['name'];}(_0x39cf2e,this['editor'][_0x42dd('0xd')]['schema']));_0x207795[_0x42dd('0xd')][_0x42dd('0x16')](()=>{for(const _0x22fb99 of _0x1a7151)_0x5afcba[_0x42dd('0x7')](_0x22fb99,{'commandName':_0x42dd('0x2e'),'commandParams':[],'formatGroupId':'blockName'},_0x54facb(_0x22fb99));});}),_0x5afcba[_0x42dd('0x28')][_0x42dd('0xe')](_0xd4b7c=>{const {data:_0x438ebd}=_0xd4b7c;if(_0x438ebd&&_0x42dd('0x2e')==_0x438ebd[_0x42dd('0x17')])return{'type':_0x42dd('0x1d'),'content':_0x18d174(_0x3a9542,'*Change\x20to:*\x20%0',_0x18d174(_0x3a9542,'ELEMENT_PARAGRAPH'))};}),_0x5afcba[_0x42dd('0x2d')](_0x42dd('0x35')),_0x207795[_0x42dd('0x19')][_0x42dd('0x20')]['on'](_0x42dd('0xb'),tr(_0x207795),{'priority':_0x42dd('0x6')}),_0x207795[_0x42dd('0x15')][_0x42dd('0x20')]['on'](_0x42dd('0xb'),(_0x45c09b,_0xcfa50a,_0x101c28)=>{_0x101c28[_0x42dd('0x2f')]['showSuggestionHighlights']&&tr(_0x207795,{'showActiveMarker':!0x1})(_0x45c09b,_0xcfa50a,_0x101c28);},{'priority':_0x42dd('0x6')});const _0x202467=_0x5afcba['_descriptionFactory'];_0x202467[_0x42dd('0xe')](_0x194a35=>{if(_0x42dd('0x21')!==_0x194a35[_0x42dd('0x1f')])return;const {start:_0x32d616,end:_0x52e8a4}=_0x194a35['getFirstRange']();if(!_0x32d616[_0x42dd('0x18')](_0x52e8a4)||!_0x32d616[_0x42dd('0x33')])return;const _0x285ff7=_0x207795['model'][_0x42dd('0x23')],_0x232350=_0x32d616[_0x42dd('0x33')];return _0x285ff7[_0x42dd('0x36')](_0x232350)&&!_0x285ff7['isLimit'](_0x232350)&&_0x285ff7[_0x42dd('0x37')](_0x232350,'$text')?{'type':_0x42dd('0x21'),'content':_0x18d174(_0x3a9542,_0x42dd('0x4'),_0x202467['getItemLabel'](_0x232350['name'],0x1))}:void 0x0;});}}function tr(_0x1aefbc,{showActiveMarker:_0x55a785=!0x0}={}){return(_0x1ad5df,_0x4f0aa3,_0x5755f2)=>{const _0x4335ed=_0x1aefbc[_0x42dd('0x31')]['get'](_0x42dd('0x11')),_0x55158c=_0x4f0aa3[_0x42dd('0x9')][_0x42dd('0x1c')],_0x3b191d=_0x4f0aa3[_0x42dd('0x9')][_0x42dd('0x32')],_0x2f4b5d=_0x1aefbc[_0x42dd('0xd')][_0x42dd('0x23')];if(!_0x55158c['isTouching'](_0x3b191d)||!_0x55158c[_0x42dd('0x33')])return;const _0x225cab=_0x55158c[_0x42dd('0x33')];if(_0x2f4b5d[_0x42dd('0x36')](_0x225cab)&&!_0x2f4b5d[_0x42dd('0x25')](_0x225cab)&&_0x2f4b5d[_0x42dd('0x37')](_0x225cab,_0x42dd('0x1b'))){if(!_0x5755f2[_0x42dd('0x26')][_0x42dd('0x8')](_0x4f0aa3[_0x42dd('0x9')],_0x1ad5df['name']))return;const _0x4f0c69=_0x5755f2['writer'][_0x42dd('0x3')](_0x42dd('0x34'),{'class':_0x42dd('0x1')}),_0xc43b09=_0x5755f2[_0x42dd('0x24')][_0x42dd('0x12')](_0x3b191d);_0x55a785&&_0x4335ed[_0x42dd('0x2a')]['includes'](_0x4f0aa3[_0x42dd('0x5')])&&_0x5755f2[_0x42dd('0x2b')][_0x42dd('0x0')](_0x42dd('0x22'),_0x4f0c69),_0x5755f2[_0x42dd('0x2b')][_0x42dd('0x1e')](_0xc43b09,_0x4f0c69),_0x5755f2[_0x42dd('0x24')][_0x42dd('0xa')](_0x4f0c69,_0x4f0aa3[_0x42dd('0x5')]);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5d695c}from'ckeditor5/src/core';export default class it extends _0x5d695c{['afterInit'](){const _0x2b658f=this['editor'];if(!_0x2b658f['plugins']['has']('RemoveFormatEditing'))return;const _0xa89046=_0x2b658f['plugins']['get']('TrackChangesEditing');_0xa89046['enableCommand']('removeFormat',_0x37c99a=>{const _0x4b72c6=_0x2b658f['model']['document']['selection'];_0x4b72c6['isCollapsed']?_0x37c99a():_0x2b658f['model']['change'](()=>{const _0x81e714=Array['from'](_0x4b72c6['getRanges']());for(const _0x505233 of _0x81e714)for(const _0x14752f of _0x505233['getItems']())Gt(_0x14752f,_0x2b658f['model']['schema'])&&_0xa89046['markInlineFormat'](_0x2b658f['model']['createRangeOn'](_0x14752f),{'commandName':'removeFormat','commandParams':[]});});});const {t:t}=_0x2b658f['locale'];_0xa89046['_descriptionFactory']['registerDescriptionCallback'](_0x165180=>{const {data:_0x306f72}=_0x165180;if(_0x306f72&&'removeFormat'==_0x306f72['commandName'])return{'type':'format','content':t('*Remove\x20all\x20formatting*')};});}}function Gt(_0x4bdcec,_0x6fa470){for(const [_0x2f309f]of _0x4bdcec['getAttributes']()){const _0x85d5a9=_0x6fa470['getAttributeProperties'](_0x2f309f);if(_0x85d5a9&&_0x85d5a9['isFormatting'])return!0x0;}return!0x1;}
23
+ const _0x2d98=['getAttributes','locale','get','from','commandName','plugins','isCollapsed','getAttributeProperties','*Remove\x20all\x20formatting*','change','model','removeFormat','document','_descriptionFactory','editor','enableCommand','TrackChangesEditing','afterInit','schema','format','isFormatting'];(function(_0x140f3c,_0x2d98c9){const _0x58a3c1=function(_0x37982d){while(--_0x37982d){_0x140f3c['push'](_0x140f3c['shift']());}};_0x58a3c1(++_0x2d98c9);}(_0x2d98,0x69));const _0x58a3=function(_0x140f3c,_0x2d98c9){_0x140f3c=_0x140f3c-0x0;let _0x58a3c1=_0x2d98[_0x140f3c];return _0x58a3c1;};import{Plugin as _0x37b6c3}from'ckeditor5/src/core';import{getTranslation as _0x7d83fe}from'../utils/common-translations';export default class st extends _0x37b6c3{[_0x58a3('0x11')](){const _0xdacb50=this[_0x58a3('0xe')];if(!_0xdacb50[_0x58a3('0x5')]['has']('RemoveFormatEditing'))return;const _0x58fec8=_0xdacb50['plugins'][_0x58a3('0x2')](_0x58a3('0x10'));_0x58fec8[_0x58a3('0xf')](_0x58a3('0xb'),_0x2f56ac=>{const _0x45195d=_0xdacb50['model'][_0x58a3('0xc')]['selection'];_0x45195d[_0x58a3('0x6')]?_0x2f56ac():_0xdacb50['model'][_0x58a3('0x9')](()=>{const _0xfd8084=Array[_0x58a3('0x3')](_0x45195d['getRanges']());for(const _0x3e3a23 of _0xfd8084)for(const _0x338ce6 of _0x3e3a23['getItems']())oo(_0x338ce6,_0xdacb50[_0x58a3('0xa')][_0x58a3('0x12')])&&_0x58fec8['markInlineFormat'](_0xdacb50[_0x58a3('0xa')]['createRangeOn'](_0x338ce6),{'commandName':_0x58a3('0xb'),'commandParams':[]});});}),_0x58fec8[_0x58a3('0xd')]['registerDescriptionCallback'](_0x328d9a=>{const {data:_0x391190}=_0x328d9a;if(_0x391190&&_0x58a3('0xb')==_0x391190[_0x58a3('0x4')])return{'type':_0x58a3('0x13'),'content':_0x7d83fe(_0xdacb50[_0x58a3('0x1')],_0x58a3('0x8'))};});}}function oo(_0x1765ed,_0x4185c3){for(const [_0x316e1b]of _0x1765ed[_0x58a3('0x0')]()){const _0x54ef0a=_0x4185c3[_0x58a3('0x7')](_0x316e1b);if(_0x54ef0a&&_0x54ef0a[_0x58a3('0x14')])return!0x0;}return!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a2a=['discardSelectedSuggestions','TrackChangesEditing','goToPreviousRestrictedEditingException','editor','enableCommand','acceptSelectedSuggestions','acceptSuggestion','discardSuggestion','trackChanges','afterInit','acceptAllSuggestions','plugins','has','get','RestrictedEditingModeEditing'];(function(_0x9535b7,_0x1a2a6a){const _0x5a8598=function(_0x36545b){while(--_0x36545b){_0x9535b7['push'](_0x9535b7['shift']());}};_0x5a8598(++_0x1a2a6a);}(_0x1a2a,0x8b));const _0x5a85=function(_0x9535b7,_0x1a2a6a){_0x9535b7=_0x9535b7-0x0;let _0x5a8598=_0x1a2a[_0x9535b7];return _0x5a8598;};import{Plugin as _0x1be0aa}from'ckeditor5/src/core';export default class st extends _0x1be0aa{[_0x5a85('0x5')](){const _0x1972be=this[_0x5a85('0xe')];if(!_0x1972be[_0x5a85('0x7')][_0x5a85('0x8')](_0x5a85('0xa')))return;const _0x2b3f8a=_0x1972be[_0x5a85('0x7')][_0x5a85('0x9')](_0x5a85('0xc'));_0x2b3f8a['enableCommand'](_0x5a85('0xd')),_0x2b3f8a[_0x5a85('0x0')]('goToNextRestrictedEditingException');const _0x4249e2=_0x1972be[_0x5a85('0x7')][_0x5a85('0x9')]('RestrictedEditingModeEditing');_0x4249e2[_0x5a85('0x0')](_0x5a85('0x4')),_0x4249e2[_0x5a85('0x0')](_0x5a85('0x2')),_0x4249e2[_0x5a85('0x0')](_0x5a85('0x3')),_0x4249e2['enableCommand'](_0x5a85('0x6')),_0x4249e2['enableCommand']('discardAllSuggestions'),_0x4249e2['enableCommand'](_0x5a85('0x1')),_0x4249e2[_0x5a85('0x0')](_0x5a85('0xb'));}}
23
+ const _0x3813=['enableCommand','RestrictedEditingModeEditing','goToNextRestrictedEditingException','trackChanges','goToPreviousRestrictedEditingException','editor','get','plugins','has','acceptSelectedSuggestions','acceptAllSuggestions','acceptSuggestion','discardSelectedSuggestions','discardSuggestion','afterInit'];(function(_0x525132,_0x3813ba){const _0x4a91bc=function(_0x41fa91){while(--_0x41fa91){_0x525132['push'](_0x525132['shift']());}};_0x4a91bc(++_0x3813ba);}(_0x3813,0x1be));const _0x4a91=function(_0x525132,_0x3813ba){_0x525132=_0x525132-0x0;let _0x4a91bc=_0x3813[_0x525132];return _0x4a91bc;};import{Plugin as _0x2a33d6}from'ckeditor5/src/core';export default class nt extends _0x2a33d6{[_0x4a91('0x3')](){const _0x573af3=this[_0x4a91('0x9')];if(!_0x573af3['plugins'][_0x4a91('0xc')](_0x4a91('0x5')))return;const _0x1b1618=_0x573af3[_0x4a91('0xb')][_0x4a91('0xa')]('TrackChangesEditing');_0x1b1618[_0x4a91('0x4')](_0x4a91('0x8')),_0x1b1618[_0x4a91('0x4')](_0x4a91('0x6'));const _0x3446a9=_0x573af3['plugins'][_0x4a91('0xa')](_0x4a91('0x5'));_0x3446a9[_0x4a91('0x4')](_0x4a91('0x7')),_0x3446a9[_0x4a91('0x4')](_0x4a91('0x0')),_0x3446a9[_0x4a91('0x4')](_0x4a91('0x2')),_0x3446a9['enableCommand'](_0x4a91('0xe')),_0x3446a9[_0x4a91('0x4')]('discardAllSuggestions'),_0x3446a9[_0x4a91('0x4')](_0x4a91('0xd')),_0x3446a9[_0x4a91('0x4')](_0x4a91('0x1'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x28e18f}from'ckeditor5/src/core';import{ShiftEnter as _0x19e18f}from'ckeditor5/src/enter';export default class nt extends _0x28e18f{static get['requires'](){return[_0x19e18f];}['init'](){const _0x3052c9=this['editor'],_0x578d3e=_0x3052c9['plugins']['get']('TrackChangesEditing'),t=_0x3052c9['t'];_0x578d3e['enableCommand']('shiftEnter'),_0x3052c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0x3052c9),{'priority':'high'}),_0x3052c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x3052c9),{'priority':'high'}),_0x3052c9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27f59a,_0x5ae3d7,_0x8b1bde)=>{_0x8b1bde['options']['showSuggestionHighlights']&&re(_0x3052c9,{'showActiveMarker':!0x1})(_0x27f59a,_0x5ae3d7,_0x8b1bde);}),_0x578d3e['_descriptionFactory']['registerElementLabel']('softBreak',_0x2d8c97=>t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d8c97));}}function re(_0x14888b,{showActiveMarker:_0x492412=!0x0}={}){return(_0x25aec5,_0x4196f9,_0x24d4d7)=>{const _0x563b28=_0x14888b['plugins']['get']('TrackChangesEditing');if(!_0x24d4d7['consumable']['test'](_0x4196f9['markerRange'],_0x25aec5['name']))return;const _0x51bbe3=_0x14888b['model'];for(const _0x2c073f of _0x4196f9['markerRange']['getItems']()){if(!_0x2c073f['is']('element','softBreak'))continue;const _0x1c8f4b='deletion'==_0x4196f9['markerName']['split'](':')[0x1]?'merge':'split',_0x3438a5=_0x24d4d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c8f4b}),_0x3e1567=_0x24d4d7['mapper']['toViewPosition'](_0x51bbe3['createPositionBefore'](_0x2c073f));_0x492412&&_0x563b28['activeMarkers']['includes'](_0x4196f9['markerName'])&&_0x24d4d7['writer']['addClass']('ck-suggestion-marker--active',_0x3438a5),_0x24d4d7['writer']['insert'](_0x3e1567,_0x3438a5),_0x24d4d7['mapper']['bindElementToMarker'](_0x3438a5,_0x4196f9['markerName']);}};}
23
+ const _0xe723=['editing','registerElementLabel','writer','high','model','editor','bindElementToMarker','insert','deletion','markerName','data','addClass','addMarker:suggestion','addMarker:suggestion:deletion','mapper','element','split','name','plugins','markerRange','createUIElement','showSuggestionHighlights','ck-suggestion-marker--active','toViewPosition','options','activeMarkers','requires','TrackChangesEditing','test','enableCommand','init','_descriptionFactory','get','consumable','shiftEnter','downcastDispatcher','softBreak','span'];(function(_0x2ce8d9,_0xe7236b){const _0x52efca=function(_0x41378d){while(--_0x41378d){_0x2ce8d9['push'](_0x2ce8d9['shift']());}};_0x52efca(++_0xe7236b);}(_0xe723,0x120));const _0x52ef=function(_0x2ce8d9,_0xe7236b){_0x2ce8d9=_0x2ce8d9-0x0;let _0x52efca=_0xe723[_0x2ce8d9];return _0x52efca;};import{Plugin as _0x39706a}from'ckeditor5/src/core';import{ShiftEnter as _0x43442e}from'ckeditor5/src/enter';import{getTranslation as _0x3fe4c9}from'../utils/common-translations';export default class ot extends _0x39706a{static get[_0x52ef('0x4')](){return[_0x43442e];}[_0x52ef('0x8')](){const _0xbbeec4=this[_0x52ef('0x15')],_0x593213=_0xbbeec4[_0x52ef('0x22')][_0x52ef('0xa')](_0x52ef('0x5'));_0x593213[_0x52ef('0x7')](_0x52ef('0xc')),_0xbbeec4[_0x52ef('0x10')][_0x52ef('0xd')]['on']('addMarker:suggestion:insertion',re(_0xbbeec4),{'priority':_0x52ef('0x13')}),_0xbbeec4[_0x52ef('0x10')][_0x52ef('0xd')]['on'](_0x52ef('0x1d'),re(_0xbbeec4),{'priority':_0x52ef('0x13')}),_0xbbeec4[_0x52ef('0x1a')]['downcastDispatcher']['on'](_0x52ef('0x1c'),(_0x32ac0e,_0x3d125a,_0x31f983)=>{_0x31f983[_0x52ef('0x2')][_0x52ef('0x25')]&&re(_0xbbeec4,{'showActiveMarker':!0x1})(_0x32ac0e,_0x3d125a,_0x31f983);}),_0x593213[_0x52ef('0x9')][_0x52ef('0x11')](_0x52ef('0xe'),_0x1f482c=>_0x3fe4c9(_0xbbeec4['locale'],'ELEMENT_LINE_BREAK',_0x1f482c));}}function re(_0x5772dd,{showActiveMarker:_0x62d355=!0x0}={}){return(_0x2e5fbe,_0x157b3a,_0x7534f3)=>{const _0x1ce18c=_0x5772dd['plugins'][_0x52ef('0xa')]('TrackChangesEditing');if(!_0x7534f3[_0x52ef('0xb')][_0x52ef('0x6')](_0x157b3a[_0x52ef('0x23')],_0x2e5fbe[_0x52ef('0x21')]))return;const _0x1058b2=_0x5772dd[_0x52ef('0x14')];for(const _0x1c165e of _0x157b3a[_0x52ef('0x23')]['getItems']()){if(!_0x1c165e['is'](_0x52ef('0x1f'),_0x52ef('0xe')))continue;const _0x21a047=_0x52ef('0x18')==_0x157b3a[_0x52ef('0x19')][_0x52ef('0x20')](':')[0x1]?'merge':_0x52ef('0x20'),_0x35988b=_0x7534f3[_0x52ef('0x12')][_0x52ef('0x24')](_0x52ef('0xf'),{'class':'ck-suggestion-marker-'+_0x21a047}),_0x24d1bb=_0x7534f3[_0x52ef('0x1e')][_0x52ef('0x1')](_0x1058b2['createPositionBefore'](_0x1c165e));_0x62d355&&_0x1ce18c[_0x52ef('0x3')]['includes'](_0x157b3a[_0x52ef('0x19')])&&_0x7534f3[_0x52ef('0x12')][_0x52ef('0x1b')](_0x52ef('0x0'),_0x35988b),_0x7534f3['writer'][_0x52ef('0x17')](_0x24d1bb,_0x35988b),_0x7534f3['mapper'][_0x52ef('0x16')](_0x35988b,_0x157b3a['markerName']);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5810b7}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class et extends _0x5810b7{['afterInit'](){const _0x2cffa5=this['editor'],_0x3bec2b=_0x2cffa5['model'];if(!_0x2cffa5['plugins']['has']('StandardEditingModeEditing'))return;const _0x124cda=_0x2cffa5['plugins']['get']('TrackChangesEditing'),_0x3756ef='restrictedEditingException',_0x11356c=_0x2cffa5['commands']['get'](_0x3756ef);_0x124cda['enableCommand'](_0x3756ef,(_0x2a0086,_0x11bf3b={})=>{const _0x24f06d=_0x3bec2b['document']['selection'];if(_0x24f06d['isCollapsed'])return void _0x2a0086(_0x11bf3b);const _0x1d52df=void 0x0!==_0x11bf3b['forceValue']?_0x11bf3b['forceValue']:!_0x11356c['value'];_0x3bec2b['change'](()=>{const _0x10ec9a=Array['from'](_0x24f06d['getRanges']());for(const _0x4c1395 of _0x10ec9a){const _0x29f2d7=_0x1d52df?[_0x4c1395]:Rt(_0x3756ef,_0x4c1395,_0x3bec2b);for(const _0x48e10a of _0x29f2d7)_0x124cda['markInlineFormat'](_0x48e10a,{'commandName':_0x3756ef,'commandParams':[{'forceValue':_0x1d52df}]});}});});const t=_0x2cffa5['t'];_0x124cda['_descriptionFactory']['registerDescriptionCallback'](_0x106e35=>{const {data:_0x527e78}=_0x106e35;if(_0x527e78&&_0x527e78['commandName']==_0x3756ef)return _0x527e78['commandParams'][0x0]['forceValue']?{'type':'format','content':t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'})}:{'type':'format','content':t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'})};});}}
23
+ const _0x21d8=['forceValue','_descriptionFactory','plugins','markInlineFormat','FORMAT_RESTRICTED_DISABLED','editor','getRanges','selection','format','StandardEditingModeEditing','get','locale','value','registerDescriptionCallback','restrictedEditingException','commands'];(function(_0x408c97,_0x21d8ae){const _0x1f534b=function(_0x4e8198){while(--_0x4e8198){_0x408c97['push'](_0x408c97['shift']());}};_0x1f534b(++_0x21d8ae);}(_0x21d8,0x173));const _0x1f53=function(_0x408c97,_0x21d8ae){_0x408c97=_0x408c97-0x0;let _0x1f534b=_0x21d8[_0x408c97];return _0x1f534b;};import{Plugin as _0x485193}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x554da0}from'./utils';import{getTranslation as _0x297143}from'../utils/common-translations';export default class et extends _0x485193{['afterInit'](){const _0x1a794f=this[_0x1f53('0x2')],_0x2eeec9=_0x1a794f['model'],_0x44a2c0=_0x1a794f[_0x1f53('0x8')];if(!_0x1a794f[_0x1f53('0xf')]['has'](_0x1f53('0x6')))return;const _0x1ecc28=_0x1a794f['plugins'][_0x1f53('0x7')]('TrackChangesEditing'),_0x59c8f5=_0x1f53('0xb'),_0x4554c4=_0x1a794f[_0x1f53('0xc')][_0x1f53('0x7')](_0x59c8f5);_0x1ecc28['enableCommand'](_0x59c8f5,(_0x50939f,_0xf5e0e={})=>{const _0x5521ae=_0x2eeec9['document'][_0x1f53('0x4')];if(_0x5521ae['isCollapsed'])return void _0x50939f(_0xf5e0e);const _0x3a4fbe=void 0x0!==_0xf5e0e['forceValue']?_0xf5e0e['forceValue']:!_0x4554c4[_0x1f53('0x9')];_0x2eeec9['change'](()=>{const _0x1f2a43=Array['from'](_0x5521ae[_0x1f53('0x3')]());for(const _0x5df499 of _0x1f2a43){const _0x39b29c=_0x3a4fbe?[_0x5df499]:_0x554da0(_0x59c8f5,_0x5df499,_0x2eeec9);for(const _0x3bede5 of _0x39b29c)_0x1ecc28[_0x1f53('0x0')](_0x3bede5,{'commandName':_0x59c8f5,'commandParams':[{'forceValue':_0x3a4fbe}]});}});}),_0x1ecc28[_0x1f53('0xe')][_0x1f53('0xa')](_0x5bde17=>{const {data:_0x488f02}=_0x5bde17;if(_0x488f02&&_0x488f02['commandName']==_0x59c8f5)return _0x488f02['commandParams'][0x0][_0x1f53('0xd')]?{'type':_0x1f53('0x5'),'content':_0x297143(_0x44a2c0,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x1f53('0x5'),'content':_0x297143(_0x44a2c0,_0x1f53('0x1'))};});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2684b7}from'ckeditor5/src/core';import{LiveRange as _0x174ec1}from'ckeditor5/src/engine';import{setHighlightHandling as $t}from'ckeditor5/src/widget';export default class ot extends _0x2684b7{constructor(_0x16ce4b){super(_0x16ce4b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'];}['afterInit'](){const _0x282822=this['editor'],_0xd17a20=_0x282822['model']['document']['selection'];if(!_0x282822['plugins']['has']('TableEditing'))return;const {t:t}=_0x282822['locale'],_0x1804fa=_0x282822['plugins']['get']('TrackChangesEditing'),_0x5eabde=_0x282822['plugins']['get']('TableUtils');_0x1804fa['_descriptionFactory']['registerElementLabel']('table',_0x217638=>t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x217638)),this['_setupColumnsRowsFixing'](),_0x1804fa['enableCommand']('insertTable'),_0x1804fa['enableCommand']('selectTableRow'),_0x1804fa['enableCommand']('selectTableColumn');for(const _0x273c74 of['insertTableRowAbove','insertTableRowBelow']){const _0x4fd8f3=_0x282822['commands']['get'](_0x273c74);_0x1804fa['enableCommand'](_0x273c74,_0x264d49=>{_0x282822['model']['change'](_0x321f33=>{_0x264d49();const _0x496ee5='above'===_0x4fd8f3['order'],_0x18afab=_0x5eabde['getSelectionAffectedTableCells'](_0xd17a20),_0x3af80d=_0x5eabde['getRowIndexes'](_0x18afab),_0x4576d0=_0x496ee5?_0x3af80d['first']-0x1:_0x3af80d['last']+0x1,_0x2acda0=_0x18afab[0x0]['findAncestor']('table'),_0x318c2e=_0x5eabde['createTableWalker'](_0x2acda0,{'startRow':_0x4576d0,'endRow':_0x4576d0}),_0x2ea205=Array['from'](_0x318c2e)['map'](_0xc5df9d=>_0x321f33['createRangeOn'](_0xc5df9d['cell']));_0x1804fa['markMultiRangeInsertion'](_0x2ea205,'tableRow');});});}for(const _0x3f2223 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1b9533=_0x282822['commands']['get'](_0x3f2223);_0x1804fa['enableCommand'](_0x3f2223,_0x256f13=>{_0x282822['model']['change'](_0x204c74=>{_0x256f13();const _0x18e968='left'===_0x1b9533['order'],_0x142619=_0x5eabde['getSelectionAffectedTableCells'](_0xd17a20),_0x3334ce=_0x5eabde['getColumnIndexes'](_0x142619),_0x1ba40c=_0x18e968?_0x3334ce['first']-0x1:_0x3334ce['last']+0x1,_0x374816=_0x142619[0x0]['findAncestor']('table'),_0x24d047=_0x5eabde['createTableWalker'](_0x374816,{'startRow':0x0,'column':_0x1ba40c,'includeAllSlots':!0x1}),_0x2074f7=Array['from'](_0x24d047)['map'](_0x1ac653=>_0x204c74['createRangeOn'](_0x1ac653['cell']));_0x1804fa['markMultiRangeInsertion'](_0x2074f7,'tableColumn');});});}for(const _0x14d4ee of['removeTableRow','removeTableColumn']){const _0x9a53e6=_0x14d4ee['substr'](0xb),_0x5340de=_0x9a53e6['toLowerCase'](),_0x5bd142=_0x5340de['substr'](0x0,0x3)+'span',_0x239144='table'+_0x9a53e6,_0x1f011c='min'+_0x9a53e6,_0x4cd827='max'+_0x9a53e6;_0x1804fa['enableCommand'](_0x14d4ee,()=>{_0x282822['model']['change'](_0x7590fa=>{const _0x2d3e6b=_0x5eabde['getSelectionAffectedTableCells'](_0xd17a20),_0x2879b5=_0x2d3e6b[0x0]['findAncestor']('table');let _0x3828c6;if('removeTableRow'==_0x14d4ee){const _0x5bcf30=_0x5eabde['getRowIndexes'](_0x2d3e6b);_0x3828c6={'startRow':_0x5bcf30['first'],'endRow':_0x5bcf30['last'],'includeAllSlots':!0x0};}else{const _0x2cbcae=_0x5eabde['getColumnIndexes'](_0x2d3e6b);_0x3828c6={'startColumn':_0x2cbcae['first'],'endColumn':_0x2cbcae['last'],'includeAllSlots':!0x0};}const _0x4ffa00=_0x5eabde['createTableWalker'](_0x2879b5,_0x3828c6),_0x57e889=Array['from'](_0x4ffa00)['map'](({cell:_0x38b238})=>_0x38b238),_0x4dbc5f=Wt(_0x57e889['filter'](_0xd9df76=>_0xd9df76['hasAttribute'](_0x5bd142))),_0x581160=Wt(_0x57e889['filter'](_0x49d84e=>!_0x49d84e['hasAttribute'](_0x5bd142)))['map'](_0x448930=>_0x7590fa['createRangeOn'](_0x448930)),_0x2052be=_0x1804fa['markMultiRangeDeletion'](_0x581160,_0x239144);if(_0x2052be&&('tableRow'==_0x2052be['subType']||'tableColumn'==_0x2052be['subType'])){const _0x1d6113=this['_getSuggestionCoords'](_0x2052be);for(const _0xa1b43d of _0x4dbc5f){const _0x310e97=_0x7590fa['createRangeOn'](_0xa1b43d),_0x31e99d=_0x5eabde['getCellLocation'](_0xa1b43d),_0x1179cb=_0xa1b43d['getAttribute'](_0x5bd142)-0x1,_0x243fb6=_0x1d6113[_0x1f011c],_0x4d0577=_0x1d6113[_0x4cd827];_0x243fb6<=_0x31e99d[_0x5340de]&&_0x31e99d[_0x5340de]+_0x1179cb<=_0x4d0577&&_0x2052be['addRange'](_0x310e97);}}});});}function _0x12d1b6(_0x3cf696){const _0x3d40f6=Array['from'](_0xd17a20['getRanges']())['map'](_0x310009=>_0x174ec1['fromRange'](_0x310009));_0x282822['model']['change'](_0x4dac26=>{const _0x709b8=_0x4dac26['batch'];_0x3cf696=_0x3cf696['filter'](_0x4b5899=>'$graveyard'!=_0x4b5899['root']['rootName']),_0x4dac26['setSelection'](_0x3cf696),_0x282822['commands']['get']('removeTableRow')['refresh'](),_0x282822['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x282822['model']['enqueueChange'](()=>{_0x282822['model']['enqueueChange'](_0x709b8,_0xa9212d=>{const _0x944b56=_0x3d40f6['filter'](_0x44b1f7=>'$graveyard'!=_0x44b1f7['root']['rootName']);_0x944b56['length']>0x0&&_0xa9212d['setSelection'](_0x944b56);for(const _0x3726a4 of _0x3d40f6)_0x3726a4['detach']();});});});}function _0x415f41(_0x46bbc8){_0x282822['model']['change'](_0xb8096c=>{const _0x47dde1=Array['from'](_0xd17a20['getRanges']())['map'](_0x160bd9=>_0x174ec1['fromRange'](_0x160bd9)),_0x224f28=[];for(const _0x723459 of _0x46bbc8)for(const _0x43302a of _0x723459['getItems']({'shallow':!0x0}))_0x224f28['push'](_0x43302a);for(const _0x4b4422 of _0x224f28)'$graveyard'!=_0x4b4422['root']['rootName']&&(_0xb8096c['setSelection'](_0xb8096c['createPositionAt'](_0x4b4422,0x0)),_0x282822['commands']['get']('removeTableColumn')['refresh'](),_0x282822['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c6871=_0x47dde1['filter'](_0x5c21e9=>'$graveyard'!=_0x5c21e9['root']['rootName']);_0x5c6871['length']>0x0&&_0xb8096c['setSelection'](_0x5c6871);for(const _0x2ed090 of _0x47dde1)_0x2ed090['detach']();});}function _0x9b7d57(_0x231b53,_0x46f4a8){return _0x46f4a8['every'](_0x5efb38=>_0x231b53['some'](_0x59468a=>_0x59468a['end']['isEqual'](_0x5efb38['start'])||_0x5efb38['end']['isEqual'](_0x59468a['start'])));}function _0x5a8c2e(_0xe4e72,_0x486097){return _0xe4e72['some'](_0x3d55da=>_0x486097['some'](_0xef789c=>_0x3d55da['end']['isTouching'](_0xef789c['start'])));}_0x282822['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d1774,_0x15753f,_0x255de2)=>{if(!_0x255de2['options']['showSuggestionHighlights'])return;const _0x629306=_0x15753f['item'];if(!_0x629306)return;const _0x155bc0=_0x255de2['mapper']['toViewElement'](_0x629306);function _0x1a7247(_0x34ac1c){return Array['isArray'](_0x34ac1c)?_0x34ac1c:[_0x34ac1c];}_0x155bc0&&'tableCell'===_0x629306['name']&&$t(_0x155bc0,_0x255de2['writer'],(_0x3efc26,_0x112ddd,_0x17b65a)=>_0x17b65a['addClass'](_0x1a7247(_0x112ddd['classes']),_0x3efc26),(_0x329d02,_0x3a6bca,_0x36fc01)=>_0x36fc01['removeClass'](_0x1a7247(_0x3a6bca['classes']),_0x329d02));},{'priority':'highest'}),_0x1804fa['_descriptionFactory']['registerDescriptionCallback'](_0xe2ca76=>{if('insertion'!=_0xe2ca76['type']&&'deletion'!=_0xe2ca76['type'])return;const _0x363683=_0xe2ca76['getContainedElement']();if(null!=_0x363683&&_0x363683['is']('element','table')){if('insertion'==_0xe2ca76['type']){const _0x2f047d=_0xe2ca76['getItems']()['filter'](_0x272e26=>_0x272e26['is']('textProxy'))['map'](_0x4474ec=>_0x4474ec['data']);if(_0x2f047d['length'])return{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},'\x22'+_0x2f047d['join']('\x20')+'\x22'))};}if('deletion'==_0xe2ca76['type']){const _0x292584=_0xe2ca76['getItems']()['filter'](_0x5f7763=>_0x5f7763['is']('textProxy'))['map'](_0x229652=>_0x229652['data']);if(_0x292584['length'])return{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},'\x22'+_0x292584['join']('\x20')+'\x22'))};}}}),_0x1804fa['_descriptionFactory']['registerDescriptionCallback'](_0x1e8f8a=>{if('tableRow'==_0x1e8f8a['subType']){const _0x1b5409=_0x1e8f8a['getItems']()['filter'](_0x180c4c=>_0x180c4c['is']('textProxy'))['map'](_0x9271f=>_0x9271f['data']),_0x5a6251=this['_getSuggestionCoords'](_0x1e8f8a),_0x263d4d=_0x5a6251['maxRow']-_0x5a6251['minRow']+0x1;if('insertion'==_0x1e8f8a['type'])return _0x1b5409['length']?{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},[_0x263d4d,'\x22'+_0x1b5409['join']('\x20')+'\x22']))}:{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x263d4d))};if('deletion'==_0x1e8f8a['type'])return _0x1b5409['length']?{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},[_0x263d4d,'\x22'+_0x1b5409['join']('\x20')+'\x22']))}:{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x263d4d))};}if('tableColumn'==_0x1e8f8a['subType']){const _0xd8543d=_0x1e8f8a['getItems']()['filter'](_0x3e8068=>_0x3e8068['is']('textProxy'))['map'](_0x186aa3=>_0x186aa3['data']),_0x195b5e=this['_getSuggestionCoords'](_0x1e8f8a),_0x58344a=_0x195b5e['maxColumn']-_0x195b5e['minColumn']+0x1;if('insertion'==_0x1e8f8a['type'])return _0xd8543d['length']?{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},[_0x58344a,'\x22'+_0xd8543d['join']('\x20')+'\x22']))}:{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x58344a))};if('deletion'==_0x1e8f8a['type'])return _0xd8543d['length']?{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},[_0x58344a,'\x22'+_0xd8543d['join']('\x20')+'\x22']))}:{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x58344a))};}}),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x12d1b6),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x12d1b6),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x415f41),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x415f41),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x9b7d57),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x9b7d57),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a8c2e),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a8c2e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4dde7a=this['editor'],_0x48db5e=_0x4dde7a['model']['document']['selection'];return(_0x363b09,_0x25b295)=>{_0x4dde7a['model']['change'](_0x573ed7=>{const {commandName:_0x251e4d,commandParams:_0x17dd60}=_0x25b295;let _0x2c1a11=_0x363b09[0x0]['end']['nodeBefore'];_0x17dd60&&_0x17dd60[0x0]&&!0x1===_0x17dd60[0x0]['forceValue']&&(_0x2c1a11=_0x363b09[0x0]['start']['nodeAfter']);const _0x3a83c5=_0x573ed7['createRangeIn'](_0x2c1a11);if('$graveyard'==_0x3a83c5['root']['rootName'])return;const _0x2a233d=Array['from'](_0x48db5e['getRanges']())['map'](_0x4f76df=>_0x174ec1['fromRange'](_0x4f76df));_0x573ed7['setSelection'](_0x3a83c5),_0x4dde7a['commands']['get'](_0x251e4d)['refresh'](),_0x17dd60['push']({'forceDefaultExecution':!0x0}),_0x4dde7a['execute'](_0x251e4d,..._0x17dd60);const _0x4568e9=_0x2a233d['filter'](_0x49ff6b=>'$graveyard'!=_0x49ff6b['root']['rootName']);_0x4568e9['length']>0x0&&_0x573ed7['setSelection'](_0x4568e9);for(const _0xd5d2b6 of _0x2a233d)_0xd5d2b6['detach']();});};}['_getCoordsForCells'](_0x330038){const _0x1afe5f=this['editor']['plugins']['get']('TableUtils');let _0x48810f=Number['MAX_SAFE_INTEGER'],_0x54d0f3=Number['MIN_SAFE_INTEGER'],_0x30b5ac=Number['MAX_SAFE_INTEGER'],_0x1f308d=Number['MIN_SAFE_INTEGER'];for(const _0x2179bd of _0x330038){if('$graveyard'==_0x2179bd['root']['rootName'])continue;const {row:_0x84808,column:_0x5356dc}=_0x1afe5f['getCellLocation'](_0x2179bd),_0x3807d8=_0x2179bd['hasAttribute']('rowspan')?_0x2179bd['getAttribute']('rowspan')-0x1:0x0,_0x110a04=_0x2179bd['hasAttribute']('colspan')?_0x2179bd['getAttribute']('colspan')-0x1:0x0;_0x48810f=_0x84808<_0x48810f?_0x84808:_0x48810f,_0x54d0f3=_0x84808+_0x3807d8>_0x54d0f3?_0x84808+_0x3807d8:_0x54d0f3,_0x30b5ac=_0x5356dc<_0x30b5ac?_0x5356dc:_0x30b5ac,_0x1f308d=_0x5356dc+_0x110a04>_0x1f308d?_0x5356dc+_0x110a04:_0x1f308d;}return{'minRow':_0x48810f,'maxRow':_0x54d0f3,'minColumn':_0x30b5ac,'maxColumn':_0x1f308d};}['_setupColumnsRowsFixing'](){const _0xf73a75=this['editor'],_0x502c28=_0xf73a75['plugins']['get']('TrackChangesEditing'),_0x63af48=_0xf73a75['plugins']['get']('TableUtils');this['_tableSuggestions']=new Set(),_0xf73a75['model']['document']['on']('change:data',()=>{const _0x53c07b=Array['from'](_0xf73a75['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44188e,data:_0x18a445}of _0x53c07b){const {group:_0x67cb28,id:_0x462807,subType:_0x53519a}=_0x502c28['_splitMarkerName'](_0x44188e);if('suggestion'!=_0x67cb28)continue;if(null!=_0x18a445['oldRange'])continue;const _0x1a8bc2=_0x502c28['getSuggestion'](_0x462807);this['_tablePostFixingSubtypes']['includes'](_0x53519a)&&this['_tableSuggestions']['add'](_0x1a8bc2);}},{'priority':'low'});const _0x1784f0=(_0x4b5056,_0x805f44)=>{let _0x4544fe=!0x1;const _0x318bd5=_0x805f44['createRangeOn'](_0x4b5056),_0x44c04a=_0x4b5056['findAncestor']('table'),_0x44a66f=_0x63af48['getCellLocation'](_0x4b5056);for(const _0x3d0551 of this['_tableSuggestions']){const _0x121662=_0x3d0551['subType'],_0x2ed3ef=_0x121662['startsWith']('tablePaste'),_0x3a5494=_0x121662['substr'](_0x2ed3ef?0xa:0x5),_0x4c8edf=_0x3a5494['toLowerCase'](),_0x4243a2=_0x4c8edf['substr'](0x0,0x3)+'span',_0x2c0298='min'+_0x3a5494,_0x295355='max'+_0x3a5494;if(!_0x3d0551['isInContent'])continue;if(_0x44c04a!=_0x3d0551['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3d0551['isIntersectingWithRange'](_0x318bd5))continue;const _0x2a847b=_0x4b5056['hasAttribute'](_0x4243a2)?_0x4b5056['getAttribute'](_0x4243a2)-0x1:0x0,_0x4c60bd=this['_getSuggestionCoords'](_0x3d0551),_0x1a1a7b=_0x4c60bd[_0x2c0298],_0x212deb=_0x4c60bd[_0x295355];_0x1a1a7b<=_0x44a66f[_0x4c8edf]&&_0x44a66f[_0x4c8edf]+_0x2a847b<=_0x212deb&&(_0x3d0551['addRange'](_0x318bd5),_0x4544fe=!0x0);}return _0x4544fe;};_0xf73a75['model']['document']['registerPostFixer'](_0x54e986=>{let _0x1443d=!0x1;for(const _0x448f4a of _0xf73a75['model']['document']['differ']['getChanges']())if('insert'==_0x448f4a['type']){if('tableRow'==_0x448f4a['name'])for(const _0x2caf7a of _0x448f4a['position']['nodeAfter']['getChildren']())_0x1443d=_0x1443d||_0x1784f0(_0x2caf7a,_0x54e986);else'tableCell'==_0x448f4a['name']&&(_0x1443d=_0x1443d||_0x1784f0(_0x448f4a['position']['nodeAfter'],_0x54e986));}return _0x1443d;});}['_getSuggestionCoords'](_0x3bca3b){return this['_getCoordsForCells'](_0x3bca3b['getRanges']()['map'](_0xf2ab0=>_0xf2ab0['start']['nodeAfter']));}}function Wt(_0x1e6aaa){return Array['from'](new Set(_0x1e6aaa)['values']());}
23
+ const _0x4c80=['selectTableRow','minColumn','refresh','isArray','markMultiRangeDeletion','model','order','above','filter','maxColumn','insertTableRowAbove','getSuggestion','hasAttribute','commands','colspan','showSuggestionHighlights','fromRange','getContainedElement','getItems','getFirstRange','maxRow','locale','tableCell','differ','insertTable','markMultiRangeInsertion','_setupColumnsRowsFixing','_suggestionFactory','plugins','end','last','insert','length','findAncestor','toLowerCase','isIntersectingWithRange','_getSuggestionCoords','getChildren','options','minRow','MIN_SAFE_INTEGER','_getCoordsForCells','TableEditing','root','ELEMENT_TABLE_COLUMN','selection','rowspan','mapper','getAttribute','_tablePostFixingSubtypes','ELEMENT_TABLE_COLUMN_WITH_TEXT','afterInit','editor','MAX_SAFE_INTEGER','name','*Remove:*\x20%0','TableUtils','getSelectionAffectedTableCells','addMarker:suggestion','getChangedMarkers','removeClass','ELEMENT_TABLE_ROW_WITH_TEXT','document','deletion','_acceptFormatSuggestionCallbackFactory','add','registerCustomCallback','enqueueChange','low','registerDescriptionCallback','ELEMENT_TABLE','batch','getRanges','tableRow','nodeAfter','createTableWalker','execute','setSelection','table','accept','tableColumn','insertTableColumnLeft','detach','includes','addRange','type','change:data','span','map','removeTableRow','selectTableColumn','push','from','createPositionAt','TrackChangesEditing','ELEMENT_TABLE_WITH_TEXT','$graveyard','toViewElement','*Insert:*\x20%0','startsWith','getChanges','isTouching','subType','textProxy','getCellLocation','registerElementLabel','nodeBefore','isInContent','left','max','getRowIndexes','createRangeOn','position','get','insertTableRowBelow','insertTableColumnRight','some','_descriptionFactory','data','isEqual','rootName','first','classes','change','substr','_tableSuggestions','getColumnIndexes','cell','_splitMarkerName','join','enableCommand','start','tablePaste','ELEMENT_TABLE_ROW','insertion','removeTableColumn','has','downcastDispatcher','min','values','discard'];(function(_0x4a3755,_0x4c808f){const _0x267228=function(_0x2388ff){while(--_0x2388ff){_0x4a3755['push'](_0x4a3755['shift']());}};_0x267228(++_0x4c808f);}(_0x4c80,0x19c));const _0x2672=function(_0x4a3755,_0x4c808f){_0x4a3755=_0x4a3755-0x0;let _0x267228=_0x4c80[_0x4a3755];return _0x267228;};import{Plugin as _0x197a3e}from'ckeditor5/src/core';import{LiveRange as _0x34ea48}from'ckeditor5/src/engine';import{setHighlightHandling as _0xb5d32}from'ckeditor5/src/widget';import{getTranslation as _0x2fe519}from'../utils/common-translations';export default class rt extends _0x197a3e{constructor(_0x4766c0){super(_0x4766c0),this[_0x2672('0x3c')]=[_0x2672('0x54'),_0x2672('0x5b')];}[_0x2672('0x3e')](){const _0x30903b=this[_0x2672('0x3f')],_0x4284d5=_0x30903b[_0x2672('0x10')]['document']['selection'];if(!_0x30903b['plugins'][_0x2672('0x6')](_0x2672('0x35')))return;const _0x4485bc=_0x30903b[_0x2672('0x20')],_0x25c6ea=_0x30903b[_0x2672('0x27')][_0x2672('0x7c')](_0x2672('0x69')),_0x3fb6c4=_0x30903b[_0x2672('0x27')]['get'](_0x2672('0x43'));_0x25c6ea['_descriptionFactory'][_0x2672('0x74')](_0x2672('0x59'),_0x1a3e8c=>_0x2fe519(_0x4485bc,_0x2672('0x51'),_0x1a3e8c)),this[_0x2672('0x25')](),_0x25c6ea['enableCommand'](_0x2672('0x23')),_0x25c6ea[_0x2672('0x0')](_0x2672('0xb')),_0x25c6ea[_0x2672('0x0')](_0x2672('0x65'));for(const _0xb8f7a9 of[_0x2672('0x15'),_0x2672('0x7d')]){const _0x3f503d=_0x30903b[_0x2672('0x18')]['get'](_0xb8f7a9);_0x25c6ea[_0x2672('0x0')](_0xb8f7a9,_0x485aa0=>{_0x30903b[_0x2672('0x10')]['change'](_0x1aad4a=>{_0x485aa0();const _0x510895=_0x2672('0x12')===_0x3f503d[_0x2672('0x11')],_0x24ae01=_0x3fb6c4['getSelectionAffectedTableCells'](_0x4284d5),_0x1367a1=_0x3fb6c4[_0x2672('0x79')](_0x24ae01),_0x47deb7=_0x510895?_0x1367a1[_0x2672('0x84')]-0x1:_0x1367a1[_0x2672('0x29')]+0x1,_0x3f3388=_0x24ae01[0x0][_0x2672('0x2c')](_0x2672('0x59')),_0x60b9df=_0x3fb6c4[_0x2672('0x56')](_0x3f3388,{'startRow':_0x47deb7,'endRow':_0x47deb7}),_0x34855e=Array[_0x2672('0x67')](_0x60b9df)[_0x2672('0x63')](_0x572f63=>_0x1aad4a[_0x2672('0x7a')](_0x572f63[_0x2672('0x8a')]));_0x25c6ea[_0x2672('0x24')](_0x34855e,'tableRow');});});}for(const _0x3fba6d of[_0x2672('0x5c'),_0x2672('0x7e')]){const _0x6e5a6b=_0x30903b[_0x2672('0x18')][_0x2672('0x7c')](_0x3fba6d);_0x25c6ea['enableCommand'](_0x3fba6d,_0x12ffe6=>{_0x30903b[_0x2672('0x10')][_0x2672('0x86')](_0x1ff43b=>{_0x12ffe6();const _0x2bdb78=_0x2672('0x77')===_0x6e5a6b[_0x2672('0x11')],_0x546919=_0x3fb6c4[_0x2672('0x44')](_0x4284d5),_0xdf5883=_0x3fb6c4[_0x2672('0x89')](_0x546919),_0x40a9fc=_0x2bdb78?_0xdf5883[_0x2672('0x84')]-0x1:_0xdf5883[_0x2672('0x29')]+0x1,_0x432372=_0x546919[0x0]['findAncestor'](_0x2672('0x59')),_0x2f692e=_0x3fb6c4['createTableWalker'](_0x432372,{'startRow':0x0,'column':_0x40a9fc,'includeAllSlots':!0x1}),_0x807aba=Array['from'](_0x2f692e)[_0x2672('0x63')](_0x5db172=>_0x1ff43b[_0x2672('0x7a')](_0x5db172['cell']));_0x25c6ea[_0x2672('0x24')](_0x807aba,_0x2672('0x5b'));});});}for(const _0x26f110 of[_0x2672('0x64'),'removeTableColumn']){const _0x52b9a0=_0x26f110[_0x2672('0x87')](0xb),_0x4dc56f=_0x52b9a0[_0x2672('0x2d')](),_0x3545ea=_0x4dc56f[_0x2672('0x87')](0x0,0x3)+_0x2672('0x62'),_0x3f8784=_0x2672('0x59')+_0x52b9a0,_0x2854ac=_0x2672('0x8')+_0x52b9a0,_0x1583d1=_0x2672('0x78')+_0x52b9a0;_0x25c6ea['enableCommand'](_0x26f110,()=>{_0x30903b['model']['change'](_0x4f9b72=>{const _0x21c3c3=_0x3fb6c4[_0x2672('0x44')](_0x4284d5),_0x456f28=_0x21c3c3[0x0][_0x2672('0x2c')](_0x2672('0x59'));let _0x1390d3;if(_0x2672('0x64')==_0x26f110){const _0x2caa7d=_0x3fb6c4[_0x2672('0x79')](_0x21c3c3);_0x1390d3={'startRow':_0x2caa7d[_0x2672('0x84')],'endRow':_0x2caa7d[_0x2672('0x29')],'includeAllSlots':!0x0};}else{const _0x61c4f5=_0x3fb6c4['getColumnIndexes'](_0x21c3c3);_0x1390d3={'startColumn':_0x61c4f5[_0x2672('0x84')],'endColumn':_0x61c4f5['last'],'includeAllSlots':!0x0};}const _0x1506b1=_0x3fb6c4[_0x2672('0x56')](_0x456f28,_0x1390d3),_0x355a14=Array[_0x2672('0x67')](_0x1506b1)[_0x2672('0x63')](({cell:_0x1b674d})=>_0x1b674d),_0x136300=Wt(_0x355a14[_0x2672('0x13')](_0x14d959=>_0x14d959[_0x2672('0x17')](_0x3545ea))),_0x2d402d=Wt(_0x355a14['filter'](_0xb22d7a=>!_0xb22d7a[_0x2672('0x17')](_0x3545ea)))[_0x2672('0x63')](_0x2806de=>_0x4f9b72[_0x2672('0x7a')](_0x2806de)),_0x405bad=_0x25c6ea[_0x2672('0xf')](_0x2d402d,_0x3f8784);if(_0x405bad&&(_0x2672('0x54')==_0x405bad['subType']||_0x2672('0x5b')==_0x405bad['subType'])){const _0x5525db=this['_getSuggestionCoords'](_0x405bad);for(const _0x3c0698 of _0x136300){const _0x54867c=_0x4f9b72['createRangeOn'](_0x3c0698),_0x40dd4f=_0x3fb6c4['getCellLocation'](_0x3c0698),_0x21fa3c=_0x3c0698[_0x2672('0x3b')](_0x3545ea)-0x1,_0x40c4f1=_0x5525db[_0x2854ac],_0x15d2a5=_0x5525db[_0x1583d1];_0x40c4f1<=_0x40dd4f[_0x4dc56f]&&_0x40dd4f[_0x4dc56f]+_0x21fa3c<=_0x15d2a5&&_0x405bad[_0x2672('0x5f')](_0x54867c);}}});});}function _0x33a4b6(_0x3b585e){const _0x2851b4=Array[_0x2672('0x67')](_0x4284d5[_0x2672('0x53')]())[_0x2672('0x63')](_0x19ae32=>_0x34ea48[_0x2672('0x1b')](_0x19ae32));_0x30903b['model'][_0x2672('0x86')](_0x470878=>{const _0x1c0f23=_0x470878[_0x2672('0x52')];_0x3b585e=_0x3b585e['filter'](_0xc061ff=>_0x2672('0x6b')!=_0xc061ff[_0x2672('0x36')]['rootName']),_0x470878[_0x2672('0x58')](_0x3b585e),_0x30903b[_0x2672('0x18')]['get'](_0x2672('0x64'))[_0x2672('0xd')](),_0x30903b['execute'](_0x2672('0x64'),{'forceDefaultExecution':!0x0}),_0x30903b[_0x2672('0x10')][_0x2672('0x4e')](()=>{_0x30903b[_0x2672('0x10')][_0x2672('0x4e')](_0x1c0f23,_0x401906=>{const _0x15afdf=_0x2851b4[_0x2672('0x13')](_0x13b06c=>'$graveyard'!=_0x13b06c[_0x2672('0x36')]['rootName']);_0x15afdf[_0x2672('0x2b')]>0x0&&_0x401906[_0x2672('0x58')](_0x15afdf);for(const _0x591197 of _0x2851b4)_0x591197[_0x2672('0x5d')]();});});});}function _0x52feaf(_0x208f2e){_0x30903b[_0x2672('0x10')][_0x2672('0x86')](_0x130cf8=>{const _0x23b3fd=Array[_0x2672('0x67')](_0x4284d5['getRanges']())['map'](_0x558206=>_0x34ea48[_0x2672('0x1b')](_0x558206)),_0x4b451e=[];for(const _0x5c8aee of _0x208f2e)for(const _0x5d0409 of _0x5c8aee[_0x2672('0x1d')]({'shallow':!0x0}))_0x4b451e[_0x2672('0x66')](_0x5d0409);for(const _0x32f4db of _0x4b451e)_0x2672('0x6b')!=_0x32f4db[_0x2672('0x36')][_0x2672('0x83')]&&(_0x130cf8[_0x2672('0x58')](_0x130cf8[_0x2672('0x68')](_0x32f4db,0x0)),_0x30903b[_0x2672('0x18')][_0x2672('0x7c')](_0x2672('0x5'))['refresh'](),_0x30903b[_0x2672('0x57')](_0x2672('0x5'),{'forceDefaultExecution':!0x0}));const _0x526724=_0x23b3fd[_0x2672('0x13')](_0x1f52fd=>_0x2672('0x6b')!=_0x1f52fd[_0x2672('0x36')][_0x2672('0x83')]);_0x526724['length']>0x0&&_0x130cf8[_0x2672('0x58')](_0x526724);for(const _0xa17fd of _0x23b3fd)_0xa17fd[_0x2672('0x5d')]();});}function _0x24b58e(_0x3211fb,_0x529c2c){return _0x529c2c['every'](_0x46c80c=>_0x3211fb[_0x2672('0x7f')](_0x3c1994=>_0x3c1994['end'][_0x2672('0x82')](_0x46c80c['start'])||_0x46c80c[_0x2672('0x28')][_0x2672('0x82')](_0x3c1994[_0x2672('0x1')])));}function _0x33075f(_0x1c5de5,_0x957603){return _0x1c5de5['some'](_0x1d312b=>_0x957603[_0x2672('0x7f')](_0xa0470b=>_0x1d312b['end'][_0x2672('0x70')](_0xa0470b[_0x2672('0x1')])));}_0x30903b['data'][_0x2672('0x7')]['on'](_0x2672('0x45'),(_0x30e20d,_0x33d775,_0x3da660)=>{if(!_0x3da660[_0x2672('0x31')][_0x2672('0x1a')])return;const _0x4191b8=_0x33d775['item'];if(!_0x4191b8)return;const _0x9eb599=_0x3da660[_0x2672('0x3a')][_0x2672('0x6c')](_0x4191b8);function _0x475e38(_0x5db421){return Array[_0x2672('0xe')](_0x5db421)?_0x5db421:[_0x5db421];}_0x9eb599&&'tableCell'===_0x4191b8[_0x2672('0x41')]&&_0xb5d32(_0x9eb599,_0x3da660['writer'],(_0x492ede,_0x1e3bef,_0x18acfa)=>_0x18acfa['addClass'](_0x475e38(_0x1e3bef[_0x2672('0x85')]),_0x492ede),(_0x3e50ee,_0x5bc533,_0x5db01a)=>_0x5db01a[_0x2672('0x47')](_0x475e38(_0x5bc533[_0x2672('0x85')]),_0x3e50ee));},{'priority':'highest'}),_0x25c6ea['_descriptionFactory'][_0x2672('0x50')](_0x375e01=>{if(_0x2672('0x4')!=_0x375e01[_0x2672('0x60')]&&'deletion'!=_0x375e01[_0x2672('0x60')])return;const _0x3c9826=_0x375e01[_0x2672('0x1c')]();if(null!=_0x3c9826&&_0x3c9826['is']('element',_0x2672('0x59'))){if('insertion'==_0x375e01[_0x2672('0x60')]){const _0x3891ac=_0x375e01[_0x2672('0x1d')]()['filter'](_0x3c9ace=>_0x3c9ace['is']('textProxy'))[_0x2672('0x63')](_0x2e7223=>_0x2e7223[_0x2672('0x81')]);if(_0x3891ac[_0x2672('0x2b')])return{'type':_0x2672('0x4'),'content':_0x2fe519(_0x4485bc,_0x2672('0x6d'),_0x2fe519(_0x4485bc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3891ac['join']('\x20')+'\x22'))};}if(_0x2672('0x4a')==_0x375e01['type']){const _0x492d93=_0x375e01[_0x2672('0x1d')]()[_0x2672('0x13')](_0x3ce01b=>_0x3ce01b['is'](_0x2672('0x72')))[_0x2672('0x63')](_0x4f4f01=>_0x4f4f01[_0x2672('0x81')]);if(_0x492d93['length'])return{'type':_0x2672('0x4a'),'content':_0x2fe519(_0x4485bc,_0x2672('0x42'),_0x2fe519(_0x4485bc,_0x2672('0x6a'),'\x22'+_0x492d93[_0x2672('0x8c')]('\x20')+'\x22'))};}}}),_0x25c6ea[_0x2672('0x80')]['registerDescriptionCallback'](_0x22f5ea=>{if(_0x2672('0x54')==_0x22f5ea[_0x2672('0x71')]){const _0x576ac5=_0x22f5ea[_0x2672('0x1d')]()[_0x2672('0x13')](_0x5e0e69=>_0x5e0e69['is'](_0x2672('0x72')))[_0x2672('0x63')](_0x2a448e=>_0x2a448e[_0x2672('0x81')]),_0xebbe4f=this[_0x2672('0x2f')](_0x22f5ea),_0x49790e=_0xebbe4f[_0x2672('0x1f')]-_0xebbe4f[_0x2672('0x32')]+0x1;if(_0x2672('0x4')==_0x22f5ea[_0x2672('0x60')])return _0x576ac5[_0x2672('0x2b')]?{'type':_0x2672('0x4'),'content':_0x2fe519(_0x4485bc,_0x2672('0x6d'),_0x2fe519(_0x4485bc,_0x2672('0x48'),[_0x49790e,'\x22'+_0x576ac5['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x2fe519(_0x4485bc,_0x2672('0x6d'),_0x2fe519(_0x4485bc,_0x2672('0x3'),_0x49790e))};if(_0x2672('0x4a')==_0x22f5ea['type'])return _0x576ac5[_0x2672('0x2b')]?{'type':_0x2672('0x4a'),'content':_0x2fe519(_0x4485bc,_0x2672('0x42'),_0x2fe519(_0x4485bc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49790e,'\x22'+_0x576ac5['join']('\x20')+'\x22']))}:{'type':_0x2672('0x4a'),'content':_0x2fe519(_0x4485bc,_0x2672('0x42'),_0x2fe519(_0x4485bc,_0x2672('0x3'),_0x49790e))};}if(_0x2672('0x5b')==_0x22f5ea[_0x2672('0x71')]){const _0xc1304c=_0x22f5ea[_0x2672('0x1d')]()[_0x2672('0x13')](_0x3be9e8=>_0x3be9e8['is']('textProxy'))['map'](_0x362755=>_0x362755[_0x2672('0x81')]),_0x54dda1=this[_0x2672('0x2f')](_0x22f5ea),_0x454fcf=_0x54dda1[_0x2672('0x14')]-_0x54dda1[_0x2672('0xc')]+0x1;if(_0x2672('0x4')==_0x22f5ea[_0x2672('0x60')])return _0xc1304c[_0x2672('0x2b')]?{'type':_0x2672('0x4'),'content':_0x2fe519(_0x4485bc,_0x2672('0x6d'),_0x2fe519(_0x4485bc,_0x2672('0x3d'),[_0x454fcf,'\x22'+_0xc1304c[_0x2672('0x8c')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x2fe519(_0x4485bc,_0x2672('0x6d'),_0x2fe519(_0x4485bc,_0x2672('0x37'),_0x454fcf))};if('deletion'==_0x22f5ea[_0x2672('0x60')])return _0xc1304c['length']?{'type':_0x2672('0x4a'),'content':_0x2fe519(_0x4485bc,'*Remove:*\x20%0',_0x2fe519(_0x4485bc,_0x2672('0x3d'),[_0x454fcf,'\x22'+_0xc1304c['join']('\x20')+'\x22']))}:{'type':_0x2672('0x4a'),'content':_0x2fe519(_0x4485bc,_0x2672('0x42'),_0x2fe519(_0x4485bc,_0x2672('0x37'),_0x454fcf))};}}),_0x25c6ea[_0x2672('0x26')]['registerCustomCallback'](_0x2672('0x4'),_0x2672('0x54'),_0x2672('0xa'),_0x33a4b6),_0x25c6ea[_0x2672('0x26')]['registerCustomCallback'](_0x2672('0x4a'),_0x2672('0x54'),_0x2672('0x5a'),_0x33a4b6),_0x25c6ea[_0x2672('0x26')][_0x2672('0x4d')](_0x2672('0x4'),_0x2672('0x5b'),_0x2672('0xa'),_0x52feaf),_0x25c6ea['_suggestionFactory'][_0x2672('0x4d')](_0x2672('0x4a'),'tableColumn',_0x2672('0x5a'),_0x52feaf),_0x25c6ea[_0x2672('0x26')][_0x2672('0x4d')](_0x2672('0x4'),'tableColumn','join',_0x24b58e),_0x25c6ea[_0x2672('0x26')][_0x2672('0x4d')]('deletion',_0x2672('0x5b'),'join',_0x24b58e),_0x25c6ea[_0x2672('0x26')][_0x2672('0x4d')](_0x2672('0x4'),_0x2672('0x54'),_0x2672('0x8c'),_0x33075f),_0x25c6ea['_suggestionFactory'][_0x2672('0x4d')](_0x2672('0x4a'),_0x2672('0x54'),_0x2672('0x8c'),_0x33075f);}[_0x2672('0x4b')](){const _0x349d10=this[_0x2672('0x3f')],_0x1ba22e=_0x349d10[_0x2672('0x10')][_0x2672('0x49')][_0x2672('0x38')];return(_0x4ea1dd,_0x4755f4)=>{_0x349d10[_0x2672('0x10')]['change'](_0x2ab6ca=>{const {commandName:_0x4f5b10,commandParams:_0x12f129}=_0x4755f4;let _0x31e090=_0x4ea1dd[0x0][_0x2672('0x28')][_0x2672('0x75')];_0x12f129&&_0x12f129[0x0]&&!0x1===_0x12f129[0x0]['forceValue']&&(_0x31e090=_0x4ea1dd[0x0][_0x2672('0x1')][_0x2672('0x55')]);const _0x2f7156=_0x2ab6ca['createRangeIn'](_0x31e090);if('$graveyard'==_0x2f7156[_0x2672('0x36')][_0x2672('0x83')])return;const _0x2e90ee=Array[_0x2672('0x67')](_0x1ba22e[_0x2672('0x53')]())[_0x2672('0x63')](_0x2576f4=>_0x34ea48[_0x2672('0x1b')](_0x2576f4));_0x2ab6ca[_0x2672('0x58')](_0x2f7156),_0x349d10['commands'][_0x2672('0x7c')](_0x4f5b10)[_0x2672('0xd')](),_0x12f129[_0x2672('0x66')]({'forceDefaultExecution':!0x0}),_0x349d10[_0x2672('0x57')](_0x4f5b10,..._0x12f129);const _0x99d4ac=_0x2e90ee[_0x2672('0x13')](_0x963953=>'$graveyard'!=_0x963953['root'][_0x2672('0x83')]);_0x99d4ac[_0x2672('0x2b')]>0x0&&_0x2ab6ca[_0x2672('0x58')](_0x99d4ac);for(const _0x124f12 of _0x2e90ee)_0x124f12[_0x2672('0x5d')]();});};}['_getCoordsForCells'](_0x55b126){const _0x590a76=this[_0x2672('0x3f')][_0x2672('0x27')][_0x2672('0x7c')](_0x2672('0x43'));let _0x1eef73=Number[_0x2672('0x40')],_0xc134e5=Number[_0x2672('0x33')],_0x303320=Number[_0x2672('0x40')],_0x22c846=Number['MIN_SAFE_INTEGER'];for(const _0x3c3ab2 of _0x55b126){if(_0x2672('0x6b')==_0x3c3ab2[_0x2672('0x36')][_0x2672('0x83')])continue;const {row:_0x25c208,column:_0x2054af}=_0x590a76[_0x2672('0x73')](_0x3c3ab2),_0x258555=_0x3c3ab2[_0x2672('0x17')](_0x2672('0x39'))?_0x3c3ab2[_0x2672('0x3b')](_0x2672('0x39'))-0x1:0x0,_0x6cb21b=_0x3c3ab2[_0x2672('0x17')]('colspan')?_0x3c3ab2[_0x2672('0x3b')](_0x2672('0x19'))-0x1:0x0;_0x1eef73=_0x25c208<_0x1eef73?_0x25c208:_0x1eef73,_0xc134e5=_0x25c208+_0x258555>_0xc134e5?_0x25c208+_0x258555:_0xc134e5,_0x303320=_0x2054af<_0x303320?_0x2054af:_0x303320,_0x22c846=_0x2054af+_0x6cb21b>_0x22c846?_0x2054af+_0x6cb21b:_0x22c846;}return{'minRow':_0x1eef73,'maxRow':_0xc134e5,'minColumn':_0x303320,'maxColumn':_0x22c846};}[_0x2672('0x25')](){const _0x2d4c4a=this[_0x2672('0x3f')],_0x4d1dac=_0x2d4c4a[_0x2672('0x27')]['get'](_0x2672('0x69')),_0x1559df=_0x2d4c4a[_0x2672('0x27')][_0x2672('0x7c')](_0x2672('0x43'));this[_0x2672('0x88')]=new Set(),_0x2d4c4a['model']['document']['on'](_0x2672('0x61'),()=>{const _0x48d7cd=Array[_0x2672('0x67')](_0x2d4c4a['model'][_0x2672('0x49')][_0x2672('0x22')][_0x2672('0x46')]());for(const {name:_0x494466,data:_0x4e420b}of _0x48d7cd){const {group:_0x435d8f,id:_0x19b8a0,subType:_0x5edad9}=_0x4d1dac[_0x2672('0x8b')](_0x494466);if('suggestion'!=_0x435d8f)continue;if(null!=_0x4e420b['oldRange'])continue;const _0x26c730=_0x4d1dac[_0x2672('0x16')](_0x19b8a0);this[_0x2672('0x3c')][_0x2672('0x5e')](_0x5edad9)&&this[_0x2672('0x88')][_0x2672('0x4c')](_0x26c730);}},{'priority':_0x2672('0x4f')});const _0x5411d1=(_0x51ada5,_0x23d4e8)=>{let _0x500be4=!0x1;const _0x2672c9=_0x23d4e8[_0x2672('0x7a')](_0x51ada5),_0x3336aa=_0x51ada5[_0x2672('0x2c')]('table'),_0x4032c8=_0x1559df[_0x2672('0x73')](_0x51ada5);for(const _0x226995 of this[_0x2672('0x88')]){const _0x34b550=_0x226995[_0x2672('0x71')],_0x570e09=_0x34b550[_0x2672('0x6e')](_0x2672('0x2')),_0x5e85f9=_0x34b550['substr'](_0x570e09?0xa:0x5),_0x5b14c8=_0x5e85f9[_0x2672('0x2d')](),_0x124542=_0x5b14c8['substr'](0x0,0x3)+'span',_0x533ef5=_0x2672('0x8')+_0x5e85f9,_0x58b578=_0x2672('0x78')+_0x5e85f9;if(!_0x226995[_0x2672('0x76')])continue;if(_0x3336aa!=_0x226995[_0x2672('0x1e')]()[_0x2672('0x1')]['findAncestor'](_0x2672('0x59')))continue;if(_0x226995[_0x2672('0x2e')](_0x2672c9))continue;const _0x5ba697=_0x51ada5[_0x2672('0x17')](_0x124542)?_0x51ada5['getAttribute'](_0x124542)-0x1:0x0,_0x38dadc=this['_getSuggestionCoords'](_0x226995),_0x11dfef=_0x38dadc[_0x533ef5],_0x36f63b=_0x38dadc[_0x58b578];_0x11dfef<=_0x4032c8[_0x5b14c8]&&_0x4032c8[_0x5b14c8]+_0x5ba697<=_0x36f63b&&(_0x226995[_0x2672('0x5f')](_0x2672c9),_0x500be4=!0x0);}return _0x500be4;};_0x2d4c4a[_0x2672('0x10')][_0x2672('0x49')]['registerPostFixer'](_0x5efafe=>{let _0x2e01d6=!0x1;for(const _0x546720 of _0x2d4c4a['model'][_0x2672('0x49')][_0x2672('0x22')][_0x2672('0x6f')]())if(_0x2672('0x2a')==_0x546720[_0x2672('0x60')]){if(_0x2672('0x54')==_0x546720[_0x2672('0x41')])for(const _0x204530 of _0x546720[_0x2672('0x7b')][_0x2672('0x55')][_0x2672('0x30')]())_0x2e01d6=_0x2e01d6||_0x5411d1(_0x204530,_0x5efafe);else _0x2672('0x21')==_0x546720[_0x2672('0x41')]&&(_0x2e01d6=_0x2e01d6||_0x5411d1(_0x546720[_0x2672('0x7b')][_0x2672('0x55')],_0x5efafe));}return _0x2e01d6;});}[_0x2672('0x2f')](_0x354aab){return this[_0x2672('0x34')](_0x354aab[_0x2672('0x53')]()[_0x2672('0x63')](_0x2e43b0=>_0x2e43b0['start']['nodeAfter']));}}function Wt(_0x2d2e3b){return Array[_0x2672('0x67')](new Set(_0x2d2e3b)[_0x2672('0x9')]());}