@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240925.0 → 0.0.0-nightly-20240927.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 (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x3cc490,PendingActions as _0x28f729,icons as _0x3b920d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1e75e0,ObservableMixin as _0x2bfc2e,uid as _0x36eeaa,insertToPriorityArray as _0x3c123a,priorities as _0x1b23c8,logWarning as _0x249a14,getEnvKeystrokeText as _0xb9abf9,FocusTracker as _0x1a6770,KeystrokeHandler as _0xec262a,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4a8582,View as _0x141ea4,ViewCollection as _0x3031f9,FocusCycler as _0xeffe40,ViewModel as _0x1be4ba,createDropdown as Qt,SplitButtonView as _0x1aa0e2,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2c9755}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x854ae2,hashObject as _0x2287f9,surroundingMarkersDetector as _0x32db40,FOCUS_ANNOTATION_KEYSTROKE as _0x4438d0,AriaDescriptionView as _0x407379,setupThreadKeyboardNavigation as _0xee32ad,trimHtml as _0x381f86,UserView as _0x3afdf9,LateFocusButtonView as _0x456809,getDateTimeFormatter as _0x507d6b,getAllMarkersDomElementsSorted as _0x393583,sanitizeEditorConfig as _0x39574}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x23b48d,LiveRange as _0x5ed280,LivePosition as _0x2e45ca}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4976b6,toWidget as _0x3c7c86}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5a8191,set as _0x1c70cf,isEqual as _0x2d7d66,unset as _0x42fad5,omit as Tt}from'lodash-es';import{Delete as _0x133b98,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bb9ca,ShiftEnter as _0xca3ce1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3b6ed6,_0x2bbb65){super(_0x3b6ed6),this['_enabledCommands']=_0x2bbb65,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x3c9e7f of this['editor']['commands']['commands']())_0x3c9e7f['affectsData']&&!this['_enabledCommands']['has'](_0x3c9e7f)&&_0x3c9e7f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x87e86b of this['editor']['commands']['commands']())_0x87e86b['affectsData']&&!this['_enabledCommands']['has'](_0x87e86b)&&_0x87e86b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x5c05d2,_0x1c1858){super(_0x5c05d2),this['_suggestions']=_0x1c1858,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59ab05){const _0xd380d0=this['_suggestions']['get'](_0x59ab05);if(!_0xd380d0)throw new _0x1e75e0('track-changes-accept-suggestion-not-found',this);const _0x2957d8=_0xd380d0['getRanges']();this['editor']['model']['canEditAt'](_0x2957d8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd380d0);}}class R extends ts{['_suggestions'];constructor(_0x153d65,_0x334858){super(_0x153d65),this['_suggestions']=_0x334858,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f9d34){const _0x23aec1=this['_suggestions']['get'](_0x3f9d34);if(!_0x23aec1)throw new _0x1e75e0('track-changes-discard-suggestion-not-found',this);const _0x21d1b2=_0x23aec1['getRanges']();this['editor']['model']['canEditAt'](_0x21d1b2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x23aec1);}}function ls(_0x4a76da,_0x3d6af7){let _0x3c6b2f='';return _0x3c6b2f+=_0x4a76da['split']('*')['map']((_0x158fb9,_0x2fb9f8)=>_0x2fb9f8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x158fb9)+'</span>':nn(_0x158fb9))['join'](''),_0x3d6af7&&(_0x3c6b2f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3d6af7['value']+'\x22\x20title=\x22'+_0x3d6af7['title']+'\x22></span>'),_0x3c6b2f;}function nn(_0x22b28a){const _0x1e77c0=document['createElement']('span');return _0x1e77c0['innerText']=_0x22b28a,_0x1e77c0['innerHTML'];}function ss(_0xc4789){return _0xc4789['sort']((_0x852e67,_0x5556ee)=>'deletion'==_0x852e67['type']&&'deletion'!=_0x5556ee['type']?-0x1:'deletion'!=_0x852e67['type']&&'deletion'==_0x5556ee['type']?0x1:0x0);}function to(_0x3ea70b,_0x2269cb){let _0x589013,_0x3007f7=0x0;const _0x83ca0=[],_0x5eea57=_0x2269cb['schema'];for(;_0x3007f7<_0x3ea70b['length'];){const _0x594db0=_0x3ea70b[_0x3007f7],_0x198155=_0x3ea70b[_0x3007f7+0x1];_0x589013||(_0x589013=_0x2269cb['createPositionBefore'](_0x594db0)),on(_0x2269cb,_0x594db0,_0x198155)||(_0x83ca0['push'](_0x2269cb['createRange'](_0x589013,_0x5eea57['isObject'](_0x594db0)?_0x2269cb['createPositionAfter'](_0x594db0):_0x2269cb['createPositionAt'](_0x594db0,'end'))),_0x589013=null),_0x3007f7++;}return _0x83ca0;}function on(_0xab0011,_0x364975,_0x45234f){if(!_0x45234f)return!0x1;const _0x4597ee=_0xab0011['createPositionAfter'](_0x364975),_0x43f442=_0xab0011['createPositionBefore'](_0x45234f);return _0x4597ee['isTouching'](_0x43f442);}function rs(_0x2c997f,_0x344aba,_0x2575b9){for(;_0x2575b9['length'];){const _0x1e9182=_0x2575b9['splice'](0x0,0x64);_0x2c997f['change'](()=>{for(const _0x1c1217 of _0x1e9182)_0x1c1217['isInContent']&&_0x344aba['execute'](_0x1c1217['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3c3e60,_0x1f6865,_0x62bb7b){super(_0x3c3e60),this['_command']=_0x1f6865,this['_suggestions']=_0x62bb7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2400a7=Array['from'](this['_suggestions']['values']())['some'](_0x3fd768=>_0x3fd768['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2400a7;}['execute'](){const _0x51e546=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5bbe53 of _0x51e546){const _0x35118e=_0x5bbe53['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35118e))return;}rs(this['editor']['model'],this['_command'],_0x51e546);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x31a215,_0x385ee9,_0x5acf01){super(_0x31a215),this['_command']=_0x385ee9,this['_suggestions']=_0x5acf01,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34327e=this['editor']['model']['document']['selection'],_0x35fca5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3db525,_0x24e900){const _0x3ee302=Array['from'](_0x3db525['getRanges']()),_0x34dc43=new Set();for(const _0x6cdcec of _0x24e900)if(_0x6cdcec['isInContent']){for(const _0x1ecf85 of _0x3ee302)for(const _0x47f7aa of _0x6cdcec['getRanges']())(_0x1ecf85['isIntersecting'](_0x47f7aa)||_0x3db525['isCollapsed']&&!_0x6cdcec['isMultiRange']&&_0x6cdcec['next']&&_0x47f7aa['end']['isTouching'](_0x1ecf85['start']))&&_0x34dc43['add'](_0x6cdcec);}return _0x34dc43;}(_0x34327e,_0x35fca5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x356ecd=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4426d2 of _0x356ecd){const _0x4b451c=_0x4426d2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b451c))return;}rs(this['editor']['model'],this['_command'],_0x356ecd);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2bfc2e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1ad9d0,_0xdc4e05){super(),this['id']=_0xdc4e05['id'],this['type']=_0xdc4e05['type'],this['subType']=_0xdc4e05['subType']||null,this['author']=_0xdc4e05['author'],this['creator']=_0xdc4e05['creator']||_0xdc4e05['author'],this['isExternal']=Boolean(_0xdc4e05['attributes']&&_0xdc4e05['attributes']['@external']),this['data']=null,this['_model']=_0x1ad9d0,this['_onAccept']=_0xdc4e05['onAccept'],this['_onDiscard']=_0xdc4e05['onDiscard'],this['_onAttributesChange']=_0xdc4e05['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xdc4e05['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4e569e=this;for(;_0x4e569e['previous'];)_0x4e569e=_0x4e569e['previous'];return _0x4e569e;}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'](_0x585ed5){this['_markerNames']['add'](_0x585ed5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3857d5=>this['_model']['markers']['get'](_0x3857d5))['filter'](_0x3b7ffc=>_0x3b7ffc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x11588b=>{for(const _0x471528 of this['getMarkers']())_0x11588b['removeMarker'](_0x471528);}),this['_markerNames']['clear']();}['removeMarker'](_0x4229d4){this['_model']['change'](_0xbeb68d=>{_0xbeb68d['removeMarker'](_0x4229d4);}),this['_markerNames']['delete'](_0x4229d4);}['addRange'](_0x3f43be){const _0x1d4882='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1d4882),this['_model']['change'](_0x20fc70=>{_0x20fc70['addMarker'](_0x1d4882,{'range':_0x3f43be,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4ac27d){for(const _0x5c09e0 of this['getRanges']())if(_0x5c09e0['isIntersecting'](_0x4ac27d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x441b57=>_0x441b57['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22babf,_0x3c65a1)=>[..._0x22babf,..._0x3c65a1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x57b0cd=this['getRanges']();if(0x1!=_0x57b0cd['length'])return null;const _0x7fa725=_0x57b0cd[0x0],_0xad4927=_0x7fa725['start']['nodeAfter'],_0x5cdb36=_0x7fa725['end']['nodeBefore'];return _0xad4927 instanceof _0x23b48d?_0xad4927!=_0x5cdb36?null:_0xad4927: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 _0x202821=[];let _0x574fd9=this['head'];for(;_0x574fd9;)_0x202821['push'](_0x574fd9),_0x574fd9=_0x574fd9['next'];return _0x202821;}['setAttribute'](_0x25d129,_0x2d51d){const _0x1708da=_0x5a8191(this['attributes']);_0x1c70cf(_0x1708da,_0x25d129,_0x2d51d),_0x2d7d66(_0x1708da,this['attributes'])||(this['attributes']=_0x1708da,this['_onAttributesChange'](_0x1708da));}['removeAttribute'](_0x1e7a91){const _0x1dcebb=_0x5a8191(this['attributes']);_0x42fad5(_0x1dcebb,_0x1e7a91),_0x2d7d66(_0x1dcebb,this['attributes'])||(this['attributes']=_0x1dcebb,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 _0x36eeaa()['substr'](0x1,0x5);}}function o(_0x1b3d01,_0x12f5b9,_0x13e0e3){const t=_0x1b3d01['t'];switch(_0x12f5b9){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',_0x13e0e3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13e0e3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13e0e3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13e0e3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13e0e3);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',_0x13e0e3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13e0e3);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',_0x13e0e3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13e0e3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13e0e3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13e0e3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13e0e3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13e0e3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13e0e3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13e0e3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13e0e3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13e0e3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13e0e3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13e0e3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13e0e3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13e0e3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13e0e3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13e0e3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13e0e3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13e0e3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13e0e3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13e0e3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13e0e3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13e0e3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13e0e3);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x13e0e3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13e0e3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13e0e3);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13e0e3);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x13e0e3);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x13e0e3);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x13e0e3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x12f5b9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ba966,_0xa71215){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ba966,this['_locale']=_0xa71215;}['getDescriptions'](_0x1ee2bf){const _0x31554b=[],_0x5d730c=new Set(),_0x1b28d6=new Set();for(let _0x147c66=0x0;_0x147c66<_0x1ee2bf['length'];_0x147c66++){const _0x2554e4=_0x1ee2bf[_0x147c66];if(!_0x2554e4['isInContent'])continue;const _0x5f32b5=this['_handleCustomCallbackDescription'](_0x2554e4);if(_0x5f32b5){if(null!=_0x2554e4['subType']){if(_0x5d730c['has'](_0x2554e4['subType']))continue;_0x5d730c['add'](_0x2554e4['subType']);}_0x31554b['push'](_0x5f32b5);}else{if('attribute'!=_0x2554e4['type'])'insertion'!=_0x2554e4['type']&&'deletion'!=_0x2554e4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x31554b,_0x2554e4,_0x1ee2bf[_0x147c66+0x1]);else{const _0x1a0340=_0x2554e4['data']['key'];if(_0x1b28d6['has'](_0x1a0340))continue;_0x1b28d6['add'](_0x2554e4['data']['key']),_0x1a0340==m?this['_handleRenameSuggestionDescription'](_0x31554b,_0x2554e4):this['_handleAttributeSuggestionDescription'](_0x31554b,_0x2554e4);}}}return this['_resolveDescriptionItems'](_0x31554b);}['registerDescriptionCallback'](_0x54f57f){this['_customCallbacks']['push'](_0x54f57f);}['registerElementLabel'](_0x23425f,_0xe75c2e,_0x144c26=_0x1b23c8['normal']){'function'==typeof _0x23425f?_0x3c123a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23425f,'label':_0xe75c2e,'priority':_0x144c26}):this['_itemLabels']['set'](_0x23425f,_0xe75c2e);}['registerAttributeLabel'](_0x475662,_0x50914e){this['_attributeLabels']['set'](_0x475662,_0x50914e);}['getItemLabel'](_0x59a80f,_0x146e17=0x1){let _0x4e3415;for(const _0x426d94 of this['_itemLabelsCallbacks'])if(_0x426d94['matchingCallback'](_0x59a80f)){_0x4e3415=_0x426d94['label'];break;}return _0x4e3415||(_0x4e3415=this['_itemLabels']['get'](_0x59a80f['name'])),_0x4e3415?_0x4e3415(_0x146e17):0x1!==_0x146e17?_0x146e17+'\x20'+_0x59a80f['name']+'s':''+_0x59a80f['name'];}['_addDescriptionItems'](_0x4338b4,_0x369bb9){const _0x6d3809=_0x369bb9['getFirstRange']()['getWalker'](),_0x5319d4='insertion'==_0x369bb9['type']?'add':'remove';for(const _0xad8f54 of _0x6d3809){const _0x1e146c=_0xad8f54['item'],_0x24feef=_0x4338b4[_0x4338b4['length']-0x1];if(_0x1e146c['is']('$textProxy'))_0x24feef&&_0x24feef['type']['indexOf']('Container')>-0x1&&_0x4338b4['pop'](),_0x24feef&&'text'==_0x24feef['type']?_0x24feef[_0x5319d4]+=_0x1e146c['data']:_0x4338b4['push']({'type':'text','add':'add'==_0x5319d4?_0x1e146c['data']:'','remove':'remove'==_0x5319d4?_0x1e146c['data']:''});else{if(this['_schema']['isObject'](_0x1e146c)){const _0xc124ae=_0x1e146c;if(_0x24feef&&_0x24feef['type']['indexOf']('Container')>-0x1&&_0x4338b4['pop'](),'elementEnd'==_0xad8f54['type'])continue;_0x24feef&&_0x24feef['type']==_0x5319d4+'Object'&&_0x24feef['element']['name']==_0xc124ae['name']?_0x24feef['quantity']++:_0x4338b4['push']({'type':_0x5319d4+'Object','element':_0xc124ae,'quantity':0x1}),_0x6d3809['skip'](_0x4202cc=>!('elementEnd'==_0x4202cc['type']&&_0x4202cc['item']==_0x1e146c));}else{if(this['_schema']['checkChild'](_0x1e146c,'$text')||_0x1e146c['is']('element','softBreak')){const _0x549e29=_0x1e146c;if('add'==_0x5319d4&&'elementStart'==_0xad8f54['type']||'remove'==_0x5319d4&&'elementEnd'==_0xad8f54['type'])continue;if(_0x24feef&&-0x1==_0x24feef['type']['indexOf']('Container')){'text'==_0x24feef['type']&&(_0x24feef[_0x5319d4]+='\x0a');continue;}let _0x11de76;if(_0x11de76='add'==_0x5319d4?_0x549e29['nextSibling']&&!this['_schema']['isObject'](_0x549e29['nextSibling'])?_0x549e29['nextSibling']:null:_0x549e29['previousSibling']&&!this['_schema']['isObject'](_0x549e29['previousSibling'])?_0x549e29['previousSibling']:null,_0x549e29['isEmpty']||_0x11de76&&_0x11de76['isEmpty']){const _0x2ea1e2=_0x11de76&&_0x11de76['isEmpty']?_0x11de76:_0x549e29;_0x24feef&&_0x24feef['type']==_0x5319d4+'EmptyContainer'&&_0x24feef['element']['name']==_0x2ea1e2['name']?_0x24feef['quantity']++:_0x4338b4['push']({'type':_0x5319d4+'EmptyContainer','element':_0x2ea1e2,'quantity':0x1});}else _0x4338b4['push']({'type':_0x5319d4+'Container','element':_0x549e29});}}}}}['_resolveDescriptionItems'](_0x2e2b35){const _0x3e90c3=this['_locale'],_0x535cc1=[],_0x30ff45=[],_0x383b88=[];for(const _0x5cbb99 of _0x2e2b35)switch(_0x5cbb99['type']){case'text':if(_0x5cbb99['add']=_0x5cbb99['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5cbb99['remove']=_0x5cbb99['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5cbb99['add']&&''!=_0x5cbb99['remove']){_0x535cc1['push']({'type':'replace','content':o(_0x3e90c3,'REPLACE_TEXT',['\x22'+_0x5cbb99['remove']+'\x22','\x22'+_0x5cbb99['add']+'\x22'])});continue;}if(null!=_0x5cbb99['add']['match'](/^ +$/)){_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0',o(_0x3e90c3,'ELEMENT_SPACE',_0x5cbb99['add']['length']))});continue;}if(null!=_0x5cbb99['remove']['match'](/^ +$/)){_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0',o(_0x3e90c3,'ELEMENT_SPACE',_0x5cbb99['remove']['length']))});continue;}if(''!=_0x5cbb99['add']){_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0','\x22'+_0x5cbb99['add']+'\x22')});continue;}_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0','\x22'+_0x5cbb99['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'addContainer':_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Split:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'removeContainer':_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Merge:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'addFormat':_0x30ff45['push'](_0x5cbb99['key']);continue;case'removeFormat':_0x383b88['push'](_0x5cbb99['key']);continue;default:_0x535cc1['push'](_0x5cbb99);}if(_0x30ff45['length']){const _0x46e310=_0x30ff45['map'](_0x308002=>this['_attributeLabels']['has'](_0x308002)?this['_attributeLabels']['get'](_0x308002):_0x308002)['join'](',\x20');_0x535cc1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x46e310)});}if(_0x383b88['length']){const _0x50faff=_0x383b88['map'](_0x1d871a=>this['_attributeLabels']['has'](_0x1d871a)?this['_attributeLabels']['get'](_0x1d871a):_0x1d871a)['join'](',\x20');_0x535cc1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50faff)});}return _0x535cc1;}['_handleCustomCallbackDescription'](_0x3037c8){for(const _0x4da99c of this['_customCallbacks']){const _0xbfaa88=_0x4da99c(_0x3037c8);if(_0xbfaa88&&'type'in _0xbfaa88)return _0xbfaa88;}}['_handleAttributeSuggestionDescription'](_0x192198,_0x419dab){const _0x1cbb0f=_0x419dab['data'],_0x59db98=void 0x0===_0x1cbb0f['newValue']?'removeFormat':'addFormat';_0x192198['push']({'type':_0x59db98,'key':_0x1cbb0f['key']});}['_handleRenameSuggestionDescription'](_0x2d7df8,_0x3fa9ec){_0x2d7df8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3fa9ec['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3e0874,_0x23a83b,_0x4692a3){if(this['_addDescriptionItems'](_0x3e0874,_0x23a83b),_0x4692a3&&_0x4692a3['getFirstRange']()&&!_0x23a83b['getFirstRange']()['end']['isEqual'](_0x4692a3['getFirstRange']()['start'])){const _0x13c5f5=_0x3e0874[_0x3e0874['length']-0x1],_0xe4cee5='insertion'==_0x23a83b['type']?'add':'remove';_0x13c5f5&&'text'==_0x13c5f5['type']&&(_0x13c5f5[_0xe4cee5]+='\x0a');}}}class V extends _0x3cc490{['afterInit'](){const _0x8ff792=this['editor'],_0x24ff15=_0x8ff792['plugins']['get']('TrackChangesEditing');_0x8ff792['commands']['get']('showAIAssistant')&&_0x24ff15['enableCommand']('showAIAssistant');}}class U extends _0x3cc490{['afterInit'](){const _0x500761=this['editor'],_0x22f35b=_0x500761['locale'];if(!_0x500761['plugins']['has']('AlignmentEditing'))return;const _0x2c5cc2=_0x500761['plugins']['get']('TrackChangesEditing');_0x2c5cc2['enableDefaultAttributesIntegration']('alignment'),_0x2c5cc2['registerBlockAttribute']('alignment'),_0x2c5cc2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22f35b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31b449=this['editor'],_0x4e5f29=_0x31b449['locale'];_0x31b449['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a59c=>{if('formatBlock'!=_0x32a59c['type'])return;const {data:_0xdd673e}=_0x32a59c;if(_0xdd673e&&'alignment'==_0xdd673e['commandName']){const _0x370f21=_0xdd673e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e5f29,'*Format:*\x20%0',function(_0x143ea7){switch(_0x143ea7){case'left':return o(_0x4e5f29,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e5f29,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e5f29,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e5f29,'FORMAT_JUSTIFY_TEXT');}}(_0x370f21))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3cc490{['afterInit'](){const _0xee7cb3=this['editor'],_0x1699dc=_0xee7cb3['plugins']['get']('TrackChangesEditing'),_0x13df0d=_0xee7cb3['locale'];for(const _0x1f2a31 of ti){if(!_0xee7cb3['plugins']['has'](_0x1f2a31))continue;const _0x182d1a=_0x1f2a31['slice'](0x0,-0x7)['toLowerCase'](),_0x42ce3c='FORMAT_'+_0x182d1a['toUpperCase']();_0x1699dc['enableDefaultAttributesIntegration'](_0x182d1a),_0x1699dc['registerInlineAttribute'](_0x182d1a),_0x1699dc['descriptionFactory']['registerAttributeLabel'](_0x182d1a,o(_0x13df0d,_0x42ce3c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b8a2b=this['editor'],_0x2b22ee=_0x2b8a2b['locale'],_0xc75e2f=_0x2b8a2b['plugins']['get']('TrackChangesEditing');function _0x3cdbcd(_0x5e56d9,_0x43a070){_0xc75e2f['descriptionFactory']['registerDescriptionCallback'](_0x5739cb=>{if('formatInline'!=_0x5739cb['type'])return;const {data:_0x6ea94}=_0x5739cb;return _0x6ea94&&_0x6ea94['commandName']===_0x5e56d9?_0x6ea94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b22ee,'*Format:*\x20%0',_0x43a070)}:{'type':'format','content':o(_0x2b22ee,'*Remove\x20format:*\x20%0',_0x43a070)}:void 0x0;});}_0x3cdbcd('bold',o(_0x2b22ee,'FORMAT_BOLD')),_0x3cdbcd('italic',o(_0x2b22ee,'FORMAT_ITALIC')),_0x3cdbcd('underline',o(_0x2b22ee,'FORMAT_UNDERLINE')),_0x3cdbcd('code',o(_0x2b22ee,'FORMAT_CODE')),_0x3cdbcd('strikethrough',o(_0x2b22ee,'FORMAT_STRIKETHROUGH')),_0x3cdbcd('subscript',o(_0x2b22ee,'FORMAT_SUBSCRIPT')),_0x3cdbcd('superscript',o(_0x2b22ee,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3cc490{['afterInit'](){const _0x5c10d7=this['editor'],_0x58ff2d=_0x5c10d7['locale'];if(!_0x5c10d7['plugins']['has']('BlockQuoteEditing'))return;const _0x594c07=_0x5c10d7['plugins']['get']('TrackChangesEditing'),_0x155f24=this['editor']['commands']['get']('blockQuote');_0x594c07['enableCommand']('blockQuote',(_0x53b71e,_0x2224a6={})=>{const _0x132bf6=this['editor']['model']['document']['selection'],_0x4c08fb=_0x2224a6&&void 0x0!==_0x2224a6['forceValue']?_0x2224a6['forceValue']:!_0x155f24['value'];let _0x1ce5eb=[];if(_0x4c08fb){const _0x48947a=Array['from'](_0x132bf6['getSelectedBlocks']())['filter'](_0x1ec543=>oo(_0x1ec543)||function(_0x57f35b,_0x5babe1){const _0x103a55=_0x5babe1['checkChild'](_0x57f35b['parent'],'blockQuote'),_0x2ec3b3=_0x5babe1['checkChild'](['$root','blockQuote'],_0x57f35b);return _0x103a55&&_0x2ec3b3;}(_0x1ec543,this['editor']['model']['schema']));_0x1ce5eb=to(_0x48947a,_0x5c10d7['model']);}else{const _0x4c276a=Array['from'](_0x132bf6['getSelectedBlocks']())['filter'](_0x4d9427=>oo(_0x4d9427));_0x1ce5eb=to(_0x4c276a,_0x5c10d7['model']);}_0x5c10d7['model']['change'](()=>{for(const _0x43b6c8 of _0x1ce5eb)_0x594c07['markBlockFormat'](_0x43b6c8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c08fb}]});});}),_0x594c07['descriptionFactory']['registerDescriptionCallback'](_0x245ce0=>{const {data:_0x404468}=_0x245ce0;if(_0x404468&&'blockQuote'==_0x404468['commandName']){const _0x329b91=o(_0x58ff2d,'ELEMENT_BLOCK_QUOTE');return _0x404468['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58ff2d,'*Set\x20format:*\x20%0',_0x329b91)}:{'type':'format','content':o(_0x58ff2d,'*Remove\x20format:*\x20%0',_0x329b91)};}});}}function oo(_0x7fc08e){return'blockQuote'==_0x7fc08e['parent']['name'];}class L extends _0x3cc490{['afterInit'](){const _0x364611=this['editor'];_0x364611['plugins']['has']('CaseChange')&&(_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3cc490{['afterInit'](){const _0x25b0eb=this['editor'];_0x25b0eb['commands']['get']('ckbox')&&_0x25b0eb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3cc490{['afterInit'](){const _0x2f8456=this['editor'];if(!_0x2f8456['plugins']['has']('CodeBlock'))return;const _0xa0b6f4=_0x2f8456['plugins']['get']('TrackChangesEditing'),_0x3a4193=_0x2f8456['locale'],_0x4bf1a2=_0x2f8456['config']['get']('codeBlock')['languages'],_0x3c2da3=_0x2f8456['commands']['get']('codeBlock');_0xa0b6f4['enableCommand']('indentCodeBlock'),_0xa0b6f4['enableCommand']('outdentCodeBlock'),_0xa0b6f4['enableCommand']('codeBlock',(_0x4b5795,_0x45a310={})=>{const _0x2cf175=_0x2f8456['model'],_0x353c2f=_0x2f8456['model']['document']['selection'],_0xedc2c2=_0x45a310&&void 0x0!==_0x45a310['forceValue']?_0x45a310['forceValue']:!_0x3c2da3['value'];let _0x32ab7d;_0x45a310['language']||(_0x45a310['language']=_0x4bf1a2[0x0]['language']),_0x32ab7d=_0xedc2c2?Array['from'](_0x353c2f['getSelectedBlocks']())['filter'](_0x4136e7=>eo(_0x4136e7)||function(_0x3bc5e5,_0x1f9c0a){if(_0x3bc5e5['is']('rootElement')||_0x1f9c0a['isLimit'](_0x3bc5e5))return!0x1;return _0x1f9c0a['checkChild'](_0x3bc5e5['parent'],'codeBlock');}(_0x4136e7,_0x2cf175['schema'])):Array['from'](_0x353c2f['getSelectedBlocks']())['filter'](_0x48c6b3=>eo(_0x48c6b3));const _0x3dc3dd=to(_0x32ab7d,_0x2cf175);_0x2cf175['change'](()=>{for(const _0x4b7c92 of _0x3dc3dd)_0xa0b6f4['markBlockFormat'](_0x4b7c92,{'commandName':'codeBlock','commandParams':[{..._0x45a310,'forceValue':_0xedc2c2}],'formatGroupId':'blockName'});});}),(_0xa0b6f4['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d874b=>o(_0x3a4193,'ELEMENT_CODE_BLOCK',_0x4d874b)),_0xa0b6f4['descriptionFactory']['registerDescriptionCallback'](_0x5519ec=>{if('formatBlock'!=_0x5519ec['type'])return;const _0x5d116f=_0x3a4193['t'],{data:_0x31decb}=_0x5519ec;if(!_0x31decb||'codeBlock'!=_0x31decb['commandName'])return;const _0x3f9052=_0x31decb['commandParams'][0x0]['language'],_0x469075=_0x5d116f(_0x4bf1a2['find'](_0x3f8e2c=>_0x3f8e2c['language']===_0x3f9052)['label'])['toLowerCase']();return _0x31decb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a4193,'*Set\x20format:*\x20%0',o(_0x3a4193,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x469075+')')}:{'type':'format','content':o(_0x3a4193,'*Remove\x20format:*\x20%0',o(_0x3a4193,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x55c148){return'codeBlock'==_0x55c148['name'];}class q extends _0x3cc490{['afterInit'](){const _0x39d31d=this['editor'];if(!_0x39d31d['plugins']['has']('CommentsEditing'))return;_0x39d31d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4061f5,_0x6a8ca2,_0x42644f){const _0x36eb11=[];for(const _0x3b1d78 of _0x6a8ca2['getItems']())_0x3b1d78['hasAttribute'](_0x4061f5)&&_0x36eb11['push'](_0x42644f['createRangeOn'](_0x3b1d78));return _0x36eb11;}function _e(_0x1f8f19,_0xb4d9e0,{showActiveMarker:_0xe4fdd0=!0x0}={}){const _0x2723c3=_0x1f8f19['plugins']['get']('TrackChangesEditing');return(_0x486d00,_0x4a982e,_0x42e303)=>{if(!_0x42e303['consumable']['test'](_0x4a982e['markerRange'],_0x486d00['name']))return;const _0x47b771=_0x4a982e['markerRange']['getWalker'](),_0xbf3a64=_0x4a982e['markerRange']['start'],_0x505642=_0x1f8f19['model']['schema'];let _0x563cf3=null,_0x419045=null,_0x28b526=!0x1,_0x4df0ba=!0x1;for(const _0x42d269 of _0x47b771){const _0x32cb12=_0x42d269['item'];_0x28b526=_0x28b526||_0x505642['isContent'](_0x32cb12);const _0x3cc436=_0x42e303['mapper']['toViewElement'](_0x32cb12);if(_0x3cc436&&_0x3cc436['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42d269['type']&&(_0x505642['isBlock'](_0x32cb12)&&!_0x505642['isLimit'](_0x32cb12)&&(_0x32cb12['nextSibling']||_0xbf3a64['isAtEnd']?_0x563cf3&&_0x563cf3['parent']==_0x32cb12||(_0x563cf3=_0x32cb12,_0x144782(_0x42d269['previousPosition']),_0x4df0ba=!0x0):_0x419045=_0x419045||_0x42d269['previousPosition']));}function _0x144782(_0x20b76b){const {authorId:_0x1418d5}=_0x2723c3['_splitMarkerName'](_0x4a982e['markerName']),_0xa65931=_0x42e303['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb4d9e0,'data-author-id':_0x1418d5}),_0x404f2f=_0x42e303['mapper']['toViewPosition'](_0x20b76b);_0xe4fdd0&&_0x2723c3['activeMarkers']['includes'](_0x4a982e['markerName'])&&_0x42e303['writer']['addClass']('ck-suggestion-marker--active',_0xa65931),_0x42e303['writer']['insert'](_0x404f2f,_0xa65931),_0x42e303['mapper']['bindElementToMarker'](_0xa65931,_0x4a982e['markerName']);}_0x28b526||_0x4df0ba||!_0x419045||_0x144782(_0x419045);};}class z extends _0x3cc490{static get['requires'](){return[_0x133b98];}['init'](){const _0x1e6c69=this['editor'],_0x1ff6bf=_0x1e6c69['plugins']['get']('TrackChangesEditing');_0x1ff6bf['enableCommand']('delete');const _0xa98544=_0x1e6c69['commands']['get']('deleteForward');_0x1ff6bf['enableCommand']('deleteForward',(_0x5e5da0,_0x3523bc={})=>{const _0x169687=_0x1e6c69['model']['createSelection'](_0x1e6c69['model']['document']['selection']);_0x169687['isCollapsed']&&_0x1e6c69['model']['modifySelection'](_0x169687,{'direction':'forward','unit':_0x3523bc['unit']});const _0x11a201=_0x169687['getFirstRange'](),_0x2f1f03=_0x5ed280['fromRange'](_0x11a201);let _0x3bd2ac;_0x5e5da0(_0x3523bc),_0x3bd2ac='$graveyard'==_0x2f1f03['root']['rootName']?_0x1e6c69['model']['createRange'](_0x11a201['start']):_0x1e6c69['model']['createRange'](_0x2f1f03['start'],_0x2f1f03['end']),_0x2f1f03['detach'](),_0x1e6c69['model']['enqueueChange'](_0xa98544['buffer']['batch'],_0x3d3acd=>{_0xa98544['buffer']['lock'](),_0x3d3acd['setSelection'](_0x3d3acd['createRange'](_0x3bd2ac['end'])),_0xa98544['buffer']['unlock']();});}),_0x1e6c69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1e6c69,'merge'),{'priority':'high'}),_0x1e6c69['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1a3517,_0x869693,_0x14bf50)=>{_0x14bf50['options']['showSuggestionHighlights']&&_e(_0x1e6c69,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1a3517,_0x869693,_0x14bf50);},{'priority':'high'}),_0x1e6c69['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xdfb0b7,_0x1e961c,_0x1c8982)=>{const _0x4ba057=_0x1c8982['mapper']['markerNameToElements'](_0x1e961c['markerName']);if(_0x4ba057){for(const _0x58393a of _0x4ba057)_0x58393a['is']('uiElement')&&(_0x1c8982['mapper']['unbindElementFromMarkerName'](_0x58393a,_0x1e961c['markerName']),_0x1c8982['writer']['remove'](_0x58393a));}},{'priority':'high'});}}class K extends _0x3cc490{['afterInit'](){const _0x213e7c=this['editor'];if(!_0x213e7c['plugins']['has']('ListEditing'))return;const _0x2035f0=_0x213e7c['locale'],_0x483917=_0x213e7c['plugins']['get']('TrackChangesEditing'),_0x355429=_0x213e7c['plugins']['has']('TodoListEditing'),_0x3f7f34=!!_0x213e7c['config']['get']('list.multiBlock');function _0x371133(_0x56b41f){return{'type':'format','content':''+o(_0x2035f0,'*Set\x20format:*\x20%0',_0x56b41f)};}function _0x5bd258(_0x4c0509){return{'type':'format','content':''+o(_0x2035f0,'*Remove\x20format:*\x20%0',_0x4c0509)};}_0x483917['enableDefaultAttributesIntegration']('numberedList'),_0x483917['enableDefaultAttributesIntegration']('bulletedList'),_0x483917['enableDefaultAttributesIntegration']('customNumberedList'),_0x483917['enableDefaultAttributesIntegration']('customBulletedList'),_0x483917['enableDefaultAttributesIntegration']('indentList'),_0x483917['enableDefaultAttributesIntegration']('outdentList'),_0x483917['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x483917['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x483917['registerBlockAttribute']('listItemId'),_0x483917['registerBlockAttribute']('listType'),_0x483917['registerBlockAttribute']('listIndent'),_0x3f7f34&&(_0x483917['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x483917['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x355429&&(_0x483917['enableDefaultAttributesIntegration']('todoList'),_0x483917['enableDefaultAttributesIntegration']('checkTodoList'),_0x483917['registerBlockAttribute']('todoListChecked'),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x2820de=>{const {data:_0x1f49ab}=_0x2820de;if(_0x1f49ab&&'todoListChecked'==_0x1f49ab['key'])return{'type':'format','content':_0x1f49ab['newValue']?o(_0x2035f0,'*Check\x20item*'):o(_0x2035f0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x435329=>{if(_0x435329['batch']['isUndo'])return!0x1;let _0x32eef9=!0x1;const _0x3f4668=_0x483917['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x124560=>'todoListChecked'===_0x483917['_getAttributeKey'](_0x124560));for(const _0x885dd0 of _0x3f4668){'todo'!=_0x885dd0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x483917['_findSuggestions'](_0x885dd0['getFirstRange'](),'attribute')['find'](_0x20ea0b=>'listType'===_0x483917['_getAttributeKey'](_0x20ea0b['suggestion']))||(_0x435329['removeMarker'](_0x885dd0['getFirstMarker']()),_0x32eef9=!0x0));}return _0x32eef9;})),_0x483917['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2035f0,'FORMAT_INDENT'));const _0x23cfed={'type':'format','content':''};_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x28f25b=>{const {data:_0x2629d3}=_0x28f25b;if(!_0x2629d3||'listType'!=_0x2629d3['key'])return;let _0x544bae=_0x28f25b['head'];for(;_0x544bae;){if(_0x544bae['data']&&(('listStyle'==_0x544bae['data']['key']||'listMarkerStyle'==_0x544bae['data']['key'])&&(_0x544bae['data']['newValue']&&'default'!=_0x544bae['data']['newValue']||'default'!=_0x544bae['data']['oldValue']&&!_0x2629d3['newValue'])||!_0x3f7f34&&_0x544bae['data']['key']==m))return _0x23cfed;_0x544bae=_0x544bae['next'];}if(null==_0x2629d3['newValue'])switch(_0x2629d3['oldValue']){case'bulleted':return _0x5bd258(o(_0x2035f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bd258(o(_0x2035f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bd258(o(_0x2035f0,'ELEMENT_TODO_LIST'));}switch(_0x2629d3['newValue']){case'bulleted':return _0x371133(o(_0x2035f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x371133(o(_0x2035f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x371133(o(_0x2035f0,'ELEMENT_TODO_LIST'));}}),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x28107a=>{const {data:_0x35b31b}=_0x28107a;if(_0x35b31b&&'listIndent'==_0x35b31b['key'])return null==_0x35b31b['newValue']||null==_0x35b31b['oldValue']&&0x0==_0x35b31b['newValue']?_0x23cfed:void 0x0;}),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x405ef7=>{if('attribute'!=_0x405ef7['type'])return;const {data:_0x481b63}=_0x405ef7;if(!_0x481b63||'listItemId'!=_0x481b63['key'])return;const _0x209f62=Ee(_0x405ef7);return'newValue'==_0x209f62?{'type':'format','content':o(_0x2035f0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x209f62?{'type':'format','content':o(_0x2035f0,'*Split:*\x20list\x20item')}:_0x23cfed;}),_0x213e7c['model']['document']['registerPostFixer'](_0x35ea94=>this['listItemIdFixer'](_0x35ea94)),_0x213e7c['model']['document']['registerPostFixer'](_0x3461ff=>this['noTrackChangesFixer'](_0x3461ff)),_0x213e7c['model']['document']['on']('change:data',(_0x43c88a,_0x34bb0a)=>{if(_0x34bb0a['isUndo']||!_0x34bb0a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1cd991){if(_0x1cd991['batch']['isUndo']||!_0x1cd991['batch']['isLocal'])return!0x1;let _0x53d6fa=!0x1;const _0x306513=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x525a3f=>_0x525a3f['data']&&'listItemId'==_0x525a3f['data']['key'])['filter'](_0x542a52=>_0x542a52['data']['newValue']&&_0x542a52['data']['oldValue']);for(const _0x19f739 of _0x306513)Ee(_0x19f739)||(_0x1cd991['removeMarker'](_0x19f739['getFirstMarker']()),_0x53d6fa=!0x0);return _0x53d6fa;}['noTrackChangesFixer'](_0x273adb){if(_0x273adb['batch']['isUndo']||!_0x273adb['batch']['isLocal'])return!0x1;const _0x4c717d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c717d['trackChangesCommand']['value'])return!0x1;let _0x9c3d36=!0x1;const _0xede9f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x508542=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53e3cd=>'attribute'==_0x53e3cd['type'])['filter'](_0x5529e1=>_0xede9f8['includes'](_0x5529e1['attributeKey']));if(0x0==_0x508542['length'])return _0x9c3d36;for(const _0x37d4d3 of _0x508542){const _0x50b586=_0x4c717d['_findSuggestions'](_0x37d4d3['range'],'attribute')['filter'](_0x447331=>!_0x447331['meta']['isNextTo'])['map'](_0x1b4538=>_0x1b4538['suggestion'])['filter'](_0x18e9a1=>{const _0x1f0fda=_0x4c717d['_getAttributeKey'](_0x18e9a1);return _0xede9f8['includes'](_0x1f0fda);});if(_0x50b586['length']){for(const _0x5719aa of _0x50b586)_0x273adb['removeMarker'](_0x5719aa['getFirstMarker']());_0x9c3d36=!0x0;}}return _0x9c3d36;}['assureChains'](){const _0x131b40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30b3db=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a7cf5;const _0x3ff364=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59783a=>{if(_0x59783a['data']['oldRange']||!_0x59783a['data']['newRange'])return null;if(!_0x59783a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x33f250}=_0x131b40['_splitMarkerName'](_0x59783a['name']);if(!_0x131b40['hasSuggestion'](_0x33f250))return null;const _0x45d6d1=_0x131b40['getSuggestion'](_0x33f250);return _0x30b3db['includes'](_0x45d6d1['data']['key']);})['map'](_0x927b2f=>{const {id:_0x262e8e}=_0x131b40['_splitMarkerName'](_0x927b2f['name']),_0xfb6586=_0x131b40['getSuggestion'](_0x262e8e);return _0x1a7cf5=_0xfb6586['attributes']['groupId'],_0xfb6586['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ff364['size'])return;const _0x53266f=_0x131b40['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c4b76=>'attribute'==_0x3c4b76['type']&&_0x3c4b76['data']&&_0x30b3db['includes'](_0x3c4b76['data']['key'])&&_0x3c4b76['attributes']['groupId']!=_0x1a7cf5)['map'](_0x4f5272=>({'listItem':_0x4f5272['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f5272['attributes']['groupId']})),_0x4c1e25=new Set();for(const {groupId:_0x10b03b,listItem:_0x10bc9d}of _0x53266f)_0x3ff364['has'](_0x10bc9d)&&_0x4c1e25['add'](_0x10b03b);for(const _0x15a544 of _0x131b40['getSuggestions']())_0x4c1e25['has'](_0x15a544['attributes']['groupId'])&&_0x15a544['setAttribute']('groupId',_0x1a7cf5);}['_supportLegacySuggestions'](){const _0x3da9b5=this['editor'],_0x142a34=_0x3da9b5['locale'],_0x102c53=_0x3da9b5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x102c53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a4d5d,_0x56434e){const _0x5a8f78=[];for(let _0x58937a of _0x2a4d5d)_0x58937a['start']['nodeAfter']===_0x58937a['end']['parent']&&(_0x58937a=_0x3da9b5['model']['createRange'](_0x3da9b5['model']['createPositionAt'](_0x58937a['start']['nodeAfter'],0x0))),_0x5a8f78['push'](_0x58937a);_0x3da9b5['model']['change'](_0xc82356=>{const _0x38acb2=_0x3da9b5['model']['document']['selection'],_0x486e5b=Array['from'](_0x38acb2['getRanges']())['map'](_0x4c16fe=>_0x5ed280['fromRange'](_0x4c16fe));_0xc82356['setSelection'](_0x5a8f78),_0x3da9b5['commands']['get'](_0x56434e['commandName'])['refresh'](),_0x56434e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3da9b5['execute'](_0x56434e['commandName'],..._0x56434e['commandParams']),_0xc82356['setSelection'](_0x486e5b);for(const _0x2d6405 of _0x486e5b)_0x2d6405['detach']();});}),_0x102c53['descriptionFactory']['registerElementLabel'](function(_0x5bdca7){const _0x549e6e=!_0x3da9b5['model']['schema']['isObject'](_0x5bdca7),_0x3d3154=_0x5bdca7['previousSibling'],_0x3a05c4=_0x5bdca7['nextSibling'],_0x15a967=_0x5bdca7['getAttribute']('listItemId'),_0x29930e=!_0x3d3154||_0x3d3154['getAttribute']('listItemId')!==_0x15a967,_0x5db92d=!_0x3a05c4||_0x3a05c4['getAttribute']('listItemId')!==_0x15a967;return _0x549e6e&&Boolean(_0x15a967)&&_0x29930e&&_0x5db92d;},_0x4f8999=>o(_0x142a34,'ELEMENT_LIST_ITEM',_0x4f8999));}['_registerLegacyDescription'](){const _0x41d8c6=this['editor'],_0x129e9a=_0x41d8c6['locale'];function _0x1b92eb(_0x174a69){const _0x18a574=_0x41d8c6['commands']['get']('bulletedList')['value'],_0x12f139=_0x41d8c6['commands']['get']('numberedList')['value'];return'numberedList'===_0x174a69?_0x18a574:_0x12f139;}_0x41d8c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3fa2d8){if('formatBlock'!=_0x3fa2d8['type'])return;const {data:_0x15ee07}=_0x3fa2d8;if(!_0x15ee07)return;let _0x1ca37d,_0x1ec349,_0xeb87f6,_0x381897;switch(_0x15ee07['commandName']){case'bulletedList':_0xeb87f6=_0x15ee07['commandParams'][0x0]['forceValue'],_0x381897=_0x1b92eb(_0x15ee07['commandName']),_0x1ca37d=_0xeb87f6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x381897&&_0x41d8c6['config']['get']('list.multiBlock')||(_0x1ca37d='*Change\x20to:*\x20%0'),_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xeb87f6=_0x15ee07['commandParams'][0x0]['forceValue'],_0x381897=_0x1b92eb(_0x15ee07['commandName']),_0x1ca37d=_0xeb87f6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x381897&&_0x41d8c6['config']['get']('list.multiBlock')||(_0x1ca37d='*Change\x20to:*\x20%0'),_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ca37d='*Indent:*\x20%0',_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ca37d=function(_0x2fc969){const _0x208db0=_0x2fc969['getFirstRange']();let _0x97db7c=_0x208db0['start']['nodeAfter'];for(;_0x97db7c&&_0x208db0['containsItem'](_0x97db7c);){if(_0x97db7c['getAttribute']('listIndent')>0x0)return!0x1;_0x97db7c=_0x97db7c['nextSibling'];}return!0x0;}(_0x3fa2d8)?o(_0x129e9a,'*Format:*\x20remove\x20from\x20%0',o(_0x129e9a,function(_0x258ffe){return'ELEMENT_'+_0x258ffe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3fa2d8))):o(_0x129e9a,'*Outdent:*\x20%0',o(_0x129e9a,'ELEMENT_LIST_ITEM')),_0x1ec349={'type':'format','content':_0x1ca37d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x15ee07['multipleBlocks']&&(_0x1ca37d='*Merge:*\x20%0',_0x1ec349={'type':'deletion','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_LIST_ITEM'))});}return _0x1ec349;});}}function Ee(_0x25ed44){let _0x4ab9d8=_0x25ed44['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4ab9d8;){const _0x1d74d7=_0x4ab9d8['getAttribute']('listItemId');if(!_0x1d74d7)return!0x1;if(_0x1d74d7==_0x25ed44['data']['newValue'])return'newValue';if(_0x1d74d7==_0x25ed44['data']['oldValue'])return'oldValue';_0x4ab9d8=_0x4ab9d8['previousSibling'];}return!0x1;}class pe extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x196b21=this['editor']['config']['get']('list.properties'),_0x3a6f54=this['editor']['plugins']['get']('TrackChangesEditing');_0x196b21['styles']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listStyle'),_0x3a6f54['registerBlockAttribute']('listStyle')),_0x196b21['reversed']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listReversed'),_0x3a6f54['registerBlockAttribute']('listReversed')),_0x196b21['startIndex']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listStart'),_0x3a6f54['registerBlockAttribute']('listStart'));const _0x381e9b={'type':'format','content':''};_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d3bc8=this['editor']['locale'];_0x3a6f54['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d3bc8,'FORMAT_LIST_REVERSED')),_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](_0x3aff8a=>{const {data:_0x3a2ea8}=_0x3aff8a;if(_0x3a2ea8&&'listReversed'==_0x3a2ea8['key'])return null==_0x3a2ea8['newValue']||0x0==_0x3a2ea8['newValue']&&null==_0x3a2ea8['oldValue']?_0x381e9b:void 0x0;}),_0x3a6f54['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d3bc8,'FORMAT_LIST_START')),_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](_0x54a879=>{const {data:_0x2e6fec}=_0x54a879;if(_0x2e6fec&&'listStart'==_0x2e6fec['key'])return null==_0x2e6fec['newValue']||0x1==_0x2e6fec['newValue']&&null==_0x2e6fec['oldValue']?_0x381e9b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x178092=>{if(_0x178092['batch']['isUndo'])return!0x1;let _0x135dc6=!0x1;const _0x4d466c=_0x3a6f54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x128c9d=>{const _0x6c67a9=_0x3a6f54['_getAttributeKey'](_0x128c9d);return'listStart'==_0x6c67a9||'listReversed'==_0x6c67a9;});for(const _0x44f4f5 of _0x4d466c){const _0x587f6e=_0x44f4f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x587f6e||'customNumbered'==_0x587f6e)continue;_0x3a6f54['_findSuggestions'](_0x44f4f5['getFirstRange'](),'attribute')['find'](_0x66dc7d=>'listType'==_0x3a6f54['_getAttributeKey'](_0x66dc7d['suggestion']))||(_0x178092['removeMarker'](_0x44f4f5['getFirstMarker']()),_0x135dc6=!0x0);}return _0x135dc6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5caf57){const _0x23876a=this['editor']['locale'],{data:_0x53eb5c}=_0x5caf57,_0x2db5d9={'type':'format','content':''};if(!_0x53eb5c||'listStyle'!=_0x53eb5c['key'])return;if(!_0x53eb5c['oldValue'])return'default'==_0x53eb5c['newValue']?_0x2db5d9:{'type':'format','content':''+o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['newValue'])))};if(!_0x53eb5c['newValue']){if('default'==_0x53eb5c['oldValue'])return _0x2db5d9;let _0x3febc1=_0x5caf57['head'];for(;_0x3febc1;){if(_0x3febc1['data']&&'listType'==_0x3febc1['data']['key']&&_0x3febc1['data']['newValue'])return _0x2db5d9;_0x3febc1=_0x3febc1['next'];}return{'type':'format','content':''+o(_0x23876a,'*Remove\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['oldValue'])))};}if('default'!=_0x53eb5c['newValue'])return{'type':'format','content':''+o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['newValue'])))};let _0x12bbfb=_0x5caf57['head'];for(;_0x12bbfb;){if(_0x12bbfb['data']&&'listType'==_0x12bbfb['data']['key']&&_0x12bbfb['data']['newValue']&&_0x12bbfb['data']['oldValue'])return _0x2db5d9;_0x12bbfb=_0x12bbfb['next'];}return{'type':'format','content':o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,'ELEMENT_'+_0x5caf57['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x148836=this['editor'],_0x4c36c1=_0x148836['locale'];_0x148836['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136aeb=>{if('formatBlock'!=_0x136aeb['type'])return;const {data:_0x4f81d1}=_0x136aeb;if(!_0x4f81d1)return;let _0x5ebe59,_0x407923;switch(_0x4f81d1['commandName']){case'listStyle':_0x5ebe59='*Change\x20to:*\x20%0',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59,o(_0x4c36c1,this['_getTranslationKeyForListStyle'](_0x4f81d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ebe59=_0x4f81d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59)};break;case'listStart':_0x5ebe59='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59,_0x4f81d1['commandParams'][0x0]['startIndex'])};}return _0x407923;});}['_getTranslationKeyForListStyle'](_0x47590d){return'ELEMENT_'+function(_0x55eb5c){if(ye['includes'](_0x55eb5c))return'bulleted';if(Se['includes'](_0x55eb5c))return'numbered';return null;}(_0x47590d)['toUpperCase']()+'_LIST_'+_0x47590d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3cc490{static get['requires'](){return[_0x5bb9ca];}['init'](){const _0x3a01d1=this['editor'],_0x4a2073=_0x3a01d1['plugins']['get']('TrackChangesEditing'),_0x3b559f=_0x3a01d1['commands']['get']('enter');_0x4a2073['enableCommand']('enter',()=>{_0x3a01d1['model']['change'](_0x3e78ed=>{const _0x435b21=_0x3a01d1['model']['document']['selection'],_0x181603=_0x435b21['getFirstPosition'](),_0x29d061=_0x5ed280['fromRange'](_0x435b21['getFirstRange']());if(_0x3b559f['enterBlock'](_0x3e78ed)){const _0x3c383b=_0x3a01d1['model']['createPositionAt'](_0x181603['parent']['nextSibling'],0x0),_0x249503=_0x3e78ed['createRange'](_0x181603,_0x3c383b);_0x4a2073['markInsertion'](_0x249503);}else _0x3e78ed['setSelection'](_0x3e78ed['createRange'](_0x29d061['end']));_0x29d061['detach'](),_0x3b559f['fire']('afterExecute',{'writer':_0x3e78ed});});}),_0x3a01d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3a01d1,'split'),{'priority':'high'}),_0x3a01d1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x86eb6c,_0x5164d7,_0x4cf8d5)=>{const _0x4cdf83=_0x4cf8d5['mapper']['markerNameToElements'](_0x5164d7['markerName']);if(_0x4cdf83){for(const _0x1d684b of _0x4cdf83)_0x1d684b['hasClass']('ck-suggestion-marker-split')&&(_0x4cf8d5['mapper']['unbindElementFromMarkerName'](_0x1d684b,_0x5164d7['markerName']),_0x4cf8d5['writer']['remove'](_0x1d684b));}},{'priority':'high'}),_0x3a01d1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8b0eab,_0x171662,_0x495f9d)=>{_0x495f9d['options']['showSuggestionHighlights']&&_e(_0x3a01d1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8b0eab,_0x171662,_0x495f9d);},{'priority':'high'});}}class X extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f52d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f52d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f52d4['enableCommand']('findNext'),_0x3f52d4['enableCommand']('findPrevious'),_0x3f52d4['enableCommand']('replace'),_0x3f52d4['enableCommand']('replaceAll');}['handleFindCommand'](_0x5bb408,_0xe63073,_0x7fcb7c={}){const _0x4cd34b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5bb408(_0xe71ca3=>{let _0x5ccf5c=('string'==typeof _0xe63073?_0x4cd34b['findByTextCallback'](_0xe63073,_0x7fcb7c):_0xe63073)(_0xe71ca3);Array['isArray'](_0x5ccf5c)&&(_0x5ccf5c={'results':_0x5ccf5c,'searchText':'string'==typeof _0xe63073?_0xe63073:''});const _0x474324=_0x5ccf5c['results']['filter'](_0x1dd4c1=>!0x1===this['_isInDeletionRange'](_0x1dd4c1,_0xe71ca3['item']));return{..._0x5ccf5c,'results':_0x474324};},_0x7fcb7c);}['_isInDeletionRange'](_0x5bac26,_0x1fdceb){const _0x42bc05=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fdceb,_0x5bac26['start']),this['editor']['model']['createPositionAt'](_0x1fdceb,_0x5bac26['end']));for(const _0x2a36f7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x42bc05['getIntersection'](_0x2a36f7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x3cc490{['afterInit'](){const _0x2a4c85=this['editor']['locale'],_0x18aa3a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x56c611,commandName:_0x1500b1}of ro)this['editor']['plugins']['has'](_0x56c611)&&(_0x18aa3a['enableDefaultAttributesIntegration'](_0x1500b1),_0x18aa3a['registerInlineAttribute'](_0x1500b1));_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2a4c85,'FORMAT_FONT_SIZE')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2a4c85,'FORMAT_FONT_FAMILY')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2a4c85,'FORMAT_FONT_COLOR')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2a4c85,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b57b0=this['editor'],_0x2ceb4e=_0x3b57b0['locale'];_0x3b57b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44094d=>{const _0x4f7c77=_0x2ceb4e['t'];if('formatInline'!=_0x44094d['type'])return;const {data:_0xe930a3}=_0x44094d;if(null!=_0xe930a3){if('fontSize'==_0xe930a3['commandName']){const _0x212ccb=_0xe930a3['commandParams'][0x0]['value'];if(_0x212ccb){const _0x27de51=_0x4f7c77(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1fcafb=>_0x1fcafb['model']==_0x212ccb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20size:*\x20%0',_0x27de51)};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe930a3['commandName']){const _0x427ef7=_0xe930a3['commandParams'][0x0]['value'];return _0x427ef7?{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20family:*\x20%0',_0x427ef7)}:{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe930a3['commandName']){const _0x107ab8=_0xe930a3['commandParams'][0x0]['value'];if(_0x107ab8){const _0x5d29c5=_0x4a8582(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c415c=>_0x5c415c['model']==_0x107ab8);let _0x1e1bde=_0x107ab8,_0x7b05dc='';return _0x5d29c5&&(_0x1e1bde=_0x5d29c5['label'],_0x7b05dc=_0x4f7c77(_0x1e1bde)['toLowerCase']()),{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20color:*\x20%0',_0x7b05dc)['trim'](),'color':{'value':_0x107ab8,'title':_0x7b05dc||_0x1e1bde}};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe930a3['commandName']){const _0x11c982=_0xe930a3['commandParams'][0x0]['value'];if(_0x11c982){const _0x42729f=_0x4a8582(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6a8e2d=>_0x6a8e2d['model']==_0x11c982);let _0x482f78=_0x11c982,_0x425df9='';return _0x42729f&&(_0x482f78=_0x42729f['label'],_0x425df9=_0x4f7c77(_0x482f78)['toLowerCase']()),{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20background\x20color:*\x20%0',_0x425df9)['trim'](),'color':{'value':_0x11c982,'title':_0x425df9||_0x482f78}};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3cc490{['afterInit'](){const _0x31652b=this['editor'],_0x5b29af=_0x31652b['plugins']['get']('TrackChangesEditing'),_0x11026c=_0x31652b['commands']['get']('copyFormat'),_0x2be002=_0x31652b['commands']['get']('pasteFormat');_0x11026c&&_0x2be002&&(_0x5b29af['enableDefaultAttributesIntegration']('pasteFormat'),_0x5b29af['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17f929=this['editor'],_0x16ce14=_0x17f929['locale'];_0x17f929['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b07d2=>{if('formatBlock'!=_0x3b07d2['type']&&'formatInline'!=_0x3b07d2['type'])return;const {data:_0x29ea7f}=_0x3b07d2;if(_0x29ea7f&&'pasteFormat'===_0x29ea7f['commandName']){const _0x4cadc2=[],_0x586d95=_0x29ea7f['commandParams'][0x0];for(const [_0x37017d,_0x5b4c88]of Object['entries'](_0x586d95))_0x4cadc2['push'](so(_0x17f929,_0x37017d,_0x5b4c88));return _0x4cadc2['length']?{'type':'format','content':o(_0x16ce14,'*Set\x20format\x20to:*\x20%0',_0x4cadc2['join'](',\x20'))}:{'type':'format','content':o(_0x16ce14,'*Remove\x20all\x20formatting*')};}});}}function so(_0xca145d,_0x52903f,_0x8c0877){const _0x389402=_0xca145d['locale']['t'],_0x2e6172=_0x52903f['split'](/(?=[A-Z])/)['join']('\x20'),_0x300253=_0x389402(_0x2e6172['charAt'](0x0)['toUpperCase']()+_0x2e6172['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8c0877)return _0x300253;if('fontColor'===_0x52903f||'fontBackgroundColor'===_0x52903f){const _0x56ae62=_0x4a8582(_0xca145d['config']['get']('fontColor.colors'))['find'](_0x459a6f=>_0x459a6f['model']==_0x8c0877);return _0x300253+'\x20('+(_0x56ae62?_0x389402(_0x56ae62['label'])['toLowerCase']():_0x8c0877)+')';}if('fontSize'===_0x52903f&&isNaN(parseFloat(_0x8c0877))){const _0x28b6f7=_0xca145d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xca145d['config']['get']('fontSize.options'))['find'](_0x269c25=>_0x269c25['model']==_0x8c0877);return _0x300253+'\x20('+(_0x28b6f7?_0x389402(_0x28b6f7['title'])['toLowerCase']():_0x8c0877)+')';}return _0x300253+'\x20('+_0x8c0877+')';}class tt extends _0x3cc490{['_headingOptions'];['afterInit'](){const _0x3b2324=this['editor'];if(!_0x3b2324['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b2324['config']['get']('heading.options');const _0x98c8d4=_0x3b2324['locale'],_0x42343e=_0x3b2324['plugins']['get']('TrackChangesEditing');_0x42343e['enableDefaultAttributesIntegration']('heading');for(const _0x4c17ae of this['_headingOptions'])'paragraph'!=_0x4c17ae['model']&&_0x42343e['descriptionFactory']['registerElementLabel'](_0x4c17ae['model'],_0x90eb6e=>{const _0xfc42b=this['_getHeadingLevel'](_0x4c17ae['model']);return null!==_0xfc42b?_0x556f8a(_0x90eb6e,_0xfc42b):_0x4d8903(_0x90eb6e,_0x4c17ae['title']);});function _0x556f8a(_0x3b728c,_0x46c818){return o(_0x98c8d4,'ELEMENT_HEADING',[_0x3b728c,_0x46c818]);}function _0x4d8903(_0x1decc1,_0x3c700d){return o(_0x98c8d4,'ELEMENT_HEADING_CUSTOM',[_0x1decc1,_0x3c700d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166ad4=this['editor'],_0x44152e=_0x166ad4['locale'];function _0x255ec3(_0x354891,_0x45915f){return o(_0x44152e,'ELEMENT_HEADING_CUSTOM',[_0x354891,_0x45915f]);}_0x166ad4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x157cef=>{if('formatBlock'!=_0x157cef['type'])return;const {data:_0x199070}=_0x157cef;if(_0x199070&&'heading'==_0x199070['commandName']){const _0x5a4fcd=_0x199070['commandParams'][0x0]['value'],_0x8bd92=this['_getHeadingLevel'](_0x5a4fcd);if(null!==_0x8bd92)return{'type':'format','content':o(_0x44152e,'*Change\x20to:*\x20%0',(_0x18e68d=0x1,_0x2af36b=_0x8bd92,o(_0x44152e,'ELEMENT_HEADING',[_0x18e68d,_0x2af36b])))};const _0x461be4=this['_headingOptions']['find'](_0x35f2a0=>_0x35f2a0['model']===_0x5a4fcd)['title'];return{'type':'format','content':o(_0x44152e,'*Change\x20to:*\x20%0',_0x255ec3(0x1,_0x461be4))};}var _0x18e68d,_0x2af36b;});}['_getHeadingLevel'](_0x308870){const _0x4f5a7f=_0x308870['match'](/^heading(\d+)/);if(_0x4f5a7f)return _0x4f5a7f[0x1];const _0x308c70=this['_headingOptions']?.['find'](_0x3a3c9d=>_0x3a3c9d['model']==_0x308870);if(_0x308c70&&_0x308c70['view']){const _0x2f8211=_0x308c70['view'],_0x1f6625=(_0x2f8211['name']??_0x2f8211)['match'](/^h(\d+)/);if(_0x1f6625)return _0x1f6625[0x1];}return null;}}class et extends _0x3cc490{['afterInit'](){const _0x4dcf05=this['editor'];if(!_0x4dcf05['plugins']['has']('HighlightEditing'))return;const _0x1c180a=_0x4dcf05['plugins']['get']('TrackChangesEditing'),_0x112d47=_0x4dcf05['locale'];_0x1c180a['enableDefaultAttributesIntegration']('highlight'),_0x1c180a['registerInlineAttribute']('highlight'),_0x1c180a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x112d47,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x761b8e=this['editor'],_0x4b7c24=_0x761b8e['locale'];_0x761b8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cabf4=>{if('formatInline'!=_0x5cabf4['type'])return;const {data:_0x25625a}=_0x5cabf4;if(_0x25625a&&'highlight'==_0x25625a['commandName']){const _0x201ebd=_0x4b7c24['t'],_0x49baed=_0x25625a['commandParams'][0x0]['value'];if(_0x49baed){const _0x243f75=_0x761b8e['config']['get']('highlight.options')['find'](_0x3f2386=>_0x3f2386['model']==_0x49baed),_0xdb6d96=_0x201ebd(_0x243f75['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b7c24,'*Set\x20highlight:*\x20%0',_0xdb6d96),'color':{'value':_0x243f75['color'],'title':_0x243f75['title']}};}return{'type':'format','content':o(_0x4b7c24,'*Remove\x20highlight*',o(_0x4b7c24,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3cc490{['afterInit'](){const _0x4620ed=this['editor'];if(!_0x4620ed['plugins']['has']('HorizontalLineEditing'))return;_0x4620ed['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55f16d=_0x4620ed['plugins']['get']('TrackChangesEditing'),_0x354a43=_0x4620ed['locale'];_0x55f16d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x425baf=>o(_0x354a43,'ELEMENT_HORIZONTAL_LINE',_0x425baf)),_0x4620ed['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x38aaef,{writer:_0x1fb667,options:_0x5aeebb})=>{if(!_0x5aeebb['showSuggestionHighlights'])return null;const _0x558f19=_0x1fb667['createContainerElement']('div'),_0x235320=_0x1fb667['createEmptyElement']('hr');return _0x1fb667['addClass']('ck-horizontal-line',_0x558f19),_0x1fb667['insert'](_0x1fb667['createPositionAt'](_0x558f19,0x0),_0x235320),_0x558f19;},'converterPriority':'high'});}}class st extends _0x3cc490{['afterInit'](){const _0x12f8e7=this['editor'];if(!_0x12f8e7['plugins']['has']('HtmlEmbed'))return;const _0x39ff5c=_0x12f8e7['plugins']['get']('TrackChangesEditing'),_0x51baeb=_0x12f8e7['locale'];_0x39ff5c['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d701d=>o(_0x51baeb,'ELEMENT_HTML_EMBED',_0x4d701d)),_0x39ff5c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x39ff5c['registerBlockAttribute']('value'),_0x39ff5c['descriptionFactory']['registerDescriptionCallback'](_0x80089b=>{if('attribute'!=_0x80089b['type'])return;const {data:_0x228b17}=_0x80089b;if(_0x228b17&&'value'==_0x228b17['key']&&_0x80089b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x45809d=o(_0x51baeb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51baeb,'*Change\x20%0\x20content*',_0x45809d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x336f2d=this['editor'],_0x60c22f=_0x336f2d['locale'];_0x336f2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328b7a=>{if('formatBlock'!=_0x328b7a['type'])return;const {data:_0x1c9fc7}=_0x328b7a;if(_0x1c9fc7&&'htmlEmbed'==_0x1c9fc7['commandName']){const _0x38ce41=o(_0x60c22f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x60c22f,'*Change\x20%0\x20content*',_0x38ce41)};}});}}class nt extends _0x3cc490{['afterInit'](){const _0x3f185f=this['editor'];if(!_0x3f185f['plugins']['has']('ImageEditing'))return;const _0x3fc1e4=_0x3f185f['plugins']['get']('TrackChangesEditing'),_0x3b05ec=_0x3f185f['plugins']['get']('ImageUtils'),_0x339d31=_0x3f185f['locale'];_0x3fc1e4['enableCommand']('insertImage'),_0x3fc1e4['descriptionFactory']['registerElementLabel']('imageBlock',_0x4729f4=>o(_0x339d31,'ELEMENT_IMAGE',_0x4729f4)),_0x3fc1e4['descriptionFactory']['registerElementLabel']('imageInline',_0x27face=>o(_0x339d31,'ELEMENT_INLINE_IMAGE',_0x27face)),_0x3fc1e4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x339d31,'ELEMENT_CAPTION')),_0x3f185f['plugins']['has']('ImageUploadEditing')&&_0x3fc1e4['enableCommand']('uploadImage'),_0x3f185f['plugins']['has']('ImageBlockEditing')&&_0x3f185f['plugins']['has']('ImageInlineEditing')&&(_0x3fc1e4['enableCommand']('imageTypeInline',(_0x100fa2,_0x47b2f5)=>{const _0x411bc0=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']);_0x3f185f['model']['change'](()=>{_0x3fc1e4['markBlockFormat'](_0x411bc0,{'commandName':'imageTypeInline','commandParams':[_0x47b2f5]},[],'convertBlockImageToInline');});}),_0x3fc1e4['enableCommand']('imageTypeBlock',(_0x64aa3e,_0x963c93)=>{_0x3f185f['model']['change'](_0x56d02c=>{let _0x259afb=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x276d2a=_0x56d02c['createRangeOn'](_0x259afb);const _0x18bb41=_0x2e45ca['fromPosition'](_0x276d2a['start'],'toPrevious'),_0x24c698=_0x2e45ca['fromPosition'](_0x276d2a['end'],'toNext');_0x3fc1e4['forceDefaultExecution'](()=>_0x64aa3e(_0x963c93)),_0x259afb=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x276d2a=_0x56d02c['createRangeOn'](_0x259afb);const _0x3832c8=_0x56d02c['createRange'](_0x18bb41,_0x24c698);_0x18bb41['detach'](),_0x24c698['detach'](),_0x3fc1e4['markBlockFormat'](_0x259afb,{'commandName':'imageTypeInline','commandParams':[_0x963c93]},[],'convertInlineImageToBlock'),_0x3832c8['start']['isBefore'](_0x276d2a['start'])&&_0x3fc1e4['markInsertion'](_0x56d02c['createRange'](_0x3832c8['start'],_0x276d2a['start']),'convertInlineImageToBlock'),_0x276d2a['end']['isBefore'](_0x3832c8['end'])&&_0x3fc1e4['markInsertion'](_0x56d02c['createRange'](_0x276d2a['end'],_0x3832c8['end']),'convertInlineImageToBlock');});}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3fc1e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x187c05])=>{const _0x47004e=_0x3fc1e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x455c71=_0x187c05['start'],_0x4bfd67=_0x187c05['end'];const _0x2a231f=_0x3f185f['model']['schema']['getNearestSelectionRange'](_0x455c71,'backward'),_0x2530b6=_0x3f185f['model']['schema']['getNearestSelectionRange'](_0x4bfd67,'forward');_0x2a231f['isCollapsed']&&(_0x455c71=_0x2a231f['start']),_0x2530b6['isCollapsed']&&(_0x4bfd67=_0x2530b6['end']),_0x47004e([_0x3f185f['model']['createRange'](_0x455c71,_0x4bfd67)]);}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4d6188),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4d6188)),_0x3f185f['plugins']['has']('ImageCaptionEditing')&&(_0x3fc1e4['enableCommand']('toggleImageCaption',(_0x389856,_0x5a3905)=>{const _0x37a11c=_0x3f185f['plugins']['get']('ImageCaptionUtils');let _0x64c9cd=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x21fbc0=_0x37a11c['getCaptionFromImageModelElement'](_0x64c9cd);_0x3f185f['model']['change'](()=>{if(_0x21fbc0)return void _0x3fc1e4['markDeletion'](_0x3f185f['model']['createRangeOn'](_0x21fbc0));const _0x369b4a=_0x3b05ec['isBlockImage'](_0x64c9cd);_0x389856(_0x5a3905),_0x64c9cd=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x21fbc0=_0x37a11c['getCaptionFromImageModelElement'](_0x64c9cd),_0x3fc1e4['markInsertion'](_0x3f185f['model']['createRangeOn'](_0x21fbc0),_0x369b4a?null:'imageCaption');});}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4d6188));const _0x3a6bb7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1012fa(_0xd2d53,_0xb65110){const _0x421b00=_0x3a6bb7['findIndex'](({type:_0x4566ba,subType:_0x38cde6})=>_0xd2d53['type']==_0x4566ba&&_0xd2d53['subType']==_0x38cde6),_0x2390a9=_0x3a6bb7['findIndex'](({type:_0x5588b8,subType:_0x1cfe1d})=>_0xb65110['type']==_0x5588b8&&_0xb65110['subType']==_0x1cfe1d);if(_0x421b00<0x0||_0x2390a9<0x0)return!0x1;const _0x84dd23=_0xd2d53['getFirstRange'](),_0x185cc9=_0xb65110['getFirstRange']();if((0x0==_0x421b00||0x1==_0x421b00)&&0x2==_0x2390a9&&_0x84dd23['isIntersecting'](_0x185cc9))return!0x0;if(0x2==_0x421b00&&0x3==_0x2390a9){const _0x179bdb=_0x3fc1e4['_findSuggestions'](_0x84dd23,'insertion')['filter'](({suggestion:_0x2ed99b,meta:_0x34de62})=>_0x34de62['isOwn']&&'convertInlineImageToBlock'==_0x2ed99b['subType']);if(_0x179bdb['length']>0x1&&_0x185cc9['end']['isEqual'](_0x84dd23['start']))return!0x0;if(0x1==_0x179bdb['length']&&(_0x84dd23['start']['isEqual'](_0x185cc9['end'])||_0x84dd23['end']['isEqual'](_0x185cc9['start'])))return!0x0;}if(0x3==_0x421b00&&0x3==_0x2390a9&&_0x84dd23['start']['isBefore'](_0x185cc9['start'])){const _0x48dcc6=_0x84dd23['end']['nodeAfter'],_0x1cb96e=_0x185cc9['start']['nodeBefore'];return _0x3b05ec['isBlockImage'](_0x48dcc6)&&_0x48dcc6===_0x1cb96e;}return!0x1;}function _0x4d6188(_0x15379d,_0x6888aa){return _0x1012fa(_0x15379d,_0x6888aa)?[_0x15379d,_0x6888aa]:_0x1012fa(_0x6888aa,_0x15379d)?[_0x6888aa,_0x15379d]:null;}_0x3f185f['plugins']['has']('ImageResize')&&(_0x3fc1e4['enableDefaultAttributesIntegration']('resizeImage'),_0x3fc1e4['registerBlockAttribute']('resizedWidth'),_0x3fc1e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x339d31,'FORMAT_IMAGE_SIZE'))),_0x3f185f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3fc1e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3fc1e4['registerBlockAttribute']('alt')),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x294611=>{if(!!_0x3a6bb7['find'](({type:_0x1241cd,subType:_0xd32008})=>_0x294611['type']==_0x1241cd&&_0x294611['subType']==_0xd32008))return _0x294611['previous']?{}:void 0x0;}),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x201f3d=>{if('insertion'==_0x201f3d['type']||'deletion'==_0x201f3d['type']){const _0x2ac247=_0x201f3d['getContainedElement']();if(_0x2ac247&&_0x2ac247['is']('element','caption'))return{'type':'insertion'==_0x201f3d['type']?'addObject':'removeObject','element':_0x2ac247,'quantity':0x1};}}),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x5e3300=>'formatBlock'==_0x5e3300['type']&&'convertInlineImageToBlock'==_0x5e3300['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e3300['type']&&'convertBlockImageToInline'==_0x5e3300['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x1320c8=>{if('attribute'!=_0x1320c8['type'])return;const {data:_0x28ad35}=_0x1320c8;if(!_0x28ad35||'alt'!=_0x28ad35['key'])return;const _0x2d5c63=_0x28ad35['newValue'];return _0x2d5c63?{'type':'format','content':o(_0x339d31,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d5c63+'\x22')}:{'type':'format','content':o(_0x339d31,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4a01=this['editor'],_0x531e0b=_0x2a4a01['locale'];_0x2a4a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa48f9c=>{if('formatBlock'!=_0xa48f9c['type']&&'formatInline'!=_0xa48f9c['type'])return;const {data:_0x41a8be}=_0xa48f9c;if(_0x41a8be){if('imageTextAlternative'==_0x41a8be['commandName']){const _0x2b512a=_0x41a8be['commandParams'][0x0]['newValue'];return _0x2b512a?{'type':'format','content':o(_0x531e0b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2b512a+'\x22')}:{'type':'format','content':o(_0x531e0b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41a8be['commandName']){const _0x1d8862=_0x41a8be['commandParams'][0x0]['width'];return _0x1d8862?{'type':'format','content':o(_0x531e0b,'*Set\x20image\x20width:*\x20%0',_0x1d8862)}:{'type':'format','content':o(_0x531e0b,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x43b129=this['editor']['locale'],_0x3e4681=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4681['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3e4681['registerBlockAttribute']('src'),_0x3e4681['descriptionFactory']['registerDescriptionCallback'](_0x4d1ccf=>{if('attribute'!=_0x4d1ccf['type'])return;const {data:_0x27f9fc}=_0x4d1ccf;return _0x27f9fc&&'src'==_0x27f9fc['key']?_0x27f9fc['newValue']&&_0x27f9fc['oldValue']?{'type':'format','content':o(_0x43b129,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b6d06=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b6d06['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1b6d06['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b6d06['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1b6d06['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2ab=this['editor'],_0x51b393=_0x1b2ab['locale'];_0x1b2ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c2c5e=>{if('formatBlock'!=_0x5c2c5e['type']&&'formatInline'!=_0x5c2c5e['type'])return;const {data:_0x577540}=_0x5c2c5e;if(!_0x577540||'replaceImageSource'!=_0x577540['commandName'])return;return{'type':'format','content':o(_0x51b393,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3cc490{['afterInit'](){const _0x1925bc=this['editor'];if(!_0x1925bc['plugins']['has']('ImageStyleEditing'))return;const _0x432d2d=_0x1925bc['plugins']['get']('TrackChangesEditing'),_0x4e8816=_0x1925bc['plugins']['get']('ImageUtils'),_0x52c84b={};_0x432d2d['enableCommand']('imageStyle',(_0x55dc74,_0x2945c3)=>{const _0x357449=_0x1925bc['plugins']['get']('Users')['me'],_0x3b1c90=_0x1925bc['commands']['get']('imageStyle');let _0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),_0x4fd52f=_0x1925bc['model']['createRangeOn'](_0x4b49f0),_0x478d16=_0x3b1c90['value'];if(_0x478d16==_0x2945c3['value'])return;const _0x379ab4={'commandName':'imageStyle','commandParams':[_0x2945c3],'formatGroupId':_0x36eeaa()};_0x1925bc['model']['change'](()=>{if(_0x432d2d['getSuggestions']()['filter'](_0x587f33=>_0x587f33['isInContent']&&_0x357449==_0x587f33['author']&&('formatBlock'==_0x587f33['type']||'formatInline'==_0x587f33['type'])&&('imageStylePreApply'==_0x587f33['subType']||'imageStylePostApply'==_0x587f33['subType'])&&_0x587f33['getFirstRange']()['isEqual'](_0x4fd52f))['forEach'](_0x31deec=>_0x432d2d['discardSuggestion'](_0x31deec['head'])),_0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),_0x4fd52f=_0x1925bc['model']['createRangeOn'](_0x4b49f0),_0x3b1c90['refresh'](),_0x1925bc['commands']['get']('imageTypeInline')['refresh'](),_0x1925bc['commands']['get']('imageTypeBlock')['refresh'](),_0x478d16=_0x3b1c90['value'],_0x478d16!=_0x2945c3['value'])return _0x4e8816['isInlineImage'](_0x4b49f0)&&_0x3b1c90['shouldConvertImageType'](_0x2945c3['value'],_0x4b49f0)?(_0x55dc74({..._0x2945c3,'setImageSizes':!0x1}),_0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),void _0x432d2d['markBlockFormat'](_0x4b49f0,{..._0x379ab4,'commandReversedParams':[{'value':_0x478d16||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e8816['isBlockImage'](_0x4b49f0)?_0x432d2d['markBlockFormat'](_0x4b49f0,_0x379ab4,[],'imageStylePostApply'):_0x432d2d['markInlineFormat'](_0x4fd52f,_0x379ab4,'imageStylePostApply'));});});for(const _0xaa8cfb of _0x1925bc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x52c84b[_0xaa8cfb['name']]=_0xaa8cfb['title']['toLowerCase']();_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44dab0])=>{_0x4e8816['setImageNaturalSizeAttributes'](_0x44dab0['getContainedElement']());}),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c3b93,_0x3f0a08)=>{_0x432d2d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c3b93,{'commandName':_0x3f0a08['commandName'],'commandParams':_0x3f0a08['commandReversedParams']});}),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1cdaa2,_0x3835da){if(_0x1bb7df(_0x1cdaa2,_0x3835da))return[_0x1cdaa2,_0x3835da];if(_0x1bb7df(_0x3835da,_0x1cdaa2))return[_0x3835da,_0x1cdaa2];return null;});const _0x2177bf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bb7df(_0x19e988,_0x2d1052){const _0x2d933f=_0x2177bf['findIndex'](({type:_0x37a775,subType:_0x27a4ab})=>_0x19e988['type']==_0x37a775&&_0x19e988['subType']==_0x27a4ab),_0x2f7f75=_0x2177bf['findIndex'](({type:_0x5075ae,subType:_0xd6d002})=>_0x2d1052['type']==_0x5075ae&&_0x2d1052['subType']==_0xd6d002);if(_0x2d933f<0x0||_0x2f7f75<0x0)return!0x1;const _0x3d7ce5=_0x19e988['getFirstRange'](),_0x37ff2a=_0x2d1052['getFirstRange']();if((0x0==_0x2d933f||0x1==_0x2d933f)&&0x2==_0x2f7f75&&_0x3d7ce5['isIntersecting'](_0x37ff2a))return!0x0;if(0x2==_0x2d933f&&0x3==_0x2f7f75){const _0x473792=_0x432d2d['_findSuggestions'](_0x3d7ce5,'insertion')['filter'](({suggestion:_0x2da292,meta:_0x128251})=>_0x128251['isOwn']&&'convertInlineImageToBlock'==_0x2da292['subType']);if(_0x473792['length']>0x1&&_0x37ff2a['end']['isEqual'](_0x3d7ce5['start']))return!0x0;if(0x1==_0x473792['length']&&(_0x3d7ce5['start']['isEqual'](_0x37ff2a['end'])||_0x3d7ce5['end']['isEqual'](_0x37ff2a['start'])))return!0x0;}if(0x3==_0x2d933f&&0x3==_0x2f7f75&&_0x3d7ce5['start']['isBefore'](_0x37ff2a['start'])){const _0x538c37=_0x3d7ce5['end']['nodeAfter'],_0x576d7d=_0x37ff2a['start']['nodeBefore'];return _0x4e8816['isBlockImage'](_0x538c37)&&_0x538c37===_0x576d7d;}return!0x1;}_0x1925bc['model']['document']['registerPostFixer'](()=>{let _0x3d9404=!0x1;const _0x647d6e=Array['from'](_0x1925bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b415a,data:_0x232b68}of _0x647d6e){const {group:_0x1a2c9f,type:_0x2e7d80,subType:_0x821c43,id:_0x22f264}=_0x432d2d['_splitMarkerName'](_0x2b415a);if('suggestion'==_0x1a2c9f&&_0x432d2d['hasSuggestion'](_0x22f264)){if('formatBlock'==_0x2e7d80&&('imageStylePreApply'==_0x821c43||'imageStylePostApply'==_0x821c43)){const _0x1dba3e=_0x432d2d['getSuggestion'](_0x22f264);if(_0x232b68['newRange']){const _0x946d68=_0x1dba3e['getFirstRange']()['getContainedElement']();if(_0x4e8816['isBlockImage'](_0x946d68))continue;_0x432d2d['discardSuggestion'](_0x1dba3e),_0x3d9404=!0x0;}}if('insertion'==_0x2e7d80&&'imageCaption'==_0x821c43&&!_0x232b68['newRange']){const _0x2be87e=_0x432d2d['getSuggestion'](_0x22f264);_0x2be87e['next']&&_0x2be87e['next']['isInContent']&&(_0x432d2d['discardSuggestion'](_0x2be87e['next']),_0x3d9404=!0x0);}}}return _0x3d9404;}),this['_registerLegacyDescription'](_0x52c84b);}['_registerLegacyDescription'](_0x4582a2){const _0x2f354b=this['editor'],_0x5e1232=_0x2f354b['locale'];_0x2f354b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8862=>{if('formatBlock'!=_0x4f8862['type']&&'formatInline'!=_0x4f8862['type'])return;const {data:_0xa89052}=_0x4f8862;if(!_0xa89052||'imageStyle'!=_0xa89052['commandName'])return;const _0x1854a9=_0xa89052['commandParams'][0x0]['value'];return _0x25f54('side'===_0x1854a9?o(_0x5e1232,'FORMAT_SIDE_IMAGE'):_0x4582a2[_0x1854a9]||_0x1854a9);function _0x25f54(_0x4da63c){return{'type':'format','content':o(_0x5e1232,'*Format:*\x20%0',_0x4da63c)};}});}}class at extends _0x3cc490{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25f8d4){super(_0x25f8d4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30a895=this['editor'],_0x4cc80b=_0x30a895['commands']['get']('importWord'),_0x34e6a8=_0x30a895['commands']['get']('trackChanges');_0x4cc80b&&(_0x4cc80b['on']('execute',(_0x3317b7,[,_0x371efc])=>{this['_trackChangesValueDuringImport']=_0x34e6a8['value'],_0x371efc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cc80b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cc80b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34e6a8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30a895['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x356117,_0x5678ac){const {suggestions:_0x269582}=_0x5678ac,_0x3ed877=this['editor']['commands']['get']('trackChanges'),_0x34a7ac=_0x3ed877['value'];this['_trackChangesValueDuringImport']!==_0x34a7ac&&(_0x3ed877['execute'](),this['_trackChangesExecuted']=!0x0),_0x269582&&_0x269582['forEach'](({id:_0x212531,type:_0x52b939,author:_0x4407d3,created_at:_0x417fc2})=>{const _0x1ebcc4={'id':_0x212531,'type':_0x52b939,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4407d3,'createdAt':_0x417fc2?new Date(_0x417fc2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ebcc4);});}}class ct extends _0x3cc490{['afterInit'](){const _0x364e2c=this['editor'],_0x5c65a2=_0x364e2c['plugins']['get']('TrackChangesEditing');if(_0x364e2c['plugins']['has']('IndentEditing')&&(_0x5c65a2['enableCommand']('indent'),_0x5c65a2['enableCommand']('outdent')),_0x364e2c['plugins']['has']('IndentBlock')){for(const _0x11c80f of['indentBlock','outdentBlock'])_0x5c65a2['enableDefaultAttributesIntegration'](_0x11c80f);}const _0x15b5f1=_0x364e2c['locale'];_0x5c65a2['registerBlockAttribute']('blockIndent'),_0x5c65a2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x15b5f1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42cc9c=this['editor'],_0x415db8=_0x42cc9c['locale'],_0x5d42e3=_0x42cc9c['plugins']['get']('TrackChangesEditing');_0x5d42e3['descriptionFactory']['registerDescriptionCallback'](_0x30be5e=>{if('formatBlock'!=_0x30be5e['type'])return;const {data:_0x1a5c48}=_0x30be5e;if(!_0x1a5c48)return;if('indentBlock'!=_0x1a5c48['commandName']&&'outdentBlock'!=_0x1a5c48['commandName'])return;const _0xb32cdf=_0x30be5e['getItems']()[0x0],_0x58086e=_0x5d42e3['descriptionFactory']['getItemLabel'](_0xb32cdf);return'indentBlock'==_0x1a5c48['commandName']?{'type':'format','content':o(_0x415db8,'*Indent:*\x20%0',_0x58086e)}:'outdentBlock'==_0x1a5c48['commandName']?{'type':'format','content':o(_0x415db8,'*Outdent:*\x20%0',_0x58086e)}:void 0x0;});}}class ut extends _0x3cc490{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3cc490{['afterInit'](){const _0x54bcca=this['editor'];if(!_0x54bcca['plugins']['has']('LinkEditing'))return;const _0x11070d=_0x54bcca['plugins']['get']('TrackChangesEditing'),_0x3f65c5=_0x54bcca['commands']['get']('link');_0x11070d['enableDefaultAttributesIntegration']('link'),_0x11070d['enableDefaultAttributesIntegration']('unlink'),_0x11070d['registerInlineAttribute']('linkHref');for(const _0x43f16b of _0x3f65c5['manualDecorators'])_0x11070d['registerInlineAttribute'](_0x43f16b['id']),_0x11070d['descriptionFactory']['registerAttributeLabel'](_0x43f16b['id'],'link\x20('+_0x43f16b['label']['toLowerCase']()+')');_0x11070d['descriptionFactory']['registerDescriptionCallback'](_0x2a7d7e=>{if('attribute'!=_0x2a7d7e['type'])return;const {data:_0x28492e}=_0x2a7d7e;if(!_0x28492e||'linkHref'!=_0x28492e['key'])return;const _0x189eed=_0x28492e['newValue'],_0x5d9128=_0x54bcca['locale'];return{'type':'format','content':null==_0x189eed?o(_0x5d9128,'*Remove\x20link*'):o(_0x5d9128,'*Set\x20link:*\x20%0','\x22'+_0x189eed+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5551c6=this['editor'],_0x5b5678=_0x5551c6['locale'];_0x5551c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414387=>{if('formatInline'!=_0x414387['type'])return;const {data:_0xcdfa8b}=_0x414387;if(_0xcdfa8b){if('link'==_0xcdfa8b['commandName']){const _0x2737cf=_0xcdfa8b['commandParams'][0x0];return{'type':'format','content':o(_0x5b5678,'*Set\x20link:*\x20%0','\x22'+_0x2737cf+'\x22')};}return'unlink'==_0xcdfa8b['commandName']?{'type':'format','content':o(_0x5b5678,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3cc490{['afterInit'](){const _0x2770ef=this['editor'],_0x540896=_0x2770ef['locale'];if(!_0x2770ef['plugins']['has']('LegacyListEditing'))return;const _0x17bc17=_0x2770ef['plugins']['get']('TrackChangesEditing'),_0xb9e078=_0x2770ef['plugins']['has']('LegacyTodoListEditing');function _0x4c350d(_0x5a3cdc){return()=>{const _0x1360eb=_0x2770ef['model']['document']['selection'],_0x157c96=_0x2770ef['commands']['get'](_0x5a3cdc);if(_0x157c96['value'])return void _0x2770ef['execute']('paragraph',{});const _0x39ca44=_0x5a3cdc['slice'](0x0,-0x4),_0x2cfcb0=function(_0x2c12bb,_0x16b78e,_0x398b70){let _0x2a157f=Array['from'](_0x2c12bb)['filter'](_0x302118=>function(_0x46bc51,_0x116cab){return _0x116cab['checkChild'](_0x46bc51['parent'],'listItem')&&!_0x116cab['isObject'](_0x46bc51);}(_0x302118,_0x398b70));_0x2a157f=_0x2a157f['filter'](_0x29ecc5=>!_0x29ecc5['is']('element','listItem')||_0x29ecc5['getAttribute']('listType')!=_0x16b78e);const _0xa766d7=new Set();for(const _0x763cb2 of _0x2a157f)_0x763cb2['is']('element','listItem')?_0xa766d7['add'](fe(_0x763cb2)):_0xa766d7['add'](_0x763cb2);return Array['from'](_0xa766d7);}(_0x1360eb['getSelectedBlocks'](),_0x39ca44,_0x2770ef['model']['schema']);_0x2770ef['model']['change'](()=>{for(const _0x574e03 of _0x2cfcb0)_0x17bc17['markBlockFormat'](_0x574e03,{'commandName':_0x5a3cdc,'commandParams':[{'forceValue':!_0x157c96['value']}],'formatGroupId':'blockName'},ue(_0x574e03));});};}function _0x2b3793(_0x497709){return()=>{const _0x2e67cb=function(_0xd136b4){let _0x53c583=Array['from'](_0xd136b4);const _0x1b14c7=_0x53c583['findIndex'](_0x28658b=>'listItem'!=_0x28658b['name']);return _0x1b14c7>-0x1&&(_0x53c583=_0x53c583['slice'](0x0,_0x1b14c7)),_0x53c583;}(_0x2770ef['model']['document']['selection']['getSelectedBlocks']()),_0xa8e77c=_0x2770ef['model']['createRange'](_0x2770ef['model']['createPositionAt'](_0x2e67cb[0x0],'before'),_0x2770ef['model']['createPositionAt'](_0x2e67cb[_0x2e67cb['length']-0x1],'end'));_0x2770ef['model']['change'](()=>{_0x17bc17['markBlockFormat'](_0xa8e77c,{'commandName':_0x497709,'commandParams':[],'formatGroupId':'listIndent'},function(_0x270908){const _0x39aed1=new Set();for(const _0x121226 of _0x270908){let _0x295e76=_0x121226['nextSibling'];for(;_0x295e76&&_0x295e76['getAttribute']('listIndent')>_0x121226['getAttribute']('listIndent');)_0x39aed1['add'](_0x295e76),_0x295e76=_0x295e76['nextSibling'];}return Array['from'](_0x39aed1);}(_0x2e67cb));});};}_0x17bc17['enableCommand']('numberedList',_0x4c350d('numberedList')),_0x17bc17['enableCommand']('bulletedList',_0x4c350d('bulletedList')),_0xb9e078&&_0x17bc17['enableCommand']('todoList',_0x4c350d('todoList')),_0x17bc17['enableCommand']('indentList',_0x2b3793('indentList')),_0x17bc17['enableCommand']('outdentList',_0x2b3793('outdentList')),_0xb9e078&&_0x17bc17['enableCommand']('checkTodoList',()=>{const _0xc193b6=_0x2770ef['commands']['get']('checkTodoList'),_0x54cf48=Array['from'](_0xc193b6['_selectedElements']);_0x54cf48['filter'](_0xbecf30=>_0xbecf30['getAttribute']('todoListChecked')!=_0xc193b6['value']),_0x2770ef['model']['change'](()=>{for(const _0x359c5b of _0x54cf48)_0x17bc17['markBlockFormat'](_0x359c5b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc193b6['value']}]});});}),_0x17bc17['descriptionFactory']['registerElementLabel']('listItem',_0x4b85f0=>o(_0x540896,'ELEMENT_LIST_ITEM',_0x4b85f0)),_0x17bc17['descriptionFactory']['registerDescriptionCallback'](_0xeaf4da=>{if('formatBlock'!=_0xeaf4da['type']&&'formatInline'!=_0xeaf4da['type'])return;const {data:_0x3b26de}=_0xeaf4da;if(_0x3b26de){if('numberedList'==_0x3b26de['commandName']||'bulletedList'==_0x3b26de['commandName']||'todoList'==_0x3b26de['commandName'])switch(_0x3b26de['commandName']['replace']('List','')){case'bulleted':return _0x3828da(o(_0x540896,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3828da(o(_0x540896,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3828da(o(_0x540896,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3b26de['commandName'])return{'type':'format','content':o(_0x540896,'*Indent:*\x20%0',o(_0x540896,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3b26de['commandName'])return{'type':'format','content':o(_0x540896,'*Outdent:*\x20%0',o(_0x540896,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3b26de['commandName'])return _0x3b26de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x540896,'*Check\x20item*')}:{'type':'format','content':o(_0x540896,'*Uncheck\x20item*')};}function _0x3828da(_0x324ada){return{'type':'format','content':o(_0x540896,'*Change\x20to:*\x20%0',_0x324ada)};}});}}function fe(_0x550ffc){const _0x2e771e=_0x550ffc['getAttribute']('listIndent');if(0x0==_0x2e771e)return _0x550ffc;let _0x30d91d=_0x550ffc;for(;_0x550ffc['previousSibling']&&_0x550ffc['previousSibling']['is']('element','listItem');){const _0x6629=_0x550ffc['previousSibling']['getAttribute']('listIndent');if(_0x6629==_0x2e771e)_0x30d91d=_0x550ffc['previousSibling'];else{if(_0x6629<_0x2e771e)break;}_0x550ffc=_0x550ffc['previousSibling'];}return _0x30d91d;}function ue(_0x53992e){const _0x406f39=[];if(_0x53992e['is']('element','listItem')&&_0x53992e['getAttribute']('listIndent')>0x0){let _0x4ebcd4=_0x53992e['nextSibling'];for(;_0x4ebcd4&&'listItem'==_0x4ebcd4['name']&&_0x4ebcd4['getAttribute']('listIndent')==_0x53992e['getAttribute']('listIndent');)_0x406f39['push'](_0x4ebcd4),_0x4ebcd4=_0x4ebcd4['nextSibling'];}return _0x406f39;}class W extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x80e49b=this['editor']['config']['get']('list.properties'),_0x12f0e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x80e49b['styles']&&_0x12f0e2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x80e49b['reversed']&&_0x12f0e2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x80e49b['startIndex']&&_0x12f0e2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x12f0e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ebbaf,_0x3a7c52={}){const _0x111e6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a9f6a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x111e6c['markMultiRangeBlockFormat'](_0x5a9f6a,{'commandName':'listStyle','commandParams':[{'type':_0x3a7c52['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2cb191,_0x4f5fe3={}){const _0x69f763=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe07c88=this['_getSuggestionBlocks'](_0x1b9de6=>_0x1b9de6['is']('element','listItem')&&'numbered'===_0x1b9de6['getAttribute']('listType'));if(_0xe07c88['length']<0x1)return;const _0xb9cca8=_0xe07c88['map'](_0x109ef0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x109ef0,'before'),this['editor']['model']['createPositionAt'](_0x109ef0,0x0)));this['editor']['model']['change'](()=>{_0x69f763['markMultiRangeBlockFormat'](_0xb9cca8,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f5fe3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd266e2,_0x157395={}){const _0x5b3445=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f6b68=this['_getSuggestionBlocks'](_0x110647=>_0x110647['is']('element','listItem')&&'numbered'===_0x110647['getAttribute']('listType'));if(_0x1f6b68['length']<0x1)return;const _0x1eb159=_0x1f6b68['map'](_0x329a1a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x329a1a,'before'),this['editor']['model']['createPositionAt'](_0x329a1a,0x0)));this['editor']['model']['change'](()=>{_0x5b3445['markMultiRangeBlockFormat'](_0x1eb159,{'commandName':'listStart','commandParams':[{'startIndex':_0x157395['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20101e){if('formatBlock'!=_0x20101e['type']&&'formatInline'!=_0x20101e['type'])return;const _0x4bc9bc=this['editor']['locale'],{data:_0x14bf84}=_0x20101e;if(!_0x14bf84)return;let _0x1bf93a,_0x480347;switch(_0x14bf84['commandName']){case'listStyle':_0x1bf93a='*Change\x20to:*\x20%0',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a,o(_0x4bc9bc,this['_getTranslationKeyForListStyle'](_0x14bf84['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bf93a=_0x14bf84['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a)};break;case'listStart':_0x1bf93a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a,_0x14bf84['commandParams'][0x0]['startIndex'])};}return _0x480347;}['_getSuggestionBlocksForListStyle'](){const _0x4cd317=this['editor']['plugins']['get']('LegacyListUtils');let _0x508b84=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x508b84[0x0]?.['is']('element','listItem')&&_0x508b84['unshift'](..._0x4cd317['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x508b84[_0x508b84['length']-0x1]?.['is']('element','listItem')&&_0x508b84['push'](..._0x4cd317['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x508b84=[...new Set(_0x508b84)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x508b84=_0x508b84['filter'](_0x1d9317=>_0x1d9317['is']('element','listItem'))),_0x508b84;}['_getSuggestionBlocks'](_0x361358){const _0x4e490b=this['editor']['plugins']['get']('LegacyListUtils');let _0xf3d1da=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x361358)['map'](_0xa35448=>{const _0x1cc480=this['editor']['model']['createPositionAt'](_0xa35448,0x0);return[..._0x4e490b['getSiblingNodes'](_0x1cc480,'backward'),..._0x4e490b['getSiblingNodes'](_0x1cc480,'forward')];})['flat']();return _0xf3d1da=[...new Set(_0xf3d1da)],_0xf3d1da;}['_getTranslationKeyForListStyle'](_0x4a72cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a72cb)||'default')['toUpperCase']()+'_LIST_'+_0x4a72cb['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3cc490{['afterInit'](){const _0x2febea=this['editor'];if(!_0x2febea['plugins']['has']('MediaEmbedEditing'))return;const _0x5a5010=_0x2febea['plugins']['get']('TrackChangesEditing'),_0x20a4fe=_0x2febea['locale'];_0x5a5010['enableCommand']('mediaEmbed'),_0x5a5010['descriptionFactory']['registerElementLabel']('media',_0x493bb8=>o(_0x20a4fe,'ELEMENT_MEDIA',_0x493bb8)),_0x2febea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x517065,{writer:_0x5808db,options:_0x53c83b})=>{if(_0x53c83b['showSuggestionHighlights'])return _0x5808db['createEmptyElement']('div');},'converterPriority':'high'}),_0x2febea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4fa3de,_0x5c61ce,_0x1adb16)=>{_0x1adb16['options']['showSuggestionHighlights']&&_0x4fa3de['stop']();},{'priority':'high'});}}class mt extends _0x3cc490{['afterInit'](){const _0x2a74a0=this['editor'];_0x2a74a0['plugins']['has']('MentionEditing')&&_0x2a74a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3cc490{['afterInit'](){const _0x587103=this['editor'];if(!_0x587103['plugins']['has']('MergeFieldsEditing'))return;_0x587103['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x587103['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xe731dc=_0x587103['plugins']['get']('TrackChangesEditing'),_0x35980d=_0x587103['locale'];_0xe731dc['descriptionFactory']['registerElementLabel']('mergeField',_0x54f880=>o(_0x35980d,'ELEMENT_MERGE_FIELD',_0x54f880)),_0xe731dc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5d2834=>o(_0x35980d,'ELEMENT_MERGE_FIELD',_0x5d2834)),_0xe731dc['descriptionFactory']['registerDescriptionCallback'](_0x90d188=>{if('insertion'!=_0x90d188['type']&&'deletion'!=_0x90d188['type'])return;const _0x376308=_0x90d188['getContainedElement']();if(null==_0x376308)return;if(!_0x376308['is']('element','mergeField')&&!_0x376308['is']('element','mergeFieldBlock'))return;const _0x44dc40=_0x587103['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x376308['getAttribute']('id'));return'insertion'==_0x90d188['type']?{'type':'insertion','content':o(_0x35980d,'*Insert:*\x20%0','\x22'+_0x44dc40+'\x22\x20'+o(_0x35980d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x35980d,'*Remove:*\x20%0','\x22'+_0x44dc40+'\x22\x20'+o(_0x35980d,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3cc490{['afterInit'](){const _0x35a03d=this['editor'],_0x5e7692=_0x35a03d['plugins']['get']('TrackChangesEditing');_0x35a03d['plugins']['has']('MultiLevelList')&&(_0x5e7692['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e7692['registerBlockAttribute']('listMarkerStyle'),_0x5e7692['descriptionFactory']['registerDescriptionCallback'](_0x34988f=>this['handleDescriptions'](_0x34988f)));}['handleDescriptions'](_0x313121){const _0x31bc81=this['editor']['locale'],{data:_0x44830d}=_0x313121,_0x3e1e7e={'type':'format','content':''};if(_0x44830d&&'listMarkerStyle'==_0x44830d['key']){if(!_0x44830d['oldValue'])return{'type':'format','content':o(_0x31bc81,'*Set\x20format:*\x20%0',o(_0x31bc81,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44830d['newValue']+')'};if(!_0x44830d['newValue']){let _0x368648=_0x313121['head'];for(;_0x368648;){if(_0x368648['data']&&'listType'==_0x368648['data']['key']&&_0x368648['data']['newValue'])return _0x3e1e7e;_0x368648=_0x368648['next'];}return{'type':'format','content':o(_0x31bc81,'*Remove\x20format:*\x20%0',o(_0x31bc81,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44830d['oldValue']+')'};}}}}class kt extends _0x3cc490{['afterInit'](){const _0x5b401e=this['editor'];if(!_0x5b401e['plugins']['has']('PageBreakEditing'))return;_0x5b401e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5e10bc=_0x5b401e['plugins']['get']('TrackChangesEditing'),_0x487ec5=_0x5b401e['locale'];_0x5e10bc['descriptionFactory']['registerElementLabel']('pageBreak',_0x4175e1=>o(_0x487ec5,'ELEMENT_PAGE_BREAK',_0x4175e1));}}class bt extends _0x3cc490{['afterInit'](){const _0x1f666b=this['editor'];if(!_0x1f666b['plugins']['has']('Paragraph'))return;const _0x473d13=_0x1f666b['locale'],_0x3968b7=_0x1f666b['plugins']['get']('TrackChangesEditing');_0x3968b7['descriptionFactory']['registerElementLabel']('paragraph',_0x1c730c=>o(_0x473d13,'ELEMENT_PARAGRAPH',_0x1c730c)),_0x3968b7['enableDefaultAttributesIntegration']('paragraph'),_0x3968b7['enableCommand']('insertParagraph'),_0x1f666b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f666b),{'priority':'highest'}),_0x1f666b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e3f9f,_0x27cc35,_0x119c27)=>{_0x119c27['options']['showSuggestionHighlights']&&nr(_0x1f666b,{'showActiveMarker':!0x1})(_0x3e3f9f,_0x27cc35,_0x119c27);},{'priority':'highest'});const _0x137683=_0x3968b7['descriptionFactory'];_0x137683['registerDescriptionCallback'](_0x5a1414=>{if('insertion'!==_0x5a1414['type'])return;const {start:_0x28e3d1,end:_0x43e7a5}=_0x5a1414['getFirstRange']();if(!_0x28e3d1['isTouching'](_0x43e7a5)||!_0x28e3d1['nodeAfter'])return;const _0x2fc735=_0x1f666b['model']['schema'],_0x1b22fa=_0x28e3d1['nodeAfter'];return _0x2fc735['isBlock'](_0x1b22fa)&&!_0x2fc735['isLimit'](_0x1b22fa)&&_0x2fc735['checkChild'](_0x1b22fa,'$text')?{'type':'insertion','content':o(_0x473d13,'*Insert:*\x20%0',_0x137683['getItemLabel'](_0x1b22fa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d500=this['editor'],_0x37b9de=_0x52d500['locale'];_0x52d500['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd3f0=>{if('formatBlock'!=_0x3bd3f0['type'])return;const {data:_0x36b3b0}=_0x3bd3f0;return _0x36b3b0&&'paragraph'==_0x36b3b0['commandName']?{'type':'format','content':o(_0x37b9de,'*Change\x20to:*\x20%0',o(_0x37b9de,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xeb859e,{showActiveMarker:_0x446960=!0x0}={}){return(_0x4a270d,_0x3e3f68,_0x5d72b8)=>{const _0xd0592c=_0xeb859e['plugins']['get']('TrackChangesEditing'),_0x49d35a=_0x3e3f68['markerRange']['start'],_0x5a0764=_0x3e3f68['markerRange']['end'],_0x132654=_0xeb859e['model']['schema'];if(!_0x49d35a['isTouching'](_0x5a0764)||!_0x49d35a['nodeAfter'])return;const _0x29ce1e=_0x49d35a['nodeAfter'];if(_0x132654['isBlock'](_0x29ce1e)&&!_0x132654['isLimit'](_0x29ce1e)&&_0x132654['checkChild'](_0x29ce1e,'$text')){if(!_0x5d72b8['consumable']['consume'](_0x3e3f68['markerRange'],_0x4a270d['name']))return;const {authorId:_0x344c09}=_0xd0592c['_splitMarkerName'](_0x3e3f68['markerName']),_0x2b0903=_0x5d72b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x344c09}),_0x53650d=_0x5d72b8['mapper']['toViewPosition'](_0x5a0764);_0x446960&&_0xd0592c['activeMarkers']['includes'](_0x3e3f68['markerName'])&&_0x5d72b8['writer']['addClass']('ck-suggestion-marker--active',_0x2b0903),_0x5d72b8['writer']['insert'](_0x53650d,_0x2b0903),_0x5d72b8['mapper']['bindElementToMarker'](_0x2b0903,_0x3e3f68['markerName']);}};}class wt extends _0x3cc490{['afterInit'](){const _0x2a98aa=this['editor'];if(!_0x2a98aa['plugins']['has']('RemoveFormatEditing'))return;_0x2a98aa['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd1e797=this['editor'];_0xd1e797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222641=>{if('formatBlock'!=_0x222641['type']&&'formatInline'!=_0x222641['type'])return;const {data:_0x25cf99}=_0x222641;return _0x25cf99&&'removeFormat'==_0x25cf99['commandName']?{'type':'format','content':o(_0xd1e797['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3cc490{['afterInit'](){const _0x423f0c=this['editor'];if(!_0x423f0c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46f677=_0x423f0c['plugins']['get']('TrackChangesEditing');_0x46f677['enableCommand']('goToPreviousRestrictedEditingException'),_0x46f677['enableCommand']('goToNextRestrictedEditingException');const _0x26f5ed=_0x423f0c['plugins']['get']('RestrictedEditingModeEditing');_0x26f5ed['enableCommand']('trackChanges'),_0x26f5ed['enableCommand']('acceptSuggestion'),_0x26f5ed['enableCommand']('discardSuggestion'),_0x26f5ed['enableCommand']('acceptAllSuggestions'),_0x26f5ed['enableCommand']('discardAllSuggestions'),_0x26f5ed['enableCommand']('acceptSelectedSuggestions'),_0x26f5ed['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3cc490{static get['requires'](){return[_0xca3ce1];}['init'](){const _0x585a9e=this['editor'],_0x210f4f=_0x585a9e['plugins']['get']('TrackChangesEditing');_0x210f4f['enableCommand']('shiftEnter'),_0x585a9e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x585a9e),{'priority':'high'}),_0x585a9e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x585a9e),{'priority':'high'}),_0x585a9e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cffd0,_0x1fdaac,_0x24ab88)=>{_0x24ab88['options']['showSuggestionHighlights']&&ge(_0x585a9e,{'showActiveMarker':!0x1})(_0x4cffd0,_0x1fdaac,_0x24ab88);}),_0x210f4f['descriptionFactory']['registerElementLabel']('softBreak',_0x3208a9=>o(_0x585a9e['locale'],'ELEMENT_LINE_BREAK',_0x3208a9));}}function ge(_0x20cf48,{showActiveMarker:_0x4826b4=!0x0}={}){return(_0xb7e6ab,_0x498ad0,_0x528242)=>{const _0x2db28f=_0x20cf48['plugins']['get']('TrackChangesEditing');if(!_0x528242['consumable']['test'](_0x498ad0['markerRange'],_0xb7e6ab['name']))return;const _0x2410b3=_0x20cf48['model'];for(const _0x1b723a of _0x498ad0['markerRange']['getItems']()){if(!_0x1b723a['is']('element','softBreak'))continue;const _0x523ac2='deletion'==_0x498ad0['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x8e177f}=_0x2db28f['_splitMarkerName'](_0x498ad0['markerName']),_0x49e979=_0x528242['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x523ac2,'data-author-id':_0x8e177f}),_0x557c90=_0x528242['mapper']['toViewPosition'](_0x2410b3['createPositionBefore'](_0x1b723a));_0x4826b4&&_0x2db28f['activeMarkers']['includes'](_0x498ad0['markerName'])&&_0x528242['writer']['addClass']('ck-suggestion-marker--active',_0x49e979),_0x528242['writer']['insert'](_0x557c90,_0x49e979),_0x528242['mapper']['bindElementToMarker'](_0x49e979,_0x498ad0['markerName']);}};}class St extends _0x3cc490{['afterInit'](){const _0x595244=this['editor'],_0x4904e9=_0x595244['model'],_0x4c9c28=_0x595244['locale'];if(!_0x595244['plugins']['has']('StandardEditingModeEditing'))return;const _0xad319e=_0x595244['plugins']['get']('TrackChangesEditing'),_0x27f2bf='restrictedEditingException',_0x555410=_0x595244['commands']['get'](_0x27f2bf);_0xad319e['enableCommand'](_0x27f2bf,(_0x53ed8c,_0x3f7cdd={})=>{const _0x12271c=_0x4904e9['document']['selection'];if(_0x12271c['isCollapsed'])return void _0x53ed8c(_0x3f7cdd);const _0x3c6816=void 0x0!==_0x3f7cdd['forceValue']?_0x3f7cdd['forceValue']:!_0x555410['value'];_0x4904e9['change'](()=>{const _0x50d96a=Array['from'](_0x12271c['getRanges']());for(const _0x448f33 of _0x50d96a){const _0x516621=_0x3c6816?[_0x448f33]:io(_0x27f2bf,_0x448f33,_0x4904e9);for(const _0x5e0858 of _0x516621)_0xad319e['markInlineFormat'](_0x5e0858,{'commandName':_0x27f2bf,'commandParams':[{'forceValue':_0x3c6816}]});}});}),_0xad319e['descriptionFactory']['registerDescriptionCallback'](_0x11311d=>{if('formatBlock'!=_0x11311d['type']&&'formatInline'!=_0x11311d['type'])return;const {data:_0x1e034d}=_0x11311d;return _0x1e034d&&_0x1e034d['commandName']==_0x27f2bf?_0x1e034d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c9c28,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c9c28,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3cc490{['afterInit'](){const _0x51621b=this['editor'];if(!_0x51621b['plugins']['has']('Style')||!_0x51621b['plugins']['has']('DataSchema'))return;const _0x22fbaf=_0x51621b['plugins']['get']('TrackChangesEditing'),_0x4dcc28=_0x51621b['locale'],_0xaf81b5=_0x51621b['config']['get']('style')||{},_0x302a33=_0x51621b['plugins']['get']('GeneralHtmlSupport'),_0x25bd46=_0x51621b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51621b['plugins']['get']('DataSchema'),_0xaf81b5['definitions']);_0x22fbaf['enableDefaultAttributesIntegration']('style');const _0x49c620=new Set();for(const _0x5d30cb of _0x25bd46['block']){const _0x29070c=_0x302a33['getGhsAttributeNameForElement'](_0x5d30cb['element']);_0x49c620['add'](_0x29070c);}const _0x1c70f6=new Set();for(const _0x427a16 of _0x25bd46['inline']){const _0x3da209=_0x302a33['getGhsAttributeNameForElement'](_0x427a16['element']);_0x1c70f6['add'](_0x3da209);for(const _0x266767 of _0x427a16['ghsAttributes'])_0x1c70f6['add'](_0x266767);}for(const _0x52b6e3 of _0x49c620)_0x22fbaf['registerBlockAttribute'](_0x52b6e3),_0x22fbaf['descriptionFactory']['registerAttributeLabel'](_0x52b6e3,o(_0x4dcc28,'FORMAT_STYLE'));for(const _0x374660 of _0x1c70f6)_0x22fbaf['registerInlineAttribute'](_0x374660),_0x22fbaf['descriptionFactory']['registerAttributeLabel'](_0x374660,o(_0x4dcc28,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411722=this['editor'],_0x4caf2c=_0x411722['locale'];_0x411722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11849e=>{if('formatBlock'!=_0x11849e['type']&&'formatInline'!=_0x11849e['type'])return;const {data:_0x2af801}=_0x11849e;return _0x2af801&&'style'===_0x2af801['commandName']?_0x2af801['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4caf2c,'*Set\x20format:*\x20%0',_0x2af801['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4caf2c,'*Remove\x20format:*\x20%0',_0x2af801['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3cc490{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x53f117){super(_0x53f117),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e8fff=this['editor'],_0x5c7cef=_0x4e8fff['model']['document']['selection'];if(!_0x4e8fff['plugins']['has']('TableEditing'))return;const _0xfd370e=_0x4e8fff['locale'],_0x132408=_0x4e8fff['plugins']['get']('TrackChangesEditing'),_0x4ed272=_0x4e8fff['plugins']['get']('TableUtils');_0x132408['descriptionFactory']['registerElementLabel']('table',_0xf8cf18=>o(_0xfd370e,'ELEMENT_TABLE',_0xf8cf18)),this['_setupColumnsRowsFixing'](),_0x132408['enableCommand']('insertTable'),_0x132408['enableCommand']('selectTableRow'),_0x132408['enableCommand']('selectTableColumn');for(const _0x389165 of['insertTableRowAbove','insertTableRowBelow']){const _0x2532c9=_0x4e8fff['commands']['get'](_0x389165);_0x132408['enableCommand'](_0x389165,_0x5a06a1=>{_0x4e8fff['model']['change'](_0x2e7476=>{_0x5a06a1();const _0x576cd0='above'===_0x2532c9['order'],_0x9a76ea=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x1f4398=_0x4ed272['getRowIndexes'](_0x9a76ea),_0x54987c=_0x576cd0?_0x1f4398['first']-0x1:_0x1f4398['last']+0x1,_0x3a101b=_0x9a76ea[0x0]['findAncestor']('table'),_0x3b1347=_0x4ed272['createTableWalker'](_0x3a101b,{'startRow':_0x54987c,'endRow':_0x54987c}),_0xc2deb0=Array['from'](_0x3b1347)['map'](_0x26f5ec=>_0x2e7476['createRangeOn'](_0x26f5ec['cell']));_0x132408['markMultiRangeInsertion'](_0xc2deb0,'tableRow');});});}for(const _0x11f655 of['insertTableColumnLeft','insertTableColumnRight']){const _0x35791d=_0x4e8fff['commands']['get'](_0x11f655);_0x132408['enableCommand'](_0x11f655,_0x3c6019=>{_0x4e8fff['model']['change'](_0x242768=>{_0x3c6019();const _0x1db42b='left'===_0x35791d['order'],_0x2c05ee=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x379afb=_0x4ed272['getColumnIndexes'](_0x2c05ee),_0x1c8577=_0x1db42b?_0x379afb['first']-0x1:_0x379afb['last']+0x1,_0xabf43a=_0x2c05ee[0x0]['findAncestor']('table'),_0x16c1f2=_0x4ed272['createTableWalker'](_0xabf43a,{'startRow':0x0,'column':_0x1c8577,'includeAllSlots':!0x1}),_0x4a10dc=Array['from'](_0x16c1f2)['map'](_0x2a606a=>_0x242768['createRangeOn'](_0x2a606a['cell']));_0x132408['markMultiRangeInsertion'](_0x4a10dc,'tableColumn');});});}for(const _0x2ce554 of['removeTableRow','removeTableColumn']){const _0x1d674e=_0x2ce554['substr'](0xb),_0x48e412=_0x1d674e['toLowerCase'](),_0x7e5bac=_0x48e412['substr'](0x0,0x3)+'span',_0x5989a5='table'+_0x1d674e,_0x2a7db3='min'+_0x1d674e,_0x2343fa='max'+_0x1d674e;_0x132408['enableCommand'](_0x2ce554,()=>{_0x4e8fff['model']['change'](_0x2035e0=>{const _0x15ddc6=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x349b09=_0x15ddc6[0x0]['findAncestor']('table');let _0x3f35f0;if('removeTableRow'==_0x2ce554){const _0x2f2615=_0x4ed272['getRowIndexes'](_0x15ddc6);_0x3f35f0={'startRow':_0x2f2615['first'],'endRow':_0x2f2615['last'],'includeAllSlots':!0x0};}else{const _0x369ab3=_0x4ed272['getColumnIndexes'](_0x15ddc6);_0x3f35f0={'startColumn':_0x369ab3['first'],'endColumn':_0x369ab3['last'],'includeAllSlots':!0x0};}const _0x4c97fa=_0x4ed272['createTableWalker'](_0x349b09,_0x3f35f0),_0x6863b6=Array['from'](_0x4c97fa)['map'](({cell:_0x8bc333})=>_0x8bc333),_0x2df059=be(_0x6863b6['filter'](_0x196eab=>_0x196eab['hasAttribute'](_0x7e5bac))),_0x1f9f2f=be(_0x6863b6['filter'](_0x5b55ab=>!_0x5b55ab['hasAttribute'](_0x7e5bac)))['map'](_0x51a2fe=>_0x2035e0['createRangeOn'](_0x51a2fe)),_0x470d28=_0x132408['markMultiRangeDeletion'](_0x1f9f2f,_0x5989a5);if(_0x470d28&&('tableRow'==_0x470d28['subType']||'tableColumn'==_0x470d28['subType'])){const _0x2d7e46=this['_getSuggestionCoords'](_0x470d28);for(const _0x393220 of _0x2df059){const _0x2c33c6=_0x2035e0['createRangeOn'](_0x393220),_0x1c2290=_0x4ed272['getCellLocation'](_0x393220),_0x414477=_0x393220['getAttribute'](_0x7e5bac)-0x1,_0xbfe3bc=_0x2d7e46[_0x2a7db3],_0x274582=_0x2d7e46[_0x2343fa];_0xbfe3bc<=_0x1c2290[_0x48e412]&&_0x1c2290[_0x48e412]+_0x414477<=_0x274582&&_0x470d28['addRange'](_0x2c33c6);}}});});}function _0x38336c(_0x419e45){const _0x594dab=Array['from'](_0x5c7cef['getRanges']())['map'](_0x55f078=>_0x5ed280['fromRange'](_0x55f078));_0x4e8fff['model']['change'](_0x17d474=>{const _0x2d8b5=_0x17d474['batch'];_0x419e45=_0x419e45['filter'](_0x3db5bc=>'$graveyard'!=_0x3db5bc['root']['rootName']),_0x17d474['setSelection'](_0x419e45),_0x4e8fff['commands']['get']('removeTableRow')['refresh'](),_0x4e8fff['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e8fff['model']['enqueueChange'](()=>{_0x4e8fff['model']['enqueueChange'](_0x2d8b5,_0x11e0fb=>{const _0x2bf419=_0x594dab['filter'](_0x412cc0=>'$graveyard'!=_0x412cc0['root']['rootName']);_0x2bf419['length']>0x0&&_0x11e0fb['setSelection'](_0x2bf419);for(const _0x9c9543 of _0x594dab)_0x9c9543['detach']();});});});}function _0x4758b3(_0x421bac){_0x4e8fff['model']['change'](_0xa86c=>{const _0x2f7fac=Array['from'](_0x5c7cef['getRanges']())['map'](_0x52f84a=>_0x5ed280['fromRange'](_0x52f84a)),_0x234d2=[];for(const _0x2d7fa5 of _0x421bac)for(const _0x5962e5 of _0x2d7fa5['getItems']({'shallow':!0x0}))_0x234d2['push'](_0x5962e5);for(const _0x549e72 of _0x234d2)'$graveyard'!=_0x549e72['root']['rootName']&&(_0xa86c['setSelection'](_0xa86c['createPositionAt'](_0x549e72,0x0)),_0x4e8fff['commands']['get']('removeTableColumn')['refresh'](),_0x4e8fff['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a0f62=_0x2f7fac['filter'](_0x1262e6=>'$graveyard'!=_0x1262e6['root']['rootName']);_0x5a0f62['length']>0x0&&_0xa86c['setSelection'](_0x5a0f62);for(const _0xbc7be5 of _0x2f7fac)_0xbc7be5['detach']();});}function _0x34823e(_0xdc4b86,_0x946a4f){return _0x946a4f['every'](_0x3a77bc=>_0xdc4b86['some'](_0x4cd637=>_0x4cd637['end']['isEqual'](_0x3a77bc['start'])||_0x3a77bc['end']['isEqual'](_0x4cd637['start'])));}function _0x3f53a4(_0x41b3ee,_0x2b1bc8){return!_0x41b3ee['some'](_0x33e98f=>_0x2b1bc8['some'](_0x4f867d=>_0x33e98f['isIntersecting'](_0x4f867d)))&&_0x41b3ee['some'](_0x17d7c7=>_0x2b1bc8['some'](_0x2f1112=>_0x17d7c7['end']['isTouching'](_0x2f1112['start'])));}_0x4e8fff['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3971aa,_0x697ba9,_0x95ab16)=>{if(!_0x95ab16['options']['showSuggestionHighlights'])return;const _0x1e45d8=_0x697ba9['item'];if(!_0x1e45d8)return;const _0x2737c8=_0x95ab16['mapper']['toViewElement'](_0x1e45d8);function _0x30724b(_0x488f3a){return Array['isArray'](_0x488f3a)?_0x488f3a:[_0x488f3a];}_0x2737c8&&'tableCell'===_0x1e45d8['name']&&_0x4976b6(_0x2737c8,_0x95ab16['writer'],(_0x1421ee,_0x4780fa,_0x45d912)=>_0x45d912['addClass'](_0x30724b(_0x4780fa['classes']),_0x1421ee),(_0x90142a,_0x16ae85,_0x46f3bf)=>_0x46f3bf['removeClass'](_0x30724b(_0x16ae85['classes']),_0x90142a));},{'priority':'highest'}),_0x132408['descriptionFactory']['registerDescriptionCallback'](_0x45b8e0=>{if('insertion'!=_0x45b8e0['type']&&'deletion'!=_0x45b8e0['type'])return;const _0x2187bd=_0x45b8e0['getContainedElement']();if(null!=_0x2187bd&&_0x2187bd['is']('element','table')){if('insertion'==_0x45b8e0['type']){const _0x147a72=_0x45b8e0['getItems']()['filter'](_0x6b169d=>_0x6b169d['is']('$textProxy'))['map'](_0x443730=>_0x443730['data']);if(_0x147a72['length'])return{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x147a72['join']('\x20')+'\x22'))};}if('deletion'==_0x45b8e0['type']){const _0x5c793b=_0x45b8e0['getItems']()['filter'](_0x5e5386=>_0x5e5386['is']('$textProxy'))['map'](_0x4f2183=>_0x4f2183['data']);if(_0x5c793b['length'])return{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c793b['join']('\x20')+'\x22'))};}}}),_0x132408['descriptionFactory']['registerDescriptionCallback'](_0x205525=>{if('tableRow'==_0x205525['subType']){const _0x580cb0=_0x205525['getItems']()['filter'](_0x550b85=>_0x550b85['is']('$textProxy'))['map'](_0x39ae93=>_0x39ae93['data']),_0x395d4f=this['_getSuggestionCoords'](_0x205525),_0x4fb438=_0x395d4f['maxRow']-_0x395d4f['minRow']+0x1;if('insertion'==_0x205525['type'])return _0x580cb0['length']?{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fb438,'\x22'+_0x580cb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW',_0x4fb438))};if('deletion'==_0x205525['type'])return _0x580cb0['length']?{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fb438,'\x22'+_0x580cb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW',_0x4fb438))};}if('tableColumn'==_0x205525['subType']){const _0x201c10=_0x205525['getItems']()['filter'](_0x2201e0=>_0x2201e0['is']('$textProxy'))['map'](_0x147a16=>_0x147a16['data']),_0x1436be=this['_getSuggestionCoords'](_0x205525),_0xaa6564=_0x1436be['maxColumn']-_0x1436be['minColumn']+0x1;if('insertion'==_0x205525['type'])return _0x201c10['length']?{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xaa6564,'\x22'+_0x201c10['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN',_0xaa6564))};if('deletion'==_0x205525['type'])return _0x201c10['length']?{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xaa6564,'\x22'+_0x201c10['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN',_0xaa6564))};}}),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38336c),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38336c),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4758b3),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4758b3),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x34823e),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x34823e),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f53a4),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f53a4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f8116=this['editor'],_0x4612ef=_0x4f8116['model']['document']['selection'];return(_0x276c81,_0x375a31)=>{_0x4f8116['model']['change'](_0x3b7ac9=>{const {commandName:_0x21c233,commandParams:_0x2e4cb3}=_0x375a31;let _0x19710c=_0x276c81[0x0]['end']['nodeBefore'];_0x2e4cb3&&_0x2e4cb3[0x0]&&!0x1===_0x2e4cb3[0x0]['forceValue']&&(_0x19710c=_0x276c81[0x0]['start']['nodeAfter']);const _0x16cf20=_0x3b7ac9['createRangeIn'](_0x19710c);if('$graveyard'==_0x16cf20['root']['rootName'])return;const _0x5dca03=Array['from'](_0x4612ef['getRanges']())['map'](_0x5d404e=>_0x5ed280['fromRange'](_0x5d404e));_0x3b7ac9['setSelection'](_0x16cf20),_0x4f8116['commands']['get'](_0x21c233)['refresh'](),_0x2e4cb3['push']({'forceDefaultExecution':!0x0}),_0x4f8116['execute'](_0x21c233,..._0x2e4cb3);const _0x1723e5=_0x5dca03['filter'](_0x313341=>'$graveyard'!=_0x313341['root']['rootName']);_0x1723e5['length']>0x0&&_0x3b7ac9['setSelection'](_0x1723e5);for(const _0x274d7f of _0x5dca03)_0x274d7f['detach']();});};}['_getCoordsForCells'](_0x2130d0){const _0x18b742=this['editor']['plugins']['get']('TableUtils');let _0x4360fa=Number['MAX_SAFE_INTEGER'],_0x433a8b=Number['MIN_SAFE_INTEGER'],_0x11c75d=Number['MAX_SAFE_INTEGER'],_0x5359fc=Number['MIN_SAFE_INTEGER'];for(const _0x4cd234 of _0x2130d0){if('$graveyard'==_0x4cd234['root']['rootName'])continue;const {row:_0x150c05,column:_0x12a1b9}=_0x18b742['getCellLocation'](_0x4cd234),_0x17b7a0=_0x4cd234['hasAttribute']('rowspan')?_0x4cd234['getAttribute']('rowspan')-0x1:0x0,_0x272fd7=_0x4cd234['hasAttribute']('colspan')?_0x4cd234['getAttribute']('colspan')-0x1:0x0;_0x4360fa=_0x150c05<_0x4360fa?_0x150c05:_0x4360fa,_0x433a8b=_0x150c05+_0x17b7a0>_0x433a8b?_0x150c05+_0x17b7a0:_0x433a8b,_0x11c75d=_0x12a1b9<_0x11c75d?_0x12a1b9:_0x11c75d,_0x5359fc=_0x12a1b9+_0x272fd7>_0x5359fc?_0x12a1b9+_0x272fd7:_0x5359fc;}return{'minRow':_0x4360fa,'maxRow':_0x433a8b,'minColumn':_0x11c75d,'maxColumn':_0x5359fc};}['_setupColumnsRowsFixing'](){const _0x5b5cea=this['editor'],_0x3a4fc1=_0x5b5cea['plugins']['get']('TrackChangesEditing'),_0x223d9a=_0x5b5cea['plugins']['get']('TableUtils');_0x5b5cea['model']['document']['on']('change:data',()=>{const _0x12df63=Array['from'](_0x5b5cea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32ae54,data:_0x24254a}of _0x12df63){const {group:_0x1e4364,id:_0x416d1e,subType:_0x2d34dd}=_0x3a4fc1['_splitMarkerName'](_0x32ae54);if('suggestion'!=_0x1e4364)continue;if(null!=_0x24254a['oldRange'])continue;const _0x26167f=_0x3a4fc1['getSuggestion'](_0x416d1e);this['_tablePostFixingSubtypes']['includes'](_0x2d34dd)&&this['_tableSuggestions']['add'](_0x26167f);}},{'priority':'low'});const _0x5417de=(_0x2e5954,_0x13e62a)=>{let _0x3945a1=!0x1;const _0x294313=_0x13e62a['createRangeOn'](_0x2e5954),_0x84277d=_0x2e5954['findAncestor']('table'),_0x319015=_0x223d9a['getCellLocation'](_0x2e5954);for(const _0x38a595 of this['_tableSuggestions']){const _0x44085a=_0x38a595['subType'],_0xbcc0ff=_0x44085a['startsWith']('tablePaste'),_0x49c711=_0x44085a['substr'](_0xbcc0ff?0xa:0x5),_0x126ae2=_0x49c711['toLowerCase'](),_0x3a6e55=_0x126ae2['substr'](0x0,0x3)+'span',_0x405759='min'+_0x49c711,_0x5c5bc4='max'+_0x49c711;if(!_0x38a595['isInContent'])continue;if(_0x84277d!=_0x38a595['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38a595['isIntersectingWithRange'](_0x294313))continue;const _0x220bf7=_0x2e5954['hasAttribute'](_0x3a6e55)?_0x2e5954['getAttribute'](_0x3a6e55)-0x1:0x0,_0x524909=this['_getSuggestionCoords'](_0x38a595),_0x54f4cc=_0x524909[_0x405759],_0x4ff005=_0x524909[_0x5c5bc4];_0x54f4cc<=_0x319015[_0x126ae2]&&_0x319015[_0x126ae2]+_0x220bf7<=_0x4ff005&&(_0x38a595['addRange'](_0x294313),_0x3945a1=!0x0);}return _0x3945a1;};_0x5b5cea['model']['document']['registerPostFixer'](_0x1fecd7=>{let _0x3f64c7=!0x1;for(const _0x28809a of _0x5b5cea['model']['document']['differ']['getChanges']())if('insert'==_0x28809a['type']){if('tableRow'==_0x28809a['name']){for(const _0x518b62 of _0x28809a['position']['nodeAfter']['getChildren']())_0x3f64c7=_0x3f64c7||_0x5417de(_0x518b62,_0x1fecd7);}else'tableCell'==_0x28809a['name']&&(_0x3f64c7=_0x3f64c7||_0x5417de(_0x28809a['position']['nodeAfter'],_0x1fecd7));}return _0x3f64c7;});}['_getSuggestionCoords'](_0x20a0cf){return this['_getCoordsForCells'](_0x20a0cf['getRanges']()['map'](_0x4cfa57=>_0x4cfa57['start']['nodeAfter']));}}function be(_0xfb5cfb){return Array['from'](new Set(_0xfb5cfb)['values']());}class vt extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x541ad9=this['editor'],_0x25e5ad=_0x541ad9['model']['document']['selection'],_0x183490=_0x541ad9['locale'];if(!_0x541ad9['plugins']['has']('TableEditing'))return;const _0x39b191=_0x541ad9['plugins']['get']('TrackChangesEditing'),_0x51f5c8=_0x541ad9['plugins']['get']('TableUtils'),_0x3870cf=_0x541ad9['plugins']['get'](It);_0x3870cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39b191['enableCommand']('mergeTableCells',()=>{const _0x17463f=_0x51f5c8['getSelectionAffectedTableCells'](_0x541ad9['model']['document']['selection']);_0x541ad9['model']['change'](()=>{_0x39b191['markMultiRangeBlockFormat'](_0x17463f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x541ad9['commands']['get']('mergeTableCells')['on']('execute',(_0x48d01e,_0x4fa59f)=>{_0x541ad9['commands']['get']('trackChanges')['value']&&(_0x4fa59f['length']>0x0&&_0x4fa59f[_0x4fa59f['length']-0x1]&&_0x4fa59f[_0x4fa59f['length']-0x1]['forceDefaultExecution']||_0x39b191['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x48d01e['stop']());},{'priority':'highest'});for(const _0x34c144 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x398d13=_0x541ad9['commands']['get'](_0x34c144);_0x39b191['enableCommand'](_0x34c144,()=>{const _0xa4f6dd=_0x541ad9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ab6f0=>_0x3ab6f0['is']('element','tableCell')),_0x4f8fc8=_0x398d13['value'];_0x541ad9['model']['change'](()=>{_0x39b191['markMultiRangeBlockFormat']([_0xa4f6dd,_0x4f8fc8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x490322 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54242a=_0x541ad9['commands']['get'](_0x490322);_0x39b191['enableCommand'](_0x490322,()=>{const _0x2bc5ec=_0x51f5c8['getSelectionAffectedTableCells'](_0x541ad9['model']['document']['selection'])[0x0],_0x42a724=_0x2bc5ec['findAncestor']('table'),{column:_0x24fd5f,row:_0x32f7a5}=_0x51f5c8['getCellLocation'](_0x2bc5ec);let _0x102960=[];if('horizontally'==_0x54242a['direction']){const _0x5b3711=_0x51f5c8['createTableWalker'](_0x42a724,{'startRow':_0x32f7a5,'endRow':_0x32f7a5,'includeAllSlots':!0x0});_0x102960=Array['from'](_0x5b3711)['map'](_0x411f08=>_0x411f08['cell']);}else{const _0x490742=_0x51f5c8['createTableWalker'](_0x42a724,{'column':_0x24fd5f,'includeAllSlots':!0x0});_0x102960=Array['from'](_0x490742)['map'](_0x5d1bec=>_0x5d1bec['cell']);}_0x541ad9['model']['change'](_0x2d0921=>{_0x39b191['markBlockFormat'](_0x2d0921['createRangeOn'](_0x2bc5ec),{'commandName':_0x490322,'commandParams':[]},_0x102960,_0x490322);});});}_0x39b191['descriptionFactory']['registerDescriptionCallback'](_0x11d945=>{if('formatBlock'!=_0x11d945['type']&&'formatInline'!=_0x11d945['type'])return;const {data:_0x3325ed}=_0x11d945;return _0x3325ed&&'mergeTableCells'==_0x3325ed['commandName']?{'type':'format','content':o(_0x183490,'*Merge\x20cells*')}:void 0x0;}),_0x39b191['descriptionFactory']['registerDescriptionCallback'](_0x26fc0e=>{if('formatBlock'!=_0x26fc0e['type']&&'formatInline'!=_0x26fc0e['type'])return;const {data:_0x3996be}=_0x26fc0e;return _0x3996be?'splitTableCellVertically'==_0x3996be['commandName']?{'type':'format','content':o(_0x183490,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3996be['commandName']?{'type':'format','content':o(_0x183490,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x116361=_0x3870cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x167317 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x167317,'accept',_0x116361);for(const _0x2fbfe8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fbfe8,'accept',_0x116361);_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a4885=>{_0x541ad9['model']['change'](_0x32c32b=>{const _0x4cd2cb=Array['from'](_0x25e5ad['getRanges']())['map'](_0x10096c=>_0x5ed280['fromRange'](_0x10096c));_0x32c32b['setSelection'](_0x1a4885),_0x541ad9['commands']['get']('mergeTableCells')['refresh'](),_0x541ad9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d724e=_0x4cd2cb['filter'](_0x2f28dc=>'$graveyard'!=_0x2f28dc['root']['rootName']);_0x4d724e['length']>0x0&&_0x32c32b['setSelection'](_0x4d724e);for(const _0x3126df of _0x4cd2cb)_0x3126df['detach']();});});for(const _0x5f4448 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19b67f=_0x541ad9['commands']['get'](_0x5f4448);_0x19b67f['on']('set:isEnabled',(_0xb9649b,_0xd9d57,_0x197176)=>{if(_0x197176){const _0x32b939=_0x541ad9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x28f191=>_0x28f191['is']('element','tableCell'));this['_areMergableCells'](_0x19b67f['value'],_0x32b939)||(_0xb9649b['return']=!0x1,_0xb9649b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1efae5=this['editor']['commands']['get']('mergeTableCells'),_0x48954e=this['editor']['plugins']['get']('TableUtils');if(!_0x1efae5['isEnabled'])return!0x1;const _0x4f56b9=_0x48954e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x760a55 of _0x4f56b9)for(const _0x28b7a7 of _0x4f56b9)if(_0x760a55!=_0x28b7a7&&!this['_areMergableCells'](_0x760a55,_0x28b7a7))return!0x1;return!0x0;}['_areMergableCells'](_0x2b0f75,_0x2d37aa){const _0x11e6ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579bfb=this['editor']['model']['createRangeOn'](_0x2b0f75),_0x2c009b=this['editor']['model']['createRangeOn'](_0x2d37aa),_0x2ff3e8=new Set(),_0x594334=new Set();for(const _0x10a238 of _0x11e6ec['getSuggestions']())if(('insertion'==_0x10a238['type']||'deletion'==_0x10a238['type']||'mergeTableCells'==_0x10a238['subType'])&&_0x10a238['isInContent']){for(const _0x138695 of _0x10a238['getRanges']())_0x138695['containsRange'](_0x579bfb,!0x0)&&_0x2ff3e8['add'](_0x10a238['type']+':'+_0x10a238['author']['id']),_0x138695['containsRange'](_0x2c009b,!0x0)&&_0x594334['add'](_0x10a238['type']+':'+_0x10a238['author']['id']);}if(_0x2ff3e8['size']!=_0x594334['size'])return!0x1;for(const _0x1a8a56 of _0x2ff3e8)if(!_0x594334['has'](_0x1a8a56))return!0x1;return!0x0;}}class Ct extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x88f5fa=this['editor'];if(!_0x88f5fa['plugins']['has']('TableEditing'))return;const _0x36b61=_0x88f5fa['locale'],_0x565502=_0x88f5fa['plugins']['get']('TrackChangesEditing');_0x565502['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x565502['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x565502['registerBlockAttribute']('headingRows'),_0x565502['registerBlockAttribute']('headingColumns'),_0x565502['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x36b61,'FORMAT_HEADER_ROW')),_0x565502['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x36b61,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58523a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x493ca6=this['editor']['plugins']['get']('TableUtils'),_0x487bd4=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x329209({showActiveMarker:_0x253482=!0x0,setDataAttribute:_0x14f711=!0x0}={}){return(_0x3c7f60,_0x3b8673,_0x3157ff)=>{const {type:_0x3e735e,id:_0x2a21fd}=_0x58523a['_splitMarkerName'](_0x3b8673['markerName']),_0x3d9693=_0x58523a['getSuggestion'](_0x2a21fd),_0x4bae93=_0x3d9693['data'];if('formatBlock'!=_0x3d9693['type']||!_0x4bae93||'setTableColumnHeader'!=_0x4bae93['commandName'])return;if(_0x3b8673['item'])return void _0x3c7f60['stop']();if(!_0x3157ff['consumable']['consume'](_0x3b8673['markerRange'],_0x3c7f60['name']))return;const _0x445e77=_0x3b8673['markerRange']['start']['nodeAfter'],_0xe02c19=_0x3b8673['markerRange']['end']['nodeBefore'],_0x529ecf=_0x445e77['parent']['parent'],{column:_0x228ccc}=_0x493ca6['getCellLocation'](_0x445e77),{column:_0x1150fd}=_0x493ca6['getCellLocation'](_0xe02c19);for(let _0xc68655=_0x228ccc;_0xc68655<=_0x1150fd;_0xc68655++){const _0x22b174=_0x493ca6['createTableWalker'](_0x529ecf,{'column':_0xc68655,'includeAllSlots':!0x1});for(const _0x374e3c of _0x22b174){const _0x576959=_0x374e3c['cell'],_0x5d3506=_0x3157ff['mapper']['toViewElement'](_0x576959);_0x3157ff['writer']['addClass']('ck-suggestion-marker-'+_0x3e735e,_0x5d3506),_0x14f711&&_0x3157ff['writer']['setAttribute']('data-suggestion',_0x2a21fd,_0x5d3506),_0x3157ff['mapper']['bindElementToMarker'](_0x5d3506,_0x3b8673['markerName']),_0x253482&&(_0x58523a['activeMarkers']['includes'](_0x3b8673['markerName'])?_0x3157ff['writer']['addClass']('ck-suggestion-marker--active',_0x5d3506):_0x3157ff['writer']['removeClass']('ck-suggestion-marker--active',_0x5d3506));}}};}_0x58523a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x487bd4),_0x58523a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x487bd4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x329209(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x551236,_0x356794,_0x5e63ff)=>{_0x5e63ff['options']['showSuggestionHighlights']&&_0x329209({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x551236,_0x356794,_0x5e63ff);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5e528a,_0x4259c7,_0x21b1e8)=>{const {type:_0x27cb1c,id:_0x1640b5}=_0x58523a['_splitMarkerName'](_0x4259c7['markerName']),_0x50a24a=_0x58523a['getSuggestion'](_0x1640b5),_0x25b206=_0x50a24a['data'];if('formatBlock'!=_0x50a24a['type']||!_0x25b206||'setTableColumnHeader'!=_0x25b206['commandName'])return;const _0x1061cb=_0x21b1e8['mapper']['markerNameToElements'](_0x4259c7['markerName']);if(_0x1061cb){for(const _0x497d17 of _0x1061cb)_0x21b1e8['writer']['removeClass']('ck-suggestion-marker-'+_0x27cb1c,_0x497d17),_0x21b1e8['writer']['removeClass']('ck-suggestion-marker--active',_0x497d17),_0x21b1e8['writer']['removeAttribute']('data-suggestion',_0x497d17),_0x21b1e8['mapper']['unbindElementFromMarkerName'](_0x497d17,_0x4259c7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x145702=this['editor'],_0x130bf1=_0x145702['locale'];function _0x14240d(_0x5320d6){return{'type':'format','content':o(_0x130bf1,'*Format:*\x20%0',_0x5320d6)};}_0x145702['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e2b8c=>{if('formatBlock'!=_0x1e2b8c['type'])return;const {data:_0x57b085}=_0x1e2b8c;if(_0x57b085){if('setTableRowHeader'==_0x57b085['commandName']){const _0x339136=_0x57b085['commandParams'][0x0]['forceValue'];return _0x14240d(o(_0x130bf1,_0x339136?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x57b085['commandName']){const _0x2fb388=_0x57b085['commandParams'][0x0]['forceValue'];return _0x14240d(o(_0x130bf1,_0x2fb388?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3667df=>[_0x3667df,null]));class _t extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x10b2de=this['editor'];if(!_0x10b2de['plugins']['has']('TableClipboard'))return;const _0x4e06b4=_0x10b2de['plugins']['get']('TrackChangesEditing'),_0x1e2bb8=_0x10b2de['plugins']['get']('TableUtils'),_0x1c29fc=_0x10b2de['plugins']['get'](It),_0x55282f=_0x10b2de['plugins']['get']('TableClipboard');_0x1c29fc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x10b2de['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x10b2de['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e3bde=null;_0x10b2de['model']['on']('insertContent',(_0x58d909,_0x326462)=>{const [_0x17c923,_0x1100ca]=_0x326462,_0x3d08ad=_0x326462[_0x326462['length']-0x1];_0x3d08ad&&_0x3d08ad['forceDefaultExecution']||_0x4e06b4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1364b4,_0x3a1c5a,_0x47c56e,_0x1a63de,_0xf4f5f5){if(_0x3a1c5a&&!_0x3a1c5a['is']('documentSelection'))return!0x1;const _0x4f0b47=_0xf4f5f5['getTableIfOnlyTableInContent'](_0x1364b4,_0x47c56e);if(!_0x4f0b47||!Re(_0x4f0b47,void 0x0,_0x1a63de))return!0x1;const _0x4578b5=_0x1a63de['getSelectionAffectedTableCells'](_0x47c56e['document']['selection']);if(!_0x4578b5['length'])return!0x1;const _0x40c57c=_0x4578b5[0x0]['findAncestor']('table'),_0x5e5c63=_0x1a63de['getRowIndexes'](_0x4578b5),_0x5987d8=_0x1a63de['getColumnIndexes'](_0x4578b5),_0x59710c={'startRow':_0x5e5c63['first'],'endRow':_0x5e5c63['last'],'startColumn':_0x5987d8['first'],'endColumn':_0x5987d8['last']};return 0x1==_0x4578b5['length']&&(_0x59710c['endRow']+=_0x1a63de['getRows'](_0x4f0b47)-0x1,_0x59710c['endColumn']+=_0x1a63de['getColumns'](_0x4f0b47)-0x1),Re(_0x40c57c,_0x59710c,_0x1a63de);}(_0x17c923,_0x1100ca,_0x10b2de['model'],_0x1e2bb8,_0x55282f)&&(_0x58d909['stop'](),_0x2e3bde={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x10b2de['model']['change'](()=>{_0x10b2de['model']['insertContent'](_0x326462[0x0],_0x326462[0x1],_0x326462[0x2],{'forceDefaultExecution':!0x0});const _0x26f077=_0x36eeaa(),{rowInsertionRanges:_0x18be10,columnInsertionRanges:_0x1b0741,insertionRanges:_0x422de7,deletionRanges:_0xd9c061,cells:_0x2a6221}=_0x2e3bde;_0x18be10['length']&&_0x4e06b4['markMultiRangeInsertion'](_0x18be10,'tablePasteRow',{'tablePasteChainId':_0x26f077}),_0x1b0741['length']&&_0x4e06b4['markMultiRangeInsertion'](_0x1b0741,'tablePasteColumn',{'tablePasteChainId':_0x26f077}),_0x422de7['length']&&(_0x4e06b4['markMultiRangeInsertion'](_0x422de7,'tablePaste',{'tablePasteChainId':_0x26f077,'skipNestingCheck':!0x0}),_0x422de7['forEach'](_0x159fd2=>_0x159fd2['detach']?.())),_0xd9c061['length']&&(_0x4e06b4['markMultiRangeDeletion'](_0xd9c061,'tablePaste',{'tablePasteChainId':_0x26f077,'skipNestingCheck':!0x0}),_0xd9c061['forEach'](_0x25e209=>_0x25e209['detach']?.()));const _0x2ab347=_0x4e06b4['markMultiRangeBlockFormat'](_0x2a6221['map'](({element:_0x22d4cd})=>_0x22d4cd),{'formatGroupId':_0x36eeaa()},[],'tablePasteCell',{'tablePasteChainId':_0x26f077});if(_0x2ab347){const _0x28f4a4=_0x2ab347['getMarkers'](),_0x57d86e=[];for(const {element:_0x222a62,attributes:_0x31c291}of _0x2a6221){if(!_0x31c291)continue;const _0x56bfcb=_0x10b2de['model']['createRangeOn'](_0x222a62),_0x545ade=_0x28f4a4['find'](_0x511335=>_0x511335['getRange']()['isEqual'](_0x56bfcb));_0x545ade&&_0x57d86e['push']([_0x545ade['name'],_0x31c291]);}_0x57d86e['length']&&_0x2ab347['setAttribute']('markerAttributes',Object['fromEntries'](_0x57d86e));}_0x2e3bde=null;}));},{'priority':_0x1b23c8['high']+0xa}),_0x10b2de['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x515443,_0x578d77)=>{const [_0x4eb23a,_0x100adc,,_0x5104b4]=_0x578d77;if(!_0x2e3bde)return;_0x515443['stop']();const _0x49db7d=_0x4eb23a['cell'],_0x206981=_0x100adc,_0x295bbe=ke(_0x49db7d),_0xa072b2=ke(_0x206981);_0x515443['return']=_0x49db7d;let _0x413941=null,_0x69d044=null;if(_0xa072b2||_0x295bbe){if(_0x295bbe&&!_0xa072b2){_0x5104b4['remove'](_0x49db7d['getChild'](0x0));for(const _0x2344d4 of Array['from'](_0x206981['getChildren']()))_0x5104b4['insert'](_0x2344d4,_0x49db7d,'end');const _0x2a670f=_0x2e3bde['rowInsertionIndexes']['includes'](_0x4eb23a['row']),_0x3b524d=_0x2e3bde['columnInsertionIndexes']['includes'](_0x4eb23a['column']);_0x2a670f||_0x3b524d||(_0x413941=_0x5ed280['fromRange'](_0x5104b4['createRangeIn'](_0x49db7d)));}else _0xa072b2&&!_0x295bbe&&(_0x69d044=_0x5104b4['createRangeIn'](_0x49db7d));}else{const _0x47679d=_0x5104b4['createElement']('tableCellSuggestion'),_0x49ac9b=_0x5104b4['createElement']('tableCellSuggestion');_0x5104b4['wrap'](_0x5104b4['createRangeIn'](_0x49db7d),_0x49ac9b),_0x5104b4['insert'](_0x47679d,_0x49db7d,0x0);for(const _0x4fb7be of Array['from'](_0x206981['getChildren']()))_0x5104b4['insert'](_0x4fb7be,_0x47679d,'end');_0x413941=_0x5ed280['fromRange'](_0x5104b4['createRangeOn'](_0x47679d)),_0x69d044=_0x5ed280['fromRange'](_0x5104b4['createRangeOn'](_0x49ac9b));}const _0x4cafb8=Array['from'](_0x206981['getAttributes']())['filter'](([_0x2fafb2])=>Pe['includes'](_0x2fafb2));_0x2e3bde['cells']['push']({'element':_0x49db7d,'attributes':_0x4cafb8['length']?Object['fromEntries'](_0x4cafb8):null}),_0x413941&&_0x2e3bde['insertionRanges']['push'](_0x413941),_0x69d044&&_0x2e3bde['deletionRanges']['push'](_0x69d044);},{'priority':'high'}),_0x1e2bb8['on']('insertColumns',(_0x4b19fd,_0x7c3089)=>{const [_0x4c893b,_0x5a13bd={}]=_0x7c3089;if(!_0x2e3bde)return;const _0x515dbf=_0x5a13bd['at']||0x0,_0x1c9fe2=_0x5a13bd['columns']||0x1;_0x2e3bde['columnInsertionIndexes']=new Array(_0x1c9fe2)['fill'](_0x515dbf)['map']((_0x450237,_0x1a814b)=>_0x450237+_0x1a814b);for(const {cell:_0x13f496}of _0x1e2bb8['createTableWalker'](_0x4c893b,{'startColumn':_0x515dbf,'endColumn':_0x515dbf+_0x1c9fe2-0x1}))_0x2e3bde['columnInsertionRanges']['push'](_0x10b2de['model']['createRangeOn'](_0x13f496));},{'priority':'low'}),_0x1e2bb8['on']('insertRows',(_0x5a3c3a,_0x1a9639)=>{const [_0x2542f9,_0x508129={}]=_0x1a9639;if(!_0x2e3bde)return;const _0x2f7a8c=_0x508129['at']||0x0,_0x77a0c0=_0x508129['rows']||0x1;_0x2e3bde['rowInsertionIndexes']=new Array(_0x77a0c0)['fill'](_0x2f7a8c)['map']((_0x20c9c9,_0x3a2810)=>_0x20c9c9+_0x3a2810);for(const {cell:_0x4fc23f}of _0x1e2bb8['createTableWalker'](_0x2542f9,{'startRow':_0x2f7a8c,'endRow':_0x2f7a8c+_0x77a0c0-0x1}))_0x2e3bde['rowInsertionRanges']['push'](_0x10b2de['model']['createRangeOn'](_0x4fc23f));},{'priority':'low'}),_0x4e06b4['descriptionFactory']['registerDescriptionCallback'](_0x5d2df8=>{if(_0x5d2df8['subType']&&_0x5d2df8['subType']['startsWith']('tablePaste'))return _0x5d2df8['previous']?{}:{'type':'insertion','content':o(_0x10b2de['locale'],'*Replace\x20table\x20cells*')};});const _0x8b624a=()=>!0x1;for(const _0x532cde of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion',_0x532cde,'join',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('deletion',_0x532cde,'join',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x532cde,'join',_0x8b624a);_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a56ca,_0x53999f,_0x52cff3)=>{const _0x149083=_0x3a56ca['map'](_0x9df39=>_0x9df39['getContainedElement']())['filter'](_0x2fcafa=>_0x2fcafa),_0x13bc3a=new Map(_0x149083['map'](_0x3eb8e5=>[_0x3eb8e5,null]));if(_0x2e3bde){for(const {element:_0x3cdd55,attributes:_0x258ec2}of _0x2e3bde['cells'])_0x258ec2&&_0x13bc3a['set'](_0x3cdd55,_0x258ec2);}else{if(_0x52cff3&&_0x52cff3['markerAttributes'])for(const [_0x4a7f90,_0x566b43]of Object['entries'](_0x52cff3['markerAttributes'])){const _0x250049=_0x10b2de['model']['markers']['get'](_0x4a7f90),_0xb484a9=_0x250049?_0x250049['getRange']()['getContainedElement']():null;_0xb484a9&&_0x13bc3a['set'](_0xb484a9,_0x566b43);}}_0x10b2de['model']['change'](_0x31de14=>{for(const [_0x592f9b,_0x195855]of _0x13bc3a)_0x31de14['setAttributes']({...we,..._0x195855},_0x592f9b);});});const _0x166282=(_0x3b5a5a,_0x2090ce)=>{_0x4e06b4['_suggestionFactory']['registerCustomCallback'](_0x3b5a5a,'tablePaste',_0x2090ce,(_0x51b5fd,_0x489b27,_0x18fe4f)=>{_0x10b2de['model']['change'](_0x969b49=>{const _0x2031f8=[];for(const _0x14da27 of _0x51b5fd){const _0x477a92=_0x14da27['start']['nodeAfter'];_0x477a92['is']('element','tableCellSuggestion')&&_0x2031f8['push'](_0x477a92);}_0x4e06b4['_suggestionFactory']['getSuggestionCallback'](_0x3b5a5a,null,_0x2090ce)(_0x51b5fd,_0x489b27,_0x18fe4f);for(const _0xafa9ee of _0x2031f8)'$graveyard'!=_0xafa9ee['root']['rootName']&&_0x969b49['unwrap'](_0xafa9ee);});});};_0x166282('insertion','accept'),_0x166282('insertion','discard'),_0x166282('deletion','accept'),_0x166282('deletion','discard'),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4a143e=>{const _0x2cb21b=_0x4a143e['map'](_0x1dfbb5=>_0x1dfbb5['getContainedElement']()),_0xe2ebd4=_0x2cb21b[0x0]['findAncestor']('table'),{minRow:_0xd7ae27,maxRow:_0x49554c}=_0x1c29fc['_getCoordsForCells'](_0x2cb21b);_0x1e2bb8['removeRows'](_0xe2ebd4,{'at':_0xd7ae27,'rows':_0x49554c-_0xd7ae27+0x1});}),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x46ef48=>{const _0xab16e=_0x46ef48['map'](_0x1f9417=>_0x1f9417['getContainedElement']()),_0x2d95ae=_0xab16e[0x0]['findAncestor']('table'),{minColumn:_0x1c6462,maxColumn:_0x46d7c9}=_0x1c29fc['_getCoordsForCells'](_0xab16e);_0x1e2bb8['removeColumns'](_0x2d95ae,{'at':_0x1c6462,'columns':_0x46d7c9-_0x1c6462+0x1});});const _0x12cdab=(_0x46ee2a,_0xa7de5a)=>{if(!_0xa7de5a['subType']||!_0xa7de5a['subType']['startsWith']('tablePaste'))return;const _0xa10a7d=_0xa7de5a['attributes']['tablePasteChainId'],_0x3403a7=_0x4e06b4['getSuggestions']()['filter'](_0xbf09e2=>_0xbf09e2['isInContent']&&_0xbf09e2['attributes']&&_0xbf09e2['attributes']['tablePasteChainId']==_0xa10a7d);_0x3403a7['length']&&_0xa7de5a['getAllAdjacentSuggestions']()['length']!=_0x3403a7['length']&&_0x3403a7['reduce']((_0x2193fa,_0x6a4cc0)=>(_0x2193fa['next']=_0x6a4cc0,_0x6a4cc0['previous']=_0x2193fa,_0x6a4cc0));};function _0x4cf612(_0xe2b030,_0x4e17c2=!0x0){const {id:_0x561846,authorId:_0x5dd4fe}=_0x4e06b4['_splitMarkerName'](_0xe2b030['markerName']),_0xcd2d36=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d2f06=_0x4e06b4['activeMarkers']['includes'](_0xe2b030['markerName']);return _0x1d2f06&&_0xcd2d36['push']('ck-suggestion-marker--active'),{'classes':_0xcd2d36,'attributes':{'data-suggestion':_0x561846,'data-author-id':_0x5dd4fe},'priority':_0x1d2f06&&_0x4e17c2?0xbc2:0xbb8};}_0x4e06b4['on']('suggestionLoaded',_0x12cdab,{'priority':'high'}),_0x4e06b4['on']('suggestionUnloaded',_0x12cdab,{'priority':'high'}),_0x10b2de['model']['document']['registerPostFixer'](()=>{let _0x13664b=!0x1;const _0x2277b1=Array['from'](_0x10b2de['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45cf45,data:_0x2d8db9}of _0x2277b1){const {group:_0x320648,type:_0x162cfb,id:_0x436325}=_0x4e06b4['_splitMarkerName'](_0x45cf45);if('suggestion'!=_0x320648||'deletion'!=_0x162cfb||_0x2d8db9['oldRange'])continue;if(!_0x4e06b4['hasSuggestion'](_0x436325))continue;const _0x539d11=_0x4e06b4['getSuggestion'](_0x436325)['getRanges'](),_0x48ed27=_0x10b2de['plugins']['get']('Users')['me'];for(const _0x33468b of _0x4e06b4['getSuggestions']()){if(!_0x33468b['isInContent']||_0x33468b['author']!=_0x48ed27)continue;if('formatBlock'!=_0x33468b['type']||'tablePasteCell'!=_0x33468b['subType'])continue;if(_0x33468b['getRanges']()['every'](_0x30ee12=>_0x539d11['some'](_0x163838=>_0x163838['containsRange'](_0x30ee12,!0x0)))){for(const _0x27335a of _0x33468b['getAllAdjacentSuggestions']())_0x27335a['isInContent']&&(_0x27335a['discard'](),_0x13664b=!0x0);}}}return _0x13664b;}),_0x10b2de['model']['document']['registerPostFixer'](_0x42d073=>{const _0x474a6d=_0x10b2de['commands']['get']('redo');if(!_0x474a6d||!_0x474a6d['_createdBatches']['has'](_0x42d073['batch']))return!0x1;let _0x4c6f43=!0x1;const _0x3e7719=_0x10b2de['plugins']['get']('Users')['me'],_0x354e66=_0x10b2de['model']['document']['differ']['getChanges'](),_0x9e5bb8=Array['from'](_0x10b2de['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2042c9,data:_0x27254f})=>{const {group:_0x258a58,subType:_0x3c7c16,authorId:_0xaad714}=_0x4e06b4['_splitMarkerName'](_0x2042c9);return'suggestion'==_0x258a58&&'tablePaste'==_0x3c7c16&&_0xaad714==_0x3e7719['id']&&!_0x27254f['oldRange'];});for(const _0x55107e of _0x354e66){if('insert'!=_0x55107e['type']||'tableCellSuggestion'!=_0x55107e['name']||0x1!=_0x55107e['length'])continue;const _0x1c1d58=_0x42d073['createRange'](_0x55107e['position'],_0x55107e['position']['getShiftedBy'](0x1));if(!_0x9e5bb8['find'](({data:_0x4be02c})=>_0x4be02c['newRange']['isEqual'](_0x1c1d58))){for(const {name:_0x19709d,data:_0x1f7170}of _0x9e5bb8)if(_0x1c1d58['containsRange'](_0x1f7170['newRange'])){_0x42d073['updateMarker'](_0x19709d,{'range':_0x1c1d58}),_0x4c6f43=!0x0;break;}}}return _0x4c6f43;}),_0x10b2de['model']['document']['registerPostFixer'](_0x5bc6a8=>{let _0x4a3d95=!0x1;const _0xe7f285=_0x10b2de['plugins']['get']('Users')['me'],_0xbaf7d8=_0x4e06b4['getSuggestions']()['filter'](_0x379307=>_0x379307['isInContent']&&_0x379307['author']==_0xe7f285),_0x2f8f15=new Set(),_0x36424c=new Set();for(const _0x502ae8 of _0xbaf7d8)if('tablePaste'==_0x502ae8['subType'])for(const _0x4684b0 of _0x502ae8['getMarkers']()){const _0x1e9bf5=_0x4684b0['getRange']()['getContainedElement']();if(_0x1e9bf5){if(_0x1e9bf5['is']('element','tableCellSuggestion')&&ke(_0x1e9bf5)){_0x502ae8['removeMarker'](_0x4684b0['name']),_0x2f8f15['add'](_0x1e9bf5),_0x4a3d95=!0x0;const _0x12b9a3=_0x1e9bf5['nextSibling'],_0x51a83b=_0x1e9bf5['previousSibling'],_0x5a6bbb=_0x12b9a3&&_0x12b9a3['is']('element','tableCellSuggestion'),_0x3be51b=_0x51a83b&&_0x51a83b['is']('element','tableCellSuggestion');_0x5a6bbb&&!_0x2f8f15['has'](_0x12b9a3)&&_0x36424c['add'](_0x12b9a3),_0x3be51b&&!_0x2f8f15['has'](_0x51a83b)&&_0x36424c['add'](_0x51a83b);}else _0x1e9bf5['is']('element','paragraph')&&_0x1e9bf5['isEmpty']&&(_0x502ae8['removeMarker'](_0x4684b0['name']),_0x4a3d95=!0x0);}}else{if('tablePasteCell'==_0x502ae8['subType']){if(!_0x502ae8['attributes']||!_0x502ae8['attributes']['tablePasteChainId'])continue;const _0x54394a=_0x502ae8['attributes']['markerAttributes'];if(_0x54394a&&Object['keys'](_0x54394a)['length'])continue;const _0x34aa72=_0x502ae8['attributes']['tablePasteChainId'];let _0x513f92=!0x0,_0x152733=!0x0;for(const _0x3b5988 of _0xbaf7d8)if(_0x3b5988['subType']&&_0x3b5988['subType']['startsWith']('tablePaste')){if(!_0x3b5988['attributes']['tablePasteChainId']){_0x152733=!0x1;break;}if(_0x3b5988['id']!=_0x502ae8['id']&&_0x3b5988['attributes']['tablePasteChainId']==_0x34aa72){_0x513f92=!0x1;break;}}_0x152733&&_0x513f92&&(_0x502ae8['removeMarkers'](),_0x4a3d95=!0x0);}}for(const _0x12c93c of _0x2f8f15)_0x5bc6a8['remove'](_0x12c93c);for(const _0x126ad0 of _0x36424c)_0x5bc6a8['unwrap'](_0x126ad0);return _0x4a3d95;}),_0x10b2de['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4774eb=>_0x4cf612(_0x4774eb),'converterPriority':'high'}),_0x10b2de['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc3a82,_0x624a66)=>_0x624a66['options']['showSuggestionHighlights']?_0x4cf612(_0xc3a82,!0x1):null,'converterPriority':'high'});const _0x324f96=_0x10b2de['editing']['view'];this['listenTo'](_0x324f96['document'],'clipboardOutput',(_0x1030b0,_0x257945)=>{const _0x286268=[];for(const _0x15f72e of _0x324f96['createRangeIn'](_0x257945['content'])['getItems']())_0x15f72e['is']('element','suggestion-td')&&_0x286268['push'](_0x15f72e);_0x324f96['change'](_0x1d6124=>{for(const _0xbea894 of _0x286268)_0x1d6124['move'](_0x1d6124['createRangeIn'](_0xbea894),_0x1d6124['createPositionBefore'](_0xbea894)),_0x1d6124['remove'](_0xbea894);});});}}function ke(_0xcfe4bc){if(_0xcfe4bc['isEmpty'])return!0x0;const _0x5b515d=_0xcfe4bc['getChild'](0x0);return _0x5b515d['is']('element','paragraph')&&_0x5b515d['isEmpty'];}function Re(_0x4f4045,_0x581ac0={},_0x2b6926){for(const {isAnchor:_0x5959ee,cellHeight:_0x3f4700,cellWidth:_0x3789df}of _0x2b6926['createTableWalker'](_0x4f4045,{'includeAllSlots':!0x0,..._0x581ac0}))if(!_0x5959ee||0x1!=_0x3f4700||0x1!=_0x3789df)return!0x1;return!0x0;}class Nt extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x287f1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x287f1d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x287f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x287f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x287f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x287f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x287f1d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e6855,_0x225c40){const _0x4408b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9ca7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34b86f=_0x225c40['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x26055c=_0x1b9ca7['getColumnGroupElement'](_0x34b86f);let _0x48e201=_0x26055c?_0x1b9ca7['getTableColumnsWidths'](_0x26055c):null,_0x49da4f=_0x34b86f['getAttribute']('tableWidth')||null;const _0x3f1fba=_0x225c40['tableWidth']||_0x49da4f,_0x253721=_0x225c40['columnWidths']||_0x48e201,_0x3ba30e=this['editor']['plugins']['get']('Users')['me'];for(const _0x11f43d of _0x4408b7['getSuggestions']()){const _0x52cc6a=_0x11f43d['getContainedElement']();if('resizeTable'===_0x11f43d['subType']&&_0x52cc6a===_0x34b86f){_0x11f43d['author']!==_0x3ba30e&&_0x11f43d['discard']();const _0x496638=_0x11f43d['data']['commandParams'];_0x49da4f=_0x496638[0x0]['tableWidth'],_0x48e201=_0x496638[0x0]['columnWidths'];break;}}_0x5e6855({'table':_0x34b86f,'tableWidth':_0x3f1fba,'columnWidths':_0x253721}),_0x4408b7['markBlockFormat'](_0x34b86f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x49da4f,'columnWidths':_0x48e201}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x485cd9){if('formatBlock'!=_0x485cd9['type']&&'formatInline'!=_0x485cd9['type'])return;const {data:_0x1e9419}=_0x485cd9;if(_0x1e9419&&'resizeTable'===_0x1e9419['formatGroupId']){const _0x5e094b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5e094b)};}}}class Dt extends _0x3cc490{['afterInit'](){const _0x2b5dc2=this['editor'];_0x2b5dc2['plugins']['has']('Template')&&_0x2b5dc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3cc490{['afterInit'](){const _0x348327=this['editor'];if(!_0x348327['commands']['get']('insertTableOfContents'))return;_0x348327['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d8b7d=_0x348327['plugins']['get']('TrackChangesEditing'),_0x5a039a=_0x348327['locale'];_0x4d8b7d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bad47=>o(_0x5a039a,'ELEMENT_TABLE_OF_CONTENTS',_0x3bad47));}}class $t extends _0x3cc490{['afterInit'](){const _0x44016c=this['editor'];if(!_0x44016c['plugins']['has']('Title'))return;const _0x44f689=_0x44016c['plugins']['get']('TrackChangesEditing');_0x44f689['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44016c['locale'],'ELEMENT_TITLE')),_0x44016c['model']['document']['registerPostFixer'](_0x573634=>{let _0x5b8727=!0x1;const _0x455b5c=Array['from'](_0x44016c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fc4b5,data:_0xdc8e6f}of _0x455b5c){const {group:_0x14ab63}=_0x44f689['_splitMarkerName'](_0x2fc4b5);if('suggestion'!==_0x14ab63||!_0xdc8e6f['newRange'])continue;const _0x14a6af=_0xdc8e6f['newRange'],_0x4f8185=_0x14a6af['end']['nodeBefore'];if(!_0x4f8185||!_0x4f8185['is']('element','title-content'))continue;if(!_0x14a6af['start']['isTouching'](_0x14a6af['end']))continue;const _0x2adccb=_0x44016c['model']['schema']['getNearestSelectionRange'](_0x14a6af['end'],'forward');if(_0x2adccb&&_0x2adccb['isCollapsed']){const _0x52796f=_0x573634['createRange'](_0x14a6af['start'],_0x2adccb['start']);_0x52796f['isEqual'](_0x14a6af)||(_0x573634['updateMarker'](_0x2fc4b5,{'range':_0x52796f}),_0x5b8727=!0x0);}_0x5b8727||(_0x573634['removeMarker'](_0x2fc4b5),_0x5b8727=!0x0);}return _0x5b8727;});}}class Bt extends _0x3cc490{['afterInit'](){const _0x24df61=this['editor'],_0x4d626d=_0x24df61['plugins']['get']('TrackChangesEditing');_0x24df61['plugins']['has']('UndoEditing')&&(_0x4d626d['enableCommand']('undo'),_0x4d626d['enableCommand']('redo'));}}class xt extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x53b8ba=this['editor'];if(!_0x53b8ba['plugins']['has']('TableCaptionEditing'))return;_0x53b8ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3cc490{['tableProperties'];['tableCellProperties'];constructor(_0x54bf09){super(_0x54bf09),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x592d18=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x37b54e of this['tableProperties'])_0x592d18['enableCommand'](_0x37b54e,(_0x4acc02,_0x9d05a7)=>{const _0x40d45a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x37b54e,[_0x40d45a],this['tableProperties'],'tableProperties',_0x4acc02,_0x9d05a7);});_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592d18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1adcca,_0x2f547b)=>this['handleDiscardAction'](this['tableProperties'],_0x1adcca,_0x2f547b)),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x35da41 of this['tableCellProperties'])_0x592d18['enableCommand'](_0x35da41,(_0x317a00,_0x50bbe8)=>{const _0x102ea7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x35da41,_0x102ea7,this['tableCellProperties'],'tableCellProperties',_0x317a00,_0x50bbe8);});_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592d18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4a2e1c,_0x46a326)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4a2e1c,_0x46a326)),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x592d18['descriptionFactory']['registerDescriptionCallback'](_0x855126=>this['handleSuggestionDescription'](_0x855126));}['_handlePropertyChange'](_0x4f16dc,_0x330964,_0x3c1740,_0x1cd8b3,_0x119697,_0x2fc691){const _0x27cdf8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2fc691['batch'],()=>{for(const _0x25878e of _0x330964){if(this['_getSuggestion'](_0x25878e,_0x1cd8b3))_0x119697(_0x2fc691);else{const _0x3ea591={};for(const _0x26a465 of _0x3c1740){const _0x11c37e=_0x25878e['getAttribute'](_0x26a465);void 0x0!==_0x11c37e&&(_0x3ea591[_0x26a465]=_0x11c37e);}_0x119697(_0x2fc691),_0x27cdf8['markBlockFormat'](_0x25878e,{'commandParams':[_0x3ea591]},[],_0x1cd8b3);}}});}['handleDiscardAction'](_0x16dee3,_0x368192,_0x1949eb){const _0x2e9b95=_0x368192[0x0]['start']['nodeAfter'],_0x277a4b=_0x1949eb['commandParams'][0x0];this['editor']['model']['change'](_0x41de61=>{for(const _0x1571b2 of _0x16dee3)void 0x0!==_0x277a4b[_0x1571b2]?_0x41de61['setAttribute'](_0x1571b2,_0x277a4b[_0x1571b2],_0x2e9b95):_0x41de61['removeAttribute'](_0x1571b2,_0x2e9b95);});}['handleSuggestionDescription'](_0x12ab27){if(_0x12ab27['data'])switch(_0x12ab27['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'](_0x35a743,_0x59d9b4){const _0xf46a99=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x29e359 of _0xf46a99['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a5a51=_0x29e359['getContainedElement']();if(_0x29e359['subType']===_0x59d9b4&&_0x3a5a51===_0x35a743)return _0x29e359;}return null;}}const m='$elementName';class p extends _0x3cc490{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x854ae2,_0x28f729,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x52bc4b){function _0x38b421(_0x342707){return _0x342707['map'](_0xb51d5c=>String['fromCharCode'](_0xb51d5c))['join']('');}super(_0x52bc4b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ecfde,_0x36dcf0,_0x404032,_0x25c097)=>{this['_model']['change'](()=>{for(const _0x3cc2d9 of[..._0x25c097,..._0x404032])this['_model']['markers']['has'](_0x3cc2d9)&&_0x52bc4b['editing']['reconvertMarker'](_0x3cc2d9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x52bc4b['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(),_0x52bc4b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x52bc4b['config']['get']('trackChanges.trackFormatChanges'),_0x52bc4b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x52bc4b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x52bc4b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x38b421([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x38b421([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x30]);}['init'](){const _0x2606bf=this['editor'],_0x6be350=(_0x127f6f,_0x5af86c)=>{if('attribute'!=_0x127f6f)return'ck-suggestion-marker-'+_0x127f6f;const _0x4bc80d=_0x5af86c['split']('|')[0x0];return this['_isBlockAttribute'](_0x4bc80d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2606bf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1790ce=>{const {id:_0xcde600,authorId:_0x22c2bf,type:_0x84687a,subType:_0x45970f}=this['_splitMarkerName'](_0x1790ce['markerName']),_0x24b8b4=['ck-suggestion-marker',_0x6be350(_0x84687a,_0x45970f)];let _0x4c2ef2=0xbb8;return this['activeMarkers']['includes'](_0x1790ce['markerName'])&&(_0x24b8b4['push']('ck-suggestion-marker--active'),_0x4c2ef2=0xbc2),'deletion'==_0x84687a&&(_0x4c2ef2+=0x5),{'classes':_0x24b8b4,'attributes':{'data-suggestion':_0xcde600,'data-author-id':_0x22c2bf},'priority':_0x4c2ef2};}}),_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x79b5c6=>{_0x79b5c6['on']('addMarker:suggestion',(_0x4f83f0,_0x2a792f,_0x446aff)=>{if(!_0x446aff['options']['showSuggestionHighlights'])return;const _0x43631d=_0x2a792f['item'];if(!_0x43631d)return;const _0x5c4459=_0x446aff['mapper']['toViewElement'](_0x43631d);_0x2606bf['model']['schema']['isObject'](_0x43631d)&&_0x5c4459&&!_0x5c4459['getCustomProperty']('widget')&&_0x5c4459['is']('containerElement')&&_0x3c7c86(_0x5c4459,_0x446aff['writer']);},{'priority':'high'});}),_0x2606bf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2cb047,_0x4e6047)=>{if(!_0x4e6047['options']['showSuggestionHighlights'])return null;const {type:_0x59ea7b,subType:_0x4cfe58}=this['_splitMarkerName'](_0x2cb047['markerName']);return{'classes':['ck-suggestion-marker',_0x6be350(_0x59ea7b,_0x4cfe58)],'priority':0xbb8};}});const _0x7bd4b0=({showActiveMarkers:_0x3378e7=!0x0,isAttributeSuggestion:_0x2b8814=!0x1}={})=>(_0x48fadf,_0x4e4d2f,_0x49ff03)=>{if(!_0x4e4d2f['item'])return;const {id:_0x2b819b,authorId:_0xb04c8e}=this['_splitMarkerName'](_0x4e4d2f['markerName']);if(_0x2b8814){const _0x494698=this['_suggestions']['get'](_0x2b819b),_0x1417f8=this['_getAttributeKey'](_0x494698);if(!this['_isBlockAttribute'](_0x1417f8))return;}if(_0x4e4d2f['item']['is']('selection'))return void _0x49ff03['consumable']['consume'](_0x4e4d2f['item'],_0x48fadf['name']);const _0x578ea7=_0x49ff03['mapper']['toViewElement'](_0x4e4d2f['item']);if(_0x4e4d2f['item']['is']('element')&&_0x2606bf['model']['schema']['isBlock'](_0x4e4d2f['item'])&&!_0x578ea7['getCustomProperty']('addHighlight')){_0x49ff03['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x578ea7),_0x49ff03['writer']['setAttribute']('data-suggestion',_0x2b819b,_0x578ea7),_0x49ff03['writer']['setAttribute']('data-author-id',_0xb04c8e,_0x578ea7),_0x49ff03['mapper']['bindElementToMarker'](_0x578ea7,_0x4e4d2f['markerName']),_0x3378e7&&(this['activeMarkers']['includes'](_0x4e4d2f['markerName'])?_0x49ff03['writer']['addClass']('ck-suggestion-marker--active',_0x578ea7):_0x49ff03['writer']['removeClass']('ck-suggestion-marker--active',_0x578ea7));for(const _0x2ba146 of _0x2606bf['model']['createRangeIn'](_0x4e4d2f['item'])['getItems']())_0x49ff03['consumable']['consume'](_0x2ba146,_0x48fadf['name']);_0x49ff03['consumable']['consume'](_0x4e4d2f['item'],_0x48fadf['name']);}};_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x22e057=>{_0x22e057['on']('addMarker:suggestion:formatBlock',(_0x25e765,_0x36ce20,_0x527213)=>{_0x527213['options']['showSuggestionHighlights']&&_0x7bd4b0({'showActiveMarkers':!0x1})(_0x25e765,_0x36ce20,_0x527213);},{'priority':'highest'});}),_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x19c91c=>{_0x19c91c['on']('addMarker:suggestion:attribute',(_0xbb004,_0x393307,_0x4f0e10)=>{_0x4f0e10['options']['showSuggestionHighlights']&&_0x7bd4b0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xbb004,_0x393307,_0x4f0e10);},{'priority':'highest'});}),_0x2606bf['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1bb3f4,_0x45ecb1)=>_0x45ecb1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1bb3f4['substr'](0xb)}}),_0x2606bf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32b2a5,{writer:_0x32646d})=>{let _0x528d8a='suggestion:'+_0x32b2a5['getAttribute']('suggestion-type')+':'+_0x32b2a5['getAttribute']('id');return _0x32b2a5['getAttribute']('marker-count')&&(_0x528d8a+=':'+_0x32b2a5['getAttribute']('marker-count')),_0x32646d['createElement']('$marker',{'data-name':_0x528d8a});}}),_0x2606bf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x367f6f=>{_0x367f6f['on']('addMarker:suggestion:formatBlock',_0x7bd4b0(),{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x24c902=>{_0x24c902['on']('addMarker:suggestion:attribute',_0x7bd4b0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x242a52=>{_0x242a52['on']('removeMarker:suggestion:formatBlock',(_0x502430,_0x164ce1,_0x313dfc)=>{const _0xf32f93=_0x313dfc['mapper']['markerNameToElements'](_0x164ce1['markerName']);if(_0xf32f93){for(const _0x92b878 of _0xf32f93)_0x92b878['getCustomProperty']('addHighlight')||(_0x313dfc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x92b878),_0x313dfc['writer']['removeAttribute']('data-suggestion',_0x92b878),_0x313dfc['writer']['removeAttribute']('data-author-id',_0x92b878),_0x313dfc['mapper']['unbindElementFromMarkerName'](_0x92b878,_0x164ce1['markerName']));}},{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x3d2674=>{_0x3d2674['on']('removeMarker:suggestion:attribute',(_0x296ca9,_0x5b7991,_0x38777e)=>{const _0x50f889=_0x38777e['mapper']['markerNameToElements'](_0x5b7991['markerName']);if(!_0x50f889)return;const {id:_0x1cdc53}=this['_splitMarkerName'](_0x5b7991['markerName']),_0x5861ac=this['_suggestions']['get'](_0x1cdc53),_0xb3d360=this['_getAttributeKey'](_0x5861ac);if(this['_isBlockAttribute'](_0xb3d360)){for(const _0x45b5d3 of _0x50f889)_0x45b5d3['getCustomProperty']('addHighlight')||(_0x38777e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45b5d3),_0x38777e['writer']['removeAttribute']('data-suggestion',_0x45b5d3),_0x38777e['writer']['removeAttribute']('data-author-id',_0x45b5d3),_0x38777e['mapper']['unbindElementFromMarkerName'](_0x45b5d3,_0x5b7991['markerName']));}},{'priority':'high'});}),_0x2606bf['model']['document']['registerPostFixer'](_0x54c645=>{let _0x12f99e=!0x1;const _0x227126=Array['from'](_0x2606bf['model']['document']['differ']['getChangedMarkers']()),_0x5d540f=new Set();for(const {name:_0x5d9a2c,data:_0x1e60a7}of _0x227126){const {group:_0x8e0714,type:_0x211892,subType:_0x5dec43,id:_0x5466c8}=this['_splitMarkerName'](_0x5d9a2c);if('suggestion'!==_0x8e0714)continue;const _0x259edf=this['_suggestions']['get'](_0x5466c8);if(null!=_0x1e60a7['newRange']){'formatInline'==_0x211892&&(_0x12f99e=_0x12f99e||Ut(_0x1e60a7['newRange'],_0x5d9a2c,_0x54c645,_0x2606bf['model']['schema']));const _0x1abc95='attribute'==_0x211892&&this['_isBlockAttribute'](_0x5dec43['split']('|')[0x0]);if(_0x1e60a7['newRange']['isCollapsed']||'$graveyard'==_0x1e60a7['newRange']['root']['rootName']||'formatBlock'==_0x211892&&!Ft(_0x1e60a7['newRange'])||_0x1abc95&&!Ft(_0x1e60a7['newRange'])||'deletion'==_0x211892&&!(!Vt(_0x28d8d8=_0x1e60a7['newRange'])&&!function(_0x4d8287){return _0x4d8287['start']['parent']==_0x4d8287['end']['nodeBefore']&&_0x4d8287['start']['isAtEnd'];}(_0x28d8d8)))_0x54c645['removeMarker'](_0x5d9a2c),_0x12f99e=!0x0;else{if(!_0x259edf||!_0x259edf['isInContent'])continue;if(_0x1e60a7['newRange']&&_0x1e60a7['oldRange']&&_0x1e60a7['newRange']['isEqual'](_0x1e60a7['oldRange']))continue;_0x5d540f['add'](_0x259edf);}}}var _0x28d8d8;return _0x5d540f['size']>0x0&&(_0x12f99e=!!this['_joinWithAdjacentSuggestions'](_0x5d540f)||_0x12f99e),_0x12f99e;}),_0x2606bf['model']['document']['registerPostFixer'](_0x7703db=>{let _0x2d63b0=!0x1;for(const _0x3dad5f of _0x2606bf['model']['document']['differ']['getChanges']())if('insert'==_0x3dad5f['type'])for(const _0x176c05 of this['_suggestions']['values']()){if(_0x176c05['isMultiRange']||!_0x176c05['isInContent'])continue;const _0x5dddb7='formatBlock'==_0x176c05['type'],_0x27e207=this['_getAttributeKey'](_0x176c05),_0x4c92a7=_0x27e207&&this['_isBlockAttribute'](_0x27e207);if(!_0x5dddb7&&!_0x4c92a7)continue;const _0x39be37=_0x176c05['getFirstRange']();if(_0x39be37['start']['parent']!=_0x39be37['end']['parent']&&!_0x39be37['end']['isAtEnd']){const _0x2239b4=_0x2606bf['model']['createPositionAt'](_0x39be37['start']['nodeAfter'],'end'),_0xd4cc6a=_0x2606bf['model']['createRange'](_0x39be37['start'],_0x2239b4);_0x7703db['updateMarker'](_0x176c05['getFirstMarker'](),{'range':_0xd4cc6a}),_0x2d63b0=!0x0;}}return _0x2d63b0;}),_0x2606bf['model']['document']['registerPostFixer'](_0xb38e34=>this['_processAttributeChanges'](_0xb38e34)),_0x2606bf['model']['document']['registerPostFixer'](_0x254a14=>!_0x254a14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x254a14)),_0x2606bf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2606bf['model']['document']['on']('change:data',(_0x2e398b,_0x5a1e59)=>{if(!_0x5a1e59['isLocal']||_0x5a1e59['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x45bfb2=_0x2606bf['model']['document']['differ']['getChanges']();if(0x0==_0x45bfb2['length'])return;const _0x154f1f=[],_0x5009c6=_0x45bfb2['filter'](_0x30e77f=>'attribute'==_0x30e77f['type']),_0x27822b=_0x45bfb2['filter'](_0x16698c=>'insert'==_0x16698c['type']&&'$text'!=_0x16698c['name']);for(const _0x3ed7ea of _0x5009c6)this['_isRegisteredAttribute'](_0x3ed7ea['attributeKey'])&&_0x154f1f['push']({'key':_0x3ed7ea['attributeKey'],'newValue':_0x3ed7ea['attributeNewValue'],'oldValue':_0x3ed7ea['attributeOldValue'],'range':Pt(_0x3ed7ea['range'],_0x2606bf['model'])});for(const _0x16304a of _0x27822b){if('rename'!=_0x16304a['action']&&'refresh'!=_0x16304a['action'])continue;const _0x423396=Lt(_0x16304a['position']['nodeAfter'],_0x2606bf['model']),_0x5a4e4f=_0x16304a['before'];'rename'==_0x16304a['action']&&_0x154f1f['push']({'key':m,'newValue':_0x16304a['name'],'oldValue':_0x5a4e4f['name'],'range':_0x423396});for(const [_0x4b1a4c,_0x5141a5]of _0x5a4e4f['attributes']){if(!this['_isRegisteredAttribute'](_0x4b1a4c))continue;const _0x4617d8=_0x16304a['attributes']['get'](_0x4b1a4c);_0x5141a5!==_0x4617d8&&_0x154f1f['push']({'key':_0x4b1a4c,'newValue':_0x4617d8,'oldValue':_0x5141a5,'range':_0x423396});}for(const [_0x13bae3,_0x94049e]of _0x16304a['attributes'])this['_isRegisteredAttribute'](_0x13bae3)&&(_0x5a4e4f['attributes']['has'](_0x13bae3)||_0x154f1f['push']({'key':_0x13bae3,'newValue':_0x94049e,'oldValue':null,'range':_0x423396}));}0x0!=_0x154f1f['length']&&_0x2606bf['model']['enqueueChange'](_0x5a1e59,_0x4d5b48=>{const _0x99506a=_0x36eeaa();for(const {range:_0x42f366,key:_0x6f9ce5,oldValue:_0x5edb39,newValue:_0x160091}of _0x154f1f)this['markAttributeChange'](_0x42f366,_0x6f9ce5,_0x5edb39,_0x160091,{'groupId':_0x99506a});this['_reduceExistingSuggestions'](_0x4d5b48,_0x154f1f);});},{'priority':'lowest'}),_0x2606bf['model']['markers']['on']('update:suggestion',(_0x510d56,_0x17b05b,_0x4a83f7)=>{if(null==_0x4a83f7){const {id:_0x3240cd}=this['_splitMarkerName'](_0x17b05b['name']),_0x2e46fb=this['_suggestions']['get'](_0x3240cd);_0x2e46fb&&_0x2e46fb['addMarkerName'](_0x17b05b['name']);}}),_0x2606bf['model']['document']['on']('change:data',()=>{const _0x3a07bd=Array['from'](_0x2606bf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x292d5c=>'suggestion'===this['_splitMarkerName'](_0x292d5c['name'])['group']);if(0x0===_0x3a07bd['length'])return;_0x3a07bd['sort']((_0x580dd7,_0x10901d)=>{const _0x2f9372=_0x580dd7['data']['oldRange'],_0x3e3569=_0x10901d['data']['oldRange'];return null===_0x2f9372&&null===_0x3e3569?0x0:null===_0x2f9372&&null!==_0x3e3569?-0x1:null!==_0x2f9372&&null===_0x3e3569?0x1:_0x2f9372['start']['isBefore'](_0x3e3569['start'])?-0x1:0x1;});const _0xf6412e=new Set(),_0x195e23=new Set();for(const {name:_0x230b5c,data:_0xd31879}of _0x3a07bd){const {id:_0x4e60b9}=this['_splitMarkerName'](_0x230b5c);if(null===_0xd31879['oldRange']){const _0x4fd512=this['_handleNewSuggestionMarker'](_0x230b5c);_0x195e23['add'](_0x4fd512);}else{const _0x354f86=this['_suggestions']['get'](_0x4e60b9);null!==_0xd31879['newRange']||_0x354f86['isInContent']?(_0xf6412e['add'](_0x354f86['head']),_0x195e23['add'](_0x354f86)):this['_removeSuggestion'](_0x354f86);}}_0x195e23['size']>0x0&&this['_refreshSuggestionsChain'](_0x195e23);for(const _0x5bdee5 of _0xf6412e)this['fire']('suggestionChanged',_0x5bdee5);}),_0x2606bf['model']['on']('applyOperation',(_0x3e9603,_0x34a192)=>{const _0x2b693e=_0x34a192[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b693e['isDocumentOperation'])return;if(_0x2b693e['batch']['isUndo']||!_0x2b693e['batch']['isLocal'])return;let _0x389f1b,_0x524acd;switch(_0x2b693e['type']){case'insert':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['position']),_0x524acd=_0x389f1b['getShiftedBy'](_0x2b693e['howMany']);break;case'split':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['splitPosition']),_0x524acd=_0x2606bf['model']['createPositionAt'](_0x2b693e['moveTargetPosition']);break;case'move':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['targetPosition']),_0x524acd=_0x389f1b['getShiftedBy'](_0x2b693e['howMany']);break;default:return;}const _0x484936=_0x2606bf['model']['createRange'](_0x389f1b,_0x524acd);_0x2606bf['model']['change'](()=>{for(const {suggestion:_0x44b49b,meta:_0x44ba77}of this['_findSuggestions'](_0x484936)){if(_0x44b49b['isMultiRange'])continue;if('formatInline'==_0x44b49b['type'])continue;const _0x5bfa56=this['_getAttributeKey'](_0x44b49b);if(_0x5bfa56&&this['_isBlockAttribute'](_0x5bfa56)&&'split'!=_0x2b693e['type'])continue;const _0x25d67c=_0x44b49b['data']&&_0x44b49b['data']['multipleBlocks'];('formatBlock'!=_0x44b49b['type']||'split'==_0x2b693e['type']&&!_0x25d67c)&&(_0x44ba77['containsRangeInObject']||'insertion'==_0x44b49b['type']&&_0x44ba77['isOwn']||_0x44b49b['getFirstRange']()['containsRange'](_0x484936)&&this['_breakSuggestionMarker'](_0x44b49b,_0x389f1b,_0x524acd));}});},{'priority':'lowest'}),_0x2606bf['model']['on']('deleteContent',(_0x5d13b8,_0x2bce3d)=>{const _0x23592f=_0x2bce3d[0x0],_0x5ff737=_0x2bce3d[0x1];if(_0x5ff737&&_0x5ff737['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23592f['isCollapsed'])return;const _0x26cfe3=_0x2606bf['model']['schema'],{start:_0x536b9d,end:_0x4334d6}=_0x23592f['getFirstRange'](),_0x3978ec=_0x536b9d['nodeAfter']&&_0x26cfe3['isLimit'](_0x536b9d['nodeAfter'])?null:_0x26cfe3['getNearestSelectionRange'](_0x536b9d,'forward'),_0x7acfab=_0x4334d6['nodeBefore']&&_0x26cfe3['isLimit'](_0x4334d6['nodeBefore'])?null:_0x26cfe3['getNearestSelectionRange'](_0x4334d6,'backward'),_0x3177a4=_0x2606bf['model']['createRange'](_0x3978ec?_0x3978ec['start']:_0x536b9d,_0x7acfab?_0x7acfab['end']:_0x4334d6);_0x2606bf['model']['change'](_0x15b7f4=>{this['markDeletion'](_0x3177a4);const _0x553e3b=_0x2606bf['model']['schema']['getNearestSelectionRange'](_0x3177a4['start']);_0x23592f['is']('documentSelection')?_0x15b7f4['setSelection'](_0x553e3b):_0x23592f['setTo'](_0x553e3b);}),_0x5d13b8['stop']();},{'priority':_0x1b23c8['normal']+0xa}),_0x2606bf['model']['on']('insertContent',(_0xbea696,_0x1a40b3)=>{const _0x540892=_0x1a40b3[_0x1a40b3['length']-0x1];_0x540892&&_0x540892['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2606bf['model']['change'](()=>{let _0x3cc32b=_0x2606bf['model']['insertContent'](_0x1a40b3[0x0],_0x1a40b3[0x1],_0x1a40b3[0x2],{'forceDefaultExecution':!0x0});if(!_0x3cc32b)return;_0xbea696['return']=_0x3cc32b['clone']();const _0x1f2884=_0x3cc32b['end']['nodeBefore'],_0x4e5c3a=_0x2606bf['model']['schema'];_0x1f2884&&_0x4e5c3a['isBlock'](_0x1f2884)&&!_0x4e5c3a['isObject'](_0x1f2884)&&(_0x3cc32b=_0x2606bf['model']['createRange'](_0x3cc32b['start'],_0x2606bf['model']['createPositionAt'](_0x1f2884,'end'))),this['markInsertion'](_0x3cc32b);}),_0xbea696['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a5baf=new x(_0x2606bf,this['_suggestions']);_0x2606bf['commands']['add']('acceptSuggestion',_0x1a5baf),this['enableCommand']('acceptSuggestion');const _0x42d2c0=new R(_0x2606bf,this['_suggestions']);_0x2606bf['commands']['add']('discardSuggestion',_0x42d2c0),this['enableCommand']('discardSuggestion'),_0x2606bf['commands']['add']('acceptAllSuggestions',new E(_0x2606bf,_0x1a5baf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2606bf['commands']['add']('discardAllSuggestions',new E(_0x2606bf,_0x42d2c0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2606bf['commands']['add']('acceptSelectedSuggestions',new O(_0x2606bf,_0x1a5baf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2606bf['commands']['add']('discardSelectedSuggestions',new O(_0x2606bf,_0x42d2c0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x375105=_0x2606bf['plugins']['get']('CommentsRepository');this['listenTo'](_0x375105,'addComment',(_0x4d4568,{threadId:_0x3e6519})=>{const _0x3bb74f=this['_suggestions']['get'](_0x3e6519);_0x3bb74f&&_0x3bb74f['commentThread']&&0x1===_0x3bb74f['commentThread']['length']&&this['_updateSuggestionData'](_0x3e6519,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x375105,'removeComment',(_0x385952,{threadId:_0x5a4716})=>{const _0x129c1c=this['_suggestions']['get'](_0x5a4716);_0x129c1c&&_0x129c1c['commentThread']&&!_0x129c1c['commentThread']['length']&&this['_updateSuggestionData'](_0x5a4716,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48fc96){if(this['_adapter'])throw new _0x1e75e0('track-changes-adapter-already-set',this);this['_adapter']=_0x48fc96;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6ce809=!0x1,toJSON:_0x53ce74=!0x1}={}){const _0x943f89=[];for(const _0x3579c4 of this['_suggestions']['values']())_0x6ce809&&!_0x3579c4['isInContent']||_0x943f89['push'](_0x3579c4);return _0x53ce74?_0x943f89['map'](_0x1225f2=>_0x1225f2['toJSON']()):_0x943f89;}['getSuggestion'](_0x4acf7e){const _0x5c9261=this['_suggestions']['get'](_0x4acf7e);if(!_0x5c9261)throw new _0x1e75e0('track-changes-suggestion-not-found',this);return _0x5c9261;}['hasSuggestion'](_0x4d4da7){return this['_suggestions']['has'](_0x4d4da7);}['addSuggestionData'](_0x2a46a8){const {authorId:_0x5cb8f,id:_0x49ddf0,attributes:_0x4e76a9}=_0x2a46a8,[_0x2d0e94,_0x5331a4]=_0x2a46a8['type']['split'](':'),_0x1d4404=this['_suggestions']['get'](_0x49ddf0)||this['_createSuggestion'](_0x2d0e94,_0x5331a4,_0x49ddf0,_0x5cb8f,_0x4e76a9);if(this['_addThreadToSuggestion'](_0x1d4404),this['_checkSuggestionCorrectness'](_0x1d4404,_0x2d0e94,_0x5331a4||null,_0x5cb8f),_0x1d4404['createdAt']=_0x2a46a8['createdAt'],_0x1d4404['_isDataLoaded']=!0x0,_0x4e76a9&&_0x4e76a9['@external']){const _0x302c7c=_0x4e76a9['@external'],_0x547e1a=this['_getExternalAuthor'](_0x302c7c['authorName']);_0x1d4404['authoredAt']=_0x302c7c['createdAt'],_0x1d4404['author']=_0x547e1a,_0x1d4404['isExternal']=!0x0;}else _0x1d4404['authoredAt']=_0x2a46a8['createdAt'];switch(_0x2a46a8['data']&&(_0x1d4404['data']=_0x2a46a8['data']),_0x2a46a8['attributes']&&(_0x1d4404['attributes']=_0x2a46a8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d4404['_saved']=!0x0),this['_suggestionState']['get'](_0x1d4404)){case'notReady':this['_suggestionState']['set'](_0x1d4404,'dataReady');break;case'markerReady':_0x1d4404['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d4404])),this['_refreshSuggestionsChain'](new Set([_0x1d4404])),this['_suggestionState']['set'](_0x1d4404,'ready'),this['fire']('suggestionLoaded',_0x1d4404)):this['_suggestionState']['set'](_0x1d4404,'removed');}return _0x1d4404;}['acceptSuggestion'](_0x2bae40){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1fddb4 of _0x2bae40['getAllAdjacentSuggestions']())_0x1fddb4['accept']();});});}['discardSuggestion'](_0x3a5acf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15e8cb of _0x3a5acf['getAllAdjacentSuggestions']())_0x15e8cb['discard']();});});}['enableCommand'](_0x3ce07a,_0x335b92){const _0x3be37f=this['editor']['commands']['get'](_0x3ce07a);if(!_0x3be37f)throw new _0x1e75e0('track-changes-command-not-found',this,{'commandName':_0x3ce07a});if(this['_enabledCommands']['has'](_0x3be37f))throw new _0x1e75e0('track-changes-enable-command-twice',this,{'commandName':_0x3ce07a});this['_enabledCommands']['add'](_0x3be37f),_0x335b92&&_0x3be37f['on']('execute',(_0x57dbaf,_0x20af4c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20af4c['length']>0x0&&_0x20af4c[_0x20af4c['length']-0x1]&&_0x20af4c[_0x20af4c['length']-0x1]['forceDefaultExecution']?_0x20af4c['pop']():(_0x57dbaf['return']=_0x335b92((..._0x1c8609)=>_0x3be37f['execute'](..._0x1c8609,{'forceDefaultExecution':!0x0}),..._0x20af4c),_0x57dbaf['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x593023){let _0x33d6af,_0x16c964;const _0x56c6ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33d6af=_0x593023();}catch(_0x2f8033){_0x16c964=_0x2f8033;}return _0x56c6ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16c964&&_0x1e75e0['rethrowUnexpectedError'](_0x16c964,this),_0x33d6af;}['markInsertion'](_0x5a7a11,_0x3ae368=null,_0x332157={}){if(_0x5a7a11['isCollapsed'])return null;const _0x15d921=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d90cd,meta:_0x9ac229}of this['_findSuggestions'](_0x5a7a11,'insertion'))if(_0x9ac229['isOwn']){if(!_0x9ac229['isNextTo']){if(_0x9ac229['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1d90cd,_0x332157))continue;return _0x1d90cd;}if(qt(_0x1d90cd,_0x332157))return _0x1d90cd;this['_breakSuggestionMarker'](_0x1d90cd,_0x5a7a11['start'],_0x5a7a11['end']);break;}if(_0x3ae368==_0x1d90cd['subType']&&qt(_0x1d90cd,_0x332157)){const _0xa7fcd7=_0x1d90cd['getFirstRange']();return _0xa7fcd7['start']['isEqual'](_0x5a7a11['end'])?this['_setSuggestionRange'](_0x1d90cd,this['_model']['createRange'](_0x5a7a11['start'],_0xa7fcd7['end'])):this['_setSuggestionRange'](_0x1d90cd,this['_model']['createRange'](_0xa7fcd7['start'],_0x5a7a11['end'])),_0x1d90cd;}}const _0x32ee11=_0x36eeaa(),_0x99b680=_0x15d921['id'],_0x6e06ff=_0x3ae368?'insertion:'+_0x3ae368:'insertion',_0x2b1ae9=this['_setSuggestionData']({'id':_0x32ee11,'type':_0x6e06ff,'createdAt':new Date(),'authorId':_0x99b680,'attributes':_0x332157});return this['_addSuggestionMarker'](_0x6e06ff,_0x32ee11,_0x99b680,_0x5a7a11),_0x2b1ae9;}['markMultiRangeInsertion'](_0x536ba3,_0xe30a53='multi',_0x4d2566={}){const _0x457da2=this['editor']['plugins']['get']('Users')['me'],_0x514350=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe30a53,'join');for(const _0x7c33b4 of this['getSuggestions']())if(_0x7c33b4['author']['id']==_0x457da2['id']&&'insertion'==_0x7c33b4['type']&&_0x7c33b4['subType']==_0xe30a53&&qt(_0x7c33b4,_0x4d2566)&&(_0x514350(_0x7c33b4['getRanges'](),_0x536ba3)||_0x514350(_0x536ba3,_0x7c33b4['getRanges']()))){for(const _0x75733a of _0x536ba3)_0x7c33b4['addRange'](_0x75733a);return _0x7c33b4;}for(const {suggestion:_0x367a10,meta:_0x1866de}of this['_findSuggestions'](_0x536ba3,'insertion')){if(!_0x1866de['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1866de['containsRangeInObject'])continue;if(!qt(_0x367a10,_0x4d2566))continue;let _0x445b12=!0x0;for(const _0x3e44d1 of _0x367a10['getRanges']())for(const _0x2c6e98 of _0x536ba3)if(!_0x3e44d1['containsRange'](_0x2c6e98)){_0x445b12=!0x1;break;}if(_0x445b12)return _0x367a10;}const _0x1138f0=_0x36eeaa(),_0x228e93=_0x457da2['id'],_0x506230='insertion:'+_0xe30a53,_0x35842e=this['_setSuggestionData']({'id':_0x1138f0,'type':_0x506230,'createdAt':new Date(),'authorId':_0x228e93,'attributes':_0x4d2566});for(const _0x31a953 of _0x536ba3)this['_addSuggestionMarker'](_0x506230,_0x1138f0,_0x228e93,_0x31a953,u['getMultiRangeId']());return _0x35842e;}['markInlineFormat'](_0xe360ba,_0x557fa6,_0xe5bb6=null,_0x3c172a={}){if(_0xe5bb6=_0xe5bb6||Gt(_0x557fa6),_0xe360ba['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2a88d5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe5bb6,'accept');return this['forceDefaultExecution'](()=>_0x2a88d5([_0xe360ba],_0x557fa6,_0x3c172a)),null;}const _0x1c3566=this['editor']['plugins']['get']('Users')['me'],_0x22c2a5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ac88e,meta:_0x292511}of this['_findSuggestions'](_0xe360ba,'insertion'))_0x292511['isOwn']&&!_0x292511['isInsideObject']&&_0x22c2a5['push'](..._0x3ac88e['getRanges']());}const _0x5c24ff=function(_0xa8621,_0x10c970){const _0x2800e2=[];for(const _0x3af175 of _0x10c970){const _0x37b19e=_0xa8621['getIntersection'](_0x3af175);_0x37b19e&&_0x2800e2['push'](_0x37b19e);}return _0x2800e2;}(_0xe360ba,_0x22c2a5),_0x52279e=function(_0x5d6e4f,_0x3ab741){const _0x3d17fa=[_0x5d6e4f];for(const _0x431b0c of _0x3ab741){let _0x5f04d3=0x0;for(;_0x5f04d3<_0x3d17fa['length'];){const _0x1c9226=_0x3d17fa[_0x5f04d3]['getDifference'](_0x431b0c);_0x3d17fa['splice'](_0x5f04d3,0x1,..._0x1c9226),_0x5f04d3+=_0x1c9226['length'];}}return _0x3d17fa;}(_0xe360ba,_0x22c2a5);_0x5c24ff['length']&&this['_model']['change'](()=>{for(const _0x206559 of _0x5c24ff){const _0x206ddf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe5bb6,'accept');this['forceDefaultExecution'](()=>_0x206ddf([_0x206559],_0x557fa6,_0x3c172a));}});for(const _0x3db43e of _0x52279e){let _0x434ca1=null,_0x2079dd=_0x3db43e['start'],_0x23407e=_0x3db43e['end'];for(const {suggestion:_0x32c8d1,meta:_0x10a028}of this['_findSuggestions'](_0x3db43e,'formatInline')){if(!_0x10a028['isOwn'])continue;if(_0x32c8d1['subType']!=_0xe5bb6)continue;if(!qt(_0x32c8d1,_0x3c172a))continue;const _0x5af6cc=_0x32c8d1['getFirstRange']();if(_0x5af6cc['containsRange'](_0x3db43e,!0x0))return null;_0x2079dd=_0x2079dd['isBefore'](_0x5af6cc['start'])?_0x2079dd:_0x5af6cc['start'],_0x23407e=_0x23407e['isAfter'](_0x5af6cc['end'])?_0x23407e:_0x5af6cc['end'],_0x434ca1?_0x5af6cc['start']['isBefore'](_0x434ca1['getFirstRange']()['start'])?(_0x434ca1['removeMarkers'](),_0x434ca1=_0x32c8d1):_0x32c8d1['removeMarkers']():_0x434ca1=_0x32c8d1;}const _0x2a348e=this['_model']['createRange'](_0x2079dd,_0x23407e);if(_0x434ca1)this['_setSuggestionRange'](_0x434ca1,_0x2a348e);else{const _0x7a336f=_0x36eeaa(),_0x4a0553=_0x1c3566['id'];this['_setSuggestionData']({'id':_0x7a336f,'type':'formatInline:'+_0xe5bb6,'data':_0x557fa6,'createdAt':new Date(),'authorId':_0x4a0553,'attributes':_0x3c172a}),this['_addSuggestionMarker']('formatInline:'+_0xe5bb6,_0x7a336f,_0x4a0553,_0x2a348e);}}return null;}['markBlockFormat'](_0x30ae91,_0x22d807,_0x3e1e8f=[],_0x552f6=null,_0x138b41={}){_0x22d807['formatGroupId']||(_0x22d807['formatGroupId']=_0x22d807['commandName']),_0x22d807['multipleBlocks']=_0x30ae91['is']('range'),_0x552f6=_0x552f6||Gt(_0x22d807);const _0x561e87=_0x3e1e8f['map'](_0x4f2c9e=>Lt(_0x4f2c9e,this['_model'])),_0x29d589=_0x30ae91['is']('range')?_0x30ae91:Lt(_0x30ae91,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5584b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x552f6,'accept');return this['forceDefaultExecution'](()=>_0x5584b3([_0x29d589],_0x22d807,_0x138b41)),null;}_0x561e87['push'](_0x29d589);let _0x3568da=!0x0;for(const _0x4a9cc2 of _0x561e87)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9cc2)){_0x3568da=!0x1;break;}if(_0x3568da&&'always'!==this['_trackFormatChanges']){const _0x3d1824=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x552f6,'accept');return this['forceDefaultExecution'](()=>_0x3d1824([_0x29d589],_0x22d807,_0x138b41)),null;}let _0x2c7335=null,_0x568f15=_0x29d589['start'],_0x3ba661=_0x29d589['end'];for(const {suggestion:_0x25b96e,meta:_0x5eb39a}of this['_findSuggestions'](_0x29d589,'formatBlock')){if(!_0x5eb39a['isOwn'])continue;if(_0x5eb39a['isNextTo']||_0x5eb39a['containsRangeInObject']||_0x5eb39a['isInsideObject'])continue;if(_0x25b96e['data']['formatGroupId']!=_0x22d807['formatGroupId'])continue;if(!qt(_0x25b96e,_0x138b41))continue;const _0x57c31e=_0x25b96e['getFirstRange']();if(_0x25b96e['subType']==_0x552f6){if(_0x57c31e['containsRange'](_0x29d589,!0x0))return null;_0x568f15=_0x568f15['isBefore'](_0x57c31e['start'])?_0x568f15:_0x57c31e['start'],_0x3ba661=_0x3ba661['isAfter'](_0x57c31e['end'])?_0x3ba661:_0x57c31e['end'],_0x2c7335?_0x57c31e['start']['isBefore'](_0x2c7335['getFirstRange']()['start'])?(_0x2c7335['removeMarkers'](),_0x2c7335=_0x25b96e):_0x25b96e['removeMarkers']():_0x2c7335=_0x25b96e;}else{const _0x176b65=_0x29d589['getIntersection'](_0x57c31e);this['_cutOutSuggestionMarker'](_0x25b96e,_0x176b65);}}const _0x134b45=this['editor']['plugins']['get']('Users')['me'],_0x5dc60a=_0x36eeaa(),_0xdf7ba2=_0x134b45['id'];if(_0x2c7335)return this['_setSuggestionRange'](_0x2c7335,this['_model']['createRange'](_0x568f15,_0x3ba661)),_0x2c7335;{const _0x1efef7=this['_setSuggestionData']({'id':_0x5dc60a,'type':'formatBlock:'+_0x552f6,'data':_0x22d807,'createdAt':new Date(),'authorId':_0xdf7ba2,'attributes':_0x138b41});return this['_addSuggestionMarker']('formatBlock:'+_0x552f6,_0x5dc60a,_0xdf7ba2,this['_model']['createRange'](_0x568f15,_0x3ba661)),_0x1efef7;}}['markMultiRangeBlockFormat'](_0x3d9141,_0x18cbe7,_0x375809=[],_0x30a118=null,_0x2ce42a={}){_0x18cbe7['formatGroupId']||(_0x18cbe7['formatGroupId']=_0x18cbe7['commandName']);const _0x2c4125=_0x3d9141[0x0];_0x18cbe7['multipleBlocks']=_0x2c4125['is']('range'),_0x30a118=_0x30a118||Gt(_0x18cbe7);const _0x27d505=_0x375809['map'](_0x134d87=>Lt(_0x134d87,this['_model'])),_0x45c859=_0x2c4125['is']('range')?_0x3d9141:_0x3d9141['map'](_0x4f0f7a=>Lt(_0x4f0f7a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xf3b53a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'accept');return this['forceDefaultExecution'](()=>_0xf3b53a(_0x45c859,_0x18cbe7,_0x2ce42a)),null;}_0x27d505['push'](..._0x45c859);let _0x1e8057=!0x0;for(const _0x2d8a90 of _0x27d505)if(!this['_rangeIsInLocalUserInsertion'](_0x2d8a90)){_0x1e8057=!0x1;break;}if(_0x1e8057&&'always'!==this['_trackFormatChanges']){const _0x4478a0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'accept');return this['forceDefaultExecution'](()=>_0x4478a0(_0x45c859,_0x18cbe7,_0x2ce42a)),null;}const _0x233cea=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d9574 of this['getSuggestions']()){if(_0x4d9574['author']['id']!=_0x233cea['id'])continue;if('formatBlock'!=_0x4d9574['type']||_0x4d9574['data']['formatGroupId']!=_0x18cbe7['formatGroupId'])continue;if(!qt(_0x4d9574,_0x2ce42a))continue;const _0x57819d=_0x4d9574['subType']==_0x30a118;for(let _0x47c942=0x0;_0x47c942<_0x45c859['length'];_0x47c942++){const _0x2136e4=_0x45c859[_0x47c942];for(const _0x4fdb85 of _0x4d9574['getMarkers']()){const _0x38b892=_0x4fdb85['getRange']();if(_0x2136e4['isEqual'](_0x38b892)){_0x57819d?(_0x45c859['splice'](_0x47c942,0x1),_0x47c942--):_0x4d9574['removeMarker'](_0x4fdb85['name']);break;}}}}if(0x0==_0x45c859['length'])return null;const _0x3751bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'join');for(const _0x6986d4 of this['getSuggestions']())if(_0x6986d4['author']['id']==_0x233cea['id']&&'formatBlock'==_0x6986d4['type']&&_0x6986d4['data']['formatGroupId']==_0x18cbe7['formatGroupId']&&_0x6986d4['subType']==_0x30a118&&qt(_0x6986d4,_0x2ce42a)&&(_0x3751bb(_0x6986d4['getRanges'](),_0x45c859)||_0x3751bb(_0x45c859,_0x6986d4['getRanges']()))){for(const _0x193d7b of _0x45c859)_0x6986d4['addRange'](_0x193d7b);return _0x6986d4;}const _0x22cfec=_0x36eeaa(),_0x59bb43=_0x233cea['id'],_0x579e52='formatBlock:'+_0x30a118,_0x54895a=this['_setSuggestionData']({'id':_0x22cfec,'type':_0x579e52,'data':_0x18cbe7,'createdAt':new Date(),'authorId':_0x59bb43,'attributes':_0x2ce42a});for(const _0x184809 of _0x45c859)this['_addSuggestionMarker'](_0x579e52,_0x22cfec,_0x59bb43,_0x184809,u['getMultiRangeId']());return _0x54895a;}['markDeletion'](_0x159cea,_0x5c27c8=null,_0x488678={}){if(_0x159cea['isCollapsed'])return null;const _0x28a904=this['editor']['plugins']['get']('Users')['me'],_0xec0510=new _0x5ed280(_0x159cea['start'],_0x159cea['end']);for(const {suggestion:_0xcc3e79,meta:_0x5a98a3}of this['_findSuggestions'](_0xec0510,'insertion'))if(_0x5a98a3['isOwn']&&!_0x5a98a3['isNextTo']){if(_0xcc3e79['isMultiRange']){const _0x3bdd9d=_0xcc3e79['getRanges']()['filter'](_0x3c0f80=>'$graveyard'!=_0x3c0f80['root']['rootName']);_0x3bdd9d['every'](_0x1c5bab=>_0xec0510['containsRange'](_0x1c5bab,!0x0))&&_0xcc3e79['discard']();if(_0x3bdd9d['some'](_0x428d14=>_0x428d14['containsRange'](_0xec0510,!0x0))){const _0x1d066f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c27c8,'accept');return this['forceDefaultExecution'](()=>_0x1d066f([_0xec0510],null,_0x488678)),null;}}else{const _0x191274=_0xec0510['getIntersection'](_0xcc3e79['getFirstRange']());null!==_0x191274&&_0xcc3e79['_onDiscard']([_0x191274],null,_0x488678);}}if(_0xec0510['detach'](),_0xec0510['isCollapsed']||'$graveyard'==_0xec0510['root']['rootName'])return null;let _0x5362d7=null,_0x16745b=_0xec0510['start'],_0x3d8270=_0xec0510['end'];const _0x467590=this['_findSuggestions'](_0xec0510,'deletion');for(const {suggestion:_0x43c355,meta:_0x5a2603}of _0x467590){const _0x132be4=this['_model']['createRange'](_0x16745b,_0x3d8270);if(_0x5a2603['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a2603['containsRangeInObject']&&!_0x5a2603['isInsideObject'])){if(_0x43c355['isMultiRange']){if(!qt(_0x43c355,_0x488678))continue;let _0x48a74f=!0x0;for(const _0x1b02e5 of _0x43c355['getRanges']()){if(_0x1b02e5['containsRange'](_0x132be4,!0x0))return _0x43c355;_0x132be4['containsRange'](_0x1b02e5)||(_0x48a74f=!0x1);}_0x48a74f&&_0x43c355['discard']();}else{const _0x55d64c=_0x43c355['getFirstRange']();if(_0x55d64c['containsRange'](_0x132be4,!0x0))return _0x43c355;if(!qt(_0x43c355,_0x488678)){_0x132be4['containsRange'](_0x55d64c)?_0x43c355['removeMarkers']():_0x55d64c['containsPosition'](_0x16745b)?_0x16745b=_0x55d64c['end']:_0x55d64c['containsPosition'](_0x3d8270)&&(_0x3d8270=_0x55d64c['start']);continue;}_0x16745b=_0x16745b['isBefore'](_0x55d64c['start'])?_0x16745b:_0x55d64c['start'],_0x3d8270=_0x3d8270['isAfter'](_0x55d64c['end'])?_0x3d8270:_0x55d64c['end'],_0x488678=Object['assign']({},_0x43c355['attributes']),_0x5362d7?_0x55d64c['start']['isBefore'](_0x5362d7['getFirstRange']()['start'])?(_0x5362d7['removeMarkers'](),_0x5362d7=_0x43c355):_0x43c355['removeMarkers']():_0x5362d7=_0x43c355;}}}if(_0x5362d7)return this['_setSuggestionRange'](_0x5362d7,this['_model']['createRange'](_0x16745b,_0x3d8270)),_0x5362d7;{const _0x1ab93a=_0x36eeaa(),_0x3a3993=this['_model']['createRange'](_0x16745b,_0x3d8270),_0x3b5476=_0x28a904['id'],_0x3b3bf9=_0x5c27c8?'deletion:'+_0x5c27c8:'deletion',_0x42c23e=this['_setSuggestionData']({'id':_0x1ab93a,'type':_0x3b3bf9,'createdAt':new Date(),'authorId':_0x3b5476,'attributes':_0x488678});return this['_addSuggestionMarker'](_0x3b3bf9,_0x1ab93a,_0x3b5476,_0x3a3993),_0x42c23e;}}['markMultiRangeDeletion'](_0x56804a,_0x30bd57='multi',_0x34eed2={}){const _0x2b10b0=this['editor']['plugins']['get']('Users')['me'],_0x4ca720=_0x56804a['map'](_0x400b27=>new _0x5ed280(_0x400b27['start'],_0x400b27['end'])),_0x231e3b=new Set();for(const {suggestion:_0x4718c9,meta:_0x30b6be}of this['_findSuggestions'](_0x4ca720,'insertion'))_0x30b6be['isOwn']&&!_0x30b6be['isNextTo']&&_0x231e3b['add'](_0x4718c9);for(const _0x245ce4 of _0x231e3b)if(_0x245ce4['isMultiRange']){const _0x45d57a=_0x245ce4['getRanges']();(!_0x245ce4['attributes']||!_0x245ce4['attributes']['skipNestingCheck'])&&(_0x45d57a['every'](_0x54ff9b=>_0x4ca720['some'](_0x259b41=>_0x259b41['containsRange'](_0x54ff9b,!0x0)))&&_0x245ce4['discard']());if(_0x4ca720['every'](_0x11acf8=>_0x45d57a['some'](_0xb2161f=>_0xb2161f['containsRange'](_0x11acf8,!0x0)))){const _0x2795dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'accept');return this['forceDefaultExecution'](()=>_0x2795dd(_0x56804a,null,_0x34eed2)),null;}}else{const _0x370f5e=_0x245ce4['getFirstRange']();_0x4ca720['some'](_0x508e72=>_0x508e72['containsRange'](_0x370f5e,!0x0))&&_0x245ce4['discard']();if(_0x4ca720['every'](_0x201f72=>_0x370f5e['containsRange'](_0x201f72,!0x0))){const _0x408327=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'accept');return this['forceDefaultExecution'](()=>_0x408327(_0x4ca720,null,_0x34eed2)),null;}}const _0xff0e03=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'join');let _0x2a0d2f=null;for(const _0xcd15eb of this['getSuggestions']())if(_0xcd15eb['author']['id']==_0x2b10b0['id']&&_0xcd15eb['isInContent']&&'deletion'==_0xcd15eb['type']&&_0xcd15eb['subType']==_0x30bd57&&qt(_0xcd15eb,_0x34eed2)&&(_0xff0e03(_0xcd15eb['getRanges'](),_0x4ca720)||_0xff0e03(_0x4ca720,_0xcd15eb['getRanges']()))){if(_0x2a0d2f){if(_0xcd15eb['commentThread']&&_0xcd15eb['commentThread']['length'])continue;for(const _0x23fde4 of _0xcd15eb['getRanges']())_0x2a0d2f['isIntersectingWithRange'](_0x23fde4)||_0x2a0d2f['addRange'](_0x23fde4);_0xcd15eb['removeMarkers']();}else{_0x2a0d2f=_0xcd15eb;for(const _0x401da0 of _0x4ca720)_0xcd15eb['isIntersectingWithRange'](_0x401da0)||_0xcd15eb['addRange'](_0x401da0);}}if(_0x2a0d2f)return _0x2a0d2f;_0x231e3b['clear']();for(const {suggestion:_0x463a39,meta:_0x44010b}of this['_findSuggestions'](_0x4ca720,'deletion'))_0x44010b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44010b['containsRangeInObject']&&!_0x44010b['isInsideObject'])&&qt(_0x463a39,_0x34eed2)&&_0x231e3b['add'](_0x463a39);for(const _0x1e681e of _0x231e3b){const _0x3fb545=_0x1e681e['getRanges']();if(!_0x34eed2||!_0x34eed2['skipNestingCheck']){if(_0x4ca720['every'](_0x51c1ac=>_0x3fb545['some'](_0x4f882e=>_0x4f882e['containsRange'](_0x51c1ac,!0x0))))return _0x1e681e;}(!_0x1e681e['attributes']||!_0x1e681e['attributes']['skipNestingCheck'])&&(_0x3fb545['every'](_0x1643f0=>_0x4ca720['some'](_0xf9e0d7=>_0xf9e0d7['containsRange'](_0x1643f0,!0x0)))&&_0x1e681e['discard']());}const _0x53f29f=_0x36eeaa(),_0x5b922d=_0x2b10b0['id'],_0x44d163='deletion:'+_0x30bd57,_0x7aad32=this['_setSuggestionData']({'id':_0x53f29f,'type':_0x44d163,'createdAt':new Date(),'authorId':_0x5b922d,'attributes':_0x34eed2});for(const _0x49c96b of _0x4ca720)_0x49c96b['detach'](),_0x49c96b['isCollapsed']||'$graveyard'==_0x49c96b['root']['rootName']||this['_addSuggestionMarker'](_0x44d163,_0x53f29f,_0x5b922d,_0x49c96b,u['getMultiRangeId']());return _0x7aad32;}['markAttributeChange'](_0x5bb10c,_0x351b0b,_0x6d2876,_0x13daaa,_0x208ce7){if(_0x5bb10c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf1a003=this['editor']['plugins']['get']('Users')['me']['id'],_0x301493=Array['from'](this['_suggestions']['values']())['filter'](_0x1b3ad5=>'attribute'==_0x1b3ad5['type']&&_0x1b3ad5['data']['key']==_0x351b0b&&_0x1b3ad5['isIntersectingWithRange'](_0x5bb10c));if('default'===this['_trackFormatChanges']){const _0x3f7282=this['_findSuggestions'](_0x5bb10c,'insertion')['filter'](({meta:_0x383bf5})=>_0x383bf5['isOwn']&&!_0x383bf5['isInsideObject']&&!_0x383bf5['isNextTo'])['map'](({suggestion:_0x45876e})=>_0x45876e);_0x301493['unshift'](..._0x3f7282);}const _0x5e323d=new Map([[_0x5bb10c,_0x6d2876]]);for(const _0xaf2979 of _0x301493){const _0x40f1f1='attribute'==_0xaf2979['type']?_0xaf2979['data']['oldValue']:void 0x0,_0x368956=_0xaf2979['getFirstRange'](),_0x5210da=Array['from'](_0x5e323d['keys']())['find'](_0x2b8810=>_0x2b8810['isIntersecting'](_0x368956));if(!_0x5210da)continue;const _0x4c7687=_0x5210da['getDifference'](_0x368956);this['_isBlockAttribute'](_0x351b0b)&&'insertion'==_0xaf2979['type']&&0x0!=_0x4c7687['length']||(_0x5e323d['delete'](_0x5210da),_0x4c7687['forEach'](_0x424555=>{_0x5e323d['set'](_0x424555,_0x6d2876);}),'insertion'!=_0xaf2979['type']&&_0x40f1f1!=_0x13daaa&&_0x5e323d['set'](_0x5210da['getIntersection'](_0x368956),_0x40f1f1));}const _0x6bec87=[];for(const [_0x8aaa39,_0x5200be]of _0x5e323d){const _0x3d0e96=_0x36eeaa(),_0xd50ca4={'key':_0x351b0b,'oldValue':_0x5200be,'newValue':_0x13daaa};_0x351b0b['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':_0x351b0b});const _0xbc1830=('attribute:'+(_0x351b0b+'|'+Gt({'newValue':_0x13daaa})))['substring'](0x0,0x3c),_0x16fa08=this['_setSuggestionData']({'id':_0x3d0e96,'type':_0xbc1830,'data':_0xd50ca4,'createdAt':new Date(),'authorId':_0xf1a003,'attributes':_0x208ce7});_0x6bec87['push'](_0x16fa08),this['_addSuggestionMarker'](_0xbc1830,_0x3d0e96,_0xf1a003,_0x8aaa39);}return _0x6bec87;}['enableDefaultAttributesIntegration'](_0x923534){this['enableCommand'](_0x923534,(_0x5c3f65,..._0x47dd9a)=>{this['_recordAttributeChanges'](()=>{_0x5c3f65(..._0x47dd9a);});});}['registerBlockAttribute'](_0x59fb9d){this['_blockAttributeKeys']['add'](_0x59fb9d);}['registerInlineAttribute'](_0x1054b0){this['_inlineAttributeKeys']['add'](_0x1054b0);}['_getAttributeKey'](_0x36d915){return'attribute'==_0x36d915['type']?_0x36d915['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x9215d8,_0x45516d){const _0x5bfc49=_0x9215d8['getFirstMarker']();this['_model']['change'](_0x1fc74c=>{_0x1fc74c['updateMarker'](_0x5bfc49,{'range':_0x45516d});});}['_addThreadToSuggestion'](_0x55e526){const _0x5779f7=_0x55e526['id'],_0x56efe3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5779f7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56efe3,'threadId':_0x5779f7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x89e9a=this['_commentsRepository']['getCommentThread'](_0x5779f7);_0x89e9a['unbind']('isRemovable'),_0x89e9a['isRemovable']=!0x1,_0x55e526['commentThread']=_0x89e9a;}['_checkSuggestionCorrectness'](_0x3917dc,_0x115fb5,_0x1523e6,_0x2dfa4e){if(_0x3917dc['type']!=_0x115fb5||_0x3917dc['subType']!=_0x1523e6||_0x3917dc['creator']['id']!=_0x2dfa4e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1e75e0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x518961,_0x55eb0a){const _0x2c0de6=_0x518961['getFirstRange']();if(_0x55eb0a['isEqual'](_0x2c0de6))_0x518961['removeMarkers']();else{if(_0x2c0de6['containsRange'](_0x55eb0a)){const _0x417a30=this['_model']['createPositionAt'](_0x55eb0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2c0de6['start'],_0x417a30));const _0x427fe4=_0x36eeaa(),_0x20c09b=_0x518961['creator']['id'],_0x76a5ce=_0x518961['type']+':'+_0x518961['subType'];this['_setSuggestionData']({'id':_0x427fe4,'type':_0x76a5ce,'createdAt':new Date(),'authorId':_0x20c09b,'data':_0x518961['data'],'attributes':_0x518961['attributes']});const _0x253a87=this['_model']['createPositionAt'](_0x55eb0a['end']['parent'],'after'),_0x17a7ff=this['_model']['createRange'](_0x253a87,_0x2c0de6['end']);this['_addSuggestionMarker'](_0x76a5ce,_0x427fe4,_0x20c09b,_0x17a7ff);}else{if(_0x2c0de6['containsPosition'](_0x55eb0a['start'])){const _0x1681f5=this['_model']['createPositionAt'](_0x55eb0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2c0de6['start'],_0x1681f5));}else{const _0x2fd27c=this['_model']['createPositionAt'](_0x55eb0a['end']['parent'],'after');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2fd27c,_0x2c0de6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c637c){for(const {suggestion:_0x245530,meta:_0x36a0a5}of this['_findSuggestions'](_0x5c637c,'insertion')){if(!_0x36a0a5['isOwn'])continue;const _0x938420=_0x245530['getRanges']();for(const _0x1457cd of _0x938420)if(!_0x5c637c['getDifference'](_0x1457cd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x24949d){const _0x4b1683=this['editor']['plugins']['get']('Users')['getUser'](_0x24949d);if(!_0x4b1683)throw new _0x1e75e0('track-changes-user-not-found',this);return _0x4b1683;}['_getExternalAuthor'](_0x283908){const _0x2e7d87=this['editor']['plugins']['get']('Users'),_0x99fd3a=_0x2287f9('external:'+_0x283908),_0x594623=_0x2e7d87['getUser'](_0x99fd3a);return _0x594623||_0x2e7d87['addUser']({'id':_0x99fd3a,'name':_0x283908});}['_createSuggestion'](_0x43ee89,_0x57dcc1,_0x16875d,_0x23c52e,_0x5ed841){const _0x2d2c3b=this['_getAuthorFromId'](_0x23c52e),_0x1c1bb1=this['_suggestionFactory']['buildSuggestion'](_0x43ee89,_0x57dcc1,_0x16875d,_0x2d2c3b,_0x5ed841,_0x390b6a=>{this['_updateSuggestionData'](_0x16875d,{'attributes':_0x390b6a});const _0x50e528=this['getSuggestion'](_0x16875d);this['_joinWithAdjacentSuggestions'](new Set([_0x50e528])),this['_refreshSuggestionsChain'](new Set([_0x50e528]));});return this['listenTo'](_0x1c1bb1,'accept',()=>{this['_updateSuggestionData'](_0x16875d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c1bb1,'discard',()=>{this['_updateSuggestionData'](_0x16875d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16875d,_0x1c1bb1),this['_suggestionState']['set'](_0x1c1bb1,'notReady'),_0x1c1bb1;}['_splitMarkerName'](_0xd941d6){const _0x4184fb=_0xd941d6['split'](':');return{'group':_0x4184fb[0x0],'type':_0x4184fb[0x1],'subType':_0x4184fb['length']>=0x5?_0x4184fb[0x2]:null,'id':_0x4184fb['length']<0x5?_0x4184fb[0x2]:_0x4184fb[0x3],'authorId':_0x4184fb['length']<0x5?_0x4184fb[0x3]:_0x4184fb[0x4],'markerCount':0x6==_0x4184fb['length']?_0x4184fb[0x5]:null};}['_breakSuggestionMarker'](_0x42f835,_0xdc0867,_0x2c9876){const _0x52b127=_0x42f835['getFirstRange'](),_0x3255be=_0x52b127['start'],_0x52a82e=_0x52b127['end'];this['_setSuggestionRange'](_0x42f835,this['_model']['createRange'](_0x3255be,_0xdc0867));const _0x2fed32=_0x36eeaa(),_0x5d0b75=_0x42f835['creator']['id'],_0x17cf3e=_0x42f835['type']+(_0x42f835['subType']?':'+_0x42f835['subType']:'');this['_setSuggestionData']({'id':_0x2fed32,'type':_0x17cf3e,'createdAt':new Date(),'authorId':_0x5d0b75,'originalSuggestionId':_0x42f835['id'],'attributes':_0x42f835['attributes'],'data':_0x42f835['data']});const _0x4917a2=this['_getAttributeKey'](_0x42f835);('formatBlock'==_0x42f835['type']||_0x4917a2&&this['_isBlockAttribute'](_0x4917a2))&&(_0x2c9876=this['_model']['createPositionBefore'](_0x2c9876['parent'])),this['_addSuggestionMarker'](_0x17cf3e,_0x2fed32,_0x5d0b75,this['_model']['createRange'](_0x2c9876,_0x52a82e));}['_findSuggestions'](_0x867e15,_0x3d71e7=null){const _0x2b1586=[],_0x3955d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x867e15)||(_0x867e15=[_0x867e15]);for(const _0x2934cf of this['getSuggestions']()){if(!_0x2934cf['isInContent'])continue;if(_0x3d71e7&&_0x2934cf['type']!=_0x3d71e7)continue;let _0xa8d5ac=!0x1;for(const _0x351c5d of _0x2934cf['getRanges']()){for(const _0x41e74d of _0x867e15){const _0x4eabfd=_0x41e74d['start']['isEqual'](_0x351c5d['end'])||_0x41e74d['end']['isEqual'](_0x351c5d['start']);if(_0x4eabfd||_0x41e74d['getIntersection'](_0x351c5d)){const _0x3aceef=_0x41e74d['containsRange'](_0x351c5d)&&Ot(this['_model']['schema'],_0x351c5d['start'],_0x41e74d),_0x2e9809=_0x351c5d['containsRange'](_0x41e74d)&&Ot(this['_model']['schema'],_0x41e74d['start'],_0x351c5d);_0x2b1586['push']({'suggestion':_0x2934cf,'meta':{'isOwn':_0x3955d4==_0x2934cf['author'],'isNextTo':_0x4eabfd,'isInsideObject':_0x3aceef,'containsRangeInObject':_0x2e9809}}),_0xa8d5ac=!0x0;break;}}if(_0xa8d5ac)break;}}return _0x2b1586;}['_addSuggestionMarker'](_0x146aa5,_0x3c3dac,_0x3fa01e,_0x552b04,_0x3cbd11){this['_model']['change'](_0x97987e=>{let _0x54e9f9='suggestion:'+_0x146aa5+':'+_0x3c3dac+':'+_0x3fa01e;_0x3cbd11&&(_0x54e9f9=_0x54e9f9+':'+_0x3cbd11),_0x97987e['addMarker'](_0x54e9f9,{'range':_0x552b04,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x461ad0){const _0x35b7b3=_0x461ad0['previous'],_0x516625=_0x461ad0['next'];_0x461ad0['previous']=null,_0x461ad0['next']=null,null!=_0x35b7b3&&_0x35b7b3['next']==_0x461ad0&&(_0x35b7b3['next']=_0x516625),null!=_0x516625&&_0x516625['previous']==_0x461ad0&&(_0x516625['previous']=_0x35b7b3),'ready'==this['_suggestionState']['get'](_0x461ad0)&&(this['_suggestionState']['set'](_0x461ad0,'removed'),this['fire']('suggestionUnloaded',_0x461ad0,_0x35b7b3,_0x516625));}['_setSuggestionData'](_0x9ec1cb){const _0x170a02=_0x9ec1cb['id'],_0x5a2dc3=this['addSuggestionData'](_0x9ec1cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1124fb=this['editor']['plugins']['get']('PendingActions'),_0x1793eb=_0x5a2dc3['hasComments'],_0x4ea0cf=_0x5a2dc3['subType']?_0x5a2dc3['type']+':'+_0x5a2dc3['subType']:_0x5a2dc3['type'],_0xc6633b=this['editor']['locale'],_0x5cfc48=_0x1124fb['add'](o(_0xc6633b,'PENDING_ACTION_SUGGESTION')),_0x31a402={'id':_0x170a02,'type':_0x4ea0cf,'hasComments':_0x1793eb,'data':_0x9ec1cb['data']||null,'originalSuggestionId':_0x9ec1cb['originalSuggestionId']||null,'attributes':_0x5a2dc3['attributes']};this['_adapter']['addSuggestion'](_0x31a402)['then'](_0x313833=>{_0x5a2dc3['_saved']=!0x0,_0x1124fb['remove'](_0x5cfc48),_0x313833&&_0x313833['createdAt']&&(this['_suggestions']['get'](_0x170a02)['createdAt']=_0x313833['createdAt']);})['catch'](_0x31933b=>{throw _0x249a14('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a2dc3['discard']();}),_0x5a2dc3['stopListening'](),this['_suggestions']['delete'](_0x5a2dc3['id']),this['_suggestionState']['delete'](_0x5a2dc3),_0x31933b;});}return _0x5a2dc3;}['_isBlockAttribute'](_0x4827bf){return this['_blockAttributeKeys']['has'](_0x4827bf);}['_updateSuggestionData'](_0x344bdb,_0x533848){const _0x80d66=this['editor']['plugins']['get']('PendingActions'),_0x29801b=this['getSuggestion'](_0x344bdb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x29801b['_saved']){const _0x2122c3=_0x80d66['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x344bdb,_0x533848)['then'](()=>{_0x80d66['remove'](_0x2122c3);});}else _0x29801b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x344bdb,_0x533848);});}}['_getSuggestionData'](_0x5dc4bd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1e75e0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5dc4bd);}['_handleNewSuggestionMarker'](_0x2e8d32){const {id:_0x22b1c4,type:_0x19f503,subType:_0x503251,authorId:_0xb4a99f}=this['_splitMarkerName'](_0x2e8d32),_0x4c009e=this['_suggestions']['get'](_0x22b1c4)||this['_createSuggestion'](_0x19f503,_0x503251,_0x22b1c4,_0xb4a99f,{});switch(this['_checkSuggestionCorrectness'](_0x4c009e,_0x19f503,_0x503251,_0xb4a99f),this['_suggestionState']['get'](_0x4c009e)){case'notReady':this['_getSuggestionData'](_0x22b1c4)['then'](_0xcae5cc=>{let _0x16e544=Promise['resolve']();_0xcae5cc['hasComments']&&(_0x16e544=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x22b1c4})),_0x16e544['then'](()=>{this['addSuggestionData'](_0xcae5cc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4c009e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x22b1c4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4c009e,'ready'),this['fire']('suggestionLoaded',_0x4c009e);break;case'ready':this['fire']('suggestionChanged',_0x4c009e);}return _0x4c009e['addMarkerName'](_0x2e8d32),_0x4c009e;}['_refreshSuggestionsChain'](_0x418db9){const _0x17698b=Array['from'](_0x418db9),_0x5cabda=_0x17698b['filter'](_0x13b63e=>'attribute'==_0x13b63e['type']);this['_refreshAttributeSuggestionsChain'](_0x5cabda);const _0x480b84=_0x17698b['filter'](_0x153965=>!_0x153965['isMultiRange']&&'attribute'!=_0x153965['type']),_0x1c654d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fe221=>!_0x4fe221['isMultiRange']&&'attribute'!=_0x4fe221['type']),_0x243b27=_0x1c654d['filter'](_0xc05f6=>!_0x418db9['has'](_0xc05f6)),_0x1d6e8e=new Map(_0x1c654d['map'](_0x3418f0=>[_0x3418f0,this['_suggestionFactory']['getSuggestionCallback'](_0x3418f0['type'],_0x3418f0['subType'],'chain')])),_0x2686d1=new Map(_0x1c654d['map'](_0x233c87=>[_0x233c87,_0x233c87['getFirstRange']()])),_0x574a73=new Set(),_0x4037f2=new Set();for(let _0x4d838e=0x0;_0x4d838e<_0x480b84['length'];_0x4d838e++)_0x345ec6(_0x480b84[_0x4d838e],_0x480b84,_0x4d838e+0x1);for(let _0x48ac09=0x0;_0x48ac09<_0x480b84['length'];_0x48ac09++)_0x345ec6(_0x480b84[_0x48ac09],_0x243b27,0x0);const _0x3b6589=new Set();for(let _0x1723f9=0x0;_0x1723f9<_0x480b84['length'];_0x1723f9++){const _0xb66969=_0x480b84[_0x1723f9];!_0x4037f2['has'](_0xb66969)&&_0xb66969['previous']&&(_0x3b6589['add'](_0xb66969['previous']),_0xb66969['previous']['next']===_0xb66969&&(_0xb66969['previous']['next']=null),_0xb66969['previous']=null),!_0x574a73['has'](_0xb66969)&&_0xb66969['next']&&(_0x3b6589['add'](_0xb66969['next']),_0xb66969['next']['previous']===_0xb66969&&(_0xb66969['next']['previous']=null),_0xb66969['next']=null);}function _0x345ec6(_0x2ae5d4,_0x94b9fc,_0x53bf3c){for(let _0x29c7b6=_0x53bf3c;_0x29c7b6<_0x94b9fc['length'];_0x29c7b6++){const _0x1b3922=_0x414e32(_0x2ae5d4,_0x94b9fc[_0x29c7b6]);_0x1b3922&&(_0x1b3922[0x0]['next']=_0x1b3922[0x1],_0x1b3922[0x1]['previous']=_0x1b3922[0x0],_0x574a73['add'](_0x1b3922[0x0]),_0x4037f2['add'](_0x1b3922[0x1]));}}function _0x414e32(_0x4943b8,_0x34ebe0){if(_0x4943b8['author']['id']!==_0x34ebe0['author']['id'])return null;const _0x4de010=_0x1d6e8e['get'](_0x4943b8)(_0x4943b8,_0x34ebe0,_0x2686d1['get'](_0x4943b8),_0x2686d1['get'](_0x34ebe0));if(!_0x4de010)return null;return _0x1d6e8e['get'](_0x34ebe0)(_0x4943b8,_0x34ebe0,_0x2686d1['get'](_0x4943b8),_0x2686d1['get'](_0x34ebe0))?_0x4de010[0x1]['commentThread']&&_0x4de010[0x1]['commentThread']['length']?null:_0x4de010:null;}_0x3b6589['size']&&this['_refreshSuggestionsChain'](_0x3b6589);}['_refreshAttributeSuggestionsChain'](_0xe42d45){if(0x0==_0xe42d45['length'])return;const _0x3c8433=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f0730=>'attribute'==_0x2f0730['type']&&_0x2f0730['_isDataLoaded']),_0x470d13=[],_0x225e92=new Map();for(const _0x4dad5b of _0x3c8433){const _0x10a17d=_0x2287f9(_0x4dad5b['attributes']);_0x225e92['has'](_0x10a17d)||(_0x225e92['set'](_0x10a17d,_0x470d13['length']),_0x470d13['push']([]));const _0x4ddddd=_0x225e92['get'](_0x10a17d);_0x470d13[_0x4ddddd]['push'](_0x4dad5b);}!(function(){_0x470d13['sort']((_0x114cfa,_0x2ce0bd)=>{const _0x232ce4=_0x114cfa[0x0]['createdAt'],_0x2fa40d=_0x2ce0bd[0x0]['createdAt'];return _0x232ce4==_0x2fa40d?_0x114cfa[0x0]['attributes']['groupId']<_0x2ce0bd[0x0]['attributes']['groupId']?-0x1:0x1:_0x232ce4<_0x2fa40d?-0x1:0x1;});for(const _0x5f3bb1 of _0x470d13)_0x5f3bb1['sort']((_0xd438f1,_0xdd5741)=>_0xd438f1['id']<_0xdd5741['id']?-0x1:0x1);}());for(let _0x2417ed=0x0;_0x2417ed<_0x470d13['length'];_0x2417ed++){if(0x0==_0x470d13[_0x2417ed]['length'])continue;const _0x5ba4fd=[];for(let _0x2f8808=_0x2417ed+0x1;_0x2f8808<_0x470d13['length'];_0x2f8808++)0x0!=_0x470d13[_0x2f8808]['length']&&_0x3b13c3(_0x470d13[_0x2417ed],_0x470d13[_0x2f8808])&&_0x5ba4fd['push'](_0x2f8808);for(const _0xfa1210 of _0x5ba4fd)_0x470d13[_0x2417ed]=_0x470d13[_0x2417ed]['concat'](_0x470d13[_0xfa1210]),_0x470d13[_0xfa1210]=[];}for(const _0x3670ad of _0x470d13)for(let _0x3a359a=0x0;_0x3a359a<_0x3670ad['length'];_0x3a359a++){const _0x442a8a=_0x3670ad[_0x3a359a+0x1]||null;_0x3670ad[_0x3a359a]['next']!==_0x442a8a&&(_0x3670ad[_0x3a359a]['next']=_0x442a8a);}for(const _0x5a9b79 of _0x470d13)for(let _0x31d591=0x0;_0x31d591<_0x5a9b79['length'];_0x31d591++){const _0x46b952=_0x5a9b79[_0x31d591-0x1]||null;_0x5a9b79[_0x31d591]['previous']!==_0x46b952&&(_0x5a9b79[_0x31d591]['previous']=_0x46b952);}function _0x3b13c3(_0x56e7e0,_0x2166f1){if(_0x56e7e0[0x0]['attributes']['groupId']!==_0x2166f1[0x0]['attributes']['groupId']&&_0x56e7e0[0x0]['author']!==_0x2166f1[0x0]['author'])return!0x1;if(!function(_0x3a5899,_0x4f0a36){if(!_0x3a5899['hasComments']&&!_0x4f0a36['hasComments'])return!0x0;if(_0x3a5899['hasComments']&&_0x4f0a36['hasComments'])return!0x1;if(_0x3a5899['hasComments']&&_0x4f0a36['createdAt']<_0x3a5899['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4f0a36['hasComments']&&_0x3a5899['createdAt']<_0x4f0a36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56e7e0[0x0],_0x2166f1[0x0]))return!0x1;const _0x2e1fa8=Tt(_0x56e7e0[0x0]['attributes'],'groupId'),_0x3d0420=Tt(_0x2166f1[0x0]['attributes'],'groupId');if(!_0x2d7d66(_0x2e1fa8,_0x3d0420))return!0x1;return!!_0x56e7e0['every'](_0x30e5e7=>_0x2166f1['some'](_0x2799a9=>_0x30e5e7['getFirstRange']()['isEqual'](_0x2799a9['getFirstRange']())))&&_0x2166f1['every'](_0x23b0cb=>_0x56e7e0['some'](_0xedc5d3=>_0x23b0cb['getFirstRange']()['isEqual'](_0xedc5d3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x524bfa){const _0x46fece=Array['from'](_0x524bfa),_0x23a0bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x58a23b=_0x23a0bc['filter'](_0x12a401=>!_0x524bfa['has'](_0x12a401)),_0x2ffb8c=new Map(_0x46fece['map'](_0x107e40=>[_0x107e40,this['_suggestionFactory']['getSuggestionCallback'](_0x107e40['type'],_0x107e40['subType'],'join')])),_0x28bbb8=new Map(_0x23a0bc['map'](_0x813897=>[_0x813897,_0x813897['getRanges']()]));for(let _0x303581=0x0;_0x303581<_0x46fece['length'];_0x303581++){if(_0x319df0(this,_0x46fece[_0x303581],_0x46fece,_0x303581+0x1))return!0x0;}for(let _0x29025c=0x0;_0x29025c<_0x46fece['length'];_0x29025c++){if(_0x319df0(this,_0x46fece[_0x29025c],_0x58a23b,0x0))return!0x0;}return!0x1;function _0x319df0(_0x20a65d,_0x40c1bc,_0x499aea,_0x26aba9){for(let _0x44730f=_0x26aba9;_0x44730f<_0x499aea['length'];_0x44730f++){const _0x1de424=_0x499aea[_0x44730f];if(_0x1de424['type']!==_0x40c1bc['type']||_0x1de424['author']['id']!==_0x40c1bc['author']['id']||_0x1de424['subType']!==_0x40c1bc['subType'])continue;if(!Jt(_0x40c1bc,_0x1de424))continue;if('attribute'==_0x40c1bc['type']&&_0x40c1bc['data']['oldValue']!=_0x1de424['data']['oldValue'])continue;if('attribute'==_0x40c1bc['type']&&_0x20a65d['_isBlockAttribute'](_0x40c1bc['data']['key']))continue;if('formatBlock'==_0x40c1bc['type']){const _0x164d86=_0x20a65d['editor']['model'],_0x23a722=_0x40c1bc['getContainedElement']();if(_0x23a722&&(_0x164d86['schema']['isObject'](_0x23a722)||_0x164d86['schema']['isLimit'](_0x23a722)))continue;}const _0x561971=_0x2ffb8c['get'](_0x40c1bc),_0x753cb7=_0x28bbb8['get'](_0x40c1bc),_0x373942=_0x28bbb8['get'](_0x1de424),_0x3972df=_0x40c1bc['commentThread']&&_0x40c1bc['commentThread']['length'],_0x541473=_0x1de424['commentThread']&&_0x1de424['commentThread']['length'];if(!_0x3972df&&_0x561971(_0x373942,_0x753cb7))return _0x20a65d['_joinSuggestions'](_0x1de424,_0x40c1bc),_0x28bbb8['delete'](_0x40c1bc),!0x0;if(!_0x541473&&_0x561971(_0x753cb7,_0x373942))return _0x20a65d['_joinSuggestions'](_0x40c1bc,_0x1de424),_0x28bbb8['delete'](_0x1de424),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2b93e4,_0x7eae17){if(_0x2b93e4['isMultiRange']){for(const _0x283346 of _0x7eae17['getRanges']())_0x2b93e4['addRange'](_0x283346);}else{const _0x543650=_0x7eae17['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b93e4,this['_model']['createRange'](_0x2b93e4['getFirstRange']()['start'],_0x543650));}_0x7eae17['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe17f34,_0x596a25,_0x481eac){const _0x4f5925=_0xe17f34['startsWith']('format')||_0xe17f34['startsWith']('attribute')?'FORMATTING':_0xe17f34['toUpperCase']();return o(this['editor']['locale'],_0x596a25+'_'+_0x4f5925+'_SUGGESTION_ANNOUNCEMENT',_0x481eac);}['_initAriaMarkerChangeAnnouncements'](){const _0x3c41d5=this['editor'];if(!_0x3c41d5['ui'])return;const {ariaLiveAnnouncer:_0x437476}=_0x3c41d5['ui'];_0x32db40(this['_model'],({left:_0xd3f5d,entered:_0x398436})=>{for(const _0x16cdfa of _0xd3f5d){const {group:_0x133bc6,type:_0x14aedb}=this['_splitMarkerName'](_0x16cdfa['name']);if('suggestion'===_0x133bc6){_0x437476['announce'](this['_getMarkerAnnouncementText'](_0x14aedb,'LEAVE'));break;}}for(const _0x377c1e of _0x398436){const {group:_0x374f61,type:_0x218a1e}=this['_splitMarkerName'](_0x377c1e['name']);if('suggestion'===_0x374f61){_0x437476['announce'](this['_getMarkerAnnouncementText'](_0x218a1e,'ENTER',_0xb9abf9(_0x4438d0)));break;}}});}['_processAttributeChanges'](_0x268335){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4e2c07=this['editor'],_0xcfd983=_0x4e2c07['model']['document']['differ']['getChanges']();if(0x0==_0xcfd983['length'])return!0x1;const _0x324991=[],_0x1344c5=_0xcfd983['filter'](_0x3c3c04=>'attribute'==_0x3c3c04['type']),_0x15a388=_0xcfd983['filter'](_0x175912=>'insert'==_0x175912['type']&&'$text'!=_0x175912['name']),_0x5c40db=_0xcfd983['filter'](_0x5b2dec=>'remove'==_0x5b2dec['type']&&'$text'!=_0x5b2dec['name']);for(const _0x417ce4 of _0x1344c5)_0x324991['push']({'key':_0x417ce4['attributeKey'],'newValue':_0x417ce4['attributeNewValue'],'oldValue':_0x417ce4['attributeOldValue'],'range':Pt(_0x417ce4['range'],_0x4e2c07['model'])});for(const _0x249513 of _0x15a388){const _0x516707=_0x5c40db['find'](_0x1d67cf=>_0x1d67cf['position']['isEqual'](_0x249513['position']));_0x516707&&_0x324991['push']({'key':m,'newValue':_0x249513['name'],'oldValue':_0x516707['name'],'range':_0x4e2c07['model']['createRangeOn'](_0x249513['position']['nodeAfter'])});}return 0x0!=_0x324991['length']&&this['_reduceExistingSuggestions'](_0x268335,_0x324991);}['_processAttributeSuggestions'](_0x2dbf43){let _0x1b7b91=!0x1;const _0x18a697=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x297ff1=>_0x297ff1['data']['newRange']&&_0x297ff1['name']['startsWith']('suggestion:attribute:'));for(const _0x253bdc of _0x18a697){const {subType:_0x4e5535,id:_0x22ae1f}=this['_splitMarkerName'](_0x253bdc['name']),_0x4a2982=_0x4e5535['split']('|')[0x0];for(const _0x150aaf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x150aaf['id']!=_0x22ae1f&&'attribute'==_0x150aaf['type']&&_0x150aaf['data']&&_0x150aaf['data']['key']==_0x4a2982&&_0x150aaf['getFirstRange']()['isIntersecting'](_0x253bdc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x150aaf,_0x253bdc['data']['newRange'],_0x2dbf43),_0x1b7b91=!0x0);}return _0x1b7b91;}['_recordAttributeChanges'](_0x505d4f){this['_recordAttributeSuggestions']=!0x0,_0x505d4f();}['_isRegisteredAttribute'](_0x3880ca){const _0x2a6278=this['_isBlockAttribute'](_0x3880ca),_0x3b5d3a=this['_inlineAttributeKeys']['has'](_0x3880ca);return _0x2a6278||_0x3b5d3a;}['_reduceExistingSuggestions'](_0x479752,_0xed0a96){if(0x0==_0xed0a96['length'])return!0x1;let _0x1b9c45=!0x1;for(const _0x1dfdd9 of _0xed0a96){const _0x551092=this['_findSuggestions'](_0x1dfdd9['range'],'attribute')['filter'](_0x4a5729=>!_0x4a5729['meta']['isNextTo'])['map'](_0x75056=>_0x75056['suggestion']),_0x4d91df=_0x2287f9({'newValue':_0x1dfdd9['newValue']});_0x551092['filter'](_0x150af8=>{const [_0x57f488,_0x200279]=_0x150af8['subType']['split']('|');return _0x57f488==_0x1dfdd9['key']&&_0x200279!=_0x4d91df;})['forEach'](_0x3beb2f=>{this['_reduceSuggestionAttributeRange'](_0x3beb2f,_0x1dfdd9['range'],_0x479752),_0x1b9c45=!0x0;});}return _0x1b9c45;}['_reduceSuggestionAttributeRange'](_0x5c8a28,_0x5bd07e,_0x360a09){const _0x5e9bac=_0x5c8a28['getFirstRange']()['getDifference'](_0x5bd07e);0x0!==_0x5e9bac['length']?0x1!==_0x5e9bac['length']?this['_breakSuggestionMarker'](_0x5c8a28,_0x5bd07e['start'],_0x5bd07e['end']):this['_setSuggestionRange'](_0x5c8a28,_0x5e9bac[0x0]):_0x360a09['removeMarker'](_0x5c8a28['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xae4f41){this['_editor']=_0xae4f41,this['_model']=_0xae4f41['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1861c1,_0x2d6300,_0x474971,_0x5bc630,_0xb8f6c0,_0x2f20d2){return new u(this['_model'],{'type':_0x1861c1,'subType':_0x2d6300,'id':_0x474971,'author':_0x5bc630,'creator':_0x5bc630,'attributes':_0xb8f6c0,'onAttributesChange':_0x2f20d2,'onAccept':(..._0x488766)=>this['getSuggestionCallback'](_0x1861c1,_0x2d6300,'accept')(..._0x488766),'onDiscard':(..._0x5cefbd)=>this['getSuggestionCallback'](_0x1861c1,_0x2d6300,'discard')(..._0x5cefbd)});}['registerCustomCallback'](_0x5646ad,_0x2c7aa9,_0x414a10,_0x23251d){const _0x27d578=_0x5646ad+':'+_0x2c7aa9+':'+_0x414a10;this['_customCallbacks']['set'](_0x27d578,_0x23251d);}['getSuggestionCallback'](_0x41e46c,_0x5790f8,_0x2ec808){const _0x4fa87c=_0x41e46c+':'+_0x5790f8+':'+_0x2ec808;return this['_customCallbacks']['get'](_0x4fa87c)||this['_defaultCallbacks']['get'](_0x41e46c+':'+_0x2ec808);}['_registerDefaultCallbacks'](){const _0x45c710=()=>!0x1,_0x2da135=_0x271ca8=>{_0x271ca8['sort']((_0x17d19d,_0x2f7936)=>_0x17d19d['start']['isBefore'](_0x2f7936['start'])?0x1:-0x1),this['_model']['change'](_0x250189=>{for(const _0x516c49 of _0x271ca8){let _0x562ac5;_0x562ac5=_0x516c49['end']['isAtEnd']&&_0x516c49['end']['parent']==_0x516c49['start']['nodeAfter']?_0x250189['createSelection'](_0x516c49['start']['nodeAfter'],'on'):_0x250189['createSelection'](_0x516c49),this['_model']['deleteContent'](_0x562ac5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4b552f=(_0x194d5c,_0x1c8668)=>{_0x1c8668&&this['_model']['change'](_0x47e852=>{const {commandName:_0x424c24,commandParams:_0x1203f5=[]}=_0x1c8668,_0x271aeb=_0x194d5c['map'](_0x15fe57=>(Vt(_0x15fe57)&&(_0x15fe57=this['_model']['createRange'](_0x15fe57['end'])),_0x15fe57))['filter'](_0x839f13=>'$graveyard'!==_0x839f13['root']['rootName']);if(_0x271aeb['length']<0x1)return;const _0x240a77=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1af607=>_0x5ed280['fromRange'](_0x1af607));_0x47e852['setSelection'](_0x271aeb);for(const _0x479c42 of this['_editor']['commands']['commands']())_0x479c42['refresh']();_0x1203f5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x424c24,..._0x1203f5);const _0x490421=_0x240a77['filter'](_0x3e5d93=>'$graveyard'!=_0x3e5d93['root']['rootName']);_0x490421['length']>0x0&&_0x47e852['setSelection'](_0x490421);for(const _0x56eef1 of _0x240a77)_0x56eef1['detach']();});},_0x2e273f=(_0x343946,_0x468d55)=>0x1==_0x343946['length']&&0x1==_0x468d55['length']&&_0x343946[0x0]['end']['isEqual'](_0x468d55[0x0]['start']),_0x3a2ca9=(_0xc968dc,_0x4b5565,_0x2b0144,_0x2e8b38)=>Ht(_0xc968dc,_0x4b5565,_0x2b0144,_0x2e8b38,this['_model'])?[_0xc968dc,_0x4b5565]:Ht(_0x4b5565,_0xc968dc,_0x2e8b38,_0x2b0144,this['_model'])?[_0x4b5565,_0xc968dc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45c710),this['_defaultCallbacks']['set']('insertion:discard',_0x2da135),this['_defaultCallbacks']['set']('insertion:join',_0x2e273f),this['_defaultCallbacks']['set']('insertion:chain',_0x3a2ca9),this['_defaultCallbacks']['set']('deletion:accept',_0x2da135),this['_defaultCallbacks']['set']('deletion:discard',_0x45c710),this['_defaultCallbacks']['set']('deletion:join',_0x2e273f),this['_defaultCallbacks']['set']('deletion:chain',_0x3a2ca9),this['_defaultCallbacks']['set']('formatInline:accept',_0x4b552f),this['_defaultCallbacks']['set']('formatInline:discard',_0x45c710),this['_defaultCallbacks']['set']('formatInline:join',_0x2e273f),this['_defaultCallbacks']['set']('formatInline:chain',_0x45c710),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4b552f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45c710),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e273f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45c710),this['_defaultCallbacks']['set']('attribute:accept',_0x45c710),this['_defaultCallbacks']['set']('attribute:discard',(_0xb0c938,_0x44e002)=>{if(!_0x44e002)return;const _0x4ec050=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51ec7d=>{if(_0x44e002['key']==m)for(const _0x17afd7 of _0xb0c938){const _0xcf2474=_0x17afd7['start']['nodeAfter'],_0x4020d2=_0x44e002['oldValue'];_0x51ec7d['rename'](_0xcf2474,_0x4020d2);}else{if(_0x4ec050['_isBlockAttribute'](_0x44e002['key'])){for(const _0x57f6b5 of _0xb0c938)void 0x0!==_0x44e002['oldValue']?_0x51ec7d['setAttribute'](_0x44e002['key'],_0x44e002['oldValue'],_0x57f6b5['start']['nodeAfter']):_0x51ec7d['removeAttribute'](_0x44e002['key'],_0x57f6b5['start']['nodeAfter']);}else{for(const _0x1f91fb of _0xb0c938)_0x44e002['oldValue']?_0x51ec7d['setAttribute'](_0x44e002['key'],_0x44e002['oldValue'],_0x1f91fb):_0x51ec7d['removeAttribute'](_0x44e002['key'],_0x1f91fb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e273f);}}function Ot(_0x66f178,_0xa0688c,_0x50d335){for(const _0x55e7db of _0xa0688c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x55e7db['root']==_0x55e7db)return!0x1;if(!_0x50d335['containsItem'](_0x55e7db))return!0x1;if(_0x66f178['isObject'](_0x55e7db)||_0x66f178['isLimit'](_0x55e7db))return!0x0;}return!0x1;}function Vt(_0x5f4054){return _0x5f4054['end']['parent']==_0x5f4054['start']['nodeAfter']&&_0x5f4054['end']['isAtStart'];}function Ut(_0x2c9573,_0x5b7b34,_0x1261dc,_0x4ed797){const _0x231140=_0x2673f7=>!_0x2673f7['item']['is']('$textProxy')&&!_0x4ed797['isObject'](_0x2673f7['item']),_0xb291=_0x2c9573['start']['getLastMatchingPosition'](_0x231140),_0x2b6802=_0x2c9573['end']['getLastMatchingPosition'](_0x231140,{'direction':'backward'});return(!_0x2c9573['start']['isEqual'](_0xb291)||!_0x2c9573['end']['isEqual'](_0x2b6802))&&(_0xb291['isBefore'](_0x2b6802)?_0x1261dc['updateMarker'](_0x5b7b34,{'range':_0x1261dc['createRange'](_0xb291,_0x2b6802)}):_0x1261dc['removeMarker'](_0x5b7b34),!0x0);}function Gt(_0x53d5b3){return _0x2287f9(_0x53d5b3);}function Ft(_0x553480){const _0x2e4840=_0x553480['start']['nodeAfter'];return _0x2e4840&&_0x2e4840['is']('element');}function Pt(_0x42c423,_0x11923b){return null==_0x42c423['end']['nodeBefore']&&_0x42c423['end']['parent']==_0x42c423['start']['nodeAfter']?Lt(_0x42c423['start']['nodeAfter'],_0x11923b):_0x42c423;}function Lt(_0x4040bb,_0xc31e2b){const _0x4868f9=_0xc31e2b['schema']['isObject'](_0x4040bb)||_0xc31e2b['schema']['isSelectable'](_0x4040bb);return _0xc31e2b['createRange'](_0xc31e2b['createPositionAt'](_0x4040bb,'before'),_0x4868f9?_0xc31e2b['createPositionAfter'](_0x4040bb):_0xc31e2b['createPositionAt'](_0x4040bb,'end'));}function Ht(_0x52ee56,_0x8ab25e,_0x4b1922,_0x4c41af,_0x4a2968){if(_0x52ee56['next'])return!0x1;if(!Jt(_0x52ee56,_0x8ab25e))return!0x1;if(_0x4b1922['end']['isEqual'](_0x4c41af['start']))return!0x0;if(_0x52ee56['type']!=_0x8ab25e['type'])return!0x1;if(!_0x4b1922['end']['isTouching'](_0x4c41af['start']))return!0x1;const _0x4cb352=_0x4a2968['createRange'](_0x4b1922['end'],_0x4c41af['start'])['getWalker']();for(const _0x4af2ee of _0x4cb352)if(['elementStart','elementEnd']['includes'](_0x4af2ee['type'])&&_0x4a2968['schema']['isLimit'](_0x4af2ee['item']))return!0x1;return!0x0;}function Jt(_0x12195c,_0x64f0c1){if(!_0x12195c['_isDataLoaded']||!_0x64f0c1['_isDataLoaded'])return!0x1;const _0x4fa682=new Set(Object['keys'](_0x12195c['attributes'])),_0x22d5b7=new Set(Object['keys'](_0x64f0c1['attributes']));if(_0x4fa682['delete']('groupId'),_0x22d5b7['delete']('groupId'),0x0==_0x4fa682['size']&&0x0==_0x22d5b7['size'])return!0x0;if(_0x4fa682['size']!=_0x22d5b7['size'])return!0x1;const _0x1f4640={..._0x12195c['attributes']},_0x2676dc={..._0x64f0c1['attributes']};return delete _0x1f4640['groupId'],delete _0x2676dc['groupId'],JSON['stringify'](_0x1f4640)==JSON['stringify'](_0x2676dc);}function qt(_0x3572f6,_0x22f3e4){const _0x140a10=zt(_0x3572f6['attributes']),_0x56b422=zt(_0x22f3e4);if(!_0x3572f6['_isDataLoaded'])return!0x1;for(const _0x1a317f of Object['keys'](_0x56b422))if(!_0x2d7d66(_0x140a10[_0x1a317f],_0x56b422[_0x1a317f]))return!0x1;return!0x0;}function zt(_0x3fec80){const _0x13d7fa=Object['assign']({},_0x3fec80);return delete _0x13d7fa['skipNestingCheck'],delete _0x13d7fa['tablePasteChainId'],_0x13d7fa;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x2bfc2e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3fa4e0,_0x3ab196,_0x3b8472,_0x19b32b){super(),this['model']=_0x3ab196,this['view']=_0x3b8472,this['commentThreadController']=_0x19b32b,this['_editor']=_0x3fa4e0,this['_acceptCommand']=_0x3fa4e0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3fa4e0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40043b,_0x2d8972)=>_0x40043b||_0x2d8972),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a32fd=>_0x2a32fd&&this['_editor']['model']['canEditAt'](_0x3ab196['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42d05e=>_0x42d05e&&this['_editor']['model']['canEditAt'](_0x3ab196['getRanges']())),this['_pendingAction']=null,_0x3b8472['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3b8472,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3b8472,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3b8472,'change:isDirty',()=>{_0x3b8472['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x411747=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x411747);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x141ea4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x12932d,_0x42d5bf,_0x4c6de8,_0xae8b86){super(_0x12932d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x407379(_0x12932d,o(_0x12932d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x42d5bf['authoredAt']),this['bind']('authoredAt')['to'](_0x42d5bf),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x42d5bf,'authoredAt',this,'descriptionParts',(_0x17b3d0,_0x10a3ed,_0x458c98)=>{const _0x2249ec=_0x458c98['map'](_0x5f49e0=>ls(_0x5f49e0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x17b3d0-0x1,_0x42d5bf['author']['name'],_0x10a3ed?_0xae8b86['formatDateTime'](_0x10a3ed):'',new DOMParser()['parseFromString'](_0x2249ec,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3031f9(),this['focusTracker']=new _0x1a6770(),this['keystrokes']=new _0xec262a(),this['focusCycler']=new _0xeffe40({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x173105=>_0x173105['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x42d5bf,this['_localUser']=_0x4c6de8,this['_config']=_0xae8b86,_0xae8b86['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xee32ad(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x486630}=this['_config'];this['commentsListView']=new _0x486630(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',_0x38f72f=>_0x38f72f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x195a46,_0x366b67)=>_0x195a46||!!_0x366b67);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x51946b}=this['_config'],_0x2cf83e=new _0x51946b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53dd9e=_0x2cf83e['commentInputView'];return _0x2cf83e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53dd9e,'value',(_0x50fa51,_0x454ff7,_0x3dc69b)=>!!_0x3dc69b||_0x50fa51&&!_0x454ff7),_0x53dd9e['on']('submit',(_0x1e6052,_0x31d3b6)=>{this['fire']('addComment',_0x31d3b6),_0x53dd9e['editor']['setData']('');}),_0x53dd9e['on']('cancel',()=>this['focus']()),_0x53dd9e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2cf83e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1c6869,_0x1f987e,_0x5130a3,_0x227904){super(_0x1c6869,_0x1f987e,_0x5130a3,_0x227904),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5aca65=>_0x5aca65&&_0x5aca65[0x0]?_0x5aca65[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x608c63,_0x3cec12)=>{let _0x2ad277='';for(const _0x107150 of _0x608c63)_0x2ad277+='<p>'+ls(_0x107150['content'],_0x107150['color'])+'</p>';return _0x3cec12?_0x2ad277:_0x381f86(_0x2ad277,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x227904['SuggestionView'](_0x1c6869,_0x1f987e,{'formatDateTime':_0x227904['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x346f68=this['bindTemplate'],_0x186daa=[this['suggestionView']];return this['commentsListView']&&_0x186daa['push'](this['commentsListView']),this['commentThreadInputView']&&_0x186daa['push'](this['commentThreadInputView']),_0x186daa['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x346f68['if']('isActive','ck-suggestion-wrapper--active'),_0x346f68['to']('type',_0x3caf1b=>'ck-suggestion-'+_0x3caf1b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x346f68['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x186daa};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x141ea4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6755e2,_0x20fa4b,_0x3569a5){super(_0x6755e2),this['_model']=_0x20fa4b,this['_config']=_0x3569a5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x20fa4b),this['acceptButton']=this['_createButton'](o(_0x6755e2,'Accept\x20suggestion'),_0x3b920d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x6755e2,'Discard\x20suggestion'),_0x3b920d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3afdf9(_0x6755e2,_0x20fa4b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3031f9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1a6770(),this['keystrokes']=new _0xec262a(),this['focusCycler']=new _0xeffe40({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49bcec=>_0x49bcec['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2332b9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2332b9['innerHTML']=this['description'],this['on']('change:description',(_0x24b0af,_0xa1d04e,_0x393b4a)=>{_0x2332b9['innerHTML']=_0x393b4a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3cc5a6=this['bindTemplate'],_0x58fc64=[{'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':_0x3cc5a6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cc5a6['to']('authoredAt',_0x8d5998=>this['_config']['formatDateTime'](_0x8d5998))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x58fc64['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x58fc64}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x36591b,_0x4fdfb0,_0x1ed633,_0x197af3,_0x596a4d){const _0x354cd9=new _0x456809(this['locale']);return _0x354cd9['set']({'label':_0x36591b,'icon':_0x4fdfb0,'tooltip':!0x0,'tooltipPosition':_0x596a4d}),_0x354cd9['extendTemplate']({'attributes':{'class':_0x1ed633}}),_0x354cd9['on']('execute',()=>{this['fire'](_0x197af3,this['_model']['id']);}),_0x354cd9;}['_setupKeyboardNavigation'](){const _0x5bfac0=this['element'];this['keystrokes']['listenTo'](_0x5bfac0);for(const _0x1674b2 of this['focusables'])this['focusTracker']['add'](_0x1674b2['element']),this['keystrokes']['listenTo'](_0x1674b2['element']);this['keystrokes']['set']('enter',(_0x33b18c,_0x3b26c0)=>{_0x5bfac0===_0x33b18c['target']&&(this['focusCycler']['focusFirst'](),_0x3b26c0());}),this['keystrokes']['set']('esc',(_0x8ed411,_0x4b78cc)=>{_0x5bfac0!==_0x8ed411['target']&&(this['focus'](),_0x4b78cc());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3cc490{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x854ae2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2ce2fc){super(_0x2ce2fc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x487be2=this['editor']['config'];_0x487be2['define']('trackChanges.SuggestionThreadView',re),_0x487be2['define']('trackChanges.SuggestionView',ce),_0x487be2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x487be2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2975cb,_0x4f2d5f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x70fd90,_0x2f4d9d]of this['_handleControllerBuffer']){const _0x3f0a31=this['_suggestionToController']['has'](_0x70fd90);_0x3f0a31||_0x2f4d9d?_0x3f0a31&&_0x2f4d9d&&this['_destroyController'](_0x70fd90):this['_initializeController'](_0x70fd90);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2975cb,_0x4f2d5f);}['init'](){const _0x5b961d=this['editor'],_0x459d89=_0x5b961d['plugins']['get']('TrackChangesEditing'),_0x449ba8=_0x5b961d['plugins']['get']('Annotations'),_0x4af66f=_0x5b961d['plugins']['get']('EditorAnnotations'),_0x3dccdf=_0x5b961d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4af66f['addSourceCollector'](()=>{const _0x4a8e6d=[];for(const [_0x567e18,_0x2488aa]of Array['from'](this['_suggestionToController'])){const _0x424ade=_0x567e18['getAllAdjacentSuggestions'](),_0x25c3e2=[];for(const _0x5a71e5 of _0x424ade){if(!_0x5a71e5['isInContent'])continue;if(_0x5a71e5['isMultiRange']){_0x25c3e2['push'](..._0x5a71e5['getRanges']());continue;}const _0x56bf5f=_0x5a71e5['getFirstRange']();if(_0x25c3e2['length']>0x0){const _0x1301ee=_0x25c3e2[0x0]['getJoined'](_0x56bf5f);if(_0x1301ee){_0x25c3e2[0x0]=_0x1301ee;continue;}}_0x25c3e2['push'](_0x56bf5f);}_0x4a8e6d['push']([_0x2488aa['view'],_0x25c3e2]);}return _0x4a8e6d;}),this['listenTo'](_0x459d89,'suggestionLoaded',(_0x250f83,_0x18f276)=>{this['listenTo'](_0x18f276,'change:previous',(_0x25a9de,_0xa3dda9,_0x2eb352,_0x5811a8)=>{_0x18f276['isInContent']&&(null==_0x2eb352?(this['_updateController'](_0x5811a8['head']),this['_handleSuggestionControllerDelayed'](_0x18f276,!0x1)):(this['_updateController'](_0x2eb352['head']),null==_0x5811a8&&this['_handleSuggestionControllerDelayed'](_0x18f276,!0x0)));}),null!==_0x18f276['previous']?this['_updateController'](_0x18f276['head']):this['_handleSuggestionControllerDelayed'](_0x18f276,!0x1);}),this['listenTo'](_0x459d89,'suggestionUnloaded',(_0x2f0169,_0x379b1a,_0x24f4ce)=>{this['stopListening'](_0x379b1a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x379b1a),this['_suggestionToController']['has'](_0x379b1a)&&this['_destroyController'](_0x379b1a),_0x24f4ce&&this['_updateController'](_0x24f4ce['head']);}),this['listenTo'](_0x459d89,'suggestionChanged',(_0x3a7fb7,_0x40af07)=>{this['_updateController'](_0x40af07);}),this['listenTo'](_0x449ba8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3dccdf,'addComment',(_0x532081,{threadId:_0x40c785,isFromAdapter:_0x2f8f84})=>{if(_0x2f8f84||!_0x459d89['hasSuggestion'](_0x40c785))return;const _0x599e14=_0x459d89['getSuggestion'](_0x40c785);this['_suggestionToController']['get'](_0x599e14)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x223b2b=this['editor']['plugins']['get']('Annotations'),_0x578f8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe0284d=Array['from'](_0x223b2b['activeAnnotations'],_0xee0e4b=>_0xee0e4b['innerView'])['filter'](_0xa630ec=>this['_viewToController']['has'](_0xa630ec)),_0x291262=[];for(const _0x4e989a of _0xe0284d){const _0x3d3b23=this['_viewToController']['get'](_0x4e989a)['model']['getAllAdjacentSuggestions']();_0x291262['push'](..._0x3d3b23['reduce']((_0xf2c3a0,_0x4b55e7)=>[..._0xf2c3a0,..._0x4b55e7['getMarkerNames']()],[]));}_0x578f8f['activeMarkers']=_0x291262;}['_addUIComponentsToFactory'](){const _0x1f9b51=this['editor'],_0x1c3c01=_0x1f9b51['locale'],_0x2d9c9f=o(_0x1c3c01,'Track\x20changes'),_0x2b66f5=new Wt([{'type':'switchbutton','model':new _0x1be4ba({'withText':!0x0,'isToggleable':!0x0,'label':_0x2d9c9f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x519a9e of _0x2b66f5)if(me(_0x519a9e)){const _0x18d648=_0x1f9b51['commands']['get'](_0x519a9e['model']['commandName']);_0x519a9e['model']['bind']('isOn','isEnabled')['to'](_0x18d648,'value','isEnabled');}_0x1f9b51['ui']['componentFactory']['add']('trackChanges',_0x5607af=>this['_createToolbarButton'](_0x5607af,_0x2b66f5,_0x2d9c9f)),_0x1f9b51['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33573c=>this['_createMenuBarMenu'](_0x33573c,_0x2b66f5,_0x2d9c9f));}['_createToolbarButton'](_0x5b3f5b,_0x53636f,_0x4ddcb4){const _0x201e17=Qt(_0x5b3f5b,_0x1aa0e2),_0xbcd4e6=this['editor']['commands']['get']('trackChanges');_0x201e17['buttonView']['set']({'tooltip':_0x4ddcb4,'label':_0x4ddcb4,'icon':he}),_0x201e17['buttonView']['bind']('isOn')['to'](_0xbcd4e6,'value'),_0x201e17['buttonView']['on']('execute',()=>{_0xbcd4e6['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x201e17,_0x53636f,{'role':'menu'});const _0x5f8073=[];for(const _0x2b97be of _0x53636f)me(_0x2b97be)&&_0x5f8073['push'](this['editor']['commands']['get'](_0x2b97be['model']['commandName']));const _0x17b27f=_0x201e17['buttonView'];return _0x17b27f['actionView']['unbind']('isEnabled'),_0x17b27f['arrowView']['unbind']('isEnabled'),_0x17b27f['actionView']['bind']('isEnabled')['to'](_0xbcd4e6,'isEnabled'),_0x17b27f['arrowView']['bind']('isEnabled')['toMany'](_0x5f8073,'isEnabled',(..._0x7cc268)=>_0x7cc268['some'](_0x5b0f28=>_0x5b0f28)),_0x201e17['on']('execute',_0x57bf93=>{this['editor']['execute'](_0x57bf93['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x201e17;}['_createMenuBarMenu'](_0x38ac47,_0x4ad69a,_0xd93cad){const _0x288487=new Yt(_0x38ac47),_0x55f971=this['editor']['commands']['get']('trackChanges');_0x288487['buttonView']['set']({'label':_0xd93cad,'icon':he});const _0x2322e7=new Zt(_0x38ac47);for(const _0x59d1e3 of _0x4ad69a){if('separator'==_0x59d1e3['type']){_0x2322e7['items']['add'](new Xt(_0x38ac47));continue;}const _0xa55082=new te(_0x38ac47,_0x288487),_0x56c09f=new _0x2c9755(_0x38ac47),_0xc6d531=_0x59d1e3['model'];_0x56c09f['bind'](...Object['keys'](_0xc6d531))['to'](_0xc6d531),_0x56c09f['delegate']('execute')['to'](_0x288487),_0x56c09f['on']('execute',()=>{this['editor']['execute'](_0xc6d531['commandName']),this['editor']['editing']['view']['focus']();}),_0xa55082['children']['add'](_0x56c09f),_0x2322e7['items']['add'](_0xa55082);}return _0x288487['bind']('isEnabled')['to'](_0x55f971,'isEnabled'),_0x288487['panelView']['children']['add'](_0x2322e7),_0x288487;}['_initializeController'](_0x43de75){const _0x919fa1=this['editor'],_0x4a2221=_0x919fa1['config'],_0x571bfa=_0x919fa1['plugins']['get']('Annotations'),_0x41613a=_0x919fa1['plugins']['get']('CommentsRepository'),_0x4e12cc=_0x919fa1['plugins']['get']('EditorAnnotations'),_0x268da2=_0x919fa1['plugins']['get'](_0x854ae2)['me'],_0xd74505=_0x4a2221['get']('trackChanges')['SuggestionThreadView'],_0x526061=_0x4a2221['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51de29,CommentThreadInputView:_0xc46848}=_0x919fa1['plugins']['get']('CommentsUI');let _0x55da71,_0x4478a1,_0x4234d5;this['_annotationViews']['has'](_0x43de75['id'])?(_0x4478a1=this['_annotationViews']['get'](_0x43de75['id']),_0x55da71=_0x4478a1['mainView']):(_0x55da71=new _0xd74505(_0x919fa1['locale'],_0x43de75,_0x268da2,{'disableComments':this['_disableComments'],'editorConfig':_0x4a2221['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4a2221['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a2221['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a2221['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x507d6b(_0x4a2221['get']('locale')),'CommentView':_0x4a2221['get']('comments')['CommentView'],'CommentsListView':_0x51de29,'CommentThreadInputView':_0xc46848,'SuggestionView':_0x526061}),_0x55da71['suggestionView']['acceptButton']['on']('execute',()=>{_0x919fa1['editing']['view']['focus']();}),_0x55da71['suggestionView']['discardButton']['on']('execute',()=>{_0x919fa1['editing']['view']['focus']();}),_0x4478a1=_0x571bfa['createAnnotationView'](this['editor']['locale'],_0x55da71),_0x4478a1['bind']('isDirty')['to'](_0x55da71,'isDirty'),_0x4478a1['bind']('length')['to'](_0x55da71),_0x4478a1['bind']('type')['to'](_0x55da71,'type',_0x5ee9e2=>'suggestion-'+_0x5ee9e2),_0x55da71['on']('escape',()=>{_0x4234d5['fire']('escape');}),this['_annotationViews']['set'](_0x43de75['id'],_0x4478a1));const _0x596e98=_0x41613a['createCommentThreadController'](_0x43de75['commentThread'],_0x55da71),_0x36689c=new ae(_0x919fa1,_0x43de75,_0x55da71,_0x596e98),_0x15d09c=_0x43de75['getAllAdjacentSuggestions']()['filter'](_0x5f3afa=>_0x5f3afa['isInContent']);_0x55da71['descriptionParts']=_0x919fa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x15d09c),this['_suggestionToController']['set'](_0x43de75,_0x36689c),this['_viewToController']['set'](_0x55da71,_0x36689c),_0x4234d5=_0x571bfa['createAnnotation']({'view':_0x4478a1,'target':()=>{const _0x574c62=[],_0x40e7c5=_0x43de75['getAllAdjacentSuggestions']()['filter'](_0x2b1132=>_0x2b1132['isInContent']);for(const _0x126bec of _0x40e7c5)_0x574c62['push'](..._0x126bec['getMarkers']());return _0x393583(_0x919fa1['editing'],_0x574c62);},'type':()=>'suggestion-'+_0x36689c['view']['type']}),_0x41613a['_bindAnnotationToEditors'](_0x55da71,_0x4234d5),_0x571bfa['add'](_0x4234d5),_0x4e12cc['registerAnnotation'](_0x4234d5);}['_destroyController'](_0x242f12){const _0x5b2b95=this['editor']['plugins']['get']('CommentsRepository'),_0x3cf1fe=this['editor']['plugins']['get']('Annotations'),_0x56027f=this['_suggestionToController']['get'](_0x242f12),_0xd88bdd=_0x56027f['view'],_0x17c144=_0x3cf1fe['getByInnerView'](_0xd88bdd);_0x5b2b95['_unbindEditors'](_0xd88bdd),_0x17c144&&_0x3cf1fe['remove'](_0x17c144),this['_suggestionToController']['delete'](_0x242f12),this['_viewToController']['delete'](_0xd88bdd),_0x56027f['destroy']();}['_updateController'](_0x3568c6){if(!_0x3568c6['isInContent']||!this['_suggestionToController']['has'](_0x3568c6))return;const _0x31ec82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23c6fe=this['_suggestionToController']['get'](_0x3568c6),_0x20c8f6=_0x3568c6['getAllAdjacentSuggestions']();_0x23c6fe['view']['descriptionParts']=_0x31ec82['descriptionFactory']['getDescriptions'](_0x20c8f6);}['destroy'](){for(const _0xf0a8b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf0a8b8);for(const _0x2aae52 of this['_annotationViews']['values']())_0x2aae52['mainView']['destroy']();super['destroy']();}}function me(_0x4ec683){return'model'in _0x4ec683;}class k extends _0x3cc490{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3a7de6){this['editor']['plugins']['get'](p)['adapter']=_0x3a7de6;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x53722d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x53722d);}['getSuggestions']({skipNotAttached:_0x5d1e7b=!0x1,toJSON:_0x4d7d48=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d1e7b,'toJSON':_0x4d7d48});}['getSuggestion'](_0x1fe32d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1fe32d);}}const T=['Pagination'];class P extends _0x3cc490{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4b5e85=this['editor'];if(_0x4b5e85['config']['define']('trackChangesData.editorCreator',_0x2d50d0=>{const _0x400970=_0x4b5e85['model']['document']['getRootNames']()['reduce']((_0x36c053,_0x1999c3)=>(_0x36c053[_0x1999c3]='',_0x36c053),{});return _0x4b5e85['constructor']['create'](_0x400970,_0x2d50d0);}),'function'!=typeof _0x4b5e85['config']['get']('trackChangesData')['editorCreator'])throw new _0x1e75e0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x59046a){return N(this['editor'],!0x0,_0x59046a);}['getDataWithDiscardedSuggestions'](_0x115f83){return N(this['editor'],!0x1,_0x115f83);}}class D extends _0x3cc490{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x176b1a){super(_0x176b1a),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x4c26da){return void 0x0!==_0x4c26da['getRootsAttributes'];}async function N(_0x20b7d6,_0x1aab90,_0x21810b){const _0x3273c3=_0x39574(_0x20b7d6,T);_0x3273c3['plugins']['push'](p,D),_0x3273c3['rootsAttributes']=v(_0x20b7d6)?_0x20b7d6['getRootsAttributes']():void 0x0;const _0x242b10=document['createDocumentFragment'](),_0x34c551=_0x20b7d6['config']['get']('trackChangesData')['editorCreator'],_0x5d1088=await _0x34c551(_0x3273c3,()=>function(_0x16a1b3){const _0x4000af=document['createElement']('div');return _0x16a1b3['appendChild'](_0x4000af),_0x4000af;}(_0x242b10));!function(_0x1de874,_0x2c5442){const _0x2c06d9=_0x1de874['model']['document']['getRootNames']()['reduce']((_0x39a47c,_0x5d9f08)=>(_0x39a47c[_0x5d9f08]=_0x1de874['data']['get']({'rootName':_0x5d9f08}),_0x39a47c),{}),_0x37231d=_0x1de874['plugins']['get']('Users')['users']['map'](_0x48f625=>({'id':_0x48f625['id'],'name':_0x48f625['name']})),_0x3396ff=_0x1de874['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e2727=_0x1de874['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3224af=_0x2c5442['plugins']['get']('Users'),_0x26d98d=_0x2c5442['plugins']['get']('TrackChangesEditing'),_0x5f5aa5=_0x2c5442['plugins']['get']('CommentsRepository');for(const _0x3de7ae of _0x5f5aa5['getCommentThreads']())_0x3de7ae['remove']();for(const _0x30b253 of _0x37231d)_0x3224af['getUser'](_0x30b253['id'])||_0x3224af['addUser'](_0x30b253);_0x3224af['me']||_0x3224af['useAnonymousUser']();for(const _0x359944 of _0x1e2727)_0x5f5aa5['addCommentThread'](_0x359944);for(const _0xbe249b of _0x3396ff)_0x26d98d['addSuggestionData'](_0xbe249b);_0x2c5442['data']['set'](_0x2c06d9);}(_0x20b7d6,_0x5d1088),_0x5d1088['execute'](_0x1aab90?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d666a=v(_0x5d1088)?_0x5d1088['getFullData'](_0x21810b):_0x5d1088['data']['get'](_0x21810b);return await _0x5d1088['destroy'](),_0x4d666a;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x55f69e,PendingActions as _0x43cbca,icons as _0x22e7cf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27812c,ObservableMixin as _0x3c9868,uid as _0x55f5c8,insertToPriorityArray as _0x20cd94,priorities as _0x4d60ea,logWarning as _0x3fdb3b,getEnvKeystrokeText as _0x25e90c,FocusTracker as _0x15157f,KeystrokeHandler as _0x266d37,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4730ad,View as _0x294ed2,ViewCollection as _0x23c8b8,FocusCycler as _0x1b6047,ViewModel as _0x220d45,createDropdown as Qt,SplitButtonView as _0xb37fff,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c9be1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x96452c,hashObject as _0xf1b1f,surroundingMarkersDetector as _0x571476,FOCUS_ANNOTATION_KEYSTROKE as _0x5eb0b4,AriaDescriptionView as _0x26ba2b,setupThreadKeyboardNavigation as _0x57141b,trimHtml as _0x1f8706,UserView as _0x4be92a,LateFocusButtonView as _0x2c0a2b,getDateTimeFormatter as _0x3b1251,getAllMarkersDomElementsSorted as _0x5910c7,sanitizeEditorConfig as _0x41993e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xc1b524,LiveRange as _0x46da37,LivePosition as _0x82d64c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x42a791,toWidget as _0x146003}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2874d9,set as _0x3b5b90,isEqual as _0x4b5161,unset as _0x369aef,omit as Tt}from'lodash-es';import{Delete as _0x6be264,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33b193,ShiftEnter as _0x3fff9f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2df938,_0x182cde){super(_0x2df938),this['_enabledCommands']=_0x182cde,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x3497db of this['editor']['commands']['commands']())_0x3497db['affectsData']&&!this['_enabledCommands']['has'](_0x3497db)&&_0x3497db['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x571d5f of this['editor']['commands']['commands']())_0x571d5f['affectsData']&&!this['_enabledCommands']['has'](_0x571d5f)&&_0x571d5f['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x572b58,_0x35ed7b){super(_0x572b58),this['_suggestions']=_0x35ed7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44b657){const _0xd45e09=this['_suggestions']['get'](_0x44b657);if(!_0xd45e09)throw new _0x27812c('track-changes-accept-suggestion-not-found',this);const _0x347042=_0xd45e09['getRanges']();this['editor']['model']['canEditAt'](_0x347042)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd45e09);}}class R extends ts{['_suggestions'];constructor(_0x37da28,_0x1836e1){super(_0x37da28),this['_suggestions']=_0x1836e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26c750){const _0x185903=this['_suggestions']['get'](_0x26c750);if(!_0x185903)throw new _0x27812c('track-changes-discard-suggestion-not-found',this);const _0x4135d0=_0x185903['getRanges']();this['editor']['model']['canEditAt'](_0x4135d0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x185903);}}function ls(_0x569b9c,_0x231663){let _0x5c77e7='';return _0x5c77e7+=_0x569b9c['split']('*')['map']((_0x269d58,_0x27bb7d)=>_0x27bb7d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x269d58)+'</span>':nn(_0x269d58))['join'](''),_0x231663&&(_0x5c77e7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x231663['value']+'\x22\x20title=\x22'+_0x231663['title']+'\x22></span>'),_0x5c77e7;}function nn(_0x317480){const _0x1ba63f=document['createElement']('span');return _0x1ba63f['innerText']=_0x317480,_0x1ba63f['innerHTML'];}function ss(_0x428d62){return _0x428d62['sort']((_0x2094ee,_0x4f2e56)=>'deletion'==_0x2094ee['type']&&'deletion'!=_0x4f2e56['type']?-0x1:'deletion'!=_0x2094ee['type']&&'deletion'==_0x4f2e56['type']?0x1:0x0);}function to(_0x21f34a,_0x1b720e){let _0xa0f005,_0x1b227f=0x0;const _0x517436=[],_0x3ca313=_0x1b720e['schema'];for(;_0x1b227f<_0x21f34a['length'];){const _0x4c144a=_0x21f34a[_0x1b227f],_0x485cce=_0x21f34a[_0x1b227f+0x1];_0xa0f005||(_0xa0f005=_0x1b720e['createPositionBefore'](_0x4c144a)),on(_0x1b720e,_0x4c144a,_0x485cce)||(_0x517436['push'](_0x1b720e['createRange'](_0xa0f005,_0x3ca313['isObject'](_0x4c144a)?_0x1b720e['createPositionAfter'](_0x4c144a):_0x1b720e['createPositionAt'](_0x4c144a,'end'))),_0xa0f005=null),_0x1b227f++;}return _0x517436;}function on(_0xa96e47,_0x479f8d,_0x267006){if(!_0x267006)return!0x1;const _0x30cd47=_0xa96e47['createPositionAfter'](_0x479f8d),_0x158efe=_0xa96e47['createPositionBefore'](_0x267006);return _0x30cd47['isTouching'](_0x158efe);}function rs(_0x438735,_0xbe6e87,_0x18386c){for(;_0x18386c['length'];){const _0x5df9d1=_0x18386c['splice'](0x0,0x64);_0x438735['change'](()=>{for(const _0x38f3aa of _0x5df9d1)_0x38f3aa['isInContent']&&_0xbe6e87['execute'](_0x38f3aa['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x569a76,_0x8e870a,_0x5bd964){super(_0x569a76),this['_command']=_0x8e870a,this['_suggestions']=_0x5bd964,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f0ffc=Array['from'](this['_suggestions']['values']())['some'](_0x2a55f8=>_0x2a55f8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2f0ffc;}['execute'](){const _0x29c1e7=ss(Array['from'](this['_suggestions']['values']()));for(const _0x463564 of _0x29c1e7){const _0xff6bc3=_0x463564['getRanges']();if(!this['editor']['model']['canEditAt'](_0xff6bc3))return;}rs(this['editor']['model'],this['_command'],_0x29c1e7);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x220112,_0x4e14f2,_0x1707ca){super(_0x220112),this['_command']=_0x4e14f2,this['_suggestions']=_0x1707ca,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x49fff5=this['editor']['model']['document']['selection'],_0x59cc45=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a4fd5,_0x38a296){const _0x2f9e17=Array['from'](_0x3a4fd5['getRanges']()),_0x1b11bb=new Set();for(const _0x557e9c of _0x38a296)if(_0x557e9c['isInContent']){for(const _0x4eb7e6 of _0x2f9e17)for(const _0x32f39b of _0x557e9c['getRanges']())(_0x4eb7e6['isIntersecting'](_0x32f39b)||_0x3a4fd5['isCollapsed']&&!_0x557e9c['isMultiRange']&&_0x557e9c['next']&&_0x32f39b['end']['isTouching'](_0x4eb7e6['start']))&&_0x1b11bb['add'](_0x557e9c);}return _0x1b11bb;}(_0x49fff5,_0x59cc45),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3cf4a9=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1de3f1 of _0x3cf4a9){const _0x3e4205=_0x1de3f1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e4205))return;}rs(this['editor']['model'],this['_command'],_0x3cf4a9);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x3c9868(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4529fa,_0x735d29){super(),this['id']=_0x735d29['id'],this['type']=_0x735d29['type'],this['subType']=_0x735d29['subType']||null,this['author']=_0x735d29['author'],this['creator']=_0x735d29['creator']||_0x735d29['author'],this['isExternal']=Boolean(_0x735d29['attributes']&&_0x735d29['attributes']['@external']),this['data']=null,this['_model']=_0x4529fa,this['_onAccept']=_0x735d29['onAccept'],this['_onDiscard']=_0x735d29['onDiscard'],this['_onAttributesChange']=_0x735d29['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x735d29['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x548ef9=this;for(;_0x548ef9['previous'];)_0x548ef9=_0x548ef9['previous'];return _0x548ef9;}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'](_0x13ed81){this['_markerNames']['add'](_0x13ed81);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35cc58=>this['_model']['markers']['get'](_0x35cc58))['filter'](_0x2d0dd1=>_0x2d0dd1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32da7e=>{for(const _0x40b552 of this['getMarkers']())_0x32da7e['removeMarker'](_0x40b552);}),this['_markerNames']['clear']();}['removeMarker'](_0x5521ef){this['_model']['change'](_0x5b652b=>{_0x5b652b['removeMarker'](_0x5521ef);}),this['_markerNames']['delete'](_0x5521ef);}['addRange'](_0x8360c0){const _0x534935='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x534935),this['_model']['change'](_0x25f9fa=>{_0x25f9fa['addMarker'](_0x534935,{'range':_0x8360c0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5467ee){for(const _0x46e665 of this['getRanges']())if(_0x46e665['isIntersecting'](_0x5467ee))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1bcf9c=>_0x1bcf9c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x459cd1,_0x35b33f)=>[..._0x459cd1,..._0x35b33f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x36f680=this['getRanges']();if(0x1!=_0x36f680['length'])return null;const _0x4bef24=_0x36f680[0x0],_0x396f36=_0x4bef24['start']['nodeAfter'],_0x2232e4=_0x4bef24['end']['nodeBefore'];return _0x396f36 instanceof _0xc1b524?_0x396f36!=_0x2232e4?null:_0x396f36: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 _0x678ffc=[];let _0x52f363=this['head'];for(;_0x52f363;)_0x678ffc['push'](_0x52f363),_0x52f363=_0x52f363['next'];return _0x678ffc;}['setAttribute'](_0x1e490e,_0xbd4946){const _0x2c937c=_0x2874d9(this['attributes']);_0x3b5b90(_0x2c937c,_0x1e490e,_0xbd4946),_0x4b5161(_0x2c937c,this['attributes'])||(this['attributes']=_0x2c937c,this['_onAttributesChange'](_0x2c937c));}['removeAttribute'](_0x3046de){const _0x46bac9=_0x2874d9(this['attributes']);_0x369aef(_0x46bac9,_0x3046de),_0x4b5161(_0x46bac9,this['attributes'])||(this['attributes']=_0x46bac9,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 _0x55f5c8()['substr'](0x1,0x5);}}function o(_0x3aac38,_0x5b4f3c,_0x5d8372){const t=_0x3aac38['t'];switch(_0x5b4f3c){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',_0x5d8372);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d8372);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d8372);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d8372);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d8372);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',_0x5d8372);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d8372);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',_0x5d8372);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d8372);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d8372);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d8372);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d8372);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d8372);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d8372);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d8372);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d8372);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d8372);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d8372);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d8372);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d8372);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d8372);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d8372);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d8372);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'},_0x5d8372);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d8372);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d8372);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d8372);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d8372);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d8372);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d8372);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d8372);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d8372);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x5d8372);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d8372);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'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d8372);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d8372);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x5d8372);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'},_0x5d8372);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'},_0x5d8372);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d8372);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5d8372);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5d8372);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5d8372);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5b4f3c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5346b7,_0x23d5c5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5346b7,this['_locale']=_0x23d5c5;}['getDescriptions'](_0x437081){const _0x397f4e=[],_0x4e84b4=new Set(),_0x4e765e=new Set();for(let _0x3ed62c=0x0;_0x3ed62c<_0x437081['length'];_0x3ed62c++){const _0x4dadca=_0x437081[_0x3ed62c];if(!_0x4dadca['isInContent'])continue;const _0x1bb5df=this['_handleCustomCallbackDescription'](_0x4dadca);if(_0x1bb5df){if(null!=_0x4dadca['subType']){if(_0x4e84b4['has'](_0x4dadca['subType']))continue;_0x4e84b4['add'](_0x4dadca['subType']);}_0x397f4e['push'](_0x1bb5df);}else{if('attribute'!=_0x4dadca['type'])'insertion'!=_0x4dadca['type']&&'deletion'!=_0x4dadca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x397f4e,_0x4dadca,_0x437081[_0x3ed62c+0x1]);else{const _0x3f87a9=_0x4dadca['data']['key'];if(_0x4e765e['has'](_0x3f87a9))continue;_0x4e765e['add'](_0x4dadca['data']['key']),_0x3f87a9==m?this['_handleRenameSuggestionDescription'](_0x397f4e,_0x4dadca):this['_handleAttributeSuggestionDescription'](_0x397f4e,_0x4dadca);}}}return this['_resolveDescriptionItems'](_0x397f4e);}['registerDescriptionCallback'](_0x406d5e){this['_customCallbacks']['push'](_0x406d5e);}['registerElementLabel'](_0x25d229,_0x10b3f2,_0x1202b9=_0x4d60ea['normal']){'function'==typeof _0x25d229?_0x20cd94(this['_itemLabelsCallbacks'],{'matchingCallback':_0x25d229,'label':_0x10b3f2,'priority':_0x1202b9}):this['_itemLabels']['set'](_0x25d229,_0x10b3f2);}['registerAttributeLabel'](_0x1f9e36,_0x16b173){this['_attributeLabels']['set'](_0x1f9e36,_0x16b173);}['getItemLabel'](_0x11393a,_0x1aa6eb=0x1){let _0x1c405d;for(const _0xd1cd0a of this['_itemLabelsCallbacks'])if(_0xd1cd0a['matchingCallback'](_0x11393a)){_0x1c405d=_0xd1cd0a['label'];break;}return _0x1c405d||(_0x1c405d=this['_itemLabels']['get'](_0x11393a['name'])),_0x1c405d?_0x1c405d(_0x1aa6eb):0x1!==_0x1aa6eb?_0x1aa6eb+'\x20'+_0x11393a['name']+'s':''+_0x11393a['name'];}['_addDescriptionItems'](_0x1a243f,_0x40d890){const _0x1ff690=_0x40d890['getFirstRange']()['getWalker'](),_0x609de5='insertion'==_0x40d890['type']?'add':'remove';for(const _0x43258e of _0x1ff690){const _0x4f3320=_0x43258e['item'],_0x56e118=_0x1a243f[_0x1a243f['length']-0x1];if(_0x4f3320['is']('$textProxy'))_0x56e118&&_0x56e118['type']['indexOf']('Container')>-0x1&&_0x1a243f['pop'](),_0x56e118&&'text'==_0x56e118['type']?_0x56e118[_0x609de5]+=_0x4f3320['data']:_0x1a243f['push']({'type':'text','add':'add'==_0x609de5?_0x4f3320['data']:'','remove':'remove'==_0x609de5?_0x4f3320['data']:''});else{if(this['_schema']['isObject'](_0x4f3320)){const _0x3b5099=_0x4f3320;if(_0x56e118&&_0x56e118['type']['indexOf']('Container')>-0x1&&_0x1a243f['pop'](),'elementEnd'==_0x43258e['type'])continue;_0x56e118&&_0x56e118['type']==_0x609de5+'Object'&&_0x56e118['element']['name']==_0x3b5099['name']?_0x56e118['quantity']++:_0x1a243f['push']({'type':_0x609de5+'Object','element':_0x3b5099,'quantity':0x1}),_0x1ff690['skip'](_0x3f03fa=>!('elementEnd'==_0x3f03fa['type']&&_0x3f03fa['item']==_0x4f3320));}else{if(this['_schema']['checkChild'](_0x4f3320,'$text')||_0x4f3320['is']('element','softBreak')){const _0x2ed072=_0x4f3320;if('add'==_0x609de5&&'elementStart'==_0x43258e['type']||'remove'==_0x609de5&&'elementEnd'==_0x43258e['type'])continue;if(_0x56e118&&-0x1==_0x56e118['type']['indexOf']('Container')){'text'==_0x56e118['type']&&(_0x56e118[_0x609de5]+='\x0a');continue;}let _0x3adbdf;if(_0x3adbdf='add'==_0x609de5?_0x2ed072['nextSibling']&&!this['_schema']['isObject'](_0x2ed072['nextSibling'])?_0x2ed072['nextSibling']:null:_0x2ed072['previousSibling']&&!this['_schema']['isObject'](_0x2ed072['previousSibling'])?_0x2ed072['previousSibling']:null,_0x2ed072['isEmpty']||_0x3adbdf&&_0x3adbdf['isEmpty']){const _0x201c10=_0x3adbdf&&_0x3adbdf['isEmpty']?_0x3adbdf:_0x2ed072;_0x56e118&&_0x56e118['type']==_0x609de5+'EmptyContainer'&&_0x56e118['element']['name']==_0x201c10['name']?_0x56e118['quantity']++:_0x1a243f['push']({'type':_0x609de5+'EmptyContainer','element':_0x201c10,'quantity':0x1});}else _0x1a243f['push']({'type':_0x609de5+'Container','element':_0x2ed072});}}}}}['_resolveDescriptionItems'](_0x1cda94){const _0x551af8=this['_locale'],_0x2b370d=[],_0x1caef8=[],_0x23dfa0=[];for(const _0x343694 of _0x1cda94)switch(_0x343694['type']){case'text':if(_0x343694['add']=_0x343694['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x343694['remove']=_0x343694['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x343694['add']&&''!=_0x343694['remove']){_0x2b370d['push']({'type':'replace','content':o(_0x551af8,'REPLACE_TEXT',['\x22'+_0x343694['remove']+'\x22','\x22'+_0x343694['add']+'\x22'])});continue;}if(null!=_0x343694['add']['match'](/^ +$/)){_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0',o(_0x551af8,'ELEMENT_SPACE',_0x343694['add']['length']))});continue;}if(null!=_0x343694['remove']['match'](/^ +$/)){_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0',o(_0x551af8,'ELEMENT_SPACE',_0x343694['remove']['length']))});continue;}if(''!=_0x343694['add']){_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0','\x22'+_0x343694['add']+'\x22')});continue;}_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0','\x22'+_0x343694['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'addContainer':_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Split:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'removeContainer':_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Merge:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'addFormat':_0x1caef8['push'](_0x343694['key']);continue;case'removeFormat':_0x23dfa0['push'](_0x343694['key']);continue;default:_0x2b370d['push'](_0x343694);}if(_0x1caef8['length']){const _0x1b8969=_0x1caef8['map'](_0x438df8=>this['_attributeLabels']['has'](_0x438df8)?this['_attributeLabels']['get'](_0x438df8):_0x438df8)['join'](',\x20');_0x2b370d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1b8969)});}if(_0x23dfa0['length']){const _0x5dc89c=_0x23dfa0['map'](_0x4034df=>this['_attributeLabels']['has'](_0x4034df)?this['_attributeLabels']['get'](_0x4034df):_0x4034df)['join'](',\x20');_0x2b370d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5dc89c)});}return _0x2b370d;}['_handleCustomCallbackDescription'](_0xe1e033){for(const _0x43bb43 of this['_customCallbacks']){const _0x58a143=_0x43bb43(_0xe1e033);if(_0x58a143&&'type'in _0x58a143)return _0x58a143;}}['_handleAttributeSuggestionDescription'](_0x5ca85c,_0x555e2c){const _0x50bda6=_0x555e2c['data'],_0x500752=void 0x0===_0x50bda6['newValue']?'removeFormat':'addFormat';_0x5ca85c['push']({'type':_0x500752,'key':_0x50bda6['key']});}['_handleRenameSuggestionDescription'](_0x208bc4,_0x1645d3){_0x208bc4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1645d3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57fb95,_0x18f469,_0x42911a){if(this['_addDescriptionItems'](_0x57fb95,_0x18f469),_0x42911a&&_0x42911a['getFirstRange']()&&!_0x18f469['getFirstRange']()['end']['isEqual'](_0x42911a['getFirstRange']()['start'])){const _0x5c7778=_0x57fb95[_0x57fb95['length']-0x1],_0x3d48ec='insertion'==_0x18f469['type']?'add':'remove';_0x5c7778&&'text'==_0x5c7778['type']&&(_0x5c7778[_0x3d48ec]+='\x0a');}}}class V extends _0x55f69e{['afterInit'](){const _0x4d499e=this['editor'],_0xa4f83b=_0x4d499e['plugins']['get']('TrackChangesEditing');_0x4d499e['commands']['get']('showAIAssistant')&&_0xa4f83b['enableCommand']('showAIAssistant');}}class U extends _0x55f69e{['afterInit'](){const _0x36eb8f=this['editor'],_0x404091=_0x36eb8f['locale'];if(!_0x36eb8f['plugins']['has']('AlignmentEditing'))return;const _0x23a91b=_0x36eb8f['plugins']['get']('TrackChangesEditing');_0x23a91b['enableDefaultAttributesIntegration']('alignment'),_0x23a91b['registerBlockAttribute']('alignment'),_0x23a91b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x404091,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bb2f=this['editor'],_0x149739=_0x35bb2f['locale'];_0x35bb2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x341b95=>{if('formatBlock'!=_0x341b95['type'])return;const {data:_0x4cb1c5}=_0x341b95;if(_0x4cb1c5&&'alignment'==_0x4cb1c5['commandName']){const _0x1ee541=_0x4cb1c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x149739,'*Format:*\x20%0',function(_0x3dceba){switch(_0x3dceba){case'left':return o(_0x149739,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x149739,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x149739,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x149739,'FORMAT_JUSTIFY_TEXT');}}(_0x1ee541))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x55f69e{['afterInit'](){const _0x1c8dfd=this['editor'],_0x19433e=_0x1c8dfd['plugins']['get']('TrackChangesEditing'),_0x2175fd=_0x1c8dfd['locale'];for(const _0xd40f08 of ti){if(!_0x1c8dfd['plugins']['has'](_0xd40f08))continue;const _0x22d6bc=_0xd40f08['slice'](0x0,-0x7)['toLowerCase'](),_0x107c92='FORMAT_'+_0x22d6bc['toUpperCase']();_0x19433e['enableDefaultAttributesIntegration'](_0x22d6bc),_0x19433e['registerInlineAttribute'](_0x22d6bc),_0x19433e['descriptionFactory']['registerAttributeLabel'](_0x22d6bc,o(_0x2175fd,_0x107c92));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x172d52=this['editor'],_0xfbcac1=_0x172d52['locale'],_0x3065cf=_0x172d52['plugins']['get']('TrackChangesEditing');function _0x24e65f(_0x3f45e6,_0x3d428b){_0x3065cf['descriptionFactory']['registerDescriptionCallback'](_0x44622d=>{if('formatInline'!=_0x44622d['type'])return;const {data:_0x9e6fb4}=_0x44622d;return _0x9e6fb4&&_0x9e6fb4['commandName']===_0x3f45e6?_0x9e6fb4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfbcac1,'*Format:*\x20%0',_0x3d428b)}:{'type':'format','content':o(_0xfbcac1,'*Remove\x20format:*\x20%0',_0x3d428b)}:void 0x0;});}_0x24e65f('bold',o(_0xfbcac1,'FORMAT_BOLD')),_0x24e65f('italic',o(_0xfbcac1,'FORMAT_ITALIC')),_0x24e65f('underline',o(_0xfbcac1,'FORMAT_UNDERLINE')),_0x24e65f('code',o(_0xfbcac1,'FORMAT_CODE')),_0x24e65f('strikethrough',o(_0xfbcac1,'FORMAT_STRIKETHROUGH')),_0x24e65f('subscript',o(_0xfbcac1,'FORMAT_SUBSCRIPT')),_0x24e65f('superscript',o(_0xfbcac1,'FORMAT_SUPERSCRIPT'));}}class F extends _0x55f69e{['afterInit'](){const _0x519257=this['editor'],_0x150cc3=_0x519257['locale'];if(!_0x519257['plugins']['has']('BlockQuoteEditing'))return;const _0x200ce2=_0x519257['plugins']['get']('TrackChangesEditing'),_0x12d9e8=this['editor']['commands']['get']('blockQuote');_0x200ce2['enableCommand']('blockQuote',(_0x2869cc,_0x5a7ea1={})=>{const _0x29857e=this['editor']['model']['document']['selection'],_0xc4dd3=_0x5a7ea1&&void 0x0!==_0x5a7ea1['forceValue']?_0x5a7ea1['forceValue']:!_0x12d9e8['value'];let _0xcc5cd7=[];if(_0xc4dd3){const _0x42b791=Array['from'](_0x29857e['getSelectedBlocks']())['filter'](_0x289238=>oo(_0x289238)||function(_0x10f5e1,_0x170a92){const _0x41e8b7=_0x170a92['checkChild'](_0x10f5e1['parent'],'blockQuote'),_0x44c743=_0x170a92['checkChild'](['$root','blockQuote'],_0x10f5e1);return _0x41e8b7&&_0x44c743;}(_0x289238,this['editor']['model']['schema']));_0xcc5cd7=to(_0x42b791,_0x519257['model']);}else{const _0x1c4189=Array['from'](_0x29857e['getSelectedBlocks']())['filter'](_0x2dc12e=>oo(_0x2dc12e));_0xcc5cd7=to(_0x1c4189,_0x519257['model']);}_0x519257['model']['change'](()=>{for(const _0x82595 of _0xcc5cd7)_0x200ce2['markBlockFormat'](_0x82595,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc4dd3}]});});}),_0x200ce2['descriptionFactory']['registerDescriptionCallback'](_0x1f62dd=>{const {data:_0x50ca89}=_0x1f62dd;if(_0x50ca89&&'blockQuote'==_0x50ca89['commandName']){const _0x4f052b=o(_0x150cc3,'ELEMENT_BLOCK_QUOTE');return _0x50ca89['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x150cc3,'*Set\x20format:*\x20%0',_0x4f052b)}:{'type':'format','content':o(_0x150cc3,'*Remove\x20format:*\x20%0',_0x4f052b)};}});}}function oo(_0xfde184){return'blockQuote'==_0xfde184['parent']['name'];}class L extends _0x55f69e{['afterInit'](){const _0xf5847e=this['editor'];_0xf5847e['plugins']['has']('CaseChange')&&(_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x55f69e{['afterInit'](){const _0x158c68=this['editor'];_0x158c68['commands']['get']('ckbox')&&_0x158c68['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x55f69e{['afterInit'](){const _0x5dbb90=this['editor'];if(!_0x5dbb90['plugins']['has']('CodeBlock'))return;const _0x183a76=_0x5dbb90['plugins']['get']('TrackChangesEditing'),_0x3e5e50=_0x5dbb90['locale'],_0x12de00=_0x5dbb90['config']['get']('codeBlock')['languages'],_0x30ee00=_0x5dbb90['commands']['get']('codeBlock');_0x183a76['enableCommand']('indentCodeBlock'),_0x183a76['enableCommand']('outdentCodeBlock'),_0x183a76['enableCommand']('codeBlock',(_0x4ef05f,_0x80a3ec={})=>{const _0x3f65eb=_0x5dbb90['model'],_0x45b705=_0x5dbb90['model']['document']['selection'],_0x54896c=_0x80a3ec&&void 0x0!==_0x80a3ec['forceValue']?_0x80a3ec['forceValue']:!_0x30ee00['value'];let _0x823a19;_0x80a3ec['language']||(_0x80a3ec['language']=_0x12de00[0x0]['language']),_0x823a19=_0x54896c?Array['from'](_0x45b705['getSelectedBlocks']())['filter'](_0x4d09c0=>eo(_0x4d09c0)||function(_0x2dd16a,_0xa83832){if(_0x2dd16a['is']('rootElement')||_0xa83832['isLimit'](_0x2dd16a))return!0x1;return _0xa83832['checkChild'](_0x2dd16a['parent'],'codeBlock');}(_0x4d09c0,_0x3f65eb['schema'])):Array['from'](_0x45b705['getSelectedBlocks']())['filter'](_0xd213d4=>eo(_0xd213d4));const _0x2c29d3=to(_0x823a19,_0x3f65eb);_0x3f65eb['change'](()=>{for(const _0x26325c of _0x2c29d3)_0x183a76['markBlockFormat'](_0x26325c,{'commandName':'codeBlock','commandParams':[{..._0x80a3ec,'forceValue':_0x54896c}],'formatGroupId':'blockName'});});}),(_0x183a76['descriptionFactory']['registerElementLabel']('codeBlock',_0xc179e7=>o(_0x3e5e50,'ELEMENT_CODE_BLOCK',_0xc179e7)),_0x183a76['descriptionFactory']['registerDescriptionCallback'](_0x796fd1=>{if('formatBlock'!=_0x796fd1['type'])return;const _0x45bf0b=_0x3e5e50['t'],{data:_0x2b4fc3}=_0x796fd1;if(!_0x2b4fc3||'codeBlock'!=_0x2b4fc3['commandName'])return;const _0xb39e3e=_0x2b4fc3['commandParams'][0x0]['language'],_0x4f54b8=_0x45bf0b(_0x12de00['find'](_0x5d1e9c=>_0x5d1e9c['language']===_0xb39e3e)['label'])['toLowerCase']();return _0x2b4fc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e5e50,'*Set\x20format:*\x20%0',o(_0x3e5e50,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f54b8+')')}:{'type':'format','content':o(_0x3e5e50,'*Remove\x20format:*\x20%0',o(_0x3e5e50,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5ac74c){return'codeBlock'==_0x5ac74c['name'];}class q extends _0x55f69e{['afterInit'](){const _0x5ef2b9=this['editor'];if(!_0x5ef2b9['plugins']['has']('CommentsEditing'))return;_0x5ef2b9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x44b7e3,_0x220856,_0x38ed63){const _0x2f4e6a=[];for(const _0x4fc085 of _0x220856['getItems']())_0x4fc085['hasAttribute'](_0x44b7e3)&&_0x2f4e6a['push'](_0x38ed63['createRangeOn'](_0x4fc085));return _0x2f4e6a;}function _e(_0x10b1eb,_0x2cb4ca,{showActiveMarker:_0x5a4e2e=!0x0}={}){const _0x1c6b71=_0x10b1eb['plugins']['get']('TrackChangesEditing');return(_0x2e3e7d,_0x32e340,_0x5ce2d2)=>{if(!_0x5ce2d2['consumable']['test'](_0x32e340['markerRange'],_0x2e3e7d['name']))return;const _0x237aa2=_0x32e340['markerRange']['getWalker'](),_0x6bed2f=_0x32e340['markerRange']['start'],_0x1707f9=_0x10b1eb['model']['schema'];let _0x1fb07e=null,_0x5209d7=null,_0x3c23c8=!0x1,_0x43e747=!0x1;for(const _0x3bde64 of _0x237aa2){const _0x335ce8=_0x3bde64['item'];_0x3c23c8=_0x3c23c8||_0x1707f9['isContent'](_0x335ce8);const _0x4f50c8=_0x5ce2d2['mapper']['toViewElement'](_0x335ce8);if(_0x4f50c8&&_0x4f50c8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bde64['type']&&(_0x1707f9['isBlock'](_0x335ce8)&&!_0x1707f9['isLimit'](_0x335ce8)&&(_0x335ce8['nextSibling']||_0x6bed2f['isAtEnd']?_0x1fb07e&&_0x1fb07e['parent']==_0x335ce8||(_0x1fb07e=_0x335ce8,_0x19546c(_0x3bde64['previousPosition']),_0x43e747=!0x0):_0x5209d7=_0x5209d7||_0x3bde64['previousPosition']));}function _0x19546c(_0xce47a4){const {authorId:_0x26a1c9}=_0x1c6b71['_splitMarkerName'](_0x32e340['markerName']),_0x35a277=_0x5ce2d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cb4ca,'data-author-id':_0x26a1c9}),_0x10d72b=_0x5ce2d2['mapper']['toViewPosition'](_0xce47a4);_0x5a4e2e&&_0x1c6b71['activeMarkers']['includes'](_0x32e340['markerName'])&&_0x5ce2d2['writer']['addClass']('ck-suggestion-marker--active',_0x35a277),_0x5ce2d2['writer']['insert'](_0x10d72b,_0x35a277),_0x5ce2d2['mapper']['bindElementToMarker'](_0x35a277,_0x32e340['markerName']);}_0x3c23c8||_0x43e747||!_0x5209d7||_0x19546c(_0x5209d7);};}class z extends _0x55f69e{static get['requires'](){return[_0x6be264];}['init'](){const _0x5be670=this['editor'],_0x5b772f=_0x5be670['plugins']['get']('TrackChangesEditing');_0x5b772f['enableCommand']('delete');const _0x14d836=_0x5be670['commands']['get']('deleteForward');_0x5b772f['enableCommand']('deleteForward',(_0x1026b7,_0x8c51d7={})=>{const _0x38f5c8=_0x5be670['model']['createSelection'](_0x5be670['model']['document']['selection']);_0x38f5c8['isCollapsed']&&_0x5be670['model']['modifySelection'](_0x38f5c8,{'direction':'forward','unit':_0x8c51d7['unit']});const _0x21d47f=_0x38f5c8['getFirstRange'](),_0x5823c1=_0x46da37['fromRange'](_0x21d47f);let _0x4806cf;_0x1026b7(_0x8c51d7),_0x4806cf='$graveyard'==_0x5823c1['root']['rootName']?_0x5be670['model']['createRange'](_0x21d47f['start']):_0x5be670['model']['createRange'](_0x5823c1['start'],_0x5823c1['end']),_0x5823c1['detach'](),_0x5be670['model']['enqueueChange'](_0x14d836['buffer']['batch'],_0x11a5a2=>{_0x14d836['buffer']['lock'](),_0x11a5a2['setSelection'](_0x11a5a2['createRange'](_0x4806cf['end'])),_0x14d836['buffer']['unlock']();});}),_0x5be670['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5be670,'merge'),{'priority':'high'}),_0x5be670['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x42e456,_0x5edc3a,_0x2eb244)=>{_0x2eb244['options']['showSuggestionHighlights']&&_e(_0x5be670,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x42e456,_0x5edc3a,_0x2eb244);},{'priority':'high'}),_0x5be670['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fa2c1,_0x1698d9,_0x2517db)=>{const _0xc6d955=_0x2517db['mapper']['markerNameToElements'](_0x1698d9['markerName']);if(_0xc6d955){for(const _0xc9b80 of _0xc6d955)_0xc9b80['is']('uiElement')&&(_0x2517db['mapper']['unbindElementFromMarkerName'](_0xc9b80,_0x1698d9['markerName']),_0x2517db['writer']['remove'](_0xc9b80));}},{'priority':'high'});}}class K extends _0x55f69e{['afterInit'](){const _0x13e17a=this['editor'];if(!_0x13e17a['plugins']['has']('ListEditing'))return;const _0x11df1f=_0x13e17a['locale'],_0x29910b=_0x13e17a['plugins']['get']('TrackChangesEditing'),_0x5cea6a=_0x13e17a['plugins']['has']('TodoListEditing'),_0x3adf7b=!!_0x13e17a['config']['get']('list.multiBlock');function _0x82a76c(_0x3512bd){return{'type':'format','content':''+o(_0x11df1f,'*Set\x20format:*\x20%0',_0x3512bd)};}function _0x4b74c0(_0x30954f){return{'type':'format','content':''+o(_0x11df1f,'*Remove\x20format:*\x20%0',_0x30954f)};}_0x29910b['enableDefaultAttributesIntegration']('numberedList'),_0x29910b['enableDefaultAttributesIntegration']('bulletedList'),_0x29910b['enableDefaultAttributesIntegration']('customNumberedList'),_0x29910b['enableDefaultAttributesIntegration']('customBulletedList'),_0x29910b['enableDefaultAttributesIntegration']('indentList'),_0x29910b['enableDefaultAttributesIntegration']('outdentList'),_0x29910b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x29910b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x29910b['registerBlockAttribute']('listItemId'),_0x29910b['registerBlockAttribute']('listType'),_0x29910b['registerBlockAttribute']('listIndent'),_0x3adf7b&&(_0x29910b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x29910b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cea6a&&(_0x29910b['enableDefaultAttributesIntegration']('todoList'),_0x29910b['enableDefaultAttributesIntegration']('checkTodoList'),_0x29910b['registerBlockAttribute']('todoListChecked'),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0xd6d7b1=>{const {data:_0x54f543}=_0xd6d7b1;if(_0x54f543&&'todoListChecked'==_0x54f543['key'])return{'type':'format','content':_0x54f543['newValue']?o(_0x11df1f,'*Check\x20item*'):o(_0x11df1f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d14cb=>{if(_0x2d14cb['batch']['isUndo'])return!0x1;let _0x1ccf6b=!0x1;const _0x5c7d13=_0x29910b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e5bc9=>'todoListChecked'===_0x29910b['_getAttributeKey'](_0x1e5bc9));for(const _0x1b48d7 of _0x5c7d13){'todo'!=_0x1b48d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x29910b['_findSuggestions'](_0x1b48d7['getFirstRange'](),'attribute')['find'](_0x4acccb=>'listType'===_0x29910b['_getAttributeKey'](_0x4acccb['suggestion']))||(_0x2d14cb['removeMarker'](_0x1b48d7['getFirstMarker']()),_0x1ccf6b=!0x0));}return _0x1ccf6b;})),_0x29910b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x11df1f,'FORMAT_INDENT'));const _0x3c25bb={'type':'format','content':''};_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x51ca39=>{const {data:_0x5f0038}=_0x51ca39;if(!_0x5f0038||'listType'!=_0x5f0038['key'])return;let _0x45e103=_0x51ca39['head'];for(;_0x45e103;){if(_0x45e103['data']&&(('listStyle'==_0x45e103['data']['key']||'listMarkerStyle'==_0x45e103['data']['key'])&&(_0x45e103['data']['newValue']&&'default'!=_0x45e103['data']['newValue']||'default'!=_0x45e103['data']['oldValue']&&!_0x5f0038['newValue'])||!_0x3adf7b&&_0x45e103['data']['key']==m))return _0x3c25bb;_0x45e103=_0x45e103['next'];}if(null==_0x5f0038['newValue'])switch(_0x5f0038['oldValue']){case'bulleted':return _0x4b74c0(o(_0x11df1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b74c0(o(_0x11df1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b74c0(o(_0x11df1f,'ELEMENT_TODO_LIST'));}switch(_0x5f0038['newValue']){case'bulleted':return _0x82a76c(o(_0x11df1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x82a76c(o(_0x11df1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x82a76c(o(_0x11df1f,'ELEMENT_TODO_LIST'));}}),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x21854a=>{const {data:_0x117dc3}=_0x21854a;if(_0x117dc3&&'listIndent'==_0x117dc3['key'])return null==_0x117dc3['newValue']||null==_0x117dc3['oldValue']&&0x0==_0x117dc3['newValue']?_0x3c25bb:void 0x0;}),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x4ca8b9=>{if('attribute'!=_0x4ca8b9['type'])return;const {data:_0x291919}=_0x4ca8b9;if(!_0x291919||'listItemId'!=_0x291919['key'])return;const _0x1282e1=Ee(_0x4ca8b9);return'newValue'==_0x1282e1?{'type':'format','content':o(_0x11df1f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1282e1?{'type':'format','content':o(_0x11df1f,'*Split:*\x20list\x20item')}:_0x3c25bb;}),_0x13e17a['model']['document']['registerPostFixer'](_0x367eaf=>this['listItemIdFixer'](_0x367eaf)),_0x13e17a['model']['document']['registerPostFixer'](_0x235422=>this['noTrackChangesFixer'](_0x235422)),_0x13e17a['model']['document']['on']('change:data',(_0x1f06bf,_0x54cdfd)=>{if(_0x54cdfd['isUndo']||!_0x54cdfd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb315d3){if(_0xb315d3['batch']['isUndo']||!_0xb315d3['batch']['isLocal'])return!0x1;let _0x4f96f5=!0x1;const _0x17ae5e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a4951=>_0x5a4951['data']&&'listItemId'==_0x5a4951['data']['key'])['filter'](_0x5250c7=>_0x5250c7['data']['newValue']&&_0x5250c7['data']['oldValue']);for(const _0x1b6fd3 of _0x17ae5e)Ee(_0x1b6fd3)||(_0xb315d3['removeMarker'](_0x1b6fd3['getFirstMarker']()),_0x4f96f5=!0x0);return _0x4f96f5;}['noTrackChangesFixer'](_0xd5ae2e){if(_0xd5ae2e['batch']['isUndo']||!_0xd5ae2e['batch']['isLocal'])return!0x1;const _0x5ea689=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5ea689['trackChangesCommand']['value'])return!0x1;let _0x3333fe=!0x1;const _0x35fad3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d6764=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2474ee=>'attribute'==_0x2474ee['type'])['filter'](_0x2ebff6=>_0x35fad3['includes'](_0x2ebff6['attributeKey']));if(0x0==_0x2d6764['length'])return _0x3333fe;for(const _0x528add of _0x2d6764){const _0x1928bb=_0x5ea689['_findSuggestions'](_0x528add['range'],'attribute')['filter'](_0x3432f3=>!_0x3432f3['meta']['isNextTo'])['map'](_0xe70e76=>_0xe70e76['suggestion'])['filter'](_0x1682a8=>{const _0x1ad513=_0x5ea689['_getAttributeKey'](_0x1682a8);return _0x35fad3['includes'](_0x1ad513);});if(_0x1928bb['length']){for(const _0x2bed8f of _0x1928bb)_0xd5ae2e['removeMarker'](_0x2bed8f['getFirstMarker']());_0x3333fe=!0x0;}}return _0x3333fe;}['assureChains'](){const _0x30cc5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55662d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c298b;const _0x5e7a50=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbc2071=>{if(_0xbc2071['data']['oldRange']||!_0xbc2071['data']['newRange'])return null;if(!_0xbc2071['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2c9159}=_0x30cc5b['_splitMarkerName'](_0xbc2071['name']);if(!_0x30cc5b['hasSuggestion'](_0x2c9159))return null;const _0x180fa8=_0x30cc5b['getSuggestion'](_0x2c9159);return _0x55662d['includes'](_0x180fa8['data']['key']);})['map'](_0x56937d=>{const {id:_0x3a2211}=_0x30cc5b['_splitMarkerName'](_0x56937d['name']),_0x4e88bd=_0x30cc5b['getSuggestion'](_0x3a2211);return _0x5c298b=_0x4e88bd['attributes']['groupId'],_0x4e88bd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e7a50['size'])return;const _0x554bf0=_0x30cc5b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19b72b=>'attribute'==_0x19b72b['type']&&_0x19b72b['data']&&_0x55662d['includes'](_0x19b72b['data']['key'])&&_0x19b72b['attributes']['groupId']!=_0x5c298b)['map'](_0xaecc77=>({'listItem':_0xaecc77['getFirstRange']()['start']['nodeAfter'],'groupId':_0xaecc77['attributes']['groupId']})),_0x5485bb=new Set();for(const {groupId:_0xbdb4b0,listItem:_0x4337cd}of _0x554bf0)_0x5e7a50['has'](_0x4337cd)&&_0x5485bb['add'](_0xbdb4b0);for(const _0x115a2b of _0x30cc5b['getSuggestions']())_0x5485bb['has'](_0x115a2b['attributes']['groupId'])&&_0x115a2b['setAttribute']('groupId',_0x5c298b);}['_supportLegacySuggestions'](){const _0x20722a=this['editor'],_0x23a84c=_0x20722a['locale'],_0x5c532c=_0x20722a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c532c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57f863,_0xb4e1b9){const _0x479eef=[];for(let _0x367dac of _0x57f863)_0x367dac['start']['nodeAfter']===_0x367dac['end']['parent']&&(_0x367dac=_0x20722a['model']['createRange'](_0x20722a['model']['createPositionAt'](_0x367dac['start']['nodeAfter'],0x0))),_0x479eef['push'](_0x367dac);_0x20722a['model']['change'](_0x4a7073=>{const _0x2da782=_0x20722a['model']['document']['selection'],_0x39c68b=Array['from'](_0x2da782['getRanges']())['map'](_0x29aea2=>_0x46da37['fromRange'](_0x29aea2));_0x4a7073['setSelection'](_0x479eef),_0x20722a['commands']['get'](_0xb4e1b9['commandName'])['refresh'](),_0xb4e1b9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20722a['execute'](_0xb4e1b9['commandName'],..._0xb4e1b9['commandParams']),_0x4a7073['setSelection'](_0x39c68b);for(const _0x4c5938 of _0x39c68b)_0x4c5938['detach']();});}),_0x5c532c['descriptionFactory']['registerElementLabel'](function(_0x5f12c2){const _0x1a4f86=!_0x20722a['model']['schema']['isObject'](_0x5f12c2),_0x437071=_0x5f12c2['previousSibling'],_0x310b29=_0x5f12c2['nextSibling'],_0x4f9a84=_0x5f12c2['getAttribute']('listItemId'),_0x185bc7=!_0x437071||_0x437071['getAttribute']('listItemId')!==_0x4f9a84,_0x3d8fb4=!_0x310b29||_0x310b29['getAttribute']('listItemId')!==_0x4f9a84;return _0x1a4f86&&Boolean(_0x4f9a84)&&_0x185bc7&&_0x3d8fb4;},_0x5697e3=>o(_0x23a84c,'ELEMENT_LIST_ITEM',_0x5697e3));}['_registerLegacyDescription'](){const _0x575eb6=this['editor'],_0x216783=_0x575eb6['locale'];function _0x475cf1(_0x342cd6){const _0x28b4dd=_0x575eb6['commands']['get']('bulletedList')['value'],_0x4b8316=_0x575eb6['commands']['get']('numberedList')['value'];return'numberedList'===_0x342cd6?_0x28b4dd:_0x4b8316;}_0x575eb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3688f3){if('formatBlock'!=_0x3688f3['type'])return;const {data:_0x548ade}=_0x3688f3;if(!_0x548ade)return;let _0x3da306,_0xd08753,_0x24283a,_0x5d283f;switch(_0x548ade['commandName']){case'bulletedList':_0x24283a=_0x548ade['commandParams'][0x0]['forceValue'],_0x5d283f=_0x475cf1(_0x548ade['commandName']),_0x3da306=_0x24283a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d283f&&_0x575eb6['config']['get']('list.multiBlock')||(_0x3da306='*Change\x20to:*\x20%0'),_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24283a=_0x548ade['commandParams'][0x0]['forceValue'],_0x5d283f=_0x475cf1(_0x548ade['commandName']),_0x3da306=_0x24283a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d283f&&_0x575eb6['config']['get']('list.multiBlock')||(_0x3da306='*Change\x20to:*\x20%0'),_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3da306='*Indent:*\x20%0',_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3da306=function(_0x3aad6a){const _0x558e33=_0x3aad6a['getFirstRange']();let _0x2588e6=_0x558e33['start']['nodeAfter'];for(;_0x2588e6&&_0x558e33['containsItem'](_0x2588e6);){if(_0x2588e6['getAttribute']('listIndent')>0x0)return!0x1;_0x2588e6=_0x2588e6['nextSibling'];}return!0x0;}(_0x3688f3)?o(_0x216783,'*Format:*\x20remove\x20from\x20%0',o(_0x216783,function(_0x18bedd){return'ELEMENT_'+_0x18bedd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3688f3))):o(_0x216783,'*Outdent:*\x20%0',o(_0x216783,'ELEMENT_LIST_ITEM')),_0xd08753={'type':'format','content':_0x3da306};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x548ade['multipleBlocks']&&(_0x3da306='*Merge:*\x20%0',_0xd08753={'type':'deletion','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_LIST_ITEM'))});}return _0xd08753;});}}function Ee(_0x3029db){let _0x10520c=_0x3029db['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10520c;){const _0x5a973f=_0x10520c['getAttribute']('listItemId');if(!_0x5a973f)return!0x1;if(_0x5a973f==_0x3029db['data']['newValue'])return'newValue';if(_0x5a973f==_0x3029db['data']['oldValue'])return'oldValue';_0x10520c=_0x10520c['previousSibling'];}return!0x1;}class pe extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x252072=this['editor']['config']['get']('list.properties'),_0x3be6b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x252072['styles']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listStyle'),_0x3be6b5['registerBlockAttribute']('listStyle')),_0x252072['reversed']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listReversed'),_0x3be6b5['registerBlockAttribute']('listReversed')),_0x252072['startIndex']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listStart'),_0x3be6b5['registerBlockAttribute']('listStart'));const _0x292c68={'type':'format','content':''};_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xc6cf4d=this['editor']['locale'];_0x3be6b5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xc6cf4d,'FORMAT_LIST_REVERSED')),_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](_0x4a540f=>{const {data:_0x3933b5}=_0x4a540f;if(_0x3933b5&&'listReversed'==_0x3933b5['key'])return null==_0x3933b5['newValue']||0x0==_0x3933b5['newValue']&&null==_0x3933b5['oldValue']?_0x292c68:void 0x0;}),_0x3be6b5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xc6cf4d,'FORMAT_LIST_START')),_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](_0x426edf=>{const {data:_0x44d7db}=_0x426edf;if(_0x44d7db&&'listStart'==_0x44d7db['key'])return null==_0x44d7db['newValue']||0x1==_0x44d7db['newValue']&&null==_0x44d7db['oldValue']?_0x292c68:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xaddd27=>{if(_0xaddd27['batch']['isUndo'])return!0x1;let _0x406dd3=!0x1;const _0x5023ae=_0x3be6b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33db70=>{const _0x2aa0d7=_0x3be6b5['_getAttributeKey'](_0x33db70);return'listStart'==_0x2aa0d7||'listReversed'==_0x2aa0d7;});for(const _0x14c0a7 of _0x5023ae){const _0x53dd75=_0x14c0a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x53dd75||'customNumbered'==_0x53dd75)continue;_0x3be6b5['_findSuggestions'](_0x14c0a7['getFirstRange'](),'attribute')['find'](_0x3e1631=>'listType'==_0x3be6b5['_getAttributeKey'](_0x3e1631['suggestion']))||(_0xaddd27['removeMarker'](_0x14c0a7['getFirstMarker']()),_0x406dd3=!0x0);}return _0x406dd3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe07e06){const _0x18b648=this['editor']['locale'],{data:_0x52a424}=_0xe07e06,_0x4381c9={'type':'format','content':''};if(!_0x52a424||'listStyle'!=_0x52a424['key'])return;if(!_0x52a424['oldValue'])return'default'==_0x52a424['newValue']?_0x4381c9:{'type':'format','content':''+o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['newValue'])))};if(!_0x52a424['newValue']){if('default'==_0x52a424['oldValue'])return _0x4381c9;let _0x4ed406=_0xe07e06['head'];for(;_0x4ed406;){if(_0x4ed406['data']&&'listType'==_0x4ed406['data']['key']&&_0x4ed406['data']['newValue'])return _0x4381c9;_0x4ed406=_0x4ed406['next'];}return{'type':'format','content':''+o(_0x18b648,'*Remove\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['oldValue'])))};}if('default'!=_0x52a424['newValue'])return{'type':'format','content':''+o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['newValue'])))};let _0x5a04f3=_0xe07e06['head'];for(;_0x5a04f3;){if(_0x5a04f3['data']&&'listType'==_0x5a04f3['data']['key']&&_0x5a04f3['data']['newValue']&&_0x5a04f3['data']['oldValue'])return _0x4381c9;_0x5a04f3=_0x5a04f3['next'];}return{'type':'format','content':o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,'ELEMENT_'+_0xe07e06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x30623c=this['editor'],_0xa2d080=_0x30623c['locale'];_0x30623c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3150e6=>{if('formatBlock'!=_0x3150e6['type'])return;const {data:_0x4c3d03}=_0x3150e6;if(!_0x4c3d03)return;let _0x3bdc6d,_0x4c667f;switch(_0x4c3d03['commandName']){case'listStyle':_0x3bdc6d='*Change\x20to:*\x20%0',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d,o(_0xa2d080,this['_getTranslationKeyForListStyle'](_0x4c3d03['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bdc6d=_0x4c3d03['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d)};break;case'listStart':_0x3bdc6d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d,_0x4c3d03['commandParams'][0x0]['startIndex'])};}return _0x4c667f;});}['_getTranslationKeyForListStyle'](_0x18f81b){return'ELEMENT_'+function(_0x498a59){if(ye['includes'](_0x498a59))return'bulleted';if(Se['includes'](_0x498a59))return'numbered';return null;}(_0x18f81b)['toUpperCase']()+'_LIST_'+_0x18f81b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x55f69e{static get['requires'](){return[_0x33b193];}['init'](){const _0x43ed94=this['editor'],_0x1746ea=_0x43ed94['plugins']['get']('TrackChangesEditing'),_0x439d85=_0x43ed94['commands']['get']('enter');_0x1746ea['enableCommand']('enter',()=>{_0x43ed94['model']['change'](_0xc5bd93=>{const _0x352f51=_0x43ed94['model']['document']['selection'],_0x46887e=_0x352f51['getFirstPosition'](),_0x4e2775=_0x46da37['fromRange'](_0x352f51['getFirstRange']());if(_0x439d85['enterBlock'](_0xc5bd93)){const _0xafb5a4=_0x43ed94['model']['createPositionAt'](_0x46887e['parent']['nextSibling'],0x0),_0xeccce4=_0xc5bd93['createRange'](_0x46887e,_0xafb5a4);_0x1746ea['markInsertion'](_0xeccce4);}else _0xc5bd93['setSelection'](_0xc5bd93['createRange'](_0x4e2775['end']));_0x4e2775['detach'](),_0x439d85['fire']('afterExecute',{'writer':_0xc5bd93});});}),_0x43ed94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x43ed94,'split'),{'priority':'high'}),_0x43ed94['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xb4cfe1,_0x457e75,_0x46e23b)=>{const _0x552e0b=_0x46e23b['mapper']['markerNameToElements'](_0x457e75['markerName']);if(_0x552e0b){for(const _0x366075 of _0x552e0b)_0x366075['hasClass']('ck-suggestion-marker-split')&&(_0x46e23b['mapper']['unbindElementFromMarkerName'](_0x366075,_0x457e75['markerName']),_0x46e23b['writer']['remove'](_0x366075));}},{'priority':'high'}),_0x43ed94['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd4290e,_0x10d024,_0x305609)=>{_0x305609['options']['showSuggestionHighlights']&&_e(_0x43ed94,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd4290e,_0x10d024,_0x305609);},{'priority':'high'});}}class X extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e7f24=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e7f24['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e7f24['enableCommand']('findNext'),_0x3e7f24['enableCommand']('findPrevious'),_0x3e7f24['enableCommand']('replace'),_0x3e7f24['enableCommand']('replaceAll');}['handleFindCommand'](_0x21d6d7,_0x3a4dc0,_0xeb178f={}){const _0x307483=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21d6d7(_0x269214=>{let _0x7c5c09=('string'==typeof _0x3a4dc0?_0x307483['findByTextCallback'](_0x3a4dc0,_0xeb178f):_0x3a4dc0)(_0x269214);Array['isArray'](_0x7c5c09)&&(_0x7c5c09={'results':_0x7c5c09,'searchText':'string'==typeof _0x3a4dc0?_0x3a4dc0:''});const _0x58f22b=_0x7c5c09['results']['filter'](_0x368558=>!0x1===this['_isInDeletionRange'](_0x368558,_0x269214['item']));return{..._0x7c5c09,'results':_0x58f22b};},_0xeb178f);}['_isInDeletionRange'](_0x34f1c8,_0x34c809){const _0x424671=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34c809,_0x34f1c8['start']),this['editor']['model']['createPositionAt'](_0x34c809,_0x34f1c8['end']));for(const _0x217750 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x424671['getIntersection'](_0x217750['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x55f69e{['afterInit'](){const _0x4e21f2=this['editor']['locale'],_0x589086=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x464f70,commandName:_0x470144}of ro)this['editor']['plugins']['has'](_0x464f70)&&(_0x589086['enableDefaultAttributesIntegration'](_0x470144),_0x589086['registerInlineAttribute'](_0x470144));_0x589086['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e21f2,'FORMAT_FONT_SIZE')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e21f2,'FORMAT_FONT_FAMILY')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e21f2,'FORMAT_FONT_COLOR')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e21f2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ccd8=this['editor'],_0x5bb51a=_0x37ccd8['locale'];_0x37ccd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458d54=>{const _0x350328=_0x5bb51a['t'];if('formatInline'!=_0x458d54['type'])return;const {data:_0x461dc3}=_0x458d54;if(null!=_0x461dc3){if('fontSize'==_0x461dc3['commandName']){const _0x2b6fe7=_0x461dc3['commandParams'][0x0]['value'];if(_0x2b6fe7){const _0x3ae2d3=_0x350328(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x62c91d=>_0x62c91d['model']==_0x2b6fe7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20size:*\x20%0',_0x3ae2d3)};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x461dc3['commandName']){const _0x5337c1=_0x461dc3['commandParams'][0x0]['value'];return _0x5337c1?{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20family:*\x20%0',_0x5337c1)}:{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x461dc3['commandName']){const _0x5ddfa1=_0x461dc3['commandParams'][0x0]['value'];if(_0x5ddfa1){const _0x2f44a0=_0x4730ad(this['editor']['config']['get']('fontColor.colors'))['find'](_0x30eeb8=>_0x30eeb8['model']==_0x5ddfa1);let _0x8e5e47=_0x5ddfa1,_0x557111='';return _0x2f44a0&&(_0x8e5e47=_0x2f44a0['label'],_0x557111=_0x350328(_0x8e5e47)['toLowerCase']()),{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20color:*\x20%0',_0x557111)['trim'](),'color':{'value':_0x5ddfa1,'title':_0x557111||_0x8e5e47}};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x461dc3['commandName']){const _0x477c68=_0x461dc3['commandParams'][0x0]['value'];if(_0x477c68){const _0x58f192=_0x4730ad(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49d2de=>_0x49d2de['model']==_0x477c68);let _0x3facd3=_0x477c68,_0x3d4623='';return _0x58f192&&(_0x3facd3=_0x58f192['label'],_0x3d4623=_0x350328(_0x3facd3)['toLowerCase']()),{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d4623)['trim'](),'color':{'value':_0x477c68,'title':_0x3d4623||_0x3facd3}};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x55f69e{['afterInit'](){const _0x3c90a3=this['editor'],_0x2c3f56=_0x3c90a3['plugins']['get']('TrackChangesEditing'),_0x9e7a55=_0x3c90a3['commands']['get']('copyFormat'),_0x5978e2=_0x3c90a3['commands']['get']('pasteFormat');_0x9e7a55&&_0x5978e2&&(_0x2c3f56['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c3f56['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4be309=this['editor'],_0x46a6f9=_0x4be309['locale'];_0x4be309['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f33a5=>{if('formatBlock'!=_0x4f33a5['type']&&'formatInline'!=_0x4f33a5['type'])return;const {data:_0x439f1a}=_0x4f33a5;if(_0x439f1a&&'pasteFormat'===_0x439f1a['commandName']){const _0x19937d=[],_0x285c5f=_0x439f1a['commandParams'][0x0];for(const [_0x4020f9,_0x51b1de]of Object['entries'](_0x285c5f))_0x19937d['push'](so(_0x4be309,_0x4020f9,_0x51b1de));return _0x19937d['length']?{'type':'format','content':o(_0x46a6f9,'*Set\x20format\x20to:*\x20%0',_0x19937d['join'](',\x20'))}:{'type':'format','content':o(_0x46a6f9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2d9fc4,_0x58f9a8,_0x1bd704){const _0x1ab73e=_0x2d9fc4['locale']['t'],_0x4b50c6=_0x58f9a8['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e14a4=_0x1ab73e(_0x4b50c6['charAt'](0x0)['toUpperCase']()+_0x4b50c6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1bd704)return _0x5e14a4;if('fontColor'===_0x58f9a8||'fontBackgroundColor'===_0x58f9a8){const _0x191978=_0x4730ad(_0x2d9fc4['config']['get']('fontColor.colors'))['find'](_0x53609a=>_0x53609a['model']==_0x1bd704);return _0x5e14a4+'\x20('+(_0x191978?_0x1ab73e(_0x191978['label'])['toLowerCase']():_0x1bd704)+')';}if('fontSize'===_0x58f9a8&&isNaN(parseFloat(_0x1bd704))){const _0x45203a=_0x2d9fc4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d9fc4['config']['get']('fontSize.options'))['find'](_0x59b734=>_0x59b734['model']==_0x1bd704);return _0x5e14a4+'\x20('+(_0x45203a?_0x1ab73e(_0x45203a['title'])['toLowerCase']():_0x1bd704)+')';}return _0x5e14a4+'\x20('+_0x1bd704+')';}class tt extends _0x55f69e{['_headingOptions'];['afterInit'](){const _0x24e6e6=this['editor'];if(!_0x24e6e6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24e6e6['config']['get']('heading.options');const _0x1c44cd=_0x24e6e6['locale'],_0x5aca18=_0x24e6e6['plugins']['get']('TrackChangesEditing');_0x5aca18['enableDefaultAttributesIntegration']('heading');for(const _0x2a3cea of this['_headingOptions'])'paragraph'!=_0x2a3cea['model']&&_0x5aca18['descriptionFactory']['registerElementLabel'](_0x2a3cea['model'],_0x37dc1c=>{const _0x2505de=this['_getHeadingLevel'](_0x2a3cea['model']);return null!==_0x2505de?_0x224401(_0x37dc1c,_0x2505de):_0x4179a6(_0x37dc1c,_0x2a3cea['title']);});function _0x224401(_0x3c1601,_0x456945){return o(_0x1c44cd,'ELEMENT_HEADING',[_0x3c1601,_0x456945]);}function _0x4179a6(_0xce40dd,_0x49784b){return o(_0x1c44cd,'ELEMENT_HEADING_CUSTOM',[_0xce40dd,_0x49784b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5344af=this['editor'],_0x170aff=_0x5344af['locale'];function _0x3d87f4(_0x4c5318,_0x44f19a){return o(_0x170aff,'ELEMENT_HEADING_CUSTOM',[_0x4c5318,_0x44f19a]);}_0x5344af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb27c=>{if('formatBlock'!=_0x3bb27c['type'])return;const {data:_0x445ad6}=_0x3bb27c;if(_0x445ad6&&'heading'==_0x445ad6['commandName']){const _0x415441=_0x445ad6['commandParams'][0x0]['value'],_0x48846d=this['_getHeadingLevel'](_0x415441);if(null!==_0x48846d)return{'type':'format','content':o(_0x170aff,'*Change\x20to:*\x20%0',(_0x236334=0x1,_0x240e3f=_0x48846d,o(_0x170aff,'ELEMENT_HEADING',[_0x236334,_0x240e3f])))};const _0x4f46b6=this['_headingOptions']['find'](_0x45b4b4=>_0x45b4b4['model']===_0x415441)['title'];return{'type':'format','content':o(_0x170aff,'*Change\x20to:*\x20%0',_0x3d87f4(0x1,_0x4f46b6))};}var _0x236334,_0x240e3f;});}['_getHeadingLevel'](_0x107cdc){const _0x347f2e=_0x107cdc['match'](/^heading(\d+)/);if(_0x347f2e)return _0x347f2e[0x1];const _0x3d270e=this['_headingOptions']?.['find'](_0x408689=>_0x408689['model']==_0x107cdc);if(_0x3d270e&&_0x3d270e['view']){const _0x16ae09=_0x3d270e['view'],_0xaf5fc4=(_0x16ae09['name']??_0x16ae09)['match'](/^h(\d+)/);if(_0xaf5fc4)return _0xaf5fc4[0x1];}return null;}}class et extends _0x55f69e{['afterInit'](){const _0xfef51a=this['editor'];if(!_0xfef51a['plugins']['has']('HighlightEditing'))return;const _0x49bb97=_0xfef51a['plugins']['get']('TrackChangesEditing'),_0x381de4=_0xfef51a['locale'];_0x49bb97['enableDefaultAttributesIntegration']('highlight'),_0x49bb97['registerInlineAttribute']('highlight'),_0x49bb97['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x381de4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2af9a6=this['editor'],_0x3fae57=_0x2af9a6['locale'];_0x2af9a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5595a9=>{if('formatInline'!=_0x5595a9['type'])return;const {data:_0x2084ce}=_0x5595a9;if(_0x2084ce&&'highlight'==_0x2084ce['commandName']){const _0x515e42=_0x3fae57['t'],_0x1a363e=_0x2084ce['commandParams'][0x0]['value'];if(_0x1a363e){const _0x5dbdb3=_0x2af9a6['config']['get']('highlight.options')['find'](_0x1bfd12=>_0x1bfd12['model']==_0x1a363e),_0x2e4136=_0x515e42(_0x5dbdb3['title'])['toLowerCase']();return{'type':'format','content':o(_0x3fae57,'*Set\x20highlight:*\x20%0',_0x2e4136),'color':{'value':_0x5dbdb3['color'],'title':_0x5dbdb3['title']}};}return{'type':'format','content':o(_0x3fae57,'*Remove\x20highlight*',o(_0x3fae57,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x55f69e{['afterInit'](){const _0x2fbc92=this['editor'];if(!_0x2fbc92['plugins']['has']('HorizontalLineEditing'))return;_0x2fbc92['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31d411=_0x2fbc92['plugins']['get']('TrackChangesEditing'),_0x50fc88=_0x2fbc92['locale'];_0x31d411['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe1952a=>o(_0x50fc88,'ELEMENT_HORIZONTAL_LINE',_0xe1952a)),_0x2fbc92['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x37b54f,{writer:_0x6b7e3f,options:_0x549b7f})=>{if(!_0x549b7f['showSuggestionHighlights'])return null;const _0x1eeb7f=_0x6b7e3f['createContainerElement']('div'),_0x41b211=_0x6b7e3f['createEmptyElement']('hr');return _0x6b7e3f['addClass']('ck-horizontal-line',_0x1eeb7f),_0x6b7e3f['insert'](_0x6b7e3f['createPositionAt'](_0x1eeb7f,0x0),_0x41b211),_0x1eeb7f;},'converterPriority':'high'});}}class st extends _0x55f69e{['afterInit'](){const _0x464a82=this['editor'];if(!_0x464a82['plugins']['has']('HtmlEmbed'))return;const _0x3f574d=_0x464a82['plugins']['get']('TrackChangesEditing'),_0x238f34=_0x464a82['locale'];_0x3f574d['descriptionFactory']['registerElementLabel']('rawHtml',_0x4b88c0=>o(_0x238f34,'ELEMENT_HTML_EMBED',_0x4b88c0)),_0x3f574d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3f574d['registerBlockAttribute']('value'),_0x3f574d['descriptionFactory']['registerDescriptionCallback'](_0x165445=>{if('attribute'!=_0x165445['type'])return;const {data:_0x2e86d3}=_0x165445;if(_0x2e86d3&&'value'==_0x2e86d3['key']&&_0x165445['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x121bbc=o(_0x238f34,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x238f34,'*Change\x20%0\x20content*',_0x121bbc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1691db=this['editor'],_0x33b0ca=_0x1691db['locale'];_0x1691db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575c73=>{if('formatBlock'!=_0x575c73['type'])return;const {data:_0x3b95b3}=_0x575c73;if(_0x3b95b3&&'htmlEmbed'==_0x3b95b3['commandName']){const _0x5637a8=o(_0x33b0ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x33b0ca,'*Change\x20%0\x20content*',_0x5637a8)};}});}}class nt extends _0x55f69e{['afterInit'](){const _0x2ca4dc=this['editor'];if(!_0x2ca4dc['plugins']['has']('ImageEditing'))return;const _0x3d4290=_0x2ca4dc['plugins']['get']('TrackChangesEditing'),_0x17cf72=_0x2ca4dc['plugins']['get']('ImageUtils'),_0x3ec782=_0x2ca4dc['locale'];_0x3d4290['enableCommand']('insertImage'),_0x3d4290['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e4737=>o(_0x3ec782,'ELEMENT_IMAGE',_0x5e4737)),_0x3d4290['descriptionFactory']['registerElementLabel']('imageInline',_0x32dbe2=>o(_0x3ec782,'ELEMENT_INLINE_IMAGE',_0x32dbe2)),_0x3d4290['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3ec782,'ELEMENT_CAPTION')),_0x2ca4dc['plugins']['has']('ImageUploadEditing')&&_0x3d4290['enableCommand']('uploadImage'),_0x2ca4dc['plugins']['has']('ImageBlockEditing')&&_0x2ca4dc['plugins']['has']('ImageInlineEditing')&&(_0x3d4290['enableCommand']('imageTypeInline',(_0x1c5092,_0x3050fd)=>{const _0x2b186a=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']);_0x2ca4dc['model']['change'](()=>{_0x3d4290['markBlockFormat'](_0x2b186a,{'commandName':'imageTypeInline','commandParams':[_0x3050fd]},[],'convertBlockImageToInline');});}),_0x3d4290['enableCommand']('imageTypeBlock',(_0x43ae0f,_0x33785)=>{_0x2ca4dc['model']['change'](_0x405c19=>{let _0x1d5b31=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x59ad14=_0x405c19['createRangeOn'](_0x1d5b31);const _0x10a8f4=_0x82d64c['fromPosition'](_0x59ad14['start'],'toPrevious'),_0x5d5e4e=_0x82d64c['fromPosition'](_0x59ad14['end'],'toNext');_0x3d4290['forceDefaultExecution'](()=>_0x43ae0f(_0x33785)),_0x1d5b31=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x59ad14=_0x405c19['createRangeOn'](_0x1d5b31);const _0xc1a865=_0x405c19['createRange'](_0x10a8f4,_0x5d5e4e);_0x10a8f4['detach'](),_0x5d5e4e['detach'](),_0x3d4290['markBlockFormat'](_0x1d5b31,{'commandName':'imageTypeInline','commandParams':[_0x33785]},[],'convertInlineImageToBlock'),_0xc1a865['start']['isBefore'](_0x59ad14['start'])&&_0x3d4290['markInsertion'](_0x405c19['createRange'](_0xc1a865['start'],_0x59ad14['start']),'convertInlineImageToBlock'),_0x59ad14['end']['isBefore'](_0xc1a865['end'])&&_0x3d4290['markInsertion'](_0x405c19['createRange'](_0x59ad14['end'],_0xc1a865['end']),'convertInlineImageToBlock');});}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d4290['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4cf8e5])=>{const _0x3062a2=_0x3d4290['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x42709c=_0x4cf8e5['start'],_0x15cffb=_0x4cf8e5['end'];const _0x31f4ee=_0x2ca4dc['model']['schema']['getNearestSelectionRange'](_0x42709c,'backward'),_0x3bb25f=_0x2ca4dc['model']['schema']['getNearestSelectionRange'](_0x15cffb,'forward');_0x31f4ee['isCollapsed']&&(_0x42709c=_0x31f4ee['start']),_0x3bb25f['isCollapsed']&&(_0x15cffb=_0x3bb25f['end']),_0x3062a2([_0x2ca4dc['model']['createRange'](_0x42709c,_0x15cffb)]);}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa2826),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa2826)),_0x2ca4dc['plugins']['has']('ImageCaptionEditing')&&(_0x3d4290['enableCommand']('toggleImageCaption',(_0x36f4e4,_0x474e05)=>{const _0x1e8419=_0x2ca4dc['plugins']['get']('ImageCaptionUtils');let _0x71e49d=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x175b1f=_0x1e8419['getCaptionFromImageModelElement'](_0x71e49d);_0x2ca4dc['model']['change'](()=>{if(_0x175b1f)return void _0x3d4290['markDeletion'](_0x2ca4dc['model']['createRangeOn'](_0x175b1f));const _0x159916=_0x17cf72['isBlockImage'](_0x71e49d);_0x36f4e4(_0x474e05),_0x71e49d=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x175b1f=_0x1e8419['getCaptionFromImageModelElement'](_0x71e49d),_0x3d4290['markInsertion'](_0x2ca4dc['model']['createRangeOn'](_0x175b1f),_0x159916?null:'imageCaption');});}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa2826));const _0x2aeee2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xc7382b(_0xecf472,_0x23a027){const _0x240d79=_0x2aeee2['findIndex'](({type:_0x3e87ff,subType:_0x1048d6})=>_0xecf472['type']==_0x3e87ff&&_0xecf472['subType']==_0x1048d6),_0x51874d=_0x2aeee2['findIndex'](({type:_0x426928,subType:_0x1e15f1})=>_0x23a027['type']==_0x426928&&_0x23a027['subType']==_0x1e15f1);if(_0x240d79<0x0||_0x51874d<0x0)return!0x1;const _0x499b22=_0xecf472['getFirstRange'](),_0x32c56e=_0x23a027['getFirstRange']();if((0x0==_0x240d79||0x1==_0x240d79)&&0x2==_0x51874d&&_0x499b22['isIntersecting'](_0x32c56e))return!0x0;if(0x2==_0x240d79&&0x3==_0x51874d){const _0x53ffa2=_0x3d4290['_findSuggestions'](_0x499b22,'insertion')['filter'](({suggestion:_0x37ac81,meta:_0x2176c0})=>_0x2176c0['isOwn']&&'convertInlineImageToBlock'==_0x37ac81['subType']);if(_0x53ffa2['length']>0x1&&_0x32c56e['end']['isEqual'](_0x499b22['start']))return!0x0;if(0x1==_0x53ffa2['length']&&(_0x499b22['start']['isEqual'](_0x32c56e['end'])||_0x499b22['end']['isEqual'](_0x32c56e['start'])))return!0x0;}if(0x3==_0x240d79&&0x3==_0x51874d&&_0x499b22['start']['isBefore'](_0x32c56e['start'])){const _0x243e0c=_0x499b22['end']['nodeAfter'],_0x472d7f=_0x32c56e['start']['nodeBefore'];return _0x17cf72['isBlockImage'](_0x243e0c)&&_0x243e0c===_0x472d7f;}return!0x1;}function _0xa2826(_0x5a3405,_0x214689){return _0xc7382b(_0x5a3405,_0x214689)?[_0x5a3405,_0x214689]:_0xc7382b(_0x214689,_0x5a3405)?[_0x214689,_0x5a3405]:null;}_0x2ca4dc['plugins']['has']('ImageResize')&&(_0x3d4290['enableDefaultAttributesIntegration']('resizeImage'),_0x3d4290['registerBlockAttribute']('resizedWidth'),_0x3d4290['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3ec782,'FORMAT_IMAGE_SIZE'))),_0x2ca4dc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d4290['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d4290['registerBlockAttribute']('alt')),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x5a3c24=>{if(!!_0x2aeee2['find'](({type:_0x1d2e3d,subType:_0x69d7a2})=>_0x5a3c24['type']==_0x1d2e3d&&_0x5a3c24['subType']==_0x69d7a2))return _0x5a3c24['previous']?{}:void 0x0;}),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x81cf24=>{if('insertion'==_0x81cf24['type']||'deletion'==_0x81cf24['type']){const _0x113b9a=_0x81cf24['getContainedElement']();if(_0x113b9a&&_0x113b9a['is']('element','caption'))return{'type':'insertion'==_0x81cf24['type']?'addObject':'removeObject','element':_0x113b9a,'quantity':0x1};}}),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x53b863=>'formatBlock'==_0x53b863['type']&&'convertInlineImageToBlock'==_0x53b863['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x53b863['type']&&'convertBlockImageToInline'==_0x53b863['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x2bb478=>{if('attribute'!=_0x2bb478['type'])return;const {data:_0x3c4660}=_0x2bb478;if(!_0x3c4660||'alt'!=_0x3c4660['key'])return;const _0x3b2fbc=_0x3c4660['newValue'];return _0x3b2fbc?{'type':'format','content':o(_0x3ec782,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b2fbc+'\x22')}:{'type':'format','content':o(_0x3ec782,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e0ca=this['editor'],_0x4c6e61=_0x41e0ca['locale'];_0x41e0ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a659=>{if('formatBlock'!=_0x47a659['type']&&'formatInline'!=_0x47a659['type'])return;const {data:_0x2040f6}=_0x47a659;if(_0x2040f6){if('imageTextAlternative'==_0x2040f6['commandName']){const _0x3b07db=_0x2040f6['commandParams'][0x0]['newValue'];return _0x3b07db?{'type':'format','content':o(_0x4c6e61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b07db+'\x22')}:{'type':'format','content':o(_0x4c6e61,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2040f6['commandName']){const _0x1e8211=_0x2040f6['commandParams'][0x0]['width'];return _0x1e8211?{'type':'format','content':o(_0x4c6e61,'*Set\x20image\x20width:*\x20%0',_0x1e8211)}:{'type':'format','content':o(_0x4c6e61,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34c55a=this['editor']['locale'],_0x4c9c7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c9c7b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c9c7b['registerBlockAttribute']('src'),_0x4c9c7b['descriptionFactory']['registerDescriptionCallback'](_0x259105=>{if('attribute'!=_0x259105['type'])return;const {data:_0x27067d}=_0x259105;return _0x27067d&&'src'==_0x27067d['key']?_0x27067d['newValue']&&_0x27067d['oldValue']?{'type':'format','content':o(_0x34c55a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c7594=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c7594['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c7594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c7594['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c7594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x82a6b3=this['editor'],_0x48b54b=_0x82a6b3['locale'];_0x82a6b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4841ef=>{if('formatBlock'!=_0x4841ef['type']&&'formatInline'!=_0x4841ef['type'])return;const {data:_0x12ce22}=_0x4841ef;if(!_0x12ce22||'replaceImageSource'!=_0x12ce22['commandName'])return;return{'type':'format','content':o(_0x48b54b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x55f69e{['afterInit'](){const _0x2f910d=this['editor'];if(!_0x2f910d['plugins']['has']('ImageStyleEditing'))return;const _0x2eeb59=_0x2f910d['plugins']['get']('TrackChangesEditing'),_0x4ff60f=_0x2f910d['plugins']['get']('ImageUtils'),_0x1af0b1={};_0x2eeb59['enableCommand']('imageStyle',(_0x129dfa,_0x49630c)=>{const _0x2e20be=_0x2f910d['plugins']['get']('Users')['me'],_0x43fbe0=_0x2f910d['commands']['get']('imageStyle');let _0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),_0x366cb3=_0x2f910d['model']['createRangeOn'](_0x14c422),_0x481899=_0x43fbe0['value'];if(_0x481899==_0x49630c['value'])return;const _0x560f23={'commandName':'imageStyle','commandParams':[_0x49630c],'formatGroupId':_0x55f5c8()};_0x2f910d['model']['change'](()=>{if(_0x2eeb59['getSuggestions']()['filter'](_0xf01e40=>_0xf01e40['isInContent']&&_0x2e20be==_0xf01e40['author']&&('formatBlock'==_0xf01e40['type']||'formatInline'==_0xf01e40['type'])&&('imageStylePreApply'==_0xf01e40['subType']||'imageStylePostApply'==_0xf01e40['subType'])&&_0xf01e40['getFirstRange']()['isEqual'](_0x366cb3))['forEach'](_0x215337=>_0x2eeb59['discardSuggestion'](_0x215337['head'])),_0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),_0x366cb3=_0x2f910d['model']['createRangeOn'](_0x14c422),_0x43fbe0['refresh'](),_0x2f910d['commands']['get']('imageTypeInline')['refresh'](),_0x2f910d['commands']['get']('imageTypeBlock')['refresh'](),_0x481899=_0x43fbe0['value'],_0x481899!=_0x49630c['value'])return _0x4ff60f['isInlineImage'](_0x14c422)&&_0x43fbe0['shouldConvertImageType'](_0x49630c['value'],_0x14c422)?(_0x129dfa({..._0x49630c,'setImageSizes':!0x1}),_0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),void _0x2eeb59['markBlockFormat'](_0x14c422,{..._0x560f23,'commandReversedParams':[{'value':_0x481899||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ff60f['isBlockImage'](_0x14c422)?_0x2eeb59['markBlockFormat'](_0x14c422,_0x560f23,[],'imageStylePostApply'):_0x2eeb59['markInlineFormat'](_0x366cb3,_0x560f23,'imageStylePostApply'));});});for(const _0x11288d of _0x2f910d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1af0b1[_0x11288d['name']]=_0x11288d['title']['toLowerCase']();_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5502a9])=>{_0x4ff60f['setImageNaturalSizeAttributes'](_0x5502a9['getContainedElement']());}),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x106b17,_0x9e63ee)=>{_0x2eeb59['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x106b17,{'commandName':_0x9e63ee['commandName'],'commandParams':_0x9e63ee['commandReversedParams']});}),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x276191,_0x3473ee){if(_0x314424(_0x276191,_0x3473ee))return[_0x276191,_0x3473ee];if(_0x314424(_0x3473ee,_0x276191))return[_0x3473ee,_0x276191];return null;});const _0x3edc5b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x314424(_0x49f8be,_0x547a7b){const _0x4548b5=_0x3edc5b['findIndex'](({type:_0x3dcaa0,subType:_0x17c8ba})=>_0x49f8be['type']==_0x3dcaa0&&_0x49f8be['subType']==_0x17c8ba),_0x80b834=_0x3edc5b['findIndex'](({type:_0x350a83,subType:_0x2d84ce})=>_0x547a7b['type']==_0x350a83&&_0x547a7b['subType']==_0x2d84ce);if(_0x4548b5<0x0||_0x80b834<0x0)return!0x1;const _0x3ed690=_0x49f8be['getFirstRange'](),_0x1f36c9=_0x547a7b['getFirstRange']();if((0x0==_0x4548b5||0x1==_0x4548b5)&&0x2==_0x80b834&&_0x3ed690['isIntersecting'](_0x1f36c9))return!0x0;if(0x2==_0x4548b5&&0x3==_0x80b834){const _0x5733dd=_0x2eeb59['_findSuggestions'](_0x3ed690,'insertion')['filter'](({suggestion:_0x3903ad,meta:_0x1ca51d})=>_0x1ca51d['isOwn']&&'convertInlineImageToBlock'==_0x3903ad['subType']);if(_0x5733dd['length']>0x1&&_0x1f36c9['end']['isEqual'](_0x3ed690['start']))return!0x0;if(0x1==_0x5733dd['length']&&(_0x3ed690['start']['isEqual'](_0x1f36c9['end'])||_0x3ed690['end']['isEqual'](_0x1f36c9['start'])))return!0x0;}if(0x3==_0x4548b5&&0x3==_0x80b834&&_0x3ed690['start']['isBefore'](_0x1f36c9['start'])){const _0x5b8271=_0x3ed690['end']['nodeAfter'],_0x4141aa=_0x1f36c9['start']['nodeBefore'];return _0x4ff60f['isBlockImage'](_0x5b8271)&&_0x5b8271===_0x4141aa;}return!0x1;}_0x2f910d['model']['document']['registerPostFixer'](()=>{let _0x553d36=!0x1;const _0x5b0599=Array['from'](_0x2f910d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50a8f0,data:_0x265a11}of _0x5b0599){const {group:_0x56b599,type:_0x13e1e5,subType:_0x1b822b,id:_0x298b4b}=_0x2eeb59['_splitMarkerName'](_0x50a8f0);if('suggestion'==_0x56b599&&_0x2eeb59['hasSuggestion'](_0x298b4b)){if('formatBlock'==_0x13e1e5&&('imageStylePreApply'==_0x1b822b||'imageStylePostApply'==_0x1b822b)){const _0x39fa76=_0x2eeb59['getSuggestion'](_0x298b4b);if(_0x265a11['newRange']){const _0x3a703a=_0x39fa76['getFirstRange']()['getContainedElement']();if(_0x4ff60f['isBlockImage'](_0x3a703a))continue;_0x2eeb59['discardSuggestion'](_0x39fa76),_0x553d36=!0x0;}}if('insertion'==_0x13e1e5&&'imageCaption'==_0x1b822b&&!_0x265a11['newRange']){const _0x485efe=_0x2eeb59['getSuggestion'](_0x298b4b);_0x485efe['next']&&_0x485efe['next']['isInContent']&&(_0x2eeb59['discardSuggestion'](_0x485efe['next']),_0x553d36=!0x0);}}}return _0x553d36;}),this['_registerLegacyDescription'](_0x1af0b1);}['_registerLegacyDescription'](_0x5be0d2){const _0x4eb0bd=this['editor'],_0x5d1816=_0x4eb0bd['locale'];_0x4eb0bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158e71=>{if('formatBlock'!=_0x158e71['type']&&'formatInline'!=_0x158e71['type'])return;const {data:_0x34c214}=_0x158e71;if(!_0x34c214||'imageStyle'!=_0x34c214['commandName'])return;const _0x281331=_0x34c214['commandParams'][0x0]['value'];return _0x25d006('side'===_0x281331?o(_0x5d1816,'FORMAT_SIDE_IMAGE'):_0x5be0d2[_0x281331]||_0x281331);function _0x25d006(_0x179f58){return{'type':'format','content':o(_0x5d1816,'*Format:*\x20%0',_0x179f58)};}});}}class at extends _0x55f69e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x46961f){super(_0x46961f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x568d26=this['editor'],_0xd84261=_0x568d26['commands']['get']('importWord'),_0x223bb1=_0x568d26['commands']['get']('trackChanges');_0xd84261&&(_0xd84261['on']('execute',(_0x5eb707,[,_0x5e9d6d])=>{this['_trackChangesValueDuringImport']=_0x223bb1['value'],_0x5e9d6d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd84261,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd84261,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x223bb1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x568d26['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x330e8f,_0x52477e){const {suggestions:_0x1ff8d2}=_0x52477e,_0x369e73=this['editor']['commands']['get']('trackChanges'),_0x12390a=_0x369e73['value'];this['_trackChangesValueDuringImport']!==_0x12390a&&(_0x369e73['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ff8d2&&_0x1ff8d2['forEach'](({id:_0x4b8f4d,type:_0x3cbbff,author:_0x1a2857,created_at:_0xa45d1b})=>{const _0x1e83e5={'id':_0x4b8f4d,'type':_0x3cbbff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a2857,'createdAt':_0xa45d1b?new Date(_0xa45d1b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e83e5);});}}class ct extends _0x55f69e{['afterInit'](){const _0x247e60=this['editor'],_0xe7e9f0=_0x247e60['plugins']['get']('TrackChangesEditing');if(_0x247e60['plugins']['has']('IndentEditing')&&(_0xe7e9f0['enableCommand']('indent'),_0xe7e9f0['enableCommand']('outdent')),_0x247e60['plugins']['has']('IndentBlock')){for(const _0x55d461 of['indentBlock','outdentBlock'])_0xe7e9f0['enableDefaultAttributesIntegration'](_0x55d461);}const _0x41e3a2=_0x247e60['locale'];_0xe7e9f0['registerBlockAttribute']('blockIndent'),_0xe7e9f0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x41e3a2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ab7b=this['editor'],_0x117329=_0x28ab7b['locale'],_0x3fb882=_0x28ab7b['plugins']['get']('TrackChangesEditing');_0x3fb882['descriptionFactory']['registerDescriptionCallback'](_0x4b47dd=>{if('formatBlock'!=_0x4b47dd['type'])return;const {data:_0xc232f0}=_0x4b47dd;if(!_0xc232f0)return;if('indentBlock'!=_0xc232f0['commandName']&&'outdentBlock'!=_0xc232f0['commandName'])return;const _0xd7e67=_0x4b47dd['getItems']()[0x0],_0x3f142f=_0x3fb882['descriptionFactory']['getItemLabel'](_0xd7e67);return'indentBlock'==_0xc232f0['commandName']?{'type':'format','content':o(_0x117329,'*Indent:*\x20%0',_0x3f142f)}:'outdentBlock'==_0xc232f0['commandName']?{'type':'format','content':o(_0x117329,'*Outdent:*\x20%0',_0x3f142f)}:void 0x0;});}}class ut extends _0x55f69e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x55f69e{['afterInit'](){const _0x14e443=this['editor'];if(!_0x14e443['plugins']['has']('LinkEditing'))return;const _0x3babc2=_0x14e443['plugins']['get']('TrackChangesEditing'),_0xf3944f=_0x14e443['commands']['get']('link');_0x3babc2['enableDefaultAttributesIntegration']('link'),_0x3babc2['enableDefaultAttributesIntegration']('unlink'),_0x3babc2['registerInlineAttribute']('linkHref');for(const _0x142438 of _0xf3944f['manualDecorators'])_0x3babc2['registerInlineAttribute'](_0x142438['id']),_0x3babc2['descriptionFactory']['registerAttributeLabel'](_0x142438['id'],'link\x20('+_0x142438['label']['toLowerCase']()+')');_0x3babc2['descriptionFactory']['registerDescriptionCallback'](_0x2c1f66=>{if('attribute'!=_0x2c1f66['type'])return;const {data:_0x228e87}=_0x2c1f66;if(!_0x228e87||'linkHref'!=_0x228e87['key'])return;const _0xf32ca8=_0x228e87['newValue'],_0x494436=_0x14e443['locale'];return{'type':'format','content':null==_0xf32ca8?o(_0x494436,'*Remove\x20link*'):o(_0x494436,'*Set\x20link:*\x20%0','\x22'+_0xf32ca8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x267a92=this['editor'],_0x4348ae=_0x267a92['locale'];_0x267a92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50368f=>{if('formatInline'!=_0x50368f['type'])return;const {data:_0x5260e2}=_0x50368f;if(_0x5260e2){if('link'==_0x5260e2['commandName']){const _0x333844=_0x5260e2['commandParams'][0x0];return{'type':'format','content':o(_0x4348ae,'*Set\x20link:*\x20%0','\x22'+_0x333844+'\x22')};}return'unlink'==_0x5260e2['commandName']?{'type':'format','content':o(_0x4348ae,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x55f69e{['afterInit'](){const _0x267830=this['editor'],_0x53307a=_0x267830['locale'];if(!_0x267830['plugins']['has']('LegacyListEditing'))return;const _0x725e5b=_0x267830['plugins']['get']('TrackChangesEditing'),_0x59e0c3=_0x267830['plugins']['has']('LegacyTodoListEditing');function _0x24fa42(_0x1bf81c){return()=>{const _0x15202b=_0x267830['model']['document']['selection'],_0x59c669=_0x267830['commands']['get'](_0x1bf81c);if(_0x59c669['value'])return void _0x267830['execute']('paragraph',{});const _0xbbcb3b=_0x1bf81c['slice'](0x0,-0x4),_0x28cd9d=function(_0x5ba307,_0x5762d8,_0x1a8eb8){let _0x52f0a6=Array['from'](_0x5ba307)['filter'](_0x3c67d9=>function(_0x321b12,_0x2cf62f){return _0x2cf62f['checkChild'](_0x321b12['parent'],'listItem')&&!_0x2cf62f['isObject'](_0x321b12);}(_0x3c67d9,_0x1a8eb8));_0x52f0a6=_0x52f0a6['filter'](_0x429c01=>!_0x429c01['is']('element','listItem')||_0x429c01['getAttribute']('listType')!=_0x5762d8);const _0x359256=new Set();for(const _0x2fbd71 of _0x52f0a6)_0x2fbd71['is']('element','listItem')?_0x359256['add'](fe(_0x2fbd71)):_0x359256['add'](_0x2fbd71);return Array['from'](_0x359256);}(_0x15202b['getSelectedBlocks'](),_0xbbcb3b,_0x267830['model']['schema']);_0x267830['model']['change'](()=>{for(const _0x4af0bd of _0x28cd9d)_0x725e5b['markBlockFormat'](_0x4af0bd,{'commandName':_0x1bf81c,'commandParams':[{'forceValue':!_0x59c669['value']}],'formatGroupId':'blockName'},ue(_0x4af0bd));});};}function _0x27a33c(_0x17b93f){return()=>{const _0x909fb0=function(_0xf7cc69){let _0x3e9d35=Array['from'](_0xf7cc69);const _0x199513=_0x3e9d35['findIndex'](_0x31e7b9=>'listItem'!=_0x31e7b9['name']);return _0x199513>-0x1&&(_0x3e9d35=_0x3e9d35['slice'](0x0,_0x199513)),_0x3e9d35;}(_0x267830['model']['document']['selection']['getSelectedBlocks']()),_0x5a2ea4=_0x267830['model']['createRange'](_0x267830['model']['createPositionAt'](_0x909fb0[0x0],'before'),_0x267830['model']['createPositionAt'](_0x909fb0[_0x909fb0['length']-0x1],'end'));_0x267830['model']['change'](()=>{_0x725e5b['markBlockFormat'](_0x5a2ea4,{'commandName':_0x17b93f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x906fd0){const _0xc7d35b=new Set();for(const _0x5b7317 of _0x906fd0){let _0x207518=_0x5b7317['nextSibling'];for(;_0x207518&&_0x207518['getAttribute']('listIndent')>_0x5b7317['getAttribute']('listIndent');)_0xc7d35b['add'](_0x207518),_0x207518=_0x207518['nextSibling'];}return Array['from'](_0xc7d35b);}(_0x909fb0));});};}_0x725e5b['enableCommand']('numberedList',_0x24fa42('numberedList')),_0x725e5b['enableCommand']('bulletedList',_0x24fa42('bulletedList')),_0x59e0c3&&_0x725e5b['enableCommand']('todoList',_0x24fa42('todoList')),_0x725e5b['enableCommand']('indentList',_0x27a33c('indentList')),_0x725e5b['enableCommand']('outdentList',_0x27a33c('outdentList')),_0x59e0c3&&_0x725e5b['enableCommand']('checkTodoList',()=>{const _0x2d6ae1=_0x267830['commands']['get']('checkTodoList'),_0x47c068=Array['from'](_0x2d6ae1['_selectedElements']);_0x47c068['filter'](_0x256784=>_0x256784['getAttribute']('todoListChecked')!=_0x2d6ae1['value']),_0x267830['model']['change'](()=>{for(const _0x5877a5 of _0x47c068)_0x725e5b['markBlockFormat'](_0x5877a5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d6ae1['value']}]});});}),_0x725e5b['descriptionFactory']['registerElementLabel']('listItem',_0x846f52=>o(_0x53307a,'ELEMENT_LIST_ITEM',_0x846f52)),_0x725e5b['descriptionFactory']['registerDescriptionCallback'](_0x1a2f0d=>{if('formatBlock'!=_0x1a2f0d['type']&&'formatInline'!=_0x1a2f0d['type'])return;const {data:_0x4bd05d}=_0x1a2f0d;if(_0x4bd05d){if('numberedList'==_0x4bd05d['commandName']||'bulletedList'==_0x4bd05d['commandName']||'todoList'==_0x4bd05d['commandName'])switch(_0x4bd05d['commandName']['replace']('List','')){case'bulleted':return _0x8cd4cc(o(_0x53307a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8cd4cc(o(_0x53307a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8cd4cc(o(_0x53307a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4bd05d['commandName'])return{'type':'format','content':o(_0x53307a,'*Indent:*\x20%0',o(_0x53307a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4bd05d['commandName'])return{'type':'format','content':o(_0x53307a,'*Outdent:*\x20%0',o(_0x53307a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4bd05d['commandName'])return _0x4bd05d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53307a,'*Check\x20item*')}:{'type':'format','content':o(_0x53307a,'*Uncheck\x20item*')};}function _0x8cd4cc(_0x5097e5){return{'type':'format','content':o(_0x53307a,'*Change\x20to:*\x20%0',_0x5097e5)};}});}}function fe(_0x5e03ec){const _0x5b1499=_0x5e03ec['getAttribute']('listIndent');if(0x0==_0x5b1499)return _0x5e03ec;let _0x4d4391=_0x5e03ec;for(;_0x5e03ec['previousSibling']&&_0x5e03ec['previousSibling']['is']('element','listItem');){const _0x2b3f2f=_0x5e03ec['previousSibling']['getAttribute']('listIndent');if(_0x2b3f2f==_0x5b1499)_0x4d4391=_0x5e03ec['previousSibling'];else{if(_0x2b3f2f<_0x5b1499)break;}_0x5e03ec=_0x5e03ec['previousSibling'];}return _0x4d4391;}function ue(_0x15ee4a){const _0x362b29=[];if(_0x15ee4a['is']('element','listItem')&&_0x15ee4a['getAttribute']('listIndent')>0x0){let _0x4c55b7=_0x15ee4a['nextSibling'];for(;_0x4c55b7&&'listItem'==_0x4c55b7['name']&&_0x4c55b7['getAttribute']('listIndent')==_0x15ee4a['getAttribute']('listIndent');)_0x362b29['push'](_0x4c55b7),_0x4c55b7=_0x4c55b7['nextSibling'];}return _0x362b29;}class W extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x938a46=this['editor']['config']['get']('list.properties'),_0x2db39a=this['editor']['plugins']['get']('TrackChangesEditing');_0x938a46['styles']&&_0x2db39a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x938a46['reversed']&&_0x2db39a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x938a46['startIndex']&&_0x2db39a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2db39a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4eab38,_0x54bae3={}){const _0x4f1a4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cd697=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4f1a4e['markMultiRangeBlockFormat'](_0x1cd697,{'commandName':'listStyle','commandParams':[{'type':_0x54bae3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x209e51,_0x58b0ef={}){const _0x6a960b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28cfca=this['_getSuggestionBlocks'](_0x378fe8=>_0x378fe8['is']('element','listItem')&&'numbered'===_0x378fe8['getAttribute']('listType'));if(_0x28cfca['length']<0x1)return;const _0x4139ad=_0x28cfca['map'](_0x405db5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x405db5,'before'),this['editor']['model']['createPositionAt'](_0x405db5,0x0)));this['editor']['model']['change'](()=>{_0x6a960b['markMultiRangeBlockFormat'](_0x4139ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x58b0ef['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x391d30,_0x5b2410={}){const _0x4c7e41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x848cb0=this['_getSuggestionBlocks'](_0x2fddf3=>_0x2fddf3['is']('element','listItem')&&'numbered'===_0x2fddf3['getAttribute']('listType'));if(_0x848cb0['length']<0x1)return;const _0x293e55=_0x848cb0['map'](_0x44cd37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44cd37,'before'),this['editor']['model']['createPositionAt'](_0x44cd37,0x0)));this['editor']['model']['change'](()=>{_0x4c7e41['markMultiRangeBlockFormat'](_0x293e55,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b2410['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5efe31){if('formatBlock'!=_0x5efe31['type']&&'formatInline'!=_0x5efe31['type'])return;const _0x1a133e=this['editor']['locale'],{data:_0x467903}=_0x5efe31;if(!_0x467903)return;let _0x21b8a2,_0x2e84f9;switch(_0x467903['commandName']){case'listStyle':_0x21b8a2='*Change\x20to:*\x20%0',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2,o(_0x1a133e,this['_getTranslationKeyForListStyle'](_0x467903['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21b8a2=_0x467903['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2)};break;case'listStart':_0x21b8a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2,_0x467903['commandParams'][0x0]['startIndex'])};}return _0x2e84f9;}['_getSuggestionBlocksForListStyle'](){const _0x3df2eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ac7f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ac7f2[0x0]?.['is']('element','listItem')&&_0x3ac7f2['unshift'](..._0x3df2eb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ac7f2[_0x3ac7f2['length']-0x1]?.['is']('element','listItem')&&_0x3ac7f2['push'](..._0x3df2eb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ac7f2=[...new Set(_0x3ac7f2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ac7f2=_0x3ac7f2['filter'](_0x1a634e=>_0x1a634e['is']('element','listItem'))),_0x3ac7f2;}['_getSuggestionBlocks'](_0x1bb4d0){const _0x5bb953=this['editor']['plugins']['get']('LegacyListUtils');let _0x46f257=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1bb4d0)['map'](_0x2b0686=>{const _0x105d62=this['editor']['model']['createPositionAt'](_0x2b0686,0x0);return[..._0x5bb953['getSiblingNodes'](_0x105d62,'backward'),..._0x5bb953['getSiblingNodes'](_0x105d62,'forward')];})['flat']();return _0x46f257=[...new Set(_0x46f257)],_0x46f257;}['_getTranslationKeyForListStyle'](_0x24ac73){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24ac73)||'default')['toUpperCase']()+'_LIST_'+_0x24ac73['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x55f69e{['afterInit'](){const _0x1f0044=this['editor'];if(!_0x1f0044['plugins']['has']('MediaEmbedEditing'))return;const _0x4bfa1e=_0x1f0044['plugins']['get']('TrackChangesEditing'),_0x44e07e=_0x1f0044['locale'];_0x4bfa1e['enableCommand']('mediaEmbed'),_0x4bfa1e['descriptionFactory']['registerElementLabel']('media',_0x502aa4=>o(_0x44e07e,'ELEMENT_MEDIA',_0x502aa4)),_0x1f0044['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x267bad,{writer:_0xd129a6,options:_0x3275a7})=>{if(_0x3275a7['showSuggestionHighlights'])return _0xd129a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f0044['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3c2f10,_0x3cf74d,_0x17285d)=>{_0x17285d['options']['showSuggestionHighlights']&&_0x3c2f10['stop']();},{'priority':'high'});}}class mt extends _0x55f69e{['afterInit'](){const _0x4c2394=this['editor'];_0x4c2394['plugins']['has']('MentionEditing')&&_0x4c2394['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x55f69e{['afterInit'](){const _0x13c038=this['editor'];if(!_0x13c038['plugins']['has']('MergeFieldsEditing'))return;_0x13c038['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x13c038['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1562f6=_0x13c038['plugins']['get']('TrackChangesEditing'),_0x2ed187=_0x13c038['locale'];_0x1562f6['descriptionFactory']['registerElementLabel']('mergeField',_0x1320a3=>o(_0x2ed187,'ELEMENT_MERGE_FIELD',_0x1320a3)),_0x1562f6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x315d82=>o(_0x2ed187,'ELEMENT_MERGE_FIELD',_0x315d82)),_0x1562f6['descriptionFactory']['registerDescriptionCallback'](_0x4b28d6=>{if('insertion'!=_0x4b28d6['type']&&'deletion'!=_0x4b28d6['type'])return;const _0x28d558=_0x4b28d6['getContainedElement']();if(null==_0x28d558)return;if(!_0x28d558['is']('element','mergeField')&&!_0x28d558['is']('element','mergeFieldBlock'))return;const _0x321bdd=_0x13c038['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x28d558['getAttribute']('id'));return'insertion'==_0x4b28d6['type']?{'type':'insertion','content':o(_0x2ed187,'*Insert:*\x20%0','\x22'+_0x321bdd+'\x22\x20'+o(_0x2ed187,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2ed187,'*Remove:*\x20%0','\x22'+_0x321bdd+'\x22\x20'+o(_0x2ed187,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x55f69e{['afterInit'](){const _0x2eade3=this['editor'],_0x2110ec=_0x2eade3['plugins']['get']('TrackChangesEditing');_0x2eade3['plugins']['has']('MultiLevelList')&&(_0x2110ec['enableDefaultAttributesIntegration']('multiLevelList'),_0x2110ec['registerBlockAttribute']('listMarkerStyle'),_0x2110ec['descriptionFactory']['registerDescriptionCallback'](_0x46a87a=>this['handleDescriptions'](_0x46a87a)));}['handleDescriptions'](_0x5eb122){const _0x3a8526=this['editor']['locale'],{data:_0x3a02c4}=_0x5eb122,_0x10b61a={'type':'format','content':''};if(_0x3a02c4&&'listMarkerStyle'==_0x3a02c4['key']){if(!_0x3a02c4['oldValue'])return{'type':'format','content':o(_0x3a8526,'*Set\x20format:*\x20%0',o(_0x3a8526,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a02c4['newValue']+')'};if(!_0x3a02c4['newValue']){let _0x49b01c=_0x5eb122['head'];for(;_0x49b01c;){if(_0x49b01c['data']&&'listType'==_0x49b01c['data']['key']&&_0x49b01c['data']['newValue'])return _0x10b61a;_0x49b01c=_0x49b01c['next'];}return{'type':'format','content':o(_0x3a8526,'*Remove\x20format:*\x20%0',o(_0x3a8526,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a02c4['oldValue']+')'};}}}}class kt extends _0x55f69e{['afterInit'](){const _0x3ede09=this['editor'];if(!_0x3ede09['plugins']['has']('PageBreakEditing'))return;_0x3ede09['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40edd5=_0x3ede09['plugins']['get']('TrackChangesEditing'),_0x4549b2=_0x3ede09['locale'];_0x40edd5['descriptionFactory']['registerElementLabel']('pageBreak',_0x3bbf85=>o(_0x4549b2,'ELEMENT_PAGE_BREAK',_0x3bbf85));}}class bt extends _0x55f69e{['afterInit'](){const _0x54ba78=this['editor'];if(!_0x54ba78['plugins']['has']('Paragraph'))return;const _0x58c746=_0x54ba78['locale'],_0x40b91c=_0x54ba78['plugins']['get']('TrackChangesEditing');_0x40b91c['descriptionFactory']['registerElementLabel']('paragraph',_0x48c130=>o(_0x58c746,'ELEMENT_PARAGRAPH',_0x48c130)),_0x40b91c['enableDefaultAttributesIntegration']('paragraph'),_0x40b91c['enableCommand']('insertParagraph'),_0x54ba78['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x54ba78),{'priority':'highest'}),_0x54ba78['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ea22,_0x351883,_0x2f1dc6)=>{_0x2f1dc6['options']['showSuggestionHighlights']&&nr(_0x54ba78,{'showActiveMarker':!0x1})(_0x5ea22,_0x351883,_0x2f1dc6);},{'priority':'highest'});const _0x5f428d=_0x40b91c['descriptionFactory'];_0x5f428d['registerDescriptionCallback'](_0x2127cb=>{if('insertion'!==_0x2127cb['type'])return;const {start:_0x234009,end:_0xd1cc5e}=_0x2127cb['getFirstRange']();if(!_0x234009['isTouching'](_0xd1cc5e)||!_0x234009['nodeAfter'])return;const _0x36c81d=_0x54ba78['model']['schema'],_0x23dd1f=_0x234009['nodeAfter'];return _0x36c81d['isBlock'](_0x23dd1f)&&!_0x36c81d['isLimit'](_0x23dd1f)&&_0x36c81d['checkChild'](_0x23dd1f,'$text')?{'type':'insertion','content':o(_0x58c746,'*Insert:*\x20%0',_0x5f428d['getItemLabel'](_0x23dd1f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5222d4=this['editor'],_0x34f6e9=_0x5222d4['locale'];_0x5222d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295e72=>{if('formatBlock'!=_0x295e72['type'])return;const {data:_0x13f8c2}=_0x295e72;return _0x13f8c2&&'paragraph'==_0x13f8c2['commandName']?{'type':'format','content':o(_0x34f6e9,'*Change\x20to:*\x20%0',o(_0x34f6e9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x49858b,{showActiveMarker:_0x37b3bb=!0x0}={}){return(_0x3e0263,_0x546405,_0x538c99)=>{const _0x5261d4=_0x49858b['plugins']['get']('TrackChangesEditing'),_0x2f912f=_0x546405['markerRange']['start'],_0x57255e=_0x546405['markerRange']['end'],_0x2f2d43=_0x49858b['model']['schema'];if(!_0x2f912f['isTouching'](_0x57255e)||!_0x2f912f['nodeAfter'])return;const _0x38935c=_0x2f912f['nodeAfter'];if(_0x2f2d43['isBlock'](_0x38935c)&&!_0x2f2d43['isLimit'](_0x38935c)&&_0x2f2d43['checkChild'](_0x38935c,'$text')){if(!_0x538c99['consumable']['consume'](_0x546405['markerRange'],_0x3e0263['name']))return;const {authorId:_0x3dd6f1}=_0x5261d4['_splitMarkerName'](_0x546405['markerName']),_0x4605b6=_0x538c99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3dd6f1}),_0x584cda=_0x538c99['mapper']['toViewPosition'](_0x57255e);_0x37b3bb&&_0x5261d4['activeMarkers']['includes'](_0x546405['markerName'])&&_0x538c99['writer']['addClass']('ck-suggestion-marker--active',_0x4605b6),_0x538c99['writer']['insert'](_0x584cda,_0x4605b6),_0x538c99['mapper']['bindElementToMarker'](_0x4605b6,_0x546405['markerName']);}};}class wt extends _0x55f69e{['afterInit'](){const _0x5b179c=this['editor'];if(!_0x5b179c['plugins']['has']('RemoveFormatEditing'))return;_0x5b179c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b00c1=this['editor'];_0x4b00c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ac41c=>{if('formatBlock'!=_0x3ac41c['type']&&'formatInline'!=_0x3ac41c['type'])return;const {data:_0x565de1}=_0x3ac41c;return _0x565de1&&'removeFormat'==_0x565de1['commandName']?{'type':'format','content':o(_0x4b00c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x55f69e{['afterInit'](){const _0x6e2bf7=this['editor'];if(!_0x6e2bf7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30efac=_0x6e2bf7['plugins']['get']('TrackChangesEditing');_0x30efac['enableCommand']('goToPreviousRestrictedEditingException'),_0x30efac['enableCommand']('goToNextRestrictedEditingException');const _0x45a502=_0x6e2bf7['plugins']['get']('RestrictedEditingModeEditing');_0x45a502['enableCommand']('trackChanges'),_0x45a502['enableCommand']('acceptSuggestion'),_0x45a502['enableCommand']('discardSuggestion'),_0x45a502['enableCommand']('acceptAllSuggestions'),_0x45a502['enableCommand']('discardAllSuggestions'),_0x45a502['enableCommand']('acceptSelectedSuggestions'),_0x45a502['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x55f69e{static get['requires'](){return[_0x3fff9f];}['init'](){const _0x202e5b=this['editor'],_0x25ded0=_0x202e5b['plugins']['get']('TrackChangesEditing');_0x25ded0['enableCommand']('shiftEnter'),_0x202e5b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x202e5b),{'priority':'high'}),_0x202e5b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x202e5b),{'priority':'high'}),_0x202e5b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9edc6,_0x50e1cb,_0x2e9427)=>{_0x2e9427['options']['showSuggestionHighlights']&&ge(_0x202e5b,{'showActiveMarker':!0x1})(_0x9edc6,_0x50e1cb,_0x2e9427);}),_0x25ded0['descriptionFactory']['registerElementLabel']('softBreak',_0x97cc06=>o(_0x202e5b['locale'],'ELEMENT_LINE_BREAK',_0x97cc06));}}function ge(_0x4ca2fd,{showActiveMarker:_0x249441=!0x0}={}){return(_0x375255,_0x1a966d,_0x9f7b61)=>{const _0x122bf3=_0x4ca2fd['plugins']['get']('TrackChangesEditing');if(!_0x9f7b61['consumable']['test'](_0x1a966d['markerRange'],_0x375255['name']))return;const _0x18acae=_0x4ca2fd['model'];for(const _0x573574 of _0x1a966d['markerRange']['getItems']()){if(!_0x573574['is']('element','softBreak'))continue;const _0x4cd3f7='deletion'==_0x1a966d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4f0642}=_0x122bf3['_splitMarkerName'](_0x1a966d['markerName']),_0x38ba69=_0x9f7b61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4cd3f7,'data-author-id':_0x4f0642}),_0x36b90e=_0x9f7b61['mapper']['toViewPosition'](_0x18acae['createPositionBefore'](_0x573574));_0x249441&&_0x122bf3['activeMarkers']['includes'](_0x1a966d['markerName'])&&_0x9f7b61['writer']['addClass']('ck-suggestion-marker--active',_0x38ba69),_0x9f7b61['writer']['insert'](_0x36b90e,_0x38ba69),_0x9f7b61['mapper']['bindElementToMarker'](_0x38ba69,_0x1a966d['markerName']);}};}class St extends _0x55f69e{['afterInit'](){const _0x44d8a2=this['editor'],_0x1f440c=_0x44d8a2['model'],_0x34ed36=_0x44d8a2['locale'];if(!_0x44d8a2['plugins']['has']('StandardEditingModeEditing'))return;const _0x262411=_0x44d8a2['plugins']['get']('TrackChangesEditing'),_0x4fab05='restrictedEditingException',_0x1b3539=_0x44d8a2['commands']['get'](_0x4fab05);_0x262411['enableCommand'](_0x4fab05,(_0x16e075,_0x2ae3e4={})=>{const _0x4a5e01=_0x1f440c['document']['selection'];if(_0x4a5e01['isCollapsed'])return void _0x16e075(_0x2ae3e4);const _0x44486c=void 0x0!==_0x2ae3e4['forceValue']?_0x2ae3e4['forceValue']:!_0x1b3539['value'];_0x1f440c['change'](()=>{const _0x2f34a0=Array['from'](_0x4a5e01['getRanges']());for(const _0x4edb11 of _0x2f34a0){const _0x40b965=_0x44486c?[_0x4edb11]:io(_0x4fab05,_0x4edb11,_0x1f440c);for(const _0x5254b0 of _0x40b965)_0x262411['markInlineFormat'](_0x5254b0,{'commandName':_0x4fab05,'commandParams':[{'forceValue':_0x44486c}]});}});}),_0x262411['descriptionFactory']['registerDescriptionCallback'](_0x4b49f9=>{if('formatBlock'!=_0x4b49f9['type']&&'formatInline'!=_0x4b49f9['type'])return;const {data:_0x1f2f53}=_0x4b49f9;return _0x1f2f53&&_0x1f2f53['commandName']==_0x4fab05?_0x1f2f53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34ed36,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34ed36,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x55f69e{['afterInit'](){const _0x50d320=this['editor'];if(!_0x50d320['plugins']['has']('Style')||!_0x50d320['plugins']['has']('DataSchema'))return;const _0x4e6dd7=_0x50d320['plugins']['get']('TrackChangesEditing'),_0x5d5f4f=_0x50d320['locale'],_0x38fdae=_0x50d320['config']['get']('style')||{},_0x2676c8=_0x50d320['plugins']['get']('GeneralHtmlSupport'),_0x41fb78=_0x50d320['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50d320['plugins']['get']('DataSchema'),_0x38fdae['definitions']);_0x4e6dd7['enableDefaultAttributesIntegration']('style');const _0x24fd7d=new Set();for(const _0x4f217d of _0x41fb78['block']){const _0x4e67f4=_0x2676c8['getGhsAttributeNameForElement'](_0x4f217d['element']);_0x24fd7d['add'](_0x4e67f4);}const _0x3c25b3=new Set();for(const _0x40ac18 of _0x41fb78['inline']){const _0x46d3fb=_0x2676c8['getGhsAttributeNameForElement'](_0x40ac18['element']);_0x3c25b3['add'](_0x46d3fb);for(const _0x24f4eb of _0x40ac18['ghsAttributes'])_0x3c25b3['add'](_0x24f4eb);}for(const _0x3d3f73 of _0x24fd7d)_0x4e6dd7['registerBlockAttribute'](_0x3d3f73),_0x4e6dd7['descriptionFactory']['registerAttributeLabel'](_0x3d3f73,o(_0x5d5f4f,'FORMAT_STYLE'));for(const _0x482841 of _0x3c25b3)_0x4e6dd7['registerInlineAttribute'](_0x482841),_0x4e6dd7['descriptionFactory']['registerAttributeLabel'](_0x482841,o(_0x5d5f4f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160873=this['editor'],_0x19e946=_0x160873['locale'];_0x160873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46f68f=>{if('formatBlock'!=_0x46f68f['type']&&'formatInline'!=_0x46f68f['type'])return;const {data:_0x16dd41}=_0x46f68f;return _0x16dd41&&'style'===_0x16dd41['commandName']?_0x16dd41['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19e946,'*Set\x20format:*\x20%0',_0x16dd41['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x19e946,'*Remove\x20format:*\x20%0',_0x16dd41['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x55f69e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x478ea4){super(_0x478ea4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4fe35a=this['editor'],_0x1fbd5c=_0x4fe35a['model']['document']['selection'];if(!_0x4fe35a['plugins']['has']('TableEditing'))return;const _0x2dd60a=_0x4fe35a['locale'],_0xb69975=_0x4fe35a['plugins']['get']('TrackChangesEditing'),_0x2ce51e=_0x4fe35a['plugins']['get']('TableUtils');_0xb69975['descriptionFactory']['registerElementLabel']('table',_0x1ca8f7=>o(_0x2dd60a,'ELEMENT_TABLE',_0x1ca8f7)),this['_setupColumnsRowsFixing'](),_0xb69975['enableCommand']('insertTable'),_0xb69975['enableCommand']('selectTableRow'),_0xb69975['enableCommand']('selectTableColumn');for(const _0x4e02cf of['insertTableRowAbove','insertTableRowBelow']){const _0x325fa9=_0x4fe35a['commands']['get'](_0x4e02cf);_0xb69975['enableCommand'](_0x4e02cf,_0x55b6b0=>{_0x4fe35a['model']['change'](_0x40506b=>{_0x55b6b0();const _0x5070b8='above'===_0x325fa9['order'],_0x38a232=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x13608e=_0x2ce51e['getRowIndexes'](_0x38a232),_0x200448=_0x5070b8?_0x13608e['first']-0x1:_0x13608e['last']+0x1,_0x52e791=_0x38a232[0x0]['findAncestor']('table'),_0x1ec8ad=_0x2ce51e['createTableWalker'](_0x52e791,{'startRow':_0x200448,'endRow':_0x200448}),_0x1cc51c=Array['from'](_0x1ec8ad)['map'](_0x36ed04=>_0x40506b['createRangeOn'](_0x36ed04['cell']));_0xb69975['markMultiRangeInsertion'](_0x1cc51c,'tableRow');});});}for(const _0x43d1eb of['insertTableColumnLeft','insertTableColumnRight']){const _0x14be76=_0x4fe35a['commands']['get'](_0x43d1eb);_0xb69975['enableCommand'](_0x43d1eb,_0x101ee7=>{_0x4fe35a['model']['change'](_0x137c52=>{_0x101ee7();const _0xe4fe74='left'===_0x14be76['order'],_0x192dfe=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x27708e=_0x2ce51e['getColumnIndexes'](_0x192dfe),_0x53281f=_0xe4fe74?_0x27708e['first']-0x1:_0x27708e['last']+0x1,_0x5c1f0f=_0x192dfe[0x0]['findAncestor']('table'),_0xc3deb8=_0x2ce51e['createTableWalker'](_0x5c1f0f,{'startRow':0x0,'column':_0x53281f,'includeAllSlots':!0x1}),_0x5a1e99=Array['from'](_0xc3deb8)['map'](_0x3adffe=>_0x137c52['createRangeOn'](_0x3adffe['cell']));_0xb69975['markMultiRangeInsertion'](_0x5a1e99,'tableColumn');});});}for(const _0x5dd87a of['removeTableRow','removeTableColumn']){const _0x2ea53a=_0x5dd87a['substr'](0xb),_0x3ecd19=_0x2ea53a['toLowerCase'](),_0x49ad68=_0x3ecd19['substr'](0x0,0x3)+'span',_0x442733='table'+_0x2ea53a,_0x3e5316='min'+_0x2ea53a,_0x14a3d9='max'+_0x2ea53a;_0xb69975['enableCommand'](_0x5dd87a,()=>{_0x4fe35a['model']['change'](_0x31910b=>{const _0xe4826c=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x103bdb=_0xe4826c[0x0]['findAncestor']('table');let _0x20f362;if('removeTableRow'==_0x5dd87a){const _0xc9d27=_0x2ce51e['getRowIndexes'](_0xe4826c);_0x20f362={'startRow':_0xc9d27['first'],'endRow':_0xc9d27['last'],'includeAllSlots':!0x0};}else{const _0x4f8a74=_0x2ce51e['getColumnIndexes'](_0xe4826c);_0x20f362={'startColumn':_0x4f8a74['first'],'endColumn':_0x4f8a74['last'],'includeAllSlots':!0x0};}const _0x565f78=_0x2ce51e['createTableWalker'](_0x103bdb,_0x20f362),_0x72ca3a=Array['from'](_0x565f78)['map'](({cell:_0x137ad6})=>_0x137ad6),_0x28bc7b=be(_0x72ca3a['filter'](_0x272288=>_0x272288['hasAttribute'](_0x49ad68))),_0x1d2774=be(_0x72ca3a['filter'](_0x555885=>!_0x555885['hasAttribute'](_0x49ad68)))['map'](_0x3c0b04=>_0x31910b['createRangeOn'](_0x3c0b04)),_0xf52ed6=_0xb69975['markMultiRangeDeletion'](_0x1d2774,_0x442733);if(_0xf52ed6&&('tableRow'==_0xf52ed6['subType']||'tableColumn'==_0xf52ed6['subType'])){const _0x58a83a=this['_getSuggestionCoords'](_0xf52ed6);for(const _0x3d6bc4 of _0x28bc7b){const _0x5d4050=_0x31910b['createRangeOn'](_0x3d6bc4),_0x33aa81=_0x2ce51e['getCellLocation'](_0x3d6bc4),_0x3e7a4c=_0x3d6bc4['getAttribute'](_0x49ad68)-0x1,_0x29a2ac=_0x58a83a[_0x3e5316],_0x41e136=_0x58a83a[_0x14a3d9];_0x29a2ac<=_0x33aa81[_0x3ecd19]&&_0x33aa81[_0x3ecd19]+_0x3e7a4c<=_0x41e136&&_0xf52ed6['addRange'](_0x5d4050);}}});});}function _0x9016f7(_0x4f777f){const _0x2f7060=Array['from'](_0x1fbd5c['getRanges']())['map'](_0x206e9f=>_0x46da37['fromRange'](_0x206e9f));_0x4fe35a['model']['change'](_0x4c43c5=>{const _0x2f17e0=_0x4c43c5['batch'];_0x4f777f=_0x4f777f['filter'](_0x41e05e=>'$graveyard'!=_0x41e05e['root']['rootName']),_0x4c43c5['setSelection'](_0x4f777f),_0x4fe35a['commands']['get']('removeTableRow')['refresh'](),_0x4fe35a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4fe35a['model']['enqueueChange'](()=>{_0x4fe35a['model']['enqueueChange'](_0x2f17e0,_0x3151b0=>{const _0x1fede7=_0x2f7060['filter'](_0xe23ed3=>'$graveyard'!=_0xe23ed3['root']['rootName']);_0x1fede7['length']>0x0&&_0x3151b0['setSelection'](_0x1fede7);for(const _0x37f834 of _0x2f7060)_0x37f834['detach']();});});});}function _0x16012c(_0x49dbea){_0x4fe35a['model']['change'](_0x1efb7e=>{const _0x5d5f9b=Array['from'](_0x1fbd5c['getRanges']())['map'](_0x1685ff=>_0x46da37['fromRange'](_0x1685ff)),_0x42ae2b=[];for(const _0x1de4d0 of _0x49dbea)for(const _0x37facb of _0x1de4d0['getItems']({'shallow':!0x0}))_0x42ae2b['push'](_0x37facb);for(const _0x1b1b12 of _0x42ae2b)'$graveyard'!=_0x1b1b12['root']['rootName']&&(_0x1efb7e['setSelection'](_0x1efb7e['createPositionAt'](_0x1b1b12,0x0)),_0x4fe35a['commands']['get']('removeTableColumn')['refresh'](),_0x4fe35a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x39784b=_0x5d5f9b['filter'](_0x343a50=>'$graveyard'!=_0x343a50['root']['rootName']);_0x39784b['length']>0x0&&_0x1efb7e['setSelection'](_0x39784b);for(const _0x10db17 of _0x5d5f9b)_0x10db17['detach']();});}function _0x3d0978(_0x23faab,_0x31236d){return _0x31236d['every'](_0x5d66e6=>_0x23faab['some'](_0x4eb166=>_0x4eb166['end']['isEqual'](_0x5d66e6['start'])||_0x5d66e6['end']['isEqual'](_0x4eb166['start'])));}function _0x2a4a12(_0x859918,_0x31c9f1){return!_0x859918['some'](_0x237d3d=>_0x31c9f1['some'](_0x3fb5d7=>_0x237d3d['isIntersecting'](_0x3fb5d7)))&&_0x859918['some'](_0x450eff=>_0x31c9f1['some'](_0x8983c9=>_0x450eff['end']['isTouching'](_0x8983c9['start'])));}_0x4fe35a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x577f78,_0x4723fb,_0x2bf26b)=>{if(!_0x2bf26b['options']['showSuggestionHighlights'])return;const _0x6713c3=_0x4723fb['item'];if(!_0x6713c3)return;const _0x2bd62a=_0x2bf26b['mapper']['toViewElement'](_0x6713c3);function _0x3e3e6a(_0x1aa88b){return Array['isArray'](_0x1aa88b)?_0x1aa88b:[_0x1aa88b];}_0x2bd62a&&'tableCell'===_0x6713c3['name']&&_0x42a791(_0x2bd62a,_0x2bf26b['writer'],(_0x4c8cc2,_0x3bae5b,_0x26ca51)=>_0x26ca51['addClass'](_0x3e3e6a(_0x3bae5b['classes']),_0x4c8cc2),(_0x357020,_0x294a21,_0x402144)=>_0x402144['removeClass'](_0x3e3e6a(_0x294a21['classes']),_0x357020));},{'priority':'highest'}),_0xb69975['descriptionFactory']['registerDescriptionCallback'](_0x5f859c=>{if('insertion'!=_0x5f859c['type']&&'deletion'!=_0x5f859c['type'])return;const _0x1a61af=_0x5f859c['getContainedElement']();if(null!=_0x1a61af&&_0x1a61af['is']('element','table')){if('insertion'==_0x5f859c['type']){const _0x36d63a=_0x5f859c['getItems']()['filter'](_0xc28a16=>_0xc28a16['is']('$textProxy'))['map'](_0x48149c=>_0x48149c['data']);if(_0x36d63a['length'])return{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36d63a['join']('\x20')+'\x22'))};}if('deletion'==_0x5f859c['type']){const _0x398a19=_0x5f859c['getItems']()['filter'](_0x544d8=>_0x544d8['is']('$textProxy'))['map'](_0x5bfa78=>_0x5bfa78['data']);if(_0x398a19['length'])return{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x398a19['join']('\x20')+'\x22'))};}}}),_0xb69975['descriptionFactory']['registerDescriptionCallback'](_0x46b844=>{if('tableRow'==_0x46b844['subType']){const _0x50ab2a=_0x46b844['getItems']()['filter'](_0x4122a3=>_0x4122a3['is']('$textProxy'))['map'](_0x3a071e=>_0x3a071e['data']),_0xe97552=this['_getSuggestionCoords'](_0x46b844),_0x2a818c=_0xe97552['maxRow']-_0xe97552['minRow']+0x1;if('insertion'==_0x46b844['type'])return _0x50ab2a['length']?{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a818c,'\x22'+_0x50ab2a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW',_0x2a818c))};if('deletion'==_0x46b844['type'])return _0x50ab2a['length']?{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a818c,'\x22'+_0x50ab2a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW',_0x2a818c))};}if('tableColumn'==_0x46b844['subType']){const _0x2dcc66=_0x46b844['getItems']()['filter'](_0xad7c41=>_0xad7c41['is']('$textProxy'))['map'](_0x3eb74f=>_0x3eb74f['data']),_0x4396c4=this['_getSuggestionCoords'](_0x46b844),_0x387b29=_0x4396c4['maxColumn']-_0x4396c4['minColumn']+0x1;if('insertion'==_0x46b844['type'])return _0x2dcc66['length']?{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x387b29,'\x22'+_0x2dcc66['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN',_0x387b29))};if('deletion'==_0x46b844['type'])return _0x2dcc66['length']?{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x387b29,'\x22'+_0x2dcc66['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN',_0x387b29))};}}),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9016f7),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9016f7),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x16012c),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x16012c),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d0978),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d0978),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2a4a12),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2a4a12);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5676a5=this['editor'],_0x481e0d=_0x5676a5['model']['document']['selection'];return(_0x38be17,_0x21462e)=>{_0x5676a5['model']['change'](_0x3b4496=>{const {commandName:_0x346dbb,commandParams:_0x4e40e4}=_0x21462e;let _0x6afde8=_0x38be17[0x0]['end']['nodeBefore'];_0x4e40e4&&_0x4e40e4[0x0]&&!0x1===_0x4e40e4[0x0]['forceValue']&&(_0x6afde8=_0x38be17[0x0]['start']['nodeAfter']);const _0x3ce9cb=_0x3b4496['createRangeIn'](_0x6afde8);if('$graveyard'==_0x3ce9cb['root']['rootName'])return;const _0x3342ed=Array['from'](_0x481e0d['getRanges']())['map'](_0x9f1bb4=>_0x46da37['fromRange'](_0x9f1bb4));_0x3b4496['setSelection'](_0x3ce9cb),_0x5676a5['commands']['get'](_0x346dbb)['refresh'](),_0x4e40e4['push']({'forceDefaultExecution':!0x0}),_0x5676a5['execute'](_0x346dbb,..._0x4e40e4);const _0x2e6dd8=_0x3342ed['filter'](_0x3ea0e2=>'$graveyard'!=_0x3ea0e2['root']['rootName']);_0x2e6dd8['length']>0x0&&_0x3b4496['setSelection'](_0x2e6dd8);for(const _0x329c9e of _0x3342ed)_0x329c9e['detach']();});};}['_getCoordsForCells'](_0x30d6ce){const _0x4731ca=this['editor']['plugins']['get']('TableUtils');let _0x3a0198=Number['MAX_SAFE_INTEGER'],_0x307a46=Number['MIN_SAFE_INTEGER'],_0x2b77fa=Number['MAX_SAFE_INTEGER'],_0x11d981=Number['MIN_SAFE_INTEGER'];for(const _0x46151c of _0x30d6ce){if('$graveyard'==_0x46151c['root']['rootName'])continue;const {row:_0x126861,column:_0x28e3fa}=_0x4731ca['getCellLocation'](_0x46151c),_0x143dd0=_0x46151c['hasAttribute']('rowspan')?_0x46151c['getAttribute']('rowspan')-0x1:0x0,_0x43d38c=_0x46151c['hasAttribute']('colspan')?_0x46151c['getAttribute']('colspan')-0x1:0x0;_0x3a0198=_0x126861<_0x3a0198?_0x126861:_0x3a0198,_0x307a46=_0x126861+_0x143dd0>_0x307a46?_0x126861+_0x143dd0:_0x307a46,_0x2b77fa=_0x28e3fa<_0x2b77fa?_0x28e3fa:_0x2b77fa,_0x11d981=_0x28e3fa+_0x43d38c>_0x11d981?_0x28e3fa+_0x43d38c:_0x11d981;}return{'minRow':_0x3a0198,'maxRow':_0x307a46,'minColumn':_0x2b77fa,'maxColumn':_0x11d981};}['_setupColumnsRowsFixing'](){const _0x27cca4=this['editor'],_0xda5b66=_0x27cca4['plugins']['get']('TrackChangesEditing'),_0x4d9f4e=_0x27cca4['plugins']['get']('TableUtils');_0x27cca4['model']['document']['on']('change:data',()=>{const _0x54bf2e=Array['from'](_0x27cca4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10b960,data:_0x38dbcf}of _0x54bf2e){const {group:_0x57037e,id:_0x1576fa,subType:_0x1e7f38}=_0xda5b66['_splitMarkerName'](_0x10b960);if('suggestion'!=_0x57037e)continue;if(null!=_0x38dbcf['oldRange'])continue;const _0x2a40d2=_0xda5b66['getSuggestion'](_0x1576fa);this['_tablePostFixingSubtypes']['includes'](_0x1e7f38)&&this['_tableSuggestions']['add'](_0x2a40d2);}},{'priority':'low'});const _0x50a155=(_0x54cf44,_0x1de660)=>{let _0x4153d1=!0x1;const _0x264be3=_0x1de660['createRangeOn'](_0x54cf44),_0x67e666=_0x54cf44['findAncestor']('table'),_0x28a90f=_0x4d9f4e['getCellLocation'](_0x54cf44);for(const _0xbde1b6 of this['_tableSuggestions']){const _0x214bd5=_0xbde1b6['subType'],_0x389eeb=_0x214bd5['startsWith']('tablePaste'),_0x1557ad=_0x214bd5['substr'](_0x389eeb?0xa:0x5),_0x3f012e=_0x1557ad['toLowerCase'](),_0x3abc4b=_0x3f012e['substr'](0x0,0x3)+'span',_0xe01532='min'+_0x1557ad,_0x1a3a9d='max'+_0x1557ad;if(!_0xbde1b6['isInContent'])continue;if(_0x67e666!=_0xbde1b6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xbde1b6['isIntersectingWithRange'](_0x264be3))continue;const _0x3e726f=_0x54cf44['hasAttribute'](_0x3abc4b)?_0x54cf44['getAttribute'](_0x3abc4b)-0x1:0x0,_0x2fab34=this['_getSuggestionCoords'](_0xbde1b6),_0x1d7891=_0x2fab34[_0xe01532],_0x258741=_0x2fab34[_0x1a3a9d];_0x1d7891<=_0x28a90f[_0x3f012e]&&_0x28a90f[_0x3f012e]+_0x3e726f<=_0x258741&&(_0xbde1b6['addRange'](_0x264be3),_0x4153d1=!0x0);}return _0x4153d1;};_0x27cca4['model']['document']['registerPostFixer'](_0x313856=>{let _0x1cf919=!0x1;for(const _0x2360fa of _0x27cca4['model']['document']['differ']['getChanges']())if('insert'==_0x2360fa['type']){if('tableRow'==_0x2360fa['name']){for(const _0x673a59 of _0x2360fa['position']['nodeAfter']['getChildren']())_0x1cf919=_0x1cf919||_0x50a155(_0x673a59,_0x313856);}else'tableCell'==_0x2360fa['name']&&(_0x1cf919=_0x1cf919||_0x50a155(_0x2360fa['position']['nodeAfter'],_0x313856));}return _0x1cf919;});}['_getSuggestionCoords'](_0x431a4b){return this['_getCoordsForCells'](_0x431a4b['getRanges']()['map'](_0x3f142d=>_0x3f142d['start']['nodeAfter']));}}function be(_0x5a00de){return Array['from'](new Set(_0x5a00de)['values']());}class vt extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x135187=this['editor'],_0x4702e6=_0x135187['model']['document']['selection'],_0x3c4ab5=_0x135187['locale'];if(!_0x135187['plugins']['has']('TableEditing'))return;const _0x34229f=_0x135187['plugins']['get']('TrackChangesEditing'),_0x3d5522=_0x135187['plugins']['get']('TableUtils'),_0x250e55=_0x135187['plugins']['get'](It);_0x250e55['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34229f['enableCommand']('mergeTableCells',()=>{const _0x108b70=_0x3d5522['getSelectionAffectedTableCells'](_0x135187['model']['document']['selection']);_0x135187['model']['change'](()=>{_0x34229f['markMultiRangeBlockFormat'](_0x108b70,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x135187['commands']['get']('mergeTableCells')['on']('execute',(_0x3d268b,_0x18add3)=>{_0x135187['commands']['get']('trackChanges')['value']&&(_0x18add3['length']>0x0&&_0x18add3[_0x18add3['length']-0x1]&&_0x18add3[_0x18add3['length']-0x1]['forceDefaultExecution']||_0x34229f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3d268b['stop']());},{'priority':'highest'});for(const _0x4bba91 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50e30d=_0x135187['commands']['get'](_0x4bba91);_0x34229f['enableCommand'](_0x4bba91,()=>{const _0x20ba57=_0x135187['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ca8d1=>_0x3ca8d1['is']('element','tableCell')),_0x2bd071=_0x50e30d['value'];_0x135187['model']['change'](()=>{_0x34229f['markMultiRangeBlockFormat']([_0x20ba57,_0x2bd071],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b1fd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x661bcb=_0x135187['commands']['get'](_0x6b1fd);_0x34229f['enableCommand'](_0x6b1fd,()=>{const _0x55bef8=_0x3d5522['getSelectionAffectedTableCells'](_0x135187['model']['document']['selection'])[0x0],_0x2c2b1f=_0x55bef8['findAncestor']('table'),{column:_0x1443cc,row:_0x5d942c}=_0x3d5522['getCellLocation'](_0x55bef8);let _0x3ef81c=[];if('horizontally'==_0x661bcb['direction']){const _0x1f84be=_0x3d5522['createTableWalker'](_0x2c2b1f,{'startRow':_0x5d942c,'endRow':_0x5d942c,'includeAllSlots':!0x0});_0x3ef81c=Array['from'](_0x1f84be)['map'](_0xd8b2d1=>_0xd8b2d1['cell']);}else{const _0x484281=_0x3d5522['createTableWalker'](_0x2c2b1f,{'column':_0x1443cc,'includeAllSlots':!0x0});_0x3ef81c=Array['from'](_0x484281)['map'](_0x3e4bb6=>_0x3e4bb6['cell']);}_0x135187['model']['change'](_0x2dfb3b=>{_0x34229f['markBlockFormat'](_0x2dfb3b['createRangeOn'](_0x55bef8),{'commandName':_0x6b1fd,'commandParams':[]},_0x3ef81c,_0x6b1fd);});});}_0x34229f['descriptionFactory']['registerDescriptionCallback'](_0x22c489=>{if('formatBlock'!=_0x22c489['type']&&'formatInline'!=_0x22c489['type'])return;const {data:_0x29ff6e}=_0x22c489;return _0x29ff6e&&'mergeTableCells'==_0x29ff6e['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Merge\x20cells*')}:void 0x0;}),_0x34229f['descriptionFactory']['registerDescriptionCallback'](_0x2e4c87=>{if('formatBlock'!=_0x2e4c87['type']&&'formatInline'!=_0x2e4c87['type'])return;const {data:_0x1adf2b}=_0x2e4c87;return _0x1adf2b?'splitTableCellVertically'==_0x1adf2b['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1adf2b['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x261575=_0x250e55['_acceptFormatSuggestionCallbackFactory']();for(const _0x118bad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x118bad,'accept',_0x261575);for(const _0x1df3cf of['splitTableCellVertically','splitTableCellHorizontally'])_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1df3cf,'accept',_0x261575);_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x304784=>{_0x135187['model']['change'](_0x5693e4=>{const _0x5e6fad=Array['from'](_0x4702e6['getRanges']())['map'](_0x1280eb=>_0x46da37['fromRange'](_0x1280eb));_0x5693e4['setSelection'](_0x304784),_0x135187['commands']['get']('mergeTableCells')['refresh'](),_0x135187['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5da8c6=_0x5e6fad['filter'](_0x1ed8dc=>'$graveyard'!=_0x1ed8dc['root']['rootName']);_0x5da8c6['length']>0x0&&_0x5693e4['setSelection'](_0x5da8c6);for(const _0x1aad79 of _0x5e6fad)_0x1aad79['detach']();});});for(const _0x5be488 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c19d9=_0x135187['commands']['get'](_0x5be488);_0x5c19d9['on']('set:isEnabled',(_0x2de3ae,_0x1a13a3,_0x7bc4d5)=>{if(_0x7bc4d5){const _0x531655=_0x135187['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf9ee91=>_0xf9ee91['is']('element','tableCell'));this['_areMergableCells'](_0x5c19d9['value'],_0x531655)||(_0x2de3ae['return']=!0x1,_0x2de3ae['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59820e=this['editor']['commands']['get']('mergeTableCells'),_0x847a43=this['editor']['plugins']['get']('TableUtils');if(!_0x59820e['isEnabled'])return!0x1;const _0x423807=_0x847a43['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x46c075 of _0x423807)for(const _0x532aa7 of _0x423807)if(_0x46c075!=_0x532aa7&&!this['_areMergableCells'](_0x46c075,_0x532aa7))return!0x1;return!0x0;}['_areMergableCells'](_0x698db5,_0x34758a){const _0x11eef1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a2178=this['editor']['model']['createRangeOn'](_0x698db5),_0x3a4362=this['editor']['model']['createRangeOn'](_0x34758a),_0x475a3a=new Set(),_0x1496ea=new Set();for(const _0x291955 of _0x11eef1['getSuggestions']())if(('insertion'==_0x291955['type']||'deletion'==_0x291955['type']||'mergeTableCells'==_0x291955['subType'])&&_0x291955['isInContent']){for(const _0x24ab8e of _0x291955['getRanges']())_0x24ab8e['containsRange'](_0x2a2178,!0x0)&&_0x475a3a['add'](_0x291955['type']+':'+_0x291955['author']['id']),_0x24ab8e['containsRange'](_0x3a4362,!0x0)&&_0x1496ea['add'](_0x291955['type']+':'+_0x291955['author']['id']);}if(_0x475a3a['size']!=_0x1496ea['size'])return!0x1;for(const _0x2ab320 of _0x475a3a)if(!_0x1496ea['has'](_0x2ab320))return!0x1;return!0x0;}}class Ct extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x4a6a10=this['editor'];if(!_0x4a6a10['plugins']['has']('TableEditing'))return;const _0x18c0a5=_0x4a6a10['locale'],_0x288eb6=_0x4a6a10['plugins']['get']('TrackChangesEditing');_0x288eb6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x288eb6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x288eb6['registerBlockAttribute']('headingRows'),_0x288eb6['registerBlockAttribute']('headingColumns'),_0x288eb6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x18c0a5,'FORMAT_HEADER_ROW')),_0x288eb6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x18c0a5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4276f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1412f4=this['editor']['plugins']['get']('TableUtils'),_0x2cadc4=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4cae6e({showActiveMarker:_0x859df3=!0x0,setDataAttribute:_0xf62213=!0x0}={}){return(_0x1f9ce4,_0x1f25ba,_0x2bdc3b)=>{const {type:_0x4c6372,id:_0x427521}=_0x4276f9['_splitMarkerName'](_0x1f25ba['markerName']),_0xed776c=_0x4276f9['getSuggestion'](_0x427521),_0x5e1fba=_0xed776c['data'];if('formatBlock'!=_0xed776c['type']||!_0x5e1fba||'setTableColumnHeader'!=_0x5e1fba['commandName'])return;if(_0x1f25ba['item'])return void _0x1f9ce4['stop']();if(!_0x2bdc3b['consumable']['consume'](_0x1f25ba['markerRange'],_0x1f9ce4['name']))return;const _0x31d4db=_0x1f25ba['markerRange']['start']['nodeAfter'],_0x301932=_0x1f25ba['markerRange']['end']['nodeBefore'],_0x57ec2e=_0x31d4db['parent']['parent'],{column:_0x3440b9}=_0x1412f4['getCellLocation'](_0x31d4db),{column:_0x208753}=_0x1412f4['getCellLocation'](_0x301932);for(let _0x2ef464=_0x3440b9;_0x2ef464<=_0x208753;_0x2ef464++){const _0x5294b5=_0x1412f4['createTableWalker'](_0x57ec2e,{'column':_0x2ef464,'includeAllSlots':!0x1});for(const _0x43c822 of _0x5294b5){const _0x4fd7ed=_0x43c822['cell'],_0x8f1b8e=_0x2bdc3b['mapper']['toViewElement'](_0x4fd7ed);_0x2bdc3b['writer']['addClass']('ck-suggestion-marker-'+_0x4c6372,_0x8f1b8e),_0xf62213&&_0x2bdc3b['writer']['setAttribute']('data-suggestion',_0x427521,_0x8f1b8e),_0x2bdc3b['mapper']['bindElementToMarker'](_0x8f1b8e,_0x1f25ba['markerName']),_0x859df3&&(_0x4276f9['activeMarkers']['includes'](_0x1f25ba['markerName'])?_0x2bdc3b['writer']['addClass']('ck-suggestion-marker--active',_0x8f1b8e):_0x2bdc3b['writer']['removeClass']('ck-suggestion-marker--active',_0x8f1b8e));}}};}_0x4276f9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2cadc4),_0x4276f9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2cadc4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4cae6e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b0061,_0x43e523,_0x23db88)=>{_0x23db88['options']['showSuggestionHighlights']&&_0x4cae6e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b0061,_0x43e523,_0x23db88);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x145a93,_0x12cb24,_0x5bb158)=>{const {type:_0x35b598,id:_0x4a48ec}=_0x4276f9['_splitMarkerName'](_0x12cb24['markerName']),_0x1b2d64=_0x4276f9['getSuggestion'](_0x4a48ec),_0x5a637f=_0x1b2d64['data'];if('formatBlock'!=_0x1b2d64['type']||!_0x5a637f||'setTableColumnHeader'!=_0x5a637f['commandName'])return;const _0x592508=_0x5bb158['mapper']['markerNameToElements'](_0x12cb24['markerName']);if(_0x592508){for(const _0xaab1b9 of _0x592508)_0x5bb158['writer']['removeClass']('ck-suggestion-marker-'+_0x35b598,_0xaab1b9),_0x5bb158['writer']['removeClass']('ck-suggestion-marker--active',_0xaab1b9),_0x5bb158['writer']['removeAttribute']('data-suggestion',_0xaab1b9),_0x5bb158['mapper']['unbindElementFromMarkerName'](_0xaab1b9,_0x12cb24['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5582d6=this['editor'],_0x4804bc=_0x5582d6['locale'];function _0x4c2273(_0x3e1030){return{'type':'format','content':o(_0x4804bc,'*Format:*\x20%0',_0x3e1030)};}_0x5582d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7bafef=>{if('formatBlock'!=_0x7bafef['type'])return;const {data:_0x4011b4}=_0x7bafef;if(_0x4011b4){if('setTableRowHeader'==_0x4011b4['commandName']){const _0x331107=_0x4011b4['commandParams'][0x0]['forceValue'];return _0x4c2273(o(_0x4804bc,_0x331107?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4011b4['commandName']){const _0x30dadd=_0x4011b4['commandParams'][0x0]['forceValue'];return _0x4c2273(o(_0x4804bc,_0x30dadd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x50850f=>[_0x50850f,null]));class _t extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x5ea86a=this['editor'];if(!_0x5ea86a['plugins']['has']('TableClipboard'))return;const _0x26fd90=_0x5ea86a['plugins']['get']('TrackChangesEditing'),_0x4525a9=_0x5ea86a['plugins']['get']('TableUtils'),_0x4f8586=_0x5ea86a['plugins']['get'](It),_0x45f495=_0x5ea86a['plugins']['get']('TableClipboard');_0x4f8586['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ea86a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ea86a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f61fc=null;_0x5ea86a['model']['on']('insertContent',(_0x54d329,_0x331189)=>{const [_0x385d3e,_0x574afd]=_0x331189,_0x25a7fa=_0x331189[_0x331189['length']-0x1];_0x25a7fa&&_0x25a7fa['forceDefaultExecution']||_0x26fd90['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13f945,_0x4655a1,_0x590c0f,_0x1ae20a,_0x3e39b3){if(_0x4655a1&&!_0x4655a1['is']('documentSelection'))return!0x1;const _0x349ceb=_0x3e39b3['getTableIfOnlyTableInContent'](_0x13f945,_0x590c0f);if(!_0x349ceb||!Re(_0x349ceb,void 0x0,_0x1ae20a))return!0x1;const _0x203ef7=_0x1ae20a['getSelectionAffectedTableCells'](_0x590c0f['document']['selection']);if(!_0x203ef7['length'])return!0x1;const _0x37690b=_0x203ef7[0x0]['findAncestor']('table'),_0x50dae0=_0x1ae20a['getRowIndexes'](_0x203ef7),_0x16b0a2=_0x1ae20a['getColumnIndexes'](_0x203ef7),_0x4ff621={'startRow':_0x50dae0['first'],'endRow':_0x50dae0['last'],'startColumn':_0x16b0a2['first'],'endColumn':_0x16b0a2['last']};return 0x1==_0x203ef7['length']&&(_0x4ff621['endRow']+=_0x1ae20a['getRows'](_0x349ceb)-0x1,_0x4ff621['endColumn']+=_0x1ae20a['getColumns'](_0x349ceb)-0x1),Re(_0x37690b,_0x4ff621,_0x1ae20a);}(_0x385d3e,_0x574afd,_0x5ea86a['model'],_0x4525a9,_0x45f495)&&(_0x54d329['stop'](),_0x2f61fc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ea86a['model']['change'](()=>{_0x5ea86a['model']['insertContent'](_0x331189[0x0],_0x331189[0x1],_0x331189[0x2],{'forceDefaultExecution':!0x0});const _0x3863a3=_0x55f5c8(),{rowInsertionRanges:_0x578e55,columnInsertionRanges:_0x2e66f1,insertionRanges:_0x243f1a,deletionRanges:_0x45fbcf,cells:_0x353e77}=_0x2f61fc;_0x578e55['length']&&_0x26fd90['markMultiRangeInsertion'](_0x578e55,'tablePasteRow',{'tablePasteChainId':_0x3863a3}),_0x2e66f1['length']&&_0x26fd90['markMultiRangeInsertion'](_0x2e66f1,'tablePasteColumn',{'tablePasteChainId':_0x3863a3}),_0x243f1a['length']&&(_0x26fd90['markMultiRangeInsertion'](_0x243f1a,'tablePaste',{'tablePasteChainId':_0x3863a3,'skipNestingCheck':!0x0}),_0x243f1a['forEach'](_0x4585cb=>_0x4585cb['detach']?.())),_0x45fbcf['length']&&(_0x26fd90['markMultiRangeDeletion'](_0x45fbcf,'tablePaste',{'tablePasteChainId':_0x3863a3,'skipNestingCheck':!0x0}),_0x45fbcf['forEach'](_0x1a0811=>_0x1a0811['detach']?.()));const _0x300f5d=_0x26fd90['markMultiRangeBlockFormat'](_0x353e77['map'](({element:_0x5886ba})=>_0x5886ba),{'formatGroupId':_0x55f5c8()},[],'tablePasteCell',{'tablePasteChainId':_0x3863a3});if(_0x300f5d){const _0x7e6a3a=_0x300f5d['getMarkers'](),_0x6a7207=[];for(const {element:_0x44829a,attributes:_0xb398f3}of _0x353e77){if(!_0xb398f3)continue;const _0x5b234b=_0x5ea86a['model']['createRangeOn'](_0x44829a),_0x379402=_0x7e6a3a['find'](_0xff80d4=>_0xff80d4['getRange']()['isEqual'](_0x5b234b));_0x379402&&_0x6a7207['push']([_0x379402['name'],_0xb398f3]);}_0x6a7207['length']&&_0x300f5d['setAttribute']('markerAttributes',Object['fromEntries'](_0x6a7207));}_0x2f61fc=null;}));},{'priority':_0x4d60ea['high']+0xa}),_0x5ea86a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42051a,_0x9b8f8f)=>{const [_0x126ada,_0x4a85c0,,_0x5aca7a]=_0x9b8f8f;if(!_0x2f61fc)return;_0x42051a['stop']();const _0xb250a3=_0x126ada['cell'],_0x436b30=_0x4a85c0,_0x3d6741=ke(_0xb250a3),_0x361f3e=ke(_0x436b30);_0x42051a['return']=_0xb250a3;let _0x2e0d50=null,_0x1a0fba=null;if(_0x361f3e||_0x3d6741){if(_0x3d6741&&!_0x361f3e){_0x5aca7a['remove'](_0xb250a3['getChild'](0x0));for(const _0x5ee21e of Array['from'](_0x436b30['getChildren']()))_0x5aca7a['insert'](_0x5ee21e,_0xb250a3,'end');const _0x322cc8=_0x2f61fc['rowInsertionIndexes']['includes'](_0x126ada['row']),_0x1e4b06=_0x2f61fc['columnInsertionIndexes']['includes'](_0x126ada['column']);_0x322cc8||_0x1e4b06||(_0x2e0d50=_0x46da37['fromRange'](_0x5aca7a['createRangeIn'](_0xb250a3)));}else _0x361f3e&&!_0x3d6741&&(_0x1a0fba=_0x5aca7a['createRangeIn'](_0xb250a3));}else{const _0x2d0369=_0x5aca7a['createElement']('tableCellSuggestion'),_0x4cc88d=_0x5aca7a['createElement']('tableCellSuggestion');_0x5aca7a['wrap'](_0x5aca7a['createRangeIn'](_0xb250a3),_0x4cc88d),_0x5aca7a['insert'](_0x2d0369,_0xb250a3,0x0);for(const _0x3db441 of Array['from'](_0x436b30['getChildren']()))_0x5aca7a['insert'](_0x3db441,_0x2d0369,'end');_0x2e0d50=_0x46da37['fromRange'](_0x5aca7a['createRangeOn'](_0x2d0369)),_0x1a0fba=_0x46da37['fromRange'](_0x5aca7a['createRangeOn'](_0x4cc88d));}const _0x22a9b2=Array['from'](_0x436b30['getAttributes']())['filter'](([_0x123385])=>Pe['includes'](_0x123385));_0x2f61fc['cells']['push']({'element':_0xb250a3,'attributes':_0x22a9b2['length']?Object['fromEntries'](_0x22a9b2):null}),_0x2e0d50&&_0x2f61fc['insertionRanges']['push'](_0x2e0d50),_0x1a0fba&&_0x2f61fc['deletionRanges']['push'](_0x1a0fba);},{'priority':'high'}),_0x4525a9['on']('insertColumns',(_0x3a0128,_0x49d961)=>{const [_0x39fbf9,_0x3c7af1={}]=_0x49d961;if(!_0x2f61fc)return;const _0x22270e=_0x3c7af1['at']||0x0,_0x5d6788=_0x3c7af1['columns']||0x1;_0x2f61fc['columnInsertionIndexes']=new Array(_0x5d6788)['fill'](_0x22270e)['map']((_0x437df7,_0x3b1a2c)=>_0x437df7+_0x3b1a2c);for(const {cell:_0x45237b}of _0x4525a9['createTableWalker'](_0x39fbf9,{'startColumn':_0x22270e,'endColumn':_0x22270e+_0x5d6788-0x1}))_0x2f61fc['columnInsertionRanges']['push'](_0x5ea86a['model']['createRangeOn'](_0x45237b));},{'priority':'low'}),_0x4525a9['on']('insertRows',(_0x11fd44,_0xf5e54b)=>{const [_0x2fff8d,_0xd65f2c={}]=_0xf5e54b;if(!_0x2f61fc)return;const _0x22fbe2=_0xd65f2c['at']||0x0,_0x590ba1=_0xd65f2c['rows']||0x1;_0x2f61fc['rowInsertionIndexes']=new Array(_0x590ba1)['fill'](_0x22fbe2)['map']((_0x5553f4,_0x160648)=>_0x5553f4+_0x160648);for(const {cell:_0x17b097}of _0x4525a9['createTableWalker'](_0x2fff8d,{'startRow':_0x22fbe2,'endRow':_0x22fbe2+_0x590ba1-0x1}))_0x2f61fc['rowInsertionRanges']['push'](_0x5ea86a['model']['createRangeOn'](_0x17b097));},{'priority':'low'}),_0x26fd90['descriptionFactory']['registerDescriptionCallback'](_0x1c0acd=>{if(_0x1c0acd['subType']&&_0x1c0acd['subType']['startsWith']('tablePaste'))return _0x1c0acd['previous']?{}:{'type':'insertion','content':o(_0x5ea86a['locale'],'*Replace\x20table\x20cells*')};});const _0x291f51=()=>!0x1;for(const _0x5ac2d2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ac2d2,'join',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ac2d2,'join',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ac2d2,'join',_0x291f51);_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d09af,_0xcbdbc,_0x369f72)=>{const _0x3e1ced=_0x1d09af['map'](_0x3078e9=>_0x3078e9['getContainedElement']())['filter'](_0x181f2c=>_0x181f2c),_0x4d8809=new Map(_0x3e1ced['map'](_0x161021=>[_0x161021,null]));if(_0x2f61fc){for(const {element:_0x5813ed,attributes:_0x68a1a7}of _0x2f61fc['cells'])_0x68a1a7&&_0x4d8809['set'](_0x5813ed,_0x68a1a7);}else{if(_0x369f72&&_0x369f72['markerAttributes'])for(const [_0x46b0d9,_0x465f0]of Object['entries'](_0x369f72['markerAttributes'])){const _0x380d12=_0x5ea86a['model']['markers']['get'](_0x46b0d9),_0x6f6fb9=_0x380d12?_0x380d12['getRange']()['getContainedElement']():null;_0x6f6fb9&&_0x4d8809['set'](_0x6f6fb9,_0x465f0);}}_0x5ea86a['model']['change'](_0xecc5e8=>{for(const [_0xcb802d,_0x2de413]of _0x4d8809)_0xecc5e8['setAttributes']({...we,..._0x2de413},_0xcb802d);});});const _0x1e3e62=(_0x38003a,_0x644fdd)=>{_0x26fd90['_suggestionFactory']['registerCustomCallback'](_0x38003a,'tablePaste',_0x644fdd,(_0x427fd5,_0x3e3151,_0x22a875)=>{_0x5ea86a['model']['change'](_0x20ba1e=>{const _0x81c22e=[];for(const _0x18c555 of _0x427fd5){const _0xbd8542=_0x18c555['start']['nodeAfter'];_0xbd8542['is']('element','tableCellSuggestion')&&_0x81c22e['push'](_0xbd8542);}_0x26fd90['_suggestionFactory']['getSuggestionCallback'](_0x38003a,null,_0x644fdd)(_0x427fd5,_0x3e3151,_0x22a875);for(const _0x21ecb1 of _0x81c22e)'$graveyard'!=_0x21ecb1['root']['rootName']&&_0x20ba1e['unwrap'](_0x21ecb1);});});};_0x1e3e62('insertion','accept'),_0x1e3e62('insertion','discard'),_0x1e3e62('deletion','accept'),_0x1e3e62('deletion','discard'),_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x435bb7=>{const _0x107aa2=_0x435bb7['map'](_0x492ce1=>_0x492ce1['getContainedElement']()),_0x513ab4=_0x107aa2[0x0]['findAncestor']('table'),{minRow:_0x44375e,maxRow:_0xe239fb}=_0x4f8586['_getCoordsForCells'](_0x107aa2);_0x4525a9['removeRows'](_0x513ab4,{'at':_0x44375e,'rows':_0xe239fb-_0x44375e+0x1});}),_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x32fb8b=>{const _0x3f9bda=_0x32fb8b['map'](_0x361118=>_0x361118['getContainedElement']()),_0x512913=_0x3f9bda[0x0]['findAncestor']('table'),{minColumn:_0x262c76,maxColumn:_0x29447d}=_0x4f8586['_getCoordsForCells'](_0x3f9bda);_0x4525a9['removeColumns'](_0x512913,{'at':_0x262c76,'columns':_0x29447d-_0x262c76+0x1});});const _0x6d5d9c=(_0x185681,_0x5ad887)=>{if(!_0x5ad887['subType']||!_0x5ad887['subType']['startsWith']('tablePaste'))return;const _0x4365de=_0x5ad887['attributes']['tablePasteChainId'],_0x27b025=_0x26fd90['getSuggestions']()['filter'](_0xd9a47=>_0xd9a47['isInContent']&&_0xd9a47['attributes']&&_0xd9a47['attributes']['tablePasteChainId']==_0x4365de);_0x27b025['length']&&_0x5ad887['getAllAdjacentSuggestions']()['length']!=_0x27b025['length']&&_0x27b025['reduce']((_0x1dc326,_0x34bbba)=>(_0x1dc326['next']=_0x34bbba,_0x34bbba['previous']=_0x1dc326,_0x34bbba));};function _0x505be4(_0x1e054c,_0x490212=!0x0){const {id:_0x1bd3ae,authorId:_0x1df454}=_0x26fd90['_splitMarkerName'](_0x1e054c['markerName']),_0x5ecb34=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4842a4=_0x26fd90['activeMarkers']['includes'](_0x1e054c['markerName']);return _0x4842a4&&_0x5ecb34['push']('ck-suggestion-marker--active'),{'classes':_0x5ecb34,'attributes':{'data-suggestion':_0x1bd3ae,'data-author-id':_0x1df454},'priority':_0x4842a4&&_0x490212?0xbc2:0xbb8};}_0x26fd90['on']('suggestionLoaded',_0x6d5d9c,{'priority':'high'}),_0x26fd90['on']('suggestionUnloaded',_0x6d5d9c,{'priority':'high'}),_0x5ea86a['model']['document']['registerPostFixer'](()=>{let _0x538e8c=!0x1;const _0x3ebe73=Array['from'](_0x5ea86a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ab746,data:_0xc7fa17}of _0x3ebe73){const {group:_0x4eefbd,type:_0x5ad98a,id:_0x1967db}=_0x26fd90['_splitMarkerName'](_0x2ab746);if('suggestion'!=_0x4eefbd||'deletion'!=_0x5ad98a||_0xc7fa17['oldRange'])continue;if(!_0x26fd90['hasSuggestion'](_0x1967db))continue;const _0x22583a=_0x26fd90['getSuggestion'](_0x1967db)['getRanges'](),_0x3c7910=_0x5ea86a['plugins']['get']('Users')['me'];for(const _0x2b4cb1 of _0x26fd90['getSuggestions']()){if(!_0x2b4cb1['isInContent']||_0x2b4cb1['author']!=_0x3c7910)continue;if('formatBlock'!=_0x2b4cb1['type']||'tablePasteCell'!=_0x2b4cb1['subType'])continue;if(_0x2b4cb1['getRanges']()['every'](_0x479241=>_0x22583a['some'](_0x4ce685=>_0x4ce685['containsRange'](_0x479241,!0x0)))){for(const _0x13ee99 of _0x2b4cb1['getAllAdjacentSuggestions']())_0x13ee99['isInContent']&&(_0x13ee99['discard'](),_0x538e8c=!0x0);}}}return _0x538e8c;}),_0x5ea86a['model']['document']['registerPostFixer'](_0x582587=>{const _0x386174=_0x5ea86a['commands']['get']('redo');if(!_0x386174||!_0x386174['_createdBatches']['has'](_0x582587['batch']))return!0x1;let _0x3c4945=!0x1;const _0x1b1084=_0x5ea86a['plugins']['get']('Users')['me'],_0x52ead7=_0x5ea86a['model']['document']['differ']['getChanges'](),_0x174bb6=Array['from'](_0x5ea86a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x136070,data:_0x4245a5})=>{const {group:_0x25b073,subType:_0x2fd1c1,authorId:_0x35a8f8}=_0x26fd90['_splitMarkerName'](_0x136070);return'suggestion'==_0x25b073&&'tablePaste'==_0x2fd1c1&&_0x35a8f8==_0x1b1084['id']&&!_0x4245a5['oldRange'];});for(const _0x49fc12 of _0x52ead7){if('insert'!=_0x49fc12['type']||'tableCellSuggestion'!=_0x49fc12['name']||0x1!=_0x49fc12['length'])continue;const _0xb91725=_0x582587['createRange'](_0x49fc12['position'],_0x49fc12['position']['getShiftedBy'](0x1));if(!_0x174bb6['find'](({data:_0x4d15ca})=>_0x4d15ca['newRange']['isEqual'](_0xb91725))){for(const {name:_0x2ca548,data:_0x2f3284}of _0x174bb6)if(_0xb91725['containsRange'](_0x2f3284['newRange'])){_0x582587['updateMarker'](_0x2ca548,{'range':_0xb91725}),_0x3c4945=!0x0;break;}}}return _0x3c4945;}),_0x5ea86a['model']['document']['registerPostFixer'](_0x14a8e6=>{let _0x41cd0c=!0x1;const _0x51868e=_0x5ea86a['plugins']['get']('Users')['me'],_0x2a271d=_0x26fd90['getSuggestions']()['filter'](_0x1d40f0=>_0x1d40f0['isInContent']&&_0x1d40f0['author']==_0x51868e),_0x507a9f=new Set(),_0x440173=new Set();for(const _0x2ba733 of _0x2a271d)if('tablePaste'==_0x2ba733['subType'])for(const _0x3f5bcd of _0x2ba733['getMarkers']()){const _0xe10d77=_0x3f5bcd['getRange']()['getContainedElement']();if(_0xe10d77){if(_0xe10d77['is']('element','tableCellSuggestion')&&ke(_0xe10d77)){_0x2ba733['removeMarker'](_0x3f5bcd['name']),_0x507a9f['add'](_0xe10d77),_0x41cd0c=!0x0;const _0x309dd5=_0xe10d77['nextSibling'],_0x2cdd67=_0xe10d77['previousSibling'],_0x2cf80d=_0x309dd5&&_0x309dd5['is']('element','tableCellSuggestion'),_0x211751=_0x2cdd67&&_0x2cdd67['is']('element','tableCellSuggestion');_0x2cf80d&&!_0x507a9f['has'](_0x309dd5)&&_0x440173['add'](_0x309dd5),_0x211751&&!_0x507a9f['has'](_0x2cdd67)&&_0x440173['add'](_0x2cdd67);}else _0xe10d77['is']('element','paragraph')&&_0xe10d77['isEmpty']&&(_0x2ba733['removeMarker'](_0x3f5bcd['name']),_0x41cd0c=!0x0);}}else{if('tablePasteCell'==_0x2ba733['subType']){if(!_0x2ba733['attributes']||!_0x2ba733['attributes']['tablePasteChainId'])continue;const _0x1effdd=_0x2ba733['attributes']['markerAttributes'];if(_0x1effdd&&Object['keys'](_0x1effdd)['length'])continue;const _0x501f46=_0x2ba733['attributes']['tablePasteChainId'];let _0x185aff=!0x0,_0x399947=!0x0;for(const _0x3d5e9d of _0x2a271d)if(_0x3d5e9d['subType']&&_0x3d5e9d['subType']['startsWith']('tablePaste')){if(!_0x3d5e9d['attributes']['tablePasteChainId']){_0x399947=!0x1;break;}if(_0x3d5e9d['id']!=_0x2ba733['id']&&_0x3d5e9d['attributes']['tablePasteChainId']==_0x501f46){_0x185aff=!0x1;break;}}_0x399947&&_0x185aff&&(_0x2ba733['removeMarkers'](),_0x41cd0c=!0x0);}}for(const _0xc17259 of _0x507a9f)_0x14a8e6['remove'](_0xc17259);for(const _0x53a217 of _0x440173)_0x14a8e6['unwrap'](_0x53a217);return _0x41cd0c;}),_0x5ea86a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x63c95d=>_0x505be4(_0x63c95d),'converterPriority':'high'}),_0x5ea86a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29bad9,_0x48db81)=>_0x48db81['options']['showSuggestionHighlights']?_0x505be4(_0x29bad9,!0x1):null,'converterPriority':'high'});const _0x298fc5=_0x5ea86a['editing']['view'];this['listenTo'](_0x298fc5['document'],'clipboardOutput',(_0x337cda,_0x1706ac)=>{const _0x20d4a9=[];for(const _0x537727 of _0x298fc5['createRangeIn'](_0x1706ac['content'])['getItems']())_0x537727['is']('element','suggestion-td')&&_0x20d4a9['push'](_0x537727);_0x298fc5['change'](_0x4610d2=>{for(const _0x50bd61 of _0x20d4a9)_0x4610d2['move'](_0x4610d2['createRangeIn'](_0x50bd61),_0x4610d2['createPositionBefore'](_0x50bd61)),_0x4610d2['remove'](_0x50bd61);});});}}function ke(_0xebcaa1){if(_0xebcaa1['isEmpty'])return!0x0;const _0x4ea600=_0xebcaa1['getChild'](0x0);return _0x4ea600['is']('element','paragraph')&&_0x4ea600['isEmpty'];}function Re(_0x1403bf,_0x4ffc78={},_0x56898e){for(const {isAnchor:_0x1f4a9a,cellHeight:_0x479cd6,cellWidth:_0x224306}of _0x56898e['createTableWalker'](_0x1403bf,{'includeAllSlots':!0x0,..._0x4ffc78}))if(!_0x1f4a9a||0x1!=_0x479cd6||0x1!=_0x224306)return!0x1;return!0x0;}class Nt extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x476ca2=this['editor']['plugins']['get']('TrackChangesEditing');_0x476ca2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x476ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x476ca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x476ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x476ca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x476ca2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2c7b67,_0x5d7228){const _0x2d4c8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x470dd1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5b7f02=_0x5d7228['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x32eb73=_0x470dd1['getColumnGroupElement'](_0x5b7f02);let _0x491999=_0x32eb73?_0x470dd1['getTableColumnsWidths'](_0x32eb73):null,_0x220efe=_0x5b7f02['getAttribute']('tableWidth')||null;const _0x1e3241=_0x5d7228['tableWidth']||_0x220efe,_0x1468bf=_0x5d7228['columnWidths']||_0x491999,_0xb72405=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d430a of _0x2d4c8c['getSuggestions']()){const _0x315523=_0x1d430a['getContainedElement']();if('resizeTable'===_0x1d430a['subType']&&_0x315523===_0x5b7f02){_0x1d430a['author']!==_0xb72405&&_0x1d430a['discard']();const _0x78e56=_0x1d430a['data']['commandParams'];_0x220efe=_0x78e56[0x0]['tableWidth'],_0x491999=_0x78e56[0x0]['columnWidths'];break;}}_0x2c7b67({'table':_0x5b7f02,'tableWidth':_0x1e3241,'columnWidths':_0x1468bf}),_0x2d4c8c['markBlockFormat'](_0x5b7f02,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x220efe,'columnWidths':_0x491999}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xb67fe5){if('formatBlock'!=_0xb67fe5['type']&&'formatInline'!=_0xb67fe5['type'])return;const {data:_0x361022}=_0xb67fe5;if(_0x361022&&'resizeTable'===_0x361022['formatGroupId']){const _0x552a45='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x552a45)};}}}class Dt extends _0x55f69e{['afterInit'](){const _0x3f15bf=this['editor'];_0x3f15bf['plugins']['has']('Template')&&_0x3f15bf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x55f69e{['afterInit'](){const _0x444e88=this['editor'];if(!_0x444e88['commands']['get']('insertTableOfContents'))return;_0x444e88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1234b3=_0x444e88['plugins']['get']('TrackChangesEditing'),_0x44a332=_0x444e88['locale'];_0x1234b3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x437e83=>o(_0x44a332,'ELEMENT_TABLE_OF_CONTENTS',_0x437e83));}}class $t extends _0x55f69e{['afterInit'](){const _0x173cb4=this['editor'];if(!_0x173cb4['plugins']['has']('Title'))return;const _0x3fe835=_0x173cb4['plugins']['get']('TrackChangesEditing');_0x3fe835['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x173cb4['locale'],'ELEMENT_TITLE')),_0x173cb4['model']['document']['registerPostFixer'](_0xd6b0ad=>{let _0x3d64a6=!0x1;const _0x317527=Array['from'](_0x173cb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x116910,data:_0x5e69e1}of _0x317527){const {group:_0x40eca0}=_0x3fe835['_splitMarkerName'](_0x116910);if('suggestion'!==_0x40eca0||!_0x5e69e1['newRange'])continue;const _0x357c8c=_0x5e69e1['newRange'],_0x25f2a0=_0x357c8c['end']['nodeBefore'];if(!_0x25f2a0||!_0x25f2a0['is']('element','title-content'))continue;if(!_0x357c8c['start']['isTouching'](_0x357c8c['end']))continue;const _0x207f1c=_0x173cb4['model']['schema']['getNearestSelectionRange'](_0x357c8c['end'],'forward');if(_0x207f1c&&_0x207f1c['isCollapsed']){const _0x1f8d4f=_0xd6b0ad['createRange'](_0x357c8c['start'],_0x207f1c['start']);_0x1f8d4f['isEqual'](_0x357c8c)||(_0xd6b0ad['updateMarker'](_0x116910,{'range':_0x1f8d4f}),_0x3d64a6=!0x0);}_0x3d64a6||(_0xd6b0ad['removeMarker'](_0x116910),_0x3d64a6=!0x0);}return _0x3d64a6;});}}class Bt extends _0x55f69e{['afterInit'](){const _0x9a4da4=this['editor'],_0x5e4ea1=_0x9a4da4['plugins']['get']('TrackChangesEditing');_0x9a4da4['plugins']['has']('UndoEditing')&&(_0x5e4ea1['enableCommand']('undo'),_0x5e4ea1['enableCommand']('redo'));}}class xt extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x26dc29=this['editor'];if(!_0x26dc29['plugins']['has']('TableCaptionEditing'))return;_0x26dc29['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x55f69e{['tableProperties'];['tableCellProperties'];constructor(_0x5dd72e){super(_0x5dd72e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x260b5c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xd2c754 of this['tableProperties'])_0x260b5c['enableCommand'](_0xd2c754,(_0x3892d1,_0x4f123f)=>{const _0x3d961a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xd2c754,[_0x3d961a],this['tableProperties'],'tableProperties',_0x3892d1,_0x4f123f);});_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x260b5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41f056,_0x3a5033)=>this['handleDiscardAction'](this['tableProperties'],_0x41f056,_0x3a5033)),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46e86e of this['tableCellProperties'])_0x260b5c['enableCommand'](_0x46e86e,(_0x5847f7,_0x22195b)=>{const _0x2d100e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46e86e,_0x2d100e,this['tableCellProperties'],'tableCellProperties',_0x5847f7,_0x22195b);});_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x260b5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x35bc3b,_0x69b14f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x35bc3b,_0x69b14f)),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x260b5c['descriptionFactory']['registerDescriptionCallback'](_0x13f23d=>this['handleSuggestionDescription'](_0x13f23d));}['_handlePropertyChange'](_0x47ed6b,_0x52322d,_0x437478,_0x8ad59a,_0x1e4e9e,_0x585788){const _0x4fac54=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x585788['batch'],()=>{for(const _0x38c1df of _0x52322d){if(this['_getSuggestion'](_0x38c1df,_0x8ad59a))_0x1e4e9e(_0x585788);else{const _0xcfbfe7={};for(const _0x567ba8 of _0x437478){const _0x4412cb=_0x38c1df['getAttribute'](_0x567ba8);void 0x0!==_0x4412cb&&(_0xcfbfe7[_0x567ba8]=_0x4412cb);}_0x1e4e9e(_0x585788),_0x4fac54['markBlockFormat'](_0x38c1df,{'commandParams':[_0xcfbfe7]},[],_0x8ad59a);}}});}['handleDiscardAction'](_0x58fac6,_0x1b19b0,_0x119254){const _0xc1af95=_0x1b19b0[0x0]['start']['nodeAfter'],_0x319af6=_0x119254['commandParams'][0x0];this['editor']['model']['change'](_0x301b65=>{for(const _0x45bc8a of _0x58fac6)void 0x0!==_0x319af6[_0x45bc8a]?_0x301b65['setAttribute'](_0x45bc8a,_0x319af6[_0x45bc8a],_0xc1af95):_0x301b65['removeAttribute'](_0x45bc8a,_0xc1af95);});}['handleSuggestionDescription'](_0x289f6b){if(_0x289f6b['data'])switch(_0x289f6b['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'](_0x1f8b38,_0x5baa63){const _0x3c6a4e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x6e9214 of _0x3c6a4e['getSuggestions']({'skipNotAttached':!0x0})){const _0x39172e=_0x6e9214['getContainedElement']();if(_0x6e9214['subType']===_0x5baa63&&_0x39172e===_0x1f8b38)return _0x6e9214;}return null;}}const m='$elementName';class p extends _0x55f69e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x96452c,_0x43cbca,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5f4f12){function _0x52a928(_0x3eefff){return _0x3eefff['map'](_0x130a33=>String['fromCharCode'](_0x130a33))['join']('');}super(_0x5f4f12),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34f522,_0x2029e4,_0x555c49,_0x8fda6f)=>{this['_model']['change'](()=>{for(const _0x1564a9 of[..._0x8fda6f,..._0x555c49])this['_model']['markers']['has'](_0x1564a9)&&_0x5f4f12['editing']['reconvertMarker'](_0x1564a9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5f4f12['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(),_0x5f4f12['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5f4f12['config']['get']('trackChanges.trackFormatChanges'),_0x5f4f12['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5f4f12['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5f4f12,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x52a928([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x52a928([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x34]);}['init'](){const _0x2d89fa=this['editor'],_0x4365f9=(_0x2d2480,_0x40babf)=>{if('attribute'!=_0x2d2480)return'ck-suggestion-marker-'+_0x2d2480;const _0x151487=_0x40babf['split']('|')[0x0];return this['_isBlockAttribute'](_0x151487)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2d89fa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2053b2=>{const {id:_0x2f05b6,authorId:_0x330c7f,type:_0x2ddb94,subType:_0x41b710}=this['_splitMarkerName'](_0x2053b2['markerName']),_0x3d4680=['ck-suggestion-marker',_0x4365f9(_0x2ddb94,_0x41b710)];let _0x18022f=0xbb8;return this['activeMarkers']['includes'](_0x2053b2['markerName'])&&(_0x3d4680['push']('ck-suggestion-marker--active'),_0x18022f=0xbc2),'deletion'==_0x2ddb94&&(_0x18022f+=0x5),{'classes':_0x3d4680,'attributes':{'data-suggestion':_0x2f05b6,'data-author-id':_0x330c7f},'priority':_0x18022f};}}),_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x40c9e6=>{_0x40c9e6['on']('addMarker:suggestion',(_0x21b635,_0x1f2f0a,_0x333d2e)=>{if(!_0x333d2e['options']['showSuggestionHighlights'])return;const _0x32d7fd=_0x1f2f0a['item'];if(!_0x32d7fd)return;const _0x35bc=_0x333d2e['mapper']['toViewElement'](_0x32d7fd);_0x2d89fa['model']['schema']['isObject'](_0x32d7fd)&&_0x35bc&&!_0x35bc['getCustomProperty']('widget')&&_0x35bc['is']('containerElement')&&_0x146003(_0x35bc,_0x333d2e['writer']);},{'priority':'high'});}),_0x2d89fa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31d0b4,_0x26ee4d)=>{if(!_0x26ee4d['options']['showSuggestionHighlights'])return null;const {type:_0x4c8cf8,subType:_0x1e62ed}=this['_splitMarkerName'](_0x31d0b4['markerName']);return{'classes':['ck-suggestion-marker',_0x4365f9(_0x4c8cf8,_0x1e62ed)],'priority':0xbb8};}});const _0x43c805=({showActiveMarkers:_0x10f225=!0x0,isAttributeSuggestion:_0x2f3ee2=!0x1}={})=>(_0x2f12fe,_0x3334ac,_0x4979cc)=>{if(!_0x3334ac['item'])return;const {id:_0x2e2f41,authorId:_0x11ac16}=this['_splitMarkerName'](_0x3334ac['markerName']);if(_0x2f3ee2){const _0x55189b=this['_suggestions']['get'](_0x2e2f41),_0x102b8b=this['_getAttributeKey'](_0x55189b);if(!this['_isBlockAttribute'](_0x102b8b))return;}if(_0x3334ac['item']['is']('selection'))return void _0x4979cc['consumable']['consume'](_0x3334ac['item'],_0x2f12fe['name']);const _0x252466=_0x4979cc['mapper']['toViewElement'](_0x3334ac['item']);if(_0x3334ac['item']['is']('element')&&_0x2d89fa['model']['schema']['isBlock'](_0x3334ac['item'])&&!_0x252466['getCustomProperty']('addHighlight')){_0x4979cc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x252466),_0x4979cc['writer']['setAttribute']('data-suggestion',_0x2e2f41,_0x252466),_0x4979cc['writer']['setAttribute']('data-author-id',_0x11ac16,_0x252466),_0x4979cc['mapper']['bindElementToMarker'](_0x252466,_0x3334ac['markerName']),_0x10f225&&(this['activeMarkers']['includes'](_0x3334ac['markerName'])?_0x4979cc['writer']['addClass']('ck-suggestion-marker--active',_0x252466):_0x4979cc['writer']['removeClass']('ck-suggestion-marker--active',_0x252466));for(const _0x1574ce of _0x2d89fa['model']['createRangeIn'](_0x3334ac['item'])['getItems']())_0x4979cc['consumable']['consume'](_0x1574ce,_0x2f12fe['name']);_0x4979cc['consumable']['consume'](_0x3334ac['item'],_0x2f12fe['name']);}};_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x503592=>{_0x503592['on']('addMarker:suggestion:formatBlock',(_0x1f1c40,_0x36969b,_0x29ce96)=>{_0x29ce96['options']['showSuggestionHighlights']&&_0x43c805({'showActiveMarkers':!0x1})(_0x1f1c40,_0x36969b,_0x29ce96);},{'priority':'highest'});}),_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x261492=>{_0x261492['on']('addMarker:suggestion:attribute',(_0x56c640,_0x2c2cc0,_0x363c3f)=>{_0x363c3f['options']['showSuggestionHighlights']&&_0x43c805({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x56c640,_0x2c2cc0,_0x363c3f);},{'priority':'highest'});}),_0x2d89fa['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28f3a3,_0x36a247)=>_0x36a247['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28f3a3['substr'](0xb)}}),_0x2d89fa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x551aba,{writer:_0x46154b})=>{let _0x3ae220='suggestion:'+_0x551aba['getAttribute']('suggestion-type')+':'+_0x551aba['getAttribute']('id');return _0x551aba['getAttribute']('marker-count')&&(_0x3ae220+=':'+_0x551aba['getAttribute']('marker-count')),_0x46154b['createElement']('$marker',{'data-name':_0x3ae220});}}),_0x2d89fa['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x3ccfb4=>{_0x3ccfb4['on']('addMarker:suggestion:formatBlock',_0x43c805(),{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x5b879d=>{_0x5b879d['on']('addMarker:suggestion:attribute',_0x43c805({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x915aab=>{_0x915aab['on']('removeMarker:suggestion:formatBlock',(_0x234737,_0x3c6718,_0x3ec955)=>{const _0x2fbb5f=_0x3ec955['mapper']['markerNameToElements'](_0x3c6718['markerName']);if(_0x2fbb5f){for(const _0x97747a of _0x2fbb5f)_0x97747a['getCustomProperty']('addHighlight')||(_0x3ec955['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x97747a),_0x3ec955['writer']['removeAttribute']('data-suggestion',_0x97747a),_0x3ec955['writer']['removeAttribute']('data-author-id',_0x97747a),_0x3ec955['mapper']['unbindElementFromMarkerName'](_0x97747a,_0x3c6718['markerName']));}},{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x3eb290=>{_0x3eb290['on']('removeMarker:suggestion:attribute',(_0x4adee3,_0x15dd09,_0xe37896)=>{const _0x4f96d3=_0xe37896['mapper']['markerNameToElements'](_0x15dd09['markerName']);if(!_0x4f96d3)return;const {id:_0x3c3f5d}=this['_splitMarkerName'](_0x15dd09['markerName']),_0x2a8749=this['_suggestions']['get'](_0x3c3f5d),_0x25273a=this['_getAttributeKey'](_0x2a8749);if(this['_isBlockAttribute'](_0x25273a)){for(const _0xb5a7f0 of _0x4f96d3)_0xb5a7f0['getCustomProperty']('addHighlight')||(_0xe37896['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xb5a7f0),_0xe37896['writer']['removeAttribute']('data-suggestion',_0xb5a7f0),_0xe37896['writer']['removeAttribute']('data-author-id',_0xb5a7f0),_0xe37896['mapper']['unbindElementFromMarkerName'](_0xb5a7f0,_0x15dd09['markerName']));}},{'priority':'high'});}),_0x2d89fa['model']['document']['registerPostFixer'](_0x2ea580=>{let _0x42b49b=!0x1;const _0x18f19b=Array['from'](_0x2d89fa['model']['document']['differ']['getChangedMarkers']()),_0x464220=new Set();for(const {name:_0x4a8a2d,data:_0x47389b}of _0x18f19b){const {group:_0x2acd97,type:_0x5ab620,subType:_0x24e3bb,id:_0x1a6125}=this['_splitMarkerName'](_0x4a8a2d);if('suggestion'!==_0x2acd97)continue;const _0x5eed72=this['_suggestions']['get'](_0x1a6125);if(null!=_0x47389b['newRange']){'formatInline'==_0x5ab620&&(_0x42b49b=_0x42b49b||Ut(_0x47389b['newRange'],_0x4a8a2d,_0x2ea580,_0x2d89fa['model']['schema']));const _0x12e1cd='attribute'==_0x5ab620&&this['_isBlockAttribute'](_0x24e3bb['split']('|')[0x0]);if(_0x47389b['newRange']['isCollapsed']||'$graveyard'==_0x47389b['newRange']['root']['rootName']||'formatBlock'==_0x5ab620&&!Ft(_0x47389b['newRange'])||_0x12e1cd&&!Ft(_0x47389b['newRange'])||'deletion'==_0x5ab620&&!(!Vt(_0x256fbe=_0x47389b['newRange'])&&!function(_0x34a0d5){return _0x34a0d5['start']['parent']==_0x34a0d5['end']['nodeBefore']&&_0x34a0d5['start']['isAtEnd'];}(_0x256fbe)))_0x2ea580['removeMarker'](_0x4a8a2d),_0x42b49b=!0x0;else{if(!_0x5eed72||!_0x5eed72['isInContent'])continue;if(_0x47389b['newRange']&&_0x47389b['oldRange']&&_0x47389b['newRange']['isEqual'](_0x47389b['oldRange']))continue;_0x464220['add'](_0x5eed72);}}}var _0x256fbe;return _0x464220['size']>0x0&&(_0x42b49b=!!this['_joinWithAdjacentSuggestions'](_0x464220)||_0x42b49b),_0x42b49b;}),_0x2d89fa['model']['document']['registerPostFixer'](_0x5c0137=>{let _0x3e393a=!0x1;for(const _0x4e0280 of _0x2d89fa['model']['document']['differ']['getChanges']())if('insert'==_0x4e0280['type'])for(const _0x163667 of this['_suggestions']['values']()){if(_0x163667['isMultiRange']||!_0x163667['isInContent'])continue;const _0x4a2a77='formatBlock'==_0x163667['type'],_0x1a734c=this['_getAttributeKey'](_0x163667),_0x4d8cb5=_0x1a734c&&this['_isBlockAttribute'](_0x1a734c);if(!_0x4a2a77&&!_0x4d8cb5)continue;const _0x284d63=_0x163667['getFirstRange']();if(_0x284d63['start']['parent']!=_0x284d63['end']['parent']&&!_0x284d63['end']['isAtEnd']){const _0x12da16=_0x2d89fa['model']['createPositionAt'](_0x284d63['start']['nodeAfter'],'end'),_0x4e44ab=_0x2d89fa['model']['createRange'](_0x284d63['start'],_0x12da16);_0x5c0137['updateMarker'](_0x163667['getFirstMarker'](),{'range':_0x4e44ab}),_0x3e393a=!0x0;}}return _0x3e393a;}),_0x2d89fa['model']['document']['registerPostFixer'](_0x41d826=>this['_processAttributeChanges'](_0x41d826)),_0x2d89fa['model']['document']['registerPostFixer'](_0x4d0c63=>!_0x4d0c63['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d0c63)),_0x2d89fa['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2d89fa['model']['document']['on']('change:data',(_0x1be88b,_0x29d299)=>{if(!_0x29d299['isLocal']||_0x29d299['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x247a09=_0x2d89fa['model']['document']['differ']['getChanges']();if(0x0==_0x247a09['length'])return;const _0x11b55b=[],_0x3a9d29=_0x247a09['filter'](_0x46c72b=>'attribute'==_0x46c72b['type']),_0x3ed86a=_0x247a09['filter'](_0x35fc9e=>'insert'==_0x35fc9e['type']&&'$text'!=_0x35fc9e['name']);for(const _0x336158 of _0x3a9d29)this['_isRegisteredAttribute'](_0x336158['attributeKey'])&&_0x11b55b['push']({'key':_0x336158['attributeKey'],'newValue':_0x336158['attributeNewValue'],'oldValue':_0x336158['attributeOldValue'],'range':Pt(_0x336158['range'],_0x2d89fa['model'])});for(const _0x5c90b5 of _0x3ed86a){if('rename'!=_0x5c90b5['action']&&'refresh'!=_0x5c90b5['action'])continue;const _0xedbcb4=Lt(_0x5c90b5['position']['nodeAfter'],_0x2d89fa['model']),_0x4ce723=_0x5c90b5['before'];'rename'==_0x5c90b5['action']&&_0x11b55b['push']({'key':m,'newValue':_0x5c90b5['name'],'oldValue':_0x4ce723['name'],'range':_0xedbcb4});for(const [_0x226db0,_0x320ce8]of _0x4ce723['attributes']){if(!this['_isRegisteredAttribute'](_0x226db0))continue;const _0x2c3e90=_0x5c90b5['attributes']['get'](_0x226db0);_0x320ce8!==_0x2c3e90&&_0x11b55b['push']({'key':_0x226db0,'newValue':_0x2c3e90,'oldValue':_0x320ce8,'range':_0xedbcb4});}for(const [_0x37c649,_0x30a6ed]of _0x5c90b5['attributes'])this['_isRegisteredAttribute'](_0x37c649)&&(_0x4ce723['attributes']['has'](_0x37c649)||_0x11b55b['push']({'key':_0x37c649,'newValue':_0x30a6ed,'oldValue':null,'range':_0xedbcb4}));}0x0!=_0x11b55b['length']&&_0x2d89fa['model']['enqueueChange'](_0x29d299,_0x1086be=>{const _0x50a57b=_0x55f5c8();for(const {range:_0x5ee070,key:_0x48bffb,oldValue:_0x33cfb8,newValue:_0x32bcb1}of _0x11b55b)this['markAttributeChange'](_0x5ee070,_0x48bffb,_0x33cfb8,_0x32bcb1,{'groupId':_0x50a57b});this['_reduceExistingSuggestions'](_0x1086be,_0x11b55b);});},{'priority':'lowest'}),_0x2d89fa['model']['markers']['on']('update:suggestion',(_0x490ace,_0x2d6a45,_0x2add07)=>{if(null==_0x2add07){const {id:_0xc3c3fd}=this['_splitMarkerName'](_0x2d6a45['name']),_0x132095=this['_suggestions']['get'](_0xc3c3fd);_0x132095&&_0x132095['addMarkerName'](_0x2d6a45['name']);}}),_0x2d89fa['model']['document']['on']('change:data',()=>{const _0x2cfe53=Array['from'](_0x2d89fa['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b6ecc=>'suggestion'===this['_splitMarkerName'](_0x4b6ecc['name'])['group']);if(0x0===_0x2cfe53['length'])return;_0x2cfe53['sort']((_0x396e2e,_0x31aca2)=>{const _0x48dc30=_0x396e2e['data']['oldRange'],_0x4673f4=_0x31aca2['data']['oldRange'];return null===_0x48dc30&&null===_0x4673f4?0x0:null===_0x48dc30&&null!==_0x4673f4?-0x1:null!==_0x48dc30&&null===_0x4673f4?0x1:_0x48dc30['start']['isBefore'](_0x4673f4['start'])?-0x1:0x1;});const _0x20a476=new Set(),_0x389f8f=new Set();for(const {name:_0x5b5051,data:_0x51f8dc}of _0x2cfe53){const {id:_0x1a8ef5}=this['_splitMarkerName'](_0x5b5051);if(null===_0x51f8dc['oldRange']){const _0x33fe44=this['_handleNewSuggestionMarker'](_0x5b5051);_0x389f8f['add'](_0x33fe44);}else{const _0x243c74=this['_suggestions']['get'](_0x1a8ef5);null!==_0x51f8dc['newRange']||_0x243c74['isInContent']?(_0x20a476['add'](_0x243c74['head']),_0x389f8f['add'](_0x243c74)):this['_removeSuggestion'](_0x243c74);}}_0x389f8f['size']>0x0&&this['_refreshSuggestionsChain'](_0x389f8f);for(const _0x1597d2 of _0x20a476)this['fire']('suggestionChanged',_0x1597d2);}),_0x2d89fa['model']['on']('applyOperation',(_0x11c23e,_0xf63fe0)=>{const _0x4ebbf0=_0xf63fe0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ebbf0['isDocumentOperation'])return;if(_0x4ebbf0['batch']['isUndo']||!_0x4ebbf0['batch']['isLocal'])return;let _0x5e8dad,_0x32540a;switch(_0x4ebbf0['type']){case'insert':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['position']),_0x32540a=_0x5e8dad['getShiftedBy'](_0x4ebbf0['howMany']);break;case'split':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['splitPosition']),_0x32540a=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['moveTargetPosition']);break;case'move':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['targetPosition']),_0x32540a=_0x5e8dad['getShiftedBy'](_0x4ebbf0['howMany']);break;default:return;}const _0x20a195=_0x2d89fa['model']['createRange'](_0x5e8dad,_0x32540a);_0x2d89fa['model']['change'](()=>{for(const {suggestion:_0x55c1ba,meta:_0x40b29c}of this['_findSuggestions'](_0x20a195)){if(_0x55c1ba['isMultiRange'])continue;if('formatInline'==_0x55c1ba['type'])continue;const _0x310840=this['_getAttributeKey'](_0x55c1ba);if(_0x310840&&this['_isBlockAttribute'](_0x310840)&&'split'!=_0x4ebbf0['type'])continue;const _0x48c3df=_0x55c1ba['data']&&_0x55c1ba['data']['multipleBlocks'];('formatBlock'!=_0x55c1ba['type']||'split'==_0x4ebbf0['type']&&!_0x48c3df)&&(_0x40b29c['containsRangeInObject']||'insertion'==_0x55c1ba['type']&&_0x40b29c['isOwn']||_0x55c1ba['getFirstRange']()['containsRange'](_0x20a195)&&this['_breakSuggestionMarker'](_0x55c1ba,_0x5e8dad,_0x32540a));}});},{'priority':'lowest'}),_0x2d89fa['model']['on']('deleteContent',(_0x131317,_0x4ef64e)=>{const _0x1d7f6c=_0x4ef64e[0x0],_0x4bde5c=_0x4ef64e[0x1];if(_0x4bde5c&&_0x4bde5c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1d7f6c['isCollapsed'])return;const _0x279a5d=_0x2d89fa['model']['schema'],{start:_0x5ae218,end:_0x3f886d}=_0x1d7f6c['getFirstRange'](),_0x846dbb=_0x5ae218['nodeAfter']&&_0x279a5d['isLimit'](_0x5ae218['nodeAfter'])?null:_0x279a5d['getNearestSelectionRange'](_0x5ae218,'forward'),_0x28067d=_0x3f886d['nodeBefore']&&_0x279a5d['isLimit'](_0x3f886d['nodeBefore'])?null:_0x279a5d['getNearestSelectionRange'](_0x3f886d,'backward'),_0xde6cd8=_0x2d89fa['model']['createRange'](_0x846dbb?_0x846dbb['start']:_0x5ae218,_0x28067d?_0x28067d['end']:_0x3f886d);_0x2d89fa['model']['change'](_0x3fd075=>{this['markDeletion'](_0xde6cd8);const _0x1f68d5=_0x2d89fa['model']['schema']['getNearestSelectionRange'](_0xde6cd8['start']);_0x1d7f6c['is']('documentSelection')?_0x3fd075['setSelection'](_0x1f68d5):_0x1d7f6c['setTo'](_0x1f68d5);}),_0x131317['stop']();},{'priority':_0x4d60ea['normal']+0xa}),_0x2d89fa['model']['on']('insertContent',(_0x4e395c,_0x13f6fd)=>{const _0x1cd4df=_0x13f6fd[_0x13f6fd['length']-0x1];_0x1cd4df&&_0x1cd4df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2d89fa['model']['change'](()=>{let _0x9892d0=_0x2d89fa['model']['insertContent'](_0x13f6fd[0x0],_0x13f6fd[0x1],_0x13f6fd[0x2],{'forceDefaultExecution':!0x0});if(!_0x9892d0)return;_0x4e395c['return']=_0x9892d0['clone']();const _0x1bb81f=_0x9892d0['end']['nodeBefore'],_0x4311b7=_0x2d89fa['model']['schema'];_0x1bb81f&&_0x4311b7['isBlock'](_0x1bb81f)&&!_0x4311b7['isObject'](_0x1bb81f)&&(_0x9892d0=_0x2d89fa['model']['createRange'](_0x9892d0['start'],_0x2d89fa['model']['createPositionAt'](_0x1bb81f,'end'))),this['markInsertion'](_0x9892d0);}),_0x4e395c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1fca9c=new x(_0x2d89fa,this['_suggestions']);_0x2d89fa['commands']['add']('acceptSuggestion',_0x1fca9c),this['enableCommand']('acceptSuggestion');const _0x54a498=new R(_0x2d89fa,this['_suggestions']);_0x2d89fa['commands']['add']('discardSuggestion',_0x54a498),this['enableCommand']('discardSuggestion'),_0x2d89fa['commands']['add']('acceptAllSuggestions',new E(_0x2d89fa,_0x1fca9c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2d89fa['commands']['add']('discardAllSuggestions',new E(_0x2d89fa,_0x54a498,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2d89fa['commands']['add']('acceptSelectedSuggestions',new O(_0x2d89fa,_0x1fca9c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2d89fa['commands']['add']('discardSelectedSuggestions',new O(_0x2d89fa,_0x54a498,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b9560=_0x2d89fa['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b9560,'addComment',(_0x537ced,{threadId:_0xf77fee})=>{const _0x4a51dc=this['_suggestions']['get'](_0xf77fee);_0x4a51dc&&_0x4a51dc['commentThread']&&0x1===_0x4a51dc['commentThread']['length']&&this['_updateSuggestionData'](_0xf77fee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b9560,'removeComment',(_0xe6432,{threadId:_0x47bf1d})=>{const _0x47693c=this['_suggestions']['get'](_0x47bf1d);_0x47693c&&_0x47693c['commentThread']&&!_0x47693c['commentThread']['length']&&this['_updateSuggestionData'](_0x47bf1d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4cb63e){if(this['_adapter'])throw new _0x27812c('track-changes-adapter-already-set',this);this['_adapter']=_0x4cb63e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3574b9=!0x1,toJSON:_0x55bad5=!0x1}={}){const _0x1bf7a6=[];for(const _0x128812 of this['_suggestions']['values']())_0x3574b9&&!_0x128812['isInContent']||_0x1bf7a6['push'](_0x128812);return _0x55bad5?_0x1bf7a6['map'](_0x1da278=>_0x1da278['toJSON']()):_0x1bf7a6;}['getSuggestion'](_0x3b5710){const _0x3beee0=this['_suggestions']['get'](_0x3b5710);if(!_0x3beee0)throw new _0x27812c('track-changes-suggestion-not-found',this);return _0x3beee0;}['hasSuggestion'](_0x59384a){return this['_suggestions']['has'](_0x59384a);}['addSuggestionData'](_0x1e3870){const {authorId:_0x2244ff,id:_0x1360b9,attributes:_0x1eb72}=_0x1e3870,[_0x4fd358,_0x519b1c]=_0x1e3870['type']['split'](':'),_0x2d0347=this['_suggestions']['get'](_0x1360b9)||this['_createSuggestion'](_0x4fd358,_0x519b1c,_0x1360b9,_0x2244ff,_0x1eb72);if(this['_addThreadToSuggestion'](_0x2d0347),this['_checkSuggestionCorrectness'](_0x2d0347,_0x4fd358,_0x519b1c||null,_0x2244ff),_0x2d0347['createdAt']=_0x1e3870['createdAt'],_0x2d0347['_isDataLoaded']=!0x0,_0x1eb72&&_0x1eb72['@external']){const _0x5bf0db=_0x1eb72['@external'],_0x40e810=this['_getExternalAuthor'](_0x5bf0db['authorName']);_0x2d0347['authoredAt']=_0x5bf0db['createdAt'],_0x2d0347['author']=_0x40e810,_0x2d0347['isExternal']=!0x0;}else _0x2d0347['authoredAt']=_0x1e3870['createdAt'];switch(_0x1e3870['data']&&(_0x2d0347['data']=_0x1e3870['data']),_0x1e3870['attributes']&&(_0x2d0347['attributes']=_0x1e3870['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2d0347['_saved']=!0x0),this['_suggestionState']['get'](_0x2d0347)){case'notReady':this['_suggestionState']['set'](_0x2d0347,'dataReady');break;case'markerReady':_0x2d0347['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2d0347])),this['_refreshSuggestionsChain'](new Set([_0x2d0347])),this['_suggestionState']['set'](_0x2d0347,'ready'),this['fire']('suggestionLoaded',_0x2d0347)):this['_suggestionState']['set'](_0x2d0347,'removed');}return _0x2d0347;}['acceptSuggestion'](_0x202c86){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ce773 of _0x202c86['getAllAdjacentSuggestions']())_0x5ce773['accept']();});});}['discardSuggestion'](_0x3c6f79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2db053 of _0x3c6f79['getAllAdjacentSuggestions']())_0x2db053['discard']();});});}['enableCommand'](_0x383110,_0x52fec7){const _0x26568c=this['editor']['commands']['get'](_0x383110);if(!_0x26568c)throw new _0x27812c('track-changes-command-not-found',this,{'commandName':_0x383110});if(this['_enabledCommands']['has'](_0x26568c))throw new _0x27812c('track-changes-enable-command-twice',this,{'commandName':_0x383110});this['_enabledCommands']['add'](_0x26568c),_0x52fec7&&_0x26568c['on']('execute',(_0x5993a7,_0x34cb42)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x34cb42['length']>0x0&&_0x34cb42[_0x34cb42['length']-0x1]&&_0x34cb42[_0x34cb42['length']-0x1]['forceDefaultExecution']?_0x34cb42['pop']():(_0x5993a7['return']=_0x52fec7((..._0x3a1b7c)=>_0x26568c['execute'](..._0x3a1b7c,{'forceDefaultExecution':!0x0}),..._0x34cb42),_0x5993a7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x355567){let _0x46feac,_0x2c27bc;const _0x3225ec=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46feac=_0x355567();}catch(_0x4978f5){_0x2c27bc=_0x4978f5;}return _0x3225ec||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c27bc&&_0x27812c['rethrowUnexpectedError'](_0x2c27bc,this),_0x46feac;}['markInsertion'](_0x46a4b1,_0x13bace=null,_0x846df5={}){if(_0x46a4b1['isCollapsed'])return null;const _0x5bc3c4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xebf2ae,meta:_0x489d7f}of this['_findSuggestions'](_0x46a4b1,'insertion'))if(_0x489d7f['isOwn']){if(!_0x489d7f['isNextTo']){if(_0x489d7f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xebf2ae,_0x846df5))continue;return _0xebf2ae;}if(qt(_0xebf2ae,_0x846df5))return _0xebf2ae;this['_breakSuggestionMarker'](_0xebf2ae,_0x46a4b1['start'],_0x46a4b1['end']);break;}if(_0x13bace==_0xebf2ae['subType']&&qt(_0xebf2ae,_0x846df5)){const _0x5bd67d=_0xebf2ae['getFirstRange']();return _0x5bd67d['start']['isEqual'](_0x46a4b1['end'])?this['_setSuggestionRange'](_0xebf2ae,this['_model']['createRange'](_0x46a4b1['start'],_0x5bd67d['end'])):this['_setSuggestionRange'](_0xebf2ae,this['_model']['createRange'](_0x5bd67d['start'],_0x46a4b1['end'])),_0xebf2ae;}}const _0x1d77f8=_0x55f5c8(),_0x4bec98=_0x5bc3c4['id'],_0x52aaa4=_0x13bace?'insertion:'+_0x13bace:'insertion',_0x560054=this['_setSuggestionData']({'id':_0x1d77f8,'type':_0x52aaa4,'createdAt':new Date(),'authorId':_0x4bec98,'attributes':_0x846df5});return this['_addSuggestionMarker'](_0x52aaa4,_0x1d77f8,_0x4bec98,_0x46a4b1),_0x560054;}['markMultiRangeInsertion'](_0x48977e,_0x815c5d='multi',_0x1c7485={}){const _0x2def6b=this['editor']['plugins']['get']('Users')['me'],_0x19908b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x815c5d,'join');for(const _0x4f84b6 of this['getSuggestions']())if(_0x4f84b6['author']['id']==_0x2def6b['id']&&'insertion'==_0x4f84b6['type']&&_0x4f84b6['subType']==_0x815c5d&&qt(_0x4f84b6,_0x1c7485)&&(_0x19908b(_0x4f84b6['getRanges'](),_0x48977e)||_0x19908b(_0x48977e,_0x4f84b6['getRanges']()))){for(const _0xf4072e of _0x48977e)_0x4f84b6['addRange'](_0xf4072e);return _0x4f84b6;}for(const {suggestion:_0x3239d5,meta:_0x4215e6}of this['_findSuggestions'](_0x48977e,'insertion')){if(!_0x4215e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4215e6['containsRangeInObject'])continue;if(!qt(_0x3239d5,_0x1c7485))continue;let _0x4e2b1f=!0x0;for(const _0x30dd3f of _0x3239d5['getRanges']())for(const _0x179ac5 of _0x48977e)if(!_0x30dd3f['containsRange'](_0x179ac5)){_0x4e2b1f=!0x1;break;}if(_0x4e2b1f)return _0x3239d5;}const _0xbbbf8f=_0x55f5c8(),_0x127ae6=_0x2def6b['id'],_0x178afa='insertion:'+_0x815c5d,_0x59c5ea=this['_setSuggestionData']({'id':_0xbbbf8f,'type':_0x178afa,'createdAt':new Date(),'authorId':_0x127ae6,'attributes':_0x1c7485});for(const _0x1bac0c of _0x48977e)this['_addSuggestionMarker'](_0x178afa,_0xbbbf8f,_0x127ae6,_0x1bac0c,u['getMultiRangeId']());return _0x59c5ea;}['markInlineFormat'](_0x5114ff,_0xd0e2c6,_0x2a76d2=null,_0x5d7064={}){if(_0x2a76d2=_0x2a76d2||Gt(_0xd0e2c6),_0x5114ff['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b1534=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a76d2,'accept');return this['forceDefaultExecution'](()=>_0x5b1534([_0x5114ff],_0xd0e2c6,_0x5d7064)),null;}const _0x12119c=this['editor']['plugins']['get']('Users')['me'],_0x1914e4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a386d,meta:_0x49da37}of this['_findSuggestions'](_0x5114ff,'insertion'))_0x49da37['isOwn']&&!_0x49da37['isInsideObject']&&_0x1914e4['push'](..._0x5a386d['getRanges']());}const _0x262191=function(_0x2a4d6c,_0x3bf159){const _0x22012b=[];for(const _0x32f6b4 of _0x3bf159){const _0x124cd2=_0x2a4d6c['getIntersection'](_0x32f6b4);_0x124cd2&&_0x22012b['push'](_0x124cd2);}return _0x22012b;}(_0x5114ff,_0x1914e4),_0x5cdf96=function(_0x5215c9,_0x39bf5d){const _0x31c6e8=[_0x5215c9];for(const _0x291d92 of _0x39bf5d){let _0x56a242=0x0;for(;_0x56a242<_0x31c6e8['length'];){const _0x132a51=_0x31c6e8[_0x56a242]['getDifference'](_0x291d92);_0x31c6e8['splice'](_0x56a242,0x1,..._0x132a51),_0x56a242+=_0x132a51['length'];}}return _0x31c6e8;}(_0x5114ff,_0x1914e4);_0x262191['length']&&this['_model']['change'](()=>{for(const _0x1a469d of _0x262191){const _0x1e048b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a76d2,'accept');this['forceDefaultExecution'](()=>_0x1e048b([_0x1a469d],_0xd0e2c6,_0x5d7064));}});for(const _0x81377c of _0x5cdf96){let _0x455e73=null,_0x58ef14=_0x81377c['start'],_0x2e672e=_0x81377c['end'];for(const {suggestion:_0x26e424,meta:_0xf51dcc}of this['_findSuggestions'](_0x81377c,'formatInline')){if(!_0xf51dcc['isOwn'])continue;if(_0x26e424['subType']!=_0x2a76d2)continue;if(!qt(_0x26e424,_0x5d7064))continue;const _0x1a65f2=_0x26e424['getFirstRange']();if(_0x1a65f2['containsRange'](_0x81377c,!0x0))return null;_0x58ef14=_0x58ef14['isBefore'](_0x1a65f2['start'])?_0x58ef14:_0x1a65f2['start'],_0x2e672e=_0x2e672e['isAfter'](_0x1a65f2['end'])?_0x2e672e:_0x1a65f2['end'],_0x455e73?_0x1a65f2['start']['isBefore'](_0x455e73['getFirstRange']()['start'])?(_0x455e73['removeMarkers'](),_0x455e73=_0x26e424):_0x26e424['removeMarkers']():_0x455e73=_0x26e424;}const _0x3ca836=this['_model']['createRange'](_0x58ef14,_0x2e672e);if(_0x455e73)this['_setSuggestionRange'](_0x455e73,_0x3ca836);else{const _0x13e899=_0x55f5c8(),_0x2f7af7=_0x12119c['id'];this['_setSuggestionData']({'id':_0x13e899,'type':'formatInline:'+_0x2a76d2,'data':_0xd0e2c6,'createdAt':new Date(),'authorId':_0x2f7af7,'attributes':_0x5d7064}),this['_addSuggestionMarker']('formatInline:'+_0x2a76d2,_0x13e899,_0x2f7af7,_0x3ca836);}}return null;}['markBlockFormat'](_0x54870e,_0x2a2381,_0x25a856=[],_0x45b2f5=null,_0x1e6f90={}){_0x2a2381['formatGroupId']||(_0x2a2381['formatGroupId']=_0x2a2381['commandName']),_0x2a2381['multipleBlocks']=_0x54870e['is']('range'),_0x45b2f5=_0x45b2f5||Gt(_0x2a2381);const _0x2d6033=_0x25a856['map'](_0x3cdd57=>Lt(_0x3cdd57,this['_model'])),_0xe09f9e=_0x54870e['is']('range')?_0x54870e:Lt(_0x54870e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x38a5b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b2f5,'accept');return this['forceDefaultExecution'](()=>_0x38a5b5([_0xe09f9e],_0x2a2381,_0x1e6f90)),null;}_0x2d6033['push'](_0xe09f9e);let _0x10c84d=!0x0;for(const _0xf018ed of _0x2d6033)if(!this['_rangeIsInLocalUserInsertion'](_0xf018ed)){_0x10c84d=!0x1;break;}if(_0x10c84d&&'always'!==this['_trackFormatChanges']){const _0x202172=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b2f5,'accept');return this['forceDefaultExecution'](()=>_0x202172([_0xe09f9e],_0x2a2381,_0x1e6f90)),null;}let _0x1352fd=null,_0x334d6a=_0xe09f9e['start'],_0x5bd17b=_0xe09f9e['end'];for(const {suggestion:_0x3dc2a4,meta:_0x4443a9}of this['_findSuggestions'](_0xe09f9e,'formatBlock')){if(!_0x4443a9['isOwn'])continue;if(_0x4443a9['isNextTo']||_0x4443a9['containsRangeInObject']||_0x4443a9['isInsideObject'])continue;if(_0x3dc2a4['data']['formatGroupId']!=_0x2a2381['formatGroupId'])continue;if(!qt(_0x3dc2a4,_0x1e6f90))continue;const _0x1244b4=_0x3dc2a4['getFirstRange']();if(_0x3dc2a4['subType']==_0x45b2f5){if(_0x1244b4['containsRange'](_0xe09f9e,!0x0))return null;_0x334d6a=_0x334d6a['isBefore'](_0x1244b4['start'])?_0x334d6a:_0x1244b4['start'],_0x5bd17b=_0x5bd17b['isAfter'](_0x1244b4['end'])?_0x5bd17b:_0x1244b4['end'],_0x1352fd?_0x1244b4['start']['isBefore'](_0x1352fd['getFirstRange']()['start'])?(_0x1352fd['removeMarkers'](),_0x1352fd=_0x3dc2a4):_0x3dc2a4['removeMarkers']():_0x1352fd=_0x3dc2a4;}else{const _0x234908=_0xe09f9e['getIntersection'](_0x1244b4);this['_cutOutSuggestionMarker'](_0x3dc2a4,_0x234908);}}const _0x12bb8a=this['editor']['plugins']['get']('Users')['me'],_0x4af2ad=_0x55f5c8(),_0x40c62c=_0x12bb8a['id'];if(_0x1352fd)return this['_setSuggestionRange'](_0x1352fd,this['_model']['createRange'](_0x334d6a,_0x5bd17b)),_0x1352fd;{const _0x1bfff4=this['_setSuggestionData']({'id':_0x4af2ad,'type':'formatBlock:'+_0x45b2f5,'data':_0x2a2381,'createdAt':new Date(),'authorId':_0x40c62c,'attributes':_0x1e6f90});return this['_addSuggestionMarker']('formatBlock:'+_0x45b2f5,_0x4af2ad,_0x40c62c,this['_model']['createRange'](_0x334d6a,_0x5bd17b)),_0x1bfff4;}}['markMultiRangeBlockFormat'](_0x154b84,_0xbbb3f,_0x117695=[],_0x1dc52e=null,_0x202537={}){_0xbbb3f['formatGroupId']||(_0xbbb3f['formatGroupId']=_0xbbb3f['commandName']);const _0x1b642e=_0x154b84[0x0];_0xbbb3f['multipleBlocks']=_0x1b642e['is']('range'),_0x1dc52e=_0x1dc52e||Gt(_0xbbb3f);const _0x4a81d0=_0x117695['map'](_0x4f95b9=>Lt(_0x4f95b9,this['_model'])),_0x53e661=_0x1b642e['is']('range')?_0x154b84:_0x154b84['map'](_0x39f5ce=>Lt(_0x39f5ce,this['_model']));if('never'===this['_trackFormatChanges']){const _0x25881a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'accept');return this['forceDefaultExecution'](()=>_0x25881a(_0x53e661,_0xbbb3f,_0x202537)),null;}_0x4a81d0['push'](..._0x53e661);let _0x150055=!0x0;for(const _0x40d80e of _0x4a81d0)if(!this['_rangeIsInLocalUserInsertion'](_0x40d80e)){_0x150055=!0x1;break;}if(_0x150055&&'always'!==this['_trackFormatChanges']){const _0x2b03a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'accept');return this['forceDefaultExecution'](()=>_0x2b03a8(_0x53e661,_0xbbb3f,_0x202537)),null;}const _0x5cb00f=this['editor']['plugins']['get']('Users')['me'];for(const _0xaaa347 of this['getSuggestions']()){if(_0xaaa347['author']['id']!=_0x5cb00f['id'])continue;if('formatBlock'!=_0xaaa347['type']||_0xaaa347['data']['formatGroupId']!=_0xbbb3f['formatGroupId'])continue;if(!qt(_0xaaa347,_0x202537))continue;const _0x542e2e=_0xaaa347['subType']==_0x1dc52e;for(let _0x217f2d=0x0;_0x217f2d<_0x53e661['length'];_0x217f2d++){const _0x17ad42=_0x53e661[_0x217f2d];for(const _0x505f3e of _0xaaa347['getMarkers']()){const _0x42ae46=_0x505f3e['getRange']();if(_0x17ad42['isEqual'](_0x42ae46)){_0x542e2e?(_0x53e661['splice'](_0x217f2d,0x1),_0x217f2d--):_0xaaa347['removeMarker'](_0x505f3e['name']);break;}}}}if(0x0==_0x53e661['length'])return null;const _0x5dc05e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'join');for(const _0x40dcf5 of this['getSuggestions']())if(_0x40dcf5['author']['id']==_0x5cb00f['id']&&'formatBlock'==_0x40dcf5['type']&&_0x40dcf5['data']['formatGroupId']==_0xbbb3f['formatGroupId']&&_0x40dcf5['subType']==_0x1dc52e&&qt(_0x40dcf5,_0x202537)&&(_0x5dc05e(_0x40dcf5['getRanges'](),_0x53e661)||_0x5dc05e(_0x53e661,_0x40dcf5['getRanges']()))){for(const _0xb3545d of _0x53e661)_0x40dcf5['addRange'](_0xb3545d);return _0x40dcf5;}const _0x3bcc27=_0x55f5c8(),_0x1fdaa0=_0x5cb00f['id'],_0x52c7d6='formatBlock:'+_0x1dc52e,_0x3a6c2c=this['_setSuggestionData']({'id':_0x3bcc27,'type':_0x52c7d6,'data':_0xbbb3f,'createdAt':new Date(),'authorId':_0x1fdaa0,'attributes':_0x202537});for(const _0x1adad7 of _0x53e661)this['_addSuggestionMarker'](_0x52c7d6,_0x3bcc27,_0x1fdaa0,_0x1adad7,u['getMultiRangeId']());return _0x3a6c2c;}['markDeletion'](_0x5f3341,_0x3498ec=null,_0x2243c1={}){if(_0x5f3341['isCollapsed'])return null;const _0x38b6c5=this['editor']['plugins']['get']('Users')['me'],_0x34aa62=new _0x46da37(_0x5f3341['start'],_0x5f3341['end']);for(const {suggestion:_0x2ef1de,meta:_0x5ed844}of this['_findSuggestions'](_0x34aa62,'insertion'))if(_0x5ed844['isOwn']&&!_0x5ed844['isNextTo']){if(_0x2ef1de['isMultiRange']){const _0x4ba639=_0x2ef1de['getRanges']()['filter'](_0x5b7765=>'$graveyard'!=_0x5b7765['root']['rootName']);_0x4ba639['every'](_0x49e379=>_0x34aa62['containsRange'](_0x49e379,!0x0))&&_0x2ef1de['discard']();if(_0x4ba639['some'](_0x20a9d9=>_0x20a9d9['containsRange'](_0x34aa62,!0x0))){const _0x1365d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3498ec,'accept');return this['forceDefaultExecution'](()=>_0x1365d6([_0x34aa62],null,_0x2243c1)),null;}}else{const _0x56af8c=_0x34aa62['getIntersection'](_0x2ef1de['getFirstRange']());null!==_0x56af8c&&_0x2ef1de['_onDiscard']([_0x56af8c],null,_0x2243c1);}}if(_0x34aa62['detach'](),_0x34aa62['isCollapsed']||'$graveyard'==_0x34aa62['root']['rootName'])return null;let _0x1522df=null,_0x2152b6=_0x34aa62['start'],_0xcfbfd9=_0x34aa62['end'];const _0x2084cd=this['_findSuggestions'](_0x34aa62,'deletion');for(const {suggestion:_0x1960e9,meta:_0x53bf69}of _0x2084cd){const _0x575f64=this['_model']['createRange'](_0x2152b6,_0xcfbfd9);if(_0x53bf69['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53bf69['containsRangeInObject']&&!_0x53bf69['isInsideObject'])){if(_0x1960e9['isMultiRange']){if(!qt(_0x1960e9,_0x2243c1))continue;let _0x15a1ad=!0x0;for(const _0x1278a2 of _0x1960e9['getRanges']()){if(_0x1278a2['containsRange'](_0x575f64,!0x0))return _0x1960e9;_0x575f64['containsRange'](_0x1278a2)||(_0x15a1ad=!0x1);}_0x15a1ad&&_0x1960e9['discard']();}else{const _0x3259d1=_0x1960e9['getFirstRange']();if(_0x3259d1['containsRange'](_0x575f64,!0x0))return _0x1960e9;if(!qt(_0x1960e9,_0x2243c1)){_0x575f64['containsRange'](_0x3259d1)?_0x1960e9['removeMarkers']():_0x3259d1['containsPosition'](_0x2152b6)?_0x2152b6=_0x3259d1['end']:_0x3259d1['containsPosition'](_0xcfbfd9)&&(_0xcfbfd9=_0x3259d1['start']);continue;}_0x2152b6=_0x2152b6['isBefore'](_0x3259d1['start'])?_0x2152b6:_0x3259d1['start'],_0xcfbfd9=_0xcfbfd9['isAfter'](_0x3259d1['end'])?_0xcfbfd9:_0x3259d1['end'],_0x2243c1=Object['assign']({},_0x1960e9['attributes']),_0x1522df?_0x3259d1['start']['isBefore'](_0x1522df['getFirstRange']()['start'])?(_0x1522df['removeMarkers'](),_0x1522df=_0x1960e9):_0x1960e9['removeMarkers']():_0x1522df=_0x1960e9;}}}if(_0x1522df)return this['_setSuggestionRange'](_0x1522df,this['_model']['createRange'](_0x2152b6,_0xcfbfd9)),_0x1522df;{const _0x36ede9=_0x55f5c8(),_0x766233=this['_model']['createRange'](_0x2152b6,_0xcfbfd9),_0x650915=_0x38b6c5['id'],_0x1c5fdf=_0x3498ec?'deletion:'+_0x3498ec:'deletion',_0x7cdf6e=this['_setSuggestionData']({'id':_0x36ede9,'type':_0x1c5fdf,'createdAt':new Date(),'authorId':_0x650915,'attributes':_0x2243c1});return this['_addSuggestionMarker'](_0x1c5fdf,_0x36ede9,_0x650915,_0x766233),_0x7cdf6e;}}['markMultiRangeDeletion'](_0x104a40,_0x2f0ecf='multi',_0x2b3086={}){const _0x1a78d6=this['editor']['plugins']['get']('Users')['me'],_0x14a5bd=_0x104a40['map'](_0x458997=>new _0x46da37(_0x458997['start'],_0x458997['end'])),_0x1610d5=new Set();for(const {suggestion:_0x49a576,meta:_0x41ea1f}of this['_findSuggestions'](_0x14a5bd,'insertion'))_0x41ea1f['isOwn']&&!_0x41ea1f['isNextTo']&&_0x1610d5['add'](_0x49a576);for(const _0x1883f7 of _0x1610d5)if(_0x1883f7['isMultiRange']){const _0x2e725b=_0x1883f7['getRanges']();(!_0x1883f7['attributes']||!_0x1883f7['attributes']['skipNestingCheck'])&&(_0x2e725b['every'](_0x36fa9e=>_0x14a5bd['some'](_0x228b76=>_0x228b76['containsRange'](_0x36fa9e,!0x0)))&&_0x1883f7['discard']());if(_0x14a5bd['every'](_0x49a69e=>_0x2e725b['some'](_0x16f8df=>_0x16f8df['containsRange'](_0x49a69e,!0x0)))){const _0x26e585=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'accept');return this['forceDefaultExecution'](()=>_0x26e585(_0x104a40,null,_0x2b3086)),null;}}else{const _0x1c85bc=_0x1883f7['getFirstRange']();_0x14a5bd['some'](_0x31dfa4=>_0x31dfa4['containsRange'](_0x1c85bc,!0x0))&&_0x1883f7['discard']();if(_0x14a5bd['every'](_0x351138=>_0x1c85bc['containsRange'](_0x351138,!0x0))){const _0x20e5d2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'accept');return this['forceDefaultExecution'](()=>_0x20e5d2(_0x14a5bd,null,_0x2b3086)),null;}}const _0x23664c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'join');let _0x57a792=null;for(const _0x5aa611 of this['getSuggestions']())if(_0x5aa611['author']['id']==_0x1a78d6['id']&&_0x5aa611['isInContent']&&'deletion'==_0x5aa611['type']&&_0x5aa611['subType']==_0x2f0ecf&&qt(_0x5aa611,_0x2b3086)&&(_0x23664c(_0x5aa611['getRanges'](),_0x14a5bd)||_0x23664c(_0x14a5bd,_0x5aa611['getRanges']()))){if(_0x57a792){if(_0x5aa611['commentThread']&&_0x5aa611['commentThread']['length'])continue;for(const _0x49b2a1 of _0x5aa611['getRanges']())_0x57a792['isIntersectingWithRange'](_0x49b2a1)||_0x57a792['addRange'](_0x49b2a1);_0x5aa611['removeMarkers']();}else{_0x57a792=_0x5aa611;for(const _0x4c7307 of _0x14a5bd)_0x5aa611['isIntersectingWithRange'](_0x4c7307)||_0x5aa611['addRange'](_0x4c7307);}}if(_0x57a792)return _0x57a792;_0x1610d5['clear']();for(const {suggestion:_0x575eef,meta:_0x2e15ab}of this['_findSuggestions'](_0x14a5bd,'deletion'))_0x2e15ab['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e15ab['containsRangeInObject']&&!_0x2e15ab['isInsideObject'])&&qt(_0x575eef,_0x2b3086)&&_0x1610d5['add'](_0x575eef);for(const _0x426b39 of _0x1610d5){const _0x499eda=_0x426b39['getRanges']();if(!_0x2b3086||!_0x2b3086['skipNestingCheck']){if(_0x14a5bd['every'](_0x2892c4=>_0x499eda['some'](_0x2b37af=>_0x2b37af['containsRange'](_0x2892c4,!0x0))))return _0x426b39;}(!_0x426b39['attributes']||!_0x426b39['attributes']['skipNestingCheck'])&&(_0x499eda['every'](_0xaf77dc=>_0x14a5bd['some'](_0x380291=>_0x380291['containsRange'](_0xaf77dc,!0x0)))&&_0x426b39['discard']());}const _0x2153d3=_0x55f5c8(),_0x3c499c=_0x1a78d6['id'],_0xaed2ac='deletion:'+_0x2f0ecf,_0xb1619d=this['_setSuggestionData']({'id':_0x2153d3,'type':_0xaed2ac,'createdAt':new Date(),'authorId':_0x3c499c,'attributes':_0x2b3086});for(const _0x46c11d of _0x14a5bd)_0x46c11d['detach'](),_0x46c11d['isCollapsed']||'$graveyard'==_0x46c11d['root']['rootName']||this['_addSuggestionMarker'](_0xaed2ac,_0x2153d3,_0x3c499c,_0x46c11d,u['getMultiRangeId']());return _0xb1619d;}['markAttributeChange'](_0xf7ab2e,_0x1d3faa,_0x4500cd,_0x2a0f75,_0x5fdf55){if(_0xf7ab2e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf4297d=this['editor']['plugins']['get']('Users')['me']['id'],_0x59f535=Array['from'](this['_suggestions']['values']())['filter'](_0x48bad6=>'attribute'==_0x48bad6['type']&&_0x48bad6['data']['key']==_0x1d3faa&&_0x48bad6['isIntersectingWithRange'](_0xf7ab2e));if('default'===this['_trackFormatChanges']){const _0x10cde2=this['_findSuggestions'](_0xf7ab2e,'insertion')['filter'](({meta:_0x597d3c})=>_0x597d3c['isOwn']&&!_0x597d3c['isInsideObject']&&!_0x597d3c['isNextTo'])['map'](({suggestion:_0x2a96af})=>_0x2a96af);_0x59f535['unshift'](..._0x10cde2);}const _0x460ccc=new Map([[_0xf7ab2e,_0x4500cd]]);for(const _0x2cf3cc of _0x59f535){const _0x4fd52c='attribute'==_0x2cf3cc['type']?_0x2cf3cc['data']['oldValue']:void 0x0,_0x3cb7d6=_0x2cf3cc['getFirstRange'](),_0x558e90=Array['from'](_0x460ccc['keys']())['find'](_0x27ea08=>_0x27ea08['isIntersecting'](_0x3cb7d6));if(!_0x558e90)continue;const _0x590a35=_0x558e90['getDifference'](_0x3cb7d6);this['_isBlockAttribute'](_0x1d3faa)&&'insertion'==_0x2cf3cc['type']&&0x0!=_0x590a35['length']||(_0x460ccc['delete'](_0x558e90),_0x590a35['forEach'](_0x124627=>{_0x460ccc['set'](_0x124627,_0x4500cd);}),'insertion'!=_0x2cf3cc['type']&&_0x4fd52c!=_0x2a0f75&&_0x460ccc['set'](_0x558e90['getIntersection'](_0x3cb7d6),_0x4fd52c));}const _0x1ebbb6=[];for(const [_0x52b91b,_0x57d729]of _0x460ccc){const _0x472ca9=_0x55f5c8(),_0x3544ea={'key':_0x1d3faa,'oldValue':_0x57d729,'newValue':_0x2a0f75};_0x1d3faa['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':_0x1d3faa});const _0x202da5=('attribute:'+(_0x1d3faa+'|'+Gt({'newValue':_0x2a0f75})))['substring'](0x0,0x3c),_0x1f17ce=this['_setSuggestionData']({'id':_0x472ca9,'type':_0x202da5,'data':_0x3544ea,'createdAt':new Date(),'authorId':_0xf4297d,'attributes':_0x5fdf55});_0x1ebbb6['push'](_0x1f17ce),this['_addSuggestionMarker'](_0x202da5,_0x472ca9,_0xf4297d,_0x52b91b);}return _0x1ebbb6;}['enableDefaultAttributesIntegration'](_0x589f1e){this['enableCommand'](_0x589f1e,(_0x19051d,..._0x4b252a)=>{this['_recordAttributeChanges'](()=>{_0x19051d(..._0x4b252a);});});}['registerBlockAttribute'](_0x2d4749){this['_blockAttributeKeys']['add'](_0x2d4749);}['registerInlineAttribute'](_0x48ee0e){this['_inlineAttributeKeys']['add'](_0x48ee0e);}['_getAttributeKey'](_0x83d8a3){return'attribute'==_0x83d8a3['type']?_0x83d8a3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x44434d,_0x23cfb6){const _0x1bd919=_0x44434d['getFirstMarker']();this['_model']['change'](_0x58f054=>{_0x58f054['updateMarker'](_0x1bd919,{'range':_0x23cfb6});});}['_addThreadToSuggestion'](_0x25f036){const _0x27919d=_0x25f036['id'],_0x5281c8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27919d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5281c8,'threadId':_0x27919d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x642b2d=this['_commentsRepository']['getCommentThread'](_0x27919d);_0x642b2d['unbind']('isRemovable'),_0x642b2d['isRemovable']=!0x1,_0x25f036['commentThread']=_0x642b2d;}['_checkSuggestionCorrectness'](_0x4593b6,_0xc85595,_0x1d8e68,_0x28e419){if(_0x4593b6['type']!=_0xc85595||_0x4593b6['subType']!=_0x1d8e68||_0x4593b6['creator']['id']!=_0x28e419)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27812c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xd17da3,_0x52f851){const _0x3a9100=_0xd17da3['getFirstRange']();if(_0x52f851['isEqual'](_0x3a9100))_0xd17da3['removeMarkers']();else{if(_0x3a9100['containsRange'](_0x52f851)){const _0x204b76=this['_model']['createPositionAt'](_0x52f851['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0x3a9100['start'],_0x204b76));const _0x25cf29=_0x55f5c8(),_0x277f53=_0xd17da3['creator']['id'],_0x1bb4fa=_0xd17da3['type']+':'+_0xd17da3['subType'];this['_setSuggestionData']({'id':_0x25cf29,'type':_0x1bb4fa,'createdAt':new Date(),'authorId':_0x277f53,'data':_0xd17da3['data'],'attributes':_0xd17da3['attributes']});const _0x47f981=this['_model']['createPositionAt'](_0x52f851['end']['parent'],'after'),_0x58d797=this['_model']['createRange'](_0x47f981,_0x3a9100['end']);this['_addSuggestionMarker'](_0x1bb4fa,_0x25cf29,_0x277f53,_0x58d797);}else{if(_0x3a9100['containsPosition'](_0x52f851['start'])){const _0x488e2d=this['_model']['createPositionAt'](_0x52f851['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0x3a9100['start'],_0x488e2d));}else{const _0xa8461=this['_model']['createPositionAt'](_0x52f851['end']['parent'],'after');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0xa8461,_0x3a9100['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x783932){for(const {suggestion:_0x41d1a2,meta:_0xa967b}of this['_findSuggestions'](_0x783932,'insertion')){if(!_0xa967b['isOwn'])continue;const _0x359485=_0x41d1a2['getRanges']();for(const _0x4f0164 of _0x359485)if(!_0x783932['getDifference'](_0x4f0164)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x147381){const _0x5d02d7=this['editor']['plugins']['get']('Users')['getUser'](_0x147381);if(!_0x5d02d7)throw new _0x27812c('track-changes-user-not-found',this);return _0x5d02d7;}['_getExternalAuthor'](_0x33939e){const _0x1d7e0b=this['editor']['plugins']['get']('Users'),_0x18eeb2=_0xf1b1f('external:'+_0x33939e),_0x55cf82=_0x1d7e0b['getUser'](_0x18eeb2);return _0x55cf82||_0x1d7e0b['addUser']({'id':_0x18eeb2,'name':_0x33939e});}['_createSuggestion'](_0x5696db,_0x192587,_0x2e817f,_0x24b3f7,_0x300e66){const _0x214c8e=this['_getAuthorFromId'](_0x24b3f7),_0x1ddafe=this['_suggestionFactory']['buildSuggestion'](_0x5696db,_0x192587,_0x2e817f,_0x214c8e,_0x300e66,_0x555f90=>{this['_updateSuggestionData'](_0x2e817f,{'attributes':_0x555f90});const _0x1f7ba2=this['getSuggestion'](_0x2e817f);this['_joinWithAdjacentSuggestions'](new Set([_0x1f7ba2])),this['_refreshSuggestionsChain'](new Set([_0x1f7ba2]));});return this['listenTo'](_0x1ddafe,'accept',()=>{this['_updateSuggestionData'](_0x2e817f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ddafe,'discard',()=>{this['_updateSuggestionData'](_0x2e817f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e817f,_0x1ddafe),this['_suggestionState']['set'](_0x1ddafe,'notReady'),_0x1ddafe;}['_splitMarkerName'](_0x1231ad){const _0x35c981=_0x1231ad['split'](':');return{'group':_0x35c981[0x0],'type':_0x35c981[0x1],'subType':_0x35c981['length']>=0x5?_0x35c981[0x2]:null,'id':_0x35c981['length']<0x5?_0x35c981[0x2]:_0x35c981[0x3],'authorId':_0x35c981['length']<0x5?_0x35c981[0x3]:_0x35c981[0x4],'markerCount':0x6==_0x35c981['length']?_0x35c981[0x5]:null};}['_breakSuggestionMarker'](_0x2db3e5,_0x406f5a,_0x18c695){const _0x597b9c=_0x2db3e5['getFirstRange'](),_0x3a5733=_0x597b9c['start'],_0x52fc5d=_0x597b9c['end'];this['_setSuggestionRange'](_0x2db3e5,this['_model']['createRange'](_0x3a5733,_0x406f5a));const _0x3293ed=_0x55f5c8(),_0x5d7474=_0x2db3e5['creator']['id'],_0x2206d8=_0x2db3e5['type']+(_0x2db3e5['subType']?':'+_0x2db3e5['subType']:'');this['_setSuggestionData']({'id':_0x3293ed,'type':_0x2206d8,'createdAt':new Date(),'authorId':_0x5d7474,'originalSuggestionId':_0x2db3e5['id'],'attributes':_0x2db3e5['attributes'],'data':_0x2db3e5['data']});const _0x1f206b=this['_getAttributeKey'](_0x2db3e5);('formatBlock'==_0x2db3e5['type']||_0x1f206b&&this['_isBlockAttribute'](_0x1f206b))&&(_0x18c695=this['_model']['createPositionBefore'](_0x18c695['parent'])),this['_addSuggestionMarker'](_0x2206d8,_0x3293ed,_0x5d7474,this['_model']['createRange'](_0x18c695,_0x52fc5d));}['_findSuggestions'](_0x5ae102,_0x4d4254=null){const _0x3968a3=[],_0x3faab2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5ae102)||(_0x5ae102=[_0x5ae102]);for(const _0x38f24e of this['getSuggestions']()){if(!_0x38f24e['isInContent'])continue;if(_0x4d4254&&_0x38f24e['type']!=_0x4d4254)continue;let _0xafdd68=!0x1;for(const _0x2907db of _0x38f24e['getRanges']()){for(const _0x56bb6c of _0x5ae102){const _0x428583=_0x56bb6c['start']['isEqual'](_0x2907db['end'])||_0x56bb6c['end']['isEqual'](_0x2907db['start']);if(_0x428583||_0x56bb6c['getIntersection'](_0x2907db)){const _0x56f6cc=_0x56bb6c['containsRange'](_0x2907db)&&Ot(this['_model']['schema'],_0x2907db['start'],_0x56bb6c),_0x484f55=_0x2907db['containsRange'](_0x56bb6c)&&Ot(this['_model']['schema'],_0x56bb6c['start'],_0x2907db);_0x3968a3['push']({'suggestion':_0x38f24e,'meta':{'isOwn':_0x3faab2==_0x38f24e['author'],'isNextTo':_0x428583,'isInsideObject':_0x56f6cc,'containsRangeInObject':_0x484f55}}),_0xafdd68=!0x0;break;}}if(_0xafdd68)break;}}return _0x3968a3;}['_addSuggestionMarker'](_0x13f0f7,_0x3fd644,_0x5d0a89,_0x2fbc2c,_0x579cd4){this['_model']['change'](_0x258b7a=>{let _0x53ad0f='suggestion:'+_0x13f0f7+':'+_0x3fd644+':'+_0x5d0a89;_0x579cd4&&(_0x53ad0f=_0x53ad0f+':'+_0x579cd4),_0x258b7a['addMarker'](_0x53ad0f,{'range':_0x2fbc2c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c25cb){const _0x1fa856=_0x2c25cb['previous'],_0x5bdc81=_0x2c25cb['next'];_0x2c25cb['previous']=null,_0x2c25cb['next']=null,null!=_0x1fa856&&_0x1fa856['next']==_0x2c25cb&&(_0x1fa856['next']=_0x5bdc81),null!=_0x5bdc81&&_0x5bdc81['previous']==_0x2c25cb&&(_0x5bdc81['previous']=_0x1fa856),'ready'==this['_suggestionState']['get'](_0x2c25cb)&&(this['_suggestionState']['set'](_0x2c25cb,'removed'),this['fire']('suggestionUnloaded',_0x2c25cb,_0x1fa856,_0x5bdc81));}['_setSuggestionData'](_0x18e41f){const _0x4d6df7=_0x18e41f['id'],_0x4cf951=this['addSuggestionData'](_0x18e41f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9bfad3=this['editor']['plugins']['get']('PendingActions'),_0x414e29=_0x4cf951['hasComments'],_0x49d68b=_0x4cf951['subType']?_0x4cf951['type']+':'+_0x4cf951['subType']:_0x4cf951['type'],_0x20148c=this['editor']['locale'],_0x17e2dd=_0x9bfad3['add'](o(_0x20148c,'PENDING_ACTION_SUGGESTION')),_0x2bfd3b={'id':_0x4d6df7,'type':_0x49d68b,'hasComments':_0x414e29,'data':_0x18e41f['data']||null,'originalSuggestionId':_0x18e41f['originalSuggestionId']||null,'attributes':_0x4cf951['attributes']};this['_adapter']['addSuggestion'](_0x2bfd3b)['then'](_0x24e7cd=>{_0x4cf951['_saved']=!0x0,_0x9bfad3['remove'](_0x17e2dd),_0x24e7cd&&_0x24e7cd['createdAt']&&(this['_suggestions']['get'](_0x4d6df7)['createdAt']=_0x24e7cd['createdAt']);})['catch'](_0x22ff9c=>{throw _0x3fdb3b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4cf951['discard']();}),_0x4cf951['stopListening'](),this['_suggestions']['delete'](_0x4cf951['id']),this['_suggestionState']['delete'](_0x4cf951),_0x22ff9c;});}return _0x4cf951;}['_isBlockAttribute'](_0x9b3997){return this['_blockAttributeKeys']['has'](_0x9b3997);}['_updateSuggestionData'](_0x345943,_0x3b7b46){const _0x285c73=this['editor']['plugins']['get']('PendingActions'),_0x3cdb86=this['getSuggestion'](_0x345943);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3cdb86['_saved']){const _0x6d3f73=_0x285c73['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x345943,_0x3b7b46)['then'](()=>{_0x285c73['remove'](_0x6d3f73);});}else _0x3cdb86['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x345943,_0x3b7b46);});}}['_getSuggestionData'](_0x1bef22){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27812c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1bef22);}['_handleNewSuggestionMarker'](_0xb2b447){const {id:_0x11183a,type:_0xa72b43,subType:_0xd5bf43,authorId:_0x19f79}=this['_splitMarkerName'](_0xb2b447),_0x52571c=this['_suggestions']['get'](_0x11183a)||this['_createSuggestion'](_0xa72b43,_0xd5bf43,_0x11183a,_0x19f79,{});switch(this['_checkSuggestionCorrectness'](_0x52571c,_0xa72b43,_0xd5bf43,_0x19f79),this['_suggestionState']['get'](_0x52571c)){case'notReady':this['_getSuggestionData'](_0x11183a)['then'](_0x57bce3=>{let _0x32df7f=Promise['resolve']();_0x57bce3['hasComments']&&(_0x32df7f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x11183a})),_0x32df7f['then'](()=>{this['addSuggestionData'](_0x57bce3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52571c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x11183a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52571c,'ready'),this['fire']('suggestionLoaded',_0x52571c);break;case'ready':this['fire']('suggestionChanged',_0x52571c);}return _0x52571c['addMarkerName'](_0xb2b447),_0x52571c;}['_refreshSuggestionsChain'](_0x46f22d){const _0x56a0d0=Array['from'](_0x46f22d),_0x5b7633=_0x56a0d0['filter'](_0x98cfce=>'attribute'==_0x98cfce['type']);this['_refreshAttributeSuggestionsChain'](_0x5b7633);const _0x7c7225=_0x56a0d0['filter'](_0x11f79e=>!_0x11f79e['isMultiRange']&&'attribute'!=_0x11f79e['type']),_0xd0a9e0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40082d=>!_0x40082d['isMultiRange']&&'attribute'!=_0x40082d['type']),_0x148f71=_0xd0a9e0['filter'](_0x5c111c=>!_0x46f22d['has'](_0x5c111c)),_0x1799a3=new Map(_0xd0a9e0['map'](_0xe965d9=>[_0xe965d9,this['_suggestionFactory']['getSuggestionCallback'](_0xe965d9['type'],_0xe965d9['subType'],'chain')])),_0x4b9325=new Map(_0xd0a9e0['map'](_0x9170bd=>[_0x9170bd,_0x9170bd['getFirstRange']()])),_0xcd3562=new Set(),_0x214460=new Set();for(let _0x260df4=0x0;_0x260df4<_0x7c7225['length'];_0x260df4++)_0x597bad(_0x7c7225[_0x260df4],_0x7c7225,_0x260df4+0x1);for(let _0x50cbb6=0x0;_0x50cbb6<_0x7c7225['length'];_0x50cbb6++)_0x597bad(_0x7c7225[_0x50cbb6],_0x148f71,0x0);const _0x51b26e=new Set();for(let _0x3fb561=0x0;_0x3fb561<_0x7c7225['length'];_0x3fb561++){const _0x187c08=_0x7c7225[_0x3fb561];!_0x214460['has'](_0x187c08)&&_0x187c08['previous']&&(_0x51b26e['add'](_0x187c08['previous']),_0x187c08['previous']['next']===_0x187c08&&(_0x187c08['previous']['next']=null),_0x187c08['previous']=null),!_0xcd3562['has'](_0x187c08)&&_0x187c08['next']&&(_0x51b26e['add'](_0x187c08['next']),_0x187c08['next']['previous']===_0x187c08&&(_0x187c08['next']['previous']=null),_0x187c08['next']=null);}function _0x597bad(_0x1a14a3,_0x2291f7,_0x1250a8){for(let _0x39f7bc=_0x1250a8;_0x39f7bc<_0x2291f7['length'];_0x39f7bc++){const _0x116048=_0x19a718(_0x1a14a3,_0x2291f7[_0x39f7bc]);_0x116048&&(_0x116048[0x0]['next']=_0x116048[0x1],_0x116048[0x1]['previous']=_0x116048[0x0],_0xcd3562['add'](_0x116048[0x0]),_0x214460['add'](_0x116048[0x1]));}}function _0x19a718(_0x3e1cc5,_0x24f344){if(_0x3e1cc5['author']['id']!==_0x24f344['author']['id'])return null;const _0x5f42ee=_0x1799a3['get'](_0x3e1cc5)(_0x3e1cc5,_0x24f344,_0x4b9325['get'](_0x3e1cc5),_0x4b9325['get'](_0x24f344));if(!_0x5f42ee)return null;return _0x1799a3['get'](_0x24f344)(_0x3e1cc5,_0x24f344,_0x4b9325['get'](_0x3e1cc5),_0x4b9325['get'](_0x24f344))?_0x5f42ee[0x1]['commentThread']&&_0x5f42ee[0x1]['commentThread']['length']?null:_0x5f42ee:null;}_0x51b26e['size']&&this['_refreshSuggestionsChain'](_0x51b26e);}['_refreshAttributeSuggestionsChain'](_0x22e163){if(0x0==_0x22e163['length'])return;const _0x3d28d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b6ce9=>'attribute'==_0x3b6ce9['type']&&_0x3b6ce9['_isDataLoaded']),_0x473953=[],_0x4355f5=new Map();for(const _0x3a9744 of _0x3d28d1){const _0x55a9d6=_0xf1b1f(_0x3a9744['attributes']);_0x4355f5['has'](_0x55a9d6)||(_0x4355f5['set'](_0x55a9d6,_0x473953['length']),_0x473953['push']([]));const _0x46bdf4=_0x4355f5['get'](_0x55a9d6);_0x473953[_0x46bdf4]['push'](_0x3a9744);}!(function(){_0x473953['sort']((_0x21a87a,_0x5c37a1)=>{const _0x3f4127=_0x21a87a[0x0]['createdAt'],_0x419ffc=_0x5c37a1[0x0]['createdAt'];return _0x3f4127==_0x419ffc?_0x21a87a[0x0]['attributes']['groupId']<_0x5c37a1[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f4127<_0x419ffc?-0x1:0x1;});for(const _0x226279 of _0x473953)_0x226279['sort']((_0x11abfe,_0x29006a)=>_0x11abfe['id']<_0x29006a['id']?-0x1:0x1);}());for(let _0x23e3a2=0x0;_0x23e3a2<_0x473953['length'];_0x23e3a2++){if(0x0==_0x473953[_0x23e3a2]['length'])continue;const _0x25d28e=[];for(let _0x41f3dd=_0x23e3a2+0x1;_0x41f3dd<_0x473953['length'];_0x41f3dd++)0x0!=_0x473953[_0x41f3dd]['length']&&_0x63dc3a(_0x473953[_0x23e3a2],_0x473953[_0x41f3dd])&&_0x25d28e['push'](_0x41f3dd);for(const _0x2f6cc2 of _0x25d28e)_0x473953[_0x23e3a2]=_0x473953[_0x23e3a2]['concat'](_0x473953[_0x2f6cc2]),_0x473953[_0x2f6cc2]=[];}for(const _0x2fd11a of _0x473953)for(let _0x15078e=0x0;_0x15078e<_0x2fd11a['length'];_0x15078e++){const _0xf8e12a=_0x2fd11a[_0x15078e+0x1]||null;_0x2fd11a[_0x15078e]['next']!==_0xf8e12a&&(_0x2fd11a[_0x15078e]['next']=_0xf8e12a);}for(const _0x558431 of _0x473953)for(let _0x54963b=0x0;_0x54963b<_0x558431['length'];_0x54963b++){const _0x5f3bd7=_0x558431[_0x54963b-0x1]||null;_0x558431[_0x54963b]['previous']!==_0x5f3bd7&&(_0x558431[_0x54963b]['previous']=_0x5f3bd7);}function _0x63dc3a(_0x2c6dff,_0x4f7ec8){if(_0x2c6dff[0x0]['attributes']['groupId']!==_0x4f7ec8[0x0]['attributes']['groupId']&&_0x2c6dff[0x0]['author']!==_0x4f7ec8[0x0]['author'])return!0x1;if(!function(_0x244415,_0xc77089){if(!_0x244415['hasComments']&&!_0xc77089['hasComments'])return!0x0;if(_0x244415['hasComments']&&_0xc77089['hasComments'])return!0x1;if(_0x244415['hasComments']&&_0xc77089['createdAt']<_0x244415['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xc77089['hasComments']&&_0x244415['createdAt']<_0xc77089['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c6dff[0x0],_0x4f7ec8[0x0]))return!0x1;const _0x290ab9=Tt(_0x2c6dff[0x0]['attributes'],'groupId'),_0x1fe236=Tt(_0x4f7ec8[0x0]['attributes'],'groupId');if(!_0x4b5161(_0x290ab9,_0x1fe236))return!0x1;return!!_0x2c6dff['every'](_0x32a6a4=>_0x4f7ec8['some'](_0x3decb2=>_0x32a6a4['getFirstRange']()['isEqual'](_0x3decb2['getFirstRange']())))&&_0x4f7ec8['every'](_0x52ba9d=>_0x2c6dff['some'](_0x30076d=>_0x52ba9d['getFirstRange']()['isEqual'](_0x30076d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46f30a){const _0x476661=Array['from'](_0x46f30a),_0x547935=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1df928=_0x547935['filter'](_0x325b8b=>!_0x46f30a['has'](_0x325b8b)),_0x5a56d8=new Map(_0x476661['map'](_0x427618=>[_0x427618,this['_suggestionFactory']['getSuggestionCallback'](_0x427618['type'],_0x427618['subType'],'join')])),_0x2298e9=new Map(_0x547935['map'](_0x1b7b5e=>[_0x1b7b5e,_0x1b7b5e['getRanges']()]));for(let _0x86b726=0x0;_0x86b726<_0x476661['length'];_0x86b726++){if(_0x1a0557(this,_0x476661[_0x86b726],_0x476661,_0x86b726+0x1))return!0x0;}for(let _0x5449fc=0x0;_0x5449fc<_0x476661['length'];_0x5449fc++){if(_0x1a0557(this,_0x476661[_0x5449fc],_0x1df928,0x0))return!0x0;}return!0x1;function _0x1a0557(_0x4f5209,_0x522d28,_0x2a9cc8,_0x8a4d3f){for(let _0x22520b=_0x8a4d3f;_0x22520b<_0x2a9cc8['length'];_0x22520b++){const _0x3a9406=_0x2a9cc8[_0x22520b];if(_0x3a9406['type']!==_0x522d28['type']||_0x3a9406['author']['id']!==_0x522d28['author']['id']||_0x3a9406['subType']!==_0x522d28['subType'])continue;if(!Jt(_0x522d28,_0x3a9406))continue;if('attribute'==_0x522d28['type']&&_0x522d28['data']['oldValue']!=_0x3a9406['data']['oldValue'])continue;if('attribute'==_0x522d28['type']&&_0x4f5209['_isBlockAttribute'](_0x522d28['data']['key']))continue;if('formatBlock'==_0x522d28['type']){const _0x51d577=_0x4f5209['editor']['model'],_0x384141=_0x522d28['getContainedElement']();if(_0x384141&&(_0x51d577['schema']['isObject'](_0x384141)||_0x51d577['schema']['isLimit'](_0x384141)))continue;}const _0x4842fe=_0x5a56d8['get'](_0x522d28),_0x3cf00c=_0x2298e9['get'](_0x522d28),_0x14e2c7=_0x2298e9['get'](_0x3a9406),_0x8d8e03=_0x522d28['commentThread']&&_0x522d28['commentThread']['length'],_0x155b2d=_0x3a9406['commentThread']&&_0x3a9406['commentThread']['length'];if(!_0x8d8e03&&_0x4842fe(_0x14e2c7,_0x3cf00c))return _0x4f5209['_joinSuggestions'](_0x3a9406,_0x522d28),_0x2298e9['delete'](_0x522d28),!0x0;if(!_0x155b2d&&_0x4842fe(_0x3cf00c,_0x14e2c7))return _0x4f5209['_joinSuggestions'](_0x522d28,_0x3a9406),_0x2298e9['delete'](_0x3a9406),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2331ba,_0x52ee54){if(_0x2331ba['isMultiRange']){for(const _0x2ff7fe of _0x52ee54['getRanges']())_0x2331ba['addRange'](_0x2ff7fe);}else{const _0x26729b=_0x52ee54['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2331ba,this['_model']['createRange'](_0x2331ba['getFirstRange']()['start'],_0x26729b));}_0x52ee54['removeMarkers']();}['_getMarkerAnnouncementText'](_0x402625,_0x58b6da,_0x6f79db){const _0x1cedca=_0x402625['startsWith']('format')||_0x402625['startsWith']('attribute')?'FORMATTING':_0x402625['toUpperCase']();return o(this['editor']['locale'],_0x58b6da+'_'+_0x1cedca+'_SUGGESTION_ANNOUNCEMENT',_0x6f79db);}['_initAriaMarkerChangeAnnouncements'](){const _0x15d795=this['editor'];if(!_0x15d795['ui'])return;const {ariaLiveAnnouncer:_0x142b0c}=_0x15d795['ui'];_0x571476(this['_model'],({left:_0x19a7aa,entered:_0x58caa7})=>{for(const _0x1bd730 of _0x19a7aa){const {group:_0x122c38,type:_0x25affe}=this['_splitMarkerName'](_0x1bd730['name']);if('suggestion'===_0x122c38){_0x142b0c['announce'](this['_getMarkerAnnouncementText'](_0x25affe,'LEAVE'));break;}}for(const _0x49e48b of _0x58caa7){const {group:_0x543efc,type:_0x4c16ee}=this['_splitMarkerName'](_0x49e48b['name']);if('suggestion'===_0x543efc){_0x142b0c['announce'](this['_getMarkerAnnouncementText'](_0x4c16ee,'ENTER',_0x25e90c(_0x5eb0b4)));break;}}});}['_processAttributeChanges'](_0x62e9c0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3dc7db=this['editor'],_0x2a9c52=_0x3dc7db['model']['document']['differ']['getChanges']();if(0x0==_0x2a9c52['length'])return!0x1;const _0x19e698=[],_0x5c270d=_0x2a9c52['filter'](_0x10b315=>'attribute'==_0x10b315['type']),_0x5f510a=_0x2a9c52['filter'](_0x6835ef=>'insert'==_0x6835ef['type']&&'$text'!=_0x6835ef['name']),_0x4215ac=_0x2a9c52['filter'](_0x2c6c7e=>'remove'==_0x2c6c7e['type']&&'$text'!=_0x2c6c7e['name']);for(const _0x47a699 of _0x5c270d)_0x19e698['push']({'key':_0x47a699['attributeKey'],'newValue':_0x47a699['attributeNewValue'],'oldValue':_0x47a699['attributeOldValue'],'range':Pt(_0x47a699['range'],_0x3dc7db['model'])});for(const _0x585742 of _0x5f510a){const _0x2dcc63=_0x4215ac['find'](_0x560785=>_0x560785['position']['isEqual'](_0x585742['position']));_0x2dcc63&&_0x19e698['push']({'key':m,'newValue':_0x585742['name'],'oldValue':_0x2dcc63['name'],'range':_0x3dc7db['model']['createRangeOn'](_0x585742['position']['nodeAfter'])});}return 0x0!=_0x19e698['length']&&this['_reduceExistingSuggestions'](_0x62e9c0,_0x19e698);}['_processAttributeSuggestions'](_0x5883ef){let _0x3b2e9=!0x1;const _0x327aea=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50182f=>_0x50182f['data']['newRange']&&_0x50182f['name']['startsWith']('suggestion:attribute:'));for(const _0x4d733e of _0x327aea){const {subType:_0xb0448f,id:_0x249dc4}=this['_splitMarkerName'](_0x4d733e['name']),_0x544698=_0xb0448f['split']('|')[0x0];for(const _0x2293d2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2293d2['id']!=_0x249dc4&&'attribute'==_0x2293d2['type']&&_0x2293d2['data']&&_0x2293d2['data']['key']==_0x544698&&_0x2293d2['getFirstRange']()['isIntersecting'](_0x4d733e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2293d2,_0x4d733e['data']['newRange'],_0x5883ef),_0x3b2e9=!0x0);}return _0x3b2e9;}['_recordAttributeChanges'](_0x477474){this['_recordAttributeSuggestions']=!0x0,_0x477474();}['_isRegisteredAttribute'](_0x1768bd){const _0x202d22=this['_isBlockAttribute'](_0x1768bd),_0x3a8071=this['_inlineAttributeKeys']['has'](_0x1768bd);return _0x202d22||_0x3a8071;}['_reduceExistingSuggestions'](_0x326259,_0x3d4d86){if(0x0==_0x3d4d86['length'])return!0x1;let _0x42cc3b=!0x1;for(const _0x3e901d of _0x3d4d86){const _0x590656=this['_findSuggestions'](_0x3e901d['range'],'attribute')['filter'](_0x2f2135=>!_0x2f2135['meta']['isNextTo'])['map'](_0x586625=>_0x586625['suggestion']),_0x57224a=_0xf1b1f({'newValue':_0x3e901d['newValue']});_0x590656['filter'](_0x5e684f=>{const [_0xd3fa33,_0x2a9a92]=_0x5e684f['subType']['split']('|');return _0xd3fa33==_0x3e901d['key']&&_0x2a9a92!=_0x57224a;})['forEach'](_0x4ade68=>{this['_reduceSuggestionAttributeRange'](_0x4ade68,_0x3e901d['range'],_0x326259),_0x42cc3b=!0x0;});}return _0x42cc3b;}['_reduceSuggestionAttributeRange'](_0x45ab1e,_0x5b1727,_0x2b2bfa){const _0x1efdb1=_0x45ab1e['getFirstRange']()['getDifference'](_0x5b1727);0x0!==_0x1efdb1['length']?0x1!==_0x1efdb1['length']?this['_breakSuggestionMarker'](_0x45ab1e,_0x5b1727['start'],_0x5b1727['end']):this['_setSuggestionRange'](_0x45ab1e,_0x1efdb1[0x0]):_0x2b2bfa['removeMarker'](_0x45ab1e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d20c3){this['_editor']=_0x4d20c3,this['_model']=_0x4d20c3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22daad,_0x71197d,_0x1071da,_0x22fef5,_0x16aaeb,_0x41618b){return new u(this['_model'],{'type':_0x22daad,'subType':_0x71197d,'id':_0x1071da,'author':_0x22fef5,'creator':_0x22fef5,'attributes':_0x16aaeb,'onAttributesChange':_0x41618b,'onAccept':(..._0x5d8d95)=>this['getSuggestionCallback'](_0x22daad,_0x71197d,'accept')(..._0x5d8d95),'onDiscard':(..._0x4ec654)=>this['getSuggestionCallback'](_0x22daad,_0x71197d,'discard')(..._0x4ec654)});}['registerCustomCallback'](_0x47247d,_0xae605d,_0x1b0539,_0x73d709){const _0x58f00d=_0x47247d+':'+_0xae605d+':'+_0x1b0539;this['_customCallbacks']['set'](_0x58f00d,_0x73d709);}['getSuggestionCallback'](_0x33f950,_0x2d2ca4,_0x326cb9){const _0x2ab9ae=_0x33f950+':'+_0x2d2ca4+':'+_0x326cb9;return this['_customCallbacks']['get'](_0x2ab9ae)||this['_defaultCallbacks']['get'](_0x33f950+':'+_0x326cb9);}['_registerDefaultCallbacks'](){const _0x599756=()=>!0x1,_0x4aaee4=_0x10c46c=>{_0x10c46c['sort']((_0xaacc89,_0x551984)=>_0xaacc89['start']['isBefore'](_0x551984['start'])?0x1:-0x1),this['_model']['change'](_0x417662=>{for(const _0x3d29ca of _0x10c46c){let _0x1f9911;_0x1f9911=_0x3d29ca['end']['isAtEnd']&&_0x3d29ca['end']['parent']==_0x3d29ca['start']['nodeAfter']?_0x417662['createSelection'](_0x3d29ca['start']['nodeAfter'],'on'):_0x417662['createSelection'](_0x3d29ca),this['_model']['deleteContent'](_0x1f9911,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1054d7=(_0xab26e4,_0x2099d6)=>{_0x2099d6&&this['_model']['change'](_0x1205e7=>{const {commandName:_0x38665f,commandParams:_0x358adb=[]}=_0x2099d6,_0x49960a=_0xab26e4['map'](_0x23c21a=>(Vt(_0x23c21a)&&(_0x23c21a=this['_model']['createRange'](_0x23c21a['end'])),_0x23c21a))['filter'](_0x59f1f7=>'$graveyard'!==_0x59f1f7['root']['rootName']);if(_0x49960a['length']<0x1)return;const _0x5517d2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x436459=>_0x46da37['fromRange'](_0x436459));_0x1205e7['setSelection'](_0x49960a);for(const _0x552ae9 of this['_editor']['commands']['commands']())_0x552ae9['refresh']();_0x358adb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38665f,..._0x358adb);const _0x10df7a=_0x5517d2['filter'](_0x14a50a=>'$graveyard'!=_0x14a50a['root']['rootName']);_0x10df7a['length']>0x0&&_0x1205e7['setSelection'](_0x10df7a);for(const _0x2298c2 of _0x5517d2)_0x2298c2['detach']();});},_0x355e03=(_0x111cb1,_0x2e9f89)=>0x1==_0x111cb1['length']&&0x1==_0x2e9f89['length']&&_0x111cb1[0x0]['end']['isEqual'](_0x2e9f89[0x0]['start']),_0x5a324a=(_0x2b9dd0,_0x446a85,_0x1a1202,_0x959f15)=>Ht(_0x2b9dd0,_0x446a85,_0x1a1202,_0x959f15,this['_model'])?[_0x2b9dd0,_0x446a85]:Ht(_0x446a85,_0x2b9dd0,_0x959f15,_0x1a1202,this['_model'])?[_0x446a85,_0x2b9dd0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x599756),this['_defaultCallbacks']['set']('insertion:discard',_0x4aaee4),this['_defaultCallbacks']['set']('insertion:join',_0x355e03),this['_defaultCallbacks']['set']('insertion:chain',_0x5a324a),this['_defaultCallbacks']['set']('deletion:accept',_0x4aaee4),this['_defaultCallbacks']['set']('deletion:discard',_0x599756),this['_defaultCallbacks']['set']('deletion:join',_0x355e03),this['_defaultCallbacks']['set']('deletion:chain',_0x5a324a),this['_defaultCallbacks']['set']('formatInline:accept',_0x1054d7),this['_defaultCallbacks']['set']('formatInline:discard',_0x599756),this['_defaultCallbacks']['set']('formatInline:join',_0x355e03),this['_defaultCallbacks']['set']('formatInline:chain',_0x599756),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1054d7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x599756),this['_defaultCallbacks']['set']('formatBlock:join',_0x355e03),this['_defaultCallbacks']['set']('formatBlock:chain',_0x599756),this['_defaultCallbacks']['set']('attribute:accept',_0x599756),this['_defaultCallbacks']['set']('attribute:discard',(_0x180744,_0x5c136a)=>{if(!_0x5c136a)return;const _0x1d1b68=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x343d91=>{if(_0x5c136a['key']==m)for(const _0x56646f of _0x180744){const _0x2f62e7=_0x56646f['start']['nodeAfter'],_0x4a21a3=_0x5c136a['oldValue'];_0x343d91['rename'](_0x2f62e7,_0x4a21a3);}else{if(_0x1d1b68['_isBlockAttribute'](_0x5c136a['key'])){for(const _0x37e0da of _0x180744)void 0x0!==_0x5c136a['oldValue']?_0x343d91['setAttribute'](_0x5c136a['key'],_0x5c136a['oldValue'],_0x37e0da['start']['nodeAfter']):_0x343d91['removeAttribute'](_0x5c136a['key'],_0x37e0da['start']['nodeAfter']);}else{for(const _0x126bf9 of _0x180744)_0x5c136a['oldValue']?_0x343d91['setAttribute'](_0x5c136a['key'],_0x5c136a['oldValue'],_0x126bf9):_0x343d91['removeAttribute'](_0x5c136a['key'],_0x126bf9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x355e03);}}function Ot(_0x5b2295,_0x13fa6c,_0x3ee20f){for(const _0x130dc3 of _0x13fa6c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x130dc3['root']==_0x130dc3)return!0x1;if(!_0x3ee20f['containsItem'](_0x130dc3))return!0x1;if(_0x5b2295['isObject'](_0x130dc3)||_0x5b2295['isLimit'](_0x130dc3))return!0x0;}return!0x1;}function Vt(_0x572bf6){return _0x572bf6['end']['parent']==_0x572bf6['start']['nodeAfter']&&_0x572bf6['end']['isAtStart'];}function Ut(_0x51d465,_0x1bfba1,_0x18d2ef,_0x5108a9){const _0x101908=_0x5e6d87=>!_0x5e6d87['item']['is']('$textProxy')&&!_0x5108a9['isObject'](_0x5e6d87['item']),_0x4eeae7=_0x51d465['start']['getLastMatchingPosition'](_0x101908),_0x1d8c31=_0x51d465['end']['getLastMatchingPosition'](_0x101908,{'direction':'backward'});return(!_0x51d465['start']['isEqual'](_0x4eeae7)||!_0x51d465['end']['isEqual'](_0x1d8c31))&&(_0x4eeae7['isBefore'](_0x1d8c31)?_0x18d2ef['updateMarker'](_0x1bfba1,{'range':_0x18d2ef['createRange'](_0x4eeae7,_0x1d8c31)}):_0x18d2ef['removeMarker'](_0x1bfba1),!0x0);}function Gt(_0x25bd5a){return _0xf1b1f(_0x25bd5a);}function Ft(_0x3983b8){const _0x35632d=_0x3983b8['start']['nodeAfter'];return _0x35632d&&_0x35632d['is']('element');}function Pt(_0x1fffdd,_0x10f942){return null==_0x1fffdd['end']['nodeBefore']&&_0x1fffdd['end']['parent']==_0x1fffdd['start']['nodeAfter']?Lt(_0x1fffdd['start']['nodeAfter'],_0x10f942):_0x1fffdd;}function Lt(_0xae7fd1,_0x67fa72){const _0x1c55f3=_0x67fa72['schema']['isObject'](_0xae7fd1)||_0x67fa72['schema']['isSelectable'](_0xae7fd1);return _0x67fa72['createRange'](_0x67fa72['createPositionAt'](_0xae7fd1,'before'),_0x1c55f3?_0x67fa72['createPositionAfter'](_0xae7fd1):_0x67fa72['createPositionAt'](_0xae7fd1,'end'));}function Ht(_0xe2325f,_0x52de22,_0x3a08df,_0xb10597,_0x368b53){if(_0xe2325f['next'])return!0x1;if(!Jt(_0xe2325f,_0x52de22))return!0x1;if(_0x3a08df['end']['isEqual'](_0xb10597['start']))return!0x0;if(_0xe2325f['type']!=_0x52de22['type'])return!0x1;if(!_0x3a08df['end']['isTouching'](_0xb10597['start']))return!0x1;const _0x11531f=_0x368b53['createRange'](_0x3a08df['end'],_0xb10597['start'])['getWalker']();for(const _0x9e3c49 of _0x11531f)if(['elementStart','elementEnd']['includes'](_0x9e3c49['type'])&&_0x368b53['schema']['isLimit'](_0x9e3c49['item']))return!0x1;return!0x0;}function Jt(_0x239c67,_0x1b9804){if(!_0x239c67['_isDataLoaded']||!_0x1b9804['_isDataLoaded'])return!0x1;const _0x1b42a9=new Set(Object['keys'](_0x239c67['attributes'])),_0x1b91e0=new Set(Object['keys'](_0x1b9804['attributes']));if(_0x1b42a9['delete']('groupId'),_0x1b91e0['delete']('groupId'),0x0==_0x1b42a9['size']&&0x0==_0x1b91e0['size'])return!0x0;if(_0x1b42a9['size']!=_0x1b91e0['size'])return!0x1;const _0x1485cf={..._0x239c67['attributes']},_0x131dcf={..._0x1b9804['attributes']};return delete _0x1485cf['groupId'],delete _0x131dcf['groupId'],JSON['stringify'](_0x1485cf)==JSON['stringify'](_0x131dcf);}function qt(_0x1ef200,_0x744458){const _0x433d1f=zt(_0x1ef200['attributes']),_0x687706=zt(_0x744458);if(!_0x1ef200['_isDataLoaded'])return!0x1;for(const _0x1cb1c7 of Object['keys'](_0x687706))if(!_0x4b5161(_0x433d1f[_0x1cb1c7],_0x687706[_0x1cb1c7]))return!0x1;return!0x0;}function zt(_0x25b768){const _0x424e32=Object['assign']({},_0x25b768);return delete _0x424e32['skipNestingCheck'],delete _0x424e32['tablePasteChainId'],_0x424e32;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x3c9868(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xf2a20c,_0x4e1950,_0x263b13,_0x12b876){super(),this['model']=_0x4e1950,this['view']=_0x263b13,this['commentThreadController']=_0x12b876,this['_editor']=_0xf2a20c,this['_acceptCommand']=_0xf2a20c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xf2a20c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d220b,_0x4f42a1)=>_0x5d220b||_0x4f42a1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd27fa2=>_0xd27fa2&&this['_editor']['model']['canEditAt'](_0x4e1950['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ab065=>_0x4ab065&&this['_editor']['model']['canEditAt'](_0x4e1950['getRanges']())),this['_pendingAction']=null,_0x263b13['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x263b13,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x263b13,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x263b13,'change:isDirty',()=>{_0x263b13['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x531a0b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x531a0b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x294ed2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3fed01,_0x20c378,_0x1445bc,_0x2cc66c){super(_0x3fed01),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26ba2b(_0x3fed01,o(_0x3fed01,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x20c378['authoredAt']),this['bind']('authoredAt')['to'](_0x20c378),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x20c378,'authoredAt',this,'descriptionParts',(_0x2f5e00,_0x4e7c8a,_0x5e4627)=>{const _0x4377d5=_0x5e4627['map'](_0x53c93c=>ls(_0x53c93c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2f5e00-0x1,_0x20c378['author']['name'],_0x4e7c8a?_0x2cc66c['formatDateTime'](_0x4e7c8a):'',new DOMParser()['parseFromString'](_0x4377d5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x23c8b8(),this['focusTracker']=new _0x15157f(),this['keystrokes']=new _0x266d37(),this['focusCycler']=new _0x1b6047({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46aa24=>_0x46aa24['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x20c378,this['_localUser']=_0x1445bc,this['_config']=_0x2cc66c,_0x2cc66c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x57141b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e77a9}=this['_config'];this['commentsListView']=new _0x1e77a9(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',_0x4653dc=>_0x4653dc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5c542d,_0x2345c5)=>_0x5c542d||!!_0x2345c5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x196046}=this['_config'],_0x40967e=new _0x196046(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x378e7a=_0x40967e['commentInputView'];return _0x40967e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x378e7a,'value',(_0x420490,_0x12fb90,_0x294cec)=>!!_0x294cec||_0x420490&&!_0x12fb90),_0x378e7a['on']('submit',(_0x2e2e14,_0x3bc4b9)=>{this['fire']('addComment',_0x3bc4b9),_0x378e7a['editor']['setData']('');}),_0x378e7a['on']('cancel',()=>this['focus']()),_0x378e7a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x40967e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x57e1fb,_0x146e69,_0x37493f,_0x34884d){super(_0x57e1fb,_0x146e69,_0x37493f,_0x34884d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5dfaf5=>_0x5dfaf5&&_0x5dfaf5[0x0]?_0x5dfaf5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x551b3f,_0x409c2a)=>{let _0x12f4f2='';for(const _0x269c20 of _0x551b3f)_0x12f4f2+='<p>'+ls(_0x269c20['content'],_0x269c20['color'])+'</p>';return _0x409c2a?_0x12f4f2:_0x1f8706(_0x12f4f2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x34884d['SuggestionView'](_0x57e1fb,_0x146e69,{'formatDateTime':_0x34884d['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1fdfcc=this['bindTemplate'],_0x4ff3b8=[this['suggestionView']];return this['commentsListView']&&_0x4ff3b8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ff3b8['push'](this['commentThreadInputView']),_0x4ff3b8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fdfcc['if']('isActive','ck-suggestion-wrapper--active'),_0x1fdfcc['to']('type',_0xc3997a=>'ck-suggestion-'+_0xc3997a),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1fdfcc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ff3b8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x294ed2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x520237,_0x32f52e,_0x2b2767){super(_0x520237),this['_model']=_0x32f52e,this['_config']=_0x2b2767,this['set']('description',''),this['bind']('authoredAt')['to'](_0x32f52e),this['acceptButton']=this['_createButton'](o(_0x520237,'Accept\x20suggestion'),_0x22e7cf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x520237,'Discard\x20suggestion'),_0x22e7cf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4be92a(_0x520237,_0x32f52e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x23c8b8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x15157f(),this['keystrokes']=new _0x266d37(),this['focusCycler']=new _0x1b6047({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x275519=>_0x275519['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e66fb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e66fb['innerHTML']=this['description'],this['on']('change:description',(_0x3db852,_0x3b988d,_0x41e93a)=>{_0x3e66fb['innerHTML']=_0x41e93a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x7da130=this['bindTemplate'],_0x1dec07=[{'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':_0x7da130['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x7da130['to']('authoredAt',_0xfa3dc9=>this['_config']['formatDateTime'](_0xfa3dc9))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1dec07['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1dec07}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x110893,_0x4634f9,_0x6e7250,_0x53f17c,_0x1ebd65){const _0x1c59c4=new _0x2c0a2b(this['locale']);return _0x1c59c4['set']({'label':_0x110893,'icon':_0x4634f9,'tooltip':!0x0,'tooltipPosition':_0x1ebd65}),_0x1c59c4['extendTemplate']({'attributes':{'class':_0x6e7250}}),_0x1c59c4['on']('execute',()=>{this['fire'](_0x53f17c,this['_model']['id']);}),_0x1c59c4;}['_setupKeyboardNavigation'](){const _0x15c790=this['element'];this['keystrokes']['listenTo'](_0x15c790);for(const _0xf19246 of this['focusables'])this['focusTracker']['add'](_0xf19246['element']),this['keystrokes']['listenTo'](_0xf19246['element']);this['keystrokes']['set']('enter',(_0x562aa5,_0x34ae93)=>{_0x15c790===_0x562aa5['target']&&(this['focusCycler']['focusFirst'](),_0x34ae93());}),this['keystrokes']['set']('esc',(_0x4ce3d3,_0x5c8fcc)=>{_0x15c790!==_0x4ce3d3['target']&&(this['focus'](),_0x5c8fcc());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x55f69e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x96452c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4173c4){super(_0x4173c4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a42cd=this['editor']['config'];_0x3a42cd['define']('trackChanges.SuggestionThreadView',re),_0x3a42cd['define']('trackChanges.SuggestionView',ce),_0x3a42cd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a42cd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x523b68,_0x34002c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa81e08,_0x258059]of this['_handleControllerBuffer']){const _0x205809=this['_suggestionToController']['has'](_0xa81e08);_0x205809||_0x258059?_0x205809&&_0x258059&&this['_destroyController'](_0xa81e08):this['_initializeController'](_0xa81e08);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x523b68,_0x34002c);}['init'](){const _0x45d1f3=this['editor'],_0x1e9580=_0x45d1f3['plugins']['get']('TrackChangesEditing'),_0x32bc41=_0x45d1f3['plugins']['get']('Annotations'),_0x23d712=_0x45d1f3['plugins']['get']('EditorAnnotations'),_0x511f92=_0x45d1f3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x23d712['addSourceCollector'](()=>{const _0xb23c4a=[];for(const [_0x5116a9,_0x23e566]of Array['from'](this['_suggestionToController'])){const _0x7b479f=_0x5116a9['getAllAdjacentSuggestions'](),_0x4e7bbd=[];for(const _0x36bdb1 of _0x7b479f){if(!_0x36bdb1['isInContent'])continue;if(_0x36bdb1['isMultiRange']){_0x4e7bbd['push'](..._0x36bdb1['getRanges']());continue;}const _0x5727ab=_0x36bdb1['getFirstRange']();if(_0x4e7bbd['length']>0x0){const _0x338c62=_0x4e7bbd[0x0]['getJoined'](_0x5727ab);if(_0x338c62){_0x4e7bbd[0x0]=_0x338c62;continue;}}_0x4e7bbd['push'](_0x5727ab);}_0xb23c4a['push']([_0x23e566['view'],_0x4e7bbd]);}return _0xb23c4a;}),this['listenTo'](_0x1e9580,'suggestionLoaded',(_0x424454,_0x11425e)=>{this['listenTo'](_0x11425e,'change:previous',(_0x21fe10,_0x23390a,_0x20a07f,_0x4447ce)=>{_0x11425e['isInContent']&&(null==_0x20a07f?(this['_updateController'](_0x4447ce['head']),this['_handleSuggestionControllerDelayed'](_0x11425e,!0x1)):(this['_updateController'](_0x20a07f['head']),null==_0x4447ce&&this['_handleSuggestionControllerDelayed'](_0x11425e,!0x0)));}),null!==_0x11425e['previous']?this['_updateController'](_0x11425e['head']):this['_handleSuggestionControllerDelayed'](_0x11425e,!0x1);}),this['listenTo'](_0x1e9580,'suggestionUnloaded',(_0x147cae,_0x166098,_0x469515)=>{this['stopListening'](_0x166098,'change:previous'),this['_handleControllerBuffer']['delete'](_0x166098),this['_suggestionToController']['has'](_0x166098)&&this['_destroyController'](_0x166098),_0x469515&&this['_updateController'](_0x469515['head']);}),this['listenTo'](_0x1e9580,'suggestionChanged',(_0x15ba72,_0x44969c)=>{this['_updateController'](_0x44969c);}),this['listenTo'](_0x32bc41,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x511f92,'addComment',(_0xd8b265,{threadId:_0x4bacd2,isFromAdapter:_0x5b198b})=>{if(_0x5b198b||!_0x1e9580['hasSuggestion'](_0x4bacd2))return;const _0x3727d6=_0x1e9580['getSuggestion'](_0x4bacd2);this['_suggestionToController']['get'](_0x3727d6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x476d94=this['editor']['plugins']['get']('Annotations'),_0x478e31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da87d=Array['from'](_0x476d94['activeAnnotations'],_0x46348d=>_0x46348d['innerView'])['filter'](_0x5c0b4d=>this['_viewToController']['has'](_0x5c0b4d)),_0x2633b0=[];for(const _0x38c67f of _0x3da87d){const _0x2a5673=this['_viewToController']['get'](_0x38c67f)['model']['getAllAdjacentSuggestions']();_0x2633b0['push'](..._0x2a5673['reduce']((_0x39767b,_0x24ca3c)=>[..._0x39767b,..._0x24ca3c['getMarkerNames']()],[]));}_0x478e31['activeMarkers']=_0x2633b0;}['_addUIComponentsToFactory'](){const _0x32e947=this['editor'],_0x31d5c2=_0x32e947['locale'],_0xa499d6=o(_0x31d5c2,'Track\x20changes'),_0x2a4e15=new Wt([{'type':'switchbutton','model':new _0x220d45({'withText':!0x0,'isToggleable':!0x0,'label':_0xa499d6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x28036a of _0x2a4e15)if(me(_0x28036a)){const _0xe7592f=_0x32e947['commands']['get'](_0x28036a['model']['commandName']);_0x28036a['model']['bind']('isOn','isEnabled')['to'](_0xe7592f,'value','isEnabled');}_0x32e947['ui']['componentFactory']['add']('trackChanges',_0x30208e=>this['_createToolbarButton'](_0x30208e,_0x2a4e15,_0xa499d6)),_0x32e947['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29d920=>this['_createMenuBarMenu'](_0x29d920,_0x2a4e15,_0xa499d6));}['_createToolbarButton'](_0x258529,_0x2a62ba,_0x10c605){const _0x22d175=Qt(_0x258529,_0xb37fff),_0x22f32c=this['editor']['commands']['get']('trackChanges');_0x22d175['buttonView']['set']({'tooltip':_0x10c605,'label':_0x10c605,'icon':he}),_0x22d175['buttonView']['bind']('isOn')['to'](_0x22f32c,'value'),_0x22d175['buttonView']['on']('execute',()=>{_0x22f32c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x22d175,_0x2a62ba,{'role':'menu'});const _0x3e16f5=[];for(const _0x1693e8 of _0x2a62ba)me(_0x1693e8)&&_0x3e16f5['push'](this['editor']['commands']['get'](_0x1693e8['model']['commandName']));const _0x2baa56=_0x22d175['buttonView'];return _0x2baa56['actionView']['unbind']('isEnabled'),_0x2baa56['arrowView']['unbind']('isEnabled'),_0x2baa56['actionView']['bind']('isEnabled')['to'](_0x22f32c,'isEnabled'),_0x2baa56['arrowView']['bind']('isEnabled')['toMany'](_0x3e16f5,'isEnabled',(..._0x3ae9ab)=>_0x3ae9ab['some'](_0x20c0f9=>_0x20c0f9)),_0x22d175['on']('execute',_0x2a7f6b=>{this['editor']['execute'](_0x2a7f6b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x22d175;}['_createMenuBarMenu'](_0xfe3a4f,_0x3fa837,_0x213380){const _0x7c5f9b=new Yt(_0xfe3a4f),_0x5bac43=this['editor']['commands']['get']('trackChanges');_0x7c5f9b['buttonView']['set']({'label':_0x213380,'icon':he});const _0x7eedaa=new Zt(_0xfe3a4f);for(const _0x36b4b1 of _0x3fa837){if('separator'==_0x36b4b1['type']){_0x7eedaa['items']['add'](new Xt(_0xfe3a4f));continue;}const _0x1444b4=new te(_0xfe3a4f,_0x7c5f9b),_0xb06a02=new _0x5c9be1(_0xfe3a4f),_0x441b7b=_0x36b4b1['model'];_0xb06a02['bind'](...Object['keys'](_0x441b7b))['to'](_0x441b7b),_0xb06a02['delegate']('execute')['to'](_0x7c5f9b),_0xb06a02['on']('execute',()=>{this['editor']['execute'](_0x441b7b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1444b4['children']['add'](_0xb06a02),_0x7eedaa['items']['add'](_0x1444b4);}return _0x7c5f9b['bind']('isEnabled')['to'](_0x5bac43,'isEnabled'),_0x7c5f9b['panelView']['children']['add'](_0x7eedaa),_0x7c5f9b;}['_initializeController'](_0x463c00){const _0x3b23fa=this['editor'],_0x599c5a=_0x3b23fa['config'],_0x2defd3=_0x3b23fa['plugins']['get']('Annotations'),_0x58deac=_0x3b23fa['plugins']['get']('CommentsRepository'),_0xab72c9=_0x3b23fa['plugins']['get']('EditorAnnotations'),_0x529c33=_0x3b23fa['plugins']['get'](_0x96452c)['me'],_0x4fcd83=_0x599c5a['get']('trackChanges')['SuggestionThreadView'],_0x17661d=_0x599c5a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2d8637,CommentThreadInputView:_0x49f9c8}=_0x3b23fa['plugins']['get']('CommentsUI');let _0x24bb04,_0x357459,_0x10db80;this['_annotationViews']['has'](_0x463c00['id'])?(_0x357459=this['_annotationViews']['get'](_0x463c00['id']),_0x24bb04=_0x357459['mainView']):(_0x24bb04=new _0x4fcd83(_0x3b23fa['locale'],_0x463c00,_0x529c33,{'disableComments':this['_disableComments'],'editorConfig':_0x599c5a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x599c5a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x599c5a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x599c5a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3b1251(_0x599c5a['get']('locale')),'CommentView':_0x599c5a['get']('comments')['CommentView'],'CommentsListView':_0x2d8637,'CommentThreadInputView':_0x49f9c8,'SuggestionView':_0x17661d}),_0x24bb04['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b23fa['editing']['view']['focus']();}),_0x24bb04['suggestionView']['discardButton']['on']('execute',()=>{_0x3b23fa['editing']['view']['focus']();}),_0x357459=_0x2defd3['createAnnotationView'](this['editor']['locale'],_0x24bb04),_0x357459['bind']('isDirty')['to'](_0x24bb04,'isDirty'),_0x357459['bind']('length')['to'](_0x24bb04),_0x357459['bind']('type')['to'](_0x24bb04,'type',_0x281a87=>'suggestion-'+_0x281a87),_0x24bb04['on']('escape',()=>{_0x10db80['fire']('escape');}),this['_annotationViews']['set'](_0x463c00['id'],_0x357459));const _0x4d73f5=_0x58deac['createCommentThreadController'](_0x463c00['commentThread'],_0x24bb04),_0x57cc98=new ae(_0x3b23fa,_0x463c00,_0x24bb04,_0x4d73f5),_0x2820ee=_0x463c00['getAllAdjacentSuggestions']()['filter'](_0x58bbe0=>_0x58bbe0['isInContent']);_0x24bb04['descriptionParts']=_0x3b23fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2820ee),this['_suggestionToController']['set'](_0x463c00,_0x57cc98),this['_viewToController']['set'](_0x24bb04,_0x57cc98),_0x10db80=_0x2defd3['createAnnotation']({'view':_0x357459,'target':()=>{const _0x2d4bc1=[],_0x311877=_0x463c00['getAllAdjacentSuggestions']()['filter'](_0x2dfd4d=>_0x2dfd4d['isInContent']);for(const _0xd0d500 of _0x311877)_0x2d4bc1['push'](..._0xd0d500['getMarkers']());return _0x5910c7(_0x3b23fa['editing'],_0x2d4bc1);},'type':()=>'suggestion-'+_0x57cc98['view']['type']}),_0x58deac['_bindAnnotationToEditors'](_0x24bb04,_0x10db80),_0x2defd3['add'](_0x10db80),_0xab72c9['registerAnnotation'](_0x10db80);}['_destroyController'](_0x2cea65){const _0x8f71a9=this['editor']['plugins']['get']('CommentsRepository'),_0x39a534=this['editor']['plugins']['get']('Annotations'),_0x1d098f=this['_suggestionToController']['get'](_0x2cea65),_0x406489=_0x1d098f['view'],_0x407886=_0x39a534['getByInnerView'](_0x406489);_0x8f71a9['_unbindEditors'](_0x406489),_0x407886&&_0x39a534['remove'](_0x407886),this['_suggestionToController']['delete'](_0x2cea65),this['_viewToController']['delete'](_0x406489),_0x1d098f['destroy']();}['_updateController'](_0x503412){if(!_0x503412['isInContent']||!this['_suggestionToController']['has'](_0x503412))return;const _0x34ce06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524ada=this['_suggestionToController']['get'](_0x503412),_0x422c99=_0x503412['getAllAdjacentSuggestions']();_0x524ada['view']['descriptionParts']=_0x34ce06['descriptionFactory']['getDescriptions'](_0x422c99);}['destroy'](){for(const _0x588d26 of this['_suggestionToController']['keys']())this['_destroyController'](_0x588d26);for(const _0x349392 of this['_annotationViews']['values']())_0x349392['mainView']['destroy']();super['destroy']();}}function me(_0x4cb678){return'model'in _0x4cb678;}class k extends _0x55f69e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x445249){this['editor']['plugins']['get'](p)['adapter']=_0x445249;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3ed1f7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3ed1f7);}['getSuggestions']({skipNotAttached:_0x565ce8=!0x1,toJSON:_0x57573d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x565ce8,'toJSON':_0x57573d});}['getSuggestion'](_0xeac6ef){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xeac6ef);}}const T=['Pagination'];class P extends _0x55f69e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x274c1d=this['editor'];if(_0x274c1d['config']['define']('trackChangesData.editorCreator',_0x3c7be8=>{const _0x533a32=_0x274c1d['model']['document']['getRootNames']()['reduce']((_0x255035,_0x14e9b6)=>(_0x255035[_0x14e9b6]='',_0x255035),{});return _0x274c1d['constructor']['create'](_0x533a32,_0x3c7be8);}),'function'!=typeof _0x274c1d['config']['get']('trackChangesData')['editorCreator'])throw new _0x27812c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xfc9a11){return N(this['editor'],!0x0,_0xfc9a11);}['getDataWithDiscardedSuggestions'](_0x584eba){return N(this['editor'],!0x1,_0x584eba);}}class D extends _0x55f69e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x51bdbf){super(_0x51bdbf),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x48c7cd){return void 0x0!==_0x48c7cd['getRootsAttributes'];}async function N(_0x2763c2,_0x34e25f,_0x1a38c7){const _0x21da5d=_0x41993e(_0x2763c2,T);_0x21da5d['plugins']['push'](p,D),_0x21da5d['rootsAttributes']=v(_0x2763c2)?_0x2763c2['getRootsAttributes']():void 0x0;const _0x142cee=document['createDocumentFragment'](),_0x45f73e=_0x2763c2['config']['get']('trackChangesData')['editorCreator'],_0x48a5f5=await _0x45f73e(_0x21da5d,()=>function(_0x1c0f98){const _0x15ae71=document['createElement']('div');return _0x1c0f98['appendChild'](_0x15ae71),_0x15ae71;}(_0x142cee));!function(_0x23d697,_0x302c71){const _0x38ea76=_0x23d697['model']['document']['getRootNames']()['reduce']((_0xb08049,_0xba9d2b)=>(_0xb08049[_0xba9d2b]=_0x23d697['data']['get']({'rootName':_0xba9d2b}),_0xb08049),{}),_0x3083b3=_0x23d697['plugins']['get']('Users')['users']['map'](_0x850dd9=>({'id':_0x850dd9['id'],'name':_0x850dd9['name']})),_0x46e5c6=_0x23d697['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x200b97=_0x23d697['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3130e6=_0x302c71['plugins']['get']('Users'),_0x5e973=_0x302c71['plugins']['get']('TrackChangesEditing'),_0x1990c8=_0x302c71['plugins']['get']('CommentsRepository');for(const _0x3d6b82 of _0x1990c8['getCommentThreads']())_0x3d6b82['remove']();for(const _0x38b1ba of _0x3083b3)_0x3130e6['getUser'](_0x38b1ba['id'])||_0x3130e6['addUser'](_0x38b1ba);_0x3130e6['me']||_0x3130e6['useAnonymousUser']();for(const _0x547384 of _0x200b97)_0x1990c8['addCommentThread'](_0x547384);for(const _0x27c6f2 of _0x46e5c6)_0x5e973['addSuggestionData'](_0x27c6f2);_0x302c71['data']['set'](_0x38ea76);}(_0x2763c2,_0x48a5f5),_0x48a5f5['execute'](_0x34e25f?'acceptAllSuggestions':'discardAllSuggestions');const _0xc1cc6b=v(_0x48a5f5)?_0x48a5f5['getFullData'](_0x1a38c7):_0x48a5f5['data']['get'](_0x1a38c7);return await _0x48a5f5['destroy'](),_0xc1cc6b;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};