@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240424.0 → 0.0.0-nightly-20240426.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +23 -0
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +23 -0
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +23 -0
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +23 -0
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +23 -0
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +23 -0
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +23 -0
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +23 -0
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +23 -0
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +23 -0
  23. package/dist/translations/en.umd.js +23 -0
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +23 -0
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +23 -0
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +23 -0
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +23 -0
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +23 -0
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +23 -0
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +23 -0
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +23 -0
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +23 -0
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +23 -0
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +23 -0
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +23 -0
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +23 -0
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +23 -0
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +23 -0
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +23 -0
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +23 -0
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +23 -0
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +23 -0
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +23 -0
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +23 -0
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +23 -0
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +23 -0
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +23 -0
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +23 -0
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +23 -0
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +23 -0
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +23 -0
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +23 -0
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +23 -0
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +23 -0
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +23 -0
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +23 -0
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +23 -0
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +23 -0
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +23 -0
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +23 -0
  98. package/package.json +3 -3
  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/multilevellist.js +1 -1
  136. package/src/integrations/pagebreak.js +1 -1
  137. package/src/integrations/paragraph.js +1 -1
  138. package/src/integrations/removeformat.js +1 -1
  139. package/src/integrations/restrictededitingmode.js +1 -1
  140. package/src/integrations/shiftentercommand.js +1 -1
  141. package/src/integrations/standardeditingmode.js +1 -1
  142. package/src/integrations/style.js +1 -1
  143. package/src/integrations/table.js +1 -1
  144. package/src/integrations/tablecaption.js +1 -1
  145. package/src/integrations/tableclipboard.js +1 -1
  146. package/src/integrations/tablecolumnresize.js +1 -1
  147. package/src/integrations/tableheadings.js +1 -1
  148. package/src/integrations/tablemergesplit.js +1 -1
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.js +1 -1
  151. package/src/integrations/template.js +1 -1
  152. package/src/integrations/title.js +1 -1
  153. package/src/integrations/undo.js +1 -1
  154. package/src/integrations/utils.js +1 -1
  155. package/src/suggestion.js +1 -1
  156. package/src/suggestiondescriptionfactory.js +1 -1
  157. package/src/trackchanges.js +1 -1
  158. package/src/trackchangesdata.js +1 -1
  159. package/src/trackchangesediting.js +1 -1
  160. package/src/trackchangesui.js +1 -1
  161. package/src/ui/suggestioncontroller.js +1 -1
  162. package/src/ui/view/basesuggestionthreadview.js +1 -1
  163. package/src/ui/view/suggestionthreadview.js +1 -1
  164. package/src/utils/common-translations.js +1 -1
  165. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x4de685,PendingActions as _0x4a11f7,icons as _0x30119b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a5c42,ObservableMixin as _0x2ed6b7,uid as _0x2c7d4a,insertToPriorityArray as _0x1003ed,priorities as _0x1ba778,logWarning as _0x470b78,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x57fb33,View as _0x36a6bf,ButtonView as _0x17c31e,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x194443,hashObject as _0x59c610,surroundingMarkersDetector as _0x55af74,trimHtml as _0x105c2b,UserView as _0x44bf95,getDateTimeFormatter as _0x3da504,getAllMarkersDomElementsSorted as _0x438fce,sanitizeEditorConfig as _0x56a645}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x15c3f1,LiveRange as _0x3d4179,LivePosition as _0x43ced0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x56a69a,toWidget as _0x48624}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x241d3f,set as _0x73c0d9,isEqual as _0x218615,unset as _0x76b095,omit as Bt}from'lodash-es';import{Delete as _0x24d530,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5ec658,ShiftEnter as _0x39eacd}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x2619ce of this['editor']['commands']['commands']())_0x2619ce['affectsData']&&!this['_enabledCommands']['has'](_0x2619ce)&&_0x2619ce['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d8453 of this['editor']['commands']['commands']())_0x1d8453['affectsData']&&!this['_enabledCommands']['has'](_0x1d8453)&&_0x1d8453['clearForceDisabled']('TrackChangesCommand');}constructor(_0x1176b9,_0x405a41){super(_0x1176b9),this['_enabledCommands']=_0x405a41,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9b53da){const _0x4195e7=this['_suggestions']['get'](_0x9b53da);if(!_0x4195e7)throw new _0x2a5c42('track-changes-accept-suggestion-not-found',this);const _0x189ec5=_0x4195e7['getRanges']();this['editor']['model']['canEditAt'](_0x189ec5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4195e7);}constructor(_0x53002a,_0x3dc4b4){super(_0x53002a),this['_suggestions']=_0x3dc4b4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x211177){const _0x18b4cb=this['_suggestions']['get'](_0x211177);if(!_0x18b4cb)throw new _0x2a5c42('track-changes-discard-suggestion-not-found',this);const _0x20cc7f=_0x18b4cb['getRanges']();this['editor']['model']['canEditAt'](_0x20cc7f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x18b4cb);}constructor(_0x17d74f,_0x52e582){super(_0x17d74f),this['_suggestions']=_0x52e582,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x49f72f){return _0x49f72f['sort']((_0x3a043c,_0x110965)=>'deletion'==_0x3a043c['type']&&'deletion'!=_0x110965['type']?-0x1:'deletion'!=_0x3a043c['type']&&'deletion'==_0x110965['type']?0x1:0x0);}function to(_0x170694,_0x58c4e5){let _0x18b4cf,_0x216f68=0x0;const _0x45e901=[],_0x2102a5=_0x58c4e5['schema'];for(;_0x216f68<_0x170694['length'];){const _0x36e694=_0x170694[_0x216f68],_0x1d5e52=_0x170694[_0x216f68+0x1];_0x18b4cf||(_0x18b4cf=_0x58c4e5['createPositionBefore'](_0x36e694)),co(_0x58c4e5,_0x36e694,_0x1d5e52)||(_0x45e901['push'](_0x58c4e5['createRange'](_0x18b4cf,_0x2102a5['isObject'](_0x36e694)?_0x58c4e5['createPositionAfter'](_0x36e694):_0x58c4e5['createPositionAt'](_0x36e694,'end'))),_0x18b4cf=null),_0x216f68++;}return _0x45e901;}function co(_0x2617b7,_0x36c136,_0x2ca0c8){if(!_0x2ca0c8)return!0x1;const _0x1f3c14=_0x2617b7['createPositionAfter'](_0x36c136),_0x333f46=_0x2617b7['createPositionBefore'](_0x2ca0c8);return _0x1f3c14['isTouching'](_0x333f46);}function rs(_0x37fddb,_0x461155,_0x51230b){for(;_0x51230b['length'];){const _0x58316b=_0x51230b['splice'](0x0,0x64);_0x37fddb['change'](()=>{for(const _0x12507d of _0x58316b)_0x12507d['isInContent']&&_0x461155['execute'](_0x12507d['id']);});}}class x extends ts{['refresh'](){const _0x30865e=Array['from'](this['_suggestions']['values']())['some'](_0x29f4f8=>_0x29f4f8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x30865e;}['execute'](){const _0x383080=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2484a8 of _0x383080){const _0x2b8074=_0x2484a8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b8074))return;}rs(this['editor']['model'],this['_command'],_0x383080);}constructor(_0x155553,_0x10f052,_0x472aa6){super(_0x155553),this['_command']=_0x10f052,this['_suggestions']=_0x472aa6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x3ee6f=this['editor']['model']['document']['selection'],_0x59f6ab=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x60627,_0x25ebf2){const _0xcc3842=Array['from'](_0x60627['getRanges']()),_0x2553b5=new Set();for(const _0x518353 of _0x25ebf2)if(_0x518353['isInContent']){for(const _0x2f2420 of _0xcc3842)for(const _0x45d80f of _0x518353['getRanges']())(_0x2f2420['isIntersecting'](_0x45d80f)||_0x60627['isCollapsed']&&!_0x518353['isMultiRange']&&_0x518353['next']&&_0x45d80f['end']['isTouching'](_0x2f2420['start']))&&_0x2553b5['add'](_0x518353);}return _0x2553b5;}(_0x3ee6f,_0x59f6ab),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x9d53ba=ss(Array['from'](this['_selectedSuggestions']));for(const _0x18daeb of _0x9d53ba){const _0x9dc5a7=_0x18daeb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9dc5a7))return;}rs(this['editor']['model'],this['_command'],_0x9d53ba);}constructor(_0x2ee4ad,_0x1a1417,_0x2c8b40){super(_0x2ee4ad),this['_command']=_0x1a1417,this['_suggestions']=_0x2c8b40,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x2ed6b7(){get['head'](){let _0x47ffad=this;for(;_0x47ffad['previous'];)_0x47ffad=_0x47ffad['previous'];return _0x47ffad;}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'](_0x5a72f0){this['_markerNames']['add'](_0x5a72f0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xe58cce=>this['_model']['markers']['get'](_0xe58cce))['filter'](_0x57470b=>_0x57470b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x13bab5=>{for(const _0x876772 of this['getMarkers']())_0x13bab5['removeMarker'](_0x876772);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c81ef){this['_model']['change'](_0x46e918=>{_0x46e918['removeMarker'](_0x1c81ef);}),this['_markerNames']['delete'](_0x1c81ef);}['addRange'](_0x5a3104){const _0x5ba472='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5ba472),this['_model']['change'](_0x2cc530=>{_0x2cc530['addMarker'](_0x5ba472,{'range':_0x5a3104,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1e3b1a){for(const _0x44d4c5 of this['getRanges']())if(_0x44d4c5['isIntersecting'](_0x1e3b1a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb261a=>_0xb261a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f1470,_0x383c18)=>[..._0x1f1470,..._0x383c18['getItems']()],[]);}['getFirstRange'](){var _0xea36da;return(null===(_0xea36da=this['getFirstMarker']())||void 0x0===_0xea36da?void 0x0:_0xea36da['getRange']())||null;}['getContainedElement'](){const _0x790451=this['getRanges']();if(0x1!=_0x790451['length'])return null;const _0x385999=_0x790451[0x0],_0x549d1c=_0x385999['start']['nodeAfter'],_0x4d802e=_0x385999['end']['nodeBefore'];return _0x549d1c instanceof _0x15c3f1?_0x549d1c!=_0x4d802e?null:_0x549d1c: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 _0x18e9e2=[];let _0x3afb10=this['head'];for(;_0x3afb10;)_0x18e9e2['push'](_0x3afb10),_0x3afb10=_0x3afb10['next'];return _0x18e9e2;}['setAttribute'](_0x59fca1,_0x537669){const _0x224ae2=_0x241d3f(this['attributes']);_0x73c0d9(_0x224ae2,_0x59fca1,_0x537669),_0x218615(_0x224ae2,this['attributes'])||(this['attributes']=_0x224ae2,this['_onAttributesChange'](_0x224ae2));}['removeAttribute'](_0x5c3ef0){const _0x6713a8=_0x241d3f(this['attributes']);_0x76b095(_0x6713a8,_0x5c3ef0),_0x218615(_0x6713a8,this['attributes'])||(this['attributes']=_0x6713a8,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 _0x2c7d4a()['substr'](0x1,0x5);}constructor(_0x10c1ba,_0x79eda9){super(),this['_isDataLoaded']=!0x1,this['id']=_0x79eda9['id'],this['type']=_0x79eda9['type'],this['subType']=_0x79eda9['subType']||null,this['author']=_0x79eda9['author'],this['creator']=_0x79eda9['creator']||_0x79eda9['author'],this['isExternal']=Boolean(_0x79eda9['attributes']&&_0x79eda9['attributes']['@external']),this['data']=null,this['_model']=_0x10c1ba,this['_onAccept']=_0x79eda9['onAccept'],this['_onDiscard']=_0x79eda9['onDiscard'],this['_onAttributesChange']=_0x79eda9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x79eda9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x316087,_0x255719,_0x305cfb){const t=_0x316087['t'];switch(_0x255719){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',_0x305cfb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x305cfb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x305cfb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x305cfb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x305cfb);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',_0x305cfb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x305cfb);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',_0x305cfb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x305cfb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x305cfb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x305cfb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x305cfb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x305cfb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x305cfb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x305cfb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x305cfb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x305cfb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x305cfb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x305cfb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x305cfb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x305cfb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x305cfb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x305cfb);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'},_0x305cfb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x305cfb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x305cfb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x305cfb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x305cfb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x305cfb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x305cfb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x305cfb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x305cfb);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'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x305cfb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x305cfb);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x305cfb);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'},_0x305cfb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x255719;}}class f{['getDescriptions'](_0x7d829e){const _0x5deaa0=[],_0x3336e1=new Set(),_0x38e44a=new Set();for(let _0x14006a=0x0;_0x14006a<_0x7d829e['length'];_0x14006a++){const _0x5e4c8a=_0x7d829e[_0x14006a];if(!_0x5e4c8a['isInContent'])continue;const _0x335499=this['_handleCustomCallbackDescription'](_0x5e4c8a);if(_0x335499){if(null!=_0x5e4c8a['subType']){if(_0x3336e1['has'](_0x5e4c8a['subType']))continue;_0x3336e1['add'](_0x5e4c8a['subType']);}_0x5deaa0['push'](_0x335499);}else{if('attribute'!=_0x5e4c8a['type'])'insertion'!=_0x5e4c8a['type']&&'deletion'!=_0x5e4c8a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5deaa0,_0x5e4c8a,_0x7d829e[_0x14006a+0x1]);else{const _0x10997f=_0x5e4c8a['data']['key'];if(_0x38e44a['has'](_0x10997f))continue;_0x38e44a['add'](_0x5e4c8a['data']['key']),_0x10997f==m?this['_handleRenameSuggestionDescription'](_0x5deaa0,_0x5e4c8a):this['_handleAttributeSuggestionDescription'](_0x5deaa0,_0x5e4c8a);}}}return this['_resolveDescriptionItems'](_0x5deaa0);}['registerDescriptionCallback'](_0x3f0cf1){this['_customCallbacks']['push'](_0x3f0cf1);}['registerElementLabel'](_0x3d5ddb,_0x1b21d3,_0x2c9a6c=_0x1ba778['normal']){'function'==typeof _0x3d5ddb?_0x1003ed(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3d5ddb,'label':_0x1b21d3,'priority':_0x2c9a6c}):this['_itemLabels']['set'](_0x3d5ddb,_0x1b21d3);}['registerAttributeLabel'](_0x580e62,_0x13422f){this['_attributeLabels']['set'](_0x580e62,_0x13422f);}['getItemLabel'](_0x3fb339,_0x32f28f=0x1){let _0x4bc7a0;for(const _0xda8745 of this['_itemLabelsCallbacks'])if(_0xda8745['matchingCallback'](_0x3fb339)){_0x4bc7a0=_0xda8745['label'];break;}return _0x4bc7a0||(_0x4bc7a0=this['_itemLabels']['get'](_0x3fb339['name'])),_0x4bc7a0?_0x4bc7a0(_0x32f28f):0x1!==_0x32f28f?_0x32f28f+'\x20'+_0x3fb339['name']+'s':''+_0x3fb339['name'];}['_addDescriptionItems'](_0x5e59cf,_0x5ab02f){const _0x3bd26c=_0x5ab02f['getFirstRange']()['getWalker'](),_0x138e83='insertion'==_0x5ab02f['type']?'add':'remove';for(const _0x3e6a33 of _0x3bd26c){const _0x5300ff=_0x3e6a33['item'],_0x5ac8dc=_0x5e59cf[_0x5e59cf['length']-0x1];if(_0x5300ff['is']('$textProxy'))_0x5ac8dc&&_0x5ac8dc['type']['indexOf']('Container')>-0x1&&_0x5e59cf['pop'](),_0x5ac8dc&&'text'==_0x5ac8dc['type']?_0x5ac8dc[_0x138e83]+=_0x5300ff['data']:_0x5e59cf['push']({'type':'text','add':'add'==_0x138e83?_0x5300ff['data']:'','remove':'remove'==_0x138e83?_0x5300ff['data']:''});else{if(this['_schema']['isObject'](_0x5300ff)){const _0x1eb97a=_0x5300ff;if(_0x5ac8dc&&_0x5ac8dc['type']['indexOf']('Container')>-0x1&&_0x5e59cf['pop'](),'elementEnd'==_0x3e6a33['type'])continue;_0x5ac8dc&&_0x5ac8dc['type']==_0x138e83+'Object'&&_0x5ac8dc['element']['name']==_0x1eb97a['name']?_0x5ac8dc['quantity']++:_0x5e59cf['push']({'type':_0x138e83+'Object','element':_0x1eb97a,'quantity':0x1}),_0x3bd26c['skip'](_0x593590=>!('elementEnd'==_0x593590['type']&&_0x593590['item']==_0x5300ff));}else{if(this['_schema']['checkChild'](_0x5300ff,'$text')||_0x5300ff['is']('element','softBreak')){const _0x14db8d=_0x5300ff;if('add'==_0x138e83&&'elementStart'==_0x3e6a33['type']||'remove'==_0x138e83&&'elementEnd'==_0x3e6a33['type'])continue;if(_0x5ac8dc&&-0x1==_0x5ac8dc['type']['indexOf']('Container')){'text'==_0x5ac8dc['type']&&(_0x5ac8dc[_0x138e83]+='\x0a');continue;}let _0x47eef6;if(_0x47eef6='add'==_0x138e83?_0x14db8d['nextSibling']&&!this['_schema']['isObject'](_0x14db8d['nextSibling'])?_0x14db8d['nextSibling']:null:_0x14db8d['previousSibling']&&!this['_schema']['isObject'](_0x14db8d['previousSibling'])?_0x14db8d['previousSibling']:null,_0x14db8d['isEmpty']||_0x47eef6&&_0x47eef6['isEmpty']){const _0xfd467a=_0x47eef6&&_0x47eef6['isEmpty']?_0x47eef6:_0x14db8d;_0x5ac8dc&&_0x5ac8dc['type']==_0x138e83+'EmptyContainer'&&_0x5ac8dc['element']['name']==_0xfd467a['name']?_0x5ac8dc['quantity']++:_0x5e59cf['push']({'type':_0x138e83+'EmptyContainer','element':_0xfd467a,'quantity':0x1});}else _0x5e59cf['push']({'type':_0x138e83+'Container','element':_0x14db8d});}}}}}['_resolveDescriptionItems'](_0x5e66a5){const _0x187763=this['_locale'],_0x19a5b7=[],_0x3f9f09=[],_0x4f1fa4=[];for(const _0x56ea96 of _0x5e66a5)switch(_0x56ea96['type']){case'text':if(_0x56ea96['add']=_0x56ea96['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x56ea96['remove']=_0x56ea96['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x56ea96['add']&&''!=_0x56ea96['remove']){_0x19a5b7['push']({'type':'replace','content':o(_0x187763,'REPLACE_TEXT',['\x22'+_0x56ea96['remove']+'\x22','\x22'+_0x56ea96['add']+'\x22'])});continue;}if(null!=_0x56ea96['add']['match'](/^ +$/)){_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Insert:*\x20%0',o(_0x187763,'ELEMENT_SPACE',_0x56ea96['add']['length']))});continue;}if(null!=_0x56ea96['remove']['match'](/^ +$/)){_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Remove:*\x20%0',o(_0x187763,'ELEMENT_SPACE',_0x56ea96['remove']['length']))});continue;}if(''!=_0x56ea96['add']){_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Insert:*\x20%0','\x22'+_0x56ea96['add']+'\x22')});continue;}_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Remove:*\x20%0','\x22'+_0x56ea96['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Insert:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Remove:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'addContainer':_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Split:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'removeContainer':_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Merge:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'addFormat':_0x3f9f09['push'](_0x56ea96['key']);continue;case'removeFormat':_0x4f1fa4['push'](_0x56ea96['key']);continue;default:_0x19a5b7['push'](_0x56ea96);}if(_0x3f9f09['length']){const _0x14a25e=_0x3f9f09['map'](_0xe673cb=>this['_attributeLabels']['has'](_0xe673cb)?this['_attributeLabels']['get'](_0xe673cb):_0xe673cb)['join'](',\x20');_0x19a5b7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x14a25e)});}if(_0x4f1fa4['length']){const _0x36b00a=_0x4f1fa4['map'](_0x248e11=>this['_attributeLabels']['has'](_0x248e11)?this['_attributeLabels']['get'](_0x248e11):_0x248e11)['join'](',\x20');_0x19a5b7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x36b00a)});}return _0x19a5b7;}['_handleCustomCallbackDescription'](_0x4301bf){for(const _0x2d7432 of this['_customCallbacks']){const _0x338d36=_0x2d7432(_0x4301bf);if(_0x338d36&&'type'in _0x338d36)return _0x338d36;}}['_handleAttributeSuggestionDescription'](_0x296d78,_0x5f483b){const _0x4f1833=_0x5f483b['data'],_0x2ae577=void 0x0===_0x4f1833['newValue']?'removeFormat':'addFormat';_0x296d78['push']({'type':_0x2ae577,'key':_0x4f1833['key']});}['_handleRenameSuggestionDescription'](_0x45a578,_0x2cd5bf){_0x45a578['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2cd5bf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x346939,_0x35260b,_0x14e8cc){if(this['_addDescriptionItems'](_0x346939,_0x35260b),_0x14e8cc&&_0x14e8cc['getFirstRange']()&&!_0x35260b['getFirstRange']()['end']['isEqual'](_0x14e8cc['getFirstRange']()['start'])){const _0x38e017=_0x346939[_0x346939['length']-0x1],_0x40ad57='insertion'==_0x35260b['type']?'add':'remove';_0x38e017&&'text'==_0x38e017['type']&&(_0x38e017[_0x40ad57]+='\x0a');}}constructor(_0x18d945,_0x3e22cd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x18d945,this['_locale']=_0x3e22cd;}}class E extends _0x4de685{['afterInit'](){const _0x23a251=this['editor'],_0x50b17c=_0x23a251['plugins']['get']('TrackChangesEditing');_0x23a251['commands']['get']('showAIAssistant')&&_0x50b17c['enableCommand']('showAIAssistant');}}class V extends _0x4de685{['afterInit'](){const _0x2c3968=this['editor'],_0x130843=_0x2c3968['locale'];if(!_0x2c3968['plugins']['has']('AlignmentEditing'))return;const _0x43bca1=_0x2c3968['plugins']['get']('TrackChangesEditing');_0x43bca1['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x43bca1['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x130843,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5beef3=this['editor'],_0x756647=_0x5beef3['locale'];_0x5beef3['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xcbef17=>{if('formatBlock'!=_0xcbef17['type'])return;const {data:_0x487e9a}=_0xcbef17;if(_0x487e9a&&'alignment'==_0x487e9a['commandName']){const _0x496764=_0x487e9a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x756647,'*Format:*\x20%0',function(_0x3e2f84){switch(_0x3e2f84){case'left':return o(_0x756647,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x756647,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x756647,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x756647,'FORMAT_JUSTIFY_TEXT');}}(_0x496764))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4de685{['afterInit'](){const _0x437ff3=this['editor'],_0x87a87c=_0x437ff3['plugins']['get']('TrackChangesEditing'),_0x20c77a=_0x437ff3['locale'];for(const _0x531446 of ti){if(!_0x437ff3['plugins']['has'](_0x531446))continue;const _0xc442fa=_0x531446['slice'](0x0,-0x7)['toLowerCase'](),_0x52ee9b='FORMAT_'+_0xc442fa['toUpperCase']();_0x87a87c['_enableDefaultAttributesIntegration'](_0xc442fa,[_0xc442fa]),_0x87a87c['_descriptionFactory']['registerAttributeLabel'](_0xc442fa,o(_0x20c77a,_0x52ee9b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57d48b=this['editor'],_0x49f9e6=_0x57d48b['locale'],_0x5e20d9=_0x57d48b['plugins']['get']('TrackChangesEditing');function _0x258144(_0x5f2d53,_0x39102f){_0x5e20d9['_descriptionFactory']['registerDescriptionCallback'](_0x3e2a95=>{if('formatInline'!=_0x3e2a95['type'])return;const {data:_0x326c22}=_0x3e2a95;return _0x326c22&&_0x326c22['commandName']===_0x5f2d53?_0x326c22['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49f9e6,'*Format:*\x20%0',_0x39102f)}:{'type':'format','content':o(_0x49f9e6,'*Remove\x20format:*\x20%0',_0x39102f)}:void 0x0;});}_0x258144('bold',o(_0x49f9e6,'FORMAT_BOLD')),_0x258144('italic',o(_0x49f9e6,'FORMAT_ITALIC')),_0x258144('underline',o(_0x49f9e6,'FORMAT_UNDERLINE')),_0x258144('code',o(_0x49f9e6,'FORMAT_CODE')),_0x258144('strikethrough',o(_0x49f9e6,'FORMAT_STRIKETHROUGH')),_0x258144('subscript',o(_0x49f9e6,'FORMAT_SUBSCRIPT')),_0x258144('superscript',o(_0x49f9e6,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4de685{['afterInit'](){const _0x5a5963=this['editor'],_0x34b356=_0x5a5963['locale'];if(!_0x5a5963['plugins']['has']('BlockQuoteEditing'))return;const _0x3cfbc2=_0x5a5963['plugins']['get']('TrackChangesEditing'),_0x280e45=this['editor']['commands']['get']('blockQuote');_0x3cfbc2['enableCommand']('blockQuote',(_0x44ea60,_0x850676={})=>{const _0x413bcb=this['editor']['model']['document']['selection'],_0x4039d5=_0x850676&&void 0x0!==_0x850676['forceValue']?_0x850676['forceValue']:!_0x280e45['value'];let _0xfbf1b7=[];if(_0x4039d5){const _0x40482e=Array['from'](_0x413bcb['getSelectedBlocks']())['filter'](_0x4923dd=>oo(_0x4923dd)||function(_0x25ec63,_0x7be15d){const _0x36c5ff=_0x7be15d['checkChild'](_0x25ec63['parent'],'blockQuote'),_0x33ae82=_0x7be15d['checkChild'](['$root','blockQuote'],_0x25ec63);return _0x36c5ff&&_0x33ae82;}(_0x4923dd,this['editor']['model']['schema']));_0xfbf1b7=to(_0x40482e,_0x5a5963['model']);}else{const _0x34593b=Array['from'](_0x413bcb['getSelectedBlocks']())['filter'](_0x503004=>oo(_0x503004));_0xfbf1b7=to(_0x34593b,_0x5a5963['model']);}_0x5a5963['model']['change'](()=>{for(const _0x2f4352 of _0xfbf1b7)_0x3cfbc2['markBlockFormat'](_0x2f4352,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4039d5}]});});}),_0x3cfbc2['_descriptionFactory']['registerDescriptionCallback'](_0x10cd01=>{const {data:_0x11213f}=_0x10cd01;if(_0x11213f&&'blockQuote'==_0x11213f['commandName']){const _0x29780a=o(_0x34b356,'ELEMENT_BLOCK_QUOTE');return _0x11213f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34b356,'*Set\x20format:*\x20%0',_0x29780a)}:{'type':'format','content':o(_0x34b356,'*Remove\x20format:*\x20%0',_0x29780a)};}});}}function oo(_0x2544db){return'blockQuote'==_0x2544db['parent']['name'];}class G extends _0x4de685{['afterInit'](){const _0x3eb4e7=this['editor'];_0x3eb4e7['plugins']['has']('CaseChange')&&(_0x3eb4e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3eb4e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3eb4e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4de685{['afterInit'](){const _0x69bf47=this['editor'];_0x69bf47['commands']['get']('ckbox')&&_0x69bf47['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4de685{['afterInit'](){const _0x5cd385=this['editor'];if(!_0x5cd385['plugins']['has']('CodeBlock'))return;const _0x10185b=_0x5cd385['plugins']['get']('TrackChangesEditing'),_0x2798ac=_0x5cd385['locale'],_0x1f4d58=_0x5cd385['config']['get']('codeBlock')['languages'],_0x57661a=_0x5cd385['commands']['get']('codeBlock');_0x10185b['enableCommand']('indentCodeBlock'),_0x10185b['enableCommand']('outdentCodeBlock'),_0x10185b['enableCommand']('codeBlock',(_0xfec3cb,_0x48c4ac={})=>{const _0x875c25=_0x5cd385['model'],_0x475e1c=_0x5cd385['model']['document']['selection'],_0x7689ac=_0x48c4ac&&void 0x0!==_0x48c4ac['forceValue']?_0x48c4ac['forceValue']:!_0x57661a['value'];let _0x3a801d;_0x48c4ac['language']||(_0x48c4ac['language']=_0x1f4d58[0x0]['language']),_0x3a801d=_0x7689ac?Array['from'](_0x475e1c['getSelectedBlocks']())['filter'](_0x221cd3=>eo(_0x221cd3)||function(_0x5e8197,_0x352b45){if(_0x5e8197['is']('rootElement')||_0x352b45['isLimit'](_0x5e8197))return!0x1;return _0x352b45['checkChild'](_0x5e8197['parent'],'codeBlock');}(_0x221cd3,_0x875c25['schema'])):Array['from'](_0x475e1c['getSelectedBlocks']())['filter'](_0x118e19=>eo(_0x118e19));const _0x3453f5=to(_0x3a801d,_0x875c25);_0x875c25['change'](()=>{for(const _0x495873 of _0x3453f5)_0x10185b['markBlockFormat'](_0x495873,{'commandName':'codeBlock','commandParams':[{..._0x48c4ac,'forceValue':_0x7689ac}],'formatGroupId':'blockName'});});}),(_0x10185b['_descriptionFactory']['registerElementLabel']('codeBlock',_0x5d16ad=>o(_0x2798ac,'ELEMENT_CODE_BLOCK',_0x5d16ad)),_0x10185b['_descriptionFactory']['registerDescriptionCallback'](_0x1e36bb=>{if('formatBlock'!=_0x1e36bb['type'])return;const _0x3ff6bd=_0x2798ac['t'],{data:_0x4cf9be}=_0x1e36bb;if(!_0x4cf9be||'codeBlock'!=_0x4cf9be['commandName'])return;const _0x334de9=_0x4cf9be['commandParams'][0x0]['language'],_0x13dcc9=_0x3ff6bd(_0x1f4d58['find'](_0x5af84c=>_0x5af84c['language']===_0x334de9)['label'])['toLowerCase']();return _0x4cf9be['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2798ac,'*Set\x20format:*\x20%0',o(_0x2798ac,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13dcc9+')')}:{'type':'format','content':o(_0x2798ac,'*Remove\x20format:*\x20%0',o(_0x2798ac,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x52bc29){return'codeBlock'==_0x52bc29['name'];}class H extends _0x4de685{['afterInit'](){const _0x1266e4=this['editor'];if(!_0x1266e4['plugins']['has']('CommentsEditing'))return;_0x1266e4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2c65f6,_0x137da0,_0x4f78a5){const _0x2a7035=[];for(const _0x3f3f39 of _0x137da0['getItems']())_0x3f3f39['hasAttribute'](_0x2c65f6)&&_0x2a7035['push'](_0x4f78a5['createRangeOn'](_0x3f3f39));return _0x2a7035;}function _e(_0x2ceb64,_0x46908b,{showActiveMarker:_0x13fff1=!0x0}={}){const _0x2dcf2f=_0x2ceb64['plugins']['get']('TrackChangesEditing');return(_0x4bdef3,_0x5c6cc6,_0x408c17)=>{if(!_0x408c17['consumable']['test'](_0x5c6cc6['markerRange'],_0x4bdef3['name']))return;const _0x5e378c=_0x5c6cc6['markerRange']['getWalker'](),_0x59f702=_0x5c6cc6['markerRange']['start'],_0x242528=_0x2ceb64['model']['schema'];let _0x171766=null,_0x56ab44=null,_0x553429=!0x1,_0x15da03=!0x1;for(const _0x2c37f3 of _0x5e378c){const _0x454e5e=_0x2c37f3['item'];_0x553429=_0x553429||_0x242528['isContent'](_0x454e5e);const _0x7230ca=_0x408c17['mapper']['toViewElement'](_0x454e5e);if(_0x7230ca&&_0x7230ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c37f3['type']&&(_0x242528['isBlock'](_0x454e5e)&&!_0x242528['isLimit'](_0x454e5e)&&(_0x454e5e['nextSibling']||_0x59f702['isAtEnd']?_0x171766&&_0x171766['parent']==_0x454e5e||(_0x171766=_0x454e5e,_0x48a139(_0x2c37f3['previousPosition']),_0x15da03=!0x0):_0x56ab44=_0x56ab44||_0x2c37f3['previousPosition']));}function _0x48a139(_0xfb85ec){const _0x3aff18=_0x408c17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46908b}),_0x106456=_0x408c17['mapper']['toViewPosition'](_0xfb85ec);_0x13fff1&&_0x2dcf2f['activeMarkers']['includes'](_0x5c6cc6['markerName'])&&_0x408c17['writer']['addClass']('ck-suggestion-marker--active',_0x3aff18),_0x408c17['writer']['insert'](_0x106456,_0x3aff18),_0x408c17['mapper']['bindElementToMarker'](_0x3aff18,_0x5c6cc6['markerName']);}_0x553429||_0x15da03||!_0x56ab44||_0x48a139(_0x56ab44);};}class q extends _0x4de685{static get['requires'](){return[_0x24d530];}['init'](){const _0x273edc=this['editor'],_0x5ee4b4=_0x273edc['plugins']['get']('TrackChangesEditing');_0x5ee4b4['enableCommand']('delete');const _0x498221=_0x273edc['commands']['get']('deleteForward');_0x5ee4b4['enableCommand']('deleteForward',(_0x1a7249,_0x38d6a1={})=>{const _0x291ab7=_0x273edc['model']['createSelection'](_0x273edc['model']['document']['selection']);_0x291ab7['isCollapsed']&&_0x273edc['model']['modifySelection'](_0x291ab7,{'direction':'forward','unit':_0x38d6a1['unit']});const _0x49df78=_0x291ab7['getFirstRange'](),_0x3c8009=_0x3d4179['fromRange'](_0x49df78);let _0x4d1e65;_0x1a7249(_0x38d6a1),_0x4d1e65='$graveyard'==_0x3c8009['root']['rootName']?_0x273edc['model']['createRange'](_0x49df78['start']):_0x273edc['model']['createRange'](_0x3c8009['start'],_0x3c8009['end']),_0x3c8009['detach'](),_0x273edc['model']['enqueueChange'](_0x498221['buffer']['batch'],_0x3ee80e=>{_0x498221['buffer']['lock'](),_0x3ee80e['setSelection'](_0x3ee80e['createRange'](_0x4d1e65['end'])),_0x498221['buffer']['unlock']();});}),_0x273edc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x273edc,'merge'),{'priority':'high'}),_0x273edc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1dc68a,_0x184df4,_0x3cf17a)=>{_0x3cf17a['options']['showSuggestionHighlights']&&_e(_0x273edc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1dc68a,_0x184df4,_0x3cf17a);},{'priority':'high'}),_0x273edc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d70bb,_0x56a4ce,_0x7a1555)=>{const _0x30c3cb=_0x7a1555['mapper']['markerNameToElements'](_0x56a4ce['markerName']);if(_0x30c3cb){for(const _0x3e19f8 of _0x30c3cb)_0x3e19f8['is']('uiElement')&&(_0x7a1555['mapper']['unbindElementFromMarkerName'](_0x3e19f8,_0x56a4ce['markerName']),_0x7a1555['writer']['remove'](_0x3e19f8));}},{'priority':'high'});}}class z extends _0x4de685{['afterInit'](){const _0xcb6ae8=this['editor'];if(!_0xcb6ae8['plugins']['has']('ListEditing'))return;const _0xa060f6=_0xcb6ae8['locale'],_0x554b61=_0xcb6ae8['plugins']['get']('TrackChangesEditing'),_0x2038a6=_0xcb6ae8['plugins']['has']('TodoListEditing'),_0x552ef0=!!_0xcb6ae8['config']['get']('list.multiBlock');function _0xa62f20(_0x3ef300){return{'type':'format','content':''+o(_0xa060f6,'*Set\x20format:*\x20%0',_0x3ef300)};}function _0x176def(_0x192d53){return{'type':'format','content':''+o(_0xa060f6,'*Remove\x20format:*\x20%0',_0x192d53)};}_0x554b61['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x554b61['_enableDefaultAttributesIntegration']('bulletedList'),_0x554b61['_enableDefaultAttributesIntegration']('customNumberedList'),_0x554b61['_enableDefaultAttributesIntegration']('customBulletedList'),_0x554b61['_enableDefaultAttributesIntegration']('indentList'),_0x554b61['_enableDefaultAttributesIntegration']('outdentList'),_0x554b61['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x554b61['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x552ef0&&(_0x554b61['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x554b61['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2038a6&&(_0x554b61['_enableDefaultAttributesIntegration']('todoList'),_0x554b61['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x5c124a=>{const {data:_0x2bf842}=_0x5c124a;if(_0x2bf842&&'todoListChecked'==_0x2bf842['key'])return{'type':'format','content':_0x2bf842['newValue']?o(_0xa060f6,'*Check\x20item*'):o(_0xa060f6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x58162f=>{if(_0x58162f['batch']['isUndo'])return!0x1;let _0xe0b2ed=!0x1;const _0x1b468e=_0x554b61['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dec08=>'todoListChecked'===_0x554b61['_getAttributeKey'](_0x5dec08));for(const _0x5420aa of _0x1b468e){'todo'!=_0x5420aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x554b61['_findSuggestions'](_0x5420aa['getFirstRange'](),'attribute')['find'](_0x179d95=>'listType'===_0x554b61['_getAttributeKey'](_0x179d95['suggestion']))||(_0x58162f['removeMarker'](_0x5420aa['getFirstMarker']()),_0xe0b2ed=!0x0));}return _0xe0b2ed;})),_0x554b61['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa060f6,'FORMAT_INDENT'));const _0x3fef49={'type':'format','content':''};_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x90bc4c=>{const {data:_0x53a127}=_0x90bc4c;if(!_0x53a127||'listType'!=_0x53a127['key'])return;let _0x4154b4=_0x90bc4c['head'];for(;_0x4154b4;){if(_0x4154b4['data']&&(('listStyle'==_0x4154b4['data']['key']||'listMarkerStyle'==_0x4154b4['data']['key'])&&(_0x4154b4['data']['newValue']&&'default'!=_0x4154b4['data']['newValue']||'default'!=_0x4154b4['data']['oldValue']&&!_0x53a127['newValue'])||!_0x552ef0&&_0x4154b4['data']['key']==m))return _0x3fef49;_0x4154b4=_0x4154b4['next'];}if(null==_0x53a127['newValue'])switch(_0x53a127['oldValue']){case'bulleted':return _0x176def(o(_0xa060f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x176def(o(_0xa060f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x176def(o(_0xa060f6,'ELEMENT_TODO_LIST'));}switch(_0x53a127['newValue']){case'bulleted':return _0xa62f20(o(_0xa060f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa62f20(o(_0xa060f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa62f20(o(_0xa060f6,'ELEMENT_TODO_LIST'));}}),_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x42f542=>{const {data:_0x5c62c1}=_0x42f542;if(_0x5c62c1&&'listIndent'==_0x5c62c1['key'])return null==_0x5c62c1['newValue']||null==_0x5c62c1['oldValue']&&0x0==_0x5c62c1['newValue']?_0x3fef49:void 0x0;}),_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x36148d=>{if('attribute'!=_0x36148d['type'])return;const {data:_0x47a1d2}=_0x36148d;if(!_0x47a1d2||'listItemId'!=_0x47a1d2['key'])return;const _0x1c15d4=le(_0x36148d);return _0x1c15d4?'newValue'==_0x1c15d4?{'type':'format','content':o(_0xa060f6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c15d4?{'type':'format','content':o(_0xa060f6,'*Split:*\x20list\x20item')}:_0x3fef49:_0x3fef49;}),_0xcb6ae8['model']['document']['registerPostFixer'](_0x109593=>this['listItemIdFixer'](_0x109593)),_0xcb6ae8['model']['document']['registerPostFixer'](_0x3c5049=>this['noTrackChangesFixer'](_0x3c5049)),_0xcb6ae8['model']['document']['registerPostFixer'](_0x252458=>this['assureChains'](_0x252458)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2c10db){if(_0x2c10db['batch']['isUndo']||!_0x2c10db['batch']['isLocal'])return!0x1;let _0x9fad2c=!0x1;const _0x568a74=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x199eeb=>_0x199eeb['data']&&'listItemId'==_0x199eeb['data']['key'])['filter'](_0x13cae3=>_0x13cae3['data']['newValue']&&_0x13cae3['data']['oldValue']);for(const _0x5df02f of _0x568a74)le(_0x5df02f)||(_0x2c10db['removeMarker'](_0x5df02f['getFirstMarker']()),_0x9fad2c=!0x0);return _0x9fad2c;}['noTrackChangesFixer'](_0x3e962b){if(_0x3e962b['batch']['isUndo']||!_0x3e962b['batch']['isLocal'])return!0x1;const _0x4d6ce2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d6ce2['trackChangesCommand']['value'])return!0x1;let _0x563468=!0x1;const _0x2da200=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x25b79b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x26d662=>'attribute'==_0x26d662['type'])['filter'](_0x42735a=>_0x2da200['includes'](_0x42735a['attributeKey']));if(0x0==_0x25b79b['length'])return _0x563468;for(const _0x3359ed of _0x25b79b){const _0xdea0e4=_0x4d6ce2['_findSuggestions'](_0x3359ed['range'],'attribute')['filter'](_0x39a8d9=>!_0x39a8d9['meta']['isNextTo'])['map'](_0x3c39fe=>_0x3c39fe['suggestion'])['filter'](_0x2b21b9=>{const _0x1fe6bb=_0x4d6ce2['_getAttributeKey'](_0x2b21b9);return _0x2da200['includes'](_0x1fe6bb);});if(_0xdea0e4['length']){for(const _0x3dfac1 of _0xdea0e4)_0x3e962b['removeMarker'](_0x3dfac1['getFirstMarker']());_0x563468=!0x0;}}return _0x563468;}['assureChains'](_0xaff4bf){if(_0xaff4bf['batch']['isUndo']||!_0xaff4bf['batch']['isLocal'])return!0x1;const _0xca7b90=this['editor']['plugins']['get']('TrackChangesEditing');let _0x4f62de=!0x1;const _0x3da984=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5dadc0 of _0xca7b90['getSuggestions']({'skipNotAttached':!0x0})){const _0x20e21a=_0xca7b90['_findSuggestions'](_0x5dadc0['getFirstRange'](),'attribute')['map'](_0x3d5240=>_0x3d5240['suggestion'])['filter'](_0x5e3397=>_0x5e3397['data']&&_0x3da984['includes'](_0x5e3397['data']['key']));if(!_0x20e21a['length'])continue;const _0x409508=_0x20e21a[0x0]['head']['attributes']['groupId'];if(!_0x20e21a['every'](_0x2fbe81=>_0x2fbe81['attributes']['groupId']===_0x409508)){for(const _0x2e4af9 of _0x20e21a)_0x6da367(_0x2e4af9,_0x409508)&&(_0x4f62de=!0x0);}}return _0x4f62de;function _0xe72504(_0x47000f,_0x208b51){for(const _0x15c3b7 of _0xca7b90['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539afc=>'attribute'==_0x539afc['type']&&_0x539afc['attributes']['groupId']==_0x47000f))_0x15c3b7['setAttribute']('groupId',_0x208b51);}function _0x6da367(_0x44b810,_0x23eb15){let _0x47f1f0=_0x44b810['head'],_0x1e3509=!0x1;for(;_0x47f1f0;)_0x47f1f0['attributes']['groupId']!=_0x23eb15&&(_0xe72504(_0x47f1f0['attributes']['groupId'],_0x23eb15),_0x47f1f0['setAttribute']('groupId',_0x23eb15),_0x1e3509=!0x0),_0x47f1f0=_0x47f1f0['next'];return _0x1e3509;}}['_supportLegacySuggestions'](){const _0x4ac3a1=this['editor'],_0x12e65a=_0x4ac3a1['locale'],_0x553ab6=_0x4ac3a1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x553ab6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3782ef,_0x557e8d){const _0x52e37a=[];for(let _0x3afa6f of _0x3782ef)_0x3afa6f['start']['nodeAfter']===_0x3afa6f['end']['parent']&&(_0x3afa6f=_0x4ac3a1['model']['createRange'](_0x4ac3a1['model']['createPositionAt'](_0x3afa6f['start']['nodeAfter'],0x0))),_0x52e37a['push'](_0x3afa6f);_0x4ac3a1['model']['change'](_0xdc70c6=>{const _0x3c0be6=_0x4ac3a1['model']['document']['selection'],_0x1679c2=Array['from'](_0x3c0be6['getRanges']())['map'](_0x265446=>_0x3d4179['fromRange'](_0x265446));_0xdc70c6['setSelection'](_0x52e37a),_0x4ac3a1['commands']['get'](_0x557e8d['commandName'])['refresh'](),_0x557e8d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ac3a1['execute'](_0x557e8d['commandName'],..._0x557e8d['commandParams']),_0xdc70c6['setSelection'](_0x1679c2);for(const _0x1010e6 of _0x1679c2)_0x1010e6['detach']();});}),_0x553ab6['_descriptionFactory']['registerElementLabel'](function(_0x33e416){const _0x41fbe8=!_0x4ac3a1['model']['schema']['isObject'](_0x33e416),_0x241496=_0x33e416['previousSibling'],_0x1657c7=_0x33e416['nextSibling'],_0x4c612e=_0x33e416['getAttribute']('listItemId'),_0x13b2e3=!_0x241496||_0x241496['getAttribute']('listItemId')!==_0x4c612e,_0x5dc14c=!_0x1657c7||_0x1657c7['getAttribute']('listItemId')!==_0x4c612e;return _0x41fbe8&&Boolean(_0x4c612e)&&_0x13b2e3&&_0x5dc14c;},_0x3aa315=>o(_0x12e65a,'ELEMENT_LIST_ITEM',_0x3aa315));}['_registerLegacyDescription'](){const _0x2f4d0a=this['editor'],_0x418570=_0x2f4d0a['locale'];function _0x13c827(_0x4c1e98){const _0x5307cb=_0x2f4d0a['commands']['get']('bulletedList')['value'],_0x3f2e8f=_0x2f4d0a['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c1e98?_0x5307cb:_0x3f2e8f;}_0x2f4d0a['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x45429a){if('formatBlock'!=_0x45429a['type'])return;const {data:_0x35a8bc}=_0x45429a;if(!_0x35a8bc)return;let _0x5d320d,_0x222de8,_0x48cfc3,_0x3f4ef3;switch(_0x35a8bc['commandName']){case'bulletedList':_0x48cfc3=_0x35a8bc['commandParams'][0x0]['forceValue'],_0x3f4ef3=_0x13c827(_0x35a8bc['commandName']),_0x5d320d=_0x48cfc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f4ef3&&_0x2f4d0a['config']['get']('list.multiBlock')||(_0x5d320d='*Change\x20to:*\x20%0'),_0x222de8={'type':'format','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48cfc3=_0x35a8bc['commandParams'][0x0]['forceValue'],_0x3f4ef3=_0x13c827(_0x35a8bc['commandName']),_0x5d320d=_0x48cfc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f4ef3&&_0x2f4d0a['config']['get']('list.multiBlock')||(_0x5d320d='*Change\x20to:*\x20%0'),_0x222de8={'type':'format','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5d320d='*Indent:*\x20%0',_0x222de8={'type':'format','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5d320d=function(_0x531d7e){const _0x4cbcfd=_0x531d7e['getFirstRange']();let _0x16a1a3=_0x4cbcfd['start']['nodeAfter'];for(;_0x16a1a3&&_0x4cbcfd['containsItem'](_0x16a1a3);){if(_0x16a1a3['getAttribute']('listIndent')>0x0)return!0x1;_0x16a1a3=_0x16a1a3['nextSibling'];}return!0x0;}(_0x45429a)?o(_0x418570,'*Format:*\x20remove\x20from\x20%0',o(_0x418570,function(_0x21676c){return'ELEMENT_'+_0x21676c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45429a))):o(_0x418570,'*Outdent:*\x20%0',o(_0x418570,'ELEMENT_LIST_ITEM')),_0x222de8={'type':'format','content':_0x5d320d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x35a8bc['multipleBlocks']&&(_0x5d320d='*Merge:*\x20%0',_0x222de8={'type':'deletion','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_LIST_ITEM'))});}return _0x222de8;});}}function le(_0x3779ab){let _0x400d83=_0x3779ab['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x400d83;){const _0x35a3bc=_0x400d83['getAttribute']('listItemId');if(!_0x35a3bc)return!0x1;if(_0x35a3bc==_0x3779ab['data']['newValue'])return'newValue';if(_0x35a3bc==_0x3779ab['data']['oldValue'])return'oldValue';_0x400d83=_0x400d83['previousSibling'];}return!0x1;}class ue extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2fa550=this['editor']['config']['get']('list.properties'),_0x325f5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fa550['styles']&&_0x325f5c['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x2fa550['reversed']&&_0x325f5c['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x2fa550['startIndex']&&_0x325f5c['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x31c64a={'type':'format','content':''};_0x325f5c['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4bcf0d=this['editor']['locale'];_0x325f5c['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4bcf0d,'FORMAT_LIST_REVERSED')),_0x325f5c['_descriptionFactory']['registerDescriptionCallback'](_0x287f4d=>{const {data:_0x4280ac}=_0x287f4d;if(_0x4280ac&&'listReversed'==_0x4280ac['key'])return null==_0x4280ac['newValue']||0x0==_0x4280ac['newValue']&&null==_0x4280ac['oldValue']?_0x31c64a:void 0x0;}),_0x325f5c['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4bcf0d,'FORMAT_LIST_START')),_0x325f5c['_descriptionFactory']['registerDescriptionCallback'](_0x4afb1c=>{const {data:_0x4e3a45}=_0x4afb1c;if(_0x4e3a45&&'listStart'==_0x4e3a45['key'])return null==_0x4e3a45['newValue']||0x1==_0x4e3a45['newValue']&&null==_0x4e3a45['oldValue']?_0x31c64a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x59d03b=>{if(_0x59d03b['batch']['isUndo'])return!0x1;let _0x1cdf18=!0x1;const _0xfa77ae=_0x325f5c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11dff4=>{const _0x2f40fb=_0x325f5c['_getAttributeKey'](_0x11dff4);return'listStart'==_0x2f40fb||'listReversed'==_0x2f40fb;});for(const _0x43a115 of _0xfa77ae){const _0x4f83e5=_0x43a115['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f83e5||'customNumbered'==_0x4f83e5)continue;_0x325f5c['_findSuggestions'](_0x43a115['getFirstRange'](),'attribute')['find'](_0x479f85=>'listType'==_0x325f5c['_getAttributeKey'](_0x479f85['suggestion']))||(_0x59d03b['removeMarker'](_0x43a115['getFirstMarker']()),_0x1cdf18=!0x0);}return _0x1cdf18;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44d9bd){const _0x531d65=this['editor']['locale'],{data:_0x2c1e4b}=_0x44d9bd,_0x2f165c={'type':'format','content':''};if(!_0x2c1e4b||'listStyle'!=_0x2c1e4b['key'])return;if(!_0x2c1e4b['oldValue'])return'default'==_0x2c1e4b['newValue']?_0x2f165c:{'type':'format','content':''+o(_0x531d65,'*Set\x20format:*\x20%0',o(_0x531d65,this['_getTranslationKeyForListStyle'](_0x2c1e4b['newValue'])))};if(!_0x2c1e4b['newValue']){if('default'==_0x2c1e4b['oldValue'])return _0x2f165c;let _0x48498a=_0x44d9bd['head'];for(;_0x48498a;){if(_0x48498a['data']&&'listType'==_0x48498a['data']['key']&&_0x48498a['data']['newValue'])return _0x2f165c;_0x48498a=_0x48498a['next'];}return{'type':'format','content':''+o(_0x531d65,'*Remove\x20format:*\x20%0',o(_0x531d65,this['_getTranslationKeyForListStyle'](_0x2c1e4b['oldValue'])))};}if('default'!=_0x2c1e4b['newValue'])return{'type':'format','content':''+o(_0x531d65,'*Set\x20format:*\x20%0',o(_0x531d65,this['_getTranslationKeyForListStyle'](_0x2c1e4b['newValue'])))};let _0x2b07b2=_0x44d9bd['head'];for(;_0x2b07b2;){if(_0x2b07b2['data']&&'listType'==_0x2b07b2['data']['key']&&_0x2b07b2['data']['newValue']&&_0x2b07b2['data']['oldValue'])return _0x2f165c;_0x2b07b2=_0x2b07b2['next'];}return{'type':'format','content':o(_0x531d65,'*Set\x20format:*\x20%0',o(_0x531d65,'ELEMENT_'+_0x44d9bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4fc2c9=this['editor'],_0x5f4aa9=_0x4fc2c9['locale'];_0x4fc2c9['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4d4e64=>{if('formatBlock'!=_0x4d4e64['type'])return;const {data:_0x326543}=_0x4d4e64;if(!_0x326543)return;let _0x24d19d,_0x1c998b;switch(_0x326543['commandName']){case'listStyle':_0x24d19d='*Change\x20to:*\x20%0',_0x1c998b={'type':'format','content':o(_0x5f4aa9,_0x24d19d,o(_0x5f4aa9,this['_getTranslationKeyForListStyle'](_0x326543['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24d19d=_0x326543['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c998b={'type':'format','content':o(_0x5f4aa9,_0x24d19d)};break;case'listStart':_0x24d19d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c998b={'type':'format','content':o(_0x5f4aa9,_0x24d19d,_0x326543['commandParams'][0x0]['startIndex'])};}return _0x1c998b;});}['_getTranslationKeyForListStyle'](_0x50e92c){return'ELEMENT_'+function(_0x26e6b5){if(pe['includes'](_0x26e6b5))return'bulleted';if(ye['includes'](_0x26e6b5))return'numbered';return null;}(_0x50e92c)['toUpperCase']()+'_LIST_'+_0x50e92c['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4de685{static get['requires'](){return[_0x5ec658];}['init'](){const _0x298383=this['editor'],_0xfe7e71=_0x298383['plugins']['get']('TrackChangesEditing'),_0x53b9d5=_0x298383['commands']['get']('enter');_0xfe7e71['enableCommand']('enter',()=>{_0x298383['model']['change'](_0x11b68b=>{const _0x589143=_0x298383['model']['document']['selection'],_0x484ced=_0x589143['getFirstPosition'](),_0x125c1b=_0x3d4179['fromRange'](_0x589143['getFirstRange']());if(_0x53b9d5['enterBlock'](_0x11b68b)){const _0x195633=_0x298383['model']['createPositionAt'](_0x484ced['parent']['nextSibling'],0x0),_0x39d6e7=_0x11b68b['createRange'](_0x484ced,_0x195633);_0xfe7e71['markInsertion'](_0x39d6e7);}else _0x11b68b['setSelection'](_0x11b68b['createRange'](_0x125c1b['end']));_0x125c1b['detach'](),_0x53b9d5['fire']('afterExecute',{'writer':_0x11b68b});});}),_0x298383['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x298383,'split'),{'priority':'high'}),_0x298383['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2afbc0,_0x5cd1f1,_0x5240f7)=>{const _0x15708c=_0x5240f7['mapper']['markerNameToElements'](_0x5cd1f1['markerName']);if(_0x15708c){for(const _0xc6779a of _0x15708c)_0xc6779a['hasClass']('ck-suggestion-marker-split')&&(_0x5240f7['mapper']['unbindElementFromMarkerName'](_0xc6779a,_0x5cd1f1['markerName']),_0x5240f7['writer']['remove'](_0xc6779a));}},{'priority':'high'}),_0x298383['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c7668,_0x4f9597,_0x54fdab)=>{_0x54fdab['options']['showSuggestionHighlights']&&_e(_0x298383,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3c7668,_0x4f9597,_0x54fdab);},{'priority':'high'});}}class J extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x195e7e=this['editor']['plugins']['get']('TrackChangesEditing');_0x195e7e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x195e7e['enableCommand']('findNext'),_0x195e7e['enableCommand']('findPrevious'),_0x195e7e['enableCommand']('replace'),_0x195e7e['enableCommand']('replaceAll');}['handleFindCommand'](_0x590955,_0x44fec2,_0x20caec={}){const _0x4263c9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x590955(_0x1bcdcb=>('string'==typeof _0x44fec2?_0x4263c9['findByTextCallback'](_0x44fec2,_0x20caec):_0x44fec2)(_0x1bcdcb)['filter'](_0x1064f9=>!0x1===this['_isInDeletionRange'](_0x1064f9,_0x1bcdcb['item'])),_0x20caec);}['_isInDeletionRange'](_0x54819f,_0x23b06e){const _0x23c014=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23b06e,_0x54819f['start']),this['editor']['model']['createPositionAt'](_0x23b06e,_0x54819f['end']));for(const _0x2247a8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23c014['getIntersection'](_0x2247a8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4de685{['afterInit'](){const _0x41ce17=this['editor']['locale'],_0x5baeb3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x161419,commandName:_0x5cd669}of ro)this['editor']['plugins']['has'](_0x161419)&&_0x5baeb3['_enableDefaultAttributesIntegration'](_0x5cd669,[_0x5cd669]);_0x41ce17['t'],_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x41ce17,'FORMAT_FONT_SIZE')),_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x41ce17,'FORMAT_FONT_FAMILY')),_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x41ce17,'FORMAT_FONT_COLOR')),_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x41ce17,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44713a=this['editor'],_0x5175d5=_0x44713a['locale'];_0x44713a['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5af913=>{const _0x3f50b3=_0x5175d5['t'];if('formatInline'!=_0x5af913['type'])return;const {data:_0x33a278}=_0x5af913;if(null!=_0x33a278){if('fontSize'==_0x33a278['commandName']){const _0x316b41=_0x33a278['commandParams'][0x0]['value'];if(_0x316b41){const _0x5ee392=_0x3f50b3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1eccdb=>_0x1eccdb['model']==_0x316b41)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20size:*\x20%0',_0x5ee392)};}return{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33a278['commandName']){const _0x3dc5b3=_0x33a278['commandParams'][0x0]['value'];return _0x3dc5b3?{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20family:*\x20%0',_0x3dc5b3)}:{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33a278['commandName']){const _0x389778=_0x33a278['commandParams'][0x0]['value'];if(_0x389778){const _0x40f37c=_0x57fb33(this['editor']['config']['get']('fontColor.colors'))['find'](_0x47ef8b=>_0x47ef8b['model']==_0x389778);let _0x4de182=_0x389778,_0x13e98d='';return _0x40f37c&&(_0x4de182=_0x40f37c['label'],_0x13e98d=_0x3f50b3(_0x4de182)['toLowerCase']()),{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20color:*\x20%0',_0x13e98d)['trim'](),'color':{'value':_0x389778,'title':_0x13e98d||_0x4de182}};}return{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33a278['commandName']){const _0x4fd2cc=_0x33a278['commandParams'][0x0]['value'];if(_0x4fd2cc){const _0x59dc05=_0x57fb33(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xf22d9b=>_0xf22d9b['model']==_0x4fd2cc);let _0x4202e7=_0x4fd2cc,_0x3df737='';return _0x59dc05&&(_0x4202e7=_0x59dc05['label'],_0x3df737=_0x3f50b3(_0x4202e7)['toLowerCase']()),{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20background\x20color:*\x20%0',_0x3df737)['trim'](),'color':{'value':_0x4fd2cc,'title':_0x3df737||_0x4202e7}};}return{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4de685{['afterInit'](){const _0x1d7f27=this['editor'],_0x565d33=_0x1d7f27['plugins']['get']('TrackChangesEditing'),_0x24e6b4=_0x1d7f27['commands']['get']('copyFormat'),_0x453e83=_0x1d7f27['commands']['get']('pasteFormat');_0x24e6b4&&_0x453e83&&(_0x565d33['_enableDefaultAttributesIntegration']('pasteFormat'),_0x565d33['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ee4cc=this['editor'],_0x59892c=_0x5ee4cc['locale'];_0x5ee4cc['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x16518d=>{if('formatBlock'!=_0x16518d['type']&&'formatInline'!=_0x16518d['type'])return;const {data:_0x4ae1ec}=_0x16518d;if(_0x4ae1ec&&'pasteFormat'===_0x4ae1ec['commandName']){const _0x7e85dc=[],_0x3382f4=_0x4ae1ec['commandParams'][0x0];for(const [_0x508ae3,_0x283b52]of Object['entries'](_0x3382f4))_0x7e85dc['push'](so(_0x5ee4cc,_0x508ae3,_0x283b52));return _0x7e85dc['length']?{'type':'format','content':o(_0x59892c,'*Set\x20format\x20to:*\x20%0',_0x7e85dc['join'](',\x20'))}:{'type':'format','content':o(_0x59892c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2c2fa4,_0x59531b,_0x2f6332){const _0x4cf1dd=_0x2c2fa4['locale']['t'],_0x22d5d8=_0x59531b['split'](/(?=[A-Z])/)['join']('\x20'),_0x23a846=_0x4cf1dd(_0x22d5d8['charAt'](0x0)['toUpperCase']()+_0x22d5d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2f6332)return _0x23a846;if('fontColor'===_0x59531b||'fontBackgroundColor'===_0x59531b){const _0x292663=_0x57fb33(_0x2c2fa4['config']['get']('fontColor.colors'))['find'](_0x5b164b=>_0x5b164b['model']==_0x2f6332);return _0x23a846+'\x20('+(_0x292663?_0x4cf1dd(_0x292663['label'])['toLowerCase']():_0x2f6332)+')';}if('fontSize'===_0x59531b&&isNaN(parseFloat(_0x2f6332))){const _0x2c7e1b=_0x2c2fa4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2c2fa4['config']['get']('fontSize.options'))['find'](_0x4ee8c8=>_0x4ee8c8['model']==_0x2f6332);return _0x23a846+'\x20('+(_0x2c7e1b?_0x4cf1dd(_0x2c7e1b['title'])['toLowerCase']():_0x2f6332)+')';}return _0x23a846+'\x20('+_0x2f6332+')';}class Y extends _0x4de685{['afterInit'](){const _0x555eb7=this['editor'];if(!_0x555eb7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x555eb7['config']['get']('heading.options');const _0x1a8853=_0x555eb7['locale'],_0x1e8dc0=_0x555eb7['plugins']['get']('TrackChangesEditing');_0x1e8dc0['_enableDefaultAttributesIntegration']('heading');for(const _0x27a5bd of this['_headingOptions'])'paragraph'!=_0x27a5bd['model']&&_0x1e8dc0['_descriptionFactory']['registerElementLabel'](_0x27a5bd['model'],_0x493ea0=>{const _0x213178=this['_getHeadingLevel'](_0x27a5bd['model']);return null!==_0x213178?_0x4120a5(_0x493ea0,_0x213178):_0x576bfe(_0x493ea0,_0x27a5bd['title']);});function _0x4120a5(_0x405e86,_0x187306){return o(_0x1a8853,'ELEMENT_HEADING',[_0x405e86,_0x187306]);}function _0x576bfe(_0x213b05,_0x2593a6){return o(_0x1a8853,'ELEMENT_HEADING_CUSTOM',[_0x213b05,_0x2593a6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x217634=this['editor'],_0x324a14=_0x217634['locale'];function _0x147dc0(_0x541d44,_0x30d623){return o(_0x324a14,'ELEMENT_HEADING_CUSTOM',[_0x541d44,_0x30d623]);}_0x217634['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xb0460d=>{if('formatBlock'!=_0xb0460d['type'])return;const {data:_0x5d7944}=_0xb0460d;if(_0x5d7944&&'heading'==_0x5d7944['commandName']){const _0x31ef21=_0x5d7944['commandParams'][0x0]['value'],_0x8569a3=this['_getHeadingLevel'](_0x31ef21);if(null!==_0x8569a3)return{'type':'format','content':o(_0x324a14,'*Change\x20to:*\x20%0',(_0x4bc616=0x1,_0x3d9cde=_0x8569a3,o(_0x324a14,'ELEMENT_HEADING',[_0x4bc616,_0x3d9cde])))};const _0x3a1e83=this['_headingOptions']['find'](_0x4263cf=>_0x4263cf['model']===_0x31ef21)['title'];return{'type':'format','content':o(_0x324a14,'*Change\x20to:*\x20%0',_0x147dc0(0x1,_0x3a1e83))};}var _0x4bc616,_0x3d9cde;});}['_getHeadingLevel'](_0x583e09){var _0x5f30ef,_0x49b43f;const _0x145d54=_0x583e09['match'](/^heading(\d+)/);if(_0x145d54)return _0x145d54[0x1];const _0xb41f96=null===(_0x5f30ef=this['_headingOptions'])||void 0x0===_0x5f30ef?void 0x0:_0x5f30ef['find'](_0xc7332a=>_0xc7332a['model']==_0x583e09);if(_0xb41f96&&_0xb41f96['view']){const _0x2232bd=_0xb41f96['view'],_0x4887ee=(null!==(_0x49b43f=_0x2232bd['name'])&&void 0x0!==_0x49b43f?_0x49b43f:_0x2232bd)['match'](/^h(\d+)/);if(_0x4887ee)return _0x4887ee[0x1];}return null;}}class Z extends _0x4de685{['afterInit'](){const _0x2a8967=this['editor'];if(!_0x2a8967['plugins']['has']('HighlightEditing'))return;const _0x174060=_0x2a8967['plugins']['get']('TrackChangesEditing'),_0x735faa=_0x2a8967['locale'];_0x174060['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x174060['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x735faa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31af6d=this['editor'],_0x50947b=_0x31af6d['locale'];_0x31af6d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x77d45b=>{if('formatInline'!=_0x77d45b['type'])return;const {data:_0x43332a}=_0x77d45b;if(_0x43332a&&'highlight'==_0x43332a['commandName']){const _0x10805e=_0x50947b['t'],_0x5b547f=_0x43332a['commandParams'][0x0]['value'];if(_0x5b547f){const _0x4e2050=_0x31af6d['config']['get']('highlight.options')['find'](_0x43daf1=>_0x43daf1['model']==_0x5b547f),_0x226080=_0x10805e(_0x4e2050['title'])['toLowerCase']();return{'type':'format','content':o(_0x50947b,'*Set\x20highlight:*\x20%0',_0x226080),'color':{'value':_0x4e2050['color'],'title':_0x4e2050['title']}};}return{'type':'format','content':o(_0x50947b,'*Remove\x20highlight*',o(_0x50947b,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4de685{['afterInit'](){const _0x3e96ae=this['editor'];if(!_0x3e96ae['plugins']['has']('HorizontalLineEditing'))return;_0x3e96ae['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c61a9=_0x3e96ae['plugins']['get']('TrackChangesEditing'),_0x2768=_0x3e96ae['locale'];_0x4c61a9['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x1cd8de=>o(_0x2768,'ELEMENT_HORIZONTAL_LINE',_0x1cd8de)),_0x3e96ae['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x59af91,{writer:_0x2ebe6a,options:_0x27ecdb})=>{if(!_0x27ecdb['showSuggestionHighlights'])return null;const _0x598e7d=_0x2ebe6a['createContainerElement']('div'),_0x4a7c01=_0x2ebe6a['createEmptyElement']('hr');return _0x2ebe6a['addClass']('ck-horizontal-line',_0x598e7d),_0x2ebe6a['insert'](_0x2ebe6a['createPositionAt'](_0x598e7d,0x0),_0x4a7c01),_0x598e7d;},'converterPriority':'high'});}}class et extends _0x4de685{['afterInit'](){const _0x3963bf=this['editor'];if(!_0x3963bf['plugins']['has']('HtmlEmbed'))return;const _0xda1a02=_0x3963bf['plugins']['get']('TrackChangesEditing'),_0x1eba7d=_0x3963bf['locale'];_0xda1a02['_descriptionFactory']['registerElementLabel']('rawHtml',_0x567b53=>o(_0x1eba7d,'ELEMENT_HTML_EMBED',_0x567b53)),_0xda1a02['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0xda1a02['_descriptionFactory']['registerDescriptionCallback'](_0x3848a4=>{if('attribute'!=_0x3848a4['type'])return;const {data:_0x41729a}=_0x3848a4;if(_0x41729a&&'value'==_0x41729a['key']&&_0x3848a4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x446f9e=o(_0x1eba7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1eba7d,'*Change\x20%0\x20content*',_0x446f9e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x326b5b=this['editor'],_0x2db305=_0x326b5b['locale'];_0x326b5b['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x290a4e=>{if('formatBlock'!=_0x290a4e['type'])return;const {data:_0x538a9f}=_0x290a4e;if(_0x538a9f&&'htmlEmbed'==_0x538a9f['commandName']){const _0x4a7464=o(_0x2db305,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2db305,'*Change\x20%0\x20content*',_0x4a7464)};}});}}class it extends _0x4de685{['afterInit'](){const _0x29d497=this['editor'];if(!_0x29d497['plugins']['has']('ImageEditing'))return;const _0x23a8e9=_0x29d497['plugins']['get']('TrackChangesEditing'),_0x3b0144=_0x29d497['plugins']['get']('ImageUtils'),_0x2c0c21=_0x29d497['locale'];_0x23a8e9['enableCommand']('insertImage'),_0x23a8e9['_descriptionFactory']['registerElementLabel']('imageBlock',_0x1d7c42=>o(_0x2c0c21,'ELEMENT_IMAGE',_0x1d7c42)),_0x23a8e9['_descriptionFactory']['registerElementLabel']('imageInline',_0x40d738=>o(_0x2c0c21,'ELEMENT_INLINE_IMAGE',_0x40d738)),_0x23a8e9['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2c0c21,'ELEMENT_CAPTION')),_0x29d497['plugins']['has']('ImageUploadEditing')&&_0x23a8e9['enableCommand']('uploadImage'),_0x29d497['plugins']['has']('ImageBlockEditing')&&_0x29d497['plugins']['has']('ImageInlineEditing')&&(_0x23a8e9['enableCommand']('imageTypeInline',(_0x1af8b2,_0x17a248)=>{const _0x237966=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']);_0x29d497['model']['change'](()=>{_0x23a8e9['markBlockFormat'](_0x237966,{'commandName':'imageTypeInline','commandParams':[_0x17a248]},[],'convertBlockImageToInline');});}),_0x23a8e9['enableCommand']('imageTypeBlock',(_0x119d94,_0xe3ac11)=>{_0x29d497['model']['change'](_0x299e43=>{let _0x38455d=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x410d11=_0x299e43['createRangeOn'](_0x38455d);const _0x38f1e3=_0x43ced0['fromPosition'](_0x410d11['start'],'toPrevious'),_0x3cb070=_0x43ced0['fromPosition'](_0x410d11['end'],'toNext');_0x23a8e9['forceDefaultExecution'](()=>_0x119d94(_0xe3ac11)),_0x38455d=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x410d11=_0x299e43['createRangeOn'](_0x38455d);const _0x46d4bc=_0x299e43['createRange'](_0x38f1e3,_0x3cb070);_0x38f1e3['detach'](),_0x3cb070['detach'](),_0x23a8e9['markBlockFormat'](_0x38455d,{'commandName':'imageTypeInline','commandParams':[_0xe3ac11]},[],'convertInlineImageToBlock'),_0x46d4bc['start']['isBefore'](_0x410d11['start'])&&_0x23a8e9['markInsertion'](_0x299e43['createRange'](_0x46d4bc['start'],_0x410d11['start']),'convertInlineImageToBlock'),_0x410d11['end']['isBefore'](_0x46d4bc['end'])&&_0x23a8e9['markInsertion'](_0x299e43['createRange'](_0x410d11['end'],_0x46d4bc['end']),'convertInlineImageToBlock');});}),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x23a8e9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e8f51])=>{const _0x5b5385=_0x23a8e9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2abc9d=_0x2e8f51['start'],_0x384b71=_0x2e8f51['end'];const _0x5c8f4f=_0x29d497['model']['schema']['getNearestSelectionRange'](_0x2abc9d,'backward'),_0x281b05=_0x29d497['model']['schema']['getNearestSelectionRange'](_0x384b71,'forward');_0x5c8f4f['isCollapsed']&&(_0x2abc9d=_0x5c8f4f['start']),_0x281b05['isCollapsed']&&(_0x384b71=_0x281b05['end']),_0x5b5385([_0x29d497['model']['createRange'](_0x2abc9d,_0x384b71)]);}),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x50d185),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x50d185)),_0x29d497['plugins']['has']('ImageCaptionEditing')&&(_0x23a8e9['enableCommand']('toggleImageCaption',(_0x47f75e,_0x287c47)=>{const _0x502796=_0x29d497['plugins']['get']('ImageCaptionUtils');let _0x35e4e4=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x5b9900=_0x502796['getCaptionFromImageModelElement'](_0x35e4e4);_0x29d497['model']['change'](()=>{if(_0x5b9900)return void _0x23a8e9['markDeletion'](_0x29d497['model']['createRangeOn'](_0x5b9900));const _0x9ad20d=_0x3b0144['isBlockImage'](_0x35e4e4);_0x47f75e(_0x287c47),_0x35e4e4=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x5b9900=_0x502796['getCaptionFromImageModelElement'](_0x35e4e4),_0x23a8e9['markInsertion'](_0x29d497['model']['createRangeOn'](_0x5b9900),_0x9ad20d?null:'imageCaption');});}),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x50d185));const _0x5e3fd9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4151d2(_0x42f9fb,_0x2a2cef){const _0x2f067d=_0x5e3fd9['findIndex'](({type:_0x541d67,subType:_0x234732})=>_0x42f9fb['type']==_0x541d67&&_0x42f9fb['subType']==_0x234732),_0x3594db=_0x5e3fd9['findIndex'](({type:_0x2ed4c4,subType:_0x436a0d})=>_0x2a2cef['type']==_0x2ed4c4&&_0x2a2cef['subType']==_0x436a0d);if(_0x2f067d<0x0||_0x3594db<0x0)return!0x1;const _0x4e9a0e=_0x42f9fb['getFirstRange'](),_0xcf6c0=_0x2a2cef['getFirstRange']();if((0x0==_0x2f067d||0x1==_0x2f067d)&&0x2==_0x3594db&&_0x4e9a0e['isIntersecting'](_0xcf6c0))return!0x0;if(0x2==_0x2f067d&&0x3==_0x3594db){const _0x3d9f33=_0x23a8e9['_findSuggestions'](_0x4e9a0e,'insertion')['filter'](({suggestion:_0x7f9dbe,meta:_0x4543e5})=>_0x4543e5['isOwn']&&'convertInlineImageToBlock'==_0x7f9dbe['subType']);if(_0x3d9f33['length']>0x1&&_0xcf6c0['end']['isEqual'](_0x4e9a0e['start']))return!0x0;if(0x1==_0x3d9f33['length']&&(_0x4e9a0e['start']['isEqual'](_0xcf6c0['end'])||_0x4e9a0e['end']['isEqual'](_0xcf6c0['start'])))return!0x0;}if(0x3==_0x2f067d&&0x3==_0x3594db&&_0x4e9a0e['start']['isBefore'](_0xcf6c0['start'])){const _0x5ddecd=_0x4e9a0e['end']['nodeAfter'],_0x1852dc=_0xcf6c0['start']['nodeBefore'];return _0x3b0144['isBlockImage'](_0x5ddecd)&&_0x5ddecd===_0x1852dc;}return!0x1;}function _0x50d185(_0x479599,_0x326b25){return _0x4151d2(_0x479599,_0x326b25)?[_0x479599,_0x326b25]:_0x4151d2(_0x326b25,_0x479599)?[_0x326b25,_0x479599]:null;}_0x29d497['plugins']['has']('ImageResize')&&(_0x23a8e9['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x23a8e9['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2c0c21,'FORMAT_IMAGE_SIZE'))),_0x29d497['plugins']['has']('ImageTextAlternativeEditing')&&_0x23a8e9['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0xff5fb2=>{if(!!_0x5e3fd9['find'](({type:_0x301f71,subType:_0x2f2e5a})=>_0xff5fb2['type']==_0x301f71&&_0xff5fb2['subType']==_0x2f2e5a))return _0xff5fb2['previous']?{}:void 0x0;}),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0x1fb418=>{if('insertion'==_0x1fb418['type']||'deletion'==_0x1fb418['type']){const _0xde37de=_0x1fb418['getContainedElement']();if(_0xde37de&&_0xde37de['is']('element','caption'))return{'type':'insertion'==_0x1fb418['type']?'addObject':'removeObject','element':_0xde37de,'quantity':0x1};}}),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0x2eca61=>'formatBlock'==_0x2eca61['type']&&'convertInlineImageToBlock'==_0x2eca61['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2eca61['type']&&'convertBlockImageToInline'==_0x2eca61['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0x5a34ea=>{if('attribute'!=_0x5a34ea['type'])return;const {data:_0x1ffc44}=_0x5a34ea;if(!_0x1ffc44||'alt'!=_0x1ffc44['key'])return;const _0x4f1990=_0x1ffc44['newValue'];return _0x4f1990?{'type':'format','content':o(_0x2c0c21,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f1990+'\x22')}:{'type':'format','content':o(_0x2c0c21,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452625=this['editor'],_0x296041=_0x452625['locale'];_0x452625['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xc91539=>{if('formatBlock'!=_0xc91539['type']&&'formatInline'!=_0xc91539['type'])return;const {data:_0x52c957}=_0xc91539;if(_0x52c957){if('imageTextAlternative'==_0x52c957['commandName']){const _0x580e5d=_0x52c957['commandParams'][0x0]['newValue'];return _0x580e5d?{'type':'format','content':o(_0x296041,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x580e5d+'\x22')}:{'type':'format','content':o(_0x296041,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52c957['commandName']){const _0x25e358=_0x52c957['commandParams'][0x0]['width'];return _0x25e358?{'type':'format','content':o(_0x296041,'*Set\x20image\x20width:*\x20%0',_0x25e358)}:{'type':'format','content':o(_0x296041,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x252a08=this['editor']['locale'],_0x25a6fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x25a6fe['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x25a6fe['_descriptionFactory']['registerDescriptionCallback'](_0x5e58c8=>{if('attribute'!=_0x5e58c8['type'])return;const {data:_0x1df897}=_0x5e58c8;return _0x1df897&&'src'==_0x1df897['key']?_0x1df897['newValue']&&_0x1df897['oldValue']?{'type':'format','content':o(_0x252a08,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2bf976=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bf976['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2bf976['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bf976['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2bf976['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf8181d=this['editor'],_0x21ad43=_0xf8181d['locale'];_0xf8181d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5de12a=>{if('formatBlock'!=_0x5de12a['type']&&'formatInline'!=_0x5de12a['type'])return;const {data:_0x37983e}=_0x5de12a;if(!_0x37983e||'replaceImageSource'!=_0x37983e['commandName'])return;return{'type':'format','content':o(_0x21ad43,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4de685{['afterInit'](){const _0x590afd=this['editor'];if(!_0x590afd['plugins']['has']('ImageStyleEditing'))return;const _0x557c2b=_0x590afd['plugins']['get']('TrackChangesEditing'),_0x45245b=_0x590afd['plugins']['get']('ImageUtils'),_0x5bc792={};_0x557c2b['enableCommand']('imageStyle',(_0x41fada,_0x4ae7a0)=>{const _0x44e5f8=_0x590afd['plugins']['get']('Users')['me'],_0x582516=_0x590afd['commands']['get']('imageStyle');let _0x1199c3=_0x45245b['getClosestSelectedImageElement'](_0x590afd['model']['document']['selection']),_0x347fb3=_0x590afd['model']['createRangeOn'](_0x1199c3),_0x483b03=_0x582516['value'];if(_0x483b03==_0x4ae7a0['value'])return;const _0x56747b={'commandName':'imageStyle','commandParams':[_0x4ae7a0],'formatGroupId':_0x2c7d4a()};_0x590afd['model']['change'](()=>{if(_0x557c2b['getSuggestions']()['filter'](_0x41c161=>_0x41c161['isInContent']&&_0x44e5f8==_0x41c161['author']&&('formatBlock'==_0x41c161['type']||'formatInline'==_0x41c161['type'])&&('imageStylePreApply'==_0x41c161['subType']||'imageStylePostApply'==_0x41c161['subType'])&&_0x41c161['getFirstRange']()['isEqual'](_0x347fb3))['forEach'](_0xc5a556=>_0x557c2b['discardSuggestion'](_0xc5a556['head'])),_0x1199c3=_0x45245b['getClosestSelectedImageElement'](_0x590afd['model']['document']['selection']),_0x347fb3=_0x590afd['model']['createRangeOn'](_0x1199c3),_0x582516['refresh'](),_0x590afd['commands']['get']('imageTypeInline')['refresh'](),_0x590afd['commands']['get']('imageTypeBlock')['refresh'](),_0x483b03=_0x582516['value'],_0x483b03!=_0x4ae7a0['value'])return _0x45245b['isInlineImage'](_0x1199c3)&&_0x582516['shouldConvertImageType'](_0x4ae7a0['value'],_0x1199c3)?(_0x41fada({..._0x4ae7a0,'setImageSizes':!0x1}),_0x1199c3=_0x45245b['getClosestSelectedImageElement'](_0x590afd['model']['document']['selection']),void _0x557c2b['markBlockFormat'](_0x1199c3,{..._0x56747b,'commandReversedParams':[{'value':_0x483b03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45245b['isBlockImage'](_0x1199c3)?_0x557c2b['markBlockFormat'](_0x1199c3,_0x56747b,[],'imageStylePostApply'):_0x557c2b['markInlineFormat'](_0x347fb3,_0x56747b,'imageStylePostApply'));});});for(const _0x48465e of _0x590afd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5bc792[_0x48465e['name']]=_0x48465e['title']['toLowerCase']();_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x234801])=>{_0x45245b['setImageNaturalSizeAttributes'](_0x234801['getContainedElement']());}),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5334f2,_0x34e5cf)=>{_0x557c2b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5334f2,{'commandName':_0x34e5cf['commandName'],'commandParams':_0x34e5cf['commandReversedParams']});}),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf2ee9c,_0x23f774){if(_0x1ec9b9(_0xf2ee9c,_0x23f774))return[_0xf2ee9c,_0x23f774];if(_0x1ec9b9(_0x23f774,_0xf2ee9c))return[_0x23f774,_0xf2ee9c];return null;});const _0x596516=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ec9b9(_0x1b25e5,_0x46ded5){const _0x45b743=_0x596516['findIndex'](({type:_0x2f7f1e,subType:_0x18fe54})=>_0x1b25e5['type']==_0x2f7f1e&&_0x1b25e5['subType']==_0x18fe54),_0x255ece=_0x596516['findIndex'](({type:_0x1a1c1a,subType:_0x439f4e})=>_0x46ded5['type']==_0x1a1c1a&&_0x46ded5['subType']==_0x439f4e);if(_0x45b743<0x0||_0x255ece<0x0)return!0x1;const _0x48ce3c=_0x1b25e5['getFirstRange'](),_0xae35b8=_0x46ded5['getFirstRange']();if((0x0==_0x45b743||0x1==_0x45b743)&&0x2==_0x255ece&&_0x48ce3c['isIntersecting'](_0xae35b8))return!0x0;if(0x2==_0x45b743&&0x3==_0x255ece){const _0x524ccc=_0x557c2b['_findSuggestions'](_0x48ce3c,'insertion')['filter'](({suggestion:_0x57b986,meta:_0xcb4046})=>_0xcb4046['isOwn']&&'convertInlineImageToBlock'==_0x57b986['subType']);if(_0x524ccc['length']>0x1&&_0xae35b8['end']['isEqual'](_0x48ce3c['start']))return!0x0;if(0x1==_0x524ccc['length']&&(_0x48ce3c['start']['isEqual'](_0xae35b8['end'])||_0x48ce3c['end']['isEqual'](_0xae35b8['start'])))return!0x0;}if(0x3==_0x45b743&&0x3==_0x255ece&&_0x48ce3c['start']['isBefore'](_0xae35b8['start'])){const _0x548e27=_0x48ce3c['end']['nodeAfter'],_0x560ce1=_0xae35b8['start']['nodeBefore'];return _0x45245b['isBlockImage'](_0x548e27)&&_0x548e27===_0x560ce1;}return!0x1;}_0x590afd['model']['document']['registerPostFixer'](()=>{let _0x55dee8=!0x1;const _0x4b9578=Array['from'](_0x590afd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b4b4a,data:_0x5652ae}of _0x4b9578){const {group:_0x47a6d2,type:_0x1a15c9,subType:_0x308410,id:_0x3b1a60}=_0x557c2b['_splitMarkerName'](_0x1b4b4a);if('suggestion'==_0x47a6d2&&_0x557c2b['hasSuggestion'](_0x3b1a60)){if('formatBlock'==_0x1a15c9&&('imageStylePreApply'==_0x308410||'imageStylePostApply'==_0x308410)){const _0x4e3a96=_0x557c2b['getSuggestion'](_0x3b1a60);if(_0x5652ae['newRange']){const _0x34acfb=_0x4e3a96['getFirstRange']()['getContainedElement']();if(_0x45245b['isBlockImage'](_0x34acfb))continue;_0x557c2b['discardSuggestion'](_0x4e3a96),_0x55dee8=!0x0;}}if('insertion'==_0x1a15c9&&'imageCaption'==_0x308410&&!_0x5652ae['newRange']){const _0x3de341=_0x557c2b['getSuggestion'](_0x3b1a60);_0x3de341['next']&&_0x3de341['next']['isInContent']&&(_0x557c2b['discardSuggestion'](_0x3de341['next']),_0x55dee8=!0x0);}}}return _0x55dee8;}),this['_registerLegacyDescription'](_0x5bc792);}['_registerLegacyDescription'](_0x3fcb6d){const _0x10c224=this['editor'],_0x456a14=_0x10c224['locale'];_0x10c224['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xbb169e=>{if('formatBlock'!=_0xbb169e['type']&&'formatInline'!=_0xbb169e['type'])return;const {data:_0x387659}=_0xbb169e;if(!_0x387659||'imageStyle'!=_0x387659['commandName'])return;const _0x3eb134=_0x387659['commandParams'][0x0]['value'];return _0x94727c('side'===_0x3eb134?o(_0x456a14,'FORMAT_SIDE_IMAGE'):_0x3fcb6d[_0x3eb134]||_0x3eb134);function _0x94727c(_0x21e3e4){return{'type':'format','content':o(_0x456a14,'*Format:*\x20%0',_0x21e3e4)};}});}}class ot extends _0x4de685{['afterInit'](){const _0x1cd607=this['editor'],_0x5e7911=_0x1cd607['commands']['get']('importWord'),_0x5df9b0=_0x1cd607['commands']['get']('trackChanges');_0x5e7911&&(_0x5e7911['on']('execute',(_0x38027f,[,_0x4f2d09])=>{this['_trackChangesValueDuringImport']=_0x5df9b0['value'],_0x4f2d09['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5e7911,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5e7911,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5df9b0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1cd607['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2eb95a,_0x399f19){const {suggestions:_0x258cbd}=_0x399f19,_0xa1c934=this['editor']['commands']['get']('trackChanges'),_0x504842=_0xa1c934['value'];this['_trackChangesValueDuringImport']!==_0x504842&&(_0xa1c934['execute'](),this['_trackChangesExecuted']=!0x0),_0x258cbd&&_0x258cbd['forEach'](({id:_0x5c464b,type:_0x67c5fe,author:_0x132ec4,created_at:_0x8d34d8})=>{const _0x405701={'id':_0x5c464b,'type':_0x67c5fe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x132ec4,'createdAt':_0x8d34d8?new Date(_0x8d34d8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x405701);});}constructor(_0x140add){super(_0x140add),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x4de685{['afterInit'](){const _0x2c36f9=this['editor'],_0x395966=_0x2c36f9['plugins']['get']('TrackChangesEditing');if(_0x2c36f9['plugins']['has']('IndentEditing')&&(_0x395966['enableCommand']('indent'),_0x395966['enableCommand']('outdent')),_0x2c36f9['plugins']['has']('IndentBlock')){for(const _0xf9df5b of['indentBlock','outdentBlock'])_0x395966['_enableDefaultAttributesIntegration'](_0xf9df5b);}const _0x124a41=_0x2c36f9['locale'];_0x395966['_registerBlockAttribute']('blockIndent'),_0x395966['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x124a41,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dd18f=this['editor'],_0x2a690d=_0x5dd18f['locale'],_0x690de5=_0x5dd18f['plugins']['get']('TrackChangesEditing');_0x690de5['_descriptionFactory']['registerDescriptionCallback'](_0x59395b=>{if('formatBlock'!=_0x59395b['type'])return;const {data:_0x328c72}=_0x59395b;if(!_0x328c72)return;if('indentBlock'!=_0x328c72['commandName']&&'outdentBlock'!=_0x328c72['commandName'])return;const _0x36ade8=_0x59395b['getItems']()[0x0],_0x3bf6da=_0x690de5['_descriptionFactory']['getItemLabel'](_0x36ade8);return'indentBlock'==_0x328c72['commandName']?{'type':'format','content':o(_0x2a690d,'*Indent:*\x20%0',_0x3bf6da)}:'outdentBlock'==_0x328c72['commandName']?{'type':'format','content':o(_0x2a690d,'*Outdent:*\x20%0',_0x3bf6da)}:void 0x0;});}}class at extends _0x4de685{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4de685{['afterInit'](){const _0x18dd0e=this['editor'];if(!_0x18dd0e['plugins']['has']('LinkEditing'))return;const _0x292904=_0x18dd0e['plugins']['get']('TrackChangesEditing'),_0x373167=_0x18dd0e['commands']['get']('link');_0x292904['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x373167['manualDecorators']['map'](_0x2e4af7=>_0x2e4af7['id'])]),_0x292904['_enableDefaultAttributesIntegration']('unlink');for(const _0x43d524 of _0x373167['manualDecorators'])_0x292904['_descriptionFactory']['registerAttributeLabel'](_0x43d524['id'],'link\x20('+_0x43d524['label']['toLowerCase']()+')');_0x292904['_descriptionFactory']['registerDescriptionCallback'](_0x3a0449=>{if('attribute'!=_0x3a0449['type'])return;const {data:_0x3710d5}=_0x3a0449;if(!_0x3710d5||'linkHref'!=_0x3710d5['key'])return;const _0x4bcdb1=_0x3710d5['newValue'],_0x57eedb=_0x18dd0e['locale'];return{'type':'format','content':null==_0x4bcdb1?o(_0x57eedb,'*Remove\x20link*'):o(_0x57eedb,'*Set\x20link:*\x20%0','\x22'+_0x4bcdb1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5603f6=this['editor'],_0xeabcdd=_0x5603f6['locale'];_0x5603f6['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2a0919=>{if('formatInline'!=_0x2a0919['type'])return;const {data:_0x1e45ba}=_0x2a0919;if(_0x1e45ba){if('link'==_0x1e45ba['commandName']){const _0x2f3cc1=_0x1e45ba['commandParams'][0x0];return{'type':'format','content':o(_0xeabcdd,'*Set\x20link:*\x20%0','\x22'+_0x2f3cc1+'\x22')};}return'unlink'==_0x1e45ba['commandName']?{'type':'format','content':o(_0xeabcdd,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4de685{['afterInit'](){const _0x3bccf2=this['editor'],_0x140c35=_0x3bccf2['locale'];if(!_0x3bccf2['plugins']['has']('LegacyListEditing'))return;const _0x4e9d22=_0x3bccf2['plugins']['get']('TrackChangesEditing'),_0x387be0=_0x3bccf2['plugins']['has']('LegacyTodoListEditing');function _0x658556(_0x384561){return()=>{const _0x520a7c=_0x3bccf2['model']['document']['selection'],_0x4cdb80=_0x3bccf2['commands']['get'](_0x384561);if(_0x4cdb80['value'])return void _0x3bccf2['execute']('paragraph',{});const _0x58f3fc=_0x384561['slice'](0x0,-0x4),_0x418d19=function(_0x142860,_0xc7a1d4,_0x5b4dda){let _0x23347c=Array['from'](_0x142860)['filter'](_0x513fa3=>function(_0x184bb7,_0x201b59){return _0x201b59['checkChild'](_0x184bb7['parent'],'listItem')&&!_0x201b59['isObject'](_0x184bb7);}(_0x513fa3,_0x5b4dda));_0x23347c=_0x23347c['filter'](_0x5ae541=>!_0x5ae541['is']('element','listItem')||_0x5ae541['getAttribute']('listType')!=_0xc7a1d4);const _0x492b53=new Set();for(const _0x29b814 of _0x23347c)_0x29b814['is']('element','listItem')?_0x492b53['add'](me(_0x29b814)):_0x492b53['add'](_0x29b814);return Array['from'](_0x492b53);}(_0x520a7c['getSelectedBlocks'](),_0x58f3fc,_0x3bccf2['model']['schema']);_0x3bccf2['model']['change'](()=>{for(const _0x286d1e of _0x418d19)_0x4e9d22['markBlockFormat'](_0x286d1e,{'commandName':_0x384561,'commandParams':[{'forceValue':!_0x4cdb80['value']}],'formatGroupId':'blockName'},fe(_0x286d1e));});};}function _0x3f193e(_0xa42a85){return()=>{const _0xf55e66=function(_0x5011d6){let _0x1ee4f5=Array['from'](_0x5011d6);const _0x433dfb=_0x1ee4f5['findIndex'](_0xe6ffd1=>'listItem'!=_0xe6ffd1['name']);return _0x433dfb>-0x1&&(_0x1ee4f5=_0x1ee4f5['slice'](0x0,_0x433dfb)),_0x1ee4f5;}(_0x3bccf2['model']['document']['selection']['getSelectedBlocks']()),_0x5645e6=_0x3bccf2['model']['createRange'](_0x3bccf2['model']['createPositionAt'](_0xf55e66[0x0],'before'),_0x3bccf2['model']['createPositionAt'](_0xf55e66[_0xf55e66['length']-0x1],'end'));_0x3bccf2['model']['change'](()=>{_0x4e9d22['markBlockFormat'](_0x5645e6,{'commandName':_0xa42a85,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1296e0){const _0x2caed2=new Set();for(const _0x373835 of _0x1296e0){let _0x142766=_0x373835['nextSibling'];for(;_0x142766&&_0x142766['getAttribute']('listIndent')>_0x373835['getAttribute']('listIndent');)_0x2caed2['add'](_0x142766),_0x142766=_0x142766['nextSibling'];}return Array['from'](_0x2caed2);}(_0xf55e66));});};}_0x4e9d22['enableCommand']('numberedList',_0x658556('numberedList')),_0x4e9d22['enableCommand']('bulletedList',_0x658556('bulletedList')),_0x387be0&&_0x4e9d22['enableCommand']('todoList',_0x658556('todoList')),_0x4e9d22['enableCommand']('indentList',_0x3f193e('indentList')),_0x4e9d22['enableCommand']('outdentList',_0x3f193e('outdentList')),_0x387be0&&_0x4e9d22['enableCommand']('checkTodoList',()=>{const _0x423749=_0x3bccf2['commands']['get']('checkTodoList'),_0x5b46c9=Array['from'](_0x423749['_selectedElements']);_0x5b46c9['filter'](_0x3536dc=>_0x3536dc['getAttribute']('todoListChecked')!=_0x423749['value']),_0x3bccf2['model']['change'](()=>{for(const _0x588de4 of _0x5b46c9)_0x4e9d22['markBlockFormat'](_0x588de4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x423749['value']}]});});}),_0x4e9d22['_descriptionFactory']['registerElementLabel']('listItem',_0x59b53c=>o(_0x140c35,'ELEMENT_LIST_ITEM',_0x59b53c)),_0x4e9d22['_descriptionFactory']['registerDescriptionCallback'](_0x254b74=>{if('formatBlock'!=_0x254b74['type']&&'formatInline'!=_0x254b74['type'])return;const {data:_0x532ef7}=_0x254b74;if(_0x532ef7){if('numberedList'==_0x532ef7['commandName']||'bulletedList'==_0x532ef7['commandName']||'todoList'==_0x532ef7['commandName'])switch(_0x532ef7['commandName']['replace']('List','')){case'bulleted':return _0x2e326f(o(_0x140c35,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e326f(o(_0x140c35,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e326f(o(_0x140c35,'ELEMENT_TODO_LIST'));}if('indentList'==_0x532ef7['commandName'])return{'type':'format','content':o(_0x140c35,'*Indent:*\x20%0',o(_0x140c35,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x532ef7['commandName'])return{'type':'format','content':o(_0x140c35,'*Outdent:*\x20%0',o(_0x140c35,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x532ef7['commandName'])return _0x532ef7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x140c35,'*Check\x20item*')}:{'type':'format','content':o(_0x140c35,'*Uncheck\x20item*')};}function _0x2e326f(_0x40285a){return{'type':'format','content':o(_0x140c35,'*Change\x20to:*\x20%0',_0x40285a)};}});}}function me(_0x125a91){const _0x240f3a=_0x125a91['getAttribute']('listIndent');if(0x0==_0x240f3a)return _0x125a91;let _0x42f2de=_0x125a91;for(;_0x125a91['previousSibling']&&_0x125a91['previousSibling']['is']('element','listItem');){const _0x192d07=_0x125a91['previousSibling']['getAttribute']('listIndent');if(_0x192d07==_0x240f3a)_0x42f2de=_0x125a91['previousSibling'];else{if(_0x192d07<_0x240f3a)break;}_0x125a91=_0x125a91['previousSibling'];}return _0x42f2de;}function fe(_0x1d5c91){const _0xf4c1a7=[];if(_0x1d5c91['is']('element','listItem')&&_0x1d5c91['getAttribute']('listIndent')>0x0){let _0x31f8ff=_0x1d5c91['nextSibling'];for(;_0x31f8ff&&'listItem'==_0x31f8ff['name']&&_0x31f8ff['getAttribute']('listIndent')==_0x1d5c91['getAttribute']('listIndent');)_0xf4c1a7['push'](_0x31f8ff),_0x31f8ff=_0x31f8ff['nextSibling'];}return _0xf4c1a7;}class K extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32abd2=this['editor']['config']['get']('list.properties'),_0x13665=this['editor']['plugins']['get']('TrackChangesEditing');_0x32abd2['styles']&&_0x13665['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32abd2['reversed']&&_0x13665['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32abd2['startIndex']&&_0x13665['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13665['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37702e,_0x576b18={}){const _0x31f9c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3dd1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x31f9c7['markMultiRangeBlockFormat'](_0x4c3dd1,{'commandName':'listStyle','commandParams':[{'type':_0x576b18['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39b780,_0x23c947={}){const _0x58c74e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x475b60=this['_getSuggestionBlocks'](_0x39ad6b=>_0x39ad6b['is']('element','listItem')&&'numbered'===_0x39ad6b['getAttribute']('listType'));if(_0x475b60['length']<0x1)return;const _0x3b4443=_0x475b60['map'](_0x357dbe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x357dbe,'before'),this['editor']['model']['createPositionAt'](_0x357dbe,0x0)));this['editor']['model']['change'](()=>{_0x58c74e['markMultiRangeBlockFormat'](_0x3b4443,{'commandName':'listReversed','commandParams':[{'reversed':_0x23c947['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xec216a,_0xf2e5b1={}){const _0x55456a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6b762=this['_getSuggestionBlocks'](_0x118345=>_0x118345['is']('element','listItem')&&'numbered'===_0x118345['getAttribute']('listType'));if(_0xa6b762['length']<0x1)return;const _0x39f980=_0xa6b762['map'](_0x2002d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2002d5,'before'),this['editor']['model']['createPositionAt'](_0x2002d5,0x0)));this['editor']['model']['change'](()=>{_0x55456a['markMultiRangeBlockFormat'](_0x39f980,{'commandName':'listStart','commandParams':[{'startIndex':_0xf2e5b1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2271ab){if('formatBlock'!=_0x2271ab['type']&&'formatInline'!=_0x2271ab['type'])return;const _0x471e43=this['editor']['locale'],{data:_0x343ecc}=_0x2271ab;if(!_0x343ecc)return;let _0x43a749,_0x2b72d3;switch(_0x343ecc['commandName']){case'listStyle':_0x43a749='*Change\x20to:*\x20%0',_0x2b72d3={'type':'format','content':o(_0x471e43,_0x43a749,o(_0x471e43,this['_getTranslationKeyForListStyle'](_0x343ecc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43a749=_0x343ecc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b72d3={'type':'format','content':o(_0x471e43,_0x43a749)};break;case'listStart':_0x43a749='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b72d3={'type':'format','content':o(_0x471e43,_0x43a749,_0x343ecc['commandParams'][0x0]['startIndex'])};}return _0x2b72d3;}['_getSuggestionBlocksForListStyle'](){var _0x458193,_0x2906b0,_0x37cced,_0x57d4af;const _0x535a1f=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bb38b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x458193=_0x2bb38b[0x0])||void 0x0===_0x458193?void 0x0:_0x458193['is']('element','listItem'))&&_0x2bb38b['unshift'](..._0x535a1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x2906b0=_0x2bb38b[_0x2bb38b['length']-0x1])||void 0x0===_0x2906b0?void 0x0:_0x2906b0['is']('element','listItem'))&&_0x2bb38b['push'](..._0x535a1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bb38b=[...new Set(_0x2bb38b)],(null===(_0x57d4af=null===(_0x37cced=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x37cced?void 0x0:_0x37cced['parent'])||void 0x0===_0x57d4af?void 0x0:_0x57d4af['is']('element','listItem'))&&(_0x2bb38b=_0x2bb38b['filter'](_0x4f6459=>_0x4f6459['is']('element','listItem'))),_0x2bb38b;}['_getSuggestionBlocks'](_0x259a02){const _0x4d925f=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b81c9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x259a02)['map'](_0xd67253=>{const _0x147290=this['editor']['model']['createPositionAt'](_0xd67253,0x0);return[..._0x4d925f['getSiblingNodes'](_0x147290,'backward'),..._0x4d925f['getSiblingNodes'](_0x147290,'forward')];})['flat']();return _0x5b81c9=[...new Set(_0x5b81c9)],_0x5b81c9;}['_getTranslationKeyForListStyle'](_0x2a51fc){return'ELEMENT_'+this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2a51fc)['toUpperCase']()+'_LIST_'+_0x2a51fc['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4de685{['afterInit'](){const _0x398bf8=this['editor'];if(!_0x398bf8['plugins']['has']('MediaEmbedEditing'))return;const _0x49d107=_0x398bf8['plugins']['get']('TrackChangesEditing'),_0x1be944=_0x398bf8['locale'];_0x49d107['enableCommand']('mediaEmbed'),_0x49d107['_descriptionFactory']['registerElementLabel']('media',_0x12875c=>o(_0x1be944,'ELEMENT_MEDIA',_0x12875c)),_0x398bf8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x564598,{writer:_0xd3e9d1,options:_0x13803c})=>{if(_0x13803c['showSuggestionHighlights'])return _0xd3e9d1['createEmptyElement']('div');},'converterPriority':'high'}),_0x398bf8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193a0d,_0x29eca3,_0x5560e2)=>{_0x5560e2['options']['showSuggestionHighlights']&&_0x193a0d['stop']();},{'priority':'high'});}}class gt extends _0x4de685{['afterInit'](){const _0x2d3aa0=this['editor'];_0x2d3aa0['plugins']['has']('MentionEditing')&&_0x2d3aa0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4de685{['afterInit'](){const _0x2c8c52=this['editor'],_0x4af7cb=_0x2c8c52['plugins']['get']('TrackChangesEditing');_0x2c8c52['plugins']['has']('MultiLevelList')&&(_0x4af7cb['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0x4af7cb['_descriptionFactory']['registerDescriptionCallback'](_0x593a24=>this['handleDescriptions'](_0x593a24)));}['handleDescriptions'](_0x1baf46){const _0x51d833=this['editor']['locale'],{data:_0x4761aa}=_0x1baf46,_0xfeeed7={'type':'format','content':''};if(_0x4761aa&&'listMarkerStyle'==_0x4761aa['key']){if(!_0x4761aa['oldValue'])return{'type':'format','content':o(_0x51d833,'*Set\x20format:*\x20%0',o(_0x51d833,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4761aa['newValue']+')'};if(!_0x4761aa['newValue']){let _0x25eb95=_0x1baf46['head'];for(;_0x25eb95;){if(_0x25eb95['data']&&'listType'==_0x25eb95['data']['key']&&_0x25eb95['data']['newValue'])return _0xfeeed7;_0x25eb95=_0x25eb95['next'];}return{'type':'format','content':o(_0x51d833,'*Remove\x20format:*\x20%0',o(_0x51d833,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4761aa['oldValue']+')'};}}}}class mt extends _0x4de685{['afterInit'](){const _0x574574=this['editor'];if(!_0x574574['plugins']['has']('PageBreakEditing'))return;_0x574574['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x58a5db=_0x574574['plugins']['get']('TrackChangesEditing'),_0x34be42=_0x574574['locale'];_0x58a5db['_descriptionFactory']['registerElementLabel']('pageBreak',_0x37b4fa=>o(_0x34be42,'ELEMENT_PAGE_BREAK',_0x37b4fa));}}class dt extends _0x4de685{['afterInit'](){const _0x496c63=this['editor'];if(!_0x496c63['plugins']['has']('Paragraph'))return;const _0x300549=_0x496c63['locale'],_0x5804a7=_0x496c63['plugins']['get']('TrackChangesEditing');_0x5804a7['_descriptionFactory']['registerElementLabel']('paragraph',_0x469f8f=>o(_0x300549,'ELEMENT_PARAGRAPH',_0x469f8f)),_0x5804a7['_enableDefaultAttributesIntegration']('paragraph'),_0x5804a7['enableCommand']('insertParagraph'),_0x496c63['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x496c63),{'priority':'highest'}),_0x496c63['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40215b,_0x416a7e,_0x4ddb54)=>{_0x4ddb54['options']['showSuggestionHighlights']&&nr(_0x496c63,{'showActiveMarker':!0x1})(_0x40215b,_0x416a7e,_0x4ddb54);},{'priority':'highest'});const _0x2d3de5=_0x5804a7['_descriptionFactory'];_0x2d3de5['registerDescriptionCallback'](_0x37f3c7=>{if('insertion'!==_0x37f3c7['type'])return;const {start:_0x2e7c55,end:_0x2dfb5b}=_0x37f3c7['getFirstRange']();if(!_0x2e7c55['isTouching'](_0x2dfb5b)||!_0x2e7c55['nodeAfter'])return;const _0x176b0c=_0x496c63['model']['schema'],_0x7fb3ee=_0x2e7c55['nodeAfter'];return _0x176b0c['isBlock'](_0x7fb3ee)&&!_0x176b0c['isLimit'](_0x7fb3ee)&&_0x176b0c['checkChild'](_0x7fb3ee,'$text')?{'type':'insertion','content':o(_0x300549,'*Insert:*\x20%0',_0x2d3de5['getItemLabel'](_0x7fb3ee,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x362be4=this['editor'],_0x2bdcfc=_0x362be4['locale'];_0x362be4['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1988a9=>{if('formatBlock'!=_0x1988a9['type'])return;const {data:_0x1af31a}=_0x1988a9;return _0x1af31a&&'paragraph'==_0x1af31a['commandName']?{'type':'format','content':o(_0x2bdcfc,'*Change\x20to:*\x20%0',o(_0x2bdcfc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2ebe5b,{showActiveMarker:_0x1f2630=!0x0}={}){return(_0x4c3690,_0x397270,_0xeedfb4)=>{const _0x1c3737=_0x2ebe5b['plugins']['get']('TrackChangesEditing'),_0x549b6e=_0x397270['markerRange']['start'],_0x5ae262=_0x397270['markerRange']['end'],_0x449417=_0x2ebe5b['model']['schema'];if(!_0x549b6e['isTouching'](_0x5ae262)||!_0x549b6e['nodeAfter'])return;const _0x5c9614=_0x549b6e['nodeAfter'];if(_0x449417['isBlock'](_0x5c9614)&&!_0x449417['isLimit'](_0x5c9614)&&_0x449417['checkChild'](_0x5c9614,'$text')){if(!_0xeedfb4['consumable']['consume'](_0x397270['markerRange'],_0x4c3690['name']))return;const _0x54b0a0=_0xeedfb4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2d342a=_0xeedfb4['mapper']['toViewPosition'](_0x5ae262);_0x1f2630&&_0x1c3737['activeMarkers']['includes'](_0x397270['markerName'])&&_0xeedfb4['writer']['addClass']('ck-suggestion-marker--active',_0x54b0a0),_0xeedfb4['writer']['insert'](_0x2d342a,_0x54b0a0),_0xeedfb4['mapper']['bindElementToMarker'](_0x54b0a0,_0x397270['markerName']);}};}class pt extends _0x4de685{['afterInit'](){const _0x571468=this['editor'];if(!_0x571468['plugins']['has']('RemoveFormatEditing'))return;_0x571468['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de551=this['editor'];_0x4de551['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2177b3=>{if('formatBlock'!=_0x2177b3['type']&&'formatInline'!=_0x2177b3['type'])return;const {data:_0x5ad1de}=_0x2177b3;return _0x5ad1de&&'removeFormat'==_0x5ad1de['commandName']?{'type':'format','content':o(_0x4de551['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4de685{['afterInit'](){const _0x21b74e=this['editor'];if(!_0x21b74e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x323cec=_0x21b74e['plugins']['get']('TrackChangesEditing');_0x323cec['enableCommand']('goToPreviousRestrictedEditingException'),_0x323cec['enableCommand']('goToNextRestrictedEditingException');const _0x3fc4b6=_0x21b74e['plugins']['get']('RestrictedEditingModeEditing');_0x3fc4b6['enableCommand']('trackChanges'),_0x3fc4b6['enableCommand']('acceptSuggestion'),_0x3fc4b6['enableCommand']('discardSuggestion'),_0x3fc4b6['enableCommand']('acceptAllSuggestions'),_0x3fc4b6['enableCommand']('discardAllSuggestions'),_0x3fc4b6['enableCommand']('acceptSelectedSuggestions'),_0x3fc4b6['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4de685{static get['requires'](){return[_0x39eacd];}['init'](){const _0x98a994=this['editor'],_0x4ba133=_0x98a994['plugins']['get']('TrackChangesEditing');_0x4ba133['enableCommand']('shiftEnter'),_0x98a994['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x98a994),{'priority':'high'}),_0x98a994['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x98a994),{'priority':'high'}),_0x98a994['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cbbed,_0x1c26d6,_0x3b2cec)=>{_0x3b2cec['options']['showSuggestionHighlights']&&de(_0x98a994,{'showActiveMarker':!0x1})(_0x5cbbed,_0x1c26d6,_0x3b2cec);}),_0x4ba133['_descriptionFactory']['registerElementLabel']('softBreak',_0x2e552a=>o(_0x98a994['locale'],'ELEMENT_LINE_BREAK',_0x2e552a));}}function de(_0x401825,{showActiveMarker:_0x4821a9=!0x0}={}){return(_0x41b837,_0x1049fa,_0x28a31f)=>{const _0x37233c=_0x401825['plugins']['get']('TrackChangesEditing');if(!_0x28a31f['consumable']['test'](_0x1049fa['markerRange'],_0x41b837['name']))return;const _0x67f59=_0x401825['model'];for(const _0x18bdfa of _0x1049fa['markerRange']['getItems']()){if(!_0x18bdfa['is']('element','softBreak'))continue;const _0x3147da='deletion'==_0x1049fa['markerName']['split'](':')[0x1]?'merge':'split',_0xb9424f=_0x28a31f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3147da}),_0x2889ce=_0x28a31f['mapper']['toViewPosition'](_0x67f59['createPositionBefore'](_0x18bdfa));_0x4821a9&&_0x37233c['activeMarkers']['includes'](_0x1049fa['markerName'])&&_0x28a31f['writer']['addClass']('ck-suggestion-marker--active',_0xb9424f),_0x28a31f['writer']['insert'](_0x2889ce,_0xb9424f),_0x28a31f['mapper']['bindElementToMarker'](_0xb9424f,_0x1049fa['markerName']);}};}class wt extends _0x4de685{['afterInit'](){const _0x2ed583=this['editor'],_0x4797de=_0x2ed583['model'],_0x4329a7=_0x2ed583['locale'];if(!_0x2ed583['plugins']['has']('StandardEditingModeEditing'))return;const _0x572d9a=_0x2ed583['plugins']['get']('TrackChangesEditing'),_0x463f6a='restrictedEditingException',_0xbe7903=_0x2ed583['commands']['get'](_0x463f6a);_0x572d9a['enableCommand'](_0x463f6a,(_0x33d0a1,_0x16e50a={})=>{const _0x3f37d2=_0x4797de['document']['selection'];if(_0x3f37d2['isCollapsed'])return void _0x33d0a1(_0x16e50a);const _0x153fcb=void 0x0!==_0x16e50a['forceValue']?_0x16e50a['forceValue']:!_0xbe7903['value'];_0x4797de['change'](()=>{const _0x674076=Array['from'](_0x3f37d2['getRanges']());for(const _0x3259c2 of _0x674076){const _0x593f71=_0x153fcb?[_0x3259c2]:io(_0x463f6a,_0x3259c2,_0x4797de);for(const _0x3ca71b of _0x593f71)_0x572d9a['markInlineFormat'](_0x3ca71b,{'commandName':_0x463f6a,'commandParams':[{'forceValue':_0x153fcb}]});}});}),_0x572d9a['_descriptionFactory']['registerDescriptionCallback'](_0x2c94e7=>{if('formatBlock'!=_0x2c94e7['type']&&'formatInline'!=_0x2c94e7['type'])return;const {data:_0x829ab7}=_0x2c94e7;return _0x829ab7&&_0x829ab7['commandName']==_0x463f6a?_0x829ab7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4329a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4329a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4de685{['afterInit'](){const _0x409da1=this['editor'];if(!_0x409da1['plugins']['has']('Style')||!_0x409da1['plugins']['has']('DataSchema'))return;const _0x5f2665=_0x409da1['plugins']['get']('TrackChangesEditing'),_0x496fd9=_0x409da1['locale'],_0x13dd1c=_0x409da1['config']['get']('style')||{},_0x3549c8=_0x409da1['plugins']['get']('GeneralHtmlSupport'),_0x243b82=_0x409da1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x409da1['plugins']['get']('DataSchema'),_0x13dd1c['definitions']);_0x5f2665['_enableDefaultAttributesIntegration']('style');const _0x44570c=new Set();for(const _0x5717df of _0x243b82['block']){const _0x439044=_0x3549c8['getGhsAttributeNameForElement'](_0x5717df['element']);_0x44570c['add'](_0x439044);}const _0x10187d=new Set();for(const _0x4340fd of _0x243b82['inline']){const _0x4fbe52=_0x3549c8['getGhsAttributeNameForElement'](_0x4340fd['element']);_0x10187d['add'](_0x4fbe52);for(const _0x14acd9 of _0x4340fd['ghsAttributes'])_0x10187d['add'](_0x14acd9);}for(const _0x52f8fa of _0x44570c)_0x5f2665['_registerBlockAttribute'](_0x52f8fa),_0x5f2665['_descriptionFactory']['registerAttributeLabel'](_0x52f8fa,o(_0x496fd9,'FORMAT_STYLE'));for(const _0x490e24 of _0x10187d)_0x5f2665['_registerInlineAttribute'](_0x490e24),_0x5f2665['_descriptionFactory']['registerAttributeLabel'](_0x490e24,o(_0x496fd9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eb9c9=this['editor'],_0x54d12f=_0x3eb9c9['locale'];_0x3eb9c9['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x565ad8=>{if('formatBlock'!=_0x565ad8['type']&&'formatInline'!=_0x565ad8['type'])return;const {data:_0x25ec26}=_0x565ad8;return _0x25ec26&&'style'===_0x25ec26['commandName']?_0x25ec26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54d12f,'*Set\x20format:*\x20%0',_0x25ec26['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x54d12f,'*Remove\x20format:*\x20%0',_0x25ec26['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4de685{['afterInit'](){const _0xe98a8c=this['editor'],_0x4bcb6f=_0xe98a8c['model']['document']['selection'];if(!_0xe98a8c['plugins']['has']('TableEditing'))return;const _0x2f2f70=_0xe98a8c['locale'],_0x423955=_0xe98a8c['plugins']['get']('TrackChangesEditing'),_0x436bb9=_0xe98a8c['plugins']['get']('TableUtils');_0x423955['_descriptionFactory']['registerElementLabel']('table',_0x37def5=>o(_0x2f2f70,'ELEMENT_TABLE',_0x37def5)),this['_setupColumnsRowsFixing'](),_0x423955['enableCommand']('insertTable'),_0x423955['enableCommand']('selectTableRow'),_0x423955['enableCommand']('selectTableColumn');for(const _0x16a8bc of['insertTableRowAbove','insertTableRowBelow']){const _0x29b5d1=_0xe98a8c['commands']['get'](_0x16a8bc);_0x423955['enableCommand'](_0x16a8bc,_0xab4936=>{_0xe98a8c['model']['change'](_0x386745=>{_0xab4936();const _0x5c1d2d='above'===_0x29b5d1['order'],_0x36f5c1=_0x436bb9['getSelectionAffectedTableCells'](_0x4bcb6f),_0x726f06=_0x436bb9['getRowIndexes'](_0x36f5c1),_0x1aa59a=_0x5c1d2d?_0x726f06['first']-0x1:_0x726f06['last']+0x1,_0x1743af=_0x36f5c1[0x0]['findAncestor']('table'),_0x3244eb=_0x436bb9['createTableWalker'](_0x1743af,{'startRow':_0x1aa59a,'endRow':_0x1aa59a}),_0x23447f=Array['from'](_0x3244eb)['map'](_0x35049b=>_0x386745['createRangeOn'](_0x35049b['cell']));_0x423955['markMultiRangeInsertion'](_0x23447f,'tableRow');});});}for(const _0x148093 of['insertTableColumnLeft','insertTableColumnRight']){const _0x11cda2=_0xe98a8c['commands']['get'](_0x148093);_0x423955['enableCommand'](_0x148093,_0x4a056c=>{_0xe98a8c['model']['change'](_0x187b29=>{_0x4a056c();const _0x1a5e8e='left'===_0x11cda2['order'],_0x4fa0f8=_0x436bb9['getSelectionAffectedTableCells'](_0x4bcb6f),_0x2409dd=_0x436bb9['getColumnIndexes'](_0x4fa0f8),_0x13c62e=_0x1a5e8e?_0x2409dd['first']-0x1:_0x2409dd['last']+0x1,_0x2f9e4f=_0x4fa0f8[0x0]['findAncestor']('table'),_0xe93434=_0x436bb9['createTableWalker'](_0x2f9e4f,{'startRow':0x0,'column':_0x13c62e,'includeAllSlots':!0x1}),_0x19b4a9=Array['from'](_0xe93434)['map'](_0x5a8bb9=>_0x187b29['createRangeOn'](_0x5a8bb9['cell']));_0x423955['markMultiRangeInsertion'](_0x19b4a9,'tableColumn');});});}for(const _0x3ab656 of['removeTableRow','removeTableColumn']){const _0x2431c2=_0x3ab656['substr'](0xb),_0xbce4e1=_0x2431c2['toLowerCase'](),_0x2a649a=_0xbce4e1['substr'](0x0,0x3)+'span',_0x422477='table'+_0x2431c2,_0x246667='min'+_0x2431c2,_0x4e4248='max'+_0x2431c2;_0x423955['enableCommand'](_0x3ab656,()=>{_0xe98a8c['model']['change'](_0x449f0a=>{const _0x16b761=_0x436bb9['getSelectionAffectedTableCells'](_0x4bcb6f),_0x1729ed=_0x16b761[0x0]['findAncestor']('table');let _0x5d0095;if('removeTableRow'==_0x3ab656){const _0x5e9d3a=_0x436bb9['getRowIndexes'](_0x16b761);_0x5d0095={'startRow':_0x5e9d3a['first'],'endRow':_0x5e9d3a['last'],'includeAllSlots':!0x0};}else{const _0xcee4e5=_0x436bb9['getColumnIndexes'](_0x16b761);_0x5d0095={'startColumn':_0xcee4e5['first'],'endColumn':_0xcee4e5['last'],'includeAllSlots':!0x0};}const _0x3289a6=_0x436bb9['createTableWalker'](_0x1729ed,_0x5d0095),_0x946bd6=Array['from'](_0x3289a6)['map'](({cell:_0xf75a30})=>_0xf75a30),_0x51aa02=Ee(_0x946bd6['filter'](_0x2a53f0=>_0x2a53f0['hasAttribute'](_0x2a649a))),_0x2de165=Ee(_0x946bd6['filter'](_0x1d981d=>!_0x1d981d['hasAttribute'](_0x2a649a)))['map'](_0x23b948=>_0x449f0a['createRangeOn'](_0x23b948)),_0x20fa74=_0x423955['markMultiRangeDeletion'](_0x2de165,_0x422477);if(_0x20fa74&&('tableRow'==_0x20fa74['subType']||'tableColumn'==_0x20fa74['subType'])){const _0x383c6d=this['_getSuggestionCoords'](_0x20fa74);for(const _0x4c74d6 of _0x51aa02){const _0x61e4c5=_0x449f0a['createRangeOn'](_0x4c74d6),_0x4fa7c9=_0x436bb9['getCellLocation'](_0x4c74d6),_0x4d73fe=_0x4c74d6['getAttribute'](_0x2a649a)-0x1,_0x15bf4a=_0x383c6d[_0x246667],_0x15bb5f=_0x383c6d[_0x4e4248];_0x15bf4a<=_0x4fa7c9[_0xbce4e1]&&_0x4fa7c9[_0xbce4e1]+_0x4d73fe<=_0x15bb5f&&_0x20fa74['addRange'](_0x61e4c5);}}});});}function _0x375a21(_0x2fb3c2){const _0x2ca421=Array['from'](_0x4bcb6f['getRanges']())['map'](_0x206407=>_0x3d4179['fromRange'](_0x206407));_0xe98a8c['model']['change'](_0x4173d7=>{const _0x384ef0=_0x4173d7['batch'];_0x2fb3c2=_0x2fb3c2['filter'](_0x37d256=>'$graveyard'!=_0x37d256['root']['rootName']),_0x4173d7['setSelection'](_0x2fb3c2),_0xe98a8c['commands']['get']('removeTableRow')['refresh'](),_0xe98a8c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xe98a8c['model']['enqueueChange'](()=>{_0xe98a8c['model']['enqueueChange'](_0x384ef0,_0x137ded=>{const _0x5130ad=_0x2ca421['filter'](_0x40553b=>'$graveyard'!=_0x40553b['root']['rootName']);_0x5130ad['length']>0x0&&_0x137ded['setSelection'](_0x5130ad);for(const _0x58ab55 of _0x2ca421)_0x58ab55['detach']();});});});}function _0x4bc325(_0x550c78){_0xe98a8c['model']['change'](_0x273442=>{const _0xdc4f6c=Array['from'](_0x4bcb6f['getRanges']())['map'](_0x18ec3=>_0x3d4179['fromRange'](_0x18ec3)),_0x19470f=[];for(const _0x362c25 of _0x550c78)for(const _0x4de590 of _0x362c25['getItems']({'shallow':!0x0}))_0x19470f['push'](_0x4de590);for(const _0x52ca55 of _0x19470f)'$graveyard'!=_0x52ca55['root']['rootName']&&(_0x273442['setSelection'](_0x273442['createPositionAt'](_0x52ca55,0x0)),_0xe98a8c['commands']['get']('removeTableColumn')['refresh'](),_0xe98a8c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33965b=_0xdc4f6c['filter'](_0x3ee58a=>'$graveyard'!=_0x3ee58a['root']['rootName']);_0x33965b['length']>0x0&&_0x273442['setSelection'](_0x33965b);for(const _0x1ffa8 of _0xdc4f6c)_0x1ffa8['detach']();});}function _0x32afd5(_0x4bb30c,_0x3d6337){return _0x3d6337['every'](_0x261ef5=>_0x4bb30c['some'](_0x3a4d04=>_0x3a4d04['end']['isEqual'](_0x261ef5['start'])||_0x261ef5['end']['isEqual'](_0x3a4d04['start'])));}function _0x1dbf32(_0x53fe52,_0x498684){return _0x53fe52['some'](_0x22a770=>_0x498684['some'](_0xa04611=>_0x22a770['end']['isTouching'](_0xa04611['start'])));}_0xe98a8c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c75ea,_0x476233,_0x809bee)=>{if(!_0x809bee['options']['showSuggestionHighlights'])return;const _0x4394aa=_0x476233['item'];if(!_0x4394aa)return;const _0x4bc596=_0x809bee['mapper']['toViewElement'](_0x4394aa);function _0x4ba537(_0x1a3600){return Array['isArray'](_0x1a3600)?_0x1a3600:[_0x1a3600];}_0x4bc596&&'tableCell'===_0x4394aa['name']&&_0x56a69a(_0x4bc596,_0x809bee['writer'],(_0x4d59ca,_0x4fc488,_0x1a80c6)=>_0x1a80c6['addClass'](_0x4ba537(_0x4fc488['classes']),_0x4d59ca),(_0x1b3044,_0x5976e9,_0x229f57)=>_0x229f57['removeClass'](_0x4ba537(_0x5976e9['classes']),_0x1b3044));},{'priority':'highest'}),_0x423955['_descriptionFactory']['registerDescriptionCallback'](_0x233d68=>{if('insertion'!=_0x233d68['type']&&'deletion'!=_0x233d68['type'])return;const _0x42c847=_0x233d68['getContainedElement']();if(null!=_0x42c847&&_0x42c847['is']('element','table')){if('insertion'==_0x233d68['type']){const _0x1db390=_0x233d68['getItems']()['filter'](_0x3c99fe=>_0x3c99fe['is']('$textProxy'))['map'](_0x2a5280=>_0x2a5280['data']);if(_0x1db390['length'])return{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1db390['join']('\x20')+'\x22'))};}if('deletion'==_0x233d68['type']){const _0x2fefe2=_0x233d68['getItems']()['filter'](_0x18f09d=>_0x18f09d['is']('$textProxy'))['map'](_0x141c25=>_0x141c25['data']);if(_0x2fefe2['length'])return{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2fefe2['join']('\x20')+'\x22'))};}}}),_0x423955['_descriptionFactory']['registerDescriptionCallback'](_0x566bb0=>{if('tableRow'==_0x566bb0['subType']){const _0x50e3d8=_0x566bb0['getItems']()['filter'](_0x23724e=>_0x23724e['is']('$textProxy'))['map'](_0x4d37fc=>_0x4d37fc['data']),_0x1da60f=this['_getSuggestionCoords'](_0x566bb0),_0x1b2251=_0x1da60f['maxRow']-_0x1da60f['minRow']+0x1;if('insertion'==_0x566bb0['type'])return _0x50e3d8['length']?{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b2251,'\x22'+_0x50e3d8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW',_0x1b2251))};if('deletion'==_0x566bb0['type'])return _0x50e3d8['length']?{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b2251,'\x22'+_0x50e3d8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW',_0x1b2251))};}if('tableColumn'==_0x566bb0['subType']){const _0x17911a=_0x566bb0['getItems']()['filter'](_0x563ec5=>_0x563ec5['is']('$textProxy'))['map'](_0x4684cb=>_0x4684cb['data']),_0x4acc06=this['_getSuggestionCoords'](_0x566bb0),_0x3972cb=_0x4acc06['maxColumn']-_0x4acc06['minColumn']+0x1;if('insertion'==_0x566bb0['type'])return _0x17911a['length']?{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3972cb,'\x22'+_0x17911a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN',_0x3972cb))};if('deletion'==_0x566bb0['type'])return _0x17911a['length']?{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3972cb,'\x22'+_0x17911a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN',_0x3972cb))};}}),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x375a21),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x375a21),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4bc325),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4bc325),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x32afd5),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x32afd5),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1dbf32),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1dbf32);}['_acceptFormatSuggestionCallbackFactory'](){const _0x240259=this['editor'],_0x2945a7=_0x240259['model']['document']['selection'];return(_0x234688,_0x4c2063)=>{_0x240259['model']['change'](_0x5a7eb0=>{const {commandName:_0x44d1dd,commandParams:_0x518379}=_0x4c2063;let _0x3b49d5=_0x234688[0x0]['end']['nodeBefore'];_0x518379&&_0x518379[0x0]&&!0x1===_0x518379[0x0]['forceValue']&&(_0x3b49d5=_0x234688[0x0]['start']['nodeAfter']);const _0x225cd7=_0x5a7eb0['createRangeIn'](_0x3b49d5);if('$graveyard'==_0x225cd7['root']['rootName'])return;const _0x20e3b4=Array['from'](_0x2945a7['getRanges']())['map'](_0x11a172=>_0x3d4179['fromRange'](_0x11a172));_0x5a7eb0['setSelection'](_0x225cd7),_0x240259['commands']['get'](_0x44d1dd)['refresh'](),_0x518379['push']({'forceDefaultExecution':!0x0}),_0x240259['execute'](_0x44d1dd,..._0x518379);const _0x2a1210=_0x20e3b4['filter'](_0x1ab737=>'$graveyard'!=_0x1ab737['root']['rootName']);_0x2a1210['length']>0x0&&_0x5a7eb0['setSelection'](_0x2a1210);for(const _0x3c2f2b of _0x20e3b4)_0x3c2f2b['detach']();});};}['_getCoordsForCells'](_0x571f3f){const _0x13cbfb=this['editor']['plugins']['get']('TableUtils');let _0x200326=Number['MAX_SAFE_INTEGER'],_0x544a63=Number['MIN_SAFE_INTEGER'],_0x1782d3=Number['MAX_SAFE_INTEGER'],_0x347e52=Number['MIN_SAFE_INTEGER'];for(const _0xaad760 of _0x571f3f){if('$graveyard'==_0xaad760['root']['rootName'])continue;const {row:_0x2337c0,column:_0x3ff773}=_0x13cbfb['getCellLocation'](_0xaad760),_0x224824=_0xaad760['hasAttribute']('rowspan')?_0xaad760['getAttribute']('rowspan')-0x1:0x0,_0xf46ef3=_0xaad760['hasAttribute']('colspan')?_0xaad760['getAttribute']('colspan')-0x1:0x0;_0x200326=_0x2337c0<_0x200326?_0x2337c0:_0x200326,_0x544a63=_0x2337c0+_0x224824>_0x544a63?_0x2337c0+_0x224824:_0x544a63,_0x1782d3=_0x3ff773<_0x1782d3?_0x3ff773:_0x1782d3,_0x347e52=_0x3ff773+_0xf46ef3>_0x347e52?_0x3ff773+_0xf46ef3:_0x347e52;}return{'minRow':_0x200326,'maxRow':_0x544a63,'minColumn':_0x1782d3,'maxColumn':_0x347e52};}['_setupColumnsRowsFixing'](){const _0x50debd=this['editor'],_0x2605f9=_0x50debd['plugins']['get']('TrackChangesEditing'),_0x118bd7=_0x50debd['plugins']['get']('TableUtils');_0x50debd['model']['document']['on']('change:data',()=>{const _0x5b196a=Array['from'](_0x50debd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x251da8,data:_0xb99b92}of _0x5b196a){const {group:_0x54ac40,id:_0x4a27db,subType:_0x52fae5}=_0x2605f9['_splitMarkerName'](_0x251da8);if('suggestion'!=_0x54ac40)continue;if(null!=_0xb99b92['oldRange'])continue;const _0x478383=_0x2605f9['getSuggestion'](_0x4a27db);this['_tablePostFixingSubtypes']['includes'](_0x52fae5)&&this['_tableSuggestions']['add'](_0x478383);}},{'priority':'low'});const _0x1aba36=(_0x568909,_0x4fd395)=>{let _0x422cff=!0x1;const _0x5aec47=_0x4fd395['createRangeOn'](_0x568909),_0x4c4566=_0x568909['findAncestor']('table'),_0x18a4d6=_0x118bd7['getCellLocation'](_0x568909);for(const _0x44a162 of this['_tableSuggestions']){const _0x48707f=_0x44a162['subType'],_0x1a2314=_0x48707f['startsWith']('tablePaste'),_0x5bbcdf=_0x48707f['substr'](_0x1a2314?0xa:0x5),_0x312305=_0x5bbcdf['toLowerCase'](),_0x2cbd34=_0x312305['substr'](0x0,0x3)+'span',_0xd454fc='min'+_0x5bbcdf,_0x436a7a='max'+_0x5bbcdf;if(!_0x44a162['isInContent'])continue;if(_0x4c4566!=_0x44a162['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x44a162['isIntersectingWithRange'](_0x5aec47))continue;const _0xdbebec=_0x568909['hasAttribute'](_0x2cbd34)?_0x568909['getAttribute'](_0x2cbd34)-0x1:0x0,_0x2329bf=this['_getSuggestionCoords'](_0x44a162),_0x89ff69=_0x2329bf[_0xd454fc],_0x20ce44=_0x2329bf[_0x436a7a];_0x89ff69<=_0x18a4d6[_0x312305]&&_0x18a4d6[_0x312305]+_0xdbebec<=_0x20ce44&&(_0x44a162['addRange'](_0x5aec47),_0x422cff=!0x0);}return _0x422cff;};_0x50debd['model']['document']['registerPostFixer'](_0x283e40=>{let _0x2a14a3=!0x1;for(const _0xf7e20b of _0x50debd['model']['document']['differ']['getChanges']())if('insert'==_0xf7e20b['type']){if('tableRow'==_0xf7e20b['name']){for(const _0x105f7a of _0xf7e20b['position']['nodeAfter']['getChildren']())_0x2a14a3=_0x2a14a3||_0x1aba36(_0x105f7a,_0x283e40);}else'tableCell'==_0xf7e20b['name']&&(_0x2a14a3=_0x2a14a3||_0x1aba36(_0xf7e20b['position']['nodeAfter'],_0x283e40));}return _0x2a14a3;});}['_getSuggestionCoords'](_0x3fbca7){return this['_getCoordsForCells'](_0x3fbca7['getRanges']()['map'](_0x23d481=>_0x23d481['start']['nodeAfter']));}constructor(_0x5bfbe8){super(_0x5bfbe8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x88b700){return Array['from'](new Set(_0x88b700)['values']());}class St extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0x256343=this['editor'],_0x1ddd9c=_0x256343['model']['document']['selection'],_0x5963b1=_0x256343['locale'];if(!_0x256343['plugins']['has']('TableEditing'))return;const _0x41ccf0=_0x256343['plugins']['get']('TrackChangesEditing'),_0x4dc133=_0x256343['plugins']['get']('TableUtils'),_0x38aa0b=_0x256343['plugins']['get'](jt);_0x38aa0b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x41ccf0['enableCommand']('mergeTableCells',()=>{const _0x87d54e=_0x4dc133['getSelectionAffectedTableCells'](_0x256343['model']['document']['selection']);_0x256343['model']['change'](()=>{_0x41ccf0['markMultiRangeBlockFormat'](_0x87d54e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x256343['commands']['get']('mergeTableCells')['on']('execute',(_0x3daa61,_0x8fc3ba)=>{_0x256343['commands']['get']('trackChanges')['value']&&(_0x8fc3ba['length']>0x0&&_0x8fc3ba[_0x8fc3ba['length']-0x1]&&_0x8fc3ba[_0x8fc3ba['length']-0x1]['forceDefaultExecution']||_0x41ccf0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3daa61['stop']());},{'priority':'highest'});for(const _0x3e8043 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2df8b4=_0x256343['commands']['get'](_0x3e8043);_0x41ccf0['enableCommand'](_0x3e8043,()=>{const _0xb69993=_0x256343['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x540b12=>_0x540b12['is']('element','tableCell')),_0x5cb1b8=_0x2df8b4['value'];_0x256343['model']['change'](()=>{_0x41ccf0['markMultiRangeBlockFormat']([_0xb69993,_0x5cb1b8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x36d65f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5bbd0c=_0x256343['commands']['get'](_0x36d65f);_0x41ccf0['enableCommand'](_0x36d65f,()=>{const _0x370540=_0x4dc133['getSelectionAffectedTableCells'](_0x256343['model']['document']['selection'])[0x0],_0x233548=_0x370540['findAncestor']('table'),{column:_0x130e30,row:_0x41a36a}=_0x4dc133['getCellLocation'](_0x370540);let _0x5dd453=[];if('horizontally'==_0x5bbd0c['direction']){const _0x560d51=_0x4dc133['createTableWalker'](_0x233548,{'startRow':_0x41a36a,'endRow':_0x41a36a,'includeAllSlots':!0x0});_0x5dd453=Array['from'](_0x560d51)['map'](_0x618680=>_0x618680['cell']);}else{const _0x4863a8=_0x4dc133['createTableWalker'](_0x233548,{'column':_0x130e30,'includeAllSlots':!0x0});_0x5dd453=Array['from'](_0x4863a8)['map'](_0x416310=>_0x416310['cell']);}_0x256343['model']['change'](_0x39fcf4=>{_0x41ccf0['markBlockFormat'](_0x39fcf4['createRangeOn'](_0x370540),{'commandName':_0x36d65f,'commandParams':[]},_0x5dd453,_0x36d65f);});});}_0x41ccf0['_descriptionFactory']['registerDescriptionCallback'](_0x3e7cfe=>{if('formatBlock'!=_0x3e7cfe['type']&&'formatInline'!=_0x3e7cfe['type'])return;const {data:_0x1371f7}=_0x3e7cfe;return _0x1371f7&&'mergeTableCells'==_0x1371f7['commandName']?{'type':'format','content':o(_0x5963b1,'*Merge\x20cells*')}:void 0x0;}),_0x41ccf0['_descriptionFactory']['registerDescriptionCallback'](_0x7a2af0=>{if('formatBlock'!=_0x7a2af0['type']&&'formatInline'!=_0x7a2af0['type'])return;const {data:_0x4dcbab}=_0x7a2af0;return _0x4dcbab?'splitTableCellVertically'==_0x4dcbab['commandName']?{'type':'format','content':o(_0x5963b1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4dcbab['commandName']?{'type':'format','content':o(_0x5963b1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2f9f3b=_0x38aa0b['_acceptFormatSuggestionCallbackFactory']();for(const _0x562b1f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x41ccf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x562b1f,'accept',_0x2f9f3b);for(const _0x6444c8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x41ccf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6444c8,'accept',_0x2f9f3b);_0x41ccf0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x63b825=>{_0x256343['model']['change'](_0x421cde=>{const _0x522311=Array['from'](_0x1ddd9c['getRanges']())['map'](_0x242de3=>_0x3d4179['fromRange'](_0x242de3));_0x421cde['setSelection'](_0x63b825),_0x256343['commands']['get']('mergeTableCells')['refresh'](),_0x256343['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x21ba75=_0x522311['filter'](_0x2184ab=>'$graveyard'!=_0x2184ab['root']['rootName']);_0x21ba75['length']>0x0&&_0x421cde['setSelection'](_0x21ba75);for(const _0x505f3e of _0x522311)_0x505f3e['detach']();});});for(const _0x468bd9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x24a364=_0x256343['commands']['get'](_0x468bd9);_0x24a364['on']('set:isEnabled',(_0x31c742,_0x21f890,_0x59aae2)=>{if(_0x59aae2){const _0xf8b43e=_0x256343['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42236d=>_0x42236d['is']('element','tableCell'));this['_areMergableCells'](_0x24a364['value'],_0xf8b43e)||(_0x31c742['return']=!0x1,_0x31c742['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x53433b=this['editor']['commands']['get']('mergeTableCells'),_0xeac08d=this['editor']['plugins']['get']('TableUtils');if(!_0x53433b['isEnabled'])return!0x1;const _0x5f35a9=_0xeac08d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d4096 of _0x5f35a9)for(const _0x1eb84a of _0x5f35a9)if(_0x1d4096!=_0x1eb84a&&!this['_areMergableCells'](_0x1d4096,_0x1eb84a))return!0x1;return!0x0;}['_areMergableCells'](_0x2d5d0f,_0x32cc0d){const _0x487842=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29d00f=this['editor']['model']['createRangeOn'](_0x2d5d0f),_0x59b485=this['editor']['model']['createRangeOn'](_0x32cc0d),_0x7970a2=new Set(),_0x412aba=new Set();for(const _0x188f5f of _0x487842['getSuggestions']())if(('insertion'==_0x188f5f['type']||'deletion'==_0x188f5f['type']||'mergeTableCells'==_0x188f5f['subType'])&&_0x188f5f['isInContent']){for(const _0x1b83bb of _0x188f5f['getRanges']())_0x1b83bb['containsRange'](_0x29d00f,!0x0)&&_0x7970a2['add'](_0x188f5f['type']+':'+_0x188f5f['author']['id']),_0x1b83bb['containsRange'](_0x59b485,!0x0)&&_0x412aba['add'](_0x188f5f['type']+':'+_0x188f5f['author']['id']);}if(_0x7970a2['size']!=_0x412aba['size'])return!0x1;for(const _0x2e6407 of _0x7970a2)if(!_0x412aba['has'](_0x2e6407))return!0x1;return!0x0;}}class At extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0x5511ce=this['editor'];if(!_0x5511ce['plugins']['has']('TableEditing'))return;const _0x125058=_0x5511ce['locale'],_0x3d1eec=_0x5511ce['plugins']['get']('TrackChangesEditing');_0x3d1eec['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x3d1eec['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x3d1eec['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x125058,'FORMAT_HEADER_ROW')),_0x3d1eec['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x125058,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3adc22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27d8c8=this['editor']['plugins']['get']('TableUtils'),_0x30972f=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x11bf38({showActiveMarker:_0x1584f7=!0x0,setDataAttribute:_0x352d99=!0x0}={}){return(_0x529a3d,_0x4f8c67,_0x12add7)=>{const {type:_0x4049fb,id:_0x5b7cd3}=_0x3adc22['_splitMarkerName'](_0x4f8c67['markerName']),_0x7315e5=_0x3adc22['getSuggestion'](_0x5b7cd3),_0x4510e6=_0x7315e5['data'];if('formatBlock'!=_0x7315e5['type']||!_0x4510e6||'setTableColumnHeader'!=_0x4510e6['commandName'])return;if(_0x4f8c67['item'])return void _0x529a3d['stop']();if(!_0x12add7['consumable']['consume'](_0x4f8c67['markerRange'],_0x529a3d['name']))return;const _0x4d02dd=_0x4f8c67['markerRange']['start']['nodeAfter'],_0x241bfe=_0x4f8c67['markerRange']['end']['nodeBefore'],_0x1c52cb=_0x4d02dd['parent']['parent'],{column:_0x6c39dd}=_0x27d8c8['getCellLocation'](_0x4d02dd),{column:_0x12fd18}=_0x27d8c8['getCellLocation'](_0x241bfe);for(let _0x3caaaf=_0x6c39dd;_0x3caaaf<=_0x12fd18;_0x3caaaf++){const _0x2b9b69=_0x27d8c8['createTableWalker'](_0x1c52cb,{'column':_0x3caaaf,'includeAllSlots':!0x1});for(const _0x365dcf of _0x2b9b69){const _0x5baef7=_0x365dcf['cell'],_0x2cb272=_0x12add7['mapper']['toViewElement'](_0x5baef7);_0x12add7['writer']['addClass']('ck-suggestion-marker-'+_0x4049fb,_0x2cb272),_0x352d99&&_0x12add7['writer']['setAttribute']('data-suggestion',_0x5b7cd3,_0x2cb272),_0x12add7['mapper']['bindElementToMarker'](_0x2cb272,_0x4f8c67['markerName']),_0x1584f7&&(_0x3adc22['activeMarkers']['includes'](_0x4f8c67['markerName'])?_0x12add7['writer']['addClass']('ck-suggestion-marker--active',_0x2cb272):_0x12add7['writer']['removeClass']('ck-suggestion-marker--active',_0x2cb272));}}};}_0x3adc22['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30972f),_0x3adc22['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30972f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x11bf38(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x28b907,_0x32ebc9,_0x13f58c)=>{_0x13f58c['options']['showSuggestionHighlights']&&_0x11bf38({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x28b907,_0x32ebc9,_0x13f58c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d9085,_0x171cb8,_0x470be0)=>{const {type:_0x5a328b,id:_0x30086f}=_0x3adc22['_splitMarkerName'](_0x171cb8['markerName']),_0x5b0238=_0x3adc22['getSuggestion'](_0x30086f),_0x578274=_0x5b0238['data'];if('formatBlock'!=_0x5b0238['type']||!_0x578274||'setTableColumnHeader'!=_0x578274['commandName'])return;const _0x442cb9=_0x470be0['mapper']['markerNameToElements'](_0x171cb8['markerName']);if(_0x442cb9){for(const _0xbb252a of _0x442cb9)_0x470be0['writer']['removeClass']('ck-suggestion-marker-'+_0x5a328b,_0xbb252a),_0x470be0['writer']['removeClass']('ck-suggestion-marker--active',_0xbb252a),_0x470be0['writer']['removeAttribute']('data-suggestion',_0xbb252a),_0x470be0['mapper']['unbindElementFromMarkerName'](_0xbb252a,_0x171cb8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b6b4=this['editor'],_0x28c12a=_0x17b6b4['locale'];function _0x54757c(_0x518d12){return{'type':'format','content':o(_0x28c12a,'*Format:*\x20%0',_0x518d12)};}_0x17b6b4['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x572079=>{if('formatBlock'!=_0x572079['type'])return;const {data:_0xa33bc5}=_0x572079;if(_0xa33bc5){if('setTableRowHeader'==_0xa33bc5['commandName']){const _0x563899=_0xa33bc5['commandParams'][0x0]['forceValue'];return _0x54757c(o(_0x28c12a,_0x563899?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa33bc5['commandName']){const _0x3a30ad=_0xa33bc5['commandParams'][0x0]['forceValue'];return _0x54757c(o(_0x28c12a,_0x3a30ad?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x43b1d1=>[_0x43b1d1,null]));class It extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0xfd03a2=this['editor'];if(!_0xfd03a2['plugins']['has']('TableClipboard'))return;const _0x1cab80=_0xfd03a2['plugins']['get']('TrackChangesEditing'),_0x315925=_0xfd03a2['plugins']['get']('TableUtils'),_0x128d51=_0xfd03a2['plugins']['get'](jt),_0x30742f=_0xfd03a2['plugins']['get']('TableClipboard');_0x128d51['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xfd03a2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xfd03a2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x518a4=null;_0xfd03a2['model']['on']('insertContent',(_0x5957d2,_0x4b72ef)=>{const [_0x5a11af,_0x58b26d]=_0x4b72ef,_0x16a02c=_0x4b72ef[_0x4b72ef['length']-0x1];_0x16a02c&&_0x16a02c['forceDefaultExecution']||_0x1cab80['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2fe523,_0x4db14e,_0x2897a7,_0x6f9d98,_0x33e52b){if(_0x4db14e&&!_0x4db14e['is']('documentSelection'))return!0x1;const _0x41083c=_0x33e52b['getTableIfOnlyTableInContent'](_0x2fe523,_0x2897a7);if(!_0x41083c||!he(_0x41083c,void 0x0,_0x6f9d98))return!0x1;const _0x3a3b9b=_0x6f9d98['getSelectionAffectedTableCells'](_0x2897a7['document']['selection']);if(!_0x3a3b9b['length'])return!0x1;const _0x5ba937=_0x3a3b9b[0x0]['findAncestor']('table'),_0x44598f=_0x6f9d98['getRowIndexes'](_0x3a3b9b),_0x20feab=_0x6f9d98['getColumnIndexes'](_0x3a3b9b),_0x4512f2={'startRow':_0x44598f['first'],'endRow':_0x44598f['last'],'startColumn':_0x20feab['first'],'endColumn':_0x20feab['last']};return 0x1==_0x3a3b9b['length']&&(_0x4512f2['endRow']+=_0x6f9d98['getRows'](_0x41083c)-0x1,_0x4512f2['endColumn']+=_0x6f9d98['getColumns'](_0x41083c)-0x1),he(_0x5ba937,_0x4512f2,_0x6f9d98);}(_0x5a11af,_0x58b26d,_0xfd03a2['model'],_0x315925,_0x30742f)&&(_0x5957d2['stop'](),_0x518a4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xfd03a2['model']['change'](()=>{_0xfd03a2['model']['insertContent'](_0x4b72ef[0x0],_0x4b72ef[0x1],_0x4b72ef[0x2],{'forceDefaultExecution':!0x0});const _0x30bf17=_0x2c7d4a(),{rowInsertionRanges:_0x580374,columnInsertionRanges:_0x49b666,insertionRanges:_0x6cd0f4,deletionRanges:_0x361890,cells:_0x360e23}=_0x518a4;_0x580374['length']&&_0x1cab80['markMultiRangeInsertion'](_0x580374,'tablePasteRow',{'tablePasteChainId':_0x30bf17}),_0x49b666['length']&&_0x1cab80['markMultiRangeInsertion'](_0x49b666,'tablePasteColumn',{'tablePasteChainId':_0x30bf17}),_0x6cd0f4['length']&&(_0x1cab80['markMultiRangeInsertion'](_0x6cd0f4,'tablePaste',{'tablePasteChainId':_0x30bf17,'skipNestingCheck':!0x0}),_0x6cd0f4['forEach'](_0x287cff=>{var _0x1e9e89;return null===(_0x1e9e89=_0x287cff['detach'])||void 0x0===_0x1e9e89?void 0x0:_0x1e9e89['call'](_0x287cff);})),_0x361890['length']&&(_0x1cab80['markMultiRangeDeletion'](_0x361890,'tablePaste',{'tablePasteChainId':_0x30bf17,'skipNestingCheck':!0x0}),_0x361890['forEach'](_0x3ea45d=>{var _0x1b110a;return null===(_0x1b110a=_0x3ea45d['detach'])||void 0x0===_0x1b110a?void 0x0:_0x1b110a['call'](_0x3ea45d);}));const _0x3160a2=_0x1cab80['markMultiRangeBlockFormat'](_0x360e23['map'](({element:_0x5c6612})=>_0x5c6612),{'formatGroupId':_0x2c7d4a()},[],'tablePasteCell',{'tablePasteChainId':_0x30bf17});if(_0x3160a2){const _0x948299=_0x3160a2['getMarkers'](),_0x1d4912=[];for(const {element:_0x37df94,attributes:_0x2bde1c}of _0x360e23){if(!_0x2bde1c)continue;const _0x5b4504=_0xfd03a2['model']['createRangeOn'](_0x37df94),_0x198cc9=_0x948299['find'](_0x2a66e3=>_0x2a66e3['getRange']()['isEqual'](_0x5b4504));_0x198cc9&&_0x1d4912['push']([_0x198cc9['name'],_0x2bde1c]);}_0x1d4912['length']&&_0x3160a2['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d4912));}_0x518a4=null;}));},{'priority':_0x1ba778['high']+0xa}),_0xfd03a2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb544d2,_0x2eebed)=>{const [_0x5ec495,_0xfc6198,,_0x1e4358]=_0x2eebed;if(!_0x518a4)return;_0xb544d2['stop']();const _0x59bc60=_0x5ec495['cell'],_0x18a221=_0xfc6198,_0x1e00a9=Pe(_0x59bc60),_0x7bb38c=Pe(_0x18a221);_0xb544d2['return']=_0x59bc60;let _0x40a931=null,_0x5aa4d0=null;if(_0x7bb38c||_0x1e00a9){if(_0x1e00a9&&!_0x7bb38c){_0x1e4358['remove'](_0x59bc60['getChild'](0x0));for(const _0x2980e3 of Array['from'](_0x18a221['getChildren']()))_0x1e4358['insert'](_0x2980e3,_0x59bc60,'end');const _0x27eabf=_0x518a4['rowInsertionIndexes']['includes'](_0x5ec495['row']),_0x2a54b0=_0x518a4['columnInsertionIndexes']['includes'](_0x5ec495['column']);_0x27eabf||_0x2a54b0||(_0x40a931=_0x3d4179['fromRange'](_0x1e4358['createRangeIn'](_0x59bc60)));}else _0x7bb38c&&!_0x1e00a9&&(_0x5aa4d0=_0x1e4358['createRangeIn'](_0x59bc60));}else{const _0x2011df=_0x1e4358['createElement']('tableCellSuggestion'),_0x833759=_0x1e4358['createElement']('tableCellSuggestion');_0x1e4358['wrap'](_0x1e4358['createRangeIn'](_0x59bc60),_0x833759),_0x1e4358['insert'](_0x2011df,_0x59bc60,0x0);for(const _0x32fba8 of Array['from'](_0x18a221['getChildren']()))_0x1e4358['insert'](_0x32fba8,_0x2011df,'end');_0x40a931=_0x3d4179['fromRange'](_0x1e4358['createRangeOn'](_0x2011df)),_0x5aa4d0=_0x3d4179['fromRange'](_0x1e4358['createRangeOn'](_0x833759));}const _0x26167b=Array['from'](_0x18a221['getAttributes']())['filter'](([_0x1eafd3])=>ge['includes'](_0x1eafd3));_0x518a4['cells']['push']({'element':_0x59bc60,'attributes':_0x26167b['length']?Object['fromEntries'](_0x26167b):null}),_0x40a931&&_0x518a4['insertionRanges']['push'](_0x40a931),_0x5aa4d0&&_0x518a4['deletionRanges']['push'](_0x5aa4d0);},{'priority':'high'}),_0x315925['on']('insertColumns',(_0x1ffe5,_0xedcc73)=>{const [_0x10a55c,_0x199ea0={}]=_0xedcc73;if(!_0x518a4)return;const _0x3f2e27=_0x199ea0['at']||0x0,_0x389dc9=_0x199ea0['columns']||0x1;_0x518a4['columnInsertionIndexes']=new Array(_0x389dc9)['fill'](_0x3f2e27)['map']((_0x186e96,_0x27d626)=>_0x186e96+_0x27d626);for(const {cell:_0x4e9c53}of _0x315925['createTableWalker'](_0x10a55c,{'startColumn':_0x3f2e27,'endColumn':_0x3f2e27+_0x389dc9-0x1}))_0x518a4['columnInsertionRanges']['push'](_0xfd03a2['model']['createRangeOn'](_0x4e9c53));},{'priority':'low'}),_0x315925['on']('insertRows',(_0x592ce1,_0x174a5c)=>{const [_0x4f6bef,_0x300a15={}]=_0x174a5c;if(!_0x518a4)return;const _0x17ccb3=_0x300a15['at']||0x0,_0x1f7801=_0x300a15['rows']||0x1;_0x518a4['rowInsertionIndexes']=new Array(_0x1f7801)['fill'](_0x17ccb3)['map']((_0x1c4463,_0x14d551)=>_0x1c4463+_0x14d551);for(const {cell:_0x340d7e}of _0x315925['createTableWalker'](_0x4f6bef,{'startRow':_0x17ccb3,'endRow':_0x17ccb3+_0x1f7801-0x1}))_0x518a4['rowInsertionRanges']['push'](_0xfd03a2['model']['createRangeOn'](_0x340d7e));},{'priority':'low'}),_0x1cab80['_descriptionFactory']['registerDescriptionCallback'](_0xe62f81=>{if(_0xe62f81['subType']&&_0xe62f81['subType']['startsWith']('tablePaste'))return _0xe62f81['previous']?{}:{'type':'insertion','content':o(_0xfd03a2['locale'],'*Replace\x20table\x20cells*')};});const _0x5870bd=()=>!0x1;for(const _0x36f676 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1cab80['_suggestionFactory']['registerCustomCallback']('insertion',_0x36f676,'join',_0x5870bd),_0x1cab80['_suggestionFactory']['registerCustomCallback']('deletion',_0x36f676,'join',_0x5870bd),_0x1cab80['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36f676,'join',_0x5870bd);_0x1cab80['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5870bd),_0x1cab80['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3c8b86,_0x595276,_0x3ebbb3)=>{const _0x3a57ff=_0x3c8b86['map'](_0x8565fe=>_0x8565fe['getContainedElement']())['filter'](_0x20b33b=>_0x20b33b),_0x2a6f21=new Map(_0x3a57ff['map'](_0x36880c=>[_0x36880c,null]));if(_0x518a4){for(const {element:_0x11999c,attributes:_0x244c89}of _0x518a4['cells'])_0x244c89&&_0x2a6f21['set'](_0x11999c,_0x244c89);}else{if(_0x3ebbb3&&_0x3ebbb3['markerAttributes'])for(const [_0x4cee05,_0x2d8c15]of Object['entries'](_0x3ebbb3['markerAttributes'])){const _0x2921e8=_0xfd03a2['model']['markers']['get'](_0x4cee05),_0x5c9974=_0x2921e8?_0x2921e8['getRange']()['getContainedElement']():null;_0x5c9974&&_0x2a6f21['set'](_0x5c9974,_0x2d8c15);}}_0xfd03a2['model']['change'](_0x298d6a=>{for(const [_0x10285e,_0x23636a]of _0x2a6f21)_0x298d6a['setAttributes']({...Ce,..._0x23636a},_0x10285e);});});const _0x541f7a=(_0x67ffca,_0x4856f6)=>{_0x1cab80['_suggestionFactory']['registerCustomCallback'](_0x67ffca,'tablePaste',_0x4856f6,(_0x34ebac,_0xdf1efa,_0x4dc76a)=>{_0xfd03a2['model']['change'](_0x2471f9=>{const _0x5d5558=[];for(const _0xe9d453 of _0x34ebac){const _0x25b5e9=_0xe9d453['start']['nodeAfter'];_0x25b5e9['is']('element','tableCellSuggestion')&&_0x5d5558['push'](_0x25b5e9);}_0x1cab80['_suggestionFactory']['getSuggestionCallback'](_0x67ffca,null,_0x4856f6)(_0x34ebac,_0xdf1efa,_0x4dc76a);for(const _0x25f785 of _0x5d5558)'$graveyard'!=_0x25f785['root']['rootName']&&_0x2471f9['unwrap'](_0x25f785);});});};_0x541f7a('insertion','accept'),_0x541f7a('insertion','discard'),_0x541f7a('deletion','accept'),_0x541f7a('deletion','discard'),_0x1cab80['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1baa52=>{const _0x5bf052=_0x1baa52['map'](_0x410084=>_0x410084['getContainedElement']()),_0x1046e7=_0x5bf052[0x0]['findAncestor']('table'),{minRow:_0xadb0f6,maxRow:_0x1b5cc0}=_0x128d51['_getCoordsForCells'](_0x5bf052);_0x315925['removeRows'](_0x1046e7,{'at':_0xadb0f6,'rows':_0x1b5cc0-_0xadb0f6+0x1});}),_0x1cab80['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xa50447=>{const _0x2b55ec=_0xa50447['map'](_0x5f4e1b=>_0x5f4e1b['getContainedElement']()),_0x21b906=_0x2b55ec[0x0]['findAncestor']('table'),{minColumn:_0x5619c6,maxColumn:_0x5d859a}=_0x128d51['_getCoordsForCells'](_0x2b55ec);_0x315925['removeColumns'](_0x21b906,{'at':_0x5619c6,'columns':_0x5d859a-_0x5619c6+0x1});});const _0x5ae32b=(_0x5e4b4f,_0x515ad3)=>{if(!_0x515ad3['subType']||!_0x515ad3['subType']['startsWith']('tablePaste'))return;const _0x4e10ce=_0x515ad3['attributes']['tablePasteChainId'],_0x40610f=_0x1cab80['getSuggestions']()['filter'](_0x5ec896=>_0x5ec896['isInContent']&&_0x5ec896['attributes']&&_0x5ec896['attributes']['tablePasteChainId']==_0x4e10ce);_0x40610f['length']&&_0x515ad3['getAllAdjacentSuggestions']()['length']!=_0x40610f['length']&&_0x40610f['reduce']((_0x324ddd,_0x389710)=>(_0x324ddd['next']=_0x389710,_0x389710['previous']=_0x324ddd,_0x389710));};function _0x197bcf(_0x4b487,_0x1b197f=!0x0){const {id:_0x4c9135}=_0x1cab80['_splitMarkerName'](_0x4b487['markerName']),_0x7356ec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3cb4ff=_0x1cab80['activeMarkers']['includes'](_0x4b487['markerName']);return _0x3cb4ff&&_0x7356ec['push']('ck-suggestion-marker--active'),{'classes':_0x7356ec,'attributes':{'data-suggestion':_0x4c9135},'priority':_0x3cb4ff&&_0x1b197f?0xbc2:0xbb8};}_0x1cab80['on']('suggestionLoaded',_0x5ae32b,{'priority':'high'}),_0x1cab80['on']('suggestionUnloaded',_0x5ae32b,{'priority':'high'}),_0xfd03a2['model']['document']['registerPostFixer'](()=>{let _0x658da1=!0x1;const _0x751bb3=Array['from'](_0xfd03a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c92c4,data:_0x263a2c}of _0x751bb3){const {group:_0x525abe,type:_0x2816dd,id:_0x3bc39f}=_0x1cab80['_splitMarkerName'](_0x3c92c4);if('suggestion'!=_0x525abe||'deletion'!=_0x2816dd||_0x263a2c['oldRange'])continue;if(!_0x1cab80['hasSuggestion'](_0x3bc39f))continue;const _0x5c0169=_0x1cab80['getSuggestion'](_0x3bc39f)['getRanges'](),_0x31cd5c=_0xfd03a2['plugins']['get']('Users')['me'];for(const _0x4e5be0 of _0x1cab80['getSuggestions']()){if(!_0x4e5be0['isInContent']||_0x4e5be0['author']!=_0x31cd5c)continue;if('formatBlock'!=_0x4e5be0['type']||'tablePasteCell'!=_0x4e5be0['subType'])continue;if(_0x4e5be0['getRanges']()['every'](_0x592cdb=>_0x5c0169['some'](_0x4756f2=>_0x4756f2['containsRange'](_0x592cdb,!0x0)))){for(const _0x1e6107 of _0x4e5be0['getAllAdjacentSuggestions']())_0x1e6107['isInContent']&&(_0x1e6107['discard'](),_0x658da1=!0x0);}}}return _0x658da1;}),_0xfd03a2['model']['document']['registerPostFixer'](_0x7c924d=>{const _0x3cac24=_0xfd03a2['commands']['get']('redo');if(!_0x3cac24||!_0x3cac24['_createdBatches']['has'](_0x7c924d['batch']))return!0x1;let _0x59219e=!0x1;const _0x249643=_0xfd03a2['plugins']['get']('Users')['me'],_0x2e0a34=_0xfd03a2['model']['document']['differ']['getChanges'](),_0x3d32f9=Array['from'](_0xfd03a2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x293fc4,data:_0x4207a0})=>{const {group:_0x8620b7,subType:_0x4c356e,authorId:_0x480860}=_0x1cab80['_splitMarkerName'](_0x293fc4);return'suggestion'==_0x8620b7&&'tablePaste'==_0x4c356e&&_0x480860==_0x249643['id']&&!_0x4207a0['oldRange'];});for(const _0x28c085 of _0x2e0a34){if('insert'!=_0x28c085['type']||'tableCellSuggestion'!=_0x28c085['name']||0x1!=_0x28c085['length'])continue;const _0x16bcf0=_0x7c924d['createRange'](_0x28c085['position'],_0x28c085['position']['getShiftedBy'](0x1));if(!_0x3d32f9['find'](({data:_0xd1d1ab})=>_0xd1d1ab['newRange']['isEqual'](_0x16bcf0))){for(const {name:_0x4db941,data:_0x21a306}of _0x3d32f9)if(_0x16bcf0['containsRange'](_0x21a306['newRange'])){_0x7c924d['updateMarker'](_0x4db941,{'range':_0x16bcf0}),_0x59219e=!0x0;break;}}}return _0x59219e;}),_0xfd03a2['model']['document']['registerPostFixer'](_0x5a0f04=>{let _0xd3cf23=!0x1;const _0x4aada6=_0xfd03a2['plugins']['get']('Users')['me'],_0x17430c=_0x1cab80['getSuggestions']()['filter'](_0x2a84b5=>_0x2a84b5['isInContent']&&_0x2a84b5['author']==_0x4aada6),_0xa535e4=new Set(),_0x462342=new Set();for(const _0x5f4194 of _0x17430c)if('tablePaste'==_0x5f4194['subType'])for(const _0x26fe32 of _0x5f4194['getMarkers']()){const _0xeed28c=_0x26fe32['getRange']()['getContainedElement']();if(_0xeed28c){if(_0xeed28c['is']('element','tableCellSuggestion')&&Pe(_0xeed28c)){_0x5f4194['removeMarker'](_0x26fe32['name']),_0xa535e4['add'](_0xeed28c),_0xd3cf23=!0x0;const _0x472e35=_0xeed28c['nextSibling'],_0x8f5753=_0xeed28c['previousSibling'],_0x4adc87=_0x472e35&&_0x472e35['is']('element','tableCellSuggestion'),_0x20c67b=_0x8f5753&&_0x8f5753['is']('element','tableCellSuggestion');_0x4adc87&&!_0xa535e4['has'](_0x472e35)&&_0x462342['add'](_0x472e35),_0x20c67b&&!_0xa535e4['has'](_0x8f5753)&&_0x462342['add'](_0x8f5753);}else _0xeed28c['is']('element','paragraph')&&_0xeed28c['isEmpty']&&(_0x5f4194['removeMarker'](_0x26fe32['name']),_0xd3cf23=!0x0);}}else{if('tablePasteCell'==_0x5f4194['subType']){if(!_0x5f4194['attributes']||!_0x5f4194['attributes']['tablePasteChainId'])continue;const _0x41d571=_0x5f4194['attributes']['markerAttributes'];if(_0x41d571&&Object['keys'](_0x41d571)['length'])continue;const _0x2f0983=_0x5f4194['attributes']['tablePasteChainId'];let _0x1051d3=!0x0,_0x14d9a7=!0x0;for(const _0x543520 of _0x17430c)if(_0x543520['subType']&&_0x543520['subType']['startsWith']('tablePaste')){if(!_0x543520['attributes']['tablePasteChainId']){_0x14d9a7=!0x1;break;}if(_0x543520['id']!=_0x5f4194['id']&&_0x543520['attributes']['tablePasteChainId']==_0x2f0983){_0x1051d3=!0x1;break;}}_0x14d9a7&&_0x1051d3&&(_0x5f4194['removeMarkers'](),_0xd3cf23=!0x0);}}for(const _0x398592 of _0xa535e4)_0x5a0f04['remove'](_0x398592);for(const _0x20c428 of _0x462342)_0x5a0f04['unwrap'](_0x20c428);return _0xd3cf23;}),_0xfd03a2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5145b7,_0x47f1b8)=>_0x197bcf(_0x5145b7),'converterPriority':'high'}),_0xfd03a2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4a27fe,_0x35b2df)=>_0x35b2df['options']['showSuggestionHighlights']?_0x197bcf(_0x4a27fe,!0x1):null,'converterPriority':'high'});const _0x1efd8a=_0xfd03a2['editing']['view'];this['listenTo'](_0x1efd8a['document'],'clipboardOutput',(_0x382c23,_0x403e22)=>{const _0x4a32e0=[];for(const _0x54af33 of _0x1efd8a['createRangeIn'](_0x403e22['content'])['getItems']())_0x54af33['is']('element','suggestion-td')&&_0x4a32e0['push'](_0x54af33);_0x1efd8a['change'](_0xf4faaa=>{for(const _0x3a3783 of _0x4a32e0)_0xf4faaa['move'](_0xf4faaa['createRangeIn'](_0x3a3783),_0xf4faaa['createPositionBefore'](_0x3a3783)),_0xf4faaa['remove'](_0x3a3783);});});}}function Pe(_0x550f90){if(_0x550f90['isEmpty'])return!0x0;const _0x358521=_0x550f90['getChild'](0x0);return _0x358521['is']('element','paragraph')&&_0x358521['isEmpty'];}function he(_0x457b47,_0x1a63ba={},_0x5301dc){for(const {isAnchor:_0x2ae0a8,cellHeight:_0x501619,cellWidth:_0x460aac}of _0x5301dc['createTableWalker'](_0x457b47,{'includeAllSlots':!0x0,..._0x1a63ba}))if(!_0x2ae0a8||0x1!=_0x501619||0x1!=_0x460aac)return!0x1;return!0x0;}class vt extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4e8817=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e8817['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4e8817['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4e8817['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e8817['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4e8817['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4e8817['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x257e32,_0xc976b){const _0x14259a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d80c9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1d4287=_0xc976b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x35b035=_0x3d80c9['getColumnGroupElement'](_0x1d4287);let _0x35aec7=_0x35b035?_0x3d80c9['getTableColumnsWidths'](_0x35b035):null,_0xade0a0=_0x1d4287['getAttribute']('tableWidth')||null;const _0x317742=_0xc976b['tableWidth']||_0xade0a0,_0xd906df=_0xc976b['columnWidths']||_0x35aec7,_0x47b013=this['editor']['plugins']['get']('Users')['me'];for(const _0x995753 of _0x14259a['getSuggestions']()){const _0x4e7240=_0x995753['getContainedElement']();if('resizeTable'===_0x995753['subType']&&_0x4e7240===_0x1d4287){_0x995753['author']!==_0x47b013&&_0x995753['discard']();const _0x7555b8=_0x995753['data']['commandParams'];_0xade0a0=_0x7555b8[0x0]['tableWidth'],_0x35aec7=_0x7555b8[0x0]['columnWidths'];break;}}_0x257e32({'table':_0x1d4287,'tableWidth':_0x317742,'columnWidths':_0xd906df}),_0x14259a['markBlockFormat'](_0x1d4287,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xade0a0,'columnWidths':_0x35aec7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x92cd02){if('formatBlock'!=_0x92cd02['type']&&'formatInline'!=_0x92cd02['type'])return;const {data:_0x439cab}=_0x92cd02;if(_0x439cab&&'resizeTable'===_0x439cab['formatGroupId']){const _0x368017='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x368017)};}}}class _t extends _0x4de685{['afterInit'](){const _0xbcf0d4=this['editor'];_0xbcf0d4['plugins']['has']('Template')&&_0xbcf0d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x4de685{['afterInit'](){const _0x3e5a37=this['editor'];if(!_0x3e5a37['commands']['get']('insertTableOfContents'))return;_0x3e5a37['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40ac8a=_0x3e5a37['plugins']['get']('TrackChangesEditing'),_0x3b4598=_0x3e5a37['locale'];_0x40ac8a['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a87bc=>o(_0x3b4598,'ELEMENT_TABLE_OF_CONTENTS',_0x2a87bc));}}class Dt extends _0x4de685{['afterInit'](){const _0x5304ee=this['editor'];if(!_0x5304ee['plugins']['has']('Title'))return;const _0x1f01e4=_0x5304ee['plugins']['get']('TrackChangesEditing');_0x1f01e4['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5304ee['locale'],'ELEMENT_TITLE')),_0x5304ee['model']['document']['registerPostFixer'](_0x4081b6=>{let _0x5e9ea4=!0x1;const _0x5925c=Array['from'](_0x5304ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10d5ef,data:_0x19816e}of _0x5925c){const {group:_0x4062fa}=_0x1f01e4['_splitMarkerName'](_0x10d5ef);if('suggestion'!==_0x4062fa||!_0x19816e['newRange'])continue;const _0x517824=_0x19816e['newRange'],_0x1e51f6=_0x517824['end']['nodeBefore'];if(!_0x1e51f6||!_0x1e51f6['is']('element','title-content'))continue;if(!_0x517824['start']['isTouching'](_0x517824['end']))continue;const _0x2f3848=_0x5304ee['model']['schema']['getNearestSelectionRange'](_0x517824['end'],'forward');if(_0x2f3848&&_0x2f3848['isCollapsed']){const _0x168a3b=_0x4081b6['createRange'](_0x517824['start'],_0x2f3848['start']);_0x168a3b['isEqual'](_0x517824)||(_0x4081b6['updateMarker'](_0x10d5ef,{'range':_0x168a3b}),_0x5e9ea4=!0x0);}_0x5e9ea4||(_0x4081b6['removeMarker'](_0x10d5ef),_0x5e9ea4=!0x0);}return _0x5e9ea4;});}}class Nt extends _0x4de685{['afterInit'](){const _0x1ecc3f=this['editor'],_0x35e89a=_0x1ecc3f['plugins']['get']('TrackChangesEditing');_0x1ecc3f['plugins']['has']('UndoEditing')&&(_0x35e89a['enableCommand']('undo'),_0x35e89a['enableCommand']('redo'));}}class Mt extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0x2e3b44=this['editor'];if(!_0x2e3b44['plugins']['has']('TableCaptionEditing'))return;_0x2e3b44['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4de685{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x405b15=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c0028 of this['tableProperties'])_0x405b15['enableCommand'](_0x2c0028,(_0x54b54b,_0x23cd56)=>{const _0x10342a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c0028,[_0x10342a],this['tableProperties'],'tableProperties',_0x54b54b,_0x23cd56);});_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x405b15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x37803b,_0x2c5910)=>this['handleDiscardAction'](this['tableProperties'],_0x37803b,_0x2c5910)),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b9f57 of this['tableCellProperties'])_0x405b15['enableCommand'](_0x1b9f57,(_0x38edce,_0x2973a6)=>{const _0x1c0c74=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b9f57,_0x1c0c74,this['tableCellProperties'],'tableCellProperties',_0x38edce,_0x2973a6);});_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x405b15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4d7dea,_0x436b3a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4d7dea,_0x436b3a)),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x405b15['_descriptionFactory']['registerDescriptionCallback'](_0x5e11b4=>this['handleSuggestionDescription'](_0x5e11b4));}['_handlePropertyChange'](_0x595c9b,_0x4d6047,_0x38a78a,_0x3b4a03,_0x5f1a58,_0x4f92d5){const _0x55fddc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4f92d5['batch'],()=>{for(const _0x2e4fac of _0x4d6047){if(this['_getSuggestion'](_0x2e4fac,_0x3b4a03))_0x5f1a58(_0x4f92d5);else{const _0x2559f1={};for(const _0x5a5f7b of _0x38a78a){const _0x53fc3c=_0x2e4fac['getAttribute'](_0x5a5f7b);void 0x0!==_0x53fc3c&&(_0x2559f1[_0x5a5f7b]=_0x53fc3c);}_0x5f1a58(_0x4f92d5),_0x55fddc['markBlockFormat'](_0x2e4fac,{'commandParams':[_0x2559f1]},[],_0x3b4a03);}}});}['handleDiscardAction'](_0x4d2e36,_0x3ec104,_0x442fab){const _0x2f7082=_0x3ec104[0x0]['start']['nodeAfter'],_0x2a89c6=_0x442fab['commandParams'][0x0];this['editor']['model']['change'](_0x33731c=>{for(const _0x45a866 of _0x4d2e36)void 0x0!==_0x2a89c6[_0x45a866]?_0x33731c['setAttribute'](_0x45a866,_0x2a89c6[_0x45a866],_0x2f7082):_0x33731c['removeAttribute'](_0x45a866,_0x2f7082);});}['handleSuggestionDescription'](_0x4f5982){if(_0x4f5982['data'])switch(_0x4f5982['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'](_0x5233a7,_0x7252cd){const _0x4d78ac=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x311ffc of _0x4d78ac['getSuggestions']({'skipNotAttached':!0x0})){const _0x410b6c=_0x311ffc['getContainedElement']();if(_0x311ffc['subType']===_0x7252cd&&_0x410b6c===_0x5233a7)return _0x311ffc;}return null;}constructor(_0x1817de){super(_0x1817de),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x4de685{static get['requires'](){return['CommentsRepository',_0x194443,_0x4a11f7,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x248319=this['editor'],_0x43e936=(_0x47e5de,_0x40a418)=>{if('attribute'!=_0x47e5de)return'ck-suggestion-marker-'+_0x47e5de;const _0x1826d8=_0x40a418['split']('|')[0x0];return this['_isBlockAttribute'](_0x1826d8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x248319['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4fd922=>{const {id:_0x38808a,type:_0x5e9af2,subType:_0x8d130b}=this['_splitMarkerName'](_0x4fd922['markerName']),_0x905d45=['ck-suggestion-marker',_0x43e936(_0x5e9af2,_0x8d130b)];let _0x2d2d7a=0xbb8;return this['activeMarkers']['includes'](_0x4fd922['markerName'])&&(_0x905d45['push']('ck-suggestion-marker--active'),_0x2d2d7a=0xbc2),'deletion'==_0x5e9af2&&(_0x2d2d7a+=0x5),{'classes':_0x905d45,'attributes':{'data-suggestion':_0x38808a},'priority':_0x2d2d7a};}}),_0x248319['conversion']['for']('dataDowncast')['add'](_0x3819d3=>{_0x3819d3['on']('addMarker:suggestion',(_0x5b69a4,_0x48f6e0,_0x11622c)=>{if(!_0x11622c['options']['showSuggestionHighlights'])return;const _0x564718=_0x48f6e0['item'];if(!_0x564718)return;const _0x384141=_0x11622c['mapper']['toViewElement'](_0x564718);_0x248319['model']['schema']['isObject'](_0x564718)&&_0x384141&&!_0x384141['getCustomProperty']('widget')&&_0x384141['is']('containerElement')&&_0x48624(_0x384141,_0x11622c['writer']);},{'priority':'high'});}),_0x248319['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x396ce9,_0x56ad3c)=>{if(!_0x56ad3c['options']['showSuggestionHighlights'])return null;const {type:_0x5064df,subType:_0x403c2e}=this['_splitMarkerName'](_0x396ce9['markerName']);return{'classes':['ck-suggestion-marker',_0x43e936(_0x5064df,_0x403c2e)],'priority':0xbb8};}});const _0x4c91bd=({showActiveMarkers:_0x27519f=!0x0,isAttributeSuggestion:_0x4f18a2=!0x1}={})=>(_0xe67745,_0x335522,_0x33a42b)=>{if(!_0x335522['item'])return;const {id:_0x3a3594}=this['_splitMarkerName'](_0x335522['markerName']);if(_0x4f18a2){const _0x2b1482=this['_suggestions']['get'](_0x3a3594),_0x17ead6=this['_getAttributeKey'](_0x2b1482);if(!this['_isBlockAttribute'](_0x17ead6))return;}if(_0x335522['item']['is']('selection'))return void _0x33a42b['consumable']['consume'](_0x335522['item'],_0xe67745['name']);const _0x268c5b=_0x33a42b['mapper']['toViewElement'](_0x335522['item']);if(_0x335522['item']['is']('element')&&_0x248319['model']['schema']['isBlock'](_0x335522['item'])&&!_0x268c5b['getCustomProperty']('addHighlight')){_0x33a42b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x268c5b),_0x33a42b['writer']['setAttribute']('data-suggestion',_0x3a3594,_0x268c5b),_0x33a42b['mapper']['bindElementToMarker'](_0x268c5b,_0x335522['markerName']),_0x27519f&&(this['activeMarkers']['includes'](_0x335522['markerName'])?_0x33a42b['writer']['addClass']('ck-suggestion-marker--active',_0x268c5b):_0x33a42b['writer']['removeClass']('ck-suggestion-marker--active',_0x268c5b));for(const _0x42ff1a of _0x248319['model']['createRangeIn'](_0x335522['item'])['getItems']())_0x33a42b['consumable']['consume'](_0x42ff1a,_0xe67745['name']);_0x33a42b['consumable']['consume'](_0x335522['item'],_0xe67745['name']);}};_0x248319['conversion']['for']('dataDowncast')['add'](_0x472829=>{_0x472829['on']('addMarker:suggestion:formatBlock',(_0x3ef8a9,_0x588a4a,_0x40ee0e)=>{_0x40ee0e['options']['showSuggestionHighlights']&&_0x4c91bd({'showActiveMarkers':!0x1})(_0x3ef8a9,_0x588a4a,_0x40ee0e);},{'priority':'highest'});}),_0x248319['conversion']['for']('dataDowncast')['add'](_0x17e22a=>{_0x17e22a['on']('addMarker:suggestion:attribute',(_0x4d1ec9,_0x2f03f2,_0x8504e6)=>{_0x8504e6['options']['showSuggestionHighlights']&&_0x4c91bd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4d1ec9,_0x2f03f2,_0x8504e6);},{'priority':'highest'});}),_0x248319['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x187f49,_0xbc3509)=>_0xbc3509['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x187f49['substr'](0xb)}}),_0x248319['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4f4f20,{writer:_0x5974f8})=>{let _0x3dc12c='suggestion:'+_0x4f4f20['getAttribute']('suggestion-type')+':'+_0x4f4f20['getAttribute']('id');return _0x4f4f20['getAttribute']('marker-count')&&(_0x3dc12c+=':'+_0x4f4f20['getAttribute']('marker-count')),_0x5974f8['createElement']('$marker',{'data-name':_0x3dc12c});}}),_0x248319['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x3d7143=>{_0x3d7143['on']('addMarker:suggestion:formatBlock',_0x4c91bd(),{'priority':'high'});}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x18c982=>{_0x18c982['on']('addMarker:suggestion:attribute',_0x4c91bd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x530f8f=>{_0x530f8f['on']('removeMarker:suggestion:formatBlock',(_0x5d9fbf,_0x2c4ec6,_0x6c1131)=>{const _0x1b4a90=_0x6c1131['mapper']['markerNameToElements'](_0x2c4ec6['markerName']);if(_0x1b4a90){for(const _0x3a036d of _0x1b4a90)_0x3a036d['getCustomProperty']('addHighlight')||(_0x6c1131['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a036d),_0x6c1131['writer']['removeAttribute']('data-suggestion',_0x3a036d),_0x6c1131['mapper']['unbindElementFromMarkerName'](_0x3a036d,_0x2c4ec6['markerName']));}},{'priority':'high'});}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x268064=>{_0x268064['on']('removeMarker:suggestion:attribute',(_0x3a0d9c,_0x333bd4,_0x1b8171)=>{const _0x58eb8f=_0x1b8171['mapper']['markerNameToElements'](_0x333bd4['markerName']);if(!_0x58eb8f)return;const {id:_0x503986}=this['_splitMarkerName'](_0x333bd4['markerName']),_0x3c8896=this['_suggestions']['get'](_0x503986),_0x20bd39=this['_getAttributeKey'](_0x3c8896);if(this['_isBlockAttribute'](_0x20bd39)){for(const _0x57627c of _0x58eb8f)_0x57627c['getCustomProperty']('addHighlight')||(_0x1b8171['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x57627c),_0x1b8171['writer']['removeAttribute']('data-suggestion',_0x57627c),_0x1b8171['mapper']['unbindElementFromMarkerName'](_0x57627c,_0x333bd4['markerName']));}},{'priority':'high'});}),_0x248319['model']['document']['registerPostFixer'](_0x1759b9=>{let _0x2695b6=!0x1;const _0x2906c1=Array['from'](_0x248319['model']['document']['differ']['getChangedMarkers']()),_0x53ec1f=new Set();for(const {name:_0xe62aeb,data:_0x5c46a8}of _0x2906c1){const {group:_0x23fcc0,type:_0x4caf96,subType:_0x5a263f,id:_0x957eb8}=this['_splitMarkerName'](_0xe62aeb);if('suggestion'!==_0x23fcc0)continue;const _0x4de459=this['_suggestions']['get'](_0x957eb8);if(null!=_0x5c46a8['newRange']){'formatInline'==_0x4caf96&&(_0x2695b6=_0x2695b6||Et(_0x5c46a8['newRange'],_0xe62aeb,_0x1759b9,_0x248319['model']['schema']));const _0xae660c='attribute'==_0x4caf96&&this['_isBlockAttribute'](_0x5a263f['split']('|')[0x0]);if(_0x5c46a8['newRange']['isCollapsed']||'$graveyard'==_0x5c46a8['newRange']['root']['rootName']||'formatBlock'==_0x4caf96&&!Ut(_0x5c46a8['newRange'])||_0xae660c&&!Ut(_0x5c46a8['newRange'])||'deletion'==_0x4caf96&&!(!Tt(_0x13c9e2=_0x5c46a8['newRange'])&&!function(_0x220dd7){return _0x220dd7['start']['parent']==_0x220dd7['end']['nodeBefore']&&_0x220dd7['start']['isAtEnd'];}(_0x13c9e2)))_0x1759b9['removeMarker'](_0xe62aeb),_0x2695b6=!0x0;else{if(!_0x4de459||!_0x4de459['isInContent'])continue;_0x53ec1f['add'](_0x4de459);}}}var _0x13c9e2;return _0x53ec1f['size']>0x0&&(_0x2695b6=!!this['_joinWithAdjacentSuggestions'](_0x53ec1f)||_0x2695b6),_0x2695b6;}),_0x248319['model']['document']['registerPostFixer'](_0x10f113=>{let _0x5e5f1c=!0x1;for(const _0x9ce338 of _0x248319['model']['document']['differ']['getChanges']())if('insert'==_0x9ce338['type'])for(const _0xb185b6 of this['_suggestions']['values']()){if(_0xb185b6['isMultiRange']||!_0xb185b6['isInContent'])continue;const _0x275d62='formatBlock'==_0xb185b6['type'],_0x5db5bb=this['_getAttributeKey'](_0xb185b6),_0x2ec0da=_0x5db5bb&&this['_isBlockAttribute'](_0x5db5bb);if(!_0x275d62&&!_0x2ec0da)continue;const _0x3b230f=_0xb185b6['getFirstRange']();if(_0x3b230f['start']['parent']!=_0x3b230f['end']['parent']&&!_0x3b230f['end']['isAtEnd']){const _0x9edf9a=_0x248319['model']['createPositionAt'](_0x3b230f['start']['nodeAfter'],'end'),_0x299f74=_0x248319['model']['createRange'](_0x3b230f['start'],_0x9edf9a);_0x10f113['updateMarker'](_0xb185b6['getFirstMarker'](),{'range':_0x299f74}),_0x5e5f1c=!0x0;}}return _0x5e5f1c;}),_0x248319['model']['document']['registerPostFixer'](_0x517af0=>this['_processAttributeChanges'](_0x517af0)),_0x248319['model']['document']['registerPostFixer'](_0x17ff2a=>!_0x17ff2a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x17ff2a)),_0x248319['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x248319['model']['document']['on']('change:data',(_0x1597bb,_0x37fd63)=>{if(!_0x37fd63['isLocal']||_0x37fd63['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xfcb938=_0x248319['model']['document']['differ']['getChanges']();if(0x0==_0xfcb938['length'])return;const _0x3c065d=[],_0x17f7b8=_0xfcb938['filter'](_0x39bb14=>'attribute'==_0x39bb14['type']),_0x573a60=_0xfcb938['filter'](_0x695424=>'insert'==_0x695424['type']&&'$text'!=_0x695424['name']),_0x111a06=_0xfcb938['filter'](_0x5acbd3=>'remove'==_0x5acbd3['type']&&'$text'!=_0x5acbd3['name']);for(const _0x25833e of _0x17f7b8)this['_isRegisteredAttribute'](_0x25833e['attributeKey'])&&_0x3c065d['push']({'key':_0x25833e['attributeKey'],'newValue':_0x25833e['attributeNewValue'],'oldValue':_0x25833e['attributeOldValue'],'range':Ot(_0x25833e['range'],_0x248319['model'])});for(const _0xc406b8 of _0x573a60){const _0x91df74=_0x111a06['find'](_0x1db919=>_0x1db919['_element']===_0xc406b8['_element']);if(_0x91df74){const _0x3387cd=Gt(_0xc406b8['position']['nodeAfter'],_0x248319['model']);_0x91df74['name']!==_0xc406b8['name']&&_0x3c065d['push']({'key':m,'newValue':_0xc406b8['name'],'oldValue':_0x91df74['name'],'range':_0x3387cd});for(const [_0x4f9ba1,_0x36f3e3]of _0x91df74['attributes']){if(!this['_isRegisteredAttribute'](_0x4f9ba1))continue;const _0x483bad=_0xc406b8['attributes']['get'](_0x4f9ba1);_0x36f3e3!==_0x483bad&&_0x3c065d['push']({'key':_0x4f9ba1,'newValue':_0x483bad,'oldValue':_0x36f3e3,'range':_0x3387cd});}for(const [_0x9fb5de,_0x1a74fa]of _0xc406b8['attributes'])this['_isRegisteredAttribute'](_0x9fb5de)&&(_0x91df74['attributes']['has'](_0x9fb5de)||_0x3c065d['push']({'key':_0x9fb5de,'newValue':_0x1a74fa,'oldValue':null,'range':_0x3387cd}));}}0x0!=_0x3c065d['length']&&_0x248319['model']['enqueueChange'](_0x37fd63,_0x30ab06=>{const _0x432a7d=_0x2c7d4a();for(const {range:_0x2ee3fa,key:_0x1c884f,oldValue:_0x1015fb,newValue:_0x24cf71}of _0x3c065d)this['markAttributeChange'](_0x2ee3fa,_0x1c884f,_0x1015fb,_0x24cf71,{'groupId':_0x432a7d});this['_reduceExistingSuggestions'](_0x30ab06,_0x3c065d);});},{'priority':'lowest'}),_0x248319['model']['markers']['on']('update:suggestion',(_0x5d7ffd,_0x555e55,_0x503ed8)=>{if(null==_0x503ed8){const {id:_0x12c664}=this['_splitMarkerName'](_0x555e55['name']),_0x5c2649=this['_suggestions']['get'](_0x12c664);_0x5c2649&&_0x5c2649['addMarkerName'](_0x555e55['name']);}}),_0x248319['model']['document']['on']('change:data',()=>{const _0x40623d=Array['from'](_0x248319['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b5963=>'suggestion'===this['_splitMarkerName'](_0x5b5963['name'])['group']);if(0x0===_0x40623d['length'])return;_0x40623d['sort']((_0x3ac9a6,_0x4cc70a)=>{const _0x2b1b0a=_0x3ac9a6['data']['oldRange'],_0xdb4f1c=_0x4cc70a['data']['oldRange'];return null===_0x2b1b0a&&null===_0xdb4f1c?0x0:null===_0x2b1b0a&&null!==_0xdb4f1c?-0x1:null!==_0x2b1b0a&&null===_0xdb4f1c?0x1:_0x2b1b0a['start']['isBefore'](_0xdb4f1c['start'])?-0x1:0x1;});const _0x76ed89=new Set(),_0x170f4b=new Set();for(const {name:_0x21fed1,data:_0x43173f}of _0x40623d){const {id:_0x54abf8}=this['_splitMarkerName'](_0x21fed1);if(null===_0x43173f['oldRange']){const _0x221bad=this['_handleNewSuggestionMarker'](_0x21fed1);_0x170f4b['add'](_0x221bad);}else{const _0x6b9c64=this['_suggestions']['get'](_0x54abf8);null!==_0x43173f['newRange']||_0x6b9c64['isInContent']?(_0x76ed89['add'](_0x6b9c64['head']),_0x170f4b['add'](_0x6b9c64)):this['_removeSuggestion'](_0x6b9c64);}}_0x170f4b['size']>0x0&&this['_refreshSuggestionsChain'](_0x170f4b);for(const _0x2f73fc of _0x76ed89)this['fire']('suggestionChanged',_0x2f73fc);}),_0x248319['model']['on']('applyOperation',(_0x164135,_0x3a92a6)=>{const _0x595477=_0x3a92a6[0x0];if(!this['_suggestions']['size'])return;if(!_0x595477['isDocumentOperation'])return;if(_0x595477['batch']['isUndo']||!_0x595477['batch']['isLocal'])return;let _0x9938cf,_0x3c745b;switch(_0x595477['type']){case'insert':_0x9938cf=_0x248319['model']['createPositionAt'](_0x595477['position']),_0x3c745b=_0x9938cf['getShiftedBy'](_0x595477['howMany']);break;case'split':_0x9938cf=_0x248319['model']['createPositionAt'](_0x595477['splitPosition']),_0x3c745b=_0x248319['model']['createPositionAt'](_0x595477['moveTargetPosition']);break;case'move':_0x9938cf=_0x248319['model']['createPositionAt'](_0x595477['targetPosition']),_0x3c745b=_0x9938cf['getShiftedBy'](_0x595477['howMany']);break;default:return;}const _0x30b9d8=_0x248319['model']['createRange'](_0x9938cf,_0x3c745b);_0x248319['model']['change'](()=>{for(const {suggestion:_0x3be5a9,meta:_0x41c723}of this['_findSuggestions'](_0x30b9d8)){if(_0x3be5a9['isMultiRange'])continue;if('formatInline'==_0x3be5a9['type'])continue;const _0x4a731a=this['_getAttributeKey'](_0x3be5a9);if(_0x4a731a&&this['_isBlockAttribute'](_0x4a731a)&&'split'!=_0x595477['type'])continue;const _0x546b11=_0x3be5a9['data']&&_0x3be5a9['data']['multipleBlocks'];('formatBlock'!=_0x3be5a9['type']||'split'==_0x595477['type']&&!_0x546b11)&&(_0x41c723['containsRangeInObject']||'insertion'==_0x3be5a9['type']&&_0x41c723['isOwn']||_0x3be5a9['getFirstRange']()['containsRange'](_0x30b9d8)&&this['_breakSuggestionMarker'](_0x3be5a9,_0x9938cf,_0x3c745b));}});},{'priority':'lowest'}),_0x248319['model']['on']('deleteContent',(_0x1f4112,_0x465242)=>{const _0x2f282f=_0x465242[0x0],_0x457ad5=_0x465242[0x1];if(_0x457ad5&&_0x457ad5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2f282f['isCollapsed'])return;const _0x590959=_0x248319['model']['schema'],{start:_0x1554f4,end:_0x3cfdde}=_0x2f282f['getFirstRange'](),_0x2026a9=_0x1554f4['nodeAfter']&&_0x590959['isLimit'](_0x1554f4['nodeAfter'])?null:_0x590959['getNearestSelectionRange'](_0x1554f4,'forward'),_0x4e85b8=_0x3cfdde['nodeBefore']&&_0x590959['isLimit'](_0x3cfdde['nodeBefore'])?null:_0x590959['getNearestSelectionRange'](_0x3cfdde,'backward'),_0x37d365=_0x248319['model']['createRange'](_0x2026a9?_0x2026a9['start']:_0x1554f4,_0x4e85b8?_0x4e85b8['end']:_0x3cfdde);_0x248319['model']['change'](_0x2406ac=>{this['markDeletion'](_0x37d365);const _0x2835bb=_0x248319['model']['schema']['getNearestSelectionRange'](_0x37d365['start']);_0x2f282f['is']('documentSelection')?_0x2406ac['setSelection'](_0x2835bb):_0x2f282f['setTo'](_0x2835bb);}),_0x1f4112['stop']();},{'priority':_0x1ba778['normal']+0xa}),_0x248319['model']['on']('insertContent',(_0x43ee4e,_0x2d307d)=>{const _0x2ccabd=_0x2d307d[_0x2d307d['length']-0x1];_0x2ccabd&&_0x2ccabd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x248319['model']['change'](()=>{let _0x43b40e=_0x248319['model']['insertContent'](_0x2d307d[0x0],_0x2d307d[0x1],_0x2d307d[0x2],{'forceDefaultExecution':!0x0});if(!_0x43b40e)return;_0x43ee4e['return']=_0x43b40e['clone']();const _0x5af3da=_0x43b40e['end']['nodeBefore'],_0x4e9fb2=_0x248319['model']['schema'];_0x5af3da&&_0x4e9fb2['isBlock'](_0x5af3da)&&!_0x4e9fb2['isObject'](_0x5af3da)&&(_0x43b40e=_0x248319['model']['createRange'](_0x43b40e['start'],_0x248319['model']['createPositionAt'](_0x5af3da,'end'))),this['markInsertion'](_0x43b40e);}),_0x43ee4e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb54fb=new $(_0x248319,this['_suggestions']);_0x248319['commands']['add']('acceptSuggestion',_0xb54fb),this['enableCommand']('acceptSuggestion');const _0x35df8c=new B(_0x248319,this['_suggestions']);_0x248319['commands']['add']('discardSuggestion',_0x35df8c),this['enableCommand']('discardSuggestion'),_0x248319['commands']['add']('acceptAllSuggestions',new x(_0x248319,_0xb54fb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x248319['commands']['add']('discardAllSuggestions',new x(_0x248319,_0x35df8c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x248319['commands']['add']('acceptSelectedSuggestions',new R(_0x248319,_0xb54fb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x248319['commands']['add']('discardSelectedSuggestions',new R(_0x248319,_0x35df8c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4d1010=_0x248319['plugins']['get']('CommentsRepository');this['listenTo'](_0x4d1010,'addComment',(_0x3cbb79,{threadId:_0x1c512d})=>{const _0x5b6bc6=this['_suggestions']['get'](_0x1c512d);_0x5b6bc6&&_0x5b6bc6['commentThread']&&0x1===_0x5b6bc6['commentThread']['length']&&this['_updateSuggestionData'](_0x1c512d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4d1010,'removeComment',(_0x35a847,{threadId:_0x436977})=>{const _0x2541a0=this['_suggestions']['get'](_0x436977);_0x2541a0&&_0x2541a0['commentThread']&&!_0x2541a0['commentThread']['length']&&this['_updateSuggestionData'](_0x436977,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3a1e64){if(this['_adapter'])throw new _0x2a5c42('track-changes-adapter-already-set',this);this['_adapter']=_0x3a1e64;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x322b97=!0x1,toJSON:_0x38f203=!0x1}={}){const _0x5b7887=[];for(const _0x1f8967 of this['_suggestions']['values']())_0x322b97&&!_0x1f8967['isInContent']||_0x5b7887['push'](_0x1f8967);return _0x38f203?_0x5b7887['map'](_0x485eaf=>_0x485eaf['toJSON']()):_0x5b7887;}['getSuggestion'](_0x4643a5){const _0x45cb56=this['_suggestions']['get'](_0x4643a5);if(!_0x45cb56)throw new _0x2a5c42('track-changes-suggestion-not-found',this);return _0x45cb56;}['hasSuggestion'](_0x4ff235){return this['_suggestions']['has'](_0x4ff235);}['addSuggestionData'](_0x5991dd){const {authorId:_0x3168f9,id:_0x3d01d4,attributes:_0x444ca2}=_0x5991dd,[_0x2c1ef6,_0x5ae1b6]=_0x5991dd['type']['split'](':'),_0x1a1041=this['_suggestions']['get'](_0x3d01d4)||this['_createSuggestion'](_0x2c1ef6,_0x5ae1b6,_0x3d01d4,_0x3168f9,_0x444ca2);if(this['_addThreadToSuggestion'](_0x1a1041),this['_checkSuggestionCorrectness'](_0x1a1041,_0x2c1ef6,_0x5ae1b6||null,_0x3168f9),_0x1a1041['createdAt']=_0x5991dd['createdAt'],_0x1a1041['_isDataLoaded']=!0x0,_0x444ca2&&_0x444ca2['@external']){const _0x34ffca=_0x444ca2['@external'],_0xae133c=this['_getExternalAuthor'](_0x34ffca['authorName']);_0x1a1041['authoredAt']=_0x34ffca['createdAt'],_0x1a1041['author']=_0xae133c,_0x1a1041['isExternal']=!0x0;}else _0x1a1041['authoredAt']=_0x5991dd['createdAt'];switch(_0x5991dd['data']&&(_0x1a1041['data']=_0x5991dd['data']),_0x5991dd['attributes']&&(_0x1a1041['attributes']=_0x5991dd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1a1041['_saved']=!0x0),this['_suggestionState']['get'](_0x1a1041)){case'notReady':this['_suggestionState']['set'](_0x1a1041,'dataReady');break;case'markerReady':_0x1a1041['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1a1041])),this['_refreshSuggestionsChain'](new Set([_0x1a1041])),this['_suggestionState']['set'](_0x1a1041,'ready'),this['fire']('suggestionLoaded',_0x1a1041)):this['_suggestionState']['set'](_0x1a1041,'removed');}return _0x1a1041;}['acceptSuggestion'](_0x533543){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3944e5 of _0x533543['getAllAdjacentSuggestions']())_0x3944e5['accept']();});});}['discardSuggestion'](_0xf23046){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c8750 of _0xf23046['getAllAdjacentSuggestions']())_0x3c8750['discard']();});});}['enableCommand'](_0x484889,_0x55bf40){const _0x3bfc82=this['editor']['commands']['get'](_0x484889);if(!_0x3bfc82)throw new _0x2a5c42('track-changes-command-not-found',this,{'commandName':_0x484889});if(this['_enabledCommands']['has'](_0x3bfc82))throw new _0x2a5c42('track-changes-enable-command-twice',this,{'commandName':_0x484889});this['_enabledCommands']['add'](_0x3bfc82),_0x55bf40&&_0x3bfc82['on']('execute',(_0x2be459,_0x5bc8fb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bc8fb['length']>0x0&&_0x5bc8fb[_0x5bc8fb['length']-0x1]&&_0x5bc8fb[_0x5bc8fb['length']-0x1]['forceDefaultExecution']?_0x5bc8fb['pop']():(_0x2be459['return']=_0x55bf40((..._0x46f30b)=>_0x3bfc82['execute'](..._0x46f30b,{'forceDefaultExecution':!0x0}),..._0x5bc8fb),_0x2be459['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4721e1){let _0x1592ad,_0x25d9e6;const _0x5a128b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1592ad=_0x4721e1();}catch(_0x13ee4e){_0x25d9e6=_0x13ee4e;}return _0x5a128b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x25d9e6&&_0x2a5c42['rethrowUnexpectedError'](_0x25d9e6,this),_0x1592ad;}['markInsertion'](_0x513524,_0x379aad=null,_0x253b1d={}){if(_0x513524['isCollapsed'])return null;const _0x6a9cf4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ac4bd,meta:_0x49acc1}of this['_findSuggestions'](_0x513524,'insertion'))if(_0x49acc1['isOwn']){if(!_0x49acc1['isNextTo']){if(_0x49acc1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5ac4bd,_0x253b1d))continue;return _0x5ac4bd;}if(Lt(_0x5ac4bd,_0x253b1d))return _0x5ac4bd;this['_breakSuggestionMarker'](_0x5ac4bd,_0x513524['start'],_0x513524['end']);break;}if(_0x379aad==_0x5ac4bd['subType']&&Lt(_0x5ac4bd,_0x253b1d)){const _0x3ee00d=_0x5ac4bd['getFirstRange']();return _0x3ee00d['start']['isEqual'](_0x513524['end'])?this['_setSuggestionRange'](_0x5ac4bd,this['_model']['createRange'](_0x513524['start'],_0x3ee00d['end'])):this['_setSuggestionRange'](_0x5ac4bd,this['_model']['createRange'](_0x3ee00d['start'],_0x513524['end'])),_0x5ac4bd;}}const _0x162723=_0x2c7d4a(),_0x3e2323=_0x6a9cf4['id'],_0x10c71d=_0x379aad?'insertion:'+_0x379aad:'insertion',_0x563e7a=this['_setSuggestionData']({'id':_0x162723,'type':_0x10c71d,'createdAt':new Date(),'authorId':_0x3e2323,'attributes':_0x253b1d});return this['_addSuggestionMarker'](_0x10c71d,_0x162723,_0x3e2323,_0x513524),_0x563e7a;}['markMultiRangeInsertion'](_0x464f99,_0xbac5af='multi',_0x34b528={}){const _0x296f43=this['editor']['plugins']['get']('Users')['me'],_0x552327=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xbac5af,'join');for(const _0x1c2698 of this['getSuggestions']())if(_0x1c2698['author']['id']==_0x296f43['id']&&'insertion'==_0x1c2698['type']&&_0x1c2698['subType']==_0xbac5af&&Lt(_0x1c2698,_0x34b528)&&(_0x552327(_0x1c2698['getRanges'](),_0x464f99)||_0x552327(_0x464f99,_0x1c2698['getRanges']()))){for(const _0x1b69a3 of _0x464f99)_0x1c2698['addRange'](_0x1b69a3);return _0x1c2698;}for(const {suggestion:_0x14fe15,meta:_0x12a1ff}of this['_findSuggestions'](_0x464f99,'insertion')){if(!_0x12a1ff['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x12a1ff['containsRangeInObject'])continue;if(!Lt(_0x14fe15,_0x34b528))continue;let _0x39a867=!0x0;for(const _0x5aa9e7 of _0x14fe15['getRanges']())for(const _0x40af10 of _0x464f99)if(!_0x5aa9e7['containsRange'](_0x40af10)){_0x39a867=!0x1;break;}if(_0x39a867)return _0x14fe15;}const _0x38fb93=_0x2c7d4a(),_0x433926=_0x296f43['id'],_0x1287bc='insertion:'+_0xbac5af,_0x131e29=this['_setSuggestionData']({'id':_0x38fb93,'type':_0x1287bc,'createdAt':new Date(),'authorId':_0x433926,'attributes':_0x34b528});for(const _0xd8ab0a of _0x464f99)this['_addSuggestionMarker'](_0x1287bc,_0x38fb93,_0x433926,_0xd8ab0a,u['getMultiRangeId']());return _0x131e29;}['markInlineFormat'](_0x22031b,_0x175108,_0x59f88d=null,_0x2bcbb4={}){if(_0x59f88d=_0x59f88d||Vt(_0x175108),_0x22031b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2af2de=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x59f88d,'accept');return this['forceDefaultExecution'](()=>_0x2af2de([_0x22031b],_0x175108,_0x2bcbb4)),null;}const _0x4f040d=this['editor']['plugins']['get']('Users')['me'],_0x1fa6ef=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x19b69d,meta:_0x25356b}of this['_findSuggestions'](_0x22031b,'insertion'))_0x25356b['isOwn']&&!_0x25356b['isInsideObject']&&_0x1fa6ef['push'](..._0x19b69d['getRanges']());}const _0x325f58=function(_0x13ca23,_0x5d32ef){const _0x490910=[];for(const _0x495ee2 of _0x5d32ef){const _0x51fcd4=_0x13ca23['getIntersection'](_0x495ee2);_0x51fcd4&&_0x490910['push'](_0x51fcd4);}return _0x490910;}(_0x22031b,_0x1fa6ef),_0x4b60f5=function(_0x7e23d1,_0x1e2c57){const _0x290e88=[_0x7e23d1];for(const _0x13a8cc of _0x1e2c57){let _0x57985b=0x0;for(;_0x57985b<_0x290e88['length'];){const _0x165638=_0x290e88[_0x57985b]['getDifference'](_0x13a8cc);_0x290e88['splice'](_0x57985b,0x1,..._0x165638),_0x57985b+=_0x165638['length'];}}return _0x290e88;}(_0x22031b,_0x1fa6ef);_0x325f58['length']&&this['_model']['change'](()=>{for(const _0x22b1ae of _0x325f58){const _0x23c1e9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x59f88d,'accept');this['forceDefaultExecution'](()=>_0x23c1e9([_0x22b1ae],_0x175108,_0x2bcbb4));}});for(const _0x33c5d4 of _0x4b60f5){let _0x3afb12=null,_0xab7331=_0x33c5d4['start'],_0x2168be=_0x33c5d4['end'];for(const {suggestion:_0x355901,meta:_0x416e1e}of this['_findSuggestions'](_0x33c5d4,'formatInline')){if(!_0x416e1e['isOwn'])continue;if(_0x355901['subType']!=_0x59f88d)continue;if(!Lt(_0x355901,_0x2bcbb4))continue;const _0xec2602=_0x355901['getFirstRange']();if(_0xec2602['containsRange'](_0x33c5d4,!0x0))return null;_0xab7331=_0xab7331['isBefore'](_0xec2602['start'])?_0xab7331:_0xec2602['start'],_0x2168be=_0x2168be['isAfter'](_0xec2602['end'])?_0x2168be:_0xec2602['end'],_0x3afb12?_0xec2602['start']['isBefore'](_0x3afb12['getFirstRange']()['start'])?(_0x3afb12['removeMarkers'](),_0x3afb12=_0x355901):_0x355901['removeMarkers']():_0x3afb12=_0x355901;}const _0x408efc=this['_model']['createRange'](_0xab7331,_0x2168be);if(_0x3afb12)this['_setSuggestionRange'](_0x3afb12,_0x408efc);else{const _0x2c918d=_0x2c7d4a(),_0x48494e=_0x4f040d['id'];this['_setSuggestionData']({'id':_0x2c918d,'type':'formatInline:'+_0x59f88d,'data':_0x175108,'createdAt':new Date(),'authorId':_0x48494e,'attributes':_0x2bcbb4}),this['_addSuggestionMarker']('formatInline:'+_0x59f88d,_0x2c918d,_0x48494e,_0x408efc);}}return null;}['markBlockFormat'](_0xf7195d,_0x4f52ec,_0x305066=[],_0x4e7ddf=null,_0x23de79={}){_0x4f52ec['formatGroupId']||(_0x4f52ec['formatGroupId']=_0x4f52ec['commandName']),_0x4f52ec['multipleBlocks']=_0xf7195d['is']('range'),_0x4e7ddf=_0x4e7ddf||Vt(_0x4f52ec);const _0x3b00a3=_0x305066['map'](_0x367489=>Gt(_0x367489,this['_model'])),_0x3145b2=_0xf7195d['is']('range')?_0xf7195d:Gt(_0xf7195d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x29b496=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e7ddf,'accept');return this['forceDefaultExecution'](()=>_0x29b496([_0x3145b2],_0x4f52ec,_0x23de79)),null;}_0x3b00a3['push'](_0x3145b2);let _0xa52439=!0x0;for(const _0x9f75de of _0x3b00a3)if(!this['_rangeIsInLocalUserInsertion'](_0x9f75de)){_0xa52439=!0x1;break;}if(_0xa52439&&'always'!==this['_trackFormatChanges']){const _0x2af82a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e7ddf,'accept');return this['forceDefaultExecution'](()=>_0x2af82a([_0x3145b2],_0x4f52ec,_0x23de79)),null;}let _0x39078b=null,_0x12e070=_0x3145b2['start'],_0x2dbc69=_0x3145b2['end'];for(const {suggestion:_0x36a714,meta:_0x11e83f}of this['_findSuggestions'](_0x3145b2,'formatBlock')){if(!_0x11e83f['isOwn'])continue;if(_0x11e83f['isNextTo']||_0x11e83f['containsRangeInObject']||_0x11e83f['isInsideObject'])continue;if(_0x36a714['data']['formatGroupId']!=_0x4f52ec['formatGroupId'])continue;if(!Lt(_0x36a714,_0x23de79))continue;const _0x56e812=_0x36a714['getFirstRange']();if(_0x36a714['subType']==_0x4e7ddf){if(_0x56e812['containsRange'](_0x3145b2,!0x0))return null;_0x12e070=_0x12e070['isBefore'](_0x56e812['start'])?_0x12e070:_0x56e812['start'],_0x2dbc69=_0x2dbc69['isAfter'](_0x56e812['end'])?_0x2dbc69:_0x56e812['end'],_0x39078b?_0x56e812['start']['isBefore'](_0x39078b['getFirstRange']()['start'])?(_0x39078b['removeMarkers'](),_0x39078b=_0x36a714):_0x36a714['removeMarkers']():_0x39078b=_0x36a714;}else{const _0x1729d1=_0x3145b2['getIntersection'](_0x56e812);this['_cutOutSuggestionMarker'](_0x36a714,_0x1729d1);}}const _0xad2583=this['editor']['plugins']['get']('Users')['me'],_0x17f37f=_0x2c7d4a(),_0x29e3f7=_0xad2583['id'];if(_0x39078b)return this['_setSuggestionRange'](_0x39078b,this['_model']['createRange'](_0x12e070,_0x2dbc69)),_0x39078b;{const _0x1f9895=this['_setSuggestionData']({'id':_0x17f37f,'type':'formatBlock:'+_0x4e7ddf,'data':_0x4f52ec,'createdAt':new Date(),'authorId':_0x29e3f7,'attributes':_0x23de79});return this['_addSuggestionMarker']('formatBlock:'+_0x4e7ddf,_0x17f37f,_0x29e3f7,this['_model']['createRange'](_0x12e070,_0x2dbc69)),_0x1f9895;}}['markMultiRangeBlockFormat'](_0x2714de,_0x5c1ac5,_0x34f136=[],_0x499614=null,_0x1eb13b={}){_0x5c1ac5['formatGroupId']||(_0x5c1ac5['formatGroupId']=_0x5c1ac5['commandName']);const _0x24b34a=_0x2714de[0x0];_0x5c1ac5['multipleBlocks']=_0x24b34a['is']('range'),_0x499614=_0x499614||Vt(_0x5c1ac5);const _0x502f82=_0x34f136['map'](_0x2f4e75=>Gt(_0x2f4e75,this['_model'])),_0x23e9fe=_0x24b34a['is']('range')?_0x2714de:_0x2714de['map'](_0x17f4ac=>Gt(_0x17f4ac,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2ef25b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x499614,'accept');return this['forceDefaultExecution'](()=>_0x2ef25b(_0x23e9fe,_0x5c1ac5,_0x1eb13b)),null;}_0x502f82['push'](..._0x23e9fe);let _0x359bfb=!0x0;for(const _0x299107 of _0x502f82)if(!this['_rangeIsInLocalUserInsertion'](_0x299107)){_0x359bfb=!0x1;break;}if(_0x359bfb&&'always'!==this['_trackFormatChanges']){const _0x558b1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x499614,'accept');return this['forceDefaultExecution'](()=>_0x558b1e(_0x23e9fe,_0x5c1ac5,_0x1eb13b)),null;}const _0x5e19bc=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a8cb6 of this['getSuggestions']()){if(_0x3a8cb6['author']['id']!=_0x5e19bc['id'])continue;if('formatBlock'!=_0x3a8cb6['type']||_0x3a8cb6['data']['formatGroupId']!=_0x5c1ac5['formatGroupId'])continue;if(!Lt(_0x3a8cb6,_0x1eb13b))continue;const _0x3e60c6=_0x3a8cb6['subType']==_0x499614;for(let _0x2d592e=0x0;_0x2d592e<_0x23e9fe['length'];_0x2d592e++){const _0x47992f=_0x23e9fe[_0x2d592e];for(const _0x2b524b of _0x3a8cb6['getMarkers']()){const _0x24d765=_0x2b524b['getRange']();if(_0x47992f['isEqual'](_0x24d765)){_0x3e60c6?(_0x23e9fe['splice'](_0x2d592e,0x1),_0x2d592e--):_0x3a8cb6['removeMarker'](_0x2b524b['name']);break;}}}}if(0x0==_0x23e9fe['length'])return null;const _0x2127cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x499614,'join');for(const _0x576cc0 of this['getSuggestions']())if(_0x576cc0['author']['id']==_0x5e19bc['id']&&'formatBlock'==_0x576cc0['type']&&_0x576cc0['data']['formatGroupId']==_0x5c1ac5['formatGroupId']&&_0x576cc0['subType']==_0x499614&&Lt(_0x576cc0,_0x1eb13b)&&(_0x2127cc(_0x576cc0['getRanges'](),_0x23e9fe)||_0x2127cc(_0x23e9fe,_0x576cc0['getRanges']()))){for(const _0xb6ade9 of _0x23e9fe)_0x576cc0['addRange'](_0xb6ade9);return _0x576cc0;}const _0x1510fc=_0x2c7d4a(),_0x45004c=_0x5e19bc['id'],_0x81b39f='formatBlock:'+_0x499614,_0x16d00b=this['_setSuggestionData']({'id':_0x1510fc,'type':_0x81b39f,'data':_0x5c1ac5,'createdAt':new Date(),'authorId':_0x45004c,'attributes':_0x1eb13b});for(const _0x276488 of _0x23e9fe)this['_addSuggestionMarker'](_0x81b39f,_0x1510fc,_0x45004c,_0x276488,u['getMultiRangeId']());return _0x16d00b;}['markDeletion'](_0x28f789,_0x224e70=null,_0x35f669={}){if(_0x28f789['isCollapsed'])return null;const _0x51ee6e=this['editor']['plugins']['get']('Users')['me'],_0x53116c=new _0x3d4179(_0x28f789['start'],_0x28f789['end']);for(const {suggestion:_0x24a176,meta:_0x45081e}of this['_findSuggestions'](_0x53116c,'insertion'))if(_0x45081e['isOwn']&&!_0x45081e['isNextTo']){if(_0x24a176['isMultiRange']){const _0x298867=_0x24a176['getRanges']()['filter'](_0x287b3=>'$graveyard'!=_0x287b3['root']['rootName']);_0x298867['every'](_0x3fdce3=>_0x53116c['containsRange'](_0x3fdce3,!0x0))&&_0x24a176['discard']();if(_0x298867['some'](_0x3b6a67=>_0x3b6a67['containsRange'](_0x53116c,!0x0))){const _0x4c71ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x224e70,'accept');return this['forceDefaultExecution'](()=>_0x4c71ca([_0x53116c],null,_0x35f669)),null;}}else{const _0x54989b=_0x53116c['getIntersection'](_0x24a176['getFirstRange']());null!==_0x54989b&&_0x24a176['_onDiscard']([_0x54989b],null,_0x35f669);}}if(_0x53116c['detach'](),_0x53116c['isCollapsed']||'$graveyard'==_0x53116c['root']['rootName'])return null;let _0x4cf546=null,_0x535331=_0x53116c['start'],_0x1a8f8e=_0x53116c['end'];const _0x53e885=this['_findSuggestions'](_0x53116c,'deletion');for(const {suggestion:_0x43c02f,meta:_0x116217}of _0x53e885){const _0x1149f2=this['_model']['createRange'](_0x535331,_0x1a8f8e);if(_0x116217['isOwn']&&(this['_mergeNestedSuggestions']||!_0x116217['containsRangeInObject']&&!_0x116217['isInsideObject'])){if(_0x43c02f['isMultiRange']){if(!Lt(_0x43c02f,_0x35f669))continue;let _0x4684e8=!0x0;for(const _0x8ea38 of _0x43c02f['getRanges']()){if(_0x8ea38['containsRange'](_0x1149f2,!0x0))return _0x43c02f;_0x1149f2['containsRange'](_0x8ea38)||(_0x4684e8=!0x1);}_0x4684e8&&_0x43c02f['discard']();}else{const _0x2c03e2=_0x43c02f['getFirstRange']();if(_0x2c03e2['containsRange'](_0x1149f2,!0x0))return _0x43c02f;if(!Lt(_0x43c02f,_0x35f669)){_0x1149f2['containsRange'](_0x2c03e2)?_0x43c02f['removeMarkers']():_0x2c03e2['containsPosition'](_0x535331)?_0x535331=_0x2c03e2['end']:_0x2c03e2['containsPosition'](_0x1a8f8e)&&(_0x1a8f8e=_0x2c03e2['start']);continue;}_0x535331=_0x535331['isBefore'](_0x2c03e2['start'])?_0x535331:_0x2c03e2['start'],_0x1a8f8e=_0x1a8f8e['isAfter'](_0x2c03e2['end'])?_0x1a8f8e:_0x2c03e2['end'],_0x35f669=Object['assign']({},_0x43c02f['attributes']),_0x4cf546?_0x2c03e2['start']['isBefore'](_0x4cf546['getFirstRange']()['start'])?(_0x4cf546['removeMarkers'](),_0x4cf546=_0x43c02f):_0x43c02f['removeMarkers']():_0x4cf546=_0x43c02f;}}}if(_0x4cf546)return this['_setSuggestionRange'](_0x4cf546,this['_model']['createRange'](_0x535331,_0x1a8f8e)),_0x4cf546;{const _0x14bc38=_0x2c7d4a(),_0x1895cf=this['_model']['createRange'](_0x535331,_0x1a8f8e),_0x323d36=_0x51ee6e['id'],_0x1b2642=_0x224e70?'deletion:'+_0x224e70:'deletion',_0x3c0cc1=this['_setSuggestionData']({'id':_0x14bc38,'type':_0x1b2642,'createdAt':new Date(),'authorId':_0x323d36,'attributes':_0x35f669});return this['_addSuggestionMarker'](_0x1b2642,_0x14bc38,_0x323d36,_0x1895cf),_0x3c0cc1;}}['markMultiRangeDeletion'](_0x84dea1,_0x129b5e='multi',_0x2bb4f6={}){const _0x2fd98f=this['editor']['plugins']['get']('Users')['me'],_0x485c99=_0x84dea1['map'](_0x463d72=>new _0x3d4179(_0x463d72['start'],_0x463d72['end'])),_0x51ff4b=new Set();for(const {suggestion:_0x305d53,meta:_0x9a4c8}of this['_findSuggestions'](_0x485c99,'insertion'))_0x9a4c8['isOwn']&&!_0x9a4c8['isNextTo']&&_0x51ff4b['add'](_0x305d53);for(const _0xfb01d7 of _0x51ff4b)if(_0xfb01d7['isMultiRange']){const _0x555f43=_0xfb01d7['getRanges']();(!_0xfb01d7['attributes']||!_0xfb01d7['attributes']['skipNestingCheck'])&&(_0x555f43['every'](_0x5ba2ab=>_0x485c99['some'](_0x35b531=>_0x35b531['containsRange'](_0x5ba2ab,!0x0)))&&_0xfb01d7['discard']());if(_0x485c99['every'](_0x125ac6=>_0x555f43['some'](_0x4d8658=>_0x4d8658['containsRange'](_0x125ac6,!0x0)))){const _0x1b3f4e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x129b5e,'accept');return this['forceDefaultExecution'](()=>_0x1b3f4e(_0x84dea1,null,_0x2bb4f6)),null;}}else{const _0x274f54=_0xfb01d7['getFirstRange']();_0x485c99['some'](_0x5c9b9e=>_0x5c9b9e['containsRange'](_0x274f54,!0x0))&&_0xfb01d7['discard']();if(_0x485c99['every'](_0x2f6215=>_0x274f54['containsRange'](_0x2f6215,!0x0))){const _0x2b409c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x129b5e,'accept');return this['forceDefaultExecution'](()=>_0x2b409c(_0x485c99,null,_0x2bb4f6)),null;}}const _0x30bb32=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x129b5e,'join');let _0x389d2a=null;for(const _0x37186c of this['getSuggestions']())if(_0x37186c['author']['id']==_0x2fd98f['id']&&_0x37186c['isInContent']&&'deletion'==_0x37186c['type']&&_0x37186c['subType']==_0x129b5e&&Lt(_0x37186c,_0x2bb4f6)&&(_0x30bb32(_0x37186c['getRanges'](),_0x485c99)||_0x30bb32(_0x485c99,_0x37186c['getRanges']()))){if(_0x389d2a){if(_0x37186c['commentThread']&&_0x37186c['commentThread']['length'])continue;for(const _0x54bb22 of _0x37186c['getRanges']())_0x389d2a['isIntersectingWithRange'](_0x54bb22)||_0x389d2a['addRange'](_0x54bb22);_0x37186c['removeMarkers']();}else{_0x389d2a=_0x37186c;for(const _0x2233df of _0x485c99)_0x37186c['isIntersectingWithRange'](_0x2233df)||_0x37186c['addRange'](_0x2233df);}}if(_0x389d2a)return _0x389d2a;_0x51ff4b['clear']();for(const {suggestion:_0x5cfeb4,meta:_0x9f1f8}of this['_findSuggestions'](_0x485c99,'deletion'))_0x9f1f8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9f1f8['containsRangeInObject']&&!_0x9f1f8['isInsideObject'])&&Lt(_0x5cfeb4,_0x2bb4f6)&&_0x51ff4b['add'](_0x5cfeb4);for(const _0x528609 of _0x51ff4b){const _0x1c0b1b=_0x528609['getRanges']();if(!_0x2bb4f6||!_0x2bb4f6['skipNestingCheck']){if(_0x485c99['every'](_0x5ef6eb=>_0x1c0b1b['some'](_0x5be604=>_0x5be604['containsRange'](_0x5ef6eb,!0x0))))return _0x528609;}(!_0x528609['attributes']||!_0x528609['attributes']['skipNestingCheck'])&&(_0x1c0b1b['every'](_0x23b34f=>_0x485c99['some'](_0x35115b=>_0x35115b['containsRange'](_0x23b34f,!0x0)))&&_0x528609['discard']());}const _0x452501=_0x2c7d4a(),_0x5e970c=_0x2fd98f['id'],_0x4b7a7d='deletion:'+_0x129b5e,_0x2c8e89=this['_setSuggestionData']({'id':_0x452501,'type':_0x4b7a7d,'createdAt':new Date(),'authorId':_0x5e970c,'attributes':_0x2bb4f6});for(const _0x514fad of _0x485c99)_0x514fad['detach'](),_0x514fad['isCollapsed']||'$graveyard'==_0x514fad['root']['rootName']||this['_addSuggestionMarker'](_0x4b7a7d,_0x452501,_0x5e970c,_0x514fad,u['getMultiRangeId']());return _0x2c8e89;}['markAttributeChange'](_0x5a27a4,_0x9f71a2,_0x36e9ed,_0x5adaef,_0x48022e){if(_0x5a27a4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x171c55=this['editor']['plugins']['get']('Users')['me']['id'],_0x238c9f=Array['from'](this['_suggestions']['values']())['filter'](_0x3235cf=>'attribute'==_0x3235cf['type']&&_0x3235cf['data']['key']==_0x9f71a2&&_0x3235cf['isIntersectingWithRange'](_0x5a27a4));if('default'===this['_trackFormatChanges']){const _0x5eaf82=this['_findSuggestions'](_0x5a27a4,'insertion')['filter'](({meta:_0x395b65})=>_0x395b65['isOwn']&&!_0x395b65['isInsideObject']&&!_0x395b65['isNextTo'])['map'](({suggestion:_0x472ea0})=>_0x472ea0);_0x238c9f['unshift'](..._0x5eaf82);}const _0x4e570a=new Map([[_0x5a27a4,_0x36e9ed]]);for(const _0x4208a4 of _0x238c9f){const _0x508a33='attribute'==_0x4208a4['type']?_0x4208a4['data']['oldValue']:void 0x0,_0x41030f=_0x4208a4['getFirstRange'](),_0x52910c=Array['from'](_0x4e570a['keys']())['find'](_0x4edd5a=>_0x4edd5a['isIntersecting'](_0x41030f));if(!_0x52910c)continue;const _0x1da221=_0x52910c['getDifference'](_0x41030f);this['_isBlockAttribute'](_0x9f71a2)&&'insertion'==_0x4208a4['type']&&0x0!=_0x1da221['length']||(_0x4e570a['delete'](_0x52910c),_0x1da221['forEach'](_0x1d45bc=>{_0x4e570a['set'](_0x1d45bc,_0x36e9ed);}),'insertion'!=_0x4208a4['type']&&_0x508a33!=_0x5adaef&&_0x4e570a['set'](_0x52910c['getIntersection'](_0x41030f),_0x508a33));}const _0x40b70a=[];for(const [_0x381c78,_0x2ac4ab]of _0x4e570a){const _0x5b5c01=_0x2c7d4a(),_0x5c149a={'key':_0x9f71a2,'oldValue':_0x2ac4ab,'newValue':_0x5adaef};_0x9f71a2['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':_0x9f71a2});const _0x196c38=('attribute:'+(_0x9f71a2+'|'+Vt({'newValue':_0x5adaef})))['substring'](0x0,0x3c),_0x53cc9c=this['_setSuggestionData']({'id':_0x5b5c01,'type':_0x196c38,'data':_0x5c149a,'createdAt':new Date(),'authorId':_0x171c55,'attributes':_0x48022e});_0x40b70a['push'](_0x53cc9c),this['_addSuggestionMarker'](_0x196c38,_0x5b5c01,_0x171c55,_0x381c78);}return _0x40b70a;}['_registerBlockAttribute'](_0x1e0e69){this['_blockAttributeKeys']['add'](_0x1e0e69);}['_registerInlineAttribute'](_0x279ac4){this['_inlineAttributeKeys']['add'](_0x279ac4);}['_enableDefaultAttributesIntegration'](_0x3c3e37,_0x5c1845=[],_0x34e023=[]){this['enableCommand'](_0x3c3e37,(_0x4d3366,..._0x54cd69)=>{this['_recordAttributeChanges'](()=>{_0x4d3366(..._0x54cd69);});});for(const _0x268379 of _0x5c1845)this['_registerInlineAttribute'](_0x268379);for(const _0x54e56c of _0x34e023)this['_registerBlockAttribute'](_0x54e56c);}['_getAttributeKey'](_0x27e3a1){return'attribute'==_0x27e3a1['type']?_0x27e3a1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28bf0b,_0x6837b5){const _0x51c4a4=_0x28bf0b['getFirstMarker']();this['_model']['change'](_0xfaecd8=>{_0xfaecd8['updateMarker'](_0x51c4a4,{'range':_0x6837b5});});}['_addThreadToSuggestion'](_0x4ee7ee){const _0x4fd652=_0x4ee7ee['id'],_0x1508e4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4fd652)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1508e4,'threadId':_0x4fd652,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3612cd=this['_commentsRepository']['getCommentThread'](_0x4fd652);_0x3612cd['unbind']('isRemovable'),_0x3612cd['isRemovable']=!0x1,_0x4ee7ee['commentThread']=_0x3612cd;}['_checkSuggestionCorrectness'](_0x31d00a,_0x42b9f2,_0x224885,_0x4a272a){if(_0x31d00a['type']!=_0x42b9f2||_0x31d00a['subType']!=_0x224885||_0x31d00a['creator']['id']!=_0x4a272a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a5c42('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x588eb0,_0x40de12){const _0xae6be3=_0x588eb0['getFirstRange']();if(_0x40de12['isEqual'](_0xae6be3))_0x588eb0['removeMarkers']();else{if(_0xae6be3['containsRange'](_0x40de12)){const _0x237f15=this['_model']['createPositionAt'](_0x40de12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x588eb0,this['_model']['createRange'](_0xae6be3['start'],_0x237f15));const _0x7ff069=_0x2c7d4a(),_0x8ae5a7=_0x588eb0['creator']['id'],_0x3b61c6=_0x588eb0['type']+':'+_0x588eb0['subType'];this['_setSuggestionData']({'id':_0x7ff069,'type':_0x3b61c6,'createdAt':new Date(),'authorId':_0x8ae5a7,'data':_0x588eb0['data'],'attributes':_0x588eb0['attributes']});const _0x5e3a7a=this['_model']['createPositionAt'](_0x40de12['end']['parent'],'after'),_0x2c9021=this['_model']['createRange'](_0x5e3a7a,_0xae6be3['end']);this['_addSuggestionMarker'](_0x3b61c6,_0x7ff069,_0x8ae5a7,_0x2c9021);}else{if(_0xae6be3['containsPosition'](_0x40de12['start'])){const _0x549806=this['_model']['createPositionAt'](_0x40de12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x588eb0,this['_model']['createRange'](_0xae6be3['start'],_0x549806));}else{const _0x4790a3=this['_model']['createPositionAt'](_0x40de12['end']['parent'],'after');this['_setSuggestionRange'](_0x588eb0,this['_model']['createRange'](_0x4790a3,_0xae6be3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xdc0344){for(const {suggestion:_0x2c19e3,meta:_0x2a1c87}of this['_findSuggestions'](_0xdc0344,'insertion')){if(!_0x2a1c87['isOwn'])continue;const _0x5d19ec=_0x2c19e3['getRanges']();for(const _0x2396f4 of _0x5d19ec)if(!_0xdc0344['getDifference'](_0x2396f4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x51f4f2){const _0x5ea219=this['editor']['plugins']['get']('Users')['getUser'](_0x51f4f2);if(!_0x5ea219)throw new _0x2a5c42('track-changes-user-not-found',this);return _0x5ea219;}['_getExternalAuthor'](_0x458a14){const _0x54a3d6=this['editor']['plugins']['get']('Users'),_0x52e9e8=_0x59c610('external:'+_0x458a14),_0x2a232e=_0x54a3d6['getUser'](_0x52e9e8);return _0x2a232e||_0x54a3d6['addUser']({'id':_0x52e9e8,'name':_0x458a14});}['_createSuggestion'](_0x2fbf78,_0xc732d8,_0x3e37b2,_0x382c76,_0x52d82a){const _0x245317=this['_getAuthorFromId'](_0x382c76),_0x233e2c=this['_suggestionFactory']['buildSuggestion'](_0x2fbf78,_0xc732d8,_0x3e37b2,_0x245317,_0x52d82a,_0x1fc1af=>{this['_updateSuggestionData'](_0x3e37b2,{'attributes':_0x1fc1af});const _0x217c8b=this['getSuggestion'](_0x3e37b2);this['_joinWithAdjacentSuggestions'](new Set([_0x217c8b])),this['_refreshSuggestionsChain'](new Set([_0x217c8b]));});return this['listenTo'](_0x233e2c,'accept',()=>{this['_updateSuggestionData'](_0x3e37b2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x233e2c,'discard',()=>{this['_updateSuggestionData'](_0x3e37b2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e37b2,_0x233e2c),this['_suggestionState']['set'](_0x233e2c,'notReady'),_0x233e2c;}['_splitMarkerName'](_0x34b241){const _0x10d57b=_0x34b241['split'](':');return{'group':_0x10d57b[0x0],'type':_0x10d57b[0x1],'subType':_0x10d57b['length']>=0x5?_0x10d57b[0x2]:null,'id':_0x10d57b['length']<0x5?_0x10d57b[0x2]:_0x10d57b[0x3],'authorId':_0x10d57b['length']<0x5?_0x10d57b[0x3]:_0x10d57b[0x4],'markerCount':0x6==_0x10d57b['length']?_0x10d57b[0x5]:null};}['_breakSuggestionMarker'](_0x129722,_0x3e8abc,_0x15a13a){const _0xb8854f=_0x129722['getFirstRange'](),_0x3851e6=_0xb8854f['start'],_0x2f44ba=_0xb8854f['end'];this['_setSuggestionRange'](_0x129722,this['_model']['createRange'](_0x3851e6,_0x3e8abc));const _0x4b58a6=_0x2c7d4a(),_0x4f5afe=_0x129722['creator']['id'],_0x2ff884=_0x129722['type']+(_0x129722['subType']?':'+_0x129722['subType']:'');this['_setSuggestionData']({'id':_0x4b58a6,'type':_0x2ff884,'createdAt':new Date(),'authorId':_0x4f5afe,'originalSuggestionId':_0x129722['id'],'attributes':_0x129722['attributes'],'data':_0x129722['data']});const _0x52d563=this['_getAttributeKey'](_0x129722);('formatBlock'==_0x129722['type']||_0x52d563&&this['_isBlockAttribute'](_0x52d563))&&(_0x15a13a=this['_model']['createPositionBefore'](_0x15a13a['parent'])),this['_addSuggestionMarker'](_0x2ff884,_0x4b58a6,_0x4f5afe,this['_model']['createRange'](_0x15a13a,_0x2f44ba));}['_findSuggestions'](_0x5601ad,_0xd2d3f8=null){const _0xe4cf7a=[],_0x1106ee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5601ad)||(_0x5601ad=[_0x5601ad]);for(const _0x248327 of this['getSuggestions']()){if(!_0x248327['isInContent'])continue;if(_0xd2d3f8&&_0x248327['type']!=_0xd2d3f8)continue;let _0x4919b2=!0x1;for(const _0x5652df of _0x248327['getRanges']()){for(const _0x34670b of _0x5601ad){const _0x5ad393=_0x34670b['start']['isEqual'](_0x5652df['end'])||_0x34670b['end']['isEqual'](_0x5652df['start']);if(_0x5ad393||_0x34670b['getIntersection'](_0x5652df)){const _0x3d9b2f=_0x34670b['containsRange'](_0x5652df)&&Rt(this['_model']['schema'],_0x5652df['start'],_0x34670b),_0x1e4e2f=_0x5652df['containsRange'](_0x34670b)&&Rt(this['_model']['schema'],_0x34670b['start'],_0x5652df);_0xe4cf7a['push']({'suggestion':_0x248327,'meta':{'isOwn':_0x1106ee==_0x248327['author'],'isNextTo':_0x5ad393,'isInsideObject':_0x3d9b2f,'containsRangeInObject':_0x1e4e2f}}),_0x4919b2=!0x0;break;}}if(_0x4919b2)break;}}return _0xe4cf7a;}['_addSuggestionMarker'](_0x2dbb2a,_0x68b037,_0x23266d,_0x1d7e4e,_0x4c1119){this['_model']['change'](_0x3a50f6=>{let _0x1ae450='suggestion:'+_0x2dbb2a+':'+_0x68b037+':'+_0x23266d;_0x4c1119&&(_0x1ae450=_0x1ae450+':'+_0x4c1119),_0x3a50f6['addMarker'](_0x1ae450,{'range':_0x1d7e4e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x409390){const _0x276dad=_0x409390['previous'],_0x4e5f3c=_0x409390['next'];_0x409390['previous']=null,_0x409390['next']=null,null!=_0x276dad&&_0x276dad['next']==_0x409390&&(_0x276dad['next']=_0x4e5f3c),null!=_0x4e5f3c&&_0x4e5f3c['previous']==_0x409390&&(_0x4e5f3c['previous']=_0x276dad),'ready'==this['_suggestionState']['get'](_0x409390)&&(this['_suggestionState']['set'](_0x409390,'removed'),this['fire']('suggestionUnloaded',_0x409390,_0x276dad,_0x4e5f3c));}['_setSuggestionData'](_0x848337){const _0x2f843c=_0x848337['id'],_0x2e3f2a=this['addSuggestionData'](_0x848337);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x550314=this['editor']['plugins']['get']('PendingActions'),_0x296414=_0x2e3f2a['hasComments'],_0x312166=_0x2e3f2a['subType']?_0x2e3f2a['type']+':'+_0x2e3f2a['subType']:_0x2e3f2a['type'],_0xcdba2e=this['editor']['locale'],_0x100bbb=_0x550314['add'](o(_0xcdba2e,'PENDING_ACTION_SUGGESTION')),_0x4ba6f5={'id':_0x2f843c,'type':_0x312166,'hasComments':_0x296414,'data':_0x848337['data']||null,'originalSuggestionId':_0x848337['originalSuggestionId']||null,'attributes':_0x2e3f2a['attributes']};this['_adapter']['addSuggestion'](_0x4ba6f5)['then'](_0x530c01=>{_0x2e3f2a['_saved']=!0x0,_0x550314['remove'](_0x100bbb),_0x530c01&&_0x530c01['createdAt']&&(this['_suggestions']['get'](_0x2f843c)['createdAt']=_0x530c01['createdAt']);})['catch'](_0xddeaa9=>{throw _0x470b78('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e3f2a['discard']();}),_0x2e3f2a['stopListening'](),this['_suggestions']['delete'](_0x2e3f2a['id']),this['_suggestionState']['delete'](_0x2e3f2a),_0xddeaa9;});}return _0x2e3f2a;}['_isBlockAttribute'](_0x6b1e53){return this['_blockAttributeKeys']['has'](_0x6b1e53);}['_updateSuggestionData'](_0x54903a,_0x40a5b5){const _0x5c657f=this['editor']['plugins']['get']('PendingActions'),_0x321ff4=this['getSuggestion'](_0x54903a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x321ff4['_saved']){const _0x209415=_0x5c657f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x54903a,_0x40a5b5)['then'](()=>{_0x5c657f['remove'](_0x209415);});}else _0x321ff4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x54903a,_0x40a5b5);});}}['_getSuggestionData'](_0x52a2a6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a5c42('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x52a2a6);}['_handleNewSuggestionMarker'](_0x48fffa){const {id:_0x3a420d,type:_0x506a4a,subType:_0x541a46,authorId:_0x4b451a}=this['_splitMarkerName'](_0x48fffa),_0x440a03=this['_suggestions']['get'](_0x3a420d)||this['_createSuggestion'](_0x506a4a,_0x541a46,_0x3a420d,_0x4b451a,{});switch(this['_checkSuggestionCorrectness'](_0x440a03,_0x506a4a,_0x541a46,_0x4b451a),this['_suggestionState']['get'](_0x440a03)){case'notReady':this['_getSuggestionData'](_0x3a420d)['then'](_0x58a3d5=>{let _0x1cac88=Promise['resolve']();_0x58a3d5['hasComments']&&(_0x1cac88=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3a420d})),_0x1cac88['then'](()=>{this['addSuggestionData'](_0x58a3d5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x440a03,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3a420d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x440a03,'ready'),this['fire']('suggestionLoaded',_0x440a03);break;case'ready':this['fire']('suggestionChanged',_0x440a03);}return _0x440a03['addMarkerName'](_0x48fffa),_0x440a03;}['_refreshSuggestionsChain'](_0x4c99d6){const _0x4aeec6=Array['from'](_0x4c99d6),_0x4f1de6=_0x4aeec6['filter'](_0x49b322=>'attribute'==_0x49b322['type']);this['_refreshAttributeSuggestionsChain'](_0x4f1de6);const _0x4610e7=_0x4aeec6['filter'](_0x2597c2=>!_0x2597c2['isMultiRange']&&'attribute'!=_0x2597c2['type']),_0x2bd54d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37ce53=>!_0x37ce53['isMultiRange']&&'attribute'!=_0x37ce53['type']),_0x24bc2f=_0x2bd54d['filter'](_0x3d17fe=>!_0x4c99d6['has'](_0x3d17fe)),_0x1166e8=new Map(_0x2bd54d['map'](_0x1f4af9=>[_0x1f4af9,this['_suggestionFactory']['getSuggestionCallback'](_0x1f4af9['type'],_0x1f4af9['subType'],'chain')])),_0x4bca96=new Map(_0x2bd54d['map'](_0x41d108=>[_0x41d108,_0x41d108['getFirstRange']()])),_0xf8bf4e=new Set(),_0x3b6964=new Set();for(let _0xb5a716=0x0;_0xb5a716<_0x4610e7['length'];_0xb5a716++)_0x13bc0b(_0x4610e7[_0xb5a716],_0x4610e7,_0xb5a716+0x1);for(let _0x47fd65=0x0;_0x47fd65<_0x4610e7['length'];_0x47fd65++)_0x13bc0b(_0x4610e7[_0x47fd65],_0x24bc2f,0x0);const _0x2485a9=new Set();for(let _0x4f7eb6=0x0;_0x4f7eb6<_0x4610e7['length'];_0x4f7eb6++){const _0xe5b6a0=_0x4610e7[_0x4f7eb6];!_0x3b6964['has'](_0xe5b6a0)&&_0xe5b6a0['previous']&&(_0x2485a9['add'](_0xe5b6a0['previous']),_0xe5b6a0['previous']['next']===_0xe5b6a0&&(_0xe5b6a0['previous']['next']=null),_0xe5b6a0['previous']=null),!_0xf8bf4e['has'](_0xe5b6a0)&&_0xe5b6a0['next']&&(_0x2485a9['add'](_0xe5b6a0['next']),_0xe5b6a0['next']['previous']===_0xe5b6a0&&(_0xe5b6a0['next']['previous']=null),_0xe5b6a0['next']=null);}function _0x13bc0b(_0x26071c,_0xbf5d12,_0x2d78e6){for(let _0x3241a0=_0x2d78e6;_0x3241a0<_0xbf5d12['length'];_0x3241a0++){const _0x2fdf99=_0x1d0aef(_0x26071c,_0xbf5d12[_0x3241a0]);_0x2fdf99&&(_0x2fdf99[0x0]['next']=_0x2fdf99[0x1],_0x2fdf99[0x1]['previous']=_0x2fdf99[0x0],_0xf8bf4e['add'](_0x2fdf99[0x0]),_0x3b6964['add'](_0x2fdf99[0x1]));}}function _0x1d0aef(_0x38b32a,_0x395980){if(_0x38b32a['author']['id']!==_0x395980['author']['id'])return null;const _0x628181=_0x1166e8['get'](_0x38b32a)(_0x38b32a,_0x395980,_0x4bca96['get'](_0x38b32a),_0x4bca96['get'](_0x395980));if(!_0x628181)return null;return _0x1166e8['get'](_0x395980)(_0x38b32a,_0x395980,_0x4bca96['get'](_0x38b32a),_0x4bca96['get'](_0x395980))?_0x628181[0x1]['commentThread']&&_0x628181[0x1]['commentThread']['length']?null:_0x628181:null;}_0x2485a9['size']&&this['_refreshSuggestionsChain'](_0x2485a9);}['_refreshAttributeSuggestionsChain'](_0x476efa){if(0x0==_0x476efa['length'])return;const _0x215942=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a220e=>'attribute'==_0x4a220e['type']&&_0x4a220e['_isDataLoaded']),_0x3f8790=[],_0x517542=new Map();for(const _0x9ae48f of _0x215942){const _0x1d4b7d=_0x59c610(_0x9ae48f['attributes']);_0x517542['has'](_0x1d4b7d)||(_0x517542['set'](_0x1d4b7d,_0x3f8790['length']),_0x3f8790['push']([]));const _0x32330b=_0x517542['get'](_0x1d4b7d);_0x3f8790[_0x32330b]['push'](_0x9ae48f);}!(function(){_0x3f8790['sort']((_0x14d5ff,_0x3706a6)=>{const _0x140bb1=_0x14d5ff[0x0]['createdAt'],_0x6ca405=_0x3706a6[0x0]['createdAt'];return _0x140bb1==_0x6ca405?_0x14d5ff[0x0]['attributes']['groupId']<_0x3706a6[0x0]['attributes']['groupId']?-0x1:0x1:_0x140bb1<_0x6ca405?-0x1:0x1;});for(const _0x5a2224 of _0x3f8790)_0x5a2224['sort']((_0x5c851b,_0x555750)=>_0x5c851b['id']<_0x555750['id']?-0x1:0x1);}());for(let _0x84865c=0x0;_0x84865c<_0x3f8790['length'];_0x84865c++){if(0x0==_0x3f8790[_0x84865c]['length'])continue;const _0x39b14f=[];for(let _0x9c24a2=_0x84865c+0x1;_0x9c24a2<_0x3f8790['length'];_0x9c24a2++)0x0!=_0x3f8790[_0x9c24a2]['length']&&_0x3dcce3(_0x3f8790[_0x84865c],_0x3f8790[_0x9c24a2])&&_0x39b14f['push'](_0x9c24a2);for(const _0x196f57 of _0x39b14f)_0x3f8790[_0x84865c]=_0x3f8790[_0x84865c]['concat'](_0x3f8790[_0x196f57]),_0x3f8790[_0x196f57]=[];}for(const _0x112938 of _0x3f8790)for(let _0x4cae4b=0x0;_0x4cae4b<_0x112938['length'];_0x4cae4b++)_0x112938[_0x4cae4b]['next']=_0x112938[_0x4cae4b+0x1]||null;for(const _0x15ae80 of _0x3f8790)for(let _0xd90f42=0x0;_0xd90f42<_0x15ae80['length'];_0xd90f42++)_0x15ae80[_0xd90f42]['previous']=_0x15ae80[_0xd90f42-0x1]||null;function _0x3dcce3(_0x367a63,_0xdfdf1){if(_0x367a63[0x0]['attributes']['groupId']!==_0xdfdf1[0x0]['attributes']['groupId']&&_0x367a63[0x0]['author']!==_0xdfdf1[0x0]['author'])return!0x1;if(!function(_0xd2da1a,_0x5a05c9){if(!_0xd2da1a['hasComments']&&!_0x5a05c9['hasComments'])return!0x0;if(_0xd2da1a['hasComments']&&_0x5a05c9['hasComments'])return!0x1;if(_0xd2da1a['hasComments']&&_0x5a05c9['createdAt']<_0xd2da1a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a05c9['hasComments']&&_0xd2da1a['createdAt']<_0x5a05c9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x367a63[0x0],_0xdfdf1[0x0]))return!0x1;const _0x42741e=Bt(_0x367a63[0x0]['attributes'],'groupId'),_0x2b8ff4=Bt(_0xdfdf1[0x0]['attributes'],'groupId');if(!_0x218615(_0x42741e,_0x2b8ff4))return!0x1;return!!_0x367a63['every'](_0x5ed4b6=>_0xdfdf1['some'](_0x34fde6=>_0x5ed4b6['getFirstRange']()['isEqual'](_0x34fde6['getFirstRange']())))&&_0xdfdf1['every'](_0x35d416=>_0x367a63['some'](_0x3affec=>_0x35d416['getFirstRange']()['isEqual'](_0x3affec['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x28cd1e){const _0x185207=Array['from'](_0x28cd1e),_0x4fb5d5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x32d97c=_0x4fb5d5['filter'](_0x25af4d=>!_0x28cd1e['has'](_0x25af4d)),_0x15eeb9=new Map(_0x185207['map'](_0x2be169=>[_0x2be169,this['_suggestionFactory']['getSuggestionCallback'](_0x2be169['type'],_0x2be169['subType'],'join')])),_0x7f8739=new Map(_0x4fb5d5['map'](_0xe76518=>[_0xe76518,_0xe76518['getRanges']()]));for(let _0x1e4495=0x0;_0x1e4495<_0x185207['length'];_0x1e4495++){if(_0x53805f(this,_0x185207[_0x1e4495],_0x185207,_0x1e4495+0x1))return!0x0;}for(let _0x14c56e=0x0;_0x14c56e<_0x185207['length'];_0x14c56e++){if(_0x53805f(this,_0x185207[_0x14c56e],_0x32d97c,0x0))return!0x0;}return!0x1;function _0x53805f(_0xae6711,_0x3ce0f4,_0x484a4f,_0x2c9c52){for(let _0x2a7c98=_0x2c9c52;_0x2a7c98<_0x484a4f['length'];_0x2a7c98++){const _0xd1dac6=_0x484a4f[_0x2a7c98];if(_0xd1dac6['type']!==_0x3ce0f4['type']||_0xd1dac6['author']['id']!==_0x3ce0f4['author']['id']||_0xd1dac6['subType']!==_0x3ce0f4['subType'])continue;if(!Pt(_0x3ce0f4,_0xd1dac6,['groupId']))continue;if('attribute'==_0x3ce0f4['type']&&_0x3ce0f4['data']['oldValue']!=_0xd1dac6['data']['oldValue'])continue;if('attribute'==_0x3ce0f4['type']&&_0xae6711['_isBlockAttribute'](_0x3ce0f4['data']['key']))continue;if('formatBlock'==_0x3ce0f4['type']){const _0x4cc42b=_0xae6711['editor']['model'],_0xcfa6d2=_0x3ce0f4['getContainedElement']();if(_0xcfa6d2&&(_0x4cc42b['schema']['isObject'](_0xcfa6d2)||_0x4cc42b['schema']['isLimit'](_0xcfa6d2)))continue;}const _0x2e7b1a=_0x15eeb9['get'](_0x3ce0f4),_0xb96113=_0x7f8739['get'](_0x3ce0f4),_0x8e3a84=_0x7f8739['get'](_0xd1dac6),_0x56b572=_0x3ce0f4['commentThread']&&_0x3ce0f4['commentThread']['length'],_0x3f95ea=_0xd1dac6['commentThread']&&_0xd1dac6['commentThread']['length'];if(!_0x56b572&&_0x2e7b1a(_0x8e3a84,_0xb96113))return _0xae6711['_joinSuggestions'](_0xd1dac6,_0x3ce0f4),_0x7f8739['delete'](_0x3ce0f4),!0x0;if(!_0x3f95ea&&_0x2e7b1a(_0xb96113,_0x8e3a84))return _0xae6711['_joinSuggestions'](_0x3ce0f4,_0xd1dac6),_0x7f8739['delete'](_0xd1dac6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x52aee5,_0x5279d4){if(_0x52aee5['isMultiRange']){for(const _0x17f03d of _0x5279d4['getRanges']())_0x52aee5['addRange'](_0x17f03d);}else{const _0x3a4269=_0x5279d4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x52aee5,this['_model']['createRange'](_0x52aee5['getFirstRange']()['start'],_0x3a4269));}_0x5279d4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a0968,_0x40d186){const _0x5cdcf9=_0x2a0968['startsWith']('format')||_0x2a0968['startsWith']('attribute')?'FORMATTING':_0x2a0968['toUpperCase']();return o(this['editor']['locale'],_0x40d186+'_'+_0x5cdcf9+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x208611=this['editor'];if(!_0x208611['ui'])return;const {ariaLiveAnnouncer:_0x47ba03}=_0x208611['ui'];_0x55af74(this['_model'],({left:_0x5cab92,entered:_0x4aecb6})=>{for(const _0x51dfc4 of _0x5cab92){const {group:_0x47dba7,type:_0x1b16c5}=this['_splitMarkerName'](_0x51dfc4['name']);if('suggestion'===_0x47dba7){_0x47ba03['announce'](this['_getMarkerAnnouncementText'](_0x1b16c5,'LEAVE'));break;}}for(const _0x38462a of _0x4aecb6){const {group:_0x594952,type:_0x362621}=this['_splitMarkerName'](_0x38462a['name']);if('suggestion'===_0x594952){_0x47ba03['announce'](this['_getMarkerAnnouncementText'](_0x362621,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1b7cfe){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4c88f8=this['editor'],_0x31eb07=_0x4c88f8['model']['document']['differ']['getChanges']();if(0x0==_0x31eb07['length'])return!0x1;const _0x2d992f=[],_0x109b27=_0x31eb07['filter'](_0x4b4f06=>'attribute'==_0x4b4f06['type']),_0x2904c0=_0x31eb07['filter'](_0x56959f=>'insert'==_0x56959f['type']&&'$text'!=_0x56959f['name']),_0x29d329=_0x31eb07['filter'](_0x4457ed=>'remove'==_0x4457ed['type']&&'$text'!=_0x4457ed['name']);for(const _0x3a55ab of _0x109b27)_0x2d992f['push']({'key':_0x3a55ab['attributeKey'],'newValue':_0x3a55ab['attributeNewValue'],'oldValue':_0x3a55ab['attributeOldValue'],'range':Ot(_0x3a55ab['range'],_0x4c88f8['model'])});for(const _0x99593b of _0x2904c0){const _0x486504=_0x29d329['find'](_0x5529ec=>_0x5529ec['position']['isEqual'](_0x99593b['position']));_0x486504&&_0x2d992f['push']({'key':m,'newValue':_0x99593b['name'],'oldValue':_0x486504['name'],'range':_0x4c88f8['model']['createRangeOn'](_0x99593b['position']['nodeAfter'])});}return 0x0!=_0x2d992f['length']&&this['_reduceExistingSuggestions'](_0x1b7cfe,_0x2d992f);}['_processAttributeSuggestions'](_0x298b65){let _0x1b106d=!0x1;const _0x316908=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e67e8=>_0x1e67e8['data']['newRange']&&_0x1e67e8['name']['startsWith']('suggestion:attribute:'));for(const _0x44bb12 of _0x316908){const {subType:_0x547377,id:_0x4a2451}=this['_splitMarkerName'](_0x44bb12['name']),_0x5b076c=_0x547377['split']('|')[0x0];for(const _0x3274e8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3274e8['id']!=_0x4a2451&&'attribute'==_0x3274e8['type']&&_0x3274e8['data']&&_0x3274e8['data']['key']==_0x5b076c&&_0x3274e8['getFirstRange']()['isIntersecting'](_0x44bb12['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3274e8,_0x44bb12['data']['newRange'],_0x298b65),_0x1b106d=!0x0);}return _0x1b106d;}['_recordAttributeChanges'](_0x29493c){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x29493c();}['_isRegisteredAttribute'](_0x2d52f6){const _0x4d696c=this['_isBlockAttribute'](_0x2d52f6),_0x1af3f6=this['_inlineAttributeKeys']['has'](_0x2d52f6);return _0x4d696c||_0x1af3f6;}['_reduceExistingSuggestions'](_0x35be8a,_0x38699a){if(0x0==_0x38699a['length'])return!0x1;let _0x4c837c=!0x1;for(const _0x21dd25 of _0x38699a){const _0x54d43c=this['_findSuggestions'](_0x21dd25['range'],'attribute')['filter'](_0xddd631=>!_0xddd631['meta']['isNextTo'])['map'](_0x5bbe33=>_0x5bbe33['suggestion']),_0x2512e4=_0x59c610({'newValue':_0x21dd25['newValue']});_0x54d43c['filter'](_0xa86346=>{const [_0x19d130,_0x5aaa61]=_0xa86346['subType']['split']('|');return _0x19d130==_0x21dd25['key']&&_0x5aaa61!=_0x2512e4;})['forEach'](_0x397134=>{this['_reduceSuggestionAttributeRange'](_0x397134,_0x21dd25['range'],_0x35be8a),_0x4c837c=!0x0;});}return _0x4c837c;}['_reduceSuggestionAttributeRange'](_0x35ab53,_0x4204fe,_0x17951d){const _0x1c0fe4=_0x35ab53['getFirstRange']()['getDifference'](_0x4204fe);0x0!==_0x1c0fe4['length']?0x1!==_0x1c0fe4['length']?this['_breakSuggestionMarker'](_0x35ab53,_0x4204fe['start'],_0x4204fe['end']):this['_setSuggestionRange'](_0x35ab53,_0x1c0fe4[0x0]):_0x17951d['removeMarker'](_0x35ab53['getFirstMarker']());}constructor(_0x478360){function _0x38900d(_0x24727c){return _0x24727c['map'](_0x545725=>String['fromCharCode'](_0x545725))['join']('');}super(_0x478360),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x8da573,_0x12bd26,_0x30f87d,_0x2057eb)=>{this['_model']['change'](()=>{for(const _0x51127d of[..._0x2057eb,..._0x30f87d])this['_model']['markers']['has'](_0x51127d)&&_0x478360['editing']['reconvertMarker'](_0x51127d);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x478360['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(),_0x478360['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x478360['config']['get']('trackChanges.trackFormatChanges'),_0x478360['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x478360['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x478360,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x38900d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x38900d([0x34,0x30,0x34,0x38,0x30,0x38,0x34,0x38]);}}class xt{['buildSuggestion'](_0x24c48c,_0xc59a1d,_0x2592e8,_0x3a7f0a,_0xe3a51d,_0x138b0c){return new u(this['_model'],{'type':_0x24c48c,'subType':_0xc59a1d,'id':_0x2592e8,'author':_0x3a7f0a,'creator':_0x3a7f0a,'attributes':_0xe3a51d,'onAttributesChange':_0x138b0c,'onAccept':(..._0xb71bd5)=>this['getSuggestionCallback'](_0x24c48c,_0xc59a1d,'accept')(..._0xb71bd5),'onDiscard':(..._0xa0c28d)=>this['getSuggestionCallback'](_0x24c48c,_0xc59a1d,'discard')(..._0xa0c28d)});}['registerCustomCallback'](_0x56e5bb,_0x1344a0,_0x2828df,_0x4866e9){const _0x54ae3a=_0x56e5bb+':'+_0x1344a0+':'+_0x2828df;this['_customCallbacks']['set'](_0x54ae3a,_0x4866e9);}['getSuggestionCallback'](_0x4d5c7b,_0x7e4311,_0x23a406){const _0x3e5ff1=_0x4d5c7b+':'+_0x7e4311+':'+_0x23a406;return this['_customCallbacks']['get'](_0x3e5ff1)||this['_defaultCallbacks']['get'](_0x4d5c7b+':'+_0x23a406);}['_registerDefaultCallbacks'](){const _0x487e14=()=>!0x1,_0x567d50=_0x58ad2e=>{_0x58ad2e['sort']((_0x3d78a2,_0x2e79ca)=>_0x3d78a2['start']['isBefore'](_0x2e79ca['start'])?0x1:-0x1),this['_model']['change'](_0xa1c8ed=>{for(const _0x2c761c of _0x58ad2e){let _0x2c318c;_0x2c318c=_0x2c761c['end']['isAtEnd']&&_0x2c761c['end']['parent']==_0x2c761c['start']['nodeAfter']?_0xa1c8ed['createSelection'](_0x2c761c['start']['nodeAfter'],'on'):_0xa1c8ed['createSelection'](_0x2c761c),this['_model']['deleteContent'](_0x2c318c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x337009=(_0x1f587d,_0x534840)=>{_0x534840&&this['_model']['change'](_0x44e774=>{const {commandName:_0x2217df,commandParams:_0x4c6648=[]}=_0x534840,_0x1f2ad1=_0x1f587d['map'](_0x1ea070=>(Tt(_0x1ea070)&&(_0x1ea070=this['_model']['createRange'](_0x1ea070['end'])),_0x1ea070))['filter'](_0x74d038=>'$graveyard'!==_0x74d038['root']['rootName']);if(_0x1f2ad1['length']<0x1)return;const _0xb4e6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x15d116=>_0x3d4179['fromRange'](_0x15d116));_0x44e774['setSelection'](_0x1f2ad1);for(const _0x33d828 of this['_editor']['commands']['commands']())_0x33d828['refresh']();_0x4c6648['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2217df,..._0x4c6648);const _0xcbfe9c=_0xb4e6['filter'](_0x4ecce9=>'$graveyard'!=_0x4ecce9['root']['rootName']);_0xcbfe9c['length']>0x0&&_0x44e774['setSelection'](_0xcbfe9c);for(const _0x47e4a5 of _0xb4e6)_0x47e4a5['detach']();});},_0x562440=(_0x1691d9,_0x46ed04)=>0x1==_0x1691d9['length']&&0x1==_0x46ed04['length']&&_0x1691d9[0x0]['end']['isEqual'](_0x46ed04[0x0]['start']),_0x11361a=(_0x6f70bc,_0x6e486,_0x228fb6,_0x248599)=>Ft(_0x6f70bc,_0x6e486,_0x228fb6,_0x248599,this['_model'])?[_0x6f70bc,_0x6e486]:Ft(_0x6e486,_0x6f70bc,_0x248599,_0x228fb6,this['_model'])?[_0x6e486,_0x6f70bc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x487e14),this['_defaultCallbacks']['set']('insertion:discard',_0x567d50),this['_defaultCallbacks']['set']('insertion:join',_0x562440),this['_defaultCallbacks']['set']('insertion:chain',_0x11361a),this['_defaultCallbacks']['set']('deletion:accept',_0x567d50),this['_defaultCallbacks']['set']('deletion:discard',_0x487e14),this['_defaultCallbacks']['set']('deletion:join',_0x562440),this['_defaultCallbacks']['set']('deletion:chain',_0x11361a),this['_defaultCallbacks']['set']('formatInline:accept',_0x337009),this['_defaultCallbacks']['set']('formatInline:discard',_0x487e14),this['_defaultCallbacks']['set']('formatInline:join',_0x562440),this['_defaultCallbacks']['set']('formatInline:chain',_0x487e14),this['_defaultCallbacks']['set']('formatBlock:accept',_0x337009),this['_defaultCallbacks']['set']('formatBlock:discard',_0x487e14),this['_defaultCallbacks']['set']('formatBlock:join',_0x562440),this['_defaultCallbacks']['set']('formatBlock:chain',_0x487e14),this['_defaultCallbacks']['set']('attribute:accept',_0x487e14),this['_defaultCallbacks']['set']('attribute:discard',(_0x508f58,_0x188ae9)=>{if(!_0x188ae9)return;const _0x53cf0c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x39d7c4=>{if(_0x188ae9['key']==m)for(const _0x578fcf of _0x508f58){const _0x4255f6=_0x578fcf['start']['nodeAfter'],_0x729207=_0x188ae9['oldValue'];_0x39d7c4['rename'](_0x4255f6,_0x729207);}else{if(_0x53cf0c['_isBlockAttribute'](_0x188ae9['key'])){for(const _0x410031 of _0x508f58)void 0x0!==_0x188ae9['oldValue']?_0x39d7c4['setAttribute'](_0x188ae9['key'],_0x188ae9['oldValue'],_0x410031['start']['nodeAfter']):_0x39d7c4['removeAttribute'](_0x188ae9['key'],_0x410031['start']['nodeAfter']);}else{for(const _0xf2164f of _0x508f58)_0x188ae9['oldValue']?_0x39d7c4['setAttribute'](_0x188ae9['key'],_0x188ae9['oldValue'],_0xf2164f):_0x39d7c4['removeAttribute'](_0x188ae9['key'],_0xf2164f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x562440);}constructor(_0x3772b9){this['_editor']=_0x3772b9,this['_model']=_0x3772b9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0xfe0fdf,_0x43dc3c,_0x4a1fee){for(const _0x3bdd7b of _0x43dc3c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3bdd7b['root']==_0x3bdd7b)return!0x1;if(!_0x4a1fee['containsItem'](_0x3bdd7b))return!0x1;if(_0xfe0fdf['isObject'](_0x3bdd7b)||_0xfe0fdf['isLimit'](_0x3bdd7b))return!0x0;}return!0x1;}function Tt(_0x3063d7){return _0x3063d7['end']['parent']==_0x3063d7['start']['nodeAfter']&&_0x3063d7['end']['isAtStart'];}function Et(_0xf1540d,_0x32d4e5,_0x2d5c30,_0x371eba){const _0x228cc1=_0x4698ea=>!_0x4698ea['item']['is']('$textProxy')&&!_0x371eba['isObject'](_0x4698ea['item']),_0x3e2af3=_0xf1540d['start']['getLastMatchingPosition'](_0x228cc1),_0x58b23f=_0xf1540d['end']['getLastMatchingPosition'](_0x228cc1,{'direction':'backward'});return(!_0xf1540d['start']['isEqual'](_0x3e2af3)||!_0xf1540d['end']['isEqual'](_0x58b23f))&&(_0x3e2af3['isBefore'](_0x58b23f)?_0x2d5c30['updateMarker'](_0x32d4e5,{'range':_0x2d5c30['createRange'](_0x3e2af3,_0x58b23f)}):_0x2d5c30['removeMarker'](_0x32d4e5),!0x0);}function Vt(_0x49e790){return _0x59c610(_0x49e790);}function Ut(_0x57bf89){const _0x4ec968=_0x57bf89['start']['nodeAfter'];return _0x4ec968&&_0x4ec968['is']('element');}function Ot(_0x36baf7,_0x489a02){return null==_0x36baf7['end']['nodeBefore']&&_0x36baf7['end']['parent']==_0x36baf7['start']['nodeAfter']?Gt(_0x36baf7['start']['nodeAfter'],_0x489a02):_0x36baf7;}function Gt(_0x34bccd,_0xc21110){const _0x3f027e=_0xc21110['schema']['isObject'](_0x34bccd)||_0xc21110['schema']['isSelectable'](_0x34bccd);return _0xc21110['createRange'](_0xc21110['createPositionAt'](_0x34bccd,'before'),_0x3f027e?_0xc21110['createPositionAfter'](_0x34bccd):_0xc21110['createPositionAt'](_0x34bccd,'end'));}function Ft(_0x14cf85,_0x4d8e23,_0x19a2fb,_0x8e6370,_0x4c774b){if(!Pt(_0x14cf85,_0x4d8e23))return!0x1;if(_0x19a2fb['end']['isEqual'](_0x8e6370['start']))return!0x0;if(_0x14cf85['type']!=_0x4d8e23['type'])return!0x1;if(!_0x19a2fb['end']['isTouching'](_0x8e6370['start']))return!0x1;const _0x7fe826=_0x4c774b['createRange'](_0x19a2fb['end'],_0x8e6370['start'])['getWalker']();for(const _0x13d0e2 of _0x7fe826)if(['elementStart','elementEnd']['includes'](_0x13d0e2['type'])&&_0x4c774b['schema']['isLimit'](_0x13d0e2['item']))return!0x1;return!0x0;}function Pt(_0x24fb32,_0x5ed8b5,_0x335646=[]){return!(!_0x24fb32['_isDataLoaded']||!_0x5ed8b5['_isDataLoaded'])&&_0x218615(Bt(_0x24fb32['attributes'],_0x335646),Bt(_0x5ed8b5['attributes'],_0x335646));}function Lt(_0x28b582,_0x108631){const _0x5e1aa4=Ht(_0x28b582['attributes']),_0x4055db=Ht(_0x108631);if(!_0x28b582['_isDataLoaded'])return!0x1;for(const _0x28b22e of Object['keys'](_0x4055db))if(!_0x218615(_0x5e1aa4[_0x28b22e],_0x4055db[_0x28b22e]))return!0x1;return!0x0;}function Ht(_0x3e01a9){const _0x2f6315=Object['assign']({},_0x3e01a9);return delete _0x2f6315['skipNestingCheck'],delete _0x2f6315['tablePasteChainId'],_0x2f6315;}class oe extends _0x2ed6b7(){['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 _0x424aae=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x424aae);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x13af09,_0x4cb4f2,_0x14e69d,_0x58e73c){super(),this['model']=_0x4cb4f2,this['view']=_0x14e69d,this['commentThreadController']=_0x58e73c,this['_editor']=_0x13af09,this['_acceptCommand']=_0x13af09['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x13af09['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3310e4,_0x4d70f9)=>_0x3310e4||_0x4d70f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9593=>_0x9593&&this['_editor']['model']['canEditAt'](_0x4cb4f2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x486d78=>_0x486d78&&this['_editor']['model']['canEditAt'](_0x4cb4f2['getRanges']())),this['_pendingAction']=null,_0x14e69d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x14e69d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x14e69d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x14e69d,'change:isDirty',()=>{_0x14e69d['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x36a6bf{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x20f62a}=this['_config'];this['commentsListView']=new _0x20f62a(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',_0x29bb84=>_0x29bb84+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4de52b,_0x483537)=>_0x4de52b||!!_0x483537);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1f03d5}=this['_config'],_0x69c587=new _0x1f03d5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x256526=_0x69c587['commentInputView'];return _0x69c587['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x256526,'value',(_0x94ef9e,_0x2e661d,_0x571589)=>!!_0x571589||_0x94ef9e&&!_0x2e661d),_0x256526['on']('submit',(_0x3e2b9b,_0x171c0a)=>{this['fire']('addComment',_0x171c0a),_0x256526['editor']['setData']('');}),_0x256526['on']('cancel',()=>this['focus']()),_0x256526['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x69c587;}constructor(_0x215780,_0x5e7397,_0x3cc07,_0x3ff8a7){super(_0x215780),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5e7397['authoredAt']),this['bind']('authoredAt')['to'](_0x5e7397),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5e7397,this['_localUser']=_0x3cc07,this['_config']=_0x3ff8a7,_0x3ff8a7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x1e0f29=this['bindTemplate'],_0x56d466=[{'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':_0x1e0f29['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e0f29['to']('authoredAt',_0x208879=>this['_config']['formatDateTime'](_0x208879))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x56d466['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x39b56d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1e0f29['if']('isActive','ck-suggestion-wrapper--active'),_0x1e0f29['to']('type',_0x30b16b=>'ck-suggestion-'+_0x30b16b),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x56d466}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x39b56d['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x39b56d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xb7be9d,_0x4e730d,_0x43a0c1)=>{this['_descriptionElement']['innerHTML']=_0x43a0c1;});}['_createButton'](_0x280978,_0x542c9a,_0x14d702,_0xe728dd,_0x51d3f0){const _0x4644c3=new _0x17c31e(this['locale']);return _0x4644c3['set']({'label':_0x280978,'icon':_0x542c9a,'tooltip':!0x0,'tooltipPosition':_0x51d3f0}),_0x4644c3['extendTemplate']({'attributes':{'class':_0x14d702}}),_0x4644c3['on']('execute',()=>{this['fire'](_0xe728dd,this['_model']['id']);}),_0x4644c3;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}constructor(_0x9fb234,_0x31656b,_0x2eb0f5,_0x16e9db){super(_0x9fb234,_0x31656b,_0x2eb0f5,_0x16e9db),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5b7c29=>_0x5b7c29&&_0x5b7c29[0x0]?_0x5b7c29[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x408eb0,_0x2c1c41)=>{let _0x3bb8b9='';for(const _0x56fe0b of _0x408eb0)_0x3bb8b9+='<p>'+ds(_0x56fe0b['content'],_0x56fe0b['color'])+'</p>';return _0x2c1c41?_0x3bb8b9:_0x105c2b(_0x3bb8b9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x9fb234,'Accept\x20suggestion'),_0x30119b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x9fb234,'Discard\x20suggestion'),_0x30119b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x44bf95(_0x9fb234,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x3258c5,_0x149943){let _0x1c4383='';return _0x1c4383+=_0x3258c5['split']('*')['map']((_0x5a31d2,_0x215c6d)=>_0x215c6d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5a31d2)+'</span>':us(_0x5a31d2))['join'](''),_0x149943&&(_0x1c4383+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x149943['value']+'\x22\x20title=\x22'+_0x149943['title']+'\x22></span>'),_0x1c4383;}function us(_0x3aa616){const _0x3ae1bd=document['createElement']('span');return _0x3ae1bd['innerText']=_0x3aa616,_0x3ae1bd['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4de685{static get['requires'](){return[p,_0x194443,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x3d98ea,_0x41e7ff){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x31721e,_0x5c3bc5]of this['_handleControllerBuffer']){const _0x5a7c16=this['_suggestionToController']['has'](_0x31721e);_0x5a7c16||_0x5c3bc5?_0x5a7c16&&_0x5c3bc5&&this['_destroyController'](_0x31721e):this['_initializeController'](_0x31721e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d98ea,_0x41e7ff);}['init'](){const _0x50ee6d=this['editor'],_0x1b7875=_0x50ee6d['plugins']['get']('TrackChangesEditing'),_0x1cd207=_0x50ee6d['plugins']['get']('Annotations'),_0x451cc6=_0x50ee6d['plugins']['get']('EditorAnnotations'),_0x3ce2cf=_0x50ee6d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x451cc6['addSourceCollector'](()=>{const _0x298e9c=[];for(const [_0x467eb8,_0x191468]of Array['from'](this['_suggestionToController'])){const _0x416f5c=_0x467eb8['getAllAdjacentSuggestions'](),_0xc5c73=[];for(const _0x2513af of _0x416f5c){if(!_0x2513af['isInContent'])continue;if(_0x2513af['isMultiRange']){_0xc5c73['push'](..._0x2513af['getRanges']());continue;}const _0x591634=_0x2513af['getFirstRange']();if(_0xc5c73['length']>0x0){const _0xf7021f=_0xc5c73[0x0]['getJoined'](_0x591634);if(_0xf7021f){_0xc5c73[0x0]=_0xf7021f;continue;}}_0xc5c73['push'](_0x591634);}_0x298e9c['push']([_0x191468['view'],_0xc5c73]);}return _0x298e9c;}),this['listenTo'](_0x1b7875,'suggestionLoaded',(_0x5a9130,_0x46ecac)=>{this['listenTo'](_0x46ecac,'change:previous',(_0x432398,_0x5bef54,_0x5ac3bd,_0x4bdb5b)=>{_0x46ecac['isInContent']&&(null==_0x5ac3bd?(this['_updateController'](_0x4bdb5b['head']),this['_handleSuggestionControllerDelayed'](_0x46ecac,!0x1)):(this['_updateController'](_0x5ac3bd['head']),null==_0x4bdb5b&&this['_handleSuggestionControllerDelayed'](_0x46ecac,!0x0)));}),null!==_0x46ecac['previous']?this['_updateController'](_0x46ecac['head']):this['_handleSuggestionControllerDelayed'](_0x46ecac,!0x1);}),this['listenTo'](_0x1b7875,'suggestionUnloaded',(_0x226235,_0x23b72e,_0x3a773f)=>{this['stopListening'](_0x23b72e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23b72e),this['_suggestionToController']['has'](_0x23b72e)&&this['_destroyController'](_0x23b72e),_0x3a773f&&this['_updateController'](_0x3a773f['head']);}),this['listenTo'](_0x1b7875,'suggestionChanged',(_0x52947e,_0x45bedc)=>{this['_updateController'](_0x45bedc);}),this['listenTo'](_0x1cd207,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3ce2cf,'addComment',(_0x3bb432,{threadId:_0x1e38d4,isFromAdapter:_0x4df850})=>{if(_0x4df850||!_0x1b7875['hasSuggestion'](_0x1e38d4))return;const _0x4445f2=_0x1b7875['getSuggestion'](_0x1e38d4);this['_suggestionToController']['get'](_0x4445f2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5b01e0=this['editor']['plugins']['get']('Annotations'),_0x2909e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b450b=Array['from'](_0x5b01e0['activeAnnotations'],_0x1ae7c1=>_0x1ae7c1['innerView'])['filter'](_0x1e472e=>this['_viewToController']['has'](_0x1e472e)),_0x10067d=[];for(const _0xb1364f of _0x3b450b){const _0x3dc4d3=this['_viewToController']['get'](_0xb1364f)['model']['getAllAdjacentSuggestions']();_0x10067d['push'](..._0x3dc4d3['reduce']((_0x2f5318,_0x5aac5e)=>[..._0x2f5318,..._0x5aac5e['getMarkerNames']()],[]));}_0x2909e4['activeMarkers']=_0x10067d;}['_addUIComponentsToFactory'](){const _0x510b11=this['editor'],_0x168462=_0x510b11['locale'],_0x25d836=o(_0x168462,'Track\x20changes'),_0x5b9922=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x25d836,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x214fa6 of _0x5b9922)if(ae(_0x214fa6)){const _0x2c2583=_0x510b11['commands']['get'](_0x214fa6['model']['commandName']);_0x214fa6['model']['bind']('isOn','isEnabled')['to'](_0x2c2583,'value','isEnabled');}_0x510b11['ui']['componentFactory']['add']('trackChanges',_0x260df2=>this['_createToolbarButton'](_0x260df2,_0x5b9922,_0x25d836)),_0x510b11['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3922a7=>this['_createMenuBarMenu'](_0x3922a7,_0x5b9922,_0x25d836));}['_createToolbarButton'](_0x49c2b5,_0x452172,_0x38dd1d){const _0x319148=zt(_0x49c2b5,Zt),_0x17e553=this['editor']['commands']['get']('trackChanges');_0x319148['buttonView']['set']({'tooltip':_0x38dd1d,'label':_0x38dd1d,'icon':ie}),_0x319148['buttonView']['bind']('isOn')['to'](_0x17e553,'value'),_0x319148['buttonView']['on']('execute',()=>{_0x17e553['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x319148,_0x452172);const _0x1265e3=[];for(const _0xad3015 of _0x452172)ae(_0xad3015)&&_0x1265e3['push'](this['editor']['commands']['get'](_0xad3015['model']['commandName']));const _0x268cd1=_0x319148['buttonView'];return _0x268cd1['actionView']['unbind']('isEnabled'),_0x268cd1['arrowView']['unbind']('isEnabled'),_0x268cd1['actionView']['bind']('isEnabled')['to'](_0x17e553,'isEnabled'),_0x268cd1['arrowView']['bind']('isEnabled')['toMany'](_0x1265e3,'isEnabled',(..._0x1810bb)=>_0x1810bb['some'](_0x3654ee=>_0x3654ee)),_0x319148['on']('execute',_0xe97ccc=>{this['editor']['execute'](_0xe97ccc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x319148;}['_createMenuBarMenu'](_0x45788e,_0x17acdb,_0x1b35cd){const _0xdad7b8=new Kt(_0x45788e),_0x4b1884=this['editor']['commands']['get']('trackChanges');_0xdad7b8['buttonView']['set']({'label':_0x1b35cd,'icon':ie});const _0xc123f8=new Qt(_0x45788e);for(const _0x46fcdf of _0x17acdb){if('separator'==_0x46fcdf['type']){_0xc123f8['items']['add'](new Jt(_0x45788e));continue;}const _0x59fcd3=new Xt(_0x45788e,_0xdad7b8),_0x2da43f=new Yt(_0x45788e),_0x53f94e=_0x46fcdf['model'];_0x2da43f['bind'](...Object['keys'](_0x53f94e))['to'](_0x53f94e),_0x2da43f['delegate']('execute')['to'](_0xdad7b8),_0x2da43f['on']('execute',()=>{this['editor']['execute'](_0x53f94e['commandName']),this['editor']['editing']['view']['focus']();}),_0x59fcd3['children']['add'](_0x2da43f),_0xc123f8['items']['add'](_0x59fcd3);}return _0xdad7b8['bind']('isEnabled')['to'](_0x4b1884,'isEnabled'),_0xdad7b8['panelView']['children']['add'](_0xc123f8),_0xdad7b8;}['_initializeController'](_0x10f808){const _0x576f3d=this['editor'],_0x443443=_0x576f3d['config'],_0x2b9ed0=_0x576f3d['plugins']['get']('Annotations'),_0x4cbbe2=_0x576f3d['plugins']['get']('CommentsRepository'),_0x5d39ec=_0x576f3d['plugins']['get']('EditorAnnotations'),_0x5b0e1a=_0x576f3d['plugins']['get'](_0x194443)['me'],_0x2a1df9=_0x443443['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3177f2,CommentThreadInputView:_0x10ad70}=_0x576f3d['plugins']['get']('CommentsUI');let _0x4d48a8,_0x52e2e5;this['_annotationViews']['has'](_0x10f808['id'])?(_0x52e2e5=this['_annotationViews']['get'](_0x10f808['id']),_0x4d48a8=_0x52e2e5['mainView']):(_0x4d48a8=new _0x2a1df9(_0x576f3d['locale'],_0x10f808,_0x5b0e1a,{'disableComments':this['_disableComments'],'editorConfig':_0x443443['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x443443['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x443443['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x443443['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3da504(_0x443443['get']('locale')),'CommentView':_0x443443['get']('comments')['CommentView'],'CommentsListView':_0x3177f2,'CommentThreadInputView':_0x10ad70}),_0x4d48a8['acceptButton']['on']('execute',()=>{_0x576f3d['editing']['view']['focus']();}),_0x4d48a8['discardButton']['on']('execute',()=>{_0x576f3d['editing']['view']['focus']();}),_0x52e2e5=_0x2b9ed0['createAnnotationView'](this['editor']['locale'],_0x4d48a8),_0x52e2e5['bind']('isDirty')['to'](_0x4d48a8,'isDirty'),_0x52e2e5['bind']('length')['to'](_0x4d48a8),_0x52e2e5['bind']('type')['to'](_0x4d48a8,'type',_0x2e0d37=>'suggestion-'+_0x2e0d37),this['_annotationViews']['set'](_0x10f808['id'],_0x52e2e5));const _0x4c7397=_0x4cbbe2['createCommentThreadController'](_0x10f808['commentThread'],_0x4d48a8),_0x591d9b=new oe(_0x576f3d,_0x10f808,_0x4d48a8,_0x4c7397),_0x3badba=_0x10f808['getAllAdjacentSuggestions']()['filter'](_0x52e1d8=>_0x52e1d8['isInContent']);_0x4d48a8['descriptionParts']=_0x576f3d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x3badba),this['_suggestionToController']['set'](_0x10f808,_0x591d9b),this['_viewToController']['set'](_0x4d48a8,_0x591d9b);const _0x57696c=_0x2b9ed0['createAnnotation']({'view':_0x52e2e5,'target':()=>{const _0x3f06e1=[],_0x3ad243=_0x10f808['getAllAdjacentSuggestions']()['filter'](_0x3d4dc1=>_0x3d4dc1['isInContent']);for(const _0x9b6d1e of _0x3ad243)_0x3f06e1['push'](..._0x9b6d1e['getMarkers']());return _0x438fce(_0x576f3d['editing'],_0x3f06e1);},'type':()=>'suggestion-'+_0x591d9b['view']['type']});_0x4cbbe2['_bindAnnotationToEditors'](_0x4d48a8,_0x57696c),_0x2b9ed0['add'](_0x57696c),_0x5d39ec['registerAnnotation'](_0x57696c);}['_destroyController'](_0x1ec816){const _0x2e241f=this['editor']['plugins']['get']('CommentsRepository'),_0x1acd9c=this['editor']['plugins']['get']('Annotations'),_0x19e43a=this['_suggestionToController']['get'](_0x1ec816),_0xd559da=_0x19e43a['view'],_0x5f4407=_0x1acd9c['getByInnerView'](_0xd559da);_0x2e241f['_unbindEditors'](_0xd559da),_0x5f4407&&_0x1acd9c['remove'](_0x5f4407),this['_suggestionToController']['delete'](_0x1ec816),this['_viewToController']['delete'](_0xd559da),_0x19e43a['destroy']();}['_updateController'](_0x34d57e){if(!_0x34d57e['isInContent']||!this['_suggestionToController']['has'](_0x34d57e))return;const _0x3b556f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a4098=this['_suggestionToController']['get'](_0x34d57e),_0x3bd238=_0x34d57e['getAllAdjacentSuggestions']();_0x5a4098['view']['descriptionParts']=_0x3b556f['_descriptionFactory']['getDescriptions'](_0x3bd238);}['destroy'](){for(const _0xc370b4 of this['_suggestionToController']['keys']())this['_destroyController'](_0xc370b4);for(const _0x4d350d of this['_annotationViews']['values']())_0x4d350d['mainView']['destroy']();super['destroy']();}constructor(_0x2984d8){super(_0x2984d8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x260198=this['editor']['config'];_0x260198['define']('trackChanges.SuggestionThreadView',ne),_0x260198['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x260198['get']('trackChanges.disableComments');}}function ae(_0xa59907){return'model'in _0xa59907;}class k extends _0x4de685{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x565264){this['editor']['plugins']['get'](p)['adapter']=_0x565264;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x280a22){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x280a22);}['getSuggestions']({skipNotAttached:_0x29eb68=!0x1,toJSON:_0x56417c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x29eb68,'toJSON':_0x56417c});}['getSuggestion'](_0x1ef249){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1ef249);}}const T=['Pagination'];class P extends _0x4de685{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x20ac28=this['editor'];if(_0x20ac28['config']['define']('trackChangesData.editorCreator',_0x202ec4=>{const _0x25322a=_0x20ac28['model']['document']['getRootNames']()['reduce']((_0x3dad67,_0x3ab035)=>(_0x3dad67[_0x3ab035]='',_0x3dad67),{});return _0x20ac28['constructor']['create'](_0x25322a,_0x202ec4);}),'function'!=typeof _0x20ac28['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a5c42('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x25b17b){return N(this['editor'],!0x0,_0x25b17b);}['getDataWithDiscardedSuggestions'](_0x5d6c93){return N(this['editor'],!0x1,_0x5d6c93);}}class D extends _0x4de685{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x398d69){super(_0x398d69),this['result']='end';}}function v(_0x285511){return void 0x0!==_0x285511['getRootsAttributes'];}async function N(_0x1de9f1,_0x54d3ed,_0x5cefa3){const _0x5abad2=_0x56a645(_0x1de9f1,T);_0x5abad2['plugins']['push'](p,D),_0x5abad2['rootsAttributes']=v(_0x1de9f1)?_0x1de9f1['getRootsAttributes']():void 0x0;const _0x5dffe3=document['createDocumentFragment'](),_0x3a7e70=_0x1de9f1['config']['get']('trackChangesData')['editorCreator'],_0x1eef49=await _0x3a7e70(_0x5abad2,()=>function(_0x577350){const _0x7d47e3=document['createElement']('div');return _0x577350['appendChild'](_0x7d47e3),_0x7d47e3;}(_0x5dffe3));!function(_0xec02d4,_0x2a1636){const _0x3cea76=_0xec02d4['model']['document']['getRootNames']()['reduce']((_0x5280ba,_0x416304)=>(_0x5280ba[_0x416304]=_0xec02d4['data']['get']({'rootName':_0x416304}),_0x5280ba),{}),_0x13f7fc=_0xec02d4['plugins']['get']('Users')['users']['map'](_0x5f33c4=>({'id':_0x5f33c4['id'],'name':_0x5f33c4['name']})),_0x558358=_0xec02d4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x18c4f7=_0x2a1636['plugins']['get']('Users'),_0x16dc05=_0x2a1636['plugins']['get']('TrackChangesEditing');for(const _0x234157 of _0x13f7fc)_0x18c4f7['getUser'](_0x234157['id'])||_0x18c4f7['addUser'](_0x234157);_0x18c4f7['me']||_0x18c4f7['useAnonymousUser']();for(const _0x15e1c5 of _0x558358)_0x16dc05['addSuggestionData'](_0x15e1c5);_0x2a1636['data']['set'](_0x3cea76);}(_0x1de9f1,_0x1eef49),_0x1eef49['execute'](_0x54d3ed?'acceptAllSuggestions':'discardAllSuggestions');const _0x2f74c9=v(_0x1eef49)?_0x1eef49['getFullData'](_0x5cefa3):_0x1eef49['data']['get'](_0x5cefa3);return await _0x1eef49['destroy'](),_0x2f74c9;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x4a6276,PendingActions as _0x4bbcdb,icons as _0x5f4622}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x505678,ObservableMixin as _0x3a1d6a,uid as _0x56098b,insertToPriorityArray as _0x3f8b36,priorities as _0x39178d,logWarning as _0x160435,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3d92ee,View as _0x49bc42,ButtonView as _0x9e704c,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3c9426,hashObject as _0x1a316b,surroundingMarkersDetector as _0x3f4aae,trimHtml as _0x40a134,UserView as _0x1b1c8f,getDateTimeFormatter as _0x28c092,getAllMarkersDomElementsSorted as _0x4646df,sanitizeEditorConfig as _0x1dab40}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xe66098,LiveRange as _0x2e827c,LivePosition as _0x46c991}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b04a0,toWidget as _0x55703a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x532a0f,set as _0x4a3eae,isEqual as _0x57d838,unset as _0x319abe,omit as Bt}from'lodash-es';import{Delete as _0x28bff7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1400cd,ShiftEnter as _0x247a54}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x128376 of this['editor']['commands']['commands']())_0x128376['affectsData']&&!this['_enabledCommands']['has'](_0x128376)&&_0x128376['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d310c of this['editor']['commands']['commands']())_0x1d310c['affectsData']&&!this['_enabledCommands']['has'](_0x1d310c)&&_0x1d310c['clearForceDisabled']('TrackChangesCommand');}constructor(_0x52d78b,_0x41adc4){super(_0x52d78b),this['_enabledCommands']=_0x41adc4,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x64bcb5){const _0x2aa531=this['_suggestions']['get'](_0x64bcb5);if(!_0x2aa531)throw new _0x505678('track-changes-accept-suggestion-not-found',this);const _0x3401e1=_0x2aa531['getRanges']();this['editor']['model']['canEditAt'](_0x3401e1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2aa531);}constructor(_0x537294,_0x31ccb9){super(_0x537294),this['_suggestions']=_0x31ccb9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x390e29){const _0x2a6e31=this['_suggestions']['get'](_0x390e29);if(!_0x2a6e31)throw new _0x505678('track-changes-discard-suggestion-not-found',this);const _0x202bd4=_0x2a6e31['getRanges']();this['editor']['model']['canEditAt'](_0x202bd4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a6e31);}constructor(_0x3cb07c,_0x3d2e8c){super(_0x3cb07c),this['_suggestions']=_0x3d2e8c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x4f3820){return _0x4f3820['sort']((_0x19e05c,_0x4aa0f9)=>'deletion'==_0x19e05c['type']&&'deletion'!=_0x4aa0f9['type']?-0x1:'deletion'!=_0x19e05c['type']&&'deletion'==_0x4aa0f9['type']?0x1:0x0);}function to(_0x5603e4,_0xb94ec1){let _0x3fc60b,_0x17b8c2=0x0;const _0x3b452f=[],_0x17879c=_0xb94ec1['schema'];for(;_0x17b8c2<_0x5603e4['length'];){const _0x55ea9f=_0x5603e4[_0x17b8c2],_0x347508=_0x5603e4[_0x17b8c2+0x1];_0x3fc60b||(_0x3fc60b=_0xb94ec1['createPositionBefore'](_0x55ea9f)),co(_0xb94ec1,_0x55ea9f,_0x347508)||(_0x3b452f['push'](_0xb94ec1['createRange'](_0x3fc60b,_0x17879c['isObject'](_0x55ea9f)?_0xb94ec1['createPositionAfter'](_0x55ea9f):_0xb94ec1['createPositionAt'](_0x55ea9f,'end'))),_0x3fc60b=null),_0x17b8c2++;}return _0x3b452f;}function co(_0x33b069,_0x58af92,_0x3ffdc9){if(!_0x3ffdc9)return!0x1;const _0x47dd72=_0x33b069['createPositionAfter'](_0x58af92),_0x190f61=_0x33b069['createPositionBefore'](_0x3ffdc9);return _0x47dd72['isTouching'](_0x190f61);}function rs(_0x4efbfc,_0x2eaa0d,_0x2428be){for(;_0x2428be['length'];){const _0x1de769=_0x2428be['splice'](0x0,0x64);_0x4efbfc['change'](()=>{for(const _0x53ae41 of _0x1de769)_0x53ae41['isInContent']&&_0x2eaa0d['execute'](_0x53ae41['id']);});}}class x extends ts{['refresh'](){const _0x32b212=Array['from'](this['_suggestions']['values']())['some'](_0x13b3a7=>_0x13b3a7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x32b212;}['execute'](){const _0x26f069=ss(Array['from'](this['_suggestions']['values']()));for(const _0x216b78 of _0x26f069){const _0x485b2c=_0x216b78['getRanges']();if(!this['editor']['model']['canEditAt'](_0x485b2c))return;}rs(this['editor']['model'],this['_command'],_0x26f069);}constructor(_0x5c3f99,_0x60e5d0,_0x4e6d97){super(_0x5c3f99),this['_command']=_0x60e5d0,this['_suggestions']=_0x4e6d97,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x4dbf5e=this['editor']['model']['document']['selection'],_0x2688da=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c887a,_0x2a2cb0){const _0x158bf0=Array['from'](_0x5c887a['getRanges']()),_0x55aa87=new Set();for(const _0x313c1c of _0x2a2cb0)if(_0x313c1c['isInContent']){for(const _0x417e13 of _0x158bf0)for(const _0x1cf14f of _0x313c1c['getRanges']())(_0x417e13['isIntersecting'](_0x1cf14f)||_0x5c887a['isCollapsed']&&!_0x313c1c['isMultiRange']&&_0x313c1c['next']&&_0x1cf14f['end']['isTouching'](_0x417e13['start']))&&_0x55aa87['add'](_0x313c1c);}return _0x55aa87;}(_0x4dbf5e,_0x2688da),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x40d2ee=ss(Array['from'](this['_selectedSuggestions']));for(const _0x168937 of _0x40d2ee){const _0x57da04=_0x168937['getRanges']();if(!this['editor']['model']['canEditAt'](_0x57da04))return;}rs(this['editor']['model'],this['_command'],_0x40d2ee);}constructor(_0x15a53c,_0x59ae02,_0x3b7b69){super(_0x15a53c),this['_command']=_0x59ae02,this['_suggestions']=_0x3b7b69,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x3a1d6a(){get['head'](){let _0x126bbe=this;for(;_0x126bbe['previous'];)_0x126bbe=_0x126bbe['previous'];return _0x126bbe;}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'](_0x58928b){this['_markerNames']['add'](_0x58928b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5c0804=>this['_model']['markers']['get'](_0x5c0804))['filter'](_0x22c968=>_0x22c968);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5b625d=>{for(const _0x2a6a01 of this['getMarkers']())_0x5b625d['removeMarker'](_0x2a6a01);}),this['_markerNames']['clear']();}['removeMarker'](_0x30ce15){this['_model']['change'](_0x258178=>{_0x258178['removeMarker'](_0x30ce15);}),this['_markerNames']['delete'](_0x30ce15);}['addRange'](_0x3142e4){const _0x4e16c3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4e16c3),this['_model']['change'](_0xcdd4b3=>{_0xcdd4b3['addMarker'](_0x4e16c3,{'range':_0x3142e4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x65c806){for(const _0x5d4fbb of this['getRanges']())if(_0x5d4fbb['isIntersecting'](_0x65c806))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3e684b=>_0x3e684b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x40d2ff,_0x1e3823)=>[..._0x40d2ff,..._0x1e3823['getItems']()],[]);}['getFirstRange'](){var _0x260c53;return(null===(_0x260c53=this['getFirstMarker']())||void 0x0===_0x260c53?void 0x0:_0x260c53['getRange']())||null;}['getContainedElement'](){const _0x1d5c5c=this['getRanges']();if(0x1!=_0x1d5c5c['length'])return null;const _0x31a634=_0x1d5c5c[0x0],_0x151b10=_0x31a634['start']['nodeAfter'],_0x342474=_0x31a634['end']['nodeBefore'];return _0x151b10 instanceof _0xe66098?_0x151b10!=_0x342474?null:_0x151b10: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 _0x3512ad=[];let _0x370272=this['head'];for(;_0x370272;)_0x3512ad['push'](_0x370272),_0x370272=_0x370272['next'];return _0x3512ad;}['setAttribute'](_0x6c7b05,_0x587098){const _0x17fe2c=_0x532a0f(this['attributes']);_0x4a3eae(_0x17fe2c,_0x6c7b05,_0x587098),_0x57d838(_0x17fe2c,this['attributes'])||(this['attributes']=_0x17fe2c,this['_onAttributesChange'](_0x17fe2c));}['removeAttribute'](_0x446e34){const _0x5aba2a=_0x532a0f(this['attributes']);_0x319abe(_0x5aba2a,_0x446e34),_0x57d838(_0x5aba2a,this['attributes'])||(this['attributes']=_0x5aba2a,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 _0x56098b()['substr'](0x1,0x5);}constructor(_0x2c011a,_0x130b53){super(),this['_isDataLoaded']=!0x1,this['id']=_0x130b53['id'],this['type']=_0x130b53['type'],this['subType']=_0x130b53['subType']||null,this['author']=_0x130b53['author'],this['creator']=_0x130b53['creator']||_0x130b53['author'],this['isExternal']=Boolean(_0x130b53['attributes']&&_0x130b53['attributes']['@external']),this['data']=null,this['_model']=_0x2c011a,this['_onAccept']=_0x130b53['onAccept'],this['_onDiscard']=_0x130b53['onDiscard'],this['_onAttributesChange']=_0x130b53['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x130b53['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x6ac366,_0x5c7009,_0x408420){const t=_0x6ac366['t'];switch(_0x5c7009){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',_0x408420);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x408420);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x408420);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x408420);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x408420);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',_0x408420);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x408420);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',_0x408420);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x408420);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x408420);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x408420);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x408420);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x408420);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x408420);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x408420);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x408420);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x408420);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x408420);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x408420);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x408420);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x408420);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x408420);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x408420);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'},_0x408420);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x408420);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x408420);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x408420);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x408420);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x408420);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'},_0x408420);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x408420);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x408420);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x408420);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x408420);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'},_0x408420);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x408420);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'},_0x408420);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'},_0x408420);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x408420);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'},_0x408420);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x408420);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'},_0x408420);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x408420);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x408420);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x408420);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'},_0x408420);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x5c7009;}}class f{['getDescriptions'](_0x13dec0){const _0x11d232=[],_0x5c90ab=new Set(),_0x5ce98f=new Set();for(let _0xcdf8f5=0x0;_0xcdf8f5<_0x13dec0['length'];_0xcdf8f5++){const _0x176ed1=_0x13dec0[_0xcdf8f5];if(!_0x176ed1['isInContent'])continue;const _0x2c6fde=this['_handleCustomCallbackDescription'](_0x176ed1);if(_0x2c6fde){if(null!=_0x176ed1['subType']){if(_0x5c90ab['has'](_0x176ed1['subType']))continue;_0x5c90ab['add'](_0x176ed1['subType']);}_0x11d232['push'](_0x2c6fde);}else{if('attribute'!=_0x176ed1['type'])'insertion'!=_0x176ed1['type']&&'deletion'!=_0x176ed1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x11d232,_0x176ed1,_0x13dec0[_0xcdf8f5+0x1]);else{const _0x3fd12f=_0x176ed1['data']['key'];if(_0x5ce98f['has'](_0x3fd12f))continue;_0x5ce98f['add'](_0x176ed1['data']['key']),_0x3fd12f==m?this['_handleRenameSuggestionDescription'](_0x11d232,_0x176ed1):this['_handleAttributeSuggestionDescription'](_0x11d232,_0x176ed1);}}}return this['_resolveDescriptionItems'](_0x11d232);}['registerDescriptionCallback'](_0x207545){this['_customCallbacks']['push'](_0x207545);}['registerElementLabel'](_0x407fc1,_0x491c6e,_0x2fc834=_0x39178d['normal']){'function'==typeof _0x407fc1?_0x3f8b36(this['_itemLabelsCallbacks'],{'matchingCallback':_0x407fc1,'label':_0x491c6e,'priority':_0x2fc834}):this['_itemLabels']['set'](_0x407fc1,_0x491c6e);}['registerAttributeLabel'](_0x753ddb,_0xfc80ab){this['_attributeLabels']['set'](_0x753ddb,_0xfc80ab);}['getItemLabel'](_0xe6e98f,_0x1cc113=0x1){let _0x111a27;for(const _0x51ae01 of this['_itemLabelsCallbacks'])if(_0x51ae01['matchingCallback'](_0xe6e98f)){_0x111a27=_0x51ae01['label'];break;}return _0x111a27||(_0x111a27=this['_itemLabels']['get'](_0xe6e98f['name'])),_0x111a27?_0x111a27(_0x1cc113):0x1!==_0x1cc113?_0x1cc113+'\x20'+_0xe6e98f['name']+'s':''+_0xe6e98f['name'];}['_addDescriptionItems'](_0x15908b,_0x189a4a){const _0x192cea=_0x189a4a['getFirstRange']()['getWalker'](),_0x4ddd27='insertion'==_0x189a4a['type']?'add':'remove';for(const _0x274b7c of _0x192cea){const _0x125cc7=_0x274b7c['item'],_0xf5c668=_0x15908b[_0x15908b['length']-0x1];if(_0x125cc7['is']('$textProxy'))_0xf5c668&&_0xf5c668['type']['indexOf']('Container')>-0x1&&_0x15908b['pop'](),_0xf5c668&&'text'==_0xf5c668['type']?_0xf5c668[_0x4ddd27]+=_0x125cc7['data']:_0x15908b['push']({'type':'text','add':'add'==_0x4ddd27?_0x125cc7['data']:'','remove':'remove'==_0x4ddd27?_0x125cc7['data']:''});else{if(this['_schema']['isObject'](_0x125cc7)){const _0x2d0ec9=_0x125cc7;if(_0xf5c668&&_0xf5c668['type']['indexOf']('Container')>-0x1&&_0x15908b['pop'](),'elementEnd'==_0x274b7c['type'])continue;_0xf5c668&&_0xf5c668['type']==_0x4ddd27+'Object'&&_0xf5c668['element']['name']==_0x2d0ec9['name']?_0xf5c668['quantity']++:_0x15908b['push']({'type':_0x4ddd27+'Object','element':_0x2d0ec9,'quantity':0x1}),_0x192cea['skip'](_0x4d33ac=>!('elementEnd'==_0x4d33ac['type']&&_0x4d33ac['item']==_0x125cc7));}else{if(this['_schema']['checkChild'](_0x125cc7,'$text')||_0x125cc7['is']('element','softBreak')){const _0x48c603=_0x125cc7;if('add'==_0x4ddd27&&'elementStart'==_0x274b7c['type']||'remove'==_0x4ddd27&&'elementEnd'==_0x274b7c['type'])continue;if(_0xf5c668&&-0x1==_0xf5c668['type']['indexOf']('Container')){'text'==_0xf5c668['type']&&(_0xf5c668[_0x4ddd27]+='\x0a');continue;}let _0x11b6cb;if(_0x11b6cb='add'==_0x4ddd27?_0x48c603['nextSibling']&&!this['_schema']['isObject'](_0x48c603['nextSibling'])?_0x48c603['nextSibling']:null:_0x48c603['previousSibling']&&!this['_schema']['isObject'](_0x48c603['previousSibling'])?_0x48c603['previousSibling']:null,_0x48c603['isEmpty']||_0x11b6cb&&_0x11b6cb['isEmpty']){const _0x1793b6=_0x11b6cb&&_0x11b6cb['isEmpty']?_0x11b6cb:_0x48c603;_0xf5c668&&_0xf5c668['type']==_0x4ddd27+'EmptyContainer'&&_0xf5c668['element']['name']==_0x1793b6['name']?_0xf5c668['quantity']++:_0x15908b['push']({'type':_0x4ddd27+'EmptyContainer','element':_0x1793b6,'quantity':0x1});}else _0x15908b['push']({'type':_0x4ddd27+'Container','element':_0x48c603});}}}}}['_resolveDescriptionItems'](_0x2a2460){const _0x2c340b=this['_locale'],_0xaad487=[],_0x45be49=[],_0x5f0acf=[];for(const _0x38e2de of _0x2a2460)switch(_0x38e2de['type']){case'text':if(_0x38e2de['add']=_0x38e2de['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x38e2de['remove']=_0x38e2de['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x38e2de['add']&&''!=_0x38e2de['remove']){_0xaad487['push']({'type':'replace','content':o(_0x2c340b,'REPLACE_TEXT',['\x22'+_0x38e2de['remove']+'\x22','\x22'+_0x38e2de['add']+'\x22'])});continue;}if(null!=_0x38e2de['add']['match'](/^ +$/)){_0xaad487['push']({'type':'insertion','content':o(_0x2c340b,'*Insert:*\x20%0',o(_0x2c340b,'ELEMENT_SPACE',_0x38e2de['add']['length']))});continue;}if(null!=_0x38e2de['remove']['match'](/^ +$/)){_0xaad487['push']({'type':'deletion','content':o(_0x2c340b,'*Remove:*\x20%0',o(_0x2c340b,'ELEMENT_SPACE',_0x38e2de['remove']['length']))});continue;}if(''!=_0x38e2de['add']){_0xaad487['push']({'type':'insertion','content':o(_0x2c340b,'*Insert:*\x20%0','\x22'+_0x38e2de['add']+'\x22')});continue;}_0xaad487['push']({'type':'deletion','content':o(_0x2c340b,'*Remove:*\x20%0','\x22'+_0x38e2de['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xaad487['push']({'type':'insertion','content':o(_0x2c340b,'*Insert:*\x20%0',this['getItemLabel'](_0x38e2de['element'],_0x38e2de['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xaad487['push']({'type':'deletion','content':o(_0x2c340b,'*Remove:*\x20%0',this['getItemLabel'](_0x38e2de['element'],_0x38e2de['quantity']))});continue;case'addContainer':_0xaad487['push']({'type':'insertion','content':o(_0x2c340b,'*Split:*\x20%0',this['getItemLabel'](_0x38e2de['element'],_0x38e2de['quantity']))});continue;case'removeContainer':_0xaad487['push']({'type':'deletion','content':o(_0x2c340b,'*Merge:*\x20%0',this['getItemLabel'](_0x38e2de['element'],_0x38e2de['quantity']))});continue;case'addFormat':_0x45be49['push'](_0x38e2de['key']);continue;case'removeFormat':_0x5f0acf['push'](_0x38e2de['key']);continue;default:_0xaad487['push'](_0x38e2de);}if(_0x45be49['length']){const _0x250172=_0x45be49['map'](_0x268907=>this['_attributeLabels']['has'](_0x268907)?this['_attributeLabels']['get'](_0x268907):_0x268907)['join'](',\x20');_0xaad487['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x250172)});}if(_0x5f0acf['length']){const _0x36bdc4=_0x5f0acf['map'](_0x39100d=>this['_attributeLabels']['has'](_0x39100d)?this['_attributeLabels']['get'](_0x39100d):_0x39100d)['join'](',\x20');_0xaad487['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x36bdc4)});}return _0xaad487;}['_handleCustomCallbackDescription'](_0x4fc8d6){for(const _0x5400f2 of this['_customCallbacks']){const _0x1521e4=_0x5400f2(_0x4fc8d6);if(_0x1521e4&&'type'in _0x1521e4)return _0x1521e4;}}['_handleAttributeSuggestionDescription'](_0x39879f,_0x4223cf){const _0x59fece=_0x4223cf['data'],_0x483b4f=void 0x0===_0x59fece['newValue']?'removeFormat':'addFormat';_0x39879f['push']({'type':_0x483b4f,'key':_0x59fece['key']});}['_handleRenameSuggestionDescription'](_0x87e3b8,_0x598748){_0x87e3b8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x598748['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x67d864,_0x2b1b66,_0x17bba4){if(this['_addDescriptionItems'](_0x67d864,_0x2b1b66),_0x17bba4&&_0x17bba4['getFirstRange']()&&!_0x2b1b66['getFirstRange']()['end']['isEqual'](_0x17bba4['getFirstRange']()['start'])){const _0x4c90ff=_0x67d864[_0x67d864['length']-0x1],_0x4320f9='insertion'==_0x2b1b66['type']?'add':'remove';_0x4c90ff&&'text'==_0x4c90ff['type']&&(_0x4c90ff[_0x4320f9]+='\x0a');}}constructor(_0x308922,_0x3a1be4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x308922,this['_locale']=_0x3a1be4;}}class E extends _0x4a6276{['afterInit'](){const _0x2c953f=this['editor'],_0x551359=_0x2c953f['plugins']['get']('TrackChangesEditing');_0x2c953f['commands']['get']('showAIAssistant')&&_0x551359['enableCommand']('showAIAssistant');}}class V extends _0x4a6276{['afterInit'](){const _0x332bdf=this['editor'],_0x317402=_0x332bdf['locale'];if(!_0x332bdf['plugins']['has']('AlignmentEditing'))return;const _0x207a53=_0x332bdf['plugins']['get']('TrackChangesEditing');_0x207a53['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x207a53['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x317402,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6a77e5=this['editor'],_0x527bd4=_0x6a77e5['locale'];_0x6a77e5['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2aaf87=>{if('formatBlock'!=_0x2aaf87['type'])return;const {data:_0x4a257b}=_0x2aaf87;if(_0x4a257b&&'alignment'==_0x4a257b['commandName']){const _0x529e49=_0x4a257b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x527bd4,'*Format:*\x20%0',function(_0x16eaeb){switch(_0x16eaeb){case'left':return o(_0x527bd4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x527bd4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x527bd4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x527bd4,'FORMAT_JUSTIFY_TEXT');}}(_0x529e49))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4a6276{['afterInit'](){const _0x5d5ec4=this['editor'],_0xcc3268=_0x5d5ec4['plugins']['get']('TrackChangesEditing'),_0x1afab6=_0x5d5ec4['locale'];for(const _0x10f4c2 of ti){if(!_0x5d5ec4['plugins']['has'](_0x10f4c2))continue;const _0x50e7f6=_0x10f4c2['slice'](0x0,-0x7)['toLowerCase'](),_0x3f565e='FORMAT_'+_0x50e7f6['toUpperCase']();_0xcc3268['_enableDefaultAttributesIntegration'](_0x50e7f6,[_0x50e7f6]),_0xcc3268['_descriptionFactory']['registerAttributeLabel'](_0x50e7f6,o(_0x1afab6,_0x3f565e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x137338=this['editor'],_0x429613=_0x137338['locale'],_0x105088=_0x137338['plugins']['get']('TrackChangesEditing');function _0x4bb9af(_0x155380,_0x23bbaf){_0x105088['_descriptionFactory']['registerDescriptionCallback'](_0x53b628=>{if('formatInline'!=_0x53b628['type'])return;const {data:_0x57f3a9}=_0x53b628;return _0x57f3a9&&_0x57f3a9['commandName']===_0x155380?_0x57f3a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x429613,'*Format:*\x20%0',_0x23bbaf)}:{'type':'format','content':o(_0x429613,'*Remove\x20format:*\x20%0',_0x23bbaf)}:void 0x0;});}_0x4bb9af('bold',o(_0x429613,'FORMAT_BOLD')),_0x4bb9af('italic',o(_0x429613,'FORMAT_ITALIC')),_0x4bb9af('underline',o(_0x429613,'FORMAT_UNDERLINE')),_0x4bb9af('code',o(_0x429613,'FORMAT_CODE')),_0x4bb9af('strikethrough',o(_0x429613,'FORMAT_STRIKETHROUGH')),_0x4bb9af('subscript',o(_0x429613,'FORMAT_SUBSCRIPT')),_0x4bb9af('superscript',o(_0x429613,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4a6276{['afterInit'](){const _0x10fb91=this['editor'],_0x26bd10=_0x10fb91['locale'];if(!_0x10fb91['plugins']['has']('BlockQuoteEditing'))return;const _0x411b12=_0x10fb91['plugins']['get']('TrackChangesEditing'),_0x31b10d=this['editor']['commands']['get']('blockQuote');_0x411b12['enableCommand']('blockQuote',(_0x6a3f57,_0x8de00d={})=>{const _0x2ba833=this['editor']['model']['document']['selection'],_0x2c5bc2=_0x8de00d&&void 0x0!==_0x8de00d['forceValue']?_0x8de00d['forceValue']:!_0x31b10d['value'];let _0x4b2a6c=[];if(_0x2c5bc2){const _0x21bf9c=Array['from'](_0x2ba833['getSelectedBlocks']())['filter'](_0x192b11=>oo(_0x192b11)||function(_0x5421f4,_0x579726){const _0x3f7d8a=_0x579726['checkChild'](_0x5421f4['parent'],'blockQuote'),_0x592447=_0x579726['checkChild'](['$root','blockQuote'],_0x5421f4);return _0x3f7d8a&&_0x592447;}(_0x192b11,this['editor']['model']['schema']));_0x4b2a6c=to(_0x21bf9c,_0x10fb91['model']);}else{const _0x185662=Array['from'](_0x2ba833['getSelectedBlocks']())['filter'](_0x2401ff=>oo(_0x2401ff));_0x4b2a6c=to(_0x185662,_0x10fb91['model']);}_0x10fb91['model']['change'](()=>{for(const _0x556426 of _0x4b2a6c)_0x411b12['markBlockFormat'](_0x556426,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c5bc2}]});});}),_0x411b12['_descriptionFactory']['registerDescriptionCallback'](_0x532d71=>{const {data:_0x356467}=_0x532d71;if(_0x356467&&'blockQuote'==_0x356467['commandName']){const _0xc2ac27=o(_0x26bd10,'ELEMENT_BLOCK_QUOTE');return _0x356467['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26bd10,'*Set\x20format:*\x20%0',_0xc2ac27)}:{'type':'format','content':o(_0x26bd10,'*Remove\x20format:*\x20%0',_0xc2ac27)};}});}}function oo(_0x243067){return'blockQuote'==_0x243067['parent']['name'];}class G extends _0x4a6276{['afterInit'](){const _0x48b194=this['editor'];_0x48b194['plugins']['has']('CaseChange')&&(_0x48b194['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x48b194['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x48b194['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4a6276{['afterInit'](){const _0x30ae27=this['editor'];_0x30ae27['commands']['get']('ckbox')&&_0x30ae27['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4a6276{['afterInit'](){const _0x3fda51=this['editor'];if(!_0x3fda51['plugins']['has']('CodeBlock'))return;const _0x50eeb8=_0x3fda51['plugins']['get']('TrackChangesEditing'),_0x27a249=_0x3fda51['locale'],_0x2ab814=_0x3fda51['config']['get']('codeBlock')['languages'],_0x4e4012=_0x3fda51['commands']['get']('codeBlock');_0x50eeb8['enableCommand']('indentCodeBlock'),_0x50eeb8['enableCommand']('outdentCodeBlock'),_0x50eeb8['enableCommand']('codeBlock',(_0x5d2f3d,_0x4e311c={})=>{const _0x529acd=_0x3fda51['model'],_0x52161c=_0x3fda51['model']['document']['selection'],_0xdd987=_0x4e311c&&void 0x0!==_0x4e311c['forceValue']?_0x4e311c['forceValue']:!_0x4e4012['value'];let _0x27b042;_0x4e311c['language']||(_0x4e311c['language']=_0x2ab814[0x0]['language']),_0x27b042=_0xdd987?Array['from'](_0x52161c['getSelectedBlocks']())['filter'](_0x154d48=>eo(_0x154d48)||function(_0x19a31a,_0x1926f0){if(_0x19a31a['is']('rootElement')||_0x1926f0['isLimit'](_0x19a31a))return!0x1;return _0x1926f0['checkChild'](_0x19a31a['parent'],'codeBlock');}(_0x154d48,_0x529acd['schema'])):Array['from'](_0x52161c['getSelectedBlocks']())['filter'](_0x26c63d=>eo(_0x26c63d));const _0x2706fb=to(_0x27b042,_0x529acd);_0x529acd['change'](()=>{for(const _0x25b5fb of _0x2706fb)_0x50eeb8['markBlockFormat'](_0x25b5fb,{'commandName':'codeBlock','commandParams':[{..._0x4e311c,'forceValue':_0xdd987}],'formatGroupId':'blockName'});});}),(_0x50eeb8['_descriptionFactory']['registerElementLabel']('codeBlock',_0x2514fe=>o(_0x27a249,'ELEMENT_CODE_BLOCK',_0x2514fe)),_0x50eeb8['_descriptionFactory']['registerDescriptionCallback'](_0xa2dc60=>{if('formatBlock'!=_0xa2dc60['type'])return;const _0x37deae=_0x27a249['t'],{data:_0x34a81e}=_0xa2dc60;if(!_0x34a81e||'codeBlock'!=_0x34a81e['commandName'])return;const _0x375e20=_0x34a81e['commandParams'][0x0]['language'],_0x285f99=_0x37deae(_0x2ab814['find'](_0xbf152c=>_0xbf152c['language']===_0x375e20)['label'])['toLowerCase']();return _0x34a81e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27a249,'*Set\x20format:*\x20%0',o(_0x27a249,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x285f99+')')}:{'type':'format','content':o(_0x27a249,'*Remove\x20format:*\x20%0',o(_0x27a249,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1ef9b9){return'codeBlock'==_0x1ef9b9['name'];}class H extends _0x4a6276{['afterInit'](){const _0xf7a464=this['editor'];if(!_0xf7a464['plugins']['has']('CommentsEditing'))return;_0xf7a464['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4d93ec,_0x413a76,_0x389a6a){const _0x2ae29e=[];for(const _0x320c3a of _0x413a76['getItems']())_0x320c3a['hasAttribute'](_0x4d93ec)&&_0x2ae29e['push'](_0x389a6a['createRangeOn'](_0x320c3a));return _0x2ae29e;}function _e(_0x1c6b28,_0x4c7e2e,{showActiveMarker:_0x1a6edf=!0x0}={}){const _0x213f19=_0x1c6b28['plugins']['get']('TrackChangesEditing');return(_0x54db24,_0x7ab083,_0x481d67)=>{if(!_0x481d67['consumable']['test'](_0x7ab083['markerRange'],_0x54db24['name']))return;const _0xd1377e=_0x7ab083['markerRange']['getWalker'](),_0x41f1cc=_0x7ab083['markerRange']['start'],_0x20aaf7=_0x1c6b28['model']['schema'];let _0x105af9=null,_0xec4926=null,_0x2abd13=!0x1,_0x58d1b4=!0x1;for(const _0x3b0383 of _0xd1377e){const _0x196ec6=_0x3b0383['item'];_0x2abd13=_0x2abd13||_0x20aaf7['isContent'](_0x196ec6);const _0x43ec68=_0x481d67['mapper']['toViewElement'](_0x196ec6);if(_0x43ec68&&_0x43ec68['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b0383['type']&&(_0x20aaf7['isBlock'](_0x196ec6)&&!_0x20aaf7['isLimit'](_0x196ec6)&&(_0x196ec6['nextSibling']||_0x41f1cc['isAtEnd']?_0x105af9&&_0x105af9['parent']==_0x196ec6||(_0x105af9=_0x196ec6,_0x59312c(_0x3b0383['previousPosition']),_0x58d1b4=!0x0):_0xec4926=_0xec4926||_0x3b0383['previousPosition']));}function _0x59312c(_0x279e06){const _0x2815d5=_0x481d67['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c7e2e}),_0x385cc4=_0x481d67['mapper']['toViewPosition'](_0x279e06);_0x1a6edf&&_0x213f19['activeMarkers']['includes'](_0x7ab083['markerName'])&&_0x481d67['writer']['addClass']('ck-suggestion-marker--active',_0x2815d5),_0x481d67['writer']['insert'](_0x385cc4,_0x2815d5),_0x481d67['mapper']['bindElementToMarker'](_0x2815d5,_0x7ab083['markerName']);}_0x2abd13||_0x58d1b4||!_0xec4926||_0x59312c(_0xec4926);};}class q extends _0x4a6276{static get['requires'](){return[_0x28bff7];}['init'](){const _0x2ecb6f=this['editor'],_0x5f38cf=_0x2ecb6f['plugins']['get']('TrackChangesEditing');_0x5f38cf['enableCommand']('delete');const _0x1c2651=_0x2ecb6f['commands']['get']('deleteForward');_0x5f38cf['enableCommand']('deleteForward',(_0x511f76,_0x244d8e={})=>{const _0x142fde=_0x2ecb6f['model']['createSelection'](_0x2ecb6f['model']['document']['selection']);_0x142fde['isCollapsed']&&_0x2ecb6f['model']['modifySelection'](_0x142fde,{'direction':'forward','unit':_0x244d8e['unit']});const _0x59f438=_0x142fde['getFirstRange'](),_0x5b5fae=_0x2e827c['fromRange'](_0x59f438);let _0x29f23c;_0x511f76(_0x244d8e),_0x29f23c='$graveyard'==_0x5b5fae['root']['rootName']?_0x2ecb6f['model']['createRange'](_0x59f438['start']):_0x2ecb6f['model']['createRange'](_0x5b5fae['start'],_0x5b5fae['end']),_0x5b5fae['detach'](),_0x2ecb6f['model']['enqueueChange'](_0x1c2651['buffer']['batch'],_0x2236ac=>{_0x1c2651['buffer']['lock'](),_0x2236ac['setSelection'](_0x2236ac['createRange'](_0x29f23c['end'])),_0x1c2651['buffer']['unlock']();});}),_0x2ecb6f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2ecb6f,'merge'),{'priority':'high'}),_0x2ecb6f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x426492,_0x2e186e,_0x3aa371)=>{_0x3aa371['options']['showSuggestionHighlights']&&_e(_0x2ecb6f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x426492,_0x2e186e,_0x3aa371);},{'priority':'high'}),_0x2ecb6f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x236668,_0x56d1fe,_0x1d23db)=>{const _0xc4188e=_0x1d23db['mapper']['markerNameToElements'](_0x56d1fe['markerName']);if(_0xc4188e){for(const _0x34edf0 of _0xc4188e)_0x34edf0['is']('uiElement')&&(_0x1d23db['mapper']['unbindElementFromMarkerName'](_0x34edf0,_0x56d1fe['markerName']),_0x1d23db['writer']['remove'](_0x34edf0));}},{'priority':'high'});}}class z extends _0x4a6276{['afterInit'](){const _0x149a2e=this['editor'];if(!_0x149a2e['plugins']['has']('ListEditing'))return;const _0xfc83d9=_0x149a2e['locale'],_0x5ace90=_0x149a2e['plugins']['get']('TrackChangesEditing'),_0xd60aef=_0x149a2e['plugins']['has']('TodoListEditing'),_0x1a6d02=!!_0x149a2e['config']['get']('list.multiBlock');function _0x4c9bc4(_0x2a7751){return{'type':'format','content':''+o(_0xfc83d9,'*Set\x20format:*\x20%0',_0x2a7751)};}function _0x12f662(_0x1f8827){return{'type':'format','content':''+o(_0xfc83d9,'*Remove\x20format:*\x20%0',_0x1f8827)};}_0x5ace90['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x5ace90['_enableDefaultAttributesIntegration']('bulletedList'),_0x5ace90['_enableDefaultAttributesIntegration']('customNumberedList'),_0x5ace90['_enableDefaultAttributesIntegration']('customBulletedList'),_0x5ace90['_enableDefaultAttributesIntegration']('indentList'),_0x5ace90['_enableDefaultAttributesIntegration']('outdentList'),_0x5ace90['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5ace90['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1a6d02&&(_0x5ace90['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5ace90['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0xd60aef&&(_0x5ace90['_enableDefaultAttributesIntegration']('todoList'),_0x5ace90['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x5ace90['_descriptionFactory']['registerDescriptionCallback'](_0x412ca3=>{const {data:_0x307e10}=_0x412ca3;if(_0x307e10&&'todoListChecked'==_0x307e10['key'])return{'type':'format','content':_0x307e10['newValue']?o(_0xfc83d9,'*Check\x20item*'):o(_0xfc83d9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c7659=>{if(_0x1c7659['batch']['isUndo'])return!0x1;let _0xb9784d=!0x1;const _0x5d8d4a=_0x5ace90['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x80d784=>'todoListChecked'===_0x5ace90['_getAttributeKey'](_0x80d784));for(const _0x31381b of _0x5d8d4a){'todo'!=_0x31381b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5ace90['_findSuggestions'](_0x31381b['getFirstRange'](),'attribute')['find'](_0x2b8fa4=>'listType'===_0x5ace90['_getAttributeKey'](_0x2b8fa4['suggestion']))||(_0x1c7659['removeMarker'](_0x31381b['getFirstMarker']()),_0xb9784d=!0x0));}return _0xb9784d;})),_0x5ace90['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xfc83d9,'FORMAT_INDENT'));const _0x5abd34={'type':'format','content':''};_0x5ace90['_descriptionFactory']['registerDescriptionCallback'](_0x353fc=>{const {data:_0xee1e25}=_0x353fc;if(!_0xee1e25||'listType'!=_0xee1e25['key'])return;let _0x241c18=_0x353fc['head'];for(;_0x241c18;){if(_0x241c18['data']&&(('listStyle'==_0x241c18['data']['key']||'listMarkerStyle'==_0x241c18['data']['key'])&&(_0x241c18['data']['newValue']&&'default'!=_0x241c18['data']['newValue']||'default'!=_0x241c18['data']['oldValue']&&!_0xee1e25['newValue'])||!_0x1a6d02&&_0x241c18['data']['key']==m))return _0x5abd34;_0x241c18=_0x241c18['next'];}if(null==_0xee1e25['newValue'])switch(_0xee1e25['oldValue']){case'bulleted':return _0x12f662(o(_0xfc83d9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12f662(o(_0xfc83d9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12f662(o(_0xfc83d9,'ELEMENT_TODO_LIST'));}switch(_0xee1e25['newValue']){case'bulleted':return _0x4c9bc4(o(_0xfc83d9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c9bc4(o(_0xfc83d9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c9bc4(o(_0xfc83d9,'ELEMENT_TODO_LIST'));}}),_0x5ace90['_descriptionFactory']['registerDescriptionCallback'](_0x31809d=>{const {data:_0x221694}=_0x31809d;if(_0x221694&&'listIndent'==_0x221694['key'])return null==_0x221694['newValue']||null==_0x221694['oldValue']&&0x0==_0x221694['newValue']?_0x5abd34:void 0x0;}),_0x5ace90['_descriptionFactory']['registerDescriptionCallback'](_0x42bfd0=>{if('attribute'!=_0x42bfd0['type'])return;const {data:_0x407c24}=_0x42bfd0;if(!_0x407c24||'listItemId'!=_0x407c24['key'])return;const _0x4d38ed=le(_0x42bfd0);return _0x4d38ed?'newValue'==_0x4d38ed?{'type':'format','content':o(_0xfc83d9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d38ed?{'type':'format','content':o(_0xfc83d9,'*Split:*\x20list\x20item')}:_0x5abd34:_0x5abd34;}),_0x149a2e['model']['document']['registerPostFixer'](_0x2e21db=>this['listItemIdFixer'](_0x2e21db)),_0x149a2e['model']['document']['registerPostFixer'](_0x615fb6=>this['noTrackChangesFixer'](_0x615fb6)),_0x149a2e['model']['document']['registerPostFixer'](_0x30dcc2=>this['assureChains'](_0x30dcc2)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5145da){if(_0x5145da['batch']['isUndo']||!_0x5145da['batch']['isLocal'])return!0x1;let _0x58657a=!0x1;const _0x577f2a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x456c44=>_0x456c44['data']&&'listItemId'==_0x456c44['data']['key'])['filter'](_0x5996bc=>_0x5996bc['data']['newValue']&&_0x5996bc['data']['oldValue']);for(const _0x50fed5 of _0x577f2a)le(_0x50fed5)||(_0x5145da['removeMarker'](_0x50fed5['getFirstMarker']()),_0x58657a=!0x0);return _0x58657a;}['noTrackChangesFixer'](_0x20b1c1){if(_0x20b1c1['batch']['isUndo']||!_0x20b1c1['batch']['isLocal'])return!0x1;const _0x5aa7a5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5aa7a5['trackChangesCommand']['value'])return!0x1;let _0x1b0ab7=!0x1;const _0x3d4b64=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x25c3d8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1736a0=>'attribute'==_0x1736a0['type'])['filter'](_0x1b44aa=>_0x3d4b64['includes'](_0x1b44aa['attributeKey']));if(0x0==_0x25c3d8['length'])return _0x1b0ab7;for(const _0x4b249c of _0x25c3d8){const _0x1bf72f=_0x5aa7a5['_findSuggestions'](_0x4b249c['range'],'attribute')['filter'](_0x5f43dc=>!_0x5f43dc['meta']['isNextTo'])['map'](_0x34912e=>_0x34912e['suggestion'])['filter'](_0x4eff39=>{const _0x5e49d5=_0x5aa7a5['_getAttributeKey'](_0x4eff39);return _0x3d4b64['includes'](_0x5e49d5);});if(_0x1bf72f['length']){for(const _0x44509f of _0x1bf72f)_0x20b1c1['removeMarker'](_0x44509f['getFirstMarker']());_0x1b0ab7=!0x0;}}return _0x1b0ab7;}['assureChains'](_0x1109f2){if(_0x1109f2['batch']['isUndo']||!_0x1109f2['batch']['isLocal'])return!0x1;const _0x3aa308=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2d56b1=!0x1;const _0x233e67=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4ca45e of _0x3aa308['getSuggestions']({'skipNotAttached':!0x0})){const _0x3917d8=_0x3aa308['_findSuggestions'](_0x4ca45e['getFirstRange'](),'attribute')['map'](_0x2d25b6=>_0x2d25b6['suggestion'])['filter'](_0x2cf49a=>_0x2cf49a['data']&&_0x233e67['includes'](_0x2cf49a['data']['key']));if(!_0x3917d8['length'])continue;const _0x5dc6c8=_0x3917d8[0x0]['head']['attributes']['groupId'];if(!_0x3917d8['every'](_0x260015=>_0x260015['attributes']['groupId']===_0x5dc6c8)){for(const _0x311bb0 of _0x3917d8)_0x2f2b4a(_0x311bb0,_0x5dc6c8)&&(_0x2d56b1=!0x0);}}return _0x2d56b1;function _0x200d83(_0x41c3be,_0x581e0c){for(const _0x300f41 of _0x3aa308['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x88b6eb=>'attribute'==_0x88b6eb['type']&&_0x88b6eb['attributes']['groupId']==_0x41c3be))_0x300f41['setAttribute']('groupId',_0x581e0c);}function _0x2f2b4a(_0x2a2f5a,_0x4daa9a){let _0x3bde23=_0x2a2f5a['head'],_0x352121=!0x1;for(;_0x3bde23;)_0x3bde23['attributes']['groupId']!=_0x4daa9a&&(_0x200d83(_0x3bde23['attributes']['groupId'],_0x4daa9a),_0x3bde23['setAttribute']('groupId',_0x4daa9a),_0x352121=!0x0),_0x3bde23=_0x3bde23['next'];return _0x352121;}}['_supportLegacySuggestions'](){const _0x386954=this['editor'],_0xd5ab24=_0x386954['locale'],_0x4825b8=_0x386954['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4825b8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x733ba0,_0x2107a3){const _0x372959=[];for(let _0x4f9182 of _0x733ba0)_0x4f9182['start']['nodeAfter']===_0x4f9182['end']['parent']&&(_0x4f9182=_0x386954['model']['createRange'](_0x386954['model']['createPositionAt'](_0x4f9182['start']['nodeAfter'],0x0))),_0x372959['push'](_0x4f9182);_0x386954['model']['change'](_0x1f580b=>{const _0x5c82e9=_0x386954['model']['document']['selection'],_0x500030=Array['from'](_0x5c82e9['getRanges']())['map'](_0x1b84e8=>_0x2e827c['fromRange'](_0x1b84e8));_0x1f580b['setSelection'](_0x372959),_0x386954['commands']['get'](_0x2107a3['commandName'])['refresh'](),_0x2107a3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x386954['execute'](_0x2107a3['commandName'],..._0x2107a3['commandParams']),_0x1f580b['setSelection'](_0x500030);for(const _0x23e490 of _0x500030)_0x23e490['detach']();});}),_0x4825b8['_descriptionFactory']['registerElementLabel'](function(_0x348724){const _0xb42994=!_0x386954['model']['schema']['isObject'](_0x348724),_0x144bfc=_0x348724['previousSibling'],_0x5a9aec=_0x348724['nextSibling'],_0x10a177=_0x348724['getAttribute']('listItemId'),_0x3b4204=!_0x144bfc||_0x144bfc['getAttribute']('listItemId')!==_0x10a177,_0x258c23=!_0x5a9aec||_0x5a9aec['getAttribute']('listItemId')!==_0x10a177;return _0xb42994&&Boolean(_0x10a177)&&_0x3b4204&&_0x258c23;},_0x243168=>o(_0xd5ab24,'ELEMENT_LIST_ITEM',_0x243168));}['_registerLegacyDescription'](){const _0xab59a=this['editor'],_0x3e39b7=_0xab59a['locale'];function _0x413a31(_0x42c64a){const _0x54007a=_0xab59a['commands']['get']('bulletedList')['value'],_0x333ede=_0xab59a['commands']['get']('numberedList')['value'];return'numberedList'===_0x42c64a?_0x54007a:_0x333ede;}_0xab59a['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x5b853f){if('formatBlock'!=_0x5b853f['type'])return;const {data:_0x793602}=_0x5b853f;if(!_0x793602)return;let _0x225a0c,_0x14a925,_0x41a2c8,_0xf1ac7c;switch(_0x793602['commandName']){case'bulletedList':_0x41a2c8=_0x793602['commandParams'][0x0]['forceValue'],_0xf1ac7c=_0x413a31(_0x793602['commandName']),_0x225a0c=_0x41a2c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xf1ac7c&&_0xab59a['config']['get']('list.multiBlock')||(_0x225a0c='*Change\x20to:*\x20%0'),_0x14a925={'type':'format','content':o(_0x3e39b7,_0x225a0c,o(_0x3e39b7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41a2c8=_0x793602['commandParams'][0x0]['forceValue'],_0xf1ac7c=_0x413a31(_0x793602['commandName']),_0x225a0c=_0x41a2c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xf1ac7c&&_0xab59a['config']['get']('list.multiBlock')||(_0x225a0c='*Change\x20to:*\x20%0'),_0x14a925={'type':'format','content':o(_0x3e39b7,_0x225a0c,o(_0x3e39b7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x225a0c='*Indent:*\x20%0',_0x14a925={'type':'format','content':o(_0x3e39b7,_0x225a0c,o(_0x3e39b7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x225a0c=function(_0x31d1a9){const _0x1e0991=_0x31d1a9['getFirstRange']();let _0x2b3998=_0x1e0991['start']['nodeAfter'];for(;_0x2b3998&&_0x1e0991['containsItem'](_0x2b3998);){if(_0x2b3998['getAttribute']('listIndent')>0x0)return!0x1;_0x2b3998=_0x2b3998['nextSibling'];}return!0x0;}(_0x5b853f)?o(_0x3e39b7,'*Format:*\x20remove\x20from\x20%0',o(_0x3e39b7,function(_0x16a475){return'ELEMENT_'+_0x16a475['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5b853f))):o(_0x3e39b7,'*Outdent:*\x20%0',o(_0x3e39b7,'ELEMENT_LIST_ITEM')),_0x14a925={'type':'format','content':_0x225a0c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x793602['multipleBlocks']&&(_0x225a0c='*Merge:*\x20%0',_0x14a925={'type':'deletion','content':o(_0x3e39b7,_0x225a0c,o(_0x3e39b7,'ELEMENT_LIST_ITEM'))});}return _0x14a925;});}}function le(_0x4780dd){let _0x2f9b42=_0x4780dd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2f9b42;){const _0x390ecd=_0x2f9b42['getAttribute']('listItemId');if(!_0x390ecd)return!0x1;if(_0x390ecd==_0x4780dd['data']['newValue'])return'newValue';if(_0x390ecd==_0x4780dd['data']['oldValue'])return'oldValue';_0x2f9b42=_0x2f9b42['previousSibling'];}return!0x1;}class ue extends _0x4a6276{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4edbb0=this['editor']['config']['get']('list.properties'),_0x45a0a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4edbb0['styles']&&_0x45a0a7['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x4edbb0['reversed']&&_0x45a0a7['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x4edbb0['startIndex']&&_0x45a0a7['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x371f69={'type':'format','content':''};_0x45a0a7['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1caa48=this['editor']['locale'];_0x45a0a7['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1caa48,'FORMAT_LIST_REVERSED')),_0x45a0a7['_descriptionFactory']['registerDescriptionCallback'](_0x198404=>{const {data:_0x598c71}=_0x198404;if(_0x598c71&&'listReversed'==_0x598c71['key'])return null==_0x598c71['newValue']||0x0==_0x598c71['newValue']&&null==_0x598c71['oldValue']?_0x371f69:void 0x0;}),_0x45a0a7['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1caa48,'FORMAT_LIST_START')),_0x45a0a7['_descriptionFactory']['registerDescriptionCallback'](_0x1548aa=>{const {data:_0x1daf83}=_0x1548aa;if(_0x1daf83&&'listStart'==_0x1daf83['key'])return null==_0x1daf83['newValue']||0x1==_0x1daf83['newValue']&&null==_0x1daf83['oldValue']?_0x371f69:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x6ebdea=>{if(_0x6ebdea['batch']['isUndo'])return!0x1;let _0x46bfd9=!0x1;const _0x293d40=_0x45a0a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d75c2=>{const _0x39f056=_0x45a0a7['_getAttributeKey'](_0x2d75c2);return'listStart'==_0x39f056||'listReversed'==_0x39f056;});for(const _0x1530b6 of _0x293d40){const _0x5a9528=_0x1530b6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5a9528||'customNumbered'==_0x5a9528)continue;_0x45a0a7['_findSuggestions'](_0x1530b6['getFirstRange'](),'attribute')['find'](_0x206592=>'listType'==_0x45a0a7['_getAttributeKey'](_0x206592['suggestion']))||(_0x6ebdea['removeMarker'](_0x1530b6['getFirstMarker']()),_0x46bfd9=!0x0);}return _0x46bfd9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x57f1ab){const _0x3b60f0=this['editor']['locale'],{data:_0x38311d}=_0x57f1ab,_0x1be59e={'type':'format','content':''};if(!_0x38311d||'listStyle'!=_0x38311d['key'])return;if(!_0x38311d['oldValue'])return'default'==_0x38311d['newValue']?_0x1be59e:{'type':'format','content':''+o(_0x3b60f0,'*Set\x20format:*\x20%0',o(_0x3b60f0,this['_getTranslationKeyForListStyle'](_0x38311d['newValue'])))};if(!_0x38311d['newValue']){if('default'==_0x38311d['oldValue'])return _0x1be59e;let _0x48ff13=_0x57f1ab['head'];for(;_0x48ff13;){if(_0x48ff13['data']&&'listType'==_0x48ff13['data']['key']&&_0x48ff13['data']['newValue'])return _0x1be59e;_0x48ff13=_0x48ff13['next'];}return{'type':'format','content':''+o(_0x3b60f0,'*Remove\x20format:*\x20%0',o(_0x3b60f0,this['_getTranslationKeyForListStyle'](_0x38311d['oldValue'])))};}if('default'!=_0x38311d['newValue'])return{'type':'format','content':''+o(_0x3b60f0,'*Set\x20format:*\x20%0',o(_0x3b60f0,this['_getTranslationKeyForListStyle'](_0x38311d['newValue'])))};let _0xd9ab7e=_0x57f1ab['head'];for(;_0xd9ab7e;){if(_0xd9ab7e['data']&&'listType'==_0xd9ab7e['data']['key']&&_0xd9ab7e['data']['newValue']&&_0xd9ab7e['data']['oldValue'])return _0x1be59e;_0xd9ab7e=_0xd9ab7e['next'];}return{'type':'format','content':o(_0x3b60f0,'*Set\x20format:*\x20%0',o(_0x3b60f0,'ELEMENT_'+_0x57f1ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x400f2e=this['editor'],_0x21c4d7=_0x400f2e['locale'];_0x400f2e['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x19d24e=>{if('formatBlock'!=_0x19d24e['type'])return;const {data:_0x4fba01}=_0x19d24e;if(!_0x4fba01)return;let _0x6b520a,_0x19d46d;switch(_0x4fba01['commandName']){case'listStyle':_0x6b520a='*Change\x20to:*\x20%0',_0x19d46d={'type':'format','content':o(_0x21c4d7,_0x6b520a,o(_0x21c4d7,this['_getTranslationKeyForListStyle'](_0x4fba01['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6b520a=_0x4fba01['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x19d46d={'type':'format','content':o(_0x21c4d7,_0x6b520a)};break;case'listStart':_0x6b520a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x19d46d={'type':'format','content':o(_0x21c4d7,_0x6b520a,_0x4fba01['commandParams'][0x0]['startIndex'])};}return _0x19d46d;});}['_getTranslationKeyForListStyle'](_0xd55b49){return'ELEMENT_'+function(_0x2327fa){if(pe['includes'](_0x2327fa))return'bulleted';if(ye['includes'](_0x2327fa))return'numbered';return null;}(_0xd55b49)['toUpperCase']()+'_LIST_'+_0xd55b49['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4a6276{static get['requires'](){return[_0x1400cd];}['init'](){const _0x60aa11=this['editor'],_0x1867ba=_0x60aa11['plugins']['get']('TrackChangesEditing'),_0x3580e2=_0x60aa11['commands']['get']('enter');_0x1867ba['enableCommand']('enter',()=>{_0x60aa11['model']['change'](_0x1fd480=>{const _0x218d03=_0x60aa11['model']['document']['selection'],_0x29b28b=_0x218d03['getFirstPosition'](),_0x333a10=_0x2e827c['fromRange'](_0x218d03['getFirstRange']());if(_0x3580e2['enterBlock'](_0x1fd480)){const _0x3c8b53=_0x60aa11['model']['createPositionAt'](_0x29b28b['parent']['nextSibling'],0x0),_0x1641e0=_0x1fd480['createRange'](_0x29b28b,_0x3c8b53);_0x1867ba['markInsertion'](_0x1641e0);}else _0x1fd480['setSelection'](_0x1fd480['createRange'](_0x333a10['end']));_0x333a10['detach'](),_0x3580e2['fire']('afterExecute',{'writer':_0x1fd480});});}),_0x60aa11['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x60aa11,'split'),{'priority':'high'}),_0x60aa11['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x474545,_0x245ace,_0x116d0e)=>{const _0x28e7e0=_0x116d0e['mapper']['markerNameToElements'](_0x245ace['markerName']);if(_0x28e7e0){for(const _0x5ef01a of _0x28e7e0)_0x5ef01a['hasClass']('ck-suggestion-marker-split')&&(_0x116d0e['mapper']['unbindElementFromMarkerName'](_0x5ef01a,_0x245ace['markerName']),_0x116d0e['writer']['remove'](_0x5ef01a));}},{'priority':'high'}),_0x60aa11['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xacf200,_0x571fad,_0x4ebcd6)=>{_0x4ebcd6['options']['showSuggestionHighlights']&&_e(_0x60aa11,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xacf200,_0x571fad,_0x4ebcd6);},{'priority':'high'});}}class J extends _0x4a6276{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1911be=this['editor']['plugins']['get']('TrackChangesEditing');_0x1911be['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1911be['enableCommand']('findNext'),_0x1911be['enableCommand']('findPrevious'),_0x1911be['enableCommand']('replace'),_0x1911be['enableCommand']('replaceAll');}['handleFindCommand'](_0x4be798,_0x2be00b,_0x2e73d2={}){const _0x4ca55a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4be798(_0x6d6fc6=>('string'==typeof _0x2be00b?_0x4ca55a['findByTextCallback'](_0x2be00b,_0x2e73d2):_0x2be00b)(_0x6d6fc6)['filter'](_0x515988=>!0x1===this['_isInDeletionRange'](_0x515988,_0x6d6fc6['item'])),_0x2e73d2);}['_isInDeletionRange'](_0x35a51e,_0x44b811){const _0x1758f2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44b811,_0x35a51e['start']),this['editor']['model']['createPositionAt'](_0x44b811,_0x35a51e['end']));for(const _0x4bbaa3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1758f2['getIntersection'](_0x4bbaa3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4a6276{['afterInit'](){const _0x553333=this['editor']['locale'],_0x3c83dc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x144742,commandName:_0x392756}of ro)this['editor']['plugins']['has'](_0x144742)&&_0x3c83dc['_enableDefaultAttributesIntegration'](_0x392756,[_0x392756]);_0x553333['t'],_0x3c83dc['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x553333,'FORMAT_FONT_SIZE')),_0x3c83dc['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x553333,'FORMAT_FONT_FAMILY')),_0x3c83dc['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x553333,'FORMAT_FONT_COLOR')),_0x3c83dc['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x553333,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40e04c=this['editor'],_0x4bec1e=_0x40e04c['locale'];_0x40e04c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x265910=>{const _0x21dc2c=_0x4bec1e['t'];if('formatInline'!=_0x265910['type'])return;const {data:_0x36909c}=_0x265910;if(null!=_0x36909c){if('fontSize'==_0x36909c['commandName']){const _0x4a27a9=_0x36909c['commandParams'][0x0]['value'];if(_0x4a27a9){const _0x334db=_0x21dc2c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x36650b=>_0x36650b['model']==_0x4a27a9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4bec1e,'*Set\x20font\x20size:*\x20%0',_0x334db)};}return{'type':'format','content':o(_0x4bec1e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x36909c['commandName']){const _0x31687d=_0x36909c['commandParams'][0x0]['value'];return _0x31687d?{'type':'format','content':o(_0x4bec1e,'*Set\x20font\x20family:*\x20%0',_0x31687d)}:{'type':'format','content':o(_0x4bec1e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x36909c['commandName']){const _0x580071=_0x36909c['commandParams'][0x0]['value'];if(_0x580071){const _0x552f12=_0x3d92ee(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2043f1=>_0x2043f1['model']==_0x580071);let _0xb2184d=_0x580071,_0x3ab15b='';return _0x552f12&&(_0xb2184d=_0x552f12['label'],_0x3ab15b=_0x21dc2c(_0xb2184d)['toLowerCase']()),{'type':'format','content':o(_0x4bec1e,'*Set\x20font\x20color:*\x20%0',_0x3ab15b)['trim'](),'color':{'value':_0x580071,'title':_0x3ab15b||_0xb2184d}};}return{'type':'format','content':o(_0x4bec1e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x36909c['commandName']){const _0x57873a=_0x36909c['commandParams'][0x0]['value'];if(_0x57873a){const _0x3f039f=_0x3d92ee(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2107ce=>_0x2107ce['model']==_0x57873a);let _0x347cef=_0x57873a,_0xba00c7='';return _0x3f039f&&(_0x347cef=_0x3f039f['label'],_0xba00c7=_0x21dc2c(_0x347cef)['toLowerCase']()),{'type':'format','content':o(_0x4bec1e,'*Set\x20font\x20background\x20color:*\x20%0',_0xba00c7)['trim'](),'color':{'value':_0x57873a,'title':_0xba00c7||_0x347cef}};}return{'type':'format','content':o(_0x4bec1e,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4a6276{['afterInit'](){const _0x405670=this['editor'],_0x471af2=_0x405670['plugins']['get']('TrackChangesEditing'),_0xa6baf4=_0x405670['commands']['get']('copyFormat'),_0x1d05fa=_0x405670['commands']['get']('pasteFormat');_0xa6baf4&&_0x1d05fa&&(_0x471af2['_enableDefaultAttributesIntegration']('pasteFormat'),_0x471af2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4ee018=this['editor'],_0x512ea5=_0x4ee018['locale'];_0x4ee018['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1ad0a5=>{if('formatBlock'!=_0x1ad0a5['type']&&'formatInline'!=_0x1ad0a5['type'])return;const {data:_0x43a3f3}=_0x1ad0a5;if(_0x43a3f3&&'pasteFormat'===_0x43a3f3['commandName']){const _0x5516ec=[],_0x51470a=_0x43a3f3['commandParams'][0x0];for(const [_0x3cf7a0,_0x710d10]of Object['entries'](_0x51470a))_0x5516ec['push'](so(_0x4ee018,_0x3cf7a0,_0x710d10));return _0x5516ec['length']?{'type':'format','content':o(_0x512ea5,'*Set\x20format\x20to:*\x20%0',_0x5516ec['join'](',\x20'))}:{'type':'format','content':o(_0x512ea5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x28d14d,_0x4881fb,_0x18783d){const _0x25508c=_0x28d14d['locale']['t'],_0x28aac2=_0x4881fb['split'](/(?=[A-Z])/)['join']('\x20'),_0x4d8c3d=_0x25508c(_0x28aac2['charAt'](0x0)['toUpperCase']()+_0x28aac2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x18783d)return _0x4d8c3d;if('fontColor'===_0x4881fb||'fontBackgroundColor'===_0x4881fb){const _0x35e13d=_0x3d92ee(_0x28d14d['config']['get']('fontColor.colors'))['find'](_0x2dbf25=>_0x2dbf25['model']==_0x18783d);return _0x4d8c3d+'\x20('+(_0x35e13d?_0x25508c(_0x35e13d['label'])['toLowerCase']():_0x18783d)+')';}if('fontSize'===_0x4881fb&&isNaN(parseFloat(_0x18783d))){const _0xd9f89a=_0x28d14d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x28d14d['config']['get']('fontSize.options'))['find'](_0x24fa0b=>_0x24fa0b['model']==_0x18783d);return _0x4d8c3d+'\x20('+(_0xd9f89a?_0x25508c(_0xd9f89a['title'])['toLowerCase']():_0x18783d)+')';}return _0x4d8c3d+'\x20('+_0x18783d+')';}class Y extends _0x4a6276{['afterInit'](){const _0xeb9ff1=this['editor'];if(!_0xeb9ff1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xeb9ff1['config']['get']('heading.options');const _0x3c80b2=_0xeb9ff1['locale'],_0x5bee3a=_0xeb9ff1['plugins']['get']('TrackChangesEditing');_0x5bee3a['_enableDefaultAttributesIntegration']('heading');for(const _0x197431 of this['_headingOptions'])'paragraph'!=_0x197431['model']&&_0x5bee3a['_descriptionFactory']['registerElementLabel'](_0x197431['model'],_0x7751cd=>{const _0x834993=this['_getHeadingLevel'](_0x197431['model']);return null!==_0x834993?_0x1176bf(_0x7751cd,_0x834993):_0x3eb0ec(_0x7751cd,_0x197431['title']);});function _0x1176bf(_0x4d4402,_0xd154c2){return o(_0x3c80b2,'ELEMENT_HEADING',[_0x4d4402,_0xd154c2]);}function _0x3eb0ec(_0x5b13c5,_0x58f9c2){return o(_0x3c80b2,'ELEMENT_HEADING_CUSTOM',[_0x5b13c5,_0x58f9c2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e5ea=this['editor'],_0x347f1d=_0x41e5ea['locale'];function _0x4dccb1(_0xdb9e0c,_0xe81f24){return o(_0x347f1d,'ELEMENT_HEADING_CUSTOM',[_0xdb9e0c,_0xe81f24]);}_0x41e5ea['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x447cb4=>{if('formatBlock'!=_0x447cb4['type'])return;const {data:_0x50ce7a}=_0x447cb4;if(_0x50ce7a&&'heading'==_0x50ce7a['commandName']){const _0x2c24b1=_0x50ce7a['commandParams'][0x0]['value'],_0x3bf84d=this['_getHeadingLevel'](_0x2c24b1);if(null!==_0x3bf84d)return{'type':'format','content':o(_0x347f1d,'*Change\x20to:*\x20%0',(_0x3ca9a5=0x1,_0x909c1d=_0x3bf84d,o(_0x347f1d,'ELEMENT_HEADING',[_0x3ca9a5,_0x909c1d])))};const _0x539d7d=this['_headingOptions']['find'](_0x26191e=>_0x26191e['model']===_0x2c24b1)['title'];return{'type':'format','content':o(_0x347f1d,'*Change\x20to:*\x20%0',_0x4dccb1(0x1,_0x539d7d))};}var _0x3ca9a5,_0x909c1d;});}['_getHeadingLevel'](_0x3f9ce9){var _0x4bd896,_0x43a6ac;const _0x176915=_0x3f9ce9['match'](/^heading(\d+)/);if(_0x176915)return _0x176915[0x1];const _0x15e838=null===(_0x4bd896=this['_headingOptions'])||void 0x0===_0x4bd896?void 0x0:_0x4bd896['find'](_0x1a8ca0=>_0x1a8ca0['model']==_0x3f9ce9);if(_0x15e838&&_0x15e838['view']){const _0x6f2039=_0x15e838['view'],_0x55d860=(null!==(_0x43a6ac=_0x6f2039['name'])&&void 0x0!==_0x43a6ac?_0x43a6ac:_0x6f2039)['match'](/^h(\d+)/);if(_0x55d860)return _0x55d860[0x1];}return null;}}class Z extends _0x4a6276{['afterInit'](){const _0x3ad7c4=this['editor'];if(!_0x3ad7c4['plugins']['has']('HighlightEditing'))return;const _0x3afb87=_0x3ad7c4['plugins']['get']('TrackChangesEditing'),_0x3cf56a=_0x3ad7c4['locale'];_0x3afb87['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x3afb87['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3cf56a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x981a57=this['editor'],_0x2d9052=_0x981a57['locale'];_0x981a57['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5158c3=>{if('formatInline'!=_0x5158c3['type'])return;const {data:_0x40d1f0}=_0x5158c3;if(_0x40d1f0&&'highlight'==_0x40d1f0['commandName']){const _0x569a46=_0x2d9052['t'],_0xa15b07=_0x40d1f0['commandParams'][0x0]['value'];if(_0xa15b07){const _0x3ac219=_0x981a57['config']['get']('highlight.options')['find'](_0x435041=>_0x435041['model']==_0xa15b07),_0x44a9b9=_0x569a46(_0x3ac219['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d9052,'*Set\x20highlight:*\x20%0',_0x44a9b9),'color':{'value':_0x3ac219['color'],'title':_0x3ac219['title']}};}return{'type':'format','content':o(_0x2d9052,'*Remove\x20highlight*',o(_0x2d9052,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4a6276{['afterInit'](){const _0x58ed57=this['editor'];if(!_0x58ed57['plugins']['has']('HorizontalLineEditing'))return;_0x58ed57['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2cdc58=_0x58ed57['plugins']['get']('TrackChangesEditing'),_0x503e9b=_0x58ed57['locale'];_0x2cdc58['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x678801=>o(_0x503e9b,'ELEMENT_HORIZONTAL_LINE',_0x678801)),_0x58ed57['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x371c5e,{writer:_0x22e453,options:_0x12723c})=>{if(!_0x12723c['showSuggestionHighlights'])return null;const _0x11f2b8=_0x22e453['createContainerElement']('div'),_0x9634=_0x22e453['createEmptyElement']('hr');return _0x22e453['addClass']('ck-horizontal-line',_0x11f2b8),_0x22e453['insert'](_0x22e453['createPositionAt'](_0x11f2b8,0x0),_0x9634),_0x11f2b8;},'converterPriority':'high'});}}class et extends _0x4a6276{['afterInit'](){const _0x388a4d=this['editor'];if(!_0x388a4d['plugins']['has']('HtmlEmbed'))return;const _0x1248ae=_0x388a4d['plugins']['get']('TrackChangesEditing'),_0x209b8e=_0x388a4d['locale'];_0x1248ae['_descriptionFactory']['registerElementLabel']('rawHtml',_0x29aba4=>o(_0x209b8e,'ELEMENT_HTML_EMBED',_0x29aba4)),_0x1248ae['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0x1248ae['_descriptionFactory']['registerDescriptionCallback'](_0x405d47=>{if('attribute'!=_0x405d47['type'])return;const {data:_0x38a74f}=_0x405d47;if(_0x38a74f&&'value'==_0x38a74f['key']&&_0x405d47['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xe18297=o(_0x209b8e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x209b8e,'*Change\x20%0\x20content*',_0xe18297)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10de05=this['editor'],_0x2f71bd=_0x10de05['locale'];_0x10de05['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5bc5a9=>{if('formatBlock'!=_0x5bc5a9['type'])return;const {data:_0x4427f8}=_0x5bc5a9;if(_0x4427f8&&'htmlEmbed'==_0x4427f8['commandName']){const _0x455606=o(_0x2f71bd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f71bd,'*Change\x20%0\x20content*',_0x455606)};}});}}class it extends _0x4a6276{['afterInit'](){const _0x52eaca=this['editor'];if(!_0x52eaca['plugins']['has']('ImageEditing'))return;const _0xacd97b=_0x52eaca['plugins']['get']('TrackChangesEditing'),_0x239bd0=_0x52eaca['plugins']['get']('ImageUtils'),_0x4482e9=_0x52eaca['locale'];_0xacd97b['enableCommand']('insertImage'),_0xacd97b['_descriptionFactory']['registerElementLabel']('imageBlock',_0x2ac12f=>o(_0x4482e9,'ELEMENT_IMAGE',_0x2ac12f)),_0xacd97b['_descriptionFactory']['registerElementLabel']('imageInline',_0x4df1ac=>o(_0x4482e9,'ELEMENT_INLINE_IMAGE',_0x4df1ac)),_0xacd97b['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4482e9,'ELEMENT_CAPTION')),_0x52eaca['plugins']['has']('ImageUploadEditing')&&_0xacd97b['enableCommand']('uploadImage'),_0x52eaca['plugins']['has']('ImageBlockEditing')&&_0x52eaca['plugins']['has']('ImageInlineEditing')&&(_0xacd97b['enableCommand']('imageTypeInline',(_0xdf5324,_0xd2d015)=>{const _0x1ef2d5=_0x239bd0['getClosestSelectedImageElement'](_0x52eaca['model']['document']['selection']);_0x52eaca['model']['change'](()=>{_0xacd97b['markBlockFormat'](_0x1ef2d5,{'commandName':'imageTypeInline','commandParams':[_0xd2d015]},[],'convertBlockImageToInline');});}),_0xacd97b['enableCommand']('imageTypeBlock',(_0xde9a9,_0x2ec013)=>{_0x52eaca['model']['change'](_0x174b0c=>{let _0x59ccf5=_0x239bd0['getClosestSelectedImageElement'](_0x52eaca['model']['document']['selection']),_0x4fd269=_0x174b0c['createRangeOn'](_0x59ccf5);const _0x5233b4=_0x46c991['fromPosition'](_0x4fd269['start'],'toPrevious'),_0x211e31=_0x46c991['fromPosition'](_0x4fd269['end'],'toNext');_0xacd97b['forceDefaultExecution'](()=>_0xde9a9(_0x2ec013)),_0x59ccf5=_0x239bd0['getClosestSelectedImageElement'](_0x52eaca['model']['document']['selection']),_0x4fd269=_0x174b0c['createRangeOn'](_0x59ccf5);const _0x529c54=_0x174b0c['createRange'](_0x5233b4,_0x211e31);_0x5233b4['detach'](),_0x211e31['detach'](),_0xacd97b['markBlockFormat'](_0x59ccf5,{'commandName':'imageTypeInline','commandParams':[_0x2ec013]},[],'convertInlineImageToBlock'),_0x529c54['start']['isBefore'](_0x4fd269['start'])&&_0xacd97b['markInsertion'](_0x174b0c['createRange'](_0x529c54['start'],_0x4fd269['start']),'convertInlineImageToBlock'),_0x4fd269['end']['isBefore'](_0x529c54['end'])&&_0xacd97b['markInsertion'](_0x174b0c['createRange'](_0x4fd269['end'],_0x529c54['end']),'convertInlineImageToBlock');});}),_0xacd97b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xacd97b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xacd97b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xacd97b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xacd97b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xacd97b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3511ac])=>{const _0x8855a0=_0xacd97b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a0624=_0x3511ac['start'],_0x3b2037=_0x3511ac['end'];const _0x447c0a=_0x52eaca['model']['schema']['getNearestSelectionRange'](_0x1a0624,'backward'),_0x1985e0=_0x52eaca['model']['schema']['getNearestSelectionRange'](_0x3b2037,'forward');_0x447c0a['isCollapsed']&&(_0x1a0624=_0x447c0a['start']),_0x1985e0['isCollapsed']&&(_0x3b2037=_0x1985e0['end']),_0x8855a0([_0x52eaca['model']['createRange'](_0x1a0624,_0x3b2037)]);}),_0xacd97b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dbf41),_0xacd97b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dbf41)),_0x52eaca['plugins']['has']('ImageCaptionEditing')&&(_0xacd97b['enableCommand']('toggleImageCaption',(_0x1f60c9,_0x2c702b)=>{const _0x212cb2=_0x52eaca['plugins']['get']('ImageCaptionUtils');let _0x481df0=_0x239bd0['getClosestSelectedImageElement'](_0x52eaca['model']['document']['selection']),_0x44e6be=_0x212cb2['getCaptionFromImageModelElement'](_0x481df0);_0x52eaca['model']['change'](()=>{if(_0x44e6be)return void _0xacd97b['markDeletion'](_0x52eaca['model']['createRangeOn'](_0x44e6be));const _0x1ccb82=_0x239bd0['isBlockImage'](_0x481df0);_0x1f60c9(_0x2c702b),_0x481df0=_0x239bd0['getClosestSelectedImageElement'](_0x52eaca['model']['document']['selection']),_0x44e6be=_0x212cb2['getCaptionFromImageModelElement'](_0x481df0),_0xacd97b['markInsertion'](_0x52eaca['model']['createRangeOn'](_0x44e6be),_0x1ccb82?null:'imageCaption');});}),_0xacd97b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dbf41));const _0x1679f1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x483d94(_0x50a53c,_0x2440f1){const _0x11ce14=_0x1679f1['findIndex'](({type:_0x3e3610,subType:_0x464a09})=>_0x50a53c['type']==_0x3e3610&&_0x50a53c['subType']==_0x464a09),_0x55c9d7=_0x1679f1['findIndex'](({type:_0x19437d,subType:_0x17763e})=>_0x2440f1['type']==_0x19437d&&_0x2440f1['subType']==_0x17763e);if(_0x11ce14<0x0||_0x55c9d7<0x0)return!0x1;const _0x3234a1=_0x50a53c['getFirstRange'](),_0x2702a7=_0x2440f1['getFirstRange']();if((0x0==_0x11ce14||0x1==_0x11ce14)&&0x2==_0x55c9d7&&_0x3234a1['isIntersecting'](_0x2702a7))return!0x0;if(0x2==_0x11ce14&&0x3==_0x55c9d7){const _0x6143a3=_0xacd97b['_findSuggestions'](_0x3234a1,'insertion')['filter'](({suggestion:_0x51e347,meta:_0x42b12a})=>_0x42b12a['isOwn']&&'convertInlineImageToBlock'==_0x51e347['subType']);if(_0x6143a3['length']>0x1&&_0x2702a7['end']['isEqual'](_0x3234a1['start']))return!0x0;if(0x1==_0x6143a3['length']&&(_0x3234a1['start']['isEqual'](_0x2702a7['end'])||_0x3234a1['end']['isEqual'](_0x2702a7['start'])))return!0x0;}if(0x3==_0x11ce14&&0x3==_0x55c9d7&&_0x3234a1['start']['isBefore'](_0x2702a7['start'])){const _0x54ba0f=_0x3234a1['end']['nodeAfter'],_0x49e1e5=_0x2702a7['start']['nodeBefore'];return _0x239bd0['isBlockImage'](_0x54ba0f)&&_0x54ba0f===_0x49e1e5;}return!0x1;}function _0x3dbf41(_0x2cbc48,_0x474b05){return _0x483d94(_0x2cbc48,_0x474b05)?[_0x2cbc48,_0x474b05]:_0x483d94(_0x474b05,_0x2cbc48)?[_0x474b05,_0x2cbc48]:null;}_0x52eaca['plugins']['has']('ImageResize')&&(_0xacd97b['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0xacd97b['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4482e9,'FORMAT_IMAGE_SIZE'))),_0x52eaca['plugins']['has']('ImageTextAlternativeEditing')&&_0xacd97b['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0xacd97b['_descriptionFactory']['registerDescriptionCallback'](_0x3d309d=>{if(!!_0x1679f1['find'](({type:_0x1d6615,subType:_0x45c1b0})=>_0x3d309d['type']==_0x1d6615&&_0x3d309d['subType']==_0x45c1b0))return _0x3d309d['previous']?{}:void 0x0;}),_0xacd97b['_descriptionFactory']['registerDescriptionCallback'](_0x2246a9=>{if('insertion'==_0x2246a9['type']||'deletion'==_0x2246a9['type']){const _0x5cab5d=_0x2246a9['getContainedElement']();if(_0x5cab5d&&_0x5cab5d['is']('element','caption'))return{'type':'insertion'==_0x2246a9['type']?'addObject':'removeObject','element':_0x5cab5d,'quantity':0x1};}}),_0xacd97b['_descriptionFactory']['registerDescriptionCallback'](_0xaf3398=>'formatBlock'==_0xaf3398['type']&&'convertInlineImageToBlock'==_0xaf3398['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xaf3398['type']&&'convertBlockImageToInline'==_0xaf3398['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xacd97b['_descriptionFactory']['registerDescriptionCallback'](_0x3f35f6=>{if('attribute'!=_0x3f35f6['type'])return;const {data:_0xb34cac}=_0x3f35f6;if(!_0xb34cac||'alt'!=_0xb34cac['key'])return;const _0x191f67=_0xb34cac['newValue'];return _0x191f67?{'type':'format','content':o(_0x4482e9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x191f67+'\x22')}:{'type':'format','content':o(_0x4482e9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5991ba=this['editor'],_0x255634=_0x5991ba['locale'];_0x5991ba['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x490496=>{if('formatBlock'!=_0x490496['type']&&'formatInline'!=_0x490496['type'])return;const {data:_0x2dfa32}=_0x490496;if(_0x2dfa32){if('imageTextAlternative'==_0x2dfa32['commandName']){const _0x2e0624=_0x2dfa32['commandParams'][0x0]['newValue'];return _0x2e0624?{'type':'format','content':o(_0x255634,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e0624+'\x22')}:{'type':'format','content':o(_0x255634,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2dfa32['commandName']){const _0x25ebe8=_0x2dfa32['commandParams'][0x0]['width'];return _0x25ebe8?{'type':'format','content':o(_0x255634,'*Set\x20image\x20width:*\x20%0',_0x25ebe8)}:{'type':'format','content':o(_0x255634,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4a6276{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bef99=this['editor']['locale'],_0x603b5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x603b5c['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x603b5c['_descriptionFactory']['registerDescriptionCallback'](_0x50531a=>{if('attribute'!=_0x50531a['type'])return;const {data:_0x27f7d4}=_0x50531a;return _0x27f7d4&&'src'==_0x27f7d4['key']?_0x27f7d4['newValue']&&_0x27f7d4['oldValue']?{'type':'format','content':o(_0x2bef99,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3a38ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a38ad['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3a38ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a38ad['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3a38ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x194ab2=this['editor'],_0x28156e=_0x194ab2['locale'];_0x194ab2['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2c22d1=>{if('formatBlock'!=_0x2c22d1['type']&&'formatInline'!=_0x2c22d1['type'])return;const {data:_0xfd639}=_0x2c22d1;if(!_0xfd639||'replaceImageSource'!=_0xfd639['commandName'])return;return{'type':'format','content':o(_0x28156e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4a6276{['afterInit'](){const _0x34b5a3=this['editor'];if(!_0x34b5a3['plugins']['has']('ImageStyleEditing'))return;const _0x2eb7cd=_0x34b5a3['plugins']['get']('TrackChangesEditing'),_0x4d6be5=_0x34b5a3['plugins']['get']('ImageUtils'),_0x3cbf61={};_0x2eb7cd['enableCommand']('imageStyle',(_0x5b60fe,_0x507785)=>{const _0x11d38c=_0x34b5a3['plugins']['get']('Users')['me'],_0x579a5f=_0x34b5a3['commands']['get']('imageStyle');let _0xb041f5=_0x4d6be5['getClosestSelectedImageElement'](_0x34b5a3['model']['document']['selection']),_0x9247ce=_0x34b5a3['model']['createRangeOn'](_0xb041f5),_0x23bef2=_0x579a5f['value'];if(_0x23bef2==_0x507785['value'])return;const _0x492e29={'commandName':'imageStyle','commandParams':[_0x507785],'formatGroupId':_0x56098b()};_0x34b5a3['model']['change'](()=>{if(_0x2eb7cd['getSuggestions']()['filter'](_0x24d2ff=>_0x24d2ff['isInContent']&&_0x11d38c==_0x24d2ff['author']&&('formatBlock'==_0x24d2ff['type']||'formatInline'==_0x24d2ff['type'])&&('imageStylePreApply'==_0x24d2ff['subType']||'imageStylePostApply'==_0x24d2ff['subType'])&&_0x24d2ff['getFirstRange']()['isEqual'](_0x9247ce))['forEach'](_0x36e923=>_0x2eb7cd['discardSuggestion'](_0x36e923['head'])),_0xb041f5=_0x4d6be5['getClosestSelectedImageElement'](_0x34b5a3['model']['document']['selection']),_0x9247ce=_0x34b5a3['model']['createRangeOn'](_0xb041f5),_0x579a5f['refresh'](),_0x34b5a3['commands']['get']('imageTypeInline')['refresh'](),_0x34b5a3['commands']['get']('imageTypeBlock')['refresh'](),_0x23bef2=_0x579a5f['value'],_0x23bef2!=_0x507785['value'])return _0x4d6be5['isInlineImage'](_0xb041f5)&&_0x579a5f['shouldConvertImageType'](_0x507785['value'],_0xb041f5)?(_0x5b60fe({..._0x507785,'setImageSizes':!0x1}),_0xb041f5=_0x4d6be5['getClosestSelectedImageElement'](_0x34b5a3['model']['document']['selection']),void _0x2eb7cd['markBlockFormat'](_0xb041f5,{..._0x492e29,'commandReversedParams':[{'value':_0x23bef2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4d6be5['isBlockImage'](_0xb041f5)?_0x2eb7cd['markBlockFormat'](_0xb041f5,_0x492e29,[],'imageStylePostApply'):_0x2eb7cd['markInlineFormat'](_0x9247ce,_0x492e29,'imageStylePostApply'));});});for(const _0x3ed082 of _0x34b5a3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3cbf61[_0x3ed082['name']]=_0x3ed082['title']['toLowerCase']();_0x2eb7cd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2eb7cd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2eb7cd['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2eb7cd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4dfbe6])=>{_0x4d6be5['setImageNaturalSizeAttributes'](_0x4dfbe6['getContainedElement']());}),_0x2eb7cd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5b0e29,_0x230859)=>{_0x2eb7cd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5b0e29,{'commandName':_0x230859['commandName'],'commandParams':_0x230859['commandReversedParams']});}),_0x2eb7cd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x46d85c,_0x5aa71d){if(_0x4e7f08(_0x46d85c,_0x5aa71d))return[_0x46d85c,_0x5aa71d];if(_0x4e7f08(_0x5aa71d,_0x46d85c))return[_0x5aa71d,_0x46d85c];return null;});const _0x10fd37=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e7f08(_0x2c7a10,_0x5de971){const _0xde7671=_0x10fd37['findIndex'](({type:_0x30c1c7,subType:_0x5ce4c5})=>_0x2c7a10['type']==_0x30c1c7&&_0x2c7a10['subType']==_0x5ce4c5),_0x1a5da4=_0x10fd37['findIndex'](({type:_0x3b2f91,subType:_0x49c5b9})=>_0x5de971['type']==_0x3b2f91&&_0x5de971['subType']==_0x49c5b9);if(_0xde7671<0x0||_0x1a5da4<0x0)return!0x1;const _0x5062e3=_0x2c7a10['getFirstRange'](),_0x97f43c=_0x5de971['getFirstRange']();if((0x0==_0xde7671||0x1==_0xde7671)&&0x2==_0x1a5da4&&_0x5062e3['isIntersecting'](_0x97f43c))return!0x0;if(0x2==_0xde7671&&0x3==_0x1a5da4){const _0x3d0904=_0x2eb7cd['_findSuggestions'](_0x5062e3,'insertion')['filter'](({suggestion:_0xf97e29,meta:_0x38b1f7})=>_0x38b1f7['isOwn']&&'convertInlineImageToBlock'==_0xf97e29['subType']);if(_0x3d0904['length']>0x1&&_0x97f43c['end']['isEqual'](_0x5062e3['start']))return!0x0;if(0x1==_0x3d0904['length']&&(_0x5062e3['start']['isEqual'](_0x97f43c['end'])||_0x5062e3['end']['isEqual'](_0x97f43c['start'])))return!0x0;}if(0x3==_0xde7671&&0x3==_0x1a5da4&&_0x5062e3['start']['isBefore'](_0x97f43c['start'])){const _0x12a61=_0x5062e3['end']['nodeAfter'],_0x8d5464=_0x97f43c['start']['nodeBefore'];return _0x4d6be5['isBlockImage'](_0x12a61)&&_0x12a61===_0x8d5464;}return!0x1;}_0x34b5a3['model']['document']['registerPostFixer'](()=>{let _0x1c7621=!0x1;const _0x222356=Array['from'](_0x34b5a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x270d2f,data:_0xe615ab}of _0x222356){const {group:_0x3cac43,type:_0x3f8f7c,subType:_0x788b01,id:_0x5be345}=_0x2eb7cd['_splitMarkerName'](_0x270d2f);if('suggestion'==_0x3cac43&&_0x2eb7cd['hasSuggestion'](_0x5be345)){if('formatBlock'==_0x3f8f7c&&('imageStylePreApply'==_0x788b01||'imageStylePostApply'==_0x788b01)){const _0x4da2ba=_0x2eb7cd['getSuggestion'](_0x5be345);if(_0xe615ab['newRange']){const _0x5ebc9e=_0x4da2ba['getFirstRange']()['getContainedElement']();if(_0x4d6be5['isBlockImage'](_0x5ebc9e))continue;_0x2eb7cd['discardSuggestion'](_0x4da2ba),_0x1c7621=!0x0;}}if('insertion'==_0x3f8f7c&&'imageCaption'==_0x788b01&&!_0xe615ab['newRange']){const _0x38a7a7=_0x2eb7cd['getSuggestion'](_0x5be345);_0x38a7a7['next']&&_0x38a7a7['next']['isInContent']&&(_0x2eb7cd['discardSuggestion'](_0x38a7a7['next']),_0x1c7621=!0x0);}}}return _0x1c7621;}),this['_registerLegacyDescription'](_0x3cbf61);}['_registerLegacyDescription'](_0x38089b){const _0x354586=this['editor'],_0x2c87b8=_0x354586['locale'];_0x354586['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1a3deb=>{if('formatBlock'!=_0x1a3deb['type']&&'formatInline'!=_0x1a3deb['type'])return;const {data:_0xad1d7e}=_0x1a3deb;if(!_0xad1d7e||'imageStyle'!=_0xad1d7e['commandName'])return;const _0x490c03=_0xad1d7e['commandParams'][0x0]['value'];return _0x480709('side'===_0x490c03?o(_0x2c87b8,'FORMAT_SIDE_IMAGE'):_0x38089b[_0x490c03]||_0x490c03);function _0x480709(_0x117349){return{'type':'format','content':o(_0x2c87b8,'*Format:*\x20%0',_0x117349)};}});}}class ot extends _0x4a6276{['afterInit'](){const _0x2bf0a0=this['editor'],_0x494673=_0x2bf0a0['commands']['get']('importWord'),_0x2232ee=_0x2bf0a0['commands']['get']('trackChanges');_0x494673&&(_0x494673['on']('execute',(_0xc07f28,[,_0x5e29ac])=>{this['_trackChangesValueDuringImport']=_0x2232ee['value'],_0x5e29ac['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x494673,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x494673,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2232ee['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bf0a0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3931a7,_0x3a0395){const {suggestions:_0x49e5f9}=_0x3a0395,_0xc5ac3e=this['editor']['commands']['get']('trackChanges'),_0x4ac5f0=_0xc5ac3e['value'];this['_trackChangesValueDuringImport']!==_0x4ac5f0&&(_0xc5ac3e['execute'](),this['_trackChangesExecuted']=!0x0),_0x49e5f9&&_0x49e5f9['forEach'](({id:_0x3ec6db,type:_0x2f4bc4,author:_0x15a37b,created_at:_0x312162})=>{const _0xcdb48c={'id':_0x3ec6db,'type':_0x2f4bc4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15a37b,'createdAt':_0x312162?new Date(_0x312162):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xcdb48c);});}constructor(_0x431c3b){super(_0x431c3b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x4a6276{['afterInit'](){const _0x5ac053=this['editor'],_0x5ea2fd=_0x5ac053['plugins']['get']('TrackChangesEditing');if(_0x5ac053['plugins']['has']('IndentEditing')&&(_0x5ea2fd['enableCommand']('indent'),_0x5ea2fd['enableCommand']('outdent')),_0x5ac053['plugins']['has']('IndentBlock')){for(const _0x3945c0 of['indentBlock','outdentBlock'])_0x5ea2fd['_enableDefaultAttributesIntegration'](_0x3945c0);}const _0x1a95eb=_0x5ac053['locale'];_0x5ea2fd['_registerBlockAttribute']('blockIndent'),_0x5ea2fd['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1a95eb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x174526=this['editor'],_0x2f03cc=_0x174526['locale'],_0x3bfcfd=_0x174526['plugins']['get']('TrackChangesEditing');_0x3bfcfd['_descriptionFactory']['registerDescriptionCallback'](_0x9db5e7=>{if('formatBlock'!=_0x9db5e7['type'])return;const {data:_0x2fe28a}=_0x9db5e7;if(!_0x2fe28a)return;if('indentBlock'!=_0x2fe28a['commandName']&&'outdentBlock'!=_0x2fe28a['commandName'])return;const _0x2308db=_0x9db5e7['getItems']()[0x0],_0x455a21=_0x3bfcfd['_descriptionFactory']['getItemLabel'](_0x2308db);return'indentBlock'==_0x2fe28a['commandName']?{'type':'format','content':o(_0x2f03cc,'*Indent:*\x20%0',_0x455a21)}:'outdentBlock'==_0x2fe28a['commandName']?{'type':'format','content':o(_0x2f03cc,'*Outdent:*\x20%0',_0x455a21)}:void 0x0;});}}class at extends _0x4a6276{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4a6276{['afterInit'](){const _0x11ad0e=this['editor'];if(!_0x11ad0e['plugins']['has']('LinkEditing'))return;const _0x5b8a85=_0x11ad0e['plugins']['get']('TrackChangesEditing'),_0x7bab0c=_0x11ad0e['commands']['get']('link');_0x5b8a85['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x7bab0c['manualDecorators']['map'](_0x365427=>_0x365427['id'])]),_0x5b8a85['_enableDefaultAttributesIntegration']('unlink');for(const _0x1300a6 of _0x7bab0c['manualDecorators'])_0x5b8a85['_descriptionFactory']['registerAttributeLabel'](_0x1300a6['id'],'link\x20('+_0x1300a6['label']['toLowerCase']()+')');_0x5b8a85['_descriptionFactory']['registerDescriptionCallback'](_0x2e0946=>{if('attribute'!=_0x2e0946['type'])return;const {data:_0x160ddb}=_0x2e0946;if(!_0x160ddb||'linkHref'!=_0x160ddb['key'])return;const _0x1dd9be=_0x160ddb['newValue'],_0x36f02d=_0x11ad0e['locale'];return{'type':'format','content':null==_0x1dd9be?o(_0x36f02d,'*Remove\x20link*'):o(_0x36f02d,'*Set\x20link:*\x20%0','\x22'+_0x1dd9be+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488b99=this['editor'],_0x2b0f15=_0x488b99['locale'];_0x488b99['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x7c4f69=>{if('formatInline'!=_0x7c4f69['type'])return;const {data:_0x32f104}=_0x7c4f69;if(_0x32f104){if('link'==_0x32f104['commandName']){const _0x56ba7a=_0x32f104['commandParams'][0x0];return{'type':'format','content':o(_0x2b0f15,'*Set\x20link:*\x20%0','\x22'+_0x56ba7a+'\x22')};}return'unlink'==_0x32f104['commandName']?{'type':'format','content':o(_0x2b0f15,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4a6276{['afterInit'](){const _0x4306e2=this['editor'],_0x52fdd2=_0x4306e2['locale'];if(!_0x4306e2['plugins']['has']('LegacyListEditing'))return;const _0x10fb29=_0x4306e2['plugins']['get']('TrackChangesEditing'),_0x11e9e8=_0x4306e2['plugins']['has']('LegacyTodoListEditing');function _0x53a0c4(_0x30d765){return()=>{const _0x5dc1cb=_0x4306e2['model']['document']['selection'],_0x1894ae=_0x4306e2['commands']['get'](_0x30d765);if(_0x1894ae['value'])return void _0x4306e2['execute']('paragraph',{});const _0x1accb6=_0x30d765['slice'](0x0,-0x4),_0xa15377=function(_0x887f75,_0x558ac8,_0x3084b4){let _0x2ec20d=Array['from'](_0x887f75)['filter'](_0x54fafd=>function(_0x247bca,_0x4665f0){return _0x4665f0['checkChild'](_0x247bca['parent'],'listItem')&&!_0x4665f0['isObject'](_0x247bca);}(_0x54fafd,_0x3084b4));_0x2ec20d=_0x2ec20d['filter'](_0x1065d7=>!_0x1065d7['is']('element','listItem')||_0x1065d7['getAttribute']('listType')!=_0x558ac8);const _0x13ce9b=new Set();for(const _0x24ae7e of _0x2ec20d)_0x24ae7e['is']('element','listItem')?_0x13ce9b['add'](me(_0x24ae7e)):_0x13ce9b['add'](_0x24ae7e);return Array['from'](_0x13ce9b);}(_0x5dc1cb['getSelectedBlocks'](),_0x1accb6,_0x4306e2['model']['schema']);_0x4306e2['model']['change'](()=>{for(const _0x4c0249 of _0xa15377)_0x10fb29['markBlockFormat'](_0x4c0249,{'commandName':_0x30d765,'commandParams':[{'forceValue':!_0x1894ae['value']}],'formatGroupId':'blockName'},fe(_0x4c0249));});};}function _0x1efe14(_0x37c0b1){return()=>{const _0xb5aaae=function(_0xf3cb9d){let _0x534234=Array['from'](_0xf3cb9d);const _0x17ba0b=_0x534234['findIndex'](_0x10e956=>'listItem'!=_0x10e956['name']);return _0x17ba0b>-0x1&&(_0x534234=_0x534234['slice'](0x0,_0x17ba0b)),_0x534234;}(_0x4306e2['model']['document']['selection']['getSelectedBlocks']()),_0x1d39dc=_0x4306e2['model']['createRange'](_0x4306e2['model']['createPositionAt'](_0xb5aaae[0x0],'before'),_0x4306e2['model']['createPositionAt'](_0xb5aaae[_0xb5aaae['length']-0x1],'end'));_0x4306e2['model']['change'](()=>{_0x10fb29['markBlockFormat'](_0x1d39dc,{'commandName':_0x37c0b1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x454211){const _0x1d2f8e=new Set();for(const _0x3c4f9a of _0x454211){let _0x3b1ac3=_0x3c4f9a['nextSibling'];for(;_0x3b1ac3&&_0x3b1ac3['getAttribute']('listIndent')>_0x3c4f9a['getAttribute']('listIndent');)_0x1d2f8e['add'](_0x3b1ac3),_0x3b1ac3=_0x3b1ac3['nextSibling'];}return Array['from'](_0x1d2f8e);}(_0xb5aaae));});};}_0x10fb29['enableCommand']('numberedList',_0x53a0c4('numberedList')),_0x10fb29['enableCommand']('bulletedList',_0x53a0c4('bulletedList')),_0x11e9e8&&_0x10fb29['enableCommand']('todoList',_0x53a0c4('todoList')),_0x10fb29['enableCommand']('indentList',_0x1efe14('indentList')),_0x10fb29['enableCommand']('outdentList',_0x1efe14('outdentList')),_0x11e9e8&&_0x10fb29['enableCommand']('checkTodoList',()=>{const _0x2f1cc5=_0x4306e2['commands']['get']('checkTodoList'),_0x402c25=Array['from'](_0x2f1cc5['_selectedElements']);_0x402c25['filter'](_0x3aa626=>_0x3aa626['getAttribute']('todoListChecked')!=_0x2f1cc5['value']),_0x4306e2['model']['change'](()=>{for(const _0x3a889d of _0x402c25)_0x10fb29['markBlockFormat'](_0x3a889d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f1cc5['value']}]});});}),_0x10fb29['_descriptionFactory']['registerElementLabel']('listItem',_0x50d2c2=>o(_0x52fdd2,'ELEMENT_LIST_ITEM',_0x50d2c2)),_0x10fb29['_descriptionFactory']['registerDescriptionCallback'](_0x2d2e0e=>{if('formatBlock'!=_0x2d2e0e['type']&&'formatInline'!=_0x2d2e0e['type'])return;const {data:_0x2d66b8}=_0x2d2e0e;if(_0x2d66b8){if('numberedList'==_0x2d66b8['commandName']||'bulletedList'==_0x2d66b8['commandName']||'todoList'==_0x2d66b8['commandName'])switch(_0x2d66b8['commandName']['replace']('List','')){case'bulleted':return _0x4f64f9(o(_0x52fdd2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f64f9(o(_0x52fdd2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f64f9(o(_0x52fdd2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2d66b8['commandName'])return{'type':'format','content':o(_0x52fdd2,'*Indent:*\x20%0',o(_0x52fdd2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2d66b8['commandName'])return{'type':'format','content':o(_0x52fdd2,'*Outdent:*\x20%0',o(_0x52fdd2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2d66b8['commandName'])return _0x2d66b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52fdd2,'*Check\x20item*')}:{'type':'format','content':o(_0x52fdd2,'*Uncheck\x20item*')};}function _0x4f64f9(_0x15e892){return{'type':'format','content':o(_0x52fdd2,'*Change\x20to:*\x20%0',_0x15e892)};}});}}function me(_0x4edb86){const _0x516cee=_0x4edb86['getAttribute']('listIndent');if(0x0==_0x516cee)return _0x4edb86;let _0x208edf=_0x4edb86;for(;_0x4edb86['previousSibling']&&_0x4edb86['previousSibling']['is']('element','listItem');){const _0x894930=_0x4edb86['previousSibling']['getAttribute']('listIndent');if(_0x894930==_0x516cee)_0x208edf=_0x4edb86['previousSibling'];else{if(_0x894930<_0x516cee)break;}_0x4edb86=_0x4edb86['previousSibling'];}return _0x208edf;}function fe(_0x5b49e6){const _0x4cfadd=[];if(_0x5b49e6['is']('element','listItem')&&_0x5b49e6['getAttribute']('listIndent')>0x0){let _0x5648b3=_0x5b49e6['nextSibling'];for(;_0x5648b3&&'listItem'==_0x5648b3['name']&&_0x5648b3['getAttribute']('listIndent')==_0x5b49e6['getAttribute']('listIndent');)_0x4cfadd['push'](_0x5648b3),_0x5648b3=_0x5648b3['nextSibling'];}return _0x4cfadd;}class K extends _0x4a6276{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36a4b2=this['editor']['config']['get']('list.properties'),_0x1c23dc=this['editor']['plugins']['get']('TrackChangesEditing');_0x36a4b2['styles']&&_0x1c23dc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36a4b2['reversed']&&_0x1c23dc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36a4b2['startIndex']&&_0x1c23dc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c23dc['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5a12c4,_0x2593e4={}){const _0x1af380=this['editor']['plugins']['get']('TrackChangesEditing'),_0x854431=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1af380['markMultiRangeBlockFormat'](_0x854431,{'commandName':'listStyle','commandParams':[{'type':_0x2593e4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd3a353,_0x5c7b7a={}){const _0x21506b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36a782=this['_getSuggestionBlocks'](_0x5790e1=>_0x5790e1['is']('element','listItem')&&'numbered'===_0x5790e1['getAttribute']('listType'));if(_0x36a782['length']<0x1)return;const _0x209c5a=_0x36a782['map'](_0x2e161e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e161e,'before'),this['editor']['model']['createPositionAt'](_0x2e161e,0x0)));this['editor']['model']['change'](()=>{_0x21506b['markMultiRangeBlockFormat'](_0x209c5a,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c7b7a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x195340,_0x415d2c={}){const _0xb6ed62=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf5507=this['_getSuggestionBlocks'](_0x2ad4a1=>_0x2ad4a1['is']('element','listItem')&&'numbered'===_0x2ad4a1['getAttribute']('listType'));if(_0xf5507['length']<0x1)return;const _0x267a59=_0xf5507['map'](_0x2fe20f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fe20f,'before'),this['editor']['model']['createPositionAt'](_0x2fe20f,0x0)));this['editor']['model']['change'](()=>{_0xb6ed62['markMultiRangeBlockFormat'](_0x267a59,{'commandName':'listStart','commandParams':[{'startIndex':_0x415d2c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2ac342){if('formatBlock'!=_0x2ac342['type']&&'formatInline'!=_0x2ac342['type'])return;const _0xc635b5=this['editor']['locale'],{data:_0x187b2c}=_0x2ac342;if(!_0x187b2c)return;let _0x4859db,_0x3ab690;switch(_0x187b2c['commandName']){case'listStyle':_0x4859db='*Change\x20to:*\x20%0',_0x3ab690={'type':'format','content':o(_0xc635b5,_0x4859db,o(_0xc635b5,this['_getTranslationKeyForListStyle'](_0x187b2c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4859db=_0x187b2c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ab690={'type':'format','content':o(_0xc635b5,_0x4859db)};break;case'listStart':_0x4859db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ab690={'type':'format','content':o(_0xc635b5,_0x4859db,_0x187b2c['commandParams'][0x0]['startIndex'])};}return _0x3ab690;}['_getSuggestionBlocksForListStyle'](){var _0x143706,_0x3e5b30,_0xaaaf2c,_0x5c7974;const _0x21654d=this['editor']['plugins']['get']('LegacyListUtils');let _0x269a91=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x143706=_0x269a91[0x0])||void 0x0===_0x143706?void 0x0:_0x143706['is']('element','listItem'))&&_0x269a91['unshift'](..._0x21654d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x3e5b30=_0x269a91[_0x269a91['length']-0x1])||void 0x0===_0x3e5b30?void 0x0:_0x3e5b30['is']('element','listItem'))&&_0x269a91['push'](..._0x21654d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x269a91=[...new Set(_0x269a91)],(null===(_0x5c7974=null===(_0xaaaf2c=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0xaaaf2c?void 0x0:_0xaaaf2c['parent'])||void 0x0===_0x5c7974?void 0x0:_0x5c7974['is']('element','listItem'))&&(_0x269a91=_0x269a91['filter'](_0xe80195=>_0xe80195['is']('element','listItem'))),_0x269a91;}['_getSuggestionBlocks'](_0x7bd34d){const _0x4b8bcf=this['editor']['plugins']['get']('LegacyListUtils');let _0x595387=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7bd34d)['map'](_0x2f032e=>{const _0x470106=this['editor']['model']['createPositionAt'](_0x2f032e,0x0);return[..._0x4b8bcf['getSiblingNodes'](_0x470106,'backward'),..._0x4b8bcf['getSiblingNodes'](_0x470106,'forward')];})['flat']();return _0x595387=[...new Set(_0x595387)],_0x595387;}['_getTranslationKeyForListStyle'](_0x419070){return'ELEMENT_'+this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x419070)['toUpperCase']()+'_LIST_'+_0x419070['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4a6276{['afterInit'](){const _0x30d3a9=this['editor'];if(!_0x30d3a9['plugins']['has']('MediaEmbedEditing'))return;const _0x4dc905=_0x30d3a9['plugins']['get']('TrackChangesEditing'),_0x45b20a=_0x30d3a9['locale'];_0x4dc905['enableCommand']('mediaEmbed'),_0x4dc905['_descriptionFactory']['registerElementLabel']('media',_0x381a91=>o(_0x45b20a,'ELEMENT_MEDIA',_0x381a91)),_0x30d3a9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2f5d07,{writer:_0xe4dac4,options:_0x66a58a})=>{if(_0x66a58a['showSuggestionHighlights'])return _0xe4dac4['createEmptyElement']('div');},'converterPriority':'high'}),_0x30d3a9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1414ea,_0x364aeb,_0x584e96)=>{_0x584e96['options']['showSuggestionHighlights']&&_0x1414ea['stop']();},{'priority':'high'});}}class gt extends _0x4a6276{['afterInit'](){const _0x383c59=this['editor'];_0x383c59['plugins']['has']('MentionEditing')&&_0x383c59['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4a6276{['afterInit'](){const _0x3d8ec5=this['editor'],_0x46dd0d=_0x3d8ec5['plugins']['get']('TrackChangesEditing');_0x3d8ec5['plugins']['has']('MultiLevelList')&&(_0x46dd0d['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0x46dd0d['_descriptionFactory']['registerDescriptionCallback'](_0x2842ac=>this['handleDescriptions'](_0x2842ac)));}['handleDescriptions'](_0x37f8e2){const _0x857a14=this['editor']['locale'],{data:_0x5d19fb}=_0x37f8e2,_0x350468={'type':'format','content':''};if(_0x5d19fb&&'listMarkerStyle'==_0x5d19fb['key']){if(!_0x5d19fb['oldValue'])return{'type':'format','content':o(_0x857a14,'*Set\x20format:*\x20%0',o(_0x857a14,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d19fb['newValue']+')'};if(!_0x5d19fb['newValue']){let _0x526e3a=_0x37f8e2['head'];for(;_0x526e3a;){if(_0x526e3a['data']&&'listType'==_0x526e3a['data']['key']&&_0x526e3a['data']['newValue'])return _0x350468;_0x526e3a=_0x526e3a['next'];}return{'type':'format','content':o(_0x857a14,'*Remove\x20format:*\x20%0',o(_0x857a14,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d19fb['oldValue']+')'};}}}}class mt extends _0x4a6276{['afterInit'](){const _0x2d8949=this['editor'];if(!_0x2d8949['plugins']['has']('PageBreakEditing'))return;_0x2d8949['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x452040=_0x2d8949['plugins']['get']('TrackChangesEditing'),_0x55b970=_0x2d8949['locale'];_0x452040['_descriptionFactory']['registerElementLabel']('pageBreak',_0x493f3c=>o(_0x55b970,'ELEMENT_PAGE_BREAK',_0x493f3c));}}class dt extends _0x4a6276{['afterInit'](){const _0x213de4=this['editor'];if(!_0x213de4['plugins']['has']('Paragraph'))return;const _0x20f37f=_0x213de4['locale'],_0x43a7ad=_0x213de4['plugins']['get']('TrackChangesEditing');_0x43a7ad['_descriptionFactory']['registerElementLabel']('paragraph',_0x2f3f35=>o(_0x20f37f,'ELEMENT_PARAGRAPH',_0x2f3f35)),_0x43a7ad['_enableDefaultAttributesIntegration']('paragraph'),_0x43a7ad['enableCommand']('insertParagraph'),_0x213de4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x213de4),{'priority':'highest'}),_0x213de4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39c539,_0x24e6e3,_0x4106b0)=>{_0x4106b0['options']['showSuggestionHighlights']&&nr(_0x213de4,{'showActiveMarker':!0x1})(_0x39c539,_0x24e6e3,_0x4106b0);},{'priority':'highest'});const _0x59a250=_0x43a7ad['_descriptionFactory'];_0x59a250['registerDescriptionCallback'](_0xe08a71=>{if('insertion'!==_0xe08a71['type'])return;const {start:_0x3f1e3d,end:_0x4aef1a}=_0xe08a71['getFirstRange']();if(!_0x3f1e3d['isTouching'](_0x4aef1a)||!_0x3f1e3d['nodeAfter'])return;const _0x2cf7b7=_0x213de4['model']['schema'],_0x27efe1=_0x3f1e3d['nodeAfter'];return _0x2cf7b7['isBlock'](_0x27efe1)&&!_0x2cf7b7['isLimit'](_0x27efe1)&&_0x2cf7b7['checkChild'](_0x27efe1,'$text')?{'type':'insertion','content':o(_0x20f37f,'*Insert:*\x20%0',_0x59a250['getItemLabel'](_0x27efe1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x830600=this['editor'],_0x2cd364=_0x830600['locale'];_0x830600['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2cee6b=>{if('formatBlock'!=_0x2cee6b['type'])return;const {data:_0x471c3}=_0x2cee6b;return _0x471c3&&'paragraph'==_0x471c3['commandName']?{'type':'format','content':o(_0x2cd364,'*Change\x20to:*\x20%0',o(_0x2cd364,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x69b3d9,{showActiveMarker:_0x5b0217=!0x0}={}){return(_0x19eb4c,_0x2cb222,_0x3750d7)=>{const _0x5ba657=_0x69b3d9['plugins']['get']('TrackChangesEditing'),_0x13fa15=_0x2cb222['markerRange']['start'],_0x278625=_0x2cb222['markerRange']['end'],_0x3ab8b0=_0x69b3d9['model']['schema'];if(!_0x13fa15['isTouching'](_0x278625)||!_0x13fa15['nodeAfter'])return;const _0x199027=_0x13fa15['nodeAfter'];if(_0x3ab8b0['isBlock'](_0x199027)&&!_0x3ab8b0['isLimit'](_0x199027)&&_0x3ab8b0['checkChild'](_0x199027,'$text')){if(!_0x3750d7['consumable']['consume'](_0x2cb222['markerRange'],_0x19eb4c['name']))return;const _0x2a45f2=_0x3750d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x749839=_0x3750d7['mapper']['toViewPosition'](_0x278625);_0x5b0217&&_0x5ba657['activeMarkers']['includes'](_0x2cb222['markerName'])&&_0x3750d7['writer']['addClass']('ck-suggestion-marker--active',_0x2a45f2),_0x3750d7['writer']['insert'](_0x749839,_0x2a45f2),_0x3750d7['mapper']['bindElementToMarker'](_0x2a45f2,_0x2cb222['markerName']);}};}class pt extends _0x4a6276{['afterInit'](){const _0x336325=this['editor'];if(!_0x336325['plugins']['has']('RemoveFormatEditing'))return;_0x336325['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9740eb=this['editor'];_0x9740eb['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xbdfb00=>{if('formatBlock'!=_0xbdfb00['type']&&'formatInline'!=_0xbdfb00['type'])return;const {data:_0x4a2a84}=_0xbdfb00;return _0x4a2a84&&'removeFormat'==_0x4a2a84['commandName']?{'type':'format','content':o(_0x9740eb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4a6276{['afterInit'](){const _0x2186fa=this['editor'];if(!_0x2186fa['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xfcedae=_0x2186fa['plugins']['get']('TrackChangesEditing');_0xfcedae['enableCommand']('goToPreviousRestrictedEditingException'),_0xfcedae['enableCommand']('goToNextRestrictedEditingException');const _0x55ea4d=_0x2186fa['plugins']['get']('RestrictedEditingModeEditing');_0x55ea4d['enableCommand']('trackChanges'),_0x55ea4d['enableCommand']('acceptSuggestion'),_0x55ea4d['enableCommand']('discardSuggestion'),_0x55ea4d['enableCommand']('acceptAllSuggestions'),_0x55ea4d['enableCommand']('discardAllSuggestions'),_0x55ea4d['enableCommand']('acceptSelectedSuggestions'),_0x55ea4d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4a6276{static get['requires'](){return[_0x247a54];}['init'](){const _0x1c1c0b=this['editor'],_0x12e9f7=_0x1c1c0b['plugins']['get']('TrackChangesEditing');_0x12e9f7['enableCommand']('shiftEnter'),_0x1c1c0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1c1c0b),{'priority':'high'}),_0x1c1c0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1c1c0b),{'priority':'high'}),_0x1c1c0b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x110b37,_0xa43448,_0x54c362)=>{_0x54c362['options']['showSuggestionHighlights']&&de(_0x1c1c0b,{'showActiveMarker':!0x1})(_0x110b37,_0xa43448,_0x54c362);}),_0x12e9f7['_descriptionFactory']['registerElementLabel']('softBreak',_0x17795c=>o(_0x1c1c0b['locale'],'ELEMENT_LINE_BREAK',_0x17795c));}}function de(_0x5e25a7,{showActiveMarker:_0x13fc5f=!0x0}={}){return(_0x8d8280,_0x217dbb,_0x37ce11)=>{const _0xacdb49=_0x5e25a7['plugins']['get']('TrackChangesEditing');if(!_0x37ce11['consumable']['test'](_0x217dbb['markerRange'],_0x8d8280['name']))return;const _0xb56170=_0x5e25a7['model'];for(const _0x363b3d of _0x217dbb['markerRange']['getItems']()){if(!_0x363b3d['is']('element','softBreak'))continue;const _0x401d54='deletion'==_0x217dbb['markerName']['split'](':')[0x1]?'merge':'split',_0x4ebe9c=_0x37ce11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x401d54}),_0x55222e=_0x37ce11['mapper']['toViewPosition'](_0xb56170['createPositionBefore'](_0x363b3d));_0x13fc5f&&_0xacdb49['activeMarkers']['includes'](_0x217dbb['markerName'])&&_0x37ce11['writer']['addClass']('ck-suggestion-marker--active',_0x4ebe9c),_0x37ce11['writer']['insert'](_0x55222e,_0x4ebe9c),_0x37ce11['mapper']['bindElementToMarker'](_0x4ebe9c,_0x217dbb['markerName']);}};}class wt extends _0x4a6276{['afterInit'](){const _0x32dae7=this['editor'],_0x23ad98=_0x32dae7['model'],_0x5a817f=_0x32dae7['locale'];if(!_0x32dae7['plugins']['has']('StandardEditingModeEditing'))return;const _0x2d1491=_0x32dae7['plugins']['get']('TrackChangesEditing'),_0x1cdb77='restrictedEditingException',_0x4d258f=_0x32dae7['commands']['get'](_0x1cdb77);_0x2d1491['enableCommand'](_0x1cdb77,(_0x3bc7f4,_0x45031b={})=>{const _0x206b1b=_0x23ad98['document']['selection'];if(_0x206b1b['isCollapsed'])return void _0x3bc7f4(_0x45031b);const _0x2d98d3=void 0x0!==_0x45031b['forceValue']?_0x45031b['forceValue']:!_0x4d258f['value'];_0x23ad98['change'](()=>{const _0x167365=Array['from'](_0x206b1b['getRanges']());for(const _0x206454 of _0x167365){const _0x1a6be4=_0x2d98d3?[_0x206454]:io(_0x1cdb77,_0x206454,_0x23ad98);for(const _0x32f966 of _0x1a6be4)_0x2d1491['markInlineFormat'](_0x32f966,{'commandName':_0x1cdb77,'commandParams':[{'forceValue':_0x2d98d3}]});}});}),_0x2d1491['_descriptionFactory']['registerDescriptionCallback'](_0x6ee59a=>{if('formatBlock'!=_0x6ee59a['type']&&'formatInline'!=_0x6ee59a['type'])return;const {data:_0x299fba}=_0x6ee59a;return _0x299fba&&_0x299fba['commandName']==_0x1cdb77?_0x299fba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a817f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5a817f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4a6276{['afterInit'](){const _0x3f9de8=this['editor'];if(!_0x3f9de8['plugins']['has']('Style')||!_0x3f9de8['plugins']['has']('DataSchema'))return;const _0x595c94=_0x3f9de8['plugins']['get']('TrackChangesEditing'),_0x3c4d92=_0x3f9de8['locale'],_0x158996=_0x3f9de8['config']['get']('style')||{},_0x4b331d=_0x3f9de8['plugins']['get']('GeneralHtmlSupport'),_0x522990=_0x3f9de8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3f9de8['plugins']['get']('DataSchema'),_0x158996['definitions']);_0x595c94['_enableDefaultAttributesIntegration']('style');const _0x34d05c=new Set();for(const _0x33bf21 of _0x522990['block']){const _0x2639e6=_0x4b331d['getGhsAttributeNameForElement'](_0x33bf21['element']);_0x34d05c['add'](_0x2639e6);}const _0x5e79a0=new Set();for(const _0x242b4a of _0x522990['inline']){const _0x135814=_0x4b331d['getGhsAttributeNameForElement'](_0x242b4a['element']);_0x5e79a0['add'](_0x135814);for(const _0x44ba27 of _0x242b4a['ghsAttributes'])_0x5e79a0['add'](_0x44ba27);}for(const _0x3150f5 of _0x34d05c)_0x595c94['_registerBlockAttribute'](_0x3150f5),_0x595c94['_descriptionFactory']['registerAttributeLabel'](_0x3150f5,o(_0x3c4d92,'FORMAT_STYLE'));for(const _0x5314cb of _0x5e79a0)_0x595c94['_registerInlineAttribute'](_0x5314cb),_0x595c94['_descriptionFactory']['registerAttributeLabel'](_0x5314cb,o(_0x3c4d92,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2053d5=this['editor'],_0x5755a7=_0x2053d5['locale'];_0x2053d5['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x521570=>{if('formatBlock'!=_0x521570['type']&&'formatInline'!=_0x521570['type'])return;const {data:_0x4e51e0}=_0x521570;return _0x4e51e0&&'style'===_0x4e51e0['commandName']?_0x4e51e0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5755a7,'*Set\x20format:*\x20%0',_0x4e51e0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5755a7,'*Remove\x20format:*\x20%0',_0x4e51e0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4a6276{['afterInit'](){const _0x35439b=this['editor'],_0x151f70=_0x35439b['model']['document']['selection'];if(!_0x35439b['plugins']['has']('TableEditing'))return;const _0x5bc26c=_0x35439b['locale'],_0x562c1e=_0x35439b['plugins']['get']('TrackChangesEditing'),_0x21fe3e=_0x35439b['plugins']['get']('TableUtils');_0x562c1e['_descriptionFactory']['registerElementLabel']('table',_0x33ca99=>o(_0x5bc26c,'ELEMENT_TABLE',_0x33ca99)),this['_setupColumnsRowsFixing'](),_0x562c1e['enableCommand']('insertTable'),_0x562c1e['enableCommand']('selectTableRow'),_0x562c1e['enableCommand']('selectTableColumn');for(const _0x18d3f2 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d29e4=_0x35439b['commands']['get'](_0x18d3f2);_0x562c1e['enableCommand'](_0x18d3f2,_0x3ae84e=>{_0x35439b['model']['change'](_0x4f6425=>{_0x3ae84e();const _0x4a2cc2='above'===_0x3d29e4['order'],_0x3f07f5=_0x21fe3e['getSelectionAffectedTableCells'](_0x151f70),_0x121c3c=_0x21fe3e['getRowIndexes'](_0x3f07f5),_0x4dd5aa=_0x4a2cc2?_0x121c3c['first']-0x1:_0x121c3c['last']+0x1,_0x557460=_0x3f07f5[0x0]['findAncestor']('table'),_0x411ef1=_0x21fe3e['createTableWalker'](_0x557460,{'startRow':_0x4dd5aa,'endRow':_0x4dd5aa}),_0x41e89f=Array['from'](_0x411ef1)['map'](_0x1f6bd0=>_0x4f6425['createRangeOn'](_0x1f6bd0['cell']));_0x562c1e['markMultiRangeInsertion'](_0x41e89f,'tableRow');});});}for(const _0x22100d of['insertTableColumnLeft','insertTableColumnRight']){const _0x81cdce=_0x35439b['commands']['get'](_0x22100d);_0x562c1e['enableCommand'](_0x22100d,_0x3fd192=>{_0x35439b['model']['change'](_0x5c4a22=>{_0x3fd192();const _0x5a0207='left'===_0x81cdce['order'],_0x1fc39a=_0x21fe3e['getSelectionAffectedTableCells'](_0x151f70),_0x230fc5=_0x21fe3e['getColumnIndexes'](_0x1fc39a),_0x866cd8=_0x5a0207?_0x230fc5['first']-0x1:_0x230fc5['last']+0x1,_0x23442c=_0x1fc39a[0x0]['findAncestor']('table'),_0x1ef2e8=_0x21fe3e['createTableWalker'](_0x23442c,{'startRow':0x0,'column':_0x866cd8,'includeAllSlots':!0x1}),_0x201fed=Array['from'](_0x1ef2e8)['map'](_0x308919=>_0x5c4a22['createRangeOn'](_0x308919['cell']));_0x562c1e['markMultiRangeInsertion'](_0x201fed,'tableColumn');});});}for(const _0x3e7cc1 of['removeTableRow','removeTableColumn']){const _0x409ba8=_0x3e7cc1['substr'](0xb),_0x958c9=_0x409ba8['toLowerCase'](),_0x1d21ad=_0x958c9['substr'](0x0,0x3)+'span',_0x11b652='table'+_0x409ba8,_0x4374b7='min'+_0x409ba8,_0x4199e2='max'+_0x409ba8;_0x562c1e['enableCommand'](_0x3e7cc1,()=>{_0x35439b['model']['change'](_0x76c050=>{const _0xddb08d=_0x21fe3e['getSelectionAffectedTableCells'](_0x151f70),_0x331c15=_0xddb08d[0x0]['findAncestor']('table');let _0x1bd496;if('removeTableRow'==_0x3e7cc1){const _0x5d53cd=_0x21fe3e['getRowIndexes'](_0xddb08d);_0x1bd496={'startRow':_0x5d53cd['first'],'endRow':_0x5d53cd['last'],'includeAllSlots':!0x0};}else{const _0x17e4fb=_0x21fe3e['getColumnIndexes'](_0xddb08d);_0x1bd496={'startColumn':_0x17e4fb['first'],'endColumn':_0x17e4fb['last'],'includeAllSlots':!0x0};}const _0x425794=_0x21fe3e['createTableWalker'](_0x331c15,_0x1bd496),_0x3699fc=Array['from'](_0x425794)['map'](({cell:_0x405c63})=>_0x405c63),_0x2e2ea6=Ee(_0x3699fc['filter'](_0x216298=>_0x216298['hasAttribute'](_0x1d21ad))),_0x33c4b3=Ee(_0x3699fc['filter'](_0x4c9155=>!_0x4c9155['hasAttribute'](_0x1d21ad)))['map'](_0x314574=>_0x76c050['createRangeOn'](_0x314574)),_0x4c4c68=_0x562c1e['markMultiRangeDeletion'](_0x33c4b3,_0x11b652);if(_0x4c4c68&&('tableRow'==_0x4c4c68['subType']||'tableColumn'==_0x4c4c68['subType'])){const _0x32677d=this['_getSuggestionCoords'](_0x4c4c68);for(const _0x5868e8 of _0x2e2ea6){const _0x4cf628=_0x76c050['createRangeOn'](_0x5868e8),_0x231263=_0x21fe3e['getCellLocation'](_0x5868e8),_0x133af8=_0x5868e8['getAttribute'](_0x1d21ad)-0x1,_0xb09942=_0x32677d[_0x4374b7],_0x52fb1a=_0x32677d[_0x4199e2];_0xb09942<=_0x231263[_0x958c9]&&_0x231263[_0x958c9]+_0x133af8<=_0x52fb1a&&_0x4c4c68['addRange'](_0x4cf628);}}});});}function _0x4d8987(_0x1005da){const _0x53dc78=Array['from'](_0x151f70['getRanges']())['map'](_0x3d76c7=>_0x2e827c['fromRange'](_0x3d76c7));_0x35439b['model']['change'](_0x24e139=>{const _0xba8d1d=_0x24e139['batch'];_0x1005da=_0x1005da['filter'](_0x582ee1=>'$graveyard'!=_0x582ee1['root']['rootName']),_0x24e139['setSelection'](_0x1005da),_0x35439b['commands']['get']('removeTableRow')['refresh'](),_0x35439b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35439b['model']['enqueueChange'](()=>{_0x35439b['model']['enqueueChange'](_0xba8d1d,_0x43eaba=>{const _0x5771f9=_0x53dc78['filter'](_0xcfc23e=>'$graveyard'!=_0xcfc23e['root']['rootName']);_0x5771f9['length']>0x0&&_0x43eaba['setSelection'](_0x5771f9);for(const _0x5c3542 of _0x53dc78)_0x5c3542['detach']();});});});}function _0x4de598(_0x8c8360){_0x35439b['model']['change'](_0x2f3cc7=>{const _0x1d16b2=Array['from'](_0x151f70['getRanges']())['map'](_0x39f1fd=>_0x2e827c['fromRange'](_0x39f1fd)),_0x284244=[];for(const _0x4420f5 of _0x8c8360)for(const _0x3589be of _0x4420f5['getItems']({'shallow':!0x0}))_0x284244['push'](_0x3589be);for(const _0x14a214 of _0x284244)'$graveyard'!=_0x14a214['root']['rootName']&&(_0x2f3cc7['setSelection'](_0x2f3cc7['createPositionAt'](_0x14a214,0x0)),_0x35439b['commands']['get']('removeTableColumn')['refresh'](),_0x35439b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23e2de=_0x1d16b2['filter'](_0x1caace=>'$graveyard'!=_0x1caace['root']['rootName']);_0x23e2de['length']>0x0&&_0x2f3cc7['setSelection'](_0x23e2de);for(const _0x23c4cf of _0x1d16b2)_0x23c4cf['detach']();});}function _0x44130d(_0x470b2c,_0x6d8bb6){return _0x6d8bb6['every'](_0x2638ba=>_0x470b2c['some'](_0xf24b87=>_0xf24b87['end']['isEqual'](_0x2638ba['start'])||_0x2638ba['end']['isEqual'](_0xf24b87['start'])));}function _0x2116cc(_0x1f7b85,_0x234e87){return _0x1f7b85['some'](_0x1333ad=>_0x234e87['some'](_0x71944e=>_0x1333ad['end']['isTouching'](_0x71944e['start'])));}_0x35439b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x860dd5,_0x5ed4cb,_0x51cdf4)=>{if(!_0x51cdf4['options']['showSuggestionHighlights'])return;const _0x369249=_0x5ed4cb['item'];if(!_0x369249)return;const _0xe7f7c4=_0x51cdf4['mapper']['toViewElement'](_0x369249);function _0x486ddc(_0x59f3fd){return Array['isArray'](_0x59f3fd)?_0x59f3fd:[_0x59f3fd];}_0xe7f7c4&&'tableCell'===_0x369249['name']&&_0x2b04a0(_0xe7f7c4,_0x51cdf4['writer'],(_0x391059,_0x15cb6b,_0x54c5ee)=>_0x54c5ee['addClass'](_0x486ddc(_0x15cb6b['classes']),_0x391059),(_0x239db2,_0x5945af,_0x28b6fb)=>_0x28b6fb['removeClass'](_0x486ddc(_0x5945af['classes']),_0x239db2));},{'priority':'highest'}),_0x562c1e['_descriptionFactory']['registerDescriptionCallback'](_0x4f4505=>{if('insertion'!=_0x4f4505['type']&&'deletion'!=_0x4f4505['type'])return;const _0x1751d1=_0x4f4505['getContainedElement']();if(null!=_0x1751d1&&_0x1751d1['is']('element','table')){if('insertion'==_0x4f4505['type']){const _0x9fb9c7=_0x4f4505['getItems']()['filter'](_0x2a48f7=>_0x2a48f7['is']('$textProxy'))['map'](_0x52b262=>_0x52b262['data']);if(_0x9fb9c7['length'])return{'type':'insertion','content':o(_0x5bc26c,'*Insert:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9fb9c7['join']('\x20')+'\x22'))};}if('deletion'==_0x4f4505['type']){const _0x5116d2=_0x4f4505['getItems']()['filter'](_0x39bd6f=>_0x39bd6f['is']('$textProxy'))['map'](_0x4396e6=>_0x4396e6['data']);if(_0x5116d2['length'])return{'type':'deletion','content':o(_0x5bc26c,'*Remove:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5116d2['join']('\x20')+'\x22'))};}}}),_0x562c1e['_descriptionFactory']['registerDescriptionCallback'](_0x37ce5f=>{if('tableRow'==_0x37ce5f['subType']){const _0xa81c25=_0x37ce5f['getItems']()['filter'](_0x3f3c7b=>_0x3f3c7b['is']('$textProxy'))['map'](_0x1f8ecd=>_0x1f8ecd['data']),_0x430341=this['_getSuggestionCoords'](_0x37ce5f),_0x34bcd7=_0x430341['maxRow']-_0x430341['minRow']+0x1;if('insertion'==_0x37ce5f['type'])return _0xa81c25['length']?{'type':'insertion','content':o(_0x5bc26c,'*Insert:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x34bcd7,'\x22'+_0xa81c25['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5bc26c,'*Insert:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_ROW',_0x34bcd7))};if('deletion'==_0x37ce5f['type'])return _0xa81c25['length']?{'type':'deletion','content':o(_0x5bc26c,'*Remove:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x34bcd7,'\x22'+_0xa81c25['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5bc26c,'*Remove:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_ROW',_0x34bcd7))};}if('tableColumn'==_0x37ce5f['subType']){const _0x9ee008=_0x37ce5f['getItems']()['filter'](_0x248806=>_0x248806['is']('$textProxy'))['map'](_0x58a405=>_0x58a405['data']),_0x6ea06a=this['_getSuggestionCoords'](_0x37ce5f),_0xcc7ae6=_0x6ea06a['maxColumn']-_0x6ea06a['minColumn']+0x1;if('insertion'==_0x37ce5f['type'])return _0x9ee008['length']?{'type':'insertion','content':o(_0x5bc26c,'*Insert:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xcc7ae6,'\x22'+_0x9ee008['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5bc26c,'*Insert:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_COLUMN',_0xcc7ae6))};if('deletion'==_0x37ce5f['type'])return _0x9ee008['length']?{'type':'deletion','content':o(_0x5bc26c,'*Remove:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xcc7ae6,'\x22'+_0x9ee008['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5bc26c,'*Remove:*\x20%0',o(_0x5bc26c,'ELEMENT_TABLE_COLUMN',_0xcc7ae6))};}}),_0x562c1e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d8987),_0x562c1e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d8987),_0x562c1e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4de598),_0x562c1e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4de598),_0x562c1e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x44130d),_0x562c1e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x44130d),_0x562c1e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2116cc),_0x562c1e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2116cc);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3d5cd4=this['editor'],_0x2556cd=_0x3d5cd4['model']['document']['selection'];return(_0x141d37,_0x343de8)=>{_0x3d5cd4['model']['change'](_0x7eab52=>{const {commandName:_0x555f5c,commandParams:_0xca06a2}=_0x343de8;let _0x1f3282=_0x141d37[0x0]['end']['nodeBefore'];_0xca06a2&&_0xca06a2[0x0]&&!0x1===_0xca06a2[0x0]['forceValue']&&(_0x1f3282=_0x141d37[0x0]['start']['nodeAfter']);const _0x2dd385=_0x7eab52['createRangeIn'](_0x1f3282);if('$graveyard'==_0x2dd385['root']['rootName'])return;const _0x3d066c=Array['from'](_0x2556cd['getRanges']())['map'](_0x3e8196=>_0x2e827c['fromRange'](_0x3e8196));_0x7eab52['setSelection'](_0x2dd385),_0x3d5cd4['commands']['get'](_0x555f5c)['refresh'](),_0xca06a2['push']({'forceDefaultExecution':!0x0}),_0x3d5cd4['execute'](_0x555f5c,..._0xca06a2);const _0x10156b=_0x3d066c['filter'](_0x1ef226=>'$graveyard'!=_0x1ef226['root']['rootName']);_0x10156b['length']>0x0&&_0x7eab52['setSelection'](_0x10156b);for(const _0x2528b0 of _0x3d066c)_0x2528b0['detach']();});};}['_getCoordsForCells'](_0xd69bc7){const _0x40fae6=this['editor']['plugins']['get']('TableUtils');let _0x45202c=Number['MAX_SAFE_INTEGER'],_0x15e616=Number['MIN_SAFE_INTEGER'],_0x16c5c7=Number['MAX_SAFE_INTEGER'],_0x5aa77f=Number['MIN_SAFE_INTEGER'];for(const _0x1d4663 of _0xd69bc7){if('$graveyard'==_0x1d4663['root']['rootName'])continue;const {row:_0x2b005e,column:_0x3ae7b9}=_0x40fae6['getCellLocation'](_0x1d4663),_0x1340c0=_0x1d4663['hasAttribute']('rowspan')?_0x1d4663['getAttribute']('rowspan')-0x1:0x0,_0x4cb04b=_0x1d4663['hasAttribute']('colspan')?_0x1d4663['getAttribute']('colspan')-0x1:0x0;_0x45202c=_0x2b005e<_0x45202c?_0x2b005e:_0x45202c,_0x15e616=_0x2b005e+_0x1340c0>_0x15e616?_0x2b005e+_0x1340c0:_0x15e616,_0x16c5c7=_0x3ae7b9<_0x16c5c7?_0x3ae7b9:_0x16c5c7,_0x5aa77f=_0x3ae7b9+_0x4cb04b>_0x5aa77f?_0x3ae7b9+_0x4cb04b:_0x5aa77f;}return{'minRow':_0x45202c,'maxRow':_0x15e616,'minColumn':_0x16c5c7,'maxColumn':_0x5aa77f};}['_setupColumnsRowsFixing'](){const _0xa389a2=this['editor'],_0x5c50d6=_0xa389a2['plugins']['get']('TrackChangesEditing'),_0x40bce9=_0xa389a2['plugins']['get']('TableUtils');_0xa389a2['model']['document']['on']('change:data',()=>{const _0x2674c6=Array['from'](_0xa389a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58db40,data:_0x11c009}of _0x2674c6){const {group:_0xbd31bc,id:_0x490044,subType:_0x263cf1}=_0x5c50d6['_splitMarkerName'](_0x58db40);if('suggestion'!=_0xbd31bc)continue;if(null!=_0x11c009['oldRange'])continue;const _0x3b2e75=_0x5c50d6['getSuggestion'](_0x490044);this['_tablePostFixingSubtypes']['includes'](_0x263cf1)&&this['_tableSuggestions']['add'](_0x3b2e75);}},{'priority':'low'});const _0x4e555a=(_0x407c4a,_0x522290)=>{let _0x429ef7=!0x1;const _0x5e8941=_0x522290['createRangeOn'](_0x407c4a),_0x578d9e=_0x407c4a['findAncestor']('table'),_0x494fba=_0x40bce9['getCellLocation'](_0x407c4a);for(const _0x46c4c2 of this['_tableSuggestions']){const _0x76bf6e=_0x46c4c2['subType'],_0x22909e=_0x76bf6e['startsWith']('tablePaste'),_0x3c2e86=_0x76bf6e['substr'](_0x22909e?0xa:0x5),_0x1fa7ca=_0x3c2e86['toLowerCase'](),_0x43459d=_0x1fa7ca['substr'](0x0,0x3)+'span',_0x214ac1='min'+_0x3c2e86,_0x5c31f8='max'+_0x3c2e86;if(!_0x46c4c2['isInContent'])continue;if(_0x578d9e!=_0x46c4c2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x46c4c2['isIntersectingWithRange'](_0x5e8941))continue;const _0x3966d2=_0x407c4a['hasAttribute'](_0x43459d)?_0x407c4a['getAttribute'](_0x43459d)-0x1:0x0,_0x41008c=this['_getSuggestionCoords'](_0x46c4c2),_0x1d0644=_0x41008c[_0x214ac1],_0x31bd42=_0x41008c[_0x5c31f8];_0x1d0644<=_0x494fba[_0x1fa7ca]&&_0x494fba[_0x1fa7ca]+_0x3966d2<=_0x31bd42&&(_0x46c4c2['addRange'](_0x5e8941),_0x429ef7=!0x0);}return _0x429ef7;};_0xa389a2['model']['document']['registerPostFixer'](_0x2fc019=>{let _0x5ebf04=!0x1;for(const _0x5110c4 of _0xa389a2['model']['document']['differ']['getChanges']())if('insert'==_0x5110c4['type']){if('tableRow'==_0x5110c4['name']){for(const _0x3fcdf4 of _0x5110c4['position']['nodeAfter']['getChildren']())_0x5ebf04=_0x5ebf04||_0x4e555a(_0x3fcdf4,_0x2fc019);}else'tableCell'==_0x5110c4['name']&&(_0x5ebf04=_0x5ebf04||_0x4e555a(_0x5110c4['position']['nodeAfter'],_0x2fc019));}return _0x5ebf04;});}['_getSuggestionCoords'](_0xd04f72){return this['_getCoordsForCells'](_0xd04f72['getRanges']()['map'](_0x2a7579=>_0x2a7579['start']['nodeAfter']));}constructor(_0x2e4c0a){super(_0x2e4c0a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x3c35b6){return Array['from'](new Set(_0x3c35b6)['values']());}class St extends _0x4a6276{static get['requires'](){return[jt];}['afterInit'](){const _0x5b3c7a=this['editor'],_0x43050e=_0x5b3c7a['model']['document']['selection'],_0xa3022e=_0x5b3c7a['locale'];if(!_0x5b3c7a['plugins']['has']('TableEditing'))return;const _0x324685=_0x5b3c7a['plugins']['get']('TrackChangesEditing'),_0x51fb4b=_0x5b3c7a['plugins']['get']('TableUtils'),_0x1a531a=_0x5b3c7a['plugins']['get'](jt);_0x1a531a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x324685['enableCommand']('mergeTableCells',()=>{const _0x4b61de=_0x51fb4b['getSelectionAffectedTableCells'](_0x5b3c7a['model']['document']['selection']);_0x5b3c7a['model']['change'](()=>{_0x324685['markMultiRangeBlockFormat'](_0x4b61de,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b3c7a['commands']['get']('mergeTableCells')['on']('execute',(_0x291f81,_0x2e320f)=>{_0x5b3c7a['commands']['get']('trackChanges')['value']&&(_0x2e320f['length']>0x0&&_0x2e320f[_0x2e320f['length']-0x1]&&_0x2e320f[_0x2e320f['length']-0x1]['forceDefaultExecution']||_0x324685['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x291f81['stop']());},{'priority':'highest'});for(const _0x44a9bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x18e03d=_0x5b3c7a['commands']['get'](_0x44a9bb);_0x324685['enableCommand'](_0x44a9bb,()=>{const _0xf83866=_0x5b3c7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b7c9e=>_0x3b7c9e['is']('element','tableCell')),_0xb82a31=_0x18e03d['value'];_0x5b3c7a['model']['change'](()=>{_0x324685['markMultiRangeBlockFormat']([_0xf83866,_0xb82a31],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x517507 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x125e94=_0x5b3c7a['commands']['get'](_0x517507);_0x324685['enableCommand'](_0x517507,()=>{const _0xf4dd2=_0x51fb4b['getSelectionAffectedTableCells'](_0x5b3c7a['model']['document']['selection'])[0x0],_0x49eda6=_0xf4dd2['findAncestor']('table'),{column:_0x257554,row:_0x481c70}=_0x51fb4b['getCellLocation'](_0xf4dd2);let _0x3c18b7=[];if('horizontally'==_0x125e94['direction']){const _0x2240f5=_0x51fb4b['createTableWalker'](_0x49eda6,{'startRow':_0x481c70,'endRow':_0x481c70,'includeAllSlots':!0x0});_0x3c18b7=Array['from'](_0x2240f5)['map'](_0x2e8451=>_0x2e8451['cell']);}else{const _0x277e48=_0x51fb4b['createTableWalker'](_0x49eda6,{'column':_0x257554,'includeAllSlots':!0x0});_0x3c18b7=Array['from'](_0x277e48)['map'](_0x4a83da=>_0x4a83da['cell']);}_0x5b3c7a['model']['change'](_0xacbc17=>{_0x324685['markBlockFormat'](_0xacbc17['createRangeOn'](_0xf4dd2),{'commandName':_0x517507,'commandParams':[]},_0x3c18b7,_0x517507);});});}_0x324685['_descriptionFactory']['registerDescriptionCallback'](_0x56a427=>{if('formatBlock'!=_0x56a427['type']&&'formatInline'!=_0x56a427['type'])return;const {data:_0x34bd00}=_0x56a427;return _0x34bd00&&'mergeTableCells'==_0x34bd00['commandName']?{'type':'format','content':o(_0xa3022e,'*Merge\x20cells*')}:void 0x0;}),_0x324685['_descriptionFactory']['registerDescriptionCallback'](_0x3e82db=>{if('formatBlock'!=_0x3e82db['type']&&'formatInline'!=_0x3e82db['type'])return;const {data:_0x5f0f69}=_0x3e82db;return _0x5f0f69?'splitTableCellVertically'==_0x5f0f69['commandName']?{'type':'format','content':o(_0xa3022e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5f0f69['commandName']?{'type':'format','content':o(_0xa3022e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59fbfc=_0x1a531a['_acceptFormatSuggestionCallbackFactory']();for(const _0x4d38ae of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x324685['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d38ae,'accept',_0x59fbfc);for(const _0x7c27b6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x324685['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7c27b6,'accept',_0x59fbfc);_0x324685['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x359310=>{_0x5b3c7a['model']['change'](_0x3cad8c=>{const _0xa93ace=Array['from'](_0x43050e['getRanges']())['map'](_0x270630=>_0x2e827c['fromRange'](_0x270630));_0x3cad8c['setSelection'](_0x359310),_0x5b3c7a['commands']['get']('mergeTableCells')['refresh'](),_0x5b3c7a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50e393=_0xa93ace['filter'](_0x31944b=>'$graveyard'!=_0x31944b['root']['rootName']);_0x50e393['length']>0x0&&_0x3cad8c['setSelection'](_0x50e393);for(const _0x35c7d6 of _0xa93ace)_0x35c7d6['detach']();});});for(const _0x127571 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1a78f9=_0x5b3c7a['commands']['get'](_0x127571);_0x1a78f9['on']('set:isEnabled',(_0x5ef9f2,_0x327418,_0x128d08)=>{if(_0x128d08){const _0x14aa5a=_0x5b3c7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc69767=>_0xc69767['is']('element','tableCell'));this['_areMergableCells'](_0x1a78f9['value'],_0x14aa5a)||(_0x5ef9f2['return']=!0x1,_0x5ef9f2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47dd7f=this['editor']['commands']['get']('mergeTableCells'),_0x4be476=this['editor']['plugins']['get']('TableUtils');if(!_0x47dd7f['isEnabled'])return!0x1;const _0x4903a4=_0x4be476['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x245e4d of _0x4903a4)for(const _0x21fd1c of _0x4903a4)if(_0x245e4d!=_0x21fd1c&&!this['_areMergableCells'](_0x245e4d,_0x21fd1c))return!0x1;return!0x0;}['_areMergableCells'](_0x1f2162,_0x2e3e19){const _0x4d1cfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x354a76=this['editor']['model']['createRangeOn'](_0x1f2162),_0xd36b05=this['editor']['model']['createRangeOn'](_0x2e3e19),_0x50790f=new Set(),_0x12a559=new Set();for(const _0x4051ea of _0x4d1cfb['getSuggestions']())if(('insertion'==_0x4051ea['type']||'deletion'==_0x4051ea['type']||'mergeTableCells'==_0x4051ea['subType'])&&_0x4051ea['isInContent']){for(const _0x1888ce of _0x4051ea['getRanges']())_0x1888ce['containsRange'](_0x354a76,!0x0)&&_0x50790f['add'](_0x4051ea['type']+':'+_0x4051ea['author']['id']),_0x1888ce['containsRange'](_0xd36b05,!0x0)&&_0x12a559['add'](_0x4051ea['type']+':'+_0x4051ea['author']['id']);}if(_0x50790f['size']!=_0x12a559['size'])return!0x1;for(const _0x3f5081 of _0x50790f)if(!_0x12a559['has'](_0x3f5081))return!0x1;return!0x0;}}class At extends _0x4a6276{static get['requires'](){return[jt];}['afterInit'](){const _0x205a42=this['editor'];if(!_0x205a42['plugins']['has']('TableEditing'))return;const _0x2ca271=_0x205a42['locale'],_0x593908=_0x205a42['plugins']['get']('TrackChangesEditing');_0x593908['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x593908['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x593908['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2ca271,'FORMAT_HEADER_ROW')),_0x593908['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2ca271,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a8a45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x420772=this['editor']['plugins']['get']('TableUtils'),_0x1c7bd9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x594945({showActiveMarker:_0x47d695=!0x0,setDataAttribute:_0x5b0021=!0x0}={}){return(_0x193b13,_0x1a1d01,_0x428990)=>{const {type:_0x23f26a,id:_0x3e33d6}=_0x4a8a45['_splitMarkerName'](_0x1a1d01['markerName']),_0x7beb1e=_0x4a8a45['getSuggestion'](_0x3e33d6),_0x26298d=_0x7beb1e['data'];if('formatBlock'!=_0x7beb1e['type']||!_0x26298d||'setTableColumnHeader'!=_0x26298d['commandName'])return;if(_0x1a1d01['item'])return void _0x193b13['stop']();if(!_0x428990['consumable']['consume'](_0x1a1d01['markerRange'],_0x193b13['name']))return;const _0x48b020=_0x1a1d01['markerRange']['start']['nodeAfter'],_0x595ee9=_0x1a1d01['markerRange']['end']['nodeBefore'],_0xa0e0d=_0x48b020['parent']['parent'],{column:_0x2cdfc1}=_0x420772['getCellLocation'](_0x48b020),{column:_0x272100}=_0x420772['getCellLocation'](_0x595ee9);for(let _0x2ca6b9=_0x2cdfc1;_0x2ca6b9<=_0x272100;_0x2ca6b9++){const _0x3632d9=_0x420772['createTableWalker'](_0xa0e0d,{'column':_0x2ca6b9,'includeAllSlots':!0x1});for(const _0x599c38 of _0x3632d9){const _0x3fa42f=_0x599c38['cell'],_0x3a7e8c=_0x428990['mapper']['toViewElement'](_0x3fa42f);_0x428990['writer']['addClass']('ck-suggestion-marker-'+_0x23f26a,_0x3a7e8c),_0x5b0021&&_0x428990['writer']['setAttribute']('data-suggestion',_0x3e33d6,_0x3a7e8c),_0x428990['mapper']['bindElementToMarker'](_0x3a7e8c,_0x1a1d01['markerName']),_0x47d695&&(_0x4a8a45['activeMarkers']['includes'](_0x1a1d01['markerName'])?_0x428990['writer']['addClass']('ck-suggestion-marker--active',_0x3a7e8c):_0x428990['writer']['removeClass']('ck-suggestion-marker--active',_0x3a7e8c));}}};}_0x4a8a45['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1c7bd9),_0x4a8a45['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1c7bd9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x594945(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xec0b38,_0x253e51,_0x578fe5)=>{_0x578fe5['options']['showSuggestionHighlights']&&_0x594945({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xec0b38,_0x253e51,_0x578fe5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x53f10d,_0xbcc32c,_0x38aea5)=>{const {type:_0x25a5f9,id:_0x582338}=_0x4a8a45['_splitMarkerName'](_0xbcc32c['markerName']),_0x1c4688=_0x4a8a45['getSuggestion'](_0x582338),_0x49afd6=_0x1c4688['data'];if('formatBlock'!=_0x1c4688['type']||!_0x49afd6||'setTableColumnHeader'!=_0x49afd6['commandName'])return;const _0x34011b=_0x38aea5['mapper']['markerNameToElements'](_0xbcc32c['markerName']);if(_0x34011b){for(const _0x21ccb8 of _0x34011b)_0x38aea5['writer']['removeClass']('ck-suggestion-marker-'+_0x25a5f9,_0x21ccb8),_0x38aea5['writer']['removeClass']('ck-suggestion-marker--active',_0x21ccb8),_0x38aea5['writer']['removeAttribute']('data-suggestion',_0x21ccb8),_0x38aea5['mapper']['unbindElementFromMarkerName'](_0x21ccb8,_0xbcc32c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d48e7=this['editor'],_0x13be37=_0x5d48e7['locale'];function _0x32211a(_0x4ad756){return{'type':'format','content':o(_0x13be37,'*Format:*\x20%0',_0x4ad756)};}_0x5d48e7['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x585080=>{if('formatBlock'!=_0x585080['type'])return;const {data:_0x5867fc}=_0x585080;if(_0x5867fc){if('setTableRowHeader'==_0x5867fc['commandName']){const _0x2fbbfc=_0x5867fc['commandParams'][0x0]['forceValue'];return _0x32211a(o(_0x13be37,_0x2fbbfc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5867fc['commandName']){const _0x25e4b0=_0x5867fc['commandParams'][0x0]['forceValue'];return _0x32211a(o(_0x13be37,_0x25e4b0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x251413=>[_0x251413,null]));class It extends _0x4a6276{static get['requires'](){return[jt];}['afterInit'](){const _0x261512=this['editor'];if(!_0x261512['plugins']['has']('TableClipboard'))return;const _0x241d20=_0x261512['plugins']['get']('TrackChangesEditing'),_0x632494=_0x261512['plugins']['get']('TableUtils'),_0x3ee659=_0x261512['plugins']['get'](jt),_0x1ecec3=_0x261512['plugins']['get']('TableClipboard');_0x3ee659['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x261512['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x261512['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x391ee1=null;_0x261512['model']['on']('insertContent',(_0x336311,_0x33a596)=>{const [_0x1fea49,_0x16a7c6]=_0x33a596,_0x3f2ea5=_0x33a596[_0x33a596['length']-0x1];_0x3f2ea5&&_0x3f2ea5['forceDefaultExecution']||_0x241d20['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x32b349,_0x1ab936,_0x49526e,_0x1272c0,_0x5d9619){if(_0x1ab936&&!_0x1ab936['is']('documentSelection'))return!0x1;const _0x583b90=_0x5d9619['getTableIfOnlyTableInContent'](_0x32b349,_0x49526e);if(!_0x583b90||!he(_0x583b90,void 0x0,_0x1272c0))return!0x1;const _0x51a3ff=_0x1272c0['getSelectionAffectedTableCells'](_0x49526e['document']['selection']);if(!_0x51a3ff['length'])return!0x1;const _0x50b780=_0x51a3ff[0x0]['findAncestor']('table'),_0x578eb7=_0x1272c0['getRowIndexes'](_0x51a3ff),_0x323497=_0x1272c0['getColumnIndexes'](_0x51a3ff),_0x411557={'startRow':_0x578eb7['first'],'endRow':_0x578eb7['last'],'startColumn':_0x323497['first'],'endColumn':_0x323497['last']};return 0x1==_0x51a3ff['length']&&(_0x411557['endRow']+=_0x1272c0['getRows'](_0x583b90)-0x1,_0x411557['endColumn']+=_0x1272c0['getColumns'](_0x583b90)-0x1),he(_0x50b780,_0x411557,_0x1272c0);}(_0x1fea49,_0x16a7c6,_0x261512['model'],_0x632494,_0x1ecec3)&&(_0x336311['stop'](),_0x391ee1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x261512['model']['change'](()=>{_0x261512['model']['insertContent'](_0x33a596[0x0],_0x33a596[0x1],_0x33a596[0x2],{'forceDefaultExecution':!0x0});const _0x6b4cc7=_0x56098b(),{rowInsertionRanges:_0x47f525,columnInsertionRanges:_0x53f306,insertionRanges:_0xf36049,deletionRanges:_0x22c94f,cells:_0x2db3f4}=_0x391ee1;_0x47f525['length']&&_0x241d20['markMultiRangeInsertion'](_0x47f525,'tablePasteRow',{'tablePasteChainId':_0x6b4cc7}),_0x53f306['length']&&_0x241d20['markMultiRangeInsertion'](_0x53f306,'tablePasteColumn',{'tablePasteChainId':_0x6b4cc7}),_0xf36049['length']&&(_0x241d20['markMultiRangeInsertion'](_0xf36049,'tablePaste',{'tablePasteChainId':_0x6b4cc7,'skipNestingCheck':!0x0}),_0xf36049['forEach'](_0x213648=>{var _0x15970e;return null===(_0x15970e=_0x213648['detach'])||void 0x0===_0x15970e?void 0x0:_0x15970e['call'](_0x213648);})),_0x22c94f['length']&&(_0x241d20['markMultiRangeDeletion'](_0x22c94f,'tablePaste',{'tablePasteChainId':_0x6b4cc7,'skipNestingCheck':!0x0}),_0x22c94f['forEach'](_0x592194=>{var _0x226423;return null===(_0x226423=_0x592194['detach'])||void 0x0===_0x226423?void 0x0:_0x226423['call'](_0x592194);}));const _0x108c94=_0x241d20['markMultiRangeBlockFormat'](_0x2db3f4['map'](({element:_0x1dc741})=>_0x1dc741),{'formatGroupId':_0x56098b()},[],'tablePasteCell',{'tablePasteChainId':_0x6b4cc7});if(_0x108c94){const _0x446972=_0x108c94['getMarkers'](),_0x535437=[];for(const {element:_0x2758ee,attributes:_0x242215}of _0x2db3f4){if(!_0x242215)continue;const _0x5c6035=_0x261512['model']['createRangeOn'](_0x2758ee),_0x40de65=_0x446972['find'](_0x2d48a2=>_0x2d48a2['getRange']()['isEqual'](_0x5c6035));_0x40de65&&_0x535437['push']([_0x40de65['name'],_0x242215]);}_0x535437['length']&&_0x108c94['setAttribute']('markerAttributes',Object['fromEntries'](_0x535437));}_0x391ee1=null;}));},{'priority':_0x39178d['high']+0xa}),_0x261512['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x39b28c,_0x525218)=>{const [_0x4e0493,_0x48138e,,_0x17de78]=_0x525218;if(!_0x391ee1)return;_0x39b28c['stop']();const _0x377a64=_0x4e0493['cell'],_0x1de7ad=_0x48138e,_0x557b7f=Pe(_0x377a64),_0x4af68d=Pe(_0x1de7ad);_0x39b28c['return']=_0x377a64;let _0x2d5786=null,_0x28c8c8=null;if(_0x4af68d||_0x557b7f){if(_0x557b7f&&!_0x4af68d){_0x17de78['remove'](_0x377a64['getChild'](0x0));for(const _0x29b973 of Array['from'](_0x1de7ad['getChildren']()))_0x17de78['insert'](_0x29b973,_0x377a64,'end');const _0x4dc99b=_0x391ee1['rowInsertionIndexes']['includes'](_0x4e0493['row']),_0x251e92=_0x391ee1['columnInsertionIndexes']['includes'](_0x4e0493['column']);_0x4dc99b||_0x251e92||(_0x2d5786=_0x2e827c['fromRange'](_0x17de78['createRangeIn'](_0x377a64)));}else _0x4af68d&&!_0x557b7f&&(_0x28c8c8=_0x17de78['createRangeIn'](_0x377a64));}else{const _0x539c1f=_0x17de78['createElement']('tableCellSuggestion'),_0x15f030=_0x17de78['createElement']('tableCellSuggestion');_0x17de78['wrap'](_0x17de78['createRangeIn'](_0x377a64),_0x15f030),_0x17de78['insert'](_0x539c1f,_0x377a64,0x0);for(const _0x27bbb1 of Array['from'](_0x1de7ad['getChildren']()))_0x17de78['insert'](_0x27bbb1,_0x539c1f,'end');_0x2d5786=_0x2e827c['fromRange'](_0x17de78['createRangeOn'](_0x539c1f)),_0x28c8c8=_0x2e827c['fromRange'](_0x17de78['createRangeOn'](_0x15f030));}const _0x947f03=Array['from'](_0x1de7ad['getAttributes']())['filter'](([_0x1b59c5])=>ge['includes'](_0x1b59c5));_0x391ee1['cells']['push']({'element':_0x377a64,'attributes':_0x947f03['length']?Object['fromEntries'](_0x947f03):null}),_0x2d5786&&_0x391ee1['insertionRanges']['push'](_0x2d5786),_0x28c8c8&&_0x391ee1['deletionRanges']['push'](_0x28c8c8);},{'priority':'high'}),_0x632494['on']('insertColumns',(_0x886cc5,_0x5b8ebe)=>{const [_0x5afc59,_0x142b6f={}]=_0x5b8ebe;if(!_0x391ee1)return;const _0xcdaea3=_0x142b6f['at']||0x0,_0x12b173=_0x142b6f['columns']||0x1;_0x391ee1['columnInsertionIndexes']=new Array(_0x12b173)['fill'](_0xcdaea3)['map']((_0x5b20e2,_0x3db149)=>_0x5b20e2+_0x3db149);for(const {cell:_0x3fd4b1}of _0x632494['createTableWalker'](_0x5afc59,{'startColumn':_0xcdaea3,'endColumn':_0xcdaea3+_0x12b173-0x1}))_0x391ee1['columnInsertionRanges']['push'](_0x261512['model']['createRangeOn'](_0x3fd4b1));},{'priority':'low'}),_0x632494['on']('insertRows',(_0x13f724,_0x3085e1)=>{const [_0x2c264f,_0x5af3de={}]=_0x3085e1;if(!_0x391ee1)return;const _0x226b4b=_0x5af3de['at']||0x0,_0x59bcec=_0x5af3de['rows']||0x1;_0x391ee1['rowInsertionIndexes']=new Array(_0x59bcec)['fill'](_0x226b4b)['map']((_0x20dc7d,_0x5f21c7)=>_0x20dc7d+_0x5f21c7);for(const {cell:_0x58b50f}of _0x632494['createTableWalker'](_0x2c264f,{'startRow':_0x226b4b,'endRow':_0x226b4b+_0x59bcec-0x1}))_0x391ee1['rowInsertionRanges']['push'](_0x261512['model']['createRangeOn'](_0x58b50f));},{'priority':'low'}),_0x241d20['_descriptionFactory']['registerDescriptionCallback'](_0x3b56b1=>{if(_0x3b56b1['subType']&&_0x3b56b1['subType']['startsWith']('tablePaste'))return _0x3b56b1['previous']?{}:{'type':'insertion','content':o(_0x261512['locale'],'*Replace\x20table\x20cells*')};});const _0xfc2e1=()=>!0x1;for(const _0x6717f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x241d20['_suggestionFactory']['registerCustomCallback']('insertion',_0x6717f,'join',_0xfc2e1),_0x241d20['_suggestionFactory']['registerCustomCallback']('deletion',_0x6717f,'join',_0xfc2e1),_0x241d20['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6717f,'join',_0xfc2e1);_0x241d20['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xfc2e1),_0x241d20['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x26d356,_0xab882a,_0x48f643)=>{const _0x4eeb41=_0x26d356['map'](_0x4f682d=>_0x4f682d['getContainedElement']())['filter'](_0x3d40a8=>_0x3d40a8),_0x2a5c13=new Map(_0x4eeb41['map'](_0x47f3b0=>[_0x47f3b0,null]));if(_0x391ee1){for(const {element:_0x5e9684,attributes:_0x564380}of _0x391ee1['cells'])_0x564380&&_0x2a5c13['set'](_0x5e9684,_0x564380);}else{if(_0x48f643&&_0x48f643['markerAttributes'])for(const [_0x4792b3,_0x44c23b]of Object['entries'](_0x48f643['markerAttributes'])){const _0x10cdaf=_0x261512['model']['markers']['get'](_0x4792b3),_0xfbdf09=_0x10cdaf?_0x10cdaf['getRange']()['getContainedElement']():null;_0xfbdf09&&_0x2a5c13['set'](_0xfbdf09,_0x44c23b);}}_0x261512['model']['change'](_0x5c0f0e=>{for(const [_0x414d07,_0x1fd3da]of _0x2a5c13)_0x5c0f0e['setAttributes']({...Ce,..._0x1fd3da},_0x414d07);});});const _0x452091=(_0x4c6c2f,_0x4737b9)=>{_0x241d20['_suggestionFactory']['registerCustomCallback'](_0x4c6c2f,'tablePaste',_0x4737b9,(_0xcf8567,_0x4de4a7,_0x379923)=>{_0x261512['model']['change'](_0x4a7d4b=>{const _0x435008=[];for(const _0x3cf29b of _0xcf8567){const _0x34092e=_0x3cf29b['start']['nodeAfter'];_0x34092e['is']('element','tableCellSuggestion')&&_0x435008['push'](_0x34092e);}_0x241d20['_suggestionFactory']['getSuggestionCallback'](_0x4c6c2f,null,_0x4737b9)(_0xcf8567,_0x4de4a7,_0x379923);for(const _0x20af1c of _0x435008)'$graveyard'!=_0x20af1c['root']['rootName']&&_0x4a7d4b['unwrap'](_0x20af1c);});});};_0x452091('insertion','accept'),_0x452091('insertion','discard'),_0x452091('deletion','accept'),_0x452091('deletion','discard'),_0x241d20['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x6e6c85=>{const _0x40bce6=_0x6e6c85['map'](_0x345834=>_0x345834['getContainedElement']()),_0x164f10=_0x40bce6[0x0]['findAncestor']('table'),{minRow:_0x4f77f8,maxRow:_0x516370}=_0x3ee659['_getCoordsForCells'](_0x40bce6);_0x632494['removeRows'](_0x164f10,{'at':_0x4f77f8,'rows':_0x516370-_0x4f77f8+0x1});}),_0x241d20['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5e91a8=>{const _0x99c870=_0x5e91a8['map'](_0x5e1e79=>_0x5e1e79['getContainedElement']()),_0x4572c2=_0x99c870[0x0]['findAncestor']('table'),{minColumn:_0x51ed69,maxColumn:_0x223cea}=_0x3ee659['_getCoordsForCells'](_0x99c870);_0x632494['removeColumns'](_0x4572c2,{'at':_0x51ed69,'columns':_0x223cea-_0x51ed69+0x1});});const _0x2b629d=(_0x2f386a,_0x1e0dac)=>{if(!_0x1e0dac['subType']||!_0x1e0dac['subType']['startsWith']('tablePaste'))return;const _0x3f5373=_0x1e0dac['attributes']['tablePasteChainId'],_0x2da0b7=_0x241d20['getSuggestions']()['filter'](_0x1039c8=>_0x1039c8['isInContent']&&_0x1039c8['attributes']&&_0x1039c8['attributes']['tablePasteChainId']==_0x3f5373);_0x2da0b7['length']&&_0x1e0dac['getAllAdjacentSuggestions']()['length']!=_0x2da0b7['length']&&_0x2da0b7['reduce']((_0x266c17,_0x194096)=>(_0x266c17['next']=_0x194096,_0x194096['previous']=_0x266c17,_0x194096));};function _0x19388a(_0x2e9649,_0x60ee18=!0x0){const {id:_0x2c64bc}=_0x241d20['_splitMarkerName'](_0x2e9649['markerName']),_0x1a9eb9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x45aef6=_0x241d20['activeMarkers']['includes'](_0x2e9649['markerName']);return _0x45aef6&&_0x1a9eb9['push']('ck-suggestion-marker--active'),{'classes':_0x1a9eb9,'attributes':{'data-suggestion':_0x2c64bc},'priority':_0x45aef6&&_0x60ee18?0xbc2:0xbb8};}_0x241d20['on']('suggestionLoaded',_0x2b629d,{'priority':'high'}),_0x241d20['on']('suggestionUnloaded',_0x2b629d,{'priority':'high'}),_0x261512['model']['document']['registerPostFixer'](()=>{let _0x269a54=!0x1;const _0x339c24=Array['from'](_0x261512['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x259460,data:_0x4f3343}of _0x339c24){const {group:_0x5af191,type:_0xc02c9a,id:_0xd21bcd}=_0x241d20['_splitMarkerName'](_0x259460);if('suggestion'!=_0x5af191||'deletion'!=_0xc02c9a||_0x4f3343['oldRange'])continue;if(!_0x241d20['hasSuggestion'](_0xd21bcd))continue;const _0x4776a8=_0x241d20['getSuggestion'](_0xd21bcd)['getRanges'](),_0x3ff213=_0x261512['plugins']['get']('Users')['me'];for(const _0x4afd07 of _0x241d20['getSuggestions']()){if(!_0x4afd07['isInContent']||_0x4afd07['author']!=_0x3ff213)continue;if('formatBlock'!=_0x4afd07['type']||'tablePasteCell'!=_0x4afd07['subType'])continue;if(_0x4afd07['getRanges']()['every'](_0x48f0f3=>_0x4776a8['some'](_0x5982e3=>_0x5982e3['containsRange'](_0x48f0f3,!0x0)))){for(const _0x31c099 of _0x4afd07['getAllAdjacentSuggestions']())_0x31c099['isInContent']&&(_0x31c099['discard'](),_0x269a54=!0x0);}}}return _0x269a54;}),_0x261512['model']['document']['registerPostFixer'](_0x13227c=>{const _0x40f6d5=_0x261512['commands']['get']('redo');if(!_0x40f6d5||!_0x40f6d5['_createdBatches']['has'](_0x13227c['batch']))return!0x1;let _0x2dde3a=!0x1;const _0x35acae=_0x261512['plugins']['get']('Users')['me'],_0x143c44=_0x261512['model']['document']['differ']['getChanges'](),_0xe443ed=Array['from'](_0x261512['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x20f003,data:_0x4d7484})=>{const {group:_0x2b820c,subType:_0x484f34,authorId:_0x3e62af}=_0x241d20['_splitMarkerName'](_0x20f003);return'suggestion'==_0x2b820c&&'tablePaste'==_0x484f34&&_0x3e62af==_0x35acae['id']&&!_0x4d7484['oldRange'];});for(const _0x1005c6 of _0x143c44){if('insert'!=_0x1005c6['type']||'tableCellSuggestion'!=_0x1005c6['name']||0x1!=_0x1005c6['length'])continue;const _0x48c2bf=_0x13227c['createRange'](_0x1005c6['position'],_0x1005c6['position']['getShiftedBy'](0x1));if(!_0xe443ed['find'](({data:_0x3076a0})=>_0x3076a0['newRange']['isEqual'](_0x48c2bf))){for(const {name:_0x216762,data:_0x4d8613}of _0xe443ed)if(_0x48c2bf['containsRange'](_0x4d8613['newRange'])){_0x13227c['updateMarker'](_0x216762,{'range':_0x48c2bf}),_0x2dde3a=!0x0;break;}}}return _0x2dde3a;}),_0x261512['model']['document']['registerPostFixer'](_0x557cc7=>{let _0x3542fd=!0x1;const _0x2869fc=_0x261512['plugins']['get']('Users')['me'],_0x3f4ec9=_0x241d20['getSuggestions']()['filter'](_0x1457c4=>_0x1457c4['isInContent']&&_0x1457c4['author']==_0x2869fc),_0xac021c=new Set(),_0x10c358=new Set();for(const _0x57a97c of _0x3f4ec9)if('tablePaste'==_0x57a97c['subType'])for(const _0x2fe8eb of _0x57a97c['getMarkers']()){const _0x5aecc6=_0x2fe8eb['getRange']()['getContainedElement']();if(_0x5aecc6){if(_0x5aecc6['is']('element','tableCellSuggestion')&&Pe(_0x5aecc6)){_0x57a97c['removeMarker'](_0x2fe8eb['name']),_0xac021c['add'](_0x5aecc6),_0x3542fd=!0x0;const _0xced8af=_0x5aecc6['nextSibling'],_0x73fa0d=_0x5aecc6['previousSibling'],_0x4e3e56=_0xced8af&&_0xced8af['is']('element','tableCellSuggestion'),_0x4d2615=_0x73fa0d&&_0x73fa0d['is']('element','tableCellSuggestion');_0x4e3e56&&!_0xac021c['has'](_0xced8af)&&_0x10c358['add'](_0xced8af),_0x4d2615&&!_0xac021c['has'](_0x73fa0d)&&_0x10c358['add'](_0x73fa0d);}else _0x5aecc6['is']('element','paragraph')&&_0x5aecc6['isEmpty']&&(_0x57a97c['removeMarker'](_0x2fe8eb['name']),_0x3542fd=!0x0);}}else{if('tablePasteCell'==_0x57a97c['subType']){if(!_0x57a97c['attributes']||!_0x57a97c['attributes']['tablePasteChainId'])continue;const _0x332d10=_0x57a97c['attributes']['markerAttributes'];if(_0x332d10&&Object['keys'](_0x332d10)['length'])continue;const _0x319c46=_0x57a97c['attributes']['tablePasteChainId'];let _0x4cd995=!0x0,_0x4b7a7b=!0x0;for(const _0x3c0a11 of _0x3f4ec9)if(_0x3c0a11['subType']&&_0x3c0a11['subType']['startsWith']('tablePaste')){if(!_0x3c0a11['attributes']['tablePasteChainId']){_0x4b7a7b=!0x1;break;}if(_0x3c0a11['id']!=_0x57a97c['id']&&_0x3c0a11['attributes']['tablePasteChainId']==_0x319c46){_0x4cd995=!0x1;break;}}_0x4b7a7b&&_0x4cd995&&(_0x57a97c['removeMarkers'](),_0x3542fd=!0x0);}}for(const _0x2ab391 of _0xac021c)_0x557cc7['remove'](_0x2ab391);for(const _0x2ed244 of _0x10c358)_0x557cc7['unwrap'](_0x2ed244);return _0x3542fd;}),_0x261512['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2cc04b,_0x405117)=>_0x19388a(_0x2cc04b),'converterPriority':'high'}),_0x261512['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23a889,_0x43a5b2)=>_0x43a5b2['options']['showSuggestionHighlights']?_0x19388a(_0x23a889,!0x1):null,'converterPriority':'high'});const _0x50f559=_0x261512['editing']['view'];this['listenTo'](_0x50f559['document'],'clipboardOutput',(_0x38bfac,_0x28c313)=>{const _0x4ecde1=[];for(const _0x27c438 of _0x50f559['createRangeIn'](_0x28c313['content'])['getItems']())_0x27c438['is']('element','suggestion-td')&&_0x4ecde1['push'](_0x27c438);_0x50f559['change'](_0x1b21a4=>{for(const _0x1a8678 of _0x4ecde1)_0x1b21a4['move'](_0x1b21a4['createRangeIn'](_0x1a8678),_0x1b21a4['createPositionBefore'](_0x1a8678)),_0x1b21a4['remove'](_0x1a8678);});});}}function Pe(_0x2726e1){if(_0x2726e1['isEmpty'])return!0x0;const _0x5e0fdc=_0x2726e1['getChild'](0x0);return _0x5e0fdc['is']('element','paragraph')&&_0x5e0fdc['isEmpty'];}function he(_0x1b0ef7,_0xe54841={},_0xd50ad1){for(const {isAnchor:_0xb160e8,cellHeight:_0x444697,cellWidth:_0x32b72b}of _0xd50ad1['createTableWalker'](_0x1b0ef7,{'includeAllSlots':!0x0,..._0xe54841}))if(!_0xb160e8||0x1!=_0x444697||0x1!=_0x32b72b)return!0x1;return!0x0;}class vt extends _0x4a6276{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xc72ace=this['editor']['plugins']['get']('TrackChangesEditing');_0xc72ace['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xc72ace['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xc72ace['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc72ace['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xc72ace['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xc72ace['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xc4c3e5,_0x58f822){const _0x333c72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579a0f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2b3dc3=_0x58f822['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x82d164=_0x579a0f['getColumnGroupElement'](_0x2b3dc3);let _0x29cbd5=_0x82d164?_0x579a0f['getTableColumnsWidths'](_0x82d164):null,_0x4ccd25=_0x2b3dc3['getAttribute']('tableWidth')||null;const _0x436e62=_0x58f822['tableWidth']||_0x4ccd25,_0x3a9a44=_0x58f822['columnWidths']||_0x29cbd5,_0xb13e9d=this['editor']['plugins']['get']('Users')['me'];for(const _0x91f946 of _0x333c72['getSuggestions']()){const _0x221170=_0x91f946['getContainedElement']();if('resizeTable'===_0x91f946['subType']&&_0x221170===_0x2b3dc3){_0x91f946['author']!==_0xb13e9d&&_0x91f946['discard']();const _0x31fad3=_0x91f946['data']['commandParams'];_0x4ccd25=_0x31fad3[0x0]['tableWidth'],_0x29cbd5=_0x31fad3[0x0]['columnWidths'];break;}}_0xc4c3e5({'table':_0x2b3dc3,'tableWidth':_0x436e62,'columnWidths':_0x3a9a44}),_0x333c72['markBlockFormat'](_0x2b3dc3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ccd25,'columnWidths':_0x29cbd5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x85e0e5){if('formatBlock'!=_0x85e0e5['type']&&'formatInline'!=_0x85e0e5['type'])return;const {data:_0x25d34d}=_0x85e0e5;if(_0x25d34d&&'resizeTable'===_0x25d34d['formatGroupId']){const _0x7cc4bc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x7cc4bc)};}}}class _t extends _0x4a6276{['afterInit'](){const _0x4097b7=this['editor'];_0x4097b7['plugins']['has']('Template')&&_0x4097b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x4a6276{['afterInit'](){const _0x1d4917=this['editor'];if(!_0x1d4917['commands']['get']('insertTableOfContents'))return;_0x1d4917['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e6d1a=_0x1d4917['plugins']['get']('TrackChangesEditing'),_0xf6340b=_0x1d4917['locale'];_0x1e6d1a['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x4744e0=>o(_0xf6340b,'ELEMENT_TABLE_OF_CONTENTS',_0x4744e0));}}class Dt extends _0x4a6276{['afterInit'](){const _0x502cbf=this['editor'];if(!_0x502cbf['plugins']['has']('Title'))return;const _0x410615=_0x502cbf['plugins']['get']('TrackChangesEditing');_0x410615['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x502cbf['locale'],'ELEMENT_TITLE')),_0x502cbf['model']['document']['registerPostFixer'](_0x37791f=>{let _0x508fb4=!0x1;const _0x4541f1=Array['from'](_0x502cbf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x354a2d,data:_0x2e7177}of _0x4541f1){const {group:_0xac60f8}=_0x410615['_splitMarkerName'](_0x354a2d);if('suggestion'!==_0xac60f8||!_0x2e7177['newRange'])continue;const _0x1a5ff9=_0x2e7177['newRange'],_0x2e2cc2=_0x1a5ff9['end']['nodeBefore'];if(!_0x2e2cc2||!_0x2e2cc2['is']('element','title-content'))continue;if(!_0x1a5ff9['start']['isTouching'](_0x1a5ff9['end']))continue;const _0x23bd97=_0x502cbf['model']['schema']['getNearestSelectionRange'](_0x1a5ff9['end'],'forward');if(_0x23bd97&&_0x23bd97['isCollapsed']){const _0x243c05=_0x37791f['createRange'](_0x1a5ff9['start'],_0x23bd97['start']);_0x243c05['isEqual'](_0x1a5ff9)||(_0x37791f['updateMarker'](_0x354a2d,{'range':_0x243c05}),_0x508fb4=!0x0);}_0x508fb4||(_0x37791f['removeMarker'](_0x354a2d),_0x508fb4=!0x0);}return _0x508fb4;});}}class Nt extends _0x4a6276{['afterInit'](){const _0x14fcc1=this['editor'],_0xa9c5f7=_0x14fcc1['plugins']['get']('TrackChangesEditing');_0x14fcc1['plugins']['has']('UndoEditing')&&(_0xa9c5f7['enableCommand']('undo'),_0xa9c5f7['enableCommand']('redo'));}}class Mt extends _0x4a6276{static get['requires'](){return[jt];}['afterInit'](){const _0x3f94d1=this['editor'];if(!_0x3f94d1['plugins']['has']('TableCaptionEditing'))return;_0x3f94d1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4a6276{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x141daf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3020b9 of this['tableProperties'])_0x141daf['enableCommand'](_0x3020b9,(_0x187bf7,_0x30e95c)=>{const _0x368013=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3020b9,[_0x368013],this['tableProperties'],'tableProperties',_0x187bf7,_0x30e95c);});_0x141daf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x141daf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141daf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x285290,_0x55ea3f)=>this['handleDiscardAction'](this['tableProperties'],_0x285290,_0x55ea3f)),_0x141daf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4fa2c0 of this['tableCellProperties'])_0x141daf['enableCommand'](_0x4fa2c0,(_0x2bc1e8,_0xd83593)=>{const _0x4a7b11=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4fa2c0,_0x4a7b11,this['tableCellProperties'],'tableCellProperties',_0x2bc1e8,_0xd83593);});_0x141daf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x141daf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141daf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5cb100,_0x548b0d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5cb100,_0x548b0d)),_0x141daf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x141daf['_descriptionFactory']['registerDescriptionCallback'](_0x308c38=>this['handleSuggestionDescription'](_0x308c38));}['_handlePropertyChange'](_0x47f508,_0x2ebce1,_0x54355f,_0xb548d,_0x3adf6c,_0x594b32){const _0x223631=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x594b32['batch'],()=>{for(const _0x25ca55 of _0x2ebce1){if(this['_getSuggestion'](_0x25ca55,_0xb548d))_0x3adf6c(_0x594b32);else{const _0x4ec5da={};for(const _0x365d8f of _0x54355f){const _0x58fda7=_0x25ca55['getAttribute'](_0x365d8f);void 0x0!==_0x58fda7&&(_0x4ec5da[_0x365d8f]=_0x58fda7);}_0x3adf6c(_0x594b32),_0x223631['markBlockFormat'](_0x25ca55,{'commandParams':[_0x4ec5da]},[],_0xb548d);}}});}['handleDiscardAction'](_0x256d05,_0x1d2350,_0x7a677c){const _0x68e7ef=_0x1d2350[0x0]['start']['nodeAfter'],_0x63474b=_0x7a677c['commandParams'][0x0];this['editor']['model']['change'](_0x47ab47=>{for(const _0x33365e of _0x256d05)void 0x0!==_0x63474b[_0x33365e]?_0x47ab47['setAttribute'](_0x33365e,_0x63474b[_0x33365e],_0x68e7ef):_0x47ab47['removeAttribute'](_0x33365e,_0x68e7ef);});}['handleSuggestionDescription'](_0x4799d5){if(_0x4799d5['data'])switch(_0x4799d5['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'](_0x3cb9a9,_0xf48430){const _0x2c7a03=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f7ba8 of _0x2c7a03['getSuggestions']({'skipNotAttached':!0x0})){const _0x3d21b7=_0x2f7ba8['getContainedElement']();if(_0x2f7ba8['subType']===_0xf48430&&_0x3d21b7===_0x3cb9a9)return _0x2f7ba8;}return null;}constructor(_0x52ef90){super(_0x52ef90),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x4a6276{static get['requires'](){return['CommentsRepository',_0x3c9426,_0x4bbcdb,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x2afcc4=this['editor'],_0x449251=(_0xf3eb3f,_0x18b87d)=>{if('attribute'!=_0xf3eb3f)return'ck-suggestion-marker-'+_0xf3eb3f;const _0x1f9ba6=_0x18b87d['split']('|')[0x0];return this['_isBlockAttribute'](_0x1f9ba6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2afcc4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x52ce48=>{const {id:_0x5a5764,type:_0x499066,subType:_0x2981fb}=this['_splitMarkerName'](_0x52ce48['markerName']),_0x10f9d4=['ck-suggestion-marker',_0x449251(_0x499066,_0x2981fb)];let _0x125736=0xbb8;return this['activeMarkers']['includes'](_0x52ce48['markerName'])&&(_0x10f9d4['push']('ck-suggestion-marker--active'),_0x125736=0xbc2),'deletion'==_0x499066&&(_0x125736+=0x5),{'classes':_0x10f9d4,'attributes':{'data-suggestion':_0x5a5764},'priority':_0x125736};}}),_0x2afcc4['conversion']['for']('dataDowncast')['add'](_0x2e441e=>{_0x2e441e['on']('addMarker:suggestion',(_0x24621a,_0x3492df,_0x441d8f)=>{if(!_0x441d8f['options']['showSuggestionHighlights'])return;const _0x54a31b=_0x3492df['item'];if(!_0x54a31b)return;const _0x300c3c=_0x441d8f['mapper']['toViewElement'](_0x54a31b);_0x2afcc4['model']['schema']['isObject'](_0x54a31b)&&_0x300c3c&&!_0x300c3c['getCustomProperty']('widget')&&_0x300c3c['is']('containerElement')&&_0x55703a(_0x300c3c,_0x441d8f['writer']);},{'priority':'high'});}),_0x2afcc4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x57e18a,_0x45da89)=>{if(!_0x45da89['options']['showSuggestionHighlights'])return null;const {type:_0x45ef49,subType:_0x2f54a8}=this['_splitMarkerName'](_0x57e18a['markerName']);return{'classes':['ck-suggestion-marker',_0x449251(_0x45ef49,_0x2f54a8)],'priority':0xbb8};}});const _0x45aa17=({showActiveMarkers:_0x343688=!0x0,isAttributeSuggestion:_0x1466a6=!0x1}={})=>(_0x44db57,_0x115ab4,_0x463a00)=>{if(!_0x115ab4['item'])return;const {id:_0x2f2e27}=this['_splitMarkerName'](_0x115ab4['markerName']);if(_0x1466a6){const _0x468759=this['_suggestions']['get'](_0x2f2e27),_0x4f2482=this['_getAttributeKey'](_0x468759);if(!this['_isBlockAttribute'](_0x4f2482))return;}if(_0x115ab4['item']['is']('selection'))return void _0x463a00['consumable']['consume'](_0x115ab4['item'],_0x44db57['name']);const _0x44eb35=_0x463a00['mapper']['toViewElement'](_0x115ab4['item']);if(_0x115ab4['item']['is']('element')&&_0x2afcc4['model']['schema']['isBlock'](_0x115ab4['item'])&&!_0x44eb35['getCustomProperty']('addHighlight')){_0x463a00['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x44eb35),_0x463a00['writer']['setAttribute']('data-suggestion',_0x2f2e27,_0x44eb35),_0x463a00['mapper']['bindElementToMarker'](_0x44eb35,_0x115ab4['markerName']),_0x343688&&(this['activeMarkers']['includes'](_0x115ab4['markerName'])?_0x463a00['writer']['addClass']('ck-suggestion-marker--active',_0x44eb35):_0x463a00['writer']['removeClass']('ck-suggestion-marker--active',_0x44eb35));for(const _0x109baf of _0x2afcc4['model']['createRangeIn'](_0x115ab4['item'])['getItems']())_0x463a00['consumable']['consume'](_0x109baf,_0x44db57['name']);_0x463a00['consumable']['consume'](_0x115ab4['item'],_0x44db57['name']);}};_0x2afcc4['conversion']['for']('dataDowncast')['add'](_0x8d8f26=>{_0x8d8f26['on']('addMarker:suggestion:formatBlock',(_0x2c2857,_0x3d7210,_0x3a6e03)=>{_0x3a6e03['options']['showSuggestionHighlights']&&_0x45aa17({'showActiveMarkers':!0x1})(_0x2c2857,_0x3d7210,_0x3a6e03);},{'priority':'highest'});}),_0x2afcc4['conversion']['for']('dataDowncast')['add'](_0x3b6aae=>{_0x3b6aae['on']('addMarker:suggestion:attribute',(_0x3e4b30,_0x4fdd9b,_0x180607)=>{_0x180607['options']['showSuggestionHighlights']&&_0x45aa17({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3e4b30,_0x4fdd9b,_0x180607);},{'priority':'highest'});}),_0x2afcc4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x30e0fe,_0x5b201b)=>_0x5b201b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x30e0fe['substr'](0xb)}}),_0x2afcc4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x26d342,{writer:_0x232d76})=>{let _0x2d420f='suggestion:'+_0x26d342['getAttribute']('suggestion-type')+':'+_0x26d342['getAttribute']('id');return _0x26d342['getAttribute']('marker-count')&&(_0x2d420f+=':'+_0x26d342['getAttribute']('marker-count')),_0x232d76['createElement']('$marker',{'data-name':_0x2d420f});}}),_0x2afcc4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2afcc4['conversion']['for']('editingDowncast')['add'](_0x467df3=>{_0x467df3['on']('addMarker:suggestion:formatBlock',_0x45aa17(),{'priority':'high'});}),_0x2afcc4['conversion']['for']('editingDowncast')['add'](_0x348ad0=>{_0x348ad0['on']('addMarker:suggestion:attribute',_0x45aa17({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2afcc4['conversion']['for']('editingDowncast')['add'](_0x42fd4f=>{_0x42fd4f['on']('removeMarker:suggestion:formatBlock',(_0xedbc90,_0x233183,_0x3700c8)=>{const _0x549262=_0x3700c8['mapper']['markerNameToElements'](_0x233183['markerName']);if(_0x549262){for(const _0x2ed1ab of _0x549262)_0x2ed1ab['getCustomProperty']('addHighlight')||(_0x3700c8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ed1ab),_0x3700c8['writer']['removeAttribute']('data-suggestion',_0x2ed1ab),_0x3700c8['mapper']['unbindElementFromMarkerName'](_0x2ed1ab,_0x233183['markerName']));}},{'priority':'high'});}),_0x2afcc4['conversion']['for']('editingDowncast')['add'](_0x1db03b=>{_0x1db03b['on']('removeMarker:suggestion:attribute',(_0x1b9e94,_0x544284,_0x772d64)=>{const _0x454188=_0x772d64['mapper']['markerNameToElements'](_0x544284['markerName']);if(!_0x454188)return;const {id:_0x28d121}=this['_splitMarkerName'](_0x544284['markerName']),_0x4a97b3=this['_suggestions']['get'](_0x28d121),_0x5521b0=this['_getAttributeKey'](_0x4a97b3);if(this['_isBlockAttribute'](_0x5521b0)){for(const _0x1e693e of _0x454188)_0x1e693e['getCustomProperty']('addHighlight')||(_0x772d64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e693e),_0x772d64['writer']['removeAttribute']('data-suggestion',_0x1e693e),_0x772d64['mapper']['unbindElementFromMarkerName'](_0x1e693e,_0x544284['markerName']));}},{'priority':'high'});}),_0x2afcc4['model']['document']['registerPostFixer'](_0x599893=>{let _0x128dfe=!0x1;const _0x135c5d=Array['from'](_0x2afcc4['model']['document']['differ']['getChangedMarkers']()),_0x57763d=new Set();for(const {name:_0x1af415,data:_0x2bcd54}of _0x135c5d){const {group:_0x423292,type:_0x34604a,subType:_0x174bf9,id:_0x41f9e2}=this['_splitMarkerName'](_0x1af415);if('suggestion'!==_0x423292)continue;const _0x3599b5=this['_suggestions']['get'](_0x41f9e2);if(null!=_0x2bcd54['newRange']){'formatInline'==_0x34604a&&(_0x128dfe=_0x128dfe||Et(_0x2bcd54['newRange'],_0x1af415,_0x599893,_0x2afcc4['model']['schema']));const _0x468602='attribute'==_0x34604a&&this['_isBlockAttribute'](_0x174bf9['split']('|')[0x0]);if(_0x2bcd54['newRange']['isCollapsed']||'$graveyard'==_0x2bcd54['newRange']['root']['rootName']||'formatBlock'==_0x34604a&&!Ut(_0x2bcd54['newRange'])||_0x468602&&!Ut(_0x2bcd54['newRange'])||'deletion'==_0x34604a&&!(!Tt(_0x54cff8=_0x2bcd54['newRange'])&&!function(_0x20a6d1){return _0x20a6d1['start']['parent']==_0x20a6d1['end']['nodeBefore']&&_0x20a6d1['start']['isAtEnd'];}(_0x54cff8)))_0x599893['removeMarker'](_0x1af415),_0x128dfe=!0x0;else{if(!_0x3599b5||!_0x3599b5['isInContent'])continue;_0x57763d['add'](_0x3599b5);}}}var _0x54cff8;return _0x57763d['size']>0x0&&(_0x128dfe=!!this['_joinWithAdjacentSuggestions'](_0x57763d)||_0x128dfe),_0x128dfe;}),_0x2afcc4['model']['document']['registerPostFixer'](_0x2bd1c4=>{let _0x42f9b7=!0x1;for(const _0x3a5a8c of _0x2afcc4['model']['document']['differ']['getChanges']())if('insert'==_0x3a5a8c['type'])for(const _0x18c82b of this['_suggestions']['values']()){if(_0x18c82b['isMultiRange']||!_0x18c82b['isInContent'])continue;const _0x21a4e1='formatBlock'==_0x18c82b['type'],_0x4a4b84=this['_getAttributeKey'](_0x18c82b),_0x116884=_0x4a4b84&&this['_isBlockAttribute'](_0x4a4b84);if(!_0x21a4e1&&!_0x116884)continue;const _0x326450=_0x18c82b['getFirstRange']();if(_0x326450['start']['parent']!=_0x326450['end']['parent']&&!_0x326450['end']['isAtEnd']){const _0x119d89=_0x2afcc4['model']['createPositionAt'](_0x326450['start']['nodeAfter'],'end'),_0x34ce87=_0x2afcc4['model']['createRange'](_0x326450['start'],_0x119d89);_0x2bd1c4['updateMarker'](_0x18c82b['getFirstMarker'](),{'range':_0x34ce87}),_0x42f9b7=!0x0;}}return _0x42f9b7;}),_0x2afcc4['model']['document']['registerPostFixer'](_0x1d3873=>this['_processAttributeChanges'](_0x1d3873)),_0x2afcc4['model']['document']['registerPostFixer'](_0xf35a20=>!_0xf35a20['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xf35a20)),_0x2afcc4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2afcc4['model']['document']['on']('change:data',(_0x1a48cf,_0xcbaba6)=>{if(!_0xcbaba6['isLocal']||_0xcbaba6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3005c2=_0x2afcc4['model']['document']['differ']['getChanges']();if(0x0==_0x3005c2['length'])return;const _0x1a89ce=[],_0x19970f=_0x3005c2['filter'](_0x1bd193=>'attribute'==_0x1bd193['type']),_0x5537ec=_0x3005c2['filter'](_0x52a48b=>'insert'==_0x52a48b['type']&&'$text'!=_0x52a48b['name']),_0x112918=_0x3005c2['filter'](_0x305fe6=>'remove'==_0x305fe6['type']&&'$text'!=_0x305fe6['name']);for(const _0xdd9efa of _0x19970f)this['_isRegisteredAttribute'](_0xdd9efa['attributeKey'])&&_0x1a89ce['push']({'key':_0xdd9efa['attributeKey'],'newValue':_0xdd9efa['attributeNewValue'],'oldValue':_0xdd9efa['attributeOldValue'],'range':Ot(_0xdd9efa['range'],_0x2afcc4['model'])});for(const _0x5aa3ea of _0x5537ec){const _0x218910=_0x112918['find'](_0x5bec35=>_0x5bec35['_element']===_0x5aa3ea['_element']);if(_0x218910){const _0x43caf5=Gt(_0x5aa3ea['position']['nodeAfter'],_0x2afcc4['model']);_0x218910['name']!==_0x5aa3ea['name']&&_0x1a89ce['push']({'key':m,'newValue':_0x5aa3ea['name'],'oldValue':_0x218910['name'],'range':_0x43caf5});for(const [_0x2f1ec4,_0x6067d6]of _0x218910['attributes']){if(!this['_isRegisteredAttribute'](_0x2f1ec4))continue;const _0x5c384c=_0x5aa3ea['attributes']['get'](_0x2f1ec4);_0x6067d6!==_0x5c384c&&_0x1a89ce['push']({'key':_0x2f1ec4,'newValue':_0x5c384c,'oldValue':_0x6067d6,'range':_0x43caf5});}for(const [_0x1a8f6c,_0x4cef8f]of _0x5aa3ea['attributes'])this['_isRegisteredAttribute'](_0x1a8f6c)&&(_0x218910['attributes']['has'](_0x1a8f6c)||_0x1a89ce['push']({'key':_0x1a8f6c,'newValue':_0x4cef8f,'oldValue':null,'range':_0x43caf5}));}}0x0!=_0x1a89ce['length']&&_0x2afcc4['model']['enqueueChange'](_0xcbaba6,_0x2fbd66=>{const _0x5bac8c=_0x56098b();for(const {range:_0x220ec5,key:_0x546e36,oldValue:_0x26ac23,newValue:_0x1a3844}of _0x1a89ce)this['markAttributeChange'](_0x220ec5,_0x546e36,_0x26ac23,_0x1a3844,{'groupId':_0x5bac8c});this['_reduceExistingSuggestions'](_0x2fbd66,_0x1a89ce);});},{'priority':'lowest'}),_0x2afcc4['model']['markers']['on']('update:suggestion',(_0x1287eb,_0x3a21d6,_0x1858c0)=>{if(null==_0x1858c0){const {id:_0x4e47b8}=this['_splitMarkerName'](_0x3a21d6['name']),_0x1d5931=this['_suggestions']['get'](_0x4e47b8);_0x1d5931&&_0x1d5931['addMarkerName'](_0x3a21d6['name']);}}),_0x2afcc4['model']['document']['on']('change:data',()=>{const _0x585d28=Array['from'](_0x2afcc4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2dc90d=>'suggestion'===this['_splitMarkerName'](_0x2dc90d['name'])['group']);if(0x0===_0x585d28['length'])return;_0x585d28['sort']((_0x2ef3bf,_0x30ce6f)=>{const _0x20a6b3=_0x2ef3bf['data']['oldRange'],_0x2a5fcb=_0x30ce6f['data']['oldRange'];return null===_0x20a6b3&&null===_0x2a5fcb?0x0:null===_0x20a6b3&&null!==_0x2a5fcb?-0x1:null!==_0x20a6b3&&null===_0x2a5fcb?0x1:_0x20a6b3['start']['isBefore'](_0x2a5fcb['start'])?-0x1:0x1;});const _0x484a49=new Set(),_0x4a0304=new Set();for(const {name:_0x286930,data:_0x515259}of _0x585d28){const {id:_0x2ea1e7}=this['_splitMarkerName'](_0x286930);if(null===_0x515259['oldRange']){const _0x1157cf=this['_handleNewSuggestionMarker'](_0x286930);_0x4a0304['add'](_0x1157cf);}else{const _0x30b409=this['_suggestions']['get'](_0x2ea1e7);null!==_0x515259['newRange']||_0x30b409['isInContent']?(_0x484a49['add'](_0x30b409['head']),_0x4a0304['add'](_0x30b409)):this['_removeSuggestion'](_0x30b409);}}_0x4a0304['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a0304);for(const _0x452cd8 of _0x484a49)this['fire']('suggestionChanged',_0x452cd8);}),_0x2afcc4['model']['on']('applyOperation',(_0x4707c1,_0x19004c)=>{const _0x36dc26=_0x19004c[0x0];if(!this['_suggestions']['size'])return;if(!_0x36dc26['isDocumentOperation'])return;if(_0x36dc26['batch']['isUndo']||!_0x36dc26['batch']['isLocal'])return;let _0x62ccc2,_0x53650e;switch(_0x36dc26['type']){case'insert':_0x62ccc2=_0x2afcc4['model']['createPositionAt'](_0x36dc26['position']),_0x53650e=_0x62ccc2['getShiftedBy'](_0x36dc26['howMany']);break;case'split':_0x62ccc2=_0x2afcc4['model']['createPositionAt'](_0x36dc26['splitPosition']),_0x53650e=_0x2afcc4['model']['createPositionAt'](_0x36dc26['moveTargetPosition']);break;case'move':_0x62ccc2=_0x2afcc4['model']['createPositionAt'](_0x36dc26['targetPosition']),_0x53650e=_0x62ccc2['getShiftedBy'](_0x36dc26['howMany']);break;default:return;}const _0x4a3f28=_0x2afcc4['model']['createRange'](_0x62ccc2,_0x53650e);_0x2afcc4['model']['change'](()=>{for(const {suggestion:_0x868921,meta:_0x170a99}of this['_findSuggestions'](_0x4a3f28)){if(_0x868921['isMultiRange'])continue;if('formatInline'==_0x868921['type'])continue;const _0x4fc1bd=this['_getAttributeKey'](_0x868921);if(_0x4fc1bd&&this['_isBlockAttribute'](_0x4fc1bd)&&'split'!=_0x36dc26['type'])continue;const _0x4907b7=_0x868921['data']&&_0x868921['data']['multipleBlocks'];('formatBlock'!=_0x868921['type']||'split'==_0x36dc26['type']&&!_0x4907b7)&&(_0x170a99['containsRangeInObject']||'insertion'==_0x868921['type']&&_0x170a99['isOwn']||_0x868921['getFirstRange']()['containsRange'](_0x4a3f28)&&this['_breakSuggestionMarker'](_0x868921,_0x62ccc2,_0x53650e));}});},{'priority':'lowest'}),_0x2afcc4['model']['on']('deleteContent',(_0x3c8b22,_0x9beded)=>{const _0x38d1ae=_0x9beded[0x0],_0xf120f6=_0x9beded[0x1];if(_0xf120f6&&_0xf120f6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38d1ae['isCollapsed'])return;const _0x509d11=_0x2afcc4['model']['schema'],{start:_0x469cd9,end:_0x4e0b3a}=_0x38d1ae['getFirstRange'](),_0x21c390=_0x469cd9['nodeAfter']&&_0x509d11['isLimit'](_0x469cd9['nodeAfter'])?null:_0x509d11['getNearestSelectionRange'](_0x469cd9,'forward'),_0x14570=_0x4e0b3a['nodeBefore']&&_0x509d11['isLimit'](_0x4e0b3a['nodeBefore'])?null:_0x509d11['getNearestSelectionRange'](_0x4e0b3a,'backward'),_0x9360f=_0x2afcc4['model']['createRange'](_0x21c390?_0x21c390['start']:_0x469cd9,_0x14570?_0x14570['end']:_0x4e0b3a);_0x2afcc4['model']['change'](_0x255596=>{this['markDeletion'](_0x9360f);const _0xe24d89=_0x2afcc4['model']['schema']['getNearestSelectionRange'](_0x9360f['start']);_0x38d1ae['is']('documentSelection')?_0x255596['setSelection'](_0xe24d89):_0x38d1ae['setTo'](_0xe24d89);}),_0x3c8b22['stop']();},{'priority':_0x39178d['normal']+0xa}),_0x2afcc4['model']['on']('insertContent',(_0x5de02c,_0x3d66f5)=>{const _0x4f7d48=_0x3d66f5[_0x3d66f5['length']-0x1];_0x4f7d48&&_0x4f7d48['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2afcc4['model']['change'](()=>{let _0x1595d6=_0x2afcc4['model']['insertContent'](_0x3d66f5[0x0],_0x3d66f5[0x1],_0x3d66f5[0x2],{'forceDefaultExecution':!0x0});if(!_0x1595d6)return;_0x5de02c['return']=_0x1595d6['clone']();const _0x46361a=_0x1595d6['end']['nodeBefore'],_0x1d1895=_0x2afcc4['model']['schema'];_0x46361a&&_0x1d1895['isBlock'](_0x46361a)&&!_0x1d1895['isObject'](_0x46361a)&&(_0x1595d6=_0x2afcc4['model']['createRange'](_0x1595d6['start'],_0x2afcc4['model']['createPositionAt'](_0x46361a,'end'))),this['markInsertion'](_0x1595d6);}),_0x5de02c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x15e47d=new $(_0x2afcc4,this['_suggestions']);_0x2afcc4['commands']['add']('acceptSuggestion',_0x15e47d),this['enableCommand']('acceptSuggestion');const _0x395c8d=new B(_0x2afcc4,this['_suggestions']);_0x2afcc4['commands']['add']('discardSuggestion',_0x395c8d),this['enableCommand']('discardSuggestion'),_0x2afcc4['commands']['add']('acceptAllSuggestions',new x(_0x2afcc4,_0x15e47d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2afcc4['commands']['add']('discardAllSuggestions',new x(_0x2afcc4,_0x395c8d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2afcc4['commands']['add']('acceptSelectedSuggestions',new R(_0x2afcc4,_0x15e47d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2afcc4['commands']['add']('discardSelectedSuggestions',new R(_0x2afcc4,_0x395c8d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x465aad=_0x2afcc4['plugins']['get']('CommentsRepository');this['listenTo'](_0x465aad,'addComment',(_0x3b6590,{threadId:_0x22cfea})=>{const _0x19fe4e=this['_suggestions']['get'](_0x22cfea);_0x19fe4e&&_0x19fe4e['commentThread']&&0x1===_0x19fe4e['commentThread']['length']&&this['_updateSuggestionData'](_0x22cfea,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x465aad,'removeComment',(_0x295ecf,{threadId:_0x1dd9b9})=>{const _0x8cbf6b=this['_suggestions']['get'](_0x1dd9b9);_0x8cbf6b&&_0x8cbf6b['commentThread']&&!_0x8cbf6b['commentThread']['length']&&this['_updateSuggestionData'](_0x1dd9b9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x404f6d){if(this['_adapter'])throw new _0x505678('track-changes-adapter-already-set',this);this['_adapter']=_0x404f6d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x588c02=!0x1,toJSON:_0x59b760=!0x1}={}){const _0xbf0d5d=[];for(const _0x371436 of this['_suggestions']['values']())_0x588c02&&!_0x371436['isInContent']||_0xbf0d5d['push'](_0x371436);return _0x59b760?_0xbf0d5d['map'](_0x3c3a89=>_0x3c3a89['toJSON']()):_0xbf0d5d;}['getSuggestion'](_0x2f9b48){const _0x5d661b=this['_suggestions']['get'](_0x2f9b48);if(!_0x5d661b)throw new _0x505678('track-changes-suggestion-not-found',this);return _0x5d661b;}['hasSuggestion'](_0x266865){return this['_suggestions']['has'](_0x266865);}['addSuggestionData'](_0x3b9127){const {authorId:_0x3046a1,id:_0x542d41,attributes:_0x310704}=_0x3b9127,[_0x102c83,_0x350130]=_0x3b9127['type']['split'](':'),_0x3c31e6=this['_suggestions']['get'](_0x542d41)||this['_createSuggestion'](_0x102c83,_0x350130,_0x542d41,_0x3046a1,_0x310704);if(this['_addThreadToSuggestion'](_0x3c31e6),this['_checkSuggestionCorrectness'](_0x3c31e6,_0x102c83,_0x350130||null,_0x3046a1),_0x3c31e6['createdAt']=_0x3b9127['createdAt'],_0x3c31e6['_isDataLoaded']=!0x0,_0x310704&&_0x310704['@external']){const _0x57d15d=_0x310704['@external'],_0x1436e5=this['_getExternalAuthor'](_0x57d15d['authorName']);_0x3c31e6['authoredAt']=_0x57d15d['createdAt'],_0x3c31e6['author']=_0x1436e5,_0x3c31e6['isExternal']=!0x0;}else _0x3c31e6['authoredAt']=_0x3b9127['createdAt'];switch(_0x3b9127['data']&&(_0x3c31e6['data']=_0x3b9127['data']),_0x3b9127['attributes']&&(_0x3c31e6['attributes']=_0x3b9127['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c31e6['_saved']=!0x0),this['_suggestionState']['get'](_0x3c31e6)){case'notReady':this['_suggestionState']['set'](_0x3c31e6,'dataReady');break;case'markerReady':_0x3c31e6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c31e6])),this['_refreshSuggestionsChain'](new Set([_0x3c31e6])),this['_suggestionState']['set'](_0x3c31e6,'ready'),this['fire']('suggestionLoaded',_0x3c31e6)):this['_suggestionState']['set'](_0x3c31e6,'removed');}return _0x3c31e6;}['acceptSuggestion'](_0x2d39d9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c1a1a of _0x2d39d9['getAllAdjacentSuggestions']())_0x2c1a1a['accept']();});});}['discardSuggestion'](_0x5eca0f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x590fc3 of _0x5eca0f['getAllAdjacentSuggestions']())_0x590fc3['discard']();});});}['enableCommand'](_0x9bef89,_0x16752c){const _0x46f34a=this['editor']['commands']['get'](_0x9bef89);if(!_0x46f34a)throw new _0x505678('track-changes-command-not-found',this,{'commandName':_0x9bef89});if(this['_enabledCommands']['has'](_0x46f34a))throw new _0x505678('track-changes-enable-command-twice',this,{'commandName':_0x9bef89});this['_enabledCommands']['add'](_0x46f34a),_0x16752c&&_0x46f34a['on']('execute',(_0x18fa48,_0x39853b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x39853b['length']>0x0&&_0x39853b[_0x39853b['length']-0x1]&&_0x39853b[_0x39853b['length']-0x1]['forceDefaultExecution']?_0x39853b['pop']():(_0x18fa48['return']=_0x16752c((..._0x4117e1)=>_0x46f34a['execute'](..._0x4117e1,{'forceDefaultExecution':!0x0}),..._0x39853b),_0x18fa48['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf7ef2b){let _0x6e76c5,_0x12b5f8;const _0x3baa9b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x6e76c5=_0xf7ef2b();}catch(_0xf9e0ec){_0x12b5f8=_0xf9e0ec;}return _0x3baa9b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x12b5f8&&_0x505678['rethrowUnexpectedError'](_0x12b5f8,this),_0x6e76c5;}['markInsertion'](_0x3904d3,_0x48403d=null,_0x8a8af={}){if(_0x3904d3['isCollapsed'])return null;const _0xba7a12=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3dbb65,meta:_0x59ccc5}of this['_findSuggestions'](_0x3904d3,'insertion'))if(_0x59ccc5['isOwn']){if(!_0x59ccc5['isNextTo']){if(_0x59ccc5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3dbb65,_0x8a8af))continue;return _0x3dbb65;}if(Lt(_0x3dbb65,_0x8a8af))return _0x3dbb65;this['_breakSuggestionMarker'](_0x3dbb65,_0x3904d3['start'],_0x3904d3['end']);break;}if(_0x48403d==_0x3dbb65['subType']&&Lt(_0x3dbb65,_0x8a8af)){const _0x3853fc=_0x3dbb65['getFirstRange']();return _0x3853fc['start']['isEqual'](_0x3904d3['end'])?this['_setSuggestionRange'](_0x3dbb65,this['_model']['createRange'](_0x3904d3['start'],_0x3853fc['end'])):this['_setSuggestionRange'](_0x3dbb65,this['_model']['createRange'](_0x3853fc['start'],_0x3904d3['end'])),_0x3dbb65;}}const _0x27a2c3=_0x56098b(),_0x2c300a=_0xba7a12['id'],_0x272925=_0x48403d?'insertion:'+_0x48403d:'insertion',_0x5762ba=this['_setSuggestionData']({'id':_0x27a2c3,'type':_0x272925,'createdAt':new Date(),'authorId':_0x2c300a,'attributes':_0x8a8af});return this['_addSuggestionMarker'](_0x272925,_0x27a2c3,_0x2c300a,_0x3904d3),_0x5762ba;}['markMultiRangeInsertion'](_0x5ae26b,_0x2926fe='multi',_0x269bd5={}){const _0x49503c=this['editor']['plugins']['get']('Users')['me'],_0x26999f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2926fe,'join');for(const _0x559a7e of this['getSuggestions']())if(_0x559a7e['author']['id']==_0x49503c['id']&&'insertion'==_0x559a7e['type']&&_0x559a7e['subType']==_0x2926fe&&Lt(_0x559a7e,_0x269bd5)&&(_0x26999f(_0x559a7e['getRanges'](),_0x5ae26b)||_0x26999f(_0x5ae26b,_0x559a7e['getRanges']()))){for(const _0x33a98f of _0x5ae26b)_0x559a7e['addRange'](_0x33a98f);return _0x559a7e;}for(const {suggestion:_0x2e25e2,meta:_0x6214c1}of this['_findSuggestions'](_0x5ae26b,'insertion')){if(!_0x6214c1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x6214c1['containsRangeInObject'])continue;if(!Lt(_0x2e25e2,_0x269bd5))continue;let _0x3b70cb=!0x0;for(const _0x43f6de of _0x2e25e2['getRanges']())for(const _0x3fb648 of _0x5ae26b)if(!_0x43f6de['containsRange'](_0x3fb648)){_0x3b70cb=!0x1;break;}if(_0x3b70cb)return _0x2e25e2;}const _0x299e4a=_0x56098b(),_0x358dda=_0x49503c['id'],_0x3c4043='insertion:'+_0x2926fe,_0x564a0a=this['_setSuggestionData']({'id':_0x299e4a,'type':_0x3c4043,'createdAt':new Date(),'authorId':_0x358dda,'attributes':_0x269bd5});for(const _0xb1175f of _0x5ae26b)this['_addSuggestionMarker'](_0x3c4043,_0x299e4a,_0x358dda,_0xb1175f,u['getMultiRangeId']());return _0x564a0a;}['markInlineFormat'](_0x467ce8,_0x341bf9,_0x2fdba5=null,_0x190ea6={}){if(_0x2fdba5=_0x2fdba5||Vt(_0x341bf9),_0x467ce8['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x58d5a7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2fdba5,'accept');return this['forceDefaultExecution'](()=>_0x58d5a7([_0x467ce8],_0x341bf9,_0x190ea6)),null;}const _0x23bec7=this['editor']['plugins']['get']('Users')['me'],_0x165ab7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb234c5,meta:_0x22da68}of this['_findSuggestions'](_0x467ce8,'insertion'))_0x22da68['isOwn']&&!_0x22da68['isInsideObject']&&_0x165ab7['push'](..._0xb234c5['getRanges']());}const _0x440b9b=function(_0x5df04e,_0xf0a43a){const _0x54513e=[];for(const _0x5e2363 of _0xf0a43a){const _0x3252d7=_0x5df04e['getIntersection'](_0x5e2363);_0x3252d7&&_0x54513e['push'](_0x3252d7);}return _0x54513e;}(_0x467ce8,_0x165ab7),_0x118c04=function(_0xa3d526,_0x351cbd){const _0x2ae003=[_0xa3d526];for(const _0x188d80 of _0x351cbd){let _0x4d28af=0x0;for(;_0x4d28af<_0x2ae003['length'];){const _0x1e55b1=_0x2ae003[_0x4d28af]['getDifference'](_0x188d80);_0x2ae003['splice'](_0x4d28af,0x1,..._0x1e55b1),_0x4d28af+=_0x1e55b1['length'];}}return _0x2ae003;}(_0x467ce8,_0x165ab7);_0x440b9b['length']&&this['_model']['change'](()=>{for(const _0xc50015 of _0x440b9b){const _0x22b426=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2fdba5,'accept');this['forceDefaultExecution'](()=>_0x22b426([_0xc50015],_0x341bf9,_0x190ea6));}});for(const _0x2a3aa8 of _0x118c04){let _0x584223=null,_0x3577f1=_0x2a3aa8['start'],_0x377f9f=_0x2a3aa8['end'];for(const {suggestion:_0x4c3fb4,meta:_0x5846d3}of this['_findSuggestions'](_0x2a3aa8,'formatInline')){if(!_0x5846d3['isOwn'])continue;if(_0x4c3fb4['subType']!=_0x2fdba5)continue;if(!Lt(_0x4c3fb4,_0x190ea6))continue;const _0x1a7cf8=_0x4c3fb4['getFirstRange']();if(_0x1a7cf8['containsRange'](_0x2a3aa8,!0x0))return null;_0x3577f1=_0x3577f1['isBefore'](_0x1a7cf8['start'])?_0x3577f1:_0x1a7cf8['start'],_0x377f9f=_0x377f9f['isAfter'](_0x1a7cf8['end'])?_0x377f9f:_0x1a7cf8['end'],_0x584223?_0x1a7cf8['start']['isBefore'](_0x584223['getFirstRange']()['start'])?(_0x584223['removeMarkers'](),_0x584223=_0x4c3fb4):_0x4c3fb4['removeMarkers']():_0x584223=_0x4c3fb4;}const _0x5956ee=this['_model']['createRange'](_0x3577f1,_0x377f9f);if(_0x584223)this['_setSuggestionRange'](_0x584223,_0x5956ee);else{const _0xf01dea=_0x56098b(),_0x442073=_0x23bec7['id'];this['_setSuggestionData']({'id':_0xf01dea,'type':'formatInline:'+_0x2fdba5,'data':_0x341bf9,'createdAt':new Date(),'authorId':_0x442073,'attributes':_0x190ea6}),this['_addSuggestionMarker']('formatInline:'+_0x2fdba5,_0xf01dea,_0x442073,_0x5956ee);}}return null;}['markBlockFormat'](_0x25c164,_0x19f087,_0x71b622=[],_0x183361=null,_0x2bf932={}){_0x19f087['formatGroupId']||(_0x19f087['formatGroupId']=_0x19f087['commandName']),_0x19f087['multipleBlocks']=_0x25c164['is']('range'),_0x183361=_0x183361||Vt(_0x19f087);const _0x5aa40b=_0x71b622['map'](_0x37f12a=>Gt(_0x37f12a,this['_model'])),_0xa556f3=_0x25c164['is']('range')?_0x25c164:Gt(_0x25c164,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5b0b03=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x183361,'accept');return this['forceDefaultExecution'](()=>_0x5b0b03([_0xa556f3],_0x19f087,_0x2bf932)),null;}_0x5aa40b['push'](_0xa556f3);let _0x4e2ed4=!0x0;for(const _0x3b323a of _0x5aa40b)if(!this['_rangeIsInLocalUserInsertion'](_0x3b323a)){_0x4e2ed4=!0x1;break;}if(_0x4e2ed4&&'always'!==this['_trackFormatChanges']){const _0x5e3cb8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x183361,'accept');return this['forceDefaultExecution'](()=>_0x5e3cb8([_0xa556f3],_0x19f087,_0x2bf932)),null;}let _0x34ab5e=null,_0x250ef0=_0xa556f3['start'],_0x508a60=_0xa556f3['end'];for(const {suggestion:_0x34c557,meta:_0x108ddb}of this['_findSuggestions'](_0xa556f3,'formatBlock')){if(!_0x108ddb['isOwn'])continue;if(_0x108ddb['isNextTo']||_0x108ddb['containsRangeInObject']||_0x108ddb['isInsideObject'])continue;if(_0x34c557['data']['formatGroupId']!=_0x19f087['formatGroupId'])continue;if(!Lt(_0x34c557,_0x2bf932))continue;const _0x102968=_0x34c557['getFirstRange']();if(_0x34c557['subType']==_0x183361){if(_0x102968['containsRange'](_0xa556f3,!0x0))return null;_0x250ef0=_0x250ef0['isBefore'](_0x102968['start'])?_0x250ef0:_0x102968['start'],_0x508a60=_0x508a60['isAfter'](_0x102968['end'])?_0x508a60:_0x102968['end'],_0x34ab5e?_0x102968['start']['isBefore'](_0x34ab5e['getFirstRange']()['start'])?(_0x34ab5e['removeMarkers'](),_0x34ab5e=_0x34c557):_0x34c557['removeMarkers']():_0x34ab5e=_0x34c557;}else{const _0x46fb2b=_0xa556f3['getIntersection'](_0x102968);this['_cutOutSuggestionMarker'](_0x34c557,_0x46fb2b);}}const _0x361455=this['editor']['plugins']['get']('Users')['me'],_0x2db8ee=_0x56098b(),_0x364a91=_0x361455['id'];if(_0x34ab5e)return this['_setSuggestionRange'](_0x34ab5e,this['_model']['createRange'](_0x250ef0,_0x508a60)),_0x34ab5e;{const _0x67a642=this['_setSuggestionData']({'id':_0x2db8ee,'type':'formatBlock:'+_0x183361,'data':_0x19f087,'createdAt':new Date(),'authorId':_0x364a91,'attributes':_0x2bf932});return this['_addSuggestionMarker']('formatBlock:'+_0x183361,_0x2db8ee,_0x364a91,this['_model']['createRange'](_0x250ef0,_0x508a60)),_0x67a642;}}['markMultiRangeBlockFormat'](_0x19575c,_0x5b3efc,_0xf3154=[],_0x16bcda=null,_0x46918b={}){_0x5b3efc['formatGroupId']||(_0x5b3efc['formatGroupId']=_0x5b3efc['commandName']);const _0x257a59=_0x19575c[0x0];_0x5b3efc['multipleBlocks']=_0x257a59['is']('range'),_0x16bcda=_0x16bcda||Vt(_0x5b3efc);const _0x25511b=_0xf3154['map'](_0x1928d7=>Gt(_0x1928d7,this['_model'])),_0x7f5878=_0x257a59['is']('range')?_0x19575c:_0x19575c['map'](_0x314458=>Gt(_0x314458,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4bd96a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16bcda,'accept');return this['forceDefaultExecution'](()=>_0x4bd96a(_0x7f5878,_0x5b3efc,_0x46918b)),null;}_0x25511b['push'](..._0x7f5878);let _0x19aeaf=!0x0;for(const _0x669391 of _0x25511b)if(!this['_rangeIsInLocalUserInsertion'](_0x669391)){_0x19aeaf=!0x1;break;}if(_0x19aeaf&&'always'!==this['_trackFormatChanges']){const _0x46e4dc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16bcda,'accept');return this['forceDefaultExecution'](()=>_0x46e4dc(_0x7f5878,_0x5b3efc,_0x46918b)),null;}const _0x572467=this['editor']['plugins']['get']('Users')['me'];for(const _0x2023a6 of this['getSuggestions']()){if(_0x2023a6['author']['id']!=_0x572467['id'])continue;if('formatBlock'!=_0x2023a6['type']||_0x2023a6['data']['formatGroupId']!=_0x5b3efc['formatGroupId'])continue;if(!Lt(_0x2023a6,_0x46918b))continue;const _0x1302b9=_0x2023a6['subType']==_0x16bcda;for(let _0x5a3bb5=0x0;_0x5a3bb5<_0x7f5878['length'];_0x5a3bb5++){const _0x52742f=_0x7f5878[_0x5a3bb5];for(const _0x1fb567 of _0x2023a6['getMarkers']()){const _0xaf680d=_0x1fb567['getRange']();if(_0x52742f['isEqual'](_0xaf680d)){_0x1302b9?(_0x7f5878['splice'](_0x5a3bb5,0x1),_0x5a3bb5--):_0x2023a6['removeMarker'](_0x1fb567['name']);break;}}}}if(0x0==_0x7f5878['length'])return null;const _0xcc0d76=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16bcda,'join');for(const _0x3a6784 of this['getSuggestions']())if(_0x3a6784['author']['id']==_0x572467['id']&&'formatBlock'==_0x3a6784['type']&&_0x3a6784['data']['formatGroupId']==_0x5b3efc['formatGroupId']&&_0x3a6784['subType']==_0x16bcda&&Lt(_0x3a6784,_0x46918b)&&(_0xcc0d76(_0x3a6784['getRanges'](),_0x7f5878)||_0xcc0d76(_0x7f5878,_0x3a6784['getRanges']()))){for(const _0x2133e0 of _0x7f5878)_0x3a6784['addRange'](_0x2133e0);return _0x3a6784;}const _0x3f1b7a=_0x56098b(),_0x39899d=_0x572467['id'],_0x5157fd='formatBlock:'+_0x16bcda,_0x482000=this['_setSuggestionData']({'id':_0x3f1b7a,'type':_0x5157fd,'data':_0x5b3efc,'createdAt':new Date(),'authorId':_0x39899d,'attributes':_0x46918b});for(const _0x5ed250 of _0x7f5878)this['_addSuggestionMarker'](_0x5157fd,_0x3f1b7a,_0x39899d,_0x5ed250,u['getMultiRangeId']());return _0x482000;}['markDeletion'](_0x5e4a62,_0x375d66=null,_0x5a0fc0={}){if(_0x5e4a62['isCollapsed'])return null;const _0x5e4bab=this['editor']['plugins']['get']('Users')['me'],_0x285ee4=new _0x2e827c(_0x5e4a62['start'],_0x5e4a62['end']);for(const {suggestion:_0x123242,meta:_0x291f7b}of this['_findSuggestions'](_0x285ee4,'insertion'))if(_0x291f7b['isOwn']&&!_0x291f7b['isNextTo']){if(_0x123242['isMultiRange']){const _0x374648=_0x123242['getRanges']()['filter'](_0x40c242=>'$graveyard'!=_0x40c242['root']['rootName']);_0x374648['every'](_0x2b24bd=>_0x285ee4['containsRange'](_0x2b24bd,!0x0))&&_0x123242['discard']();if(_0x374648['some'](_0x3d166e=>_0x3d166e['containsRange'](_0x285ee4,!0x0))){const _0x474943=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x375d66,'accept');return this['forceDefaultExecution'](()=>_0x474943([_0x285ee4],null,_0x5a0fc0)),null;}}else{const _0x453a87=_0x285ee4['getIntersection'](_0x123242['getFirstRange']());null!==_0x453a87&&_0x123242['_onDiscard']([_0x453a87],null,_0x5a0fc0);}}if(_0x285ee4['detach'](),_0x285ee4['isCollapsed']||'$graveyard'==_0x285ee4['root']['rootName'])return null;let _0x3dc984=null,_0x4728d9=_0x285ee4['start'],_0x2e2215=_0x285ee4['end'];const _0x2d20de=this['_findSuggestions'](_0x285ee4,'deletion');for(const {suggestion:_0x1815d1,meta:_0x4edd8}of _0x2d20de){const _0x5e32ae=this['_model']['createRange'](_0x4728d9,_0x2e2215);if(_0x4edd8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4edd8['containsRangeInObject']&&!_0x4edd8['isInsideObject'])){if(_0x1815d1['isMultiRange']){if(!Lt(_0x1815d1,_0x5a0fc0))continue;let _0x563764=!0x0;for(const _0x4ac002 of _0x1815d1['getRanges']()){if(_0x4ac002['containsRange'](_0x5e32ae,!0x0))return _0x1815d1;_0x5e32ae['containsRange'](_0x4ac002)||(_0x563764=!0x1);}_0x563764&&_0x1815d1['discard']();}else{const _0x8f0d43=_0x1815d1['getFirstRange']();if(_0x8f0d43['containsRange'](_0x5e32ae,!0x0))return _0x1815d1;if(!Lt(_0x1815d1,_0x5a0fc0)){_0x5e32ae['containsRange'](_0x8f0d43)?_0x1815d1['removeMarkers']():_0x8f0d43['containsPosition'](_0x4728d9)?_0x4728d9=_0x8f0d43['end']:_0x8f0d43['containsPosition'](_0x2e2215)&&(_0x2e2215=_0x8f0d43['start']);continue;}_0x4728d9=_0x4728d9['isBefore'](_0x8f0d43['start'])?_0x4728d9:_0x8f0d43['start'],_0x2e2215=_0x2e2215['isAfter'](_0x8f0d43['end'])?_0x2e2215:_0x8f0d43['end'],_0x5a0fc0=Object['assign']({},_0x1815d1['attributes']),_0x3dc984?_0x8f0d43['start']['isBefore'](_0x3dc984['getFirstRange']()['start'])?(_0x3dc984['removeMarkers'](),_0x3dc984=_0x1815d1):_0x1815d1['removeMarkers']():_0x3dc984=_0x1815d1;}}}if(_0x3dc984)return this['_setSuggestionRange'](_0x3dc984,this['_model']['createRange'](_0x4728d9,_0x2e2215)),_0x3dc984;{const _0x5d4f35=_0x56098b(),_0x43c6ed=this['_model']['createRange'](_0x4728d9,_0x2e2215),_0x1ceabb=_0x5e4bab['id'],_0x21ea13=_0x375d66?'deletion:'+_0x375d66:'deletion',_0x53c563=this['_setSuggestionData']({'id':_0x5d4f35,'type':_0x21ea13,'createdAt':new Date(),'authorId':_0x1ceabb,'attributes':_0x5a0fc0});return this['_addSuggestionMarker'](_0x21ea13,_0x5d4f35,_0x1ceabb,_0x43c6ed),_0x53c563;}}['markMultiRangeDeletion'](_0x1832bb,_0x21b7e2='multi',_0x4c3699={}){const _0x2dd039=this['editor']['plugins']['get']('Users')['me'],_0x18f43c=_0x1832bb['map'](_0x334d8e=>new _0x2e827c(_0x334d8e['start'],_0x334d8e['end'])),_0x41fc6c=new Set();for(const {suggestion:_0x18aeca,meta:_0x303b7e}of this['_findSuggestions'](_0x18f43c,'insertion'))_0x303b7e['isOwn']&&!_0x303b7e['isNextTo']&&_0x41fc6c['add'](_0x18aeca);for(const _0x2f0f68 of _0x41fc6c)if(_0x2f0f68['isMultiRange']){const _0x1947d2=_0x2f0f68['getRanges']();(!_0x2f0f68['attributes']||!_0x2f0f68['attributes']['skipNestingCheck'])&&(_0x1947d2['every'](_0x1d15b6=>_0x18f43c['some'](_0x255974=>_0x255974['containsRange'](_0x1d15b6,!0x0)))&&_0x2f0f68['discard']());if(_0x18f43c['every'](_0x1b99e8=>_0x1947d2['some'](_0x2b4e33=>_0x2b4e33['containsRange'](_0x1b99e8,!0x0)))){const _0x1f67c5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21b7e2,'accept');return this['forceDefaultExecution'](()=>_0x1f67c5(_0x1832bb,null,_0x4c3699)),null;}}else{const _0x56c2dc=_0x2f0f68['getFirstRange']();_0x18f43c['some'](_0x3d6cae=>_0x3d6cae['containsRange'](_0x56c2dc,!0x0))&&_0x2f0f68['discard']();if(_0x18f43c['every'](_0x452da2=>_0x56c2dc['containsRange'](_0x452da2,!0x0))){const _0x5aa41b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21b7e2,'accept');return this['forceDefaultExecution'](()=>_0x5aa41b(_0x18f43c,null,_0x4c3699)),null;}}const _0x4170cc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21b7e2,'join');let _0x57f42b=null;for(const _0x4968c1 of this['getSuggestions']())if(_0x4968c1['author']['id']==_0x2dd039['id']&&_0x4968c1['isInContent']&&'deletion'==_0x4968c1['type']&&_0x4968c1['subType']==_0x21b7e2&&Lt(_0x4968c1,_0x4c3699)&&(_0x4170cc(_0x4968c1['getRanges'](),_0x18f43c)||_0x4170cc(_0x18f43c,_0x4968c1['getRanges']()))){if(_0x57f42b){if(_0x4968c1['commentThread']&&_0x4968c1['commentThread']['length'])continue;for(const _0x11fd64 of _0x4968c1['getRanges']())_0x57f42b['isIntersectingWithRange'](_0x11fd64)||_0x57f42b['addRange'](_0x11fd64);_0x4968c1['removeMarkers']();}else{_0x57f42b=_0x4968c1;for(const _0x28bcce of _0x18f43c)_0x4968c1['isIntersectingWithRange'](_0x28bcce)||_0x4968c1['addRange'](_0x28bcce);}}if(_0x57f42b)return _0x57f42b;_0x41fc6c['clear']();for(const {suggestion:_0x3d4166,meta:_0x4b01fc}of this['_findSuggestions'](_0x18f43c,'deletion'))_0x4b01fc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b01fc['containsRangeInObject']&&!_0x4b01fc['isInsideObject'])&&Lt(_0x3d4166,_0x4c3699)&&_0x41fc6c['add'](_0x3d4166);for(const _0xfb9b52 of _0x41fc6c){const _0x11dff9=_0xfb9b52['getRanges']();if(!_0x4c3699||!_0x4c3699['skipNestingCheck']){if(_0x18f43c['every'](_0x343f0f=>_0x11dff9['some'](_0x500b1a=>_0x500b1a['containsRange'](_0x343f0f,!0x0))))return _0xfb9b52;}(!_0xfb9b52['attributes']||!_0xfb9b52['attributes']['skipNestingCheck'])&&(_0x11dff9['every'](_0x2e36c0=>_0x18f43c['some'](_0x270906=>_0x270906['containsRange'](_0x2e36c0,!0x0)))&&_0xfb9b52['discard']());}const _0x402cc5=_0x56098b(),_0x449309=_0x2dd039['id'],_0x490db6='deletion:'+_0x21b7e2,_0x3e2d7a=this['_setSuggestionData']({'id':_0x402cc5,'type':_0x490db6,'createdAt':new Date(),'authorId':_0x449309,'attributes':_0x4c3699});for(const _0x3a6d69 of _0x18f43c)_0x3a6d69['detach'](),_0x3a6d69['isCollapsed']||'$graveyard'==_0x3a6d69['root']['rootName']||this['_addSuggestionMarker'](_0x490db6,_0x402cc5,_0x449309,_0x3a6d69,u['getMultiRangeId']());return _0x3e2d7a;}['markAttributeChange'](_0x3dea1f,_0x39da91,_0x4619b6,_0x5c1577,_0x1afa55){if(_0x3dea1f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x588e5e=this['editor']['plugins']['get']('Users')['me']['id'],_0x32b989=Array['from'](this['_suggestions']['values']())['filter'](_0x67d88=>'attribute'==_0x67d88['type']&&_0x67d88['data']['key']==_0x39da91&&_0x67d88['isIntersectingWithRange'](_0x3dea1f));if('default'===this['_trackFormatChanges']){const _0x570be1=this['_findSuggestions'](_0x3dea1f,'insertion')['filter'](({meta:_0x2e9050})=>_0x2e9050['isOwn']&&!_0x2e9050['isInsideObject']&&!_0x2e9050['isNextTo'])['map'](({suggestion:_0x25267e})=>_0x25267e);_0x32b989['unshift'](..._0x570be1);}const _0x3d802f=new Map([[_0x3dea1f,_0x4619b6]]);for(const _0x3f8872 of _0x32b989){const _0xe73341='attribute'==_0x3f8872['type']?_0x3f8872['data']['oldValue']:void 0x0,_0x145f43=_0x3f8872['getFirstRange'](),_0x252644=Array['from'](_0x3d802f['keys']())['find'](_0x550b15=>_0x550b15['isIntersecting'](_0x145f43));if(!_0x252644)continue;const _0x58b8f9=_0x252644['getDifference'](_0x145f43);this['_isBlockAttribute'](_0x39da91)&&'insertion'==_0x3f8872['type']&&0x0!=_0x58b8f9['length']||(_0x3d802f['delete'](_0x252644),_0x58b8f9['forEach'](_0xb6b644=>{_0x3d802f['set'](_0xb6b644,_0x4619b6);}),'insertion'!=_0x3f8872['type']&&_0xe73341!=_0x5c1577&&_0x3d802f['set'](_0x252644['getIntersection'](_0x145f43),_0xe73341));}const _0x270c64=[];for(const [_0x4a7869,_0x1c91d1]of _0x3d802f){const _0x5afc37=_0x56098b(),_0x1c11c0={'key':_0x39da91,'oldValue':_0x1c91d1,'newValue':_0x5c1577};_0x39da91['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':_0x39da91});const _0x320190=('attribute:'+(_0x39da91+'|'+Vt({'newValue':_0x5c1577})))['substring'](0x0,0x3c),_0x3ebfc6=this['_setSuggestionData']({'id':_0x5afc37,'type':_0x320190,'data':_0x1c11c0,'createdAt':new Date(),'authorId':_0x588e5e,'attributes':_0x1afa55});_0x270c64['push'](_0x3ebfc6),this['_addSuggestionMarker'](_0x320190,_0x5afc37,_0x588e5e,_0x4a7869);}return _0x270c64;}['_registerBlockAttribute'](_0x226f54){this['_blockAttributeKeys']['add'](_0x226f54);}['_registerInlineAttribute'](_0x34e1c2){this['_inlineAttributeKeys']['add'](_0x34e1c2);}['_enableDefaultAttributesIntegration'](_0x3f2eaa,_0x432ae7=[],_0x8e986d=[]){this['enableCommand'](_0x3f2eaa,(_0x2dde8a,..._0x154c87)=>{this['_recordAttributeChanges'](()=>{_0x2dde8a(..._0x154c87);});});for(const _0x224455 of _0x432ae7)this['_registerInlineAttribute'](_0x224455);for(const _0x394ebc of _0x8e986d)this['_registerBlockAttribute'](_0x394ebc);}['_getAttributeKey'](_0x50c3bf){return'attribute'==_0x50c3bf['type']?_0x50c3bf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x526959,_0x5a44ae){const _0xcf6ec3=_0x526959['getFirstMarker']();this['_model']['change'](_0x378c71=>{_0x378c71['updateMarker'](_0xcf6ec3,{'range':_0x5a44ae});});}['_addThreadToSuggestion'](_0x5706e1){const _0x459dcf=_0x5706e1['id'],_0x49405b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x459dcf)||this['_commentsRepository']['addCommentThread']({'channelId':_0x49405b,'threadId':_0x459dcf,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xaeafc9=this['_commentsRepository']['getCommentThread'](_0x459dcf);_0xaeafc9['unbind']('isRemovable'),_0xaeafc9['isRemovable']=!0x1,_0x5706e1['commentThread']=_0xaeafc9;}['_checkSuggestionCorrectness'](_0x5e0d38,_0x248686,_0x12aeb2,_0x5a9029){if(_0x5e0d38['type']!=_0x248686||_0x5e0d38['subType']!=_0x12aeb2||_0x5e0d38['creator']['id']!=_0x5a9029)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x505678('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x360999,_0x417d5b){const _0x48880f=_0x360999['getFirstRange']();if(_0x417d5b['isEqual'](_0x48880f))_0x360999['removeMarkers']();else{if(_0x48880f['containsRange'](_0x417d5b)){const _0x5edb3c=this['_model']['createPositionAt'](_0x417d5b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x360999,this['_model']['createRange'](_0x48880f['start'],_0x5edb3c));const _0x4582af=_0x56098b(),_0x43e0bc=_0x360999['creator']['id'],_0x55be27=_0x360999['type']+':'+_0x360999['subType'];this['_setSuggestionData']({'id':_0x4582af,'type':_0x55be27,'createdAt':new Date(),'authorId':_0x43e0bc,'data':_0x360999['data'],'attributes':_0x360999['attributes']});const _0x4c9717=this['_model']['createPositionAt'](_0x417d5b['end']['parent'],'after'),_0x412b81=this['_model']['createRange'](_0x4c9717,_0x48880f['end']);this['_addSuggestionMarker'](_0x55be27,_0x4582af,_0x43e0bc,_0x412b81);}else{if(_0x48880f['containsPosition'](_0x417d5b['start'])){const _0x195f92=this['_model']['createPositionAt'](_0x417d5b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x360999,this['_model']['createRange'](_0x48880f['start'],_0x195f92));}else{const _0x11b44e=this['_model']['createPositionAt'](_0x417d5b['end']['parent'],'after');this['_setSuggestionRange'](_0x360999,this['_model']['createRange'](_0x11b44e,_0x48880f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x184910){for(const {suggestion:_0x1d610c,meta:_0x56e63a}of this['_findSuggestions'](_0x184910,'insertion')){if(!_0x56e63a['isOwn'])continue;const _0x44282f=_0x1d610c['getRanges']();for(const _0x1a9a7f of _0x44282f)if(!_0x184910['getDifference'](_0x1a9a7f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x511cc9){const _0x2eaa9a=this['editor']['plugins']['get']('Users')['getUser'](_0x511cc9);if(!_0x2eaa9a)throw new _0x505678('track-changes-user-not-found',this);return _0x2eaa9a;}['_getExternalAuthor'](_0x4b562e){const _0x4ab563=this['editor']['plugins']['get']('Users'),_0x54aa69=_0x1a316b('external:'+_0x4b562e),_0x418dee=_0x4ab563['getUser'](_0x54aa69);return _0x418dee||_0x4ab563['addUser']({'id':_0x54aa69,'name':_0x4b562e});}['_createSuggestion'](_0x3e2305,_0x4b1ad4,_0xc7423a,_0x552b51,_0x5d17b5){const _0x1bd2c8=this['_getAuthorFromId'](_0x552b51),_0x1ae11f=this['_suggestionFactory']['buildSuggestion'](_0x3e2305,_0x4b1ad4,_0xc7423a,_0x1bd2c8,_0x5d17b5,_0x29fe04=>{this['_updateSuggestionData'](_0xc7423a,{'attributes':_0x29fe04});const _0x4b270b=this['getSuggestion'](_0xc7423a);this['_joinWithAdjacentSuggestions'](new Set([_0x4b270b])),this['_refreshSuggestionsChain'](new Set([_0x4b270b]));});return this['listenTo'](_0x1ae11f,'accept',()=>{this['_updateSuggestionData'](_0xc7423a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ae11f,'discard',()=>{this['_updateSuggestionData'](_0xc7423a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc7423a,_0x1ae11f),this['_suggestionState']['set'](_0x1ae11f,'notReady'),_0x1ae11f;}['_splitMarkerName'](_0x3ecdb8){const _0x499a72=_0x3ecdb8['split'](':');return{'group':_0x499a72[0x0],'type':_0x499a72[0x1],'subType':_0x499a72['length']>=0x5?_0x499a72[0x2]:null,'id':_0x499a72['length']<0x5?_0x499a72[0x2]:_0x499a72[0x3],'authorId':_0x499a72['length']<0x5?_0x499a72[0x3]:_0x499a72[0x4],'markerCount':0x6==_0x499a72['length']?_0x499a72[0x5]:null};}['_breakSuggestionMarker'](_0x1376b3,_0xbcc55c,_0x26cd4c){const _0x5699cb=_0x1376b3['getFirstRange'](),_0x1124fe=_0x5699cb['start'],_0x132644=_0x5699cb['end'];this['_setSuggestionRange'](_0x1376b3,this['_model']['createRange'](_0x1124fe,_0xbcc55c));const _0x178a77=_0x56098b(),_0x315712=_0x1376b3['creator']['id'],_0x5a755a=_0x1376b3['type']+(_0x1376b3['subType']?':'+_0x1376b3['subType']:'');this['_setSuggestionData']({'id':_0x178a77,'type':_0x5a755a,'createdAt':new Date(),'authorId':_0x315712,'originalSuggestionId':_0x1376b3['id'],'attributes':_0x1376b3['attributes'],'data':_0x1376b3['data']});const _0x43dbf5=this['_getAttributeKey'](_0x1376b3);('formatBlock'==_0x1376b3['type']||_0x43dbf5&&this['_isBlockAttribute'](_0x43dbf5))&&(_0x26cd4c=this['_model']['createPositionBefore'](_0x26cd4c['parent'])),this['_addSuggestionMarker'](_0x5a755a,_0x178a77,_0x315712,this['_model']['createRange'](_0x26cd4c,_0x132644));}['_findSuggestions'](_0x48f040,_0x39a1d1=null){const _0x67352c=[],_0x1806e5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x48f040)||(_0x48f040=[_0x48f040]);for(const _0x42a7e7 of this['getSuggestions']()){if(!_0x42a7e7['isInContent'])continue;if(_0x39a1d1&&_0x42a7e7['type']!=_0x39a1d1)continue;let _0x4c7ac2=!0x1;for(const _0x3fd701 of _0x42a7e7['getRanges']()){for(const _0x51ce7c of _0x48f040){const _0x58578f=_0x51ce7c['start']['isEqual'](_0x3fd701['end'])||_0x51ce7c['end']['isEqual'](_0x3fd701['start']);if(_0x58578f||_0x51ce7c['getIntersection'](_0x3fd701)){const _0x5482f7=_0x51ce7c['containsRange'](_0x3fd701)&&Rt(this['_model']['schema'],_0x3fd701['start'],_0x51ce7c),_0x58df4c=_0x3fd701['containsRange'](_0x51ce7c)&&Rt(this['_model']['schema'],_0x51ce7c['start'],_0x3fd701);_0x67352c['push']({'suggestion':_0x42a7e7,'meta':{'isOwn':_0x1806e5==_0x42a7e7['author'],'isNextTo':_0x58578f,'isInsideObject':_0x5482f7,'containsRangeInObject':_0x58df4c}}),_0x4c7ac2=!0x0;break;}}if(_0x4c7ac2)break;}}return _0x67352c;}['_addSuggestionMarker'](_0xd95cea,_0x18f7ab,_0x5272a9,_0x482f8e,_0xfb3ebc){this['_model']['change'](_0x5a8df2=>{let _0x33f1e6='suggestion:'+_0xd95cea+':'+_0x18f7ab+':'+_0x5272a9;_0xfb3ebc&&(_0x33f1e6=_0x33f1e6+':'+_0xfb3ebc),_0x5a8df2['addMarker'](_0x33f1e6,{'range':_0x482f8e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x29be83){const _0x1cda61=_0x29be83['previous'],_0x18524a=_0x29be83['next'];_0x29be83['previous']=null,_0x29be83['next']=null,null!=_0x1cda61&&_0x1cda61['next']==_0x29be83&&(_0x1cda61['next']=_0x18524a),null!=_0x18524a&&_0x18524a['previous']==_0x29be83&&(_0x18524a['previous']=_0x1cda61),'ready'==this['_suggestionState']['get'](_0x29be83)&&(this['_suggestionState']['set'](_0x29be83,'removed'),this['fire']('suggestionUnloaded',_0x29be83,_0x1cda61,_0x18524a));}['_setSuggestionData'](_0x354bd6){const _0x9a2bef=_0x354bd6['id'],_0xf1142a=this['addSuggestionData'](_0x354bd6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e7c54=this['editor']['plugins']['get']('PendingActions'),_0x73e6=_0xf1142a['hasComments'],_0xe69692=_0xf1142a['subType']?_0xf1142a['type']+':'+_0xf1142a['subType']:_0xf1142a['type'],_0x57a29b=this['editor']['locale'],_0xc8a14b=_0x1e7c54['add'](o(_0x57a29b,'PENDING_ACTION_SUGGESTION')),_0x1a384f={'id':_0x9a2bef,'type':_0xe69692,'hasComments':_0x73e6,'data':_0x354bd6['data']||null,'originalSuggestionId':_0x354bd6['originalSuggestionId']||null,'attributes':_0xf1142a['attributes']};this['_adapter']['addSuggestion'](_0x1a384f)['then'](_0x5b2e40=>{_0xf1142a['_saved']=!0x0,_0x1e7c54['remove'](_0xc8a14b),_0x5b2e40&&_0x5b2e40['createdAt']&&(this['_suggestions']['get'](_0x9a2bef)['createdAt']=_0x5b2e40['createdAt']);})['catch'](_0x3cf296=>{throw _0x160435('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xf1142a['discard']();}),_0xf1142a['stopListening'](),this['_suggestions']['delete'](_0xf1142a['id']),this['_suggestionState']['delete'](_0xf1142a),_0x3cf296;});}return _0xf1142a;}['_isBlockAttribute'](_0x55cb0f){return this['_blockAttributeKeys']['has'](_0x55cb0f);}['_updateSuggestionData'](_0x273361,_0x2ef46a){const _0x5b6de0=this['editor']['plugins']['get']('PendingActions'),_0x596cf8=this['getSuggestion'](_0x273361);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x596cf8['_saved']){const _0x30445f=_0x5b6de0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x273361,_0x2ef46a)['then'](()=>{_0x5b6de0['remove'](_0x30445f);});}else _0x596cf8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x273361,_0x2ef46a);});}}['_getSuggestionData'](_0x2a9415){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x505678('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a9415);}['_handleNewSuggestionMarker'](_0x353f19){const {id:_0x215d1f,type:_0x1e8498,subType:_0x270667,authorId:_0x5a6b46}=this['_splitMarkerName'](_0x353f19),_0x3d1057=this['_suggestions']['get'](_0x215d1f)||this['_createSuggestion'](_0x1e8498,_0x270667,_0x215d1f,_0x5a6b46,{});switch(this['_checkSuggestionCorrectness'](_0x3d1057,_0x1e8498,_0x270667,_0x5a6b46),this['_suggestionState']['get'](_0x3d1057)){case'notReady':this['_getSuggestionData'](_0x215d1f)['then'](_0x29b354=>{let _0x7fedba=Promise['resolve']();_0x29b354['hasComments']&&(_0x7fedba=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x215d1f})),_0x7fedba['then'](()=>{this['addSuggestionData'](_0x29b354)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d1057,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x215d1f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d1057,'ready'),this['fire']('suggestionLoaded',_0x3d1057);break;case'ready':this['fire']('suggestionChanged',_0x3d1057);}return _0x3d1057['addMarkerName'](_0x353f19),_0x3d1057;}['_refreshSuggestionsChain'](_0x2a2c1a){const _0x2e4372=Array['from'](_0x2a2c1a),_0x2887ba=_0x2e4372['filter'](_0x335f84=>'attribute'==_0x335f84['type']);this['_refreshAttributeSuggestionsChain'](_0x2887ba);const _0x2549fa=_0x2e4372['filter'](_0x1a6d6d=>!_0x1a6d6d['isMultiRange']&&'attribute'!=_0x1a6d6d['type']),_0x4e4529=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b55aa=>!_0x3b55aa['isMultiRange']&&'attribute'!=_0x3b55aa['type']),_0x56aa24=_0x4e4529['filter'](_0x2a8460=>!_0x2a2c1a['has'](_0x2a8460)),_0x1e546b=new Map(_0x4e4529['map'](_0x254aa8=>[_0x254aa8,this['_suggestionFactory']['getSuggestionCallback'](_0x254aa8['type'],_0x254aa8['subType'],'chain')])),_0x553567=new Map(_0x4e4529['map'](_0x3a41ca=>[_0x3a41ca,_0x3a41ca['getFirstRange']()])),_0x17a7b2=new Set(),_0x2e4e27=new Set();for(let _0x2f8894=0x0;_0x2f8894<_0x2549fa['length'];_0x2f8894++)_0x1ade45(_0x2549fa[_0x2f8894],_0x2549fa,_0x2f8894+0x1);for(let _0xa462a9=0x0;_0xa462a9<_0x2549fa['length'];_0xa462a9++)_0x1ade45(_0x2549fa[_0xa462a9],_0x56aa24,0x0);const _0x3e9ebd=new Set();for(let _0x5db62b=0x0;_0x5db62b<_0x2549fa['length'];_0x5db62b++){const _0x33eef8=_0x2549fa[_0x5db62b];!_0x2e4e27['has'](_0x33eef8)&&_0x33eef8['previous']&&(_0x3e9ebd['add'](_0x33eef8['previous']),_0x33eef8['previous']['next']===_0x33eef8&&(_0x33eef8['previous']['next']=null),_0x33eef8['previous']=null),!_0x17a7b2['has'](_0x33eef8)&&_0x33eef8['next']&&(_0x3e9ebd['add'](_0x33eef8['next']),_0x33eef8['next']['previous']===_0x33eef8&&(_0x33eef8['next']['previous']=null),_0x33eef8['next']=null);}function _0x1ade45(_0x142580,_0x20e6ab,_0x4c4ca1){for(let _0x4bb17f=_0x4c4ca1;_0x4bb17f<_0x20e6ab['length'];_0x4bb17f++){const _0x4504a4=_0x1fe909(_0x142580,_0x20e6ab[_0x4bb17f]);_0x4504a4&&(_0x4504a4[0x0]['next']=_0x4504a4[0x1],_0x4504a4[0x1]['previous']=_0x4504a4[0x0],_0x17a7b2['add'](_0x4504a4[0x0]),_0x2e4e27['add'](_0x4504a4[0x1]));}}function _0x1fe909(_0x29b508,_0x5596ff){if(_0x29b508['author']['id']!==_0x5596ff['author']['id'])return null;const _0x156bcc=_0x1e546b['get'](_0x29b508)(_0x29b508,_0x5596ff,_0x553567['get'](_0x29b508),_0x553567['get'](_0x5596ff));if(!_0x156bcc)return null;return _0x1e546b['get'](_0x5596ff)(_0x29b508,_0x5596ff,_0x553567['get'](_0x29b508),_0x553567['get'](_0x5596ff))?_0x156bcc[0x1]['commentThread']&&_0x156bcc[0x1]['commentThread']['length']?null:_0x156bcc:null;}_0x3e9ebd['size']&&this['_refreshSuggestionsChain'](_0x3e9ebd);}['_refreshAttributeSuggestionsChain'](_0x20d2ec){if(0x0==_0x20d2ec['length'])return;const _0x3e9797=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38e9b4=>'attribute'==_0x38e9b4['type']&&_0x38e9b4['_isDataLoaded']),_0x691840=[],_0x5b3589=new Map();for(const _0x17737b of _0x3e9797){const _0x176a07=_0x1a316b(_0x17737b['attributes']);_0x5b3589['has'](_0x176a07)||(_0x5b3589['set'](_0x176a07,_0x691840['length']),_0x691840['push']([]));const _0x123181=_0x5b3589['get'](_0x176a07);_0x691840[_0x123181]['push'](_0x17737b);}!(function(){_0x691840['sort']((_0xced6e5,_0x46000c)=>{const _0x259965=_0xced6e5[0x0]['createdAt'],_0x45b111=_0x46000c[0x0]['createdAt'];return _0x259965==_0x45b111?_0xced6e5[0x0]['attributes']['groupId']<_0x46000c[0x0]['attributes']['groupId']?-0x1:0x1:_0x259965<_0x45b111?-0x1:0x1;});for(const _0x290ee0 of _0x691840)_0x290ee0['sort']((_0x4dd876,_0x368bbd)=>_0x4dd876['id']<_0x368bbd['id']?-0x1:0x1);}());for(let _0x3cc19e=0x0;_0x3cc19e<_0x691840['length'];_0x3cc19e++){if(0x0==_0x691840[_0x3cc19e]['length'])continue;const _0x467e5b=[];for(let _0x2fb30b=_0x3cc19e+0x1;_0x2fb30b<_0x691840['length'];_0x2fb30b++)0x0!=_0x691840[_0x2fb30b]['length']&&_0x2d02ef(_0x691840[_0x3cc19e],_0x691840[_0x2fb30b])&&_0x467e5b['push'](_0x2fb30b);for(const _0x1b9ee3 of _0x467e5b)_0x691840[_0x3cc19e]=_0x691840[_0x3cc19e]['concat'](_0x691840[_0x1b9ee3]),_0x691840[_0x1b9ee3]=[];}for(const _0x36ff2e of _0x691840)for(let _0x486b1a=0x0;_0x486b1a<_0x36ff2e['length'];_0x486b1a++)_0x36ff2e[_0x486b1a]['next']=_0x36ff2e[_0x486b1a+0x1]||null;for(const _0x136d9b of _0x691840)for(let _0x5d1122=0x0;_0x5d1122<_0x136d9b['length'];_0x5d1122++)_0x136d9b[_0x5d1122]['previous']=_0x136d9b[_0x5d1122-0x1]||null;function _0x2d02ef(_0x46fe51,_0x22cc5d){if(_0x46fe51[0x0]['attributes']['groupId']!==_0x22cc5d[0x0]['attributes']['groupId']&&_0x46fe51[0x0]['author']!==_0x22cc5d[0x0]['author'])return!0x1;if(!function(_0x54dd6f,_0x3e8ca4){if(!_0x54dd6f['hasComments']&&!_0x3e8ca4['hasComments'])return!0x0;if(_0x54dd6f['hasComments']&&_0x3e8ca4['hasComments'])return!0x1;if(_0x54dd6f['hasComments']&&_0x3e8ca4['createdAt']<_0x54dd6f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e8ca4['hasComments']&&_0x54dd6f['createdAt']<_0x3e8ca4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x46fe51[0x0],_0x22cc5d[0x0]))return!0x1;const _0x4d6970=Bt(_0x46fe51[0x0]['attributes'],'groupId'),_0x1f9b48=Bt(_0x22cc5d[0x0]['attributes'],'groupId');if(!_0x57d838(_0x4d6970,_0x1f9b48))return!0x1;return!!_0x46fe51['every'](_0x108e3f=>_0x22cc5d['some'](_0x9e4769=>_0x108e3f['getFirstRange']()['isEqual'](_0x9e4769['getFirstRange']())))&&_0x22cc5d['every'](_0x162b23=>_0x46fe51['some'](_0xcd0691=>_0x162b23['getFirstRange']()['isEqual'](_0xcd0691['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1c9c89){const _0x5a97dd=Array['from'](_0x1c9c89),_0x7822ec=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3c5dec=_0x7822ec['filter'](_0x84a26e=>!_0x1c9c89['has'](_0x84a26e)),_0x182603=new Map(_0x5a97dd['map'](_0x4fbd01=>[_0x4fbd01,this['_suggestionFactory']['getSuggestionCallback'](_0x4fbd01['type'],_0x4fbd01['subType'],'join')])),_0xd27e1d=new Map(_0x7822ec['map'](_0x309d6e=>[_0x309d6e,_0x309d6e['getRanges']()]));for(let _0x1ed299=0x0;_0x1ed299<_0x5a97dd['length'];_0x1ed299++){if(_0x487bdc(this,_0x5a97dd[_0x1ed299],_0x5a97dd,_0x1ed299+0x1))return!0x0;}for(let _0x3c6520=0x0;_0x3c6520<_0x5a97dd['length'];_0x3c6520++){if(_0x487bdc(this,_0x5a97dd[_0x3c6520],_0x3c5dec,0x0))return!0x0;}return!0x1;function _0x487bdc(_0x525cd5,_0x45db76,_0x150e8e,_0x301318){for(let _0x30aecf=_0x301318;_0x30aecf<_0x150e8e['length'];_0x30aecf++){const _0x58d749=_0x150e8e[_0x30aecf];if(_0x58d749['type']!==_0x45db76['type']||_0x58d749['author']['id']!==_0x45db76['author']['id']||_0x58d749['subType']!==_0x45db76['subType'])continue;if(!Pt(_0x45db76,_0x58d749,['groupId']))continue;if('attribute'==_0x45db76['type']&&_0x45db76['data']['oldValue']!=_0x58d749['data']['oldValue'])continue;if('attribute'==_0x45db76['type']&&_0x525cd5['_isBlockAttribute'](_0x45db76['data']['key']))continue;if('formatBlock'==_0x45db76['type']){const _0x1e678a=_0x525cd5['editor']['model'],_0x1bebcf=_0x45db76['getContainedElement']();if(_0x1bebcf&&(_0x1e678a['schema']['isObject'](_0x1bebcf)||_0x1e678a['schema']['isLimit'](_0x1bebcf)))continue;}const _0x4bfe8b=_0x182603['get'](_0x45db76),_0x146d3c=_0xd27e1d['get'](_0x45db76),_0x2b014e=_0xd27e1d['get'](_0x58d749),_0x16b152=_0x45db76['commentThread']&&_0x45db76['commentThread']['length'],_0x435c97=_0x58d749['commentThread']&&_0x58d749['commentThread']['length'];if(!_0x16b152&&_0x4bfe8b(_0x2b014e,_0x146d3c))return _0x525cd5['_joinSuggestions'](_0x58d749,_0x45db76),_0xd27e1d['delete'](_0x45db76),!0x0;if(!_0x435c97&&_0x4bfe8b(_0x146d3c,_0x2b014e))return _0x525cd5['_joinSuggestions'](_0x45db76,_0x58d749),_0xd27e1d['delete'](_0x58d749),!0x0;}return!0x1;}}['_joinSuggestions'](_0x25174b,_0x66ba04){if(_0x25174b['isMultiRange']){for(const _0x3f7de7 of _0x66ba04['getRanges']())_0x25174b['addRange'](_0x3f7de7);}else{const _0x288593=_0x66ba04['getFirstRange']()['end'];this['_setSuggestionRange'](_0x25174b,this['_model']['createRange'](_0x25174b['getFirstRange']()['start'],_0x288593));}_0x66ba04['removeMarkers']();}['_getMarkerAnnouncementText'](_0x47ec9a,_0x2264ab){const _0x4b1ee9=_0x47ec9a['startsWith']('format')||_0x47ec9a['startsWith']('attribute')?'FORMATTING':_0x47ec9a['toUpperCase']();return o(this['editor']['locale'],_0x2264ab+'_'+_0x4b1ee9+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x2e747e=this['editor'];if(!_0x2e747e['ui'])return;const {ariaLiveAnnouncer:_0x54be77}=_0x2e747e['ui'];_0x3f4aae(this['_model'],({left:_0x1155f1,entered:_0x175771})=>{for(const _0x4c39e7 of _0x1155f1){const {group:_0x1ca704,type:_0x32c390}=this['_splitMarkerName'](_0x4c39e7['name']);if('suggestion'===_0x1ca704){_0x54be77['announce'](this['_getMarkerAnnouncementText'](_0x32c390,'LEAVE'));break;}}for(const _0x60f81f of _0x175771){const {group:_0x524626,type:_0x424c1d}=this['_splitMarkerName'](_0x60f81f['name']);if('suggestion'===_0x524626){_0x54be77['announce'](this['_getMarkerAnnouncementText'](_0x424c1d,'ENTER'));break;}}});}['_processAttributeChanges'](_0x49ac77){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2389bd=this['editor'],_0x5b0998=_0x2389bd['model']['document']['differ']['getChanges']();if(0x0==_0x5b0998['length'])return!0x1;const _0x5ccd65=[],_0x5aaa1c=_0x5b0998['filter'](_0x3759be=>'attribute'==_0x3759be['type']),_0x14232d=_0x5b0998['filter'](_0x2a6a95=>'insert'==_0x2a6a95['type']&&'$text'!=_0x2a6a95['name']),_0x3517e2=_0x5b0998['filter'](_0xc716c9=>'remove'==_0xc716c9['type']&&'$text'!=_0xc716c9['name']);for(const _0x5ba138 of _0x5aaa1c)_0x5ccd65['push']({'key':_0x5ba138['attributeKey'],'newValue':_0x5ba138['attributeNewValue'],'oldValue':_0x5ba138['attributeOldValue'],'range':Ot(_0x5ba138['range'],_0x2389bd['model'])});for(const _0xa773d5 of _0x14232d){const _0x217722=_0x3517e2['find'](_0xe22653=>_0xe22653['position']['isEqual'](_0xa773d5['position']));_0x217722&&_0x5ccd65['push']({'key':m,'newValue':_0xa773d5['name'],'oldValue':_0x217722['name'],'range':_0x2389bd['model']['createRangeOn'](_0xa773d5['position']['nodeAfter'])});}return 0x0!=_0x5ccd65['length']&&this['_reduceExistingSuggestions'](_0x49ac77,_0x5ccd65);}['_processAttributeSuggestions'](_0x1a364){let _0x2ae554=!0x1;const _0x435469=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x103ae5=>_0x103ae5['data']['newRange']&&_0x103ae5['name']['startsWith']('suggestion:attribute:'));for(const _0x1ad88c of _0x435469){const {subType:_0x2c87e6,id:_0x2b0de1}=this['_splitMarkerName'](_0x1ad88c['name']),_0x114469=_0x2c87e6['split']('|')[0x0];for(const _0x32cf42 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x32cf42['id']!=_0x2b0de1&&'attribute'==_0x32cf42['type']&&_0x32cf42['data']&&_0x32cf42['data']['key']==_0x114469&&_0x32cf42['getFirstRange']()['isIntersecting'](_0x1ad88c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x32cf42,_0x1ad88c['data']['newRange'],_0x1a364),_0x2ae554=!0x0);}return _0x2ae554;}['_recordAttributeChanges'](_0x3e7b92){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3e7b92();}['_isRegisteredAttribute'](_0x1ee842){const _0x54b552=this['_isBlockAttribute'](_0x1ee842),_0x5b9a16=this['_inlineAttributeKeys']['has'](_0x1ee842);return _0x54b552||_0x5b9a16;}['_reduceExistingSuggestions'](_0x18c4f5,_0x3e28ca){if(0x0==_0x3e28ca['length'])return!0x1;let _0x5b76a4=!0x1;for(const _0x549f32 of _0x3e28ca){const _0x12ede9=this['_findSuggestions'](_0x549f32['range'],'attribute')['filter'](_0x5879e0=>!_0x5879e0['meta']['isNextTo'])['map'](_0x11d404=>_0x11d404['suggestion']),_0x3274f3=_0x1a316b({'newValue':_0x549f32['newValue']});_0x12ede9['filter'](_0x57051c=>{const [_0x187ea0,_0x1d9eeb]=_0x57051c['subType']['split']('|');return _0x187ea0==_0x549f32['key']&&_0x1d9eeb!=_0x3274f3;})['forEach'](_0x5af444=>{this['_reduceSuggestionAttributeRange'](_0x5af444,_0x549f32['range'],_0x18c4f5),_0x5b76a4=!0x0;});}return _0x5b76a4;}['_reduceSuggestionAttributeRange'](_0x107fd3,_0x2b2512,_0x29d8f2){const _0x481c87=_0x107fd3['getFirstRange']()['getDifference'](_0x2b2512);0x0!==_0x481c87['length']?0x1!==_0x481c87['length']?this['_breakSuggestionMarker'](_0x107fd3,_0x2b2512['start'],_0x2b2512['end']):this['_setSuggestionRange'](_0x107fd3,_0x481c87[0x0]):_0x29d8f2['removeMarker'](_0x107fd3['getFirstMarker']());}constructor(_0x5b97b1){function _0x32dc30(_0x40c4dd){return _0x40c4dd['map'](_0x2e45cd=>String['fromCharCode'](_0x2e45cd))['join']('');}super(_0x5b97b1),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2b8bfd,_0x473dcb,_0x3d8ef9,_0x234a7c)=>{this['_model']['change'](()=>{for(const _0x4d48a3 of[..._0x234a7c,..._0x3d8ef9])this['_model']['markers']['has'](_0x4d48a3)&&_0x5b97b1['editing']['reconvertMarker'](_0x4d48a3);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b97b1['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(),_0x5b97b1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b97b1['config']['get']('trackChanges.trackFormatChanges'),_0x5b97b1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b97b1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5b97b1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x32dc30([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x32dc30([0x34,0x30,0x34,0x38,0x30,0x38,0x35,0x32]);}}class xt{['buildSuggestion'](_0x101473,_0x178241,_0x27eee5,_0xc096f8,_0x4840ba,_0x4f85a8){return new u(this['_model'],{'type':_0x101473,'subType':_0x178241,'id':_0x27eee5,'author':_0xc096f8,'creator':_0xc096f8,'attributes':_0x4840ba,'onAttributesChange':_0x4f85a8,'onAccept':(..._0x41e26c)=>this['getSuggestionCallback'](_0x101473,_0x178241,'accept')(..._0x41e26c),'onDiscard':(..._0x25ee8d)=>this['getSuggestionCallback'](_0x101473,_0x178241,'discard')(..._0x25ee8d)});}['registerCustomCallback'](_0xdffbd8,_0x44d978,_0x1afe7c,_0x36f8ec){const _0x19176e=_0xdffbd8+':'+_0x44d978+':'+_0x1afe7c;this['_customCallbacks']['set'](_0x19176e,_0x36f8ec);}['getSuggestionCallback'](_0x38fb03,_0x42264c,_0x3d02f0){const _0x5850ae=_0x38fb03+':'+_0x42264c+':'+_0x3d02f0;return this['_customCallbacks']['get'](_0x5850ae)||this['_defaultCallbacks']['get'](_0x38fb03+':'+_0x3d02f0);}['_registerDefaultCallbacks'](){const _0x14c295=()=>!0x1,_0x3a1d8c=_0xffd380=>{_0xffd380['sort']((_0x3f7e4e,_0x3c293b)=>_0x3f7e4e['start']['isBefore'](_0x3c293b['start'])?0x1:-0x1),this['_model']['change'](_0x362c1d=>{for(const _0x45fac5 of _0xffd380){let _0xa25205;_0xa25205=_0x45fac5['end']['isAtEnd']&&_0x45fac5['end']['parent']==_0x45fac5['start']['nodeAfter']?_0x362c1d['createSelection'](_0x45fac5['start']['nodeAfter'],'on'):_0x362c1d['createSelection'](_0x45fac5),this['_model']['deleteContent'](_0xa25205,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x206985=(_0x303f6d,_0x55ec24)=>{_0x55ec24&&this['_model']['change'](_0x53a8c7=>{const {commandName:_0x4c138e,commandParams:_0x1bc5ce=[]}=_0x55ec24,_0x1eb782=_0x303f6d['map'](_0xd9e06e=>(Tt(_0xd9e06e)&&(_0xd9e06e=this['_model']['createRange'](_0xd9e06e['end'])),_0xd9e06e))['filter'](_0x15e856=>'$graveyard'!==_0x15e856['root']['rootName']);if(_0x1eb782['length']<0x1)return;const _0x2151e9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1703bd=>_0x2e827c['fromRange'](_0x1703bd));_0x53a8c7['setSelection'](_0x1eb782);for(const _0x3cb258 of this['_editor']['commands']['commands']())_0x3cb258['refresh']();_0x1bc5ce['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4c138e,..._0x1bc5ce);const _0x35ba9c=_0x2151e9['filter'](_0x5218bc=>'$graveyard'!=_0x5218bc['root']['rootName']);_0x35ba9c['length']>0x0&&_0x53a8c7['setSelection'](_0x35ba9c);for(const _0x2bd24f of _0x2151e9)_0x2bd24f['detach']();});},_0x59f0e5=(_0x1fae6f,_0x8c78c8)=>0x1==_0x1fae6f['length']&&0x1==_0x8c78c8['length']&&_0x1fae6f[0x0]['end']['isEqual'](_0x8c78c8[0x0]['start']),_0x194a0c=(_0x547279,_0x4d15ab,_0x314bd5,_0x74413b)=>Ft(_0x547279,_0x4d15ab,_0x314bd5,_0x74413b,this['_model'])?[_0x547279,_0x4d15ab]:Ft(_0x4d15ab,_0x547279,_0x74413b,_0x314bd5,this['_model'])?[_0x4d15ab,_0x547279]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x14c295),this['_defaultCallbacks']['set']('insertion:discard',_0x3a1d8c),this['_defaultCallbacks']['set']('insertion:join',_0x59f0e5),this['_defaultCallbacks']['set']('insertion:chain',_0x194a0c),this['_defaultCallbacks']['set']('deletion:accept',_0x3a1d8c),this['_defaultCallbacks']['set']('deletion:discard',_0x14c295),this['_defaultCallbacks']['set']('deletion:join',_0x59f0e5),this['_defaultCallbacks']['set']('deletion:chain',_0x194a0c),this['_defaultCallbacks']['set']('formatInline:accept',_0x206985),this['_defaultCallbacks']['set']('formatInline:discard',_0x14c295),this['_defaultCallbacks']['set']('formatInline:join',_0x59f0e5),this['_defaultCallbacks']['set']('formatInline:chain',_0x14c295),this['_defaultCallbacks']['set']('formatBlock:accept',_0x206985),this['_defaultCallbacks']['set']('formatBlock:discard',_0x14c295),this['_defaultCallbacks']['set']('formatBlock:join',_0x59f0e5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x14c295),this['_defaultCallbacks']['set']('attribute:accept',_0x14c295),this['_defaultCallbacks']['set']('attribute:discard',(_0x122394,_0x3f9255)=>{if(!_0x3f9255)return;const _0xfc637a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3f420a=>{if(_0x3f9255['key']==m)for(const _0xb3c01d of _0x122394){const _0x19fab8=_0xb3c01d['start']['nodeAfter'],_0x1a475e=_0x3f9255['oldValue'];_0x3f420a['rename'](_0x19fab8,_0x1a475e);}else{if(_0xfc637a['_isBlockAttribute'](_0x3f9255['key'])){for(const _0x41a27b of _0x122394)void 0x0!==_0x3f9255['oldValue']?_0x3f420a['setAttribute'](_0x3f9255['key'],_0x3f9255['oldValue'],_0x41a27b['start']['nodeAfter']):_0x3f420a['removeAttribute'](_0x3f9255['key'],_0x41a27b['start']['nodeAfter']);}else{for(const _0x12f08d of _0x122394)_0x3f9255['oldValue']?_0x3f420a['setAttribute'](_0x3f9255['key'],_0x3f9255['oldValue'],_0x12f08d):_0x3f420a['removeAttribute'](_0x3f9255['key'],_0x12f08d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x59f0e5);}constructor(_0x267149){this['_editor']=_0x267149,this['_model']=_0x267149['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0xe4d47,_0xd8f16f,_0x3c1edc){for(const _0x3d3b3d of _0xd8f16f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3d3b3d['root']==_0x3d3b3d)return!0x1;if(!_0x3c1edc['containsItem'](_0x3d3b3d))return!0x1;if(_0xe4d47['isObject'](_0x3d3b3d)||_0xe4d47['isLimit'](_0x3d3b3d))return!0x0;}return!0x1;}function Tt(_0x440046){return _0x440046['end']['parent']==_0x440046['start']['nodeAfter']&&_0x440046['end']['isAtStart'];}function Et(_0x250611,_0x4c319a,_0x35f9ca,_0x2a7286){const _0xacbfb8=_0x44f5f9=>!_0x44f5f9['item']['is']('$textProxy')&&!_0x2a7286['isObject'](_0x44f5f9['item']),_0x15e2ce=_0x250611['start']['getLastMatchingPosition'](_0xacbfb8),_0x62dc7a=_0x250611['end']['getLastMatchingPosition'](_0xacbfb8,{'direction':'backward'});return(!_0x250611['start']['isEqual'](_0x15e2ce)||!_0x250611['end']['isEqual'](_0x62dc7a))&&(_0x15e2ce['isBefore'](_0x62dc7a)?_0x35f9ca['updateMarker'](_0x4c319a,{'range':_0x35f9ca['createRange'](_0x15e2ce,_0x62dc7a)}):_0x35f9ca['removeMarker'](_0x4c319a),!0x0);}function Vt(_0x41e0bd){return _0x1a316b(_0x41e0bd);}function Ut(_0x5b5b28){const _0x47d8cb=_0x5b5b28['start']['nodeAfter'];return _0x47d8cb&&_0x47d8cb['is']('element');}function Ot(_0x5dc895,_0x358add){return null==_0x5dc895['end']['nodeBefore']&&_0x5dc895['end']['parent']==_0x5dc895['start']['nodeAfter']?Gt(_0x5dc895['start']['nodeAfter'],_0x358add):_0x5dc895;}function Gt(_0x5d7ad0,_0x23504d){const _0x39ba6f=_0x23504d['schema']['isObject'](_0x5d7ad0)||_0x23504d['schema']['isSelectable'](_0x5d7ad0);return _0x23504d['createRange'](_0x23504d['createPositionAt'](_0x5d7ad0,'before'),_0x39ba6f?_0x23504d['createPositionAfter'](_0x5d7ad0):_0x23504d['createPositionAt'](_0x5d7ad0,'end'));}function Ft(_0x1dc745,_0x245f3f,_0x47d253,_0x2cf6e6,_0x2ac05e){if(!Pt(_0x1dc745,_0x245f3f))return!0x1;if(_0x47d253['end']['isEqual'](_0x2cf6e6['start']))return!0x0;if(_0x1dc745['type']!=_0x245f3f['type'])return!0x1;if(!_0x47d253['end']['isTouching'](_0x2cf6e6['start']))return!0x1;const _0x33b0ad=_0x2ac05e['createRange'](_0x47d253['end'],_0x2cf6e6['start'])['getWalker']();for(const _0x5ee9cb of _0x33b0ad)if(['elementStart','elementEnd']['includes'](_0x5ee9cb['type'])&&_0x2ac05e['schema']['isLimit'](_0x5ee9cb['item']))return!0x1;return!0x0;}function Pt(_0x229c82,_0x12a656,_0x5a4ccf=[]){return!(!_0x229c82['_isDataLoaded']||!_0x12a656['_isDataLoaded'])&&_0x57d838(Bt(_0x229c82['attributes'],_0x5a4ccf),Bt(_0x12a656['attributes'],_0x5a4ccf));}function Lt(_0xcf555c,_0x3e7b8f){const _0xff1a05=Ht(_0xcf555c['attributes']),_0x169abb=Ht(_0x3e7b8f);if(!_0xcf555c['_isDataLoaded'])return!0x1;for(const _0x27dbeb of Object['keys'](_0x169abb))if(!_0x57d838(_0xff1a05[_0x27dbeb],_0x169abb[_0x27dbeb]))return!0x1;return!0x0;}function Ht(_0x5c2825){const _0x50a389=Object['assign']({},_0x5c2825);return delete _0x50a389['skipNestingCheck'],delete _0x50a389['tablePasteChainId'],_0x50a389;}class oe extends _0x3a1d6a(){['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 _0x2c2eba=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2c2eba);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x7ac782,_0x410ef8,_0xcf29cd,_0x3be528){super(),this['model']=_0x410ef8,this['view']=_0xcf29cd,this['commentThreadController']=_0x3be528,this['_editor']=_0x7ac782,this['_acceptCommand']=_0x7ac782['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x7ac782['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x228e7b,_0x17d5d7)=>_0x228e7b||_0x17d5d7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x11dde6=>_0x11dde6&&this['_editor']['model']['canEditAt'](_0x410ef8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4501bc=>_0x4501bc&&this['_editor']['model']['canEditAt'](_0x410ef8['getRanges']())),this['_pendingAction']=null,_0xcf29cd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xcf29cd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xcf29cd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xcf29cd,'change:isDirty',()=>{_0xcf29cd['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x49bc42{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x234fb7}=this['_config'];this['commentsListView']=new _0x234fb7(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',_0x4cf0d4=>_0x4cf0d4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x115bbd,_0x53f898)=>_0x115bbd||!!_0x53f898);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x23aba2}=this['_config'],_0x65e28a=new _0x23aba2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3be5cf=_0x65e28a['commentInputView'];return _0x65e28a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3be5cf,'value',(_0x5f4c79,_0x59a657,_0x54dc79)=>!!_0x54dc79||_0x5f4c79&&!_0x59a657),_0x3be5cf['on']('submit',(_0x225e1c,_0x3be8b5)=>{this['fire']('addComment',_0x3be8b5),_0x3be5cf['editor']['setData']('');}),_0x3be5cf['on']('cancel',()=>this['focus']()),_0x3be5cf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x65e28a;}constructor(_0x1eff82,_0x280346,_0xe0ccd4,_0x35cdc0){super(_0x1eff82),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x280346['authoredAt']),this['bind']('authoredAt')['to'](_0x280346),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x280346,this['_localUser']=_0xe0ccd4,this['_config']=_0x35cdc0,_0x35cdc0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x651c0f=this['bindTemplate'],_0x15e281=[{'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':_0x651c0f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x651c0f['to']('authoredAt',_0x501cb5=>this['_config']['formatDateTime'](_0x501cb5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x15e281['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1912a0={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x651c0f['if']('isActive','ck-suggestion-wrapper--active'),_0x651c0f['to']('type',_0xae5249=>'ck-suggestion-'+_0xae5249),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x15e281}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1912a0['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1912a0;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x24cf92,_0x1e7f2c,_0x22e252)=>{this['_descriptionElement']['innerHTML']=_0x22e252;});}['_createButton'](_0x544576,_0x2831d6,_0x544cb1,_0x32695a,_0x164fad){const _0x453e59=new _0x9e704c(this['locale']);return _0x453e59['set']({'label':_0x544576,'icon':_0x2831d6,'tooltip':!0x0,'tooltipPosition':_0x164fad}),_0x453e59['extendTemplate']({'attributes':{'class':_0x544cb1}}),_0x453e59['on']('execute',()=>{this['fire'](_0x32695a,this['_model']['id']);}),_0x453e59;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}constructor(_0x233927,_0x598ed8,_0x43ffec,_0x38d5f6){super(_0x233927,_0x598ed8,_0x43ffec,_0x38d5f6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x15dacb=>_0x15dacb&&_0x15dacb[0x0]?_0x15dacb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x23fa58,_0x4f1646)=>{let _0xbe75b0='';for(const _0x1e7fd9 of _0x23fa58)_0xbe75b0+='<p>'+ds(_0x1e7fd9['content'],_0x1e7fd9['color'])+'</p>';return _0x4f1646?_0xbe75b0:_0x40a134(_0xbe75b0,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x233927,'Accept\x20suggestion'),_0x5f4622['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x233927,'Discard\x20suggestion'),_0x5f4622['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1b1c8f(_0x233927,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x435c85,_0x51576c){let _0x3cc610='';return _0x3cc610+=_0x435c85['split']('*')['map']((_0x12d9ee,_0x551392)=>_0x551392%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x12d9ee)+'</span>':us(_0x12d9ee))['join'](''),_0x51576c&&(_0x3cc610+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x51576c['value']+'\x22\x20title=\x22'+_0x51576c['title']+'\x22></span>'),_0x3cc610;}function us(_0x29a6b6){const _0x3cebaa=document['createElement']('span');return _0x3cebaa['innerText']=_0x29a6b6,_0x3cebaa['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4a6276{static get['requires'](){return[p,_0x3c9426,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x8d9d77,_0x4c89ff){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x104c2c,_0x4902cc]of this['_handleControllerBuffer']){const _0x423efd=this['_suggestionToController']['has'](_0x104c2c);_0x423efd||_0x4902cc?_0x423efd&&_0x4902cc&&this['_destroyController'](_0x104c2c):this['_initializeController'](_0x104c2c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8d9d77,_0x4c89ff);}['init'](){const _0xf58494=this['editor'],_0x11ad39=_0xf58494['plugins']['get']('TrackChangesEditing'),_0x3541f2=_0xf58494['plugins']['get']('Annotations'),_0x835558=_0xf58494['plugins']['get']('EditorAnnotations'),_0x8d23e5=_0xf58494['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x835558['addSourceCollector'](()=>{const _0x3bcb8f=[];for(const [_0x1c3993,_0x3826c6]of Array['from'](this['_suggestionToController'])){const _0x3ef4b9=_0x1c3993['getAllAdjacentSuggestions'](),_0x38d62f=[];for(const _0x5bdd92 of _0x3ef4b9){if(!_0x5bdd92['isInContent'])continue;if(_0x5bdd92['isMultiRange']){_0x38d62f['push'](..._0x5bdd92['getRanges']());continue;}const _0x1d188d=_0x5bdd92['getFirstRange']();if(_0x38d62f['length']>0x0){const _0xa08636=_0x38d62f[0x0]['getJoined'](_0x1d188d);if(_0xa08636){_0x38d62f[0x0]=_0xa08636;continue;}}_0x38d62f['push'](_0x1d188d);}_0x3bcb8f['push']([_0x3826c6['view'],_0x38d62f]);}return _0x3bcb8f;}),this['listenTo'](_0x11ad39,'suggestionLoaded',(_0xca509,_0x476f22)=>{this['listenTo'](_0x476f22,'change:previous',(_0xad399c,_0x4235ae,_0x3d1d20,_0x27b704)=>{_0x476f22['isInContent']&&(null==_0x3d1d20?(this['_updateController'](_0x27b704['head']),this['_handleSuggestionControllerDelayed'](_0x476f22,!0x1)):(this['_updateController'](_0x3d1d20['head']),null==_0x27b704&&this['_handleSuggestionControllerDelayed'](_0x476f22,!0x0)));}),null!==_0x476f22['previous']?this['_updateController'](_0x476f22['head']):this['_handleSuggestionControllerDelayed'](_0x476f22,!0x1);}),this['listenTo'](_0x11ad39,'suggestionUnloaded',(_0x232e51,_0x210cd6,_0x5d7143)=>{this['stopListening'](_0x210cd6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x210cd6),this['_suggestionToController']['has'](_0x210cd6)&&this['_destroyController'](_0x210cd6),_0x5d7143&&this['_updateController'](_0x5d7143['head']);}),this['listenTo'](_0x11ad39,'suggestionChanged',(_0x5939e3,_0xe0fee)=>{this['_updateController'](_0xe0fee);}),this['listenTo'](_0x3541f2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x8d23e5,'addComment',(_0x3896ce,{threadId:_0x2816e9,isFromAdapter:_0x327031})=>{if(_0x327031||!_0x11ad39['hasSuggestion'](_0x2816e9))return;const _0x2bb3b2=_0x11ad39['getSuggestion'](_0x2816e9);this['_suggestionToController']['get'](_0x2bb3b2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x12e3aa=this['editor']['plugins']['get']('Annotations'),_0x11d870=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd191=Array['from'](_0x12e3aa['activeAnnotations'],_0x8fc963=>_0x8fc963['innerView'])['filter'](_0x37172e=>this['_viewToController']['has'](_0x37172e)),_0x33c93b=[];for(const _0x193818 of _0x4cd191){const _0x479302=this['_viewToController']['get'](_0x193818)['model']['getAllAdjacentSuggestions']();_0x33c93b['push'](..._0x479302['reduce']((_0x46fdd1,_0x1f34b8)=>[..._0x46fdd1,..._0x1f34b8['getMarkerNames']()],[]));}_0x11d870['activeMarkers']=_0x33c93b;}['_addUIComponentsToFactory'](){const _0x29b351=this['editor'],_0x196ec3=_0x29b351['locale'],_0x34fdf0=o(_0x196ec3,'Track\x20changes'),_0x2b0cdd=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x34fdf0,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x196ec3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x196ec3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x196ec3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x196ec3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x2e64d4 of _0x2b0cdd)if(ae(_0x2e64d4)){const _0x545bfa=_0x29b351['commands']['get'](_0x2e64d4['model']['commandName']);_0x2e64d4['model']['bind']('isOn','isEnabled')['to'](_0x545bfa,'value','isEnabled');}_0x29b351['ui']['componentFactory']['add']('trackChanges',_0x50217c=>this['_createToolbarButton'](_0x50217c,_0x2b0cdd,_0x34fdf0)),_0x29b351['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5104c8=>this['_createMenuBarMenu'](_0x5104c8,_0x2b0cdd,_0x34fdf0));}['_createToolbarButton'](_0x1703f8,_0x25b6f4,_0x202610){const _0x91a6ae=zt(_0x1703f8,Zt),_0x4985d2=this['editor']['commands']['get']('trackChanges');_0x91a6ae['buttonView']['set']({'tooltip':_0x202610,'label':_0x202610,'icon':ie}),_0x91a6ae['buttonView']['bind']('isOn')['to'](_0x4985d2,'value'),_0x91a6ae['buttonView']['on']('execute',()=>{_0x4985d2['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x91a6ae,_0x25b6f4);const _0x30cac7=[];for(const _0x502cbd of _0x25b6f4)ae(_0x502cbd)&&_0x30cac7['push'](this['editor']['commands']['get'](_0x502cbd['model']['commandName']));const _0x9d64c9=_0x91a6ae['buttonView'];return _0x9d64c9['actionView']['unbind']('isEnabled'),_0x9d64c9['arrowView']['unbind']('isEnabled'),_0x9d64c9['actionView']['bind']('isEnabled')['to'](_0x4985d2,'isEnabled'),_0x9d64c9['arrowView']['bind']('isEnabled')['toMany'](_0x30cac7,'isEnabled',(..._0xef85c9)=>_0xef85c9['some'](_0x2848a3=>_0x2848a3)),_0x91a6ae['on']('execute',_0x1b7def=>{this['editor']['execute'](_0x1b7def['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x91a6ae;}['_createMenuBarMenu'](_0x3fdb83,_0x17abde,_0x3b2d46){const _0x5ba9fe=new Kt(_0x3fdb83),_0x273b62=this['editor']['commands']['get']('trackChanges');_0x5ba9fe['buttonView']['set']({'label':_0x3b2d46,'icon':ie});const _0x2a090a=new Qt(_0x3fdb83);for(const _0x323133 of _0x17abde){if('separator'==_0x323133['type']){_0x2a090a['items']['add'](new Jt(_0x3fdb83));continue;}const _0x475ced=new Xt(_0x3fdb83,_0x5ba9fe),_0x3354a8=new Yt(_0x3fdb83),_0x483800=_0x323133['model'];_0x3354a8['bind'](...Object['keys'](_0x483800))['to'](_0x483800),_0x3354a8['delegate']('execute')['to'](_0x5ba9fe),_0x3354a8['on']('execute',()=>{this['editor']['execute'](_0x483800['commandName']),this['editor']['editing']['view']['focus']();}),_0x475ced['children']['add'](_0x3354a8),_0x2a090a['items']['add'](_0x475ced);}return _0x5ba9fe['bind']('isEnabled')['to'](_0x273b62,'isEnabled'),_0x5ba9fe['panelView']['children']['add'](_0x2a090a),_0x5ba9fe;}['_initializeController'](_0x4e1b93){const _0x41d8d1=this['editor'],_0x1c6f06=_0x41d8d1['config'],_0x4e0433=_0x41d8d1['plugins']['get']('Annotations'),_0x11bd40=_0x41d8d1['plugins']['get']('CommentsRepository'),_0x35cc2c=_0x41d8d1['plugins']['get']('EditorAnnotations'),_0x2d1eb3=_0x41d8d1['plugins']['get'](_0x3c9426)['me'],_0x2d6b19=_0x1c6f06['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x78ebed,CommentThreadInputView:_0x33b40c}=_0x41d8d1['plugins']['get']('CommentsUI');let _0x3b8ee3,_0x152c7e;this['_annotationViews']['has'](_0x4e1b93['id'])?(_0x152c7e=this['_annotationViews']['get'](_0x4e1b93['id']),_0x3b8ee3=_0x152c7e['mainView']):(_0x3b8ee3=new _0x2d6b19(_0x41d8d1['locale'],_0x4e1b93,_0x2d1eb3,{'disableComments':this['_disableComments'],'editorConfig':_0x1c6f06['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1c6f06['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c6f06['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c6f06['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x28c092(_0x1c6f06['get']('locale')),'CommentView':_0x1c6f06['get']('comments')['CommentView'],'CommentsListView':_0x78ebed,'CommentThreadInputView':_0x33b40c}),_0x3b8ee3['acceptButton']['on']('execute',()=>{_0x41d8d1['editing']['view']['focus']();}),_0x3b8ee3['discardButton']['on']('execute',()=>{_0x41d8d1['editing']['view']['focus']();}),_0x152c7e=_0x4e0433['createAnnotationView'](this['editor']['locale'],_0x3b8ee3),_0x152c7e['bind']('isDirty')['to'](_0x3b8ee3,'isDirty'),_0x152c7e['bind']('length')['to'](_0x3b8ee3),_0x152c7e['bind']('type')['to'](_0x3b8ee3,'type',_0x2305f9=>'suggestion-'+_0x2305f9),this['_annotationViews']['set'](_0x4e1b93['id'],_0x152c7e));const _0xdf2874=_0x11bd40['createCommentThreadController'](_0x4e1b93['commentThread'],_0x3b8ee3),_0x6c7fc4=new oe(_0x41d8d1,_0x4e1b93,_0x3b8ee3,_0xdf2874),_0x380d41=_0x4e1b93['getAllAdjacentSuggestions']()['filter'](_0x2f9a33=>_0x2f9a33['isInContent']);_0x3b8ee3['descriptionParts']=_0x41d8d1['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x380d41),this['_suggestionToController']['set'](_0x4e1b93,_0x6c7fc4),this['_viewToController']['set'](_0x3b8ee3,_0x6c7fc4);const _0x3835ec=_0x4e0433['createAnnotation']({'view':_0x152c7e,'target':()=>{const _0x2d8593=[],_0x3ee34e=_0x4e1b93['getAllAdjacentSuggestions']()['filter'](_0xb30251=>_0xb30251['isInContent']);for(const _0x110621 of _0x3ee34e)_0x2d8593['push'](..._0x110621['getMarkers']());return _0x4646df(_0x41d8d1['editing'],_0x2d8593);},'type':()=>'suggestion-'+_0x6c7fc4['view']['type']});_0x11bd40['_bindAnnotationToEditors'](_0x3b8ee3,_0x3835ec),_0x4e0433['add'](_0x3835ec),_0x35cc2c['registerAnnotation'](_0x3835ec);}['_destroyController'](_0x2f539e){const _0x411a3c=this['editor']['plugins']['get']('CommentsRepository'),_0x525e24=this['editor']['plugins']['get']('Annotations'),_0x516bce=this['_suggestionToController']['get'](_0x2f539e),_0x3fd0d0=_0x516bce['view'],_0x19b04d=_0x525e24['getByInnerView'](_0x3fd0d0);_0x411a3c['_unbindEditors'](_0x3fd0d0),_0x19b04d&&_0x525e24['remove'](_0x19b04d),this['_suggestionToController']['delete'](_0x2f539e),this['_viewToController']['delete'](_0x3fd0d0),_0x516bce['destroy']();}['_updateController'](_0x4205e2){if(!_0x4205e2['isInContent']||!this['_suggestionToController']['has'](_0x4205e2))return;const _0x155b6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x427317=this['_suggestionToController']['get'](_0x4205e2),_0x55662e=_0x4205e2['getAllAdjacentSuggestions']();_0x427317['view']['descriptionParts']=_0x155b6b['_descriptionFactory']['getDescriptions'](_0x55662e);}['destroy'](){for(const _0x444a78 of this['_suggestionToController']['keys']())this['_destroyController'](_0x444a78);for(const _0x5c8161 of this['_annotationViews']['values']())_0x5c8161['mainView']['destroy']();super['destroy']();}constructor(_0x456a63){super(_0x456a63),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x788e3b=this['editor']['config'];_0x788e3b['define']('trackChanges.SuggestionThreadView',ne),_0x788e3b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x788e3b['get']('trackChanges.disableComments');}}function ae(_0x5a85e7){return'model'in _0x5a85e7;}class k extends _0x4a6276{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4112a1){this['editor']['plugins']['get'](p)['adapter']=_0x4112a1;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x521383){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x521383);}['getSuggestions']({skipNotAttached:_0x11f1c1=!0x1,toJSON:_0x510569=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x11f1c1,'toJSON':_0x510569});}['getSuggestion'](_0x47b779){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47b779);}}const T=['Pagination'];class P extends _0x4a6276{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x36a0e8=this['editor'];if(_0x36a0e8['config']['define']('trackChangesData.editorCreator',_0x353134=>{const _0x567224=_0x36a0e8['model']['document']['getRootNames']()['reduce']((_0x3697be,_0x17d89a)=>(_0x3697be[_0x17d89a]='',_0x3697be),{});return _0x36a0e8['constructor']['create'](_0x567224,_0x353134);}),'function'!=typeof _0x36a0e8['config']['get']('trackChangesData')['editorCreator'])throw new _0x505678('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3e47bc){return N(this['editor'],!0x0,_0x3e47bc);}['getDataWithDiscardedSuggestions'](_0x81a095){return N(this['editor'],!0x1,_0x81a095);}}class D extends _0x4a6276{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0xcfd305){super(_0xcfd305),this['result']='end';}}function v(_0x50d2dd){return void 0x0!==_0x50d2dd['getRootsAttributes'];}async function N(_0x4a18e7,_0x25494a,_0x2da5b1){const _0x3e1cfd=_0x1dab40(_0x4a18e7,T);_0x3e1cfd['plugins']['push'](p,D),_0x3e1cfd['rootsAttributes']=v(_0x4a18e7)?_0x4a18e7['getRootsAttributes']():void 0x0;const _0x2e3d24=document['createDocumentFragment'](),_0x4b9128=_0x4a18e7['config']['get']('trackChangesData')['editorCreator'],_0x535f27=await _0x4b9128(_0x3e1cfd,()=>function(_0x23a08a){const _0x2e97dd=document['createElement']('div');return _0x23a08a['appendChild'](_0x2e97dd),_0x2e97dd;}(_0x2e3d24));!function(_0x4022cb,_0xa7e2cb){const _0x343f86=_0x4022cb['model']['document']['getRootNames']()['reduce']((_0x28541e,_0x359fd7)=>(_0x28541e[_0x359fd7]=_0x4022cb['data']['get']({'rootName':_0x359fd7}),_0x28541e),{}),_0x2665f5=_0x4022cb['plugins']['get']('Users')['users']['map'](_0x5a792e=>({'id':_0x5a792e['id'],'name':_0x5a792e['name']})),_0x4317d7=_0x4022cb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10aad5=_0xa7e2cb['plugins']['get']('Users'),_0x6f4b1b=_0xa7e2cb['plugins']['get']('TrackChangesEditing');for(const _0x901462 of _0x2665f5)_0x10aad5['getUser'](_0x901462['id'])||_0x10aad5['addUser'](_0x901462);_0x10aad5['me']||_0x10aad5['useAnonymousUser']();for(const _0x2a2ef6 of _0x4317d7)_0x6f4b1b['addSuggestionData'](_0x2a2ef6);_0xa7e2cb['data']['set'](_0x343f86);}(_0x4a18e7,_0x535f27),_0x535f27['execute'](_0x25494a?'acceptAllSuggestions':'discardAllSuggestions');const _0x141703=v(_0x535f27)?_0x535f27['getFullData'](_0x2da5b1):_0x535f27['data']['get'](_0x2da5b1);return await _0x535f27['destroy'](),_0x141703;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};