@ckeditor/ckeditor5-track-changes 43.1.0-alpha.0 → 43.1.0-alpha.2

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 (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x422b73,PendingActions as _0x1bff41,icons as _0x34fdcd}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x51a471,ObservableMixin as _0x1c830c,uid as _0xc0c664,insertToPriorityArray as _0x114a4a,priorities as _0x4bafaa,logWarning as _0x201b14,getEnvKeystrokeText as _0x3af46a,FocusTracker as _0x25e1eb,KeystrokeHandler as _0xf0a35f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1c1bac,View as _0x50c6be,ViewCollection as _0x35984b,FocusCycler as _0x623354,ViewModel as _0x183b77,createDropdown as Qt,SplitButtonView as _0xff57ea,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x212a3d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x48deeb,hashObject as _0x51fed8,surroundingMarkersDetector as _0xbbc705,FOCUS_ANNOTATION_KEYSTROKE as _0x3f46ab,AriaDescriptionView as _0x10b128,setupThreadKeyboardNavigation as _0x527ab6,trimHtml as _0x44d93d,UserView as _0x37a1b6,LateFocusButtonView as _0x18a44e,getDateTimeFormatter as _0x50c710,getAllMarkersDomElementsSorted as _0x58ea24,sanitizeEditorConfig as _0x2e82d7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x497096,LiveRange as _0x5118bb,LivePosition as _0x3dbba9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3a332e,toWidget as _0x9ddde6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4a1dbb,set as _0x446d42,isEqual as _0x4a2988,unset as _0x31f38c,omit as Tt}from'lodash-es';import{Delete as _0x261ebc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x8299a9,ShiftEnter as _0x4fe684}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x466523,_0x4dbba1){super(_0x466523),this['_enabledCommands']=_0x4dbba1,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x5e8712 of this['editor']['commands']['commands']())_0x5e8712['affectsData']&&!this['_enabledCommands']['has'](_0x5e8712)&&_0x5e8712['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1f6dd6 of this['editor']['commands']['commands']())_0x1f6dd6['affectsData']&&!this['_enabledCommands']['has'](_0x1f6dd6)&&_0x1f6dd6['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x19f973,_0x5983ed){super(_0x19f973),this['_suggestions']=_0x5983ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b0327){const _0x47b182=this['_suggestions']['get'](_0x5b0327);if(!_0x47b182)throw new _0x51a471('track-changes-accept-suggestion-not-found',this);const _0x295749=_0x47b182['getRanges']();this['editor']['model']['canEditAt'](_0x295749)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x47b182);}}class R extends ts{['_suggestions'];constructor(_0x17f5dc,_0x2918ce){super(_0x17f5dc),this['_suggestions']=_0x2918ce,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17934b){const _0x54805a=this['_suggestions']['get'](_0x17934b);if(!_0x54805a)throw new _0x51a471('track-changes-discard-suggestion-not-found',this);const _0x246f22=_0x54805a['getRanges']();this['editor']['model']['canEditAt'](_0x246f22)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x54805a);}}function ls(_0x5887bb,_0x53d620){let _0x3e73f9='';return _0x3e73f9+=_0x5887bb['split']('*')['map']((_0x5720f6,_0x53bc02)=>_0x53bc02%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5720f6)+'</span>':nn(_0x5720f6))['join'](''),_0x53d620&&(_0x3e73f9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x53d620['value']+'\x22\x20title=\x22'+_0x53d620['title']+'\x22></span>'),_0x3e73f9;}function nn(_0x2afd7e){const _0x234393=document['createElement']('span');return _0x234393['innerText']=_0x2afd7e,_0x234393['innerHTML'];}function ss(_0x4d174a){return _0x4d174a['sort']((_0x121191,_0x34d7ee)=>'deletion'==_0x121191['type']&&'deletion'!=_0x34d7ee['type']?-0x1:'deletion'!=_0x121191['type']&&'deletion'==_0x34d7ee['type']?0x1:0x0);}function to(_0x3d5bd3,_0xcdb59c){let _0xa9596b,_0x5e224b=0x0;const _0x5ce41b=[],_0x32a6a5=_0xcdb59c['schema'];for(;_0x5e224b<_0x3d5bd3['length'];){const _0x55f99b=_0x3d5bd3[_0x5e224b],_0x2acb8d=_0x3d5bd3[_0x5e224b+0x1];_0xa9596b||(_0xa9596b=_0xcdb59c['createPositionBefore'](_0x55f99b)),on(_0xcdb59c,_0x55f99b,_0x2acb8d)||(_0x5ce41b['push'](_0xcdb59c['createRange'](_0xa9596b,_0x32a6a5['isObject'](_0x55f99b)?_0xcdb59c['createPositionAfter'](_0x55f99b):_0xcdb59c['createPositionAt'](_0x55f99b,'end'))),_0xa9596b=null),_0x5e224b++;}return _0x5ce41b;}function on(_0x209d82,_0x3a68f9,_0x5da499){if(!_0x5da499)return!0x1;const _0x3ed8ab=_0x209d82['createPositionAfter'](_0x3a68f9),_0x35a104=_0x209d82['createPositionBefore'](_0x5da499);return _0x3ed8ab['isTouching'](_0x35a104);}function rs(_0x27815c,_0x5a7e22,_0x74a10c){for(;_0x74a10c['length'];){const _0x569ac4=_0x74a10c['splice'](0x0,0x64);_0x27815c['change'](()=>{for(const _0x1461e3 of _0x569ac4)_0x1461e3['isInContent']&&_0x5a7e22['execute'](_0x1461e3['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x28aafa,_0x1ba967,_0x34b172){super(_0x28aafa),this['_command']=_0x1ba967,this['_suggestions']=_0x34b172,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4569e2=Array['from'](this['_suggestions']['values']())['some'](_0x24f10b=>_0x24f10b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4569e2;}['execute'](){const _0x2efe79=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4b02d7 of _0x2efe79){const _0x2b5c32=_0x4b02d7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b5c32))return;}rs(this['editor']['model'],this['_command'],_0x2efe79);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd1ac0b,_0x536d0b,_0x4548a3){super(_0xd1ac0b),this['_command']=_0x536d0b,this['_suggestions']=_0x4548a3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x227a37=this['editor']['model']['document']['selection'],_0x329a6d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x490a34,_0x173edd){const _0xd03b18=Array['from'](_0x490a34['getRanges']()),_0x3cf1eb=new Set();for(const _0x30f776 of _0x173edd)if(_0x30f776['isInContent']){for(const _0x333f07 of _0xd03b18)for(const _0xe28a64 of _0x30f776['getRanges']())(_0x333f07['isIntersecting'](_0xe28a64)||_0x490a34['isCollapsed']&&!_0x30f776['isMultiRange']&&_0x30f776['next']&&_0xe28a64['end']['isTouching'](_0x333f07['start']))&&_0x3cf1eb['add'](_0x30f776);}return _0x3cf1eb;}(_0x227a37,_0x329a6d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x33a9f8=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4c10e6 of _0x33a9f8){const _0x5b3556=_0x4c10e6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5b3556))return;}rs(this['editor']['model'],this['_command'],_0x33a9f8);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1c830c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x54f8c6,_0x34378){super(),this['id']=_0x34378['id'],this['type']=_0x34378['type'],this['subType']=_0x34378['subType']||null,this['author']=_0x34378['author'],this['creator']=_0x34378['creator']||_0x34378['author'],this['isExternal']=Boolean(_0x34378['attributes']&&_0x34378['attributes']['@external']),this['data']=null,this['_model']=_0x54f8c6,this['_onAccept']=_0x34378['onAccept'],this['_onDiscard']=_0x34378['onDiscard'],this['_onAttributesChange']=_0x34378['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x34378['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x24aa1d=this;for(;_0x24aa1d['previous'];)_0x24aa1d=_0x24aa1d['previous'];return _0x24aa1d;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3e0c4d){this['_markerNames']['add'](_0x3e0c4d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x45e224=>this['_model']['markers']['get'](_0x45e224))['filter'](_0x788b71=>_0x788b71);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5b471c=>{for(const _0x48e6c1 of this['getMarkers']())_0x5b471c['removeMarker'](_0x48e6c1);}),this['_markerNames']['clear']();}['removeMarker'](_0x45f87b){this['_model']['change'](_0x5556c8=>{_0x5556c8['removeMarker'](_0x45f87b);}),this['_markerNames']['delete'](_0x45f87b);}['addRange'](_0x18e828){const _0x3161e0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3161e0),this['_model']['change'](_0x2bbbda=>{_0x2bbbda['addMarker'](_0x3161e0,{'range':_0x18e828,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3cb2c5){for(const _0x100223 of this['getRanges']())if(_0x100223['isIntersecting'](_0x3cb2c5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x493579=>_0x493579['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x331291,_0x4a8d03)=>[..._0x331291,..._0x4a8d03['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2acd93=this['getRanges']();if(0x1!=_0x2acd93['length'])return null;const _0x3aa84e=_0x2acd93[0x0],_0x12b1fb=_0x3aa84e['start']['nodeAfter'],_0x3dfbb2=_0x3aa84e['end']['nodeBefore'];return _0x12b1fb instanceof _0x497096?_0x12b1fb!=_0x3dfbb2?null:_0x12b1fb:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x228298=[];let _0x15bd45=this['head'];for(;_0x15bd45;)_0x228298['push'](_0x15bd45),_0x15bd45=_0x15bd45['next'];return _0x228298;}['setAttribute'](_0x242de7,_0x3a9755){const _0x58fed9=_0x4a1dbb(this['attributes']);_0x446d42(_0x58fed9,_0x242de7,_0x3a9755),_0x4a2988(_0x58fed9,this['attributes'])||(this['attributes']=_0x58fed9,this['_onAttributesChange'](_0x58fed9));}['removeAttribute'](_0x5cfea8){const _0x3c7037=_0x4a1dbb(this['attributes']);_0x31f38c(_0x3c7037,_0x5cfea8),_0x4a2988(_0x3c7037,this['attributes'])||(this['attributes']=_0x3c7037,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0xc0c664()['substr'](0x1,0x5);}}function o(_0x113249,_0xf681bd,_0x3ae77c){const t=_0x113249['t'];switch(_0xf681bd){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3ae77c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ae77c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ae77c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ae77c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ae77c);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x3ae77c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ae77c);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ae77c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ae77c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ae77c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ae77c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ae77c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ae77c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ae77c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ae77c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ae77c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ae77c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ae77c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ae77c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ae77c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ae77c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ae77c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ae77c);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x3ae77c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ae77c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ae77c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ae77c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ae77c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ae77c);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x3ae77c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ae77c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ae77c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ae77c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ae77c);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3ae77c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ae77c);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x3ae77c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3ae77c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ae77c);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x3ae77c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ae77c);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x3ae77c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ae77c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ae77c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x3ae77c);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ae77c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ae77c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ae77c);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x3ae77c);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x3ae77c);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x3ae77c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf681bd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x30f37b,_0x1e5f3a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x30f37b,this['_locale']=_0x1e5f3a;}['getDescriptions'](_0x1aa9c7){const _0x1719d6=[],_0x5d7595=new Set(),_0x45e456=new Set();for(let _0x5c47f6=0x0;_0x5c47f6<_0x1aa9c7['length'];_0x5c47f6++){const _0x128038=_0x1aa9c7[_0x5c47f6];if(!_0x128038['isInContent'])continue;const _0x239dc4=this['_handleCustomCallbackDescription'](_0x128038);if(_0x239dc4){if(null!=_0x128038['subType']){if(_0x5d7595['has'](_0x128038['subType']))continue;_0x5d7595['add'](_0x128038['subType']);}_0x1719d6['push'](_0x239dc4);}else{if('attribute'!=_0x128038['type'])'insertion'!=_0x128038['type']&&'deletion'!=_0x128038['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1719d6,_0x128038,_0x1aa9c7[_0x5c47f6+0x1]);else{const _0x55836b=_0x128038['data']['key'];if(_0x45e456['has'](_0x55836b))continue;_0x45e456['add'](_0x128038['data']['key']),_0x55836b==m?this['_handleRenameSuggestionDescription'](_0x1719d6,_0x128038):this['_handleAttributeSuggestionDescription'](_0x1719d6,_0x128038);}}}return this['_resolveDescriptionItems'](_0x1719d6);}['registerDescriptionCallback'](_0x1fe368){this['_customCallbacks']['push'](_0x1fe368);}['registerElementLabel'](_0x2afe1f,_0x2d30bb,_0xa24dbf=_0x4bafaa['normal']){'function'==typeof _0x2afe1f?_0x114a4a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2afe1f,'label':_0x2d30bb,'priority':_0xa24dbf}):this['_itemLabels']['set'](_0x2afe1f,_0x2d30bb);}['registerAttributeLabel'](_0x117baf,_0x5f1bb8){this['_attributeLabels']['set'](_0x117baf,_0x5f1bb8);}['getItemLabel'](_0x905d1d,_0x28bf9c=0x1){let _0x44331c;for(const _0x588562 of this['_itemLabelsCallbacks'])if(_0x588562['matchingCallback'](_0x905d1d)){_0x44331c=_0x588562['label'];break;}return _0x44331c||(_0x44331c=this['_itemLabels']['get'](_0x905d1d['name'])),_0x44331c?_0x44331c(_0x28bf9c):0x1!==_0x28bf9c?_0x28bf9c+'\x20'+_0x905d1d['name']+'s':''+_0x905d1d['name'];}['_addDescriptionItems'](_0x41e028,_0x4b0a9e){const _0x3fb8b9=_0x4b0a9e['getFirstRange']()['getWalker'](),_0x285fd9='insertion'==_0x4b0a9e['type']?'add':'remove';for(const _0x5f51d1 of _0x3fb8b9){const _0x593471=_0x5f51d1['item'],_0x231e68=_0x41e028[_0x41e028['length']-0x1];if(_0x593471['is']('$textProxy'))_0x231e68&&_0x231e68['type']['indexOf']('Container')>-0x1&&_0x41e028['pop'](),_0x231e68&&'text'==_0x231e68['type']?_0x231e68[_0x285fd9]+=_0x593471['data']:_0x41e028['push']({'type':'text','add':'add'==_0x285fd9?_0x593471['data']:'','remove':'remove'==_0x285fd9?_0x593471['data']:''});else{if(this['_schema']['isObject'](_0x593471)){const _0xf2d5bf=_0x593471;if(_0x231e68&&_0x231e68['type']['indexOf']('Container')>-0x1&&_0x41e028['pop'](),'elementEnd'==_0x5f51d1['type'])continue;_0x231e68&&_0x231e68['type']==_0x285fd9+'Object'&&_0x231e68['element']['name']==_0xf2d5bf['name']?_0x231e68['quantity']++:_0x41e028['push']({'type':_0x285fd9+'Object','element':_0xf2d5bf,'quantity':0x1}),_0x3fb8b9['skip'](_0x2796e6=>!('elementEnd'==_0x2796e6['type']&&_0x2796e6['item']==_0x593471));}else{if(this['_schema']['checkChild'](_0x593471,'$text')||_0x593471['is']('element','softBreak')){const _0x5d905f=_0x593471;if('add'==_0x285fd9&&'elementStart'==_0x5f51d1['type']||'remove'==_0x285fd9&&'elementEnd'==_0x5f51d1['type'])continue;if(_0x231e68&&-0x1==_0x231e68['type']['indexOf']('Container')){'text'==_0x231e68['type']&&(_0x231e68[_0x285fd9]+='\x0a');continue;}let _0x58a6c1;if(_0x58a6c1='add'==_0x285fd9?_0x5d905f['nextSibling']&&!this['_schema']['isObject'](_0x5d905f['nextSibling'])?_0x5d905f['nextSibling']:null:_0x5d905f['previousSibling']&&!this['_schema']['isObject'](_0x5d905f['previousSibling'])?_0x5d905f['previousSibling']:null,_0x5d905f['isEmpty']||_0x58a6c1&&_0x58a6c1['isEmpty']){const _0x27629e=_0x58a6c1&&_0x58a6c1['isEmpty']?_0x58a6c1:_0x5d905f;_0x231e68&&_0x231e68['type']==_0x285fd9+'EmptyContainer'&&_0x231e68['element']['name']==_0x27629e['name']?_0x231e68['quantity']++:_0x41e028['push']({'type':_0x285fd9+'EmptyContainer','element':_0x27629e,'quantity':0x1});}else _0x41e028['push']({'type':_0x285fd9+'Container','element':_0x5d905f});}}}}}['_resolveDescriptionItems'](_0x3488b7){const _0x5f098d=this['_locale'],_0x4091d2=[],_0x54b7ce=[],_0x5c8126=[];for(const _0x5509e8 of _0x3488b7)switch(_0x5509e8['type']){case'text':if(_0x5509e8['add']=_0x5509e8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5509e8['remove']=_0x5509e8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5509e8['add']&&''!=_0x5509e8['remove']){_0x4091d2['push']({'type':'replace','content':o(_0x5f098d,'REPLACE_TEXT',['\x22'+_0x5509e8['remove']+'\x22','\x22'+_0x5509e8['add']+'\x22'])});continue;}if(null!=_0x5509e8['add']['match'](/^ +$/)){_0x4091d2['push']({'type':'insertion','content':o(_0x5f098d,'*Insert:*\x20%0',o(_0x5f098d,'ELEMENT_SPACE',_0x5509e8['add']['length']))});continue;}if(null!=_0x5509e8['remove']['match'](/^ +$/)){_0x4091d2['push']({'type':'deletion','content':o(_0x5f098d,'*Remove:*\x20%0',o(_0x5f098d,'ELEMENT_SPACE',_0x5509e8['remove']['length']))});continue;}if(''!=_0x5509e8['add']){_0x4091d2['push']({'type':'insertion','content':o(_0x5f098d,'*Insert:*\x20%0','\x22'+_0x5509e8['add']+'\x22')});continue;}_0x4091d2['push']({'type':'deletion','content':o(_0x5f098d,'*Remove:*\x20%0','\x22'+_0x5509e8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4091d2['push']({'type':'insertion','content':o(_0x5f098d,'*Insert:*\x20%0',this['getItemLabel'](_0x5509e8['element'],_0x5509e8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4091d2['push']({'type':'deletion','content':o(_0x5f098d,'*Remove:*\x20%0',this['getItemLabel'](_0x5509e8['element'],_0x5509e8['quantity']))});continue;case'addContainer':_0x4091d2['push']({'type':'insertion','content':o(_0x5f098d,'*Split:*\x20%0',this['getItemLabel'](_0x5509e8['element'],_0x5509e8['quantity']))});continue;case'removeContainer':_0x4091d2['push']({'type':'deletion','content':o(_0x5f098d,'*Merge:*\x20%0',this['getItemLabel'](_0x5509e8['element'],_0x5509e8['quantity']))});continue;case'addFormat':_0x54b7ce['push'](_0x5509e8['key']);continue;case'removeFormat':_0x5c8126['push'](_0x5509e8['key']);continue;default:_0x4091d2['push'](_0x5509e8);}if(_0x54b7ce['length']){const _0x5a62c3=_0x54b7ce['map'](_0x5c565c=>this['_attributeLabels']['has'](_0x5c565c)?this['_attributeLabels']['get'](_0x5c565c):_0x5c565c)['join'](',\x20');_0x4091d2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5a62c3)});}if(_0x5c8126['length']){const _0x44ae42=_0x5c8126['map'](_0x342d82=>this['_attributeLabels']['has'](_0x342d82)?this['_attributeLabels']['get'](_0x342d82):_0x342d82)['join'](',\x20');_0x4091d2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x44ae42)});}return _0x4091d2;}['_handleCustomCallbackDescription'](_0x494013){for(const _0x6fb692 of this['_customCallbacks']){const _0x4e754f=_0x6fb692(_0x494013);if(_0x4e754f&&'type'in _0x4e754f)return _0x4e754f;}}['_handleAttributeSuggestionDescription'](_0x7d87f5,_0x3a2023){const _0x38a502=_0x3a2023['data'],_0x5850bf=void 0x0===_0x38a502['newValue']?'removeFormat':'addFormat';_0x7d87f5['push']({'type':_0x5850bf,'key':_0x38a502['key']});}['_handleRenameSuggestionDescription'](_0x3274f2,_0x455fc7){_0x3274f2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x455fc7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x466071,_0x353d36,_0x2be536){if(this['_addDescriptionItems'](_0x466071,_0x353d36),_0x2be536&&_0x2be536['getFirstRange']()&&!_0x353d36['getFirstRange']()['end']['isEqual'](_0x2be536['getFirstRange']()['start'])){const _0x39a8a0=_0x466071[_0x466071['length']-0x1],_0x280b5b='insertion'==_0x353d36['type']?'add':'remove';_0x39a8a0&&'text'==_0x39a8a0['type']&&(_0x39a8a0[_0x280b5b]+='\x0a');}}}class V extends _0x422b73{['afterInit'](){const _0x33ac87=this['editor'],_0x250a69=_0x33ac87['plugins']['get']('TrackChangesEditing');_0x33ac87['commands']['get']('showAIAssistant')&&_0x250a69['enableCommand']('showAIAssistant');}}class U extends _0x422b73{['afterInit'](){const _0x15cb3b=this['editor'],_0x51cf65=_0x15cb3b['locale'];if(!_0x15cb3b['plugins']['has']('AlignmentEditing'))return;const _0x21f346=_0x15cb3b['plugins']['get']('TrackChangesEditing');_0x21f346['enableDefaultAttributesIntegration']('alignment'),_0x21f346['registerBlockAttribute']('alignment'),_0x21f346['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x51cf65,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0eb3=this['editor'],_0x1cb30d=_0x1e0eb3['locale'];_0x1e0eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16ef1e=>{if('formatBlock'!=_0x16ef1e['type'])return;const {data:_0x5d16cd}=_0x16ef1e;if(_0x5d16cd&&'alignment'==_0x5d16cd['commandName']){const _0x2f1216=_0x5d16cd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1cb30d,'*Format:*\x20%0',function(_0x6691d4){switch(_0x6691d4){case'left':return o(_0x1cb30d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1cb30d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1cb30d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1cb30d,'FORMAT_JUSTIFY_TEXT');}}(_0x2f1216))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x422b73{['afterInit'](){const _0x5c3e46=this['editor'],_0xd611bc=_0x5c3e46['plugins']['get']('TrackChangesEditing'),_0x46bf5c=_0x5c3e46['locale'];for(const _0x520a6b of ti){if(!_0x5c3e46['plugins']['has'](_0x520a6b))continue;const _0x2d5436=_0x520a6b['slice'](0x0,-0x7)['toLowerCase'](),_0x41036b='FORMAT_'+_0x2d5436['toUpperCase']();_0xd611bc['enableDefaultAttributesIntegration'](_0x2d5436),_0xd611bc['registerInlineAttribute'](_0x2d5436),_0xd611bc['descriptionFactory']['registerAttributeLabel'](_0x2d5436,o(_0x46bf5c,_0x41036b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ce853=this['editor'],_0x5de75f=_0x1ce853['locale'],_0x24a9d7=_0x1ce853['plugins']['get']('TrackChangesEditing');function _0x3ca16a(_0x170740,_0x833d63){_0x24a9d7['descriptionFactory']['registerDescriptionCallback'](_0x2cfc92=>{if('formatInline'!=_0x2cfc92['type'])return;const {data:_0x41bccc}=_0x2cfc92;return _0x41bccc&&_0x41bccc['commandName']===_0x170740?_0x41bccc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5de75f,'*Format:*\x20%0',_0x833d63)}:{'type':'format','content':o(_0x5de75f,'*Remove\x20format:*\x20%0',_0x833d63)}:void 0x0;});}_0x3ca16a('bold',o(_0x5de75f,'FORMAT_BOLD')),_0x3ca16a('italic',o(_0x5de75f,'FORMAT_ITALIC')),_0x3ca16a('underline',o(_0x5de75f,'FORMAT_UNDERLINE')),_0x3ca16a('code',o(_0x5de75f,'FORMAT_CODE')),_0x3ca16a('strikethrough',o(_0x5de75f,'FORMAT_STRIKETHROUGH')),_0x3ca16a('subscript',o(_0x5de75f,'FORMAT_SUBSCRIPT')),_0x3ca16a('superscript',o(_0x5de75f,'FORMAT_SUPERSCRIPT'));}}class F extends _0x422b73{['afterInit'](){const _0x4e1a25=this['editor'],_0x352823=_0x4e1a25['locale'];if(!_0x4e1a25['plugins']['has']('BlockQuoteEditing'))return;const _0x393fac=_0x4e1a25['plugins']['get']('TrackChangesEditing'),_0x1214c3=this['editor']['commands']['get']('blockQuote');_0x393fac['enableCommand']('blockQuote',(_0x4d3eac,_0x1aac8b={})=>{const _0x18e526=this['editor']['model']['document']['selection'],_0xe51f00=_0x1aac8b&&void 0x0!==_0x1aac8b['forceValue']?_0x1aac8b['forceValue']:!_0x1214c3['value'];let _0x8a8cec=[];if(_0xe51f00){const _0x57216e=Array['from'](_0x18e526['getSelectedBlocks']())['filter'](_0x375e90=>oo(_0x375e90)||function(_0x5e4817,_0x5c94b7){const _0x2d116e=_0x5c94b7['checkChild'](_0x5e4817['parent'],'blockQuote'),_0xeb76aa=_0x5c94b7['checkChild'](['$root','blockQuote'],_0x5e4817);return _0x2d116e&&_0xeb76aa;}(_0x375e90,this['editor']['model']['schema']));_0x8a8cec=to(_0x57216e,_0x4e1a25['model']);}else{const _0x5436f1=Array['from'](_0x18e526['getSelectedBlocks']())['filter'](_0x1ada8d=>oo(_0x1ada8d));_0x8a8cec=to(_0x5436f1,_0x4e1a25['model']);}_0x4e1a25['model']['change'](()=>{for(const _0x3f6876 of _0x8a8cec)_0x393fac['markBlockFormat'](_0x3f6876,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe51f00}]});});}),_0x393fac['descriptionFactory']['registerDescriptionCallback'](_0x404736=>{const {data:_0x35e5a1}=_0x404736;if(_0x35e5a1&&'blockQuote'==_0x35e5a1['commandName']){const _0x54d241=o(_0x352823,'ELEMENT_BLOCK_QUOTE');return _0x35e5a1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x352823,'*Set\x20format:*\x20%0',_0x54d241)}:{'type':'format','content':o(_0x352823,'*Remove\x20format:*\x20%0',_0x54d241)};}});}}function oo(_0x273942){return'blockQuote'==_0x273942['parent']['name'];}class L extends _0x422b73{['afterInit'](){const _0xcbf6b2=this['editor'];_0xcbf6b2['plugins']['has']('CaseChange')&&(_0xcbf6b2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xcbf6b2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xcbf6b2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x422b73{['afterInit'](){const _0xaca1f3=this['editor'];_0xaca1f3['commands']['get']('ckbox')&&_0xaca1f3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x422b73{['afterInit'](){const _0xc635c5=this['editor'];if(!_0xc635c5['plugins']['has']('CodeBlock'))return;const _0x1fa314=_0xc635c5['plugins']['get']('TrackChangesEditing'),_0x189f34=_0xc635c5['locale'],_0x41e6a1=_0xc635c5['config']['get']('codeBlock')['languages'],_0x10fbab=_0xc635c5['commands']['get']('codeBlock');_0x1fa314['enableCommand']('indentCodeBlock'),_0x1fa314['enableCommand']('outdentCodeBlock'),_0x1fa314['enableCommand']('codeBlock',(_0x4de92d,_0x346ae7={})=>{const _0x592b18=_0xc635c5['model'],_0xd3625e=_0xc635c5['model']['document']['selection'],_0xa16cb7=_0x346ae7&&void 0x0!==_0x346ae7['forceValue']?_0x346ae7['forceValue']:!_0x10fbab['value'];let _0x9d6a99;_0x346ae7['language']||(_0x346ae7['language']=_0x41e6a1[0x0]['language']),_0x9d6a99=_0xa16cb7?Array['from'](_0xd3625e['getSelectedBlocks']())['filter'](_0x322d0b=>eo(_0x322d0b)||function(_0xaf84f3,_0xaa55c8){if(_0xaf84f3['is']('rootElement')||_0xaa55c8['isLimit'](_0xaf84f3))return!0x1;return _0xaa55c8['checkChild'](_0xaf84f3['parent'],'codeBlock');}(_0x322d0b,_0x592b18['schema'])):Array['from'](_0xd3625e['getSelectedBlocks']())['filter'](_0x382899=>eo(_0x382899));const _0x204718=to(_0x9d6a99,_0x592b18);_0x592b18['change'](()=>{for(const _0x7e2799 of _0x204718)_0x1fa314['markBlockFormat'](_0x7e2799,{'commandName':'codeBlock','commandParams':[{..._0x346ae7,'forceValue':_0xa16cb7}],'formatGroupId':'blockName'});});}),(_0x1fa314['descriptionFactory']['registerElementLabel']('codeBlock',_0x4258d3=>o(_0x189f34,'ELEMENT_CODE_BLOCK',_0x4258d3)),_0x1fa314['descriptionFactory']['registerDescriptionCallback'](_0x4bcf6a=>{if('formatBlock'!=_0x4bcf6a['type'])return;const _0x5d0c4c=_0x189f34['t'],{data:_0x54ae08}=_0x4bcf6a;if(!_0x54ae08||'codeBlock'!=_0x54ae08['commandName'])return;const _0x2ab6a1=_0x54ae08['commandParams'][0x0]['language'],_0x424209=_0x5d0c4c(_0x41e6a1['find'](_0x378ac6=>_0x378ac6['language']===_0x2ab6a1)['label'])['toLowerCase']();return _0x54ae08['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x189f34,'*Set\x20format:*\x20%0',o(_0x189f34,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x424209+')')}:{'type':'format','content':o(_0x189f34,'*Remove\x20format:*\x20%0',o(_0x189f34,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x7393d8){return'codeBlock'==_0x7393d8['name'];}class q extends _0x422b73{['afterInit'](){const _0x5e4f1a=this['editor'];if(!_0x5e4f1a['plugins']['has']('CommentsEditing'))return;_0x5e4f1a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x53e594,_0x27927e,_0x2b7d5a){const _0x1f0f57=[];for(const _0x40e565 of _0x27927e['getItems']())_0x40e565['hasAttribute'](_0x53e594)&&_0x1f0f57['push'](_0x2b7d5a['createRangeOn'](_0x40e565));return _0x1f0f57;}function _e(_0x5cf924,_0x2e3bda,{showActiveMarker:_0x1ef64e=!0x0}={}){const _0x387e8e=_0x5cf924['plugins']['get']('TrackChangesEditing');return(_0x341859,_0x4189c8,_0x291b01)=>{if(!_0x291b01['consumable']['test'](_0x4189c8['markerRange'],_0x341859['name']))return;const _0x382102=_0x4189c8['markerRange']['getWalker'](),_0x402acc=_0x4189c8['markerRange']['start'],_0x2fbb53=_0x5cf924['model']['schema'];let _0x5e00c8=null,_0x36d110=null,_0x4e1658=!0x1,_0x3527f6=!0x1;for(const _0x48c57f of _0x382102){const _0x1b4688=_0x48c57f['item'];_0x4e1658=_0x4e1658||_0x2fbb53['isContent'](_0x1b4688);const _0x95476e=_0x291b01['mapper']['toViewElement'](_0x1b4688);if(_0x95476e&&_0x95476e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48c57f['type']&&(_0x2fbb53['isBlock'](_0x1b4688)&&!_0x2fbb53['isLimit'](_0x1b4688)&&(_0x1b4688['nextSibling']||_0x402acc['isAtEnd']?_0x5e00c8&&_0x5e00c8['parent']==_0x1b4688||(_0x5e00c8=_0x1b4688,_0x371579(_0x48c57f['previousPosition']),_0x3527f6=!0x0):_0x36d110=_0x36d110||_0x48c57f['previousPosition']));}function _0x371579(_0x5cfcca){const {authorId:_0x5a2e0f}=_0x387e8e['_splitMarkerName'](_0x4189c8['markerName']),_0x2d26d2=_0x291b01['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e3bda,'data-author-id':_0x5a2e0f}),_0x392a62=_0x291b01['mapper']['toViewPosition'](_0x5cfcca);_0x1ef64e&&_0x387e8e['activeMarkers']['includes'](_0x4189c8['markerName'])&&_0x291b01['writer']['addClass']('ck-suggestion-marker--active',_0x2d26d2),_0x291b01['writer']['insert'](_0x392a62,_0x2d26d2),_0x291b01['mapper']['bindElementToMarker'](_0x2d26d2,_0x4189c8['markerName']);}_0x4e1658||_0x3527f6||!_0x36d110||_0x371579(_0x36d110);};}class z extends _0x422b73{static get['requires'](){return[_0x261ebc];}['init'](){const _0x2d91b3=this['editor'],_0x50ae81=_0x2d91b3['plugins']['get']('TrackChangesEditing');_0x50ae81['enableCommand']('delete');const _0x3ef67f=_0x2d91b3['commands']['get']('deleteForward');_0x50ae81['enableCommand']('deleteForward',(_0x35a30e,_0x4bdf8e={})=>{const _0x40d873=_0x2d91b3['model']['createSelection'](_0x2d91b3['model']['document']['selection']);_0x40d873['isCollapsed']&&_0x2d91b3['model']['modifySelection'](_0x40d873,{'direction':'forward','unit':_0x4bdf8e['unit']});const _0x4d58e2=_0x40d873['getFirstRange'](),_0x125766=_0x5118bb['fromRange'](_0x4d58e2);let _0x3c8e29;_0x35a30e(_0x4bdf8e),_0x3c8e29='$graveyard'==_0x125766['root']['rootName']?_0x2d91b3['model']['createRange'](_0x4d58e2['start']):_0x2d91b3['model']['createRange'](_0x125766['start'],_0x125766['end']),_0x125766['detach'](),_0x2d91b3['model']['enqueueChange'](_0x3ef67f['buffer']['batch'],_0x4b3fcd=>{_0x3ef67f['buffer']['lock'](),_0x4b3fcd['setSelection'](_0x4b3fcd['createRange'](_0x3c8e29['end'])),_0x3ef67f['buffer']['unlock']();});}),_0x2d91b3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2d91b3,'merge'),{'priority':'high'}),_0x2d91b3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x13d2cf,_0x2433d2,_0x59ad9e)=>{_0x59ad9e['options']['showSuggestionHighlights']&&_e(_0x2d91b3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x13d2cf,_0x2433d2,_0x59ad9e);},{'priority':'high'}),_0x2d91b3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x397fac,_0x59d23f,_0x511cc2)=>{const _0x55e3bf=_0x511cc2['mapper']['markerNameToElements'](_0x59d23f['markerName']);if(_0x55e3bf){for(const _0x31655b of _0x55e3bf)_0x31655b['is']('uiElement')&&(_0x511cc2['mapper']['unbindElementFromMarkerName'](_0x31655b,_0x59d23f['markerName']),_0x511cc2['writer']['remove'](_0x31655b));}},{'priority':'high'});}}class K extends _0x422b73{['afterInit'](){const _0x9ed5f2=this['editor'];if(!_0x9ed5f2['plugins']['has']('ListEditing'))return;const _0x363806=_0x9ed5f2['locale'],_0x802517=_0x9ed5f2['plugins']['get']('TrackChangesEditing'),_0x45da73=_0x9ed5f2['plugins']['has']('TodoListEditing'),_0x481bf6=!!_0x9ed5f2['config']['get']('list.multiBlock');function _0x56bdeb(_0xc893b0){return{'type':'format','content':''+o(_0x363806,'*Set\x20format:*\x20%0',_0xc893b0)};}function _0x1977bc(_0x4ab270){return{'type':'format','content':''+o(_0x363806,'*Remove\x20format:*\x20%0',_0x4ab270)};}_0x802517['enableDefaultAttributesIntegration']('numberedList'),_0x802517['enableDefaultAttributesIntegration']('bulletedList'),_0x802517['enableDefaultAttributesIntegration']('customNumberedList'),_0x802517['enableDefaultAttributesIntegration']('customBulletedList'),_0x802517['enableDefaultAttributesIntegration']('indentList'),_0x802517['enableDefaultAttributesIntegration']('outdentList'),_0x802517['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x802517['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x802517['registerBlockAttribute']('listItemId'),_0x802517['registerBlockAttribute']('listType'),_0x802517['registerBlockAttribute']('listIndent'),_0x481bf6&&(_0x802517['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x802517['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x45da73&&(_0x802517['enableDefaultAttributesIntegration']('todoList'),_0x802517['enableDefaultAttributesIntegration']('checkTodoList'),_0x802517['registerBlockAttribute']('todoListChecked'),_0x802517['descriptionFactory']['registerDescriptionCallback'](_0x46f6ab=>{const {data:_0x179965}=_0x46f6ab;if(_0x179965&&'todoListChecked'==_0x179965['key'])return{'type':'format','content':_0x179965['newValue']?o(_0x363806,'*Check\x20item*'):o(_0x363806,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x6c02ba=>{if(_0x6c02ba['batch']['isUndo'])return!0x1;let _0x2d1a1c=!0x1;const _0x2576a0=_0x802517['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fba52=>'todoListChecked'===_0x802517['_getAttributeKey'](_0x2fba52));for(const _0x3b10ac of _0x2576a0){'todo'!=_0x3b10ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x802517['_findSuggestions'](_0x3b10ac['getFirstRange'](),'attribute')['find'](_0xbf38f7=>'listType'===_0x802517['_getAttributeKey'](_0xbf38f7['suggestion']))||(_0x6c02ba['removeMarker'](_0x3b10ac['getFirstMarker']()),_0x2d1a1c=!0x0));}return _0x2d1a1c;})),_0x802517['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x363806,'FORMAT_INDENT'));const _0x4a6af0={'type':'format','content':''};_0x802517['descriptionFactory']['registerDescriptionCallback'](_0xd84634=>{const {data:_0x267e8c}=_0xd84634;if(!_0x267e8c||'listType'!=_0x267e8c['key'])return;let _0x150abb=_0xd84634['head'];for(;_0x150abb;){if(_0x150abb['data']&&(('listStyle'==_0x150abb['data']['key']||'listMarkerStyle'==_0x150abb['data']['key'])&&(_0x150abb['data']['newValue']&&'default'!=_0x150abb['data']['newValue']||'default'!=_0x150abb['data']['oldValue']&&!_0x267e8c['newValue'])||!_0x481bf6&&_0x150abb['data']['key']==m))return _0x4a6af0;_0x150abb=_0x150abb['next'];}if(null==_0x267e8c['newValue'])switch(_0x267e8c['oldValue']){case'bulleted':return _0x1977bc(o(_0x363806,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1977bc(o(_0x363806,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1977bc(o(_0x363806,'ELEMENT_TODO_LIST'));}switch(_0x267e8c['newValue']){case'bulleted':return _0x56bdeb(o(_0x363806,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56bdeb(o(_0x363806,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56bdeb(o(_0x363806,'ELEMENT_TODO_LIST'));}}),_0x802517['descriptionFactory']['registerDescriptionCallback'](_0x106fe7=>{const {data:_0x1ead8b}=_0x106fe7;if(_0x1ead8b&&'listIndent'==_0x1ead8b['key'])return null==_0x1ead8b['newValue']||null==_0x1ead8b['oldValue']&&0x0==_0x1ead8b['newValue']?_0x4a6af0:void 0x0;}),_0x802517['descriptionFactory']['registerDescriptionCallback'](_0x5a0934=>{if('attribute'!=_0x5a0934['type'])return;const {data:_0x44cb0c}=_0x5a0934;if(!_0x44cb0c||'listItemId'!=_0x44cb0c['key'])return;const _0x10c1e7=Ee(_0x5a0934);return'newValue'==_0x10c1e7?{'type':'format','content':o(_0x363806,'*Merge:*\x20list\x20item')}:'oldValue'==_0x10c1e7?{'type':'format','content':o(_0x363806,'*Split:*\x20list\x20item')}:_0x4a6af0;}),_0x9ed5f2['model']['document']['registerPostFixer'](_0x39bf01=>this['listItemIdFixer'](_0x39bf01)),_0x9ed5f2['model']['document']['registerPostFixer'](_0xa7eb24=>this['noTrackChangesFixer'](_0xa7eb24)),_0x9ed5f2['model']['document']['on']('change:data',(_0x2e2fb9,_0x33ba21)=>{if(_0x33ba21['isUndo']||!_0x33ba21['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2c8ac0){if(_0x2c8ac0['batch']['isUndo']||!_0x2c8ac0['batch']['isLocal'])return!0x1;let _0x11b41c=!0x1;const _0x42cea4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x313243=>_0x313243['data']&&'listItemId'==_0x313243['data']['key'])['filter'](_0x35d07a=>_0x35d07a['data']['newValue']&&_0x35d07a['data']['oldValue']);for(const _0x5eef64 of _0x42cea4)Ee(_0x5eef64)||(_0x2c8ac0['removeMarker'](_0x5eef64['getFirstMarker']()),_0x11b41c=!0x0);return _0x11b41c;}['noTrackChangesFixer'](_0x57fd20){if(_0x57fd20['batch']['isUndo']||!_0x57fd20['batch']['isLocal'])return!0x1;const _0x4b6b65=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b6b65['trackChangesCommand']['value'])return!0x1;let _0x31908b=!0x1;const _0x196158=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x32e638=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x18c3f7=>'attribute'==_0x18c3f7['type'])['filter'](_0x80a7c4=>_0x196158['includes'](_0x80a7c4['attributeKey']));if(0x0==_0x32e638['length'])return _0x31908b;for(const _0xaf846f of _0x32e638){const _0x2299ee=_0x4b6b65['_findSuggestions'](_0xaf846f['range'],'attribute')['filter'](_0x52fc5b=>!_0x52fc5b['meta']['isNextTo'])['map'](_0x1c0edd=>_0x1c0edd['suggestion'])['filter'](_0x31cbe3=>{const _0x39ece7=_0x4b6b65['_getAttributeKey'](_0x31cbe3);return _0x196158['includes'](_0x39ece7);});if(_0x2299ee['length']){for(const _0x21c36d of _0x2299ee)_0x57fd20['removeMarker'](_0x21c36d['getFirstMarker']());_0x31908b=!0x0;}}return _0x31908b;}['assureChains'](){const _0x2d6504=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9f9f49=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x7fa1c9;const _0x469f8b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12f4c5=>{if(_0x12f4c5['data']['oldRange']||!_0x12f4c5['data']['newRange'])return null;if(!_0x12f4c5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x37659b}=_0x2d6504['_splitMarkerName'](_0x12f4c5['name']);if(!_0x2d6504['hasSuggestion'](_0x37659b))return null;const _0x50a4fb=_0x2d6504['getSuggestion'](_0x37659b);return _0x9f9f49['includes'](_0x50a4fb['data']['key']);})['map'](_0x434ce5=>{const {id:_0x4d66bb}=_0x2d6504['_splitMarkerName'](_0x434ce5['name']),_0xd3ee44=_0x2d6504['getSuggestion'](_0x4d66bb);return _0x7fa1c9=_0xd3ee44['attributes']['groupId'],_0xd3ee44['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x469f8b['size'])return;const _0x103923=_0x2d6504['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4efada=>'attribute'==_0x4efada['type']&&_0x4efada['data']&&_0x9f9f49['includes'](_0x4efada['data']['key'])&&_0x4efada['attributes']['groupId']!=_0x7fa1c9)['map'](_0x501d52=>({'listItem':_0x501d52['getFirstRange']()['start']['nodeAfter'],'groupId':_0x501d52['attributes']['groupId']})),_0x624cad=new Set();for(const {groupId:_0x3ccba9,listItem:_0x146505}of _0x103923)_0x469f8b['has'](_0x146505)&&_0x624cad['add'](_0x3ccba9);for(const _0x5209f1 of _0x2d6504['getSuggestions']())_0x624cad['has'](_0x5209f1['attributes']['groupId'])&&_0x5209f1['setAttribute']('groupId',_0x7fa1c9);}['_supportLegacySuggestions'](){const _0x27e49f=this['editor'],_0x4eb48c=_0x27e49f['locale'],_0x40e72d=_0x27e49f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x40e72d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2693c5,_0xae7e94){const _0xbbe91=[];for(let _0x3d15e5 of _0x2693c5)_0x3d15e5['start']['nodeAfter']===_0x3d15e5['end']['parent']&&(_0x3d15e5=_0x27e49f['model']['createRange'](_0x27e49f['model']['createPositionAt'](_0x3d15e5['start']['nodeAfter'],0x0))),_0xbbe91['push'](_0x3d15e5);_0x27e49f['model']['change'](_0xcb717b=>{const _0x138435=_0x27e49f['model']['document']['selection'],_0x5ee2ca=Array['from'](_0x138435['getRanges']())['map'](_0x4b32e8=>_0x5118bb['fromRange'](_0x4b32e8));_0xcb717b['setSelection'](_0xbbe91),_0x27e49f['commands']['get'](_0xae7e94['commandName'])['refresh'](),_0xae7e94['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27e49f['execute'](_0xae7e94['commandName'],..._0xae7e94['commandParams']),_0xcb717b['setSelection'](_0x5ee2ca);for(const _0x5be74c of _0x5ee2ca)_0x5be74c['detach']();});}),_0x40e72d['descriptionFactory']['registerElementLabel'](function(_0x1fbea5){const _0xe887cc=!_0x27e49f['model']['schema']['isObject'](_0x1fbea5),_0x4f1d23=_0x1fbea5['previousSibling'],_0x52145a=_0x1fbea5['nextSibling'],_0x9c8981=_0x1fbea5['getAttribute']('listItemId'),_0x217157=!_0x4f1d23||_0x4f1d23['getAttribute']('listItemId')!==_0x9c8981,_0x3c079f=!_0x52145a||_0x52145a['getAttribute']('listItemId')!==_0x9c8981;return _0xe887cc&&Boolean(_0x9c8981)&&_0x217157&&_0x3c079f;},_0x1a26ac=>o(_0x4eb48c,'ELEMENT_LIST_ITEM',_0x1a26ac));}['_registerLegacyDescription'](){const _0x23ad4b=this['editor'],_0x39aa79=_0x23ad4b['locale'];function _0x457129(_0x306a7a){const _0x341292=_0x23ad4b['commands']['get']('bulletedList')['value'],_0x22dbe7=_0x23ad4b['commands']['get']('numberedList')['value'];return'numberedList'===_0x306a7a?_0x341292:_0x22dbe7;}_0x23ad4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1f2d58){if('formatBlock'!=_0x1f2d58['type'])return;const {data:_0x4cd462}=_0x1f2d58;if(!_0x4cd462)return;let _0x39fd78,_0x194e73,_0x582f14,_0x40d963;switch(_0x4cd462['commandName']){case'bulletedList':_0x582f14=_0x4cd462['commandParams'][0x0]['forceValue'],_0x40d963=_0x457129(_0x4cd462['commandName']),_0x39fd78=_0x582f14?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x40d963&&_0x23ad4b['config']['get']('list.multiBlock')||(_0x39fd78='*Change\x20to:*\x20%0'),_0x194e73={'type':'format','content':o(_0x39aa79,_0x39fd78,o(_0x39aa79,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x582f14=_0x4cd462['commandParams'][0x0]['forceValue'],_0x40d963=_0x457129(_0x4cd462['commandName']),_0x39fd78=_0x582f14?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x40d963&&_0x23ad4b['config']['get']('list.multiBlock')||(_0x39fd78='*Change\x20to:*\x20%0'),_0x194e73={'type':'format','content':o(_0x39aa79,_0x39fd78,o(_0x39aa79,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39fd78='*Indent:*\x20%0',_0x194e73={'type':'format','content':o(_0x39aa79,_0x39fd78,o(_0x39aa79,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39fd78=function(_0x493727){const _0x34e35e=_0x493727['getFirstRange']();let _0x4e90e8=_0x34e35e['start']['nodeAfter'];for(;_0x4e90e8&&_0x34e35e['containsItem'](_0x4e90e8);){if(_0x4e90e8['getAttribute']('listIndent')>0x0)return!0x1;_0x4e90e8=_0x4e90e8['nextSibling'];}return!0x0;}(_0x1f2d58)?o(_0x39aa79,'*Format:*\x20remove\x20from\x20%0',o(_0x39aa79,function(_0x5afe2a){return'ELEMENT_'+_0x5afe2a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1f2d58))):o(_0x39aa79,'*Outdent:*\x20%0',o(_0x39aa79,'ELEMENT_LIST_ITEM')),_0x194e73={'type':'format','content':_0x39fd78};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4cd462['multipleBlocks']&&(_0x39fd78='*Merge:*\x20%0',_0x194e73={'type':'deletion','content':o(_0x39aa79,_0x39fd78,o(_0x39aa79,'ELEMENT_LIST_ITEM'))});}return _0x194e73;});}}function Ee(_0x44abe3){let _0x1baf4d=_0x44abe3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1baf4d;){const _0x23f331=_0x1baf4d['getAttribute']('listItemId');if(!_0x23f331)return!0x1;if(_0x23f331==_0x44abe3['data']['newValue'])return'newValue';if(_0x23f331==_0x44abe3['data']['oldValue'])return'oldValue';_0x1baf4d=_0x1baf4d['previousSibling'];}return!0x1;}class pe extends _0x422b73{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x495613=this['editor']['config']['get']('list.properties'),_0x56311b=this['editor']['plugins']['get']('TrackChangesEditing');_0x495613['styles']&&(_0x56311b['enableDefaultAttributesIntegration']('listStyle'),_0x56311b['registerBlockAttribute']('listStyle')),_0x495613['reversed']&&(_0x56311b['enableDefaultAttributesIntegration']('listReversed'),_0x56311b['registerBlockAttribute']('listReversed')),_0x495613['startIndex']&&(_0x56311b['enableDefaultAttributesIntegration']('listStart'),_0x56311b['registerBlockAttribute']('listStart'));const _0x220222={'type':'format','content':''};_0x56311b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x442007=this['editor']['locale'];_0x56311b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x442007,'FORMAT_LIST_REVERSED')),_0x56311b['descriptionFactory']['registerDescriptionCallback'](_0x1f361b=>{const {data:_0x5c52cc}=_0x1f361b;if(_0x5c52cc&&'listReversed'==_0x5c52cc['key'])return null==_0x5c52cc['newValue']||0x0==_0x5c52cc['newValue']&&null==_0x5c52cc['oldValue']?_0x220222:void 0x0;}),_0x56311b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x442007,'FORMAT_LIST_START')),_0x56311b['descriptionFactory']['registerDescriptionCallback'](_0x16993f=>{const {data:_0x4bb5db}=_0x16993f;if(_0x4bb5db&&'listStart'==_0x4bb5db['key'])return null==_0x4bb5db['newValue']||0x1==_0x4bb5db['newValue']&&null==_0x4bb5db['oldValue']?_0x220222:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x14b441=>{if(_0x14b441['batch']['isUndo'])return!0x1;let _0x3930cb=!0x1;const _0x135c20=_0x56311b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17f606=>{const _0x485ed6=_0x56311b['_getAttributeKey'](_0x17f606);return'listStart'==_0x485ed6||'listReversed'==_0x485ed6;});for(const _0x5d8e58 of _0x135c20){const _0x4a42a7=_0x5d8e58['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4a42a7||'customNumbered'==_0x4a42a7)continue;_0x56311b['_findSuggestions'](_0x5d8e58['getFirstRange'](),'attribute')['find'](_0x3574f9=>'listType'==_0x56311b['_getAttributeKey'](_0x3574f9['suggestion']))||(_0x14b441['removeMarker'](_0x5d8e58['getFirstMarker']()),_0x3930cb=!0x0);}return _0x3930cb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x18b7aa){const _0x5e959c=this['editor']['locale'],{data:_0x4ce965}=_0x18b7aa,_0x126cfe={'type':'format','content':''};if(!_0x4ce965||'listStyle'!=_0x4ce965['key'])return;if(!_0x4ce965['oldValue'])return'default'==_0x4ce965['newValue']?_0x126cfe:{'type':'format','content':''+o(_0x5e959c,'*Set\x20format:*\x20%0',o(_0x5e959c,this['_getTranslationKeyForListStyle'](_0x4ce965['newValue'])))};if(!_0x4ce965['newValue']){if('default'==_0x4ce965['oldValue'])return _0x126cfe;let _0x18f045=_0x18b7aa['head'];for(;_0x18f045;){if(_0x18f045['data']&&'listType'==_0x18f045['data']['key']&&_0x18f045['data']['newValue'])return _0x126cfe;_0x18f045=_0x18f045['next'];}return{'type':'format','content':''+o(_0x5e959c,'*Remove\x20format:*\x20%0',o(_0x5e959c,this['_getTranslationKeyForListStyle'](_0x4ce965['oldValue'])))};}if('default'!=_0x4ce965['newValue'])return{'type':'format','content':''+o(_0x5e959c,'*Set\x20format:*\x20%0',o(_0x5e959c,this['_getTranslationKeyForListStyle'](_0x4ce965['newValue'])))};let _0x592803=_0x18b7aa['head'];for(;_0x592803;){if(_0x592803['data']&&'listType'==_0x592803['data']['key']&&_0x592803['data']['newValue']&&_0x592803['data']['oldValue'])return _0x126cfe;_0x592803=_0x592803['next'];}return{'type':'format','content':o(_0x5e959c,'*Set\x20format:*\x20%0',o(_0x5e959c,'ELEMENT_'+_0x18b7aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x470f27=this['editor'],_0x5c6448=_0x470f27['locale'];_0x470f27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x180990=>{if('formatBlock'!=_0x180990['type'])return;const {data:_0x29435f}=_0x180990;if(!_0x29435f)return;let _0x30a27f,_0x4bc587;switch(_0x29435f['commandName']){case'listStyle':_0x30a27f='*Change\x20to:*\x20%0',_0x4bc587={'type':'format','content':o(_0x5c6448,_0x30a27f,o(_0x5c6448,this['_getTranslationKeyForListStyle'](_0x29435f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x30a27f=_0x29435f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4bc587={'type':'format','content':o(_0x5c6448,_0x30a27f)};break;case'listStart':_0x30a27f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4bc587={'type':'format','content':o(_0x5c6448,_0x30a27f,_0x29435f['commandParams'][0x0]['startIndex'])};}return _0x4bc587;});}['_getTranslationKeyForListStyle'](_0x25539b){return'ELEMENT_'+function(_0x3f80d0){if(ye['includes'](_0x3f80d0))return'bulleted';if(Se['includes'](_0x3f80d0))return'numbered';return null;}(_0x25539b)['toUpperCase']()+'_LIST_'+_0x25539b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x422b73{static get['requires'](){return[_0x8299a9];}['init'](){const _0x57649d=this['editor'],_0x6fbba4=_0x57649d['plugins']['get']('TrackChangesEditing'),_0x2cc998=_0x57649d['commands']['get']('enter');_0x6fbba4['enableCommand']('enter',()=>{_0x57649d['model']['change'](_0x58ebe1=>{const _0x430662=_0x57649d['model']['document']['selection'],_0x79d46f=_0x430662['getFirstPosition'](),_0x35f777=_0x5118bb['fromRange'](_0x430662['getFirstRange']());if(_0x2cc998['enterBlock'](_0x58ebe1)){const _0x1e0c26=_0x57649d['model']['createPositionAt'](_0x79d46f['parent']['nextSibling'],0x0),_0xccd1ac=_0x58ebe1['createRange'](_0x79d46f,_0x1e0c26);_0x6fbba4['markInsertion'](_0xccd1ac);}else _0x58ebe1['setSelection'](_0x58ebe1['createRange'](_0x35f777['end']));_0x35f777['detach'](),_0x2cc998['fire']('afterExecute',{'writer':_0x58ebe1});});}),_0x57649d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x57649d,'split'),{'priority':'high'}),_0x57649d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x484ae3,_0x2b8b2f,_0x504190)=>{const _0x1e2a8d=_0x504190['mapper']['markerNameToElements'](_0x2b8b2f['markerName']);if(_0x1e2a8d){for(const _0x2d3acd of _0x1e2a8d)_0x2d3acd['hasClass']('ck-suggestion-marker-split')&&(_0x504190['mapper']['unbindElementFromMarkerName'](_0x2d3acd,_0x2b8b2f['markerName']),_0x504190['writer']['remove'](_0x2d3acd));}},{'priority':'high'}),_0x57649d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e1bd9,_0x21a3d8,_0x4e8330)=>{_0x4e8330['options']['showSuggestionHighlights']&&_e(_0x57649d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e1bd9,_0x21a3d8,_0x4e8330);},{'priority':'high'});}}class X extends _0x422b73{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5df0e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5df0e4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5df0e4['enableCommand']('findNext'),_0x5df0e4['enableCommand']('findPrevious'),_0x5df0e4['enableCommand']('replace'),_0x5df0e4['enableCommand']('replaceAll');}['handleFindCommand'](_0x2fc035,_0x6c15bc,_0x2c5418={}){const _0x4c75ee=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2fc035(_0x320cb6=>{let _0x1c9075=('string'==typeof _0x6c15bc?_0x4c75ee['findByTextCallback'](_0x6c15bc,_0x2c5418):_0x6c15bc)(_0x320cb6);Array['isArray'](_0x1c9075)&&(_0x1c9075={'results':_0x1c9075,'searchText':'string'==typeof _0x6c15bc?_0x6c15bc:''});const _0x506abc=_0x1c9075['results']['filter'](_0x546db6=>!0x1===this['_isInDeletionRange'](_0x546db6,_0x320cb6['item']));return{..._0x1c9075,'results':_0x506abc};},_0x2c5418);}['_isInDeletionRange'](_0x551471,_0xc989d1){const _0x209aa5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc989d1,_0x551471['start']),this['editor']['model']['createPositionAt'](_0xc989d1,_0x551471['end']));for(const _0x40d7a1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x209aa5['getIntersection'](_0x40d7a1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x422b73{['afterInit'](){const _0x3d6a1c=this['editor']['locale'],_0x142815=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ec0b3,commandName:_0x31cf46}of ro)this['editor']['plugins']['has'](_0x1ec0b3)&&(_0x142815['enableDefaultAttributesIntegration'](_0x31cf46),_0x142815['registerInlineAttribute'](_0x31cf46));_0x142815['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3d6a1c,'FORMAT_FONT_SIZE')),_0x142815['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3d6a1c,'FORMAT_FONT_FAMILY')),_0x142815['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3d6a1c,'FORMAT_FONT_COLOR')),_0x142815['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3d6a1c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1329=this['editor'],_0x4b7339=_0x4d1329['locale'];_0x4d1329['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x266a01=>{const _0x2af5f3=_0x4b7339['t'];if('formatInline'!=_0x266a01['type'])return;const {data:_0x32d208}=_0x266a01;if(null!=_0x32d208){if('fontSize'==_0x32d208['commandName']){const _0x1a9f9d=_0x32d208['commandParams'][0x0]['value'];if(_0x1a9f9d){const _0xf064b5=_0x2af5f3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3dcfb2=>_0x3dcfb2['model']==_0x1a9f9d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b7339,'*Set\x20font\x20size:*\x20%0',_0xf064b5)};}return{'type':'format','content':o(_0x4b7339,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32d208['commandName']){const _0x5df32b=_0x32d208['commandParams'][0x0]['value'];return _0x5df32b?{'type':'format','content':o(_0x4b7339,'*Set\x20font\x20family:*\x20%0',_0x5df32b)}:{'type':'format','content':o(_0x4b7339,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32d208['commandName']){const _0x4cfbe5=_0x32d208['commandParams'][0x0]['value'];if(_0x4cfbe5){const _0x5b972b=_0x1c1bac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x90db04=>_0x90db04['model']==_0x4cfbe5);let _0x8ebf7d=_0x4cfbe5,_0x4899e6='';return _0x5b972b&&(_0x8ebf7d=_0x5b972b['label'],_0x4899e6=_0x2af5f3(_0x8ebf7d)['toLowerCase']()),{'type':'format','content':o(_0x4b7339,'*Set\x20font\x20color:*\x20%0',_0x4899e6)['trim'](),'color':{'value':_0x4cfbe5,'title':_0x4899e6||_0x8ebf7d}};}return{'type':'format','content':o(_0x4b7339,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32d208['commandName']){const _0x3b5de7=_0x32d208['commandParams'][0x0]['value'];if(_0x3b5de7){const _0x596e0a=_0x1c1bac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47f5a9=>_0x47f5a9['model']==_0x3b5de7);let _0x3e50b4=_0x3b5de7,_0x1f1310='';return _0x596e0a&&(_0x3e50b4=_0x596e0a['label'],_0x1f1310=_0x2af5f3(_0x3e50b4)['toLowerCase']()),{'type':'format','content':o(_0x4b7339,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f1310)['trim'](),'color':{'value':_0x3b5de7,'title':_0x1f1310||_0x3e50b4}};}return{'type':'format','content':o(_0x4b7339,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x422b73{['afterInit'](){const _0x4d4a48=this['editor'],_0x17fd45=_0x4d4a48['plugins']['get']('TrackChangesEditing'),_0x273f4c=_0x4d4a48['commands']['get']('copyFormat'),_0x1e0ecd=_0x4d4a48['commands']['get']('pasteFormat');_0x273f4c&&_0x1e0ecd&&(_0x17fd45['enableDefaultAttributesIntegration']('pasteFormat'),_0x17fd45['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x32d35c=this['editor'],_0x59387a=_0x32d35c['locale'];_0x32d35c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x420dde=>{if('formatBlock'!=_0x420dde['type']&&'formatInline'!=_0x420dde['type'])return;const {data:_0x319a44}=_0x420dde;if(_0x319a44&&'pasteFormat'===_0x319a44['commandName']){const _0x12877e=[],_0x3b78bb=_0x319a44['commandParams'][0x0];for(const [_0x6af6bf,_0x1f3bb9]of Object['entries'](_0x3b78bb))_0x12877e['push'](so(_0x32d35c,_0x6af6bf,_0x1f3bb9));return _0x12877e['length']?{'type':'format','content':o(_0x59387a,'*Set\x20format\x20to:*\x20%0',_0x12877e['join'](',\x20'))}:{'type':'format','content':o(_0x59387a,'*Remove\x20all\x20formatting*')};}});}}function so(_0xae0840,_0x47b792,_0x44d633){const _0x1cd55c=_0xae0840['locale']['t'],_0x4da061=_0x47b792['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b1596=_0x1cd55c(_0x4da061['charAt'](0x0)['toUpperCase']()+_0x4da061['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x44d633)return _0x4b1596;if('fontColor'===_0x47b792||'fontBackgroundColor'===_0x47b792){const _0x278f30=_0x1c1bac(_0xae0840['config']['get']('fontColor.colors'))['find'](_0x20dce3=>_0x20dce3['model']==_0x44d633);return _0x4b1596+'\x20('+(_0x278f30?_0x1cd55c(_0x278f30['label'])['toLowerCase']():_0x44d633)+')';}if('fontSize'===_0x47b792&&isNaN(parseFloat(_0x44d633))){const _0x3cf3a1=_0xae0840['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xae0840['config']['get']('fontSize.options'))['find'](_0x58237c=>_0x58237c['model']==_0x44d633);return _0x4b1596+'\x20('+(_0x3cf3a1?_0x1cd55c(_0x3cf3a1['title'])['toLowerCase']():_0x44d633)+')';}return _0x4b1596+'\x20('+_0x44d633+')';}class tt extends _0x422b73{['_headingOptions'];['afterInit'](){const _0x25899e=this['editor'];if(!_0x25899e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x25899e['config']['get']('heading.options');const _0x358dfe=_0x25899e['locale'],_0x41d948=_0x25899e['plugins']['get']('TrackChangesEditing');_0x41d948['enableDefaultAttributesIntegration']('heading');for(const _0x1f096a of this['_headingOptions'])'paragraph'!=_0x1f096a['model']&&_0x41d948['descriptionFactory']['registerElementLabel'](_0x1f096a['model'],_0x1b968c=>{const _0x1c6ada=this['_getHeadingLevel'](_0x1f096a['model']);return null!==_0x1c6ada?_0x4a0497(_0x1b968c,_0x1c6ada):_0x8f001d(_0x1b968c,_0x1f096a['title']);});function _0x4a0497(_0x5f3aa6,_0x5ac0a2){return o(_0x358dfe,'ELEMENT_HEADING',[_0x5f3aa6,_0x5ac0a2]);}function _0x8f001d(_0x40b26b,_0x406dde){return o(_0x358dfe,'ELEMENT_HEADING_CUSTOM',[_0x40b26b,_0x406dde]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30387a=this['editor'],_0x26ce13=_0x30387a['locale'];function _0x5c5853(_0x11b3cf,_0x32513a){return o(_0x26ce13,'ELEMENT_HEADING_CUSTOM',[_0x11b3cf,_0x32513a]);}_0x30387a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d6af3=>{if('formatBlock'!=_0x3d6af3['type'])return;const {data:_0x144a9d}=_0x3d6af3;if(_0x144a9d&&'heading'==_0x144a9d['commandName']){const _0x3ea56c=_0x144a9d['commandParams'][0x0]['value'],_0x3e6fa9=this['_getHeadingLevel'](_0x3ea56c);if(null!==_0x3e6fa9)return{'type':'format','content':o(_0x26ce13,'*Change\x20to:*\x20%0',(_0x52b9b6=0x1,_0xa6be51=_0x3e6fa9,o(_0x26ce13,'ELEMENT_HEADING',[_0x52b9b6,_0xa6be51])))};const _0x8f43e2=this['_headingOptions']['find'](_0x232365=>_0x232365['model']===_0x3ea56c)['title'];return{'type':'format','content':o(_0x26ce13,'*Change\x20to:*\x20%0',_0x5c5853(0x1,_0x8f43e2))};}var _0x52b9b6,_0xa6be51;});}['_getHeadingLevel'](_0x51c752){const _0x1d3ffd=_0x51c752['match'](/^heading(\d+)/);if(_0x1d3ffd)return _0x1d3ffd[0x1];const _0x3b37f8=this['_headingOptions']?.['find'](_0x3a6d51=>_0x3a6d51['model']==_0x51c752);if(_0x3b37f8&&_0x3b37f8['view']){const _0x4e562f=_0x3b37f8['view'],_0x233138=(_0x4e562f['name']??_0x4e562f)['match'](/^h(\d+)/);if(_0x233138)return _0x233138[0x1];}return null;}}class et extends _0x422b73{['afterInit'](){const _0x733373=this['editor'];if(!_0x733373['plugins']['has']('HighlightEditing'))return;const _0x81332f=_0x733373['plugins']['get']('TrackChangesEditing'),_0x3e9964=_0x733373['locale'];_0x81332f['enableDefaultAttributesIntegration']('highlight'),_0x81332f['registerInlineAttribute']('highlight'),_0x81332f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3e9964,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49ff76=this['editor'],_0x20435b=_0x49ff76['locale'];_0x49ff76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f2f29=>{if('formatInline'!=_0x4f2f29['type'])return;const {data:_0x337eb8}=_0x4f2f29;if(_0x337eb8&&'highlight'==_0x337eb8['commandName']){const _0x507cc3=_0x20435b['t'],_0x2a0adf=_0x337eb8['commandParams'][0x0]['value'];if(_0x2a0adf){const _0x251668=_0x49ff76['config']['get']('highlight.options')['find'](_0x364526=>_0x364526['model']==_0x2a0adf),_0x3e7d57=_0x507cc3(_0x251668['title'])['toLowerCase']();return{'type':'format','content':o(_0x20435b,'*Set\x20highlight:*\x20%0',_0x3e7d57),'color':{'value':_0x251668['color'],'title':_0x251668['title']}};}return{'type':'format','content':o(_0x20435b,'*Remove\x20highlight*',o(_0x20435b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x422b73{['afterInit'](){const _0x36b745=this['editor'];if(!_0x36b745['plugins']['has']('HorizontalLineEditing'))return;_0x36b745['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x299fa9=_0x36b745['plugins']['get']('TrackChangesEditing'),_0x1b3a0c=_0x36b745['locale'];_0x299fa9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x452bc4=>o(_0x1b3a0c,'ELEMENT_HORIZONTAL_LINE',_0x452bc4)),_0x36b745['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x154332,{writer:_0x465fbe,options:_0x58e3ca})=>{if(!_0x58e3ca['showSuggestionHighlights'])return null;const _0x1e941=_0x465fbe['createContainerElement']('div'),_0x30edda=_0x465fbe['createEmptyElement']('hr');return _0x465fbe['addClass']('ck-horizontal-line',_0x1e941),_0x465fbe['insert'](_0x465fbe['createPositionAt'](_0x1e941,0x0),_0x30edda),_0x1e941;},'converterPriority':'high'});}}class st extends _0x422b73{['afterInit'](){const _0x376c74=this['editor'];if(!_0x376c74['plugins']['has']('HtmlEmbed'))return;const _0x2a2c66=_0x376c74['plugins']['get']('TrackChangesEditing'),_0x213e7e=_0x376c74['locale'];_0x2a2c66['descriptionFactory']['registerElementLabel']('rawHtml',_0x1cd626=>o(_0x213e7e,'ELEMENT_HTML_EMBED',_0x1cd626)),_0x2a2c66['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2a2c66['registerBlockAttribute']('value'),_0x2a2c66['descriptionFactory']['registerDescriptionCallback'](_0x41673e=>{if('attribute'!=_0x41673e['type'])return;const {data:_0x5753b0}=_0x41673e;if(_0x5753b0&&'value'==_0x5753b0['key']&&_0x41673e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5b0396=o(_0x213e7e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x213e7e,'*Change\x20%0\x20content*',_0x5b0396)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de5a1=this['editor'],_0x4e7437=_0x2de5a1['locale'];_0x2de5a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfcbf7f=>{if('formatBlock'!=_0xfcbf7f['type'])return;const {data:_0x2367a8}=_0xfcbf7f;if(_0x2367a8&&'htmlEmbed'==_0x2367a8['commandName']){const _0x35cf6d=o(_0x4e7437,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4e7437,'*Change\x20%0\x20content*',_0x35cf6d)};}});}}class nt extends _0x422b73{['afterInit'](){const _0x1677d9=this['editor'];if(!_0x1677d9['plugins']['has']('ImageEditing'))return;const _0x3f9d72=_0x1677d9['plugins']['get']('TrackChangesEditing'),_0x286724=_0x1677d9['plugins']['get']('ImageUtils'),_0x476788=_0x1677d9['locale'];_0x3f9d72['enableCommand']('insertImage'),_0x3f9d72['descriptionFactory']['registerElementLabel']('imageBlock',_0x417bad=>o(_0x476788,'ELEMENT_IMAGE',_0x417bad)),_0x3f9d72['descriptionFactory']['registerElementLabel']('imageInline',_0x533622=>o(_0x476788,'ELEMENT_INLINE_IMAGE',_0x533622)),_0x3f9d72['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x476788,'ELEMENT_CAPTION')),_0x1677d9['plugins']['has']('ImageUploadEditing')&&_0x3f9d72['enableCommand']('uploadImage'),_0x1677d9['plugins']['has']('ImageBlockEditing')&&_0x1677d9['plugins']['has']('ImageInlineEditing')&&(_0x3f9d72['enableCommand']('imageTypeInline',(_0x42f2a0,_0x11346e)=>{const _0x11f2a0=_0x286724['getClosestSelectedImageElement'](_0x1677d9['model']['document']['selection']);_0x1677d9['model']['change'](()=>{_0x3f9d72['markBlockFormat'](_0x11f2a0,{'commandName':'imageTypeInline','commandParams':[_0x11346e]},[],'convertBlockImageToInline');});}),_0x3f9d72['enableCommand']('imageTypeBlock',(_0x21e107,_0x9b9732)=>{_0x1677d9['model']['change'](_0x1bc797=>{let _0x716103=_0x286724['getClosestSelectedImageElement'](_0x1677d9['model']['document']['selection']),_0x1634e0=_0x1bc797['createRangeOn'](_0x716103);const _0x3b4840=_0x3dbba9['fromPosition'](_0x1634e0['start'],'toPrevious'),_0xa23f12=_0x3dbba9['fromPosition'](_0x1634e0['end'],'toNext');_0x3f9d72['forceDefaultExecution'](()=>_0x21e107(_0x9b9732)),_0x716103=_0x286724['getClosestSelectedImageElement'](_0x1677d9['model']['document']['selection']),_0x1634e0=_0x1bc797['createRangeOn'](_0x716103);const _0x1235c2=_0x1bc797['createRange'](_0x3b4840,_0xa23f12);_0x3b4840['detach'](),_0xa23f12['detach'](),_0x3f9d72['markBlockFormat'](_0x716103,{'commandName':'imageTypeInline','commandParams':[_0x9b9732]},[],'convertInlineImageToBlock'),_0x1235c2['start']['isBefore'](_0x1634e0['start'])&&_0x3f9d72['markInsertion'](_0x1bc797['createRange'](_0x1235c2['start'],_0x1634e0['start']),'convertInlineImageToBlock'),_0x1634e0['end']['isBefore'](_0x1235c2['end'])&&_0x3f9d72['markInsertion'](_0x1bc797['createRange'](_0x1634e0['end'],_0x1235c2['end']),'convertInlineImageToBlock');});}),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3f9d72['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2547af])=>{const _0x587f04=_0x3f9d72['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2f10b8=_0x2547af['start'],_0x17a73d=_0x2547af['end'];const _0x4cc02d=_0x1677d9['model']['schema']['getNearestSelectionRange'](_0x2f10b8,'backward'),_0x17a369=_0x1677d9['model']['schema']['getNearestSelectionRange'](_0x17a73d,'forward');_0x4cc02d['isCollapsed']&&(_0x2f10b8=_0x4cc02d['start']),_0x17a369['isCollapsed']&&(_0x17a73d=_0x17a369['end']),_0x587f04([_0x1677d9['model']['createRange'](_0x2f10b8,_0x17a73d)]);}),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x53129b),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x53129b)),_0x1677d9['plugins']['has']('ImageCaptionEditing')&&(_0x3f9d72['enableCommand']('toggleImageCaption',(_0x2a5bbe,_0x1bd0c5)=>{const _0x127e81=_0x1677d9['plugins']['get']('ImageCaptionUtils');let _0x3296f9=_0x286724['getClosestSelectedImageElement'](_0x1677d9['model']['document']['selection']),_0x153b86=_0x127e81['getCaptionFromImageModelElement'](_0x3296f9);_0x1677d9['model']['change'](()=>{if(_0x153b86)return void _0x3f9d72['markDeletion'](_0x1677d9['model']['createRangeOn'](_0x153b86));const _0x5e6dcd=_0x286724['isBlockImage'](_0x3296f9);_0x2a5bbe(_0x1bd0c5),_0x3296f9=_0x286724['getClosestSelectedImageElement'](_0x1677d9['model']['document']['selection']),_0x153b86=_0x127e81['getCaptionFromImageModelElement'](_0x3296f9),_0x3f9d72['markInsertion'](_0x1677d9['model']['createRangeOn'](_0x153b86),_0x5e6dcd?null:'imageCaption');});}),_0x3f9d72['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x53129b));const _0xb45426=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xc689e9(_0x34f87e,_0x27a9a5){const _0xb61609=_0xb45426['findIndex'](({type:_0x1c2be5,subType:_0x25b8c5})=>_0x34f87e['type']==_0x1c2be5&&_0x34f87e['subType']==_0x25b8c5),_0x61bd4e=_0xb45426['findIndex'](({type:_0x5c332d,subType:_0x56c487})=>_0x27a9a5['type']==_0x5c332d&&_0x27a9a5['subType']==_0x56c487);if(_0xb61609<0x0||_0x61bd4e<0x0)return!0x1;const _0x264e25=_0x34f87e['getFirstRange'](),_0x3fb37c=_0x27a9a5['getFirstRange']();if((0x0==_0xb61609||0x1==_0xb61609)&&0x2==_0x61bd4e&&_0x264e25['isIntersecting'](_0x3fb37c))return!0x0;if(0x2==_0xb61609&&0x3==_0x61bd4e){const _0xddf721=_0x3f9d72['_findSuggestions'](_0x264e25,'insertion')['filter'](({suggestion:_0x134cd3,meta:_0x46ddfe})=>_0x46ddfe['isOwn']&&'convertInlineImageToBlock'==_0x134cd3['subType']);if(_0xddf721['length']>0x1&&_0x3fb37c['end']['isEqual'](_0x264e25['start']))return!0x0;if(0x1==_0xddf721['length']&&(_0x264e25['start']['isEqual'](_0x3fb37c['end'])||_0x264e25['end']['isEqual'](_0x3fb37c['start'])))return!0x0;}if(0x3==_0xb61609&&0x3==_0x61bd4e&&_0x264e25['start']['isBefore'](_0x3fb37c['start'])){const _0x1885b=_0x264e25['end']['nodeAfter'],_0xe6bed8=_0x3fb37c['start']['nodeBefore'];return _0x286724['isBlockImage'](_0x1885b)&&_0x1885b===_0xe6bed8;}return!0x1;}function _0x53129b(_0x184d93,_0x39b498){return _0xc689e9(_0x184d93,_0x39b498)?[_0x184d93,_0x39b498]:_0xc689e9(_0x39b498,_0x184d93)?[_0x39b498,_0x184d93]:null;}_0x1677d9['plugins']['has']('ImageResize')&&(_0x3f9d72['enableDefaultAttributesIntegration']('resizeImage'),_0x3f9d72['registerBlockAttribute']('resizedWidth'),_0x3f9d72['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x476788,'FORMAT_IMAGE_SIZE'))),_0x1677d9['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3f9d72['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3f9d72['registerBlockAttribute']('alt')),_0x3f9d72['descriptionFactory']['registerDescriptionCallback'](_0x341ed6=>{if(!!_0xb45426['find'](({type:_0x19eaaf,subType:_0x157a65})=>_0x341ed6['type']==_0x19eaaf&&_0x341ed6['subType']==_0x157a65))return _0x341ed6['previous']?{}:void 0x0;}),_0x3f9d72['descriptionFactory']['registerDescriptionCallback'](_0x469140=>{if('insertion'==_0x469140['type']||'deletion'==_0x469140['type']){const _0x262acd=_0x469140['getContainedElement']();if(_0x262acd&&_0x262acd['is']('element','caption'))return{'type':'insertion'==_0x469140['type']?'addObject':'removeObject','element':_0x262acd,'quantity':0x1};}}),_0x3f9d72['descriptionFactory']['registerDescriptionCallback'](_0x55fd01=>'formatBlock'==_0x55fd01['type']&&'convertInlineImageToBlock'==_0x55fd01['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55fd01['type']&&'convertBlockImageToInline'==_0x55fd01['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3f9d72['descriptionFactory']['registerDescriptionCallback'](_0x5aa3a0=>{if('attribute'!=_0x5aa3a0['type'])return;const {data:_0x3dfe50}=_0x5aa3a0;if(!_0x3dfe50||'alt'!=_0x3dfe50['key'])return;const _0x30772f=_0x3dfe50['newValue'];return _0x30772f?{'type':'format','content':o(_0x476788,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30772f+'\x22')}:{'type':'format','content':o(_0x476788,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16bda9=this['editor'],_0x58650d=_0x16bda9['locale'];_0x16bda9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1617e5=>{if('formatBlock'!=_0x1617e5['type']&&'formatInline'!=_0x1617e5['type'])return;const {data:_0x65657f}=_0x1617e5;if(_0x65657f){if('imageTextAlternative'==_0x65657f['commandName']){const _0x43ea96=_0x65657f['commandParams'][0x0]['newValue'];return _0x43ea96?{'type':'format','content':o(_0x58650d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43ea96+'\x22')}:{'type':'format','content':o(_0x58650d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x65657f['commandName']){const _0xf333d6=_0x65657f['commandParams'][0x0]['width'];return _0xf333d6?{'type':'format','content':o(_0x58650d,'*Set\x20image\x20width:*\x20%0',_0xf333d6)}:{'type':'format','content':o(_0x58650d,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x422b73{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f51b9=this['editor']['locale'],_0x13ccf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x13ccf2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x13ccf2['registerBlockAttribute']('src'),_0x13ccf2['descriptionFactory']['registerDescriptionCallback'](_0x2820ad=>{if('attribute'!=_0x2820ad['type'])return;const {data:_0x242a80}=_0x2820ad;return _0x242a80&&'src'==_0x242a80['key']?_0x242a80['newValue']&&_0x242a80['oldValue']?{'type':'format','content':o(_0x3f51b9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19581f=this['editor']['plugins']['get']('TrackChangesEditing');_0x19581f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x19581f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19581f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x19581f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532dbd=this['editor'],_0x4b0589=_0x532dbd['locale'];_0x532dbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13a105=>{if('formatBlock'!=_0x13a105['type']&&'formatInline'!=_0x13a105['type'])return;const {data:_0x2d9ff1}=_0x13a105;if(!_0x2d9ff1||'replaceImageSource'!=_0x2d9ff1['commandName'])return;return{'type':'format','content':o(_0x4b0589,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x422b73{['afterInit'](){const _0xe99a3c=this['editor'];if(!_0xe99a3c['plugins']['has']('ImageStyleEditing'))return;const _0x12bdb6=_0xe99a3c['plugins']['get']('TrackChangesEditing'),_0x5b400a=_0xe99a3c['plugins']['get']('ImageUtils'),_0x55cf9a={};_0x12bdb6['enableCommand']('imageStyle',(_0x53e401,_0x56e2a6)=>{const _0x18e863=_0xe99a3c['plugins']['get']('Users')['me'],_0x3bf25e=_0xe99a3c['commands']['get']('imageStyle');let _0x5a907a=_0x5b400a['getClosestSelectedImageElement'](_0xe99a3c['model']['document']['selection']),_0x2a86d8=_0xe99a3c['model']['createRangeOn'](_0x5a907a),_0x3ff519=_0x3bf25e['value'];if(_0x3ff519==_0x56e2a6['value'])return;const _0x29f142={'commandName':'imageStyle','commandParams':[_0x56e2a6],'formatGroupId':_0xc0c664()};_0xe99a3c['model']['change'](()=>{if(_0x12bdb6['getSuggestions']()['filter'](_0x449e0f=>_0x449e0f['isInContent']&&_0x18e863==_0x449e0f['author']&&('formatBlock'==_0x449e0f['type']||'formatInline'==_0x449e0f['type'])&&('imageStylePreApply'==_0x449e0f['subType']||'imageStylePostApply'==_0x449e0f['subType'])&&_0x449e0f['getFirstRange']()['isEqual'](_0x2a86d8))['forEach'](_0x5a022d=>_0x12bdb6['discardSuggestion'](_0x5a022d['head'])),_0x5a907a=_0x5b400a['getClosestSelectedImageElement'](_0xe99a3c['model']['document']['selection']),_0x2a86d8=_0xe99a3c['model']['createRangeOn'](_0x5a907a),_0x3bf25e['refresh'](),_0xe99a3c['commands']['get']('imageTypeInline')['refresh'](),_0xe99a3c['commands']['get']('imageTypeBlock')['refresh'](),_0x3ff519=_0x3bf25e['value'],_0x3ff519!=_0x56e2a6['value'])return _0x5b400a['isInlineImage'](_0x5a907a)&&_0x3bf25e['shouldConvertImageType'](_0x56e2a6['value'],_0x5a907a)?(_0x53e401({..._0x56e2a6,'setImageSizes':!0x1}),_0x5a907a=_0x5b400a['getClosestSelectedImageElement'](_0xe99a3c['model']['document']['selection']),void _0x12bdb6['markBlockFormat'](_0x5a907a,{..._0x29f142,'commandReversedParams':[{'value':_0x3ff519||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5b400a['isBlockImage'](_0x5a907a)?_0x12bdb6['markBlockFormat'](_0x5a907a,_0x29f142,[],'imageStylePostApply'):_0x12bdb6['markInlineFormat'](_0x2a86d8,_0x29f142,'imageStylePostApply'));});});for(const _0x4f3db3 of _0xe99a3c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55cf9a[_0x4f3db3['name']]=_0x4f3db3['title']['toLowerCase']();_0x12bdb6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x12bdb6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x12bdb6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x12bdb6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2185b7])=>{_0x5b400a['setImageNaturalSizeAttributes'](_0x2185b7['getContainedElement']());}),_0x12bdb6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e3f5b,_0x2e9a39)=>{_0x12bdb6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e3f5b,{'commandName':_0x2e9a39['commandName'],'commandParams':_0x2e9a39['commandReversedParams']});}),_0x12bdb6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x31c3c1,_0x39e1c0){if(_0x303e6e(_0x31c3c1,_0x39e1c0))return[_0x31c3c1,_0x39e1c0];if(_0x303e6e(_0x39e1c0,_0x31c3c1))return[_0x39e1c0,_0x31c3c1];return null;});const _0x12e350=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x303e6e(_0x4ea6c0,_0x99e9e7){const _0xd5cf2=_0x12e350['findIndex'](({type:_0x175575,subType:_0x953f33})=>_0x4ea6c0['type']==_0x175575&&_0x4ea6c0['subType']==_0x953f33),_0x201f9e=_0x12e350['findIndex'](({type:_0x239578,subType:_0x2663af})=>_0x99e9e7['type']==_0x239578&&_0x99e9e7['subType']==_0x2663af);if(_0xd5cf2<0x0||_0x201f9e<0x0)return!0x1;const _0x3cdee0=_0x4ea6c0['getFirstRange'](),_0x1d1e04=_0x99e9e7['getFirstRange']();if((0x0==_0xd5cf2||0x1==_0xd5cf2)&&0x2==_0x201f9e&&_0x3cdee0['isIntersecting'](_0x1d1e04))return!0x0;if(0x2==_0xd5cf2&&0x3==_0x201f9e){const _0x4ea5b6=_0x12bdb6['_findSuggestions'](_0x3cdee0,'insertion')['filter'](({suggestion:_0x3dd98c,meta:_0xb61b57})=>_0xb61b57['isOwn']&&'convertInlineImageToBlock'==_0x3dd98c['subType']);if(_0x4ea5b6['length']>0x1&&_0x1d1e04['end']['isEqual'](_0x3cdee0['start']))return!0x0;if(0x1==_0x4ea5b6['length']&&(_0x3cdee0['start']['isEqual'](_0x1d1e04['end'])||_0x3cdee0['end']['isEqual'](_0x1d1e04['start'])))return!0x0;}if(0x3==_0xd5cf2&&0x3==_0x201f9e&&_0x3cdee0['start']['isBefore'](_0x1d1e04['start'])){const _0x1bd6a2=_0x3cdee0['end']['nodeAfter'],_0x140cbf=_0x1d1e04['start']['nodeBefore'];return _0x5b400a['isBlockImage'](_0x1bd6a2)&&_0x1bd6a2===_0x140cbf;}return!0x1;}_0xe99a3c['model']['document']['registerPostFixer'](()=>{let _0x538f71=!0x1;const _0x3d8c4d=Array['from'](_0xe99a3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc543,data:_0x11d497}of _0x3d8c4d){const {group:_0x26888c,type:_0x41632b,subType:_0x32a4b5,id:_0x1a5db5}=_0x12bdb6['_splitMarkerName'](_0x3fc543);if('suggestion'==_0x26888c&&_0x12bdb6['hasSuggestion'](_0x1a5db5)){if('formatBlock'==_0x41632b&&('imageStylePreApply'==_0x32a4b5||'imageStylePostApply'==_0x32a4b5)){const _0x3ff1ce=_0x12bdb6['getSuggestion'](_0x1a5db5);if(_0x11d497['newRange']){const _0x497ebb=_0x3ff1ce['getFirstRange']()['getContainedElement']();if(_0x5b400a['isBlockImage'](_0x497ebb))continue;_0x12bdb6['discardSuggestion'](_0x3ff1ce),_0x538f71=!0x0;}}if('insertion'==_0x41632b&&'imageCaption'==_0x32a4b5&&!_0x11d497['newRange']){const _0x2b89fb=_0x12bdb6['getSuggestion'](_0x1a5db5);_0x2b89fb['next']&&_0x2b89fb['next']['isInContent']&&(_0x12bdb6['discardSuggestion'](_0x2b89fb['next']),_0x538f71=!0x0);}}}return _0x538f71;}),this['_registerLegacyDescription'](_0x55cf9a);}['_registerLegacyDescription'](_0x44e5a4){const _0x28eb69=this['editor'],_0x25f8af=_0x28eb69['locale'];_0x28eb69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc895fe=>{if('formatBlock'!=_0xc895fe['type']&&'formatInline'!=_0xc895fe['type'])return;const {data:_0xaaca55}=_0xc895fe;if(!_0xaaca55||'imageStyle'!=_0xaaca55['commandName'])return;const _0x1c364a=_0xaaca55['commandParams'][0x0]['value'];return _0x4c78a5('side'===_0x1c364a?o(_0x25f8af,'FORMAT_SIDE_IMAGE'):_0x44e5a4[_0x1c364a]||_0x1c364a);function _0x4c78a5(_0xa2e2f4){return{'type':'format','content':o(_0x25f8af,'*Format:*\x20%0',_0xa2e2f4)};}});}}class at extends _0x422b73{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c0b1b){super(_0x5c0b1b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3fa3e9=this['editor'],_0x1836e4=_0x3fa3e9['commands']['get']('importWord'),_0x54ba19=_0x3fa3e9['commands']['get']('trackChanges');_0x1836e4&&(_0x1836e4['on']('execute',(_0x33766d,[,_0x2a39ac])=>{this['_trackChangesValueDuringImport']=_0x54ba19['value'],_0x2a39ac['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1836e4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1836e4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54ba19['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3fa3e9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48c34a,_0x5b5a4e){const {suggestions:_0x474a29}=_0x5b5a4e,_0x2ec555=this['editor']['commands']['get']('trackChanges'),_0x138bf4=_0x2ec555['value'];this['_trackChangesValueDuringImport']!==_0x138bf4&&(_0x2ec555['execute'](),this['_trackChangesExecuted']=!0x0),_0x474a29&&_0x474a29['forEach'](({id:_0x44d55b,type:_0xb427b2,author:_0x5aaa93,created_at:_0x39fea2})=>{const _0x431ce7={'id':_0x44d55b,'type':_0xb427b2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5aaa93,'createdAt':_0x39fea2?new Date(_0x39fea2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x431ce7);});}}class ct extends _0x422b73{['afterInit'](){const _0x18836e=this['editor'],_0x530228=_0x18836e['plugins']['get']('TrackChangesEditing');if(_0x18836e['plugins']['has']('IndentEditing')&&(_0x530228['enableCommand']('indent'),_0x530228['enableCommand']('outdent')),_0x18836e['plugins']['has']('IndentBlock')){for(const _0xc088db of['indentBlock','outdentBlock'])_0x530228['enableDefaultAttributesIntegration'](_0xc088db);}const _0x2347c6=_0x18836e['locale'];_0x530228['registerBlockAttribute']('blockIndent'),_0x530228['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2347c6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34e44d=this['editor'],_0x15f059=_0x34e44d['locale'],_0x395b0f=_0x34e44d['plugins']['get']('TrackChangesEditing');_0x395b0f['descriptionFactory']['registerDescriptionCallback'](_0xdfdf6=>{if('formatBlock'!=_0xdfdf6['type'])return;const {data:_0xbd48d7}=_0xdfdf6;if(!_0xbd48d7)return;if('indentBlock'!=_0xbd48d7['commandName']&&'outdentBlock'!=_0xbd48d7['commandName'])return;const _0x56687b=_0xdfdf6['getItems']()[0x0],_0x3538ff=_0x395b0f['descriptionFactory']['getItemLabel'](_0x56687b);return'indentBlock'==_0xbd48d7['commandName']?{'type':'format','content':o(_0x15f059,'*Indent:*\x20%0',_0x3538ff)}:'outdentBlock'==_0xbd48d7['commandName']?{'type':'format','content':o(_0x15f059,'*Outdent:*\x20%0',_0x3538ff)}:void 0x0;});}}class ut extends _0x422b73{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x422b73{['afterInit'](){const _0x31baf3=this['editor'];if(!_0x31baf3['plugins']['has']('LinkEditing'))return;const _0x522c1b=_0x31baf3['plugins']['get']('TrackChangesEditing'),_0x11f05f=_0x31baf3['commands']['get']('link');_0x522c1b['enableDefaultAttributesIntegration']('link'),_0x522c1b['enableDefaultAttributesIntegration']('unlink'),_0x522c1b['registerInlineAttribute']('linkHref');for(const _0x20fd99 of _0x11f05f['manualDecorators'])_0x522c1b['registerInlineAttribute'](_0x20fd99['id']),_0x522c1b['descriptionFactory']['registerAttributeLabel'](_0x20fd99['id'],'link\x20('+_0x20fd99['label']['toLowerCase']()+')');_0x522c1b['descriptionFactory']['registerDescriptionCallback'](_0x129524=>{if('attribute'!=_0x129524['type'])return;const {data:_0x597d83}=_0x129524;if(!_0x597d83||'linkHref'!=_0x597d83['key'])return;const _0x31ac7f=_0x597d83['newValue'],_0x4dc840=_0x31baf3['locale'];return{'type':'format','content':null==_0x31ac7f?o(_0x4dc840,'*Remove\x20link*'):o(_0x4dc840,'*Set\x20link:*\x20%0','\x22'+_0x31ac7f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x135c16=this['editor'],_0x251bc5=_0x135c16['locale'];_0x135c16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27a911=>{if('formatInline'!=_0x27a911['type'])return;const {data:_0x450047}=_0x27a911;if(_0x450047){if('link'==_0x450047['commandName']){const _0x57cadd=_0x450047['commandParams'][0x0];return{'type':'format','content':o(_0x251bc5,'*Set\x20link:*\x20%0','\x22'+_0x57cadd+'\x22')};}return'unlink'==_0x450047['commandName']?{'type':'format','content':o(_0x251bc5,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x422b73{['afterInit'](){const _0x14b0b1=this['editor'],_0x260a20=_0x14b0b1['locale'];if(!_0x14b0b1['plugins']['has']('LegacyListEditing'))return;const _0x1b0330=_0x14b0b1['plugins']['get']('TrackChangesEditing'),_0x3e51b6=_0x14b0b1['plugins']['has']('LegacyTodoListEditing');function _0x3301d6(_0x2f4567){return()=>{const _0x5173a7=_0x14b0b1['model']['document']['selection'],_0x1109c0=_0x14b0b1['commands']['get'](_0x2f4567);if(_0x1109c0['value'])return void _0x14b0b1['execute']('paragraph',{});const _0x28feaa=_0x2f4567['slice'](0x0,-0x4),_0x3553bf=function(_0x491767,_0x46fd78,_0x4df1c8){let _0x1cb8ad=Array['from'](_0x491767)['filter'](_0xc6d500=>function(_0x295035,_0x1bce2b){return _0x1bce2b['checkChild'](_0x295035['parent'],'listItem')&&!_0x1bce2b['isObject'](_0x295035);}(_0xc6d500,_0x4df1c8));_0x1cb8ad=_0x1cb8ad['filter'](_0x6dc7d4=>!_0x6dc7d4['is']('element','listItem')||_0x6dc7d4['getAttribute']('listType')!=_0x46fd78);const _0x4f7f1a=new Set();for(const _0x38bb8d of _0x1cb8ad)_0x38bb8d['is']('element','listItem')?_0x4f7f1a['add'](fe(_0x38bb8d)):_0x4f7f1a['add'](_0x38bb8d);return Array['from'](_0x4f7f1a);}(_0x5173a7['getSelectedBlocks'](),_0x28feaa,_0x14b0b1['model']['schema']);_0x14b0b1['model']['change'](()=>{for(const _0x4ed3bc of _0x3553bf)_0x1b0330['markBlockFormat'](_0x4ed3bc,{'commandName':_0x2f4567,'commandParams':[{'forceValue':!_0x1109c0['value']}],'formatGroupId':'blockName'},ue(_0x4ed3bc));});};}function _0x4f9382(_0x1499e8){return()=>{const _0x18faf3=function(_0x28f362){let _0x500d2b=Array['from'](_0x28f362);const _0x3c2191=_0x500d2b['findIndex'](_0x50f80a=>'listItem'!=_0x50f80a['name']);return _0x3c2191>-0x1&&(_0x500d2b=_0x500d2b['slice'](0x0,_0x3c2191)),_0x500d2b;}(_0x14b0b1['model']['document']['selection']['getSelectedBlocks']()),_0x20c306=_0x14b0b1['model']['createRange'](_0x14b0b1['model']['createPositionAt'](_0x18faf3[0x0],'before'),_0x14b0b1['model']['createPositionAt'](_0x18faf3[_0x18faf3['length']-0x1],'end'));_0x14b0b1['model']['change'](()=>{_0x1b0330['markBlockFormat'](_0x20c306,{'commandName':_0x1499e8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x327b99){const _0x2a5bb8=new Set();for(const _0x58a0c6 of _0x327b99){let _0x1bb4cc=_0x58a0c6['nextSibling'];for(;_0x1bb4cc&&_0x1bb4cc['getAttribute']('listIndent')>_0x58a0c6['getAttribute']('listIndent');)_0x2a5bb8['add'](_0x1bb4cc),_0x1bb4cc=_0x1bb4cc['nextSibling'];}return Array['from'](_0x2a5bb8);}(_0x18faf3));});};}_0x1b0330['enableCommand']('numberedList',_0x3301d6('numberedList')),_0x1b0330['enableCommand']('bulletedList',_0x3301d6('bulletedList')),_0x3e51b6&&_0x1b0330['enableCommand']('todoList',_0x3301d6('todoList')),_0x1b0330['enableCommand']('indentList',_0x4f9382('indentList')),_0x1b0330['enableCommand']('outdentList',_0x4f9382('outdentList')),_0x3e51b6&&_0x1b0330['enableCommand']('checkTodoList',()=>{const _0x5b0089=_0x14b0b1['commands']['get']('checkTodoList'),_0x1f9e9e=Array['from'](_0x5b0089['_selectedElements']);_0x1f9e9e['filter'](_0x253a28=>_0x253a28['getAttribute']('todoListChecked')!=_0x5b0089['value']),_0x14b0b1['model']['change'](()=>{for(const _0x48d96e of _0x1f9e9e)_0x1b0330['markBlockFormat'](_0x48d96e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5b0089['value']}]});});}),_0x1b0330['descriptionFactory']['registerElementLabel']('listItem',_0x4ae151=>o(_0x260a20,'ELEMENT_LIST_ITEM',_0x4ae151)),_0x1b0330['descriptionFactory']['registerDescriptionCallback'](_0x58073a=>{if('formatBlock'!=_0x58073a['type']&&'formatInline'!=_0x58073a['type'])return;const {data:_0x24df71}=_0x58073a;if(_0x24df71){if('numberedList'==_0x24df71['commandName']||'bulletedList'==_0x24df71['commandName']||'todoList'==_0x24df71['commandName'])switch(_0x24df71['commandName']['replace']('List','')){case'bulleted':return _0xb52a3b(o(_0x260a20,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb52a3b(o(_0x260a20,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb52a3b(o(_0x260a20,'ELEMENT_TODO_LIST'));}if('indentList'==_0x24df71['commandName'])return{'type':'format','content':o(_0x260a20,'*Indent:*\x20%0',o(_0x260a20,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x24df71['commandName'])return{'type':'format','content':o(_0x260a20,'*Outdent:*\x20%0',o(_0x260a20,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x24df71['commandName'])return _0x24df71['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x260a20,'*Check\x20item*')}:{'type':'format','content':o(_0x260a20,'*Uncheck\x20item*')};}function _0xb52a3b(_0x35fed7){return{'type':'format','content':o(_0x260a20,'*Change\x20to:*\x20%0',_0x35fed7)};}});}}function fe(_0x384e95){const _0x5b68c1=_0x384e95['getAttribute']('listIndent');if(0x0==_0x5b68c1)return _0x384e95;let _0x5a319d=_0x384e95;for(;_0x384e95['previousSibling']&&_0x384e95['previousSibling']['is']('element','listItem');){const _0xf2b8cd=_0x384e95['previousSibling']['getAttribute']('listIndent');if(_0xf2b8cd==_0x5b68c1)_0x5a319d=_0x384e95['previousSibling'];else{if(_0xf2b8cd<_0x5b68c1)break;}_0x384e95=_0x384e95['previousSibling'];}return _0x5a319d;}function ue(_0x3e2621){const _0x35adf7=[];if(_0x3e2621['is']('element','listItem')&&_0x3e2621['getAttribute']('listIndent')>0x0){let _0x5360c5=_0x3e2621['nextSibling'];for(;_0x5360c5&&'listItem'==_0x5360c5['name']&&_0x5360c5['getAttribute']('listIndent')==_0x3e2621['getAttribute']('listIndent');)_0x35adf7['push'](_0x5360c5),_0x5360c5=_0x5360c5['nextSibling'];}return _0x35adf7;}class W extends _0x422b73{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x78074e=this['editor']['config']['get']('list.properties'),_0x221249=this['editor']['plugins']['get']('TrackChangesEditing');_0x78074e['styles']&&_0x221249['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x78074e['reversed']&&_0x221249['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x78074e['startIndex']&&_0x221249['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x221249['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x39d54b,_0x3759a4={}){const _0x1ebfc8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x136437=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ebfc8['markMultiRangeBlockFormat'](_0x136437,{'commandName':'listStyle','commandParams':[{'type':_0x3759a4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23d950,_0x24913b={}){const _0x12b1e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a2a54=this['_getSuggestionBlocks'](_0x1e050c=>_0x1e050c['is']('element','listItem')&&'numbered'===_0x1e050c['getAttribute']('listType'));if(_0x1a2a54['length']<0x1)return;const _0x435b78=_0x1a2a54['map'](_0x24a381=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24a381,'before'),this['editor']['model']['createPositionAt'](_0x24a381,0x0)));this['editor']['model']['change'](()=>{_0x12b1e2['markMultiRangeBlockFormat'](_0x435b78,{'commandName':'listReversed','commandParams':[{'reversed':_0x24913b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5c83ea,_0x293fdb={}){const _0x5c3b8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x539724=this['_getSuggestionBlocks'](_0x47ef58=>_0x47ef58['is']('element','listItem')&&'numbered'===_0x47ef58['getAttribute']('listType'));if(_0x539724['length']<0x1)return;const _0x24076e=_0x539724['map'](_0x1a6f4d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a6f4d,'before'),this['editor']['model']['createPositionAt'](_0x1a6f4d,0x0)));this['editor']['model']['change'](()=>{_0x5c3b8b['markMultiRangeBlockFormat'](_0x24076e,{'commandName':'listStart','commandParams':[{'startIndex':_0x293fdb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47db65){if('formatBlock'!=_0x47db65['type']&&'formatInline'!=_0x47db65['type'])return;const _0x38749c=this['editor']['locale'],{data:_0x2f75d0}=_0x47db65;if(!_0x2f75d0)return;let _0x539af4,_0xe772db;switch(_0x2f75d0['commandName']){case'listStyle':_0x539af4='*Change\x20to:*\x20%0',_0xe772db={'type':'format','content':o(_0x38749c,_0x539af4,o(_0x38749c,this['_getTranslationKeyForListStyle'](_0x2f75d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x539af4=_0x2f75d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe772db={'type':'format','content':o(_0x38749c,_0x539af4)};break;case'listStart':_0x539af4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe772db={'type':'format','content':o(_0x38749c,_0x539af4,_0x2f75d0['commandParams'][0x0]['startIndex'])};}return _0xe772db;}['_getSuggestionBlocksForListStyle'](){const _0x2e62ab=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ebd8c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2ebd8c[0x0]?.['is']('element','listItem')&&_0x2ebd8c['unshift'](..._0x2e62ab['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2ebd8c[_0x2ebd8c['length']-0x1]?.['is']('element','listItem')&&_0x2ebd8c['push'](..._0x2e62ab['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2ebd8c=[...new Set(_0x2ebd8c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2ebd8c=_0x2ebd8c['filter'](_0x45b853=>_0x45b853['is']('element','listItem'))),_0x2ebd8c;}['_getSuggestionBlocks'](_0x35d46e){const _0x37dd16=this['editor']['plugins']['get']('LegacyListUtils');let _0x53b27c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x35d46e)['map'](_0x306b1f=>{const _0x4fff56=this['editor']['model']['createPositionAt'](_0x306b1f,0x0);return[..._0x37dd16['getSiblingNodes'](_0x4fff56,'backward'),..._0x37dd16['getSiblingNodes'](_0x4fff56,'forward')];})['flat']();return _0x53b27c=[...new Set(_0x53b27c)],_0x53b27c;}['_getTranslationKeyForListStyle'](_0x39502a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39502a)||'default')['toUpperCase']()+'_LIST_'+_0x39502a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x422b73{['afterInit'](){const _0x3830b4=this['editor'];if(!_0x3830b4['plugins']['has']('MediaEmbedEditing'))return;const _0xe87570=_0x3830b4['plugins']['get']('TrackChangesEditing'),_0x585a01=_0x3830b4['locale'];_0xe87570['enableCommand']('mediaEmbed'),_0xe87570['descriptionFactory']['registerElementLabel']('media',_0x198dc8=>o(_0x585a01,'ELEMENT_MEDIA',_0x198dc8)),_0x3830b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x232262,{writer:_0x2d26a0,options:_0x4c7184})=>{if(_0x4c7184['showSuggestionHighlights'])return _0x2d26a0['createEmptyElement']('div');},'converterPriority':'high'}),_0x3830b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x24d760,_0x2b411a,_0x138f64)=>{_0x138f64['options']['showSuggestionHighlights']&&_0x24d760['stop']();},{'priority':'high'});}}class mt extends _0x422b73{['afterInit'](){const _0x3a5491=this['editor'];_0x3a5491['plugins']['has']('MentionEditing')&&_0x3a5491['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x422b73{['afterInit'](){const _0x34675e=this['editor'];if(!_0x34675e['plugins']['has']('MergeFieldsEditing'))return;_0x34675e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x34675e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xee55f9=_0x34675e['plugins']['get']('TrackChangesEditing'),_0x5cdb3d=_0x34675e['locale'];_0xee55f9['descriptionFactory']['registerElementLabel']('mergeField',_0x20682b=>o(_0x5cdb3d,'ELEMENT_MERGE_FIELD',_0x20682b)),_0xee55f9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3de24a=>o(_0x5cdb3d,'ELEMENT_MERGE_FIELD',_0x3de24a)),_0xee55f9['descriptionFactory']['registerDescriptionCallback'](_0x1a0473=>{if('insertion'!=_0x1a0473['type']&&'deletion'!=_0x1a0473['type'])return;const _0x1662c4=_0x1a0473['getContainedElement']();if(null==_0x1662c4)return;if(!_0x1662c4['is']('element','mergeField')&&!_0x1662c4['is']('element','mergeFieldBlock'))return;const _0x31ed23=_0x34675e['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1662c4['getAttribute']('id'));return'insertion'==_0x1a0473['type']?{'type':'insertion','content':o(_0x5cdb3d,'*Insert:*\x20%0','\x22'+_0x31ed23+'\x22\x20'+o(_0x5cdb3d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5cdb3d,'*Remove:*\x20%0','\x22'+_0x31ed23+'\x22\x20'+o(_0x5cdb3d,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x422b73{['afterInit'](){const _0x538f17=this['editor'],_0x9a229c=_0x538f17['plugins']['get']('TrackChangesEditing');_0x538f17['plugins']['has']('MultiLevelList')&&(_0x9a229c['enableDefaultAttributesIntegration']('multiLevelList'),_0x9a229c['registerBlockAttribute']('listMarkerStyle'),_0x9a229c['descriptionFactory']['registerDescriptionCallback'](_0x4ba063=>this['handleDescriptions'](_0x4ba063)));}['handleDescriptions'](_0x4e937b){const _0x58fe06=this['editor']['locale'],{data:_0x38e70b}=_0x4e937b,_0x561f6b={'type':'format','content':''};if(_0x38e70b&&'listMarkerStyle'==_0x38e70b['key']){if(!_0x38e70b['oldValue'])return{'type':'format','content':o(_0x58fe06,'*Set\x20format:*\x20%0',o(_0x58fe06,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38e70b['newValue']+')'};if(!_0x38e70b['newValue']){let _0x4ac0d1=_0x4e937b['head'];for(;_0x4ac0d1;){if(_0x4ac0d1['data']&&'listType'==_0x4ac0d1['data']['key']&&_0x4ac0d1['data']['newValue'])return _0x561f6b;_0x4ac0d1=_0x4ac0d1['next'];}return{'type':'format','content':o(_0x58fe06,'*Remove\x20format:*\x20%0',o(_0x58fe06,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38e70b['oldValue']+')'};}}}}class kt extends _0x422b73{['afterInit'](){const _0x47f9d6=this['editor'];if(!_0x47f9d6['plugins']['has']('PageBreakEditing'))return;_0x47f9d6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f607c=_0x47f9d6['plugins']['get']('TrackChangesEditing'),_0x57817e=_0x47f9d6['locale'];_0x4f607c['descriptionFactory']['registerElementLabel']('pageBreak',_0x1879b5=>o(_0x57817e,'ELEMENT_PAGE_BREAK',_0x1879b5));}}class bt extends _0x422b73{['afterInit'](){const _0x3c36e3=this['editor'];if(!_0x3c36e3['plugins']['has']('Paragraph'))return;const _0x4356dd=_0x3c36e3['locale'],_0x1d2053=_0x3c36e3['plugins']['get']('TrackChangesEditing');_0x1d2053['descriptionFactory']['registerElementLabel']('paragraph',_0xfa773e=>o(_0x4356dd,'ELEMENT_PARAGRAPH',_0xfa773e)),_0x1d2053['enableDefaultAttributesIntegration']('paragraph'),_0x1d2053['enableCommand']('insertParagraph'),_0x3c36e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3c36e3),{'priority':'highest'}),_0x3c36e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb430af,_0x46d8df,_0x2d6901)=>{_0x2d6901['options']['showSuggestionHighlights']&&nr(_0x3c36e3,{'showActiveMarker':!0x1})(_0xb430af,_0x46d8df,_0x2d6901);},{'priority':'highest'});const _0x1990b8=_0x1d2053['descriptionFactory'];_0x1990b8['registerDescriptionCallback'](_0x5a4562=>{if('insertion'!==_0x5a4562['type'])return;const {start:_0x5c5488,end:_0xa7ef7e}=_0x5a4562['getFirstRange']();if(!_0x5c5488['isTouching'](_0xa7ef7e)||!_0x5c5488['nodeAfter'])return;const _0x38437d=_0x3c36e3['model']['schema'],_0x520cc9=_0x5c5488['nodeAfter'];return _0x38437d['isBlock'](_0x520cc9)&&!_0x38437d['isLimit'](_0x520cc9)&&_0x38437d['checkChild'](_0x520cc9,'$text')?{'type':'insertion','content':o(_0x4356dd,'*Insert:*\x20%0',_0x1990b8['getItemLabel'](_0x520cc9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273407=this['editor'],_0x34ffde=_0x273407['locale'];_0x273407['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ab62=>{if('formatBlock'!=_0x17ab62['type'])return;const {data:_0x3cd197}=_0x17ab62;return _0x3cd197&&'paragraph'==_0x3cd197['commandName']?{'type':'format','content':o(_0x34ffde,'*Change\x20to:*\x20%0',o(_0x34ffde,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x535437,{showActiveMarker:_0x1d8db7=!0x0}={}){return(_0x33343a,_0x38c01b,_0xa13d3e)=>{const _0x5eb265=_0x535437['plugins']['get']('TrackChangesEditing'),_0x12928f=_0x38c01b['markerRange']['start'],_0x3dab46=_0x38c01b['markerRange']['end'],_0xf74f15=_0x535437['model']['schema'];if(!_0x12928f['isTouching'](_0x3dab46)||!_0x12928f['nodeAfter'])return;const _0x6ddb33=_0x12928f['nodeAfter'];if(_0xf74f15['isBlock'](_0x6ddb33)&&!_0xf74f15['isLimit'](_0x6ddb33)&&_0xf74f15['checkChild'](_0x6ddb33,'$text')){if(!_0xa13d3e['consumable']['consume'](_0x38c01b['markerRange'],_0x33343a['name']))return;const {authorId:_0xa1abb9}=_0x5eb265['_splitMarkerName'](_0x38c01b['markerName']),_0x202f6f=_0xa13d3e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xa1abb9}),_0x3d5b04=_0xa13d3e['mapper']['toViewPosition'](_0x3dab46);_0x1d8db7&&_0x5eb265['activeMarkers']['includes'](_0x38c01b['markerName'])&&_0xa13d3e['writer']['addClass']('ck-suggestion-marker--active',_0x202f6f),_0xa13d3e['writer']['insert'](_0x3d5b04,_0x202f6f),_0xa13d3e['mapper']['bindElementToMarker'](_0x202f6f,_0x38c01b['markerName']);}};}class wt extends _0x422b73{['afterInit'](){const _0x328999=this['editor'];if(!_0x328999['plugins']['has']('RemoveFormatEditing'))return;_0x328999['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x745d91=this['editor'];_0x745d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42fd82=>{if('formatBlock'!=_0x42fd82['type']&&'formatInline'!=_0x42fd82['type'])return;const {data:_0x1084eb}=_0x42fd82;return _0x1084eb&&'removeFormat'==_0x1084eb['commandName']?{'type':'format','content':o(_0x745d91['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x422b73{['afterInit'](){const _0x1bad23=this['editor'];if(!_0x1bad23['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x7078ca=_0x1bad23['plugins']['get']('TrackChangesEditing');_0x7078ca['enableCommand']('goToPreviousRestrictedEditingException'),_0x7078ca['enableCommand']('goToNextRestrictedEditingException');const _0x33efd4=_0x1bad23['plugins']['get']('RestrictedEditingModeEditing');_0x33efd4['enableCommand']('trackChanges'),_0x33efd4['enableCommand']('acceptSuggestion'),_0x33efd4['enableCommand']('discardSuggestion'),_0x33efd4['enableCommand']('acceptAllSuggestions'),_0x33efd4['enableCommand']('discardAllSuggestions'),_0x33efd4['enableCommand']('acceptSelectedSuggestions'),_0x33efd4['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x422b73{static get['requires'](){return[_0x4fe684];}['init'](){const _0x190f39=this['editor'],_0x1f21f6=_0x190f39['plugins']['get']('TrackChangesEditing');_0x1f21f6['enableCommand']('shiftEnter'),_0x190f39['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x190f39),{'priority':'high'}),_0x190f39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x190f39),{'priority':'high'}),_0x190f39['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26b5a2,_0x4166e1,_0x658119)=>{_0x658119['options']['showSuggestionHighlights']&&ge(_0x190f39,{'showActiveMarker':!0x1})(_0x26b5a2,_0x4166e1,_0x658119);}),_0x1f21f6['descriptionFactory']['registerElementLabel']('softBreak',_0x2e5f7a=>o(_0x190f39['locale'],'ELEMENT_LINE_BREAK',_0x2e5f7a));}}function ge(_0x515aa6,{showActiveMarker:_0x40fb75=!0x0}={}){return(_0x4bcf44,_0x11397e,_0x57633e)=>{const _0xef593a=_0x515aa6['plugins']['get']('TrackChangesEditing');if(!_0x57633e['consumable']['test'](_0x11397e['markerRange'],_0x4bcf44['name']))return;const _0x21fcb3=_0x515aa6['model'];for(const _0x44cca3 of _0x11397e['markerRange']['getItems']()){if(!_0x44cca3['is']('element','softBreak'))continue;const _0x3c4d3b='deletion'==_0x11397e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3c872d}=_0xef593a['_splitMarkerName'](_0x11397e['markerName']),_0x4a3011=_0x57633e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c4d3b,'data-author-id':_0x3c872d}),_0x59ea6a=_0x57633e['mapper']['toViewPosition'](_0x21fcb3['createPositionBefore'](_0x44cca3));_0x40fb75&&_0xef593a['activeMarkers']['includes'](_0x11397e['markerName'])&&_0x57633e['writer']['addClass']('ck-suggestion-marker--active',_0x4a3011),_0x57633e['writer']['insert'](_0x59ea6a,_0x4a3011),_0x57633e['mapper']['bindElementToMarker'](_0x4a3011,_0x11397e['markerName']);}};}class St extends _0x422b73{['afterInit'](){const _0x160274=this['editor'],_0x5b21ec=_0x160274['model'],_0x122df0=_0x160274['locale'];if(!_0x160274['plugins']['has']('StandardEditingModeEditing'))return;const _0x284806=_0x160274['plugins']['get']('TrackChangesEditing'),_0x4f430a='restrictedEditingException',_0x2309be=_0x160274['commands']['get'](_0x4f430a);_0x284806['enableCommand'](_0x4f430a,(_0x41c378,_0x26e112={})=>{const _0x18252a=_0x5b21ec['document']['selection'];if(_0x18252a['isCollapsed'])return void _0x41c378(_0x26e112);const _0x52adac=void 0x0!==_0x26e112['forceValue']?_0x26e112['forceValue']:!_0x2309be['value'];_0x5b21ec['change'](()=>{const _0x245f5a=Array['from'](_0x18252a['getRanges']());for(const _0x3af2d1 of _0x245f5a){const _0xb174f7=_0x52adac?[_0x3af2d1]:io(_0x4f430a,_0x3af2d1,_0x5b21ec);for(const _0xb1edb2 of _0xb174f7)_0x284806['markInlineFormat'](_0xb1edb2,{'commandName':_0x4f430a,'commandParams':[{'forceValue':_0x52adac}]});}});}),_0x284806['descriptionFactory']['registerDescriptionCallback'](_0x353cba=>{if('formatBlock'!=_0x353cba['type']&&'formatInline'!=_0x353cba['type'])return;const {data:_0x47ff1a}=_0x353cba;return _0x47ff1a&&_0x47ff1a['commandName']==_0x4f430a?_0x47ff1a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x122df0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x122df0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x422b73{['afterInit'](){const _0x97b69=this['editor'];if(!_0x97b69['plugins']['has']('Style')||!_0x97b69['plugins']['has']('DataSchema'))return;const _0x373ce3=_0x97b69['plugins']['get']('TrackChangesEditing'),_0x35395b=_0x97b69['locale'],_0x11ba89=_0x97b69['config']['get']('style')||{},_0x5cc518=_0x97b69['plugins']['get']('GeneralHtmlSupport'),_0x4f4903=_0x97b69['plugins']['get']('StyleUtils')['normalizeConfig'](_0x97b69['plugins']['get']('DataSchema'),_0x11ba89['definitions']);_0x373ce3['enableDefaultAttributesIntegration']('style');const _0xa16f06=new Set();for(const _0xb5a3cd of _0x4f4903['block']){const _0x364635=_0x5cc518['getGhsAttributeNameForElement'](_0xb5a3cd['element']);_0xa16f06['add'](_0x364635);}const _0x4b1b0f=new Set();for(const _0x57eed6 of _0x4f4903['inline']){const _0x2844e9=_0x5cc518['getGhsAttributeNameForElement'](_0x57eed6['element']);_0x4b1b0f['add'](_0x2844e9);for(const _0x35226f of _0x57eed6['ghsAttributes'])_0x4b1b0f['add'](_0x35226f);}for(const _0x5a376a of _0xa16f06)_0x373ce3['registerBlockAttribute'](_0x5a376a),_0x373ce3['descriptionFactory']['registerAttributeLabel'](_0x5a376a,o(_0x35395b,'FORMAT_STYLE'));for(const _0x659d5 of _0x4b1b0f)_0x373ce3['registerInlineAttribute'](_0x659d5),_0x373ce3['descriptionFactory']['registerAttributeLabel'](_0x659d5,o(_0x35395b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x127cb9=this['editor'],_0xee1908=_0x127cb9['locale'];_0x127cb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d74e5=>{if('formatBlock'!=_0x2d74e5['type']&&'formatInline'!=_0x2d74e5['type'])return;const {data:_0x191dce}=_0x2d74e5;return _0x191dce&&'style'===_0x191dce['commandName']?_0x191dce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xee1908,'*Set\x20format:*\x20%0',_0x191dce['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xee1908,'*Remove\x20format:*\x20%0',_0x191dce['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x422b73{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x34cd65){super(_0x34cd65),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x535e17=this['editor'],_0x40ea83=_0x535e17['model']['document']['selection'];if(!_0x535e17['plugins']['has']('TableEditing'))return;const _0x56aadb=_0x535e17['locale'],_0x402c93=_0x535e17['plugins']['get']('TrackChangesEditing'),_0x51ab34=_0x535e17['plugins']['get']('TableUtils');_0x402c93['descriptionFactory']['registerElementLabel']('table',_0x36a40a=>o(_0x56aadb,'ELEMENT_TABLE',_0x36a40a)),this['_setupColumnsRowsFixing'](),_0x402c93['enableCommand']('insertTable'),_0x402c93['enableCommand']('selectTableRow'),_0x402c93['enableCommand']('selectTableColumn');for(const _0x46b03f of['insertTableRowAbove','insertTableRowBelow']){const _0x258013=_0x535e17['commands']['get'](_0x46b03f);_0x402c93['enableCommand'](_0x46b03f,_0x1575af=>{_0x535e17['model']['change'](_0x262d6a=>{_0x1575af();const _0x243291='above'===_0x258013['order'],_0x5b7d0f=_0x51ab34['getSelectionAffectedTableCells'](_0x40ea83),_0x4a325c=_0x51ab34['getRowIndexes'](_0x5b7d0f),_0x50318c=_0x243291?_0x4a325c['first']-0x1:_0x4a325c['last']+0x1,_0x4738eb=_0x5b7d0f[0x0]['findAncestor']('table'),_0x4991e4=_0x51ab34['createTableWalker'](_0x4738eb,{'startRow':_0x50318c,'endRow':_0x50318c}),_0x20bc2c=Array['from'](_0x4991e4)['map'](_0x59b345=>_0x262d6a['createRangeOn'](_0x59b345['cell']));_0x402c93['markMultiRangeInsertion'](_0x20bc2c,'tableRow');});});}for(const _0x22b20c of['insertTableColumnLeft','insertTableColumnRight']){const _0x189fae=_0x535e17['commands']['get'](_0x22b20c);_0x402c93['enableCommand'](_0x22b20c,_0x5ec0bd=>{_0x535e17['model']['change'](_0x1d6a87=>{_0x5ec0bd();const _0xf9b558='left'===_0x189fae['order'],_0x34b18f=_0x51ab34['getSelectionAffectedTableCells'](_0x40ea83),_0x1878c0=_0x51ab34['getColumnIndexes'](_0x34b18f),_0x318af8=_0xf9b558?_0x1878c0['first']-0x1:_0x1878c0['last']+0x1,_0x552b83=_0x34b18f[0x0]['findAncestor']('table'),_0xf5b432=_0x51ab34['createTableWalker'](_0x552b83,{'startRow':0x0,'column':_0x318af8,'includeAllSlots':!0x1}),_0x2e80c2=Array['from'](_0xf5b432)['map'](_0x373395=>_0x1d6a87['createRangeOn'](_0x373395['cell']));_0x402c93['markMultiRangeInsertion'](_0x2e80c2,'tableColumn');});});}for(const _0x27ba45 of['removeTableRow','removeTableColumn']){const _0x20aa21=_0x27ba45['substr'](0xb),_0xbd00ab=_0x20aa21['toLowerCase'](),_0x4530d8=_0xbd00ab['substr'](0x0,0x3)+'span',_0x271c7e='table'+_0x20aa21,_0x49e7b1='min'+_0x20aa21,_0x4beda9='max'+_0x20aa21;_0x402c93['enableCommand'](_0x27ba45,()=>{_0x535e17['model']['change'](_0x380f78=>{const _0x3e85cd=_0x51ab34['getSelectionAffectedTableCells'](_0x40ea83),_0x2bd84a=_0x3e85cd[0x0]['findAncestor']('table');let _0x3bdab6;if('removeTableRow'==_0x27ba45){const _0x4f28b5=_0x51ab34['getRowIndexes'](_0x3e85cd);_0x3bdab6={'startRow':_0x4f28b5['first'],'endRow':_0x4f28b5['last'],'includeAllSlots':!0x0};}else{const _0x51f075=_0x51ab34['getColumnIndexes'](_0x3e85cd);_0x3bdab6={'startColumn':_0x51f075['first'],'endColumn':_0x51f075['last'],'includeAllSlots':!0x0};}const _0x21f605=_0x51ab34['createTableWalker'](_0x2bd84a,_0x3bdab6),_0x4de929=Array['from'](_0x21f605)['map'](({cell:_0x5671b2})=>_0x5671b2),_0x4ba61a=be(_0x4de929['filter'](_0x358191=>_0x358191['hasAttribute'](_0x4530d8))),_0x387c49=be(_0x4de929['filter'](_0x1065cd=>!_0x1065cd['hasAttribute'](_0x4530d8)))['map'](_0x5ed714=>_0x380f78['createRangeOn'](_0x5ed714)),_0x12f402=_0x402c93['markMultiRangeDeletion'](_0x387c49,_0x271c7e);if(_0x12f402&&('tableRow'==_0x12f402['subType']||'tableColumn'==_0x12f402['subType'])){const _0x3db4e0=this['_getSuggestionCoords'](_0x12f402);for(const _0x35c31d of _0x4ba61a){const _0x540682=_0x380f78['createRangeOn'](_0x35c31d),_0x15473f=_0x51ab34['getCellLocation'](_0x35c31d),_0x3e12ca=_0x35c31d['getAttribute'](_0x4530d8)-0x1,_0x58251e=_0x3db4e0[_0x49e7b1],_0xfffb2a=_0x3db4e0[_0x4beda9];_0x58251e<=_0x15473f[_0xbd00ab]&&_0x15473f[_0xbd00ab]+_0x3e12ca<=_0xfffb2a&&_0x12f402['addRange'](_0x540682);}}});});}function _0x368de5(_0x1318bf){const _0x4eb14c=Array['from'](_0x40ea83['getRanges']())['map'](_0xce8a8e=>_0x5118bb['fromRange'](_0xce8a8e));_0x535e17['model']['change'](_0x5c806e=>{const _0x36ea39=_0x5c806e['batch'];_0x1318bf=_0x1318bf['filter'](_0x3a16f4=>'$graveyard'!=_0x3a16f4['root']['rootName']),_0x5c806e['setSelection'](_0x1318bf),_0x535e17['commands']['get']('removeTableRow')['refresh'](),_0x535e17['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x535e17['model']['enqueueChange'](()=>{_0x535e17['model']['enqueueChange'](_0x36ea39,_0xe19c33=>{const _0x51e415=_0x4eb14c['filter'](_0x351da2=>'$graveyard'!=_0x351da2['root']['rootName']);_0x51e415['length']>0x0&&_0xe19c33['setSelection'](_0x51e415);for(const _0x3ae214 of _0x4eb14c)_0x3ae214['detach']();});});});}function _0x1f8f9b(_0x24c0e9){_0x535e17['model']['change'](_0x5b19cb=>{const _0x3f499d=Array['from'](_0x40ea83['getRanges']())['map'](_0xd3dee1=>_0x5118bb['fromRange'](_0xd3dee1)),_0x2690c4=[];for(const _0x4a87f5 of _0x24c0e9)for(const _0x1495d9 of _0x4a87f5['getItems']({'shallow':!0x0}))_0x2690c4['push'](_0x1495d9);for(const _0x42ddb4 of _0x2690c4)'$graveyard'!=_0x42ddb4['root']['rootName']&&(_0x5b19cb['setSelection'](_0x5b19cb['createPositionAt'](_0x42ddb4,0x0)),_0x535e17['commands']['get']('removeTableColumn')['refresh'](),_0x535e17['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2eb6de=_0x3f499d['filter'](_0x1878ad=>'$graveyard'!=_0x1878ad['root']['rootName']);_0x2eb6de['length']>0x0&&_0x5b19cb['setSelection'](_0x2eb6de);for(const _0x2ec027 of _0x3f499d)_0x2ec027['detach']();});}function _0x7bb36f(_0x16c6e4,_0x40e9ad){return _0x40e9ad['every'](_0x47a918=>_0x16c6e4['some'](_0x277e4c=>_0x277e4c['end']['isEqual'](_0x47a918['start'])||_0x47a918['end']['isEqual'](_0x277e4c['start'])));}function _0x3caecb(_0x3cf9b6,_0x210594){return!_0x3cf9b6['some'](_0x1523d3=>_0x210594['some'](_0x29e489=>_0x1523d3['isIntersecting'](_0x29e489)))&&_0x3cf9b6['some'](_0x552d78=>_0x210594['some'](_0x2d33f2=>_0x552d78['end']['isTouching'](_0x2d33f2['start'])));}_0x535e17['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b46f8,_0x49f202,_0xb9da12)=>{if(!_0xb9da12['options']['showSuggestionHighlights'])return;const _0x469a2d=_0x49f202['item'];if(!_0x469a2d)return;const _0x496eea=_0xb9da12['mapper']['toViewElement'](_0x469a2d);function _0x5f0b62(_0xbff275){return Array['isArray'](_0xbff275)?_0xbff275:[_0xbff275];}_0x496eea&&'tableCell'===_0x469a2d['name']&&_0x3a332e(_0x496eea,_0xb9da12['writer'],(_0x35f31b,_0x874e26,_0x4d3073)=>_0x4d3073['addClass'](_0x5f0b62(_0x874e26['classes']),_0x35f31b),(_0x4bc8ac,_0x5d1b83,_0x3eb2a6)=>_0x3eb2a6['removeClass'](_0x5f0b62(_0x5d1b83['classes']),_0x4bc8ac));},{'priority':'highest'}),_0x402c93['descriptionFactory']['registerDescriptionCallback'](_0x52104a=>{if('insertion'!=_0x52104a['type']&&'deletion'!=_0x52104a['type'])return;const _0xfc7ce9=_0x52104a['getContainedElement']();if(null!=_0xfc7ce9&&_0xfc7ce9['is']('element','table')){if('insertion'==_0x52104a['type']){const _0x19592a=_0x52104a['getItems']()['filter'](_0x5095ba=>_0x5095ba['is']('$textProxy'))['map'](_0x3d344=>_0x3d344['data']);if(_0x19592a['length'])return{'type':'insertion','content':o(_0x56aadb,'*Insert:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19592a['join']('\x20')+'\x22'))};}if('deletion'==_0x52104a['type']){const _0x244340=_0x52104a['getItems']()['filter'](_0x36aef8=>_0x36aef8['is']('$textProxy'))['map'](_0x4f43c0=>_0x4f43c0['data']);if(_0x244340['length'])return{'type':'deletion','content':o(_0x56aadb,'*Remove:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x244340['join']('\x20')+'\x22'))};}}}),_0x402c93['descriptionFactory']['registerDescriptionCallback'](_0x5c9d09=>{if('tableRow'==_0x5c9d09['subType']){const _0x56f5ae=_0x5c9d09['getItems']()['filter'](_0x2fefb5=>_0x2fefb5['is']('$textProxy'))['map'](_0x172370=>_0x172370['data']),_0x52f788=this['_getSuggestionCoords'](_0x5c9d09),_0x4e43d6=_0x52f788['maxRow']-_0x52f788['minRow']+0x1;if('insertion'==_0x5c9d09['type'])return _0x56f5ae['length']?{'type':'insertion','content':o(_0x56aadb,'*Insert:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e43d6,'\x22'+_0x56f5ae['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x56aadb,'*Insert:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_ROW',_0x4e43d6))};if('deletion'==_0x5c9d09['type'])return _0x56f5ae['length']?{'type':'deletion','content':o(_0x56aadb,'*Remove:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e43d6,'\x22'+_0x56f5ae['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x56aadb,'*Remove:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_ROW',_0x4e43d6))};}if('tableColumn'==_0x5c9d09['subType']){const _0x542909=_0x5c9d09['getItems']()['filter'](_0x3d5c4d=>_0x3d5c4d['is']('$textProxy'))['map'](_0x1b3830=>_0x1b3830['data']),_0x23b6b3=this['_getSuggestionCoords'](_0x5c9d09),_0x345b48=_0x23b6b3['maxColumn']-_0x23b6b3['minColumn']+0x1;if('insertion'==_0x5c9d09['type'])return _0x542909['length']?{'type':'insertion','content':o(_0x56aadb,'*Insert:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x345b48,'\x22'+_0x542909['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x56aadb,'*Insert:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_COLUMN',_0x345b48))};if('deletion'==_0x5c9d09['type'])return _0x542909['length']?{'type':'deletion','content':o(_0x56aadb,'*Remove:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x345b48,'\x22'+_0x542909['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x56aadb,'*Remove:*\x20%0',o(_0x56aadb,'ELEMENT_TABLE_COLUMN',_0x345b48))};}}),_0x402c93['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x368de5),_0x402c93['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x368de5),_0x402c93['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1f8f9b),_0x402c93['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1f8f9b),_0x402c93['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x7bb36f),_0x402c93['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x7bb36f),_0x402c93['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3caecb),_0x402c93['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3caecb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x43a636=this['editor'],_0x52e9d1=_0x43a636['model']['document']['selection'];return(_0x263241,_0x4c1573)=>{_0x43a636['model']['change'](_0x101c06=>{const {commandName:_0x453d0d,commandParams:_0x424d13}=_0x4c1573;let _0xd6298b=_0x263241[0x0]['end']['nodeBefore'];_0x424d13&&_0x424d13[0x0]&&!0x1===_0x424d13[0x0]['forceValue']&&(_0xd6298b=_0x263241[0x0]['start']['nodeAfter']);const _0x26530b=_0x101c06['createRangeIn'](_0xd6298b);if('$graveyard'==_0x26530b['root']['rootName'])return;const _0x4152b7=Array['from'](_0x52e9d1['getRanges']())['map'](_0x17a591=>_0x5118bb['fromRange'](_0x17a591));_0x101c06['setSelection'](_0x26530b),_0x43a636['commands']['get'](_0x453d0d)['refresh'](),_0x424d13['push']({'forceDefaultExecution':!0x0}),_0x43a636['execute'](_0x453d0d,..._0x424d13);const _0x1edbfb=_0x4152b7['filter'](_0x10e5e9=>'$graveyard'!=_0x10e5e9['root']['rootName']);_0x1edbfb['length']>0x0&&_0x101c06['setSelection'](_0x1edbfb);for(const _0x3243fa of _0x4152b7)_0x3243fa['detach']();});};}['_getCoordsForCells'](_0x27d548){const _0x2a0092=this['editor']['plugins']['get']('TableUtils');let _0x4d352a=Number['MAX_SAFE_INTEGER'],_0x42d989=Number['MIN_SAFE_INTEGER'],_0x5691b1=Number['MAX_SAFE_INTEGER'],_0x1daf5b=Number['MIN_SAFE_INTEGER'];for(const _0x7b314c of _0x27d548){if('$graveyard'==_0x7b314c['root']['rootName'])continue;const {row:_0x3270a4,column:_0x27f423}=_0x2a0092['getCellLocation'](_0x7b314c),_0x51db1d=_0x7b314c['hasAttribute']('rowspan')?_0x7b314c['getAttribute']('rowspan')-0x1:0x0,_0x2261da=_0x7b314c['hasAttribute']('colspan')?_0x7b314c['getAttribute']('colspan')-0x1:0x0;_0x4d352a=_0x3270a4<_0x4d352a?_0x3270a4:_0x4d352a,_0x42d989=_0x3270a4+_0x51db1d>_0x42d989?_0x3270a4+_0x51db1d:_0x42d989,_0x5691b1=_0x27f423<_0x5691b1?_0x27f423:_0x5691b1,_0x1daf5b=_0x27f423+_0x2261da>_0x1daf5b?_0x27f423+_0x2261da:_0x1daf5b;}return{'minRow':_0x4d352a,'maxRow':_0x42d989,'minColumn':_0x5691b1,'maxColumn':_0x1daf5b};}['_setupColumnsRowsFixing'](){const _0x345210=this['editor'],_0x60fc44=_0x345210['plugins']['get']('TrackChangesEditing'),_0x60cce5=_0x345210['plugins']['get']('TableUtils');_0x345210['model']['document']['on']('change:data',()=>{const _0x1efbac=Array['from'](_0x345210['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cd8bc,data:_0x53555e}of _0x1efbac){const {group:_0x236589,id:_0x501120,subType:_0x8dcf36}=_0x60fc44['_splitMarkerName'](_0x3cd8bc);if('suggestion'!=_0x236589)continue;if(null!=_0x53555e['oldRange'])continue;const _0x41744b=_0x60fc44['getSuggestion'](_0x501120);this['_tablePostFixingSubtypes']['includes'](_0x8dcf36)&&this['_tableSuggestions']['add'](_0x41744b);}},{'priority':'low'});const _0x149bba=(_0x168c71,_0x307a34)=>{let _0x24f9ad=!0x1;const _0x394fbd=_0x307a34['createRangeOn'](_0x168c71),_0x3c4d14=_0x168c71['findAncestor']('table'),_0xb7bb8e=_0x60cce5['getCellLocation'](_0x168c71);for(const _0x5d0aca of this['_tableSuggestions']){const _0x160851=_0x5d0aca['subType'],_0x3ce679=_0x160851['startsWith']('tablePaste'),_0x5c8079=_0x160851['substr'](_0x3ce679?0xa:0x5),_0x5a28d5=_0x5c8079['toLowerCase'](),_0x19ffbd=_0x5a28d5['substr'](0x0,0x3)+'span',_0x46396a='min'+_0x5c8079,_0x10f9fb='max'+_0x5c8079;if(!_0x5d0aca['isInContent'])continue;if(_0x3c4d14!=_0x5d0aca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5d0aca['isIntersectingWithRange'](_0x394fbd))continue;const _0x3b9564=_0x168c71['hasAttribute'](_0x19ffbd)?_0x168c71['getAttribute'](_0x19ffbd)-0x1:0x0,_0x3c5c89=this['_getSuggestionCoords'](_0x5d0aca),_0x12c410=_0x3c5c89[_0x46396a],_0x289842=_0x3c5c89[_0x10f9fb];_0x12c410<=_0xb7bb8e[_0x5a28d5]&&_0xb7bb8e[_0x5a28d5]+_0x3b9564<=_0x289842&&(_0x5d0aca['addRange'](_0x394fbd),_0x24f9ad=!0x0);}return _0x24f9ad;};_0x345210['model']['document']['registerPostFixer'](_0x1e68af=>{let _0x55597f=!0x1;for(const _0x4fcb8c of _0x345210['model']['document']['differ']['getChanges']())if('insert'==_0x4fcb8c['type']){if('tableRow'==_0x4fcb8c['name']){for(const _0x3ca335 of _0x4fcb8c['position']['nodeAfter']['getChildren']())_0x55597f=_0x55597f||_0x149bba(_0x3ca335,_0x1e68af);}else'tableCell'==_0x4fcb8c['name']&&(_0x55597f=_0x55597f||_0x149bba(_0x4fcb8c['position']['nodeAfter'],_0x1e68af));}return _0x55597f;});}['_getSuggestionCoords'](_0x2b1724){return this['_getCoordsForCells'](_0x2b1724['getRanges']()['map'](_0xc1ae40=>_0xc1ae40['start']['nodeAfter']));}}function be(_0x336cb2){return Array['from'](new Set(_0x336cb2)['values']());}class vt extends _0x422b73{static get['requires'](){return[It];}['afterInit'](){const _0x2da82e=this['editor'],_0x47b56e=_0x2da82e['model']['document']['selection'],_0x325f95=_0x2da82e['locale'];if(!_0x2da82e['plugins']['has']('TableEditing'))return;const _0x52af2e=_0x2da82e['plugins']['get']('TrackChangesEditing'),_0x1fbdd3=_0x2da82e['plugins']['get']('TableUtils'),_0x1720f5=_0x2da82e['plugins']['get'](It);_0x1720f5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x52af2e['enableCommand']('mergeTableCells',()=>{const _0x4a1271=_0x1fbdd3['getSelectionAffectedTableCells'](_0x2da82e['model']['document']['selection']);_0x2da82e['model']['change'](()=>{_0x52af2e['markMultiRangeBlockFormat'](_0x4a1271,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2da82e['commands']['get']('mergeTableCells')['on']('execute',(_0x1b4079,_0x1c8a92)=>{_0x2da82e['commands']['get']('trackChanges')['value']&&(_0x1c8a92['length']>0x0&&_0x1c8a92[_0x1c8a92['length']-0x1]&&_0x1c8a92[_0x1c8a92['length']-0x1]['forceDefaultExecution']||_0x52af2e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1b4079['stop']());},{'priority':'highest'});for(const _0x5f0fbd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x34765e=_0x2da82e['commands']['get'](_0x5f0fbd);_0x52af2e['enableCommand'](_0x5f0fbd,()=>{const _0xb6a402=_0x2da82e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5df8b6=>_0x5df8b6['is']('element','tableCell')),_0x285092=_0x34765e['value'];_0x2da82e['model']['change'](()=>{_0x52af2e['markMultiRangeBlockFormat']([_0xb6a402,_0x285092],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x35e920 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4acfcc=_0x2da82e['commands']['get'](_0x35e920);_0x52af2e['enableCommand'](_0x35e920,()=>{const _0x30ce90=_0x1fbdd3['getSelectionAffectedTableCells'](_0x2da82e['model']['document']['selection'])[0x0],_0x23ab54=_0x30ce90['findAncestor']('table'),{column:_0x3431a2,row:_0x11e9ce}=_0x1fbdd3['getCellLocation'](_0x30ce90);let _0x3f20d1=[];if('horizontally'==_0x4acfcc['direction']){const _0x143a44=_0x1fbdd3['createTableWalker'](_0x23ab54,{'startRow':_0x11e9ce,'endRow':_0x11e9ce,'includeAllSlots':!0x0});_0x3f20d1=Array['from'](_0x143a44)['map'](_0x437e82=>_0x437e82['cell']);}else{const _0x46dec1=_0x1fbdd3['createTableWalker'](_0x23ab54,{'column':_0x3431a2,'includeAllSlots':!0x0});_0x3f20d1=Array['from'](_0x46dec1)['map'](_0x114ac7=>_0x114ac7['cell']);}_0x2da82e['model']['change'](_0x146025=>{_0x52af2e['markBlockFormat'](_0x146025['createRangeOn'](_0x30ce90),{'commandName':_0x35e920,'commandParams':[]},_0x3f20d1,_0x35e920);});});}_0x52af2e['descriptionFactory']['registerDescriptionCallback'](_0x50744b=>{if('formatBlock'!=_0x50744b['type']&&'formatInline'!=_0x50744b['type'])return;const {data:_0x165795}=_0x50744b;return _0x165795&&'mergeTableCells'==_0x165795['commandName']?{'type':'format','content':o(_0x325f95,'*Merge\x20cells*')}:void 0x0;}),_0x52af2e['descriptionFactory']['registerDescriptionCallback'](_0x53427d=>{if('formatBlock'!=_0x53427d['type']&&'formatInline'!=_0x53427d['type'])return;const {data:_0x54e929}=_0x53427d;return _0x54e929?'splitTableCellVertically'==_0x54e929['commandName']?{'type':'format','content':o(_0x325f95,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54e929['commandName']?{'type':'format','content':o(_0x325f95,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x146a4d=_0x1720f5['_acceptFormatSuggestionCallbackFactory']();for(const _0x49d042 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x52af2e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49d042,'accept',_0x146a4d);for(const _0x3e1688 of['splitTableCellVertically','splitTableCellHorizontally'])_0x52af2e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e1688,'accept',_0x146a4d);_0x52af2e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x578de4=>{_0x2da82e['model']['change'](_0x470550=>{const _0x4f1fe0=Array['from'](_0x47b56e['getRanges']())['map'](_0x76b2=>_0x5118bb['fromRange'](_0x76b2));_0x470550['setSelection'](_0x578de4),_0x2da82e['commands']['get']('mergeTableCells')['refresh'](),_0x2da82e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3820b5=_0x4f1fe0['filter'](_0x390851=>'$graveyard'!=_0x390851['root']['rootName']);_0x3820b5['length']>0x0&&_0x470550['setSelection'](_0x3820b5);for(const _0x1fc50e of _0x4f1fe0)_0x1fc50e['detach']();});});for(const _0x2448dc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x183727=_0x2da82e['commands']['get'](_0x2448dc);_0x183727['on']('set:isEnabled',(_0x2fc678,_0x66f49f,_0x48a762)=>{if(_0x48a762){const _0x2ea97f=_0x2da82e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x30dcf2=>_0x30dcf2['is']('element','tableCell'));this['_areMergableCells'](_0x183727['value'],_0x2ea97f)||(_0x2fc678['return']=!0x1,_0x2fc678['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x588d9b=this['editor']['commands']['get']('mergeTableCells'),_0x3086d3=this['editor']['plugins']['get']('TableUtils');if(!_0x588d9b['isEnabled'])return!0x1;const _0x35e8f1=_0x3086d3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x161f6d of _0x35e8f1)for(const _0x65c57b of _0x35e8f1)if(_0x161f6d!=_0x65c57b&&!this['_areMergableCells'](_0x161f6d,_0x65c57b))return!0x1;return!0x0;}['_areMergableCells'](_0x1d203c,_0x1c19d0){const _0x637837=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b1600=this['editor']['model']['createRangeOn'](_0x1d203c),_0x104dc1=this['editor']['model']['createRangeOn'](_0x1c19d0),_0x12a011=new Set(),_0x1dd4e4=new Set();for(const _0x3560e7 of _0x637837['getSuggestions']())if(('insertion'==_0x3560e7['type']||'deletion'==_0x3560e7['type']||'mergeTableCells'==_0x3560e7['subType'])&&_0x3560e7['isInContent']){for(const _0x4b7135 of _0x3560e7['getRanges']())_0x4b7135['containsRange'](_0x1b1600,!0x0)&&_0x12a011['add'](_0x3560e7['type']+':'+_0x3560e7['author']['id']),_0x4b7135['containsRange'](_0x104dc1,!0x0)&&_0x1dd4e4['add'](_0x3560e7['type']+':'+_0x3560e7['author']['id']);}if(_0x12a011['size']!=_0x1dd4e4['size'])return!0x1;for(const _0x1a81e6 of _0x12a011)if(!_0x1dd4e4['has'](_0x1a81e6))return!0x1;return!0x0;}}class Ct extends _0x422b73{static get['requires'](){return[It];}['afterInit'](){const _0x3bd413=this['editor'];if(!_0x3bd413['plugins']['has']('TableEditing'))return;const _0x3d6dcd=_0x3bd413['locale'],_0x6cb57f=_0x3bd413['plugins']['get']('TrackChangesEditing');_0x6cb57f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x6cb57f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x6cb57f['registerBlockAttribute']('headingRows'),_0x6cb57f['registerBlockAttribute']('headingColumns'),_0x6cb57f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3d6dcd,'FORMAT_HEADER_ROW')),_0x6cb57f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3d6dcd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1bfe44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b09e5=this['editor']['plugins']['get']('TableUtils'),_0x5c6fba=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x438249({showActiveMarker:_0x149d27=!0x0,setDataAttribute:_0x518df8=!0x0}={}){return(_0x19312f,_0x13860c,_0x194b85)=>{const {type:_0x588593,id:_0x494a29}=_0x1bfe44['_splitMarkerName'](_0x13860c['markerName']),_0x2a9b1e=_0x1bfe44['getSuggestion'](_0x494a29),_0x2fade6=_0x2a9b1e['data'];if('formatBlock'!=_0x2a9b1e['type']||!_0x2fade6||'setTableColumnHeader'!=_0x2fade6['commandName'])return;if(_0x13860c['item'])return void _0x19312f['stop']();if(!_0x194b85['consumable']['consume'](_0x13860c['markerRange'],_0x19312f['name']))return;const _0x27486a=_0x13860c['markerRange']['start']['nodeAfter'],_0x36e435=_0x13860c['markerRange']['end']['nodeBefore'],_0x3875c7=_0x27486a['parent']['parent'],{column:_0x4ec864}=_0x1b09e5['getCellLocation'](_0x27486a),{column:_0x8dd81b}=_0x1b09e5['getCellLocation'](_0x36e435);for(let _0x4b62e8=_0x4ec864;_0x4b62e8<=_0x8dd81b;_0x4b62e8++){const _0x51dba5=_0x1b09e5['createTableWalker'](_0x3875c7,{'column':_0x4b62e8,'includeAllSlots':!0x1});for(const _0x1ac5b8 of _0x51dba5){const _0x18743c=_0x1ac5b8['cell'],_0x46a884=_0x194b85['mapper']['toViewElement'](_0x18743c);_0x194b85['writer']['addClass']('ck-suggestion-marker-'+_0x588593,_0x46a884),_0x518df8&&_0x194b85['writer']['setAttribute']('data-suggestion',_0x494a29,_0x46a884),_0x194b85['mapper']['bindElementToMarker'](_0x46a884,_0x13860c['markerName']),_0x149d27&&(_0x1bfe44['activeMarkers']['includes'](_0x13860c['markerName'])?_0x194b85['writer']['addClass']('ck-suggestion-marker--active',_0x46a884):_0x194b85['writer']['removeClass']('ck-suggestion-marker--active',_0x46a884));}}};}_0x1bfe44['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5c6fba),_0x1bfe44['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5c6fba),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x438249(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59cf6c,_0xf70bf8,_0x40df74)=>{_0x40df74['options']['showSuggestionHighlights']&&_0x438249({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59cf6c,_0xf70bf8,_0x40df74);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5122c0,_0x4e429e,_0x1ac314)=>{const {type:_0x3dd734,id:_0x27118f}=_0x1bfe44['_splitMarkerName'](_0x4e429e['markerName']),_0x5bad9b=_0x1bfe44['getSuggestion'](_0x27118f),_0x4edc1e=_0x5bad9b['data'];if('formatBlock'!=_0x5bad9b['type']||!_0x4edc1e||'setTableColumnHeader'!=_0x4edc1e['commandName'])return;const _0x2872ea=_0x1ac314['mapper']['markerNameToElements'](_0x4e429e['markerName']);if(_0x2872ea){for(const _0x4e176d of _0x2872ea)_0x1ac314['writer']['removeClass']('ck-suggestion-marker-'+_0x3dd734,_0x4e176d),_0x1ac314['writer']['removeClass']('ck-suggestion-marker--active',_0x4e176d),_0x1ac314['writer']['removeAttribute']('data-suggestion',_0x4e176d),_0x1ac314['mapper']['unbindElementFromMarkerName'](_0x4e176d,_0x4e429e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x459cb5=this['editor'],_0x2336ab=_0x459cb5['locale'];function _0x109db3(_0x7ed5b5){return{'type':'format','content':o(_0x2336ab,'*Format:*\x20%0',_0x7ed5b5)};}_0x459cb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e2daa=>{if('formatBlock'!=_0x5e2daa['type'])return;const {data:_0x5b62dd}=_0x5e2daa;if(_0x5b62dd){if('setTableRowHeader'==_0x5b62dd['commandName']){const _0x14ed46=_0x5b62dd['commandParams'][0x0]['forceValue'];return _0x109db3(o(_0x2336ab,_0x14ed46?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b62dd['commandName']){const _0x1ddf90=_0x5b62dd['commandParams'][0x0]['forceValue'];return _0x109db3(o(_0x2336ab,_0x1ddf90?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x144cbf=>[_0x144cbf,null]));class _t extends _0x422b73{static get['requires'](){return[It];}['afterInit'](){const _0x105ba9=this['editor'];if(!_0x105ba9['plugins']['has']('TableClipboard'))return;const _0x9d1aad=_0x105ba9['plugins']['get']('TrackChangesEditing'),_0x55eda4=_0x105ba9['plugins']['get']('TableUtils'),_0x552cd2=_0x105ba9['plugins']['get'](It),_0x2a4100=_0x105ba9['plugins']['get']('TableClipboard');_0x552cd2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x105ba9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x105ba9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x28ade3=null;_0x105ba9['model']['on']('insertContent',(_0xc9eb21,_0x4a70c1)=>{const [_0x2646ae,_0x7177]=_0x4a70c1,_0x3a526d=_0x4a70c1[_0x4a70c1['length']-0x1];_0x3a526d&&_0x3a526d['forceDefaultExecution']||_0x9d1aad['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3c80c4,_0x389106,_0x3da3bc,_0x1b88a6,_0x4d467f){if(_0x389106&&!_0x389106['is']('documentSelection'))return!0x1;const _0x298ea7=_0x4d467f['getTableIfOnlyTableInContent'](_0x3c80c4,_0x3da3bc);if(!_0x298ea7||!Re(_0x298ea7,void 0x0,_0x1b88a6))return!0x1;const _0x4360a2=_0x1b88a6['getSelectionAffectedTableCells'](_0x3da3bc['document']['selection']);if(!_0x4360a2['length'])return!0x1;const _0x2c6ead=_0x4360a2[0x0]['findAncestor']('table'),_0x44d7f8=_0x1b88a6['getRowIndexes'](_0x4360a2),_0xe39cf=_0x1b88a6['getColumnIndexes'](_0x4360a2),_0xe87af={'startRow':_0x44d7f8['first'],'endRow':_0x44d7f8['last'],'startColumn':_0xe39cf['first'],'endColumn':_0xe39cf['last']};return 0x1==_0x4360a2['length']&&(_0xe87af['endRow']+=_0x1b88a6['getRows'](_0x298ea7)-0x1,_0xe87af['endColumn']+=_0x1b88a6['getColumns'](_0x298ea7)-0x1),Re(_0x2c6ead,_0xe87af,_0x1b88a6);}(_0x2646ae,_0x7177,_0x105ba9['model'],_0x55eda4,_0x2a4100)&&(_0xc9eb21['stop'](),_0x28ade3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x105ba9['model']['change'](()=>{_0x105ba9['model']['insertContent'](_0x4a70c1[0x0],_0x4a70c1[0x1],_0x4a70c1[0x2],{'forceDefaultExecution':!0x0});const _0x3b894e=_0xc0c664(),{rowInsertionRanges:_0x25b658,columnInsertionRanges:_0x1b6729,insertionRanges:_0x2f93a8,deletionRanges:_0x290a01,cells:_0x451655}=_0x28ade3;_0x25b658['length']&&_0x9d1aad['markMultiRangeInsertion'](_0x25b658,'tablePasteRow',{'tablePasteChainId':_0x3b894e}),_0x1b6729['length']&&_0x9d1aad['markMultiRangeInsertion'](_0x1b6729,'tablePasteColumn',{'tablePasteChainId':_0x3b894e}),_0x2f93a8['length']&&(_0x9d1aad['markMultiRangeInsertion'](_0x2f93a8,'tablePaste',{'tablePasteChainId':_0x3b894e,'skipNestingCheck':!0x0}),_0x2f93a8['forEach'](_0x371c1c=>_0x371c1c['detach']?.())),_0x290a01['length']&&(_0x9d1aad['markMultiRangeDeletion'](_0x290a01,'tablePaste',{'tablePasteChainId':_0x3b894e,'skipNestingCheck':!0x0}),_0x290a01['forEach'](_0x1f044f=>_0x1f044f['detach']?.()));const _0x384236=_0x9d1aad['markMultiRangeBlockFormat'](_0x451655['map'](({element:_0x155531})=>_0x155531),{'formatGroupId':_0xc0c664()},[],'tablePasteCell',{'tablePasteChainId':_0x3b894e});if(_0x384236){const _0x4067c9=_0x384236['getMarkers'](),_0x220618=[];for(const {element:_0x419009,attributes:_0x499622}of _0x451655){if(!_0x499622)continue;const _0x29d612=_0x105ba9['model']['createRangeOn'](_0x419009),_0x192bdb=_0x4067c9['find'](_0x27b002=>_0x27b002['getRange']()['isEqual'](_0x29d612));_0x192bdb&&_0x220618['push']([_0x192bdb['name'],_0x499622]);}_0x220618['length']&&_0x384236['setAttribute']('markerAttributes',Object['fromEntries'](_0x220618));}_0x28ade3=null;}));},{'priority':_0x4bafaa['high']+0xa}),_0x105ba9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa56a0c,_0x48c776)=>{const [_0x4498d1,_0x57a0c5,,_0x4c7975]=_0x48c776;if(!_0x28ade3)return;_0xa56a0c['stop']();const _0x5d823e=_0x4498d1['cell'],_0x243c30=_0x57a0c5,_0x43a1bc=ke(_0x5d823e),_0x3bd8e4=ke(_0x243c30);_0xa56a0c['return']=_0x5d823e;let _0xeb3733=null,_0x4d7858=null;if(_0x3bd8e4||_0x43a1bc){if(_0x43a1bc&&!_0x3bd8e4){_0x4c7975['remove'](_0x5d823e['getChild'](0x0));for(const _0x65dd91 of Array['from'](_0x243c30['getChildren']()))_0x4c7975['insert'](_0x65dd91,_0x5d823e,'end');const _0x1adaf4=_0x28ade3['rowInsertionIndexes']['includes'](_0x4498d1['row']),_0x9bdf3e=_0x28ade3['columnInsertionIndexes']['includes'](_0x4498d1['column']);_0x1adaf4||_0x9bdf3e||(_0xeb3733=_0x5118bb['fromRange'](_0x4c7975['createRangeIn'](_0x5d823e)));}else _0x3bd8e4&&!_0x43a1bc&&(_0x4d7858=_0x4c7975['createRangeIn'](_0x5d823e));}else{const _0x4f145d=_0x4c7975['createElement']('tableCellSuggestion'),_0x3bc9e=_0x4c7975['createElement']('tableCellSuggestion');_0x4c7975['wrap'](_0x4c7975['createRangeIn'](_0x5d823e),_0x3bc9e),_0x4c7975['insert'](_0x4f145d,_0x5d823e,0x0);for(const _0x212398 of Array['from'](_0x243c30['getChildren']()))_0x4c7975['insert'](_0x212398,_0x4f145d,'end');_0xeb3733=_0x5118bb['fromRange'](_0x4c7975['createRangeOn'](_0x4f145d)),_0x4d7858=_0x5118bb['fromRange'](_0x4c7975['createRangeOn'](_0x3bc9e));}const _0xb473e8=Array['from'](_0x243c30['getAttributes']())['filter'](([_0x5f7d2e])=>Pe['includes'](_0x5f7d2e));_0x28ade3['cells']['push']({'element':_0x5d823e,'attributes':_0xb473e8['length']?Object['fromEntries'](_0xb473e8):null}),_0xeb3733&&_0x28ade3['insertionRanges']['push'](_0xeb3733),_0x4d7858&&_0x28ade3['deletionRanges']['push'](_0x4d7858);},{'priority':'high'}),_0x55eda4['on']('insertColumns',(_0x58999b,_0x48af0f)=>{const [_0x7278b1,_0x4300a6={}]=_0x48af0f;if(!_0x28ade3)return;const _0x516e00=_0x4300a6['at']||0x0,_0xb9324e=_0x4300a6['columns']||0x1;_0x28ade3['columnInsertionIndexes']=new Array(_0xb9324e)['fill'](_0x516e00)['map']((_0x2f1c38,_0x403303)=>_0x2f1c38+_0x403303);for(const {cell:_0xdce2e6}of _0x55eda4['createTableWalker'](_0x7278b1,{'startColumn':_0x516e00,'endColumn':_0x516e00+_0xb9324e-0x1}))_0x28ade3['columnInsertionRanges']['push'](_0x105ba9['model']['createRangeOn'](_0xdce2e6));},{'priority':'low'}),_0x55eda4['on']('insertRows',(_0x1e0f7c,_0x426994)=>{const [_0x316ba0,_0x4fece7={}]=_0x426994;if(!_0x28ade3)return;const _0x5ccee2=_0x4fece7['at']||0x0,_0x4ebef0=_0x4fece7['rows']||0x1;_0x28ade3['rowInsertionIndexes']=new Array(_0x4ebef0)['fill'](_0x5ccee2)['map']((_0x37f68c,_0x500562)=>_0x37f68c+_0x500562);for(const {cell:_0x102bee}of _0x55eda4['createTableWalker'](_0x316ba0,{'startRow':_0x5ccee2,'endRow':_0x5ccee2+_0x4ebef0-0x1}))_0x28ade3['rowInsertionRanges']['push'](_0x105ba9['model']['createRangeOn'](_0x102bee));},{'priority':'low'}),_0x9d1aad['descriptionFactory']['registerDescriptionCallback'](_0x7bcf44=>{if(_0x7bcf44['subType']&&_0x7bcf44['subType']['startsWith']('tablePaste'))return _0x7bcf44['previous']?{}:{'type':'insertion','content':o(_0x105ba9['locale'],'*Replace\x20table\x20cells*')};});const _0xf50d67=()=>!0x1;for(const _0x20c94a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x9d1aad['_suggestionFactory']['registerCustomCallback']('insertion',_0x20c94a,'join',_0xf50d67),_0x9d1aad['_suggestionFactory']['registerCustomCallback']('deletion',_0x20c94a,'join',_0xf50d67),_0x9d1aad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x20c94a,'join',_0xf50d67);_0x9d1aad['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf50d67),_0x9d1aad['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xe70aa5,_0x384219,_0x326e2c)=>{const _0x457c9d=_0xe70aa5['map'](_0x15417f=>_0x15417f['getContainedElement']())['filter'](_0x3eead5=>_0x3eead5),_0x3cf0ba=new Map(_0x457c9d['map'](_0x282d1b=>[_0x282d1b,null]));if(_0x28ade3){for(const {element:_0x488f9c,attributes:_0x25ff11}of _0x28ade3['cells'])_0x25ff11&&_0x3cf0ba['set'](_0x488f9c,_0x25ff11);}else{if(_0x326e2c&&_0x326e2c['markerAttributes'])for(const [_0x2f0cb2,_0xf99efc]of Object['entries'](_0x326e2c['markerAttributes'])){const _0x507b2d=_0x105ba9['model']['markers']['get'](_0x2f0cb2),_0x5ab01f=_0x507b2d?_0x507b2d['getRange']()['getContainedElement']():null;_0x5ab01f&&_0x3cf0ba['set'](_0x5ab01f,_0xf99efc);}}_0x105ba9['model']['change'](_0x4fdb02=>{for(const [_0xb17a88,_0x250910]of _0x3cf0ba)_0x4fdb02['setAttributes']({...we,..._0x250910},_0xb17a88);});});const _0x1bfe98=(_0x1ec2bc,_0x22bbf0)=>{_0x9d1aad['_suggestionFactory']['registerCustomCallback'](_0x1ec2bc,'tablePaste',_0x22bbf0,(_0x59039e,_0x59aad1,_0x4c90db)=>{_0x105ba9['model']['change'](_0x275d70=>{const _0x5a9237=[];for(const _0x244d16 of _0x59039e){const _0x51e8fe=_0x244d16['start']['nodeAfter'];_0x51e8fe['is']('element','tableCellSuggestion')&&_0x5a9237['push'](_0x51e8fe);}_0x9d1aad['_suggestionFactory']['getSuggestionCallback'](_0x1ec2bc,null,_0x22bbf0)(_0x59039e,_0x59aad1,_0x4c90db);for(const _0x2c596a of _0x5a9237)'$graveyard'!=_0x2c596a['root']['rootName']&&_0x275d70['unwrap'](_0x2c596a);});});};_0x1bfe98('insertion','accept'),_0x1bfe98('insertion','discard'),_0x1bfe98('deletion','accept'),_0x1bfe98('deletion','discard'),_0x9d1aad['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3eeb71=>{const _0x140d59=_0x3eeb71['map'](_0xf10370=>_0xf10370['getContainedElement']()),_0x164cb5=_0x140d59[0x0]['findAncestor']('table'),{minRow:_0x3865d,maxRow:_0x3a0bab}=_0x552cd2['_getCoordsForCells'](_0x140d59);_0x55eda4['removeRows'](_0x164cb5,{'at':_0x3865d,'rows':_0x3a0bab-_0x3865d+0x1});}),_0x9d1aad['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x24127a=>{const _0x30aabf=_0x24127a['map'](_0x2f4c7f=>_0x2f4c7f['getContainedElement']()),_0x4c40a6=_0x30aabf[0x0]['findAncestor']('table'),{minColumn:_0x5ed9f0,maxColumn:_0xf6e0fa}=_0x552cd2['_getCoordsForCells'](_0x30aabf);_0x55eda4['removeColumns'](_0x4c40a6,{'at':_0x5ed9f0,'columns':_0xf6e0fa-_0x5ed9f0+0x1});});const _0x219b63=(_0x24e544,_0x52f15c)=>{if(!_0x52f15c['subType']||!_0x52f15c['subType']['startsWith']('tablePaste'))return;const _0x11b171=_0x52f15c['attributes']['tablePasteChainId'],_0x456223=_0x9d1aad['getSuggestions']()['filter'](_0x3fa630=>_0x3fa630['isInContent']&&_0x3fa630['attributes']&&_0x3fa630['attributes']['tablePasteChainId']==_0x11b171);_0x456223['length']&&_0x52f15c['getAllAdjacentSuggestions']()['length']!=_0x456223['length']&&_0x456223['reduce']((_0x40b20d,_0xc7ca9e)=>(_0x40b20d['next']=_0xc7ca9e,_0xc7ca9e['previous']=_0x40b20d,_0xc7ca9e));};function _0x36b135(_0x79f55c,_0x50cdce=!0x0){const {id:_0x346c9b,authorId:_0x5eb173}=_0x9d1aad['_splitMarkerName'](_0x79f55c['markerName']),_0x3cc5b4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x503d9c=_0x9d1aad['activeMarkers']['includes'](_0x79f55c['markerName']);return _0x503d9c&&_0x3cc5b4['push']('ck-suggestion-marker--active'),{'classes':_0x3cc5b4,'attributes':{'data-suggestion':_0x346c9b,'data-author-id':_0x5eb173},'priority':_0x503d9c&&_0x50cdce?0xbc2:0xbb8};}_0x9d1aad['on']('suggestionLoaded',_0x219b63,{'priority':'high'}),_0x9d1aad['on']('suggestionUnloaded',_0x219b63,{'priority':'high'}),_0x105ba9['model']['document']['registerPostFixer'](()=>{let _0x36ffae=!0x1;const _0x730983=Array['from'](_0x105ba9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x495e07,data:_0x49ab34}of _0x730983){const {group:_0x38762b,type:_0x544f43,id:_0x2d4ea5}=_0x9d1aad['_splitMarkerName'](_0x495e07);if('suggestion'!=_0x38762b||'deletion'!=_0x544f43||_0x49ab34['oldRange'])continue;if(!_0x9d1aad['hasSuggestion'](_0x2d4ea5))continue;const _0x3d0d9c=_0x9d1aad['getSuggestion'](_0x2d4ea5)['getRanges'](),_0x560fa8=_0x105ba9['plugins']['get']('Users')['me'];for(const _0x39ee33 of _0x9d1aad['getSuggestions']()){if(!_0x39ee33['isInContent']||_0x39ee33['author']!=_0x560fa8)continue;if('formatBlock'!=_0x39ee33['type']||'tablePasteCell'!=_0x39ee33['subType'])continue;if(_0x39ee33['getRanges']()['every'](_0xe62282=>_0x3d0d9c['some'](_0x4d7e4e=>_0x4d7e4e['containsRange'](_0xe62282,!0x0)))){for(const _0x678310 of _0x39ee33['getAllAdjacentSuggestions']())_0x678310['isInContent']&&(_0x678310['discard'](),_0x36ffae=!0x0);}}}return _0x36ffae;}),_0x105ba9['model']['document']['registerPostFixer'](_0x2f8815=>{const _0x32169d=_0x105ba9['commands']['get']('redo');if(!_0x32169d||!_0x32169d['_createdBatches']['has'](_0x2f8815['batch']))return!0x1;let _0x502b2a=!0x1;const _0x40153f=_0x105ba9['plugins']['get']('Users')['me'],_0x559e4b=_0x105ba9['model']['document']['differ']['getChanges'](),_0x3cca46=Array['from'](_0x105ba9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x303133,data:_0x3c7245})=>{const {group:_0x20443c,subType:_0x1e879d,authorId:_0x36e132}=_0x9d1aad['_splitMarkerName'](_0x303133);return'suggestion'==_0x20443c&&'tablePaste'==_0x1e879d&&_0x36e132==_0x40153f['id']&&!_0x3c7245['oldRange'];});for(const _0x2b4914 of _0x559e4b){if('insert'!=_0x2b4914['type']||'tableCellSuggestion'!=_0x2b4914['name']||0x1!=_0x2b4914['length'])continue;const _0x384f8f=_0x2f8815['createRange'](_0x2b4914['position'],_0x2b4914['position']['getShiftedBy'](0x1));if(!_0x3cca46['find'](({data:_0x8c3a74})=>_0x8c3a74['newRange']['isEqual'](_0x384f8f))){for(const {name:_0x523ff,data:_0x4a7f42}of _0x3cca46)if(_0x384f8f['containsRange'](_0x4a7f42['newRange'])){_0x2f8815['updateMarker'](_0x523ff,{'range':_0x384f8f}),_0x502b2a=!0x0;break;}}}return _0x502b2a;}),_0x105ba9['model']['document']['registerPostFixer'](_0x2abae0=>{let _0x2d65c1=!0x1;const _0x340ce3=_0x105ba9['plugins']['get']('Users')['me'],_0x542b41=_0x9d1aad['getSuggestions']()['filter'](_0x386aa1=>_0x386aa1['isInContent']&&_0x386aa1['author']==_0x340ce3),_0x56a59a=new Set(),_0x5c9c0b=new Set();for(const _0x575e94 of _0x542b41)if('tablePaste'==_0x575e94['subType'])for(const _0xdf20ff of _0x575e94['getMarkers']()){const _0x3ce07b=_0xdf20ff['getRange']()['getContainedElement']();if(_0x3ce07b){if(_0x3ce07b['is']('element','tableCellSuggestion')&&ke(_0x3ce07b)){_0x575e94['removeMarker'](_0xdf20ff['name']),_0x56a59a['add'](_0x3ce07b),_0x2d65c1=!0x0;const _0x3c3077=_0x3ce07b['nextSibling'],_0x39d530=_0x3ce07b['previousSibling'],_0x525016=_0x3c3077&&_0x3c3077['is']('element','tableCellSuggestion'),_0xa5cdae=_0x39d530&&_0x39d530['is']('element','tableCellSuggestion');_0x525016&&!_0x56a59a['has'](_0x3c3077)&&_0x5c9c0b['add'](_0x3c3077),_0xa5cdae&&!_0x56a59a['has'](_0x39d530)&&_0x5c9c0b['add'](_0x39d530);}else _0x3ce07b['is']('element','paragraph')&&_0x3ce07b['isEmpty']&&(_0x575e94['removeMarker'](_0xdf20ff['name']),_0x2d65c1=!0x0);}}else{if('tablePasteCell'==_0x575e94['subType']){if(!_0x575e94['attributes']||!_0x575e94['attributes']['tablePasteChainId'])continue;const _0xb7eefb=_0x575e94['attributes']['markerAttributes'];if(_0xb7eefb&&Object['keys'](_0xb7eefb)['length'])continue;const _0x232962=_0x575e94['attributes']['tablePasteChainId'];let _0x505047=!0x0,_0x5617d1=!0x0;for(const _0x2a5361 of _0x542b41)if(_0x2a5361['subType']&&_0x2a5361['subType']['startsWith']('tablePaste')){if(!_0x2a5361['attributes']['tablePasteChainId']){_0x5617d1=!0x1;break;}if(_0x2a5361['id']!=_0x575e94['id']&&_0x2a5361['attributes']['tablePasteChainId']==_0x232962){_0x505047=!0x1;break;}}_0x5617d1&&_0x505047&&(_0x575e94['removeMarkers'](),_0x2d65c1=!0x0);}}for(const _0x5a79e1 of _0x56a59a)_0x2abae0['remove'](_0x5a79e1);for(const _0x5f3924 of _0x5c9c0b)_0x2abae0['unwrap'](_0x5f3924);return _0x2d65c1;}),_0x105ba9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2bb82d,_0x173bb7)=>_0x36b135(_0x2bb82d),'converterPriority':'high'}),_0x105ba9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x46e062,_0x4af692)=>_0x4af692['options']['showSuggestionHighlights']?_0x36b135(_0x46e062,!0x1):null,'converterPriority':'high'});const _0x4a3809=_0x105ba9['editing']['view'];this['listenTo'](_0x4a3809['document'],'clipboardOutput',(_0x55581a,_0xcabf20)=>{const _0x8292d6=[];for(const _0x4ca37a of _0x4a3809['createRangeIn'](_0xcabf20['content'])['getItems']())_0x4ca37a['is']('element','suggestion-td')&&_0x8292d6['push'](_0x4ca37a);_0x4a3809['change'](_0x17ecfa=>{for(const _0x62bbb2 of _0x8292d6)_0x17ecfa['move'](_0x17ecfa['createRangeIn'](_0x62bbb2),_0x17ecfa['createPositionBefore'](_0x62bbb2)),_0x17ecfa['remove'](_0x62bbb2);});});}}function ke(_0x45b4d5){if(_0x45b4d5['isEmpty'])return!0x0;const _0x286164=_0x45b4d5['getChild'](0x0);return _0x286164['is']('element','paragraph')&&_0x286164['isEmpty'];}function Re(_0x1101b1,_0x1a9e87={},_0x1714c8){for(const {isAnchor:_0x3ca512,cellHeight:_0x4de583,cellWidth:_0x1db7af}of _0x1714c8['createTableWalker'](_0x1101b1,{'includeAllSlots':!0x0,..._0x1a9e87}))if(!_0x3ca512||0x1!=_0x4de583||0x1!=_0x1db7af)return!0x1;return!0x0;}class Nt extends _0x422b73{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1f8f3e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f8f3e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1f8f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1f8f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f8f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1f8f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1f8f3e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x441c2c,_0x10bcd1){const _0x4d152d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fcdce=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ed193=_0x10bcd1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3c8395=_0x1fcdce['getColumnGroupElement'](_0x1ed193);let _0x7ff2e2=_0x3c8395?_0x1fcdce['getTableColumnsWidths'](_0x3c8395):null,_0x4c15c8=_0x1ed193['getAttribute']('tableWidth')||null;const _0x501e25=_0x10bcd1['tableWidth']||_0x4c15c8,_0x14d1fb=_0x10bcd1['columnWidths']||_0x7ff2e2,_0x54fd26=this['editor']['plugins']['get']('Users')['me'];for(const _0x184ac9 of _0x4d152d['getSuggestions']()){const _0x38f114=_0x184ac9['getContainedElement']();if('resizeTable'===_0x184ac9['subType']&&_0x38f114===_0x1ed193){_0x184ac9['author']!==_0x54fd26&&_0x184ac9['discard']();const _0x520fab=_0x184ac9['data']['commandParams'];_0x4c15c8=_0x520fab[0x0]['tableWidth'],_0x7ff2e2=_0x520fab[0x0]['columnWidths'];break;}}_0x441c2c({'table':_0x1ed193,'tableWidth':_0x501e25,'columnWidths':_0x14d1fb}),_0x4d152d['markBlockFormat'](_0x1ed193,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4c15c8,'columnWidths':_0x7ff2e2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x213b29){if('formatBlock'!=_0x213b29['type']&&'formatInline'!=_0x213b29['type'])return;const {data:_0x39d9d4}=_0x213b29;if(_0x39d9d4&&'resizeTable'===_0x39d9d4['formatGroupId']){const _0x5f40c3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5f40c3)};}}}class Dt extends _0x422b73{['afterInit'](){const _0x4dbbf9=this['editor'];_0x4dbbf9['plugins']['has']('Template')&&_0x4dbbf9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x422b73{['afterInit'](){const _0x5ef3b4=this['editor'];if(!_0x5ef3b4['commands']['get']('insertTableOfContents'))return;_0x5ef3b4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1301c2=_0x5ef3b4['plugins']['get']('TrackChangesEditing'),_0x1d7819=_0x5ef3b4['locale'];_0x1301c2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2c8b8d=>o(_0x1d7819,'ELEMENT_TABLE_OF_CONTENTS',_0x2c8b8d));}}class $t extends _0x422b73{['afterInit'](){const _0x3a83a0=this['editor'];if(!_0x3a83a0['plugins']['has']('Title'))return;const _0x3d9e33=_0x3a83a0['plugins']['get']('TrackChangesEditing');_0x3d9e33['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3a83a0['locale'],'ELEMENT_TITLE')),_0x3a83a0['model']['document']['registerPostFixer'](_0x120e3b=>{let _0x437ae8=!0x1;const _0x2eca30=Array['from'](_0x3a83a0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20d182,data:_0x343ef7}of _0x2eca30){const {group:_0x11af8f}=_0x3d9e33['_splitMarkerName'](_0x20d182);if('suggestion'!==_0x11af8f||!_0x343ef7['newRange'])continue;const _0xe8feaf=_0x343ef7['newRange'],_0x3495dd=_0xe8feaf['end']['nodeBefore'];if(!_0x3495dd||!_0x3495dd['is']('element','title-content'))continue;if(!_0xe8feaf['start']['isTouching'](_0xe8feaf['end']))continue;const _0x351191=_0x3a83a0['model']['schema']['getNearestSelectionRange'](_0xe8feaf['end'],'forward');if(_0x351191&&_0x351191['isCollapsed']){const _0x2d577d=_0x120e3b['createRange'](_0xe8feaf['start'],_0x351191['start']);_0x2d577d['isEqual'](_0xe8feaf)||(_0x120e3b['updateMarker'](_0x20d182,{'range':_0x2d577d}),_0x437ae8=!0x0);}_0x437ae8||(_0x120e3b['removeMarker'](_0x20d182),_0x437ae8=!0x0);}return _0x437ae8;});}}class Bt extends _0x422b73{['afterInit'](){const _0x3fd7ef=this['editor'],_0x579b61=_0x3fd7ef['plugins']['get']('TrackChangesEditing');_0x3fd7ef['plugins']['has']('UndoEditing')&&(_0x579b61['enableCommand']('undo'),_0x579b61['enableCommand']('redo'));}}class xt extends _0x422b73{static get['requires'](){return[It];}['afterInit'](){const _0x299815=this['editor'];if(!_0x299815['plugins']['has']('TableCaptionEditing'))return;_0x299815['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x422b73{['tableProperties'];['tableCellProperties'];constructor(_0xd7a0dd){super(_0xd7a0dd),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x468a39=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x588cf0 of this['tableProperties'])_0x468a39['enableCommand'](_0x588cf0,(_0x22156a,_0x5cd4ae)=>{const _0x36c95b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x588cf0,[_0x36c95b],this['tableProperties'],'tableProperties',_0x22156a,_0x5cd4ae);});_0x468a39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x468a39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x468a39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40875c,_0x2a13b8)=>this['handleDiscardAction'](this['tableProperties'],_0x40875c,_0x2a13b8)),_0x468a39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x53f607 of this['tableCellProperties'])_0x468a39['enableCommand'](_0x53f607,(_0x8bcf32,_0x57615d)=>{const _0x5f257e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x53f607,_0x5f257e,this['tableCellProperties'],'tableCellProperties',_0x8bcf32,_0x57615d);});_0x468a39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x468a39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x468a39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1d685c,_0x30e37b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1d685c,_0x30e37b)),_0x468a39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x468a39['descriptionFactory']['registerDescriptionCallback'](_0x164631=>this['handleSuggestionDescription'](_0x164631));}['_handlePropertyChange'](_0x56d4ae,_0x1c4cc1,_0x3b3d2c,_0x33f325,_0x1a7560,_0x484efd){const _0x3cde3d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x484efd['batch'],()=>{for(const _0xcc10b8 of _0x1c4cc1){if(this['_getSuggestion'](_0xcc10b8,_0x33f325))_0x1a7560(_0x484efd);else{const _0x35d47d={};for(const _0xcac569 of _0x3b3d2c){const _0x4c9ce0=_0xcc10b8['getAttribute'](_0xcac569);void 0x0!==_0x4c9ce0&&(_0x35d47d[_0xcac569]=_0x4c9ce0);}_0x1a7560(_0x484efd),_0x3cde3d['markBlockFormat'](_0xcc10b8,{'commandParams':[_0x35d47d]},[],_0x33f325);}}});}['handleDiscardAction'](_0x101470,_0x23e106,_0x62c66){const _0x2cb0f3=_0x23e106[0x0]['start']['nodeAfter'],_0x5f1164=_0x62c66['commandParams'][0x0];this['editor']['model']['change'](_0x352df8=>{for(const _0x597870 of _0x101470)void 0x0!==_0x5f1164[_0x597870]?_0x352df8['setAttribute'](_0x597870,_0x5f1164[_0x597870],_0x2cb0f3):_0x352df8['removeAttribute'](_0x597870,_0x2cb0f3);});}['handleSuggestionDescription'](_0x8c33a6){if(_0x8c33a6['data'])switch(_0x8c33a6['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x981422,_0x2cb910){const _0x27fc7d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x46ff73 of _0x27fc7d['getSuggestions']({'skipNotAttached':!0x0})){const _0x463a05=_0x46ff73['getContainedElement']();if(_0x46ff73['subType']===_0x2cb910&&_0x463a05===_0x981422)return _0x46ff73;}return null;}}const m='$elementName';class p extends _0x422b73{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x48deeb,_0x1bff41,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x89a01c){function _0x2d7de0(_0x4867fb){return _0x4867fb['map'](_0x49e938=>String['fromCharCode'](_0x49e938))['join']('');}super(_0x89a01c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x9a9270,_0x1f6358,_0x45a4e7,_0x37a907)=>{this['_model']['change'](()=>{for(const _0x1dfe70 of[..._0x37a907,..._0x45a4e7])this['_model']['markers']['has'](_0x1dfe70)&&_0x89a01c['editing']['reconvertMarker'](_0x1dfe70);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x89a01c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x89a01c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x89a01c['config']['get']('trackChanges.trackFormatChanges'),_0x89a01c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x89a01c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x89a01c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2d7de0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2d7de0([0x34,0x30,0x34,0x38,0x31,0x36,0x35,0x36]);}['init'](){const _0x550bba=this['editor'],_0x48b225=(_0x3eee72,_0x6105c5)=>{if('attribute'!=_0x3eee72)return'ck-suggestion-marker-'+_0x3eee72;const _0x5c009c=_0x6105c5['split']('|')[0x0];return this['_isBlockAttribute'](_0x5c009c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x550bba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x21b23e=>{const {id:_0x20a6d7,authorId:_0x2faecd,type:_0x207206,subType:_0x533772}=this['_splitMarkerName'](_0x21b23e['markerName']),_0x4da731=['ck-suggestion-marker',_0x48b225(_0x207206,_0x533772)];let _0x525859=0xbb8;return this['activeMarkers']['includes'](_0x21b23e['markerName'])&&(_0x4da731['push']('ck-suggestion-marker--active'),_0x525859=0xbc2),'deletion'==_0x207206&&(_0x525859+=0x5),{'classes':_0x4da731,'attributes':{'data-suggestion':_0x20a6d7,'data-author-id':_0x2faecd},'priority':_0x525859};}}),_0x550bba['conversion']['for']('dataDowncast')['add'](_0x5a89c6=>{_0x5a89c6['on']('addMarker:suggestion',(_0x485123,_0x34799b,_0x4ed3cf)=>{if(!_0x4ed3cf['options']['showSuggestionHighlights'])return;const _0x45f848=_0x34799b['item'];if(!_0x45f848)return;const _0x15a28f=_0x4ed3cf['mapper']['toViewElement'](_0x45f848);_0x550bba['model']['schema']['isObject'](_0x45f848)&&_0x15a28f&&!_0x15a28f['getCustomProperty']('widget')&&_0x15a28f['is']('containerElement')&&_0x9ddde6(_0x15a28f,_0x4ed3cf['writer']);},{'priority':'high'});}),_0x550bba['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x44784e,_0x31131e)=>{if(!_0x31131e['options']['showSuggestionHighlights'])return null;const {type:_0xbd05ee,subType:_0x571cd8}=this['_splitMarkerName'](_0x44784e['markerName']);return{'classes':['ck-suggestion-marker',_0x48b225(_0xbd05ee,_0x571cd8)],'priority':0xbb8};}});const _0x554280=({showActiveMarkers:_0x5c6104=!0x0,isAttributeSuggestion:_0x36ed01=!0x1}={})=>(_0x589b70,_0x482d9a,_0x8e187)=>{if(!_0x482d9a['item'])return;const {id:_0x315eed,authorId:_0x35bf0f}=this['_splitMarkerName'](_0x482d9a['markerName']);if(_0x36ed01){const _0x58bcfe=this['_suggestions']['get'](_0x315eed),_0x389569=this['_getAttributeKey'](_0x58bcfe);if(!this['_isBlockAttribute'](_0x389569))return;}if(_0x482d9a['item']['is']('selection'))return void _0x8e187['consumable']['consume'](_0x482d9a['item'],_0x589b70['name']);const _0x2d27b8=_0x8e187['mapper']['toViewElement'](_0x482d9a['item']);if(_0x482d9a['item']['is']('element')&&_0x550bba['model']['schema']['isBlock'](_0x482d9a['item'])&&!_0x2d27b8['getCustomProperty']('addHighlight')){_0x8e187['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d27b8),_0x8e187['writer']['setAttribute']('data-suggestion',_0x315eed,_0x2d27b8),_0x8e187['writer']['setAttribute']('data-author-id',_0x35bf0f,_0x2d27b8),_0x8e187['mapper']['bindElementToMarker'](_0x2d27b8,_0x482d9a['markerName']),_0x5c6104&&(this['activeMarkers']['includes'](_0x482d9a['markerName'])?_0x8e187['writer']['addClass']('ck-suggestion-marker--active',_0x2d27b8):_0x8e187['writer']['removeClass']('ck-suggestion-marker--active',_0x2d27b8));for(const _0x20de49 of _0x550bba['model']['createRangeIn'](_0x482d9a['item'])['getItems']())_0x8e187['consumable']['consume'](_0x20de49,_0x589b70['name']);_0x8e187['consumable']['consume'](_0x482d9a['item'],_0x589b70['name']);}};_0x550bba['conversion']['for']('dataDowncast')['add'](_0x4a1908=>{_0x4a1908['on']('addMarker:suggestion:formatBlock',(_0x474625,_0x3f6d45,_0x4b199a)=>{_0x4b199a['options']['showSuggestionHighlights']&&_0x554280({'showActiveMarkers':!0x1})(_0x474625,_0x3f6d45,_0x4b199a);},{'priority':'highest'});}),_0x550bba['conversion']['for']('dataDowncast')['add'](_0x239dfc=>{_0x239dfc['on']('addMarker:suggestion:attribute',(_0x47fa1c,_0x25ad11,_0x5ee642)=>{_0x5ee642['options']['showSuggestionHighlights']&&_0x554280({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x47fa1c,_0x25ad11,_0x5ee642);},{'priority':'highest'});}),_0x550bba['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fd03d,_0x147798)=>_0x147798['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fd03d['substr'](0xb)}}),_0x550bba['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x748525,{writer:_0x198646})=>{let _0x1c8f1f='suggestion:'+_0x748525['getAttribute']('suggestion-type')+':'+_0x748525['getAttribute']('id');return _0x748525['getAttribute']('marker-count')&&(_0x1c8f1f+=':'+_0x748525['getAttribute']('marker-count')),_0x198646['createElement']('$marker',{'data-name':_0x1c8f1f});}}),_0x550bba['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x550bba['conversion']['for']('editingDowncast')['add'](_0x2da7a6=>{_0x2da7a6['on']('addMarker:suggestion:formatBlock',_0x554280(),{'priority':'high'});}),_0x550bba['conversion']['for']('editingDowncast')['add'](_0x441f22=>{_0x441f22['on']('addMarker:suggestion:attribute',_0x554280({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x550bba['conversion']['for']('editingDowncast')['add'](_0x30eadd=>{_0x30eadd['on']('removeMarker:suggestion:formatBlock',(_0x2b0850,_0x3f626f,_0x3ea464)=>{const _0x1fda03=_0x3ea464['mapper']['markerNameToElements'](_0x3f626f['markerName']);if(_0x1fda03){for(const _0x1da19a of _0x1fda03)_0x1da19a['getCustomProperty']('addHighlight')||(_0x3ea464['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1da19a),_0x3ea464['writer']['removeAttribute']('data-suggestion',_0x1da19a),_0x3ea464['writer']['removeAttribute']('data-author-id',_0x1da19a),_0x3ea464['mapper']['unbindElementFromMarkerName'](_0x1da19a,_0x3f626f['markerName']));}},{'priority':'high'});}),_0x550bba['conversion']['for']('editingDowncast')['add'](_0x3a177a=>{_0x3a177a['on']('removeMarker:suggestion:attribute',(_0x42e281,_0x2b7c07,_0x38da60)=>{const _0x2c77dd=_0x38da60['mapper']['markerNameToElements'](_0x2b7c07['markerName']);if(!_0x2c77dd)return;const {id:_0x75ca7}=this['_splitMarkerName'](_0x2b7c07['markerName']),_0x758d60=this['_suggestions']['get'](_0x75ca7),_0x144c77=this['_getAttributeKey'](_0x758d60);if(this['_isBlockAttribute'](_0x144c77)){for(const _0x59569c of _0x2c77dd)_0x59569c['getCustomProperty']('addHighlight')||(_0x38da60['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59569c),_0x38da60['writer']['removeAttribute']('data-suggestion',_0x59569c),_0x38da60['writer']['removeAttribute']('data-author-id',_0x59569c),_0x38da60['mapper']['unbindElementFromMarkerName'](_0x59569c,_0x2b7c07['markerName']));}},{'priority':'high'});}),_0x550bba['model']['document']['registerPostFixer'](_0x319c9b=>{let _0x299a9a=!0x1;const _0x7857be=Array['from'](_0x550bba['model']['document']['differ']['getChangedMarkers']()),_0xf2343=new Set();for(const {name:_0x2576c2,data:_0x2e438a}of _0x7857be){const {group:_0x5e3da1,type:_0x19331d,subType:_0x3f317a,id:_0x281285}=this['_splitMarkerName'](_0x2576c2);if('suggestion'!==_0x5e3da1)continue;const _0x172131=this['_suggestions']['get'](_0x281285);if(null!=_0x2e438a['newRange']){'formatInline'==_0x19331d&&(_0x299a9a=_0x299a9a||Ut(_0x2e438a['newRange'],_0x2576c2,_0x319c9b,_0x550bba['model']['schema']));const _0x3a1f2d='attribute'==_0x19331d&&this['_isBlockAttribute'](_0x3f317a['split']('|')[0x0]);if(_0x2e438a['newRange']['isCollapsed']||'$graveyard'==_0x2e438a['newRange']['root']['rootName']||'formatBlock'==_0x19331d&&!Ft(_0x2e438a['newRange'])||_0x3a1f2d&&!Ft(_0x2e438a['newRange'])||'deletion'==_0x19331d&&!(!Vt(_0x5d9f28=_0x2e438a['newRange'])&&!function(_0x15c019){return _0x15c019['start']['parent']==_0x15c019['end']['nodeBefore']&&_0x15c019['start']['isAtEnd'];}(_0x5d9f28)))_0x319c9b['removeMarker'](_0x2576c2),_0x299a9a=!0x0;else{if(!_0x172131||!_0x172131['isInContent'])continue;if(_0x2e438a['newRange']&&_0x2e438a['oldRange']&&_0x2e438a['newRange']['isEqual'](_0x2e438a['oldRange']))continue;_0xf2343['add'](_0x172131);}}}var _0x5d9f28;return _0xf2343['size']>0x0&&(_0x299a9a=!!this['_joinWithAdjacentSuggestions'](_0xf2343)||_0x299a9a),_0x299a9a;}),_0x550bba['model']['document']['registerPostFixer'](_0x1f7cc4=>{let _0x4c87f0=!0x1;for(const _0x128826 of _0x550bba['model']['document']['differ']['getChanges']())if('insert'==_0x128826['type'])for(const _0x1d6bbc of this['_suggestions']['values']()){if(_0x1d6bbc['isMultiRange']||!_0x1d6bbc['isInContent'])continue;const _0x5c52a5='formatBlock'==_0x1d6bbc['type'],_0x8da4d=this['_getAttributeKey'](_0x1d6bbc),_0x45b7cf=_0x8da4d&&this['_isBlockAttribute'](_0x8da4d);if(!_0x5c52a5&&!_0x45b7cf)continue;const _0x26f173=_0x1d6bbc['getFirstRange']();if(_0x26f173['start']['parent']!=_0x26f173['end']['parent']&&!_0x26f173['end']['isAtEnd']){const _0x351985=_0x550bba['model']['createPositionAt'](_0x26f173['start']['nodeAfter'],'end'),_0x522ee5=_0x550bba['model']['createRange'](_0x26f173['start'],_0x351985);_0x1f7cc4['updateMarker'](_0x1d6bbc['getFirstMarker'](),{'range':_0x522ee5}),_0x4c87f0=!0x0;}}return _0x4c87f0;}),_0x550bba['model']['document']['registerPostFixer'](_0x1d56a3=>this['_processAttributeChanges'](_0x1d56a3)),_0x550bba['model']['document']['registerPostFixer'](_0x48dcb9=>!_0x48dcb9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x48dcb9)),_0x550bba['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x550bba['model']['document']['on']('change:data',(_0x1ebf0d,_0x446d2a)=>{if(!_0x446d2a['isLocal']||_0x446d2a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x48be53=_0x550bba['model']['document']['differ']['getChanges']();if(0x0==_0x48be53['length'])return;const _0x123a41=[],_0x2b28db=_0x48be53['filter'](_0x560b11=>'attribute'==_0x560b11['type']),_0x14aa9e=_0x48be53['filter'](_0x29f4c2=>'insert'==_0x29f4c2['type']&&'$text'!=_0x29f4c2['name']);for(const _0x99fc85 of _0x2b28db)this['_isRegisteredAttribute'](_0x99fc85['attributeKey'])&&_0x123a41['push']({'key':_0x99fc85['attributeKey'],'newValue':_0x99fc85['attributeNewValue'],'oldValue':_0x99fc85['attributeOldValue'],'range':Pt(_0x99fc85['range'],_0x550bba['model'])});for(const _0x3f2552 of _0x14aa9e){if('rename'!=_0x3f2552['action']&&'refresh'!=_0x3f2552['action'])continue;const _0x4a661d=Lt(_0x3f2552['position']['nodeAfter'],_0x550bba['model']),_0x345fc4=_0x3f2552['before'];'rename'==_0x3f2552['action']&&_0x123a41['push']({'key':m,'newValue':_0x3f2552['name'],'oldValue':_0x345fc4['name'],'range':_0x4a661d});for(const [_0x3f1401,_0x3f816e]of _0x345fc4['attributes']){if(!this['_isRegisteredAttribute'](_0x3f1401))continue;const _0x45ef56=_0x3f2552['attributes']['get'](_0x3f1401);_0x3f816e!==_0x45ef56&&_0x123a41['push']({'key':_0x3f1401,'newValue':_0x45ef56,'oldValue':_0x3f816e,'range':_0x4a661d});}for(const [_0x273a52,_0x42cc9f]of _0x3f2552['attributes'])this['_isRegisteredAttribute'](_0x273a52)&&(_0x345fc4['attributes']['has'](_0x273a52)||_0x123a41['push']({'key':_0x273a52,'newValue':_0x42cc9f,'oldValue':null,'range':_0x4a661d}));}0x0!=_0x123a41['length']&&_0x550bba['model']['enqueueChange'](_0x446d2a,_0x20453a=>{const _0x3589b4=_0xc0c664();for(const {range:_0x11a1ad,key:_0x309bb6,oldValue:_0x133bda,newValue:_0x15d885}of _0x123a41)this['markAttributeChange'](_0x11a1ad,_0x309bb6,_0x133bda,_0x15d885,{'groupId':_0x3589b4});this['_reduceExistingSuggestions'](_0x20453a,_0x123a41);});},{'priority':'lowest'}),_0x550bba['model']['markers']['on']('update:suggestion',(_0x33d55e,_0x3f336b,_0x597ccc)=>{if(null==_0x597ccc){const {id:_0x554dfe}=this['_splitMarkerName'](_0x3f336b['name']),_0x421106=this['_suggestions']['get'](_0x554dfe);_0x421106&&_0x421106['addMarkerName'](_0x3f336b['name']);}}),_0x550bba['model']['document']['on']('change:data',()=>{const _0xe67073=Array['from'](_0x550bba['model']['document']['differ']['getChangedMarkers']())['filter'](_0x34ca60=>'suggestion'===this['_splitMarkerName'](_0x34ca60['name'])['group']);if(0x0===_0xe67073['length'])return;_0xe67073['sort']((_0x17bd1e,_0x23262c)=>{const _0x1ea440=_0x17bd1e['data']['oldRange'],_0x20f076=_0x23262c['data']['oldRange'];return null===_0x1ea440&&null===_0x20f076?0x0:null===_0x1ea440&&null!==_0x20f076?-0x1:null!==_0x1ea440&&null===_0x20f076?0x1:_0x1ea440['start']['isBefore'](_0x20f076['start'])?-0x1:0x1;});const _0x2b30a9=new Set(),_0x357d68=new Set();for(const {name:_0x5ec95b,data:_0x573506}of _0xe67073){const {id:_0x30c77b}=this['_splitMarkerName'](_0x5ec95b);if(null===_0x573506['oldRange']){const _0x408ed9=this['_handleNewSuggestionMarker'](_0x5ec95b);_0x357d68['add'](_0x408ed9);}else{const _0x1247b7=this['_suggestions']['get'](_0x30c77b);null!==_0x573506['newRange']||_0x1247b7['isInContent']?(_0x2b30a9['add'](_0x1247b7['head']),_0x357d68['add'](_0x1247b7)):this['_removeSuggestion'](_0x1247b7);}}_0x357d68['size']>0x0&&this['_refreshSuggestionsChain'](_0x357d68);for(const _0x31bb30 of _0x2b30a9)this['fire']('suggestionChanged',_0x31bb30);}),_0x550bba['model']['on']('applyOperation',(_0x17165b,_0x3f38a7)=>{const _0x54f2e0=_0x3f38a7[0x0];if(!this['_suggestions']['size'])return;if(!_0x54f2e0['isDocumentOperation'])return;if(_0x54f2e0['batch']['isUndo']||!_0x54f2e0['batch']['isLocal'])return;let _0xc945f5,_0x3b0ac1;switch(_0x54f2e0['type']){case'insert':_0xc945f5=_0x550bba['model']['createPositionAt'](_0x54f2e0['position']),_0x3b0ac1=_0xc945f5['getShiftedBy'](_0x54f2e0['howMany']);break;case'split':_0xc945f5=_0x550bba['model']['createPositionAt'](_0x54f2e0['splitPosition']),_0x3b0ac1=_0x550bba['model']['createPositionAt'](_0x54f2e0['moveTargetPosition']);break;case'move':_0xc945f5=_0x550bba['model']['createPositionAt'](_0x54f2e0['targetPosition']),_0x3b0ac1=_0xc945f5['getShiftedBy'](_0x54f2e0['howMany']);break;default:return;}const _0x3dbbd3=_0x550bba['model']['createRange'](_0xc945f5,_0x3b0ac1);_0x550bba['model']['change'](()=>{for(const {suggestion:_0x59c056,meta:_0x1cc199}of this['_findSuggestions'](_0x3dbbd3)){if(_0x59c056['isMultiRange'])continue;if('formatInline'==_0x59c056['type'])continue;const _0xdfc7fa=this['_getAttributeKey'](_0x59c056);if(_0xdfc7fa&&this['_isBlockAttribute'](_0xdfc7fa)&&'split'!=_0x54f2e0['type'])continue;const _0x5a80bf=_0x59c056['data']&&_0x59c056['data']['multipleBlocks'];('formatBlock'!=_0x59c056['type']||'split'==_0x54f2e0['type']&&!_0x5a80bf)&&(_0x1cc199['containsRangeInObject']||'insertion'==_0x59c056['type']&&_0x1cc199['isOwn']||_0x59c056['getFirstRange']()['containsRange'](_0x3dbbd3)&&this['_breakSuggestionMarker'](_0x59c056,_0xc945f5,_0x3b0ac1));}});},{'priority':'lowest'}),_0x550bba['model']['on']('deleteContent',(_0x529184,_0x415cdb)=>{const _0x3d0385=_0x415cdb[0x0],_0x644ccf=_0x415cdb[0x1];if(_0x644ccf&&_0x644ccf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3d0385['isCollapsed'])return;const _0x1012e4=_0x550bba['model']['schema'],{start:_0x483169,end:_0x4da6d5}=_0x3d0385['getFirstRange'](),_0x1177b6=_0x483169['nodeAfter']&&_0x1012e4['isLimit'](_0x483169['nodeAfter'])?null:_0x1012e4['getNearestSelectionRange'](_0x483169,'forward'),_0x4d25a5=_0x4da6d5['nodeBefore']&&_0x1012e4['isLimit'](_0x4da6d5['nodeBefore'])?null:_0x1012e4['getNearestSelectionRange'](_0x4da6d5,'backward'),_0x4cc0c9=_0x550bba['model']['createRange'](_0x1177b6?_0x1177b6['start']:_0x483169,_0x4d25a5?_0x4d25a5['end']:_0x4da6d5);_0x550bba['model']['change'](_0x267ed8=>{this['markDeletion'](_0x4cc0c9);const _0x1e4dd0=_0x550bba['model']['schema']['getNearestSelectionRange'](_0x4cc0c9['start']);_0x3d0385['is']('documentSelection')?_0x267ed8['setSelection'](_0x1e4dd0):_0x3d0385['setTo'](_0x1e4dd0);}),_0x529184['stop']();},{'priority':_0x4bafaa['normal']+0xa}),_0x550bba['model']['on']('insertContent',(_0x2309e1,_0x1b3438)=>{const _0x3befe5=_0x1b3438[_0x1b3438['length']-0x1];_0x3befe5&&_0x3befe5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x550bba['model']['change'](()=>{let _0x14423b=_0x550bba['model']['insertContent'](_0x1b3438[0x0],_0x1b3438[0x1],_0x1b3438[0x2],{'forceDefaultExecution':!0x0});if(!_0x14423b)return;_0x2309e1['return']=_0x14423b['clone']();const _0x57b24a=_0x14423b['end']['nodeBefore'],_0x5db388=_0x550bba['model']['schema'];_0x57b24a&&_0x5db388['isBlock'](_0x57b24a)&&!_0x5db388['isObject'](_0x57b24a)&&(_0x14423b=_0x550bba['model']['createRange'](_0x14423b['start'],_0x550bba['model']['createPositionAt'](_0x57b24a,'end'))),this['markInsertion'](_0x14423b);}),_0x2309e1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4d2b8f=new x(_0x550bba,this['_suggestions']);_0x550bba['commands']['add']('acceptSuggestion',_0x4d2b8f),this['enableCommand']('acceptSuggestion');const _0x376ae7=new R(_0x550bba,this['_suggestions']);_0x550bba['commands']['add']('discardSuggestion',_0x376ae7),this['enableCommand']('discardSuggestion'),_0x550bba['commands']['add']('acceptAllSuggestions',new E(_0x550bba,_0x4d2b8f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x550bba['commands']['add']('discardAllSuggestions',new E(_0x550bba,_0x376ae7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x550bba['commands']['add']('acceptSelectedSuggestions',new O(_0x550bba,_0x4d2b8f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x550bba['commands']['add']('discardSelectedSuggestions',new O(_0x550bba,_0x376ae7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xfa39e8=_0x550bba['plugins']['get']('CommentsRepository');this['listenTo'](_0xfa39e8,'addComment',(_0x564e5a,{threadId:_0x1ac345})=>{const _0x5f419e=this['_suggestions']['get'](_0x1ac345);_0x5f419e&&_0x5f419e['commentThread']&&0x1===_0x5f419e['commentThread']['length']&&this['_updateSuggestionData'](_0x1ac345,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xfa39e8,'removeComment',(_0x5d7122,{threadId:_0x18a4cc})=>{const _0x1b7048=this['_suggestions']['get'](_0x18a4cc);_0x1b7048&&_0x1b7048['commentThread']&&!_0x1b7048['commentThread']['length']&&this['_updateSuggestionData'](_0x18a4cc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x373c7f){if(this['_adapter'])throw new _0x51a471('track-changes-adapter-already-set',this);this['_adapter']=_0x373c7f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4a2c41=!0x1,toJSON:_0x1e3dec=!0x1}={}){const _0x5559d0=[];for(const _0x21a10e of this['_suggestions']['values']())_0x4a2c41&&!_0x21a10e['isInContent']||_0x5559d0['push'](_0x21a10e);return _0x1e3dec?_0x5559d0['map'](_0x4ca866=>_0x4ca866['toJSON']()):_0x5559d0;}['getSuggestion'](_0x48d7c4){const _0x2d17b3=this['_suggestions']['get'](_0x48d7c4);if(!_0x2d17b3)throw new _0x51a471('track-changes-suggestion-not-found',this);return _0x2d17b3;}['hasSuggestion'](_0x377574){return this['_suggestions']['has'](_0x377574);}['addSuggestionData'](_0x253eff){const {authorId:_0xbf019,id:_0x55ac08,attributes:_0x40ba6c}=_0x253eff,[_0x4e5f00,_0x5e6697]=_0x253eff['type']['split'](':'),_0x5c2136=this['_suggestions']['get'](_0x55ac08)||this['_createSuggestion'](_0x4e5f00,_0x5e6697,_0x55ac08,_0xbf019,_0x40ba6c);if(this['_addThreadToSuggestion'](_0x5c2136),this['_checkSuggestionCorrectness'](_0x5c2136,_0x4e5f00,_0x5e6697||null,_0xbf019),_0x5c2136['createdAt']=_0x253eff['createdAt'],_0x5c2136['_isDataLoaded']=!0x0,_0x40ba6c&&_0x40ba6c['@external']){const _0x55054c=_0x40ba6c['@external'],_0xac49f6=this['_getExternalAuthor'](_0x55054c['authorName']);_0x5c2136['authoredAt']=_0x55054c['createdAt'],_0x5c2136['author']=_0xac49f6,_0x5c2136['isExternal']=!0x0;}else _0x5c2136['authoredAt']=_0x253eff['createdAt'];switch(_0x253eff['data']&&(_0x5c2136['data']=_0x253eff['data']),_0x253eff['attributes']&&(_0x5c2136['attributes']=_0x253eff['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5c2136['_saved']=!0x0),this['_suggestionState']['get'](_0x5c2136)){case'notReady':this['_suggestionState']['set'](_0x5c2136,'dataReady');break;case'markerReady':_0x5c2136['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5c2136])),this['_refreshSuggestionsChain'](new Set([_0x5c2136])),this['_suggestionState']['set'](_0x5c2136,'ready'),this['fire']('suggestionLoaded',_0x5c2136)):this['_suggestionState']['set'](_0x5c2136,'removed');}return _0x5c2136;}['acceptSuggestion'](_0x27687d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b4317 of _0x27687d['getAllAdjacentSuggestions']())_0x1b4317['accept']();});});}['discardSuggestion'](_0x32fcf3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x332df6 of _0x32fcf3['getAllAdjacentSuggestions']())_0x332df6['discard']();});});}['enableCommand'](_0x3e388b,_0x372aef){const _0x199983=this['editor']['commands']['get'](_0x3e388b);if(!_0x199983)throw new _0x51a471('track-changes-command-not-found',this,{'commandName':_0x3e388b});if(this['_enabledCommands']['has'](_0x199983))throw new _0x51a471('track-changes-enable-command-twice',this,{'commandName':_0x3e388b});this['_enabledCommands']['add'](_0x199983),_0x372aef&&_0x199983['on']('execute',(_0x298f05,_0x145129)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x145129['length']>0x0&&_0x145129[_0x145129['length']-0x1]&&_0x145129[_0x145129['length']-0x1]['forceDefaultExecution']?_0x145129['pop']():(_0x298f05['return']=_0x372aef((..._0x58c422)=>_0x199983['execute'](..._0x58c422,{'forceDefaultExecution':!0x0}),..._0x145129),_0x298f05['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x18a263){let _0x2ba62a,_0x5b6d7d;const _0x3d6e0a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2ba62a=_0x18a263();}catch(_0x14520b){_0x5b6d7d=_0x14520b;}return _0x3d6e0a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5b6d7d&&_0x51a471['rethrowUnexpectedError'](_0x5b6d7d,this),_0x2ba62a;}['markInsertion'](_0x5e647e,_0x38301b=null,_0x386639={}){if(_0x5e647e['isCollapsed'])return null;const _0x3b153b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2ed1bb,meta:_0xfa0ff0}of this['_findSuggestions'](_0x5e647e,'insertion'))if(_0xfa0ff0['isOwn']){if(!_0xfa0ff0['isNextTo']){if(_0xfa0ff0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x2ed1bb,_0x386639))continue;return _0x2ed1bb;}if(qt(_0x2ed1bb,_0x386639))return _0x2ed1bb;this['_breakSuggestionMarker'](_0x2ed1bb,_0x5e647e['start'],_0x5e647e['end']);break;}if(_0x38301b==_0x2ed1bb['subType']&&qt(_0x2ed1bb,_0x386639)){const _0x5e8515=_0x2ed1bb['getFirstRange']();return _0x5e8515['start']['isEqual'](_0x5e647e['end'])?this['_setSuggestionRange'](_0x2ed1bb,this['_model']['createRange'](_0x5e647e['start'],_0x5e8515['end'])):this['_setSuggestionRange'](_0x2ed1bb,this['_model']['createRange'](_0x5e8515['start'],_0x5e647e['end'])),_0x2ed1bb;}}const _0x5ed346=_0xc0c664(),_0x1fe4cb=_0x3b153b['id'],_0x413609=_0x38301b?'insertion:'+_0x38301b:'insertion',_0x55fd0b=this['_setSuggestionData']({'id':_0x5ed346,'type':_0x413609,'createdAt':new Date(),'authorId':_0x1fe4cb,'attributes':_0x386639});return this['_addSuggestionMarker'](_0x413609,_0x5ed346,_0x1fe4cb,_0x5e647e),_0x55fd0b;}['markMultiRangeInsertion'](_0x5b9653,_0x59d2ac='multi',_0x2fcff6={}){const _0x493756=this['editor']['plugins']['get']('Users')['me'],_0x44190a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x59d2ac,'join');for(const _0x2dc203 of this['getSuggestions']())if(_0x2dc203['author']['id']==_0x493756['id']&&'insertion'==_0x2dc203['type']&&_0x2dc203['subType']==_0x59d2ac&&qt(_0x2dc203,_0x2fcff6)&&(_0x44190a(_0x2dc203['getRanges'](),_0x5b9653)||_0x44190a(_0x5b9653,_0x2dc203['getRanges']()))){for(const _0x202793 of _0x5b9653)_0x2dc203['addRange'](_0x202793);return _0x2dc203;}for(const {suggestion:_0x3f7ff5,meta:_0x533f13}of this['_findSuggestions'](_0x5b9653,'insertion')){if(!_0x533f13['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x533f13['containsRangeInObject'])continue;if(!qt(_0x3f7ff5,_0x2fcff6))continue;let _0x73fc09=!0x0;for(const _0x18492e of _0x3f7ff5['getRanges']())for(const _0x15ea46 of _0x5b9653)if(!_0x18492e['containsRange'](_0x15ea46)){_0x73fc09=!0x1;break;}if(_0x73fc09)return _0x3f7ff5;}const _0x2885ce=_0xc0c664(),_0x4a2ceb=_0x493756['id'],_0x50f431='insertion:'+_0x59d2ac,_0x304cd1=this['_setSuggestionData']({'id':_0x2885ce,'type':_0x50f431,'createdAt':new Date(),'authorId':_0x4a2ceb,'attributes':_0x2fcff6});for(const _0x18944d of _0x5b9653)this['_addSuggestionMarker'](_0x50f431,_0x2885ce,_0x4a2ceb,_0x18944d,u['getMultiRangeId']());return _0x304cd1;}['markInlineFormat'](_0x15f9f4,_0x497dcb,_0x5b8c31=null,_0x275617={}){if(_0x5b8c31=_0x5b8c31||Gt(_0x497dcb),_0x15f9f4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x98446=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b8c31,'accept');return this['forceDefaultExecution'](()=>_0x98446([_0x15f9f4],_0x497dcb,_0x275617)),null;}const _0x192647=this['editor']['plugins']['get']('Users')['me'],_0x3d117a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x52ee11,meta:_0x103b46}of this['_findSuggestions'](_0x15f9f4,'insertion'))_0x103b46['isOwn']&&!_0x103b46['isInsideObject']&&_0x3d117a['push'](..._0x52ee11['getRanges']());}const _0x48c53e=function(_0x2a64ef,_0x4e92e8){const _0x474f8b=[];for(const _0x339039 of _0x4e92e8){const _0x4abc6f=_0x2a64ef['getIntersection'](_0x339039);_0x4abc6f&&_0x474f8b['push'](_0x4abc6f);}return _0x474f8b;}(_0x15f9f4,_0x3d117a),_0x2908c5=function(_0x477c84,_0x328e2d){const _0x3037b=[_0x477c84];for(const _0x4e87b8 of _0x328e2d){let _0x8aab38=0x0;for(;_0x8aab38<_0x3037b['length'];){const _0x3aeb4c=_0x3037b[_0x8aab38]['getDifference'](_0x4e87b8);_0x3037b['splice'](_0x8aab38,0x1,..._0x3aeb4c),_0x8aab38+=_0x3aeb4c['length'];}}return _0x3037b;}(_0x15f9f4,_0x3d117a);_0x48c53e['length']&&this['_model']['change'](()=>{for(const _0x2ae7f8 of _0x48c53e){const _0x127257=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b8c31,'accept');this['forceDefaultExecution'](()=>_0x127257([_0x2ae7f8],_0x497dcb,_0x275617));}});for(const _0x37ba5f of _0x2908c5){let _0x4b821d=null,_0x1ac757=_0x37ba5f['start'],_0x3331e8=_0x37ba5f['end'];for(const {suggestion:_0xd01f3e,meta:_0x412a68}of this['_findSuggestions'](_0x37ba5f,'formatInline')){if(!_0x412a68['isOwn'])continue;if(_0xd01f3e['subType']!=_0x5b8c31)continue;if(!qt(_0xd01f3e,_0x275617))continue;const _0x305839=_0xd01f3e['getFirstRange']();if(_0x305839['containsRange'](_0x37ba5f,!0x0))return null;_0x1ac757=_0x1ac757['isBefore'](_0x305839['start'])?_0x1ac757:_0x305839['start'],_0x3331e8=_0x3331e8['isAfter'](_0x305839['end'])?_0x3331e8:_0x305839['end'],_0x4b821d?_0x305839['start']['isBefore'](_0x4b821d['getFirstRange']()['start'])?(_0x4b821d['removeMarkers'](),_0x4b821d=_0xd01f3e):_0xd01f3e['removeMarkers']():_0x4b821d=_0xd01f3e;}const _0x4e44e0=this['_model']['createRange'](_0x1ac757,_0x3331e8);if(_0x4b821d)this['_setSuggestionRange'](_0x4b821d,_0x4e44e0);else{const _0x37b73a=_0xc0c664(),_0xdbb7e9=_0x192647['id'];this['_setSuggestionData']({'id':_0x37b73a,'type':'formatInline:'+_0x5b8c31,'data':_0x497dcb,'createdAt':new Date(),'authorId':_0xdbb7e9,'attributes':_0x275617}),this['_addSuggestionMarker']('formatInline:'+_0x5b8c31,_0x37b73a,_0xdbb7e9,_0x4e44e0);}}return null;}['markBlockFormat'](_0x4dfbfa,_0x57b5bf,_0x2d56b4=[],_0x4ce31d=null,_0x158ab0={}){_0x57b5bf['formatGroupId']||(_0x57b5bf['formatGroupId']=_0x57b5bf['commandName']),_0x57b5bf['multipleBlocks']=_0x4dfbfa['is']('range'),_0x4ce31d=_0x4ce31d||Gt(_0x57b5bf);const _0x5b6aae=_0x2d56b4['map'](_0x4652f9=>Lt(_0x4652f9,this['_model'])),_0x4b996e=_0x4dfbfa['is']('range')?_0x4dfbfa:Lt(_0x4dfbfa,this['_model']);if('never'===this['_trackFormatChanges']){const _0x55e285=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ce31d,'accept');return this['forceDefaultExecution'](()=>_0x55e285([_0x4b996e],_0x57b5bf,_0x158ab0)),null;}_0x5b6aae['push'](_0x4b996e);let _0x1af2d5=!0x0;for(const _0x13ba23 of _0x5b6aae)if(!this['_rangeIsInLocalUserInsertion'](_0x13ba23)){_0x1af2d5=!0x1;break;}if(_0x1af2d5&&'always'!==this['_trackFormatChanges']){const _0x1382c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ce31d,'accept');return this['forceDefaultExecution'](()=>_0x1382c([_0x4b996e],_0x57b5bf,_0x158ab0)),null;}let _0x1af1fb=null,_0x1ca923=_0x4b996e['start'],_0x192ba6=_0x4b996e['end'];for(const {suggestion:_0x377d08,meta:_0x373b39}of this['_findSuggestions'](_0x4b996e,'formatBlock')){if(!_0x373b39['isOwn'])continue;if(_0x373b39['isNextTo']||_0x373b39['containsRangeInObject']||_0x373b39['isInsideObject'])continue;if(_0x377d08['data']['formatGroupId']!=_0x57b5bf['formatGroupId'])continue;if(!qt(_0x377d08,_0x158ab0))continue;const _0x260083=_0x377d08['getFirstRange']();if(_0x377d08['subType']==_0x4ce31d){if(_0x260083['containsRange'](_0x4b996e,!0x0))return null;_0x1ca923=_0x1ca923['isBefore'](_0x260083['start'])?_0x1ca923:_0x260083['start'],_0x192ba6=_0x192ba6['isAfter'](_0x260083['end'])?_0x192ba6:_0x260083['end'],_0x1af1fb?_0x260083['start']['isBefore'](_0x1af1fb['getFirstRange']()['start'])?(_0x1af1fb['removeMarkers'](),_0x1af1fb=_0x377d08):_0x377d08['removeMarkers']():_0x1af1fb=_0x377d08;}else{const _0x168064=_0x4b996e['getIntersection'](_0x260083);this['_cutOutSuggestionMarker'](_0x377d08,_0x168064);}}const _0x3a09e9=this['editor']['plugins']['get']('Users')['me'],_0x2e136c=_0xc0c664(),_0x5dd38c=_0x3a09e9['id'];if(_0x1af1fb)return this['_setSuggestionRange'](_0x1af1fb,this['_model']['createRange'](_0x1ca923,_0x192ba6)),_0x1af1fb;{const _0x1a18cb=this['_setSuggestionData']({'id':_0x2e136c,'type':'formatBlock:'+_0x4ce31d,'data':_0x57b5bf,'createdAt':new Date(),'authorId':_0x5dd38c,'attributes':_0x158ab0});return this['_addSuggestionMarker']('formatBlock:'+_0x4ce31d,_0x2e136c,_0x5dd38c,this['_model']['createRange'](_0x1ca923,_0x192ba6)),_0x1a18cb;}}['markMultiRangeBlockFormat'](_0xbbdcd,_0x43876b,_0x5cd2f8=[],_0x41bd04=null,_0x456722={}){_0x43876b['formatGroupId']||(_0x43876b['formatGroupId']=_0x43876b['commandName']);const _0x1627a2=_0xbbdcd[0x0];_0x43876b['multipleBlocks']=_0x1627a2['is']('range'),_0x41bd04=_0x41bd04||Gt(_0x43876b);const _0x4956b2=_0x5cd2f8['map'](_0x3b9231=>Lt(_0x3b9231,this['_model'])),_0x40937d=_0x1627a2['is']('range')?_0xbbdcd:_0xbbdcd['map'](_0x5bc8cd=>Lt(_0x5bc8cd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x322966=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41bd04,'accept');return this['forceDefaultExecution'](()=>_0x322966(_0x40937d,_0x43876b,_0x456722)),null;}_0x4956b2['push'](..._0x40937d);let _0x276c70=!0x0;for(const _0x5f03a3 of _0x4956b2)if(!this['_rangeIsInLocalUserInsertion'](_0x5f03a3)){_0x276c70=!0x1;break;}if(_0x276c70&&'always'!==this['_trackFormatChanges']){const _0x52c3b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41bd04,'accept');return this['forceDefaultExecution'](()=>_0x52c3b0(_0x40937d,_0x43876b,_0x456722)),null;}const _0x1d6477=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f51db of this['getSuggestions']()){if(_0x2f51db['author']['id']!=_0x1d6477['id'])continue;if('formatBlock'!=_0x2f51db['type']||_0x2f51db['data']['formatGroupId']!=_0x43876b['formatGroupId'])continue;if(!qt(_0x2f51db,_0x456722))continue;const _0x168dcf=_0x2f51db['subType']==_0x41bd04;for(let _0x3f7303=0x0;_0x3f7303<_0x40937d['length'];_0x3f7303++){const _0xafa554=_0x40937d[_0x3f7303];for(const _0x5b2fb6 of _0x2f51db['getMarkers']()){const _0xf4e2a2=_0x5b2fb6['getRange']();if(_0xafa554['isEqual'](_0xf4e2a2)){_0x168dcf?(_0x40937d['splice'](_0x3f7303,0x1),_0x3f7303--):_0x2f51db['removeMarker'](_0x5b2fb6['name']);break;}}}}if(0x0==_0x40937d['length'])return null;const _0x40d638=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41bd04,'join');for(const _0x3d3270 of this['getSuggestions']())if(_0x3d3270['author']['id']==_0x1d6477['id']&&'formatBlock'==_0x3d3270['type']&&_0x3d3270['data']['formatGroupId']==_0x43876b['formatGroupId']&&_0x3d3270['subType']==_0x41bd04&&qt(_0x3d3270,_0x456722)&&(_0x40d638(_0x3d3270['getRanges'](),_0x40937d)||_0x40d638(_0x40937d,_0x3d3270['getRanges']()))){for(const _0x195428 of _0x40937d)_0x3d3270['addRange'](_0x195428);return _0x3d3270;}const _0x51433e=_0xc0c664(),_0x36f63d=_0x1d6477['id'],_0x2bd397='formatBlock:'+_0x41bd04,_0x18ed72=this['_setSuggestionData']({'id':_0x51433e,'type':_0x2bd397,'data':_0x43876b,'createdAt':new Date(),'authorId':_0x36f63d,'attributes':_0x456722});for(const _0x1881e4 of _0x40937d)this['_addSuggestionMarker'](_0x2bd397,_0x51433e,_0x36f63d,_0x1881e4,u['getMultiRangeId']());return _0x18ed72;}['markDeletion'](_0x45a9bf,_0x5b21d2=null,_0x25fa16={}){if(_0x45a9bf['isCollapsed'])return null;const _0x5aa802=this['editor']['plugins']['get']('Users')['me'],_0x1c4705=new _0x5118bb(_0x45a9bf['start'],_0x45a9bf['end']);for(const {suggestion:_0x5bc180,meta:_0x707172}of this['_findSuggestions'](_0x1c4705,'insertion'))if(_0x707172['isOwn']&&!_0x707172['isNextTo']){if(_0x5bc180['isMultiRange']){const _0x18e3e6=_0x5bc180['getRanges']()['filter'](_0x144d5a=>'$graveyard'!=_0x144d5a['root']['rootName']);_0x18e3e6['every'](_0x3e4d67=>_0x1c4705['containsRange'](_0x3e4d67,!0x0))&&_0x5bc180['discard']();if(_0x18e3e6['some'](_0x578d5e=>_0x578d5e['containsRange'](_0x1c4705,!0x0))){const _0x4eec4f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b21d2,'accept');return this['forceDefaultExecution'](()=>_0x4eec4f([_0x1c4705],null,_0x25fa16)),null;}}else{const _0x4e853e=_0x1c4705['getIntersection'](_0x5bc180['getFirstRange']());null!==_0x4e853e&&_0x5bc180['_onDiscard']([_0x4e853e],null,_0x25fa16);}}if(_0x1c4705['detach'](),_0x1c4705['isCollapsed']||'$graveyard'==_0x1c4705['root']['rootName'])return null;let _0x4e22bd=null,_0x249fd7=_0x1c4705['start'],_0x2fc770=_0x1c4705['end'];const _0x3124d0=this['_findSuggestions'](_0x1c4705,'deletion');for(const {suggestion:_0x4f30ba,meta:_0x937d1c}of _0x3124d0){const _0x58e3d1=this['_model']['createRange'](_0x249fd7,_0x2fc770);if(_0x937d1c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x937d1c['containsRangeInObject']&&!_0x937d1c['isInsideObject'])){if(_0x4f30ba['isMultiRange']){if(!qt(_0x4f30ba,_0x25fa16))continue;let _0x12b43a=!0x0;for(const _0x842a1e of _0x4f30ba['getRanges']()){if(_0x842a1e['containsRange'](_0x58e3d1,!0x0))return _0x4f30ba;_0x58e3d1['containsRange'](_0x842a1e)||(_0x12b43a=!0x1);}_0x12b43a&&_0x4f30ba['discard']();}else{const _0x3f710d=_0x4f30ba['getFirstRange']();if(_0x3f710d['containsRange'](_0x58e3d1,!0x0))return _0x4f30ba;if(!qt(_0x4f30ba,_0x25fa16)){_0x58e3d1['containsRange'](_0x3f710d)?_0x4f30ba['removeMarkers']():_0x3f710d['containsPosition'](_0x249fd7)?_0x249fd7=_0x3f710d['end']:_0x3f710d['containsPosition'](_0x2fc770)&&(_0x2fc770=_0x3f710d['start']);continue;}_0x249fd7=_0x249fd7['isBefore'](_0x3f710d['start'])?_0x249fd7:_0x3f710d['start'],_0x2fc770=_0x2fc770['isAfter'](_0x3f710d['end'])?_0x2fc770:_0x3f710d['end'],_0x25fa16=Object['assign']({},_0x4f30ba['attributes']),_0x4e22bd?_0x3f710d['start']['isBefore'](_0x4e22bd['getFirstRange']()['start'])?(_0x4e22bd['removeMarkers'](),_0x4e22bd=_0x4f30ba):_0x4f30ba['removeMarkers']():_0x4e22bd=_0x4f30ba;}}}if(_0x4e22bd)return this['_setSuggestionRange'](_0x4e22bd,this['_model']['createRange'](_0x249fd7,_0x2fc770)),_0x4e22bd;{const _0x11347e=_0xc0c664(),_0x111093=this['_model']['createRange'](_0x249fd7,_0x2fc770),_0xc87860=_0x5aa802['id'],_0x3ddcbe=_0x5b21d2?'deletion:'+_0x5b21d2:'deletion',_0x583089=this['_setSuggestionData']({'id':_0x11347e,'type':_0x3ddcbe,'createdAt':new Date(),'authorId':_0xc87860,'attributes':_0x25fa16});return this['_addSuggestionMarker'](_0x3ddcbe,_0x11347e,_0xc87860,_0x111093),_0x583089;}}['markMultiRangeDeletion'](_0x185598,_0x3dbe2a='multi',_0x3bc0be={}){const _0x3c9ad3=this['editor']['plugins']['get']('Users')['me'],_0x46cb7d=_0x185598['map'](_0x3f8238=>new _0x5118bb(_0x3f8238['start'],_0x3f8238['end'])),_0x46711e=new Set();for(const {suggestion:_0x4d990a,meta:_0x5149e6}of this['_findSuggestions'](_0x46cb7d,'insertion'))_0x5149e6['isOwn']&&!_0x5149e6['isNextTo']&&_0x46711e['add'](_0x4d990a);for(const _0x56227b of _0x46711e)if(_0x56227b['isMultiRange']){const _0xfcc631=_0x56227b['getRanges']();(!_0x56227b['attributes']||!_0x56227b['attributes']['skipNestingCheck'])&&(_0xfcc631['every'](_0x22954d=>_0x46cb7d['some'](_0x1ecfec=>_0x1ecfec['containsRange'](_0x22954d,!0x0)))&&_0x56227b['discard']());if(_0x46cb7d['every'](_0x543cc8=>_0xfcc631['some'](_0x3bd390=>_0x3bd390['containsRange'](_0x543cc8,!0x0)))){const _0x5024a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dbe2a,'accept');return this['forceDefaultExecution'](()=>_0x5024a1(_0x185598,null,_0x3bc0be)),null;}}else{const _0x462dc7=_0x56227b['getFirstRange']();_0x46cb7d['some'](_0x325838=>_0x325838['containsRange'](_0x462dc7,!0x0))&&_0x56227b['discard']();if(_0x46cb7d['every'](_0x540b53=>_0x462dc7['containsRange'](_0x540b53,!0x0))){const _0x50588e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dbe2a,'accept');return this['forceDefaultExecution'](()=>_0x50588e(_0x46cb7d,null,_0x3bc0be)),null;}}const _0x44f3ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dbe2a,'join');let _0x4eb0cd=null;for(const _0x8d3f1b of this['getSuggestions']())if(_0x8d3f1b['author']['id']==_0x3c9ad3['id']&&_0x8d3f1b['isInContent']&&'deletion'==_0x8d3f1b['type']&&_0x8d3f1b['subType']==_0x3dbe2a&&qt(_0x8d3f1b,_0x3bc0be)&&(_0x44f3ee(_0x8d3f1b['getRanges'](),_0x46cb7d)||_0x44f3ee(_0x46cb7d,_0x8d3f1b['getRanges']()))){if(_0x4eb0cd){if(_0x8d3f1b['commentThread']&&_0x8d3f1b['commentThread']['length'])continue;for(const _0x38dc08 of _0x8d3f1b['getRanges']())_0x4eb0cd['isIntersectingWithRange'](_0x38dc08)||_0x4eb0cd['addRange'](_0x38dc08);_0x8d3f1b['removeMarkers']();}else{_0x4eb0cd=_0x8d3f1b;for(const _0x23cab2 of _0x46cb7d)_0x8d3f1b['isIntersectingWithRange'](_0x23cab2)||_0x8d3f1b['addRange'](_0x23cab2);}}if(_0x4eb0cd)return _0x4eb0cd;_0x46711e['clear']();for(const {suggestion:_0x42fafe,meta:_0x3ab84d}of this['_findSuggestions'](_0x46cb7d,'deletion'))_0x3ab84d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ab84d['containsRangeInObject']&&!_0x3ab84d['isInsideObject'])&&qt(_0x42fafe,_0x3bc0be)&&_0x46711e['add'](_0x42fafe);for(const _0x159998 of _0x46711e){const _0x451904=_0x159998['getRanges']();if(!_0x3bc0be||!_0x3bc0be['skipNestingCheck']){if(_0x46cb7d['every'](_0x1910df=>_0x451904['some'](_0x200d0d=>_0x200d0d['containsRange'](_0x1910df,!0x0))))return _0x159998;}(!_0x159998['attributes']||!_0x159998['attributes']['skipNestingCheck'])&&(_0x451904['every'](_0x25120b=>_0x46cb7d['some'](_0x4941e6=>_0x4941e6['containsRange'](_0x25120b,!0x0)))&&_0x159998['discard']());}const _0x5b6ae4=_0xc0c664(),_0x18aa4e=_0x3c9ad3['id'],_0x570e8a='deletion:'+_0x3dbe2a,_0x5ef67c=this['_setSuggestionData']({'id':_0x5b6ae4,'type':_0x570e8a,'createdAt':new Date(),'authorId':_0x18aa4e,'attributes':_0x3bc0be});for(const _0x5759ad of _0x46cb7d)_0x5759ad['detach'](),_0x5759ad['isCollapsed']||'$graveyard'==_0x5759ad['root']['rootName']||this['_addSuggestionMarker'](_0x570e8a,_0x5b6ae4,_0x18aa4e,_0x5759ad,u['getMultiRangeId']());return _0x5ef67c;}['markAttributeChange'](_0x245e35,_0x8ee6a1,_0x480766,_0x23c24d,_0x242f30){if(_0x245e35['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x389f2f=this['editor']['plugins']['get']('Users')['me']['id'],_0x54239f=Array['from'](this['_suggestions']['values']())['filter'](_0x892245=>'attribute'==_0x892245['type']&&_0x892245['data']['key']==_0x8ee6a1&&_0x892245['isIntersectingWithRange'](_0x245e35));if('default'===this['_trackFormatChanges']){const _0x175188=this['_findSuggestions'](_0x245e35,'insertion')['filter'](({meta:_0x555061})=>_0x555061['isOwn']&&!_0x555061['isInsideObject']&&!_0x555061['isNextTo'])['map'](({suggestion:_0x343e85})=>_0x343e85);_0x54239f['unshift'](..._0x175188);}const _0x546140=new Map([[_0x245e35,_0x480766]]);for(const _0x2b9abd of _0x54239f){const _0x1fb571='attribute'==_0x2b9abd['type']?_0x2b9abd['data']['oldValue']:void 0x0,_0x38563b=_0x2b9abd['getFirstRange'](),_0x544845=Array['from'](_0x546140['keys']())['find'](_0x45462c=>_0x45462c['isIntersecting'](_0x38563b));if(!_0x544845)continue;const _0x32d9de=_0x544845['getDifference'](_0x38563b);this['_isBlockAttribute'](_0x8ee6a1)&&'insertion'==_0x2b9abd['type']&&0x0!=_0x32d9de['length']||(_0x546140['delete'](_0x544845),_0x32d9de['forEach'](_0x5a8f2f=>{_0x546140['set'](_0x5a8f2f,_0x480766);}),'insertion'!=_0x2b9abd['type']&&_0x1fb571!=_0x23c24d&&_0x546140['set'](_0x544845['getIntersection'](_0x38563b),_0x1fb571));}const _0xc9674d=[];for(const [_0x2e5087,_0x1ddcec]of _0x546140){const _0x4b5232=_0xc0c664(),_0x155c55={'key':_0x8ee6a1,'oldValue':_0x1ddcec,'newValue':_0x23c24d};_0x8ee6a1['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x8ee6a1});const _0x2b210b=('attribute:'+(_0x8ee6a1+'|'+Gt({'newValue':_0x23c24d})))['substring'](0x0,0x3c),_0x590e3f=this['_setSuggestionData']({'id':_0x4b5232,'type':_0x2b210b,'data':_0x155c55,'createdAt':new Date(),'authorId':_0x389f2f,'attributes':_0x242f30});_0xc9674d['push'](_0x590e3f),this['_addSuggestionMarker'](_0x2b210b,_0x4b5232,_0x389f2f,_0x2e5087);}return _0xc9674d;}['enableDefaultAttributesIntegration'](_0x534778){this['enableCommand'](_0x534778,(_0x500df2,..._0x28d9b5)=>{this['_recordAttributeChanges'](()=>{_0x500df2(..._0x28d9b5);});});}['registerBlockAttribute'](_0x41984f){this['_blockAttributeKeys']['add'](_0x41984f);}['registerInlineAttribute'](_0xafea1c){this['_inlineAttributeKeys']['add'](_0xafea1c);}['_getAttributeKey'](_0x115b20){return'attribute'==_0x115b20['type']?_0x115b20['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2a94f7,_0x204a47){const _0x42e0f0=_0x2a94f7['getFirstMarker']();this['_model']['change'](_0x14c7e6=>{_0x14c7e6['updateMarker'](_0x42e0f0,{'range':_0x204a47});});}['_addThreadToSuggestion'](_0xc709d5){const _0x15bbb4=_0xc709d5['id'],_0x1f1092=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x15bbb4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1f1092,'threadId':_0x15bbb4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1fd9a2=this['_commentsRepository']['getCommentThread'](_0x15bbb4);_0x1fd9a2['unbind']('isRemovable'),_0x1fd9a2['isRemovable']=!0x1,_0xc709d5['commentThread']=_0x1fd9a2;}['_checkSuggestionCorrectness'](_0x5a97b8,_0x36f96a,_0x448a37,_0x28ddfa){if(_0x5a97b8['type']!=_0x36f96a||_0x5a97b8['subType']!=_0x448a37||_0x5a97b8['creator']['id']!=_0x28ddfa)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x51a471('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xd338e3,_0x276a8f){const _0x4f24b1=_0xd338e3['getFirstRange']();if(_0x276a8f['isEqual'](_0x4f24b1))_0xd338e3['removeMarkers']();else{if(_0x4f24b1['containsRange'](_0x276a8f)){const _0x422344=this['_model']['createPositionAt'](_0x276a8f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd338e3,this['_model']['createRange'](_0x4f24b1['start'],_0x422344));const _0x23098c=_0xc0c664(),_0x2eede1=_0xd338e3['creator']['id'],_0x4af25f=_0xd338e3['type']+':'+_0xd338e3['subType'];this['_setSuggestionData']({'id':_0x23098c,'type':_0x4af25f,'createdAt':new Date(),'authorId':_0x2eede1,'data':_0xd338e3['data'],'attributes':_0xd338e3['attributes']});const _0x2e6acd=this['_model']['createPositionAt'](_0x276a8f['end']['parent'],'after'),_0x339782=this['_model']['createRange'](_0x2e6acd,_0x4f24b1['end']);this['_addSuggestionMarker'](_0x4af25f,_0x23098c,_0x2eede1,_0x339782);}else{if(_0x4f24b1['containsPosition'](_0x276a8f['start'])){const _0x6f38f9=this['_model']['createPositionAt'](_0x276a8f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd338e3,this['_model']['createRange'](_0x4f24b1['start'],_0x6f38f9));}else{const _0x14e64f=this['_model']['createPositionAt'](_0x276a8f['end']['parent'],'after');this['_setSuggestionRange'](_0xd338e3,this['_model']['createRange'](_0x14e64f,_0x4f24b1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46d865){for(const {suggestion:_0x48534e,meta:_0x382742}of this['_findSuggestions'](_0x46d865,'insertion')){if(!_0x382742['isOwn'])continue;const _0x3a70b8=_0x48534e['getRanges']();for(const _0x3a1be2 of _0x3a70b8)if(!_0x46d865['getDifference'](_0x3a1be2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e3569){const _0x2e7765=this['editor']['plugins']['get']('Users')['getUser'](_0x4e3569);if(!_0x2e7765)throw new _0x51a471('track-changes-user-not-found',this);return _0x2e7765;}['_getExternalAuthor'](_0xe859ae){const _0x51d8ec=this['editor']['plugins']['get']('Users'),_0x3724f5=_0x51fed8('external:'+_0xe859ae),_0x5adf51=_0x51d8ec['getUser'](_0x3724f5);return _0x5adf51||_0x51d8ec['addUser']({'id':_0x3724f5,'name':_0xe859ae});}['_createSuggestion'](_0x5d322d,_0x39ff95,_0x1348c1,_0x3b87c5,_0x519916){const _0x225c6d=this['_getAuthorFromId'](_0x3b87c5),_0x275b0e=this['_suggestionFactory']['buildSuggestion'](_0x5d322d,_0x39ff95,_0x1348c1,_0x225c6d,_0x519916,_0x3024de=>{this['_updateSuggestionData'](_0x1348c1,{'attributes':_0x3024de});const _0x783795=this['getSuggestion'](_0x1348c1);this['_joinWithAdjacentSuggestions'](new Set([_0x783795])),this['_refreshSuggestionsChain'](new Set([_0x783795]));});return this['listenTo'](_0x275b0e,'accept',()=>{this['_updateSuggestionData'](_0x1348c1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x275b0e,'discard',()=>{this['_updateSuggestionData'](_0x1348c1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1348c1,_0x275b0e),this['_suggestionState']['set'](_0x275b0e,'notReady'),_0x275b0e;}['_splitMarkerName'](_0x387e11){const _0x565f30=_0x387e11['split'](':');return{'group':_0x565f30[0x0],'type':_0x565f30[0x1],'subType':_0x565f30['length']>=0x5?_0x565f30[0x2]:null,'id':_0x565f30['length']<0x5?_0x565f30[0x2]:_0x565f30[0x3],'authorId':_0x565f30['length']<0x5?_0x565f30[0x3]:_0x565f30[0x4],'markerCount':0x6==_0x565f30['length']?_0x565f30[0x5]:null};}['_breakSuggestionMarker'](_0x204cdc,_0x2bad44,_0x2fb4db){const _0x1cd29a=_0x204cdc['getFirstRange'](),_0x4127a6=_0x1cd29a['start'],_0x4b3eae=_0x1cd29a['end'];this['_setSuggestionRange'](_0x204cdc,this['_model']['createRange'](_0x4127a6,_0x2bad44));const _0x28f6a4=_0xc0c664(),_0x27e3af=_0x204cdc['creator']['id'],_0x57b23b=_0x204cdc['type']+(_0x204cdc['subType']?':'+_0x204cdc['subType']:'');this['_setSuggestionData']({'id':_0x28f6a4,'type':_0x57b23b,'createdAt':new Date(),'authorId':_0x27e3af,'originalSuggestionId':_0x204cdc['id'],'attributes':_0x204cdc['attributes'],'data':_0x204cdc['data']});const _0x3c5c68=this['_getAttributeKey'](_0x204cdc);('formatBlock'==_0x204cdc['type']||_0x3c5c68&&this['_isBlockAttribute'](_0x3c5c68))&&(_0x2fb4db=this['_model']['createPositionBefore'](_0x2fb4db['parent'])),this['_addSuggestionMarker'](_0x57b23b,_0x28f6a4,_0x27e3af,this['_model']['createRange'](_0x2fb4db,_0x4b3eae));}['_findSuggestions'](_0x41e0f8,_0x30e018=null){const _0x366032=[],_0x4d75d5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41e0f8)||(_0x41e0f8=[_0x41e0f8]);for(const _0x349d5a of this['getSuggestions']()){if(!_0x349d5a['isInContent'])continue;if(_0x30e018&&_0x349d5a['type']!=_0x30e018)continue;let _0x2de5ff=!0x1;for(const _0x2309da of _0x349d5a['getRanges']()){for(const _0x42d4ff of _0x41e0f8){const _0x1d1300=_0x42d4ff['start']['isEqual'](_0x2309da['end'])||_0x42d4ff['end']['isEqual'](_0x2309da['start']);if(_0x1d1300||_0x42d4ff['getIntersection'](_0x2309da)){const _0x4da6af=_0x42d4ff['containsRange'](_0x2309da)&&Ot(this['_model']['schema'],_0x2309da['start'],_0x42d4ff),_0x52f88f=_0x2309da['containsRange'](_0x42d4ff)&&Ot(this['_model']['schema'],_0x42d4ff['start'],_0x2309da);_0x366032['push']({'suggestion':_0x349d5a,'meta':{'isOwn':_0x4d75d5==_0x349d5a['author'],'isNextTo':_0x1d1300,'isInsideObject':_0x4da6af,'containsRangeInObject':_0x52f88f}}),_0x2de5ff=!0x0;break;}}if(_0x2de5ff)break;}}return _0x366032;}['_addSuggestionMarker'](_0x2dccfd,_0x464364,_0x367446,_0x2b0a66,_0x37381f){this['_model']['change'](_0x4e83d2=>{let _0x2e2a1b='suggestion:'+_0x2dccfd+':'+_0x464364+':'+_0x367446;_0x37381f&&(_0x2e2a1b=_0x2e2a1b+':'+_0x37381f),_0x4e83d2['addMarker'](_0x2e2a1b,{'range':_0x2b0a66,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x22c081){const _0x54053e=_0x22c081['previous'],_0x1aaac7=_0x22c081['next'];_0x22c081['previous']=null,_0x22c081['next']=null,null!=_0x54053e&&_0x54053e['next']==_0x22c081&&(_0x54053e['next']=_0x1aaac7),null!=_0x1aaac7&&_0x1aaac7['previous']==_0x22c081&&(_0x1aaac7['previous']=_0x54053e),'ready'==this['_suggestionState']['get'](_0x22c081)&&(this['_suggestionState']['set'](_0x22c081,'removed'),this['fire']('suggestionUnloaded',_0x22c081,_0x54053e,_0x1aaac7));}['_setSuggestionData'](_0x476ee3){const _0xcf0700=_0x476ee3['id'],_0x4bcb57=this['addSuggestionData'](_0x476ee3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x491857=this['editor']['plugins']['get']('PendingActions'),_0x3ca050=_0x4bcb57['hasComments'],_0x1bdee2=_0x4bcb57['subType']?_0x4bcb57['type']+':'+_0x4bcb57['subType']:_0x4bcb57['type'],_0x23afcc=this['editor']['locale'],_0x52846e=_0x491857['add'](o(_0x23afcc,'PENDING_ACTION_SUGGESTION')),_0x25d392={'id':_0xcf0700,'type':_0x1bdee2,'hasComments':_0x3ca050,'data':_0x476ee3['data']||null,'originalSuggestionId':_0x476ee3['originalSuggestionId']||null,'attributes':_0x4bcb57['attributes']};this['_adapter']['addSuggestion'](_0x25d392)['then'](_0x1f6783=>{_0x4bcb57['_saved']=!0x0,_0x491857['remove'](_0x52846e),_0x1f6783&&_0x1f6783['createdAt']&&(this['_suggestions']['get'](_0xcf0700)['createdAt']=_0x1f6783['createdAt']);})['catch'](_0x15d076=>{throw _0x201b14('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bcb57['discard']();}),_0x4bcb57['stopListening'](),this['_suggestions']['delete'](_0x4bcb57['id']),this['_suggestionState']['delete'](_0x4bcb57),_0x15d076;});}return _0x4bcb57;}['_isBlockAttribute'](_0x35e99a){return this['_blockAttributeKeys']['has'](_0x35e99a);}['_updateSuggestionData'](_0x3da9ea,_0x4bae05){const _0x46e0bf=this['editor']['plugins']['get']('PendingActions'),_0x3901bf=this['getSuggestion'](_0x3da9ea);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3901bf['_saved']){const _0x4b3f27=_0x46e0bf['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3da9ea,_0x4bae05)['then'](()=>{_0x46e0bf['remove'](_0x4b3f27);});}else _0x3901bf['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3da9ea,_0x4bae05);});}}['_getSuggestionData'](_0x3cfaeb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x51a471('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3cfaeb);}['_handleNewSuggestionMarker'](_0x4a5a82){const {id:_0x3ec706,type:_0x21f612,subType:_0x240e54,authorId:_0x5b0065}=this['_splitMarkerName'](_0x4a5a82),_0x57b0d2=this['_suggestions']['get'](_0x3ec706)||this['_createSuggestion'](_0x21f612,_0x240e54,_0x3ec706,_0x5b0065,{});switch(this['_checkSuggestionCorrectness'](_0x57b0d2,_0x21f612,_0x240e54,_0x5b0065),this['_suggestionState']['get'](_0x57b0d2)){case'notReady':this['_getSuggestionData'](_0x3ec706)['then'](_0x438ce9=>{let _0x2f3991=Promise['resolve']();_0x438ce9['hasComments']&&(_0x2f3991=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ec706})),_0x2f3991['then'](()=>{this['addSuggestionData'](_0x438ce9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57b0d2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ec706,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57b0d2,'ready'),this['fire']('suggestionLoaded',_0x57b0d2);break;case'ready':this['fire']('suggestionChanged',_0x57b0d2);}return _0x57b0d2['addMarkerName'](_0x4a5a82),_0x57b0d2;}['_refreshSuggestionsChain'](_0x3e79cd){const _0x5d2b34=Array['from'](_0x3e79cd),_0x1a41a6=_0x5d2b34['filter'](_0x32d1fe=>'attribute'==_0x32d1fe['type']);this['_refreshAttributeSuggestionsChain'](_0x1a41a6);const _0x7e0efc=_0x5d2b34['filter'](_0x4c6479=>!_0x4c6479['isMultiRange']&&'attribute'!=_0x4c6479['type']),_0x41895d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa19199=>!_0xa19199['isMultiRange']&&'attribute'!=_0xa19199['type']),_0x30d985=_0x41895d['filter'](_0x254de5=>!_0x3e79cd['has'](_0x254de5)),_0x2aea10=new Map(_0x41895d['map'](_0x2511af=>[_0x2511af,this['_suggestionFactory']['getSuggestionCallback'](_0x2511af['type'],_0x2511af['subType'],'chain')])),_0x415510=new Map(_0x41895d['map'](_0xe5d276=>[_0xe5d276,_0xe5d276['getFirstRange']()])),_0x2dcefd=new Set(),_0x5f35b4=new Set();for(let _0x54bdb6=0x0;_0x54bdb6<_0x7e0efc['length'];_0x54bdb6++)_0x1687ad(_0x7e0efc[_0x54bdb6],_0x7e0efc,_0x54bdb6+0x1);for(let _0x25b831=0x0;_0x25b831<_0x7e0efc['length'];_0x25b831++)_0x1687ad(_0x7e0efc[_0x25b831],_0x30d985,0x0);const _0x2ea7a2=new Set();for(let _0x2c9b2b=0x0;_0x2c9b2b<_0x7e0efc['length'];_0x2c9b2b++){const _0x13268c=_0x7e0efc[_0x2c9b2b];!_0x5f35b4['has'](_0x13268c)&&_0x13268c['previous']&&(_0x2ea7a2['add'](_0x13268c['previous']),_0x13268c['previous']['next']===_0x13268c&&(_0x13268c['previous']['next']=null),_0x13268c['previous']=null),!_0x2dcefd['has'](_0x13268c)&&_0x13268c['next']&&(_0x2ea7a2['add'](_0x13268c['next']),_0x13268c['next']['previous']===_0x13268c&&(_0x13268c['next']['previous']=null),_0x13268c['next']=null);}function _0x1687ad(_0x1b27da,_0x2e4743,_0x10c378){for(let _0x8535c2=_0x10c378;_0x8535c2<_0x2e4743['length'];_0x8535c2++){const _0x3c6ce1=_0x399274(_0x1b27da,_0x2e4743[_0x8535c2]);_0x3c6ce1&&(_0x3c6ce1[0x0]['next']=_0x3c6ce1[0x1],_0x3c6ce1[0x1]['previous']=_0x3c6ce1[0x0],_0x2dcefd['add'](_0x3c6ce1[0x0]),_0x5f35b4['add'](_0x3c6ce1[0x1]));}}function _0x399274(_0x3a81a7,_0x147f2f){if(_0x3a81a7['author']['id']!==_0x147f2f['author']['id'])return null;const _0x5ad04e=_0x2aea10['get'](_0x3a81a7)(_0x3a81a7,_0x147f2f,_0x415510['get'](_0x3a81a7),_0x415510['get'](_0x147f2f));if(!_0x5ad04e)return null;return _0x2aea10['get'](_0x147f2f)(_0x3a81a7,_0x147f2f,_0x415510['get'](_0x3a81a7),_0x415510['get'](_0x147f2f))?_0x5ad04e[0x1]['commentThread']&&_0x5ad04e[0x1]['commentThread']['length']?null:_0x5ad04e:null;}_0x2ea7a2['size']&&this['_refreshSuggestionsChain'](_0x2ea7a2);}['_refreshAttributeSuggestionsChain'](_0x11c874){if(0x0==_0x11c874['length'])return;const _0x40ac75=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x550364=>'attribute'==_0x550364['type']&&_0x550364['_isDataLoaded']),_0x53eee2=[],_0x355c42=new Map();for(const _0x18b896 of _0x40ac75){const _0x48e5a5=_0x51fed8(_0x18b896['attributes']);_0x355c42['has'](_0x48e5a5)||(_0x355c42['set'](_0x48e5a5,_0x53eee2['length']),_0x53eee2['push']([]));const _0x4ab42c=_0x355c42['get'](_0x48e5a5);_0x53eee2[_0x4ab42c]['push'](_0x18b896);}!(function(){_0x53eee2['sort']((_0x17a790,_0x62b0ea)=>{const _0x16f9d1=_0x17a790[0x0]['createdAt'],_0x1ec675=_0x62b0ea[0x0]['createdAt'];return _0x16f9d1==_0x1ec675?_0x17a790[0x0]['attributes']['groupId']<_0x62b0ea[0x0]['attributes']['groupId']?-0x1:0x1:_0x16f9d1<_0x1ec675?-0x1:0x1;});for(const _0x2cfa9c of _0x53eee2)_0x2cfa9c['sort']((_0x34c117,_0x5cd531)=>_0x34c117['id']<_0x5cd531['id']?-0x1:0x1);}());for(let _0xeba15d=0x0;_0xeba15d<_0x53eee2['length'];_0xeba15d++){if(0x0==_0x53eee2[_0xeba15d]['length'])continue;const _0x1b77a1=[];for(let _0x2d37af=_0xeba15d+0x1;_0x2d37af<_0x53eee2['length'];_0x2d37af++)0x0!=_0x53eee2[_0x2d37af]['length']&&_0x315640(_0x53eee2[_0xeba15d],_0x53eee2[_0x2d37af])&&_0x1b77a1['push'](_0x2d37af);for(const _0x767c4 of _0x1b77a1)_0x53eee2[_0xeba15d]=_0x53eee2[_0xeba15d]['concat'](_0x53eee2[_0x767c4]),_0x53eee2[_0x767c4]=[];}for(const _0x571923 of _0x53eee2)for(let _0x13f086=0x0;_0x13f086<_0x571923['length'];_0x13f086++){const _0x34313f=_0x571923[_0x13f086+0x1]||null;_0x571923[_0x13f086]['next']!==_0x34313f&&(_0x571923[_0x13f086]['next']=_0x34313f);}for(const _0x23fcba of _0x53eee2)for(let _0x293451=0x0;_0x293451<_0x23fcba['length'];_0x293451++){const _0x3fb791=_0x23fcba[_0x293451-0x1]||null;_0x23fcba[_0x293451]['previous']!==_0x3fb791&&(_0x23fcba[_0x293451]['previous']=_0x3fb791);}function _0x315640(_0x4d4448,_0x3588a1){if(_0x4d4448[0x0]['attributes']['groupId']!==_0x3588a1[0x0]['attributes']['groupId']&&_0x4d4448[0x0]['author']!==_0x3588a1[0x0]['author'])return!0x1;if(!function(_0xbf492d,_0x1d50d3){if(!_0xbf492d['hasComments']&&!_0x1d50d3['hasComments'])return!0x0;if(_0xbf492d['hasComments']&&_0x1d50d3['hasComments'])return!0x1;if(_0xbf492d['hasComments']&&_0x1d50d3['createdAt']<_0xbf492d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1d50d3['hasComments']&&_0xbf492d['createdAt']<_0x1d50d3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4d4448[0x0],_0x3588a1[0x0]))return!0x1;const _0x47531e=Tt(_0x4d4448[0x0]['attributes'],'groupId'),_0x5c7c33=Tt(_0x3588a1[0x0]['attributes'],'groupId');if(!_0x4a2988(_0x47531e,_0x5c7c33))return!0x1;return!!_0x4d4448['every'](_0x434bb0=>_0x3588a1['some'](_0x208316=>_0x434bb0['getFirstRange']()['isEqual'](_0x208316['getFirstRange']())))&&_0x3588a1['every'](_0x5c30b2=>_0x4d4448['some'](_0xb9a9b6=>_0x5c30b2['getFirstRange']()['isEqual'](_0xb9a9b6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x305fa5){const _0x9f5a25=Array['from'](_0x305fa5),_0x41e0ee=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2828e6=_0x41e0ee['filter'](_0x1a8ee6=>!_0x305fa5['has'](_0x1a8ee6)),_0x399689=new Map(_0x9f5a25['map'](_0x425283=>[_0x425283,this['_suggestionFactory']['getSuggestionCallback'](_0x425283['type'],_0x425283['subType'],'join')])),_0x15ba4f=new Map(_0x41e0ee['map'](_0x318dbb=>[_0x318dbb,_0x318dbb['getRanges']()]));for(let _0x2ce725=0x0;_0x2ce725<_0x9f5a25['length'];_0x2ce725++){if(_0x125467(this,_0x9f5a25[_0x2ce725],_0x9f5a25,_0x2ce725+0x1))return!0x0;}for(let _0x42ca73=0x0;_0x42ca73<_0x9f5a25['length'];_0x42ca73++){if(_0x125467(this,_0x9f5a25[_0x42ca73],_0x2828e6,0x0))return!0x0;}return!0x1;function _0x125467(_0x1377d3,_0x22a98d,_0x5bf9db,_0x441d96){for(let _0x2090a5=_0x441d96;_0x2090a5<_0x5bf9db['length'];_0x2090a5++){const _0x3b5b05=_0x5bf9db[_0x2090a5];if(_0x3b5b05['type']!==_0x22a98d['type']||_0x3b5b05['author']['id']!==_0x22a98d['author']['id']||_0x3b5b05['subType']!==_0x22a98d['subType'])continue;if(!Jt(_0x22a98d,_0x3b5b05))continue;if('attribute'==_0x22a98d['type']&&_0x22a98d['data']['oldValue']!=_0x3b5b05['data']['oldValue'])continue;if('attribute'==_0x22a98d['type']&&_0x1377d3['_isBlockAttribute'](_0x22a98d['data']['key']))continue;if('formatBlock'==_0x22a98d['type']){const _0x470e61=_0x1377d3['editor']['model'],_0x1bb1f1=_0x22a98d['getContainedElement']();if(_0x1bb1f1&&(_0x470e61['schema']['isObject'](_0x1bb1f1)||_0x470e61['schema']['isLimit'](_0x1bb1f1)))continue;}const _0x77a10a=_0x399689['get'](_0x22a98d),_0x2d764e=_0x15ba4f['get'](_0x22a98d),_0xc5efa7=_0x15ba4f['get'](_0x3b5b05),_0x5157b7=_0x22a98d['commentThread']&&_0x22a98d['commentThread']['length'],_0xca7e10=_0x3b5b05['commentThread']&&_0x3b5b05['commentThread']['length'];if(!_0x5157b7&&_0x77a10a(_0xc5efa7,_0x2d764e))return _0x1377d3['_joinSuggestions'](_0x3b5b05,_0x22a98d),_0x15ba4f['delete'](_0x22a98d),!0x0;if(!_0xca7e10&&_0x77a10a(_0x2d764e,_0xc5efa7))return _0x1377d3['_joinSuggestions'](_0x22a98d,_0x3b5b05),_0x15ba4f['delete'](_0x3b5b05),!0x0;}return!0x1;}}['_joinSuggestions'](_0x538e7f,_0x3c975b){if(_0x538e7f['isMultiRange']){for(const _0x1912d6 of _0x3c975b['getRanges']())_0x538e7f['addRange'](_0x1912d6);}else{const _0x417019=_0x3c975b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x538e7f,this['_model']['createRange'](_0x538e7f['getFirstRange']()['start'],_0x417019));}_0x3c975b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x289769,_0x4d6367,_0x15d49c){const _0x256e4b=_0x289769['startsWith']('format')||_0x289769['startsWith']('attribute')?'FORMATTING':_0x289769['toUpperCase']();return o(this['editor']['locale'],_0x4d6367+'_'+_0x256e4b+'_SUGGESTION_ANNOUNCEMENT',_0x15d49c);}['_initAriaMarkerChangeAnnouncements'](){const _0x44e70b=this['editor'];if(!_0x44e70b['ui'])return;const {ariaLiveAnnouncer:_0xf30b96}=_0x44e70b['ui'];_0xbbc705(this['_model'],({left:_0x10e400,entered:_0x3f6cc7})=>{for(const _0xfc3da8 of _0x10e400){const {group:_0x56736b,type:_0x4cbd43}=this['_splitMarkerName'](_0xfc3da8['name']);if('suggestion'===_0x56736b){_0xf30b96['announce'](this['_getMarkerAnnouncementText'](_0x4cbd43,'LEAVE'));break;}}for(const _0x48a9d7 of _0x3f6cc7){const {group:_0x33dcc0,type:_0x3262df}=this['_splitMarkerName'](_0x48a9d7['name']);if('suggestion'===_0x33dcc0){_0xf30b96['announce'](this['_getMarkerAnnouncementText'](_0x3262df,'ENTER',_0x3af46a(_0x3f46ab)));break;}}});}['_processAttributeChanges'](_0x490e93){if(this['_recordAttributeSuggestions'])return!0x1;const _0x42d7a6=this['editor'],_0x1acc77=_0x42d7a6['model']['document']['differ']['getChanges']();if(0x0==_0x1acc77['length'])return!0x1;const _0x359507=[],_0x3762bd=_0x1acc77['filter'](_0x3e729d=>'attribute'==_0x3e729d['type']),_0xe2203e=_0x1acc77['filter'](_0x160cdb=>'insert'==_0x160cdb['type']&&'$text'!=_0x160cdb['name']),_0x670be6=_0x1acc77['filter'](_0x4b1fd1=>'remove'==_0x4b1fd1['type']&&'$text'!=_0x4b1fd1['name']);for(const _0x3df92e of _0x3762bd)_0x359507['push']({'key':_0x3df92e['attributeKey'],'newValue':_0x3df92e['attributeNewValue'],'oldValue':_0x3df92e['attributeOldValue'],'range':Pt(_0x3df92e['range'],_0x42d7a6['model'])});for(const _0x39c489 of _0xe2203e){const _0x2fc0bc=_0x670be6['find'](_0x377578=>_0x377578['position']['isEqual'](_0x39c489['position']));_0x2fc0bc&&_0x359507['push']({'key':m,'newValue':_0x39c489['name'],'oldValue':_0x2fc0bc['name'],'range':_0x42d7a6['model']['createRangeOn'](_0x39c489['position']['nodeAfter'])});}return 0x0!=_0x359507['length']&&this['_reduceExistingSuggestions'](_0x490e93,_0x359507);}['_processAttributeSuggestions'](_0x32acca){let _0x45ddd3=!0x1;const _0x223fe4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b766e=>_0x3b766e['data']['newRange']&&_0x3b766e['name']['startsWith']('suggestion:attribute:'));for(const _0x9cdb7c of _0x223fe4){const {subType:_0x10077b,id:_0x1ba2b4}=this['_splitMarkerName'](_0x9cdb7c['name']),_0x3dec9c=_0x10077b['split']('|')[0x0];for(const _0x5b8bf4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5b8bf4['id']!=_0x1ba2b4&&'attribute'==_0x5b8bf4['type']&&_0x5b8bf4['data']&&_0x5b8bf4['data']['key']==_0x3dec9c&&_0x5b8bf4['getFirstRange']()['isIntersecting'](_0x9cdb7c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5b8bf4,_0x9cdb7c['data']['newRange'],_0x32acca),_0x45ddd3=!0x0);}return _0x45ddd3;}['_recordAttributeChanges'](_0x218547){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x218547();}['_isRegisteredAttribute'](_0x19a97b){const _0x390909=this['_isBlockAttribute'](_0x19a97b),_0x1c6d44=this['_inlineAttributeKeys']['has'](_0x19a97b);return _0x390909||_0x1c6d44;}['_reduceExistingSuggestions'](_0x147661,_0x2f0f1c){if(0x0==_0x2f0f1c['length'])return!0x1;let _0x4cb8ae=!0x1;for(const _0x2ffc39 of _0x2f0f1c){const _0x24dc79=this['_findSuggestions'](_0x2ffc39['range'],'attribute')['filter'](_0x5ce37e=>!_0x5ce37e['meta']['isNextTo'])['map'](_0x3804dd=>_0x3804dd['suggestion']),_0x35932a=_0x51fed8({'newValue':_0x2ffc39['newValue']});_0x24dc79['filter'](_0x60c288=>{const [_0x479d45,_0x4a326a]=_0x60c288['subType']['split']('|');return _0x479d45==_0x2ffc39['key']&&_0x4a326a!=_0x35932a;})['forEach'](_0x38695d=>{this['_reduceSuggestionAttributeRange'](_0x38695d,_0x2ffc39['range'],_0x147661),_0x4cb8ae=!0x0;});}return _0x4cb8ae;}['_reduceSuggestionAttributeRange'](_0x2db14c,_0x10bfec,_0xe9e057){const _0x150803=_0x2db14c['getFirstRange']()['getDifference'](_0x10bfec);0x0!==_0x150803['length']?0x1!==_0x150803['length']?this['_breakSuggestionMarker'](_0x2db14c,_0x10bfec['start'],_0x10bfec['end']):this['_setSuggestionRange'](_0x2db14c,_0x150803[0x0]):_0xe9e057['removeMarker'](_0x2db14c['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x276ca6){this['_editor']=_0x276ca6,this['_model']=_0x276ca6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x47a2b5,_0x4deedf,_0x5d062d,_0x1ebeb3,_0x286a80,_0xbd7032){return new u(this['_model'],{'type':_0x47a2b5,'subType':_0x4deedf,'id':_0x5d062d,'author':_0x1ebeb3,'creator':_0x1ebeb3,'attributes':_0x286a80,'onAttributesChange':_0xbd7032,'onAccept':(..._0x50f29e)=>this['getSuggestionCallback'](_0x47a2b5,_0x4deedf,'accept')(..._0x50f29e),'onDiscard':(..._0x27db0e)=>this['getSuggestionCallback'](_0x47a2b5,_0x4deedf,'discard')(..._0x27db0e)});}['registerCustomCallback'](_0x4ad4ae,_0x5a2e85,_0x5d88a3,_0x50409f){const _0x10f9b9=_0x4ad4ae+':'+_0x5a2e85+':'+_0x5d88a3;this['_customCallbacks']['set'](_0x10f9b9,_0x50409f);}['getSuggestionCallback'](_0x3e6f2e,_0x299150,_0x984a94){const _0x317c64=_0x3e6f2e+':'+_0x299150+':'+_0x984a94;return this['_customCallbacks']['get'](_0x317c64)||this['_defaultCallbacks']['get'](_0x3e6f2e+':'+_0x984a94);}['_registerDefaultCallbacks'](){const _0x1b1521=()=>!0x1,_0x42b7b4=_0x264174=>{_0x264174['sort']((_0x43bd42,_0x5acc53)=>_0x43bd42['start']['isBefore'](_0x5acc53['start'])?0x1:-0x1),this['_model']['change'](_0x23f38d=>{for(const _0x499865 of _0x264174){let _0xa8df7b;_0xa8df7b=_0x499865['end']['isAtEnd']&&_0x499865['end']['parent']==_0x499865['start']['nodeAfter']?_0x23f38d['createSelection'](_0x499865['start']['nodeAfter'],'on'):_0x23f38d['createSelection'](_0x499865),this['_model']['deleteContent'](_0xa8df7b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1d02c1=(_0x23a761,_0x391274)=>{_0x391274&&this['_model']['change'](_0x5689b5=>{const {commandName:_0x26a2dc,commandParams:_0x458b9f=[]}=_0x391274,_0x18907e=_0x23a761['map'](_0x4b82ab=>(Vt(_0x4b82ab)&&(_0x4b82ab=this['_model']['createRange'](_0x4b82ab['end'])),_0x4b82ab))['filter'](_0x4db70b=>'$graveyard'!==_0x4db70b['root']['rootName']);if(_0x18907e['length']<0x1)return;const _0x5f91a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x24162f=>_0x5118bb['fromRange'](_0x24162f));_0x5689b5['setSelection'](_0x18907e);for(const _0x38d44e of this['_editor']['commands']['commands']())_0x38d44e['refresh']();_0x458b9f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x26a2dc,..._0x458b9f);const _0xb144f4=_0x5f91a7['filter'](_0x564f4e=>'$graveyard'!=_0x564f4e['root']['rootName']);_0xb144f4['length']>0x0&&_0x5689b5['setSelection'](_0xb144f4);for(const _0x182053 of _0x5f91a7)_0x182053['detach']();});},_0xd8e3c=(_0x356dfb,_0x36fc12)=>0x1==_0x356dfb['length']&&0x1==_0x36fc12['length']&&_0x356dfb[0x0]['end']['isEqual'](_0x36fc12[0x0]['start']),_0x40cf18=(_0x52c161,_0x5d728b,_0x354712,_0x518696)=>Ht(_0x52c161,_0x5d728b,_0x354712,_0x518696,this['_model'])?[_0x52c161,_0x5d728b]:Ht(_0x5d728b,_0x52c161,_0x518696,_0x354712,this['_model'])?[_0x5d728b,_0x52c161]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1b1521),this['_defaultCallbacks']['set']('insertion:discard',_0x42b7b4),this['_defaultCallbacks']['set']('insertion:join',_0xd8e3c),this['_defaultCallbacks']['set']('insertion:chain',_0x40cf18),this['_defaultCallbacks']['set']('deletion:accept',_0x42b7b4),this['_defaultCallbacks']['set']('deletion:discard',_0x1b1521),this['_defaultCallbacks']['set']('deletion:join',_0xd8e3c),this['_defaultCallbacks']['set']('deletion:chain',_0x40cf18),this['_defaultCallbacks']['set']('formatInline:accept',_0x1d02c1),this['_defaultCallbacks']['set']('formatInline:discard',_0x1b1521),this['_defaultCallbacks']['set']('formatInline:join',_0xd8e3c),this['_defaultCallbacks']['set']('formatInline:chain',_0x1b1521),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1d02c1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1b1521),this['_defaultCallbacks']['set']('formatBlock:join',_0xd8e3c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1b1521),this['_defaultCallbacks']['set']('attribute:accept',_0x1b1521),this['_defaultCallbacks']['set']('attribute:discard',(_0x5e5a9f,_0x4d2bc9)=>{if(!_0x4d2bc9)return;const _0x488d7e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x60fe41=>{if(_0x4d2bc9['key']==m)for(const _0x260f20 of _0x5e5a9f){const _0x212e0b=_0x260f20['start']['nodeAfter'],_0x550c9d=_0x4d2bc9['oldValue'];_0x60fe41['rename'](_0x212e0b,_0x550c9d);}else{if(_0x488d7e['_isBlockAttribute'](_0x4d2bc9['key'])){for(const _0x2536e3 of _0x5e5a9f)void 0x0!==_0x4d2bc9['oldValue']?_0x60fe41['setAttribute'](_0x4d2bc9['key'],_0x4d2bc9['oldValue'],_0x2536e3['start']['nodeAfter']):_0x60fe41['removeAttribute'](_0x4d2bc9['key'],_0x2536e3['start']['nodeAfter']);}else{for(const _0x52aee8 of _0x5e5a9f)_0x4d2bc9['oldValue']?_0x60fe41['setAttribute'](_0x4d2bc9['key'],_0x4d2bc9['oldValue'],_0x52aee8):_0x60fe41['removeAttribute'](_0x4d2bc9['key'],_0x52aee8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xd8e3c);}}function Ot(_0x8a7e3c,_0x31cc18,_0x3bde1c){for(const _0x44965e of _0x31cc18['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44965e['root']==_0x44965e)return!0x1;if(!_0x3bde1c['containsItem'](_0x44965e))return!0x1;if(_0x8a7e3c['isObject'](_0x44965e)||_0x8a7e3c['isLimit'](_0x44965e))return!0x0;}return!0x1;}function Vt(_0x4fdf8a){return _0x4fdf8a['end']['parent']==_0x4fdf8a['start']['nodeAfter']&&_0x4fdf8a['end']['isAtStart'];}function Ut(_0x496b0f,_0x375487,_0x1d4308,_0x20b0c){const _0x150219=_0x3907f6=>!_0x3907f6['item']['is']('$textProxy')&&!_0x20b0c['isObject'](_0x3907f6['item']),_0x3565ff=_0x496b0f['start']['getLastMatchingPosition'](_0x150219),_0x3c378f=_0x496b0f['end']['getLastMatchingPosition'](_0x150219,{'direction':'backward'});return(!_0x496b0f['start']['isEqual'](_0x3565ff)||!_0x496b0f['end']['isEqual'](_0x3c378f))&&(_0x3565ff['isBefore'](_0x3c378f)?_0x1d4308['updateMarker'](_0x375487,{'range':_0x1d4308['createRange'](_0x3565ff,_0x3c378f)}):_0x1d4308['removeMarker'](_0x375487),!0x0);}function Gt(_0x53f6d8){return _0x51fed8(_0x53f6d8);}function Ft(_0x2765e5){const _0x4b166b=_0x2765e5['start']['nodeAfter'];return _0x4b166b&&_0x4b166b['is']('element');}function Pt(_0x518f67,_0x37a972){return null==_0x518f67['end']['nodeBefore']&&_0x518f67['end']['parent']==_0x518f67['start']['nodeAfter']?Lt(_0x518f67['start']['nodeAfter'],_0x37a972):_0x518f67;}function Lt(_0x4739c3,_0x4be154){const _0x477e05=_0x4be154['schema']['isObject'](_0x4739c3)||_0x4be154['schema']['isSelectable'](_0x4739c3);return _0x4be154['createRange'](_0x4be154['createPositionAt'](_0x4739c3,'before'),_0x477e05?_0x4be154['createPositionAfter'](_0x4739c3):_0x4be154['createPositionAt'](_0x4739c3,'end'));}function Ht(_0x1617e1,_0x51a117,_0x230b3f,_0x971707,_0x36a63e){if(_0x1617e1['next'])return!0x1;if(!Jt(_0x1617e1,_0x51a117))return!0x1;if(_0x230b3f['end']['isEqual'](_0x971707['start']))return!0x0;if(_0x1617e1['type']!=_0x51a117['type'])return!0x1;if(!_0x230b3f['end']['isTouching'](_0x971707['start']))return!0x1;const _0x395f58=_0x36a63e['createRange'](_0x230b3f['end'],_0x971707['start'])['getWalker']();for(const _0x42b029 of _0x395f58)if(['elementStart','elementEnd']['includes'](_0x42b029['type'])&&_0x36a63e['schema']['isLimit'](_0x42b029['item']))return!0x1;return!0x0;}function Jt(_0x4b7f40,_0x1aec74){if(!_0x4b7f40['_isDataLoaded']||!_0x1aec74['_isDataLoaded'])return!0x1;const _0x56776f=new Set(Object['keys'](_0x4b7f40['attributes'])),_0x5eb0d5=new Set(Object['keys'](_0x1aec74['attributes']));if(_0x56776f['delete']('groupId'),_0x5eb0d5['delete']('groupId'),0x0==_0x56776f['size']&&0x0==_0x5eb0d5['size'])return!0x0;if(_0x56776f['size']!=_0x5eb0d5['size'])return!0x1;const _0x466890={..._0x4b7f40['attributes']},_0x3430b3={..._0x1aec74['attributes']};return delete _0x466890['groupId'],delete _0x3430b3['groupId'],JSON['stringify'](_0x466890)==JSON['stringify'](_0x3430b3);}function qt(_0x5b7614,_0x4e164d){const _0x5293b2=zt(_0x5b7614['attributes']),_0x11b34c=zt(_0x4e164d);if(!_0x5b7614['_isDataLoaded'])return!0x1;for(const _0x3ea247 of Object['keys'](_0x11b34c))if(!_0x4a2988(_0x5293b2[_0x3ea247],_0x11b34c[_0x3ea247]))return!0x1;return!0x0;}function zt(_0x466e60){const _0xbe6725=Object['assign']({},_0x466e60);return delete _0xbe6725['skipNestingCheck'],delete _0xbe6725['tablePasteChainId'],_0xbe6725;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x1c830c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21ffd9,_0x15aece,_0x38e7a5,_0x4e059c){super(),this['model']=_0x15aece,this['view']=_0x38e7a5,this['commentThreadController']=_0x4e059c,this['_editor']=_0x21ffd9,this['_acceptCommand']=_0x21ffd9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21ffd9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d59cb,_0x28761e)=>_0x5d59cb||_0x28761e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x521111=>_0x521111&&this['_editor']['model']['canEditAt'](_0x15aece['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x54b42c=>_0x54b42c&&this['_editor']['model']['canEditAt'](_0x15aece['getRanges']())),this['_pendingAction']=null,_0x38e7a5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38e7a5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38e7a5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38e7a5,'change:isDirty',()=>{_0x38e7a5['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x930368=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x930368);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x50c6be{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xe3a665,_0x8a014,_0x4bfc19,_0xb24521){super(_0xe3a665),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x10b128(_0xe3a665,o(_0xe3a665,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x8a014['authoredAt']),this['bind']('authoredAt')['to'](_0x8a014),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x8a014,'authoredAt',this,'descriptionParts',(_0x7f7c44,_0x3f1fb5,_0x138d13)=>{const _0x13d63a=_0x138d13['map'](_0x43860f=>ls(_0x43860f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x7f7c44-0x1,_0x8a014['author']['name'],_0x3f1fb5?_0xb24521['formatDateTime'](_0x3f1fb5):'',new DOMParser()['parseFromString'](_0x13d63a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x35984b(),this['focusTracker']=new _0x25e1eb(),this['keystrokes']=new _0xf0a35f(),this['focusCycler']=new _0x623354({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x44863c=>_0x44863c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x8a014,this['_localUser']=_0x4bfc19,this['_config']=_0xb24521,_0xb24521['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x527ab6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49ba8d}=this['_config'];this['commentsListView']=new _0x49ba8d(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x39a3ce=>_0x39a3ce+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x53b096,_0x5a5e56)=>_0x53b096||!!_0x5a5e56);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x58c25f}=this['_config'],_0x266f25=new _0x58c25f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x19f28f=_0x266f25['commentInputView'];return _0x266f25['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x19f28f,'value',(_0x28eb54,_0xdfb594,_0x177179)=>!!_0x177179||_0x28eb54&&!_0xdfb594),_0x19f28f['on']('submit',(_0x95619,_0x16cc48)=>{this['fire']('addComment',_0x16cc48),_0x19f28f['editor']['setData']('');}),_0x19f28f['on']('cancel',()=>this['focus']()),_0x19f28f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x266f25;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x279062,_0x2b24de,_0x49ca2c,_0x53c7df){super(_0x279062,_0x2b24de,_0x49ca2c,_0x53c7df),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5052f9=>_0x5052f9&&_0x5052f9[0x0]?_0x5052f9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x23fc64,_0x313e6a)=>{let _0x5d7ddb='';for(const _0x1570f1 of _0x23fc64)_0x5d7ddb+='<p>'+ls(_0x1570f1['content'],_0x1570f1['color'])+'</p>';return _0x313e6a?_0x5d7ddb:_0x44d93d(_0x5d7ddb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x53c7df['SuggestionView'](_0x279062,_0x2b24de,{'formatDateTime':_0x53c7df['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3f82eb=this['bindTemplate'],_0x346aeb=[this['suggestionView']];return this['commentsListView']&&_0x346aeb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x346aeb['push'](this['commentThreadInputView']),_0x346aeb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3f82eb['if']('isActive','ck-suggestion-wrapper--active'),_0x3f82eb['to']('type',_0x2655cf=>'ck-suggestion-'+_0x2655cf),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3f82eb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x346aeb};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x50c6be{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa7721c,_0xd6029f,_0x36f041){super(_0xa7721c),this['_model']=_0xd6029f,this['_config']=_0x36f041,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd6029f),this['acceptButton']=this['_createButton'](o(_0xa7721c,'Accept\x20suggestion'),_0x34fdcd['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa7721c,'Discard\x20suggestion'),_0x34fdcd['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x37a1b6(_0xa7721c,_0xd6029f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x35984b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x25e1eb(),this['keystrokes']=new _0xf0a35f(),this['focusCycler']=new _0x623354({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4bddb7=>_0x4bddb7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4164a1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4164a1['innerHTML']=this['description'],this['on']('change:description',(_0x3ca3d0,_0x5e9e2a,_0x9cba05)=>{_0x4164a1['innerHTML']=_0x9cba05;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2dac1c=this['bindTemplate'],_0x55f0ee=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2dac1c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2dac1c['to']('authoredAt',_0x2f1ce9=>this['_config']['formatDateTime'](_0x2f1ce9))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x55f0ee['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x55f0ee}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x20c22a,_0x1097ca,_0x465074,_0x3ed27e,_0x2e2f45){const _0x1314d2=new _0x18a44e(this['locale']);return _0x1314d2['set']({'label':_0x20c22a,'icon':_0x1097ca,'tooltip':!0x0,'tooltipPosition':_0x2e2f45}),_0x1314d2['extendTemplate']({'attributes':{'class':_0x465074}}),_0x1314d2['on']('execute',()=>{this['fire'](_0x3ed27e,this['_model']['id']);}),_0x1314d2;}['_setupKeyboardNavigation'](){const _0xeca8d2=this['element'];this['keystrokes']['listenTo'](_0xeca8d2);for(const _0x1e9a83 of this['focusables'])this['focusTracker']['add'](_0x1e9a83['element']),this['keystrokes']['listenTo'](_0x1e9a83['element']);this['keystrokes']['set']('enter',(_0x463d06,_0x4ca6e3)=>{_0xeca8d2===_0x463d06['target']&&(this['focusCycler']['focusFirst'](),_0x4ca6e3());}),this['keystrokes']['set']('esc',(_0x5887f9,_0xcbb9e0)=>{_0xeca8d2!==_0x5887f9['target']&&(this['focus'](),_0xcbb9e0());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x422b73{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x48deeb,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x554c6b){super(_0x554c6b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x350e48=this['editor']['config'];_0x350e48['define']('trackChanges.SuggestionThreadView',re),_0x350e48['define']('trackChanges.SuggestionView',ce),_0x350e48['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x350e48['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23def7,_0x314345){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2340b2,_0xeed1b9]of this['_handleControllerBuffer']){const _0x47d22a=this['_suggestionToController']['has'](_0x2340b2);_0x47d22a||_0xeed1b9?_0x47d22a&&_0xeed1b9&&this['_destroyController'](_0x2340b2):this['_initializeController'](_0x2340b2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23def7,_0x314345);}['init'](){const _0x1399f0=this['editor'],_0x247bcc=_0x1399f0['plugins']['get']('TrackChangesEditing'),_0x462c22=_0x1399f0['plugins']['get']('Annotations'),_0x5cc359=_0x1399f0['plugins']['get']('EditorAnnotations'),_0x41e5d9=_0x1399f0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5cc359['addSourceCollector'](()=>{const _0x1a08a8=[];for(const [_0x17d628,_0x5dcbe3]of Array['from'](this['_suggestionToController'])){const _0x12e34b=_0x17d628['getAllAdjacentSuggestions'](),_0x5f190f=[];for(const _0x34d0b0 of _0x12e34b){if(!_0x34d0b0['isInContent'])continue;if(_0x34d0b0['isMultiRange']){_0x5f190f['push'](..._0x34d0b0['getRanges']());continue;}const _0x4ec7ae=_0x34d0b0['getFirstRange']();if(_0x5f190f['length']>0x0){const _0x47c441=_0x5f190f[0x0]['getJoined'](_0x4ec7ae);if(_0x47c441){_0x5f190f[0x0]=_0x47c441;continue;}}_0x5f190f['push'](_0x4ec7ae);}_0x1a08a8['push']([_0x5dcbe3['view'],_0x5f190f]);}return _0x1a08a8;}),this['listenTo'](_0x247bcc,'suggestionLoaded',(_0x3ac6c2,_0x45673c)=>{this['listenTo'](_0x45673c,'change:previous',(_0x576a39,_0x6acc19,_0x36ea15,_0x3cb2d5)=>{_0x45673c['isInContent']&&(null==_0x36ea15?(this['_updateController'](_0x3cb2d5['head']),this['_handleSuggestionControllerDelayed'](_0x45673c,!0x1)):(this['_updateController'](_0x36ea15['head']),null==_0x3cb2d5&&this['_handleSuggestionControllerDelayed'](_0x45673c,!0x0)));}),null!==_0x45673c['previous']?this['_updateController'](_0x45673c['head']):this['_handleSuggestionControllerDelayed'](_0x45673c,!0x1);}),this['listenTo'](_0x247bcc,'suggestionUnloaded',(_0x41680e,_0x5f3543,_0x369b65)=>{this['stopListening'](_0x5f3543,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5f3543),this['_suggestionToController']['has'](_0x5f3543)&&this['_destroyController'](_0x5f3543),_0x369b65&&this['_updateController'](_0x369b65['head']);}),this['listenTo'](_0x247bcc,'suggestionChanged',(_0x2ae98f,_0x4077e1)=>{this['_updateController'](_0x4077e1);}),this['listenTo'](_0x462c22,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41e5d9,'addComment',(_0x259456,{threadId:_0x2b7dec,isFromAdapter:_0x4a0bff})=>{if(_0x4a0bff||!_0x247bcc['hasSuggestion'](_0x2b7dec))return;const _0x319714=_0x247bcc['getSuggestion'](_0x2b7dec);this['_suggestionToController']['get'](_0x319714)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3debdb=this['editor']['plugins']['get']('Annotations'),_0x34724c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbf5981=Array['from'](_0x3debdb['activeAnnotations'],_0x38adf8=>_0x38adf8['innerView'])['filter'](_0xe809b=>this['_viewToController']['has'](_0xe809b)),_0x27cc9a=[];for(const _0x97b38a of _0xbf5981){const _0x4cc35b=this['_viewToController']['get'](_0x97b38a)['model']['getAllAdjacentSuggestions']();_0x27cc9a['push'](..._0x4cc35b['reduce']((_0x3718a8,_0x3c0b01)=>[..._0x3718a8,..._0x3c0b01['getMarkerNames']()],[]));}_0x34724c['activeMarkers']=_0x27cc9a;}['_addUIComponentsToFactory'](){const _0x4c1b89=this['editor'],_0x9e67b0=_0x4c1b89['locale'],_0x3eae32=o(_0x9e67b0,'Track\x20changes'),_0x497652=new Wt([{'type':'switchbutton','model':new _0x183b77({'withText':!0x0,'isToggleable':!0x0,'label':_0x3eae32,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x183b77({'withText':!0x0,'label':o(_0x9e67b0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x183b77({'withText':!0x0,'label':o(_0x9e67b0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x183b77({'withText':!0x0,'label':o(_0x9e67b0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x183b77({'withText':!0x0,'label':o(_0x9e67b0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x20f7e3 of _0x497652)if(me(_0x20f7e3)){const _0x5e73ff=_0x4c1b89['commands']['get'](_0x20f7e3['model']['commandName']);_0x20f7e3['model']['bind']('isOn','isEnabled')['to'](_0x5e73ff,'value','isEnabled');}_0x4c1b89['ui']['componentFactory']['add']('trackChanges',_0x413c3b=>this['_createToolbarButton'](_0x413c3b,_0x497652,_0x3eae32)),_0x4c1b89['ui']['componentFactory']['add']('menuBar:trackChanges',_0x36d74d=>this['_createMenuBarMenu'](_0x36d74d,_0x497652,_0x3eae32));}['_createToolbarButton'](_0x24e4e4,_0xf1be01,_0x10b452){const _0x598c91=Qt(_0x24e4e4,_0xff57ea),_0x35851a=this['editor']['commands']['get']('trackChanges');_0x598c91['buttonView']['set']({'tooltip':_0x10b452,'label':_0x10b452,'icon':he}),_0x598c91['buttonView']['bind']('isOn')['to'](_0x35851a,'value'),_0x598c91['buttonView']['on']('execute',()=>{_0x35851a['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x598c91,_0xf1be01,{'role':'menu'});const _0x4cc6e=[];for(const _0x5b78ec of _0xf1be01)me(_0x5b78ec)&&_0x4cc6e['push'](this['editor']['commands']['get'](_0x5b78ec['model']['commandName']));const _0x650f27=_0x598c91['buttonView'];return _0x650f27['actionView']['unbind']('isEnabled'),_0x650f27['arrowView']['unbind']('isEnabled'),_0x650f27['actionView']['bind']('isEnabled')['to'](_0x35851a,'isEnabled'),_0x650f27['arrowView']['bind']('isEnabled')['toMany'](_0x4cc6e,'isEnabled',(..._0x25f499)=>_0x25f499['some'](_0x1b39d1=>_0x1b39d1)),_0x598c91['on']('execute',_0x49d11d=>{this['editor']['execute'](_0x49d11d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x598c91;}['_createMenuBarMenu'](_0x5ed95e,_0xaefcf6,_0x237899){const _0x57c67e=new Yt(_0x5ed95e),_0xc2fee9=this['editor']['commands']['get']('trackChanges');_0x57c67e['buttonView']['set']({'label':_0x237899,'icon':he});const _0x518acc=new Zt(_0x5ed95e);for(const _0x204345 of _0xaefcf6){if('separator'==_0x204345['type']){_0x518acc['items']['add'](new Xt(_0x5ed95e));continue;}const _0x73a733=new te(_0x5ed95e,_0x57c67e),_0x10cb43=new _0x212a3d(_0x5ed95e),_0x2f8710=_0x204345['model'];_0x10cb43['bind'](...Object['keys'](_0x2f8710))['to'](_0x2f8710),_0x10cb43['delegate']('execute')['to'](_0x57c67e),_0x10cb43['on']('execute',()=>{this['editor']['execute'](_0x2f8710['commandName']),this['editor']['editing']['view']['focus']();}),_0x73a733['children']['add'](_0x10cb43),_0x518acc['items']['add'](_0x73a733);}return _0x57c67e['bind']('isEnabled')['to'](_0xc2fee9,'isEnabled'),_0x57c67e['panelView']['children']['add'](_0x518acc),_0x57c67e;}['_initializeController'](_0xddd2c5){const _0x2f0b7b=this['editor'],_0x5a18ee=_0x2f0b7b['config'],_0x53c295=_0x2f0b7b['plugins']['get']('Annotations'),_0x45941e=_0x2f0b7b['plugins']['get']('CommentsRepository'),_0x578098=_0x2f0b7b['plugins']['get']('EditorAnnotations'),_0x3436ee=_0x2f0b7b['plugins']['get'](_0x48deeb)['me'],_0xf311f3=_0x5a18ee['get']('trackChanges')['SuggestionThreadView'],_0x2f82f2=_0x5a18ee['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x792de9,CommentThreadInputView:_0x51dc11}=_0x2f0b7b['plugins']['get']('CommentsUI');let _0x5f544d,_0x428366,_0x43b4ca;this['_annotationViews']['has'](_0xddd2c5['id'])?(_0x428366=this['_annotationViews']['get'](_0xddd2c5['id']),_0x5f544d=_0x428366['mainView']):(_0x5f544d=new _0xf311f3(_0x2f0b7b['locale'],_0xddd2c5,_0x3436ee,{'disableComments':this['_disableComments'],'editorConfig':_0x5a18ee['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5a18ee['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5a18ee['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5a18ee['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x50c710(_0x5a18ee['get']('locale')),'CommentView':_0x5a18ee['get']('comments')['CommentView'],'CommentsListView':_0x792de9,'CommentThreadInputView':_0x51dc11,'SuggestionView':_0x2f82f2}),_0x5f544d['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f0b7b['editing']['view']['focus']();}),_0x5f544d['suggestionView']['discardButton']['on']('execute',()=>{_0x2f0b7b['editing']['view']['focus']();}),_0x428366=_0x53c295['createAnnotationView'](this['editor']['locale'],_0x5f544d),_0x428366['bind']('isDirty')['to'](_0x5f544d,'isDirty'),_0x428366['bind']('length')['to'](_0x5f544d),_0x428366['bind']('type')['to'](_0x5f544d,'type',_0x3ba0db=>'suggestion-'+_0x3ba0db),_0x5f544d['on']('escape',()=>{_0x43b4ca['fire']('escape');}),this['_annotationViews']['set'](_0xddd2c5['id'],_0x428366));const _0x53cb60=_0x45941e['createCommentThreadController'](_0xddd2c5['commentThread'],_0x5f544d),_0x3c344a=new ae(_0x2f0b7b,_0xddd2c5,_0x5f544d,_0x53cb60),_0x32c98a=_0xddd2c5['getAllAdjacentSuggestions']()['filter'](_0x3ac4e4=>_0x3ac4e4['isInContent']);_0x5f544d['descriptionParts']=_0x2f0b7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x32c98a),this['_suggestionToController']['set'](_0xddd2c5,_0x3c344a),this['_viewToController']['set'](_0x5f544d,_0x3c344a),_0x43b4ca=_0x53c295['createAnnotation']({'view':_0x428366,'target':()=>{const _0x1ea7db=[],_0x5303d8=_0xddd2c5['getAllAdjacentSuggestions']()['filter'](_0x3a988e=>_0x3a988e['isInContent']);for(const _0x51282d of _0x5303d8)_0x1ea7db['push'](..._0x51282d['getMarkers']());return _0x58ea24(_0x2f0b7b['editing'],_0x1ea7db);},'type':()=>'suggestion-'+_0x3c344a['view']['type']}),_0x45941e['_bindAnnotationToEditors'](_0x5f544d,_0x43b4ca),_0x53c295['add'](_0x43b4ca),_0x578098['registerAnnotation'](_0x43b4ca);}['_destroyController'](_0x33aba2){const _0xeb396e=this['editor']['plugins']['get']('CommentsRepository'),_0x16723d=this['editor']['plugins']['get']('Annotations'),_0x5c6325=this['_suggestionToController']['get'](_0x33aba2),_0x17d88d=_0x5c6325['view'],_0x1bc2d2=_0x16723d['getByInnerView'](_0x17d88d);_0xeb396e['_unbindEditors'](_0x17d88d),_0x1bc2d2&&_0x16723d['remove'](_0x1bc2d2),this['_suggestionToController']['delete'](_0x33aba2),this['_viewToController']['delete'](_0x17d88d),_0x5c6325['destroy']();}['_updateController'](_0x1f0d55){if(!_0x1f0d55['isInContent']||!this['_suggestionToController']['has'](_0x1f0d55))return;const _0xc6976e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48a90a=this['_suggestionToController']['get'](_0x1f0d55),_0x36d19d=_0x1f0d55['getAllAdjacentSuggestions']();_0x48a90a['view']['descriptionParts']=_0xc6976e['descriptionFactory']['getDescriptions'](_0x36d19d);}['destroy'](){for(const _0x1aee0e of this['_suggestionToController']['keys']())this['_destroyController'](_0x1aee0e);for(const _0x5eb9c4 of this['_annotationViews']['values']())_0x5eb9c4['mainView']['destroy']();super['destroy']();}}function me(_0x3da08a){return'model'in _0x3da08a;}class k extends _0x422b73{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xe26c11){this['editor']['plugins']['get'](p)['adapter']=_0xe26c11;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2fb9b2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2fb9b2);}['getSuggestions']({skipNotAttached:_0xf60389=!0x1,toJSON:_0x302a6e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xf60389,'toJSON':_0x302a6e});}['getSuggestion'](_0x191ef0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x191ef0);}}const T=['Pagination'];class P extends _0x422b73{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2803cc=this['editor'];if(_0x2803cc['config']['define']('trackChangesData.editorCreator',_0x6d3e86=>{const _0x2e970e=_0x2803cc['model']['document']['getRootNames']()['reduce']((_0x3e96e9,_0x3e041c)=>(_0x3e96e9[_0x3e041c]='',_0x3e96e9),{});return _0x2803cc['constructor']['create'](_0x2e970e,_0x6d3e86);}),'function'!=typeof _0x2803cc['config']['get']('trackChangesData')['editorCreator'])throw new _0x51a471('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x266dde){return N(this['editor'],!0x0,_0x266dde);}['getDataWithDiscardedSuggestions'](_0x1262b7){return N(this['editor'],!0x1,_0x1262b7);}}class D extends _0x422b73{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2559bf){super(_0x2559bf),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x2d4d52){return void 0x0!==_0x2d4d52['getRootsAttributes'];}async function N(_0x3316d5,_0x29bb6c,_0x4a2b29){const _0x447bc4=_0x2e82d7(_0x3316d5,T);_0x447bc4['plugins']['push'](p,D),_0x447bc4['rootsAttributes']=v(_0x3316d5)?_0x3316d5['getRootsAttributes']():void 0x0;const _0xab5e85=document['createDocumentFragment'](),_0x2844c9=_0x3316d5['config']['get']('trackChangesData')['editorCreator'],_0x2b316c=await _0x2844c9(_0x447bc4,()=>function(_0x53f749){const _0x437552=document['createElement']('div');return _0x53f749['appendChild'](_0x437552),_0x437552;}(_0xab5e85));!function(_0x1474f1,_0x55b61a){const _0x5c665d=_0x1474f1['model']['document']['getRootNames']()['reduce']((_0x2134be,_0xa426a8)=>(_0x2134be[_0xa426a8]=_0x1474f1['data']['get']({'rootName':_0xa426a8}),_0x2134be),{}),_0x252aca=_0x1474f1['plugins']['get']('Users')['users']['map'](_0x5c0f7b=>({'id':_0x5c0f7b['id'],'name':_0x5c0f7b['name']})),_0x444329=_0x1474f1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f9fee=_0x1474f1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c70e3=_0x55b61a['plugins']['get']('Users'),_0x24d912=_0x55b61a['plugins']['get']('TrackChangesEditing'),_0xe512d=_0x55b61a['plugins']['get']('CommentsRepository');for(const _0x3c2682 of _0xe512d['getCommentThreads']())_0x3c2682['remove']();for(const _0x16f943 of _0x252aca)_0x1c70e3['getUser'](_0x16f943['id'])||_0x1c70e3['addUser'](_0x16f943);_0x1c70e3['me']||_0x1c70e3['useAnonymousUser']();for(const _0x147080 of _0x3f9fee)_0xe512d['addCommentThread'](_0x147080);for(const _0x275afd of _0x444329)_0x24d912['addSuggestionData'](_0x275afd);_0x55b61a['data']['set'](_0x5c665d);}(_0x3316d5,_0x2b316c),_0x2b316c['execute'](_0x29bb6c?'acceptAllSuggestions':'discardAllSuggestions');const _0x531019=v(_0x2b316c)?_0x2b316c['getFullData'](_0x4a2b29):_0x2b316c['data']['get'](_0x4a2b29);return await _0x2b316c['destroy'](),_0x531019;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x15b66e,PendingActions as _0x2c3134,icons as _0x1fa4aa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3ee368,ObservableMixin as _0x24d43d,uid as _0x104525,insertToPriorityArray as _0x53679f,priorities as _0x10cfe0,logWarning as _0x276834,getEnvKeystrokeText as _0x55e185,FocusTracker as _0x3030b5,KeystrokeHandler as _0xbd3c6f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4687a6,View as _0x2b67e8,ViewCollection as _0x5739a4,FocusCycler as _0x3a278e,ViewModel as _0x4fbd4d,createDropdown as Qt,SplitButtonView as _0x1d63c1,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0xe3baa1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1eff54,hashObject as _0x1f00d3,surroundingMarkersDetector as _0x420556,FOCUS_ANNOTATION_KEYSTROKE as _0x58acbc,AriaDescriptionView as _0x21ceb7,setupThreadKeyboardNavigation as _0x17eb55,trimHtml as _0x5ace9a,UserView as _0x36d0c1,LateFocusButtonView as _0xa49553,getDateTimeFormatter as _0x101eba,getAllMarkersDomElementsSorted as _0x367d52,sanitizeEditorConfig as _0x500196}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x581288,LiveRange as _0xd23514,LivePosition as _0x549bd2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x24a937,toWidget as _0x3b0335}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x336a23,set as _0xfbfdea,isEqual as _0x2d0bd3,unset as _0x235895,omit as Tt}from'lodash-es';import{Delete as _0x4b6547,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3db2bf,ShiftEnter as _0x5d604a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x192ab0,_0x352826){super(_0x192ab0),this['_enabledCommands']=_0x352826,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x26da84 of this['editor']['commands']['commands']())_0x26da84['affectsData']&&!this['_enabledCommands']['has'](_0x26da84)&&_0x26da84['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4a1aa3 of this['editor']['commands']['commands']())_0x4a1aa3['affectsData']&&!this['_enabledCommands']['has'](_0x4a1aa3)&&_0x4a1aa3['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x595e9c,_0x393ad2){super(_0x595e9c),this['_suggestions']=_0x393ad2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4aa4ea){const _0x497080=this['_suggestions']['get'](_0x4aa4ea);if(!_0x497080)throw new _0x3ee368('track-changes-accept-suggestion-not-found',this);const _0xd2496d=_0x497080['getRanges']();this['editor']['model']['canEditAt'](_0xd2496d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x497080);}}class R extends ts{['_suggestions'];constructor(_0x4a0755,_0x3805c1){super(_0x4a0755),this['_suggestions']=_0x3805c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x35a2cf){const _0x1dd4bb=this['_suggestions']['get'](_0x35a2cf);if(!_0x1dd4bb)throw new _0x3ee368('track-changes-discard-suggestion-not-found',this);const _0x2130fa=_0x1dd4bb['getRanges']();this['editor']['model']['canEditAt'](_0x2130fa)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1dd4bb);}}function ls(_0x112e79,_0x465da6){let _0x663d9='';return _0x663d9+=_0x112e79['split']('*')['map']((_0x47a42f,_0x4f3c95)=>_0x4f3c95%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x47a42f)+'</span>':nn(_0x47a42f))['join'](''),_0x465da6&&(_0x663d9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x465da6['value']+'\x22\x20title=\x22'+_0x465da6['title']+'\x22></span>'),_0x663d9;}function nn(_0x2c1007){const _0x2232c8=document['createElement']('span');return _0x2232c8['innerText']=_0x2c1007,_0x2232c8['innerHTML'];}function ss(_0x36e017){return _0x36e017['sort']((_0x1b5ac1,_0x4015ad)=>'deletion'==_0x1b5ac1['type']&&'deletion'!=_0x4015ad['type']?-0x1:'deletion'!=_0x1b5ac1['type']&&'deletion'==_0x4015ad['type']?0x1:0x0);}function to(_0x2fe33c,_0x2733a2){let _0xac9ab8,_0x24f3ce=0x0;const _0x129e03=[],_0x1a61ab=_0x2733a2['schema'];for(;_0x24f3ce<_0x2fe33c['length'];){const _0xee8316=_0x2fe33c[_0x24f3ce],_0x400379=_0x2fe33c[_0x24f3ce+0x1];_0xac9ab8||(_0xac9ab8=_0x2733a2['createPositionBefore'](_0xee8316)),on(_0x2733a2,_0xee8316,_0x400379)||(_0x129e03['push'](_0x2733a2['createRange'](_0xac9ab8,_0x1a61ab['isObject'](_0xee8316)?_0x2733a2['createPositionAfter'](_0xee8316):_0x2733a2['createPositionAt'](_0xee8316,'end'))),_0xac9ab8=null),_0x24f3ce++;}return _0x129e03;}function on(_0x13544a,_0x1ff071,_0x4e2418){if(!_0x4e2418)return!0x1;const _0x30632f=_0x13544a['createPositionAfter'](_0x1ff071),_0x4a5490=_0x13544a['createPositionBefore'](_0x4e2418);return _0x30632f['isTouching'](_0x4a5490);}function rs(_0xffa989,_0x174fea,_0x2b6bf7){for(;_0x2b6bf7['length'];){const _0x4e12bb=_0x2b6bf7['splice'](0x0,0x64);_0xffa989['change'](()=>{for(const _0xe417bf of _0x4e12bb)_0xe417bf['isInContent']&&_0x174fea['execute'](_0xe417bf['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x298e33,_0x554005,_0x109963){super(_0x298e33),this['_command']=_0x554005,this['_suggestions']=_0x109963,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51b5f8=Array['from'](this['_suggestions']['values']())['some'](_0x21d9e0=>_0x21d9e0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x51b5f8;}['execute'](){const _0x2b9600=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4b7f91 of _0x2b9600){const _0x56947e=_0x4b7f91['getRanges']();if(!this['editor']['model']['canEditAt'](_0x56947e))return;}rs(this['editor']['model'],this['_command'],_0x2b9600);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x51675e,_0xe2ba96,_0x26453e){super(_0x51675e),this['_command']=_0xe2ba96,this['_suggestions']=_0x26453e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x50efd4=this['editor']['model']['document']['selection'],_0x1dd734=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10f64e,_0x453f1b){const _0x503fee=Array['from'](_0x10f64e['getRanges']()),_0x4435f5=new Set();for(const _0x552bba of _0x453f1b)if(_0x552bba['isInContent']){for(const _0x23c9ed of _0x503fee)for(const _0x418ede of _0x552bba['getRanges']())(_0x23c9ed['isIntersecting'](_0x418ede)||_0x10f64e['isCollapsed']&&!_0x552bba['isMultiRange']&&_0x552bba['next']&&_0x418ede['end']['isTouching'](_0x23c9ed['start']))&&_0x4435f5['add'](_0x552bba);}return _0x4435f5;}(_0x50efd4,_0x1dd734),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48f0cc=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2951a4 of _0x48f0cc){const _0x241ef5=_0x2951a4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x241ef5))return;}rs(this['editor']['model'],this['_command'],_0x48f0cc);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x24d43d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e11e1,_0x3a716d){super(),this['id']=_0x3a716d['id'],this['type']=_0x3a716d['type'],this['subType']=_0x3a716d['subType']||null,this['author']=_0x3a716d['author'],this['creator']=_0x3a716d['creator']||_0x3a716d['author'],this['isExternal']=Boolean(_0x3a716d['attributes']&&_0x3a716d['attributes']['@external']),this['data']=null,this['_model']=_0x2e11e1,this['_onAccept']=_0x3a716d['onAccept'],this['_onDiscard']=_0x3a716d['onDiscard'],this['_onAttributesChange']=_0x3a716d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a716d['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x5b3041=this;for(;_0x5b3041['previous'];)_0x5b3041=_0x5b3041['previous'];return _0x5b3041;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4a038b){this['_markerNames']['add'](_0x4a038b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32082a=>this['_model']['markers']['get'](_0x32082a))['filter'](_0x21af7b=>_0x21af7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3eca38=>{for(const _0x159b32 of this['getMarkers']())_0x3eca38['removeMarker'](_0x159b32);}),this['_markerNames']['clear']();}['removeMarker'](_0x10bb36){this['_model']['change'](_0x121ace=>{_0x121ace['removeMarker'](_0x10bb36);}),this['_markerNames']['delete'](_0x10bb36);}['addRange'](_0x27b5d9){const _0x1875a6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1875a6),this['_model']['change'](_0x4f5c84=>{_0x4f5c84['addMarker'](_0x1875a6,{'range':_0x27b5d9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3616e3){for(const _0x4c98eb of this['getRanges']())if(_0x4c98eb['isIntersecting'](_0x3616e3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1ae95e=>_0x1ae95e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d62da,_0x50166a)=>[..._0x3d62da,..._0x50166a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2b6964=this['getRanges']();if(0x1!=_0x2b6964['length'])return null;const _0x511f40=_0x2b6964[0x0],_0x37a011=_0x511f40['start']['nodeAfter'],_0x39e017=_0x511f40['end']['nodeBefore'];return _0x37a011 instanceof _0x581288?_0x37a011!=_0x39e017?null:_0x37a011:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x5804b8=[];let _0x301f5d=this['head'];for(;_0x301f5d;)_0x5804b8['push'](_0x301f5d),_0x301f5d=_0x301f5d['next'];return _0x5804b8;}['setAttribute'](_0x518fb0,_0x5320e8){const _0x3de7ac=_0x336a23(this['attributes']);_0xfbfdea(_0x3de7ac,_0x518fb0,_0x5320e8),_0x2d0bd3(_0x3de7ac,this['attributes'])||(this['attributes']=_0x3de7ac,this['_onAttributesChange'](_0x3de7ac));}['removeAttribute'](_0x5b1b6b){const _0x5eae0f=_0x336a23(this['attributes']);_0x235895(_0x5eae0f,_0x5b1b6b),_0x2d0bd3(_0x5eae0f,this['attributes'])||(this['attributes']=_0x5eae0f,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x104525()['substr'](0x1,0x5);}}function o(_0x2204a0,_0x295d60,_0xf41c5){const t=_0x2204a0['t'];switch(_0x295d60){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0xf41c5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xf41c5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xf41c5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xf41c5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xf41c5);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0xf41c5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xf41c5);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf41c5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xf41c5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xf41c5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xf41c5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xf41c5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xf41c5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xf41c5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xf41c5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xf41c5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xf41c5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xf41c5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xf41c5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xf41c5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xf41c5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xf41c5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xf41c5);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0xf41c5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xf41c5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xf41c5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xf41c5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xf41c5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xf41c5);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0xf41c5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xf41c5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xf41c5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xf41c5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xf41c5);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xf41c5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xf41c5);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0xf41c5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xf41c5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xf41c5);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0xf41c5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xf41c5);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0xf41c5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xf41c5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xf41c5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0xf41c5);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xf41c5);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xf41c5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xf41c5);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0xf41c5);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0xf41c5);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0xf41c5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x295d60;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x358f2d,_0x48025a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x358f2d,this['_locale']=_0x48025a;}['getDescriptions'](_0x4ecb8a){const _0x441520=[],_0x2608ba=new Set(),_0x17a870=new Set();for(let _0x3af2b3=0x0;_0x3af2b3<_0x4ecb8a['length'];_0x3af2b3++){const _0x47f8a9=_0x4ecb8a[_0x3af2b3];if(!_0x47f8a9['isInContent'])continue;const _0x3203d1=this['_handleCustomCallbackDescription'](_0x47f8a9);if(_0x3203d1){if(null!=_0x47f8a9['subType']){if(_0x2608ba['has'](_0x47f8a9['subType']))continue;_0x2608ba['add'](_0x47f8a9['subType']);}_0x441520['push'](_0x3203d1);}else{if('attribute'!=_0x47f8a9['type'])'insertion'!=_0x47f8a9['type']&&'deletion'!=_0x47f8a9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x441520,_0x47f8a9,_0x4ecb8a[_0x3af2b3+0x1]);else{const _0x5e37fd=_0x47f8a9['data']['key'];if(_0x17a870['has'](_0x5e37fd))continue;_0x17a870['add'](_0x47f8a9['data']['key']),_0x5e37fd==m?this['_handleRenameSuggestionDescription'](_0x441520,_0x47f8a9):this['_handleAttributeSuggestionDescription'](_0x441520,_0x47f8a9);}}}return this['_resolveDescriptionItems'](_0x441520);}['registerDescriptionCallback'](_0x1e1e14){this['_customCallbacks']['push'](_0x1e1e14);}['registerElementLabel'](_0x3d7b35,_0x2ae3c0,_0x4ba785=_0x10cfe0['normal']){'function'==typeof _0x3d7b35?_0x53679f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3d7b35,'label':_0x2ae3c0,'priority':_0x4ba785}):this['_itemLabels']['set'](_0x3d7b35,_0x2ae3c0);}['registerAttributeLabel'](_0x2a0d3e,_0xfa3649){this['_attributeLabels']['set'](_0x2a0d3e,_0xfa3649);}['getItemLabel'](_0x308e27,_0x54df8c=0x1){let _0x366f3c;for(const _0x4a217d of this['_itemLabelsCallbacks'])if(_0x4a217d['matchingCallback'](_0x308e27)){_0x366f3c=_0x4a217d['label'];break;}return _0x366f3c||(_0x366f3c=this['_itemLabels']['get'](_0x308e27['name'])),_0x366f3c?_0x366f3c(_0x54df8c):0x1!==_0x54df8c?_0x54df8c+'\x20'+_0x308e27['name']+'s':''+_0x308e27['name'];}['_addDescriptionItems'](_0x2cad37,_0x1d03cb){const _0x7fd566=_0x1d03cb['getFirstRange']()['getWalker'](),_0xfa6707='insertion'==_0x1d03cb['type']?'add':'remove';for(const _0x1a2ef8 of _0x7fd566){const _0x28b358=_0x1a2ef8['item'],_0x2c5579=_0x2cad37[_0x2cad37['length']-0x1];if(_0x28b358['is']('$textProxy'))_0x2c5579&&_0x2c5579['type']['indexOf']('Container')>-0x1&&_0x2cad37['pop'](),_0x2c5579&&'text'==_0x2c5579['type']?_0x2c5579[_0xfa6707]+=_0x28b358['data']:_0x2cad37['push']({'type':'text','add':'add'==_0xfa6707?_0x28b358['data']:'','remove':'remove'==_0xfa6707?_0x28b358['data']:''});else{if(this['_schema']['isObject'](_0x28b358)){const _0x5ca173=_0x28b358;if(_0x2c5579&&_0x2c5579['type']['indexOf']('Container')>-0x1&&_0x2cad37['pop'](),'elementEnd'==_0x1a2ef8['type'])continue;_0x2c5579&&_0x2c5579['type']==_0xfa6707+'Object'&&_0x2c5579['element']['name']==_0x5ca173['name']?_0x2c5579['quantity']++:_0x2cad37['push']({'type':_0xfa6707+'Object','element':_0x5ca173,'quantity':0x1}),_0x7fd566['skip'](_0x58992d=>!('elementEnd'==_0x58992d['type']&&_0x58992d['item']==_0x28b358));}else{if(this['_schema']['checkChild'](_0x28b358,'$text')||_0x28b358['is']('element','softBreak')){const _0x10281c=_0x28b358;if('add'==_0xfa6707&&'elementStart'==_0x1a2ef8['type']||'remove'==_0xfa6707&&'elementEnd'==_0x1a2ef8['type'])continue;if(_0x2c5579&&-0x1==_0x2c5579['type']['indexOf']('Container')){'text'==_0x2c5579['type']&&(_0x2c5579[_0xfa6707]+='\x0a');continue;}let _0x30965e;if(_0x30965e='add'==_0xfa6707?_0x10281c['nextSibling']&&!this['_schema']['isObject'](_0x10281c['nextSibling'])?_0x10281c['nextSibling']:null:_0x10281c['previousSibling']&&!this['_schema']['isObject'](_0x10281c['previousSibling'])?_0x10281c['previousSibling']:null,_0x10281c['isEmpty']||_0x30965e&&_0x30965e['isEmpty']){const _0x2043ac=_0x30965e&&_0x30965e['isEmpty']?_0x30965e:_0x10281c;_0x2c5579&&_0x2c5579['type']==_0xfa6707+'EmptyContainer'&&_0x2c5579['element']['name']==_0x2043ac['name']?_0x2c5579['quantity']++:_0x2cad37['push']({'type':_0xfa6707+'EmptyContainer','element':_0x2043ac,'quantity':0x1});}else _0x2cad37['push']({'type':_0xfa6707+'Container','element':_0x10281c});}}}}}['_resolveDescriptionItems'](_0x2359c4){const _0x4ece2a=this['_locale'],_0x73fe0c=[],_0xe04d93=[],_0x572a02=[];for(const _0x4eb597 of _0x2359c4)switch(_0x4eb597['type']){case'text':if(_0x4eb597['add']=_0x4eb597['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4eb597['remove']=_0x4eb597['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4eb597['add']&&''!=_0x4eb597['remove']){_0x73fe0c['push']({'type':'replace','content':o(_0x4ece2a,'REPLACE_TEXT',['\x22'+_0x4eb597['remove']+'\x22','\x22'+_0x4eb597['add']+'\x22'])});continue;}if(null!=_0x4eb597['add']['match'](/^ +$/)){_0x73fe0c['push']({'type':'insertion','content':o(_0x4ece2a,'*Insert:*\x20%0',o(_0x4ece2a,'ELEMENT_SPACE',_0x4eb597['add']['length']))});continue;}if(null!=_0x4eb597['remove']['match'](/^ +$/)){_0x73fe0c['push']({'type':'deletion','content':o(_0x4ece2a,'*Remove:*\x20%0',o(_0x4ece2a,'ELEMENT_SPACE',_0x4eb597['remove']['length']))});continue;}if(''!=_0x4eb597['add']){_0x73fe0c['push']({'type':'insertion','content':o(_0x4ece2a,'*Insert:*\x20%0','\x22'+_0x4eb597['add']+'\x22')});continue;}_0x73fe0c['push']({'type':'deletion','content':o(_0x4ece2a,'*Remove:*\x20%0','\x22'+_0x4eb597['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x73fe0c['push']({'type':'insertion','content':o(_0x4ece2a,'*Insert:*\x20%0',this['getItemLabel'](_0x4eb597['element'],_0x4eb597['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x73fe0c['push']({'type':'deletion','content':o(_0x4ece2a,'*Remove:*\x20%0',this['getItemLabel'](_0x4eb597['element'],_0x4eb597['quantity']))});continue;case'addContainer':_0x73fe0c['push']({'type':'insertion','content':o(_0x4ece2a,'*Split:*\x20%0',this['getItemLabel'](_0x4eb597['element'],_0x4eb597['quantity']))});continue;case'removeContainer':_0x73fe0c['push']({'type':'deletion','content':o(_0x4ece2a,'*Merge:*\x20%0',this['getItemLabel'](_0x4eb597['element'],_0x4eb597['quantity']))});continue;case'addFormat':_0xe04d93['push'](_0x4eb597['key']);continue;case'removeFormat':_0x572a02['push'](_0x4eb597['key']);continue;default:_0x73fe0c['push'](_0x4eb597);}if(_0xe04d93['length']){const _0x3ad712=_0xe04d93['map'](_0x5b9a56=>this['_attributeLabels']['has'](_0x5b9a56)?this['_attributeLabels']['get'](_0x5b9a56):_0x5b9a56)['join'](',\x20');_0x73fe0c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3ad712)});}if(_0x572a02['length']){const _0x557a97=_0x572a02['map'](_0x4fd954=>this['_attributeLabels']['has'](_0x4fd954)?this['_attributeLabels']['get'](_0x4fd954):_0x4fd954)['join'](',\x20');_0x73fe0c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x557a97)});}return _0x73fe0c;}['_handleCustomCallbackDescription'](_0x132241){for(const _0xaeadfe of this['_customCallbacks']){const _0x55cfb5=_0xaeadfe(_0x132241);if(_0x55cfb5&&'type'in _0x55cfb5)return _0x55cfb5;}}['_handleAttributeSuggestionDescription'](_0x5ca725,_0x1e35cc){const _0x5219ef=_0x1e35cc['data'],_0x4df5f0=void 0x0===_0x5219ef['newValue']?'removeFormat':'addFormat';_0x5ca725['push']({'type':_0x4df5f0,'key':_0x5219ef['key']});}['_handleRenameSuggestionDescription'](_0x57fafa,_0x4411a2){_0x57fafa['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4411a2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x15afaf,_0x3679d7,_0x350a9f){if(this['_addDescriptionItems'](_0x15afaf,_0x3679d7),_0x350a9f&&_0x350a9f['getFirstRange']()&&!_0x3679d7['getFirstRange']()['end']['isEqual'](_0x350a9f['getFirstRange']()['start'])){const _0x514a63=_0x15afaf[_0x15afaf['length']-0x1],_0x19343a='insertion'==_0x3679d7['type']?'add':'remove';_0x514a63&&'text'==_0x514a63['type']&&(_0x514a63[_0x19343a]+='\x0a');}}}class V extends _0x15b66e{['afterInit'](){const _0x260e68=this['editor'],_0x214318=_0x260e68['plugins']['get']('TrackChangesEditing');_0x260e68['commands']['get']('showAIAssistant')&&_0x214318['enableCommand']('showAIAssistant');}}class U extends _0x15b66e{['afterInit'](){const _0xe3a1b0=this['editor'],_0x54b141=_0xe3a1b0['locale'];if(!_0xe3a1b0['plugins']['has']('AlignmentEditing'))return;const _0x481924=_0xe3a1b0['plugins']['get']('TrackChangesEditing');_0x481924['enableDefaultAttributesIntegration']('alignment'),_0x481924['registerBlockAttribute']('alignment'),_0x481924['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x54b141,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1ce3=this['editor'],_0x5135bf=_0x3d1ce3['locale'];_0x3d1ce3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b41e1=>{if('formatBlock'!=_0x5b41e1['type'])return;const {data:_0x59fde0}=_0x5b41e1;if(_0x59fde0&&'alignment'==_0x59fde0['commandName']){const _0xe053f7=_0x59fde0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5135bf,'*Format:*\x20%0',function(_0x48209e){switch(_0x48209e){case'left':return o(_0x5135bf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5135bf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5135bf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5135bf,'FORMAT_JUSTIFY_TEXT');}}(_0xe053f7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x15b66e{['afterInit'](){const _0x3d58e5=this['editor'],_0x16e074=_0x3d58e5['plugins']['get']('TrackChangesEditing'),_0x277b84=_0x3d58e5['locale'];for(const _0xa0e273 of ti){if(!_0x3d58e5['plugins']['has'](_0xa0e273))continue;const _0xe5311e=_0xa0e273['slice'](0x0,-0x7)['toLowerCase'](),_0x344614='FORMAT_'+_0xe5311e['toUpperCase']();_0x16e074['enableDefaultAttributesIntegration'](_0xe5311e),_0x16e074['registerInlineAttribute'](_0xe5311e),_0x16e074['descriptionFactory']['registerAttributeLabel'](_0xe5311e,o(_0x277b84,_0x344614));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a3c13=this['editor'],_0x32b5d0=_0x4a3c13['locale'],_0x180bb4=_0x4a3c13['plugins']['get']('TrackChangesEditing');function _0x3f47d3(_0x455997,_0xbba802){_0x180bb4['descriptionFactory']['registerDescriptionCallback'](_0x5c7d85=>{if('formatInline'!=_0x5c7d85['type'])return;const {data:_0x3e35d7}=_0x5c7d85;return _0x3e35d7&&_0x3e35d7['commandName']===_0x455997?_0x3e35d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32b5d0,'*Format:*\x20%0',_0xbba802)}:{'type':'format','content':o(_0x32b5d0,'*Remove\x20format:*\x20%0',_0xbba802)}:void 0x0;});}_0x3f47d3('bold',o(_0x32b5d0,'FORMAT_BOLD')),_0x3f47d3('italic',o(_0x32b5d0,'FORMAT_ITALIC')),_0x3f47d3('underline',o(_0x32b5d0,'FORMAT_UNDERLINE')),_0x3f47d3('code',o(_0x32b5d0,'FORMAT_CODE')),_0x3f47d3('strikethrough',o(_0x32b5d0,'FORMAT_STRIKETHROUGH')),_0x3f47d3('subscript',o(_0x32b5d0,'FORMAT_SUBSCRIPT')),_0x3f47d3('superscript',o(_0x32b5d0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x15b66e{['afterInit'](){const _0x526256=this['editor'],_0x579053=_0x526256['locale'];if(!_0x526256['plugins']['has']('BlockQuoteEditing'))return;const _0x11ae3c=_0x526256['plugins']['get']('TrackChangesEditing'),_0x1516f1=this['editor']['commands']['get']('blockQuote');_0x11ae3c['enableCommand']('blockQuote',(_0x3a4273,_0x212474={})=>{const _0xa10a=this['editor']['model']['document']['selection'],_0x4e4d2f=_0x212474&&void 0x0!==_0x212474['forceValue']?_0x212474['forceValue']:!_0x1516f1['value'];let _0x4ebe0f=[];if(_0x4e4d2f){const _0x4304da=Array['from'](_0xa10a['getSelectedBlocks']())['filter'](_0x8b42e5=>oo(_0x8b42e5)||function(_0x2e114a,_0x38c2e1){const _0x37b7d5=_0x38c2e1['checkChild'](_0x2e114a['parent'],'blockQuote'),_0x2b4c01=_0x38c2e1['checkChild'](['$root','blockQuote'],_0x2e114a);return _0x37b7d5&&_0x2b4c01;}(_0x8b42e5,this['editor']['model']['schema']));_0x4ebe0f=to(_0x4304da,_0x526256['model']);}else{const _0x70ba36=Array['from'](_0xa10a['getSelectedBlocks']())['filter'](_0x291e31=>oo(_0x291e31));_0x4ebe0f=to(_0x70ba36,_0x526256['model']);}_0x526256['model']['change'](()=>{for(const _0x82060d of _0x4ebe0f)_0x11ae3c['markBlockFormat'](_0x82060d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4e4d2f}]});});}),_0x11ae3c['descriptionFactory']['registerDescriptionCallback'](_0x2a943b=>{const {data:_0x1978f5}=_0x2a943b;if(_0x1978f5&&'blockQuote'==_0x1978f5['commandName']){const _0x15cdef=o(_0x579053,'ELEMENT_BLOCK_QUOTE');return _0x1978f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x579053,'*Set\x20format:*\x20%0',_0x15cdef)}:{'type':'format','content':o(_0x579053,'*Remove\x20format:*\x20%0',_0x15cdef)};}});}}function oo(_0x2835e2){return'blockQuote'==_0x2835e2['parent']['name'];}class L extends _0x15b66e{['afterInit'](){const _0x323cfa=this['editor'];_0x323cfa['plugins']['has']('CaseChange')&&(_0x323cfa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x323cfa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x323cfa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x15b66e{['afterInit'](){const _0x28e35b=this['editor'];_0x28e35b['commands']['get']('ckbox')&&_0x28e35b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x15b66e{['afterInit'](){const _0x1027a4=this['editor'];if(!_0x1027a4['plugins']['has']('CodeBlock'))return;const _0x253c32=_0x1027a4['plugins']['get']('TrackChangesEditing'),_0x56e501=_0x1027a4['locale'],_0x243833=_0x1027a4['config']['get']('codeBlock')['languages'],_0xcb0336=_0x1027a4['commands']['get']('codeBlock');_0x253c32['enableCommand']('indentCodeBlock'),_0x253c32['enableCommand']('outdentCodeBlock'),_0x253c32['enableCommand']('codeBlock',(_0x41b4d2,_0x426f0a={})=>{const _0x5965f1=_0x1027a4['model'],_0x3e412b=_0x1027a4['model']['document']['selection'],_0x123626=_0x426f0a&&void 0x0!==_0x426f0a['forceValue']?_0x426f0a['forceValue']:!_0xcb0336['value'];let _0x140431;_0x426f0a['language']||(_0x426f0a['language']=_0x243833[0x0]['language']),_0x140431=_0x123626?Array['from'](_0x3e412b['getSelectedBlocks']())['filter'](_0x2be289=>eo(_0x2be289)||function(_0x22bd12,_0x167760){if(_0x22bd12['is']('rootElement')||_0x167760['isLimit'](_0x22bd12))return!0x1;return _0x167760['checkChild'](_0x22bd12['parent'],'codeBlock');}(_0x2be289,_0x5965f1['schema'])):Array['from'](_0x3e412b['getSelectedBlocks']())['filter'](_0x311f9a=>eo(_0x311f9a));const _0x4d2c8a=to(_0x140431,_0x5965f1);_0x5965f1['change'](()=>{for(const _0x1f3f2c of _0x4d2c8a)_0x253c32['markBlockFormat'](_0x1f3f2c,{'commandName':'codeBlock','commandParams':[{..._0x426f0a,'forceValue':_0x123626}],'formatGroupId':'blockName'});});}),(_0x253c32['descriptionFactory']['registerElementLabel']('codeBlock',_0x50e253=>o(_0x56e501,'ELEMENT_CODE_BLOCK',_0x50e253)),_0x253c32['descriptionFactory']['registerDescriptionCallback'](_0x4a1de6=>{if('formatBlock'!=_0x4a1de6['type'])return;const _0x232551=_0x56e501['t'],{data:_0xf53c17}=_0x4a1de6;if(!_0xf53c17||'codeBlock'!=_0xf53c17['commandName'])return;const _0xb34e31=_0xf53c17['commandParams'][0x0]['language'],_0x4f0643=_0x232551(_0x243833['find'](_0x19d156=>_0x19d156['language']===_0xb34e31)['label'])['toLowerCase']();return _0xf53c17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56e501,'*Set\x20format:*\x20%0',o(_0x56e501,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f0643+')')}:{'type':'format','content':o(_0x56e501,'*Remove\x20format:*\x20%0',o(_0x56e501,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x188aa5){return'codeBlock'==_0x188aa5['name'];}class q extends _0x15b66e{['afterInit'](){const _0x13d171=this['editor'];if(!_0x13d171['plugins']['has']('CommentsEditing'))return;_0x13d171['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x370f80,_0x2ceb32,_0x1e8e49){const _0xeb74f7=[];for(const _0x10d614 of _0x2ceb32['getItems']())_0x10d614['hasAttribute'](_0x370f80)&&_0xeb74f7['push'](_0x1e8e49['createRangeOn'](_0x10d614));return _0xeb74f7;}function _e(_0x5d0ceb,_0xd09041,{showActiveMarker:_0x216086=!0x0}={}){const _0x5638bd=_0x5d0ceb['plugins']['get']('TrackChangesEditing');return(_0x5a7fe7,_0x14e6cb,_0x3c3e14)=>{if(!_0x3c3e14['consumable']['test'](_0x14e6cb['markerRange'],_0x5a7fe7['name']))return;const _0x4e27bb=_0x14e6cb['markerRange']['getWalker'](),_0x3c857b=_0x14e6cb['markerRange']['start'],_0x1cd780=_0x5d0ceb['model']['schema'];let _0x5c69d8=null,_0x41d1e7=null,_0x1e898b=!0x1,_0x39ef7f=!0x1;for(const _0x3a8a0a of _0x4e27bb){const _0x356db6=_0x3a8a0a['item'];_0x1e898b=_0x1e898b||_0x1cd780['isContent'](_0x356db6);const _0x355036=_0x3c3e14['mapper']['toViewElement'](_0x356db6);if(_0x355036&&_0x355036['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a8a0a['type']&&(_0x1cd780['isBlock'](_0x356db6)&&!_0x1cd780['isLimit'](_0x356db6)&&(_0x356db6['nextSibling']||_0x3c857b['isAtEnd']?_0x5c69d8&&_0x5c69d8['parent']==_0x356db6||(_0x5c69d8=_0x356db6,_0x3abfce(_0x3a8a0a['previousPosition']),_0x39ef7f=!0x0):_0x41d1e7=_0x41d1e7||_0x3a8a0a['previousPosition']));}function _0x3abfce(_0x2ebfec){const {authorId:_0x59baf7}=_0x5638bd['_splitMarkerName'](_0x14e6cb['markerName']),_0x541df9=_0x3c3e14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd09041,'data-author-id':_0x59baf7}),_0x3592c4=_0x3c3e14['mapper']['toViewPosition'](_0x2ebfec);_0x216086&&_0x5638bd['activeMarkers']['includes'](_0x14e6cb['markerName'])&&_0x3c3e14['writer']['addClass']('ck-suggestion-marker--active',_0x541df9),_0x3c3e14['writer']['insert'](_0x3592c4,_0x541df9),_0x3c3e14['mapper']['bindElementToMarker'](_0x541df9,_0x14e6cb['markerName']);}_0x1e898b||_0x39ef7f||!_0x41d1e7||_0x3abfce(_0x41d1e7);};}class z extends _0x15b66e{static get['requires'](){return[_0x4b6547];}['init'](){const _0x15e471=this['editor'],_0x693f6f=_0x15e471['plugins']['get']('TrackChangesEditing');_0x693f6f['enableCommand']('delete');const _0xbb1452=_0x15e471['commands']['get']('deleteForward');_0x693f6f['enableCommand']('deleteForward',(_0x20afea,_0x4cdd1a={})=>{const _0x9bb8=_0x15e471['model']['createSelection'](_0x15e471['model']['document']['selection']);_0x9bb8['isCollapsed']&&_0x15e471['model']['modifySelection'](_0x9bb8,{'direction':'forward','unit':_0x4cdd1a['unit']});const _0x2e22fd=_0x9bb8['getFirstRange'](),_0x347a57=_0xd23514['fromRange'](_0x2e22fd);let _0x3d47ae;_0x20afea(_0x4cdd1a),_0x3d47ae='$graveyard'==_0x347a57['root']['rootName']?_0x15e471['model']['createRange'](_0x2e22fd['start']):_0x15e471['model']['createRange'](_0x347a57['start'],_0x347a57['end']),_0x347a57['detach'](),_0x15e471['model']['enqueueChange'](_0xbb1452['buffer']['batch'],_0x472d70=>{_0xbb1452['buffer']['lock'](),_0x472d70['setSelection'](_0x472d70['createRange'](_0x3d47ae['end'])),_0xbb1452['buffer']['unlock']();});}),_0x15e471['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x15e471,'merge'),{'priority':'high'}),_0x15e471['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1d706c,_0xf8f720,_0x650f90)=>{_0x650f90['options']['showSuggestionHighlights']&&_e(_0x15e471,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1d706c,_0xf8f720,_0x650f90);},{'priority':'high'}),_0x15e471['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4e0f1a,_0x5b997e,_0x2cbedc)=>{const _0x3374b2=_0x2cbedc['mapper']['markerNameToElements'](_0x5b997e['markerName']);if(_0x3374b2){for(const _0x431374 of _0x3374b2)_0x431374['is']('uiElement')&&(_0x2cbedc['mapper']['unbindElementFromMarkerName'](_0x431374,_0x5b997e['markerName']),_0x2cbedc['writer']['remove'](_0x431374));}},{'priority':'high'});}}class K extends _0x15b66e{['afterInit'](){const _0xbe6556=this['editor'];if(!_0xbe6556['plugins']['has']('ListEditing'))return;const _0x4e4127=_0xbe6556['locale'],_0xf159f1=_0xbe6556['plugins']['get']('TrackChangesEditing'),_0x5dea37=_0xbe6556['plugins']['has']('TodoListEditing'),_0x11d4e9=!!_0xbe6556['config']['get']('list.multiBlock');function _0x5cdbd6(_0x48fd54){return{'type':'format','content':''+o(_0x4e4127,'*Set\x20format:*\x20%0',_0x48fd54)};}function _0xbfea71(_0x1326aa){return{'type':'format','content':''+o(_0x4e4127,'*Remove\x20format:*\x20%0',_0x1326aa)};}_0xf159f1['enableDefaultAttributesIntegration']('numberedList'),_0xf159f1['enableDefaultAttributesIntegration']('bulletedList'),_0xf159f1['enableDefaultAttributesIntegration']('customNumberedList'),_0xf159f1['enableDefaultAttributesIntegration']('customBulletedList'),_0xf159f1['enableDefaultAttributesIntegration']('indentList'),_0xf159f1['enableDefaultAttributesIntegration']('outdentList'),_0xf159f1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf159f1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf159f1['registerBlockAttribute']('listItemId'),_0xf159f1['registerBlockAttribute']('listType'),_0xf159f1['registerBlockAttribute']('listIndent'),_0x11d4e9&&(_0xf159f1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf159f1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5dea37&&(_0xf159f1['enableDefaultAttributesIntegration']('todoList'),_0xf159f1['enableDefaultAttributesIntegration']('checkTodoList'),_0xf159f1['registerBlockAttribute']('todoListChecked'),_0xf159f1['descriptionFactory']['registerDescriptionCallback'](_0x45e8ff=>{const {data:_0x1b7aa9}=_0x45e8ff;if(_0x1b7aa9&&'todoListChecked'==_0x1b7aa9['key'])return{'type':'format','content':_0x1b7aa9['newValue']?o(_0x4e4127,'*Check\x20item*'):o(_0x4e4127,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x12872d=>{if(_0x12872d['batch']['isUndo'])return!0x1;let _0x3cbcb7=!0x1;const _0x471d7e=_0xf159f1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2958bf=>'todoListChecked'===_0xf159f1['_getAttributeKey'](_0x2958bf));for(const _0x4267da of _0x471d7e){'todo'!=_0x4267da['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf159f1['_findSuggestions'](_0x4267da['getFirstRange'](),'attribute')['find'](_0x7d609d=>'listType'===_0xf159f1['_getAttributeKey'](_0x7d609d['suggestion']))||(_0x12872d['removeMarker'](_0x4267da['getFirstMarker']()),_0x3cbcb7=!0x0));}return _0x3cbcb7;})),_0xf159f1['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4e4127,'FORMAT_INDENT'));const _0x1948b9={'type':'format','content':''};_0xf159f1['descriptionFactory']['registerDescriptionCallback'](_0x460554=>{const {data:_0x579cf7}=_0x460554;if(!_0x579cf7||'listType'!=_0x579cf7['key'])return;let _0x3d10b8=_0x460554['head'];for(;_0x3d10b8;){if(_0x3d10b8['data']&&(('listStyle'==_0x3d10b8['data']['key']||'listMarkerStyle'==_0x3d10b8['data']['key'])&&(_0x3d10b8['data']['newValue']&&'default'!=_0x3d10b8['data']['newValue']||'default'!=_0x3d10b8['data']['oldValue']&&!_0x579cf7['newValue'])||!_0x11d4e9&&_0x3d10b8['data']['key']==m))return _0x1948b9;_0x3d10b8=_0x3d10b8['next'];}if(null==_0x579cf7['newValue'])switch(_0x579cf7['oldValue']){case'bulleted':return _0xbfea71(o(_0x4e4127,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xbfea71(o(_0x4e4127,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xbfea71(o(_0x4e4127,'ELEMENT_TODO_LIST'));}switch(_0x579cf7['newValue']){case'bulleted':return _0x5cdbd6(o(_0x4e4127,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5cdbd6(o(_0x4e4127,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5cdbd6(o(_0x4e4127,'ELEMENT_TODO_LIST'));}}),_0xf159f1['descriptionFactory']['registerDescriptionCallback'](_0x366985=>{const {data:_0x3f64df}=_0x366985;if(_0x3f64df&&'listIndent'==_0x3f64df['key'])return null==_0x3f64df['newValue']||null==_0x3f64df['oldValue']&&0x0==_0x3f64df['newValue']?_0x1948b9:void 0x0;}),_0xf159f1['descriptionFactory']['registerDescriptionCallback'](_0x19df7b=>{if('attribute'!=_0x19df7b['type'])return;const {data:_0x725155}=_0x19df7b;if(!_0x725155||'listItemId'!=_0x725155['key'])return;const _0xbfccb1=Ee(_0x19df7b);return'newValue'==_0xbfccb1?{'type':'format','content':o(_0x4e4127,'*Merge:*\x20list\x20item')}:'oldValue'==_0xbfccb1?{'type':'format','content':o(_0x4e4127,'*Split:*\x20list\x20item')}:_0x1948b9;}),_0xbe6556['model']['document']['registerPostFixer'](_0x43a156=>this['listItemIdFixer'](_0x43a156)),_0xbe6556['model']['document']['registerPostFixer'](_0x49272f=>this['noTrackChangesFixer'](_0x49272f)),_0xbe6556['model']['document']['on']('change:data',(_0x35f69d,_0x3c1a62)=>{if(_0x3c1a62['isUndo']||!_0x3c1a62['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x466a32){if(_0x466a32['batch']['isUndo']||!_0x466a32['batch']['isLocal'])return!0x1;let _0x4de408=!0x1;const _0x12a518=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41874a=>_0x41874a['data']&&'listItemId'==_0x41874a['data']['key'])['filter'](_0x3a97f0=>_0x3a97f0['data']['newValue']&&_0x3a97f0['data']['oldValue']);for(const _0x26824d of _0x12a518)Ee(_0x26824d)||(_0x466a32['removeMarker'](_0x26824d['getFirstMarker']()),_0x4de408=!0x0);return _0x4de408;}['noTrackChangesFixer'](_0x289dc9){if(_0x289dc9['batch']['isUndo']||!_0x289dc9['batch']['isLocal'])return!0x1;const _0x41230f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x41230f['trackChangesCommand']['value'])return!0x1;let _0x3b543c=!0x1;const _0x53e9b7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3995cf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x37697a=>'attribute'==_0x37697a['type'])['filter'](_0x1ff66f=>_0x53e9b7['includes'](_0x1ff66f['attributeKey']));if(0x0==_0x3995cf['length'])return _0x3b543c;for(const _0xbf7215 of _0x3995cf){const _0x36f6bd=_0x41230f['_findSuggestions'](_0xbf7215['range'],'attribute')['filter'](_0x61a7a7=>!_0x61a7a7['meta']['isNextTo'])['map'](_0x21b4eb=>_0x21b4eb['suggestion'])['filter'](_0xb40052=>{const _0x4afb4c=_0x41230f['_getAttributeKey'](_0xb40052);return _0x53e9b7['includes'](_0x4afb4c);});if(_0x36f6bd['length']){for(const _0x452744 of _0x36f6bd)_0x289dc9['removeMarker'](_0x452744['getFirstMarker']());_0x3b543c=!0x0;}}return _0x3b543c;}['assureChains'](){const _0x3e0c96=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3803=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f123f;const _0x16f341=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20c281=>{if(_0x20c281['data']['oldRange']||!_0x20c281['data']['newRange'])return null;if(!_0x20c281['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x45d09e}=_0x3e0c96['_splitMarkerName'](_0x20c281['name']);if(!_0x3e0c96['hasSuggestion'](_0x45d09e))return null;const _0x293e37=_0x3e0c96['getSuggestion'](_0x45d09e);return _0x2a3803['includes'](_0x293e37['data']['key']);})['map'](_0x5e3c1d=>{const {id:_0xc7b77e}=_0x3e0c96['_splitMarkerName'](_0x5e3c1d['name']),_0x263e9d=_0x3e0c96['getSuggestion'](_0xc7b77e);return _0x3f123f=_0x263e9d['attributes']['groupId'],_0x263e9d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x16f341['size'])return;const _0x3bc098=_0x3e0c96['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1af283=>'attribute'==_0x1af283['type']&&_0x1af283['data']&&_0x2a3803['includes'](_0x1af283['data']['key'])&&_0x1af283['attributes']['groupId']!=_0x3f123f)['map'](_0x509203=>({'listItem':_0x509203['getFirstRange']()['start']['nodeAfter'],'groupId':_0x509203['attributes']['groupId']})),_0x19d726=new Set();for(const {groupId:_0x1eb446,listItem:_0x1bc8f1}of _0x3bc098)_0x16f341['has'](_0x1bc8f1)&&_0x19d726['add'](_0x1eb446);for(const _0x3c00fd of _0x3e0c96['getSuggestions']())_0x19d726['has'](_0x3c00fd['attributes']['groupId'])&&_0x3c00fd['setAttribute']('groupId',_0x3f123f);}['_supportLegacySuggestions'](){const _0x57811e=this['editor'],_0x21a630=_0x57811e['locale'],_0x52a55d=_0x57811e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52a55d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1779e3,_0x5c251c){const _0x498ea1=[];for(let _0x46821b of _0x1779e3)_0x46821b['start']['nodeAfter']===_0x46821b['end']['parent']&&(_0x46821b=_0x57811e['model']['createRange'](_0x57811e['model']['createPositionAt'](_0x46821b['start']['nodeAfter'],0x0))),_0x498ea1['push'](_0x46821b);_0x57811e['model']['change'](_0x5243ed=>{const _0x17d0c4=_0x57811e['model']['document']['selection'],_0x2e610b=Array['from'](_0x17d0c4['getRanges']())['map'](_0x178048=>_0xd23514['fromRange'](_0x178048));_0x5243ed['setSelection'](_0x498ea1),_0x57811e['commands']['get'](_0x5c251c['commandName'])['refresh'](),_0x5c251c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x57811e['execute'](_0x5c251c['commandName'],..._0x5c251c['commandParams']),_0x5243ed['setSelection'](_0x2e610b);for(const _0x42b592 of _0x2e610b)_0x42b592['detach']();});}),_0x52a55d['descriptionFactory']['registerElementLabel'](function(_0x2906e2){const _0x1ee4b6=!_0x57811e['model']['schema']['isObject'](_0x2906e2),_0xc963fc=_0x2906e2['previousSibling'],_0x161239=_0x2906e2['nextSibling'],_0x45a0b9=_0x2906e2['getAttribute']('listItemId'),_0x4f79ec=!_0xc963fc||_0xc963fc['getAttribute']('listItemId')!==_0x45a0b9,_0xba9388=!_0x161239||_0x161239['getAttribute']('listItemId')!==_0x45a0b9;return _0x1ee4b6&&Boolean(_0x45a0b9)&&_0x4f79ec&&_0xba9388;},_0x39e58d=>o(_0x21a630,'ELEMENT_LIST_ITEM',_0x39e58d));}['_registerLegacyDescription'](){const _0x4c62ac=this['editor'],_0x52db95=_0x4c62ac['locale'];function _0x21a484(_0x3fd25a){const _0x1d858e=_0x4c62ac['commands']['get']('bulletedList')['value'],_0x2fa944=_0x4c62ac['commands']['get']('numberedList')['value'];return'numberedList'===_0x3fd25a?_0x1d858e:_0x2fa944;}_0x4c62ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x549a98){if('formatBlock'!=_0x549a98['type'])return;const {data:_0x475eef}=_0x549a98;if(!_0x475eef)return;let _0x3b79de,_0x2beee4,_0x37cd14,_0x157051;switch(_0x475eef['commandName']){case'bulletedList':_0x37cd14=_0x475eef['commandParams'][0x0]['forceValue'],_0x157051=_0x21a484(_0x475eef['commandName']),_0x3b79de=_0x37cd14?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x157051&&_0x4c62ac['config']['get']('list.multiBlock')||(_0x3b79de='*Change\x20to:*\x20%0'),_0x2beee4={'type':'format','content':o(_0x52db95,_0x3b79de,o(_0x52db95,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x37cd14=_0x475eef['commandParams'][0x0]['forceValue'],_0x157051=_0x21a484(_0x475eef['commandName']),_0x3b79de=_0x37cd14?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x157051&&_0x4c62ac['config']['get']('list.multiBlock')||(_0x3b79de='*Change\x20to:*\x20%0'),_0x2beee4={'type':'format','content':o(_0x52db95,_0x3b79de,o(_0x52db95,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b79de='*Indent:*\x20%0',_0x2beee4={'type':'format','content':o(_0x52db95,_0x3b79de,o(_0x52db95,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b79de=function(_0x4bb501){const _0x55d631=_0x4bb501['getFirstRange']();let _0x52aca6=_0x55d631['start']['nodeAfter'];for(;_0x52aca6&&_0x55d631['containsItem'](_0x52aca6);){if(_0x52aca6['getAttribute']('listIndent')>0x0)return!0x1;_0x52aca6=_0x52aca6['nextSibling'];}return!0x0;}(_0x549a98)?o(_0x52db95,'*Format:*\x20remove\x20from\x20%0',o(_0x52db95,function(_0x14cb95){return'ELEMENT_'+_0x14cb95['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x549a98))):o(_0x52db95,'*Outdent:*\x20%0',o(_0x52db95,'ELEMENT_LIST_ITEM')),_0x2beee4={'type':'format','content':_0x3b79de};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x475eef['multipleBlocks']&&(_0x3b79de='*Merge:*\x20%0',_0x2beee4={'type':'deletion','content':o(_0x52db95,_0x3b79de,o(_0x52db95,'ELEMENT_LIST_ITEM'))});}return _0x2beee4;});}}function Ee(_0x46bca9){let _0x2e0f64=_0x46bca9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2e0f64;){const _0x5299ac=_0x2e0f64['getAttribute']('listItemId');if(!_0x5299ac)return!0x1;if(_0x5299ac==_0x46bca9['data']['newValue'])return'newValue';if(_0x5299ac==_0x46bca9['data']['oldValue'])return'oldValue';_0x2e0f64=_0x2e0f64['previousSibling'];}return!0x1;}class pe extends _0x15b66e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x59a1ec=this['editor']['config']['get']('list.properties'),_0x526213=this['editor']['plugins']['get']('TrackChangesEditing');_0x59a1ec['styles']&&(_0x526213['enableDefaultAttributesIntegration']('listStyle'),_0x526213['registerBlockAttribute']('listStyle')),_0x59a1ec['reversed']&&(_0x526213['enableDefaultAttributesIntegration']('listReversed'),_0x526213['registerBlockAttribute']('listReversed')),_0x59a1ec['startIndex']&&(_0x526213['enableDefaultAttributesIntegration']('listStart'),_0x526213['registerBlockAttribute']('listStart'));const _0x4028bb={'type':'format','content':''};_0x526213['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2acccb=this['editor']['locale'];_0x526213['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2acccb,'FORMAT_LIST_REVERSED')),_0x526213['descriptionFactory']['registerDescriptionCallback'](_0x4129f1=>{const {data:_0x523aa3}=_0x4129f1;if(_0x523aa3&&'listReversed'==_0x523aa3['key'])return null==_0x523aa3['newValue']||0x0==_0x523aa3['newValue']&&null==_0x523aa3['oldValue']?_0x4028bb:void 0x0;}),_0x526213['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2acccb,'FORMAT_LIST_START')),_0x526213['descriptionFactory']['registerDescriptionCallback'](_0x31fa84=>{const {data:_0x193146}=_0x31fa84;if(_0x193146&&'listStart'==_0x193146['key'])return null==_0x193146['newValue']||0x1==_0x193146['newValue']&&null==_0x193146['oldValue']?_0x4028bb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2a9736=>{if(_0x2a9736['batch']['isUndo'])return!0x1;let _0x1c65fa=!0x1;const _0x2b6885=_0x526213['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bf89e=>{const _0x594f94=_0x526213['_getAttributeKey'](_0x3bf89e);return'listStart'==_0x594f94||'listReversed'==_0x594f94;});for(const _0x388e86 of _0x2b6885){const _0x6f131a=_0x388e86['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x6f131a||'customNumbered'==_0x6f131a)continue;_0x526213['_findSuggestions'](_0x388e86['getFirstRange'](),'attribute')['find'](_0x1f58ae=>'listType'==_0x526213['_getAttributeKey'](_0x1f58ae['suggestion']))||(_0x2a9736['removeMarker'](_0x388e86['getFirstMarker']()),_0x1c65fa=!0x0);}return _0x1c65fa;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x466ca9){const _0x2da951=this['editor']['locale'],{data:_0x5bcf25}=_0x466ca9,_0x58c007={'type':'format','content':''};if(!_0x5bcf25||'listStyle'!=_0x5bcf25['key'])return;if(!_0x5bcf25['oldValue'])return'default'==_0x5bcf25['newValue']?_0x58c007:{'type':'format','content':''+o(_0x2da951,'*Set\x20format:*\x20%0',o(_0x2da951,this['_getTranslationKeyForListStyle'](_0x5bcf25['newValue'])))};if(!_0x5bcf25['newValue']){if('default'==_0x5bcf25['oldValue'])return _0x58c007;let _0x39c4d9=_0x466ca9['head'];for(;_0x39c4d9;){if(_0x39c4d9['data']&&'listType'==_0x39c4d9['data']['key']&&_0x39c4d9['data']['newValue'])return _0x58c007;_0x39c4d9=_0x39c4d9['next'];}return{'type':'format','content':''+o(_0x2da951,'*Remove\x20format:*\x20%0',o(_0x2da951,this['_getTranslationKeyForListStyle'](_0x5bcf25['oldValue'])))};}if('default'!=_0x5bcf25['newValue'])return{'type':'format','content':''+o(_0x2da951,'*Set\x20format:*\x20%0',o(_0x2da951,this['_getTranslationKeyForListStyle'](_0x5bcf25['newValue'])))};let _0x351c9f=_0x466ca9['head'];for(;_0x351c9f;){if(_0x351c9f['data']&&'listType'==_0x351c9f['data']['key']&&_0x351c9f['data']['newValue']&&_0x351c9f['data']['oldValue'])return _0x58c007;_0x351c9f=_0x351c9f['next'];}return{'type':'format','content':o(_0x2da951,'*Set\x20format:*\x20%0',o(_0x2da951,'ELEMENT_'+_0x466ca9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4e7be9=this['editor'],_0x5cb91c=_0x4e7be9['locale'];_0x4e7be9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x264987=>{if('formatBlock'!=_0x264987['type'])return;const {data:_0x45cb2f}=_0x264987;if(!_0x45cb2f)return;let _0x59dab5,_0x25ba4e;switch(_0x45cb2f['commandName']){case'listStyle':_0x59dab5='*Change\x20to:*\x20%0',_0x25ba4e={'type':'format','content':o(_0x5cb91c,_0x59dab5,o(_0x5cb91c,this['_getTranslationKeyForListStyle'](_0x45cb2f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x59dab5=_0x45cb2f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25ba4e={'type':'format','content':o(_0x5cb91c,_0x59dab5)};break;case'listStart':_0x59dab5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25ba4e={'type':'format','content':o(_0x5cb91c,_0x59dab5,_0x45cb2f['commandParams'][0x0]['startIndex'])};}return _0x25ba4e;});}['_getTranslationKeyForListStyle'](_0x3a0c37){return'ELEMENT_'+function(_0x1dba79){if(ye['includes'](_0x1dba79))return'bulleted';if(Se['includes'](_0x1dba79))return'numbered';return null;}(_0x3a0c37)['toUpperCase']()+'_LIST_'+_0x3a0c37['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x15b66e{static get['requires'](){return[_0x3db2bf];}['init'](){const _0xd6b99=this['editor'],_0x25ef06=_0xd6b99['plugins']['get']('TrackChangesEditing'),_0x29dcc0=_0xd6b99['commands']['get']('enter');_0x25ef06['enableCommand']('enter',()=>{_0xd6b99['model']['change'](_0x4466de=>{const _0x18e96c=_0xd6b99['model']['document']['selection'],_0x1c1103=_0x18e96c['getFirstPosition'](),_0xd7c13=_0xd23514['fromRange'](_0x18e96c['getFirstRange']());if(_0x29dcc0['enterBlock'](_0x4466de)){const _0x5900e0=_0xd6b99['model']['createPositionAt'](_0x1c1103['parent']['nextSibling'],0x0),_0x15d668=_0x4466de['createRange'](_0x1c1103,_0x5900e0);_0x25ef06['markInsertion'](_0x15d668);}else _0x4466de['setSelection'](_0x4466de['createRange'](_0xd7c13['end']));_0xd7c13['detach'](),_0x29dcc0['fire']('afterExecute',{'writer':_0x4466de});});}),_0xd6b99['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xd6b99,'split'),{'priority':'high'}),_0xd6b99['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x29399d,_0x2985f2,_0x307316)=>{const _0x22379e=_0x307316['mapper']['markerNameToElements'](_0x2985f2['markerName']);if(_0x22379e){for(const _0x1c39d6 of _0x22379e)_0x1c39d6['hasClass']('ck-suggestion-marker-split')&&(_0x307316['mapper']['unbindElementFromMarkerName'](_0x1c39d6,_0x2985f2['markerName']),_0x307316['writer']['remove'](_0x1c39d6));}},{'priority':'high'}),_0xd6b99['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x7c8bf4,_0x406639,_0x1f6aee)=>{_0x1f6aee['options']['showSuggestionHighlights']&&_e(_0xd6b99,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x7c8bf4,_0x406639,_0x1f6aee);},{'priority':'high'});}}class X extends _0x15b66e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x501eab=this['editor']['plugins']['get']('TrackChangesEditing');_0x501eab['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x501eab['enableCommand']('findNext'),_0x501eab['enableCommand']('findPrevious'),_0x501eab['enableCommand']('replace'),_0x501eab['enableCommand']('replaceAll');}['handleFindCommand'](_0x337d4e,_0x555cb0,_0x5351f1={}){const _0x3ff6bc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x337d4e(_0x54523f=>{let _0x128474=('string'==typeof _0x555cb0?_0x3ff6bc['findByTextCallback'](_0x555cb0,_0x5351f1):_0x555cb0)(_0x54523f);Array['isArray'](_0x128474)&&(_0x128474={'results':_0x128474,'searchText':'string'==typeof _0x555cb0?_0x555cb0:''});const _0x481d76=_0x128474['results']['filter'](_0x387f35=>!0x1===this['_isInDeletionRange'](_0x387f35,_0x54523f['item']));return{..._0x128474,'results':_0x481d76};},_0x5351f1);}['_isInDeletionRange'](_0x52f956,_0x4aa67c){const _0xb2fcc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aa67c,_0x52f956['start']),this['editor']['model']['createPositionAt'](_0x4aa67c,_0x52f956['end']));for(const _0xa6b4c9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xb2fcc['getIntersection'](_0xa6b4c9['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x15b66e{['afterInit'](){const _0xa3785e=this['editor']['locale'],_0x1b85fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x550948,commandName:_0x39dd18}of ro)this['editor']['plugins']['has'](_0x550948)&&(_0x1b85fb['enableDefaultAttributesIntegration'](_0x39dd18),_0x1b85fb['registerInlineAttribute'](_0x39dd18));_0x1b85fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xa3785e,'FORMAT_FONT_SIZE')),_0x1b85fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xa3785e,'FORMAT_FONT_FAMILY')),_0x1b85fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xa3785e,'FORMAT_FONT_COLOR')),_0x1b85fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xa3785e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x446cc9=this['editor'],_0x251de6=_0x446cc9['locale'];_0x446cc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323e36=>{const _0x26af40=_0x251de6['t'];if('formatInline'!=_0x323e36['type'])return;const {data:_0x2cac8a}=_0x323e36;if(null!=_0x2cac8a){if('fontSize'==_0x2cac8a['commandName']){const _0x1a98a6=_0x2cac8a['commandParams'][0x0]['value'];if(_0x1a98a6){const _0x4a73f2=_0x26af40(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x521457=>_0x521457['model']==_0x1a98a6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x251de6,'*Set\x20font\x20size:*\x20%0',_0x4a73f2)};}return{'type':'format','content':o(_0x251de6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2cac8a['commandName']){const _0x5d7c97=_0x2cac8a['commandParams'][0x0]['value'];return _0x5d7c97?{'type':'format','content':o(_0x251de6,'*Set\x20font\x20family:*\x20%0',_0x5d7c97)}:{'type':'format','content':o(_0x251de6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2cac8a['commandName']){const _0x1c4fd4=_0x2cac8a['commandParams'][0x0]['value'];if(_0x1c4fd4){const _0x5d2cad=_0x4687a6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3298a2=>_0x3298a2['model']==_0x1c4fd4);let _0x2cce8a=_0x1c4fd4,_0x565de1='';return _0x5d2cad&&(_0x2cce8a=_0x5d2cad['label'],_0x565de1=_0x26af40(_0x2cce8a)['toLowerCase']()),{'type':'format','content':o(_0x251de6,'*Set\x20font\x20color:*\x20%0',_0x565de1)['trim'](),'color':{'value':_0x1c4fd4,'title':_0x565de1||_0x2cce8a}};}return{'type':'format','content':o(_0x251de6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2cac8a['commandName']){const _0x462039=_0x2cac8a['commandParams'][0x0]['value'];if(_0x462039){const _0x55fc64=_0x4687a6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2869d7=>_0x2869d7['model']==_0x462039);let _0x3f7135=_0x462039,_0x395875='';return _0x55fc64&&(_0x3f7135=_0x55fc64['label'],_0x395875=_0x26af40(_0x3f7135)['toLowerCase']()),{'type':'format','content':o(_0x251de6,'*Set\x20font\x20background\x20color:*\x20%0',_0x395875)['trim'](),'color':{'value':_0x462039,'title':_0x395875||_0x3f7135}};}return{'type':'format','content':o(_0x251de6,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x15b66e{['afterInit'](){const _0x4e2dc7=this['editor'],_0x2ba033=_0x4e2dc7['plugins']['get']('TrackChangesEditing'),_0x5eaf2c=_0x4e2dc7['commands']['get']('copyFormat'),_0x46e6e7=_0x4e2dc7['commands']['get']('pasteFormat');_0x5eaf2c&&_0x46e6e7&&(_0x2ba033['enableDefaultAttributesIntegration']('pasteFormat'),_0x2ba033['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x12d7a1=this['editor'],_0x2d74aa=_0x12d7a1['locale'];_0x12d7a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe82e75=>{if('formatBlock'!=_0xe82e75['type']&&'formatInline'!=_0xe82e75['type'])return;const {data:_0x1f75f2}=_0xe82e75;if(_0x1f75f2&&'pasteFormat'===_0x1f75f2['commandName']){const _0x496e9b=[],_0x43d0dc=_0x1f75f2['commandParams'][0x0];for(const [_0x3b8eb6,_0x508b2a]of Object['entries'](_0x43d0dc))_0x496e9b['push'](so(_0x12d7a1,_0x3b8eb6,_0x508b2a));return _0x496e9b['length']?{'type':'format','content':o(_0x2d74aa,'*Set\x20format\x20to:*\x20%0',_0x496e9b['join'](',\x20'))}:{'type':'format','content':o(_0x2d74aa,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5a5a00,_0x260918,_0x581d27){const _0x57713d=_0x5a5a00['locale']['t'],_0x5453ec=_0x260918['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d50de=_0x57713d(_0x5453ec['charAt'](0x0)['toUpperCase']()+_0x5453ec['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x581d27)return _0x1d50de;if('fontColor'===_0x260918||'fontBackgroundColor'===_0x260918){const _0x1b95db=_0x4687a6(_0x5a5a00['config']['get']('fontColor.colors'))['find'](_0x167dc1=>_0x167dc1['model']==_0x581d27);return _0x1d50de+'\x20('+(_0x1b95db?_0x57713d(_0x1b95db['label'])['toLowerCase']():_0x581d27)+')';}if('fontSize'===_0x260918&&isNaN(parseFloat(_0x581d27))){const _0x4dbe25=_0x5a5a00['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5a5a00['config']['get']('fontSize.options'))['find'](_0x4e44d8=>_0x4e44d8['model']==_0x581d27);return _0x1d50de+'\x20('+(_0x4dbe25?_0x57713d(_0x4dbe25['title'])['toLowerCase']():_0x581d27)+')';}return _0x1d50de+'\x20('+_0x581d27+')';}class tt extends _0x15b66e{['_headingOptions'];['afterInit'](){const _0x4c30a4=this['editor'];if(!_0x4c30a4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4c30a4['config']['get']('heading.options');const _0x5dbef8=_0x4c30a4['locale'],_0x2e41dd=_0x4c30a4['plugins']['get']('TrackChangesEditing');_0x2e41dd['enableDefaultAttributesIntegration']('heading');for(const _0x59b7ea of this['_headingOptions'])'paragraph'!=_0x59b7ea['model']&&_0x2e41dd['descriptionFactory']['registerElementLabel'](_0x59b7ea['model'],_0x2a0cc9=>{const _0x3940b4=this['_getHeadingLevel'](_0x59b7ea['model']);return null!==_0x3940b4?_0x38f40d(_0x2a0cc9,_0x3940b4):_0x32e79e(_0x2a0cc9,_0x59b7ea['title']);});function _0x38f40d(_0x55dfde,_0x39b299){return o(_0x5dbef8,'ELEMENT_HEADING',[_0x55dfde,_0x39b299]);}function _0x32e79e(_0xe147dc,_0x148aa1){return o(_0x5dbef8,'ELEMENT_HEADING_CUSTOM',[_0xe147dc,_0x148aa1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52544f=this['editor'],_0x25c444=_0x52544f['locale'];function _0x231d86(_0x325530,_0x2d8730){return o(_0x25c444,'ELEMENT_HEADING_CUSTOM',[_0x325530,_0x2d8730]);}_0x52544f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480c1a=>{if('formatBlock'!=_0x480c1a['type'])return;const {data:_0x4c7573}=_0x480c1a;if(_0x4c7573&&'heading'==_0x4c7573['commandName']){const _0x444e58=_0x4c7573['commandParams'][0x0]['value'],_0x2879ef=this['_getHeadingLevel'](_0x444e58);if(null!==_0x2879ef)return{'type':'format','content':o(_0x25c444,'*Change\x20to:*\x20%0',(_0x200c6b=0x1,_0x58d336=_0x2879ef,o(_0x25c444,'ELEMENT_HEADING',[_0x200c6b,_0x58d336])))};const _0x1af5a8=this['_headingOptions']['find'](_0x1c019b=>_0x1c019b['model']===_0x444e58)['title'];return{'type':'format','content':o(_0x25c444,'*Change\x20to:*\x20%0',_0x231d86(0x1,_0x1af5a8))};}var _0x200c6b,_0x58d336;});}['_getHeadingLevel'](_0x3f0e90){const _0x8f3d39=_0x3f0e90['match'](/^heading(\d+)/);if(_0x8f3d39)return _0x8f3d39[0x1];const _0xc02ac2=this['_headingOptions']?.['find'](_0x44c982=>_0x44c982['model']==_0x3f0e90);if(_0xc02ac2&&_0xc02ac2['view']){const _0x26ce06=_0xc02ac2['view'],_0xc3fb47=(_0x26ce06['name']??_0x26ce06)['match'](/^h(\d+)/);if(_0xc3fb47)return _0xc3fb47[0x1];}return null;}}class et extends _0x15b66e{['afterInit'](){const _0x10e4ac=this['editor'];if(!_0x10e4ac['plugins']['has']('HighlightEditing'))return;const _0x384c0d=_0x10e4ac['plugins']['get']('TrackChangesEditing'),_0x1e88fb=_0x10e4ac['locale'];_0x384c0d['enableDefaultAttributesIntegration']('highlight'),_0x384c0d['registerInlineAttribute']('highlight'),_0x384c0d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1e88fb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xee450b=this['editor'],_0x42f0d2=_0xee450b['locale'];_0xee450b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7ba6=>{if('formatInline'!=_0x1b7ba6['type'])return;const {data:_0x509885}=_0x1b7ba6;if(_0x509885&&'highlight'==_0x509885['commandName']){const _0x2d32f7=_0x42f0d2['t'],_0x2ebde0=_0x509885['commandParams'][0x0]['value'];if(_0x2ebde0){const _0x2283be=_0xee450b['config']['get']('highlight.options')['find'](_0x2f5f6d=>_0x2f5f6d['model']==_0x2ebde0),_0x692365=_0x2d32f7(_0x2283be['title'])['toLowerCase']();return{'type':'format','content':o(_0x42f0d2,'*Set\x20highlight:*\x20%0',_0x692365),'color':{'value':_0x2283be['color'],'title':_0x2283be['title']}};}return{'type':'format','content':o(_0x42f0d2,'*Remove\x20highlight*',o(_0x42f0d2,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x15b66e{['afterInit'](){const _0x37fe7c=this['editor'];if(!_0x37fe7c['plugins']['has']('HorizontalLineEditing'))return;_0x37fe7c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1260b6=_0x37fe7c['plugins']['get']('TrackChangesEditing'),_0x120619=_0x37fe7c['locale'];_0x1260b6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3764f1=>o(_0x120619,'ELEMENT_HORIZONTAL_LINE',_0x3764f1)),_0x37fe7c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b1591,{writer:_0x6e7c09,options:_0x101da1})=>{if(!_0x101da1['showSuggestionHighlights'])return null;const _0xe147aa=_0x6e7c09['createContainerElement']('div'),_0x4ad3f9=_0x6e7c09['createEmptyElement']('hr');return _0x6e7c09['addClass']('ck-horizontal-line',_0xe147aa),_0x6e7c09['insert'](_0x6e7c09['createPositionAt'](_0xe147aa,0x0),_0x4ad3f9),_0xe147aa;},'converterPriority':'high'});}}class st extends _0x15b66e{['afterInit'](){const _0x4bd877=this['editor'];if(!_0x4bd877['plugins']['has']('HtmlEmbed'))return;const _0x5bad43=_0x4bd877['plugins']['get']('TrackChangesEditing'),_0xfb234c=_0x4bd877['locale'];_0x5bad43['descriptionFactory']['registerElementLabel']('rawHtml',_0x49623d=>o(_0xfb234c,'ELEMENT_HTML_EMBED',_0x49623d)),_0x5bad43['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5bad43['registerBlockAttribute']('value'),_0x5bad43['descriptionFactory']['registerDescriptionCallback'](_0x336395=>{if('attribute'!=_0x336395['type'])return;const {data:_0xe293ce}=_0x336395;if(_0xe293ce&&'value'==_0xe293ce['key']&&_0x336395['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x507135=o(_0xfb234c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xfb234c,'*Change\x20%0\x20content*',_0x507135)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x368b45=this['editor'],_0xca5647=_0x368b45['locale'];_0x368b45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x172ef7=>{if('formatBlock'!=_0x172ef7['type'])return;const {data:_0x151f3d}=_0x172ef7;if(_0x151f3d&&'htmlEmbed'==_0x151f3d['commandName']){const _0xd0ba06=o(_0xca5647,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xca5647,'*Change\x20%0\x20content*',_0xd0ba06)};}});}}class nt extends _0x15b66e{['afterInit'](){const _0x4b3f58=this['editor'];if(!_0x4b3f58['plugins']['has']('ImageEditing'))return;const _0x47c7a2=_0x4b3f58['plugins']['get']('TrackChangesEditing'),_0x3a104c=_0x4b3f58['plugins']['get']('ImageUtils'),_0x5a6ce8=_0x4b3f58['locale'];_0x47c7a2['enableCommand']('insertImage'),_0x47c7a2['descriptionFactory']['registerElementLabel']('imageBlock',_0x2197d7=>o(_0x5a6ce8,'ELEMENT_IMAGE',_0x2197d7)),_0x47c7a2['descriptionFactory']['registerElementLabel']('imageInline',_0x57f29d=>o(_0x5a6ce8,'ELEMENT_INLINE_IMAGE',_0x57f29d)),_0x47c7a2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a6ce8,'ELEMENT_CAPTION')),_0x4b3f58['plugins']['has']('ImageUploadEditing')&&_0x47c7a2['enableCommand']('uploadImage'),_0x4b3f58['plugins']['has']('ImageBlockEditing')&&_0x4b3f58['plugins']['has']('ImageInlineEditing')&&(_0x47c7a2['enableCommand']('imageTypeInline',(_0x18c8ae,_0x22c920)=>{const _0x2a0441=_0x3a104c['getClosestSelectedImageElement'](_0x4b3f58['model']['document']['selection']);_0x4b3f58['model']['change'](()=>{_0x47c7a2['markBlockFormat'](_0x2a0441,{'commandName':'imageTypeInline','commandParams':[_0x22c920]},[],'convertBlockImageToInline');});}),_0x47c7a2['enableCommand']('imageTypeBlock',(_0x5f3b5c,_0x371b5e)=>{_0x4b3f58['model']['change'](_0x304dac=>{let _0x128822=_0x3a104c['getClosestSelectedImageElement'](_0x4b3f58['model']['document']['selection']),_0x8dc2f2=_0x304dac['createRangeOn'](_0x128822);const _0x3f51bc=_0x549bd2['fromPosition'](_0x8dc2f2['start'],'toPrevious'),_0x34564b=_0x549bd2['fromPosition'](_0x8dc2f2['end'],'toNext');_0x47c7a2['forceDefaultExecution'](()=>_0x5f3b5c(_0x371b5e)),_0x128822=_0x3a104c['getClosestSelectedImageElement'](_0x4b3f58['model']['document']['selection']),_0x8dc2f2=_0x304dac['createRangeOn'](_0x128822);const _0x557ca0=_0x304dac['createRange'](_0x3f51bc,_0x34564b);_0x3f51bc['detach'](),_0x34564b['detach'](),_0x47c7a2['markBlockFormat'](_0x128822,{'commandName':'imageTypeInline','commandParams':[_0x371b5e]},[],'convertInlineImageToBlock'),_0x557ca0['start']['isBefore'](_0x8dc2f2['start'])&&_0x47c7a2['markInsertion'](_0x304dac['createRange'](_0x557ca0['start'],_0x8dc2f2['start']),'convertInlineImageToBlock'),_0x8dc2f2['end']['isBefore'](_0x557ca0['end'])&&_0x47c7a2['markInsertion'](_0x304dac['createRange'](_0x8dc2f2['end'],_0x557ca0['end']),'convertInlineImageToBlock');});}),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x47c7a2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4bcd59])=>{const _0x37abdc=_0x47c7a2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4db98e=_0x4bcd59['start'],_0x253485=_0x4bcd59['end'];const _0x7b75a0=_0x4b3f58['model']['schema']['getNearestSelectionRange'](_0x4db98e,'backward'),_0x1d48fd=_0x4b3f58['model']['schema']['getNearestSelectionRange'](_0x253485,'forward');_0x7b75a0['isCollapsed']&&(_0x4db98e=_0x7b75a0['start']),_0x1d48fd['isCollapsed']&&(_0x253485=_0x1d48fd['end']),_0x37abdc([_0x4b3f58['model']['createRange'](_0x4db98e,_0x253485)]);}),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x112ca8),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x112ca8)),_0x4b3f58['plugins']['has']('ImageCaptionEditing')&&(_0x47c7a2['enableCommand']('toggleImageCaption',(_0x484072,_0x348750)=>{const _0x22d171=_0x4b3f58['plugins']['get']('ImageCaptionUtils');let _0x23b395=_0x3a104c['getClosestSelectedImageElement'](_0x4b3f58['model']['document']['selection']),_0x492490=_0x22d171['getCaptionFromImageModelElement'](_0x23b395);_0x4b3f58['model']['change'](()=>{if(_0x492490)return void _0x47c7a2['markDeletion'](_0x4b3f58['model']['createRangeOn'](_0x492490));const _0x1fcbc9=_0x3a104c['isBlockImage'](_0x23b395);_0x484072(_0x348750),_0x23b395=_0x3a104c['getClosestSelectedImageElement'](_0x4b3f58['model']['document']['selection']),_0x492490=_0x22d171['getCaptionFromImageModelElement'](_0x23b395),_0x47c7a2['markInsertion'](_0x4b3f58['model']['createRangeOn'](_0x492490),_0x1fcbc9?null:'imageCaption');});}),_0x47c7a2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x112ca8));const _0x4b8f2e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3388c8(_0x2ee382,_0x3bf644){const _0x39b535=_0x4b8f2e['findIndex'](({type:_0x210710,subType:_0x5a935c})=>_0x2ee382['type']==_0x210710&&_0x2ee382['subType']==_0x5a935c),_0x29debd=_0x4b8f2e['findIndex'](({type:_0x34f5e1,subType:_0x254ce3})=>_0x3bf644['type']==_0x34f5e1&&_0x3bf644['subType']==_0x254ce3);if(_0x39b535<0x0||_0x29debd<0x0)return!0x1;const _0x3e5926=_0x2ee382['getFirstRange'](),_0x537f0e=_0x3bf644['getFirstRange']();if((0x0==_0x39b535||0x1==_0x39b535)&&0x2==_0x29debd&&_0x3e5926['isIntersecting'](_0x537f0e))return!0x0;if(0x2==_0x39b535&&0x3==_0x29debd){const _0x2d34df=_0x47c7a2['_findSuggestions'](_0x3e5926,'insertion')['filter'](({suggestion:_0x2fa0a6,meta:_0x409ff7})=>_0x409ff7['isOwn']&&'convertInlineImageToBlock'==_0x2fa0a6['subType']);if(_0x2d34df['length']>0x1&&_0x537f0e['end']['isEqual'](_0x3e5926['start']))return!0x0;if(0x1==_0x2d34df['length']&&(_0x3e5926['start']['isEqual'](_0x537f0e['end'])||_0x3e5926['end']['isEqual'](_0x537f0e['start'])))return!0x0;}if(0x3==_0x39b535&&0x3==_0x29debd&&_0x3e5926['start']['isBefore'](_0x537f0e['start'])){const _0x4baa79=_0x3e5926['end']['nodeAfter'],_0x4ef3a0=_0x537f0e['start']['nodeBefore'];return _0x3a104c['isBlockImage'](_0x4baa79)&&_0x4baa79===_0x4ef3a0;}return!0x1;}function _0x112ca8(_0x1e8737,_0x993a1f){return _0x3388c8(_0x1e8737,_0x993a1f)?[_0x1e8737,_0x993a1f]:_0x3388c8(_0x993a1f,_0x1e8737)?[_0x993a1f,_0x1e8737]:null;}_0x4b3f58['plugins']['has']('ImageResize')&&(_0x47c7a2['enableDefaultAttributesIntegration']('resizeImage'),_0x47c7a2['registerBlockAttribute']('resizedWidth'),_0x47c7a2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a6ce8,'FORMAT_IMAGE_SIZE'))),_0x4b3f58['plugins']['has']('ImageTextAlternativeEditing')&&(_0x47c7a2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x47c7a2['registerBlockAttribute']('alt')),_0x47c7a2['descriptionFactory']['registerDescriptionCallback'](_0x177c09=>{if(!!_0x4b8f2e['find'](({type:_0x18c923,subType:_0x35eeb4})=>_0x177c09['type']==_0x18c923&&_0x177c09['subType']==_0x35eeb4))return _0x177c09['previous']?{}:void 0x0;}),_0x47c7a2['descriptionFactory']['registerDescriptionCallback'](_0x783bf1=>{if('insertion'==_0x783bf1['type']||'deletion'==_0x783bf1['type']){const _0x3b3010=_0x783bf1['getContainedElement']();if(_0x3b3010&&_0x3b3010['is']('element','caption'))return{'type':'insertion'==_0x783bf1['type']?'addObject':'removeObject','element':_0x3b3010,'quantity':0x1};}}),_0x47c7a2['descriptionFactory']['registerDescriptionCallback'](_0x5c52d9=>'formatBlock'==_0x5c52d9['type']&&'convertInlineImageToBlock'==_0x5c52d9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c52d9['type']&&'convertBlockImageToInline'==_0x5c52d9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x47c7a2['descriptionFactory']['registerDescriptionCallback'](_0x5d0139=>{if('attribute'!=_0x5d0139['type'])return;const {data:_0x37f1be}=_0x5d0139;if(!_0x37f1be||'alt'!=_0x37f1be['key'])return;const _0x7d0506=_0x37f1be['newValue'];return _0x7d0506?{'type':'format','content':o(_0x5a6ce8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7d0506+'\x22')}:{'type':'format','content':o(_0x5a6ce8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53d6c2=this['editor'],_0x2101af=_0x53d6c2['locale'];_0x53d6c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f05d=>{if('formatBlock'!=_0x20f05d['type']&&'formatInline'!=_0x20f05d['type'])return;const {data:_0x122bd7}=_0x20f05d;if(_0x122bd7){if('imageTextAlternative'==_0x122bd7['commandName']){const _0x4fbf1f=_0x122bd7['commandParams'][0x0]['newValue'];return _0x4fbf1f?{'type':'format','content':o(_0x2101af,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4fbf1f+'\x22')}:{'type':'format','content':o(_0x2101af,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x122bd7['commandName']){const _0x5dd1b9=_0x122bd7['commandParams'][0x0]['width'];return _0x5dd1b9?{'type':'format','content':o(_0x2101af,'*Set\x20image\x20width:*\x20%0',_0x5dd1b9)}:{'type':'format','content':o(_0x2101af,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x15b66e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x11b205=this['editor']['locale'],_0x4b0ecd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b0ecd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b0ecd['registerBlockAttribute']('src'),_0x4b0ecd['descriptionFactory']['registerDescriptionCallback'](_0x5b6c76=>{if('attribute'!=_0x5b6c76['type'])return;const {data:_0x3f269b}=_0x5b6c76;return _0x3f269b&&'src'==_0x3f269b['key']?_0x3f269b['newValue']&&_0x3f269b['oldValue']?{'type':'format','content':o(_0x11b205,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x60be57=this['editor']['plugins']['get']('TrackChangesEditing');_0x60be57['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x60be57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x60be57['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x60be57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d18a4=this['editor'],_0x2970f0=_0x1d18a4['locale'];_0x1d18a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400606=>{if('formatBlock'!=_0x400606['type']&&'formatInline'!=_0x400606['type'])return;const {data:_0x22c470}=_0x400606;if(!_0x22c470||'replaceImageSource'!=_0x22c470['commandName'])return;return{'type':'format','content':o(_0x2970f0,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x15b66e{['afterInit'](){const _0x553c58=this['editor'];if(!_0x553c58['plugins']['has']('ImageStyleEditing'))return;const _0x371d0c=_0x553c58['plugins']['get']('TrackChangesEditing'),_0x31aa2f=_0x553c58['plugins']['get']('ImageUtils'),_0x5090e0={};_0x371d0c['enableCommand']('imageStyle',(_0x3b792c,_0x4e1e71)=>{const _0xc899c6=_0x553c58['plugins']['get']('Users')['me'],_0x3d526c=_0x553c58['commands']['get']('imageStyle');let _0x34eac9=_0x31aa2f['getClosestSelectedImageElement'](_0x553c58['model']['document']['selection']),_0x5a6e96=_0x553c58['model']['createRangeOn'](_0x34eac9),_0x462f5d=_0x3d526c['value'];if(_0x462f5d==_0x4e1e71['value'])return;const _0x28ccfe={'commandName':'imageStyle','commandParams':[_0x4e1e71],'formatGroupId':_0x104525()};_0x553c58['model']['change'](()=>{if(_0x371d0c['getSuggestions']()['filter'](_0x41ba6d=>_0x41ba6d['isInContent']&&_0xc899c6==_0x41ba6d['author']&&('formatBlock'==_0x41ba6d['type']||'formatInline'==_0x41ba6d['type'])&&('imageStylePreApply'==_0x41ba6d['subType']||'imageStylePostApply'==_0x41ba6d['subType'])&&_0x41ba6d['getFirstRange']()['isEqual'](_0x5a6e96))['forEach'](_0x5f4612=>_0x371d0c['discardSuggestion'](_0x5f4612['head'])),_0x34eac9=_0x31aa2f['getClosestSelectedImageElement'](_0x553c58['model']['document']['selection']),_0x5a6e96=_0x553c58['model']['createRangeOn'](_0x34eac9),_0x3d526c['refresh'](),_0x553c58['commands']['get']('imageTypeInline')['refresh'](),_0x553c58['commands']['get']('imageTypeBlock')['refresh'](),_0x462f5d=_0x3d526c['value'],_0x462f5d!=_0x4e1e71['value'])return _0x31aa2f['isInlineImage'](_0x34eac9)&&_0x3d526c['shouldConvertImageType'](_0x4e1e71['value'],_0x34eac9)?(_0x3b792c({..._0x4e1e71,'setImageSizes':!0x1}),_0x34eac9=_0x31aa2f['getClosestSelectedImageElement'](_0x553c58['model']['document']['selection']),void _0x371d0c['markBlockFormat'](_0x34eac9,{..._0x28ccfe,'commandReversedParams':[{'value':_0x462f5d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x31aa2f['isBlockImage'](_0x34eac9)?_0x371d0c['markBlockFormat'](_0x34eac9,_0x28ccfe,[],'imageStylePostApply'):_0x371d0c['markInlineFormat'](_0x5a6e96,_0x28ccfe,'imageStylePostApply'));});});for(const _0x6bdf13 of _0x553c58['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5090e0[_0x6bdf13['name']]=_0x6bdf13['title']['toLowerCase']();_0x371d0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x371d0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x371d0c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x371d0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x319cb2])=>{_0x31aa2f['setImageNaturalSizeAttributes'](_0x319cb2['getContainedElement']());}),_0x371d0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4daa97,_0x990e4e)=>{_0x371d0c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4daa97,{'commandName':_0x990e4e['commandName'],'commandParams':_0x990e4e['commandReversedParams']});}),_0x371d0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2bc4f8,_0x1e5cf5){if(_0x34538d(_0x2bc4f8,_0x1e5cf5))return[_0x2bc4f8,_0x1e5cf5];if(_0x34538d(_0x1e5cf5,_0x2bc4f8))return[_0x1e5cf5,_0x2bc4f8];return null;});const _0x79c118=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x34538d(_0x11f285,_0x22ece4){const _0x46a77f=_0x79c118['findIndex'](({type:_0x157650,subType:_0x512c35})=>_0x11f285['type']==_0x157650&&_0x11f285['subType']==_0x512c35),_0x3bcbd8=_0x79c118['findIndex'](({type:_0xf47c26,subType:_0x13954f})=>_0x22ece4['type']==_0xf47c26&&_0x22ece4['subType']==_0x13954f);if(_0x46a77f<0x0||_0x3bcbd8<0x0)return!0x1;const _0x31aab9=_0x11f285['getFirstRange'](),_0xaff444=_0x22ece4['getFirstRange']();if((0x0==_0x46a77f||0x1==_0x46a77f)&&0x2==_0x3bcbd8&&_0x31aab9['isIntersecting'](_0xaff444))return!0x0;if(0x2==_0x46a77f&&0x3==_0x3bcbd8){const _0x4370aa=_0x371d0c['_findSuggestions'](_0x31aab9,'insertion')['filter'](({suggestion:_0x2697e8,meta:_0x20dea0})=>_0x20dea0['isOwn']&&'convertInlineImageToBlock'==_0x2697e8['subType']);if(_0x4370aa['length']>0x1&&_0xaff444['end']['isEqual'](_0x31aab9['start']))return!0x0;if(0x1==_0x4370aa['length']&&(_0x31aab9['start']['isEqual'](_0xaff444['end'])||_0x31aab9['end']['isEqual'](_0xaff444['start'])))return!0x0;}if(0x3==_0x46a77f&&0x3==_0x3bcbd8&&_0x31aab9['start']['isBefore'](_0xaff444['start'])){const _0x201b3f=_0x31aab9['end']['nodeAfter'],_0x17be24=_0xaff444['start']['nodeBefore'];return _0x31aa2f['isBlockImage'](_0x201b3f)&&_0x201b3f===_0x17be24;}return!0x1;}_0x553c58['model']['document']['registerPostFixer'](()=>{let _0x4fe4da=!0x1;const _0x4205be=Array['from'](_0x553c58['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x333225,data:_0x27c817}of _0x4205be){const {group:_0x4a3fa4,type:_0x1d97c2,subType:_0x1fcdf7,id:_0x246e54}=_0x371d0c['_splitMarkerName'](_0x333225);if('suggestion'==_0x4a3fa4&&_0x371d0c['hasSuggestion'](_0x246e54)){if('formatBlock'==_0x1d97c2&&('imageStylePreApply'==_0x1fcdf7||'imageStylePostApply'==_0x1fcdf7)){const _0x182621=_0x371d0c['getSuggestion'](_0x246e54);if(_0x27c817['newRange']){const _0x41b0ba=_0x182621['getFirstRange']()['getContainedElement']();if(_0x31aa2f['isBlockImage'](_0x41b0ba))continue;_0x371d0c['discardSuggestion'](_0x182621),_0x4fe4da=!0x0;}}if('insertion'==_0x1d97c2&&'imageCaption'==_0x1fcdf7&&!_0x27c817['newRange']){const _0xd0644=_0x371d0c['getSuggestion'](_0x246e54);_0xd0644['next']&&_0xd0644['next']['isInContent']&&(_0x371d0c['discardSuggestion'](_0xd0644['next']),_0x4fe4da=!0x0);}}}return _0x4fe4da;}),this['_registerLegacyDescription'](_0x5090e0);}['_registerLegacyDescription'](_0x1eb4c6){const _0x1a2a51=this['editor'],_0x5559c2=_0x1a2a51['locale'];_0x1a2a51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5533c6=>{if('formatBlock'!=_0x5533c6['type']&&'formatInline'!=_0x5533c6['type'])return;const {data:_0x57b9c6}=_0x5533c6;if(!_0x57b9c6||'imageStyle'!=_0x57b9c6['commandName'])return;const _0x4b55dc=_0x57b9c6['commandParams'][0x0]['value'];return _0x2ac3a0('side'===_0x4b55dc?o(_0x5559c2,'FORMAT_SIDE_IMAGE'):_0x1eb4c6[_0x4b55dc]||_0x4b55dc);function _0x2ac3a0(_0x42641a){return{'type':'format','content':o(_0x5559c2,'*Format:*\x20%0',_0x42641a)};}});}}class at extends _0x15b66e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x293a7d){super(_0x293a7d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x57889f=this['editor'],_0xe0cf94=_0x57889f['commands']['get']('importWord'),_0x4c75d9=_0x57889f['commands']['get']('trackChanges');_0xe0cf94&&(_0xe0cf94['on']('execute',(_0x18253f,[,_0x315c1f])=>{this['_trackChangesValueDuringImport']=_0x4c75d9['value'],_0x315c1f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xe0cf94,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xe0cf94,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c75d9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x57889f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46ec99,_0xa400d){const {suggestions:_0x5d763c}=_0xa400d,_0x47bd2b=this['editor']['commands']['get']('trackChanges'),_0x448442=_0x47bd2b['value'];this['_trackChangesValueDuringImport']!==_0x448442&&(_0x47bd2b['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d763c&&_0x5d763c['forEach'](({id:_0x18e96a,type:_0x2ede1,author:_0x26ea7d,created_at:_0x417d8f})=>{const _0x4c15fa={'id':_0x18e96a,'type':_0x2ede1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26ea7d,'createdAt':_0x417d8f?new Date(_0x417d8f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c15fa);});}}class ct extends _0x15b66e{['afterInit'](){const _0x18a089=this['editor'],_0x2175da=_0x18a089['plugins']['get']('TrackChangesEditing');if(_0x18a089['plugins']['has']('IndentEditing')&&(_0x2175da['enableCommand']('indent'),_0x2175da['enableCommand']('outdent')),_0x18a089['plugins']['has']('IndentBlock')){for(const _0x341ff4 of['indentBlock','outdentBlock'])_0x2175da['enableDefaultAttributesIntegration'](_0x341ff4);}const _0x4fa6fc=_0x18a089['locale'];_0x2175da['registerBlockAttribute']('blockIndent'),_0x2175da['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4fa6fc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e89b6=this['editor'],_0x301872=_0x3e89b6['locale'],_0xf244db=_0x3e89b6['plugins']['get']('TrackChangesEditing');_0xf244db['descriptionFactory']['registerDescriptionCallback'](_0x3c4d81=>{if('formatBlock'!=_0x3c4d81['type'])return;const {data:_0x1d39a0}=_0x3c4d81;if(!_0x1d39a0)return;if('indentBlock'!=_0x1d39a0['commandName']&&'outdentBlock'!=_0x1d39a0['commandName'])return;const _0x5e1b77=_0x3c4d81['getItems']()[0x0],_0x2fad8e=_0xf244db['descriptionFactory']['getItemLabel'](_0x5e1b77);return'indentBlock'==_0x1d39a0['commandName']?{'type':'format','content':o(_0x301872,'*Indent:*\x20%0',_0x2fad8e)}:'outdentBlock'==_0x1d39a0['commandName']?{'type':'format','content':o(_0x301872,'*Outdent:*\x20%0',_0x2fad8e)}:void 0x0;});}}class ut extends _0x15b66e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x15b66e{['afterInit'](){const _0xab81d=this['editor'];if(!_0xab81d['plugins']['has']('LinkEditing'))return;const _0xe94cda=_0xab81d['plugins']['get']('TrackChangesEditing'),_0x5f299f=_0xab81d['commands']['get']('link');_0xe94cda['enableDefaultAttributesIntegration']('link'),_0xe94cda['enableDefaultAttributesIntegration']('unlink'),_0xe94cda['registerInlineAttribute']('linkHref');for(const _0x6cc081 of _0x5f299f['manualDecorators'])_0xe94cda['registerInlineAttribute'](_0x6cc081['id']),_0xe94cda['descriptionFactory']['registerAttributeLabel'](_0x6cc081['id'],'link\x20('+_0x6cc081['label']['toLowerCase']()+')');_0xe94cda['descriptionFactory']['registerDescriptionCallback'](_0x1abb67=>{if('attribute'!=_0x1abb67['type'])return;const {data:_0x3a93d0}=_0x1abb67;if(!_0x3a93d0||'linkHref'!=_0x3a93d0['key'])return;const _0x5296b4=_0x3a93d0['newValue'],_0x374b82=_0xab81d['locale'];return{'type':'format','content':null==_0x5296b4?o(_0x374b82,'*Remove\x20link*'):o(_0x374b82,'*Set\x20link:*\x20%0','\x22'+_0x5296b4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x137ee1=this['editor'],_0x5cd460=_0x137ee1['locale'];_0x137ee1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x336935=>{if('formatInline'!=_0x336935['type'])return;const {data:_0x4a107b}=_0x336935;if(_0x4a107b){if('link'==_0x4a107b['commandName']){const _0x5cc26e=_0x4a107b['commandParams'][0x0];return{'type':'format','content':o(_0x5cd460,'*Set\x20link:*\x20%0','\x22'+_0x5cc26e+'\x22')};}return'unlink'==_0x4a107b['commandName']?{'type':'format','content':o(_0x5cd460,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x15b66e{['afterInit'](){const _0x394224=this['editor'],_0x187156=_0x394224['locale'];if(!_0x394224['plugins']['has']('LegacyListEditing'))return;const _0x72f4cb=_0x394224['plugins']['get']('TrackChangesEditing'),_0x9276db=_0x394224['plugins']['has']('LegacyTodoListEditing');function _0x373068(_0x52081d){return()=>{const _0x565cec=_0x394224['model']['document']['selection'],_0x719a14=_0x394224['commands']['get'](_0x52081d);if(_0x719a14['value'])return void _0x394224['execute']('paragraph',{});const _0xb006b3=_0x52081d['slice'](0x0,-0x4),_0x1efdd4=function(_0xe69b9f,_0x33c3ee,_0x55fb5f){let _0x1514f2=Array['from'](_0xe69b9f)['filter'](_0x379815=>function(_0x44c71d,_0x15335a){return _0x15335a['checkChild'](_0x44c71d['parent'],'listItem')&&!_0x15335a['isObject'](_0x44c71d);}(_0x379815,_0x55fb5f));_0x1514f2=_0x1514f2['filter'](_0x1ec0a4=>!_0x1ec0a4['is']('element','listItem')||_0x1ec0a4['getAttribute']('listType')!=_0x33c3ee);const _0x2b2eba=new Set();for(const _0x3419ab of _0x1514f2)_0x3419ab['is']('element','listItem')?_0x2b2eba['add'](fe(_0x3419ab)):_0x2b2eba['add'](_0x3419ab);return Array['from'](_0x2b2eba);}(_0x565cec['getSelectedBlocks'](),_0xb006b3,_0x394224['model']['schema']);_0x394224['model']['change'](()=>{for(const _0x51cd5d of _0x1efdd4)_0x72f4cb['markBlockFormat'](_0x51cd5d,{'commandName':_0x52081d,'commandParams':[{'forceValue':!_0x719a14['value']}],'formatGroupId':'blockName'},ue(_0x51cd5d));});};}function _0x5807f0(_0x34d15c){return()=>{const _0x22e722=function(_0x8b35a4){let _0x540894=Array['from'](_0x8b35a4);const _0x3ab7eb=_0x540894['findIndex'](_0x2c5496=>'listItem'!=_0x2c5496['name']);return _0x3ab7eb>-0x1&&(_0x540894=_0x540894['slice'](0x0,_0x3ab7eb)),_0x540894;}(_0x394224['model']['document']['selection']['getSelectedBlocks']()),_0x506971=_0x394224['model']['createRange'](_0x394224['model']['createPositionAt'](_0x22e722[0x0],'before'),_0x394224['model']['createPositionAt'](_0x22e722[_0x22e722['length']-0x1],'end'));_0x394224['model']['change'](()=>{_0x72f4cb['markBlockFormat'](_0x506971,{'commandName':_0x34d15c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5f380a){const _0x5a8848=new Set();for(const _0x37d3ea of _0x5f380a){let _0x5cd234=_0x37d3ea['nextSibling'];for(;_0x5cd234&&_0x5cd234['getAttribute']('listIndent')>_0x37d3ea['getAttribute']('listIndent');)_0x5a8848['add'](_0x5cd234),_0x5cd234=_0x5cd234['nextSibling'];}return Array['from'](_0x5a8848);}(_0x22e722));});};}_0x72f4cb['enableCommand']('numberedList',_0x373068('numberedList')),_0x72f4cb['enableCommand']('bulletedList',_0x373068('bulletedList')),_0x9276db&&_0x72f4cb['enableCommand']('todoList',_0x373068('todoList')),_0x72f4cb['enableCommand']('indentList',_0x5807f0('indentList')),_0x72f4cb['enableCommand']('outdentList',_0x5807f0('outdentList')),_0x9276db&&_0x72f4cb['enableCommand']('checkTodoList',()=>{const _0x32a486=_0x394224['commands']['get']('checkTodoList'),_0x2a25cc=Array['from'](_0x32a486['_selectedElements']);_0x2a25cc['filter'](_0xbfd552=>_0xbfd552['getAttribute']('todoListChecked')!=_0x32a486['value']),_0x394224['model']['change'](()=>{for(const _0x28415b of _0x2a25cc)_0x72f4cb['markBlockFormat'](_0x28415b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x32a486['value']}]});});}),_0x72f4cb['descriptionFactory']['registerElementLabel']('listItem',_0x1fa60c=>o(_0x187156,'ELEMENT_LIST_ITEM',_0x1fa60c)),_0x72f4cb['descriptionFactory']['registerDescriptionCallback'](_0x27ab36=>{if('formatBlock'!=_0x27ab36['type']&&'formatInline'!=_0x27ab36['type'])return;const {data:_0x1b2817}=_0x27ab36;if(_0x1b2817){if('numberedList'==_0x1b2817['commandName']||'bulletedList'==_0x1b2817['commandName']||'todoList'==_0x1b2817['commandName'])switch(_0x1b2817['commandName']['replace']('List','')){case'bulleted':return _0x156cf8(o(_0x187156,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x156cf8(o(_0x187156,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x156cf8(o(_0x187156,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1b2817['commandName'])return{'type':'format','content':o(_0x187156,'*Indent:*\x20%0',o(_0x187156,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1b2817['commandName'])return{'type':'format','content':o(_0x187156,'*Outdent:*\x20%0',o(_0x187156,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1b2817['commandName'])return _0x1b2817['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x187156,'*Check\x20item*')}:{'type':'format','content':o(_0x187156,'*Uncheck\x20item*')};}function _0x156cf8(_0x29b730){return{'type':'format','content':o(_0x187156,'*Change\x20to:*\x20%0',_0x29b730)};}});}}function fe(_0x12d6d3){const _0x908f08=_0x12d6d3['getAttribute']('listIndent');if(0x0==_0x908f08)return _0x12d6d3;let _0x5b8c28=_0x12d6d3;for(;_0x12d6d3['previousSibling']&&_0x12d6d3['previousSibling']['is']('element','listItem');){const _0x12a253=_0x12d6d3['previousSibling']['getAttribute']('listIndent');if(_0x12a253==_0x908f08)_0x5b8c28=_0x12d6d3['previousSibling'];else{if(_0x12a253<_0x908f08)break;}_0x12d6d3=_0x12d6d3['previousSibling'];}return _0x5b8c28;}function ue(_0xd9d35c){const _0x309359=[];if(_0xd9d35c['is']('element','listItem')&&_0xd9d35c['getAttribute']('listIndent')>0x0){let _0x5bd689=_0xd9d35c['nextSibling'];for(;_0x5bd689&&'listItem'==_0x5bd689['name']&&_0x5bd689['getAttribute']('listIndent')==_0xd9d35c['getAttribute']('listIndent');)_0x309359['push'](_0x5bd689),_0x5bd689=_0x5bd689['nextSibling'];}return _0x309359;}class W extends _0x15b66e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f2c36=this['editor']['config']['get']('list.properties'),_0x5b7da9=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f2c36['styles']&&_0x5b7da9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f2c36['reversed']&&_0x5b7da9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f2c36['startIndex']&&_0x5b7da9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5b7da9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1a3b60,_0x43e78f={}){const _0x583369=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36eb65=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x583369['markMultiRangeBlockFormat'](_0x36eb65,{'commandName':'listStyle','commandParams':[{'type':_0x43e78f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39451d,_0x5d5b56={}){const _0x2ead24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x562c0c=this['_getSuggestionBlocks'](_0x2d4e49=>_0x2d4e49['is']('element','listItem')&&'numbered'===_0x2d4e49['getAttribute']('listType'));if(_0x562c0c['length']<0x1)return;const _0x3ec024=_0x562c0c['map'](_0x5022f8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5022f8,'before'),this['editor']['model']['createPositionAt'](_0x5022f8,0x0)));this['editor']['model']['change'](()=>{_0x2ead24['markMultiRangeBlockFormat'](_0x3ec024,{'commandName':'listReversed','commandParams':[{'reversed':_0x5d5b56['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x46007a,_0x5549ff={}){const _0x3b4a30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x410e79=this['_getSuggestionBlocks'](_0x763505=>_0x763505['is']('element','listItem')&&'numbered'===_0x763505['getAttribute']('listType'));if(_0x410e79['length']<0x1)return;const _0x53a394=_0x410e79['map'](_0x44334e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44334e,'before'),this['editor']['model']['createPositionAt'](_0x44334e,0x0)));this['editor']['model']['change'](()=>{_0x3b4a30['markMultiRangeBlockFormat'](_0x53a394,{'commandName':'listStart','commandParams':[{'startIndex':_0x5549ff['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x749b66){if('formatBlock'!=_0x749b66['type']&&'formatInline'!=_0x749b66['type'])return;const _0x166326=this['editor']['locale'],{data:_0x540fba}=_0x749b66;if(!_0x540fba)return;let _0x4107a0,_0x42125b;switch(_0x540fba['commandName']){case'listStyle':_0x4107a0='*Change\x20to:*\x20%0',_0x42125b={'type':'format','content':o(_0x166326,_0x4107a0,o(_0x166326,this['_getTranslationKeyForListStyle'](_0x540fba['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4107a0=_0x540fba['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x42125b={'type':'format','content':o(_0x166326,_0x4107a0)};break;case'listStart':_0x4107a0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x42125b={'type':'format','content':o(_0x166326,_0x4107a0,_0x540fba['commandParams'][0x0]['startIndex'])};}return _0x42125b;}['_getSuggestionBlocksForListStyle'](){const _0x2da9da=this['editor']['plugins']['get']('LegacyListUtils');let _0xeea3e2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xeea3e2[0x0]?.['is']('element','listItem')&&_0xeea3e2['unshift'](..._0x2da9da['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xeea3e2[_0xeea3e2['length']-0x1]?.['is']('element','listItem')&&_0xeea3e2['push'](..._0x2da9da['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xeea3e2=[...new Set(_0xeea3e2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xeea3e2=_0xeea3e2['filter'](_0x705581=>_0x705581['is']('element','listItem'))),_0xeea3e2;}['_getSuggestionBlocks'](_0x408b94){const _0x80041e=this['editor']['plugins']['get']('LegacyListUtils');let _0x12470e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x408b94)['map'](_0x4df84c=>{const _0x25305e=this['editor']['model']['createPositionAt'](_0x4df84c,0x0);return[..._0x80041e['getSiblingNodes'](_0x25305e,'backward'),..._0x80041e['getSiblingNodes'](_0x25305e,'forward')];})['flat']();return _0x12470e=[...new Set(_0x12470e)],_0x12470e;}['_getTranslationKeyForListStyle'](_0x7dff3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x7dff3)||'default')['toUpperCase']()+'_LIST_'+_0x7dff3['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x15b66e{['afterInit'](){const _0x574222=this['editor'];if(!_0x574222['plugins']['has']('MediaEmbedEditing'))return;const _0x2efb95=_0x574222['plugins']['get']('TrackChangesEditing'),_0x4feef6=_0x574222['locale'];_0x2efb95['enableCommand']('mediaEmbed'),_0x2efb95['descriptionFactory']['registerElementLabel']('media',_0x1d03fd=>o(_0x4feef6,'ELEMENT_MEDIA',_0x1d03fd)),_0x574222['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1e47d1,{writer:_0x59b56e,options:_0x3fd6bd})=>{if(_0x3fd6bd['showSuggestionHighlights'])return _0x59b56e['createEmptyElement']('div');},'converterPriority':'high'}),_0x574222['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e23da,_0x2d31c0,_0x31f91a)=>{_0x31f91a['options']['showSuggestionHighlights']&&_0x5e23da['stop']();},{'priority':'high'});}}class mt extends _0x15b66e{['afterInit'](){const _0x10c1b0=this['editor'];_0x10c1b0['plugins']['has']('MentionEditing')&&_0x10c1b0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x15b66e{['afterInit'](){const _0x557dcd=this['editor'];if(!_0x557dcd['plugins']['has']('MergeFieldsEditing'))return;_0x557dcd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x557dcd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x716a1f=_0x557dcd['plugins']['get']('TrackChangesEditing'),_0x264670=_0x557dcd['locale'];_0x716a1f['descriptionFactory']['registerElementLabel']('mergeField',_0x120a3e=>o(_0x264670,'ELEMENT_MERGE_FIELD',_0x120a3e)),_0x716a1f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x49235f=>o(_0x264670,'ELEMENT_MERGE_FIELD',_0x49235f)),_0x716a1f['descriptionFactory']['registerDescriptionCallback'](_0x57b34d=>{if('insertion'!=_0x57b34d['type']&&'deletion'!=_0x57b34d['type'])return;const _0xb96088=_0x57b34d['getContainedElement']();if(null==_0xb96088)return;if(!_0xb96088['is']('element','mergeField')&&!_0xb96088['is']('element','mergeFieldBlock'))return;const _0x1f2ac9=_0x557dcd['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xb96088['getAttribute']('id'));return'insertion'==_0x57b34d['type']?{'type':'insertion','content':o(_0x264670,'*Insert:*\x20%0','\x22'+_0x1f2ac9+'\x22\x20'+o(_0x264670,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x264670,'*Remove:*\x20%0','\x22'+_0x1f2ac9+'\x22\x20'+o(_0x264670,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x15b66e{['afterInit'](){const _0x56dbfc=this['editor'],_0x499ee6=_0x56dbfc['plugins']['get']('TrackChangesEditing');_0x56dbfc['plugins']['has']('MultiLevelList')&&(_0x499ee6['enableDefaultAttributesIntegration']('multiLevelList'),_0x499ee6['registerBlockAttribute']('listMarkerStyle'),_0x499ee6['descriptionFactory']['registerDescriptionCallback'](_0x272df8=>this['handleDescriptions'](_0x272df8)));}['handleDescriptions'](_0x42e734){const _0x33a98a=this['editor']['locale'],{data:_0x5c58fb}=_0x42e734,_0x4f9621={'type':'format','content':''};if(_0x5c58fb&&'listMarkerStyle'==_0x5c58fb['key']){if(!_0x5c58fb['oldValue'])return{'type':'format','content':o(_0x33a98a,'*Set\x20format:*\x20%0',o(_0x33a98a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c58fb['newValue']+')'};if(!_0x5c58fb['newValue']){let _0x5a6952=_0x42e734['head'];for(;_0x5a6952;){if(_0x5a6952['data']&&'listType'==_0x5a6952['data']['key']&&_0x5a6952['data']['newValue'])return _0x4f9621;_0x5a6952=_0x5a6952['next'];}return{'type':'format','content':o(_0x33a98a,'*Remove\x20format:*\x20%0',o(_0x33a98a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c58fb['oldValue']+')'};}}}}class kt extends _0x15b66e{['afterInit'](){const _0x21fa11=this['editor'];if(!_0x21fa11['plugins']['has']('PageBreakEditing'))return;_0x21fa11['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2ccc6b=_0x21fa11['plugins']['get']('TrackChangesEditing'),_0x451166=_0x21fa11['locale'];_0x2ccc6b['descriptionFactory']['registerElementLabel']('pageBreak',_0x2aab43=>o(_0x451166,'ELEMENT_PAGE_BREAK',_0x2aab43));}}class bt extends _0x15b66e{['afterInit'](){const _0x18fd0f=this['editor'];if(!_0x18fd0f['plugins']['has']('Paragraph'))return;const _0x3a2a43=_0x18fd0f['locale'],_0x1ec1b2=_0x18fd0f['plugins']['get']('TrackChangesEditing');_0x1ec1b2['descriptionFactory']['registerElementLabel']('paragraph',_0x56731a=>o(_0x3a2a43,'ELEMENT_PARAGRAPH',_0x56731a)),_0x1ec1b2['enableDefaultAttributesIntegration']('paragraph'),_0x1ec1b2['enableCommand']('insertParagraph'),_0x18fd0f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x18fd0f),{'priority':'highest'}),_0x18fd0f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x406d7d,_0x2f5276,_0x58a133)=>{_0x58a133['options']['showSuggestionHighlights']&&nr(_0x18fd0f,{'showActiveMarker':!0x1})(_0x406d7d,_0x2f5276,_0x58a133);},{'priority':'highest'});const _0x1075bf=_0x1ec1b2['descriptionFactory'];_0x1075bf['registerDescriptionCallback'](_0x436410=>{if('insertion'!==_0x436410['type'])return;const {start:_0x2cb65e,end:_0x1040d9}=_0x436410['getFirstRange']();if(!_0x2cb65e['isTouching'](_0x1040d9)||!_0x2cb65e['nodeAfter'])return;const _0xb47d00=_0x18fd0f['model']['schema'],_0x42d03b=_0x2cb65e['nodeAfter'];return _0xb47d00['isBlock'](_0x42d03b)&&!_0xb47d00['isLimit'](_0x42d03b)&&_0xb47d00['checkChild'](_0x42d03b,'$text')?{'type':'insertion','content':o(_0x3a2a43,'*Insert:*\x20%0',_0x1075bf['getItemLabel'](_0x42d03b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403d77=this['editor'],_0x950e95=_0x403d77['locale'];_0x403d77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x382305=>{if('formatBlock'!=_0x382305['type'])return;const {data:_0x19e545}=_0x382305;return _0x19e545&&'paragraph'==_0x19e545['commandName']?{'type':'format','content':o(_0x950e95,'*Change\x20to:*\x20%0',o(_0x950e95,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4b0133,{showActiveMarker:_0x27108c=!0x0}={}){return(_0x182725,_0x5a927f,_0x17db38)=>{const _0x40ed14=_0x4b0133['plugins']['get']('TrackChangesEditing'),_0x26cfc0=_0x5a927f['markerRange']['start'],_0x5b3183=_0x5a927f['markerRange']['end'],_0x5d91b5=_0x4b0133['model']['schema'];if(!_0x26cfc0['isTouching'](_0x5b3183)||!_0x26cfc0['nodeAfter'])return;const _0x23dea0=_0x26cfc0['nodeAfter'];if(_0x5d91b5['isBlock'](_0x23dea0)&&!_0x5d91b5['isLimit'](_0x23dea0)&&_0x5d91b5['checkChild'](_0x23dea0,'$text')){if(!_0x17db38['consumable']['consume'](_0x5a927f['markerRange'],_0x182725['name']))return;const {authorId:_0x38901a}=_0x40ed14['_splitMarkerName'](_0x5a927f['markerName']),_0x187aaf=_0x17db38['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x38901a}),_0x1c3da0=_0x17db38['mapper']['toViewPosition'](_0x5b3183);_0x27108c&&_0x40ed14['activeMarkers']['includes'](_0x5a927f['markerName'])&&_0x17db38['writer']['addClass']('ck-suggestion-marker--active',_0x187aaf),_0x17db38['writer']['insert'](_0x1c3da0,_0x187aaf),_0x17db38['mapper']['bindElementToMarker'](_0x187aaf,_0x5a927f['markerName']);}};}class wt extends _0x15b66e{['afterInit'](){const _0x154aff=this['editor'];if(!_0x154aff['plugins']['has']('RemoveFormatEditing'))return;_0x154aff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1536f2=this['editor'];_0x1536f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x110c37=>{if('formatBlock'!=_0x110c37['type']&&'formatInline'!=_0x110c37['type'])return;const {data:_0x4a89ae}=_0x110c37;return _0x4a89ae&&'removeFormat'==_0x4a89ae['commandName']?{'type':'format','content':o(_0x1536f2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x15b66e{['afterInit'](){const _0x182e72=this['editor'];if(!_0x182e72['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x52a89b=_0x182e72['plugins']['get']('TrackChangesEditing');_0x52a89b['enableCommand']('goToPreviousRestrictedEditingException'),_0x52a89b['enableCommand']('goToNextRestrictedEditingException');const _0x17c5ad=_0x182e72['plugins']['get']('RestrictedEditingModeEditing');_0x17c5ad['enableCommand']('trackChanges'),_0x17c5ad['enableCommand']('acceptSuggestion'),_0x17c5ad['enableCommand']('discardSuggestion'),_0x17c5ad['enableCommand']('acceptAllSuggestions'),_0x17c5ad['enableCommand']('discardAllSuggestions'),_0x17c5ad['enableCommand']('acceptSelectedSuggestions'),_0x17c5ad['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x15b66e{static get['requires'](){return[_0x5d604a];}['init'](){const _0x31e60d=this['editor'],_0x5ea7bf=_0x31e60d['plugins']['get']('TrackChangesEditing');_0x5ea7bf['enableCommand']('shiftEnter'),_0x31e60d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x31e60d),{'priority':'high'}),_0x31e60d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x31e60d),{'priority':'high'}),_0x31e60d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x174bc2,_0x141de8,_0x522c5c)=>{_0x522c5c['options']['showSuggestionHighlights']&&ge(_0x31e60d,{'showActiveMarker':!0x1})(_0x174bc2,_0x141de8,_0x522c5c);}),_0x5ea7bf['descriptionFactory']['registerElementLabel']('softBreak',_0x20358d=>o(_0x31e60d['locale'],'ELEMENT_LINE_BREAK',_0x20358d));}}function ge(_0xcbf839,{showActiveMarker:_0x387d2f=!0x0}={}){return(_0x36affc,_0x40e618,_0x49f4f9)=>{const _0xa4e996=_0xcbf839['plugins']['get']('TrackChangesEditing');if(!_0x49f4f9['consumable']['test'](_0x40e618['markerRange'],_0x36affc['name']))return;const _0x1c5372=_0xcbf839['model'];for(const _0x15944c of _0x40e618['markerRange']['getItems']()){if(!_0x15944c['is']('element','softBreak'))continue;const _0x268ce4='deletion'==_0x40e618['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x470369}=_0xa4e996['_splitMarkerName'](_0x40e618['markerName']),_0x30b61a=_0x49f4f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x268ce4,'data-author-id':_0x470369}),_0x42c0e6=_0x49f4f9['mapper']['toViewPosition'](_0x1c5372['createPositionBefore'](_0x15944c));_0x387d2f&&_0xa4e996['activeMarkers']['includes'](_0x40e618['markerName'])&&_0x49f4f9['writer']['addClass']('ck-suggestion-marker--active',_0x30b61a),_0x49f4f9['writer']['insert'](_0x42c0e6,_0x30b61a),_0x49f4f9['mapper']['bindElementToMarker'](_0x30b61a,_0x40e618['markerName']);}};}class St extends _0x15b66e{['afterInit'](){const _0x5f5aea=this['editor'],_0x2da74b=_0x5f5aea['model'],_0x2bc303=_0x5f5aea['locale'];if(!_0x5f5aea['plugins']['has']('StandardEditingModeEditing'))return;const _0x27ba9f=_0x5f5aea['plugins']['get']('TrackChangesEditing'),_0x3abd88='restrictedEditingException',_0x298b8e=_0x5f5aea['commands']['get'](_0x3abd88);_0x27ba9f['enableCommand'](_0x3abd88,(_0x1e75a7,_0x44f382={})=>{const _0x218d68=_0x2da74b['document']['selection'];if(_0x218d68['isCollapsed'])return void _0x1e75a7(_0x44f382);const _0x5ca476=void 0x0!==_0x44f382['forceValue']?_0x44f382['forceValue']:!_0x298b8e['value'];_0x2da74b['change'](()=>{const _0x2d0948=Array['from'](_0x218d68['getRanges']());for(const _0x9ea58e of _0x2d0948){const _0x2bd258=_0x5ca476?[_0x9ea58e]:io(_0x3abd88,_0x9ea58e,_0x2da74b);for(const _0x5a42e1 of _0x2bd258)_0x27ba9f['markInlineFormat'](_0x5a42e1,{'commandName':_0x3abd88,'commandParams':[{'forceValue':_0x5ca476}]});}});}),_0x27ba9f['descriptionFactory']['registerDescriptionCallback'](_0x5c76ef=>{if('formatBlock'!=_0x5c76ef['type']&&'formatInline'!=_0x5c76ef['type'])return;const {data:_0x5c2dbc}=_0x5c76ef;return _0x5c2dbc&&_0x5c2dbc['commandName']==_0x3abd88?_0x5c2dbc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bc303,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2bc303,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x15b66e{['afterInit'](){const _0x44e417=this['editor'];if(!_0x44e417['plugins']['has']('Style')||!_0x44e417['plugins']['has']('DataSchema'))return;const _0x4bcbe7=_0x44e417['plugins']['get']('TrackChangesEditing'),_0x2cdbe6=_0x44e417['locale'],_0x19c10c=_0x44e417['config']['get']('style')||{},_0x2b1340=_0x44e417['plugins']['get']('GeneralHtmlSupport'),_0x3a7e49=_0x44e417['plugins']['get']('StyleUtils')['normalizeConfig'](_0x44e417['plugins']['get']('DataSchema'),_0x19c10c['definitions']);_0x4bcbe7['enableDefaultAttributesIntegration']('style');const _0x44987d=new Set();for(const _0x41dce3 of _0x3a7e49['block']){const _0x18b01a=_0x2b1340['getGhsAttributeNameForElement'](_0x41dce3['element']);_0x44987d['add'](_0x18b01a);}const _0x5727ab=new Set();for(const _0x11a189 of _0x3a7e49['inline']){const _0x50b80b=_0x2b1340['getGhsAttributeNameForElement'](_0x11a189['element']);_0x5727ab['add'](_0x50b80b);for(const _0xde0c93 of _0x11a189['ghsAttributes'])_0x5727ab['add'](_0xde0c93);}for(const _0x484812 of _0x44987d)_0x4bcbe7['registerBlockAttribute'](_0x484812),_0x4bcbe7['descriptionFactory']['registerAttributeLabel'](_0x484812,o(_0x2cdbe6,'FORMAT_STYLE'));for(const _0x2736eb of _0x5727ab)_0x4bcbe7['registerInlineAttribute'](_0x2736eb),_0x4bcbe7['descriptionFactory']['registerAttributeLabel'](_0x2736eb,o(_0x2cdbe6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b16e4=this['editor'],_0x58c3b1=_0x2b16e4['locale'];_0x2b16e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfdf12c=>{if('formatBlock'!=_0xfdf12c['type']&&'formatInline'!=_0xfdf12c['type'])return;const {data:_0x2ac3f0}=_0xfdf12c;return _0x2ac3f0&&'style'===_0x2ac3f0['commandName']?_0x2ac3f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58c3b1,'*Set\x20format:*\x20%0',_0x2ac3f0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x58c3b1,'*Remove\x20format:*\x20%0',_0x2ac3f0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x15b66e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x398ffa){super(_0x398ffa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x38126b=this['editor'],_0x4c606c=_0x38126b['model']['document']['selection'];if(!_0x38126b['plugins']['has']('TableEditing'))return;const _0x484624=_0x38126b['locale'],_0x21c98a=_0x38126b['plugins']['get']('TrackChangesEditing'),_0x1c4733=_0x38126b['plugins']['get']('TableUtils');_0x21c98a['descriptionFactory']['registerElementLabel']('table',_0x63f55b=>o(_0x484624,'ELEMENT_TABLE',_0x63f55b)),this['_setupColumnsRowsFixing'](),_0x21c98a['enableCommand']('insertTable'),_0x21c98a['enableCommand']('selectTableRow'),_0x21c98a['enableCommand']('selectTableColumn');for(const _0x1228ec of['insertTableRowAbove','insertTableRowBelow']){const _0x4488f7=_0x38126b['commands']['get'](_0x1228ec);_0x21c98a['enableCommand'](_0x1228ec,_0x166122=>{_0x38126b['model']['change'](_0x4ea39d=>{_0x166122();const _0x314f11='above'===_0x4488f7['order'],_0x1e7217=_0x1c4733['getSelectionAffectedTableCells'](_0x4c606c),_0x1ca27e=_0x1c4733['getRowIndexes'](_0x1e7217),_0x49db85=_0x314f11?_0x1ca27e['first']-0x1:_0x1ca27e['last']+0x1,_0x536c77=_0x1e7217[0x0]['findAncestor']('table'),_0x48f313=_0x1c4733['createTableWalker'](_0x536c77,{'startRow':_0x49db85,'endRow':_0x49db85}),_0x21d784=Array['from'](_0x48f313)['map'](_0x3f0444=>_0x4ea39d['createRangeOn'](_0x3f0444['cell']));_0x21c98a['markMultiRangeInsertion'](_0x21d784,'tableRow');});});}for(const _0x40227c of['insertTableColumnLeft','insertTableColumnRight']){const _0x11b56c=_0x38126b['commands']['get'](_0x40227c);_0x21c98a['enableCommand'](_0x40227c,_0x257009=>{_0x38126b['model']['change'](_0x5b7c61=>{_0x257009();const _0x4b9ee2='left'===_0x11b56c['order'],_0x2645ff=_0x1c4733['getSelectionAffectedTableCells'](_0x4c606c),_0x3cff22=_0x1c4733['getColumnIndexes'](_0x2645ff),_0x14d59a=_0x4b9ee2?_0x3cff22['first']-0x1:_0x3cff22['last']+0x1,_0x2e69f8=_0x2645ff[0x0]['findAncestor']('table'),_0x22136f=_0x1c4733['createTableWalker'](_0x2e69f8,{'startRow':0x0,'column':_0x14d59a,'includeAllSlots':!0x1}),_0x11e953=Array['from'](_0x22136f)['map'](_0x41c440=>_0x5b7c61['createRangeOn'](_0x41c440['cell']));_0x21c98a['markMultiRangeInsertion'](_0x11e953,'tableColumn');});});}for(const _0x51ba4f of['removeTableRow','removeTableColumn']){const _0x395f53=_0x51ba4f['substr'](0xb),_0x547b13=_0x395f53['toLowerCase'](),_0x158ebf=_0x547b13['substr'](0x0,0x3)+'span',_0x146cb2='table'+_0x395f53,_0x290740='min'+_0x395f53,_0x5a5fb4='max'+_0x395f53;_0x21c98a['enableCommand'](_0x51ba4f,()=>{_0x38126b['model']['change'](_0x42a9d0=>{const _0x23bd20=_0x1c4733['getSelectionAffectedTableCells'](_0x4c606c),_0xfcc1a7=_0x23bd20[0x0]['findAncestor']('table');let _0x5c7313;if('removeTableRow'==_0x51ba4f){const _0x3cfa46=_0x1c4733['getRowIndexes'](_0x23bd20);_0x5c7313={'startRow':_0x3cfa46['first'],'endRow':_0x3cfa46['last'],'includeAllSlots':!0x0};}else{const _0x14722d=_0x1c4733['getColumnIndexes'](_0x23bd20);_0x5c7313={'startColumn':_0x14722d['first'],'endColumn':_0x14722d['last'],'includeAllSlots':!0x0};}const _0x5674b8=_0x1c4733['createTableWalker'](_0xfcc1a7,_0x5c7313),_0x4b16d6=Array['from'](_0x5674b8)['map'](({cell:_0xd12e92})=>_0xd12e92),_0x514712=be(_0x4b16d6['filter'](_0x34a608=>_0x34a608['hasAttribute'](_0x158ebf))),_0x3a5fa5=be(_0x4b16d6['filter'](_0x1b23b6=>!_0x1b23b6['hasAttribute'](_0x158ebf)))['map'](_0x22fe85=>_0x42a9d0['createRangeOn'](_0x22fe85)),_0x1f7707=_0x21c98a['markMultiRangeDeletion'](_0x3a5fa5,_0x146cb2);if(_0x1f7707&&('tableRow'==_0x1f7707['subType']||'tableColumn'==_0x1f7707['subType'])){const _0x126ad1=this['_getSuggestionCoords'](_0x1f7707);for(const _0x3d2556 of _0x514712){const _0x4b6814=_0x42a9d0['createRangeOn'](_0x3d2556),_0x1dffb8=_0x1c4733['getCellLocation'](_0x3d2556),_0x59b3fa=_0x3d2556['getAttribute'](_0x158ebf)-0x1,_0x149ba5=_0x126ad1[_0x290740],_0x3c4ebd=_0x126ad1[_0x5a5fb4];_0x149ba5<=_0x1dffb8[_0x547b13]&&_0x1dffb8[_0x547b13]+_0x59b3fa<=_0x3c4ebd&&_0x1f7707['addRange'](_0x4b6814);}}});});}function _0x6cbcd8(_0x1e9268){const _0x3705c5=Array['from'](_0x4c606c['getRanges']())['map'](_0x1759ab=>_0xd23514['fromRange'](_0x1759ab));_0x38126b['model']['change'](_0x4b0b83=>{const _0x5017da=_0x4b0b83['batch'];_0x1e9268=_0x1e9268['filter'](_0x58bc39=>'$graveyard'!=_0x58bc39['root']['rootName']),_0x4b0b83['setSelection'](_0x1e9268),_0x38126b['commands']['get']('removeTableRow')['refresh'](),_0x38126b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x38126b['model']['enqueueChange'](()=>{_0x38126b['model']['enqueueChange'](_0x5017da,_0x363867=>{const _0x5e5cb5=_0x3705c5['filter'](_0x3c8362=>'$graveyard'!=_0x3c8362['root']['rootName']);_0x5e5cb5['length']>0x0&&_0x363867['setSelection'](_0x5e5cb5);for(const _0xc2bbd9 of _0x3705c5)_0xc2bbd9['detach']();});});});}function _0x2c45b2(_0x5bded0){_0x38126b['model']['change'](_0x275f9a=>{const _0x4531b0=Array['from'](_0x4c606c['getRanges']())['map'](_0x4c63d4=>_0xd23514['fromRange'](_0x4c63d4)),_0x5641ed=[];for(const _0x4beb9c of _0x5bded0)for(const _0x1d86c3 of _0x4beb9c['getItems']({'shallow':!0x0}))_0x5641ed['push'](_0x1d86c3);for(const _0x89214a of _0x5641ed)'$graveyard'!=_0x89214a['root']['rootName']&&(_0x275f9a['setSelection'](_0x275f9a['createPositionAt'](_0x89214a,0x0)),_0x38126b['commands']['get']('removeTableColumn')['refresh'](),_0x38126b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48c1f3=_0x4531b0['filter'](_0x404368=>'$graveyard'!=_0x404368['root']['rootName']);_0x48c1f3['length']>0x0&&_0x275f9a['setSelection'](_0x48c1f3);for(const _0x1b40fd of _0x4531b0)_0x1b40fd['detach']();});}function _0x161029(_0x3399d5,_0x16246e){return _0x16246e['every'](_0x3d1bf6=>_0x3399d5['some'](_0x36bec7=>_0x36bec7['end']['isEqual'](_0x3d1bf6['start'])||_0x3d1bf6['end']['isEqual'](_0x36bec7['start'])));}function _0x3b2885(_0x384a0a,_0x558fdd){return!_0x384a0a['some'](_0x380c19=>_0x558fdd['some'](_0x57e2aa=>_0x380c19['isIntersecting'](_0x57e2aa)))&&_0x384a0a['some'](_0x24e82f=>_0x558fdd['some'](_0x14ebec=>_0x24e82f['end']['isTouching'](_0x14ebec['start'])));}_0x38126b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53b692,_0x32ff4a,_0x3a1aa4)=>{if(!_0x3a1aa4['options']['showSuggestionHighlights'])return;const _0x3ab85b=_0x32ff4a['item'];if(!_0x3ab85b)return;const _0x5460f8=_0x3a1aa4['mapper']['toViewElement'](_0x3ab85b);function _0x31d73e(_0x38f662){return Array['isArray'](_0x38f662)?_0x38f662:[_0x38f662];}_0x5460f8&&'tableCell'===_0x3ab85b['name']&&_0x24a937(_0x5460f8,_0x3a1aa4['writer'],(_0x56b6ba,_0x39a18b,_0x4d5ea2)=>_0x4d5ea2['addClass'](_0x31d73e(_0x39a18b['classes']),_0x56b6ba),(_0x469ba9,_0x37d8a8,_0x431ee2)=>_0x431ee2['removeClass'](_0x31d73e(_0x37d8a8['classes']),_0x469ba9));},{'priority':'highest'}),_0x21c98a['descriptionFactory']['registerDescriptionCallback'](_0x7e979a=>{if('insertion'!=_0x7e979a['type']&&'deletion'!=_0x7e979a['type'])return;const _0x1274b1=_0x7e979a['getContainedElement']();if(null!=_0x1274b1&&_0x1274b1['is']('element','table')){if('insertion'==_0x7e979a['type']){const _0x2fc615=_0x7e979a['getItems']()['filter'](_0x22cf9c=>_0x22cf9c['is']('$textProxy'))['map'](_0x31002c=>_0x31002c['data']);if(_0x2fc615['length'])return{'type':'insertion','content':o(_0x484624,'*Insert:*\x20%0',o(_0x484624,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2fc615['join']('\x20')+'\x22'))};}if('deletion'==_0x7e979a['type']){const _0x539dd1=_0x7e979a['getItems']()['filter'](_0x2416f5=>_0x2416f5['is']('$textProxy'))['map'](_0x4af8cc=>_0x4af8cc['data']);if(_0x539dd1['length'])return{'type':'deletion','content':o(_0x484624,'*Remove:*\x20%0',o(_0x484624,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x539dd1['join']('\x20')+'\x22'))};}}}),_0x21c98a['descriptionFactory']['registerDescriptionCallback'](_0x240f34=>{if('tableRow'==_0x240f34['subType']){const _0x4ca478=_0x240f34['getItems']()['filter'](_0x36c911=>_0x36c911['is']('$textProxy'))['map'](_0x4a0ebd=>_0x4a0ebd['data']),_0x349669=this['_getSuggestionCoords'](_0x240f34),_0x124e3b=_0x349669['maxRow']-_0x349669['minRow']+0x1;if('insertion'==_0x240f34['type'])return _0x4ca478['length']?{'type':'insertion','content':o(_0x484624,'*Insert:*\x20%0',o(_0x484624,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x124e3b,'\x22'+_0x4ca478['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x484624,'*Insert:*\x20%0',o(_0x484624,'ELEMENT_TABLE_ROW',_0x124e3b))};if('deletion'==_0x240f34['type'])return _0x4ca478['length']?{'type':'deletion','content':o(_0x484624,'*Remove:*\x20%0',o(_0x484624,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x124e3b,'\x22'+_0x4ca478['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x484624,'*Remove:*\x20%0',o(_0x484624,'ELEMENT_TABLE_ROW',_0x124e3b))};}if('tableColumn'==_0x240f34['subType']){const _0xca177b=_0x240f34['getItems']()['filter'](_0x403021=>_0x403021['is']('$textProxy'))['map'](_0x694a8c=>_0x694a8c['data']),_0x76d0ff=this['_getSuggestionCoords'](_0x240f34),_0x83f7e4=_0x76d0ff['maxColumn']-_0x76d0ff['minColumn']+0x1;if('insertion'==_0x240f34['type'])return _0xca177b['length']?{'type':'insertion','content':o(_0x484624,'*Insert:*\x20%0',o(_0x484624,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x83f7e4,'\x22'+_0xca177b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x484624,'*Insert:*\x20%0',o(_0x484624,'ELEMENT_TABLE_COLUMN',_0x83f7e4))};if('deletion'==_0x240f34['type'])return _0xca177b['length']?{'type':'deletion','content':o(_0x484624,'*Remove:*\x20%0',o(_0x484624,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x83f7e4,'\x22'+_0xca177b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x484624,'*Remove:*\x20%0',o(_0x484624,'ELEMENT_TABLE_COLUMN',_0x83f7e4))};}}),_0x21c98a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x6cbcd8),_0x21c98a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x6cbcd8),_0x21c98a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c45b2),_0x21c98a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c45b2),_0x21c98a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x161029),_0x21c98a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x161029),_0x21c98a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b2885),_0x21c98a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b2885);}['_acceptFormatSuggestionCallbackFactory'](){const _0x232c70=this['editor'],_0x1546a9=_0x232c70['model']['document']['selection'];return(_0x171a68,_0x28c899)=>{_0x232c70['model']['change'](_0x539fd0=>{const {commandName:_0x54ee87,commandParams:_0x37b42a}=_0x28c899;let _0x5739a8=_0x171a68[0x0]['end']['nodeBefore'];_0x37b42a&&_0x37b42a[0x0]&&!0x1===_0x37b42a[0x0]['forceValue']&&(_0x5739a8=_0x171a68[0x0]['start']['nodeAfter']);const _0x2a1eb5=_0x539fd0['createRangeIn'](_0x5739a8);if('$graveyard'==_0x2a1eb5['root']['rootName'])return;const _0x4c2091=Array['from'](_0x1546a9['getRanges']())['map'](_0x40f439=>_0xd23514['fromRange'](_0x40f439));_0x539fd0['setSelection'](_0x2a1eb5),_0x232c70['commands']['get'](_0x54ee87)['refresh'](),_0x37b42a['push']({'forceDefaultExecution':!0x0}),_0x232c70['execute'](_0x54ee87,..._0x37b42a);const _0x2fa16b=_0x4c2091['filter'](_0xbfc55d=>'$graveyard'!=_0xbfc55d['root']['rootName']);_0x2fa16b['length']>0x0&&_0x539fd0['setSelection'](_0x2fa16b);for(const _0x22d1c of _0x4c2091)_0x22d1c['detach']();});};}['_getCoordsForCells'](_0x668327){const _0x155129=this['editor']['plugins']['get']('TableUtils');let _0x1fcea8=Number['MAX_SAFE_INTEGER'],_0x384929=Number['MIN_SAFE_INTEGER'],_0x4b0ab1=Number['MAX_SAFE_INTEGER'],_0x598616=Number['MIN_SAFE_INTEGER'];for(const _0x33ef4b of _0x668327){if('$graveyard'==_0x33ef4b['root']['rootName'])continue;const {row:_0x3c704d,column:_0x12d9a9}=_0x155129['getCellLocation'](_0x33ef4b),_0x1d1939=_0x33ef4b['hasAttribute']('rowspan')?_0x33ef4b['getAttribute']('rowspan')-0x1:0x0,_0x43d072=_0x33ef4b['hasAttribute']('colspan')?_0x33ef4b['getAttribute']('colspan')-0x1:0x0;_0x1fcea8=_0x3c704d<_0x1fcea8?_0x3c704d:_0x1fcea8,_0x384929=_0x3c704d+_0x1d1939>_0x384929?_0x3c704d+_0x1d1939:_0x384929,_0x4b0ab1=_0x12d9a9<_0x4b0ab1?_0x12d9a9:_0x4b0ab1,_0x598616=_0x12d9a9+_0x43d072>_0x598616?_0x12d9a9+_0x43d072:_0x598616;}return{'minRow':_0x1fcea8,'maxRow':_0x384929,'minColumn':_0x4b0ab1,'maxColumn':_0x598616};}['_setupColumnsRowsFixing'](){const _0x57c0ea=this['editor'],_0x9286f4=_0x57c0ea['plugins']['get']('TrackChangesEditing'),_0x297c48=_0x57c0ea['plugins']['get']('TableUtils');_0x57c0ea['model']['document']['on']('change:data',()=>{const _0x1c5b75=Array['from'](_0x57c0ea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f1b11,data:_0x236638}of _0x1c5b75){const {group:_0x4d621e,id:_0x339e97,subType:_0x3974f7}=_0x9286f4['_splitMarkerName'](_0x5f1b11);if('suggestion'!=_0x4d621e)continue;if(null!=_0x236638['oldRange'])continue;const _0x175e99=_0x9286f4['getSuggestion'](_0x339e97);this['_tablePostFixingSubtypes']['includes'](_0x3974f7)&&this['_tableSuggestions']['add'](_0x175e99);}},{'priority':'low'});const _0x25fe65=(_0x1bab08,_0x488a14)=>{let _0x96e31=!0x1;const _0x1b34c1=_0x488a14['createRangeOn'](_0x1bab08),_0x282a2e=_0x1bab08['findAncestor']('table'),_0x24f9e0=_0x297c48['getCellLocation'](_0x1bab08);for(const _0x2bcc98 of this['_tableSuggestions']){const _0x17835b=_0x2bcc98['subType'],_0x4d6026=_0x17835b['startsWith']('tablePaste'),_0x3c2515=_0x17835b['substr'](_0x4d6026?0xa:0x5),_0x30f318=_0x3c2515['toLowerCase'](),_0x25722e=_0x30f318['substr'](0x0,0x3)+'span',_0x5c63e3='min'+_0x3c2515,_0x59a682='max'+_0x3c2515;if(!_0x2bcc98['isInContent'])continue;if(_0x282a2e!=_0x2bcc98['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2bcc98['isIntersectingWithRange'](_0x1b34c1))continue;const _0x18f580=_0x1bab08['hasAttribute'](_0x25722e)?_0x1bab08['getAttribute'](_0x25722e)-0x1:0x0,_0x14b5d7=this['_getSuggestionCoords'](_0x2bcc98),_0x5841f4=_0x14b5d7[_0x5c63e3],_0x5944b8=_0x14b5d7[_0x59a682];_0x5841f4<=_0x24f9e0[_0x30f318]&&_0x24f9e0[_0x30f318]+_0x18f580<=_0x5944b8&&(_0x2bcc98['addRange'](_0x1b34c1),_0x96e31=!0x0);}return _0x96e31;};_0x57c0ea['model']['document']['registerPostFixer'](_0x139ecb=>{let _0xbe26c6=!0x1;for(const _0x524ef3 of _0x57c0ea['model']['document']['differ']['getChanges']())if('insert'==_0x524ef3['type']){if('tableRow'==_0x524ef3['name']){for(const _0x337119 of _0x524ef3['position']['nodeAfter']['getChildren']())_0xbe26c6=_0xbe26c6||_0x25fe65(_0x337119,_0x139ecb);}else'tableCell'==_0x524ef3['name']&&(_0xbe26c6=_0xbe26c6||_0x25fe65(_0x524ef3['position']['nodeAfter'],_0x139ecb));}return _0xbe26c6;});}['_getSuggestionCoords'](_0x41ef6b){return this['_getCoordsForCells'](_0x41ef6b['getRanges']()['map'](_0x15506e=>_0x15506e['start']['nodeAfter']));}}function be(_0x2e5b4e){return Array['from'](new Set(_0x2e5b4e)['values']());}class vt extends _0x15b66e{static get['requires'](){return[It];}['afterInit'](){const _0x5399a6=this['editor'],_0x48c1b8=_0x5399a6['model']['document']['selection'],_0x3a45ba=_0x5399a6['locale'];if(!_0x5399a6['plugins']['has']('TableEditing'))return;const _0x5ead8e=_0x5399a6['plugins']['get']('TrackChangesEditing'),_0x1b74b2=_0x5399a6['plugins']['get']('TableUtils'),_0x540759=_0x5399a6['plugins']['get'](It);_0x540759['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ead8e['enableCommand']('mergeTableCells',()=>{const _0x8d32f=_0x1b74b2['getSelectionAffectedTableCells'](_0x5399a6['model']['document']['selection']);_0x5399a6['model']['change'](()=>{_0x5ead8e['markMultiRangeBlockFormat'](_0x8d32f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5399a6['commands']['get']('mergeTableCells')['on']('execute',(_0x702c4d,_0x1f42f3)=>{_0x5399a6['commands']['get']('trackChanges')['value']&&(_0x1f42f3['length']>0x0&&_0x1f42f3[_0x1f42f3['length']-0x1]&&_0x1f42f3[_0x1f42f3['length']-0x1]['forceDefaultExecution']||_0x5ead8e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x702c4d['stop']());},{'priority':'highest'});for(const _0xed3916 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x417c8f=_0x5399a6['commands']['get'](_0xed3916);_0x5ead8e['enableCommand'](_0xed3916,()=>{const _0x5e78dd=_0x5399a6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4591bd=>_0x4591bd['is']('element','tableCell')),_0x548354=_0x417c8f['value'];_0x5399a6['model']['change'](()=>{_0x5ead8e['markMultiRangeBlockFormat']([_0x5e78dd,_0x548354],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x268e56 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5d8579=_0x5399a6['commands']['get'](_0x268e56);_0x5ead8e['enableCommand'](_0x268e56,()=>{const _0x159e2a=_0x1b74b2['getSelectionAffectedTableCells'](_0x5399a6['model']['document']['selection'])[0x0],_0x2df950=_0x159e2a['findAncestor']('table'),{column:_0xb2f1a5,row:_0x46a367}=_0x1b74b2['getCellLocation'](_0x159e2a);let _0x5e37bb=[];if('horizontally'==_0x5d8579['direction']){const _0x2073a5=_0x1b74b2['createTableWalker'](_0x2df950,{'startRow':_0x46a367,'endRow':_0x46a367,'includeAllSlots':!0x0});_0x5e37bb=Array['from'](_0x2073a5)['map'](_0x31c7d7=>_0x31c7d7['cell']);}else{const _0x69a0e4=_0x1b74b2['createTableWalker'](_0x2df950,{'column':_0xb2f1a5,'includeAllSlots':!0x0});_0x5e37bb=Array['from'](_0x69a0e4)['map'](_0x4e1901=>_0x4e1901['cell']);}_0x5399a6['model']['change'](_0x43a620=>{_0x5ead8e['markBlockFormat'](_0x43a620['createRangeOn'](_0x159e2a),{'commandName':_0x268e56,'commandParams':[]},_0x5e37bb,_0x268e56);});});}_0x5ead8e['descriptionFactory']['registerDescriptionCallback'](_0x1e8fe3=>{if('formatBlock'!=_0x1e8fe3['type']&&'formatInline'!=_0x1e8fe3['type'])return;const {data:_0x1c7a52}=_0x1e8fe3;return _0x1c7a52&&'mergeTableCells'==_0x1c7a52['commandName']?{'type':'format','content':o(_0x3a45ba,'*Merge\x20cells*')}:void 0x0;}),_0x5ead8e['descriptionFactory']['registerDescriptionCallback'](_0x5debca=>{if('formatBlock'!=_0x5debca['type']&&'formatInline'!=_0x5debca['type'])return;const {data:_0x4501b0}=_0x5debca;return _0x4501b0?'splitTableCellVertically'==_0x4501b0['commandName']?{'type':'format','content':o(_0x3a45ba,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4501b0['commandName']?{'type':'format','content':o(_0x3a45ba,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5550ae=_0x540759['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b02b3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ead8e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b02b3,'accept',_0x5550ae);for(const _0x5b8675 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ead8e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b8675,'accept',_0x5550ae);_0x5ead8e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x34a3f8=>{_0x5399a6['model']['change'](_0x4d64cb=>{const _0x78a670=Array['from'](_0x48c1b8['getRanges']())['map'](_0x55b6cd=>_0xd23514['fromRange'](_0x55b6cd));_0x4d64cb['setSelection'](_0x34a3f8),_0x5399a6['commands']['get']('mergeTableCells')['refresh'](),_0x5399a6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e6dfe=_0x78a670['filter'](_0x40299a=>'$graveyard'!=_0x40299a['root']['rootName']);_0x4e6dfe['length']>0x0&&_0x4d64cb['setSelection'](_0x4e6dfe);for(const _0x494bfc of _0x78a670)_0x494bfc['detach']();});});for(const _0x1095ef of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x55334d=_0x5399a6['commands']['get'](_0x1095ef);_0x55334d['on']('set:isEnabled',(_0x3000b5,_0x1475e0,_0x158310)=>{if(_0x158310){const _0x5b6c28=_0x5399a6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ed1e1=>_0x3ed1e1['is']('element','tableCell'));this['_areMergableCells'](_0x55334d['value'],_0x5b6c28)||(_0x3000b5['return']=!0x1,_0x3000b5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1a7d65=this['editor']['commands']['get']('mergeTableCells'),_0x57d9a7=this['editor']['plugins']['get']('TableUtils');if(!_0x1a7d65['isEnabled'])return!0x1;const _0x44ccc3=_0x57d9a7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x470e92 of _0x44ccc3)for(const _0x2ac552 of _0x44ccc3)if(_0x470e92!=_0x2ac552&&!this['_areMergableCells'](_0x470e92,_0x2ac552))return!0x1;return!0x0;}['_areMergableCells'](_0x3c1849,_0x11b625){const _0x48f167=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4c52=this['editor']['model']['createRangeOn'](_0x3c1849),_0xd0f94b=this['editor']['model']['createRangeOn'](_0x11b625),_0x3f3761=new Set(),_0x37b644=new Set();for(const _0x77e47a of _0x48f167['getSuggestions']())if(('insertion'==_0x77e47a['type']||'deletion'==_0x77e47a['type']||'mergeTableCells'==_0x77e47a['subType'])&&_0x77e47a['isInContent']){for(const _0x797753 of _0x77e47a['getRanges']())_0x797753['containsRange'](_0x1e4c52,!0x0)&&_0x3f3761['add'](_0x77e47a['type']+':'+_0x77e47a['author']['id']),_0x797753['containsRange'](_0xd0f94b,!0x0)&&_0x37b644['add'](_0x77e47a['type']+':'+_0x77e47a['author']['id']);}if(_0x3f3761['size']!=_0x37b644['size'])return!0x1;for(const _0x1ca4e3 of _0x3f3761)if(!_0x37b644['has'](_0x1ca4e3))return!0x1;return!0x0;}}class Ct extends _0x15b66e{static get['requires'](){return[It];}['afterInit'](){const _0x31c4e7=this['editor'];if(!_0x31c4e7['plugins']['has']('TableEditing'))return;const _0x53bc73=_0x31c4e7['locale'],_0x2aab4f=_0x31c4e7['plugins']['get']('TrackChangesEditing');_0x2aab4f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2aab4f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2aab4f['registerBlockAttribute']('headingRows'),_0x2aab4f['registerBlockAttribute']('headingColumns'),_0x2aab4f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53bc73,'FORMAT_HEADER_ROW')),_0x2aab4f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53bc73,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x23218d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c5ba7=this['editor']['plugins']['get']('TableUtils'),_0x1e10b9=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x732659({showActiveMarker:_0x471eed=!0x0,setDataAttribute:_0x1be685=!0x0}={}){return(_0x884fe9,_0x196bf4,_0x2734c3)=>{const {type:_0x4c0d88,id:_0x24715d}=_0x23218d['_splitMarkerName'](_0x196bf4['markerName']),_0x263d2e=_0x23218d['getSuggestion'](_0x24715d),_0x3f61de=_0x263d2e['data'];if('formatBlock'!=_0x263d2e['type']||!_0x3f61de||'setTableColumnHeader'!=_0x3f61de['commandName'])return;if(_0x196bf4['item'])return void _0x884fe9['stop']();if(!_0x2734c3['consumable']['consume'](_0x196bf4['markerRange'],_0x884fe9['name']))return;const _0x870247=_0x196bf4['markerRange']['start']['nodeAfter'],_0x58abb3=_0x196bf4['markerRange']['end']['nodeBefore'],_0x5f01c9=_0x870247['parent']['parent'],{column:_0x7ab237}=_0x1c5ba7['getCellLocation'](_0x870247),{column:_0x2888df}=_0x1c5ba7['getCellLocation'](_0x58abb3);for(let _0x38da69=_0x7ab237;_0x38da69<=_0x2888df;_0x38da69++){const _0x42a671=_0x1c5ba7['createTableWalker'](_0x5f01c9,{'column':_0x38da69,'includeAllSlots':!0x1});for(const _0x3e9605 of _0x42a671){const _0x5e5254=_0x3e9605['cell'],_0x3c6639=_0x2734c3['mapper']['toViewElement'](_0x5e5254);_0x2734c3['writer']['addClass']('ck-suggestion-marker-'+_0x4c0d88,_0x3c6639),_0x1be685&&_0x2734c3['writer']['setAttribute']('data-suggestion',_0x24715d,_0x3c6639),_0x2734c3['mapper']['bindElementToMarker'](_0x3c6639,_0x196bf4['markerName']),_0x471eed&&(_0x23218d['activeMarkers']['includes'](_0x196bf4['markerName'])?_0x2734c3['writer']['addClass']('ck-suggestion-marker--active',_0x3c6639):_0x2734c3['writer']['removeClass']('ck-suggestion-marker--active',_0x3c6639));}}};}_0x23218d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1e10b9),_0x23218d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1e10b9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x732659(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x261460,_0x5d93d3,_0x12a1a0)=>{_0x12a1a0['options']['showSuggestionHighlights']&&_0x732659({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x261460,_0x5d93d3,_0x12a1a0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5858aa,_0x3f97db,_0x362c6c)=>{const {type:_0x3ce11f,id:_0x4dfb8b}=_0x23218d['_splitMarkerName'](_0x3f97db['markerName']),_0x1a6ff1=_0x23218d['getSuggestion'](_0x4dfb8b),_0x39a87b=_0x1a6ff1['data'];if('formatBlock'!=_0x1a6ff1['type']||!_0x39a87b||'setTableColumnHeader'!=_0x39a87b['commandName'])return;const _0x2d8919=_0x362c6c['mapper']['markerNameToElements'](_0x3f97db['markerName']);if(_0x2d8919){for(const _0x209e25 of _0x2d8919)_0x362c6c['writer']['removeClass']('ck-suggestion-marker-'+_0x3ce11f,_0x209e25),_0x362c6c['writer']['removeClass']('ck-suggestion-marker--active',_0x209e25),_0x362c6c['writer']['removeAttribute']('data-suggestion',_0x209e25),_0x362c6c['mapper']['unbindElementFromMarkerName'](_0x209e25,_0x3f97db['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1268f6=this['editor'],_0x52cb56=_0x1268f6['locale'];function _0x975e4(_0x3025ab){return{'type':'format','content':o(_0x52cb56,'*Format:*\x20%0',_0x3025ab)};}_0x1268f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cbe9e=>{if('formatBlock'!=_0x3cbe9e['type'])return;const {data:_0x4c81ae}=_0x3cbe9e;if(_0x4c81ae){if('setTableRowHeader'==_0x4c81ae['commandName']){const _0x37769b=_0x4c81ae['commandParams'][0x0]['forceValue'];return _0x975e4(o(_0x52cb56,_0x37769b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4c81ae['commandName']){const _0x5d2a78=_0x4c81ae['commandParams'][0x0]['forceValue'];return _0x975e4(o(_0x52cb56,_0x5d2a78?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x28726a=>[_0x28726a,null]));class _t extends _0x15b66e{static get['requires'](){return[It];}['afterInit'](){const _0x2fbd37=this['editor'];if(!_0x2fbd37['plugins']['has']('TableClipboard'))return;const _0x349b39=_0x2fbd37['plugins']['get']('TrackChangesEditing'),_0x2cedcb=_0x2fbd37['plugins']['get']('TableUtils'),_0x51ff28=_0x2fbd37['plugins']['get'](It),_0x33b920=_0x2fbd37['plugins']['get']('TableClipboard');_0x51ff28['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fbd37['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fbd37['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5cf1f2=null;_0x2fbd37['model']['on']('insertContent',(_0x108b84,_0x2d00be)=>{const [_0x31324f,_0x822ee6]=_0x2d00be,_0x58c48a=_0x2d00be[_0x2d00be['length']-0x1];_0x58c48a&&_0x58c48a['forceDefaultExecution']||_0x349b39['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x325cdb,_0x1927e4,_0x40cf5d,_0x53910e,_0x4d7996){if(_0x1927e4&&!_0x1927e4['is']('documentSelection'))return!0x1;const _0xc2fdd0=_0x4d7996['getTableIfOnlyTableInContent'](_0x325cdb,_0x40cf5d);if(!_0xc2fdd0||!Re(_0xc2fdd0,void 0x0,_0x53910e))return!0x1;const _0x6164e1=_0x53910e['getSelectionAffectedTableCells'](_0x40cf5d['document']['selection']);if(!_0x6164e1['length'])return!0x1;const _0x441c04=_0x6164e1[0x0]['findAncestor']('table'),_0x3d5a24=_0x53910e['getRowIndexes'](_0x6164e1),_0x144c43=_0x53910e['getColumnIndexes'](_0x6164e1),_0x12a6de={'startRow':_0x3d5a24['first'],'endRow':_0x3d5a24['last'],'startColumn':_0x144c43['first'],'endColumn':_0x144c43['last']};return 0x1==_0x6164e1['length']&&(_0x12a6de['endRow']+=_0x53910e['getRows'](_0xc2fdd0)-0x1,_0x12a6de['endColumn']+=_0x53910e['getColumns'](_0xc2fdd0)-0x1),Re(_0x441c04,_0x12a6de,_0x53910e);}(_0x31324f,_0x822ee6,_0x2fbd37['model'],_0x2cedcb,_0x33b920)&&(_0x108b84['stop'](),_0x5cf1f2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fbd37['model']['change'](()=>{_0x2fbd37['model']['insertContent'](_0x2d00be[0x0],_0x2d00be[0x1],_0x2d00be[0x2],{'forceDefaultExecution':!0x0});const _0x2936c6=_0x104525(),{rowInsertionRanges:_0x140e92,columnInsertionRanges:_0x43d714,insertionRanges:_0x21e5d8,deletionRanges:_0x383c7e,cells:_0x25fd3b}=_0x5cf1f2;_0x140e92['length']&&_0x349b39['markMultiRangeInsertion'](_0x140e92,'tablePasteRow',{'tablePasteChainId':_0x2936c6}),_0x43d714['length']&&_0x349b39['markMultiRangeInsertion'](_0x43d714,'tablePasteColumn',{'tablePasteChainId':_0x2936c6}),_0x21e5d8['length']&&(_0x349b39['markMultiRangeInsertion'](_0x21e5d8,'tablePaste',{'tablePasteChainId':_0x2936c6,'skipNestingCheck':!0x0}),_0x21e5d8['forEach'](_0x483983=>_0x483983['detach']?.())),_0x383c7e['length']&&(_0x349b39['markMultiRangeDeletion'](_0x383c7e,'tablePaste',{'tablePasteChainId':_0x2936c6,'skipNestingCheck':!0x0}),_0x383c7e['forEach'](_0x270f66=>_0x270f66['detach']?.()));const _0x821a95=_0x349b39['markMultiRangeBlockFormat'](_0x25fd3b['map'](({element:_0x5bdc83})=>_0x5bdc83),{'formatGroupId':_0x104525()},[],'tablePasteCell',{'tablePasteChainId':_0x2936c6});if(_0x821a95){const _0x3a9db7=_0x821a95['getMarkers'](),_0x424b75=[];for(const {element:_0x386a14,attributes:_0x1b5ff3}of _0x25fd3b){if(!_0x1b5ff3)continue;const _0xe8c756=_0x2fbd37['model']['createRangeOn'](_0x386a14),_0x3ba55c=_0x3a9db7['find'](_0x2c344c=>_0x2c344c['getRange']()['isEqual'](_0xe8c756));_0x3ba55c&&_0x424b75['push']([_0x3ba55c['name'],_0x1b5ff3]);}_0x424b75['length']&&_0x821a95['setAttribute']('markerAttributes',Object['fromEntries'](_0x424b75));}_0x5cf1f2=null;}));},{'priority':_0x10cfe0['high']+0xa}),_0x2fbd37['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a9bc1,_0x70ddf5)=>{const [_0x3a1d6e,_0x56bfba,,_0x55c72c]=_0x70ddf5;if(!_0x5cf1f2)return;_0x2a9bc1['stop']();const _0xc11f1a=_0x3a1d6e['cell'],_0xe9901f=_0x56bfba,_0x1277de=ke(_0xc11f1a),_0x49efb0=ke(_0xe9901f);_0x2a9bc1['return']=_0xc11f1a;let _0x48c372=null,_0x512805=null;if(_0x49efb0||_0x1277de){if(_0x1277de&&!_0x49efb0){_0x55c72c['remove'](_0xc11f1a['getChild'](0x0));for(const _0x462c4e of Array['from'](_0xe9901f['getChildren']()))_0x55c72c['insert'](_0x462c4e,_0xc11f1a,'end');const _0x54a27e=_0x5cf1f2['rowInsertionIndexes']['includes'](_0x3a1d6e['row']),_0x3a1389=_0x5cf1f2['columnInsertionIndexes']['includes'](_0x3a1d6e['column']);_0x54a27e||_0x3a1389||(_0x48c372=_0xd23514['fromRange'](_0x55c72c['createRangeIn'](_0xc11f1a)));}else _0x49efb0&&!_0x1277de&&(_0x512805=_0x55c72c['createRangeIn'](_0xc11f1a));}else{const _0x169668=_0x55c72c['createElement']('tableCellSuggestion'),_0x662a69=_0x55c72c['createElement']('tableCellSuggestion');_0x55c72c['wrap'](_0x55c72c['createRangeIn'](_0xc11f1a),_0x662a69),_0x55c72c['insert'](_0x169668,_0xc11f1a,0x0);for(const _0x1ab2a8 of Array['from'](_0xe9901f['getChildren']()))_0x55c72c['insert'](_0x1ab2a8,_0x169668,'end');_0x48c372=_0xd23514['fromRange'](_0x55c72c['createRangeOn'](_0x169668)),_0x512805=_0xd23514['fromRange'](_0x55c72c['createRangeOn'](_0x662a69));}const _0x3e1783=Array['from'](_0xe9901f['getAttributes']())['filter'](([_0x413e04])=>Pe['includes'](_0x413e04));_0x5cf1f2['cells']['push']({'element':_0xc11f1a,'attributes':_0x3e1783['length']?Object['fromEntries'](_0x3e1783):null}),_0x48c372&&_0x5cf1f2['insertionRanges']['push'](_0x48c372),_0x512805&&_0x5cf1f2['deletionRanges']['push'](_0x512805);},{'priority':'high'}),_0x2cedcb['on']('insertColumns',(_0x4853e0,_0x337076)=>{const [_0x1f5a48,_0x5ee067={}]=_0x337076;if(!_0x5cf1f2)return;const _0x1d3468=_0x5ee067['at']||0x0,_0xc777bc=_0x5ee067['columns']||0x1;_0x5cf1f2['columnInsertionIndexes']=new Array(_0xc777bc)['fill'](_0x1d3468)['map']((_0x39908d,_0x355ca4)=>_0x39908d+_0x355ca4);for(const {cell:_0x391ff0}of _0x2cedcb['createTableWalker'](_0x1f5a48,{'startColumn':_0x1d3468,'endColumn':_0x1d3468+_0xc777bc-0x1}))_0x5cf1f2['columnInsertionRanges']['push'](_0x2fbd37['model']['createRangeOn'](_0x391ff0));},{'priority':'low'}),_0x2cedcb['on']('insertRows',(_0x5a2f97,_0x251e6f)=>{const [_0x1d642d,_0x35628a={}]=_0x251e6f;if(!_0x5cf1f2)return;const _0x44d54a=_0x35628a['at']||0x0,_0x475cb6=_0x35628a['rows']||0x1;_0x5cf1f2['rowInsertionIndexes']=new Array(_0x475cb6)['fill'](_0x44d54a)['map']((_0x49a868,_0x492998)=>_0x49a868+_0x492998);for(const {cell:_0xfbe6de}of _0x2cedcb['createTableWalker'](_0x1d642d,{'startRow':_0x44d54a,'endRow':_0x44d54a+_0x475cb6-0x1}))_0x5cf1f2['rowInsertionRanges']['push'](_0x2fbd37['model']['createRangeOn'](_0xfbe6de));},{'priority':'low'}),_0x349b39['descriptionFactory']['registerDescriptionCallback'](_0x506f12=>{if(_0x506f12['subType']&&_0x506f12['subType']['startsWith']('tablePaste'))return _0x506f12['previous']?{}:{'type':'insertion','content':o(_0x2fbd37['locale'],'*Replace\x20table\x20cells*')};});const _0x61cf88=()=>!0x1;for(const _0xa93ca9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x349b39['_suggestionFactory']['registerCustomCallback']('insertion',_0xa93ca9,'join',_0x61cf88),_0x349b39['_suggestionFactory']['registerCustomCallback']('deletion',_0xa93ca9,'join',_0x61cf88),_0x349b39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa93ca9,'join',_0x61cf88);_0x349b39['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x61cf88),_0x349b39['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2e550e,_0x10c91c,_0x1dec1a)=>{const _0x234a91=_0x2e550e['map'](_0x1a7137=>_0x1a7137['getContainedElement']())['filter'](_0x2d3fd3=>_0x2d3fd3),_0x97c611=new Map(_0x234a91['map'](_0x745166=>[_0x745166,null]));if(_0x5cf1f2){for(const {element:_0xe262f8,attributes:_0x23f5be}of _0x5cf1f2['cells'])_0x23f5be&&_0x97c611['set'](_0xe262f8,_0x23f5be);}else{if(_0x1dec1a&&_0x1dec1a['markerAttributes'])for(const [_0x4f01fb,_0x34ea73]of Object['entries'](_0x1dec1a['markerAttributes'])){const _0x3a9cd3=_0x2fbd37['model']['markers']['get'](_0x4f01fb),_0x5122b8=_0x3a9cd3?_0x3a9cd3['getRange']()['getContainedElement']():null;_0x5122b8&&_0x97c611['set'](_0x5122b8,_0x34ea73);}}_0x2fbd37['model']['change'](_0x500aff=>{for(const [_0x17b948,_0x21f4f6]of _0x97c611)_0x500aff['setAttributes']({...we,..._0x21f4f6},_0x17b948);});});const _0x5e43c2=(_0x13fba5,_0x2b438e)=>{_0x349b39['_suggestionFactory']['registerCustomCallback'](_0x13fba5,'tablePaste',_0x2b438e,(_0x16d0cc,_0x57baa8,_0xb12035)=>{_0x2fbd37['model']['change'](_0x3ff659=>{const _0x21aee7=[];for(const _0x5a8fed of _0x16d0cc){const _0x341870=_0x5a8fed['start']['nodeAfter'];_0x341870['is']('element','tableCellSuggestion')&&_0x21aee7['push'](_0x341870);}_0x349b39['_suggestionFactory']['getSuggestionCallback'](_0x13fba5,null,_0x2b438e)(_0x16d0cc,_0x57baa8,_0xb12035);for(const _0x41ac0e of _0x21aee7)'$graveyard'!=_0x41ac0e['root']['rootName']&&_0x3ff659['unwrap'](_0x41ac0e);});});};_0x5e43c2('insertion','accept'),_0x5e43c2('insertion','discard'),_0x5e43c2('deletion','accept'),_0x5e43c2('deletion','discard'),_0x349b39['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x32c7ba=>{const _0x1f04a8=_0x32c7ba['map'](_0x70b134=>_0x70b134['getContainedElement']()),_0x557773=_0x1f04a8[0x0]['findAncestor']('table'),{minRow:_0x245976,maxRow:_0x2e9032}=_0x51ff28['_getCoordsForCells'](_0x1f04a8);_0x2cedcb['removeRows'](_0x557773,{'at':_0x245976,'rows':_0x2e9032-_0x245976+0x1});}),_0x349b39['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x205c2e=>{const _0xb941e7=_0x205c2e['map'](_0x151a53=>_0x151a53['getContainedElement']()),_0x20bddc=_0xb941e7[0x0]['findAncestor']('table'),{minColumn:_0x3ef0df,maxColumn:_0x27aa46}=_0x51ff28['_getCoordsForCells'](_0xb941e7);_0x2cedcb['removeColumns'](_0x20bddc,{'at':_0x3ef0df,'columns':_0x27aa46-_0x3ef0df+0x1});});const _0x4bdef3=(_0x28cb63,_0x53f81f)=>{if(!_0x53f81f['subType']||!_0x53f81f['subType']['startsWith']('tablePaste'))return;const _0x44e44f=_0x53f81f['attributes']['tablePasteChainId'],_0x23b2af=_0x349b39['getSuggestions']()['filter'](_0x10ef1e=>_0x10ef1e['isInContent']&&_0x10ef1e['attributes']&&_0x10ef1e['attributes']['tablePasteChainId']==_0x44e44f);_0x23b2af['length']&&_0x53f81f['getAllAdjacentSuggestions']()['length']!=_0x23b2af['length']&&_0x23b2af['reduce']((_0x324bac,_0x4a3e58)=>(_0x324bac['next']=_0x4a3e58,_0x4a3e58['previous']=_0x324bac,_0x4a3e58));};function _0x2f888b(_0x2226f8,_0x2c5a36=!0x0){const {id:_0x521cfe,authorId:_0xcafe1b}=_0x349b39['_splitMarkerName'](_0x2226f8['markerName']),_0x1018d7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ad126=_0x349b39['activeMarkers']['includes'](_0x2226f8['markerName']);return _0x4ad126&&_0x1018d7['push']('ck-suggestion-marker--active'),{'classes':_0x1018d7,'attributes':{'data-suggestion':_0x521cfe,'data-author-id':_0xcafe1b},'priority':_0x4ad126&&_0x2c5a36?0xbc2:0xbb8};}_0x349b39['on']('suggestionLoaded',_0x4bdef3,{'priority':'high'}),_0x349b39['on']('suggestionUnloaded',_0x4bdef3,{'priority':'high'}),_0x2fbd37['model']['document']['registerPostFixer'](()=>{let _0x38e859=!0x1;const _0xfa03c0=Array['from'](_0x2fbd37['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28e004,data:_0x430df4}of _0xfa03c0){const {group:_0x834be,type:_0x410cbc,id:_0x422b16}=_0x349b39['_splitMarkerName'](_0x28e004);if('suggestion'!=_0x834be||'deletion'!=_0x410cbc||_0x430df4['oldRange'])continue;if(!_0x349b39['hasSuggestion'](_0x422b16))continue;const _0x475536=_0x349b39['getSuggestion'](_0x422b16)['getRanges'](),_0x5a3e5e=_0x2fbd37['plugins']['get']('Users')['me'];for(const _0x33b3b1 of _0x349b39['getSuggestions']()){if(!_0x33b3b1['isInContent']||_0x33b3b1['author']!=_0x5a3e5e)continue;if('formatBlock'!=_0x33b3b1['type']||'tablePasteCell'!=_0x33b3b1['subType'])continue;if(_0x33b3b1['getRanges']()['every'](_0x5f3978=>_0x475536['some'](_0x6399a8=>_0x6399a8['containsRange'](_0x5f3978,!0x0)))){for(const _0x3a5874 of _0x33b3b1['getAllAdjacentSuggestions']())_0x3a5874['isInContent']&&(_0x3a5874['discard'](),_0x38e859=!0x0);}}}return _0x38e859;}),_0x2fbd37['model']['document']['registerPostFixer'](_0x22b9d8=>{const _0x3746ea=_0x2fbd37['commands']['get']('redo');if(!_0x3746ea||!_0x3746ea['_createdBatches']['has'](_0x22b9d8['batch']))return!0x1;let _0x5c6b4b=!0x1;const _0x3cc43f=_0x2fbd37['plugins']['get']('Users')['me'],_0x22957d=_0x2fbd37['model']['document']['differ']['getChanges'](),_0x96cac8=Array['from'](_0x2fbd37['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x198b54,data:_0x20885e})=>{const {group:_0x17da23,subType:_0x14eff2,authorId:_0x300721}=_0x349b39['_splitMarkerName'](_0x198b54);return'suggestion'==_0x17da23&&'tablePaste'==_0x14eff2&&_0x300721==_0x3cc43f['id']&&!_0x20885e['oldRange'];});for(const _0x10ea27 of _0x22957d){if('insert'!=_0x10ea27['type']||'tableCellSuggestion'!=_0x10ea27['name']||0x1!=_0x10ea27['length'])continue;const _0xbce6e8=_0x22b9d8['createRange'](_0x10ea27['position'],_0x10ea27['position']['getShiftedBy'](0x1));if(!_0x96cac8['find'](({data:_0x35aa77})=>_0x35aa77['newRange']['isEqual'](_0xbce6e8))){for(const {name:_0xf932c4,data:_0xf337fc}of _0x96cac8)if(_0xbce6e8['containsRange'](_0xf337fc['newRange'])){_0x22b9d8['updateMarker'](_0xf932c4,{'range':_0xbce6e8}),_0x5c6b4b=!0x0;break;}}}return _0x5c6b4b;}),_0x2fbd37['model']['document']['registerPostFixer'](_0x5a4dbf=>{let _0x48dd5f=!0x1;const _0x268fa4=_0x2fbd37['plugins']['get']('Users')['me'],_0x5c7541=_0x349b39['getSuggestions']()['filter'](_0x1e5046=>_0x1e5046['isInContent']&&_0x1e5046['author']==_0x268fa4),_0x56628a=new Set(),_0xb8cf30=new Set();for(const _0x1f6e4c of _0x5c7541)if('tablePaste'==_0x1f6e4c['subType'])for(const _0x178be0 of _0x1f6e4c['getMarkers']()){const _0x1ad1b4=_0x178be0['getRange']()['getContainedElement']();if(_0x1ad1b4){if(_0x1ad1b4['is']('element','tableCellSuggestion')&&ke(_0x1ad1b4)){_0x1f6e4c['removeMarker'](_0x178be0['name']),_0x56628a['add'](_0x1ad1b4),_0x48dd5f=!0x0;const _0x17eba4=_0x1ad1b4['nextSibling'],_0x448f8d=_0x1ad1b4['previousSibling'],_0x597559=_0x17eba4&&_0x17eba4['is']('element','tableCellSuggestion'),_0x1c0bc8=_0x448f8d&&_0x448f8d['is']('element','tableCellSuggestion');_0x597559&&!_0x56628a['has'](_0x17eba4)&&_0xb8cf30['add'](_0x17eba4),_0x1c0bc8&&!_0x56628a['has'](_0x448f8d)&&_0xb8cf30['add'](_0x448f8d);}else _0x1ad1b4['is']('element','paragraph')&&_0x1ad1b4['isEmpty']&&(_0x1f6e4c['removeMarker'](_0x178be0['name']),_0x48dd5f=!0x0);}}else{if('tablePasteCell'==_0x1f6e4c['subType']){if(!_0x1f6e4c['attributes']||!_0x1f6e4c['attributes']['tablePasteChainId'])continue;const _0x4993db=_0x1f6e4c['attributes']['markerAttributes'];if(_0x4993db&&Object['keys'](_0x4993db)['length'])continue;const _0x1d64c7=_0x1f6e4c['attributes']['tablePasteChainId'];let _0x2bc151=!0x0,_0x49c3e5=!0x0;for(const _0x24543c of _0x5c7541)if(_0x24543c['subType']&&_0x24543c['subType']['startsWith']('tablePaste')){if(!_0x24543c['attributes']['tablePasteChainId']){_0x49c3e5=!0x1;break;}if(_0x24543c['id']!=_0x1f6e4c['id']&&_0x24543c['attributes']['tablePasteChainId']==_0x1d64c7){_0x2bc151=!0x1;break;}}_0x49c3e5&&_0x2bc151&&(_0x1f6e4c['removeMarkers'](),_0x48dd5f=!0x0);}}for(const _0x397dd9 of _0x56628a)_0x5a4dbf['remove'](_0x397dd9);for(const _0x26b39f of _0xb8cf30)_0x5a4dbf['unwrap'](_0x26b39f);return _0x48dd5f;}),_0x2fbd37['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x153706,_0x30e66b)=>_0x2f888b(_0x153706),'converterPriority':'high'}),_0x2fbd37['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24b81b,_0xac5ce5)=>_0xac5ce5['options']['showSuggestionHighlights']?_0x2f888b(_0x24b81b,!0x1):null,'converterPriority':'high'});const _0x585f8b=_0x2fbd37['editing']['view'];this['listenTo'](_0x585f8b['document'],'clipboardOutput',(_0x3f567a,_0x4f9d3f)=>{const _0x596877=[];for(const _0x460029 of _0x585f8b['createRangeIn'](_0x4f9d3f['content'])['getItems']())_0x460029['is']('element','suggestion-td')&&_0x596877['push'](_0x460029);_0x585f8b['change'](_0x306a99=>{for(const _0x40b201 of _0x596877)_0x306a99['move'](_0x306a99['createRangeIn'](_0x40b201),_0x306a99['createPositionBefore'](_0x40b201)),_0x306a99['remove'](_0x40b201);});});}}function ke(_0x294140){if(_0x294140['isEmpty'])return!0x0;const _0x317d5=_0x294140['getChild'](0x0);return _0x317d5['is']('element','paragraph')&&_0x317d5['isEmpty'];}function Re(_0x45d521,_0x3da62a={},_0x3127ef){for(const {isAnchor:_0x1960e4,cellHeight:_0x404eb6,cellWidth:_0x538b1f}of _0x3127ef['createTableWalker'](_0x45d521,{'includeAllSlots':!0x0,..._0x3da62a}))if(!_0x1960e4||0x1!=_0x404eb6||0x1!=_0x538b1f)return!0x1;return!0x0;}class Nt extends _0x15b66e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4ea09a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ea09a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4ea09a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4ea09a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ea09a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4ea09a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4ea09a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x14d7ea,_0x582eed){const _0x2def48=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb69533=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5dd879=_0x582eed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5aba86=_0xb69533['getColumnGroupElement'](_0x5dd879);let _0x11f8b1=_0x5aba86?_0xb69533['getTableColumnsWidths'](_0x5aba86):null,_0x2e81b3=_0x5dd879['getAttribute']('tableWidth')||null;const _0x4b3e9c=_0x582eed['tableWidth']||_0x2e81b3,_0x2a74c2=_0x582eed['columnWidths']||_0x11f8b1,_0x973e42=this['editor']['plugins']['get']('Users')['me'];for(const _0x312882 of _0x2def48['getSuggestions']()){const _0x5152a0=_0x312882['getContainedElement']();if('resizeTable'===_0x312882['subType']&&_0x5152a0===_0x5dd879){_0x312882['author']!==_0x973e42&&_0x312882['discard']();const _0x3d6a5c=_0x312882['data']['commandParams'];_0x2e81b3=_0x3d6a5c[0x0]['tableWidth'],_0x11f8b1=_0x3d6a5c[0x0]['columnWidths'];break;}}_0x14d7ea({'table':_0x5dd879,'tableWidth':_0x4b3e9c,'columnWidths':_0x2a74c2}),_0x2def48['markBlockFormat'](_0x5dd879,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2e81b3,'columnWidths':_0x11f8b1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e19fe){if('formatBlock'!=_0x4e19fe['type']&&'formatInline'!=_0x4e19fe['type'])return;const {data:_0x11fecc}=_0x4e19fe;if(_0x11fecc&&'resizeTable'===_0x11fecc['formatGroupId']){const _0x3c1139='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3c1139)};}}}class Dt extends _0x15b66e{['afterInit'](){const _0x17762e=this['editor'];_0x17762e['plugins']['has']('Template')&&_0x17762e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x15b66e{['afterInit'](){const _0x3644e9=this['editor'];if(!_0x3644e9['commands']['get']('insertTableOfContents'))return;_0x3644e9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3ed6a9=_0x3644e9['plugins']['get']('TrackChangesEditing'),_0x2f5397=_0x3644e9['locale'];_0x3ed6a9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x51b053=>o(_0x2f5397,'ELEMENT_TABLE_OF_CONTENTS',_0x51b053));}}class $t extends _0x15b66e{['afterInit'](){const _0x511523=this['editor'];if(!_0x511523['plugins']['has']('Title'))return;const _0x2f0060=_0x511523['plugins']['get']('TrackChangesEditing');_0x2f0060['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x511523['locale'],'ELEMENT_TITLE')),_0x511523['model']['document']['registerPostFixer'](_0x599303=>{let _0x16b180=!0x1;const _0x4bdf81=Array['from'](_0x511523['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x102a71,data:_0x1f80af}of _0x4bdf81){const {group:_0x2c790c}=_0x2f0060['_splitMarkerName'](_0x102a71);if('suggestion'!==_0x2c790c||!_0x1f80af['newRange'])continue;const _0xb00f68=_0x1f80af['newRange'],_0x149acd=_0xb00f68['end']['nodeBefore'];if(!_0x149acd||!_0x149acd['is']('element','title-content'))continue;if(!_0xb00f68['start']['isTouching'](_0xb00f68['end']))continue;const _0x210282=_0x511523['model']['schema']['getNearestSelectionRange'](_0xb00f68['end'],'forward');if(_0x210282&&_0x210282['isCollapsed']){const _0x43c59d=_0x599303['createRange'](_0xb00f68['start'],_0x210282['start']);_0x43c59d['isEqual'](_0xb00f68)||(_0x599303['updateMarker'](_0x102a71,{'range':_0x43c59d}),_0x16b180=!0x0);}_0x16b180||(_0x599303['removeMarker'](_0x102a71),_0x16b180=!0x0);}return _0x16b180;});}}class Bt extends _0x15b66e{['afterInit'](){const _0xa74f24=this['editor'],_0x24efd8=_0xa74f24['plugins']['get']('TrackChangesEditing');_0xa74f24['plugins']['has']('UndoEditing')&&(_0x24efd8['enableCommand']('undo'),_0x24efd8['enableCommand']('redo'));}}class xt extends _0x15b66e{static get['requires'](){return[It];}['afterInit'](){const _0x5109a3=this['editor'];if(!_0x5109a3['plugins']['has']('TableCaptionEditing'))return;_0x5109a3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x15b66e{['tableProperties'];['tableCellProperties'];constructor(_0x2ae0fb){super(_0x2ae0fb),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x1d9197=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d501e of this['tableProperties'])_0x1d9197['enableCommand'](_0x1d501e,(_0x511458,_0x5dd8a2)=>{const _0x380531=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d501e,[_0x380531],this['tableProperties'],'tableProperties',_0x511458,_0x5dd8a2);});_0x1d9197['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d9197['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9197['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x539c12,_0x20ae96)=>this['handleDiscardAction'](this['tableProperties'],_0x539c12,_0x20ae96)),_0x1d9197['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xd72481 of this['tableCellProperties'])_0x1d9197['enableCommand'](_0xd72481,(_0x5b2424,_0x4ee0c0)=>{const _0x589226=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xd72481,_0x589226,this['tableCellProperties'],'tableCellProperties',_0x5b2424,_0x4ee0c0);});_0x1d9197['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d9197['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9197['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xe782d1,_0x1d0c8f)=>this['handleDiscardAction'](this['tableCellProperties'],_0xe782d1,_0x1d0c8f)),_0x1d9197['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d9197['descriptionFactory']['registerDescriptionCallback'](_0x10bc33=>this['handleSuggestionDescription'](_0x10bc33));}['_handlePropertyChange'](_0x4cb7b1,_0x7f578c,_0x19ee1b,_0xaab546,_0x379b06,_0x24cbe2){const _0x2b15a6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x24cbe2['batch'],()=>{for(const _0x25e324 of _0x7f578c){if(this['_getSuggestion'](_0x25e324,_0xaab546))_0x379b06(_0x24cbe2);else{const _0x390c39={};for(const _0x4c81c1 of _0x19ee1b){const _0x5b9330=_0x25e324['getAttribute'](_0x4c81c1);void 0x0!==_0x5b9330&&(_0x390c39[_0x4c81c1]=_0x5b9330);}_0x379b06(_0x24cbe2),_0x2b15a6['markBlockFormat'](_0x25e324,{'commandParams':[_0x390c39]},[],_0xaab546);}}});}['handleDiscardAction'](_0x1eca81,_0x435358,_0x3143e6){const _0x37f635=_0x435358[0x0]['start']['nodeAfter'],_0x396871=_0x3143e6['commandParams'][0x0];this['editor']['model']['change'](_0x40781e=>{for(const _0x30201c of _0x1eca81)void 0x0!==_0x396871[_0x30201c]?_0x40781e['setAttribute'](_0x30201c,_0x396871[_0x30201c],_0x37f635):_0x40781e['removeAttribute'](_0x30201c,_0x37f635);});}['handleSuggestionDescription'](_0x16ea93){if(_0x16ea93['data'])switch(_0x16ea93['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4ac158,_0x1f2367){const _0x319e7b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c1128 of _0x319e7b['getSuggestions']({'skipNotAttached':!0x0})){const _0x2866b2=_0x4c1128['getContainedElement']();if(_0x4c1128['subType']===_0x1f2367&&_0x2866b2===_0x4ac158)return _0x4c1128;}return null;}}const m='$elementName';class p extends _0x15b66e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1eff54,_0x2c3134,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x47f1e1){function _0x29c799(_0x27af82){return _0x27af82['map'](_0x21bbfd=>String['fromCharCode'](_0x21bbfd))['join']('');}super(_0x47f1e1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x20b943,_0x5276ff,_0x5e0f36,_0x84dc63)=>{this['_model']['change'](()=>{for(const _0x53935b of[..._0x84dc63,..._0x5e0f36])this['_model']['markers']['has'](_0x53935b)&&_0x47f1e1['editing']['reconvertMarker'](_0x53935b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x47f1e1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x47f1e1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x47f1e1['config']['get']('trackChanges.trackFormatChanges'),_0x47f1e1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x47f1e1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x47f1e1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x29c799([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x29c799([0x34,0x30,0x34,0x38,0x31,0x36,0x36,0x30]);}['init'](){const _0x2dead9=this['editor'],_0x48ce2c=(_0x2e02fe,_0x45396e)=>{if('attribute'!=_0x2e02fe)return'ck-suggestion-marker-'+_0x2e02fe;const _0x1effd6=_0x45396e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1effd6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2dead9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x29061f=>{const {id:_0x42917c,authorId:_0x3a64a0,type:_0x5ecf44,subType:_0x55fdd2}=this['_splitMarkerName'](_0x29061f['markerName']),_0x1ec422=['ck-suggestion-marker',_0x48ce2c(_0x5ecf44,_0x55fdd2)];let _0x42b399=0xbb8;return this['activeMarkers']['includes'](_0x29061f['markerName'])&&(_0x1ec422['push']('ck-suggestion-marker--active'),_0x42b399=0xbc2),'deletion'==_0x5ecf44&&(_0x42b399+=0x5),{'classes':_0x1ec422,'attributes':{'data-suggestion':_0x42917c,'data-author-id':_0x3a64a0},'priority':_0x42b399};}}),_0x2dead9['conversion']['for']('dataDowncast')['add'](_0x2fdcaf=>{_0x2fdcaf['on']('addMarker:suggestion',(_0x10063e,_0x2b9689,_0x57b6e5)=>{if(!_0x57b6e5['options']['showSuggestionHighlights'])return;const _0x3e3f05=_0x2b9689['item'];if(!_0x3e3f05)return;const _0x22ae77=_0x57b6e5['mapper']['toViewElement'](_0x3e3f05);_0x2dead9['model']['schema']['isObject'](_0x3e3f05)&&_0x22ae77&&!_0x22ae77['getCustomProperty']('widget')&&_0x22ae77['is']('containerElement')&&_0x3b0335(_0x22ae77,_0x57b6e5['writer']);},{'priority':'high'});}),_0x2dead9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4eb77d,_0x3c401e)=>{if(!_0x3c401e['options']['showSuggestionHighlights'])return null;const {type:_0x9eeac9,subType:_0x2f4ad8}=this['_splitMarkerName'](_0x4eb77d['markerName']);return{'classes':['ck-suggestion-marker',_0x48ce2c(_0x9eeac9,_0x2f4ad8)],'priority':0xbb8};}});const _0x1d0b1e=({showActiveMarkers:_0x16b93c=!0x0,isAttributeSuggestion:_0x5aa945=!0x1}={})=>(_0x411821,_0x3eb792,_0x48808a)=>{if(!_0x3eb792['item'])return;const {id:_0xab4786,authorId:_0x203bfe}=this['_splitMarkerName'](_0x3eb792['markerName']);if(_0x5aa945){const _0x828e49=this['_suggestions']['get'](_0xab4786),_0x4a80bc=this['_getAttributeKey'](_0x828e49);if(!this['_isBlockAttribute'](_0x4a80bc))return;}if(_0x3eb792['item']['is']('selection'))return void _0x48808a['consumable']['consume'](_0x3eb792['item'],_0x411821['name']);const _0x50626e=_0x48808a['mapper']['toViewElement'](_0x3eb792['item']);if(_0x3eb792['item']['is']('element')&&_0x2dead9['model']['schema']['isBlock'](_0x3eb792['item'])&&!_0x50626e['getCustomProperty']('addHighlight')){_0x48808a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x50626e),_0x48808a['writer']['setAttribute']('data-suggestion',_0xab4786,_0x50626e),_0x48808a['writer']['setAttribute']('data-author-id',_0x203bfe,_0x50626e),_0x48808a['mapper']['bindElementToMarker'](_0x50626e,_0x3eb792['markerName']),_0x16b93c&&(this['activeMarkers']['includes'](_0x3eb792['markerName'])?_0x48808a['writer']['addClass']('ck-suggestion-marker--active',_0x50626e):_0x48808a['writer']['removeClass']('ck-suggestion-marker--active',_0x50626e));for(const _0x551f1a of _0x2dead9['model']['createRangeIn'](_0x3eb792['item'])['getItems']())_0x48808a['consumable']['consume'](_0x551f1a,_0x411821['name']);_0x48808a['consumable']['consume'](_0x3eb792['item'],_0x411821['name']);}};_0x2dead9['conversion']['for']('dataDowncast')['add'](_0x576bd5=>{_0x576bd5['on']('addMarker:suggestion:formatBlock',(_0x4fd8b1,_0x37a069,_0x585a98)=>{_0x585a98['options']['showSuggestionHighlights']&&_0x1d0b1e({'showActiveMarkers':!0x1})(_0x4fd8b1,_0x37a069,_0x585a98);},{'priority':'highest'});}),_0x2dead9['conversion']['for']('dataDowncast')['add'](_0x5a2b83=>{_0x5a2b83['on']('addMarker:suggestion:attribute',(_0x7cfbf9,_0x242ad0,_0x47059c)=>{_0x47059c['options']['showSuggestionHighlights']&&_0x1d0b1e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x7cfbf9,_0x242ad0,_0x47059c);},{'priority':'highest'});}),_0x2dead9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4fa332,_0x360195)=>_0x360195['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4fa332['substr'](0xb)}}),_0x2dead9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x60716f,{writer:_0x5a589e})=>{let _0x575d7e='suggestion:'+_0x60716f['getAttribute']('suggestion-type')+':'+_0x60716f['getAttribute']('id');return _0x60716f['getAttribute']('marker-count')&&(_0x575d7e+=':'+_0x60716f['getAttribute']('marker-count')),_0x5a589e['createElement']('$marker',{'data-name':_0x575d7e});}}),_0x2dead9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2dead9['conversion']['for']('editingDowncast')['add'](_0x1fb6d8=>{_0x1fb6d8['on']('addMarker:suggestion:formatBlock',_0x1d0b1e(),{'priority':'high'});}),_0x2dead9['conversion']['for']('editingDowncast')['add'](_0x47c971=>{_0x47c971['on']('addMarker:suggestion:attribute',_0x1d0b1e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2dead9['conversion']['for']('editingDowncast')['add'](_0x46721b=>{_0x46721b['on']('removeMarker:suggestion:formatBlock',(_0x16ecee,_0x5e0c52,_0x21eebb)=>{const _0x476ded=_0x21eebb['mapper']['markerNameToElements'](_0x5e0c52['markerName']);if(_0x476ded){for(const _0x3161b6 of _0x476ded)_0x3161b6['getCustomProperty']('addHighlight')||(_0x21eebb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3161b6),_0x21eebb['writer']['removeAttribute']('data-suggestion',_0x3161b6),_0x21eebb['writer']['removeAttribute']('data-author-id',_0x3161b6),_0x21eebb['mapper']['unbindElementFromMarkerName'](_0x3161b6,_0x5e0c52['markerName']));}},{'priority':'high'});}),_0x2dead9['conversion']['for']('editingDowncast')['add'](_0x12617e=>{_0x12617e['on']('removeMarker:suggestion:attribute',(_0x56b5b9,_0x3a1ffa,_0x45ac26)=>{const _0x3ce818=_0x45ac26['mapper']['markerNameToElements'](_0x3a1ffa['markerName']);if(!_0x3ce818)return;const {id:_0x370153}=this['_splitMarkerName'](_0x3a1ffa['markerName']),_0xe607bf=this['_suggestions']['get'](_0x370153),_0x5c3ac6=this['_getAttributeKey'](_0xe607bf);if(this['_isBlockAttribute'](_0x5c3ac6)){for(const _0x2f6a3a of _0x3ce818)_0x2f6a3a['getCustomProperty']('addHighlight')||(_0x45ac26['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f6a3a),_0x45ac26['writer']['removeAttribute']('data-suggestion',_0x2f6a3a),_0x45ac26['writer']['removeAttribute']('data-author-id',_0x2f6a3a),_0x45ac26['mapper']['unbindElementFromMarkerName'](_0x2f6a3a,_0x3a1ffa['markerName']));}},{'priority':'high'});}),_0x2dead9['model']['document']['registerPostFixer'](_0x56f0ba=>{let _0x10114b=!0x1;const _0x42e145=Array['from'](_0x2dead9['model']['document']['differ']['getChangedMarkers']()),_0x417cb9=new Set();for(const {name:_0x2a0453,data:_0x3cbf37}of _0x42e145){const {group:_0x399df0,type:_0x27c00f,subType:_0x174515,id:_0xa74b9b}=this['_splitMarkerName'](_0x2a0453);if('suggestion'!==_0x399df0)continue;const _0x1bd593=this['_suggestions']['get'](_0xa74b9b);if(null!=_0x3cbf37['newRange']){'formatInline'==_0x27c00f&&(_0x10114b=_0x10114b||Ut(_0x3cbf37['newRange'],_0x2a0453,_0x56f0ba,_0x2dead9['model']['schema']));const _0x22b9cd='attribute'==_0x27c00f&&this['_isBlockAttribute'](_0x174515['split']('|')[0x0]);if(_0x3cbf37['newRange']['isCollapsed']||'$graveyard'==_0x3cbf37['newRange']['root']['rootName']||'formatBlock'==_0x27c00f&&!Ft(_0x3cbf37['newRange'])||_0x22b9cd&&!Ft(_0x3cbf37['newRange'])||'deletion'==_0x27c00f&&!(!Vt(_0x2b546d=_0x3cbf37['newRange'])&&!function(_0x360014){return _0x360014['start']['parent']==_0x360014['end']['nodeBefore']&&_0x360014['start']['isAtEnd'];}(_0x2b546d)))_0x56f0ba['removeMarker'](_0x2a0453),_0x10114b=!0x0;else{if(!_0x1bd593||!_0x1bd593['isInContent'])continue;if(_0x3cbf37['newRange']&&_0x3cbf37['oldRange']&&_0x3cbf37['newRange']['isEqual'](_0x3cbf37['oldRange']))continue;_0x417cb9['add'](_0x1bd593);}}}var _0x2b546d;return _0x417cb9['size']>0x0&&(_0x10114b=!!this['_joinWithAdjacentSuggestions'](_0x417cb9)||_0x10114b),_0x10114b;}),_0x2dead9['model']['document']['registerPostFixer'](_0xb3ae51=>{let _0x584906=!0x1;for(const _0x3c0e10 of _0x2dead9['model']['document']['differ']['getChanges']())if('insert'==_0x3c0e10['type'])for(const _0x47d326 of this['_suggestions']['values']()){if(_0x47d326['isMultiRange']||!_0x47d326['isInContent'])continue;const _0x163d79='formatBlock'==_0x47d326['type'],_0x55a68b=this['_getAttributeKey'](_0x47d326),_0x215c5f=_0x55a68b&&this['_isBlockAttribute'](_0x55a68b);if(!_0x163d79&&!_0x215c5f)continue;const _0x3deb1e=_0x47d326['getFirstRange']();if(_0x3deb1e['start']['parent']!=_0x3deb1e['end']['parent']&&!_0x3deb1e['end']['isAtEnd']){const _0x38446e=_0x2dead9['model']['createPositionAt'](_0x3deb1e['start']['nodeAfter'],'end'),_0x28f556=_0x2dead9['model']['createRange'](_0x3deb1e['start'],_0x38446e);_0xb3ae51['updateMarker'](_0x47d326['getFirstMarker'](),{'range':_0x28f556}),_0x584906=!0x0;}}return _0x584906;}),_0x2dead9['model']['document']['registerPostFixer'](_0x433778=>this['_processAttributeChanges'](_0x433778)),_0x2dead9['model']['document']['registerPostFixer'](_0x7bd8b4=>!_0x7bd8b4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x7bd8b4)),_0x2dead9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2dead9['model']['document']['on']('change:data',(_0x4a26eb,_0x284a83)=>{if(!_0x284a83['isLocal']||_0x284a83['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x353780=_0x2dead9['model']['document']['differ']['getChanges']();if(0x0==_0x353780['length'])return;const _0x2a9a2d=[],_0x2089b6=_0x353780['filter'](_0x54e71f=>'attribute'==_0x54e71f['type']),_0x94a8c8=_0x353780['filter'](_0x38db55=>'insert'==_0x38db55['type']&&'$text'!=_0x38db55['name']);for(const _0x1c98fb of _0x2089b6)this['_isRegisteredAttribute'](_0x1c98fb['attributeKey'])&&_0x2a9a2d['push']({'key':_0x1c98fb['attributeKey'],'newValue':_0x1c98fb['attributeNewValue'],'oldValue':_0x1c98fb['attributeOldValue'],'range':Pt(_0x1c98fb['range'],_0x2dead9['model'])});for(const _0x262099 of _0x94a8c8){if('rename'!=_0x262099['action']&&'refresh'!=_0x262099['action'])continue;const _0xa4487f=Lt(_0x262099['position']['nodeAfter'],_0x2dead9['model']),_0x459343=_0x262099['before'];'rename'==_0x262099['action']&&_0x2a9a2d['push']({'key':m,'newValue':_0x262099['name'],'oldValue':_0x459343['name'],'range':_0xa4487f});for(const [_0xc8d6e1,_0x1df26a]of _0x459343['attributes']){if(!this['_isRegisteredAttribute'](_0xc8d6e1))continue;const _0x42e21b=_0x262099['attributes']['get'](_0xc8d6e1);_0x1df26a!==_0x42e21b&&_0x2a9a2d['push']({'key':_0xc8d6e1,'newValue':_0x42e21b,'oldValue':_0x1df26a,'range':_0xa4487f});}for(const [_0x4c8393,_0x5d6d69]of _0x262099['attributes'])this['_isRegisteredAttribute'](_0x4c8393)&&(_0x459343['attributes']['has'](_0x4c8393)||_0x2a9a2d['push']({'key':_0x4c8393,'newValue':_0x5d6d69,'oldValue':null,'range':_0xa4487f}));}0x0!=_0x2a9a2d['length']&&_0x2dead9['model']['enqueueChange'](_0x284a83,_0x4afb67=>{const _0x5bf742=_0x104525();for(const {range:_0x189ad8,key:_0x2f4a16,oldValue:_0x5498e1,newValue:_0x24a9fe}of _0x2a9a2d)this['markAttributeChange'](_0x189ad8,_0x2f4a16,_0x5498e1,_0x24a9fe,{'groupId':_0x5bf742});this['_reduceExistingSuggestions'](_0x4afb67,_0x2a9a2d);});},{'priority':'lowest'}),_0x2dead9['model']['markers']['on']('update:suggestion',(_0x4a4811,_0x4efd00,_0x564498)=>{if(null==_0x564498){const {id:_0x401f0a}=this['_splitMarkerName'](_0x4efd00['name']),_0x398343=this['_suggestions']['get'](_0x401f0a);_0x398343&&_0x398343['addMarkerName'](_0x4efd00['name']);}}),_0x2dead9['model']['document']['on']('change:data',()=>{const _0x114847=Array['from'](_0x2dead9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1ca0c1=>'suggestion'===this['_splitMarkerName'](_0x1ca0c1['name'])['group']);if(0x0===_0x114847['length'])return;_0x114847['sort']((_0xd3b044,_0x6f32b)=>{const _0x2ec76a=_0xd3b044['data']['oldRange'],_0x4e2496=_0x6f32b['data']['oldRange'];return null===_0x2ec76a&&null===_0x4e2496?0x0:null===_0x2ec76a&&null!==_0x4e2496?-0x1:null!==_0x2ec76a&&null===_0x4e2496?0x1:_0x2ec76a['start']['isBefore'](_0x4e2496['start'])?-0x1:0x1;});const _0x3b5494=new Set(),_0x5eac38=new Set();for(const {name:_0x2948d6,data:_0x45246a}of _0x114847){const {id:_0x5505d6}=this['_splitMarkerName'](_0x2948d6);if(null===_0x45246a['oldRange']){const _0x51a0b1=this['_handleNewSuggestionMarker'](_0x2948d6);_0x5eac38['add'](_0x51a0b1);}else{const _0x23d63b=this['_suggestions']['get'](_0x5505d6);null!==_0x45246a['newRange']||_0x23d63b['isInContent']?(_0x3b5494['add'](_0x23d63b['head']),_0x5eac38['add'](_0x23d63b)):this['_removeSuggestion'](_0x23d63b);}}_0x5eac38['size']>0x0&&this['_refreshSuggestionsChain'](_0x5eac38);for(const _0x2777f0 of _0x3b5494)this['fire']('suggestionChanged',_0x2777f0);}),_0x2dead9['model']['on']('applyOperation',(_0x18d784,_0x379c14)=>{const _0x19383d=_0x379c14[0x0];if(!this['_suggestions']['size'])return;if(!_0x19383d['isDocumentOperation'])return;if(_0x19383d['batch']['isUndo']||!_0x19383d['batch']['isLocal'])return;let _0x3165a8,_0x3839fe;switch(_0x19383d['type']){case'insert':_0x3165a8=_0x2dead9['model']['createPositionAt'](_0x19383d['position']),_0x3839fe=_0x3165a8['getShiftedBy'](_0x19383d['howMany']);break;case'split':_0x3165a8=_0x2dead9['model']['createPositionAt'](_0x19383d['splitPosition']),_0x3839fe=_0x2dead9['model']['createPositionAt'](_0x19383d['moveTargetPosition']);break;case'move':_0x3165a8=_0x2dead9['model']['createPositionAt'](_0x19383d['targetPosition']),_0x3839fe=_0x3165a8['getShiftedBy'](_0x19383d['howMany']);break;default:return;}const _0x52388b=_0x2dead9['model']['createRange'](_0x3165a8,_0x3839fe);_0x2dead9['model']['change'](()=>{for(const {suggestion:_0x542433,meta:_0x20a3eb}of this['_findSuggestions'](_0x52388b)){if(_0x542433['isMultiRange'])continue;if('formatInline'==_0x542433['type'])continue;const _0xa10337=this['_getAttributeKey'](_0x542433);if(_0xa10337&&this['_isBlockAttribute'](_0xa10337)&&'split'!=_0x19383d['type'])continue;const _0x313f24=_0x542433['data']&&_0x542433['data']['multipleBlocks'];('formatBlock'!=_0x542433['type']||'split'==_0x19383d['type']&&!_0x313f24)&&(_0x20a3eb['containsRangeInObject']||'insertion'==_0x542433['type']&&_0x20a3eb['isOwn']||_0x542433['getFirstRange']()['containsRange'](_0x52388b)&&this['_breakSuggestionMarker'](_0x542433,_0x3165a8,_0x3839fe));}});},{'priority':'lowest'}),_0x2dead9['model']['on']('deleteContent',(_0x3fb69e,_0x552c2f)=>{const _0x21ad22=_0x552c2f[0x0],_0x1a9a76=_0x552c2f[0x1];if(_0x1a9a76&&_0x1a9a76['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x21ad22['isCollapsed'])return;const _0x113263=_0x2dead9['model']['schema'],{start:_0x1ccb68,end:_0x5273e4}=_0x21ad22['getFirstRange'](),_0x2dccc7=_0x1ccb68['nodeAfter']&&_0x113263['isLimit'](_0x1ccb68['nodeAfter'])?null:_0x113263['getNearestSelectionRange'](_0x1ccb68,'forward'),_0x10a6c7=_0x5273e4['nodeBefore']&&_0x113263['isLimit'](_0x5273e4['nodeBefore'])?null:_0x113263['getNearestSelectionRange'](_0x5273e4,'backward'),_0x21a7bc=_0x2dead9['model']['createRange'](_0x2dccc7?_0x2dccc7['start']:_0x1ccb68,_0x10a6c7?_0x10a6c7['end']:_0x5273e4);_0x2dead9['model']['change'](_0x4da018=>{this['markDeletion'](_0x21a7bc);const _0x2045a2=_0x2dead9['model']['schema']['getNearestSelectionRange'](_0x21a7bc['start']);_0x21ad22['is']('documentSelection')?_0x4da018['setSelection'](_0x2045a2):_0x21ad22['setTo'](_0x2045a2);}),_0x3fb69e['stop']();},{'priority':_0x10cfe0['normal']+0xa}),_0x2dead9['model']['on']('insertContent',(_0x4763e8,_0x4a4d89)=>{const _0x5d560f=_0x4a4d89[_0x4a4d89['length']-0x1];_0x5d560f&&_0x5d560f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2dead9['model']['change'](()=>{let _0x1331b0=_0x2dead9['model']['insertContent'](_0x4a4d89[0x0],_0x4a4d89[0x1],_0x4a4d89[0x2],{'forceDefaultExecution':!0x0});if(!_0x1331b0)return;_0x4763e8['return']=_0x1331b0['clone']();const _0x3d4d8f=_0x1331b0['end']['nodeBefore'],_0x457cd7=_0x2dead9['model']['schema'];_0x3d4d8f&&_0x457cd7['isBlock'](_0x3d4d8f)&&!_0x457cd7['isObject'](_0x3d4d8f)&&(_0x1331b0=_0x2dead9['model']['createRange'](_0x1331b0['start'],_0x2dead9['model']['createPositionAt'](_0x3d4d8f,'end'))),this['markInsertion'](_0x1331b0);}),_0x4763e8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x37badd=new x(_0x2dead9,this['_suggestions']);_0x2dead9['commands']['add']('acceptSuggestion',_0x37badd),this['enableCommand']('acceptSuggestion');const _0x3d7cb9=new R(_0x2dead9,this['_suggestions']);_0x2dead9['commands']['add']('discardSuggestion',_0x3d7cb9),this['enableCommand']('discardSuggestion'),_0x2dead9['commands']['add']('acceptAllSuggestions',new E(_0x2dead9,_0x37badd,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2dead9['commands']['add']('discardAllSuggestions',new E(_0x2dead9,_0x3d7cb9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2dead9['commands']['add']('acceptSelectedSuggestions',new O(_0x2dead9,_0x37badd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2dead9['commands']['add']('discardSelectedSuggestions',new O(_0x2dead9,_0x3d7cb9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x43b119=_0x2dead9['plugins']['get']('CommentsRepository');this['listenTo'](_0x43b119,'addComment',(_0x567efb,{threadId:_0x1a5ac8})=>{const _0x5568cf=this['_suggestions']['get'](_0x1a5ac8);_0x5568cf&&_0x5568cf['commentThread']&&0x1===_0x5568cf['commentThread']['length']&&this['_updateSuggestionData'](_0x1a5ac8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x43b119,'removeComment',(_0x1517b9,{threadId:_0x3e89e2})=>{const _0x514cf0=this['_suggestions']['get'](_0x3e89e2);_0x514cf0&&_0x514cf0['commentThread']&&!_0x514cf0['commentThread']['length']&&this['_updateSuggestionData'](_0x3e89e2,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5de5e5){if(this['_adapter'])throw new _0x3ee368('track-changes-adapter-already-set',this);this['_adapter']=_0x5de5e5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1e7e6f=!0x1,toJSON:_0x1dc60a=!0x1}={}){const _0x45ba3d=[];for(const _0x1d633e of this['_suggestions']['values']())_0x1e7e6f&&!_0x1d633e['isInContent']||_0x45ba3d['push'](_0x1d633e);return _0x1dc60a?_0x45ba3d['map'](_0x55486b=>_0x55486b['toJSON']()):_0x45ba3d;}['getSuggestion'](_0x11a501){const _0x1cdd91=this['_suggestions']['get'](_0x11a501);if(!_0x1cdd91)throw new _0x3ee368('track-changes-suggestion-not-found',this);return _0x1cdd91;}['hasSuggestion'](_0x4d8eef){return this['_suggestions']['has'](_0x4d8eef);}['addSuggestionData'](_0x198aa8){const {authorId:_0x19b1e2,id:_0x49a4da,attributes:_0x15afd7}=_0x198aa8,[_0x23bc63,_0x274638]=_0x198aa8['type']['split'](':'),_0x1315f6=this['_suggestions']['get'](_0x49a4da)||this['_createSuggestion'](_0x23bc63,_0x274638,_0x49a4da,_0x19b1e2,_0x15afd7);if(this['_addThreadToSuggestion'](_0x1315f6),this['_checkSuggestionCorrectness'](_0x1315f6,_0x23bc63,_0x274638||null,_0x19b1e2),_0x1315f6['createdAt']=_0x198aa8['createdAt'],_0x1315f6['_isDataLoaded']=!0x0,_0x15afd7&&_0x15afd7['@external']){const _0xf60329=_0x15afd7['@external'],_0x3c6ae5=this['_getExternalAuthor'](_0xf60329['authorName']);_0x1315f6['authoredAt']=_0xf60329['createdAt'],_0x1315f6['author']=_0x3c6ae5,_0x1315f6['isExternal']=!0x0;}else _0x1315f6['authoredAt']=_0x198aa8['createdAt'];switch(_0x198aa8['data']&&(_0x1315f6['data']=_0x198aa8['data']),_0x198aa8['attributes']&&(_0x1315f6['attributes']=_0x198aa8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1315f6['_saved']=!0x0),this['_suggestionState']['get'](_0x1315f6)){case'notReady':this['_suggestionState']['set'](_0x1315f6,'dataReady');break;case'markerReady':_0x1315f6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1315f6])),this['_refreshSuggestionsChain'](new Set([_0x1315f6])),this['_suggestionState']['set'](_0x1315f6,'ready'),this['fire']('suggestionLoaded',_0x1315f6)):this['_suggestionState']['set'](_0x1315f6,'removed');}return _0x1315f6;}['acceptSuggestion'](_0x5647e3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c53c4 of _0x5647e3['getAllAdjacentSuggestions']())_0x2c53c4['accept']();});});}['discardSuggestion'](_0x57da82){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26fa2d of _0x57da82['getAllAdjacentSuggestions']())_0x26fa2d['discard']();});});}['enableCommand'](_0x200e19,_0x34c88f){const _0x3cd235=this['editor']['commands']['get'](_0x200e19);if(!_0x3cd235)throw new _0x3ee368('track-changes-command-not-found',this,{'commandName':_0x200e19});if(this['_enabledCommands']['has'](_0x3cd235))throw new _0x3ee368('track-changes-enable-command-twice',this,{'commandName':_0x200e19});this['_enabledCommands']['add'](_0x3cd235),_0x34c88f&&_0x3cd235['on']('execute',(_0x19bc6e,_0x1fc71d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1fc71d['length']>0x0&&_0x1fc71d[_0x1fc71d['length']-0x1]&&_0x1fc71d[_0x1fc71d['length']-0x1]['forceDefaultExecution']?_0x1fc71d['pop']():(_0x19bc6e['return']=_0x34c88f((..._0x134e0b)=>_0x3cd235['execute'](..._0x134e0b,{'forceDefaultExecution':!0x0}),..._0x1fc71d),_0x19bc6e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4cb000){let _0x3d730c,_0x58e82b;const _0x495594=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3d730c=_0x4cb000();}catch(_0x4b8b85){_0x58e82b=_0x4b8b85;}return _0x495594||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58e82b&&_0x3ee368['rethrowUnexpectedError'](_0x58e82b,this),_0x3d730c;}['markInsertion'](_0x4683a3,_0x23a07c=null,_0x3b888f={}){if(_0x4683a3['isCollapsed'])return null;const _0x41efce=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x27b3b8,meta:_0x55e0ef}of this['_findSuggestions'](_0x4683a3,'insertion'))if(_0x55e0ef['isOwn']){if(!_0x55e0ef['isNextTo']){if(_0x55e0ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x27b3b8,_0x3b888f))continue;return _0x27b3b8;}if(qt(_0x27b3b8,_0x3b888f))return _0x27b3b8;this['_breakSuggestionMarker'](_0x27b3b8,_0x4683a3['start'],_0x4683a3['end']);break;}if(_0x23a07c==_0x27b3b8['subType']&&qt(_0x27b3b8,_0x3b888f)){const _0x8d463f=_0x27b3b8['getFirstRange']();return _0x8d463f['start']['isEqual'](_0x4683a3['end'])?this['_setSuggestionRange'](_0x27b3b8,this['_model']['createRange'](_0x4683a3['start'],_0x8d463f['end'])):this['_setSuggestionRange'](_0x27b3b8,this['_model']['createRange'](_0x8d463f['start'],_0x4683a3['end'])),_0x27b3b8;}}const _0x4a2cb6=_0x104525(),_0x541996=_0x41efce['id'],_0x1a6b85=_0x23a07c?'insertion:'+_0x23a07c:'insertion',_0x323bfc=this['_setSuggestionData']({'id':_0x4a2cb6,'type':_0x1a6b85,'createdAt':new Date(),'authorId':_0x541996,'attributes':_0x3b888f});return this['_addSuggestionMarker'](_0x1a6b85,_0x4a2cb6,_0x541996,_0x4683a3),_0x323bfc;}['markMultiRangeInsertion'](_0x5bf063,_0x269795='multi',_0x221ce7={}){const _0x12acea=this['editor']['plugins']['get']('Users')['me'],_0x5f5154=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x269795,'join');for(const _0x4d8f53 of this['getSuggestions']())if(_0x4d8f53['author']['id']==_0x12acea['id']&&'insertion'==_0x4d8f53['type']&&_0x4d8f53['subType']==_0x269795&&qt(_0x4d8f53,_0x221ce7)&&(_0x5f5154(_0x4d8f53['getRanges'](),_0x5bf063)||_0x5f5154(_0x5bf063,_0x4d8f53['getRanges']()))){for(const _0x2ab8ff of _0x5bf063)_0x4d8f53['addRange'](_0x2ab8ff);return _0x4d8f53;}for(const {suggestion:_0x16223e,meta:_0x516058}of this['_findSuggestions'](_0x5bf063,'insertion')){if(!_0x516058['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x516058['containsRangeInObject'])continue;if(!qt(_0x16223e,_0x221ce7))continue;let _0x55a3c7=!0x0;for(const _0x3091bf of _0x16223e['getRanges']())for(const _0x9b2e7a of _0x5bf063)if(!_0x3091bf['containsRange'](_0x9b2e7a)){_0x55a3c7=!0x1;break;}if(_0x55a3c7)return _0x16223e;}const _0xb3194a=_0x104525(),_0x420a95=_0x12acea['id'],_0x50f11e='insertion:'+_0x269795,_0x5c34ef=this['_setSuggestionData']({'id':_0xb3194a,'type':_0x50f11e,'createdAt':new Date(),'authorId':_0x420a95,'attributes':_0x221ce7});for(const _0x22cbb6 of _0x5bf063)this['_addSuggestionMarker'](_0x50f11e,_0xb3194a,_0x420a95,_0x22cbb6,u['getMultiRangeId']());return _0x5c34ef;}['markInlineFormat'](_0x1eb719,_0x24071a,_0x2c3c20=null,_0x27874a={}){if(_0x2c3c20=_0x2c3c20||Gt(_0x24071a),_0x1eb719['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x48eb78=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c3c20,'accept');return this['forceDefaultExecution'](()=>_0x48eb78([_0x1eb719],_0x24071a,_0x27874a)),null;}const _0xda4868=this['editor']['plugins']['get']('Users')['me'],_0x588de9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x33b8db,meta:_0x27b401}of this['_findSuggestions'](_0x1eb719,'insertion'))_0x27b401['isOwn']&&!_0x27b401['isInsideObject']&&_0x588de9['push'](..._0x33b8db['getRanges']());}const _0x505304=function(_0x55ad03,_0xb9dfb2){const _0x435e18=[];for(const _0x17c72a of _0xb9dfb2){const _0x58e7d8=_0x55ad03['getIntersection'](_0x17c72a);_0x58e7d8&&_0x435e18['push'](_0x58e7d8);}return _0x435e18;}(_0x1eb719,_0x588de9),_0xdd4296=function(_0x33e7f0,_0x4adf7c){const _0xc81d4=[_0x33e7f0];for(const _0x2e5724 of _0x4adf7c){let _0x592061=0x0;for(;_0x592061<_0xc81d4['length'];){const _0x3cc2e2=_0xc81d4[_0x592061]['getDifference'](_0x2e5724);_0xc81d4['splice'](_0x592061,0x1,..._0x3cc2e2),_0x592061+=_0x3cc2e2['length'];}}return _0xc81d4;}(_0x1eb719,_0x588de9);_0x505304['length']&&this['_model']['change'](()=>{for(const _0x350c2d of _0x505304){const _0x449356=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c3c20,'accept');this['forceDefaultExecution'](()=>_0x449356([_0x350c2d],_0x24071a,_0x27874a));}});for(const _0x3efc46 of _0xdd4296){let _0x3ebad8=null,_0x1aac50=_0x3efc46['start'],_0x471d66=_0x3efc46['end'];for(const {suggestion:_0x12be07,meta:_0x4d4861}of this['_findSuggestions'](_0x3efc46,'formatInline')){if(!_0x4d4861['isOwn'])continue;if(_0x12be07['subType']!=_0x2c3c20)continue;if(!qt(_0x12be07,_0x27874a))continue;const _0x44f3f5=_0x12be07['getFirstRange']();if(_0x44f3f5['containsRange'](_0x3efc46,!0x0))return null;_0x1aac50=_0x1aac50['isBefore'](_0x44f3f5['start'])?_0x1aac50:_0x44f3f5['start'],_0x471d66=_0x471d66['isAfter'](_0x44f3f5['end'])?_0x471d66:_0x44f3f5['end'],_0x3ebad8?_0x44f3f5['start']['isBefore'](_0x3ebad8['getFirstRange']()['start'])?(_0x3ebad8['removeMarkers'](),_0x3ebad8=_0x12be07):_0x12be07['removeMarkers']():_0x3ebad8=_0x12be07;}const _0x36af95=this['_model']['createRange'](_0x1aac50,_0x471d66);if(_0x3ebad8)this['_setSuggestionRange'](_0x3ebad8,_0x36af95);else{const _0xbc7f81=_0x104525(),_0x47e10c=_0xda4868['id'];this['_setSuggestionData']({'id':_0xbc7f81,'type':'formatInline:'+_0x2c3c20,'data':_0x24071a,'createdAt':new Date(),'authorId':_0x47e10c,'attributes':_0x27874a}),this['_addSuggestionMarker']('formatInline:'+_0x2c3c20,_0xbc7f81,_0x47e10c,_0x36af95);}}return null;}['markBlockFormat'](_0x589fde,_0x411856,_0x210897=[],_0x18fe18=null,_0x52505a={}){_0x411856['formatGroupId']||(_0x411856['formatGroupId']=_0x411856['commandName']),_0x411856['multipleBlocks']=_0x589fde['is']('range'),_0x18fe18=_0x18fe18||Gt(_0x411856);const _0x1247a8=_0x210897['map'](_0x3754d1=>Lt(_0x3754d1,this['_model'])),_0x238a06=_0x589fde['is']('range')?_0x589fde:Lt(_0x589fde,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3894ef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18fe18,'accept');return this['forceDefaultExecution'](()=>_0x3894ef([_0x238a06],_0x411856,_0x52505a)),null;}_0x1247a8['push'](_0x238a06);let _0x4586a7=!0x0;for(const _0x250dcb of _0x1247a8)if(!this['_rangeIsInLocalUserInsertion'](_0x250dcb)){_0x4586a7=!0x1;break;}if(_0x4586a7&&'always'!==this['_trackFormatChanges']){const _0xaaefa9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18fe18,'accept');return this['forceDefaultExecution'](()=>_0xaaefa9([_0x238a06],_0x411856,_0x52505a)),null;}let _0x285ec6=null,_0x3dbd3b=_0x238a06['start'],_0x8298e6=_0x238a06['end'];for(const {suggestion:_0x4e02d6,meta:_0x47b092}of this['_findSuggestions'](_0x238a06,'formatBlock')){if(!_0x47b092['isOwn'])continue;if(_0x47b092['isNextTo']||_0x47b092['containsRangeInObject']||_0x47b092['isInsideObject'])continue;if(_0x4e02d6['data']['formatGroupId']!=_0x411856['formatGroupId'])continue;if(!qt(_0x4e02d6,_0x52505a))continue;const _0x252981=_0x4e02d6['getFirstRange']();if(_0x4e02d6['subType']==_0x18fe18){if(_0x252981['containsRange'](_0x238a06,!0x0))return null;_0x3dbd3b=_0x3dbd3b['isBefore'](_0x252981['start'])?_0x3dbd3b:_0x252981['start'],_0x8298e6=_0x8298e6['isAfter'](_0x252981['end'])?_0x8298e6:_0x252981['end'],_0x285ec6?_0x252981['start']['isBefore'](_0x285ec6['getFirstRange']()['start'])?(_0x285ec6['removeMarkers'](),_0x285ec6=_0x4e02d6):_0x4e02d6['removeMarkers']():_0x285ec6=_0x4e02d6;}else{const _0xbac7d6=_0x238a06['getIntersection'](_0x252981);this['_cutOutSuggestionMarker'](_0x4e02d6,_0xbac7d6);}}const _0x1f9d7c=this['editor']['plugins']['get']('Users')['me'],_0x2e5e45=_0x104525(),_0x291f93=_0x1f9d7c['id'];if(_0x285ec6)return this['_setSuggestionRange'](_0x285ec6,this['_model']['createRange'](_0x3dbd3b,_0x8298e6)),_0x285ec6;{const _0xc070eb=this['_setSuggestionData']({'id':_0x2e5e45,'type':'formatBlock:'+_0x18fe18,'data':_0x411856,'createdAt':new Date(),'authorId':_0x291f93,'attributes':_0x52505a});return this['_addSuggestionMarker']('formatBlock:'+_0x18fe18,_0x2e5e45,_0x291f93,this['_model']['createRange'](_0x3dbd3b,_0x8298e6)),_0xc070eb;}}['markMultiRangeBlockFormat'](_0x519454,_0x2781f8,_0x8c7277=[],_0xf40ed3=null,_0x54763f={}){_0x2781f8['formatGroupId']||(_0x2781f8['formatGroupId']=_0x2781f8['commandName']);const _0x1c2976=_0x519454[0x0];_0x2781f8['multipleBlocks']=_0x1c2976['is']('range'),_0xf40ed3=_0xf40ed3||Gt(_0x2781f8);const _0x2f2549=_0x8c7277['map'](_0xd21cd4=>Lt(_0xd21cd4,this['_model'])),_0x5f0461=_0x1c2976['is']('range')?_0x519454:_0x519454['map'](_0x2d6e92=>Lt(_0x2d6e92,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1c89e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf40ed3,'accept');return this['forceDefaultExecution'](()=>_0x1c89e9(_0x5f0461,_0x2781f8,_0x54763f)),null;}_0x2f2549['push'](..._0x5f0461);let _0x22ff9d=!0x0;for(const _0x5a3363 of _0x2f2549)if(!this['_rangeIsInLocalUserInsertion'](_0x5a3363)){_0x22ff9d=!0x1;break;}if(_0x22ff9d&&'always'!==this['_trackFormatChanges']){const _0x106f9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf40ed3,'accept');return this['forceDefaultExecution'](()=>_0x106f9e(_0x5f0461,_0x2781f8,_0x54763f)),null;}const _0x299505=this['editor']['plugins']['get']('Users')['me'];for(const _0xb4cd83 of this['getSuggestions']()){if(_0xb4cd83['author']['id']!=_0x299505['id'])continue;if('formatBlock'!=_0xb4cd83['type']||_0xb4cd83['data']['formatGroupId']!=_0x2781f8['formatGroupId'])continue;if(!qt(_0xb4cd83,_0x54763f))continue;const _0x3cf144=_0xb4cd83['subType']==_0xf40ed3;for(let _0x5094fe=0x0;_0x5094fe<_0x5f0461['length'];_0x5094fe++){const _0x56b1b9=_0x5f0461[_0x5094fe];for(const _0x4d17bc of _0xb4cd83['getMarkers']()){const _0x23853e=_0x4d17bc['getRange']();if(_0x56b1b9['isEqual'](_0x23853e)){_0x3cf144?(_0x5f0461['splice'](_0x5094fe,0x1),_0x5094fe--):_0xb4cd83['removeMarker'](_0x4d17bc['name']);break;}}}}if(0x0==_0x5f0461['length'])return null;const _0xf7da1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf40ed3,'join');for(const _0xbf9cc6 of this['getSuggestions']())if(_0xbf9cc6['author']['id']==_0x299505['id']&&'formatBlock'==_0xbf9cc6['type']&&_0xbf9cc6['data']['formatGroupId']==_0x2781f8['formatGroupId']&&_0xbf9cc6['subType']==_0xf40ed3&&qt(_0xbf9cc6,_0x54763f)&&(_0xf7da1c(_0xbf9cc6['getRanges'](),_0x5f0461)||_0xf7da1c(_0x5f0461,_0xbf9cc6['getRanges']()))){for(const _0x558b65 of _0x5f0461)_0xbf9cc6['addRange'](_0x558b65);return _0xbf9cc6;}const _0x29f306=_0x104525(),_0x4f5b36=_0x299505['id'],_0x26f410='formatBlock:'+_0xf40ed3,_0x55ddc1=this['_setSuggestionData']({'id':_0x29f306,'type':_0x26f410,'data':_0x2781f8,'createdAt':new Date(),'authorId':_0x4f5b36,'attributes':_0x54763f});for(const _0x49da02 of _0x5f0461)this['_addSuggestionMarker'](_0x26f410,_0x29f306,_0x4f5b36,_0x49da02,u['getMultiRangeId']());return _0x55ddc1;}['markDeletion'](_0x2df42d,_0x52b8f2=null,_0x37de2d={}){if(_0x2df42d['isCollapsed'])return null;const _0x46cbbc=this['editor']['plugins']['get']('Users')['me'],_0x1d56df=new _0xd23514(_0x2df42d['start'],_0x2df42d['end']);for(const {suggestion:_0x3cadbc,meta:_0x18fe99}of this['_findSuggestions'](_0x1d56df,'insertion'))if(_0x18fe99['isOwn']&&!_0x18fe99['isNextTo']){if(_0x3cadbc['isMultiRange']){const _0x5b5b16=_0x3cadbc['getRanges']()['filter'](_0x275df9=>'$graveyard'!=_0x275df9['root']['rootName']);_0x5b5b16['every'](_0x1329e0=>_0x1d56df['containsRange'](_0x1329e0,!0x0))&&_0x3cadbc['discard']();if(_0x5b5b16['some'](_0x118db9=>_0x118db9['containsRange'](_0x1d56df,!0x0))){const _0x20b66f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52b8f2,'accept');return this['forceDefaultExecution'](()=>_0x20b66f([_0x1d56df],null,_0x37de2d)),null;}}else{const _0x2bd59e=_0x1d56df['getIntersection'](_0x3cadbc['getFirstRange']());null!==_0x2bd59e&&_0x3cadbc['_onDiscard']([_0x2bd59e],null,_0x37de2d);}}if(_0x1d56df['detach'](),_0x1d56df['isCollapsed']||'$graveyard'==_0x1d56df['root']['rootName'])return null;let _0xac160b=null,_0x19827c=_0x1d56df['start'],_0xe22fd3=_0x1d56df['end'];const _0x12269d=this['_findSuggestions'](_0x1d56df,'deletion');for(const {suggestion:_0x4b0e63,meta:_0x53e8c1}of _0x12269d){const _0x3320d5=this['_model']['createRange'](_0x19827c,_0xe22fd3);if(_0x53e8c1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53e8c1['containsRangeInObject']&&!_0x53e8c1['isInsideObject'])){if(_0x4b0e63['isMultiRange']){if(!qt(_0x4b0e63,_0x37de2d))continue;let _0x4db98d=!0x0;for(const _0x2b292f of _0x4b0e63['getRanges']()){if(_0x2b292f['containsRange'](_0x3320d5,!0x0))return _0x4b0e63;_0x3320d5['containsRange'](_0x2b292f)||(_0x4db98d=!0x1);}_0x4db98d&&_0x4b0e63['discard']();}else{const _0x10f61c=_0x4b0e63['getFirstRange']();if(_0x10f61c['containsRange'](_0x3320d5,!0x0))return _0x4b0e63;if(!qt(_0x4b0e63,_0x37de2d)){_0x3320d5['containsRange'](_0x10f61c)?_0x4b0e63['removeMarkers']():_0x10f61c['containsPosition'](_0x19827c)?_0x19827c=_0x10f61c['end']:_0x10f61c['containsPosition'](_0xe22fd3)&&(_0xe22fd3=_0x10f61c['start']);continue;}_0x19827c=_0x19827c['isBefore'](_0x10f61c['start'])?_0x19827c:_0x10f61c['start'],_0xe22fd3=_0xe22fd3['isAfter'](_0x10f61c['end'])?_0xe22fd3:_0x10f61c['end'],_0x37de2d=Object['assign']({},_0x4b0e63['attributes']),_0xac160b?_0x10f61c['start']['isBefore'](_0xac160b['getFirstRange']()['start'])?(_0xac160b['removeMarkers'](),_0xac160b=_0x4b0e63):_0x4b0e63['removeMarkers']():_0xac160b=_0x4b0e63;}}}if(_0xac160b)return this['_setSuggestionRange'](_0xac160b,this['_model']['createRange'](_0x19827c,_0xe22fd3)),_0xac160b;{const _0x5262f1=_0x104525(),_0x16d33e=this['_model']['createRange'](_0x19827c,_0xe22fd3),_0x2567fa=_0x46cbbc['id'],_0x3e3b68=_0x52b8f2?'deletion:'+_0x52b8f2:'deletion',_0x22a791=this['_setSuggestionData']({'id':_0x5262f1,'type':_0x3e3b68,'createdAt':new Date(),'authorId':_0x2567fa,'attributes':_0x37de2d});return this['_addSuggestionMarker'](_0x3e3b68,_0x5262f1,_0x2567fa,_0x16d33e),_0x22a791;}}['markMultiRangeDeletion'](_0xc423f5,_0x10b872='multi',_0x427e27={}){const _0xe9426a=this['editor']['plugins']['get']('Users')['me'],_0x3beb45=_0xc423f5['map'](_0x144031=>new _0xd23514(_0x144031['start'],_0x144031['end'])),_0x273135=new Set();for(const {suggestion:_0x2847b0,meta:_0xecd309}of this['_findSuggestions'](_0x3beb45,'insertion'))_0xecd309['isOwn']&&!_0xecd309['isNextTo']&&_0x273135['add'](_0x2847b0);for(const _0x1ac3bc of _0x273135)if(_0x1ac3bc['isMultiRange']){const _0x1e73c6=_0x1ac3bc['getRanges']();(!_0x1ac3bc['attributes']||!_0x1ac3bc['attributes']['skipNestingCheck'])&&(_0x1e73c6['every'](_0xfadc7f=>_0x3beb45['some'](_0x198390=>_0x198390['containsRange'](_0xfadc7f,!0x0)))&&_0x1ac3bc['discard']());if(_0x3beb45['every'](_0x25da19=>_0x1e73c6['some'](_0x56219e=>_0x56219e['containsRange'](_0x25da19,!0x0)))){const _0x34aa36=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10b872,'accept');return this['forceDefaultExecution'](()=>_0x34aa36(_0xc423f5,null,_0x427e27)),null;}}else{const _0x43f5f2=_0x1ac3bc['getFirstRange']();_0x3beb45['some'](_0x2cb0fc=>_0x2cb0fc['containsRange'](_0x43f5f2,!0x0))&&_0x1ac3bc['discard']();if(_0x3beb45['every'](_0x1e43ef=>_0x43f5f2['containsRange'](_0x1e43ef,!0x0))){const _0x4fc5fc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10b872,'accept');return this['forceDefaultExecution'](()=>_0x4fc5fc(_0x3beb45,null,_0x427e27)),null;}}const _0x2ad62d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10b872,'join');let _0xce9d80=null;for(const _0x39a676 of this['getSuggestions']())if(_0x39a676['author']['id']==_0xe9426a['id']&&_0x39a676['isInContent']&&'deletion'==_0x39a676['type']&&_0x39a676['subType']==_0x10b872&&qt(_0x39a676,_0x427e27)&&(_0x2ad62d(_0x39a676['getRanges'](),_0x3beb45)||_0x2ad62d(_0x3beb45,_0x39a676['getRanges']()))){if(_0xce9d80){if(_0x39a676['commentThread']&&_0x39a676['commentThread']['length'])continue;for(const _0x7addc5 of _0x39a676['getRanges']())_0xce9d80['isIntersectingWithRange'](_0x7addc5)||_0xce9d80['addRange'](_0x7addc5);_0x39a676['removeMarkers']();}else{_0xce9d80=_0x39a676;for(const _0x42681c of _0x3beb45)_0x39a676['isIntersectingWithRange'](_0x42681c)||_0x39a676['addRange'](_0x42681c);}}if(_0xce9d80)return _0xce9d80;_0x273135['clear']();for(const {suggestion:_0x592519,meta:_0x349ec0}of this['_findSuggestions'](_0x3beb45,'deletion'))_0x349ec0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x349ec0['containsRangeInObject']&&!_0x349ec0['isInsideObject'])&&qt(_0x592519,_0x427e27)&&_0x273135['add'](_0x592519);for(const _0x336623 of _0x273135){const _0x5209b5=_0x336623['getRanges']();if(!_0x427e27||!_0x427e27['skipNestingCheck']){if(_0x3beb45['every'](_0x40597e=>_0x5209b5['some'](_0x152dbd=>_0x152dbd['containsRange'](_0x40597e,!0x0))))return _0x336623;}(!_0x336623['attributes']||!_0x336623['attributes']['skipNestingCheck'])&&(_0x5209b5['every'](_0x4b25b4=>_0x3beb45['some'](_0xf01b92=>_0xf01b92['containsRange'](_0x4b25b4,!0x0)))&&_0x336623['discard']());}const _0x589b4e=_0x104525(),_0xdd113=_0xe9426a['id'],_0x2a3b33='deletion:'+_0x10b872,_0x571eff=this['_setSuggestionData']({'id':_0x589b4e,'type':_0x2a3b33,'createdAt':new Date(),'authorId':_0xdd113,'attributes':_0x427e27});for(const _0x13a05c of _0x3beb45)_0x13a05c['detach'](),_0x13a05c['isCollapsed']||'$graveyard'==_0x13a05c['root']['rootName']||this['_addSuggestionMarker'](_0x2a3b33,_0x589b4e,_0xdd113,_0x13a05c,u['getMultiRangeId']());return _0x571eff;}['markAttributeChange'](_0x2e90a7,_0x35eb0a,_0x59e3a4,_0x30f70c,_0x7336db){if(_0x2e90a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4a00e8=this['editor']['plugins']['get']('Users')['me']['id'],_0x39f0ec=Array['from'](this['_suggestions']['values']())['filter'](_0x4bb678=>'attribute'==_0x4bb678['type']&&_0x4bb678['data']['key']==_0x35eb0a&&_0x4bb678['isIntersectingWithRange'](_0x2e90a7));if('default'===this['_trackFormatChanges']){const _0x51222f=this['_findSuggestions'](_0x2e90a7,'insertion')['filter'](({meta:_0x5a5e08})=>_0x5a5e08['isOwn']&&!_0x5a5e08['isInsideObject']&&!_0x5a5e08['isNextTo'])['map'](({suggestion:_0x9b7124})=>_0x9b7124);_0x39f0ec['unshift'](..._0x51222f);}const _0x255bc6=new Map([[_0x2e90a7,_0x59e3a4]]);for(const _0x518a5e of _0x39f0ec){const _0x3f489f='attribute'==_0x518a5e['type']?_0x518a5e['data']['oldValue']:void 0x0,_0x2a41ee=_0x518a5e['getFirstRange'](),_0x14b825=Array['from'](_0x255bc6['keys']())['find'](_0x56078f=>_0x56078f['isIntersecting'](_0x2a41ee));if(!_0x14b825)continue;const _0x26232f=_0x14b825['getDifference'](_0x2a41ee);this['_isBlockAttribute'](_0x35eb0a)&&'insertion'==_0x518a5e['type']&&0x0!=_0x26232f['length']||(_0x255bc6['delete'](_0x14b825),_0x26232f['forEach'](_0x2d584e=>{_0x255bc6['set'](_0x2d584e,_0x59e3a4);}),'insertion'!=_0x518a5e['type']&&_0x3f489f!=_0x30f70c&&_0x255bc6['set'](_0x14b825['getIntersection'](_0x2a41ee),_0x3f489f));}const _0x58e590=[];for(const [_0x81a4a1,_0x2ab246]of _0x255bc6){const _0x435ea1=_0x104525(),_0x1f98de={'key':_0x35eb0a,'oldValue':_0x2ab246,'newValue':_0x30f70c};_0x35eb0a['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x35eb0a});const _0x345375=('attribute:'+(_0x35eb0a+'|'+Gt({'newValue':_0x30f70c})))['substring'](0x0,0x3c),_0x3775d0=this['_setSuggestionData']({'id':_0x435ea1,'type':_0x345375,'data':_0x1f98de,'createdAt':new Date(),'authorId':_0x4a00e8,'attributes':_0x7336db});_0x58e590['push'](_0x3775d0),this['_addSuggestionMarker'](_0x345375,_0x435ea1,_0x4a00e8,_0x81a4a1);}return _0x58e590;}['enableDefaultAttributesIntegration'](_0x45e795){this['enableCommand'](_0x45e795,(_0x1a2234,..._0x22c972)=>{this['_recordAttributeChanges'](()=>{_0x1a2234(..._0x22c972);});});}['registerBlockAttribute'](_0x301a8c){this['_blockAttributeKeys']['add'](_0x301a8c);}['registerInlineAttribute'](_0x2d6ca3){this['_inlineAttributeKeys']['add'](_0x2d6ca3);}['_getAttributeKey'](_0x4abd1d){return'attribute'==_0x4abd1d['type']?_0x4abd1d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2933d7,_0x134c91){const _0x1296ba=_0x2933d7['getFirstMarker']();this['_model']['change'](_0x27fce3=>{_0x27fce3['updateMarker'](_0x1296ba,{'range':_0x134c91});});}['_addThreadToSuggestion'](_0x4832b7){const _0x6be3fc=_0x4832b7['id'],_0x13907e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x6be3fc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x13907e,'threadId':_0x6be3fc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2d4443=this['_commentsRepository']['getCommentThread'](_0x6be3fc);_0x2d4443['unbind']('isRemovable'),_0x2d4443['isRemovable']=!0x1,_0x4832b7['commentThread']=_0x2d4443;}['_checkSuggestionCorrectness'](_0x3c3f52,_0x112746,_0x47ab46,_0x409734){if(_0x3c3f52['type']!=_0x112746||_0x3c3f52['subType']!=_0x47ab46||_0x3c3f52['creator']['id']!=_0x409734)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ee368('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x516254,_0x2a026a){const _0x429d51=_0x516254['getFirstRange']();if(_0x2a026a['isEqual'](_0x429d51))_0x516254['removeMarkers']();else{if(_0x429d51['containsRange'](_0x2a026a)){const _0x3b65be=this['_model']['createPositionAt'](_0x2a026a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x516254,this['_model']['createRange'](_0x429d51['start'],_0x3b65be));const _0x3b6cb3=_0x104525(),_0x588225=_0x516254['creator']['id'],_0x5474ce=_0x516254['type']+':'+_0x516254['subType'];this['_setSuggestionData']({'id':_0x3b6cb3,'type':_0x5474ce,'createdAt':new Date(),'authorId':_0x588225,'data':_0x516254['data'],'attributes':_0x516254['attributes']});const _0xb1b53b=this['_model']['createPositionAt'](_0x2a026a['end']['parent'],'after'),_0x247de4=this['_model']['createRange'](_0xb1b53b,_0x429d51['end']);this['_addSuggestionMarker'](_0x5474ce,_0x3b6cb3,_0x588225,_0x247de4);}else{if(_0x429d51['containsPosition'](_0x2a026a['start'])){const _0x1dd58e=this['_model']['createPositionAt'](_0x2a026a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x516254,this['_model']['createRange'](_0x429d51['start'],_0x1dd58e));}else{const _0x529304=this['_model']['createPositionAt'](_0x2a026a['end']['parent'],'after');this['_setSuggestionRange'](_0x516254,this['_model']['createRange'](_0x529304,_0x429d51['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5a479d){for(const {suggestion:_0x4da78d,meta:_0xa7c9a1}of this['_findSuggestions'](_0x5a479d,'insertion')){if(!_0xa7c9a1['isOwn'])continue;const _0xbdea64=_0x4da78d['getRanges']();for(const _0x5a3059 of _0xbdea64)if(!_0x5a479d['getDifference'](_0x5a3059)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4ec4b9){const _0x33156a=this['editor']['plugins']['get']('Users')['getUser'](_0x4ec4b9);if(!_0x33156a)throw new _0x3ee368('track-changes-user-not-found',this);return _0x33156a;}['_getExternalAuthor'](_0x21e102){const _0x29943c=this['editor']['plugins']['get']('Users'),_0x4d3804=_0x1f00d3('external:'+_0x21e102),_0x1d448f=_0x29943c['getUser'](_0x4d3804);return _0x1d448f||_0x29943c['addUser']({'id':_0x4d3804,'name':_0x21e102});}['_createSuggestion'](_0x245a7c,_0x170c6b,_0x1c0d28,_0x1c7af5,_0x518f3e){const _0x29f682=this['_getAuthorFromId'](_0x1c7af5),_0x5270fa=this['_suggestionFactory']['buildSuggestion'](_0x245a7c,_0x170c6b,_0x1c0d28,_0x29f682,_0x518f3e,_0x1cea3c=>{this['_updateSuggestionData'](_0x1c0d28,{'attributes':_0x1cea3c});const _0x2c9982=this['getSuggestion'](_0x1c0d28);this['_joinWithAdjacentSuggestions'](new Set([_0x2c9982])),this['_refreshSuggestionsChain'](new Set([_0x2c9982]));});return this['listenTo'](_0x5270fa,'accept',()=>{this['_updateSuggestionData'](_0x1c0d28,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5270fa,'discard',()=>{this['_updateSuggestionData'](_0x1c0d28,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c0d28,_0x5270fa),this['_suggestionState']['set'](_0x5270fa,'notReady'),_0x5270fa;}['_splitMarkerName'](_0x508da7){const _0x2294c7=_0x508da7['split'](':');return{'group':_0x2294c7[0x0],'type':_0x2294c7[0x1],'subType':_0x2294c7['length']>=0x5?_0x2294c7[0x2]:null,'id':_0x2294c7['length']<0x5?_0x2294c7[0x2]:_0x2294c7[0x3],'authorId':_0x2294c7['length']<0x5?_0x2294c7[0x3]:_0x2294c7[0x4],'markerCount':0x6==_0x2294c7['length']?_0x2294c7[0x5]:null};}['_breakSuggestionMarker'](_0x45fbcb,_0x27def6,_0x5874e8){const _0x2634e4=_0x45fbcb['getFirstRange'](),_0xf81e52=_0x2634e4['start'],_0xe53009=_0x2634e4['end'];this['_setSuggestionRange'](_0x45fbcb,this['_model']['createRange'](_0xf81e52,_0x27def6));const _0x4cfa47=_0x104525(),_0x6c6c0f=_0x45fbcb['creator']['id'],_0x5f546e=_0x45fbcb['type']+(_0x45fbcb['subType']?':'+_0x45fbcb['subType']:'');this['_setSuggestionData']({'id':_0x4cfa47,'type':_0x5f546e,'createdAt':new Date(),'authorId':_0x6c6c0f,'originalSuggestionId':_0x45fbcb['id'],'attributes':_0x45fbcb['attributes'],'data':_0x45fbcb['data']});const _0x47d535=this['_getAttributeKey'](_0x45fbcb);('formatBlock'==_0x45fbcb['type']||_0x47d535&&this['_isBlockAttribute'](_0x47d535))&&(_0x5874e8=this['_model']['createPositionBefore'](_0x5874e8['parent'])),this['_addSuggestionMarker'](_0x5f546e,_0x4cfa47,_0x6c6c0f,this['_model']['createRange'](_0x5874e8,_0xe53009));}['_findSuggestions'](_0x546653,_0x2284b5=null){const _0x5b0674=[],_0x52116c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x546653)||(_0x546653=[_0x546653]);for(const _0x2839b5 of this['getSuggestions']()){if(!_0x2839b5['isInContent'])continue;if(_0x2284b5&&_0x2839b5['type']!=_0x2284b5)continue;let _0x26bf1=!0x1;for(const _0x37f7f5 of _0x2839b5['getRanges']()){for(const _0x17f11f of _0x546653){const _0x33252a=_0x17f11f['start']['isEqual'](_0x37f7f5['end'])||_0x17f11f['end']['isEqual'](_0x37f7f5['start']);if(_0x33252a||_0x17f11f['getIntersection'](_0x37f7f5)){const _0x2f26f6=_0x17f11f['containsRange'](_0x37f7f5)&&Ot(this['_model']['schema'],_0x37f7f5['start'],_0x17f11f),_0x1b0db8=_0x37f7f5['containsRange'](_0x17f11f)&&Ot(this['_model']['schema'],_0x17f11f['start'],_0x37f7f5);_0x5b0674['push']({'suggestion':_0x2839b5,'meta':{'isOwn':_0x52116c==_0x2839b5['author'],'isNextTo':_0x33252a,'isInsideObject':_0x2f26f6,'containsRangeInObject':_0x1b0db8}}),_0x26bf1=!0x0;break;}}if(_0x26bf1)break;}}return _0x5b0674;}['_addSuggestionMarker'](_0x3d3aa9,_0x44d91b,_0x9151aa,_0x26e7ee,_0x5cd0d0){this['_model']['change'](_0x3d0b4c=>{let _0x4802fa='suggestion:'+_0x3d3aa9+':'+_0x44d91b+':'+_0x9151aa;_0x5cd0d0&&(_0x4802fa=_0x4802fa+':'+_0x5cd0d0),_0x3d0b4c['addMarker'](_0x4802fa,{'range':_0x26e7ee,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5d2492){const _0x3a8b70=_0x5d2492['previous'],_0x5ea3c3=_0x5d2492['next'];_0x5d2492['previous']=null,_0x5d2492['next']=null,null!=_0x3a8b70&&_0x3a8b70['next']==_0x5d2492&&(_0x3a8b70['next']=_0x5ea3c3),null!=_0x5ea3c3&&_0x5ea3c3['previous']==_0x5d2492&&(_0x5ea3c3['previous']=_0x3a8b70),'ready'==this['_suggestionState']['get'](_0x5d2492)&&(this['_suggestionState']['set'](_0x5d2492,'removed'),this['fire']('suggestionUnloaded',_0x5d2492,_0x3a8b70,_0x5ea3c3));}['_setSuggestionData'](_0x5cec7a){const _0x2b496d=_0x5cec7a['id'],_0x1f0893=this['addSuggestionData'](_0x5cec7a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xf82f51=this['editor']['plugins']['get']('PendingActions'),_0x4061a9=_0x1f0893['hasComments'],_0x36d20b=_0x1f0893['subType']?_0x1f0893['type']+':'+_0x1f0893['subType']:_0x1f0893['type'],_0x47dea9=this['editor']['locale'],_0x54c594=_0xf82f51['add'](o(_0x47dea9,'PENDING_ACTION_SUGGESTION')),_0x4f12f8={'id':_0x2b496d,'type':_0x36d20b,'hasComments':_0x4061a9,'data':_0x5cec7a['data']||null,'originalSuggestionId':_0x5cec7a['originalSuggestionId']||null,'attributes':_0x1f0893['attributes']};this['_adapter']['addSuggestion'](_0x4f12f8)['then'](_0x1e6ef1=>{_0x1f0893['_saved']=!0x0,_0xf82f51['remove'](_0x54c594),_0x1e6ef1&&_0x1e6ef1['createdAt']&&(this['_suggestions']['get'](_0x2b496d)['createdAt']=_0x1e6ef1['createdAt']);})['catch'](_0x21096a=>{throw _0x276834('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f0893['discard']();}),_0x1f0893['stopListening'](),this['_suggestions']['delete'](_0x1f0893['id']),this['_suggestionState']['delete'](_0x1f0893),_0x21096a;});}return _0x1f0893;}['_isBlockAttribute'](_0x1c56ca){return this['_blockAttributeKeys']['has'](_0x1c56ca);}['_updateSuggestionData'](_0x436c3e,_0x5861c0){const _0x1890ac=this['editor']['plugins']['get']('PendingActions'),_0x523588=this['getSuggestion'](_0x436c3e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x523588['_saved']){const _0x2e334d=_0x1890ac['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x436c3e,_0x5861c0)['then'](()=>{_0x1890ac['remove'](_0x2e334d);});}else _0x523588['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x436c3e,_0x5861c0);});}}['_getSuggestionData'](_0x29846e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ee368('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x29846e);}['_handleNewSuggestionMarker'](_0x29a39a){const {id:_0x55466a,type:_0x4995a5,subType:_0x26e117,authorId:_0xa6c1ae}=this['_splitMarkerName'](_0x29a39a),_0x29ed6d=this['_suggestions']['get'](_0x55466a)||this['_createSuggestion'](_0x4995a5,_0x26e117,_0x55466a,_0xa6c1ae,{});switch(this['_checkSuggestionCorrectness'](_0x29ed6d,_0x4995a5,_0x26e117,_0xa6c1ae),this['_suggestionState']['get'](_0x29ed6d)){case'notReady':this['_getSuggestionData'](_0x55466a)['then'](_0x22f810=>{let _0x31aa1a=Promise['resolve']();_0x22f810['hasComments']&&(_0x31aa1a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x55466a})),_0x31aa1a['then'](()=>{this['addSuggestionData'](_0x22f810)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29ed6d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x55466a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29ed6d,'ready'),this['fire']('suggestionLoaded',_0x29ed6d);break;case'ready':this['fire']('suggestionChanged',_0x29ed6d);}return _0x29ed6d['addMarkerName'](_0x29a39a),_0x29ed6d;}['_refreshSuggestionsChain'](_0x188438){const _0x3a9034=Array['from'](_0x188438),_0x3e4ff2=_0x3a9034['filter'](_0x2cb3c6=>'attribute'==_0x2cb3c6['type']);this['_refreshAttributeSuggestionsChain'](_0x3e4ff2);const _0x2c23c4=_0x3a9034['filter'](_0x38669f=>!_0x38669f['isMultiRange']&&'attribute'!=_0x38669f['type']),_0xc7e7be=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x461463=>!_0x461463['isMultiRange']&&'attribute'!=_0x461463['type']),_0x4391db=_0xc7e7be['filter'](_0x1d740c=>!_0x188438['has'](_0x1d740c)),_0x46d1ee=new Map(_0xc7e7be['map'](_0x3901de=>[_0x3901de,this['_suggestionFactory']['getSuggestionCallback'](_0x3901de['type'],_0x3901de['subType'],'chain')])),_0x8699e=new Map(_0xc7e7be['map'](_0x5ee0ca=>[_0x5ee0ca,_0x5ee0ca['getFirstRange']()])),_0x28b174=new Set(),_0x1a5732=new Set();for(let _0x4008ff=0x0;_0x4008ff<_0x2c23c4['length'];_0x4008ff++)_0x1f6566(_0x2c23c4[_0x4008ff],_0x2c23c4,_0x4008ff+0x1);for(let _0x9519bb=0x0;_0x9519bb<_0x2c23c4['length'];_0x9519bb++)_0x1f6566(_0x2c23c4[_0x9519bb],_0x4391db,0x0);const _0x2a7420=new Set();for(let _0x5d31c1=0x0;_0x5d31c1<_0x2c23c4['length'];_0x5d31c1++){const _0x3e22f1=_0x2c23c4[_0x5d31c1];!_0x1a5732['has'](_0x3e22f1)&&_0x3e22f1['previous']&&(_0x2a7420['add'](_0x3e22f1['previous']),_0x3e22f1['previous']['next']===_0x3e22f1&&(_0x3e22f1['previous']['next']=null),_0x3e22f1['previous']=null),!_0x28b174['has'](_0x3e22f1)&&_0x3e22f1['next']&&(_0x2a7420['add'](_0x3e22f1['next']),_0x3e22f1['next']['previous']===_0x3e22f1&&(_0x3e22f1['next']['previous']=null),_0x3e22f1['next']=null);}function _0x1f6566(_0x288a15,_0x5337ff,_0x4bc82b){for(let _0x2fecf4=_0x4bc82b;_0x2fecf4<_0x5337ff['length'];_0x2fecf4++){const _0x1b02bb=_0x2bacd5(_0x288a15,_0x5337ff[_0x2fecf4]);_0x1b02bb&&(_0x1b02bb[0x0]['next']=_0x1b02bb[0x1],_0x1b02bb[0x1]['previous']=_0x1b02bb[0x0],_0x28b174['add'](_0x1b02bb[0x0]),_0x1a5732['add'](_0x1b02bb[0x1]));}}function _0x2bacd5(_0x8f2ad7,_0x572beb){if(_0x8f2ad7['author']['id']!==_0x572beb['author']['id'])return null;const _0x207f81=_0x46d1ee['get'](_0x8f2ad7)(_0x8f2ad7,_0x572beb,_0x8699e['get'](_0x8f2ad7),_0x8699e['get'](_0x572beb));if(!_0x207f81)return null;return _0x46d1ee['get'](_0x572beb)(_0x8f2ad7,_0x572beb,_0x8699e['get'](_0x8f2ad7),_0x8699e['get'](_0x572beb))?_0x207f81[0x1]['commentThread']&&_0x207f81[0x1]['commentThread']['length']?null:_0x207f81:null;}_0x2a7420['size']&&this['_refreshSuggestionsChain'](_0x2a7420);}['_refreshAttributeSuggestionsChain'](_0xc7bc24){if(0x0==_0xc7bc24['length'])return;const _0x16f0b7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46f1f2=>'attribute'==_0x46f1f2['type']&&_0x46f1f2['_isDataLoaded']),_0x406456=[],_0x1b37cd=new Map();for(const _0x2f286b of _0x16f0b7){const _0x3bc80e=_0x1f00d3(_0x2f286b['attributes']);_0x1b37cd['has'](_0x3bc80e)||(_0x1b37cd['set'](_0x3bc80e,_0x406456['length']),_0x406456['push']([]));const _0x5d5e65=_0x1b37cd['get'](_0x3bc80e);_0x406456[_0x5d5e65]['push'](_0x2f286b);}!(function(){_0x406456['sort']((_0x10f733,_0x95debf)=>{const _0x179c5e=_0x10f733[0x0]['createdAt'],_0x2b2583=_0x95debf[0x0]['createdAt'];return _0x179c5e==_0x2b2583?_0x10f733[0x0]['attributes']['groupId']<_0x95debf[0x0]['attributes']['groupId']?-0x1:0x1:_0x179c5e<_0x2b2583?-0x1:0x1;});for(const _0x1ba2d9 of _0x406456)_0x1ba2d9['sort']((_0x2f2258,_0x5cfc4e)=>_0x2f2258['id']<_0x5cfc4e['id']?-0x1:0x1);}());for(let _0x2d767a=0x0;_0x2d767a<_0x406456['length'];_0x2d767a++){if(0x0==_0x406456[_0x2d767a]['length'])continue;const _0x1f8224=[];for(let _0x32452=_0x2d767a+0x1;_0x32452<_0x406456['length'];_0x32452++)0x0!=_0x406456[_0x32452]['length']&&_0x45d265(_0x406456[_0x2d767a],_0x406456[_0x32452])&&_0x1f8224['push'](_0x32452);for(const _0x5a3fe2 of _0x1f8224)_0x406456[_0x2d767a]=_0x406456[_0x2d767a]['concat'](_0x406456[_0x5a3fe2]),_0x406456[_0x5a3fe2]=[];}for(const _0x4a55ca of _0x406456)for(let _0x3948b9=0x0;_0x3948b9<_0x4a55ca['length'];_0x3948b9++){const _0x4b0f10=_0x4a55ca[_0x3948b9+0x1]||null;_0x4a55ca[_0x3948b9]['next']!==_0x4b0f10&&(_0x4a55ca[_0x3948b9]['next']=_0x4b0f10);}for(const _0xd58442 of _0x406456)for(let _0x17e2ec=0x0;_0x17e2ec<_0xd58442['length'];_0x17e2ec++){const _0x1ab468=_0xd58442[_0x17e2ec-0x1]||null;_0xd58442[_0x17e2ec]['previous']!==_0x1ab468&&(_0xd58442[_0x17e2ec]['previous']=_0x1ab468);}function _0x45d265(_0x298cfd,_0x2fd915){if(_0x298cfd[0x0]['attributes']['groupId']!==_0x2fd915[0x0]['attributes']['groupId']&&_0x298cfd[0x0]['author']!==_0x2fd915[0x0]['author'])return!0x1;if(!function(_0x3b34da,_0x4701e9){if(!_0x3b34da['hasComments']&&!_0x4701e9['hasComments'])return!0x0;if(_0x3b34da['hasComments']&&_0x4701e9['hasComments'])return!0x1;if(_0x3b34da['hasComments']&&_0x4701e9['createdAt']<_0x3b34da['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4701e9['hasComments']&&_0x3b34da['createdAt']<_0x4701e9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x298cfd[0x0],_0x2fd915[0x0]))return!0x1;const _0x115e23=Tt(_0x298cfd[0x0]['attributes'],'groupId'),_0x23b3d7=Tt(_0x2fd915[0x0]['attributes'],'groupId');if(!_0x2d0bd3(_0x115e23,_0x23b3d7))return!0x1;return!!_0x298cfd['every'](_0x27e207=>_0x2fd915['some'](_0x122a2a=>_0x27e207['getFirstRange']()['isEqual'](_0x122a2a['getFirstRange']())))&&_0x2fd915['every'](_0x1c6aad=>_0x298cfd['some'](_0x1768f8=>_0x1c6aad['getFirstRange']()['isEqual'](_0x1768f8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b6dc6){const _0x5ba2aa=Array['from'](_0x1b6dc6),_0x5df7ab=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5ec613=_0x5df7ab['filter'](_0x495c49=>!_0x1b6dc6['has'](_0x495c49)),_0x4bfb27=new Map(_0x5ba2aa['map'](_0x2905e8=>[_0x2905e8,this['_suggestionFactory']['getSuggestionCallback'](_0x2905e8['type'],_0x2905e8['subType'],'join')])),_0x3c544c=new Map(_0x5df7ab['map'](_0x465e30=>[_0x465e30,_0x465e30['getRanges']()]));for(let _0x2f55eb=0x0;_0x2f55eb<_0x5ba2aa['length'];_0x2f55eb++){if(_0x47158b(this,_0x5ba2aa[_0x2f55eb],_0x5ba2aa,_0x2f55eb+0x1))return!0x0;}for(let _0x5792d8=0x0;_0x5792d8<_0x5ba2aa['length'];_0x5792d8++){if(_0x47158b(this,_0x5ba2aa[_0x5792d8],_0x5ec613,0x0))return!0x0;}return!0x1;function _0x47158b(_0x1ea66b,_0x480f44,_0x1fc3db,_0x103029){for(let _0x4ee54f=_0x103029;_0x4ee54f<_0x1fc3db['length'];_0x4ee54f++){const _0x1bbcca=_0x1fc3db[_0x4ee54f];if(_0x1bbcca['type']!==_0x480f44['type']||_0x1bbcca['author']['id']!==_0x480f44['author']['id']||_0x1bbcca['subType']!==_0x480f44['subType'])continue;if(!Jt(_0x480f44,_0x1bbcca))continue;if('attribute'==_0x480f44['type']&&_0x480f44['data']['oldValue']!=_0x1bbcca['data']['oldValue'])continue;if('attribute'==_0x480f44['type']&&_0x1ea66b['_isBlockAttribute'](_0x480f44['data']['key']))continue;if('formatBlock'==_0x480f44['type']){const _0x29016a=_0x1ea66b['editor']['model'],_0x2cb07c=_0x480f44['getContainedElement']();if(_0x2cb07c&&(_0x29016a['schema']['isObject'](_0x2cb07c)||_0x29016a['schema']['isLimit'](_0x2cb07c)))continue;}const _0x41ed6b=_0x4bfb27['get'](_0x480f44),_0x3f93aa=_0x3c544c['get'](_0x480f44),_0x5cec1a=_0x3c544c['get'](_0x1bbcca),_0x2c4112=_0x480f44['commentThread']&&_0x480f44['commentThread']['length'],_0x134941=_0x1bbcca['commentThread']&&_0x1bbcca['commentThread']['length'];if(!_0x2c4112&&_0x41ed6b(_0x5cec1a,_0x3f93aa))return _0x1ea66b['_joinSuggestions'](_0x1bbcca,_0x480f44),_0x3c544c['delete'](_0x480f44),!0x0;if(!_0x134941&&_0x41ed6b(_0x3f93aa,_0x5cec1a))return _0x1ea66b['_joinSuggestions'](_0x480f44,_0x1bbcca),_0x3c544c['delete'](_0x1bbcca),!0x0;}return!0x1;}}['_joinSuggestions'](_0x104c81,_0x3ba948){if(_0x104c81['isMultiRange']){for(const _0x188b78 of _0x3ba948['getRanges']())_0x104c81['addRange'](_0x188b78);}else{const _0x3fa2a0=_0x3ba948['getFirstRange']()['end'];this['_setSuggestionRange'](_0x104c81,this['_model']['createRange'](_0x104c81['getFirstRange']()['start'],_0x3fa2a0));}_0x3ba948['removeMarkers']();}['_getMarkerAnnouncementText'](_0x346dc1,_0x148b15,_0x57f136){const _0x7d59d=_0x346dc1['startsWith']('format')||_0x346dc1['startsWith']('attribute')?'FORMATTING':_0x346dc1['toUpperCase']();return o(this['editor']['locale'],_0x148b15+'_'+_0x7d59d+'_SUGGESTION_ANNOUNCEMENT',_0x57f136);}['_initAriaMarkerChangeAnnouncements'](){const _0x2b4e5d=this['editor'];if(!_0x2b4e5d['ui'])return;const {ariaLiveAnnouncer:_0x10bed9}=_0x2b4e5d['ui'];_0x420556(this['_model'],({left:_0x1f6913,entered:_0x2a4480})=>{for(const _0x4d9532 of _0x1f6913){const {group:_0xe7343f,type:_0x52063e}=this['_splitMarkerName'](_0x4d9532['name']);if('suggestion'===_0xe7343f){_0x10bed9['announce'](this['_getMarkerAnnouncementText'](_0x52063e,'LEAVE'));break;}}for(const _0x5ed562 of _0x2a4480){const {group:_0x2bfa97,type:_0xcdc710}=this['_splitMarkerName'](_0x5ed562['name']);if('suggestion'===_0x2bfa97){_0x10bed9['announce'](this['_getMarkerAnnouncementText'](_0xcdc710,'ENTER',_0x55e185(_0x58acbc)));break;}}});}['_processAttributeChanges'](_0x1c6d9b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x30b19d=this['editor'],_0x46ce95=_0x30b19d['model']['document']['differ']['getChanges']();if(0x0==_0x46ce95['length'])return!0x1;const _0x468803=[],_0x448e52=_0x46ce95['filter'](_0x3ebff9=>'attribute'==_0x3ebff9['type']),_0x58a0d2=_0x46ce95['filter'](_0x5b78a5=>'insert'==_0x5b78a5['type']&&'$text'!=_0x5b78a5['name']),_0x22a817=_0x46ce95['filter'](_0x4a15cb=>'remove'==_0x4a15cb['type']&&'$text'!=_0x4a15cb['name']);for(const _0x3a8902 of _0x448e52)_0x468803['push']({'key':_0x3a8902['attributeKey'],'newValue':_0x3a8902['attributeNewValue'],'oldValue':_0x3a8902['attributeOldValue'],'range':Pt(_0x3a8902['range'],_0x30b19d['model'])});for(const _0x9d720c of _0x58a0d2){const _0x2778a6=_0x22a817['find'](_0x4a08a4=>_0x4a08a4['position']['isEqual'](_0x9d720c['position']));_0x2778a6&&_0x468803['push']({'key':m,'newValue':_0x9d720c['name'],'oldValue':_0x2778a6['name'],'range':_0x30b19d['model']['createRangeOn'](_0x9d720c['position']['nodeAfter'])});}return 0x0!=_0x468803['length']&&this['_reduceExistingSuggestions'](_0x1c6d9b,_0x468803);}['_processAttributeSuggestions'](_0x1ca817){let _0xdd3425=!0x1;const _0x484503=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x237cc5=>_0x237cc5['data']['newRange']&&_0x237cc5['name']['startsWith']('suggestion:attribute:'));for(const _0xb33ec7 of _0x484503){const {subType:_0x57b1e6,id:_0x577918}=this['_splitMarkerName'](_0xb33ec7['name']),_0x185808=_0x57b1e6['split']('|')[0x0];for(const _0x29a4d5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x29a4d5['id']!=_0x577918&&'attribute'==_0x29a4d5['type']&&_0x29a4d5['data']&&_0x29a4d5['data']['key']==_0x185808&&_0x29a4d5['getFirstRange']()['isIntersecting'](_0xb33ec7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x29a4d5,_0xb33ec7['data']['newRange'],_0x1ca817),_0xdd3425=!0x0);}return _0xdd3425;}['_recordAttributeChanges'](_0x44e5d8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x44e5d8();}['_isRegisteredAttribute'](_0x3b35ae){const _0x438db2=this['_isBlockAttribute'](_0x3b35ae),_0x4215ea=this['_inlineAttributeKeys']['has'](_0x3b35ae);return _0x438db2||_0x4215ea;}['_reduceExistingSuggestions'](_0x39aafd,_0x52f819){if(0x0==_0x52f819['length'])return!0x1;let _0x1004a8=!0x1;for(const _0x47a6d9 of _0x52f819){const _0x11a6c5=this['_findSuggestions'](_0x47a6d9['range'],'attribute')['filter'](_0x2aec08=>!_0x2aec08['meta']['isNextTo'])['map'](_0x3ef4e0=>_0x3ef4e0['suggestion']),_0x552fb8=_0x1f00d3({'newValue':_0x47a6d9['newValue']});_0x11a6c5['filter'](_0xdd9d53=>{const [_0x1dd8d5,_0x184b67]=_0xdd9d53['subType']['split']('|');return _0x1dd8d5==_0x47a6d9['key']&&_0x184b67!=_0x552fb8;})['forEach'](_0x34427b=>{this['_reduceSuggestionAttributeRange'](_0x34427b,_0x47a6d9['range'],_0x39aafd),_0x1004a8=!0x0;});}return _0x1004a8;}['_reduceSuggestionAttributeRange'](_0x12c7f0,_0xf6c957,_0x5a3415){const _0x3d8a6a=_0x12c7f0['getFirstRange']()['getDifference'](_0xf6c957);0x0!==_0x3d8a6a['length']?0x1!==_0x3d8a6a['length']?this['_breakSuggestionMarker'](_0x12c7f0,_0xf6c957['start'],_0xf6c957['end']):this['_setSuggestionRange'](_0x12c7f0,_0x3d8a6a[0x0]):_0x5a3415['removeMarker'](_0x12c7f0['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5bd20e){this['_editor']=_0x5bd20e,this['_model']=_0x5bd20e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x420ac8,_0x1cc694,_0x4e9a4c,_0x20fb8c,_0xd7ac4d,_0xa8c0f1){return new u(this['_model'],{'type':_0x420ac8,'subType':_0x1cc694,'id':_0x4e9a4c,'author':_0x20fb8c,'creator':_0x20fb8c,'attributes':_0xd7ac4d,'onAttributesChange':_0xa8c0f1,'onAccept':(..._0x1e3b10)=>this['getSuggestionCallback'](_0x420ac8,_0x1cc694,'accept')(..._0x1e3b10),'onDiscard':(..._0x3dd574)=>this['getSuggestionCallback'](_0x420ac8,_0x1cc694,'discard')(..._0x3dd574)});}['registerCustomCallback'](_0x3308e7,_0x50f58b,_0x38104a,_0x2f28c0){const _0x9460ec=_0x3308e7+':'+_0x50f58b+':'+_0x38104a;this['_customCallbacks']['set'](_0x9460ec,_0x2f28c0);}['getSuggestionCallback'](_0x2308b6,_0x1d201a,_0x57d26b){const _0x2dc317=_0x2308b6+':'+_0x1d201a+':'+_0x57d26b;return this['_customCallbacks']['get'](_0x2dc317)||this['_defaultCallbacks']['get'](_0x2308b6+':'+_0x57d26b);}['_registerDefaultCallbacks'](){const _0x3ab665=()=>!0x1,_0x4a4faa=_0x512d21=>{_0x512d21['sort']((_0x2ff18a,_0x5d8293)=>_0x2ff18a['start']['isBefore'](_0x5d8293['start'])?0x1:-0x1),this['_model']['change'](_0x27a2e3=>{for(const _0xc22edc of _0x512d21){let _0x280775;_0x280775=_0xc22edc['end']['isAtEnd']&&_0xc22edc['end']['parent']==_0xc22edc['start']['nodeAfter']?_0x27a2e3['createSelection'](_0xc22edc['start']['nodeAfter'],'on'):_0x27a2e3['createSelection'](_0xc22edc),this['_model']['deleteContent'](_0x280775,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x17afd8=(_0x118d9e,_0x4e3691)=>{_0x4e3691&&this['_model']['change'](_0x4d4fde=>{const {commandName:_0x589d1b,commandParams:_0xfe348f=[]}=_0x4e3691,_0x2010b8=_0x118d9e['map'](_0x128068=>(Vt(_0x128068)&&(_0x128068=this['_model']['createRange'](_0x128068['end'])),_0x128068))['filter'](_0x6282ab=>'$graveyard'!==_0x6282ab['root']['rootName']);if(_0x2010b8['length']<0x1)return;const _0x3073aa=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4c1c0b=>_0xd23514['fromRange'](_0x4c1c0b));_0x4d4fde['setSelection'](_0x2010b8);for(const _0x559556 of this['_editor']['commands']['commands']())_0x559556['refresh']();_0xfe348f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x589d1b,..._0xfe348f);const _0x1358c5=_0x3073aa['filter'](_0x46dfa6=>'$graveyard'!=_0x46dfa6['root']['rootName']);_0x1358c5['length']>0x0&&_0x4d4fde['setSelection'](_0x1358c5);for(const _0x461814 of _0x3073aa)_0x461814['detach']();});},_0x58c043=(_0x28545a,_0x3afb83)=>0x1==_0x28545a['length']&&0x1==_0x3afb83['length']&&_0x28545a[0x0]['end']['isEqual'](_0x3afb83[0x0]['start']),_0xa81884=(_0x378ba7,_0x2a10fc,_0x26c8fb,_0x62af0d)=>Ht(_0x378ba7,_0x2a10fc,_0x26c8fb,_0x62af0d,this['_model'])?[_0x378ba7,_0x2a10fc]:Ht(_0x2a10fc,_0x378ba7,_0x62af0d,_0x26c8fb,this['_model'])?[_0x2a10fc,_0x378ba7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3ab665),this['_defaultCallbacks']['set']('insertion:discard',_0x4a4faa),this['_defaultCallbacks']['set']('insertion:join',_0x58c043),this['_defaultCallbacks']['set']('insertion:chain',_0xa81884),this['_defaultCallbacks']['set']('deletion:accept',_0x4a4faa),this['_defaultCallbacks']['set']('deletion:discard',_0x3ab665),this['_defaultCallbacks']['set']('deletion:join',_0x58c043),this['_defaultCallbacks']['set']('deletion:chain',_0xa81884),this['_defaultCallbacks']['set']('formatInline:accept',_0x17afd8),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ab665),this['_defaultCallbacks']['set']('formatInline:join',_0x58c043),this['_defaultCallbacks']['set']('formatInline:chain',_0x3ab665),this['_defaultCallbacks']['set']('formatBlock:accept',_0x17afd8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3ab665),this['_defaultCallbacks']['set']('formatBlock:join',_0x58c043),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3ab665),this['_defaultCallbacks']['set']('attribute:accept',_0x3ab665),this['_defaultCallbacks']['set']('attribute:discard',(_0x48c17b,_0x25c684)=>{if(!_0x25c684)return;const _0x61f464=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x39a3b3=>{if(_0x25c684['key']==m)for(const _0x4cd89e of _0x48c17b){const _0x54d688=_0x4cd89e['start']['nodeAfter'],_0x515ea2=_0x25c684['oldValue'];_0x39a3b3['rename'](_0x54d688,_0x515ea2);}else{if(_0x61f464['_isBlockAttribute'](_0x25c684['key'])){for(const _0x42d0c6 of _0x48c17b)void 0x0!==_0x25c684['oldValue']?_0x39a3b3['setAttribute'](_0x25c684['key'],_0x25c684['oldValue'],_0x42d0c6['start']['nodeAfter']):_0x39a3b3['removeAttribute'](_0x25c684['key'],_0x42d0c6['start']['nodeAfter']);}else{for(const _0x351751 of _0x48c17b)_0x25c684['oldValue']?_0x39a3b3['setAttribute'](_0x25c684['key'],_0x25c684['oldValue'],_0x351751):_0x39a3b3['removeAttribute'](_0x25c684['key'],_0x351751);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x58c043);}}function Ot(_0x18325a,_0x36bb14,_0x2311c9){for(const _0x14f477 of _0x36bb14['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14f477['root']==_0x14f477)return!0x1;if(!_0x2311c9['containsItem'](_0x14f477))return!0x1;if(_0x18325a['isObject'](_0x14f477)||_0x18325a['isLimit'](_0x14f477))return!0x0;}return!0x1;}function Vt(_0x540a27){return _0x540a27['end']['parent']==_0x540a27['start']['nodeAfter']&&_0x540a27['end']['isAtStart'];}function Ut(_0xcefa87,_0x225100,_0x258f5f,_0x41d0b7){const _0x11b2d7=_0x28bb4b=>!_0x28bb4b['item']['is']('$textProxy')&&!_0x41d0b7['isObject'](_0x28bb4b['item']),_0x273f5d=_0xcefa87['start']['getLastMatchingPosition'](_0x11b2d7),_0x4e6791=_0xcefa87['end']['getLastMatchingPosition'](_0x11b2d7,{'direction':'backward'});return(!_0xcefa87['start']['isEqual'](_0x273f5d)||!_0xcefa87['end']['isEqual'](_0x4e6791))&&(_0x273f5d['isBefore'](_0x4e6791)?_0x258f5f['updateMarker'](_0x225100,{'range':_0x258f5f['createRange'](_0x273f5d,_0x4e6791)}):_0x258f5f['removeMarker'](_0x225100),!0x0);}function Gt(_0x4daf01){return _0x1f00d3(_0x4daf01);}function Ft(_0x4e2691){const _0x585f85=_0x4e2691['start']['nodeAfter'];return _0x585f85&&_0x585f85['is']('element');}function Pt(_0x29347a,_0x563992){return null==_0x29347a['end']['nodeBefore']&&_0x29347a['end']['parent']==_0x29347a['start']['nodeAfter']?Lt(_0x29347a['start']['nodeAfter'],_0x563992):_0x29347a;}function Lt(_0x3e0aa2,_0x33a482){const _0x2a9745=_0x33a482['schema']['isObject'](_0x3e0aa2)||_0x33a482['schema']['isSelectable'](_0x3e0aa2);return _0x33a482['createRange'](_0x33a482['createPositionAt'](_0x3e0aa2,'before'),_0x2a9745?_0x33a482['createPositionAfter'](_0x3e0aa2):_0x33a482['createPositionAt'](_0x3e0aa2,'end'));}function Ht(_0x4bea6d,_0x492209,_0x1abf0c,_0x33f4a8,_0x3b5b62){if(_0x4bea6d['next'])return!0x1;if(!Jt(_0x4bea6d,_0x492209))return!0x1;if(_0x1abf0c['end']['isEqual'](_0x33f4a8['start']))return!0x0;if(_0x4bea6d['type']!=_0x492209['type'])return!0x1;if(!_0x1abf0c['end']['isTouching'](_0x33f4a8['start']))return!0x1;const _0x1c73f5=_0x3b5b62['createRange'](_0x1abf0c['end'],_0x33f4a8['start'])['getWalker']();for(const _0x4d7c2a of _0x1c73f5)if(['elementStart','elementEnd']['includes'](_0x4d7c2a['type'])&&_0x3b5b62['schema']['isLimit'](_0x4d7c2a['item']))return!0x1;return!0x0;}function Jt(_0x526cdd,_0x28c1bd){if(!_0x526cdd['_isDataLoaded']||!_0x28c1bd['_isDataLoaded'])return!0x1;const _0x23a03d=new Set(Object['keys'](_0x526cdd['attributes'])),_0x38a0ab=new Set(Object['keys'](_0x28c1bd['attributes']));if(_0x23a03d['delete']('groupId'),_0x38a0ab['delete']('groupId'),0x0==_0x23a03d['size']&&0x0==_0x38a0ab['size'])return!0x0;if(_0x23a03d['size']!=_0x38a0ab['size'])return!0x1;const _0x50a639={..._0x526cdd['attributes']},_0x34d81d={..._0x28c1bd['attributes']};return delete _0x50a639['groupId'],delete _0x34d81d['groupId'],JSON['stringify'](_0x50a639)==JSON['stringify'](_0x34d81d);}function qt(_0x3b6861,_0x3c1ddc){const _0x56935d=zt(_0x3b6861['attributes']),_0x2c01b8=zt(_0x3c1ddc);if(!_0x3b6861['_isDataLoaded'])return!0x1;for(const _0x14a632 of Object['keys'](_0x2c01b8))if(!_0x2d0bd3(_0x56935d[_0x14a632],_0x2c01b8[_0x14a632]))return!0x1;return!0x0;}function zt(_0x2fd37a){const _0xd451cd=Object['assign']({},_0x2fd37a);return delete _0xd451cd['skipNestingCheck'],delete _0xd451cd['tablePasteChainId'],_0xd451cd;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x24d43d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17af52,_0x242c3c,_0x552ff5,_0x3017ae){super(),this['model']=_0x242c3c,this['view']=_0x552ff5,this['commentThreadController']=_0x3017ae,this['_editor']=_0x17af52,this['_acceptCommand']=_0x17af52['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17af52['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x597c80,_0xfd5259)=>_0x597c80||_0xfd5259),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2f38ea=>_0x2f38ea&&this['_editor']['model']['canEditAt'](_0x242c3c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2667e3=>_0x2667e3&&this['_editor']['model']['canEditAt'](_0x242c3c['getRanges']())),this['_pendingAction']=null,_0x552ff5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x552ff5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x552ff5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x552ff5,'change:isDirty',()=>{_0x552ff5['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x372a8d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x372a8d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2b67e8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x53d40d,_0x5712d7,_0x1d96d5,_0x20db3f){super(_0x53d40d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x21ceb7(_0x53d40d,o(_0x53d40d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5712d7['authoredAt']),this['bind']('authoredAt')['to'](_0x5712d7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x5712d7,'authoredAt',this,'descriptionParts',(_0x2ffd54,_0x2b5867,_0x8e7fc0)=>{const _0xd4e36f=_0x8e7fc0['map'](_0x4cacf7=>ls(_0x4cacf7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2ffd54-0x1,_0x5712d7['author']['name'],_0x2b5867?_0x20db3f['formatDateTime'](_0x2b5867):'',new DOMParser()['parseFromString'](_0xd4e36f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5739a4(),this['focusTracker']=new _0x3030b5(),this['keystrokes']=new _0xbd3c6f(),this['focusCycler']=new _0x3a278e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x531e89=>_0x531e89['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5712d7,this['_localUser']=_0x1d96d5,this['_config']=_0x20db3f,_0x20db3f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x17eb55(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f7a2a}=this['_config'];this['commentsListView']=new _0x4f7a2a(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x9fd9c=>_0x9fd9c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f7137,_0x58eaa5)=>_0x3f7137||!!_0x58eaa5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x33c816}=this['_config'],_0x4369d2=new _0x33c816(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x51c1f1=_0x4369d2['commentInputView'];return _0x4369d2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x51c1f1,'value',(_0x294e45,_0x3b8c24,_0x2b33ea)=>!!_0x2b33ea||_0x294e45&&!_0x3b8c24),_0x51c1f1['on']('submit',(_0x35441f,_0x1402fe)=>{this['fire']('addComment',_0x1402fe),_0x51c1f1['editor']['setData']('');}),_0x51c1f1['on']('cancel',()=>this['focus']()),_0x51c1f1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4369d2;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x70e698,_0x1963fe,_0xc9844d,_0x124cd4){super(_0x70e698,_0x1963fe,_0xc9844d,_0x124cd4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xc3e79=>_0xc3e79&&_0xc3e79[0x0]?_0xc3e79[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xf31b7e,_0x1f17e5)=>{let _0x1efb42='';for(const _0x405aa9 of _0xf31b7e)_0x1efb42+='<p>'+ls(_0x405aa9['content'],_0x405aa9['color'])+'</p>';return _0x1f17e5?_0x1efb42:_0x5ace9a(_0x1efb42,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x124cd4['SuggestionView'](_0x70e698,_0x1963fe,{'formatDateTime':_0x124cd4['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x335c48=this['bindTemplate'],_0xfde6d4=[this['suggestionView']];return this['commentsListView']&&_0xfde6d4['push'](this['commentsListView']),this['commentThreadInputView']&&_0xfde6d4['push'](this['commentThreadInputView']),_0xfde6d4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x335c48['if']('isActive','ck-suggestion-wrapper--active'),_0x335c48['to']('type',_0x3d19eb=>'ck-suggestion-'+_0x3d19eb),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x335c48['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xfde6d4};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x2b67e8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1411de,_0x113cfc,_0x50b180){super(_0x1411de),this['_model']=_0x113cfc,this['_config']=_0x50b180,this['set']('description',''),this['bind']('authoredAt')['to'](_0x113cfc),this['acceptButton']=this['_createButton'](o(_0x1411de,'Accept\x20suggestion'),_0x1fa4aa['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1411de,'Discard\x20suggestion'),_0x1fa4aa['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x36d0c1(_0x1411de,_0x113cfc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5739a4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3030b5(),this['keystrokes']=new _0xbd3c6f(),this['focusCycler']=new _0x3a278e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xc661a8=>_0xc661a8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e5ff2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e5ff2['innerHTML']=this['description'],this['on']('change:description',(_0x16c4d7,_0x17117d,_0x53799e)=>{_0x3e5ff2['innerHTML']=_0x53799e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3cba21=this['bindTemplate'],_0x498a2d=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x3cba21['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cba21['to']('authoredAt',_0x22df79=>this['_config']['formatDateTime'](_0x22df79))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x498a2d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x498a2d}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3cc180,_0x2caeee,_0x29f804,_0x3a50a0,_0x31ab30){const _0x2671ae=new _0xa49553(this['locale']);return _0x2671ae['set']({'label':_0x3cc180,'icon':_0x2caeee,'tooltip':!0x0,'tooltipPosition':_0x31ab30}),_0x2671ae['extendTemplate']({'attributes':{'class':_0x29f804}}),_0x2671ae['on']('execute',()=>{this['fire'](_0x3a50a0,this['_model']['id']);}),_0x2671ae;}['_setupKeyboardNavigation'](){const _0x485a01=this['element'];this['keystrokes']['listenTo'](_0x485a01);for(const _0x2510db of this['focusables'])this['focusTracker']['add'](_0x2510db['element']),this['keystrokes']['listenTo'](_0x2510db['element']);this['keystrokes']['set']('enter',(_0x46c5b0,_0xe5c1a4)=>{_0x485a01===_0x46c5b0['target']&&(this['focusCycler']['focusFirst'](),_0xe5c1a4());}),this['keystrokes']['set']('esc',(_0x40f3c9,_0x3c567)=>{_0x485a01!==_0x40f3c9['target']&&(this['focus'](),_0x3c567());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x15b66e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1eff54,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1760e5){super(_0x1760e5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x16a732=this['editor']['config'];_0x16a732['define']('trackChanges.SuggestionThreadView',re),_0x16a732['define']('trackChanges.SuggestionView',ce),_0x16a732['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x16a732['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x483f87,_0x4d6b7f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1da3c7,_0x2939e5]of this['_handleControllerBuffer']){const _0x441c2c=this['_suggestionToController']['has'](_0x1da3c7);_0x441c2c||_0x2939e5?_0x441c2c&&_0x2939e5&&this['_destroyController'](_0x1da3c7):this['_initializeController'](_0x1da3c7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x483f87,_0x4d6b7f);}['init'](){const _0x12cb42=this['editor'],_0x593ae7=_0x12cb42['plugins']['get']('TrackChangesEditing'),_0x24d051=_0x12cb42['plugins']['get']('Annotations'),_0x393596=_0x12cb42['plugins']['get']('EditorAnnotations'),_0x55c675=_0x12cb42['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x393596['addSourceCollector'](()=>{const _0x541859=[];for(const [_0x58ef9a,_0x4e8139]of Array['from'](this['_suggestionToController'])){const _0x485b3f=_0x58ef9a['getAllAdjacentSuggestions'](),_0xbe4011=[];for(const _0x1ddfea of _0x485b3f){if(!_0x1ddfea['isInContent'])continue;if(_0x1ddfea['isMultiRange']){_0xbe4011['push'](..._0x1ddfea['getRanges']());continue;}const _0x3ef04d=_0x1ddfea['getFirstRange']();if(_0xbe4011['length']>0x0){const _0x31834b=_0xbe4011[0x0]['getJoined'](_0x3ef04d);if(_0x31834b){_0xbe4011[0x0]=_0x31834b;continue;}}_0xbe4011['push'](_0x3ef04d);}_0x541859['push']([_0x4e8139['view'],_0xbe4011]);}return _0x541859;}),this['listenTo'](_0x593ae7,'suggestionLoaded',(_0x5a7bb9,_0x2ab94e)=>{this['listenTo'](_0x2ab94e,'change:previous',(_0x3d8fe9,_0x462c11,_0x401fbc,_0x5cf553)=>{_0x2ab94e['isInContent']&&(null==_0x401fbc?(this['_updateController'](_0x5cf553['head']),this['_handleSuggestionControllerDelayed'](_0x2ab94e,!0x1)):(this['_updateController'](_0x401fbc['head']),null==_0x5cf553&&this['_handleSuggestionControllerDelayed'](_0x2ab94e,!0x0)));}),null!==_0x2ab94e['previous']?this['_updateController'](_0x2ab94e['head']):this['_handleSuggestionControllerDelayed'](_0x2ab94e,!0x1);}),this['listenTo'](_0x593ae7,'suggestionUnloaded',(_0x8ed919,_0x2f1e32,_0x388037)=>{this['stopListening'](_0x2f1e32,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f1e32),this['_suggestionToController']['has'](_0x2f1e32)&&this['_destroyController'](_0x2f1e32),_0x388037&&this['_updateController'](_0x388037['head']);}),this['listenTo'](_0x593ae7,'suggestionChanged',(_0x5b647b,_0x5265db)=>{this['_updateController'](_0x5265db);}),this['listenTo'](_0x24d051,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x55c675,'addComment',(_0x104d2c,{threadId:_0x555599,isFromAdapter:_0x29b239})=>{if(_0x29b239||!_0x593ae7['hasSuggestion'](_0x555599))return;const _0x41f863=_0x593ae7['getSuggestion'](_0x555599);this['_suggestionToController']['get'](_0x41f863)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4b3c4b=this['editor']['plugins']['get']('Annotations'),_0x4d8b8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x587813=Array['from'](_0x4b3c4b['activeAnnotations'],_0x47e86e=>_0x47e86e['innerView'])['filter'](_0x451d20=>this['_viewToController']['has'](_0x451d20)),_0x2087c6=[];for(const _0x395ae0 of _0x587813){const _0x113a0c=this['_viewToController']['get'](_0x395ae0)['model']['getAllAdjacentSuggestions']();_0x2087c6['push'](..._0x113a0c['reduce']((_0x4edbab,_0x496414)=>[..._0x4edbab,..._0x496414['getMarkerNames']()],[]));}_0x4d8b8b['activeMarkers']=_0x2087c6;}['_addUIComponentsToFactory'](){const _0x409f8f=this['editor'],_0x43b634=_0x409f8f['locale'],_0x568f43=o(_0x43b634,'Track\x20changes'),_0x3bdafa=new Wt([{'type':'switchbutton','model':new _0x4fbd4d({'withText':!0x0,'isToggleable':!0x0,'label':_0x568f43,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4fbd4d({'withText':!0x0,'label':o(_0x43b634,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fbd4d({'withText':!0x0,'label':o(_0x43b634,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fbd4d({'withText':!0x0,'label':o(_0x43b634,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fbd4d({'withText':!0x0,'label':o(_0x43b634,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x273c5f of _0x3bdafa)if(me(_0x273c5f)){const _0x555365=_0x409f8f['commands']['get'](_0x273c5f['model']['commandName']);_0x273c5f['model']['bind']('isOn','isEnabled')['to'](_0x555365,'value','isEnabled');}_0x409f8f['ui']['componentFactory']['add']('trackChanges',_0x54829e=>this['_createToolbarButton'](_0x54829e,_0x3bdafa,_0x568f43)),_0x409f8f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x140ba8=>this['_createMenuBarMenu'](_0x140ba8,_0x3bdafa,_0x568f43));}['_createToolbarButton'](_0x5a0af1,_0x222a59,_0x382913){const _0x62aa58=Qt(_0x5a0af1,_0x1d63c1),_0x122454=this['editor']['commands']['get']('trackChanges');_0x62aa58['buttonView']['set']({'tooltip':_0x382913,'label':_0x382913,'icon':he}),_0x62aa58['buttonView']['bind']('isOn')['to'](_0x122454,'value'),_0x62aa58['buttonView']['on']('execute',()=>{_0x122454['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x62aa58,_0x222a59,{'role':'menu'});const _0x4fe024=[];for(const _0x2b9c3b of _0x222a59)me(_0x2b9c3b)&&_0x4fe024['push'](this['editor']['commands']['get'](_0x2b9c3b['model']['commandName']));const _0x58043e=_0x62aa58['buttonView'];return _0x58043e['actionView']['unbind']('isEnabled'),_0x58043e['arrowView']['unbind']('isEnabled'),_0x58043e['actionView']['bind']('isEnabled')['to'](_0x122454,'isEnabled'),_0x58043e['arrowView']['bind']('isEnabled')['toMany'](_0x4fe024,'isEnabled',(..._0x1334e8)=>_0x1334e8['some'](_0xff64b=>_0xff64b)),_0x62aa58['on']('execute',_0x457f05=>{this['editor']['execute'](_0x457f05['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x62aa58;}['_createMenuBarMenu'](_0x31b58d,_0x5d8e21,_0x67185b){const _0xd68223=new Yt(_0x31b58d),_0x17ab92=this['editor']['commands']['get']('trackChanges');_0xd68223['buttonView']['set']({'label':_0x67185b,'icon':he});const _0x449113=new Zt(_0x31b58d);for(const _0x14afc0 of _0x5d8e21){if('separator'==_0x14afc0['type']){_0x449113['items']['add'](new Xt(_0x31b58d));continue;}const _0x46614a=new te(_0x31b58d,_0xd68223),_0x291506=new _0xe3baa1(_0x31b58d),_0x54ccc9=_0x14afc0['model'];_0x291506['bind'](...Object['keys'](_0x54ccc9))['to'](_0x54ccc9),_0x291506['delegate']('execute')['to'](_0xd68223),_0x291506['on']('execute',()=>{this['editor']['execute'](_0x54ccc9['commandName']),this['editor']['editing']['view']['focus']();}),_0x46614a['children']['add'](_0x291506),_0x449113['items']['add'](_0x46614a);}return _0xd68223['bind']('isEnabled')['to'](_0x17ab92,'isEnabled'),_0xd68223['panelView']['children']['add'](_0x449113),_0xd68223;}['_initializeController'](_0x452066){const _0x3e4882=this['editor'],_0x1eda07=_0x3e4882['config'],_0x268ec1=_0x3e4882['plugins']['get']('Annotations'),_0x5b9550=_0x3e4882['plugins']['get']('CommentsRepository'),_0x182fcc=_0x3e4882['plugins']['get']('EditorAnnotations'),_0x57bbf4=_0x3e4882['plugins']['get'](_0x1eff54)['me'],_0x451773=_0x1eda07['get']('trackChanges')['SuggestionThreadView'],_0x219847=_0x1eda07['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x10accc,CommentThreadInputView:_0x139e2c}=_0x3e4882['plugins']['get']('CommentsUI');let _0x1bdd76,_0x578c74,_0x396ca1;this['_annotationViews']['has'](_0x452066['id'])?(_0x578c74=this['_annotationViews']['get'](_0x452066['id']),_0x1bdd76=_0x578c74['mainView']):(_0x1bdd76=new _0x451773(_0x3e4882['locale'],_0x452066,_0x57bbf4,{'disableComments':this['_disableComments'],'editorConfig':_0x1eda07['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1eda07['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1eda07['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1eda07['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x101eba(_0x1eda07['get']('locale')),'CommentView':_0x1eda07['get']('comments')['CommentView'],'CommentsListView':_0x10accc,'CommentThreadInputView':_0x139e2c,'SuggestionView':_0x219847}),_0x1bdd76['suggestionView']['acceptButton']['on']('execute',()=>{_0x3e4882['editing']['view']['focus']();}),_0x1bdd76['suggestionView']['discardButton']['on']('execute',()=>{_0x3e4882['editing']['view']['focus']();}),_0x578c74=_0x268ec1['createAnnotationView'](this['editor']['locale'],_0x1bdd76),_0x578c74['bind']('isDirty')['to'](_0x1bdd76,'isDirty'),_0x578c74['bind']('length')['to'](_0x1bdd76),_0x578c74['bind']('type')['to'](_0x1bdd76,'type',_0x22b309=>'suggestion-'+_0x22b309),_0x1bdd76['on']('escape',()=>{_0x396ca1['fire']('escape');}),this['_annotationViews']['set'](_0x452066['id'],_0x578c74));const _0x239615=_0x5b9550['createCommentThreadController'](_0x452066['commentThread'],_0x1bdd76),_0x2defaf=new ae(_0x3e4882,_0x452066,_0x1bdd76,_0x239615),_0x5d8c0a=_0x452066['getAllAdjacentSuggestions']()['filter'](_0x54b7c5=>_0x54b7c5['isInContent']);_0x1bdd76['descriptionParts']=_0x3e4882['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5d8c0a),this['_suggestionToController']['set'](_0x452066,_0x2defaf),this['_viewToController']['set'](_0x1bdd76,_0x2defaf),_0x396ca1=_0x268ec1['createAnnotation']({'view':_0x578c74,'target':()=>{const _0x22943e=[],_0x12edcd=_0x452066['getAllAdjacentSuggestions']()['filter'](_0x2b45a3=>_0x2b45a3['isInContent']);for(const _0xec28b3 of _0x12edcd)_0x22943e['push'](..._0xec28b3['getMarkers']());return _0x367d52(_0x3e4882['editing'],_0x22943e);},'type':()=>'suggestion-'+_0x2defaf['view']['type']}),_0x5b9550['_bindAnnotationToEditors'](_0x1bdd76,_0x396ca1),_0x268ec1['add'](_0x396ca1),_0x182fcc['registerAnnotation'](_0x396ca1);}['_destroyController'](_0x5a10e9){const _0x317e38=this['editor']['plugins']['get']('CommentsRepository'),_0x48b858=this['editor']['plugins']['get']('Annotations'),_0x1b24e0=this['_suggestionToController']['get'](_0x5a10e9),_0xd88505=_0x1b24e0['view'],_0x3cfe96=_0x48b858['getByInnerView'](_0xd88505);_0x317e38['_unbindEditors'](_0xd88505),_0x3cfe96&&_0x48b858['remove'](_0x3cfe96),this['_suggestionToController']['delete'](_0x5a10e9),this['_viewToController']['delete'](_0xd88505),_0x1b24e0['destroy']();}['_updateController'](_0x15740c){if(!_0x15740c['isInContent']||!this['_suggestionToController']['has'](_0x15740c))return;const _0x260183=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7e1d1d=this['_suggestionToController']['get'](_0x15740c),_0xfeac66=_0x15740c['getAllAdjacentSuggestions']();_0x7e1d1d['view']['descriptionParts']=_0x260183['descriptionFactory']['getDescriptions'](_0xfeac66);}['destroy'](){for(const _0x1b001f of this['_suggestionToController']['keys']())this['_destroyController'](_0x1b001f);for(const _0xa209e4 of this['_annotationViews']['values']())_0xa209e4['mainView']['destroy']();super['destroy']();}}function me(_0x1224f4){return'model'in _0x1224f4;}class k extends _0x15b66e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x54873f){this['editor']['plugins']['get'](p)['adapter']=_0x54873f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x256f7c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x256f7c);}['getSuggestions']({skipNotAttached:_0x137258=!0x1,toJSON:_0x3ab1da=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x137258,'toJSON':_0x3ab1da});}['getSuggestion'](_0x2ae4af){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2ae4af);}}const T=['Pagination'];class P extends _0x15b66e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x593709=this['editor'];if(_0x593709['config']['define']('trackChangesData.editorCreator',_0x1a3d1a=>{const _0x11d7cd=_0x593709['model']['document']['getRootNames']()['reduce']((_0x35cb84,_0x54a054)=>(_0x35cb84[_0x54a054]='',_0x35cb84),{});return _0x593709['constructor']['create'](_0x11d7cd,_0x1a3d1a);}),'function'!=typeof _0x593709['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ee368('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x22471c){return N(this['editor'],!0x0,_0x22471c);}['getDataWithDiscardedSuggestions'](_0x58f804){return N(this['editor'],!0x1,_0x58f804);}}class D extends _0x15b66e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4cfc7d){super(_0x4cfc7d),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3c38e5){return void 0x0!==_0x3c38e5['getRootsAttributes'];}async function N(_0xb57ac1,_0x228419,_0x457fad){const _0x3d02da=_0x500196(_0xb57ac1,T);_0x3d02da['plugins']['push'](p,D),_0x3d02da['rootsAttributes']=v(_0xb57ac1)?_0xb57ac1['getRootsAttributes']():void 0x0;const _0x9608fc=document['createDocumentFragment'](),_0x13f60e=_0xb57ac1['config']['get']('trackChangesData')['editorCreator'],_0x5c4e80=await _0x13f60e(_0x3d02da,()=>function(_0x211f5c){const _0x28d009=document['createElement']('div');return _0x211f5c['appendChild'](_0x28d009),_0x28d009;}(_0x9608fc));!function(_0x3c9589,_0x489d9f){const _0x1a486b=_0x3c9589['model']['document']['getRootNames']()['reduce']((_0x242bd6,_0x1cf2c0)=>(_0x242bd6[_0x1cf2c0]=_0x3c9589['data']['get']({'rootName':_0x1cf2c0}),_0x242bd6),{}),_0x3ea82c=_0x3c9589['plugins']['get']('Users')['users']['map'](_0x3d6268=>({'id':_0x3d6268['id'],'name':_0x3d6268['name']})),_0x579ea9=_0x3c9589['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5f1786=_0x3c9589['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4060c5=_0x489d9f['plugins']['get']('Users'),_0x4393ef=_0x489d9f['plugins']['get']('TrackChangesEditing'),_0x27cedc=_0x489d9f['plugins']['get']('CommentsRepository');for(const _0x1c72f8 of _0x27cedc['getCommentThreads']())_0x1c72f8['remove']();for(const _0x1407f6 of _0x3ea82c)_0x4060c5['getUser'](_0x1407f6['id'])||_0x4060c5['addUser'](_0x1407f6);_0x4060c5['me']||_0x4060c5['useAnonymousUser']();for(const _0x14191a of _0x5f1786)_0x27cedc['addCommentThread'](_0x14191a);for(const _0x35c18e of _0x579ea9)_0x4393ef['addSuggestionData'](_0x35c18e);_0x489d9f['data']['set'](_0x1a486b);}(_0xb57ac1,_0x5c4e80),_0x5c4e80['execute'](_0x228419?'acceptAllSuggestions':'discardAllSuggestions');const _0x49e5c4=v(_0x5c4e80)?_0x5c4e80['getFullData'](_0x457fad):_0x5c4e80['data']['get'](_0x457fad);return await _0x5c4e80['destroy'](),_0x49e5c4;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};