@ckeditor/ckeditor5-track-changes 48.4.0-alpha.0 → 48.4.0-alpha.1

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 (148) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/af.umd.js +1 -1
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/ast.js +1 -1
  7. package/dist/translations/ast.umd.js +1 -1
  8. package/dist/translations/az.js +1 -1
  9. package/dist/translations/az.umd.js +1 -1
  10. package/dist/translations/be.js +1 -1
  11. package/dist/translations/be.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5a79ba,PendingActions as _0x6db56a,Plugin as _0x548d2a}from'@ckeditor/ckeditor5-core';import{Annotations as _0x5a11f9,Comments as _0x28e9ec,CommentsRepository as _0x625dc5,EditorAnnotations as _0x515c91}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x4ce3e1,Collection as _0x2d3c72,FocusTracker as _0x50e30b,KeystrokeHandler as _0x574fc1,ObservableMixin as _0x47ad8b,getEnvKeystrokeText as _0x217db9,insertToPriorityArray as _0x1dd3b8,logWarning as _0x78b2a9,priorities as _0x5e908b,uid as _0x1dfb7c}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x112b98,IconCancel as _0x5eb0dc,IconCheck as _0x14b565,IconSparkle as _0x3af273,IconTrackChanges as _0x1fd907}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1d1889,Dialog as _0x4ccace,FocusCycler as _0x3b54a5,ListSeparatorView as _0x5b0cbf,MenuBarMenuListItemButtonView as _0x28f43e,MenuBarMenuListItemView as _0x271ebd,MenuBarMenuListView as _0x1d8e7c,MenuBarMenuView as _0x3b7c12,SplitButtonView as _0x499055,UIModel as _0xe0f952,View as _0x44d047,ViewCollection as _0x4b334b,addListToDropdown as _0x5a7aa3,createDropdown as _0x583898,normalizeColorOptions as _0xb174e6}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0xb0e5f7,CollaborationUserColor as _0x4762e5,DocumentCompare as _0x140123,FOCUS_ANNOTATION_KEYSTROKE as _0x55db56,LateFocusButtonView as _0x5bb789,PillView as _0x24fb6b,SuggestionsConversion as _0x4fbad8,User as _0xcdc6f6,UserView as _0x122117,Users as _0x5036c6,fixElementSuggestionRange as _0x42ced4,getAllMarkersDomElementsSorted as _0x369c76,getDateTimeFormatter as _0x1f27f5,hashObject as _0x86ba89,isInvalidAttributeOperation as _0x39c933,sanitizeEditorConfig as _0x303fe4,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x5a79ba{['_enabledCommands'];constructor(_0x24a447,_0x8606f2){super(_0x24a447),this['_enabledCommands']=_0x8606f2,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 _0xfcf0fc of this['editor']['commands']['commands']())_0xfcf0fc['affectsData']&&!this['_enabledCommands']['has'](_0xfcf0fc)&&_0xfcf0fc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1770c6 of this['editor']['commands']['commands']())_0x1770c6['affectsData']&&!this['_enabledCommands']['has'](_0x1770c6)&&_0x1770c6['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x5a79ba{_suggestions;constructor(_0x1ae441,_0x9ce711){super(_0x1ae441),this['_suggestions']=_0x9ce711,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5b1ea7){const _0x5324bb=this['_suggestions']['get'](_0x5b1ea7);if(!_0x5324bb)throw new _0x4ce3e1('track-changes-accept-suggestion-not-found',this);const _0x3bef9e=_0x5324bb['getRanges']();this['editor']['model']['canEditAt'](_0x3bef9e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5324bb);}},Lt=class extends _0x5a79ba{_suggestions;constructor(_0xa6b99e,_0x54d261){super(_0xa6b99e),this['_suggestions']=_0x54d261,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1f1442){const _0x120644=this['_suggestions']['get'](_0x1f1442);if(!_0x120644)throw new _0x4ce3e1('track-changes-discard-suggestion-not-found',this);const _0x5e4181=_0x120644['getRanges']();this['editor']['model']['canEditAt'](_0x5e4181)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x120644);}};function It(_0x1194c3,_0x1c3a1d){let _0x58a8f3='';return _0x58a8f3+=_0x1194c3['split']('*')['map']((_0xcdf9e8,_0x270108)=>_0x270108%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0xcdf9e8)+'</span>':At(_0xcdf9e8))['join'](''),_0x1c3a1d&&(_0x58a8f3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1c3a1d['value']+'\x22\x20title=\x22'+_0x1c3a1d['title']+'\x22></span>'),_0x58a8f3;}function At(_0x5928a7){const _0x4f8840=document['createElement']('span');return _0x4f8840['innerText']=_0x5928a7,_0x4f8840['innerHTML'];}function bt(_0x795e1){return _0x795e1['sort']((_0x3e0d57,_0x4b79bc)=>'attribute'===_0x3e0d57['type']&&'attribute'!==_0x4b79bc['type']?-0x1:'attribute'!==_0x3e0d57['type']&&'attribute'===_0x4b79bc['type']?0x1:'deletion'==_0x3e0d57['type']&&'deletion'!=_0x4b79bc['type']?-0x1:'deletion'!=_0x3e0d57['type']&&'deletion'==_0x4b79bc['type']?0x1:0x0);}function Ct(_0x3a29be,_0x497f62){let _0x4e9e59,_0x4d6338=0x0;const _0x4b4b98=[],_0x1a6e7f=_0x497f62['schema'];for(;_0x4d6338<_0x3a29be['length'];){const _0x44ebea=_0x3a29be[_0x4d6338],_0x380feb=_0x3a29be[_0x4d6338+0x1];_0x4e9e59||(_0x4e9e59=_0x497f62['createPositionBefore'](_0x44ebea)),kt(_0x497f62,_0x44ebea,_0x380feb)||(_0x4b4b98['push'](_0x497f62['createRange'](_0x4e9e59,_0x1a6e7f['isObject'](_0x44ebea)?_0x497f62['createPositionAfter'](_0x44ebea):_0x497f62['createPositionAt'](_0x44ebea,'end'))),_0x4e9e59=null),_0x4d6338++;}return _0x4b4b98;}function kt(_0xfe4988,_0x5af59f,_0x3fa615){if(!_0x3fa615)return!0x1;const _0x1c457a=_0xfe4988['createPositionAfter'](_0x5af59f),_0x335d79=_0xfe4988['createPositionBefore'](_0x3fa615);return _0x1c457a['isTouching'](_0x335d79);}function Rt(_0x418b4b,_0x35e7ad,_0x130506){for(;_0x130506['length'];){const _0x555103=_0x130506['splice'](0x0,0x64);_0x418b4b['change'](()=>{for(const _0x25887b of _0x555103)_0x25887b['isInContent']&&_0x35e7ad['execute'](_0x25887b['id']);});}}var yt=class extends _0x5a79ba{['_command'];_suggestions;constructor(_0x2004c5,_0x110477,_0x4b0f38){super(_0x2004c5),this['_command']=_0x110477,this['_suggestions']=_0x4b0f38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1298ac=Array['from'](this['_suggestions']['values']())['some'](_0x1ef728=>_0x1ef728['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1298ac;}execute(){const _0x59135b=bt(Array['from'](this['_suggestions']['values']()));for(const _0xc823c0 of _0x59135b){const _0x2e018b=_0xc823c0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e018b))return;}Rt(this['editor']['model'],this['_command'],_0x59135b);}},Nt=class extends _0x5a79ba{['_command'];_suggestions;_selectedSuggestions;constructor(_0x4fbf4d,_0x1c5481,_0x94c3e1){super(_0x4fbf4d),this['_command']=_0x1c5481,this['_suggestions']=_0x94c3e1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7cb9f9=this['editor']['model']['document']['selection'],_0x574cb2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x6ff409,_0xc8abba){const _0x511255=Array['from'](_0x6ff409['getRanges']()),_0x22a6ca=new Set();for(const _0x23c12e of _0xc8abba)if(_0x23c12e['isInContent']){for(const _0x50b4f1 of _0x511255)for(const _0x38341f of _0x23c12e['getRanges']())(_0x50b4f1['isIntersecting'](_0x38341f)||_0x6ff409['isCollapsed']&&!_0x23c12e['isMultiRange']&&_0x23c12e['next']&&_0x38341f['end']['isTouching'](_0x50b4f1['start']))&&_0x22a6ca['add'](_0x23c12e);}return _0x22a6ca;}(_0x7cb9f9,_0x574cb2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x3b388e=bt(Array['from'](this['_selectedSuggestions']));for(const _0x4e5d8f of _0x3b388e){const _0x415f4d=_0x4e5d8f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x415f4d))return;}Rt(this['editor']['model'],this['_command'],_0x3b388e);}};const St=/* #__PURE__ -- @preserve */
24
- _0x47ad8b();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x59d596,_0x29f478){super(),this['id']=_0x29f478['id'],this['type']=_0x29f478['type'],this['subType']=_0x29f478['subType']||null,this['author']=_0x29f478['author'],this['creator']=_0x29f478['creator']||_0x29f478['author'],this['data']=null,this['_originalSuggestionId']=_0x29f478['originalSuggestionId']||null,this['_model']=_0x59d596,this['_onAccept']=_0x29f478['onAccept'],this['_onDiscard']=_0x29f478['onDiscard'],this['_onAttributesChange']=_0x29f478['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29f478['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x4a4dab=this;for(;_0x4a4dab['previous'];)_0x4a4dab=_0x4a4dab['previous'];return _0x4a4dab;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x41f52f){this['_markerNames']['add'](_0x41f52f);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x3bfe17=>this['_model']['markers']['get'](_0x3bfe17))['filter'](_0x456c9e=>_0x456c9e);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b2a66=>{for(const _0x536246 of this['getMarkers']())_0x4b2a66['removeMarker'](_0x536246);}),this['_markerNames']['clear']();}['removeMarker'](_0x478e50){this['_model']['change'](_0x3091c0=>{_0x3091c0['removeMarker'](_0x478e50);}),this['_markerNames']['delete'](_0x478e50);}['addRange'](_0x2682bd){const _0xc20bca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xc20bca),this['_model']['change'](_0x131494=>{_0x131494['addMarker'](_0xc20bca,{'range':_0x2682bd,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x220008){for(const _0x461194 of this['getRanges']())if(_0x461194['isIntersecting'](_0x220008))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x401a2c=>_0x401a2c['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x3cce98,_0x5eaaa0)=>[..._0x3cce98,..._0x5eaaa0['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xd23d18=this['getRanges']();if(0x1!=_0xd23d18['length'])return null;const _0x33e0ef=_0xd23d18[0x0],_0xd5a886=_0x33e0ef['start']['nodeAfter'],_0x56f7b4=_0x33e0ef['end']['nodeBefore'];return _0xd5a886 instanceof st?_0xd5a886!=_0x56f7b4?null:_0xd5a886: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 _0x48fe6b=[];let _0x2f6904=this['head'];for(;_0x2f6904;)_0x48fe6b['push'](_0x2f6904),_0x2f6904=_0x2f6904['next'];return _0x48fe6b;}setAttribute(_0x150beb,_0x2fd83e){const _0x2ab888=ct(this['attributes']);dt(_0x2ab888,_0x150beb,_0x2fd83e),lt(_0x2ab888,this['attributes'])||(this['attributes']=_0x2ab888,this['_onAttributesChange'](_0x2ab888));}removeAttribute(_0x1befae){const _0x50497b=ct(this['attributes']);ht(_0x50497b,_0x1befae),lt(_0x50497b,this['attributes'])||(this['attributes']=_0x50497b,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 _0x1dfb7c()['substr'](0x1,0x5);}};function Ot(_0x580bbe,_0x598d09,_0x469664){const _0x5ddd10=_0x580bbe['t'],t=_0x580bbe['t'];switch(_0x598d09){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x469664);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x469664);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x469664);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x469664);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x469664);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',_0x469664);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x469664);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x469664);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x469664);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x469664);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x469664);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x469664);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x469664);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x469664);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x469664);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x469664);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x469664);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x469664);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x469664);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x469664);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x469664);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x469664);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x469664);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x469664);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x469664);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'},_0x469664);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x469664);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x469664);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x469664);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x469664);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x469664);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x469664);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x469664);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x469664);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x469664);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x469664);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x469664);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x469664);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x469664);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x469664);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x469664);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'},_0x469664);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x469664);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x469664);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'},_0x469664);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x469664);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'},_0x469664);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x469664);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x469664);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x469664);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x469664);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x469664);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'},_0x469664);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x469664);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x469664);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x469664);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x469664);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'},_0x469664);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'},_0x469664);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'},_0x469664);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x598d09;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x14aa6b,_0xff8d6e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14aa6b,this['_locale']=_0xff8d6e;}getDescriptions(_0x2e5cf9){const _0x4ae254=[],_0x23ab8e=new Set(),_0x24bee4=new Set();for(let _0x11132e=0x0;_0x11132e<_0x2e5cf9['length'];_0x11132e++){const _0x502393=_0x2e5cf9[_0x11132e];if(!_0x502393['isInContent'])continue;const _0x1d7876=this['_handleCustomCallbackDescription'](_0x502393);if(_0x1d7876){if(null!=_0x502393['subType']){if(_0x23ab8e['has'](_0x502393['subType']))continue;_0x23ab8e['add'](_0x502393['subType']);}_0x4ae254['push'](_0x1d7876);}else{if('attribute'==_0x502393['type']){const _0x3a761d=_0x502393['data']['key'];if(_0x24bee4['has'](_0x3a761d))continue;_0x24bee4['add'](_0x502393['data']['key']),'$elementName'==_0x3a761d?this['_handleRenameSuggestionDescription'](_0x4ae254,_0x502393):this['_handleAttributeSuggestionDescription'](_0x4ae254,_0x502393);continue;}'insertion'!=_0x502393['type']&&'deletion'!=_0x502393['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ae254,_0x502393,_0x2e5cf9[_0x11132e+0x1]);}}return this['_resolveDescriptionItems'](_0x4ae254);}registerDescriptionCallback(_0x4f77c6){this['_customCallbacks']['push'](_0x4f77c6);}registerElementLabel(_0x2857f1,_0x3228d7,_0x1b4324=_0x5e908b['normal']){'function'==typeof _0x2857f1?_0x1dd3b8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2857f1,'label':_0x3228d7,'priority':_0x1b4324}):this['_itemLabels']['set'](_0x2857f1,_0x3228d7);}registerAttributeLabel(_0x96d3ae,_0x2f06a5){this['_attributeLabels']['set'](_0x96d3ae,_0x2f06a5);}getItemLabel(_0xf72d30,_0x59ca1a=0x1){let _0x593c73;for(const _0x165112 of this['_itemLabelsCallbacks'])if(_0x165112['matchingCallback'](_0xf72d30)){_0x593c73=_0x165112['label'];break;}return _0x593c73||(_0x593c73=this['_itemLabels']['get'](_0xf72d30['name'])),_0x593c73?_0x593c73(_0x59ca1a):0x1!==_0x59ca1a?_0x59ca1a+'\x20'+_0xf72d30['name']+'s':''+_0xf72d30['name'];}_addDescriptionItems(_0x49a196,_0x1c1125){const _0x275642=_0x1c1125['getFirstRange']()['getWalker'](),_0x2d8e5a='insertion'==_0x1c1125['type']?'add':'remove';for(const _0x6cc0b7 of _0x275642){const _0x236432=_0x6cc0b7['item'],_0x5ef514=_0x49a196[_0x49a196['length']-0x1];if(_0x236432['is']('$textProxy'))_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),_0x5ef514&&'text'==_0x5ef514['type']?_0x5ef514[_0x2d8e5a]+=_0x236432['data']:_0x49a196['push']({'type':'text','add':'add'==_0x2d8e5a?_0x236432['data']:'','remove':'remove'==_0x2d8e5a?_0x236432['data']:''});else{if(this['_schema']['isObject'](_0x236432)){const _0x36dd71=_0x236432;if(_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),'elementEnd'==_0x6cc0b7['type'])continue;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'Object'&&_0x5ef514['element']['name']==_0x36dd71['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'Object','element':_0x36dd71,'quantity':0x1}),_0x275642['skip'](_0x4bfed4=>!('elementEnd'==_0x4bfed4['type']&&_0x4bfed4['item']==_0x236432));}else{if(this['_schema']['checkChild'](_0x236432,'$text')||_0x236432['is']('element','softBreak')){const _0x84e86d=_0x236432;if('add'==_0x2d8e5a&&'elementStart'==_0x6cc0b7['type']||'remove'==_0x2d8e5a&&'elementEnd'==_0x6cc0b7['type'])continue;if(_0x5ef514&&-0x1==_0x5ef514['type']['indexOf']('Container')){'text'==_0x5ef514['type']&&(_0x5ef514[_0x2d8e5a]+='\x0a');continue;}let _0x11ce46;if(_0x11ce46='add'==_0x2d8e5a?_0x84e86d['nextSibling']&&!this['_schema']['isObject'](_0x84e86d['nextSibling'])?_0x84e86d['nextSibling']:null:_0x84e86d['previousSibling']&&!this['_schema']['isObject'](_0x84e86d['previousSibling'])?_0x84e86d['previousSibling']:null,_0x84e86d['isEmpty']||_0x11ce46&&_0x11ce46['isEmpty']){const _0x3ee0a3=_0x11ce46&&_0x11ce46['isEmpty']?_0x11ce46:_0x84e86d;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'EmptyContainer'&&_0x5ef514['element']['name']==_0x3ee0a3['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'EmptyContainer','element':_0x3ee0a3,'quantity':0x1});}else _0x49a196['push']({'type':_0x2d8e5a+'Container','element':_0x84e86d});}}}}}_resolveDescriptionItems(_0x35688e){const _0xb92b49=this['_locale'],_0x3bb84a=[],_0x1caffb=[],_0x5a01c1=[];for(const _0x3ee6b0 of _0x35688e)switch(_0x3ee6b0['type']){case'text':if(_0x3ee6b0['add']=_0x3ee6b0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ee6b0['remove']=_0x3ee6b0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ee6b0['add']&&''!=_0x3ee6b0['remove']){_0x3bb84a['push']({'type':'replace','content':Ot(_0xb92b49,'REPLACE_TEXT',['\x22'+_0x3ee6b0['remove']+'\x22','\x22'+_0x3ee6b0['add']+'\x22'])});continue;}if(null!=_0x3ee6b0['add']['match'](/^ +$/)){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['add']['length']))});continue;}if(null!=_0x3ee6b0['remove']['match'](/^ +$/)){_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['remove']['length']))});continue;}if(''!=_0x3ee6b0['add']){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0','\x22'+_0x3ee6b0['add']+'\x22')});continue;}_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0','\x22'+_0x3ee6b0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addContainer':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Split:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeContainer':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Merge:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addFormat':_0x1caffb['push'](_0x3ee6b0['key']);continue;case'removeFormat':_0x5a01c1['push'](_0x3ee6b0['key']);continue;default:_0x3bb84a['push'](_0x3ee6b0);}if(_0x1caffb['length']){const _0xda488a=_0x1caffb['map'](_0x3920c9=>this['_attributeLabels']['has'](_0x3920c9)?this['_attributeLabels']['get'](_0x3920c9):_0x3920c9)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0xda488a)});}if(_0x5a01c1['length']){const _0x4671f2=_0x5a01c1['map'](_0x571dce=>this['_attributeLabels']['has'](_0x571dce)?this['_attributeLabels']['get'](_0x571dce):_0x571dce)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x4671f2)});}return _0x3bb84a;}_handleCustomCallbackDescription(_0x4c45b4){for(const _0x551ece of this['_customCallbacks']){const _0x27b609=_0x551ece(_0x4c45b4);if(_0x27b609&&'type'in _0x27b609)return _0x27b609;}}_handleAttributeSuggestionDescription(_0x4ff171,_0x5bc390){const _0x31abaa=_0x5bc390['data'],_0x4fec73=void 0x0===_0x31abaa['newValue']?'removeFormat':'addFormat';_0x4ff171['push']({'type':_0x4fec73,'key':_0x31abaa['key']});}_handleRenameSuggestionDescription(_0x5efd87,_0x5a1937){_0x5efd87['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a1937['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x50ec23,_0x363f18,_0xdec4a3){if(this['_addDescriptionItems'](_0x50ec23,_0x363f18),_0xdec4a3&&_0xdec4a3['getFirstRange']()&&!_0x363f18['getFirstRange']()['end']['isEqual'](_0xdec4a3['getFirstRange']()['start'])){const _0x3dffe6=_0x50ec23[_0x50ec23['length']-0x1],_0x518ddb='insertion'==_0x363f18['type']?'add':'remove';_0x3dffe6&&'text'==_0x3dffe6['type']&&(_0x3dffe6[_0x518ddb]+='\x0a');}}},Ft=class extends _0x548d2a{afterInit(){const _0x33dbe0=this['editor'],_0x157d93=_0x33dbe0['plugins']['get']('TrackChangesEditing');_0x33dbe0['commands']['get']('showAIAssistant')&&_0x157d93['enableCommand']('showAIAssistant');}},Bt=class extends _0x548d2a{afterInit(){const _0x5901e1=this['editor'],_0x5ef11a=_0x5901e1['plugins']['get']('TrackChangesEditing');_0x5901e1['commands']['get']('toggleAi')&&_0x5ef11a['enableCommand']('toggleAi');}},vt=class extends _0x548d2a{afterInit(){const _0x3a84d0=this['editor'],_0x343fd8=_0x3a84d0['plugins']['get']('TrackChangesEditing');_0x3a84d0['commands']['get']('aiQuickAction')&&_0x343fd8['enableCommand']('aiQuickAction');}},Dt=class extends _0x548d2a{afterInit(){const _0x2d69a3=this['editor'],_0xc6e7f8=_0x2d69a3['locale'];if(!_0x2d69a3['plugins']['has']('AlignmentEditing'))return;const _0x324907=_0x2d69a3['plugins']['get']('TrackChangesEditing');_0x324907['enableDefaultAttributesIntegration']('alignment'),_0x324907['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0xc6e7f8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5657ac=this['editor'],_0x1d0d5e=_0x5657ac['locale'];_0x5657ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6a38=>{if('formatBlock'!=_0x3c6a38['type'])return;const {data:_0x58c0ec}=_0x3c6a38;if(_0x58c0ec&&'alignment'==_0x58c0ec['commandName']){const _0x1d2bd8=_0x58c0ec['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x1d0d5e,'*Format:*\x20%0',function(_0x2c2624){switch(_0x2c2624){case'left':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x1d0d5e,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2bd8))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x548d2a{afterInit(){const _0x55f6e5=this['editor'],_0x51c0f2=_0x55f6e5['plugins']['get']('TrackChangesEditing'),_0x472c79=_0x55f6e5['locale'];for(const _0x5106fe of Ut){if(!_0x55f6e5['plugins']['has'](_0x5106fe))continue;const _0x14ef00=_0x5106fe['slice'](0x0,-0x7)['toLowerCase'](),_0x304bf6='FORMAT_'+_0x14ef00['toUpperCase']();_0x51c0f2['enableDefaultAttributesIntegration'](_0x14ef00),_0x51c0f2['descriptionFactory']['registerAttributeLabel'](_0x14ef00,Ot(_0x472c79,_0x304bf6));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4338f0=this['editor'],_0x4f5d59=_0x4338f0['locale'],_0x17d980=_0x4338f0['plugins']['get']('TrackChangesEditing');function _0xc19c30(_0x392d7d,_0x1855a2){_0x17d980['descriptionFactory']['registerDescriptionCallback'](_0x2775ab=>{if('formatInline'!=_0x2775ab['type'])return;const {data:_0x527a96}=_0x2775ab;return _0x527a96&&_0x527a96['commandName']===_0x392d7d?_0x527a96['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x4f5d59,'*Format:*\x20%0',_0x1855a2)}:{'type':'format','content':Ot(_0x4f5d59,'*Remove\x20format:*\x20%0',_0x1855a2)}:void 0x0;});}_0xc19c30('bold',Ot(_0x4f5d59,'FORMAT_BOLD')),_0xc19c30('italic',Ot(_0x4f5d59,'FORMAT_ITALIC')),_0xc19c30('underline',Ot(_0x4f5d59,'FORMAT_UNDERLINE')),_0xc19c30('code',Ot(_0x4f5d59,'FORMAT_CODE')),_0xc19c30('strikethrough',Ot(_0x4f5d59,'FORMAT_STRIKETHROUGH')),_0xc19c30('subscript',Ot(_0x4f5d59,'FORMAT_SUBSCRIPT')),_0xc19c30('superscript',Ot(_0x4f5d59,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x548d2a{afterInit(){const _0x3a85d8=this['editor'],_0x36113c=_0x3a85d8['locale'];if(!_0x3a85d8['plugins']['has']('BlockQuoteEditing'))return;const _0x387209=_0x3a85d8['plugins']['get']('TrackChangesEditing'),_0x51e9bc=this['editor']['commands']['get']('blockQuote');_0x387209['enableCommand']('blockQuote',(_0xff3daa,_0x435138={})=>{const _0x1657e1=this['editor']['model']['document']['selection'],_0x4c0156=_0x435138&&void 0x0!==_0x435138['forceValue']?_0x435138['forceValue']:!_0x51e9bc['value'];let _0x46d889=[];_0x46d889=Ct(_0x4c0156?Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x2a5c28=>Gt(_0x2a5c28)||function(_0x48f7bf,_0x195c07){const _0x23939f=_0x195c07['createContext'](_0x48f7bf['parent']);return!!_0x195c07['checkChild'](_0x23939f,'blockQuote')&&!!_0x195c07['checkChild'](_0x23939f['push']('blockQuote'),_0x48f7bf);}(_0x2a5c28,this['editor']['model']['schema'])):Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x4cd9db=>Gt(_0x4cd9db)),_0x3a85d8['model']),_0x3a85d8['model']['change'](()=>{for(const _0x118167 of _0x46d889)_0x387209['markBlockFormat'](_0x118167,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c0156}]});});}),_0x387209['descriptionFactory']['registerDescriptionCallback'](_0x139664=>{const {data:_0x10916c}=_0x139664;if(_0x10916c&&'blockQuote'==_0x10916c['commandName']){const _0x1cc5c3=Ot(_0x36113c,'ELEMENT_BLOCK_QUOTE');return _0x10916c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x36113c,'*Set\x20format:*\x20%0',_0x1cc5c3)}:{'type':'format','content':Ot(_0x36113c,'*Remove\x20format:*\x20%0',_0x1cc5c3)};}});}};function Gt(_0x572fbd){return'blockQuote'==_0x572fbd['parent']['name'];}var Ht=class extends _0x548d2a{afterInit(){const _0x27a490=this['editor'],_0x5d4a28=_0x27a490['locale'],_0x54e6e5=_0x27a490['plugins']['get']('TrackChangesEditing');_0x27a490['plugins']['has']('BookmarkEditing')&&(_0x54e6e5['enableCommand']('insertBookmark'),_0x54e6e5['enableDefaultAttributesIntegration']('updateBookmark'),_0x54e6e5['descriptionFactory']['registerDescriptionCallback'](_0x5d9ef8=>{if('insertion'!=_0x5d9ef8['type']&&'deletion'!=_0x5d9ef8['type']&&'attribute'!=_0x5d9ef8['type'])return;const _0x4b9797=_0x5d9ef8['getContainedElement']();if(null==_0x4b9797)return;if(!_0x4b9797['is']('element','bookmark'))return;const _0x362e7f=_0x4b9797['getAttribute']('bookmarkId');if('insertion'==_0x5d9ef8['type'])return{'type':'insertion','content':Ot(_0x5d4a28,'*Insert:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5d9ef8['type'])return{'type':'deletion','content':Ot(_0x5d4a28,'*Remove:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};const {data:_0x4c37e3}=_0x5d9ef8;return _0x4c37e3&&'bookmarkId'==_0x4c37e3['key']?{'type':'format','content':Ot(_0x5d4a28,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c37e3['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x548d2a{afterInit(){const _0x3f06d3=this['editor'];_0x3f06d3['plugins']['has']('CaseChange')&&(_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x548d2a{afterInit(){const _0x3ab169=this['editor'];_0x3ab169['commands']['get']('ckbox')&&_0x3ab169['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x548d2a{static get requires(){return[gt,ft];}constructor(_0x155be5){super(_0x155be5),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x6ebdaa=this['editor'],_0x2684b5=_0x6ebdaa['plugins']['get']('ClipboardMarkersUtils'),_0x317a38=_0x6ebdaa['plugins']['get'](ft);_0x2684b5['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x317a38['on']('outputTransformation',(_0x62898f,_0x3baf18)=>{const _0x40264d=this['_getSuggestionEntries'](_0x3baf18);for(const [_0x41208d,_0x5c7a55]of _0x3baf18['content']['markers']){const _0x20eb8a=ot['_fromRangeInDocumentFragment'](_0x5c7a55,_0x6ebdaa['model']);function _0x27b241(){_0x20eb8a['detach'](),_0x3baf18['content']['markers']['delete'](_0x41208d);}_0x20eb8a['on']('change:drop',_0x27b241),(_0x41208d['startsWith']('suggestion:')||_0x41208d['startsWith']('comment:'))&&_0x20eb8a['on']('change:range',()=>{_0x20eb8a['isCollapsed']&&_0x27b241();}),_0x3baf18['content']['markers']['set'](_0x41208d,_0x20eb8a);}const _0x2d99ea=_0x40264d['filter'](_0x25681b=>'deletion'===_0x25681b['meta']['type'])['map'](_0x4cbd1e=>_0x4cbd1e['modelRange']);if(this['_shouldSkipDeletions'](_0x2d99ea,_0x3baf18['content']))return[..._0x40264d]['forEach'](_0x77a233=>{_0x3baf18['content']['markers']['get'](_0x77a233['markerName'])['detach'](),_0x3baf18['content']['markers']['delete'](_0x77a233['markerName']);}),void this['_restoreRegularRanges'](_0x3baf18['content']['markers']);[..._0x40264d]['forEach'](_0x549f25=>{const _0x3b7dae=_0x6ebdaa['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x549f25['meta']['type'],_0x549f25['meta']['subType'],'accept'),{markerName:_0x2ec4b5,meta:_0x366011}=_0x549f25;if(_0x3baf18['content']['markers']['has'](_0x2ec4b5)){switch(_0x366011['type']){case'deletion':if('tableRow'===_0x366011['subType']||'tableColumn'===_0x366011['subType']){if(!_0x6ebdaa['plugins']['has']('TableUtils'))break;const _0x4538da=_0x6ebdaa['plugins']['get']('TableUtils'),_0x45974a=_0x4538da['getSelectionAffectedTableCells'](_0x6ebdaa['model']['createSelection'](_0x3baf18['content']['markers']['get'](_0x2ec4b5))),_0x2ac429=_0x45974a[0x0]['findAncestor']('table');if('tableRow'===_0x366011['subType']){const {first:_0x262a0a,last:_0x26846f}=_0x4538da['getRowIndexes'](_0x45974a);_0x4538da['removeRows'](_0x2ac429,{'at':_0x262a0a,'rows':_0x26846f-_0x262a0a+0x1});}else{const {first:_0x2b2586,last:_0x3d0e0b}=_0x4538da['getColumnIndexes'](_0x45974a);_0x4538da['removeColumns'](_0x2ac429,{'at':_0x2b2586,'columns':_0x3d0e0b-_0x2b2586+0x1});}break;}_0x3b7dae([_0x3baf18['content']['markers']['get'](_0x2ec4b5)]);}_0x3baf18['content']['markers']['has'](_0x2ec4b5)&&(_0x3baf18['content']['markers']['get'](_0x2ec4b5)['detach'](),_0x3baf18['content']['markers']['delete'](_0x2ec4b5));}}),this['_restoreRegularRanges'](_0x3baf18['content']['markers']);});}_getSuggestionEntries(_0x384387){const _0x6f3717=_0x421492=>'dragstart'===_0x384387['method']?_0x421492['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x421492;return Array['from'](_0x384387['content']['markers'])['map'](([_0x3ab927,_0x57fab2])=>({'markerName':_0x3ab927,'modelRange':_0x57fab2,'meta':et(_0x6f3717(_0x3ab927))}))['filter'](({meta:_0x3b84c9})=>'suggestion'===_0x3b84c9['group']);}_shouldSkipDeletions(_0x8b8c83,_0x36f0c7){if(!_0x8b8c83['length'])return!0x1;let _0x208a61=[this['editor']['model']['createRangeIn'](_0x36f0c7)];for(const _0x525136 of _0x8b8c83)_0x208a61=_0x208a61['flatMap'](_0x5bd72a=>_0x5bd72a['getDifference'](_0x525136));return!_0x208a61['some'](_0x493c02=>this['editor']['model']['hasContent'](_0x493c02,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x315d15){[..._0x315d15['keys']()]['forEach'](_0xba9e61=>{const _0x2861da=_0x315d15['get'](_0xba9e61);_0x2861da['detach'](),_0x315d15['set'](_0xba9e61,_0x2861da['toRange']());});}},jt=class extends _0x548d2a{afterInit(){const _0x7fb726=this['editor'];if(!_0x7fb726['plugins']['has']('CodeBlock'))return;const _0x41a0fd=_0x7fb726['plugins']['get']('TrackChangesEditing'),_0x227427=_0x7fb726['locale'],_0x107a42=_0x7fb726['config']['get']('codeBlock')['languages'],_0x1610d0=_0x7fb726['commands']['get']('codeBlock');_0x41a0fd['enableCommand']('indentCodeBlock'),_0x41a0fd['enableCommand']('outdentCodeBlock'),_0x41a0fd['enableCommand']('codeBlock',(_0x37be77,_0x4fd184={})=>{const _0x190607=_0x7fb726['model'],_0x5230a6=_0x7fb726['model']['document']['selection'],_0x43ec52=_0x4fd184&&void 0x0!==_0x4fd184['forceValue']?_0x4fd184['forceValue']:!_0x1610d0['value'];let _0x145450;_0x4fd184['language']||(_0x4fd184['language']=_0x107a42[0x0]['language']),_0x145450=_0x43ec52?Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x5dce3f=>{return zt(_0x5dce3f)||(_0x589ced=_0x5dce3f,_0x1143fa=_0x190607['schema'],!_0x589ced['is']('rootElement')&&!_0x1143fa['isLimit'](_0x589ced)&&_0x1143fa['checkChild'](_0x589ced['parent'],'codeBlock'));var _0x589ced,_0x1143fa;}):Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x50befe=>zt(_0x50befe));const _0x2b64ae=Ct(_0x145450,_0x190607);_0x190607['change'](()=>{for(const _0x2e996a of _0x2b64ae)_0x41a0fd['markBlockFormat'](_0x2e996a,{'commandName':'codeBlock','commandParams':[{..._0x4fd184,'forceValue':_0x43ec52}],'formatGroupId':'blockName'});});}),(_0x41a0fd['descriptionFactory']['registerElementLabel']('codeBlock',_0x1dea05=>Ot(_0x227427,'ELEMENT_CODE_BLOCK',_0x1dea05)),_0x41a0fd['descriptionFactory']['registerDescriptionCallback'](_0x593c1e=>{if('formatBlock'!=_0x593c1e['type'])return;const _0x587fbc=_0x227427['t'],{data:_0x34c667}=_0x593c1e;if(!_0x34c667||'codeBlock'!=_0x34c667['commandName'])return;const _0x573cfa=_0x34c667['commandParams'][0x0]['language'],_0x94e3e0=_0x587fbc(_0x107a42['find'](_0x1891ff=>_0x1891ff['language']===_0x573cfa)['label'])['toLowerCase']();return _0x34c667['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x227427,'*Set\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x94e3e0+')')}:{'type':'format','content':Ot(_0x227427,'*Remove\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x21fb09){return'codeBlock'==_0x21fb09['name'];}var Kt=class extends _0x548d2a{afterInit(){const _0x3ba165=this['editor'];_0x3ba165['plugins']['has']('CommentsEditing')&&_0x3ba165['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x548d2a{static get requires(){return[mt];}init(){const _0x533106=this['editor'],_0x3081e1=_0x533106['plugins']['get']('TrackChangesEditing');_0x3081e1['enableCommand']('delete');const _0x1364d4=_0x533106['commands']['get']('deleteForward');_0x3081e1['enableCommand']('deleteForward',(_0x8d35f3,_0x3947d3={})=>{const _0x48b8d3=_0x533106['model']['createSelection'](_0x533106['model']['document']['selection']);_0x48b8d3['isCollapsed']&&_0x533106['model']['modifySelection'](_0x48b8d3,{'direction':'forward','unit':_0x3947d3['unit']});const _0x32c3a6=_0x48b8d3['getFirstRange'](),_0x442f6e=ot['fromRange'](_0x32c3a6);let _0x2fd82b;_0x8d35f3(_0x3947d3),_0x2fd82b='$graveyard'==_0x442f6e['root']['rootName']?_0x533106['model']['createRange'](_0x32c3a6['start']):_0x533106['model']['createRange'](_0x442f6e['start'],_0x442f6e['end']),_0x442f6e['detach'](),_0x533106['model']['enqueueChange'](_0x1364d4['buffer']['batch'],_0x23ec08=>{_0x1364d4['buffer']['lock'](),_0x23ec08['setSelection'](_0x23ec08['createRange'](_0x2fd82b['end'])),_0x1364d4['buffer']['unlock']();});});}},qt=class extends _0x548d2a{afterInit(){const _0x3803ea=this['editor'];if(!_0x3803ea['plugins']['has']('ListEditing'))return;const _0x448ec5=_0x3803ea['locale'],_0x50285c=_0x3803ea['plugins']['get']('TrackChangesEditing'),_0x1cd82e=_0x3803ea['plugins']['has']('TodoListEditing'),_0x1b199f=!!_0x3803ea['config']['get']('list.multiBlock');function _0x9d5c39(_0x5b5218){return{'type':'format','content':''+Ot(_0x448ec5,'*Set\x20format:*\x20%0',_0x5b5218)};}function _0x255d13(_0x28cd38){return{'type':'format','content':''+Ot(_0x448ec5,'*Remove\x20format:*\x20%0',_0x28cd38)};}_0x50285c['enableDefaultAttributesIntegration']('numberedList'),_0x50285c['enableDefaultAttributesIntegration']('bulletedList'),_0x50285c['enableDefaultAttributesIntegration']('customNumberedList'),_0x50285c['enableDefaultAttributesIntegration']('customBulletedList'),_0x50285c['enableDefaultAttributesIntegration']('indentList'),_0x50285c['enableDefaultAttributesIntegration']('outdentList'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1b199f&&(_0x50285c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x50285c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cd82e&&(_0x50285c['enableDefaultAttributesIntegration']('todoList'),_0x50285c['enableDefaultAttributesIntegration']('checkTodoList'),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x77f90e=>{const {data:_0x3b2851}=_0x77f90e;if(_0x3b2851&&'todoListChecked'==_0x3b2851['key'])return{'type':'format','content':_0x3b2851['newValue']?Ot(_0x448ec5,'*Check\x20item*'):Ot(_0x448ec5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5cbea3=>{if(_0x5cbea3['batch']['isUndo'])return!0x1;let _0x5eb877=!0x1;const _0x16bc44=_0x50285c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d7602=>'todoListChecked'===_0x50285c['_getAttributeKey'](_0x5d7602));for(const _0x1f90e6 of _0x16bc44)'todo'!=_0x1f90e6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x50285c['_findSuggestions'](_0x1f90e6['getFirstRange'](),'attribute')['find'](_0x5a9f40=>'listType'===_0x50285c['_getAttributeKey'](_0x5a9f40['suggestion']))||(_0x5cbea3['removeMarker'](_0x1f90e6['getFirstMarker']()),_0x5eb877=!0x0));return _0x5eb877;})),_0x50285c['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x448ec5,'FORMAT_INDENT'));const _0x3e4736={'type':'format','content':''};_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x480aee=>{const {data:_0x1a3e47}=_0x480aee;if(!_0x1a3e47||'listType'!=_0x1a3e47['key'])return;let _0x4d8148=_0x480aee['head'];for(;_0x4d8148;){if(_0x4d8148['data']&&(('listStyle'==_0x4d8148['data']['key']||'listMarkerStyle'==_0x4d8148['data']['key'])&&(_0x4d8148['data']['newValue']&&'default'!=_0x4d8148['data']['newValue']||'default'!=_0x4d8148['data']['oldValue']&&!_0x1a3e47['newValue'])||!_0x1b199f&&'$elementName'==_0x4d8148['data']['key']))return _0x3e4736;_0x4d8148=_0x4d8148['next'];}if(null==_0x1a3e47['newValue'])switch(_0x1a3e47['oldValue']){case'bulleted':return _0x255d13(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x255d13(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x255d13(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}switch(_0x1a3e47['newValue']){case'bulleted':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x311dab=>{const {data:_0x4db833}=_0x311dab;if(_0x4db833&&'listIndent'==_0x4db833['key'])return null==_0x4db833['newValue']||null==_0x4db833['oldValue']&&0x0==_0x4db833['newValue']?_0x3e4736:void 0x0;}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0xb97fef=>{if('attribute'!=_0xb97fef['type'])return;const {data:_0x28e6c2}=_0xb97fef;if(!_0x28e6c2||'listItemId'!=_0x28e6c2['key'])return;const _0x7ae84f=Yt(_0xb97fef);return'newValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Split:*\x20list\x20item')}:_0x3e4736;}),_0x3803ea['model']['document']['registerPostFixer'](_0x5ee3b6=>this['listItemIdFixer'](_0x5ee3b6)),_0x3803ea['model']['document']['registerPostFixer'](_0x17bdf7=>this['noTrackChangesFixer'](_0x17bdf7)),_0x3803ea['model']['document']['on']('change:data',(_0x5d5bbe,_0x3ffc01)=>{if(_0x3ffc01['isUndo']||!_0x3ffc01['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x29018b){if(_0x29018b['batch']['isUndo']||!_0x29018b['batch']['isLocal'])return!0x1;let _0x357083=!0x1;const _0x137a54=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150b37=>_0x150b37['data']&&'listItemId'==_0x150b37['data']['key'])['filter'](_0x388783=>_0x388783['data']['newValue']&&_0x388783['data']['oldValue']);for(const _0x403279 of _0x137a54)Yt(_0x403279)||(_0x29018b['removeMarker'](_0x403279['getFirstMarker']()),_0x357083=!0x0);return _0x357083;}['noTrackChangesFixer'](_0x2e32cd){if(_0x2e32cd['batch']['isUndo']||!_0x2e32cd['batch']['isLocal'])return!0x1;const _0x3c6b3b=this['editor']['model']['document']['differ'],_0x344ca8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x344ca8['trackChangesCommand']['value'])return!0x1;let _0x2d72f1=!0x1;const _0x5157b3=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x65170b=_0x3c6b3b['getChanges']()['filter'](_0x4abc67=>'attribute'==_0x4abc67['type'])['filter'](_0x557c53=>_0x5157b3['has'](_0x557c53['attributeKey']));if(0x0==_0x65170b['length'])return _0x2d72f1;const _0x12a94d=new Set(_0x3c6b3b['getMarkersToAdd']()['filter'](_0x17fbdd=>{if(!_0x17fbdd['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3110bc=et(_0x17fbdd['name'])['subType']['split']('|')[0x0];return _0x5157b3['has'](_0x3110bc);})['map'](_0xc75954=>et(_0xc75954['name'])['id']));for(const _0x494b6c of _0x65170b){const _0x38631d=_0x344ca8['_findSuggestions'](_0x494b6c['range'],'attribute')['filter'](_0x5e8bb4=>{if(_0x5e8bb4['meta']['isNextTo'])return!0x1;if(_0x12a94d['has'](_0x5e8bb4['suggestion']['id']))return!0x1;const _0x282a50=_0x344ca8['_getAttributeKey'](_0x5e8bb4['suggestion']);return _0x5157b3['has'](_0x282a50);})['map'](_0x318936=>_0x318936['suggestion']);if(_0x38631d['length']){for(const _0x4eb5fd of _0x38631d)_0x2e32cd['removeMarker'](_0x4eb5fd['getFirstMarker']());_0x2d72f1=!0x0;}}return _0x2d72f1;}['assureChains'](){const _0x103687=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f5114=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x2cc53c;const _0x199deb=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ab7f3=>{if(_0x5ab7f3['data']['oldRange']||!_0x5ab7f3['data']['newRange'])return null;if(!_0x5ab7f3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x57374c}=et(_0x5ab7f3['name']);if(!_0x103687['hasSuggestion'](_0x57374c))return null;const _0x47a899=_0x103687['getSuggestion'](_0x57374c);return _0x1f5114['includes'](_0x47a899['data']['key']);})['map'](_0x31c6ec=>{const {id:_0x61760f}=et(_0x31c6ec['name']),_0x799935=_0x103687['getSuggestion'](_0x61760f);return _0x2cc53c=_0x799935['attributes']['groupId'],_0x799935['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x199deb['size'])return;const _0x2bccd4=_0x103687['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c273=>'attribute'==_0x49c273['type']&&_0x49c273['data']&&_0x1f5114['includes'](_0x49c273['data']['key'])&&_0x49c273['attributes']['groupId']!=_0x2cc53c)['map'](_0xc3807b=>({'listItem':_0xc3807b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xc3807b['attributes']['groupId']})),_0x3a4564=new Set();for(const {groupId:_0x1e7442,listItem:_0x34ca46}of _0x2bccd4)_0x199deb['has'](_0x34ca46)&&_0x3a4564['add'](_0x1e7442);for(const _0x90b4de of _0x103687['getSuggestions']())_0x3a4564['has'](_0x90b4de['attributes']['groupId'])&&_0x90b4de['setAttribute']('groupId',_0x2cc53c);}_supportLegacySuggestions(){const _0x3566a4=this['editor'],_0x57d0f7=_0x3566a4['locale'],_0x3b11d3=_0x3566a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x33de8d,_0x245827){const _0x3c80a9=[];for(let _0x1bc4b5 of _0x33de8d)_0x1bc4b5['start']['nodeAfter']===_0x1bc4b5['end']['parent']&&(_0x1bc4b5=_0x3566a4['model']['createRange'](_0x3566a4['model']['createPositionAt'](_0x1bc4b5['start']['nodeAfter'],0x0))),_0x3c80a9['push'](_0x1bc4b5);_0x3566a4['model']['change'](_0x188710=>{const _0x14f674=_0x3566a4['model']['document']['selection'],_0x52d3be=Array['from'](_0x14f674['getRanges']())['map'](_0x22ba7a=>ot['fromRange'](_0x22ba7a));_0x188710['setSelection'](_0x3c80a9),_0x3566a4['commands']['get'](_0x245827['commandName'])['refresh'](),_0x245827['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3566a4['execute'](_0x245827['commandName'],..._0x245827['commandParams']),_0x188710['setSelection'](_0x52d3be);for(const _0x1fc655 of _0x52d3be)_0x1fc655['detach']();});}),_0x3b11d3['descriptionFactory']['registerElementLabel'](function(_0x2efc07){const _0x463612=!_0x3566a4['model']['schema']['isObject'](_0x2efc07),_0x560560=_0x2efc07['previousSibling'],_0x6c250f=_0x2efc07['nextSibling'],_0x353d3d=_0x2efc07['getAttribute']('listItemId'),_0x8fa336=!_0x560560||_0x560560['getAttribute']('listItemId')!==_0x353d3d,_0x4b4ef0=!_0x6c250f||_0x6c250f['getAttribute']('listItemId')!==_0x353d3d;return _0x463612&&Boolean(_0x353d3d)&&_0x8fa336&&_0x4b4ef0;},_0x398c39=>Ot(_0x57d0f7,'ELEMENT_LIST_ITEM',_0x398c39));}_registerLegacyDescription(){const _0x2515bc=this['editor'],_0xd5d8bd=_0x2515bc['locale'];function _0x55b889(_0x1dec84){const _0x5c2fcc=_0x2515bc['commands']['get']('bulletedList')['value'],_0x4af828=_0x2515bc['commands']['get']('numberedList')['value'];return'numberedList'===_0x1dec84?_0x5c2fcc:_0x4af828;}_0x2515bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48a0b9){if('formatBlock'!=_0x48a0b9['type'])return;const {data:_0x5bd5b0}=_0x48a0b9;if(!_0x5bd5b0)return;let _0x3f1c61,_0x2d8e17,_0x5da99c,_0x146af0;switch(_0x5bd5b0['commandName']){case'bulletedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f1c61='*Indent:*\x20%0',_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f1c61=function(_0x1c928b){const _0x5f235e=_0x1c928b['getFirstRange']();let _0x50ad58=_0x5f235e['start']['nodeAfter'];for(;_0x50ad58&&_0x5f235e['containsItem'](_0x50ad58);){if(_0x50ad58['getAttribute']('listIndent')>0x0)return!0x1;_0x50ad58=_0x50ad58['nextSibling'];}return!0x0;}(_0x48a0b9)?Ot(_0xd5d8bd,'*Format:*\x20remove\x20from\x20%0',Ot(_0xd5d8bd,function(_0x949512){return'ELEMENT_'+_0x949512['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48a0b9))):Ot(_0xd5d8bd,'*Outdent:*\x20%0',Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM')),_0x2d8e17={'type':'format','content':_0x3f1c61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5bd5b0['multipleBlocks']&&(_0x3f1c61='*Merge:*\x20%0',_0x2d8e17={'type':'deletion','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))});}return _0x2d8e17;});}};function Yt(_0x5621fd){let _0x459df5=_0x5621fd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x459df5;){const _0x288933=_0x459df5['getAttribute']('listItemId');if(!_0x288933)return!0x1;if(_0x288933==_0x5621fd['data']['newValue'])return'newValue';if(_0x288933==_0x5621fd['data']['oldValue'])return'oldValue';_0x459df5=_0x459df5['previousSibling'];}return!0x1;}var Qt=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2dfa21=this['editor']['config']['get']('list.properties'),_0x1f1b03=this['editor']['plugins']['get']('TrackChangesEditing');_0x2dfa21['styles']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStyle'),_0x2dfa21['reversed']&&_0x1f1b03['enableDefaultAttributesIntegration']('listReversed'),_0x2dfa21['startIndex']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStart');const _0x166a09={'type':'format','content':''};_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4261cc=this['editor']['locale'];_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x4261cc,'FORMAT_LIST_REVERSED')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x1de4d3=>{const {data:_0x49d1b2}=_0x1de4d3;if(_0x49d1b2&&'listReversed'==_0x49d1b2['key'])return null==_0x49d1b2['newValue']||0x0==_0x49d1b2['newValue']&&null==_0x49d1b2['oldValue']?_0x166a09:void 0x0;}),_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x4261cc,'FORMAT_LIST_START')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x53f8a4=>{const {data:_0x33b662}=_0x53f8a4;if(_0x33b662&&'listStart'==_0x33b662['key'])return null==_0x33b662['newValue']||0x1==_0x33b662['newValue']&&null==_0x33b662['oldValue']?_0x166a09:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x44bdf4=>{if(_0x44bdf4['batch']['isUndo'])return!0x1;let _0x5647c4=!0x1;const _0x495967=_0x1f1b03['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21d97e=>{const _0x1b1a04=_0x1f1b03['_getAttributeKey'](_0x21d97e);return'listStart'==_0x1b1a04||'listReversed'==_0x1b1a04;});for(const _0x37b939 of _0x495967){const _0x344f9b=_0x37b939['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x344f9b&&'customNumbered'!=_0x344f9b&&(_0x1f1b03['_findSuggestions'](_0x37b939['getFirstRange'](),'attribute')['find'](_0x2572f6=>'listType'==_0x1f1b03['_getAttributeKey'](_0x2572f6['suggestion']))||(_0x44bdf4['removeMarker'](_0x37b939['getFirstMarker']()),_0x5647c4=!0x0));}return _0x5647c4;}),this['_registerLegacyDescription']();}handleDescriptions(_0x385f7e){const _0x43f459=this['editor']['locale'],{data:_0x22cb45}=_0x385f7e,_0x30a0ff={'type':'format','content':''};if(!_0x22cb45||'listStyle'!=_0x22cb45['key'])return;if(!_0x22cb45['oldValue'])return'default'==_0x22cb45['newValue']?_0x30a0ff:{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};if(!_0x22cb45['newValue']){if('default'==_0x22cb45['oldValue'])return _0x30a0ff;let _0x536a95=_0x385f7e['head'];for(;_0x536a95;){if(_0x536a95['data']&&'listType'==_0x536a95['data']['key']&&_0x536a95['data']['newValue'])return _0x30a0ff;_0x536a95=_0x536a95['next'];}return{'type':'format','content':''+Ot(_0x43f459,'*Remove\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['oldValue'])))};}if('default'!=_0x22cb45['newValue'])return{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};let _0x5ab35e=_0x385f7e['head'];for(;_0x5ab35e;){if(_0x5ab35e['data']&&'listType'==_0x5ab35e['data']['key']&&_0x5ab35e['data']['newValue']&&_0x5ab35e['data']['oldValue'])return _0x30a0ff;_0x5ab35e=_0x5ab35e['next'];}return{'type':'format','content':Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,'ELEMENT_'+_0x385f7e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x31bbd9=this['editor'],_0x9b3aaa=_0x31bbd9['locale'];_0x31bbd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43390c=>{if('formatBlock'!=_0x43390c['type'])return;const {data:_0x85535a}=_0x43390c;if(!_0x85535a)return;let _0x21d822,_0x4ddb22;switch(_0x85535a['commandName']){case'listStyle':_0x21d822='*Change\x20to:*\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,Ot(_0x9b3aaa,this['_getTranslationKeyForListStyle'](_0x85535a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21d822=_0x85535a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822)};break;case'listStart':_0x21d822='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,_0x85535a['commandParams'][0x0]['startIndex'])};}return _0x4ddb22;});}_getTranslationKeyForListStyle(_0x3e1841){return'ELEMENT_'+(_0x149319=_0x3e1841,Zt['includes'](_0x149319)?'bulleted':Jt['includes'](_0x149319)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3e1841['toUpperCase']()['replace'](/-/g,'_');var _0x149319;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x548d2a{afterInit(){const _0x2fd17e=this['editor'];_0x2fd17e['commands']['get']('emoji')&&_0x2fd17e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x548d2a{static get requires(){return[Tt];}init(){const _0x580699=this['editor'],_0x5ca5ff=_0x580699['plugins']['get']('TrackChangesEditing'),_0x18ea3a=_0x580699['commands']['get']('enter');_0x5ca5ff['enableCommand']('enter',()=>{_0x580699['model']['change'](_0x288c46=>{const _0x241b1a=_0x580699['model']['document']['selection'],_0x5e03d0=_0x241b1a['getFirstPosition'](),_0x4f6b96=ot['fromRange'](_0x241b1a['getFirstRange']());if(_0x18ea3a['enterBlock'](_0x288c46)){const _0x4bdfb3=_0x580699['model']['createPositionAt'](_0x5e03d0['parent']['nextSibling'],0x0),_0x490b0e=_0x288c46['createRange'](_0x5e03d0,_0x4bdfb3);_0x5ca5ff['markInsertion'](_0x490b0e);}else _0x288c46['setSelection'](_0x288c46['createRange'](_0x4f6b96['end']));_0x4f6b96['detach'](),_0x18ea3a['fire']('afterExecute',{'writer':_0x288c46});});});}},ne=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b3f7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b3f7d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b3f7d['enableCommand']('findNext'),_0x1b3f7d['enableCommand']('findPrevious'),_0x1b3f7d['enableCommand']('replace'),_0x1b3f7d['enableCommand']('replaceAll');}['handleFindCommand'](_0xdac891,_0x40e50d,_0x3c8f67={}){const _0x4fdd49=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xdac891(_0x2f74dc=>{let _0x4376f7=('string'==typeof _0x40e50d?_0x4fdd49['findByTextCallback'](_0x40e50d,_0x3c8f67):_0x40e50d)(_0x2f74dc);Array['isArray'](_0x4376f7)&&(_0x4376f7={'results':_0x4376f7,'searchText':'string'==typeof _0x40e50d?_0x40e50d:''});const _0x15712b=_0x4376f7['results']['filter'](_0x461eaa=>!0x1===this['_isInDeletionRange'](_0x461eaa,_0x2f74dc['item']));return{..._0x4376f7,'results':_0x15712b};},_0x3c8f67);}_isInDeletionRange(_0x2ff009,_0x28162b){const _0x27cf83=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['start']),this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['end']));for(const _0x547745 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27cf83['getIntersection'](_0x547745['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x548d2a{afterInit(){const _0x384ffa=this['editor']['locale'],_0x59e503=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d56d1,commandName:_0x509060}of ie)this['editor']['plugins']['has'](_0x5d56d1)&&_0x59e503['enableDefaultAttributesIntegration'](_0x509060);_0x59e503['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x384ffa,'FORMAT_FONT_SIZE')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x384ffa,'FORMAT_FONT_FAMILY')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x384ffa,'FORMAT_FONT_COLOR')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x384ffa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x43f598=this['editor'],_0x2e0d34=_0x43f598['locale'];_0x43f598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x65f3c8=>{const _0x3a2fb3=_0x2e0d34['t'];if('formatInline'!=_0x65f3c8['type'])return;const {data:_0x18909b}=_0x65f3c8;if(null!=_0x18909b){if('fontSize'==_0x18909b['commandName']){const _0x57fbf5=_0x18909b['commandParams'][0x0]['value'];if(_0x57fbf5){const _0x4b209c=_0x3a2fb3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x22c04=>_0x22c04['model']==_0x57fbf5)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20size:*\x20%0',_0x4b209c)};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18909b['commandName']){const _0xd565c5=_0x18909b['commandParams'][0x0]['value'];return _0xd565c5?{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20family:*\x20%0',_0xd565c5)}:{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18909b['commandName']){const _0x111579=_0x18909b['commandParams'][0x0]['value'];if(_0x111579){const _0x2f4370=_0xb174e6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40a7ac=>_0x40a7ac['model']==_0x111579);let _0x4b4411=_0x111579,_0x10f4b1='';return _0x2f4370&&(_0x4b4411=_0x2f4370['label'],_0x10f4b1=_0x3a2fb3(_0x4b4411)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20color:*\x20%0',_0x10f4b1)['trim'](),'color':{'value':_0x111579,'title':_0x10f4b1||_0x4b4411}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18909b['commandName']){const _0x32a4bf=_0x18909b['commandParams'][0x0]['value'];if(_0x32a4bf){const _0x3a46a1=_0xb174e6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4d372a=>_0x4d372a['model']==_0x32a4bf);let _0x1597b0=_0x32a4bf,_0x4c15f6='';return _0x3a46a1&&(_0x1597b0=_0x3a46a1['label'],_0x4c15f6=_0x3a2fb3(_0x1597b0)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c15f6)['trim'](),'color':{'value':_0x32a4bf,'title':_0x4c15f6||_0x1597b0}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x548d2a{afterInit(){const {plugins:_0x2723c5}=this['editor'];_0x2723c5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2723c5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3a9ce4,plugins:_0x54fcce,commands:_0x71d9c1}=this['editor'],_0x204ba7=_0x54fcce['get']('TrackChangesEditing');_0x71d9c1['get']('footnotesStyle')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x71d9c1['get']('footnotesStart')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStart'),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x53c7c5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4b97a6,commands:_0x5c6def}=this['editor'];_0x5c6def['get']('insertFootnote')&&_0x53c7c5['enableCommand']('insertFootnote'),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2ad76e=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_REF',_0x2ad76e)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x458bf4=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_DEFINITION',_0x458bf4)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1bfb0c=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1bfb0c));}},oe=class extends _0x548d2a{afterInit(){const _0x24283a=this['editor'],_0xfd30e7=_0x24283a['plugins']['get']('TrackChangesEditing'),_0x7c9b66=_0x24283a['commands']['get']('copyFormat'),_0x141a24=_0x24283a['commands']['get']('pasteFormat');_0x7c9b66&&_0x141a24&&(_0xfd30e7['enableDefaultAttributesIntegration']('pasteFormat'),_0xfd30e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4f8957=this['editor'],_0x5cec0a=_0x4f8957['locale'];_0x4f8957['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d37a5=>{if('formatBlock'!=_0x1d37a5['type']&&'formatInline'!=_0x1d37a5['type'])return;const {data:_0x5c72f2}=_0x1d37a5;if(_0x5c72f2&&'pasteFormat'===_0x5c72f2['commandName']){const _0x2fb898=[],_0x163cfb=_0x5c72f2['commandParams'][0x0];for(const [_0x362507,_0x2f6cc0]of Object['entries'](_0x163cfb))_0x2fb898['push'](ae(_0x4f8957,_0x362507,_0x2f6cc0));return _0x2fb898['length']?{'type':'format','content':Ot(_0x5cec0a,'*Set\x20format\x20to:*\x20%0',_0x2fb898['join'](',\x20'))}:{'type':'format','content':Ot(_0x5cec0a,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x4cf625,_0x38a7b1,_0x42fec5){const _0x1d793d=_0x4cf625['locale']['t'],_0x232098=_0x38a7b1['split'](/(?=[A-Z])/)['join']('\x20'),_0x35895d=_0x1d793d(_0x232098['charAt'](0x0)['toUpperCase']()+_0x232098['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42fec5)return _0x35895d;if('fontColor'===_0x38a7b1||'fontBackgroundColor'===_0x38a7b1){const _0x2604ce=_0xb174e6(_0x4cf625['config']['get']('fontColor.colors'))['find'](_0x5dd6eb=>_0x5dd6eb['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x2604ce?_0x1d793d(_0x2604ce['label'])['toLowerCase']():_0x42fec5)+')';}if('fontSize'===_0x38a7b1&&isNaN(parseFloat(_0x42fec5))){const _0x55c909=_0x4cf625['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4cf625['config']['get']('fontSize.options'))['find'](_0x34195e=>_0x34195e['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x55c909?_0x1d793d(_0x55c909['title'])['toLowerCase']():_0x42fec5)+')';}return _0x35895d+'\x20('+_0x42fec5+')';}var ce=class extends _0x548d2a{afterInit(){const _0x962fd1=this['editor'];if(!_0x962fd1['plugins']['has']('GeneralHtmlSupport')||!_0x962fd1['plugins']['has']('DataSchema'))return;const _0x2b2136=_0x962fd1['plugins']['get']('TrackChangesEditing'),_0x5b8c46=_0x962fd1['plugins']['get']('GeneralHtmlSupport'),_0x18be86=_0x962fd1['plugins']['get']('DataSchema'),_0x2f1747=_0x962fd1['locale'],_0x3b443f=new Set(['htmlContent']);for(const _0x3ae361 of _0x18be86['getDefinitionsForView'](/.*/,!0x1)){const _0x24b67a=_0x3ae361['view'],_0x16d49f=_0x5b8c46['getGhsAttributeNameForElement'](_0x24b67a);_0x3b443f['add'](_0x16d49f),!_0x3ae361['isInline']||_0x3ae361['isObject']||'appliesToBlock'in _0x3ae361&&_0x3ae361['appliesToBlock']||_0x2b2136['descriptionFactory']['registerAttributeLabel'](_0x16d49f,_0x24b67a),_0x3ae361['model']['startsWith']('html')&&_0x2b2136['descriptionFactory']['registerElementLabel'](_0x3ae361['model'],_0x2f7144=>Ot(_0x2f1747,'ELEMENT_HTML_TAG',[_0x2f7144,_0x24b67a]));}_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x2f1747,'FORMAT_RAW_HTML_CONTENT')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x2f1747,'FORMAT_HTML_LIST_ITEM')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x2f1747,'FORMAT_HTML_BULLETED_LIST')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x2f1747,'FORMAT_HTML_NUMBERED_LIST')),_0x2b2136['descriptionFactory']['registerDescriptionCallback'](_0x1bdcea=>{if('attribute'!==_0x1bdcea['type'])return;const _0x395115=_0x1bdcea['data'];if(!_0x395115||!_0x3b443f['has'](_0x395115['key']))return;if('htmlContent'===_0x395115['key'])return{'type':'format','content':Ot(_0x2f1747,'*Change\x20%0\x20content*',Ot(_0x2f1747,'ELEMENT_RAW_HTML'))};const {setItems:_0x425f33,removeItems:_0x3aca9a}=function(_0x4624f5,_0x1f28a4,_0x2f9e42){const _0x5011f1=[],_0x6c92a9=[],_0x893cfd=_0x4624f5['styles']??{},_0x1b1ea8=_0x1f28a4['styles']??{};for(const _0x264055 of new Set([...Object['keys'](_0x893cfd),...Object['keys'](_0x1b1ea8)]))_0x893cfd[_0x264055]!==_0x1b1ea8[_0x264055]&&(void 0x0===_0x1b1ea8[_0x264055]?_0x6c92a9['push'](_0x264055):_0x5011f1['push'](_0x264055+'\x20('+_0x1b1ea8[_0x264055]+')'));const _0x47fc23=Ot(_0x2f9e42,'FORMAT_HTML_CLASS'),_0x2121b6=new Set(_0x4624f5['classes']??[]),_0x5d9038=new Set(_0x1f28a4['classes']??[]),_0x45c3ae=[..._0x5d9038]['some'](_0x5266b5=>!_0x2121b6['has'](_0x5266b5)),_0x3aff5c=[..._0x2121b6]['some'](_0x5e3f1c=>!_0x5d9038['has'](_0x5e3f1c));_0x45c3ae&&_0x5011f1['push'](_0x47fc23),_0x3aff5c&&_0x6c92a9['push'](_0x47fc23);const _0x135029=Ot(_0x2f9e42,'FORMAT_HTML_ATTRIBUTE'),_0x4f2024=_0x4624f5['attributes']??{},_0x47bb53=_0x1f28a4['attributes']??{};let _0x7e30e2=!0x1,_0x3d0020=!0x1;for(const _0x5aba11 of new Set([...Object['keys'](_0x4f2024),...Object['keys'](_0x47bb53)]))_0x4f2024[_0x5aba11]!==_0x47bb53[_0x5aba11]&&(void 0x0===_0x47bb53[_0x5aba11]?_0x3d0020=!0x0:_0x7e30e2=!0x0);return _0x7e30e2&&_0x5011f1['push'](_0x135029),_0x3d0020&&_0x6c92a9['push'](_0x135029),{'setItems':_0x5011f1,'removeItems':_0x6c92a9};}(_0x395115['oldValue']??{},_0x395115['newValue']??{},_0x2f1747);if(!_0x425f33['length']&&!_0x3aca9a['length'])return;const _0x18a35d=[];return _0x425f33['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Set\x20format:*\x20%0',_0x425f33['join'](',\x20'))),_0x3aca9a['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Remove\x20format:*\x20%0',_0x3aca9a['join'](',\x20'))),{'type':'format','content':_0x18a35d['join']('\x0a')};});}},le=class extends _0x548d2a{_headingOptions;afterInit(){const _0x41c2a2=this['editor'];if(!_0x41c2a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x41c2a2['config']['get']('heading.options');const _0x14b60b=_0x41c2a2['locale'],_0x4fde14=_0x41c2a2['plugins']['get']('TrackChangesEditing');_0x4fde14['enableDefaultAttributesIntegration']('heading');for(const _0x1c082b of this['_headingOptions'])'paragraph'!=_0x1c082b['model']&&_0x4fde14['descriptionFactory']['registerElementLabel'](_0x1c082b['model'],_0x4f3305=>{const _0xffcb10=this['_getHeadingLevel'](_0x1c082b['model']);return null!==_0xffcb10?_0x50ad2b(_0x4f3305,_0xffcb10):_0x47ab8b(_0x4f3305,_0x1c082b['title']);});function _0x50ad2b(_0xf347ad,_0x673d08){return Ot(_0x14b60b,'ELEMENT_HEADING',[_0xf347ad,_0x673d08]);}function _0x47ab8b(_0x4956f5,_0x5244ed){return Ot(_0x14b60b,'ELEMENT_HEADING_CUSTOM',[_0x4956f5,_0x5244ed]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x872267=this['editor'],_0x4542e1=_0x872267['locale'];function _0x15a3f8(_0x1cb2d5,_0x342678){return Ot(_0x4542e1,'ELEMENT_HEADING_CUSTOM',[_0x1cb2d5,_0x342678]);}_0x872267['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3123d3=>{if('formatBlock'!=_0x3123d3['type'])return;const {data:_0x2378a6}=_0x3123d3;if(_0x2378a6&&'heading'==_0x2378a6['commandName']){const _0x2647e9=_0x2378a6['commandParams'][0x0]['value'],_0x55625e=this['_getHeadingLevel'](_0x2647e9);if(null!==_0x55625e)return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',(_0x36d3ac=0x1,_0x4405a1=_0x55625e,Ot(_0x4542e1,'ELEMENT_HEADING',[_0x36d3ac,_0x4405a1])))};const _0x4f9ea5=this['_headingOptions']['find'](_0x45a08e=>_0x45a08e['model']===_0x2647e9)['title'];return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',_0x15a3f8(0x1,_0x4f9ea5))};}var _0x36d3ac,_0x4405a1;});}_getHeadingLevel(_0x343206){const _0x45412a=_0x343206['match'](/^heading(\d+)/);if(_0x45412a)return _0x45412a[0x1];const _0x4751bd=this['_headingOptions']?.['find'](_0x3ddc75=>_0x3ddc75['model']==_0x343206);if(_0x4751bd&&_0x4751bd['view']){const _0x17d731=_0x4751bd['view'],_0x260a65=(_0x17d731['name']??_0x17d731)['match'](/^h(\d+)/);if(_0x260a65)return _0x260a65[0x1];}return null;}},ue=class extends _0x548d2a{afterInit(){const _0x1391be=this['editor'];if(!_0x1391be['plugins']['has']('HighlightEditing'))return;const _0x1960eb=_0x1391be['plugins']['get']('TrackChangesEditing'),_0x5f1452=_0x1391be['locale'];_0x1960eb['enableDefaultAttributesIntegration']('highlight'),_0x1960eb['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x5f1452,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x101ed1=this['editor'],_0x420e6d=_0x101ed1['locale'];_0x101ed1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253cfc=>{if('formatInline'!=_0x253cfc['type'])return;const {data:_0x1bc3dc}=_0x253cfc;if(_0x1bc3dc&&'highlight'==_0x1bc3dc['commandName']){const _0x46a89e=_0x420e6d['t'],_0x49e3fd=_0x1bc3dc['commandParams'][0x0]['value'];if(_0x49e3fd){const _0x285fac=_0x101ed1['config']['get']('highlight.options')['find'](_0x38325c=>_0x38325c['model']==_0x49e3fd),_0x1e5a98=_0x46a89e(_0x285fac['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x420e6d,'*Set\x20highlight:*\x20%0',_0x1e5a98),'color':{'value':_0x285fac['color'],'title':_0x285fac['title']}};}return{'type':'format','content':Ot(_0x420e6d,'*Remove\x20highlight*',Ot(_0x420e6d,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x548d2a{afterInit(){const _0x28e41b=this['editor'];if(!_0x28e41b['plugins']['has']('HorizontalLineEditing'))return;_0x28e41b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1808c4=_0x28e41b['plugins']['get']('TrackChangesEditing'),_0x4e60e5=_0x28e41b['locale'];_0x1808c4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x43331d=>Ot(_0x4e60e5,'ELEMENT_HORIZONTAL_LINE',_0x43331d));}},he=class extends _0x548d2a{afterInit(){const _0x27bba3=this['editor'];if(!_0x27bba3['plugins']['has']('HtmlEmbed'))return;const _0x287399=_0x27bba3['plugins']['get']('TrackChangesEditing'),_0x46e809=_0x27bba3['locale'];_0x287399['descriptionFactory']['registerElementLabel']('rawHtml',_0x292ea8=>Ot(_0x46e809,'ELEMENT_HTML_EMBED',_0x292ea8)),_0x287399['enableDefaultAttributesIntegration']('htmlEmbed'),_0x287399['descriptionFactory']['registerDescriptionCallback'](_0x23f0aa=>{if('attribute'!=_0x23f0aa['type'])return;const {data:_0x14badc}=_0x23f0aa;if(_0x14badc&&'value'==_0x14badc['key']&&_0x23f0aa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x264bc2=Ot(_0x46e809,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x46e809,'*Change\x20%0\x20content*',_0x264bc2)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5114e2=this['editor'],_0x7a4ac6=_0x5114e2['locale'];_0x5114e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x366d5f=>{if('formatBlock'!=_0x366d5f['type'])return;const {data:_0x5966f9}=_0x366d5f;if(_0x5966f9&&'htmlEmbed'==_0x5966f9['commandName']){const _0x32de10=Ot(_0x7a4ac6,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x7a4ac6,'*Change\x20%0\x20content*',_0x32de10)};}});}},ge=class extends _0x548d2a{afterInit(){const _0x2c4c21=this['editor'];if(!_0x2c4c21['plugins']['has']('ImageEditing'))return;const _0x573cea=_0x2c4c21['plugins']['get']('TrackChangesEditing'),_0x4c642a=_0x2c4c21['plugins']['get']('ImageUtils'),_0x1f797c=_0x2c4c21['locale'];_0x573cea['enableCommand']('insertImage'),_0x573cea['descriptionFactory']['registerElementLabel']('imageBlock',_0x20d06c=>Ot(_0x1f797c,'ELEMENT_IMAGE',_0x20d06c)),_0x573cea['descriptionFactory']['registerElementLabel']('imageInline',_0x48f607=>Ot(_0x1f797c,'ELEMENT_INLINE_IMAGE',_0x48f607)),_0x573cea['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x1f797c,'ELEMENT_CAPTION')),_0x2c4c21['plugins']['has']('ImageUploadEditing')&&_0x573cea['enableCommand']('uploadImage'),_0x2c4c21['plugins']['has']('ImageBlockEditing')&&_0x2c4c21['plugins']['has']('ImageInlineEditing')&&(_0x573cea['enableCommand']('imageTypeInline',(_0x11ee76,_0x1df685)=>{const _0x156f14=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']);_0x2c4c21['model']['change'](()=>{_0x573cea['markBlockFormat'](_0x156f14,{'commandName':'imageTypeInline','commandParams':[_0x1df685]},[],'convertBlockImageToInline');});}),_0x573cea['enableCommand']('imageTypeBlock',(_0x51d2d1,_0x122e11)=>{_0x2c4c21['model']['change'](_0x473d84=>{let _0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x2d7e4a=rt['fromPosition'](_0x1fab70['start'],'toPrevious'),_0x387f34=rt['fromPosition'](_0x1fab70['end'],'toNext');_0x573cea['forceDefaultExecution'](()=>_0x51d2d1(_0x122e11)),_0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x4d4450=_0x473d84['createRange'](_0x2d7e4a,_0x387f34);_0x2d7e4a['detach'](),_0x387f34['detach'](),_0x573cea['markBlockFormat'](_0xec8e80,{'commandName':'imageTypeInline','commandParams':[_0x122e11]},[],'convertInlineImageToBlock'),_0x4d4450['start']['isBefore'](_0x1fab70['start'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x4d4450['start'],_0x1fab70['start']),'convertInlineImageToBlock'),_0x1fab70['end']['isBefore'](_0x4d4450['end'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x1fab70['end'],_0x4d4450['end']),'convertInlineImageToBlock');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x573cea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x38596e])=>{const _0x44bc39=_0x573cea['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41483c=_0x38596e['start'],_0x5f1bea=_0x38596e['end'];const _0x1538f3=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x41483c,'backward'),_0x2c1a41=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x5f1bea,'forward');_0x1538f3['isCollapsed']&&(_0x41483c=_0x1538f3['start']),_0x2c1a41['isCollapsed']&&(_0x5f1bea=_0x2c1a41['end']),_0x44bc39([_0x2c4c21['model']['createRange'](_0x41483c,_0x5f1bea)]);}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3753c2),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3753c2)),_0x2c4c21['plugins']['has']('ImageCaptionEditing')&&(_0x573cea['enableCommand']('toggleImageCaption',(_0x3cae5e,_0x362b1a)=>{const _0x57c621=_0x2c4c21['plugins']['get']('ImageCaptionUtils');let _0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795);_0x2c4c21['model']['change'](()=>{if(_0x4cb16e)return void _0x573cea['markDeletion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e));const _0x176f13=_0x4c642a['isBlockImage'](_0x44795);_0x3cae5e(_0x362b1a),_0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795),_0x573cea['markInsertion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e),_0x176f13?null:'imageCaption');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3753c2));const _0x1e3744=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbe6435(_0x1dfe83,_0x234278){const _0x5cd1dd=_0x1e3744['findIndex'](({type:_0x3985ae,subType:_0xcabe93})=>_0x1dfe83['type']==_0x3985ae&&_0x1dfe83['subType']==_0xcabe93),_0x24004d=_0x1e3744['findIndex'](({type:_0x2ec08b,subType:_0x58855b})=>_0x234278['type']==_0x2ec08b&&_0x234278['subType']==_0x58855b);if(_0x5cd1dd<0x0||_0x24004d<0x0)return!0x1;const _0x82efcc=_0x1dfe83['getFirstRange'](),_0x7087a4=_0x234278['getFirstRange']();if((0x0==_0x5cd1dd||0x1==_0x5cd1dd)&&0x2==_0x24004d&&_0x82efcc['isIntersecting'](_0x7087a4))return!0x0;if(0x2==_0x5cd1dd&&0x3==_0x24004d){const _0x58ff32=_0x573cea['_findSuggestions'](_0x82efcc,'insertion')['filter'](({suggestion:_0x3262ad,meta:_0x4b6607})=>_0x4b6607['isOwn']&&'convertInlineImageToBlock'==_0x3262ad['subType']);if(_0x58ff32['length']>0x1&&_0x7087a4['end']['isEqual'](_0x82efcc['start']))return!0x0;if(0x1==_0x58ff32['length']&&(_0x82efcc['start']['isEqual'](_0x7087a4['end'])||_0x82efcc['end']['isEqual'](_0x7087a4['start'])))return!0x0;}if(0x3==_0x5cd1dd&&0x3==_0x24004d&&_0x82efcc['start']['isBefore'](_0x7087a4['start'])){const _0x537230=_0x82efcc['end']['nodeAfter'],_0x44ed4e=_0x7087a4['start']['nodeBefore'];return _0x4c642a['isBlockImage'](_0x537230)&&_0x537230===_0x44ed4e;}return!0x1;}function _0x3753c2(_0x4cf36c,_0x44eab6){return _0xbe6435(_0x4cf36c,_0x44eab6)?[_0x4cf36c,_0x44eab6]:_0xbe6435(_0x44eab6,_0x4cf36c)?[_0x44eab6,_0x4cf36c]:null;}_0x2c4c21['plugins']['has']('ImageResize')&&(_0x573cea['enableDefaultAttributesIntegration']('resizeImage'),_0x573cea['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x1f797c,'FORMAT_IMAGE_SIZE'))),_0x2c4c21['plugins']['has']('ImageTextAlternativeEditing')&&_0x573cea['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c4c21['plugins']['has']('PictureEditing')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0xf87024=>{if('attribute'!=_0xf87024['type'])return;const {data:_0xd0531f}=_0xf87024;return _0xd0531f&&'sources'==_0xd0531f['key']?{'type':'format','content':''}:void 0x0;}),_0x2c4c21['plugins']['has']('ImageSizeAttributes')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x3f222d=>{if('attribute'!=_0x3f222d['type'])return;const {data:_0x920cc}=_0x3f222d;return!_0x920cc||'width'!=_0x920cc['key']&&'height'!=_0x920cc['key']?void 0x0:{'type':'format','content':''};}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x364cbd=>{if(_0x1e3744['find'](({type:_0x31c7e6,subType:_0x10d08c})=>_0x364cbd['type']==_0x31c7e6&&_0x364cbd['subType']==_0x10d08c))return _0x364cbd['previous']?{}:void 0x0;}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x121536=>{if('insertion'==_0x121536['type']||'deletion'==_0x121536['type']){const _0x120494=_0x121536['getContainedElement']();if(_0x120494&&_0x120494['is']('element','caption'))return{'type':'insertion'==_0x121536['type']?'addObject':'removeObject','element':_0x120494,'quantity':0x1};}}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x18f5a3=>'formatBlock'==_0x18f5a3['type']&&'convertInlineImageToBlock'==_0x18f5a3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18f5a3['type']&&'convertBlockImageToInline'==_0x18f5a3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x2999b7=>{if('attribute'!=_0x2999b7['type'])return;const {data:_0x5e766b}=_0x2999b7;if(!_0x5e766b||'alt'!=_0x5e766b['key'])return;const _0x5cb8a5=_0x5e766b['newValue'];return _0x5cb8a5?{'type':'format','content':Ot(_0x1f797c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cb8a5+'\x22')}:{'type':'format','content':Ot(_0x1f797c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d0f27=this['editor'],_0x3aa520=_0x5d0f27['locale'];_0x5d0f27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8dec29=>{if('formatBlock'!=_0x8dec29['type']&&'formatInline'!=_0x8dec29['type'])return;const {data:_0x1d9ca7}=_0x8dec29;if(_0x1d9ca7){if('imageTextAlternative'==_0x1d9ca7['commandName']){const _0x5d1136=_0x1d9ca7['commandParams'][0x0]['newValue'];return _0x5d1136?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d1136+'\x22')}:{'type':'format','content':Ot(_0x3aa520,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d9ca7['commandName']){const _0x2aa2f9=_0x1d9ca7['commandParams'][0x0]['width'];return _0x2aa2f9?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20width:*\x20%0',_0x2aa2f9)}:{'type':'format','content':Ot(_0x3aa520,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd96960=this['editor']['locale'],_0x49a673=this['editor']['plugins']['get']('TrackChangesEditing');_0x49a673['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49a673['descriptionFactory']['registerDescriptionCallback'](_0x213cea=>{if('attribute'!=_0x213cea['type'])return;const {data:_0x4e878f}=_0x213cea;return _0x4e878f&&'src'==_0x4e878f['key']?_0x4e878f['newValue']&&_0x4e878f['oldValue']?{'type':'format','content':Ot(_0xd96960,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1badfa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x357d9d=this['editor'],_0x414e47=_0x357d9d['locale'];_0x357d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad166=>{if('formatBlock'!=_0x2ad166['type']&&'formatInline'!=_0x2ad166['type'])return;const {data:_0x47b96}=_0x2ad166;return _0x47b96&&'replaceImageSource'==_0x47b96['commandName']?{'type':'format','content':Ot(_0x414e47,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x548d2a{afterInit(){const _0x403f10=this['editor'];if(!_0x403f10['plugins']['has']('ImageStyleEditing'))return;const _0x422422=_0x403f10['plugins']['get']('TrackChangesEditing'),_0x205daa=_0x403f10['plugins']['get']('ImageUtils'),_0x48d719={};_0x422422['enableCommand']('imageStyle',(_0x5d74f0,_0x4c6f99)=>{const _0x2c0b1a=_0x403f10['plugins']['get']('Users')['me'],_0x1cfbc1=_0x403f10['commands']['get']('imageStyle');let _0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x2b0da5=_0x1cfbc1['value'];if(_0x2b0da5==_0x4c6f99['value'])return;if(_0x4c6f99['value']&&_0x205daa['isInlineImage'](_0x4589c2)&&!_0x1cfbc1['isStyleEnabled'](_0x4c6f99['value']))return;const _0x16edba={'commandName':'imageStyle','commandParams':[_0x4c6f99],'formatGroupId':_0x1dfb7c()};_0x403f10['model']['change'](()=>{if(_0x422422['getSuggestions']()['filter'](_0x49e67f=>_0x49e67f['isInContent']&&_0x2c0b1a==_0x49e67f['author']&&('formatBlock'==_0x49e67f['type']||'formatInline'==_0x49e67f['type'])&&('imageStylePreApply'==_0x49e67f['subType']||'imageStylePostApply'==_0x49e67f['subType'])&&_0x49e67f['getFirstRange']()['isEqual'](_0x3ef0d2))['forEach'](_0x369eae=>_0x422422['discardSuggestion'](_0x369eae['head'])),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x1cfbc1['refresh'](),_0x403f10['commands']['get']('imageTypeInline')['refresh'](),_0x403f10['commands']['get']('imageTypeBlock')['refresh'](),_0x2b0da5=_0x1cfbc1['value'],_0x2b0da5!=_0x4c6f99['value'])return _0x205daa['isInlineImage'](_0x4589c2)&&_0x1cfbc1['shouldConvertImageType'](_0x4c6f99['value'],_0x4589c2)?(_0x5d74f0({..._0x4c6f99,'setImageSizes':!0x1}),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),void _0x422422['markBlockFormat'](_0x4589c2,{..._0x16edba,'commandReversedParams':[{'value':_0x2b0da5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x205daa['isBlockImage'](_0x4589c2)?_0x422422['markBlockFormat'](_0x4589c2,_0x16edba,[],'imageStylePostApply'):_0x422422['markInlineFormat'](_0x3ef0d2,_0x16edba,'imageStylePostApply'));});});for(const _0x42ff1b of _0x403f10['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48d719[_0x42ff1b['name']]=_0x42ff1b['title']['toLowerCase']();_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x486918])=>{_0x205daa['setImageNaturalSizeAttributes'](_0x486918['getContainedElement']());}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2f84d5,_0x5240fc)=>{_0x422422['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2f84d5,{'commandName':_0x5240fc['commandName'],'commandParams':_0x5240fc['commandReversedParams']});}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58949f,_0x9d7f50){return _0x51fb05(_0x58949f,_0x9d7f50)?[_0x58949f,_0x9d7f50]:_0x51fb05(_0x9d7f50,_0x58949f)?[_0x9d7f50,_0x58949f]:null;});const _0x149bcc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x51fb05(_0x49e43c,_0x2a3e79){const _0xf82195=_0x149bcc['findIndex'](({type:_0x2f8fc9,subType:_0x23e74f})=>_0x49e43c['type']==_0x2f8fc9&&_0x49e43c['subType']==_0x23e74f),_0x47de2e=_0x149bcc['findIndex'](({type:_0x22d178,subType:_0x527706})=>_0x2a3e79['type']==_0x22d178&&_0x2a3e79['subType']==_0x527706);if(_0xf82195<0x0||_0x47de2e<0x0)return!0x1;const _0x3f612c=_0x49e43c['getFirstRange'](),_0x53c6c9=_0x2a3e79['getFirstRange']();if((0x0==_0xf82195||0x1==_0xf82195)&&0x2==_0x47de2e&&_0x3f612c['isIntersecting'](_0x53c6c9))return!0x0;if(0x2==_0xf82195&&0x3==_0x47de2e){const _0x2e0d66=_0x422422['_findSuggestions'](_0x3f612c,'insertion')['filter'](({suggestion:_0x5d9fe3,meta:_0x44cf28})=>_0x44cf28['isOwn']&&'convertInlineImageToBlock'==_0x5d9fe3['subType']);if(_0x2e0d66['length']>0x1&&_0x53c6c9['end']['isEqual'](_0x3f612c['start']))return!0x0;if(0x1==_0x2e0d66['length']&&(_0x3f612c['start']['isEqual'](_0x53c6c9['end'])||_0x3f612c['end']['isEqual'](_0x53c6c9['start'])))return!0x0;}if(0x3==_0xf82195&&0x3==_0x47de2e&&_0x3f612c['start']['isBefore'](_0x53c6c9['start'])){const _0x595def=_0x3f612c['end']['nodeAfter'],_0x40b1ef=_0x53c6c9['start']['nodeBefore'];return _0x205daa['isBlockImage'](_0x595def)&&_0x595def===_0x40b1ef;}return!0x1;}_0x403f10['model']['document']['registerPostFixer'](()=>{let _0x3a49a1=!0x1;const _0x485a82=Array['from'](_0x403f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56ca9d,data:_0x2ad460}of _0x485a82){const {group:_0x2bbe28,type:_0x539acf,subType:_0x516b72,id:_0x13ca2b}=et(_0x56ca9d);if('suggestion'==_0x2bbe28&&_0x422422['hasSuggestion'](_0x13ca2b)){if('formatBlock'==_0x539acf&&('imageStylePreApply'==_0x516b72||'imageStylePostApply'==_0x516b72)){const _0x1d0786=_0x422422['getSuggestion'](_0x13ca2b);if(_0x2ad460['newRange']){const _0x56164b=_0x1d0786['getFirstRange']()['getContainedElement']();if(_0x205daa['isBlockImage'](_0x56164b))continue;_0x422422['discardSuggestion'](_0x1d0786),_0x3a49a1=!0x0;}}if('insertion'==_0x539acf&&'imageCaption'==_0x516b72&&!_0x2ad460['newRange']){const _0x507a81=_0x422422['getSuggestion'](_0x13ca2b);_0x507a81['next']&&_0x507a81['next']['isInContent']&&(_0x422422['discardSuggestion'](_0x507a81['next']),_0x3a49a1=!0x0);}}}return _0x3a49a1;}),this['_registerLegacyDescription'](_0x48d719);}_registerLegacyDescription(_0xf005ed){const _0x27a93f=this['editor'],_0x3e0377=_0x27a93f['locale'];_0x27a93f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244e50=>{if('formatBlock'!=_0x244e50['type']&&'formatInline'!=_0x244e50['type'])return;const {data:_0x561170}=_0x244e50;if(!_0x561170||'imageStyle'!=_0x561170['commandName'])return;const _0x1ac19b=_0x561170['commandParams'][0x0]['value'];return _0x2756cb('side'===_0x1ac19b?Ot(_0x3e0377,'FORMAT_SIDE_IMAGE'):_0xf005ed[_0x1ac19b]||_0x1ac19b);function _0x2756cb(_0x1ba56a){return{'type':'format','content':Ot(_0x3e0377,'*Format:*\x20%0',_0x1ba56a)};}});}},Ee=class extends _0x548d2a{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x153449){super(_0x153449),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x3e5424=this['editor'],_0x3843bf=_0x3e5424['commands']['get']('importWord'),_0x5060f4=_0x3e5424['commands']['get']('trackChanges');_0x3843bf&&(_0x3843bf['on']('execute',(_0x6a912a,[,_0x45d65b])=>{this['_trackChangesValueDuringImport']=_0x5060f4['value'],_0x45d65b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3843bf,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3843bf,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5060f4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e5424['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x31db78,_0x47fdb5){const {suggestions:_0x346660}=_0x47fdb5,_0x3e32c8=this['editor']['commands']['get']('trackChanges'),_0x30e675=_0x3e32c8['value'];this['_trackChangesValueDuringImport']!==_0x30e675&&(_0x3e32c8['execute'](),this['_trackChangesExecuted']=!0x0),_0x346660&&_0x346660['forEach'](({id:_0x1d3bf6,type:_0xdccc7a,author:_0x44ffce,created_at:_0x5654e1})=>{const _0x55b1b4={'id':_0x1d3bf6,'type':_0xdccc7a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x44ffce,'createdAt':_0x5654e1?new Date(_0x5654e1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x55b1b4);});}},Te=class extends _0x548d2a{afterInit(){const _0x5b0e84=this['editor'],_0x44dd58=_0x5b0e84['plugins']['get']('TrackChangesEditing');if(_0x5b0e84['plugins']['has']('IndentEditing')&&(_0x44dd58['enableCommand']('indent'),_0x44dd58['enableCommand']('outdent')),_0x5b0e84['plugins']['has']('IndentBlock')){for(const _0x327038 of['indentBlock','outdentBlock'])_0x44dd58['enableDefaultAttributesIntegration'](_0x327038);if(_0x5b0e84['plugins']['has']('ListEditing')){for(const _0x3513a3 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x44dd58['enableDefaultAttributesIntegration'](_0x3513a3);}}const _0x708e73=_0x5b0e84['locale'];_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x708e73,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x19c8d3=this['editor'],_0x2f8987=_0x19c8d3['locale'],_0x39309b=_0x19c8d3['plugins']['get']('TrackChangesEditing');_0x39309b['descriptionFactory']['registerDescriptionCallback'](_0x4ee217=>{if('formatBlock'!=_0x4ee217['type'])return;const {data:_0x14a493}=_0x4ee217;if(!_0x14a493)return;if('indentBlock'!=_0x14a493['commandName']&&'outdentBlock'!=_0x14a493['commandName'])return;const _0x27a4bc=_0x4ee217['getItems']()[0x0],_0x432ebd=_0x39309b['descriptionFactory']['getItemLabel'](_0x27a4bc);return'indentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Indent:*\x20%0',_0x432ebd)}:'outdentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Outdent:*\x20%0',_0x432ebd)}:void 0x0;});}},_e=class extends _0x548d2a{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x548d2a{afterInit(){const _0x49ad6a=this['editor'];if(!_0x49ad6a['plugins']['has']('LinkEditing'))return;const _0x32a288=_0x49ad6a['plugins']['get']('TrackChangesEditing'),_0x590dad=_0x49ad6a['commands']['get']('link');_0x32a288['enableDefaultAttributesIntegration']('link'),_0x32a288['enableDefaultAttributesIntegration']('unlink');for(const _0x110981 of _0x590dad['manualDecorators'])_0x32a288['descriptionFactory']['registerAttributeLabel'](_0x110981['id'],'link\x20('+_0x110981['label']['toLowerCase']()+')');_0x32a288['descriptionFactory']['registerDescriptionCallback'](_0x2b31bb=>{if('attribute'!=_0x2b31bb['type'])return;const {data:_0x45e92b}=_0x2b31bb;if(!_0x45e92b||'linkHref'!=_0x45e92b['key'])return;const _0x56e084=_0x45e92b['newValue'],_0x580000=_0x49ad6a['locale'];return{'type':'format','content':null==_0x56e084?Ot(_0x580000,'*Remove\x20link*'):Ot(_0x580000,'*Set\x20link:*\x20%0','\x22'+_0x56e084+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x47d5c5=this['editor'],_0x1af4e1=_0x47d5c5['locale'];_0x47d5c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52202e=>{if('formatInline'!=_0x52202e['type'])return;const {data:_0x42035d}=_0x52202e;if(_0x42035d){if('link'==_0x42035d['commandName']){const _0x5661b8=_0x42035d['commandParams'][0x0];return{'type':'format','content':Ot(_0x1af4e1,'*Set\x20link:*\x20%0','\x22'+_0x5661b8+'\x22')};}return'unlink'==_0x42035d['commandName']?{'type':'format','content':Ot(_0x1af4e1,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x548d2a{afterInit(){const _0x41da23=this['editor'],_0x1cf0f8=_0x41da23['locale'];if(!_0x41da23['plugins']['has']('LegacyListEditing'))return;const _0x40b667=_0x41da23['plugins']['get']('TrackChangesEditing'),_0x52fbe6=_0x41da23['plugins']['has']('LegacyTodoListEditing');function _0x329006(_0x4020b0){return()=>{const _0x44fb61=_0x41da23['model']['document']['selection'],_0x16a51f=_0x41da23['commands']['get'](_0x4020b0);if(_0x16a51f['value'])return void _0x41da23['execute']('paragraph',{});const _0xab2105=_0x4020b0['slice'](0x0,-0x4),_0x3e6325=function(_0x5ba448,_0xddcaeb,_0x28508a){let _0x52614a=Array['from'](_0x5ba448)['filter'](_0x586e19=>function(_0x8129d4,_0x5ded9f){return _0x5ded9f['checkChild'](_0x8129d4['parent'],'listItem')&&!_0x5ded9f['isObject'](_0x8129d4);}(_0x586e19,_0x28508a));_0x52614a=_0x52614a['filter'](_0x2de6ba=>!_0x2de6ba['is']('element','listItem')||_0x2de6ba['getAttribute']('listType')!=_0xddcaeb);const _0x334539=new Set();for(const _0x44ca5d of _0x52614a)_0x44ca5d['is']('element','listItem')?_0x334539['add'](Ie(_0x44ca5d)):_0x334539['add'](_0x44ca5d);return Array['from'](_0x334539);}(_0x44fb61['getSelectedBlocks'](),_0xab2105,_0x41da23['model']['schema']);_0x41da23['model']['change'](()=>{for(const _0x40d64c of _0x3e6325)_0x40b667['markBlockFormat'](_0x40d64c,{'commandName':_0x4020b0,'commandParams':[{'forceValue':!_0x16a51f['value']}],'formatGroupId':'blockName'},Ae(_0x40d64c));});};}function _0x53c53e(_0x3ebe21){return()=>{const _0x3b69b4=function(_0x34f65c){let _0x2ec0d3=Array['from'](_0x34f65c);const _0x1d7a9f=_0x2ec0d3['findIndex'](_0x3a23b0=>'listItem'!=_0x3a23b0['name']);return _0x1d7a9f>-0x1&&(_0x2ec0d3=_0x2ec0d3['slice'](0x0,_0x1d7a9f)),_0x2ec0d3;}(_0x41da23['model']['document']['selection']['getSelectedBlocks']()),_0x5ebf6d=_0x41da23['model']['createRange'](_0x41da23['model']['createPositionAt'](_0x3b69b4[0x0],'before'),_0x41da23['model']['createPositionAt'](_0x3b69b4[_0x3b69b4['length']-0x1],'end'));_0x41da23['model']['change'](()=>{_0x40b667['markBlockFormat'](_0x5ebf6d,{'commandName':_0x3ebe21,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ab2d4){const _0x58c6c8=new Set();for(const _0x5385c8 of _0x4ab2d4){let _0x1ec2a3=_0x5385c8['nextSibling'];for(;_0x1ec2a3&&_0x1ec2a3['getAttribute']('listIndent')>_0x5385c8['getAttribute']('listIndent');)_0x58c6c8['add'](_0x1ec2a3),_0x1ec2a3=_0x1ec2a3['nextSibling'];}return Array['from'](_0x58c6c8);}(_0x3b69b4));});};}_0x40b667['enableCommand']('numberedList',_0x329006('numberedList')),_0x40b667['enableCommand']('bulletedList',_0x329006('bulletedList')),_0x52fbe6&&_0x40b667['enableCommand']('todoList',_0x329006('todoList')),_0x40b667['enableCommand']('indentList',_0x53c53e('indentList')),_0x40b667['enableCommand']('outdentList',_0x53c53e('outdentList')),_0x52fbe6&&_0x40b667['enableCommand']('checkTodoList',()=>{const _0x28a193=_0x41da23['commands']['get']('checkTodoList'),_0x2db001=Array['from'](_0x28a193['_selectedElements']);_0x2db001['filter'](_0x1e6852=>_0x1e6852['getAttribute']('todoListChecked')!=_0x28a193['value']),_0x41da23['model']['change'](()=>{for(const _0x3d3a84 of _0x2db001)_0x40b667['markBlockFormat'](_0x3d3a84,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x28a193['value']}]});});}),_0x40b667['descriptionFactory']['registerElementLabel']('listItem',_0xc36602=>Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM',_0xc36602)),_0x40b667['descriptionFactory']['registerDescriptionCallback'](_0x6bf2fa=>{if('formatBlock'!=_0x6bf2fa['type']&&'formatInline'!=_0x6bf2fa['type'])return;const {data:_0xb621d4}=_0x6bf2fa;if(_0xb621d4){if('numberedList'==_0xb621d4['commandName']||'bulletedList'==_0xb621d4['commandName']||'todoList'==_0xb621d4['commandName'])switch(_0xb621d4['commandName']['replace']('List','')){case'bulleted':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Indent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Outdent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb621d4['commandName'])return _0xb621d4['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1cf0f8,'*Check\x20item*')}:{'type':'format','content':Ot(_0x1cf0f8,'*Uncheck\x20item*')};}function _0x3369b3(_0x3e0ed1){return{'type':'format','content':Ot(_0x1cf0f8,'*Change\x20to:*\x20%0',_0x3e0ed1)};}});}};function Ie(_0x94e304){const _0x2f0993=_0x94e304['getAttribute']('listIndent');if(0x0==_0x2f0993)return _0x94e304;let _0x204f46=_0x94e304;for(;_0x94e304['previousSibling']&&_0x94e304['previousSibling']['is']('element','listItem');){const _0x1fe1b5=_0x94e304['previousSibling']['getAttribute']('listIndent');if(_0x1fe1b5==_0x2f0993)_0x204f46=_0x94e304['previousSibling'];else{if(_0x1fe1b5<_0x2f0993)break;}_0x94e304=_0x94e304['previousSibling'];}return _0x204f46;}function Ae(_0x44ba67){const _0x57df16=[];if(_0x44ba67['is']('element','listItem')&&_0x44ba67['getAttribute']('listIndent')>0x0){let _0x290c0c=_0x44ba67['nextSibling'];for(;_0x290c0c&&'listItem'==_0x290c0c['name']&&_0x290c0c['getAttribute']('listIndent')==_0x44ba67['getAttribute']('listIndent');)_0x57df16['push'](_0x290c0c),_0x290c0c=_0x290c0c['nextSibling'];}return _0x57df16;}var be=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36cc63=this['editor']['config']['get']('list.properties'),_0x4d69bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x36cc63['styles']&&_0x4d69bc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36cc63['reversed']&&_0x4d69bc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36cc63['startIndex']&&_0x4d69bc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d69bc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x17fb03,_0x38a89a={}){const _0x4ffe9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28fcd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4ffe9d['markMultiRangeBlockFormat'](_0x28fcd4,{'commandName':'listStyle','commandParams':[{'type':_0x38a89a['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x478103,_0xd5aa29={}){const _0xad990b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f75da=this['_getSuggestionBlocks'](_0x3b68cc=>_0x3b68cc['is']('element','listItem')&&'numbered'===_0x3b68cc['getAttribute']('listType'));if(_0x1f75da['length']<0x1)return;const _0x501c65=_0x1f75da['map'](_0x4d02f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d02f9,'before'),this['editor']['model']['createPositionAt'](_0x4d02f9,0x0)));this['editor']['model']['change'](()=>{_0xad990b['markMultiRangeBlockFormat'](_0x501c65,{'commandName':'listReversed','commandParams':[{'reversed':_0xd5aa29['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x48a2c9,_0x581565={}){const _0x4ce3ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa357=this['_getSuggestionBlocks'](_0x53c674=>_0x53c674['is']('element','listItem')&&'numbered'===_0x53c674['getAttribute']('listType'));if(_0x1aa357['length']<0x1)return;const _0x2e9151=_0x1aa357['map'](_0x529b37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x529b37,'before'),this['editor']['model']['createPositionAt'](_0x529b37,0x0)));this['editor']['model']['change'](()=>{_0x4ce3ea['markMultiRangeBlockFormat'](_0x2e9151,{'commandName':'listStart','commandParams':[{'startIndex':_0x581565['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x55a45c){if('formatBlock'!=_0x55a45c['type']&&'formatInline'!=_0x55a45c['type'])return;const _0x2b7bd9=this['editor']['locale'],{data:_0x4e69f1}=_0x55a45c;if(!_0x4e69f1)return;let _0x4afab0,_0x4ec52f;switch(_0x4e69f1['commandName']){case'listStyle':_0x4afab0='*Change\x20to:*\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,Ot(_0x2b7bd9,this['_getTranslationKeyForListStyle'](_0x4e69f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4afab0=_0x4e69f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0)};break;case'listStart':_0x4afab0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,_0x4e69f1['commandParams'][0x0]['startIndex'])};}return _0x4ec52f;}_getSuggestionBlocksForListStyle(){const _0x587c8f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d2046=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1d2046[0x0]?.['is']('element','listItem')&&_0x1d2046['unshift'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1d2046[_0x1d2046['length']-0x1]?.['is']('element','listItem')&&_0x1d2046['push'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1d2046=[...new Set(_0x1d2046)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1d2046=_0x1d2046['filter'](_0x3a68e9=>_0x3a68e9['is']('element','listItem'))),_0x1d2046;}_getSuggestionBlocks(_0x1b596b){const _0xf3ef50=this['editor']['plugins']['get']('LegacyListUtils');let _0x213038=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b596b)['map'](_0x56b519=>{const _0x494efe=this['editor']['model']['createPositionAt'](_0x56b519,0x0);return[..._0xf3ef50['getSiblingNodes'](_0x494efe,'backward'),..._0xf3ef50['getSiblingNodes'](_0x494efe,'forward')];})['flat']();return _0x213038=[...new Set(_0x213038)],_0x213038;}_getTranslationKeyForListStyle(_0x187db8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x187db8)||'default')['toUpperCase']()+'_LIST_'+_0x187db8['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x548d2a{afterInit(){const _0x16ce5c=this['editor'];if(!_0x16ce5c['plugins']['has']('MediaEmbedEditing'))return;const _0x362284=_0x16ce5c['plugins']['get']('TrackChangesEditing'),_0x3df05f=_0x16ce5c['locale'];_0x362284['enableCommand']('mediaEmbed'),_0x362284['descriptionFactory']['registerElementLabel']('media',_0x298c2c=>Ot(_0x3df05f,'ELEMENT_MEDIA',_0x298c2c)),_0x16ce5c['plugins']['has']('MediaEmbedResizeEditing')&&(_0x362284['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x362284['descriptionFactory']['registerDescriptionCallback'](_0x5bb233=>{if('attribute'!=_0x5bb233['type'])return;const {data:_0x5d8ddb}=_0x5bb233;if(!_0x5d8ddb||'resizedWidth'!=_0x5d8ddb['key'])return;const _0xc193e=_0x5bb233['getContainedElement']();if(!_0xc193e||!_0xc193e['is']('element','media'))return;const _0x2cd107=Ot(_0x3df05f,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x3df05f,'*Set\x20format:*\x20%0',_0x2cd107)};}));}},ke=class extends _0x548d2a{afterInit(){const _0xfb57de=this['editor'];if(!_0xfb57de['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5d58c6=_0xfb57de['plugins']['get']('TrackChangesEditing'),_0x9aeb64=_0xfb57de['locale'],_0x5d4994=_0xfb57de['plugins']['get']('MediaEmbedStyleEditing'),_0x1d6599={};for(const _0x26288e of _0x5d4994['normalizedStyles'])_0x1d6599[_0x26288e['name']]=_0x26288e['title']['toLowerCase']();const _0x4a1842=_0x5d4994['normalizedStyles']['find'](_0xf8cae6=>_0xf8cae6['isDefault'])?.['name'];_0x5d58c6['enableCommand']('mediaStyle',(_0x5c3999,_0x2b2695)=>{const _0x59562d=_0xfb57de['plugins']['get']('Users')['me'],_0x3f2d82=_0xfb57de['commands']['get']('mediaStyle'),_0x533f37=function(_0x4abf79){const _0x2bb4dd=_0x4abf79['model']['document']['selection']['getSelectedElement']();return _0x2bb4dd&&_0x2bb4dd['is']('element','media')?_0x2bb4dd:null;}(_0xfb57de);if(!_0x533f37)return;const _0x46bc51=_0xfb57de['model']['createRangeOn'](_0x533f37);let _0x3244f6=_0x3f2d82['value'];if(_0x3244f6==_0x2b2695['value'])return;const _0x57a0ae={'commandName':'mediaStyle','commandParams':[_0x2b2695],'formatGroupId':_0x1dfb7c()};_0xfb57de['model']['change'](()=>{_0x5d58c6['getSuggestions']()['filter'](_0x3ce742=>_0x3ce742['isInContent']&&_0x59562d==_0x3ce742['author']&&'formatBlock'==_0x3ce742['type']&&'mediaStylePostApply'==_0x3ce742['subType']&&_0x3ce742['getFirstRange']()['isEqual'](_0x46bc51))['forEach'](_0x4d0591=>_0x5d58c6['discardSuggestion'](_0x4d0591['head'])),_0x3f2d82['refresh'](),_0x3244f6=_0x3f2d82['value'],_0x3244f6!=_0x2b2695['value']&&_0x5d58c6['markBlockFormat'](_0x533f37,{..._0x57a0ae,'commandReversedParams':[{'value':'string'==typeof _0x3244f6?_0x3244f6:null}]},[],'mediaStylePostApply');});}),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5796b3,_0x42fb16)=>{_0x5d58c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5796b3,{'commandName':_0x42fb16['commandName'],'commandParams':_0x42fb16['commandReversedParams']});}),_0x5d58c6['descriptionFactory']['registerDescriptionCallback'](_0x30be7d=>{if('formatBlock'!=_0x30be7d['type'])return;const {data:_0x527247}=_0x30be7d;if(!_0x527247||'mediaStyle'!=_0x527247['commandName'])return;const _0xc907c8=_0x527247['commandParams'][0x0]['value']||_0x4a1842;if(!_0xc907c8)return;const _0x13b988=_0x1d6599[_0xc907c8]||_0xc907c8;return{'type':'format','content':Ot(_0x9aeb64,'*Format:*\x20%0',_0x13b988)};});}},Re=class extends _0x548d2a{afterInit(){const _0x3f7f62=this['editor'];_0x3f7f62['plugins']['has']('MentionEditing')&&_0x3f7f62['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x548d2a{afterInit(){const _0xa0d38d=this['editor'];if(!_0xa0d38d['plugins']['has']('MergeFieldsEditing'))return;const _0x35ce95=_0xa0d38d['plugins']['get']('TrackChangesEditing'),_0x4b0ccd=_0xa0d38d['locale'];_0x35ce95['enableCommand']('insertMergeField'),_0x35ce95['enableCommand']('insertMergeFieldBlock'),_0x35ce95['enableCommand']('insertMergeFieldImage'),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeField',_0xfd5c5e=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0xfd5c5e)),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4910c1=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0x4910c1)),_0x35ce95['descriptionFactory']['registerDescriptionCallback'](_0xa452d6=>{if('insertion'!=_0xa452d6['type']&&'deletion'!=_0xa452d6['type'])return;const _0x3b9015=_0xa452d6['getContainedElement']();if(null==_0x3b9015)return;const _0x5d5034=_0xa0d38d['plugins']['get']('MergeFieldsEditing');let _0x4717d4;switch(_0x5d5034['getMergeFieldType'](_0x3b9015)){case null:return;case'image':{const _0x20a209=_0x5d5034['unwrapAffixes'](_0x3b9015['getAttribute']('src'));_0x4717d4=_0x5d5034['getLabel'](_0x20a209)||_0x20a209;break;}default:{const _0x47bd4d=_0x3b9015['getAttribute']('id');_0x4717d4=_0x5d5034['getLabel'](_0x47bd4d)||_0x47bd4d;break;}}return'insertion'==_0xa452d6['type']?{'type':'insertion','content':Ot(_0x4b0ccd,'*Insert:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x4b0ccd,'*Remove:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x548d2a{afterInit(){const _0x360b48=this['editor'],_0x45b1db=_0x360b48['plugins']['get']('TrackChangesEditing');_0x360b48['plugins']['has']('MultiLevelList')&&(_0x45b1db['enableDefaultAttributesIntegration']('multiLevelList'),_0x45b1db['descriptionFactory']['registerDescriptionCallback'](_0x4baad7=>this['handleDescriptions'](_0x4baad7)));}handleDescriptions(_0x483e6f){const _0x30f067=this['editor']['locale'],{data:_0x59bd73}=_0x483e6f,_0x59440d={'type':'format','content':''};if(_0x59bd73&&'listMarkerStyle'==_0x59bd73['key']){if(!_0x59bd73['oldValue'])return{'type':'format','content':Ot(_0x30f067,'*Set\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['newValue']+')'};if(!_0x59bd73['newValue']){let _0x35a70a=_0x483e6f['head'];for(;_0x35a70a;){if(_0x35a70a['data']&&'listType'==_0x35a70a['data']['key']&&_0x35a70a['data']['newValue'])return _0x59440d;_0x35a70a=_0x35a70a['next'];}return{'type':'format','content':Ot(_0x30f067,'*Remove\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['oldValue']+')'};}}}},Se=class extends _0x548d2a{afterInit(){const _0x15f33c=this['editor'];if(!_0x15f33c['plugins']['has']('PageBreakEditing'))return;_0x15f33c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1ece5c=_0x15f33c['plugins']['get']('TrackChangesEditing'),_0x3c2a95=_0x15f33c['locale'];_0x1ece5c['descriptionFactory']['registerElementLabel']('pageBreak',_0x641b94=>Ot(_0x3c2a95,'ELEMENT_PAGE_BREAK',_0x641b94));}},Me=class extends _0x548d2a{afterInit(){const _0x2ac46a=this['editor'];if(!_0x2ac46a['plugins']['has']('Paragraph'))return;const _0x3fc95e=_0x2ac46a['locale'],_0x4c9658=_0x2ac46a['plugins']['get']('TrackChangesEditing');_0x4c9658['descriptionFactory']['registerElementLabel']('paragraph',_0xc7ed4d=>Ot(_0x3fc95e,'ELEMENT_PARAGRAPH',_0xc7ed4d)),_0x4c9658['enableDefaultAttributesIntegration']('paragraph'),_0x4c9658['enableCommand']('insertParagraph');const _0x1ae580=_0x4c9658['descriptionFactory'];_0x1ae580['registerDescriptionCallback'](_0xd4387a=>{if('insertion'!==_0xd4387a['type'])return;const {start:_0x45de6b,end:_0x13dec6}=_0xd4387a['getFirstRange']();if(!_0x45de6b['isTouching'](_0x13dec6)||!_0x45de6b['nodeAfter'])return;const _0x4e6100=_0x2ac46a['model']['schema'],_0x33cda0=_0x45de6b['nodeAfter'];return _0x4e6100['isBlock'](_0x33cda0)&&!_0x4e6100['isLimit'](_0x33cda0)&&_0x4e6100['checkChild'](_0x33cda0,'$text')?{'type':'insertion','content':Ot(_0x3fc95e,'*Insert:*\x20%0',_0x1ae580['getItemLabel'](_0x33cda0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d138c=this['editor'],_0x143446=_0x1d138c['locale'];_0x1d138c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279c5a=>{if('formatBlock'!=_0x279c5a['type'])return;const {data:_0x3f74db}=_0x279c5a;return _0x3f74db&&'paragraph'==_0x3f74db['commandName']?{'type':'format','content':Ot(_0x143446,'*Change\x20to:*\x20%0',Ot(_0x143446,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x548d2a{afterInit(){const _0x154446=this['editor'];_0x154446['commands']['get']('replaceSource')&&_0x154446['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x548d2a{afterInit(){const _0x1da2d4=this['editor'];_0x1da2d4['plugins']['has']('RemoveFormatEditing')&&(_0x1da2d4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4a756a=this['editor'];_0x4a756a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466f2d=>{if('formatBlock'!=_0x466f2d['type']&&'formatInline'!=_0x466f2d['type'])return;const {data:_0x3bb190}=_0x466f2d;return _0x3bb190&&'removeFormat'==_0x3bb190['commandName']?{'type':'format','content':Ot(_0x4a756a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x548d2a{afterInit(){const _0x17ccd4=this['editor'];if(!_0x17ccd4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x537477=_0x17ccd4['plugins']['get']('TrackChangesEditing');_0x537477['enableCommand']('goToPreviousRestrictedEditingException'),_0x537477['enableCommand']('goToNextRestrictedEditingException');const _0x5618b4=_0x17ccd4['plugins']['get']('RestrictedEditingModeEditing');_0x5618b4['enableCommand']('trackChanges'),_0x5618b4['enableCommand']('acceptSuggestion'),_0x5618b4['enableCommand']('discardSuggestion'),_0x5618b4['enableCommand']('acceptAllSuggestions'),_0x5618b4['enableCommand']('discardAllSuggestions'),_0x5618b4['enableCommand']('acceptSelectedSuggestions'),_0x5618b4['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x548d2a{afterInit(){const _0x4f85ab=this['editor'];if(!_0x4f85ab['plugins']['has']('ShiftEnter'))return;const _0x288cef=_0x4f85ab['plugins']['get']('TrackChangesEditing');_0x288cef['enableCommand']('shiftEnter'),_0x288cef['descriptionFactory']['registerElementLabel']('softBreak',_0x3c8907=>Ot(_0x4f85ab['locale'],'ELEMENT_LINE_BREAK',_0x3c8907));}};function ve(_0xc80e90,_0x592af9,_0x178058){const _0x2f6932=[];for(const _0x1c8e06 of _0x592af9['getItems']())_0x1c8e06['hasAttribute'](_0xc80e90)&&_0x2f6932['push'](_0x178058['createRangeOn'](_0x1c8e06));return _0x2f6932;}var De=class extends _0x548d2a{afterInit(){const _0x2d8ca9=this['editor'],_0x16e04e=_0x2d8ca9['plugins']['get']('TrackChangesEditing');_0x2d8ca9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x16e04e['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xfeba7c=this['editor'],_0x2dfbf1=_0xfeba7c['model'],_0x1b3701=_0xfeba7c['locale'],_0x4454a5=_0xfeba7c['plugins']['get']('TrackChangesEditing'),_0x48ede='restrictedEditingException',_0x3264cb=_0xfeba7c['commands']['get'](_0x48ede);_0x4454a5['enableCommand'](_0x48ede,(_0x1b32fe,_0x1bb43e={})=>{const _0x295527=_0x2dfbf1['document']['selection'];if(_0x295527['isCollapsed'])return void _0x1b32fe(_0x1bb43e);const _0x170f0a=void 0x0!==_0x1bb43e['forceValue']?_0x1bb43e['forceValue']:!_0x3264cb['value'];_0x2dfbf1['change'](()=>{const _0x927793=Array['from'](_0x295527['getRanges']());for(const _0x32e7d0 of _0x927793){const _0x37c02c=_0x170f0a?[_0x32e7d0]:ve(_0x48ede,_0x32e7d0,_0x2dfbf1);for(const _0x4ec198 of _0x37c02c)_0x4454a5['markInlineFormat'](_0x4ec198,{'commandName':_0x48ede,'commandParams':[{'forceValue':_0x170f0a}]});}});}),_0x4454a5['descriptionFactory']['registerDescriptionCallback'](_0x2a470a=>{if('formatBlock'!=_0x2a470a['type']&&'formatInline'!=_0x2a470a['type'])return;const {data:_0x155f5c}=_0x2a470a;return _0x155f5c&&_0x155f5c['commandName']==_0x48ede?_0x155f5c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x7ec3d4=this['editor'],_0x26933f=_0x7ec3d4['locale'],_0x269542=_0x7ec3d4['plugins']['get']('TrackChangesEditing'),_0x8a50bf='restrictedEditingExceptionBlock',_0x355abd=this['editor']['commands']['get'](_0x8a50bf);_0x269542['enableCommand'](_0x8a50bf,(_0x9a2f70,_0x510787={})=>{const _0x321ea5=this['editor']['model']['document']['selection'],_0x216845=_0x510787&&void 0x0!==_0x510787['forceValue']?_0x510787['forceValue']:!_0x355abd['value'];let _0x1f4c7e=[];_0x1f4c7e=Ct(_0x216845?Array['from'](_0x321ea5['getSelectedBlocks']())['filter'](_0x1b434c=>function(_0x18aac9){return!!_0x18aac9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1b434c)||function(_0x18b2b7,_0x106a70){const _0x43a1fd=_0x106a70['createContext'](_0x18b2b7['parent']);return!!_0x106a70['checkChild'](_0x43a1fd,'restrictedEditingException')&&!!_0x106a70['checkChild'](_0x43a1fd['push']('restrictedEditingException'),_0x18b2b7);}(_0x1b434c,this['editor']['model']['schema'])):Array['from'](_0x321ea5['getSelectedBlocks']())['map'](_0x389444=>function(_0x779d57){let _0x11ade6=_0x779d57;for(;_0x11ade6['parent'];){if('restrictedEditingException'==_0x11ade6['parent']['name'])return _0x11ade6;_0x11ade6=_0x11ade6['parent'];}return null;}(_0x389444))['filter'](_0x4e70df=>!!_0x4e70df),_0x7ec3d4['model']),_0x7ec3d4['model']['change'](()=>{for(const _0x7090d2 of _0x1f4c7e)_0x269542['markBlockFormat'](_0x7090d2,{'commandName':_0x8a50bf,'commandParams':[{'forceValue':_0x216845}]});});}),_0x269542['descriptionFactory']['registerDescriptionCallback'](_0xb5a26b=>{const {data:_0x345591}=_0xb5a26b;if(_0x345591&&_0x345591['commandName']==_0x8a50bf)return _0x345591['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x548d2a{afterInit(){const _0x45c3df=this['editor'];_0x45c3df['plugins']['has']('Style')&&_0x45c3df['plugins']['has']('DataSchema')&&(_0x45c3df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xb03693=this['editor'],_0x1704cb=_0xb03693['locale'];_0xb03693['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530c3f=>{if('formatBlock'!=_0x530c3f['type']&&'formatInline'!=_0x530c3f['type'])return;const {data:_0xc84134}=_0x530c3f;return _0xc84134&&'style'===_0xc84134['commandName']?_0xc84134['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1704cb,'*Set\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x1704cb,'*Remove\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x548d2a{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x1cdaa7){super(_0x1cdaa7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x305711=this['editor'],_0x2d48ea=_0x305711['model']['document']['selection'];if(!_0x305711['plugins']['has']('TableEditing'))return;const _0xebf499=_0x305711['locale'],_0x1b0da5=_0x305711['plugins']['get']('TrackChangesEditing'),_0x36613c=_0x305711['plugins']['get']('TableUtils');_0x1b0da5['descriptionFactory']['registerElementLabel']('table',_0x4a6ffb=>Ot(_0xebf499,'ELEMENT_TABLE',_0x4a6ffb)),this['_setupColumnsRowsFixing'](),_0x1b0da5['enableCommand']('insertTable'),_0x1b0da5['enableCommand']('selectTableRow'),_0x1b0da5['enableCommand']('selectTableColumn');for(const _0x2921be of['insertTableRowAbove','insertTableRowBelow']){const _0x6ba397=_0x305711['commands']['get'](_0x2921be);_0x1b0da5['enableCommand'](_0x2921be,_0x5d8063=>{_0x305711['model']['change'](_0x4a9e71=>{_0x5d8063();const _0x415d42='above'===_0x6ba397['order'],_0x451463=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x1e3c45=_0x36613c['getRowIndexes'](_0x451463),_0x5c05ee=_0x415d42?_0x1e3c45['first']-0x1:_0x1e3c45['last']+0x1,_0x1ce037=_0x451463[0x0]['findAncestor']('table'),_0x5ace80=_0x36613c['createTableWalker'](_0x1ce037,{'startRow':_0x5c05ee,'endRow':_0x5c05ee}),_0xe26b0=Array['from'](_0x5ace80)['map'](_0x260c91=>_0x4a9e71['createRangeOn'](_0x260c91['cell']));_0x1b0da5['markMultiRangeInsertion'](_0xe26b0,'tableRow');});});}for(const _0x5b6009 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d8be6=_0x305711['commands']['get'](_0x5b6009);_0x1b0da5['enableCommand'](_0x5b6009,_0x392956=>{_0x305711['model']['change'](_0x56c77b=>{_0x392956();const _0x392a90='left'===_0x4d8be6['order'],_0x3b5c8c=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x30a8ec=_0x36613c['getColumnIndexes'](_0x3b5c8c),_0x518424=_0x392a90?_0x30a8ec['first']-0x1:_0x30a8ec['last']+0x1,_0x2893a9=_0x3b5c8c[0x0]['findAncestor']('table'),_0x5a229a=_0x36613c['createTableWalker'](_0x2893a9,{'startRow':0x0,'column':_0x518424,'includeAllSlots':!0x1}),_0x5701dc=Array['from'](_0x5a229a)['map'](_0x4fa713=>_0x56c77b['createRangeOn'](_0x4fa713['cell']));_0x1b0da5['markMultiRangeInsertion'](_0x5701dc,'tableColumn');});});}for(const _0x548f0a of['removeTableRow','removeTableColumn']){const _0x1b75db=_0x548f0a['substr'](0xb),_0x3e9344=_0x1b75db['toLowerCase'](),_0x43189b=_0x3e9344['substr'](0x0,0x3)+'span',_0x586e53='table'+_0x1b75db,_0x47b0fd='min'+_0x1b75db,_0x37ab7a='max'+_0x1b75db;_0x1b0da5['enableCommand'](_0x548f0a,()=>{_0x305711['model']['change'](_0x44f57c=>{const _0x359e04=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x5228d6=_0x359e04[0x0]['findAncestor']('table');let _0x38844c;if('removeTableRow'==_0x548f0a){const _0x550c09=_0x36613c['getRowIndexes'](_0x359e04);_0x38844c={'startRow':_0x550c09['first'],'endRow':_0x550c09['last'],'includeAllSlots':!0x0};}else{const _0x5f08a1=_0x36613c['getColumnIndexes'](_0x359e04);_0x38844c={'startColumn':_0x5f08a1['first'],'endColumn':_0x5f08a1['last'],'includeAllSlots':!0x0};}const _0x3a3c11=_0x36613c['createTableWalker'](_0x5228d6,_0x38844c),_0x521bbc=Array['from'](_0x3a3c11)['map'](({cell:_0x2546c3})=>_0x2546c3),_0x50d50c=xe(_0x521bbc['filter'](_0xd28383=>_0xd28383['hasAttribute'](_0x43189b))),_0x238f26=xe(_0x521bbc['filter'](_0x127788=>!_0x127788['hasAttribute'](_0x43189b)))['map'](_0x1cbfa7=>_0x44f57c['createRangeOn'](_0x1cbfa7)),_0x58c128=_0x1b0da5['markMultiRangeDeletion'](_0x238f26,_0x586e53);if(_0x58c128&&('tableRow'==_0x58c128['subType']||'tableColumn'==_0x58c128['subType'])){const _0x507f23=this['_getSuggestionCoords'](_0x58c128);for(const _0x4194de of _0x50d50c){const _0x21c3e6=_0x44f57c['createRangeOn'](_0x4194de),_0x4e7a2d=_0x36613c['getCellLocation'](_0x4194de),_0x2180cf=_0x4194de['getAttribute'](_0x43189b)-0x1,_0x911903=_0x507f23[_0x47b0fd],_0x3eed3d=_0x507f23[_0x37ab7a];_0x911903<=_0x4e7a2d[_0x3e9344]&&_0x4e7a2d[_0x3e9344]+_0x2180cf<=_0x3eed3d&&_0x58c128['addRange'](_0x21c3e6);}}});});}function _0x2ba6a5(_0x361029){const _0x2642a0=Array['from'](_0x2d48ea['getRanges']())['map'](_0x41b2cd=>ot['fromRange'](_0x41b2cd));_0x305711['model']['change'](_0x2f8c28=>{const _0x28ea36=_0x2f8c28['batch'];_0x361029=_0x361029['filter'](_0x58dd1a=>'$graveyard'!=_0x58dd1a['root']['rootName']),_0x2f8c28['setSelection'](_0x361029),_0x305711['commands']['get']('removeTableRow')['refresh'](),_0x305711['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x305711['model']['enqueueChange'](()=>{_0x305711['model']['enqueueChange'](_0x28ea36,_0x1a98c4=>{const _0x550d1c=_0x2642a0['filter'](_0x54b9c4=>'$graveyard'!=_0x54b9c4['root']['rootName']);_0x550d1c['length']>0x0&&_0x1a98c4['setSelection'](_0x550d1c);for(const _0xb7d896 of _0x2642a0)_0xb7d896['detach']();});});});}function _0x491476(_0x23ef79){_0x305711['model']['change'](_0xbcc16f=>{const _0x5a99ce=Array['from'](_0x2d48ea['getRanges']())['map'](_0xac7474=>ot['fromRange'](_0xac7474)),_0x464f08=[];for(const _0x3edfb6 of _0x23ef79)for(const _0x4e0fdb of _0x3edfb6['getItems']({'shallow':!0x0}))_0x464f08['push'](_0x4e0fdb);for(const _0x512211 of _0x464f08)'$graveyard'!=_0x512211['root']['rootName']&&(_0xbcc16f['setSelection'](_0xbcc16f['createPositionAt'](_0x512211,0x0)),_0x305711['commands']['get']('removeTableColumn')['refresh'](),_0x305711['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6d4a8c=_0x5a99ce['filter'](_0x494338=>'$graveyard'!=_0x494338['root']['rootName']);_0x6d4a8c['length']>0x0&&_0xbcc16f['setSelection'](_0x6d4a8c);for(const _0x37116e of _0x5a99ce)_0x37116e['detach']();});}function _0x931fb8(_0x15d71d,_0x4e2043){return _0x4e2043['every'](_0x3669a1=>_0x15d71d['some'](_0x4412ba=>_0x4412ba['end']['isEqual'](_0x3669a1['start'])||_0x3669a1['end']['isEqual'](_0x4412ba['start'])));}function _0x50b9d2(_0x442c8e,_0x132a72){return!_0x442c8e['some'](_0x3aaf72=>_0x132a72['some'](_0x5a9bc9=>_0x3aaf72['isIntersecting'](_0x5a9bc9)))&&_0x442c8e['some'](_0xdb059d=>_0x132a72['some'](_0x5cb87a=>_0xdb059d['end']['isTouching'](_0x5cb87a['start'])));}_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x8a5cab=>{if('insertion'!=_0x8a5cab['type']&&'deletion'!=_0x8a5cab['type'])return;const _0xa9155f=_0x8a5cab['getContainedElement']();if(null!=_0xa9155f&&_0xa9155f['is']('element','table')){if('insertion'==_0x8a5cab['type']){const _0x16e5a2=_0x8a5cab['getItems']()['filter'](_0x1a61c2=>_0x1a61c2['is']('$textProxy'))['map'](_0x37cd90=>_0x37cd90['data']);if(_0x16e5a2['length'])return{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16e5a2['join']('\x20')+'\x22'))};}if('deletion'==_0x8a5cab['type']){const _0x21efbc=_0x8a5cab['getItems']()['filter'](_0x3fa686=>_0x3fa686['is']('$textProxy'))['map'](_0x4bd519=>_0x4bd519['data']);if(_0x21efbc['length'])return{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21efbc['join']('\x20')+'\x22'))};}}}),_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x5651f1=>{if('tableRow'==_0x5651f1['subType']){const _0x32a480=_0x5651f1['getItems']()['filter'](_0x912468=>_0x912468['is']('$textProxy'))['map'](_0x20ef2c=>_0x20ef2c['data']),_0x14f3aa=this['_getSuggestionCoords'](_0x5651f1),_0x24b960=_0x14f3aa['maxRow']-_0x14f3aa['minRow']+0x1;if('insertion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};if('deletion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};}if('tableColumn'==_0x5651f1['subType']){const _0x5cfaf3=_0x5651f1['getItems']()['filter'](_0x87d140=>_0x87d140['is']('$textProxy'))['map'](_0x5e0437=>_0x5e0437['data']),_0x4d5083=this['_getSuggestionCoords'](_0x5651f1),_0x1a8d6e=_0x4d5083['maxColumn']-_0x4d5083['minColumn']+0x1;if('insertion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};if('deletion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};}}),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x50b9d2),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x50b9d2);}_acceptFormatSuggestionCallbackFactory(){const _0x4ab10e=this['editor'],_0x1bb209=_0x4ab10e['model']['document']['selection'];return(_0x6dc437,_0x3c1f32)=>{_0x4ab10e['model']['change'](_0x4faeb1=>{const {commandName:_0x1780e8,commandParams:_0x32929d}=_0x3c1f32;let _0x40adb3=_0x6dc437[0x0]['end']['nodeBefore'];_0x32929d&&_0x32929d[0x0]&&!0x1===_0x32929d[0x0]['forceValue']&&(_0x40adb3=_0x6dc437[0x0]['start']['nodeAfter']);const _0x54d7c9=_0x4faeb1['createRangeIn'](_0x40adb3);if('$graveyard'==_0x54d7c9['root']['rootName'])return;const _0x897f1a=Array['from'](_0x1bb209['getRanges']())['map'](_0x411db7=>ot['fromRange'](_0x411db7));_0x4faeb1['setSelection'](_0x54d7c9),_0x4ab10e['commands']['get'](_0x1780e8)['refresh'](),_0x32929d['push']({'forceDefaultExecution':!0x0}),_0x4ab10e['execute'](_0x1780e8,..._0x32929d);const _0x21840c=_0x897f1a['filter'](_0x5a704f=>'$graveyard'!=_0x5a704f['root']['rootName']);_0x21840c['length']>0x0&&_0x4faeb1['setSelection'](_0x21840c);for(const _0x1716b0 of _0x897f1a)_0x1716b0['detach']();});};}_getCoordsForCells(_0x1b1e61){const _0xd6be9a=this['editor']['plugins']['get']('TableUtils');let _0x21f365=Number['MAX_SAFE_INTEGER'],_0x5ed6b7=Number['MIN_SAFE_INTEGER'],_0x57c00f=Number['MAX_SAFE_INTEGER'],_0x4730a6=Number['MIN_SAFE_INTEGER'];for(const _0x20adee of _0x1b1e61){if('$graveyard'==_0x20adee['root']['rootName'])continue;const {row:_0x26cdc5,column:_0x4e41a9}=_0xd6be9a['getCellLocation'](_0x20adee),_0x2cea03=_0x20adee['hasAttribute']('rowspan')?_0x20adee['getAttribute']('rowspan')-0x1:0x0,_0x3f60b2=_0x20adee['hasAttribute']('colspan')?_0x20adee['getAttribute']('colspan')-0x1:0x0;_0x21f365=_0x26cdc5<_0x21f365?_0x26cdc5:_0x21f365,_0x5ed6b7=_0x26cdc5+_0x2cea03>_0x5ed6b7?_0x26cdc5+_0x2cea03:_0x5ed6b7,_0x57c00f=_0x4e41a9<_0x57c00f?_0x4e41a9:_0x57c00f,_0x4730a6=_0x4e41a9+_0x3f60b2>_0x4730a6?_0x4e41a9+_0x3f60b2:_0x4730a6;}return{'minRow':_0x21f365,'maxRow':_0x5ed6b7,'minColumn':_0x57c00f,'maxColumn':_0x4730a6};}_setupColumnsRowsFixing(){const _0x507291=this['editor'],_0x5056ce=_0x507291['plugins']['get']('TrackChangesEditing'),_0x44b7aa=_0x507291['plugins']['get']('TableUtils');_0x507291['model']['document']['on']('change:data',()=>{const _0x18752e=Array['from'](_0x507291['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x269a69,data:_0x28d1c6}of _0x18752e){const {group:_0x52c316,id:_0x542052,subType:_0x121a67}=et(_0x269a69);if('suggestion'!=_0x52c316)continue;if(null!=_0x28d1c6['oldRange'])continue;const _0x224fdc=_0x5056ce['getSuggestion'](_0x542052);this['_tablePostFixingSubtypes']['includes'](_0x121a67)&&this['_tableSuggestions']['add'](_0x224fdc);}},{'priority':'low'});const _0x4b4f75=(_0x593773,_0x2b8341)=>{let _0x2799ff=!0x1;const _0x1b4db2=_0x2b8341['createRangeOn'](_0x593773),_0x9b2d17=_0x593773['findAncestor']('table'),_0x4f95a0=_0x44b7aa['getCellLocation'](_0x593773);for(const _0x530805 of this['_tableSuggestions']){const _0x35efde=_0x530805['subType'],_0x22d989=_0x35efde['startsWith']('tablePaste'),_0x4b3574=_0x35efde['substr'](_0x22d989?0xa:0x5),_0x23897f=_0x4b3574['toLowerCase'](),_0x1f1402=_0x23897f['substr'](0x0,0x3)+'span',_0x2930d6='min'+_0x4b3574,_0x405740='max'+_0x4b3574;if(!_0x530805['isInContent'])continue;if(_0x9b2d17!=_0x530805['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x530805['isIntersectingWithRange'](_0x1b4db2))continue;const _0x26dc8d=_0x593773['hasAttribute'](_0x1f1402)?_0x593773['getAttribute'](_0x1f1402)-0x1:0x0,_0x5e4c3f=this['_getSuggestionCoords'](_0x530805),_0x57d941=_0x5e4c3f[_0x2930d6],_0x7fcbb6=_0x5e4c3f[_0x405740];_0x57d941<=_0x4f95a0[_0x23897f]&&_0x4f95a0[_0x23897f]+_0x26dc8d<=_0x7fcbb6&&(_0x530805['addRange'](_0x1b4db2),_0x2799ff=!0x0);}return _0x2799ff;};_0x507291['model']['document']['registerPostFixer'](_0x52bcbd=>{let _0x168e42=!0x1;for(const _0x9a729e of _0x507291['model']['document']['differ']['getChanges']())if('insert'==_0x9a729e['type']){if('tableRow'==_0x9a729e['name']){for(const _0x51258b of _0x9a729e['position']['nodeAfter']['getChildren']())_0x168e42=_0x168e42||_0x4b4f75(_0x51258b,_0x52bcbd);}else'tableCell'==_0x9a729e['name']&&(_0x168e42=_0x168e42||_0x4b4f75(_0x9a729e['position']['nodeAfter'],_0x52bcbd));}return _0x168e42;});}_getSuggestionCoords(_0x307135){return this['_getCoordsForCells'](_0x307135['getRanges']()['map'](_0x23073f=>_0x23073f['start']['nodeAfter']));}};function xe(_0x38bd3d){return Array['from'](new Set(_0x38bd3d)['values']());}var Ge=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x4435be=this['editor'],_0x4a9211=_0x4435be['model']['document']['selection'],_0x22410a=_0x4435be['locale'];if(!_0x4435be['plugins']['has']('TableEditing'))return;const _0x336082=_0x4435be['plugins']['get']('TrackChangesEditing'),_0x8d8d5f=_0x4435be['plugins']['get']('TableUtils'),_0x5ee08f=_0x4435be['plugins']['get'](Pe);_0x5ee08f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x336082['enableCommand']('mergeTableCells',()=>{const _0x1b73bf=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']);_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x1b73bf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4435be['commands']['get']('mergeTableCells')['on']('execute',(_0x59ec58,_0x20a849)=>{_0x4435be['commands']['get']('trackChanges')['value']&&(_0x20a849['length']>0x0&&_0x20a849[_0x20a849['length']-0x1]&&_0x20a849[_0x20a849['length']-0x1]['forceDefaultExecution']||_0x336082['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59ec58['stop']());},{'priority':'highest'});for(const _0x10fdf6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e6c0f=_0x4435be['commands']['get'](_0x10fdf6);_0x336082['enableCommand'](_0x10fdf6,()=>{const _0x26c740=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x591daf=>_0x591daf['is']('element','tableCell')),_0x5916b1=_0x1e6c0f['value'];_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat']([_0x26c740,_0x5916b1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29eb8b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52bcc1=_0x4435be['commands']['get'](_0x29eb8b);_0x336082['enableCommand'](_0x29eb8b,()=>{const _0x5a5813=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']),_0x515a25=_0x5a5813[0x0]['findAncestor']('table'),_0x1d449c=new Set();for(const _0x4861e7 of _0x5a5813){const {column:_0x477cbd,row:_0x4c7f1d}=_0x8d8d5f['getCellLocation'](_0x4861e7),_0x5802e4='horizontally'==_0x52bcc1['direction']?_0x8d8d5f['createTableWalker'](_0x515a25,{'startRow':_0x4c7f1d,'endRow':_0x4c7f1d,'includeAllSlots':!0x0}):_0x8d8d5f['createTableWalker'](_0x515a25,{'column':_0x477cbd,'includeAllSlots':!0x0});for(const {cell:_0x43e720}of _0x5802e4)_0x1d449c['add'](_0x43e720);}_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x5a5813,{'commandName':_0x29eb8b,'commandParams':[]},Array['from'](_0x1d449c),_0x29eb8b);});});}_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x37cb8e=>{if('formatBlock'!=_0x37cb8e['type']&&'formatInline'!=_0x37cb8e['type'])return;const {data:_0x41239b}=_0x37cb8e;return _0x41239b&&'mergeTableCells'==_0x41239b['commandName']?{'type':'format','content':Ot(_0x22410a,'*Merge\x20cells*')}:void 0x0;}),_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x5e3dec=>{if('formatBlock'!=_0x5e3dec['type']&&'formatInline'!=_0x5e3dec['type'])return;const {data:_0x446892}=_0x5e3dec;return _0x446892?'splitTableCellVertically'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x15c264=_0x5ee08f['_acceptFormatSuggestionCallbackFactory']();for(const _0x45a572 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45a572,'accept',_0x15c264);for(const _0x4e5e3d of['splitTableCellVertically','splitTableCellHorizontally'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e5e3d,'accept',_0x2ccac8=>{_0x4435be['model']['change'](_0x215f86=>{const _0x1322cb=Array['from'](_0x2ccac8)['filter'](_0x17944b=>'$graveyard'!=_0x17944b['root']['rootName']&&!!_0x17944b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x1322cb['length'])return;const _0x454615=Array['from'](_0x4a9211['getRanges']())['map'](_0x55235b=>ot['fromRange'](_0x55235b));_0x215f86['setSelection'](_0x1322cb),_0x4435be['commands']['get'](_0x4e5e3d)['refresh'](),_0x4435be['execute'](_0x4e5e3d,{'forceDefaultExecution':!0x0});const _0x5cc1cd=_0x454615['filter'](_0x3e891b=>'$graveyard'!=_0x3e891b['root']['rootName']);_0x5cc1cd['length']>0x0&&_0x215f86['setSelection'](_0x5cc1cd);for(const _0x576c6e of _0x454615)_0x576c6e['detach']();});});_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5175c2=>{_0x4435be['model']['change'](_0x2e9d4b=>{const _0x40d6ae=Array['from'](_0x4a9211['getRanges']())['map'](_0x9dbcba=>ot['fromRange'](_0x9dbcba));_0x2e9d4b['setSelection'](_0x5175c2),_0x4435be['commands']['get']('mergeTableCells')['refresh'](),_0x4435be['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bed67=_0x40d6ae['filter'](_0x14fb86=>'$graveyard'!=_0x14fb86['root']['rootName']);_0x2bed67['length']>0x0&&_0x2e9d4b['setSelection'](_0x2bed67);for(const _0x1a5551 of _0x40d6ae)_0x1a5551['detach']();});});for(const _0x14851a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2396a0=_0x4435be['commands']['get'](_0x14851a);_0x2396a0['on']('set:isEnabled',(_0x30b71e,_0x47cc5e,_0xcb08e3)=>{if(_0xcb08e3){const _0x38a62e=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10ab58=>_0x10ab58['is']('element','tableCell'));this['_areMergableCells'](_0x2396a0['value'],_0x38a62e)||(_0x30b71e['return']=!0x1,_0x30b71e['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x49ed20=this['editor']['commands']['get']('mergeTableCells'),_0x4e0197=this['editor']['plugins']['get']('TableUtils');if(!_0x49ed20['isEnabled'])return!0x1;const _0x13e0e8=_0x4e0197['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f2c1e of _0x13e0e8)for(const _0x2e8540 of _0x13e0e8)if(_0x2f2c1e!=_0x2e8540&&!this['_areMergableCells'](_0x2f2c1e,_0x2e8540))return!0x1;return!0x0;}['_areMergableCells'](_0x21508a,_0x1299cd){const _0x55ada4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e0467=this['editor']['model']['createRangeOn'](_0x21508a),_0x20a95f=this['editor']['model']['createRangeOn'](_0x1299cd),_0x11bbc4=new Set(),_0x35ca89=new Set();for(const _0x234017 of _0x55ada4['getSuggestions']())if(('insertion'==_0x234017['type']||'deletion'==_0x234017['type']||'mergeTableCells'==_0x234017['subType'])&&_0x234017['isInContent']){for(const _0x256a14 of _0x234017['getRanges']())_0x256a14['containsRange'](_0x5e0467,!0x0)&&_0x11bbc4['add'](_0x234017['type']+':'+_0x234017['author']['id']),_0x256a14['containsRange'](_0x20a95f,!0x0)&&_0x35ca89['add'](_0x234017['type']+':'+_0x234017['author']['id']);}if(_0x11bbc4['size']!=_0x35ca89['size'])return!0x1;for(const _0x1bf457 of _0x11bbc4)if(!_0x35ca89['has'](_0x1bf457))return!0x1;return!0x0;}},He=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x18ee65=this['editor'];if(!_0x18ee65['plugins']['has']('TableEditing'))return;const _0x40b010=_0x18ee65['locale'],_0x4e6337=_0x18ee65['plugins']['get']('TrackChangesEditing');_0x4e6337['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e6337['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x40b010,'FORMAT_HEADER_ROW')),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x40b010,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1dceff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1864a0=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1864a0),_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1864a0),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x2c2d02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x413ca4=this['editor']['plugins']['get']('TableUtils');function _0x21e9a6({showActiveMarker:_0x367508=!0x0,setDataAttribute:_0x118392=!0x0}={}){return(_0x1657d8,_0x416118,_0x34ff66)=>{const {type:_0x5293ee,id:_0x2283b3}=et(_0x416118['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x2283b3))return;const _0x33dd28=_0x2c2d02['getSuggestion'](_0x2283b3),_0x44811a=_0x33dd28['data'];if('formatBlock'!=_0x33dd28['type']||!_0x44811a||'setTableColumnHeader'!=_0x44811a['commandName'])return;if(_0x416118['item'])return void _0x1657d8['stop']();if(!_0x34ff66['consumable']['consume'](_0x416118['markerRange'],_0x1657d8['name']))return;const _0x2fe846=_0x416118['markerRange']['start']['nodeAfter'],_0x462679=_0x416118['markerRange']['end']['nodeBefore'],_0x15f397=_0x2fe846['parent']['parent'],{column:_0x373067}=_0x413ca4['getCellLocation'](_0x2fe846),{column:_0x2aff68}=_0x413ca4['getCellLocation'](_0x462679);for(let _0x31d69d=_0x373067;_0x31d69d<=_0x2aff68;_0x31d69d++){const _0x133ea5=_0x413ca4['createTableWalker'](_0x15f397,{'column':_0x31d69d,'includeAllSlots':!0x1});for(const _0x4fff02 of _0x133ea5){const _0x3ecaa6=_0x4fff02['cell'],_0x1e0a02=_0x34ff66['mapper']['toViewElement'](_0x3ecaa6);_0x34ff66['writer']['addClass']('ck-suggestion-marker-'+_0x5293ee,_0x1e0a02),_0x118392&&_0x34ff66['writer']['setAttribute']('data-suggestion',_0x2283b3,_0x1e0a02),_0x34ff66['mapper']['bindElementToMarker'](_0x1e0a02,_0x416118['markerName']),_0x367508&&(_0x2c2d02['activeMarkers']['includes'](_0x416118['markerName'])?_0x34ff66['writer']['addClass']('ck-suggestion-marker--active',_0x1e0a02):_0x34ff66['writer']['removeClass']('ck-suggestion-marker--active',_0x1e0a02));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21e9a6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38b54e,_0x4c805f,_0x3dbea0)=>{_0x3dbea0['options']['showSuggestionHighlights']&&_0x21e9a6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38b54e,_0x4c805f,_0x3dbea0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51b785,_0x2c7a20,_0x52f194)=>{const {type:_0x4ba003,id:_0x15aeb8}=et(_0x2c7a20['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x15aeb8))return;const _0x2dc66c=_0x2c2d02['getSuggestion'](_0x15aeb8),_0x314e01=_0x2dc66c['data'];if('formatBlock'!=_0x2dc66c['type']||!_0x314e01||'setTableColumnHeader'!=_0x314e01['commandName'])return;const _0x4a25ca=_0x52f194['mapper']['markerNameToElements'](_0x2c7a20['markerName']);if(_0x4a25ca){for(const _0x216821 of _0x4a25ca)_0x52f194['writer']['removeClass']('ck-suggestion-marker-'+_0x4ba003,_0x216821),_0x52f194['writer']['removeClass']('ck-suggestion-marker--active',_0x216821),_0x52f194['writer']['removeAttribute']('data-suggestion',_0x216821),_0x52f194['mapper']['unbindElementFromMarkerName'](_0x216821,_0x2c7a20['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x140aec=this['editor'],_0x32f310=_0x140aec['locale'];function _0x58514e(_0x32b38a){return{'type':'format','content':Ot(_0x32f310,'*Format:*\x20%0',_0x32b38a)};}_0x140aec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1baac6=>{if('formatBlock'!=_0x1baac6['type'])return;const {data:_0x19d4a9}=_0x1baac6;return _0x19d4a9?'setTableRowHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_ROW')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_COLUMN')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5d7da3=this['editor'];if(!_0x5d7da3['plugins']['has']('TableEditing')||!_0x5d7da3['config']['get']('table.enableFooters'))return;const _0xe169e4=_0x5d7da3['locale'],_0xdc958c=_0x5d7da3['plugins']['get']('TrackChangesEditing');_0xdc958c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0xdc958c['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0xe169e4,'FORMAT_FOOTER_ROW'));}},We=class extends _0x548d2a{afterInit(){const _0x346031=this['editor'],_0x5957db=_0x346031['locale'],_0x3d2f5c=_0x346031['plugins']['get']('TrackChangesEditing');function _0x148129(_0x3e25db){return{'type':'format','content':''+Ot(_0x5957db,'*Set\x20table\x20type:*\x20%0',_0x3e25db)};}_0x346031['plugins']['has']('TableLayout')&&(_0x3d2f5c['enableCommand']('insertTableLayout'),_0x3d2f5c['enableDefaultAttributesIntegration']('tableType'),_0x3d2f5c['descriptionFactory']['registerElementLabel'](_0x29d44d=>_0x29d44d['is']('element','table')&&'layout'===_0x29d44d['getAttribute']('tableType'),_0x35977c=>Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE',_0x35977c)),_0x3d2f5c['descriptionFactory']['registerDescriptionCallback'](_0x3362b3=>{const {data:_0x21673a}=_0x3362b3;if(_0x21673a&&'tableType'==_0x21673a['key'])switch(_0x21673a['newValue']){case'layout':return _0x148129(Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x148129(Ot(_0x5957db,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ve['map'](_0x15c8af=>[_0x15c8af,null]));var ze=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x22b1dc=this['editor'];if(!_0x22b1dc['plugins']['has']('TableClipboard'))return;const _0x13fcf9=_0x22b1dc['plugins']['get']('TrackChangesEditing'),_0x2ae819=_0x22b1dc['plugins']['get']('TableUtils'),_0x2b0896=_0x22b1dc['plugins']['get'](Pe),_0x171968=_0x22b1dc['plugins']['get']('TableClipboard'),_0x506c49=_0x22b1dc['plugins']['get']('TableSelection'),_0x18fe72=_0x22b1dc['plugins']['get'](ft);_0x2b0896['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x22b1dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x22b1dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5bc126=null,_0x99d6dc=!0x1;_0x18fe72['on']('contentInsertion',(_0x49688f,_0x41b9f8)=>{_0x99d6dc='paste'===_0x41b9f8['method'];}),_0x22b1dc['model']['on']('insertContent',(_0x2a08e0,_0x499fc1)=>{if(!_0x99d6dc&&null===_0x506c49['getSelectedTableCells']())return;const [_0x2c9796,_0x3bb219]=_0x499fc1,_0x23caea=_0x499fc1[_0x499fc1['length']-0x1];_0x23caea&&_0x23caea['forceDefaultExecution']||_0x13fcf9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x897fc5,_0xd10cd1,_0x1726fc,_0x125b46,_0x124b3a){if(_0xd10cd1&&!_0xd10cd1['is']('documentSelection'))return!0x1;const _0x1ee1c0=_0x124b3a['getTableIfOnlyTableInContent'](_0x897fc5,_0x1726fc);if(!_0x1ee1c0||!Xe(_0x1ee1c0,void 0x0,_0x125b46))return!0x1;const _0x282997=_0x125b46['getSelectionAffectedTableCells'](_0x1726fc['document']['selection']);if(!_0x282997['length'])return!0x1;const _0x4a6587=_0x282997[0x0]['findAncestor']('table'),_0x2b55a9=_0x125b46['getRowIndexes'](_0x282997),_0x5dc821=_0x125b46['getColumnIndexes'](_0x282997),_0x5b88ba={'startRow':_0x2b55a9['first'],'endRow':_0x2b55a9['last'],'startColumn':_0x5dc821['first'],'endColumn':_0x5dc821['last']};return 0x1==_0x282997['length']&&(_0x5b88ba['endRow']+=_0x125b46['getRows'](_0x1ee1c0)-0x1,_0x5b88ba['endColumn']+=_0x125b46['getColumns'](_0x1ee1c0)-0x1),Xe(_0x4a6587,_0x5b88ba,_0x125b46);}(_0x2c9796,_0x3bb219,_0x22b1dc['model'],_0x2ae819,_0x171968)&&(_0x2a08e0['stop'](),_0x5bc126={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x22b1dc['model']['change'](()=>{_0x22b1dc['model']['insertContent'](_0x499fc1[0x0],_0x499fc1[0x1],_0x499fc1[0x2],{'forceDefaultExecution':!0x0});const _0x32ae92=_0x1dfb7c(),{rowInsertionRanges:_0x49002b,columnInsertionRanges:_0x5d041f,insertionRanges:_0x15ba21,deletionRanges:_0x38510d,cells:_0x3d76b1}=_0x5bc126;_0x49002b['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x49002b,'tablePasteRow',{'tablePasteChainId':_0x32ae92}),_0x5d041f['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x5d041f,'tablePasteColumn',{'tablePasteChainId':_0x32ae92}),_0x15ba21['length']&&(_0x13fcf9['markMultiRangeInsertion'](_0x15ba21,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x15ba21['forEach'](_0x597235=>_0x597235['detach']?.())),_0x38510d['length']&&(_0x13fcf9['markMultiRangeDeletion'](_0x38510d,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x38510d['forEach'](_0x54bf1c=>_0x54bf1c['detach']?.()));const _0x28741f=_0x13fcf9['markMultiRangeBlockFormat'](_0x3d76b1['map'](({element:_0x124372})=>_0x124372),{'formatGroupId':_0x1dfb7c()},[],'tablePasteCell',{'tablePasteChainId':_0x32ae92});if(_0x28741f){const _0x5e027f=_0x28741f['getMarkers'](),_0x52a291=[];for(const {element:_0x1baf8e,attributes:_0x1bed91}of _0x3d76b1){if(!_0x1bed91)continue;const _0x2bb575=_0x22b1dc['model']['createRangeOn'](_0x1baf8e),_0x3deaae=_0x5e027f['find'](_0xec8726=>_0xec8726['getRange']()['isEqual'](_0x2bb575));_0x3deaae&&_0x52a291['push']([_0x3deaae['name'],_0x1bed91]);}_0x52a291['length']&&_0x28741f['setAttribute']('markerAttributes',Object['fromEntries'](_0x52a291));}_0x5bc126=null;}));},{'priority':_0x5e908b['high']+0xa}),_0x18fe72['on']('contentInsertion',()=>{_0x99d6dc=!0x1;},{'priority':'lowest'}),_0x22b1dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44477e,_0x5e2f12)=>{const [_0x36ca60,_0x3a847c,,_0x7f29aa]=_0x5e2f12;if(!_0x5bc126)return;_0x44477e['stop']();const _0x45b935=_0x36ca60['cell'],_0x5e4c3a=_0x3a847c,_0x1fb8f1=Ke(_0x45b935),_0x47178d=Ke(_0x5e4c3a);_0x44477e['return']=_0x45b935;let _0x5aa8de=null,_0xf94e37=null;if(_0x47178d||_0x1fb8f1){if(_0x1fb8f1&&!_0x47178d){_0x7f29aa['remove'](_0x45b935['getChild'](0x0));for(const _0x4566fb of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x4566fb,_0x45b935,'end');const _0x1d8f83=_0x5bc126['rowInsertionIndexes']['includes'](_0x36ca60['row']),_0x3e6d8d=_0x5bc126['columnInsertionIndexes']['includes'](_0x36ca60['column']);_0x1d8f83||_0x3e6d8d||(_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeIn'](_0x45b935)));}else _0x47178d&&!_0x1fb8f1&&(_0xf94e37=_0x7f29aa['createRangeIn'](_0x45b935));}else{const _0x36f78e=_0x7f29aa['createElement']('tableCellSuggestion'),_0x3903fe=_0x7f29aa['createElement']('tableCellSuggestion');_0x7f29aa['wrap'](_0x7f29aa['createRangeIn'](_0x45b935),_0x3903fe),_0x7f29aa['insert'](_0x36f78e,_0x45b935,0x0);for(const _0x1e0a88 of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x1e0a88,_0x36f78e,'end');_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x36f78e)),_0xf94e37=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x3903fe));}const _0x114c4b=Array['from'](_0x5e4c3a['getAttributes']())['filter'](([_0x41ed76])=>Ve['includes'](_0x41ed76));_0x5bc126['cells']['push']({'element':_0x45b935,'attributes':_0x114c4b['length']?Object['fromEntries'](_0x114c4b):null}),_0x5aa8de&&_0x5bc126['insertionRanges']['push'](_0x5aa8de),_0xf94e37&&_0x5bc126['deletionRanges']['push'](_0xf94e37);},{'priority':'high'}),_0x2ae819['on']('insertColumns',(_0x18e2b3,_0x272a2d)=>{const [_0x6a3893,_0x4d8f2d={}]=_0x272a2d;if(!_0x5bc126)return;const _0x44b890=_0x4d8f2d['at']||0x0,_0xeb0514=_0x4d8f2d['columns']||0x1;_0x5bc126['columnInsertionIndexes']=new Array(_0xeb0514)['fill'](_0x44b890)['map']((_0x24bd93,_0x5f0e8b)=>_0x24bd93+_0x5f0e8b);for(const {cell:_0x1b47f8}of _0x2ae819['createTableWalker'](_0x6a3893,{'startColumn':_0x44b890,'endColumn':_0x44b890+_0xeb0514-0x1}))_0x5bc126['columnInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x1b47f8));},{'priority':'low'}),_0x2ae819['on']('insertRows',(_0x32a403,_0xa86844)=>{const [_0x5c1ff1,_0x49c130={}]=_0xa86844;if(!_0x5bc126)return;const _0x196bce=_0x49c130['at']||0x0,_0x37c468=_0x49c130['rows']||0x1;_0x5bc126['rowInsertionIndexes']=new Array(_0x37c468)['fill'](_0x196bce)['map']((_0x24ccfb,_0x11a32f)=>_0x24ccfb+_0x11a32f);for(const {cell:_0x5731e6}of _0x2ae819['createTableWalker'](_0x5c1ff1,{'startRow':_0x196bce,'endRow':_0x196bce+_0x37c468-0x1}))_0x5bc126['rowInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x5731e6));},{'priority':'low'}),_0x13fcf9['descriptionFactory']['registerDescriptionCallback'](_0xfd682d=>{if(_0xfd682d['subType']&&_0xfd682d['subType']['startsWith']('tablePaste'))return _0xfd682d['previous']?{}:{'type':'insertion','content':Ot(_0x22b1dc['locale'],'*Replace\x20table\x20cells*')};});const _0x5a636e=()=>!0x1;for(const _0x2eb1cc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('deletion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eb1cc,'join',_0x5a636e);_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ffdba,_0x1053f8,_0x4c1bef)=>{const _0x5bf664=_0x2ffdba['map'](_0x166806=>_0x166806['getContainedElement']())['filter'](_0x4bbfc1=>_0x4bbfc1),_0x15a7cd=new Map(_0x5bf664['map'](_0xddf6e8=>[_0xddf6e8,null]));if(_0x5bc126){for(const {element:_0xcde2aa,attributes:_0x2f24ab}of _0x5bc126['cells'])_0x2f24ab&&_0x15a7cd['set'](_0xcde2aa,_0x2f24ab);}else{if(_0x4c1bef&&_0x4c1bef['markerAttributes'])for(const [_0x12fbaa,_0x39ce53]of Object['entries'](_0x4c1bef['markerAttributes'])){const _0x1b20b6=_0x22b1dc['model']['markers']['get'](_0x12fbaa),_0x29aa04=_0x1b20b6?_0x1b20b6['getRange']()['getContainedElement']():null;_0x29aa04&&_0x15a7cd['set'](_0x29aa04,_0x39ce53);}}_0x22b1dc['model']['change'](_0x1c012b=>{for(const [_0x2d6a86,_0x3413f6]of _0x15a7cd)_0x1c012b['setAttributes']({...je,..._0x3413f6},_0x2d6a86);});});const _0x10b01f=(_0x469d77,_0x42b51c)=>{_0x13fcf9['_suggestionFactory']['registerCustomCallback'](_0x469d77,'tablePaste',_0x42b51c,(_0x4e3348,_0x575fc1,_0x58ff69)=>{_0x22b1dc['model']['change'](_0x196a8c=>{const _0x3195f8=[];for(const _0x41d929 of _0x4e3348){const _0x3779d6=_0x41d929['start']['nodeAfter'];_0x3779d6['is']('element','tableCellSuggestion')&&_0x3195f8['push'](_0x3779d6);}_0x13fcf9['_suggestionFactory']['getSuggestionCallback'](_0x469d77,null,_0x42b51c)(_0x4e3348,_0x575fc1,_0x58ff69);for(const _0x256caa of _0x3195f8)'$graveyard'!=_0x256caa['root']['rootName']&&_0x196a8c['unwrap'](_0x256caa);});});};_0x10b01f('insertion','accept'),_0x10b01f('insertion','discard'),_0x10b01f('deletion','accept'),_0x10b01f('deletion','discard'),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1448fe=>{const _0x1d720b=_0x1448fe['map'](_0x2904b1=>_0x2904b1['getContainedElement']()),_0x5a63c0=_0x1d720b[0x0]['findAncestor']('table'),{minRow:_0x128575,maxRow:_0x41217d}=_0x2b0896['_getCoordsForCells'](_0x1d720b);_0x2ae819['removeRows'](_0x5a63c0,{'at':_0x128575,'rows':_0x41217d-_0x128575+0x1});}),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b5687=>{const _0x119463=_0x4b5687['map'](_0x5cc4e0=>_0x5cc4e0['getContainedElement']()),_0x19f637=_0x119463[0x0]['findAncestor']('table'),{minColumn:_0x53cae3,maxColumn:_0x25de3f}=_0x2b0896['_getCoordsForCells'](_0x119463);_0x2ae819['removeColumns'](_0x19f637,{'at':_0x53cae3,'columns':_0x25de3f-_0x53cae3+0x1});});const _0x558a52=(_0x30158a,_0x137ae5)=>{if(!_0x137ae5['subType']||!_0x137ae5['subType']['startsWith']('tablePaste'))return;const _0x30ed60=_0x137ae5['attributes']['tablePasteChainId'],_0x2af88e=_0x13fcf9['getSuggestions']()['filter'](_0x270479=>_0x270479['isInContent']&&_0x270479['attributes']&&_0x270479['attributes']['tablePasteChainId']==_0x30ed60);_0x2af88e['length']&&_0x137ae5['getAllAdjacentSuggestions']()['length']!=_0x2af88e['length']&&_0x2af88e['reduce']((_0x243f3c,_0x299a94)=>(_0x243f3c['next']=_0x299a94,_0x299a94['previous']=_0x243f3c,_0x299a94));};function _0x2182a7(_0x1fbf93,_0x36328b=!0x0){const {id:_0x4ce1b8,authorId:_0x17341d}=et(_0x1fbf93['markerName']),_0x4074a3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42a7ea=_0x13fcf9['activeMarkers']['includes'](_0x1fbf93['markerName']);return _0x42a7ea&&_0x4074a3['push']('ck-suggestion-marker--active'),{'classes':_0x4074a3,'attributes':{'data-suggestion':_0x4ce1b8,'data-author-id':_0x17341d},'priority':_0x42a7ea&&_0x36328b?0xbc2:0xbb8};}_0x13fcf9['on']('suggestionLoaded',_0x558a52,{'priority':'high'}),_0x13fcf9['on']('suggestionUnloaded',_0x558a52,{'priority':'high'}),_0x22b1dc['model']['document']['registerPostFixer'](()=>{let _0x250e08=!0x1;const _0x31e96a=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x515a55,data:_0xd1da34}of _0x31e96a){const {group:_0x52f5ab,type:_0x426288,id:_0x1496d}=et(_0x515a55);if('suggestion'!=_0x52f5ab||'deletion'!=_0x426288||_0xd1da34['oldRange'])continue;if(!_0x13fcf9['hasSuggestion'](_0x1496d))continue;const _0x1413c2=_0x13fcf9['getSuggestion'](_0x1496d)['getRanges'](),_0x6ec384=_0x22b1dc['plugins']['get']('Users')['me'];for(const _0x485210 of _0x13fcf9['getSuggestions']())if(_0x485210['isInContent']&&_0x485210['author']==_0x6ec384&&'formatBlock'==_0x485210['type']&&'tablePasteCell'==_0x485210['subType']&&_0x485210['getRanges']()['every'](_0x3208ba=>_0x1413c2['some'](_0x169c50=>_0x169c50['containsRange'](_0x3208ba,!0x0)))){for(const _0x446156 of _0x485210['getAllAdjacentSuggestions']())_0x446156['isInContent']&&(_0x446156['discard'](),_0x250e08=!0x0);}}return _0x250e08;}),_0x22b1dc['model']['document']['registerPostFixer'](_0x2db57d=>{const _0x339894=_0x22b1dc['commands']['get']('redo');if(!_0x339894||!_0x339894['_createdBatches']['has'](_0x2db57d['batch']))return!0x1;let _0x17064a=!0x1;const _0x4edc00=_0x22b1dc['plugins']['get']('Users')['me'],_0x2b30db=_0x22b1dc['model']['document']['differ']['getChanges'](),_0x3e7a16=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cb925,data:_0x1c306f})=>{const {group:_0x4359d6,subType:_0x4aad6c,authorId:_0x3ada91}=et(_0x3cb925);return'suggestion'==_0x4359d6&&'tablePaste'==_0x4aad6c&&_0x3ada91==_0x4edc00['id']&&!_0x1c306f['oldRange'];});for(const _0x32b9b2 of _0x2b30db){if('insert'!=_0x32b9b2['type']||'tableCellSuggestion'!=_0x32b9b2['name']||0x1!=_0x32b9b2['length'])continue;const _0x296ed3=_0x2db57d['createRange'](_0x32b9b2['position'],_0x32b9b2['position']['getShiftedBy'](0x1));if(!_0x3e7a16['find'](({data:_0x309376})=>_0x309376['newRange']['isEqual'](_0x296ed3))){for(const {name:_0x5b8466,data:_0x656bcf}of _0x3e7a16)if(_0x296ed3['containsRange'](_0x656bcf['newRange'])){_0x2db57d['updateMarker'](_0x5b8466,{'range':_0x296ed3}),_0x17064a=!0x0;break;}}}return _0x17064a;}),_0x22b1dc['model']['document']['registerPostFixer'](_0xfc1bd3=>{let _0x52cdf9=!0x1;const _0x550712=_0x22b1dc['plugins']['get']('Users')['me'],_0x24bd11=_0x13fcf9['getSuggestions']()['filter'](_0x4553fd=>_0x4553fd['isInContent']&&_0x4553fd['author']==_0x550712),_0x29108e=new Set(),_0x153ff9=new Set();for(const _0xbcfd85 of _0x24bd11)if('tablePaste'==_0xbcfd85['subType'])for(const _0x554292 of _0xbcfd85['getMarkers']()){const _0x58d79a=_0x554292['getRange']()['getContainedElement']();if(_0x58d79a){if(_0x58d79a['is']('element','tableCellSuggestion')&&Ke(_0x58d79a)){_0xbcfd85['removeMarker'](_0x554292['name']),_0x29108e['add'](_0x58d79a),_0x52cdf9=!0x0;const _0x6d5962=_0x58d79a['nextSibling'],_0x209522=_0x58d79a['previousSibling'],_0x19b4cd=_0x6d5962&&_0x6d5962['is']('element','tableCellSuggestion'),_0x17e459=_0x209522&&_0x209522['is']('element','tableCellSuggestion');_0x19b4cd&&!_0x29108e['has'](_0x6d5962)&&_0x153ff9['add'](_0x6d5962),_0x17e459&&!_0x29108e['has'](_0x209522)&&_0x153ff9['add'](_0x209522);}else _0x58d79a['is']('element','paragraph')&&_0x58d79a['isEmpty']&&(_0xbcfd85['removeMarker'](_0x554292['name']),_0x52cdf9=!0x0);}}else{if('tablePasteCell'==_0xbcfd85['subType']){if(!_0xbcfd85['attributes']||!_0xbcfd85['attributes']['tablePasteChainId'])continue;const _0x2113a6=_0xbcfd85['attributes']['markerAttributes'];if(_0x2113a6&&Object['keys'](_0x2113a6)['length'])continue;const _0x2269f7=_0xbcfd85['attributes']['tablePasteChainId'];let _0xb310f7=!0x0,_0x2ed552=!0x0;for(const _0xe8738a of _0x24bd11)if(_0xe8738a['subType']&&_0xe8738a['subType']['startsWith']('tablePaste')){if(!_0xe8738a['attributes']['tablePasteChainId']){_0x2ed552=!0x1;break;}if(_0xe8738a['id']!=_0xbcfd85['id']&&_0xe8738a['attributes']['tablePasteChainId']==_0x2269f7){_0xb310f7=!0x1;break;}}_0x2ed552&&_0xb310f7&&(_0xbcfd85['removeMarkers'](),_0x52cdf9=!0x0);}}for(const _0x23757a of _0x29108e)_0xfc1bd3['remove'](_0x23757a);for(const _0x1d72b0 of _0x153ff9)_0xfc1bd3['unwrap'](_0x1d72b0);return _0x52cdf9;}),_0x22b1dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7a3b6d=>_0x2182a7(_0x7a3b6d),'converterPriority':'high'}),_0x22b1dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c2ff4,_0x143da5)=>_0x143da5['options']['showSuggestionHighlights']?_0x2182a7(_0x5c2ff4,!0x1):null,'converterPriority':'high'});const _0x33563d=_0x22b1dc['editing']['view'];this['listenTo'](_0x33563d['document'],'clipboardOutput',(_0x569a6b,_0x26e708)=>{const _0x21f946=[];for(const _0x5c48e8 of _0x33563d['createRangeIn'](_0x26e708['content'])['getItems']())_0x5c48e8['is']('element','suggestion-td')&&_0x21f946['push'](_0x5c48e8);_0x33563d['change'](_0x1a7ed9=>{for(const _0x3cdf70 of _0x21f946)_0x1a7ed9['move'](_0x1a7ed9['createRangeIn'](_0x3cdf70),_0x1a7ed9['createPositionBefore'](_0x3cdf70)),_0x1a7ed9['remove'](_0x3cdf70);});});}};function Ke(_0x3a864a){if(_0x3a864a['isEmpty'])return!0x0;const _0x3aad6b=_0x3a864a['getChild'](0x0);return _0x3aad6b['is']('element','paragraph')&&_0x3aad6b['isEmpty'];}function Xe(_0x132966,_0x147108={},_0x4e343b){for(const {isAnchor:_0x2d79c4,cellHeight:_0x36a13d,cellWidth:_0x237368}of _0x4e343b['createTableWalker'](_0x132966,{'includeAllSlots':!0x0,..._0x147108}))if(!_0x2d79c4||0x1!=_0x36a13d||0x1!=_0x237368)return!0x1;return!0x0;}var qe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e4bc0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4bc0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x3e4bc0['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0xb4498e=_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x9b1ac1,_0x697693)=>{_0xb4498e(_0x9b1ac1,_0x697693),this['_restoreCellWidths'](_0x9b1ac1[0x0]['start']['nodeAfter'],_0x697693['commandParams'][0x0]['cellWidths']);}),_0x3e4bc0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xfd2ec,_0x379853){const _0x5ca75f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa1367a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x487620=_0x379853['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x48f233=_0xa1367a['getColumnGroupElement'](_0x487620);let _0x120b21=_0x48f233?_0xa1367a['getTableColumnsWidths'](_0x48f233):null,_0x526f95=_0x487620['getAttribute']('tableWidth')||null;const _0x537ddc=_0x379853['tableWidth']||_0x526f95,_0x5019dc=_0x379853['columnWidths']||_0x120b21;let _0x4e847e=this['_getCellWidths'](_0x487620);const _0x34a3b4=this['_foldResizeTableSuggestion'](_0x487620);_0x34a3b4&&(_0x526f95=_0x34a3b4['tableWidth'],_0x120b21=_0x34a3b4['columnWidths'],_0x4e847e=_0x34a3b4['cellWidths']||_0x4e847e),_0xfd2ec({'table':_0x487620,'tableWidth':_0x537ddc,'columnWidths':_0x5019dc}),_0x5ca75f['markBlockFormat'](_0x487620,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x526f95,'columnWidths':_0x120b21,'cellWidths':_0x4e847e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x2cfcd9,_0x4537aa={}){if(void 0x0===_0x4537aa['value']||''===_0x4537aa['value'])return void _0x2cfcd9(_0x4537aa);const _0x5818e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf444=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ca04c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x4537aa['batch']||(_0x4537aa['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x4537aa['batch'],()=>{const _0x544c75=_0x3cf444['getColumnGroupElement'](_0x5ca04c);let _0x26ff1b=_0x544c75?_0x3cf444['getTableColumnsWidths'](_0x544c75):null,_0x5adbda=_0x5ca04c['getAttribute']('tableWidth')||null,_0x3bfdef=this['_getCellWidths'](_0x5ca04c);const _0x390f37=this['_foldResizeTableSuggestion'](_0x5ca04c,!0x0);_0x390f37&&(_0x5adbda=_0x390f37['tableWidth'],_0x26ff1b=_0x390f37['columnWidths'],_0x3bfdef=_0x390f37['cellWidths']||_0x3bfdef),_0x2cfcd9(_0x4537aa),_0x5818e9['markBlockFormat'](_0x5ca04c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5adbda,'columnWidths':_0x26ff1b,'cellWidths':_0x3bfdef}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x3ffa6c,_0x3b3167=!0x1){const _0xc7112e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f6e5c=this['editor']['plugins']['get']('Users')['me'];for(const _0x397294 of _0xc7112e['getSuggestions']({'skipNotAttached':!0x0})){const _0x23d575=_0x397294['getContainedElement']();if('resizeTable'===_0x397294['subType']&&_0x23d575===_0x3ffa6c){_0x397294['author']!==_0x3f6e5c&&(_0x3b3167?_0x397294['removeMarkers']():_0x397294['discard']());const _0x1a3b97=_0x397294['data']['commandParams'];return{'tableWidth':_0x1a3b97[0x0]['tableWidth'],'columnWidths':_0x1a3b97[0x0]['columnWidths'],'cellWidths':_0x1a3b97[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x68d0a6){const _0x374d54=[];for(const _0x5f20fe of _0x68d0a6['getChildren']())if(_0x5f20fe['is']('element','tableRow')){for(const _0x400d8f of _0x5f20fe['getChildren']())_0x374d54['push'](_0x400d8f['getAttribute']('tableCellWidth')||null);}return _0x374d54;}_restoreCellWidths(_0x120287,_0x52d84c){_0x52d84c&&this['editor']['model']['change'](_0x3e7ddb=>{let _0x109049=0x0;for(const _0x42b9f7 of _0x120287['getChildren']())if(_0x42b9f7['is']('element','tableRow'))for(const _0x308774 of _0x42b9f7['getChildren']()){const _0x1d5e5e=_0x52d84c[_0x109049++];_0x1d5e5e&&_0x3e7ddb['setAttribute']('tableCellWidth',_0x1d5e5e,_0x308774);}});}handleSuggestionDescription(_0x47f410){if('formatBlock'!=_0x47f410['type']&&'formatInline'!=_0x47f410['type'])return;const {data:_0x41cabc}=_0x47f410;return _0x41cabc&&'resizeTable'===_0x41cabc['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x548d2a{afterInit(){const _0x3b290c=this['editor'];_0x3b290c['plugins']['has']('Template')&&_0x3b290c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x548d2a{afterInit(){const _0x4e3ff8=this['editor'];if(!_0x4e3ff8['commands']['get']('insertTableOfContents'))return;_0x4e3ff8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7db514=_0x4e3ff8['plugins']['get']('TrackChangesEditing'),_0x560300=_0x4e3ff8['locale'];_0x7db514['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1910cf=>Ot(_0x560300,'ELEMENT_TABLE_OF_CONTENTS',_0x1910cf));}},Ze=class extends _0x548d2a{afterInit(){const _0x1b50e8=this['editor'];_0x1b50e8['plugins']['has']('Title')&&(_0x1b50e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x1b50e8['locale'],'ELEMENT_TITLE')),_0x1b50e8['model']['document']['registerPostFixer'](_0x3ce0f0=>{let _0x53162e=!0x1;const _0x114fac=Array['from'](_0x1b50e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ad369,data:_0x4cd636}of _0x114fac){const {group:_0x4fa507}=et(_0x1ad369);if('suggestion'!==_0x4fa507||!_0x4cd636['newRange'])continue;const _0x99d2cc=_0x4cd636['newRange'],_0x5caf8a=_0x99d2cc['end']['nodeBefore'];if(!_0x5caf8a||!_0x5caf8a['is']('element','title-content'))continue;if(!_0x99d2cc['start']['isTouching'](_0x99d2cc['end']))continue;const _0xb4c147=_0x1b50e8['model']['schema']['getNearestSelectionRange'](_0x99d2cc['end'],'forward');if(_0xb4c147&&_0xb4c147['isCollapsed']){const _0x15c318=_0x3ce0f0['createRange'](_0x99d2cc['start'],_0xb4c147['start']);_0x15c318['isEqual'](_0x99d2cc)||(_0x3ce0f0['updateMarker'](_0x1ad369,{'range':_0x15c318}),_0x53162e=!0x0);}_0x53162e||(_0x3ce0f0['removeMarker'](_0x1ad369),_0x53162e=!0x0);}return _0x53162e;}));}},Je=class extends _0x548d2a{afterInit(){const _0x2fb64f=this['editor'],_0x3fc01a=_0x2fb64f['plugins']['get']('TrackChangesEditing');_0x2fb64f['plugins']['has']('Uploadcare')&&(_0x3fc01a['enableCommand']('uploadcare'),_0x2fb64f['plugins']['has']('UploadcareImageEdit')&&(_0x3fc01a['enableCommand']('uploadcareImageEdit'),_0x3fc01a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3fc01a['descriptionFactory']['registerDescriptionCallback'](_0xeac986=>{if('attribute'!=_0xeac986['type'])return;const {data:_0xbbc2bb}=_0xeac986;return _0xbbc2bb&&'uploadcareImageId'==_0xbbc2bb['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x548d2a{afterInit(){const _0x3702c7=this['editor'],_0x1f5f35=_0x3702c7['plugins']['get']('TrackChangesEditing');_0x3702c7['plugins']['has']('UndoEditing')&&(_0x1f5f35['enableCommand']('undo'),_0x1f5f35['enableCommand']('redo'));}},en=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5edbac=this['editor'];_0x5edbac['plugins']['has']('TableCaptionEditing')&&_0x5edbac['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x548d2a{tableProperties;tableCellProperties;constructor(_0x1df2b3){super(_0x1df2b3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5888be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x259fa0 of this['tableProperties'])_0x5888be['enableCommand'](_0x259fa0,(_0xdac1f7,_0x2e354a)=>{const _0x2da71a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x259fa0,[_0x2da71a],this['tableProperties'],'tableProperties',_0xdac1f7,_0x2e354a);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x7e62bc,_0x561867)=>this['handleDiscardAction'](this['tableProperties'],_0x7e62bc,_0x561867)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x42bb15 of this['tableCellProperties'])this['editor']['commands']['get'](_0x42bb15)&&_0x5888be['enableCommand'](_0x42bb15,(_0x27594c,_0x36baa0)=>{const _0x4b5039=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x42bb15,_0x4b5039,this['tableCellProperties'],'tableCellProperties',_0x27594c,_0x36baa0);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x370a7d,_0x1312ab)=>this['handleDiscardAction'](this['tableCellProperties'],_0x370a7d,_0x1312ab)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5888be['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5888be['descriptionFactory']['registerDescriptionCallback'](_0x549971=>this['handleSuggestionDescription'](_0x549971)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2d5df0,_0x5a05cd,_0x36596e,_0x2558a5,_0x52e756,_0x3ade68){const _0x2c497d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ade68['batch'],()=>{for(const _0x422987 of _0x5a05cd)if(this['_getSuggestion'](_0x422987,_0x2558a5))_0x52e756(_0x3ade68);else{const _0x278854={};for(const _0x868d37 of _0x36596e){const _0x687eff=_0x422987['getAttribute'](_0x868d37);void 0x0!==_0x687eff&&(_0x278854[_0x868d37]=_0x687eff);}const _0x40dc38=this['_getResizedColumnWidths'](_0x422987);_0x40dc38&&(_0x278854['columnWidths']=_0x40dc38),_0x52e756(_0x3ade68),_0x2c497d['markBlockFormat'](_0x422987,{'commandParams':[_0x278854]},[],_0x2558a5);}});}handleDiscardAction(_0x359549,_0x10a783,_0xe8fd52){const _0x5f3a36=_0x10a783[0x0]['start']['nodeAfter'],_0x2b1688=_0xe8fd52['commandParams'][0x0];this['editor']['model']['change'](_0x124c5f=>{for(const _0xa0d169 of _0x359549)void 0x0!==_0x2b1688[_0xa0d169]?_0x124c5f['setAttribute'](_0xa0d169,_0x2b1688[_0xa0d169],_0x5f3a36):_0x124c5f['removeAttribute'](_0xa0d169,_0x5f3a36);if(_0x2b1688['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0xde26e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21e53b=_0xde26e6['getColumnGroupElement'](_0x5f3a36);if(_0x21e53b){const _0x30033a=_0xde26e6['getTableColumnsWidths'](_0x21e53b),_0x52baa8=_0x5f3a36['getAttribute']('tableWidth');if(('string'==typeof _0x52baa8&&_0x52baa8['trim']()['endsWith']('px'))!==_0x30033a['some'](_0x5efd37=>'string'==typeof _0x5efd37&&_0x5efd37['endsWith']('px'))){const _0x53b5fe=_0xde26e6['getTableColumnElements'](_0x21e53b);_0x2b1688['columnWidths']['forEach']((_0x1fca15,_0x557ec7)=>{_0x53b5fe[_0x557ec7]&&_0x124c5f['setAttribute']('columnWidth',_0x1fca15,_0x53b5fe[_0x557ec7]);});}}}});}_getResizedColumnWidths(_0x2ca692){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2ca692['is']('element','table'))return;const _0x3f6004=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e5637=_0x3f6004['getColumnGroupElement'](_0x2ca692);return _0x1e5637?_0x3f6004['getTableColumnsWidths'](_0x1e5637):void 0x0;}handleSuggestionDescription(_0x2aefd8){if(_0x2aefd8['data'])switch(_0x2aefd8['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x50df5b,_0x1f1f56){const _0x27eb88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x58e866 of _0x27eb88['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a6992=_0x58e866['getContainedElement']();if(_0x58e866['subType']===_0x1f1f56&&_0x2a6992===_0x50df5b)return _0x58e866;}return null;}_registerTablePropertiesAttributes(){const _0x292052=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11585d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3b05bf of _0x11585d){const _0x17c9b2=_0x3b05bf['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x292052['descriptionFactory']['registerAttributeLabel'](_0x3b05bf,Ot(this['editor']['locale'],'FORMAT_'+_0x17c9b2));}}},sn=class extends _0x548d2a{afterInit(){const _0x1213d1=this['editor'];if(!_0x1213d1['plugins']['has']('LineHeight'))return;const _0x49dfa5=_0x1213d1['plugins']['get']('TrackChangesEditing'),_0x11493a=_0x1213d1['locale'];_0x49dfa5['enableDefaultAttributesIntegration']('lineHeight'),_0x49dfa5['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x11493a,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x548d2a{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x625dc5,_0x4fbad8,_0x5036c6,_0x6db56a,_0x140123,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x531c8f){super(_0x531c8f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e01d5,_0x340421,_0x55aadd,_0x6c2c28)=>{this['_model']['change'](()=>{for(const _0x201f0e of[..._0x6c2c28,..._0x55aadd])this['_model']['markers']['has'](_0x201f0e)&&_0x531c8f['editing']['reconvertMarker'](_0x201f0e);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x531c8f['plugins']['get'](_0x625dc5),this['_suggestionsConversion']=_0x531c8f['plugins']['get'](_0x4fbad8),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x531c8f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x531c8f['config']['get']('trackChanges.trackFormatChanges'),_0x531c8f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x531c8f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x531c8f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1b1877=this['editor'];_0x1b1877['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c5add,{writer:_0x3d95e2})=>{let _0x4e93c7='suggestion:'+_0x3c5add['getAttribute']('suggestion-type')+':'+_0x3c5add['getAttribute']('id');return _0x3c5add['getAttribute']('marker-count')&&(_0x4e93c7+=':'+_0x3c5add['getAttribute']('marker-count')),_0x3d95e2['createElement']('$marker',{'data-name':_0x4e93c7});}}),_0x1b1877['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b1877['model']['document']['registerPostFixer'](_0x3aaefa=>{let _0x4502a7=!0x1;const _0x3360d3=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']()),_0xb240aa=new Set();for(const {name:_0x3b02c6,data:_0x5d83e6}of _0x3360d3){const {group:_0x5d7e46,type:_0x285c15,subType:_0x596367,id:_0x5f45c0}=et(_0x3b02c6);if('suggestion'!==_0x5d7e46)continue;const _0x485f43=_0x596367?'suggestion:'+_0x285c15+':'+_0x596367+':'+_0x5f45c0:'suggestion:'+_0x285c15+':'+_0x5f45c0,_0x43a627=_0x1b1877['model']['markers']['getMarkersGroup'](_0x485f43),_0x2a1169=_0x1b1877['model']['markers']['get'](_0x3b02c6),_0x399cb5=this['_suggestions']['get'](_0x5f45c0);if(null!=_0x5d83e6['newRange']){'formatInline'==_0x285c15&&(_0x4502a7=_0x4502a7||un(_0x5d83e6['newRange'],_0x3b02c6,_0x3aaefa,_0x1b1877['model']['schema']));const _0x2f0643='attribute'==_0x285c15&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x596367)),_0x46b8b1='attribute'==_0x285c15&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x596367));if(_0x5d83e6['newRange']['isCollapsed']||'$graveyard'==_0x5d83e6['newRange']['root']['rootName']||'formatBlock'==_0x285c15&&!hn(_0x5d83e6['newRange'])||_0x2f0643&&!hn(_0x5d83e6['newRange'])||_0x46b8b1&&gn(_0x5d83e6['newRange'])||'deletion'==_0x285c15&&gn(_0x5d83e6['newRange'])||_0x2a1169&&fn(_0x2a1169,_0x43a627))_0x3aaefa['removeMarker'](_0x3b02c6),_0x4502a7=!0x0;else{if(!_0x399cb5||!_0x399cb5['isInContent'])continue;if(_0x5d83e6['newRange']&&_0x5d83e6['oldRange']&&_0x5d83e6['newRange']['isEqual'](_0x5d83e6['oldRange']))continue;_0xb240aa['add'](_0x399cb5);}}}return _0xb240aa['size']>0x0&&(_0x4502a7=!!this['_joinWithAdjacentSuggestions'](_0xb240aa)||_0x4502a7),_0x4502a7;}),_0x1b1877['model']['document']['registerPostFixer'](_0x3f697f=>{let _0x7d2be3=!0x1;for(const _0x2e8960 of _0x1b1877['model']['document']['differ']['getChanges']())if('insert'==_0x2e8960['type'])for(const _0x1b79cf of this['_suggestions']['values']()){if(_0x1b79cf['isMultiRange']||!_0x1b79cf['isInContent'])continue;const _0x3bcb5c='formatBlock'==_0x1b79cf['type'],_0x3b75cd=this['_getAttributeKey'](_0x1b79cf),_0xe0bf56=_0x3b75cd&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b75cd);if(!_0x3bcb5c&&!_0xe0bf56)continue;const _0x16b347=_0x1b79cf['getFirstRange']();if(_0x16b347['start']['parent']!=_0x16b347['end']['parent']&&!_0x16b347['end']['isAtEnd']){const _0x30dbe7=_0x1b1877['model']['createPositionAt'](_0x16b347['start']['nodeAfter'],'end'),_0x576acf=_0x1b1877['model']['createRange'](_0x16b347['start'],_0x30dbe7);_0x3f697f['updateMarker'](_0x1b79cf['getFirstMarker'](),{'range':_0x576acf}),_0x7d2be3=!0x0;}}return _0x7d2be3;}),_0x1b1877['model']['document']['registerPostFixer'](_0x29905b=>this['_processAttributeChanges'](_0x29905b)),_0x1b1877['model']['document']['registerPostFixer'](_0x832018=>!_0x832018['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x832018)),_0x1b1877['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b1877['model']['document']['on']('change:data',(_0x5694ad,_0x46d276)=>{if(!_0x46d276['isLocal']||_0x46d276['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x506d94=_0x1b1877['model']['document']['differ']['getChanges']();if(0x0==_0x506d94['length'])return;const _0x3efb42=[],_0x585a81=_0x506d94['filter'](_0x599b21=>'attribute'==_0x599b21['type']),_0x24a52e=_0x506d94['filter'](_0x20f795=>'insert'==_0x20f795['type']&&'$text'!=_0x20f795['name']);for(const _0x65cae3 of _0x585a81)this['_suggestionsConversion']['isRegisteredAttribute'](_0x65cae3['attributeKey'])&&_0x3efb42['push']({'key':_0x65cae3['attributeKey'],'newValue':_0x65cae3['attributeNewValue'],'oldValue':_0x65cae3['attributeOldValue'],'range':mn(_0x65cae3['range'],_0x1b1877['model'])});for(const _0x5d22b1 of _0x24a52e){if('rename'!=_0x5d22b1['action']&&'refresh'!=_0x5d22b1['action'])continue;const _0x33ca00=En(_0x5d22b1['position']['nodeAfter'],_0x1b1877['model']),_0x5926a4=_0x5d22b1['before'];'rename'==_0x5d22b1['action']&&_0x3efb42['push']({'key':rn,'newValue':_0x5d22b1['name'],'oldValue':_0x5926a4['name'],'range':_0x33ca00});for(const [_0x4b8788,_0x4e789b]of _0x5926a4['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b8788))continue;const _0x337743=_0x5d22b1['attributes']['get'](_0x4b8788);_0x4e789b!==_0x337743&&_0x3efb42['push']({'key':_0x4b8788,'newValue':_0x337743,'oldValue':_0x4e789b,'range':_0x33ca00});}for(const [_0x5f0018,_0x3fd68b]of _0x5d22b1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5f0018)&&(_0x5926a4['attributes']['has'](_0x5f0018)||_0x3efb42['push']({'key':_0x5f0018,'newValue':_0x3fd68b,'oldValue':null,'range':_0x33ca00}));}0x0!=_0x3efb42['length']&&_0x1b1877['model']['enqueueChange'](_0x46d276,_0x5a6569=>{const _0xb88a27=_0x1dfb7c();for(const {range:_0x289e94,key:_0x80699c,oldValue:_0x16fb0f,newValue:_0x3312e0}of _0x3efb42)this['markAttributeChange'](_0x289e94,_0x80699c,_0x16fb0f,_0x3312e0,{'groupId':_0xb88a27});this['_reduceExistingSuggestions'](_0x5a6569,_0x3efb42);});},{'priority':'lowest'}),_0x1b1877['model']['markers']['on']('update:suggestion',(_0x29d6d5,_0x1cb229,_0x5deac0)=>{if(null==_0x5deac0){const {id:_0x18f90b}=et(_0x1cb229['name']),_0x4d3ecb=this['_suggestions']['get'](_0x18f90b);_0x4d3ecb&&_0x4d3ecb['addMarkerName'](_0x1cb229['name']);}}),_0x1b1877['model']['document']['on']('change:data',()=>{const _0x256b7d=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']())['filter'](_0x10435e=>'suggestion'===et(_0x10435e['name'])['group']);if(0x0===_0x256b7d['length'])return;_0x256b7d['sort']((_0x499ec8,_0x4acf70)=>{const _0x6cd00e=_0x499ec8['data']['oldRange'],_0x548add=_0x4acf70['data']['oldRange'];return null===_0x6cd00e&&null===_0x548add?0x0:null===_0x6cd00e&&null!==_0x548add?-0x1:null!==_0x6cd00e&&null===_0x548add?0x1:_0x6cd00e['start']['isBefore'](_0x548add['start'])?-0x1:0x1;});const _0x5ab119=new Set(),_0x407246=new Set();for(const {name:_0xc47b0e,data:_0x1c897c}of _0x256b7d){const {id:_0x576c4d}=et(_0xc47b0e);if(null===_0x1c897c['oldRange']){const _0x3ea10a=this['_handleNewSuggestionMarker'](_0xc47b0e);_0x407246['add'](_0x3ea10a);}else{const _0x5c431f=this['_suggestions']['get'](_0x576c4d);null!==_0x1c897c['newRange']||_0x5c431f['isInContent']?(_0x5ab119['add'](_0x5c431f['head']),_0x407246['add'](_0x5c431f)):this['_removeSuggestion'](_0x5c431f);}}_0x407246['size']>0x0&&this['_refreshSuggestionsChain'](_0x407246);for(const _0x3dd4c9 of _0x5ab119)this['fire']('suggestionChanged',_0x3dd4c9);}),_0x1b1877['model']['on']('applyOperation',(_0x57fe2d,_0x1202ee)=>{const _0x1de11c=_0x1202ee[0x0];if(!this['_suggestions']['size'])return;if(!_0x1de11c['isDocumentOperation'])return;if(_0x1de11c['batch']['isUndo']||!_0x1de11c['batch']['isLocal'])return;let _0xbb2acf,_0x48f4ee;switch(_0x1de11c['type']){case'insert':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['position']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;case'split':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['splitPosition']),_0x48f4ee=_0x1b1877['model']['createPositionAt'](_0x1de11c['moveTargetPosition']);break;case'move':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['targetPosition']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;default:return;}const _0x630962=_0x1b1877['model']['createRange'](_0xbb2acf,_0x48f4ee);_0x1b1877['model']['change'](()=>{for(const {suggestion:_0x572b28,meta:_0x4c51d7}of this['_findSuggestions'](_0x630962)){if(_0x572b28['isMultiRange'])continue;if('formatInline'==_0x572b28['type'])continue;const _0x17159b=this['_getAttributeKey'](_0x572b28);if(_0x17159b&&this['_suggestionsConversion']['isBlockAttribute'](_0x17159b)&&'split'!=_0x1de11c['type'])continue;const _0x98cc31=_0x572b28['data']&&_0x572b28['data']['multipleBlocks'];('formatBlock'!=_0x572b28['type']||'split'==_0x1de11c['type']&&!_0x98cc31)&&(_0x4c51d7['containsRangeInObject']||'insertion'==_0x572b28['type']&&_0x4c51d7['isOwn']||_0x572b28['getFirstRange']()['containsRange'](_0x630962)&&this['_breakSuggestionMarker'](_0x572b28,_0xbb2acf,_0x48f4ee));}});},{'priority':'lowest'}),_0x1b1877['model']['on']('deleteContent',(_0x277287,_0x52360d)=>{const _0xf2759=_0x52360d[0x0],_0x498b89=_0x52360d[0x1];if(_0x498b89&&_0x498b89['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf2759['isCollapsed'])return;const _0x549323=_0x1b1877['model']['schema'],{start:_0x279c48,end:_0x4be0d1}=_0xf2759['getFirstRange'](),_0xa1e3f3=_0x279c48['nodeAfter']&&_0x549323['isLimit'](_0x279c48['nodeAfter'])?null:_0x549323['getNearestSelectionRange'](_0x279c48,'forward'),_0x3b6ef9=_0x4be0d1['nodeBefore']&&_0x549323['isLimit'](_0x4be0d1['nodeBefore'])?null:_0x549323['getNearestSelectionRange'](_0x4be0d1,'backward'),_0x391a63=_0x1b1877['model']['createRange'](_0xa1e3f3?_0xa1e3f3['start']:_0x279c48,_0x3b6ef9?_0x3b6ef9['end']:_0x4be0d1);_0x1b1877['model']['change'](_0x3c0df4=>{this['markDeletion'](_0x391a63);const _0x4c5d60=_0x1b1877['model']['schema']['getNearestSelectionRange'](_0x391a63['start']);_0xf2759['is']('documentSelection')?_0x3c0df4['setSelection'](_0x4c5d60):_0xf2759['setTo'](_0x4c5d60);}),_0x277287['stop']();},{'priority':_0x5e908b['normal']+0xa}),_0x1b1877['model']['on']('insertContent',(_0x4fa226,_0x34bc1b)=>{const _0x5930a1=_0x34bc1b[_0x34bc1b['length']-0x1];_0x5930a1&&_0x5930a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b1877['model']['change'](()=>{let _0x10cd33=_0x1b1877['model']['insertContent'](_0x34bc1b[0x0],_0x34bc1b[0x1],_0x34bc1b[0x2],{'forceDefaultExecution':!0x0});if(!_0x10cd33)return;_0x4fa226['return']=_0x10cd33['clone']();const _0x12e1a4=_0x10cd33['end']['nodeBefore'],_0x357deb=_0x1b1877['model']['schema'];_0x12e1a4&&_0x357deb['isBlock'](_0x12e1a4)&&!_0x357deb['isObject'](_0x12e1a4)&&(_0x10cd33=_0x1b1877['model']['createRange'](_0x10cd33['start'],_0x1b1877['model']['createPositionAt'](_0x12e1a4,'end'))),this['markInsertion'](_0x10cd33);}),_0x4fa226['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26c4ff=new pt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('acceptSuggestion',_0x26c4ff),this['enableCommand']('acceptSuggestion');const _0x98c2a6=new Lt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('discardSuggestion',_0x98c2a6),this['enableCommand']('discardSuggestion'),_0x1b1877['commands']['add']('acceptAllSuggestions',new yt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b1877['commands']['add']('discardAllSuggestions',new yt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b1877['commands']['add']('acceptSelectedSuggestions',new Nt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b1877['commands']['add']('discardSelectedSuggestions',new Nt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e9652=_0x1b1877['plugins']['get'](_0x625dc5);this['listenTo'](_0x3e9652,'addComment',(_0x160bf7,{threadId:_0xc58a00})=>{const _0x2b1e45=this['_suggestions']['get'](_0xc58a00);_0x2b1e45&&_0x2b1e45['commentThread']&&0x1===_0x2b1e45['commentThread']['length']&&this['_updateSuggestionData'](_0xc58a00,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e9652,'removeComment',(_0x12c0a0,{threadId:_0x426a14})=>{const _0x3adf8e=this['_suggestions']['get'](_0x426a14);_0x3adf8e&&_0x3adf8e['commentThread']&&!_0x3adf8e['commentThread']['length']&&this['_updateSuggestionData'](_0x426a14,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x585675){const _0x4a9385='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0xf6046=0x79128,_0x50c0fc=window['Date']['now'](),_0x226420=_0x585675['editor'],_0x5a4556=new window['Promise'](_0x45036e=>{_0x226420['once']('ready',_0x45036e);}),_0x16721c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xe45b36=_0x226420['config']['get']('licenseKey');async function _0x4e5db8(){let _0x1e80e1,_0x5186ef=null,_0x22570f=null;try{return'GPL'==_0xe45b36?'NotAllowed':(_0x1e80e1=_0x401ea7(),_0x1e80e1?(_0x1e80e1['usageEndpoint']&&(_0x22570f=_0x1b2ace(_0x1e80e1['usageEndpoint'],_0x1e80e1['jti'])),await _0x835f87()?_0x349023()?_0x79003e()?'Expired':_0x510e99()?('evaluation'==_0x1e80e1['licenseType']&&(_0x5186ef=_0x57b6dc('EvaluationLimit')),await _0x272569()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x79003e(){const _0x214292=['evaluation','trial']['includes'](_0x1e80e1['licenseType'])?_0x50c0fc/0x3e8:0xe10*_0xf6046;return _0x1e80e1['exp']<_0x214292;}function _0x349023(){const _0x260871=_0x1e80e1['features'];if(!_0x260871)return!0x1;if(_0x260871['includes']('*'))return!0x0;if(_0x260871['includes']('TC'))return!0x0;if(_0x260871['includes']('RTC')){if(_0x139882())return!0x0;if(_0x413fe2()||_0x546bcc())return!0x0;}return!0x1;}function _0x510e99(){const _0x5c1e88=_0x1e80e1['licensedHosts'];if(!_0x5c1e88||0x0==_0x5c1e88['length'])return!0x0;const {hostname:_0x1d0014}=new URL(window['location']['href']);if(_0x5c1e88['includes'](_0x1d0014))return!0x0;const _0x3cc249=_0x1d0014['split']('.');return _0x5c1e88['filter'](_0x292313=>_0x292313['includes']('*'))['map'](_0x1ef3fd=>_0x1ef3fd['split']('.'))['filter'](_0x3c216a=>_0x3c216a['length']<=_0x3cc249['length'])['map'](_0x1c5c62=>Array(_0x3cc249['length']-_0x1c5c62['length'])['fill']('*'===_0x1c5c62[0x0]?'*':'')['concat'](_0x1c5c62))['some'](_0x410b01=>_0x3cc249['every']((_0x433654,_0x200ffc)=>_0x410b01[_0x200ffc]===_0x433654||'*'===_0x410b01[_0x200ffc]));}function _0x272569(){return _0x5186ef&&_0x22570f?new window['Promise']((_0x239861,_0x567645)=>{_0x5186ef['then'](_0x239861,_0x567645),_0x22570f['then'](_0x4bc531=>{'Valid'!=_0x4bc531&&_0x239861(_0x4bc531);},_0x567645);}):_0x5186ef||_0x22570f||'Valid';}}function _0x1b2ace(_0x29b589,_0x194d38){return new window['Promise'](_0x144d3f=>{if(_0x4f7680())return _0x144d3f('Valid');_0x31cdac(),_0x226420['decorate']('_sendUsageRequest');let _0x266454=!0x1;const _0x1c39d6=_0x1dfb7c();function _0x4e28e8(_0x3af1a4){return!!_0x3af1a4&&('object'==typeof _0x3af1a4||'function'==typeof _0x3af1a4)&&'function'==typeof _0x3af1a4['then']&&'function'==typeof _0x3af1a4['catch'];}function _0x4f6bcb(_0x20ea27){_0x2b88da(_0x20ea27)['then'](_0x2c6309=>_0x2c6309&&'ok'==_0x2c6309['status']?_0x5ce06c(_0x538ad9(_0x1c39d6+_0x194d38))!=_0x2c6309['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x26240d=>(_0x3eef28(),_0x26240d),()=>{const _0x4c2496=_0x5792ec();return null==_0x4c2496?(_0x3eef28(),'Valid'):_0x50c0fc-_0x4c2496>0x240c8400?'UsageLimit':'Valid';})['then'](_0x144d3f)['catch'](()=>{_0x144d3f('UsageLimit');});const _0x2b29ee=0x36ee80;function _0x3eef28(){const _0x2cb67d='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x3d3f50=_0x163873(_0x5ce06c(window['Math']['ceil'](_0x50c0fc/_0x2b29ee)));window['localStorage']['setItem'](_0x2cb67d,_0x3d3f50);}function _0x5792ec(){const _0x1f9f95='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x4374ad=window['localStorage']['getItem'](_0x1f9f95);return _0x4374ad?window['parseInt'](_0x163873(_0x4374ad),0x10)*_0x2b29ee:null;}function _0x2b88da(_0x5527a6){return new window['Promise']((_0x2f17aa,_0x48e668)=>{_0x5527a6['then'](_0x2f17aa,_0x48e668),window['setTimeout'](_0x48e668,0x1d4c0);});}}_0x226420['on']('_sendUsageRequest',(_0x31e391,_0x917fc4)=>{if(_0x917fc4[0x0]!=_0x29b589)return _0x144d3f('UsageLimit');_0x917fc4[0x1]={..._0x917fc4[0x1],'requestId':_0x1c39d6};},{'priority':'high'}),_0x226420['on']('_sendUsageRequest',_0x35f06e=>{_0x4e28e8(_0x35f06e['return'])&&(_0x266454=!0x0,_0x4f6bcb(_0x35f06e['return']));},{'priority':'low'}),_0x5a4556['then'](()=>{_0x266454||_0x144d3f('UsageLimit');});});function _0x4f7680(){return'auto'==_0x226420['editing']['view']['_overlayModeHint'];}function _0x31cdac(){_0x226420['editing']['view']['_overlayModeHint']='auto';}}function _0x57b6dc(_0x54cd92){const _0x25fb0a=[new window['Promise'](_0x15e383=>setTimeout(_0x15e383,0x93ecc)),_0x5a4556['then'](()=>new window['Promise'](_0x38a1a9=>{let _0x10b3d7=0x0;_0x226420['model']['on']('applyOperation',(_0x13f40b,_0x424dd8)=>{_0x424dd8[0x0]['isDocumentOperation']&&_0x10b3d7++,0x5e8==_0x10b3d7&&(_0x38a1a9(),_0x13f40b['off']());});}))];return window['Promise']['race'](_0x25fb0a)['then'](()=>_0x54cd92);}async function _0x4dd158(){await _0x5a4556,_0x226420['model']['change']=_0x160afa,_0x226420['model']['enqueueChange']=_0x160afa,_0x226420['enableReadOnlyMode']('model');}function _0x139882(){return _0x509c73('WebSocketGateway')&&'connected'==_0x26270f('WebSocketGateway')['state'];}function _0x413fe2(){return _0x509c73('RevisionViewerIntegration');}function _0x546bcc(){return _0x509c73('TrackChangesDataGetter');}function _0x1750c1(_0x58b910){const _0x3bc73a=_0x3ffb27();_0x226420[_0x3bc73a]='trackChangesLicenseKey'+_0x58b910,'Valid'!=_0x58b910&&_0x4dd158();}function _0x3ffb27(){const _0x160b11=window['String'](window['performance']['now']())['replace']('.','');let _0x535130='R';for(let _0x212d82=0x0;_0x212d82<_0x160b11['length'];_0x212d82+=0x2){let _0x258958=window['parseInt'](_0x160b11['substring'](_0x212d82,_0x212d82+0x2));_0x258958>=0x3e&&(_0x258958-=0x3e),_0x535130+=_0x4a9385[_0x258958];}return _0x535130;}function _0x401ea7(){const _0x3aeef7=_0xe45b36['split']('.');if(0x3!=_0x3aeef7['length'])return null;return _0x58805f(_0x3aeef7[0x1]);function _0x58805f(_0x4ed7fc){const _0x5d78ac=_0x53e05a(_0x4ed7fc);return _0x5d78ac&&_0x414b2b()?_0x5d78ac:null;function _0x414b2b(){const _0x3afd78=_0x5d78ac['jti'],_0x209254=window['parseInt'](_0x3afd78['substring'](_0x3afd78['length']-0x8),0x10),_0x235e85={..._0x5d78ac,'jti':_0x3afd78['substring'](0x0,_0x3afd78['length']-0x8)};return delete _0x235e85['vc'],_0x538ad9(_0x235e85)==_0x209254;}}}async function _0x835f87(){let _0x5deb7d=!0x0;try{const [_0x2f898f,_0x5ba9a8,_0x8a395]=_0xe45b36['split']('.');return _0x1c4265(_0x2f898f),await _0x430f3a(_0x2f898f,_0x5ba9a8,_0x8a395),_0x5deb7d;}catch{return!0x1;}function _0x1c4265(_0x19fadd){const _0x2abba1=_0x53e05a(_0x19fadd);_0x2abba1&&'ES256'==_0x2abba1['alg']||(_0x5deb7d=!0x1);}async function _0x430f3a(_0x2f0d5d,_0x4e7619,_0x14f218){const _0x1c3904=window['Uint8Array']['from'](_0x2ed528(_0x14f218),_0x4287a7=>_0x4287a7['charCodeAt'](0x0)),_0xf4edd7=new window['TextEncoder']()['encode'](_0x2f0d5d+'.'+_0x4e7619),_0x1a3763=window['crypto']['subtle'];if(!_0x1a3763)return;const _0x5e3338=await _0x1a3763['importKey']('jwk',_0x16721c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1a3763['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5e3338,_0x1c3904,_0xf4edd7)||(_0x5deb7d=!0x1);}}function _0x53e05a(_0x18b5f9){return _0x18b5f9['startsWith']('ey')?JSON['parse'](_0x2ed528(_0x18b5f9)):null;}function _0x2ed528(_0x4f4938){return window['atob'](_0x4f4938['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x538ad9(_0x318f7c){let _0xff9eb4=0x1505;function _0x38c2cf(_0x369c80){for(let _0x178e1b=0x0;_0x178e1b<_0x369c80['length'];_0x178e1b++){const _0x50686b=_0x369c80['charCodeAt'](_0x178e1b);_0xff9eb4=(_0xff9eb4<<0x5)+_0xff9eb4+_0x50686b,_0xff9eb4&=_0xff9eb4;}}function _0x2c12dc(_0x1d4f01){Array['isArray'](_0x1d4f01)?_0x1d4f01['forEach'](_0x2c12dc):_0x1d4f01&&'object'==typeof _0x1d4f01?Object['entries'](_0x1d4f01)['sort']()['forEach'](([_0x23baa6,_0x217fea])=>{_0x38c2cf(_0x23baa6),_0x2c12dc(_0x217fea);}):_0x38c2cf(window['String'](_0x1d4f01));}return _0x2c12dc(_0x318f7c),_0xff9eb4>>>0x0;}function _0x5ce06c(_0x2c4a13){return _0x2c4a13['toString'](0x10)['padStart'](0x8,'0');}function _0x163873(_0x706864){return _0x706864['split']('')['reverse']()['join']('');}function _0x509c73(_0x219a67){return _0x226420['plugins']['has'](_0x219a67);}function _0x26270f(_0x43c0e0){return _0x226420['plugins']['get'](_0x43c0e0);}function _0x160afa(){}_0x1750c1(await _0x4e5db8());}(this);}set adapter(_0x160fe8){if(this['_adapter'])throw new _0x4ce3e1('track-changes-adapter-already-set',this);this['_adapter']=_0x160fe8;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1ad71a=!0x1,toJSON:_0x3b0a2e=!0x1}={}){const _0x225195=[];for(const _0x5246c8 of this['_suggestions']['values']())_0x1ad71a&&!_0x5246c8['isInContent']||_0x225195['push'](_0x5246c8);return _0x3b0a2e?_0x225195['map'](_0x4af92a=>_0x4af92a['toJSON']()):_0x225195;}getSuggestion(_0x16cf20){const _0xa89856=this['_suggestions']['get'](_0x16cf20);if(!_0xa89856)throw new _0x4ce3e1('track-changes-suggestion-not-found',this);return _0xa89856;}hasSuggestion(_0x2972aa){return this['_suggestions']['has'](_0x2972aa);}addSuggestionData(_0x44bdae){const {authorId:_0x1ab59b,id:_0x2a6cc5,originalSuggestionId:_0x1a9197,attributes:_0x1c7ee6}=_0x44bdae,[_0x3b60a8,_0x482657]=_0x44bdae['type']['split'](':'),_0x53ec77=this['_suggestions']['get'](_0x2a6cc5)||this['_createSuggestion'](_0x3b60a8,_0x482657,_0x2a6cc5,_0x1ab59b,_0x1c7ee6,_0x1a9197);if(this['_addThreadToSuggestion'](_0x53ec77),this['_checkSuggestionCorrectness'](_0x53ec77,_0x3b60a8,_0x482657||null,_0x1ab59b),_0x53ec77['createdAt']=_0x44bdae['createdAt'],_0x53ec77['_isDataLoaded']=!0x0,_0x1c7ee6&&_0x1c7ee6['@external']){const _0x2609c6=_0x1c7ee6['@external'],_0x52e6d4=this['_getExternalAuthor'](_0x2609c6['authorName']);_0x53ec77['authoredAt']=_0x2609c6['createdAt'],_0x53ec77['author']=_0x52e6d4;}else _0x53ec77['authoredAt']=_0x44bdae['createdAt'];switch(_0x44bdae['data']&&(_0x53ec77['data']=_0x44bdae['data']),_0x44bdae['attributes']&&(_0x53ec77['attributes']=_0x44bdae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53ec77['_saved']=!0x0),this['_suggestionState']['get'](_0x53ec77)){case'notReady':this['_suggestionState']['set'](_0x53ec77,'dataReady');break;case'markerReady':_0x53ec77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53ec77])),this['_refreshSuggestionsChain'](new Set([_0x53ec77])),this['_suggestionState']['set'](_0x53ec77,'ready'),this['fire']('suggestionLoaded',_0x53ec77)):this['_suggestionState']['set'](_0x53ec77,'removed');}return _0x53ec77;}acceptSuggestion(_0x38cd6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a20e0 of _0x38cd6f['getAllAdjacentSuggestions']())_0x2a20e0['accept']();});});}discardSuggestion(_0x52cc1e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d0631 of _0x52cc1e['getAllAdjacentSuggestions']())_0x2d0631['discard']();});});}['enableCommand'](_0x117994,_0x50af5e){const _0x463d30=this['editor']['commands']['get'](_0x117994);if(!_0x463d30)throw new _0x4ce3e1('track-changes-command-not-found',this,{'commandName':_0x117994});if(this['_enabledCommands']['has'](_0x463d30))throw new _0x4ce3e1('track-changes-enable-command-twice',this,{'commandName':_0x117994});this['_enabledCommands']['add'](_0x463d30),_0x50af5e&&_0x463d30['on']('execute',(_0x273711,_0x2e9cf1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e9cf1['length']>0x0&&_0x2e9cf1[_0x2e9cf1['length']-0x1]&&_0x2e9cf1[_0x2e9cf1['length']-0x1]['forceDefaultExecution']?_0x2e9cf1['pop']():(_0x273711['return']=_0x50af5e((..._0x1050ef)=>_0x463d30['execute'](..._0x1050ef,{'forceDefaultExecution':!0x0}),..._0x2e9cf1),_0x273711['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3ddbe5){let _0x3c5704,_0x2cd51a;const _0x19e903=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c5704=_0x3ddbe5();}catch(_0x2ff273){_0x2cd51a=_0x2ff273;}return _0x19e903||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2cd51a&&_0x4ce3e1['rethrowUnexpectedError'](_0x2cd51a,this),_0x3c5704;}markInsertion(_0xa3e3a3,_0x205b9d=null,_0x3e041a={}){if(_0xa3e3a3['isCollapsed'])return null;const _0x2c0c51=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e041a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5696c9,meta:_0x202222}of this['_findSuggestions'](_0xa3e3a3,'insertion'))if(_0x202222['isOwn']){if(!_0x202222['isNextTo']){if(_0x202222['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x5696c9,_0x3e041a))continue;return _0x5696c9;}if(pn(_0x5696c9,_0x3e041a))return _0x5696c9;this['_breakSuggestionMarker'](_0x5696c9,_0xa3e3a3['start'],_0xa3e3a3['end']);break;}if(_0x205b9d==_0x5696c9['subType']&&pn(_0x5696c9,_0x3e041a)){const _0x1d4de4=_0x5696c9['getFirstRange']();return _0x1d4de4['start']['isEqual'](_0xa3e3a3['end'])?this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0xa3e3a3['start'],_0x1d4de4['end'])):this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0x1d4de4['start'],_0xa3e3a3['end'])),_0x5696c9;}}const _0x380d81=_0x1dfb7c(),_0x1cf8f0=_0x2c0c51['id'],_0x46d68e=_0x205b9d?'insertion:'+_0x205b9d:'insertion',_0x1047a1=this['_setSuggestionData']({'id':_0x380d81,'type':_0x46d68e,'createdAt':new Date(),'authorId':_0x1cf8f0,'attributes':_0x3e041a});return this['_addSuggestionMarker'](_0x46d68e,_0x380d81,_0x1cf8f0,_0xa3e3a3),_0x1047a1;}markMultiRangeInsertion(_0x444462,_0x41839c='multi',_0x2e0953={}){const _0x3b6b81=this['editor']['plugins']['get']('Users')['me'],_0x332a17=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x41839c,'join');this['_trackingSessionId']&&(_0x2e0953['trackingSessionId']=this['_trackingSessionId']);for(const _0x28b3cd of this['getSuggestions']())if(_0x28b3cd['author']['id']==_0x3b6b81['id']&&'insertion'==_0x28b3cd['type']&&_0x28b3cd['subType']==_0x41839c&&pn(_0x28b3cd,_0x2e0953)&&(_0x332a17(_0x28b3cd['getRanges'](),_0x444462)||_0x332a17(_0x444462,_0x28b3cd['getRanges']()))){for(const _0x225495 of _0x444462)_0x28b3cd['addRange'](_0x225495);return _0x28b3cd;}for(const {suggestion:_0x556260,meta:_0x57ca3f}of this['_findSuggestions'](_0x444462,'insertion')){if(!_0x57ca3f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57ca3f['containsRangeInObject'])continue;if(!pn(_0x556260,_0x2e0953))continue;let _0x560926=!0x0;for(const _0x29abb4 of _0x556260['getRanges']())for(const _0x3689a7 of _0x444462)if(!_0x29abb4['containsRange'](_0x3689a7)){_0x560926=!0x1;break;}if(_0x560926)return _0x556260;}const _0x3d925a=_0x1dfb7c(),_0x11ab34=_0x3b6b81['id'],_0x3fbf33='insertion:'+_0x41839c,_0x532149=this['_setSuggestionData']({'id':_0x3d925a,'type':_0x3fbf33,'createdAt':new Date(),'authorId':_0x11ab34,'attributes':_0x2e0953});for(const _0x2033fc of _0x444462)this['_addSuggestionMarker'](_0x3fbf33,_0x3d925a,_0x11ab34,_0x2033fc,Mt['getMultiRangeId']());return _0x532149;}markInlineFormat(_0x260ac3,_0xa525f8,_0x1f4472=null,_0x14256d={}){if(_0x1f4472=_0x1f4472||dn(_0xa525f8),_0x260ac3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x14256d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x46c14e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');return this['forceDefaultExecution'](()=>_0x46c14e([_0x260ac3],_0xa525f8,_0x14256d)),null;}const _0x18d6f8=this['editor']['plugins']['get']('Users')['me'],_0x563d2c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb83b2c,meta:_0x37871c}of this['_findSuggestions'](_0x260ac3,'insertion'))_0x37871c['isOwn']&&!_0x37871c['isInsideObject']&&_0x563d2c['push'](..._0xb83b2c['getRanges']());}const _0x178bed=function(_0xb7f275,_0x4a0220){const _0x384566=[];for(const _0x4b881b of _0x4a0220){const _0x40a407=_0xb7f275['getIntersection'](_0x4b881b);_0x40a407&&_0x384566['push'](_0x40a407);}return _0x384566;}(_0x260ac3,_0x563d2c),_0x44b0ec=function(_0x515f38,_0xb4787b){const _0x3c8752=[_0x515f38];for(const _0x3691c2 of _0xb4787b){let _0x508ff6=0x0;for(;_0x508ff6<_0x3c8752['length'];){const _0xa45e9=_0x3c8752[_0x508ff6]['getDifference'](_0x3691c2);_0x3c8752['splice'](_0x508ff6,0x1,..._0xa45e9),_0x508ff6+=_0xa45e9['length'];}}return _0x3c8752;}(_0x260ac3,_0x563d2c);_0x178bed['length']&&this['_model']['change'](()=>{for(const _0x50096b of _0x178bed){const _0x4c381c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');this['forceDefaultExecution'](()=>_0x4c381c([_0x50096b],_0xa525f8,_0x14256d));}});for(const _0x43efe3 of _0x44b0ec){let _0x195da6=null,_0x3c1c0e=_0x43efe3['start'],_0x5d30ae=_0x43efe3['end'];for(const {suggestion:_0x2f034b,meta:_0x1b5638}of this['_findSuggestions'](_0x43efe3,'formatInline')){if(!_0x1b5638['isOwn'])continue;if(_0x2f034b['subType']!=_0x1f4472)continue;if(!pn(_0x2f034b,_0x14256d))continue;const _0x3122c0=_0x2f034b['getFirstRange']();if(_0x3122c0['containsRange'](_0x43efe3,!0x0))return null;_0x3c1c0e=_0x3c1c0e['isBefore'](_0x3122c0['start'])?_0x3c1c0e:_0x3122c0['start'],_0x5d30ae=_0x5d30ae['isAfter'](_0x3122c0['end'])?_0x5d30ae:_0x3122c0['end'],_0x195da6?_0x3122c0['start']['isBefore'](_0x195da6['getFirstRange']()['start'])?(_0x195da6['removeMarkers'](),_0x195da6=_0x2f034b):_0x2f034b['removeMarkers']():_0x195da6=_0x2f034b;}const _0x1fd20e=this['_model']['createRange'](_0x3c1c0e,_0x5d30ae);if(_0x195da6)this['_setSuggestionRange'](_0x195da6,_0x1fd20e);else{const _0xb680f3=_0x1dfb7c(),_0x96984f=_0x18d6f8['id'];this['_setSuggestionData']({'id':_0xb680f3,'type':'formatInline:'+_0x1f4472,'data':_0xa525f8,'createdAt':new Date(),'authorId':_0x96984f,'attributes':_0x14256d}),this['_addSuggestionMarker']('formatInline:'+_0x1f4472,_0xb680f3,_0x96984f,_0x1fd20e);}}return null;}markBlockFormat(_0x329809,_0x2d183f,_0x10793e=[],_0xe3b253=null,_0x23cd7a={}){_0x2d183f['formatGroupId']||(_0x2d183f['formatGroupId']=_0x2d183f['commandName']),_0x2d183f['multipleBlocks']=_0x329809['is']('range'),_0xe3b253=_0xe3b253||dn(_0x2d183f);const _0x250cc9=_0x10793e['map'](_0x3b4739=>En(_0x3b4739,this['_model'])),_0x5cad0d=_0x329809['is']('range')?_0x329809:En(_0x329809,this['_model']);if(this['_trackingSessionId']&&(_0x23cd7a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x447013=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x447013([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}_0x250cc9['push'](_0x5cad0d);let _0xe2adb1=!0x0;for(const _0x21d8da of _0x250cc9)if(!this['_rangeIsInLocalUserInsertion'](_0x21d8da)){_0xe2adb1=!0x1;break;}if(_0xe2adb1&&'always'!==this['_trackFormatChanges']){const _0x429d90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x429d90([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}let _0x5bbcfb=null,_0x1ac2d4=_0x5cad0d['start'],_0x226eb1=_0x5cad0d['end'];for(const {suggestion:_0x592945,meta:_0x7db99e}of this['_findSuggestions'](_0x5cad0d,'formatBlock')){if(!_0x7db99e['isOwn'])continue;if(_0x7db99e['isNextTo']||_0x7db99e['containsRangeInObject']||_0x7db99e['isInsideObject'])continue;if(_0x592945['data']['formatGroupId']!=_0x2d183f['formatGroupId'])continue;if(!pn(_0x592945,_0x23cd7a))continue;const _0x550920=_0x592945['getFirstRange']();if(_0x592945['subType']==_0xe3b253){if(_0x550920['containsRange'](_0x5cad0d,!0x0))return null;_0x1ac2d4=_0x1ac2d4['isBefore'](_0x550920['start'])?_0x1ac2d4:_0x550920['start'],_0x226eb1=_0x226eb1['isAfter'](_0x550920['end'])?_0x226eb1:_0x550920['end'],_0x5bbcfb?_0x550920['start']['isBefore'](_0x5bbcfb['getFirstRange']()['start'])?(_0x5bbcfb['removeMarkers'](),_0x5bbcfb=_0x592945):_0x592945['removeMarkers']():_0x5bbcfb=_0x592945;}else{const _0x555037=_0x5cad0d['getIntersection'](_0x550920);this['_cutOutSuggestionMarker'](_0x592945,_0x555037);}}const _0x1cb665=this['editor']['plugins']['get']('Users')['me'],_0xa45154=_0x1dfb7c(),_0x232bc5=_0x1cb665['id'];if(_0x5bbcfb)return this['_setSuggestionRange'](_0x5bbcfb,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x5bbcfb;{const _0x2bac1f=this['_setSuggestionData']({'id':_0xa45154,'type':'formatBlock:'+_0xe3b253,'data':_0x2d183f,'createdAt':new Date(),'authorId':_0x232bc5,'attributes':_0x23cd7a});return this['_addSuggestionMarker']('formatBlock:'+_0xe3b253,_0xa45154,_0x232bc5,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x2bac1f;}}markMultiRangeBlockFormat(_0x199956,_0x106491,_0x5734d3=[],_0x26902a=null,_0x442a4e={}){_0x106491['formatGroupId']||(_0x106491['formatGroupId']=_0x106491['commandName']);const _0x4b8e0a=_0x199956[0x0];_0x106491['multipleBlocks']=_0x4b8e0a['is']('range'),_0x26902a=_0x26902a||dn(_0x106491);const _0x654097=_0x5734d3['map'](_0x10fd66=>En(_0x10fd66,this['_model'])),_0x3abc29=_0x4b8e0a['is']('range')?_0x199956:_0x199956['map'](_0x5031bc=>En(_0x5031bc,this['_model']));if(this['_trackingSessionId']&&(_0x442a4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x34bb6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x34bb6f(_0x3abc29,_0x106491,_0x442a4e)),null;}_0x654097['push'](..._0x3abc29);let _0x52db1e=!0x0;for(const _0x17cd23 of _0x654097)if(!this['_rangeIsInLocalUserInsertion'](_0x17cd23)){_0x52db1e=!0x1;break;}if(_0x52db1e&&'always'!==this['_trackFormatChanges']){const _0x3e8306=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x3e8306(_0x3abc29,_0x106491,_0x442a4e)),null;}const _0x3405f3=this['editor']['plugins']['get']('Users')['me'];for(const _0x5124f9 of this['getSuggestions']()){const _0x422a8a=_0x5124f9['data'];if(_0x5124f9['author']['id']!=_0x3405f3['id'])continue;if('formatBlock'!=_0x5124f9['type']||_0x422a8a['formatGroupId']!=_0x106491['formatGroupId'])continue;if(!pn(_0x5124f9,_0x442a4e))continue;const _0x4a9236=_0x5124f9['subType']==_0x26902a;for(let _0x1ae7c1=0x0;_0x1ae7c1<_0x3abc29['length'];_0x1ae7c1++){const _0x57cdb8=_0x3abc29[_0x1ae7c1];for(const _0x2ce648 of _0x5124f9['getMarkers']()){const _0x24f10c=_0x2ce648['getRange']();if(_0x57cdb8['isEqual'](_0x24f10c)){_0x4a9236?(_0x3abc29['splice'](_0x1ae7c1,0x1),_0x1ae7c1--):_0x5124f9['removeMarker'](_0x2ce648['name']);break;}}}}if(0x0==_0x3abc29['length'])return null;const _0x45b896=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'join');for(const _0x4c33aa of this['getSuggestions']()){const _0xf470c7=_0x4c33aa['data'];if(_0x4c33aa['author']['id']==_0x3405f3['id']&&('formatBlock'==_0x4c33aa['type']&&_0xf470c7['formatGroupId']==_0x106491['formatGroupId']&&_0x4c33aa['subType']==_0x26902a&&pn(_0x4c33aa,_0x442a4e)&&(_0x45b896(_0x4c33aa['getRanges'](),_0x3abc29)||_0x45b896(_0x3abc29,_0x4c33aa['getRanges']())))){for(const _0xd7a89 of _0x3abc29)_0x4c33aa['addRange'](_0xd7a89);return _0x4c33aa;}}const _0x251791=_0x1dfb7c(),_0xf9f70a=_0x3405f3['id'],_0x172881='formatBlock:'+_0x26902a,_0x37bff5=this['_setSuggestionData']({'id':_0x251791,'type':_0x172881,'data':_0x106491,'createdAt':new Date(),'authorId':_0xf9f70a,'attributes':_0x442a4e});for(const _0xac8ddc of _0x3abc29)this['_addSuggestionMarker'](_0x172881,_0x251791,_0xf9f70a,_0xac8ddc,Mt['getMultiRangeId']());return _0x37bff5;}markDeletion(_0x3f09a1,_0x74e79d=null,_0x1c4436={}){if(_0x3f09a1['isCollapsed'])return null;const _0x4fc682=this['editor']['plugins']['get']('Users')['me'],_0x1613a2=new ot(_0x3f09a1['start'],_0x3f09a1['end']);this['_trackingSessionId']&&(_0x1c4436['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c1e4f,meta:_0x245c6c}of this['_findSuggestions'](_0x1613a2,'insertion'))if(_0x245c6c['isOwn']&&!_0x245c6c['isNextTo']){if(_0x1c1e4f['isMultiRange']){const _0xd6a570=_0x1c1e4f['getRanges']()['filter'](_0x45ce62=>'$graveyard'!=_0x45ce62['root']['rootName']);if(_0xd6a570['every'](_0x150c21=>_0x1613a2['containsRange'](_0x150c21,!0x0))&&_0x1c1e4f['discard'](),_0xd6a570['some'](_0x1af1f7=>_0x1af1f7['containsRange'](_0x1613a2,!0x0))){const _0x1fe8ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x74e79d,'accept');return this['forceDefaultExecution'](()=>_0x1fe8ba([_0x1613a2],null,_0x1c4436)),null;}}else{const _0x4f50e9=_0x1613a2['getIntersection'](_0x1c1e4f['getFirstRange']());null!==_0x4f50e9&&_0x1c1e4f['_onDiscard']([_0x4f50e9],null,_0x1c4436);}}if(_0x1613a2['detach'](),_0x1613a2['isCollapsed']||'$graveyard'==_0x1613a2['root']['rootName'])return null;let _0x30376f=null,_0x1148a6=_0x1613a2['start'],_0x1c81d7=_0x1613a2['end'];const _0x74beac=this['_findSuggestions'](_0x1613a2,'deletion');for(const {suggestion:_0x4b60e2,meta:_0x534675}of _0x74beac){const _0x28821a=this['_model']['createRange'](_0x1148a6,_0x1c81d7);if(_0x534675['isOwn']&&(this['_mergeNestedSuggestions']||!_0x534675['containsRangeInObject']&&!_0x534675['isInsideObject'])){if(_0x4b60e2['isMultiRange']){if(!pn(_0x4b60e2,_0x1c4436))continue;let _0x268cd9=!0x0;for(const _0x904de8 of _0x4b60e2['getRanges']()){if(_0x904de8['containsRange'](_0x28821a,!0x0))return _0x4b60e2;_0x28821a['containsRange'](_0x904de8)||(_0x268cd9=!0x1);}_0x268cd9&&_0x4b60e2['discard']();}else{const _0xfae59e=_0x4b60e2['getFirstRange']();if(_0xfae59e['containsRange'](_0x28821a,!0x0))return _0x4b60e2;if(!pn(_0x4b60e2,_0x1c4436)){_0x28821a['containsRange'](_0xfae59e)?_0x4b60e2['removeMarkers']():_0xfae59e['containsPosition'](_0x1148a6)?_0x1148a6=_0xfae59e['end']:_0xfae59e['containsPosition'](_0x1c81d7)&&(_0x1c81d7=_0xfae59e['start']);continue;}_0x1148a6=_0x1148a6['isBefore'](_0xfae59e['start'])?_0x1148a6:_0xfae59e['start'],_0x1c81d7=_0x1c81d7['isAfter'](_0xfae59e['end'])?_0x1c81d7:_0xfae59e['end'],_0x1c4436=Object['assign']({},_0x4b60e2['attributes']),_0x30376f?_0xfae59e['start']['isBefore'](_0x30376f['getFirstRange']()['start'])?(_0x30376f['removeMarkers'](),_0x30376f=_0x4b60e2):_0x4b60e2['removeMarkers']():_0x30376f=_0x4b60e2;}}}if(_0x30376f)return this['_setSuggestionRange'](_0x30376f,this['_model']['createRange'](_0x1148a6,_0x1c81d7)),_0x30376f;{const _0x3c81c7=_0x1dfb7c(),_0x414609=this['_model']['createRange'](_0x1148a6,_0x1c81d7),_0x4d0724=_0x4fc682['id'],_0x5704ab=_0x74e79d?'deletion:'+_0x74e79d:'deletion',_0x3ebb79=this['_setSuggestionData']({'id':_0x3c81c7,'type':_0x5704ab,'createdAt':new Date(),'authorId':_0x4d0724,'attributes':_0x1c4436});return this['_addSuggestionMarker'](_0x5704ab,_0x3c81c7,_0x4d0724,_0x414609),_0x3ebb79;}}markMultiRangeDeletion(_0x83bfd1,_0x45ba95='multi',_0x213798={}){const _0x2aa4c0=this['editor']['plugins']['get']('Users')['me'],_0x5d06ee=_0x83bfd1['map'](_0x33821d=>new ot(_0x33821d['start'],_0x33821d['end'])),_0x5b026b=new Set();this['_trackingSessionId']&&(_0x213798['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x347c9f,meta:_0x38ada9}of this['_findSuggestions'](_0x5d06ee,'insertion'))_0x38ada9['isOwn']&&!_0x38ada9['isNextTo']&&_0x5b026b['add'](_0x347c9f);for(const _0x4ddea3 of _0x5b026b)if(_0x4ddea3['isMultiRange']){const _0x23558e=_0x4ddea3['getRanges']();if(_0x4ddea3['attributes']&&_0x4ddea3['attributes']['skipNestingCheck']||_0x23558e['every'](_0x5f599a=>_0x5d06ee['some'](_0x359f5b=>_0x359f5b['containsRange'](_0x5f599a,!0x0)))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x17fa6e=>_0x23558e['some'](_0x982ba0=>_0x982ba0['containsRange'](_0x17fa6e,!0x0)))){const _0x208a85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x208a85(_0x83bfd1,null,_0x213798)),null;}}else{const _0x588ec5=_0x4ddea3['getFirstRange']();if(_0x5d06ee['some'](_0xcc8b86=>_0xcc8b86['containsRange'](_0x588ec5,!0x0))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x47f3a7=>_0x588ec5['containsRange'](_0x47f3a7,!0x0))){const _0x12cb29=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x12cb29(_0x5d06ee,null,_0x213798)),null;}}const _0x443350=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'join');let _0x159010=null;for(const _0x21b30a of this['getSuggestions']())if(_0x21b30a['author']['id']==_0x2aa4c0['id']&&_0x21b30a['isInContent']&&'deletion'==_0x21b30a['type']&&_0x21b30a['subType']==_0x45ba95&&pn(_0x21b30a,_0x213798)&&(_0x443350(_0x21b30a['getRanges'](),_0x5d06ee)||_0x443350(_0x5d06ee,_0x21b30a['getRanges']()))){if(_0x159010){if(_0x21b30a['commentThread']&&_0x21b30a['commentThread']['length'])continue;for(const _0xb32d30 of _0x21b30a['getRanges']())_0x159010['isIntersectingWithRange'](_0xb32d30)||_0x159010['addRange'](_0xb32d30);_0x21b30a['removeMarkers']();}else{_0x159010=_0x21b30a;for(const _0x48e4b9 of _0x5d06ee)_0x21b30a['isIntersectingWithRange'](_0x48e4b9)||_0x21b30a['addRange'](_0x48e4b9);}}if(_0x159010)return _0x159010;_0x5b026b['clear']();for(const {suggestion:_0x4119ac,meta:_0x110574}of this['_findSuggestions'](_0x5d06ee,'deletion'))_0x110574['isOwn']&&(this['_mergeNestedSuggestions']||!_0x110574['containsRangeInObject']&&!_0x110574['isInsideObject'])&&pn(_0x4119ac,_0x213798)&&_0x5b026b['add'](_0x4119ac);for(const _0x3b00f6 of _0x5b026b){const _0x25f378=_0x3b00f6['getRanges']();if((!_0x213798||!_0x213798['skipNestingCheck'])&&_0x5d06ee['every'](_0x309f65=>_0x25f378['some'](_0x17ce43=>_0x17ce43['containsRange'](_0x309f65,!0x0))))return _0x3b00f6;_0x3b00f6['attributes']&&_0x3b00f6['attributes']['skipNestingCheck']||_0x25f378['every'](_0x5020f9=>_0x5d06ee['some'](_0x588e92=>_0x588e92['containsRange'](_0x5020f9,!0x0)))&&_0x3b00f6['discard']();}const _0x2e92c5=_0x1dfb7c(),_0x3ca9b2=_0x2aa4c0['id'],_0x2350e5='deletion:'+_0x45ba95,_0x46b377=this['_setSuggestionData']({'id':_0x2e92c5,'type':_0x2350e5,'createdAt':new Date(),'authorId':_0x3ca9b2,'attributes':_0x213798});for(const _0x45179d of _0x5d06ee)_0x45179d['detach'](),_0x45179d['isCollapsed']||'$graveyard'==_0x45179d['root']['rootName']||this['_addSuggestionMarker'](_0x2350e5,_0x2e92c5,_0x3ca9b2,_0x45179d,Mt['getMultiRangeId']());return _0x46b377;}markAttributeChange(_0xdaa491,_0x3922c7,_0x1efd2e,_0x273578,_0x15cc9d){if(_0xdaa491['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x29e6a1=this['editor']['plugins']['get']('Users')['me']['id'],_0x29d0dc=Array['from'](this['_suggestions']['values']())['filter'](_0x2abda3=>'attribute'==_0x2abda3['type']&&_0x2abda3['data']['key']==_0x3922c7&&_0x2abda3['isIntersectingWithRange'](_0xdaa491));if(this['_trackingSessionId']&&(_0x15cc9d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xdbd5c=this['_findSuggestions'](_0xdaa491,'insertion')['filter'](({meta:_0x2b7905})=>_0x2b7905['isOwn']&&!_0x2b7905['isInsideObject']&&!_0x2b7905['isNextTo'])['map'](({suggestion:_0x37bbb8})=>_0x37bbb8);_0x29d0dc['unshift'](..._0xdbd5c);}const _0x14c070=new Map([[_0xdaa491,_0x1efd2e]]);for(const _0x20e1a2 of _0x29d0dc){const _0x4aa676='attribute'==_0x20e1a2['type']?_0x20e1a2['data']['oldValue']:void 0x0,_0x1f55c2=_0x20e1a2['getFirstRange'](),_0x48cdb0=Array['from'](_0x14c070['keys']())['find'](_0x3e68a6=>_0x3e68a6['isIntersecting'](_0x1f55c2));if(!_0x48cdb0)continue;const _0x479a3b=_0x48cdb0['getDifference'](_0x1f55c2);this['_suggestionsConversion']['isBlockAttribute'](_0x3922c7)&&'insertion'==_0x20e1a2['type']&&0x0!=_0x479a3b['length']||(_0x14c070['delete'](_0x48cdb0),_0x479a3b['forEach'](_0x587f33=>{_0x14c070['set'](_0x587f33,_0x1efd2e);}),'insertion'!=_0x20e1a2['type']&&_0x4aa676!=_0x273578&&_0x14c070['set'](_0x48cdb0['getIntersection'](_0x1f55c2),_0x4aa676));}const _0x197846=[];for(const [_0x1c2a0a,_0x37c25c]of _0x14c070){const _0x25f784=_0x1dfb7c(),_0x4221ef={'key':_0x3922c7,'oldValue':_0x37c25c,'newValue':_0x273578};_0x3922c7['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':_0x3922c7});const _0x43ada5=('attribute:'+_0x3922c7+'|'+dn({'newValue':_0x273578}))['substring'](0x0,0x3c),_0x1a15d2=this['_setSuggestionData']({'id':_0x25f784,'type':_0x43ada5,'data':_0x4221ef,'createdAt':new Date(),'authorId':_0x29e6a1,'attributes':_0x15cc9d});_0x197846['push'](_0x1a15d2),this['_addSuggestionMarker'](_0x43ada5,_0x25f784,_0x29e6a1,_0x1c2a0a);}return _0x197846;}enableDefaultAttributesIntegration(_0x237ba2){this['enableCommand'](_0x237ba2,(_0x4eb20a,..._0xa19bd4)=>{this['recordAttributeChanges'](()=>{_0x4eb20a(..._0xa19bd4);});});}startTrackingSession(_0x2a0656){return this['_trackingSessionId']=void 0x0!==_0x2a0656?_0x2a0656:_0x1dfb7c(),this['_trackingSessionId'];}_getAttributeKey(_0x4818ba){return'attribute'==_0x4818ba['type']?In(_0x4818ba['subType']):null;}_applyOperationsAsSuggestions(_0x76ae84){if(0x0==_0x76ae84['length'])return;const _0x490835=this['editor'],_0x1ee45a=_0x490835['plugins']['get'](_0x140123),_0x3428af=[],_0x3d2772=_0x4d84e6=>{const _0x39b47=_0x4d84e6['_aiSource'];return _0x39b47?{'@ai':{'type':_0x39b47}}:{};},_0x5a3bea=(_0x3eab85,_0x415f4c,_0x1be5ca)=>{for(let _0x113284=_0x415f4c;_0x113284<_0x3eab85['operations']['length'];_0x113284++){const _0x5ae736=_0x3eab85['operations'][_0x113284];'marker'===_0x5ae736['type']&&(_0x5ae736['_aiSource']=_0x1be5ca);}};_0x490835['model']['change'](_0x59b048=>{for(let _0xdcb5b3=0x0;_0xdcb5b3<_0x76ae84['length'];_0xdcb5b3++){const _0x16c61b=_0x76ae84[_0xdcb5b3],_0x2c056a=_0x16c61b['_aiSource'],_0x8ab46f=_0x59b048['batch']['operations']['length'];if(_0x16c61b['baseVersion']=_0x490835['model']['document']['version'],_0x16c61b['isDocumentOperation']=!0x0,!_0x39c933(_0x16c61b)){if(_0x1ee45a['isMarkedRemoveOperation'](_0x16c61b)){const _0x33aeec=_0x42ced4(_0x16c61b['newRange'],_0x490835['model']);_0x3428af['unshift']({'range':ot['fromRange'](_0x33aeec),'opAttributes':_0x3d2772(_0x16c61b),'aiSource':_0x2c056a});}else{switch(_0x16c61b['type']){case'rename':{const _0xbb9a2c=_0x16c61b['oldName'],_0x2956dd=_0x16c61b['newName'];if(_0xbb9a2c==_0x2956dd)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2a2159='$elementName',_0x5b6f26=_0x16c61b['position'],_0x368ba5=_0x490835['model']['createRange'](_0x5b6f26,_0x490835['model']['createPositionAt'](_0x5b6f26['nodeAfter'],'end'));this['markAttributeChange'](_0x368ba5,_0x2a2159,_0xbb9a2c,_0x2956dd,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xd59241=_0x16c61b['oldValue'],_0x47eab8=_0x16c61b['newValue'];if(_0xd59241==_0x47eab8)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2e2cf5=_0x16c61b['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e2cf5))break;const _0x3242a0=_0x42ced4(_0x16c61b['range'],_0x490835['model']);this['markAttributeChange'](_0x3242a0,_0x2e2cf5,_0xd59241,_0x47eab8,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'insert':{if(_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b),_0x76ae84[_0xdcb5b3+0x1]&&'move'==_0x76ae84[_0xdcb5b3+0x1]['type'])break;const _0x68e97f=_0x16c61b['position'],_0x860c6a=_0x16c61b['howMany'],_0x594123=_0x42ced4(_0x490835['model']['createRange'](_0x68e97f,_0x68e97f['getShiftedBy'](_0x860c6a)),_0x490835['model']);this['markInsertion'](_0x594123,null,{..._0x3d2772(_0x16c61b)});break;}case'split':{_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0xe10b98=_0x16c61b['splitPosition'],_0x561378=_0x16c61b['moveTargetPosition'],_0x1027b0=_0x490835['model']['createRange'](_0xe10b98,_0x561378);this['markInsertion'](_0x1027b0,null,{..._0x3d2772(_0x16c61b)});break;}case'move':case'remove':_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);}_0x2c056a&&_0x5a3bea(_0x59b048['batch'],_0x8ab46f,_0x2c056a);}}}for(const {range:_0x5f0b8d,opAttributes:_0x3a9d54,aiSource:_0x5cdd15}of _0x3428af){const _0x4e6add=_0x59b048['batch']['operations']['length'];_0x5f0b8d['detach'](),this['markDeletion'](_0x5f0b8d,null,{..._0x3a9d54}),_0x5cdd15&&_0x5a3bea(_0x59b048['batch'],_0x4e6add,_0x5cdd15);}});}_setSuggestionRange(_0x1ec67c,_0x1ad4b1){const _0x40844f=_0x1ec67c['getFirstMarker']();this['_model']['change'](_0x3802d5=>{_0x3802d5['updateMarker'](_0x40844f,{'range':_0x1ad4b1});});}_addThreadToSuggestion(_0x61dffe){const _0x1f16a0=_0x61dffe['id'],_0x5dbb4e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f16a0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5dbb4e,'threadId':_0x1f16a0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3211c4=this['_commentsRepository']['getCommentThread'](_0x1f16a0);_0x3211c4['unbind']('isRemovable'),_0x3211c4['isRemovable']=!0x1,_0x61dffe['commentThread']=_0x3211c4;}_checkSuggestionCorrectness(_0x1414bd,_0x52abe9,_0x1e9e5c,_0x2b8c7d){if(_0x1414bd['type']!=_0x52abe9||_0x1414bd['subType']!=_0x1e9e5c||_0x1414bd['creator']['id']!=_0x2b8c7d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ce3e1('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x31f2e6,_0x439e10){const _0x43700b=_0x31f2e6['getFirstRange']();if(_0x439e10['isEqual'](_0x43700b))_0x31f2e6['removeMarkers']();else{if(_0x43700b['containsRange'](_0x439e10)){const _0x24d9e0=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0x24d9e0));const _0x264127=_0x1dfb7c(),_0x4a344b=_0x31f2e6['creator']['id'],_0x147e61=_0x31f2e6['type']+':'+_0x31f2e6['subType'];this['_setSuggestionData']({'id':_0x264127,'type':_0x147e61,'createdAt':new Date(),'authorId':_0x4a344b,'data':_0x31f2e6['data'],'attributes':_0x31f2e6['attributes']});const _0x25bd94=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after'),_0x4d3090=this['_model']['createRange'](_0x25bd94,_0x43700b['end']);this['_addSuggestionMarker'](_0x147e61,_0x264127,_0x4a344b,_0x4d3090);}else{if(_0x43700b['containsPosition'](_0x439e10['start'])){const _0xe1ea3a=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0xe1ea3a));}else{const _0x138506=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x138506,_0x43700b['end']));}}}}_rangeIsInLocalUserInsertion(_0xa8d964){for(const {suggestion:_0x5aeb39,meta:_0x32138e}of this['_findSuggestions'](_0xa8d964,'insertion')){if(!_0x32138e['isOwn'])continue;const _0x362512=_0x5aeb39['getRanges']();for(const _0x445aca of _0x362512)if(!_0xa8d964['getDifference'](_0x445aca)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x12f2c0){return this['editor']['plugins']['get']('Users')['getUser'](_0x12f2c0);}_getExternalAuthor(_0x3d77d2){const _0x303f7b=this['editor']['plugins']['get']('Users'),_0xec3666=_0x86ba89('external:'+_0x3d77d2),_0x52defa=_0x303f7b['getUser'](_0xec3666);return _0x52defa||_0x303f7b['addUser']({'id':_0xec3666,'name':_0x3d77d2});}_createSuggestion(_0x240d70,_0xacecb2,_0x42ac37,_0x403c8e,_0x3533db,_0x4a50ff){const _0x3fe53b=this['_getAuthorFromId'](_0x403c8e);if(!_0x3fe53b)throw new _0x4ce3e1('track-changes-user-not-found',this,{'authorId':_0x403c8e,'suggestionId':_0x42ac37});const _0x134944=this['_suggestionFactory']['buildSuggestion'](_0x240d70,_0xacecb2,_0x42ac37,_0x3fe53b,_0x3533db,_0x5d4859=>{this['_updateSuggestionData'](_0x42ac37,{'attributes':_0x5d4859});const _0x4c6a51=this['getSuggestion'](_0x42ac37);this['_joinWithAdjacentSuggestions'](new Set([_0x4c6a51])),this['_refreshSuggestionsChain'](new Set([_0x4c6a51]));},_0x4a50ff);return this['listenTo'](_0x134944,'accept',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x134944,'discard',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42ac37,_0x134944),this['_suggestionState']['set'](_0x134944,'notReady'),_0x134944;}_breakSuggestionMarker(_0x3f112d,_0x53a3df,_0xe36246){const _0x124a8e=_0x3f112d['getFirstRange'](),_0x463fa5=_0x124a8e['start'],_0x18f65f=_0x124a8e['end'];this['_setSuggestionRange'](_0x3f112d,this['_model']['createRange'](_0x463fa5,_0x53a3df));const _0x45016a=_0x1dfb7c(),_0x3f3729=_0x3f112d['creator']['id'],_0x28c6d2=_0x3f112d['type']+(_0x3f112d['subType']?':'+_0x3f112d['subType']:'');this['_setSuggestionData']({'id':_0x45016a,'type':_0x28c6d2,'createdAt':new Date(),'authorId':_0x3f3729,'originalSuggestionId':_0x3f112d['_originalSuggestionId']||_0x3f112d['id'],'attributes':_0x3f112d['attributes'],'data':_0x3f112d['data']});const _0x2832ec=this['_getAttributeKey'](_0x3f112d);('formatBlock'==_0x3f112d['type']||_0x2832ec&&this['_suggestionsConversion']['isBlockAttribute'](_0x2832ec))&&(_0xe36246=this['_model']['createPositionBefore'](_0xe36246['parent'])),this['_addSuggestionMarker'](_0x28c6d2,_0x45016a,_0x3f3729,this['_model']['createRange'](_0xe36246,_0x18f65f));}_findSuggestions(_0x2bc07a,_0x39432a=null){const _0x385ec3=[],_0x4a7778=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2bc07a)||(_0x2bc07a=[_0x2bc07a]);for(const _0x408719 of this['getSuggestions']()){if(!_0x408719['isInContent'])continue;if(_0x39432a&&_0x408719['type']!=_0x39432a)continue;let _0xda96b7=!0x1;for(const _0x21b376 of _0x408719['getRanges']()){for(const _0x5f061c of _0x2bc07a){const _0x660877=_0x5f061c['start']['isEqual'](_0x21b376['end'])||_0x5f061c['end']['isEqual'](_0x21b376['start']);if(_0x660877||_0x5f061c['getIntersection'](_0x21b376)){const _0x28ef94=_0x5f061c['containsRange'](_0x21b376)&&cn(this['_model']['schema'],_0x21b376['start'],_0x5f061c),_0x517ce1=_0x21b376['containsRange'](_0x5f061c)&&cn(this['_model']['schema'],_0x5f061c['start'],_0x21b376);_0x385ec3['push']({'suggestion':_0x408719,'meta':{'isOwn':_0x4a7778==_0x408719['author'],'isNextTo':_0x660877,'isInsideObject':_0x28ef94,'containsRangeInObject':_0x517ce1}}),_0xda96b7=!0x0;break;}}if(_0xda96b7)break;}}return _0x385ec3;}_addSuggestionMarker(_0x2bda86,_0x4c5288,_0x2fb35d,_0x209a7f,_0x4cb7dc){this['_model']['change'](_0x2e527a=>{let _0x1ce8fd='suggestion:'+_0x2bda86+':'+_0x4c5288+':'+_0x2fb35d;_0x4cb7dc&&(_0x1ce8fd=_0x1ce8fd+':'+_0x4cb7dc),_0x2e527a['addMarker'](_0x1ce8fd,{'range':_0x209a7f,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x551deb){const _0x5d38e8=_0x551deb['previous'],_0x4cece8=_0x551deb['next'];_0x551deb['previous']=null,_0x551deb['next']=null,null!=_0x5d38e8&&_0x5d38e8['next']==_0x551deb&&(_0x5d38e8['next']=_0x4cece8),null!=_0x4cece8&&_0x4cece8['previous']==_0x551deb&&(_0x4cece8['previous']=_0x5d38e8),'ready'==this['_suggestionState']['get'](_0x551deb)&&(this['_suggestionState']['set'](_0x551deb,'removed'),this['fire']('suggestionUnloaded',_0x551deb,_0x5d38e8,_0x4cece8));}_setSuggestionData(_0x4f24fc){const _0x56cfc7=_0x4f24fc['id'],_0x329856=this['addSuggestionData'](_0x4f24fc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a1663=this['editor']['plugins']['get']('PendingActions'),_0x974e70=_0x329856['hasComments'],_0x596d5f=_0x329856['subType']?_0x329856['type']+':'+_0x329856['subType']:_0x329856['type'],_0x2d7406=this['editor']['locale'],_0x310b6b=_0x2a1663['add'](Ot(_0x2d7406,'PENDING_ACTION_SUGGESTION')),_0x45e5a9={'id':_0x56cfc7,'type':_0x596d5f,'hasComments':_0x974e70,'data':_0x4f24fc['data']||null,'originalSuggestionId':_0x4f24fc['originalSuggestionId']||null,'attributes':_0x329856['attributes']};this['_adapter']['addSuggestion'](_0x45e5a9)['then'](_0x5ad295=>{_0x329856['_saved']=!0x0,_0x2a1663['remove'](_0x310b6b),_0x5ad295&&_0x5ad295['createdAt']&&(this['_suggestions']['get'](_0x56cfc7)['createdAt']=_0x5ad295['createdAt']);})['catch'](_0x5333a6=>{throw _0x78b2a9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x329856['discard']();}),_0x329856['stopListening'](),this['_suggestions']['delete'](_0x329856['id']),this['_suggestionState']['delete'](_0x329856),_0x5333a6;});}return _0x329856;}_updateSuggestionData(_0x47922e,_0x37f1c4){const _0x200e84=this['editor']['plugins']['get']('PendingActions'),_0x3ee651=this['getSuggestion'](_0x47922e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3ee651['_saved']){const _0x440325=_0x200e84['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x47922e,_0x37f1c4)['then'](()=>{_0x200e84['remove'](_0x440325);});}else _0x3ee651['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x47922e,_0x37f1c4);});}}_getSuggestionData(_0x5db931){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ce3e1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5db931);}_handleNewSuggestionMarker(_0x4b9572){const {id:_0x5a072d,type:_0x4c8bb1,subType:_0x433f92,authorId:_0x553c19}=et(_0x4b9572),_0x46d2ba=this['_suggestions']['get'](_0x5a072d)||this['_createSuggestion'](_0x4c8bb1,_0x433f92,_0x5a072d,_0x553c19,{});switch(this['_checkSuggestionCorrectness'](_0x46d2ba,_0x4c8bb1,_0x433f92,_0x553c19),this['_suggestionState']['get'](_0x46d2ba)){case'notReady':this['_getSuggestionData'](_0x5a072d)['then'](_0x35f2f3=>{let _0x11c0f1=Promise['resolve']();_0x35f2f3['hasComments']&&(_0x11c0f1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a072d})),_0x11c0f1['then'](()=>{this['addSuggestionData'](_0x35f2f3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x46d2ba,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a072d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x46d2ba,'ready'),this['fire']('suggestionLoaded',_0x46d2ba);break;case'ready':this['fire']('suggestionChanged',_0x46d2ba);}return _0x46d2ba['addMarkerName'](_0x4b9572),_0x46d2ba;}_refreshSuggestionsChain(_0x329697){const _0x5c9dae=Array['from'](_0x329697),_0x125d50=_0x5c9dae['filter'](_0x872524=>'attribute'==_0x872524['type']);this['_refreshAttributeSuggestionsChain'](_0x125d50);const _0x446067=_0x5c9dae['filter'](_0x1d2ab4=>!_0x1d2ab4['isMultiRange']&&'attribute'!=_0x1d2ab4['type']),_0x39d439=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c4735=>!_0x5c4735['isMultiRange']&&'attribute'!=_0x5c4735['type']),_0x12d1a3=_0x39d439['filter'](_0x3a7e20=>!_0x329697['has'](_0x3a7e20)),_0x4c9bbc=new Map(_0x39d439['map'](_0x4cd0c7=>[_0x4cd0c7,this['_suggestionFactory']['getSuggestionCallback'](_0x4cd0c7['type'],_0x4cd0c7['subType'],'chain')])),_0x138b0c=new Map(_0x39d439['map'](_0x2dfce2=>[_0x2dfce2,_0x2dfce2['getFirstRange']()])),_0x5d27d9=new Set(),_0x31d15d=new Set();for(let _0x21d258=0x0;_0x21d258<_0x446067['length'];_0x21d258++)_0x348dbb(_0x446067[_0x21d258],_0x446067,_0x21d258+0x1);for(let _0x29f27b=0x0;_0x29f27b<_0x446067['length'];_0x29f27b++)_0x348dbb(_0x446067[_0x29f27b],_0x12d1a3,0x0);const _0x1add54=new Set();for(let _0x55a451=0x0;_0x55a451<_0x446067['length'];_0x55a451++){const _0x516c8a=_0x446067[_0x55a451];!_0x31d15d['has'](_0x516c8a)&&_0x516c8a['previous']&&(_0x1add54['add'](_0x516c8a['previous']),_0x516c8a['previous']['next']===_0x516c8a&&(_0x516c8a['previous']['next']=null),_0x516c8a['previous']=null),!_0x5d27d9['has'](_0x516c8a)&&_0x516c8a['next']&&(_0x1add54['add'](_0x516c8a['next']),_0x516c8a['next']['previous']===_0x516c8a&&(_0x516c8a['next']['previous']=null),_0x516c8a['next']=null);}function _0x348dbb(_0x1f60ec,_0x3be222,_0xef5ddb){for(let _0x3a58f6=_0xef5ddb;_0x3a58f6<_0x3be222['length'];_0x3a58f6++){const _0x4d60d1=_0x4cf7ed(_0x1f60ec,_0x3be222[_0x3a58f6]);_0x4d60d1&&(_0x4d60d1[0x0]['next']=_0x4d60d1[0x1],_0x4d60d1[0x1]['previous']=_0x4d60d1[0x0],_0x5d27d9['add'](_0x4d60d1[0x0]),_0x31d15d['add'](_0x4d60d1[0x1]));}}function _0x4cf7ed(_0x112f30,_0x2d421f){if(_0x112f30['author']['id']!==_0x2d421f['author']['id'])return null;const _0x2381b5=_0x4c9bbc['get'](_0x112f30)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f));return _0x2381b5&&_0x4c9bbc['get'](_0x2d421f)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f))?_0x2381b5[0x1]['commentThread']&&_0x2381b5[0x1]['commentThread']['length']?null:_0x2381b5:null;}_0x1add54['size']&&this['_refreshSuggestionsChain'](_0x1add54);}_refreshAttributeSuggestionsChain(_0x507a5c){if(0x0==_0x507a5c['length'])return;const _0x1c1822=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd4687a=>'attribute'==_0xd4687a['type']&&_0xd4687a['_isDataLoaded']),_0x4f8bbd=[],_0x4690d8=new Map();for(const _0x448d84 of _0x1c1822){const _0x20b29f=_0x86ba89(_0x448d84['attributes']);_0x4690d8['has'](_0x20b29f)||(_0x4690d8['set'](_0x20b29f,_0x4f8bbd['length']),_0x4f8bbd['push']([])),_0x4f8bbd[_0x4690d8['get'](_0x20b29f)]['push'](_0x448d84);}!(function(){_0x4f8bbd['sort']((_0x3ef5d8,_0x59e1ba)=>{const _0xc91e77=_0x3ef5d8[0x0]['createdAt'],_0x26d20a=_0x59e1ba[0x0]['createdAt'];return _0xc91e77==_0x26d20a?_0x3ef5d8[0x0]['attributes']['groupId']<_0x59e1ba[0x0]['attributes']['groupId']?-0x1:0x1:_0xc91e77<_0x26d20a?-0x1:0x1;});for(const _0xe6fcc2 of _0x4f8bbd)_0xe6fcc2['sort']((_0x6b79e2,_0x3570e0)=>_0x6b79e2['id']<_0x3570e0['id']?-0x1:0x1);}());for(let _0x5914ce=0x0;_0x5914ce<_0x4f8bbd['length'];_0x5914ce++){if(0x0==_0x4f8bbd[_0x5914ce]['length'])continue;const _0x1bd776=[];for(let _0x2ae89d=_0x5914ce+0x1;_0x2ae89d<_0x4f8bbd['length'];_0x2ae89d++)0x0!=_0x4f8bbd[_0x2ae89d]['length']&&_0x13ac2d(_0x4f8bbd[_0x5914ce],_0x4f8bbd[_0x2ae89d])&&_0x1bd776['push'](_0x2ae89d);for(const _0x5260ed of _0x1bd776)_0x4f8bbd[_0x5914ce]=_0x4f8bbd[_0x5914ce]['concat'](_0x4f8bbd[_0x5260ed]),_0x4f8bbd[_0x5260ed]=[];}for(const _0x1d4c5b of _0x4f8bbd)for(let _0x2072f1=0x0;_0x2072f1<_0x1d4c5b['length'];_0x2072f1++){const _0x6e439a=_0x1d4c5b[_0x2072f1+0x1]||null;_0x1d4c5b[_0x2072f1]['next']!==_0x6e439a&&(_0x1d4c5b[_0x2072f1]['next']=_0x6e439a);}for(const _0x47b59e of _0x4f8bbd)for(let _0xf77bea=0x0;_0xf77bea<_0x47b59e['length'];_0xf77bea++){const _0x51973e=_0x47b59e[_0xf77bea-0x1]||null;_0x47b59e[_0xf77bea]['previous']!==_0x51973e&&(_0x47b59e[_0xf77bea]['previous']=_0x51973e);}function _0x13ac2d(_0xf3ab5a,_0x27fdfd){return(_0xf3ab5a[0x0]['attributes']['groupId']===_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['author']===_0x27fdfd[0x0]['author'])&&(!!function(_0x1d1b61,_0x37a8a3){return!_0x1d1b61['hasComments']&&!_0x37a8a3['hasComments']||(!_0x1d1b61['hasComments']||!_0x37a8a3['hasComments'])&&(!!(_0x1d1b61['hasComments']&&_0x37a8a3['createdAt']<_0x1d1b61['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x37a8a3['hasComments']&&_0x1d1b61['createdAt']<_0x37a8a3['commentThread']['comments']['get'](0x0)['createdAt']));}(_0xf3ab5a[0x0],_0x27fdfd[0x0])&&(!!lt(ut(_0xf3ab5a[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x27fdfd[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0xf3ab5a[0x0]['attributes']['groupId']==_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['attributes']['trackingSessionId']===_0x27fdfd[0x0]['attributes']['trackingSessionId']&&(!!_0xf3ab5a['every'](_0x2a2228=>_0x27fdfd['some'](_0x50042c=>_0x2a2228['getFirstRange']()['isEqual'](_0x50042c['getFirstRange']())))&&_0x27fdfd['every'](_0x578be3=>_0xf3ab5a['some'](_0x3fbc1a=>_0x578be3['getFirstRange']()['isEqual'](_0x3fbc1a['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x4a2a55){const _0x3824b8=Array['from'](_0x4a2a55),_0x2e758e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5e7a99=_0x2e758e['filter'](_0x11badc=>!_0x4a2a55['has'](_0x11badc)),_0x127781=new Map(_0x3824b8['map'](_0x5e2b45=>[_0x5e2b45,this['_suggestionFactory']['getSuggestionCallback'](_0x5e2b45['type'],_0x5e2b45['subType'],'join')])),_0x457e53=new Map(_0x2e758e['map'](_0x162a23=>[_0x162a23,_0x162a23['getRanges']()]));for(let _0x43f6c2=0x0;_0x43f6c2<_0x3824b8['length'];_0x43f6c2++)if(_0xdc98e1(this,_0x3824b8[_0x43f6c2],_0x3824b8,_0x43f6c2+0x1))return!0x0;for(let _0x23e3ff=0x0;_0x23e3ff<_0x3824b8['length'];_0x23e3ff++)if(_0xdc98e1(this,_0x3824b8[_0x23e3ff],_0x5e7a99,0x0))return!0x0;return!0x1;function _0xdc98e1(_0x42e37f,_0xfbf671,_0x3faf12,_0x135757){for(let _0x4e33bf=_0x135757;_0x4e33bf<_0x3faf12['length'];_0x4e33bf++){const _0x53eba1=_0x3faf12[_0x4e33bf];if(_0x53eba1['type']!==_0xfbf671['type']||_0x53eba1['author']['id']!==_0xfbf671['author']['id']||_0x53eba1['subType']!==_0xfbf671['subType'])continue;if(!_n(_0xfbf671,_0x53eba1))continue;if('attribute'==_0xfbf671['type']&&_0xfbf671['data']['oldValue']!=_0x53eba1['data']['oldValue'])continue;if('attribute'==_0xfbf671['type']&&_0x42e37f['_suggestionsConversion']['isBlockAttribute'](_0xfbf671['data']['key']))continue;if('formatBlock'==_0xfbf671['type']){const _0x4190e3=_0x42e37f['editor']['model'],_0xca8081=_0xfbf671['getContainedElement']();if(_0xca8081&&(_0x4190e3['schema']['isObject'](_0xca8081)||_0x4190e3['schema']['isLimit'](_0xca8081)))continue;}const _0x3a4bd7=_0x127781['get'](_0xfbf671),_0x1e56b7=_0x457e53['get'](_0xfbf671),_0x3b8f9e=_0x457e53['get'](_0x53eba1),_0x26d489=_0xfbf671['commentThread']&&_0xfbf671['commentThread']['length'],_0x519530=_0x53eba1['commentThread']&&_0x53eba1['commentThread']['length'];if(!_0x26d489&&_0x3a4bd7(_0x3b8f9e,_0x1e56b7))return _0x42e37f['_joinSuggestions'](_0x53eba1,_0xfbf671),_0x457e53['delete'](_0xfbf671),!0x0;if(!_0x519530&&_0x3a4bd7(_0x1e56b7,_0x3b8f9e))return _0x42e37f['_joinSuggestions'](_0xfbf671,_0x53eba1),_0x457e53['delete'](_0x53eba1),!0x0;}return!0x1;}}_joinSuggestions(_0x3ab375,_0x9e24e3){if(_0x3ab375['isMultiRange']){for(const _0x1d9bb4 of _0x9e24e3['getRanges']())_0x3ab375['addRange'](_0x1d9bb4);}else{const _0x35fe75=_0x9e24e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ab375,this['_model']['createRange'](_0x3ab375['getFirstRange']()['start'],_0x35fe75));}_0x9e24e3['removeMarkers']();}_getMarkerAnnouncementText(_0xc01b03,_0x499762,_0x21fda5){const _0x338252=_0xc01b03['startsWith']('format')||_0xc01b03['startsWith']('attribute')?'FORMATTING':_0xc01b03['toUpperCase']();return Ot(this['editor']['locale'],_0x499762+'_'+_0x338252+'_SUGGESTION_ANNOUNCEMENT',_0x21fda5);}_initAriaMarkerChangeAnnouncements(){const _0x41a71c=this['editor'];if(!_0x41a71c['ui'])return;const {ariaLiveAnnouncer:_0x3d4a7}=_0x41a71c['ui'];nt(this['_model'],({left:_0x20a5e7,entered:_0x2d25fa})=>{for(const _0x4bdba2 of _0x20a5e7){const {group:_0x4e0faf,type:_0x53afda}=et(_0x4bdba2['name']);if('suggestion'===_0x4e0faf){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x53afda,'LEAVE'));break;}}for(const _0x8b4f5b of _0x2d25fa){const {group:_0x26efc0,type:_0x2ba955}=et(_0x8b4f5b['name']);if('suggestion'===_0x26efc0){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x2ba955,'ENTER',_0x217db9(_0x55db56)));break;}}});}_processAttributeChanges(_0x14157d){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf1ccca=this['editor'],_0xd1b592=_0xf1ccca['model']['document']['differ']['getChanges']();if(0x0==_0xd1b592['length'])return!0x1;const _0x46b842=[],_0x44b7f6=_0xd1b592['filter'](_0x393517=>'attribute'==_0x393517['type']),_0x2113ad=_0xd1b592['filter'](_0x5298c4=>'insert'==_0x5298c4['type']&&'$text'!=_0x5298c4['name']),_0xcd58d5=_0xd1b592['filter'](_0x49fdcb=>'remove'==_0x49fdcb['type']&&'$text'!=_0x49fdcb['name']);for(const _0x3c694d of _0x44b7f6)_0x46b842['push']({'key':_0x3c694d['attributeKey'],'newValue':_0x3c694d['attributeNewValue'],'oldValue':_0x3c694d['attributeOldValue'],'range':mn(_0x3c694d['range'],_0xf1ccca['model'])});for(const _0x3eb6d9 of _0x2113ad){const _0x5dda5a=_0xcd58d5['find'](_0xb65e75=>_0xb65e75['position']['isEqual'](_0x3eb6d9['position']));_0x5dda5a&&_0x46b842['push']({'key':rn,'newValue':_0x3eb6d9['name'],'oldValue':_0x5dda5a['name'],'range':_0xf1ccca['model']['createRangeOn'](_0x3eb6d9['position']['nodeAfter'])});}return 0x0!=_0x46b842['length']&&this['_reduceExistingSuggestions'](_0x14157d,_0x46b842);}_processAttributeSuggestions(_0x1e0595){let _0x1ac7ce=!0x1;const _0x20194d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25d4a0=>_0x25d4a0['data']['newRange']&&_0x25d4a0['name']['startsWith']('suggestion:attribute:'));for(const _0x51b4d5 of _0x20194d){const {subType:_0x221ead,id:_0x369a83}=et(_0x51b4d5['name']),_0x19a422=_0x221ead['split']('|')[0x0];for(const _0x2fa953 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2fa953['id']!=_0x369a83&&'attribute'==_0x2fa953['type']&&_0x2fa953['data']&&_0x2fa953['data']['key']==_0x19a422&&_0x2fa953['getFirstRange']()['isIntersecting'](_0x51b4d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2fa953,_0x51b4d5['data']['newRange'],_0x1e0595),_0x1ac7ce=!0x0);}return _0x1ac7ce;}recordAttributeChanges(_0x63e66a){this['_recordAttributeSuggestions']=!0x0,_0x63e66a();}_reduceExistingSuggestions(_0x9cf98e,_0x361916){if(0x0==_0x361916['length'])return!0x1;let _0xa15c97=!0x1;for(const _0x24dba9 of _0x361916){const _0x2b8121=this['_findSuggestions'](_0x24dba9['range'],'attribute')['filter'](_0x14e29e=>!_0x14e29e['meta']['isNextTo'])['map'](_0x546245=>_0x546245['suggestion']),_0x282bab=_0x86ba89({'newValue':_0x24dba9['newValue']});_0x2b8121['filter'](_0x5bf1ff=>{const [_0x4073bf,_0x361eb6]=_0x5bf1ff['subType']['split']('|');return _0x4073bf==_0x24dba9['key']&&_0x361eb6!=_0x282bab;})['forEach'](_0x430b86=>{this['_reduceSuggestionAttributeRange'](_0x430b86,_0x24dba9['range'],_0x9cf98e),_0xa15c97=!0x0;});}return _0xa15c97;}_reduceSuggestionAttributeRange(_0xc591c6,_0x1a4bad,_0x271bef){const _0x36a602=_0xc591c6['getFirstRange']()['getDifference'](_0x1a4bad);0x0!==_0x36a602['length']?0x1!==_0x36a602['length']?this['_breakSuggestionMarker'](_0xc591c6,_0x1a4bad['start'],_0x1a4bad['end']):this['_setSuggestionRange'](_0xc591c6,_0x36a602[0x0]):_0x271bef['removeMarker'](_0xc591c6['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4468e7){this['_editor']=_0x4468e7,this['_model']=_0x4468e7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x20e7b8,_0x460ed1,_0x5751be,_0x556470,_0x45a170,_0x4f0bce,_0x2a7939){return new Mt(this['_model'],{'type':_0x20e7b8,'subType':_0x460ed1,'id':_0x5751be,'originalSuggestionId':_0x2a7939,'author':_0x556470,'creator':_0x556470,'attributes':_0x45a170,'onAttributesChange':_0x4f0bce,'onAccept':(..._0x146b2f)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'accept')(..._0x146b2f),'onDiscard':(..._0x3c4e79)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'discard')(..._0x3c4e79)});}registerCustomCallback(_0x351aa1,_0x5b5fb5,_0x46366f,_0x32f1a9){const _0x531df1=_0x351aa1+':'+_0x5b5fb5+':'+_0x46366f;this['_customCallbacks']['set'](_0x531df1,_0x32f1a9);}getSuggestionCallback(_0x175f1f,_0x45118a,_0xde7123){const _0x457428=_0x175f1f+':'+_0x45118a+':'+_0xde7123;return this['_customCallbacks']['get'](_0x457428)||this['_defaultCallbacks']['get'](_0x175f1f+':'+_0xde7123);}_registerDefaultCallbacks(){const _0x2f8e5c=()=>!0x1,_0x129c23=_0x380399=>{_0x380399['sort']((_0x445bdf,_0x2ac35d)=>_0x445bdf['start']['isBefore'](_0x2ac35d['start'])?0x1:-0x1),this['_model']['change'](_0x2d6902=>{for(const _0x1f3ef8 of _0x380399){let _0x6dc56d;_0x6dc56d=_0x1f3ef8['end']['isAtEnd']&&_0x1f3ef8['end']['parent']==_0x1f3ef8['start']['nodeAfter']?_0x2d6902['createSelection'](_0x1f3ef8['start']['nodeAfter'],'on'):_0x2d6902['createSelection'](_0x1f3ef8),this['_model']['deleteContent'](_0x6dc56d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x528b81=(_0x2908d6,_0x57f9c8)=>{_0x57f9c8&&this['_model']['change'](_0x210253=>{const {commandName:_0x333f56,commandParams:_0xc25b1b=[]}=_0x57f9c8,_0x40becb=_0x2908d6['map'](_0x38558b=>(ln(_0x38558b)&&(_0x38558b=this['_model']['createRange'](_0x38558b['end'])),_0x38558b))['filter'](_0x1ffae3=>'$graveyard'!==_0x1ffae3['root']['rootName']);if(_0x40becb['length']<0x1)return;const _0x5419d3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x510877=>ot['fromRange'](_0x510877));_0x210253['setSelection'](_0x40becb);for(const _0x122e92 of this['_editor']['commands']['commands']())_0x122e92['refresh']();_0xc25b1b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x333f56,..._0xc25b1b);const _0xa06e54=_0x5419d3['filter'](_0x225555=>'$graveyard'!=_0x225555['root']['rootName']);_0xa06e54['length']>0x0&&_0x210253['setSelection'](_0xa06e54);for(const _0x11ed21 of _0x5419d3)_0x11ed21['detach']();});},_0x1ddeba=(_0xa5ad98,_0x493d57)=>0x1==_0xa5ad98['length']&&0x1==_0x493d57['length']&&_0xa5ad98[0x0]['end']['isEqual'](_0x493d57[0x0]['start']),_0x9d359b=(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)=>Tn(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)?[_0x2e8afa,_0x78e636]:Tn(_0x78e636,_0x2e8afa,_0xb283ca,_0x3f5331)?[_0x78e636,_0x2e8afa]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('insertion:discard',_0x129c23),this['_defaultCallbacks']['set']('insertion:join',_0x1ddeba),this['_defaultCallbacks']['set']('insertion:chain',_0x9d359b),this['_defaultCallbacks']['set']('deletion:accept',_0x129c23),this['_defaultCallbacks']['set']('deletion:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('deletion:join',_0x1ddeba),this['_defaultCallbacks']['set']('deletion:chain',_0x9d359b),this['_defaultCallbacks']['set']('formatInline:accept',_0x528b81),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatInline:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x528b81),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a2ed4,_0x4492a7)=>{if(!_0x4492a7)return;const _0x25887d=this['_editor']['plugins']['get'](_0x4fbad8);this['_model']['change'](_0xeffd8=>{if('$elementName'==_0x4492a7['key'])for(const _0x497625 of _0x3a2ed4){const _0x21c79b=_0x497625['start']['nodeAfter'],_0xde7d4f=_0x4492a7['oldValue'];_0xeffd8['rename'](_0x21c79b,_0xde7d4f);}else{if(_0x25887d['isBlockAttribute'](_0x4492a7['key'])){for(const _0x556f9e of _0x3a2ed4)void 0x0!==_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x556f9e['start']['nodeAfter']):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x556f9e['start']['nodeAfter']);}else{for(const _0x4d7af7 of _0x3a2ed4)_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x4d7af7):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x4d7af7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1ddeba);}};function cn(_0x1c1387,_0x169723,_0xdfd646){for(const _0x3683e7 of _0x169723['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3683e7['root']==_0x3683e7)return!0x1;if(!_0xdfd646['containsItem'](_0x3683e7))return!0x1;if(_0x1c1387['isObject'](_0x3683e7)||_0x1c1387['isLimit'](_0x3683e7))return!0x0;}return!0x1;}function ln(_0x4fdd30){return _0x4fdd30['end']['parent']==_0x4fdd30['start']['nodeAfter']&&_0x4fdd30['end']['isAtStart'];}function un(_0x3aceba,_0x34e04b,_0x38ca42,_0x8c2a80){const _0x9406ca=_0x2bf659=>!_0x2bf659['item']['is']('$textProxy')&&!_0x8c2a80['isObject'](_0x2bf659['item']),_0x9b648c=_0x3aceba['start']['getLastMatchingPosition'](_0x9406ca),_0x124ef1=_0x3aceba['end']['getLastMatchingPosition'](_0x9406ca,{'direction':'backward'});return(!_0x3aceba['start']['isEqual'](_0x9b648c)||!_0x3aceba['end']['isEqual'](_0x124ef1))&&(_0x9b648c['isBefore'](_0x124ef1)?_0x38ca42['updateMarker'](_0x34e04b,{'range':_0x38ca42['createRange'](_0x9b648c,_0x124ef1)}):_0x38ca42['removeMarker'](_0x34e04b),!0x0);}function dn(_0x4b6940){return _0x86ba89(_0x4b6940);}function hn(_0x39d3c8){const _0x10515a=_0x39d3c8['start']['nodeAfter'];return _0x10515a&&_0x10515a['is']('element');}function gn(_0x11b2c9){return ln(_0x11b2c9)||function(_0x27ff2b){return _0x27ff2b['start']['parent']==_0x27ff2b['end']['nodeBefore']&&_0x27ff2b['start']['isAtEnd'];}(_0x11b2c9);}function fn(_0x2eca1f,_0xd1c093){try{const _0x299f16=_0x2eca1f['getRange']();for(const _0x5e1c21 of _0xd1c093)if(_0x2eca1f!==_0x5e1c21&&_0x299f16&&_0x299f16['isIntersecting'](_0x5e1c21['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x1d9140,_0x429797){return null==_0x1d9140['end']['nodeBefore']&&_0x1d9140['end']['parent']==_0x1d9140['start']['nodeAfter']?En(_0x1d9140['start']['nodeAfter'],_0x429797):_0x1d9140;}function En(_0x26f500,_0x2a6271){const _0x4c1dfd=_0x2a6271['schema']['isObject'](_0x26f500)||_0x2a6271['schema']['isSelectable'](_0x26f500);return _0x2a6271['createRange'](_0x2a6271['createPositionAt'](_0x26f500,'before'),_0x4c1dfd?_0x2a6271['createPositionAfter'](_0x26f500):_0x2a6271['createPositionAt'](_0x26f500,'end'));}function Tn(_0x59c484,_0x2f9d19,_0x556498,_0x1ec34a){return!!_n(_0x59c484,_0x2f9d19)&&_0x556498['end']['isEqual'](_0x1ec34a['start']);}function _n(_0x47d3f4,_0x477968){if(!_0x47d3f4['_isDataLoaded']||!_0x477968['_isDataLoaded'])return!0x1;const _0x23e1dc=new Set(Object['keys'](_0x47d3f4['attributes'])),_0x5326fa=new Set(Object['keys'](_0x477968['attributes']));if(_0x23e1dc['delete']('groupId'),_0x5326fa['delete']('groupId'),0x0==_0x23e1dc['size']&&0x0==_0x5326fa['size'])return!0x0;if(_0x23e1dc['size']!=_0x5326fa['size'])return!0x1;const _0x2185dd={..._0x47d3f4['attributes']},_0xb7237c={..._0x477968['attributes']};return delete _0x2185dd['groupId'],delete _0xb7237c['groupId'],JSON['stringify'](_0x2185dd)==JSON['stringify'](_0xb7237c);}function pn(_0x37d083,_0x543d4f){const _0x5fc08c=Ln(_0x37d083['attributes']),_0x2aaec5=Ln(_0x543d4f);if(!_0x37d083['_isDataLoaded'])return!0x1;if(!lt(_0x5fc08c['@ai'],_0x2aaec5['@ai']))return!0x1;for(const _0x5f41b6 of Object['keys'](_0x2aaec5))if(!lt(_0x5fc08c[_0x5f41b6],_0x2aaec5[_0x5f41b6]))return!0x1;return!0x0;}function Ln(_0x205e3f){const _0x4a12ba=Object['assign']({},_0x205e3f);return delete _0x4a12ba['skipNestingCheck'],delete _0x4a12ba['tablePasteChainId'],_0x4a12ba;}function In(_0xca9b39){return _0xca9b39['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
- _0x47ad8b();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x9f7678,_0x3ddbc4,_0x4f308e,_0x288a79){super(),this['model']=_0x3ddbc4,this['view']=_0x4f308e,this['commentThreadController']=_0x288a79,this['_editor']=_0x9f7678,this['_acceptCommand']=_0x9f7678['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x9f7678['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5de8fa,_0x8864f)=>_0x5de8fa||_0x8864f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c7df8=>_0x1c7df8&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24181d=>_0x24181d&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['_pendingAction']=null,_0x4f308e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f308e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f308e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f308e,'change:isDirty',()=>{_0x4f308e['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 _0x16233b=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16233b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x44d047{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x220cf0,_0x40a7af,_0x40984b,_0x10e20a){super(_0x220cf0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb0e5f7(_0x220cf0,Ot(_0x220cf0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40a7af['authoredAt']),this['bind']('authoredAt')['to'](_0x40a7af),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',_0x40a7af,'authoredAt',this,'descriptionParts',(_0x28bbf0,_0x16dc10,_0x30d59c)=>{const _0x1b19fc=_0x30d59c['map'](_0x38e676=>It(_0x38e676['content']))['join']('.\x20')+'.',_0x1a8cda=_0x40a7af['aiSource']&&'author'===_0x10e20a['showAISource']?_0x10e20a['aiAuthor']['name']:_0x40a7af['author']['name'],_0x58406d=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28bbf0-0x1,_0x1a8cda,_0x16dc10?_0x10e20a['formatDateTime'](_0x16dc10):'',new DOMParser()['parseFromString'](_0x1b19fc,'text/html')['body']['textContent']]);return _0x40a7af['aiSource']&&'pill'===_0x10e20a['showAISource']?_0x58406d+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x58406d;}),this['focusables']=new _0x4b334b(),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x34f76b=>_0x34f76b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40a7af,this['_localUser']=_0x40984b,this['_config']=_0x10e20a,_0x10e20a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x251c5b}=this['_config'];this['commentsListView']=new _0x251c5b(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',_0x5986c7=>_0x5986c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24d518,_0x5363c8)=>_0x24d518||!!_0x5363c8);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x32ce5f}=this['_config'],_0x456c77=new _0x32ce5f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15e5c8=_0x456c77['commentInputView'];return _0x456c77['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15e5c8,'value',(_0x488edb,_0x5a5e33,_0x1d4514)=>!!_0x1d4514||_0x488edb&&!_0x5a5e33),_0x15e5c8['on']('submit',(_0x15764c,_0x47d2a6)=>{this['fire']('addComment',_0x47d2a6),_0x15e5c8['editor']['setData']('');}),_0x15e5c8['on']('cancel',()=>this['focus']()),_0x15e5c8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x456c77;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13){super(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44491c=>_0x44491c&&_0x44491c[0x0]?_0x44491c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f16d9,_0x188691)=>{let _0x3f747a='';for(const _0x2bfede of _0x4f16d9)_0x3f747a+='<p>'+It(_0x2bfede['content'],_0x2bfede['color'])+'</p>';return _0x188691?_0x3f747a:it(_0x3f747a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d5e13['SuggestionView'](_0x575ef2,_0x3e4595,{'formatDateTime':_0x2d5e13['formatDateTime'],'showAISource':_0x2d5e13['showAISource'],'aiAuthor':_0x2d5e13['aiAuthor']}),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 _0x3fee8c=this['bindTemplate'],_0x5747f3=[this['suggestionView']];return this['commentsListView']&&_0x5747f3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5747f3['push'](this['commentThreadInputView']),_0x5747f3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3fee8c['if']('isActive','ck-suggestion-wrapper--active'),_0x3fee8c['to']('type',_0x4c8d47=>'ck-suggestion-'+_0x4c8d47),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':_0x3fee8c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5747f3};}['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));}},Rn=class extends _0x44d047{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x4235c8,_0x10938f,_0xb8c606){super(_0x4235c8),this['_model']=_0x10938f,this['_config']=_0xb8c606,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10938f),this['acceptButton']=this['_createButton'](Ot(_0x4235c8,'Accept\x20suggestion'),_0x14b565,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x4235c8,'Discard\x20suggestion'),_0x5eb0dc,'ck-suggestion--discard','discardSuggestion','sw');const _0x148980=!!_0x10938f['aiSource']&&'author'===_0xb8c606['showAISource'],_0x948dcb=_0x148980?this['_createAIUser'](_0xb8c606['aiAuthor']):_0x10938f['author'],_0x55026a=_0x148980&&!_0xb8c606['aiAuthor']['avatar']?_0x112b98:void 0x0;this['userView']=new _0x122117(_0x4235c8,_0x948dcb,this['getUserViewNotificationText'](),_0x55026a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b334b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1e219a=>_0x1e219a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xdfe01d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xdfe01d['innerHTML']=this['description'],this['on']('change:description',(_0xf69b51,_0x1b9bdc,_0x36dfb5)=>{_0xdfe01d['innerHTML']=_0x36dfb5;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x328181=this['bindTemplate'],_0x56338a=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x328181['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x328181['to']('authoredAt',_0x3365c6=>this['_config']['formatDateTime'](_0x3365c6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x56338a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x472b8c=new _0x24fb6b(this['locale']);_0x472b8c['set']({'icon':_0x3af273,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x56338a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x472b8c]});}return{'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':_0x56338a}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x9b4d9){return new _0xcdc6f6({'id':'ck-ai-author','name':_0x9b4d9['name'],'avatar':_0x9b4d9['avatar'],'color':new _0x4762e5(0x0)});}_createButton(_0x29be2a,_0x20ee5b,_0xc9c2d8,_0x363ba9,_0x5950de){const _0xf70725=new _0x5bb789(this['locale']);return _0xf70725['set']({'label':_0x29be2a,'icon':_0x20ee5b,'tooltip':!0x0,'tooltipPosition':_0x5950de}),_0xf70725['extendTemplate']({'attributes':{'class':_0xc9c2d8}}),_0xf70725['on']('execute',()=>{this['fire'](_0x363ba9,this['_model']['id']);}),_0xf70725;}_setupKeyboardNavigation(){const _0x2e28cc=this['element'];this['keystrokes']['listenTo'](_0x2e28cc);for(const _0x2e707a of this['focusables'])this['focusTracker']['add'](_0x2e707a['element']),this['keystrokes']['listenTo'](_0x2e707a['element']);this['keystrokes']['set']('enter',(_0x5cc161,_0x173880)=>{_0x2e28cc===_0x5cc161['target']&&(this['focusCycler']['focusFirst'](),_0x173880());}),this['keystrokes']['set']('esc',(_0x42b057,_0x29ff95)=>{_0x2e28cc!==_0x42b057['target']&&(this['focus'](),_0x29ff95());});}},yn=class extends _0x548d2a{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x5036c6,_0x625dc5,_0x5a11f9,_0x515c91];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52c2d4){super(_0x52c2d4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3bfcf0=this['editor']['config'];_0x3bfcf0['define']('trackChanges.SuggestionThreadView',kn),_0x3bfcf0['define']('trackChanges.SuggestionView',Rn),_0x3bfcf0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3bfcf0['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x2137e4,_0x11b751){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d1a23,_0x5a2f39]of this['_handleControllerBuffer']){const _0x537f55=this['_suggestionToController']['has'](_0x1d1a23);_0x537f55||_0x5a2f39?_0x537f55&&_0x5a2f39&&this['_destroyController'](_0x1d1a23):this['_initializeController'](_0x1d1a23);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x515c91)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2137e4,_0x11b751);}init(){const _0x11716f=this['editor'],_0x29cad8=_0x11716f['plugins']['get'](on),_0x4d33fa=_0x11716f['plugins']['get'](_0x5a11f9),_0x385ec1=_0x11716f['plugins']['get'](_0x515c91),_0x300a07=_0x11716f['plugins']['get'](_0x625dc5);this['_addUIComponentsToFactory'](),_0x385ec1['addSourceCollector'](()=>{const _0x515bd6=[];for(const [_0x231064,_0x2347eb]of Array['from'](this['_suggestionToController'])){const _0x37f593=_0x231064['getAllAdjacentSuggestions'](),_0x4bf0d6=[];for(const _0x1eaf0a of _0x37f593){if(!_0x1eaf0a['isInContent'])continue;if(_0x1eaf0a['isMultiRange']){_0x4bf0d6['push'](..._0x1eaf0a['getRanges']());continue;}const _0x1bec27=_0x1eaf0a['getFirstRange']();if(_0x4bf0d6['length']>0x0){const _0x1a017a=_0x4bf0d6[0x0]['getJoined'](_0x1bec27);if(_0x1a017a){_0x4bf0d6[0x0]=_0x1a017a;continue;}}_0x4bf0d6['push'](_0x1bec27);}_0x515bd6['push']([_0x2347eb['view'],_0x4bf0d6]);}return _0x515bd6;}),this['listenTo'](_0x29cad8,'suggestionLoaded',(_0x28c5c8,_0x4772fb)=>{this['listenTo'](_0x4772fb,'change:previous',(_0x40f7e6,_0x15cfc5,_0x108887,_0x5ccc75)=>{_0x4772fb['isInContent']&&(null==_0x108887?(this['_updateController'](_0x5ccc75['head']),this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1)):(this['_updateController'](_0x108887['head']),null==_0x5ccc75&&this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x0)));}),null!==_0x4772fb['previous']?this['_updateController'](_0x4772fb['head']):this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1);}),this['listenTo'](_0x29cad8,'suggestionUnloaded',(_0x1ff12f,_0x1ce679,_0x4615a0)=>{this['stopListening'](_0x1ce679,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ce679),this['_suggestionToController']['has'](_0x1ce679)&&this['_destroyController'](_0x1ce679),_0x4615a0&&this['_updateController'](_0x4615a0['head']);}),this['listenTo'](_0x29cad8,'suggestionChanged',(_0xcbab95,_0xa4a79f)=>{this['_updateController'](_0xa4a79f);}),this['listenTo'](_0x4d33fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x300a07,'addComment',(_0x5af959,{threadId:_0x307531,isFromAdapter:_0x4c3cef})=>{if(_0x4c3cef||!_0x29cad8['hasSuggestion'](_0x307531))return;const _0x93da94=_0x29cad8['getSuggestion'](_0x307531);this['_suggestionToController']['get'](_0x93da94)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48c026=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8ec6c1;for(const _0x39a3b9 in _0x48c026){const _0x4328c9=_0x39a3b9,_0x335394=_0x48c026[_0x4328c9];if('trackChangesLicenseKeyValid'==_0x335394||'trackChangesLicenseKeyInvalid'==_0x335394||'trackChangesLicenseKeyExpired'==_0x335394||'trackChangesLicenseKeyDomainLimit'==_0x335394||'trackChangesLicenseKeyNotAllowed'==_0x335394||'trackChangesLicenseKeyEvaluationLimit'==_0x335394||'trackChangesLicenseKeyUsageLimit'==_0x335394){delete _0x48c026[_0x4328c9],_0x8ec6c1=_0x335394,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x8ec6c1&&_0x48c026['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x8ec6c1&&_0x48c026['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x8ec6c1&&_0x48c026['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0xd404bc){const _0x3a767e=this['_suggestionToController']['get'](_0xd404bc);return _0x3a767e&&this['editor']['plugins']['get'](_0x5a11f9)['getByInnerView'](_0x3a767e['view'])||null;}getSuggestionForAnnotation(_0x1964e8){const _0x15b2ac=this['_viewToController']['get'](_0x1964e8['innerView']);return _0x15b2ac?_0x15b2ac['model']:null;}_refreshActiveMarkers(){const _0x33d1d2=this['editor']['plugins']['get'](_0x5a11f9),_0x5149ab=this['editor']['plugins']['get'](on),_0x4fc650=Array['from'](_0x33d1d2['activeAnnotations'],_0x462258=>_0x462258['innerView'])['filter'](_0x1111a1=>this['_viewToController']['has'](_0x1111a1)),_0x22917d=[];for(const _0xd10a3f of _0x4fc650){const _0x4f0f24=this['_viewToController']['get'](_0xd10a3f)['model']['getAllAdjacentSuggestions']();_0x22917d['push'](..._0x4f0f24['reduce']((_0x260c35,_0x89e38d)=>[..._0x260c35,..._0x89e38d['getMarkerNames']()],[]));}_0x5149ab['activeMarkers']=_0x22917d;}_addUIComponentsToFactory(){const _0x3a57f9=this['editor'],_0x7bfba=_0x3a57f9['locale'],_0x39e998=Ot(_0x7bfba,'Track\x20changes'),_0x18d524=new _0x2d3c72([{'type':'switchbutton','model':new _0xe0f952({'withText':!0x0,'isToggleable':!0x0,'label':_0x39e998,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3a57f9['plugins']['has']('TrackChangesPreview')&&_0x18d524['addMany']([{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25ee7b of _0x18d524)if(Nn(_0x25ee7b)){const _0x16f661=_0x3a57f9['commands']['get'](_0x25ee7b['model']['commandName']);_0x25ee7b['model']['bind']('isOn','isEnabled')['to'](_0x16f661,'value','isEnabled');}_0x3a57f9['ui']['componentFactory']['add']('trackChanges',_0x4f2469=>this['_createToolbarButton'](_0x4f2469,_0x18d524,_0x39e998)),_0x3a57f9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x799199=>this['_createMenuBarMenu'](_0x799199,_0x18d524,_0x39e998));}_createToolbarButton(_0x4f59f8,_0x420b16,_0x414dd0){const _0x3ebe9e=_0x583898(_0x4f59f8,_0x499055),_0x5b3365=this['editor']['commands']['get']('trackChanges');_0x3ebe9e['buttonView']['set']({'tooltip':_0x414dd0,'label':_0x414dd0,'icon':_0x1fd907}),_0x3ebe9e['buttonView']['bind']('isOn')['to'](_0x5b3365,'value'),_0x3ebe9e['buttonView']['on']('execute',()=>{_0x5b3365['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a7aa3(_0x3ebe9e,_0x420b16,{'role':'menu'});const _0x28b66a=[];for(const _0x249a26 of _0x420b16)Nn(_0x249a26)&&_0x28b66a['push'](this['editor']['commands']['get'](_0x249a26['model']['commandName']));const _0x5bb484=_0x3ebe9e['buttonView'];return _0x5bb484['actionView']['unbind']('isEnabled'),_0x5bb484['arrowView']['unbind']('isEnabled'),_0x5bb484['actionView']['bind']('isEnabled')['to'](_0x5b3365,'isEnabled'),_0x5bb484['arrowView']['bind']('isEnabled')['toMany'](_0x28b66a,'isEnabled',(..._0x3d0451)=>_0x3d0451['some'](_0x467926=>_0x467926)),_0x3ebe9e['on']('execute',_0x430bf8=>{this['editor']['execute'](_0x430bf8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ebe9e;}_createMenuBarMenu(_0x232c5a,_0x2f5afc,_0x1e96fe){const _0x7160f4=new _0x3b7c12(_0x232c5a),_0x379803=this['editor']['commands']['get']('trackChanges');_0x7160f4['buttonView']['set']({'label':_0x1e96fe,'icon':_0x1fd907});const _0x5f1d7d=new _0x1d8e7c(_0x232c5a);for(const _0x3fda93 of _0x2f5afc){if('separator'==_0x3fda93['type']){_0x5f1d7d['items']['add'](new _0x5b0cbf(_0x232c5a));continue;}const _0x490ea6=new _0x271ebd(_0x232c5a,_0x7160f4),_0x47fee4=new _0x28f43e(_0x232c5a),_0xf4166b=_0x3fda93['model'];_0x47fee4['bind'](...Object['keys'](_0xf4166b))['to'](_0xf4166b),_0x47fee4['delegate']('execute')['to'](_0x7160f4),_0x47fee4['on']('execute',()=>{this['editor']['execute'](_0xf4166b['commandName']),this['editor']['editing']['view']['focus']();}),_0x490ea6['children']['add'](_0x47fee4),_0x5f1d7d['items']['add'](_0x490ea6);}return _0x7160f4['bind']('isEnabled')['to'](_0x379803,'isEnabled'),_0x7160f4['panelView']['children']['add'](_0x5f1d7d),_0x7160f4;}_initializeController(_0x3a20f4){const _0x275151=this['editor'],_0xa56ec6=_0x275151['config'],_0x5d6a0a=_0x275151['plugins']['get'](_0x5a11f9),_0x39941a=_0x275151['plugins']['get'](_0x625dc5),_0x3069fc=_0x275151['plugins']['get'](_0x515c91),_0x5ba29f=_0x275151['plugins']['get'](_0x5036c6)['me'],_0x28c881=_0xa56ec6['get']('trackChanges')['SuggestionThreadView'],_0x46db4d=_0xa56ec6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x468f5f,CommentThreadInputView:_0x5e658d}=_0x275151['plugins']['get']('CommentsUI');let _0x4583bc,_0x45f8be,_0x244256;this['_annotationViews']['has'](_0x3a20f4['id'])?(_0x45f8be=this['_annotationViews']['get'](_0x3a20f4['id']),_0x4583bc=_0x45f8be['mainView']):(_0x4583bc=new _0x28c881(_0x275151['locale'],_0x3a20f4,_0x5ba29f,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa56ec6['get']('comments.editorConfig'),'licenseKey':_0xa56ec6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa56ec6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f27f5(_0xa56ec6['get']('locale'),_0x275151['locale']),'CommentView':_0xa56ec6['get']('comments')['CommentView'],'CommentsListView':_0x468f5f,'CommentThreadInputView':_0x5e658d,'SuggestionView':_0x46db4d,'showAISource':_0xa56ec6['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xa56ec6['get']('trackChanges.aiAuthor'),'name':_0xa56ec6['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x275151['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4583bc['suggestionView']['acceptButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x4583bc['suggestionView']['discardButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x45f8be=_0x5d6a0a['createAnnotationView'](this['editor']['locale'],_0x4583bc),_0x45f8be['bind']('isDirty')['to'](_0x4583bc,'isDirty'),_0x45f8be['bind']('length')['to'](_0x4583bc),_0x45f8be['bind']('type')['to'](_0x4583bc,'type',_0x3cbea9=>'suggestion-'+_0x3cbea9),_0x4583bc['on']('escape',()=>{_0x244256['fire']('escape');}),this['_annotationViews']['set'](_0x3a20f4['id'],_0x45f8be));const _0x5248e2=_0x39941a['createCommentThreadController'](_0x3a20f4['commentThread'],_0x4583bc),_0x39077d=new bn(_0x275151,_0x3a20f4,_0x4583bc,_0x5248e2),_0x28cc09=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x34d17f=>_0x34d17f['isInContent']);_0x4583bc['descriptionParts']=_0x275151['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x28cc09),this['_suggestionToController']['set'](_0x3a20f4,_0x39077d),this['_viewToController']['set'](_0x4583bc,_0x39077d);const _0x113774=()=>{const _0x569d44=[],_0x20272b=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x17ed7c=>_0x17ed7c['isInContent']);for(const _0x23a47c of _0x20272b)_0x569d44['push'](..._0x23a47c['getMarkers']());return _0x369c76(_0x275151['editing'],_0x569d44);};_0x244256=_0x5d6a0a['createAnnotation']({'view':_0x45f8be,'target':_0x113774,'type':()=>'suggestion-'+_0x39077d['view']['type'],'isVisible':!!_0x113774()}),_0x39941a['_bindAnnotationToEditors'](_0x4583bc,_0x244256),_0x5d6a0a['add'](_0x244256),_0x3069fc['registerAnnotation'](_0x244256);}_destroyController(_0x3ed5ab){const _0x4c96e2=this['editor']['plugins']['get'](_0x625dc5),_0x16b38f=this['editor']['plugins']['get'](_0x5a11f9),_0x2fe565=this['_suggestionToController']['get'](_0x3ed5ab),_0xc784aa=_0x2fe565['view'],_0x5ca6aa=_0x16b38f['getByInnerView'](_0xc784aa);_0x4c96e2['_unbindEditors'](_0xc784aa),_0x5ca6aa&&_0x16b38f['remove'](_0x5ca6aa),this['_suggestionToController']['delete'](_0x3ed5ab),this['_viewToController']['delete'](_0xc784aa),_0x2fe565['destroy']();}_updateController(_0xd7f85f){if(!_0xd7f85f['isInContent']||!this['_suggestionToController']['has'](_0xd7f85f))return;const _0x51cd7f=this['editor']['plugins']['get'](on),_0x41cb58=this['_suggestionToController']['get'](_0xd7f85f),_0xd3c94=_0xd7f85f['getAllAdjacentSuggestions']();_0x41cb58['view']['descriptionParts']=_0x51cd7f['descriptionFactory']['getDescriptions'](_0xd3c94);}destroy(){for(const _0x5b0610 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b0610);for(const _0x5664a9 of this['_annotationViews']['values']())_0x5664a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x2c5bec){return'model'in _0x2c5bec;}var Sn=class extends _0x548d2a{static get requires(){return[on,yn,_0x28e9ec];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3cd48b){this['editor']['plugins']['get'](on)['adapter']=_0x3cd48b;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0xa6005){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0xa6005);}getSuggestions({skipNotAttached:_0x355e96=!0x1,toJSON:_0x4a8a95=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x355e96,'toJSON':_0x4a8a95});}getSuggestion(_0x1e5e2c){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x1e5e2c);}};const Mn=['Pagination'];var On=class extends _0x548d2a{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4ddd1b=this['editor'];if(_0x4ddd1b['config']['define']('trackChangesData.editorCreator',_0x5e99bc=>{const _0x4dd735=_0x4ddd1b['model']['document']['getRootNames']()['reduce']((_0x193197,_0x55ed35)=>(_0x193197[_0x55ed35]='',_0x193197),{});return _0x4ddd1b['constructor']['create'](_0x4dd735,_0x5e99bc);}),'function'!=typeof _0x4ddd1b['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ce3e1('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x14f7e7){return Bn(this['editor'],!0x0,_0x14f7e7);}getDataWithDiscardedSuggestions(_0x2d7dbe){return Bn(this['editor'],!0x1,_0x2d7dbe);}},wn=class extends _0x548d2a{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28ba85){super(_0x28ba85),this['result']='end',_0x28ba85['editing']['view']['_overlayModeHint']='auto',_0x28ba85['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x5aa0fe){return void 0x0!==_0x5aa0fe['getRootsAttributes'];}async function Bn(_0x124d42,_0x177eb7,_0x57850e){const _0x4db4b2=_0x303fe4(_0x124d42,Mn);if(_0x4db4b2['plugins']['push'](on,wn),Fn(_0x124d42)){_0x4db4b2['roots']=Object['create'](null);for(const _0x5bafe0 of _0x124d42['model']['document']['getRootNames']())_0x4db4b2['roots'][_0x5bafe0]={'modelAttributes':_0x124d42['getRootAttributes'](_0x5bafe0)};}const _0x50ac82=document['createDocumentFragment'](),_0x5379f7=_0x124d42['config']['get']('trackChangesData')['editorCreator'],_0x58096b=await _0x5379f7(_0x4db4b2,()=>function(_0x4b2c14){const _0x14883c=document['createElement']('div');return _0x4b2c14['appendChild'](_0x14883c),_0x14883c;}(_0x50ac82));!function(_0x44fff3,_0x49047a){const _0x3049e2=_0x44fff3['model']['document']['getRootNames']()['reduce']((_0x16e750,_0x3dddd1)=>(_0x16e750[_0x3dddd1]=_0x44fff3['data']['get']({'rootName':_0x3dddd1}),_0x16e750),{}),_0x3b8f41=_0x44fff3['plugins']['get']('Users')['users']['map'](_0x130ee1=>({'id':_0x130ee1['id'],'name':_0x130ee1['name']})),_0x2b3cc8=_0x44fff3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x223625=_0x44fff3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x330598=_0x49047a['plugins']['get']('Users'),_0x13d5de=_0x49047a['plugins']['get']('TrackChangesEditing'),_0xe4285=_0x49047a['plugins']['get']('CommentsRepository');for(const _0x1313c3 of _0xe4285['getCommentThreads']())_0x1313c3['remove']();for(const _0x2ce7fe of _0x3b8f41)_0x330598['getUser'](_0x2ce7fe['id'])||_0x330598['addUser'](_0x2ce7fe);_0x330598['me']||_0x330598['useAnonymousUser']();for(const _0x3ecfee of _0x223625)_0xe4285['addCommentThread'](_0x3ecfee);for(const _0x162908 of _0x2b3cc8)_0x13d5de['addSuggestionData'](_0x162908);_0x49047a['data']['set'](_0x3049e2);}(_0x124d42,_0x58096b),_0x58096b['execute'](_0x177eb7?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f34e2=Fn(_0x58096b)?_0x58096b['getFullData'](_0x57850e):_0x58096b['data']['get'](_0x57850e);return await _0x58096b['destroy'](),_0x4f34e2;}var vn=class extends _0x44d047{options;constructor(_0x3f1e07,_0xff0677){super(_0x3f1e07),this['options']=_0xff0677,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x2fdeaf,_0x56690d){if(!this['element'])return;const _0x418c17=[];for(const [_0x5234ee,_0x40d3a8]of _0x2fdeaf){const _0x4aa2c4=document['createElement']('div');_0x4aa2c4['setAttribute']('data-ck-root-name',_0x5234ee),_0x4aa2c4['className']=_0x40d3a8['classes']+'\x20ck-track-changes-preview__root-container',_0x4aa2c4['innerHTML']=_0x40d3a8['content'],_0x418c17['push'](_0x4aa2c4);}_0x56690d(this['element'],_0x418c17),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x5a79ba{constructor(_0x4933c0){super(_0x4933c0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x7a7457=this['editor'],_0x3c4a38=_0x7a7457['locale'],_0xe8d7c8=_0x7a7457['plugins']['get']('Dialog');let _0x8ea4e7;const _0x24b842=function(_0x7cdeef){const _0x35e336={};if('editables'in _0x7cdeef['ui']['view']){for(const [_0x4c72c2,_0x2687e8]of Object['entries'](_0x7cdeef['ui']['view']['editables']))_0x35e336[_0x4c72c2]=_0x2687e8['element'];}else _0x35e336[_0x7cdeef['model']['document']['getRootNames']()[0x0]]=_0x7cdeef['ui']['view']['editable']['element'];return _0x35e336;}(_0x7a7457),_0x1f9ba3=function(_0x4db1ad){let _0x13c578=0x0;for(const _0x50f1c6 of Object['values'](_0x4db1ad))_0x13c578=Math['max'](_0x13c578,_0x50f1c6['getBoundingClientRect']()['width']);let _0x135b10=0x0;for(const _0x297ced of Object['values'](_0x4db1ad))_0x135b10+=_0x297ced['getBoundingClientRect']()['height'];const _0x291efa=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x13c578,'height':Math['min'](_0x135b10,_0x291efa)};}(_0x24b842);_0xe8d7c8['show']({'id':'finalContentPreview','title':Ot(_0x3c4a38,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x3c4a38,{'dialogRects':_0x1f9ba3}),'onHide':()=>{_0x8ea4e7['detachFromDom']();},'onShow':()=>{_0x7a7457['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x152bd9=>{const _0x1ff517=this['_standarizeRootsData'](_0x152bd9,_0x7a7457,_0x24b842);_0xe8d7c8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1ff517,_0x7a7457['config']['get']('trackChanges.preview.renderFunction'));}),_0x8ea4e7=new _0x1d1889(_0x3c4a38,[_0xe8d7c8['view']]),_0x8ea4e7['attachToDom'](),_0x8ea4e7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x7a7457['once']('destroy',()=>{_0x8ea4e7['detachFromDom']();});const _0x3de1e7=_0xe8d7c8['view']['headerView']['class'];_0xe8d7c8['view']['headerView']['class']=_0x3de1e7?_0x3de1e7+'\x20ck-reset_all':'ck-reset_all',_0xe8d7c8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe8d7c8['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4be89f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x387123=_0x4be89f['previewMode'],_0x5df8bb={};if('$labels'===_0x387123){for(const _0x189049 of _0x4be89f['getMergeFieldsIds']())_0x5df8bb[_0x189049]=_0x4be89f['getLabel'](_0x189049)||_0x189049;}else{const _0x4f3a96='$defaultValues'===_0x387123?_0x4be89f['getDefaultValues']():_0x4be89f['getDataSetValues'](_0x387123,!0x0);for(const _0x1a8e79 of Object['entries'](_0x4f3a96)){const [_0x3bcb3d,_0x1c2c30]=_0x1a8e79;_0x5df8bb[_0x3bcb3d]=null!==_0x1c2c30?_0x1c2c30:_0x4be89f['getLabel'](_0x3bcb3d)||_0x3bcb3d;}}return{'mergeFieldsData':_0x5df8bb};}_standarizeRootsData(_0x41f16d,_0x240abd,_0xcca0f4){let _0x5d41d3;_0x5d41d3='string'==typeof _0x41f16d?{[_0x240abd['model']['document']['getRootNames']()[0x0]]:_0x41f16d}:_0x41f16d;const _0x1beca7=this['_fixMediaEmbeds'](_0x5d41d3,_0x240abd);return function(_0x37d418,_0x197767){for(const [_0x4f4c5b,_0x2ad5af]of _0x37d418)_0x2ad5af['classes']=_0x197767[_0x4f4c5b]['classList']['value']['replace']('ck-focused','');return _0x37d418;}(this['_sortRoots'](_0x240abd)['reduce']((_0x4c231c,_0x1d214c)=>(_0x4c231c['push']([_0x1d214c,{'content':_0x1beca7[_0x1d214c],'classes':''}]),_0x4c231c),[]),_0xcca0f4);}['_fixMediaEmbeds'](_0x1a9359,_0x31834e){if(!_0x31834e['plugins']['has']('MediaEmbedEditing'))return _0x1a9359;const _0x20b3a3=_0x31834e['plugins']['get']('MediaEmbedEditing');for(const [_0x228c51,_0x25145a]of Object['entries'](_0x1a9359)){const _0x3323c4=document['createElement']('div');_0x3323c4['innerHTML']=_0x25145a,_0x3323c4['querySelectorAll']('figure.media')['forEach'](_0x1dbee8=>{const _0x505c9d=_0x1dbee8['querySelector']('oembed');if(_0x505c9d){const _0x7a7261=_0x505c9d['getAttribute']('url');if(_0x7a7261){const _0x564fbf=_0x20b3a3['registry']['getMediaViewElement'](new at(_0x31834e['editing']['view']['document']),_0x7a7261,{'elementName':'','renderForEditingView':!0x0}),_0x296940=document['createElement']('div');_0x296940['classList']['add']('ck-media__wrapper'),_0x564fbf['render'](_0x296940,_0x31834e['editing']['view']['domConverter']),_0x505c9d['replaceWith'](_0x296940);}}}),_0x1a9359[_0x228c51]=_0x3323c4['innerHTML'];}return _0x1a9359;}_sortRoots(_0x4aaf5b){if(!function(_0x8f2e18){return void 0x0!==_0x8f2e18['getRootsAttributes'];}(_0x4aaf5b))return _0x4aaf5b['model']['document']['getRootNames']();const _0x29a615=[],_0x5ca53c=new Map();for(const _0x4ae2bd of _0x4aaf5b['model']['document']['getRootNames']()){const _0x2cfcec=_0x4aaf5b['editing']['view']['getDomRoot'](_0x4ae2bd)['getClientRects']()['item'](0x0);_0x29a615['push'](_0x4ae2bd),_0x5ca53c['set'](_0x4ae2bd,_0x2cfcec);}return _0x29a615['sort']((_0x34b4ef,_0x8080d9)=>{const _0x5df413=_0x5ca53c['get'](_0x34b4ef),_0x2c2f97=_0x5ca53c['get'](_0x8080d9);return _0x5df413['y']-_0x2c2f97['y']||_0x5df413['x']-_0x2c2f97['x'];}),_0x29a615;}},Un=class extends _0x548d2a{static get requires(){return[On,_0x4ccace];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x185a0b){super(_0x185a0b),_0x185a0b['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x185a0b['config']['define']('trackChanges.preview.renderFunction',(_0x278be6,_0x3ff307)=>{for(const _0x30584e of _0x3ff307)_0x278be6['appendChild'](_0x30584e);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
23
+ import{Command as _0xa07efb,PendingActions as _0x2b14db,Plugin as _0x3b6d8a}from'@ckeditor/ckeditor5-core';import{Annotations as _0x15fa05,Comments as _0x5c2500,CommentsRepository as _0x2a3df3,EditorAnnotations as _0x454459}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x531c91,Collection as _0x649164,FocusTracker as _0x27c2e2,KeystrokeHandler as _0x1b7ec1,ObservableMixin as _0x43dfa7,getEnvKeystrokeText as _0x263f96,insertToPriorityArray as _0x176cae,logWarning as _0x2a998d,priorities as _0x1315a6,uid as _0x3223bf}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x55fbd9,IconCancel as _0x120ab6,IconCheck as _0x403898,IconSparkle as _0x24f981,IconTrackChanges as _0x3335e2}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x153785,Dialog as _0x9dd83e,FocusCycler as _0x2e49fb,ListSeparatorView as _0x37f5d1,MenuBarMenuListItemButtonView as _0x3ac042,MenuBarMenuListItemView as _0x3831d2,MenuBarMenuListView as _0x5b35bb,MenuBarMenuView as _0x261371,SplitButtonView as _0x5d1b49,UIModel as _0x12dea9,View as _0x5c97c1,ViewCollection as _0x2295e0,addListToDropdown as _0x3c4a50,createDropdown as _0x3bda66,normalizeColorOptions as _0x29b02c}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x1c933d,CollaborationUserColor as _0x36ec60,DocumentCompare as _0xc88042,FOCUS_ANNOTATION_KEYSTROKE as _0x48a7da,LateFocusButtonView as _0x5d61b0,PillView as _0x5a93f3,SuggestionsConversion as _0x5df0b9,User as _0x30dd6c,UserView as _0x72bb39,Users as _0x1da799,fixElementSuggestionRange as _0x1088e8,getAllMarkersDomElementsSorted as _0x5032c4,getDateTimeFormatter as _0x1f24bf,hashObject as _0x5e550b,isInvalidAttributeOperation as _0x12593f,sanitizeEditorConfig as _0x43648c,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0xa07efb{['_enabledCommands'];constructor(_0x34b205,_0x477eb1){super(_0x34b205),this['_enabledCommands']=_0x477eb1,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 _0x247160 of this['editor']['commands']['commands']())_0x247160['affectsData']&&!this['_enabledCommands']['has'](_0x247160)&&_0x247160['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x55d8f0 of this['editor']['commands']['commands']())_0x55d8f0['affectsData']&&!this['_enabledCommands']['has'](_0x55d8f0)&&_0x55d8f0['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0xa07efb{_suggestions;constructor(_0x3c74eb,_0x3ab841){super(_0x3c74eb),this['_suggestions']=_0x3ab841,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1dcab6){const _0x23764c=this['_suggestions']['get'](_0x1dcab6);if(!_0x23764c)throw new _0x531c91('track-changes-accept-suggestion-not-found',this);const _0xc99e6c=_0x23764c['getRanges']();this['editor']['model']['canEditAt'](_0xc99e6c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23764c);}},Lt=class extends _0xa07efb{_suggestions;constructor(_0x479bc0,_0x5d6f5a){super(_0x479bc0),this['_suggestions']=_0x5d6f5a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x6868ec){const _0x55188a=this['_suggestions']['get'](_0x6868ec);if(!_0x55188a)throw new _0x531c91('track-changes-discard-suggestion-not-found',this);const _0x4606e3=_0x55188a['getRanges']();this['editor']['model']['canEditAt'](_0x4606e3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x55188a);}};function It(_0x527288,_0x2e0803){let _0x2c5eea='';return _0x2c5eea+=_0x527288['split']('*')['map']((_0x1f522f,_0x3225ab)=>_0x3225ab%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x1f522f)+'</span>':At(_0x1f522f))['join'](''),_0x2e0803&&(_0x2c5eea+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2e0803['value']+'\x22\x20title=\x22'+_0x2e0803['title']+'\x22></span>'),_0x2c5eea;}function At(_0x4d36d0){const _0x5f5ac5=document['createElement']('span');return _0x5f5ac5['innerText']=_0x4d36d0,_0x5f5ac5['innerHTML'];}function bt(_0x673425){return _0x673425['sort']((_0x5709d6,_0x58fe3f)=>'attribute'===_0x5709d6['type']&&'attribute'!==_0x58fe3f['type']?-0x1:'attribute'!==_0x5709d6['type']&&'attribute'===_0x58fe3f['type']?0x1:'deletion'==_0x5709d6['type']&&'deletion'!=_0x58fe3f['type']?-0x1:'deletion'!=_0x5709d6['type']&&'deletion'==_0x58fe3f['type']?0x1:0x0);}function Ct(_0x66c5dd,_0x132166){let _0x36efeb,_0x4db493=0x0;const _0x3a7263=[],_0x5e1ec4=_0x132166['schema'];for(;_0x4db493<_0x66c5dd['length'];){const _0x26cdd5=_0x66c5dd[_0x4db493],_0x37cf44=_0x66c5dd[_0x4db493+0x1];_0x36efeb||(_0x36efeb=_0x132166['createPositionBefore'](_0x26cdd5)),kt(_0x132166,_0x26cdd5,_0x37cf44)||(_0x3a7263['push'](_0x132166['createRange'](_0x36efeb,_0x5e1ec4['isObject'](_0x26cdd5)?_0x132166['createPositionAfter'](_0x26cdd5):_0x132166['createPositionAt'](_0x26cdd5,'end'))),_0x36efeb=null),_0x4db493++;}return _0x3a7263;}function kt(_0x347212,_0x3248be,_0x94e04d){if(!_0x94e04d)return!0x1;const _0x111f22=_0x347212['createPositionAfter'](_0x3248be),_0x1677ff=_0x347212['createPositionBefore'](_0x94e04d);return _0x111f22['isTouching'](_0x1677ff);}function Rt(_0x4ed47b,_0x422a8a,_0x2a3c3d){for(;_0x2a3c3d['length'];){const _0x4c88d6=_0x2a3c3d['splice'](0x0,0x64);_0x4ed47b['change'](()=>{for(const _0x22890a of _0x4c88d6)_0x22890a['isInContent']&&_0x422a8a['execute'](_0x22890a['id']);});}}var yt=class extends _0xa07efb{['_command'];_suggestions;constructor(_0x5eb58a,_0x4a89a5,_0x272145){super(_0x5eb58a),this['_command']=_0x4a89a5,this['_suggestions']=_0x272145,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fb0bb=Array['from'](this['_suggestions']['values']())['some'](_0x14da00=>_0x14da00['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4fb0bb;}execute(){const _0x3b4fe4=bt(Array['from'](this['_suggestions']['values']()));for(const _0x18eedf of _0x3b4fe4){const _0x3bef31=_0x18eedf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3bef31))return;}Rt(this['editor']['model'],this['_command'],_0x3b4fe4);}},Nt=class extends _0xa07efb{['_command'];_suggestions;_selectedSuggestions;constructor(_0x49f84d,_0x47927a,_0x36a361){super(_0x49f84d),this['_command']=_0x47927a,this['_suggestions']=_0x36a361,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40020d=this['editor']['model']['document']['selection'],_0x395077=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e7eaf,_0x16d493){const _0x52006d=Array['from'](_0x1e7eaf['getRanges']()),_0x4848a5=new Set();for(const _0x527f8a of _0x16d493)if(_0x527f8a['isInContent']){for(const _0x3e8721 of _0x52006d)for(const _0xcb3851 of _0x527f8a['getRanges']())(_0x3e8721['isIntersecting'](_0xcb3851)||_0x1e7eaf['isCollapsed']&&!_0x527f8a['isMultiRange']&&_0x527f8a['next']&&_0xcb3851['end']['isTouching'](_0x3e8721['start']))&&_0x4848a5['add'](_0x527f8a);}return _0x4848a5;}(_0x40020d,_0x395077),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0xb32260=bt(Array['from'](this['_selectedSuggestions']));for(const _0x1d909d of _0xb32260){const _0x3cd883=_0x1d909d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3cd883))return;}Rt(this['editor']['model'],this['_command'],_0xb32260);}};const St=/* #__PURE__ -- @preserve */
24
+ _0x43dfa7();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x395f53,_0x5c5d68){super(),this['id']=_0x5c5d68['id'],this['type']=_0x5c5d68['type'],this['subType']=_0x5c5d68['subType']||null,this['author']=_0x5c5d68['author'],this['creator']=_0x5c5d68['creator']||_0x5c5d68['author'],this['data']=null,this['_originalSuggestionId']=_0x5c5d68['originalSuggestionId']||null,this['_model']=_0x395f53,this['_onAccept']=_0x5c5d68['onAccept'],this['_onDiscard']=_0x5c5d68['onDiscard'],this['_onAttributesChange']=_0x5c5d68['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c5d68['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x17a2ec=this;for(;_0x17a2ec['previous'];)_0x17a2ec=_0x17a2ec['previous'];return _0x17a2ec;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2ec250){this['_markerNames']['add'](_0x2ec250);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x2b04dd=>this['_model']['markers']['get'](_0x2b04dd))['filter'](_0x1d5274=>_0x1d5274);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x40dc11=>{for(const _0x4ba48a of this['getMarkers']())_0x40dc11['removeMarker'](_0x4ba48a);}),this['_markerNames']['clear']();}['removeMarker'](_0xf79a5c){this['_model']['change'](_0x334aff=>{_0x334aff['removeMarker'](_0xf79a5c);}),this['_markerNames']['delete'](_0xf79a5c);}['addRange'](_0x4f039c){const _0x58f6e7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x58f6e7),this['_model']['change'](_0x4144d8=>{_0x4144d8['addMarker'](_0x58f6e7,{'range':_0x4f039c,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2906e2){for(const _0x10b4a5 of this['getRanges']())if(_0x10b4a5['isIntersecting'](_0x2906e2))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x4f09df=>_0x4f09df['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x49355f,_0x1f3781)=>[..._0x49355f,..._0x1f3781['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x577c62=this['getRanges']();if(0x1!=_0x577c62['length'])return null;const _0x5960aa=_0x577c62[0x0],_0x4ae983=_0x5960aa['start']['nodeAfter'],_0x456a70=_0x5960aa['end']['nodeBefore'];return _0x4ae983 instanceof st?_0x4ae983!=_0x456a70?null:_0x4ae983: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 _0x384512=[];let _0xac4db2=this['head'];for(;_0xac4db2;)_0x384512['push'](_0xac4db2),_0xac4db2=_0xac4db2['next'];return _0x384512;}setAttribute(_0xd6f3ff,_0x48e0b1){const _0x1a1b6f=ct(this['attributes']);dt(_0x1a1b6f,_0xd6f3ff,_0x48e0b1),lt(_0x1a1b6f,this['attributes'])||(this['attributes']=_0x1a1b6f,this['_onAttributesChange'](_0x1a1b6f));}removeAttribute(_0x3c7021){const _0x55c012=ct(this['attributes']);ht(_0x55c012,_0x3c7021),lt(_0x55c012,this['attributes'])||(this['attributes']=_0x55c012,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 _0x3223bf()['substr'](0x1,0x5);}};function Ot(_0x1ad1cb,_0x59d9bd,_0x4e6f6e){const _0x47b8eb=_0x1ad1cb['t'],t=_0x1ad1cb['t'];switch(_0x59d9bd){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x4e6f6e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4e6f6e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4e6f6e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4e6f6e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4e6f6e);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',_0x4e6f6e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4e6f6e);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x4e6f6e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4e6f6e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4e6f6e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4e6f6e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4e6f6e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4e6f6e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4e6f6e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4e6f6e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4e6f6e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4e6f6e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4e6f6e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4e6f6e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4e6f6e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4e6f6e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4e6f6e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4e6f6e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4e6f6e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4e6f6e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4e6f6e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4e6f6e);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x4e6f6e);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x4e6f6e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4e6f6e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4e6f6e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4e6f6e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4e6f6e);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x4e6f6e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e6f6e);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'},_0x4e6f6e);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x4e6f6e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4e6f6e);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4e6f6e);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4e6f6e);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4e6f6e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4e6f6e);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x47b8eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4e6f6e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47b8eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4e6f6e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4e6f6e);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'},_0x4e6f6e);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'},_0x4e6f6e);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'},_0x4e6f6e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x59d9bd;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x431798,_0x7ea15f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x431798,this['_locale']=_0x7ea15f;}getDescriptions(_0x462afe){const _0x5adca4=[],_0x4a4c56=new Set(),_0x3f51bc=new Set();for(let _0x431c8b=0x0;_0x431c8b<_0x462afe['length'];_0x431c8b++){const _0x4e9d64=_0x462afe[_0x431c8b];if(!_0x4e9d64['isInContent'])continue;const _0x2fee62=this['_handleCustomCallbackDescription'](_0x4e9d64);if(_0x2fee62){if(null!=_0x4e9d64['subType']){if(_0x4a4c56['has'](_0x4e9d64['subType']))continue;_0x4a4c56['add'](_0x4e9d64['subType']);}_0x5adca4['push'](_0x2fee62);}else{if('attribute'==_0x4e9d64['type']){const _0x2a7a5f=_0x4e9d64['data']['key'];if(_0x3f51bc['has'](_0x2a7a5f))continue;_0x3f51bc['add'](_0x4e9d64['data']['key']),'$elementName'==_0x2a7a5f?this['_handleRenameSuggestionDescription'](_0x5adca4,_0x4e9d64):this['_handleAttributeSuggestionDescription'](_0x5adca4,_0x4e9d64);continue;}'insertion'!=_0x4e9d64['type']&&'deletion'!=_0x4e9d64['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5adca4,_0x4e9d64,_0x462afe[_0x431c8b+0x1]);}}return this['_resolveDescriptionItems'](_0x5adca4);}registerDescriptionCallback(_0x4d0556){this['_customCallbacks']['push'](_0x4d0556);}registerElementLabel(_0x32d8fb,_0x5e991c,_0x2ead98=_0x1315a6['normal']){'function'==typeof _0x32d8fb?_0x176cae(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32d8fb,'label':_0x5e991c,'priority':_0x2ead98}):this['_itemLabels']['set'](_0x32d8fb,_0x5e991c);}registerAttributeLabel(_0x3903e7,_0x17f745){this['_attributeLabels']['set'](_0x3903e7,_0x17f745);}getItemLabel(_0x4599c5,_0x1e08d1=0x1){let _0x5e98ea;for(const _0x49a5a1 of this['_itemLabelsCallbacks'])if(_0x49a5a1['matchingCallback'](_0x4599c5)){_0x5e98ea=_0x49a5a1['label'];break;}return _0x5e98ea||(_0x5e98ea=this['_itemLabels']['get'](_0x4599c5['name'])),_0x5e98ea?_0x5e98ea(_0x1e08d1):0x1!==_0x1e08d1?_0x1e08d1+'\x20'+_0x4599c5['name']+'s':''+_0x4599c5['name'];}_addDescriptionItems(_0x28deef,_0x2502df){const _0x2bf012=_0x2502df['getFirstRange']()['getWalker'](),_0x3e5f1b='insertion'==_0x2502df['type']?'add':'remove';for(const _0x1fb459 of _0x2bf012){const _0x5828f1=_0x1fb459['item'],_0x301bb5=_0x28deef[_0x28deef['length']-0x1];if(_0x5828f1['is']('$textProxy'))_0x301bb5&&_0x301bb5['type']['indexOf']('Container')>-0x1&&_0x28deef['pop'](),_0x301bb5&&'text'==_0x301bb5['type']?_0x301bb5[_0x3e5f1b]+=_0x5828f1['data']:_0x28deef['push']({'type':'text','add':'add'==_0x3e5f1b?_0x5828f1['data']:'','remove':'remove'==_0x3e5f1b?_0x5828f1['data']:''});else{if(this['_schema']['isObject'](_0x5828f1)){const _0x52442b=_0x5828f1;if(_0x301bb5&&_0x301bb5['type']['indexOf']('Container')>-0x1&&_0x28deef['pop'](),'elementEnd'==_0x1fb459['type'])continue;_0x301bb5&&_0x301bb5['type']==_0x3e5f1b+'Object'&&_0x301bb5['element']['name']==_0x52442b['name']?_0x301bb5['quantity']++:_0x28deef['push']({'type':_0x3e5f1b+'Object','element':_0x52442b,'quantity':0x1}),_0x2bf012['skip'](_0x413f84=>!('elementEnd'==_0x413f84['type']&&_0x413f84['item']==_0x5828f1));}else{if(this['_schema']['checkChild'](_0x5828f1,'$text')||_0x5828f1['is']('element','softBreak')){const _0x40927d=_0x5828f1;if('add'==_0x3e5f1b&&'elementStart'==_0x1fb459['type']||'remove'==_0x3e5f1b&&'elementEnd'==_0x1fb459['type'])continue;if(_0x301bb5&&-0x1==_0x301bb5['type']['indexOf']('Container')){'text'==_0x301bb5['type']&&(_0x301bb5[_0x3e5f1b]+='\x0a');continue;}let _0x49d9af;if(_0x49d9af='add'==_0x3e5f1b?_0x40927d['nextSibling']&&!this['_schema']['isObject'](_0x40927d['nextSibling'])?_0x40927d['nextSibling']:null:_0x40927d['previousSibling']&&!this['_schema']['isObject'](_0x40927d['previousSibling'])?_0x40927d['previousSibling']:null,_0x40927d['isEmpty']||_0x49d9af&&_0x49d9af['isEmpty']){const _0x15b73c=_0x49d9af&&_0x49d9af['isEmpty']?_0x49d9af:_0x40927d;_0x301bb5&&_0x301bb5['type']==_0x3e5f1b+'EmptyContainer'&&_0x301bb5['element']['name']==_0x15b73c['name']?_0x301bb5['quantity']++:_0x28deef['push']({'type':_0x3e5f1b+'EmptyContainer','element':_0x15b73c,'quantity':0x1});}else _0x28deef['push']({'type':_0x3e5f1b+'Container','element':_0x40927d});}}}}}_resolveDescriptionItems(_0x3deb6a){const _0x3de86a=this['_locale'],_0x42d8af=[],_0x5e584e=[],_0x4b4c77=[];for(const _0x49549d of _0x3deb6a)switch(_0x49549d['type']){case'text':if(_0x49549d['add']=_0x49549d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49549d['remove']=_0x49549d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49549d['add']&&''!=_0x49549d['remove']){_0x42d8af['push']({'type':'replace','content':Ot(_0x3de86a,'REPLACE_TEXT',['\x22'+_0x49549d['remove']+'\x22','\x22'+_0x49549d['add']+'\x22'])});continue;}if(null!=_0x49549d['add']['match'](/^ +$/)){_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Insert:*\x20%0',Ot(_0x3de86a,'ELEMENT_SPACE',_0x49549d['add']['length']))});continue;}if(null!=_0x49549d['remove']['match'](/^ +$/)){_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Remove:*\x20%0',Ot(_0x3de86a,'ELEMENT_SPACE',_0x49549d['remove']['length']))});continue;}if(''!=_0x49549d['add']){_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Insert:*\x20%0','\x22'+_0x49549d['add']+'\x22')});continue;}_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Remove:*\x20%0','\x22'+_0x49549d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Insert:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Remove:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'addContainer':_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Split:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'removeContainer':_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Merge:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'addFormat':_0x5e584e['push'](_0x49549d['key']);continue;case'removeFormat':_0x4b4c77['push'](_0x49549d['key']);continue;default:_0x42d8af['push'](_0x49549d);}if(_0x5e584e['length']){const _0x3a41a2=_0x5e584e['map'](_0x2f17e1=>this['_attributeLabels']['has'](_0x2f17e1)?this['_attributeLabels']['get'](_0x2f17e1):_0x2f17e1)['join'](',\x20');_0x42d8af['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x3a41a2)});}if(_0x4b4c77['length']){const _0x15e470=_0x4b4c77['map'](_0x47870e=>this['_attributeLabels']['has'](_0x47870e)?this['_attributeLabels']['get'](_0x47870e):_0x47870e)['join'](',\x20');_0x42d8af['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x15e470)});}return _0x42d8af;}_handleCustomCallbackDescription(_0x1cf37d){for(const _0x50c895 of this['_customCallbacks']){const _0x2c7098=_0x50c895(_0x1cf37d);if(_0x2c7098&&'type'in _0x2c7098)return _0x2c7098;}}_handleAttributeSuggestionDescription(_0x4f23f9,_0x5cf87f){const _0x8a3ac8=_0x5cf87f['data'],_0x130621=void 0x0===_0x8a3ac8['newValue']?'removeFormat':'addFormat';_0x4f23f9['push']({'type':_0x130621,'key':_0x8a3ac8['key']});}_handleRenameSuggestionDescription(_0x57dc3f,_0x14de11){_0x57dc3f['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x14de11['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x36263e,_0x4af62d,_0x2fcc26){if(this['_addDescriptionItems'](_0x36263e,_0x4af62d),_0x2fcc26&&_0x2fcc26['getFirstRange']()&&!_0x4af62d['getFirstRange']()['end']['isEqual'](_0x2fcc26['getFirstRange']()['start'])){const _0x50272e=_0x36263e[_0x36263e['length']-0x1],_0x1c001c='insertion'==_0x4af62d['type']?'add':'remove';_0x50272e&&'text'==_0x50272e['type']&&(_0x50272e[_0x1c001c]+='\x0a');}}},Ft=class extends _0x3b6d8a{afterInit(){const _0x50fa77=this['editor'],_0x3820db=_0x50fa77['plugins']['get']('TrackChangesEditing');_0x50fa77['commands']['get']('showAIAssistant')&&_0x3820db['enableCommand']('showAIAssistant');}},Bt=class extends _0x3b6d8a{afterInit(){const _0x517d74=this['editor'],_0x4c4873=_0x517d74['plugins']['get']('TrackChangesEditing');_0x517d74['commands']['get']('toggleAi')&&_0x4c4873['enableCommand']('toggleAi');}},vt=class extends _0x3b6d8a{afterInit(){const _0x3afe75=this['editor'],_0x1d5810=_0x3afe75['plugins']['get']('TrackChangesEditing');_0x3afe75['commands']['get']('aiQuickAction')&&_0x1d5810['enableCommand']('aiQuickAction');}},Dt=class extends _0x3b6d8a{afterInit(){const _0xa367d1=this['editor'],_0x358adc=_0xa367d1['locale'];if(!_0xa367d1['plugins']['has']('AlignmentEditing'))return;const _0x2d8eb8=_0xa367d1['plugins']['get']('TrackChangesEditing');_0x2d8eb8['enableDefaultAttributesIntegration']('alignment'),_0x2d8eb8['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x358adc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xd5010f=this['editor'],_0x57cf42=_0xd5010f['locale'];_0xd5010f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310043=>{if('formatBlock'!=_0x310043['type'])return;const {data:_0x10738f}=_0x310043;if(_0x10738f&&'alignment'==_0x10738f['commandName']){const _0x3bff8b=_0x10738f['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x57cf42,'*Format:*\x20%0',function(_0x572aed){switch(_0x572aed){case'left':return Ot(_0x57cf42,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x57cf42,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x57cf42,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x57cf42,'FORMAT_JUSTIFY_TEXT');}}(_0x3bff8b))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x3b6d8a{afterInit(){const _0x4ce5c6=this['editor'],_0x484c4b=_0x4ce5c6['plugins']['get']('TrackChangesEditing'),_0x4dfce2=_0x4ce5c6['locale'];for(const _0x4d936c of Ut){if(!_0x4ce5c6['plugins']['has'](_0x4d936c))continue;const _0x296a2b=_0x4d936c['slice'](0x0,-0x7)['toLowerCase'](),_0x2c1408='FORMAT_'+_0x296a2b['toUpperCase']();_0x484c4b['enableDefaultAttributesIntegration'](_0x296a2b),_0x484c4b['descriptionFactory']['registerAttributeLabel'](_0x296a2b,Ot(_0x4dfce2,_0x2c1408));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4720d9=this['editor'],_0x26a1a4=_0x4720d9['locale'],_0x16eb61=_0x4720d9['plugins']['get']('TrackChangesEditing');function _0x194848(_0x261729,_0x307707){_0x16eb61['descriptionFactory']['registerDescriptionCallback'](_0x5449f2=>{if('formatInline'!=_0x5449f2['type'])return;const {data:_0x1034bd}=_0x5449f2;return _0x1034bd&&_0x1034bd['commandName']===_0x261729?_0x1034bd['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x26a1a4,'*Format:*\x20%0',_0x307707)}:{'type':'format','content':Ot(_0x26a1a4,'*Remove\x20format:*\x20%0',_0x307707)}:void 0x0;});}_0x194848('bold',Ot(_0x26a1a4,'FORMAT_BOLD')),_0x194848('italic',Ot(_0x26a1a4,'FORMAT_ITALIC')),_0x194848('underline',Ot(_0x26a1a4,'FORMAT_UNDERLINE')),_0x194848('code',Ot(_0x26a1a4,'FORMAT_CODE')),_0x194848('strikethrough',Ot(_0x26a1a4,'FORMAT_STRIKETHROUGH')),_0x194848('subscript',Ot(_0x26a1a4,'FORMAT_SUBSCRIPT')),_0x194848('superscript',Ot(_0x26a1a4,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x3b6d8a{afterInit(){const _0x7d5b0f=this['editor'],_0x36810d=_0x7d5b0f['locale'];if(!_0x7d5b0f['plugins']['has']('BlockQuoteEditing'))return;const _0x323852=_0x7d5b0f['plugins']['get']('TrackChangesEditing'),_0x1a794c=this['editor']['commands']['get']('blockQuote');_0x323852['enableCommand']('blockQuote',(_0x14c081,_0x44523f={})=>{const _0x5dba34=this['editor']['model']['document']['selection'],_0x2692ec=_0x44523f&&void 0x0!==_0x44523f['forceValue']?_0x44523f['forceValue']:!_0x1a794c['value'];let _0x35cbe0=[];_0x35cbe0=Ct(_0x2692ec?Array['from'](_0x5dba34['getSelectedBlocks']())['filter'](_0x1e6503=>Gt(_0x1e6503)||function(_0x6c2753,_0x455691){const _0x418783=_0x455691['createContext'](_0x6c2753['parent']);return!!_0x455691['checkChild'](_0x418783,'blockQuote')&&!!_0x455691['checkChild'](_0x418783['push']('blockQuote'),_0x6c2753);}(_0x1e6503,this['editor']['model']['schema'])):Array['from'](_0x5dba34['getSelectedBlocks']())['filter'](_0x65d443=>Gt(_0x65d443)),_0x7d5b0f['model']),_0x7d5b0f['model']['change'](()=>{for(const _0x82bc2c of _0x35cbe0)_0x323852['markBlockFormat'](_0x82bc2c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2692ec}]});});}),_0x323852['descriptionFactory']['registerDescriptionCallback'](_0x477c87=>{const {data:_0x9966b2}=_0x477c87;if(_0x9966b2&&'blockQuote'==_0x9966b2['commandName']){const _0x227ec5=Ot(_0x36810d,'ELEMENT_BLOCK_QUOTE');return _0x9966b2['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x36810d,'*Set\x20format:*\x20%0',_0x227ec5)}:{'type':'format','content':Ot(_0x36810d,'*Remove\x20format:*\x20%0',_0x227ec5)};}});}};function Gt(_0x528198){return'blockQuote'==_0x528198['parent']['name'];}var Ht=class extends _0x3b6d8a{afterInit(){const _0xd65b66=this['editor'],_0x4ad813=_0xd65b66['locale'],_0x30c7d0=_0xd65b66['plugins']['get']('TrackChangesEditing');_0xd65b66['plugins']['has']('BookmarkEditing')&&(_0x30c7d0['enableCommand']('insertBookmark'),_0x30c7d0['enableDefaultAttributesIntegration']('updateBookmark'),_0x30c7d0['descriptionFactory']['registerDescriptionCallback'](_0x38e85c=>{if('insertion'!=_0x38e85c['type']&&'deletion'!=_0x38e85c['type']&&'attribute'!=_0x38e85c['type'])return;const _0x34845c=_0x38e85c['getContainedElement']();if(null==_0x34845c)return;if(!_0x34845c['is']('element','bookmark'))return;const _0x59b802=_0x34845c['getAttribute']('bookmarkId');if('insertion'==_0x38e85c['type'])return{'type':'insertion','content':Ot(_0x4ad813,'*Insert:*\x20%0','\x22'+_0x59b802+'\x22\x20'+Ot(_0x4ad813,'ELEMENT_BOOKMARK'))};if('deletion'==_0x38e85c['type'])return{'type':'deletion','content':Ot(_0x4ad813,'*Remove:*\x20%0','\x22'+_0x59b802+'\x22\x20'+Ot(_0x4ad813,'ELEMENT_BOOKMARK'))};const {data:_0x234ed3}=_0x38e85c;return _0x234ed3&&'bookmarkId'==_0x234ed3['key']?{'type':'format','content':Ot(_0x4ad813,'*Set\x20bookmark:*\x20%0','\x22'+_0x234ed3['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x3b6d8a{afterInit(){const _0xa89e91=this['editor'];_0xa89e91['plugins']['has']('CaseChange')&&(_0xa89e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa89e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa89e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x3b6d8a{afterInit(){const _0xa3fa85=this['editor'];_0xa3fa85['commands']['get']('ckbox')&&_0xa3fa85['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x3b6d8a{static get requires(){return[gt,ft];}constructor(_0x4257fc){super(_0x4257fc),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0xacdb42=this['editor'],_0x75360c=_0xacdb42['plugins']['get']('ClipboardMarkersUtils'),_0x5f3d91=_0xacdb42['plugins']['get'](ft);_0x75360c['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x5f3d91['on']('outputTransformation',(_0x50e6d1,_0x56543e)=>{const _0x5ecfe2=this['_getSuggestionEntries'](_0x56543e);for(const [_0x45d2f1,_0x16e0cf]of _0x56543e['content']['markers']){const _0x371d8d=ot['_fromRangeInDocumentFragment'](_0x16e0cf,_0xacdb42['model']);function _0x1238d3(){_0x371d8d['detach'](),_0x56543e['content']['markers']['delete'](_0x45d2f1);}_0x371d8d['on']('change:drop',_0x1238d3),(_0x45d2f1['startsWith']('suggestion:')||_0x45d2f1['startsWith']('comment:'))&&_0x371d8d['on']('change:range',()=>{_0x371d8d['isCollapsed']&&_0x1238d3();}),_0x56543e['content']['markers']['set'](_0x45d2f1,_0x371d8d);}const _0x2884d4=_0x5ecfe2['filter'](_0x241295=>'deletion'===_0x241295['meta']['type'])['map'](_0x58841d=>_0x58841d['modelRange']);if(this['_shouldSkipDeletions'](_0x2884d4,_0x56543e['content']))return[..._0x5ecfe2]['forEach'](_0x17c814=>{_0x56543e['content']['markers']['get'](_0x17c814['markerName'])['detach'](),_0x56543e['content']['markers']['delete'](_0x17c814['markerName']);}),void this['_restoreRegularRanges'](_0x56543e['content']['markers']);[..._0x5ecfe2]['forEach'](_0x2906f4=>{const _0x3c2abc=_0xacdb42['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x2906f4['meta']['type'],_0x2906f4['meta']['subType'],'accept'),{markerName:_0x324808,meta:_0x4d1f68}=_0x2906f4;if(_0x56543e['content']['markers']['has'](_0x324808)){switch(_0x4d1f68['type']){case'deletion':if('tableRow'===_0x4d1f68['subType']||'tableColumn'===_0x4d1f68['subType']){if(!_0xacdb42['plugins']['has']('TableUtils'))break;const _0x3ae5a3=_0xacdb42['plugins']['get']('TableUtils'),_0x20825e=_0x3ae5a3['getSelectionAffectedTableCells'](_0xacdb42['model']['createSelection'](_0x56543e['content']['markers']['get'](_0x324808))),_0x24a0bd=_0x20825e[0x0]['findAncestor']('table');if('tableRow'===_0x4d1f68['subType']){const {first:_0x24e0b1,last:_0x3db3b7}=_0x3ae5a3['getRowIndexes'](_0x20825e);_0x3ae5a3['removeRows'](_0x24a0bd,{'at':_0x24e0b1,'rows':_0x3db3b7-_0x24e0b1+0x1});}else{const {first:_0x583247,last:_0x4c1567}=_0x3ae5a3['getColumnIndexes'](_0x20825e);_0x3ae5a3['removeColumns'](_0x24a0bd,{'at':_0x583247,'columns':_0x4c1567-_0x583247+0x1});}break;}_0x3c2abc([_0x56543e['content']['markers']['get'](_0x324808)]);}_0x56543e['content']['markers']['has'](_0x324808)&&(_0x56543e['content']['markers']['get'](_0x324808)['detach'](),_0x56543e['content']['markers']['delete'](_0x324808));}}),this['_restoreRegularRanges'](_0x56543e['content']['markers']);});}_getSuggestionEntries(_0x199e73){const _0x178607=_0x56861a=>'dragstart'===_0x199e73['method']?_0x56861a['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x56861a;return Array['from'](_0x199e73['content']['markers'])['map'](([_0x135b2c,_0x3e1eb3])=>({'markerName':_0x135b2c,'modelRange':_0x3e1eb3,'meta':et(_0x178607(_0x135b2c))}))['filter'](({meta:_0x1642b2})=>'suggestion'===_0x1642b2['group']);}_shouldSkipDeletions(_0x6ab791,_0x296df7){if(!_0x6ab791['length'])return!0x1;let _0x52aca0=[this['editor']['model']['createRangeIn'](_0x296df7)];for(const _0x4cd594 of _0x6ab791)_0x52aca0=_0x52aca0['flatMap'](_0x533319=>_0x533319['getDifference'](_0x4cd594));return!_0x52aca0['some'](_0x44b821=>this['editor']['model']['hasContent'](_0x44b821,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x1fbf46){[..._0x1fbf46['keys']()]['forEach'](_0x500d7c=>{const _0x109e80=_0x1fbf46['get'](_0x500d7c);_0x109e80['detach'](),_0x1fbf46['set'](_0x500d7c,_0x109e80['toRange']());});}},jt=class extends _0x3b6d8a{afterInit(){const _0x93a92f=this['editor'];if(!_0x93a92f['plugins']['has']('CodeBlock'))return;const _0x3f8dc0=_0x93a92f['plugins']['get']('TrackChangesEditing'),_0x1b148f=_0x93a92f['locale'],_0x4564ee=_0x93a92f['config']['get']('codeBlock')['languages'],_0x537705=_0x93a92f['commands']['get']('codeBlock');_0x3f8dc0['enableCommand']('indentCodeBlock'),_0x3f8dc0['enableCommand']('outdentCodeBlock'),_0x3f8dc0['enableCommand']('codeBlock',(_0x517940,_0x16c233={})=>{const _0x416fbd=_0x93a92f['model'],_0x1a0ce0=_0x93a92f['model']['document']['selection'],_0x202920=_0x16c233&&void 0x0!==_0x16c233['forceValue']?_0x16c233['forceValue']:!_0x537705['value'];let _0x43ffea;_0x16c233['language']||(_0x16c233['language']=_0x4564ee[0x0]['language']),_0x43ffea=_0x202920?Array['from'](_0x1a0ce0['getSelectedBlocks']())['filter'](_0x521b10=>{return zt(_0x521b10)||(_0x12bd87=_0x521b10,_0x5b473f=_0x416fbd['schema'],!_0x12bd87['is']('rootElement')&&!_0x5b473f['isLimit'](_0x12bd87)&&_0x5b473f['checkChild'](_0x12bd87['parent'],'codeBlock'));var _0x12bd87,_0x5b473f;}):Array['from'](_0x1a0ce0['getSelectedBlocks']())['filter'](_0xeb5305=>zt(_0xeb5305));const _0x4abf80=Ct(_0x43ffea,_0x416fbd);_0x416fbd['change'](()=>{for(const _0x4bad4f of _0x4abf80)_0x3f8dc0['markBlockFormat'](_0x4bad4f,{'commandName':'codeBlock','commandParams':[{..._0x16c233,'forceValue':_0x202920}],'formatGroupId':'blockName'});});}),(_0x3f8dc0['descriptionFactory']['registerElementLabel']('codeBlock',_0x1821d1=>Ot(_0x1b148f,'ELEMENT_CODE_BLOCK',_0x1821d1)),_0x3f8dc0['descriptionFactory']['registerDescriptionCallback'](_0x3f5b45=>{if('formatBlock'!=_0x3f5b45['type'])return;const _0xbae6fa=_0x1b148f['t'],{data:_0x876259}=_0x3f5b45;if(!_0x876259||'codeBlock'!=_0x876259['commandName'])return;const _0x2b978f=_0x876259['commandParams'][0x0]['language'],_0x39353a=_0xbae6fa(_0x4564ee['find'](_0x139233=>_0x139233['language']===_0x2b978f)['label'])['toLowerCase']();return _0x876259['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1b148f,'*Set\x20format:*\x20%0',Ot(_0x1b148f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x39353a+')')}:{'type':'format','content':Ot(_0x1b148f,'*Remove\x20format:*\x20%0',Ot(_0x1b148f,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x4cf1f8){return'codeBlock'==_0x4cf1f8['name'];}var Kt=class extends _0x3b6d8a{afterInit(){const _0x533e5e=this['editor'];_0x533e5e['plugins']['has']('CommentsEditing')&&_0x533e5e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x3b6d8a{static get requires(){return[mt];}init(){const _0x4fbf5e=this['editor'],_0x262614=_0x4fbf5e['plugins']['get']('TrackChangesEditing');_0x262614['enableCommand']('delete');const _0x405ba4=_0x4fbf5e['commands']['get']('deleteForward');_0x262614['enableCommand']('deleteForward',(_0x5c3ac4,_0x15a09d={})=>{const _0x1da3cd=_0x4fbf5e['model']['createSelection'](_0x4fbf5e['model']['document']['selection']);_0x1da3cd['isCollapsed']&&_0x4fbf5e['model']['modifySelection'](_0x1da3cd,{'direction':'forward','unit':_0x15a09d['unit']});const _0x498db7=_0x1da3cd['getFirstRange'](),_0x157c2f=ot['fromRange'](_0x498db7);let _0x1e4bf6;_0x5c3ac4(_0x15a09d),_0x1e4bf6='$graveyard'==_0x157c2f['root']['rootName']?_0x4fbf5e['model']['createRange'](_0x498db7['start']):_0x4fbf5e['model']['createRange'](_0x157c2f['start'],_0x157c2f['end']),_0x157c2f['detach'](),_0x4fbf5e['model']['enqueueChange'](_0x405ba4['buffer']['batch'],_0x3f9627=>{_0x405ba4['buffer']['lock'](),_0x3f9627['setSelection'](_0x3f9627['createRange'](_0x1e4bf6['end'])),_0x405ba4['buffer']['unlock']();});});}},qt=class extends _0x3b6d8a{afterInit(){const _0x594721=this['editor'];if(!_0x594721['plugins']['has']('ListEditing'))return;const _0x7bcfbc=_0x594721['locale'],_0x187e71=_0x594721['plugins']['get']('TrackChangesEditing'),_0x9c0540=_0x594721['plugins']['has']('TodoListEditing'),_0x2d3667=!!_0x594721['config']['get']('list.multiBlock');function _0x24b4a2(_0x2d21d0){return{'type':'format','content':''+Ot(_0x7bcfbc,'*Set\x20format:*\x20%0',_0x2d21d0)};}function _0x108118(_0x3bfb86){return{'type':'format','content':''+Ot(_0x7bcfbc,'*Remove\x20format:*\x20%0',_0x3bfb86)};}_0x187e71['enableDefaultAttributesIntegration']('numberedList'),_0x187e71['enableDefaultAttributesIntegration']('bulletedList'),_0x187e71['enableDefaultAttributesIntegration']('customNumberedList'),_0x187e71['enableDefaultAttributesIntegration']('customBulletedList'),_0x187e71['enableDefaultAttributesIntegration']('indentList'),_0x187e71['enableDefaultAttributesIntegration']('outdentList'),_0x187e71['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x187e71['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2d3667&&(_0x187e71['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x187e71['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x9c0540&&(_0x187e71['enableDefaultAttributesIntegration']('todoList'),_0x187e71['enableDefaultAttributesIntegration']('checkTodoList'),_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x195761=>{const {data:_0x195680}=_0x195761;if(_0x195680&&'todoListChecked'==_0x195680['key'])return{'type':'format','content':_0x195680['newValue']?Ot(_0x7bcfbc,'*Check\x20item*'):Ot(_0x7bcfbc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x125cd6=>{if(_0x125cd6['batch']['isUndo'])return!0x1;let _0x4f1c13=!0x1;const _0x716f54=_0x187e71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c82b6=>'todoListChecked'===_0x187e71['_getAttributeKey'](_0x6c82b6));for(const _0x1c71b5 of _0x716f54)'todo'!=_0x1c71b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x187e71['_findSuggestions'](_0x1c71b5['getFirstRange'](),'attribute')['find'](_0x46b582=>'listType'===_0x187e71['_getAttributeKey'](_0x46b582['suggestion']))||(_0x125cd6['removeMarker'](_0x1c71b5['getFirstMarker']()),_0x4f1c13=!0x0));return _0x4f1c13;})),_0x187e71['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x7bcfbc,'FORMAT_INDENT'));const _0xf120a4={'type':'format','content':''};_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x282157=>{const {data:_0xb8b03d}=_0x282157;if(!_0xb8b03d||'listType'!=_0xb8b03d['key'])return;let _0x857226=_0x282157['head'];for(;_0x857226;){if(_0x857226['data']&&(('listStyle'==_0x857226['data']['key']||'listMarkerStyle'==_0x857226['data']['key'])&&(_0x857226['data']['newValue']&&'default'!=_0x857226['data']['newValue']||'default'!=_0x857226['data']['oldValue']&&!_0xb8b03d['newValue'])||!_0x2d3667&&'$elementName'==_0x857226['data']['key']))return _0xf120a4;_0x857226=_0x857226['next'];}if(null==_0xb8b03d['newValue'])switch(_0xb8b03d['oldValue']){case'bulleted':return _0x108118(Ot(_0x7bcfbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x108118(Ot(_0x7bcfbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x108118(Ot(_0x7bcfbc,'ELEMENT_TODO_LIST'));}switch(_0xb8b03d['newValue']){case'bulleted':return _0x24b4a2(Ot(_0x7bcfbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24b4a2(Ot(_0x7bcfbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24b4a2(Ot(_0x7bcfbc,'ELEMENT_TODO_LIST'));}}),_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x5b461c=>{const {data:_0x133d9d}=_0x5b461c;if(_0x133d9d&&'listIndent'==_0x133d9d['key'])return null==_0x133d9d['newValue']||null==_0x133d9d['oldValue']&&0x0==_0x133d9d['newValue']?_0xf120a4:void 0x0;}),_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x3d6cec=>{if('attribute'!=_0x3d6cec['type'])return;const {data:_0x666146}=_0x3d6cec;if(!_0x666146||'listItemId'!=_0x666146['key'])return;const _0x23ead7=Yt(_0x3d6cec);return'newValue'==_0x23ead7?{'type':'format','content':Ot(_0x7bcfbc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x23ead7?{'type':'format','content':Ot(_0x7bcfbc,'*Split:*\x20list\x20item')}:_0xf120a4;}),_0x594721['model']['document']['registerPostFixer'](_0xc39635=>this['listItemIdFixer'](_0xc39635)),_0x594721['model']['document']['registerPostFixer'](_0x5a0af7=>this['noTrackChangesFixer'](_0x5a0af7)),_0x594721['model']['document']['on']('change:data',(_0x1aa302,_0x164982)=>{if(_0x164982['isUndo']||!_0x164982['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x4b185a){if(_0x4b185a['batch']['isUndo']||!_0x4b185a['batch']['isLocal'])return!0x1;let _0xeeafcc=!0x1;const _0x25b977=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x461394=>_0x461394['data']&&'listItemId'==_0x461394['data']['key'])['filter'](_0x571ec8=>_0x571ec8['data']['newValue']&&_0x571ec8['data']['oldValue']);for(const _0x62c1a2 of _0x25b977)Yt(_0x62c1a2)||(_0x4b185a['removeMarker'](_0x62c1a2['getFirstMarker']()),_0xeeafcc=!0x0);return _0xeeafcc;}['noTrackChangesFixer'](_0x1418aa){if(_0x1418aa['batch']['isUndo']||!_0x1418aa['batch']['isLocal'])return!0x1;const _0x26279b=this['editor']['model']['document']['differ'],_0x1e6838=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e6838['trackChangesCommand']['value'])return!0x1;let _0x3d79a2=!0x1;const _0xcb6609=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x4ceede=_0x26279b['getChanges']()['filter'](_0x5a0800=>'attribute'==_0x5a0800['type'])['filter'](_0xe05d2b=>_0xcb6609['has'](_0xe05d2b['attributeKey']));if(0x0==_0x4ceede['length'])return _0x3d79a2;const _0x443686=new Set(_0x26279b['getMarkersToAdd']()['filter'](_0x17690c=>{if(!_0x17690c['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4c731a=et(_0x17690c['name'])['subType']['split']('|')[0x0];return _0xcb6609['has'](_0x4c731a);})['map'](_0x51b83e=>et(_0x51b83e['name'])['id']));for(const _0x1562af of _0x4ceede){const _0x54ec62=_0x1e6838['_findSuggestions'](_0x1562af['range'],'attribute')['filter'](_0x34765f=>{if(_0x34765f['meta']['isNextTo'])return!0x1;if(_0x443686['has'](_0x34765f['suggestion']['id']))return!0x1;const _0x17e059=_0x1e6838['_getAttributeKey'](_0x34765f['suggestion']);return _0xcb6609['has'](_0x17e059);})['map'](_0x487ffb=>_0x487ffb['suggestion']);if(_0x54ec62['length']){for(const _0x2342ff of _0x54ec62)_0x1418aa['removeMarker'](_0x2342ff['getFirstMarker']());_0x3d79a2=!0x0;}}return _0x3d79a2;}['assureChains'](){const _0x1a74c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x422b40=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4ff9b6;const _0x34e7f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fb93d=>{if(_0x2fb93d['data']['oldRange']||!_0x2fb93d['data']['newRange'])return null;if(!_0x2fb93d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x59c812}=et(_0x2fb93d['name']);if(!_0x1a74c3['hasSuggestion'](_0x59c812))return null;const _0x490604=_0x1a74c3['getSuggestion'](_0x59c812);return _0x422b40['includes'](_0x490604['data']['key']);})['map'](_0x32d690=>{const {id:_0x197ba7}=et(_0x32d690['name']),_0x1a598d=_0x1a74c3['getSuggestion'](_0x197ba7);return _0x4ff9b6=_0x1a598d['attributes']['groupId'],_0x1a598d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x34e7f3['size'])return;const _0x5e55b1=_0x1a74c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d0e8f=>'attribute'==_0x4d0e8f['type']&&_0x4d0e8f['data']&&_0x422b40['includes'](_0x4d0e8f['data']['key'])&&_0x4d0e8f['attributes']['groupId']!=_0x4ff9b6)['map'](_0x36413e=>({'listItem':_0x36413e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x36413e['attributes']['groupId']})),_0x1f5e9b=new Set();for(const {groupId:_0x42481d,listItem:_0x5d8092}of _0x5e55b1)_0x34e7f3['has'](_0x5d8092)&&_0x1f5e9b['add'](_0x42481d);for(const _0x5c93fb of _0x1a74c3['getSuggestions']())_0x1f5e9b['has'](_0x5c93fb['attributes']['groupId'])&&_0x5c93fb['setAttribute']('groupId',_0x4ff9b6);}_supportLegacySuggestions(){const _0x116778=this['editor'],_0x4fbe38=_0x116778['locale'],_0x5996a3=_0x116778['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5996a3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x47fbff,_0x33388f){const _0xf71caf=[];for(let _0x38d901 of _0x47fbff)_0x38d901['start']['nodeAfter']===_0x38d901['end']['parent']&&(_0x38d901=_0x116778['model']['createRange'](_0x116778['model']['createPositionAt'](_0x38d901['start']['nodeAfter'],0x0))),_0xf71caf['push'](_0x38d901);_0x116778['model']['change'](_0x29d7ae=>{const _0x58c49a=_0x116778['model']['document']['selection'],_0x5d536f=Array['from'](_0x58c49a['getRanges']())['map'](_0x10f1bb=>ot['fromRange'](_0x10f1bb));_0x29d7ae['setSelection'](_0xf71caf),_0x116778['commands']['get'](_0x33388f['commandName'])['refresh'](),_0x33388f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x116778['execute'](_0x33388f['commandName'],..._0x33388f['commandParams']),_0x29d7ae['setSelection'](_0x5d536f);for(const _0x853d55 of _0x5d536f)_0x853d55['detach']();});}),_0x5996a3['descriptionFactory']['registerElementLabel'](function(_0x44f334){const _0x146af8=!_0x116778['model']['schema']['isObject'](_0x44f334),_0x552c37=_0x44f334['previousSibling'],_0x5488e0=_0x44f334['nextSibling'],_0x62528a=_0x44f334['getAttribute']('listItemId'),_0x49ea45=!_0x552c37||_0x552c37['getAttribute']('listItemId')!==_0x62528a,_0x568f21=!_0x5488e0||_0x5488e0['getAttribute']('listItemId')!==_0x62528a;return _0x146af8&&Boolean(_0x62528a)&&_0x49ea45&&_0x568f21;},_0xc1a5cc=>Ot(_0x4fbe38,'ELEMENT_LIST_ITEM',_0xc1a5cc));}_registerLegacyDescription(){const _0x1755ff=this['editor'],_0x247431=_0x1755ff['locale'];function _0x3136dd(_0x4893fa){const _0x38aa05=_0x1755ff['commands']['get']('bulletedList')['value'],_0x315964=_0x1755ff['commands']['get']('numberedList')['value'];return'numberedList'===_0x4893fa?_0x38aa05:_0x315964;}_0x1755ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3046de){if('formatBlock'!=_0x3046de['type'])return;const {data:_0x4907d6}=_0x3046de;if(!_0x4907d6)return;let _0x2db26b,_0x1530ac,_0x593b8b,_0x44ae0f;switch(_0x4907d6['commandName']){case'bulletedList':_0x593b8b=_0x4907d6['commandParams'][0x0]['forceValue'],_0x44ae0f=_0x3136dd(_0x4907d6['commandName']),_0x2db26b=_0x593b8b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x44ae0f&&_0x1755ff['config']['get']('list.multiBlock')||(_0x2db26b='*Change\x20to:*\x20%0'),_0x1530ac={'type':'format','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x593b8b=_0x4907d6['commandParams'][0x0]['forceValue'],_0x44ae0f=_0x3136dd(_0x4907d6['commandName']),_0x2db26b=_0x593b8b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x44ae0f&&_0x1755ff['config']['get']('list.multiBlock')||(_0x2db26b='*Change\x20to:*\x20%0'),_0x1530ac={'type':'format','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2db26b='*Indent:*\x20%0',_0x1530ac={'type':'format','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2db26b=function(_0x2b8cf5){const _0x3f5272=_0x2b8cf5['getFirstRange']();let _0x1c5182=_0x3f5272['start']['nodeAfter'];for(;_0x1c5182&&_0x3f5272['containsItem'](_0x1c5182);){if(_0x1c5182['getAttribute']('listIndent')>0x0)return!0x1;_0x1c5182=_0x1c5182['nextSibling'];}return!0x0;}(_0x3046de)?Ot(_0x247431,'*Format:*\x20remove\x20from\x20%0',Ot(_0x247431,function(_0x586899){return'ELEMENT_'+_0x586899['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3046de))):Ot(_0x247431,'*Outdent:*\x20%0',Ot(_0x247431,'ELEMENT_LIST_ITEM')),_0x1530ac={'type':'format','content':_0x2db26b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4907d6['multipleBlocks']&&(_0x2db26b='*Merge:*\x20%0',_0x1530ac={'type':'deletion','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_LIST_ITEM'))});}return _0x1530ac;});}};function Yt(_0xe7f735){let _0x4423c0=_0xe7f735['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4423c0;){const _0x3b49fc=_0x4423c0['getAttribute']('listItemId');if(!_0x3b49fc)return!0x1;if(_0x3b49fc==_0xe7f735['data']['newValue'])return'newValue';if(_0x3b49fc==_0xe7f735['data']['oldValue'])return'oldValue';_0x4423c0=_0x4423c0['previousSibling'];}return!0x1;}var Qt=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x47bb86=this['editor']['config']['get']('list.properties'),_0x492dce=this['editor']['plugins']['get']('TrackChangesEditing');_0x47bb86['styles']&&_0x492dce['enableDefaultAttributesIntegration']('listStyle'),_0x47bb86['reversed']&&_0x492dce['enableDefaultAttributesIntegration']('listReversed'),_0x47bb86['startIndex']&&_0x492dce['enableDefaultAttributesIntegration']('listStart');const _0xb255b2={'type':'format','content':''};_0x492dce['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x121b5e=this['editor']['locale'];_0x492dce['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x121b5e,'FORMAT_LIST_REVERSED')),_0x492dce['descriptionFactory']['registerDescriptionCallback'](_0x3c27dc=>{const {data:_0x1af1ad}=_0x3c27dc;if(_0x1af1ad&&'listReversed'==_0x1af1ad['key'])return null==_0x1af1ad['newValue']||0x0==_0x1af1ad['newValue']&&null==_0x1af1ad['oldValue']?_0xb255b2:void 0x0;}),_0x492dce['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x121b5e,'FORMAT_LIST_START')),_0x492dce['descriptionFactory']['registerDescriptionCallback'](_0x23b58f=>{const {data:_0x4be8ea}=_0x23b58f;if(_0x4be8ea&&'listStart'==_0x4be8ea['key'])return null==_0x4be8ea['newValue']||0x1==_0x4be8ea['newValue']&&null==_0x4be8ea['oldValue']?_0xb255b2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5ccb1e=>{if(_0x5ccb1e['batch']['isUndo'])return!0x1;let _0x508172=!0x1;const _0x4efe80=_0x492dce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16cd15=>{const _0x54d99d=_0x492dce['_getAttributeKey'](_0x16cd15);return'listStart'==_0x54d99d||'listReversed'==_0x54d99d;});for(const _0x3476aa of _0x4efe80){const _0x1bbb3b=_0x3476aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x1bbb3b&&'customNumbered'!=_0x1bbb3b&&(_0x492dce['_findSuggestions'](_0x3476aa['getFirstRange'](),'attribute')['find'](_0x46b203=>'listType'==_0x492dce['_getAttributeKey'](_0x46b203['suggestion']))||(_0x5ccb1e['removeMarker'](_0x3476aa['getFirstMarker']()),_0x508172=!0x0));}return _0x508172;}),this['_registerLegacyDescription']();}handleDescriptions(_0x27d2c2){const _0x5dd779=this['editor']['locale'],{data:_0x3bf7d6}=_0x27d2c2,_0xab5729={'type':'format','content':''};if(!_0x3bf7d6||'listStyle'!=_0x3bf7d6['key'])return;if(!_0x3bf7d6['oldValue'])return'default'==_0x3bf7d6['newValue']?_0xab5729:{'type':'format','content':''+Ot(_0x5dd779,'*Set\x20format:*\x20%0',Ot(_0x5dd779,this['_getTranslationKeyForListStyle'](_0x3bf7d6['newValue'])))};if(!_0x3bf7d6['newValue']){if('default'==_0x3bf7d6['oldValue'])return _0xab5729;let _0x1de6da=_0x27d2c2['head'];for(;_0x1de6da;){if(_0x1de6da['data']&&'listType'==_0x1de6da['data']['key']&&_0x1de6da['data']['newValue'])return _0xab5729;_0x1de6da=_0x1de6da['next'];}return{'type':'format','content':''+Ot(_0x5dd779,'*Remove\x20format:*\x20%0',Ot(_0x5dd779,this['_getTranslationKeyForListStyle'](_0x3bf7d6['oldValue'])))};}if('default'!=_0x3bf7d6['newValue'])return{'type':'format','content':''+Ot(_0x5dd779,'*Set\x20format:*\x20%0',Ot(_0x5dd779,this['_getTranslationKeyForListStyle'](_0x3bf7d6['newValue'])))};let _0x40ed6b=_0x27d2c2['head'];for(;_0x40ed6b;){if(_0x40ed6b['data']&&'listType'==_0x40ed6b['data']['key']&&_0x40ed6b['data']['newValue']&&_0x40ed6b['data']['oldValue'])return _0xab5729;_0x40ed6b=_0x40ed6b['next'];}return{'type':'format','content':Ot(_0x5dd779,'*Set\x20format:*\x20%0',Ot(_0x5dd779,'ELEMENT_'+_0x27d2c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x483983=this['editor'],_0x4522fb=_0x483983['locale'];_0x483983['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4715a8=>{if('formatBlock'!=_0x4715a8['type'])return;const {data:_0x5ea6c0}=_0x4715a8;if(!_0x5ea6c0)return;let _0x4b9a8e,_0x112027;switch(_0x5ea6c0['commandName']){case'listStyle':_0x4b9a8e='*Change\x20to:*\x20%0',_0x112027={'type':'format','content':Ot(_0x4522fb,_0x4b9a8e,Ot(_0x4522fb,this['_getTranslationKeyForListStyle'](_0x5ea6c0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b9a8e=_0x5ea6c0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x112027={'type':'format','content':Ot(_0x4522fb,_0x4b9a8e)};break;case'listStart':_0x4b9a8e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x112027={'type':'format','content':Ot(_0x4522fb,_0x4b9a8e,_0x5ea6c0['commandParams'][0x0]['startIndex'])};}return _0x112027;});}_getTranslationKeyForListStyle(_0x444ee5){return'ELEMENT_'+(_0x413068=_0x444ee5,Zt['includes'](_0x413068)?'bulleted':Jt['includes'](_0x413068)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x444ee5['toUpperCase']()['replace'](/-/g,'_');var _0x413068;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x3b6d8a{afterInit(){const _0x448777=this['editor'];_0x448777['commands']['get']('emoji')&&_0x448777['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x3b6d8a{static get requires(){return[Tt];}init(){const _0x33f3c8=this['editor'],_0x33d345=_0x33f3c8['plugins']['get']('TrackChangesEditing'),_0x1b5934=_0x33f3c8['commands']['get']('enter');_0x33d345['enableCommand']('enter',()=>{_0x33f3c8['model']['change'](_0x512b5c=>{const _0x54070a=_0x33f3c8['model']['document']['selection'],_0x36dbb4=_0x54070a['getFirstPosition'](),_0x46d19d=ot['fromRange'](_0x54070a['getFirstRange']());if(_0x1b5934['enterBlock'](_0x512b5c)){const _0x46dba2=_0x33f3c8['model']['createPositionAt'](_0x36dbb4['parent']['nextSibling'],0x0),_0x5e6d9b=_0x512b5c['createRange'](_0x36dbb4,_0x46dba2);_0x33d345['markInsertion'](_0x5e6d9b);}else _0x512b5c['setSelection'](_0x512b5c['createRange'](_0x46d19d['end']));_0x46d19d['detach'](),_0x1b5934['fire']('afterExecute',{'writer':_0x512b5c});});});}},ne=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x254f65=this['editor']['plugins']['get']('TrackChangesEditing');_0x254f65['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x254f65['enableCommand']('findNext'),_0x254f65['enableCommand']('findPrevious'),_0x254f65['enableCommand']('replace'),_0x254f65['enableCommand']('replaceAll');}['handleFindCommand'](_0x26f623,_0x1ab143,_0x2f234b={}){const _0x3acc18=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26f623(_0x2544a8=>{let _0x3dfd1a=('string'==typeof _0x1ab143?_0x3acc18['findByTextCallback'](_0x1ab143,_0x2f234b):_0x1ab143)(_0x2544a8);Array['isArray'](_0x3dfd1a)&&(_0x3dfd1a={'results':_0x3dfd1a,'searchText':'string'==typeof _0x1ab143?_0x1ab143:''});const _0x3be973=_0x3dfd1a['results']['filter'](_0x8e01be=>!0x1===this['_isInDeletionRange'](_0x8e01be,_0x2544a8['item']));return{..._0x3dfd1a,'results':_0x3be973};},_0x2f234b);}_isInDeletionRange(_0x13a62d,_0x3196be){const _0x3d64fb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3196be,_0x13a62d['start']),this['editor']['model']['createPositionAt'](_0x3196be,_0x13a62d['end']));for(const _0x138634 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3d64fb['getIntersection'](_0x138634['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x3b6d8a{afterInit(){const _0x4ed85b=this['editor']['locale'],_0x2ddf13=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x217c0c,commandName:_0x413d18}of ie)this['editor']['plugins']['has'](_0x217c0c)&&_0x2ddf13['enableDefaultAttributesIntegration'](_0x413d18);_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x4ed85b,'FORMAT_FONT_SIZE')),_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x4ed85b,'FORMAT_FONT_FAMILY')),_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x4ed85b,'FORMAT_FONT_COLOR')),_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x4ed85b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x27983d=this['editor'],_0x4c2616=_0x27983d['locale'];_0x27983d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17872d=>{const _0x190459=_0x4c2616['t'];if('formatInline'!=_0x17872d['type'])return;const {data:_0xea1745}=_0x17872d;if(null!=_0xea1745){if('fontSize'==_0xea1745['commandName']){const _0x211c19=_0xea1745['commandParams'][0x0]['value'];if(_0x211c19){const _0x4b291d=_0x190459(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1b5d4a=>_0x1b5d4a['model']==_0x211c19)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20size:*\x20%0',_0x4b291d)};}return{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xea1745['commandName']){const _0xe13cdf=_0xea1745['commandParams'][0x0]['value'];return _0xe13cdf?{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20family:*\x20%0',_0xe13cdf)}:{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20family*')};}if('fontColor'==_0xea1745['commandName']){const _0x5a95d9=_0xea1745['commandParams'][0x0]['value'];if(_0x5a95d9){const _0x4ae8dd=_0x29b02c(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa60d5e=>_0xa60d5e['model']==_0x5a95d9);let _0x35a055=_0x5a95d9,_0x15df99='';return _0x4ae8dd&&(_0x35a055=_0x4ae8dd['label'],_0x15df99=_0x190459(_0x35a055)['toLowerCase']()),{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20color:*\x20%0',_0x15df99)['trim'](),'color':{'value':_0x5a95d9,'title':_0x15df99||_0x35a055}};}return{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xea1745['commandName']){const _0x220dea=_0xea1745['commandParams'][0x0]['value'];if(_0x220dea){const _0x2d7fbd=_0x29b02c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x30f172=>_0x30f172['model']==_0x220dea);let _0x7e3b1b=_0x220dea,_0x55a620='';return _0x2d7fbd&&(_0x7e3b1b=_0x2d7fbd['label'],_0x55a620=_0x190459(_0x7e3b1b)['toLowerCase']()),{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20background\x20color:*\x20%0',_0x55a620)['trim'](),'color':{'value':_0x220dea,'title':_0x55a620||_0x7e3b1b}};}return{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x3b6d8a{afterInit(){const {plugins:_0x40be13}=this['editor'];_0x40be13['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x40be13['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x4440f4,plugins:_0x1c7706,commands:_0x13975c}=this['editor'],_0x5c0950=_0x1c7706['get']('TrackChangesEditing');_0x13975c['get']('footnotesStyle')&&_0x5c0950['enableDefaultAttributesIntegration']('footnotesStyle'),_0x13975c['get']('footnotesStart')&&_0x5c0950['enableDefaultAttributesIntegration']('footnotesStart'),_0x5c0950['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x4440f4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5c0950['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x4440f4,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x7e32c9=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2aab38,commands:_0x1407c3}=this['editor'];_0x1407c3['get']('insertFootnote')&&_0x7e32c9['enableCommand']('insertFootnote'),_0x7e32c9['descriptionFactory']['registerElementLabel']('footnoteRef',_0x144020=>Ot(_0x2aab38,'ELEMENT_FOOTNOTE_REF',_0x144020)),_0x7e32c9['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1bd58d=>Ot(_0x2aab38,'ELEMENT_FOOTNOTE_DEFINITION',_0x1bd58d)),_0x7e32c9['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5208fe=>Ot(_0x2aab38,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5208fe));}},oe=class extends _0x3b6d8a{afterInit(){const _0x122613=this['editor'],_0x344352=_0x122613['plugins']['get']('TrackChangesEditing'),_0x2dccbf=_0x122613['commands']['get']('copyFormat'),_0x2cd551=_0x122613['commands']['get']('pasteFormat');_0x2dccbf&&_0x2cd551&&(_0x344352['enableDefaultAttributesIntegration']('pasteFormat'),_0x344352['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xda0161=this['editor'],_0x72db80=_0xda0161['locale'];_0xda0161['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0ddd=>{if('formatBlock'!=_0x5e0ddd['type']&&'formatInline'!=_0x5e0ddd['type'])return;const {data:_0x3e018d}=_0x5e0ddd;if(_0x3e018d&&'pasteFormat'===_0x3e018d['commandName']){const _0x2942ef=[],_0x5d868f=_0x3e018d['commandParams'][0x0];for(const [_0x29306b,_0x14fd0b]of Object['entries'](_0x5d868f))_0x2942ef['push'](ae(_0xda0161,_0x29306b,_0x14fd0b));return _0x2942ef['length']?{'type':'format','content':Ot(_0x72db80,'*Set\x20format\x20to:*\x20%0',_0x2942ef['join'](',\x20'))}:{'type':'format','content':Ot(_0x72db80,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x23e636,_0x31c8f1,_0x1a5628){const _0x5c275b=_0x23e636['locale']['t'],_0x708c5d=_0x31c8f1['split'](/(?=[A-Z])/)['join']('\x20'),_0x50c288=_0x5c275b(_0x708c5d['charAt'](0x0)['toUpperCase']()+_0x708c5d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1a5628)return _0x50c288;if('fontColor'===_0x31c8f1||'fontBackgroundColor'===_0x31c8f1){const _0x2c15ab=_0x29b02c(_0x23e636['config']['get']('fontColor.colors'))['find'](_0x5ec44d=>_0x5ec44d['model']==_0x1a5628);return _0x50c288+'\x20('+(_0x2c15ab?_0x5c275b(_0x2c15ab['label'])['toLowerCase']():_0x1a5628)+')';}if('fontSize'===_0x31c8f1&&isNaN(parseFloat(_0x1a5628))){const _0x1a52cf=_0x23e636['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x23e636['config']['get']('fontSize.options'))['find'](_0x1f1f70=>_0x1f1f70['model']==_0x1a5628);return _0x50c288+'\x20('+(_0x1a52cf?_0x5c275b(_0x1a52cf['title'])['toLowerCase']():_0x1a5628)+')';}return _0x50c288+'\x20('+_0x1a5628+')';}var ce=class extends _0x3b6d8a{afterInit(){const _0x3beaba=this['editor'];if(!_0x3beaba['plugins']['has']('GeneralHtmlSupport')||!_0x3beaba['plugins']['has']('DataSchema'))return;const _0x4db31d=_0x3beaba['plugins']['get']('TrackChangesEditing'),_0x429a91=_0x3beaba['plugins']['get']('GeneralHtmlSupport'),_0x21cd50=_0x3beaba['plugins']['get']('DataSchema'),_0x31bb34=_0x3beaba['locale'],_0x55e431=new Set(['htmlContent']);for(const _0x1e1290 of _0x21cd50['getDefinitionsForView'](/.*/,!0x1)){const _0x43f76b=_0x1e1290['view'],_0x1bc645=_0x429a91['getGhsAttributeNameForElement'](_0x43f76b);_0x55e431['add'](_0x1bc645),!_0x1e1290['isInline']||_0x1e1290['isObject']||'appliesToBlock'in _0x1e1290&&_0x1e1290['appliesToBlock']||_0x4db31d['descriptionFactory']['registerAttributeLabel'](_0x1bc645,_0x43f76b),_0x1e1290['model']['startsWith']('html')&&_0x4db31d['descriptionFactory']['registerElementLabel'](_0x1e1290['model'],_0x4b2882=>Ot(_0x31bb34,'ELEMENT_HTML_TAG',[_0x4b2882,_0x43f76b]));}_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x31bb34,'FORMAT_RAW_HTML_CONTENT')),_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x31bb34,'FORMAT_HTML_LIST_ITEM')),_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x31bb34,'FORMAT_HTML_BULLETED_LIST')),_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x31bb34,'FORMAT_HTML_NUMBERED_LIST')),_0x4db31d['descriptionFactory']['registerDescriptionCallback'](_0x12ef64=>{if('attribute'!==_0x12ef64['type'])return;const _0x50636d=_0x12ef64['data'];if(!_0x50636d||!_0x55e431['has'](_0x50636d['key']))return;if('htmlContent'===_0x50636d['key'])return{'type':'format','content':Ot(_0x31bb34,'*Change\x20%0\x20content*',Ot(_0x31bb34,'ELEMENT_RAW_HTML'))};const {setItems:_0x498ba2,removeItems:_0x25c8d4}=function(_0xe8490b,_0x94d78,_0x36caa5){const _0x333831=[],_0x4df5e0=[],_0x518d25=_0xe8490b['styles']??{},_0x5c35a1=_0x94d78['styles']??{};for(const _0xe408cd of new Set([...Object['keys'](_0x518d25),...Object['keys'](_0x5c35a1)]))_0x518d25[_0xe408cd]!==_0x5c35a1[_0xe408cd]&&(void 0x0===_0x5c35a1[_0xe408cd]?_0x4df5e0['push'](_0xe408cd):_0x333831['push'](_0xe408cd+'\x20('+_0x5c35a1[_0xe408cd]+')'));const _0x51913a=Ot(_0x36caa5,'FORMAT_HTML_CLASS'),_0x4d0618=new Set(_0xe8490b['classes']??[]),_0x334f92=new Set(_0x94d78['classes']??[]),_0x423e18=[..._0x334f92]['some'](_0x4b267b=>!_0x4d0618['has'](_0x4b267b)),_0xfac8be=[..._0x4d0618]['some'](_0x45289e=>!_0x334f92['has'](_0x45289e));_0x423e18&&_0x333831['push'](_0x51913a),_0xfac8be&&_0x4df5e0['push'](_0x51913a);const _0x49d39c=Ot(_0x36caa5,'FORMAT_HTML_ATTRIBUTE'),_0x3e755d=_0xe8490b['attributes']??{},_0xbf5ebf=_0x94d78['attributes']??{};let _0x19a150=!0x1,_0x10e44a=!0x1;for(const _0x2f75ca of new Set([...Object['keys'](_0x3e755d),...Object['keys'](_0xbf5ebf)]))_0x3e755d[_0x2f75ca]!==_0xbf5ebf[_0x2f75ca]&&(void 0x0===_0xbf5ebf[_0x2f75ca]?_0x10e44a=!0x0:_0x19a150=!0x0);return _0x19a150&&_0x333831['push'](_0x49d39c),_0x10e44a&&_0x4df5e0['push'](_0x49d39c),{'setItems':_0x333831,'removeItems':_0x4df5e0};}(_0x50636d['oldValue']??{},_0x50636d['newValue']??{},_0x31bb34);if(!_0x498ba2['length']&&!_0x25c8d4['length'])return;const _0xfeaa82=[];return _0x498ba2['length']&&_0xfeaa82['push'](Ot(_0x31bb34,'*Set\x20format:*\x20%0',_0x498ba2['join'](',\x20'))),_0x25c8d4['length']&&_0xfeaa82['push'](Ot(_0x31bb34,'*Remove\x20format:*\x20%0',_0x25c8d4['join'](',\x20'))),{'type':'format','content':_0xfeaa82['join']('\x0a')};});}},le=class extends _0x3b6d8a{_headingOptions;afterInit(){const _0x15c097=this['editor'];if(!_0x15c097['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x15c097['config']['get']('heading.options');const _0x338714=_0x15c097['locale'],_0xde4f19=_0x15c097['plugins']['get']('TrackChangesEditing');_0xde4f19['enableDefaultAttributesIntegration']('heading');for(const _0x1f85b5 of this['_headingOptions'])'paragraph'!=_0x1f85b5['model']&&_0xde4f19['descriptionFactory']['registerElementLabel'](_0x1f85b5['model'],_0x5bc2a7=>{const _0x56b09c=this['_getHeadingLevel'](_0x1f85b5['model']);return null!==_0x56b09c?_0x513ace(_0x5bc2a7,_0x56b09c):_0x5e43a9(_0x5bc2a7,_0x1f85b5['title']);});function _0x513ace(_0x4a953c,_0x575020){return Ot(_0x338714,'ELEMENT_HEADING',[_0x4a953c,_0x575020]);}function _0x5e43a9(_0x9ad5c2,_0x363212){return Ot(_0x338714,'ELEMENT_HEADING_CUSTOM',[_0x9ad5c2,_0x363212]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x400658=this['editor'],_0x2aee74=_0x400658['locale'];function _0x11425a(_0x43463e,_0x37334d){return Ot(_0x2aee74,'ELEMENT_HEADING_CUSTOM',[_0x43463e,_0x37334d]);}_0x400658['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43017c=>{if('formatBlock'!=_0x43017c['type'])return;const {data:_0x4b17a0}=_0x43017c;if(_0x4b17a0&&'heading'==_0x4b17a0['commandName']){const _0x34fe2b=_0x4b17a0['commandParams'][0x0]['value'],_0x1818f9=this['_getHeadingLevel'](_0x34fe2b);if(null!==_0x1818f9)return{'type':'format','content':Ot(_0x2aee74,'*Change\x20to:*\x20%0',(_0x4855f9=0x1,_0x5db5b5=_0x1818f9,Ot(_0x2aee74,'ELEMENT_HEADING',[_0x4855f9,_0x5db5b5])))};const _0x164c33=this['_headingOptions']['find'](_0x50f9d9=>_0x50f9d9['model']===_0x34fe2b)['title'];return{'type':'format','content':Ot(_0x2aee74,'*Change\x20to:*\x20%0',_0x11425a(0x1,_0x164c33))};}var _0x4855f9,_0x5db5b5;});}_getHeadingLevel(_0x255934){const _0x3f9aee=_0x255934['match'](/^heading(\d+)/);if(_0x3f9aee)return _0x3f9aee[0x1];const _0x15677e=this['_headingOptions']?.['find'](_0x39087b=>_0x39087b['model']==_0x255934);if(_0x15677e&&_0x15677e['view']){const _0x4cf3c2=_0x15677e['view'],_0xb6ee27=(_0x4cf3c2['name']??_0x4cf3c2)['match'](/^h(\d+)/);if(_0xb6ee27)return _0xb6ee27[0x1];}return null;}},ue=class extends _0x3b6d8a{afterInit(){const _0x283cc2=this['editor'];if(!_0x283cc2['plugins']['has']('HighlightEditing'))return;const _0x5b5ab3=_0x283cc2['plugins']['get']('TrackChangesEditing'),_0x2e9ed9=_0x283cc2['locale'];_0x5b5ab3['enableDefaultAttributesIntegration']('highlight'),_0x5b5ab3['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x2e9ed9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3da176=this['editor'],_0x1923ca=_0x3da176['locale'];_0x3da176['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f740f=>{if('formatInline'!=_0x4f740f['type'])return;const {data:_0x397954}=_0x4f740f;if(_0x397954&&'highlight'==_0x397954['commandName']){const _0x46d0c1=_0x1923ca['t'],_0x2e010a=_0x397954['commandParams'][0x0]['value'];if(_0x2e010a){const _0x4dfc23=_0x3da176['config']['get']('highlight.options')['find'](_0x390113=>_0x390113['model']==_0x2e010a),_0x128ff3=_0x46d0c1(_0x4dfc23['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x1923ca,'*Set\x20highlight:*\x20%0',_0x128ff3),'color':{'value':_0x4dfc23['color'],'title':_0x4dfc23['title']}};}return{'type':'format','content':Ot(_0x1923ca,'*Remove\x20highlight*',Ot(_0x1923ca,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x3b6d8a{afterInit(){const _0x26fa1d=this['editor'];if(!_0x26fa1d['plugins']['has']('HorizontalLineEditing'))return;_0x26fa1d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x559d74=_0x26fa1d['plugins']['get']('TrackChangesEditing'),_0x871877=_0x26fa1d['locale'];_0x559d74['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5540ca=>Ot(_0x871877,'ELEMENT_HORIZONTAL_LINE',_0x5540ca));}},he=class extends _0x3b6d8a{afterInit(){const _0x53de02=this['editor'];if(!_0x53de02['plugins']['has']('HtmlEmbed'))return;const _0x7d4f22=_0x53de02['plugins']['get']('TrackChangesEditing'),_0x5853a4=_0x53de02['locale'];_0x7d4f22['descriptionFactory']['registerElementLabel']('rawHtml',_0x56cd68=>Ot(_0x5853a4,'ELEMENT_HTML_EMBED',_0x56cd68)),_0x7d4f22['enableDefaultAttributesIntegration']('htmlEmbed'),_0x7d4f22['descriptionFactory']['registerDescriptionCallback'](_0x55b66b=>{if('attribute'!=_0x55b66b['type'])return;const {data:_0x1e6460}=_0x55b66b;if(_0x1e6460&&'value'==_0x1e6460['key']&&_0x55b66b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1da4ae=Ot(_0x5853a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x5853a4,'*Change\x20%0\x20content*',_0x1da4ae)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a8602=this['editor'],_0x5430eb=_0x3a8602['locale'];_0x3a8602['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36f903=>{if('formatBlock'!=_0x36f903['type'])return;const {data:_0x52be03}=_0x36f903;if(_0x52be03&&'htmlEmbed'==_0x52be03['commandName']){const _0xb3fb3=Ot(_0x5430eb,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x5430eb,'*Change\x20%0\x20content*',_0xb3fb3)};}});}},ge=class extends _0x3b6d8a{afterInit(){const _0x9b648d=this['editor'];if(!_0x9b648d['plugins']['has']('ImageEditing'))return;const _0x3028a6=_0x9b648d['plugins']['get']('TrackChangesEditing'),_0x4c53cf=_0x9b648d['plugins']['get']('ImageUtils'),_0x17f07c=_0x9b648d['locale'];_0x3028a6['enableCommand']('insertImage'),_0x3028a6['descriptionFactory']['registerElementLabel']('imageBlock',_0x5275da=>Ot(_0x17f07c,'ELEMENT_IMAGE',_0x5275da)),_0x3028a6['descriptionFactory']['registerElementLabel']('imageInline',_0x4ffa8d=>Ot(_0x17f07c,'ELEMENT_INLINE_IMAGE',_0x4ffa8d)),_0x3028a6['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x17f07c,'ELEMENT_CAPTION')),_0x9b648d['plugins']['has']('ImageUploadEditing')&&_0x3028a6['enableCommand']('uploadImage'),_0x9b648d['plugins']['has']('ImageBlockEditing')&&_0x9b648d['plugins']['has']('ImageInlineEditing')&&(_0x3028a6['enableCommand']('imageTypeInline',(_0x39de3d,_0x22d6ba)=>{const _0x14a675=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']);_0x9b648d['model']['change'](()=>{_0x3028a6['markBlockFormat'](_0x14a675,{'commandName':'imageTypeInline','commandParams':[_0x22d6ba]},[],'convertBlockImageToInline');});}),_0x3028a6['enableCommand']('imageTypeBlock',(_0x62844b,_0x5f4541)=>{_0x9b648d['model']['change'](_0x327525=>{let _0x1f1933=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x4d8095=_0x327525['createRangeOn'](_0x1f1933);const _0x3cbb18=rt['fromPosition'](_0x4d8095['start'],'toPrevious'),_0x5a6977=rt['fromPosition'](_0x4d8095['end'],'toNext');_0x3028a6['forceDefaultExecution'](()=>_0x62844b(_0x5f4541)),_0x1f1933=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x4d8095=_0x327525['createRangeOn'](_0x1f1933);const _0x3d2cb4=_0x327525['createRange'](_0x3cbb18,_0x5a6977);_0x3cbb18['detach'](),_0x5a6977['detach'](),_0x3028a6['markBlockFormat'](_0x1f1933,{'commandName':'imageTypeInline','commandParams':[_0x5f4541]},[],'convertInlineImageToBlock'),_0x3d2cb4['start']['isBefore'](_0x4d8095['start'])&&_0x3028a6['markInsertion'](_0x327525['createRange'](_0x3d2cb4['start'],_0x4d8095['start']),'convertInlineImageToBlock'),_0x4d8095['end']['isBefore'](_0x3d2cb4['end'])&&_0x3028a6['markInsertion'](_0x327525['createRange'](_0x4d8095['end'],_0x3d2cb4['end']),'convertInlineImageToBlock');});}),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3028a6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3635a7])=>{const _0x515d19=_0x3028a6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x113424=_0x3635a7['start'],_0xec91a3=_0x3635a7['end'];const _0x292b76=_0x9b648d['model']['schema']['getNearestSelectionRange'](_0x113424,'backward'),_0x28e566=_0x9b648d['model']['schema']['getNearestSelectionRange'](_0xec91a3,'forward');_0x292b76['isCollapsed']&&(_0x113424=_0x292b76['start']),_0x28e566['isCollapsed']&&(_0xec91a3=_0x28e566['end']),_0x515d19([_0x9b648d['model']['createRange'](_0x113424,_0xec91a3)]);}),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xe2a944),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xe2a944)),_0x9b648d['plugins']['has']('ImageCaptionEditing')&&(_0x3028a6['enableCommand']('toggleImageCaption',(_0xade164,_0x550062)=>{const _0x5dc8fe=_0x9b648d['plugins']['get']('ImageCaptionUtils');let _0x2b8278=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x5c821e=_0x5dc8fe['getCaptionFromImageModelElement'](_0x2b8278);_0x9b648d['model']['change'](()=>{if(_0x5c821e)return void _0x3028a6['markDeletion'](_0x9b648d['model']['createRangeOn'](_0x5c821e));const _0xe8158=_0x4c53cf['isBlockImage'](_0x2b8278);_0xade164(_0x550062),_0x2b8278=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x5c821e=_0x5dc8fe['getCaptionFromImageModelElement'](_0x2b8278),_0x3028a6['markInsertion'](_0x9b648d['model']['createRangeOn'](_0x5c821e),_0xe8158?null:'imageCaption');});}),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xe2a944));const _0x1d148c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7f3997(_0x59d890,_0x2e8a47){const _0x6d15ad=_0x1d148c['findIndex'](({type:_0x1864c6,subType:_0x133572})=>_0x59d890['type']==_0x1864c6&&_0x59d890['subType']==_0x133572),_0x2639bb=_0x1d148c['findIndex'](({type:_0x1ea735,subType:_0x2f4e1f})=>_0x2e8a47['type']==_0x1ea735&&_0x2e8a47['subType']==_0x2f4e1f);if(_0x6d15ad<0x0||_0x2639bb<0x0)return!0x1;const _0x50783c=_0x59d890['getFirstRange'](),_0x1746e3=_0x2e8a47['getFirstRange']();if((0x0==_0x6d15ad||0x1==_0x6d15ad)&&0x2==_0x2639bb&&_0x50783c['isIntersecting'](_0x1746e3))return!0x0;if(0x2==_0x6d15ad&&0x3==_0x2639bb){const _0x28bbb0=_0x3028a6['_findSuggestions'](_0x50783c,'insertion')['filter'](({suggestion:_0x507d6f,meta:_0x4587f1})=>_0x4587f1['isOwn']&&'convertInlineImageToBlock'==_0x507d6f['subType']);if(_0x28bbb0['length']>0x1&&_0x1746e3['end']['isEqual'](_0x50783c['start']))return!0x0;if(0x1==_0x28bbb0['length']&&(_0x50783c['start']['isEqual'](_0x1746e3['end'])||_0x50783c['end']['isEqual'](_0x1746e3['start'])))return!0x0;}if(0x3==_0x6d15ad&&0x3==_0x2639bb&&_0x50783c['start']['isBefore'](_0x1746e3['start'])){const _0x309d00=_0x50783c['end']['nodeAfter'],_0x4d3f5a=_0x1746e3['start']['nodeBefore'];return _0x4c53cf['isBlockImage'](_0x309d00)&&_0x309d00===_0x4d3f5a;}return!0x1;}function _0xe2a944(_0x511b0d,_0x4e2f24){return _0x7f3997(_0x511b0d,_0x4e2f24)?[_0x511b0d,_0x4e2f24]:_0x7f3997(_0x4e2f24,_0x511b0d)?[_0x4e2f24,_0x511b0d]:null;}_0x9b648d['plugins']['has']('ImageResize')&&(_0x3028a6['enableDefaultAttributesIntegration']('resizeImage'),_0x3028a6['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x17f07c,'FORMAT_IMAGE_SIZE'))),_0x9b648d['plugins']['has']('ImageTextAlternativeEditing')&&_0x3028a6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x9b648d['plugins']['has']('PictureEditing')&&_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x41a298=>{if('attribute'!=_0x41a298['type'])return;const {data:_0x14cdfd}=_0x41a298;return _0x14cdfd&&'sources'==_0x14cdfd['key']?{'type':'format','content':''}:void 0x0;}),_0x9b648d['plugins']['has']('ImageSizeAttributes')&&_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x32e820=>{if('attribute'!=_0x32e820['type'])return;const {data:_0x2aada9}=_0x32e820;return!_0x2aada9||'width'!=_0x2aada9['key']&&'height'!=_0x2aada9['key']?void 0x0:{'type':'format','content':''};}),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x3c09ee=>{if(_0x1d148c['find'](({type:_0x3fbe16,subType:_0x252fe5})=>_0x3c09ee['type']==_0x3fbe16&&_0x3c09ee['subType']==_0x252fe5))return _0x3c09ee['previous']?{}:void 0x0;}),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x4fce33=>{if('insertion'==_0x4fce33['type']||'deletion'==_0x4fce33['type']){const _0xee4072=_0x4fce33['getContainedElement']();if(_0xee4072&&_0xee4072['is']('element','caption'))return{'type':'insertion'==_0x4fce33['type']?'addObject':'removeObject','element':_0xee4072,'quantity':0x1};}}),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x18d6be=>'formatBlock'==_0x18d6be['type']&&'convertInlineImageToBlock'==_0x18d6be['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18d6be['type']&&'convertBlockImageToInline'==_0x18d6be['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x83cf69=>{if('attribute'!=_0x83cf69['type'])return;const {data:_0x347105}=_0x83cf69;if(!_0x347105||'alt'!=_0x347105['key'])return;const _0x1558ac=_0x347105['newValue'];return _0x1558ac?{'type':'format','content':Ot(_0x17f07c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1558ac+'\x22')}:{'type':'format','content':Ot(_0x17f07c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x38e79a=this['editor'],_0x414fa6=_0x38e79a['locale'];_0x38e79a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa9592b=>{if('formatBlock'!=_0xa9592b['type']&&'formatInline'!=_0xa9592b['type'])return;const {data:_0x477fba}=_0xa9592b;if(_0x477fba){if('imageTextAlternative'==_0x477fba['commandName']){const _0x56b116=_0x477fba['commandParams'][0x0]['newValue'];return _0x56b116?{'type':'format','content':Ot(_0x414fa6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56b116+'\x22')}:{'type':'format','content':Ot(_0x414fa6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x477fba['commandName']){const _0x157efb=_0x477fba['commandParams'][0x0]['width'];return _0x157efb?{'type':'format','content':Ot(_0x414fa6,'*Set\x20image\x20width:*\x20%0',_0x157efb)}:{'type':'format','content':Ot(_0x414fa6,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x566d5d=this['editor']['locale'],_0x56e438=this['editor']['plugins']['get']('TrackChangesEditing');_0x56e438['enableDefaultAttributesIntegration']('replaceImageSource'),_0x56e438['descriptionFactory']['registerDescriptionCallback'](_0xeec2df=>{if('attribute'!=_0xeec2df['type'])return;const {data:_0x13d36e}=_0xeec2df;return _0x13d36e&&'src'==_0x13d36e['key']?_0x13d36e['newValue']&&_0x13d36e['oldValue']?{'type':'format','content':Ot(_0x566d5d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4817bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4817bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4817bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4817bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4817bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x29a53=this['editor'],_0x2b63df=_0x29a53['locale'];_0x29a53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cff2f=>{if('formatBlock'!=_0x1cff2f['type']&&'formatInline'!=_0x1cff2f['type'])return;const {data:_0x2f7676}=_0x1cff2f;return _0x2f7676&&'replaceImageSource'==_0x2f7676['commandName']?{'type':'format','content':Ot(_0x2b63df,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x3b6d8a{afterInit(){const _0x554996=this['editor'];if(!_0x554996['plugins']['has']('ImageStyleEditing'))return;const _0x3b96d0=_0x554996['plugins']['get']('TrackChangesEditing'),_0x25dfee=_0x554996['plugins']['get']('ImageUtils'),_0x16b90b={};_0x3b96d0['enableCommand']('imageStyle',(_0x2c79fc,_0x3b4905)=>{const _0x26484a=_0x554996['plugins']['get']('Users')['me'],_0x30b4a3=_0x554996['commands']['get']('imageStyle');let _0x50ca90=_0x25dfee['getClosestSelectedImageElement'](_0x554996['model']['document']['selection']),_0x491546=_0x554996['model']['createRangeOn'](_0x50ca90),_0x3169a6=_0x30b4a3['value'];if(_0x3169a6==_0x3b4905['value'])return;if(_0x3b4905['value']&&_0x25dfee['isInlineImage'](_0x50ca90)&&!_0x30b4a3['isStyleEnabled'](_0x3b4905['value']))return;const _0x15e455={'commandName':'imageStyle','commandParams':[_0x3b4905],'formatGroupId':_0x3223bf()};_0x554996['model']['change'](()=>{if(_0x3b96d0['getSuggestions']()['filter'](_0x47322d=>_0x47322d['isInContent']&&_0x26484a==_0x47322d['author']&&('formatBlock'==_0x47322d['type']||'formatInline'==_0x47322d['type'])&&('imageStylePreApply'==_0x47322d['subType']||'imageStylePostApply'==_0x47322d['subType'])&&_0x47322d['getFirstRange']()['isEqual'](_0x491546))['forEach'](_0x22d55c=>_0x3b96d0['discardSuggestion'](_0x22d55c['head'])),_0x50ca90=_0x25dfee['getClosestSelectedImageElement'](_0x554996['model']['document']['selection']),_0x491546=_0x554996['model']['createRangeOn'](_0x50ca90),_0x30b4a3['refresh'](),_0x554996['commands']['get']('imageTypeInline')['refresh'](),_0x554996['commands']['get']('imageTypeBlock')['refresh'](),_0x3169a6=_0x30b4a3['value'],_0x3169a6!=_0x3b4905['value'])return _0x25dfee['isInlineImage'](_0x50ca90)&&_0x30b4a3['shouldConvertImageType'](_0x3b4905['value'],_0x50ca90)?(_0x2c79fc({..._0x3b4905,'setImageSizes':!0x1}),_0x50ca90=_0x25dfee['getClosestSelectedImageElement'](_0x554996['model']['document']['selection']),void _0x3b96d0['markBlockFormat'](_0x50ca90,{..._0x15e455,'commandReversedParams':[{'value':_0x3169a6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x25dfee['isBlockImage'](_0x50ca90)?_0x3b96d0['markBlockFormat'](_0x50ca90,_0x15e455,[],'imageStylePostApply'):_0x3b96d0['markInlineFormat'](_0x491546,_0x15e455,'imageStylePostApply'));});});for(const _0x31f457 of _0x554996['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x16b90b[_0x31f457['name']]=_0x31f457['title']['toLowerCase']();_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xa3cb78])=>{_0x25dfee['setImageNaturalSizeAttributes'](_0xa3cb78['getContainedElement']());}),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x27040a,_0x178d56)=>{_0x3b96d0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x27040a,{'commandName':_0x178d56['commandName'],'commandParams':_0x178d56['commandReversedParams']});}),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x501e18,_0x2d211b){return _0xd414e0(_0x501e18,_0x2d211b)?[_0x501e18,_0x2d211b]:_0xd414e0(_0x2d211b,_0x501e18)?[_0x2d211b,_0x501e18]:null;});const _0x79839c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd414e0(_0x36cb8d,_0x3a01d4){const _0x1929d5=_0x79839c['findIndex'](({type:_0x39b723,subType:_0xadd678})=>_0x36cb8d['type']==_0x39b723&&_0x36cb8d['subType']==_0xadd678),_0x3a1857=_0x79839c['findIndex'](({type:_0x5add4f,subType:_0x112bbd})=>_0x3a01d4['type']==_0x5add4f&&_0x3a01d4['subType']==_0x112bbd);if(_0x1929d5<0x0||_0x3a1857<0x0)return!0x1;const _0x59756c=_0x36cb8d['getFirstRange'](),_0xb9142c=_0x3a01d4['getFirstRange']();if((0x0==_0x1929d5||0x1==_0x1929d5)&&0x2==_0x3a1857&&_0x59756c['isIntersecting'](_0xb9142c))return!0x0;if(0x2==_0x1929d5&&0x3==_0x3a1857){const _0x5bf37d=_0x3b96d0['_findSuggestions'](_0x59756c,'insertion')['filter'](({suggestion:_0x210454,meta:_0x541d66})=>_0x541d66['isOwn']&&'convertInlineImageToBlock'==_0x210454['subType']);if(_0x5bf37d['length']>0x1&&_0xb9142c['end']['isEqual'](_0x59756c['start']))return!0x0;if(0x1==_0x5bf37d['length']&&(_0x59756c['start']['isEqual'](_0xb9142c['end'])||_0x59756c['end']['isEqual'](_0xb9142c['start'])))return!0x0;}if(0x3==_0x1929d5&&0x3==_0x3a1857&&_0x59756c['start']['isBefore'](_0xb9142c['start'])){const _0x2dfe6e=_0x59756c['end']['nodeAfter'],_0x3b14d2=_0xb9142c['start']['nodeBefore'];return _0x25dfee['isBlockImage'](_0x2dfe6e)&&_0x2dfe6e===_0x3b14d2;}return!0x1;}_0x554996['model']['document']['registerPostFixer'](()=>{let _0x3a6a4a=!0x1;const _0x11e33b=Array['from'](_0x554996['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a0d33,data:_0x783b5f}of _0x11e33b){const {group:_0x1ac018,type:_0x249b6e,subType:_0x236aab,id:_0x3e202c}=et(_0x4a0d33);if('suggestion'==_0x1ac018&&_0x3b96d0['hasSuggestion'](_0x3e202c)){if('formatBlock'==_0x249b6e&&('imageStylePreApply'==_0x236aab||'imageStylePostApply'==_0x236aab)){const _0x1d075a=_0x3b96d0['getSuggestion'](_0x3e202c);if(_0x783b5f['newRange']){const _0x2fcec1=_0x1d075a['getFirstRange']()['getContainedElement']();if(_0x25dfee['isBlockImage'](_0x2fcec1))continue;_0x3b96d0['discardSuggestion'](_0x1d075a),_0x3a6a4a=!0x0;}}if('insertion'==_0x249b6e&&'imageCaption'==_0x236aab&&!_0x783b5f['newRange']){const _0x2161bc=_0x3b96d0['getSuggestion'](_0x3e202c);_0x2161bc['next']&&_0x2161bc['next']['isInContent']&&(_0x3b96d0['discardSuggestion'](_0x2161bc['next']),_0x3a6a4a=!0x0);}}}return _0x3a6a4a;}),this['_registerLegacyDescription'](_0x16b90b);}_registerLegacyDescription(_0x44e412){const _0x27a6fb=this['editor'],_0x5b44ec=_0x27a6fb['locale'];_0x27a6fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8efefe=>{if('formatBlock'!=_0x8efefe['type']&&'formatInline'!=_0x8efefe['type'])return;const {data:_0x4fda8e}=_0x8efefe;if(!_0x4fda8e||'imageStyle'!=_0x4fda8e['commandName'])return;const _0x1b58de=_0x4fda8e['commandParams'][0x0]['value'];return _0x592776('side'===_0x1b58de?Ot(_0x5b44ec,'FORMAT_SIDE_IMAGE'):_0x44e412[_0x1b58de]||_0x1b58de);function _0x592776(_0x400c3e){return{'type':'format','content':Ot(_0x5b44ec,'*Format:*\x20%0',_0x400c3e)};}});}},Ee=class extends _0x3b6d8a{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5f052f){super(_0x5f052f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x470680=this['editor'],_0x334b14=_0x470680['commands']['get']('importWord'),_0x3e572f=_0x470680['commands']['get']('trackChanges');_0x334b14&&(_0x334b14['on']('execute',(_0x540220,[,_0x1463fe])=>{this['_trackChangesValueDuringImport']=_0x3e572f['value'],_0x1463fe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x334b14,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x334b14,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e572f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x470680['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x453d0c,_0x44efd0){const {suggestions:_0x31e7b6}=_0x44efd0,_0x2abf60=this['editor']['commands']['get']('trackChanges'),_0x73b7bb=_0x2abf60['value'];this['_trackChangesValueDuringImport']!==_0x73b7bb&&(_0x2abf60['execute'](),this['_trackChangesExecuted']=!0x0),_0x31e7b6&&_0x31e7b6['forEach'](({id:_0x547687,type:_0x262b65,author:_0x20d806,created_at:_0x223625})=>{const _0x365a3c={'id':_0x547687,'type':_0x262b65,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20d806,'createdAt':_0x223625?new Date(_0x223625):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x365a3c);});}},Te=class extends _0x3b6d8a{afterInit(){const _0x718c78=this['editor'],_0x381289=_0x718c78['plugins']['get']('TrackChangesEditing');if(_0x718c78['plugins']['has']('IndentEditing')&&(_0x381289['enableCommand']('indent'),_0x381289['enableCommand']('outdent')),_0x718c78['plugins']['has']('IndentBlock')){for(const _0x333b77 of['indentBlock','outdentBlock'])_0x381289['enableDefaultAttributesIntegration'](_0x333b77);if(_0x718c78['plugins']['has']('ListEditing')){for(const _0x3b9ed8 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x381289['enableDefaultAttributesIntegration'](_0x3b9ed8);}}const _0x82e0d4=_0x718c78['locale'];_0x381289['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x82e0d4,'FORMAT_INDENT')),_0x381289['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x82e0d4,'FORMAT_INDENT')),_0x381289['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x82e0d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dad5f=this['editor'],_0x2e73a8=_0x2dad5f['locale'],_0x179db5=_0x2dad5f['plugins']['get']('TrackChangesEditing');_0x179db5['descriptionFactory']['registerDescriptionCallback'](_0x506b7e=>{if('formatBlock'!=_0x506b7e['type'])return;const {data:_0x43dbd0}=_0x506b7e;if(!_0x43dbd0)return;if('indentBlock'!=_0x43dbd0['commandName']&&'outdentBlock'!=_0x43dbd0['commandName'])return;const _0xb5db11=_0x506b7e['getItems']()[0x0],_0x4c159e=_0x179db5['descriptionFactory']['getItemLabel'](_0xb5db11);return'indentBlock'==_0x43dbd0['commandName']?{'type':'format','content':Ot(_0x2e73a8,'*Indent:*\x20%0',_0x4c159e)}:'outdentBlock'==_0x43dbd0['commandName']?{'type':'format','content':Ot(_0x2e73a8,'*Outdent:*\x20%0',_0x4c159e)}:void 0x0;});}},_e=class extends _0x3b6d8a{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x3b6d8a{afterInit(){const _0x65b2a8=this['editor'];if(!_0x65b2a8['plugins']['has']('LinkEditing'))return;const _0x2ddf0a=_0x65b2a8['plugins']['get']('TrackChangesEditing'),_0x2ea07e=_0x65b2a8['commands']['get']('link');_0x2ddf0a['enableDefaultAttributesIntegration']('link'),_0x2ddf0a['enableDefaultAttributesIntegration']('unlink');for(const _0x3d1e27 of _0x2ea07e['manualDecorators'])_0x2ddf0a['descriptionFactory']['registerAttributeLabel'](_0x3d1e27['id'],'link\x20('+_0x3d1e27['label']['toLowerCase']()+')');_0x2ddf0a['descriptionFactory']['registerDescriptionCallback'](_0x2a02f2=>{if('attribute'!=_0x2a02f2['type'])return;const {data:_0x523013}=_0x2a02f2;if(!_0x523013||'linkHref'!=_0x523013['key'])return;const _0x39a2ab=_0x523013['newValue'],_0xa608fc=_0x65b2a8['locale'];return{'type':'format','content':null==_0x39a2ab?Ot(_0xa608fc,'*Remove\x20link*'):Ot(_0xa608fc,'*Set\x20link:*\x20%0','\x22'+_0x39a2ab+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x298e42=this['editor'],_0x2ba50c=_0x298e42['locale'];_0x298e42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a99fb=>{if('formatInline'!=_0x3a99fb['type'])return;const {data:_0x27bc1c}=_0x3a99fb;if(_0x27bc1c){if('link'==_0x27bc1c['commandName']){const _0x27098c=_0x27bc1c['commandParams'][0x0];return{'type':'format','content':Ot(_0x2ba50c,'*Set\x20link:*\x20%0','\x22'+_0x27098c+'\x22')};}return'unlink'==_0x27bc1c['commandName']?{'type':'format','content':Ot(_0x2ba50c,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x3b6d8a{afterInit(){const _0x127beb=this['editor'],_0x41ac3e=_0x127beb['locale'];if(!_0x127beb['plugins']['has']('LegacyListEditing'))return;const _0x324dd1=_0x127beb['plugins']['get']('TrackChangesEditing'),_0x4af54f=_0x127beb['plugins']['has']('LegacyTodoListEditing');function _0x342e64(_0x247a54){return()=>{const _0x485b50=_0x127beb['model']['document']['selection'],_0x41763f=_0x127beb['commands']['get'](_0x247a54);if(_0x41763f['value'])return void _0x127beb['execute']('paragraph',{});const _0x7532c6=_0x247a54['slice'](0x0,-0x4),_0x5f2253=function(_0x51c107,_0x1d3d7e,_0x4d567a){let _0x580547=Array['from'](_0x51c107)['filter'](_0x112397=>function(_0x39f3f2,_0x353dc7){return _0x353dc7['checkChild'](_0x39f3f2['parent'],'listItem')&&!_0x353dc7['isObject'](_0x39f3f2);}(_0x112397,_0x4d567a));_0x580547=_0x580547['filter'](_0x117b5d=>!_0x117b5d['is']('element','listItem')||_0x117b5d['getAttribute']('listType')!=_0x1d3d7e);const _0x284699=new Set();for(const _0x265feb of _0x580547)_0x265feb['is']('element','listItem')?_0x284699['add'](Ie(_0x265feb)):_0x284699['add'](_0x265feb);return Array['from'](_0x284699);}(_0x485b50['getSelectedBlocks'](),_0x7532c6,_0x127beb['model']['schema']);_0x127beb['model']['change'](()=>{for(const _0xa5ff18 of _0x5f2253)_0x324dd1['markBlockFormat'](_0xa5ff18,{'commandName':_0x247a54,'commandParams':[{'forceValue':!_0x41763f['value']}],'formatGroupId':'blockName'},Ae(_0xa5ff18));});};}function _0x3e7450(_0x125d01){return()=>{const _0x573aa9=function(_0x20e7a1){let _0x54bf34=Array['from'](_0x20e7a1);const _0x3cb229=_0x54bf34['findIndex'](_0x49f0e3=>'listItem'!=_0x49f0e3['name']);return _0x3cb229>-0x1&&(_0x54bf34=_0x54bf34['slice'](0x0,_0x3cb229)),_0x54bf34;}(_0x127beb['model']['document']['selection']['getSelectedBlocks']()),_0x585f6c=_0x127beb['model']['createRange'](_0x127beb['model']['createPositionAt'](_0x573aa9[0x0],'before'),_0x127beb['model']['createPositionAt'](_0x573aa9[_0x573aa9['length']-0x1],'end'));_0x127beb['model']['change'](()=>{_0x324dd1['markBlockFormat'](_0x585f6c,{'commandName':_0x125d01,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d99ab){const _0x459301=new Set();for(const _0x4d4cdb of _0x1d99ab){let _0x5a1af9=_0x4d4cdb['nextSibling'];for(;_0x5a1af9&&_0x5a1af9['getAttribute']('listIndent')>_0x4d4cdb['getAttribute']('listIndent');)_0x459301['add'](_0x5a1af9),_0x5a1af9=_0x5a1af9['nextSibling'];}return Array['from'](_0x459301);}(_0x573aa9));});};}_0x324dd1['enableCommand']('numberedList',_0x342e64('numberedList')),_0x324dd1['enableCommand']('bulletedList',_0x342e64('bulletedList')),_0x4af54f&&_0x324dd1['enableCommand']('todoList',_0x342e64('todoList')),_0x324dd1['enableCommand']('indentList',_0x3e7450('indentList')),_0x324dd1['enableCommand']('outdentList',_0x3e7450('outdentList')),_0x4af54f&&_0x324dd1['enableCommand']('checkTodoList',()=>{const _0x336c42=_0x127beb['commands']['get']('checkTodoList'),_0x241699=Array['from'](_0x336c42['_selectedElements']);_0x241699['filter'](_0x5ded2e=>_0x5ded2e['getAttribute']('todoListChecked')!=_0x336c42['value']),_0x127beb['model']['change'](()=>{for(const _0x5a8942 of _0x241699)_0x324dd1['markBlockFormat'](_0x5a8942,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x336c42['value']}]});});}),_0x324dd1['descriptionFactory']['registerElementLabel']('listItem',_0x127a40=>Ot(_0x41ac3e,'ELEMENT_LIST_ITEM',_0x127a40)),_0x324dd1['descriptionFactory']['registerDescriptionCallback'](_0x568841=>{if('formatBlock'!=_0x568841['type']&&'formatInline'!=_0x568841['type'])return;const {data:_0x2aec90}=_0x568841;if(_0x2aec90){if('numberedList'==_0x2aec90['commandName']||'bulletedList'==_0x2aec90['commandName']||'todoList'==_0x2aec90['commandName'])switch(_0x2aec90['commandName']['replace']('List','')){case'bulleted':return _0x58540f(Ot(_0x41ac3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58540f(Ot(_0x41ac3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58540f(Ot(_0x41ac3e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2aec90['commandName'])return{'type':'format','content':Ot(_0x41ac3e,'*Indent:*\x20%0',Ot(_0x41ac3e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2aec90['commandName'])return{'type':'format','content':Ot(_0x41ac3e,'*Outdent:*\x20%0',Ot(_0x41ac3e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2aec90['commandName'])return _0x2aec90['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x41ac3e,'*Check\x20item*')}:{'type':'format','content':Ot(_0x41ac3e,'*Uncheck\x20item*')};}function _0x58540f(_0x18614e){return{'type':'format','content':Ot(_0x41ac3e,'*Change\x20to:*\x20%0',_0x18614e)};}});}};function Ie(_0x72d78e){const _0x230fb6=_0x72d78e['getAttribute']('listIndent');if(0x0==_0x230fb6)return _0x72d78e;let _0x1a8bdd=_0x72d78e;for(;_0x72d78e['previousSibling']&&_0x72d78e['previousSibling']['is']('element','listItem');){const _0x4c1a65=_0x72d78e['previousSibling']['getAttribute']('listIndent');if(_0x4c1a65==_0x230fb6)_0x1a8bdd=_0x72d78e['previousSibling'];else{if(_0x4c1a65<_0x230fb6)break;}_0x72d78e=_0x72d78e['previousSibling'];}return _0x1a8bdd;}function Ae(_0x3f19cc){const _0x4e8d40=[];if(_0x3f19cc['is']('element','listItem')&&_0x3f19cc['getAttribute']('listIndent')>0x0){let _0x27b1a8=_0x3f19cc['nextSibling'];for(;_0x27b1a8&&'listItem'==_0x27b1a8['name']&&_0x27b1a8['getAttribute']('listIndent')==_0x3f19cc['getAttribute']('listIndent');)_0x4e8d40['push'](_0x27b1a8),_0x27b1a8=_0x27b1a8['nextSibling'];}return _0x4e8d40;}var be=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1f948c=this['editor']['config']['get']('list.properties'),_0x202369=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f948c['styles']&&_0x202369['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f948c['reversed']&&_0x202369['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1f948c['startIndex']&&_0x202369['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x202369['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x228a91,_0x5f028e={}){const _0x15b919=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18ac72=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x15b919['markMultiRangeBlockFormat'](_0x18ac72,{'commandName':'listStyle','commandParams':[{'type':_0x5f028e['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x23cb7c,_0x242421={}){const _0x56f56e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa3b7d6=this['_getSuggestionBlocks'](_0xd6e8ee=>_0xd6e8ee['is']('element','listItem')&&'numbered'===_0xd6e8ee['getAttribute']('listType'));if(_0xa3b7d6['length']<0x1)return;const _0x392cc9=_0xa3b7d6['map'](_0x3f2462=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f2462,'before'),this['editor']['model']['createPositionAt'](_0x3f2462,0x0)));this['editor']['model']['change'](()=>{_0x56f56e['markMultiRangeBlockFormat'](_0x392cc9,{'commandName':'listReversed','commandParams':[{'reversed':_0x242421['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x1add28,_0x438cc3={}){const _0x154925=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d1ee=this['_getSuggestionBlocks'](_0x443f52=>_0x443f52['is']('element','listItem')&&'numbered'===_0x443f52['getAttribute']('listType'));if(_0x21d1ee['length']<0x1)return;const _0x1dc643=_0x21d1ee['map'](_0x382a8d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x382a8d,'before'),this['editor']['model']['createPositionAt'](_0x382a8d,0x0)));this['editor']['model']['change'](()=>{_0x154925['markMultiRangeBlockFormat'](_0x1dc643,{'commandName':'listStart','commandParams':[{'startIndex':_0x438cc3['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x2826d8){if('formatBlock'!=_0x2826d8['type']&&'formatInline'!=_0x2826d8['type'])return;const _0x1ce412=this['editor']['locale'],{data:_0x4049d6}=_0x2826d8;if(!_0x4049d6)return;let _0x246b14,_0x575823;switch(_0x4049d6['commandName']){case'listStyle':_0x246b14='*Change\x20to:*\x20%0',_0x575823={'type':'format','content':Ot(_0x1ce412,_0x246b14,Ot(_0x1ce412,this['_getTranslationKeyForListStyle'](_0x4049d6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x246b14=_0x4049d6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x575823={'type':'format','content':Ot(_0x1ce412,_0x246b14)};break;case'listStart':_0x246b14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x575823={'type':'format','content':Ot(_0x1ce412,_0x246b14,_0x4049d6['commandParams'][0x0]['startIndex'])};}return _0x575823;}_getSuggestionBlocksForListStyle(){const _0x1bc01f=this['editor']['plugins']['get']('LegacyListUtils');let _0x9798fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x9798fe[0x0]?.['is']('element','listItem')&&_0x9798fe['unshift'](..._0x1bc01f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x9798fe[_0x9798fe['length']-0x1]?.['is']('element','listItem')&&_0x9798fe['push'](..._0x1bc01f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x9798fe=[...new Set(_0x9798fe)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x9798fe=_0x9798fe['filter'](_0x576376=>_0x576376['is']('element','listItem'))),_0x9798fe;}_getSuggestionBlocks(_0x419765){const _0x5d8ade=this['editor']['plugins']['get']('LegacyListUtils');let _0x219052=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x419765)['map'](_0x93673a=>{const _0x2128c2=this['editor']['model']['createPositionAt'](_0x93673a,0x0);return[..._0x5d8ade['getSiblingNodes'](_0x2128c2,'backward'),..._0x5d8ade['getSiblingNodes'](_0x2128c2,'forward')];})['flat']();return _0x219052=[...new Set(_0x219052)],_0x219052;}_getTranslationKeyForListStyle(_0x372c54){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x372c54)||'default')['toUpperCase']()+'_LIST_'+_0x372c54['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x3b6d8a{afterInit(){const _0x1eb2fb=this['editor'];if(!_0x1eb2fb['plugins']['has']('MediaEmbedEditing'))return;const _0x2465c1=_0x1eb2fb['plugins']['get']('TrackChangesEditing'),_0x2b3764=_0x1eb2fb['locale'];_0x2465c1['enableCommand']('mediaEmbed'),_0x2465c1['descriptionFactory']['registerElementLabel']('media',_0x45eb98=>Ot(_0x2b3764,'ELEMENT_MEDIA',_0x45eb98)),_0x1eb2fb['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2465c1['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2465c1['descriptionFactory']['registerDescriptionCallback'](_0x286300=>{if('attribute'!=_0x286300['type'])return;const {data:_0x3b22dd}=_0x286300;if(!_0x3b22dd||'resizedWidth'!=_0x3b22dd['key'])return;const _0x47e854=_0x286300['getContainedElement']();if(!_0x47e854||!_0x47e854['is']('element','media'))return;const _0x2a65e1=Ot(_0x2b3764,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x2b3764,'*Set\x20format:*\x20%0',_0x2a65e1)};}));}},ke=class extends _0x3b6d8a{afterInit(){const _0x56933e=this['editor'];if(!_0x56933e['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5bc2b8=_0x56933e['plugins']['get']('TrackChangesEditing'),_0xd77275=_0x56933e['locale'],_0x200aa8=_0x56933e['plugins']['get']('MediaEmbedStyleEditing'),_0x205a23={};for(const _0x2899d4 of _0x200aa8['normalizedStyles'])_0x205a23[_0x2899d4['name']]=_0x2899d4['title']['toLowerCase']();const _0x4debb5=_0x200aa8['normalizedStyles']['find'](_0x481433=>_0x481433['isDefault'])?.['name'];_0x5bc2b8['enableCommand']('mediaStyle',(_0x5bd907,_0x291b66)=>{const _0x5d4c80=_0x56933e['plugins']['get']('Users')['me'],_0x2c648e=_0x56933e['commands']['get']('mediaStyle'),_0x4e603f=function(_0x16c374){const _0x6243bb=_0x16c374['model']['document']['selection']['getSelectedElement']();return _0x6243bb&&_0x6243bb['is']('element','media')?_0x6243bb:null;}(_0x56933e);if(!_0x4e603f)return;const _0x4ab7cb=_0x56933e['model']['createRangeOn'](_0x4e603f);let _0x3fad7b=_0x2c648e['value'];if(_0x3fad7b==_0x291b66['value'])return;const _0x51dbb9={'commandName':'mediaStyle','commandParams':[_0x291b66],'formatGroupId':_0x3223bf()};_0x56933e['model']['change'](()=>{_0x5bc2b8['getSuggestions']()['filter'](_0x4c64b7=>_0x4c64b7['isInContent']&&_0x5d4c80==_0x4c64b7['author']&&'formatBlock'==_0x4c64b7['type']&&'mediaStylePostApply'==_0x4c64b7['subType']&&_0x4c64b7['getFirstRange']()['isEqual'](_0x4ab7cb))['forEach'](_0x3d99b2=>_0x5bc2b8['discardSuggestion'](_0x3d99b2['head'])),_0x2c648e['refresh'](),_0x3fad7b=_0x2c648e['value'],_0x3fad7b!=_0x291b66['value']&&_0x5bc2b8['markBlockFormat'](_0x4e603f,{..._0x51dbb9,'commandReversedParams':[{'value':'string'==typeof _0x3fad7b?_0x3fad7b:null}]},[],'mediaStylePostApply');});}),_0x5bc2b8['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5bc2b8['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x4928e4,_0x43fa8e)=>{_0x5bc2b8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4928e4,{'commandName':_0x43fa8e['commandName'],'commandParams':_0x43fa8e['commandReversedParams']});}),_0x5bc2b8['descriptionFactory']['registerDescriptionCallback'](_0x528270=>{if('formatBlock'!=_0x528270['type'])return;const {data:_0xb007c4}=_0x528270;if(!_0xb007c4||'mediaStyle'!=_0xb007c4['commandName'])return;const _0x451dbe=_0xb007c4['commandParams'][0x0]['value']||_0x4debb5;if(!_0x451dbe)return;const _0x30af1f=_0x205a23[_0x451dbe]||_0x451dbe;return{'type':'format','content':Ot(_0xd77275,'*Format:*\x20%0',_0x30af1f)};});}},Re=class extends _0x3b6d8a{afterInit(){const _0x5a832a=this['editor'];_0x5a832a['plugins']['has']('MentionEditing')&&_0x5a832a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x3b6d8a{afterInit(){const _0x9f83cc=this['editor'];if(!_0x9f83cc['plugins']['has']('MergeFieldsEditing'))return;const _0x546ce3=_0x9f83cc['plugins']['get']('TrackChangesEditing'),_0x1d2c88=_0x9f83cc['locale'];_0x546ce3['enableCommand']('insertMergeField'),_0x546ce3['enableCommand']('insertMergeFieldBlock'),_0x546ce3['enableCommand']('insertMergeFieldImage'),_0x546ce3['descriptionFactory']['registerElementLabel']('mergeField',_0x1489a0=>Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD',_0x1489a0)),_0x546ce3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x546757=>Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD',_0x546757)),_0x546ce3['descriptionFactory']['registerDescriptionCallback'](_0x3d644f=>{if('insertion'!=_0x3d644f['type']&&'deletion'!=_0x3d644f['type'])return;const _0x39eeb9=_0x3d644f['getContainedElement']();if(null==_0x39eeb9)return;const _0x4d9596=_0x9f83cc['plugins']['get']('MergeFieldsEditing');let _0x58a10d;switch(_0x4d9596['getMergeFieldType'](_0x39eeb9)){case null:return;case'image':{const _0x14490b=_0x4d9596['unwrapAffixes'](_0x39eeb9['getAttribute']('src'));_0x58a10d=_0x4d9596['getLabel'](_0x14490b)||_0x14490b;break;}default:{const _0x54841f=_0x39eeb9['getAttribute']('id');_0x58a10d=_0x4d9596['getLabel'](_0x54841f)||_0x54841f;break;}}return'insertion'==_0x3d644f['type']?{'type':'insertion','content':Ot(_0x1d2c88,'*Insert:*\x20%0','\x22'+_0x58a10d+'\x22\x20'+Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x1d2c88,'*Remove:*\x20%0','\x22'+_0x58a10d+'\x22\x20'+Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x3b6d8a{afterInit(){const _0x524200=this['editor'],_0x3185d2=_0x524200['plugins']['get']('TrackChangesEditing');_0x524200['plugins']['has']('MultiLevelList')&&(_0x3185d2['enableDefaultAttributesIntegration']('multiLevelList'),_0x3185d2['descriptionFactory']['registerDescriptionCallback'](_0x3652e3=>this['handleDescriptions'](_0x3652e3)));}handleDescriptions(_0xe205a1){const _0x31f37c=this['editor']['locale'],{data:_0x44eeaf}=_0xe205a1,_0x2d5c4d={'type':'format','content':''};if(_0x44eeaf&&'listMarkerStyle'==_0x44eeaf['key']){if(!_0x44eeaf['oldValue'])return{'type':'format','content':Ot(_0x31f37c,'*Set\x20format:*\x20%0',Ot(_0x31f37c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44eeaf['newValue']+')'};if(!_0x44eeaf['newValue']){let _0xbbd603=_0xe205a1['head'];for(;_0xbbd603;){if(_0xbbd603['data']&&'listType'==_0xbbd603['data']['key']&&_0xbbd603['data']['newValue'])return _0x2d5c4d;_0xbbd603=_0xbbd603['next'];}return{'type':'format','content':Ot(_0x31f37c,'*Remove\x20format:*\x20%0',Ot(_0x31f37c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44eeaf['oldValue']+')'};}}}},Se=class extends _0x3b6d8a{afterInit(){const _0x1bcc39=this['editor'];if(!_0x1bcc39['plugins']['has']('PageBreakEditing'))return;_0x1bcc39['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x252b68=_0x1bcc39['plugins']['get']('TrackChangesEditing'),_0x528318=_0x1bcc39['locale'];_0x252b68['descriptionFactory']['registerElementLabel']('pageBreak',_0x515e4c=>Ot(_0x528318,'ELEMENT_PAGE_BREAK',_0x515e4c));}},Me=class extends _0x3b6d8a{afterInit(){const _0x126e6b=this['editor'];if(!_0x126e6b['plugins']['has']('Paragraph'))return;const _0x3dceb8=_0x126e6b['locale'],_0x44c25d=_0x126e6b['plugins']['get']('TrackChangesEditing');_0x44c25d['descriptionFactory']['registerElementLabel']('paragraph',_0x471dda=>Ot(_0x3dceb8,'ELEMENT_PARAGRAPH',_0x471dda)),_0x44c25d['enableDefaultAttributesIntegration']('paragraph'),_0x44c25d['enableCommand']('insertParagraph');const _0x2e8efb=_0x44c25d['descriptionFactory'];_0x2e8efb['registerDescriptionCallback'](_0x1e939c=>{if('insertion'!==_0x1e939c['type'])return;const {start:_0x351574,end:_0x50db6e}=_0x1e939c['getFirstRange']();if(!_0x351574['isTouching'](_0x50db6e)||!_0x351574['nodeAfter'])return;const _0x3afc40=_0x126e6b['model']['schema'],_0x389f1d=_0x351574['nodeAfter'];return _0x3afc40['isBlock'](_0x389f1d)&&!_0x3afc40['isLimit'](_0x389f1d)&&_0x3afc40['checkChild'](_0x389f1d,'$text')?{'type':'insertion','content':Ot(_0x3dceb8,'*Insert:*\x20%0',_0x2e8efb['getItemLabel'](_0x389f1d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2494ba=this['editor'],_0x1d955f=_0x2494ba['locale'];_0x2494ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7fef=>{if('formatBlock'!=_0x1e7fef['type'])return;const {data:_0x639fd7}=_0x1e7fef;return _0x639fd7&&'paragraph'==_0x639fd7['commandName']?{'type':'format','content':Ot(_0x1d955f,'*Change\x20to:*\x20%0',Ot(_0x1d955f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x3b6d8a{afterInit(){const _0x406c3c=this['editor'];_0x406c3c['commands']['get']('replaceSource')&&_0x406c3c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x3b6d8a{afterInit(){const _0x340a69=this['editor'];_0x340a69['plugins']['has']('RemoveFormatEditing')&&(_0x340a69['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x54fcac=this['editor'];_0x54fcac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42918e=>{if('formatBlock'!=_0x42918e['type']&&'formatInline'!=_0x42918e['type'])return;const {data:_0x4fceeb}=_0x42918e;return _0x4fceeb&&'removeFormat'==_0x4fceeb['commandName']?{'type':'format','content':Ot(_0x54fcac['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x3b6d8a{afterInit(){const _0xa8fe43=this['editor'];if(!_0xa8fe43['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x658307=_0xa8fe43['plugins']['get']('TrackChangesEditing');_0x658307['enableCommand']('goToPreviousRestrictedEditingException'),_0x658307['enableCommand']('goToNextRestrictedEditingException');const _0x514f8e=_0xa8fe43['plugins']['get']('RestrictedEditingModeEditing');_0x514f8e['enableCommand']('trackChanges'),_0x514f8e['enableCommand']('acceptSuggestion'),_0x514f8e['enableCommand']('discardSuggestion'),_0x514f8e['enableCommand']('acceptAllSuggestions'),_0x514f8e['enableCommand']('discardAllSuggestions'),_0x514f8e['enableCommand']('acceptSelectedSuggestions'),_0x514f8e['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x3b6d8a{afterInit(){const _0x1bfd60=this['editor'];if(!_0x1bfd60['plugins']['has']('ShiftEnter'))return;const _0x1d5a5c=_0x1bfd60['plugins']['get']('TrackChangesEditing');_0x1d5a5c['enableCommand']('shiftEnter'),_0x1d5a5c['descriptionFactory']['registerElementLabel']('softBreak',_0x109189=>Ot(_0x1bfd60['locale'],'ELEMENT_LINE_BREAK',_0x109189));}};function ve(_0x45af2c,_0x375041,_0x2710fe){const _0x78e95a=[];for(const _0x28fc67 of _0x375041['getItems']())_0x28fc67['hasAttribute'](_0x45af2c)&&_0x78e95a['push'](_0x2710fe['createRangeOn'](_0x28fc67));return _0x78e95a;}var De=class extends _0x3b6d8a{afterInit(){const _0x2743f4=this['editor'],_0x167ffe=_0x2743f4['plugins']['get']('TrackChangesEditing');_0x2743f4['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x167ffe['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x2af5d9=this['editor'],_0xffd602=_0x2af5d9['model'],_0xc29927=_0x2af5d9['locale'],_0x1fcfc0=_0x2af5d9['plugins']['get']('TrackChangesEditing'),_0x3bcb16='restrictedEditingException',_0x215c6f=_0x2af5d9['commands']['get'](_0x3bcb16);_0x1fcfc0['enableCommand'](_0x3bcb16,(_0x1b4ce9,_0x5d94b7={})=>{const _0x48017e=_0xffd602['document']['selection'];if(_0x48017e['isCollapsed'])return void _0x1b4ce9(_0x5d94b7);const _0x5ca414=void 0x0!==_0x5d94b7['forceValue']?_0x5d94b7['forceValue']:!_0x215c6f['value'];_0xffd602['change'](()=>{const _0x22f71f=Array['from'](_0x48017e['getRanges']());for(const _0x26e5d0 of _0x22f71f){const _0x3bf6b7=_0x5ca414?[_0x26e5d0]:ve(_0x3bcb16,_0x26e5d0,_0xffd602);for(const _0xbf60b7 of _0x3bf6b7)_0x1fcfc0['markInlineFormat'](_0xbf60b7,{'commandName':_0x3bcb16,'commandParams':[{'forceValue':_0x5ca414}]});}});}),_0x1fcfc0['descriptionFactory']['registerDescriptionCallback'](_0x3c1762=>{if('formatBlock'!=_0x3c1762['type']&&'formatInline'!=_0x3c1762['type'])return;const {data:_0x2335e6}=_0x3c1762;return _0x2335e6&&_0x2335e6['commandName']==_0x3bcb16?_0x2335e6['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xc29927,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0xc29927,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x5c4048=this['editor'],_0x2d668b=_0x5c4048['locale'],_0x17274f=_0x5c4048['plugins']['get']('TrackChangesEditing'),_0x423c3a='restrictedEditingExceptionBlock',_0x16dc2c=this['editor']['commands']['get'](_0x423c3a);_0x17274f['enableCommand'](_0x423c3a,(_0x20c42a,_0x5a6381={})=>{const _0x2f047f=this['editor']['model']['document']['selection'],_0x38a0e7=_0x5a6381&&void 0x0!==_0x5a6381['forceValue']?_0x5a6381['forceValue']:!_0x16dc2c['value'];let _0x34e645=[];_0x34e645=Ct(_0x38a0e7?Array['from'](_0x2f047f['getSelectedBlocks']())['filter'](_0x51eab1=>function(_0xc66686){return!!_0xc66686['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x51eab1)||function(_0x5b32b5,_0x177ec5){const _0x219fe7=_0x177ec5['createContext'](_0x5b32b5['parent']);return!!_0x177ec5['checkChild'](_0x219fe7,'restrictedEditingException')&&!!_0x177ec5['checkChild'](_0x219fe7['push']('restrictedEditingException'),_0x5b32b5);}(_0x51eab1,this['editor']['model']['schema'])):Array['from'](_0x2f047f['getSelectedBlocks']())['map'](_0x5aa1a8=>function(_0x3703cf){let _0x16faac=_0x3703cf;for(;_0x16faac['parent'];){if('restrictedEditingException'==_0x16faac['parent']['name'])return _0x16faac;_0x16faac=_0x16faac['parent'];}return null;}(_0x5aa1a8))['filter'](_0x3e19c9=>!!_0x3e19c9),_0x5c4048['model']),_0x5c4048['model']['change'](()=>{for(const _0x2f0fb3 of _0x34e645)_0x17274f['markBlockFormat'](_0x2f0fb3,{'commandName':_0x423c3a,'commandParams':[{'forceValue':_0x38a0e7}]});});}),_0x17274f['descriptionFactory']['registerDescriptionCallback'](_0x5d7e7a=>{const {data:_0x9cd6fa}=_0x5d7e7a;if(_0x9cd6fa&&_0x9cd6fa['commandName']==_0x423c3a)return _0x9cd6fa['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x2d668b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x2d668b,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x3b6d8a{afterInit(){const _0x4f1791=this['editor'];_0x4f1791['plugins']['has']('Style')&&_0x4f1791['plugins']['has']('DataSchema')&&(_0x4f1791['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x357f79=this['editor'],_0xaf6b5f=_0x357f79['locale'];_0x357f79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ec60=>{if('formatBlock'!=_0x37ec60['type']&&'formatInline'!=_0x37ec60['type'])return;const {data:_0xbde3d9}=_0x37ec60;return _0xbde3d9&&'style'===_0xbde3d9['commandName']?_0xbde3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xaf6b5f,'*Set\x20format:*\x20%0',_0xbde3d9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0xaf6b5f,'*Remove\x20format:*\x20%0',_0xbde3d9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x3b6d8a{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x46308b){super(_0x46308b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x2492cf=this['editor'],_0x1c3250=_0x2492cf['model']['document']['selection'];if(!_0x2492cf['plugins']['has']('TableEditing'))return;const _0x3a4c5e=_0x2492cf['locale'],_0x4f95e0=_0x2492cf['plugins']['get']('TrackChangesEditing'),_0xe48341=_0x2492cf['plugins']['get']('TableUtils');_0x4f95e0['descriptionFactory']['registerElementLabel']('table',_0x268055=>Ot(_0x3a4c5e,'ELEMENT_TABLE',_0x268055)),this['_setupColumnsRowsFixing'](),_0x4f95e0['enableCommand']('insertTable'),_0x4f95e0['enableCommand']('selectTableRow'),_0x4f95e0['enableCommand']('selectTableColumn');for(const _0x2b9dce of['insertTableRowAbove','insertTableRowBelow']){const _0x3104c5=_0x2492cf['commands']['get'](_0x2b9dce);_0x4f95e0['enableCommand'](_0x2b9dce,_0x2864c2=>{_0x2492cf['model']['change'](_0x57d149=>{_0x2864c2();const _0x337bcd='above'===_0x3104c5['order'],_0x11a108=_0xe48341['getSelectionAffectedTableCells'](_0x1c3250),_0x3e6cf5=_0xe48341['getRowIndexes'](_0x11a108),_0x5aeece=_0x337bcd?_0x3e6cf5['first']-0x1:_0x3e6cf5['last']+0x1,_0x403703=_0x11a108[0x0]['findAncestor']('table'),_0x39059c=_0xe48341['createTableWalker'](_0x403703,{'startRow':_0x5aeece,'endRow':_0x5aeece}),_0x2ff274=Array['from'](_0x39059c)['map'](_0x4ab1b7=>_0x57d149['createRangeOn'](_0x4ab1b7['cell']));_0x4f95e0['markMultiRangeInsertion'](_0x2ff274,'tableRow');});});}for(const _0x571245 of['insertTableColumnLeft','insertTableColumnRight']){const _0x59b815=_0x2492cf['commands']['get'](_0x571245);_0x4f95e0['enableCommand'](_0x571245,_0x31df24=>{_0x2492cf['model']['change'](_0x53aed0=>{_0x31df24();const _0x2884bf='left'===_0x59b815['order'],_0x1645e8=_0xe48341['getSelectionAffectedTableCells'](_0x1c3250),_0x58da74=_0xe48341['getColumnIndexes'](_0x1645e8),_0x23759e=_0x2884bf?_0x58da74['first']-0x1:_0x58da74['last']+0x1,_0x34a184=_0x1645e8[0x0]['findAncestor']('table'),_0x241fc7=_0xe48341['createTableWalker'](_0x34a184,{'startRow':0x0,'column':_0x23759e,'includeAllSlots':!0x1}),_0xdc4576=Array['from'](_0x241fc7)['map'](_0x48e1af=>_0x53aed0['createRangeOn'](_0x48e1af['cell']));_0x4f95e0['markMultiRangeInsertion'](_0xdc4576,'tableColumn');});});}for(const _0x43ad61 of['removeTableRow','removeTableColumn']){const _0x392c95=_0x43ad61['substr'](0xb),_0x376cd8=_0x392c95['toLowerCase'](),_0x17e145=_0x376cd8['substr'](0x0,0x3)+'span',_0x233ad7='table'+_0x392c95,_0x4c76c4='min'+_0x392c95,_0x2eae40='max'+_0x392c95;_0x4f95e0['enableCommand'](_0x43ad61,()=>{_0x2492cf['model']['change'](_0x49dc39=>{const _0x556e72=_0xe48341['getSelectionAffectedTableCells'](_0x1c3250),_0x838306=_0x556e72[0x0]['findAncestor']('table');let _0x5a15a3;if('removeTableRow'==_0x43ad61){const _0x789676=_0xe48341['getRowIndexes'](_0x556e72);_0x5a15a3={'startRow':_0x789676['first'],'endRow':_0x789676['last'],'includeAllSlots':!0x0};}else{const _0x41eb73=_0xe48341['getColumnIndexes'](_0x556e72);_0x5a15a3={'startColumn':_0x41eb73['first'],'endColumn':_0x41eb73['last'],'includeAllSlots':!0x0};}const _0x2b714d=_0xe48341['createTableWalker'](_0x838306,_0x5a15a3),_0x46ec74=Array['from'](_0x2b714d)['map'](({cell:_0x11b1c7})=>_0x11b1c7),_0x359a3f=xe(_0x46ec74['filter'](_0x499a81=>_0x499a81['hasAttribute'](_0x17e145))),_0x173618=xe(_0x46ec74['filter'](_0x4a4fbe=>!_0x4a4fbe['hasAttribute'](_0x17e145)))['map'](_0x518e1d=>_0x49dc39['createRangeOn'](_0x518e1d)),_0x3ac008=_0x4f95e0['markMultiRangeDeletion'](_0x173618,_0x233ad7);if(_0x3ac008&&('tableRow'==_0x3ac008['subType']||'tableColumn'==_0x3ac008['subType'])){const _0x18b794=this['_getSuggestionCoords'](_0x3ac008);for(const _0x3661da of _0x359a3f){const _0x2a4b6d=_0x49dc39['createRangeOn'](_0x3661da),_0x442d8a=_0xe48341['getCellLocation'](_0x3661da),_0x148403=_0x3661da['getAttribute'](_0x17e145)-0x1,_0x5974f2=_0x18b794[_0x4c76c4],_0x3d8890=_0x18b794[_0x2eae40];_0x5974f2<=_0x442d8a[_0x376cd8]&&_0x442d8a[_0x376cd8]+_0x148403<=_0x3d8890&&_0x3ac008['addRange'](_0x2a4b6d);}}});});}function _0x2c3794(_0x1eaedc){const _0x208e7c=Array['from'](_0x1c3250['getRanges']())['map'](_0x17a08f=>ot['fromRange'](_0x17a08f));_0x2492cf['model']['change'](_0x49537e=>{const _0x1873bc=_0x49537e['batch'];_0x1eaedc=_0x1eaedc['filter'](_0x1b0ec2=>'$graveyard'!=_0x1b0ec2['root']['rootName']),_0x49537e['setSelection'](_0x1eaedc),_0x2492cf['commands']['get']('removeTableRow')['refresh'](),_0x2492cf['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2492cf['model']['enqueueChange'](()=>{_0x2492cf['model']['enqueueChange'](_0x1873bc,_0x2f8c50=>{const _0x2e65a0=_0x208e7c['filter'](_0x460d18=>'$graveyard'!=_0x460d18['root']['rootName']);_0x2e65a0['length']>0x0&&_0x2f8c50['setSelection'](_0x2e65a0);for(const _0x11dcdd of _0x208e7c)_0x11dcdd['detach']();});});});}function _0x30fa84(_0x469de7){_0x2492cf['model']['change'](_0x41c2e3=>{const _0x27c3ac=Array['from'](_0x1c3250['getRanges']())['map'](_0x2fd3f8=>ot['fromRange'](_0x2fd3f8)),_0x4ea551=[];for(const _0x59a344 of _0x469de7)for(const _0x5e6e2b of _0x59a344['getItems']({'shallow':!0x0}))_0x4ea551['push'](_0x5e6e2b);for(const _0x427cb7 of _0x4ea551)'$graveyard'!=_0x427cb7['root']['rootName']&&(_0x41c2e3['setSelection'](_0x41c2e3['createPositionAt'](_0x427cb7,0x0)),_0x2492cf['commands']['get']('removeTableColumn')['refresh'](),_0x2492cf['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x32de5a=_0x27c3ac['filter'](_0xfba811=>'$graveyard'!=_0xfba811['root']['rootName']);_0x32de5a['length']>0x0&&_0x41c2e3['setSelection'](_0x32de5a);for(const _0x4548d2 of _0x27c3ac)_0x4548d2['detach']();});}function _0x3b6c29(_0x22f35d,_0xf4978d){return _0xf4978d['every'](_0x811b94=>_0x22f35d['some'](_0x546936=>_0x546936['end']['isEqual'](_0x811b94['start'])||_0x811b94['end']['isEqual'](_0x546936['start'])));}function _0x3c8b0e(_0x99f2a3,_0x4fe4b9){return!_0x99f2a3['some'](_0x19afba=>_0x4fe4b9['some'](_0x5b3962=>_0x19afba['isIntersecting'](_0x5b3962)))&&_0x99f2a3['some'](_0xdea1c9=>_0x4fe4b9['some'](_0x494fd4=>_0xdea1c9['end']['isTouching'](_0x494fd4['start'])));}_0x4f95e0['descriptionFactory']['registerDescriptionCallback'](_0x3102df=>{if('insertion'!=_0x3102df['type']&&'deletion'!=_0x3102df['type'])return;const _0x382bc9=_0x3102df['getContainedElement']();if(null!=_0x382bc9&&_0x382bc9['is']('element','table')){if('insertion'==_0x3102df['type']){const _0x566d9f=_0x3102df['getItems']()['filter'](_0x3c1bf9=>_0x3c1bf9['is']('$textProxy'))['map'](_0xa6bdbc=>_0xa6bdbc['data']);if(_0x566d9f['length'])return{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x566d9f['join']('\x20')+'\x22'))};}if('deletion'==_0x3102df['type']){const _0x4b104e=_0x3102df['getItems']()['filter'](_0x533f7f=>_0x533f7f['is']('$textProxy'))['map'](_0x47ef0b=>_0x47ef0b['data']);if(_0x4b104e['length'])return{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b104e['join']('\x20')+'\x22'))};}}}),_0x4f95e0['descriptionFactory']['registerDescriptionCallback'](_0x170c61=>{if('tableRow'==_0x170c61['subType']){const _0x56b586=_0x170c61['getItems']()['filter'](_0x1e6b4c=>_0x1e6b4c['is']('$textProxy'))['map'](_0x4304df=>_0x4304df['data']),_0x166e54=this['_getSuggestionCoords'](_0x170c61),_0x31c10a=_0x166e54['maxRow']-_0x166e54['minRow']+0x1;if('insertion'==_0x170c61['type'])return _0x56b586['length']?{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31c10a,'\x22'+_0x56b586['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW',_0x31c10a))};if('deletion'==_0x170c61['type'])return _0x56b586['length']?{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31c10a,'\x22'+_0x56b586['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW',_0x31c10a))};}if('tableColumn'==_0x170c61['subType']){const _0x249264=_0x170c61['getItems']()['filter'](_0x10a5ea=>_0x10a5ea['is']('$textProxy'))['map'](_0x708655=>_0x708655['data']),_0x31ca4e=this['_getSuggestionCoords'](_0x170c61),_0x164fd2=_0x31ca4e['maxColumn']-_0x31ca4e['minColumn']+0x1;if('insertion'==_0x170c61['type'])return _0x249264['length']?{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x164fd2,'\x22'+_0x249264['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN',_0x164fd2))};if('deletion'==_0x170c61['type'])return _0x249264['length']?{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x164fd2,'\x22'+_0x249264['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN',_0x164fd2))};}}),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c3794),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c3794),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x30fa84),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x30fa84),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b6c29),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b6c29),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3c8b0e),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3c8b0e);}_acceptFormatSuggestionCallbackFactory(){const _0x483722=this['editor'],_0x329612=_0x483722['model']['document']['selection'];return(_0x55785f,_0xdb258a)=>{_0x483722['model']['change'](_0x221cbe=>{const {commandName:_0x3044ae,commandParams:_0x1c50fa}=_0xdb258a;let _0x3f4dd8=_0x55785f[0x0]['end']['nodeBefore'];_0x1c50fa&&_0x1c50fa[0x0]&&!0x1===_0x1c50fa[0x0]['forceValue']&&(_0x3f4dd8=_0x55785f[0x0]['start']['nodeAfter']);const _0x17bc73=_0x221cbe['createRangeIn'](_0x3f4dd8);if('$graveyard'==_0x17bc73['root']['rootName'])return;const _0x1e942a=Array['from'](_0x329612['getRanges']())['map'](_0x4085a5=>ot['fromRange'](_0x4085a5));_0x221cbe['setSelection'](_0x17bc73),_0x483722['commands']['get'](_0x3044ae)['refresh'](),_0x1c50fa['push']({'forceDefaultExecution':!0x0}),_0x483722['execute'](_0x3044ae,..._0x1c50fa);const _0xea3768=_0x1e942a['filter'](_0x27a34f=>'$graveyard'!=_0x27a34f['root']['rootName']);_0xea3768['length']>0x0&&_0x221cbe['setSelection'](_0xea3768);for(const _0x596377 of _0x1e942a)_0x596377['detach']();});};}_getCoordsForCells(_0x479ccf){const _0x2258a8=this['editor']['plugins']['get']('TableUtils');let _0x4c6506=Number['MAX_SAFE_INTEGER'],_0x1ccc5c=Number['MIN_SAFE_INTEGER'],_0x3ab679=Number['MAX_SAFE_INTEGER'],_0x34b318=Number['MIN_SAFE_INTEGER'];for(const _0x333215 of _0x479ccf){if('$graveyard'==_0x333215['root']['rootName'])continue;const {row:_0x1ede42,column:_0x4d065c}=_0x2258a8['getCellLocation'](_0x333215),_0x418834=_0x333215['hasAttribute']('rowspan')?_0x333215['getAttribute']('rowspan')-0x1:0x0,_0xd3dad0=_0x333215['hasAttribute']('colspan')?_0x333215['getAttribute']('colspan')-0x1:0x0;_0x4c6506=_0x1ede42<_0x4c6506?_0x1ede42:_0x4c6506,_0x1ccc5c=_0x1ede42+_0x418834>_0x1ccc5c?_0x1ede42+_0x418834:_0x1ccc5c,_0x3ab679=_0x4d065c<_0x3ab679?_0x4d065c:_0x3ab679,_0x34b318=_0x4d065c+_0xd3dad0>_0x34b318?_0x4d065c+_0xd3dad0:_0x34b318;}return{'minRow':_0x4c6506,'maxRow':_0x1ccc5c,'minColumn':_0x3ab679,'maxColumn':_0x34b318};}_setupColumnsRowsFixing(){const _0x26a4d4=this['editor'],_0x52cf39=_0x26a4d4['plugins']['get']('TrackChangesEditing'),_0x4048c7=_0x26a4d4['plugins']['get']('TableUtils');_0x26a4d4['model']['document']['on']('change:data',()=>{const _0x4bb0fb=Array['from'](_0x26a4d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a0f41,data:_0x5714fa}of _0x4bb0fb){const {group:_0x3c5bf2,id:_0x32a883,subType:_0x3efae6}=et(_0x1a0f41);if('suggestion'!=_0x3c5bf2)continue;if(null!=_0x5714fa['oldRange'])continue;const _0x55bb86=_0x52cf39['getSuggestion'](_0x32a883);this['_tablePostFixingSubtypes']['includes'](_0x3efae6)&&this['_tableSuggestions']['add'](_0x55bb86);}},{'priority':'low'});const _0x496a6f=(_0x4e1b4d,_0x487146)=>{let _0x2e1202=!0x1;const _0xb06431=_0x487146['createRangeOn'](_0x4e1b4d),_0x5efb04=_0x4e1b4d['findAncestor']('table'),_0x3ee59a=_0x4048c7['getCellLocation'](_0x4e1b4d);for(const _0x400544 of this['_tableSuggestions']){const _0x5c2a62=_0x400544['subType'],_0x25ac25=_0x5c2a62['startsWith']('tablePaste'),_0x19a278=_0x5c2a62['substr'](_0x25ac25?0xa:0x5),_0x1e0cab=_0x19a278['toLowerCase'](),_0x26d447=_0x1e0cab['substr'](0x0,0x3)+'span',_0x251b18='min'+_0x19a278,_0xad85e0='max'+_0x19a278;if(!_0x400544['isInContent'])continue;if(_0x5efb04!=_0x400544['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x400544['isIntersectingWithRange'](_0xb06431))continue;const _0x1432c1=_0x4e1b4d['hasAttribute'](_0x26d447)?_0x4e1b4d['getAttribute'](_0x26d447)-0x1:0x0,_0x46a1a1=this['_getSuggestionCoords'](_0x400544),_0x55f9e9=_0x46a1a1[_0x251b18],_0x2fd13d=_0x46a1a1[_0xad85e0];_0x55f9e9<=_0x3ee59a[_0x1e0cab]&&_0x3ee59a[_0x1e0cab]+_0x1432c1<=_0x2fd13d&&(_0x400544['addRange'](_0xb06431),_0x2e1202=!0x0);}return _0x2e1202;};_0x26a4d4['model']['document']['registerPostFixer'](_0x35e511=>{let _0x466f83=!0x1;for(const _0x5e335a of _0x26a4d4['model']['document']['differ']['getChanges']())if('insert'==_0x5e335a['type']){if('tableRow'==_0x5e335a['name']){for(const _0x4425b4 of _0x5e335a['position']['nodeAfter']['getChildren']())_0x466f83=_0x466f83||_0x496a6f(_0x4425b4,_0x35e511);}else'tableCell'==_0x5e335a['name']&&(_0x466f83=_0x466f83||_0x496a6f(_0x5e335a['position']['nodeAfter'],_0x35e511));}return _0x466f83;});}_getSuggestionCoords(_0x3bea3d){return this['_getCoordsForCells'](_0x3bea3d['getRanges']()['map'](_0x235102=>_0x235102['start']['nodeAfter']));}};function xe(_0x544f6a){return Array['from'](new Set(_0x544f6a)['values']());}var Ge=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x153d2f=this['editor'],_0x40430a=_0x153d2f['model']['document']['selection'],_0x4fa07b=_0x153d2f['locale'];if(!_0x153d2f['plugins']['has']('TableEditing'))return;const _0x27bf15=_0x153d2f['plugins']['get']('TrackChangesEditing'),_0x4b3d3f=_0x153d2f['plugins']['get']('TableUtils'),_0x2c86ea=_0x153d2f['plugins']['get'](Pe);_0x2c86ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x27bf15['enableCommand']('mergeTableCells',()=>{const _0x5cbf65=_0x4b3d3f['getSelectionAffectedTableCells'](_0x153d2f['model']['document']['selection']);_0x153d2f['model']['change'](()=>{_0x27bf15['markMultiRangeBlockFormat'](_0x5cbf65,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x153d2f['commands']['get']('mergeTableCells')['on']('execute',(_0x150558,_0x5a3bf4)=>{_0x153d2f['commands']['get']('trackChanges')['value']&&(_0x5a3bf4['length']>0x0&&_0x5a3bf4[_0x5a3bf4['length']-0x1]&&_0x5a3bf4[_0x5a3bf4['length']-0x1]['forceDefaultExecution']||_0x27bf15['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x150558['stop']());},{'priority':'highest'});for(const _0x27f033 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4052c4=_0x153d2f['commands']['get'](_0x27f033);_0x27bf15['enableCommand'](_0x27f033,()=>{const _0x1637a4=_0x153d2f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d9a16=>_0x2d9a16['is']('element','tableCell')),_0x1a253d=_0x4052c4['value'];_0x153d2f['model']['change'](()=>{_0x27bf15['markMultiRangeBlockFormat']([_0x1637a4,_0x1a253d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31259c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2836cf=_0x153d2f['commands']['get'](_0x31259c);_0x27bf15['enableCommand'](_0x31259c,()=>{const _0x233aed=_0x4b3d3f['getSelectionAffectedTableCells'](_0x153d2f['model']['document']['selection']),_0x1b120c=_0x233aed[0x0]['findAncestor']('table'),_0x102a0e=new Set();for(const _0x423ecb of _0x233aed){const {column:_0x271314,row:_0x1c6af3}=_0x4b3d3f['getCellLocation'](_0x423ecb),_0x52e48a='horizontally'==_0x2836cf['direction']?_0x4b3d3f['createTableWalker'](_0x1b120c,{'startRow':_0x1c6af3,'endRow':_0x1c6af3,'includeAllSlots':!0x0}):_0x4b3d3f['createTableWalker'](_0x1b120c,{'column':_0x271314,'includeAllSlots':!0x0});for(const {cell:_0x407dcc}of _0x52e48a)_0x102a0e['add'](_0x407dcc);}_0x153d2f['model']['change'](()=>{_0x27bf15['markMultiRangeBlockFormat'](_0x233aed,{'commandName':_0x31259c,'commandParams':[]},Array['from'](_0x102a0e),_0x31259c);});});}_0x27bf15['descriptionFactory']['registerDescriptionCallback'](_0x5cd4b0=>{if('formatBlock'!=_0x5cd4b0['type']&&'formatInline'!=_0x5cd4b0['type'])return;const {data:_0x3b212f}=_0x5cd4b0;return _0x3b212f&&'mergeTableCells'==_0x3b212f['commandName']?{'type':'format','content':Ot(_0x4fa07b,'*Merge\x20cells*')}:void 0x0;}),_0x27bf15['descriptionFactory']['registerDescriptionCallback'](_0x1750df=>{if('formatBlock'!=_0x1750df['type']&&'formatInline'!=_0x1750df['type'])return;const {data:_0x3fca2c}=_0x1750df;return _0x3fca2c?'splitTableCellVertically'==_0x3fca2c['commandName']?{'type':'format','content':Ot(_0x4fa07b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3fca2c['commandName']?{'type':'format','content':Ot(_0x4fa07b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2cd1c0=_0x2c86ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x53c664 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x27bf15['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53c664,'accept',_0x2cd1c0);for(const _0x14aaeb of['splitTableCellVertically','splitTableCellHorizontally'])_0x27bf15['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14aaeb,'accept',_0x5dc1d3=>{_0x153d2f['model']['change'](_0x317de2=>{const _0x4390e3=Array['from'](_0x5dc1d3)['filter'](_0x2e5ffa=>'$graveyard'!=_0x2e5ffa['root']['rootName']&&!!_0x2e5ffa['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x4390e3['length'])return;const _0x358748=Array['from'](_0x40430a['getRanges']())['map'](_0x3a224a=>ot['fromRange'](_0x3a224a));_0x317de2['setSelection'](_0x4390e3),_0x153d2f['commands']['get'](_0x14aaeb)['refresh'](),_0x153d2f['execute'](_0x14aaeb,{'forceDefaultExecution':!0x0});const _0x25d602=_0x358748['filter'](_0x43808f=>'$graveyard'!=_0x43808f['root']['rootName']);_0x25d602['length']>0x0&&_0x317de2['setSelection'](_0x25d602);for(const _0x5d0d51 of _0x358748)_0x5d0d51['detach']();});});_0x27bf15['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2deb67=>{_0x153d2f['model']['change'](_0x43b5ea=>{const _0x508da5=Array['from'](_0x40430a['getRanges']())['map'](_0x27d84c=>ot['fromRange'](_0x27d84c));_0x43b5ea['setSelection'](_0x2deb67),_0x153d2f['commands']['get']('mergeTableCells')['refresh'](),_0x153d2f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c01d5=_0x508da5['filter'](_0x202171=>'$graveyard'!=_0x202171['root']['rootName']);_0x1c01d5['length']>0x0&&_0x43b5ea['setSelection'](_0x1c01d5);for(const _0x21d621 of _0x508da5)_0x21d621['detach']();});});for(const _0x1a9d4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d84dd=_0x153d2f['commands']['get'](_0x1a9d4);_0x4d84dd['on']('set:isEnabled',(_0x6709bd,_0x32b80b,_0x37c413)=>{if(_0x37c413){const _0x5e0a21=_0x153d2f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x36378f=>_0x36378f['is']('element','tableCell'));this['_areMergableCells'](_0x4d84dd['value'],_0x5e0a21)||(_0x6709bd['return']=!0x1,_0x6709bd['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x3b19f5=this['editor']['commands']['get']('mergeTableCells'),_0x59d4a1=this['editor']['plugins']['get']('TableUtils');if(!_0x3b19f5['isEnabled'])return!0x1;const _0x2b2948=_0x59d4a1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x20d784 of _0x2b2948)for(const _0x2ed7fb of _0x2b2948)if(_0x20d784!=_0x2ed7fb&&!this['_areMergableCells'](_0x20d784,_0x2ed7fb))return!0x1;return!0x0;}['_areMergableCells'](_0x2f4c62,_0x3938b5){const _0x32a296=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ef45=this['editor']['model']['createRangeOn'](_0x2f4c62),_0x305289=this['editor']['model']['createRangeOn'](_0x3938b5),_0x5eafad=new Set(),_0xb4a7a6=new Set();for(const _0x573fc2 of _0x32a296['getSuggestions']())if(('insertion'==_0x573fc2['type']||'deletion'==_0x573fc2['type']||'mergeTableCells'==_0x573fc2['subType'])&&_0x573fc2['isInContent']){for(const _0x35a30e of _0x573fc2['getRanges']())_0x35a30e['containsRange'](_0x55ef45,!0x0)&&_0x5eafad['add'](_0x573fc2['type']+':'+_0x573fc2['author']['id']),_0x35a30e['containsRange'](_0x305289,!0x0)&&_0xb4a7a6['add'](_0x573fc2['type']+':'+_0x573fc2['author']['id']);}if(_0x5eafad['size']!=_0xb4a7a6['size'])return!0x1;for(const _0x5b3b76 of _0x5eafad)if(!_0xb4a7a6['has'](_0x5b3b76))return!0x1;return!0x0;}},He=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0xaff997=this['editor'];if(!_0xaff997['plugins']['has']('TableEditing'))return;const _0x3126ee=_0xaff997['locale'],_0x508cf1=_0xaff997['plugins']['get']('TrackChangesEditing');_0x508cf1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x508cf1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x508cf1['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x3126ee,'FORMAT_HEADER_ROW')),_0x508cf1['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x3126ee,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1d62e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58205c=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x1d62e8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x58205c),_0x1d62e8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x58205c),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x4fae0f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x338822=this['editor']['plugins']['get']('TableUtils');function _0x47beda({showActiveMarker:_0x205fcd=!0x0,setDataAttribute:_0x3c614a=!0x0}={}){return(_0x2e79bd,_0x2f4d6d,_0x38d2b8)=>{const {type:_0x607447,id:_0x1952df}=et(_0x2f4d6d['markerName']);if(!_0x4fae0f['hasSuggestion'](_0x1952df))return;const _0x1359b1=_0x4fae0f['getSuggestion'](_0x1952df),_0x48aa80=_0x1359b1['data'];if('formatBlock'!=_0x1359b1['type']||!_0x48aa80||'setTableColumnHeader'!=_0x48aa80['commandName'])return;if(_0x2f4d6d['item'])return void _0x2e79bd['stop']();if(!_0x38d2b8['consumable']['consume'](_0x2f4d6d['markerRange'],_0x2e79bd['name']))return;const _0x48e003=_0x2f4d6d['markerRange']['start']['nodeAfter'],_0x1f265e=_0x2f4d6d['markerRange']['end']['nodeBefore'],_0x2b65db=_0x48e003['parent']['parent'],{column:_0x4305f0}=_0x338822['getCellLocation'](_0x48e003),{column:_0x419c64}=_0x338822['getCellLocation'](_0x1f265e);for(let _0x46dc78=_0x4305f0;_0x46dc78<=_0x419c64;_0x46dc78++){const _0x538602=_0x338822['createTableWalker'](_0x2b65db,{'column':_0x46dc78,'includeAllSlots':!0x1});for(const _0x2745c9 of _0x538602){const _0x136967=_0x2745c9['cell'],_0x32f0ee=_0x38d2b8['mapper']['toViewElement'](_0x136967);_0x38d2b8['writer']['addClass']('ck-suggestion-marker-'+_0x607447,_0x32f0ee),_0x3c614a&&_0x38d2b8['writer']['setAttribute']('data-suggestion',_0x1952df,_0x32f0ee),_0x38d2b8['mapper']['bindElementToMarker'](_0x32f0ee,_0x2f4d6d['markerName']),_0x205fcd&&(_0x4fae0f['activeMarkers']['includes'](_0x2f4d6d['markerName'])?_0x38d2b8['writer']['addClass']('ck-suggestion-marker--active',_0x32f0ee):_0x38d2b8['writer']['removeClass']('ck-suggestion-marker--active',_0x32f0ee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x47beda(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f1870,_0x7d4a73,_0x43a8ed)=>{_0x43a8ed['options']['showSuggestionHighlights']&&_0x47beda({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f1870,_0x7d4a73,_0x43a8ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c2ebe,_0x44e151,_0x9b852b)=>{const {type:_0x5bf178,id:_0x411609}=et(_0x44e151['markerName']);if(!_0x4fae0f['hasSuggestion'](_0x411609))return;const _0xa1979=_0x4fae0f['getSuggestion'](_0x411609),_0x51a581=_0xa1979['data'];if('formatBlock'!=_0xa1979['type']||!_0x51a581||'setTableColumnHeader'!=_0x51a581['commandName'])return;const _0x41518f=_0x9b852b['mapper']['markerNameToElements'](_0x44e151['markerName']);if(_0x41518f){for(const _0x8b7508 of _0x41518f)_0x9b852b['writer']['removeClass']('ck-suggestion-marker-'+_0x5bf178,_0x8b7508),_0x9b852b['writer']['removeClass']('ck-suggestion-marker--active',_0x8b7508),_0x9b852b['writer']['removeAttribute']('data-suggestion',_0x8b7508),_0x9b852b['mapper']['unbindElementFromMarkerName'](_0x8b7508,_0x44e151['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x1d0265=this['editor'],_0x4ac513=_0x1d0265['locale'];function _0x1a07cf(_0x4740f3){return{'type':'format','content':Ot(_0x4ac513,'*Format:*\x20%0',_0x4740f3)};}_0x1d0265['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x276516=>{if('formatBlock'!=_0x276516['type'])return;const {data:_0x3936e7}=_0x276516;return _0x3936e7?'setTableRowHeader'==_0x3936e7['commandName']?_0x3936e7['commandParams'][0x0]['forceValue']?_0x1a07cf(Ot(_0x4ac513,'FORMAT_HEADER_ROW')):_0x1a07cf(Ot(_0x4ac513,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x3936e7['commandName']?_0x3936e7['commandParams'][0x0]['forceValue']?_0x1a07cf(Ot(_0x4ac513,'FORMAT_HEADER_COLUMN')):_0x1a07cf(Ot(_0x4ac513,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x566f55=this['editor'];if(!_0x566f55['plugins']['has']('TableEditing')||!_0x566f55['config']['get']('table.enableFooters'))return;const _0x5e7f11=_0x566f55['locale'],_0x29ce39=_0x566f55['plugins']['get']('TrackChangesEditing');_0x29ce39['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x29ce39['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x5e7f11,'FORMAT_FOOTER_ROW'));}},We=class extends _0x3b6d8a{afterInit(){const _0x1e8358=this['editor'],_0x2e226d=_0x1e8358['locale'],_0x31dbce=_0x1e8358['plugins']['get']('TrackChangesEditing');function _0x3e708d(_0x323bbe){return{'type':'format','content':''+Ot(_0x2e226d,'*Set\x20table\x20type:*\x20%0',_0x323bbe)};}_0x1e8358['plugins']['has']('TableLayout')&&(_0x31dbce['enableCommand']('insertTableLayout'),_0x31dbce['enableDefaultAttributesIntegration']('tableType'),_0x31dbce['descriptionFactory']['registerElementLabel'](_0x57d0d0=>_0x57d0d0['is']('element','table')&&'layout'===_0x57d0d0['getAttribute']('tableType'),_0x51df0b=>Ot(_0x2e226d,'ELEMENT_LAYOUT_TABLE',_0x51df0b)),_0x31dbce['descriptionFactory']['registerDescriptionCallback'](_0x192801=>{const {data:_0x7ba725}=_0x192801;if(_0x7ba725&&'tableType'==_0x7ba725['key'])switch(_0x7ba725['newValue']){case'layout':return _0x3e708d(Ot(_0x2e226d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3e708d(Ot(_0x2e226d,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ve['map'](_0x18b848=>[_0x18b848,null]));var ze=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x2c3532=this['editor'];if(!_0x2c3532['plugins']['has']('TableClipboard'))return;const _0x42d1c8=_0x2c3532['plugins']['get']('TrackChangesEditing'),_0x25e605=_0x2c3532['plugins']['get']('TableUtils'),_0x47397f=_0x2c3532['plugins']['get'](Pe),_0x2ba522=_0x2c3532['plugins']['get']('TableClipboard'),_0x103f52=_0x2c3532['plugins']['get']('TableSelection'),_0xcc236b=_0x2c3532['plugins']['get'](ft);_0x47397f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c3532['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c3532['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x314adc=null,_0x299354=!0x1;_0xcc236b['on']('contentInsertion',(_0x3ae77a,_0x382db7)=>{_0x299354='paste'===_0x382db7['method'];}),_0x2c3532['model']['on']('insertContent',(_0x1c8619,_0x3dcdf0)=>{if(!_0x299354&&null===_0x103f52['getSelectedTableCells']())return;const [_0x2e8588,_0x320396]=_0x3dcdf0,_0x3d00ff=_0x3dcdf0[_0x3dcdf0['length']-0x1];_0x3d00ff&&_0x3d00ff['forceDefaultExecution']||_0x42d1c8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x72321e,_0x309dd6,_0x3a066c,_0x122e3f,_0x2094fe){if(_0x309dd6&&!_0x309dd6['is']('documentSelection'))return!0x1;const _0x28ec89=_0x2094fe['getTableIfOnlyTableInContent'](_0x72321e,_0x3a066c);if(!_0x28ec89||!Xe(_0x28ec89,void 0x0,_0x122e3f))return!0x1;const _0x395619=_0x122e3f['getSelectionAffectedTableCells'](_0x3a066c['document']['selection']);if(!_0x395619['length'])return!0x1;const _0x439fbc=_0x395619[0x0]['findAncestor']('table'),_0x3f67c7=_0x122e3f['getRowIndexes'](_0x395619),_0x43317f=_0x122e3f['getColumnIndexes'](_0x395619),_0x3a6e1b={'startRow':_0x3f67c7['first'],'endRow':_0x3f67c7['last'],'startColumn':_0x43317f['first'],'endColumn':_0x43317f['last']};return 0x1==_0x395619['length']&&(_0x3a6e1b['endRow']+=_0x122e3f['getRows'](_0x28ec89)-0x1,_0x3a6e1b['endColumn']+=_0x122e3f['getColumns'](_0x28ec89)-0x1),Xe(_0x439fbc,_0x3a6e1b,_0x122e3f);}(_0x2e8588,_0x320396,_0x2c3532['model'],_0x25e605,_0x2ba522)&&(_0x1c8619['stop'](),_0x314adc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c3532['model']['change'](()=>{_0x2c3532['model']['insertContent'](_0x3dcdf0[0x0],_0x3dcdf0[0x1],_0x3dcdf0[0x2],{'forceDefaultExecution':!0x0});const _0x362b07=_0x3223bf(),{rowInsertionRanges:_0x387420,columnInsertionRanges:_0x3af63b,insertionRanges:_0x13018f,deletionRanges:_0x5050af,cells:_0x382c3d}=_0x314adc;_0x387420['length']&&_0x42d1c8['markMultiRangeInsertion'](_0x387420,'tablePasteRow',{'tablePasteChainId':_0x362b07}),_0x3af63b['length']&&_0x42d1c8['markMultiRangeInsertion'](_0x3af63b,'tablePasteColumn',{'tablePasteChainId':_0x362b07}),_0x13018f['length']&&(_0x42d1c8['markMultiRangeInsertion'](_0x13018f,'tablePaste',{'tablePasteChainId':_0x362b07,'skipNestingCheck':!0x0}),_0x13018f['forEach'](_0x367595=>_0x367595['detach']?.())),_0x5050af['length']&&(_0x42d1c8['markMultiRangeDeletion'](_0x5050af,'tablePaste',{'tablePasteChainId':_0x362b07,'skipNestingCheck':!0x0}),_0x5050af['forEach'](_0x17cc21=>_0x17cc21['detach']?.()));const _0x2e8695=_0x42d1c8['markMultiRangeBlockFormat'](_0x382c3d['map'](({element:_0x4cb0d5})=>_0x4cb0d5),{'formatGroupId':_0x3223bf()},[],'tablePasteCell',{'tablePasteChainId':_0x362b07});if(_0x2e8695){const _0x340b6f=_0x2e8695['getMarkers'](),_0x458534=[];for(const {element:_0x2a66ef,attributes:_0x1f77eb}of _0x382c3d){if(!_0x1f77eb)continue;const _0x45c637=_0x2c3532['model']['createRangeOn'](_0x2a66ef),_0x775885=_0x340b6f['find'](_0x312d26=>_0x312d26['getRange']()['isEqual'](_0x45c637));_0x775885&&_0x458534['push']([_0x775885['name'],_0x1f77eb]);}_0x458534['length']&&_0x2e8695['setAttribute']('markerAttributes',Object['fromEntries'](_0x458534));}_0x314adc=null;}));},{'priority':_0x1315a6['high']+0xa}),_0xcc236b['on']('contentInsertion',()=>{_0x299354=!0x1;},{'priority':'lowest'}),_0x2c3532['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d6848,_0x5e5493)=>{const [_0x8d75e8,_0x457e34,,_0x53e019]=_0x5e5493;if(!_0x314adc)return;_0x4d6848['stop']();const _0x47c62e=_0x8d75e8['cell'],_0x26ef11=_0x457e34,_0x3a3da6=Ke(_0x47c62e),_0x3a3797=Ke(_0x26ef11);_0x4d6848['return']=_0x47c62e;let _0x1916e9=null,_0x400a68=null;if(_0x3a3797||_0x3a3da6){if(_0x3a3da6&&!_0x3a3797){_0x53e019['remove'](_0x47c62e['getChild'](0x0));for(const _0x5cebaa of Array['from'](_0x26ef11['getChildren']()))_0x53e019['insert'](_0x5cebaa,_0x47c62e,'end');const _0x1415dd=_0x314adc['rowInsertionIndexes']['includes'](_0x8d75e8['row']),_0x5419d7=_0x314adc['columnInsertionIndexes']['includes'](_0x8d75e8['column']);_0x1415dd||_0x5419d7||(_0x1916e9=ot['fromRange'](_0x53e019['createRangeIn'](_0x47c62e)));}else _0x3a3797&&!_0x3a3da6&&(_0x400a68=_0x53e019['createRangeIn'](_0x47c62e));}else{const _0x65f290=_0x53e019['createElement']('tableCellSuggestion'),_0xd52e30=_0x53e019['createElement']('tableCellSuggestion');_0x53e019['wrap'](_0x53e019['createRangeIn'](_0x47c62e),_0xd52e30),_0x53e019['insert'](_0x65f290,_0x47c62e,0x0);for(const _0x56dcdc of Array['from'](_0x26ef11['getChildren']()))_0x53e019['insert'](_0x56dcdc,_0x65f290,'end');_0x1916e9=ot['fromRange'](_0x53e019['createRangeOn'](_0x65f290)),_0x400a68=ot['fromRange'](_0x53e019['createRangeOn'](_0xd52e30));}const _0x391d04=Array['from'](_0x26ef11['getAttributes']())['filter'](([_0x57a7a5])=>Ve['includes'](_0x57a7a5));_0x314adc['cells']['push']({'element':_0x47c62e,'attributes':_0x391d04['length']?Object['fromEntries'](_0x391d04):null}),_0x1916e9&&_0x314adc['insertionRanges']['push'](_0x1916e9),_0x400a68&&_0x314adc['deletionRanges']['push'](_0x400a68);},{'priority':'high'}),_0x25e605['on']('insertColumns',(_0x26444a,_0x5b58c2)=>{const [_0x547a4b,_0x25b29d={}]=_0x5b58c2;if(!_0x314adc)return;const _0x515b57=_0x25b29d['at']||0x0,_0x51439c=_0x25b29d['columns']||0x1;_0x314adc['columnInsertionIndexes']=new Array(_0x51439c)['fill'](_0x515b57)['map']((_0xbfed97,_0x63360c)=>_0xbfed97+_0x63360c);for(const {cell:_0x788a29}of _0x25e605['createTableWalker'](_0x547a4b,{'startColumn':_0x515b57,'endColumn':_0x515b57+_0x51439c-0x1}))_0x314adc['columnInsertionRanges']['push'](_0x2c3532['model']['createRangeOn'](_0x788a29));},{'priority':'low'}),_0x25e605['on']('insertRows',(_0x18ac58,_0x49fa82)=>{const [_0x2453a0,_0x25d587={}]=_0x49fa82;if(!_0x314adc)return;const _0x2b6a31=_0x25d587['at']||0x0,_0xeab3d2=_0x25d587['rows']||0x1;_0x314adc['rowInsertionIndexes']=new Array(_0xeab3d2)['fill'](_0x2b6a31)['map']((_0x2b7db3,_0x4522f4)=>_0x2b7db3+_0x4522f4);for(const {cell:_0x2169ae}of _0x25e605['createTableWalker'](_0x2453a0,{'startRow':_0x2b6a31,'endRow':_0x2b6a31+_0xeab3d2-0x1}))_0x314adc['rowInsertionRanges']['push'](_0x2c3532['model']['createRangeOn'](_0x2169ae));},{'priority':'low'}),_0x42d1c8['descriptionFactory']['registerDescriptionCallback'](_0x25d80f=>{if(_0x25d80f['subType']&&_0x25d80f['subType']['startsWith']('tablePaste'))return _0x25d80f['previous']?{}:{'type':'insertion','content':Ot(_0x2c3532['locale'],'*Replace\x20table\x20cells*')};});const _0x42cc2b=()=>!0x1;for(const _0x121415 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42d1c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x121415,'join',_0x42cc2b),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('deletion',_0x121415,'join',_0x42cc2b),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x121415,'join',_0x42cc2b);_0x42d1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42cc2b),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5baea5,_0x455d03,_0x38cc2f)=>{const _0x34b4fe=_0x5baea5['map'](_0x5785ec=>_0x5785ec['getContainedElement']())['filter'](_0x2ad466=>_0x2ad466),_0x615f08=new Map(_0x34b4fe['map'](_0x4ad74d=>[_0x4ad74d,null]));if(_0x314adc){for(const {element:_0x4d15c1,attributes:_0x34248c}of _0x314adc['cells'])_0x34248c&&_0x615f08['set'](_0x4d15c1,_0x34248c);}else{if(_0x38cc2f&&_0x38cc2f['markerAttributes'])for(const [_0x4f4244,_0xb5528b]of Object['entries'](_0x38cc2f['markerAttributes'])){const _0x52c75b=_0x2c3532['model']['markers']['get'](_0x4f4244),_0x349f39=_0x52c75b?_0x52c75b['getRange']()['getContainedElement']():null;_0x349f39&&_0x615f08['set'](_0x349f39,_0xb5528b);}}_0x2c3532['model']['change'](_0xcccb1=>{for(const [_0x3d782a,_0x5190b3]of _0x615f08)_0xcccb1['setAttributes']({...je,..._0x5190b3},_0x3d782a);});});const _0xe7e44d=(_0x3eb9bc,_0x194640)=>{_0x42d1c8['_suggestionFactory']['registerCustomCallback'](_0x3eb9bc,'tablePaste',_0x194640,(_0x3fa01b,_0x43bd24,_0x3f97e5)=>{_0x2c3532['model']['change'](_0x4c848e=>{const _0x4a03cd=[];for(const _0x494f3b of _0x3fa01b){const _0x1cefb3=_0x494f3b['start']['nodeAfter'];_0x1cefb3['is']('element','tableCellSuggestion')&&_0x4a03cd['push'](_0x1cefb3);}_0x42d1c8['_suggestionFactory']['getSuggestionCallback'](_0x3eb9bc,null,_0x194640)(_0x3fa01b,_0x43bd24,_0x3f97e5);for(const _0x236086 of _0x4a03cd)'$graveyard'!=_0x236086['root']['rootName']&&_0x4c848e['unwrap'](_0x236086);});});};_0xe7e44d('insertion','accept'),_0xe7e44d('insertion','discard'),_0xe7e44d('deletion','accept'),_0xe7e44d('deletion','discard'),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5becf6=>{const _0x2cc69b=_0x5becf6['map'](_0x254733=>_0x254733['getContainedElement']()),_0x589193=_0x2cc69b[0x0]['findAncestor']('table'),{minRow:_0xaf2eb0,maxRow:_0x4db461}=_0x47397f['_getCoordsForCells'](_0x2cc69b);_0x25e605['removeRows'](_0x589193,{'at':_0xaf2eb0,'rows':_0x4db461-_0xaf2eb0+0x1});}),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x468d22=>{const _0x569703=_0x468d22['map'](_0x3d8d88=>_0x3d8d88['getContainedElement']()),_0x915ad9=_0x569703[0x0]['findAncestor']('table'),{minColumn:_0x2a16c4,maxColumn:_0x1b4020}=_0x47397f['_getCoordsForCells'](_0x569703);_0x25e605['removeColumns'](_0x915ad9,{'at':_0x2a16c4,'columns':_0x1b4020-_0x2a16c4+0x1});});const _0x55a907=(_0x338ce9,_0xc88cba)=>{if(!_0xc88cba['subType']||!_0xc88cba['subType']['startsWith']('tablePaste'))return;const _0x1ca759=_0xc88cba['attributes']['tablePasteChainId'],_0x3c9c69=_0x42d1c8['getSuggestions']()['filter'](_0x280673=>_0x280673['isInContent']&&_0x280673['attributes']&&_0x280673['attributes']['tablePasteChainId']==_0x1ca759);_0x3c9c69['length']&&_0xc88cba['getAllAdjacentSuggestions']()['length']!=_0x3c9c69['length']&&_0x3c9c69['reduce']((_0x35b526,_0x2bb08e)=>(_0x35b526['next']=_0x2bb08e,_0x2bb08e['previous']=_0x35b526,_0x2bb08e));};function _0x3b7b06(_0x23b29c,_0x371e5e=!0x0){const {id:_0x4034be,authorId:_0x1a48d6}=et(_0x23b29c['markerName']),_0x5c9d1d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x305fae=_0x42d1c8['activeMarkers']['includes'](_0x23b29c['markerName']);return _0x305fae&&_0x5c9d1d['push']('ck-suggestion-marker--active'),{'classes':_0x5c9d1d,'attributes':{'data-suggestion':_0x4034be,'data-author-id':_0x1a48d6},'priority':_0x305fae&&_0x371e5e?0xbc2:0xbb8};}_0x42d1c8['on']('suggestionLoaded',_0x55a907,{'priority':'high'}),_0x42d1c8['on']('suggestionUnloaded',_0x55a907,{'priority':'high'}),_0x2c3532['model']['document']['registerPostFixer'](()=>{let _0x40be01=!0x1;const _0x4ed42d=Array['from'](_0x2c3532['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e0001,data:_0x2ba2b7}of _0x4ed42d){const {group:_0x4f524a,type:_0x4a3bf3,id:_0x346332}=et(_0x5e0001);if('suggestion'!=_0x4f524a||'deletion'!=_0x4a3bf3||_0x2ba2b7['oldRange'])continue;if(!_0x42d1c8['hasSuggestion'](_0x346332))continue;const _0x13e1d4=_0x42d1c8['getSuggestion'](_0x346332)['getRanges'](),_0x46ec17=_0x2c3532['plugins']['get']('Users')['me'];for(const _0x2fb6b7 of _0x42d1c8['getSuggestions']())if(_0x2fb6b7['isInContent']&&_0x2fb6b7['author']==_0x46ec17&&'formatBlock'==_0x2fb6b7['type']&&'tablePasteCell'==_0x2fb6b7['subType']&&_0x2fb6b7['getRanges']()['every'](_0x3cb13a=>_0x13e1d4['some'](_0x3b76cc=>_0x3b76cc['containsRange'](_0x3cb13a,!0x0)))){for(const _0x12268e of _0x2fb6b7['getAllAdjacentSuggestions']())_0x12268e['isInContent']&&(_0x12268e['discard'](),_0x40be01=!0x0);}}return _0x40be01;}),_0x2c3532['model']['document']['registerPostFixer'](_0xe2d3e3=>{const _0x1c38d6=_0x2c3532['commands']['get']('redo');if(!_0x1c38d6||!_0x1c38d6['_createdBatches']['has'](_0xe2d3e3['batch']))return!0x1;let _0x128deb=!0x1;const _0x36226d=_0x2c3532['plugins']['get']('Users')['me'],_0x43bd1d=_0x2c3532['model']['document']['differ']['getChanges'](),_0x307e67=Array['from'](_0x2c3532['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32e423,data:_0x59878e})=>{const {group:_0x39eb10,subType:_0x4ec598,authorId:_0x40a070}=et(_0x32e423);return'suggestion'==_0x39eb10&&'tablePaste'==_0x4ec598&&_0x40a070==_0x36226d['id']&&!_0x59878e['oldRange'];});for(const _0x537da9 of _0x43bd1d){if('insert'!=_0x537da9['type']||'tableCellSuggestion'!=_0x537da9['name']||0x1!=_0x537da9['length'])continue;const _0x367cfc=_0xe2d3e3['createRange'](_0x537da9['position'],_0x537da9['position']['getShiftedBy'](0x1));if(!_0x307e67['find'](({data:_0x3cc2cf})=>_0x3cc2cf['newRange']['isEqual'](_0x367cfc))){for(const {name:_0x458542,data:_0x53f844}of _0x307e67)if(_0x367cfc['containsRange'](_0x53f844['newRange'])){_0xe2d3e3['updateMarker'](_0x458542,{'range':_0x367cfc}),_0x128deb=!0x0;break;}}}return _0x128deb;}),_0x2c3532['model']['document']['registerPostFixer'](_0x164cbb=>{let _0x3176c1=!0x1;const _0x13af9b=_0x2c3532['plugins']['get']('Users')['me'],_0x195c46=_0x42d1c8['getSuggestions']()['filter'](_0x4d3725=>_0x4d3725['isInContent']&&_0x4d3725['author']==_0x13af9b),_0x3c495f=new Set(),_0x332c56=new Set();for(const _0x5ee47a of _0x195c46)if('tablePaste'==_0x5ee47a['subType'])for(const _0x5d2b6d of _0x5ee47a['getMarkers']()){const _0x5e405b=_0x5d2b6d['getRange']()['getContainedElement']();if(_0x5e405b){if(_0x5e405b['is']('element','tableCellSuggestion')&&Ke(_0x5e405b)){_0x5ee47a['removeMarker'](_0x5d2b6d['name']),_0x3c495f['add'](_0x5e405b),_0x3176c1=!0x0;const _0x552cfd=_0x5e405b['nextSibling'],_0x284201=_0x5e405b['previousSibling'],_0x336f6c=_0x552cfd&&_0x552cfd['is']('element','tableCellSuggestion'),_0x55db00=_0x284201&&_0x284201['is']('element','tableCellSuggestion');_0x336f6c&&!_0x3c495f['has'](_0x552cfd)&&_0x332c56['add'](_0x552cfd),_0x55db00&&!_0x3c495f['has'](_0x284201)&&_0x332c56['add'](_0x284201);}else _0x5e405b['is']('element','paragraph')&&_0x5e405b['isEmpty']&&(_0x5ee47a['removeMarker'](_0x5d2b6d['name']),_0x3176c1=!0x0);}}else{if('tablePasteCell'==_0x5ee47a['subType']){if(!_0x5ee47a['attributes']||!_0x5ee47a['attributes']['tablePasteChainId'])continue;const _0x31f32b=_0x5ee47a['attributes']['markerAttributes'];if(_0x31f32b&&Object['keys'](_0x31f32b)['length'])continue;const _0x128ea8=_0x5ee47a['attributes']['tablePasteChainId'];let _0x4db750=!0x0,_0x5cb953=!0x0;for(const _0x176e46 of _0x195c46)if(_0x176e46['subType']&&_0x176e46['subType']['startsWith']('tablePaste')){if(!_0x176e46['attributes']['tablePasteChainId']){_0x5cb953=!0x1;break;}if(_0x176e46['id']!=_0x5ee47a['id']&&_0x176e46['attributes']['tablePasteChainId']==_0x128ea8){_0x4db750=!0x1;break;}}_0x5cb953&&_0x4db750&&(_0x5ee47a['removeMarkers'](),_0x3176c1=!0x0);}}for(const _0x3f2362 of _0x3c495f)_0x164cbb['remove'](_0x3f2362);for(const _0x165a00 of _0x332c56)_0x164cbb['unwrap'](_0x165a00);return _0x3176c1;}),_0x2c3532['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7d7ae6=>_0x3b7b06(_0x7d7ae6),'converterPriority':'high'}),_0x2c3532['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31b4e9,_0x163306)=>_0x163306['options']['showSuggestionHighlights']?_0x3b7b06(_0x31b4e9,!0x1):null,'converterPriority':'high'});const _0x2bc96c=_0x2c3532['editing']['view'];this['listenTo'](_0x2bc96c['document'],'clipboardOutput',(_0x1c2b7b,_0x41bb7c)=>{const _0xb0e16e=[];for(const _0x2a53b0 of _0x2bc96c['createRangeIn'](_0x41bb7c['content'])['getItems']())_0x2a53b0['is']('element','suggestion-td')&&_0xb0e16e['push'](_0x2a53b0);_0x2bc96c['change'](_0x418b55=>{for(const _0x12f3d9 of _0xb0e16e)_0x418b55['move'](_0x418b55['createRangeIn'](_0x12f3d9),_0x418b55['createPositionBefore'](_0x12f3d9)),_0x418b55['remove'](_0x12f3d9);});});}};function Ke(_0x52552e){if(_0x52552e['isEmpty'])return!0x0;const _0xa40441=_0x52552e['getChild'](0x0);return _0xa40441['is']('element','paragraph')&&_0xa40441['isEmpty'];}function Xe(_0x399fab,_0x5b464a={},_0x46c788){for(const {isAnchor:_0x26515d,cellHeight:_0x3a6f9c,cellWidth:_0x267558}of _0x46c788['createTableWalker'](_0x399fab,{'includeAllSlots':!0x0,..._0x5b464a}))if(!_0x26515d||0x1!=_0x3a6f9c||0x1!=_0x267558)return!0x1;return!0x0;}var qe=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d8dbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d8dbe['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x1d8dbe['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x1d8dbe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d8dbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4430eb=_0x1d8dbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x1d8dbe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x1925ec,_0x56afe8)=>{_0x4430eb(_0x1925ec,_0x56afe8),this['_restoreCellWidths'](_0x1925ec[0x0]['start']['nodeAfter'],_0x56afe8['commandParams'][0x0]['cellWidths']);}),_0x1d8dbe['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x3b71eb,_0x1145fd){const _0x5e17cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5913b6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1da9ee=_0x1145fd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x212e4d=_0x5913b6['getColumnGroupElement'](_0x1da9ee);let _0x391156=_0x212e4d?_0x5913b6['getTableColumnsWidths'](_0x212e4d):null,_0x18ed29=_0x1da9ee['getAttribute']('tableWidth')||null;const _0x393b81=_0x1145fd['tableWidth']||_0x18ed29,_0x39fb7d=_0x1145fd['columnWidths']||_0x391156;let _0x49ecb3=this['_getCellWidths'](_0x1da9ee);const _0x10775a=this['_foldResizeTableSuggestion'](_0x1da9ee);_0x10775a&&(_0x18ed29=_0x10775a['tableWidth'],_0x391156=_0x10775a['columnWidths'],_0x49ecb3=_0x10775a['cellWidths']||_0x49ecb3),_0x3b71eb({'table':_0x1da9ee,'tableWidth':_0x393b81,'columnWidths':_0x39fb7d}),_0x5e17cd['markBlockFormat'](_0x1da9ee,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x18ed29,'columnWidths':_0x391156,'cellWidths':_0x49ecb3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x17a9c8,_0x2226b8={}){if(void 0x0===_0x2226b8['value']||''===_0x2226b8['value'])return void _0x17a9c8(_0x2226b8);const _0x563658=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32ec83=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24a6c1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x2226b8['batch']||(_0x2226b8['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x2226b8['batch'],()=>{const _0x3c5e7a=_0x32ec83['getColumnGroupElement'](_0x24a6c1);let _0xcf0c9d=_0x3c5e7a?_0x32ec83['getTableColumnsWidths'](_0x3c5e7a):null,_0x5ed18c=_0x24a6c1['getAttribute']('tableWidth')||null,_0x2f66bc=this['_getCellWidths'](_0x24a6c1);const _0x3575d1=this['_foldResizeTableSuggestion'](_0x24a6c1,!0x0);_0x3575d1&&(_0x5ed18c=_0x3575d1['tableWidth'],_0xcf0c9d=_0x3575d1['columnWidths'],_0x2f66bc=_0x3575d1['cellWidths']||_0x2f66bc),_0x17a9c8(_0x2226b8),_0x563658['markBlockFormat'](_0x24a6c1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ed18c,'columnWidths':_0xcf0c9d,'cellWidths':_0x2f66bc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x58a271,_0x365967=!0x1){const _0x4f8207=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e68cb=this['editor']['plugins']['get']('Users')['me'];for(const _0x5cfd89 of _0x4f8207['getSuggestions']({'skipNotAttached':!0x0})){const _0x491813=_0x5cfd89['getContainedElement']();if('resizeTable'===_0x5cfd89['subType']&&_0x491813===_0x58a271){_0x5cfd89['author']!==_0x2e68cb&&(_0x365967?_0x5cfd89['removeMarkers']():_0x5cfd89['discard']());const _0x140295=_0x5cfd89['data']['commandParams'];return{'tableWidth':_0x140295[0x0]['tableWidth'],'columnWidths':_0x140295[0x0]['columnWidths'],'cellWidths':_0x140295[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x46fe3e){const _0x10746b=[];for(const _0x1ffad3 of _0x46fe3e['getChildren']())if(_0x1ffad3['is']('element','tableRow')){for(const _0x2ddf09 of _0x1ffad3['getChildren']())_0x10746b['push'](_0x2ddf09['getAttribute']('tableCellWidth')||null);}return _0x10746b;}_restoreCellWidths(_0x1c9d1c,_0x147675){_0x147675&&this['editor']['model']['change'](_0xdc835c=>{let _0x356b47=0x0;for(const _0x4be94a of _0x1c9d1c['getChildren']())if(_0x4be94a['is']('element','tableRow'))for(const _0x445284 of _0x4be94a['getChildren']()){const _0x38f8e7=_0x147675[_0x356b47++];_0x38f8e7&&_0xdc835c['setAttribute']('tableCellWidth',_0x38f8e7,_0x445284);}});}handleSuggestionDescription(_0x4281cb){if('formatBlock'!=_0x4281cb['type']&&'formatInline'!=_0x4281cb['type'])return;const {data:_0x4241ab}=_0x4281cb;return _0x4241ab&&'resizeTable'===_0x4241ab['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x3b6d8a{afterInit(){const _0x2b4681=this['editor'];_0x2b4681['plugins']['has']('Template')&&_0x2b4681['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x3b6d8a{afterInit(){const _0x37d624=this['editor'];if(!_0x37d624['commands']['get']('insertTableOfContents'))return;_0x37d624['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1db812=_0x37d624['plugins']['get']('TrackChangesEditing'),_0x1e381e=_0x37d624['locale'];_0x1db812['descriptionFactory']['registerElementLabel']('tableOfContents',_0x172c03=>Ot(_0x1e381e,'ELEMENT_TABLE_OF_CONTENTS',_0x172c03));}},Ze=class extends _0x3b6d8a{afterInit(){const _0x5d929f=this['editor'];_0x5d929f['plugins']['has']('Title')&&(_0x5d929f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x5d929f['locale'],'ELEMENT_TITLE')),_0x5d929f['model']['document']['registerPostFixer'](_0x47460f=>{let _0x492bc4=!0x1;const _0x531a2b=Array['from'](_0x5d929f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x369030,data:_0x5cddf1}of _0x531a2b){const {group:_0x33522b}=et(_0x369030);if('suggestion'!==_0x33522b||!_0x5cddf1['newRange'])continue;const _0x2660c6=_0x5cddf1['newRange'],_0x3162c7=_0x2660c6['end']['nodeBefore'];if(!_0x3162c7||!_0x3162c7['is']('element','title-content'))continue;if(!_0x2660c6['start']['isTouching'](_0x2660c6['end']))continue;const _0x58fee2=_0x5d929f['model']['schema']['getNearestSelectionRange'](_0x2660c6['end'],'forward');if(_0x58fee2&&_0x58fee2['isCollapsed']){const _0x1fd277=_0x47460f['createRange'](_0x2660c6['start'],_0x58fee2['start']);_0x1fd277['isEqual'](_0x2660c6)||(_0x47460f['updateMarker'](_0x369030,{'range':_0x1fd277}),_0x492bc4=!0x0);}_0x492bc4||(_0x47460f['removeMarker'](_0x369030),_0x492bc4=!0x0);}return _0x492bc4;}));}},Je=class extends _0x3b6d8a{afterInit(){const _0x3ef12a=this['editor'],_0x557130=_0x3ef12a['plugins']['get']('TrackChangesEditing');_0x3ef12a['plugins']['has']('Uploadcare')&&(_0x557130['enableCommand']('uploadcare'),_0x3ef12a['plugins']['has']('UploadcareImageEdit')&&(_0x557130['enableCommand']('uploadcareImageEdit'),_0x557130['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x557130['descriptionFactory']['registerDescriptionCallback'](_0x5512e2=>{if('attribute'!=_0x5512e2['type'])return;const {data:_0xb4e896}=_0x5512e2;return _0xb4e896&&'uploadcareImageId'==_0xb4e896['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x3b6d8a{afterInit(){const _0x24db49=this['editor'],_0x50e73c=_0x24db49['plugins']['get']('TrackChangesEditing');_0x24db49['plugins']['has']('UndoEditing')&&(_0x50e73c['enableCommand']('undo'),_0x50e73c['enableCommand']('redo'));}},en=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x2529ca=this['editor'];_0x2529ca['plugins']['has']('TableCaptionEditing')&&_0x2529ca['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x3b6d8a{tableProperties;tableCellProperties;constructor(_0x25f017){super(_0x25f017),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x3a0b12=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x8d5777 of this['tableProperties'])_0x3a0b12['enableCommand'](_0x8d5777,(_0x280d9c,_0x4dc8ed)=>{const _0x1c4667=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x8d5777,[_0x1c4667],this['tableProperties'],'tableProperties',_0x280d9c,_0x4dc8ed);});_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a0b12['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5cdddd,_0x470afa)=>this['handleDiscardAction'](this['tableProperties'],_0x5cdddd,_0x470afa)),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ec2e4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2ec2e4)&&_0x3a0b12['enableCommand'](_0x2ec2e4,(_0x86a492,_0x5a167a)=>{const _0x1f52a8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ec2e4,_0x1f52a8,this['tableCellProperties'],'tableCellProperties',_0x86a492,_0x5a167a);});_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a0b12['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55d724,_0x413a87)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55d724,_0x413a87)),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3a0b12['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3a0b12['descriptionFactory']['registerDescriptionCallback'](_0x59efb1=>this['handleSuggestionDescription'](_0x59efb1)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x6eec8f,_0x56695c,_0x5d45cd,_0x18f40f,_0x37a4fb,_0x49c5a5){const _0x5865df=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x49c5a5['batch'],()=>{for(const _0x29ccd4 of _0x56695c)if(this['_getSuggestion'](_0x29ccd4,_0x18f40f))_0x37a4fb(_0x49c5a5);else{const _0x174b27={};for(const _0x431832 of _0x5d45cd){const _0x1e18c2=_0x29ccd4['getAttribute'](_0x431832);void 0x0!==_0x1e18c2&&(_0x174b27[_0x431832]=_0x1e18c2);}const _0x41567d=this['_getResizedColumnWidths'](_0x29ccd4);_0x41567d&&(_0x174b27['columnWidths']=_0x41567d),_0x37a4fb(_0x49c5a5),_0x5865df['markBlockFormat'](_0x29ccd4,{'commandParams':[_0x174b27]},[],_0x18f40f);}});}handleDiscardAction(_0x201e99,_0x3c037c,_0xcbca12){const _0x39720a=_0x3c037c[0x0]['start']['nodeAfter'],_0x28de0f=_0xcbca12['commandParams'][0x0];this['editor']['model']['change'](_0x121caf=>{for(const _0x42fe85 of _0x201e99)void 0x0!==_0x28de0f[_0x42fe85]?_0x121caf['setAttribute'](_0x42fe85,_0x28de0f[_0x42fe85],_0x39720a):_0x121caf['removeAttribute'](_0x42fe85,_0x39720a);if(_0x28de0f['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x51a17d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x770d44=_0x51a17d['getColumnGroupElement'](_0x39720a);if(_0x770d44){const _0x49410b=_0x51a17d['getTableColumnsWidths'](_0x770d44),_0x2dc269=_0x39720a['getAttribute']('tableWidth');if(('string'==typeof _0x2dc269&&_0x2dc269['trim']()['endsWith']('px'))!==_0x49410b['some'](_0x692c47=>'string'==typeof _0x692c47&&_0x692c47['endsWith']('px'))){const _0x101c5f=_0x51a17d['getTableColumnElements'](_0x770d44);_0x28de0f['columnWidths']['forEach']((_0x176998,_0x166ed9)=>{_0x101c5f[_0x166ed9]&&_0x121caf['setAttribute']('columnWidth',_0x176998,_0x101c5f[_0x166ed9]);});}}}});}_getResizedColumnWidths(_0x39ff61){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x39ff61['is']('element','table'))return;const _0x35fc0c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x56a127=_0x35fc0c['getColumnGroupElement'](_0x39ff61);return _0x56a127?_0x35fc0c['getTableColumnsWidths'](_0x56a127):void 0x0;}handleSuggestionDescription(_0x8e355c){if(_0x8e355c['data'])switch(_0x8e355c['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x137c2d,_0x18cba4){const _0x4a0d23=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x52c8ff of _0x4a0d23['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a36b5=_0x52c8ff['getContainedElement']();if(_0x52c8ff['subType']===_0x18cba4&&_0x3a36b5===_0x137c2d)return _0x52c8ff;}return null;}_registerTablePropertiesAttributes(){const _0x419eec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x233019=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2d4d85 of _0x233019){const _0x252d54=_0x2d4d85['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x419eec['descriptionFactory']['registerAttributeLabel'](_0x2d4d85,Ot(this['editor']['locale'],'FORMAT_'+_0x252d54));}}},sn=class extends _0x3b6d8a{afterInit(){const _0x4e21b1=this['editor'];if(!_0x4e21b1['plugins']['has']('LineHeight'))return;const _0x21e87d=_0x4e21b1['plugins']['get']('TrackChangesEditing'),_0x55f822=_0x4e21b1['locale'];_0x21e87d['enableDefaultAttributesIntegration']('lineHeight'),_0x21e87d['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x55f822,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x3b6d8a{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x2a3df3,_0x5df0b9,_0x1da799,_0x2b14db,_0xc88042,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x528ae0){super(_0x528ae0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x46e083,_0x2608b6,_0x2815d5,_0xd5dda2)=>{this['_model']['change'](()=>{for(const _0x15b5c6 of[..._0xd5dda2,..._0x2815d5])this['_model']['markers']['has'](_0x15b5c6)&&_0x528ae0['editing']['reconvertMarker'](_0x15b5c6);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x528ae0['plugins']['get'](_0x2a3df3),this['_suggestionsConversion']=_0x528ae0['plugins']['get'](_0x5df0b9),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x528ae0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x528ae0['config']['get']('trackChanges.trackFormatChanges'),_0x528ae0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x528ae0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x528ae0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x45aa79=this['editor'];_0x45aa79['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34930e,{writer:_0x3e437c})=>{let _0x4c3eef='suggestion:'+_0x34930e['getAttribute']('suggestion-type')+':'+_0x34930e['getAttribute']('id');return _0x34930e['getAttribute']('marker-count')&&(_0x4c3eef+=':'+_0x34930e['getAttribute']('marker-count')),_0x3e437c['createElement']('$marker',{'data-name':_0x4c3eef});}}),_0x45aa79['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45aa79['model']['document']['registerPostFixer'](_0x291e5b=>{let _0x1082bc=!0x1;const _0x28a93f=Array['from'](_0x45aa79['model']['document']['differ']['getChangedMarkers']()),_0x366271=new Set();for(const {name:_0x556a36,data:_0x42e81b}of _0x28a93f){const {group:_0x45c377,type:_0x510b6f,subType:_0x266475,id:_0x31d6f5}=et(_0x556a36);if('suggestion'!==_0x45c377)continue;const _0x3fb863=_0x266475?'suggestion:'+_0x510b6f+':'+_0x266475+':'+_0x31d6f5:'suggestion:'+_0x510b6f+':'+_0x31d6f5,_0x5d0745=_0x45aa79['model']['markers']['getMarkersGroup'](_0x3fb863),_0x49d961=_0x45aa79['model']['markers']['get'](_0x556a36),_0x168e8e=this['_suggestions']['get'](_0x31d6f5);if(null!=_0x42e81b['newRange']){'formatInline'==_0x510b6f&&(_0x1082bc=_0x1082bc||un(_0x42e81b['newRange'],_0x556a36,_0x291e5b,_0x45aa79['model']['schema']));const _0x69fb45='attribute'==_0x510b6f&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x266475)),_0x1e8c24='attribute'==_0x510b6f&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x266475));if(_0x42e81b['newRange']['isCollapsed']||'$graveyard'==_0x42e81b['newRange']['root']['rootName']||'formatBlock'==_0x510b6f&&!hn(_0x42e81b['newRange'])||_0x69fb45&&!hn(_0x42e81b['newRange'])||_0x1e8c24&&gn(_0x42e81b['newRange'])||'deletion'==_0x510b6f&&gn(_0x42e81b['newRange'])||_0x49d961&&fn(_0x49d961,_0x5d0745))_0x291e5b['removeMarker'](_0x556a36),_0x1082bc=!0x0;else{if(!_0x168e8e||!_0x168e8e['isInContent'])continue;if(_0x42e81b['newRange']&&_0x42e81b['oldRange']&&_0x42e81b['newRange']['isEqual'](_0x42e81b['oldRange']))continue;_0x366271['add'](_0x168e8e);}}}return _0x366271['size']>0x0&&(_0x1082bc=!!this['_joinWithAdjacentSuggestions'](_0x366271)||_0x1082bc),_0x1082bc;}),_0x45aa79['model']['document']['registerPostFixer'](_0x210c74=>{let _0x3376b9=!0x1;for(const _0x1f1693 of _0x45aa79['model']['document']['differ']['getChanges']())if('insert'==_0x1f1693['type'])for(const _0x379cd8 of this['_suggestions']['values']()){if(_0x379cd8['isMultiRange']||!_0x379cd8['isInContent'])continue;const _0x4a6121='formatBlock'==_0x379cd8['type'],_0x44037e=this['_getAttributeKey'](_0x379cd8),_0x57c62a=_0x44037e&&this['_suggestionsConversion']['isBlockAttribute'](_0x44037e);if(!_0x4a6121&&!_0x57c62a)continue;const _0x8977d6=_0x379cd8['getFirstRange']();if(_0x8977d6['start']['parent']!=_0x8977d6['end']['parent']&&!_0x8977d6['end']['isAtEnd']){const _0x537415=_0x45aa79['model']['createPositionAt'](_0x8977d6['start']['nodeAfter'],'end'),_0x2f2644=_0x45aa79['model']['createRange'](_0x8977d6['start'],_0x537415);_0x210c74['updateMarker'](_0x379cd8['getFirstMarker'](),{'range':_0x2f2644}),_0x3376b9=!0x0;}}return _0x3376b9;}),_0x45aa79['model']['document']['registerPostFixer'](_0x2eb796=>this['_processAttributeChanges'](_0x2eb796)),_0x45aa79['model']['document']['registerPostFixer'](_0x2f78a6=>!_0x2f78a6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f78a6)),_0x45aa79['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45aa79['model']['document']['on']('change:data',(_0x17cb5c,_0x5efdf5)=>{if(!_0x5efdf5['isLocal']||_0x5efdf5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ca607=_0x45aa79['model']['document']['differ']['getChanges']();if(0x0==_0x4ca607['length'])return;const _0x1a407b=[],_0xbfc4d0=_0x4ca607['filter'](_0x4957b7=>'attribute'==_0x4957b7['type']),_0x1290f9=_0x4ca607['filter'](_0xba4152=>'insert'==_0xba4152['type']&&'$text'!=_0xba4152['name']);for(const _0x5ec60d of _0xbfc4d0)this['_suggestionsConversion']['isRegisteredAttribute'](_0x5ec60d['attributeKey'])&&_0x1a407b['push']({'key':_0x5ec60d['attributeKey'],'newValue':_0x5ec60d['attributeNewValue'],'oldValue':_0x5ec60d['attributeOldValue'],'range':mn(_0x5ec60d['range'],_0x45aa79['model'])});for(const _0x3dedbf of _0x1290f9){if('rename'!=_0x3dedbf['action']&&'refresh'!=_0x3dedbf['action'])continue;const _0x4f1c59=En(_0x3dedbf['position']['nodeAfter'],_0x45aa79['model']),_0x198c54=_0x3dedbf['before'];'rename'==_0x3dedbf['action']&&_0x1a407b['push']({'key':rn,'newValue':_0x3dedbf['name'],'oldValue':_0x198c54['name'],'range':_0x4f1c59});for(const [_0x3164c0,_0x1862a1]of _0x198c54['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3164c0))continue;const _0x3e0573=_0x3dedbf['attributes']['get'](_0x3164c0);_0x1862a1!==_0x3e0573&&_0x1a407b['push']({'key':_0x3164c0,'newValue':_0x3e0573,'oldValue':_0x1862a1,'range':_0x4f1c59});}for(const [_0x45edef,_0x342231]of _0x3dedbf['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x45edef)&&(_0x198c54['attributes']['has'](_0x45edef)||_0x1a407b['push']({'key':_0x45edef,'newValue':_0x342231,'oldValue':null,'range':_0x4f1c59}));}0x0!=_0x1a407b['length']&&_0x45aa79['model']['enqueueChange'](_0x5efdf5,_0x45ab8f=>{const _0x53c574=_0x3223bf();for(const {range:_0x310e82,key:_0x3bedbe,oldValue:_0x52be95,newValue:_0x75469}of _0x1a407b)this['markAttributeChange'](_0x310e82,_0x3bedbe,_0x52be95,_0x75469,{'groupId':_0x53c574});this['_reduceExistingSuggestions'](_0x45ab8f,_0x1a407b);});},{'priority':'lowest'}),_0x45aa79['model']['markers']['on']('update:suggestion',(_0x2ff00a,_0x124afc,_0x250571)=>{if(null==_0x250571){const {id:_0x2dfc29}=et(_0x124afc['name']),_0xec180b=this['_suggestions']['get'](_0x2dfc29);_0xec180b&&_0xec180b['addMarkerName'](_0x124afc['name']);}}),_0x45aa79['model']['document']['on']('change:data',()=>{const _0xc5887a=Array['from'](_0x45aa79['model']['document']['differ']['getChangedMarkers']())['filter'](_0x51de0f=>'suggestion'===et(_0x51de0f['name'])['group']);if(0x0===_0xc5887a['length'])return;_0xc5887a['sort']((_0x881d81,_0x433e19)=>{const _0x35c80f=_0x881d81['data']['oldRange'],_0x31874c=_0x433e19['data']['oldRange'];return null===_0x35c80f&&null===_0x31874c?0x0:null===_0x35c80f&&null!==_0x31874c?-0x1:null!==_0x35c80f&&null===_0x31874c?0x1:_0x35c80f['start']['isBefore'](_0x31874c['start'])?-0x1:0x1;});const _0x4dd90d=new Set(),_0x2ceac1=new Set();for(const {name:_0x3b32e9,data:_0x3f2940}of _0xc5887a){const {id:_0x12fff0}=et(_0x3b32e9);if(null===_0x3f2940['oldRange']){const _0x3ef9e5=this['_handleNewSuggestionMarker'](_0x3b32e9);_0x2ceac1['add'](_0x3ef9e5);}else{const _0x3c2d64=this['_suggestions']['get'](_0x12fff0);null!==_0x3f2940['newRange']||_0x3c2d64['isInContent']?(_0x4dd90d['add'](_0x3c2d64['head']),_0x2ceac1['add'](_0x3c2d64)):this['_removeSuggestion'](_0x3c2d64);}}_0x2ceac1['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ceac1);for(const _0x506855 of _0x4dd90d)this['fire']('suggestionChanged',_0x506855);}),_0x45aa79['model']['on']('applyOperation',(_0x8f39ef,_0x53a4cb)=>{const _0x5da2d1=_0x53a4cb[0x0];if(!this['_suggestions']['size'])return;if(!_0x5da2d1['isDocumentOperation'])return;if(_0x5da2d1['batch']['isUndo']||!_0x5da2d1['batch']['isLocal'])return;let _0x1a7c3b,_0x2a84b8;switch(_0x5da2d1['type']){case'insert':_0x1a7c3b=_0x45aa79['model']['createPositionAt'](_0x5da2d1['position']),_0x2a84b8=_0x1a7c3b['getShiftedBy'](_0x5da2d1['howMany']);break;case'split':_0x1a7c3b=_0x45aa79['model']['createPositionAt'](_0x5da2d1['splitPosition']),_0x2a84b8=_0x45aa79['model']['createPositionAt'](_0x5da2d1['moveTargetPosition']);break;case'move':_0x1a7c3b=_0x45aa79['model']['createPositionAt'](_0x5da2d1['targetPosition']),_0x2a84b8=_0x1a7c3b['getShiftedBy'](_0x5da2d1['howMany']);break;default:return;}const _0x2ecefd=_0x45aa79['model']['createRange'](_0x1a7c3b,_0x2a84b8);_0x45aa79['model']['change'](()=>{for(const {suggestion:_0x10b9a8,meta:_0xc7e753}of this['_findSuggestions'](_0x2ecefd)){if(_0x10b9a8['isMultiRange'])continue;if('formatInline'==_0x10b9a8['type'])continue;const _0xd2ee2b=this['_getAttributeKey'](_0x10b9a8);if(_0xd2ee2b&&this['_suggestionsConversion']['isBlockAttribute'](_0xd2ee2b)&&'split'!=_0x5da2d1['type'])continue;const _0x210f16=_0x10b9a8['data']&&_0x10b9a8['data']['multipleBlocks'];('formatBlock'!=_0x10b9a8['type']||'split'==_0x5da2d1['type']&&!_0x210f16)&&(_0xc7e753['containsRangeInObject']||'insertion'==_0x10b9a8['type']&&_0xc7e753['isOwn']||_0x10b9a8['getFirstRange']()['containsRange'](_0x2ecefd)&&this['_breakSuggestionMarker'](_0x10b9a8,_0x1a7c3b,_0x2a84b8));}});},{'priority':'lowest'}),_0x45aa79['model']['on']('deleteContent',(_0x186c6b,_0x28df03)=>{const _0x3399d2=_0x28df03[0x0],_0x5798f8=_0x28df03[0x1];if(_0x5798f8&&_0x5798f8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3399d2['isCollapsed'])return;const _0xe5a371=_0x45aa79['model']['schema'],{start:_0x23051b,end:_0x329eb0}=_0x3399d2['getFirstRange'](),_0x21835a=_0x23051b['nodeAfter']&&_0xe5a371['isLimit'](_0x23051b['nodeAfter'])?null:_0xe5a371['getNearestSelectionRange'](_0x23051b,'forward'),_0x28ea4c=_0x329eb0['nodeBefore']&&_0xe5a371['isLimit'](_0x329eb0['nodeBefore'])?null:_0xe5a371['getNearestSelectionRange'](_0x329eb0,'backward'),_0x5a5029=_0x45aa79['model']['createRange'](_0x21835a?_0x21835a['start']:_0x23051b,_0x28ea4c?_0x28ea4c['end']:_0x329eb0);_0x45aa79['model']['change'](_0x48234d=>{this['markDeletion'](_0x5a5029);const _0x5587d2=_0x45aa79['model']['schema']['getNearestSelectionRange'](_0x5a5029['start']);_0x3399d2['is']('documentSelection')?_0x48234d['setSelection'](_0x5587d2):_0x3399d2['setTo'](_0x5587d2);}),_0x186c6b['stop']();},{'priority':_0x1315a6['normal']+0xa}),_0x45aa79['model']['on']('insertContent',(_0x4d924e,_0x15a0a8)=>{const _0x1fae6c=_0x15a0a8[_0x15a0a8['length']-0x1];_0x1fae6c&&_0x1fae6c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45aa79['model']['change'](()=>{let _0x4bcc88=_0x45aa79['model']['insertContent'](_0x15a0a8[0x0],_0x15a0a8[0x1],_0x15a0a8[0x2],{'forceDefaultExecution':!0x0});if(!_0x4bcc88)return;_0x4d924e['return']=_0x4bcc88['clone']();const _0x3236d0=_0x4bcc88['end']['nodeBefore'],_0x530109=_0x45aa79['model']['schema'];_0x3236d0&&_0x530109['isBlock'](_0x3236d0)&&!_0x530109['isObject'](_0x3236d0)&&(_0x4bcc88=_0x45aa79['model']['createRange'](_0x4bcc88['start'],_0x45aa79['model']['createPositionAt'](_0x3236d0,'end'))),this['markInsertion'](_0x4bcc88);}),_0x4d924e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x255f03=new pt(_0x45aa79,this['_suggestions']);_0x45aa79['commands']['add']('acceptSuggestion',_0x255f03),this['enableCommand']('acceptSuggestion');const _0x1c3bab=new Lt(_0x45aa79,this['_suggestions']);_0x45aa79['commands']['add']('discardSuggestion',_0x1c3bab),this['enableCommand']('discardSuggestion'),_0x45aa79['commands']['add']('acceptAllSuggestions',new yt(_0x45aa79,_0x255f03,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45aa79['commands']['add']('discardAllSuggestions',new yt(_0x45aa79,_0x1c3bab,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45aa79['commands']['add']('acceptSelectedSuggestions',new Nt(_0x45aa79,_0x255f03,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45aa79['commands']['add']('discardSelectedSuggestions',new Nt(_0x45aa79,_0x1c3bab,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4006f2=_0x45aa79['plugins']['get'](_0x2a3df3);this['listenTo'](_0x4006f2,'addComment',(_0x4c546f,{threadId:_0x3df41f})=>{const _0x2dcece=this['_suggestions']['get'](_0x3df41f);_0x2dcece&&_0x2dcece['commentThread']&&0x1===_0x2dcece['commentThread']['length']&&this['_updateSuggestionData'](_0x3df41f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4006f2,'removeComment',(_0xbdf3a7,{threadId:_0x3e55a9})=>{const _0x5a5250=this['_suggestions']['get'](_0x3e55a9);_0x5a5250&&_0x5a5250['commentThread']&&!_0x5a5250['commentThread']['length']&&this['_updateSuggestionData'](_0x3e55a9,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x1f68ea){const _0x315424='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x3cb616=0x79140,_0x2bc939=window['Date']['now'](),_0x5d6571=_0x1f68ea['editor'],_0x4a3e19=new window['Promise'](_0x52edf1=>{_0x5d6571['once']('ready',_0x52edf1);}),_0x1fd99d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x15a68c=_0x5d6571['config']['get']('licenseKey');async function _0x14aaae(){let _0xdbbbcd,_0x2a9ed4=null,_0x5c7bbd=null;try{return'GPL'==_0x15a68c?'NotAllowed':(_0xdbbbcd=_0x18b36d(),_0xdbbbcd?(_0xdbbbcd['usageEndpoint']&&(_0x5c7bbd=_0x3d682f(_0xdbbbcd['usageEndpoint'],_0xdbbbcd['jti'])),await _0x4d0838()?_0x4bfb32()?_0x30d08a()?'Expired':_0x5e914a()?('evaluation'==_0xdbbbcd['licenseType']&&(_0x2a9ed4=_0x496d42('EvaluationLimit')),await _0x51211a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x30d08a(){const _0xbef001=['evaluation','trial']['includes'](_0xdbbbcd['licenseType'])?_0x2bc939/0x3e8:0xe10*_0x3cb616;return _0xdbbbcd['exp']<_0xbef001;}function _0x4bfb32(){const _0x459a22=_0xdbbbcd['features'];if(!_0x459a22)return!0x1;if(_0x459a22['includes']('*'))return!0x0;if(_0x459a22['includes']('TC'))return!0x0;if(_0x459a22['includes']('RTC')){if(_0x2d3fa4())return!0x0;if(_0x433bd6()||_0x4cdb6b())return!0x0;}return!0x1;}function _0x5e914a(){const _0x37a7a3=_0xdbbbcd['licensedHosts'];if(!_0x37a7a3||0x0==_0x37a7a3['length'])return!0x0;const {hostname:_0x14f780}=new URL(window['location']['href']);if(_0x37a7a3['includes'](_0x14f780))return!0x0;const _0x25bca4=_0x14f780['split']('.');return _0x37a7a3['filter'](_0x3fda6b=>_0x3fda6b['includes']('*'))['map'](_0x5a98be=>_0x5a98be['split']('.'))['filter'](_0x5aedda=>_0x5aedda['length']<=_0x25bca4['length'])['map'](_0x1960c0=>Array(_0x25bca4['length']-_0x1960c0['length'])['fill']('*'===_0x1960c0[0x0]?'*':'')['concat'](_0x1960c0))['some'](_0x1f9039=>_0x25bca4['every']((_0x50b1d5,_0x523ccd)=>_0x1f9039[_0x523ccd]===_0x50b1d5||'*'===_0x1f9039[_0x523ccd]));}function _0x51211a(){return _0x2a9ed4&&_0x5c7bbd?new window['Promise']((_0x330844,_0x55daab)=>{_0x2a9ed4['then'](_0x330844,_0x55daab),_0x5c7bbd['then'](_0x10b2bf=>{'Valid'!=_0x10b2bf&&_0x330844(_0x10b2bf);},_0x55daab);}):_0x2a9ed4||_0x5c7bbd||'Valid';}}function _0x3d682f(_0x1a61dc,_0x3e0d27){return new window['Promise'](_0x2dbdbe=>{if(_0x67f663())return _0x2dbdbe('Valid');_0x56c50d(),_0x5d6571['decorate']('_sendUsageRequest');let _0x463ca9=!0x1;const _0x5e0625=_0x3223bf();function _0x3188c2(_0x31999a){return!!_0x31999a&&('object'==typeof _0x31999a||'function'==typeof _0x31999a)&&'function'==typeof _0x31999a['then']&&'function'==typeof _0x31999a['catch'];}function _0x157af9(_0x735990){_0x52120a(_0x735990)['then'](_0x44d381=>_0x44d381&&'ok'==_0x44d381['status']?_0x316d99(_0x239aa6(_0x5e0625+_0x3e0d27))!=_0x44d381['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x6cd46e=>(_0x18b68e(),_0x6cd46e),()=>{const _0x4100df=_0x44b072();return null==_0x4100df?(_0x18b68e(),'Valid'):_0x2bc939-_0x4100df>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2dbdbe)['catch'](()=>{_0x2dbdbe('UsageLimit');});const _0x49e810=0x36ee80;function _0x18b68e(){const _0x3f0ed0='llct-'+_0x316d99(_0x239aa6(_0x1a61dc)),_0x3b9c11=_0xa8b077(_0x316d99(window['Math']['ceil'](_0x2bc939/_0x49e810)));window['localStorage']['setItem'](_0x3f0ed0,_0x3b9c11);}function _0x44b072(){const _0x3e846d='llct-'+_0x316d99(_0x239aa6(_0x1a61dc)),_0x34550f=window['localStorage']['getItem'](_0x3e846d);return _0x34550f?window['parseInt'](_0xa8b077(_0x34550f),0x10)*_0x49e810:null;}function _0x52120a(_0x3f3214){return new window['Promise']((_0x242925,_0x1847c2)=>{_0x3f3214['then'](_0x242925,_0x1847c2),window['setTimeout'](_0x1847c2,0x1d4c0);});}}_0x5d6571['on']('_sendUsageRequest',(_0x22a3e7,_0xec73fa)=>{if(_0xec73fa[0x0]!=_0x1a61dc)return _0x2dbdbe('UsageLimit');_0xec73fa[0x1]={..._0xec73fa[0x1],'requestId':_0x5e0625};},{'priority':'high'}),_0x5d6571['on']('_sendUsageRequest',_0xcc2ff1=>{_0x3188c2(_0xcc2ff1['return'])&&(_0x463ca9=!0x0,_0x157af9(_0xcc2ff1['return']));},{'priority':'low'}),_0x4a3e19['then'](()=>{_0x463ca9||_0x2dbdbe('UsageLimit');});});function _0x67f663(){return'auto'==_0x5d6571['editing']['view']['_overlayModeHint'];}function _0x56c50d(){_0x5d6571['editing']['view']['_overlayModeHint']='auto';}}function _0x496d42(_0xdcf2f5){const _0x4cf968=[new window['Promise'](_0x257cf2=>setTimeout(_0x257cf2,0x93ecc)),_0x4a3e19['then'](()=>new window['Promise'](_0x4abf2f=>{let _0x5ce35a=0x0;_0x5d6571['model']['on']('applyOperation',(_0xee9604,_0x274e03)=>{_0x274e03[0x0]['isDocumentOperation']&&_0x5ce35a++,0x5e8==_0x5ce35a&&(_0x4abf2f(),_0xee9604['off']());});}))];return window['Promise']['race'](_0x4cf968)['then'](()=>_0xdcf2f5);}async function _0x5e0daa(){await _0x4a3e19,_0x5d6571['model']['change']=_0x4fd544,_0x5d6571['model']['enqueueChange']=_0x4fd544,_0x5d6571['enableReadOnlyMode']('model');}function _0x2d3fa4(){return _0x47f7fb('WebSocketGateway')&&'connected'==_0x3be9b2('WebSocketGateway')['state'];}function _0x433bd6(){return _0x47f7fb('RevisionViewerIntegration');}function _0x4cdb6b(){return _0x47f7fb('TrackChangesDataGetter');}function _0x5b6d2(_0x262a0f){const _0x59a1bc=_0x3fcbae();_0x5d6571[_0x59a1bc]='trackChangesLicenseKey'+_0x262a0f,'Valid'!=_0x262a0f&&_0x5e0daa();}function _0x3fcbae(){const _0x1667ff=window['String'](window['performance']['now']())['replace']('.','');let _0x1fa192='R';for(let _0x4fe859=0x0;_0x4fe859<_0x1667ff['length'];_0x4fe859+=0x2){let _0x6e4381=window['parseInt'](_0x1667ff['substring'](_0x4fe859,_0x4fe859+0x2));_0x6e4381>=0x3e&&(_0x6e4381-=0x3e),_0x1fa192+=_0x315424[_0x6e4381];}return _0x1fa192;}function _0x18b36d(){const _0x47ae2e=_0x15a68c['split']('.');if(0x3!=_0x47ae2e['length'])return null;return _0x3c3ad5(_0x47ae2e[0x1]);function _0x3c3ad5(_0x37dfd6){const _0x469292=_0x117d4b(_0x37dfd6);return _0x469292&&_0x2bdaf0()?_0x469292:null;function _0x2bdaf0(){const _0xce9c12=_0x469292['jti'],_0x17d0c3=window['parseInt'](_0xce9c12['substring'](_0xce9c12['length']-0x8),0x10),_0xdb8cf7={..._0x469292,'jti':_0xce9c12['substring'](0x0,_0xce9c12['length']-0x8)};return delete _0xdb8cf7['vc'],_0x239aa6(_0xdb8cf7)==_0x17d0c3;}}}async function _0x4d0838(){let _0x4424df=!0x0;try{const [_0x2e442f,_0x100fb8,_0x5831b9]=_0x15a68c['split']('.');return _0x4ce879(_0x2e442f),await _0x55bd12(_0x2e442f,_0x100fb8,_0x5831b9),_0x4424df;}catch{return!0x1;}function _0x4ce879(_0x317f33){const _0x2badd0=_0x117d4b(_0x317f33);_0x2badd0&&'ES256'==_0x2badd0['alg']||(_0x4424df=!0x1);}async function _0x55bd12(_0x5789fb,_0x2dce8e,_0x2bf064){const _0x294724=window['Uint8Array']['from'](_0x56bedf(_0x2bf064),_0x344ec1=>_0x344ec1['charCodeAt'](0x0)),_0xe41609=new window['TextEncoder']()['encode'](_0x5789fb+'.'+_0x2dce8e),_0x5b3b32=window['crypto']['subtle'];if(!_0x5b3b32)return;const _0x5b41f5=await _0x5b3b32['importKey']('jwk',_0x1fd99d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5b3b32['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5b41f5,_0x294724,_0xe41609)||(_0x4424df=!0x1);}}function _0x117d4b(_0x2031e8){return _0x2031e8['startsWith']('ey')?JSON['parse'](_0x56bedf(_0x2031e8)):null;}function _0x56bedf(_0x3f2829){return window['atob'](_0x3f2829['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x239aa6(_0x41a9a1){let _0xd02868=0x1505;function _0x4c6ee0(_0x5e50c6){for(let _0x4327c3=0x0;_0x4327c3<_0x5e50c6['length'];_0x4327c3++){const _0x52bcd7=_0x5e50c6['charCodeAt'](_0x4327c3);_0xd02868=(_0xd02868<<0x5)+_0xd02868+_0x52bcd7,_0xd02868&=_0xd02868;}}function _0x296b44(_0x2571ac){Array['isArray'](_0x2571ac)?_0x2571ac['forEach'](_0x296b44):_0x2571ac&&'object'==typeof _0x2571ac?Object['entries'](_0x2571ac)['sort']()['forEach'](([_0x289bd0,_0x3646f1])=>{_0x4c6ee0(_0x289bd0),_0x296b44(_0x3646f1);}):_0x4c6ee0(window['String'](_0x2571ac));}return _0x296b44(_0x41a9a1),_0xd02868>>>0x0;}function _0x316d99(_0x157d8b){return _0x157d8b['toString'](0x10)['padStart'](0x8,'0');}function _0xa8b077(_0x227e59){return _0x227e59['split']('')['reverse']()['join']('');}function _0x47f7fb(_0x40a32a){return _0x5d6571['plugins']['has'](_0x40a32a);}function _0x3be9b2(_0x509bba){return _0x5d6571['plugins']['get'](_0x509bba);}function _0x4fd544(){}_0x5b6d2(await _0x14aaae());}(this);}set adapter(_0x5d2c03){if(this['_adapter'])throw new _0x531c91('track-changes-adapter-already-set',this);this['_adapter']=_0x5d2c03;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x4cc085=!0x1,toJSON:_0x2bc810=!0x1}={}){const _0x124d91=[];for(const _0x3918c5 of this['_suggestions']['values']())_0x4cc085&&!_0x3918c5['isInContent']||_0x124d91['push'](_0x3918c5);return _0x2bc810?_0x124d91['map'](_0x1e88b9=>_0x1e88b9['toJSON']()):_0x124d91;}getSuggestion(_0x3473a2){const _0x72dba=this['_suggestions']['get'](_0x3473a2);if(!_0x72dba)throw new _0x531c91('track-changes-suggestion-not-found',this);return _0x72dba;}hasSuggestion(_0x188cee){return this['_suggestions']['has'](_0x188cee);}addSuggestionData(_0x816906){const {authorId:_0x505f51,id:_0x30b5f4,originalSuggestionId:_0x3450ed,attributes:_0x5c4086}=_0x816906,[_0x55c62b,_0x32e9db]=_0x816906['type']['split'](':'),_0x432dac=this['_suggestions']['get'](_0x30b5f4)||this['_createSuggestion'](_0x55c62b,_0x32e9db,_0x30b5f4,_0x505f51,_0x5c4086,_0x3450ed);if(this['_addThreadToSuggestion'](_0x432dac),this['_checkSuggestionCorrectness'](_0x432dac,_0x55c62b,_0x32e9db||null,_0x505f51),_0x432dac['createdAt']=_0x816906['createdAt'],_0x432dac['_isDataLoaded']=!0x0,_0x5c4086&&_0x5c4086['@external']){const _0x1c57ab=_0x5c4086['@external'],_0x873b13=this['_getExternalAuthor'](_0x1c57ab['authorName']);_0x432dac['authoredAt']=_0x1c57ab['createdAt'],_0x432dac['author']=_0x873b13;}else _0x432dac['authoredAt']=_0x816906['createdAt'];switch(_0x816906['data']&&(_0x432dac['data']=_0x816906['data']),_0x816906['attributes']&&(_0x432dac['attributes']=_0x816906['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x432dac['_saved']=!0x0),this['_suggestionState']['get'](_0x432dac)){case'notReady':this['_suggestionState']['set'](_0x432dac,'dataReady');break;case'markerReady':_0x432dac['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x432dac])),this['_refreshSuggestionsChain'](new Set([_0x432dac])),this['_suggestionState']['set'](_0x432dac,'ready'),this['fire']('suggestionLoaded',_0x432dac)):this['_suggestionState']['set'](_0x432dac,'removed');}return _0x432dac;}acceptSuggestion(_0x45ac77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5743a9 of _0x45ac77['getAllAdjacentSuggestions']())_0x5743a9['accept']();});});}discardSuggestion(_0x3c4f3c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10eb74 of _0x3c4f3c['getAllAdjacentSuggestions']())_0x10eb74['discard']();});});}['enableCommand'](_0x37c437,_0x54e953){const _0x4b4a39=this['editor']['commands']['get'](_0x37c437);if(!_0x4b4a39)throw new _0x531c91('track-changes-command-not-found',this,{'commandName':_0x37c437});if(this['_enabledCommands']['has'](_0x4b4a39))throw new _0x531c91('track-changes-enable-command-twice',this,{'commandName':_0x37c437});this['_enabledCommands']['add'](_0x4b4a39),_0x54e953&&_0x4b4a39['on']('execute',(_0x280fec,_0x1e5c71)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1e5c71['length']>0x0&&_0x1e5c71[_0x1e5c71['length']-0x1]&&_0x1e5c71[_0x1e5c71['length']-0x1]['forceDefaultExecution']?_0x1e5c71['pop']():(_0x280fec['return']=_0x54e953((..._0x50bd15)=>_0x4b4a39['execute'](..._0x50bd15,{'forceDefaultExecution':!0x0}),..._0x1e5c71),_0x280fec['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x9b0872){let _0x62cfff,_0x57b9ec;const _0x20371d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x62cfff=_0x9b0872();}catch(_0x3d5d3c){_0x57b9ec=_0x3d5d3c;}return _0x20371d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x57b9ec&&_0x531c91['rethrowUnexpectedError'](_0x57b9ec,this),_0x62cfff;}markInsertion(_0x437551,_0x475baf=null,_0x3e1ed2={}){if(_0x437551['isCollapsed'])return null;const _0x130a7c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e1ed2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42a99d,meta:_0x10ae2}of this['_findSuggestions'](_0x437551,'insertion'))if(_0x10ae2['isOwn']){if(!_0x10ae2['isNextTo']){if(_0x10ae2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x42a99d,_0x3e1ed2))continue;return _0x42a99d;}if(pn(_0x42a99d,_0x3e1ed2))return _0x42a99d;this['_breakSuggestionMarker'](_0x42a99d,_0x437551['start'],_0x437551['end']);break;}if(_0x475baf==_0x42a99d['subType']&&pn(_0x42a99d,_0x3e1ed2)){const _0x4c8c36=_0x42a99d['getFirstRange']();return _0x4c8c36['start']['isEqual'](_0x437551['end'])?this['_setSuggestionRange'](_0x42a99d,this['_model']['createRange'](_0x437551['start'],_0x4c8c36['end'])):this['_setSuggestionRange'](_0x42a99d,this['_model']['createRange'](_0x4c8c36['start'],_0x437551['end'])),_0x42a99d;}}const _0x22f7b1=_0x3223bf(),_0x48096c=_0x130a7c['id'],_0x2eea4f=_0x475baf?'insertion:'+_0x475baf:'insertion',_0xecf27=this['_setSuggestionData']({'id':_0x22f7b1,'type':_0x2eea4f,'createdAt':new Date(),'authorId':_0x48096c,'attributes':_0x3e1ed2});return this['_addSuggestionMarker'](_0x2eea4f,_0x22f7b1,_0x48096c,_0x437551),_0xecf27;}markMultiRangeInsertion(_0x16a790,_0x31356a='multi',_0x2a8b67={}){const _0x25e81e=this['editor']['plugins']['get']('Users')['me'],_0xe2491=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31356a,'join');this['_trackingSessionId']&&(_0x2a8b67['trackingSessionId']=this['_trackingSessionId']);for(const _0x3d858d of this['getSuggestions']())if(_0x3d858d['author']['id']==_0x25e81e['id']&&'insertion'==_0x3d858d['type']&&_0x3d858d['subType']==_0x31356a&&pn(_0x3d858d,_0x2a8b67)&&(_0xe2491(_0x3d858d['getRanges'](),_0x16a790)||_0xe2491(_0x16a790,_0x3d858d['getRanges']()))){for(const _0x42d895 of _0x16a790)_0x3d858d['addRange'](_0x42d895);return _0x3d858d;}for(const {suggestion:_0x4bc00b,meta:_0x29f985}of this['_findSuggestions'](_0x16a790,'insertion')){if(!_0x29f985['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x29f985['containsRangeInObject'])continue;if(!pn(_0x4bc00b,_0x2a8b67))continue;let _0x1c3508=!0x0;for(const _0x439bcf of _0x4bc00b['getRanges']())for(const _0x36665b of _0x16a790)if(!_0x439bcf['containsRange'](_0x36665b)){_0x1c3508=!0x1;break;}if(_0x1c3508)return _0x4bc00b;}const _0x1f1822=_0x3223bf(),_0x46d66e=_0x25e81e['id'],_0x15395d='insertion:'+_0x31356a,_0x59bbbb=this['_setSuggestionData']({'id':_0x1f1822,'type':_0x15395d,'createdAt':new Date(),'authorId':_0x46d66e,'attributes':_0x2a8b67});for(const _0x643f0e of _0x16a790)this['_addSuggestionMarker'](_0x15395d,_0x1f1822,_0x46d66e,_0x643f0e,Mt['getMultiRangeId']());return _0x59bbbb;}markInlineFormat(_0x156473,_0x12ff32,_0x485737=null,_0x27a199={}){if(_0x485737=_0x485737||dn(_0x12ff32),_0x156473['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x27a199['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d18f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x485737,'accept');return this['forceDefaultExecution'](()=>_0x1d18f2([_0x156473],_0x12ff32,_0x27a199)),null;}const _0x3196fd=this['editor']['plugins']['get']('Users')['me'],_0x5956f8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xc79d9,meta:_0x42a8d4}of this['_findSuggestions'](_0x156473,'insertion'))_0x42a8d4['isOwn']&&!_0x42a8d4['isInsideObject']&&_0x5956f8['push'](..._0xc79d9['getRanges']());}const _0x5cbd23=function(_0x25f4ed,_0x3f4627){const _0x2e7f2c=[];for(const _0x4face0 of _0x3f4627){const _0x30a88e=_0x25f4ed['getIntersection'](_0x4face0);_0x30a88e&&_0x2e7f2c['push'](_0x30a88e);}return _0x2e7f2c;}(_0x156473,_0x5956f8),_0x49b20f=function(_0x14b893,_0x54f66d){const _0x42fde0=[_0x14b893];for(const _0x2bf9da of _0x54f66d){let _0x34d855=0x0;for(;_0x34d855<_0x42fde0['length'];){const _0x11c755=_0x42fde0[_0x34d855]['getDifference'](_0x2bf9da);_0x42fde0['splice'](_0x34d855,0x1,..._0x11c755),_0x34d855+=_0x11c755['length'];}}return _0x42fde0;}(_0x156473,_0x5956f8);_0x5cbd23['length']&&this['_model']['change'](()=>{for(const _0x1ee73a of _0x5cbd23){const _0x4d8a02=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x485737,'accept');this['forceDefaultExecution'](()=>_0x4d8a02([_0x1ee73a],_0x12ff32,_0x27a199));}});for(const _0x539277 of _0x49b20f){let _0x56c551=null,_0x76fb9b=_0x539277['start'],_0x2e9668=_0x539277['end'];for(const {suggestion:_0x29cd28,meta:_0x24ae22}of this['_findSuggestions'](_0x539277,'formatInline')){if(!_0x24ae22['isOwn'])continue;if(_0x29cd28['subType']!=_0x485737)continue;if(!pn(_0x29cd28,_0x27a199))continue;const _0x24eaa0=_0x29cd28['getFirstRange']();if(_0x24eaa0['containsRange'](_0x539277,!0x0))return null;_0x76fb9b=_0x76fb9b['isBefore'](_0x24eaa0['start'])?_0x76fb9b:_0x24eaa0['start'],_0x2e9668=_0x2e9668['isAfter'](_0x24eaa0['end'])?_0x2e9668:_0x24eaa0['end'],_0x56c551?_0x24eaa0['start']['isBefore'](_0x56c551['getFirstRange']()['start'])?(_0x56c551['removeMarkers'](),_0x56c551=_0x29cd28):_0x29cd28['removeMarkers']():_0x56c551=_0x29cd28;}const _0x5304ef=this['_model']['createRange'](_0x76fb9b,_0x2e9668);if(_0x56c551)this['_setSuggestionRange'](_0x56c551,_0x5304ef);else{const _0x6cc5f2=_0x3223bf(),_0x33be04=_0x3196fd['id'];this['_setSuggestionData']({'id':_0x6cc5f2,'type':'formatInline:'+_0x485737,'data':_0x12ff32,'createdAt':new Date(),'authorId':_0x33be04,'attributes':_0x27a199}),this['_addSuggestionMarker']('formatInline:'+_0x485737,_0x6cc5f2,_0x33be04,_0x5304ef);}}return null;}markBlockFormat(_0x1bd0a7,_0x59162c,_0x14d7eb=[],_0x48264b=null,_0x4c2e95={}){_0x59162c['formatGroupId']||(_0x59162c['formatGroupId']=_0x59162c['commandName']),_0x59162c['multipleBlocks']=_0x1bd0a7['is']('range'),_0x48264b=_0x48264b||dn(_0x59162c);const _0x3d9c36=_0x14d7eb['map'](_0x59e29b=>En(_0x59e29b,this['_model'])),_0x5c7ef9=_0x1bd0a7['is']('range')?_0x1bd0a7:En(_0x1bd0a7,this['_model']);if(this['_trackingSessionId']&&(_0x4c2e95['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x574a6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48264b,'accept');return this['forceDefaultExecution'](()=>_0x574a6c([_0x5c7ef9],_0x59162c,_0x4c2e95)),null;}_0x3d9c36['push'](_0x5c7ef9);let _0x3681b7=!0x0;for(const _0x328edd of _0x3d9c36)if(!this['_rangeIsInLocalUserInsertion'](_0x328edd)){_0x3681b7=!0x1;break;}if(_0x3681b7&&'always'!==this['_trackFormatChanges']){const _0x466b6e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48264b,'accept');return this['forceDefaultExecution'](()=>_0x466b6e([_0x5c7ef9],_0x59162c,_0x4c2e95)),null;}let _0x33032f=null,_0x2265a2=_0x5c7ef9['start'],_0x281ef9=_0x5c7ef9['end'];for(const {suggestion:_0x99e35,meta:_0x264143}of this['_findSuggestions'](_0x5c7ef9,'formatBlock')){if(!_0x264143['isOwn'])continue;if(_0x264143['isNextTo']||_0x264143['containsRangeInObject']||_0x264143['isInsideObject'])continue;if(_0x99e35['data']['formatGroupId']!=_0x59162c['formatGroupId'])continue;if(!pn(_0x99e35,_0x4c2e95))continue;const _0x3c96e4=_0x99e35['getFirstRange']();if(_0x99e35['subType']==_0x48264b){if(_0x3c96e4['containsRange'](_0x5c7ef9,!0x0))return null;_0x2265a2=_0x2265a2['isBefore'](_0x3c96e4['start'])?_0x2265a2:_0x3c96e4['start'],_0x281ef9=_0x281ef9['isAfter'](_0x3c96e4['end'])?_0x281ef9:_0x3c96e4['end'],_0x33032f?_0x3c96e4['start']['isBefore'](_0x33032f['getFirstRange']()['start'])?(_0x33032f['removeMarkers'](),_0x33032f=_0x99e35):_0x99e35['removeMarkers']():_0x33032f=_0x99e35;}else{const _0x3b19b2=_0x5c7ef9['getIntersection'](_0x3c96e4);this['_cutOutSuggestionMarker'](_0x99e35,_0x3b19b2);}}const _0x422d51=this['editor']['plugins']['get']('Users')['me'],_0x1c0a53=_0x3223bf(),_0x2a22b2=_0x422d51['id'];if(_0x33032f)return this['_setSuggestionRange'](_0x33032f,this['_model']['createRange'](_0x2265a2,_0x281ef9)),_0x33032f;{const _0x485913=this['_setSuggestionData']({'id':_0x1c0a53,'type':'formatBlock:'+_0x48264b,'data':_0x59162c,'createdAt':new Date(),'authorId':_0x2a22b2,'attributes':_0x4c2e95});return this['_addSuggestionMarker']('formatBlock:'+_0x48264b,_0x1c0a53,_0x2a22b2,this['_model']['createRange'](_0x2265a2,_0x281ef9)),_0x485913;}}markMultiRangeBlockFormat(_0x3eca49,_0x110db9,_0x566547=[],_0x721926=null,_0x2817d4={}){_0x110db9['formatGroupId']||(_0x110db9['formatGroupId']=_0x110db9['commandName']);const _0x38bc85=_0x3eca49[0x0];_0x110db9['multipleBlocks']=_0x38bc85['is']('range'),_0x721926=_0x721926||dn(_0x110db9);const _0x3905e0=_0x566547['map'](_0x33ecac=>En(_0x33ecac,this['_model'])),_0x4d017c=_0x38bc85['is']('range')?_0x3eca49:_0x3eca49['map'](_0x310a65=>En(_0x310a65,this['_model']));if(this['_trackingSessionId']&&(_0x2817d4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22c9c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x721926,'accept');return this['forceDefaultExecution'](()=>_0x22c9c6(_0x4d017c,_0x110db9,_0x2817d4)),null;}_0x3905e0['push'](..._0x4d017c);let _0x49f836=!0x0;for(const _0x47b393 of _0x3905e0)if(!this['_rangeIsInLocalUserInsertion'](_0x47b393)){_0x49f836=!0x1;break;}if(_0x49f836&&'always'!==this['_trackFormatChanges']){const _0x440bd9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x721926,'accept');return this['forceDefaultExecution'](()=>_0x440bd9(_0x4d017c,_0x110db9,_0x2817d4)),null;}const _0x46f5d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d3a0f of this['getSuggestions']()){const _0x1a9a5e=_0x3d3a0f['data'];if(_0x3d3a0f['author']['id']!=_0x46f5d3['id'])continue;if('formatBlock'!=_0x3d3a0f['type']||_0x1a9a5e['formatGroupId']!=_0x110db9['formatGroupId'])continue;if(!pn(_0x3d3a0f,_0x2817d4))continue;const _0x19862e=_0x3d3a0f['subType']==_0x721926;for(let _0x3757bf=0x0;_0x3757bf<_0x4d017c['length'];_0x3757bf++){const _0x4b8847=_0x4d017c[_0x3757bf];for(const _0x49f1bb of _0x3d3a0f['getMarkers']()){const _0x448ba8=_0x49f1bb['getRange']();if(_0x4b8847['isEqual'](_0x448ba8)){_0x19862e?(_0x4d017c['splice'](_0x3757bf,0x1),_0x3757bf--):_0x3d3a0f['removeMarker'](_0x49f1bb['name']);break;}}}}if(0x0==_0x4d017c['length'])return null;const _0x30e3e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x721926,'join');for(const _0x1e1e01 of this['getSuggestions']()){const _0x556eb0=_0x1e1e01['data'];if(_0x1e1e01['author']['id']==_0x46f5d3['id']&&('formatBlock'==_0x1e1e01['type']&&_0x556eb0['formatGroupId']==_0x110db9['formatGroupId']&&_0x1e1e01['subType']==_0x721926&&pn(_0x1e1e01,_0x2817d4)&&(_0x30e3e0(_0x1e1e01['getRanges'](),_0x4d017c)||_0x30e3e0(_0x4d017c,_0x1e1e01['getRanges']())))){for(const _0x23bb15 of _0x4d017c)_0x1e1e01['addRange'](_0x23bb15);return _0x1e1e01;}}const _0x38b3d7=_0x3223bf(),_0x5a0547=_0x46f5d3['id'],_0x1cbee7='formatBlock:'+_0x721926,_0x4c70ef=this['_setSuggestionData']({'id':_0x38b3d7,'type':_0x1cbee7,'data':_0x110db9,'createdAt':new Date(),'authorId':_0x5a0547,'attributes':_0x2817d4});for(const _0x4f7b3e of _0x4d017c)this['_addSuggestionMarker'](_0x1cbee7,_0x38b3d7,_0x5a0547,_0x4f7b3e,Mt['getMultiRangeId']());return _0x4c70ef;}markDeletion(_0x1f2329,_0x3f17fc=null,_0x22f3ae={}){if(_0x1f2329['isCollapsed'])return null;const _0x3bc816=this['editor']['plugins']['get']('Users')['me'],_0x1f4c95=new ot(_0x1f2329['start'],_0x1f2329['end']);this['_trackingSessionId']&&(_0x22f3ae['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xfbfc48,meta:_0xbe6104}of this['_findSuggestions'](_0x1f4c95,'insertion'))if(_0xbe6104['isOwn']&&!_0xbe6104['isNextTo']){if(_0xfbfc48['isMultiRange']){const _0x11566a=_0xfbfc48['getRanges']()['filter'](_0x23e5cd=>'$graveyard'!=_0x23e5cd['root']['rootName']);if(_0x11566a['every'](_0x152738=>_0x1f4c95['containsRange'](_0x152738,!0x0))&&_0xfbfc48['discard'](),_0x11566a['some'](_0xce4f=>_0xce4f['containsRange'](_0x1f4c95,!0x0))){const _0x51fdf4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f17fc,'accept');return this['forceDefaultExecution'](()=>_0x51fdf4([_0x1f4c95],null,_0x22f3ae)),null;}}else{const _0x3900d4=_0x1f4c95['getIntersection'](_0xfbfc48['getFirstRange']());null!==_0x3900d4&&_0xfbfc48['_onDiscard']([_0x3900d4],null,_0x22f3ae);}}if(_0x1f4c95['detach'](),_0x1f4c95['isCollapsed']||'$graveyard'==_0x1f4c95['root']['rootName'])return null;let _0x147ff5=null,_0x57e929=_0x1f4c95['start'],_0xda429a=_0x1f4c95['end'];const _0xf9e868=this['_findSuggestions'](_0x1f4c95,'deletion');for(const {suggestion:_0x30d5d2,meta:_0x44f0a9}of _0xf9e868){const _0x40402f=this['_model']['createRange'](_0x57e929,_0xda429a);if(_0x44f0a9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44f0a9['containsRangeInObject']&&!_0x44f0a9['isInsideObject'])){if(_0x30d5d2['isMultiRange']){if(!pn(_0x30d5d2,_0x22f3ae))continue;let _0x55a833=!0x0;for(const _0x3b0ff5 of _0x30d5d2['getRanges']()){if(_0x3b0ff5['containsRange'](_0x40402f,!0x0))return _0x30d5d2;_0x40402f['containsRange'](_0x3b0ff5)||(_0x55a833=!0x1);}_0x55a833&&_0x30d5d2['discard']();}else{const _0xa7b1de=_0x30d5d2['getFirstRange']();if(_0xa7b1de['containsRange'](_0x40402f,!0x0))return _0x30d5d2;if(!pn(_0x30d5d2,_0x22f3ae)){_0x40402f['containsRange'](_0xa7b1de)?_0x30d5d2['removeMarkers']():_0xa7b1de['containsPosition'](_0x57e929)?_0x57e929=_0xa7b1de['end']:_0xa7b1de['containsPosition'](_0xda429a)&&(_0xda429a=_0xa7b1de['start']);continue;}_0x57e929=_0x57e929['isBefore'](_0xa7b1de['start'])?_0x57e929:_0xa7b1de['start'],_0xda429a=_0xda429a['isAfter'](_0xa7b1de['end'])?_0xda429a:_0xa7b1de['end'],_0x22f3ae=Object['assign']({},_0x30d5d2['attributes']),_0x147ff5?_0xa7b1de['start']['isBefore'](_0x147ff5['getFirstRange']()['start'])?(_0x147ff5['removeMarkers'](),_0x147ff5=_0x30d5d2):_0x30d5d2['removeMarkers']():_0x147ff5=_0x30d5d2;}}}if(_0x147ff5)return this['_setSuggestionRange'](_0x147ff5,this['_model']['createRange'](_0x57e929,_0xda429a)),_0x147ff5;{const _0x5008a2=_0x3223bf(),_0x5d1c00=this['_model']['createRange'](_0x57e929,_0xda429a),_0x396eaf=_0x3bc816['id'],_0x4a0293=_0x3f17fc?'deletion:'+_0x3f17fc:'deletion',_0x1e5396=this['_setSuggestionData']({'id':_0x5008a2,'type':_0x4a0293,'createdAt':new Date(),'authorId':_0x396eaf,'attributes':_0x22f3ae});return this['_addSuggestionMarker'](_0x4a0293,_0x5008a2,_0x396eaf,_0x5d1c00),_0x1e5396;}}markMultiRangeDeletion(_0x56fec3,_0x17c027='multi',_0x28789d={}){const _0x35077b=this['editor']['plugins']['get']('Users')['me'],_0x21f43d=_0x56fec3['map'](_0x592d77=>new ot(_0x592d77['start'],_0x592d77['end'])),_0x2f353c=new Set();this['_trackingSessionId']&&(_0x28789d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4c45f8,meta:_0xd9f0bb}of this['_findSuggestions'](_0x21f43d,'insertion'))_0xd9f0bb['isOwn']&&!_0xd9f0bb['isNextTo']&&_0x2f353c['add'](_0x4c45f8);for(const _0x16246b of _0x2f353c)if(_0x16246b['isMultiRange']){const _0x12c490=_0x16246b['getRanges']();if(_0x16246b['attributes']&&_0x16246b['attributes']['skipNestingCheck']||_0x12c490['every'](_0x26d40b=>_0x21f43d['some'](_0x2d5790=>_0x2d5790['containsRange'](_0x26d40b,!0x0)))&&_0x16246b['discard'](),_0x21f43d['every'](_0x2b3d4a=>_0x12c490['some'](_0x559c10=>_0x559c10['containsRange'](_0x2b3d4a,!0x0)))){const _0x2c5fe1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17c027,'accept');return this['forceDefaultExecution'](()=>_0x2c5fe1(_0x56fec3,null,_0x28789d)),null;}}else{const _0x1b31b3=_0x16246b['getFirstRange']();if(_0x21f43d['some'](_0xfb4eda=>_0xfb4eda['containsRange'](_0x1b31b3,!0x0))&&_0x16246b['discard'](),_0x21f43d['every'](_0x243733=>_0x1b31b3['containsRange'](_0x243733,!0x0))){const _0x133eae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17c027,'accept');return this['forceDefaultExecution'](()=>_0x133eae(_0x21f43d,null,_0x28789d)),null;}}const _0x51b2d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17c027,'join');let _0x1b88cc=null;for(const _0x2ca825 of this['getSuggestions']())if(_0x2ca825['author']['id']==_0x35077b['id']&&_0x2ca825['isInContent']&&'deletion'==_0x2ca825['type']&&_0x2ca825['subType']==_0x17c027&&pn(_0x2ca825,_0x28789d)&&(_0x51b2d6(_0x2ca825['getRanges'](),_0x21f43d)||_0x51b2d6(_0x21f43d,_0x2ca825['getRanges']()))){if(_0x1b88cc){if(_0x2ca825['commentThread']&&_0x2ca825['commentThread']['length'])continue;for(const _0x108e0f of _0x2ca825['getRanges']())_0x1b88cc['isIntersectingWithRange'](_0x108e0f)||_0x1b88cc['addRange'](_0x108e0f);_0x2ca825['removeMarkers']();}else{_0x1b88cc=_0x2ca825;for(const _0x5a90df of _0x21f43d)_0x2ca825['isIntersectingWithRange'](_0x5a90df)||_0x2ca825['addRange'](_0x5a90df);}}if(_0x1b88cc)return _0x1b88cc;_0x2f353c['clear']();for(const {suggestion:_0x1ade60,meta:_0x4b2dc5}of this['_findSuggestions'](_0x21f43d,'deletion'))_0x4b2dc5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b2dc5['containsRangeInObject']&&!_0x4b2dc5['isInsideObject'])&&pn(_0x1ade60,_0x28789d)&&_0x2f353c['add'](_0x1ade60);for(const _0x265e3f of _0x2f353c){const _0x5341e8=_0x265e3f['getRanges']();if((!_0x28789d||!_0x28789d['skipNestingCheck'])&&_0x21f43d['every'](_0x4ac111=>_0x5341e8['some'](_0x2bf1e4=>_0x2bf1e4['containsRange'](_0x4ac111,!0x0))))return _0x265e3f;_0x265e3f['attributes']&&_0x265e3f['attributes']['skipNestingCheck']||_0x5341e8['every'](_0x45fa60=>_0x21f43d['some'](_0xc3cad4=>_0xc3cad4['containsRange'](_0x45fa60,!0x0)))&&_0x265e3f['discard']();}const _0x418e6d=_0x3223bf(),_0x2de621=_0x35077b['id'],_0x58f73d='deletion:'+_0x17c027,_0x4cc425=this['_setSuggestionData']({'id':_0x418e6d,'type':_0x58f73d,'createdAt':new Date(),'authorId':_0x2de621,'attributes':_0x28789d});for(const _0x3c877f of _0x21f43d)_0x3c877f['detach'](),_0x3c877f['isCollapsed']||'$graveyard'==_0x3c877f['root']['rootName']||this['_addSuggestionMarker'](_0x58f73d,_0x418e6d,_0x2de621,_0x3c877f,Mt['getMultiRangeId']());return _0x4cc425;}markAttributeChange(_0x57ea9d,_0x1eb2fa,_0x31d64d,_0x4566dc,_0x57ecdd){if(_0x57ea9d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32255b=this['editor']['plugins']['get']('Users')['me']['id'],_0x451b4e=Array['from'](this['_suggestions']['values']())['filter'](_0x41a60a=>'attribute'==_0x41a60a['type']&&_0x41a60a['data']['key']==_0x1eb2fa&&_0x41a60a['isIntersectingWithRange'](_0x57ea9d));if(this['_trackingSessionId']&&(_0x57ecdd['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1786a3=this['_findSuggestions'](_0x57ea9d,'insertion')['filter'](({meta:_0x31fd3a})=>_0x31fd3a['isOwn']&&!_0x31fd3a['isInsideObject']&&!_0x31fd3a['isNextTo'])['map'](({suggestion:_0x26fb0c})=>_0x26fb0c);_0x451b4e['unshift'](..._0x1786a3);}const _0x15f42d=new Map([[_0x57ea9d,_0x31d64d]]);for(const _0x2eae96 of _0x451b4e){const _0x4b3a64='attribute'==_0x2eae96['type']?_0x2eae96['data']['oldValue']:void 0x0,_0xf6b8dd=_0x2eae96['getFirstRange'](),_0x383ab7=Array['from'](_0x15f42d['keys']())['find'](_0x499eee=>_0x499eee['isIntersecting'](_0xf6b8dd));if(!_0x383ab7)continue;const _0x3a09fd=_0x383ab7['getDifference'](_0xf6b8dd);this['_suggestionsConversion']['isBlockAttribute'](_0x1eb2fa)&&'insertion'==_0x2eae96['type']&&0x0!=_0x3a09fd['length']||(_0x15f42d['delete'](_0x383ab7),_0x3a09fd['forEach'](_0x16832c=>{_0x15f42d['set'](_0x16832c,_0x31d64d);}),'insertion'!=_0x2eae96['type']&&_0x4b3a64!=_0x4566dc&&_0x15f42d['set'](_0x383ab7['getIntersection'](_0xf6b8dd),_0x4b3a64));}const _0x3782fd=[];for(const [_0x4f56f2,_0x58aada]of _0x15f42d){const _0x1d67b0=_0x3223bf(),_0x317c4a={'key':_0x1eb2fa,'oldValue':_0x58aada,'newValue':_0x4566dc};_0x1eb2fa['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':_0x1eb2fa});const _0x1a4d96=('attribute:'+_0x1eb2fa+'|'+dn({'newValue':_0x4566dc}))['substring'](0x0,0x3c),_0x35d632=this['_setSuggestionData']({'id':_0x1d67b0,'type':_0x1a4d96,'data':_0x317c4a,'createdAt':new Date(),'authorId':_0x32255b,'attributes':_0x57ecdd});_0x3782fd['push'](_0x35d632),this['_addSuggestionMarker'](_0x1a4d96,_0x1d67b0,_0x32255b,_0x4f56f2);}return _0x3782fd;}enableDefaultAttributesIntegration(_0x1a7760){this['enableCommand'](_0x1a7760,(_0x27fa47,..._0x17baae)=>{this['recordAttributeChanges'](()=>{_0x27fa47(..._0x17baae);});});}startTrackingSession(_0x22a252){return this['_trackingSessionId']=void 0x0!==_0x22a252?_0x22a252:_0x3223bf(),this['_trackingSessionId'];}_getAttributeKey(_0x4b1ab6){return'attribute'==_0x4b1ab6['type']?In(_0x4b1ab6['subType']):null;}_applyOperationsAsSuggestions(_0x433db4){if(0x0==_0x433db4['length'])return;const _0x7c842b=this['editor'],_0x511a4b=_0x7c842b['plugins']['get'](_0xc88042),_0x463005=[],_0xa656b8=_0x44a083=>{const _0x8fb27f=_0x44a083['_aiSource'];return _0x8fb27f?{'@ai':{'type':_0x8fb27f}}:{};},_0x3ab23b=(_0x1cfde2,_0x2cd3cd,_0x44447f)=>{for(let _0x2d2f17=_0x2cd3cd;_0x2d2f17<_0x1cfde2['operations']['length'];_0x2d2f17++){const _0x3ab942=_0x1cfde2['operations'][_0x2d2f17];'marker'===_0x3ab942['type']&&(_0x3ab942['_aiSource']=_0x44447f);}};_0x7c842b['model']['change'](_0x13f694=>{for(let _0xb5dbf9=0x0;_0xb5dbf9<_0x433db4['length'];_0xb5dbf9++){const _0x1f51a3=_0x433db4[_0xb5dbf9],_0x112daf=_0x1f51a3['_aiSource'],_0x19fcd7=_0x13f694['batch']['operations']['length'];if(_0x1f51a3['baseVersion']=_0x7c842b['model']['document']['version'],_0x1f51a3['isDocumentOperation']=!0x0,!_0x12593f(_0x1f51a3)){if(_0x511a4b['isMarkedRemoveOperation'](_0x1f51a3)){const _0x23644b=_0x1088e8(_0x1f51a3['newRange'],_0x7c842b['model']);_0x463005['unshift']({'range':ot['fromRange'](_0x23644b),'opAttributes':_0xa656b8(_0x1f51a3),'aiSource':_0x112daf});}else{switch(_0x1f51a3['type']){case'rename':{const _0x1adbc6=_0x1f51a3['oldName'],_0xa91ffd=_0x1f51a3['newName'];if(_0x1adbc6==_0xa91ffd)break;_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);const _0x91b4a3='$elementName',_0x470ec4=_0x1f51a3['position'],_0x3f845f=_0x7c842b['model']['createRange'](_0x470ec4,_0x7c842b['model']['createPositionAt'](_0x470ec4['nodeAfter'],'end'));this['markAttributeChange'](_0x3f845f,_0x91b4a3,_0x1adbc6,_0xa91ffd,{..._0xa656b8(_0x1f51a3),'groupId':_0x3223bf()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2ca758=_0x1f51a3['oldValue'],_0x641ba2=_0x1f51a3['newValue'];if(_0x2ca758==_0x641ba2)break;_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);const _0x514aad=_0x1f51a3['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x514aad))break;const _0x2d32ab=_0x1088e8(_0x1f51a3['range'],_0x7c842b['model']);this['markAttributeChange'](_0x2d32ab,_0x514aad,_0x2ca758,_0x641ba2,{..._0xa656b8(_0x1f51a3),'groupId':_0x3223bf()});break;}case'insert':{if(_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3),_0x433db4[_0xb5dbf9+0x1]&&'move'==_0x433db4[_0xb5dbf9+0x1]['type'])break;const _0x2c6c9f=_0x1f51a3['position'],_0x41bd85=_0x1f51a3['howMany'],_0x2006b3=_0x1088e8(_0x7c842b['model']['createRange'](_0x2c6c9f,_0x2c6c9f['getShiftedBy'](_0x41bd85)),_0x7c842b['model']);this['markInsertion'](_0x2006b3,null,{..._0xa656b8(_0x1f51a3)});break;}case'split':{_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);const _0x561345=_0x1f51a3['splitPosition'],_0x49263f=_0x1f51a3['moveTargetPosition'],_0x51b893=_0x7c842b['model']['createRange'](_0x561345,_0x49263f);this['markInsertion'](_0x51b893,null,{..._0xa656b8(_0x1f51a3)});break;}case'move':case'remove':_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);}_0x112daf&&_0x3ab23b(_0x13f694['batch'],_0x19fcd7,_0x112daf);}}}for(const {range:_0x211746,opAttributes:_0x41111b,aiSource:_0x473601}of _0x463005){const _0x4f0ff9=_0x13f694['batch']['operations']['length'];_0x211746['detach'](),this['markDeletion'](_0x211746,null,{..._0x41111b}),_0x473601&&_0x3ab23b(_0x13f694['batch'],_0x4f0ff9,_0x473601);}});}_setSuggestionRange(_0x3d184e,_0x379a5d){const _0x3c6cf1=_0x3d184e['getFirstMarker']();this['_model']['change'](_0x1e4bda=>{_0x1e4bda['updateMarker'](_0x3c6cf1,{'range':_0x379a5d});});}_addThreadToSuggestion(_0xb07406){const _0x170e89=_0xb07406['id'],_0x39941e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x170e89)||this['_commentsRepository']['addCommentThread']({'channelId':_0x39941e,'threadId':_0x170e89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x414a49=this['_commentsRepository']['getCommentThread'](_0x170e89);_0x414a49['unbind']('isRemovable'),_0x414a49['isRemovable']=!0x1,_0xb07406['commentThread']=_0x414a49;}_checkSuggestionCorrectness(_0x494b13,_0xff383f,_0x1ef81e,_0x1538d7){if(_0x494b13['type']!=_0xff383f||_0x494b13['subType']!=_0x1ef81e||_0x494b13['creator']['id']!=_0x1538d7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x531c91('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x44c289,_0xeb0d66){const _0x309483=_0x44c289['getFirstRange']();if(_0xeb0d66['isEqual'](_0x309483))_0x44c289['removeMarkers']();else{if(_0x309483['containsRange'](_0xeb0d66)){const _0x4911c4=this['_model']['createPositionAt'](_0xeb0d66['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44c289,this['_model']['createRange'](_0x309483['start'],_0x4911c4));const _0x364447=_0x3223bf(),_0x15568e=_0x44c289['creator']['id'],_0x3b3825=_0x44c289['type']+':'+_0x44c289['subType'];this['_setSuggestionData']({'id':_0x364447,'type':_0x3b3825,'createdAt':new Date(),'authorId':_0x15568e,'data':_0x44c289['data'],'attributes':_0x44c289['attributes']});const _0x4ac2b7=this['_model']['createPositionAt'](_0xeb0d66['end']['parent'],'after'),_0x4adb5b=this['_model']['createRange'](_0x4ac2b7,_0x309483['end']);this['_addSuggestionMarker'](_0x3b3825,_0x364447,_0x15568e,_0x4adb5b);}else{if(_0x309483['containsPosition'](_0xeb0d66['start'])){const _0x15e444=this['_model']['createPositionAt'](_0xeb0d66['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44c289,this['_model']['createRange'](_0x309483['start'],_0x15e444));}else{const _0x3d10d0=this['_model']['createPositionAt'](_0xeb0d66['end']['parent'],'after');this['_setSuggestionRange'](_0x44c289,this['_model']['createRange'](_0x3d10d0,_0x309483['end']));}}}}_rangeIsInLocalUserInsertion(_0x85ce5e){for(const {suggestion:_0x4029b2,meta:_0x373771}of this['_findSuggestions'](_0x85ce5e,'insertion')){if(!_0x373771['isOwn'])continue;const _0x31449f=_0x4029b2['getRanges']();for(const _0x3efc95 of _0x31449f)if(!_0x85ce5e['getDifference'](_0x3efc95)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x580d60){return this['editor']['plugins']['get']('Users')['getUser'](_0x580d60);}_getExternalAuthor(_0x25549f){const _0x3cb0ab=this['editor']['plugins']['get']('Users'),_0x353569=_0x5e550b('external:'+_0x25549f),_0x212d74=_0x3cb0ab['getUser'](_0x353569);return _0x212d74||_0x3cb0ab['addUser']({'id':_0x353569,'name':_0x25549f});}_createSuggestion(_0x4753f9,_0x27c9ac,_0x4c6b29,_0x14af40,_0x3cef98,_0x229f33){const _0x6099e2=this['_getAuthorFromId'](_0x14af40);if(!_0x6099e2)throw new _0x531c91('track-changes-user-not-found',this,{'authorId':_0x14af40,'suggestionId':_0x4c6b29});const _0x1179fc=this['_suggestionFactory']['buildSuggestion'](_0x4753f9,_0x27c9ac,_0x4c6b29,_0x6099e2,_0x3cef98,_0x3e3681=>{this['_updateSuggestionData'](_0x4c6b29,{'attributes':_0x3e3681});const _0x51fd0a=this['getSuggestion'](_0x4c6b29);this['_joinWithAdjacentSuggestions'](new Set([_0x51fd0a])),this['_refreshSuggestionsChain'](new Set([_0x51fd0a]));},_0x229f33);return this['listenTo'](_0x1179fc,'accept',()=>{this['_updateSuggestionData'](_0x4c6b29,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1179fc,'discard',()=>{this['_updateSuggestionData'](_0x4c6b29,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c6b29,_0x1179fc),this['_suggestionState']['set'](_0x1179fc,'notReady'),_0x1179fc;}_breakSuggestionMarker(_0x720247,_0x12c0de,_0x2a6127){const _0x4401a4=_0x720247['getFirstRange'](),_0x227352=_0x4401a4['start'],_0x5449fb=_0x4401a4['end'];this['_setSuggestionRange'](_0x720247,this['_model']['createRange'](_0x227352,_0x12c0de));const _0x4d30fa=_0x3223bf(),_0x33552f=_0x720247['creator']['id'],_0x4693a6=_0x720247['type']+(_0x720247['subType']?':'+_0x720247['subType']:'');this['_setSuggestionData']({'id':_0x4d30fa,'type':_0x4693a6,'createdAt':new Date(),'authorId':_0x33552f,'originalSuggestionId':_0x720247['_originalSuggestionId']||_0x720247['id'],'attributes':_0x720247['attributes'],'data':_0x720247['data']});const _0x1f43b8=this['_getAttributeKey'](_0x720247);('formatBlock'==_0x720247['type']||_0x1f43b8&&this['_suggestionsConversion']['isBlockAttribute'](_0x1f43b8))&&(_0x2a6127=this['_model']['createPositionBefore'](_0x2a6127['parent'])),this['_addSuggestionMarker'](_0x4693a6,_0x4d30fa,_0x33552f,this['_model']['createRange'](_0x2a6127,_0x5449fb));}_findSuggestions(_0x5a7b97,_0x1eea22=null){const _0x4e03fd=[],_0x32d96a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a7b97)||(_0x5a7b97=[_0x5a7b97]);for(const _0x462c3a of this['getSuggestions']()){if(!_0x462c3a['isInContent'])continue;if(_0x1eea22&&_0x462c3a['type']!=_0x1eea22)continue;let _0x3753ab=!0x1;for(const _0x493d4b of _0x462c3a['getRanges']()){for(const _0x15e45d of _0x5a7b97){const _0x25ebb3=_0x15e45d['start']['isEqual'](_0x493d4b['end'])||_0x15e45d['end']['isEqual'](_0x493d4b['start']);if(_0x25ebb3||_0x15e45d['getIntersection'](_0x493d4b)){const _0x313628=_0x15e45d['containsRange'](_0x493d4b)&&cn(this['_model']['schema'],_0x493d4b['start'],_0x15e45d),_0xc78ccb=_0x493d4b['containsRange'](_0x15e45d)&&cn(this['_model']['schema'],_0x15e45d['start'],_0x493d4b);_0x4e03fd['push']({'suggestion':_0x462c3a,'meta':{'isOwn':_0x32d96a==_0x462c3a['author'],'isNextTo':_0x25ebb3,'isInsideObject':_0x313628,'containsRangeInObject':_0xc78ccb}}),_0x3753ab=!0x0;break;}}if(_0x3753ab)break;}}return _0x4e03fd;}_addSuggestionMarker(_0x27cfa1,_0x43ede8,_0x2646c9,_0x3fd9ce,_0x55cc70){this['_model']['change'](_0x6faa62=>{let _0x215d55='suggestion:'+_0x27cfa1+':'+_0x43ede8+':'+_0x2646c9;_0x55cc70&&(_0x215d55=_0x215d55+':'+_0x55cc70),_0x6faa62['addMarker'](_0x215d55,{'range':_0x3fd9ce,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x4892fc){const _0x336f3d=_0x4892fc['previous'],_0x3aa6fd=_0x4892fc['next'];_0x4892fc['previous']=null,_0x4892fc['next']=null,null!=_0x336f3d&&_0x336f3d['next']==_0x4892fc&&(_0x336f3d['next']=_0x3aa6fd),null!=_0x3aa6fd&&_0x3aa6fd['previous']==_0x4892fc&&(_0x3aa6fd['previous']=_0x336f3d),'ready'==this['_suggestionState']['get'](_0x4892fc)&&(this['_suggestionState']['set'](_0x4892fc,'removed'),this['fire']('suggestionUnloaded',_0x4892fc,_0x336f3d,_0x3aa6fd));}_setSuggestionData(_0x2ec7ea){const _0x217913=_0x2ec7ea['id'],_0x50202b=this['addSuggestionData'](_0x2ec7ea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x20b04b=this['editor']['plugins']['get']('PendingActions'),_0x5b90a1=_0x50202b['hasComments'],_0x1f6bc7=_0x50202b['subType']?_0x50202b['type']+':'+_0x50202b['subType']:_0x50202b['type'],_0x4b98da=this['editor']['locale'],_0x55651b=_0x20b04b['add'](Ot(_0x4b98da,'PENDING_ACTION_SUGGESTION')),_0x136e2e={'id':_0x217913,'type':_0x1f6bc7,'hasComments':_0x5b90a1,'data':_0x2ec7ea['data']||null,'originalSuggestionId':_0x2ec7ea['originalSuggestionId']||null,'attributes':_0x50202b['attributes']};this['_adapter']['addSuggestion'](_0x136e2e)['then'](_0x3a4410=>{_0x50202b['_saved']=!0x0,_0x20b04b['remove'](_0x55651b),_0x3a4410&&_0x3a4410['createdAt']&&(this['_suggestions']['get'](_0x217913)['createdAt']=_0x3a4410['createdAt']);})['catch'](_0x4a8686=>{throw _0x2a998d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50202b['discard']();}),_0x50202b['stopListening'](),this['_suggestions']['delete'](_0x50202b['id']),this['_suggestionState']['delete'](_0x50202b),_0x4a8686;});}return _0x50202b;}_updateSuggestionData(_0x27dbc2,_0x31476c){const _0x296165=this['editor']['plugins']['get']('PendingActions'),_0x1b284d=this['getSuggestion'](_0x27dbc2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1b284d['_saved']){const _0x5055f4=_0x296165['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x27dbc2,_0x31476c)['then'](()=>{_0x296165['remove'](_0x5055f4);});}else _0x1b284d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x27dbc2,_0x31476c);});}}_getSuggestionData(_0x40585b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x531c91('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x40585b);}_handleNewSuggestionMarker(_0xc9686c){const {id:_0x4ffc76,type:_0x112cd9,subType:_0x5740ee,authorId:_0x33b03e}=et(_0xc9686c),_0x16127f=this['_suggestions']['get'](_0x4ffc76)||this['_createSuggestion'](_0x112cd9,_0x5740ee,_0x4ffc76,_0x33b03e,{});switch(this['_checkSuggestionCorrectness'](_0x16127f,_0x112cd9,_0x5740ee,_0x33b03e),this['_suggestionState']['get'](_0x16127f)){case'notReady':this['_getSuggestionData'](_0x4ffc76)['then'](_0x18045f=>{let _0x3436ac=Promise['resolve']();_0x18045f['hasComments']&&(_0x3436ac=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ffc76})),_0x3436ac['then'](()=>{this['addSuggestionData'](_0x18045f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16127f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ffc76,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16127f,'ready'),this['fire']('suggestionLoaded',_0x16127f);break;case'ready':this['fire']('suggestionChanged',_0x16127f);}return _0x16127f['addMarkerName'](_0xc9686c),_0x16127f;}_refreshSuggestionsChain(_0x4cf4cf){const _0x8d10cf=Array['from'](_0x4cf4cf),_0x18492c=_0x8d10cf['filter'](_0x48d40a=>'attribute'==_0x48d40a['type']);this['_refreshAttributeSuggestionsChain'](_0x18492c);const _0x370667=_0x8d10cf['filter'](_0x553c40=>!_0x553c40['isMultiRange']&&'attribute'!=_0x553c40['type']),_0x49e657=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32a3a7=>!_0x32a3a7['isMultiRange']&&'attribute'!=_0x32a3a7['type']),_0x52ca7d=_0x49e657['filter'](_0x3189a5=>!_0x4cf4cf['has'](_0x3189a5)),_0x529fe8=new Map(_0x49e657['map'](_0x3b22aa=>[_0x3b22aa,this['_suggestionFactory']['getSuggestionCallback'](_0x3b22aa['type'],_0x3b22aa['subType'],'chain')])),_0x3da1de=new Map(_0x49e657['map'](_0x52b7fc=>[_0x52b7fc,_0x52b7fc['getFirstRange']()])),_0xa0388d=new Set(),_0x370ca3=new Set();for(let _0x4193e1=0x0;_0x4193e1<_0x370667['length'];_0x4193e1++)_0x4e9f59(_0x370667[_0x4193e1],_0x370667,_0x4193e1+0x1);for(let _0x2c21f9=0x0;_0x2c21f9<_0x370667['length'];_0x2c21f9++)_0x4e9f59(_0x370667[_0x2c21f9],_0x52ca7d,0x0);const _0x22f1a8=new Set();for(let _0x1170e4=0x0;_0x1170e4<_0x370667['length'];_0x1170e4++){const _0x42b2e2=_0x370667[_0x1170e4];!_0x370ca3['has'](_0x42b2e2)&&_0x42b2e2['previous']&&(_0x22f1a8['add'](_0x42b2e2['previous']),_0x42b2e2['previous']['next']===_0x42b2e2&&(_0x42b2e2['previous']['next']=null),_0x42b2e2['previous']=null),!_0xa0388d['has'](_0x42b2e2)&&_0x42b2e2['next']&&(_0x22f1a8['add'](_0x42b2e2['next']),_0x42b2e2['next']['previous']===_0x42b2e2&&(_0x42b2e2['next']['previous']=null),_0x42b2e2['next']=null);}function _0x4e9f59(_0x3f2941,_0xb10d3c,_0x445107){for(let _0x4de318=_0x445107;_0x4de318<_0xb10d3c['length'];_0x4de318++){const _0x2cb14c=_0xa00f5b(_0x3f2941,_0xb10d3c[_0x4de318]);_0x2cb14c&&(_0x2cb14c[0x0]['next']=_0x2cb14c[0x1],_0x2cb14c[0x1]['previous']=_0x2cb14c[0x0],_0xa0388d['add'](_0x2cb14c[0x0]),_0x370ca3['add'](_0x2cb14c[0x1]));}}function _0xa00f5b(_0x353b05,_0x2b67a1){if(_0x353b05['author']['id']!==_0x2b67a1['author']['id'])return null;const _0x252a83=_0x529fe8['get'](_0x353b05)(_0x353b05,_0x2b67a1,_0x3da1de['get'](_0x353b05),_0x3da1de['get'](_0x2b67a1));return _0x252a83&&_0x529fe8['get'](_0x2b67a1)(_0x353b05,_0x2b67a1,_0x3da1de['get'](_0x353b05),_0x3da1de['get'](_0x2b67a1))?_0x252a83[0x1]['commentThread']&&_0x252a83[0x1]['commentThread']['length']?null:_0x252a83:null;}_0x22f1a8['size']&&this['_refreshSuggestionsChain'](_0x22f1a8);}_refreshAttributeSuggestionsChain(_0x5563da){if(0x0==_0x5563da['length'])return;const _0xfa05ca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aa896=>'attribute'==_0x5aa896['type']&&_0x5aa896['_isDataLoaded']),_0x49cd10=[],_0x44fb15=new Map();for(const _0x292128 of _0xfa05ca){const _0x242d65=_0x5e550b(_0x292128['attributes']);_0x44fb15['has'](_0x242d65)||(_0x44fb15['set'](_0x242d65,_0x49cd10['length']),_0x49cd10['push']([])),_0x49cd10[_0x44fb15['get'](_0x242d65)]['push'](_0x292128);}!(function(){_0x49cd10['sort']((_0x396ebf,_0x29dc32)=>{const _0x1e8ff7=_0x396ebf[0x0]['createdAt'],_0x3de7ea=_0x29dc32[0x0]['createdAt'];return _0x1e8ff7==_0x3de7ea?_0x396ebf[0x0]['attributes']['groupId']<_0x29dc32[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e8ff7<_0x3de7ea?-0x1:0x1;});for(const _0x30b967 of _0x49cd10)_0x30b967['sort']((_0xf524a2,_0x416233)=>_0xf524a2['id']<_0x416233['id']?-0x1:0x1);}());for(let _0x365338=0x0;_0x365338<_0x49cd10['length'];_0x365338++){if(0x0==_0x49cd10[_0x365338]['length'])continue;const _0xd40fa8=[];for(let _0x3ce588=_0x365338+0x1;_0x3ce588<_0x49cd10['length'];_0x3ce588++)0x0!=_0x49cd10[_0x3ce588]['length']&&_0x2209a8(_0x49cd10[_0x365338],_0x49cd10[_0x3ce588])&&_0xd40fa8['push'](_0x3ce588);for(const _0x300431 of _0xd40fa8)_0x49cd10[_0x365338]=_0x49cd10[_0x365338]['concat'](_0x49cd10[_0x300431]),_0x49cd10[_0x300431]=[];}for(const _0x467312 of _0x49cd10)for(let _0x3961db=0x0;_0x3961db<_0x467312['length'];_0x3961db++){const _0x196711=_0x467312[_0x3961db+0x1]||null;_0x467312[_0x3961db]['next']!==_0x196711&&(_0x467312[_0x3961db]['next']=_0x196711);}for(const _0x284fd3 of _0x49cd10)for(let _0x312930=0x0;_0x312930<_0x284fd3['length'];_0x312930++){const _0x7894a5=_0x284fd3[_0x312930-0x1]||null;_0x284fd3[_0x312930]['previous']!==_0x7894a5&&(_0x284fd3[_0x312930]['previous']=_0x7894a5);}function _0x2209a8(_0x422d6d,_0x44aa59){return(_0x422d6d[0x0]['attributes']['groupId']===_0x44aa59[0x0]['attributes']['groupId']||_0x422d6d[0x0]['author']===_0x44aa59[0x0]['author'])&&(!!function(_0x164d4d,_0x17cc0a){return!_0x164d4d['hasComments']&&!_0x17cc0a['hasComments']||(!_0x164d4d['hasComments']||!_0x17cc0a['hasComments'])&&(!!(_0x164d4d['hasComments']&&_0x17cc0a['createdAt']<_0x164d4d['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x17cc0a['hasComments']&&_0x164d4d['createdAt']<_0x17cc0a['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x422d6d[0x0],_0x44aa59[0x0])&&(!!lt(ut(_0x422d6d[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x44aa59[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x422d6d[0x0]['attributes']['groupId']==_0x44aa59[0x0]['attributes']['groupId']||_0x422d6d[0x0]['attributes']['trackingSessionId']===_0x44aa59[0x0]['attributes']['trackingSessionId']&&(!!_0x422d6d['every'](_0x49e119=>_0x44aa59['some'](_0x31de2d=>_0x49e119['getFirstRange']()['isEqual'](_0x31de2d['getFirstRange']())))&&_0x44aa59['every'](_0x26fc6f=>_0x422d6d['some'](_0x22833b=>_0x26fc6f['getFirstRange']()['isEqual'](_0x22833b['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x2fa4fa){const _0x168bc7=Array['from'](_0x2fa4fa),_0x1d617d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x8bab8f=_0x1d617d['filter'](_0x4de708=>!_0x2fa4fa['has'](_0x4de708)),_0x4cb378=new Map(_0x168bc7['map'](_0xdc0c4a=>[_0xdc0c4a,this['_suggestionFactory']['getSuggestionCallback'](_0xdc0c4a['type'],_0xdc0c4a['subType'],'join')])),_0x18972c=new Map(_0x1d617d['map'](_0x2742d9=>[_0x2742d9,_0x2742d9['getRanges']()]));for(let _0x1fce04=0x0;_0x1fce04<_0x168bc7['length'];_0x1fce04++)if(_0x3c649d(this,_0x168bc7[_0x1fce04],_0x168bc7,_0x1fce04+0x1))return!0x0;for(let _0x6c5654=0x0;_0x6c5654<_0x168bc7['length'];_0x6c5654++)if(_0x3c649d(this,_0x168bc7[_0x6c5654],_0x8bab8f,0x0))return!0x0;return!0x1;function _0x3c649d(_0x390886,_0x1597e0,_0x319aed,_0x5d18a8){for(let _0x5f1e19=_0x5d18a8;_0x5f1e19<_0x319aed['length'];_0x5f1e19++){const _0x5defef=_0x319aed[_0x5f1e19];if(_0x5defef['type']!==_0x1597e0['type']||_0x5defef['author']['id']!==_0x1597e0['author']['id']||_0x5defef['subType']!==_0x1597e0['subType'])continue;if(!_n(_0x1597e0,_0x5defef))continue;if('attribute'==_0x1597e0['type']&&_0x1597e0['data']['oldValue']!=_0x5defef['data']['oldValue'])continue;if('attribute'==_0x1597e0['type']&&_0x390886['_suggestionsConversion']['isBlockAttribute'](_0x1597e0['data']['key']))continue;if('formatBlock'==_0x1597e0['type']){const _0x1a6772=_0x390886['editor']['model'],_0x270e36=_0x1597e0['getContainedElement']();if(_0x270e36&&(_0x1a6772['schema']['isObject'](_0x270e36)||_0x1a6772['schema']['isLimit'](_0x270e36)))continue;}const _0x2664fd=_0x4cb378['get'](_0x1597e0),_0x5e119a=_0x18972c['get'](_0x1597e0),_0x14abac=_0x18972c['get'](_0x5defef),_0x4cb686=_0x1597e0['commentThread']&&_0x1597e0['commentThread']['length'],_0x4a2941=_0x5defef['commentThread']&&_0x5defef['commentThread']['length'];if(!_0x4cb686&&_0x2664fd(_0x14abac,_0x5e119a))return _0x390886['_joinSuggestions'](_0x5defef,_0x1597e0),_0x18972c['delete'](_0x1597e0),!0x0;if(!_0x4a2941&&_0x2664fd(_0x5e119a,_0x14abac))return _0x390886['_joinSuggestions'](_0x1597e0,_0x5defef),_0x18972c['delete'](_0x5defef),!0x0;}return!0x1;}}_joinSuggestions(_0x18be6f,_0x1b63c7){if(_0x18be6f['isMultiRange']){for(const _0x135677 of _0x1b63c7['getRanges']())_0x18be6f['addRange'](_0x135677);}else{const _0x17ecda=_0x1b63c7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x18be6f,this['_model']['createRange'](_0x18be6f['getFirstRange']()['start'],_0x17ecda));}_0x1b63c7['removeMarkers']();}_getMarkerAnnouncementText(_0x32fc43,_0x4ca806,_0x5bde6e){const _0x1b06e3=_0x32fc43['startsWith']('format')||_0x32fc43['startsWith']('attribute')?'FORMATTING':_0x32fc43['toUpperCase']();return Ot(this['editor']['locale'],_0x4ca806+'_'+_0x1b06e3+'_SUGGESTION_ANNOUNCEMENT',_0x5bde6e);}_initAriaMarkerChangeAnnouncements(){const _0x284af6=this['editor'];if(!_0x284af6['ui'])return;const {ariaLiveAnnouncer:_0x415e3b}=_0x284af6['ui'];nt(this['_model'],({left:_0x2b8b65,entered:_0x4a4f28})=>{for(const _0x708d6 of _0x2b8b65){const {group:_0x38451e,type:_0x30c280}=et(_0x708d6['name']);if('suggestion'===_0x38451e){_0x415e3b['announce'](this['_getMarkerAnnouncementText'](_0x30c280,'LEAVE'));break;}}for(const _0x206642 of _0x4a4f28){const {group:_0x22b0cc,type:_0x152aa3}=et(_0x206642['name']);if('suggestion'===_0x22b0cc){_0x415e3b['announce'](this['_getMarkerAnnouncementText'](_0x152aa3,'ENTER',_0x263f96(_0x48a7da)));break;}}});}_processAttributeChanges(_0x2e6ebb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x7564c8=this['editor'],_0x278e76=_0x7564c8['model']['document']['differ']['getChanges']();if(0x0==_0x278e76['length'])return!0x1;const _0x1e89bf=[],_0x1e7ce4=_0x278e76['filter'](_0x2a3587=>'attribute'==_0x2a3587['type']),_0x5bfeb2=_0x278e76['filter'](_0x5b6241=>'insert'==_0x5b6241['type']&&'$text'!=_0x5b6241['name']),_0x51408c=_0x278e76['filter'](_0x49e846=>'remove'==_0x49e846['type']&&'$text'!=_0x49e846['name']);for(const _0x394e9c of _0x1e7ce4)_0x1e89bf['push']({'key':_0x394e9c['attributeKey'],'newValue':_0x394e9c['attributeNewValue'],'oldValue':_0x394e9c['attributeOldValue'],'range':mn(_0x394e9c['range'],_0x7564c8['model'])});for(const _0x53febb of _0x5bfeb2){const _0x33f2ff=_0x51408c['find'](_0x4a1f55=>_0x4a1f55['position']['isEqual'](_0x53febb['position']));_0x33f2ff&&_0x1e89bf['push']({'key':rn,'newValue':_0x53febb['name'],'oldValue':_0x33f2ff['name'],'range':_0x7564c8['model']['createRangeOn'](_0x53febb['position']['nodeAfter'])});}return 0x0!=_0x1e89bf['length']&&this['_reduceExistingSuggestions'](_0x2e6ebb,_0x1e89bf);}_processAttributeSuggestions(_0x29548a){let _0x6de4=!0x1;const _0x761e8f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27a5ac=>_0x27a5ac['data']['newRange']&&_0x27a5ac['name']['startsWith']('suggestion:attribute:'));for(const _0x5bbfb3 of _0x761e8f){const {subType:_0x2a7771,id:_0x295ff2}=et(_0x5bbfb3['name']),_0x43cabf=_0x2a7771['split']('|')[0x0];for(const _0x2038d5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2038d5['id']!=_0x295ff2&&'attribute'==_0x2038d5['type']&&_0x2038d5['data']&&_0x2038d5['data']['key']==_0x43cabf&&_0x2038d5['getFirstRange']()['isIntersecting'](_0x5bbfb3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2038d5,_0x5bbfb3['data']['newRange'],_0x29548a),_0x6de4=!0x0);}return _0x6de4;}recordAttributeChanges(_0x5f2036){this['_recordAttributeSuggestions']=!0x0,_0x5f2036();}_reduceExistingSuggestions(_0x2acd1d,_0x35ac1e){if(0x0==_0x35ac1e['length'])return!0x1;let _0x2adce4=!0x1;for(const _0x2e31e1 of _0x35ac1e){const _0x2c38d4=this['_findSuggestions'](_0x2e31e1['range'],'attribute')['filter'](_0x4644fe=>!_0x4644fe['meta']['isNextTo'])['map'](_0x2c7c39=>_0x2c7c39['suggestion']),_0x47dedf=_0x5e550b({'newValue':_0x2e31e1['newValue']});_0x2c38d4['filter'](_0x43fe59=>{const [_0x5a1596,_0x1a6676]=_0x43fe59['subType']['split']('|');return _0x5a1596==_0x2e31e1['key']&&_0x1a6676!=_0x47dedf;})['forEach'](_0x5e8d2e=>{this['_reduceSuggestionAttributeRange'](_0x5e8d2e,_0x2e31e1['range'],_0x2acd1d),_0x2adce4=!0x0;});}return _0x2adce4;}_reduceSuggestionAttributeRange(_0x5d436c,_0x159ec4,_0x5e2dd4){const _0x2526d8=_0x5d436c['getFirstRange']()['getDifference'](_0x159ec4);0x0!==_0x2526d8['length']?0x1!==_0x2526d8['length']?this['_breakSuggestionMarker'](_0x5d436c,_0x159ec4['start'],_0x159ec4['end']):this['_setSuggestionRange'](_0x5d436c,_0x2526d8[0x0]):_0x5e2dd4['removeMarker'](_0x5d436c['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x553b07){this['_editor']=_0x553b07,this['_model']=_0x553b07['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x32d84b,_0x36a56a,_0x45e1e4,_0x5884a4,_0x2be26e,_0x175b13,_0x37b2f6){return new Mt(this['_model'],{'type':_0x32d84b,'subType':_0x36a56a,'id':_0x45e1e4,'originalSuggestionId':_0x37b2f6,'author':_0x5884a4,'creator':_0x5884a4,'attributes':_0x2be26e,'onAttributesChange':_0x175b13,'onAccept':(..._0x3fed9c)=>this['getSuggestionCallback'](_0x32d84b,_0x36a56a,'accept')(..._0x3fed9c),'onDiscard':(..._0x21ef8e)=>this['getSuggestionCallback'](_0x32d84b,_0x36a56a,'discard')(..._0x21ef8e)});}registerCustomCallback(_0x8d61d1,_0x1cb7f3,_0x43796f,_0xe6030c){const _0x211b28=_0x8d61d1+':'+_0x1cb7f3+':'+_0x43796f;this['_customCallbacks']['set'](_0x211b28,_0xe6030c);}getSuggestionCallback(_0x6395a4,_0x48f29f,_0x5c790a){const _0x350861=_0x6395a4+':'+_0x48f29f+':'+_0x5c790a;return this['_customCallbacks']['get'](_0x350861)||this['_defaultCallbacks']['get'](_0x6395a4+':'+_0x5c790a);}_registerDefaultCallbacks(){const _0x312128=()=>!0x1,_0x13dbf7=_0x55962a=>{_0x55962a['sort']((_0x4f7dfc,_0x15b8ad)=>_0x4f7dfc['start']['isBefore'](_0x15b8ad['start'])?0x1:-0x1),this['_model']['change'](_0x6c63f7=>{for(const _0x411ab of _0x55962a){let _0x1b4337;_0x1b4337=_0x411ab['end']['isAtEnd']&&_0x411ab['end']['parent']==_0x411ab['start']['nodeAfter']?_0x6c63f7['createSelection'](_0x411ab['start']['nodeAfter'],'on'):_0x6c63f7['createSelection'](_0x411ab),this['_model']['deleteContent'](_0x1b4337,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x561d22=(_0x51bb34,_0x276ac9)=>{_0x276ac9&&this['_model']['change'](_0x248c25=>{const {commandName:_0x2135e5,commandParams:_0x5781b1=[]}=_0x276ac9,_0x730360=_0x51bb34['map'](_0x20330f=>(ln(_0x20330f)&&(_0x20330f=this['_model']['createRange'](_0x20330f['end'])),_0x20330f))['filter'](_0x5476b9=>'$graveyard'!==_0x5476b9['root']['rootName']);if(_0x730360['length']<0x1)return;const _0x30bbe2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3956d6=>ot['fromRange'](_0x3956d6));_0x248c25['setSelection'](_0x730360);for(const _0x3de3dd of this['_editor']['commands']['commands']())_0x3de3dd['refresh']();_0x5781b1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2135e5,..._0x5781b1);const _0x187499=_0x30bbe2['filter'](_0x17d525=>'$graveyard'!=_0x17d525['root']['rootName']);_0x187499['length']>0x0&&_0x248c25['setSelection'](_0x187499);for(const _0x45bb39 of _0x30bbe2)_0x45bb39['detach']();});},_0x3c7de2=(_0x1f0f99,_0x3cee17)=>0x1==_0x1f0f99['length']&&0x1==_0x3cee17['length']&&_0x1f0f99[0x0]['end']['isEqual'](_0x3cee17[0x0]['start']),_0x321306=(_0x744960,_0x1f9876,_0x4d9c62,_0xa0f528)=>Tn(_0x744960,_0x1f9876,_0x4d9c62,_0xa0f528)?[_0x744960,_0x1f9876]:Tn(_0x1f9876,_0x744960,_0xa0f528,_0x4d9c62)?[_0x1f9876,_0x744960]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x312128),this['_defaultCallbacks']['set']('insertion:discard',_0x13dbf7),this['_defaultCallbacks']['set']('insertion:join',_0x3c7de2),this['_defaultCallbacks']['set']('insertion:chain',_0x321306),this['_defaultCallbacks']['set']('deletion:accept',_0x13dbf7),this['_defaultCallbacks']['set']('deletion:discard',_0x312128),this['_defaultCallbacks']['set']('deletion:join',_0x3c7de2),this['_defaultCallbacks']['set']('deletion:chain',_0x321306),this['_defaultCallbacks']['set']('formatInline:accept',_0x561d22),this['_defaultCallbacks']['set']('formatInline:discard',_0x312128),this['_defaultCallbacks']['set']('formatInline:join',_0x3c7de2),this['_defaultCallbacks']['set']('formatInline:chain',_0x312128),this['_defaultCallbacks']['set']('formatBlock:accept',_0x561d22),this['_defaultCallbacks']['set']('formatBlock:discard',_0x312128),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c7de2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x312128),this['_defaultCallbacks']['set']('attribute:accept',_0x312128),this['_defaultCallbacks']['set']('attribute:discard',(_0x379677,_0x14d7cd)=>{if(!_0x14d7cd)return;const _0x26b207=this['_editor']['plugins']['get'](_0x5df0b9);this['_model']['change'](_0x3784b6=>{if('$elementName'==_0x14d7cd['key'])for(const _0x56eb7b of _0x379677){const _0x4580f0=_0x56eb7b['start']['nodeAfter'],_0x36c5ba=_0x14d7cd['oldValue'];_0x3784b6['rename'](_0x4580f0,_0x36c5ba);}else{if(_0x26b207['isBlockAttribute'](_0x14d7cd['key'])){for(const _0x32b5d6 of _0x379677)void 0x0!==_0x14d7cd['oldValue']?_0x3784b6['setAttribute'](_0x14d7cd['key'],_0x14d7cd['oldValue'],_0x32b5d6['start']['nodeAfter']):_0x3784b6['removeAttribute'](_0x14d7cd['key'],_0x32b5d6['start']['nodeAfter']);}else{for(const _0x2593b2 of _0x379677)_0x14d7cd['oldValue']?_0x3784b6['setAttribute'](_0x14d7cd['key'],_0x14d7cd['oldValue'],_0x2593b2):_0x3784b6['removeAttribute'](_0x14d7cd['key'],_0x2593b2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c7de2);}};function cn(_0x3c0997,_0x5e89f9,_0x3b3d51){for(const _0x14f337 of _0x5e89f9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14f337['root']==_0x14f337)return!0x1;if(!_0x3b3d51['containsItem'](_0x14f337))return!0x1;if(_0x3c0997['isObject'](_0x14f337)||_0x3c0997['isLimit'](_0x14f337))return!0x0;}return!0x1;}function ln(_0x50bae5){return _0x50bae5['end']['parent']==_0x50bae5['start']['nodeAfter']&&_0x50bae5['end']['isAtStart'];}function un(_0x577bac,_0x313461,_0x204ea9,_0x256ce9){const _0x3c3712=_0x3f3200=>!_0x3f3200['item']['is']('$textProxy')&&!_0x256ce9['isObject'](_0x3f3200['item']),_0x149ac1=_0x577bac['start']['getLastMatchingPosition'](_0x3c3712),_0x3e593f=_0x577bac['end']['getLastMatchingPosition'](_0x3c3712,{'direction':'backward'});return(!_0x577bac['start']['isEqual'](_0x149ac1)||!_0x577bac['end']['isEqual'](_0x3e593f))&&(_0x149ac1['isBefore'](_0x3e593f)?_0x204ea9['updateMarker'](_0x313461,{'range':_0x204ea9['createRange'](_0x149ac1,_0x3e593f)}):_0x204ea9['removeMarker'](_0x313461),!0x0);}function dn(_0x1443d8){return _0x5e550b(_0x1443d8);}function hn(_0x51516d){const _0x1b06d1=_0x51516d['start']['nodeAfter'];return _0x1b06d1&&_0x1b06d1['is']('element');}function gn(_0x5038da){return ln(_0x5038da)||function(_0xdbe8b9){return _0xdbe8b9['start']['parent']==_0xdbe8b9['end']['nodeBefore']&&_0xdbe8b9['start']['isAtEnd'];}(_0x5038da);}function fn(_0x3de703,_0x495bec){try{const _0x3420a5=_0x3de703['getRange']();for(const _0x509460 of _0x495bec)if(_0x3de703!==_0x509460&&_0x3420a5&&_0x3420a5['isIntersecting'](_0x509460['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x412bdc,_0x2825d7){return null==_0x412bdc['end']['nodeBefore']&&_0x412bdc['end']['parent']==_0x412bdc['start']['nodeAfter']?En(_0x412bdc['start']['nodeAfter'],_0x2825d7):_0x412bdc;}function En(_0x36bec7,_0x5d9445){const _0x493889=_0x5d9445['schema']['isObject'](_0x36bec7)||_0x5d9445['schema']['isSelectable'](_0x36bec7);return _0x5d9445['createRange'](_0x5d9445['createPositionAt'](_0x36bec7,'before'),_0x493889?_0x5d9445['createPositionAfter'](_0x36bec7):_0x5d9445['createPositionAt'](_0x36bec7,'end'));}function Tn(_0x2e52aa,_0x1236bd,_0x5c6ebd,_0x205b4d){return!!_n(_0x2e52aa,_0x1236bd)&&_0x5c6ebd['end']['isEqual'](_0x205b4d['start']);}function _n(_0xb739c5,_0x533cee){if(!_0xb739c5['_isDataLoaded']||!_0x533cee['_isDataLoaded'])return!0x1;const _0x365c9b=new Set(Object['keys'](_0xb739c5['attributes'])),_0x3b44e9=new Set(Object['keys'](_0x533cee['attributes']));if(_0x365c9b['delete']('groupId'),_0x3b44e9['delete']('groupId'),0x0==_0x365c9b['size']&&0x0==_0x3b44e9['size'])return!0x0;if(_0x365c9b['size']!=_0x3b44e9['size'])return!0x1;const _0x112f04={..._0xb739c5['attributes']},_0x1ee98b={..._0x533cee['attributes']};return delete _0x112f04['groupId'],delete _0x1ee98b['groupId'],JSON['stringify'](_0x112f04)==JSON['stringify'](_0x1ee98b);}function pn(_0x2a6fdb,_0x361b39){const _0x278544=Ln(_0x2a6fdb['attributes']),_0x36b2f6=Ln(_0x361b39);if(!_0x2a6fdb['_isDataLoaded'])return!0x1;if(!lt(_0x278544['@ai'],_0x36b2f6['@ai']))return!0x1;for(const _0x27d3fa of Object['keys'](_0x36b2f6))if(!lt(_0x278544[_0x27d3fa],_0x36b2f6[_0x27d3fa]))return!0x1;return!0x0;}function Ln(_0x248c0d){const _0x10e5af=Object['assign']({},_0x248c0d);return delete _0x10e5af['skipNestingCheck'],delete _0x10e5af['tablePasteChainId'],_0x10e5af;}function In(_0x4c3a1e){return _0x4c3a1e['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
+ _0x43dfa7();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x36b272,_0x17d1a3,_0x465633,_0x247f7b){super(),this['model']=_0x17d1a3,this['view']=_0x465633,this['commentThreadController']=_0x247f7b,this['_editor']=_0x36b272,this['_acceptCommand']=_0x36b272['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36b272['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5306ae,_0x340608)=>_0x5306ae||_0x340608),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3565f8=>_0x3565f8&&this['_editor']['model']['canEditAt'](_0x17d1a3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x206d63=>_0x206d63&&this['_editor']['model']['canEditAt'](_0x17d1a3['getRanges']())),this['_pendingAction']=null,_0x465633['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x465633,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x465633,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x465633,'change:isDirty',()=>{_0x465633['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 _0xeed9cc=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xeed9cc);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x5c97c1{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xd1f639,_0x2fc904,_0x25a4e4,_0x16d487){super(_0xd1f639),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1c933d(_0xd1f639,Ot(_0xd1f639,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2fc904['authoredAt']),this['bind']('authoredAt')['to'](_0x2fc904),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',_0x2fc904,'authoredAt',this,'descriptionParts',(_0x499633,_0x1fe30e,_0x7f0409)=>{const _0x21762d=_0x7f0409['map'](_0x5848d9=>It(_0x5848d9['content']))['join']('.\x20')+'.',_0x2dda59=_0x2fc904['aiSource']&&'author'===_0x16d487['showAISource']?_0x16d487['aiAuthor']['name']:_0x2fc904['author']['name'],_0x3cf9e9=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x499633-0x1,_0x2dda59,_0x1fe30e?_0x16d487['formatDateTime'](_0x1fe30e):'',new DOMParser()['parseFromString'](_0x21762d,'text/html')['body']['textContent']]);return _0x2fc904['aiSource']&&'pill'===_0x16d487['showAISource']?_0x3cf9e9+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3cf9e9;}),this['focusables']=new _0x2295e0(),this['focusTracker']=new _0x27c2e2(),this['keystrokes']=new _0x1b7ec1(),this['focusCycler']=new _0x2e49fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ca2eb=>_0x2ca2eb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2fc904,this['_localUser']=_0x25a4e4,this['_config']=_0x16d487,_0x16d487['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x444fb9}=this['_config'];this['commentsListView']=new _0x444fb9(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',_0x4ee1b9=>_0x4ee1b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2ad6b9,_0x149025)=>_0x2ad6b9||!!_0x149025);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4929d3}=this['_config'],_0x387ebe=new _0x4929d3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x476403=_0x387ebe['commentInputView'];return _0x387ebe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x476403,'value',(_0x234dd4,_0x15113a,_0x37fb37)=>!!_0x37fb37||_0x234dd4&&!_0x15113a),_0x476403['on']('submit',(_0x3e6d6e,_0x4f3099)=>{this['fire']('addComment',_0x4f3099),_0x476403['editor']['setData']('');}),_0x476403['on']('cancel',()=>this['focus']()),_0x476403['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x387ebe;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x4c5251,_0xc0a3f0,_0x39d75a,_0x19134f){super(_0x4c5251,_0xc0a3f0,_0x39d75a,_0x19134f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22bea5=>_0x22bea5&&_0x22bea5[0x0]?_0x22bea5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4e7771,_0x1c8b88)=>{let _0x4af3a5='';for(const _0x2d6805 of _0x4e7771)_0x4af3a5+='<p>'+It(_0x2d6805['content'],_0x2d6805['color'])+'</p>';return _0x1c8b88?_0x4af3a5:it(_0x4af3a5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x19134f['SuggestionView'](_0x4c5251,_0xc0a3f0,{'formatDateTime':_0x19134f['formatDateTime'],'showAISource':_0x19134f['showAISource'],'aiAuthor':_0x19134f['aiAuthor']}),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 _0x2a380b=this['bindTemplate'],_0x11f027=[this['suggestionView']];return this['commentsListView']&&_0x11f027['push'](this['commentsListView']),this['commentThreadInputView']&&_0x11f027['push'](this['commentThreadInputView']),_0x11f027['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2a380b['if']('isActive','ck-suggestion-wrapper--active'),_0x2a380b['to']('type',_0x1d5d34=>'ck-suggestion-'+_0x1d5d34),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':_0x2a380b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x11f027};}['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));}},Rn=class extends _0x5c97c1{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x1cfa82,_0x17f873,_0x4fc066){super(_0x1cfa82),this['_model']=_0x17f873,this['_config']=_0x4fc066,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17f873),this['acceptButton']=this['_createButton'](Ot(_0x1cfa82,'Accept\x20suggestion'),_0x403898,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x1cfa82,'Discard\x20suggestion'),_0x120ab6,'ck-suggestion--discard','discardSuggestion','sw');const _0x364b10=!!_0x17f873['aiSource']&&'author'===_0x4fc066['showAISource'],_0x5fe4a7=_0x364b10?this['_createAIUser'](_0x4fc066['aiAuthor']):_0x17f873['author'],_0x4e778a=_0x364b10&&!_0x4fc066['aiAuthor']['avatar']?_0x55fbd9:void 0x0;this['userView']=new _0x72bb39(_0x1cfa82,_0x5fe4a7,this['getUserViewNotificationText'](),_0x4e778a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2295e0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x27c2e2(),this['keystrokes']=new _0x1b7ec1(),this['focusCycler']=new _0x2e49fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1750dc=>_0x1750dc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5a0b8f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5a0b8f['innerHTML']=this['description'],this['on']('change:description',(_0x506482,_0x54d05d,_0x25fdba)=>{_0x5a0b8f['innerHTML']=_0x25fdba;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x23d97a=this['bindTemplate'],_0x419107=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x23d97a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23d97a['to']('authoredAt',_0x240f0b=>this['_config']['formatDateTime'](_0x240f0b))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x419107['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x56a606=new _0x5a93f3(this['locale']);_0x56a606['set']({'icon':_0x24f981,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x419107['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x56a606]});}return{'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':_0x419107}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x12d76e){return new _0x30dd6c({'id':'ck-ai-author','name':_0x12d76e['name'],'avatar':_0x12d76e['avatar'],'color':new _0x36ec60(0x0)});}_createButton(_0x2f0491,_0x40c844,_0x1ec8ae,_0x52ffb1,_0x10d9db){const _0x15068c=new _0x5d61b0(this['locale']);return _0x15068c['set']({'label':_0x2f0491,'icon':_0x40c844,'tooltip':!0x0,'tooltipPosition':_0x10d9db}),_0x15068c['extendTemplate']({'attributes':{'class':_0x1ec8ae}}),_0x15068c['on']('execute',()=>{this['fire'](_0x52ffb1,this['_model']['id']);}),_0x15068c;}_setupKeyboardNavigation(){const _0x5db0f0=this['element'];this['keystrokes']['listenTo'](_0x5db0f0);for(const _0x54613f of this['focusables'])this['focusTracker']['add'](_0x54613f['element']),this['keystrokes']['listenTo'](_0x54613f['element']);this['keystrokes']['set']('enter',(_0x531a81,_0x5be979)=>{_0x5db0f0===_0x531a81['target']&&(this['focusCycler']['focusFirst'](),_0x5be979());}),this['keystrokes']['set']('esc',(_0x5abf12,_0x36266f)=>{_0x5db0f0!==_0x5abf12['target']&&(this['focus'](),_0x36266f());});}},yn=class extends _0x3b6d8a{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x1da799,_0x2a3df3,_0x15fa05,_0x454459];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b631e){super(_0x3b631e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5bc7e3=this['editor']['config'];_0x5bc7e3['define']('trackChanges.SuggestionThreadView',kn),_0x5bc7e3['define']('trackChanges.SuggestionView',Rn),_0x5bc7e3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5bc7e3['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x29cfe1,_0x281c58){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x483931,_0x57a5a8]of this['_handleControllerBuffer']){const _0x121406=this['_suggestionToController']['has'](_0x483931);_0x121406||_0x57a5a8?_0x121406&&_0x57a5a8&&this['_destroyController'](_0x483931):this['_initializeController'](_0x483931);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x454459)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x29cfe1,_0x281c58);}init(){const _0x342317=this['editor'],_0x13a7ef=_0x342317['plugins']['get'](on),_0x4037c6=_0x342317['plugins']['get'](_0x15fa05),_0x1db0f1=_0x342317['plugins']['get'](_0x454459),_0x23155a=_0x342317['plugins']['get'](_0x2a3df3);this['_addUIComponentsToFactory'](),_0x1db0f1['addSourceCollector'](()=>{const _0x1cdf0e=[];for(const [_0x361a25,_0x2db34d]of Array['from'](this['_suggestionToController'])){const _0x425e94=_0x361a25['getAllAdjacentSuggestions'](),_0x1ebdff=[];for(const _0x4f9e43 of _0x425e94){if(!_0x4f9e43['isInContent'])continue;if(_0x4f9e43['isMultiRange']){_0x1ebdff['push'](..._0x4f9e43['getRanges']());continue;}const _0x3a6912=_0x4f9e43['getFirstRange']();if(_0x1ebdff['length']>0x0){const _0x1d3d57=_0x1ebdff[0x0]['getJoined'](_0x3a6912);if(_0x1d3d57){_0x1ebdff[0x0]=_0x1d3d57;continue;}}_0x1ebdff['push'](_0x3a6912);}_0x1cdf0e['push']([_0x2db34d['view'],_0x1ebdff]);}return _0x1cdf0e;}),this['listenTo'](_0x13a7ef,'suggestionLoaded',(_0x5325ba,_0x1c0691)=>{this['listenTo'](_0x1c0691,'change:previous',(_0x3a7018,_0x10e008,_0x345ecb,_0x55e6e5)=>{_0x1c0691['isInContent']&&(null==_0x345ecb?(this['_updateController'](_0x55e6e5['head']),this['_handleSuggestionControllerDelayed'](_0x1c0691,!0x1)):(this['_updateController'](_0x345ecb['head']),null==_0x55e6e5&&this['_handleSuggestionControllerDelayed'](_0x1c0691,!0x0)));}),null!==_0x1c0691['previous']?this['_updateController'](_0x1c0691['head']):this['_handleSuggestionControllerDelayed'](_0x1c0691,!0x1);}),this['listenTo'](_0x13a7ef,'suggestionUnloaded',(_0x3b4c92,_0x36e61d,_0x443fea)=>{this['stopListening'](_0x36e61d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x36e61d),this['_suggestionToController']['has'](_0x36e61d)&&this['_destroyController'](_0x36e61d),_0x443fea&&this['_updateController'](_0x443fea['head']);}),this['listenTo'](_0x13a7ef,'suggestionChanged',(_0x17cc77,_0x12351c)=>{this['_updateController'](_0x12351c);}),this['listenTo'](_0x4037c6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23155a,'addComment',(_0x593da1,{threadId:_0x2b42ac,isFromAdapter:_0x996c9a})=>{if(_0x996c9a||!_0x13a7ef['hasSuggestion'](_0x2b42ac))return;const _0x1787df=_0x13a7ef['getSuggestion'](_0x2b42ac);this['_suggestionToController']['get'](_0x1787df)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c676a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7619c3;for(const _0xfc8334 in _0x3c676a){const _0x1b7956=_0xfc8334,_0x35a176=_0x3c676a[_0x1b7956];if('trackChangesLicenseKeyValid'==_0x35a176||'trackChangesLicenseKeyInvalid'==_0x35a176||'trackChangesLicenseKeyExpired'==_0x35a176||'trackChangesLicenseKeyDomainLimit'==_0x35a176||'trackChangesLicenseKeyNotAllowed'==_0x35a176||'trackChangesLicenseKeyEvaluationLimit'==_0x35a176||'trackChangesLicenseKeyUsageLimit'==_0x35a176){delete _0x3c676a[_0x1b7956],_0x7619c3=_0x35a176,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x7619c3&&_0x3c676a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x7619c3&&_0x3c676a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x7619c3&&_0x3c676a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x7619c3&&_0x3c676a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x7619c3&&_0x3c676a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x7619c3&&_0x3c676a['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x2fcd0e){const _0x3b7b10=this['_suggestionToController']['get'](_0x2fcd0e);return _0x3b7b10&&this['editor']['plugins']['get'](_0x15fa05)['getByInnerView'](_0x3b7b10['view'])||null;}getSuggestionForAnnotation(_0x20c41d){const _0x421330=this['_viewToController']['get'](_0x20c41d['innerView']);return _0x421330?_0x421330['model']:null;}_refreshActiveMarkers(){const _0x33cd79=this['editor']['plugins']['get'](_0x15fa05),_0x2b1f12=this['editor']['plugins']['get'](on),_0x2f2f81=Array['from'](_0x33cd79['activeAnnotations'],_0x3e4948=>_0x3e4948['innerView'])['filter'](_0x2e54d4=>this['_viewToController']['has'](_0x2e54d4)),_0x5c661d=[];for(const _0xcf6ea7 of _0x2f2f81){const _0x3bd569=this['_viewToController']['get'](_0xcf6ea7)['model']['getAllAdjacentSuggestions']();_0x5c661d['push'](..._0x3bd569['reduce']((_0xf8c95a,_0x21e4b8)=>[..._0xf8c95a,..._0x21e4b8['getMarkerNames']()],[]));}_0x2b1f12['activeMarkers']=_0x5c661d;}_addUIComponentsToFactory(){const _0x430862=this['editor'],_0x3b8c96=_0x430862['locale'],_0x448af0=Ot(_0x3b8c96,'Track\x20changes'),_0x4f36b9=new _0x649164([{'type':'switchbutton','model':new _0x12dea9({'withText':!0x0,'isToggleable':!0x0,'label':_0x448af0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x430862['plugins']['has']('TrackChangesPreview')&&_0x4f36b9['addMany']([{'type':'separator'},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4a9400 of _0x4f36b9)if(Nn(_0x4a9400)){const _0x4fcf21=_0x430862['commands']['get'](_0x4a9400['model']['commandName']);_0x4a9400['model']['bind']('isOn','isEnabled')['to'](_0x4fcf21,'value','isEnabled');}_0x430862['ui']['componentFactory']['add']('trackChanges',_0x26e469=>this['_createToolbarButton'](_0x26e469,_0x4f36b9,_0x448af0)),_0x430862['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29b36a=>this['_createMenuBarMenu'](_0x29b36a,_0x4f36b9,_0x448af0));}_createToolbarButton(_0x563bf6,_0x5c1608,_0x13b18d){const _0x1ff814=_0x3bda66(_0x563bf6,_0x5d1b49),_0x35e813=this['editor']['commands']['get']('trackChanges');_0x1ff814['buttonView']['set']({'tooltip':_0x13b18d,'label':_0x13b18d,'icon':_0x3335e2}),_0x1ff814['buttonView']['bind']('isOn')['to'](_0x35e813,'value'),_0x1ff814['buttonView']['on']('execute',()=>{_0x35e813['execute'](),this['editor']['editing']['view']['focus']();}),_0x3c4a50(_0x1ff814,_0x5c1608,{'role':'menu'});const _0x1e321c=[];for(const _0x42b8c8 of _0x5c1608)Nn(_0x42b8c8)&&_0x1e321c['push'](this['editor']['commands']['get'](_0x42b8c8['model']['commandName']));const _0x2776f5=_0x1ff814['buttonView'];return _0x2776f5['actionView']['unbind']('isEnabled'),_0x2776f5['arrowView']['unbind']('isEnabled'),_0x2776f5['actionView']['bind']('isEnabled')['to'](_0x35e813,'isEnabled'),_0x2776f5['arrowView']['bind']('isEnabled')['toMany'](_0x1e321c,'isEnabled',(..._0x13898a)=>_0x13898a['some'](_0x42547c=>_0x42547c)),_0x1ff814['on']('execute',_0x37a80e=>{this['editor']['execute'](_0x37a80e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ff814;}_createMenuBarMenu(_0x1354aa,_0x532d92,_0xa42764){const _0x400f96=new _0x261371(_0x1354aa),_0x2aa36e=this['editor']['commands']['get']('trackChanges');_0x400f96['buttonView']['set']({'label':_0xa42764,'icon':_0x3335e2});const _0x3276d5=new _0x5b35bb(_0x1354aa);for(const _0x32fa5b of _0x532d92){if('separator'==_0x32fa5b['type']){_0x3276d5['items']['add'](new _0x37f5d1(_0x1354aa));continue;}const _0x4e692e=new _0x3831d2(_0x1354aa,_0x400f96),_0x3a5d60=new _0x3ac042(_0x1354aa),_0x4e3d60=_0x32fa5b['model'];_0x3a5d60['bind'](...Object['keys'](_0x4e3d60))['to'](_0x4e3d60),_0x3a5d60['delegate']('execute')['to'](_0x400f96),_0x3a5d60['on']('execute',()=>{this['editor']['execute'](_0x4e3d60['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e692e['children']['add'](_0x3a5d60),_0x3276d5['items']['add'](_0x4e692e);}return _0x400f96['bind']('isEnabled')['to'](_0x2aa36e,'isEnabled'),_0x400f96['panelView']['children']['add'](_0x3276d5),_0x400f96;}_initializeController(_0x3da1a9){const _0x1aa055=this['editor'],_0x584d97=_0x1aa055['config'],_0x48d112=_0x1aa055['plugins']['get'](_0x15fa05),_0x25d972=_0x1aa055['plugins']['get'](_0x2a3df3),_0x2732cb=_0x1aa055['plugins']['get'](_0x454459),_0x2e7e48=_0x1aa055['plugins']['get'](_0x1da799)['me'],_0x33c1b5=_0x584d97['get']('trackChanges')['SuggestionThreadView'],_0x5c8664=_0x584d97['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x579878,CommentThreadInputView:_0x46a4ec}=_0x1aa055['plugins']['get']('CommentsUI');let _0x4d2844,_0x3f8c92,_0x17de77;this['_annotationViews']['has'](_0x3da1a9['id'])?(_0x3f8c92=this['_annotationViews']['get'](_0x3da1a9['id']),_0x4d2844=_0x3f8c92['mainView']):(_0x4d2844=new _0x33c1b5(_0x1aa055['locale'],_0x3da1a9,_0x2e7e48,{'disableComments':this['_disableComments'],'editorConfig':{..._0x584d97['get']('comments.editorConfig'),'licenseKey':_0x584d97['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x584d97['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x584d97['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x584d97['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f24bf(_0x584d97['get']('locale'),_0x1aa055['locale']),'CommentView':_0x584d97['get']('comments')['CommentView'],'CommentsListView':_0x579878,'CommentThreadInputView':_0x46a4ec,'SuggestionView':_0x5c8664,'showAISource':_0x584d97['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x584d97['get']('trackChanges.aiAuthor'),'name':_0x584d97['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x1aa055['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4d2844['suggestionView']['acceptButton']['on']('execute',()=>{_0x1aa055['editing']['view']['focus']();}),_0x4d2844['suggestionView']['discardButton']['on']('execute',()=>{_0x1aa055['editing']['view']['focus']();}),_0x3f8c92=_0x48d112['createAnnotationView'](this['editor']['locale'],_0x4d2844),_0x3f8c92['bind']('isDirty')['to'](_0x4d2844,'isDirty'),_0x3f8c92['bind']('length')['to'](_0x4d2844),_0x3f8c92['bind']('type')['to'](_0x4d2844,'type',_0x238d55=>'suggestion-'+_0x238d55),_0x4d2844['on']('escape',()=>{_0x17de77['fire']('escape');}),this['_annotationViews']['set'](_0x3da1a9['id'],_0x3f8c92));const _0x298159=_0x25d972['createCommentThreadController'](_0x3da1a9['commentThread'],_0x4d2844),_0x2c586b=new bn(_0x1aa055,_0x3da1a9,_0x4d2844,_0x298159),_0x6e25e0=_0x3da1a9['getAllAdjacentSuggestions']()['filter'](_0xe7fc6f=>_0xe7fc6f['isInContent']);_0x4d2844['descriptionParts']=_0x1aa055['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x6e25e0),this['_suggestionToController']['set'](_0x3da1a9,_0x2c586b),this['_viewToController']['set'](_0x4d2844,_0x2c586b);const _0x2861f6=()=>{const _0x175fbe=[],_0x299c97=_0x3da1a9['getAllAdjacentSuggestions']()['filter'](_0x5d34b7=>_0x5d34b7['isInContent']);for(const _0x414aaa of _0x299c97)_0x175fbe['push'](..._0x414aaa['getMarkers']());return _0x5032c4(_0x1aa055['editing'],_0x175fbe);};_0x17de77=_0x48d112['createAnnotation']({'view':_0x3f8c92,'target':_0x2861f6,'type':()=>'suggestion-'+_0x2c586b['view']['type'],'isVisible':!!_0x2861f6()}),_0x25d972['_bindAnnotationToEditors'](_0x4d2844,_0x17de77),_0x48d112['add'](_0x17de77),_0x2732cb['registerAnnotation'](_0x17de77);}_destroyController(_0x1680f1){const _0x59f14b=this['editor']['plugins']['get'](_0x2a3df3),_0x378c7b=this['editor']['plugins']['get'](_0x15fa05),_0x313fe2=this['_suggestionToController']['get'](_0x1680f1),_0x16c446=_0x313fe2['view'],_0x42adee=_0x378c7b['getByInnerView'](_0x16c446);_0x59f14b['_unbindEditors'](_0x16c446),_0x42adee&&_0x378c7b['remove'](_0x42adee),this['_suggestionToController']['delete'](_0x1680f1),this['_viewToController']['delete'](_0x16c446),_0x313fe2['destroy']();}_updateController(_0x1d7dc7){if(!_0x1d7dc7['isInContent']||!this['_suggestionToController']['has'](_0x1d7dc7))return;const _0x55e710=this['editor']['plugins']['get'](on),_0x6fce5c=this['_suggestionToController']['get'](_0x1d7dc7),_0x17c5b6=_0x1d7dc7['getAllAdjacentSuggestions']();_0x6fce5c['view']['descriptionParts']=_0x55e710['descriptionFactory']['getDescriptions'](_0x17c5b6);}destroy(){for(const _0xd28053 of this['_suggestionToController']['keys']())this['_destroyController'](_0xd28053);for(const _0x1b91b0 of this['_annotationViews']['values']())_0x1b91b0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x53738b){return'model'in _0x53738b;}var Sn=class extends _0x3b6d8a{static get requires(){return[on,yn,_0x5c2500];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x361c1c){this['editor']['plugins']['get'](on)['adapter']=_0x361c1c;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x528fad){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x528fad);}getSuggestions({skipNotAttached:_0x527bf8=!0x1,toJSON:_0x1b7a95=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x527bf8,'toJSON':_0x1b7a95});}getSuggestion(_0xe10e3d){return this['editor']['plugins']['get'](on)['getSuggestion'](_0xe10e3d);}};const Mn=['Pagination'];var On=class extends _0x3b6d8a{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x5828fc=this['editor'];if(_0x5828fc['config']['define']('trackChangesData.editorCreator',_0x337466=>{const _0x2e1d7f=_0x5828fc['model']['document']['getRootNames']()['reduce']((_0x16d72d,_0x531a83)=>(_0x16d72d[_0x531a83]='',_0x16d72d),{});return _0x5828fc['constructor']['create'](_0x2e1d7f,_0x337466);}),'function'!=typeof _0x5828fc['config']['get']('trackChangesData')['editorCreator'])throw new _0x531c91('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x15685d){return Bn(this['editor'],!0x0,_0x15685d);}getDataWithDiscardedSuggestions(_0x3f44bc){return Bn(this['editor'],!0x1,_0x3f44bc);}},wn=class extends _0x3b6d8a{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1de292){super(_0x1de292),this['result']='end',_0x1de292['editing']['view']['_overlayModeHint']='auto',_0x1de292['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x525c32){return void 0x0!==_0x525c32['getRootsAttributes'];}async function Bn(_0x805097,_0x5cc5a4,_0x114f6d){const _0x349d24=_0x43648c(_0x805097,Mn);if(_0x349d24['plugins']['push'](on,wn),Fn(_0x805097)){_0x349d24['roots']=Object['create'](null);for(const _0x2b2b62 of _0x805097['model']['document']['getRootNames']())_0x349d24['roots'][_0x2b2b62]={'modelAttributes':_0x805097['getRootAttributes'](_0x2b2b62)};}const _0x3ad39e=document['createDocumentFragment'](),_0x4b4b06=_0x805097['config']['get']('trackChangesData')['editorCreator'],_0x48c0ce=await _0x4b4b06(_0x349d24,()=>function(_0x4ded7c){const _0x2cb799=document['createElement']('div');return _0x4ded7c['appendChild'](_0x2cb799),_0x2cb799;}(_0x3ad39e));!function(_0x290d91,_0x33a994){const _0x318eef=_0x290d91['model']['document']['getRootNames']()['reduce']((_0x34da0b,_0x3c2bcd)=>(_0x34da0b[_0x3c2bcd]=_0x290d91['data']['get']({'rootName':_0x3c2bcd}),_0x34da0b),{}),_0x44bbb0=_0x290d91['plugins']['get']('Users')['users']['map'](_0x54a7e5=>({'id':_0x54a7e5['id'],'name':_0x54a7e5['name']})),_0x355a55=_0x290d91['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x380af6=_0x290d91['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16bb9f=_0x33a994['plugins']['get']('Users'),_0x2caeef=_0x33a994['plugins']['get']('TrackChangesEditing'),_0x2b51c5=_0x33a994['plugins']['get']('CommentsRepository');for(const _0x394a1b of _0x2b51c5['getCommentThreads']())_0x394a1b['remove']();for(const _0x179b97 of _0x44bbb0)_0x16bb9f['getUser'](_0x179b97['id'])||_0x16bb9f['addUser'](_0x179b97);_0x16bb9f['me']||_0x16bb9f['useAnonymousUser']();for(const _0x34d631 of _0x380af6)_0x2b51c5['addCommentThread'](_0x34d631);for(const _0x4704bc of _0x355a55)_0x2caeef['addSuggestionData'](_0x4704bc);_0x33a994['data']['set'](_0x318eef);}(_0x805097,_0x48c0ce),_0x48c0ce['execute'](_0x5cc5a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x5845f9=Fn(_0x48c0ce)?_0x48c0ce['getFullData'](_0x114f6d):_0x48c0ce['data']['get'](_0x114f6d);return await _0x48c0ce['destroy'](),_0x5845f9;}var vn=class extends _0x5c97c1{options;constructor(_0x3a8f54,_0x895676){super(_0x3a8f54),this['options']=_0x895676,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x1652c3,_0x1335fe){if(!this['element'])return;const _0x338b15=[];for(const [_0x29c8aa,_0x3e7838]of _0x1652c3){const _0x511dd1=document['createElement']('div');_0x511dd1['setAttribute']('data-ck-root-name',_0x29c8aa),_0x511dd1['className']=_0x3e7838['classes']+'\x20ck-track-changes-preview__root-container',_0x511dd1['innerHTML']=_0x3e7838['content'],_0x338b15['push'](_0x511dd1);}_0x1335fe(this['element'],_0x338b15),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0xa07efb{constructor(_0x4cd2e0){super(_0x4cd2e0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x391a8b=this['editor'],_0x5f45ff=_0x391a8b['locale'],_0x48f10b=_0x391a8b['plugins']['get']('Dialog');let _0x209e29;const _0x4c4d2e=function(_0x456d88){const _0x1c641e={};if('editables'in _0x456d88['ui']['view']){for(const [_0xbd492c,_0x5d010d]of Object['entries'](_0x456d88['ui']['view']['editables']))_0x1c641e[_0xbd492c]=_0x5d010d['element'];}else _0x1c641e[_0x456d88['model']['document']['getRootNames']()[0x0]]=_0x456d88['ui']['view']['editable']['element'];return _0x1c641e;}(_0x391a8b),_0x4ae70d=function(_0x288c9d){let _0x30aad8=0x0;for(const _0x26b835 of Object['values'](_0x288c9d))_0x30aad8=Math['max'](_0x30aad8,_0x26b835['getBoundingClientRect']()['width']);let _0x43d1a5=0x0;for(const _0x7a5c4d of Object['values'](_0x288c9d))_0x43d1a5+=_0x7a5c4d['getBoundingClientRect']()['height'];const _0x5b0fd6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x30aad8,'height':Math['min'](_0x43d1a5,_0x5b0fd6)};}(_0x4c4d2e);_0x48f10b['show']({'id':'finalContentPreview','title':Ot(_0x5f45ff,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x5f45ff,{'dialogRects':_0x4ae70d}),'onHide':()=>{_0x209e29['detachFromDom']();},'onShow':()=>{_0x391a8b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x52859e=>{const _0x40c108=this['_standarizeRootsData'](_0x52859e,_0x391a8b,_0x4c4d2e);_0x48f10b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x40c108,_0x391a8b['config']['get']('trackChanges.preview.renderFunction'));}),_0x209e29=new _0x153785(_0x5f45ff,[_0x48f10b['view']]),_0x209e29['attachToDom'](),_0x209e29['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x391a8b['once']('destroy',()=>{_0x209e29['detachFromDom']();});const _0x2677b7=_0x48f10b['view']['headerView']['class'];_0x48f10b['view']['headerView']['class']=_0x2677b7?_0x2677b7+'\x20ck-reset_all':'ck-reset_all',_0x48f10b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x48f10b['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x242ea4=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x41dcfa=_0x242ea4['previewMode'],_0x5a5f6d={};if('$labels'===_0x41dcfa){for(const _0x1906e7 of _0x242ea4['getMergeFieldsIds']())_0x5a5f6d[_0x1906e7]=_0x242ea4['getLabel'](_0x1906e7)||_0x1906e7;}else{const _0x2cad43='$defaultValues'===_0x41dcfa?_0x242ea4['getDefaultValues']():_0x242ea4['getDataSetValues'](_0x41dcfa,!0x0);for(const _0x1d2174 of Object['entries'](_0x2cad43)){const [_0x13e696,_0x54f959]=_0x1d2174;_0x5a5f6d[_0x13e696]=null!==_0x54f959?_0x54f959:_0x242ea4['getLabel'](_0x13e696)||_0x13e696;}}return{'mergeFieldsData':_0x5a5f6d};}_standarizeRootsData(_0x169d20,_0xb5516a,_0x1088f7){let _0x3676f1;_0x3676f1='string'==typeof _0x169d20?{[_0xb5516a['model']['document']['getRootNames']()[0x0]]:_0x169d20}:_0x169d20;const _0x255e3f=this['_fixMediaEmbeds'](_0x3676f1,_0xb5516a);return function(_0x44f021,_0x3a16c4){for(const [_0x976bf0,_0x1e21cd]of _0x44f021)_0x1e21cd['classes']=_0x3a16c4[_0x976bf0]['classList']['value']['replace']('ck-focused','');return _0x44f021;}(this['_sortRoots'](_0xb5516a)['reduce']((_0x12f8a6,_0x2d857c)=>(_0x12f8a6['push']([_0x2d857c,{'content':_0x255e3f[_0x2d857c],'classes':''}]),_0x12f8a6),[]),_0x1088f7);}['_fixMediaEmbeds'](_0x518777,_0x51db28){if(!_0x51db28['plugins']['has']('MediaEmbedEditing'))return _0x518777;const _0x49d513=_0x51db28['plugins']['get']('MediaEmbedEditing');for(const [_0x3f25bd,_0x18849c]of Object['entries'](_0x518777)){const _0x2e7743=document['createElement']('div');_0x2e7743['innerHTML']=_0x18849c,_0x2e7743['querySelectorAll']('figure.media')['forEach'](_0x181653=>{const _0xae217c=_0x181653['querySelector']('oembed');if(_0xae217c){const _0x53a10d=_0xae217c['getAttribute']('url');if(_0x53a10d){const _0x41a818=_0x49d513['registry']['getMediaViewElement'](new at(_0x51db28['editing']['view']['document']),_0x53a10d,{'elementName':'','renderForEditingView':!0x0}),_0x54198e=document['createElement']('div');_0x54198e['classList']['add']('ck-media__wrapper'),_0x41a818['render'](_0x54198e,_0x51db28['editing']['view']['domConverter']),_0xae217c['replaceWith'](_0x54198e);}}}),_0x518777[_0x3f25bd]=_0x2e7743['innerHTML'];}return _0x518777;}_sortRoots(_0x48bd9a){if(!function(_0x279661){return void 0x0!==_0x279661['getRootsAttributes'];}(_0x48bd9a))return _0x48bd9a['model']['document']['getRootNames']();const _0x366d93=[],_0x14ae10=new Map();for(const _0x32d250 of _0x48bd9a['model']['document']['getRootNames']()){const _0x522a08=_0x48bd9a['editing']['view']['getDomRoot'](_0x32d250)['getClientRects']()['item'](0x0);_0x366d93['push'](_0x32d250),_0x14ae10['set'](_0x32d250,_0x522a08);}return _0x366d93['sort']((_0x3b06ba,_0x1fbd0d)=>{const _0x5c9c6e=_0x14ae10['get'](_0x3b06ba),_0x12203a=_0x14ae10['get'](_0x1fbd0d);return _0x5c9c6e['y']-_0x12203a['y']||_0x5c9c6e['x']-_0x12203a['x'];}),_0x366d93;}},Un=class extends _0x3b6d8a{static get requires(){return[On,_0x9dd83e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e0299){super(_0x4e0299),_0x4e0299['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x4e0299['config']['define']('trackChanges.preview.renderFunction',(_0x2828bb,_0x1735c1)=>{for(const _0x11eb34 of _0x1735c1)_0x2828bb['appendChild'](_0x11eb34);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};