@ckeditor/ckeditor5-track-changes 48.0.0-alpha.4 → 48.0.0-alpha.5

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 _0x4e4626,Plugin as _0x36cdc7,PendingActions as _0x2e911b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x29b6a2,Annotations as _0x37aacb,EditorAnnotations as _0x4d548b,Comments as _0x43d6a5}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x27828f,ObservableMixin as _0x52f4e5,uid as _0x452c31,priorities as _0x49557e,insertToPriorityArray as _0x118bf9,logWarning as _0x32599a,getEnvKeystrokeText as _0x52af58,FocusTracker as _0x1cd8a1,KeystrokeHandler as _0x3bb3d4,Collection as _0x127c97}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2405d8,IconCancel as _0x3f4210,IconTrackChanges as _0xb612ee}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x503ccd,View as _0x42abae,ViewCollection as _0x61aa1c,FocusCycler as _0x4b880c,UIModel as _0x267c84,createDropdown as _0x124eb0,SplitButtonView as _0x506e40,addListToDropdown as _0x4f0d40,MenuBarMenuView as _0x5db244,MenuBarMenuListView as _0x39efcd,ListSeparatorView as _0x1e6b00,MenuBarMenuListItemView as _0x51c91d,MenuBarMenuListItemButtonView as _0x1d66cb,BodyCollection as _0x27da16,Dialog as _0x48dc90}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4f6d6c,SuggestionsConversion as _0x4ac64f,Users as _0x286f71,DocumentCompare as _0x4d48c8,fixElementSuggestionRange as _0x5567b3,hashObject as _0x4ba0b5,surroundingMarkersDetector as _0x3d9988,FOCUS_ANNOTATION_KEYSTROKE as _0x32ea30,AriaDescriptionView as _0x39155b,setupThreadKeyboardNavigation as _0x37ac83,trimHtml as _0x39f018,UserView as _0x5edcb5,LateFocusButtonView as _0x38b9cf,getDateTimeFormatter as _0x2b795f,getAllMarkersDomElementsSorted as _0x42bd04,sanitizeEditorConfig as _0x192ebe}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x106f2f,ModelLiveRange as _0xf2eec6,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x4e4626{['_enabledCommands'];constructor(_0x2f7e46,_0x5a65d5){super(_0x2f7e46),this['_enabledCommands']=_0x5a65d5,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 _0x371c75 of this['editor']['commands']['commands']())_0x371c75['affectsData']&&!this['_enabledCommands']['has'](_0x371c75)&&_0x371c75['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x55ee0b of this['editor']['commands']['commands']())_0x55ee0b['affectsData']&&!this['_enabledCommands']['has'](_0x55ee0b)&&_0x55ee0b['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x4e4626{['_suggestions'];constructor(_0x4828d2,_0x13ab1d){super(_0x4828d2),this['_suggestions']=_0x13ab1d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3e25d8){const _0x3799de=this['_suggestions']['get'](_0x3e25d8);if(!_0x3799de)throw new _0x27828f('track-changes-accept-suggestion-not-found',this);const _0x575962=_0x3799de['getRanges']();this['editor']['model']['canEditAt'](_0x575962)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3799de);}}class ft extends _0x4e4626{['_suggestions'];constructor(_0xf81b5b,_0x1ae7dc){super(_0xf81b5b),this['_suggestions']=_0x1ae7dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x504d44){const _0x46a5f5=this['_suggestions']['get'](_0x504d44);if(!_0x46a5f5)throw new _0x27828f('track-changes-discard-suggestion-not-found',this);const _0x1f8579=_0x46a5f5['getRanges']();this['editor']['model']['canEditAt'](_0x1f8579)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x46a5f5);}}function gt(_0xdc0478,_0x4f58ca){let _0xcee7ee='';return _0xcee7ee+=_0xdc0478['split']('*')['map']((_0x364a90,_0x3bf962)=>_0x3bf962%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x364a90)+'</span>':mt(_0x364a90))['join'](''),_0x4f58ca&&(_0xcee7ee+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4f58ca['value']+'\x22\x20title=\x22'+_0x4f58ca['title']+'\x22></span>'),_0xcee7ee;}function mt(_0x31370e){const _0x8a582c=document['createElement']('span');return _0x8a582c['innerText']=_0x31370e,_0x8a582c['innerHTML'];}function Et(_0x2eb826){return _0x2eb826['sort']((_0x3371a8,_0x5e8dd7)=>'attribute'===_0x3371a8['type']&&'attribute'!==_0x5e8dd7['type']?-0x1:'attribute'!==_0x3371a8['type']&&'attribute'===_0x5e8dd7['type']?0x1:'deletion'==_0x3371a8['type']&&'deletion'!=_0x5e8dd7['type']?-0x1:'deletion'!=_0x3371a8['type']&&'deletion'==_0x5e8dd7['type']?0x1:0x0);}function Tt(_0x3d5bc9,_0x3805c8){let _0x478106,_0x76fc2e=0x0;const _0x5669b9=[],_0x57d327=_0x3805c8['schema'];for(;_0x76fc2e<_0x3d5bc9['length'];){const _0x1719d8=_0x3d5bc9[_0x76fc2e],_0x56d956=_0x3d5bc9[_0x76fc2e+0x1];_0x478106||(_0x478106=_0x3805c8['createPositionBefore'](_0x1719d8)),_t(_0x3805c8,_0x1719d8,_0x56d956)||(_0x5669b9['push'](_0x3805c8['createRange'](_0x478106,_0x57d327['isObject'](_0x1719d8)?_0x3805c8['createPositionAfter'](_0x1719d8):_0x3805c8['createPositionAt'](_0x1719d8,'end'))),_0x478106=null),_0x76fc2e++;}return _0x5669b9;}function _t(_0x39d498,_0x1c7cbf,_0x2533a0){if(!_0x2533a0)return!0x1;const _0x402aef=_0x39d498['createPositionAfter'](_0x1c7cbf),_0x33b4a3=_0x39d498['createPositionBefore'](_0x2533a0);return _0x402aef['isTouching'](_0x33b4a3);}function pt(_0x1eb5c4,_0x135e29,_0x11708e){for(;_0x11708e['length'];){const _0xb262c=_0x11708e['splice'](0x0,0x64);_0x1eb5c4['change'](()=>{for(const _0x4af658 of _0xb262c)_0x4af658['isInContent']&&_0x135e29['execute'](_0x4af658['id']);});}}class Lt extends _0x4e4626{['_command'];['_suggestions'];constructor(_0x3b996f,_0x732c78,_0xbbe160){super(_0x3b996f),this['_command']=_0x732c78,this['_suggestions']=_0xbbe160,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x18173a=Array['from'](this['_suggestions']['values']())['some'](_0x355957=>_0x355957['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x18173a;}['execute'](){const _0x31ea88=Et(Array['from'](this['_suggestions']['values']()));for(const _0x14c3cd of _0x31ea88){const _0xd4699=_0x14c3cd['getRanges']();if(!this['editor']['model']['canEditAt'](_0xd4699))return;}pt(this['editor']['model'],this['_command'],_0x31ea88);}}class It extends _0x4e4626{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1ebd0b,_0x15d5f6,_0x1efce5){super(_0x1ebd0b),this['_command']=_0x15d5f6,this['_suggestions']=_0x1efce5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x315dfb=this['editor']['model']['document']['selection'],_0x913607=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x19d2bf,_0x16cb73){const _0x594e52=Array['from'](_0x19d2bf['getRanges']()),_0x3d8859=new Set();for(const _0x156630 of _0x16cb73)if(_0x156630['isInContent']){for(const _0x4d3482 of _0x594e52)for(const _0x26813a of _0x156630['getRanges']())(_0x4d3482['isIntersecting'](_0x26813a)||_0x19d2bf['isCollapsed']&&!_0x156630['isMultiRange']&&_0x156630['next']&&_0x26813a['end']['isTouching'](_0x4d3482['start']))&&_0x3d8859['add'](_0x156630);}return _0x3d8859;}(_0x315dfb,_0x913607),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x25f047=Et(Array['from'](this['_selectedSuggestions']));for(const _0xf07847 of _0x25f047){const _0x3f5105=_0xf07847['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f5105))return;}pt(this['editor']['model'],this['_command'],_0x25f047);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x52f4e5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xdc4054,_0x539d21){super(),this['id']=_0x539d21['id'],this['type']=_0x539d21['type'],this['subType']=_0x539d21['subType']||null,this['author']=_0x539d21['author'],this['creator']=_0x539d21['creator']||_0x539d21['author'],this['isExternal']=Boolean(_0x539d21['attributes']&&_0x539d21['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x539d21['originalSuggestionId']||null,this['_model']=_0xdc4054,this['_onAccept']=_0x539d21['onAccept'],this['_onDiscard']=_0x539d21['onDiscard'],this['_onAttributesChange']=_0x539d21['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x539d21['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x167f2e=this;for(;_0x167f2e['previous'];)_0x167f2e=_0x167f2e['previous'];return _0x167f2e;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x24d603){this['_markerNames']['add'](_0x24d603);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c97bb=>this['_model']['markers']['get'](_0x1c97bb))['filter'](_0x349c09=>_0x349c09);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3cf869=>{for(const _0x443342 of this['getMarkers']())_0x3cf869['removeMarker'](_0x443342);}),this['_markerNames']['clear']();}['removeMarker'](_0x43a38a){this['_model']['change'](_0x59df6e=>{_0x59df6e['removeMarker'](_0x43a38a);}),this['_markerNames']['delete'](_0x43a38a);}['addRange'](_0x48793b){const _0x4990f9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x4990f9),this['_model']['change'](_0x17728b=>{_0x17728b['addMarker'](_0x4990f9,{'range':_0x48793b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x39aa99){for(const _0x13ad8d of this['getRanges']())if(_0x13ad8d['isIntersecting'](_0x39aa99))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1210bf=>_0x1210bf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a0857,_0x437c1f)=>[..._0x4a0857,..._0x437c1f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x120a0f=this['getRanges']();if(0x1!=_0x120a0f['length'])return null;const _0x2cc464=_0x120a0f[0x0],_0x2e2111=_0x2cc464['start']['nodeAfter'],_0x60a336=_0x2cc464['end']['nodeBefore'];return _0x2e2111 instanceof _0x106f2f?_0x2e2111!=_0x60a336?null:_0x2e2111: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 _0x4cbb19=[];let _0x30fb45=this['head'];for(;_0x30fb45;)_0x4cbb19['push'](_0x30fb45),_0x30fb45=_0x30fb45['next'];return _0x4cbb19;}['setAttribute'](_0x187934,_0x32a4c7){const _0x21c44c=nt(this['attributes']);it(_0x21c44c,_0x187934,_0x32a4c7),st(_0x21c44c,this['attributes'])||(this['attributes']=_0x21c44c,this['_onAttributesChange'](_0x21c44c));}['removeAttribute'](_0x513878){const _0x2d1787=nt(this['attributes']);rt(_0x2d1787,_0x513878),st(_0x2d1787,this['attributes'])||(this['attributes']=_0x2d1787,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 _0x452c31()['substr'](0x1,0x5);}}function At(_0x7704d,_0xf6a788,_0x1d75b0){const _0x5bb9f3=_0x7704d['t'],t=_0x7704d['t'];switch(_0xf6a788){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',_0x1d75b0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d75b0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d75b0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d75b0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d75b0);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',_0x1d75b0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d75b0);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',_0x1d75b0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d75b0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d75b0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d75b0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d75b0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d75b0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1d75b0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d75b0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d75b0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d75b0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d75b0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d75b0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d75b0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d75b0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d75b0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d75b0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d75b0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1d75b0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1d75b0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d75b0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d75b0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d75b0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d75b0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d75b0);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1d75b0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d75b0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d75b0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d75b0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d75b0);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'},_0x1d75b0);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_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'},_0x1d75b0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d75b0);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1d75b0);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1d75b0);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1d75b0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1d75b0);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x5bb9f3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d75b0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5bb9f3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1d75b0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1d75b0);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'},_0x1d75b0);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'},_0x1d75b0);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'},_0x1d75b0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf6a788;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x86518c,_0x52bba6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x86518c,this['_locale']=_0x52bba6;}['getDescriptions'](_0x236986){const _0x25fb88=[],_0x1342ac=new Set(),_0x23dba5=new Set();for(let _0x3d6fa1=0x0;_0x3d6fa1<_0x236986['length'];_0x3d6fa1++){const _0x4b03fb=_0x236986[_0x3d6fa1];if(!_0x4b03fb['isInContent'])continue;const _0x1679ad=this['_handleCustomCallbackDescription'](_0x4b03fb);if(_0x1679ad){if(null!=_0x4b03fb['subType']){if(_0x1342ac['has'](_0x4b03fb['subType']))continue;_0x1342ac['add'](_0x4b03fb['subType']);}_0x25fb88['push'](_0x1679ad);}else{if('attribute'==_0x4b03fb['type']){const _0x4a6166=_0x4b03fb['data']['key'];if(_0x23dba5['has'](_0x4a6166))continue;_0x23dba5['add'](_0x4b03fb['data']['key']),_0x4a6166==Ke?this['_handleRenameSuggestionDescription'](_0x25fb88,_0x4b03fb):this['_handleAttributeSuggestionDescription'](_0x25fb88,_0x4b03fb);continue;}'insertion'!=_0x4b03fb['type']&&'deletion'!=_0x4b03fb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x25fb88,_0x4b03fb,_0x236986[_0x3d6fa1+0x1]);}}return this['_resolveDescriptionItems'](_0x25fb88);}['registerDescriptionCallback'](_0x59d1e9){this['_customCallbacks']['push'](_0x59d1e9);}['registerElementLabel'](_0x4f54e3,_0x439eb2,_0x3286b2=_0x49557e['normal']){'function'==typeof _0x4f54e3?_0x118bf9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f54e3,'label':_0x439eb2,'priority':_0x3286b2}):this['_itemLabels']['set'](_0x4f54e3,_0x439eb2);}['registerAttributeLabel'](_0x2e9435,_0x1d391c){this['_attributeLabels']['set'](_0x2e9435,_0x1d391c);}['getItemLabel'](_0x5a1e9e,_0x1da401=0x1){let _0xc70af8;for(const _0x1ef40d of this['_itemLabelsCallbacks'])if(_0x1ef40d['matchingCallback'](_0x5a1e9e)){_0xc70af8=_0x1ef40d['label'];break;}return _0xc70af8||(_0xc70af8=this['_itemLabels']['get'](_0x5a1e9e['name'])),_0xc70af8?_0xc70af8(_0x1da401):0x1!==_0x1da401?_0x1da401+'\x20'+_0x5a1e9e['name']+'s':''+_0x5a1e9e['name'];}['_addDescriptionItems'](_0x48ccb6,_0x172c9e){const _0x1b1627=_0x172c9e['getFirstRange']()['getWalker'](),_0x17c274='insertion'==_0x172c9e['type']?'add':'remove';for(const _0x521e03 of _0x1b1627){const _0x3161fa=_0x521e03['item'],_0x4df107=_0x48ccb6[_0x48ccb6['length']-0x1];if(_0x3161fa['is']('$textProxy'))_0x4df107&&_0x4df107['type']['indexOf']('Container')>-0x1&&_0x48ccb6['pop'](),_0x4df107&&'text'==_0x4df107['type']?_0x4df107[_0x17c274]+=_0x3161fa['data']:_0x48ccb6['push']({'type':'text','add':'add'==_0x17c274?_0x3161fa['data']:'','remove':'remove'==_0x17c274?_0x3161fa['data']:''});else{if(this['_schema']['isObject'](_0x3161fa)){const _0x2f0424=_0x3161fa;if(_0x4df107&&_0x4df107['type']['indexOf']('Container')>-0x1&&_0x48ccb6['pop'](),'elementEnd'==_0x521e03['type'])continue;_0x4df107&&_0x4df107['type']==_0x17c274+'Object'&&_0x4df107['element']['name']==_0x2f0424['name']?_0x4df107['quantity']++:_0x48ccb6['push']({'type':_0x17c274+'Object','element':_0x2f0424,'quantity':0x1}),_0x1b1627['skip'](_0x489c3f=>!('elementEnd'==_0x489c3f['type']&&_0x489c3f['item']==_0x3161fa));}else{if(this['_schema']['checkChild'](_0x3161fa,'$text')||_0x3161fa['is']('element','softBreak')){const _0xb92c6=_0x3161fa;if('add'==_0x17c274&&'elementStart'==_0x521e03['type']||'remove'==_0x17c274&&'elementEnd'==_0x521e03['type'])continue;if(_0x4df107&&-0x1==_0x4df107['type']['indexOf']('Container')){'text'==_0x4df107['type']&&(_0x4df107[_0x17c274]+='\x0a');continue;}let _0x44fd20;if(_0x44fd20='add'==_0x17c274?_0xb92c6['nextSibling']&&!this['_schema']['isObject'](_0xb92c6['nextSibling'])?_0xb92c6['nextSibling']:null:_0xb92c6['previousSibling']&&!this['_schema']['isObject'](_0xb92c6['previousSibling'])?_0xb92c6['previousSibling']:null,_0xb92c6['isEmpty']||_0x44fd20&&_0x44fd20['isEmpty']){const _0x4618a3=_0x44fd20&&_0x44fd20['isEmpty']?_0x44fd20:_0xb92c6;_0x4df107&&_0x4df107['type']==_0x17c274+'EmptyContainer'&&_0x4df107['element']['name']==_0x4618a3['name']?_0x4df107['quantity']++:_0x48ccb6['push']({'type':_0x17c274+'EmptyContainer','element':_0x4618a3,'quantity':0x1});}else _0x48ccb6['push']({'type':_0x17c274+'Container','element':_0xb92c6});}}}}}['_resolveDescriptionItems'](_0x486c69){const _0x1c91e5=this['_locale'],_0x5872cb=[],_0x54ddb8=[],_0x2f107c=[];for(const _0x4f4261 of _0x486c69)switch(_0x4f4261['type']){case'text':if(_0x4f4261['add']=_0x4f4261['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f4261['remove']=_0x4f4261['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f4261['add']&&''!=_0x4f4261['remove']){_0x5872cb['push']({'type':'replace','content':At(_0x1c91e5,'REPLACE_TEXT',['\x22'+_0x4f4261['remove']+'\x22','\x22'+_0x4f4261['add']+'\x22'])});continue;}if(null!=_0x4f4261['add']['match'](/^ +$/)){_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Insert:*\x20%0',At(_0x1c91e5,'ELEMENT_SPACE',_0x4f4261['add']['length']))});continue;}if(null!=_0x4f4261['remove']['match'](/^ +$/)){_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Remove:*\x20%0',At(_0x1c91e5,'ELEMENT_SPACE',_0x4f4261['remove']['length']))});continue;}if(''!=_0x4f4261['add']){_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Insert:*\x20%0','\x22'+_0x4f4261['add']+'\x22')});continue;}_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Remove:*\x20%0','\x22'+_0x4f4261['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Insert:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Remove:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'addContainer':_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Split:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'removeContainer':_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Merge:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'addFormat':_0x54ddb8['push'](_0x4f4261['key']);continue;case'removeFormat':_0x2f107c['push'](_0x4f4261['key']);continue;default:_0x5872cb['push'](_0x4f4261);}if(_0x54ddb8['length']){const _0x19a9f2=_0x54ddb8['map'](_0x3b1df5=>this['_attributeLabels']['has'](_0x3b1df5)?this['_attributeLabels']['get'](_0x3b1df5):_0x3b1df5)['join'](',\x20');_0x5872cb['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x19a9f2)});}if(_0x2f107c['length']){const _0x39c5bf=_0x2f107c['map'](_0x2b9ba3=>this['_attributeLabels']['has'](_0x2b9ba3)?this['_attributeLabels']['get'](_0x2b9ba3):_0x2b9ba3)['join'](',\x20');_0x5872cb['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x39c5bf)});}return _0x5872cb;}['_handleCustomCallbackDescription'](_0x1468c3){for(const _0x4a7484 of this['_customCallbacks']){const _0x14308a=_0x4a7484(_0x1468c3);if(_0x14308a&&'type'in _0x14308a)return _0x14308a;}}['_handleAttributeSuggestionDescription'](_0x516433,_0x54f9d1){const _0x199279=_0x54f9d1['data'],_0x1b199d=void 0x0===_0x199279['newValue']?'removeFormat':'addFormat';_0x516433['push']({'type':_0x1b199d,'key':_0x199279['key']});}['_handleRenameSuggestionDescription'](_0x2ee622,_0x477f66){_0x2ee622['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x477f66['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x43624d,_0x23137c,_0x593f60){if(this['_addDescriptionItems'](_0x43624d,_0x23137c),_0x593f60&&_0x593f60['getFirstRange']()&&!_0x23137c['getFirstRange']()['end']['isEqual'](_0x593f60['getFirstRange']()['start'])){const _0x10b44f=_0x43624d[_0x43624d['length']-0x1],_0x34bf1d='insertion'==_0x23137c['type']?'add':'remove';_0x10b44f&&'text'==_0x10b44f['type']&&(_0x10b44f[_0x34bf1d]+='\x0a');}}}class Ct extends _0x36cdc7{['afterInit'](){const _0x33362f=this['editor'],_0xbafe1f=_0x33362f['plugins']['get']('TrackChangesEditing');_0x33362f['commands']['get']('showAIAssistant')&&_0xbafe1f['enableCommand']('showAIAssistant');}}class yt extends _0x36cdc7{['afterInit'](){const _0x15a011=this['editor'],_0x59a040=_0x15a011['plugins']['get']('TrackChangesEditing');_0x15a011['commands']['get']('toggleAi')&&_0x59a040['enableCommand']('toggleAi');}}class Nt extends _0x36cdc7{['afterInit'](){const _0x40532b=this['editor'],_0x5b5942=_0x40532b['plugins']['get']('TrackChangesEditing');_0x40532b['commands']['get']('aiQuickAction')&&_0x5b5942['enableCommand']('aiQuickAction');}}class Rt extends _0x36cdc7{['afterInit'](){const _0x1196cd=this['editor'],_0x39cbb1=_0x1196cd['locale'];if(!_0x1196cd['plugins']['has']('AlignmentEditing'))return;const _0x54fa9f=_0x1196cd['plugins']['get']('TrackChangesEditing');_0x54fa9f['enableDefaultAttributesIntegration']('alignment'),_0x54fa9f['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x39cbb1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27aaf0=this['editor'],_0xdaa2d5=_0x27aaf0['locale'];_0x27aaf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd24c16=>{if('formatBlock'!=_0xd24c16['type'])return;const {data:_0x2e4340}=_0xd24c16;if(_0x2e4340&&'alignment'==_0x2e4340['commandName']){const _0x303f56=_0x2e4340['commandParams'][0x0]['value'];return{'type':'format','content':At(_0xdaa2d5,'*Format:*\x20%0',function(_0x48a66b){switch(_0x48a66b){case'left':return At(_0xdaa2d5,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0xdaa2d5,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0xdaa2d5,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0xdaa2d5,'FORMAT_JUSTIFY_TEXT');}}(_0x303f56))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x36cdc7{['afterInit'](){const _0x1a1e5d=this['editor'],_0x17d410=_0x1a1e5d['plugins']['get']('TrackChangesEditing'),_0x45c055=_0x1a1e5d['locale'];for(const _0x485d9e of St){if(!_0x1a1e5d['plugins']['has'](_0x485d9e))continue;const _0x54367a=_0x485d9e['slice'](0x0,-0x7)['toLowerCase'](),_0x45e3a2='FORMAT_'+_0x54367a['toUpperCase']();_0x17d410['enableDefaultAttributesIntegration'](_0x54367a),_0x17d410['descriptionFactory']['registerAttributeLabel'](_0x54367a,At(_0x45c055,_0x45e3a2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3551bf=this['editor'],_0x10bc8f=_0x3551bf['locale'],_0x5b8080=_0x3551bf['plugins']['get']('TrackChangesEditing');function _0x36b807(_0x1a56dc,_0x4304a2){_0x5b8080['descriptionFactory']['registerDescriptionCallback'](_0x282b00=>{if('formatInline'!=_0x282b00['type'])return;const {data:_0x4ee817}=_0x282b00;return _0x4ee817&&_0x4ee817['commandName']===_0x1a56dc?_0x4ee817['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x10bc8f,'*Format:*\x20%0',_0x4304a2)}:{'type':'format','content':At(_0x10bc8f,'*Remove\x20format:*\x20%0',_0x4304a2)}:void 0x0;});}_0x36b807('bold',At(_0x10bc8f,'FORMAT_BOLD')),_0x36b807('italic',At(_0x10bc8f,'FORMAT_ITALIC')),_0x36b807('underline',At(_0x10bc8f,'FORMAT_UNDERLINE')),_0x36b807('code',At(_0x10bc8f,'FORMAT_CODE')),_0x36b807('strikethrough',At(_0x10bc8f,'FORMAT_STRIKETHROUGH')),_0x36b807('subscript',At(_0x10bc8f,'FORMAT_SUBSCRIPT')),_0x36b807('superscript',At(_0x10bc8f,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x36cdc7{['afterInit'](){const _0x182cb4=this['editor'],_0x56c68f=_0x182cb4['locale'];if(!_0x182cb4['plugins']['has']('BlockQuoteEditing'))return;const _0x2c24e3=_0x182cb4['plugins']['get']('TrackChangesEditing'),_0x4655a3=this['editor']['commands']['get']('blockQuote');_0x2c24e3['enableCommand']('blockQuote',(_0x41cd7a,_0xda6c56={})=>{const _0x3a76d6=this['editor']['model']['document']['selection'],_0x3ca351=_0xda6c56&&void 0x0!==_0xda6c56['forceValue']?_0xda6c56['forceValue']:!_0x4655a3['value'];let _0x5d16fe=[];if(_0x3ca351){const _0x417a60=Array['from'](_0x3a76d6['getSelectedBlocks']())['filter'](_0xfe7a16=>wt(_0xfe7a16)||function(_0x360f50,_0x18441f){const _0x5aa58d=_0x18441f['checkChild'](_0x360f50['parent'],'blockQuote'),_0x511879=_0x18441f['checkChild'](['$root','blockQuote'],_0x360f50);return _0x5aa58d&&_0x511879;}(_0xfe7a16,this['editor']['model']['schema']));_0x5d16fe=Tt(_0x417a60,_0x182cb4['model']);}else{const _0x51d103=Array['from'](_0x3a76d6['getSelectedBlocks']())['filter'](_0x2e9e96=>wt(_0x2e9e96));_0x5d16fe=Tt(_0x51d103,_0x182cb4['model']);}_0x182cb4['model']['change'](()=>{for(const _0x2c705c of _0x5d16fe)_0x2c24e3['markBlockFormat'](_0x2c705c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3ca351}]});});}),_0x2c24e3['descriptionFactory']['registerDescriptionCallback'](_0x55a7f8=>{const {data:_0x569afd}=_0x55a7f8;if(_0x569afd&&'blockQuote'==_0x569afd['commandName']){const _0x188535=At(_0x56c68f,'ELEMENT_BLOCK_QUOTE');return _0x569afd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x56c68f,'*Set\x20format:*\x20%0',_0x188535)}:{'type':'format','content':At(_0x56c68f,'*Remove\x20format:*\x20%0',_0x188535)};}});}}function wt(_0x2ca477){return'blockQuote'==_0x2ca477['parent']['name'];}class Bt extends _0x36cdc7{['afterInit'](){const _0x4ed1ea=this['editor'],_0x726790=_0x4ed1ea['locale'],_0x2d41b8=_0x4ed1ea['plugins']['get']('TrackChangesEditing');_0x4ed1ea['plugins']['has']('BookmarkEditing')&&(_0x2d41b8['enableCommand']('insertBookmark'),_0x2d41b8['enableDefaultAttributesIntegration']('updateBookmark'),_0x2d41b8['descriptionFactory']['registerDescriptionCallback'](_0x29a4eb=>{if('insertion'!=_0x29a4eb['type']&&'deletion'!=_0x29a4eb['type']&&'attribute'!=_0x29a4eb['type'])return;const _0x244e27=_0x29a4eb['getContainedElement']();if(null==_0x244e27)return;if(!_0x244e27['is']('element','bookmark'))return;const _0x22f863=_0x244e27['getAttribute']('bookmarkId');if('insertion'==_0x29a4eb['type'])return{'type':'insertion','content':At(_0x726790,'*Insert:*\x20%0','\x22'+_0x22f863+'\x22\x20'+At(_0x726790,'ELEMENT_BOOKMARK'))};if('deletion'==_0x29a4eb['type'])return{'type':'deletion','content':At(_0x726790,'*Remove:*\x20%0','\x22'+_0x22f863+'\x22\x20'+At(_0x726790,'ELEMENT_BOOKMARK'))};const {data:_0x55d620}=_0x29a4eb;if(!_0x55d620||'bookmarkId'!=_0x55d620['key'])return;return{'type':'format','content':At(_0x726790,'*Set\x20bookmark:*\x20%0','\x22'+_0x55d620['newValue']+'\x22')};}));}}class Ft extends _0x36cdc7{['afterInit'](){const _0x3fa6b9=this['editor'];_0x3fa6b9['plugins']['has']('CaseChange')&&(_0x3fa6b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3fa6b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3fa6b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x36cdc7{['afterInit'](){const _0x6f9ea7=this['editor'];_0x6f9ea7['commands']['get']('ckbox')&&_0x6f9ea7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x36cdc7{['afterInit'](){const _0x87658a=this['editor'];if(!_0x87658a['plugins']['has']('CodeBlock'))return;const _0x19cd09=_0x87658a['plugins']['get']('TrackChangesEditing'),_0x50446b=_0x87658a['locale'],_0x520545=_0x87658a['config']['get']('codeBlock')['languages'],_0x4a4f6e=_0x87658a['commands']['get']('codeBlock');_0x19cd09['enableCommand']('indentCodeBlock'),_0x19cd09['enableCommand']('outdentCodeBlock'),_0x19cd09['enableCommand']('codeBlock',(_0x1d784a,_0xee0cf9={})=>{const _0x3294da=_0x87658a['model'],_0x118fe5=_0x87658a['model']['document']['selection'],_0x29db25=_0xee0cf9&&void 0x0!==_0xee0cf9['forceValue']?_0xee0cf9['forceValue']:!_0x4a4f6e['value'];let _0x3ede07;_0xee0cf9['language']||(_0xee0cf9['language']=_0x520545[0x0]['language']),_0x3ede07=_0x29db25?Array['from'](_0x118fe5['getSelectedBlocks']())['filter'](_0x26a3ee=>xt(_0x26a3ee)||function(_0x98cb23,_0x25596b){if(_0x98cb23['is']('rootElement')||_0x25596b['isLimit'](_0x98cb23))return!0x1;return _0x25596b['checkChild'](_0x98cb23['parent'],'codeBlock');}(_0x26a3ee,_0x3294da['schema'])):Array['from'](_0x118fe5['getSelectedBlocks']())['filter'](_0x52f26b=>xt(_0x52f26b));const _0x477143=Tt(_0x3ede07,_0x3294da);_0x3294da['change'](()=>{for(const _0x487df0 of _0x477143)_0x19cd09['markBlockFormat'](_0x487df0,{'commandName':'codeBlock','commandParams':[{..._0xee0cf9,'forceValue':_0x29db25}],'formatGroupId':'blockName'});});}),(_0x19cd09['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a32b7=>At(_0x50446b,'ELEMENT_CODE_BLOCK',_0x2a32b7)),_0x19cd09['descriptionFactory']['registerDescriptionCallback'](_0x26aea8=>{if('formatBlock'!=_0x26aea8['type'])return;const _0x24421a=_0x50446b['t'],{data:_0x177050}=_0x26aea8;if(!_0x177050||'codeBlock'!=_0x177050['commandName'])return;const _0x93f588=_0x177050['commandParams'][0x0]['language'],_0x139f47=_0x24421a(_0x520545['find'](_0x434bbd=>_0x434bbd['language']===_0x93f588)['label'])['toLowerCase']();return _0x177050['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x50446b,'*Set\x20format:*\x20%0',At(_0x50446b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x139f47+')')}:{'type':'format','content':At(_0x50446b,'*Remove\x20format:*\x20%0',At(_0x50446b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x3cc8c9){return'codeBlock'==_0x3cc8c9['name'];}class Pt extends _0x36cdc7{['afterInit'](){const _0xc7a36a=this['editor'];if(!_0xc7a36a['plugins']['has']('CommentsEditing'))return;_0xc7a36a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x36cdc7{static get['requires'](){return[at];}['init'](){const _0x10d47a=this['editor'],_0x3c8f0b=_0x10d47a['plugins']['get']('TrackChangesEditing');_0x3c8f0b['enableCommand']('delete');const _0x3861d9=_0x10d47a['commands']['get']('deleteForward');_0x3c8f0b['enableCommand']('deleteForward',(_0x12cb08,_0x397e0f={})=>{const _0x434ba2=_0x10d47a['model']['createSelection'](_0x10d47a['model']['document']['selection']);_0x434ba2['isCollapsed']&&_0x10d47a['model']['modifySelection'](_0x434ba2,{'direction':'forward','unit':_0x397e0f['unit']});const _0x5d00d6=_0x434ba2['getFirstRange'](),_0x5450ed=_0xf2eec6['fromRange'](_0x5d00d6);let _0x231a48;_0x12cb08(_0x397e0f),_0x231a48='$graveyard'==_0x5450ed['root']['rootName']?_0x10d47a['model']['createRange'](_0x5d00d6['start']):_0x10d47a['model']['createRange'](_0x5450ed['start'],_0x5450ed['end']),_0x5450ed['detach'](),_0x10d47a['model']['enqueueChange'](_0x3861d9['buffer']['batch'],_0x307f1d=>{_0x3861d9['buffer']['lock'](),_0x307f1d['setSelection'](_0x307f1d['createRange'](_0x231a48['end'])),_0x3861d9['buffer']['unlock']();});});}}class Gt extends _0x36cdc7{['afterInit'](){const _0xe64f0b=this['editor'];if(!_0xe64f0b['plugins']['has']('ListEditing'))return;const _0x5a6bca=_0xe64f0b['locale'],_0xa6b117=_0xe64f0b['plugins']['get']('TrackChangesEditing'),_0x5f1da6=_0xe64f0b['plugins']['has']('TodoListEditing'),_0x293f6d=!!_0xe64f0b['config']['get']('list.multiBlock');function _0x2a9b48(_0x4df2b1){return{'type':'format','content':''+At(_0x5a6bca,'*Set\x20format:*\x20%0',_0x4df2b1)};}function _0x468ba7(_0x55b4b6){return{'type':'format','content':''+At(_0x5a6bca,'*Remove\x20format:*\x20%0',_0x55b4b6)};}_0xa6b117['enableDefaultAttributesIntegration']('numberedList'),_0xa6b117['enableDefaultAttributesIntegration']('bulletedList'),_0xa6b117['enableDefaultAttributesIntegration']('customNumberedList'),_0xa6b117['enableDefaultAttributesIntegration']('customBulletedList'),_0xa6b117['enableDefaultAttributesIntegration']('indentList'),_0xa6b117['enableDefaultAttributesIntegration']('outdentList'),_0xa6b117['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xa6b117['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x293f6d&&(_0xa6b117['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xa6b117['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5f1da6&&(_0xa6b117['enableDefaultAttributesIntegration']('todoList'),_0xa6b117['enableDefaultAttributesIntegration']('checkTodoList'),_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x1398da=>{const {data:_0x490a5d}=_0x1398da;if(_0x490a5d&&'todoListChecked'==_0x490a5d['key'])return{'type':'format','content':_0x490a5d['newValue']?At(_0x5a6bca,'*Check\x20item*'):At(_0x5a6bca,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1748f7=>{if(_0x1748f7['batch']['isUndo'])return!0x1;let _0x490639=!0x1;const _0x3fb8eb=_0xa6b117['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a1465=>'todoListChecked'===_0xa6b117['_getAttributeKey'](_0x4a1465));for(const _0x4f135b of _0x3fb8eb){'todo'!=_0x4f135b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xa6b117['_findSuggestions'](_0x4f135b['getFirstRange'](),'attribute')['find'](_0x4e76fc=>'listType'===_0xa6b117['_getAttributeKey'](_0x4e76fc['suggestion']))||(_0x1748f7['removeMarker'](_0x4f135b['getFirstMarker']()),_0x490639=!0x0));}return _0x490639;})),_0xa6b117['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5a6bca,'FORMAT_INDENT'));const _0x2c0125={'type':'format','content':''};_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x593b1d=>{const {data:_0x1cf8bb}=_0x593b1d;if(!_0x1cf8bb||'listType'!=_0x1cf8bb['key'])return;let _0x372208=_0x593b1d['head'];for(;_0x372208;){if(_0x372208['data']&&(('listStyle'==_0x372208['data']['key']||'listMarkerStyle'==_0x372208['data']['key'])&&(_0x372208['data']['newValue']&&'default'!=_0x372208['data']['newValue']||'default'!=_0x372208['data']['oldValue']&&!_0x1cf8bb['newValue'])||!_0x293f6d&&_0x372208['data']['key']==Ke))return _0x2c0125;_0x372208=_0x372208['next'];}if(null==_0x1cf8bb['newValue'])switch(_0x1cf8bb['oldValue']){case'bulleted':return _0x468ba7(At(_0x5a6bca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x468ba7(At(_0x5a6bca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x468ba7(At(_0x5a6bca,'ELEMENT_TODO_LIST'));}switch(_0x1cf8bb['newValue']){case'bulleted':return _0x2a9b48(At(_0x5a6bca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a9b48(At(_0x5a6bca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a9b48(At(_0x5a6bca,'ELEMENT_TODO_LIST'));}}),_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x22fd4f=>{const {data:_0x5f389e}=_0x22fd4f;if(_0x5f389e&&'listIndent'==_0x5f389e['key'])return null==_0x5f389e['newValue']||null==_0x5f389e['oldValue']&&0x0==_0x5f389e['newValue']?_0x2c0125:void 0x0;}),_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x51b4a5=>{if('attribute'!=_0x51b4a5['type'])return;const {data:_0xda4423}=_0x51b4a5;if(!_0xda4423||'listItemId'!=_0xda4423['key'])return;const _0x35afca=Ht(_0x51b4a5);return'newValue'==_0x35afca?{'type':'format','content':At(_0x5a6bca,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35afca?{'type':'format','content':At(_0x5a6bca,'*Split:*\x20list\x20item')}:_0x2c0125;}),_0xe64f0b['model']['document']['registerPostFixer'](_0x63f4a1=>this['listItemIdFixer'](_0x63f4a1)),_0xe64f0b['model']['document']['registerPostFixer'](_0x3143fc=>this['noTrackChangesFixer'](_0x3143fc)),_0xe64f0b['model']['document']['on']('change:data',(_0xf0fbd9,_0x30049e)=>{if(_0x30049e['isUndo']||!_0x30049e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x127a4d){if(_0x127a4d['batch']['isUndo']||!_0x127a4d['batch']['isLocal'])return!0x1;let _0x1f06b7=!0x1;const _0x3f97c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf5a9a8=>_0xf5a9a8['data']&&'listItemId'==_0xf5a9a8['data']['key'])['filter'](_0x737e8e=>_0x737e8e['data']['newValue']&&_0x737e8e['data']['oldValue']);for(const _0x382a03 of _0x3f97c9)Ht(_0x382a03)||(_0x127a4d['removeMarker'](_0x382a03['getFirstMarker']()),_0x1f06b7=!0x0);return _0x1f06b7;}['noTrackChangesFixer'](_0x48f37b){if(_0x48f37b['batch']['isUndo']||!_0x48f37b['batch']['isLocal'])return!0x1;const _0x1dd5d2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1dd5d2['trackChangesCommand']['value'])return!0x1;let _0x5cce5c=!0x1;const _0x1959ac=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb35101=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x372a0f=>'attribute'==_0x372a0f['type'])['filter'](_0x4f2ae2=>_0x1959ac['includes'](_0x4f2ae2['attributeKey']));if(0x0==_0xb35101['length'])return _0x5cce5c;for(const _0xf789fe of _0xb35101){const _0x56bd21=_0x1dd5d2['_findSuggestions'](_0xf789fe['range'],'attribute')['filter'](_0x175d39=>!_0x175d39['meta']['isNextTo'])['map'](_0x47b66f=>_0x47b66f['suggestion'])['filter'](_0x850628=>{const _0x14d3fb=_0x1dd5d2['_getAttributeKey'](_0x850628);return _0x1959ac['includes'](_0x14d3fb);});if(_0x56bd21['length']){for(const _0x416121 of _0x56bd21)_0x48f37b['removeMarker'](_0x416121['getFirstMarker']());_0x5cce5c=!0x0;}}return _0x5cce5c;}['assureChains'](){const _0x590a6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1708fe=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54a372;const _0x3749ba=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x958110=>{if(_0x958110['data']['oldRange']||!_0x958110['data']['newRange'])return null;if(!_0x958110['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x299165}=_0x4f6d6c(_0x958110['name']);if(!_0x590a6c['hasSuggestion'](_0x299165))return null;const _0x219856=_0x590a6c['getSuggestion'](_0x299165);return _0x1708fe['includes'](_0x219856['data']['key']);})['map'](_0x96e5d4=>{const {id:_0x1e85b1}=_0x4f6d6c(_0x96e5d4['name']),_0x7c687a=_0x590a6c['getSuggestion'](_0x1e85b1);return _0x54a372=_0x7c687a['attributes']['groupId'],_0x7c687a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3749ba['size'])return;const _0x543ed1=_0x590a6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa7835f=>'attribute'==_0xa7835f['type']&&_0xa7835f['data']&&_0x1708fe['includes'](_0xa7835f['data']['key'])&&_0xa7835f['attributes']['groupId']!=_0x54a372)['map'](_0x465826=>({'listItem':_0x465826['getFirstRange']()['start']['nodeAfter'],'groupId':_0x465826['attributes']['groupId']})),_0x953fd0=new Set();for(const {groupId:_0xa1526d,listItem:_0xeb7872}of _0x543ed1)_0x3749ba['has'](_0xeb7872)&&_0x953fd0['add'](_0xa1526d);for(const _0x2abce9 of _0x590a6c['getSuggestions']())_0x953fd0['has'](_0x2abce9['attributes']['groupId'])&&_0x2abce9['setAttribute']('groupId',_0x54a372);}['_supportLegacySuggestions'](){const _0x30d4b9=this['editor'],_0x441abc=_0x30d4b9['locale'],_0x6c1750=_0x30d4b9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x6c1750['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3451e4,_0x1ee01e){const _0x52eaa6=[];for(let _0x2d51ff of _0x3451e4)_0x2d51ff['start']['nodeAfter']===_0x2d51ff['end']['parent']&&(_0x2d51ff=_0x30d4b9['model']['createRange'](_0x30d4b9['model']['createPositionAt'](_0x2d51ff['start']['nodeAfter'],0x0))),_0x52eaa6['push'](_0x2d51ff);_0x30d4b9['model']['change'](_0x56b18a=>{const _0x559f4e=_0x30d4b9['model']['document']['selection'],_0xe53e0a=Array['from'](_0x559f4e['getRanges']())['map'](_0x594a4b=>_0xf2eec6['fromRange'](_0x594a4b));_0x56b18a['setSelection'](_0x52eaa6),_0x30d4b9['commands']['get'](_0x1ee01e['commandName'])['refresh'](),_0x1ee01e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x30d4b9['execute'](_0x1ee01e['commandName'],..._0x1ee01e['commandParams']),_0x56b18a['setSelection'](_0xe53e0a);for(const _0x5e50e6 of _0xe53e0a)_0x5e50e6['detach']();});}),_0x6c1750['descriptionFactory']['registerElementLabel'](function(_0x48c837){const _0x1f4f57=!_0x30d4b9['model']['schema']['isObject'](_0x48c837),_0x3d0164=_0x48c837['previousSibling'],_0x2bb705=_0x48c837['nextSibling'],_0x5cd578=_0x48c837['getAttribute']('listItemId'),_0x559337=!_0x3d0164||_0x3d0164['getAttribute']('listItemId')!==_0x5cd578,_0x38b15f=!_0x2bb705||_0x2bb705['getAttribute']('listItemId')!==_0x5cd578;return _0x1f4f57&&Boolean(_0x5cd578)&&_0x559337&&_0x38b15f;},_0x4a85de=>At(_0x441abc,'ELEMENT_LIST_ITEM',_0x4a85de));}['_registerLegacyDescription'](){const _0x166432=this['editor'],_0x4c75f4=_0x166432['locale'];function _0x2a5804(_0x413ffc){const _0x219f0d=_0x166432['commands']['get']('bulletedList')['value'],_0x58c87c=_0x166432['commands']['get']('numberedList')['value'];return'numberedList'===_0x413ffc?_0x219f0d:_0x58c87c;}_0x166432['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x20b543){if('formatBlock'!=_0x20b543['type'])return;const {data:_0x12cfa6}=_0x20b543;if(!_0x12cfa6)return;let _0x5c2117,_0x4e8056,_0x9b4ed7,_0x152afd;switch(_0x12cfa6['commandName']){case'bulletedList':_0x9b4ed7=_0x12cfa6['commandParams'][0x0]['forceValue'],_0x152afd=_0x2a5804(_0x12cfa6['commandName']),_0x5c2117=_0x9b4ed7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x152afd&&_0x166432['config']['get']('list.multiBlock')||(_0x5c2117='*Change\x20to:*\x20%0'),_0x4e8056={'type':'format','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x9b4ed7=_0x12cfa6['commandParams'][0x0]['forceValue'],_0x152afd=_0x2a5804(_0x12cfa6['commandName']),_0x5c2117=_0x9b4ed7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x152afd&&_0x166432['config']['get']('list.multiBlock')||(_0x5c2117='*Change\x20to:*\x20%0'),_0x4e8056={'type':'format','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5c2117='*Indent:*\x20%0',_0x4e8056={'type':'format','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5c2117=function(_0x265837){const _0x327699=_0x265837['getFirstRange']();let _0x1898d8=_0x327699['start']['nodeAfter'];for(;_0x1898d8&&_0x327699['containsItem'](_0x1898d8);){if(_0x1898d8['getAttribute']('listIndent')>0x0)return!0x1;_0x1898d8=_0x1898d8['nextSibling'];}return!0x0;}(_0x20b543)?At(_0x4c75f4,'*Format:*\x20remove\x20from\x20%0',At(_0x4c75f4,function(_0x54318d){return'ELEMENT_'+_0x54318d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x20b543))):At(_0x4c75f4,'*Outdent:*\x20%0',At(_0x4c75f4,'ELEMENT_LIST_ITEM')),_0x4e8056={'type':'format','content':_0x5c2117};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x12cfa6['multipleBlocks']&&(_0x5c2117='*Merge:*\x20%0',_0x4e8056={'type':'deletion','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_LIST_ITEM'))});}return _0x4e8056;});}}function Ht(_0x3eab45){let _0xd79dc6=_0x3eab45['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd79dc6;){const _0x31fceb=_0xd79dc6['getAttribute']('listItemId');if(!_0x31fceb)return!0x1;if(_0x31fceb==_0x3eab45['data']['newValue'])return'newValue';if(_0x31fceb==_0x3eab45['data']['oldValue'])return'oldValue';_0xd79dc6=_0xd79dc6['previousSibling'];}return!0x1;}class $t extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ee329=this['editor']['config']['get']('list.properties'),_0x16a805=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ee329['styles']&&_0x16a805['enableDefaultAttributesIntegration']('listStyle'),_0x2ee329['reversed']&&_0x16a805['enableDefaultAttributesIntegration']('listReversed'),_0x2ee329['startIndex']&&_0x16a805['enableDefaultAttributesIntegration']('listStart');const _0x100eda={'type':'format','content':''};_0x16a805['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c9bbb=this['editor']['locale'];_0x16a805['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x4c9bbb,'FORMAT_LIST_REVERSED')),_0x16a805['descriptionFactory']['registerDescriptionCallback'](_0x1fa062=>{const {data:_0x52c57b}=_0x1fa062;if(_0x52c57b&&'listReversed'==_0x52c57b['key'])return null==_0x52c57b['newValue']||0x0==_0x52c57b['newValue']&&null==_0x52c57b['oldValue']?_0x100eda:void 0x0;}),_0x16a805['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x4c9bbb,'FORMAT_LIST_START')),_0x16a805['descriptionFactory']['registerDescriptionCallback'](_0x9356d9=>{const {data:_0x394be1}=_0x9356d9;if(_0x394be1&&'listStart'==_0x394be1['key'])return null==_0x394be1['newValue']||0x1==_0x394be1['newValue']&&null==_0x394be1['oldValue']?_0x100eda:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x13c1f=>{if(_0x13c1f['batch']['isUndo'])return!0x1;let _0x2ba5aa=!0x1;const _0x4a5a8c=_0x16a805['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x197f66=>{const _0x562c2f=_0x16a805['_getAttributeKey'](_0x197f66);return'listStart'==_0x562c2f||'listReversed'==_0x562c2f;});for(const _0x1730d8 of _0x4a5a8c){const _0x325a23=_0x1730d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x325a23||'customNumbered'==_0x325a23)continue;_0x16a805['_findSuggestions'](_0x1730d8['getFirstRange'](),'attribute')['find'](_0x215017=>'listType'==_0x16a805['_getAttributeKey'](_0x215017['suggestion']))||(_0x13c1f['removeMarker'](_0x1730d8['getFirstMarker']()),_0x2ba5aa=!0x0);}return _0x2ba5aa;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x45c68f){const _0x114abd=this['editor']['locale'],{data:_0x1ce0dd}=_0x45c68f,_0x3b705c={'type':'format','content':''};if(!_0x1ce0dd||'listStyle'!=_0x1ce0dd['key'])return;if(!_0x1ce0dd['oldValue'])return'default'==_0x1ce0dd['newValue']?_0x3b705c:{'type':'format','content':''+At(_0x114abd,'*Set\x20format:*\x20%0',At(_0x114abd,this['_getTranslationKeyForListStyle'](_0x1ce0dd['newValue'])))};if(!_0x1ce0dd['newValue']){if('default'==_0x1ce0dd['oldValue'])return _0x3b705c;let _0x204915=_0x45c68f['head'];for(;_0x204915;){if(_0x204915['data']&&'listType'==_0x204915['data']['key']&&_0x204915['data']['newValue'])return _0x3b705c;_0x204915=_0x204915['next'];}return{'type':'format','content':''+At(_0x114abd,'*Remove\x20format:*\x20%0',At(_0x114abd,this['_getTranslationKeyForListStyle'](_0x1ce0dd['oldValue'])))};}if('default'!=_0x1ce0dd['newValue'])return{'type':'format','content':''+At(_0x114abd,'*Set\x20format:*\x20%0',At(_0x114abd,this['_getTranslationKeyForListStyle'](_0x1ce0dd['newValue'])))};let _0x514f49=_0x45c68f['head'];for(;_0x514f49;){if(_0x514f49['data']&&'listType'==_0x514f49['data']['key']&&_0x514f49['data']['newValue']&&_0x514f49['data']['oldValue'])return _0x3b705c;_0x514f49=_0x514f49['next'];}return{'type':'format','content':At(_0x114abd,'*Set\x20format:*\x20%0',At(_0x114abd,'ELEMENT_'+_0x45c68f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x7359b7=this['editor'],_0x1e90d2=_0x7359b7['locale'];_0x7359b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f0617=>{if('formatBlock'!=_0x2f0617['type'])return;const {data:_0x4d1063}=_0x2f0617;if(!_0x4d1063)return;let _0xb272c7,_0x45e650;switch(_0x4d1063['commandName']){case'listStyle':_0xb272c7='*Change\x20to:*\x20%0',_0x45e650={'type':'format','content':At(_0x1e90d2,_0xb272c7,At(_0x1e90d2,this['_getTranslationKeyForListStyle'](_0x4d1063['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb272c7=_0x4d1063['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45e650={'type':'format','content':At(_0x1e90d2,_0xb272c7)};break;case'listStart':_0xb272c7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45e650={'type':'format','content':At(_0x1e90d2,_0xb272c7,_0x4d1063['commandParams'][0x0]['startIndex'])};}return _0x45e650;});}['_getTranslationKeyForListStyle'](_0x5f1a0f){return'ELEMENT_'+function(_0x4c8ad6){if(Wt['includes'](_0x4c8ad6))return'bulleted';if(Vt['includes'](_0x4c8ad6))return'numbered';return null;}(_0x5f1a0f)['toUpperCase']()+'_LIST_'+_0x5f1a0f['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x36cdc7{['afterInit'](){const _0x2fe9ca=this['editor'];_0x2fe9ca['commands']['get']('emoji')&&_0x2fe9ca['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x36cdc7{static get['requires'](){return[lt];}['init'](){const _0x66295d=this['editor'],_0x22fabf=_0x66295d['plugins']['get']('TrackChangesEditing'),_0x2c2315=_0x66295d['commands']['get']('enter');_0x22fabf['enableCommand']('enter',()=>{_0x66295d['model']['change'](_0x5810c1=>{const _0x9ac029=_0x66295d['model']['document']['selection'],_0x407401=_0x9ac029['getFirstPosition'](),_0x12b2eb=_0xf2eec6['fromRange'](_0x9ac029['getFirstRange']());if(_0x2c2315['enterBlock'](_0x5810c1)){const _0x51605b=_0x66295d['model']['createPositionAt'](_0x407401['parent']['nextSibling'],0x0),_0x9132c5=_0x5810c1['createRange'](_0x407401,_0x51605b);_0x22fabf['markInsertion'](_0x9132c5);}else _0x5810c1['setSelection'](_0x5810c1['createRange'](_0x12b2eb['end']));_0x12b2eb['detach'](),_0x2c2315['fire']('afterExecute',{'writer':_0x5810c1});});});}}class Kt extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x400f98=this['editor']['plugins']['get']('TrackChangesEditing');_0x400f98['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x400f98['enableCommand']('findNext'),_0x400f98['enableCommand']('findPrevious'),_0x400f98['enableCommand']('replace'),_0x400f98['enableCommand']('replaceAll');}['handleFindCommand'](_0x44dd10,_0x59addb,_0x2a815a={}){const _0x486c9a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x44dd10(_0x2faa7a=>{let _0x4aaed2=('string'==typeof _0x59addb?_0x486c9a['findByTextCallback'](_0x59addb,_0x2a815a):_0x59addb)(_0x2faa7a);Array['isArray'](_0x4aaed2)&&(_0x4aaed2={'results':_0x4aaed2,'searchText':'string'==typeof _0x59addb?_0x59addb:''});const _0x8a2f0e=_0x4aaed2['results']['filter'](_0x2b8558=>!0x1===this['_isInDeletionRange'](_0x2b8558,_0x2faa7a['item']));return{..._0x4aaed2,'results':_0x8a2f0e};},_0x2a815a);}['_isInDeletionRange'](_0x5161bd,_0x3af4cc){const _0x2498a8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3af4cc,_0x5161bd['start']),this['editor']['model']['createPositionAt'](_0x3af4cc,_0x5161bd['end']));for(const _0xa4e33e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2498a8['getIntersection'](_0xa4e33e['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x36cdc7{['afterInit'](){const _0x3fc75f=this['editor']['locale'],_0x54f928=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ff852,commandName:_0x22ea8b}of Xt)this['editor']['plugins']['has'](_0x1ff852)&&_0x54f928['enableDefaultAttributesIntegration'](_0x22ea8b);_0x54f928['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3fc75f,'FORMAT_FONT_SIZE')),_0x54f928['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3fc75f,'FORMAT_FONT_FAMILY')),_0x54f928['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3fc75f,'FORMAT_FONT_COLOR')),_0x54f928['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3fc75f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cf0cb=this['editor'],_0x596721=_0x1cf0cb['locale'];_0x1cf0cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdec2f3=>{const _0x1d4e24=_0x596721['t'];if('formatInline'!=_0xdec2f3['type'])return;const {data:_0x3355df}=_0xdec2f3;if(null!=_0x3355df){if('fontSize'==_0x3355df['commandName']){const _0xaf9118=_0x3355df['commandParams'][0x0]['value'];if(_0xaf9118){const _0x2a0797=_0x1d4e24(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d6f7f=>_0x4d6f7f['model']==_0xaf9118)['title'])['toLowerCase']();return{'type':'format','content':At(_0x596721,'*Set\x20font\x20size:*\x20%0',_0x2a0797)};}return{'type':'format','content':At(_0x596721,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3355df['commandName']){const _0x50cd8e=_0x3355df['commandParams'][0x0]['value'];return _0x50cd8e?{'type':'format','content':At(_0x596721,'*Set\x20font\x20family:*\x20%0',_0x50cd8e)}:{'type':'format','content':At(_0x596721,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3355df['commandName']){const _0x2f9138=_0x3355df['commandParams'][0x0]['value'];if(_0x2f9138){const _0x368018=_0x503ccd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e10fc=>_0x1e10fc['model']==_0x2f9138);let _0x136760=_0x2f9138,_0x1ee014='';return _0x368018&&(_0x136760=_0x368018['label'],_0x1ee014=_0x1d4e24(_0x136760)['toLowerCase']()),{'type':'format','content':At(_0x596721,'*Set\x20font\x20color:*\x20%0',_0x1ee014)['trim'](),'color':{'value':_0x2f9138,'title':_0x1ee014||_0x136760}};}return{'type':'format','content':At(_0x596721,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3355df['commandName']){const _0x45450d=_0x3355df['commandParams'][0x0]['value'];if(_0x45450d){const _0x15826a=_0x503ccd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11aca2=>_0x11aca2['model']==_0x45450d);let _0x9165a=_0x45450d,_0x5df99b='';return _0x15826a&&(_0x9165a=_0x15826a['label'],_0x5df99b=_0x1d4e24(_0x9165a)['toLowerCase']()),{'type':'format','content':At(_0x596721,'*Set\x20font\x20background\x20color:*\x20%0',_0x5df99b)['trim'](),'color':{'value':_0x45450d,'title':_0x5df99b||_0x9165a}};}return{'type':'format','content':At(_0x596721,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x36cdc7{['afterInit'](){const {plugins:_0x1f2087}=this['editor'];_0x1f2087['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1f2087['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x236b78,plugins:_0x43ffb4,commands:_0x39a89e}=this['editor'],_0x1c8da1=_0x43ffb4['get']('TrackChangesEditing');_0x39a89e['get']('footnotesStyle')&&_0x1c8da1['enableDefaultAttributesIntegration']('footnotesStyle'),_0x39a89e['get']('footnotesStart')&&_0x1c8da1['enableDefaultAttributesIntegration']('footnotesStart'),_0x1c8da1['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x236b78,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1c8da1['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x236b78,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xf628dd=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x297adc,commands:_0xb632cb}=this['editor'];_0xb632cb['get']('insertFootnote')&&_0xf628dd['enableCommand']('insertFootnote'),_0xf628dd['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2f3164=>At(_0x297adc,'ELEMENT_FOOTNOTE_REF',_0x2f3164)),_0xf628dd['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1b6b27=>At(_0x297adc,'ELEMENT_FOOTNOTE_DEFINITION',_0x1b6b27)),_0xf628dd['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3d4291=>At(_0x297adc,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3d4291));}}class Qt extends _0x36cdc7{['afterInit'](){const _0x20572d=this['editor'],_0x578f0a=_0x20572d['plugins']['get']('TrackChangesEditing'),_0x4c7df6=_0x20572d['commands']['get']('copyFormat'),_0x363729=_0x20572d['commands']['get']('pasteFormat');_0x4c7df6&&_0x363729&&(_0x578f0a['enableDefaultAttributesIntegration']('pasteFormat'),_0x578f0a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x59a808=this['editor'],_0x3689bd=_0x59a808['locale'];_0x59a808['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d0e64=>{if('formatBlock'!=_0x2d0e64['type']&&'formatInline'!=_0x2d0e64['type'])return;const {data:_0x4cb082}=_0x2d0e64;if(_0x4cb082&&'pasteFormat'===_0x4cb082['commandName']){const _0x3cb5f2=[],_0x4a7bcb=_0x4cb082['commandParams'][0x0];for(const [_0x477399,_0x148507]of Object['entries'](_0x4a7bcb))_0x3cb5f2['push'](Zt(_0x59a808,_0x477399,_0x148507));return _0x3cb5f2['length']?{'type':'format','content':At(_0x3689bd,'*Set\x20format\x20to:*\x20%0',_0x3cb5f2['join'](',\x20'))}:{'type':'format','content':At(_0x3689bd,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x4214fb,_0x2b036f,_0x1b8a7d){const _0x5ed368=_0x4214fb['locale']['t'],_0x178ee5=_0x2b036f['split'](/(?=[A-Z])/)['join']('\x20'),_0x222cfb=_0x5ed368(_0x178ee5['charAt'](0x0)['toUpperCase']()+_0x178ee5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1b8a7d)return _0x222cfb;if('fontColor'===_0x2b036f||'fontBackgroundColor'===_0x2b036f){const _0x32ee08=_0x503ccd(_0x4214fb['config']['get']('fontColor.colors'))['find'](_0xceebc4=>_0xceebc4['model']==_0x1b8a7d);return _0x222cfb+'\x20('+(_0x32ee08?_0x5ed368(_0x32ee08['label'])['toLowerCase']():_0x1b8a7d)+')';}if('fontSize'===_0x2b036f&&isNaN(parseFloat(_0x1b8a7d))){const _0x51db82=_0x4214fb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4214fb['config']['get']('fontSize.options'))['find'](_0x1dc66c=>_0x1dc66c['model']==_0x1b8a7d);return _0x222cfb+'\x20('+(_0x51db82?_0x5ed368(_0x51db82['title'])['toLowerCase']():_0x1b8a7d)+')';}return _0x222cfb+'\x20('+_0x1b8a7d+')';}class Jt extends _0x36cdc7{['_headingOptions'];['afterInit'](){const _0x403c8a=this['editor'];if(!_0x403c8a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x403c8a['config']['get']('heading.options');const _0x20cc2f=_0x403c8a['locale'],_0x5f1803=_0x403c8a['plugins']['get']('TrackChangesEditing');_0x5f1803['enableDefaultAttributesIntegration']('heading');for(const _0x5b8194 of this['_headingOptions'])'paragraph'!=_0x5b8194['model']&&_0x5f1803['descriptionFactory']['registerElementLabel'](_0x5b8194['model'],_0x2421d3=>{const _0x4c827e=this['_getHeadingLevel'](_0x5b8194['model']);return null!==_0x4c827e?_0x310b16(_0x2421d3,_0x4c827e):_0x287992(_0x2421d3,_0x5b8194['title']);});function _0x310b16(_0x1f96b0,_0x121525){return At(_0x20cc2f,'ELEMENT_HEADING',[_0x1f96b0,_0x121525]);}function _0x287992(_0x1bbe48,_0x9e5fbe){return At(_0x20cc2f,'ELEMENT_HEADING_CUSTOM',[_0x1bbe48,_0x9e5fbe]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5193bc=this['editor'],_0x53ae7a=_0x5193bc['locale'];function _0x299dfc(_0x52e7cb,_0x34b9e8){return At(_0x53ae7a,'ELEMENT_HEADING_CUSTOM',[_0x52e7cb,_0x34b9e8]);}_0x5193bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f4bc=>{if('formatBlock'!=_0x18f4bc['type'])return;const {data:_0x329400}=_0x18f4bc;if(_0x329400&&'heading'==_0x329400['commandName']){const _0x4777f8=_0x329400['commandParams'][0x0]['value'],_0x54f549=this['_getHeadingLevel'](_0x4777f8);if(null!==_0x54f549)return{'type':'format','content':At(_0x53ae7a,'*Change\x20to:*\x20%0',(_0x26c207=0x1,_0x38114c=_0x54f549,At(_0x53ae7a,'ELEMENT_HEADING',[_0x26c207,_0x38114c])))};const _0x28778d=this['_headingOptions']['find'](_0x1ea937=>_0x1ea937['model']===_0x4777f8)['title'];return{'type':'format','content':At(_0x53ae7a,'*Change\x20to:*\x20%0',_0x299dfc(0x1,_0x28778d))};}var _0x26c207,_0x38114c;});}['_getHeadingLevel'](_0x552e30){const _0x2d92f0=_0x552e30['match'](/^heading(\d+)/);if(_0x2d92f0)return _0x2d92f0[0x1];const _0x2453d3=this['_headingOptions']?.['find'](_0x3d486c=>_0x3d486c['model']==_0x552e30);if(_0x2453d3&&_0x2453d3['view']){const _0x4d810d=_0x2453d3['view'],_0x59a0a9=(_0x4d810d['name']??_0x4d810d)['match'](/^h(\d+)/);if(_0x59a0a9)return _0x59a0a9[0x1];}return null;}}class te extends _0x36cdc7{['afterInit'](){const _0x3e8b5f=this['editor'];if(!_0x3e8b5f['plugins']['has']('HighlightEditing'))return;const _0x5ce50d=_0x3e8b5f['plugins']['get']('TrackChangesEditing'),_0x4833fa=_0x3e8b5f['locale'];_0x5ce50d['enableDefaultAttributesIntegration']('highlight'),_0x5ce50d['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x4833fa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x134c3e=this['editor'],_0x514a75=_0x134c3e['locale'];_0x134c3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x319838=>{if('formatInline'!=_0x319838['type'])return;const {data:_0x204224}=_0x319838;if(_0x204224&&'highlight'==_0x204224['commandName']){const _0x51c294=_0x514a75['t'],_0x45f33f=_0x204224['commandParams'][0x0]['value'];if(_0x45f33f){const _0x480512=_0x134c3e['config']['get']('highlight.options')['find'](_0x190ba0=>_0x190ba0['model']==_0x45f33f),_0x4b1e4c=_0x51c294(_0x480512['title'])['toLowerCase']();return{'type':'format','content':At(_0x514a75,'*Set\x20highlight:*\x20%0',_0x4b1e4c),'color':{'value':_0x480512['color'],'title':_0x480512['title']}};}return{'type':'format','content':At(_0x514a75,'*Remove\x20highlight*',At(_0x514a75,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x36cdc7{['afterInit'](){const _0x35d806=this['editor'];if(!_0x35d806['plugins']['has']('HorizontalLineEditing'))return;_0x35d806['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x141d57=_0x35d806['plugins']['get']('TrackChangesEditing'),_0x420bbe=_0x35d806['locale'];_0x141d57['descriptionFactory']['registerElementLabel']('horizontalLine',_0x40b9a0=>At(_0x420bbe,'ELEMENT_HORIZONTAL_LINE',_0x40b9a0));}}class ne extends _0x36cdc7{['afterInit'](){const _0x5895ee=this['editor'];if(!_0x5895ee['plugins']['has']('HtmlEmbed'))return;const _0x16cece=_0x5895ee['plugins']['get']('TrackChangesEditing'),_0x302141=_0x5895ee['locale'];_0x16cece['descriptionFactory']['registerElementLabel']('rawHtml',_0x45798a=>At(_0x302141,'ELEMENT_HTML_EMBED',_0x45798a)),_0x16cece['enableDefaultAttributesIntegration']('htmlEmbed'),_0x16cece['descriptionFactory']['registerDescriptionCallback'](_0x2e793e=>{if('attribute'!=_0x2e793e['type'])return;const {data:_0x17434c}=_0x2e793e;if(_0x17434c&&'value'==_0x17434c['key']&&_0x2e793e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d0691=At(_0x302141,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x302141,'*Change\x20%0\x20content*',_0x1d0691)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f9cb=this['editor'],_0x12640e=_0x18f9cb['locale'];_0x18f9cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3ad5=>{if('formatBlock'!=_0x3e3ad5['type'])return;const {data:_0x38d92f}=_0x3e3ad5;if(_0x38d92f&&'htmlEmbed'==_0x38d92f['commandName']){const _0x9abefe=At(_0x12640e,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x12640e,'*Change\x20%0\x20content*',_0x9abefe)};}});}}class ie extends _0x36cdc7{['afterInit'](){const _0x4ad859=this['editor'];if(!_0x4ad859['plugins']['has']('ImageEditing'))return;const _0x22b9ff=_0x4ad859['plugins']['get']('TrackChangesEditing'),_0x15ea5a=_0x4ad859['plugins']['get']('ImageUtils'),_0x1cecef=_0x4ad859['locale'];_0x22b9ff['enableCommand']('insertImage'),_0x22b9ff['descriptionFactory']['registerElementLabel']('imageBlock',_0x43be08=>At(_0x1cecef,'ELEMENT_IMAGE',_0x43be08)),_0x22b9ff['descriptionFactory']['registerElementLabel']('imageInline',_0x55b3b7=>At(_0x1cecef,'ELEMENT_INLINE_IMAGE',_0x55b3b7)),_0x22b9ff['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x1cecef,'ELEMENT_CAPTION')),_0x4ad859['plugins']['has']('ImageUploadEditing')&&_0x22b9ff['enableCommand']('uploadImage'),_0x4ad859['plugins']['has']('ImageBlockEditing')&&_0x4ad859['plugins']['has']('ImageInlineEditing')&&(_0x22b9ff['enableCommand']('imageTypeInline',(_0x312f10,_0x53127d)=>{const _0x1ee54f=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']);_0x4ad859['model']['change'](()=>{_0x22b9ff['markBlockFormat'](_0x1ee54f,{'commandName':'imageTypeInline','commandParams':[_0x53127d]},[],'convertBlockImageToInline');});}),_0x22b9ff['enableCommand']('imageTypeBlock',(_0x5e651a,_0x506485)=>{_0x4ad859['model']['change'](_0x29fe21=>{let _0x2f602b=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x4b6589=_0x29fe21['createRangeOn'](_0x2f602b);const _0x2ecb28=tt['fromPosition'](_0x4b6589['start'],'toPrevious'),_0x5dfaa5=tt['fromPosition'](_0x4b6589['end'],'toNext');_0x22b9ff['forceDefaultExecution'](()=>_0x5e651a(_0x506485)),_0x2f602b=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x4b6589=_0x29fe21['createRangeOn'](_0x2f602b);const _0x460258=_0x29fe21['createRange'](_0x2ecb28,_0x5dfaa5);_0x2ecb28['detach'](),_0x5dfaa5['detach'](),_0x22b9ff['markBlockFormat'](_0x2f602b,{'commandName':'imageTypeInline','commandParams':[_0x506485]},[],'convertInlineImageToBlock'),_0x460258['start']['isBefore'](_0x4b6589['start'])&&_0x22b9ff['markInsertion'](_0x29fe21['createRange'](_0x460258['start'],_0x4b6589['start']),'convertInlineImageToBlock'),_0x4b6589['end']['isBefore'](_0x460258['end'])&&_0x22b9ff['markInsertion'](_0x29fe21['createRange'](_0x4b6589['end'],_0x460258['end']),'convertInlineImageToBlock');});}),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x22b9ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x439a08])=>{const _0x230acb=_0x22b9ff['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19a90e=_0x439a08['start'],_0x376bf6=_0x439a08['end'];const _0x5b127a=_0x4ad859['model']['schema']['getNearestSelectionRange'](_0x19a90e,'backward'),_0x8680fd=_0x4ad859['model']['schema']['getNearestSelectionRange'](_0x376bf6,'forward');_0x5b127a['isCollapsed']&&(_0x19a90e=_0x5b127a['start']),_0x8680fd['isCollapsed']&&(_0x376bf6=_0x8680fd['end']),_0x230acb([_0x4ad859['model']['createRange'](_0x19a90e,_0x376bf6)]);}),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x310db1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x310db1)),_0x4ad859['plugins']['has']('ImageCaptionEditing')&&(_0x22b9ff['enableCommand']('toggleImageCaption',(_0x521ac8,_0x113d0b)=>{const _0x5bd314=_0x4ad859['plugins']['get']('ImageCaptionUtils');let _0x1ed690=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x909700=_0x5bd314['getCaptionFromImageModelElement'](_0x1ed690);_0x4ad859['model']['change'](()=>{if(_0x909700)return void _0x22b9ff['markDeletion'](_0x4ad859['model']['createRangeOn'](_0x909700));const _0x548268=_0x15ea5a['isBlockImage'](_0x1ed690);_0x521ac8(_0x113d0b),_0x1ed690=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x909700=_0x5bd314['getCaptionFromImageModelElement'](_0x1ed690),_0x22b9ff['markInsertion'](_0x4ad859['model']['createRangeOn'](_0x909700),_0x548268?null:'imageCaption');});}),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x310db1));const _0x59bc89=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e04ce(_0xf852f6,_0x2d02db){const _0x1bf3cd=_0x59bc89['findIndex'](({type:_0x3caab2,subType:_0x237402})=>_0xf852f6['type']==_0x3caab2&&_0xf852f6['subType']==_0x237402),_0x414a83=_0x59bc89['findIndex'](({type:_0x33e7a8,subType:_0x5e5489})=>_0x2d02db['type']==_0x33e7a8&&_0x2d02db['subType']==_0x5e5489);if(_0x1bf3cd<0x0||_0x414a83<0x0)return!0x1;const _0x31cfee=_0xf852f6['getFirstRange'](),_0x2cb1f2=_0x2d02db['getFirstRange']();if((0x0==_0x1bf3cd||0x1==_0x1bf3cd)&&0x2==_0x414a83&&_0x31cfee['isIntersecting'](_0x2cb1f2))return!0x0;if(0x2==_0x1bf3cd&&0x3==_0x414a83){const _0x4973e0=_0x22b9ff['_findSuggestions'](_0x31cfee,'insertion')['filter'](({suggestion:_0x4dfb86,meta:_0x3e7b5f})=>_0x3e7b5f['isOwn']&&'convertInlineImageToBlock'==_0x4dfb86['subType']);if(_0x4973e0['length']>0x1&&_0x2cb1f2['end']['isEqual'](_0x31cfee['start']))return!0x0;if(0x1==_0x4973e0['length']&&(_0x31cfee['start']['isEqual'](_0x2cb1f2['end'])||_0x31cfee['end']['isEqual'](_0x2cb1f2['start'])))return!0x0;}if(0x3==_0x1bf3cd&&0x3==_0x414a83&&_0x31cfee['start']['isBefore'](_0x2cb1f2['start'])){const _0x376736=_0x31cfee['end']['nodeAfter'],_0x17d641=_0x2cb1f2['start']['nodeBefore'];return _0x15ea5a['isBlockImage'](_0x376736)&&_0x376736===_0x17d641;}return!0x1;}function _0x310db1(_0x10de54,_0x41f361){return _0x1e04ce(_0x10de54,_0x41f361)?[_0x10de54,_0x41f361]:_0x1e04ce(_0x41f361,_0x10de54)?[_0x41f361,_0x10de54]:null;}_0x4ad859['plugins']['has']('ImageResize')&&(_0x22b9ff['enableDefaultAttributesIntegration']('resizeImage'),_0x22b9ff['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x1cecef,'FORMAT_IMAGE_SIZE'))),_0x4ad859['plugins']['has']('ImageTextAlternativeEditing')&&_0x22b9ff['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ad859['plugins']['has']('PictureEditing')&&_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x3dd234=>{if('attribute'!=_0x3dd234['type'])return;const {data:_0x118a5b}=_0x3dd234;return _0x118a5b&&'sources'==_0x118a5b['key']?{'type':'format','content':''}:void 0x0;}),_0x4ad859['plugins']['has']('ImageSizeAttributes')&&_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x2343d2=>{if('attribute'!=_0x2343d2['type'])return;const {data:_0x3389c0}=_0x2343d2;return!_0x3389c0||'width'!=_0x3389c0['key']&&'height'!=_0x3389c0['key']?void 0x0:{'type':'format','content':''};}),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x1a295f=>{if(!!_0x59bc89['find'](({type:_0x596467,subType:_0x577e2b})=>_0x1a295f['type']==_0x596467&&_0x1a295f['subType']==_0x577e2b))return _0x1a295f['previous']?{}:void 0x0;}),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x460f7e=>{if('insertion'==_0x460f7e['type']||'deletion'==_0x460f7e['type']){const _0x338b3f=_0x460f7e['getContainedElement']();if(_0x338b3f&&_0x338b3f['is']('element','caption'))return{'type':'insertion'==_0x460f7e['type']?'addObject':'removeObject','element':_0x338b3f,'quantity':0x1};}}),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x57df3e=>'formatBlock'==_0x57df3e['type']&&'convertInlineImageToBlock'==_0x57df3e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57df3e['type']&&'convertBlockImageToInline'==_0x57df3e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x29b71c=>{if('attribute'!=_0x29b71c['type'])return;const {data:_0x232554}=_0x29b71c;if(!_0x232554||'alt'!=_0x232554['key'])return;const _0x12bfc1=_0x232554['newValue'];return _0x12bfc1?{'type':'format','content':At(_0x1cecef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12bfc1+'\x22')}:{'type':'format','content':At(_0x1cecef,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x73d7a5=this['editor'],_0x2649cb=_0x73d7a5['locale'];_0x73d7a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb3d1=>{if('formatBlock'!=_0x4fb3d1['type']&&'formatInline'!=_0x4fb3d1['type'])return;const {data:_0x5ec3de}=_0x4fb3d1;if(_0x5ec3de){if('imageTextAlternative'==_0x5ec3de['commandName']){const _0x5c2796=_0x5ec3de['commandParams'][0x0]['newValue'];return _0x5c2796?{'type':'format','content':At(_0x2649cb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c2796+'\x22')}:{'type':'format','content':At(_0x2649cb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5ec3de['commandName']){const _0xba6fa8=_0x5ec3de['commandParams'][0x0]['width'];return _0xba6fa8?{'type':'format','content':At(_0x2649cb,'*Set\x20image\x20width:*\x20%0',_0xba6fa8)}:{'type':'format','content':At(_0x2649cb,'*Reset\x20image\x20width*')};}}});}}class se extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f67d6=this['editor']['locale'],_0x4e9931=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9931['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e9931['descriptionFactory']['registerDescriptionCallback'](_0x26bec9=>{if('attribute'!=_0x26bec9['type'])return;const {data:_0x6d474a}=_0x26bec9;return _0x6d474a&&'src'==_0x6d474a['key']?_0x6d474a['newValue']&&_0x6d474a['oldValue']?{'type':'format','content':At(_0x3f67d6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f62fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f62fa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4f62fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f62fa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4f62fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12192a=this['editor'],_0x502b42=_0x12192a['locale'];_0x12192a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281926=>{if('formatBlock'!=_0x281926['type']&&'formatInline'!=_0x281926['type'])return;const {data:_0x4ba59f}=_0x281926;if(!_0x4ba59f||'replaceImageSource'!=_0x4ba59f['commandName'])return;return{'type':'format','content':At(_0x502b42,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x36cdc7{['afterInit'](){const _0x3cc75d=this['editor'];if(!_0x3cc75d['plugins']['has']('ImageStyleEditing'))return;const _0x158ffb=_0x3cc75d['plugins']['get']('TrackChangesEditing'),_0x583c5a=_0x3cc75d['plugins']['get']('ImageUtils'),_0x472f00={};_0x158ffb['enableCommand']('imageStyle',(_0x17a8e7,_0x189ea1)=>{const _0x49d786=_0x3cc75d['plugins']['get']('Users')['me'],_0x411d97=_0x3cc75d['commands']['get']('imageStyle');let _0x10462e=_0x583c5a['getClosestSelectedImageElement'](_0x3cc75d['model']['document']['selection']),_0x594b15=_0x3cc75d['model']['createRangeOn'](_0x10462e),_0xef207=_0x411d97['value'];if(_0xef207==_0x189ea1['value'])return;const _0x20373f={'commandName':'imageStyle','commandParams':[_0x189ea1],'formatGroupId':_0x452c31()};_0x3cc75d['model']['change'](()=>{if(_0x158ffb['getSuggestions']()['filter'](_0x248254=>_0x248254['isInContent']&&_0x49d786==_0x248254['author']&&('formatBlock'==_0x248254['type']||'formatInline'==_0x248254['type'])&&('imageStylePreApply'==_0x248254['subType']||'imageStylePostApply'==_0x248254['subType'])&&_0x248254['getFirstRange']()['isEqual'](_0x594b15))['forEach'](_0x2c2c20=>_0x158ffb['discardSuggestion'](_0x2c2c20['head'])),_0x10462e=_0x583c5a['getClosestSelectedImageElement'](_0x3cc75d['model']['document']['selection']),_0x594b15=_0x3cc75d['model']['createRangeOn'](_0x10462e),_0x411d97['refresh'](),_0x3cc75d['commands']['get']('imageTypeInline')['refresh'](),_0x3cc75d['commands']['get']('imageTypeBlock')['refresh'](),_0xef207=_0x411d97['value'],_0xef207!=_0x189ea1['value'])return _0x583c5a['isInlineImage'](_0x10462e)&&_0x411d97['shouldConvertImageType'](_0x189ea1['value'],_0x10462e)?(_0x17a8e7({..._0x189ea1,'setImageSizes':!0x1}),_0x10462e=_0x583c5a['getClosestSelectedImageElement'](_0x3cc75d['model']['document']['selection']),void _0x158ffb['markBlockFormat'](_0x10462e,{..._0x20373f,'commandReversedParams':[{'value':_0xef207||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x583c5a['isBlockImage'](_0x10462e)?_0x158ffb['markBlockFormat'](_0x10462e,_0x20373f,[],'imageStylePostApply'):_0x158ffb['markInlineFormat'](_0x594b15,_0x20373f,'imageStylePostApply'));});});for(const _0x518771 of _0x3cc75d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x472f00[_0x518771['name']]=_0x518771['title']['toLowerCase']();_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xe8bc5c])=>{_0x583c5a['setImageNaturalSizeAttributes'](_0xe8bc5c['getContainedElement']());}),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52316e,_0x8ff215)=>{_0x158ffb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52316e,{'commandName':_0x8ff215['commandName'],'commandParams':_0x8ff215['commandReversedParams']});}),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x39789c,_0x14c385){if(_0x498acb(_0x39789c,_0x14c385))return[_0x39789c,_0x14c385];if(_0x498acb(_0x14c385,_0x39789c))return[_0x14c385,_0x39789c];return null;});const _0x415a94=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x498acb(_0x56763f,_0x36ea22){const _0xf90a27=_0x415a94['findIndex'](({type:_0x149c93,subType:_0x1a3465})=>_0x56763f['type']==_0x149c93&&_0x56763f['subType']==_0x1a3465),_0x28bbe9=_0x415a94['findIndex'](({type:_0x580839,subType:_0x227134})=>_0x36ea22['type']==_0x580839&&_0x36ea22['subType']==_0x227134);if(_0xf90a27<0x0||_0x28bbe9<0x0)return!0x1;const _0x173c78=_0x56763f['getFirstRange'](),_0x16f7b7=_0x36ea22['getFirstRange']();if((0x0==_0xf90a27||0x1==_0xf90a27)&&0x2==_0x28bbe9&&_0x173c78['isIntersecting'](_0x16f7b7))return!0x0;if(0x2==_0xf90a27&&0x3==_0x28bbe9){const _0x47ee9e=_0x158ffb['_findSuggestions'](_0x173c78,'insertion')['filter'](({suggestion:_0xcb0438,meta:_0x503465})=>_0x503465['isOwn']&&'convertInlineImageToBlock'==_0xcb0438['subType']);if(_0x47ee9e['length']>0x1&&_0x16f7b7['end']['isEqual'](_0x173c78['start']))return!0x0;if(0x1==_0x47ee9e['length']&&(_0x173c78['start']['isEqual'](_0x16f7b7['end'])||_0x173c78['end']['isEqual'](_0x16f7b7['start'])))return!0x0;}if(0x3==_0xf90a27&&0x3==_0x28bbe9&&_0x173c78['start']['isBefore'](_0x16f7b7['start'])){const _0x3333e8=_0x173c78['end']['nodeAfter'],_0x43e592=_0x16f7b7['start']['nodeBefore'];return _0x583c5a['isBlockImage'](_0x3333e8)&&_0x3333e8===_0x43e592;}return!0x1;}_0x3cc75d['model']['document']['registerPostFixer'](()=>{let _0x2fe5cf=!0x1;const _0x255fe7=Array['from'](_0x3cc75d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2cfc55,data:_0x29f8ad}of _0x255fe7){const {group:_0x4e6328,type:_0x4ad7b4,subType:_0x4b4f8b,id:_0x4cc303}=_0x4f6d6c(_0x2cfc55);if('suggestion'==_0x4e6328&&_0x158ffb['hasSuggestion'](_0x4cc303)){if('formatBlock'==_0x4ad7b4&&('imageStylePreApply'==_0x4b4f8b||'imageStylePostApply'==_0x4b4f8b)){const _0x4bf796=_0x158ffb['getSuggestion'](_0x4cc303);if(_0x29f8ad['newRange']){const _0x40aec9=_0x4bf796['getFirstRange']()['getContainedElement']();if(_0x583c5a['isBlockImage'](_0x40aec9))continue;_0x158ffb['discardSuggestion'](_0x4bf796),_0x2fe5cf=!0x0;}}if('insertion'==_0x4ad7b4&&'imageCaption'==_0x4b4f8b&&!_0x29f8ad['newRange']){const _0x22c16a=_0x158ffb['getSuggestion'](_0x4cc303);_0x22c16a['next']&&_0x22c16a['next']['isInContent']&&(_0x158ffb['discardSuggestion'](_0x22c16a['next']),_0x2fe5cf=!0x0);}}}return _0x2fe5cf;}),this['_registerLegacyDescription'](_0x472f00);}['_registerLegacyDescription'](_0x7b66e7){const _0x576a6b=this['editor'],_0x13a31b=_0x576a6b['locale'];_0x576a6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41d91=>{if('formatBlock'!=_0x41d91['type']&&'formatInline'!=_0x41d91['type'])return;const {data:_0x1664f2}=_0x41d91;if(!_0x1664f2||'imageStyle'!=_0x1664f2['commandName'])return;const _0x4502fe=_0x1664f2['commandParams'][0x0]['value'];return _0x5c3f7e('side'===_0x4502fe?At(_0x13a31b,'FORMAT_SIDE_IMAGE'):_0x7b66e7[_0x4502fe]||_0x4502fe);function _0x5c3f7e(_0x3e4444){return{'type':'format','content':At(_0x13a31b,'*Format:*\x20%0',_0x3e4444)};}});}}class oe extends _0x36cdc7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x125b64){super(_0x125b64),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x18de34=this['editor'],_0x1f72e6=_0x18de34['commands']['get']('importWord'),_0x456822=_0x18de34['commands']['get']('trackChanges');_0x1f72e6&&(_0x1f72e6['on']('execute',(_0x4215e6,[,_0x10bd21])=>{this['_trackChangesValueDuringImport']=_0x456822['value'],_0x10bd21['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1f72e6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1f72e6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x456822['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x18de34['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x202ab2,_0x4d01e2){const {suggestions:_0x20dd01}=_0x4d01e2,_0x5cd455=this['editor']['commands']['get']('trackChanges'),_0x5ee901=_0x5cd455['value'];this['_trackChangesValueDuringImport']!==_0x5ee901&&(_0x5cd455['execute'](),this['_trackChangesExecuted']=!0x0),_0x20dd01&&_0x20dd01['forEach'](({id:_0x376e42,type:_0x18eda5,author:_0x242807,created_at:_0x1c3a41})=>{const _0x1767c5={'id':_0x376e42,'type':_0x18eda5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x242807,'createdAt':_0x1c3a41?new Date(_0x1c3a41):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1767c5);});}}class ae extends _0x36cdc7{['afterInit'](){const _0x393fa2=this['editor'],_0x278b3f=_0x393fa2['plugins']['get']('TrackChangesEditing');if(_0x393fa2['plugins']['has']('IndentEditing')&&(_0x278b3f['enableCommand']('indent'),_0x278b3f['enableCommand']('outdent')),_0x393fa2['plugins']['has']('IndentBlock')){for(const _0x328f53 of['indentBlock','outdentBlock'])_0x278b3f['enableDefaultAttributesIntegration'](_0x328f53);if(_0x393fa2['plugins']['has']('ListEditing')){for(const _0x2ecbd5 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x278b3f['enableDefaultAttributesIntegration'](_0x2ecbd5);}}const _0x8357b1=_0x393fa2['locale'];_0x278b3f['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x8357b1,'FORMAT_INDENT')),_0x278b3f['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x8357b1,'FORMAT_INDENT')),_0x278b3f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x8357b1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x144008=this['editor'],_0x2076ae=_0x144008['locale'],_0x11d196=_0x144008['plugins']['get']('TrackChangesEditing');_0x11d196['descriptionFactory']['registerDescriptionCallback'](_0x25d516=>{if('formatBlock'!=_0x25d516['type'])return;const {data:_0xd310fe}=_0x25d516;if(!_0xd310fe)return;if('indentBlock'!=_0xd310fe['commandName']&&'outdentBlock'!=_0xd310fe['commandName'])return;const _0x18159d=_0x25d516['getItems']()[0x0],_0x2a3a0f=_0x11d196['descriptionFactory']['getItemLabel'](_0x18159d);return'indentBlock'==_0xd310fe['commandName']?{'type':'format','content':At(_0x2076ae,'*Indent:*\x20%0',_0x2a3a0f)}:'outdentBlock'==_0xd310fe['commandName']?{'type':'format','content':At(_0x2076ae,'*Outdent:*\x20%0',_0x2a3a0f)}:void 0x0;});}}class ce extends _0x36cdc7{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x36cdc7{['afterInit'](){const _0x2a0809=this['editor'];if(!_0x2a0809['plugins']['has']('LinkEditing'))return;const _0x5bfece=_0x2a0809['plugins']['get']('TrackChangesEditing'),_0x168ae1=_0x2a0809['commands']['get']('link');_0x5bfece['enableDefaultAttributesIntegration']('link'),_0x5bfece['enableDefaultAttributesIntegration']('unlink');for(const _0x56dd06 of _0x168ae1['manualDecorators'])_0x5bfece['descriptionFactory']['registerAttributeLabel'](_0x56dd06['id'],'link\x20('+_0x56dd06['label']['toLowerCase']()+')');_0x5bfece['descriptionFactory']['registerDescriptionCallback'](_0x154dcf=>{if('attribute'!=_0x154dcf['type'])return;const {data:_0x1215c6}=_0x154dcf;if(!_0x1215c6||'linkHref'!=_0x1215c6['key'])return;const _0x1502f9=_0x1215c6['newValue'],_0x593ae7=_0x2a0809['locale'];return{'type':'format','content':null==_0x1502f9?At(_0x593ae7,'*Remove\x20link*'):At(_0x593ae7,'*Set\x20link:*\x20%0','\x22'+_0x1502f9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b9cd=this['editor'],_0x4f84c0=_0x56b9cd['locale'];_0x56b9cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3716ab=>{if('formatInline'!=_0x3716ab['type'])return;const {data:_0x29fd2f}=_0x3716ab;if(_0x29fd2f){if('link'==_0x29fd2f['commandName']){const _0xe57966=_0x29fd2f['commandParams'][0x0];return{'type':'format','content':At(_0x4f84c0,'*Set\x20link:*\x20%0','\x22'+_0xe57966+'\x22')};}return'unlink'==_0x29fd2f['commandName']?{'type':'format','content':At(_0x4f84c0,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x36cdc7{['afterInit'](){const _0x193620=this['editor'],_0x503246=_0x193620['locale'];if(!_0x193620['plugins']['has']('LegacyListEditing'))return;const _0x49f0a2=_0x193620['plugins']['get']('TrackChangesEditing'),_0x31fdc5=_0x193620['plugins']['has']('LegacyTodoListEditing');function _0x48d1da(_0x32c8fd){return()=>{const _0x5d7fa2=_0x193620['model']['document']['selection'],_0x38ae10=_0x193620['commands']['get'](_0x32c8fd);if(_0x38ae10['value'])return void _0x193620['execute']('paragraph',{});const _0x527b79=_0x32c8fd['slice'](0x0,-0x4),_0x428484=function(_0x17bb67,_0x357ea5,_0x135110){let _0x46146c=Array['from'](_0x17bb67)['filter'](_0x36b273=>function(_0x202f50,_0x140233){return _0x140233['checkChild'](_0x202f50['parent'],'listItem')&&!_0x140233['isObject'](_0x202f50);}(_0x36b273,_0x135110));_0x46146c=_0x46146c['filter'](_0x5f3f2b=>!_0x5f3f2b['is']('element','listItem')||_0x5f3f2b['getAttribute']('listType')!=_0x357ea5);const _0x1f876d=new Set();for(const _0x3fc4d4 of _0x46146c)_0x3fc4d4['is']('element','listItem')?_0x1f876d['add'](he(_0x3fc4d4)):_0x1f876d['add'](_0x3fc4d4);return Array['from'](_0x1f876d);}(_0x5d7fa2['getSelectedBlocks'](),_0x527b79,_0x193620['model']['schema']);_0x193620['model']['change'](()=>{for(const _0xe1fce0 of _0x428484)_0x49f0a2['markBlockFormat'](_0xe1fce0,{'commandName':_0x32c8fd,'commandParams':[{'forceValue':!_0x38ae10['value']}],'formatGroupId':'blockName'},de(_0xe1fce0));});};}function _0x42af71(_0x583976){return()=>{const _0x2aeb0c=function(_0x5c16a4){let _0x483b5e=Array['from'](_0x5c16a4);const _0x15a7ad=_0x483b5e['findIndex'](_0x31d346=>'listItem'!=_0x31d346['name']);return _0x15a7ad>-0x1&&(_0x483b5e=_0x483b5e['slice'](0x0,_0x15a7ad)),_0x483b5e;}(_0x193620['model']['document']['selection']['getSelectedBlocks']()),_0x4fe2b8=_0x193620['model']['createRange'](_0x193620['model']['createPositionAt'](_0x2aeb0c[0x0],'before'),_0x193620['model']['createPositionAt'](_0x2aeb0c[_0x2aeb0c['length']-0x1],'end'));_0x193620['model']['change'](()=>{_0x49f0a2['markBlockFormat'](_0x4fe2b8,{'commandName':_0x583976,'commandParams':[],'formatGroupId':'listIndent'},function(_0x19c5fb){const _0x2ca1b1=new Set();for(const _0x99a539 of _0x19c5fb){let _0x9dab7c=_0x99a539['nextSibling'];for(;_0x9dab7c&&_0x9dab7c['getAttribute']('listIndent')>_0x99a539['getAttribute']('listIndent');)_0x2ca1b1['add'](_0x9dab7c),_0x9dab7c=_0x9dab7c['nextSibling'];}return Array['from'](_0x2ca1b1);}(_0x2aeb0c));});};}_0x49f0a2['enableCommand']('numberedList',_0x48d1da('numberedList')),_0x49f0a2['enableCommand']('bulletedList',_0x48d1da('bulletedList')),_0x31fdc5&&_0x49f0a2['enableCommand']('todoList',_0x48d1da('todoList')),_0x49f0a2['enableCommand']('indentList',_0x42af71('indentList')),_0x49f0a2['enableCommand']('outdentList',_0x42af71('outdentList')),_0x31fdc5&&_0x49f0a2['enableCommand']('checkTodoList',()=>{const _0x4f94f0=_0x193620['commands']['get']('checkTodoList'),_0x1c432f=Array['from'](_0x4f94f0['_selectedElements']);_0x1c432f['filter'](_0x24539b=>_0x24539b['getAttribute']('todoListChecked')!=_0x4f94f0['value']),_0x193620['model']['change'](()=>{for(const _0x1738ea of _0x1c432f)_0x49f0a2['markBlockFormat'](_0x1738ea,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4f94f0['value']}]});});}),_0x49f0a2['descriptionFactory']['registerElementLabel']('listItem',_0x45eafb=>At(_0x503246,'ELEMENT_LIST_ITEM',_0x45eafb)),_0x49f0a2['descriptionFactory']['registerDescriptionCallback'](_0x1e7bdf=>{if('formatBlock'!=_0x1e7bdf['type']&&'formatInline'!=_0x1e7bdf['type'])return;const {data:_0x34cb45}=_0x1e7bdf;if(_0x34cb45){if('numberedList'==_0x34cb45['commandName']||'bulletedList'==_0x34cb45['commandName']||'todoList'==_0x34cb45['commandName'])switch(_0x34cb45['commandName']['replace']('List','')){case'bulleted':return _0x54a9f0(At(_0x503246,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54a9f0(At(_0x503246,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54a9f0(At(_0x503246,'ELEMENT_TODO_LIST'));}if('indentList'==_0x34cb45['commandName'])return{'type':'format','content':At(_0x503246,'*Indent:*\x20%0',At(_0x503246,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x34cb45['commandName'])return{'type':'format','content':At(_0x503246,'*Outdent:*\x20%0',At(_0x503246,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x34cb45['commandName'])return _0x34cb45['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x503246,'*Check\x20item*')}:{'type':'format','content':At(_0x503246,'*Uncheck\x20item*')};}function _0x54a9f0(_0x54cf26){return{'type':'format','content':At(_0x503246,'*Change\x20to:*\x20%0',_0x54cf26)};}});}}function he(_0xbab997){const _0x2e1cb2=_0xbab997['getAttribute']('listIndent');if(0x0==_0x2e1cb2)return _0xbab997;let _0x1354db=_0xbab997;for(;_0xbab997['previousSibling']&&_0xbab997['previousSibling']['is']('element','listItem');){const _0x1b48d1=_0xbab997['previousSibling']['getAttribute']('listIndent');if(_0x1b48d1==_0x2e1cb2)_0x1354db=_0xbab997['previousSibling'];else{if(_0x1b48d1<_0x2e1cb2)break;}_0xbab997=_0xbab997['previousSibling'];}return _0x1354db;}function de(_0x158e4b){const _0x458c5c=[];if(_0x158e4b['is']('element','listItem')&&_0x158e4b['getAttribute']('listIndent')>0x0){let _0x321813=_0x158e4b['nextSibling'];for(;_0x321813&&'listItem'==_0x321813['name']&&_0x321813['getAttribute']('listIndent')==_0x158e4b['getAttribute']('listIndent');)_0x458c5c['push'](_0x321813),_0x321813=_0x321813['nextSibling'];}return _0x458c5c;}class fe extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1c22fc=this['editor']['config']['get']('list.properties'),_0x5ce303=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c22fc['styles']&&_0x5ce303['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1c22fc['reversed']&&_0x5ce303['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1c22fc['startIndex']&&_0x5ce303['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5ce303['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x46340d,_0xae5a9a={}){const _0x1e6a9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37048b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e6a9b['markMultiRangeBlockFormat'](_0x37048b,{'commandName':'listStyle','commandParams':[{'type':_0xae5a9a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xaa8b64,_0xc9bbad={}){const _0x34b516=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c274a=this['_getSuggestionBlocks'](_0x24fe65=>_0x24fe65['is']('element','listItem')&&'numbered'===_0x24fe65['getAttribute']('listType'));if(_0x4c274a['length']<0x1)return;const _0x449bc8=_0x4c274a['map'](_0x3e3742=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e3742,'before'),this['editor']['model']['createPositionAt'](_0x3e3742,0x0)));this['editor']['model']['change'](()=>{_0x34b516['markMultiRangeBlockFormat'](_0x449bc8,{'commandName':'listReversed','commandParams':[{'reversed':_0xc9bbad['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x534bc0,_0x19d3b2={}){const _0x321086=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51c503=this['_getSuggestionBlocks'](_0x30ad04=>_0x30ad04['is']('element','listItem')&&'numbered'===_0x30ad04['getAttribute']('listType'));if(_0x51c503['length']<0x1)return;const _0x44c8df=_0x51c503['map'](_0x4e1ba9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e1ba9,'before'),this['editor']['model']['createPositionAt'](_0x4e1ba9,0x0)));this['editor']['model']['change'](()=>{_0x321086['markMultiRangeBlockFormat'](_0x44c8df,{'commandName':'listStart','commandParams':[{'startIndex':_0x19d3b2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x100b0f){if('formatBlock'!=_0x100b0f['type']&&'formatInline'!=_0x100b0f['type'])return;const _0x485d73=this['editor']['locale'],{data:_0x1e48a8}=_0x100b0f;if(!_0x1e48a8)return;let _0x47a351,_0x5efb2e;switch(_0x1e48a8['commandName']){case'listStyle':_0x47a351='*Change\x20to:*\x20%0',_0x5efb2e={'type':'format','content':At(_0x485d73,_0x47a351,At(_0x485d73,this['_getTranslationKeyForListStyle'](_0x1e48a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47a351=_0x1e48a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5efb2e={'type':'format','content':At(_0x485d73,_0x47a351)};break;case'listStart':_0x47a351='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5efb2e={'type':'format','content':At(_0x485d73,_0x47a351,_0x1e48a8['commandParams'][0x0]['startIndex'])};}return _0x5efb2e;}['_getSuggestionBlocksForListStyle'](){const _0x2b2690=this['editor']['plugins']['get']('LegacyListUtils');let _0x33fed4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x33fed4[0x0]?.['is']('element','listItem')&&_0x33fed4['unshift'](..._0x2b2690['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x33fed4[_0x33fed4['length']-0x1]?.['is']('element','listItem')&&_0x33fed4['push'](..._0x2b2690['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x33fed4=[...new Set(_0x33fed4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x33fed4=_0x33fed4['filter'](_0x11d15a=>_0x11d15a['is']('element','listItem'))),_0x33fed4;}['_getSuggestionBlocks'](_0x2df372){const _0x261547=this['editor']['plugins']['get']('LegacyListUtils');let _0x28927b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2df372)['map'](_0x430177=>{const _0x2cad19=this['editor']['model']['createPositionAt'](_0x430177,0x0);return[..._0x261547['getSiblingNodes'](_0x2cad19,'backward'),..._0x261547['getSiblingNodes'](_0x2cad19,'forward')];})['flat']();return _0x28927b=[...new Set(_0x28927b)],_0x28927b;}['_getTranslationKeyForListStyle'](_0x203208){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x203208)||'default')['toUpperCase']()+'_LIST_'+_0x203208['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x36cdc7{['afterInit'](){const _0x4a7da5=this['editor'];if(!_0x4a7da5['plugins']['has']('MediaEmbedEditing'))return;const _0x31e355=_0x4a7da5['plugins']['get']('TrackChangesEditing'),_0x39afa0=_0x4a7da5['locale'];_0x31e355['enableCommand']('mediaEmbed'),_0x31e355['descriptionFactory']['registerElementLabel']('media',_0x4aae65=>At(_0x39afa0,'ELEMENT_MEDIA',_0x4aae65));}}class me extends _0x36cdc7{['afterInit'](){const _0xba44a4=this['editor'];_0xba44a4['plugins']['has']('MentionEditing')&&_0xba44a4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x36cdc7{['afterInit'](){const _0xafce3=this['editor'];if(!_0xafce3['plugins']['has']('MergeFieldsEditing'))return;const _0x4ac382=_0xafce3['plugins']['get']('TrackChangesEditing'),_0x3b93cc=_0xafce3['locale'];_0x4ac382['enableCommand']('insertMergeField'),_0x4ac382['enableCommand']('insertMergeFieldBlock'),_0x4ac382['enableCommand']('insertMergeFieldImage'),_0x4ac382['descriptionFactory']['registerElementLabel']('mergeField',_0x1a3112=>At(_0x3b93cc,'ELEMENT_MERGE_FIELD',_0x1a3112)),_0x4ac382['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14776f=>At(_0x3b93cc,'ELEMENT_MERGE_FIELD',_0x14776f)),_0x4ac382['descriptionFactory']['registerDescriptionCallback'](_0x24edd4=>{if('insertion'!=_0x24edd4['type']&&'deletion'!=_0x24edd4['type'])return;const _0x8ae36e=_0x24edd4['getContainedElement']();if(null==_0x8ae36e)return;const _0x4543be=_0xafce3['plugins']['get']('MergeFieldsEditing');let _0x1620fb;switch(_0x4543be['getMergeFieldType'](_0x8ae36e)){case null:return;case'image':{const _0x18a22e=_0x4543be['unwrapAffixes'](_0x8ae36e['getAttribute']('src'));_0x1620fb=_0x4543be['getLabel'](_0x18a22e)||_0x18a22e;break;}default:{const _0xa265cd=_0x8ae36e['getAttribute']('id');_0x1620fb=_0x4543be['getLabel'](_0xa265cd)||_0xa265cd;break;}}return'insertion'==_0x24edd4['type']?{'type':'insertion','content':At(_0x3b93cc,'*Insert:*\x20%0','\x22'+_0x1620fb+'\x22\x20'+At(_0x3b93cc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x3b93cc,'*Remove:*\x20%0','\x22'+_0x1620fb+'\x22\x20'+At(_0x3b93cc,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x36cdc7{['afterInit'](){const _0x28a64f=this['editor'],_0x1667c2=_0x28a64f['plugins']['get']('TrackChangesEditing');_0x28a64f['plugins']['has']('MultiLevelList')&&(_0x1667c2['enableDefaultAttributesIntegration']('multiLevelList'),_0x1667c2['descriptionFactory']['registerDescriptionCallback'](_0x3dee0f=>this['handleDescriptions'](_0x3dee0f)));}['handleDescriptions'](_0x207f60){const _0x39ee53=this['editor']['locale'],{data:_0x3c712e}=_0x207f60,_0x540094={'type':'format','content':''};if(_0x3c712e&&'listMarkerStyle'==_0x3c712e['key']){if(!_0x3c712e['oldValue'])return{'type':'format','content':At(_0x39ee53,'*Set\x20format:*\x20%0',At(_0x39ee53,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c712e['newValue']+')'};if(!_0x3c712e['newValue']){let _0x54c675=_0x207f60['head'];for(;_0x54c675;){if(_0x54c675['data']&&'listType'==_0x54c675['data']['key']&&_0x54c675['data']['newValue'])return _0x540094;_0x54c675=_0x54c675['next'];}return{'type':'format','content':At(_0x39ee53,'*Remove\x20format:*\x20%0',At(_0x39ee53,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c712e['oldValue']+')'};}}}}class _e extends _0x36cdc7{['afterInit'](){const _0x398856=this['editor'];if(!_0x398856['plugins']['has']('PageBreakEditing'))return;_0x398856['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x463d23=_0x398856['plugins']['get']('TrackChangesEditing'),_0x27c626=_0x398856['locale'];_0x463d23['descriptionFactory']['registerElementLabel']('pageBreak',_0x5a427b=>At(_0x27c626,'ELEMENT_PAGE_BREAK',_0x5a427b));}}class pe extends _0x36cdc7{['afterInit'](){const _0x194c3d=this['editor'];if(!_0x194c3d['plugins']['has']('Paragraph'))return;const _0x167ac3=_0x194c3d['locale'],_0x2b2578=_0x194c3d['plugins']['get']('TrackChangesEditing');_0x2b2578['descriptionFactory']['registerElementLabel']('paragraph',_0x1f8de3=>At(_0x167ac3,'ELEMENT_PARAGRAPH',_0x1f8de3)),_0x2b2578['enableDefaultAttributesIntegration']('paragraph'),_0x2b2578['enableCommand']('insertParagraph');const _0x20512e=_0x2b2578['descriptionFactory'];_0x20512e['registerDescriptionCallback'](_0x269155=>{if('insertion'!==_0x269155['type'])return;const {start:_0x5485aa,end:_0x589a39}=_0x269155['getFirstRange']();if(!_0x5485aa['isTouching'](_0x589a39)||!_0x5485aa['nodeAfter'])return;const _0x1eaf3d=_0x194c3d['model']['schema'],_0x19d213=_0x5485aa['nodeAfter'];return _0x1eaf3d['isBlock'](_0x19d213)&&!_0x1eaf3d['isLimit'](_0x19d213)&&_0x1eaf3d['checkChild'](_0x19d213,'$text')?{'type':'insertion','content':At(_0x167ac3,'*Insert:*\x20%0',_0x20512e['getItemLabel'](_0x19d213,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe5544=this['editor'],_0x1b2a29=_0xe5544['locale'];_0xe5544['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a651f=>{if('formatBlock'!=_0x3a651f['type'])return;const {data:_0x606067}=_0x3a651f;return _0x606067&&'paragraph'==_0x606067['commandName']?{'type':'format','content':At(_0x1b2a29,'*Change\x20to:*\x20%0',At(_0x1b2a29,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x36cdc7{['afterInit'](){const _0x1fdd94=this['editor'];_0x1fdd94['commands']['get']('replaceSource')&&_0x1fdd94['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x36cdc7{['afterInit'](){const _0x297c6f=this['editor'];if(!_0x297c6f['plugins']['has']('RemoveFormatEditing'))return;_0x297c6f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f24be=this['editor'];_0x5f24be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4211b7=>{if('formatBlock'!=_0x4211b7['type']&&'formatInline'!=_0x4211b7['type'])return;const {data:_0x3c7272}=_0x4211b7;return _0x3c7272&&'removeFormat'==_0x3c7272['commandName']?{'type':'format','content':At(_0x5f24be['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x36cdc7{['afterInit'](){const _0x118d33=this['editor'];if(!_0x118d33['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x596e39=_0x118d33['plugins']['get']('TrackChangesEditing');_0x596e39['enableCommand']('goToPreviousRestrictedEditingException'),_0x596e39['enableCommand']('goToNextRestrictedEditingException');const _0x52a52d=_0x118d33['plugins']['get']('RestrictedEditingModeEditing');_0x52a52d['enableCommand']('trackChanges'),_0x52a52d['enableCommand']('acceptSuggestion'),_0x52a52d['enableCommand']('discardSuggestion'),_0x52a52d['enableCommand']('acceptAllSuggestions'),_0x52a52d['enableCommand']('discardAllSuggestions'),_0x52a52d['enableCommand']('acceptSelectedSuggestions'),_0x52a52d['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x36cdc7{['afterInit'](){const _0x59386f=this['editor'];if(!_0x59386f['plugins']['has']('ShiftEnter'))return;const _0x2cbd88=_0x59386f['plugins']['get']('TrackChangesEditing');_0x2cbd88['enableCommand']('shiftEnter'),_0x2cbd88['descriptionFactory']['registerElementLabel']('softBreak',_0x37d6a2=>At(_0x59386f['locale'],'ELEMENT_LINE_BREAK',_0x37d6a2));}}function ke(_0x1741ab,_0x30e57e,_0xa62849){const _0x9843dd=[];for(const _0x7ec3d3 of _0x30e57e['getItems']())_0x7ec3d3['hasAttribute'](_0x1741ab)&&_0x9843dd['push'](_0xa62849['createRangeOn'](_0x7ec3d3));return _0x9843dd;}class Ce extends _0x36cdc7{['afterInit'](){const _0x3f3843=this['editor'],_0x1e17f4=_0x3f3843['plugins']['get']('TrackChangesEditing');_0x3f3843['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1e17f4['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x59375b=this['editor'],_0x2e83d8=_0x59375b['model'],_0x40902e=_0x59375b['locale'],_0x58586d=_0x59375b['plugins']['get']('TrackChangesEditing'),_0x53a4a2='restrictedEditingException',_0x44d648=_0x59375b['commands']['get'](_0x53a4a2);_0x58586d['enableCommand'](_0x53a4a2,(_0x295a60,_0x34c140={})=>{const _0x2d2110=_0x2e83d8['document']['selection'];if(_0x2d2110['isCollapsed'])return void _0x295a60(_0x34c140);const _0x47872b=void 0x0!==_0x34c140['forceValue']?_0x34c140['forceValue']:!_0x44d648['value'];_0x2e83d8['change'](()=>{const _0x5817d5=Array['from'](_0x2d2110['getRanges']());for(const _0x3893ca of _0x5817d5){const _0x10266c=_0x47872b?[_0x3893ca]:ke(_0x53a4a2,_0x3893ca,_0x2e83d8);for(const _0x2ee79d of _0x10266c)_0x58586d['markInlineFormat'](_0x2ee79d,{'commandName':_0x53a4a2,'commandParams':[{'forceValue':_0x47872b}]});}});}),_0x58586d['descriptionFactory']['registerDescriptionCallback'](_0x4cca66=>{if('formatBlock'!=_0x4cca66['type']&&'formatInline'!=_0x4cca66['type'])return;const {data:_0x1258ad}=_0x4cca66;return _0x1258ad&&_0x1258ad['commandName']==_0x53a4a2?_0x1258ad['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x40902e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x40902e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x404565=this['editor'],_0x31853a=_0x404565['locale'],_0x156f6f=_0x404565['plugins']['get']('TrackChangesEditing'),_0x107d8a='restrictedEditingExceptionBlock',_0x3f0718=this['editor']['commands']['get'](_0x107d8a);_0x156f6f['enableCommand'](_0x107d8a,(_0x2444d6,_0x501de1={})=>{const _0x3a7579=this['editor']['model']['document']['selection'],_0x39e658=_0x501de1&&void 0x0!==_0x501de1['forceValue']?_0x501de1['forceValue']:!_0x3f0718['value'];let _0x462e4d=[];if(_0x39e658){const _0x55fd32=Array['from'](_0x3a7579['getSelectedBlocks']())['filter'](_0x2c5aa9=>function(_0x3a9b57){return!!_0x3a9b57['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2c5aa9)||function(_0x1be600,_0x3b89b3){const _0x24a649=_0x3b89b3['createContext'](_0x1be600['parent']);if(!_0x3b89b3['checkChild'](_0x24a649,'restrictedEditingException'))return!0x1;if(!_0x3b89b3['checkChild'](_0x24a649['push']('restrictedEditingException'),_0x1be600))return!0x1;return!0x0;}(_0x2c5aa9,this['editor']['model']['schema']));_0x462e4d=Tt(_0x55fd32,_0x404565['model']);}else{const _0x5c38c8=Array['from'](_0x3a7579['getSelectedBlocks']())['map'](_0x33fd44=>function(_0x212c57){let _0x47e9d7=_0x212c57;for(;_0x47e9d7['parent'];){if('restrictedEditingException'==_0x47e9d7['parent']['name'])return _0x47e9d7;_0x47e9d7=_0x47e9d7['parent'];}return null;}(_0x33fd44))['filter'](_0xe27b64=>!!_0xe27b64);_0x462e4d=Tt(_0x5c38c8,_0x404565['model']);}_0x404565['model']['change'](()=>{for(const _0x18b282 of _0x462e4d)_0x156f6f['markBlockFormat'](_0x18b282,{'commandName':_0x107d8a,'commandParams':[{'forceValue':_0x39e658}]});});}),_0x156f6f['descriptionFactory']['registerDescriptionCallback'](_0x576c20=>{const {data:_0x1d6d72}=_0x576c20;if(_0x1d6d72&&_0x1d6d72['commandName']==_0x107d8a)return _0x1d6d72['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x31853a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x31853a,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x36cdc7{['afterInit'](){const _0x5abc5e=this['editor'];if(!_0x5abc5e['plugins']['has']('Style')||!_0x5abc5e['plugins']['has']('DataSchema'))return;const _0x4edfa2=_0x5abc5e['plugins']['get']('TrackChangesEditing'),_0x53aa25=_0x5abc5e['locale'],_0x3a98c5=_0x5abc5e['config']['get']('style')||{},_0x427dd4=_0x5abc5e['plugins']['get']('GeneralHtmlSupport'),_0x531dc7=_0x5abc5e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5abc5e['plugins']['get']('DataSchema'),_0x3a98c5['definitions']);_0x4edfa2['enableDefaultAttributesIntegration']('style');const _0x282cbf=new Set();for(const _0x4648c4 of _0x531dc7['block']){const _0x29b70e=_0x427dd4['getGhsAttributeNameForElement'](_0x4648c4['element']);_0x282cbf['add'](_0x29b70e);}const _0x774c44=new Set();for(const _0x306be9 of _0x531dc7['inline']){const _0x5c7c1d=_0x427dd4['getGhsAttributeNameForElement'](_0x306be9['element']);_0x774c44['add'](_0x5c7c1d);for(const _0x574417 of _0x306be9['ghsAttributes'])_0x774c44['add'](_0x574417);}for(const _0x26c646 of _0x282cbf)_0x4edfa2['descriptionFactory']['registerAttributeLabel'](_0x26c646,At(_0x53aa25,'FORMAT_STYLE'));for(const _0x3424c6 of _0x774c44)_0x4edfa2['descriptionFactory']['registerAttributeLabel'](_0x3424c6,At(_0x53aa25,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x666363=this['editor'],_0x48bb5c=_0x666363['locale'];_0x666363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e66d=>{if('formatBlock'!=_0x46e66d['type']&&'formatInline'!=_0x46e66d['type'])return;const {data:_0x460887}=_0x46e66d;return _0x460887&&'style'===_0x460887['commandName']?_0x460887['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x48bb5c,'*Set\x20format:*\x20%0',_0x460887['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x48bb5c,'*Remove\x20format:*\x20%0',_0x460887['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x36cdc7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xea42a5){super(_0xea42a5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x38a88e=this['editor'],_0x5bf44e=_0x38a88e['model']['document']['selection'];if(!_0x38a88e['plugins']['has']('TableEditing'))return;const _0x28e97e=_0x38a88e['locale'],_0xd65204=_0x38a88e['plugins']['get']('TrackChangesEditing'),_0xc68a0a=_0x38a88e['plugins']['get']('TableUtils');_0xd65204['descriptionFactory']['registerElementLabel']('table',_0x175cb1=>At(_0x28e97e,'ELEMENT_TABLE',_0x175cb1)),this['_setupColumnsRowsFixing'](),_0xd65204['enableCommand']('insertTable'),_0xd65204['enableCommand']('selectTableRow'),_0xd65204['enableCommand']('selectTableColumn');for(const _0x591b85 of['insertTableRowAbove','insertTableRowBelow']){const _0x21c4bb=_0x38a88e['commands']['get'](_0x591b85);_0xd65204['enableCommand'](_0x591b85,_0x2763a5=>{_0x38a88e['model']['change'](_0x50669e=>{_0x2763a5();const _0x4d6d6a='above'===_0x21c4bb['order'],_0x44f9aa=_0xc68a0a['getSelectionAffectedTableCells'](_0x5bf44e),_0x247037=_0xc68a0a['getRowIndexes'](_0x44f9aa),_0x5363a6=_0x4d6d6a?_0x247037['first']-0x1:_0x247037['last']+0x1,_0xe753f1=_0x44f9aa[0x0]['findAncestor']('table'),_0xf7661=_0xc68a0a['createTableWalker'](_0xe753f1,{'startRow':_0x5363a6,'endRow':_0x5363a6}),_0x55a2bf=Array['from'](_0xf7661)['map'](_0x580e4a=>_0x50669e['createRangeOn'](_0x580e4a['cell']));_0xd65204['markMultiRangeInsertion'](_0x55a2bf,'tableRow');});});}for(const _0x3a53f1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x127ba1=_0x38a88e['commands']['get'](_0x3a53f1);_0xd65204['enableCommand'](_0x3a53f1,_0x966688=>{_0x38a88e['model']['change'](_0x599cf4=>{_0x966688();const _0x3b0ccb='left'===_0x127ba1['order'],_0x319c58=_0xc68a0a['getSelectionAffectedTableCells'](_0x5bf44e),_0x43ad5d=_0xc68a0a['getColumnIndexes'](_0x319c58),_0x1997d7=_0x3b0ccb?_0x43ad5d['first']-0x1:_0x43ad5d['last']+0x1,_0x7d4c46=_0x319c58[0x0]['findAncestor']('table'),_0x5d089a=_0xc68a0a['createTableWalker'](_0x7d4c46,{'startRow':0x0,'column':_0x1997d7,'includeAllSlots':!0x1}),_0x3002bc=Array['from'](_0x5d089a)['map'](_0x3c0b94=>_0x599cf4['createRangeOn'](_0x3c0b94['cell']));_0xd65204['markMultiRangeInsertion'](_0x3002bc,'tableColumn');});});}for(const _0x35cd85 of['removeTableRow','removeTableColumn']){const _0x47cc22=_0x35cd85['substr'](0xb),_0x5096dc=_0x47cc22['toLowerCase'](),_0x4b1af5=_0x5096dc['substr'](0x0,0x3)+'span',_0x218b03='table'+_0x47cc22,_0x10fa9d='min'+_0x47cc22,_0x11e21f='max'+_0x47cc22;_0xd65204['enableCommand'](_0x35cd85,()=>{_0x38a88e['model']['change'](_0x2bf545=>{const _0x57e5ca=_0xc68a0a['getSelectionAffectedTableCells'](_0x5bf44e),_0x48bb96=_0x57e5ca[0x0]['findAncestor']('table');let _0x3a6bb6;if('removeTableRow'==_0x35cd85){const _0x15002f=_0xc68a0a['getRowIndexes'](_0x57e5ca);_0x3a6bb6={'startRow':_0x15002f['first'],'endRow':_0x15002f['last'],'includeAllSlots':!0x0};}else{const _0xe1e557=_0xc68a0a['getColumnIndexes'](_0x57e5ca);_0x3a6bb6={'startColumn':_0xe1e557['first'],'endColumn':_0xe1e557['last'],'includeAllSlots':!0x0};}const _0x347378=_0xc68a0a['createTableWalker'](_0x48bb96,_0x3a6bb6),_0x4135cb=Array['from'](_0x347378)['map'](({cell:_0x18194c})=>_0x18194c),_0x4697e1=Re(_0x4135cb['filter'](_0x46bb54=>_0x46bb54['hasAttribute'](_0x4b1af5))),_0x118d25=Re(_0x4135cb['filter'](_0xc5e9ac=>!_0xc5e9ac['hasAttribute'](_0x4b1af5)))['map'](_0x5d41d2=>_0x2bf545['createRangeOn'](_0x5d41d2)),_0x3b6ec1=_0xd65204['markMultiRangeDeletion'](_0x118d25,_0x218b03);if(_0x3b6ec1&&('tableRow'==_0x3b6ec1['subType']||'tableColumn'==_0x3b6ec1['subType'])){const _0xc39a9f=this['_getSuggestionCoords'](_0x3b6ec1);for(const _0x5a3285 of _0x4697e1){const _0x2a71a8=_0x2bf545['createRangeOn'](_0x5a3285),_0x5b8b4b=_0xc68a0a['getCellLocation'](_0x5a3285),_0x2fa7f1=_0x5a3285['getAttribute'](_0x4b1af5)-0x1,_0x4ae37f=_0xc39a9f[_0x10fa9d],_0x2e4dad=_0xc39a9f[_0x11e21f];_0x4ae37f<=_0x5b8b4b[_0x5096dc]&&_0x5b8b4b[_0x5096dc]+_0x2fa7f1<=_0x2e4dad&&_0x3b6ec1['addRange'](_0x2a71a8);}}});});}function _0x27ecc8(_0x118f73){const _0x4e006b=Array['from'](_0x5bf44e['getRanges']())['map'](_0x4e1561=>_0xf2eec6['fromRange'](_0x4e1561));_0x38a88e['model']['change'](_0x2d93f9=>{const _0x14c8b1=_0x2d93f9['batch'];_0x118f73=_0x118f73['filter'](_0x280d5b=>'$graveyard'!=_0x280d5b['root']['rootName']),_0x2d93f9['setSelection'](_0x118f73),_0x38a88e['commands']['get']('removeTableRow')['refresh'](),_0x38a88e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x38a88e['model']['enqueueChange'](()=>{_0x38a88e['model']['enqueueChange'](_0x14c8b1,_0x4f67ed=>{const _0x25bd1d=_0x4e006b['filter'](_0x29d089=>'$graveyard'!=_0x29d089['root']['rootName']);_0x25bd1d['length']>0x0&&_0x4f67ed['setSelection'](_0x25bd1d);for(const _0x20c3a3 of _0x4e006b)_0x20c3a3['detach']();});});});}function _0x1e775c(_0x9894b5){_0x38a88e['model']['change'](_0x88fe82=>{const _0x69aa53=Array['from'](_0x5bf44e['getRanges']())['map'](_0x1a91d6=>_0xf2eec6['fromRange'](_0x1a91d6)),_0x260c15=[];for(const _0x5ce708 of _0x9894b5)for(const _0x23e327 of _0x5ce708['getItems']({'shallow':!0x0}))_0x260c15['push'](_0x23e327);for(const _0x3690ff of _0x260c15)'$graveyard'!=_0x3690ff['root']['rootName']&&(_0x88fe82['setSelection'](_0x88fe82['createPositionAt'](_0x3690ff,0x0)),_0x38a88e['commands']['get']('removeTableColumn')['refresh'](),_0x38a88e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1cd11f=_0x69aa53['filter'](_0x117429=>'$graveyard'!=_0x117429['root']['rootName']);_0x1cd11f['length']>0x0&&_0x88fe82['setSelection'](_0x1cd11f);for(const _0x4b18c2 of _0x69aa53)_0x4b18c2['detach']();});}function _0x501706(_0x2865f0,_0x5dca51){return _0x5dca51['every'](_0xa7db8e=>_0x2865f0['some'](_0x8dbdde=>_0x8dbdde['end']['isEqual'](_0xa7db8e['start'])||_0xa7db8e['end']['isEqual'](_0x8dbdde['start'])));}function _0x86aeb5(_0x53e480,_0x38127d){return!_0x53e480['some'](_0x7e76ce=>_0x38127d['some'](_0x50cf35=>_0x7e76ce['isIntersecting'](_0x50cf35)))&&_0x53e480['some'](_0x1c680=>_0x38127d['some'](_0x434b3b=>_0x1c680['end']['isTouching'](_0x434b3b['start'])));}_0xd65204['descriptionFactory']['registerDescriptionCallback'](_0x263a80=>{if('insertion'!=_0x263a80['type']&&'deletion'!=_0x263a80['type'])return;const _0xb8a162=_0x263a80['getContainedElement']();if(null!=_0xb8a162&&_0xb8a162['is']('element','table')){if('insertion'==_0x263a80['type']){const _0x55ca1d=_0x263a80['getItems']()['filter'](_0x1e20b5=>_0x1e20b5['is']('$textProxy'))['map'](_0x4a83e3=>_0x4a83e3['data']);if(_0x55ca1d['length'])return{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x55ca1d['join']('\x20')+'\x22'))};}if('deletion'==_0x263a80['type']){const _0x1a5463=_0x263a80['getItems']()['filter'](_0x3364a0=>_0x3364a0['is']('$textProxy'))['map'](_0xe6ae8d=>_0xe6ae8d['data']);if(_0x1a5463['length'])return{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a5463['join']('\x20')+'\x22'))};}}}),_0xd65204['descriptionFactory']['registerDescriptionCallback'](_0x251de1=>{if('tableRow'==_0x251de1['subType']){const _0x1e84fd=_0x251de1['getItems']()['filter'](_0xa16c90=>_0xa16c90['is']('$textProxy'))['map'](_0x318964=>_0x318964['data']),_0x591c4c=this['_getSuggestionCoords'](_0x251de1),_0xa14730=_0x591c4c['maxRow']-_0x591c4c['minRow']+0x1;if('insertion'==_0x251de1['type'])return _0x1e84fd['length']?{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa14730,'\x22'+_0x1e84fd['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW',_0xa14730))};if('deletion'==_0x251de1['type'])return _0x1e84fd['length']?{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa14730,'\x22'+_0x1e84fd['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW',_0xa14730))};}if('tableColumn'==_0x251de1['subType']){const _0x4f0c01=_0x251de1['getItems']()['filter'](_0x361b52=>_0x361b52['is']('$textProxy'))['map'](_0x275717=>_0x275717['data']),_0x43da86=this['_getSuggestionCoords'](_0x251de1),_0x202967=_0x43da86['maxColumn']-_0x43da86['minColumn']+0x1;if('insertion'==_0x251de1['type'])return _0x4f0c01['length']?{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x202967,'\x22'+_0x4f0c01['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN',_0x202967))};if('deletion'==_0x251de1['type'])return _0x4f0c01['length']?{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x202967,'\x22'+_0x4f0c01['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN',_0x202967))};}}),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27ecc8),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27ecc8),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1e775c),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1e775c),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x501706),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x501706),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x86aeb5),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x86aeb5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3fd2c2=this['editor'],_0x233776=_0x3fd2c2['model']['document']['selection'];return(_0x42252c,_0x5909f8)=>{_0x3fd2c2['model']['change'](_0x3aa5b4=>{const {commandName:_0x4a0c70,commandParams:_0x318af1}=_0x5909f8;let _0x1ba1d5=_0x42252c[0x0]['end']['nodeBefore'];_0x318af1&&_0x318af1[0x0]&&!0x1===_0x318af1[0x0]['forceValue']&&(_0x1ba1d5=_0x42252c[0x0]['start']['nodeAfter']);const _0x2b917c=_0x3aa5b4['createRangeIn'](_0x1ba1d5);if('$graveyard'==_0x2b917c['root']['rootName'])return;const _0x46d2ad=Array['from'](_0x233776['getRanges']())['map'](_0x1a6913=>_0xf2eec6['fromRange'](_0x1a6913));_0x3aa5b4['setSelection'](_0x2b917c),_0x3fd2c2['commands']['get'](_0x4a0c70)['refresh'](),_0x318af1['push']({'forceDefaultExecution':!0x0}),_0x3fd2c2['execute'](_0x4a0c70,..._0x318af1);const _0x2630cb=_0x46d2ad['filter'](_0x576b0d=>'$graveyard'!=_0x576b0d['root']['rootName']);_0x2630cb['length']>0x0&&_0x3aa5b4['setSelection'](_0x2630cb);for(const _0x3ac660 of _0x46d2ad)_0x3ac660['detach']();});};}['_getCoordsForCells'](_0x174778){const _0x9235af=this['editor']['plugins']['get']('TableUtils');let _0x23fd85=Number['MAX_SAFE_INTEGER'],_0x52257f=Number['MIN_SAFE_INTEGER'],_0x128d4d=Number['MAX_SAFE_INTEGER'],_0x520bc1=Number['MIN_SAFE_INTEGER'];for(const _0x4720b0 of _0x174778){if('$graveyard'==_0x4720b0['root']['rootName'])continue;const {row:_0x5081ae,column:_0x12a294}=_0x9235af['getCellLocation'](_0x4720b0),_0x438c2c=_0x4720b0['hasAttribute']('rowspan')?_0x4720b0['getAttribute']('rowspan')-0x1:0x0,_0x5ec88e=_0x4720b0['hasAttribute']('colspan')?_0x4720b0['getAttribute']('colspan')-0x1:0x0;_0x23fd85=_0x5081ae<_0x23fd85?_0x5081ae:_0x23fd85,_0x52257f=_0x5081ae+_0x438c2c>_0x52257f?_0x5081ae+_0x438c2c:_0x52257f,_0x128d4d=_0x12a294<_0x128d4d?_0x12a294:_0x128d4d,_0x520bc1=_0x12a294+_0x5ec88e>_0x520bc1?_0x12a294+_0x5ec88e:_0x520bc1;}return{'minRow':_0x23fd85,'maxRow':_0x52257f,'minColumn':_0x128d4d,'maxColumn':_0x520bc1};}['_setupColumnsRowsFixing'](){const _0x4be882=this['editor'],_0x2ee35c=_0x4be882['plugins']['get']('TrackChangesEditing'),_0x4f91c1=_0x4be882['plugins']['get']('TableUtils');_0x4be882['model']['document']['on']('change:data',()=>{const _0x22f379=Array['from'](_0x4be882['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4210f9,data:_0x214427}of _0x22f379){const {group:_0x58b36d,id:_0x426f70,subType:_0x5ba7cd}=_0x4f6d6c(_0x4210f9);if('suggestion'!=_0x58b36d)continue;if(null!=_0x214427['oldRange'])continue;const _0x445434=_0x2ee35c['getSuggestion'](_0x426f70);this['_tablePostFixingSubtypes']['includes'](_0x5ba7cd)&&this['_tableSuggestions']['add'](_0x445434);}},{'priority':'low'});const _0x375259=(_0x3cc0e3,_0x5b5273)=>{let _0x352ab3=!0x1;const _0x24cba3=_0x5b5273['createRangeOn'](_0x3cc0e3),_0x1b59b6=_0x3cc0e3['findAncestor']('table'),_0x3e0cec=_0x4f91c1['getCellLocation'](_0x3cc0e3);for(const _0x30b0e2 of this['_tableSuggestions']){const _0x261064=_0x30b0e2['subType'],_0x124504=_0x261064['startsWith']('tablePaste'),_0x57c64e=_0x261064['substr'](_0x124504?0xa:0x5),_0x1082c4=_0x57c64e['toLowerCase'](),_0x5eaf93=_0x1082c4['substr'](0x0,0x3)+'span',_0x3e4af5='min'+_0x57c64e,_0x107c39='max'+_0x57c64e;if(!_0x30b0e2['isInContent'])continue;if(_0x1b59b6!=_0x30b0e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30b0e2['isIntersectingWithRange'](_0x24cba3))continue;const _0x1702bb=_0x3cc0e3['hasAttribute'](_0x5eaf93)?_0x3cc0e3['getAttribute'](_0x5eaf93)-0x1:0x0,_0x5b734d=this['_getSuggestionCoords'](_0x30b0e2),_0x2e88f3=_0x5b734d[_0x3e4af5],_0x1ee6bd=_0x5b734d[_0x107c39];_0x2e88f3<=_0x3e0cec[_0x1082c4]&&_0x3e0cec[_0x1082c4]+_0x1702bb<=_0x1ee6bd&&(_0x30b0e2['addRange'](_0x24cba3),_0x352ab3=!0x0);}return _0x352ab3;};_0x4be882['model']['document']['registerPostFixer'](_0x169171=>{let _0x38a373=!0x1;for(const _0x33227b of _0x4be882['model']['document']['differ']['getChanges']())if('insert'==_0x33227b['type']){if('tableRow'==_0x33227b['name']){for(const _0x41d750 of _0x33227b['position']['nodeAfter']['getChildren']())_0x38a373=_0x38a373||_0x375259(_0x41d750,_0x169171);}else'tableCell'==_0x33227b['name']&&(_0x38a373=_0x38a373||_0x375259(_0x33227b['position']['nodeAfter'],_0x169171));}return _0x38a373;});}['_getSuggestionCoords'](_0x403f58){return this['_getCoordsForCells'](_0x403f58['getRanges']()['map'](_0x42b1ae=>_0x42b1ae['start']['nodeAfter']));}}function Re(_0x484b75){return Array['from'](new Set(_0x484b75)['values']());}class Se extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x2aed66=this['editor'],_0x4084f9=_0x2aed66['model']['document']['selection'],_0x2c8a6a=_0x2aed66['locale'];if(!_0x2aed66['plugins']['has']('TableEditing'))return;const _0x1aa128=_0x2aed66['plugins']['get']('TrackChangesEditing'),_0x5031ed=_0x2aed66['plugins']['get']('TableUtils'),_0x207cc1=_0x2aed66['plugins']['get'](Ne);_0x207cc1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1aa128['enableCommand']('mergeTableCells',()=>{const _0x274afc=_0x5031ed['getSelectionAffectedTableCells'](_0x2aed66['model']['document']['selection']);_0x2aed66['model']['change'](()=>{_0x1aa128['markMultiRangeBlockFormat'](_0x274afc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2aed66['commands']['get']('mergeTableCells')['on']('execute',(_0x5940b0,_0x30585b)=>{_0x2aed66['commands']['get']('trackChanges')['value']&&(_0x30585b['length']>0x0&&_0x30585b[_0x30585b['length']-0x1]&&_0x30585b[_0x30585b['length']-0x1]['forceDefaultExecution']||_0x1aa128['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5940b0['stop']());},{'priority':'highest'});for(const _0x4cc3db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x467c42=_0x2aed66['commands']['get'](_0x4cc3db);_0x1aa128['enableCommand'](_0x4cc3db,()=>{const _0x532130=_0x2aed66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1904e4=>_0x1904e4['is']('element','tableCell')),_0x154af8=_0x467c42['value'];_0x2aed66['model']['change'](()=>{_0x1aa128['markMultiRangeBlockFormat']([_0x532130,_0x154af8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1b564d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x476838=_0x2aed66['commands']['get'](_0x1b564d);_0x1aa128['enableCommand'](_0x1b564d,()=>{const _0x4a902d=_0x5031ed['getSelectionAffectedTableCells'](_0x2aed66['model']['document']['selection'])[0x0],_0x5e661c=_0x4a902d['findAncestor']('table'),{column:_0x171870,row:_0x44eb05}=_0x5031ed['getCellLocation'](_0x4a902d);let _0x20f13c=[];if('horizontally'==_0x476838['direction']){const _0x39d293=_0x5031ed['createTableWalker'](_0x5e661c,{'startRow':_0x44eb05,'endRow':_0x44eb05,'includeAllSlots':!0x0});_0x20f13c=Array['from'](_0x39d293)['map'](_0x5ce47c=>_0x5ce47c['cell']);}else{const _0x586597=_0x5031ed['createTableWalker'](_0x5e661c,{'column':_0x171870,'includeAllSlots':!0x0});_0x20f13c=Array['from'](_0x586597)['map'](_0x4a057c=>_0x4a057c['cell']);}_0x2aed66['model']['change'](_0xa8e65b=>{_0x1aa128['markBlockFormat'](_0xa8e65b['createRangeOn'](_0x4a902d),{'commandName':_0x1b564d,'commandParams':[]},_0x20f13c,_0x1b564d);});});}_0x1aa128['descriptionFactory']['registerDescriptionCallback'](_0x1ce739=>{if('formatBlock'!=_0x1ce739['type']&&'formatInline'!=_0x1ce739['type'])return;const {data:_0x5378b5}=_0x1ce739;return _0x5378b5&&'mergeTableCells'==_0x5378b5['commandName']?{'type':'format','content':At(_0x2c8a6a,'*Merge\x20cells*')}:void 0x0;}),_0x1aa128['descriptionFactory']['registerDescriptionCallback'](_0x56acae=>{if('formatBlock'!=_0x56acae['type']&&'formatInline'!=_0x56acae['type'])return;const {data:_0x233a01}=_0x56acae;return _0x233a01?'splitTableCellVertically'==_0x233a01['commandName']?{'type':'format','content':At(_0x2c8a6a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x233a01['commandName']?{'type':'format','content':At(_0x2c8a6a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3f09cb=_0x207cc1['_acceptFormatSuggestionCallbackFactory']();for(const _0x1771c9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1aa128['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1771c9,'accept',_0x3f09cb);for(const _0x2b1937 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1aa128['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b1937,'accept',_0x3f09cb);_0x1aa128['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fbbf4=>{_0x2aed66['model']['change'](_0x584ec8=>{const _0x39d6d6=Array['from'](_0x4084f9['getRanges']())['map'](_0x41e81f=>_0xf2eec6['fromRange'](_0x41e81f));_0x584ec8['setSelection'](_0x3fbbf4),_0x2aed66['commands']['get']('mergeTableCells')['refresh'](),_0x2aed66['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4db780=_0x39d6d6['filter'](_0x22603f=>'$graveyard'!=_0x22603f['root']['rootName']);_0x4db780['length']>0x0&&_0x584ec8['setSelection'](_0x4db780);for(const _0x228521 of _0x39d6d6)_0x228521['detach']();});});for(const _0x1bec0b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c4561=_0x2aed66['commands']['get'](_0x1bec0b);_0x5c4561['on']('set:isEnabled',(_0x2b9e90,_0xe665ce,_0x1734ee)=>{if(_0x1734ee){const _0x4baffd=_0x2aed66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e5d65=>_0x1e5d65['is']('element','tableCell'));this['_areMergableCells'](_0x5c4561['value'],_0x4baffd)||(_0x2b9e90['return']=!0x1,_0x2b9e90['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x542d93=this['editor']['commands']['get']('mergeTableCells'),_0x35e873=this['editor']['plugins']['get']('TableUtils');if(!_0x542d93['isEnabled'])return!0x1;const _0x5ba155=_0x35e873['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56b6b2 of _0x5ba155)for(const _0x4fea5d of _0x5ba155)if(_0x56b6b2!=_0x4fea5d&&!this['_areMergableCells'](_0x56b6b2,_0x4fea5d))return!0x1;return!0x0;}['_areMergableCells'](_0x1ddb1e,_0x74c8b3){const _0x25b784=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5464d8=this['editor']['model']['createRangeOn'](_0x1ddb1e),_0x13d935=this['editor']['model']['createRangeOn'](_0x74c8b3),_0x41d642=new Set(),_0x43585d=new Set();for(const _0x252d78 of _0x25b784['getSuggestions']())if(('insertion'==_0x252d78['type']||'deletion'==_0x252d78['type']||'mergeTableCells'==_0x252d78['subType'])&&_0x252d78['isInContent']){for(const _0xeabc47 of _0x252d78['getRanges']())_0xeabc47['containsRange'](_0x5464d8,!0x0)&&_0x41d642['add'](_0x252d78['type']+':'+_0x252d78['author']['id']),_0xeabc47['containsRange'](_0x13d935,!0x0)&&_0x43585d['add'](_0x252d78['type']+':'+_0x252d78['author']['id']);}if(_0x41d642['size']!=_0x43585d['size'])return!0x1;for(const _0x59cbc8 of _0x41d642)if(!_0x43585d['has'](_0x59cbc8))return!0x1;return!0x0;}}class Me extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x542a9c=this['editor'];if(!_0x542a9c['plugins']['has']('TableEditing'))return;const _0x576a46=_0x542a9c['locale'],_0x30d74c=_0x542a9c['plugins']['get']('TrackChangesEditing');_0x30d74c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x30d74c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x30d74c['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x576a46,'FORMAT_HEADER_ROW')),_0x30d74c['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x576a46,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e0491=this['editor']['plugins']['get']('TrackChangesEditing'),_0x588906=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3e0491['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x588906),_0x3e0491['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x588906),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4f489a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20c08a=this['editor']['plugins']['get']('TableUtils');function _0x47c7d7({showActiveMarker:_0x2533c1=!0x0,setDataAttribute:_0xecff0=!0x0}={}){return(_0x552bf1,_0x5c3374,_0x3f521f)=>{const {type:_0x107365,id:_0x3dd4d9}=_0x4f6d6c(_0x5c3374['markerName']);if(!_0x4f489a['hasSuggestion'](_0x3dd4d9))return;const _0x57550f=_0x4f489a['getSuggestion'](_0x3dd4d9),_0x27f6e9=_0x57550f['data'];if('formatBlock'!=_0x57550f['type']||!_0x27f6e9||'setTableColumnHeader'!=_0x27f6e9['commandName'])return;if(_0x5c3374['item'])return void _0x552bf1['stop']();if(!_0x3f521f['consumable']['consume'](_0x5c3374['markerRange'],_0x552bf1['name']))return;const _0x59df5b=_0x5c3374['markerRange']['start']['nodeAfter'],_0x26aa6f=_0x5c3374['markerRange']['end']['nodeBefore'],_0x53be38=_0x59df5b['parent']['parent'],{column:_0x7ff9f8}=_0x20c08a['getCellLocation'](_0x59df5b),{column:_0x5864b8}=_0x20c08a['getCellLocation'](_0x26aa6f);for(let _0x397ae8=_0x7ff9f8;_0x397ae8<=_0x5864b8;_0x397ae8++){const _0x40026a=_0x20c08a['createTableWalker'](_0x53be38,{'column':_0x397ae8,'includeAllSlots':!0x1});for(const _0x585a27 of _0x40026a){const _0x2a02aa=_0x585a27['cell'],_0x3d2edc=_0x3f521f['mapper']['toViewElement'](_0x2a02aa);_0x3f521f['writer']['addClass']('ck-suggestion-marker-'+_0x107365,_0x3d2edc),_0xecff0&&_0x3f521f['writer']['setAttribute']('data-suggestion',_0x3dd4d9,_0x3d2edc),_0x3f521f['mapper']['bindElementToMarker'](_0x3d2edc,_0x5c3374['markerName']),_0x2533c1&&(_0x4f489a['activeMarkers']['includes'](_0x5c3374['markerName'])?_0x3f521f['writer']['addClass']('ck-suggestion-marker--active',_0x3d2edc):_0x3f521f['writer']['removeClass']('ck-suggestion-marker--active',_0x3d2edc));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x47c7d7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4eda84,_0x45b69b,_0x18625f)=>{_0x18625f['options']['showSuggestionHighlights']&&_0x47c7d7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4eda84,_0x45b69b,_0x18625f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x24882f,_0x1c066d,_0x3eaa9f)=>{const {type:_0x28502a,id:_0x4e75a4}=_0x4f6d6c(_0x1c066d['markerName']);if(!_0x4f489a['hasSuggestion'](_0x4e75a4))return;const _0x4d2b8b=_0x4f489a['getSuggestion'](_0x4e75a4),_0x269ba8=_0x4d2b8b['data'];if('formatBlock'!=_0x4d2b8b['type']||!_0x269ba8||'setTableColumnHeader'!=_0x269ba8['commandName'])return;const _0x1a9be9=_0x3eaa9f['mapper']['markerNameToElements'](_0x1c066d['markerName']);if(_0x1a9be9){for(const _0x40289e of _0x1a9be9)_0x3eaa9f['writer']['removeClass']('ck-suggestion-marker-'+_0x28502a,_0x40289e),_0x3eaa9f['writer']['removeClass']('ck-suggestion-marker--active',_0x40289e),_0x3eaa9f['writer']['removeAttribute']('data-suggestion',_0x40289e),_0x3eaa9f['mapper']['unbindElementFromMarkerName'](_0x40289e,_0x1c066d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3ac9a8=this['editor'],_0xb5405a=_0x3ac9a8['locale'];function _0x344dae(_0x5bc46e){return{'type':'format','content':At(_0xb5405a,'*Format:*\x20%0',_0x5bc46e)};}_0x3ac9a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d64bb=>{if('formatBlock'!=_0x1d64bb['type'])return;const {data:_0xc77fb4}=_0x1d64bb;if(_0xc77fb4){if('setTableRowHeader'==_0xc77fb4['commandName']){const _0x537c40=_0xc77fb4['commandParams'][0x0]['forceValue'];return _0x344dae(At(_0xb5405a,_0x537c40?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc77fb4['commandName']){const _0x3c5ef2=_0xc77fb4['commandParams'][0x0]['forceValue'];return _0x344dae(At(_0xb5405a,_0x3c5ef2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x55c9e0=this['editor'];if(!_0x55c9e0['plugins']['has']('TableEditing')||!_0x55c9e0['config']['get']('table.enableFooters'))return;const _0xd72fd5=_0x55c9e0['locale'],_0x5de447=_0x55c9e0['plugins']['get']('TrackChangesEditing');_0x5de447['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5de447['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0xd72fd5,'FORMAT_FOOTER_ROW'));}}class we extends _0x36cdc7{['afterInit'](){const _0x577fa4=this['editor'],_0x16103c=_0x577fa4['locale'],_0x431e74=_0x577fa4['plugins']['get']('TrackChangesEditing');function _0x39ba9d(_0x420de1){return{'type':'format','content':''+At(_0x16103c,'*Set\x20table\x20type:*\x20%0',_0x420de1)};}_0x577fa4['plugins']['has']('TableLayout')&&(_0x431e74['enableCommand']('insertTableLayout'),_0x431e74['enableDefaultAttributesIntegration']('tableType'),_0x431e74['descriptionFactory']['registerElementLabel'](_0x3bae3e=>_0x3bae3e['is']('element','table')&&'layout'===_0x3bae3e['getAttribute']('tableType'),_0x31255c=>At(_0x16103c,'ELEMENT_LAYOUT_TABLE',_0x31255c)),_0x431e74['descriptionFactory']['registerDescriptionCallback'](_0xff4b31=>{const {data:_0x15409b}=_0xff4b31;if(_0x15409b&&'tableType'==_0x15409b['key'])switch(_0x15409b['newValue']){case'layout':return _0x39ba9d(At(_0x16103c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x39ba9d(At(_0x16103c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x3ecfc3=>[_0x3ecfc3,null]));class De extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x9b11b4=this['editor'];if(!_0x9b11b4['plugins']['has']('TableClipboard'))return;const _0x5ba686=_0x9b11b4['plugins']['get']('TrackChangesEditing'),_0x2e9353=_0x9b11b4['plugins']['get']('TableUtils'),_0x3cb3bf=_0x9b11b4['plugins']['get'](Ne),_0x309a11=_0x9b11b4['plugins']['get']('TableClipboard'),_0x24ee8e=_0x9b11b4['plugins']['get']('TableSelection'),_0x257c0b=_0x9b11b4['plugins']['get'](ut);_0x3cb3bf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9b11b4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9b11b4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f6c20=null,_0xdf15b1=!0x1;_0x257c0b['on']('contentInsertion',(_0x461340,_0x319d17)=>{_0xdf15b1='paste'===_0x319d17['method'];}),_0x9b11b4['model']['on']('insertContent',(_0x5a2093,_0x1d2c48)=>{if(!_0xdf15b1&&null===_0x24ee8e['getSelectedTableCells']())return;const [_0x160751,_0x4196e5]=_0x1d2c48,_0x3f629c=_0x1d2c48[_0x1d2c48['length']-0x1];_0x3f629c&&_0x3f629c['forceDefaultExecution']||_0x5ba686['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5db94d,_0x1f20a9,_0x4276c0,_0x2c7e27,_0x557ed7){if(_0x1f20a9&&!_0x1f20a9['is']('documentSelection'))return!0x1;const _0x3b974c=_0x557ed7['getTableIfOnlyTableInContent'](_0x5db94d,_0x4276c0);if(!_0x3b974c||!xe(_0x3b974c,void 0x0,_0x2c7e27))return!0x1;const _0x4fbc49=_0x2c7e27['getSelectionAffectedTableCells'](_0x4276c0['document']['selection']);if(!_0x4fbc49['length'])return!0x1;const _0x16c6e9=_0x4fbc49[0x0]['findAncestor']('table'),_0x8a9b5=_0x2c7e27['getRowIndexes'](_0x4fbc49),_0xcead7c=_0x2c7e27['getColumnIndexes'](_0x4fbc49),_0xc04e45={'startRow':_0x8a9b5['first'],'endRow':_0x8a9b5['last'],'startColumn':_0xcead7c['first'],'endColumn':_0xcead7c['last']};return 0x1==_0x4fbc49['length']&&(_0xc04e45['endRow']+=_0x2c7e27['getRows'](_0x3b974c)-0x1,_0xc04e45['endColumn']+=_0x2c7e27['getColumns'](_0x3b974c)-0x1),xe(_0x16c6e9,_0xc04e45,_0x2c7e27);}(_0x160751,_0x4196e5,_0x9b11b4['model'],_0x2e9353,_0x309a11)&&(_0x5a2093['stop'](),_0x2f6c20={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9b11b4['model']['change'](()=>{_0x9b11b4['model']['insertContent'](_0x1d2c48[0x0],_0x1d2c48[0x1],_0x1d2c48[0x2],{'forceDefaultExecution':!0x0});const _0x2bc994=_0x452c31(),{rowInsertionRanges:_0x4e7c8d,columnInsertionRanges:_0x12dc71,insertionRanges:_0x558301,deletionRanges:_0x125133,cells:_0x10bd8d}=_0x2f6c20;_0x4e7c8d['length']&&_0x5ba686['markMultiRangeInsertion'](_0x4e7c8d,'tablePasteRow',{'tablePasteChainId':_0x2bc994}),_0x12dc71['length']&&_0x5ba686['markMultiRangeInsertion'](_0x12dc71,'tablePasteColumn',{'tablePasteChainId':_0x2bc994}),_0x558301['length']&&(_0x5ba686['markMultiRangeInsertion'](_0x558301,'tablePaste',{'tablePasteChainId':_0x2bc994,'skipNestingCheck':!0x0}),_0x558301['forEach'](_0x53afe8=>_0x53afe8['detach']?.())),_0x125133['length']&&(_0x5ba686['markMultiRangeDeletion'](_0x125133,'tablePaste',{'tablePasteChainId':_0x2bc994,'skipNestingCheck':!0x0}),_0x125133['forEach'](_0x51b453=>_0x51b453['detach']?.()));const _0x360fb3=_0x5ba686['markMultiRangeBlockFormat'](_0x10bd8d['map'](({element:_0x3816d4})=>_0x3816d4),{'formatGroupId':_0x452c31()},[],'tablePasteCell',{'tablePasteChainId':_0x2bc994});if(_0x360fb3){const _0x5edde7=_0x360fb3['getMarkers'](),_0x2ca693=[];for(const {element:_0x2ba4ad,attributes:_0x21b8c2}of _0x10bd8d){if(!_0x21b8c2)continue;const _0x28b167=_0x9b11b4['model']['createRangeOn'](_0x2ba4ad),_0x4abe8a=_0x5edde7['find'](_0x5808bb=>_0x5808bb['getRange']()['isEqual'](_0x28b167));_0x4abe8a&&_0x2ca693['push']([_0x4abe8a['name'],_0x21b8c2]);}_0x2ca693['length']&&_0x360fb3['setAttribute']('markerAttributes',Object['fromEntries'](_0x2ca693));}_0x2f6c20=null;}));},{'priority':_0x49557e['high']+0xa}),_0x257c0b['on']('contentInsertion',()=>{_0xdf15b1=!0x1;},{'priority':'lowest'}),_0x9b11b4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x356161,_0x364f8e)=>{const [_0x32b9d0,_0x265a30,,_0xfddddb]=_0x364f8e;if(!_0x2f6c20)return;_0x356161['stop']();const _0xe3f39d=_0x32b9d0['cell'],_0xaa1a1d=_0x265a30,_0x403812=ve(_0xe3f39d),_0x4f5110=ve(_0xaa1a1d);_0x356161['return']=_0xe3f39d;let _0x2f514b=null,_0x425701=null;if(_0x4f5110||_0x403812){if(_0x403812&&!_0x4f5110){_0xfddddb['remove'](_0xe3f39d['getChild'](0x0));for(const _0x2de78a of Array['from'](_0xaa1a1d['getChildren']()))_0xfddddb['insert'](_0x2de78a,_0xe3f39d,'end');const _0xbc45bf=_0x2f6c20['rowInsertionIndexes']['includes'](_0x32b9d0['row']),_0xdd2c21=_0x2f6c20['columnInsertionIndexes']['includes'](_0x32b9d0['column']);_0xbc45bf||_0xdd2c21||(_0x2f514b=_0xf2eec6['fromRange'](_0xfddddb['createRangeIn'](_0xe3f39d)));}else _0x4f5110&&!_0x403812&&(_0x425701=_0xfddddb['createRangeIn'](_0xe3f39d));}else{const _0x3987ed=_0xfddddb['createElement']('tableCellSuggestion'),_0x3a4f7b=_0xfddddb['createElement']('tableCellSuggestion');_0xfddddb['wrap'](_0xfddddb['createRangeIn'](_0xe3f39d),_0x3a4f7b),_0xfddddb['insert'](_0x3987ed,_0xe3f39d,0x0);for(const _0x4c7dcc of Array['from'](_0xaa1a1d['getChildren']()))_0xfddddb['insert'](_0x4c7dcc,_0x3987ed,'end');_0x2f514b=_0xf2eec6['fromRange'](_0xfddddb['createRangeOn'](_0x3987ed)),_0x425701=_0xf2eec6['fromRange'](_0xfddddb['createRangeOn'](_0x3a4f7b));}const _0x13e2ac=Array['from'](_0xaa1a1d['getAttributes']())['filter'](([_0x2af830])=>Be['includes'](_0x2af830));_0x2f6c20['cells']['push']({'element':_0xe3f39d,'attributes':_0x13e2ac['length']?Object['fromEntries'](_0x13e2ac):null}),_0x2f514b&&_0x2f6c20['insertionRanges']['push'](_0x2f514b),_0x425701&&_0x2f6c20['deletionRanges']['push'](_0x425701);},{'priority':'high'}),_0x2e9353['on']('insertColumns',(_0x36c420,_0x1e06d9)=>{const [_0x4dbf04,_0x342491={}]=_0x1e06d9;if(!_0x2f6c20)return;const _0x346645=_0x342491['at']||0x0,_0x4b4374=_0x342491['columns']||0x1;_0x2f6c20['columnInsertionIndexes']=new Array(_0x4b4374)['fill'](_0x346645)['map']((_0x3aea9a,_0x56a98f)=>_0x3aea9a+_0x56a98f);for(const {cell:_0x584a27}of _0x2e9353['createTableWalker'](_0x4dbf04,{'startColumn':_0x346645,'endColumn':_0x346645+_0x4b4374-0x1}))_0x2f6c20['columnInsertionRanges']['push'](_0x9b11b4['model']['createRangeOn'](_0x584a27));},{'priority':'low'}),_0x2e9353['on']('insertRows',(_0xd56df3,_0x3b64a4)=>{const [_0x1c6c21,_0x465556={}]=_0x3b64a4;if(!_0x2f6c20)return;const _0x13914e=_0x465556['at']||0x0,_0xc9cf56=_0x465556['rows']||0x1;_0x2f6c20['rowInsertionIndexes']=new Array(_0xc9cf56)['fill'](_0x13914e)['map']((_0x2280f8,_0x57e723)=>_0x2280f8+_0x57e723);for(const {cell:_0x3cf98a}of _0x2e9353['createTableWalker'](_0x1c6c21,{'startRow':_0x13914e,'endRow':_0x13914e+_0xc9cf56-0x1}))_0x2f6c20['rowInsertionRanges']['push'](_0x9b11b4['model']['createRangeOn'](_0x3cf98a));},{'priority':'low'}),_0x5ba686['descriptionFactory']['registerDescriptionCallback'](_0x11f500=>{if(_0x11f500['subType']&&_0x11f500['subType']['startsWith']('tablePaste'))return _0x11f500['previous']?{}:{'type':'insertion','content':At(_0x9b11b4['locale'],'*Replace\x20table\x20cells*')};});const _0x1eeddb=()=>!0x1;for(const _0x37dfb0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5ba686['_suggestionFactory']['registerCustomCallback']('insertion',_0x37dfb0,'join',_0x1eeddb),_0x5ba686['_suggestionFactory']['registerCustomCallback']('deletion',_0x37dfb0,'join',_0x1eeddb),_0x5ba686['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37dfb0,'join',_0x1eeddb);_0x5ba686['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1eeddb),_0x5ba686['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x460e2b,_0x265a34,_0x4adf7d)=>{const _0x198db2=_0x460e2b['map'](_0x1f8908=>_0x1f8908['getContainedElement']())['filter'](_0x114276=>_0x114276),_0xaea99d=new Map(_0x198db2['map'](_0xfc449c=>[_0xfc449c,null]));if(_0x2f6c20){for(const {element:_0xe97dda,attributes:_0x490bb0}of _0x2f6c20['cells'])_0x490bb0&&_0xaea99d['set'](_0xe97dda,_0x490bb0);}else{if(_0x4adf7d&&_0x4adf7d['markerAttributes'])for(const [_0xb595f5,_0x3971d7]of Object['entries'](_0x4adf7d['markerAttributes'])){const _0x5ee0f4=_0x9b11b4['model']['markers']['get'](_0xb595f5),_0x3d380e=_0x5ee0f4?_0x5ee0f4['getRange']()['getContainedElement']():null;_0x3d380e&&_0xaea99d['set'](_0x3d380e,_0x3971d7);}}_0x9b11b4['model']['change'](_0x1598ae=>{for(const [_0x258515,_0x515578]of _0xaea99d)_0x1598ae['setAttributes']({...Fe,..._0x515578},_0x258515);});});const _0x3dad32=(_0x3ed2c9,_0x3ce9e8)=>{_0x5ba686['_suggestionFactory']['registerCustomCallback'](_0x3ed2c9,'tablePaste',_0x3ce9e8,(_0x521ddd,_0x272f8f,_0x1f542d)=>{_0x9b11b4['model']['change'](_0x2e7d0b=>{const _0xe43f9d=[];for(const _0x404fc of _0x521ddd){const _0x54fc90=_0x404fc['start']['nodeAfter'];_0x54fc90['is']('element','tableCellSuggestion')&&_0xe43f9d['push'](_0x54fc90);}_0x5ba686['_suggestionFactory']['getSuggestionCallback'](_0x3ed2c9,null,_0x3ce9e8)(_0x521ddd,_0x272f8f,_0x1f542d);for(const _0x259aaf of _0xe43f9d)'$graveyard'!=_0x259aaf['root']['rootName']&&_0x2e7d0b['unwrap'](_0x259aaf);});});};_0x3dad32('insertion','accept'),_0x3dad32('insertion','discard'),_0x3dad32('deletion','accept'),_0x3dad32('deletion','discard'),_0x5ba686['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f0683=>{const _0x539878=_0x3f0683['map'](_0x101ddd=>_0x101ddd['getContainedElement']()),_0x2743e1=_0x539878[0x0]['findAncestor']('table'),{minRow:_0x546bbd,maxRow:_0x52c0f5}=_0x3cb3bf['_getCoordsForCells'](_0x539878);_0x2e9353['removeRows'](_0x2743e1,{'at':_0x546bbd,'rows':_0x52c0f5-_0x546bbd+0x1});}),_0x5ba686['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x583253=>{const _0xb1172d=_0x583253['map'](_0x293e6=>_0x293e6['getContainedElement']()),_0x25b36f=_0xb1172d[0x0]['findAncestor']('table'),{minColumn:_0x5198dd,maxColumn:_0x1454f7}=_0x3cb3bf['_getCoordsForCells'](_0xb1172d);_0x2e9353['removeColumns'](_0x25b36f,{'at':_0x5198dd,'columns':_0x1454f7-_0x5198dd+0x1});});const _0x59122d=(_0x67bb42,_0x2d1c09)=>{if(!_0x2d1c09['subType']||!_0x2d1c09['subType']['startsWith']('tablePaste'))return;const _0x1274b6=_0x2d1c09['attributes']['tablePasteChainId'],_0x2dbabc=_0x5ba686['getSuggestions']()['filter'](_0x56b419=>_0x56b419['isInContent']&&_0x56b419['attributes']&&_0x56b419['attributes']['tablePasteChainId']==_0x1274b6);_0x2dbabc['length']&&_0x2d1c09['getAllAdjacentSuggestions']()['length']!=_0x2dbabc['length']&&_0x2dbabc['reduce']((_0x50da9a,_0x3dceab)=>(_0x50da9a['next']=_0x3dceab,_0x3dceab['previous']=_0x50da9a,_0x3dceab));};function _0x174e10(_0x3cbbbc,_0x104a38=!0x0){const {id:_0x246764,authorId:_0x43c470}=_0x4f6d6c(_0x3cbbbc['markerName']),_0x58c5d9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d7edf=_0x5ba686['activeMarkers']['includes'](_0x3cbbbc['markerName']);return _0x1d7edf&&_0x58c5d9['push']('ck-suggestion-marker--active'),{'classes':_0x58c5d9,'attributes':{'data-suggestion':_0x246764,'data-author-id':_0x43c470},'priority':_0x1d7edf&&_0x104a38?0xbc2:0xbb8};}_0x5ba686['on']('suggestionLoaded',_0x59122d,{'priority':'high'}),_0x5ba686['on']('suggestionUnloaded',_0x59122d,{'priority':'high'}),_0x9b11b4['model']['document']['registerPostFixer'](()=>{let _0x519001=!0x1;const _0xf3e1e8=Array['from'](_0x9b11b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13a8ab,data:_0xfe2120}of _0xf3e1e8){const {group:_0x1d18d3,type:_0x143e6c,id:_0x585dea}=_0x4f6d6c(_0x13a8ab);if('suggestion'!=_0x1d18d3||'deletion'!=_0x143e6c||_0xfe2120['oldRange'])continue;if(!_0x5ba686['hasSuggestion'](_0x585dea))continue;const _0x5b0ca8=_0x5ba686['getSuggestion'](_0x585dea)['getRanges'](),_0xd3cbb4=_0x9b11b4['plugins']['get']('Users')['me'];for(const _0x3ebeb6 of _0x5ba686['getSuggestions']()){if(!_0x3ebeb6['isInContent']||_0x3ebeb6['author']!=_0xd3cbb4)continue;if('formatBlock'!=_0x3ebeb6['type']||'tablePasteCell'!=_0x3ebeb6['subType'])continue;if(_0x3ebeb6['getRanges']()['every'](_0x204943=>_0x5b0ca8['some'](_0x3fe682=>_0x3fe682['containsRange'](_0x204943,!0x0)))){for(const _0x2fbb01 of _0x3ebeb6['getAllAdjacentSuggestions']())_0x2fbb01['isInContent']&&(_0x2fbb01['discard'](),_0x519001=!0x0);}}}return _0x519001;}),_0x9b11b4['model']['document']['registerPostFixer'](_0x14722b=>{const _0x4655a4=_0x9b11b4['commands']['get']('redo');if(!_0x4655a4||!_0x4655a4['_createdBatches']['has'](_0x14722b['batch']))return!0x1;let _0x324bac=!0x1;const _0x183181=_0x9b11b4['plugins']['get']('Users')['me'],_0xd51626=_0x9b11b4['model']['document']['differ']['getChanges'](),_0x64f860=Array['from'](_0x9b11b4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x36d010,data:_0x2e3468})=>{const {group:_0x182b1c,subType:_0x51951e,authorId:_0x28078b}=_0x4f6d6c(_0x36d010);return'suggestion'==_0x182b1c&&'tablePaste'==_0x51951e&&_0x28078b==_0x183181['id']&&!_0x2e3468['oldRange'];});for(const _0x4dc502 of _0xd51626){if('insert'!=_0x4dc502['type']||'tableCellSuggestion'!=_0x4dc502['name']||0x1!=_0x4dc502['length'])continue;const _0x544876=_0x14722b['createRange'](_0x4dc502['position'],_0x4dc502['position']['getShiftedBy'](0x1));if(!_0x64f860['find'](({data:_0x35c5da})=>_0x35c5da['newRange']['isEqual'](_0x544876))){for(const {name:_0x236f62,data:_0x554d03}of _0x64f860)if(_0x544876['containsRange'](_0x554d03['newRange'])){_0x14722b['updateMarker'](_0x236f62,{'range':_0x544876}),_0x324bac=!0x0;break;}}}return _0x324bac;}),_0x9b11b4['model']['document']['registerPostFixer'](_0x4e205f=>{let _0x70643c=!0x1;const _0x54bc42=_0x9b11b4['plugins']['get']('Users')['me'],_0x446943=_0x5ba686['getSuggestions']()['filter'](_0x125f66=>_0x125f66['isInContent']&&_0x125f66['author']==_0x54bc42),_0x363057=new Set(),_0x57d711=new Set();for(const _0x541044 of _0x446943)if('tablePaste'==_0x541044['subType'])for(const _0x59b1a7 of _0x541044['getMarkers']()){const _0xc35f59=_0x59b1a7['getRange']()['getContainedElement']();if(_0xc35f59){if(_0xc35f59['is']('element','tableCellSuggestion')&&ve(_0xc35f59)){_0x541044['removeMarker'](_0x59b1a7['name']),_0x363057['add'](_0xc35f59),_0x70643c=!0x0;const _0x32c07c=_0xc35f59['nextSibling'],_0x1ba5a7=_0xc35f59['previousSibling'],_0x331075=_0x32c07c&&_0x32c07c['is']('element','tableCellSuggestion'),_0xdc54e4=_0x1ba5a7&&_0x1ba5a7['is']('element','tableCellSuggestion');_0x331075&&!_0x363057['has'](_0x32c07c)&&_0x57d711['add'](_0x32c07c),_0xdc54e4&&!_0x363057['has'](_0x1ba5a7)&&_0x57d711['add'](_0x1ba5a7);}else _0xc35f59['is']('element','paragraph')&&_0xc35f59['isEmpty']&&(_0x541044['removeMarker'](_0x59b1a7['name']),_0x70643c=!0x0);}}else{if('tablePasteCell'==_0x541044['subType']){if(!_0x541044['attributes']||!_0x541044['attributes']['tablePasteChainId'])continue;const _0x572254=_0x541044['attributes']['markerAttributes'];if(_0x572254&&Object['keys'](_0x572254)['length'])continue;const _0x2ec33b=_0x541044['attributes']['tablePasteChainId'];let _0x2266d5=!0x0,_0x92c767=!0x0;for(const _0x309690 of _0x446943)if(_0x309690['subType']&&_0x309690['subType']['startsWith']('tablePaste')){if(!_0x309690['attributes']['tablePasteChainId']){_0x92c767=!0x1;break;}if(_0x309690['id']!=_0x541044['id']&&_0x309690['attributes']['tablePasteChainId']==_0x2ec33b){_0x2266d5=!0x1;break;}}_0x92c767&&_0x2266d5&&(_0x541044['removeMarkers'](),_0x70643c=!0x0);}}for(const _0x2b4580 of _0x363057)_0x4e205f['remove'](_0x2b4580);for(const _0x22ee86 of _0x57d711)_0x4e205f['unwrap'](_0x22ee86);return _0x70643c;}),_0x9b11b4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c3b5d=>_0x174e10(_0x5c3b5d),'converterPriority':'high'}),_0x9b11b4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30f8cd,_0xe97b69)=>_0xe97b69['options']['showSuggestionHighlights']?_0x174e10(_0x30f8cd,!0x1):null,'converterPriority':'high'});const _0xac309d=_0x9b11b4['editing']['view'];this['listenTo'](_0xac309d['document'],'clipboardOutput',(_0x3e018d,_0x15e07c)=>{const _0x22a4ab=[];for(const _0x3c8a25 of _0xac309d['createRangeIn'](_0x15e07c['content'])['getItems']())_0x3c8a25['is']('element','suggestion-td')&&_0x22a4ab['push'](_0x3c8a25);_0xac309d['change'](_0x48d7d5=>{for(const _0x72d1c4 of _0x22a4ab)_0x48d7d5['move'](_0x48d7d5['createRangeIn'](_0x72d1c4),_0x48d7d5['createPositionBefore'](_0x72d1c4)),_0x48d7d5['remove'](_0x72d1c4);});});}}function ve(_0x7ec702){if(_0x7ec702['isEmpty'])return!0x0;const _0x982adb=_0x7ec702['getChild'](0x0);return _0x982adb['is']('element','paragraph')&&_0x982adb['isEmpty'];}function xe(_0x2d6656,_0x1125c7={},_0x3df672){for(const {isAnchor:_0x36c3fc,cellHeight:_0x1df0a5,cellWidth:_0x3525fd}of _0x3df672['createTableWalker'](_0x2d6656,{'includeAllSlots':!0x0,..._0x1125c7}))if(!_0x36c3fc||0x1!=_0x1df0a5||0x1!=_0x3525fd)return!0x1;return!0x0;}class Pe extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x18972e=this['editor']['plugins']['get']('TrackChangesEditing');_0x18972e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x18972e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x18972e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18972e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x18972e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x18972e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x631210,_0x312bbc){const _0x1dea12=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdc528e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2e0410=_0x312bbc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x33776a=_0xdc528e['getColumnGroupElement'](_0x2e0410);let _0xa72df=_0x33776a?_0xdc528e['getTableColumnsWidths'](_0x33776a):null,_0xaee0ce=_0x2e0410['getAttribute']('tableWidth')||null;const _0x576fbb=_0x312bbc['tableWidth']||_0xaee0ce,_0x55427d=_0x312bbc['columnWidths']||_0xa72df,_0x6d9ed7=this['editor']['plugins']['get']('Users')['me'];for(const _0x9accb1 of _0x1dea12['getSuggestions']()){const _0x2a56c3=_0x9accb1['getContainedElement']();if('resizeTable'===_0x9accb1['subType']&&_0x2a56c3===_0x2e0410){_0x9accb1['author']!==_0x6d9ed7&&_0x9accb1['discard']();const _0x17520a=_0x9accb1['data']['commandParams'];_0xaee0ce=_0x17520a[0x0]['tableWidth'],_0xa72df=_0x17520a[0x0]['columnWidths'];break;}}_0x631210({'table':_0x2e0410,'tableWidth':_0x576fbb,'columnWidths':_0x55427d}),_0x1dea12['markBlockFormat'](_0x2e0410,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xaee0ce,'columnWidths':_0xa72df}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4bdc16){if('formatBlock'!=_0x4bdc16['type']&&'formatInline'!=_0x4bdc16['type'])return;const {data:_0xe8b525}=_0x4bdc16;if(_0xe8b525&&'resizeTable'===_0xe8b525['formatGroupId']){const _0x1cdcf3='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x1cdcf3)};}}}class Ue extends _0x36cdc7{['afterInit'](){const _0x50508b=this['editor'];_0x50508b['plugins']['has']('Template')&&_0x50508b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x36cdc7{['afterInit'](){const _0x59c40f=this['editor'];if(!_0x59c40f['commands']['get']('insertTableOfContents'))return;_0x59c40f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f18a5=_0x59c40f['plugins']['get']('TrackChangesEditing'),_0x2e25f1=_0x59c40f['locale'];_0x3f18a5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2d0ed9=>At(_0x2e25f1,'ELEMENT_TABLE_OF_CONTENTS',_0x2d0ed9));}}class He extends _0x36cdc7{['afterInit'](){const _0x1b5fd2=this['editor'];if(!_0x1b5fd2['plugins']['has']('Title'))return;_0x1b5fd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x1b5fd2['locale'],'ELEMENT_TITLE')),_0x1b5fd2['model']['document']['registerPostFixer'](_0x286043=>{let _0x4a9ddb=!0x1;const _0x41526d=Array['from'](_0x1b5fd2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe5ba20,data:_0x11c086}of _0x41526d){const {group:_0x3e29c5}=_0x4f6d6c(_0xe5ba20);if('suggestion'!==_0x3e29c5||!_0x11c086['newRange'])continue;const _0x11e8b7=_0x11c086['newRange'],_0x3ccfa2=_0x11e8b7['end']['nodeBefore'];if(!_0x3ccfa2||!_0x3ccfa2['is']('element','title-content'))continue;if(!_0x11e8b7['start']['isTouching'](_0x11e8b7['end']))continue;const _0x3f54ee=_0x1b5fd2['model']['schema']['getNearestSelectionRange'](_0x11e8b7['end'],'forward');if(_0x3f54ee&&_0x3f54ee['isCollapsed']){const _0x32aeab=_0x286043['createRange'](_0x11e8b7['start'],_0x3f54ee['start']);_0x32aeab['isEqual'](_0x11e8b7)||(_0x286043['updateMarker'](_0xe5ba20,{'range':_0x32aeab}),_0x4a9ddb=!0x0);}_0x4a9ddb||(_0x286043['removeMarker'](_0xe5ba20),_0x4a9ddb=!0x0);}return _0x4a9ddb;});}}class $e extends _0x36cdc7{['afterInit'](){const _0x2eda06=this['editor'],_0x1be169=_0x2eda06['plugins']['get']('TrackChangesEditing');_0x2eda06['plugins']['has']('Uploadcare')&&(_0x1be169['enableCommand']('uploadcare'),_0x2eda06['plugins']['has']('UploadcareImageEdit')&&(_0x1be169['enableCommand']('uploadcareImageEdit'),_0x1be169['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1be169['descriptionFactory']['registerDescriptionCallback'](_0x37c7db=>{if('attribute'!=_0x37c7db['type'])return;const {data:_0x3a50bf}=_0x37c7db;return _0x3a50bf&&'uploadcareImageId'==_0x3a50bf['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x36cdc7{['afterInit'](){const _0x1c00e5=this['editor'],_0x564524=_0x1c00e5['plugins']['get']('TrackChangesEditing');_0x1c00e5['plugins']['has']('UndoEditing')&&(_0x564524['enableCommand']('undo'),_0x564524['enableCommand']('redo'));}}class Ve extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x34f2e7=this['editor'];if(!_0x34f2e7['plugins']['has']('TableCaptionEditing'))return;_0x34f2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x36cdc7{['tableProperties'];['tableCellProperties'];constructor(_0x1a6922){super(_0x1a6922),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 _0x58a247=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3b7925 of this['tableProperties'])_0x58a247['enableCommand'](_0x3b7925,(_0x3a5f76,_0x382e92)=>{const _0x5bac7e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3b7925,[_0x5bac7e],this['tableProperties'],'tableProperties',_0x3a5f76,_0x382e92);});_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x58a247['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2da1fd,_0x54bad7)=>this['handleDiscardAction'](this['tableProperties'],_0x2da1fd,_0x54bad7)),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x16daf3 of this['tableCellProperties'])this['editor']['commands']['get'](_0x16daf3)&&_0x58a247['enableCommand'](_0x16daf3,(_0x4653c4,_0x226dd5)=>{const _0x49f808=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x16daf3,_0x49f808,this['tableCellProperties'],'tableCellProperties',_0x4653c4,_0x226dd5);});_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x58a247['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b9d4d,_0x408c76)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b9d4d,_0x408c76)),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x58a247['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x58a247['descriptionFactory']['registerDescriptionCallback'](_0xf2d3ab=>this['handleSuggestionDescription'](_0xf2d3ab)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x54a544,_0x4e96c3,_0x1705c8,_0x1bd491,_0x5c33c9,_0x1cf09d){const _0x3b8ee7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1cf09d['batch'],()=>{for(const _0x2877ab of _0x4e96c3){if(this['_getSuggestion'](_0x2877ab,_0x1bd491))_0x5c33c9(_0x1cf09d);else{const _0x14c2cb={};for(const _0x498b2c of _0x1705c8){const _0x306e57=_0x2877ab['getAttribute'](_0x498b2c);void 0x0!==_0x306e57&&(_0x14c2cb[_0x498b2c]=_0x306e57);}_0x5c33c9(_0x1cf09d),_0x3b8ee7['markBlockFormat'](_0x2877ab,{'commandParams':[_0x14c2cb]},[],_0x1bd491);}}});}['handleDiscardAction'](_0x412236,_0xbc521a,_0x338847){const _0x7fc666=_0xbc521a[0x0]['start']['nodeAfter'],_0x2d85fb=_0x338847['commandParams'][0x0];this['editor']['model']['change'](_0x412a02=>{for(const _0x1ceee2 of _0x412236)void 0x0!==_0x2d85fb[_0x1ceee2]?_0x412a02['setAttribute'](_0x1ceee2,_0x2d85fb[_0x1ceee2],_0x7fc666):_0x412a02['removeAttribute'](_0x1ceee2,_0x7fc666);});}['handleSuggestionDescription'](_0x9a93b9){if(_0x9a93b9['data'])switch(_0x9a93b9['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4eb008,_0xfd1174){const _0x2f8305=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5e5ef7 of _0x2f8305['getSuggestions']({'skipNotAttached':!0x0})){const _0x28fa04=_0x5e5ef7['getContainedElement']();if(_0x5e5ef7['subType']===_0xfd1174&&_0x28fa04===_0x4eb008)return _0x5e5ef7;}return null;}['_registerTablePropertiesAttributes'](){const _0x46d6d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x433777=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5cdc84 of _0x433777){const _0x10f7c9=_0x5cdc84['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x46d6d7['descriptionFactory']['registerAttributeLabel'](_0x5cdc84,At(this['editor']['locale'],'FORMAT_'+_0x10f7c9));}}}class ze extends _0x36cdc7{['afterInit'](){const _0xb32930=this['editor'];if(!_0xb32930['plugins']['has']('LineHeight'))return;const _0x29caeb=_0xb32930['plugins']['get']('TrackChangesEditing'),_0x2d566d=_0xb32930['locale'];_0x29caeb['enableDefaultAttributesIntegration']('lineHeight'),_0x29caeb['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x2d566d,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x36cdc7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x29b6a2,_0x4ac64f,_0x286f71,_0x2e911b,_0x4d48c8,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f398){super(_0x1f398),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c6ed5,_0x81142a,_0x417137,_0x59a205)=>{this['_model']['change'](()=>{for(const _0x48c91a of[..._0x59a205,..._0x417137])this['_model']['markers']['has'](_0x48c91a)&&_0x1f398['editing']['reconvertMarker'](_0x48c91a);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1f398['plugins']['get'](_0x29b6a2),this['_suggestionsConversion']=_0x1f398['plugins']['get'](_0x4ac64f),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1f398['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f398['config']['get']('trackChanges.trackFormatChanges'),_0x1f398['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f398['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x1f398,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1063c2=this['editor'];_0x1063c2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x46dbd3,{writer:_0x50b8c6})=>{let _0x281bb1='suggestion:'+_0x46dbd3['getAttribute']('suggestion-type')+':'+_0x46dbd3['getAttribute']('id');return _0x46dbd3['getAttribute']('marker-count')&&(_0x281bb1+=':'+_0x46dbd3['getAttribute']('marker-count')),_0x50b8c6['createElement']('$marker',{'data-name':_0x281bb1});}}),_0x1063c2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1063c2['model']['document']['registerPostFixer'](_0x42dbc6=>{let _0x45dc70=!0x1;const _0x5a010f=Array['from'](_0x1063c2['model']['document']['differ']['getChangedMarkers']()),_0x313d52=new Set();for(const {name:_0x3176d1,data:_0x4010fd}of _0x5a010f){const {group:_0x394e53,type:_0x2c6482,subType:_0x3b17b2,id:_0xb4f1f5}=_0x4f6d6c(_0x3176d1);if('suggestion'!==_0x394e53)continue;const _0x6bba5c=_0x3b17b2?'suggestion:'+_0x2c6482+':'+_0x3b17b2+':'+_0xb4f1f5:'suggestion:'+_0x2c6482+':'+_0xb4f1f5,_0x2cb743=_0x1063c2['model']['markers']['getMarkersGroup'](_0x6bba5c),_0x5c3b72=_0x1063c2['model']['markers']['get'](_0x3176d1),_0x235ff7=this['_suggestions']['get'](_0xb4f1f5);if(null!=_0x4010fd['newRange']){'formatInline'==_0x2c6482&&(_0x45dc70=_0x45dc70||Ze(_0x4010fd['newRange'],_0x3176d1,_0x42dbc6,_0x1063c2['model']['schema']));const _0x384d63='attribute'==_0x2c6482&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x3b17b2)),_0xd47600='attribute'==_0x2c6482&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x3b17b2));if(_0x4010fd['newRange']['isCollapsed']||'$graveyard'==_0x4010fd['newRange']['root']['rootName']||'formatBlock'==_0x2c6482&&!tn(_0x4010fd['newRange'])||_0x384d63&&!tn(_0x4010fd['newRange'])||_0xd47600&&en(_0x4010fd['newRange'])||'deletion'==_0x2c6482&&en(_0x4010fd['newRange'])||_0x5c3b72&&nn(_0x5c3b72,_0x2cb743))_0x42dbc6['removeMarker'](_0x3176d1),_0x45dc70=!0x0;else{if(!_0x235ff7||!_0x235ff7['isInContent'])continue;if(_0x4010fd['newRange']&&_0x4010fd['oldRange']&&_0x4010fd['newRange']['isEqual'](_0x4010fd['oldRange']))continue;_0x313d52['add'](_0x235ff7);}}}return _0x313d52['size']>0x0&&(_0x45dc70=!!this['_joinWithAdjacentSuggestions'](_0x313d52)||_0x45dc70),_0x45dc70;}),_0x1063c2['model']['document']['registerPostFixer'](_0x462022=>{let _0x5f3928=!0x1;for(const _0x1dc5c6 of _0x1063c2['model']['document']['differ']['getChanges']())if('insert'==_0x1dc5c6['type'])for(const _0x541f87 of this['_suggestions']['values']()){if(_0x541f87['isMultiRange']||!_0x541f87['isInContent'])continue;const _0x215822='formatBlock'==_0x541f87['type'],_0x15ae9c=this['_getAttributeKey'](_0x541f87),_0x462da8=_0x15ae9c&&this['_suggestionsConversion']['isBlockAttribute'](_0x15ae9c);if(!_0x215822&&!_0x462da8)continue;const _0x43ddbc=_0x541f87['getFirstRange']();if(_0x43ddbc['start']['parent']!=_0x43ddbc['end']['parent']&&!_0x43ddbc['end']['isAtEnd']){const _0x2b05d0=_0x1063c2['model']['createPositionAt'](_0x43ddbc['start']['nodeAfter'],'end'),_0x52afd6=_0x1063c2['model']['createRange'](_0x43ddbc['start'],_0x2b05d0);_0x462022['updateMarker'](_0x541f87['getFirstMarker'](),{'range':_0x52afd6}),_0x5f3928=!0x0;}}return _0x5f3928;}),_0x1063c2['model']['document']['registerPostFixer'](_0xe1b028=>this['_processAttributeChanges'](_0xe1b028)),_0x1063c2['model']['document']['registerPostFixer'](_0x16c55b=>!_0x16c55b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x16c55b)),_0x1063c2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1063c2['model']['document']['on']('change:data',(_0x51f946,_0x418122)=>{if(!_0x418122['isLocal']||_0x418122['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4d6452=_0x1063c2['model']['document']['differ']['getChanges']();if(0x0==_0x4d6452['length'])return;const _0x31bc68=[],_0x52a6cc=_0x4d6452['filter'](_0xb510d9=>'attribute'==_0xb510d9['type']),_0x15476f=_0x4d6452['filter'](_0x48bfe0=>'insert'==_0x48bfe0['type']&&'$text'!=_0x48bfe0['name']);for(const _0x2e978f of _0x52a6cc)this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e978f['attributeKey'])&&_0x31bc68['push']({'key':_0x2e978f['attributeKey'],'newValue':_0x2e978f['attributeNewValue'],'oldValue':_0x2e978f['attributeOldValue'],'range':sn(_0x2e978f['range'],_0x1063c2['model'])});for(const _0x1906c7 of _0x15476f){if('rename'!=_0x1906c7['action']&&'refresh'!=_0x1906c7['action'])continue;const _0x1703f2=rn(_0x1906c7['position']['nodeAfter'],_0x1063c2['model']),_0x5cbf3d=_0x1906c7['before'];'rename'==_0x1906c7['action']&&_0x31bc68['push']({'key':Ke,'newValue':_0x1906c7['name'],'oldValue':_0x5cbf3d['name'],'range':_0x1703f2});for(const [_0x443bef,_0x28bc9c]of _0x5cbf3d['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x443bef))continue;const _0x214b03=_0x1906c7['attributes']['get'](_0x443bef);_0x28bc9c!==_0x214b03&&_0x31bc68['push']({'key':_0x443bef,'newValue':_0x214b03,'oldValue':_0x28bc9c,'range':_0x1703f2});}for(const [_0x3f8b4a,_0x14f8f0]of _0x1906c7['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x3f8b4a)&&(_0x5cbf3d['attributes']['has'](_0x3f8b4a)||_0x31bc68['push']({'key':_0x3f8b4a,'newValue':_0x14f8f0,'oldValue':null,'range':_0x1703f2}));}0x0!=_0x31bc68['length']&&_0x1063c2['model']['enqueueChange'](_0x418122,_0x2bb4d7=>{const _0x305250=_0x452c31();for(const {range:_0xefffee,key:_0x17afcb,oldValue:_0x87e2ef,newValue:_0x4c175a}of _0x31bc68)this['markAttributeChange'](_0xefffee,_0x17afcb,_0x87e2ef,_0x4c175a,{'groupId':_0x305250});this['_reduceExistingSuggestions'](_0x2bb4d7,_0x31bc68);});},{'priority':'lowest'}),_0x1063c2['model']['markers']['on']('update:suggestion',(_0xdbedbd,_0xbe03fe,_0x30e3f6)=>{if(null==_0x30e3f6){const {id:_0xce6875}=_0x4f6d6c(_0xbe03fe['name']),_0x9ea18f=this['_suggestions']['get'](_0xce6875);_0x9ea18f&&_0x9ea18f['addMarkerName'](_0xbe03fe['name']);}}),_0x1063c2['model']['document']['on']('change:data',()=>{const _0x1be6f6=Array['from'](_0x1063c2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1264d1=>'suggestion'===_0x4f6d6c(_0x1264d1['name'])['group']);if(0x0===_0x1be6f6['length'])return;_0x1be6f6['sort']((_0x101d1a,_0x1b11ec)=>{const _0x59c44=_0x101d1a['data']['oldRange'],_0x590e46=_0x1b11ec['data']['oldRange'];return null===_0x59c44&&null===_0x590e46?0x0:null===_0x59c44&&null!==_0x590e46?-0x1:null!==_0x59c44&&null===_0x590e46?0x1:_0x59c44['start']['isBefore'](_0x590e46['start'])?-0x1:0x1;});const _0x3fd374=new Set(),_0x266a6c=new Set();for(const {name:_0x60f1ae,data:_0x1abde2}of _0x1be6f6){const {id:_0x502503}=_0x4f6d6c(_0x60f1ae);if(null===_0x1abde2['oldRange']){const _0x527e11=this['_handleNewSuggestionMarker'](_0x60f1ae);_0x266a6c['add'](_0x527e11);}else{const _0xab1e8a=this['_suggestions']['get'](_0x502503);null!==_0x1abde2['newRange']||_0xab1e8a['isInContent']?(_0x3fd374['add'](_0xab1e8a['head']),_0x266a6c['add'](_0xab1e8a)):this['_removeSuggestion'](_0xab1e8a);}}_0x266a6c['size']>0x0&&this['_refreshSuggestionsChain'](_0x266a6c);for(const _0x39959e of _0x3fd374)this['fire']('suggestionChanged',_0x39959e);}),_0x1063c2['model']['on']('applyOperation',(_0x324fc2,_0x193d99)=>{const _0x2aeab8=_0x193d99[0x0];if(!this['_suggestions']['size'])return;if(!_0x2aeab8['isDocumentOperation'])return;if(_0x2aeab8['batch']['isUndo']||!_0x2aeab8['batch']['isLocal'])return;let _0x35a344,_0xd6d43c;switch(_0x2aeab8['type']){case'insert':_0x35a344=_0x1063c2['model']['createPositionAt'](_0x2aeab8['position']),_0xd6d43c=_0x35a344['getShiftedBy'](_0x2aeab8['howMany']);break;case'split':_0x35a344=_0x1063c2['model']['createPositionAt'](_0x2aeab8['splitPosition']),_0xd6d43c=_0x1063c2['model']['createPositionAt'](_0x2aeab8['moveTargetPosition']);break;case'move':_0x35a344=_0x1063c2['model']['createPositionAt'](_0x2aeab8['targetPosition']),_0xd6d43c=_0x35a344['getShiftedBy'](_0x2aeab8['howMany']);break;default:return;}const _0x16cf9d=_0x1063c2['model']['createRange'](_0x35a344,_0xd6d43c);_0x1063c2['model']['change'](()=>{for(const {suggestion:_0xb88073,meta:_0x2b22a9}of this['_findSuggestions'](_0x16cf9d)){if(_0xb88073['isMultiRange'])continue;if('formatInline'==_0xb88073['type'])continue;const _0x2779e6=this['_getAttributeKey'](_0xb88073);if(_0x2779e6&&this['_suggestionsConversion']['isBlockAttribute'](_0x2779e6)&&'split'!=_0x2aeab8['type'])continue;const _0x10393b=_0xb88073['data']&&_0xb88073['data']['multipleBlocks'];('formatBlock'!=_0xb88073['type']||'split'==_0x2aeab8['type']&&!_0x10393b)&&(_0x2b22a9['containsRangeInObject']||'insertion'==_0xb88073['type']&&_0x2b22a9['isOwn']||_0xb88073['getFirstRange']()['containsRange'](_0x16cf9d)&&this['_breakSuggestionMarker'](_0xb88073,_0x35a344,_0xd6d43c));}});},{'priority':'lowest'}),_0x1063c2['model']['on']('deleteContent',(_0x21b3f4,_0x37c9c3)=>{const _0x5af544=_0x37c9c3[0x0],_0x1f8def=_0x37c9c3[0x1];if(_0x1f8def&&_0x1f8def['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5af544['isCollapsed'])return;const _0x5eba2b=_0x1063c2['model']['schema'],{start:_0x901e47,end:_0xf33fb6}=_0x5af544['getFirstRange'](),_0x1295b8=_0x901e47['nodeAfter']&&_0x5eba2b['isLimit'](_0x901e47['nodeAfter'])?null:_0x5eba2b['getNearestSelectionRange'](_0x901e47,'forward'),_0x48bd02=_0xf33fb6['nodeBefore']&&_0x5eba2b['isLimit'](_0xf33fb6['nodeBefore'])?null:_0x5eba2b['getNearestSelectionRange'](_0xf33fb6,'backward'),_0x1a94e9=_0x1063c2['model']['createRange'](_0x1295b8?_0x1295b8['start']:_0x901e47,_0x48bd02?_0x48bd02['end']:_0xf33fb6);_0x1063c2['model']['change'](_0x1eb6ff=>{this['markDeletion'](_0x1a94e9);const _0x35e519=_0x1063c2['model']['schema']['getNearestSelectionRange'](_0x1a94e9['start']);_0x5af544['is']('documentSelection')?_0x1eb6ff['setSelection'](_0x35e519):_0x5af544['setTo'](_0x35e519);}),_0x21b3f4['stop']();},{'priority':_0x49557e['normal']+0xa}),_0x1063c2['model']['on']('insertContent',(_0x28956a,_0xeb9148)=>{const _0x3f8f91=_0xeb9148[_0xeb9148['length']-0x1];_0x3f8f91&&_0x3f8f91['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1063c2['model']['change'](()=>{let _0xaabb1d=_0x1063c2['model']['insertContent'](_0xeb9148[0x0],_0xeb9148[0x1],_0xeb9148[0x2],{'forceDefaultExecution':!0x0});if(!_0xaabb1d)return;_0x28956a['return']=_0xaabb1d['clone']();const _0x54409f=_0xaabb1d['end']['nodeBefore'],_0x31226b=_0x1063c2['model']['schema'];_0x54409f&&_0x31226b['isBlock'](_0x54409f)&&!_0x31226b['isObject'](_0x54409f)&&(_0xaabb1d=_0x1063c2['model']['createRange'](_0xaabb1d['start'],_0x1063c2['model']['createPositionAt'](_0x54409f,'end'))),this['markInsertion'](_0xaabb1d);}),_0x28956a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5212d6=new dt(_0x1063c2,this['_suggestions']);_0x1063c2['commands']['add']('acceptSuggestion',_0x5212d6),this['enableCommand']('acceptSuggestion');const _0x387641=new ft(_0x1063c2,this['_suggestions']);_0x1063c2['commands']['add']('discardSuggestion',_0x387641),this['enableCommand']('discardSuggestion'),_0x1063c2['commands']['add']('acceptAllSuggestions',new Lt(_0x1063c2,_0x5212d6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1063c2['commands']['add']('discardAllSuggestions',new Lt(_0x1063c2,_0x387641,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1063c2['commands']['add']('acceptSelectedSuggestions',new It(_0x1063c2,_0x5212d6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1063c2['commands']['add']('discardSelectedSuggestions',new It(_0x1063c2,_0x387641,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f919d=_0x1063c2['plugins']['get'](_0x29b6a2);this['listenTo'](_0x1f919d,'addComment',(_0x5e7680,{threadId:_0x176eaf})=>{const _0x14e8d8=this['_suggestions']['get'](_0x176eaf);_0x14e8d8&&_0x14e8d8['commentThread']&&0x1===_0x14e8d8['commentThread']['length']&&this['_updateSuggestionData'](_0x176eaf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f919d,'removeComment',(_0x4beb77,{threadId:_0x5edfbc})=>{const _0x30a2b3=this['_suggestions']['get'](_0x5edfbc);_0x30a2b3&&_0x30a2b3['commentThread']&&!_0x30a2b3['commentThread']['length']&&this['_updateSuggestionData'](_0x5edfbc,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x220eba){const _0x212a29=_0x3a4ca7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xf0b9c5=0x3d8d0df,_0x12789d=0x3df55f7^_0xf0b9c5,_0x1211f7=window[_0x3a4ca7([0x44,0x61,0x74,0x65])][_0x3a4ca7([0x6e,0x6f,0x77])](),_0x24ea40=_0x220eba[_0x3a4ca7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc8b356=new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x501b3a=>{_0x24ea40[_0x3a4ca7([0x6f,0x6e,0x63,0x65])](_0x3a4ca7([0x72,0x65,0x61,0x64,0x79]),_0x501b3a);}),_0x57f1ed={[_0x3a4ca7([0x6b,0x74,0x79])]:_0x3a4ca7([0x45,0x43]),[_0x3a4ca7([0x75,0x73,0x65])]:_0x3a4ca7([0x73,0x69,0x67]),[_0x3a4ca7([0x63,0x72,0x76])]:_0x3a4ca7([0x50,0x2d,0x32,0x35,0x36]),[_0x3a4ca7([0x78])]:_0x3a4ca7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3a4ca7([0x79])]:_0x3a4ca7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3a4ca7([0x61,0x6c,0x67])]:_0x3a4ca7([0x45,0x53,0x32,0x35,0x36])},_0x1144cb=_0x24ea40[_0x3a4ca7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a4ca7([0x67,0x65,0x74])](_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4502a7(){let _0x42969e,_0x5af486=null,_0x496277=null;try{if(_0x1144cb==_0x3a4ca7([0x47,0x50,0x4c]))return _0x3a4ca7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42969e=_0x1d57cb(),!_0x42969e)return _0x3a4ca7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42969e[_0x3a4ca7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x496277=_0x1a07f4(_0x42969e[_0x3a4ca7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42969e[_0x3a4ca7([0x6a,0x74,0x69])])),await _0x3b044d()?_0x2a5871()?_0x3cdbb3()?_0x3a4ca7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3142cc()?(_0x42969e[_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a4ca7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5af486=_0x11e8a6(_0x3a4ca7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd45c85()):_0x3a4ca7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a4ca7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a4ca7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a4ca7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cdbb3(){const _0x3ff07f=[_0x3a4ca7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a4ca7([0x74,0x72,0x69,0x61,0x6c])][_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42969e[_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1211f7/0x3e8:0xe10*_0x12789d;return _0x42969e[_0x3a4ca7([0x65,0x78,0x70])]<_0x3ff07f;}function _0x2a5871(){const _0x5aec17=_0x42969e[_0x3a4ca7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aec17)return!0x1;if(_0x5aec17[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x2a])))return!0x0;if(_0x5aec17[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x54,0x43])))return!0x0;if(_0x5aec17[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x52,0x54,0x43]))){if(_0x2a27d3())return!0x0;if(_0x455fd1()||_0xe0bd7d())return!0x0;}return!0x1;}function _0x3142cc(){const _0xa81abe=_0x42969e[_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa81abe||0x0==_0xa81abe[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38d1b4}=new URL(window[_0x3a4ca7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa81abe[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38d1b4))return!0x0;const _0x21e944=_0x38d1b4[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e]));return _0xa81abe[_0x3a4ca7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2de4a2=>_0x2de4a2[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x2a])))[_0x3a4ca7([0x6d,0x61,0x70])](_0x12b026=>_0x12b026[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e])))[_0x3a4ca7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2add20=>_0x2add20[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21e944[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a4ca7([0x6d,0x61,0x70])](_0x5aa708=>Array(_0x21e944[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5aa708[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a4ca7([0x66,0x69,0x6c,0x6c])](_0x5aa708[0x0]===_0x3a4ca7([0x2a])?_0x3a4ca7([0x2a]):'')[_0x3a4ca7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5aa708))[_0x3a4ca7([0x73,0x6f,0x6d,0x65])](_0x4f1e2e=>_0x21e944[_0x3a4ca7([0x65,0x76,0x65,0x72,0x79])]((_0x484634,_0x3d4a73)=>_0x4f1e2e[_0x3d4a73]===_0x484634||_0x4f1e2e[_0x3d4a73]===_0x3a4ca7([0x2a])));}function _0xd45c85(){return _0x5af486&&_0x496277?new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x128433,_0xc1cdd8)=>{_0x5af486[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x128433,_0xc1cdd8),_0x496277[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x5f2d54=>{_0x5f2d54!=_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64])&&_0x128433(_0x5f2d54);},_0xc1cdd8);}):_0x5af486||_0x496277||_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a07f4(_0x30ed23,_0xca8c5b){return new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cab76=>{if(_0x5a4cfb())return _0x2cab76(_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64]));_0x57473e(),_0x24ea40[_0x3a4ca7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a4ca7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3438cc=!0x1;const _0x4d7080=_0x452c31();function _0x2633b0(_0x30ac2d){return!!_0x30ac2d&&(typeof _0x30ac2d===_0x3a4ca7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30ac2d===_0x3a4ca7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30ac2d[_0x3a4ca7([0x74,0x68,0x65,0x6e])]===_0x3a4ca7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30ac2d[_0x3a4ca7([0x63,0x61,0x74,0x63,0x68])]===_0x3a4ca7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x564316(_0x1fc25b){_0x8cc826(_0x1fc25b)[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x4ab0a7=>{if(!_0x4ab0a7||_0x4ab0a7[_0x3a4ca7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a4ca7([0x6f,0x6b]))return _0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dafbe(_0x1be4d4(_0x4d7080+_0xca8c5b))!=_0x4ab0a7[_0x3a4ca7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x781fa2=>(_0x5d65fe(),_0x781fa2),()=>{const _0x926157=_0xdbbb59();return null==_0x926157?(_0x5d65fe(),_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64])):_0x3a4ca7(_0x1211f7-_0x926157>(0x27d454df^_0xf0b9c5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x2cab76)[_0x3a4ca7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2cab76(_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x581fc7=0x3ee3e5f^_0xf0b9c5;function _0x5d65fe(){const _0x319a5d=_0x3a4ca7([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dafbe(_0x1be4d4(_0x30ed23)),_0x39c9bc=_0x5685d2(_0x3dafbe(window[_0x3a4ca7([0x4d,0x61,0x74,0x68])][_0x3a4ca7([0x63,0x65,0x69,0x6c])](_0x1211f7/_0x581fc7)));window[_0x3a4ca7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a4ca7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x319a5d,_0x39c9bc);}function _0xdbbb59(){const _0x2cf485=_0x3a4ca7([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dafbe(_0x1be4d4(_0x30ed23)),_0x16637d=window[_0x3a4ca7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a4ca7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cf485);return _0x16637d?window[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5685d2(_0x16637d),0x10)*_0x581fc7:null;}function _0x8cc826(_0x5e40bc){return new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58b955,_0x423521)=>{_0x5e40bc[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x58b955,_0x423521),window[_0x3a4ca7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423521,0x3d9041f^_0xf0b9c5);});}}_0x24ea40[_0x3a4ca7([0x6f,0x6e])](_0x3a4ca7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44b20f,_0xb1af85)=>{if(_0xb1af85[0x0]!=_0x30ed23)return _0x2cab76(_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb1af85[0x1]={..._0xb1af85[0x1],[_0x3a4ca7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d7080};},{[_0x3a4ca7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a4ca7([0x68,0x69,0x67,0x68])}),_0x24ea40[_0x3a4ca7([0x6f,0x6e])](_0x3a4ca7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x112025=>{_0x2633b0(_0x112025[_0x3a4ca7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3438cc=!0x0,_0x564316(_0x112025[_0x3a4ca7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a4ca7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a4ca7([0x6c,0x6f,0x77])}),_0xc8b356[_0x3a4ca7([0x74,0x68,0x65,0x6e])](()=>{_0x3438cc||_0x2cab76(_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a4cfb(){return _0x24ea40[_0x3a4ca7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a4ca7([0x76,0x69,0x65,0x77])][_0x3a4ca7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a4ca7([0x61,0x75,0x74,0x6f]);}function _0x57473e(){_0x24ea40[_0x3a4ca7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a4ca7([0x76,0x69,0x65,0x77])][_0x3a4ca7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a4ca7([0x61,0x75,0x74,0x6f]);}}function _0x11e8a6(_0x3c3bad){const _0x347d8c=[new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xef84c7=>setTimeout(_0xef84c7,0x3d1ee13^_0xf0b9c5)),_0xc8b356[_0x3a4ca7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2328ce=>{let _0x43c2a0=0x0;_0x24ea40[_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4ca7([0x6f,0x6e])](_0x3a4ca7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20f8b8,_0xf2882f)=>{_0xf2882f[0x0][_0x3a4ca7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43c2a0++,_0x43c2a0==(0x3d8d537^_0xf0b9c5)&&(_0x2328ce(),_0x20f8b8[_0x3a4ca7([0x6f,0x66,0x66])]());});}))];return window[_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a4ca7([0x72,0x61,0x63,0x65])](_0x347d8c)[_0x3a4ca7([0x74,0x68,0x65,0x6e])](()=>_0x3c3bad);}async function _0x115ba6(){await _0xc8b356,_0x24ea40[_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4ca7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24027f,_0x24ea40[_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4ca7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24027f,_0x24ea40[_0x3a4ca7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a27d3(){return _0x5857ec(_0x3a4ca7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c6918(_0x3a4ca7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3a4ca7([0x73,0x74,0x61,0x74,0x65])]==_0x3a4ca7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x455fd1(){return _0x5857ec(_0x3a4ca7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xe0bd7d(){return _0x5857ec(_0x3a4ca7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x52a774(_0x5ee0b9){const _0x1756f8=_0x2680c8();_0x24ea40[_0x1756f8]=_0x3a4ca7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ee0b9,_0x5ee0b9!=_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64])&&_0x115ba6();}function _0x2680c8(){const _0x54e2de=window[_0x3a4ca7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a4ca7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a4ca7([0x6e,0x6f,0x77])]())[_0x3a4ca7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a4ca7([0x2e]),'');let _0x1dc3ba=_0x3a4ca7([0x52]);for(let _0x237845=0x0;_0x237845<_0x54e2de[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x237845+=0x2){let _0x4af17b=window[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54e2de[_0x3a4ca7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x237845,_0x237845+0x2));_0x4af17b>=_0x212a29[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4af17b-=_0x212a29[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dc3ba+=_0x212a29[_0x4af17b];}return _0x1dc3ba;}function _0x1d57cb(){const _0x2471fc=_0x1144cb[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e]));if(0x3!=_0x2471fc[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x406dc1(_0x2471fc[0x1]);function _0x406dc1(_0x938807){const _0x3993ee=_0x1d2e82(_0x938807);return _0x3993ee&&_0x36523f()?_0x3993ee:null;function _0x36523f(){const _0x2f2d3b=_0x3993ee[_0x3a4ca7([0x6a,0x74,0x69])],_0x68fbde=window[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2d3b[_0x3a4ca7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f2d3b[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3630f6={..._0x3993ee,[_0x3a4ca7([0x6a,0x74,0x69])]:_0x2f2d3b[_0x3a4ca7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f2d3b[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3630f6[_0x3a4ca7([0x76,0x63])],_0x1be4d4(_0x3630f6)==_0x68fbde;}}}async function _0x3b044d(){let _0x771a3a=!0x0;try{const _0x438a73=_0x1144cb[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e])),[_0x381658,_0x5ec171,_0x11679b]=_0x438a73;return _0x166949(_0x381658),await _0x5510ab(_0x381658,_0x5ec171,_0x11679b),_0x771a3a;}catch{return!0x1;}function _0x166949(_0x1769dd){const _0x24e00f=_0x1d2e82(_0x1769dd);_0x24e00f&&_0x24e00f[_0x3a4ca7([0x61,0x6c,0x67])]==_0x3a4ca7([0x45,0x53,0x32,0x35,0x36])||(_0x771a3a=!0x1);}async function _0x5510ab(_0x501ea1,_0xc8c6ef,_0x12ca21){const _0x3649ba=window[_0x3a4ca7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a4ca7([0x66,0x72,0x6f,0x6d])](_0x143416(_0x12ca21),_0x3e6824=>_0x3e6824[_0x3a4ca7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e61e3=new window[(_0x3a4ca7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a4ca7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x501ea1+_0x3a4ca7([0x2e])+_0xc8c6ef),_0x40f062=window[_0x3a4ca7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a4ca7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40f062)return;const _0x3be426=await _0x40f062[_0x3a4ca7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a4ca7([0x6a,0x77,0x6b]),_0x57f1ed,{[_0x3a4ca7([0x6e,0x61,0x6d,0x65])]:_0x3a4ca7([0x45,0x43,0x44,0x53,0x41]),[_0x3a4ca7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a4ca7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a4ca7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40f062[_0x3a4ca7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a4ca7([0x6e,0x61,0x6d,0x65])]:_0x3a4ca7([0x45,0x43,0x44,0x53,0x41]),[_0x3a4ca7([0x68,0x61,0x73,0x68])]:{[_0x3a4ca7([0x6e,0x61,0x6d,0x65])]:_0x3a4ca7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3be426,_0x3649ba,_0x5e61e3)||(_0x771a3a=!0x1);}}function _0x1d2e82(_0x317104){return _0x317104[_0x3a4ca7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a4ca7([0x65,0x79]))?JSON[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65])](_0x143416(_0x317104)):null;}function _0x143416(_0x39c69e){return window[_0x3a4ca7([0x61,0x74,0x6f,0x62])](_0x39c69e[_0x3a4ca7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a4ca7([0x2b]))[_0x3a4ca7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a4ca7([0x2f])));}function _0x1be4d4(_0x29ebec){let _0x4889ca=0x1505;function _0x3d0575(_0xc47e04){for(let _0x38a9eb=0x0;_0x38a9eb<_0xc47e04[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38a9eb++){const _0x37900e=_0xc47e04[_0x3a4ca7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38a9eb);_0x4889ca=(_0x4889ca<<0x5)+_0x4889ca+_0x37900e,_0x4889ca&=_0x4889ca;}}function _0x2ce90f(_0x3215f2){Array[_0x3a4ca7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3215f2)?_0x3215f2[_0x3a4ca7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ce90f):_0x3215f2&&typeof _0x3215f2==_0x3a4ca7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a4ca7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3215f2)[_0x3a4ca7([0x73,0x6f,0x72,0x74])]()[_0x3a4ca7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x349882,_0x3eec02])=>{_0x3d0575(_0x349882),_0x2ce90f(_0x3eec02);}):_0x3d0575(window[_0x3a4ca7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3215f2));}return _0x2ce90f(_0x29ebec),_0x4889ca>>>0x0;}function _0x3dafbe(_0x14f635){return _0x14f635[_0x3a4ca7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a4ca7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a4ca7([0x30]));}function _0x5685d2(_0x245577){return _0x245577[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a4ca7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a4ca7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5857ec(_0x34f9f7){return _0x24ea40[_0x3a4ca7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a4ca7([0x68,0x61,0x73])](_0x34f9f7);}function _0x5c6918(_0x121307){return _0x24ea40[_0x3a4ca7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a4ca7([0x67,0x65,0x74])](_0x121307);}function _0x24027f(){}function _0x3a4ca7(_0xfca0ab){return _0xfca0ab['map'](_0x128861=>String['fromCharCode'](_0x128861))['join']('');}_0x52a774(await _0x4502a7());}(this);}set['adapter'](_0x316aac){if(this['_adapter'])throw new _0x27828f('track-changes-adapter-already-set',this);this['_adapter']=_0x316aac;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x493766=!0x1,toJSON:_0xd44eae=!0x1}={}){const _0x39b032=[];for(const _0x12b995 of this['_suggestions']['values']())_0x493766&&!_0x12b995['isInContent']||_0x39b032['push'](_0x12b995);return _0xd44eae?_0x39b032['map'](_0x28b422=>_0x28b422['toJSON']()):_0x39b032;}['getSuggestion'](_0xc57a04){const _0x536efa=this['_suggestions']['get'](_0xc57a04);if(!_0x536efa)throw new _0x27828f('track-changes-suggestion-not-found',this);return _0x536efa;}['hasSuggestion'](_0x2e738f){return this['_suggestions']['has'](_0x2e738f);}['addSuggestionData'](_0x3a4028){const {authorId:_0x2aa322,id:_0x3ee157,originalSuggestionId:_0x871fbb,attributes:_0xb03acd}=_0x3a4028,[_0x1f58ba,_0x1bb4c8]=_0x3a4028['type']['split'](':'),_0x238028=this['_suggestions']['get'](_0x3ee157)||this['_createSuggestion'](_0x1f58ba,_0x1bb4c8,_0x3ee157,_0x2aa322,_0xb03acd,_0x871fbb);if(this['_addThreadToSuggestion'](_0x238028),this['_checkSuggestionCorrectness'](_0x238028,_0x1f58ba,_0x1bb4c8||null,_0x2aa322),_0x238028['createdAt']=_0x3a4028['createdAt'],_0x238028['_isDataLoaded']=!0x0,_0xb03acd&&_0xb03acd['@external']){const _0x3eac7d=_0xb03acd['@external'],_0x3e1aab=this['_getExternalAuthor'](_0x3eac7d['authorName']);_0x238028['authoredAt']=_0x3eac7d['createdAt'],_0x238028['author']=_0x3e1aab,_0x238028['isExternal']=!0x0;}else _0x238028['authoredAt']=_0x3a4028['createdAt'];switch(_0x3a4028['data']&&(_0x238028['data']=_0x3a4028['data']),_0x3a4028['attributes']&&(_0x238028['attributes']=_0x3a4028['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x238028['_saved']=!0x0),this['_suggestionState']['get'](_0x238028)){case'notReady':this['_suggestionState']['set'](_0x238028,'dataReady');break;case'markerReady':_0x238028['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x238028])),this['_refreshSuggestionsChain'](new Set([_0x238028])),this['_suggestionState']['set'](_0x238028,'ready'),this['fire']('suggestionLoaded',_0x238028)):this['_suggestionState']['set'](_0x238028,'removed');}return _0x238028;}['acceptSuggestion'](_0x3867e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ced7c of _0x3867e['getAllAdjacentSuggestions']())_0x5ced7c['accept']();});});}['discardSuggestion'](_0x239b5b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x51e892 of _0x239b5b['getAllAdjacentSuggestions']())_0x51e892['discard']();});});}['enableCommand'](_0x5d3254,_0x1bc3b2){const _0x282716=this['editor']['commands']['get'](_0x5d3254);if(!_0x282716)throw new _0x27828f('track-changes-command-not-found',this,{'commandName':_0x5d3254});if(this['_enabledCommands']['has'](_0x282716))throw new _0x27828f('track-changes-enable-command-twice',this,{'commandName':_0x5d3254});this['_enabledCommands']['add'](_0x282716),_0x1bc3b2&&_0x282716['on']('execute',(_0x1a7494,_0x64fcb9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x64fcb9['length']>0x0&&_0x64fcb9[_0x64fcb9['length']-0x1]&&_0x64fcb9[_0x64fcb9['length']-0x1]['forceDefaultExecution']?_0x64fcb9['pop']():(_0x1a7494['return']=_0x1bc3b2((..._0x39cc4a)=>_0x282716['execute'](..._0x39cc4a,{'forceDefaultExecution':!0x0}),..._0x64fcb9),_0x1a7494['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1395b0){let _0x515c5f,_0x393e8e;const _0x1d6d23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x515c5f=_0x1395b0();}catch(_0x4e6887){_0x393e8e=_0x4e6887;}return _0x1d6d23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x393e8e&&_0x27828f['rethrowUnexpectedError'](_0x393e8e,this),_0x515c5f;}['markInsertion'](_0x2a0b5c,_0x2e600c=null,_0x4a94dc={}){if(_0x2a0b5c['isCollapsed'])return null;const _0x5a27af=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4a94dc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x19dd5c,meta:_0x4cf40d}of this['_findSuggestions'](_0x2a0b5c,'insertion'))if(_0x4cf40d['isOwn']){if(!_0x4cf40d['isNextTo']){if(_0x4cf40d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x19dd5c,_0x4a94dc))continue;return _0x19dd5c;}if(cn(_0x19dd5c,_0x4a94dc))return _0x19dd5c;this['_breakSuggestionMarker'](_0x19dd5c,_0x2a0b5c['start'],_0x2a0b5c['end']);break;}if(_0x2e600c==_0x19dd5c['subType']&&cn(_0x19dd5c,_0x4a94dc)){const _0x552373=_0x19dd5c['getFirstRange']();return _0x552373['start']['isEqual'](_0x2a0b5c['end'])?this['_setSuggestionRange'](_0x19dd5c,this['_model']['createRange'](_0x2a0b5c['start'],_0x552373['end'])):this['_setSuggestionRange'](_0x19dd5c,this['_model']['createRange'](_0x552373['start'],_0x2a0b5c['end'])),_0x19dd5c;}}const _0x83c2c4=_0x452c31(),_0x84755b=_0x5a27af['id'],_0x2d8d3b=_0x2e600c?'insertion:'+_0x2e600c:'insertion',_0x33d9fc=this['_setSuggestionData']({'id':_0x83c2c4,'type':_0x2d8d3b,'createdAt':new Date(),'authorId':_0x84755b,'attributes':_0x4a94dc});return this['_addSuggestionMarker'](_0x2d8d3b,_0x83c2c4,_0x84755b,_0x2a0b5c),_0x33d9fc;}['markMultiRangeInsertion'](_0x1d0d8e,_0x915dff='multi',_0x3ebf6a={}){const _0x663008=this['editor']['plugins']['get']('Users')['me'],_0x3cf7b9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x915dff,'join');this['_trackingSessionId']&&(_0x3ebf6a['trackingSessionId']=this['_trackingSessionId']);for(const _0x300bd8 of this['getSuggestions']())if(_0x300bd8['author']['id']==_0x663008['id']&&'insertion'==_0x300bd8['type']&&_0x300bd8['subType']==_0x915dff&&cn(_0x300bd8,_0x3ebf6a)&&(_0x3cf7b9(_0x300bd8['getRanges'](),_0x1d0d8e)||_0x3cf7b9(_0x1d0d8e,_0x300bd8['getRanges']()))){for(const _0x79a5e9 of _0x1d0d8e)_0x300bd8['addRange'](_0x79a5e9);return _0x300bd8;}for(const {suggestion:_0x14e1d9,meta:_0x277820}of this['_findSuggestions'](_0x1d0d8e,'insertion')){if(!_0x277820['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x277820['containsRangeInObject'])continue;if(!cn(_0x14e1d9,_0x3ebf6a))continue;let _0x1f50c7=!0x0;for(const _0x4b3b23 of _0x14e1d9['getRanges']())for(const _0x2d2236 of _0x1d0d8e)if(!_0x4b3b23['containsRange'](_0x2d2236)){_0x1f50c7=!0x1;break;}if(_0x1f50c7)return _0x14e1d9;}const _0x3e627c=_0x452c31(),_0xb5330c=_0x663008['id'],_0x38be64='insertion:'+_0x915dff,_0x50c119=this['_setSuggestionData']({'id':_0x3e627c,'type':_0x38be64,'createdAt':new Date(),'authorId':_0xb5330c,'attributes':_0x3ebf6a});for(const _0x4e93a6 of _0x1d0d8e)this['_addSuggestionMarker'](_0x38be64,_0x3e627c,_0xb5330c,_0x4e93a6,bt['getMultiRangeId']());return _0x50c119;}['markInlineFormat'](_0x40bfcd,_0x34e12b,_0x417678=null,_0x437e02={}){if(_0x417678=_0x417678||Je(_0x34e12b),_0x40bfcd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x437e02['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x55a985=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x417678,'accept');return this['forceDefaultExecution'](()=>_0x55a985([_0x40bfcd],_0x34e12b,_0x437e02)),null;}const _0x19afec=this['editor']['plugins']['get']('Users')['me'],_0x1959b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d6256,meta:_0x17087d}of this['_findSuggestions'](_0x40bfcd,'insertion'))_0x17087d['isOwn']&&!_0x17087d['isInsideObject']&&_0x1959b1['push'](..._0x2d6256['getRanges']());}const _0x3c0432=function(_0x4c6534,_0x476fee){const _0x410bb1=[];for(const _0x2d0f79 of _0x476fee){const _0x265e57=_0x4c6534['getIntersection'](_0x2d0f79);_0x265e57&&_0x410bb1['push'](_0x265e57);}return _0x410bb1;}(_0x40bfcd,_0x1959b1),_0x588355=function(_0x1cbd47,_0x297a68){const _0x552104=[_0x1cbd47];for(const _0x2fd721 of _0x297a68){let _0x12b64d=0x0;for(;_0x12b64d<_0x552104['length'];){const _0x5ccb42=_0x552104[_0x12b64d]['getDifference'](_0x2fd721);_0x552104['splice'](_0x12b64d,0x1,..._0x5ccb42),_0x12b64d+=_0x5ccb42['length'];}}return _0x552104;}(_0x40bfcd,_0x1959b1);_0x3c0432['length']&&this['_model']['change'](()=>{for(const _0x15f53d of _0x3c0432){const _0x552816=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x417678,'accept');this['forceDefaultExecution'](()=>_0x552816([_0x15f53d],_0x34e12b,_0x437e02));}});for(const _0x92212c of _0x588355){let _0x400a41=null,_0x418085=_0x92212c['start'],_0x25df22=_0x92212c['end'];for(const {suggestion:_0x58515f,meta:_0x20cf61}of this['_findSuggestions'](_0x92212c,'formatInline')){if(!_0x20cf61['isOwn'])continue;if(_0x58515f['subType']!=_0x417678)continue;if(!cn(_0x58515f,_0x437e02))continue;const _0x3c0be3=_0x58515f['getFirstRange']();if(_0x3c0be3['containsRange'](_0x92212c,!0x0))return null;_0x418085=_0x418085['isBefore'](_0x3c0be3['start'])?_0x418085:_0x3c0be3['start'],_0x25df22=_0x25df22['isAfter'](_0x3c0be3['end'])?_0x25df22:_0x3c0be3['end'],_0x400a41?_0x3c0be3['start']['isBefore'](_0x400a41['getFirstRange']()['start'])?(_0x400a41['removeMarkers'](),_0x400a41=_0x58515f):_0x58515f['removeMarkers']():_0x400a41=_0x58515f;}const _0x47bead=this['_model']['createRange'](_0x418085,_0x25df22);if(_0x400a41)this['_setSuggestionRange'](_0x400a41,_0x47bead);else{const _0x28db69=_0x452c31(),_0x5154fc=_0x19afec['id'];this['_setSuggestionData']({'id':_0x28db69,'type':'formatInline:'+_0x417678,'data':_0x34e12b,'createdAt':new Date(),'authorId':_0x5154fc,'attributes':_0x437e02}),this['_addSuggestionMarker']('formatInline:'+_0x417678,_0x28db69,_0x5154fc,_0x47bead);}}return null;}['markBlockFormat'](_0x355f7d,_0x825ef3,_0xe0114b=[],_0x1d436f=null,_0x52cd84={}){_0x825ef3['formatGroupId']||(_0x825ef3['formatGroupId']=_0x825ef3['commandName']),_0x825ef3['multipleBlocks']=_0x355f7d['is']('range'),_0x1d436f=_0x1d436f||Je(_0x825ef3);const _0x292500=_0xe0114b['map'](_0x373acb=>rn(_0x373acb,this['_model'])),_0x46a3d2=_0x355f7d['is']('range')?_0x355f7d:rn(_0x355f7d,this['_model']);if(this['_trackingSessionId']&&(_0x52cd84['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a2c45=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d436f,'accept');return this['forceDefaultExecution'](()=>_0x4a2c45([_0x46a3d2],_0x825ef3,_0x52cd84)),null;}_0x292500['push'](_0x46a3d2);let _0x576ca0=!0x0;for(const _0x5c5b60 of _0x292500)if(!this['_rangeIsInLocalUserInsertion'](_0x5c5b60)){_0x576ca0=!0x1;break;}if(_0x576ca0&&'always'!==this['_trackFormatChanges']){const _0x225c0f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d436f,'accept');return this['forceDefaultExecution'](()=>_0x225c0f([_0x46a3d2],_0x825ef3,_0x52cd84)),null;}let _0x28e8e9=null,_0x5b55c7=_0x46a3d2['start'],_0x2c6332=_0x46a3d2['end'];for(const {suggestion:_0x4f75bb,meta:_0x158672}of this['_findSuggestions'](_0x46a3d2,'formatBlock')){if(!_0x158672['isOwn'])continue;if(_0x158672['isNextTo']||_0x158672['containsRangeInObject']||_0x158672['isInsideObject'])continue;if(_0x4f75bb['data']['formatGroupId']!=_0x825ef3['formatGroupId'])continue;if(!cn(_0x4f75bb,_0x52cd84))continue;const _0x413363=_0x4f75bb['getFirstRange']();if(_0x4f75bb['subType']==_0x1d436f){if(_0x413363['containsRange'](_0x46a3d2,!0x0))return null;_0x5b55c7=_0x5b55c7['isBefore'](_0x413363['start'])?_0x5b55c7:_0x413363['start'],_0x2c6332=_0x2c6332['isAfter'](_0x413363['end'])?_0x2c6332:_0x413363['end'],_0x28e8e9?_0x413363['start']['isBefore'](_0x28e8e9['getFirstRange']()['start'])?(_0x28e8e9['removeMarkers'](),_0x28e8e9=_0x4f75bb):_0x4f75bb['removeMarkers']():_0x28e8e9=_0x4f75bb;}else{const _0x1a0a2d=_0x46a3d2['getIntersection'](_0x413363);this['_cutOutSuggestionMarker'](_0x4f75bb,_0x1a0a2d);}}const _0x338795=this['editor']['plugins']['get']('Users')['me'],_0x23abc6=_0x452c31(),_0x427a30=_0x338795['id'];if(_0x28e8e9)return this['_setSuggestionRange'](_0x28e8e9,this['_model']['createRange'](_0x5b55c7,_0x2c6332)),_0x28e8e9;{const _0x3426a9=this['_setSuggestionData']({'id':_0x23abc6,'type':'formatBlock:'+_0x1d436f,'data':_0x825ef3,'createdAt':new Date(),'authorId':_0x427a30,'attributes':_0x52cd84});return this['_addSuggestionMarker']('formatBlock:'+_0x1d436f,_0x23abc6,_0x427a30,this['_model']['createRange'](_0x5b55c7,_0x2c6332)),_0x3426a9;}}['markMultiRangeBlockFormat'](_0x28b98e,_0x13ceb0,_0x13df79=[],_0x211d3f=null,_0x785c9b={}){_0x13ceb0['formatGroupId']||(_0x13ceb0['formatGroupId']=_0x13ceb0['commandName']);const _0x460539=_0x28b98e[0x0];_0x13ceb0['multipleBlocks']=_0x460539['is']('range'),_0x211d3f=_0x211d3f||Je(_0x13ceb0);const _0x1518bd=_0x13df79['map'](_0x52c932=>rn(_0x52c932,this['_model'])),_0x3fb255=_0x460539['is']('range')?_0x28b98e:_0x28b98e['map'](_0x1c4ec4=>rn(_0x1c4ec4,this['_model']));if(this['_trackingSessionId']&&(_0x785c9b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e92d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x211d3f,'accept');return this['forceDefaultExecution'](()=>_0x3e92d6(_0x3fb255,_0x13ceb0,_0x785c9b)),null;}_0x1518bd['push'](..._0x3fb255);let _0x43d42c=!0x0;for(const _0x4ebf75 of _0x1518bd)if(!this['_rangeIsInLocalUserInsertion'](_0x4ebf75)){_0x43d42c=!0x1;break;}if(_0x43d42c&&'always'!==this['_trackFormatChanges']){const _0xc5b040=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x211d3f,'accept');return this['forceDefaultExecution'](()=>_0xc5b040(_0x3fb255,_0x13ceb0,_0x785c9b)),null;}const _0x249749=this['editor']['plugins']['get']('Users')['me'];for(const _0x4144a9 of this['getSuggestions']()){const _0x2896df=_0x4144a9['data'];if(_0x4144a9['author']['id']!=_0x249749['id'])continue;if('formatBlock'!=_0x4144a9['type']||_0x2896df['formatGroupId']!=_0x13ceb0['formatGroupId'])continue;if(!cn(_0x4144a9,_0x785c9b))continue;const _0x587a2f=_0x4144a9['subType']==_0x211d3f;for(let _0x500637=0x0;_0x500637<_0x3fb255['length'];_0x500637++){const _0x3f1970=_0x3fb255[_0x500637];for(const _0x50827a of _0x4144a9['getMarkers']()){const _0x30a8c=_0x50827a['getRange']();if(_0x3f1970['isEqual'](_0x30a8c)){_0x587a2f?(_0x3fb255['splice'](_0x500637,0x1),_0x500637--):_0x4144a9['removeMarker'](_0x50827a['name']);break;}}}}if(0x0==_0x3fb255['length'])return null;const _0x20657e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x211d3f,'join');for(const _0x31d844 of this['getSuggestions']()){const _0x1102f0=_0x31d844['data'];if(_0x31d844['author']['id']==_0x249749['id']&&('formatBlock'==_0x31d844['type']&&_0x1102f0['formatGroupId']==_0x13ceb0['formatGroupId']&&_0x31d844['subType']==_0x211d3f&&cn(_0x31d844,_0x785c9b)&&(_0x20657e(_0x31d844['getRanges'](),_0x3fb255)||_0x20657e(_0x3fb255,_0x31d844['getRanges']())))){for(const _0x3df8b6 of _0x3fb255)_0x31d844['addRange'](_0x3df8b6);return _0x31d844;}}const _0x5ef653=_0x452c31(),_0x269c65=_0x249749['id'],_0x4abf03='formatBlock:'+_0x211d3f,_0x399701=this['_setSuggestionData']({'id':_0x5ef653,'type':_0x4abf03,'data':_0x13ceb0,'createdAt':new Date(),'authorId':_0x269c65,'attributes':_0x785c9b});for(const _0x3d6a4e of _0x3fb255)this['_addSuggestionMarker'](_0x4abf03,_0x5ef653,_0x269c65,_0x3d6a4e,bt['getMultiRangeId']());return _0x399701;}['markDeletion'](_0x493ef9,_0x411ea5=null,_0x167e70={}){if(_0x493ef9['isCollapsed'])return null;const _0x3f1721=this['editor']['plugins']['get']('Users')['me'],_0x3e9fdd=new _0xf2eec6(_0x493ef9['start'],_0x493ef9['end']);this['_trackingSessionId']&&(_0x167e70['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x16a6f7,meta:_0x474bd9}of this['_findSuggestions'](_0x3e9fdd,'insertion'))if(_0x474bd9['isOwn']&&!_0x474bd9['isNextTo']){if(_0x16a6f7['isMultiRange']){const _0x167314=_0x16a6f7['getRanges']()['filter'](_0x267bb8=>'$graveyard'!=_0x267bb8['root']['rootName']);_0x167314['every'](_0x5c0e95=>_0x3e9fdd['containsRange'](_0x5c0e95,!0x0))&&_0x16a6f7['discard']();if(_0x167314['some'](_0x565635=>_0x565635['containsRange'](_0x3e9fdd,!0x0))){const _0x771b05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x411ea5,'accept');return this['forceDefaultExecution'](()=>_0x771b05([_0x3e9fdd],null,_0x167e70)),null;}}else{const _0x3ddc34=_0x3e9fdd['getIntersection'](_0x16a6f7['getFirstRange']());null!==_0x3ddc34&&_0x16a6f7['_onDiscard']([_0x3ddc34],null,_0x167e70);}}if(_0x3e9fdd['detach'](),_0x3e9fdd['isCollapsed']||'$graveyard'==_0x3e9fdd['root']['rootName'])return null;let _0x3892a8=null,_0x32d769=_0x3e9fdd['start'],_0x1d6a3c=_0x3e9fdd['end'];const _0x3334ad=this['_findSuggestions'](_0x3e9fdd,'deletion');for(const {suggestion:_0x372309,meta:_0x30af84}of _0x3334ad){const _0x36301b=this['_model']['createRange'](_0x32d769,_0x1d6a3c);if(_0x30af84['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30af84['containsRangeInObject']&&!_0x30af84['isInsideObject'])){if(_0x372309['isMultiRange']){if(!cn(_0x372309,_0x167e70))continue;let _0x1f4a7e=!0x0;for(const _0x10e25e of _0x372309['getRanges']()){if(_0x10e25e['containsRange'](_0x36301b,!0x0))return _0x372309;_0x36301b['containsRange'](_0x10e25e)||(_0x1f4a7e=!0x1);}_0x1f4a7e&&_0x372309['discard']();}else{const _0x1778e8=_0x372309['getFirstRange']();if(_0x1778e8['containsRange'](_0x36301b,!0x0))return _0x372309;if(!cn(_0x372309,_0x167e70)){_0x36301b['containsRange'](_0x1778e8)?_0x372309['removeMarkers']():_0x1778e8['containsPosition'](_0x32d769)?_0x32d769=_0x1778e8['end']:_0x1778e8['containsPosition'](_0x1d6a3c)&&(_0x1d6a3c=_0x1778e8['start']);continue;}_0x32d769=_0x32d769['isBefore'](_0x1778e8['start'])?_0x32d769:_0x1778e8['start'],_0x1d6a3c=_0x1d6a3c['isAfter'](_0x1778e8['end'])?_0x1d6a3c:_0x1778e8['end'],_0x167e70=Object['assign']({},_0x372309['attributes']),_0x3892a8?_0x1778e8['start']['isBefore'](_0x3892a8['getFirstRange']()['start'])?(_0x3892a8['removeMarkers'](),_0x3892a8=_0x372309):_0x372309['removeMarkers']():_0x3892a8=_0x372309;}}}if(_0x3892a8)return this['_setSuggestionRange'](_0x3892a8,this['_model']['createRange'](_0x32d769,_0x1d6a3c)),_0x3892a8;{const _0x4761b6=_0x452c31(),_0x575d51=this['_model']['createRange'](_0x32d769,_0x1d6a3c),_0x2088b2=_0x3f1721['id'],_0x13e111=_0x411ea5?'deletion:'+_0x411ea5:'deletion',_0x49a4e7=this['_setSuggestionData']({'id':_0x4761b6,'type':_0x13e111,'createdAt':new Date(),'authorId':_0x2088b2,'attributes':_0x167e70});return this['_addSuggestionMarker'](_0x13e111,_0x4761b6,_0x2088b2,_0x575d51),_0x49a4e7;}}['markMultiRangeDeletion'](_0x49ab19,_0x2cc4ae='multi',_0x526799={}){const _0x27c050=this['editor']['plugins']['get']('Users')['me'],_0x517e5e=_0x49ab19['map'](_0x566b6a=>new _0xf2eec6(_0x566b6a['start'],_0x566b6a['end'])),_0x53a054=new Set();this['_trackingSessionId']&&(_0x526799['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14e89b,meta:_0x3ebfef}of this['_findSuggestions'](_0x517e5e,'insertion'))_0x3ebfef['isOwn']&&!_0x3ebfef['isNextTo']&&_0x53a054['add'](_0x14e89b);for(const _0x4b51c5 of _0x53a054)if(_0x4b51c5['isMultiRange']){const _0x508ae3=_0x4b51c5['getRanges']();(!_0x4b51c5['attributes']||!_0x4b51c5['attributes']['skipNestingCheck'])&&(_0x508ae3['every'](_0x6ca931=>_0x517e5e['some'](_0x2ff729=>_0x2ff729['containsRange'](_0x6ca931,!0x0)))&&_0x4b51c5['discard']());if(_0x517e5e['every'](_0x32adb7=>_0x508ae3['some'](_0x5ccd07=>_0x5ccd07['containsRange'](_0x32adb7,!0x0)))){const _0x2e76a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cc4ae,'accept');return this['forceDefaultExecution'](()=>_0x2e76a1(_0x49ab19,null,_0x526799)),null;}}else{const _0x7902cb=_0x4b51c5['getFirstRange']();_0x517e5e['some'](_0x1ba8be=>_0x1ba8be['containsRange'](_0x7902cb,!0x0))&&_0x4b51c5['discard']();if(_0x517e5e['every'](_0x10d065=>_0x7902cb['containsRange'](_0x10d065,!0x0))){const _0x52537d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cc4ae,'accept');return this['forceDefaultExecution'](()=>_0x52537d(_0x517e5e,null,_0x526799)),null;}}const _0x5a81d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cc4ae,'join');let _0x3a085e=null;for(const _0x1e0c92 of this['getSuggestions']())if(_0x1e0c92['author']['id']==_0x27c050['id']&&_0x1e0c92['isInContent']&&'deletion'==_0x1e0c92['type']&&_0x1e0c92['subType']==_0x2cc4ae&&cn(_0x1e0c92,_0x526799)&&(_0x5a81d9(_0x1e0c92['getRanges'](),_0x517e5e)||_0x5a81d9(_0x517e5e,_0x1e0c92['getRanges']()))){if(_0x3a085e){if(_0x1e0c92['commentThread']&&_0x1e0c92['commentThread']['length'])continue;for(const _0x4e6e22 of _0x1e0c92['getRanges']())_0x3a085e['isIntersectingWithRange'](_0x4e6e22)||_0x3a085e['addRange'](_0x4e6e22);_0x1e0c92['removeMarkers']();}else{_0x3a085e=_0x1e0c92;for(const _0x168832 of _0x517e5e)_0x1e0c92['isIntersectingWithRange'](_0x168832)||_0x1e0c92['addRange'](_0x168832);}}if(_0x3a085e)return _0x3a085e;_0x53a054['clear']();for(const {suggestion:_0x4edcc4,meta:_0x49ee7d}of this['_findSuggestions'](_0x517e5e,'deletion'))_0x49ee7d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49ee7d['containsRangeInObject']&&!_0x49ee7d['isInsideObject'])&&cn(_0x4edcc4,_0x526799)&&_0x53a054['add'](_0x4edcc4);for(const _0x552c6e of _0x53a054){const _0x284721=_0x552c6e['getRanges']();if(!_0x526799||!_0x526799['skipNestingCheck']){if(_0x517e5e['every'](_0x2e0388=>_0x284721['some'](_0x24216f=>_0x24216f['containsRange'](_0x2e0388,!0x0))))return _0x552c6e;}(!_0x552c6e['attributes']||!_0x552c6e['attributes']['skipNestingCheck'])&&(_0x284721['every'](_0x88a7c=>_0x517e5e['some'](_0x194e7e=>_0x194e7e['containsRange'](_0x88a7c,!0x0)))&&_0x552c6e['discard']());}const _0x36ec03=_0x452c31(),_0x56d773=_0x27c050['id'],_0x2a96bc='deletion:'+_0x2cc4ae,_0x3eaacf=this['_setSuggestionData']({'id':_0x36ec03,'type':_0x2a96bc,'createdAt':new Date(),'authorId':_0x56d773,'attributes':_0x526799});for(const _0x2eff2d of _0x517e5e)_0x2eff2d['detach'](),_0x2eff2d['isCollapsed']||'$graveyard'==_0x2eff2d['root']['rootName']||this['_addSuggestionMarker'](_0x2a96bc,_0x36ec03,_0x56d773,_0x2eff2d,bt['getMultiRangeId']());return _0x3eaacf;}['markAttributeChange'](_0x31116b,_0x184a1b,_0x24394f,_0x3d43be,_0x39cf8d){if(_0x31116b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4e23ab=this['editor']['plugins']['get']('Users')['me']['id'],_0xc9ec21=Array['from'](this['_suggestions']['values']())['filter'](_0x514a2f=>'attribute'==_0x514a2f['type']&&_0x514a2f['data']['key']==_0x184a1b&&_0x514a2f['isIntersectingWithRange'](_0x31116b));if(this['_trackingSessionId']&&(_0x39cf8d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4b67e9=this['_findSuggestions'](_0x31116b,'insertion')['filter'](({meta:_0x2337fd})=>_0x2337fd['isOwn']&&!_0x2337fd['isInsideObject']&&!_0x2337fd['isNextTo'])['map'](({suggestion:_0x519a24})=>_0x519a24);_0xc9ec21['unshift'](..._0x4b67e9);}const _0x598a9c=new Map([[_0x31116b,_0x24394f]]);for(const _0x189f54 of _0xc9ec21){const _0x412cf8='attribute'==_0x189f54['type']?_0x189f54['data']['oldValue']:void 0x0,_0x319eb1=_0x189f54['getFirstRange'](),_0x93ab11=Array['from'](_0x598a9c['keys']())['find'](_0x117316=>_0x117316['isIntersecting'](_0x319eb1));if(!_0x93ab11)continue;const _0x2b0fd6=_0x93ab11['getDifference'](_0x319eb1);this['_suggestionsConversion']['isBlockAttribute'](_0x184a1b)&&'insertion'==_0x189f54['type']&&0x0!=_0x2b0fd6['length']||(_0x598a9c['delete'](_0x93ab11),_0x2b0fd6['forEach'](_0x55bf6e=>{_0x598a9c['set'](_0x55bf6e,_0x24394f);}),'insertion'!=_0x189f54['type']&&_0x412cf8!=_0x3d43be&&_0x598a9c['set'](_0x93ab11['getIntersection'](_0x319eb1),_0x412cf8));}const _0x368239=[];for(const [_0x2326b3,_0x4054ca]of _0x598a9c){const _0x13d596=_0x452c31(),_0x26abf6={'key':_0x184a1b,'oldValue':_0x4054ca,'newValue':_0x3d43be};_0x184a1b['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':_0x184a1b});const _0x17d5ea=('attribute:'+(_0x184a1b+'|'+Je({'newValue':_0x3d43be})))['substring'](0x0,0x3c),_0x13094b=this['_setSuggestionData']({'id':_0x13d596,'type':_0x17d5ea,'data':_0x26abf6,'createdAt':new Date(),'authorId':_0x4e23ab,'attributes':_0x39cf8d});_0x368239['push'](_0x13094b),this['_addSuggestionMarker'](_0x17d5ea,_0x13d596,_0x4e23ab,_0x2326b3);}return _0x368239;}['enableDefaultAttributesIntegration'](_0x3fc52d){this['enableCommand'](_0x3fc52d,(_0x412653,..._0x9b0b5)=>{this['recordAttributeChanges'](()=>{_0x412653(..._0x9b0b5);});});}['startTrackingSession'](_0x1efffa){return this['_trackingSessionId']=void 0x0!==_0x1efffa?_0x1efffa:_0x452c31(),this['_trackingSessionId'];}['_getAttributeKey'](_0x436baa){return'attribute'==_0x436baa['type']?un(_0x436baa['subType']):null;}['_applyOperationsAsSuggestions'](_0x16efcc){if(0x0==_0x16efcc['length'])return;const _0x53d2be=this['editor'],_0x488e5f=_0x53d2be['plugins']['get'](_0x4d48c8),_0x27d92c=[];_0x53d2be['model']['change'](_0x46b4c4=>{for(let _0x2466ec=0x0;_0x2466ec<_0x16efcc['length'];_0x2466ec++){const _0x5c0479=_0x16efcc[_0x2466ec];if(_0x5c0479['baseVersion']=_0x53d2be['model']['document']['version'],_0x5c0479['isDocumentOperation']=!0x0,_0x488e5f['isMarkedRemoveOperation'](_0x5c0479)){const _0x1d9ebb=_0x5567b3(_0x5c0479['newRange'],_0x53d2be['model']);_0x27d92c['unshift'](_0xf2eec6['fromRange'](_0x1d9ebb));}else switch(_0x5c0479['type']){case'rename':{const _0x4aadc8=_0x5c0479['oldName'],_0x356310=_0x5c0479['newName'];if(_0x4aadc8==_0x356310)break;_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);const _0x2c59c7='$elementName',_0x30fdab=_0x5c0479['position'],_0x569fe5=_0x53d2be['model']['createRange'](_0x30fdab,_0x53d2be['model']['createPositionAt'](_0x30fdab['nodeAfter'],'end'));this['markAttributeChange'](_0x569fe5,_0x2c59c7,_0x4aadc8,_0x356310,{'groupId':_0x452c31()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xdd006d=_0x5c0479['oldValue'],_0x3579b1=_0x5c0479['newValue'];if(_0xdd006d==_0x3579b1)break;_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);const _0xcf55da=_0x5c0479['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xcf55da))break;const _0x4ab96c=_0x5567b3(_0x5c0479['range'],_0x53d2be['model']);this['markAttributeChange'](_0x4ab96c,_0xcf55da,_0xdd006d,_0x3579b1,{'groupId':_0x452c31()});break;}case'insert':{_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);if(_0x16efcc[_0x2466ec+0x1]&&'move'==_0x16efcc[_0x2466ec+0x1]['type'])break;const _0x16bf53=_0x5c0479['position'],_0x4b0376=_0x5c0479['howMany'],_0x3469a4=_0x5567b3(_0x53d2be['model']['createRange'](_0x16bf53,_0x16bf53['getShiftedBy'](_0x4b0376)),_0x53d2be['model']);this['markInsertion'](_0x3469a4);break;}case'split':{_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);const _0x43b43d=_0x5c0479['splitPosition'],_0x41078e=_0x5c0479['moveTargetPosition'];this['markInsertion'](_0x53d2be['model']['createRange'](_0x43b43d,_0x41078e));break;}case'move':case'remove':_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);}}for(const _0x573de0 of _0x27d92c)_0x573de0['detach'](),this['markDeletion'](_0x573de0);});}['_setSuggestionRange'](_0x3686c4,_0x1d6431){const _0x9a70e0=_0x3686c4['getFirstMarker']();this['_model']['change'](_0x470b66=>{_0x470b66['updateMarker'](_0x9a70e0,{'range':_0x1d6431});});}['_addThreadToSuggestion'](_0x45af18){const _0x1a44f3=_0x45af18['id'],_0x57683b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1a44f3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x57683b,'threadId':_0x1a44f3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5effe0=this['_commentsRepository']['getCommentThread'](_0x1a44f3);_0x5effe0['unbind']('isRemovable'),_0x5effe0['isRemovable']=!0x1,_0x45af18['commentThread']=_0x5effe0;}['_checkSuggestionCorrectness'](_0x4b6cbb,_0x4c6bcd,_0x58980f,_0x1737a5){if(_0x4b6cbb['type']!=_0x4c6bcd||_0x4b6cbb['subType']!=_0x58980f||_0x4b6cbb['creator']['id']!=_0x1737a5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27828f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5cd055,_0x58259e){const _0x4fe91b=_0x5cd055['getFirstRange']();if(_0x58259e['isEqual'](_0x4fe91b))_0x5cd055['removeMarkers']();else{if(_0x4fe91b['containsRange'](_0x58259e)){const _0x4e9543=this['_model']['createPositionAt'](_0x58259e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cd055,this['_model']['createRange'](_0x4fe91b['start'],_0x4e9543));const _0x5dc25d=_0x452c31(),_0xc71349=_0x5cd055['creator']['id'],_0x1b0d3f=_0x5cd055['type']+':'+_0x5cd055['subType'];this['_setSuggestionData']({'id':_0x5dc25d,'type':_0x1b0d3f,'createdAt':new Date(),'authorId':_0xc71349,'data':_0x5cd055['data'],'attributes':_0x5cd055['attributes']});const _0x15b374=this['_model']['createPositionAt'](_0x58259e['end']['parent'],'after'),_0x50b926=this['_model']['createRange'](_0x15b374,_0x4fe91b['end']);this['_addSuggestionMarker'](_0x1b0d3f,_0x5dc25d,_0xc71349,_0x50b926);}else{if(_0x4fe91b['containsPosition'](_0x58259e['start'])){const _0x3ed1ab=this['_model']['createPositionAt'](_0x58259e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cd055,this['_model']['createRange'](_0x4fe91b['start'],_0x3ed1ab));}else{const _0x3f003d=this['_model']['createPositionAt'](_0x58259e['end']['parent'],'after');this['_setSuggestionRange'](_0x5cd055,this['_model']['createRange'](_0x3f003d,_0x4fe91b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1214a7){for(const {suggestion:_0x5299c4,meta:_0x5d6634}of this['_findSuggestions'](_0x1214a7,'insertion')){if(!_0x5d6634['isOwn'])continue;const _0x13327b=_0x5299c4['getRanges']();for(const _0x273334 of _0x13327b)if(!_0x1214a7['getDifference'](_0x273334)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x57bbf8){return this['editor']['plugins']['get']('Users')['getUser'](_0x57bbf8);}['_getExternalAuthor'](_0x48fb48){const _0x1739aa=this['editor']['plugins']['get']('Users'),_0x3643c0=_0x4ba0b5('external:'+_0x48fb48),_0x37c47d=_0x1739aa['getUser'](_0x3643c0);return _0x37c47d||_0x1739aa['addUser']({'id':_0x3643c0,'name':_0x48fb48});}['_createSuggestion'](_0x4d9e14,_0x5c24ba,_0x3f1119,_0x152c10,_0x2ba5d4,_0x11d16a){const _0x1e87e4=this['_getAuthorFromId'](_0x152c10);if(!_0x1e87e4)throw new _0x27828f('track-changes-user-not-found',this,{'authorId':_0x152c10,'suggestionId':_0x3f1119});const _0x9033e0=this['_suggestionFactory']['buildSuggestion'](_0x4d9e14,_0x5c24ba,_0x3f1119,_0x1e87e4,_0x2ba5d4,_0x5d293c=>{this['_updateSuggestionData'](_0x3f1119,{'attributes':_0x5d293c});const _0x24995a=this['getSuggestion'](_0x3f1119);this['_joinWithAdjacentSuggestions'](new Set([_0x24995a])),this['_refreshSuggestionsChain'](new Set([_0x24995a]));},_0x11d16a);return this['listenTo'](_0x9033e0,'accept',()=>{this['_updateSuggestionData'](_0x3f1119,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x9033e0,'discard',()=>{this['_updateSuggestionData'](_0x3f1119,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3f1119,_0x9033e0),this['_suggestionState']['set'](_0x9033e0,'notReady'),_0x9033e0;}['_breakSuggestionMarker'](_0x4ca2fd,_0x5772cb,_0x31743a){const _0x3535bf=_0x4ca2fd['getFirstRange'](),_0x46e42e=_0x3535bf['start'],_0x3cb08a=_0x3535bf['end'];this['_setSuggestionRange'](_0x4ca2fd,this['_model']['createRange'](_0x46e42e,_0x5772cb));const _0x11af77=_0x452c31(),_0x2a1edf=_0x4ca2fd['creator']['id'],_0x447520=_0x4ca2fd['type']+(_0x4ca2fd['subType']?':'+_0x4ca2fd['subType']:'');this['_setSuggestionData']({'id':_0x11af77,'type':_0x447520,'createdAt':new Date(),'authorId':_0x2a1edf,'originalSuggestionId':_0x4ca2fd['_originalSuggestionId']||_0x4ca2fd['id'],'attributes':_0x4ca2fd['attributes'],'data':_0x4ca2fd['data']});const _0x3c0e81=this['_getAttributeKey'](_0x4ca2fd);('formatBlock'==_0x4ca2fd['type']||_0x3c0e81&&this['_suggestionsConversion']['isBlockAttribute'](_0x3c0e81))&&(_0x31743a=this['_model']['createPositionBefore'](_0x31743a['parent'])),this['_addSuggestionMarker'](_0x447520,_0x11af77,_0x2a1edf,this['_model']['createRange'](_0x31743a,_0x3cb08a));}['_findSuggestions'](_0x3dce1,_0x3c6698=null){const _0x5b3037=[],_0x34985e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3dce1)||(_0x3dce1=[_0x3dce1]);for(const _0x3027a4 of this['getSuggestions']()){if(!_0x3027a4['isInContent'])continue;if(_0x3c6698&&_0x3027a4['type']!=_0x3c6698)continue;let _0x145d1b=!0x1;for(const _0x28950e of _0x3027a4['getRanges']()){for(const _0x215e7d of _0x3dce1){const _0x5cfef8=_0x215e7d['start']['isEqual'](_0x28950e['end'])||_0x215e7d['end']['isEqual'](_0x28950e['start']);if(_0x5cfef8||_0x215e7d['getIntersection'](_0x28950e)){const _0x3a6ff4=_0x215e7d['containsRange'](_0x28950e)&&qe(this['_model']['schema'],_0x28950e['start'],_0x215e7d),_0xc92fd7=_0x28950e['containsRange'](_0x215e7d)&&qe(this['_model']['schema'],_0x215e7d['start'],_0x28950e);_0x5b3037['push']({'suggestion':_0x3027a4,'meta':{'isOwn':_0x34985e==_0x3027a4['author'],'isNextTo':_0x5cfef8,'isInsideObject':_0x3a6ff4,'containsRangeInObject':_0xc92fd7}}),_0x145d1b=!0x0;break;}}if(_0x145d1b)break;}}return _0x5b3037;}['_addSuggestionMarker'](_0xee7bc3,_0x289518,_0x3a8dda,_0x1103a6,_0x41b9a8){this['_model']['change'](_0x441031=>{let _0x301fe2='suggestion:'+_0xee7bc3+':'+_0x289518+':'+_0x3a8dda;_0x41b9a8&&(_0x301fe2=_0x301fe2+':'+_0x41b9a8),_0x441031['addMarker'](_0x301fe2,{'range':_0x1103a6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2132f8){const _0x3d3b7c=_0x2132f8['previous'],_0x28b0fc=_0x2132f8['next'];_0x2132f8['previous']=null,_0x2132f8['next']=null,null!=_0x3d3b7c&&_0x3d3b7c['next']==_0x2132f8&&(_0x3d3b7c['next']=_0x28b0fc),null!=_0x28b0fc&&_0x28b0fc['previous']==_0x2132f8&&(_0x28b0fc['previous']=_0x3d3b7c),'ready'==this['_suggestionState']['get'](_0x2132f8)&&(this['_suggestionState']['set'](_0x2132f8,'removed'),this['fire']('suggestionUnloaded',_0x2132f8,_0x3d3b7c,_0x28b0fc));}['_setSuggestionData'](_0x7fdf19){const _0x462d97=_0x7fdf19['id'],_0x26db90=this['addSuggestionData'](_0x7fdf19);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x77df11=this['editor']['plugins']['get']('PendingActions'),_0xa7bd07=_0x26db90['hasComments'],_0x3557d3=_0x26db90['subType']?_0x26db90['type']+':'+_0x26db90['subType']:_0x26db90['type'],_0xbd6e71=this['editor']['locale'],_0x213fcd=_0x77df11['add'](At(_0xbd6e71,'PENDING_ACTION_SUGGESTION')),_0x3082e2={'id':_0x462d97,'type':_0x3557d3,'hasComments':_0xa7bd07,'data':_0x7fdf19['data']||null,'originalSuggestionId':_0x7fdf19['originalSuggestionId']||null,'attributes':_0x26db90['attributes']};this['_adapter']['addSuggestion'](_0x3082e2)['then'](_0x5c03e0=>{_0x26db90['_saved']=!0x0,_0x77df11['remove'](_0x213fcd),_0x5c03e0&&_0x5c03e0['createdAt']&&(this['_suggestions']['get'](_0x462d97)['createdAt']=_0x5c03e0['createdAt']);})['catch'](_0x38611a=>{throw _0x32599a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x26db90['discard']();}),_0x26db90['stopListening'](),this['_suggestions']['delete'](_0x26db90['id']),this['_suggestionState']['delete'](_0x26db90),_0x38611a;});}return _0x26db90;}['_updateSuggestionData'](_0x4d8d34,_0x2cd450){const _0x2d3b86=this['editor']['plugins']['get']('PendingActions'),_0x4b6077=this['getSuggestion'](_0x4d8d34);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b6077['_saved']){const _0x32729d=_0x2d3b86['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4d8d34,_0x2cd450)['then'](()=>{_0x2d3b86['remove'](_0x32729d);});}else _0x4b6077['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d8d34,_0x2cd450);});}}['_getSuggestionData'](_0x9235f8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27828f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x9235f8);}['_handleNewSuggestionMarker'](_0x5e37df){const {id:_0x37a45a,type:_0x1bff3d,subType:_0x1fca25,authorId:_0x495b07}=_0x4f6d6c(_0x5e37df),_0x233318=this['_suggestions']['get'](_0x37a45a)||this['_createSuggestion'](_0x1bff3d,_0x1fca25,_0x37a45a,_0x495b07,{});switch(this['_checkSuggestionCorrectness'](_0x233318,_0x1bff3d,_0x1fca25,_0x495b07),this['_suggestionState']['get'](_0x233318)){case'notReady':this['_getSuggestionData'](_0x37a45a)['then'](_0x4ecd87=>{let _0x11223a=Promise['resolve']();_0x4ecd87['hasComments']&&(_0x11223a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x37a45a})),_0x11223a['then'](()=>{this['addSuggestionData'](_0x4ecd87)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x233318,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x37a45a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x233318,'ready'),this['fire']('suggestionLoaded',_0x233318);break;case'ready':this['fire']('suggestionChanged',_0x233318);}return _0x233318['addMarkerName'](_0x5e37df),_0x233318;}['_refreshSuggestionsChain'](_0x55269f){const _0x282c6e=Array['from'](_0x55269f),_0x69dac3=_0x282c6e['filter'](_0x18317b=>'attribute'==_0x18317b['type']);this['_refreshAttributeSuggestionsChain'](_0x69dac3);const _0x2dc353=_0x282c6e['filter'](_0x43a337=>!_0x43a337['isMultiRange']&&'attribute'!=_0x43a337['type']),_0x185885=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3546f6=>!_0x3546f6['isMultiRange']&&'attribute'!=_0x3546f6['type']),_0x21e987=_0x185885['filter'](_0x407446=>!_0x55269f['has'](_0x407446)),_0x161214=new Map(_0x185885['map'](_0x38b460=>[_0x38b460,this['_suggestionFactory']['getSuggestionCallback'](_0x38b460['type'],_0x38b460['subType'],'chain')])),_0x4ea871=new Map(_0x185885['map'](_0x2686a3=>[_0x2686a3,_0x2686a3['getFirstRange']()])),_0xda9af6=new Set(),_0x4a994b=new Set();for(let _0x5983d9=0x0;_0x5983d9<_0x2dc353['length'];_0x5983d9++)_0x3978b1(_0x2dc353[_0x5983d9],_0x2dc353,_0x5983d9+0x1);for(let _0x1728bf=0x0;_0x1728bf<_0x2dc353['length'];_0x1728bf++)_0x3978b1(_0x2dc353[_0x1728bf],_0x21e987,0x0);const _0x24431e=new Set();for(let _0x246ff3=0x0;_0x246ff3<_0x2dc353['length'];_0x246ff3++){const _0x166ecd=_0x2dc353[_0x246ff3];!_0x4a994b['has'](_0x166ecd)&&_0x166ecd['previous']&&(_0x24431e['add'](_0x166ecd['previous']),_0x166ecd['previous']['next']===_0x166ecd&&(_0x166ecd['previous']['next']=null),_0x166ecd['previous']=null),!_0xda9af6['has'](_0x166ecd)&&_0x166ecd['next']&&(_0x24431e['add'](_0x166ecd['next']),_0x166ecd['next']['previous']===_0x166ecd&&(_0x166ecd['next']['previous']=null),_0x166ecd['next']=null);}function _0x3978b1(_0x3feb16,_0xeeccc4,_0x4bf8b0){for(let _0x70cf5d=_0x4bf8b0;_0x70cf5d<_0xeeccc4['length'];_0x70cf5d++){const _0x1b8145=_0x36114d(_0x3feb16,_0xeeccc4[_0x70cf5d]);_0x1b8145&&(_0x1b8145[0x0]['next']=_0x1b8145[0x1],_0x1b8145[0x1]['previous']=_0x1b8145[0x0],_0xda9af6['add'](_0x1b8145[0x0]),_0x4a994b['add'](_0x1b8145[0x1]));}}function _0x36114d(_0x3820d3,_0x3fd67f){if(_0x3820d3['author']['id']!==_0x3fd67f['author']['id'])return null;const _0x281a20=_0x161214['get'](_0x3820d3)(_0x3820d3,_0x3fd67f,_0x4ea871['get'](_0x3820d3),_0x4ea871['get'](_0x3fd67f));if(!_0x281a20)return null;return _0x161214['get'](_0x3fd67f)(_0x3820d3,_0x3fd67f,_0x4ea871['get'](_0x3820d3),_0x4ea871['get'](_0x3fd67f))?_0x281a20[0x1]['commentThread']&&_0x281a20[0x1]['commentThread']['length']?null:_0x281a20:null;}_0x24431e['size']&&this['_refreshSuggestionsChain'](_0x24431e);}['_refreshAttributeSuggestionsChain'](_0x4920ea){if(0x0==_0x4920ea['length'])return;const _0x553716=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x405918=>'attribute'==_0x405918['type']&&_0x405918['_isDataLoaded']),_0x581169=[],_0x245680=new Map();for(const _0x409d14 of _0x553716){const _0x5de7c9=_0x4ba0b5(_0x409d14['attributes']);_0x245680['has'](_0x5de7c9)||(_0x245680['set'](_0x5de7c9,_0x581169['length']),_0x581169['push']([]));const _0x1eb616=_0x245680['get'](_0x5de7c9);_0x581169[_0x1eb616]['push'](_0x409d14);}!(function(){_0x581169['sort']((_0x382e68,_0xaa2a9f)=>{const _0x5ed172=_0x382e68[0x0]['createdAt'],_0x18cf09=_0xaa2a9f[0x0]['createdAt'];return _0x5ed172==_0x18cf09?_0x382e68[0x0]['attributes']['groupId']<_0xaa2a9f[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ed172<_0x18cf09?-0x1:0x1;});for(const _0x2399d3 of _0x581169)_0x2399d3['sort']((_0x53e79a,_0x7ac168)=>_0x53e79a['id']<_0x7ac168['id']?-0x1:0x1);}());for(let _0xc7c392=0x0;_0xc7c392<_0x581169['length'];_0xc7c392++){if(0x0==_0x581169[_0xc7c392]['length'])continue;const _0x14c2d2=[];for(let _0x52408c=_0xc7c392+0x1;_0x52408c<_0x581169['length'];_0x52408c++)0x0!=_0x581169[_0x52408c]['length']&&_0xce7cc9(_0x581169[_0xc7c392],_0x581169[_0x52408c])&&_0x14c2d2['push'](_0x52408c);for(const _0x2c4acb of _0x14c2d2)_0x581169[_0xc7c392]=_0x581169[_0xc7c392]['concat'](_0x581169[_0x2c4acb]),_0x581169[_0x2c4acb]=[];}for(const _0x5322df of _0x581169)for(let _0x1c1c00=0x0;_0x1c1c00<_0x5322df['length'];_0x1c1c00++){const _0xb5df7b=_0x5322df[_0x1c1c00+0x1]||null;_0x5322df[_0x1c1c00]['next']!==_0xb5df7b&&(_0x5322df[_0x1c1c00]['next']=_0xb5df7b);}for(const _0x4badfd of _0x581169)for(let _0x54fa68=0x0;_0x54fa68<_0x4badfd['length'];_0x54fa68++){const _0x3e38c0=_0x4badfd[_0x54fa68-0x1]||null;_0x4badfd[_0x54fa68]['previous']!==_0x3e38c0&&(_0x4badfd[_0x54fa68]['previous']=_0x3e38c0);}function _0xce7cc9(_0x348199,_0x45fecf){if(_0x348199[0x0]['attributes']['groupId']!==_0x45fecf[0x0]['attributes']['groupId']&&_0x348199[0x0]['author']!==_0x45fecf[0x0]['author'])return!0x1;if(!function(_0x2c79e8,_0x13cf12){if(!_0x2c79e8['hasComments']&&!_0x13cf12['hasComments'])return!0x0;if(_0x2c79e8['hasComments']&&_0x13cf12['hasComments'])return!0x1;if(_0x2c79e8['hasComments']&&_0x13cf12['createdAt']<_0x2c79e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x13cf12['hasComments']&&_0x2c79e8['createdAt']<_0x13cf12['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x348199[0x0],_0x45fecf[0x0]))return!0x1;const _0x5aa201=ot(_0x348199[0x0]['attributes'],['groupId','trackingSessionId']),_0x3d9570=ot(_0x45fecf[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5aa201,_0x3d9570))return!0x1;if(_0x348199[0x0]['attributes']['groupId']==_0x45fecf[0x0]['attributes']['groupId'])return!0x0;if(_0x348199[0x0]['attributes']['trackingSessionId']!==_0x45fecf[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x348199['every'](_0x4d5f26=>_0x45fecf['some'](_0x69281d=>_0x4d5f26['getFirstRange']()['isEqual'](_0x69281d['getFirstRange']())))&&_0x45fecf['every'](_0x43ee88=>_0x348199['some'](_0x537716=>_0x43ee88['getFirstRange']()['isEqual'](_0x537716['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a5647){const _0x186c21=Array['from'](_0x3a5647),_0x4c2325=this['getSuggestions']({'skipNotAttached':!0x0}),_0x407fe9=_0x4c2325['filter'](_0xcbf9c7=>!_0x3a5647['has'](_0xcbf9c7)),_0x172f89=new Map(_0x186c21['map'](_0x2c662d=>[_0x2c662d,this['_suggestionFactory']['getSuggestionCallback'](_0x2c662d['type'],_0x2c662d['subType'],'join')])),_0x4cce69=new Map(_0x4c2325['map'](_0x49fe5a=>[_0x49fe5a,_0x49fe5a['getRanges']()]));for(let _0x43474d=0x0;_0x43474d<_0x186c21['length'];_0x43474d++){if(_0x18a90b(this,_0x186c21[_0x43474d],_0x186c21,_0x43474d+0x1))return!0x0;}for(let _0x1e8831=0x0;_0x1e8831<_0x186c21['length'];_0x1e8831++){if(_0x18a90b(this,_0x186c21[_0x1e8831],_0x407fe9,0x0))return!0x0;}return!0x1;function _0x18a90b(_0x5b78a4,_0x2016ad,_0x1a6f51,_0x83b6c0){for(let _0x32b5b9=_0x83b6c0;_0x32b5b9<_0x1a6f51['length'];_0x32b5b9++){const _0x45d3f8=_0x1a6f51[_0x32b5b9];if(_0x45d3f8['type']!==_0x2016ad['type']||_0x45d3f8['author']['id']!==_0x2016ad['author']['id']||_0x45d3f8['subType']!==_0x2016ad['subType'])continue;if(!an(_0x2016ad,_0x45d3f8))continue;if('attribute'==_0x2016ad['type']&&_0x2016ad['data']['oldValue']!=_0x45d3f8['data']['oldValue'])continue;if('attribute'==_0x2016ad['type']&&_0x5b78a4['_suggestionsConversion']['isBlockAttribute'](_0x2016ad['data']['key']))continue;if('formatBlock'==_0x2016ad['type']){const _0x219731=_0x5b78a4['editor']['model'],_0x422c80=_0x2016ad['getContainedElement']();if(_0x422c80&&(_0x219731['schema']['isObject'](_0x422c80)||_0x219731['schema']['isLimit'](_0x422c80)))continue;}const _0x4c9ee9=_0x172f89['get'](_0x2016ad),_0x3d1cf7=_0x4cce69['get'](_0x2016ad),_0x4daec4=_0x4cce69['get'](_0x45d3f8),_0x5ea452=_0x2016ad['commentThread']&&_0x2016ad['commentThread']['length'],_0x30a76d=_0x45d3f8['commentThread']&&_0x45d3f8['commentThread']['length'];if(!_0x5ea452&&_0x4c9ee9(_0x4daec4,_0x3d1cf7))return _0x5b78a4['_joinSuggestions'](_0x45d3f8,_0x2016ad),_0x4cce69['delete'](_0x2016ad),!0x0;if(!_0x30a76d&&_0x4c9ee9(_0x3d1cf7,_0x4daec4))return _0x5b78a4['_joinSuggestions'](_0x2016ad,_0x45d3f8),_0x4cce69['delete'](_0x45d3f8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x34713f,_0x1782a9){if(_0x34713f['isMultiRange']){for(const _0x569f04 of _0x1782a9['getRanges']())_0x34713f['addRange'](_0x569f04);}else{const _0x443567=_0x1782a9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x34713f,this['_model']['createRange'](_0x34713f['getFirstRange']()['start'],_0x443567));}_0x1782a9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3cbbca,_0x11750f,_0x8a6729){const _0x51e646=_0x3cbbca['startsWith']('format')||_0x3cbbca['startsWith']('attribute')?'FORMATTING':_0x3cbbca['toUpperCase']();return At(this['editor']['locale'],_0x11750f+'_'+_0x51e646+'_SUGGESTION_ANNOUNCEMENT',_0x8a6729);}['_initAriaMarkerChangeAnnouncements'](){const _0x25fb5e=this['editor'];if(!_0x25fb5e['ui'])return;const {ariaLiveAnnouncer:_0x4e1cc0}=_0x25fb5e['ui'];_0x3d9988(this['_model'],({left:_0x55fea3,entered:_0x5dcb19})=>{for(const _0x14e9b9 of _0x55fea3){const {group:_0x2d18dc,type:_0x2b5318}=_0x4f6d6c(_0x14e9b9['name']);if('suggestion'===_0x2d18dc){_0x4e1cc0['announce'](this['_getMarkerAnnouncementText'](_0x2b5318,'LEAVE'));break;}}for(const _0x159993 of _0x5dcb19){const {group:_0x4b800a,type:_0x3ecbdf}=_0x4f6d6c(_0x159993['name']);if('suggestion'===_0x4b800a){_0x4e1cc0['announce'](this['_getMarkerAnnouncementText'](_0x3ecbdf,'ENTER',_0x52af58(_0x32ea30)));break;}}});}['_processAttributeChanges'](_0x4c4d8b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3bf71b=this['editor'],_0x268085=_0x3bf71b['model']['document']['differ']['getChanges']();if(0x0==_0x268085['length'])return!0x1;const _0x5c81a9=[],_0x1682bf=_0x268085['filter'](_0x57f629=>'attribute'==_0x57f629['type']),_0x4961f9=_0x268085['filter'](_0x3f176e=>'insert'==_0x3f176e['type']&&'$text'!=_0x3f176e['name']),_0x512704=_0x268085['filter'](_0x1e30e1=>'remove'==_0x1e30e1['type']&&'$text'!=_0x1e30e1['name']);for(const _0x6f565b of _0x1682bf)_0x5c81a9['push']({'key':_0x6f565b['attributeKey'],'newValue':_0x6f565b['attributeNewValue'],'oldValue':_0x6f565b['attributeOldValue'],'range':sn(_0x6f565b['range'],_0x3bf71b['model'])});for(const _0x189a3b of _0x4961f9){const _0x4f1b52=_0x512704['find'](_0x3a15ef=>_0x3a15ef['position']['isEqual'](_0x189a3b['position']));_0x4f1b52&&_0x5c81a9['push']({'key':Ke,'newValue':_0x189a3b['name'],'oldValue':_0x4f1b52['name'],'range':_0x3bf71b['model']['createRangeOn'](_0x189a3b['position']['nodeAfter'])});}return 0x0!=_0x5c81a9['length']&&this['_reduceExistingSuggestions'](_0x4c4d8b,_0x5c81a9);}['_processAttributeSuggestions'](_0x80d2f9){let _0x3ad180=!0x1;const _0x49b433=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39b52f=>_0x39b52f['data']['newRange']&&_0x39b52f['name']['startsWith']('suggestion:attribute:'));for(const _0x538fdf of _0x49b433){const {subType:_0x1455a8,id:_0x3c2781}=_0x4f6d6c(_0x538fdf['name']),_0x1cd1e1=_0x1455a8['split']('|')[0x0];for(const _0xb4bb03 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb4bb03['id']!=_0x3c2781&&'attribute'==_0xb4bb03['type']&&_0xb4bb03['data']&&_0xb4bb03['data']['key']==_0x1cd1e1&&_0xb4bb03['getFirstRange']()['isIntersecting'](_0x538fdf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb4bb03,_0x538fdf['data']['newRange'],_0x80d2f9),_0x3ad180=!0x0);}return _0x3ad180;}['recordAttributeChanges'](_0x3e938a){this['_recordAttributeSuggestions']=!0x0,_0x3e938a();}['_reduceExistingSuggestions'](_0x425291,_0x553b85){if(0x0==_0x553b85['length'])return!0x1;let _0x382afd=!0x1;for(const _0x3dd76d of _0x553b85){const _0x412256=this['_findSuggestions'](_0x3dd76d['range'],'attribute')['filter'](_0x53ee93=>!_0x53ee93['meta']['isNextTo'])['map'](_0xe6c683=>_0xe6c683['suggestion']),_0x5bdff1=_0x4ba0b5({'newValue':_0x3dd76d['newValue']});_0x412256['filter'](_0x215e26=>{const [_0x259a50,_0x481671]=_0x215e26['subType']['split']('|');return _0x259a50==_0x3dd76d['key']&&_0x481671!=_0x5bdff1;})['forEach'](_0x2202fa=>{this['_reduceSuggestionAttributeRange'](_0x2202fa,_0x3dd76d['range'],_0x425291),_0x382afd=!0x0;});}return _0x382afd;}['_reduceSuggestionAttributeRange'](_0x3d8206,_0xe1279f,_0x2720da){const _0x5279f1=_0x3d8206['getFirstRange']()['getDifference'](_0xe1279f);0x0!==_0x5279f1['length']?0x1!==_0x5279f1['length']?this['_breakSuggestionMarker'](_0x3d8206,_0xe1279f['start'],_0xe1279f['end']):this['_setSuggestionRange'](_0x3d8206,_0x5279f1[0x0]):_0x2720da['removeMarker'](_0x3d8206['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1c8ecb){this['_editor']=_0x1c8ecb,this['_model']=_0x1c8ecb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a583f,_0x4bd9a2,_0x8a883e,_0x1a535b,_0x1123e3,_0x5abd3a,_0x2cfb53){return new bt(this['_model'],{'type':_0x2a583f,'subType':_0x4bd9a2,'id':_0x8a883e,'originalSuggestionId':_0x2cfb53,'author':_0x1a535b,'creator':_0x1a535b,'attributes':_0x1123e3,'onAttributesChange':_0x5abd3a,'onAccept':(..._0x53d754)=>this['getSuggestionCallback'](_0x2a583f,_0x4bd9a2,'accept')(..._0x53d754),'onDiscard':(..._0x10fbb4)=>this['getSuggestionCallback'](_0x2a583f,_0x4bd9a2,'discard')(..._0x10fbb4)});}['registerCustomCallback'](_0x14c7dd,_0x4a1f03,_0x544674,_0xbdbe4c){const _0x17d615=_0x14c7dd+':'+_0x4a1f03+':'+_0x544674;this['_customCallbacks']['set'](_0x17d615,_0xbdbe4c);}['getSuggestionCallback'](_0x4e07f2,_0x268457,_0x500303){const _0x380b2d=_0x4e07f2+':'+_0x268457+':'+_0x500303;return this['_customCallbacks']['get'](_0x380b2d)||this['_defaultCallbacks']['get'](_0x4e07f2+':'+_0x500303);}['_registerDefaultCallbacks'](){const _0x165a94=()=>!0x1,_0x2f67e5=_0x267a05=>{_0x267a05['sort']((_0x2cad4,_0xd860a0)=>_0x2cad4['start']['isBefore'](_0xd860a0['start'])?0x1:-0x1),this['_model']['change'](_0x352c59=>{for(const _0x38b5da of _0x267a05){let _0x25ec09;_0x25ec09=_0x38b5da['end']['isAtEnd']&&_0x38b5da['end']['parent']==_0x38b5da['start']['nodeAfter']?_0x352c59['createSelection'](_0x38b5da['start']['nodeAfter'],'on'):_0x352c59['createSelection'](_0x38b5da),this['_model']['deleteContent'](_0x25ec09,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x50927d=(_0x56205c,_0x5f51a8)=>{_0x5f51a8&&this['_model']['change'](_0x22519c=>{const {commandName:_0x3e76c6,commandParams:_0x442fc6=[]}=_0x5f51a8,_0x4fa180=_0x56205c['map'](_0x8424e0=>(Qe(_0x8424e0)&&(_0x8424e0=this['_model']['createRange'](_0x8424e0['end'])),_0x8424e0))['filter'](_0x55139f=>'$graveyard'!==_0x55139f['root']['rootName']);if(_0x4fa180['length']<0x1)return;const _0x44467b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x53b5a3=>_0xf2eec6['fromRange'](_0x53b5a3));_0x22519c['setSelection'](_0x4fa180);for(const _0x498518 of this['_editor']['commands']['commands']())_0x498518['refresh']();_0x442fc6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3e76c6,..._0x442fc6);const _0x2f4473=_0x44467b['filter'](_0x24cecf=>'$graveyard'!=_0x24cecf['root']['rootName']);_0x2f4473['length']>0x0&&_0x22519c['setSelection'](_0x2f4473);for(const _0x39a8c1 of _0x44467b)_0x39a8c1['detach']();});},_0x26ae5a=(_0x51cc11,_0x1a3285)=>0x1==_0x51cc11['length']&&0x1==_0x1a3285['length']&&_0x51cc11[0x0]['end']['isEqual'](_0x1a3285[0x0]['start']),_0x1a71a1=(_0x31f248,_0x3231c0,_0xa89f,_0x26afb4)=>on(_0x31f248,_0x3231c0,_0xa89f,_0x26afb4)?[_0x31f248,_0x3231c0]:on(_0x3231c0,_0x31f248,_0x26afb4,_0xa89f)?[_0x3231c0,_0x31f248]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x165a94),this['_defaultCallbacks']['set']('insertion:discard',_0x2f67e5),this['_defaultCallbacks']['set']('insertion:join',_0x26ae5a),this['_defaultCallbacks']['set']('insertion:chain',_0x1a71a1),this['_defaultCallbacks']['set']('deletion:accept',_0x2f67e5),this['_defaultCallbacks']['set']('deletion:discard',_0x165a94),this['_defaultCallbacks']['set']('deletion:join',_0x26ae5a),this['_defaultCallbacks']['set']('deletion:chain',_0x1a71a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x50927d),this['_defaultCallbacks']['set']('formatInline:discard',_0x165a94),this['_defaultCallbacks']['set']('formatInline:join',_0x26ae5a),this['_defaultCallbacks']['set']('formatInline:chain',_0x165a94),this['_defaultCallbacks']['set']('formatBlock:accept',_0x50927d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x165a94),this['_defaultCallbacks']['set']('formatBlock:join',_0x26ae5a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x165a94),this['_defaultCallbacks']['set']('attribute:accept',_0x165a94),this['_defaultCallbacks']['set']('attribute:discard',(_0x531f70,_0x524ea9)=>{if(!_0x524ea9)return;const _0x4a77ef=this['_editor']['plugins']['get'](_0x4ac64f);this['_model']['change'](_0x16407d=>{if(_0x524ea9['key']==Ke)for(const _0x37ab04 of _0x531f70){const _0x105422=_0x37ab04['start']['nodeAfter'],_0x4ba70e=_0x524ea9['oldValue'];_0x16407d['rename'](_0x105422,_0x4ba70e);}else{if(_0x4a77ef['isBlockAttribute'](_0x524ea9['key'])){for(const _0x14cbf9 of _0x531f70)void 0x0!==_0x524ea9['oldValue']?_0x16407d['setAttribute'](_0x524ea9['key'],_0x524ea9['oldValue'],_0x14cbf9['start']['nodeAfter']):_0x16407d['removeAttribute'](_0x524ea9['key'],_0x14cbf9['start']['nodeAfter']);}else{for(const _0x3030be of _0x531f70)_0x524ea9['oldValue']?_0x16407d['setAttribute'](_0x524ea9['key'],_0x524ea9['oldValue'],_0x3030be):_0x16407d['removeAttribute'](_0x524ea9['key'],_0x3030be);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x26ae5a);}}function qe(_0x1ef74e,_0x19a623,_0x261e4f){for(const _0x35baa8 of _0x19a623['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35baa8['root']==_0x35baa8)return!0x1;if(!_0x261e4f['containsItem'](_0x35baa8))return!0x1;if(_0x1ef74e['isObject'](_0x35baa8)||_0x1ef74e['isLimit'](_0x35baa8))return!0x0;}return!0x1;}function Qe(_0x312d28){return _0x312d28['end']['parent']==_0x312d28['start']['nodeAfter']&&_0x312d28['end']['isAtStart'];}function Ze(_0x3bef7f,_0xbace46,_0x10bb64,_0x1bc50a){const _0x5312cb=_0x1484b9=>!_0x1484b9['item']['is']('$textProxy')&&!_0x1bc50a['isObject'](_0x1484b9['item']),_0x21dc2f=_0x3bef7f['start']['getLastMatchingPosition'](_0x5312cb),_0x204a78=_0x3bef7f['end']['getLastMatchingPosition'](_0x5312cb,{'direction':'backward'});return(!_0x3bef7f['start']['isEqual'](_0x21dc2f)||!_0x3bef7f['end']['isEqual'](_0x204a78))&&(_0x21dc2f['isBefore'](_0x204a78)?_0x10bb64['updateMarker'](_0xbace46,{'range':_0x10bb64['createRange'](_0x21dc2f,_0x204a78)}):_0x10bb64['removeMarker'](_0xbace46),!0x0);}function Je(_0x1d1980){return _0x4ba0b5(_0x1d1980);}function tn(_0x121912){const _0x4ab6a6=_0x121912['start']['nodeAfter'];return _0x4ab6a6&&_0x4ab6a6['is']('element');}function en(_0x2aa05e){return Qe(_0x2aa05e)||function(_0x3bb876){return _0x3bb876['start']['parent']==_0x3bb876['end']['nodeBefore']&&_0x3bb876['start']['isAtEnd'];}(_0x2aa05e);}function nn(_0x435125,_0x47360e){try{const _0x31a99c=_0x435125['getRange']();for(const _0x1edeae of _0x47360e)if(_0x435125!==_0x1edeae&&_0x31a99c&&_0x31a99c['isIntersecting'](_0x1edeae['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x6d83d4,_0x36add0){return null==_0x6d83d4['end']['nodeBefore']&&_0x6d83d4['end']['parent']==_0x6d83d4['start']['nodeAfter']?rn(_0x6d83d4['start']['nodeAfter'],_0x36add0):_0x6d83d4;}function rn(_0x4f014d,_0x2751ca){const _0x434596=_0x2751ca['schema']['isObject'](_0x4f014d)||_0x2751ca['schema']['isSelectable'](_0x4f014d);return _0x2751ca['createRange'](_0x2751ca['createPositionAt'](_0x4f014d,'before'),_0x434596?_0x2751ca['createPositionAfter'](_0x4f014d):_0x2751ca['createPositionAt'](_0x4f014d,'end'));}function on(_0x568273,_0x38aede,_0x2c10c8,_0x28ff6e){return!!an(_0x568273,_0x38aede)&&_0x2c10c8['end']['isEqual'](_0x28ff6e['start']);}function an(_0x388d68,_0xa165ed){if(!_0x388d68['_isDataLoaded']||!_0xa165ed['_isDataLoaded'])return!0x1;const _0x3e5a66=new Set(Object['keys'](_0x388d68['attributes'])),_0x3dac35=new Set(Object['keys'](_0xa165ed['attributes']));if(_0x3e5a66['delete']('groupId'),_0x3dac35['delete']('groupId'),0x0==_0x3e5a66['size']&&0x0==_0x3dac35['size'])return!0x0;if(_0x3e5a66['size']!=_0x3dac35['size'])return!0x1;const _0x44cc04={..._0x388d68['attributes']},_0x3a278e={..._0xa165ed['attributes']};return delete _0x44cc04['groupId'],delete _0x3a278e['groupId'],JSON['stringify'](_0x44cc04)==JSON['stringify'](_0x3a278e);}function cn(_0x4b0ba1,_0x5a11bd){const _0x13bba0=ln(_0x4b0ba1['attributes']),_0x2c75bd=ln(_0x5a11bd);if(!_0x4b0ba1['_isDataLoaded'])return!0x1;for(const _0x1e54e7 of Object['keys'](_0x2c75bd))if(!st(_0x13bba0[_0x1e54e7],_0x2c75bd[_0x1e54e7]))return!0x1;return!0x0;}function ln(_0x223dc1){const _0x12427b=Object['assign']({},_0x223dc1);return delete _0x12427b['skipNestingCheck'],delete _0x12427b['tablePasteChainId'],_0x12427b;}function un(_0x576553){return _0x576553['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x52f4e5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4fdc83,_0x1d2f2c,_0x4321e6,_0x4dc309){super(),this['model']=_0x1d2f2c,this['view']=_0x4321e6,this['commentThreadController']=_0x4dc309,this['_editor']=_0x4fdc83,this['_acceptCommand']=_0x4fdc83['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4fdc83['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x39c09e,_0xc56c55)=>_0x39c09e||_0xc56c55),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5651a0=>_0x5651a0&&this['_editor']['model']['canEditAt'](_0x1d2f2c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x244660=>_0x244660&&this['_editor']['model']['canEditAt'](_0x1d2f2c['getRanges']())),this['_pendingAction']=null,_0x4321e6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4321e6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4321e6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4321e6,'change:isDirty',()=>{_0x4321e6['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 _0x4fd5af=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4fd5af);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x42abae{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x778616,_0x3cccef,_0x509358,_0x1b738b){super(_0x778616),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x39155b(_0x778616,At(_0x778616,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3cccef['authoredAt']),this['bind']('authoredAt')['to'](_0x3cccef),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',_0x3cccef,'authoredAt',this,'descriptionParts',(_0x18d5aa,_0x1a2dd7,_0x2ff7fb)=>{const _0x1bb5d4=_0x2ff7fb['map'](_0xb7a03=>gt(_0xb7a03['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x18d5aa-0x1,_0x3cccef['author']['name'],_0x1a2dd7?_0x1b738b['formatDateTime'](_0x1a2dd7):'',new DOMParser()['parseFromString'](_0x1bb5d4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x61aa1c(),this['focusTracker']=new _0x1cd8a1(),this['keystrokes']=new _0x3bb3d4(),this['focusCycler']=new _0x4b880c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xa6d183=>_0xa6d183['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3cccef,this['_localUser']=_0x509358,this['_config']=_0x1b738b,_0x1b738b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x37ac83(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30ee91}=this['_config'];this['commentsListView']=new _0x30ee91(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',_0x2b65c0=>_0x2b65c0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1bb7b6,_0x19b83a)=>_0x1bb7b6||!!_0x19b83a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x51ba82}=this['_config'],_0x25167a=new _0x51ba82(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2ea4dd=_0x25167a['commentInputView'];return _0x25167a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2ea4dd,'value',(_0x3e3be2,_0x480cdd,_0x125078)=>!!_0x125078||_0x3e3be2&&!_0x480cdd),_0x2ea4dd['on']('submit',(_0xea8941,_0x145a9a)=>{this['fire']('addComment',_0x145a9a),_0x2ea4dd['editor']['setData']('');}),_0x2ea4dd['on']('cancel',()=>this['focus']()),_0x2ea4dd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x25167a;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x37ad2b,_0x3e4733,_0x2c5ed2,_0x3a3a8a){super(_0x37ad2b,_0x3e4733,_0x2c5ed2,_0x3a3a8a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17d6b4=>_0x17d6b4&&_0x17d6b4[0x0]?_0x17d6b4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5b3154,_0x5123c0)=>{let _0x46bd72='';for(const _0x1dd23a of _0x5b3154)_0x46bd72+='<p>'+gt(_0x1dd23a['content'],_0x1dd23a['color'])+'</p>';return _0x5123c0?_0x46bd72:_0x39f018(_0x46bd72,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3a3a8a['SuggestionView'](_0x37ad2b,_0x3e4733,{'formatDateTime':_0x3a3a8a['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x40e3d1=this['bindTemplate'],_0x16312d=[this['suggestionView']];return this['commentsListView']&&_0x16312d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x16312d['push'](this['commentThreadInputView']),_0x16312d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x40e3d1['if']('isActive','ck-suggestion-wrapper--active'),_0x40e3d1['to']('type',_0x38d809=>'ck-suggestion-'+_0x38d809),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':_0x40e3d1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x16312d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class gn extends _0x42abae{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23a9b5,_0x21aea2,_0x6d1246){super(_0x23a9b5),this['_model']=_0x21aea2,this['_config']=_0x6d1246,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21aea2),this['acceptButton']=this['_createButton'](At(_0x23a9b5,'Accept\x20suggestion'),_0x2405d8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x23a9b5,'Discard\x20suggestion'),_0x3f4210,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5edcb5(_0x23a9b5,_0x21aea2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x61aa1c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1cd8a1(),this['keystrokes']=new _0x3bb3d4(),this['focusCycler']=new _0x4b880c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x318586=>_0x318586['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3cad45=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3cad45['innerHTML']=this['description'],this['on']('change:description',(_0x34a21f,_0x3f2ee2,_0x1f4005)=>{_0x3cad45['innerHTML']=_0x1f4005;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1c33bb=this['bindTemplate'],_0xc4f71b=[{'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':_0x1c33bb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c33bb['to']('authoredAt',_0x1bbb20=>this['_config']['formatDateTime'](_0x1bbb20))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xc4f71b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xc4f71b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xda7efd,_0x5ddb6c,_0xf771ff,_0x2c3aa1,_0x13aa10){const _0x21c79e=new _0x38b9cf(this['locale']);return _0x21c79e['set']({'label':_0xda7efd,'icon':_0x5ddb6c,'tooltip':!0x0,'tooltipPosition':_0x13aa10}),_0x21c79e['extendTemplate']({'attributes':{'class':_0xf771ff}}),_0x21c79e['on']('execute',()=>{this['fire'](_0x2c3aa1,this['_model']['id']);}),_0x21c79e;}['_setupKeyboardNavigation'](){const _0x2bbe6b=this['element'];this['keystrokes']['listenTo'](_0x2bbe6b);for(const _0x364029 of this['focusables'])this['focusTracker']['add'](_0x364029['element']),this['keystrokes']['listenTo'](_0x364029['element']);this['keystrokes']['set']('enter',(_0x29212e,_0x5be440)=>{_0x2bbe6b===_0x29212e['target']&&(this['focusCycler']['focusFirst'](),_0x5be440());}),this['keystrokes']['set']('esc',(_0x32fb23,_0x2b7b80)=>{_0x2bbe6b!==_0x32fb23['target']&&(this['focus'](),_0x2b7b80());});}}class mn extends _0x36cdc7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x286f71,_0x29b6a2,_0x37aacb,_0x4d548b];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d0a72){super(_0x3d0a72),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x205abe=this['editor']['config'];_0x205abe['define']('trackChanges.SuggestionThreadView',fn),_0x205abe['define']('trackChanges.SuggestionView',gn),_0x205abe['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x205abe['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x358d08,_0x5e74bf){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25b409,_0x4a743e]of this['_handleControllerBuffer']){const _0x4a1ce1=this['_suggestionToController']['has'](_0x25b409);_0x4a1ce1||_0x4a743e?_0x4a1ce1&&_0x4a743e&&this['_destroyController'](_0x25b409):this['_initializeController'](_0x25b409);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4d548b)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x358d08,_0x5e74bf);}['init'](){const _0x3bd006=this['editor'],_0x5569c0=_0x3bd006['plugins']['get'](Xe),_0x28fab3=_0x3bd006['plugins']['get'](_0x37aacb),_0x37c743=_0x3bd006['plugins']['get'](_0x4d548b),_0x229616=_0x3bd006['plugins']['get'](_0x29b6a2);this['_addUIComponentsToFactory'](),_0x37c743['addSourceCollector'](()=>{const _0xf49bd5=[];for(const [_0x201cb3,_0x2a8478]of Array['from'](this['_suggestionToController'])){const _0x323a78=_0x201cb3['getAllAdjacentSuggestions'](),_0x2c4ae7=[];for(const _0x407581 of _0x323a78){if(!_0x407581['isInContent'])continue;if(_0x407581['isMultiRange']){_0x2c4ae7['push'](..._0x407581['getRanges']());continue;}const _0x4a0493=_0x407581['getFirstRange']();if(_0x2c4ae7['length']>0x0){const _0x25f2b3=_0x2c4ae7[0x0]['getJoined'](_0x4a0493);if(_0x25f2b3){_0x2c4ae7[0x0]=_0x25f2b3;continue;}}_0x2c4ae7['push'](_0x4a0493);}_0xf49bd5['push']([_0x2a8478['view'],_0x2c4ae7]);}return _0xf49bd5;}),this['listenTo'](_0x5569c0,'suggestionLoaded',(_0x270588,_0x272381)=>{this['listenTo'](_0x272381,'change:previous',(_0x416eaf,_0x1ac9cc,_0x1a5db3,_0x3b5c11)=>{_0x272381['isInContent']&&(null==_0x1a5db3?(this['_updateController'](_0x3b5c11['head']),this['_handleSuggestionControllerDelayed'](_0x272381,!0x1)):(this['_updateController'](_0x1a5db3['head']),null==_0x3b5c11&&this['_handleSuggestionControllerDelayed'](_0x272381,!0x0)));}),null!==_0x272381['previous']?this['_updateController'](_0x272381['head']):this['_handleSuggestionControllerDelayed'](_0x272381,!0x1);}),this['listenTo'](_0x5569c0,'suggestionUnloaded',(_0xb8d037,_0x518397,_0x5ddbc8)=>{this['stopListening'](_0x518397,'change:previous'),this['_handleControllerBuffer']['delete'](_0x518397),this['_suggestionToController']['has'](_0x518397)&&this['_destroyController'](_0x518397),_0x5ddbc8&&this['_updateController'](_0x5ddbc8['head']);}),this['listenTo'](_0x5569c0,'suggestionChanged',(_0x2dd795,_0x407a79)=>{this['_updateController'](_0x407a79);}),this['listenTo'](_0x28fab3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x229616,'addComment',(_0x4d150b,{threadId:_0x41f509,isFromAdapter:_0x39a3a7})=>{if(_0x39a3a7||!_0x5569c0['hasSuggestion'](_0x41f509))return;const _0x33f310=_0x5569c0['getSuggestion'](_0x41f509);this['_suggestionToController']['get'](_0x33f310)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26a245=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x186e89;for(const _0x5a75ef in _0x26a245){const _0x35307e=_0x5a75ef,_0x4ac128=_0x26a245[_0x35307e];if('trackChangesLicenseKeyValid'==_0x4ac128||'trackChangesLicenseKeyInvalid'==_0x4ac128||'trackChangesLicenseKeyExpired'==_0x4ac128||'trackChangesLicenseKeyDomainLimit'==_0x4ac128||'trackChangesLicenseKeyNotAllowed'==_0x4ac128||'trackChangesLicenseKeyEvaluationLimit'==_0x4ac128||'trackChangesLicenseKeyUsageLimit'==_0x4ac128){delete _0x26a245[_0x35307e],_0x186e89=_0x4ac128,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x186e89&&_0x26a245['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x186e89&&_0x26a245['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x186e89&&_0x26a245['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x186e89&&_0x26a245['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x186e89&&_0x26a245['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x186e89&&_0x26a245['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x21feb3){const _0x1f3938=this['_suggestionToController']['get'](_0x21feb3);if(!_0x1f3938)return null;return this['editor']['plugins']['get'](_0x37aacb)['getByInnerView'](_0x1f3938['view'])||null;}['getSuggestionForAnnotation'](_0xd9b6f){const _0x27b55e=this['_viewToController']['get'](_0xd9b6f['innerView']);return _0x27b55e?_0x27b55e['model']:null;}['_refreshActiveMarkers'](){const _0x480bb3=this['editor']['plugins']['get'](_0x37aacb),_0x135274=this['editor']['plugins']['get'](Xe),_0x565797=Array['from'](_0x480bb3['activeAnnotations'],_0x4abd78=>_0x4abd78['innerView'])['filter'](_0x44a687=>this['_viewToController']['has'](_0x44a687)),_0x47c74f=[];for(const _0x5313ee of _0x565797){const _0x3c923c=this['_viewToController']['get'](_0x5313ee)['model']['getAllAdjacentSuggestions']();_0x47c74f['push'](..._0x3c923c['reduce']((_0x132d20,_0x47b171)=>[..._0x132d20,..._0x47b171['getMarkerNames']()],[]));}_0x135274['activeMarkers']=_0x47c74f;}['_addUIComponentsToFactory'](){const _0x42b9a0=this['editor'],_0x1f277d=_0x42b9a0['locale'],_0x2d0198=At(_0x1f277d,'Track\x20changes'),_0x197f1c=new _0x127c97([{'type':'switchbutton','model':new _0x267c84({'withText':!0x0,'isToggleable':!0x0,'label':_0x2d0198,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x42b9a0['plugins']['has']('TrackChangesPreview')&&_0x197f1c['addMany']([{'type':'separator'},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x846aa5 of _0x197f1c)if(En(_0x846aa5)){const _0x21260d=_0x42b9a0['commands']['get'](_0x846aa5['model']['commandName']);_0x846aa5['model']['bind']('isOn','isEnabled')['to'](_0x21260d,'value','isEnabled');}_0x42b9a0['ui']['componentFactory']['add']('trackChanges',_0x5fdd75=>this['_createToolbarButton'](_0x5fdd75,_0x197f1c,_0x2d0198)),_0x42b9a0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x555688=>this['_createMenuBarMenu'](_0x555688,_0x197f1c,_0x2d0198));}['_createToolbarButton'](_0x2c1892,_0x39df9c,_0x339994){const _0x341bd9=_0x124eb0(_0x2c1892,_0x506e40),_0x277472=this['editor']['commands']['get']('trackChanges');_0x341bd9['buttonView']['set']({'tooltip':_0x339994,'label':_0x339994,'icon':_0xb612ee}),_0x341bd9['buttonView']['bind']('isOn')['to'](_0x277472,'value'),_0x341bd9['buttonView']['on']('execute',()=>{_0x277472['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f0d40(_0x341bd9,_0x39df9c,{'role':'menu'});const _0x3fb535=[];for(const _0x2dce98 of _0x39df9c)En(_0x2dce98)&&_0x3fb535['push'](this['editor']['commands']['get'](_0x2dce98['model']['commandName']));const _0x397433=_0x341bd9['buttonView'];return _0x397433['actionView']['unbind']('isEnabled'),_0x397433['arrowView']['unbind']('isEnabled'),_0x397433['actionView']['bind']('isEnabled')['to'](_0x277472,'isEnabled'),_0x397433['arrowView']['bind']('isEnabled')['toMany'](_0x3fb535,'isEnabled',(..._0x22bd42)=>_0x22bd42['some'](_0x3aac89=>_0x3aac89)),_0x341bd9['on']('execute',_0x2ec201=>{this['editor']['execute'](_0x2ec201['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x341bd9;}['_createMenuBarMenu'](_0x288fef,_0x20c723,_0x4c346a){const _0x1b90cb=new _0x5db244(_0x288fef),_0x1e3a70=this['editor']['commands']['get']('trackChanges');_0x1b90cb['buttonView']['set']({'label':_0x4c346a,'icon':_0xb612ee});const _0x5b4ae6=new _0x39efcd(_0x288fef);for(const _0x2928b8 of _0x20c723){if('separator'==_0x2928b8['type']){_0x5b4ae6['items']['add'](new _0x1e6b00(_0x288fef));continue;}const _0x6519e6=new _0x51c91d(_0x288fef,_0x1b90cb),_0x56c725=new _0x1d66cb(_0x288fef),_0x39dd3e=_0x2928b8['model'];_0x56c725['bind'](...Object['keys'](_0x39dd3e))['to'](_0x39dd3e),_0x56c725['delegate']('execute')['to'](_0x1b90cb),_0x56c725['on']('execute',()=>{this['editor']['execute'](_0x39dd3e['commandName']),this['editor']['editing']['view']['focus']();}),_0x6519e6['children']['add'](_0x56c725),_0x5b4ae6['items']['add'](_0x6519e6);}return _0x1b90cb['bind']('isEnabled')['to'](_0x1e3a70,'isEnabled'),_0x1b90cb['panelView']['children']['add'](_0x5b4ae6),_0x1b90cb;}['_initializeController'](_0x4993e1){const _0x62a749=this['editor'],_0x375142=_0x62a749['config'],_0x4dfde7=_0x62a749['plugins']['get'](_0x37aacb),_0x416902=_0x62a749['plugins']['get'](_0x29b6a2),_0x15ada6=_0x62a749['plugins']['get'](_0x4d548b),_0x87c69d=_0x62a749['plugins']['get'](_0x286f71)['me'],_0x293071=_0x375142['get']('trackChanges')['SuggestionThreadView'],_0x241e2c=_0x375142['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x566ea8,CommentThreadInputView:_0x5464fc}=_0x62a749['plugins']['get']('CommentsUI');let _0x1385d7,_0x665b8d,_0x3844c4;this['_annotationViews']['has'](_0x4993e1['id'])?(_0x665b8d=this['_annotationViews']['get'](_0x4993e1['id']),_0x1385d7=_0x665b8d['mainView']):(_0x1385d7=new _0x293071(_0x62a749['locale'],_0x4993e1,_0x87c69d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x375142['get']('comments.editorConfig'),'licenseKey':_0x375142['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x375142['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x375142['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x375142['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b795f(_0x375142['get']('locale'),_0x62a749['locale']),'CommentView':_0x375142['get']('comments')['CommentView'],'CommentsListView':_0x566ea8,'CommentThreadInputView':_0x5464fc,'SuggestionView':_0x241e2c}),_0x1385d7['suggestionView']['acceptButton']['on']('execute',()=>{_0x62a749['editing']['view']['focus']();}),_0x1385d7['suggestionView']['discardButton']['on']('execute',()=>{_0x62a749['editing']['view']['focus']();}),_0x665b8d=_0x4dfde7['createAnnotationView'](this['editor']['locale'],_0x1385d7),_0x665b8d['bind']('isDirty')['to'](_0x1385d7,'isDirty'),_0x665b8d['bind']('length')['to'](_0x1385d7),_0x665b8d['bind']('type')['to'](_0x1385d7,'type',_0x534f80=>'suggestion-'+_0x534f80),_0x1385d7['on']('escape',()=>{_0x3844c4['fire']('escape');}),this['_annotationViews']['set'](_0x4993e1['id'],_0x665b8d));const _0x217bb2=_0x416902['createCommentThreadController'](_0x4993e1['commentThread'],_0x1385d7),_0x2c13f4=new hn(_0x62a749,_0x4993e1,_0x1385d7,_0x217bb2),_0x32dcdc=_0x4993e1['getAllAdjacentSuggestions']()['filter'](_0x147a83=>_0x147a83['isInContent']);_0x1385d7['descriptionParts']=_0x62a749['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x32dcdc),this['_suggestionToController']['set'](_0x4993e1,_0x2c13f4),this['_viewToController']['set'](_0x1385d7,_0x2c13f4);const _0xea0863=()=>{const _0x51f04a=[],_0x52a983=_0x4993e1['getAllAdjacentSuggestions']()['filter'](_0x3ec664=>_0x3ec664['isInContent']);for(const _0x10899c of _0x52a983)_0x51f04a['push'](..._0x10899c['getMarkers']());return _0x42bd04(_0x62a749['editing'],_0x51f04a);};_0x3844c4=_0x4dfde7['createAnnotation']({'view':_0x665b8d,'target':_0xea0863,'type':()=>'suggestion-'+_0x2c13f4['view']['type'],'isVisible':!!_0xea0863()}),_0x416902['_bindAnnotationToEditors'](_0x1385d7,_0x3844c4),_0x4dfde7['add'](_0x3844c4),_0x15ada6['registerAnnotation'](_0x3844c4);}['_destroyController'](_0x4faca4){const _0x1d92cf=this['editor']['plugins']['get'](_0x29b6a2),_0x5d207b=this['editor']['plugins']['get'](_0x37aacb),_0x3d01e5=this['_suggestionToController']['get'](_0x4faca4),_0x508398=_0x3d01e5['view'],_0x2597a4=_0x5d207b['getByInnerView'](_0x508398);_0x1d92cf['_unbindEditors'](_0x508398),_0x2597a4&&_0x5d207b['remove'](_0x2597a4),this['_suggestionToController']['delete'](_0x4faca4),this['_viewToController']['delete'](_0x508398),_0x3d01e5['destroy']();}['_updateController'](_0x2ecfe4){if(!_0x2ecfe4['isInContent']||!this['_suggestionToController']['has'](_0x2ecfe4))return;const _0x108342=this['editor']['plugins']['get'](Xe),_0x40a148=this['_suggestionToController']['get'](_0x2ecfe4),_0x2c9d58=_0x2ecfe4['getAllAdjacentSuggestions']();_0x40a148['view']['descriptionParts']=_0x108342['descriptionFactory']['getDescriptions'](_0x2c9d58);}['destroy'](){for(const _0x2b8974 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b8974);for(const _0x78666 of this['_annotationViews']['values']())_0x78666['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x347080){return'model'in _0x347080;}class Tn extends _0x36cdc7{static get['requires'](){return[Xe,mn,_0x43d6a5];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x11d12b){this['editor']['plugins']['get'](Xe)['adapter']=_0x11d12b;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x385fdf){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x385fdf);}['getSuggestions']({skipNotAttached:_0x52947d=!0x1,toJSON:_0x1d5aff=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x52947d,'toJSON':_0x1d5aff});}['getSuggestion'](_0x49f022){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x49f022);}}const _n=['Pagination'];class pn extends _0x36cdc7{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x597088=this['editor'];if(_0x597088['config']['define']('trackChangesData.editorCreator',_0x6d02c9=>{const _0x203f82=_0x597088['model']['document']['getRootNames']()['reduce']((_0x133e36,_0x3b4b97)=>(_0x133e36[_0x3b4b97]='',_0x133e36),{});return _0x597088['constructor']['create'](_0x203f82,_0x6d02c9);}),'function'!=typeof _0x597088['config']['get']('trackChangesData')['editorCreator'])throw new _0x27828f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5c3ea8){return bn(this['editor'],!0x0,_0x5c3ea8);}['getDataWithDiscardedSuggestions'](_0x21f759){return bn(this['editor'],!0x1,_0x21f759);}}class Ln extends _0x36cdc7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x124f98){function _0x66b218(_0x9b235b){return _0x9b235b['map'](_0x51d115=>String['fromCharCode'](_0x51d115))['join']('');}super(_0x124f98),this['result']='end',_0x124f98[_0x66b218([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x66b218([0x76,0x69,0x65,0x77])][_0x66b218([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x66b218([0x61,0x75,0x74,0x6f]),_0x124f98[_0x66b218([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x66b218([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x66b218([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x66b218([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x66b218([0x6f,0x6b])});}['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 In(_0x4eaf50){return void 0x0!==_0x4eaf50['getRootsAttributes'];}async function bn(_0x140a0b,_0x34004a,_0x1d6b09){const _0x4cd06b=_0x192ebe(_0x140a0b,_n);if(_0x4cd06b['plugins']['push'](Xe,Ln),In(_0x140a0b)){_0x4cd06b['roots']=Object['create'](null);for(const _0x4f1405 of _0x140a0b['model']['document']['getRootNames']())_0x4cd06b['roots'][_0x4f1405]={'modelAttributes':_0x140a0b['getRootAttributes'](_0x4f1405)};}const _0xfb4a6d=document['createDocumentFragment'](),_0x49ad8a=_0x140a0b['config']['get']('trackChangesData')['editorCreator'],_0x4565b4=await _0x49ad8a(_0x4cd06b,()=>function(_0x50eb86){const _0x1c3c3a=document['createElement']('div');return _0x50eb86['appendChild'](_0x1c3c3a),_0x1c3c3a;}(_0xfb4a6d));!function(_0x59f30c,_0x27bb11){const _0x2b667d=_0x59f30c['model']['document']['getRootNames']()['reduce']((_0x5d244d,_0x792894)=>(_0x5d244d[_0x792894]=_0x59f30c['data']['get']({'rootName':_0x792894}),_0x5d244d),{}),_0x1de560=_0x59f30c['plugins']['get']('Users')['users']['map'](_0x3707d8=>({'id':_0x3707d8['id'],'name':_0x3707d8['name']})),_0x4f9d00=_0x59f30c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29d592=_0x59f30c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x523ccf=_0x27bb11['plugins']['get']('Users'),_0x9943bf=_0x27bb11['plugins']['get']('TrackChangesEditing'),_0x3e5165=_0x27bb11['plugins']['get']('CommentsRepository');for(const _0x1fac07 of _0x3e5165['getCommentThreads']())_0x1fac07['remove']();for(const _0x4e429c of _0x1de560)_0x523ccf['getUser'](_0x4e429c['id'])||_0x523ccf['addUser'](_0x4e429c);_0x523ccf['me']||_0x523ccf['useAnonymousUser']();for(const _0x48caec of _0x29d592)_0x3e5165['addCommentThread'](_0x48caec);for(const _0x7e8d3d of _0x4f9d00)_0x9943bf['addSuggestionData'](_0x7e8d3d);_0x27bb11['data']['set'](_0x2b667d);}(_0x140a0b,_0x4565b4),_0x4565b4['execute'](_0x34004a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3695c1=In(_0x4565b4)?_0x4565b4['getFullData'](_0x1d6b09):_0x4565b4['data']['get'](_0x1d6b09);return await _0x4565b4['destroy'](),_0x3695c1;}class An extends _0x42abae{['options'];constructor(_0xdce1a9,_0x41a139){super(_0xdce1a9),this['options']=_0x41a139,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'](_0x259380,_0x24cd32){if(!this['element'])return;const _0x1881a8=[];for(const [_0x5c68bc,_0x18eaaf]of _0x259380){const _0x1a75ea=document['createElement']('div');_0x1a75ea['setAttribute']('data-ck-root-name',_0x5c68bc),_0x1a75ea['className']=_0x18eaaf['classes']+'\x20ck-track-changes-preview__root-container',_0x1a75ea['innerHTML']=_0x18eaaf['content'],_0x1881a8['push'](_0x1a75ea);}_0x24cd32(this['element'],_0x1881a8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4e4626{constructor(_0x558342){super(_0x558342),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2fb79=this['editor'],_0x2d1b5d=_0x2fb79['locale'],_0x954f74=_0x2fb79['plugins']['get']('Dialog');let _0xd1247c;const _0x36f9b6=function(_0x1c5174){const _0xb86eb0={};if('editables'in _0x1c5174['ui']['view']){for(const [_0x4904c9,_0x229a71]of Object['entries'](_0x1c5174['ui']['view']['editables']))_0xb86eb0[_0x4904c9]=_0x229a71['element'];}else _0xb86eb0[_0x1c5174['model']['document']['getRootNames']()[0x0]]=_0x1c5174['ui']['view']['editable']['element'];return _0xb86eb0;}(_0x2fb79),_0x43e3b2=function(_0x221070){let _0x518c70=0x0;for(const _0x24db61 of Object['values'](_0x221070))_0x518c70=Math['max'](_0x518c70,_0x24db61['getBoundingClientRect']()['width']);let _0xef06bb=0x0;for(const _0x21c86b of Object['values'](_0x221070))_0xef06bb+=_0x21c86b['getBoundingClientRect']()['height'];const _0x2f4405=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x14a208=Math['min'](_0xef06bb,_0x2f4405);return{'width':_0x518c70,'height':_0x14a208};}(_0x36f9b6);_0x954f74['show']({'id':'finalContentPreview','title':At(_0x2d1b5d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x2d1b5d,{'dialogRects':_0x43e3b2}),'onHide':()=>{_0xd1247c['detachFromDom']();},'onShow':()=>{_0x2fb79['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3b58c7=>{const _0x368a10=this['_standarizeRootsData'](_0x3b58c7,_0x2fb79,_0x36f9b6);_0x954f74['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x368a10,_0x2fb79['config']['get']('trackChanges.preview.renderFunction'));}),_0xd1247c=new _0x27da16(_0x2d1b5d,[_0x954f74['view']]),_0xd1247c['attachToDom'](),_0xd1247c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2fb79['once']('destroy',()=>{_0xd1247c['detachFromDom']();});const _0x2ca2f5=_0x954f74['view']['headerView']['class'];_0x954f74['view']['headerView']['class']=_0x2ca2f5?_0x2ca2f5+'\x20ck-reset_all':'ck-reset_all',_0x954f74['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x954f74['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1a20fd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x51961a=_0x1a20fd['previewMode'],_0x91f45c={};if('$labels'===_0x51961a){for(const _0x1e8ed9 of _0x1a20fd['getMergeFieldsIds']())_0x91f45c[_0x1e8ed9]=_0x1a20fd['getLabel'](_0x1e8ed9)||_0x1e8ed9;}else{const _0xb15529='$defaultValues'===_0x51961a?_0x1a20fd['getDefaultValues']():_0x1a20fd['getDataSetValues'](_0x51961a,!0x0);for(const _0x30944b of Object['entries'](_0xb15529)){const [_0x20453a,_0x52c1dd]=_0x30944b;_0x91f45c[_0x20453a]=null!==_0x52c1dd?_0x52c1dd:_0x1a20fd['getLabel'](_0x20453a)||_0x20453a;}}return{'mergeFieldsData':_0x91f45c};}['_standarizeRootsData'](_0xde003,_0x3bca58,_0x565efe){let _0x5626e3;if('string'==typeof _0xde003){const _0x980a75=_0x3bca58['model']['document']['getRootNames']()[0x0];_0x5626e3={[_0x980a75]:_0xde003};}else _0x5626e3=_0xde003;const _0x11a13f=this['_fixMediaEmbeds'](_0x5626e3,_0x3bca58),_0x382ef6=function(_0x3aaf25,_0x3cbecc){for(const [_0x549bbb,_0x36b128]of _0x3aaf25)_0x36b128['classes']=_0x3cbecc[_0x549bbb]['classList']['value']['replace']('ck-focused','');return _0x3aaf25;}(this['_sortRoots'](_0x3bca58)['reduce']((_0x416135,_0x3ac5ee)=>(_0x416135['push']([_0x3ac5ee,{'content':_0x11a13f[_0x3ac5ee],'classes':''}]),_0x416135),[]),_0x565efe);return _0x382ef6;}['_fixMediaEmbeds'](_0x38e257,_0x563b20){if(!_0x563b20['plugins']['has']('MediaEmbedEditing'))return _0x38e257;const _0xadf9a7=_0x563b20['plugins']['get']('MediaEmbedEditing');for(const [_0x198b19,_0x453001]of Object['entries'](_0x38e257)){const _0x39621e=document['createElement']('div');_0x39621e['innerHTML']=_0x453001,(_0x39621e['querySelectorAll']('figure.media')['forEach'](_0x540c7b=>{const _0x419a6f=_0x540c7b['querySelector']('oembed');if(_0x419a6f){const _0x4e58b6=_0x419a6f['getAttribute']('url');if(_0x4e58b6){const _0x1a8094=_0xadf9a7['registry']['getMediaViewElement'](new et(_0x563b20['editing']['view']['document']),_0x4e58b6,{'elementName':'','renderForEditingView':!0x0}),_0x4eb979=document['createElement']('div');_0x4eb979['classList']['add']('ck-media__wrapper'),_0x1a8094['render'](_0x4eb979,_0x563b20['editing']['view']['domConverter']),_0x419a6f['replaceWith'](_0x4eb979);}}}),_0x38e257[_0x198b19]=_0x39621e['innerHTML']);}return _0x38e257;}['_sortRoots'](_0x567536){if(!function(_0x14e0f5){return void 0x0!==_0x14e0f5['getRootsAttributes'];}(_0x567536))return _0x567536['model']['document']['getRootNames']();const _0x18a5f6=[],_0x3c0dc5=new Map();for(const _0x2d8c91 of _0x567536['model']['document']['getRootNames']()){const _0x1b358a=_0x567536['editing']['view']['getDomRoot'](_0x2d8c91)['getClientRects']()['item'](0x0);_0x18a5f6['push'](_0x2d8c91),_0x3c0dc5['set'](_0x2d8c91,_0x1b358a);}return _0x18a5f6['sort']((_0x53b809,_0x434aac)=>{const _0x490f1c=_0x3c0dc5['get'](_0x53b809),_0x5439d4=_0x3c0dc5['get'](_0x434aac);return _0x490f1c['y']-_0x5439d4['y']||_0x490f1c['x']-_0x5439d4['x'];}),_0x18a5f6;}}class Cn extends _0x36cdc7{static get['requires'](){return[pn,_0x48dc90];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f3665){super(_0x5f3665),_0x5f3665['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x5f3665['config']['define']('trackChanges.preview.renderFunction',(_0x4b9b9a,_0x1dd29f)=>{for(const _0x2cb4a0 of _0x1dd29f)_0x4b9b9a['appendChild'](_0x2cb4a0);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
23
+ import{Command as _0xec382e,Plugin as _0x55ebc7,PendingActions as _0x3baa53}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x3c2b56,Annotations as _0x13902d,EditorAnnotations as _0x1121a4,Comments as _0x3cc10d}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x160e83,ObservableMixin as _0x13e55e,uid as _0x493bce,priorities as _0x58c127,insertToPriorityArray as _0x2a63f5,logWarning as _0x102b77,getEnvKeystrokeText as _0x20aee3,FocusTracker as _0x5f3c33,KeystrokeHandler as _0x5b9390,Collection as _0x810344}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1adb84,IconCancel as _0x35103b,IconTrackChanges as _0x35f55e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2dde84,View as _0xd16ce8,ViewCollection as _0x5d830e,FocusCycler as _0x4d88fb,UIModel as _0x26339d,createDropdown as _0x222c55,SplitButtonView as _0x3307d2,addListToDropdown as _0x5511b6,MenuBarMenuView as _0xef9624,MenuBarMenuListView as _0xeffb36,ListSeparatorView as _0x3a5db9,MenuBarMenuListItemView as _0x5293f1,MenuBarMenuListItemButtonView as _0x3a6084,BodyCollection as _0x431aa3,Dialog as _0x405d92}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x413c95,SuggestionsConversion as _0x3517fc,Users as _0x4c8879,DocumentCompare as _0x3c2b55,fixElementSuggestionRange as _0x365bc8,hashObject as _0x408f0f,surroundingMarkersDetector as _0x497775,FOCUS_ANNOTATION_KEYSTROKE as _0x523eff,AriaDescriptionView as _0xb8c91,setupThreadKeyboardNavigation as _0x244efc,trimHtml as _0x40ae59,UserView as _0x5dedc4,LateFocusButtonView as _0x51a132,getDateTimeFormatter as _0x347435,getAllMarkersDomElementsSorted as _0x35c07e,sanitizeEditorConfig as _0x5b458b}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x84f35,ModelLiveRange as _0x3e26ed,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0xec382e{['_enabledCommands'];constructor(_0x500522,_0x539a00){super(_0x500522),this['_enabledCommands']=_0x539a00,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 _0x47b726 of this['editor']['commands']['commands']())_0x47b726['affectsData']&&!this['_enabledCommands']['has'](_0x47b726)&&_0x47b726['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4d611e of this['editor']['commands']['commands']())_0x4d611e['affectsData']&&!this['_enabledCommands']['has'](_0x4d611e)&&_0x4d611e['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0xec382e{['_suggestions'];constructor(_0x13c728,_0x49fb5d){super(_0x13c728),this['_suggestions']=_0x49fb5d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4db7d2){const _0xffa080=this['_suggestions']['get'](_0x4db7d2);if(!_0xffa080)throw new _0x160e83('track-changes-accept-suggestion-not-found',this);const _0x53b348=_0xffa080['getRanges']();this['editor']['model']['canEditAt'](_0x53b348)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xffa080);}}class ft extends _0xec382e{['_suggestions'];constructor(_0x305aff,_0x45db93){super(_0x305aff),this['_suggestions']=_0x45db93,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b38fd){const _0x462093=this['_suggestions']['get'](_0x5b38fd);if(!_0x462093)throw new _0x160e83('track-changes-discard-suggestion-not-found',this);const _0x3ba175=_0x462093['getRanges']();this['editor']['model']['canEditAt'](_0x3ba175)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x462093);}}function gt(_0x40a5ab,_0x297cfe){let _0x2412b0='';return _0x2412b0+=_0x40a5ab['split']('*')['map']((_0x56dc44,_0x76e662)=>_0x76e662%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x56dc44)+'</span>':mt(_0x56dc44))['join'](''),_0x297cfe&&(_0x2412b0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x297cfe['value']+'\x22\x20title=\x22'+_0x297cfe['title']+'\x22></span>'),_0x2412b0;}function mt(_0x1be24d){const _0x5167f9=document['createElement']('span');return _0x5167f9['innerText']=_0x1be24d,_0x5167f9['innerHTML'];}function Et(_0x5d2687){return _0x5d2687['sort']((_0x126dbe,_0x5e7880)=>'attribute'===_0x126dbe['type']&&'attribute'!==_0x5e7880['type']?-0x1:'attribute'!==_0x126dbe['type']&&'attribute'===_0x5e7880['type']?0x1:'deletion'==_0x126dbe['type']&&'deletion'!=_0x5e7880['type']?-0x1:'deletion'!=_0x126dbe['type']&&'deletion'==_0x5e7880['type']?0x1:0x0);}function Tt(_0x3a25db,_0xc91c8e){let _0x2eabff,_0x106f85=0x0;const _0x4eabdf=[],_0x488b3d=_0xc91c8e['schema'];for(;_0x106f85<_0x3a25db['length'];){const _0x3d388a=_0x3a25db[_0x106f85],_0x274c5b=_0x3a25db[_0x106f85+0x1];_0x2eabff||(_0x2eabff=_0xc91c8e['createPositionBefore'](_0x3d388a)),_t(_0xc91c8e,_0x3d388a,_0x274c5b)||(_0x4eabdf['push'](_0xc91c8e['createRange'](_0x2eabff,_0x488b3d['isObject'](_0x3d388a)?_0xc91c8e['createPositionAfter'](_0x3d388a):_0xc91c8e['createPositionAt'](_0x3d388a,'end'))),_0x2eabff=null),_0x106f85++;}return _0x4eabdf;}function _t(_0x2ddbe2,_0x542cf6,_0x49b1bc){if(!_0x49b1bc)return!0x1;const _0x299d9e=_0x2ddbe2['createPositionAfter'](_0x542cf6),_0x362631=_0x2ddbe2['createPositionBefore'](_0x49b1bc);return _0x299d9e['isTouching'](_0x362631);}function pt(_0x3a3de0,_0x1e74f2,_0x2cb1f7){for(;_0x2cb1f7['length'];){const _0x14f590=_0x2cb1f7['splice'](0x0,0x64);_0x3a3de0['change'](()=>{for(const _0x40d267 of _0x14f590)_0x40d267['isInContent']&&_0x1e74f2['execute'](_0x40d267['id']);});}}class Lt extends _0xec382e{['_command'];['_suggestions'];constructor(_0x17cae1,_0x14c410,_0x146d4f){super(_0x17cae1),this['_command']=_0x14c410,this['_suggestions']=_0x146d4f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x35a3b8=Array['from'](this['_suggestions']['values']())['some'](_0x55b073=>_0x55b073['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x35a3b8;}['execute'](){const _0x41755e=Et(Array['from'](this['_suggestions']['values']()));for(const _0x5c27c2 of _0x41755e){const _0x4e98da=_0x5c27c2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e98da))return;}pt(this['editor']['model'],this['_command'],_0x41755e);}}class It extends _0xec382e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2cb5d7,_0x4365ae,_0x1c6d4b){super(_0x2cb5d7),this['_command']=_0x4365ae,this['_suggestions']=_0x1c6d4b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x376960=this['editor']['model']['document']['selection'],_0xec0924=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x453cd9,_0x245401){const _0x325ab3=Array['from'](_0x453cd9['getRanges']()),_0x459eb1=new Set();for(const _0x1912ac of _0x245401)if(_0x1912ac['isInContent']){for(const _0x3dbb68 of _0x325ab3)for(const _0x5bfe9d of _0x1912ac['getRanges']())(_0x3dbb68['isIntersecting'](_0x5bfe9d)||_0x453cd9['isCollapsed']&&!_0x1912ac['isMultiRange']&&_0x1912ac['next']&&_0x5bfe9d['end']['isTouching'](_0x3dbb68['start']))&&_0x459eb1['add'](_0x1912ac);}return _0x459eb1;}(_0x376960,_0xec0924),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x37cfa9=Et(Array['from'](this['_selectedSuggestions']));for(const _0x521300 of _0x37cfa9){const _0x5652ae=_0x521300['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5652ae))return;}pt(this['editor']['model'],this['_command'],_0x37cfa9);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x13e55e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x232d7f,_0x18e27f){super(),this['id']=_0x18e27f['id'],this['type']=_0x18e27f['type'],this['subType']=_0x18e27f['subType']||null,this['author']=_0x18e27f['author'],this['creator']=_0x18e27f['creator']||_0x18e27f['author'],this['isExternal']=Boolean(_0x18e27f['attributes']&&_0x18e27f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x18e27f['originalSuggestionId']||null,this['_model']=_0x232d7f,this['_onAccept']=_0x18e27f['onAccept'],this['_onDiscard']=_0x18e27f['onDiscard'],this['_onAttributesChange']=_0x18e27f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x18e27f['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x5df8d0=this;for(;_0x5df8d0['previous'];)_0x5df8d0=_0x5df8d0['previous'];return _0x5df8d0;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x42d622){this['_markerNames']['add'](_0x42d622);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3128b7=>this['_model']['markers']['get'](_0x3128b7))['filter'](_0x3cdcc1=>_0x3cdcc1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xe50e38=>{for(const _0x269b01 of this['getMarkers']())_0xe50e38['removeMarker'](_0x269b01);}),this['_markerNames']['clear']();}['removeMarker'](_0x487e25){this['_model']['change'](_0x3ce7f8=>{_0x3ce7f8['removeMarker'](_0x487e25);}),this['_markerNames']['delete'](_0x487e25);}['addRange'](_0x42c6d2){const _0x527a18='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x527a18),this['_model']['change'](_0x2ac8bf=>{_0x2ac8bf['addMarker'](_0x527a18,{'range':_0x42c6d2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1bfb80){for(const _0x5ab0da of this['getRanges']())if(_0x5ab0da['isIntersecting'](_0x1bfb80))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4a1889=>_0x4a1889['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x21e701,_0x45d51b)=>[..._0x21e701,..._0x45d51b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x30dc8a=this['getRanges']();if(0x1!=_0x30dc8a['length'])return null;const _0x28a022=_0x30dc8a[0x0],_0x33d8bc=_0x28a022['start']['nodeAfter'],_0x492dae=_0x28a022['end']['nodeBefore'];return _0x33d8bc instanceof _0x84f35?_0x33d8bc!=_0x492dae?null:_0x33d8bc: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 _0x3d0429=[];let _0x6fe73=this['head'];for(;_0x6fe73;)_0x3d0429['push'](_0x6fe73),_0x6fe73=_0x6fe73['next'];return _0x3d0429;}['setAttribute'](_0x5186c4,_0x27e555){const _0x2f3ce0=nt(this['attributes']);it(_0x2f3ce0,_0x5186c4,_0x27e555),st(_0x2f3ce0,this['attributes'])||(this['attributes']=_0x2f3ce0,this['_onAttributesChange'](_0x2f3ce0));}['removeAttribute'](_0x335994){const _0xb4c58b=nt(this['attributes']);rt(_0xb4c58b,_0x335994),st(_0xb4c58b,this['attributes'])||(this['attributes']=_0xb4c58b,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 _0x493bce()['substr'](0x1,0x5);}}function At(_0xc45018,_0x57c904,_0x46406d){const _0x176014=_0xc45018['t'],t=_0xc45018['t'];switch(_0x57c904){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',_0x46406d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46406d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46406d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46406d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46406d);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',_0x46406d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46406d);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',_0x46406d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46406d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46406d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46406d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46406d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46406d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46406d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46406d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46406d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46406d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46406d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46406d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46406d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46406d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46406d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46406d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46406d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x46406d);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'},_0x46406d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x46406d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x46406d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46406d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46406d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46406d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46406d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46406d);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x46406d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46406d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46406d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46406d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46406d);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'},_0x46406d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46406d);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'},_0x46406d);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_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'},_0x46406d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46406d);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'},_0x46406d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46406d);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'},_0x46406d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46406d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x46406d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x46406d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x46406d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46406d);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'},_0x46406d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46406d);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x176014({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46406d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x176014({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46406d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46406d);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'},_0x46406d);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'},_0x46406d);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'},_0x46406d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x57c904;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43f14c,_0x27006c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43f14c,this['_locale']=_0x27006c;}['getDescriptions'](_0x8542ef){const _0x22751e=[],_0x32b6a0=new Set(),_0x122f72=new Set();for(let _0x190f75=0x0;_0x190f75<_0x8542ef['length'];_0x190f75++){const _0x528f33=_0x8542ef[_0x190f75];if(!_0x528f33['isInContent'])continue;const _0x3d4daa=this['_handleCustomCallbackDescription'](_0x528f33);if(_0x3d4daa){if(null!=_0x528f33['subType']){if(_0x32b6a0['has'](_0x528f33['subType']))continue;_0x32b6a0['add'](_0x528f33['subType']);}_0x22751e['push'](_0x3d4daa);}else{if('attribute'==_0x528f33['type']){const _0x1a3de9=_0x528f33['data']['key'];if(_0x122f72['has'](_0x1a3de9))continue;_0x122f72['add'](_0x528f33['data']['key']),_0x1a3de9==Ke?this['_handleRenameSuggestionDescription'](_0x22751e,_0x528f33):this['_handleAttributeSuggestionDescription'](_0x22751e,_0x528f33);continue;}'insertion'!=_0x528f33['type']&&'deletion'!=_0x528f33['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22751e,_0x528f33,_0x8542ef[_0x190f75+0x1]);}}return this['_resolveDescriptionItems'](_0x22751e);}['registerDescriptionCallback'](_0x3f17e7){this['_customCallbacks']['push'](_0x3f17e7);}['registerElementLabel'](_0x14c861,_0x3f23eb,_0xd8e25f=_0x58c127['normal']){'function'==typeof _0x14c861?_0x2a63f5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x14c861,'label':_0x3f23eb,'priority':_0xd8e25f}):this['_itemLabels']['set'](_0x14c861,_0x3f23eb);}['registerAttributeLabel'](_0x5d7804,_0x3648ae){this['_attributeLabels']['set'](_0x5d7804,_0x3648ae);}['getItemLabel'](_0x590170,_0x303abc=0x1){let _0x568480;for(const _0x3b655b of this['_itemLabelsCallbacks'])if(_0x3b655b['matchingCallback'](_0x590170)){_0x568480=_0x3b655b['label'];break;}return _0x568480||(_0x568480=this['_itemLabels']['get'](_0x590170['name'])),_0x568480?_0x568480(_0x303abc):0x1!==_0x303abc?_0x303abc+'\x20'+_0x590170['name']+'s':''+_0x590170['name'];}['_addDescriptionItems'](_0x436cee,_0x3859b2){const _0xf6a7ac=_0x3859b2['getFirstRange']()['getWalker'](),_0x9b2651='insertion'==_0x3859b2['type']?'add':'remove';for(const _0x205e93 of _0xf6a7ac){const _0xacd6fc=_0x205e93['item'],_0x3e7312=_0x436cee[_0x436cee['length']-0x1];if(_0xacd6fc['is']('$textProxy'))_0x3e7312&&_0x3e7312['type']['indexOf']('Container')>-0x1&&_0x436cee['pop'](),_0x3e7312&&'text'==_0x3e7312['type']?_0x3e7312[_0x9b2651]+=_0xacd6fc['data']:_0x436cee['push']({'type':'text','add':'add'==_0x9b2651?_0xacd6fc['data']:'','remove':'remove'==_0x9b2651?_0xacd6fc['data']:''});else{if(this['_schema']['isObject'](_0xacd6fc)){const _0x3551e0=_0xacd6fc;if(_0x3e7312&&_0x3e7312['type']['indexOf']('Container')>-0x1&&_0x436cee['pop'](),'elementEnd'==_0x205e93['type'])continue;_0x3e7312&&_0x3e7312['type']==_0x9b2651+'Object'&&_0x3e7312['element']['name']==_0x3551e0['name']?_0x3e7312['quantity']++:_0x436cee['push']({'type':_0x9b2651+'Object','element':_0x3551e0,'quantity':0x1}),_0xf6a7ac['skip'](_0x1140e4=>!('elementEnd'==_0x1140e4['type']&&_0x1140e4['item']==_0xacd6fc));}else{if(this['_schema']['checkChild'](_0xacd6fc,'$text')||_0xacd6fc['is']('element','softBreak')){const _0x25ab9f=_0xacd6fc;if('add'==_0x9b2651&&'elementStart'==_0x205e93['type']||'remove'==_0x9b2651&&'elementEnd'==_0x205e93['type'])continue;if(_0x3e7312&&-0x1==_0x3e7312['type']['indexOf']('Container')){'text'==_0x3e7312['type']&&(_0x3e7312[_0x9b2651]+='\x0a');continue;}let _0x5873a5;if(_0x5873a5='add'==_0x9b2651?_0x25ab9f['nextSibling']&&!this['_schema']['isObject'](_0x25ab9f['nextSibling'])?_0x25ab9f['nextSibling']:null:_0x25ab9f['previousSibling']&&!this['_schema']['isObject'](_0x25ab9f['previousSibling'])?_0x25ab9f['previousSibling']:null,_0x25ab9f['isEmpty']||_0x5873a5&&_0x5873a5['isEmpty']){const _0x59674c=_0x5873a5&&_0x5873a5['isEmpty']?_0x5873a5:_0x25ab9f;_0x3e7312&&_0x3e7312['type']==_0x9b2651+'EmptyContainer'&&_0x3e7312['element']['name']==_0x59674c['name']?_0x3e7312['quantity']++:_0x436cee['push']({'type':_0x9b2651+'EmptyContainer','element':_0x59674c,'quantity':0x1});}else _0x436cee['push']({'type':_0x9b2651+'Container','element':_0x25ab9f});}}}}}['_resolveDescriptionItems'](_0x20f5c3){const _0x18a50d=this['_locale'],_0x450490=[],_0x23cc15=[],_0x32502a=[];for(const _0xf1cdab of _0x20f5c3)switch(_0xf1cdab['type']){case'text':if(_0xf1cdab['add']=_0xf1cdab['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xf1cdab['remove']=_0xf1cdab['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xf1cdab['add']&&''!=_0xf1cdab['remove']){_0x450490['push']({'type':'replace','content':At(_0x18a50d,'REPLACE_TEXT',['\x22'+_0xf1cdab['remove']+'\x22','\x22'+_0xf1cdab['add']+'\x22'])});continue;}if(null!=_0xf1cdab['add']['match'](/^ +$/)){_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Insert:*\x20%0',At(_0x18a50d,'ELEMENT_SPACE',_0xf1cdab['add']['length']))});continue;}if(null!=_0xf1cdab['remove']['match'](/^ +$/)){_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Remove:*\x20%0',At(_0x18a50d,'ELEMENT_SPACE',_0xf1cdab['remove']['length']))});continue;}if(''!=_0xf1cdab['add']){_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Insert:*\x20%0','\x22'+_0xf1cdab['add']+'\x22')});continue;}_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Remove:*\x20%0','\x22'+_0xf1cdab['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Insert:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Remove:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'addContainer':_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Split:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'removeContainer':_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Merge:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'addFormat':_0x23cc15['push'](_0xf1cdab['key']);continue;case'removeFormat':_0x32502a['push'](_0xf1cdab['key']);continue;default:_0x450490['push'](_0xf1cdab);}if(_0x23cc15['length']){const _0x35aa17=_0x23cc15['map'](_0x1cd3a6=>this['_attributeLabels']['has'](_0x1cd3a6)?this['_attributeLabels']['get'](_0x1cd3a6):_0x1cd3a6)['join'](',\x20');_0x450490['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x35aa17)});}if(_0x32502a['length']){const _0x3efdb6=_0x32502a['map'](_0x47037d=>this['_attributeLabels']['has'](_0x47037d)?this['_attributeLabels']['get'](_0x47037d):_0x47037d)['join'](',\x20');_0x450490['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x3efdb6)});}return _0x450490;}['_handleCustomCallbackDescription'](_0x211686){for(const _0x2c62a4 of this['_customCallbacks']){const _0xa2e742=_0x2c62a4(_0x211686);if(_0xa2e742&&'type'in _0xa2e742)return _0xa2e742;}}['_handleAttributeSuggestionDescription'](_0x691d4f,_0x3d5943){const _0x2b01db=_0x3d5943['data'],_0x1c2258=void 0x0===_0x2b01db['newValue']?'removeFormat':'addFormat';_0x691d4f['push']({'type':_0x1c2258,'key':_0x2b01db['key']});}['_handleRenameSuggestionDescription'](_0x39a47c,_0x459401){_0x39a47c['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x459401['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x53c151,_0x4dc1ce,_0x15a3c9){if(this['_addDescriptionItems'](_0x53c151,_0x4dc1ce),_0x15a3c9&&_0x15a3c9['getFirstRange']()&&!_0x4dc1ce['getFirstRange']()['end']['isEqual'](_0x15a3c9['getFirstRange']()['start'])){const _0x560f07=_0x53c151[_0x53c151['length']-0x1],_0x48eeb0='insertion'==_0x4dc1ce['type']?'add':'remove';_0x560f07&&'text'==_0x560f07['type']&&(_0x560f07[_0x48eeb0]+='\x0a');}}}class Ct extends _0x55ebc7{['afterInit'](){const _0x44ba83=this['editor'],_0x23fbe7=_0x44ba83['plugins']['get']('TrackChangesEditing');_0x44ba83['commands']['get']('showAIAssistant')&&_0x23fbe7['enableCommand']('showAIAssistant');}}class yt extends _0x55ebc7{['afterInit'](){const _0x3546f4=this['editor'],_0x5dc440=_0x3546f4['plugins']['get']('TrackChangesEditing');_0x3546f4['commands']['get']('toggleAi')&&_0x5dc440['enableCommand']('toggleAi');}}class Nt extends _0x55ebc7{['afterInit'](){const _0x16ac6c=this['editor'],_0x2d7a6f=_0x16ac6c['plugins']['get']('TrackChangesEditing');_0x16ac6c['commands']['get']('aiQuickAction')&&_0x2d7a6f['enableCommand']('aiQuickAction');}}class Rt extends _0x55ebc7{['afterInit'](){const _0x115cd5=this['editor'],_0x45a344=_0x115cd5['locale'];if(!_0x115cd5['plugins']['has']('AlignmentEditing'))return;const _0x3262fe=_0x115cd5['plugins']['get']('TrackChangesEditing');_0x3262fe['enableDefaultAttributesIntegration']('alignment'),_0x3262fe['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x45a344,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17bc23=this['editor'],_0x37c011=_0x17bc23['locale'];_0x17bc23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d44d5=>{if('formatBlock'!=_0x3d44d5['type'])return;const {data:_0x30caa3}=_0x3d44d5;if(_0x30caa3&&'alignment'==_0x30caa3['commandName']){const _0x6917ce=_0x30caa3['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x37c011,'*Format:*\x20%0',function(_0x5019fe){switch(_0x5019fe){case'left':return At(_0x37c011,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x37c011,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x37c011,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x37c011,'FORMAT_JUSTIFY_TEXT');}}(_0x6917ce))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x55ebc7{['afterInit'](){const _0x316358=this['editor'],_0x56b1a9=_0x316358['plugins']['get']('TrackChangesEditing'),_0x49dc2=_0x316358['locale'];for(const _0x3d4b56 of St){if(!_0x316358['plugins']['has'](_0x3d4b56))continue;const _0x455d0e=_0x3d4b56['slice'](0x0,-0x7)['toLowerCase'](),_0x21c5ff='FORMAT_'+_0x455d0e['toUpperCase']();_0x56b1a9['enableDefaultAttributesIntegration'](_0x455d0e),_0x56b1a9['descriptionFactory']['registerAttributeLabel'](_0x455d0e,At(_0x49dc2,_0x21c5ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcd0ca9=this['editor'],_0x306300=_0xcd0ca9['locale'],_0x286a94=_0xcd0ca9['plugins']['get']('TrackChangesEditing');function _0x2eeaa3(_0xc7ecfd,_0x2d346a){_0x286a94['descriptionFactory']['registerDescriptionCallback'](_0x1a5118=>{if('formatInline'!=_0x1a5118['type'])return;const {data:_0x2f580b}=_0x1a5118;return _0x2f580b&&_0x2f580b['commandName']===_0xc7ecfd?_0x2f580b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x306300,'*Format:*\x20%0',_0x2d346a)}:{'type':'format','content':At(_0x306300,'*Remove\x20format:*\x20%0',_0x2d346a)}:void 0x0;});}_0x2eeaa3('bold',At(_0x306300,'FORMAT_BOLD')),_0x2eeaa3('italic',At(_0x306300,'FORMAT_ITALIC')),_0x2eeaa3('underline',At(_0x306300,'FORMAT_UNDERLINE')),_0x2eeaa3('code',At(_0x306300,'FORMAT_CODE')),_0x2eeaa3('strikethrough',At(_0x306300,'FORMAT_STRIKETHROUGH')),_0x2eeaa3('subscript',At(_0x306300,'FORMAT_SUBSCRIPT')),_0x2eeaa3('superscript',At(_0x306300,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x55ebc7{['afterInit'](){const _0xc5e561=this['editor'],_0xd64983=_0xc5e561['locale'];if(!_0xc5e561['plugins']['has']('BlockQuoteEditing'))return;const _0x5b22d8=_0xc5e561['plugins']['get']('TrackChangesEditing'),_0x2be51a=this['editor']['commands']['get']('blockQuote');_0x5b22d8['enableCommand']('blockQuote',(_0x1798cd,_0x477d43={})=>{const _0x1c6086=this['editor']['model']['document']['selection'],_0x183ff7=_0x477d43&&void 0x0!==_0x477d43['forceValue']?_0x477d43['forceValue']:!_0x2be51a['value'];let _0x1a5550=[];if(_0x183ff7){const _0x410e1c=Array['from'](_0x1c6086['getSelectedBlocks']())['filter'](_0x2b22be=>wt(_0x2b22be)||function(_0x4f3535,_0x6d95b8){const _0x2bddca=_0x6d95b8['checkChild'](_0x4f3535['parent'],'blockQuote'),_0x470d0d=_0x6d95b8['checkChild'](['$root','blockQuote'],_0x4f3535);return _0x2bddca&&_0x470d0d;}(_0x2b22be,this['editor']['model']['schema']));_0x1a5550=Tt(_0x410e1c,_0xc5e561['model']);}else{const _0x22865f=Array['from'](_0x1c6086['getSelectedBlocks']())['filter'](_0x2a2da7=>wt(_0x2a2da7));_0x1a5550=Tt(_0x22865f,_0xc5e561['model']);}_0xc5e561['model']['change'](()=>{for(const _0x2d8dcc of _0x1a5550)_0x5b22d8['markBlockFormat'](_0x2d8dcc,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x183ff7}]});});}),_0x5b22d8['descriptionFactory']['registerDescriptionCallback'](_0x1ca9f2=>{const {data:_0x6a3131}=_0x1ca9f2;if(_0x6a3131&&'blockQuote'==_0x6a3131['commandName']){const _0x237b2d=At(_0xd64983,'ELEMENT_BLOCK_QUOTE');return _0x6a3131['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xd64983,'*Set\x20format:*\x20%0',_0x237b2d)}:{'type':'format','content':At(_0xd64983,'*Remove\x20format:*\x20%0',_0x237b2d)};}});}}function wt(_0x3409f4){return'blockQuote'==_0x3409f4['parent']['name'];}class Bt extends _0x55ebc7{['afterInit'](){const _0x1060d3=this['editor'],_0x50371d=_0x1060d3['locale'],_0x2f993b=_0x1060d3['plugins']['get']('TrackChangesEditing');_0x1060d3['plugins']['has']('BookmarkEditing')&&(_0x2f993b['enableCommand']('insertBookmark'),_0x2f993b['enableDefaultAttributesIntegration']('updateBookmark'),_0x2f993b['descriptionFactory']['registerDescriptionCallback'](_0xdc1448=>{if('insertion'!=_0xdc1448['type']&&'deletion'!=_0xdc1448['type']&&'attribute'!=_0xdc1448['type'])return;const _0x5c5a48=_0xdc1448['getContainedElement']();if(null==_0x5c5a48)return;if(!_0x5c5a48['is']('element','bookmark'))return;const _0x64c262=_0x5c5a48['getAttribute']('bookmarkId');if('insertion'==_0xdc1448['type'])return{'type':'insertion','content':At(_0x50371d,'*Insert:*\x20%0','\x22'+_0x64c262+'\x22\x20'+At(_0x50371d,'ELEMENT_BOOKMARK'))};if('deletion'==_0xdc1448['type'])return{'type':'deletion','content':At(_0x50371d,'*Remove:*\x20%0','\x22'+_0x64c262+'\x22\x20'+At(_0x50371d,'ELEMENT_BOOKMARK'))};const {data:_0x34622d}=_0xdc1448;if(!_0x34622d||'bookmarkId'!=_0x34622d['key'])return;return{'type':'format','content':At(_0x50371d,'*Set\x20bookmark:*\x20%0','\x22'+_0x34622d['newValue']+'\x22')};}));}}class Ft extends _0x55ebc7{['afterInit'](){const _0xa81bc=this['editor'];_0xa81bc['plugins']['has']('CaseChange')&&(_0xa81bc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa81bc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa81bc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x55ebc7{['afterInit'](){const _0x576cb8=this['editor'];_0x576cb8['commands']['get']('ckbox')&&_0x576cb8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x55ebc7{['afterInit'](){const _0x1fc13d=this['editor'];if(!_0x1fc13d['plugins']['has']('CodeBlock'))return;const _0x308608=_0x1fc13d['plugins']['get']('TrackChangesEditing'),_0x5d35a3=_0x1fc13d['locale'],_0xae6ab2=_0x1fc13d['config']['get']('codeBlock')['languages'],_0x3f1a27=_0x1fc13d['commands']['get']('codeBlock');_0x308608['enableCommand']('indentCodeBlock'),_0x308608['enableCommand']('outdentCodeBlock'),_0x308608['enableCommand']('codeBlock',(_0x5d30d7,_0x6eab07={})=>{const _0x19ad5f=_0x1fc13d['model'],_0x56ff4c=_0x1fc13d['model']['document']['selection'],_0x5d68ba=_0x6eab07&&void 0x0!==_0x6eab07['forceValue']?_0x6eab07['forceValue']:!_0x3f1a27['value'];let _0xec3fd1;_0x6eab07['language']||(_0x6eab07['language']=_0xae6ab2[0x0]['language']),_0xec3fd1=_0x5d68ba?Array['from'](_0x56ff4c['getSelectedBlocks']())['filter'](_0xe581d3=>xt(_0xe581d3)||function(_0x31bb7e,_0x23791f){if(_0x31bb7e['is']('rootElement')||_0x23791f['isLimit'](_0x31bb7e))return!0x1;return _0x23791f['checkChild'](_0x31bb7e['parent'],'codeBlock');}(_0xe581d3,_0x19ad5f['schema'])):Array['from'](_0x56ff4c['getSelectedBlocks']())['filter'](_0x55b65a=>xt(_0x55b65a));const _0x3b250b=Tt(_0xec3fd1,_0x19ad5f);_0x19ad5f['change'](()=>{for(const _0x42aace of _0x3b250b)_0x308608['markBlockFormat'](_0x42aace,{'commandName':'codeBlock','commandParams':[{..._0x6eab07,'forceValue':_0x5d68ba}],'formatGroupId':'blockName'});});}),(_0x308608['descriptionFactory']['registerElementLabel']('codeBlock',_0x22127a=>At(_0x5d35a3,'ELEMENT_CODE_BLOCK',_0x22127a)),_0x308608['descriptionFactory']['registerDescriptionCallback'](_0xcb340c=>{if('formatBlock'!=_0xcb340c['type'])return;const _0x613769=_0x5d35a3['t'],{data:_0x15647d}=_0xcb340c;if(!_0x15647d||'codeBlock'!=_0x15647d['commandName'])return;const _0x17b2a3=_0x15647d['commandParams'][0x0]['language'],_0x3a3578=_0x613769(_0xae6ab2['find'](_0x13242f=>_0x13242f['language']===_0x17b2a3)['label'])['toLowerCase']();return _0x15647d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5d35a3,'*Set\x20format:*\x20%0',At(_0x5d35a3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3a3578+')')}:{'type':'format','content':At(_0x5d35a3,'*Remove\x20format:*\x20%0',At(_0x5d35a3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x146515){return'codeBlock'==_0x146515['name'];}class Pt extends _0x55ebc7{['afterInit'](){const _0x1a6df7=this['editor'];if(!_0x1a6df7['plugins']['has']('CommentsEditing'))return;_0x1a6df7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x55ebc7{static get['requires'](){return[at];}['init'](){const _0x3ec3b5=this['editor'],_0x13293a=_0x3ec3b5['plugins']['get']('TrackChangesEditing');_0x13293a['enableCommand']('delete');const _0x308f72=_0x3ec3b5['commands']['get']('deleteForward');_0x13293a['enableCommand']('deleteForward',(_0x2b3dd1,_0x535906={})=>{const _0x35f15d=_0x3ec3b5['model']['createSelection'](_0x3ec3b5['model']['document']['selection']);_0x35f15d['isCollapsed']&&_0x3ec3b5['model']['modifySelection'](_0x35f15d,{'direction':'forward','unit':_0x535906['unit']});const _0x3b2b1e=_0x35f15d['getFirstRange'](),_0x28283b=_0x3e26ed['fromRange'](_0x3b2b1e);let _0x1e9f55;_0x2b3dd1(_0x535906),_0x1e9f55='$graveyard'==_0x28283b['root']['rootName']?_0x3ec3b5['model']['createRange'](_0x3b2b1e['start']):_0x3ec3b5['model']['createRange'](_0x28283b['start'],_0x28283b['end']),_0x28283b['detach'](),_0x3ec3b5['model']['enqueueChange'](_0x308f72['buffer']['batch'],_0x5f42cb=>{_0x308f72['buffer']['lock'](),_0x5f42cb['setSelection'](_0x5f42cb['createRange'](_0x1e9f55['end'])),_0x308f72['buffer']['unlock']();});});}}class Gt extends _0x55ebc7{['afterInit'](){const _0xffb392=this['editor'];if(!_0xffb392['plugins']['has']('ListEditing'))return;const _0x5da35d=_0xffb392['locale'],_0x39c537=_0xffb392['plugins']['get']('TrackChangesEditing'),_0x599f7d=_0xffb392['plugins']['has']('TodoListEditing'),_0x412005=!!_0xffb392['config']['get']('list.multiBlock');function _0x229d69(_0x5d1bea){return{'type':'format','content':''+At(_0x5da35d,'*Set\x20format:*\x20%0',_0x5d1bea)};}function _0x517a3(_0x318806){return{'type':'format','content':''+At(_0x5da35d,'*Remove\x20format:*\x20%0',_0x318806)};}_0x39c537['enableDefaultAttributesIntegration']('numberedList'),_0x39c537['enableDefaultAttributesIntegration']('bulletedList'),_0x39c537['enableDefaultAttributesIntegration']('customNumberedList'),_0x39c537['enableDefaultAttributesIntegration']('customBulletedList'),_0x39c537['enableDefaultAttributesIntegration']('indentList'),_0x39c537['enableDefaultAttributesIntegration']('outdentList'),_0x39c537['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39c537['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x412005&&(_0x39c537['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39c537['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x599f7d&&(_0x39c537['enableDefaultAttributesIntegration']('todoList'),_0x39c537['enableDefaultAttributesIntegration']('checkTodoList'),_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x544e40=>{const {data:_0x14da99}=_0x544e40;if(_0x14da99&&'todoListChecked'==_0x14da99['key'])return{'type':'format','content':_0x14da99['newValue']?At(_0x5da35d,'*Check\x20item*'):At(_0x5da35d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c7bff=>{if(_0x3c7bff['batch']['isUndo'])return!0x1;let _0x21798b=!0x1;const _0x277aa1=_0x39c537['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18e569=>'todoListChecked'===_0x39c537['_getAttributeKey'](_0x18e569));for(const _0x198772 of _0x277aa1){'todo'!=_0x198772['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39c537['_findSuggestions'](_0x198772['getFirstRange'](),'attribute')['find'](_0x3dc037=>'listType'===_0x39c537['_getAttributeKey'](_0x3dc037['suggestion']))||(_0x3c7bff['removeMarker'](_0x198772['getFirstMarker']()),_0x21798b=!0x0));}return _0x21798b;})),_0x39c537['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5da35d,'FORMAT_INDENT'));const _0x1f283c={'type':'format','content':''};_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x77e69=>{const {data:_0x4cb9f9}=_0x77e69;if(!_0x4cb9f9||'listType'!=_0x4cb9f9['key'])return;let _0x4ecdc6=_0x77e69['head'];for(;_0x4ecdc6;){if(_0x4ecdc6['data']&&(('listStyle'==_0x4ecdc6['data']['key']||'listMarkerStyle'==_0x4ecdc6['data']['key'])&&(_0x4ecdc6['data']['newValue']&&'default'!=_0x4ecdc6['data']['newValue']||'default'!=_0x4ecdc6['data']['oldValue']&&!_0x4cb9f9['newValue'])||!_0x412005&&_0x4ecdc6['data']['key']==Ke))return _0x1f283c;_0x4ecdc6=_0x4ecdc6['next'];}if(null==_0x4cb9f9['newValue'])switch(_0x4cb9f9['oldValue']){case'bulleted':return _0x517a3(At(_0x5da35d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x517a3(At(_0x5da35d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x517a3(At(_0x5da35d,'ELEMENT_TODO_LIST'));}switch(_0x4cb9f9['newValue']){case'bulleted':return _0x229d69(At(_0x5da35d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x229d69(At(_0x5da35d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x229d69(At(_0x5da35d,'ELEMENT_TODO_LIST'));}}),_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x5698cd=>{const {data:_0x2ca9ed}=_0x5698cd;if(_0x2ca9ed&&'listIndent'==_0x2ca9ed['key'])return null==_0x2ca9ed['newValue']||null==_0x2ca9ed['oldValue']&&0x0==_0x2ca9ed['newValue']?_0x1f283c:void 0x0;}),_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x1b7a85=>{if('attribute'!=_0x1b7a85['type'])return;const {data:_0x5ab6b6}=_0x1b7a85;if(!_0x5ab6b6||'listItemId'!=_0x5ab6b6['key'])return;const _0x4adc2e=Ht(_0x1b7a85);return'newValue'==_0x4adc2e?{'type':'format','content':At(_0x5da35d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4adc2e?{'type':'format','content':At(_0x5da35d,'*Split:*\x20list\x20item')}:_0x1f283c;}),_0xffb392['model']['document']['registerPostFixer'](_0xaca644=>this['listItemIdFixer'](_0xaca644)),_0xffb392['model']['document']['registerPostFixer'](_0x12cb34=>this['noTrackChangesFixer'](_0x12cb34)),_0xffb392['model']['document']['on']('change:data',(_0x53eff6,_0x259335)=>{if(_0x259335['isUndo']||!_0x259335['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17a682){if(_0x17a682['batch']['isUndo']||!_0x17a682['batch']['isLocal'])return!0x1;let _0x117708=!0x1;const _0x3cb0f4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5af947=>_0x5af947['data']&&'listItemId'==_0x5af947['data']['key'])['filter'](_0x561580=>_0x561580['data']['newValue']&&_0x561580['data']['oldValue']);for(const _0xf96a96 of _0x3cb0f4)Ht(_0xf96a96)||(_0x17a682['removeMarker'](_0xf96a96['getFirstMarker']()),_0x117708=!0x0);return _0x117708;}['noTrackChangesFixer'](_0x29d2f4){if(_0x29d2f4['batch']['isUndo']||!_0x29d2f4['batch']['isLocal'])return!0x1;const _0x8cdcd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8cdcd['trackChangesCommand']['value'])return!0x1;let _0x146456=!0x1;const _0x15ac67=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x21b849=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5ad59b=>'attribute'==_0x5ad59b['type'])['filter'](_0x327c57=>_0x15ac67['includes'](_0x327c57['attributeKey']));if(0x0==_0x21b849['length'])return _0x146456;for(const _0x28da21 of _0x21b849){const _0x214b0=_0x8cdcd['_findSuggestions'](_0x28da21['range'],'attribute')['filter'](_0x311870=>!_0x311870['meta']['isNextTo'])['map'](_0x582fa6=>_0x582fa6['suggestion'])['filter'](_0x627ddc=>{const _0x48b475=_0x8cdcd['_getAttributeKey'](_0x627ddc);return _0x15ac67['includes'](_0x48b475);});if(_0x214b0['length']){for(const _0x48872b of _0x214b0)_0x29d2f4['removeMarker'](_0x48872b['getFirstMarker']());_0x146456=!0x0;}}return _0x146456;}['assureChains'](){const _0x2b4f46=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34076e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x14b908;const _0x2a7d7f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x568820=>{if(_0x568820['data']['oldRange']||!_0x568820['data']['newRange'])return null;if(!_0x568820['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x393e91}=_0x413c95(_0x568820['name']);if(!_0x2b4f46['hasSuggestion'](_0x393e91))return null;const _0x23a44f=_0x2b4f46['getSuggestion'](_0x393e91);return _0x34076e['includes'](_0x23a44f['data']['key']);})['map'](_0x2fa635=>{const {id:_0x525aa5}=_0x413c95(_0x2fa635['name']),_0x5e1009=_0x2b4f46['getSuggestion'](_0x525aa5);return _0x14b908=_0x5e1009['attributes']['groupId'],_0x5e1009['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a7d7f['size'])return;const _0x509af7=_0x2b4f46['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f7bbe=>'attribute'==_0x4f7bbe['type']&&_0x4f7bbe['data']&&_0x34076e['includes'](_0x4f7bbe['data']['key'])&&_0x4f7bbe['attributes']['groupId']!=_0x14b908)['map'](_0x430cd8=>({'listItem':_0x430cd8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x430cd8['attributes']['groupId']})),_0x75719f=new Set();for(const {groupId:_0x14329c,listItem:_0x12afa1}of _0x509af7)_0x2a7d7f['has'](_0x12afa1)&&_0x75719f['add'](_0x14329c);for(const _0x3e9c9d of _0x2b4f46['getSuggestions']())_0x75719f['has'](_0x3e9c9d['attributes']['groupId'])&&_0x3e9c9d['setAttribute']('groupId',_0x14b908);}['_supportLegacySuggestions'](){const _0x375709=this['editor'],_0x8aeb3d=_0x375709['locale'],_0x98c6ab=_0x375709['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x98c6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x25d40c,_0x338fce){const _0x44d47c=[];for(let _0x11d055 of _0x25d40c)_0x11d055['start']['nodeAfter']===_0x11d055['end']['parent']&&(_0x11d055=_0x375709['model']['createRange'](_0x375709['model']['createPositionAt'](_0x11d055['start']['nodeAfter'],0x0))),_0x44d47c['push'](_0x11d055);_0x375709['model']['change'](_0x34db73=>{const _0x17775b=_0x375709['model']['document']['selection'],_0x5c6d7f=Array['from'](_0x17775b['getRanges']())['map'](_0x403a5a=>_0x3e26ed['fromRange'](_0x403a5a));_0x34db73['setSelection'](_0x44d47c),_0x375709['commands']['get'](_0x338fce['commandName'])['refresh'](),_0x338fce['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x375709['execute'](_0x338fce['commandName'],..._0x338fce['commandParams']),_0x34db73['setSelection'](_0x5c6d7f);for(const _0x49f7c3 of _0x5c6d7f)_0x49f7c3['detach']();});}),_0x98c6ab['descriptionFactory']['registerElementLabel'](function(_0x3c9cfe){const _0x28469b=!_0x375709['model']['schema']['isObject'](_0x3c9cfe),_0x18c124=_0x3c9cfe['previousSibling'],_0x10ce09=_0x3c9cfe['nextSibling'],_0x3e6eb5=_0x3c9cfe['getAttribute']('listItemId'),_0x4daa9b=!_0x18c124||_0x18c124['getAttribute']('listItemId')!==_0x3e6eb5,_0x27dab7=!_0x10ce09||_0x10ce09['getAttribute']('listItemId')!==_0x3e6eb5;return _0x28469b&&Boolean(_0x3e6eb5)&&_0x4daa9b&&_0x27dab7;},_0x1affac=>At(_0x8aeb3d,'ELEMENT_LIST_ITEM',_0x1affac));}['_registerLegacyDescription'](){const _0x46d4f2=this['editor'],_0x496ed2=_0x46d4f2['locale'];function _0x3e508b(_0x712a71){const _0x4f819b=_0x46d4f2['commands']['get']('bulletedList')['value'],_0x7b0f3b=_0x46d4f2['commands']['get']('numberedList')['value'];return'numberedList'===_0x712a71?_0x4f819b:_0x7b0f3b;}_0x46d4f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x93ba4){if('formatBlock'!=_0x93ba4['type'])return;const {data:_0x53b8d2}=_0x93ba4;if(!_0x53b8d2)return;let _0x56c7a7,_0x10964e,_0x16625a,_0x5f22ed;switch(_0x53b8d2['commandName']){case'bulletedList':_0x16625a=_0x53b8d2['commandParams'][0x0]['forceValue'],_0x5f22ed=_0x3e508b(_0x53b8d2['commandName']),_0x56c7a7=_0x16625a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f22ed&&_0x46d4f2['config']['get']('list.multiBlock')||(_0x56c7a7='*Change\x20to:*\x20%0'),_0x10964e={'type':'format','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x16625a=_0x53b8d2['commandParams'][0x0]['forceValue'],_0x5f22ed=_0x3e508b(_0x53b8d2['commandName']),_0x56c7a7=_0x16625a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f22ed&&_0x46d4f2['config']['get']('list.multiBlock')||(_0x56c7a7='*Change\x20to:*\x20%0'),_0x10964e={'type':'format','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x56c7a7='*Indent:*\x20%0',_0x10964e={'type':'format','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x56c7a7=function(_0x3763c0){const _0x7a511f=_0x3763c0['getFirstRange']();let _0x550090=_0x7a511f['start']['nodeAfter'];for(;_0x550090&&_0x7a511f['containsItem'](_0x550090);){if(_0x550090['getAttribute']('listIndent')>0x0)return!0x1;_0x550090=_0x550090['nextSibling'];}return!0x0;}(_0x93ba4)?At(_0x496ed2,'*Format:*\x20remove\x20from\x20%0',At(_0x496ed2,function(_0x5907e0){return'ELEMENT_'+_0x5907e0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x93ba4))):At(_0x496ed2,'*Outdent:*\x20%0',At(_0x496ed2,'ELEMENT_LIST_ITEM')),_0x10964e={'type':'format','content':_0x56c7a7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x53b8d2['multipleBlocks']&&(_0x56c7a7='*Merge:*\x20%0',_0x10964e={'type':'deletion','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_LIST_ITEM'))});}return _0x10964e;});}}function Ht(_0x4e1045){let _0x492db3=_0x4e1045['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x492db3;){const _0x4ca3f0=_0x492db3['getAttribute']('listItemId');if(!_0x4ca3f0)return!0x1;if(_0x4ca3f0==_0x4e1045['data']['newValue'])return'newValue';if(_0x4ca3f0==_0x4e1045['data']['oldValue'])return'oldValue';_0x492db3=_0x492db3['previousSibling'];}return!0x1;}class $t extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x8b797a=this['editor']['config']['get']('list.properties'),_0x399f14=this['editor']['plugins']['get']('TrackChangesEditing');_0x8b797a['styles']&&_0x399f14['enableDefaultAttributesIntegration']('listStyle'),_0x8b797a['reversed']&&_0x399f14['enableDefaultAttributesIntegration']('listReversed'),_0x8b797a['startIndex']&&_0x399f14['enableDefaultAttributesIntegration']('listStart');const _0x1bd02e={'type':'format','content':''};_0x399f14['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf2786f=this['editor']['locale'];_0x399f14['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0xf2786f,'FORMAT_LIST_REVERSED')),_0x399f14['descriptionFactory']['registerDescriptionCallback'](_0x1097ea=>{const {data:_0x2290e6}=_0x1097ea;if(_0x2290e6&&'listReversed'==_0x2290e6['key'])return null==_0x2290e6['newValue']||0x0==_0x2290e6['newValue']&&null==_0x2290e6['oldValue']?_0x1bd02e:void 0x0;}),_0x399f14['descriptionFactory']['registerAttributeLabel']('listStart',At(_0xf2786f,'FORMAT_LIST_START')),_0x399f14['descriptionFactory']['registerDescriptionCallback'](_0x4e111c=>{const {data:_0x150242}=_0x4e111c;if(_0x150242&&'listStart'==_0x150242['key'])return null==_0x150242['newValue']||0x1==_0x150242['newValue']&&null==_0x150242['oldValue']?_0x1bd02e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x319194=>{if(_0x319194['batch']['isUndo'])return!0x1;let _0x95c14e=!0x1;const _0x725294=_0x399f14['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c17b1=>{const _0x48f7ad=_0x399f14['_getAttributeKey'](_0x1c17b1);return'listStart'==_0x48f7ad||'listReversed'==_0x48f7ad;});for(const _0x24a74a of _0x725294){const _0x2eef56=_0x24a74a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2eef56||'customNumbered'==_0x2eef56)continue;_0x399f14['_findSuggestions'](_0x24a74a['getFirstRange'](),'attribute')['find'](_0x529229=>'listType'==_0x399f14['_getAttributeKey'](_0x529229['suggestion']))||(_0x319194['removeMarker'](_0x24a74a['getFirstMarker']()),_0x95c14e=!0x0);}return _0x95c14e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x584ef0){const _0x58619d=this['editor']['locale'],{data:_0x2f71a7}=_0x584ef0,_0x2ed428={'type':'format','content':''};if(!_0x2f71a7||'listStyle'!=_0x2f71a7['key'])return;if(!_0x2f71a7['oldValue'])return'default'==_0x2f71a7['newValue']?_0x2ed428:{'type':'format','content':''+At(_0x58619d,'*Set\x20format:*\x20%0',At(_0x58619d,this['_getTranslationKeyForListStyle'](_0x2f71a7['newValue'])))};if(!_0x2f71a7['newValue']){if('default'==_0x2f71a7['oldValue'])return _0x2ed428;let _0x42ba45=_0x584ef0['head'];for(;_0x42ba45;){if(_0x42ba45['data']&&'listType'==_0x42ba45['data']['key']&&_0x42ba45['data']['newValue'])return _0x2ed428;_0x42ba45=_0x42ba45['next'];}return{'type':'format','content':''+At(_0x58619d,'*Remove\x20format:*\x20%0',At(_0x58619d,this['_getTranslationKeyForListStyle'](_0x2f71a7['oldValue'])))};}if('default'!=_0x2f71a7['newValue'])return{'type':'format','content':''+At(_0x58619d,'*Set\x20format:*\x20%0',At(_0x58619d,this['_getTranslationKeyForListStyle'](_0x2f71a7['newValue'])))};let _0x5d954a=_0x584ef0['head'];for(;_0x5d954a;){if(_0x5d954a['data']&&'listType'==_0x5d954a['data']['key']&&_0x5d954a['data']['newValue']&&_0x5d954a['data']['oldValue'])return _0x2ed428;_0x5d954a=_0x5d954a['next'];}return{'type':'format','content':At(_0x58619d,'*Set\x20format:*\x20%0',At(_0x58619d,'ELEMENT_'+_0x584ef0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x358e43=this['editor'],_0x93cc2b=_0x358e43['locale'];_0x358e43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c197d=>{if('formatBlock'!=_0x4c197d['type'])return;const {data:_0x285e2c}=_0x4c197d;if(!_0x285e2c)return;let _0x1d8c96,_0x1c5619;switch(_0x285e2c['commandName']){case'listStyle':_0x1d8c96='*Change\x20to:*\x20%0',_0x1c5619={'type':'format','content':At(_0x93cc2b,_0x1d8c96,At(_0x93cc2b,this['_getTranslationKeyForListStyle'](_0x285e2c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d8c96=_0x285e2c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c5619={'type':'format','content':At(_0x93cc2b,_0x1d8c96)};break;case'listStart':_0x1d8c96='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c5619={'type':'format','content':At(_0x93cc2b,_0x1d8c96,_0x285e2c['commandParams'][0x0]['startIndex'])};}return _0x1c5619;});}['_getTranslationKeyForListStyle'](_0x45dd63){return'ELEMENT_'+function(_0x24a9b8){if(Wt['includes'](_0x24a9b8))return'bulleted';if(Vt['includes'](_0x24a9b8))return'numbered';return null;}(_0x45dd63)['toUpperCase']()+'_LIST_'+_0x45dd63['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x55ebc7{['afterInit'](){const _0x32508f=this['editor'];_0x32508f['commands']['get']('emoji')&&_0x32508f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x55ebc7{static get['requires'](){return[lt];}['init'](){const _0x7e5134=this['editor'],_0x44dee5=_0x7e5134['plugins']['get']('TrackChangesEditing'),_0x486fda=_0x7e5134['commands']['get']('enter');_0x44dee5['enableCommand']('enter',()=>{_0x7e5134['model']['change'](_0x1cb74c=>{const _0x3e3a7d=_0x7e5134['model']['document']['selection'],_0x51656d=_0x3e3a7d['getFirstPosition'](),_0x4ebfdc=_0x3e26ed['fromRange'](_0x3e3a7d['getFirstRange']());if(_0x486fda['enterBlock'](_0x1cb74c)){const _0x19aa07=_0x7e5134['model']['createPositionAt'](_0x51656d['parent']['nextSibling'],0x0),_0x2fc3dd=_0x1cb74c['createRange'](_0x51656d,_0x19aa07);_0x44dee5['markInsertion'](_0x2fc3dd);}else _0x1cb74c['setSelection'](_0x1cb74c['createRange'](_0x4ebfdc['end']));_0x4ebfdc['detach'](),_0x486fda['fire']('afterExecute',{'writer':_0x1cb74c});});});}}class Kt extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4eb05d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eb05d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4eb05d['enableCommand']('findNext'),_0x4eb05d['enableCommand']('findPrevious'),_0x4eb05d['enableCommand']('replace'),_0x4eb05d['enableCommand']('replaceAll');}['handleFindCommand'](_0x8672b4,_0x1454a6,_0x3c3824={}){const _0x4b7b1e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x8672b4(_0x343f09=>{let _0x3e42de=('string'==typeof _0x1454a6?_0x4b7b1e['findByTextCallback'](_0x1454a6,_0x3c3824):_0x1454a6)(_0x343f09);Array['isArray'](_0x3e42de)&&(_0x3e42de={'results':_0x3e42de,'searchText':'string'==typeof _0x1454a6?_0x1454a6:''});const _0x543fd6=_0x3e42de['results']['filter'](_0x3f6e31=>!0x1===this['_isInDeletionRange'](_0x3f6e31,_0x343f09['item']));return{..._0x3e42de,'results':_0x543fd6};},_0x3c3824);}['_isInDeletionRange'](_0x1d531f,_0x153450){const _0x59df25=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x153450,_0x1d531f['start']),this['editor']['model']['createPositionAt'](_0x153450,_0x1d531f['end']));for(const _0x26ba61 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x59df25['getIntersection'](_0x26ba61['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x55ebc7{['afterInit'](){const _0xc8b9ae=this['editor']['locale'],_0x3f1d96=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ecf80,commandName:_0x25cb3b}of Xt)this['editor']['plugins']['has'](_0x1ecf80)&&_0x3f1d96['enableDefaultAttributesIntegration'](_0x25cb3b);_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0xc8b9ae,'FORMAT_FONT_SIZE')),_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0xc8b9ae,'FORMAT_FONT_FAMILY')),_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0xc8b9ae,'FORMAT_FONT_COLOR')),_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0xc8b9ae,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42409a=this['editor'],_0x399dee=_0x42409a['locale'];_0x42409a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a780=>{const _0x509950=_0x399dee['t'];if('formatInline'!=_0x19a780['type'])return;const {data:_0x35028f}=_0x19a780;if(null!=_0x35028f){if('fontSize'==_0x35028f['commandName']){const _0x38c3ec=_0x35028f['commandParams'][0x0]['value'];if(_0x38c3ec){const _0x204243=_0x509950(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x540e18=>_0x540e18['model']==_0x38c3ec)['title'])['toLowerCase']();return{'type':'format','content':At(_0x399dee,'*Set\x20font\x20size:*\x20%0',_0x204243)};}return{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x35028f['commandName']){const _0x359562=_0x35028f['commandParams'][0x0]['value'];return _0x359562?{'type':'format','content':At(_0x399dee,'*Set\x20font\x20family:*\x20%0',_0x359562)}:{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x35028f['commandName']){const _0x472d65=_0x35028f['commandParams'][0x0]['value'];if(_0x472d65){const _0xc7ddde=_0x2dde84(this['editor']['config']['get']('fontColor.colors'))['find'](_0x168705=>_0x168705['model']==_0x472d65);let _0x3d447a=_0x472d65,_0x1e1ca7='';return _0xc7ddde&&(_0x3d447a=_0xc7ddde['label'],_0x1e1ca7=_0x509950(_0x3d447a)['toLowerCase']()),{'type':'format','content':At(_0x399dee,'*Set\x20font\x20color:*\x20%0',_0x1e1ca7)['trim'](),'color':{'value':_0x472d65,'title':_0x1e1ca7||_0x3d447a}};}return{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x35028f['commandName']){const _0x5e3a02=_0x35028f['commandParams'][0x0]['value'];if(_0x5e3a02){const _0x2908cc=_0x2dde84(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x84f3b9=>_0x84f3b9['model']==_0x5e3a02);let _0x53b890=_0x5e3a02,_0xe45d98='';return _0x2908cc&&(_0x53b890=_0x2908cc['label'],_0xe45d98=_0x509950(_0x53b890)['toLowerCase']()),{'type':'format','content':At(_0x399dee,'*Set\x20font\x20background\x20color:*\x20%0',_0xe45d98)['trim'](),'color':{'value':_0x5e3a02,'title':_0xe45d98||_0x53b890}};}return{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x55ebc7{['afterInit'](){const {plugins:_0x51fb81}=this['editor'];_0x51fb81['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x51fb81['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xce4552,plugins:_0x5009cb,commands:_0x35e286}=this['editor'],_0x2f3cda=_0x5009cb['get']('TrackChangesEditing');_0x35e286['get']('footnotesStyle')&&_0x2f3cda['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35e286['get']('footnotesStart')&&_0x2f3cda['enableDefaultAttributesIntegration']('footnotesStart'),_0x2f3cda['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xce4552,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2f3cda['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xce4552,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x24f8e8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x15c080,commands:_0x68c254}=this['editor'];_0x68c254['get']('insertFootnote')&&_0x24f8e8['enableCommand']('insertFootnote'),_0x24f8e8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2c707e=>At(_0x15c080,'ELEMENT_FOOTNOTE_REF',_0x2c707e)),_0x24f8e8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4fb145=>At(_0x15c080,'ELEMENT_FOOTNOTE_DEFINITION',_0x4fb145)),_0x24f8e8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2e2edb=>At(_0x15c080,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2e2edb));}}class Qt extends _0x55ebc7{['afterInit'](){const _0x273e07=this['editor'],_0x5dbc42=_0x273e07['plugins']['get']('TrackChangesEditing'),_0x7317e=_0x273e07['commands']['get']('copyFormat'),_0x4770f4=_0x273e07['commands']['get']('pasteFormat');_0x7317e&&_0x4770f4&&(_0x5dbc42['enableDefaultAttributesIntegration']('pasteFormat'),_0x5dbc42['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4bed91=this['editor'],_0x20aeaa=_0x4bed91['locale'];_0x4bed91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f1ff0=>{if('formatBlock'!=_0x4f1ff0['type']&&'formatInline'!=_0x4f1ff0['type'])return;const {data:_0x5047c0}=_0x4f1ff0;if(_0x5047c0&&'pasteFormat'===_0x5047c0['commandName']){const _0x5763d5=[],_0x9878cc=_0x5047c0['commandParams'][0x0];for(const [_0xb86f89,_0x5389e2]of Object['entries'](_0x9878cc))_0x5763d5['push'](Zt(_0x4bed91,_0xb86f89,_0x5389e2));return _0x5763d5['length']?{'type':'format','content':At(_0x20aeaa,'*Set\x20format\x20to:*\x20%0',_0x5763d5['join'](',\x20'))}:{'type':'format','content':At(_0x20aeaa,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x5c397f,_0x3e7a83,_0x52162c){const _0x47ce36=_0x5c397f['locale']['t'],_0x34ca14=_0x3e7a83['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ecd59=_0x47ce36(_0x34ca14['charAt'](0x0)['toUpperCase']()+_0x34ca14['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x52162c)return _0x2ecd59;if('fontColor'===_0x3e7a83||'fontBackgroundColor'===_0x3e7a83){const _0x3f0b80=_0x2dde84(_0x5c397f['config']['get']('fontColor.colors'))['find'](_0x3a11dd=>_0x3a11dd['model']==_0x52162c);return _0x2ecd59+'\x20('+(_0x3f0b80?_0x47ce36(_0x3f0b80['label'])['toLowerCase']():_0x52162c)+')';}if('fontSize'===_0x3e7a83&&isNaN(parseFloat(_0x52162c))){const _0x12cec7=_0x5c397f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5c397f['config']['get']('fontSize.options'))['find'](_0x2439be=>_0x2439be['model']==_0x52162c);return _0x2ecd59+'\x20('+(_0x12cec7?_0x47ce36(_0x12cec7['title'])['toLowerCase']():_0x52162c)+')';}return _0x2ecd59+'\x20('+_0x52162c+')';}class Jt extends _0x55ebc7{['_headingOptions'];['afterInit'](){const _0x2393b9=this['editor'];if(!_0x2393b9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2393b9['config']['get']('heading.options');const _0x1e1648=_0x2393b9['locale'],_0x1f855f=_0x2393b9['plugins']['get']('TrackChangesEditing');_0x1f855f['enableDefaultAttributesIntegration']('heading');for(const _0x4c80b4 of this['_headingOptions'])'paragraph'!=_0x4c80b4['model']&&_0x1f855f['descriptionFactory']['registerElementLabel'](_0x4c80b4['model'],_0x5da449=>{const _0xa75c8a=this['_getHeadingLevel'](_0x4c80b4['model']);return null!==_0xa75c8a?_0x3f0564(_0x5da449,_0xa75c8a):_0x626719(_0x5da449,_0x4c80b4['title']);});function _0x3f0564(_0x211083,_0x3d05e8){return At(_0x1e1648,'ELEMENT_HEADING',[_0x211083,_0x3d05e8]);}function _0x626719(_0x5df9a6,_0x32d20e){return At(_0x1e1648,'ELEMENT_HEADING_CUSTOM',[_0x5df9a6,_0x32d20e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9d973=this['editor'],_0xf8a05=_0xa9d973['locale'];function _0x4da585(_0x389180,_0x12fce3){return At(_0xf8a05,'ELEMENT_HEADING_CUSTOM',[_0x389180,_0x12fce3]);}_0xa9d973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ba85=>{if('formatBlock'!=_0x13ba85['type'])return;const {data:_0x48b91d}=_0x13ba85;if(_0x48b91d&&'heading'==_0x48b91d['commandName']){const _0x275e2d=_0x48b91d['commandParams'][0x0]['value'],_0x48e4f2=this['_getHeadingLevel'](_0x275e2d);if(null!==_0x48e4f2)return{'type':'format','content':At(_0xf8a05,'*Change\x20to:*\x20%0',(_0x43a5ca=0x1,_0x5f2f6c=_0x48e4f2,At(_0xf8a05,'ELEMENT_HEADING',[_0x43a5ca,_0x5f2f6c])))};const _0x33022c=this['_headingOptions']['find'](_0x1efdf8=>_0x1efdf8['model']===_0x275e2d)['title'];return{'type':'format','content':At(_0xf8a05,'*Change\x20to:*\x20%0',_0x4da585(0x1,_0x33022c))};}var _0x43a5ca,_0x5f2f6c;});}['_getHeadingLevel'](_0x1baadb){const _0x5389bd=_0x1baadb['match'](/^heading(\d+)/);if(_0x5389bd)return _0x5389bd[0x1];const _0x4d3798=this['_headingOptions']?.['find'](_0x1594db=>_0x1594db['model']==_0x1baadb);if(_0x4d3798&&_0x4d3798['view']){const _0x4b5b89=_0x4d3798['view'],_0xcf7fe6=(_0x4b5b89['name']??_0x4b5b89)['match'](/^h(\d+)/);if(_0xcf7fe6)return _0xcf7fe6[0x1];}return null;}}class te extends _0x55ebc7{['afterInit'](){const _0x23f380=this['editor'];if(!_0x23f380['plugins']['has']('HighlightEditing'))return;const _0x42a29b=_0x23f380['plugins']['get']('TrackChangesEditing'),_0x2c502d=_0x23f380['locale'];_0x42a29b['enableDefaultAttributesIntegration']('highlight'),_0x42a29b['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x2c502d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30bcbd=this['editor'],_0x5a32ce=_0x30bcbd['locale'];_0x30bcbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a18ab=>{if('formatInline'!=_0x1a18ab['type'])return;const {data:_0x282559}=_0x1a18ab;if(_0x282559&&'highlight'==_0x282559['commandName']){const _0x934e8f=_0x5a32ce['t'],_0x1d7e45=_0x282559['commandParams'][0x0]['value'];if(_0x1d7e45){const _0x50e752=_0x30bcbd['config']['get']('highlight.options')['find'](_0x1f7a7e=>_0x1f7a7e['model']==_0x1d7e45),_0xeb9832=_0x934e8f(_0x50e752['title'])['toLowerCase']();return{'type':'format','content':At(_0x5a32ce,'*Set\x20highlight:*\x20%0',_0xeb9832),'color':{'value':_0x50e752['color'],'title':_0x50e752['title']}};}return{'type':'format','content':At(_0x5a32ce,'*Remove\x20highlight*',At(_0x5a32ce,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x55ebc7{['afterInit'](){const _0x4e9e41=this['editor'];if(!_0x4e9e41['plugins']['has']('HorizontalLineEditing'))return;_0x4e9e41['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5d2df5=_0x4e9e41['plugins']['get']('TrackChangesEditing'),_0x5d6eea=_0x4e9e41['locale'];_0x5d2df5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x69a3fe=>At(_0x5d6eea,'ELEMENT_HORIZONTAL_LINE',_0x69a3fe));}}class ne extends _0x55ebc7{['afterInit'](){const _0x1c22d7=this['editor'];if(!_0x1c22d7['plugins']['has']('HtmlEmbed'))return;const _0x2bfd25=_0x1c22d7['plugins']['get']('TrackChangesEditing'),_0x55d8a4=_0x1c22d7['locale'];_0x2bfd25['descriptionFactory']['registerElementLabel']('rawHtml',_0x2be421=>At(_0x55d8a4,'ELEMENT_HTML_EMBED',_0x2be421)),_0x2bfd25['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2bfd25['descriptionFactory']['registerDescriptionCallback'](_0x221976=>{if('attribute'!=_0x221976['type'])return;const {data:_0x5e43c2}=_0x221976;if(_0x5e43c2&&'value'==_0x5e43c2['key']&&_0x221976['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5604f6=At(_0x55d8a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x55d8a4,'*Change\x20%0\x20content*',_0x5604f6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2659db=this['editor'],_0x183e59=_0x2659db['locale'];_0x2659db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b0e15=>{if('formatBlock'!=_0x1b0e15['type'])return;const {data:_0x3e1ec4}=_0x1b0e15;if(_0x3e1ec4&&'htmlEmbed'==_0x3e1ec4['commandName']){const _0x1bd2e0=At(_0x183e59,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x183e59,'*Change\x20%0\x20content*',_0x1bd2e0)};}});}}class ie extends _0x55ebc7{['afterInit'](){const _0x38c654=this['editor'];if(!_0x38c654['plugins']['has']('ImageEditing'))return;const _0x2907e6=_0x38c654['plugins']['get']('TrackChangesEditing'),_0xbf28c6=_0x38c654['plugins']['get']('ImageUtils'),_0x5b25d7=_0x38c654['locale'];_0x2907e6['enableCommand']('insertImage'),_0x2907e6['descriptionFactory']['registerElementLabel']('imageBlock',_0x4fdf44=>At(_0x5b25d7,'ELEMENT_IMAGE',_0x4fdf44)),_0x2907e6['descriptionFactory']['registerElementLabel']('imageInline',_0x299d88=>At(_0x5b25d7,'ELEMENT_INLINE_IMAGE',_0x299d88)),_0x2907e6['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x5b25d7,'ELEMENT_CAPTION')),_0x38c654['plugins']['has']('ImageUploadEditing')&&_0x2907e6['enableCommand']('uploadImage'),_0x38c654['plugins']['has']('ImageBlockEditing')&&_0x38c654['plugins']['has']('ImageInlineEditing')&&(_0x2907e6['enableCommand']('imageTypeInline',(_0x40f6c2,_0x5db84c)=>{const _0x3b9f3c=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']);_0x38c654['model']['change'](()=>{_0x2907e6['markBlockFormat'](_0x3b9f3c,{'commandName':'imageTypeInline','commandParams':[_0x5db84c]},[],'convertBlockImageToInline');});}),_0x2907e6['enableCommand']('imageTypeBlock',(_0x3ebba3,_0x391621)=>{_0x38c654['model']['change'](_0x29e8f6=>{let _0xf415e0=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x58b507=_0x29e8f6['createRangeOn'](_0xf415e0);const _0x53a065=tt['fromPosition'](_0x58b507['start'],'toPrevious'),_0xd53fdd=tt['fromPosition'](_0x58b507['end'],'toNext');_0x2907e6['forceDefaultExecution'](()=>_0x3ebba3(_0x391621)),_0xf415e0=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x58b507=_0x29e8f6['createRangeOn'](_0xf415e0);const _0x228df7=_0x29e8f6['createRange'](_0x53a065,_0xd53fdd);_0x53a065['detach'](),_0xd53fdd['detach'](),_0x2907e6['markBlockFormat'](_0xf415e0,{'commandName':'imageTypeInline','commandParams':[_0x391621]},[],'convertInlineImageToBlock'),_0x228df7['start']['isBefore'](_0x58b507['start'])&&_0x2907e6['markInsertion'](_0x29e8f6['createRange'](_0x228df7['start'],_0x58b507['start']),'convertInlineImageToBlock'),_0x58b507['end']['isBefore'](_0x228df7['end'])&&_0x2907e6['markInsertion'](_0x29e8f6['createRange'](_0x58b507['end'],_0x228df7['end']),'convertInlineImageToBlock');});}),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2907e6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x975fcd])=>{const _0x5721c5=_0x2907e6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x11bf0b=_0x975fcd['start'],_0x31e99e=_0x975fcd['end'];const _0x1633da=_0x38c654['model']['schema']['getNearestSelectionRange'](_0x11bf0b,'backward'),_0x377d8e=_0x38c654['model']['schema']['getNearestSelectionRange'](_0x31e99e,'forward');_0x1633da['isCollapsed']&&(_0x11bf0b=_0x1633da['start']),_0x377d8e['isCollapsed']&&(_0x31e99e=_0x377d8e['end']),_0x5721c5([_0x38c654['model']['createRange'](_0x11bf0b,_0x31e99e)]);}),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf5aef6),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf5aef6)),_0x38c654['plugins']['has']('ImageCaptionEditing')&&(_0x2907e6['enableCommand']('toggleImageCaption',(_0x60ddfa,_0x5baa32)=>{const _0x1b5620=_0x38c654['plugins']['get']('ImageCaptionUtils');let _0x11aa7a=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x3b3f55=_0x1b5620['getCaptionFromImageModelElement'](_0x11aa7a);_0x38c654['model']['change'](()=>{if(_0x3b3f55)return void _0x2907e6['markDeletion'](_0x38c654['model']['createRangeOn'](_0x3b3f55));const _0x5dcfb4=_0xbf28c6['isBlockImage'](_0x11aa7a);_0x60ddfa(_0x5baa32),_0x11aa7a=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x3b3f55=_0x1b5620['getCaptionFromImageModelElement'](_0x11aa7a),_0x2907e6['markInsertion'](_0x38c654['model']['createRangeOn'](_0x3b3f55),_0x5dcfb4?null:'imageCaption');});}),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf5aef6));const _0x18f3bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd4bbb4(_0x2db653,_0x26433c){const _0x2d962c=_0x18f3bd['findIndex'](({type:_0x3a753b,subType:_0x357f5})=>_0x2db653['type']==_0x3a753b&&_0x2db653['subType']==_0x357f5),_0x45176e=_0x18f3bd['findIndex'](({type:_0x3c9450,subType:_0x295ad2})=>_0x26433c['type']==_0x3c9450&&_0x26433c['subType']==_0x295ad2);if(_0x2d962c<0x0||_0x45176e<0x0)return!0x1;const _0x47ccbd=_0x2db653['getFirstRange'](),_0x2cdd4f=_0x26433c['getFirstRange']();if((0x0==_0x2d962c||0x1==_0x2d962c)&&0x2==_0x45176e&&_0x47ccbd['isIntersecting'](_0x2cdd4f))return!0x0;if(0x2==_0x2d962c&&0x3==_0x45176e){const _0x15b165=_0x2907e6['_findSuggestions'](_0x47ccbd,'insertion')['filter'](({suggestion:_0x5be9e1,meta:_0x31c7d0})=>_0x31c7d0['isOwn']&&'convertInlineImageToBlock'==_0x5be9e1['subType']);if(_0x15b165['length']>0x1&&_0x2cdd4f['end']['isEqual'](_0x47ccbd['start']))return!0x0;if(0x1==_0x15b165['length']&&(_0x47ccbd['start']['isEqual'](_0x2cdd4f['end'])||_0x47ccbd['end']['isEqual'](_0x2cdd4f['start'])))return!0x0;}if(0x3==_0x2d962c&&0x3==_0x45176e&&_0x47ccbd['start']['isBefore'](_0x2cdd4f['start'])){const _0x521201=_0x47ccbd['end']['nodeAfter'],_0xcd79b2=_0x2cdd4f['start']['nodeBefore'];return _0xbf28c6['isBlockImage'](_0x521201)&&_0x521201===_0xcd79b2;}return!0x1;}function _0xf5aef6(_0x4e4be2,_0x3a9afb){return _0xd4bbb4(_0x4e4be2,_0x3a9afb)?[_0x4e4be2,_0x3a9afb]:_0xd4bbb4(_0x3a9afb,_0x4e4be2)?[_0x3a9afb,_0x4e4be2]:null;}_0x38c654['plugins']['has']('ImageResize')&&(_0x2907e6['enableDefaultAttributesIntegration']('resizeImage'),_0x2907e6['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x5b25d7,'FORMAT_IMAGE_SIZE'))),_0x38c654['plugins']['has']('ImageTextAlternativeEditing')&&_0x2907e6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x38c654['plugins']['has']('PictureEditing')&&_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x5ba353=>{if('attribute'!=_0x5ba353['type'])return;const {data:_0x2faa61}=_0x5ba353;return _0x2faa61&&'sources'==_0x2faa61['key']?{'type':'format','content':''}:void 0x0;}),_0x38c654['plugins']['has']('ImageSizeAttributes')&&_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x1077f0=>{if('attribute'!=_0x1077f0['type'])return;const {data:_0x5c265c}=_0x1077f0;return!_0x5c265c||'width'!=_0x5c265c['key']&&'height'!=_0x5c265c['key']?void 0x0:{'type':'format','content':''};}),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x33eb65=>{if(!!_0x18f3bd['find'](({type:_0x52c075,subType:_0x492f5f})=>_0x33eb65['type']==_0x52c075&&_0x33eb65['subType']==_0x492f5f))return _0x33eb65['previous']?{}:void 0x0;}),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x44423d=>{if('insertion'==_0x44423d['type']||'deletion'==_0x44423d['type']){const _0x504927=_0x44423d['getContainedElement']();if(_0x504927&&_0x504927['is']('element','caption'))return{'type':'insertion'==_0x44423d['type']?'addObject':'removeObject','element':_0x504927,'quantity':0x1};}}),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x58fd5f=>'formatBlock'==_0x58fd5f['type']&&'convertInlineImageToBlock'==_0x58fd5f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58fd5f['type']&&'convertBlockImageToInline'==_0x58fd5f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x27cae8=>{if('attribute'!=_0x27cae8['type'])return;const {data:_0x4b34a1}=_0x27cae8;if(!_0x4b34a1||'alt'!=_0x4b34a1['key'])return;const _0x50e97c=_0x4b34a1['newValue'];return _0x50e97c?{'type':'format','content':At(_0x5b25d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50e97c+'\x22')}:{'type':'format','content':At(_0x5b25d7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45a61=this['editor'],_0x11aec7=_0x45a61['locale'];_0x45a61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59074c=>{if('formatBlock'!=_0x59074c['type']&&'formatInline'!=_0x59074c['type'])return;const {data:_0x2897ad}=_0x59074c;if(_0x2897ad){if('imageTextAlternative'==_0x2897ad['commandName']){const _0x5a3bc0=_0x2897ad['commandParams'][0x0]['newValue'];return _0x5a3bc0?{'type':'format','content':At(_0x11aec7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a3bc0+'\x22')}:{'type':'format','content':At(_0x11aec7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2897ad['commandName']){const _0xbb6d76=_0x2897ad['commandParams'][0x0]['width'];return _0xbb6d76?{'type':'format','content':At(_0x11aec7,'*Set\x20image\x20width:*\x20%0',_0xbb6d76)}:{'type':'format','content':At(_0x11aec7,'*Reset\x20image\x20width*')};}}});}}class se extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa8943f=this['editor']['locale'],_0x550493=this['editor']['plugins']['get']('TrackChangesEditing');_0x550493['enableDefaultAttributesIntegration']('replaceImageSource'),_0x550493['descriptionFactory']['registerDescriptionCallback'](_0xc491e9=>{if('attribute'!=_0xc491e9['type'])return;const {data:_0x12ea94}=_0xc491e9;return _0x12ea94&&'src'==_0x12ea94['key']?_0x12ea94['newValue']&&_0x12ea94['oldValue']?{'type':'format','content':At(_0xa8943f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ac332=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ac332['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ac332['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ac332['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ac332['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f0dbc=this['editor'],_0x5382f4=_0x5f0dbc['locale'];_0x5f0dbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bd38b=>{if('formatBlock'!=_0x5bd38b['type']&&'formatInline'!=_0x5bd38b['type'])return;const {data:_0x3b427a}=_0x5bd38b;if(!_0x3b427a||'replaceImageSource'!=_0x3b427a['commandName'])return;return{'type':'format','content':At(_0x5382f4,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x55ebc7{['afterInit'](){const _0x230dd1=this['editor'];if(!_0x230dd1['plugins']['has']('ImageStyleEditing'))return;const _0x28c4ce=_0x230dd1['plugins']['get']('TrackChangesEditing'),_0x5a84bb=_0x230dd1['plugins']['get']('ImageUtils'),_0x2b5927={};_0x28c4ce['enableCommand']('imageStyle',(_0xc08c6a,_0x5872bb)=>{const _0x141790=_0x230dd1['plugins']['get']('Users')['me'],_0x7a1a26=_0x230dd1['commands']['get']('imageStyle');let _0xc2e573=_0x5a84bb['getClosestSelectedImageElement'](_0x230dd1['model']['document']['selection']),_0x257edd=_0x230dd1['model']['createRangeOn'](_0xc2e573),_0x4074d7=_0x7a1a26['value'];if(_0x4074d7==_0x5872bb['value'])return;const _0x7d42e1={'commandName':'imageStyle','commandParams':[_0x5872bb],'formatGroupId':_0x493bce()};_0x230dd1['model']['change'](()=>{if(_0x28c4ce['getSuggestions']()['filter'](_0x3e96ac=>_0x3e96ac['isInContent']&&_0x141790==_0x3e96ac['author']&&('formatBlock'==_0x3e96ac['type']||'formatInline'==_0x3e96ac['type'])&&('imageStylePreApply'==_0x3e96ac['subType']||'imageStylePostApply'==_0x3e96ac['subType'])&&_0x3e96ac['getFirstRange']()['isEqual'](_0x257edd))['forEach'](_0x39c751=>_0x28c4ce['discardSuggestion'](_0x39c751['head'])),_0xc2e573=_0x5a84bb['getClosestSelectedImageElement'](_0x230dd1['model']['document']['selection']),_0x257edd=_0x230dd1['model']['createRangeOn'](_0xc2e573),_0x7a1a26['refresh'](),_0x230dd1['commands']['get']('imageTypeInline')['refresh'](),_0x230dd1['commands']['get']('imageTypeBlock')['refresh'](),_0x4074d7=_0x7a1a26['value'],_0x4074d7!=_0x5872bb['value'])return _0x5a84bb['isInlineImage'](_0xc2e573)&&_0x7a1a26['shouldConvertImageType'](_0x5872bb['value'],_0xc2e573)?(_0xc08c6a({..._0x5872bb,'setImageSizes':!0x1}),_0xc2e573=_0x5a84bb['getClosestSelectedImageElement'](_0x230dd1['model']['document']['selection']),void _0x28c4ce['markBlockFormat'](_0xc2e573,{..._0x7d42e1,'commandReversedParams':[{'value':_0x4074d7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a84bb['isBlockImage'](_0xc2e573)?_0x28c4ce['markBlockFormat'](_0xc2e573,_0x7d42e1,[],'imageStylePostApply'):_0x28c4ce['markInlineFormat'](_0x257edd,_0x7d42e1,'imageStylePostApply'));});});for(const _0x248fa2 of _0x230dd1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2b5927[_0x248fa2['name']]=_0x248fa2['title']['toLowerCase']();_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4dd7da])=>{_0x5a84bb['setImageNaturalSizeAttributes'](_0x4dd7da['getContainedElement']());}),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cb265,_0x1d744d)=>{_0x28c4ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cb265,{'commandName':_0x1d744d['commandName'],'commandParams':_0x1d744d['commandReversedParams']});}),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x132730,_0x2bdd82){if(_0x37275d(_0x132730,_0x2bdd82))return[_0x132730,_0x2bdd82];if(_0x37275d(_0x2bdd82,_0x132730))return[_0x2bdd82,_0x132730];return null;});const _0x6f2c87=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37275d(_0x180a59,_0x5a2ac6){const _0x48e626=_0x6f2c87['findIndex'](({type:_0x8f836a,subType:_0x27076a})=>_0x180a59['type']==_0x8f836a&&_0x180a59['subType']==_0x27076a),_0x6a21c8=_0x6f2c87['findIndex'](({type:_0x5b8474,subType:_0x548127})=>_0x5a2ac6['type']==_0x5b8474&&_0x5a2ac6['subType']==_0x548127);if(_0x48e626<0x0||_0x6a21c8<0x0)return!0x1;const _0x38b679=_0x180a59['getFirstRange'](),_0x43c665=_0x5a2ac6['getFirstRange']();if((0x0==_0x48e626||0x1==_0x48e626)&&0x2==_0x6a21c8&&_0x38b679['isIntersecting'](_0x43c665))return!0x0;if(0x2==_0x48e626&&0x3==_0x6a21c8){const _0x2a6fe0=_0x28c4ce['_findSuggestions'](_0x38b679,'insertion')['filter'](({suggestion:_0x4746ec,meta:_0x4ac636})=>_0x4ac636['isOwn']&&'convertInlineImageToBlock'==_0x4746ec['subType']);if(_0x2a6fe0['length']>0x1&&_0x43c665['end']['isEqual'](_0x38b679['start']))return!0x0;if(0x1==_0x2a6fe0['length']&&(_0x38b679['start']['isEqual'](_0x43c665['end'])||_0x38b679['end']['isEqual'](_0x43c665['start'])))return!0x0;}if(0x3==_0x48e626&&0x3==_0x6a21c8&&_0x38b679['start']['isBefore'](_0x43c665['start'])){const _0x2b3102=_0x38b679['end']['nodeAfter'],_0xfec85c=_0x43c665['start']['nodeBefore'];return _0x5a84bb['isBlockImage'](_0x2b3102)&&_0x2b3102===_0xfec85c;}return!0x1;}_0x230dd1['model']['document']['registerPostFixer'](()=>{let _0x49862e=!0x1;const _0x203ab0=Array['from'](_0x230dd1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54fdaa,data:_0x21103d}of _0x203ab0){const {group:_0x1d3cf8,type:_0x12fd33,subType:_0x489d4f,id:_0x56663f}=_0x413c95(_0x54fdaa);if('suggestion'==_0x1d3cf8&&_0x28c4ce['hasSuggestion'](_0x56663f)){if('formatBlock'==_0x12fd33&&('imageStylePreApply'==_0x489d4f||'imageStylePostApply'==_0x489d4f)){const _0x5886a0=_0x28c4ce['getSuggestion'](_0x56663f);if(_0x21103d['newRange']){const _0x557f9f=_0x5886a0['getFirstRange']()['getContainedElement']();if(_0x5a84bb['isBlockImage'](_0x557f9f))continue;_0x28c4ce['discardSuggestion'](_0x5886a0),_0x49862e=!0x0;}}if('insertion'==_0x12fd33&&'imageCaption'==_0x489d4f&&!_0x21103d['newRange']){const _0x4d1abb=_0x28c4ce['getSuggestion'](_0x56663f);_0x4d1abb['next']&&_0x4d1abb['next']['isInContent']&&(_0x28c4ce['discardSuggestion'](_0x4d1abb['next']),_0x49862e=!0x0);}}}return _0x49862e;}),this['_registerLegacyDescription'](_0x2b5927);}['_registerLegacyDescription'](_0x2e453b){const _0x436f0f=this['editor'],_0x114e48=_0x436f0f['locale'];_0x436f0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329b2a=>{if('formatBlock'!=_0x329b2a['type']&&'formatInline'!=_0x329b2a['type'])return;const {data:_0x223654}=_0x329b2a;if(!_0x223654||'imageStyle'!=_0x223654['commandName'])return;const _0x30d5da=_0x223654['commandParams'][0x0]['value'];return _0x23bb2d('side'===_0x30d5da?At(_0x114e48,'FORMAT_SIDE_IMAGE'):_0x2e453b[_0x30d5da]||_0x30d5da);function _0x23bb2d(_0x47f794){return{'type':'format','content':At(_0x114e48,'*Format:*\x20%0',_0x47f794)};}});}}class oe extends _0x55ebc7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x98f786){super(_0x98f786),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b6e9d=this['editor'],_0x4fe22e=_0x4b6e9d['commands']['get']('importWord'),_0x15b8e5=_0x4b6e9d['commands']['get']('trackChanges');_0x4fe22e&&(_0x4fe22e['on']('execute',(_0x55a56a,[,_0x438fe5])=>{this['_trackChangesValueDuringImport']=_0x15b8e5['value'],_0x438fe5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4fe22e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4fe22e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15b8e5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b6e9d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5a485d,_0x516e77){const {suggestions:_0x56a15b}=_0x516e77,_0x1af080=this['editor']['commands']['get']('trackChanges'),_0x235732=_0x1af080['value'];this['_trackChangesValueDuringImport']!==_0x235732&&(_0x1af080['execute'](),this['_trackChangesExecuted']=!0x0),_0x56a15b&&_0x56a15b['forEach'](({id:_0x2a558a,type:_0x584c42,author:_0x28fa09,created_at:_0x5def77})=>{const _0x596b3a={'id':_0x2a558a,'type':_0x584c42,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x28fa09,'createdAt':_0x5def77?new Date(_0x5def77):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x596b3a);});}}class ae extends _0x55ebc7{['afterInit'](){const _0x5c09e4=this['editor'],_0x18fe7d=_0x5c09e4['plugins']['get']('TrackChangesEditing');if(_0x5c09e4['plugins']['has']('IndentEditing')&&(_0x18fe7d['enableCommand']('indent'),_0x18fe7d['enableCommand']('outdent')),_0x5c09e4['plugins']['has']('IndentBlock')){for(const _0x963d9 of['indentBlock','outdentBlock'])_0x18fe7d['enableDefaultAttributesIntegration'](_0x963d9);if(_0x5c09e4['plugins']['has']('ListEditing')){for(const _0x2f1c5c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x18fe7d['enableDefaultAttributesIntegration'](_0x2f1c5c);}}const _0x285e90=_0x5c09e4['locale'];_0x18fe7d['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x285e90,'FORMAT_INDENT')),_0x18fe7d['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x285e90,'FORMAT_INDENT')),_0x18fe7d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x285e90,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e12ba=this['editor'],_0x2b54e9=_0x3e12ba['locale'],_0x3027b0=_0x3e12ba['plugins']['get']('TrackChangesEditing');_0x3027b0['descriptionFactory']['registerDescriptionCallback'](_0x4c8794=>{if('formatBlock'!=_0x4c8794['type'])return;const {data:_0x16c54a}=_0x4c8794;if(!_0x16c54a)return;if('indentBlock'!=_0x16c54a['commandName']&&'outdentBlock'!=_0x16c54a['commandName'])return;const _0x49aabf=_0x4c8794['getItems']()[0x0],_0x21be86=_0x3027b0['descriptionFactory']['getItemLabel'](_0x49aabf);return'indentBlock'==_0x16c54a['commandName']?{'type':'format','content':At(_0x2b54e9,'*Indent:*\x20%0',_0x21be86)}:'outdentBlock'==_0x16c54a['commandName']?{'type':'format','content':At(_0x2b54e9,'*Outdent:*\x20%0',_0x21be86)}:void 0x0;});}}class ce extends _0x55ebc7{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x55ebc7{['afterInit'](){const _0x137c4e=this['editor'];if(!_0x137c4e['plugins']['has']('LinkEditing'))return;const _0x459739=_0x137c4e['plugins']['get']('TrackChangesEditing'),_0x4b9b0f=_0x137c4e['commands']['get']('link');_0x459739['enableDefaultAttributesIntegration']('link'),_0x459739['enableDefaultAttributesIntegration']('unlink');for(const _0x411bab of _0x4b9b0f['manualDecorators'])_0x459739['descriptionFactory']['registerAttributeLabel'](_0x411bab['id'],'link\x20('+_0x411bab['label']['toLowerCase']()+')');_0x459739['descriptionFactory']['registerDescriptionCallback'](_0x5044aa=>{if('attribute'!=_0x5044aa['type'])return;const {data:_0x51b4cd}=_0x5044aa;if(!_0x51b4cd||'linkHref'!=_0x51b4cd['key'])return;const _0x21f39f=_0x51b4cd['newValue'],_0x1bfe5e=_0x137c4e['locale'];return{'type':'format','content':null==_0x21f39f?At(_0x1bfe5e,'*Remove\x20link*'):At(_0x1bfe5e,'*Set\x20link:*\x20%0','\x22'+_0x21f39f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39423a=this['editor'],_0x170382=_0x39423a['locale'];_0x39423a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38659c=>{if('formatInline'!=_0x38659c['type'])return;const {data:_0x511e31}=_0x38659c;if(_0x511e31){if('link'==_0x511e31['commandName']){const _0x4a15a0=_0x511e31['commandParams'][0x0];return{'type':'format','content':At(_0x170382,'*Set\x20link:*\x20%0','\x22'+_0x4a15a0+'\x22')};}return'unlink'==_0x511e31['commandName']?{'type':'format','content':At(_0x170382,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x55ebc7{['afterInit'](){const _0x5516e1=this['editor'],_0xb0892e=_0x5516e1['locale'];if(!_0x5516e1['plugins']['has']('LegacyListEditing'))return;const _0x5e03d8=_0x5516e1['plugins']['get']('TrackChangesEditing'),_0x372b9d=_0x5516e1['plugins']['has']('LegacyTodoListEditing');function _0x319eba(_0x4eb97e){return()=>{const _0x31c768=_0x5516e1['model']['document']['selection'],_0x1000dc=_0x5516e1['commands']['get'](_0x4eb97e);if(_0x1000dc['value'])return void _0x5516e1['execute']('paragraph',{});const _0x389010=_0x4eb97e['slice'](0x0,-0x4),_0x3c0ebf=function(_0x5032d6,_0x3b5bdf,_0x4aa902){let _0x556db7=Array['from'](_0x5032d6)['filter'](_0x17c9a=>function(_0xf83e60,_0x50a740){return _0x50a740['checkChild'](_0xf83e60['parent'],'listItem')&&!_0x50a740['isObject'](_0xf83e60);}(_0x17c9a,_0x4aa902));_0x556db7=_0x556db7['filter'](_0x45f144=>!_0x45f144['is']('element','listItem')||_0x45f144['getAttribute']('listType')!=_0x3b5bdf);const _0x462663=new Set();for(const _0x3ed048 of _0x556db7)_0x3ed048['is']('element','listItem')?_0x462663['add'](he(_0x3ed048)):_0x462663['add'](_0x3ed048);return Array['from'](_0x462663);}(_0x31c768['getSelectedBlocks'](),_0x389010,_0x5516e1['model']['schema']);_0x5516e1['model']['change'](()=>{for(const _0x5207db of _0x3c0ebf)_0x5e03d8['markBlockFormat'](_0x5207db,{'commandName':_0x4eb97e,'commandParams':[{'forceValue':!_0x1000dc['value']}],'formatGroupId':'blockName'},de(_0x5207db));});};}function _0x21333d(_0x5bb75b){return()=>{const _0x272724=function(_0x421f8c){let _0x272f87=Array['from'](_0x421f8c);const _0x31cd78=_0x272f87['findIndex'](_0x47777b=>'listItem'!=_0x47777b['name']);return _0x31cd78>-0x1&&(_0x272f87=_0x272f87['slice'](0x0,_0x31cd78)),_0x272f87;}(_0x5516e1['model']['document']['selection']['getSelectedBlocks']()),_0x41102a=_0x5516e1['model']['createRange'](_0x5516e1['model']['createPositionAt'](_0x272724[0x0],'before'),_0x5516e1['model']['createPositionAt'](_0x272724[_0x272724['length']-0x1],'end'));_0x5516e1['model']['change'](()=>{_0x5e03d8['markBlockFormat'](_0x41102a,{'commandName':_0x5bb75b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x14e88f){const _0xaa33ce=new Set();for(const _0x1c3473 of _0x14e88f){let _0x8cac59=_0x1c3473['nextSibling'];for(;_0x8cac59&&_0x8cac59['getAttribute']('listIndent')>_0x1c3473['getAttribute']('listIndent');)_0xaa33ce['add'](_0x8cac59),_0x8cac59=_0x8cac59['nextSibling'];}return Array['from'](_0xaa33ce);}(_0x272724));});};}_0x5e03d8['enableCommand']('numberedList',_0x319eba('numberedList')),_0x5e03d8['enableCommand']('bulletedList',_0x319eba('bulletedList')),_0x372b9d&&_0x5e03d8['enableCommand']('todoList',_0x319eba('todoList')),_0x5e03d8['enableCommand']('indentList',_0x21333d('indentList')),_0x5e03d8['enableCommand']('outdentList',_0x21333d('outdentList')),_0x372b9d&&_0x5e03d8['enableCommand']('checkTodoList',()=>{const _0x2b0eb5=_0x5516e1['commands']['get']('checkTodoList'),_0x418325=Array['from'](_0x2b0eb5['_selectedElements']);_0x418325['filter'](_0x5c6071=>_0x5c6071['getAttribute']('todoListChecked')!=_0x2b0eb5['value']),_0x5516e1['model']['change'](()=>{for(const _0x3bba14 of _0x418325)_0x5e03d8['markBlockFormat'](_0x3bba14,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b0eb5['value']}]});});}),_0x5e03d8['descriptionFactory']['registerElementLabel']('listItem',_0x5c673d=>At(_0xb0892e,'ELEMENT_LIST_ITEM',_0x5c673d)),_0x5e03d8['descriptionFactory']['registerDescriptionCallback'](_0x36c309=>{if('formatBlock'!=_0x36c309['type']&&'formatInline'!=_0x36c309['type'])return;const {data:_0x1cf0a2}=_0x36c309;if(_0x1cf0a2){if('numberedList'==_0x1cf0a2['commandName']||'bulletedList'==_0x1cf0a2['commandName']||'todoList'==_0x1cf0a2['commandName'])switch(_0x1cf0a2['commandName']['replace']('List','')){case'bulleted':return _0x1d1f5e(At(_0xb0892e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d1f5e(At(_0xb0892e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d1f5e(At(_0xb0892e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1cf0a2['commandName'])return{'type':'format','content':At(_0xb0892e,'*Indent:*\x20%0',At(_0xb0892e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1cf0a2['commandName'])return{'type':'format','content':At(_0xb0892e,'*Outdent:*\x20%0',At(_0xb0892e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1cf0a2['commandName'])return _0x1cf0a2['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xb0892e,'*Check\x20item*')}:{'type':'format','content':At(_0xb0892e,'*Uncheck\x20item*')};}function _0x1d1f5e(_0x3e9678){return{'type':'format','content':At(_0xb0892e,'*Change\x20to:*\x20%0',_0x3e9678)};}});}}function he(_0x4aa802){const _0xd5580f=_0x4aa802['getAttribute']('listIndent');if(0x0==_0xd5580f)return _0x4aa802;let _0x1ba5dd=_0x4aa802;for(;_0x4aa802['previousSibling']&&_0x4aa802['previousSibling']['is']('element','listItem');){const _0x4cad8c=_0x4aa802['previousSibling']['getAttribute']('listIndent');if(_0x4cad8c==_0xd5580f)_0x1ba5dd=_0x4aa802['previousSibling'];else{if(_0x4cad8c<_0xd5580f)break;}_0x4aa802=_0x4aa802['previousSibling'];}return _0x1ba5dd;}function de(_0x55ab90){const _0x46cfd7=[];if(_0x55ab90['is']('element','listItem')&&_0x55ab90['getAttribute']('listIndent')>0x0){let _0x38026d=_0x55ab90['nextSibling'];for(;_0x38026d&&'listItem'==_0x38026d['name']&&_0x38026d['getAttribute']('listIndent')==_0x55ab90['getAttribute']('listIndent');)_0x46cfd7['push'](_0x38026d),_0x38026d=_0x38026d['nextSibling'];}return _0x46cfd7;}class fe extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x328017=this['editor']['config']['get']('list.properties'),_0x2082b6=this['editor']['plugins']['get']('TrackChangesEditing');_0x328017['styles']&&_0x2082b6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x328017['reversed']&&_0x2082b6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x328017['startIndex']&&_0x2082b6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2082b6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5bf332,_0x41042f={}){const _0x17584a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b192f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17584a['markMultiRangeBlockFormat'](_0x4b192f,{'commandName':'listStyle','commandParams':[{'type':_0x41042f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3fa824,_0x17f2ca={}){const _0x530a6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c2faa=this['_getSuggestionBlocks'](_0x9e84a6=>_0x9e84a6['is']('element','listItem')&&'numbered'===_0x9e84a6['getAttribute']('listType'));if(_0x4c2faa['length']<0x1)return;const _0x28869=_0x4c2faa['map'](_0x4f991c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f991c,'before'),this['editor']['model']['createPositionAt'](_0x4f991c,0x0)));this['editor']['model']['change'](()=>{_0x530a6f['markMultiRangeBlockFormat'](_0x28869,{'commandName':'listReversed','commandParams':[{'reversed':_0x17f2ca['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3492ff,_0x2ca1de={}){const _0x5da18a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58289c=this['_getSuggestionBlocks'](_0x437ad8=>_0x437ad8['is']('element','listItem')&&'numbered'===_0x437ad8['getAttribute']('listType'));if(_0x58289c['length']<0x1)return;const _0x1a885f=_0x58289c['map'](_0x57e08a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57e08a,'before'),this['editor']['model']['createPositionAt'](_0x57e08a,0x0)));this['editor']['model']['change'](()=>{_0x5da18a['markMultiRangeBlockFormat'](_0x1a885f,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ca1de['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4b1ff8){if('formatBlock'!=_0x4b1ff8['type']&&'formatInline'!=_0x4b1ff8['type'])return;const _0x350608=this['editor']['locale'],{data:_0x3fb097}=_0x4b1ff8;if(!_0x3fb097)return;let _0x15256b,_0x4c329e;switch(_0x3fb097['commandName']){case'listStyle':_0x15256b='*Change\x20to:*\x20%0',_0x4c329e={'type':'format','content':At(_0x350608,_0x15256b,At(_0x350608,this['_getTranslationKeyForListStyle'](_0x3fb097['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15256b=_0x3fb097['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c329e={'type':'format','content':At(_0x350608,_0x15256b)};break;case'listStart':_0x15256b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c329e={'type':'format','content':At(_0x350608,_0x15256b,_0x3fb097['commandParams'][0x0]['startIndex'])};}return _0x4c329e;}['_getSuggestionBlocksForListStyle'](){const _0x147811=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bfcda=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bfcda[0x0]?.['is']('element','listItem')&&_0x2bfcda['unshift'](..._0x147811['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bfcda[_0x2bfcda['length']-0x1]?.['is']('element','listItem')&&_0x2bfcda['push'](..._0x147811['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bfcda=[...new Set(_0x2bfcda)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bfcda=_0x2bfcda['filter'](_0xea4de8=>_0xea4de8['is']('element','listItem'))),_0x2bfcda;}['_getSuggestionBlocks'](_0xa91a4a){const _0x262b07=this['editor']['plugins']['get']('LegacyListUtils');let _0x450626=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xa91a4a)['map'](_0x4b1afe=>{const _0x2cddfa=this['editor']['model']['createPositionAt'](_0x4b1afe,0x0);return[..._0x262b07['getSiblingNodes'](_0x2cddfa,'backward'),..._0x262b07['getSiblingNodes'](_0x2cddfa,'forward')];})['flat']();return _0x450626=[...new Set(_0x450626)],_0x450626;}['_getTranslationKeyForListStyle'](_0x5a3835){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5a3835)||'default')['toUpperCase']()+'_LIST_'+_0x5a3835['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x55ebc7{['afterInit'](){const _0x4ae402=this['editor'];if(!_0x4ae402['plugins']['has']('MediaEmbedEditing'))return;const _0x454056=_0x4ae402['plugins']['get']('TrackChangesEditing'),_0x2a1d96=_0x4ae402['locale'];_0x454056['enableCommand']('mediaEmbed'),_0x454056['descriptionFactory']['registerElementLabel']('media',_0x874028=>At(_0x2a1d96,'ELEMENT_MEDIA',_0x874028));}}class me extends _0x55ebc7{['afterInit'](){const _0x15d862=this['editor'];_0x15d862['plugins']['has']('MentionEditing')&&_0x15d862['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x55ebc7{['afterInit'](){const _0x5875c0=this['editor'];if(!_0x5875c0['plugins']['has']('MergeFieldsEditing'))return;const _0x4a8711=_0x5875c0['plugins']['get']('TrackChangesEditing'),_0xd03786=_0x5875c0['locale'];_0x4a8711['enableCommand']('insertMergeField'),_0x4a8711['enableCommand']('insertMergeFieldBlock'),_0x4a8711['enableCommand']('insertMergeFieldImage'),_0x4a8711['descriptionFactory']['registerElementLabel']('mergeField',_0x2e6163=>At(_0xd03786,'ELEMENT_MERGE_FIELD',_0x2e6163)),_0x4a8711['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3edaf3=>At(_0xd03786,'ELEMENT_MERGE_FIELD',_0x3edaf3)),_0x4a8711['descriptionFactory']['registerDescriptionCallback'](_0x2dece0=>{if('insertion'!=_0x2dece0['type']&&'deletion'!=_0x2dece0['type'])return;const _0x98dba0=_0x2dece0['getContainedElement']();if(null==_0x98dba0)return;const _0x103ab5=_0x5875c0['plugins']['get']('MergeFieldsEditing');let _0x4e5bf9;switch(_0x103ab5['getMergeFieldType'](_0x98dba0)){case null:return;case'image':{const _0x2b36dd=_0x103ab5['unwrapAffixes'](_0x98dba0['getAttribute']('src'));_0x4e5bf9=_0x103ab5['getLabel'](_0x2b36dd)||_0x2b36dd;break;}default:{const _0x4c5215=_0x98dba0['getAttribute']('id');_0x4e5bf9=_0x103ab5['getLabel'](_0x4c5215)||_0x4c5215;break;}}return'insertion'==_0x2dece0['type']?{'type':'insertion','content':At(_0xd03786,'*Insert:*\x20%0','\x22'+_0x4e5bf9+'\x22\x20'+At(_0xd03786,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0xd03786,'*Remove:*\x20%0','\x22'+_0x4e5bf9+'\x22\x20'+At(_0xd03786,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x55ebc7{['afterInit'](){const _0x7e5cc4=this['editor'],_0x2c9d89=_0x7e5cc4['plugins']['get']('TrackChangesEditing');_0x7e5cc4['plugins']['has']('MultiLevelList')&&(_0x2c9d89['enableDefaultAttributesIntegration']('multiLevelList'),_0x2c9d89['descriptionFactory']['registerDescriptionCallback'](_0x55e27d=>this['handleDescriptions'](_0x55e27d)));}['handleDescriptions'](_0x5c26ac){const _0x2cad30=this['editor']['locale'],{data:_0x3af64a}=_0x5c26ac,_0x558536={'type':'format','content':''};if(_0x3af64a&&'listMarkerStyle'==_0x3af64a['key']){if(!_0x3af64a['oldValue'])return{'type':'format','content':At(_0x2cad30,'*Set\x20format:*\x20%0',At(_0x2cad30,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3af64a['newValue']+')'};if(!_0x3af64a['newValue']){let _0x479ff5=_0x5c26ac['head'];for(;_0x479ff5;){if(_0x479ff5['data']&&'listType'==_0x479ff5['data']['key']&&_0x479ff5['data']['newValue'])return _0x558536;_0x479ff5=_0x479ff5['next'];}return{'type':'format','content':At(_0x2cad30,'*Remove\x20format:*\x20%0',At(_0x2cad30,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3af64a['oldValue']+')'};}}}}class _e extends _0x55ebc7{['afterInit'](){const _0x14e1b5=this['editor'];if(!_0x14e1b5['plugins']['has']('PageBreakEditing'))return;_0x14e1b5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa77709=_0x14e1b5['plugins']['get']('TrackChangesEditing'),_0x4a8565=_0x14e1b5['locale'];_0xa77709['descriptionFactory']['registerElementLabel']('pageBreak',_0x342e41=>At(_0x4a8565,'ELEMENT_PAGE_BREAK',_0x342e41));}}class pe extends _0x55ebc7{['afterInit'](){const _0x25d52c=this['editor'];if(!_0x25d52c['plugins']['has']('Paragraph'))return;const _0x49b491=_0x25d52c['locale'],_0x382ff9=_0x25d52c['plugins']['get']('TrackChangesEditing');_0x382ff9['descriptionFactory']['registerElementLabel']('paragraph',_0x499ddd=>At(_0x49b491,'ELEMENT_PARAGRAPH',_0x499ddd)),_0x382ff9['enableDefaultAttributesIntegration']('paragraph'),_0x382ff9['enableCommand']('insertParagraph');const _0x39ba0b=_0x382ff9['descriptionFactory'];_0x39ba0b['registerDescriptionCallback'](_0x396765=>{if('insertion'!==_0x396765['type'])return;const {start:_0x16b24f,end:_0x34722d}=_0x396765['getFirstRange']();if(!_0x16b24f['isTouching'](_0x34722d)||!_0x16b24f['nodeAfter'])return;const _0x2ab5df=_0x25d52c['model']['schema'],_0x5bfd63=_0x16b24f['nodeAfter'];return _0x2ab5df['isBlock'](_0x5bfd63)&&!_0x2ab5df['isLimit'](_0x5bfd63)&&_0x2ab5df['checkChild'](_0x5bfd63,'$text')?{'type':'insertion','content':At(_0x49b491,'*Insert:*\x20%0',_0x39ba0b['getItemLabel'](_0x5bfd63,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c1032=this['editor'],_0x34836d=_0x4c1032['locale'];_0x4c1032['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ae871=>{if('formatBlock'!=_0x2ae871['type'])return;const {data:_0x5b16cb}=_0x2ae871;return _0x5b16cb&&'paragraph'==_0x5b16cb['commandName']?{'type':'format','content':At(_0x34836d,'*Change\x20to:*\x20%0',At(_0x34836d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x55ebc7{['afterInit'](){const _0x9dc3d6=this['editor'];_0x9dc3d6['commands']['get']('replaceSource')&&_0x9dc3d6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x55ebc7{['afterInit'](){const _0x52c266=this['editor'];if(!_0x52c266['plugins']['has']('RemoveFormatEditing'))return;_0x52c266['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2689dd=this['editor'];_0x2689dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aeeeb=>{if('formatBlock'!=_0x4aeeeb['type']&&'formatInline'!=_0x4aeeeb['type'])return;const {data:_0x2e67a2}=_0x4aeeeb;return _0x2e67a2&&'removeFormat'==_0x2e67a2['commandName']?{'type':'format','content':At(_0x2689dd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x55ebc7{['afterInit'](){const _0x9887ad=this['editor'];if(!_0x9887ad['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1c4dd6=_0x9887ad['plugins']['get']('TrackChangesEditing');_0x1c4dd6['enableCommand']('goToPreviousRestrictedEditingException'),_0x1c4dd6['enableCommand']('goToNextRestrictedEditingException');const _0x30b115=_0x9887ad['plugins']['get']('RestrictedEditingModeEditing');_0x30b115['enableCommand']('trackChanges'),_0x30b115['enableCommand']('acceptSuggestion'),_0x30b115['enableCommand']('discardSuggestion'),_0x30b115['enableCommand']('acceptAllSuggestions'),_0x30b115['enableCommand']('discardAllSuggestions'),_0x30b115['enableCommand']('acceptSelectedSuggestions'),_0x30b115['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x55ebc7{['afterInit'](){const _0x17f917=this['editor'];if(!_0x17f917['plugins']['has']('ShiftEnter'))return;const _0x137d66=_0x17f917['plugins']['get']('TrackChangesEditing');_0x137d66['enableCommand']('shiftEnter'),_0x137d66['descriptionFactory']['registerElementLabel']('softBreak',_0x316f7d=>At(_0x17f917['locale'],'ELEMENT_LINE_BREAK',_0x316f7d));}}function ke(_0x32a94d,_0x3635f2,_0x50a64d){const _0x40580e=[];for(const _0x11f95e of _0x3635f2['getItems']())_0x11f95e['hasAttribute'](_0x32a94d)&&_0x40580e['push'](_0x50a64d['createRangeOn'](_0x11f95e));return _0x40580e;}class Ce extends _0x55ebc7{['afterInit'](){const _0x529b90=this['editor'],_0x12b24e=_0x529b90['plugins']['get']('TrackChangesEditing');_0x529b90['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x12b24e['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x51f5d2=this['editor'],_0x49ec75=_0x51f5d2['model'],_0x56fe60=_0x51f5d2['locale'],_0x8c3648=_0x51f5d2['plugins']['get']('TrackChangesEditing'),_0x5b242f='restrictedEditingException',_0x4e8ff0=_0x51f5d2['commands']['get'](_0x5b242f);_0x8c3648['enableCommand'](_0x5b242f,(_0x2eefef,_0xaae940={})=>{const _0x2b6989=_0x49ec75['document']['selection'];if(_0x2b6989['isCollapsed'])return void _0x2eefef(_0xaae940);const _0x5d7928=void 0x0!==_0xaae940['forceValue']?_0xaae940['forceValue']:!_0x4e8ff0['value'];_0x49ec75['change'](()=>{const _0x1cac8c=Array['from'](_0x2b6989['getRanges']());for(const _0x267a4e of _0x1cac8c){const _0x1f922c=_0x5d7928?[_0x267a4e]:ke(_0x5b242f,_0x267a4e,_0x49ec75);for(const _0x4ae840 of _0x1f922c)_0x8c3648['markInlineFormat'](_0x4ae840,{'commandName':_0x5b242f,'commandParams':[{'forceValue':_0x5d7928}]});}});}),_0x8c3648['descriptionFactory']['registerDescriptionCallback'](_0x59259c=>{if('formatBlock'!=_0x59259c['type']&&'formatInline'!=_0x59259c['type'])return;const {data:_0xfe2c8}=_0x59259c;return _0xfe2c8&&_0xfe2c8['commandName']==_0x5b242f?_0xfe2c8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x56fe60,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x56fe60,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x46f1b3=this['editor'],_0x18032e=_0x46f1b3['locale'],_0x4a3918=_0x46f1b3['plugins']['get']('TrackChangesEditing'),_0x1145ed='restrictedEditingExceptionBlock',_0x2f9600=this['editor']['commands']['get'](_0x1145ed);_0x4a3918['enableCommand'](_0x1145ed,(_0xc77e43,_0x181943={})=>{const _0x2c730c=this['editor']['model']['document']['selection'],_0x1bdc7d=_0x181943&&void 0x0!==_0x181943['forceValue']?_0x181943['forceValue']:!_0x2f9600['value'];let _0x29910a=[];if(_0x1bdc7d){const _0x17f96e=Array['from'](_0x2c730c['getSelectedBlocks']())['filter'](_0x16063a=>function(_0x4b4725){return!!_0x4b4725['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x16063a)||function(_0x4dcbdf,_0x4d2ec9){const _0x567e46=_0x4d2ec9['createContext'](_0x4dcbdf['parent']);if(!_0x4d2ec9['checkChild'](_0x567e46,'restrictedEditingException'))return!0x1;if(!_0x4d2ec9['checkChild'](_0x567e46['push']('restrictedEditingException'),_0x4dcbdf))return!0x1;return!0x0;}(_0x16063a,this['editor']['model']['schema']));_0x29910a=Tt(_0x17f96e,_0x46f1b3['model']);}else{const _0x460273=Array['from'](_0x2c730c['getSelectedBlocks']())['map'](_0x2ffa44=>function(_0x1dd978){let _0x108e6c=_0x1dd978;for(;_0x108e6c['parent'];){if('restrictedEditingException'==_0x108e6c['parent']['name'])return _0x108e6c;_0x108e6c=_0x108e6c['parent'];}return null;}(_0x2ffa44))['filter'](_0x37ed20=>!!_0x37ed20);_0x29910a=Tt(_0x460273,_0x46f1b3['model']);}_0x46f1b3['model']['change'](()=>{for(const _0x67bf6e of _0x29910a)_0x4a3918['markBlockFormat'](_0x67bf6e,{'commandName':_0x1145ed,'commandParams':[{'forceValue':_0x1bdc7d}]});});}),_0x4a3918['descriptionFactory']['registerDescriptionCallback'](_0x478663=>{const {data:_0xd89f8}=_0x478663;if(_0xd89f8&&_0xd89f8['commandName']==_0x1145ed)return _0xd89f8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x18032e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x18032e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x55ebc7{['afterInit'](){const _0x2bde94=this['editor'];if(!_0x2bde94['plugins']['has']('Style')||!_0x2bde94['plugins']['has']('DataSchema'))return;const _0x48139f=_0x2bde94['plugins']['get']('TrackChangesEditing'),_0x28a874=_0x2bde94['locale'],_0x184156=_0x2bde94['config']['get']('style')||{},_0x24d506=_0x2bde94['plugins']['get']('GeneralHtmlSupport'),_0x2263e3=_0x2bde94['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2bde94['plugins']['get']('DataSchema'),_0x184156['definitions']);_0x48139f['enableDefaultAttributesIntegration']('style');const _0x141d72=new Set();for(const _0x4ad3a9 of _0x2263e3['block']){const _0x8443db=_0x24d506['getGhsAttributeNameForElement'](_0x4ad3a9['element']);_0x141d72['add'](_0x8443db);}const _0x2ff5ce=new Set();for(const _0x2815d2 of _0x2263e3['inline']){const _0x52bf17=_0x24d506['getGhsAttributeNameForElement'](_0x2815d2['element']);_0x2ff5ce['add'](_0x52bf17);for(const _0x56d115 of _0x2815d2['ghsAttributes'])_0x2ff5ce['add'](_0x56d115);}for(const _0x4f70d7 of _0x141d72)_0x48139f['descriptionFactory']['registerAttributeLabel'](_0x4f70d7,At(_0x28a874,'FORMAT_STYLE'));for(const _0x2b02a2 of _0x2ff5ce)_0x48139f['descriptionFactory']['registerAttributeLabel'](_0x2b02a2,At(_0x28a874,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf24311=this['editor'],_0x1baa58=_0xf24311['locale'];_0xf24311['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34ff92=>{if('formatBlock'!=_0x34ff92['type']&&'formatInline'!=_0x34ff92['type'])return;const {data:_0x421692}=_0x34ff92;return _0x421692&&'style'===_0x421692['commandName']?_0x421692['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1baa58,'*Set\x20format:*\x20%0',_0x421692['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1baa58,'*Remove\x20format:*\x20%0',_0x421692['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x55ebc7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xb9334b){super(_0xb9334b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3a3cfc=this['editor'],_0x3f6fbc=_0x3a3cfc['model']['document']['selection'];if(!_0x3a3cfc['plugins']['has']('TableEditing'))return;const _0x43cc43=_0x3a3cfc['locale'],_0x453edc=_0x3a3cfc['plugins']['get']('TrackChangesEditing'),_0x47c1c7=_0x3a3cfc['plugins']['get']('TableUtils');_0x453edc['descriptionFactory']['registerElementLabel']('table',_0xd541b5=>At(_0x43cc43,'ELEMENT_TABLE',_0xd541b5)),this['_setupColumnsRowsFixing'](),_0x453edc['enableCommand']('insertTable'),_0x453edc['enableCommand']('selectTableRow'),_0x453edc['enableCommand']('selectTableColumn');for(const _0x29923b of['insertTableRowAbove','insertTableRowBelow']){const _0x3ca0d0=_0x3a3cfc['commands']['get'](_0x29923b);_0x453edc['enableCommand'](_0x29923b,_0x5600f4=>{_0x3a3cfc['model']['change'](_0x5a7ed9=>{_0x5600f4();const _0x1d2d69='above'===_0x3ca0d0['order'],_0x5a9c6f=_0x47c1c7['getSelectionAffectedTableCells'](_0x3f6fbc),_0x344a00=_0x47c1c7['getRowIndexes'](_0x5a9c6f),_0x1ae0fb=_0x1d2d69?_0x344a00['first']-0x1:_0x344a00['last']+0x1,_0x216f41=_0x5a9c6f[0x0]['findAncestor']('table'),_0x3dc2ac=_0x47c1c7['createTableWalker'](_0x216f41,{'startRow':_0x1ae0fb,'endRow':_0x1ae0fb}),_0x34976a=Array['from'](_0x3dc2ac)['map'](_0xee5331=>_0x5a7ed9['createRangeOn'](_0xee5331['cell']));_0x453edc['markMultiRangeInsertion'](_0x34976a,'tableRow');});});}for(const _0x5e2951 of['insertTableColumnLeft','insertTableColumnRight']){const _0x570452=_0x3a3cfc['commands']['get'](_0x5e2951);_0x453edc['enableCommand'](_0x5e2951,_0x196533=>{_0x3a3cfc['model']['change'](_0x3898b8=>{_0x196533();const _0x10b982='left'===_0x570452['order'],_0x50325=_0x47c1c7['getSelectionAffectedTableCells'](_0x3f6fbc),_0x231ab0=_0x47c1c7['getColumnIndexes'](_0x50325),_0x59d4dc=_0x10b982?_0x231ab0['first']-0x1:_0x231ab0['last']+0x1,_0xae2ed6=_0x50325[0x0]['findAncestor']('table'),_0x5ebde4=_0x47c1c7['createTableWalker'](_0xae2ed6,{'startRow':0x0,'column':_0x59d4dc,'includeAllSlots':!0x1}),_0x12d9e9=Array['from'](_0x5ebde4)['map'](_0x4caf81=>_0x3898b8['createRangeOn'](_0x4caf81['cell']));_0x453edc['markMultiRangeInsertion'](_0x12d9e9,'tableColumn');});});}for(const _0x4f87fe of['removeTableRow','removeTableColumn']){const _0x323cca=_0x4f87fe['substr'](0xb),_0x51ce5d=_0x323cca['toLowerCase'](),_0xb8030=_0x51ce5d['substr'](0x0,0x3)+'span',_0x202de2='table'+_0x323cca,_0x31dd70='min'+_0x323cca,_0x1e3437='max'+_0x323cca;_0x453edc['enableCommand'](_0x4f87fe,()=>{_0x3a3cfc['model']['change'](_0x58e62d=>{const _0x3db566=_0x47c1c7['getSelectionAffectedTableCells'](_0x3f6fbc),_0xe12d19=_0x3db566[0x0]['findAncestor']('table');let _0x172d22;if('removeTableRow'==_0x4f87fe){const _0x48db7a=_0x47c1c7['getRowIndexes'](_0x3db566);_0x172d22={'startRow':_0x48db7a['first'],'endRow':_0x48db7a['last'],'includeAllSlots':!0x0};}else{const _0x304667=_0x47c1c7['getColumnIndexes'](_0x3db566);_0x172d22={'startColumn':_0x304667['first'],'endColumn':_0x304667['last'],'includeAllSlots':!0x0};}const _0x1e20b1=_0x47c1c7['createTableWalker'](_0xe12d19,_0x172d22),_0x24ca2b=Array['from'](_0x1e20b1)['map'](({cell:_0xaaa947})=>_0xaaa947),_0x2204a0=Re(_0x24ca2b['filter'](_0xad5f93=>_0xad5f93['hasAttribute'](_0xb8030))),_0x14fd8d=Re(_0x24ca2b['filter'](_0x2d7bd7=>!_0x2d7bd7['hasAttribute'](_0xb8030)))['map'](_0x5906b3=>_0x58e62d['createRangeOn'](_0x5906b3)),_0x9fe28=_0x453edc['markMultiRangeDeletion'](_0x14fd8d,_0x202de2);if(_0x9fe28&&('tableRow'==_0x9fe28['subType']||'tableColumn'==_0x9fe28['subType'])){const _0x1f43ad=this['_getSuggestionCoords'](_0x9fe28);for(const _0x2e0ab2 of _0x2204a0){const _0x2113a1=_0x58e62d['createRangeOn'](_0x2e0ab2),_0x33ffa2=_0x47c1c7['getCellLocation'](_0x2e0ab2),_0x22a48d=_0x2e0ab2['getAttribute'](_0xb8030)-0x1,_0x4a9451=_0x1f43ad[_0x31dd70],_0x450c7f=_0x1f43ad[_0x1e3437];_0x4a9451<=_0x33ffa2[_0x51ce5d]&&_0x33ffa2[_0x51ce5d]+_0x22a48d<=_0x450c7f&&_0x9fe28['addRange'](_0x2113a1);}}});});}function _0x1dd544(_0x38b1dc){const _0x4edf6b=Array['from'](_0x3f6fbc['getRanges']())['map'](_0x5065c7=>_0x3e26ed['fromRange'](_0x5065c7));_0x3a3cfc['model']['change'](_0x37853b=>{const _0x1b8102=_0x37853b['batch'];_0x38b1dc=_0x38b1dc['filter'](_0x3999f6=>'$graveyard'!=_0x3999f6['root']['rootName']),_0x37853b['setSelection'](_0x38b1dc),_0x3a3cfc['commands']['get']('removeTableRow')['refresh'](),_0x3a3cfc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3a3cfc['model']['enqueueChange'](()=>{_0x3a3cfc['model']['enqueueChange'](_0x1b8102,_0x3606fe=>{const _0x2d6598=_0x4edf6b['filter'](_0x2b4e24=>'$graveyard'!=_0x2b4e24['root']['rootName']);_0x2d6598['length']>0x0&&_0x3606fe['setSelection'](_0x2d6598);for(const _0x29a5c6 of _0x4edf6b)_0x29a5c6['detach']();});});});}function _0x2d1776(_0x4dbe16){_0x3a3cfc['model']['change'](_0x4e6e7f=>{const _0x55843f=Array['from'](_0x3f6fbc['getRanges']())['map'](_0x1cea22=>_0x3e26ed['fromRange'](_0x1cea22)),_0x575e82=[];for(const _0x1525d5 of _0x4dbe16)for(const _0x46be56 of _0x1525d5['getItems']({'shallow':!0x0}))_0x575e82['push'](_0x46be56);for(const _0xce0858 of _0x575e82)'$graveyard'!=_0xce0858['root']['rootName']&&(_0x4e6e7f['setSelection'](_0x4e6e7f['createPositionAt'](_0xce0858,0x0)),_0x3a3cfc['commands']['get']('removeTableColumn')['refresh'](),_0x3a3cfc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e7112=_0x55843f['filter'](_0x337e66=>'$graveyard'!=_0x337e66['root']['rootName']);_0x1e7112['length']>0x0&&_0x4e6e7f['setSelection'](_0x1e7112);for(const _0x41525d of _0x55843f)_0x41525d['detach']();});}function _0x3e76d9(_0x250f1a,_0x1a9a2b){return _0x1a9a2b['every'](_0x16b167=>_0x250f1a['some'](_0x162057=>_0x162057['end']['isEqual'](_0x16b167['start'])||_0x16b167['end']['isEqual'](_0x162057['start'])));}function _0x9586f0(_0x10cc40,_0x1e9e72){return!_0x10cc40['some'](_0x4e9018=>_0x1e9e72['some'](_0x1de748=>_0x4e9018['isIntersecting'](_0x1de748)))&&_0x10cc40['some'](_0x4aeeb0=>_0x1e9e72['some'](_0x357f4a=>_0x4aeeb0['end']['isTouching'](_0x357f4a['start'])));}_0x453edc['descriptionFactory']['registerDescriptionCallback'](_0x456e90=>{if('insertion'!=_0x456e90['type']&&'deletion'!=_0x456e90['type'])return;const _0x2cee16=_0x456e90['getContainedElement']();if(null!=_0x2cee16&&_0x2cee16['is']('element','table')){if('insertion'==_0x456e90['type']){const _0x32ffed=_0x456e90['getItems']()['filter'](_0x5580b1=>_0x5580b1['is']('$textProxy'))['map'](_0x11d3e3=>_0x11d3e3['data']);if(_0x32ffed['length'])return{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32ffed['join']('\x20')+'\x22'))};}if('deletion'==_0x456e90['type']){const _0x49edc9=_0x456e90['getItems']()['filter'](_0xb8f29=>_0xb8f29['is']('$textProxy'))['map'](_0x1e8610=>_0x1e8610['data']);if(_0x49edc9['length'])return{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49edc9['join']('\x20')+'\x22'))};}}}),_0x453edc['descriptionFactory']['registerDescriptionCallback'](_0x398299=>{if('tableRow'==_0x398299['subType']){const _0x47e8e4=_0x398299['getItems']()['filter'](_0x3916c6=>_0x3916c6['is']('$textProxy'))['map'](_0x198d9c=>_0x198d9c['data']),_0x5d7ae8=this['_getSuggestionCoords'](_0x398299),_0x3dcf9d=_0x5d7ae8['maxRow']-_0x5d7ae8['minRow']+0x1;if('insertion'==_0x398299['type'])return _0x47e8e4['length']?{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3dcf9d,'\x22'+_0x47e8e4['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW',_0x3dcf9d))};if('deletion'==_0x398299['type'])return _0x47e8e4['length']?{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3dcf9d,'\x22'+_0x47e8e4['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW',_0x3dcf9d))};}if('tableColumn'==_0x398299['subType']){const _0x475373=_0x398299['getItems']()['filter'](_0x63f284=>_0x63f284['is']('$textProxy'))['map'](_0x2d4369=>_0x2d4369['data']),_0x10221d=this['_getSuggestionCoords'](_0x398299),_0x26a796=_0x10221d['maxColumn']-_0x10221d['minColumn']+0x1;if('insertion'==_0x398299['type'])return _0x475373['length']?{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26a796,'\x22'+_0x475373['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN',_0x26a796))};if('deletion'==_0x398299['type'])return _0x475373['length']?{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26a796,'\x22'+_0x475373['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN',_0x26a796))};}}),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1dd544),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1dd544),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2d1776),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2d1776),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e76d9),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e76d9),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x9586f0),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x9586f0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d6e86=this['editor'],_0x453fbf=_0x1d6e86['model']['document']['selection'];return(_0x187f6e,_0x2077a5)=>{_0x1d6e86['model']['change'](_0x254977=>{const {commandName:_0x47370d,commandParams:_0x45a862}=_0x2077a5;let _0x43fe54=_0x187f6e[0x0]['end']['nodeBefore'];_0x45a862&&_0x45a862[0x0]&&!0x1===_0x45a862[0x0]['forceValue']&&(_0x43fe54=_0x187f6e[0x0]['start']['nodeAfter']);const _0x5b128c=_0x254977['createRangeIn'](_0x43fe54);if('$graveyard'==_0x5b128c['root']['rootName'])return;const _0x331028=Array['from'](_0x453fbf['getRanges']())['map'](_0x58f2c4=>_0x3e26ed['fromRange'](_0x58f2c4));_0x254977['setSelection'](_0x5b128c),_0x1d6e86['commands']['get'](_0x47370d)['refresh'](),_0x45a862['push']({'forceDefaultExecution':!0x0}),_0x1d6e86['execute'](_0x47370d,..._0x45a862);const _0x561aec=_0x331028['filter'](_0x3dc916=>'$graveyard'!=_0x3dc916['root']['rootName']);_0x561aec['length']>0x0&&_0x254977['setSelection'](_0x561aec);for(const _0x5a05df of _0x331028)_0x5a05df['detach']();});};}['_getCoordsForCells'](_0x2b4508){const _0x118300=this['editor']['plugins']['get']('TableUtils');let _0x2521eb=Number['MAX_SAFE_INTEGER'],_0x4c053b=Number['MIN_SAFE_INTEGER'],_0x50f175=Number['MAX_SAFE_INTEGER'],_0x3fde4c=Number['MIN_SAFE_INTEGER'];for(const _0x489417 of _0x2b4508){if('$graveyard'==_0x489417['root']['rootName'])continue;const {row:_0x1b6099,column:_0x47eb62}=_0x118300['getCellLocation'](_0x489417),_0x214cac=_0x489417['hasAttribute']('rowspan')?_0x489417['getAttribute']('rowspan')-0x1:0x0,_0x5f55b8=_0x489417['hasAttribute']('colspan')?_0x489417['getAttribute']('colspan')-0x1:0x0;_0x2521eb=_0x1b6099<_0x2521eb?_0x1b6099:_0x2521eb,_0x4c053b=_0x1b6099+_0x214cac>_0x4c053b?_0x1b6099+_0x214cac:_0x4c053b,_0x50f175=_0x47eb62<_0x50f175?_0x47eb62:_0x50f175,_0x3fde4c=_0x47eb62+_0x5f55b8>_0x3fde4c?_0x47eb62+_0x5f55b8:_0x3fde4c;}return{'minRow':_0x2521eb,'maxRow':_0x4c053b,'minColumn':_0x50f175,'maxColumn':_0x3fde4c};}['_setupColumnsRowsFixing'](){const _0x22234b=this['editor'],_0x38c583=_0x22234b['plugins']['get']('TrackChangesEditing'),_0x1ace54=_0x22234b['plugins']['get']('TableUtils');_0x22234b['model']['document']['on']('change:data',()=>{const _0x15a92b=Array['from'](_0x22234b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13bf78,data:_0x4963b1}of _0x15a92b){const {group:_0x29db48,id:_0x2a637b,subType:_0x20a93a}=_0x413c95(_0x13bf78);if('suggestion'!=_0x29db48)continue;if(null!=_0x4963b1['oldRange'])continue;const _0x2cf4b1=_0x38c583['getSuggestion'](_0x2a637b);this['_tablePostFixingSubtypes']['includes'](_0x20a93a)&&this['_tableSuggestions']['add'](_0x2cf4b1);}},{'priority':'low'});const _0x5af8ea=(_0x28304e,_0x1fbb3f)=>{let _0x135650=!0x1;const _0x233e07=_0x1fbb3f['createRangeOn'](_0x28304e),_0x2a0ea0=_0x28304e['findAncestor']('table'),_0x30770f=_0x1ace54['getCellLocation'](_0x28304e);for(const _0x352a05 of this['_tableSuggestions']){const _0x3254a0=_0x352a05['subType'],_0x2c78d7=_0x3254a0['startsWith']('tablePaste'),_0x367056=_0x3254a0['substr'](_0x2c78d7?0xa:0x5),_0x343aca=_0x367056['toLowerCase'](),_0x107f31=_0x343aca['substr'](0x0,0x3)+'span',_0x2d2b36='min'+_0x367056,_0x513a92='max'+_0x367056;if(!_0x352a05['isInContent'])continue;if(_0x2a0ea0!=_0x352a05['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x352a05['isIntersectingWithRange'](_0x233e07))continue;const _0x1fd0fd=_0x28304e['hasAttribute'](_0x107f31)?_0x28304e['getAttribute'](_0x107f31)-0x1:0x0,_0x456404=this['_getSuggestionCoords'](_0x352a05),_0x44b22d=_0x456404[_0x2d2b36],_0x146c5a=_0x456404[_0x513a92];_0x44b22d<=_0x30770f[_0x343aca]&&_0x30770f[_0x343aca]+_0x1fd0fd<=_0x146c5a&&(_0x352a05['addRange'](_0x233e07),_0x135650=!0x0);}return _0x135650;};_0x22234b['model']['document']['registerPostFixer'](_0x6d10fb=>{let _0x22598f=!0x1;for(const _0x280841 of _0x22234b['model']['document']['differ']['getChanges']())if('insert'==_0x280841['type']){if('tableRow'==_0x280841['name']){for(const _0xc4a605 of _0x280841['position']['nodeAfter']['getChildren']())_0x22598f=_0x22598f||_0x5af8ea(_0xc4a605,_0x6d10fb);}else'tableCell'==_0x280841['name']&&(_0x22598f=_0x22598f||_0x5af8ea(_0x280841['position']['nodeAfter'],_0x6d10fb));}return _0x22598f;});}['_getSuggestionCoords'](_0x579b82){return this['_getCoordsForCells'](_0x579b82['getRanges']()['map'](_0x1fc8f1=>_0x1fc8f1['start']['nodeAfter']));}}function Re(_0x2c747e){return Array['from'](new Set(_0x2c747e)['values']());}class Se extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x5084cb=this['editor'],_0x43574d=_0x5084cb['model']['document']['selection'],_0x2427ab=_0x5084cb['locale'];if(!_0x5084cb['plugins']['has']('TableEditing'))return;const _0x2c9005=_0x5084cb['plugins']['get']('TrackChangesEditing'),_0x4e82b6=_0x5084cb['plugins']['get']('TableUtils'),_0x2c2c1d=_0x5084cb['plugins']['get'](Ne);_0x2c2c1d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2c9005['enableCommand']('mergeTableCells',()=>{const _0x4f2f5a=_0x4e82b6['getSelectionAffectedTableCells'](_0x5084cb['model']['document']['selection']);_0x5084cb['model']['change'](()=>{_0x2c9005['markMultiRangeBlockFormat'](_0x4f2f5a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5084cb['commands']['get']('mergeTableCells')['on']('execute',(_0x416849,_0x18b03a)=>{_0x5084cb['commands']['get']('trackChanges')['value']&&(_0x18b03a['length']>0x0&&_0x18b03a[_0x18b03a['length']-0x1]&&_0x18b03a[_0x18b03a['length']-0x1]['forceDefaultExecution']||_0x2c9005['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x416849['stop']());},{'priority':'highest'});for(const _0xc84daf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x20f7cc=_0x5084cb['commands']['get'](_0xc84daf);_0x2c9005['enableCommand'](_0xc84daf,()=>{const _0x2a9f0c=_0x5084cb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x36d965=>_0x36d965['is']('element','tableCell')),_0xbfaa96=_0x20f7cc['value'];_0x5084cb['model']['change'](()=>{_0x2c9005['markMultiRangeBlockFormat']([_0x2a9f0c,_0xbfaa96],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x376a07 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x34a4de=_0x5084cb['commands']['get'](_0x376a07);_0x2c9005['enableCommand'](_0x376a07,()=>{const _0x55a1c3=_0x4e82b6['getSelectionAffectedTableCells'](_0x5084cb['model']['document']['selection'])[0x0],_0x460541=_0x55a1c3['findAncestor']('table'),{column:_0x4f9d73,row:_0x2579b4}=_0x4e82b6['getCellLocation'](_0x55a1c3);let _0x1a34ed=[];if('horizontally'==_0x34a4de['direction']){const _0x2c4b2f=_0x4e82b6['createTableWalker'](_0x460541,{'startRow':_0x2579b4,'endRow':_0x2579b4,'includeAllSlots':!0x0});_0x1a34ed=Array['from'](_0x2c4b2f)['map'](_0x8b94b=>_0x8b94b['cell']);}else{const _0x4b612e=_0x4e82b6['createTableWalker'](_0x460541,{'column':_0x4f9d73,'includeAllSlots':!0x0});_0x1a34ed=Array['from'](_0x4b612e)['map'](_0x408325=>_0x408325['cell']);}_0x5084cb['model']['change'](_0x41e93b=>{_0x2c9005['markBlockFormat'](_0x41e93b['createRangeOn'](_0x55a1c3),{'commandName':_0x376a07,'commandParams':[]},_0x1a34ed,_0x376a07);});});}_0x2c9005['descriptionFactory']['registerDescriptionCallback'](_0x5d261e=>{if('formatBlock'!=_0x5d261e['type']&&'formatInline'!=_0x5d261e['type'])return;const {data:_0x32d18d}=_0x5d261e;return _0x32d18d&&'mergeTableCells'==_0x32d18d['commandName']?{'type':'format','content':At(_0x2427ab,'*Merge\x20cells*')}:void 0x0;}),_0x2c9005['descriptionFactory']['registerDescriptionCallback'](_0x2efa15=>{if('formatBlock'!=_0x2efa15['type']&&'formatInline'!=_0x2efa15['type'])return;const {data:_0x3beb10}=_0x2efa15;return _0x3beb10?'splitTableCellVertically'==_0x3beb10['commandName']?{'type':'format','content':At(_0x2427ab,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3beb10['commandName']?{'type':'format','content':At(_0x2427ab,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1faae7=_0x2c2c1d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2fdad6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2c9005['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fdad6,'accept',_0x1faae7);for(const _0x2267b1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2c9005['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2267b1,'accept',_0x1faae7);_0x2c9005['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5c8bcb=>{_0x5084cb['model']['change'](_0x59d485=>{const _0x3ec6b9=Array['from'](_0x43574d['getRanges']())['map'](_0x1b1795=>_0x3e26ed['fromRange'](_0x1b1795));_0x59d485['setSelection'](_0x5c8bcb),_0x5084cb['commands']['get']('mergeTableCells')['refresh'](),_0x5084cb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43d66b=_0x3ec6b9['filter'](_0x2ff131=>'$graveyard'!=_0x2ff131['root']['rootName']);_0x43d66b['length']>0x0&&_0x59d485['setSelection'](_0x43d66b);for(const _0x288984 of _0x3ec6b9)_0x288984['detach']();});});for(const _0x4d809c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5bdea3=_0x5084cb['commands']['get'](_0x4d809c);_0x5bdea3['on']('set:isEnabled',(_0x5be500,_0x5a37a2,_0x3da332)=>{if(_0x3da332){const _0x47774b=_0x5084cb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x293b05=>_0x293b05['is']('element','tableCell'));this['_areMergableCells'](_0x5bdea3['value'],_0x47774b)||(_0x5be500['return']=!0x1,_0x5be500['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d5461=this['editor']['commands']['get']('mergeTableCells'),_0x2cca40=this['editor']['plugins']['get']('TableUtils');if(!_0x1d5461['isEnabled'])return!0x1;const _0x15edb4=_0x2cca40['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d0011 of _0x15edb4)for(const _0x21d67c of _0x15edb4)if(_0x2d0011!=_0x21d67c&&!this['_areMergableCells'](_0x2d0011,_0x21d67c))return!0x1;return!0x0;}['_areMergableCells'](_0x21e2ca,_0x16aa26){const _0x5ce962=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43d4d9=this['editor']['model']['createRangeOn'](_0x21e2ca),_0x2fafd8=this['editor']['model']['createRangeOn'](_0x16aa26),_0x3701f1=new Set(),_0x5e6d96=new Set();for(const _0x26f578 of _0x5ce962['getSuggestions']())if(('insertion'==_0x26f578['type']||'deletion'==_0x26f578['type']||'mergeTableCells'==_0x26f578['subType'])&&_0x26f578['isInContent']){for(const _0x4a90b6 of _0x26f578['getRanges']())_0x4a90b6['containsRange'](_0x43d4d9,!0x0)&&_0x3701f1['add'](_0x26f578['type']+':'+_0x26f578['author']['id']),_0x4a90b6['containsRange'](_0x2fafd8,!0x0)&&_0x5e6d96['add'](_0x26f578['type']+':'+_0x26f578['author']['id']);}if(_0x3701f1['size']!=_0x5e6d96['size'])return!0x1;for(const _0x2245fe of _0x3701f1)if(!_0x5e6d96['has'](_0x2245fe))return!0x1;return!0x0;}}class Me extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x3a7b3d=this['editor'];if(!_0x3a7b3d['plugins']['has']('TableEditing'))return;const _0x41a180=_0x3a7b3d['locale'],_0x38a34e=_0x3a7b3d['plugins']['get']('TrackChangesEditing');_0x38a34e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38a34e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38a34e['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x41a180,'FORMAT_HEADER_ROW')),_0x38a34e['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x41a180,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3eecee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52a7ca=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3eecee['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x52a7ca),_0x3eecee['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x52a7ca),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x499be5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x362201=this['editor']['plugins']['get']('TableUtils');function _0x35e0d8({showActiveMarker:_0x3ba4d8=!0x0,setDataAttribute:_0x41abf3=!0x0}={}){return(_0x4c03cf,_0x389fda,_0x4239f8)=>{const {type:_0x197f95,id:_0x58ff54}=_0x413c95(_0x389fda['markerName']);if(!_0x499be5['hasSuggestion'](_0x58ff54))return;const _0x5c3a36=_0x499be5['getSuggestion'](_0x58ff54),_0x18c7e1=_0x5c3a36['data'];if('formatBlock'!=_0x5c3a36['type']||!_0x18c7e1||'setTableColumnHeader'!=_0x18c7e1['commandName'])return;if(_0x389fda['item'])return void _0x4c03cf['stop']();if(!_0x4239f8['consumable']['consume'](_0x389fda['markerRange'],_0x4c03cf['name']))return;const _0x1520e0=_0x389fda['markerRange']['start']['nodeAfter'],_0x128c9f=_0x389fda['markerRange']['end']['nodeBefore'],_0x335bee=_0x1520e0['parent']['parent'],{column:_0x26a4fa}=_0x362201['getCellLocation'](_0x1520e0),{column:_0x47ff64}=_0x362201['getCellLocation'](_0x128c9f);for(let _0x1bd366=_0x26a4fa;_0x1bd366<=_0x47ff64;_0x1bd366++){const _0x918d9a=_0x362201['createTableWalker'](_0x335bee,{'column':_0x1bd366,'includeAllSlots':!0x1});for(const _0x52d69c of _0x918d9a){const _0x2193a4=_0x52d69c['cell'],_0x2418aa=_0x4239f8['mapper']['toViewElement'](_0x2193a4);_0x4239f8['writer']['addClass']('ck-suggestion-marker-'+_0x197f95,_0x2418aa),_0x41abf3&&_0x4239f8['writer']['setAttribute']('data-suggestion',_0x58ff54,_0x2418aa),_0x4239f8['mapper']['bindElementToMarker'](_0x2418aa,_0x389fda['markerName']),_0x3ba4d8&&(_0x499be5['activeMarkers']['includes'](_0x389fda['markerName'])?_0x4239f8['writer']['addClass']('ck-suggestion-marker--active',_0x2418aa):_0x4239f8['writer']['removeClass']('ck-suggestion-marker--active',_0x2418aa));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35e0d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc52b88,_0xd9313a,_0x30286e)=>{_0x30286e['options']['showSuggestionHighlights']&&_0x35e0d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xc52b88,_0xd9313a,_0x30286e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x362a09,_0x2d7d1d,_0x1bf0ae)=>{const {type:_0x1027f5,id:_0x5a37a1}=_0x413c95(_0x2d7d1d['markerName']);if(!_0x499be5['hasSuggestion'](_0x5a37a1))return;const _0x9a89f7=_0x499be5['getSuggestion'](_0x5a37a1),_0x467d4f=_0x9a89f7['data'];if('formatBlock'!=_0x9a89f7['type']||!_0x467d4f||'setTableColumnHeader'!=_0x467d4f['commandName'])return;const _0x2b5a68=_0x1bf0ae['mapper']['markerNameToElements'](_0x2d7d1d['markerName']);if(_0x2b5a68){for(const _0x2112e2 of _0x2b5a68)_0x1bf0ae['writer']['removeClass']('ck-suggestion-marker-'+_0x1027f5,_0x2112e2),_0x1bf0ae['writer']['removeClass']('ck-suggestion-marker--active',_0x2112e2),_0x1bf0ae['writer']['removeAttribute']('data-suggestion',_0x2112e2),_0x1bf0ae['mapper']['unbindElementFromMarkerName'](_0x2112e2,_0x2d7d1d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4a7606=this['editor'],_0xb6e220=_0x4a7606['locale'];function _0x1929b7(_0x3df098){return{'type':'format','content':At(_0xb6e220,'*Format:*\x20%0',_0x3df098)};}_0x4a7606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357c20=>{if('formatBlock'!=_0x357c20['type'])return;const {data:_0x28ff59}=_0x357c20;if(_0x28ff59){if('setTableRowHeader'==_0x28ff59['commandName']){const _0x649eb2=_0x28ff59['commandParams'][0x0]['forceValue'];return _0x1929b7(At(_0xb6e220,_0x649eb2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x28ff59['commandName']){const _0x2f73f8=_0x28ff59['commandParams'][0x0]['forceValue'];return _0x1929b7(At(_0xb6e220,_0x2f73f8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x4249f6=this['editor'];if(!_0x4249f6['plugins']['has']('TableEditing')||!_0x4249f6['config']['get']('table.enableFooters'))return;const _0x33eff3=_0x4249f6['locale'],_0x5d6c7c=_0x4249f6['plugins']['get']('TrackChangesEditing');_0x5d6c7c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5d6c7c['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x33eff3,'FORMAT_FOOTER_ROW'));}}class we extends _0x55ebc7{['afterInit'](){const _0x3ac592=this['editor'],_0x5a8bda=_0x3ac592['locale'],_0x5d1bb1=_0x3ac592['plugins']['get']('TrackChangesEditing');function _0x46f3a4(_0x450e2e){return{'type':'format','content':''+At(_0x5a8bda,'*Set\x20table\x20type:*\x20%0',_0x450e2e)};}_0x3ac592['plugins']['has']('TableLayout')&&(_0x5d1bb1['enableCommand']('insertTableLayout'),_0x5d1bb1['enableDefaultAttributesIntegration']('tableType'),_0x5d1bb1['descriptionFactory']['registerElementLabel'](_0x58c8df=>_0x58c8df['is']('element','table')&&'layout'===_0x58c8df['getAttribute']('tableType'),_0x236147=>At(_0x5a8bda,'ELEMENT_LAYOUT_TABLE',_0x236147)),_0x5d1bb1['descriptionFactory']['registerDescriptionCallback'](_0x18a9d4=>{const {data:_0x43eff9}=_0x18a9d4;if(_0x43eff9&&'tableType'==_0x43eff9['key'])switch(_0x43eff9['newValue']){case'layout':return _0x46f3a4(At(_0x5a8bda,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x46f3a4(At(_0x5a8bda,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x47778c=>[_0x47778c,null]));class De extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x5ad045=this['editor'];if(!_0x5ad045['plugins']['has']('TableClipboard'))return;const _0x216e99=_0x5ad045['plugins']['get']('TrackChangesEditing'),_0x5eb85c=_0x5ad045['plugins']['get']('TableUtils'),_0x54c103=_0x5ad045['plugins']['get'](Ne),_0x39f1d7=_0x5ad045['plugins']['get']('TableClipboard'),_0x31be4b=_0x5ad045['plugins']['get']('TableSelection'),_0x1a3e8d=_0x5ad045['plugins']['get'](ut);_0x54c103['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ad045['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ad045['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36dcf9=null,_0x2f28e2=!0x1;_0x1a3e8d['on']('contentInsertion',(_0x28eeb0,_0x4bb3ab)=>{_0x2f28e2='paste'===_0x4bb3ab['method'];}),_0x5ad045['model']['on']('insertContent',(_0x15e980,_0x515d20)=>{if(!_0x2f28e2&&null===_0x31be4b['getSelectedTableCells']())return;const [_0x4203b5,_0x5732b0]=_0x515d20,_0x5ae607=_0x515d20[_0x515d20['length']-0x1];_0x5ae607&&_0x5ae607['forceDefaultExecution']||_0x216e99['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b53a5,_0x4eab1a,_0x1850a9,_0x399fa5,_0x2b02e1){if(_0x4eab1a&&!_0x4eab1a['is']('documentSelection'))return!0x1;const _0x421794=_0x2b02e1['getTableIfOnlyTableInContent'](_0x3b53a5,_0x1850a9);if(!_0x421794||!xe(_0x421794,void 0x0,_0x399fa5))return!0x1;const _0x3998be=_0x399fa5['getSelectionAffectedTableCells'](_0x1850a9['document']['selection']);if(!_0x3998be['length'])return!0x1;const _0x5745f1=_0x3998be[0x0]['findAncestor']('table'),_0x405257=_0x399fa5['getRowIndexes'](_0x3998be),_0x122d11=_0x399fa5['getColumnIndexes'](_0x3998be),_0x8cd498={'startRow':_0x405257['first'],'endRow':_0x405257['last'],'startColumn':_0x122d11['first'],'endColumn':_0x122d11['last']};return 0x1==_0x3998be['length']&&(_0x8cd498['endRow']+=_0x399fa5['getRows'](_0x421794)-0x1,_0x8cd498['endColumn']+=_0x399fa5['getColumns'](_0x421794)-0x1),xe(_0x5745f1,_0x8cd498,_0x399fa5);}(_0x4203b5,_0x5732b0,_0x5ad045['model'],_0x5eb85c,_0x39f1d7)&&(_0x15e980['stop'](),_0x36dcf9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ad045['model']['change'](()=>{_0x5ad045['model']['insertContent'](_0x515d20[0x0],_0x515d20[0x1],_0x515d20[0x2],{'forceDefaultExecution':!0x0});const _0x26d20e=_0x493bce(),{rowInsertionRanges:_0x33279d,columnInsertionRanges:_0x2d7a53,insertionRanges:_0x51b7e2,deletionRanges:_0x1fff4f,cells:_0x4c3a83}=_0x36dcf9;_0x33279d['length']&&_0x216e99['markMultiRangeInsertion'](_0x33279d,'tablePasteRow',{'tablePasteChainId':_0x26d20e}),_0x2d7a53['length']&&_0x216e99['markMultiRangeInsertion'](_0x2d7a53,'tablePasteColumn',{'tablePasteChainId':_0x26d20e}),_0x51b7e2['length']&&(_0x216e99['markMultiRangeInsertion'](_0x51b7e2,'tablePaste',{'tablePasteChainId':_0x26d20e,'skipNestingCheck':!0x0}),_0x51b7e2['forEach'](_0x5e4771=>_0x5e4771['detach']?.())),_0x1fff4f['length']&&(_0x216e99['markMultiRangeDeletion'](_0x1fff4f,'tablePaste',{'tablePasteChainId':_0x26d20e,'skipNestingCheck':!0x0}),_0x1fff4f['forEach'](_0x1ca8e9=>_0x1ca8e9['detach']?.()));const _0x558854=_0x216e99['markMultiRangeBlockFormat'](_0x4c3a83['map'](({element:_0x242cb4})=>_0x242cb4),{'formatGroupId':_0x493bce()},[],'tablePasteCell',{'tablePasteChainId':_0x26d20e});if(_0x558854){const _0x43c16a=_0x558854['getMarkers'](),_0x425c99=[];for(const {element:_0xadfe61,attributes:_0x3edc5b}of _0x4c3a83){if(!_0x3edc5b)continue;const _0x10bd8b=_0x5ad045['model']['createRangeOn'](_0xadfe61),_0xebc842=_0x43c16a['find'](_0x3be8d4=>_0x3be8d4['getRange']()['isEqual'](_0x10bd8b));_0xebc842&&_0x425c99['push']([_0xebc842['name'],_0x3edc5b]);}_0x425c99['length']&&_0x558854['setAttribute']('markerAttributes',Object['fromEntries'](_0x425c99));}_0x36dcf9=null;}));},{'priority':_0x58c127['high']+0xa}),_0x1a3e8d['on']('contentInsertion',()=>{_0x2f28e2=!0x1;},{'priority':'lowest'}),_0x5ad045['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33cfca,_0x370e4a)=>{const [_0x59d10a,_0x374183,,_0x316789]=_0x370e4a;if(!_0x36dcf9)return;_0x33cfca['stop']();const _0xa8788c=_0x59d10a['cell'],_0x171fe7=_0x374183,_0x1811a8=ve(_0xa8788c),_0x1babfe=ve(_0x171fe7);_0x33cfca['return']=_0xa8788c;let _0x3d9d4b=null,_0x139f19=null;if(_0x1babfe||_0x1811a8){if(_0x1811a8&&!_0x1babfe){_0x316789['remove'](_0xa8788c['getChild'](0x0));for(const _0x570026 of Array['from'](_0x171fe7['getChildren']()))_0x316789['insert'](_0x570026,_0xa8788c,'end');const _0x194691=_0x36dcf9['rowInsertionIndexes']['includes'](_0x59d10a['row']),_0x15efab=_0x36dcf9['columnInsertionIndexes']['includes'](_0x59d10a['column']);_0x194691||_0x15efab||(_0x3d9d4b=_0x3e26ed['fromRange'](_0x316789['createRangeIn'](_0xa8788c)));}else _0x1babfe&&!_0x1811a8&&(_0x139f19=_0x316789['createRangeIn'](_0xa8788c));}else{const _0x196304=_0x316789['createElement']('tableCellSuggestion'),_0xa7944b=_0x316789['createElement']('tableCellSuggestion');_0x316789['wrap'](_0x316789['createRangeIn'](_0xa8788c),_0xa7944b),_0x316789['insert'](_0x196304,_0xa8788c,0x0);for(const _0x319166 of Array['from'](_0x171fe7['getChildren']()))_0x316789['insert'](_0x319166,_0x196304,'end');_0x3d9d4b=_0x3e26ed['fromRange'](_0x316789['createRangeOn'](_0x196304)),_0x139f19=_0x3e26ed['fromRange'](_0x316789['createRangeOn'](_0xa7944b));}const _0x9209cf=Array['from'](_0x171fe7['getAttributes']())['filter'](([_0x48a141])=>Be['includes'](_0x48a141));_0x36dcf9['cells']['push']({'element':_0xa8788c,'attributes':_0x9209cf['length']?Object['fromEntries'](_0x9209cf):null}),_0x3d9d4b&&_0x36dcf9['insertionRanges']['push'](_0x3d9d4b),_0x139f19&&_0x36dcf9['deletionRanges']['push'](_0x139f19);},{'priority':'high'}),_0x5eb85c['on']('insertColumns',(_0x559490,_0x5f28af)=>{const [_0x356d42,_0x23efc5={}]=_0x5f28af;if(!_0x36dcf9)return;const _0x3da18b=_0x23efc5['at']||0x0,_0x51adbc=_0x23efc5['columns']||0x1;_0x36dcf9['columnInsertionIndexes']=new Array(_0x51adbc)['fill'](_0x3da18b)['map']((_0x3a5df8,_0x240bdb)=>_0x3a5df8+_0x240bdb);for(const {cell:_0x182d45}of _0x5eb85c['createTableWalker'](_0x356d42,{'startColumn':_0x3da18b,'endColumn':_0x3da18b+_0x51adbc-0x1}))_0x36dcf9['columnInsertionRanges']['push'](_0x5ad045['model']['createRangeOn'](_0x182d45));},{'priority':'low'}),_0x5eb85c['on']('insertRows',(_0x16e6e5,_0x1d0fff)=>{const [_0x589f66,_0x734b11={}]=_0x1d0fff;if(!_0x36dcf9)return;const _0x57e659=_0x734b11['at']||0x0,_0x4e74c3=_0x734b11['rows']||0x1;_0x36dcf9['rowInsertionIndexes']=new Array(_0x4e74c3)['fill'](_0x57e659)['map']((_0x17e1aa,_0xf50503)=>_0x17e1aa+_0xf50503);for(const {cell:_0x5d1218}of _0x5eb85c['createTableWalker'](_0x589f66,{'startRow':_0x57e659,'endRow':_0x57e659+_0x4e74c3-0x1}))_0x36dcf9['rowInsertionRanges']['push'](_0x5ad045['model']['createRangeOn'](_0x5d1218));},{'priority':'low'}),_0x216e99['descriptionFactory']['registerDescriptionCallback'](_0x158316=>{if(_0x158316['subType']&&_0x158316['subType']['startsWith']('tablePaste'))return _0x158316['previous']?{}:{'type':'insertion','content':At(_0x5ad045['locale'],'*Replace\x20table\x20cells*')};});const _0x42b4d4=()=>!0x1;for(const _0x5cb7d1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x216e99['_suggestionFactory']['registerCustomCallback']('insertion',_0x5cb7d1,'join',_0x42b4d4),_0x216e99['_suggestionFactory']['registerCustomCallback']('deletion',_0x5cb7d1,'join',_0x42b4d4),_0x216e99['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5cb7d1,'join',_0x42b4d4);_0x216e99['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42b4d4),_0x216e99['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x416c24,_0x488e85,_0x1da5f1)=>{const _0x45a6fa=_0x416c24['map'](_0xac8639=>_0xac8639['getContainedElement']())['filter'](_0x380604=>_0x380604),_0x598a57=new Map(_0x45a6fa['map'](_0x1dfce8=>[_0x1dfce8,null]));if(_0x36dcf9){for(const {element:_0x5a0465,attributes:_0x1b92e1}of _0x36dcf9['cells'])_0x1b92e1&&_0x598a57['set'](_0x5a0465,_0x1b92e1);}else{if(_0x1da5f1&&_0x1da5f1['markerAttributes'])for(const [_0x426c7e,_0x4a7dd3]of Object['entries'](_0x1da5f1['markerAttributes'])){const _0x15bb72=_0x5ad045['model']['markers']['get'](_0x426c7e),_0x406531=_0x15bb72?_0x15bb72['getRange']()['getContainedElement']():null;_0x406531&&_0x598a57['set'](_0x406531,_0x4a7dd3);}}_0x5ad045['model']['change'](_0x380908=>{for(const [_0x2066da,_0x2861bc]of _0x598a57)_0x380908['setAttributes']({...Fe,..._0x2861bc},_0x2066da);});});const _0x406cfa=(_0x57357b,_0x44c703)=>{_0x216e99['_suggestionFactory']['registerCustomCallback'](_0x57357b,'tablePaste',_0x44c703,(_0x4bd613,_0x27321f,_0x3f6687)=>{_0x5ad045['model']['change'](_0x251552=>{const _0x599ba2=[];for(const _0x2b1044 of _0x4bd613){const _0x439018=_0x2b1044['start']['nodeAfter'];_0x439018['is']('element','tableCellSuggestion')&&_0x599ba2['push'](_0x439018);}_0x216e99['_suggestionFactory']['getSuggestionCallback'](_0x57357b,null,_0x44c703)(_0x4bd613,_0x27321f,_0x3f6687);for(const _0x226f71 of _0x599ba2)'$graveyard'!=_0x226f71['root']['rootName']&&_0x251552['unwrap'](_0x226f71);});});};_0x406cfa('insertion','accept'),_0x406cfa('insertion','discard'),_0x406cfa('deletion','accept'),_0x406cfa('deletion','discard'),_0x216e99['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4ebcb1=>{const _0x57127f=_0x4ebcb1['map'](_0x114213=>_0x114213['getContainedElement']()),_0x50e960=_0x57127f[0x0]['findAncestor']('table'),{minRow:_0x245982,maxRow:_0x43bbf9}=_0x54c103['_getCoordsForCells'](_0x57127f);_0x5eb85c['removeRows'](_0x50e960,{'at':_0x245982,'rows':_0x43bbf9-_0x245982+0x1});}),_0x216e99['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x57d8a0=>{const _0x94b74f=_0x57d8a0['map'](_0x1d5917=>_0x1d5917['getContainedElement']()),_0x58481a=_0x94b74f[0x0]['findAncestor']('table'),{minColumn:_0x46ce91,maxColumn:_0x5f5a1e}=_0x54c103['_getCoordsForCells'](_0x94b74f);_0x5eb85c['removeColumns'](_0x58481a,{'at':_0x46ce91,'columns':_0x5f5a1e-_0x46ce91+0x1});});const _0x3eb138=(_0x987503,_0x1e193c)=>{if(!_0x1e193c['subType']||!_0x1e193c['subType']['startsWith']('tablePaste'))return;const _0x20b0d3=_0x1e193c['attributes']['tablePasteChainId'],_0xe48b19=_0x216e99['getSuggestions']()['filter'](_0x4b7606=>_0x4b7606['isInContent']&&_0x4b7606['attributes']&&_0x4b7606['attributes']['tablePasteChainId']==_0x20b0d3);_0xe48b19['length']&&_0x1e193c['getAllAdjacentSuggestions']()['length']!=_0xe48b19['length']&&_0xe48b19['reduce']((_0x2a160e,_0x3642bf)=>(_0x2a160e['next']=_0x3642bf,_0x3642bf['previous']=_0x2a160e,_0x3642bf));};function _0x54974f(_0x2c3ce4,_0x36a4aa=!0x0){const {id:_0xf71d2b,authorId:_0x16c8e5}=_0x413c95(_0x2c3ce4['markerName']),_0x48f864=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21abd5=_0x216e99['activeMarkers']['includes'](_0x2c3ce4['markerName']);return _0x21abd5&&_0x48f864['push']('ck-suggestion-marker--active'),{'classes':_0x48f864,'attributes':{'data-suggestion':_0xf71d2b,'data-author-id':_0x16c8e5},'priority':_0x21abd5&&_0x36a4aa?0xbc2:0xbb8};}_0x216e99['on']('suggestionLoaded',_0x3eb138,{'priority':'high'}),_0x216e99['on']('suggestionUnloaded',_0x3eb138,{'priority':'high'}),_0x5ad045['model']['document']['registerPostFixer'](()=>{let _0x110890=!0x1;const _0x68ea29=Array['from'](_0x5ad045['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58c303,data:_0x4d1d43}of _0x68ea29){const {group:_0x49f639,type:_0x50c90e,id:_0x3f65c3}=_0x413c95(_0x58c303);if('suggestion'!=_0x49f639||'deletion'!=_0x50c90e||_0x4d1d43['oldRange'])continue;if(!_0x216e99['hasSuggestion'](_0x3f65c3))continue;const _0xc041c2=_0x216e99['getSuggestion'](_0x3f65c3)['getRanges'](),_0x5dbd5d=_0x5ad045['plugins']['get']('Users')['me'];for(const _0x3b540f of _0x216e99['getSuggestions']()){if(!_0x3b540f['isInContent']||_0x3b540f['author']!=_0x5dbd5d)continue;if('formatBlock'!=_0x3b540f['type']||'tablePasteCell'!=_0x3b540f['subType'])continue;if(_0x3b540f['getRanges']()['every'](_0x170fb5=>_0xc041c2['some'](_0x1ce3bf=>_0x1ce3bf['containsRange'](_0x170fb5,!0x0)))){for(const _0x4ecda3 of _0x3b540f['getAllAdjacentSuggestions']())_0x4ecda3['isInContent']&&(_0x4ecda3['discard'](),_0x110890=!0x0);}}}return _0x110890;}),_0x5ad045['model']['document']['registerPostFixer'](_0x16288f=>{const _0x199ed1=_0x5ad045['commands']['get']('redo');if(!_0x199ed1||!_0x199ed1['_createdBatches']['has'](_0x16288f['batch']))return!0x1;let _0x4266d1=!0x1;const _0xbc9788=_0x5ad045['plugins']['get']('Users')['me'],_0x3b8eee=_0x5ad045['model']['document']['differ']['getChanges'](),_0x482045=Array['from'](_0x5ad045['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x43c4a4,data:_0x14803e})=>{const {group:_0x179ee8,subType:_0x6b925,authorId:_0x5f380a}=_0x413c95(_0x43c4a4);return'suggestion'==_0x179ee8&&'tablePaste'==_0x6b925&&_0x5f380a==_0xbc9788['id']&&!_0x14803e['oldRange'];});for(const _0x516948 of _0x3b8eee){if('insert'!=_0x516948['type']||'tableCellSuggestion'!=_0x516948['name']||0x1!=_0x516948['length'])continue;const _0x11cf9a=_0x16288f['createRange'](_0x516948['position'],_0x516948['position']['getShiftedBy'](0x1));if(!_0x482045['find'](({data:_0x167f50})=>_0x167f50['newRange']['isEqual'](_0x11cf9a))){for(const {name:_0x5a5e8b,data:_0x4cb0e7}of _0x482045)if(_0x11cf9a['containsRange'](_0x4cb0e7['newRange'])){_0x16288f['updateMarker'](_0x5a5e8b,{'range':_0x11cf9a}),_0x4266d1=!0x0;break;}}}return _0x4266d1;}),_0x5ad045['model']['document']['registerPostFixer'](_0x316c9c=>{let _0x541392=!0x1;const _0x423a02=_0x5ad045['plugins']['get']('Users')['me'],_0x4b6500=_0x216e99['getSuggestions']()['filter'](_0x22ae34=>_0x22ae34['isInContent']&&_0x22ae34['author']==_0x423a02),_0x2c2be7=new Set(),_0x10e88c=new Set();for(const _0x5a3ae4 of _0x4b6500)if('tablePaste'==_0x5a3ae4['subType'])for(const _0x37b000 of _0x5a3ae4['getMarkers']()){const _0x201b27=_0x37b000['getRange']()['getContainedElement']();if(_0x201b27){if(_0x201b27['is']('element','tableCellSuggestion')&&ve(_0x201b27)){_0x5a3ae4['removeMarker'](_0x37b000['name']),_0x2c2be7['add'](_0x201b27),_0x541392=!0x0;const _0x1e8bc2=_0x201b27['nextSibling'],_0x545131=_0x201b27['previousSibling'],_0x51189=_0x1e8bc2&&_0x1e8bc2['is']('element','tableCellSuggestion'),_0x3ac89=_0x545131&&_0x545131['is']('element','tableCellSuggestion');_0x51189&&!_0x2c2be7['has'](_0x1e8bc2)&&_0x10e88c['add'](_0x1e8bc2),_0x3ac89&&!_0x2c2be7['has'](_0x545131)&&_0x10e88c['add'](_0x545131);}else _0x201b27['is']('element','paragraph')&&_0x201b27['isEmpty']&&(_0x5a3ae4['removeMarker'](_0x37b000['name']),_0x541392=!0x0);}}else{if('tablePasteCell'==_0x5a3ae4['subType']){if(!_0x5a3ae4['attributes']||!_0x5a3ae4['attributes']['tablePasteChainId'])continue;const _0x52c766=_0x5a3ae4['attributes']['markerAttributes'];if(_0x52c766&&Object['keys'](_0x52c766)['length'])continue;const _0x291f55=_0x5a3ae4['attributes']['tablePasteChainId'];let _0xb0a62=!0x0,_0x5aba6e=!0x0;for(const _0x10e2b3 of _0x4b6500)if(_0x10e2b3['subType']&&_0x10e2b3['subType']['startsWith']('tablePaste')){if(!_0x10e2b3['attributes']['tablePasteChainId']){_0x5aba6e=!0x1;break;}if(_0x10e2b3['id']!=_0x5a3ae4['id']&&_0x10e2b3['attributes']['tablePasteChainId']==_0x291f55){_0xb0a62=!0x1;break;}}_0x5aba6e&&_0xb0a62&&(_0x5a3ae4['removeMarkers'](),_0x541392=!0x0);}}for(const _0x3eb259 of _0x2c2be7)_0x316c9c['remove'](_0x3eb259);for(const _0x21b58c of _0x10e88c)_0x316c9c['unwrap'](_0x21b58c);return _0x541392;}),_0x5ad045['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43b794=>_0x54974f(_0x43b794),'converterPriority':'high'}),_0x5ad045['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x131c94,_0x1f6dc7)=>_0x1f6dc7['options']['showSuggestionHighlights']?_0x54974f(_0x131c94,!0x1):null,'converterPriority':'high'});const _0x3ac61e=_0x5ad045['editing']['view'];this['listenTo'](_0x3ac61e['document'],'clipboardOutput',(_0xdb4c90,_0x1c6c1a)=>{const _0x3f5d7c=[];for(const _0x4ea1e5 of _0x3ac61e['createRangeIn'](_0x1c6c1a['content'])['getItems']())_0x4ea1e5['is']('element','suggestion-td')&&_0x3f5d7c['push'](_0x4ea1e5);_0x3ac61e['change'](_0x30b96c=>{for(const _0x2ef6b3 of _0x3f5d7c)_0x30b96c['move'](_0x30b96c['createRangeIn'](_0x2ef6b3),_0x30b96c['createPositionBefore'](_0x2ef6b3)),_0x30b96c['remove'](_0x2ef6b3);});});}}function ve(_0x108369){if(_0x108369['isEmpty'])return!0x0;const _0x454283=_0x108369['getChild'](0x0);return _0x454283['is']('element','paragraph')&&_0x454283['isEmpty'];}function xe(_0x1c95c6,_0x5c8ee5={},_0x45901a){for(const {isAnchor:_0x37aa51,cellHeight:_0x53dd0f,cellWidth:_0x151e4d}of _0x45901a['createTableWalker'](_0x1c95c6,{'includeAllSlots':!0x0,..._0x5c8ee5}))if(!_0x37aa51||0x1!=_0x53dd0f||0x1!=_0x151e4d)return!0x1;return!0x0;}class Pe extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x323a8e=this['editor']['plugins']['get']('TrackChangesEditing');_0x323a8e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x323a8e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x323a8e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x323a8e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x323a8e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x323a8e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4611ab,_0x3731f7){const _0x43bdf3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41c64e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x80b530=_0x3731f7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f72fc=_0x41c64e['getColumnGroupElement'](_0x80b530);let _0x5804c1=_0x3f72fc?_0x41c64e['getTableColumnsWidths'](_0x3f72fc):null,_0x494709=_0x80b530['getAttribute']('tableWidth')||null;const _0x4ccaaf=_0x3731f7['tableWidth']||_0x494709,_0x1c359d=_0x3731f7['columnWidths']||_0x5804c1,_0x2b0203=this['editor']['plugins']['get']('Users')['me'];for(const _0x163c28 of _0x43bdf3['getSuggestions']()){const _0x4e3101=_0x163c28['getContainedElement']();if('resizeTable'===_0x163c28['subType']&&_0x4e3101===_0x80b530){_0x163c28['author']!==_0x2b0203&&_0x163c28['discard']();const _0x4b7b9b=_0x163c28['data']['commandParams'];_0x494709=_0x4b7b9b[0x0]['tableWidth'],_0x5804c1=_0x4b7b9b[0x0]['columnWidths'];break;}}_0x4611ab({'table':_0x80b530,'tableWidth':_0x4ccaaf,'columnWidths':_0x1c359d}),_0x43bdf3['markBlockFormat'](_0x80b530,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x494709,'columnWidths':_0x5804c1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1db59b){if('formatBlock'!=_0x1db59b['type']&&'formatInline'!=_0x1db59b['type'])return;const {data:_0x2c1fac}=_0x1db59b;if(_0x2c1fac&&'resizeTable'===_0x2c1fac['formatGroupId']){const _0x151298='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x151298)};}}}class Ue extends _0x55ebc7{['afterInit'](){const _0x325fc2=this['editor'];_0x325fc2['plugins']['has']('Template')&&_0x325fc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x55ebc7{['afterInit'](){const _0x23f2da=this['editor'];if(!_0x23f2da['commands']['get']('insertTableOfContents'))return;_0x23f2da['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x13faa1=_0x23f2da['plugins']['get']('TrackChangesEditing'),_0x4051e2=_0x23f2da['locale'];_0x13faa1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3aa7fa=>At(_0x4051e2,'ELEMENT_TABLE_OF_CONTENTS',_0x3aa7fa));}}class He extends _0x55ebc7{['afterInit'](){const _0x23fd14=this['editor'];if(!_0x23fd14['plugins']['has']('Title'))return;_0x23fd14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x23fd14['locale'],'ELEMENT_TITLE')),_0x23fd14['model']['document']['registerPostFixer'](_0x4a384c=>{let _0x209d9b=!0x1;const _0x108dee=Array['from'](_0x23fd14['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bbf2d,data:_0x122c61}of _0x108dee){const {group:_0x4e9afd}=_0x413c95(_0x1bbf2d);if('suggestion'!==_0x4e9afd||!_0x122c61['newRange'])continue;const _0x5bb90b=_0x122c61['newRange'],_0x3e1b69=_0x5bb90b['end']['nodeBefore'];if(!_0x3e1b69||!_0x3e1b69['is']('element','title-content'))continue;if(!_0x5bb90b['start']['isTouching'](_0x5bb90b['end']))continue;const _0x2e306e=_0x23fd14['model']['schema']['getNearestSelectionRange'](_0x5bb90b['end'],'forward');if(_0x2e306e&&_0x2e306e['isCollapsed']){const _0x4b3bfa=_0x4a384c['createRange'](_0x5bb90b['start'],_0x2e306e['start']);_0x4b3bfa['isEqual'](_0x5bb90b)||(_0x4a384c['updateMarker'](_0x1bbf2d,{'range':_0x4b3bfa}),_0x209d9b=!0x0);}_0x209d9b||(_0x4a384c['removeMarker'](_0x1bbf2d),_0x209d9b=!0x0);}return _0x209d9b;});}}class $e extends _0x55ebc7{['afterInit'](){const _0x5a846c=this['editor'],_0x520a22=_0x5a846c['plugins']['get']('TrackChangesEditing');_0x5a846c['plugins']['has']('Uploadcare')&&(_0x520a22['enableCommand']('uploadcare'),_0x5a846c['plugins']['has']('UploadcareImageEdit')&&(_0x520a22['enableCommand']('uploadcareImageEdit'),_0x520a22['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x520a22['descriptionFactory']['registerDescriptionCallback'](_0x27c07d=>{if('attribute'!=_0x27c07d['type'])return;const {data:_0x2eab39}=_0x27c07d;return _0x2eab39&&'uploadcareImageId'==_0x2eab39['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x55ebc7{['afterInit'](){const _0x1977c9=this['editor'],_0x5aed46=_0x1977c9['plugins']['get']('TrackChangesEditing');_0x1977c9['plugins']['has']('UndoEditing')&&(_0x5aed46['enableCommand']('undo'),_0x5aed46['enableCommand']('redo'));}}class Ve extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x28190b=this['editor'];if(!_0x28190b['plugins']['has']('TableCaptionEditing'))return;_0x28190b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x55ebc7{['tableProperties'];['tableCellProperties'];constructor(_0x5be6e7){super(_0x5be6e7),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 _0x2180f3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x278efc of this['tableProperties'])_0x2180f3['enableCommand'](_0x278efc,(_0x2eeeeb,_0x4dae4d)=>{const _0x50bb58=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x278efc,[_0x50bb58],this['tableProperties'],'tableProperties',_0x2eeeeb,_0x4dae4d);});_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2180f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b0ff2,_0x309eef)=>this['handleDiscardAction'](this['tableProperties'],_0x4b0ff2,_0x309eef)),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1cbb97 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1cbb97)&&_0x2180f3['enableCommand'](_0x1cbb97,(_0x21b690,_0x2612e6)=>{const _0x5101b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1cbb97,_0x5101b6,this['tableCellProperties'],'tableCellProperties',_0x21b690,_0x2612e6);});_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2180f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e0044,_0x4fb820)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e0044,_0x4fb820)),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2180f3['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2180f3['descriptionFactory']['registerDescriptionCallback'](_0x5ee2a2=>this['handleSuggestionDescription'](_0x5ee2a2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1f2134,_0x288025,_0x3b76b2,_0x48f1eb,_0x1e0f8f,_0x29a280){const _0x47ec2f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x29a280['batch'],()=>{for(const _0x5f2157 of _0x288025){if(this['_getSuggestion'](_0x5f2157,_0x48f1eb))_0x1e0f8f(_0x29a280);else{const _0x3b31d1={};for(const _0x3b765f of _0x3b76b2){const _0x5e57a5=_0x5f2157['getAttribute'](_0x3b765f);void 0x0!==_0x5e57a5&&(_0x3b31d1[_0x3b765f]=_0x5e57a5);}_0x1e0f8f(_0x29a280),_0x47ec2f['markBlockFormat'](_0x5f2157,{'commandParams':[_0x3b31d1]},[],_0x48f1eb);}}});}['handleDiscardAction'](_0x23c728,_0x61d13a,_0xf4b86d){const _0x28bf61=_0x61d13a[0x0]['start']['nodeAfter'],_0x1fcb47=_0xf4b86d['commandParams'][0x0];this['editor']['model']['change'](_0x1411b6=>{for(const _0x17a117 of _0x23c728)void 0x0!==_0x1fcb47[_0x17a117]?_0x1411b6['setAttribute'](_0x17a117,_0x1fcb47[_0x17a117],_0x28bf61):_0x1411b6['removeAttribute'](_0x17a117,_0x28bf61);});}['handleSuggestionDescription'](_0x133a31){if(_0x133a31['data'])switch(_0x133a31['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x381005,_0x4cd5cb){const _0x268fbe=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4285a7 of _0x268fbe['getSuggestions']({'skipNotAttached':!0x0})){const _0x35ecf8=_0x4285a7['getContainedElement']();if(_0x4285a7['subType']===_0x4cd5cb&&_0x35ecf8===_0x381005)return _0x4285a7;}return null;}['_registerTablePropertiesAttributes'](){const _0x4f6205=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d9bf4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x15c5c1 of _0x5d9bf4){const _0x3a016a=_0x15c5c1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4f6205['descriptionFactory']['registerAttributeLabel'](_0x15c5c1,At(this['editor']['locale'],'FORMAT_'+_0x3a016a));}}}class ze extends _0x55ebc7{['afterInit'](){const _0x31eac9=this['editor'];if(!_0x31eac9['plugins']['has']('LineHeight'))return;const _0x2338f8=_0x31eac9['plugins']['get']('TrackChangesEditing'),_0x3d6736=_0x31eac9['locale'];_0x2338f8['enableDefaultAttributesIntegration']('lineHeight'),_0x2338f8['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x3d6736,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x55ebc7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3c2b56,_0x3517fc,_0x4c8879,_0x3baa53,_0x3c2b55,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x579589){super(_0x579589),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x31e9de,_0x3d23e5,_0x487334,_0x144893)=>{this['_model']['change'](()=>{for(const _0x28a540 of[..._0x144893,..._0x487334])this['_model']['markers']['has'](_0x28a540)&&_0x579589['editing']['reconvertMarker'](_0x28a540);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x579589['plugins']['get'](_0x3c2b56),this['_suggestionsConversion']=_0x579589['plugins']['get'](_0x3517fc),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x579589['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x579589['config']['get']('trackChanges.trackFormatChanges'),_0x579589['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x579589['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x579589,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x513cc7=this['editor'];_0x513cc7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2448cf,{writer:_0xe071d8})=>{let _0x2a152a='suggestion:'+_0x2448cf['getAttribute']('suggestion-type')+':'+_0x2448cf['getAttribute']('id');return _0x2448cf['getAttribute']('marker-count')&&(_0x2a152a+=':'+_0x2448cf['getAttribute']('marker-count')),_0xe071d8['createElement']('$marker',{'data-name':_0x2a152a});}}),_0x513cc7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x513cc7['model']['document']['registerPostFixer'](_0x5ac4df=>{let _0x252cda=!0x1;const _0x4ae4c7=Array['from'](_0x513cc7['model']['document']['differ']['getChangedMarkers']()),_0x340957=new Set();for(const {name:_0x2ae5d3,data:_0xa06969}of _0x4ae4c7){const {group:_0x546a27,type:_0x10378e,subType:_0x60a8a6,id:_0x301557}=_0x413c95(_0x2ae5d3);if('suggestion'!==_0x546a27)continue;const _0x203c66=_0x60a8a6?'suggestion:'+_0x10378e+':'+_0x60a8a6+':'+_0x301557:'suggestion:'+_0x10378e+':'+_0x301557,_0xffdebd=_0x513cc7['model']['markers']['getMarkersGroup'](_0x203c66),_0x6d43e9=_0x513cc7['model']['markers']['get'](_0x2ae5d3),_0x280b0e=this['_suggestions']['get'](_0x301557);if(null!=_0xa06969['newRange']){'formatInline'==_0x10378e&&(_0x252cda=_0x252cda||Ze(_0xa06969['newRange'],_0x2ae5d3,_0x5ac4df,_0x513cc7['model']['schema']));const _0x1834c8='attribute'==_0x10378e&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x60a8a6)),_0xe00882='attribute'==_0x10378e&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x60a8a6));if(_0xa06969['newRange']['isCollapsed']||'$graveyard'==_0xa06969['newRange']['root']['rootName']||'formatBlock'==_0x10378e&&!tn(_0xa06969['newRange'])||_0x1834c8&&!tn(_0xa06969['newRange'])||_0xe00882&&en(_0xa06969['newRange'])||'deletion'==_0x10378e&&en(_0xa06969['newRange'])||_0x6d43e9&&nn(_0x6d43e9,_0xffdebd))_0x5ac4df['removeMarker'](_0x2ae5d3),_0x252cda=!0x0;else{if(!_0x280b0e||!_0x280b0e['isInContent'])continue;if(_0xa06969['newRange']&&_0xa06969['oldRange']&&_0xa06969['newRange']['isEqual'](_0xa06969['oldRange']))continue;_0x340957['add'](_0x280b0e);}}}return _0x340957['size']>0x0&&(_0x252cda=!!this['_joinWithAdjacentSuggestions'](_0x340957)||_0x252cda),_0x252cda;}),_0x513cc7['model']['document']['registerPostFixer'](_0x209315=>{let _0x259689=!0x1;for(const _0x43ca9d of _0x513cc7['model']['document']['differ']['getChanges']())if('insert'==_0x43ca9d['type'])for(const _0x22587e of this['_suggestions']['values']()){if(_0x22587e['isMultiRange']||!_0x22587e['isInContent'])continue;const _0x36ccfb='formatBlock'==_0x22587e['type'],_0x22074f=this['_getAttributeKey'](_0x22587e),_0x1538a9=_0x22074f&&this['_suggestionsConversion']['isBlockAttribute'](_0x22074f);if(!_0x36ccfb&&!_0x1538a9)continue;const _0x4cce9c=_0x22587e['getFirstRange']();if(_0x4cce9c['start']['parent']!=_0x4cce9c['end']['parent']&&!_0x4cce9c['end']['isAtEnd']){const _0x2f27f3=_0x513cc7['model']['createPositionAt'](_0x4cce9c['start']['nodeAfter'],'end'),_0x21289b=_0x513cc7['model']['createRange'](_0x4cce9c['start'],_0x2f27f3);_0x209315['updateMarker'](_0x22587e['getFirstMarker'](),{'range':_0x21289b}),_0x259689=!0x0;}}return _0x259689;}),_0x513cc7['model']['document']['registerPostFixer'](_0x4069cb=>this['_processAttributeChanges'](_0x4069cb)),_0x513cc7['model']['document']['registerPostFixer'](_0x2feb60=>!_0x2feb60['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2feb60)),_0x513cc7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x513cc7['model']['document']['on']('change:data',(_0x385045,_0x66b138)=>{if(!_0x66b138['isLocal']||_0x66b138['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x93ca75=_0x513cc7['model']['document']['differ']['getChanges']();if(0x0==_0x93ca75['length'])return;const _0x54fda1=[],_0x4a27b7=_0x93ca75['filter'](_0x3ee798=>'attribute'==_0x3ee798['type']),_0x334afd=_0x93ca75['filter'](_0x943739=>'insert'==_0x943739['type']&&'$text'!=_0x943739['name']);for(const _0x1b2e97 of _0x4a27b7)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1b2e97['attributeKey'])&&_0x54fda1['push']({'key':_0x1b2e97['attributeKey'],'newValue':_0x1b2e97['attributeNewValue'],'oldValue':_0x1b2e97['attributeOldValue'],'range':sn(_0x1b2e97['range'],_0x513cc7['model'])});for(const _0x5c50fa of _0x334afd){if('rename'!=_0x5c50fa['action']&&'refresh'!=_0x5c50fa['action'])continue;const _0x3e468f=rn(_0x5c50fa['position']['nodeAfter'],_0x513cc7['model']),_0xd7e36c=_0x5c50fa['before'];'rename'==_0x5c50fa['action']&&_0x54fda1['push']({'key':Ke,'newValue':_0x5c50fa['name'],'oldValue':_0xd7e36c['name'],'range':_0x3e468f});for(const [_0x1c1729,_0x56f11c]of _0xd7e36c['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1c1729))continue;const _0xc22241=_0x5c50fa['attributes']['get'](_0x1c1729);_0x56f11c!==_0xc22241&&_0x54fda1['push']({'key':_0x1c1729,'newValue':_0xc22241,'oldValue':_0x56f11c,'range':_0x3e468f});}for(const [_0x26a8c8,_0x5ebfb5]of _0x5c50fa['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x26a8c8)&&(_0xd7e36c['attributes']['has'](_0x26a8c8)||_0x54fda1['push']({'key':_0x26a8c8,'newValue':_0x5ebfb5,'oldValue':null,'range':_0x3e468f}));}0x0!=_0x54fda1['length']&&_0x513cc7['model']['enqueueChange'](_0x66b138,_0x33ff35=>{const _0x3dbfc8=_0x493bce();for(const {range:_0x5a2b01,key:_0x48fe0b,oldValue:_0x472354,newValue:_0x3a1498}of _0x54fda1)this['markAttributeChange'](_0x5a2b01,_0x48fe0b,_0x472354,_0x3a1498,{'groupId':_0x3dbfc8});this['_reduceExistingSuggestions'](_0x33ff35,_0x54fda1);});},{'priority':'lowest'}),_0x513cc7['model']['markers']['on']('update:suggestion',(_0x5d6356,_0x392859,_0x3e6642)=>{if(null==_0x3e6642){const {id:_0x3456f7}=_0x413c95(_0x392859['name']),_0x154e9d=this['_suggestions']['get'](_0x3456f7);_0x154e9d&&_0x154e9d['addMarkerName'](_0x392859['name']);}}),_0x513cc7['model']['document']['on']('change:data',()=>{const _0x505795=Array['from'](_0x513cc7['model']['document']['differ']['getChangedMarkers']())['filter'](_0xf740a3=>'suggestion'===_0x413c95(_0xf740a3['name'])['group']);if(0x0===_0x505795['length'])return;_0x505795['sort']((_0x523e36,_0xca067b)=>{const _0xffce41=_0x523e36['data']['oldRange'],_0x571e32=_0xca067b['data']['oldRange'];return null===_0xffce41&&null===_0x571e32?0x0:null===_0xffce41&&null!==_0x571e32?-0x1:null!==_0xffce41&&null===_0x571e32?0x1:_0xffce41['start']['isBefore'](_0x571e32['start'])?-0x1:0x1;});const _0x4ee1aa=new Set(),_0x4748c1=new Set();for(const {name:_0x56a68e,data:_0x249796}of _0x505795){const {id:_0x3bae94}=_0x413c95(_0x56a68e);if(null===_0x249796['oldRange']){const _0x298568=this['_handleNewSuggestionMarker'](_0x56a68e);_0x4748c1['add'](_0x298568);}else{const _0x353e84=this['_suggestions']['get'](_0x3bae94);null!==_0x249796['newRange']||_0x353e84['isInContent']?(_0x4ee1aa['add'](_0x353e84['head']),_0x4748c1['add'](_0x353e84)):this['_removeSuggestion'](_0x353e84);}}_0x4748c1['size']>0x0&&this['_refreshSuggestionsChain'](_0x4748c1);for(const _0x14e8c6 of _0x4ee1aa)this['fire']('suggestionChanged',_0x14e8c6);}),_0x513cc7['model']['on']('applyOperation',(_0x3d25d7,_0x5ea338)=>{const _0x2f2577=_0x5ea338[0x0];if(!this['_suggestions']['size'])return;if(!_0x2f2577['isDocumentOperation'])return;if(_0x2f2577['batch']['isUndo']||!_0x2f2577['batch']['isLocal'])return;let _0x45161d,_0x58e598;switch(_0x2f2577['type']){case'insert':_0x45161d=_0x513cc7['model']['createPositionAt'](_0x2f2577['position']),_0x58e598=_0x45161d['getShiftedBy'](_0x2f2577['howMany']);break;case'split':_0x45161d=_0x513cc7['model']['createPositionAt'](_0x2f2577['splitPosition']),_0x58e598=_0x513cc7['model']['createPositionAt'](_0x2f2577['moveTargetPosition']);break;case'move':_0x45161d=_0x513cc7['model']['createPositionAt'](_0x2f2577['targetPosition']),_0x58e598=_0x45161d['getShiftedBy'](_0x2f2577['howMany']);break;default:return;}const _0x4146b4=_0x513cc7['model']['createRange'](_0x45161d,_0x58e598);_0x513cc7['model']['change'](()=>{for(const {suggestion:_0x2ea478,meta:_0x427c0e}of this['_findSuggestions'](_0x4146b4)){if(_0x2ea478['isMultiRange'])continue;if('formatInline'==_0x2ea478['type'])continue;const _0x1fc42a=this['_getAttributeKey'](_0x2ea478);if(_0x1fc42a&&this['_suggestionsConversion']['isBlockAttribute'](_0x1fc42a)&&'split'!=_0x2f2577['type'])continue;const _0x10902b=_0x2ea478['data']&&_0x2ea478['data']['multipleBlocks'];('formatBlock'!=_0x2ea478['type']||'split'==_0x2f2577['type']&&!_0x10902b)&&(_0x427c0e['containsRangeInObject']||'insertion'==_0x2ea478['type']&&_0x427c0e['isOwn']||_0x2ea478['getFirstRange']()['containsRange'](_0x4146b4)&&this['_breakSuggestionMarker'](_0x2ea478,_0x45161d,_0x58e598));}});},{'priority':'lowest'}),_0x513cc7['model']['on']('deleteContent',(_0x36791f,_0x226fd6)=>{const _0x5604f8=_0x226fd6[0x0],_0x2c4cba=_0x226fd6[0x1];if(_0x2c4cba&&_0x2c4cba['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5604f8['isCollapsed'])return;const _0x51e7b1=_0x513cc7['model']['schema'],{start:_0x471c3d,end:_0x33afc8}=_0x5604f8['getFirstRange'](),_0x234f82=_0x471c3d['nodeAfter']&&_0x51e7b1['isLimit'](_0x471c3d['nodeAfter'])?null:_0x51e7b1['getNearestSelectionRange'](_0x471c3d,'forward'),_0x5a6a3f=_0x33afc8['nodeBefore']&&_0x51e7b1['isLimit'](_0x33afc8['nodeBefore'])?null:_0x51e7b1['getNearestSelectionRange'](_0x33afc8,'backward'),_0x2333e1=_0x513cc7['model']['createRange'](_0x234f82?_0x234f82['start']:_0x471c3d,_0x5a6a3f?_0x5a6a3f['end']:_0x33afc8);_0x513cc7['model']['change'](_0x3d5718=>{this['markDeletion'](_0x2333e1);const _0xb2f1d5=_0x513cc7['model']['schema']['getNearestSelectionRange'](_0x2333e1['start']);_0x5604f8['is']('documentSelection')?_0x3d5718['setSelection'](_0xb2f1d5):_0x5604f8['setTo'](_0xb2f1d5);}),_0x36791f['stop']();},{'priority':_0x58c127['normal']+0xa}),_0x513cc7['model']['on']('insertContent',(_0x3e9a9e,_0x135561)=>{const _0x24c1b5=_0x135561[_0x135561['length']-0x1];_0x24c1b5&&_0x24c1b5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x513cc7['model']['change'](()=>{let _0x26e4dd=_0x513cc7['model']['insertContent'](_0x135561[0x0],_0x135561[0x1],_0x135561[0x2],{'forceDefaultExecution':!0x0});if(!_0x26e4dd)return;_0x3e9a9e['return']=_0x26e4dd['clone']();const _0x1995a7=_0x26e4dd['end']['nodeBefore'],_0x45dd3a=_0x513cc7['model']['schema'];_0x1995a7&&_0x45dd3a['isBlock'](_0x1995a7)&&!_0x45dd3a['isObject'](_0x1995a7)&&(_0x26e4dd=_0x513cc7['model']['createRange'](_0x26e4dd['start'],_0x513cc7['model']['createPositionAt'](_0x1995a7,'end'))),this['markInsertion'](_0x26e4dd);}),_0x3e9a9e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c50c1=new dt(_0x513cc7,this['_suggestions']);_0x513cc7['commands']['add']('acceptSuggestion',_0x5c50c1),this['enableCommand']('acceptSuggestion');const _0x243335=new ft(_0x513cc7,this['_suggestions']);_0x513cc7['commands']['add']('discardSuggestion',_0x243335),this['enableCommand']('discardSuggestion'),_0x513cc7['commands']['add']('acceptAllSuggestions',new Lt(_0x513cc7,_0x5c50c1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x513cc7['commands']['add']('discardAllSuggestions',new Lt(_0x513cc7,_0x243335,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x513cc7['commands']['add']('acceptSelectedSuggestions',new It(_0x513cc7,_0x5c50c1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x513cc7['commands']['add']('discardSelectedSuggestions',new It(_0x513cc7,_0x243335,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x155ce3=_0x513cc7['plugins']['get'](_0x3c2b56);this['listenTo'](_0x155ce3,'addComment',(_0x54d670,{threadId:_0x27b43e})=>{const _0x471abe=this['_suggestions']['get'](_0x27b43e);_0x471abe&&_0x471abe['commentThread']&&0x1===_0x471abe['commentThread']['length']&&this['_updateSuggestionData'](_0x27b43e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x155ce3,'removeComment',(_0x59d638,{threadId:_0x7472e6})=>{const _0x407e42=this['_suggestions']['get'](_0x7472e6);_0x407e42&&_0x407e42['commentThread']&&!_0x407e42['commentThread']['length']&&this['_updateSuggestionData'](_0x7472e6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x10910b){const _0x49a2b0=_0x22fed6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x340d11=0x3d8d0df,_0x3d9aa8=0x3df559f^_0x340d11,_0x456c67=window[_0x22fed6([0x44,0x61,0x74,0x65])][_0x22fed6([0x6e,0x6f,0x77])](),_0x1ae7d7=_0x10910b[_0x22fed6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35c5e2=new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158563=>{_0x1ae7d7[_0x22fed6([0x6f,0x6e,0x63,0x65])](_0x22fed6([0x72,0x65,0x61,0x64,0x79]),_0x158563);}),_0x29c2be={[_0x22fed6([0x6b,0x74,0x79])]:_0x22fed6([0x45,0x43]),[_0x22fed6([0x75,0x73,0x65])]:_0x22fed6([0x73,0x69,0x67]),[_0x22fed6([0x63,0x72,0x76])]:_0x22fed6([0x50,0x2d,0x32,0x35,0x36]),[_0x22fed6([0x78])]:_0x22fed6([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x22fed6([0x79])]:_0x22fed6([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x22fed6([0x61,0x6c,0x67])]:_0x22fed6([0x45,0x53,0x32,0x35,0x36])},_0xecaf7d=_0x1ae7d7[_0x22fed6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22fed6([0x67,0x65,0x74])](_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc1b2e(){let _0x1be70,_0x333e15=null,_0x3d0b39=null;try{if(_0xecaf7d==_0x22fed6([0x47,0x50,0x4c]))return _0x22fed6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1be70=_0x533021(),!_0x1be70)return _0x22fed6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1be70[_0x22fed6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d0b39=_0x425827(_0x1be70[_0x22fed6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1be70[_0x22fed6([0x6a,0x74,0x69])])),await _0x22cc42()?_0x51d96b()?_0x449145()?_0x22fed6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1624b5()?(_0x1be70[_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22fed6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x333e15=_0x5660c9(_0x22fed6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b565c()):_0x22fed6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22fed6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22fed6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22fed6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x449145(){const _0x2b058a=[_0x22fed6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22fed6([0x74,0x72,0x69,0x61,0x6c])][_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1be70[_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x456c67/0x3e8:0xe10*_0x3d9aa8;return _0x1be70[_0x22fed6([0x65,0x78,0x70])]<_0x2b058a;}function _0x51d96b(){const _0x2c6efa=_0x1be70[_0x22fed6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c6efa)return!0x1;if(_0x2c6efa[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x2a])))return!0x0;if(_0x2c6efa[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x54,0x43])))return!0x0;if(_0x2c6efa[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x52,0x54,0x43]))){if(_0x4b37d0())return!0x0;if(_0x578ee2()||_0x2ba196())return!0x0;}return!0x1;}function _0x1624b5(){const _0x579326=_0x1be70[_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x579326||0x0==_0x579326[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31389d}=new URL(window[_0x22fed6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x579326[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31389d))return!0x0;const _0x4add2c=_0x31389d[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e]));return _0x579326[_0x22fed6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ce43=>_0x6ce43[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x2a])))[_0x22fed6([0x6d,0x61,0x70])](_0x5605ee=>_0x5605ee[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e])))[_0x22fed6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x456fdb=>_0x456fdb[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4add2c[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22fed6([0x6d,0x61,0x70])](_0x893f4=>Array(_0x4add2c[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x893f4[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22fed6([0x66,0x69,0x6c,0x6c])](_0x893f4[0x0]===_0x22fed6([0x2a])?_0x22fed6([0x2a]):'')[_0x22fed6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x893f4))[_0x22fed6([0x73,0x6f,0x6d,0x65])](_0x364c97=>_0x4add2c[_0x22fed6([0x65,0x76,0x65,0x72,0x79])]((_0x1be5d8,_0x50301f)=>_0x364c97[_0x50301f]===_0x1be5d8||_0x364c97[_0x50301f]===_0x22fed6([0x2a])));}function _0x3b565c(){return _0x333e15&&_0x3d0b39?new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39bbe3,_0x553558)=>{_0x333e15[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x39bbe3,_0x553558),_0x3d0b39[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x259e0e=>{_0x259e0e!=_0x22fed6([0x56,0x61,0x6c,0x69,0x64])&&_0x39bbe3(_0x259e0e);},_0x553558);}):_0x333e15||_0x3d0b39||_0x22fed6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x425827(_0x218ef7,_0xda4f72){return new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4379cb=>{if(_0x4842c6())return _0x4379cb(_0x22fed6([0x56,0x61,0x6c,0x69,0x64]));_0x21809a(),_0x1ae7d7[_0x22fed6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22fed6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x253ac2=!0x1;const _0x2b7e97=_0x493bce();function _0x16e3b5(_0x1b7763){return!!_0x1b7763&&(typeof _0x1b7763===_0x22fed6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b7763===_0x22fed6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b7763[_0x22fed6([0x74,0x68,0x65,0x6e])]===_0x22fed6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b7763[_0x22fed6([0x63,0x61,0x74,0x63,0x68])]===_0x22fed6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15fa49(_0xcf1b9b){_0x30e3c2(_0xcf1b9b)[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x5c9bf8=>{if(!_0x5c9bf8||_0x5c9bf8[_0x22fed6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22fed6([0x6f,0x6b]))return _0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27e8b9(_0x1b15a0(_0x2b7e97+_0xda4f72))!=_0x5c9bf8[_0x22fed6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22fed6([0x56,0x61,0x6c,0x69,0x64]);})[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x508bb5=>(_0x40195b(),_0x508bb5),()=>{const _0x548801=_0x1df06d();return null==_0x548801?(_0x40195b(),_0x22fed6([0x56,0x61,0x6c,0x69,0x64])):_0x22fed6(_0x456c67-_0x548801>(0x27d454df^_0x340d11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x4379cb)[_0x22fed6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4379cb(_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18d5bc=0x3ee3e5f^_0x340d11;function _0x40195b(){const _0x8455fd=_0x22fed6([0x6c,0x6c,0x63,0x74,0x2d])+_0x27e8b9(_0x1b15a0(_0x218ef7)),_0x4fcea6=_0x3d62d5(_0x27e8b9(window[_0x22fed6([0x4d,0x61,0x74,0x68])][_0x22fed6([0x63,0x65,0x69,0x6c])](_0x456c67/_0x18d5bc)));window[_0x22fed6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22fed6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8455fd,_0x4fcea6);}function _0x1df06d(){const _0x1a92eb=_0x22fed6([0x6c,0x6c,0x63,0x74,0x2d])+_0x27e8b9(_0x1b15a0(_0x218ef7)),_0x41d112=window[_0x22fed6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22fed6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a92eb);return _0x41d112?window[_0x22fed6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d62d5(_0x41d112),0x10)*_0x18d5bc:null;}function _0x30e3c2(_0x4f7677){return new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cb332,_0x2419e4)=>{_0x4f7677[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x4cb332,_0x2419e4),window[_0x22fed6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2419e4,0x3d9041f^_0x340d11);});}}_0x1ae7d7[_0x22fed6([0x6f,0x6e])](_0x22fed6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c4a58,_0x53f4c5)=>{if(_0x53f4c5[0x0]!=_0x218ef7)return _0x4379cb(_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53f4c5[0x1]={..._0x53f4c5[0x1],[_0x22fed6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b7e97};},{[_0x22fed6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22fed6([0x68,0x69,0x67,0x68])}),_0x1ae7d7[_0x22fed6([0x6f,0x6e])](_0x22fed6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2362f3=>{_0x16e3b5(_0x2362f3[_0x22fed6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x253ac2=!0x0,_0x15fa49(_0x2362f3[_0x22fed6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22fed6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22fed6([0x6c,0x6f,0x77])}),_0x35c5e2[_0x22fed6([0x74,0x68,0x65,0x6e])](()=>{_0x253ac2||_0x4379cb(_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4842c6(){return _0x1ae7d7[_0x22fed6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22fed6([0x76,0x69,0x65,0x77])][_0x22fed6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22fed6([0x61,0x75,0x74,0x6f]);}function _0x21809a(){_0x1ae7d7[_0x22fed6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22fed6([0x76,0x69,0x65,0x77])][_0x22fed6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22fed6([0x61,0x75,0x74,0x6f]);}}function _0x5660c9(_0x1f3dc3){const _0x2c664f=[new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a08e9=>setTimeout(_0x1a08e9,0x3d1ee13^_0x340d11)),_0x35c5e2[_0x22fed6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f7d49=>{let _0x342814=0x0;_0x1ae7d7[_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c])][_0x22fed6([0x6f,0x6e])](_0x22fed6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30fa2f,_0xbaed05)=>{_0xbaed05[0x0][_0x22fed6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x342814++,_0x342814==(0x3d8d537^_0x340d11)&&(_0x3f7d49(),_0x30fa2f[_0x22fed6([0x6f,0x66,0x66])]());});}))];return window[_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22fed6([0x72,0x61,0x63,0x65])](_0x2c664f)[_0x22fed6([0x74,0x68,0x65,0x6e])](()=>_0x1f3dc3);}async function _0x3b90d2(){await _0x35c5e2,_0x1ae7d7[_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c])][_0x22fed6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x369ad0,_0x1ae7d7[_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c])][_0x22fed6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x369ad0,_0x1ae7d7[_0x22fed6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b37d0(){return _0x228dfd(_0x22fed6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5f2c3e(_0x22fed6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22fed6([0x73,0x74,0x61,0x74,0x65])]==_0x22fed6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x578ee2(){return _0x228dfd(_0x22fed6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2ba196(){return _0x228dfd(_0x22fed6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x46fef5(_0x28f2d3){const _0x4ec3f7=_0x17e9f1();_0x1ae7d7[_0x4ec3f7]=_0x22fed6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28f2d3,_0x28f2d3!=_0x22fed6([0x56,0x61,0x6c,0x69,0x64])&&_0x3b90d2();}function _0x17e9f1(){const _0x1af3cf=window[_0x22fed6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22fed6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22fed6([0x6e,0x6f,0x77])]())[_0x22fed6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22fed6([0x2e]),'');let _0x266ed8=_0x22fed6([0x52]);for(let _0x186da0=0x0;_0x186da0<_0x1af3cf[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x186da0+=0x2){let _0x4e959d=window[_0x22fed6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af3cf[_0x22fed6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x186da0,_0x186da0+0x2));_0x4e959d>=_0x49a2b0[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e959d-=_0x49a2b0[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x266ed8+=_0x49a2b0[_0x4e959d];}return _0x266ed8;}function _0x533021(){const _0x247ea2=_0xecaf7d[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e]));if(0x3!=_0x247ea2[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x62c70d(_0x247ea2[0x1]);function _0x62c70d(_0x4be8e8){const _0x3a36a0=_0x1abb44(_0x4be8e8);return _0x3a36a0&&_0x3d9230()?_0x3a36a0:null;function _0x3d9230(){const _0x5e3f80=_0x3a36a0[_0x22fed6([0x6a,0x74,0x69])],_0x509ae7=window[_0x22fed6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e3f80[_0x22fed6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e3f80[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6814c3={..._0x3a36a0,[_0x22fed6([0x6a,0x74,0x69])]:_0x5e3f80[_0x22fed6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e3f80[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6814c3[_0x22fed6([0x76,0x63])],_0x1b15a0(_0x6814c3)==_0x509ae7;}}}async function _0x22cc42(){let _0x180ffb=!0x0;try{const _0x602978=_0xecaf7d[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e])),[_0x46aa63,_0x5303f8,_0x13342f]=_0x602978;return _0x175901(_0x46aa63),await _0x445501(_0x46aa63,_0x5303f8,_0x13342f),_0x180ffb;}catch{return!0x1;}function _0x175901(_0x58f725){const _0x11f7c0=_0x1abb44(_0x58f725);_0x11f7c0&&_0x11f7c0[_0x22fed6([0x61,0x6c,0x67])]==_0x22fed6([0x45,0x53,0x32,0x35,0x36])||(_0x180ffb=!0x1);}async function _0x445501(_0x47679b,_0x1a8a6a,_0x1fc295){const _0x4d220e=window[_0x22fed6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22fed6([0x66,0x72,0x6f,0x6d])](_0x3738f2(_0x1fc295),_0x5a8d4f=>_0x5a8d4f[_0x22fed6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2eac94=new window[(_0x22fed6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22fed6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47679b+_0x22fed6([0x2e])+_0x1a8a6a),_0x43578b=window[_0x22fed6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22fed6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43578b)return;const _0x26c357=await _0x43578b[_0x22fed6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22fed6([0x6a,0x77,0x6b]),_0x29c2be,{[_0x22fed6([0x6e,0x61,0x6d,0x65])]:_0x22fed6([0x45,0x43,0x44,0x53,0x41]),[_0x22fed6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22fed6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22fed6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43578b[_0x22fed6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22fed6([0x6e,0x61,0x6d,0x65])]:_0x22fed6([0x45,0x43,0x44,0x53,0x41]),[_0x22fed6([0x68,0x61,0x73,0x68])]:{[_0x22fed6([0x6e,0x61,0x6d,0x65])]:_0x22fed6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26c357,_0x4d220e,_0x2eac94)||(_0x180ffb=!0x1);}}function _0x1abb44(_0x45b9be){return _0x45b9be[_0x22fed6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22fed6([0x65,0x79]))?JSON[_0x22fed6([0x70,0x61,0x72,0x73,0x65])](_0x3738f2(_0x45b9be)):null;}function _0x3738f2(_0x47c210){return window[_0x22fed6([0x61,0x74,0x6f,0x62])](_0x47c210[_0x22fed6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22fed6([0x2b]))[_0x22fed6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22fed6([0x2f])));}function _0x1b15a0(_0x37ae3d){let _0x21db48=0x1505;function _0x783d7f(_0x7125ae){for(let _0x3dbe4e=0x0;_0x3dbe4e<_0x7125ae[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dbe4e++){const _0x476547=_0x7125ae[_0x22fed6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dbe4e);_0x21db48=(_0x21db48<<0x5)+_0x21db48+_0x476547,_0x21db48&=_0x21db48;}}function _0x2dc6a4(_0x5f2cc8){Array[_0x22fed6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f2cc8)?_0x5f2cc8[_0x22fed6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2dc6a4):_0x5f2cc8&&typeof _0x5f2cc8==_0x22fed6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22fed6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f2cc8)[_0x22fed6([0x73,0x6f,0x72,0x74])]()[_0x22fed6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e5e8d,_0x27e2e8])=>{_0x783d7f(_0x3e5e8d),_0x2dc6a4(_0x27e2e8);}):_0x783d7f(window[_0x22fed6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f2cc8));}return _0x2dc6a4(_0x37ae3d),_0x21db48>>>0x0;}function _0x27e8b9(_0x417228){return _0x417228[_0x22fed6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22fed6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22fed6([0x30]));}function _0x3d62d5(_0x4aeeca){return _0x4aeeca[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22fed6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22fed6([0x6a,0x6f,0x69,0x6e])]('');}function _0x228dfd(_0x1340c3){return _0x1ae7d7[_0x22fed6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22fed6([0x68,0x61,0x73])](_0x1340c3);}function _0x5f2c3e(_0x2db1d8){return _0x1ae7d7[_0x22fed6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22fed6([0x67,0x65,0x74])](_0x2db1d8);}function _0x369ad0(){}function _0x22fed6(_0x5a7870){return _0x5a7870['map'](_0xc09b18=>String['fromCharCode'](_0xc09b18))['join']('');}_0x46fef5(await _0xc1b2e());}(this);}set['adapter'](_0x20d3b9){if(this['_adapter'])throw new _0x160e83('track-changes-adapter-already-set',this);this['_adapter']=_0x20d3b9;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1907f1=!0x1,toJSON:_0x4d00a8=!0x1}={}){const _0xb71e95=[];for(const _0x32c33f of this['_suggestions']['values']())_0x1907f1&&!_0x32c33f['isInContent']||_0xb71e95['push'](_0x32c33f);return _0x4d00a8?_0xb71e95['map'](_0x585525=>_0x585525['toJSON']()):_0xb71e95;}['getSuggestion'](_0x5ce77e){const _0x555ce3=this['_suggestions']['get'](_0x5ce77e);if(!_0x555ce3)throw new _0x160e83('track-changes-suggestion-not-found',this);return _0x555ce3;}['hasSuggestion'](_0x5a47b4){return this['_suggestions']['has'](_0x5a47b4);}['addSuggestionData'](_0x564f14){const {authorId:_0x447aba,id:_0x1b992e,originalSuggestionId:_0x45e9b5,attributes:_0x47ec19}=_0x564f14,[_0x16076c,_0x2468eb]=_0x564f14['type']['split'](':'),_0x384c88=this['_suggestions']['get'](_0x1b992e)||this['_createSuggestion'](_0x16076c,_0x2468eb,_0x1b992e,_0x447aba,_0x47ec19,_0x45e9b5);if(this['_addThreadToSuggestion'](_0x384c88),this['_checkSuggestionCorrectness'](_0x384c88,_0x16076c,_0x2468eb||null,_0x447aba),_0x384c88['createdAt']=_0x564f14['createdAt'],_0x384c88['_isDataLoaded']=!0x0,_0x47ec19&&_0x47ec19['@external']){const _0x3ac6dc=_0x47ec19['@external'],_0x22a151=this['_getExternalAuthor'](_0x3ac6dc['authorName']);_0x384c88['authoredAt']=_0x3ac6dc['createdAt'],_0x384c88['author']=_0x22a151,_0x384c88['isExternal']=!0x0;}else _0x384c88['authoredAt']=_0x564f14['createdAt'];switch(_0x564f14['data']&&(_0x384c88['data']=_0x564f14['data']),_0x564f14['attributes']&&(_0x384c88['attributes']=_0x564f14['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x384c88['_saved']=!0x0),this['_suggestionState']['get'](_0x384c88)){case'notReady':this['_suggestionState']['set'](_0x384c88,'dataReady');break;case'markerReady':_0x384c88['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x384c88])),this['_refreshSuggestionsChain'](new Set([_0x384c88])),this['_suggestionState']['set'](_0x384c88,'ready'),this['fire']('suggestionLoaded',_0x384c88)):this['_suggestionState']['set'](_0x384c88,'removed');}return _0x384c88;}['acceptSuggestion'](_0x1c34bf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x51b52e of _0x1c34bf['getAllAdjacentSuggestions']())_0x51b52e['accept']();});});}['discardSuggestion'](_0x466900){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x415a66 of _0x466900['getAllAdjacentSuggestions']())_0x415a66['discard']();});});}['enableCommand'](_0x4a6d2d,_0x4bdfcb){const _0x71bf15=this['editor']['commands']['get'](_0x4a6d2d);if(!_0x71bf15)throw new _0x160e83('track-changes-command-not-found',this,{'commandName':_0x4a6d2d});if(this['_enabledCommands']['has'](_0x71bf15))throw new _0x160e83('track-changes-enable-command-twice',this,{'commandName':_0x4a6d2d});this['_enabledCommands']['add'](_0x71bf15),_0x4bdfcb&&_0x71bf15['on']('execute',(_0x4f5968,_0x267389)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x267389['length']>0x0&&_0x267389[_0x267389['length']-0x1]&&_0x267389[_0x267389['length']-0x1]['forceDefaultExecution']?_0x267389['pop']():(_0x4f5968['return']=_0x4bdfcb((..._0x2b80b0)=>_0x71bf15['execute'](..._0x2b80b0,{'forceDefaultExecution':!0x0}),..._0x267389),_0x4f5968['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf68533){let _0x173630,_0x29fdad;const _0x22b59c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x173630=_0xf68533();}catch(_0x3f9485){_0x29fdad=_0x3f9485;}return _0x22b59c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29fdad&&_0x160e83['rethrowUnexpectedError'](_0x29fdad,this),_0x173630;}['markInsertion'](_0x361481,_0x17202d=null,_0x4e5201={}){if(_0x361481['isCollapsed'])return null;const _0x2ed73a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4e5201['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ff1f1,meta:_0x4dbe08}of this['_findSuggestions'](_0x361481,'insertion'))if(_0x4dbe08['isOwn']){if(!_0x4dbe08['isNextTo']){if(_0x4dbe08['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x1ff1f1,_0x4e5201))continue;return _0x1ff1f1;}if(cn(_0x1ff1f1,_0x4e5201))return _0x1ff1f1;this['_breakSuggestionMarker'](_0x1ff1f1,_0x361481['start'],_0x361481['end']);break;}if(_0x17202d==_0x1ff1f1['subType']&&cn(_0x1ff1f1,_0x4e5201)){const _0x5b159e=_0x1ff1f1['getFirstRange']();return _0x5b159e['start']['isEqual'](_0x361481['end'])?this['_setSuggestionRange'](_0x1ff1f1,this['_model']['createRange'](_0x361481['start'],_0x5b159e['end'])):this['_setSuggestionRange'](_0x1ff1f1,this['_model']['createRange'](_0x5b159e['start'],_0x361481['end'])),_0x1ff1f1;}}const _0x25a392=_0x493bce(),_0x16bce5=_0x2ed73a['id'],_0x40c011=_0x17202d?'insertion:'+_0x17202d:'insertion',_0x22d49d=this['_setSuggestionData']({'id':_0x25a392,'type':_0x40c011,'createdAt':new Date(),'authorId':_0x16bce5,'attributes':_0x4e5201});return this['_addSuggestionMarker'](_0x40c011,_0x25a392,_0x16bce5,_0x361481),_0x22d49d;}['markMultiRangeInsertion'](_0x3523f6,_0x182fe5='multi',_0x3819be={}){const _0x1c09b2=this['editor']['plugins']['get']('Users')['me'],_0x427c7b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x182fe5,'join');this['_trackingSessionId']&&(_0x3819be['trackingSessionId']=this['_trackingSessionId']);for(const _0x3e1351 of this['getSuggestions']())if(_0x3e1351['author']['id']==_0x1c09b2['id']&&'insertion'==_0x3e1351['type']&&_0x3e1351['subType']==_0x182fe5&&cn(_0x3e1351,_0x3819be)&&(_0x427c7b(_0x3e1351['getRanges'](),_0x3523f6)||_0x427c7b(_0x3523f6,_0x3e1351['getRanges']()))){for(const _0x1b55d6 of _0x3523f6)_0x3e1351['addRange'](_0x1b55d6);return _0x3e1351;}for(const {suggestion:_0x2c32dd,meta:_0x1b401f}of this['_findSuggestions'](_0x3523f6,'insertion')){if(!_0x1b401f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1b401f['containsRangeInObject'])continue;if(!cn(_0x2c32dd,_0x3819be))continue;let _0x3f152f=!0x0;for(const _0x114e4b of _0x2c32dd['getRanges']())for(const _0x342955 of _0x3523f6)if(!_0x114e4b['containsRange'](_0x342955)){_0x3f152f=!0x1;break;}if(_0x3f152f)return _0x2c32dd;}const _0x542349=_0x493bce(),_0x1b3371=_0x1c09b2['id'],_0x50bad0='insertion:'+_0x182fe5,_0x4b6f92=this['_setSuggestionData']({'id':_0x542349,'type':_0x50bad0,'createdAt':new Date(),'authorId':_0x1b3371,'attributes':_0x3819be});for(const _0x2444c2 of _0x3523f6)this['_addSuggestionMarker'](_0x50bad0,_0x542349,_0x1b3371,_0x2444c2,bt['getMultiRangeId']());return _0x4b6f92;}['markInlineFormat'](_0x9fa553,_0x1fd64e,_0x3a8766=null,_0x39e504={}){if(_0x3a8766=_0x3a8766||Je(_0x1fd64e),_0x9fa553['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x39e504['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x310a1d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a8766,'accept');return this['forceDefaultExecution'](()=>_0x310a1d([_0x9fa553],_0x1fd64e,_0x39e504)),null;}const _0x52c554=this['editor']['plugins']['get']('Users')['me'],_0x1a743c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x38d4f0,meta:_0x46b08f}of this['_findSuggestions'](_0x9fa553,'insertion'))_0x46b08f['isOwn']&&!_0x46b08f['isInsideObject']&&_0x1a743c['push'](..._0x38d4f0['getRanges']());}const _0x211ab8=function(_0xb0a325,_0x367ae3){const _0x3585fd=[];for(const _0x51653a of _0x367ae3){const _0x483d1a=_0xb0a325['getIntersection'](_0x51653a);_0x483d1a&&_0x3585fd['push'](_0x483d1a);}return _0x3585fd;}(_0x9fa553,_0x1a743c),_0xb1ef0a=function(_0x5dc1b6,_0x1112c4){const _0x2ff899=[_0x5dc1b6];for(const _0x4040ad of _0x1112c4){let _0x448043=0x0;for(;_0x448043<_0x2ff899['length'];){const _0x537a9d=_0x2ff899[_0x448043]['getDifference'](_0x4040ad);_0x2ff899['splice'](_0x448043,0x1,..._0x537a9d),_0x448043+=_0x537a9d['length'];}}return _0x2ff899;}(_0x9fa553,_0x1a743c);_0x211ab8['length']&&this['_model']['change'](()=>{for(const _0x423c3b of _0x211ab8){const _0xf3f4db=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a8766,'accept');this['forceDefaultExecution'](()=>_0xf3f4db([_0x423c3b],_0x1fd64e,_0x39e504));}});for(const _0x4c3b6f of _0xb1ef0a){let _0x56a98a=null,_0x3e36ef=_0x4c3b6f['start'],_0x5f920e=_0x4c3b6f['end'];for(const {suggestion:_0x5f213e,meta:_0x5935ac}of this['_findSuggestions'](_0x4c3b6f,'formatInline')){if(!_0x5935ac['isOwn'])continue;if(_0x5f213e['subType']!=_0x3a8766)continue;if(!cn(_0x5f213e,_0x39e504))continue;const _0x3b962c=_0x5f213e['getFirstRange']();if(_0x3b962c['containsRange'](_0x4c3b6f,!0x0))return null;_0x3e36ef=_0x3e36ef['isBefore'](_0x3b962c['start'])?_0x3e36ef:_0x3b962c['start'],_0x5f920e=_0x5f920e['isAfter'](_0x3b962c['end'])?_0x5f920e:_0x3b962c['end'],_0x56a98a?_0x3b962c['start']['isBefore'](_0x56a98a['getFirstRange']()['start'])?(_0x56a98a['removeMarkers'](),_0x56a98a=_0x5f213e):_0x5f213e['removeMarkers']():_0x56a98a=_0x5f213e;}const _0x3bd8f9=this['_model']['createRange'](_0x3e36ef,_0x5f920e);if(_0x56a98a)this['_setSuggestionRange'](_0x56a98a,_0x3bd8f9);else{const _0x24f8d4=_0x493bce(),_0x10fbee=_0x52c554['id'];this['_setSuggestionData']({'id':_0x24f8d4,'type':'formatInline:'+_0x3a8766,'data':_0x1fd64e,'createdAt':new Date(),'authorId':_0x10fbee,'attributes':_0x39e504}),this['_addSuggestionMarker']('formatInline:'+_0x3a8766,_0x24f8d4,_0x10fbee,_0x3bd8f9);}}return null;}['markBlockFormat'](_0x23bc4b,_0xd89c17,_0x2a05ee=[],_0xa9d2fb=null,_0x56873c={}){_0xd89c17['formatGroupId']||(_0xd89c17['formatGroupId']=_0xd89c17['commandName']),_0xd89c17['multipleBlocks']=_0x23bc4b['is']('range'),_0xa9d2fb=_0xa9d2fb||Je(_0xd89c17);const _0x49ba44=_0x2a05ee['map'](_0x2096e1=>rn(_0x2096e1,this['_model'])),_0x48f13c=_0x23bc4b['is']('range')?_0x23bc4b:rn(_0x23bc4b,this['_model']);if(this['_trackingSessionId']&&(_0x56873c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5bc60c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa9d2fb,'accept');return this['forceDefaultExecution'](()=>_0x5bc60c([_0x48f13c],_0xd89c17,_0x56873c)),null;}_0x49ba44['push'](_0x48f13c);let _0x926831=!0x0;for(const _0xcd73bb of _0x49ba44)if(!this['_rangeIsInLocalUserInsertion'](_0xcd73bb)){_0x926831=!0x1;break;}if(_0x926831&&'always'!==this['_trackFormatChanges']){const _0x2ed7e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa9d2fb,'accept');return this['forceDefaultExecution'](()=>_0x2ed7e0([_0x48f13c],_0xd89c17,_0x56873c)),null;}let _0x569681=null,_0x268518=_0x48f13c['start'],_0x59d51e=_0x48f13c['end'];for(const {suggestion:_0x2ea45e,meta:_0xa8bd77}of this['_findSuggestions'](_0x48f13c,'formatBlock')){if(!_0xa8bd77['isOwn'])continue;if(_0xa8bd77['isNextTo']||_0xa8bd77['containsRangeInObject']||_0xa8bd77['isInsideObject'])continue;if(_0x2ea45e['data']['formatGroupId']!=_0xd89c17['formatGroupId'])continue;if(!cn(_0x2ea45e,_0x56873c))continue;const _0x583879=_0x2ea45e['getFirstRange']();if(_0x2ea45e['subType']==_0xa9d2fb){if(_0x583879['containsRange'](_0x48f13c,!0x0))return null;_0x268518=_0x268518['isBefore'](_0x583879['start'])?_0x268518:_0x583879['start'],_0x59d51e=_0x59d51e['isAfter'](_0x583879['end'])?_0x59d51e:_0x583879['end'],_0x569681?_0x583879['start']['isBefore'](_0x569681['getFirstRange']()['start'])?(_0x569681['removeMarkers'](),_0x569681=_0x2ea45e):_0x2ea45e['removeMarkers']():_0x569681=_0x2ea45e;}else{const _0x5ccc5b=_0x48f13c['getIntersection'](_0x583879);this['_cutOutSuggestionMarker'](_0x2ea45e,_0x5ccc5b);}}const _0x15434a=this['editor']['plugins']['get']('Users')['me'],_0x15a569=_0x493bce(),_0x3fda94=_0x15434a['id'];if(_0x569681)return this['_setSuggestionRange'](_0x569681,this['_model']['createRange'](_0x268518,_0x59d51e)),_0x569681;{const _0x473e32=this['_setSuggestionData']({'id':_0x15a569,'type':'formatBlock:'+_0xa9d2fb,'data':_0xd89c17,'createdAt':new Date(),'authorId':_0x3fda94,'attributes':_0x56873c});return this['_addSuggestionMarker']('formatBlock:'+_0xa9d2fb,_0x15a569,_0x3fda94,this['_model']['createRange'](_0x268518,_0x59d51e)),_0x473e32;}}['markMultiRangeBlockFormat'](_0xd7baab,_0x289e59,_0x2bd32b=[],_0x541456=null,_0x38c2e7={}){_0x289e59['formatGroupId']||(_0x289e59['formatGroupId']=_0x289e59['commandName']);const _0x4dda47=_0xd7baab[0x0];_0x289e59['multipleBlocks']=_0x4dda47['is']('range'),_0x541456=_0x541456||Je(_0x289e59);const _0x131304=_0x2bd32b['map'](_0x47464f=>rn(_0x47464f,this['_model'])),_0x4cae64=_0x4dda47['is']('range')?_0xd7baab:_0xd7baab['map'](_0x42a4e3=>rn(_0x42a4e3,this['_model']));if(this['_trackingSessionId']&&(_0x38c2e7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x580eb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x541456,'accept');return this['forceDefaultExecution'](()=>_0x580eb4(_0x4cae64,_0x289e59,_0x38c2e7)),null;}_0x131304['push'](..._0x4cae64);let _0x4366e4=!0x0;for(const _0x40f7c3 of _0x131304)if(!this['_rangeIsInLocalUserInsertion'](_0x40f7c3)){_0x4366e4=!0x1;break;}if(_0x4366e4&&'always'!==this['_trackFormatChanges']){const _0x2b7658=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x541456,'accept');return this['forceDefaultExecution'](()=>_0x2b7658(_0x4cae64,_0x289e59,_0x38c2e7)),null;}const _0x4aff61=this['editor']['plugins']['get']('Users')['me'];for(const _0x221610 of this['getSuggestions']()){const _0xfcde1e=_0x221610['data'];if(_0x221610['author']['id']!=_0x4aff61['id'])continue;if('formatBlock'!=_0x221610['type']||_0xfcde1e['formatGroupId']!=_0x289e59['formatGroupId'])continue;if(!cn(_0x221610,_0x38c2e7))continue;const _0x1fb9a9=_0x221610['subType']==_0x541456;for(let _0xc60fc0=0x0;_0xc60fc0<_0x4cae64['length'];_0xc60fc0++){const _0x5e05a0=_0x4cae64[_0xc60fc0];for(const _0x1609a8 of _0x221610['getMarkers']()){const _0x4a6cf2=_0x1609a8['getRange']();if(_0x5e05a0['isEqual'](_0x4a6cf2)){_0x1fb9a9?(_0x4cae64['splice'](_0xc60fc0,0x1),_0xc60fc0--):_0x221610['removeMarker'](_0x1609a8['name']);break;}}}}if(0x0==_0x4cae64['length'])return null;const _0x2bd7ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x541456,'join');for(const _0x4d6ecd of this['getSuggestions']()){const _0x46b4ff=_0x4d6ecd['data'];if(_0x4d6ecd['author']['id']==_0x4aff61['id']&&('formatBlock'==_0x4d6ecd['type']&&_0x46b4ff['formatGroupId']==_0x289e59['formatGroupId']&&_0x4d6ecd['subType']==_0x541456&&cn(_0x4d6ecd,_0x38c2e7)&&(_0x2bd7ed(_0x4d6ecd['getRanges'](),_0x4cae64)||_0x2bd7ed(_0x4cae64,_0x4d6ecd['getRanges']())))){for(const _0x3452b9 of _0x4cae64)_0x4d6ecd['addRange'](_0x3452b9);return _0x4d6ecd;}}const _0x7410ff=_0x493bce(),_0x398c59=_0x4aff61['id'],_0x790995='formatBlock:'+_0x541456,_0x128bc1=this['_setSuggestionData']({'id':_0x7410ff,'type':_0x790995,'data':_0x289e59,'createdAt':new Date(),'authorId':_0x398c59,'attributes':_0x38c2e7});for(const _0x1d09b8 of _0x4cae64)this['_addSuggestionMarker'](_0x790995,_0x7410ff,_0x398c59,_0x1d09b8,bt['getMultiRangeId']());return _0x128bc1;}['markDeletion'](_0x39a2c5,_0x23d16d=null,_0x18d161={}){if(_0x39a2c5['isCollapsed'])return null;const _0x3edb5c=this['editor']['plugins']['get']('Users')['me'],_0x53c731=new _0x3e26ed(_0x39a2c5['start'],_0x39a2c5['end']);this['_trackingSessionId']&&(_0x18d161['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x560f9c,meta:_0x339479}of this['_findSuggestions'](_0x53c731,'insertion'))if(_0x339479['isOwn']&&!_0x339479['isNextTo']){if(_0x560f9c['isMultiRange']){const _0x3cde81=_0x560f9c['getRanges']()['filter'](_0x5188cd=>'$graveyard'!=_0x5188cd['root']['rootName']);_0x3cde81['every'](_0xcab28b=>_0x53c731['containsRange'](_0xcab28b,!0x0))&&_0x560f9c['discard']();if(_0x3cde81['some'](_0x2f5fa4=>_0x2f5fa4['containsRange'](_0x53c731,!0x0))){const _0x24c50b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23d16d,'accept');return this['forceDefaultExecution'](()=>_0x24c50b([_0x53c731],null,_0x18d161)),null;}}else{const _0x49a44b=_0x53c731['getIntersection'](_0x560f9c['getFirstRange']());null!==_0x49a44b&&_0x560f9c['_onDiscard']([_0x49a44b],null,_0x18d161);}}if(_0x53c731['detach'](),_0x53c731['isCollapsed']||'$graveyard'==_0x53c731['root']['rootName'])return null;let _0x393f29=null,_0x5a6ccc=_0x53c731['start'],_0x326abd=_0x53c731['end'];const _0x4e4154=this['_findSuggestions'](_0x53c731,'deletion');for(const {suggestion:_0x20efb0,meta:_0x43a1f8}of _0x4e4154){const _0x423cb4=this['_model']['createRange'](_0x5a6ccc,_0x326abd);if(_0x43a1f8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43a1f8['containsRangeInObject']&&!_0x43a1f8['isInsideObject'])){if(_0x20efb0['isMultiRange']){if(!cn(_0x20efb0,_0x18d161))continue;let _0x288157=!0x0;for(const _0x2825b9 of _0x20efb0['getRanges']()){if(_0x2825b9['containsRange'](_0x423cb4,!0x0))return _0x20efb0;_0x423cb4['containsRange'](_0x2825b9)||(_0x288157=!0x1);}_0x288157&&_0x20efb0['discard']();}else{const _0x382911=_0x20efb0['getFirstRange']();if(_0x382911['containsRange'](_0x423cb4,!0x0))return _0x20efb0;if(!cn(_0x20efb0,_0x18d161)){_0x423cb4['containsRange'](_0x382911)?_0x20efb0['removeMarkers']():_0x382911['containsPosition'](_0x5a6ccc)?_0x5a6ccc=_0x382911['end']:_0x382911['containsPosition'](_0x326abd)&&(_0x326abd=_0x382911['start']);continue;}_0x5a6ccc=_0x5a6ccc['isBefore'](_0x382911['start'])?_0x5a6ccc:_0x382911['start'],_0x326abd=_0x326abd['isAfter'](_0x382911['end'])?_0x326abd:_0x382911['end'],_0x18d161=Object['assign']({},_0x20efb0['attributes']),_0x393f29?_0x382911['start']['isBefore'](_0x393f29['getFirstRange']()['start'])?(_0x393f29['removeMarkers'](),_0x393f29=_0x20efb0):_0x20efb0['removeMarkers']():_0x393f29=_0x20efb0;}}}if(_0x393f29)return this['_setSuggestionRange'](_0x393f29,this['_model']['createRange'](_0x5a6ccc,_0x326abd)),_0x393f29;{const _0x466253=_0x493bce(),_0x187636=this['_model']['createRange'](_0x5a6ccc,_0x326abd),_0x5dca5b=_0x3edb5c['id'],_0xdb2118=_0x23d16d?'deletion:'+_0x23d16d:'deletion',_0x2a7cb6=this['_setSuggestionData']({'id':_0x466253,'type':_0xdb2118,'createdAt':new Date(),'authorId':_0x5dca5b,'attributes':_0x18d161});return this['_addSuggestionMarker'](_0xdb2118,_0x466253,_0x5dca5b,_0x187636),_0x2a7cb6;}}['markMultiRangeDeletion'](_0x446ff0,_0x46485e='multi',_0x45c609={}){const _0x289488=this['editor']['plugins']['get']('Users')['me'],_0x2d6f28=_0x446ff0['map'](_0x6b6e0d=>new _0x3e26ed(_0x6b6e0d['start'],_0x6b6e0d['end'])),_0x570d50=new Set();this['_trackingSessionId']&&(_0x45c609['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x10ec65,meta:_0x1b3291}of this['_findSuggestions'](_0x2d6f28,'insertion'))_0x1b3291['isOwn']&&!_0x1b3291['isNextTo']&&_0x570d50['add'](_0x10ec65);for(const _0x15e761 of _0x570d50)if(_0x15e761['isMultiRange']){const _0x15de4e=_0x15e761['getRanges']();(!_0x15e761['attributes']||!_0x15e761['attributes']['skipNestingCheck'])&&(_0x15de4e['every'](_0x58a1c4=>_0x2d6f28['some'](_0x3b6a10=>_0x3b6a10['containsRange'](_0x58a1c4,!0x0)))&&_0x15e761['discard']());if(_0x2d6f28['every'](_0x5820cf=>_0x15de4e['some'](_0x136808=>_0x136808['containsRange'](_0x5820cf,!0x0)))){const _0x11284c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46485e,'accept');return this['forceDefaultExecution'](()=>_0x11284c(_0x446ff0,null,_0x45c609)),null;}}else{const _0xbc9b97=_0x15e761['getFirstRange']();_0x2d6f28['some'](_0x3a9031=>_0x3a9031['containsRange'](_0xbc9b97,!0x0))&&_0x15e761['discard']();if(_0x2d6f28['every'](_0x29319e=>_0xbc9b97['containsRange'](_0x29319e,!0x0))){const _0x29d09f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46485e,'accept');return this['forceDefaultExecution'](()=>_0x29d09f(_0x2d6f28,null,_0x45c609)),null;}}const _0x19bf6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46485e,'join');let _0x51148b=null;for(const _0x2f6e59 of this['getSuggestions']())if(_0x2f6e59['author']['id']==_0x289488['id']&&_0x2f6e59['isInContent']&&'deletion'==_0x2f6e59['type']&&_0x2f6e59['subType']==_0x46485e&&cn(_0x2f6e59,_0x45c609)&&(_0x19bf6b(_0x2f6e59['getRanges'](),_0x2d6f28)||_0x19bf6b(_0x2d6f28,_0x2f6e59['getRanges']()))){if(_0x51148b){if(_0x2f6e59['commentThread']&&_0x2f6e59['commentThread']['length'])continue;for(const _0x36dc4b of _0x2f6e59['getRanges']())_0x51148b['isIntersectingWithRange'](_0x36dc4b)||_0x51148b['addRange'](_0x36dc4b);_0x2f6e59['removeMarkers']();}else{_0x51148b=_0x2f6e59;for(const _0x1e4a7c of _0x2d6f28)_0x2f6e59['isIntersectingWithRange'](_0x1e4a7c)||_0x2f6e59['addRange'](_0x1e4a7c);}}if(_0x51148b)return _0x51148b;_0x570d50['clear']();for(const {suggestion:_0x194455,meta:_0x253455}of this['_findSuggestions'](_0x2d6f28,'deletion'))_0x253455['isOwn']&&(this['_mergeNestedSuggestions']||!_0x253455['containsRangeInObject']&&!_0x253455['isInsideObject'])&&cn(_0x194455,_0x45c609)&&_0x570d50['add'](_0x194455);for(const _0x46d2c5 of _0x570d50){const _0x192e42=_0x46d2c5['getRanges']();if(!_0x45c609||!_0x45c609['skipNestingCheck']){if(_0x2d6f28['every'](_0x510f73=>_0x192e42['some'](_0x327c44=>_0x327c44['containsRange'](_0x510f73,!0x0))))return _0x46d2c5;}(!_0x46d2c5['attributes']||!_0x46d2c5['attributes']['skipNestingCheck'])&&(_0x192e42['every'](_0x274362=>_0x2d6f28['some'](_0x38dd1=>_0x38dd1['containsRange'](_0x274362,!0x0)))&&_0x46d2c5['discard']());}const _0x3e86e0=_0x493bce(),_0x567436=_0x289488['id'],_0x182160='deletion:'+_0x46485e,_0x449aff=this['_setSuggestionData']({'id':_0x3e86e0,'type':_0x182160,'createdAt':new Date(),'authorId':_0x567436,'attributes':_0x45c609});for(const _0x711eae of _0x2d6f28)_0x711eae['detach'](),_0x711eae['isCollapsed']||'$graveyard'==_0x711eae['root']['rootName']||this['_addSuggestionMarker'](_0x182160,_0x3e86e0,_0x567436,_0x711eae,bt['getMultiRangeId']());return _0x449aff;}['markAttributeChange'](_0x24956f,_0x5d7d26,_0x5a2ab3,_0x252d79,_0x10e45e){if(_0x24956f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x43237f=this['editor']['plugins']['get']('Users')['me']['id'],_0x413be2=Array['from'](this['_suggestions']['values']())['filter'](_0xacfc9a=>'attribute'==_0xacfc9a['type']&&_0xacfc9a['data']['key']==_0x5d7d26&&_0xacfc9a['isIntersectingWithRange'](_0x24956f));if(this['_trackingSessionId']&&(_0x10e45e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x21b05e=this['_findSuggestions'](_0x24956f,'insertion')['filter'](({meta:_0x362d12})=>_0x362d12['isOwn']&&!_0x362d12['isInsideObject']&&!_0x362d12['isNextTo'])['map'](({suggestion:_0x50a632})=>_0x50a632);_0x413be2['unshift'](..._0x21b05e);}const _0x291923=new Map([[_0x24956f,_0x5a2ab3]]);for(const _0xd1b606 of _0x413be2){const _0x340c28='attribute'==_0xd1b606['type']?_0xd1b606['data']['oldValue']:void 0x0,_0x481b10=_0xd1b606['getFirstRange'](),_0x534c27=Array['from'](_0x291923['keys']())['find'](_0x56e31a=>_0x56e31a['isIntersecting'](_0x481b10));if(!_0x534c27)continue;const _0x5dd20d=_0x534c27['getDifference'](_0x481b10);this['_suggestionsConversion']['isBlockAttribute'](_0x5d7d26)&&'insertion'==_0xd1b606['type']&&0x0!=_0x5dd20d['length']||(_0x291923['delete'](_0x534c27),_0x5dd20d['forEach'](_0xad11e7=>{_0x291923['set'](_0xad11e7,_0x5a2ab3);}),'insertion'!=_0xd1b606['type']&&_0x340c28!=_0x252d79&&_0x291923['set'](_0x534c27['getIntersection'](_0x481b10),_0x340c28));}const _0x20a3e5=[];for(const [_0x5bb940,_0x2b0d2a]of _0x291923){const _0x41c2a7=_0x493bce(),_0x4cedcf={'key':_0x5d7d26,'oldValue':_0x2b0d2a,'newValue':_0x252d79};_0x5d7d26['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':_0x5d7d26});const _0x49ffa5=('attribute:'+(_0x5d7d26+'|'+Je({'newValue':_0x252d79})))['substring'](0x0,0x3c),_0x81267f=this['_setSuggestionData']({'id':_0x41c2a7,'type':_0x49ffa5,'data':_0x4cedcf,'createdAt':new Date(),'authorId':_0x43237f,'attributes':_0x10e45e});_0x20a3e5['push'](_0x81267f),this['_addSuggestionMarker'](_0x49ffa5,_0x41c2a7,_0x43237f,_0x5bb940);}return _0x20a3e5;}['enableDefaultAttributesIntegration'](_0x23b584){this['enableCommand'](_0x23b584,(_0xbf1f8b,..._0xaffff7)=>{this['recordAttributeChanges'](()=>{_0xbf1f8b(..._0xaffff7);});});}['startTrackingSession'](_0x12ba7c){return this['_trackingSessionId']=void 0x0!==_0x12ba7c?_0x12ba7c:_0x493bce(),this['_trackingSessionId'];}['_getAttributeKey'](_0x50e6c0){return'attribute'==_0x50e6c0['type']?un(_0x50e6c0['subType']):null;}['_applyOperationsAsSuggestions'](_0x5c9137){if(0x0==_0x5c9137['length'])return;const _0x3995ba=this['editor'],_0x26324a=_0x3995ba['plugins']['get'](_0x3c2b55),_0xe14788=[];_0x3995ba['model']['change'](_0x2ce5c8=>{for(let _0x5da32b=0x0;_0x5da32b<_0x5c9137['length'];_0x5da32b++){const _0x101d66=_0x5c9137[_0x5da32b];if(_0x101d66['baseVersion']=_0x3995ba['model']['document']['version'],_0x101d66['isDocumentOperation']=!0x0,_0x26324a['isMarkedRemoveOperation'](_0x101d66)){const _0x5cab30=_0x365bc8(_0x101d66['newRange'],_0x3995ba['model']);_0xe14788['unshift'](_0x3e26ed['fromRange'](_0x5cab30));}else switch(_0x101d66['type']){case'rename':{const _0x2d701e=_0x101d66['oldName'],_0x3c5c9c=_0x101d66['newName'];if(_0x2d701e==_0x3c5c9c)break;_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);const _0x4e4ac2='$elementName',_0xcf4419=_0x101d66['position'],_0x2cc0e4=_0x3995ba['model']['createRange'](_0xcf4419,_0x3995ba['model']['createPositionAt'](_0xcf4419['nodeAfter'],'end'));this['markAttributeChange'](_0x2cc0e4,_0x4e4ac2,_0x2d701e,_0x3c5c9c,{'groupId':_0x493bce()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2e89d3=_0x101d66['oldValue'],_0x14d74b=_0x101d66['newValue'];if(_0x2e89d3==_0x14d74b)break;_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);const _0xbedcaf=_0x101d66['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xbedcaf))break;const _0x3935b4=_0x365bc8(_0x101d66['range'],_0x3995ba['model']);this['markAttributeChange'](_0x3935b4,_0xbedcaf,_0x2e89d3,_0x14d74b,{'groupId':_0x493bce()});break;}case'insert':{_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);if(_0x5c9137[_0x5da32b+0x1]&&'move'==_0x5c9137[_0x5da32b+0x1]['type'])break;const _0x2dea98=_0x101d66['position'],_0x37e404=_0x101d66['howMany'],_0x128972=_0x365bc8(_0x3995ba['model']['createRange'](_0x2dea98,_0x2dea98['getShiftedBy'](_0x37e404)),_0x3995ba['model']);this['markInsertion'](_0x128972);break;}case'split':{_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);const _0x551b89=_0x101d66['splitPosition'],_0x48bb24=_0x101d66['moveTargetPosition'];this['markInsertion'](_0x3995ba['model']['createRange'](_0x551b89,_0x48bb24));break;}case'move':case'remove':_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);}}for(const _0x19bd37 of _0xe14788)_0x19bd37['detach'](),this['markDeletion'](_0x19bd37);});}['_setSuggestionRange'](_0x1f979d,_0x20e0b6){const _0x44d6e=_0x1f979d['getFirstMarker']();this['_model']['change'](_0xcdfcbd=>{_0xcdfcbd['updateMarker'](_0x44d6e,{'range':_0x20e0b6});});}['_addThreadToSuggestion'](_0x2ded38){const _0x25a314=_0x2ded38['id'],_0x429add=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x25a314)||this['_commentsRepository']['addCommentThread']({'channelId':_0x429add,'threadId':_0x25a314,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x371050=this['_commentsRepository']['getCommentThread'](_0x25a314);_0x371050['unbind']('isRemovable'),_0x371050['isRemovable']=!0x1,_0x2ded38['commentThread']=_0x371050;}['_checkSuggestionCorrectness'](_0x496d8a,_0x5cccbf,_0x40815b,_0x15db40){if(_0x496d8a['type']!=_0x5cccbf||_0x496d8a['subType']!=_0x40815b||_0x496d8a['creator']['id']!=_0x15db40)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x160e83('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1e2375,_0x4e54c6){const _0x1735a0=_0x1e2375['getFirstRange']();if(_0x4e54c6['isEqual'](_0x1735a0))_0x1e2375['removeMarkers']();else{if(_0x1735a0['containsRange'](_0x4e54c6)){const _0x28c2cb=this['_model']['createPositionAt'](_0x4e54c6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e2375,this['_model']['createRange'](_0x1735a0['start'],_0x28c2cb));const _0x4e8d83=_0x493bce(),_0x22c2a8=_0x1e2375['creator']['id'],_0x43895f=_0x1e2375['type']+':'+_0x1e2375['subType'];this['_setSuggestionData']({'id':_0x4e8d83,'type':_0x43895f,'createdAt':new Date(),'authorId':_0x22c2a8,'data':_0x1e2375['data'],'attributes':_0x1e2375['attributes']});const _0x4b6f4d=this['_model']['createPositionAt'](_0x4e54c6['end']['parent'],'after'),_0x2cc5e2=this['_model']['createRange'](_0x4b6f4d,_0x1735a0['end']);this['_addSuggestionMarker'](_0x43895f,_0x4e8d83,_0x22c2a8,_0x2cc5e2);}else{if(_0x1735a0['containsPosition'](_0x4e54c6['start'])){const _0x27aa29=this['_model']['createPositionAt'](_0x4e54c6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e2375,this['_model']['createRange'](_0x1735a0['start'],_0x27aa29));}else{const _0x5856d5=this['_model']['createPositionAt'](_0x4e54c6['end']['parent'],'after');this['_setSuggestionRange'](_0x1e2375,this['_model']['createRange'](_0x5856d5,_0x1735a0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f698e){for(const {suggestion:_0x1ff106,meta:_0x2d4515}of this['_findSuggestions'](_0x2f698e,'insertion')){if(!_0x2d4515['isOwn'])continue;const _0x2ad0aa=_0x1ff106['getRanges']();for(const _0x50befe of _0x2ad0aa)if(!_0x2f698e['getDifference'](_0x50befe)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2386e2){return this['editor']['plugins']['get']('Users')['getUser'](_0x2386e2);}['_getExternalAuthor'](_0x1ba15f){const _0x2ec133=this['editor']['plugins']['get']('Users'),_0x5a36f0=_0x408f0f('external:'+_0x1ba15f),_0x4c73dd=_0x2ec133['getUser'](_0x5a36f0);return _0x4c73dd||_0x2ec133['addUser']({'id':_0x5a36f0,'name':_0x1ba15f});}['_createSuggestion'](_0x292e0b,_0x3bdcc4,_0x575eb5,_0x17b83f,_0x567f95,_0x56b4c6){const _0x5eb7e9=this['_getAuthorFromId'](_0x17b83f);if(!_0x5eb7e9)throw new _0x160e83('track-changes-user-not-found',this,{'authorId':_0x17b83f,'suggestionId':_0x575eb5});const _0x2ddeed=this['_suggestionFactory']['buildSuggestion'](_0x292e0b,_0x3bdcc4,_0x575eb5,_0x5eb7e9,_0x567f95,_0x438d95=>{this['_updateSuggestionData'](_0x575eb5,{'attributes':_0x438d95});const _0xce2ae3=this['getSuggestion'](_0x575eb5);this['_joinWithAdjacentSuggestions'](new Set([_0xce2ae3])),this['_refreshSuggestionsChain'](new Set([_0xce2ae3]));},_0x56b4c6);return this['listenTo'](_0x2ddeed,'accept',()=>{this['_updateSuggestionData'](_0x575eb5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ddeed,'discard',()=>{this['_updateSuggestionData'](_0x575eb5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x575eb5,_0x2ddeed),this['_suggestionState']['set'](_0x2ddeed,'notReady'),_0x2ddeed;}['_breakSuggestionMarker'](_0x48c242,_0x3ddb4c,_0x3dc0ed){const _0x17d759=_0x48c242['getFirstRange'](),_0x4b120d=_0x17d759['start'],_0x3a4d0d=_0x17d759['end'];this['_setSuggestionRange'](_0x48c242,this['_model']['createRange'](_0x4b120d,_0x3ddb4c));const _0x262bd4=_0x493bce(),_0x168bdf=_0x48c242['creator']['id'],_0x54b1c7=_0x48c242['type']+(_0x48c242['subType']?':'+_0x48c242['subType']:'');this['_setSuggestionData']({'id':_0x262bd4,'type':_0x54b1c7,'createdAt':new Date(),'authorId':_0x168bdf,'originalSuggestionId':_0x48c242['_originalSuggestionId']||_0x48c242['id'],'attributes':_0x48c242['attributes'],'data':_0x48c242['data']});const _0x34a63c=this['_getAttributeKey'](_0x48c242);('formatBlock'==_0x48c242['type']||_0x34a63c&&this['_suggestionsConversion']['isBlockAttribute'](_0x34a63c))&&(_0x3dc0ed=this['_model']['createPositionBefore'](_0x3dc0ed['parent'])),this['_addSuggestionMarker'](_0x54b1c7,_0x262bd4,_0x168bdf,this['_model']['createRange'](_0x3dc0ed,_0x3a4d0d));}['_findSuggestions'](_0x38181b,_0x49500d=null){const _0x2b42c6=[],_0x361a91=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38181b)||(_0x38181b=[_0x38181b]);for(const _0x1ad037 of this['getSuggestions']()){if(!_0x1ad037['isInContent'])continue;if(_0x49500d&&_0x1ad037['type']!=_0x49500d)continue;let _0x130b20=!0x1;for(const _0x2f2a68 of _0x1ad037['getRanges']()){for(const _0x3a5db7 of _0x38181b){const _0x65222e=_0x3a5db7['start']['isEqual'](_0x2f2a68['end'])||_0x3a5db7['end']['isEqual'](_0x2f2a68['start']);if(_0x65222e||_0x3a5db7['getIntersection'](_0x2f2a68)){const _0x1b6628=_0x3a5db7['containsRange'](_0x2f2a68)&&qe(this['_model']['schema'],_0x2f2a68['start'],_0x3a5db7),_0x59f54e=_0x2f2a68['containsRange'](_0x3a5db7)&&qe(this['_model']['schema'],_0x3a5db7['start'],_0x2f2a68);_0x2b42c6['push']({'suggestion':_0x1ad037,'meta':{'isOwn':_0x361a91==_0x1ad037['author'],'isNextTo':_0x65222e,'isInsideObject':_0x1b6628,'containsRangeInObject':_0x59f54e}}),_0x130b20=!0x0;break;}}if(_0x130b20)break;}}return _0x2b42c6;}['_addSuggestionMarker'](_0x386702,_0x3c5340,_0x5e4270,_0x3b634b,_0x430afe){this['_model']['change'](_0x5c2199=>{let _0x40b741='suggestion:'+_0x386702+':'+_0x3c5340+':'+_0x5e4270;_0x430afe&&(_0x40b741=_0x40b741+':'+_0x430afe),_0x5c2199['addMarker'](_0x40b741,{'range':_0x3b634b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x33059d){const _0x2f3ce7=_0x33059d['previous'],_0xa57c59=_0x33059d['next'];_0x33059d['previous']=null,_0x33059d['next']=null,null!=_0x2f3ce7&&_0x2f3ce7['next']==_0x33059d&&(_0x2f3ce7['next']=_0xa57c59),null!=_0xa57c59&&_0xa57c59['previous']==_0x33059d&&(_0xa57c59['previous']=_0x2f3ce7),'ready'==this['_suggestionState']['get'](_0x33059d)&&(this['_suggestionState']['set'](_0x33059d,'removed'),this['fire']('suggestionUnloaded',_0x33059d,_0x2f3ce7,_0xa57c59));}['_setSuggestionData'](_0x10fe54){const _0x2e9881=_0x10fe54['id'],_0x29a5f5=this['addSuggestionData'](_0x10fe54);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5e0c54=this['editor']['plugins']['get']('PendingActions'),_0x24aa92=_0x29a5f5['hasComments'],_0xa85744=_0x29a5f5['subType']?_0x29a5f5['type']+':'+_0x29a5f5['subType']:_0x29a5f5['type'],_0x502ef4=this['editor']['locale'],_0x34323f=_0x5e0c54['add'](At(_0x502ef4,'PENDING_ACTION_SUGGESTION')),_0x2fdaca={'id':_0x2e9881,'type':_0xa85744,'hasComments':_0x24aa92,'data':_0x10fe54['data']||null,'originalSuggestionId':_0x10fe54['originalSuggestionId']||null,'attributes':_0x29a5f5['attributes']};this['_adapter']['addSuggestion'](_0x2fdaca)['then'](_0x58f530=>{_0x29a5f5['_saved']=!0x0,_0x5e0c54['remove'](_0x34323f),_0x58f530&&_0x58f530['createdAt']&&(this['_suggestions']['get'](_0x2e9881)['createdAt']=_0x58f530['createdAt']);})['catch'](_0x5b9bcf=>{throw _0x102b77('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x29a5f5['discard']();}),_0x29a5f5['stopListening'](),this['_suggestions']['delete'](_0x29a5f5['id']),this['_suggestionState']['delete'](_0x29a5f5),_0x5b9bcf;});}return _0x29a5f5;}['_updateSuggestionData'](_0x29b1c0,_0x474717){const _0x3c1bef=this['editor']['plugins']['get']('PendingActions'),_0xa66dff=this['getSuggestion'](_0x29b1c0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa66dff['_saved']){const _0x383c1e=_0x3c1bef['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x29b1c0,_0x474717)['then'](()=>{_0x3c1bef['remove'](_0x383c1e);});}else _0xa66dff['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29b1c0,_0x474717);});}}['_getSuggestionData'](_0x54f733){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x160e83('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x54f733);}['_handleNewSuggestionMarker'](_0x1f36b5){const {id:_0x3afb5e,type:_0x168ca7,subType:_0x558406,authorId:_0x6672a0}=_0x413c95(_0x1f36b5),_0x11bf8a=this['_suggestions']['get'](_0x3afb5e)||this['_createSuggestion'](_0x168ca7,_0x558406,_0x3afb5e,_0x6672a0,{});switch(this['_checkSuggestionCorrectness'](_0x11bf8a,_0x168ca7,_0x558406,_0x6672a0),this['_suggestionState']['get'](_0x11bf8a)){case'notReady':this['_getSuggestionData'](_0x3afb5e)['then'](_0x38da3f=>{let _0x58a217=Promise['resolve']();_0x38da3f['hasComments']&&(_0x58a217=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3afb5e})),_0x58a217['then'](()=>{this['addSuggestionData'](_0x38da3f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11bf8a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3afb5e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11bf8a,'ready'),this['fire']('suggestionLoaded',_0x11bf8a);break;case'ready':this['fire']('suggestionChanged',_0x11bf8a);}return _0x11bf8a['addMarkerName'](_0x1f36b5),_0x11bf8a;}['_refreshSuggestionsChain'](_0x49e999){const _0x286e32=Array['from'](_0x49e999),_0x1ba37b=_0x286e32['filter'](_0x2cfff1=>'attribute'==_0x2cfff1['type']);this['_refreshAttributeSuggestionsChain'](_0x1ba37b);const _0x8c71f2=_0x286e32['filter'](_0x525f82=>!_0x525f82['isMultiRange']&&'attribute'!=_0x525f82['type']),_0x4dfa87=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3910a2=>!_0x3910a2['isMultiRange']&&'attribute'!=_0x3910a2['type']),_0x3c007a=_0x4dfa87['filter'](_0x1d09df=>!_0x49e999['has'](_0x1d09df)),_0x2d8dc7=new Map(_0x4dfa87['map'](_0x55d3d7=>[_0x55d3d7,this['_suggestionFactory']['getSuggestionCallback'](_0x55d3d7['type'],_0x55d3d7['subType'],'chain')])),_0x4ff0f3=new Map(_0x4dfa87['map'](_0xd5416=>[_0xd5416,_0xd5416['getFirstRange']()])),_0x5b4d3f=new Set(),_0x55ad16=new Set();for(let _0x3ff8ef=0x0;_0x3ff8ef<_0x8c71f2['length'];_0x3ff8ef++)_0x5b80a2(_0x8c71f2[_0x3ff8ef],_0x8c71f2,_0x3ff8ef+0x1);for(let _0x4eea89=0x0;_0x4eea89<_0x8c71f2['length'];_0x4eea89++)_0x5b80a2(_0x8c71f2[_0x4eea89],_0x3c007a,0x0);const _0x476cc0=new Set();for(let _0x59aaca=0x0;_0x59aaca<_0x8c71f2['length'];_0x59aaca++){const _0x12d541=_0x8c71f2[_0x59aaca];!_0x55ad16['has'](_0x12d541)&&_0x12d541['previous']&&(_0x476cc0['add'](_0x12d541['previous']),_0x12d541['previous']['next']===_0x12d541&&(_0x12d541['previous']['next']=null),_0x12d541['previous']=null),!_0x5b4d3f['has'](_0x12d541)&&_0x12d541['next']&&(_0x476cc0['add'](_0x12d541['next']),_0x12d541['next']['previous']===_0x12d541&&(_0x12d541['next']['previous']=null),_0x12d541['next']=null);}function _0x5b80a2(_0x1b2396,_0x1c4cfe,_0x282ed3){for(let _0x4acee2=_0x282ed3;_0x4acee2<_0x1c4cfe['length'];_0x4acee2++){const _0x5091e2=_0x192e5a(_0x1b2396,_0x1c4cfe[_0x4acee2]);_0x5091e2&&(_0x5091e2[0x0]['next']=_0x5091e2[0x1],_0x5091e2[0x1]['previous']=_0x5091e2[0x0],_0x5b4d3f['add'](_0x5091e2[0x0]),_0x55ad16['add'](_0x5091e2[0x1]));}}function _0x192e5a(_0x132480,_0xfee16a){if(_0x132480['author']['id']!==_0xfee16a['author']['id'])return null;const _0x319bb5=_0x2d8dc7['get'](_0x132480)(_0x132480,_0xfee16a,_0x4ff0f3['get'](_0x132480),_0x4ff0f3['get'](_0xfee16a));if(!_0x319bb5)return null;return _0x2d8dc7['get'](_0xfee16a)(_0x132480,_0xfee16a,_0x4ff0f3['get'](_0x132480),_0x4ff0f3['get'](_0xfee16a))?_0x319bb5[0x1]['commentThread']&&_0x319bb5[0x1]['commentThread']['length']?null:_0x319bb5:null;}_0x476cc0['size']&&this['_refreshSuggestionsChain'](_0x476cc0);}['_refreshAttributeSuggestionsChain'](_0x154f8f){if(0x0==_0x154f8f['length'])return;const _0x26b6ab=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ac236=>'attribute'==_0x3ac236['type']&&_0x3ac236['_isDataLoaded']),_0x59647d=[],_0xea88a0=new Map();for(const _0x2fc6cf of _0x26b6ab){const _0x2d7120=_0x408f0f(_0x2fc6cf['attributes']);_0xea88a0['has'](_0x2d7120)||(_0xea88a0['set'](_0x2d7120,_0x59647d['length']),_0x59647d['push']([]));const _0x1d280f=_0xea88a0['get'](_0x2d7120);_0x59647d[_0x1d280f]['push'](_0x2fc6cf);}!(function(){_0x59647d['sort']((_0x24eb44,_0x2f8aa0)=>{const _0x46c94e=_0x24eb44[0x0]['createdAt'],_0x2a169e=_0x2f8aa0[0x0]['createdAt'];return _0x46c94e==_0x2a169e?_0x24eb44[0x0]['attributes']['groupId']<_0x2f8aa0[0x0]['attributes']['groupId']?-0x1:0x1:_0x46c94e<_0x2a169e?-0x1:0x1;});for(const _0x17de30 of _0x59647d)_0x17de30['sort']((_0x938658,_0x46c163)=>_0x938658['id']<_0x46c163['id']?-0x1:0x1);}());for(let _0x550624=0x0;_0x550624<_0x59647d['length'];_0x550624++){if(0x0==_0x59647d[_0x550624]['length'])continue;const _0xa922c5=[];for(let _0x67feae=_0x550624+0x1;_0x67feae<_0x59647d['length'];_0x67feae++)0x0!=_0x59647d[_0x67feae]['length']&&_0x2d7a05(_0x59647d[_0x550624],_0x59647d[_0x67feae])&&_0xa922c5['push'](_0x67feae);for(const _0x441f0d of _0xa922c5)_0x59647d[_0x550624]=_0x59647d[_0x550624]['concat'](_0x59647d[_0x441f0d]),_0x59647d[_0x441f0d]=[];}for(const _0x222794 of _0x59647d)for(let _0x4e6145=0x0;_0x4e6145<_0x222794['length'];_0x4e6145++){const _0x5b5f0f=_0x222794[_0x4e6145+0x1]||null;_0x222794[_0x4e6145]['next']!==_0x5b5f0f&&(_0x222794[_0x4e6145]['next']=_0x5b5f0f);}for(const _0x46349a of _0x59647d)for(let _0x4a21cd=0x0;_0x4a21cd<_0x46349a['length'];_0x4a21cd++){const _0xc3fe06=_0x46349a[_0x4a21cd-0x1]||null;_0x46349a[_0x4a21cd]['previous']!==_0xc3fe06&&(_0x46349a[_0x4a21cd]['previous']=_0xc3fe06);}function _0x2d7a05(_0x27d689,_0x5c94c0){if(_0x27d689[0x0]['attributes']['groupId']!==_0x5c94c0[0x0]['attributes']['groupId']&&_0x27d689[0x0]['author']!==_0x5c94c0[0x0]['author'])return!0x1;if(!function(_0x23d883,_0x4bdeee){if(!_0x23d883['hasComments']&&!_0x4bdeee['hasComments'])return!0x0;if(_0x23d883['hasComments']&&_0x4bdeee['hasComments'])return!0x1;if(_0x23d883['hasComments']&&_0x4bdeee['createdAt']<_0x23d883['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4bdeee['hasComments']&&_0x23d883['createdAt']<_0x4bdeee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x27d689[0x0],_0x5c94c0[0x0]))return!0x1;const _0x206941=ot(_0x27d689[0x0]['attributes'],['groupId','trackingSessionId']),_0x136666=ot(_0x5c94c0[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x206941,_0x136666))return!0x1;if(_0x27d689[0x0]['attributes']['groupId']==_0x5c94c0[0x0]['attributes']['groupId'])return!0x0;if(_0x27d689[0x0]['attributes']['trackingSessionId']!==_0x5c94c0[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x27d689['every'](_0x2f646c=>_0x5c94c0['some'](_0x26360a=>_0x2f646c['getFirstRange']()['isEqual'](_0x26360a['getFirstRange']())))&&_0x5c94c0['every'](_0x1f1e79=>_0x27d689['some'](_0x492744=>_0x1f1e79['getFirstRange']()['isEqual'](_0x492744['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x26ce4d){const _0x402c78=Array['from'](_0x26ce4d),_0x33e2d1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x51445d=_0x33e2d1['filter'](_0x245e2b=>!_0x26ce4d['has'](_0x245e2b)),_0x1809d0=new Map(_0x402c78['map'](_0x1a798a=>[_0x1a798a,this['_suggestionFactory']['getSuggestionCallback'](_0x1a798a['type'],_0x1a798a['subType'],'join')])),_0x50ea26=new Map(_0x33e2d1['map'](_0x94ad0c=>[_0x94ad0c,_0x94ad0c['getRanges']()]));for(let _0x11cdaa=0x0;_0x11cdaa<_0x402c78['length'];_0x11cdaa++){if(_0x5f1aec(this,_0x402c78[_0x11cdaa],_0x402c78,_0x11cdaa+0x1))return!0x0;}for(let _0x35f1eb=0x0;_0x35f1eb<_0x402c78['length'];_0x35f1eb++){if(_0x5f1aec(this,_0x402c78[_0x35f1eb],_0x51445d,0x0))return!0x0;}return!0x1;function _0x5f1aec(_0x17d272,_0x65acd9,_0x5df68a,_0x12f62c){for(let _0x2ec767=_0x12f62c;_0x2ec767<_0x5df68a['length'];_0x2ec767++){const _0x40300d=_0x5df68a[_0x2ec767];if(_0x40300d['type']!==_0x65acd9['type']||_0x40300d['author']['id']!==_0x65acd9['author']['id']||_0x40300d['subType']!==_0x65acd9['subType'])continue;if(!an(_0x65acd9,_0x40300d))continue;if('attribute'==_0x65acd9['type']&&_0x65acd9['data']['oldValue']!=_0x40300d['data']['oldValue'])continue;if('attribute'==_0x65acd9['type']&&_0x17d272['_suggestionsConversion']['isBlockAttribute'](_0x65acd9['data']['key']))continue;if('formatBlock'==_0x65acd9['type']){const _0xc8b642=_0x17d272['editor']['model'],_0x546b82=_0x65acd9['getContainedElement']();if(_0x546b82&&(_0xc8b642['schema']['isObject'](_0x546b82)||_0xc8b642['schema']['isLimit'](_0x546b82)))continue;}const _0x294c46=_0x1809d0['get'](_0x65acd9),_0xeb1713=_0x50ea26['get'](_0x65acd9),_0x5e226d=_0x50ea26['get'](_0x40300d),_0x5be92d=_0x65acd9['commentThread']&&_0x65acd9['commentThread']['length'],_0xc273a2=_0x40300d['commentThread']&&_0x40300d['commentThread']['length'];if(!_0x5be92d&&_0x294c46(_0x5e226d,_0xeb1713))return _0x17d272['_joinSuggestions'](_0x40300d,_0x65acd9),_0x50ea26['delete'](_0x65acd9),!0x0;if(!_0xc273a2&&_0x294c46(_0xeb1713,_0x5e226d))return _0x17d272['_joinSuggestions'](_0x65acd9,_0x40300d),_0x50ea26['delete'](_0x40300d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b756f,_0x3827a8){if(_0x3b756f['isMultiRange']){for(const _0xcbd005 of _0x3827a8['getRanges']())_0x3b756f['addRange'](_0xcbd005);}else{const _0x3e1c24=_0x3827a8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b756f,this['_model']['createRange'](_0x3b756f['getFirstRange']()['start'],_0x3e1c24));}_0x3827a8['removeMarkers']();}['_getMarkerAnnouncementText'](_0xb6d6ba,_0x10f7f1,_0x5e8400){const _0x39ecd1=_0xb6d6ba['startsWith']('format')||_0xb6d6ba['startsWith']('attribute')?'FORMATTING':_0xb6d6ba['toUpperCase']();return At(this['editor']['locale'],_0x10f7f1+'_'+_0x39ecd1+'_SUGGESTION_ANNOUNCEMENT',_0x5e8400);}['_initAriaMarkerChangeAnnouncements'](){const _0x411d52=this['editor'];if(!_0x411d52['ui'])return;const {ariaLiveAnnouncer:_0x1ec603}=_0x411d52['ui'];_0x497775(this['_model'],({left:_0x5a750a,entered:_0x508ac2})=>{for(const _0x1ac326 of _0x5a750a){const {group:_0xb9c022,type:_0x1f9a39}=_0x413c95(_0x1ac326['name']);if('suggestion'===_0xb9c022){_0x1ec603['announce'](this['_getMarkerAnnouncementText'](_0x1f9a39,'LEAVE'));break;}}for(const _0x3acb09 of _0x508ac2){const {group:_0xefce03,type:_0x34e5a8}=_0x413c95(_0x3acb09['name']);if('suggestion'===_0xefce03){_0x1ec603['announce'](this['_getMarkerAnnouncementText'](_0x34e5a8,'ENTER',_0x20aee3(_0x523eff)));break;}}});}['_processAttributeChanges'](_0x226267){if(this['_recordAttributeSuggestions'])return!0x1;const _0x883840=this['editor'],_0x50a1fd=_0x883840['model']['document']['differ']['getChanges']();if(0x0==_0x50a1fd['length'])return!0x1;const _0x185a07=[],_0x2b927c=_0x50a1fd['filter'](_0x34f076=>'attribute'==_0x34f076['type']),_0x3bad28=_0x50a1fd['filter'](_0x37d92c=>'insert'==_0x37d92c['type']&&'$text'!=_0x37d92c['name']),_0x47f0a5=_0x50a1fd['filter'](_0x4fbca2=>'remove'==_0x4fbca2['type']&&'$text'!=_0x4fbca2['name']);for(const _0x5d813c of _0x2b927c)_0x185a07['push']({'key':_0x5d813c['attributeKey'],'newValue':_0x5d813c['attributeNewValue'],'oldValue':_0x5d813c['attributeOldValue'],'range':sn(_0x5d813c['range'],_0x883840['model'])});for(const _0x258498 of _0x3bad28){const _0x28112c=_0x47f0a5['find'](_0x44fe64=>_0x44fe64['position']['isEqual'](_0x258498['position']));_0x28112c&&_0x185a07['push']({'key':Ke,'newValue':_0x258498['name'],'oldValue':_0x28112c['name'],'range':_0x883840['model']['createRangeOn'](_0x258498['position']['nodeAfter'])});}return 0x0!=_0x185a07['length']&&this['_reduceExistingSuggestions'](_0x226267,_0x185a07);}['_processAttributeSuggestions'](_0x1a1446){let _0x436c31=!0x1;const _0x5e6fbd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ce461=>_0x4ce461['data']['newRange']&&_0x4ce461['name']['startsWith']('suggestion:attribute:'));for(const _0x31140a of _0x5e6fbd){const {subType:_0x21757c,id:_0xc48f5c}=_0x413c95(_0x31140a['name']),_0x318a67=_0x21757c['split']('|')[0x0];for(const _0x1c3b10 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1c3b10['id']!=_0xc48f5c&&'attribute'==_0x1c3b10['type']&&_0x1c3b10['data']&&_0x1c3b10['data']['key']==_0x318a67&&_0x1c3b10['getFirstRange']()['isIntersecting'](_0x31140a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1c3b10,_0x31140a['data']['newRange'],_0x1a1446),_0x436c31=!0x0);}return _0x436c31;}['recordAttributeChanges'](_0x512817){this['_recordAttributeSuggestions']=!0x0,_0x512817();}['_reduceExistingSuggestions'](_0x30f8c3,_0x2f31f5){if(0x0==_0x2f31f5['length'])return!0x1;let _0x3d9086=!0x1;for(const _0xd4b121 of _0x2f31f5){const _0x4ac173=this['_findSuggestions'](_0xd4b121['range'],'attribute')['filter'](_0x2eef33=>!_0x2eef33['meta']['isNextTo'])['map'](_0x4b85cc=>_0x4b85cc['suggestion']),_0x4e306f=_0x408f0f({'newValue':_0xd4b121['newValue']});_0x4ac173['filter'](_0x255e12=>{const [_0xcf0b84,_0x407c19]=_0x255e12['subType']['split']('|');return _0xcf0b84==_0xd4b121['key']&&_0x407c19!=_0x4e306f;})['forEach'](_0x92541b=>{this['_reduceSuggestionAttributeRange'](_0x92541b,_0xd4b121['range'],_0x30f8c3),_0x3d9086=!0x0;});}return _0x3d9086;}['_reduceSuggestionAttributeRange'](_0x11d3e7,_0x328409,_0x34d83f){const _0x60511a=_0x11d3e7['getFirstRange']()['getDifference'](_0x328409);0x0!==_0x60511a['length']?0x1!==_0x60511a['length']?this['_breakSuggestionMarker'](_0x11d3e7,_0x328409['start'],_0x328409['end']):this['_setSuggestionRange'](_0x11d3e7,_0x60511a[0x0]):_0x34d83f['removeMarker'](_0x11d3e7['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2c19a7){this['_editor']=_0x2c19a7,this['_model']=_0x2c19a7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4caf00,_0x23c78d,_0x48b9a5,_0x595f00,_0x2d84f2,_0x42e768,_0x320f78){return new bt(this['_model'],{'type':_0x4caf00,'subType':_0x23c78d,'id':_0x48b9a5,'originalSuggestionId':_0x320f78,'author':_0x595f00,'creator':_0x595f00,'attributes':_0x2d84f2,'onAttributesChange':_0x42e768,'onAccept':(..._0xe9f442)=>this['getSuggestionCallback'](_0x4caf00,_0x23c78d,'accept')(..._0xe9f442),'onDiscard':(..._0x5ba50c)=>this['getSuggestionCallback'](_0x4caf00,_0x23c78d,'discard')(..._0x5ba50c)});}['registerCustomCallback'](_0x4298d7,_0x653f71,_0x13b1ad,_0x1af61f){const _0xbdc4e=_0x4298d7+':'+_0x653f71+':'+_0x13b1ad;this['_customCallbacks']['set'](_0xbdc4e,_0x1af61f);}['getSuggestionCallback'](_0x45323f,_0x53c17f,_0x227a8c){const _0x1788b2=_0x45323f+':'+_0x53c17f+':'+_0x227a8c;return this['_customCallbacks']['get'](_0x1788b2)||this['_defaultCallbacks']['get'](_0x45323f+':'+_0x227a8c);}['_registerDefaultCallbacks'](){const _0x428047=()=>!0x1,_0xae91f4=_0x3d6d60=>{_0x3d6d60['sort']((_0x238e9e,_0x4d91ca)=>_0x238e9e['start']['isBefore'](_0x4d91ca['start'])?0x1:-0x1),this['_model']['change'](_0x3f17c2=>{for(const _0x53356a of _0x3d6d60){let _0x322b1f;_0x322b1f=_0x53356a['end']['isAtEnd']&&_0x53356a['end']['parent']==_0x53356a['start']['nodeAfter']?_0x3f17c2['createSelection'](_0x53356a['start']['nodeAfter'],'on'):_0x3f17c2['createSelection'](_0x53356a),this['_model']['deleteContent'](_0x322b1f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x327eb1=(_0xb3b4b1,_0x390262)=>{_0x390262&&this['_model']['change'](_0x1d3b4c=>{const {commandName:_0x586de7,commandParams:_0x5d1283=[]}=_0x390262,_0x248491=_0xb3b4b1['map'](_0xd60c2=>(Qe(_0xd60c2)&&(_0xd60c2=this['_model']['createRange'](_0xd60c2['end'])),_0xd60c2))['filter'](_0x44c900=>'$graveyard'!==_0x44c900['root']['rootName']);if(_0x248491['length']<0x1)return;const _0x20334d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2d1c18=>_0x3e26ed['fromRange'](_0x2d1c18));_0x1d3b4c['setSelection'](_0x248491);for(const _0x2bcdc0 of this['_editor']['commands']['commands']())_0x2bcdc0['refresh']();_0x5d1283['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x586de7,..._0x5d1283);const _0x47e388=_0x20334d['filter'](_0x1f3e27=>'$graveyard'!=_0x1f3e27['root']['rootName']);_0x47e388['length']>0x0&&_0x1d3b4c['setSelection'](_0x47e388);for(const _0x334114 of _0x20334d)_0x334114['detach']();});},_0x1e29ac=(_0x88cab9,_0x38cb87)=>0x1==_0x88cab9['length']&&0x1==_0x38cb87['length']&&_0x88cab9[0x0]['end']['isEqual'](_0x38cb87[0x0]['start']),_0x3d23c5=(_0x19018a,_0x588b51,_0x219927,_0x4a1d2d)=>on(_0x19018a,_0x588b51,_0x219927,_0x4a1d2d)?[_0x19018a,_0x588b51]:on(_0x588b51,_0x19018a,_0x4a1d2d,_0x219927)?[_0x588b51,_0x19018a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x428047),this['_defaultCallbacks']['set']('insertion:discard',_0xae91f4),this['_defaultCallbacks']['set']('insertion:join',_0x1e29ac),this['_defaultCallbacks']['set']('insertion:chain',_0x3d23c5),this['_defaultCallbacks']['set']('deletion:accept',_0xae91f4),this['_defaultCallbacks']['set']('deletion:discard',_0x428047),this['_defaultCallbacks']['set']('deletion:join',_0x1e29ac),this['_defaultCallbacks']['set']('deletion:chain',_0x3d23c5),this['_defaultCallbacks']['set']('formatInline:accept',_0x327eb1),this['_defaultCallbacks']['set']('formatInline:discard',_0x428047),this['_defaultCallbacks']['set']('formatInline:join',_0x1e29ac),this['_defaultCallbacks']['set']('formatInline:chain',_0x428047),this['_defaultCallbacks']['set']('formatBlock:accept',_0x327eb1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x428047),this['_defaultCallbacks']['set']('formatBlock:join',_0x1e29ac),this['_defaultCallbacks']['set']('formatBlock:chain',_0x428047),this['_defaultCallbacks']['set']('attribute:accept',_0x428047),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a5581,_0x215421)=>{if(!_0x215421)return;const _0x373d12=this['_editor']['plugins']['get'](_0x3517fc);this['_model']['change'](_0x218b33=>{if(_0x215421['key']==Ke)for(const _0x4dee45 of _0x3a5581){const _0x57deba=_0x4dee45['start']['nodeAfter'],_0x3ecd53=_0x215421['oldValue'];_0x218b33['rename'](_0x57deba,_0x3ecd53);}else{if(_0x373d12['isBlockAttribute'](_0x215421['key'])){for(const _0x21c37a of _0x3a5581)void 0x0!==_0x215421['oldValue']?_0x218b33['setAttribute'](_0x215421['key'],_0x215421['oldValue'],_0x21c37a['start']['nodeAfter']):_0x218b33['removeAttribute'](_0x215421['key'],_0x21c37a['start']['nodeAfter']);}else{for(const _0x3e0b21 of _0x3a5581)_0x215421['oldValue']?_0x218b33['setAttribute'](_0x215421['key'],_0x215421['oldValue'],_0x3e0b21):_0x218b33['removeAttribute'](_0x215421['key'],_0x3e0b21);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1e29ac);}}function qe(_0xb67597,_0x323d95,_0x1b27e3){for(const _0x5f2cf8 of _0x323d95['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f2cf8['root']==_0x5f2cf8)return!0x1;if(!_0x1b27e3['containsItem'](_0x5f2cf8))return!0x1;if(_0xb67597['isObject'](_0x5f2cf8)||_0xb67597['isLimit'](_0x5f2cf8))return!0x0;}return!0x1;}function Qe(_0x41f845){return _0x41f845['end']['parent']==_0x41f845['start']['nodeAfter']&&_0x41f845['end']['isAtStart'];}function Ze(_0x221687,_0x1ab8d1,_0x528bf2,_0x3b232e){const _0x43696b=_0x407f18=>!_0x407f18['item']['is']('$textProxy')&&!_0x3b232e['isObject'](_0x407f18['item']),_0xba2c80=_0x221687['start']['getLastMatchingPosition'](_0x43696b),_0x57ec5a=_0x221687['end']['getLastMatchingPosition'](_0x43696b,{'direction':'backward'});return(!_0x221687['start']['isEqual'](_0xba2c80)||!_0x221687['end']['isEqual'](_0x57ec5a))&&(_0xba2c80['isBefore'](_0x57ec5a)?_0x528bf2['updateMarker'](_0x1ab8d1,{'range':_0x528bf2['createRange'](_0xba2c80,_0x57ec5a)}):_0x528bf2['removeMarker'](_0x1ab8d1),!0x0);}function Je(_0x1b1168){return _0x408f0f(_0x1b1168);}function tn(_0x4250b2){const _0x49c5b6=_0x4250b2['start']['nodeAfter'];return _0x49c5b6&&_0x49c5b6['is']('element');}function en(_0x214081){return Qe(_0x214081)||function(_0x3d97ca){return _0x3d97ca['start']['parent']==_0x3d97ca['end']['nodeBefore']&&_0x3d97ca['start']['isAtEnd'];}(_0x214081);}function nn(_0x4a5daf,_0xd182bc){try{const _0x56731a=_0x4a5daf['getRange']();for(const _0x13a3c6 of _0xd182bc)if(_0x4a5daf!==_0x13a3c6&&_0x56731a&&_0x56731a['isIntersecting'](_0x13a3c6['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x4dd297,_0x187176){return null==_0x4dd297['end']['nodeBefore']&&_0x4dd297['end']['parent']==_0x4dd297['start']['nodeAfter']?rn(_0x4dd297['start']['nodeAfter'],_0x187176):_0x4dd297;}function rn(_0x34958d,_0x287667){const _0x3f66c6=_0x287667['schema']['isObject'](_0x34958d)||_0x287667['schema']['isSelectable'](_0x34958d);return _0x287667['createRange'](_0x287667['createPositionAt'](_0x34958d,'before'),_0x3f66c6?_0x287667['createPositionAfter'](_0x34958d):_0x287667['createPositionAt'](_0x34958d,'end'));}function on(_0x4c520f,_0x44da1f,_0x2a8ada,_0x357fe8){return!!an(_0x4c520f,_0x44da1f)&&_0x2a8ada['end']['isEqual'](_0x357fe8['start']);}function an(_0x297ef5,_0x588226){if(!_0x297ef5['_isDataLoaded']||!_0x588226['_isDataLoaded'])return!0x1;const _0x5aa235=new Set(Object['keys'](_0x297ef5['attributes'])),_0x455aa0=new Set(Object['keys'](_0x588226['attributes']));if(_0x5aa235['delete']('groupId'),_0x455aa0['delete']('groupId'),0x0==_0x5aa235['size']&&0x0==_0x455aa0['size'])return!0x0;if(_0x5aa235['size']!=_0x455aa0['size'])return!0x1;const _0x5b0790={..._0x297ef5['attributes']},_0x1a3bab={..._0x588226['attributes']};return delete _0x5b0790['groupId'],delete _0x1a3bab['groupId'],JSON['stringify'](_0x5b0790)==JSON['stringify'](_0x1a3bab);}function cn(_0x2127f6,_0x3a6e31){const _0x5e5860=ln(_0x2127f6['attributes']),_0x9e0e8a=ln(_0x3a6e31);if(!_0x2127f6['_isDataLoaded'])return!0x1;for(const _0x3f3321 of Object['keys'](_0x9e0e8a))if(!st(_0x5e5860[_0x3f3321],_0x9e0e8a[_0x3f3321]))return!0x1;return!0x0;}function ln(_0x415a97){const _0x2d2873=Object['assign']({},_0x415a97);return delete _0x2d2873['skipNestingCheck'],delete _0x2d2873['tablePasteChainId'],_0x2d2873;}function un(_0x33635f){return _0x33635f['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x13e55e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b4fca,_0x2b308f,_0x5509ff,_0x21da8c){super(),this['model']=_0x2b308f,this['view']=_0x5509ff,this['commentThreadController']=_0x21da8c,this['_editor']=_0x5b4fca,this['_acceptCommand']=_0x5b4fca['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b4fca['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4bbf92,_0xece23d)=>_0x4bbf92||_0xece23d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4897d3=>_0x4897d3&&this['_editor']['model']['canEditAt'](_0x2b308f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35a451=>_0x35a451&&this['_editor']['model']['canEditAt'](_0x2b308f['getRanges']())),this['_pendingAction']=null,_0x5509ff['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5509ff,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5509ff,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5509ff,'change:isDirty',()=>{_0x5509ff['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 _0x34326e=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x34326e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0xd16ce8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4de053,_0x41843e,_0x437939,_0x13d0cc){super(_0x4de053),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb8c91(_0x4de053,At(_0x4de053,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x41843e['authoredAt']),this['bind']('authoredAt')['to'](_0x41843e),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',_0x41843e,'authoredAt',this,'descriptionParts',(_0x134f9e,_0x847d4,_0xc9190a)=>{const _0x39581f=_0xc9190a['map'](_0x5d38c1=>gt(_0x5d38c1['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x134f9e-0x1,_0x41843e['author']['name'],_0x847d4?_0x13d0cc['formatDateTime'](_0x847d4):'',new DOMParser()['parseFromString'](_0x39581f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5d830e(),this['focusTracker']=new _0x5f3c33(),this['keystrokes']=new _0x5b9390(),this['focusCycler']=new _0x4d88fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x534b1a=>_0x534b1a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x41843e,this['_localUser']=_0x437939,this['_config']=_0x13d0cc,_0x13d0cc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x244efc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a536c}=this['_config'];this['commentsListView']=new _0x2a536c(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',_0x26c22a=>_0x26c22a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x128555,_0x5d3dad)=>_0x128555||!!_0x5d3dad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x21474d}=this['_config'],_0x41012e=new _0x21474d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6150cb=_0x41012e['commentInputView'];return _0x41012e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6150cb,'value',(_0x165d5f,_0x461c3d,_0x16b46a)=>!!_0x16b46a||_0x165d5f&&!_0x461c3d),_0x6150cb['on']('submit',(_0x546b1c,_0x13dca8)=>{this['fire']('addComment',_0x13dca8),_0x6150cb['editor']['setData']('');}),_0x6150cb['on']('cancel',()=>this['focus']()),_0x6150cb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x41012e;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x41c11b,_0x1d2266,_0x1647cb,_0x167a2a){super(_0x41c11b,_0x1d2266,_0x1647cb,_0x167a2a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x15cf92=>_0x15cf92&&_0x15cf92[0x0]?_0x15cf92[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5e4cb2,_0x18b534)=>{let _0x205f6c='';for(const _0x174f75 of _0x5e4cb2)_0x205f6c+='<p>'+gt(_0x174f75['content'],_0x174f75['color'])+'</p>';return _0x18b534?_0x205f6c:_0x40ae59(_0x205f6c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x167a2a['SuggestionView'](_0x41c11b,_0x1d2266,{'formatDateTime':_0x167a2a['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x28b32e=this['bindTemplate'],_0x2e1f61=[this['suggestionView']];return this['commentsListView']&&_0x2e1f61['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2e1f61['push'](this['commentThreadInputView']),_0x2e1f61['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x28b32e['if']('isActive','ck-suggestion-wrapper--active'),_0x28b32e['to']('type',_0x3dc9fe=>'ck-suggestion-'+_0x3dc9fe),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':_0x28b32e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2e1f61};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class gn extends _0xd16ce8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x446640,_0x7aa21f,_0x1fab4a){super(_0x446640),this['_model']=_0x7aa21f,this['_config']=_0x1fab4a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x7aa21f),this['acceptButton']=this['_createButton'](At(_0x446640,'Accept\x20suggestion'),_0x1adb84,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x446640,'Discard\x20suggestion'),_0x35103b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5dedc4(_0x446640,_0x7aa21f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5d830e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5f3c33(),this['keystrokes']=new _0x5b9390(),this['focusCycler']=new _0x4d88fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x119dd1=>_0x119dd1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x6a287a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x6a287a['innerHTML']=this['description'],this['on']('change:description',(_0x5de8c1,_0x1ac707,_0x49f7b0)=>{_0x6a287a['innerHTML']=_0x49f7b0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x282108=this['bindTemplate'],_0xd3f088=[{'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':_0x282108['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x282108['to']('authoredAt',_0x646bd3=>this['_config']['formatDateTime'](_0x646bd3))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xd3f088['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xd3f088}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xf7d61e,_0x3d72e6,_0x2c1ede,_0x232c1d,_0x86d228){const _0x81410b=new _0x51a132(this['locale']);return _0x81410b['set']({'label':_0xf7d61e,'icon':_0x3d72e6,'tooltip':!0x0,'tooltipPosition':_0x86d228}),_0x81410b['extendTemplate']({'attributes':{'class':_0x2c1ede}}),_0x81410b['on']('execute',()=>{this['fire'](_0x232c1d,this['_model']['id']);}),_0x81410b;}['_setupKeyboardNavigation'](){const _0x10dec6=this['element'];this['keystrokes']['listenTo'](_0x10dec6);for(const _0x4d308c of this['focusables'])this['focusTracker']['add'](_0x4d308c['element']),this['keystrokes']['listenTo'](_0x4d308c['element']);this['keystrokes']['set']('enter',(_0x5ed3e8,_0x442a3f)=>{_0x10dec6===_0x5ed3e8['target']&&(this['focusCycler']['focusFirst'](),_0x442a3f());}),this['keystrokes']['set']('esc',(_0x43c2d0,_0x3da507)=>{_0x10dec6!==_0x43c2d0['target']&&(this['focus'](),_0x3da507());});}}class mn extends _0x55ebc7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x4c8879,_0x3c2b56,_0x13902d,_0x1121a4];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fd7ad){super(_0x1fd7ad),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x73260e=this['editor']['config'];_0x73260e['define']('trackChanges.SuggestionThreadView',fn),_0x73260e['define']('trackChanges.SuggestionView',gn),_0x73260e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x73260e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x47ffb1,_0x2c7638){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2ffe0e,_0x572bca]of this['_handleControllerBuffer']){const _0x54b5cf=this['_suggestionToController']['has'](_0x2ffe0e);_0x54b5cf||_0x572bca?_0x54b5cf&&_0x572bca&&this['_destroyController'](_0x2ffe0e):this['_initializeController'](_0x2ffe0e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1121a4)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x47ffb1,_0x2c7638);}['init'](){const _0x493919=this['editor'],_0x35f54d=_0x493919['plugins']['get'](Xe),_0x11a6d0=_0x493919['plugins']['get'](_0x13902d),_0x2825c2=_0x493919['plugins']['get'](_0x1121a4),_0x526f15=_0x493919['plugins']['get'](_0x3c2b56);this['_addUIComponentsToFactory'](),_0x2825c2['addSourceCollector'](()=>{const _0x541759=[];for(const [_0x541c26,_0x4cecd2]of Array['from'](this['_suggestionToController'])){const _0x1fc170=_0x541c26['getAllAdjacentSuggestions'](),_0x410029=[];for(const _0x1bd0bc of _0x1fc170){if(!_0x1bd0bc['isInContent'])continue;if(_0x1bd0bc['isMultiRange']){_0x410029['push'](..._0x1bd0bc['getRanges']());continue;}const _0x423b1e=_0x1bd0bc['getFirstRange']();if(_0x410029['length']>0x0){const _0x100ba6=_0x410029[0x0]['getJoined'](_0x423b1e);if(_0x100ba6){_0x410029[0x0]=_0x100ba6;continue;}}_0x410029['push'](_0x423b1e);}_0x541759['push']([_0x4cecd2['view'],_0x410029]);}return _0x541759;}),this['listenTo'](_0x35f54d,'suggestionLoaded',(_0x53ba77,_0x3ae97b)=>{this['listenTo'](_0x3ae97b,'change:previous',(_0x2d4038,_0x4f306b,_0x562dfd,_0x7e91a7)=>{_0x3ae97b['isInContent']&&(null==_0x562dfd?(this['_updateController'](_0x7e91a7['head']),this['_handleSuggestionControllerDelayed'](_0x3ae97b,!0x1)):(this['_updateController'](_0x562dfd['head']),null==_0x7e91a7&&this['_handleSuggestionControllerDelayed'](_0x3ae97b,!0x0)));}),null!==_0x3ae97b['previous']?this['_updateController'](_0x3ae97b['head']):this['_handleSuggestionControllerDelayed'](_0x3ae97b,!0x1);}),this['listenTo'](_0x35f54d,'suggestionUnloaded',(_0x4d02fb,_0xebc814,_0x18d110)=>{this['stopListening'](_0xebc814,'change:previous'),this['_handleControllerBuffer']['delete'](_0xebc814),this['_suggestionToController']['has'](_0xebc814)&&this['_destroyController'](_0xebc814),_0x18d110&&this['_updateController'](_0x18d110['head']);}),this['listenTo'](_0x35f54d,'suggestionChanged',(_0x403893,_0x3c7bd2)=>{this['_updateController'](_0x3c7bd2);}),this['listenTo'](_0x11a6d0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x526f15,'addComment',(_0x3f9513,{threadId:_0x389b91,isFromAdapter:_0x4a2bc1})=>{if(_0x4a2bc1||!_0x35f54d['hasSuggestion'](_0x389b91))return;const _0x21c58e=_0x35f54d['getSuggestion'](_0x389b91);this['_suggestionToController']['get'](_0x21c58e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ae491=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x280e95;for(const _0x19cb15 in _0x4ae491){const _0x2c6ddb=_0x19cb15,_0x2dfb8f=_0x4ae491[_0x2c6ddb];if('trackChangesLicenseKeyValid'==_0x2dfb8f||'trackChangesLicenseKeyInvalid'==_0x2dfb8f||'trackChangesLicenseKeyExpired'==_0x2dfb8f||'trackChangesLicenseKeyDomainLimit'==_0x2dfb8f||'trackChangesLicenseKeyNotAllowed'==_0x2dfb8f||'trackChangesLicenseKeyEvaluationLimit'==_0x2dfb8f||'trackChangesLicenseKeyUsageLimit'==_0x2dfb8f){delete _0x4ae491[_0x2c6ddb],_0x280e95=_0x2dfb8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x280e95&&_0x4ae491['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x280e95&&_0x4ae491['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x280e95&&_0x4ae491['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x280e95&&_0x4ae491['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x280e95&&_0x4ae491['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x280e95&&_0x4ae491['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1babe9){const _0x5c44d1=this['_suggestionToController']['get'](_0x1babe9);if(!_0x5c44d1)return null;return this['editor']['plugins']['get'](_0x13902d)['getByInnerView'](_0x5c44d1['view'])||null;}['getSuggestionForAnnotation'](_0xb2820a){const _0xc4ca90=this['_viewToController']['get'](_0xb2820a['innerView']);return _0xc4ca90?_0xc4ca90['model']:null;}['_refreshActiveMarkers'](){const _0x275f35=this['editor']['plugins']['get'](_0x13902d),_0x4a2043=this['editor']['plugins']['get'](Xe),_0x4f8f8d=Array['from'](_0x275f35['activeAnnotations'],_0x273a9f=>_0x273a9f['innerView'])['filter'](_0x14c2e5=>this['_viewToController']['has'](_0x14c2e5)),_0x59fa79=[];for(const _0x345944 of _0x4f8f8d){const _0x2c0362=this['_viewToController']['get'](_0x345944)['model']['getAllAdjacentSuggestions']();_0x59fa79['push'](..._0x2c0362['reduce']((_0x5991e1,_0x24bd16)=>[..._0x5991e1,..._0x24bd16['getMarkerNames']()],[]));}_0x4a2043['activeMarkers']=_0x59fa79;}['_addUIComponentsToFactory'](){const _0x16b8ed=this['editor'],_0x1a196d=_0x16b8ed['locale'],_0x53a1c1=At(_0x1a196d,'Track\x20changes'),_0xa1b02f=new _0x810344([{'type':'switchbutton','model':new _0x26339d({'withText':!0x0,'isToggleable':!0x0,'label':_0x53a1c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x16b8ed['plugins']['has']('TrackChangesPreview')&&_0xa1b02f['addMany']([{'type':'separator'},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x555bb6 of _0xa1b02f)if(En(_0x555bb6)){const _0x3a8ef1=_0x16b8ed['commands']['get'](_0x555bb6['model']['commandName']);_0x555bb6['model']['bind']('isOn','isEnabled')['to'](_0x3a8ef1,'value','isEnabled');}_0x16b8ed['ui']['componentFactory']['add']('trackChanges',_0x176e14=>this['_createToolbarButton'](_0x176e14,_0xa1b02f,_0x53a1c1)),_0x16b8ed['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1646ae=>this['_createMenuBarMenu'](_0x1646ae,_0xa1b02f,_0x53a1c1));}['_createToolbarButton'](_0x3d7bbb,_0xc21095,_0x1c3138){const _0x530a72=_0x222c55(_0x3d7bbb,_0x3307d2),_0x5855b0=this['editor']['commands']['get']('trackChanges');_0x530a72['buttonView']['set']({'tooltip':_0x1c3138,'label':_0x1c3138,'icon':_0x35f55e}),_0x530a72['buttonView']['bind']('isOn')['to'](_0x5855b0,'value'),_0x530a72['buttonView']['on']('execute',()=>{_0x5855b0['execute'](),this['editor']['editing']['view']['focus']();}),_0x5511b6(_0x530a72,_0xc21095,{'role':'menu'});const _0x2340ec=[];for(const _0x5f1ad9 of _0xc21095)En(_0x5f1ad9)&&_0x2340ec['push'](this['editor']['commands']['get'](_0x5f1ad9['model']['commandName']));const _0x5e4a58=_0x530a72['buttonView'];return _0x5e4a58['actionView']['unbind']('isEnabled'),_0x5e4a58['arrowView']['unbind']('isEnabled'),_0x5e4a58['actionView']['bind']('isEnabled')['to'](_0x5855b0,'isEnabled'),_0x5e4a58['arrowView']['bind']('isEnabled')['toMany'](_0x2340ec,'isEnabled',(..._0x2a767e)=>_0x2a767e['some'](_0x1142d7=>_0x1142d7)),_0x530a72['on']('execute',_0x2ca55b=>{this['editor']['execute'](_0x2ca55b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x530a72;}['_createMenuBarMenu'](_0xc0f641,_0x22eec3,_0x23d125){const _0x213a82=new _0xef9624(_0xc0f641),_0x317a6d=this['editor']['commands']['get']('trackChanges');_0x213a82['buttonView']['set']({'label':_0x23d125,'icon':_0x35f55e});const _0x5c2efb=new _0xeffb36(_0xc0f641);for(const _0x4c5579 of _0x22eec3){if('separator'==_0x4c5579['type']){_0x5c2efb['items']['add'](new _0x3a5db9(_0xc0f641));continue;}const _0x400b25=new _0x5293f1(_0xc0f641,_0x213a82),_0x1bb723=new _0x3a6084(_0xc0f641),_0x475689=_0x4c5579['model'];_0x1bb723['bind'](...Object['keys'](_0x475689))['to'](_0x475689),_0x1bb723['delegate']('execute')['to'](_0x213a82),_0x1bb723['on']('execute',()=>{this['editor']['execute'](_0x475689['commandName']),this['editor']['editing']['view']['focus']();}),_0x400b25['children']['add'](_0x1bb723),_0x5c2efb['items']['add'](_0x400b25);}return _0x213a82['bind']('isEnabled')['to'](_0x317a6d,'isEnabled'),_0x213a82['panelView']['children']['add'](_0x5c2efb),_0x213a82;}['_initializeController'](_0x53c75c){const _0x3beb8c=this['editor'],_0x24279d=_0x3beb8c['config'],_0x25858d=_0x3beb8c['plugins']['get'](_0x13902d),_0x4dab68=_0x3beb8c['plugins']['get'](_0x3c2b56),_0x2af6b6=_0x3beb8c['plugins']['get'](_0x1121a4),_0x45a076=_0x3beb8c['plugins']['get'](_0x4c8879)['me'],_0xf04492=_0x24279d['get']('trackChanges')['SuggestionThreadView'],_0x3acb4a=_0x24279d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x361a30,CommentThreadInputView:_0x191557}=_0x3beb8c['plugins']['get']('CommentsUI');let _0x4c53bf,_0x452fb3,_0x3cf622;this['_annotationViews']['has'](_0x53c75c['id'])?(_0x452fb3=this['_annotationViews']['get'](_0x53c75c['id']),_0x4c53bf=_0x452fb3['mainView']):(_0x4c53bf=new _0xf04492(_0x3beb8c['locale'],_0x53c75c,_0x45a076,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24279d['get']('comments.editorConfig'),'licenseKey':_0x24279d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24279d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24279d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24279d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x347435(_0x24279d['get']('locale'),_0x3beb8c['locale']),'CommentView':_0x24279d['get']('comments')['CommentView'],'CommentsListView':_0x361a30,'CommentThreadInputView':_0x191557,'SuggestionView':_0x3acb4a}),_0x4c53bf['suggestionView']['acceptButton']['on']('execute',()=>{_0x3beb8c['editing']['view']['focus']();}),_0x4c53bf['suggestionView']['discardButton']['on']('execute',()=>{_0x3beb8c['editing']['view']['focus']();}),_0x452fb3=_0x25858d['createAnnotationView'](this['editor']['locale'],_0x4c53bf),_0x452fb3['bind']('isDirty')['to'](_0x4c53bf,'isDirty'),_0x452fb3['bind']('length')['to'](_0x4c53bf),_0x452fb3['bind']('type')['to'](_0x4c53bf,'type',_0x134966=>'suggestion-'+_0x134966),_0x4c53bf['on']('escape',()=>{_0x3cf622['fire']('escape');}),this['_annotationViews']['set'](_0x53c75c['id'],_0x452fb3));const _0x293685=_0x4dab68['createCommentThreadController'](_0x53c75c['commentThread'],_0x4c53bf),_0x5ecd8e=new hn(_0x3beb8c,_0x53c75c,_0x4c53bf,_0x293685),_0x5f2de3=_0x53c75c['getAllAdjacentSuggestions']()['filter'](_0x1ee4bd=>_0x1ee4bd['isInContent']);_0x4c53bf['descriptionParts']=_0x3beb8c['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x5f2de3),this['_suggestionToController']['set'](_0x53c75c,_0x5ecd8e),this['_viewToController']['set'](_0x4c53bf,_0x5ecd8e);const _0x95c4aa=()=>{const _0x598896=[],_0x2ec0d8=_0x53c75c['getAllAdjacentSuggestions']()['filter'](_0x1be63d=>_0x1be63d['isInContent']);for(const _0x20b8cc of _0x2ec0d8)_0x598896['push'](..._0x20b8cc['getMarkers']());return _0x35c07e(_0x3beb8c['editing'],_0x598896);};_0x3cf622=_0x25858d['createAnnotation']({'view':_0x452fb3,'target':_0x95c4aa,'type':()=>'suggestion-'+_0x5ecd8e['view']['type'],'isVisible':!!_0x95c4aa()}),_0x4dab68['_bindAnnotationToEditors'](_0x4c53bf,_0x3cf622),_0x25858d['add'](_0x3cf622),_0x2af6b6['registerAnnotation'](_0x3cf622);}['_destroyController'](_0x29a89f){const _0x27faf1=this['editor']['plugins']['get'](_0x3c2b56),_0x1e2490=this['editor']['plugins']['get'](_0x13902d),_0x295e53=this['_suggestionToController']['get'](_0x29a89f),_0x5aff7d=_0x295e53['view'],_0x51056a=_0x1e2490['getByInnerView'](_0x5aff7d);_0x27faf1['_unbindEditors'](_0x5aff7d),_0x51056a&&_0x1e2490['remove'](_0x51056a),this['_suggestionToController']['delete'](_0x29a89f),this['_viewToController']['delete'](_0x5aff7d),_0x295e53['destroy']();}['_updateController'](_0x255a4c){if(!_0x255a4c['isInContent']||!this['_suggestionToController']['has'](_0x255a4c))return;const _0x56abf2=this['editor']['plugins']['get'](Xe),_0x2b2142=this['_suggestionToController']['get'](_0x255a4c),_0x33a7a9=_0x255a4c['getAllAdjacentSuggestions']();_0x2b2142['view']['descriptionParts']=_0x56abf2['descriptionFactory']['getDescriptions'](_0x33a7a9);}['destroy'](){for(const _0x2d79d1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d79d1);for(const _0x4f3a76 of this['_annotationViews']['values']())_0x4f3a76['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x3e06a5){return'model'in _0x3e06a5;}class Tn extends _0x55ebc7{static get['requires'](){return[Xe,mn,_0x3cc10d];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5ca751){this['editor']['plugins']['get'](Xe)['adapter']=_0x5ca751;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x2abd57){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x2abd57);}['getSuggestions']({skipNotAttached:_0x137d24=!0x1,toJSON:_0x5e99fa=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x137d24,'toJSON':_0x5e99fa});}['getSuggestion'](_0x3d2d6c){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x3d2d6c);}}const _n=['Pagination'];class pn extends _0x55ebc7{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x592313=this['editor'];if(_0x592313['config']['define']('trackChangesData.editorCreator',_0x2d6d8f=>{const _0x31f119=_0x592313['model']['document']['getRootNames']()['reduce']((_0x57716f,_0x3bd1c5)=>(_0x57716f[_0x3bd1c5]='',_0x57716f),{});return _0x592313['constructor']['create'](_0x31f119,_0x2d6d8f);}),'function'!=typeof _0x592313['config']['get']('trackChangesData')['editorCreator'])throw new _0x160e83('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1cbca7){return bn(this['editor'],!0x0,_0x1cbca7);}['getDataWithDiscardedSuggestions'](_0x54efed){return bn(this['editor'],!0x1,_0x54efed);}}class Ln extends _0x55ebc7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d923d){function _0x4b2bae(_0x733857){return _0x733857['map'](_0xde37b8=>String['fromCharCode'](_0xde37b8))['join']('');}super(_0x2d923d),this['result']='end',_0x2d923d[_0x4b2bae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b2bae([0x76,0x69,0x65,0x77])][_0x4b2bae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b2bae([0x61,0x75,0x74,0x6f]),_0x2d923d[_0x4b2bae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4b2bae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b2bae([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4b2bae([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4b2bae([0x6f,0x6b])});}['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 In(_0x5f2771){return void 0x0!==_0x5f2771['getRootsAttributes'];}async function bn(_0x365109,_0x463a5a,_0x6063e4){const _0x238364=_0x5b458b(_0x365109,_n);if(_0x238364['plugins']['push'](Xe,Ln),In(_0x365109)){_0x238364['roots']=Object['create'](null);for(const _0x4d07d2 of _0x365109['model']['document']['getRootNames']())_0x238364['roots'][_0x4d07d2]={'modelAttributes':_0x365109['getRootAttributes'](_0x4d07d2)};}const _0x4cd74e=document['createDocumentFragment'](),_0x1a83f7=_0x365109['config']['get']('trackChangesData')['editorCreator'],_0x692fb9=await _0x1a83f7(_0x238364,()=>function(_0x37c3ef){const _0x5955ee=document['createElement']('div');return _0x37c3ef['appendChild'](_0x5955ee),_0x5955ee;}(_0x4cd74e));!function(_0xc4da03,_0x3833cf){const _0x5e3dc8=_0xc4da03['model']['document']['getRootNames']()['reduce']((_0x1464a7,_0xe708ce)=>(_0x1464a7[_0xe708ce]=_0xc4da03['data']['get']({'rootName':_0xe708ce}),_0x1464a7),{}),_0x380999=_0xc4da03['plugins']['get']('Users')['users']['map'](_0x577e36=>({'id':_0x577e36['id'],'name':_0x577e36['name']})),_0x534902=_0xc4da03['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ca262=_0xc4da03['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5dd5c4=_0x3833cf['plugins']['get']('Users'),_0x49c273=_0x3833cf['plugins']['get']('TrackChangesEditing'),_0x590e7e=_0x3833cf['plugins']['get']('CommentsRepository');for(const _0x348e81 of _0x590e7e['getCommentThreads']())_0x348e81['remove']();for(const _0xeebac8 of _0x380999)_0x5dd5c4['getUser'](_0xeebac8['id'])||_0x5dd5c4['addUser'](_0xeebac8);_0x5dd5c4['me']||_0x5dd5c4['useAnonymousUser']();for(const _0x3e9728 of _0x2ca262)_0x590e7e['addCommentThread'](_0x3e9728);for(const _0x5c6905 of _0x534902)_0x49c273['addSuggestionData'](_0x5c6905);_0x3833cf['data']['set'](_0x5e3dc8);}(_0x365109,_0x692fb9),_0x692fb9['execute'](_0x463a5a?'acceptAllSuggestions':'discardAllSuggestions');const _0x463299=In(_0x692fb9)?_0x692fb9['getFullData'](_0x6063e4):_0x692fb9['data']['get'](_0x6063e4);return await _0x692fb9['destroy'](),_0x463299;}class An extends _0xd16ce8{['options'];constructor(_0x2b6c33,_0x5ddb6d){super(_0x2b6c33),this['options']=_0x5ddb6d,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'](_0x5a8024,_0x298983){if(!this['element'])return;const _0x5a23d7=[];for(const [_0x46887f,_0xeffba3]of _0x5a8024){const _0x16e884=document['createElement']('div');_0x16e884['setAttribute']('data-ck-root-name',_0x46887f),_0x16e884['className']=_0xeffba3['classes']+'\x20ck-track-changes-preview__root-container',_0x16e884['innerHTML']=_0xeffba3['content'],_0x5a23d7['push'](_0x16e884);}_0x298983(this['element'],_0x5a23d7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0xec382e{constructor(_0x19b66f){super(_0x19b66f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3023fb=this['editor'],_0x48bc94=_0x3023fb['locale'],_0x2ae225=_0x3023fb['plugins']['get']('Dialog');let _0x3bffd9;const _0x251798=function(_0x486e2d){const _0x1ab630={};if('editables'in _0x486e2d['ui']['view']){for(const [_0x4edbf2,_0x392dcd]of Object['entries'](_0x486e2d['ui']['view']['editables']))_0x1ab630[_0x4edbf2]=_0x392dcd['element'];}else _0x1ab630[_0x486e2d['model']['document']['getRootNames']()[0x0]]=_0x486e2d['ui']['view']['editable']['element'];return _0x1ab630;}(_0x3023fb),_0x3bff44=function(_0x4a517c){let _0x25a15f=0x0;for(const _0x1acbd5 of Object['values'](_0x4a517c))_0x25a15f=Math['max'](_0x25a15f,_0x1acbd5['getBoundingClientRect']()['width']);let _0x4afad8=0x0;for(const _0x53b5f0 of Object['values'](_0x4a517c))_0x4afad8+=_0x53b5f0['getBoundingClientRect']()['height'];const _0xf4cde6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x30eac1=Math['min'](_0x4afad8,_0xf4cde6);return{'width':_0x25a15f,'height':_0x30eac1};}(_0x251798);_0x2ae225['show']({'id':'finalContentPreview','title':At(_0x48bc94,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x48bc94,{'dialogRects':_0x3bff44}),'onHide':()=>{_0x3bffd9['detachFromDom']();},'onShow':()=>{_0x3023fb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x7b0237=>{const _0x4ae4f4=this['_standarizeRootsData'](_0x7b0237,_0x3023fb,_0x251798);_0x2ae225['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4ae4f4,_0x3023fb['config']['get']('trackChanges.preview.renderFunction'));}),_0x3bffd9=new _0x431aa3(_0x48bc94,[_0x2ae225['view']]),_0x3bffd9['attachToDom'](),_0x3bffd9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3023fb['once']('destroy',()=>{_0x3bffd9['detachFromDom']();});const _0xef23a3=_0x2ae225['view']['headerView']['class'];_0x2ae225['view']['headerView']['class']=_0xef23a3?_0xef23a3+'\x20ck-reset_all':'ck-reset_all',_0x2ae225['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2ae225['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x140560=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4db1ba=_0x140560['previewMode'],_0x10248f={};if('$labels'===_0x4db1ba){for(const _0x3a60c8 of _0x140560['getMergeFieldsIds']())_0x10248f[_0x3a60c8]=_0x140560['getLabel'](_0x3a60c8)||_0x3a60c8;}else{const _0x56dd80='$defaultValues'===_0x4db1ba?_0x140560['getDefaultValues']():_0x140560['getDataSetValues'](_0x4db1ba,!0x0);for(const _0x1f6a75 of Object['entries'](_0x56dd80)){const [_0x2fe388,_0xbc3a17]=_0x1f6a75;_0x10248f[_0x2fe388]=null!==_0xbc3a17?_0xbc3a17:_0x140560['getLabel'](_0x2fe388)||_0x2fe388;}}return{'mergeFieldsData':_0x10248f};}['_standarizeRootsData'](_0x334d84,_0x4b4131,_0x1da81d){let _0x42c8bf;if('string'==typeof _0x334d84){const _0x482c25=_0x4b4131['model']['document']['getRootNames']()[0x0];_0x42c8bf={[_0x482c25]:_0x334d84};}else _0x42c8bf=_0x334d84;const _0x439af4=this['_fixMediaEmbeds'](_0x42c8bf,_0x4b4131),_0x51b7db=function(_0x130f63,_0x51a2a0){for(const [_0x1fa343,_0x5e97ba]of _0x130f63)_0x5e97ba['classes']=_0x51a2a0[_0x1fa343]['classList']['value']['replace']('ck-focused','');return _0x130f63;}(this['_sortRoots'](_0x4b4131)['reduce']((_0xa2c0d2,_0x357f76)=>(_0xa2c0d2['push']([_0x357f76,{'content':_0x439af4[_0x357f76],'classes':''}]),_0xa2c0d2),[]),_0x1da81d);return _0x51b7db;}['_fixMediaEmbeds'](_0x209d8a,_0xf85837){if(!_0xf85837['plugins']['has']('MediaEmbedEditing'))return _0x209d8a;const _0x3b0223=_0xf85837['plugins']['get']('MediaEmbedEditing');for(const [_0x3d5ef0,_0x3b62ca]of Object['entries'](_0x209d8a)){const _0x872b9e=document['createElement']('div');_0x872b9e['innerHTML']=_0x3b62ca,(_0x872b9e['querySelectorAll']('figure.media')['forEach'](_0x417055=>{const _0x48ec1d=_0x417055['querySelector']('oembed');if(_0x48ec1d){const _0x40243d=_0x48ec1d['getAttribute']('url');if(_0x40243d){const _0x2419a6=_0x3b0223['registry']['getMediaViewElement'](new et(_0xf85837['editing']['view']['document']),_0x40243d,{'elementName':'','renderForEditingView':!0x0}),_0x22dc5c=document['createElement']('div');_0x22dc5c['classList']['add']('ck-media__wrapper'),_0x2419a6['render'](_0x22dc5c,_0xf85837['editing']['view']['domConverter']),_0x48ec1d['replaceWith'](_0x22dc5c);}}}),_0x209d8a[_0x3d5ef0]=_0x872b9e['innerHTML']);}return _0x209d8a;}['_sortRoots'](_0x44dffb){if(!function(_0x34f726){return void 0x0!==_0x34f726['getRootsAttributes'];}(_0x44dffb))return _0x44dffb['model']['document']['getRootNames']();const _0x37ab55=[],_0x444d8c=new Map();for(const _0x2ba91f of _0x44dffb['model']['document']['getRootNames']()){const _0x11dc58=_0x44dffb['editing']['view']['getDomRoot'](_0x2ba91f)['getClientRects']()['item'](0x0);_0x37ab55['push'](_0x2ba91f),_0x444d8c['set'](_0x2ba91f,_0x11dc58);}return _0x37ab55['sort']((_0x149e27,_0xe13a28)=>{const _0x167fba=_0x444d8c['get'](_0x149e27),_0x439521=_0x444d8c['get'](_0xe13a28);return _0x167fba['y']-_0x439521['y']||_0x167fba['x']-_0x439521['x'];}),_0x37ab55;}}class Cn extends _0x55ebc7{static get['requires'](){return[pn,_0x405d92];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf7c628){super(_0xf7c628),_0xf7c628['commands']['add']('previewFinalContent',new kn(this['editor'])),_0xf7c628['config']['define']('trackChanges.preview.renderFunction',(_0x7ad3d,_0x479b49)=>{for(const _0x22f73f of _0x479b49)_0x7ad3d['appendChild'](_0x22f73f);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};