@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +1 -1
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sq.js +1 -0
  5. package/lang/translations/gl.po +23 -23
  6. package/lang/translations/sq.po +487 -0
  7. package/package.json +4 -5
  8. package/src/augmentation.d.ts +4 -0
  9. package/src/augmentation.js +1 -1
  10. package/src/commands/acceptsuggestioncommand.d.ts +4 -0
  11. package/src/commands/acceptsuggestioncommand.js +2 -2
  12. package/src/commands/discardsuggestioncommand.d.ts +4 -0
  13. package/src/commands/discardsuggestioncommand.js +2 -2
  14. package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
  15. package/src/commands/executeonallsuggestionscommand.js +2 -2
  16. package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
  17. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  18. package/src/commands/trackchangescommand.d.ts +4 -0
  19. package/src/commands/trackchangescommand.js +2 -2
  20. package/src/index.d.ts +4 -0
  21. package/src/index.js +1 -1
  22. package/src/integrations/alignment.d.ts +4 -0
  23. package/src/integrations/alignment.js +2 -2
  24. package/src/integrations/basicstyles.d.ts +4 -0
  25. package/src/integrations/basicstyles.js +2 -2
  26. package/src/integrations/blockquote.d.ts +4 -0
  27. package/src/integrations/blockquote.js +2 -2
  28. package/src/integrations/ckbox.d.ts +4 -0
  29. package/src/integrations/ckbox.js +2 -2
  30. package/src/integrations/codeblock.d.ts +4 -0
  31. package/src/integrations/codeblock.js +2 -2
  32. package/src/integrations/comments.d.ts +4 -0
  33. package/src/integrations/comments.js +2 -2
  34. package/src/integrations/deletecommand.d.ts +4 -0
  35. package/src/integrations/deletecommand.js +2 -2
  36. package/src/integrations/documentlist.d.ts +4 -0
  37. package/src/integrations/documentlist.js +2 -2
  38. package/src/integrations/documentlistproperties.d.ts +4 -0
  39. package/src/integrations/documentlistproperties.js +2 -2
  40. package/src/integrations/entercommand.d.ts +4 -0
  41. package/src/integrations/entercommand.js +2 -2
  42. package/src/integrations/findandreplace.d.ts +4 -0
  43. package/src/integrations/findandreplace.js +2 -2
  44. package/src/integrations/font.d.ts +4 -0
  45. package/src/integrations/font.js +2 -2
  46. package/src/integrations/formatpainter.d.ts +4 -0
  47. package/src/integrations/formatpainter.js +2 -2
  48. package/src/integrations/heading.d.ts +4 -0
  49. package/src/integrations/heading.js +2 -2
  50. package/src/integrations/highlight.d.ts +4 -0
  51. package/src/integrations/highlight.js +2 -2
  52. package/src/integrations/horizontalline.d.ts +4 -0
  53. package/src/integrations/horizontalline.js +2 -2
  54. package/src/integrations/htmlembed.d.ts +4 -0
  55. package/src/integrations/htmlembed.js +2 -2
  56. package/src/integrations/image.d.ts +4 -0
  57. package/src/integrations/image.js +2 -2
  58. package/src/integrations/imagereplace.d.ts +4 -0
  59. package/src/integrations/imagereplace.js +2 -2
  60. package/src/integrations/importword.d.ts +4 -0
  61. package/src/integrations/importword.js +2 -2
  62. package/src/integrations/indent.d.ts +4 -0
  63. package/src/integrations/indent.js +2 -2
  64. package/src/integrations/inputcommand.d.ts +4 -0
  65. package/src/integrations/inputcommand.js +2 -2
  66. package/src/integrations/link.d.ts +4 -0
  67. package/src/integrations/link.js +2 -2
  68. package/src/integrations/list.d.ts +4 -0
  69. package/src/integrations/list.js +2 -2
  70. package/src/integrations/listproperties.d.ts +4 -0
  71. package/src/integrations/listproperties.js +2 -2
  72. package/src/integrations/mediaembed.d.ts +4 -0
  73. package/src/integrations/mediaembed.js +2 -2
  74. package/src/integrations/mention.d.ts +4 -0
  75. package/src/integrations/mention.js +2 -2
  76. package/src/integrations/pagebreak.d.ts +4 -0
  77. package/src/integrations/pagebreak.js +2 -2
  78. package/src/integrations/paragraph.d.ts +4 -0
  79. package/src/integrations/paragraph.js +2 -2
  80. package/src/integrations/removeformat.d.ts +4 -0
  81. package/src/integrations/removeformat.js +2 -2
  82. package/src/integrations/restrictededitingmode.d.ts +4 -0
  83. package/src/integrations/restrictededitingmode.js +2 -2
  84. package/src/integrations/shiftentercommand.d.ts +4 -0
  85. package/src/integrations/shiftentercommand.js +2 -2
  86. package/src/integrations/standardeditingmode.d.ts +4 -0
  87. package/src/integrations/standardeditingmode.js +2 -2
  88. package/src/integrations/style.d.ts +4 -0
  89. package/src/integrations/style.js +2 -2
  90. package/src/integrations/table.d.ts +4 -0
  91. package/src/integrations/table.js +2 -2
  92. package/src/integrations/tablecaption.d.ts +4 -0
  93. package/src/integrations/tablecaption.js +2 -2
  94. package/src/integrations/tableclipboard.d.ts +2 -1
  95. package/src/integrations/tableclipboard.js +2 -2
  96. package/src/integrations/tablecolumnresize.d.ts +4 -0
  97. package/src/integrations/tablecolumnresize.js +2 -2
  98. package/src/integrations/tableheadings.d.ts +4 -0
  99. package/src/integrations/tableheadings.js +2 -2
  100. package/src/integrations/tablemergesplit.d.ts +4 -0
  101. package/src/integrations/tablemergesplit.js +2 -2
  102. package/src/integrations/tableofcontents.d.ts +4 -0
  103. package/src/integrations/tableofcontents.js +2 -2
  104. package/src/integrations/tableproperties.d.ts +4 -0
  105. package/src/integrations/tableproperties.js +2 -2
  106. package/src/integrations/template.d.ts +4 -0
  107. package/src/integrations/template.js +2 -2
  108. package/src/integrations/title.d.ts +4 -0
  109. package/src/integrations/title.js +2 -2
  110. package/src/integrations/undo.d.ts +4 -0
  111. package/src/integrations/undo.js +2 -2
  112. package/src/integrations/utils.d.ts +4 -0
  113. package/src/integrations/utils.js +2 -2
  114. package/src/suggestion.d.ts +11 -1
  115. package/src/suggestion.js +2 -2
  116. package/src/suggestiondescriptionfactory.d.ts +14 -2
  117. package/src/suggestiondescriptionfactory.js +2 -2
  118. package/src/trackchanges.d.ts +4 -0
  119. package/src/trackchanges.js +2 -2
  120. package/src/trackchangesconfig.d.ts +4 -0
  121. package/src/trackchangesconfig.js +1 -1
  122. package/src/trackchangesdata.d.ts +6 -2
  123. package/src/trackchangesdata.js +2 -2
  124. package/src/trackchangesediting.d.ts +4 -0
  125. package/src/trackchangesediting.js +2 -2
  126. package/src/trackchangesui.d.ts +4 -0
  127. package/src/trackchangesui.js +2 -2
  128. package/src/ui/suggestioncontroller.d.ts +2 -1
  129. package/src/ui/suggestioncontroller.js +2 -2
  130. package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
  131. package/src/ui/view/basesuggestionthreadview.js +2 -2
  132. package/src/ui/view/suggestionthreadview.d.ts +2 -2
  133. package/src/ui/view/suggestionthreadview.js +2 -2
  134. package/src/utils/common-translations.d.ts +4 -0
  135. package/src/utils/common-translations.js +2 -2
  136. package/src/utils/utils.d.ts +4 -0
  137. package/src/utils/utils.js +2 -2
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["forceDisabled","_isEnabledBasedOnSelection","has","_disableUnsupportedCommands","affectsData","_enabledCommands","editor","execute","value","TrackChangesCommand","_enableCommands","refresh","commands"];var c,l;c=a,l=198,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x2")]=e,this[u("0x5")]=!1,this[u("0x8")](),this[u("0xb")]=!1}refresh(){this.isEnabled=!0}[u("0x4")](){this.value=!this[u("0x5")],this[u("0x5")]?this[u("0x0")]():this[u("0x7")]()}[u("0x0")](){for(const t of this[u("0x3")][u("0x9")].commands())t[u("0x1")]&&!this._enabledCommands[u("0xc")](t)&&t[u("0xa")](u("0x6"))}_enableCommands(){for(const t of this.editor[u("0x9")][u("0x9")]())t[u("0x1")]&&!this._enabledCommands[u("0xc")](t)&&t.clearForceDisabled(u("0x6"))}}const g=["refresh","canEditAt","get","plugins","model","execute","TrackChangesEditing","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","editor"];var m,f;m=g,f=232,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x8")](),this[h("0x6")]=!1}[h("0x8")](){this.isEnabled=!0}[h("0x3")](t){const n=this._suggestions[h("0x0")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n.getRanges();this[h("0x7")][h("0x2")][h("0x9")](o)&&this[h("0x7")][h("0x1")][h("0x0")](h("0x4")).acceptSuggestion(n)}}const b=["_suggestions","_isEnabledBasedOnSelection","get","plugins","canEditAt","isEnabled","getRanges","discardSuggestion","editor","execute","model","track-changes-discard-suggestion-not-found","refresh"];var E,_;E=b,_=337,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x1")]=e,this[T("0x0")](),this[T("0x2")]=!1}refresh(){this[T("0x6")]=!0}[T("0xa")](t){const n=this[T("0x1")][T("0x3")](t);if(!n)throw new e.CKEditorError(T("0xc"),this);const o=n[T("0x7")]();this[T("0x9")][T("0xb")][T("0x5")](o)&&this[T("0x9")][T("0x4")][T("0x3")]("TrackChangesEditing")[T("0x8")](n)}}const y=["change","deletion","next","from","isInContent","createPositionBefore","content","execute","end","isObject","isArray","length","color","isMultiRange","type","getRange","createPositionAfter"," [color ","splice","isTouching","push"];var k,A;k=y,A=300,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>"deletion"==t[v("0x8")]&&"deletion"!=e[v("0x8")]?-1:v("0x10")!=t[v("0x8")]&&v("0x10")==e[v("0x8")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x14")](i)),I(e,i,x)||(s[v("0xe")](e.createRange(n,r[v("0x3")](i)?e.createPositionAfter(i):e.createPositionAt(i,v("0x2")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xa")](e),s=t[v("0x14")](n);return o[v("0xd")](s)}function L(t,e,n){for(;n[v("0x5")];){const o=n[v("0xc")](0,100);t[v("0xf")]((()=>{for(const t of o)t[v("0x13")]&&e[v("0x1")](t.id)}))}}const N=["getRanges","values","_command","isInContent","execute","_suggestions","canEditAt","refresh","model","isEnabled","editor","some","from"];var M,w;M=N,w=276,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xc")]=e,this[O("0x2")]=n,this[O("0x4")](),this._isEnabledBasedOnSelection=!1}[O("0x4")](){const t=Array[O("0x9")](this[O("0x2")][O("0xb")]())[O("0x8")]((t=>t[O("0x0")]));this[O("0x6")]=this[O("0xc")][O("0x6")]&&t}[O("0x1")](){const t=R(Array[O("0x9")](this[O("0x2")][O("0xb")]()));for(const e of t){const t=e[O("0xa")]();if(!this[O("0x7")].model[O("0x3")](t))return}L(this.editor[O("0x5")],this[O("0xc")],t)}}const P=["document","editor","model","from","_suggestions","refresh","values","canEditAt","isEnabled","_isEnabledBasedOnSelection","execute","_selectedSuggestions","_command","selection"];var D,B;D=P,B=199,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x9")]=e,this[j("0x1")]=n,this[j("0x8")]=new Set,this[j("0x2")](),this[j("0x6")]=!1}refresh(){const t=this[j("0xc")][j("0xd")][j("0xb")][j("0xa")],e=Array[j("0x0")](this[j("0x1")][j("0x3")]());this[j("0x8")]=function(t,e){const n=Array[v("0x12")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0x13")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0x9")]();(e.isIntersecting(r)||t.isCollapsed&&!s[v("0x7")]&&s[v("0x11")]&&r[v("0x2")].isTouching(e.start))&&o.add(s)}return o}(t,e),this[j("0x5")]=this[j("0x9")].isEnabled&&!!this._selectedSuggestions.size}[j("0x7")](){const t=R(Array[j("0x0")](this[j("0x8")]));for(const e of t){const t=e.getRanges();if(!this[j("0xc")][j("0xd")][j("0x4")](t))return}L(this[j("0xc")][j("0xd")],this[j("0x9")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["filter","subType","_onAccept","discard","attributes","set","next","onAccept","data","length","getFirstRange","removeMarkers","getContainedElement","getItems","isExternal","start","_saved","split","isIntersectingWithRange","isMultiRange","end","previous","removeAttribute","addRange","getAllAdjacentSuggestions","addMarkerName","decorate","author","getRange","add","from","isIntersecting","suggestion:","getMarkers","@external","_markerNames","size","markers","_onAttributesChange","getFirstMarker","reduce","push","getMultiRangeId","head","change","onDiscard","getRanges","clear","onAttributesChange","setAttribute","authoredAt","hasComments","map","_model","type","addMarker","accept","_onDiscard","commentThread","creator","removeMarker"];var $o,Jo;$o=Xo,Jo=185,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x34")]=e[Qo("0x34")],this.subType=e.subType||null,this[Qo("0x19")]=e[Qo("0x19")],this.creator=e[Qo("0x39")]||e[Qo("0x19")],this[Qo("0xc")]=Boolean(e.attributes&&e.attributes[Qo("0x20")]),this[Qo("0x6")]=null,this[Qo("0x33")]=t,this._onAccept=e[Qo("0x5")],this[Qo("0x37")]=e[Qo("0x2b")],this._onAttributesChange=e[Qo("0x2e")],this[Qo("0x21")]=new Set,this.createdAt=null,this[Qo("0x3")](Qo("0x30"),null),this[Qo("0x3")]("attributes",e[Qo("0x2")]||{}),this.set(Qo("0x13"),null),this[Qo("0x3")]("next",null),this[Qo("0x3")](Qo("0x38"),null),this[Qo("0x3")](Qo("0xe"),!1),this[Qo("0x18")](Qo("0x36")),this.decorate("discard")}get[Qo("0x29")](){let t=this;for(;t[Qo("0x13")];)t=t.previous;return t}get[Qo("0x31")](){return!!this[Qo("0x38")]&&this[Qo("0x38")][Qo("0x7")]>0}get[Qo("0x11")](){return 0!=this[Qo("0x21")][Qo("0x22")]&&6==Array[Qo("0x1c")](this[Qo("0x21")])[0][Qo("0xf")](":").length}get isInContent(){return null!==this[Qo("0x25")]()}[Qo("0x17")](t){this[Qo("0x21")][Qo("0x1b")](t)}getMarkerNames(){return Array[Qo("0x1c")](this[Qo("0x21")])}[Qo("0x1f")](){return this.getMarkerNames()[Qo("0x32")]((t=>this[Qo("0x33")][Qo("0x23")].get(t)))[Qo("0x3b")]((t=>t))}[Qo("0x25")](){return this[Qo("0x1f")]()[0]||null}[Qo("0x9")](){this[Qo("0x33")][Qo("0x2a")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this[Qo("0x21")][Qo("0x2d")]()}[Qo("0x3a")](t){this[Qo("0x33")][Qo("0x2a")]((e=>{e[Qo("0x3a")](t)})),this._markerNames.delete(t)}[Qo("0x15")](t){const e=Qo("0x1e")+this[Qo("0x34")]+":"+this[Qo("0x3c")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x28")]();this[Qo("0x17")](e),this._model[Qo("0x2a")]((n=>{n[Qo("0x35")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x10")](t){for(const e of this.getRanges())if(e[Qo("0x1d")](t))return!0;return!1}[Qo("0x2c")](){return this[Qo("0x1f")]().map((t=>t[Qo("0x1a")]()))}getItems(){return this[Qo("0x2c")]()[Qo("0x26")](((t,e)=>[...t,...e[Qo("0xb")]()]),[])}[Qo("0x8")](){var t;return(null===(t=this[Qo("0x25")]())||void 0===t?void 0:t[Qo("0x1a")]())||null}[Qo("0xa")](){const t=this[Qo("0x2c")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0xd")].nodeAfter,o=e[Qo("0x12")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}accept(){this[Qo("0x0")](this.getRanges(),this[Qo("0x6")],this[Qo("0x2")]),this[Qo("0x9")]()}[Qo("0x1")](){this[Qo("0x37")](this[Qo("0x2c")](),this[Qo("0x6")],this[Qo("0x2")]),this[Qo("0x9")]()}[Qo("0x16")](){const t=[];let e=this.head;for(;e;)t[Qo("0x27")](e),e=e[Qo("0x4")];return t}[Qo("0x2f")](t,e){const n=eo(this[Qo("0x2")]);_o(n,t,e),Go(n,this[Qo("0x2")])||(this[Qo("0x2")]=n,this[Qo("0x24")](n))}[Qo("0x14")](t){const e=eo(this[Qo("0x2")]);qo(e,t),Go(e,this[Qo("0x2")])||(this[Qo("0x2")]=e,this._onAttributesChange(this[Qo("0x2")]))}toJSON(){return{id:this.id,type:this[Qo("0x3c")]?this[Qo("0x34")]+":"+this.subType:this.type,authorId:this[Qo("0x39")].id,createdAt:this.createdAt,hasComments:this[Qo("0x31")],data:this.data,attributes:this[Qo("0x2")]}}static[Qo("0x28")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["Container","matchingCallback","add","name","_itemLabelsCallbacks","text","_resolveDescriptionItems","type","getItemLabel","removeContainer","elementStart","isInContent","*Remove:* %0","_schema","elementEnd","deletion","getFirstRange","registerDescriptionCallback","previousSibling","replace","end","get","REPLACE_TEXT","checkChild","quantity","addEmptyContainer","_locale","*Merge:* %0","pop","*Split:* %0","registerElementLabel","isEqual","$text","EmptyContainer","element","$textProxy","start","insertion","label","_customCallbacks","set","data","softBreak","addContainer","remove","indexOf","normal","Object","length","$1 $2","_itemLabels","push","nextSibling","_addDescriptionItems","*Insert:* %0","match","removeEmptyContainer","item","getDescriptions","isEmpty","removeObject","isObject","ELEMENT_SPACE"];var es,ns;es=ts,ns=171,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x39")]=[],this[os("0x5")]=new Map,this[os("0x16")]=[],this[os("0x1f")]=t,this[os("0x2c")]=e}[os("0xd")](t){const e=[];for(let n=0;n<t[os("0x3")];n++){const o=t[n];if(!o[os("0x1d")])continue;let s=!1;for(const t of this[os("0x39")]){const n=t(o);if(n){os("0x19")in n&&e[os("0x6")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x22")]()[os("0x26")][os("0x31")](s[os("0x22")]()[os("0x36")])){const t=e[e[os("0x3")]-1],n=os("0x37")==o.type?os("0x14"):"remove";t&&os("0x17")==t[os("0x19")]&&(t[n]+="\n")}}}return this[os("0x18")](e)}[os("0x23")](t){this[os("0x39")][os("0x6")](t)}[os("0x30")](t,n,o=e.priorities[os("0x1")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x16")],{matchingCallback:t,label:n,priority:o}):this[os("0x5")][os("0x3a")](t,n)}[os("0x1a")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x13")](t)){n=e[os("0x38")];break}return n||(n=this[os("0x5")][os("0x27")](t.name)),n?n(e):1!==e?e+" "+t[os("0x15")]+"s":""+t[os("0x15")]}[os("0x8")](t,e){const n=e[os("0x22")]().getWalker(),o=os("0x37")==e[os("0x19")]?"add":"remove";for(const e of n){const s=e[os("0xc")],r=t[t[os("0x3")]-1];if(s.is(os("0x35")))r&&r[os("0x19")][os("0x0")]("Container")>-1&&t[os("0x2e")](),r&&os("0x17")==r[os("0x19")]?r[o]+=s.data:t[os("0x6")]({type:os("0x17"),add:"add"==o?s[os("0x3b")]:"",remove:os("0x3e")==o?s[os("0x3b")]:""});else if(this[os("0x1f")].isObject(s)){const i=s;if(r&&r[os("0x19")].indexOf(os("0x12"))>-1&&t[os("0x2e")](),os("0x20")==e[os("0x19")])continue;r&&r[os("0x19")]==o+os("0x2")&&r[os("0x34")][os("0x15")]==i[os("0x15")]?r[os("0x2a")]++:t[os("0x6")]({type:o+os("0x2"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x19")]&&t[os("0xc")]==s)))}else if(this[os("0x1f")][os("0x29")](s,os("0x32"))||s.is("element",os("0x3c"))){const n=s;if(os("0x14")==o&&os("0x1c")==e[os("0x19")]||"remove"==o&&os("0x20")==e[os("0x19")])continue;if(r&&-1==r.type[os("0x0")](os("0x12"))){os("0x17")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x14")==o?n.nextSibling&&!this._schema[os("0x10")](n[os("0x7")])?n[os("0x7")]:null:n[os("0x24")]&&!this._schema.isObject(n[os("0x24")])?n[os("0x24")]:null,n[os("0xe")]||i&&i[os("0xe")]){const e=i&&i[os("0xe")]?i:n;r&&r[os("0x19")]==o+os("0x33")&&r[os("0x34")][os("0x15")]==e[os("0x15")]?r.quantity++:t[os("0x6")]({type:o+os("0x33"),element:e,quantity:1})}else t.push({type:o+os("0x12"),element:n})}}}[os("0x18")](t){const e=this[os("0x2c")],n=[];for(const o of t){switch(o[os("0x19")]){case os("0x17"):if(o[os("0x14")]=o[os("0x14")][os("0x25")](/(\S)\u000A+(\S)/g,os("0x4"))[os("0x25")](/\u000A/g,""),o[os("0x3e")]=o[os("0x3e")].replace(/(\S)\u000A+(\S)/g,os("0x4"))[os("0x25")](/\u000A/g,""),""!=o[os("0x14")]&&""!=o[os("0x3e")]){n.push({type:os("0x25"),content:Yo(e,os("0x28"),['"'+o.remove+'"','"'+o[os("0x14")]+'"'])});continue}if(null!=o.add[os("0xa")](/^ +$/)){n[os("0x6")]({type:os("0x37"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x11"),o.add[os("0x3")]))});continue}if(null!=o[os("0x3e")][os("0xa")](/^ +$/)){n[os("0x6")]({type:os("0x21"),content:Yo(e,os("0x1e"),Yo(e,os("0x11"),o[os("0x3e")][os("0x3")]))});continue}if(""!=o[os("0x14")]){n[os("0x6")]({type:os("0x37"),content:Yo(e,os("0x9"),'"'+o.add+'"')});continue}n[os("0x6")]({type:os("0x21"),content:Yo(e,os("0x1e"),'"'+o.remove+'"')});continue;case os("0x2b"):case"addObject":n[os("0x6")]({type:os("0x37"),content:Yo(e,os("0x9"),this[os("0x1a")](o[os("0x34")],o[os("0x2a")]))});continue;case os("0xb"):case os("0xf"):n[os("0x6")]({type:os("0x21"),content:Yo(e,os("0x1e"),this[os("0x1a")](o.element,o[os("0x2a")]))});continue;case os("0x3d"):n[os("0x6")]({type:os("0x37"),content:Yo(e,os("0x2f"),this[os("0x1a")](o.element,o[os("0x2a")]))});continue;case os("0x1b"):n[os("0x6")]({type:os("0x21"),content:Yo(e,os("0x2d"),this[os("0x1a")](o[os("0x34")],o[os("0x2a")]))});continue}n[os("0x6")](o)}return n}}const rs=["FORMAT_ALIGN_TO_CENTER","commandName","locale","commandParams","getAttribute","alignment","get","checkAttribute","selection","center","TrackChangesEditing","justify","document","FORMAT_ALIGN_TO_LEFT","right","left","value","format","afterInit","model","filter","contentLanguageDirection","_descriptionFactory","enableCommand","editor","getSelectedBlocks","from","registerDescriptionCallback","plugins","markBlockFormat","change","ltr","FORMAT_JUSTIFY_TEXT","AlignmentEditing"];var is,xs;is=rs,xs=144,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0xa")](){const t=this.editor,e=t[as("0x1c")];if(!t.plugins.has(as("0x19")))return;const n=t[as("0x14")][as("0x20")](as("0x2"));n[as("0xf")]("alignment",((e,o={})=>{let s=o[as("0x8")];o[as("0x8")]||(s=as("0x17")===t[as("0x1c")][as("0xd")]?"left":as("0x6"));const r=Array[as("0x12")](this[as("0x10")].model[as("0x4")][as("0x0")][as("0x11")]())[as("0xc")]((t=>function(t,e,n){const o=t[as("0x1e")]("alignment")||null;return e[as("0x21")](t,"alignment")&&n!=o}(t,this.editor[as("0xb")].schema,s)));t[as("0xb")][as("0x16")]((()=>{for(const t of r)n[as("0x15")](t,{commandName:as("0x1f"),commandParams:[{value:s}]})}))})),n[as("0xe")][as("0x13")]((t=>{const{data:n}=t;if(n&&as("0x1f")==n[as("0x1b")]){const t=n[as("0x1d")][0][as("0x8")];return{type:as("0x9"),content:Yo(e,"*Format:* %0",function(t){switch(t){case as("0x7"):return Yo(e,as("0x5"));case as("0x6"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x1"):return Yo(e,as("0x1a"));case as("0x3"):return Yo(e,as("0x18"))}}(t))}}}))}}const ls=["model","previousPosition","createUIElement","markerRange","type","getAttribute","bindElementToMarker","getCustomProperty","isContent","toViewElement","test","consumable","markerName","push","element","TrackChangesEditing","nextSibling","createRangeOn","item","insert","isLimit","get","getItems","addHighlight","listItem","isBlock","schema","activeMarkers","includes","toViewPosition","writer","mapper","addClass"];var us,ds;us=ls,ds=158,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x1d")]())s.hasAttribute(t)&&o[gs("0x14")](n[gs("0x18")](s));return o}function fs(t){const e=[];if(t.is(gs("0x15"),gs("0x1f"))){let n=t[gs("0x17")];for(;n&&n.is(gs("0x15"),"listItem")&&n[gs("0xc")]("listIndent")>0;)e[gs("0x14")](n),n=n[gs("0x17")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x1c")](gs("0x16"));return(s,r,i)=>{if(!i[gs("0x12")][gs("0x11")](r[gs("0xa")],s.name))return;const x=r[gs("0xa")].getWalker(),a=r.markerRange.start,c=t[gs("0x7")][gs("0x0")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x19")];d=d||c[gs("0xf")](e);const n=i[gs("0x5")][gs("0x10")](e);if(n&&n[gs("0xe")](gs("0x1e")))return;"elementEnd"==t[gs("0xb")]&&c[gs("0x20")](e)&&!c[gs("0x1b")](e)&&(e.nextSibling||a.isAtEnd?l&&l.parent==e||(l=e,m(t[gs("0x8")]),g=!0):u=u||t[gs("0x8")])}function m(t){const s=i[gs("0x4")][gs("0x9")]("span",{class:"ck-suggestion-marker-"+e}),x=i[gs("0x5")][gs("0x3")](t);n&&o[gs("0x1")][gs("0x2")](r[gs("0x13")])&&i[gs("0x4")][gs("0x6")]("ck-suggestion-marker--active",s),i[gs("0x4")][gs("0x1a")](x,s),i[gs("0x5")][gs("0xd")](s,r[gs("0x13")])}d||g||!u||m(u)}}const ps=["StrikethroughEditing","get","superscript","plugins","afterInit","FORMAT_STRIKETHROUGH","FORMAT_UNDERLINE","ItalicEditing","UnderlineEditing","strikethrough","FORMAT_SUPERSCRIPT","CodeEditing","editor","bold","subscript","FORMAT_CODE","value","_descriptionFactory","*Format:* %0","selection","FORMAT_BOLD","SubscriptEditing","code","toLowerCase","TrackChangesEditing","forceValue","FORMAT_SUBSCRIPT","isCollapsed","underline","model","FORMAT_ITALIC","from","SuperscriptEditing","change","slice","markInlineFormat","commandName","BoldEditing","commandParams"];var bs,Es;bs=ps,Es=179,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xe"),_s("0x17"),_s("0x18"),_s("0x1b"),_s("0x10"),_s("0x25"),_s("0x9")];class Cs extends t.Plugin{[_s("0x14")](){const t=this[_s("0x1c")],e=t[_s("0x6")],n=t[_s("0x13")][_s("0x11")](_s("0x1")),o=t.locale;for(const o of Ts){if(!t[_s("0x13")].has(o))continue;const s=o[_s("0xb")](0,-7)[_s("0x0")](),r=t.commands[_s("0x11")](s);n.enableCommand(s,((t,o={})=>{const i=e.document[_s("0x23")];if(i[_s("0x4")])return void t(o);const x=void 0!==o[_s("0x2")]?o.forceValue:!r[_s("0x20")];e[_s("0xa")]((()=>{const t=Array[_s("0x8")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x21")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0xd")]===t)return s[_s("0xf")][0][_s("0x2")]?{type:"format",content:Yo(o,_s("0x22"),e)}:{type:"format",content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x1d"),Yo(o,_s("0x24"))),s("italic",Yo(o,_s("0x7"))),s(_s("0x5"),Yo(o,_s("0x16"))),s(_s("0x26"),Yo(o,_s("0x1f"))),s(_s("0x19"),Yo(o,_s("0x15"))),s(_s("0x1e"),Yo(o,_s("0x3"))),s(_s("0x12"),Yo(o,_s("0x1a")))}}const ys=["registerDescriptionCallback","commandName","model","commands","afterInit","value","BlockQuoteEditing","get","ELEMENT_BLOCK_QUOTE","TrackChangesEditing","format","$root","name","editor","*Remove format:* %0","commandParams","plugins","enableCommand","locale","_descriptionFactory","getSelectedBlocks","markBlockFormat","from","checkChild","*Format:* %0","blockQuote","schema","forceValue","filter"];var ks,As;ks=ys,As=324,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x1c")](){const t=this.editor,e=t[vs("0xd")];if(!t[vs("0xb")].has(vs("0x1")))return;const n=t[vs("0xb")][vs("0x2")](vs("0x4")),o=this[vs("0x8")][vs("0x1b")][vs("0x2")](vs("0x14"));n[vs("0xc")](vs("0x14"),((e,s={})=>{const r=this[vs("0x8")][vs("0x1a")].document.selection,i=s&&void 0!==s.forceValue?s[vs("0x16")]:!o[vs("0x0")];let x=[];if(i){const e=Array[vs("0x11")](r[vs("0xf")]())[vs("0x17")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t.parent,vs("0x14")),o=e[vs("0x12")]([vs("0x6"),"blockQuote"],t);return n&&o}(t,this[vs("0x8")][vs("0x1a")][vs("0x15")])));x=S(e,t[vs("0x1a")])}else{const e=Array[vs("0x11")](r.getSelectedBlocks()).filter((t=>Ss(t)));x=S(e,t[vs("0x1a")])}t.model.change((()=>{for(const t of x)n[vs("0x10")](t,{commandName:vs("0x14"),commandParams:[{forceValue:i}]})}))})),n[vs("0xe")][vs("0x18")]((t=>{const{data:n}=t;if(n&&vs("0x14")==n[vs("0x19")]){const t=Yo(e,vs("0x3"));return n[vs("0xa")][0][vs("0x16")]?{type:vs("0x5"),content:Yo(e,vs("0x13"),t)}:{type:vs("0x5"),content:Yo(e,vs("0x9"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent[vs("0x7")]}const Is=["commands","plugins","ckbox","TrackChangesEditing","enableCommand","get","editor"];var Ls,Ns;Ls=Is,Ns=402,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ms("0x3")];t[Ms("0x4")][Ms("0x2")](Ms("0x6"))&&t[Ms("0x5")][Ms("0x2")](Ms("0x0"))[Ms("0x1")]("ckbox")}}const Os=["*Format:* %0","checkChild","TrackChangesEditing","_descriptionFactory","label","commandParams","*Remove format:* %0","codeBlock","config","document","plugins","enableCommand","registerDescriptionCallback","indentCodeBlock","has","outdentCodeBlock","format","CodeBlock","from","filter","commandName","formatBlock","commands","locale","language","selection","registerElementLabel","blockName","ELEMENT_CODE_BLOCK","forceValue","afterInit","get","markBlockFormat","model","getSelectedBlocks","rootElement","isLimit","value","editor","name"];var Fs,Ps;Fs=Os,Ps=180,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0xa")](){const t=this[Ds("0x12")];if(!t[Ds("0x1e")][Ds("0x22")](Ds("0x25")))return;const e=t.plugins[Ds("0xb")](Ds("0x16")),n=t[Ds("0x3")],o=t[Ds("0x1c")].get("codeBlock").languages,s=t[Ds("0x2")].get(Ds("0x1b"));e[Ds("0x1f")](Ds("0x21")),e.enableCommand(Ds("0x23")),e[Ds("0x1f")](Ds("0x1b"),((n,r={})=>{const i=t[Ds("0xd")],x=t.model[Ds("0x1d")][Ds("0x5")],a=r&&void 0!==r[Ds("0x9")]?r[Ds("0x9")]:!s[Ds("0x11")];let c;r[Ds("0x4")]||(r[Ds("0x4")]=o[0][Ds("0x4")]),c=a?Array.from(x.getSelectedBlocks()).filter((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0xf"))&&!n[Ds("0x10")](e)&&n[Ds("0x15")](e.parent,"codeBlock"));var e,n})):Array[Ds("0x26")](x[Ds("0xe")]())[Ds("0x27")]((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0xc")](t,{commandName:Ds("0x1b"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x7")})}))})),e._descriptionFactory[Ds("0x6")](Ds("0x1b"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Ds("0x17")][Ds("0x20")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1")==s&&r&&Ds("0x1b")==r[Ds("0x0")]){const t=r.commandParams[0][Ds("0x4")],s=e(o.find((e=>e.language===t))[Ds("0x18")]);return r[Ds("0x19")][0][Ds("0x9")]?{type:"format",content:Yo(n,Ds("0x14"),Yo(n,Ds("0x8"),1)+" ("+s+")")}:{type:Ds("0x24"),content:Yo(n,Ds("0x1a"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x13")]}const Us=["has","TrackChangesEditing","CommentsEditing","afterInit","enableCommand","plugins"];var Gs,Hs;Gs=Us,Hs=263,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{[Ws("0x4")](){const t=this.editor;t[Ws("0x0")][Ws("0x1")](Ws("0x3"))&&t[Ws("0x0")].get(Ws("0x2"))[Ws("0x5")]("addCommentThread")}}var Vs=n(181);const Ks=["isCollapsed","unbindElementFromMarkerName","getFirstRange","end","rootName","selection","buffer","commands","removeMarker:suggestion:deletion","remove","enableCommand","batch","lock","enqueueChange","editing","mapper","addMarker:suggestion:deletion","options","document","deleteForward","plugins","high","fromRange","init","TrackChangesEditing","root","unit","delete","get","markerName","createRange","downcastDispatcher","requires","model","merge","detach","unlock","start"];var qs,Xs;qs=Ks,Xs=263,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x23")](){return[Vs.Delete]}[$s("0x1a")](){const t=this.editor,e=t[$s("0x17")][$s("0x1f")]($s("0x1b"));e[$s("0xd")]($s("0x1e"));const n=t[$s("0xa")][$s("0x1f")]($s("0x16"));e[$s("0xd")]($s("0x16"),((e,o={})=>{const s=t.model.createSelection(t[$s("0x24")][$s("0x15")][$s("0x8")]);s[$s("0x3")]&&t[$s("0x24")].modifySelection(s,{direction:"forward",unit:o[$s("0x1d")]});const r=s[$s("0x5")](),x=i.LiveRange[$s("0x19")](r);let a;e(o),a="$graveyard"==x[$s("0x1c")][$s("0x7")]?t.model[$s("0x21")](r[$s("0x2")]):t[$s("0x24")][$s("0x21")](x.start,x[$s("0x6")]),x[$s("0x0")](),t[$s("0x24")][$s("0x10")](n.buffer[$s("0xe")],(t=>{n[$s("0x9")][$s("0xf")](),t.setSelection(t[$s("0x21")](a.end)),n.buffer[$s("0x1")]()}))})),t[$s("0x11")][$s("0x22")].on($s("0x13"),hs(t,"merge"),{priority:$s("0x18")}),t.data.downcastDispatcher.on($s("0x13"),((e,n,o)=>{o[$s("0x14")].showSuggestionHighlights&&hs(t,$s("0x25"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x18")}),t[$s("0x11")][$s("0x22")].on($s("0xb"),((t,e,n)=>{const o=n[$s("0x12")].markerNameToElements(e[$s("0x20")]);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x12")][$s("0x4")](t,e[$s("0x20")]),n.writer[$s("0xc")](t))}),{priority:"high"})}}const Qs=["*Format:* insert into %0","ELEMENT_NUMBERED_LIST","indentList","createPositionAt","*Merge:* %0","documentList","markBlockFormat","registerDescriptionCallback","previousSibling","listIndent","markMultiRangeBlockFormat","ELEMENT_BULLETED_LIST","fromRange","detach","getSelectedBlocks","_LIST","enableCommand","getAttribute","afterInit","format","_suggestionFactory","slice","start","has","next","nextSibling","splitListItemBefore","createRange","ELEMENT_","*Change to:* %0","document","add","mergeListItemBackward","hasAttribute","forceValue","before","nodeAfter","registerCustomCallback","editor","listType","isObject","get","expandListBlocksToCompleteList","DocumentListEditing","execute","getFirstRange","setSelection","bulletedList","plugins","push","commandParams","value","mergeListItemForward","map","numberedList","refresh","formatBlock","listItemId","model","commands","TrackChangesEditing","containsItem","*Format:* remove from %0","isFirstBlockOfListItem","multipleBlocks","ELEMENT_LIST_ITEM","change","from","selection","_descriptionFactory","commandName","splitListItemAfter","outdentList","toUpperCase"];var Zs,Ys;Zs=Qs,Ys=201,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x27")](){const t=this[tr("0x3b")];if(!t[tr("0x45")][tr("0x2c")](tr("0x40")))return;const e=t.locale,n=t[tr("0x45")][tr("0x3e")](tr("0x7")),o=t[tr("0x45")][tr("0x3e")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x6")][tr("0x3e")](e);let r=Array.from(t.model[tr("0x33")][tr("0xf")][tr("0x23")]());if(a(e)){r=o[tr("0x3f")](r);const t=[];for(const e of r)o[tr("0xa")](e)&&t[tr("0x46")](e);r=t}t.model[tr("0xd")]((()=>{n[tr("0x1f")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x3c")},[],tr("0x1a"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t[tr("0x36")](tr("0x4"))));return n>-1&&(e=e[tr("0x2a")](0,n)),e}(t[tr("0x5")].document[tr("0xf")][tr("0x23")]()),s=o[o.length-1],r=t[tr("0x5")].schema[tr("0x3d")](s)?"after":"end",i=t[tr("0x5")].createRange(t[tr("0x5")][tr("0x18")](o[0],tr("0x38")),t.model[tr("0x18")](s,r));t[tr("0x5")][tr("0xd")]((()=>{n[tr("0x1b")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x3c")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x2e")];for(;t&&t[tr("0x26")](tr("0x1e"))>n.getAttribute(tr("0x1e"));)e[tr("0x34")](t),t=t[tr("0x2e")]}return Array[tr("0xe")](e)}(o))}))}}function x(e){return()=>{const o=t.model.document.selection[tr("0x23")]()[tr("0x2d")]()[tr("0x48")],s=t.model[tr("0x18")](o,tr("0x38")),r=t.model.createPositionAt(o,0),i=t[tr("0x5")][tr("0x30")](s,r);t.model[tr("0xd")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands[tr("0x3e")]("bulletedList")[tr("0x48")],o=t[tr("0x6")][tr("0x3e")](tr("0x1"))[tr("0x48")];return tr("0x1")===e?n:o}n.enableCommand("numberedList",s("numberedList")),n[tr("0x25")](tr("0x44"),s(tr("0x44"))),n[tr("0x25")](tr("0x17"),r(tr("0x17"))),n.enableCommand(tr("0x13"),r(tr("0x13"))),n.enableCommand("splitListItemAfter",x(tr("0x12"))),n[tr("0x25")](tr("0x2f"),x(tr("0x2f"))),n[tr("0x10")].registerElementLabel((function(e){const n=!t.model.schema[tr("0x3d")](e),o=e[tr("0x1d")],s=e[tr("0x2e")],r=e[tr("0x26")](tr("0x4")),i=!o||o[tr("0x26")](tr("0x4"))!==r,x=!s||s[tr("0x26")](tr("0x4"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0xc"),t))),n[tr("0x10")][tr("0x1c")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x11")]){case"bulletedList":r=n.commandParams[0][tr("0x37")],i=a(n.commandName),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x32")),s={type:tr("0x28"),content:Yo(e,o,Yo(e,tr("0x20")))};break;case tr("0x1"):r=n.commandParams[0][tr("0x37")],i=a(n[tr("0x11")]),o=r?tr("0x15"):"*Format:* remove from %0",i&&(o=tr("0x32")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x16")))};break;case"indentList":o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,tr("0xc")))};break;case tr("0x13"):o=function(t){const e=t.getFirstRange();let n=e[tr("0x2b")][tr("0x39")];for(;n&&e[tr("0x8")](n);){if(n[tr("0x26")]("listIndent")>0)return!1;n=n[tr("0x2e")]}return!0}(t)?Yo(e,tr("0x9"),Yo(e,function(t){const e=t[tr("0x42")]()[tr("0x2b")][tr("0x39")];return tr("0x31")+e.getAttribute(tr("0x3c"))[tr("0x14")]()+tr("0x24")}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0xc"))),s={type:"format",content:o};break;case tr("0x35"):case tr("0x49"):!1===n[tr("0xb")]&&(o=tr("0x19"),s={type:"deletion",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x29")][tr("0x3a")](tr("0x3"),tr("0x1a"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x2b")][tr("0x39")]===n.end.parent&&(n=t[tr("0x5")].createRange(t[tr("0x5")].createPositionAt(n[tr("0x2b")][tr("0x39")],0))),o[tr("0x46")](n);t.model.change((e=>{const s=t[tr("0x5")][tr("0x33")][tr("0xf")],r=Array[tr("0xe")](s.getRanges())[tr("0x0")]((t=>i.LiveRange[tr("0x21")](t)));e[tr("0x43")](o),t[tr("0x6")].get(n[tr("0x11")])[tr("0x2")](),n[tr("0x47")].push({forceDefaultExecution:!0}),t[tr("0x41")](n[tr("0x11")],...n.commandParams),e[tr("0x43")](r);for(const t of r)t[tr("0x22")]()}))}))}}var nr=n(331);const or=["model","mapper","document","writer","editor","getFirstRange","createRange","markInsertion","detach","enter","nextSibling","createPositionAt","downcastDispatcher","addMarker:suggestion:insertion","markerNameToElements","markerName","hasClass","split","commands","afterExecute","enableCommand","high","getFirstPosition","end","selection","plugins","TrackChangesEditing","data","removeMarker:suggestion:insertion","enterBlock","change","get","fire","editing"];var sr,rr;sr=or,rr=217,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}init(){const t=this[ir("0x19")],e=t[ir("0xc")][ir("0x12")](ir("0xd")),n=t[ir("0x5")][ir("0x12")](ir("0x1e"));e[ir("0x7")](ir("0x1e"),(()=>{t[ir("0x15")][ir("0x11")]((o=>{const s=t[ir("0x15")][ir("0x17")][ir("0xb")],r=s[ir("0x9")](),x=i.LiveRange.fromRange(s[ir("0x1a")]());if(n[ir("0x10")](o)){const n=t[ir("0x15")][ir("0x20")](r.parent[ir("0x1f")],0),s=o.createRange(r,n);e[ir("0x1c")](s)}else o.setSelection(o[ir("0x1b")](x[ir("0xa")]));x[ir("0x1d")](),n[ir("0x13")](ir("0x6"),{writer:o})}))})),t[ir("0x14")][ir("0x21")].on(ir("0x0"),hs(t,ir("0x4")),{priority:ir("0x8")}),t[ir("0x14")][ir("0x21")].on(ir("0xf"),((t,e,n)=>{const o=n[ir("0x16")][ir("0x1")](e.markerName);if(o)for(const t of o)t[ir("0x3")]("ck-suggestion-marker-split")&&(n[ir("0x16")].unbindElementFromMarkerName(t,e[ir("0x2")]),n[ir("0x18")].remove(t))}),{priority:"high"}),t[ir("0xe")][ir("0x21")].on(ir("0x0"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0x4"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x8")})}}const ar=["end","replaceAll","find","replace","TrackChangesEditing","createPositionAt","findNext","plugins","getRange","FindAndReplaceEditing","bind","start","afterInit","string","suggestion:deletion","filter","enableCommand","model","_isInDeletionRange","getMarkersGroup","has","getIntersection","get","editor"];var cr,lr;cr=ar,lr=412,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x8")](){if(!this[ur("0x13")][ur("0x3")][ur("0x10")](ur("0x5")))return;const t=this[ur("0x13")][ur("0x3")][ur("0x12")](ur("0x0"));t[ur("0xc")](ur("0x16"),this.handleFindCommand[ur("0x6")](this)),t.enableCommand(ur("0x2")),t[ur("0xc")]("findPrevious"),t[ur("0xc")](ur("0x17")),t.enableCommand(ur("0x15"))}handleFindCommand(t,e,n={}){const o=this[ur("0x13")][ur("0x3")][ur("0x12")]("FindAndReplaceUtils");void 0!==n&&t((t=>(ur("0x9")==typeof e?o.findByTextCallback(e,n):e)(t)[ur("0xb")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[ur("0xe")](t,e){const n=this[ur("0x13")][ur("0xd")].createRange(this[ur("0x13")].model[ur("0x1")](e,t[ur("0x7")]),this[ur("0x13")][ur("0xd")][ur("0x1")](e,t[ur("0x14")]));for(const t of this.editor[ur("0xd")].markers[ur("0xf")](ur("0xa")))if(null!==n[ur("0x11")](t[ur("0x4")]()))return!0;return!1}}const gr=["FontSize","value","commandName","TrackChangesEditing","label","FontBackgroundColorEditing","plugins","getRanges","document","fontSize","fontSize.options","*Set font family:* %0","*Set font background color:* %0","_enableCommand","fontBackgroundColor","find","title","*Set font size:* %0","selection","config","format","*Reset font family*","trim","isCollapsed","*Reset font color*","fontColor.colors","*Reset font size*","normalizeSizeOptions","markInlineFormat","FontColorEditing","fontBackgroundColor.colors","*Set font color:* %0","model","fontColor","get","toLowerCase","FontSizeEditing","from","*Reset font background color*","commandParams","editor"];var mr,fr;mr=gr,fr=415,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1f"),commandName:"fontSize"},{pluginName:"FontFamilyEditing",commandName:"fontFamily"},{pluginName:hr("0x18"),commandName:hr("0x1c")},{pluginName:hr("0x0"),commandName:hr("0x9")}];class br extends t.Plugin{afterInit(){const t=this[hr("0x23")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x23")][hr("0x1")].has(t)&&this._enableCommand(e);this.editor.plugins.get(hr("0x27"))._descriptionFactory.registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x4")==o.commandName){const e=o[hr("0x22")][0][hr("0x25")];if(e){const o=n(this[hr("0x23")][hr("0x1")][hr("0x1d")](hr("0x24"))[hr("0x16")](this[hr("0x23")].config[hr("0x1d")](hr("0x5")))[hr("0xa")]((t=>t[hr("0x1b")]==e))[hr("0xb")])[hr("0x1e")]();return{type:"format",content:Yo(t,hr("0xc"),o)}}return{type:hr("0xf"),content:Yo(t,hr("0x15"))}}if("fontFamily"==o[hr("0x26")]){const e=o[hr("0x22")][0][hr("0x25")];return e?{type:"format",content:Yo(t,hr("0x6"),e)}:{type:"format",content:Yo(t,hr("0x10"))}}if(hr("0x1c")==o[hr("0x26")]){const e=o[hr("0x22")][0][hr("0x25")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0xe")][hr("0x1d")](hr("0x14")))[hr("0xa")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x28")],i=n(r)[hr("0x1e")]()),{type:hr("0xf"),content:Yo(t,hr("0x1a"),i)[hr("0x11")](),color:{value:e,title:i||r}}}return{type:hr("0xf"),content:Yo(t,hr("0x13"))}}if("fontBackgroundColor"==o[hr("0x26")]){const e=o[hr("0x22")][0][hr("0x25")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x23")].config.get(hr("0x19")))[hr("0xa")]((t=>t[hr("0x1b")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x1e")]()),{type:hr("0xf"),content:Yo(t,hr("0x7"),i)[hr("0x11")](),color:{value:e,title:i||r}}}return{type:hr("0xf"),content:Yo(t,hr("0x21"))}}}}))}[hr("0x8")](t){const e=this.editor;e.plugins[hr("0x1d")](hr("0x27")).enableCommand(t,((n,o={})=>{const s=e[hr("0x1b")][hr("0x3")][hr("0xd")],r=o.value;s[hr("0x12")]?n(o):e[hr("0x1b")].change((()=>{const n=Array[hr("0x20")](s[hr("0x2")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1b")]);for(const o of n)e[hr("0x1")][hr("0x1d")](hr("0x27"))[hr("0x17")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["schema","TrackChangesEditing","forward","isBlock","length","slice","fontColor","enableCommand","markInlineFormat","isFormatting","copyFormat","getItems","fontColor.colors","push","split","_descriptionFactory","getRanges","locale","change","find","keys","model","config","registerDescriptionCallback","isCollapsed","*Remove all formatting*","join","commands","getLastPosition","FontSize","*Set format to:* %0","modifySelection","document","toLowerCase","pasteFormat","backward","normalizeSizeOptions","plugins","commandName","entries","createSelection","title","format","getFirstPosition","commandParams","getAttributes","get","word"];var _r,Tr;_r=Er,Tr=209,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this.editor,n=t[Cr("0x4")],o=n[Cr("0xf")].selection,s=t.plugins[Cr("0x1d")](Cr("0x20")),r=t[Cr("0x0")],i=t[Cr("0xa")][Cr("0x1d")](Cr("0x29")),x=t[Cr("0xa")][Cr("0x1d")]("pasteFormat");i&&x&&(s[Cr("0x26")](Cr("0x11"),((t,r={})=>{const i=r;n[Cr("0x1")]((()=>{const t=Array.from(o[Cr("0x2f")]()),r=o[Cr("0x7")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x1c")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x28")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2f")]())for(const t of e[Cr("0x2a")]())!n[Cr("0x22")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1f")]))||0!==Object[Cr("0x3")](i)[Cr("0x23")])for(const t of r)s[Cr("0x27")](t,{commandName:Cr("0x11"),commandParams:[i]})}))})),s[Cr("0x2e")][Cr("0x6")]((e=>{const{data:n}=e;if(n&&Cr("0x11")===n[Cr("0x15")]){const e=[],o=n[Cr("0x1b")][0];for(const[n,s]of Object[Cr("0x16")](o))e[Cr("0x2c")](Ar(t,n,s));return e[Cr("0x23")]?{type:Cr("0x19"),content:Yo(r,Cr("0xd"),e[Cr("0x9")](", "))}:{type:"format",content:Yo(r,Cr("0x8"))}}})),t[Cr("0x14")].get("TrackChangesEditing")[Cr("0x26")]("copyFormat"))}}function kr(t,e){const n=t[Cr("0x17")](e);t[Cr("0xe")](n,{unit:Cr("0x1e"),direction:Cr("0x12")});const o=n[Cr("0x1a")]();t.modifySelection(n,{unit:Cr("0x1e"),direction:Cr("0x21")});const s=n[Cr("0xb")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x0")].t,r=e[Cr("0x2d")](/(?=[A-Z])/)[Cr("0x9")](" "),i=o(r.charAt(0).toUpperCase()+r[Cr("0x24")](1)).toLowerCase();if("boolean"==typeof n)return i;if(Cr("0x25")===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t.config.get(Cr("0x2b"))).find((t=>t.model==n));return i+" ("+(e?o(e.label).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x14")][Cr("0x1d")](Cr("0xc"))[Cr("0x13")](t[Cr("0x5")][Cr("0x1d")]("fontSize.options"))[Cr("0x2")]((t=>t[Cr("0x4")]==n));return i+" ("+(e?o(e[Cr("0x18")])[Cr("0x10")]():n)+")"}return i+" ("+n+")"}const vr=["parent","*Change to:* %0","has","change","afterInit","document","getSelectedBlocks","title","match","find","locale","ELEMENT_HEADING","format","_descriptionFactory","plugins","schema","paragraph","value","registerDescriptionCallback","TrackChangesEditing","config","HeadingEditing","commandParams","blockName","ELEMENT_HEADING_CUSTOM","model","from","editor","heading","get","isObject","registerElementLabel"];var Rr,Sr;Rr=vr,Sr=173,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x17")](){const t=this[Ir("0xe")],e=t[Ir("0x1d")],n=t[Ir("0x7")][Ir("0x10")]("heading.options");if(!t[Ir("0x1")][Ir("0x15")](Ir("0x8")))return;const o=t[Ir("0x1")][Ir("0x10")](Ir("0x6"));o.enableCommand(Ir("0xf"),((e,n)=>{const s=n[Ir("0x4")],r=Array[Ir("0xd")](this[Ir("0xe")][Ir("0xc")][Ir("0x18")].selection[Ir("0x19")]()).filter((t=>{return e=t,n=s,(o=this.editor[Ir("0xc")][Ir("0x2")]).checkChild(e[Ir("0x13")],n)&&!o[Ir("0x11")](e)&&e.name!=n;var e,n,o}));t.model[Ir("0x16")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0xf"),commandParams:[n],formatGroupId:Ir("0xa")},fs(t))}))}));for(const t of n)Ir("0x3")!=t.model&&o[Ir("0x0")][Ir("0x12")](t.model,(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x1a")])}));function s(t,n){return Yo(e,Ir("0x1e"),[t,n])}function r(t,n){return Yo(e,Ir("0xb"),[t,n])}o[Ir("0x0")][Ir("0x5")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Ir("0xf")==i.commandName){const t=i[Ir("0x9")][0][Ir("0x4")],o=Nr(t);if(null!==o)return{type:Ir("0x1f"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x1c")]((e=>e[Ir("0xc")]===t))[Ir("0x1a")];return{type:Ir("0x1f"),content:Yo(e,Ir("0x14"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x1b")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["title","TrackChangesEditing","locale","config","getAttribute","format","selection","createRange","color","change","document","push","FORMAT_HIGHLIGHT","highlight","item","value","isCollapsed","backward","commandName","getLastMatchingPosition","markInlineFormat","_descriptionFactory","get","has","HighlightEditing","enableCommand","formatInline","afterInit","getFirstPosition","model","registerDescriptionCallback","commandParams","plugins"];var wr,Or;wr=Mr,Or=414,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x9")](){const t=this.editor;if(!t[Fr("0xe")][Fr("0x5")](Fr("0x6")))return;const e=t[Fr("0xe")][Fr("0x4")](Fr("0x10"));e[Fr("0x7")](Fr("0x1c"),((n,o={})=>{const s=t[Fr("0xb")][Fr("0x19")][Fr("0x15")],r=s[Fr("0x13")](Fr("0x1c"));let i=o.value,x=[];if(s[Fr("0x1f")]){const e=s[Fr("0xa")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0x1d")][Fr("0x13")]("highlight")===r,o=e[Fr("0x1")](n,{direction:Fr("0x20")}),s=e[Fr("0x1")](n);x=[t[Fr("0xb")][Fr("0x16")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Fr("0x1a")](e):x[Fr("0x1a")](...ms(Fr("0x1c"),e,t[Fr("0xb")]));t[Fr("0xb")][Fr("0x18")]((()=>{for(const t of x)e[Fr("0x2")](t,{commandName:Fr("0x1c"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x11")];e[Fr("0x3")][Fr("0xc")]((e=>{const{type:o,data:s}=e;if(Fr("0x8")==o&&s&&Fr("0x1c")==s[Fr("0x0")]){const e=n.t,o=s[Fr("0xd")][0][Fr("0x1e")];if(o){const s=t[Fr("0x12")][Fr("0x4")]("highlight.options").find((t=>t[Fr("0xb")]==o)),r=e(s[Fr("0xf")]).toLowerCase();return{type:"format",content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x17")],title:s[Fr("0xf")]}}}return{type:Fr("0x14"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0x1b")))}}}))}}const Dr=["createPositionAt","ck-horizontal-line","elementToStructure","plugins","HorizontalLineEditing","div","registerElementLabel","horizontalLine","afterInit","_descriptionFactory","locale","createEmptyElement","showSuggestionHighlights","enableCommand","addClass","createContainerElement","ELEMENT_HORIZONTAL_LINE","get","editor","TrackChangesEditing"];var Br,jr;Br=Dr,jr=234,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xe")](){const t=this[Ur("0x4")];if(!t[Ur("0x9")].has(Ur("0xa")))return;t[Ur("0x9")].get(Ur("0x5"))[Ur("0x13")](Ur("0xd"));const e=t[Ur("0x9")][Ur("0x3")](Ur("0x5")),n=t[Ur("0x10")];e[Ur("0xf")][Ur("0xc")](Ur("0xd"),(t=>Yo(n,Ur("0x2"),t))),t.conversion.for("dataDowncast")[Ur("0x8")]({model:Ur("0xd"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x12")])return null;const o=e[Ur("0x1")](Ur("0xb")),s=e[Ur("0x11")]("hr");return e[Ur("0x0")](Ur("0x7"),o),e.insert(e[Ur("0x6")](o,0),s),o},converterPriority:"high"})}}const Hr=["_descriptionFactory","commandName","rawHtmlApi","*Change %0 content*","getAttribute","rawHtml","format","editing","getSelectedElement","cancel","htmlEmbed","plugins","document","change","HtmlEmbed","model","ELEMENT_HTML_EMBED","locale","get","view","getCustomProperty","selection","enableCommand","editor","registerDescriptionCallback"];var Wr,zr;Wr=Hr,zr=443,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x5")];if(!t[Vr("0x12")].has(Vr("0x15")))return;const e=t[Vr("0x12")][Vr("0x0")]("TrackChangesEditing"),n=t[Vr("0x18")],o=t[Vr("0xe")][Vr("0x1")][Vr("0x13")][Vr("0x3")];e[Vr("0x7")].registerElementLabel(Vr("0xc"),(t=>Yo(n,Vr("0x17"),t))),t.plugins[Vr("0x0")]("TrackChangesEditing")[Vr("0x4")](Vr("0x11"),((n,s)=>{const r=t[Vr("0x16")],i=r[Vr("0x13")][Vr("0x3")];r[Vr("0x14")]((()=>{const t=function(t){const e=t[Vr("0xf")]();return e&&e.is("element","rawHtml")?t[Vr("0xf")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xb")]("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x11"),commandParams:[s]}),o[Vr("0xf")]()[Vr("0x2")](Vr("0x9"))[Vr("0x10")]())}))})),e[Vr("0x7")][Vr("0x6")]((t=>{const{data:e}=t;if(e&&Vr("0x11")==e[Vr("0x8")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xd"),content:Yo(n,Vr("0xa"),t)}}}))}}const qr=["resizeImage","newRange","isCollapsed","_descriptionFactory","nodeAfter","*Remove image text alternative*","getFirstRange","getClosestSelectedImageElement","ImageTextAlternativeEditing","getSuggestions","getAttribute","fromPosition","imageBlock","convertInlineImageToBlock","end","commandReversedParams","imageStylePreApply","registerPostFixer","editor","isBlockImage","refresh","plugins","discard","*Format:* %0","title","convertBlockImageToInline","suggestion","toLowerCase","model","getNearestSelectionRange","discardSuggestion","element","imageTypeBlock","chain","registerElementLabel","change","imageTypeInline","shouldConvertImageType","imageInline","TrackChangesEditing","insertion","filter","forward","normalizedStyles","type","formatBlock","createRange","getChangedMarkers","markInsertion","newValue","addObject","getContainedElement","value","markBlockFormat","commandParams","enableCommand","registerDescriptionCallback","isEqual","accept","forEach","join","ImageStyleEditing","alt","markInlineFormat","Block image to inline image","findIndex","registerCustomCallback","imageTextAlternative","format","ImageInlineEditing","toPrevious","ImageCaptionEditing","getSuggestionCallback","get","uploadImage","_suggestionFactory","next","imageStylePostApply","length","getCaptionFromImageModelElement","start","removeObject","side","commandName","has","commands","_splitMarkerName","width","backward","hasSuggestion","locale","forceDefaultExecution","imageStyle","createRangeOn","isInContent","find","nodeBefore","caption","schema","_findSuggestions","isBefore","toNext","document","ImageUploadEditing","detach","getSuggestion","markDeletion","imageCaption","Users","*Reset image width*","subType","selection","differ"];var Xr,$r;Xr=qr,$r=255,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x66")];if(!t[Jr("0x69")][Jr("0x37")]("ImageEditing"))return;const n=t[Jr("0x69")][Jr("0x2c")](Jr("0xa")),o=t[Jr("0x69")][Jr("0x2c")]("ImageUtils"),s={},r=t[Jr("0x3d")];if(n.enableCommand("insertImage"),n[Jr("0x57")][Jr("0x5")](Jr("0x60"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x5")](Jr("0x9"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n._descriptionFactory[Jr("0x5")](Jr("0x44"),(()=>Yo(r,"ELEMENT_CAPTION"))),t[Jr("0x69")].has(Jr("0x4a"))&&n[Jr("0x1a")](Jr("0x2d")),t[Jr("0x69")][Jr("0x37")]("ImageBlockEditing")&&t.plugins[Jr("0x37")](Jr("0x28"))&&(n[Jr("0x1a")]("imageTypeInline",((e,s)=>{const r=o.getClosestSelectedImageElement(t.model[Jr("0x49")].selection);t[Jr("0x70")][Jr("0x6")]((()=>{n[Jr("0x18")](r,{commandName:Jr("0x7"),commandParams:[s]},[],Jr("0x6d"))}))})),n[Jr("0x1a")]("imageTypeBlock",((e,s)=>{t[Jr("0x70")].change((r=>{let x=o.getClosestSelectedImageElement(t.model.document.selection),a=r[Jr("0x40")](x);const c=i.LivePosition.fromPosition(a[Jr("0x33")],Jr("0x29")),l=i.LivePosition[Jr("0x5f")](a[Jr("0x62")],Jr("0x48"));n[Jr("0x3e")]((()=>e(s))),x=o[Jr("0x5b")](t[Jr("0x70")][Jr("0x49")][Jr("0x52")]),a=r.createRangeOn(x);const u=r[Jr("0x11")](c,l);c[Jr("0x4b")](),l[Jr("0x4b")](),n[Jr("0x18")](x,{commandName:Jr("0x7"),commandParams:[]},[],"convertInlineImageToBlock"),u.start[Jr("0x47")](a.start)&&n[Jr("0x13")](r[Jr("0x11")](u[Jr("0x33")],a[Jr("0x33")]),"convertInlineImageToBlock"),a.end.isBefore(u[Jr("0x62")])&&n.markInsertion(r[Jr("0x11")](a[Jr("0x62")],u[Jr("0x62")]),Jr("0x61"))}))})),n[Jr("0x2e")].registerCustomCallback(Jr("0x10"),"convertInlineImageToBlock",Jr("0x1f"),(()=>{})),n[Jr("0x2e")][Jr("0x25")](Jr("0x10"),Jr("0x61"),"accept",(()=>{})),n[Jr("0x2e")][Jr("0x25")](Jr("0x10"),"convertInlineImageToBlock",Jr("0x6a"),n[Jr("0x2e")][Jr("0x2b")](Jr("0x10"),"","accept")),n[Jr("0x2e")][Jr("0x25")]("insertion",Jr("0x61"),Jr("0x1f"),(()=>{})),n[Jr("0x2e")].registerCustomCallback(Jr("0xb"),Jr("0x61"),"discard",(([e])=>{const o=n[Jr("0x2e")].getSuggestionCallback(Jr("0xb"),"",Jr("0x6a"));let s=e[Jr("0x33")],r=e.end;const i=t.model.schema[Jr("0x0")](s,Jr("0x3b")),x=t[Jr("0x70")][Jr("0x45")][Jr("0x0")](r,Jr("0xd"));i[Jr("0x56")]&&(s=i[Jr("0x33")]),x.isCollapsed&&(r=x[Jr("0x62")]),o([t[Jr("0x70")][Jr("0x11")](s,r)])})),n[Jr("0x2e")].registerCustomCallback(Jr("0x10"),"convertInlineImageToBlock","chain",c),n._suggestionFactory[Jr("0x25")]("insertion",Jr("0x61"),Jr("0x4"),c)),t[Jr("0x69")].has(Jr("0x2a"))&&(n[Jr("0x1a")]("toggleImageCaption",((e,s)=>{const r=t.plugins.get("ImageCaptionUtils");let i=o[Jr("0x5b")](t[Jr("0x70")].document[Jr("0x52")]),x=r[Jr("0x32")](i);t[Jr("0x70")][Jr("0x6")]((()=>{if(x)return void n[Jr("0x4d")](t[Jr("0x70")][Jr("0x40")](x));const a=o[Jr("0x67")](i);e(s),i=o[Jr("0x5b")](t[Jr("0x70")].document[Jr("0x52")]),x=r.getCaptionFromImageModelElement(i),n[Jr("0x13")](t[Jr("0x70")][Jr("0x40")](x),a?null:Jr("0x4e"))}))})),n[Jr("0x2e")].registerCustomCallback("insertion","imageCaption",Jr("0x4"),c)),t.plugins[Jr("0x37")]("ImageStyleEditing")){n[Jr("0x1a")](Jr("0x3f"),((s,r)=>{const i=t[Jr("0x69")].get(Jr("0x4f")).me,x=t[Jr("0x38")][Jr("0x2c")]("imageStyle");let a=o.getClosestSelectedImageElement(t[Jr("0x70")][Jr("0x49")][Jr("0x52")]),c=t[Jr("0x70")][Jr("0x40")](a),l=x[Jr("0x17")];if(l==r.value)return;const u={commandName:Jr("0x3f"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x70")][Jr("0x6")]((()=>{if(n[Jr("0x5d")]()[Jr("0xc")]((t=>t[Jr("0x41")]&&i==t.author&&("formatBlock"==t[Jr("0xf")]||"formatInline"==t[Jr("0xf")])&&("imageStylePreApply"==t[Jr("0x51")]||Jr("0x30")==t[Jr("0x51")])&&t[Jr("0x5a")]()[Jr("0x1c")](c)))[Jr("0x1e")]((t=>n[Jr("0x1")](t.head))),a=o[Jr("0x5b")](t[Jr("0x70")][Jr("0x49")].selection),c=t[Jr("0x70")][Jr("0x40")](a),x[Jr("0x68")](),t[Jr("0x38")][Jr("0x2c")](Jr("0x7")).refresh(),t[Jr("0x38")][Jr("0x2c")](Jr("0x3")).refresh(),l=x[Jr("0x17")],l!=r[Jr("0x17")])return o.isInlineImage(a)&&x[Jr("0x8")](r[Jr("0x17")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x70")].document[Jr("0x52")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x64"))):void(o[Jr("0x67")](a)?n[Jr("0x18")](a,u,[],Jr("0x30")):n[Jr("0x22")](c,u,Jr("0x30")))}))}));for(const e of t[Jr("0x69")][Jr("0x2c")](Jr("0x20"))[Jr("0xe")])s[e.name]=e[Jr("0x6c")][Jr("0x6f")]();n[Jr("0x2e")][Jr("0x25")]("formatBlock","imageStylePreApply",Jr("0x1f"),(()=>{})),n[Jr("0x2e")][Jr("0x25")]("formatBlock",Jr("0x30"),Jr("0x1f"),(()=>{})),n[Jr("0x2e")][Jr("0x25")]("formatInline","imageStylePostApply",Jr("0x1f"),(()=>{})),n[Jr("0x2e")][Jr("0x25")](Jr("0x10"),Jr("0x64"),Jr("0x1d"),(()=>{})),n[Jr("0x2e")].registerCustomCallback(Jr("0x10"),Jr("0x64"),Jr("0x6a"),((t,e)=>{n[Jr("0x2e")][Jr("0x2b")](Jr("0x10"),"",Jr("0x1d"))(t,{commandName:e[Jr("0x36")],commandParams:e[Jr("0x63")]})})),n[Jr("0x2e")][Jr("0x25")](Jr("0x10"),Jr("0x64"),Jr("0x4"),c)}const x=[{type:"formatBlock",subType:Jr("0x64")},{type:Jr("0xb"),subType:Jr("0x4e")},{type:Jr("0x10"),subType:Jr("0x61")},{type:"insertion",subType:Jr("0x61")}];function a(t,e){const s=x[Jr("0x24")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x51")]==n)),r=x[Jr("0x24")]((({type:t,subType:n})=>e[Jr("0xf")]==t&&e[Jr("0x51")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x5a")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x46")](i,"insertion")[Jr("0xc")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x61")==t[Jr("0x51")]));if(t[Jr("0x31")]>1&&a[Jr("0x62")][Jr("0x1c")](i[Jr("0x33")]))return!0;if(1==t[Jr("0x31")]&&(i[Jr("0x33")].isEqual(a[Jr("0x62")])||i[Jr("0x62")][Jr("0x1c")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0x33")][Jr("0x47")](a[Jr("0x33")])){const t=i[Jr("0x62")][Jr("0x58")],e=a[Jr("0x33")][Jr("0x43")];return o[Jr("0x67")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x70")].document[Jr("0x65")]((()=>{let e=!1;const s=Array.from(t[Jr("0x70")][Jr("0x49")][Jr("0x53")][Jr("0x12")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x39")](t);if(Jr("0x6e")==s&&n[Jr("0x3c")](a)){if("formatBlock"==i&&(Jr("0x64")==x||Jr("0x30")==x)){const t=n[Jr("0x4c")](a);if(r.newRange){const s=t[Jr("0x5a")]().getContainedElement();if(o[Jr("0x67")](s))continue;n[Jr("0x1")](t),e=!0}}if(Jr("0xb")==i&&"imageCaption"==x&&!r[Jr("0x55")]){const t=n[Jr("0x4c")](a);t[Jr("0x2f")]&&t[Jr("0x2f")][Jr("0x41")]&&(n[Jr("0x1")](t.next),e=!0)}}}return e})),t[Jr("0x69")][Jr("0x37")]("ImageResize")&&n[Jr("0x1a")](Jr("0x54"),((e,s)=>{const r=o[Jr("0x5b")](t.model[Jr("0x49")][Jr("0x52")]);r[Jr("0x5e")]("width")!=s[Jr("0x3a")]&&t.model[Jr("0x6")]((()=>{n[Jr("0x18")](r,{commandName:Jr("0x54"),commandParams:[s]})}))})),t.plugins[Jr("0x37")](Jr("0x5c"))&&n[Jr("0x1a")](Jr("0x26"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model[Jr("0x49")].selection);(r.hasAttribute(Jr("0x21"))?r[Jr("0x5e")](Jr("0x21")):"")!=s.newValue&&t.model[Jr("0x6")]((()=>{n[Jr("0x18")](r,{commandName:Jr("0x26"),commandParams:[s]})}))})),n[Jr("0x57")][Jr("0x1b")]((t=>{if(x[Jr("0x42")]((({type:e,subType:n})=>t[Jr("0xf")]==e&&t[Jr("0x51")]==n)))return t.previous?{}:void 0})),n[Jr("0x57")].registerDescriptionCallback((t=>{if("insertion"==t[Jr("0xf")]||"deletion"==t[Jr("0xf")]){const e=t[Jr("0x16")]();if(e&&e.is(Jr("0x2"),Jr("0x44")))return{type:Jr("0xb")==t[Jr("0xf")]?Jr("0x15"):Jr("0x34"),element:e,quantity:1}}})),n[Jr("0x57")][Jr("0x1b")]((t=>Jr("0x10")==t[Jr("0xf")]&&Jr("0x61")==t[Jr("0x51")]?{type:Jr("0x27"),content:"Inline image to block image"}:Jr("0x10")==t[Jr("0xf")]&&Jr("0x6d")==t.subType?{type:Jr("0x27"),content:Jr("0x23")}:void 0)),n[Jr("0x57")][Jr("0x1b")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x36")]){const t=e[Jr("0x19")][0][Jr("0x17")];return n=Jr("0x35")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x27"),content:Yo(r,Jr("0x6b"),n)}}if(Jr("0x26")==e[Jr("0x36")]){const t=e[Jr("0x19")][0][Jr("0x14")];return t?{type:Jr("0x27"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x27"),content:Yo(r,Jr("0x59"))}}if(Jr("0x54")==e[Jr("0x36")]){const t=e.commandParams[0][Jr("0x3a")];return t?{type:Jr("0x27"),content:Yo(r,"*Set image width:* %0",t)}:{type:"format",content:Yo(r,Jr("0x50"))}}}var n}))}}const Zr=["registerCustomCallback","get","data","markBlockFormat","_suggestionFactory","format","subType","plugins","editor","TrackChangesEditing","getSelectedElement","handleSuggestionDescription","change","replaceImageSource","commandParams","afterInit","source","handleReplaceImageCommand","document","locale","Users","discard","getContainedElement","author","getSuggestions","model","ImageEditing","commandName","getAttribute","accept","registerDescriptionCallback","getSuggestionCallback","formatBlock","has","selection"];var Yr,ti;Yr=Zr,ti=415,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x14")](){if(!this[ei("0xd")].plugins[ei("0x3")](ei("0x1f")))return;const t=this[ei("0xd")][ei("0xc")][ei("0x6")](ei("0xe"));t.enableCommand(ei("0x12"),((t,e)=>this[ei("0x16")](t,e))),t[ei("0x9")][ei("0x5")](ei("0x2"),"replaceImageSource",ei("0x22"),t._suggestionFactory.getSuggestionCallback(ei("0x2"),null,ei("0x1a"))),t[ei("0x9")][ei("0x5")]("formatBlock",ei("0x12"),ei("0x1a"),t[ei("0x9")][ei("0x1")](ei("0x2"),null,"accept")),t._descriptionFactory[ei("0x0")]((t=>this[ei("0x10")](t)))}[ei("0x16")](t,e){const n=this[ei("0xd")][ei("0xc")][ei("0x6")]("TrackChangesEditing"),o=this[ei("0xd")][ei("0x1e")][ei("0x17")][ei("0x4")][ei("0xf")]();this.editor.model[ei("0x11")]((()=>{let s=o[ei("0x21")]("src");const r=this.editor[ei("0xc")][ei("0x6")](ei("0x19")).me;for(const t of n[ei("0x1d")]({skipNotAttached:!0})){const e=t[ei("0x1b")]();if("replaceImageSource"===t[ei("0xb")]&&e===o){t[ei("0x1c")]!==r&&t[ei("0x1a")](),s=t[ei("0x7")][ei("0x13")][0][ei("0x15")];break}}t(e),n[ei("0x8")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x12"))}))}[ei("0x10")](t){const{data:e}=t;if(e&&ei("0x12")===e[ei("0x20")]){const t="*Format:* replace image URL";return{type:ei("0xa"),content:Yo(this.editor[ei("0x18")],t)}}}}const oi=["bind","commands","lowest","value","high","execute","afterInit","get","dataInsert","plugins","Users","_handleImportedData","TrackChangesEditing","track_changes","_trackChangesExecuted","importWord","trackChanges","_setSuggestionData","listenTo","editor","_trackChangesValueDuringImport"];var si,ri;si=oi,ri=388,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x4")]=!1}[ii("0x11")](){const t=this.editor,e=t.commands.get(ii("0x5")),n=t[ii("0xc")].get(ii("0x6"));e&&(e.on(ii("0x10"),((t,[,e])=>{this[ii("0xa")]=n[ii("0xe")],e.collaboration_features[ii("0x3")]=!this[ii("0xa")]}),{priority:ii("0xf")}),this[ii("0x8")](e,"dataInsert",this[ii("0x1")][ii("0xb")](this)),this.listenTo(e,ii("0x13"),(()=>{this[ii("0x4")]&&(n[ii("0x10")](),this._trackChangesExecuted=!1)}),{priority:ii("0xd")}),t[ii("0x14")][ii("0x12")]("TrackChangesEditing").enableCommand("importWord"))}[ii("0x1")](t,e){const{suggestions:n}=e,o=this[ii("0x9")][ii("0xc")][ii("0x12")]("trackChanges"),s=o.value;this[ii("0xa")]!==s&&(o[ii("0x10")](),this[ii("0x4")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x9")][ii("0x14")].get(ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x5")}}};this[ii("0x9")][ii("0x14")].get(ii("0x2"))[ii("0x7")](s)}))}}const ai=["indent","*Outdent:* %0","format","editor","has","get","change","_descriptionFactory","markBlockFormat","commandName","from","locale","selection","getSelectedBlocks","outdent","TrackChangesEditing","checkAttribute","indentBlock","plugins","blockIndent","model","filter","*Indent:* %0","IndentEditing","outdentBlock","afterInit","enableCommand"];var ci,li;ci=ai,li=493,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x12")](){const t=this[ui("0x17")],e=t[ui("0xb")][ui("0x19")](ui("0x8"));t[ui("0xb")][ui("0x18")](ui("0x10"))&&(e[ui("0x13")](ui("0x14")),e[ui("0x13")](ui("0x7")));const n=t[ui("0x4")];if(t[ui("0xb")][ui("0x18")]("IndentBlock")){for(const n of["indentBlock","outdentBlock"])e[ui("0x13")](n,(()=>{const o=Array[ui("0x3")](this[ui("0x17")][ui("0xd")].document[ui("0x5")][ui("0x6")]())[ui("0xe")]((t=>this.editor[ui("0xd")].schema[ui("0x9")](t,ui("0xc"))));t[ui("0xd")][ui("0x1a")]((()=>{for(const t of o)e[ui("0x1")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0xa")})}))}));e[ui("0x0")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[ui("0x2")]&&ui("0x11")!=o[ui("0x2")])return;const s=t.getItems()[0],r=e._descriptionFactory.getItemLabel(s);return ui("0xa")==o[ui("0x2")]?{type:ui("0x16"),content:Yo(n,ui("0xf"),r)}:"outdentBlock"==o.commandName?{type:ui("0x16"),content:Yo(n,ui("0x15"),r)}:void 0}))}}}var gi,mi,fi=["get","init","input","TrackChangesEditing","editor","enableCommand","requires"];gi=fi,mi=122,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x3")](){return[Vs.Input]}[hi("0x5")](){this[hi("0x1")].plugins[hi("0x4")](hi("0x0"))[hi("0x2")](hi("0x6"))}}const bi=["TrackChangesEditing","link","has","from","LinkEditing","format","getFirstPosition","getAttribute","model","locale","commandName","hasAttribute","selection","linkHref","document","getRanges","isCollapsed","plugins","getFirstRange","unlink","*Remove link*","change","registerDescriptionCallback","get","enableCommand","commandParams"];var Ei,_i;Ei=bi,_i=314,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ti("0xf")][Ti("0x0")](Ti("0x2")))return;const e=t[Ti("0xf")][Ti("0x15")](Ti("0x18"));e[Ti("0x16")](Ti("0x19"),((n,o)=>{const s=t[Ti("0x6")].document[Ti("0xa")];let r=[];if(s[Ti("0xe")]){if(!s[Ti("0x9")](Ti("0xb")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x4")](),Ti("0xb"),s[Ti("0x5")]("linkHref"),t[Ti("0x6")]);r=[e]}}else r=Array[Ti("0x1")](s[Ti("0xd")]());t[Ti("0x6")][Ti("0x13")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x16")](Ti("0x11"),(()=>{const n=this.editor[Ti("0x6")],o=n[Ti("0xc")].selection;n.change((()=>{let n=[];n=o[Ti("0xe")]?[(0,Vs.findAttributeRange)(o[Ti("0x4")](),Ti("0xb"),o[Ti("0x5")](Ti("0xb")),t[Ti("0x6")])]:ms(Ti("0xb"),o[Ti("0x10")](),t[Ti("0x6")]);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x11"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x14")]((e=>{const{data:n}=e,o=t[Ti("0x7")];if(n){if(Ti("0x19")==n.commandName){const t=n[Ti("0x17")][0];return{type:Ti("0x3"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x11")==n[Ti("0x8")]?{type:"format",content:Yo(o,Ti("0x12"))}:void 0}}))}}const yi=["markBlockFormat","commands","bulletedList","_selectedElements","execute","has","element","numberedList","change","indentList","slice","*Check item*","findIndex","isObject","model","commandParams","plugins","end","forceValue","selection","push","listIndent","document","createPositionAt","todo","schema","checkTodoList","locale","bulleted","ELEMENT_LIST_ITEM","todoList","format","numbered","createRange","before","editor","previousSibling","listItem","nextSibling","paragraph","value","getSelectedBlocks","add","from","TodoListEditing","commandName","ELEMENT_NUMBERED_LIST","filter","checkChild","getAttribute","blockName","outdentList","enableCommand","name","*Outdent:* %0","_descriptionFactory","get","listType","ELEMENT_TODO_LIST"];var ki,Ai;ki=yi,Ai=358,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x1f")],e=t[vi("0x17")];if(!t[vi("0xc")][vi("0x1")]("ListEditing"))return;const n=t[vi("0xc")][vi("0x34")]("TrackChangesEditing"),o=t[vi("0xc")].has(vi("0x28"));function s(e){return()=>{const o=t[vi("0xa")][vi("0x12")][vi("0xf")],s=t[vi("0x38")][vi("0x34")](e);if(s.value)return void t[vi("0x0")](vi("0x23"),{});const r=e[vi("0x6")](0,-4),i=function(t,e,n){let o=Array[vi("0x27")](t).filter((t=>{return e=t,(o=n)[vi("0x2c")](e.parent,vi("0x21"))&&!o[vi("0x9")](e);var e,o}));o=o.filter((t=>!t.is("element",vi("0x21"))||t[vi("0x2d")](vi("0x35"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2"),vi("0x21"))?s[vi("0x26")](Si(t)):s[vi("0x26")](t);return Array[vi("0x27")](s)}(o[vi("0x25")](),r,t.model[vi("0x15")]);t.model.change((()=>{for(const t of i)n[vi("0x37")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x2e")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x27")](t);const n=e[vi("0x8")]((t=>vi("0x21")!=t[vi("0x31")]));return n>-1&&(e=e[vi("0x6")](0,n)),e}(t[vi("0xa")].document[vi("0xf")][vi("0x25")]()),s=t[vi("0xa")][vi("0x1d")](t[vi("0xa")][vi("0x13")](o[0],vi("0x1e")),t[vi("0xa")][vi("0x13")](o[o.length-1],vi("0xd")));t[vi("0xa")][vi("0x4")]((()=>{n[vi("0x37")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x11")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x22")];for(;t&&t[vi("0x2d")](vi("0x11"))>n.getAttribute("listIndent");)e[vi("0x26")](t),t=t[vi("0x22")]}return Array[vi("0x27")](e)}(o))}))}}n[vi("0x30")]("numberedList",s(vi("0x3"))),n[vi("0x30")](vi("0x39"),s(vi("0x39"))),o&&n[vi("0x30")](vi("0x1a"),s(vi("0x1a"))),n[vi("0x30")](vi("0x5"),r(vi("0x5"))),n[vi("0x30")](vi("0x2f"),r(vi("0x2f"))),o&&n[vi("0x30")](vi("0x16"),(()=>{const e=t.commands[vi("0x34")](vi("0x16")),o=Array[vi("0x27")](e[vi("0x3a")]);o[vi("0x2b")]((t=>t[vi("0x2d")]("todoListChecked")!=e[vi("0x24")])),t[vi("0xa")][vi("0x4")]((()=>{for(const t of o)n[vi("0x37")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x24")]}]})}))})),n[vi("0x33")].registerElementLabel("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x33")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x3")==n[vi("0x29")]||vi("0x39")==n[vi("0x29")]||vi("0x1a")==n[vi("0x29")])switch(n[vi("0x29")].replace("List","")){case vi("0x18"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x1c"):return o(Yo(e,vi("0x2a")));case vi("0x14"):return o(Yo(e,vi("0x36")))}if("indentList"==n.commandName)return{type:vi("0x1b"),content:Yo(e,"*Indent:* %0",Yo(e,vi("0x19")))};if("outdentList"==n.commandName)return{type:vi("0x1b"),content:Yo(e,vi("0x32"),Yo(e,vi("0x19")))};if("checkTodoList"==n[vi("0x29")])return n[vi("0xb")][0][vi("0xe")]?{type:vi("0x1b"),content:Yo(e,vi("0x7"))}:{type:"format",content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t[vi("0x2d")](vi("0x11"));if(0==e)return t;let n=t;for(;t[vi("0x20")]&&t.previousSibling.is(vi("0x2"),vi("0x21"));){const o=t[vi("0x20")][vi("0x2d")]("listIndent");if(o==e)n=t[vi("0x20")];else if(o<e)break;t=t[vi("0x20")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2"),vi("0x21"))&&t[vi("0x2d")](vi("0x11"))>0){let n=t[vi("0x22")];for(;n&&"listItem"==n[vi("0x31")]&&n[vi("0x2d")](vi("0x11"))==t[vi("0x2d")](vi("0x11"));)e[vi("0x10")](n),n=n[vi("0x22")]}return e}const Li=["numbered","_LIST_","_getSuggestionBlocks","replace","get","_getSuggestionBlocksForListStyle","commandParams","plugins","_descriptionFactory","listType","bind","getLastPosition","listStart","afterInit","createPositionAt","editor","reversed","handleListReversedCommand","listItem","before","*Format:* set start index to %0","type","parent","config","getFirstPosition","handleListStyleCommand","ListUtils","_getTranslationKeyForListStyle","listReversed","ListPropertiesEditing","forward","selection","styles","change","markMultiRangeBlockFormat","format","handleListStartCommand","model","unshift","getAttribute","document","getSelectedBlocks","createRange","*Change to:* %0","has","listStyle","toUpperCase","list.properties","startIndex","element","enableCommand","TrackChangesEditing","length","flat","backward","getSiblingNodes","ELEMENT_","filter","map"];var Ni,Mi;Ni=Li,Mi=220,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x1d")](){if(!this[wi("0x1f")][wi("0x17")][wi("0x1")](wi("0x2d")))return;const t=this.editor[wi("0x27")].get(wi("0x4")),e=this[wi("0x1f")][wi("0x17")][wi("0x14")](wi("0x8"));t[wi("0x30")]&&e[wi("0x7")](wi("0x2"),this[wi("0x29")][wi("0x1a")](this)),t[wi("0x20")]&&e[wi("0x7")]("listReversed",this[wi("0x21")][wi("0x1a")](this)),t[wi("0x5")]&&e.enableCommand(wi("0x1c"),this[wi("0x34")][wi("0x1a")](this)),e[wi("0x18")].registerDescriptionCallback(this.handleDescriptions[wi("0x1a")](this))}[wi("0x29")](t,e={}){const n=this[wi("0x1f")][wi("0x17")].get("TrackChangesEditing"),o=this[wi("0x15")]();this[wi("0x1f")][wi("0x35")][wi("0x31")]((()=>{n[wi("0x32")](o,{commandName:wi("0x2"),commandParams:[{type:e[wi("0x25")]}],formatGroupId:wi("0x2")})}))}[wi("0x21")](t,e={}){const n=this.editor[wi("0x17")].get(wi("0x8")),o=this[wi("0x12")]((t=>t.is(wi("0x6"),wi("0x22"))&&wi("0x10")===t[wi("0x37")](wi("0x19"))));if(o[wi("0x9")]<1)return;const s=o.map((t=>this[wi("0x1f")][wi("0x35")].createRange(this[wi("0x1f")][wi("0x35")].createPositionAt(t,wi("0x23")),this[wi("0x1f")][wi("0x35")][wi("0x1e")](t,0))));this[wi("0x1f")][wi("0x35")].change((()=>{n[wi("0x32")](s,{commandName:"listReversed",commandParams:[{reversed:e[wi("0x20")]}],formatGroupId:wi("0x2c")})}))}[wi("0x34")](t,e={}){const n=this[wi("0x1f")][wi("0x17")][wi("0x14")](wi("0x8")),o=this[wi("0x12")]((t=>t.is(wi("0x6"),wi("0x22"))&&"numbered"===t[wi("0x37")](wi("0x19"))));if(o.length<1)return;const s=o.map((t=>this[wi("0x1f")][wi("0x35")][wi("0x3a")](this[wi("0x1f")][wi("0x35")].createPositionAt(t,wi("0x23")),this.editor[wi("0x35")].createPositionAt(t,0))));this[wi("0x1f")][wi("0x35")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x1c"),commandParams:[{startIndex:e[wi("0x5")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x2"):o=wi("0x0"),s={type:wi("0x33"),content:Yo(e,o,Yo(e,this[wi("0x2b")](n[wi("0x16")][0][wi("0x25")])))};break;case wi("0x2c"):o=n.commandParams[0][wi("0x20")]?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case wi("0x1c"):o=wi("0x24"),s={type:wi("0x33"),content:Yo(e,o,n.commandParams[0][wi("0x5")])}}return s}[wi("0x15")](){var t,e,n,o;const s=this[wi("0x1f")][wi("0x17")].get(wi("0x2a"));let r=Array.from(this.editor.model.document.selection[wi("0x39")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x6"),"listItem"))&&r[wi("0x36")](...s[wi("0xc")](this[wi("0x1f")][wi("0x35")][wi("0x38")].selection[wi("0x28")](),wi("0xb"))),(null===(e=r[r[wi("0x9")]-1])||void 0===e?void 0:e.is(wi("0x6"),"listItem"))&&r.push(...s[wi("0xc")](this.editor.model[wi("0x38")][wi("0x2f")][wi("0x1b")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x1f")][wi("0x35")][wi("0x38")][wi("0x2f")][wi("0x28")]())||void 0===n?void 0:n[wi("0x26")])||void 0===o?void 0:o.is("element",wi("0x22")))&&(r=r[wi("0xe")]((t=>t.is(wi("0x6"),wi("0x22"))))),r}[wi("0x12")](t){const e=this[wi("0x1f")].plugins[wi("0x14")](wi("0x2a"));let n=Array.from(this[wi("0x1f")].model[wi("0x38")][wi("0x2f")][wi("0x39")]())[wi("0xe")](t)[wi("0xf")]((t=>{const n=this.editor.model[wi("0x1e")](t,0);return[...e[wi("0xc")](n,wi("0xb")),...e[wi("0xc")](n,wi("0x2e"))]}))[wi("0xa")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0xd")+this[wi("0x1f")].plugins.get(wi("0x2a")).getListTypeFromListStyleType(t)[wi("0x3")]()+wi("0x11")+t[wi("0x3")]()[wi("0x13")](/-/g,"_")}}const Fi=["media","TrackChangesEditing","conversion","dataDowncast","locale","_descriptionFactory","high","enableCommand","options","ELEMENT_MEDIA","MediaEmbedEditing","registerElementLabel","div","get","data","for","attribute:url:media","plugins","editor","afterInit","createEmptyElement","has","elementToElement"];var Pi,Di;Pi=Fi,Di=445,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xb")](){const t=this[Bi("0xa")];if(!t.plugins[Bi("0xd")](Bi("0x2")))return;const e=t[Bi("0x9")][Bi("0x5")](Bi("0x10")),n=t[Bi("0x13")];e[Bi("0x16")]("mediaEmbed"),e[Bi("0x14")][Bi("0x3")](Bi("0xf"),(t=>Yo(n,Bi("0x1"),t))),t[Bi("0x11")][Bi("0x7")](Bi("0x12"))[Bi("0xe")]({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0xc")](Bi("0x4"))},converterPriority:Bi("0x15")}),t[Bi("0x6")].downcastDispatcher.on(Bi("0x8"),((t,e,n)=>{n[Bi("0x0")].showSuggestionHighlights&&t.stop()}),{priority:Bi("0x15")})}}const Ui=["mention","MentionEditing","afterInit","enableCommand","get","TrackChangesEditing","has","plugins"];var Gi,Hi;Gi=Ui,Hi=137,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x1")](){const t=this.editor;t[Wi("0x6")][Wi("0x5")](Wi("0x0"))&&t.plugins[Wi("0x3")](Wi("0x4"))[Wi("0x2")](Wi("0x7"))}}const Vi=["pageBreak","enableCommand","afterInit","plugins","ELEMENT_PAGE_BREAK","registerElementLabel","editor","PageBreakEditing","get","has","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=127,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x7")](){const t=this[Xi("0x0")];if(!t[Xi("0x8")][Xi("0x3")](Xi("0x1")))return;t[Xi("0x8")][Xi("0x2")](Xi("0x4"))[Xi("0x6")](Xi("0x5"));const e=t.plugins[Xi("0x2")](Xi("0x4")),n=t.locale;e._descriptionFactory[Xi("0xa")]("pageBreak",(t=>Yo(n,Xi("0x9"),t)))}}const Ji=["change","span","plugins","has","registerDescriptionCallback","markerRange","schema","ELEMENT_PARAGRAPH","name","getSelectedBlocks","insertion","editor","insertParagraph","commandName","includes","selection","downcastDispatcher","addClass","nodeAfter","createUIElement","isLimit","registerElementLabel","_descriptionFactory","checkChild","isBlock","*Change to:* %0","model","activeMarkers","writer","parent","options","addMarker:suggestion:insertion","toViewPosition","mapper","$text","showSuggestionHighlights","locale","getItemLabel","*Insert:* %0","highest","document","markerName","ck-suggestion-marker-split","enableCommand","TrackChangesEditing","get","insert","markBlockFormat","isObject","start","ck-suggestion-marker--active","paragraph","isTouching"];var Qi,Zi;Qi=Ji,Zi=204,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x13")];if(!t[Yi("0xa")][Yi("0xb")]("Paragraph"))return;const e=t[Yi("0x2c")],n=t[Yi("0xa")][Yi("0x0")](Yi("0x34"));n[Yi("0x1e")][Yi("0x1d")](Yi("0x6"),(t=>Yo(e,Yi("0xf"),t))),n[Yi("0x33")]("paragraph",((e,o={})=>{const s=t[Yi("0x22")][Yi("0x30")],r=o[Yi("0x17")]||s[Yi("0x17")],i=Array.from(r[Yi("0x11")]()).filter((t=>{return e=t,(n=this[Yi("0x13")][Yi("0x22")].schema)[Yi("0x1f")](e[Yi("0x25")],Yi("0x6"))&&!n[Yi("0x3")](e)&&Yi("0x6")!=e[Yi("0x10")];var e,n}));t[Yi("0x22")][Yi("0x8")]((()=>{for(const t of i)n[Yi("0x2")](t,{commandName:Yi("0x6"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n._descriptionFactory[Yi("0xc")]((t=>{const{data:n}=t;if(n&&Yi("0x6")==n[Yi("0x15")])return{type:"format",content:Yo(e,Yi("0x21"),Yo(e,Yi("0xf")))}})),n[Yi("0x33")](Yi("0x14")),t.editing.downcastDispatcher.on(Yi("0x27"),ex(t),{priority:Yi("0x2f")}),t.data[Yi("0x18")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x26")][Yi("0x2b")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x2f")});const o=n._descriptionFactory;o[Yi("0xc")]((n=>{if("insertion"!==n.type)return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x7")](r)||!s[Yi("0x1a")])return;const i=t[Yi("0x22")][Yi("0xe")],x=s[Yi("0x1a")];return i[Yi("0x20")](x)&&!i[Yi("0x1c")](x)&&i.checkChild(x,Yi("0x2a"))?{type:Yi("0x12"),content:Yo(e,Yi("0x2e"),o[Yi("0x2d")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0xa")][Yi("0x0")](Yi("0x34")),i=o.markerRange[Yi("0x4")],x=o[Yi("0xd")].end,a=t[Yi("0x22")][Yi("0xe")];if(!i[Yi("0x7")](x)||!i[Yi("0x1a")])return;const c=i[Yi("0x1a")];if(a[Yi("0x20")](c)&&!a.isLimit(c)&&a[Yi("0x1f")](c,Yi("0x2a"))){if(!s.consumable.consume(o[Yi("0xd")],n[Yi("0x10")]))return;const t=s.writer[Yi("0x1b")](Yi("0x9"),{class:Yi("0x32")}),i=s[Yi("0x29")][Yi("0x28")](x);e&&r[Yi("0x23")][Yi("0x16")](o[Yi("0x31")])&&s[Yi("0x24")][Yi("0x19")](Yi("0x5"),t),s[Yi("0x24")][Yi("0x1")](i,t),s[Yi("0x29")].bindElementToMarker(t,o.markerName)}}}const nx=["isCollapsed","selection","change","removeFormat","commandName","getAttributeProperties","TrackChangesEditing","document","from","enableCommand","_descriptionFactory","createRangeOn","*Remove all formatting*","getAttributes","markInlineFormat","editor","getItems","afterInit","has","getRanges","schema","model","plugins","format","locale"];var ox,sx;ox=nx,sx=292,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x0")](){const t=this[rx("0x17")];if(!t[rx("0x5")][rx("0x1")]("RemoveFormatEditing"))return;const e=t[rx("0x5")].get(rx("0xe"));e[rx("0x11")](rx("0xb"),(n=>{const o=t.model[rx("0xf")][rx("0x9")];o[rx("0x8")]?n():t.model[rx("0xa")]((()=>{const n=Array[rx("0x10")](o[rx("0x2")]());for(const o of n)for(const n of o[rx("0x18")]())xx(n,t[rx("0x4")][rx("0x3")])&&e[rx("0x16")](t[rx("0x4")][rx("0x13")](n),{commandName:rx("0xb"),commandParams:[]})}))})),e[rx("0x12")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0xb")==n[rx("0xc")])return{type:rx("0x6"),content:Yo(t[rx("0x7")],rx("0x14"))}}))}}function xx(t,e){for(const[n]of t[rx("0x15")]()){const t=e[rx("0xd")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["discardAllSuggestions","plugins","get","enableCommand","afterInit","goToNextRestrictedEditingException","discardSuggestion","acceptSelectedSuggestions","TrackChangesEditing","goToPreviousRestrictedEditingException","acceptAllSuggestions","RestrictedEditingModeEditing"];var cx,lx;cx=ax,lx=205,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x3")](){const t=this.editor;if(!t[ux("0x0")].has(ux("0xa")))return;const e=t[ux("0x0")][ux("0x1")](ux("0x7"));e.enableCommand(ux("0x8")),e[ux("0x2")](ux("0x4"));const n=t.plugins[ux("0x1")]("RestrictedEditingModeEditing");n[ux("0x2")]("trackChanges"),n[ux("0x2")]("acceptSuggestion"),n[ux("0x2")](ux("0x5")),n[ux("0x2")](ux("0x9")),n.enableCommand(ux("0xb")),n[ux("0x2")](ux("0x6")),n[ux("0x2")]("discardSelectedSuggestions")}}const gx=["name","shiftEnter","softBreak","requires","addClass","deletion","writer","downcastDispatcher","options","toViewPosition","mapper","plugins","ck-suggestion-marker-","merge","addMarker:suggestion:insertion","data","insert","locale","editing","markerName","bindElementToMarker","markerRange","addMarker:suggestion:deletion","high","editor","showSuggestionHighlights","init","consumable","split","span","enableCommand","ELEMENT_LINE_BREAK","getItems","get","TrackChangesEditing","ck-suggestion-marker--active"];var mx,fx;mx=gx,fx=164,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x13")](){return[nr.ShiftEnter]}[hx("0x6")](){const t=this[hx("0x4")],e=t[hx("0x1b")][hx("0xd")](hx("0xe"));e[hx("0xa")](hx("0x11")),t[hx("0x22")].downcastDispatcher.on(hx("0x1e"),bx(t),{priority:"high"}),t[hx("0x22")][hx("0x17")].on(hx("0x2"),bx(t),{priority:hx("0x3")}),t[hx("0x1f")][hx("0x17")].on("addMarker:suggestion",((e,n,o)=>{o[hx("0x18")][hx("0x5")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel("softBreak",(e=>Yo(t[hx("0x21")],hx("0xb"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x1b")][hx("0xd")](hx("0xe"));if(!s[hx("0x7")].test(o[hx("0x1")],n[hx("0x10")]))return;const i=t.model;for(const t of o[hx("0x1")][hx("0xc")]()){if(!t.is("element",hx("0x12")))continue;const n=hx("0x15")==o[hx("0x23")][hx("0x8")](":")[1]?hx("0x1d"):"split",x=s[hx("0x16")].createUIElement(hx("0x9"),{class:hx("0x1c")+n}),a=s[hx("0x1a")][hx("0x19")](i.createPositionBefore(t));e&&r.activeMarkers.includes(o[hx("0x23")])&&s.writer[hx("0x14")](hx("0xf"),x),s[hx("0x16")][hx("0x20")](a,x),s.mapper[hx("0x0")](x,o[hx("0x23")])}}}const Ex=["get","isCollapsed","StandardEditingModeEditing","getRanges","FORMAT_RESTRICTED_DISABLED","enableCommand","format","selection","locale","commandName","afterInit","commands","plugins","commandParams","forceValue","change","model","FORMAT_RESTRICTED_ENABLED","TrackChangesEditing","editor","registerDescriptionCallback","from"];var _x,Tx;_x=Ex,Tx=390,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x10")](){const t=this[Cx("0x3")],e=t[Cx("0x0")],n=t[Cx("0xe")];if(!t[Cx("0x12")].has(Cx("0x8")))return;const o=t[Cx("0x12")][Cx("0x6")](Cx("0x2")),s="restrictedEditingException",r=t[Cx("0x11")].get(s);o[Cx("0xb")](s,((t,n={})=>{const i=e.document[Cx("0xd")];if(i[Cx("0x7")])return void t(n);const x=void 0!==n[Cx("0x14")]?n[Cx("0x14")]:!r.value;e[Cx("0x15")]((()=>{const t=Array[Cx("0x5")](i[Cx("0x9")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x4")]((t=>{const{data:e}=t;if(e&&e[Cx("0xf")]==s)return e[Cx("0x13")][0][Cx("0x14")]?{type:Cx("0xc"),content:Yo(n,Cx("0x1"))}:{type:Cx("0xc"),content:Yo(n,Cx("0xa"))}}))}}const kx=["has","enabledStyles","getAncestors","commandName","getAttribute","_getStyleDefinition","markBlockFormat","name","selection","commands","document","block","_getRangesWithClasses","element","locale","getSelectedBlocks","push","isCollapsed","StyleUtils","classes","*Format:* %0","style","config","change","from","TrackChangesEditing","editor","find","commandParams","model","getRanges","markInlineFormat","createRangeOn","includes","get","style:","registerDescriptionCallback","styleName","Style","*Remove format:* %0","DataSchema","format","add","plugins","_descriptionFactory","isBlock","toLowerCase","normalizeConfig","value"];var Ax,vx;Ax=kx,vx=180,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x2a")];if(!t[Rx("0xa")][Rx("0x10")](Rx("0x5")))return;const e=t[Rx("0x19")][Rx("0x1")](Rx("0x25")),n=t[Rx("0xa")][Rx("0x1")](Rx("0x29")),o=t[Rx("0x1e")],s=t[Rx("0xa")][Rx("0x1")](Rx("0x7")),r=t[Rx("0xa")].get(Rx("0x22"))[Rx("0xe")](s,t[Rx("0x26")][Rx("0x1")]("style.definitions"));n.enableCommand(Rx("0x25"),((o,{styleName:i})=>{const x=t[Rx("0x2d")][Rx("0x1a")][Rx("0x18")],a=this[Rx("0x15")](i,r);if(!a)return;if(!e[Rx("0x11")][Rx("0x0")](i))return;if(x[Rx("0x21")]&&!a[Rx("0xc")])return void o({styleName:i});const c=!e[Rx("0xf")][Rx("0x0")](a[Rx("0x17")]);if(a[Rx("0xc")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x12")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x0")](o[Rx("0x17")])){n[Rx("0x9")](o);break}}return n}(x[Rx("0x1f")](),a.modelElements);t[Rx("0x2d")][Rx("0x27")]((()=>{for(const t of e)n[Rx("0x16")](t,{commandName:Rx("0x25"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x2")+i})}))}else{let e=Array[Rx("0x28")](x[Rx("0x2e")]());if(!c){const n=Array.from(s.getDefinitionsForView(a[Rx("0x1d")],!1))[0][Rx("0x2d")],o=[];for(const s of e){const e=this[Rx("0x1c")](t[Rx("0x2d")],s,a.classes,n);o[Rx("0x20")](...e)}e=o}t.model.change((()=>{for(const t of e)n[Rx("0x2f")](t,{commandName:Rx("0x25"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0xb")][Rx("0x3")]((t=>{const{data:e}=t;if(e&&Rx("0x25")===e[Rx("0x13")])return e[Rx("0x2c")][0].forceValue?{type:Rx("0x8"),content:Yo(o,Rx("0x24"),e[Rx("0x2c")][0][Rx("0x4")][Rx("0xd")]())}:{type:"format",content:Yo(o,Rx("0x6"),e[Rx("0x2c")][0][Rx("0x4")].toLowerCase())}}))}_getStyleDefinition(t,e){let n=e[Rx("0x1b")].find((e=>e[Rx("0x17")]===t));return n||(n=e.inline[Rx("0x2b")]((e=>e[Rx("0x17")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[Rx("0x14")](o);e&&n.every((t=>e[Rx("0x23")][Rx("0x0")](t)))&&s[Rx("0x20")](t[Rx("0x30")](r))}return s}}const Ix=["_getSuggestionCoords","addRange","removeTableRow","$graveyard","toLowerCase","selectTableRow","from","ELEMENT_TABLE_WITH_TEXT","detach","markMultiRangeInsertion","createRangeIn","substr","markMultiRangeDeletion","getItems","ELEMENT_TABLE_ROW","document","start","locale","TableUtils","insertion","getColumnIndexes","deletion","editor","plugins","MIN_SAFE_INTEGER","root","includes","ELEMENT_TABLE_ROW_WITH_TEXT","max","last","get","push","fromRange","selection","subType","hasAttribute","maxColumn","_tableSuggestions","*Remove:* %0","getAttribute","tableCell","addMarker:suggestion","ELEMENT_TABLE","isArray","ELEMENT_TABLE_COLUMN","insert","*Insert:* %0","getContainedElement","discard","rootName","getChildren","getSuggestion","nodeAfter","createPositionAt","createTableWalker","getSelectionAffectedTableCells","data","suggestion","has","_splitMarkerName","_setupColumnsRowsFixing","isEqual","refresh","tableColumn","span","order","change","mapper","classes","accept","name","differ","table","insertTable","oldRange","values","position","_tablePostFixingSubtypes","type","min","_acceptFormatSuggestionCallbackFactory","selectTableColumn","low","join","getCellLocation","tablePaste","registerPostFixer","maxRow","options","showSuggestionHighlights","afterInit","item","colspan","insertTableColumnRight","isInContent","model","end","enqueueChange","removeTableColumn","downcastDispatcher","_suggestionFactory","getRanges","registerElementLabel","findAncestor","length","tableRow","writer","change:data","_getCoordsForCells","registerDescriptionCallback","first","toViewElement","commands","$textProxy","filter","setSelection","some","registerCustomCallback","every","_descriptionFactory","insertTableRowAbove","rowspan","createRangeOn","TableEditing","insertTableColumnLeft","map","getFirstRange","execute","getChangedMarkers","enableCommand"];var Lx,Nx;Lx=Ix,Nx=114,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x5d")]=[Mx("0x79"),Mx("0x4f")],this[Mx("0x35")]=new Set}[Mx("0x6a")](){const t=this[Mx("0x26")],e=t.model[Mx("0x1f")][Mx("0x31")];if(!t[Mx("0x27")][Mx("0x4a")](Mx("0x9")))return;const n=t[Mx("0x21")],o=t[Mx("0x27")].get("TrackChangesEditing"),s=t[Mx("0x27")][Mx("0x2e")](Mx("0x22"));o[Mx("0x5")][Mx("0x76")](Mx("0x58"),(t=>Yo(n,Mx("0x3a"),t))),this[Mx("0x4c")](),o[Mx("0xf")](Mx("0x59")),o[Mx("0xf")](Mx("0x15")),o[Mx("0xf")](Mx("0x61"));for(const n of[Mx("0x6"),"insertTableRowBelow"]){const r=t.commands[Mx("0x2e")](n);o[Mx("0xf")](n,(n=>{t[Mx("0x6f")][Mx("0x52")]((t=>{n();const i="above"===r[Mx("0x51")],x=s[Mx("0x47")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x7e")]-1:a[Mx("0x2d")]+1,l=x[0][Mx("0x77")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0xb")]((e=>t[Mx("0x8")](e.cell)));o[Mx("0x19")](d,Mx("0x79"))}))}))}for(const n of[Mx("0xa"),Mx("0x6d")]){const r=t.commands[Mx("0x2e")](n);o[Mx("0xf")](n,(n=>{t.model[Mx("0x52")]((t=>{n();const i="left"===r[Mx("0x51")],x=s[Mx("0x47")](e),a=s[Mx("0x24")](x),c=i?a.first-1:a[Mx("0x2d")]+1,l=x[0].findAncestor(Mx("0x58")),u=s[Mx("0x46")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x16")](u)[Mx("0xb")]((e=>t[Mx("0x8")](e.cell)));o.markMultiRangeInsertion(d,"tableColumn")}))}))}for(const n of[Mx("0x12"),Mx("0x72")]){const r=n.substr(11),i=r[Mx("0x14")](),x=i.substr(0,3)+Mx("0x50"),a="table"+r,c=Mx("0x5f")+r,l=Mx("0x2c")+r;o[Mx("0xf")](n,(()=>{t[Mx("0x6f")][Mx("0x52")]((t=>{const r=s[Mx("0x47")](e),u=r[0][Mx("0x77")](Mx("0x58"));let d;if(Mx("0x12")==n){const t=s.getRowIndexes(r);d={startRow:t[Mx("0x7e")],endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x24")](r);d={startColumn:t[Mx("0x7e")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x46")](u,d),m=Array[Mx("0x16")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x0")]((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t[Mx("0x33")](x))))[Mx("0xb")]((e=>t.createRangeOn(e))),p=o[Mx("0x1c")](h,a);if(p&&(Mx("0x79")==p[Mx("0x32")]||Mx("0x4f")==p.subType)){const e=this[Mx("0x10")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x64")](n),a=n[Mx("0x37")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x11")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x75")]())[Mx("0xb")]((t=>i.LiveRange[Mx("0x30")](t)));t[Mx("0x6f")].change((e=>{const s=e.batch;n=n[Mx("0x0")]((t=>Mx("0x13")!=t[Mx("0x29")][Mx("0x41")])),e.setSelection(n),t[Mx("0x80")].get("removeTableRow").refresh(),t[Mx("0xd")](Mx("0x12"),{forceDefaultExecution:!0}),t.model[Mx("0x71")]((()=>{t.model[Mx("0x71")](s,(t=>{const e=o[Mx("0x0")]((t=>Mx("0x13")!=t[Mx("0x29")][Mx("0x41")]));e[Mx("0x78")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x18")]()}))}))}))}function a(n){t[Mx("0x6f")][Mx("0x52")]((o=>{const s=Array[Mx("0x16")](e[Mx("0x75")]())[Mx("0xb")]((t=>i.LiveRange[Mx("0x30")](t))),r=[];for(const t of n)for(const e of t[Mx("0x1d")]({shallow:!0}))r[Mx("0x2f")](e);for(const e of r)Mx("0x13")!=e[Mx("0x29")][Mx("0x41")]&&(o[Mx("0x1")](o[Mx("0x45")](e,0)),t[Mx("0x80")][Mx("0x2e")](Mx("0x72")).refresh(),t[Mx("0xd")](Mx("0x72"),{forceDefaultExecution:!0}));const x=s[Mx("0x0")]((t=>Mx("0x13")!=t[Mx("0x29")][Mx("0x41")]));x[Mx("0x78")]>0&&o[Mx("0x1")](x);for(const t of s)t[Mx("0x18")]()}))}function c(t,e){return e[Mx("0x4")]((e=>t[Mx("0x2")]((t=>t[Mx("0x70")][Mx("0x4d")](e.start)||e[Mx("0x70")].isEqual(t.start)))))}function l(t,e){return t[Mx("0x2")]((t=>e[Mx("0x2")]((e=>t[Mx("0x70")].isTouching(e[Mx("0x20")])))))}t[Mx("0x48")][Mx("0x73")].on(Mx("0x39"),((t,e,n)=>{if(!n[Mx("0x68")][Mx("0x69")])return;const o=e[Mx("0x6b")];if(!o)return;const s=n[Mx("0x53")][Mx("0x7f")](o);function r(t){return Array[Mx("0x3b")](t)?t:[t]}s&&Mx("0x38")===o[Mx("0x56")]&&(0,x.setHighlightHandling)(s,n[Mx("0x7a")],((t,e,n)=>n.addClass(r(e[Mx("0x54")]),t)),((t,e,n)=>n.removeClass(r(e[Mx("0x54")]),t)))}),{priority:"highest"}),o[Mx("0x5")][Mx("0x7d")]((t=>{if(Mx("0x23")!=t[Mx("0x5e")]&&Mx("0x25")!=t[Mx("0x5e")])return;const e=t[Mx("0x3f")]();if(null!=e&&e.is("element",Mx("0x58"))){if("insertion"==t[Mx("0x5e")]){const e=t[Mx("0x1d")]()[Mx("0x0")]((t=>t.is(Mx("0x81"))))[Mx("0xb")]((t=>t[Mx("0x48")]));if(e[Mx("0x78")])return{type:"insertion",content:Yo(n,Mx("0x3e"),Yo(n,Mx("0x17"),'"'+e.join(" ")+'"'))}}if(Mx("0x25")==t.type){const e=t[Mx("0x1d")]()[Mx("0x0")]((t=>t.is(Mx("0x81")))).map((t=>t[Mx("0x48")]));if(e[Mx("0x78")])return{type:"deletion",content:Yo(n,Mx("0x36"),Yo(n,Mx("0x17"),'"'+e[Mx("0x63")](" ")+'"'))}}}})),o[Mx("0x5")].registerDescriptionCallback((t=>{if(Mx("0x79")==t[Mx("0x32")]){const e=t[Mx("0x1d")]()[Mx("0x0")]((t=>t.is(Mx("0x81"))))[Mx("0xb")]((t=>t[Mx("0x48")])),o=this._getSuggestionCoords(t),s=o[Mx("0x67")]-o.minRow+1;if(Mx("0x23")==t[Mx("0x5e")])return e.length?{type:Mx("0x23"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x2b"),[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x1e"),s))};if(Mx("0x25")==t[Mx("0x5e")])return e.length?{type:Mx("0x25"),content:Yo(n,Mx("0x36"),Yo(n,Mx("0x2b"),[s,'"'+e[Mx("0x63")](" ")+'"']))}:{type:Mx("0x25"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))}}if("tableColumn"==t[Mx("0x32")]){const e=t.getItems()[Mx("0x0")]((t=>t.is(Mx("0x81"))))[Mx("0xb")]((t=>t.data)),o=this[Mx("0x10")](t),s=o[Mx("0x34")]-o.minColumn+1;if("insertion"==t.type)return e[Mx("0x78")]?{type:Mx("0x23"),content:Yo(n,Mx("0x3e"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x3e"),Yo(n,Mx("0x3c"),s))};if("deletion"==t[Mx("0x5e")])return e.length?{type:Mx("0x25"),content:Yo(n,Mx("0x36"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x63")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x3c"),s))}}})),o[Mx("0x74")].registerCustomCallback("insertion","tableRow",Mx("0x40"),r),o[Mx("0x74")].registerCustomCallback(Mx("0x25"),Mx("0x79"),Mx("0x55"),r),o[Mx("0x74")].registerCustomCallback(Mx("0x23"),Mx("0x4f"),Mx("0x40"),a),o[Mx("0x74")].registerCustomCallback(Mx("0x25"),Mx("0x4f"),Mx("0x55"),a),o[Mx("0x74")].registerCustomCallback("insertion",Mx("0x4f"),Mx("0x63"),c),o._suggestionFactory[Mx("0x3")](Mx("0x25"),Mx("0x4f"),"join",c),o[Mx("0x74")].registerCustomCallback(Mx("0x23"),Mx("0x79"),Mx("0x63"),l),o[Mx("0x74")][Mx("0x3")](Mx("0x25"),Mx("0x79"),Mx("0x63"),l)}[Mx("0x60")](){const t=this[Mx("0x26")],e=t[Mx("0x6f")][Mx("0x1f")][Mx("0x31")];return(n,o)=>{t[Mx("0x6f")][Mx("0x52")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s[Mx("0x1a")](a);if(Mx("0x13")==c[Mx("0x29")][Mx("0x41")])return;const l=Array[Mx("0x16")](e.getRanges())[Mx("0xb")]((t=>i.LiveRange[Mx("0x30")](t)));s[Mx("0x1")](c),t[Mx("0x80")][Mx("0x2e")](r)[Mx("0x4e")](),x[Mx("0x2f")]({forceDefaultExecution:!0}),t[Mx("0xd")](r,...x);const u=l[Mx("0x0")]((t=>"$graveyard"!=t[Mx("0x29")][Mx("0x41")]));u[Mx("0x78")]>0&&s[Mx("0x1")](u);for(const t of l)t[Mx("0x18")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x26")].plugins[Mx("0x2e")](Mx("0x22"));let n=Number.MAX_SAFE_INTEGER,o=Number[Mx("0x28")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x28")];for(const i of t){if(Mx("0x13")==i.root[Mx("0x41")])continue;const{row:t,column:x}=e[Mx("0x64")](i),a=i[Mx("0x33")](Mx("0x7"))?i[Mx("0x37")](Mx("0x7"))-1:0,c=i[Mx("0x33")](Mx("0x6c"))?i.getAttribute(Mx("0x6c"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x4c")](){const t=this[Mx("0x26")],e=t[Mx("0x27")][Mx("0x2e")]("TrackChangesEditing"),n=t.plugins.get(Mx("0x22"));t.model[Mx("0x1f")].on(Mx("0x7b"),(()=>{const n=Array.from(t[Mx("0x6f")].document[Mx("0x57")][Mx("0xe")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x4b")](t);if(Mx("0x49")!=n)continue;if(null!=o[Mx("0x5a")])continue;const i=e[Mx("0x43")](s);this[Mx("0x5d")][Mx("0x2a")](r)&&this[Mx("0x35")].add(i)}}),{priority:Mx("0x62")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x8")](t),r=t[Mx("0x77")]("table"),i=n[Mx("0x64")](t);for(const e of this._tableSuggestions){const n=e[Mx("0x32")],x=n.startsWith(Mx("0x65")),a=n[Mx("0x1b")](x?10:5),c=a.toLowerCase(),l=c[Mx("0x1b")](0,3)+Mx("0x50"),u=Mx("0x5f")+a,d=Mx("0x2c")+a;if(!e[Mx("0x6e")])continue;if(r!=e[Mx("0xc")]().start[Mx("0x77")](Mx("0x58")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x37")](l)-1:0,m=this[Mx("0x10")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x6f")][Mx("0x1f")][Mx("0x66")]((e=>{let n=!1;for(const s of t.model.document[Mx("0x57")].getChanges())if(Mx("0x3d")==s[Mx("0x5e")])if("tableRow"==s.name)for(const t of s[Mx("0x5c")].nodeAfter[Mx("0x42")]())n=n||o(t,e);else Mx("0x38")==s[Mx("0x56")]&&(n=n||o(s.position[Mx("0x44")],e));return n}))}[Mx("0x10")](t){return this[Mx("0x7c")](t[Mx("0x75")]().map((t=>t[Mx("0x20")][Mx("0x44")])))}}function Ox(t){return Array[Mx("0x16")](new Set(t)[Mx("0x5b")]())}const Fx=["refresh","length","editor","TableEditing","insertion","isInContent","type","_areMergableCells","mergeTableCellDown","getCellLocation","createTableWalker","afterInit","mergeTableCellUp","low","has","containsRange","highest","getAncestors","markBlockFormat","value","set:isEnabled","author","enableCommand","from","registerCustomCallback","forceDefaultExecution","change","_areSelectedCellsMergable","execute","detach","deletion","commandName","tableCell","rootName","*Split cell:* horizontally","format","trackChanges","accept","size","get","cell","splitTableCellHorizontally","table","*Merge cells*","direction","getFirstPosition","root","requires","document","horizontally","return","registerDescriptionCallback","_descriptionFactory","formatBlock","getSelectionAffectedTableCells","mergeTableCells","TrackChangesEditing","find","_suggestionFactory","getRanges","selection","_isForcedDefaultExecutionBlock","map","push","mergeTableCellRight","splitTableCellVertically","model","findAncestor","*Split cell:* vertically","markMultiRangeBlockFormat","add","createRangeOn","locale","mergeTableCellLeft","getSuggestions","stop","plugins","subType","element","$graveyard","TableUtils","commands","isEnabled","_acceptFormatSuggestionCallbackFactory"];var Px,Dx;Px=Fx,Dx=287,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0xc")](){return[wx]}[Bx("0x3c")](){const t=this[Bx("0x33")],e=t.model[Bx("0xd")].selection,n=t[Bx("0x25")];if(!t[Bx("0x29")][Bx("0x3f")](Bx("0x34")))return;const o=t.plugins.get("TrackChangesEditing"),s=t.plugins[Bx("0x4")](Bx("0x2d")),r=t[Bx("0x29")][Bx("0x4")](wx);r._tablePostFixingSubtypes[Bx("0x1c")]("mergeTableCells"),o.enableCommand(Bx("0x14"),(()=>{const e=s[Bx("0x13")](t.model[Bx("0xd")][Bx("0x19")]);t.model[Bx("0x4b")]((()=>{o[Bx("0x22")](e,{commandName:Bx("0x14"),commandParams:[]},[],Bx("0x14"))}))})),t[Bx("0x2e")][Bx("0x4")]("mergeTableCells").on(Bx("0x4d"),((e,n)=>{t[Bx("0x2e")][Bx("0x4")](Bx("0x1"))[Bx("0x44")]&&(n.length>0&&n[n[Bx("0x32")]-1]&&n[n[Bx("0x32")]-1][Bx("0x4a")]||o[Bx("0x1a")]||this[Bx("0x4c")]()||e[Bx("0x28")]())}),{priority:Bx("0x41")});for(const e of["mergeTableCellUp","mergeTableCellRight",Bx("0x39"),"mergeTableCellLeft"]){const n=t.commands[Bx("0x4")](e);o[Bx("0x47")](e,(()=>{const e=t[Bx("0x1f")][Bx("0xd")].selection[Bx("0xa")]()[Bx("0x42")]()[Bx("0x16")]((t=>t.is(Bx("0x2b"),Bx("0x51")))),s=n[Bx("0x44")];t[Bx("0x1f")].change((()=>{o[Bx("0x22")]([e,s],{commandName:Bx("0x14"),commandParams:[]},[],Bx("0x14"))}))}))}for(const e of["splitTableCellVertically",Bx("0x6")]){const n=t[Bx("0x2e")][Bx("0x4")](e);o[Bx("0x47")](e,(()=>{const r=s.getSelectionAffectedTableCells(t.model[Bx("0xd")][Bx("0x19")])[0],i=r[Bx("0x20")](Bx("0x7")),{column:x,row:a}=s[Bx("0x3a")](r);let c=[];if(Bx("0xe")==n[Bx("0x9")]){const t=s[Bx("0x3b")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x48")](t)[Bx("0x1b")]((t=>t.cell))}else{const t=s[Bx("0x3b")](i,{column:x,includeAllSlots:!0});c=Array.from(t).map((t=>t[Bx("0x5")]))}t[Bx("0x1f")][Bx("0x4b")]((t=>{o[Bx("0x43")](t[Bx("0x24")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x11")][Bx("0x10")]((t=>{const{data:e}=t;if(e)return Bx("0x14")==e.commandName?{type:Bx("0x0"),content:Yo(n,Bx("0x8"))}:void 0})),o[Bx("0x11")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x50")]?{type:"format",content:Yo(n,Bx("0x21"))}:Bx("0x6")==e[Bx("0x50")]?{type:Bx("0x0"),content:Yo(n,Bx("0x53"))}:void 0}));const x=r[Bx("0x30")]();for(const t of[Bx("0x3d"),Bx("0x1d"),Bx("0x39"),"mergeTableCellLeft"])o._suggestionFactory[Bx("0x49")]("formatBlock",t,Bx("0x2"),x);for(const t of[Bx("0x1e"),Bx("0x6")])o[Bx("0x17")].registerCustomCallback(Bx("0x12"),t,"accept",x);o._suggestionFactory[Bx("0x49")](Bx("0x12"),"mergeTableCells",Bx("0x2"),(n=>{t.model[Bx("0x4b")]((o=>{const s=Array[Bx("0x48")](e.getRanges())[Bx("0x1b")]((t=>i.LiveRange.fromRange(t)));o.setSelection(n),t.commands[Bx("0x4")](Bx("0x14"))[Bx("0x31")](),t[Bx("0x4d")](Bx("0x14"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x2c")!=t[Bx("0xb")][Bx("0x52")]));r.length>0&&o.setSelection(r);for(const t of s)t[Bx("0x4e")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",Bx("0x26"),Bx("0x1d")]){const n=t[Bx("0x2e")].get(e);n.on(Bx("0x45"),((e,o,s)=>{if(s){const o=t[Bx("0x1f")][Bx("0xd")][Bx("0x19")][Bx("0xa")]()[Bx("0x42")]()[Bx("0x16")]((t=>t.is(Bx("0x2b"),Bx("0x51"))));this[Bx("0x38")](n[Bx("0x44")],o)||(e[Bx("0xf")]=!1,e[Bx("0x28")]())}}),{priority:Bx("0x3e")})}}[Bx("0x4c")](){const t=this[Bx("0x33")][Bx("0x2e")][Bx("0x4")](Bx("0x14")),e=this[Bx("0x33")][Bx("0x29")][Bx("0x4")](Bx("0x2d"));if(!t[Bx("0x2f")])return!1;const n=e[Bx("0x13")](this[Bx("0x33")][Bx("0x1f")].document[Bx("0x19")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x38")](t,e))return!1;return!0}[Bx("0x38")](t,e){const n=this[Bx("0x33")][Bx("0x29")].get(Bx("0x15")),o=this[Bx("0x33")].model[Bx("0x24")](t),s=this.editor[Bx("0x1f")][Bx("0x24")](e),r=new Set,i=new Set;for(const t of n[Bx("0x27")]())if((Bx("0x35")==t[Bx("0x37")]||Bx("0x4f")==t[Bx("0x37")]||Bx("0x14")==t[Bx("0x2a")])&&t[Bx("0x36")])for(const e of t[Bx("0x18")]())e[Bx("0x40")](o,!0)&&r[Bx("0x23")](t[Bx("0x37")]+":"+t[Bx("0x46")].id),e.containsRange(s,!0)&&i.add(t[Bx("0x37")]+":"+t.author.id);if(r.size!=i[Bx("0x3")])return!1;for(const t of r)if(!i[Bx("0x3f")](t))return!1;return!0}}const Ux=["findAncestor","getSelectionAffectedTableCells","options","_splitMarkerName","commandName","registerCustomCallback","accept","consume","_acceptFormatSuggestionCallbackFactory","table","FORMAT_REGULAR_COLUMN","name","activeMarkers","value","removeMarker:suggestion","FORMAT_HEADER_ROW","editor","getSuggestion","getCellLocation","end","selection","consumable","*Format:* %0","has","removeAttribute","showSuggestionHighlights","data-suggestion","setTableRowHeader","nodeAfter","getColumnIndexes","first","removeClass","_suggestionFactory","locale","formatBlock","index","mapper","downcastDispatcher","createPositionAfter","TableUtils","editing","addMarker:suggestion","stop","format","setTableColumnHeader","writer","markerRange","markBlockFormat","createPositionBefore","createRange","start","childCount","highest","unbindElementFromMarkerName","nodeBefore","requires","cell","getAttribute","markerName","commandParams","ck-suggestion-marker--active","enableCommand","forceValue","document","plugins","setAttribute","getRowIndexes","includes","change","registerDescriptionCallback","model","data","_descriptionFactory","addClass","get","headingRows","getChild","parent","TrackChangesEditing","createTableWalker"];var Gx,Hx;Gx=Ux,Hx=109,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x1a")](){return[wx]}afterInit(){const t=this[Wx("0x43")];if(!t[Wx("0x23")][Wx("0x4a")]("TableEditing"))return;const e=t[Wx("0x4")],n=t[Wx("0x23")].get(Wx("0x31")),o=t[Wx("0x23")][Wx("0x2d")](Wx("0xa")),s=t[Wx("0x23")][Wx("0x2d")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0x36")](r[Wx("0x1d")]),c=n[Wx("0x44")](a);if(!c[Wx("0x2a")]||Wx("0xf")!=c[Wx("0x2a")][Wx("0x37")])return;if(r.item)return void s[Wx("0xd")]();if(!i[Wx("0x48")][Wx("0x3a")](r[Wx("0x11")],s[Wx("0x3e")]))return;const l=r.markerRange[Wx("0x15")][Wx("0x4f")],u=r[Wx("0x11")][Wx("0x46")][Wx("0x19")],d=l[Wx("0x30")][Wx("0x30")],{column:g}=o[Wx("0x45")](l),{column:m}=o[Wx("0x45")](u);for(let s=g;s<=m;s++){const c=o[Wx("0x32")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x1b")],c=i[Wx("0x7")].toViewElement(s);i[Wx("0x10")][Wx("0x2c")]("ck-suggestion-marker-"+x,c),e&&i.writer[Wx("0x24")](Wx("0x4d"),a,c),i.mapper.bindElementToMarker(c,r.markerName),t&&(n[Wx("0x3f")][Wx("0x26")](r[Wx("0x1d")])?i.writer[Wx("0x2c")]("ck-suggestion-marker--active",c):i[Wx("0x10")][Wx("0x2")](Wx("0x1f"),c))}}}}n[Wx("0x20")](Wx("0x4e"),((e,s)=>{const r=o[Wx("0x34")](t[Wx("0x29")][Wx("0x22")][Wx("0x47")]),i=o[Wx("0x25")](r),x=r[0][Wx("0x33")](Wx("0x3c")),a=x[Wx("0x1c")](Wx("0x2e"))||0,c=s&&null!==s.forceValue?s[Wx("0x21")]:!t.commands.get(Wx("0x4e"))[Wx("0x40")],l=c?i.last:i[Wx("0x1")],u=x[Wx("0x2f")](l);let d;if(c){const e=x[Wx("0x2f")](a);if(u[Wx("0x6")]<e[Wx("0x6")])return;d=t.model.createRange(t[Wx("0x29")].createPositionBefore(e.getChild(0)),t.model.createPositionAfter(u[Wx("0x2f")](u[Wx("0x16")]-1)))}else{const e=x[Wx("0x2f")](a-1);if(!e)return;d=t[Wx("0x29")].createRange(t[Wx("0x29")].createPositionBefore(u[Wx("0x2f")](0)),t[Wx("0x29")][Wx("0x9")](e[Wx("0x2f")](e.childCount-1)))}t[Wx("0x29")][Wx("0x27")]((()=>{n[Wx("0x12")](d,{commandName:Wx("0x4e"),commandParams:[{forceValue:c}]},[],Wx("0x4e"))}))})),n.enableCommand(Wx("0xf"),((e,o)=>{const s=t[Wx("0x23")][Wx("0x2d")]("TableUtils"),r=s[Wx("0x34")](t[Wx("0x29")][Wx("0x22")][Wx("0x47")]),i=s[Wx("0x0")](r),x=r[0][Wx("0x33")](Wx("0x3c")),a=x[Wx("0x1c")]("headingColumns")||0,c=o&&null!==o.forceValue?o[Wx("0x21")]:!t.commands[Wx("0x2d")]("setTableColumnHeader").value;let l;const u=x.getChild(0),d=c?i.last:i[Wx("0x1")],g=s[Wx("0x32")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array.from(g)[0][Wx("0x1b")];if(c){const e=u[Wx("0x2f")](a);if(m.isBefore(e))return;l=t.model[Wx("0x14")](t.model[Wx("0x13")](e),t[Wx("0x29")][Wx("0x9")](m))}else{const e=u[Wx("0x2f")](a-1);if(!e)return;l=t[Wx("0x29")][Wx("0x14")](t[Wx("0x29")][Wx("0x13")](m),t[Wx("0x29")][Wx("0x9")](e))}t[Wx("0x29")][Wx("0x27")]((()=>{n[Wx("0x12")](l,{commandName:Wx("0xf"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Wx("0xb")][Wx("0x8")].on(Wx("0xc"),r(),{priority:Wx("0x17")}),t[Wx("0x2a")][Wx("0x8")].on(Wx("0xc"),((t,e,n)=>{n[Wx("0x35")][Wx("0x4c")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0x17")}),t[Wx("0xb")][Wx("0x8")].on(Wx("0x41"),((t,e,o)=>{const{type:s,id:r}=n[Wx("0x36")](e[Wx("0x1d")]),i=n.getSuggestion(r);if(!i[Wx("0x2a")]||Wx("0xf")!=i[Wx("0x2a")][Wx("0x37")])return;const x=o[Wx("0x7")].markerNameToElements(e[Wx("0x1d")]);if(x)for(const t of x)o[Wx("0x10")][Wx("0x2")]("ck-suggestion-marker-"+s,t),o[Wx("0x10")].removeClass(Wx("0x1f"),t),o[Wx("0x10")][Wx("0x4b")](Wx("0x4d"),t),o.mapper[Wx("0x18")](t,e[Wx("0x1d")])}),{priority:Wx("0x17")}),n[Wx("0x2b")][Wx("0x28")]((t=>{const{data:n}=t;if(n){if(Wx("0x4e")==n[Wx("0x37")]){const t=n[Wx("0x1e")][0][Wx("0x21")];return o(Yo(e,t?Wx("0x42"):"FORMAT_REGULAR_ROW"))}if(Wx("0xf")==n.commandName){const t=n[Wx("0x1e")][0][Wx("0x21")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":Wx("0x3d")))}}function o(t){return{type:Wx("0xe"),content:Yo(e,Wx("0x49"),t)}}}));const i=s[Wx("0x3b")]();n._suggestionFactory[Wx("0x38")](Wx("0x5"),Wx("0x4e"),Wx("0x39"),i),n[Wx("0x3")][Wx("0x38")](Wx("0x5"),Wx("0xf"),"accept",i)}}const Vx=["document","editing","isInContent","createRangeOn","insertion","root","clipboardOutput","length","options","row","Users","newRange","markerToHighlight","reduce","deletion","model","selection","every","join","accept","ck-suggestion-marker","subType","_getCoordsForCells","endColumn","differ","getSuggestions","getAllAdjacentSuggestions","tableCellBorderWidth","columnInsertionIndexes","documentSelection","registerPostFixer","tablePasteColumn","first","name","return","end","_suggestionFactory","view","fromEntries","tablePasteCell","type","setAttribute","table","removeColumns","editor","getChangedMarkers","change","for","element","insertColumns","getRowIndexes","wrap","commands","startsWith","author","suggestion:formatBlock:tablePasteCell","columnInsertionRanges","position","from","redo","has","*Replace table cells*","oldRange","nodeAfter","set","insertRows","createRange","createRangeIn","attributes","last","suggestionLoaded","formatBlock","register","isEmpty","get","value","getTableIfOnlyTableInContent","stop","getAttributes","ck-suggestion-marker--active","hasSuggestion","insert","containsRange","discard","insertContent","previous","updateMarker","markerName","nextSibling","suggestion","listenTo","deletionRanges","unwrap","_replaceTableSlotCell","getSelectionAffectedTableCells","columns","tableCellSuggestion","removeMarker","showSuggestionHighlights","conversion","elementToElement","push","high","findAncestor","endRow","getChildren","markMultiRangeDeletion","filter","insertionRanges","paragraph","markerAttributes","fill","move","_descriptionFactory","suggestion-td","trackChanges","previousSibling","_tablePostFixingSubtypes","TableClipboard","remove","$graveyard","getSuggestion","entries","getChild","map","tableCellBorderColor","some","markMultiRangeInsertion","column","_splitMarkerName","getSuggestionCallback","rowInsertionIndexes","tablePaste","getMarkers","tablePasteChainId","getContainedElement","createTableWalker","createElement","getRange","plugins","includes","find","add","tablePasteRow","ck-suggestion-marker-insertion","cell","cells","editingDowncast","forceDefaultExecution","low","registerCustomCallback","markers","markMultiRangeBlockFormat","getChanges"];var Kx,qx;Kx=Vx,qx=476,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0xd"),Xx("0x6f"),"tableCellBorderStyle","tableCellHorizontalAlignment","tableCellVerticalAlignment","tableCellBackgroundColor","tableCellPadding"],Jx=Object[Xx("0x18")]($x[Xx("0x6e")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this.editor;if(!t[Xx("0x7d")][Xx("0x2e")](Xx("0x68")))return;const n=t[Xx("0x7d")][Xx("0x3c")]("TrackChangesEditing"),o=t.plugins.get("TableUtils"),s=t[Xx("0x7d")][Xx("0x3c")](wx),r=t[Xx("0x7d")][Xx("0x3c")]("TableClipboard");s[Xx("0x67")].push("tablePasteRow",Xx("0x11")),t[Xx("0x1")].schema[Xx("0x3a")](Xx("0x52"),{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t.conversion[Xx("0x56")]({model:"tableCellSuggestion",view:Xx("0x64")});let i=null;t[Xx("0x1")].on(Xx("0x46"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x93")]-1];l&&l[Xx("0x86")]||n._isForcedDefaultExecutionBlock||this[Xx("0x1e")][Xx("0x26")][Xx("0x3c")](Xx("0x65"))[Xx("0x3d")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0xf")))return!1;const r=s[Xx("0x3e")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x50")](n[Xx("0x8c")][Xx("0x2")]);if(!i[Xx("0x93")])return!1;const x=i[0][Xx("0x59")](Xx("0x1c")),a=o[Xx("0x24")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x12")],endRow:a[Xx("0x37")],startColumn:c.first,endColumn:c[Xx("0x37")]};return 1==i[Xx("0x93")]&&(l[Xx("0x5a")]+=o.getRows(r)-1,l[Xx("0x9")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x1")],o,r)&&(s[Xx("0x3f")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x1")][Xx("0x20")]((()=>{t.model[Xx("0x46")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x93")]&&n[Xx("0x71")](s,Xx("0x81"),{tablePasteChainId:o}),r.length&&n[Xx("0x71")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x93")]&&n[Xx("0x71")](a,Xx("0x76"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x93")]&&n[Xx("0x5c")](c,Xx("0x76"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x8a")](l[Xx("0x6e")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x19"),{tablePasteChainId:o});if(u){const e=u[Xx("0x77")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x1")][Xx("0x8f")](o),i=e[Xx("0x7f")]((t=>t[Xx("0x7c")]().isEqual(r)));i&&n[Xx("0x57")]([i[Xx("0x13")],s])}n.length&&u[Xx("0x1b")](Xx("0x60"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x58")]+10}),t.plugins[Xx("0x3c")](Xx("0x68")).on(Xx("0x4f"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x3f")]();const r=n[Xx("0x83")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x14")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x69")](r[Xx("0x6d")](0));for(const t of Array[Xx("0x2c")](x[Xx("0x5b")]()))s[Xx("0x43")](t,r,Xx("0x15"));const t=i[Xx("0x75")][Xx("0x7e")](n[Xx("0x95")]),e=i[Xx("0xe")][Xx("0x7e")](n[Xx("0x72")]);t||e||(l=s[Xx("0x35")](r))}else c&&!a&&(u=s[Xx("0x35")](r));else{const t=s[Xx("0x7b")](Xx("0x52")),e=s.createElement("tableCellSuggestion");s[Xx("0x25")](s[Xx("0x35")](r),e),s.insert(t,r,0);for(const e of Array[Xx("0x2c")](x.getChildren()))s[Xx("0x43")](e,t,Xx("0x15"));l=s[Xx("0x8f")](t),u=s[Xx("0x8f")](e)}const d=Array[Xx("0x2c")](x[Xx("0x40")]())[Xx("0x5d")]((([t])=>$x[Xx("0x7e")](t)));i[Xx("0x84")][Xx("0x57")]({element:r,attributes:d[Xx("0x93")]?Object[Xx("0x18")](d):null}),l&&i[Xx("0x5e")][Xx("0x57")](l),u&&i[Xx("0x4d")][Xx("0x57")](u)}),{priority:Xx("0x58")}),o.on(Xx("0x23"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x51")]||1;i[Xx("0xe")]=new Array(a)[Xx("0x61")](x)[Xx("0x6e")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x7a")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x2a")][Xx("0x57")](t[Xx("0x1")].createRangeOn(e))}),{priority:Xx("0x87")}),o.on(Xx("0x33"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x75")]=new Array(a)[Xx("0x61")](x)[Xx("0x6e")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x7a")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x57")](t[Xx("0x1")][Xx("0x8f")](e))}),{priority:Xx("0x87")}),n[Xx("0x63")].registerDescriptionCallback((e=>{if(e[Xx("0x7")]&&e.subType[Xx("0x27")](Xx("0x76")))return e[Xx("0x47")]?{}:{type:Xx("0x90"),content:Yo(t.locale,Xx("0x2f"))}}));const x=()=>{};for(const t of[Xx("0x76"),Xx("0x11"),Xx("0x81"),"tablePasteCell"])n[Xx("0x16")][Xx("0x88")]("insertion",t,Xx("0x4"),x),n._suggestionFactory.registerCustomCallback("deletion",t,Xx("0x4"),x);n._suggestionFactory[Xx("0x88")](Xx("0x39"),"tablePasteCell",Xx("0x45"),x),n[Xx("0x16")][Xx("0x88")](Xx("0x39"),"tablePasteCell","accept",((e,n,o)=>{const s=e[Xx("0x6e")]((t=>t[Xx("0x79")]()))[Xx("0x5d")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x84")])e&&r.set(t,e);else if(o&&o[Xx("0x60")])for(const[e,n]of Object[Xx("0x6c")](o[Xx("0x60")])){const o=t[Xx("0x1")][Xx("0x89")][Xx("0x3c")](e),s=o?o[Xx("0x7c")]()[Xx("0x79")]():null;s&&r[Xx("0x32")](s,n)}t[Xx("0x1")][Xx("0x20")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x16")][Xx("0x88")](e,"tablePaste",o,((s,r,i)=>{t.model.change((t=>{const x=[];for(const t of s){const e=t.start[Xx("0x31")];e.is(Xx("0x22"),Xx("0x52"))&&x[Xx("0x57")](e)}n._suggestionFactory[Xx("0x74")](e,null,o)(s,r,i);for(const e of x)Xx("0x6a")!=e[Xx("0x91")].rootName&&t[Xx("0x4e")](e)}))}))};a(Xx("0x90"),"accept"),a(Xx("0x90"),Xx("0x45")),a(Xx("0x0"),Xx("0x5")),a("deletion",Xx("0x45")),n[Xx("0x16")][Xx("0x88")](Xx("0x90"),"tablePasteRow",Xx("0x45"),(t=>{const e=t.map((t=>t[Xx("0x79")]())),n=e[0][Xx("0x59")](Xx("0x1c")),{minRow:r,maxRow:i}=s[Xx("0x8")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x16")][Xx("0x88")](Xx("0x90"),Xx("0x11"),"discard",(t=>{const e=t[Xx("0x6e")]((t=>t.getContainedElement())),n=e[0][Xx("0x59")](Xx("0x1c")),{minColumn:r,maxColumn:i}=s[Xx("0x8")](e);o[Xx("0x1d")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Xx("0x7")][Xx("0x27")]("tablePaste"))return;const o=e.attributes[Xx("0x78")],s=n[Xx("0xb")]()[Xx("0x5d")]((t=>t[Xx("0x8e")]&&t.attributes&&t[Xx("0x36")][Xx("0x78")]==o));s[Xx("0x93")]&&e[Xx("0xc")]().length!=s.length&&s[Xx("0x99")](((t,e)=>(t.next=e,e[Xx("0x47")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x73")](t[Xx("0x49")]),s=[Xx("0x6"),Xx("0x82")],r=n.activeMarkers[Xx("0x7e")](t.markerName);return r&&s.push(Xx("0x41")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x38"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:Xx("0x58")}),t[Xx("0x1")][Xx("0x8c")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x2c")](t.model[Xx("0x8c")][Xx("0xa")][Xx("0x1f")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(Xx("0x4b")!=o||"deletion"!=i||r[Xx("0x30")])continue;if(!n[Xx("0x42")](x))continue;const a=n[Xx("0x6b")](x).getRanges(),c=t.plugins[Xx("0x3c")]("Users").me;for(const t of n[Xx("0xb")]())if(t.isInContent&&t[Xx("0x28")]==c&&Xx("0x39")==t[Xx("0x1a")]&&Xx("0x19")==t[Xx("0x7")]&&t.getRanges()[Xx("0x3")]((t=>a[Xx("0x70")]((e=>e[Xx("0x44")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0x8e")]&&(n[Xx("0x45")](),e=!0)}return e})),t[Xx("0x1")][Xx("0x8c")].registerPostFixer((e=>{const o=t.commands.get(Xx("0x2d"));if(!o||!o._createdBatches[Xx("0x2e")](e.batch))return!1;let s=!1;const r=t[Xx("0x7d")][Xx("0x3c")](Xx("0x96")).me,i=t[Xx("0x1")][Xx("0x8c")][Xx("0xa")][Xx("0x8b")](),x=Array.from(t[Xx("0x1")][Xx("0x8c")].differ[Xx("0x1f")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Xx("0x4b")==o&&Xx("0x76")==s&&i==r.id&&!e[Xx("0x30")]}));for(const t of i){if(Xx("0x43")!=t[Xx("0x1a")]||"tableCellSuggestion"!=t[Xx("0x13")]||1!=t[Xx("0x93")])continue;const n=e[Xx("0x34")](t[Xx("0x2b")],t.position.getShiftedBy(1));if(!x[Xx("0x7f")]((({data:t})=>t.newRange.isEqual(n))))for(const{name:t,data:o}of x)if(n[Xx("0x44")](o[Xx("0x97")])){e[Xx("0x48")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x1")].document[Xx("0x10")]((e=>{let o=!1;const s=t[Xx("0x7d")][Xx("0x3c")]("Users").me,r=n.getSuggestions()[Xx("0x5d")]((t=>t.isInContent&&t[Xx("0x28")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x7")])for(const e of t[Xx("0x77")]()){const n=e[Xx("0x7c")]()[Xx("0x79")]();if(n)if(n.is(Xx("0x22"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x53")](e[Xx("0x13")]),i[Xx("0x80")](n),o=!0;const s=n[Xx("0x4a")],r=n[Xx("0x66")],a=s&&s.is(Xx("0x22"),Xx("0x52")),c=r&&r.is(Xx("0x22"),"tableCellSuggestion");a&&!i[Xx("0x2e")](s)&&x[Xx("0x80")](s),c&&!i[Xx("0x2e")](r)&&x[Xx("0x80")](r)}else n.is(Xx("0x22"),Xx("0x5f"))&&n[Xx("0x3b")]&&(t[Xx("0x53")](e[Xx("0x13")]),o=!0)}else if(Xx("0x19")==t[Xx("0x7")]){if(!t[Xx("0x36")]||!t[Xx("0x36")].tablePasteChainId)continue;const e=t[Xx("0x36")][Xx("0x60")];if(e&&Object.keys(e).length)continue;const n=t[Xx("0x36")][Xx("0x78")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x7")]&&e[Xx("0x7")][Xx("0x27")]("tablePaste")){if(!e[Xx("0x36")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x78")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x69")](t);for(const t of x)e.unwrap(t);return o})),t[Xx("0x55")].for(Xx("0x85"))[Xx("0x98")]({model:Xx("0x29"),view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[Xx("0x21")]("dataDowncast")[Xx("0x98")]({model:Xx("0x29"),view:(t,e)=>e[Xx("0x94")][Xx("0x54")]?l(t,!1):null,converterPriority:Xx("0x58")});const u=t[Xx("0x8d")][Xx("0x17")];this[Xx("0x4c")](u.document,Xx("0x92"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e.content).getItems())t.is(Xx("0x22"),Xx("0x64"))&&n[Xx("0x57")](t);u.change((t=>{for(const e of n)t[Xx("0x62")](t[Xx("0x35")](e),t.createPositionBefore(e)),t[Xx("0x69")](e)}))}))}}function Zx(t){if(t[Xx("0x3b")])return!0;const e=t[Xx("0x6d")](0);return e.is("element",Xx("0x5f"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x7a")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["resizeTable","editor","registerCustomCallback","tableWidth","getTableColumnsWidths","accept","formatBlock","change","_descriptionFactory","markBlockFormat","subType","discard","commandParams","document","getColumnGroupElement","handleResizeTableWidthCommand","resizeTableWidth","registerDescriptionCallback","bind","handleSuggestionDescription","getSuggestionCallback","get","TableColumnResizeEditing","resizeColumnWidths","*Format:* resize table","has","enableCommand","formatGroupId","locale","plugins","_suggestionFactory","getContainedElement","Users","getSuggestions","format","data"];var ea,na;ea=ta,na=183,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x22")][oa("0x1a")][oa("0x16")](oa("0x13")))return;const t=this[oa("0x22")][oa("0x1a")][oa("0x12")]("TrackChangesEditing");t[oa("0x17")]("resizeTableWidth",this[oa("0xc")][oa("0xf")](this)),t[oa("0x17")](oa("0x14"),this.handleResizeTableWidthCommand[oa("0xf")](this)),t[oa("0x1b")][oa("0x23")]("formatBlock",oa("0x21"),oa("0x2"),t[oa("0x1b")][oa("0x11")](oa("0x3"),null,oa("0x8"))),t[oa("0x1b")][oa("0x23")]("formatBlock",oa("0x21"),oa("0x8"),t._suggestionFactory[oa("0x11")](oa("0x3"),null,oa("0x2"))),t[oa("0x5")][oa("0xe")](this[oa("0x10")][oa("0xf")](this))}[oa("0xc")](t,e){const n=this.editor.plugins[oa("0x12")]("TrackChangesEditing"),o=this[oa("0x22")].plugins.get(oa("0x13")),s=e.table||this[oa("0x22")].model[oa("0xa")].selection.getSelectedElement();this[oa("0x22")].model[oa("0x4")]((()=>{const r=o[oa("0xb")](s);let i=r?o[oa("0x1")](r):null,x=s.getAttribute(oa("0x0"))||null;const a=e[oa("0x0")]||x,c=e.columnWidths||i,l=this[oa("0x22")].plugins.get(oa("0x1d")).me;for(const t of n[oa("0x1e")]()){const e=t[oa("0x1c")]();if(oa("0x21")===t[oa("0x7")]&&e===s){t.author!==l&&t[oa("0x8")]();const e=t[oa("0x20")][oa("0x9")];x=e[0][oa("0x0")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x6")](s,{commandName:oa("0xd"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x21")},[],oa("0x21"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x21")===e[oa("0x18")]){const t=oa("0x15");return{type:oa("0x1f"),content:Yo(this.editor[oa("0x19")],t)}}}}const ra=["Template","has","plugins","TrackChangesEditing","get","editor","afterInit"];var ia,xa;ia=ra,xa=137,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x2")](){const t=this[aa("0x1")];t[aa("0x5")][aa("0x4")](aa("0x3"))&&t.plugins[aa("0x0")](aa("0x6")).enableCommand("insertTemplate")}}const la=["locale","commands","editor","afterInit","enableCommand","plugins","TrackChangesEditing","get","tableOfContents","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS"];var ua,da;ua=la,da=332,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this[ga("0x0")];if(!t[ga("0xa")][ga("0x5")]("insertTableOfContents"))return;t.plugins[ga("0x5")](ga("0x4"))[ga("0x2")]("insertTableOfContents");const e=t[ga("0x3")][ga("0x5")](ga("0x4")),n=t[ga("0x9")];e._descriptionFactory[ga("0x7")](ga("0x6"),(t=>Yo(n,ga("0x8"),t)))}}const fa=["forward","title-content","ELEMENT_TITLE","registerPostFixer","TrackChangesEditing","plugins","schema","isTouching","locale","Title","isEqual","suggestion","has","model","getNearestSelectionRange","getChangedMarkers","isCollapsed","element","document","start","get","end","differ","nodeBefore","registerElementLabel","removeMarker"];var ha,pa;ha=fa,pa=285,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this.editor;if(!t[ba("0x6")][ba("0xd")](ba("0xa")))return;const e=t[ba("0x6")][ba("0x15")](ba("0x5"));e._descriptionFactory[ba("0x19")](ba("0x2"),(()=>Yo(t[ba("0x9")],ba("0x3")))),t[ba("0xe")][ba("0x13")][ba("0x4")]((n=>{let o=!1;const s=Array.from(t.model[ba("0x13")][ba("0x17")][ba("0x10")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0xc")!==s||!i.newRange)continue;const x=i.newRange,a=x.end[ba("0x18")];if(!a||!a.is(ba("0x12"),ba("0x2")))continue;if(!x[ba("0x14")][ba("0x8")](x[ba("0x16")]))continue;const c=t.model[ba("0x7")][ba("0xf")](x[ba("0x16")],ba("0x1"));if(c&&c[ba("0x11")]){const t=n.createRange(x[ba("0x14")],c[ba("0x14")]);t[ba("0xb")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x0")](r),o=!0)}return o}))}}const _a=["UndoEditing","undo","redo","editor","get","afterInit","plugins","has","enableCommand"];var Ta,Ca;Ta=_a,Ca=404,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x6")](){const t=this[ya("0x4")],e=t[ya("0x7")][ya("0x5")]("TrackChangesEditing");t.plugins[ya("0x8")](ya("0x1"))&&(e[ya("0x0")](ya("0x2")),e[ya("0x0")](ya("0x3")))}}const Aa=["editor","toggleTableCaption","enableCommand","TableCaptionEditing","requires","has","afterInit"];var va,Ra;va=Aa,Ra=369,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x6")](){return[wx]}[Sa("0x1")](){const t=this[Sa("0x2")];t.plugins[Sa("0x0")](Sa("0x5"))&&t.plugins.get("TrackChangesEditing")[Sa("0x4")](Sa("0x3"))}}const La=["handleListStartCommand","locale","listReversed","DocumentListPropertiesEditing","toUpperCase","handleListReversedCommand","*Change to:* %0","commandName","enableCommand","handleListStyleCommand","config","replace","isListItemBlock","editor","change","afterInit","bind","plugins","format","isFirstBlockOfListItem","styles","_getTranslationKeyForListStyle","_getSuggestionBlocks","numbered","*Format:* set order to regular","reversed","listType","getAttribute","commandParams","type","get","selection","DocumentListUtils","listStart","_getSuggestionBlocksForListStyle","from","TrackChangesEditing","markMultiRangeBlockFormat","push","handleDescriptions","getSelectedBlocks","document","listStyle","*Format:* set start index to %0","getListTypeFromListStyleType","model","expandListBlocksToCompleteList","length"];var Na,Ma;Na=La,Ma=292,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0xb")](){if(!this[wa("0x9")][wa("0xd")].has(wa("0x2f")))return;const t=this[wa("0x9")][wa("0x6")][wa("0x1a")]("list.properties"),e=this[wa("0x9")][wa("0xd")][wa("0x1a")](wa("0x20"));t[wa("0x10")]&&e.enableCommand(wa("0x26"),this[wa("0x5")][wa("0xc")](this)),t[wa("0x15")]&&e[wa("0x4")](wa("0x2e"),this.handleListReversedCommand.bind(this)),t.startIndex&&e[wa("0x4")](wa("0x1d"),this[wa("0x2c")][wa("0xc")](this)),e._descriptionFactory.registerDescriptionCallback(this[wa("0x23")].bind(this))}[wa("0x5")](t,e={}){const n=this[wa("0x9")][wa("0xd")].get(wa("0x20")),o=this[wa("0x1e")]();this.editor.model[wa("0xa")]((()=>{n[wa("0x21")](o,{commandName:wa("0x26"),commandParams:[{type:e[wa("0x19")]}],formatGroupId:"listStyle"})}))}[wa("0x1")](t,e={}){const n=this[wa("0x9")][wa("0xd")][wa("0x1a")](wa("0x20")),o=this.editor.plugins[wa("0x1a")](wa("0x1c")),s=this._getSuggestionBlocks((t=>o[wa("0x8")](t)&&wa("0x13")===t.getAttribute(wa("0x16"))));null!==s&&this[wa("0x9")][wa("0x29")].change((()=>{n[wa("0x21")](s,{commandName:wa("0x2e"),commandParams:[{reversed:e[wa("0x15")]}],formatGroupId:wa("0x2e")})}))}[wa("0x2c")](t,e={}){const n=this[wa("0x9")][wa("0xd")][wa("0x1a")](wa("0x20")),o=this[wa("0x9")][wa("0xd")].get(wa("0x1c")),s=this[wa("0x12")]((t=>o[wa("0x8")](t)&&wa("0x13")===t[wa("0x17")](wa("0x16"))));null!==s&&this.editor[wa("0x29")][wa("0xa")]((()=>{n[wa("0x21")](s,{commandName:wa("0x1d"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wa("0x1d")})}))}handleDescriptions(t){const e=this[wa("0x9")][wa("0x2d")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x3")]){case wa("0x26"):o=wa("0x2"),s={type:wa("0xe"),content:Yo(e,o,Yo(e,this[wa("0x11")](n[wa("0x18")][0].type)))};break;case"listReversed":o=n.commandParams[0].reversed?"*Format:* set order to reversed":wa("0x14"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wa("0x27"),s={type:wa("0xe"),content:Yo(e,o,n[wa("0x18")][0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){const t=this.editor.plugins[wa("0x1a")]("DocumentListUtils");let e=Array[wa("0x1f")](this[wa("0x9")].model[wa("0x25")][wa("0x1b")][wa("0x24")]());return e[wa("0x22")](...t[wa("0x2a")](e)),e=[...new Set(e)],e}[wa("0x12")](t){const e=this[wa("0x9")][wa("0xd")][wa("0x1a")](wa("0x1c"));let n=Array[wa("0x1f")](this.editor.model.document[wa("0x1b")][wa("0x24")]()).filter(t);if(!n[wa("0x2b")])return null;n=e[wa("0x2a")](n);const o=[];for(const t of n)e[wa("0xf")](t)&&o[wa("0x22")](t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this.editor[wa("0xd")][wa("0x1a")]("DocumentListPropertiesUtils")[wa("0x28")](t)[wa("0x0")]()+"_LIST_"+t[wa("0x0")]()[wa("0x7")](/-/g,"_")}}const Fa=["removeAttribute","getFirstPosition","tableProperties","getAttribute","join","tableCellPadding","getSelectionAffectedTableCells","setAttribute","tableCellBorderStyle","registerCustomCallback","tableBackgroundColor","TrackChangesEditing","handleDiscardAction","tableCellBackgroundColor","tableCellHeight","table","_suggestionFactory","tableCellHorizontalAlignment","*Format:* change table cell properties","markBlockFormat","TablePropertiesEditing","_getSuggestion","getSuggestionCallback","tableBorderStyle","enableCommand","tableBorderWidth","editor","tableCellVerticalAlignment","has","tableBorderColor","handleSuggestionDescription","*Format:* change table properties","TrackChangesTableProperties","tableAlignment","plugins","getSuggestions","commandParams","discard","TableUtils","get","selection","format","data","registerDescriptionCallback","subType","_descriptionFactory","tableWidth","_handlePropertyChange","pluginName","document","formatBlock","tableCellProperties","getContainedElement","accept","model"];var Pa,Da;Pa=Fa,Da=358,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x1d")]=[Ba("0x1"),Ba("0x32"),Ba("0x34"),Ba("0x5"),Ba("0x12"),"tableHeight",Ba("0x25")],this[Ba("0x17")]=["tableCellBorderColor",Ba("0x23"),"tableCellBorderWidth",Ba("0x20"),"tableCellWidth",Ba("0x29"),Ba("0x28"),Ba("0x2c"),Ba("0x36")]}static get[Ba("0x14")](){return Ba("0x4")}afterInit(){const t=this[Ba("0x35")][Ba("0x6")][Ba("0xb")](Ba("0x26"));if(this.editor[Ba("0x6")][Ba("0x0")](Ba("0x2f"))){for(const e of this[Ba("0x1d")])t[Ba("0x33")](e,((t,n)=>{const o=this.editor[Ba("0x1a")][Ba("0x15")].selection[Ba("0x1c")]().findAncestor(Ba("0x2a"));this._handlePropertyChange(e,[o],this.tableProperties,Ba("0x1d"),t,n)}));t[Ba("0x2b")][Ba("0x24")]("formatBlock","tableProperties","accept",t[Ba("0x2b")][Ba("0x31")](Ba("0x16"),null,Ba("0x9"))),t[Ba("0x2b")][Ba("0x24")](Ba("0x16"),"tableProperties","discard",((t,e)=>this[Ba("0x27")](this.tableProperties,t,e))),t[Ba("0x2b")][Ba("0x24")]("formatBlock","tableProperties",Ba("0x1f"),(()=>!1))}if(this[Ba("0x35")][Ba("0x6")][Ba("0x0")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x17")])t[Ba("0x33")](e,((t,n)=>{const o=this[Ba("0x35")][Ba("0x6")][Ba("0xb")](Ba("0xa"))[Ba("0x21")](this[Ba("0x35")][Ba("0x1a")][Ba("0x15")][Ba("0xc")]);this[Ba("0x13")](e,o,this.tableCellProperties,Ba("0x17"),t,n)}));t[Ba("0x2b")][Ba("0x24")](Ba("0x16"),"tableCellProperties",Ba("0x19"),t[Ba("0x2b")][Ba("0x31")](Ba("0x16"),null,Ba("0x9"))),t[Ba("0x2b")][Ba("0x24")](Ba("0x16"),Ba("0x17"),Ba("0x9"),((t,e)=>this[Ba("0x27")](this.tableCellProperties,t,e))),t[Ba("0x2b")][Ba("0x24")](Ba("0x16"),"tableCellProperties",Ba("0x1f"),(()=>!1))}t[Ba("0x11")][Ba("0xf")]((t=>this[Ba("0x2")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor[Ba("0x6")][Ba("0xb")]("TrackChangesEditing");this[Ba("0x35")][Ba("0x1a")].enqueueChange(r.batch,(()=>{for(const t of e)if(this[Ba("0x30")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1e")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x2e")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start.nodeAfter,s=n[Ba("0x8")][0];this[Ba("0x35")].model.change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x22")](n,s[n],o):e[Ba("0x1b")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0xe")])switch(t[Ba("0x10")]){case Ba("0x1d"):return{type:Ba("0xd"),content:Yo(this[Ba("0x35")].locale,Ba("0x3"))};case"tableCellProperties":return{type:Ba("0xd"),content:Yo(this.editor.locale,Ba("0x2d"))}}}[Ba("0x30")](t,e){const n=this[Ba("0x35")].plugins[Ba("0xb")](Ba("0x26"));for(const o of n[Ba("0x7")]({skipNotAttached:!0})){const n=o[Ba("0x18")]();if(o[Ba("0x10")]===e&&n===t)return o}return null}}const Ua=["removeAttribute","has","applyOperation","nodeBefore","getCustomProperty","authorName","requires","addComment","isInContent","accept","formatBlock:join","deletion:accept","join","insertion:accept","createPositionAt","next","mapper","acceptAllSuggestions","_findSuggestions","notReady","discard","createdAt","element","fetchCommentThread","document","TrackChangesEditing","buildSuggestion","dataDowncast","ck-suggestion-marker-formatBlock","addSuggestionData","rootName","addMarker","includes","track-changes-command-not-found","markerName","isOwn","getChanges","_model","conversion","model","add","always","getRanges","refresh","ck-suggestion-marker-","createRange","clear","PENDING_ACTION_SUGGESTION","listenTo","bindElementToMarker","createSelection","PendingActions","locale","toViewElement","_joinSuggestions","high","map","Users","head","_setSuggestionData","hasCommentThread","getFirstRange","differ","parent","formatGroupId","every","consume","substr","adapter","createRangeIn","setAttribute","fire","showSuggestionHighlights","_joinWithAdjacentSuggestions","elementStart","reconvertMarker","addMarkerName","suggestion","updateMarker","deletion","commentThread","markers","_splitMarkerName","formatInline:chain","_editor","size","backward","batch","marker-count","getUser","execute","_addThreadToSuggestion","ck-suggestion-marker","formatBlock:discard","delete","trackChangesCommand","before","discardAllSuggestions","discardSuggestion","insertion:chain","data","markMultiRangeBlockFormat","markBlockFormat","nodeAfter","isMultiRange","acceptSuggestion","isExternal","_rangeIsInLocalUserInsertion","markerToData","markerNameToElements","init","containsRangeInObject","formatInline","start","_saved","track-changes-suggestion-not-found","values","external:","addSuggestion","isBlock","insertion","removeMarkers","stop","_breakSuggestionMarker","containsRange","newRange","_adapter","position","change:data","isAtStart","CommentsRepository","addClass","ready","documentSelection","subType","isIntersectingWithRange","markerReady","default","_refreshSuggestionsChain","_isForcedDefaultExecutionBlock","getWalker","name","selection","formatBlock","_descriptionFactory","upcast","enableCommand","_registerDefaultCallbacks","end","change","open","getMarkers","rethrowUnexpectedError","value","sort","isDocumentOperation","getMultiRangeId","enqueueChange","suggestion-type","config","_addSuggestionMarker","containerElement","containsItem","hasSuggestion","setTo","normal","previous","createPositionAfter","isEqual","originalSuggestionId","isLimit","activeMarkers","_checkSuggestionCorrectness","range","define","removeMarker:suggestion:formatBlock","authoredAt","multi","trackChanges.trackFormatChanges","filter","removed","consumable","markInlineFormat","markDeletion","deletion:join","markerToHighlight","getSuggestion","author","after","isObject","insert","detach","addUser","rejected","for","lowest","splice","trackChanges.mergeNestedSuggestions","accepted","from","type","_setSuggestionRange","schema","getSuggestions","get","_removeSuggestion","editor","root","track-changes-suggestion-data-mismatch","length","formatBlock:chain","commandName","attributes","_cutOutSuggestionMarker","fromRange","track-changes-adapter-missing-getsuggestion","_suggestionState","$textProxy","_handleNewSuggestionMarker","change:activeMarkers","deletion:discard","registerCustomCallback","suggestionChanged","isBefore","deleteContent","ck-suggestion-marker--active","_updateSuggestionData","addRange","registerPostFixer","unbindElementFromMarkerName","isRemovable","removeClass","isInsideObject","acceptSelectedSuggestions","_enabledCommands","_mergeNestedSuggestions","getIntersection","creator","writer","getCommentThread","hasComments","_getSuggestionData","addMarker:suggestion:formatBlock","elementToElement","suggestionUnloaded","return","isAfter","track-changes-user-not-found","unbind","formatBlock:","commands","_getExternalAuthor","plugins","createElement","change:_saved","howMany","deletion:chain","insertion:join","isTouching","split","options","getItems","collaboration.channelId","formatInline:","markMultiRangeInsertion","addMarker:suggestion","_suggestionFactory","getDifference","formatBlock:accept","some","never","editingDowncast","insertContent","remove","splitPosition","push","getAllAdjacentSuggestions","dataToMarker","formatInline:discard","markInsertion","getChangedMarkers","isUndo","_suggestions","removeMarker","suggestion:","isCollapsed","addHighlight","multipleBlocks","_commentsRepository","discardSelectedSuggestions","update:suggestion","formatInline:accept","markMultiRangeDeletion","isNextTo","formatInline:join","item","setSelection","getSuggestionCallback","suggestionLoaded","@external","elementEnd","getNearestSelectionRange","getShiftedBy","skipNestingCheck","forceDefaultExecution","move","_createSuggestion","_customCallbacks","low","_defaultCallbacks","$graveyard","getLastMatchingPosition","enableReadOnlyMode","catch","dataReady","then","updateSuggestion","_trackFormatChanges","isAtEnd","getAttribute","targetPosition","trackChanges","set","clone"];var Ga,Ha;Ga=Ua,Ha=288,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get[Wa("0x2a")](){return[Wa("0xa6"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,zs,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,zi,$i,tx,ix,dx,px,yx,Sx,wx,jx,zx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return Wa("0x3d")}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t))).join("")}super(t),this[Wa("0x22")](Wa("0xcf"),[]),this.on(Wa("0xff"),((e,n,o,s)=>{this[Wa("0x49")][Wa("0xb9")]((()=>{for(const e of[...s,...o])this[Wa("0x49")][Wa("0x75")][Wa("0x25")](e)&&t.editing[Wa("0x6f")](e)}))})),this[Wa("0xb4")]=new ss(this.editor[Wa("0x4b")][Wa("0xee")],this[Wa("0xf2")][Wa("0x58")]),this[Wa("0xa2")]=null,this[Wa("0x12e")]=new Va(this.editor),this[Wa("0x13e")]=new Map,this[Wa("0x0")]=t[Wa("0x120")].get(Wa("0xa6")),this[Wa("0x10e")]=new Set,this._model=this[Wa("0xf2")][Wa("0x4b")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Wa("0xc3")].define(Wa("0xd6"),Wa("0xad")),this._trackFormatChanges=t[Wa("0xc3")][Wa("0xf0")](Wa("0xd6")),t[Wa("0xc3")][Wa("0xd2")](Wa("0xe9"),!0),this[Wa("0x10f")]=t[Wa("0xc3")].get(Wa("0xe9")),this.trackChangesCommand=new d(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,50,53,56])}[Wa("0x92")](){const t=this[Wa("0xf2")];t[Wa("0x4a")][Wa("0xe6")](Wa("0x133"))[Wa("0xdd")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[Wa("0x76")](t.markerName),o=[Wa("0x80"),Wa("0x50")+n];let s=3e3;return this[Wa("0xcf")][Wa("0x44")](t[Wa("0x46")])&&(o[Wa("0x137")](Wa("0x105")),s=3010),Wa("0x73")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0x4a")][Wa("0xe6")](Wa("0x3f")).add((e=>{e.on(Wa("0x12d"),((e,n,o)=>{if(!o.options[Wa("0x6c")])return;const s=n[Wa("0x7")];if(!s)return;const r=o[Wa("0x34")][Wa("0x59")](s);t[Wa("0x4b")][Wa("0xee")].isObject(s)&&r&&!r[Wa("0x28")]("widget")&&r.is(Wa("0xc5"))&&(0,x.toWidget)(r,o.writer)}),{priority:Wa("0x5b")})})),t[Wa("0x4a")].for("dataDowncast")[Wa("0xdd")]({model:Wa("0x71"),view:(t,e)=>{if(!e[Wa("0x128")].showSuggestionHighlights)return null;const{type:n}=this[Wa("0x76")](t.markerName);return{classes:[Wa("0x80"),Wa("0x50")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o.item.is(Wa("0xb2")))return void s.consumable[Wa("0x66")](o[Wa("0x7")],n[Wa("0xb1")]);const r=s[Wa("0x34")][Wa("0x59")](o.item);if(!o[Wa("0x7")].is(Wa("0x3a"))||!t[Wa("0x4b")][Wa("0xee")][Wa("0x9b")](o[Wa("0x7")])||r[Wa("0x28")](Wa("0x142")))return;const{id:i}=this._splitMarkerName(o[Wa("0x46")]);s[Wa("0x112")][Wa("0xa7")]([Wa("0x80"),Wa("0x40")],r),s.writer[Wa("0x6a")]("data-suggestion",i,r),s.mapper[Wa("0x55")](r,o[Wa("0x46")]),e&&(this.activeMarkers[Wa("0x44")](o.markerName)?s[Wa("0x112")].addClass("ck-suggestion-marker--active",r):s[Wa("0x112")].removeClass("ck-suggestion-marker--active",r));for(const e of t[Wa("0x4b")][Wa("0x69")](o[Wa("0x7")])[Wa("0x129")]())s[Wa("0xd9")][Wa("0x66")](e,n[Wa("0xb1")]);s[Wa("0xd9")].consume(o[Wa("0x7")],n[Wa("0xb1")])};t[Wa("0x4a")].for("dataDowncast")[Wa("0x4c")]((t=>{t.on(Wa("0x116"),((t,e,o)=>{o[Wa("0x128")][Wa("0x6c")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[Wa("0x4a")][Wa("0xe6")](Wa("0x3f"))[Wa("0x90")]({model:"suggestion",view:(t,e)=>e[Wa("0x128")][Wa("0x6c")]?null:{group:"suggestion",name:t[Wa("0x67")](11)}}),t[Wa("0x4a")][Wa("0xe6")](Wa("0xb5"))[Wa("0x117")]({view:{name:Wa("0x71"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0x140")+t[Wa("0x1f")](Wa("0xc2"))+":"+t[Wa("0x1f")]("id");return t[Wa("0x1f")]("marker-count")&&(n+=":"+t[Wa("0x1f")](Wa("0x7c"))),e[Wa("0x121")]("$marker",{"data-name":n})}}),t.conversion[Wa("0xe6")](Wa("0xb5"))[Wa("0x139")]({view:"suggestion"}),t.conversion[Wa("0xe6")](Wa("0x133")).add((t=>{t.on(Wa("0x116"),n(),{priority:Wa("0x5b")})})),t.conversion[Wa("0xe6")](Wa("0x133"))[Wa("0x4c")]((t=>{t.on(Wa("0xd3"),((t,e,n)=>{const o=n[Wa("0x34")][Wa("0x91")](e[Wa("0x46")]);if(o)for(const t of o)t[Wa("0x28")]("addHighlight")||(n[Wa("0x112")][Wa("0x10b")]([Wa("0x80"),Wa("0x40"),Wa("0x105")],t),n[Wa("0x112")][Wa("0x24")]("data-suggestion",t),n[Wa("0x34")][Wa("0x109")](t,e[Wa("0x46")]))}),{priority:Wa("0x5b")})})),t[Wa("0x4b")][Wa("0x3c")][Wa("0x108")]((e=>{let n=!1;const o=Array[Wa("0xeb")](t[Wa("0x4b")].document[Wa("0x62")][Wa("0x13c")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(Wa("0x71")!==o)continue;const u=this[Wa("0x13e")][Wa("0xf0")](l);if(null!=a[Wa("0xa1")])if(Wa("0x94")==c&&(n=n||Xa(a.newRange,x,e,t[Wa("0x4b")][Wa("0xee")])),a[Wa("0xa1")][Wa("0x141")]||Wa("0x16")==a[Wa("0xa1")][Wa("0xf3")][Wa("0x42")]||Wa("0xb3")==c&&!Ja(a[Wa("0xa1")])||"deletion"==c&&(qa(i=a[Wa("0xa1")])||(r=i)[Wa("0x95")][Wa("0x63")]==r.end[Wa("0x27")]&&r[Wa("0x95")][Wa("0x1e")]))e[Wa("0x13f")](x),n=!0;else{if(!u||!u[Wa("0x2c")])continue;s[Wa("0x4c")](u)}}var r,i;return s[Wa("0x79")]>0&&(n=!!this[Wa("0x6d")](s)||n),n})),t[Wa("0x4b")][Wa("0x3c")][Wa("0x108")]((e=>{let n=!1;for(const o of t[Wa("0x4b")].document.differ[Wa("0x48")]()){if("insert"!=o.type)continue;const s=o.position.getShiftedBy(o[Wa("0xf5")]);if(s[Wa("0x1e")])for(const r of this._suggestions[Wa("0x98")]()){if(r.isMultiRange||!r.isInContent)continue;if(Wa("0xb3")!=r.type)continue;const i=r.getFirstRange();if(i.start[Wa("0x63")]!=i.end.parent&&i[Wa("0xb8")][Wa("0xcc")](o[Wa("0xa3")])){const o=t[Wa("0x4b")][Wa("0x51")](i.start,s);e[Wa("0x72")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Wa("0x4b")][Wa("0x75")].on(Wa("0x2"),((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x76")](e.name),n=this[Wa("0x13e")][Wa("0xf0")](t);n&&n[Wa("0x70")](e.name)}})),t[Wa("0x4b")].document.on(Wa("0xa4"),(()=>{const e=Array[Wa("0xeb")](t.model.document[Wa("0x62")].getChangedMarkers()).filter((t=>Wa("0x71")===this[Wa("0x76")](t[Wa("0xb1")]).group));if(0===e.length)return;e[Wa("0xbe")](((t,e)=>{const n=t.data.oldRange,o=e[Wa("0x88")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Wa("0x95")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s.oldRange){const e=this[Wa("0xfe")](t);o[Wa("0x4c")](e)}else{const t=this._suggestions[Wa("0xf0")](e);null!==s[Wa("0xa1")]||t[Wa("0x2c")]?(n.add(t[Wa("0x5e")]),o.add(t)):this[Wa("0xf1")](t)}}o.size>0&&this[Wa("0xae")](o);for(const t of n)this.fire(Wa("0x102"),t)})),t[Wa("0x4b")].on(Wa("0x26"),((e,n)=>{const o=n[0];if(!this[Wa("0x13e")][Wa("0x79")])return;if(!o[Wa("0xbf")])return;if(o[Wa("0x7b")][Wa("0x13d")]||!o[Wa("0x7b")].isLocal)return;let s,r;switch(o[Wa("0xec")]){case Wa("0xe2"):s=t.model[Wa("0x32")](o[Wa("0xa3")]),r=s[Wa("0xe")](o[Wa("0x123")]);break;case Wa("0x127"):s=t[Wa("0x4b")][Wa("0x32")](o[Wa("0x136")]),r=t[Wa("0x4b")].createPositionAt(o.moveTargetPosition);break;case Wa("0x11"):s=t[Wa("0x4b")][Wa("0x32")](o[Wa("0x20")]),r=s[Wa("0xe")](o[Wa("0x123")]);break;default:return}const i=t[Wa("0x4b")][Wa("0x51")](s,r);t[Wa("0x4b")].change((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x36")](i)){if(t[Wa("0x8c")])continue;if(Wa("0x94")==t[Wa("0xec")])continue;const n=t.data&&t[Wa("0x88")][Wa("0x143")];(Wa("0xb3")!=t.type||Wa("0x127")==o.type&&!n)&&(e[Wa("0x93")]||Wa("0x9c")==t[Wa("0xec")]&&e.isOwn||t[Wa("0x61")]()[Wa("0xa0")](i)&&this[Wa("0x9f")](t,s,r))}}))}),{priority:Wa("0xe7")}),t[Wa("0x4b")].on(Wa("0x104"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wa("0x10")])return;if(this[Wa("0xaf")])return;if(!this[Wa("0x83")][Wa("0xbd")])return;if(o[Wa("0x141")])return;const r=t[Wa("0x4b")][Wa("0xee")],{start:i,end:x}=o[Wa("0x61")](),a=i[Wa("0x8b")]&&r[Wa("0xce")](i[Wa("0x8b")])?null:r.getNearestSelectionRange(i,"forward"),c=x.nodeBefore&&r[Wa("0xce")](x[Wa("0x27")])?null:r[Wa("0xd")](x,Wa("0x7a")),l=t[Wa("0x4b")].createRange(a?a[Wa("0x95")]:i,c?c.end:x);t[Wa("0x4b")][Wa("0xb9")]((e=>{this[Wa("0xdb")](l);const n=t[Wa("0x4b")].schema.getNearestSelectionRange(l[Wa("0x95")]);o.is(Wa("0xa9"))?e[Wa("0x8")](n):o[Wa("0xc8")](n)})),e.stop()}),{priority:e.priorities[Wa("0xc9")]+10}),t[Wa("0x4b")].on(Wa("0x134"),((e,n)=>{const o=n[n[Wa("0xf5")]-1];o&&o[Wa("0x10")]||this[Wa("0xaf")]||this[Wa("0x83")][Wa("0xbd")]&&(t.model[Wa("0xb9")]((()=>{let o=t[Wa("0x4b")][Wa("0x134")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wa("0x119")]=o[Wa("0x23")]();const s=o.end[Wa("0x27")],r=t[Wa("0x4b")][Wa("0xee")];s&&r[Wa("0x9b")](s)&&!r[Wa("0xe1")](s)&&(o=t[Wa("0x4b")][Wa("0x51")](o[Wa("0x95")],t[Wa("0x4b")][Wa("0x32")](s,Wa("0xb8")))),this[Wa("0x13b")](o)})),e[Wa("0x9e")]())}),{priority:"high"}),this[Wa("0xf2")][Wa("0x11e")][Wa("0x4c")]("trackChanges",this[Wa("0x83")]),this[Wa("0xb6")](Wa("0x21"));const o=new p(t,this[Wa("0x13e")]);t[Wa("0x11e")][Wa("0x4c")](Wa("0x8d"),o),this[Wa("0xb6")](Wa("0x8d"));const s=new C(t,this[Wa("0x13e")]);t[Wa("0x11e")][Wa("0x4c")](Wa("0x86"),s),this[Wa("0xb6")]("discardSuggestion"),t[Wa("0x11e")][Wa("0x4c")](Wa("0x35"),new F(t,o,this[Wa("0x13e")])),this.enableCommand(Wa("0x35")),t.commands[Wa("0x4c")](Wa("0x85"),new F(t,s,this[Wa("0x13e")])),this.enableCommand(Wa("0x85")),t[Wa("0x11e")][Wa("0x4c")](Wa("0x10d"),new U(t,o,this._suggestions)),this[Wa("0xb6")](Wa("0x10d")),t[Wa("0x11e")].add(Wa("0x1"),new U(t,s,this._suggestions)),this[Wa("0xb6")]("discardSelectedSuggestions");const r=t[Wa("0x120")][Wa("0xf0")]("CommentsRepository");this[Wa("0x54")](r,Wa("0x2b"),((t,{threadId:e})=>{const n=this[Wa("0x13e")][Wa("0xf0")](e);n&&n[Wa("0x74")]&&1===n[Wa("0x74")][Wa("0xf5")]&&this[Wa("0x106")](e,{hasComments:!0})}),{priority:"low"}),this[Wa("0x54")](r,"removeComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[Wa("0x74")]&&!n.commentThread.length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:Wa("0x14")})}set adapter(t){if(this[Wa("0xa2")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get[Wa("0x68")](){return this[Wa("0xa2")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wa("0x13e")][Wa("0x98")]())t&&!e[Wa("0x2c")]||n.push(e);return e?n[Wa("0x5c")]((t=>t.toJSON())):n}[Wa("0xde")](t){const n=this._suggestions[Wa("0xf0")](t);if(!n)throw new e.CKEditorError(Wa("0x97"),this);return n}[Wa("0xc7")](t){return this[Wa("0x13e")].has(t)}[Wa("0x41")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wa("0xec")].split(":"),i=this[Wa("0x13e")][Wa("0xf0")](n)||this._createSuggestion(s,r,n,e,o);if(this[Wa("0x7f")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i.createdAt=t.createdAt,o&&o["@external"]){const t=o[Wa("0xb")],e=this[Wa("0x11f")](t[Wa("0x29")]);i[Wa("0xd4")]=t.createdAt,i[Wa("0xdf")]=e,i[Wa("0x8e")]=!0}else i[Wa("0xd4")]=t.createdAt;switch(t.data&&(i[Wa("0x88")]=t.data),t[Wa("0xf8")]&&(i[Wa("0xf8")]=t[Wa("0xf8")]),this[Wa("0xa2")]&&this[Wa("0xa2")][Wa("0x9a")]||(i[Wa("0x96")]=!0),this[Wa("0xfc")].get(i)){case Wa("0x37"):this._suggestionState[Wa("0x22")](i,Wa("0x1a"));break;case Wa("0xac"):i[Wa("0x2c")]?(this._suggestionState[Wa("0x22")](i,Wa("0xa8")),this.fire(Wa("0xa"),i)):this[Wa("0xfc")][Wa("0x22")](i,Wa("0xd8"))}return i}[Wa("0x8d")](t){this[Wa("0x10")]((()=>{this.editor[Wa("0x4b")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e[Wa("0x2d")]()}))}))}[Wa("0x86")](t){this[Wa("0x10")]((()=>{this.editor[Wa("0x4b")][Wa("0xb9")]((()=>{for(const e of t[Wa("0x138")]())e[Wa("0x38")]()}))}))}[Wa("0xb6")](t,n){const o=this[Wa("0xf2")][Wa("0x11e")][Wa("0xf0")](t);if(!o)throw new e.CKEditorError(Wa("0x45"),this,{commandName:t});this._enabledCommands[Wa("0x4c")](o),n&&o.on("execute",((t,e)=>{this[Wa("0x83")][Wa("0xbd")]&&(this[Wa("0xaf")]||e[Wa("0xf5")]>0&&e[e[Wa("0xf5")]-1]&&e[e.length-1].forceDefaultExecution||(n(((...t)=>o[Wa("0x7e")](...t,{forceDefaultExecution:!0})),...e),t[Wa("0x9e")]()))}),{priority:Wa("0x5b")})}forceDefaultExecution(t){let n,o;const s=this[Wa("0xaf")];this[Wa("0xaf")]=!0;try{n=t()}catch(t){o=t}return s||(this[Wa("0xaf")]=!1),o&&e.CKEditorError[Wa("0xbc")](o,this),n}[Wa("0x13b")](t,n=null,o={}){if(t[Wa("0x141")])return null;const s=this[Wa("0xf2")].plugins[Wa("0xf0")](Wa("0x5d")).me;for(const{suggestion:e,meta:o}of this[Wa("0x36")](t,Wa("0x9c")))if(o.isOwn){if(!o[Wa("0x5")]){if(!this[Wa("0x10f")]&&o.containsRangeInObject)continue;return e}if(n==e[Wa("0xaa")]){const n=e[Wa("0x61")]();return n.start[Wa("0xcc")](t[Wa("0xb8")])?this._setSuggestionRange(e,this._model.createRange(t.start,n.end)):this[Wa("0xed")](e,this[Wa("0x49")][Wa("0x51")](n[Wa("0x95")],t[Wa("0xb8")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:"insertion",a=this[Wa("0x5f")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0xc4")](x,r,i,t),a}[Wa("0x12c")](t,n="multi",o={}){const s=this[Wa("0xf2")].plugins[Wa("0xf0")](Wa("0x5d")).me,r=this[Wa("0x12e")][Wa("0x9")](Wa("0x9c"),n,Wa("0x30"));for(const e of this[Wa("0xef")]())if(e[Wa("0xdf")].id==s.id&&Wa("0x9c")==e[Wa("0xec")]&&e[Wa("0xaa")]==n&&(r(e.getRanges(),t)||r(t,e[Wa("0x4e")]()))){for(const n of t)e.addRange(n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[Wa("0x36")](e,Wa("0x9c"))){if(!o[Wa("0x47")])continue;let e=!0;for(const o of n[Wa("0x4e")]())for(const n of t)if(!o[Wa("0xa0")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[Wa("0x5f")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0xc4")](a,i,x,e,Zo[Wa("0xc0")]());return c}[Wa("0xda")](t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x141")])return null;if(Wa("0x132")===this[Wa("0x1d")]){const e=this._suggestionFactory[Wa("0x9")](Wa("0x94"),o,Wa("0x2d"));return this[Wa("0x10")]((()=>e([t],n,s))),null}const r=this.editor[Wa("0x120")][Wa("0xf0")](Wa("0x5d")).me,i=[];if(Wa("0x4d")!==this[Wa("0x1d")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0x9c")))n[Wa("0x47")]&&!n[Wa("0x10c")]&&i[Wa("0x137")](...e[Wa("0x4e")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e].getDifference(t);n[Wa("0xe8")](e,1,...o),e+=o[Wa("0xf5")]}}return n}(t,i);x.length&&this._model.change((()=>{for(const t of x){const e=this[Wa("0x12e")][Wa("0x9")]("formatInline",o,Wa("0x2d"));this[Wa("0x10")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0x95")],a=t[Wa("0xb8")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0x94"))){if(!n.isOwn)continue;if(e[Wa("0xaa")]!=o)continue;const s=e.getFirstRange();if(s[Wa("0xa0")](t,!0))return null;x=x.isBefore(s.start)?x:s.start,a=a.isAfter(s[Wa("0xb8")])?a:s[Wa("0xb8")],i?s[Wa("0x95")][Wa("0x103")](i[Wa("0x61")]()[Wa("0x95")])?(i[Wa("0x9d")](),i=e):e.removeMarkers():i=e}const c=this[Wa("0x49")][Wa("0x51")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:Wa("0x12b")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Wa("0xc4")](Wa("0x12b")+o,t,i,c)}}return null}[Wa("0x8a")](t,n,o=[],s=null,r={}){n[Wa("0x64")]||(n.formatGroupId=n[Wa("0xf7")]),n.multipleBlocks=t.is(Wa("0xd1")),s=s||$a(n);const i=o[Wa("0x5c")]((t=>Qa(t,this[Wa("0x49")]))),x=t.is(Wa("0xd1"))?t:Qa(t,this[Wa("0x49")]);if(Wa("0x132")===this[Wa("0x1d")]){const t=this[Wa("0x12e")][Wa("0x9")](Wa("0xb3"),s,Wa("0x2d"));return this[Wa("0x10")]((()=>t([x],n,r))),null}i[Wa("0x137")](x);let a=!0;for(const t of i)if(!this[Wa("0x8f")](t)){a=!1;break}if(a&&Wa("0x4d")!==this[Wa("0x1d")]){const t=this[Wa("0x12e")].getSuggestionCallback(Wa("0xb3"),s,Wa("0x2d"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Wa("0x95")],u=x[Wa("0xb8")];for(const{suggestion:t,meta:e}of this[Wa("0x36")](x,"formatBlock")){if(!e[Wa("0x47")]||e[Wa("0x5")]||e[Wa("0x93")]||e[Wa("0x10c")])continue;if(t[Wa("0x88")][Wa("0x64")]!=n[Wa("0x64")])continue;const o=t[Wa("0x61")]();if(t[Wa("0xaa")]==s){if(o[Wa("0xa0")](x,!0))return null;l=l[Wa("0x103")](o.start)?l:o[Wa("0x95")],u=u.isAfter(o.end)?u:o[Wa("0xb8")],c?o[Wa("0x95")][Wa("0x103")](c.getFirstRange().start)?(c[Wa("0x9d")](),c=t):t.removeMarkers():c=t}else{const e=x[Wa("0x110")](o);this[Wa("0xf9")](t,e)}}const d=this[Wa("0xf2")][Wa("0x120")][Wa("0xf0")](Wa("0x5d")).me,g=(0,e.uid)(),m=d.id;if(c)return this._setSuggestionRange(c,this[Wa("0x49")][Wa("0x51")](l,u)),c;{const t=this[Wa("0x5f")]({id:g,type:Wa("0x11d")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wa("0xc4")]("formatBlock:"+s,g,m,this[Wa("0x49")][Wa("0x51")](l,u)),t}}[Wa("0x89")](t,n,o=[],s=null,r={}){n[Wa("0x64")]||(n[Wa("0x64")]=n.commandName);const i=t[0];n[Wa("0x143")]=i.is(Wa("0xd1")),s=s||$a(n);const x=o[Wa("0x5c")]((t=>Qa(t,this[Wa("0x49")]))),a=i.is(Wa("0xd1"))?t:t[Wa("0x5c")]((t=>Qa(t,this._model)));if(Wa("0x132")===this[Wa("0x1d")]){const t=this[Wa("0x12e")].getSuggestionCallback("formatBlock",s,Wa("0x2d"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[Wa("0x137")](...a);let c=!0;for(const t of x)if(!this[Wa("0x8f")](t)){c=!1;break}if(c&&Wa("0x4d")!==this[Wa("0x1d")]){const t=this[Wa("0x12e")].getSuggestionCallback(Wa("0xb3"),s,"accept");return this[Wa("0x10")]((()=>t(a,n,r))),null}const l=this[Wa("0xf2")][Wa("0x120")][Wa("0xf0")](Wa("0x5d")).me;for(const t of this[Wa("0xef")]()){if(t[Wa("0xdf")].id!=l.id)continue;if(Wa("0xb3")!=t[Wa("0xec")]||t[Wa("0x88")][Wa("0x64")]!=n[Wa("0x64")])continue;const e=t[Wa("0xaa")]==s;for(let n=0;n<a[Wa("0xf5")];n++){const o=a[n];for(const s of t[Wa("0xbb")]()){const r=s.getRange();if(o[Wa("0xcc")](r)){e?(a[Wa("0xe8")](n,1),n--):t[Wa("0x13f")](s[Wa("0xb1")]);break}}}}if(0==a.length)return null;const u=this[Wa("0x12e")][Wa("0x9")]("formatBlock",s,Wa("0x30"));for(const t of this[Wa("0xef")]())if(t[Wa("0xdf")].id==l.id&&"formatBlock"==t[Wa("0xec")]&&t[Wa("0x88")][Wa("0x64")]==n[Wa("0x64")]&&t[Wa("0xaa")]==s&&(u(t[Wa("0x4e")](),a)||u(a,t[Wa("0x4e")]()))){for(const e of a)t[Wa("0x107")](e);return t}const d=(0,e.uid)(),g=l.id,m=Wa("0x11d")+s,f=this[Wa("0x5f")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Wa("0xc4")](m,d,g,t,Zo[Wa("0xc0")]());return f}[Wa("0xdb")](t,n=null,o={}){if(t[Wa("0x141")])return null;const s=this[Wa("0xf2")][Wa("0x120")][Wa("0xf0")](Wa("0x5d")).me,r=new i.LiveRange(t[Wa("0x95")],t[Wa("0xb8")]);for(const{suggestion:t,meta:e}of this[Wa("0x36")](r,Wa("0x9c")))if(e[Wa("0x47")]&&!e[Wa("0x5")])if(t.isMultiRange){const e=t[Wa("0x4e")]()[Wa("0xd7")]((t=>"$graveyard"!=t.root[Wa("0x42")]));if(e.every((t=>r[Wa("0xa0")](t,!0)))&&t[Wa("0x38")](),e[Wa("0x131")]((t=>t[Wa("0xa0")](r,!0)))){const t=this._suggestionFactory[Wa("0x9")](Wa("0x73"),n,"accept");return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Wa("0x110")](t[Wa("0x61")]());null!==e&&t._onDiscard([e],null,o)}if(r[Wa("0xe3")](),r.isCollapsed||"$graveyard"==r[Wa("0xf3")][Wa("0x42")])return null;let x=null,a=r[Wa("0x95")],c=r[Wa("0xb8")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,Wa("0x73")))if(e[Wa("0x47")])if(t[Wa("0x8c")]&&this[Wa("0x10f")]){let e=!0;for(const n of t[Wa("0x4e")]()){if(n[Wa("0xa0")](r,!0))return t;r[Wa("0xa0")](n)||(e=!1)}e&&t.discard()}else{const n=t[Wa("0x61")]();if(n[Wa("0xa0")](r,!0)){if(!this[Wa("0x10f")]&&e.containsRangeInObject)continue;return t}a=a[Wa("0x103")](n[Wa("0x95")])?a:n[Wa("0x95")],c=c[Wa("0x11a")](n.end)?c:n[Wa("0xb8")],x?n.start.isBefore(x[Wa("0x61")]()[Wa("0x95")])?(x.removeMarkers(),x=t):t[Wa("0x9d")]():x=t}if(x)return this[Wa("0xed")](x,this[Wa("0x49")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this._model[Wa("0x51")](a,c),i=s.id,x=n?"deletion:"+n:Wa("0x73"),l=this[Wa("0x5f")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0xc4")](x,t,i,r),l}}[Wa("0x4")](t,n=Wa("0xd5"),o={}){const s=this.editor.plugins.get(Wa("0x5d")).me,r=t.map((t=>new i.LiveRange(t.start,t[Wa("0xb8")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0x36")](t,"insertion"))n[Wa("0x47")]&&!n.isNextTo&&x[Wa("0x4c")](e);for(const e of x)if(e[Wa("0x8c")]){const s=e[Wa("0x4e")]();if((!e[Wa("0xf8")]||!e[Wa("0xf8")][Wa("0xf")])&&s[Wa("0x65")]((t=>r.some((e=>e[Wa("0xa0")](t,!0)))))&&e.discard(),r[Wa("0x65")]((t=>s.some((e=>e[Wa("0xa0")](t,!0)))))){const e=this[Wa("0x12e")][Wa("0x9")]("deletion",n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Wa("0x61")]();if(r[Wa("0x131")]((e=>e.containsRange(t,!0)))&&e[Wa("0x38")](),r[Wa("0x65")]((e=>t[Wa("0xa0")](e,!0)))){const t=this[Wa("0x12e")][Wa("0x9")](Wa("0x73"),n,Wa("0x2d"));return this[Wa("0x10")]((()=>t(r,null,o))),null}}const a=this[Wa("0x12e")][Wa("0x9")](Wa("0x73"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[Wa("0xdf")].id==s.id&&t.isInContent&&"deletion"==t[Wa("0xec")]&&t[Wa("0xaa")]==n&&(a(t[Wa("0x4e")](),r)||a(r,t[Wa("0x4e")]())))if(c){if(t[Wa("0x74")]&&t[Wa("0x74")][Wa("0xf5")])continue;for(const e of t[Wa("0x4e")]())c[Wa("0xab")](e)||c[Wa("0x107")](e);t[Wa("0x9d")]()}else{c=t;for(const e of r)t[Wa("0xab")](e)||t[Wa("0x107")](e)}if(c)return c;x[Wa("0x52")]();for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0x36")](t,"deletion"))n[Wa("0x47")]&&x[Wa("0x4c")](e);for(const t of x){const e=t[Wa("0x4e")]();if((!o||!o.skipNestingCheck)&&r[Wa("0x65")]((t=>e[Wa("0x131")]((e=>e.containsRange(t,!0))))))return t;(!t[Wa("0xf8")]||!t.attributes[Wa("0xf")])&&e[Wa("0x65")]((t=>r[Wa("0x131")]((e=>e[Wa("0xa0")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d="deletion:"+n,g=this[Wa("0x5f")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Wa("0xe3")](),t[Wa("0x141")]||Wa("0x16")==t[Wa("0xf3")][Wa("0x42")]||this._addSuggestionMarker(d,l,u,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[Wa("0x49")].change((t=>{t[Wa("0x72")](n,{range:e})}))}[Wa("0x7f")](t){const e=t.id,n=this[Wa("0xf2")][Wa("0xc3")][Wa("0xf0")](Wa("0x12a"));this._commentsRepository[Wa("0x60")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Wa("0x0")][Wa("0x113")](e);o[Wa("0x11c")](Wa("0x10a")),o[Wa("0x10a")]=!1,t[Wa("0x74")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[Wa("0xec")]!=n||t[Wa("0xaa")]!=o||t[Wa("0x111")].id!=s)throw this[Wa("0xf2")][Wa("0x18")](Wa("0xf4")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Wa("0xf9")](t,n){const o=t[Wa("0x61")]();if(n.isEqual(o))t.removeMarkers();else if(o.containsRange(n)){const s=this._model[Wa("0x32")](n[Wa("0x95")].nodeBefore,Wa("0xb8"));this._setSuggestionRange(t,this[Wa("0x49")][Wa("0x51")](o[Wa("0x95")],s));const r=(0,e.uid)(),i=t[Wa("0x111")].id,x=t[Wa("0xec")]+":"+t.subType;this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[Wa("0x88")],attributes:t[Wa("0xf8")]});const a=this[Wa("0x49")][Wa("0x32")](n.end[Wa("0x63")],"after"),c=this[Wa("0x49")][Wa("0x51")](a,o.end);this._addSuggestionMarker(x,r,i,c)}else if(o.containsPosition(n.start)){const e=this[Wa("0x49")][Wa("0x32")](n[Wa("0x95")][Wa("0x27")],Wa("0xb8"));this._setSuggestionRange(t,this[Wa("0x49")].createRange(o[Wa("0x95")],e))}else{const e=this[Wa("0x49")][Wa("0x32")](n.end.parent,Wa("0xe0"));this._setSuggestionRange(t,this[Wa("0x49")][Wa("0x51")](e,o[Wa("0xb8")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0x9c"))){if(!n[Wa("0x47")])continue;const o=e[Wa("0x4e")]();for(const e of o)if(!t[Wa("0x12f")](e)[Wa("0xf5")])return!0}return!1}_getAuthorFromId(t){const n=this[Wa("0xf2")].plugins[Wa("0xf0")](Wa("0x5d"))[Wa("0x7d")](t);if(!n)throw new e.CKEditorError(Wa("0x11b"),this);return n}[Wa("0x11f")](t){const e=this[Wa("0xf2")][Wa("0x120")][Wa("0xf0")](Wa("0x5d")),n=(0,r.hashObject)(Wa("0x99")+t);return e[Wa("0x7d")](n)||e[Wa("0xe4")]({id:n,name:t})}[Wa("0x12")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this._suggestionFactory[Wa("0x3e")](t,e,n,r,s,(t=>this[Wa("0x106")](n,{attributes:t})));return this[Wa("0x54")](i,Wa("0x2d"),(()=>{this[Wa("0x106")](n,{state:Wa("0xea")})}),{priority:Wa("0x5b")}),this[Wa("0x54")](i,"discard",(()=>{this[Wa("0x106")](n,{state:Wa("0xe5")})}),{priority:Wa("0x5b")}),this[Wa("0x13e")][Wa("0x22")](n,i),this[Wa("0xfc")].set(i,Wa("0x37")),i}[Wa("0x76")](t){const e=t[Wa("0x127")](":");return{group:e[0],type:e[1],subType:e[Wa("0xf5")]>=5?e[2]:null,id:e[Wa("0xf5")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[Wa("0xf5")]?e[5]:null}}[Wa("0x9f")](t,n,o){const s=t[Wa("0x61")](),r=s.start,i=s[Wa("0xb8")];this._setSuggestionRange(t,this._model[Wa("0x51")](r,n));const x=(0,e.uid)(),a=t[Wa("0x111")].id,c=t[Wa("0xec")]+(t[Wa("0xaa")]?":"+t[Wa("0xaa")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[Wa("0x88")]}),Wa("0xb3")==t[Wa("0xec")]&&(o=this._model.createPositionBefore(o[Wa("0x63")])),this[Wa("0xc4")](c,x,a,this[Wa("0x49")][Wa("0x51")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[Wa("0x49")].schema,s=this[Wa("0xf2")][Wa("0x120")][Wa("0xf0")](Wa("0x5d")).me;for(const r of this[Wa("0xef")]())if(r[Wa("0x2c")]&&(!e||r[Wa("0xec")]==e))for(const e of r[Wa("0x4e")]()){const i=t[Wa("0x95")].isEqual(e[Wa("0xb8")])||t[Wa("0xb8")][Wa("0xcc")](e.start);if(i||t[Wa("0x110")](e)){const x=t.containsRange(e)&&Ka(o,e[Wa("0x95")],t),a=e[Wa("0xa0")](t)&&Ka(o,t.start,e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Wa("0x49")][Wa("0xb9")]((r=>{let i=Wa("0x140")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Wa("0x43")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0xf1")](t){const e=t[Wa("0xca")],n=t[Wa("0x33")];t.previous=null,null!=e&&(e[Wa("0x33")]=null),t.next=null,null!=n&&(n.previous=null),Wa("0xa8")==this[Wa("0xfc")][Wa("0xf0")](t)&&(this[Wa("0xfc")][Wa("0x22")](t,"removed"),this[Wa("0x6b")](Wa("0x118"),t,e,n))}[Wa("0x5f")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[Wa("0xa2")][Wa("0x9a")]){const s=this.editor.plugins[Wa("0xf0")]("PendingActions"),r=o[Wa("0x114")],i=o.subType?o.type+":"+o.subType:o[Wa("0xec")],x=this[Wa("0xf2")][Wa("0x58")],a=s[Wa("0x4c")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[Wa("0x88")]||null,originalSuggestionId:t[Wa("0xcd")]||null,attributes:o[Wa("0xf8")]};this._adapter[Wa("0x9a")](c)[Wa("0x1b")]((t=>{o._saved=!0,s[Wa("0x135")](a),t&&t[Wa("0x39")]&&(this[Wa("0x13e")][Wa("0xf0")](n)[Wa("0x39")]=t[Wa("0x39")])}))[Wa("0x19")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor.model[Wa("0xc1")]({isUndoable:!1},(()=>{o[Wa("0x38")]()})),o.stopListening(),this[Wa("0x13e")][Wa("0x82")](o.id),this[Wa("0xfc")].delete(o),t}))}return o}[Wa("0x106")](t,e){const n=this[Wa("0xf2")][Wa("0x120")].get(Wa("0x57")),o=this.getSuggestion(t);if(this[Wa("0xa2")]&&this[Wa("0xa2")][Wa("0x1c")])if(o[Wa("0x96")]){const o=n[Wa("0x4c")](Yo(this[Wa("0xf2")].locale,Wa("0x53")));this[Wa("0xa2")].updateSuggestion(t,e)[Wa("0x1b")]((()=>{n[Wa("0x135")](o)}))}else o.on(Wa("0x122"),(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this[Wa("0xa2")]||!this._adapter[Wa("0xde")])throw new e.CKEditorError(Wa("0xfb"),this);return this[Wa("0xa2")][Wa("0xde")](t)}[Wa("0xfe")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0x76")](t),r=this[Wa("0x13e")][Wa("0xf0")](e)||this[Wa("0x12")](n,o,e,s,{});switch(this[Wa("0xd0")](r,n,o,s),this._suggestionState.get(r)){case Wa("0x37"):this[Wa("0x115")](e)[Wa("0x1b")]((t=>{let n=Promise.resolve();t[Wa("0x114")]&&(n=this[Wa("0x0")][Wa("0x3b")]({channelId:this[Wa("0xf2")].config[Wa("0xf0")](Wa("0x12a")),threadId:e})),n[Wa("0x1b")]((()=>{this[Wa("0x41")](t)[Wa("0x96")]=!0}))})),this[Wa("0xfc")][Wa("0x22")](r,Wa("0xac"));break;case"removed":this[Wa("0x106")](e,{state:Wa("0xba")});case Wa("0x1a"):this[Wa("0xfc")].set(r,Wa("0xa8")),this[Wa("0x6b")](Wa("0xa"),r);break;case Wa("0xa8"):this[Wa("0x6b")]("suggestionChanged",r)}return r[Wa("0x70")](t),r}[Wa("0xae")](t){const e=Array.from(t)[Wa("0xd7")]((t=>!t[Wa("0x8c")])),n=this[Wa("0xef")]({skipNotAttached:!0})[Wa("0xd7")]((t=>!t[Wa("0x8c")])),o=n[Wa("0xd7")]((e=>!t.has(e))),s=new Map(n[Wa("0x5c")]((t=>[t,this[Wa("0x12e")][Wa("0x9")](t[Wa("0xec")],t[Wa("0xaa")],"chain")]))),r=new Map(n[Wa("0x5c")]((t=>[t,t[Wa("0x61")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0xf5")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Wa("0x25")](n)&&n.previous&&(n[Wa("0xca")][Wa("0x33")]===n&&(n[Wa("0xca")].next=null),n[Wa("0xca")]=null),!i[Wa("0x25")](n)&&n[Wa("0x33")]&&(n[Wa("0x33")][Wa("0xca")]===n&&(n[Wa("0x33")].previous=null),n[Wa("0x33")]=null)}function a(t,e,n){for(let o=n;o<e[Wa("0xf5")];o++){const n=c(t,e[o]);n&&(n[0][Wa("0x33")]=n[1],n[1].previous=n[0],i.add(n[0]),x[Wa("0x4c")](n[1]))}}function c(t,e){if(t[Wa("0xdf")].id!==e.author.id)return null;const n=s.get(t)(t,e,r[Wa("0xf0")](t),r.get(e));return n&&s[Wa("0xf0")](e)(t,e,r.get(t),r[Wa("0xf0")](e))?n[1].commentThread&&n[1].commentThread[Wa("0xf5")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[Wa("0xeb")](t),n=this[Wa("0xef")]({skipNotAttached:!0}),o=n[Wa("0xd7")]((e=>!t[Wa("0x25")](e))),s=new Map(e[Wa("0x5c")]((t=>[t,this[Wa("0x12e")][Wa("0x9")](t[Wa("0xec")],t[Wa("0xaa")],Wa("0x30"))]))),r=new Map(n[Wa("0x5c")]((t=>[t,t.getRanges()])));for(let t=0;t<e[Wa("0xf5")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0xf5")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Wa("0xf5")];i++){const o=n[i];if(o[Wa("0xec")]!==e[Wa("0xec")]||o[Wa("0xdf")].id!==e.author.id||o[Wa("0xaa")]!==e[Wa("0xaa")])continue;const x=s[Wa("0xf0")](e),a=r[Wa("0xf0")](e),c=r.get(o),l=e.commentThread&&e[Wa("0x74")][Wa("0xf5")],u=o.commentThread&&o[Wa("0x74")][Wa("0xf5")];if(!l&&x(c,a))return t[Wa("0x5a")](o,e),r[Wa("0x82")](e),!0;if(!u&&x(a,c))return t[Wa("0x5a")](e,o),r[Wa("0x82")](o),!0}return!1}}[Wa("0x5a")](t,e){if(t.isMultiRange)for(const n of e[Wa("0x4e")]())t[Wa("0x107")](n);else{const n=e[Wa("0x61")]().end;this[Wa("0xed")](t,this[Wa("0x49")].createRange(t[Wa("0x61")]()[Wa("0x95")],n))}e.removeMarkers()}}class Va{constructor(t){this[Wa("0x78")]=t,this[Wa("0x49")]=t[Wa("0x4b")],this[Wa("0x13")]=new Map,this[Wa("0x15")]=new Map,this[Wa("0xb7")]()}[Wa("0x3e")](t,e,n,o,s,r){return new Zo(this[Wa("0x49")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x9")](t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}[Wa("0x101")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[Wa("0x22")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Wa("0x13")][Wa("0xf0")](o)||this[Wa("0x15")].get(t+":"+n)}[Wa("0xb7")](){const t=()=>{},e=t=>{t[Wa("0xbe")](((t,e)=>t[Wa("0x95")][Wa("0x103")](e.start)?1:-1)),this._model[Wa("0xb9")]((e=>{for(const n of t){let t;t=n[Wa("0xb8")][Wa("0x1e")]&&n[Wa("0xb8")].parent==n[Wa("0x95")][Wa("0x8b")]?e[Wa("0x56")](n[Wa("0x95")][Wa("0x8b")],"on"):e[Wa("0x56")](n),this[Wa("0x49")][Wa("0x104")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wa("0x49")][Wa("0xb9")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0x5c")]((t=>(qa(t)&&(t=this[Wa("0x49")][Wa("0x51")](t[Wa("0xb8")])),t)))[Wa("0xd7")]((t=>"$graveyard"!==t[Wa("0xf3")][Wa("0x42")]));if(r[Wa("0xf5")]<1)return;const x=Array[Wa("0xeb")](this[Wa("0x49")].document.selection[Wa("0x4e")]())[Wa("0x5c")]((t=>i.LiveRange[Wa("0xfa")](t)));n[Wa("0x8")](r);for(const t of this[Wa("0x78")][Wa("0x11e")][Wa("0x11e")]())t[Wa("0x4f")]();s[Wa("0x137")]({forceDefaultExecution:!0}),this[Wa("0x78")][Wa("0x7e")](o,...s);const a=x[Wa("0xd7")]((t=>"$graveyard"!=t.root.rootName));a.length>0&&n[Wa("0x8")](a);for(const t of x)t[Wa("0xe3")]()}))},o=(t,e)=>1==t.length&&1==e[Wa("0xf5")]&&t[0][Wa("0xb8")][Wa("0xcc")](e[0][Wa("0x95")]),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this[Wa("0x49")])?[e,t]:null;this._defaultCallbacks[Wa("0x22")](Wa("0x31"),t),this._defaultCallbacks[Wa("0x22")]("insertion:discard",e),this[Wa("0x15")][Wa("0x22")](Wa("0x125"),o),this[Wa("0x15")][Wa("0x22")](Wa("0x87"),s),this[Wa("0x15")][Wa("0x22")](Wa("0x2f"),e),this._defaultCallbacks[Wa("0x22")](Wa("0x100"),t),this[Wa("0x15")][Wa("0x22")](Wa("0xdc"),o),this._defaultCallbacks.set(Wa("0x124"),s),this[Wa("0x15")].set(Wa("0x3"),n),this[Wa("0x15")][Wa("0x22")](Wa("0x13a"),t),this[Wa("0x15")][Wa("0x22")](Wa("0x6"),o),this[Wa("0x15")][Wa("0x22")](Wa("0x77"),t),this[Wa("0x15")].set(Wa("0x130"),n),this._defaultCallbacks[Wa("0x22")](Wa("0x81"),t),this[Wa("0x15")][Wa("0x22")](Wa("0x2e"),o),this._defaultCallbacks[Wa("0x22")](Wa("0xf6"),t)}}function Ka(t,e,n){for(const o of e[Wa("0x63")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Wa("0xf3")]==o)return!1;if(!n[Wa("0xc6")](o))return!1;if(t.isObject(o)||t.isLimit(o))return!0}return!1}function qa(t){return t.end.parent==t.start[Wa("0x8b")]&&t.end[Wa("0xa5")]}function Xa(t,e,n,o){const s=t=>!t.item.is(Wa("0xfd"))&&!o[Wa("0xe1")](t.item),r=t[Wa("0x95")][Wa("0x17")](s),i=t[Wa("0xb8")][Wa("0x17")](s,{direction:Wa("0x7a")});return!(t[Wa("0x95")][Wa("0xcc")](r)&&t[Wa("0xb8")][Wa("0xcc")](i)||(r[Wa("0x103")](i)?n.updateMarker(e,{range:n[Wa("0x51")](r,i)}):n[Wa("0x13f")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[Wa("0x95")].nodeAfter;return e&&e.is(Wa("0x3a"))}function Qa(t,e){const n=e[Wa("0xee")][Wa("0xe1")](t)||e[Wa("0xee")].isSelectable(t);return e[Wa("0x51")](e[Wa("0x32")](t,Wa("0x84")),n?e[Wa("0xcb")](t):e[Wa("0x32")](t,Wa("0xb8")))}function Za(t,e,n,o,s){if(n.end[Wa("0xcc")](o[Wa("0x95")]))return!0;if(t[Wa("0xec")]!=e[Wa("0xec")])return!1;if(!n[Wa("0xb8")][Wa("0x126")](o[Wa("0x95")]))return!1;const r=s.createRange(n.end,o[Wa("0x95")])[Wa("0xb0")]();for(const t of r)if([Wa("0x6e"),Wa("0xc")][Wa("0x44")](t[Wa("0xec")])&&s[Wa("0xee")][Wa("0xce")](t[Wa("0x7")]))return!1;return!0}const Ya=["acceptSuggestion","discardSuggestion","change:isDirty","stopListening","destroy","isDirty","commentThreadController","_discardCommand","canDiscard","commands","plugins","add","isEnabled","get","unbind","model","view","execute","_acceptCommand","canEditAt","_setPendingAction","locale","canAccept","_removePendingAction","PendingActions","listenTo","getRanges","bind","_pendingAction","_editor"];var tc,ec;tc=Ya,ec=303,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0xc")]=e,this[nc("0xd")]=n,this[nc("0x3")]=o,this._editor=t,this[nc("0xf")]=t.commands[nc("0xa")](nc("0x1b")),this[nc("0x4")]=t[nc("0x6")].get(nc("0x1c")),this[nc("0xd")].bind(nc("0x9")).to(this[nc("0xf")],this[nc("0x4")],((t,e)=>t||e)),this[nc("0xd")][nc("0x18")](nc("0x13")).to(this._acceptCommand,nc("0x9"),(t=>t&&this[nc("0x1a")][nc("0xc")][nc("0x10")](e[nc("0x17")]()))),this[nc("0xd")].bind(nc("0x5")).to(this[nc("0x4")],"isEnabled",(t=>t&&this[nc("0x1a")][nc("0xc")][nc("0x10")](e[nc("0x17")]()))),this._pendingAction=null,n[nc("0x2")]&&this._setPendingAction(),this[nc("0x16")](n,nc("0x1b"),(()=>this[nc("0x1b")]())),this[nc("0x16")](n,"discardSuggestion",(()=>this[nc("0x1c")]())),this.listenTo(n,nc("0x1d"),(()=>{n[nc("0x2")]?this[nc("0x11")]():this[nc("0x14")]()}))}[nc("0x1b")](){this[nc("0xf")].execute(this.model.id)}[nc("0x1c")](){this[nc("0x4")][nc("0xe")](this.model.id)}[nc("0x1")](){this[nc("0xd")].unbind(nc("0x9")),this.view[nc("0xb")](nc("0x13")),this[nc("0xd")].unbind(nc("0x5")),this[nc("0x0")](),this[nc("0x3")].destroy(),this[nc("0x19")]&&this[nc("0x14")]()}[nc("0x11")](){const t=Yo(this[nc("0x1a")][nc("0x12")],"PENDING_ACTION_SUGGESTION");this[nc("0x19")]=this[nc("0x1a")][nc("0x7")][nc("0xa")](nc("0x15"))[nc("0x8")](t)}[nc("0x14")](){null!==this[nc("0x19")]&&this[nc("0x1a")][nc("0x7")].get(nc("0x15")).remove(this._pendingAction),this[nc("0x19")]=null}}const sc=["locale","bind","_createCommentThreadInputView","addComment","delegate","commentThread","set","hasDirtyComment","destroy","isActive","submit","isReadOnly","_localUser","CommentView","disabledSubmit","commentsListView","commentInputView","isEnabled","assign","_createCommentViews","authoredAt","setData","cancel","_config","value","removeComment","disableComments","editor","isDirty","focus","descriptionParts","showInput","length","element","canDiscard","commentThreadInputView","_model"];var rc,ic;rc=sc,ic=130,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x21")]=null,this.commentThreadInputView=null,this.set(xc("0x1b"),!1),this[xc("0x18")](xc("0x1"),e[xc("0x1")]),this[xc("0x13")](xc("0x1")).to(e),this[xc("0x18")](xc("0xb"),[]),this[xc("0x18")]("isDirty",!1),this[xc("0x18")](xc("0x23"),!1),this.set("canAccept",!1),this[xc("0x18")](xc("0xf"),!1),this[xc("0x11")]=e,this._localUser=n,this[xc("0x4")]=o,o[xc("0x7")]?this[xc("0x18")](xc("0xd"),1):this[xc("0x0")]()}focus(){this[xc("0xe")].focus()}destroy(){this[xc("0x21")]&&this.commentsListView[xc("0x1a")](),this[xc("0x10")]&&this[xc("0x10")].destroy(),super[xc("0x1a")]()}_createCommentViews(){const{CommentsListView:t}=this[xc("0x4")];this[xc("0x21")]=new t(this[xc("0x12")],this[xc("0x11")][xc("0x17")],Object[xc("0x24")]({CommentView:this._config[xc("0x1f")]},this._config)),this[xc("0x21")].delegate(xc("0x6")).to(this),this[xc("0x21")][xc("0x16")]("updateComment").to(this),this[xc("0x21")][xc("0x13")](xc("0x1b")).to(this),this[xc("0x18")](xc("0xd"),this[xc("0x21")].length+1),this[xc("0x13")](xc("0xd")).to(this.commentsListView,"length",(t=>t+1)),this[xc("0x10")]=this[xc("0x14")](),this.on("removeComment",(()=>this.focus())),this[xc("0x13")](xc("0x9")).to(this[xc("0x21")],xc("0x19"),this[xc("0x10")][xc("0x22")],"value",((t,e)=>t||!!e))}[xc("0x14")](){const{CommentThreadInputView:t}=this[xc("0x4")],e=new t(this[xc("0x12")],this[xc("0x1e")],this._config.editorConfig),n=e[xc("0x22")];return e[xc("0x13")](xc("0xc")).to(this,xc("0x1b"),this._model[xc("0x17")],xc("0x1d"),n,xc("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1c"),((t,e)=>{this.fire(xc("0x15"),e),n[xc("0x8")][xc("0x2")]("")})),n.on(xc("0x3"),(()=>this[xc("0xa")]())),n[xc("0x13")](xc("0x20")).to(this[xc("0x11")][xc("0x17")],xc("0x1d")),e}}const cc=["ck-annotation__content-wrapper","source","ck-suggestion","formatDateTime","creator",'<span class="ck-suggestion-color" style="background-color: ',"cancel","ck-suggestion--disabled-comments","ck-suggestion-wrapper--active","bind","disableComments","userView","ck-annotation__actions","_config","commentsListView","ck-suggestion__main","ck-suggestion-wrapper","push","EXTERNAL_SUGGESTION","render","_createButton","span","type","ck-annotation__info-name","_model","discardSuggestion","innerHTML","isExternal","div","change:description","importWord","time","acceptSuggestion","commentThreadInputView","set","isEnabled","ck-suggestion--discard","ck-suggestion__actions","locale",'"></span>',"ck-annotation__info","ck-annotation__main","map","EXTERNAL_IMPORT_WORD_SUGGESTION","acceptButton","title","ck-suggestion__user","commentThread","value",'" title="',"content","getUserViewNotificationText","Discard suggestion","name","fire","extendTemplate","ck-annotation__user","EXTERNAL_IMPORT_WORD_AVATAR","split","querySelector","author","ck-suggestion__info-name","createElement","check","canDiscard","ck-comment__external","children","ck-annotation__info-time","authoredAt","execute","canAccept","@external","attributes","element","EXTERNAL_AVATAR","description","ck-suggestion__info","_descriptionElement","</p>","join","discardButton","isActive","color"];var lc,uc;lc=cc,uc=370,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x4f")]("type",""),this[dc("0x36")]("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this.bind("description").to(this,"descriptionParts",this,dc("0x2b"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e[dc("0xc")],e[dc("0x2c")])+dc("0x28");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x27")]=null,this[dc("0x6")]=this[dc("0x41")](Yo(e,"Accept suggestion"),t.icons[dc("0x19")],"ck-suggestion--accept",dc("0x4d"),"sw"),this.acceptButton[dc("0x36")](dc("0x50")).to(this,dc("0x20")),this[dc("0x2a")]=this[dc("0x41")](Yo(e,dc("0xe")),t.icons[dc("0x33")],dc("0x51"),dc("0x46"),"sw"),this[dc("0x2a")][dc("0x36")](dc("0x50")).to(this,dc("0x1a")),this.userView=new r.UserView(e,this._model.author,this.getUserViewNotificationText()),this[dc("0x38")][dc("0x11")]({attributes:{class:[dc("0x8"),dc("0x12")]}}),this.setTemplate(this.getTemplate())}getTemplate(){const t=this.bindTemplate,e=[{tag:dc("0x49"),attributes:{class:[dc("0x26"),dc("0x2")]},children:[{tag:dc("0x42"),children:[{text:this[dc("0x38")][dc("0xf")]}],attributes:{class:[dc("0x17"),dc("0x44")]}},{tag:dc("0x4c"),attributes:{datetime:t.to(dc("0x1e")),class:["ck-comment__info-time",dc("0x1d")]},children:[{text:t.to(dc("0x1e"),(t=>this[dc("0x3a")][dc("0x30")](t)))}]}]},{tag:dc("0x49"),attributes:{class:[dc("0x52"),dc("0x39")]},children:[this[dc("0x6")],this.discardButton]},{tag:dc("0x49"),attributes:{class:[dc("0x2d")]}}];this[dc("0x45")][dc("0x48")]&&e[dc("0x3e")]({tag:dc("0x49"),attributes:{class:[dc("0x1b")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:dc("0x49"),attributes:{class:[dc("0x3d"),t.if("isActive",dc("0x35")),t.to(dc("0x43"),(t=>"ck-suggestion-"+t)),this[dc("0x3a")][dc("0x37")]&&dc("0x34")],"data-suggestion-id":this._model.id,"data-thread-id":this._model[dc("0x9")].id,"data-author-id":this[dc("0x45")][dc("0x16")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[dc("0x2f"),"ck-annotation"]},children:[this[dc("0x38")],{tag:dc("0x49"),attributes:{class:[dc("0x3c"),dc("0x3")]},children:e}]}]};return this[dc("0x3b")]&&this[dc("0x4e")]&&n[dc("0x1c")].push(this[dc("0x3b")],this.commentThreadInputView),n}[dc("0x40")](){super[dc("0x40")](),this._descriptionElement=this[dc("0x23")][dc("0x15")](".ck-annotation__content-wrapper"),this[dc("0x27")][dc("0x47")]=this[dc("0x25")],this.on(dc("0x4a"),((t,e,n)=>{this[dc("0x27")][dc("0x47")]=n}))}[dc("0x41")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x0")]);return i[dc("0x4f")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x11")]({attributes:{class:n}}),i.on(dc("0x1f"),(()=>{this[dc("0x10")](o,this[dc("0x45")].id)})),i}getExternalSuggestionNote(){return"importWord"===this[dc("0x45")][dc("0x22")][dc("0x21")].source?Yo(this[dc("0x0")],dc("0x5")):Yo(this[dc("0x0")],dc("0x3f"))}[dc("0xd")](){return this[dc("0x45")].isExternal?dc("0x4b")===this._model[dc("0x22")][dc("0x21")][dc("0x2e")]?Yo(this[dc("0x0")],dc("0x13"),this._model[dc("0x31")][dc("0xf")]):Yo(this.locale,dc("0x24"),this._model[dc("0x31")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x14")]("*")[dc("0x4")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+"</span>":fc(t)))[dc("0x29")](""),e&&(n+=dc("0x32")+e[dc("0xa")]+dc("0xb")+e[dc("0x7")]+dc("0x1")),n}function fc(t){const e=document[dc("0x18")](dc("0x42"));return e.innerText=t,e[dc("0x47")]}const hc=["_suggestionToController","filter","length","isEnabled","_descriptionFactory","mainView","button","trackChanges.SuggestionThreadView","change:previous","size","SuggestionThreadView","_refreshActiveMarkers","editor","unbind","listenTo","Annotations","type","getMarkers","focus","keys","bind","_createUIButton","model","getMarkerNames","getByInnerView","acceptButton","from","descriptionParts","CommentView","init","execute","locale","map","Discard all suggestions","clear","trackChanges.disableComments","componentFactory","getJoined","_updateController","suggestion-","addSourceCollector","change:activeAnnotations","EditorAnnotations","define","source","_annotationViews","createAnnotation","remove","commentThread","arrowView","TrackChangesUI","buttonView","get","push","Accept all suggestions","getSuggestion","refreshSelectedViews","isMultiRange","commandName","comments.maxThreadTotalWeight","value","delete","getFirstRange","editing","getAllAdjacentSuggestions","activeMarkers","hasSuggestion","values","CommentsUI","_disableComments","comments.editorConfig","Discard all selected suggestions","config","TrackChangesEditing","innerView","_destroyController","discardButton","suggestionChanged","isInContent","registerAnnotation","_viewToController","isDirty","commands","actionView","trackChanges","plugins","_initializeController","Accept all selected suggestions","set","destroy","add","switchbutton","has","isOn","_handleSuggestionControllerDelayed","_handleControllerBuffer","head","view","separator","getDescriptions","CommentsRepository","some","createCommentThreadController","comments.maxCommentsWhenCollapsed"];var pc,bc;pc=hc,bc=252,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get requires(){return[za,r.Users,Ec("0x38"),Ec("0x4b"),Ec("0x66")]}static get pluginName(){return Ec("0x6")}constructor(t){super(t),this[Ec("0x3c")]=new Map,this._viewToController=new Map,this[Ec("0x1")]=new Map,this[Ec("0x33")]=new Map;const e=this[Ec("0x48")][Ec("0x1c")];e[Ec("0x67")](Ec("0x43"),gc),e[Ec("0x67")](Ec("0x5f"),!1),this[Ec("0x19")]=e[Ec("0x8")](Ec("0x5f"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Ec("0x45")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Ec("0x3c")][Ec("0x30")](t);n||e?n&&e&&this[Ec("0x1f")](t):this[Ec("0x2a")](t)}this.editor[Ec("0x29")][Ec("0x8")]("EditorAnnotations")[Ec("0xc")](),this[Ec("0x47")](),this[Ec("0x33")][Ec("0x5e")]()}),10),this[Ec("0x33")][Ec("0x2c")](t,e)}[Ec("0x59")](){const t=this.editor,e=t[Ec("0x29")][Ec("0x8")](Ec("0x1d")),n=t[Ec("0x29")][Ec("0x8")](Ec("0x4b")),o=t[Ec("0x29")].get(Ec("0x66")),s=t[Ec("0x29")][Ec("0x8")]("CommentsRepository");t.ui[Ec("0x60")][Ec("0x2e")](Ec("0x28"),(t=>this[Ec("0x51")](t))),o[Ec("0x64")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x56")](this._suggestionToController)){const o=e[Ec("0x14")](),s=[];for(const t of o){if(!t[Ec("0x22")])continue;if(t[Ec("0xd")]){s.push(...t.getRanges());continue}const e=t[Ec("0x12")]();if(s.length>0){const t=s[0][Ec("0x61")](e);if(t){s[0]=t;continue}}s[Ec("0x9")](e)}t[Ec("0x9")]([n[Ec("0x35")],s])}return t})),this[Ec("0x4a")](e,"suggestionLoaded",((t,e)=>{this[Ec("0x4a")](e,Ec("0x44"),((t,n,o,s)=>{e[Ec("0x22")]&&(null==o?(this[Ec("0x62")](s[Ec("0x34")]),this[Ec("0x32")](e,!1)):(this[Ec("0x62")](o[Ec("0x34")]),this[Ec("0x32")](e,!0)))})),null===e.previous?this[Ec("0x32")](e,!1):this._updateController(e[Ec("0x34")])})),this[Ec("0x4a")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Ec("0x44")),this._handleControllerBuffer[Ec("0x11")](e);const o=n?n.head:e,s=this._suggestionToController[Ec("0x8")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x1f")](e)})),this[Ec("0x4a")](e,Ec("0x21"),((t,e)=>{this[Ec("0x62")](e)})),this[Ec("0x4a")](n,Ec("0x65"),(()=>{this[Ec("0x47")]()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x16")](n))return;const s=e[Ec("0xb")](n);this._suggestionToController[Ec("0x8")](s).view[Ec("0x4e")]()}),{priority:"lowest"})}[Ec("0x47")](){const t=this[Ec("0x48")][Ec("0x29")][Ec("0x8")]("Annotations"),e=this[Ec("0x48")].plugins[Ec("0x8")](Ec("0x1d")),n=Array[Ec("0x56")](t.activeAnnotations,(t=>t[Ec("0x1e")])).filter((t=>this[Ec("0x24")][Ec("0x30")](t))),o=[];for(const t of n){const e=this[Ec("0x24")].get(t)[Ec("0x52")].getAllAdjacentSuggestions();o.push(...e.reduce(((t,e)=>[...t,...e[Ec("0x53")]()]),[]))}e[Ec("0x15")]=o}[Ec("0x51")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x48")][Ec("0x26")][Ec("0x8")]("trackChanges"),r=Yo(t,"Track changes");n.buttonView[Ec("0x2c")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x7")].bind(Ec("0x31")).to(o,Ec("0x10")),n[Ec("0x7")].on("execute",(()=>{o[Ec("0x5a")](),this[Ec("0x48")][Ec("0x13")][Ec("0x35")][Ec("0x4e")]()}));const i=new e.Collection,x=[{type:Ec("0x2f"),model:{withText:!0,label:r,commandName:Ec("0x28")}},{type:Ec("0x36")},{type:Ec("0x42"),model:{withText:!0,label:Yo(t,Ec("0xa")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x2b")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x5d")),commandName:"discardAllSuggestions"}},{type:Ec("0x42"),model:{withText:!0,label:Yo(t,Ec("0x1b")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x52")]){const n=new s.Model(t[Ec("0x52")]),o=this[Ec("0x48")][Ec("0x26")].get(n[Ec("0xe")]);n.bind(Ec("0x31"),Ec("0x3f")).to(o,Ec("0x10"),Ec("0x3f")),e={type:t[Ec("0x4c")],model:n}}i[Ec("0x2e")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x3d")]((t=>null!=t[Ec("0x52")]))[Ec("0x5c")]((t=>this.editor[Ec("0x26")][Ec("0x8")](t.model[Ec("0xe")]))),c=n[Ec("0x7")];return c[Ec("0x27")][Ec("0x49")](Ec("0x3f")),c[Ec("0x5")][Ec("0x49")](Ec("0x3f")),c[Ec("0x27")][Ec("0x50")](Ec("0x3f")).to(o,Ec("0x3f")),c[Ec("0x5")][Ec("0x50")](Ec("0x3f")).toMany(a,Ec("0x3f"),((...t)=>t[Ec("0x39")]((t=>t)))),n.on(Ec("0x5a"),(t=>{this[Ec("0x48")][Ec("0x5a")](t[Ec("0x0")][Ec("0xe")]),this[Ec("0x48")][Ec("0x13")][Ec("0x35")].focus()})),n}[Ec("0x2a")](t){const e=this[Ec("0x48")],n=e.config,o=e[Ec("0x29")].get(Ec("0x4b")),s=e.plugins[Ec("0x8")](Ec("0x38")),i=e[Ec("0x29")][Ec("0x8")](Ec("0x66")),x=e[Ec("0x29")][Ec("0x8")](r.Users).me,a=n.get(Ec("0x28"))[Ec("0x46")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x29")][Ec("0x8")](Ec("0x18"));let u,d;this[Ec("0x1")][Ec("0x30")](t.id)?(d=this[Ec("0x1")][Ec("0x8")](t.id),u=d[Ec("0x41")]):(u=new a(e[Ec("0x5b")],t,x,{disableComments:this[Ec("0x19")],editorConfig:n.get(Ec("0x1a")),maxCommentsWhenCollapsed:n[Ec("0x8")](Ec("0x3b")),maxThreadTotalWeight:n.get(Ec("0xf")),maxCommentCharsWhenCollapsed:n[Ec("0x8")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x8")](Ec("0x5b"))),CommentView:n[Ec("0x8")]("comments")[Ec("0x58")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x55")].on("execute",(()=>{e[Ec("0x13")][Ec("0x35")][Ec("0x4e")]()})),u[Ec("0x20")].on(Ec("0x5a"),(()=>{e.editing[Ec("0x35")].focus()})),d=o.createAnnotationView(this[Ec("0x48")][Ec("0x5b")],u),d[Ec("0x50")](Ec("0x25")).to(u,Ec("0x25")),d[Ec("0x50")](Ec("0x3e")).to(u),d.bind(Ec("0x4c")).to(u,Ec("0x4c"),(t=>Ec("0x63")+t)),this[Ec("0x1")][Ec("0x2c")](t.id,d));const g=s[Ec("0x3a")](t[Ec("0x4")],u),m=new oc(e,t,u,g),f=t[Ec("0x14")]()[Ec("0x3d")]((t=>t[Ec("0x22")]));u.descriptionParts=e[Ec("0x29")].get(Ec("0x1d"))[Ec("0x40")][Ec("0x37")](f),this[Ec("0x3c")][Ec("0x2c")](t,m),this._viewToController[Ec("0x2c")](u,m);const h=o[Ec("0x2")]({view:d,target:()=>{const n=[],o=t[Ec("0x14")]()[Ec("0x3d")]((t=>t[Ec("0x22")]));for(const t of o)n.push(...t[Ec("0x4d")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x13")],n)},type:()=>Ec("0x63")+m[Ec("0x35")][Ec("0x4c")]});o[Ec("0x2e")](h),i[Ec("0x23")](h)}_destroyController(t){const e=this[Ec("0x48")][Ec("0x29")][Ec("0x8")]("Annotations"),n=this[Ec("0x3c")].get(t),o=n[Ec("0x35")],s=e[Ec("0x54")](o);s&&e[Ec("0x3")](s),this[Ec("0x3c")].delete(t),this._viewToController[Ec("0x11")](o),n[Ec("0x2d")]()}_updateController(t){if(!t.isInContent||!this._suggestionToController[Ec("0x30")](t))return;const e=this[Ec("0x48")].plugins[Ec("0x8")](Ec("0x1d")),n=this[Ec("0x3c")][Ec("0x8")](t),o=t[Ec("0x14")]();n[Ec("0x35")][Ec("0x57")]=e[Ec("0x40")][Ec("0x37")](o)}[Ec("0x2d")](){for(const t of this[Ec("0x3c")][Ec("0x4f")]())this._destroyController(t);for(const t of this[Ec("0x1")][Ec("0x17")]())t[Ec("0x41")][Ec("0x2d")]();super[Ec("0x2d")]()}}var Tc,Cc,yc=["get","TrackChanges","addSuggestion","plugins","addSuggestionData","adapter","pluginName","requires","getSuggestions","editor","getSuggestion"];Tc=yc,Cc=461,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x8")](){return[za,_c,"Comments"]}static get[kc("0x7")](){return kc("0x2")}set[kc("0x6")](t){this.editor.plugins[kc("0x1")](za)[kc("0x6")]=t}get[kc("0x6")](){return this[kc("0xa")].plugins[kc("0x1")](za)[kc("0x6")]}[kc("0x3")](t){return this[kc("0xa")].plugins[kc("0x1")](za)[kc("0x5")](t)}[kc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0xa")].plugins[kc("0x1")](za)[kc("0x9")]({skipNotAttached:t,toJSON:e})}[kc("0x0")](t){return this[kc("0xa")][kc("0x4")].get(za)[kc("0x0")](t)}}const vc=["has","getDataWithDiscardedSuggestions","addUser","editorCreator","requires","cloudServices","editor","addSuggestionData","push","_adapter","plugins","concat","model","Pagination","find","pluginName","set","TrackChangesData","discardAllSuggestions","function","config","data","createDocumentFragment","constructor","getDataWithAcceptedSuggestions","_context","builtinPlugins","init","track-changes-data-invalid-editor-creator","extraPlugins","useAnonymousUser","WordCount","result","define","document","appendChild","map","destroy","getSuggestions","getRootNames","name","TrackChangesEditing","WebSocketGateway","context","get","tokenUrl","RevisionTracker","createElement","trackChangesData.editorCreator","DocumentOutline","div","TrackChangesDataGetter","every","users","Users","trackChangesData"];var Rc,Sc;Rc=vc,Sc=238,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["initialData",Ic("0x1d"),"toolbar"],Nc=[Ic("0x1c"),Ic("0x20"),"Autosave",Ic("0x11"),Ic("0x37"),Ic("0x23")];class Mc extends t.Plugin{static get[Ic("0x2e")](){return[za]}static get pluginName(){return Ic("0x3")}[Ic("0xd")](){const t=this.editor;if(t[Ic("0x6")][Ic("0x13")](Ic("0x22"),(e=>t[Ic("0x9")].create("",e))),Ic("0x5")!=typeof t[Ic("0x6")][Ic("0x1e")](Ic("0x29"))[Ic("0x2d")])throw new e.CKEditorError(Ic("0xe"))}[Ic("0xa")](t){return Oc(this[Ic("0x30")],!0,t)}[Ic("0x2b")](t){return Oc(this[Ic("0x30")],!1,t)}}class wc extends t.Plugin{static get[Ic("0x1")](){return Ic("0x25")}constructor(t){super(t),this[Ic("0x12")]="end"}[Ic("0xd")](){this[Ic("0x30")][Ic("0x34")][Ic("0x1e")]("CommentsRepository")[Ic("0x33")]={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[Ic("0x30")][Ic("0x34")].get(Ic("0x1b"))[Ic("0x33")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0x6")].names())Lc.includes(n)||(e[n]=t.config[Ic("0x1e")](n));e[Ic("0x2f")]&&e[Ic("0x2f")][Ic("0x1f")]&&delete e.cloudServices.tokenUrl;const n=t[Ic("0x9")][Ic("0xc")]||[],o=e[Ic("0xf")]||[];delete e[Ic("0xf")];const s=t[Ic("0xb")][Ic("0x6")][Ic("0x1e")](Ic("0x34"))||[],r=n.concat(e[Ic("0x34")])[Ic("0x35")](o).concat(s)[Ic("0x16")]((t=>"string"==typeof t?n[Ic("0x0")]((e=>e.pluginName==t)):t)),i=Array.from(new Set(r)),x=new Map;return e[Ic("0x34")]=i.filter((t=>Fc(t,x))),e.plugins[Ic("0x32")](za),e[Ic("0x34")][Ic("0x32")](wc),e}(t),s=document[Ic("0x8")](),r=t[Ic("0x6")][Ic("0x1e")](Ic("0x29"))[Ic("0x2d")],i=await r(o,(()=>function(t){const e=document[Ic("0x21")](Ic("0x24"));return t[Ic("0x15")](e),e}(s)));!function(t,e){const n=t[Ic("0x36")][Ic("0x14")][Ic("0x19")]().reduce(((e,n)=>(e[n]=t[Ic("0x7")][Ic("0x1e")]({rootName:n}),e)),{}),o=t[Ic("0x34")][Ic("0x1e")]("Users")[Ic("0x27")].map((t=>({id:t.id,name:t[Ic("0x1a")]}))),s=t[Ic("0x34")][Ic("0x1e")](Ic("0x1b"))[Ic("0x18")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x34")][Ic("0x1e")](Ic("0x28")),i=e.plugins.get("TrackChangesEditing");for(const t of o)r.getUser(t.id)||r[Ic("0x2c")](t);r.me||r[Ic("0x10")]();for(const t of s)i[Ic("0x31")](t);e.data[Ic("0x2")](n)}(t,i),i.execute(e?"acceptAllSuggestions":Ic("0x4"));const x=i.data[Ic("0x1e")](n);return await i[Ic("0x17")](),x}function Fc(t,e){const n="function"==typeof t?t.pluginName||t.name:t;if(e[Ic("0x2a")](n))return e.get(n);if(e[Ic("0x2")](n,!0),n&&Nc.includes(n))return e[Ic("0x2")](n,!1),!1;if(!t.requires)return e[Ic("0x2")](n,!0),!0;const o=t[Ic("0x2e")][Ic("0x26")]((t=>Fc(t,e)));return e[Ic("0x2")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["execute","TrackChangesCommand","_enabledCommands","_isEnabledBasedOnSelection","_enableCommands","refresh","has","value","affectsData","_disableUnsupportedCommands","commands","editor","isEnabled","clearForceDisabled"];var c,l;c=a,l=479,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xd")]=e,this.value=!1,this[d("0x2")](),this[d("0x0")]=!1}refresh(){this[d("0x9")]=!0}[d("0xb")](){this[d("0x4")]=!this.value,this[d("0x4")]?this[d("0x6")]():this[d("0x1")]()}_disableUnsupportedCommands(){for(const t of this[d("0x8")][d("0x7")][d("0x7")]())t[d("0x5")]&&!this[d("0xd")][d("0x3")](t)&&t.forceDisabled(d("0xc"))}[d("0x1")](){for(const t of this[d("0x8")][d("0x7")][d("0x7")]())t.affectsData&&!this[d("0xd")][d("0x3")](t)&&t[d("0xa")](d("0xc"))}}const g=["refresh","execute","get","editor","acceptSuggestion","getRanges","model","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","isEnabled","TrackChangesEditing","plugins","_suggestions"];var m,f;m=g,f=376,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x0")]=e,this[h("0x1")](),this[h("0x9")]=!1}refresh(){this[h("0xa")]=!0}[h("0x2")](t){const n=this._suggestions[h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x8"),this);const o=n[h("0x6")]();this[h("0x4")][h("0x7")].canEditAt(o)&&this[h("0x4")][h("0xc")][h("0x3")](h("0xb"))[h("0x5")](n)}}const b=["editor","_isEnabledBasedOnSelection","TrackChangesEditing","execute","refresh","get","_suggestions","getRanges"];var E,_;E=b,_=476,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this[T("0x5")]=!1}[T("0x0")](){this.isEnabled=!0}[T("0x7")](t){const n=this[T("0x2")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x3")]();this[T("0x4")].model.canEditAt(o)&&this.editor.plugins[T("0x1")](T("0x6")).discardSuggestion(n)}}const y=["createRange","execute","from","splice","getRanges","end","push","join","map","next","isInContent","createPositionBefore","sort","length","start","color","createPositionAfter","isObject","getMarkers","createPositionAt","add","getRange","isIntersecting","isArray","deletion","type"];var k,A;k=y,A=209,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xb")](((t,e)=>v("0x17")==t.type&&"deletion"!=e[v("0x18")]?-1:v("0x17")!=t.type&&v("0x17")==e[v("0x18")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0xc")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),S(e,i,x)||(s[v("0x5")](e[v("0x19")](n,r[v("0x10")](i)?e.createPositionAfter(i):e[v("0x12")](i,v("0x4")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t[v("0xa")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0xc")];){const o=n[v("0x2")](0,100);t.change((()=>{for(const t of o)t[v("0x9")]&&e[v("0x0")](t.id)}))}}const N=["values","_command","some","getRanges","isEnabled","editor","_isEnabledBasedOnSelection","isInContent","model","from","canEditAt","_suggestions"];var M,w;M=N,w=417,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this[O("0x2")]=n,this.refresh(),this[O("0x9")]=!1}refresh(){const t=Array[O("0x0")](this[O("0x2")].values())[O("0x5")]((t=>t[O("0xa")]));this[O("0x7")]=this[O("0x4")].isEnabled&&t}execute(){const t=R(Array[O("0x0")](this[O("0x2")][O("0x3")]()));for(const e of t){const t=e[O("0x6")]();if(!this.editor[O("0xb")][O("0x1")](t))return}L(this[O("0x8")][O("0xb")],this[O("0x4")],t)}}const P=["_command","document","isEnabled","_selectedSuggestions","_suggestions","editor","model","selection","values","getRanges","canEditAt","_isEnabledBasedOnSelection","size","refresh"];var D,B;D=P,B=125,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x1")]=e,this[j("0x5")]=n,this._selectedSuggestions=new Set,this[j("0x0")](),this[j("0xc")]=!1}[j("0x0")](){const t=this[j("0x6")].model[j("0x2")][j("0x8")],e=Array.from(this[j("0x5")][j("0x9")]());this[j("0x4")]=function(t,e){const n=Array[v("0x1")](t[v("0x3")]()),o=new Set;for(const s of e)if(s[v("0x9")])for(const e of n)for(const n of s[v("0x11")]()){const r=n[v("0x14")]();(e[v("0x15")](r)||t.isCollapsed&&!s.isMultiRange&&s[v("0x8")]&&r[v("0x4")].isTouching(e[v("0xd")]))&&o[v("0x13")](s)}return o}(t,e),this.isEnabled=this[j("0x1")][j("0x3")]&&!!this[j("0x4")][j("0xd")]}execute(){const t=R(Array.from(this[j("0x4")]));for(const e of t){const t=e[j("0xa")]();if(!this.editor[j("0x7")][j("0xb")](t))return}L(this[j("0x6")][j("0x7")],this[j("0x1")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getRange","addMarker","subType","head","decorate","createdAt","setAttribute","_markerNames","removeAttribute","getItems","removeMarker","removeMarkers","markers","previous","clear","next","discard","length","getMarkers","substr","_onDiscard","getRanges","suggestion:","isMultiRange","accept","onDiscard","nodeBefore","isIntersecting","data","getMarkerNames","getFirstMarker","commentThread","start","set","creator","change","reduce","_onAccept","hasComments","get","authoredAt","filter","from","size","getAllAdjacentSuggestions","type","end","getMultiRangeId","onAttributesChange","addRange","_saved","push","add","isIntersectingWithRange","_onAttributesChange","author","delete","_model","addMarkerName","isInContent","isExternal","nodeAfter","@external","attributes"];var $o,Jo;$o=Xo,Jo=279,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x16")]=e[Qo("0x16")],this[Qo("0x2b")]=e[Qo("0x2b")]||null,this[Qo("0x20")]=e[Qo("0x20")],this.creator=e[Qo("0xb")]||e[Qo("0x20")],this[Qo("0x25")]=Boolean(e.attributes&&e[Qo("0x28")][Qo("0x27")]),this[Qo("0x5")]=null,this[Qo("0x22")]=t,this[Qo("0xe")]=e.onAccept,this[Qo("0x3d")]=e[Qo("0x2")],this[Qo("0x1f")]=e[Qo("0x19")],this[Qo("0x30")]=new Set,this[Qo("0x2e")]=null,this.set(Qo("0x11"),null),this[Qo("0xa")](Qo("0x28"),e[Qo("0x28")]||{}),this[Qo("0xa")](Qo("0x36"),null),this[Qo("0xa")](Qo("0x38"),null),this[Qo("0xa")](Qo("0x8"),null),this[Qo("0xa")](Qo("0x1b"),!1),this[Qo("0x2d")](Qo("0x1")),this[Qo("0x2d")](Qo("0x39"))}get[Qo("0x2c")](){let t=this;for(;t[Qo("0x36")];)t=t[Qo("0x36")];return t}get[Qo("0xf")](){return!!this[Qo("0x8")]&&this[Qo("0x8")][Qo("0x3a")]>0}get[Qo("0x0")](){return 0!=this[Qo("0x30")][Qo("0x14")]&&6==Array.from(this[Qo("0x30")])[0].split(":")[Qo("0x3a")]}get[Qo("0x24")](){return null!==this[Qo("0x7")]()}[Qo("0x23")](t){this._markerNames[Qo("0x1d")](t)}getMarkerNames(){return Array[Qo("0x13")](this[Qo("0x30")])}getMarkers(){return this[Qo("0x6")]().map((t=>this[Qo("0x22")][Qo("0x35")][Qo("0x10")](t)))[Qo("0x12")]((t=>t))}[Qo("0x7")](){return this[Qo("0x3b")]()[0]||null}removeMarkers(){this[Qo("0x22")][Qo("0xc")]((t=>{for(const e of this[Qo("0x3b")]())t[Qo("0x33")](e)})),this[Qo("0x30")][Qo("0x37")]()}[Qo("0x33")](t){this[Qo("0x22")][Qo("0xc")]((e=>{e[Qo("0x33")](t)})),this[Qo("0x30")][Qo("0x21")](t)}[Qo("0x1a")](t){const e=Qo("0x3f")+this[Qo("0x16")]+":"+this.subType+":"+this.id+":"+this[Qo("0xb")].id+":"+Zo[Qo("0x18")]();this[Qo("0x23")](e),this[Qo("0x22")][Qo("0xc")]((n=>{n[Qo("0x2a")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x1e")](t){for(const e of this[Qo("0x3e")]())if(e[Qo("0x4")](t))return!0;return!1}[Qo("0x3e")](){return this.getMarkers().map((t=>t[Qo("0x29")]()))}[Qo("0x32")](){return this[Qo("0x3e")]()[Qo("0xd")](((t,e)=>[...t,...e[Qo("0x32")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x7")]())||void 0===t?void 0:t[Qo("0x29")]())||null}getContainedElement(){const t=this[Qo("0x3e")]();if(1!=t[Qo("0x3a")])return null;const e=t[0],n=e[Qo("0x9")][Qo("0x26")],o=e[Qo("0x17")][Qo("0x3")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x1")](){this[Qo("0xe")](this.getRanges(),this[Qo("0x5")],this[Qo("0x28")]),this.removeMarkers()}discard(){this[Qo("0x3d")](this[Qo("0x3e")](),this[Qo("0x5")],this.attributes),this[Qo("0x34")]()}[Qo("0x15")](){const t=[];let e=this[Qo("0x2c")];for(;e;)t[Qo("0x1c")](e),e=e[Qo("0x38")];return t}[Qo("0x2f")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x28")]=n,this[Qo("0x1f")](n))}[Qo("0x31")](t){const e=eo(this[Qo("0x28")]);qo(e,t),Go(e,this[Qo("0x28")])||(this[Qo("0x28")]=e,this[Qo("0x1f")](this[Qo("0x28")]))}toJSON(){return{id:this.id,type:this[Qo("0x2b")]?this.type+":"+this[Qo("0x2b")]:this[Qo("0x16")],authorId:this[Qo("0xb")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this.data,attributes:this[Qo("0x28")]}}static[Qo("0x18")](){return(0,e.uid)()[Qo("0x3c")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["softBreak","getFirstRange","addObject","insertion","quantity","checkChild","type","REPLACE_TEXT","matchingCallback","getDescriptions","Container","data","_customCallbacks","skip","_itemLabels","pop","_locale","text","removeContainer","EmptyContainer","remove","isEqual","normal","end","indexOf","replace","get","push","element","$textProxy","$text","item","elementEnd","_schema","function","match","removeObject","start","_itemLabelsCallbacks","nextSibling","elementStart","isEmpty","getItemLabel","set","getWalker","_addDescriptionItems","name","_resolveDescriptionItems","removeEmptyContainer","deletion","isObject","*Insert:* %0","add","label","addContainer","$1 $2","addEmptyContainer","previousSibling","length","*Remove:* %0"];var es,ns;es=ts,ns=214,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x28")]=new Map,this[os("0x4")]=[],this._schema=t,this[os("0x2a")]=e}[os("0x23")](t){const e=[];for(let n=0;n<t[os("0x18")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x26")]){const n=t(o);if(n){"type"in n&&e[os("0x35")](n),s=!0;break}}if(!s){this[os("0xb")](e,o);const s=t[n+1];if(s&&!o[os("0x1b")]()[os("0x31")][os("0x2f")](s[os("0x1b")]()[os("0x3")])){const t=e[e[os("0x18")]-1],n=os("0x1d")==o[os("0x20")]?os("0x12"):"remove";t&&"text"==t[os("0x20")]&&(t[n]+="\n")}}}return this[os("0xd")](e)}registerDescriptionCallback(t){this[os("0x26")][os("0x35")](t)}registerElementLabel(t,n,o=e.priorities[os("0x30")]){os("0x0")==typeof t?(0,e.insertToPriorityArray)(this[os("0x4")],{matchingCallback:t,label:n,priority:o}):this[os("0x28")][os("0x9")](t,n)}[os("0x8")](t,e=1){let n;for(const e of this[os("0x4")])if(e[os("0x22")](t)){n=e[os("0x13")];break}return n||(n=this[os("0x28")][os("0x34")](t[os("0xc")])),n?n(e):1!==e?e+" "+t[os("0xc")]+"s":""+t[os("0xc")]}[os("0xb")](t,e){const n=e[os("0x1b")]()[os("0xa")](),o="insertion"==e[os("0x20")]?os("0x12"):"remove";for(const e of n){const s=e[os("0x39")],r=t[t[os("0x18")]-1];if(s.is(os("0x37")))r&&r[os("0x20")][os("0x32")](os("0x24"))>-1&&t[os("0x29")](),r&&"text"==r.type?r[o]+=s.data:t[os("0x35")]({type:"text",add:os("0x12")==o?s[os("0x25")]:"",remove:os("0x2e")==o?s[os("0x25")]:""});else if(this._schema[os("0x10")](s)){const i=s;if(r&&r[os("0x20")].indexOf(os("0x24"))>-1&&t[os("0x29")](),"elementEnd"==e[os("0x20")])continue;r&&r[os("0x20")]==o+"Object"&&r.element[os("0xc")]==i[os("0xc")]?r.quantity++:t[os("0x35")]({type:o+"Object",element:i,quantity:1}),n[os("0x27")]((t=>!(os("0x3a")==t[os("0x20")]&&t[os("0x39")]==s)))}else if(this[os("0x3b")][os("0x1f")](s,os("0x38"))||s.is("element",os("0x1a"))){const n=s;if(os("0x12")==o&&os("0x6")==e.type||os("0x2e")==o&&os("0x3a")==e[os("0x20")])continue;if(r&&-1==r[os("0x20")].indexOf(os("0x24"))){os("0x2b")==r[os("0x20")]&&(r[o]+="\n");continue}let i;if(i=os("0x12")==o?n.nextSibling&&!this[os("0x3b")][os("0x10")](n[os("0x5")])?n[os("0x5")]:null:n.previousSibling&&!this[os("0x3b")][os("0x10")](n[os("0x17")])?n[os("0x17")]:null,n[os("0x7")]||i&&i[os("0x7")]){const e=i&&i[os("0x7")]?i:n;r&&r.type==o+os("0x2d")&&r[os("0x36")][os("0xc")]==e[os("0xc")]?r.quantity++:t[os("0x35")]({type:o+os("0x2d"),element:e,quantity:1})}else t[os("0x35")]({type:o+"Container",element:n})}}}[os("0xd")](t){const e=this[os("0x2a")],n=[];for(const o of t){switch(o.type){case os("0x2b"):if(o[os("0x12")]=o.add[os("0x33")](/(\S)\u000A+(\S)/g,os("0x15"))[os("0x33")](/\u000A/g,""),o[os("0x2e")]=o[os("0x2e")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x33")](/\u000A/g,""),""!=o[os("0x12")]&&""!=o[os("0x2e")]){n[os("0x35")]({type:"replace",content:Yo(e,os("0x21"),['"'+o.remove+'"','"'+o[os("0x12")]+'"'])});continue}if(null!=o[os("0x12")][os("0x1")](/^ +$/)){n.push({type:os("0x1d"),content:Yo(e,os("0x11"),Yo(e,"ELEMENT_SPACE",o.add[os("0x18")]))});continue}if(null!=o[os("0x2e")].match(/^ +$/)){n.push({type:os("0xf"),content:Yo(e,os("0x19"),Yo(e,"ELEMENT_SPACE",o[os("0x2e")].length))});continue}if(""!=o.add){n[os("0x35")]({type:os("0x1d"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x12")]+'"')});continue}n[os("0x35")]({type:os("0xf"),content:Yo(e,"*Remove:* %0",'"'+o.remove+'"')});continue;case os("0x16"):case os("0x1c"):n[os("0x35")]({type:os("0x1d"),content:Yo(e,os("0x11"),this.getItemLabel(o[os("0x36")],o[os("0x1e")]))});continue;case os("0xe"):case os("0x2"):n[os("0x35")]({type:os("0xf"),content:Yo(e,"*Remove:* %0",this[os("0x8")](o[os("0x36")],o[os("0x1e")]))});continue;case os("0x14"):n.push({type:os("0x1d"),content:Yo(e,"*Split:* %0",this[os("0x8")](o[os("0x36")],o[os("0x1e")]))});continue;case os("0x2c"):n[os("0x35")]({type:"deletion",content:Yo(e,"*Merge:* %0",this[os("0x8")](o[os("0x36")],o[os("0x1e")]))});continue}n[os("0x35")](o)}return n}}const rs=["model","schema","document","center","enableCommand","editor","AlignmentEditing","FORMAT_ALIGN_TO_CENTER","plugins","TrackChangesEditing","getAttribute","change","from","getSelectedBlocks","alignment","right","locale","value","justify","afterInit","FORMAT_ALIGN_TO_RIGHT","registerDescriptionCallback","contentLanguageDirection","get","commandName","left","selection","checkAttribute","markBlockFormat"];var is,xs;is=rs,xs=160,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x4")](){const t=this[as("0x13")],e=t.locale;if(!t.plugins.has(as("0x14")))return;const n=t[as("0x16")][as("0x8")](as("0x17"));n[as("0x12")](as("0x1c"),((e,o={})=>{let s=o.value;o[as("0x2")]||(s="ltr"===t[as("0x1")][as("0x7")]?"left":as("0x0"));const r=Array[as("0x1a")](this[as("0x13")][as("0xe")][as("0x10")][as("0xb")][as("0x1b")]()).filter((t=>function(t,e,n){const o=t[as("0x18")](as("0x1c"))||null;return e[as("0xc")](t,"alignment")&&n!=o}(t,this[as("0x13")][as("0xe")][as("0xf")],s)));t[as("0xe")][as("0x19")]((()=>{for(const t of r)n[as("0xd")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x6")]((t=>{const{data:n}=t;if(n&&as("0x1c")==n[as("0x9")]){const t=n.commandParams[0][as("0x2")];return{type:"format",content:Yo(e,"*Format:* %0",function(t){switch(t){case as("0xa"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(e,as("0x5"));case as("0x11"):return Yo(e,as("0x15"));case as("0x3"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["isAtEnd","test","markerName","markerRange","mapper","hasAttribute","element","ck-suggestion-marker-","includes","listItem","model","push","item","toViewPosition","isBlock","activeMarkers","plugins","getWalker","getCustomProperty","getAttribute","parent","bindElementToMarker","start","listIndent","writer","nextSibling","schema","getItems","isLimit","name","consumable","ck-suggestion-marker--active","createRangeOn","previousPosition","isContent"];var ds,us;ds=ls,us=322,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x14")]())s[gs("0x21")](t)&&o[gs("0x4")](n[gs("0x19")](s));return o}function fs(t){const e=[];if(t.is(gs("0x22"),"listItem")){let n=t.nextSibling;for(;n&&n.is(gs("0x22"),gs("0x2"))&&n[gs("0xc")](gs("0x10"))>0;)e[gs("0x4")](n),n=n.nextSibling}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x9")].get("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x17")][gs("0x1d")](r[gs("0x1f")],s[gs("0x16")]))return;const x=r[gs("0x1f")][gs("0xa")](),a=r[gs("0x1f")][gs("0xf")],c=t[gs("0x3")][gs("0x13")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x5")];u=u||c[gs("0x1b")](e);const n=i[gs("0x20")].toViewElement(e);if(n&&n[gs("0xb")]("addHighlight"))return;"elementEnd"==t.type&&c[gs("0x7")](e)&&!c[gs("0x15")](e)&&(e[gs("0x12")]||a[gs("0x1c")]?l&&l[gs("0xd")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x1a")])}function m(t){const s=i[gs("0x11")].createUIElement("span",{class:gs("0x0")+e}),x=i.mapper[gs("0x6")](t);n&&o[gs("0x8")][gs("0x1")](r.markerName)&&i[gs("0x11")].addClass(gs("0x18"),s),i.writer.insert(x,s),i[gs("0x20")][gs("0xe")](s,r[gs("0x1e")])}u||g||!d||m(d)}}const ps=["has","markInlineFormat","strikethrough","UnderlineEditing","forceValue","FORMAT_ITALIC","TrackChangesEditing","CodeEditing","*Format:* %0","subscript","from","SuperscriptEditing","FORMAT_STRIKETHROUGH","BoldEditing","getRanges","document","*Remove format:* %0","code","editor","registerDescriptionCallback","superscript","ItalicEditing","underline","selection","toLowerCase","FORMAT_SUPERSCRIPT","commandName","afterInit","italic","value","get","_descriptionFactory","commandParams","format","plugins","SubscriptEditing","StrikethroughEditing","FORMAT_SUBSCRIPT","locale"];var bs,Es;bs=ps,Es=193,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xf"),_s("0x17"),_s("0x5"),_s("0x9"),_s("0x26"),_s("0x25"),_s("0xd")];class Cs extends t.Plugin{[_s("0x1d")](){const t=this[_s("0x14")],e=t.model,n=t[_s("0x24")].get(_s("0x8")),o=t[_s("0x1")];for(const o of Ts){if(!t[_s("0x24")][_s("0x2")](o))continue;const s=o.slice(0,-7)[_s("0x1a")](),r=t.commands[_s("0x20")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x11")][_s("0x19")];if(i.isCollapsed)return void t(o);const x=void 0!==o.forceValue?o[_s("0x6")]:!r[_s("0x1f")];e.change((()=>{const t=Array[_s("0xc")](i[_s("0x10")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x3")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x21")][_s("0x15")]((n=>{const{data:s}=n;if(s&&s[_s("0x1c")]===t)return s[_s("0x22")][0][_s("0x6")]?{type:_s("0x23"),content:Yo(o,_s("0xa"),e)}:{type:_s("0x23"),content:Yo(o,_s("0x12"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0x1e"),Yo(o,_s("0x7"))),s(_s("0x18"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x13"),Yo(o,"FORMAT_CODE")),s(_s("0x4"),Yo(o,_s("0xe"))),s(_s("0xb"),Yo(o,_s("0x0"))),s(_s("0x16"),Yo(o,_s("0x1b")))}}const ys=["from","forceValue","registerDescriptionCallback","get","schema","$root","change","markBlockFormat","commandParams","model","enableCommand","selection","*Remove format:* %0","getSelectedBlocks","commands","afterInit","locale","format","ELEMENT_BLOCK_QUOTE","*Format:* %0","editor","checkChild","document","blockQuote","BlockQuoteEditing","TrackChangesEditing","parent","commandName","plugins","filter"];var ks,As;ks=ys,As=197,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x1c")](){const t=this.editor,e=t[vs("0x1d")];if(!t[vs("0xb")].has(vs("0x7")))return;const n=t.plugins[vs("0x10")](vs("0x8")),o=this[vs("0x3")][vs("0x1b")][vs("0x10")](vs("0x6"));n[vs("0x17")](vs("0x6"),((e,s={})=>{const r=this.editor.model[vs("0x5")][vs("0x18")],i=s&&void 0!==s.forceValue?s[vs("0xe")]:!o.value;let x=[];if(i){const e=Array.from(r.getSelectedBlocks())[vs("0xc")]((t=>Is(t)||function(t,e){const n=e[vs("0x4")](t.parent,vs("0x6")),o=e.checkChild([vs("0x12"),vs("0x6")],t);return n&&o}(t,this.editor.model[vs("0x11")])));x=I(e,t.model)}else{const e=Array[vs("0xd")](r[vs("0x1a")]())[vs("0xc")]((t=>Is(t)));x=I(e,t[vs("0x16")])}t.model[vs("0x13")]((()=>{for(const t of x)n[vs("0x14")](t,{commandName:vs("0x6"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0xf")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vs("0xa")]){const t=Yo(e,vs("0x1"));return n[vs("0x15")][0].forceValue?{type:vs("0x0"),content:Yo(e,vs("0x2"),t)}:{type:vs("0x0"),content:Yo(e,vs("0x19"),t)}}}))}}function Is(t){return"blockQuote"==t[vs("0x9")].name}const Ss=["enableCommand","ckbox","commands","editor","TrackChangesEditing","get","plugins"];var Ls,Ns;Ls=Ss,Ns=352,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ms("0x1")];t[Ms("0x0")].get(Ms("0x6"))&&t[Ms("0x4")][Ms("0x3")](Ms("0x2"))[Ms("0x5")](Ms("0x6"))}}const Os=["filter","_descriptionFactory","model","checkChild","get","editor","change","forceValue","language","registerElementLabel","parent","markBlockFormat","selection","commands","codeBlock","plugins","format","blockName","afterInit","languages","label","indentCodeBlock","locale","from","ELEMENT_CODE_BLOCK","rootElement","schema","*Format:* %0","document","isLimit","commandParams","registerDescriptionCallback","getSelectedBlocks","config","CodeBlock","enableCommand"];var Fs,Ps;Fs=Os,Ps=353,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x19")](){const t=this[Ds("0xc")];if(!t[Ds("0x16")].has(Ds("0x5")))return;const e=t[Ds("0x16")][Ds("0xb")]("TrackChangesEditing"),n=t[Ds("0x1d")],o=t[Ds("0x4")][Ds("0xb")](Ds("0x15"))[Ds("0x1a")],s=t[Ds("0x14")][Ds("0xb")](Ds("0x15"));e[Ds("0x6")](Ds("0x1c")),e.enableCommand("outdentCodeBlock"),e[Ds("0x6")](Ds("0x15"),((n,r={})=>{const i=t.model,x=t[Ds("0x9")][Ds("0x23")][Ds("0x13")],a=r&&void 0!==r[Ds("0xe")]?r[Ds("0xe")]:!s.value;let c;r[Ds("0xf")]||(r[Ds("0xf")]=o[0].language),c=a?Array[Ds("0x1e")](x[Ds("0x3")]())[Ds("0x7")]((t=>{return js(t)||(e=t,n=i[Ds("0x21")],!e.is(Ds("0x20"))&&!n[Ds("0x0")](e)&&n[Ds("0xa")](e[Ds("0x11")],Ds("0x15")));var e,n})):Array.from(x[Ds("0x3")]())[Ds("0x7")]((t=>js(t)));const l=I(c,i);i[Ds("0xd")]((()=>{for(const t of l)e[Ds("0x12")](t,{commandName:Ds("0x15"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x18")})}))})),e[Ds("0x8")][Ds("0x10")](Ds("0x15"),(t=>Yo(n,Ds("0x1f"),t))),e[Ds("0x8")][Ds("0x2")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0x15")==r.commandName){const t=r.commandParams[0][Ds("0xf")],s=e(o.find((e=>e[Ds("0xf")]===t))[Ds("0x1b")]);return r[Ds("0x1")][0][Ds("0xe")]?{type:"format",content:Yo(n,Ds("0x22"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x17"),content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x1f"),1))}}}))}}function js(t){return Ds("0x15")==t.name}const Us=["enableCommand","afterInit","get","CommentsEditing","editor","plugins","TrackChangesEditing","addCommentThread","has"];var Gs,Hs;Gs=Us,Hs=111,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x7")](){const t=this[zs("0x1")];t[zs("0x2")][zs("0x5")](zs("0x0"))&&t[zs("0x2")][zs("0x8")](zs("0x3"))[zs("0x6")](zs("0x4"))}}var Vs=n(181);const Ks=["createSelection","batch","uiElement","data","merge","options","writer","mapper","unbindElementFromMarkerName","requires","fromRange","selection","markerName","$graveyard","enqueueChange","remove","unlock","markerNameToElements","deleteForward","start","editing","modifySelection","commands","enableCommand","downcastDispatcher","delete","detach","getFirstRange","addMarker:suggestion:deletion","lock","forward","end","unit","buffer","createRange","high","editor","get","model","bind","TrackChangesEditing","document"];var qs,Xs;qs=Ks,Xs=394,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x23")](){return[Vs.Delete]}init(){const t=this[$s("0x14")],e=t.plugins[$s("0x15")]($s("0x18"));e[$s("0x7")]($s("0x9"));const n=t[$s("0x6")][$s("0x15")]($s("0x2"));e[$s("0x7")]($s("0x2"),((e,o={})=>{const s=t[$s("0x16")][$s("0x1a")](t.model[$s("0x19")][$s("0x25")]);s.isCollapsed&&t[$s("0x16")][$s("0x5")](s,{direction:$s("0xe"),unit:o[$s("0x10")]});const r=s[$s("0xb")](),x=i.LiveRange[$s("0x24")](r);let a;e(o),a=$s("0x27")==x.root.rootName?t[$s("0x16")].createRange(r[$s("0x3")]):t[$s("0x16")][$s("0x12")](x[$s("0x3")],x[$s("0xf")]),x[$s("0xa")](),t.model[$s("0x28")](n[$s("0x11")][$s("0x1b")],(t=>{n[$s("0x11")][$s("0xd")](),t.setSelection(t.createRange(a[$s("0xf")])),n.buffer[$s("0x0")]()}))})),t[$s("0x4")][$s("0x8")].on("addMarker:suggestion:deletion",hs(t,$s("0x1e")),{priority:$s("0x13")}),t[$s("0x1d")][$s("0x8")].on($s("0xc"),((e,n,o)=>{o[$s("0x1f")].showSuggestionHighlights&&hs(t,$s("0x1e"),{showActiveMarker:!1})[$s("0x17")](this)(e,n,o)}),{priority:$s("0x13")}),t[$s("0x4")][$s("0x8")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x21")][$s("0x1")](e[$s("0x26")]);if(o)for(const t of o)t.is($s("0x1c"))&&(n.mapper[$s("0x22")](t,e[$s("0x26")]),n[$s("0x20")][$s("0x29")](t))}),{priority:$s("0x13")})}}const Qs=["isObject","*Outdent:* %0","formatBlock","mergeListItemBackward","getSelectedBlocks","commands","ELEMENT_LIST_ITEM","editor","getRanges","after","push","*Merge:* %0","DocumentListEditing","slice","createRange","*Format:* remove from %0","forceValue","model","before","*Change to:* %0","_descriptionFactory","commandParams","get","listItemId","commandName","createPositionAt","listIndent","splitListItemAfter","change","previousSibling","afterInit","*Format:* insert into %0","splitListItemBefore","fromRange","registerCustomCallback","*Indent:* %0","enableCommand","deletion","toUpperCase","next","registerDescriptionCallback","start","outdentList","indentList","_suggestionFactory","nodeAfter","nextSibling","containsItem","value","format","numberedList","detach","add","setSelection","parent","bulletedList","documentList","markBlockFormat","map","execute","hasAttribute","plugins","from","registerElementLabel","listType","document","accept","getFirstRange","schema","selection","ELEMENT_","getAttribute","mergeListItemForward","multipleBlocks"];var Zs,Ys;Zs=Qs,Ys=248,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x4")](){const t=this[tr("0x37")];if(!t[tr("0x23")].has(tr("0x3c")))return;const e=t.locale,n=t[tr("0x23")][tr("0x46")]("TrackChangesEditing"),o=t[tr("0x23")][tr("0x46")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x35")][tr("0x46")](e);let r=Array[tr("0x24")](t[tr("0x41")][tr("0x27")][tr("0x2b")][tr("0x34")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[tr("0x41")][tr("0x2")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x26")},[],tr("0x1e"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t[tr("0x22")](tr("0x47"))));return n>-1&&(e=e[tr("0x3d")](0,n)),e}(t.model[tr("0x27")][tr("0x2b")].getSelectedBlocks()),s=o[o.length-1],r=t[tr("0x41")][tr("0x2a")][tr("0x30")](s)?tr("0x39"):"end",i=t[tr("0x41")][tr("0x3e")](t.model.createPositionAt(o[0],tr("0x42")),t.model[tr("0x49")](s,r));t.model[tr("0x2")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x14")];for(;t&&t[tr("0x2d")](tr("0x0"))>n[tr("0x2d")](tr("0x0"));)e[tr("0x1a")](t),t=t[tr("0x14")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x41")].document.selection[tr("0x34")]()[tr("0xd")]()[tr("0x16")],s=t[tr("0x41")][tr("0x49")](o,tr("0x42")),r=t[tr("0x41")][tr("0x49")](o,0),i=t.model[tr("0x3e")](s,r);t[tr("0x41")][tr("0x2")]((()=>{n[tr("0x1f")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x35")][tr("0x46")](tr("0x1d"))[tr("0x16")],o=t[tr("0x35")][tr("0x46")](tr("0x18"))[tr("0x16")];return tr("0x18")===e?n:o}n[tr("0xa")](tr("0x18"),s(tr("0x18"))),n[tr("0xa")](tr("0x1d"),s(tr("0x1d"))),n[tr("0xa")](tr("0x11"),r("indentList")),n.enableCommand("outdentList",r(tr("0x10"))),n.enableCommand(tr("0x1"),x(tr("0x1"))),n.enableCommand(tr("0x6"),x(tr("0x6"))),n[tr("0x44")][tr("0x25")]((function(e){const n=!t[tr("0x41")].schema.isObject(e),o=e[tr("0x3")],s=e.nextSibling,r=e.getAttribute(tr("0x47")),i=!o||o.getAttribute(tr("0x47"))!==r,x=!s||s.getAttribute(tr("0x47"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[tr("0xe")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n[tr("0x45")][0][tr("0x40")],i=a(n[tr("0x48")]),o=tr(r?"0x5":"0x3f"),i&&(o=tr("0x43")),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":r=n[tr("0x45")][0][tr("0x40")],i=a(n.commandName),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x43")),s={type:tr("0x17"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case"indentList":o=tr("0x9"),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x10"):o=function(t){const e=t[tr("0x29")]();let n=e[tr("0xf")][tr("0x13")];for(;n&&e[tr("0x15")](n);){if(n[tr("0x2d")](tr("0x0"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x3f"),Yo(e,function(t){const e=t[tr("0x29")]()[tr("0xf")][tr("0x13")];return tr("0x2c")+e.getAttribute(tr("0x26"))[tr("0xc")]()+"_LIST"}(t))):Yo(e,tr("0x31"),Yo(e,tr("0x36"))),s={type:tr("0x17"),content:o};break;case tr("0x33"):case tr("0x2e"):!1===n[tr("0x2f")]&&(o=tr("0x3b"),s={type:tr("0xb"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x12")][tr("0x8")](tr("0x32"),"documentList",tr("0x28"),(function(e,n){const o=[];for(let n of e)n[tr("0xf")].nodeAfter===n.end[tr("0x1c")]&&(n=t[tr("0x41")][tr("0x3e")](t.model[tr("0x49")](n.start[tr("0x13")],0))),o[tr("0x3a")](n);t.model[tr("0x2")]((e=>{const s=t.model[tr("0x27")].selection,r=Array[tr("0x24")](s[tr("0x38")]())[tr("0x20")]((t=>i.LiveRange[tr("0x7")](t)));e[tr("0x1b")](o),t[tr("0x35")].get(n.commandName).refresh(),n[tr("0x45")][tr("0x3a")]({forceDefaultExecution:!0}),t[tr("0x21")](n[tr("0x48")],...n[tr("0x45")]),e[tr("0x1b")](r);for(const t of r)t[tr("0x19")]()}))}))}}var nr=n(331);const or=["writer","fromRange","createRange","hasClass","getFirstRange","enter","end","editing","markerNameToElements","nextSibling","TrackChangesEditing","selection","parent","addMarker:suggestion:insertion","markerName","mapper","commands","showSuggestionHighlights","markInsertion","requires","plugins","downcastDispatcher","change","bind","unbindElementFromMarkerName","get","high","detach","setSelection","model","createPositionAt","enterBlock","removeMarker:suggestion:insertion","options","split","afterExecute","init","ck-suggestion-marker-split"];var sr,rr;sr=or,rr=253,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x20")](){return[nr.Enter]}[ir("0xb")](){const t=this.editor,e=t[ir("0x21")][ir("0x0")](ir("0x17")),n=t[ir("0x1d")][ir("0x0")](ir("0x12"));e.enableCommand("enter",(()=>{t[ir("0x4")][ir("0x23")]((o=>{const s=t.model.document[ir("0x18")],r=s.getFirstPosition(),x=i.LiveRange[ir("0xe")](s[ir("0x11")]());if(n[ir("0x6")](o)){const n=t[ir("0x4")][ir("0x5")](r[ir("0x19")][ir("0x16")],0),s=o.createRange(r,n);e[ir("0x1f")](s)}else o[ir("0x3")](o[ir("0xf")](x[ir("0x13")]));x[ir("0x2")](),n.fire(ir("0xa"),{writer:o})}))})),t.editing[ir("0x22")].on(ir("0x1a"),hs(t,ir("0x9")),{priority:"high"}),t[ir("0x14")][ir("0x22")].on(ir("0x7"),((t,e,n)=>{const o=n[ir("0x1c")][ir("0x15")](e.markerName);if(o)for(const t of o)t[ir("0x10")](ir("0xc"))&&(n[ir("0x1c")][ir("0x25")](t,e[ir("0x1b")]),n[ir("0xd")].remove(t))}),{priority:ir("0x1")}),t.data[ir("0x22")].on(ir("0x1a"),((e,n,o)=>{o[ir("0x8")][ir("0x1e")]&&hs(t,ir("0x9"),{showActiveMarker:!1})[ir("0x24")](this)(e,n,o)}),{priority:ir("0x1")})}}const ar=["has","editor","_isInDeletionRange","start","get","TrackChangesEditing","suggestion:deletion","afterInit","string","bind","handleFindCommand","plugins","getIntersection","FindAndReplaceUtils","model","findNext","end","FindAndReplaceEditing","findPrevious","createPositionAt","replaceAll","enableCommand","markers","replace"];var cr,lr;cr=ar,lr=320,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x17")](){if(!this[dr("0x11")][dr("0x3")][dr("0x10")](dr("0x9")))return;const t=this.editor.plugins.get(dr("0x15"));t[dr("0xd")]("find",this[dr("0x2")][dr("0x1")](this)),t[dr("0xd")](dr("0x7")),t[dr("0xd")](dr("0xa")),t[dr("0xd")](dr("0xf")),t.enableCommand(dr("0xc"))}handleFindCommand(t,e,n={}){const o=this.editor[dr("0x3")][dr("0x14")](dr("0x5"));void 0!==n&&t((t=>(dr("0x0")==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[dr("0x12")](t,e){const n=this[dr("0x11")][dr("0x6")].createRange(this[dr("0x11")][dr("0x6")][dr("0xb")](e,t[dr("0x13")]),this[dr("0x11")][dr("0x6")][dr("0xb")](e,t[dr("0x8")]));for(const t of this[dr("0x11")][dr("0x6")][dr("0xe")].getMarkersGroup(dr("0x16")))if(null!==n[dr("0x4")](t.getRange()))return!0;return!1}}const gr=["trim","toLowerCase","*Reset font background color*","fontColor","fontColor.colors","markInlineFormat","editor","document","title","isCollapsed","format","_enableCommand","find","has","label","commandName","FontSizeEditing","get","from","plugins","commandParams","selection","getRanges","fontBackgroundColor.colors","fontSize","normalizeSizeOptions","_descriptionFactory","*Set font color:* %0","change","model","fontFamily","TrackChangesEditing","fontBackgroundColor","registerDescriptionCallback","*Set font family:* %0","*Reset font family*","afterInit","FontSize","value","FontBackgroundColorEditing","*Set font background color:* %0","config"];var mr,fr;mr=gr,fr=495,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x19"),commandName:hr("0x21")},{pluginName:"FontFamilyEditing",commandName:hr("0x27")},{pluginName:"FontColorEditing",commandName:hr("0xc")},{pluginName:hr("0x6"),commandName:hr("0x29")}];class br extends t.Plugin{[hr("0x3")](){const t=this.editor.locale;for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x1c")][hr("0x16")](t)&&this[hr("0x14")](e);this[hr("0xf")][hr("0x1c")][hr("0x1a")](hr("0x28"))[hr("0x23")][hr("0x0")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x18")]){const e=o[hr("0x1d")][0][hr("0x5")];if(e){const o=n(this[hr("0xf")][hr("0x1c")].get(hr("0x4"))[hr("0x22")](this[hr("0xf")][hr("0x8")][hr("0x1a")]("fontSize.options"))[hr("0x15")]((t=>t.model==e))[hr("0x11")])[hr("0xa")]();return{type:hr("0x13"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x13"),content:Yo(t,"*Reset font size*")}}if(hr("0x27")==o[hr("0x18")]){const e=o.commandParams[0][hr("0x5")];return e?{type:"format",content:Yo(t,hr("0x1"),e)}:{type:hr("0x13"),content:Yo(t,hr("0x2"))}}if("fontColor"==o[hr("0x18")]){const e=o[hr("0x1d")][0][hr("0x5")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xf")][hr("0x8")].get(hr("0xd")))[hr("0x15")]((t=>t[hr("0x26")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x13"),content:Yo(t,hr("0x24"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x13"),content:Yo(t,"*Reset font color*")}}if("fontBackgroundColor"==o[hr("0x18")]){const e=o[hr("0x1d")][0][hr("0x5")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x8")][hr("0x1a")](hr("0x20")))[hr("0x15")]((t=>t[hr("0x26")]==e));let r=e,i="";return o&&(r=o[hr("0x17")],i=n(r)[hr("0xa")]()),{type:hr("0x13"),content:Yo(t,hr("0x7"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x13"),content:Yo(t,hr("0xb"))}}}}))}[hr("0x14")](t){const e=this.editor;e[hr("0x1c")].get("TrackChangesEditing").enableCommand(t,((n,o={})=>{const s=e[hr("0x26")][hr("0x10")][hr("0x1e")],r=o[hr("0x5")];s[hr("0x12")]?n(o):e[hr("0x26")][hr("0x25")]((()=>{const n=Array[hr("0x1b")](s[hr("0x1f")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x26")]);for(const o of n)e.plugins.get(hr("0x28"))[hr("0xe")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["copyFormat","format","getSelectedBlocks","from","_descriptionFactory","config","length","enableCommand","FontSize","createRange","*Set format to:* %0","model","fontSize","plugins","isFormatting","get","getRanges","commands","*Remove all formatting*","backward","commandName","commandParams","selection","find","join","TrackChangesEditing","split","toUpperCase","fontColor","document","getLastPosition","schema","title","entries","push","modifySelection","toLowerCase","getAttributes","normalizeSizeOptions","keys","forward","pasteFormat","word","isCollapsed","getItems","isBlock","afterInit","editor","getAttributeProperties","fontBackgroundColor","label","fontSize.options"];var _r,Tr;_r=Er,Tr=497,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x11")](){const t=this[Cr("0x12")],n=t[Cr("0x22")],o=n[Cr("0x0")][Cr("0x2d")],s=t[Cr("0x24")][Cr("0x26")](Cr("0x30")),r=t.locale,i=t[Cr("0x28")][Cr("0x26")]("copyFormat"),x=t[Cr("0x28")][Cr("0x26")](Cr("0xc"));i&&x&&(s[Cr("0x1e")](Cr("0xc"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0x1a")](o[Cr("0x27")]()),r=o[Cr("0xe")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x8")]()){const t=e[Cr("0x13")](n);t&&t[Cr("0x25")]&&(yield n)}}(t,n));for(const e of t[Cr("0x27")]())for(const t of e[Cr("0xf")]())!n[Cr("0x10")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x19")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x2")]))||0!==Object[Cr("0xa")](i)[Cr("0x1d")])for(const t of r)s.markInlineFormat(t,{commandName:Cr("0xc"),commandParams:[i]})}))})),s[Cr("0x1b")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0xc")===n[Cr("0x2b")]){const e=[],o=n[Cr("0x2c")][0];for(const[n,s]of Object[Cr("0x4")](o))e[Cr("0x5")](Ar(t,n,s));return e[Cr("0x1d")]?{type:"format",content:Yo(r,Cr("0x21"),e[Cr("0x2f")](", "))}:{type:Cr("0x18"),content:Yo(r,Cr("0x29"))}}})),t[Cr("0x24")][Cr("0x26")](Cr("0x30"))[Cr("0x1e")](Cr("0x17")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x6")](n,{unit:"word",direction:Cr("0x2a")});const o=n.getFirstPosition();t[Cr("0x6")](n,{unit:Cr("0xd"),direction:Cr("0xb")});const s=n[Cr("0x1")]();return t[Cr("0x20")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[Cr("0x31")](/(?=[A-Z])/).join(" "),i=o(r.charAt(0)[Cr("0x32")]()+r.slice(1)).toLowerCase();if("boolean"==typeof n)return i;if(Cr("0x33")===e||Cr("0x14")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x1c")][Cr("0x26")]("fontColor.colors"))[Cr("0x2e")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x15")])[Cr("0x7")]():n)+")"}if(Cr("0x23")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x24")][Cr("0x26")](Cr("0x1f"))[Cr("0x9")](t.config[Cr("0x26")](Cr("0x16")))[Cr("0x2e")]((t=>t[Cr("0x22")]==n));return i+" ("+(e?o(e[Cr("0x3")])[Cr("0x7")]():n)+")"}return i+" ("+n+")"}const vr=["heading.options","getSelectedBlocks","commandName","format","document","ELEMENT_HEADING_CUSTOM","registerDescriptionCallback","model","selection","plugins","*Change to:* %0","name","get","heading","blockName","schema","match","filter","formatBlock","value","HeadingEditing","_descriptionFactory","from","config","ELEMENT_HEADING","afterInit","isObject","TrackChangesEditing","title"];var Rr,Ir;Rr=vr,Ir=405,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x1a")](){const t=this.editor,e=t.locale,n=t[Sr("0x18")][Sr("0xd")](Sr("0x1"));if(!t[Sr("0xa")].has(Sr("0x15")))return;const o=t.plugins[Sr("0xd")](Sr("0x1c"));o.enableCommand(Sr("0xe"),((e,n)=>{const s=n[Sr("0x14")],r=Array[Sr("0x17")](this.editor.model[Sr("0x5")][Sr("0x9")][Sr("0x2")]())[Sr("0x12")]((t=>{return e=t,n=s,(o=this.editor[Sr("0x8")][Sr("0x10")]).checkChild(e.parent,n)&&!o[Sr("0x1b")](e)&&e[Sr("0xc")]!=n;var e,n,o}));t[Sr("0x8")].change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Sr("0xe"),commandParams:[n],formatGroupId:Sr("0xf")},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0x8")]&&o[Sr("0x16")].registerElementLabel(t[Sr("0x8")],(e=>{const n=Nr(t[Sr("0x8")]);return null!==n?s(e,n):r(e,t[Sr("0x0")])}));function s(t,n){return Yo(e,Sr("0x19"),[t,n])}function r(t,n){return Yo(e,Sr("0x6"),[t,n])}o[Sr("0x16")][Sr("0x7")]((t=>{const{type:o,data:i}=t;if(Sr("0x13")==o&&i&&Sr("0xe")==i[Sr("0x3")]){const t=i.commandParams[0].value,o=Nr(t);if(null!==o)return{type:Sr("0x4"),content:Yo(e,Sr("0xb"),s(1,o))};const x=n.find((e=>e[Sr("0x8")]===t))[Sr("0x0")];return{type:Sr("0x4"),content:Yo(e,Sr("0xb"),r(1,x))}}}))}}function Nr(t){const e=t[Sr("0x11")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["value","enableCommand","highlight","getAttribute","config","format","_descriptionFactory","model","selection","getFirstPosition","plugins","formatInline","toLowerCase","has","*Remove highlight*","commandName","item","getRanges","*Set highlight:* %0","backward","TrackChangesEditing","push","get","createRange","isCollapsed","commandParams","color","hasAttribute","afterInit","document","find"];var wr,Or;wr=Mr,Or=403,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x1c")](){const t=this.editor;if(!t[Fr("0xa")][Fr("0xd")]("HighlightEditing"))return;const e=t[Fr("0xa")][Fr("0x16")](Fr("0x14"));e[Fr("0x1")](Fr("0x2"),((n,o={})=>{const s=t.model[Fr("0x1d")][Fr("0x8")],r=s[Fr("0x3")]("highlight");let i=o[Fr("0x0")],x=[];if(s[Fr("0x18")]){const e=s[Fr("0x9")]();if(!s[Fr("0x1b")](Fr("0x2")))return void n(o);{const n=t=>t[Fr("0x10")].getAttribute(Fr("0x2"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x13")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x7")][Fr("0x17")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x11")]())i?x.push(e):x[Fr("0x15")](...ms(Fr("0x2"),e,t.model));t[Fr("0x7")].change((()=>{for(const t of x)e.markInlineFormat(t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0x6")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0xb")==o&&s&&Fr("0x2")==s[Fr("0xf")]){const e=n.t,o=s[Fr("0x19")][0][Fr("0x0")];if(o){const s=t[Fr("0x4")][Fr("0x16")]("highlight.options")[Fr("0x1e")]((t=>t.model==o)),r=e(s.title)[Fr("0xc")]();return{type:Fr("0x5"),content:Yo(n,Fr("0x12"),r),color:{value:s[Fr("0x1a")],title:s.title}}}return{type:Fr("0x5"),content:Yo(n,Fr("0xe"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["enableCommand","createPositionAt","insert","dataDowncast","ELEMENT_HORIZONTAL_LINE","has","afterInit","showSuggestionHighlights","conversion","elementToStructure","plugins","addClass","_descriptionFactory","get","ck-horizontal-line","createEmptyElement","for","editor","horizontalLine","registerElementLabel","high","TrackChangesEditing","locale","createContainerElement"];var Br,jr;Br=Dr,jr=172,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x2")](){const t=this[Ur("0xd")];if(!t[Ur("0x6")][Ur("0x1")]("HorizontalLineEditing"))return;t[Ur("0x6")][Ur("0x9")](Ur("0x11"))[Ur("0x14")](Ur("0xe"));const e=t[Ur("0x6")].get("TrackChangesEditing"),n=t[Ur("0x12")];e[Ur("0x8")][Ur("0xf")](Ur("0xe"),(t=>Yo(n,Ur("0x0"),t))),t[Ur("0x4")][Ur("0xc")](Ur("0x17"))[Ur("0x5")]({model:Ur("0xe"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x3")])return null;const o=e[Ur("0x13")]("div"),s=e[Ur("0xb")]("hr");return e[Ur("0x7")](Ur("0xa"),o),e[Ur("0x16")](e[Ur("0x15")](o,0),s),o},converterPriority:Ur("0x10")})}}const Hr=["model","change","registerDescriptionCallback","cancel","enableCommand","document","*Change %0 content*","locale","afterInit","element","selection","editing","ELEMENT_HTML_EMBED","markBlockFormat","rawHtml","view","editor","commandName","format","TrackChangesEditing","_descriptionFactory","has","get","getAttribute","htmlEmbed","plugins","getSelectedElement","getCustomProperty"];var zr,Wr;zr=Hr,Wr=458,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x1a")](){const t=this[Vr("0x6")];if(!t[Vr("0xf")][Vr("0xb")]("HtmlEmbed"))return;const e=t[Vr("0xf")][Vr("0xc")](Vr("0x9")),n=t[Vr("0x19")],o=t[Vr("0x1")][Vr("0x5")].document[Vr("0x0")];e[Vr("0xa")].registerElementLabel("rawHtml",(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t.plugins[Vr("0xc")](Vr("0x9"))[Vr("0x16")](Vr("0xe"),((n,s)=>{const r=t[Vr("0x12")],i=r[Vr("0x17")].selection;r[Vr("0x13")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x1b"),Vr("0x4"))?t[Vr("0x10")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xd")]("value")||"";void 0!==s&&s!==r&&(e[Vr("0x3")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0x10")]()[Vr("0x11")]("rawHtmlApi")[Vr("0x15")]())}))})),e[Vr("0xa")][Vr("0x14")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x7")]){const t=Yo(n,Vr("0x2"));return{type:Vr("0x8"),content:Yo(n,Vr("0x18"),t)}}}))}}const qr=["ImageBlockEditing","isInContent","accept","isInlineImage","fromPosition","commandParams","isEqual","getChangedMarkers","get","shouldConvertImageType","join","ImageStyleEditing","_descriptionFactory","length","markBlockFormat","ImageTextAlternativeEditing","getSuggestionCallback","getAttribute","_findSuggestions","forceDefaultExecution","createRange","imageStyle","_splitMarkerName","format","editor","getClosestSelectedImageElement","createRangeOn","toNext","uploadImage","start","convertInlineImageToBlock","head","find","insertImage","formatBlock","discardSuggestion","FORMAT_SIDE_IMAGE","filter","from","next","ELEMENT_CAPTION","isOwn","end","insertion","getContainedElement","imageCaption","removeObject","commands","refresh","ImageUtils","discard","differ","getSuggestion","registerPostFixer","chain","imageBlock","isCollapsed","markInlineFormat","locale","getCaptionFromImageModelElement","detach","nodeAfter","enableCommand","registerDescriptionCallback","markDeletion","isIntersecting","previous","nodeBefore","imageStylePreApply","commandName","toggleImageCaption","subType","_suggestionFactory","Users","model","backward","*Set image text alternative:* %0","getNearestSelectionRange","selection","ImageResize","isBefore","change","ImageInlineEditing","ImageCaptionEditing","registerCustomCallback","has","alt","name","value","newValue","type","newRange","findIndex","TrackChangesEditing","document","caption","width","getFirstRange","ImageUploadEditing","forEach","convertBlockImageToInline","registerElementLabel","plugins","imageTextAlternative","imageTypeInline","forward","hasAttribute","isBlockImage","*Reset image width*","Inline image to block image","title","imageStylePostApply","ImageEditing","toPrevious","imageTypeBlock","resizeImage","commandReversedParams","markInsertion","schema","deletion","formatInline"];var Xr,$r;Xr=qr,$r=265,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x1")];if(!t[Jr("0x4f")][Jr("0x3e")](Jr("0x59")))return;const n=t[Jr("0x4f")][Jr("0x6a")](Jr("0x46")),o=t.plugins[Jr("0x6a")](Jr("0x1a")),s={},r=t[Jr("0x23")];if(n[Jr("0x27")](Jr("0xa")),n[Jr("0x6e")][Jr("0x4e")](Jr("0x20"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory.registerElementLabel("imageInline",(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x6e")][Jr("0x4e")](Jr("0x48"),(()=>Yo(r,Jr("0x11")))),t[Jr("0x4f")][Jr("0x3e")](Jr("0x4b"))&&n.enableCommand(Jr("0x5")),t.plugins[Jr("0x3e")](Jr("0x62"))&&t.plugins.has(Jr("0x3b"))&&(n[Jr("0x27")]("imageTypeInline",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x33")][Jr("0x47")][Jr("0x37")]);t.model[Jr("0x3a")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x51"),commandParams:[s]},[],Jr("0x4d"))}))})),n.enableCommand(Jr("0x5b"),((e,s)=>{t[Jr("0x33")][Jr("0x3a")]((r=>{let x=o.getClosestSelectedImageElement(t.model[Jr("0x47")][Jr("0x37")]),a=r[Jr("0x3")](x);const c=i.LivePosition[Jr("0x66")](a[Jr("0x6")],Jr("0x5a")),l=i.LivePosition.fromPosition(a[Jr("0x13")],Jr("0x4"));n[Jr("0x75")]((()=>e(s))),x=o[Jr("0x2")](t[Jr("0x33")][Jr("0x47")][Jr("0x37")]),a=r[Jr("0x3")](x);const d=r[Jr("0x76")](c,l);c.detach(),l[Jr("0x25")](),n[Jr("0x70")](x,{commandName:Jr("0x51"),commandParams:[]},[],"convertInlineImageToBlock"),d[Jr("0x6")][Jr("0x39")](a[Jr("0x6")])&&n.markInsertion(r[Jr("0x76")](d[Jr("0x6")],a[Jr("0x6")]),Jr("0x7")),a[Jr("0x13")][Jr("0x39")](d[Jr("0x13")])&&n[Jr("0x5e")](r[Jr("0x76")](a[Jr("0x13")],d.end),"convertInlineImageToBlock")}))})),n._suggestionFactory[Jr("0x3d")](Jr("0xb"),"convertInlineImageToBlock",Jr("0x6c"),(()=>{})),n._suggestionFactory[Jr("0x3d")](Jr("0xb"),Jr("0x7"),Jr("0x64"),(()=>{})),n[Jr("0x31")][Jr("0x3d")]("formatBlock","convertInlineImageToBlock","discard",n[Jr("0x31")][Jr("0x72")]("formatBlock","",Jr("0x64"))),n[Jr("0x31")][Jr("0x3d")](Jr("0x14"),Jr("0x7"),"join",(()=>{})),n[Jr("0x31")][Jr("0x3d")](Jr("0x14"),Jr("0x7"),Jr("0x1b"),(([e])=>{const o=n[Jr("0x31")][Jr("0x72")](Jr("0x14"),"",Jr("0x1b"));let s=e[Jr("0x6")],r=e.end;const i=t[Jr("0x33")][Jr("0x5f")].getNearestSelectionRange(s,Jr("0x34")),x=t[Jr("0x33")][Jr("0x5f")][Jr("0x36")](r,Jr("0x52"));i[Jr("0x21")]&&(s=i[Jr("0x6")]),x.isCollapsed&&(r=x[Jr("0x13")]),o([t[Jr("0x33")][Jr("0x76")](s,r)])})),n[Jr("0x31")][Jr("0x3d")]("formatBlock",Jr("0x7"),Jr("0x1f"),c),n[Jr("0x31")][Jr("0x3d")]("insertion","convertInlineImageToBlock",Jr("0x1f"),c)),t.plugins[Jr("0x3e")](Jr("0x3c"))&&(n.enableCommand(Jr("0x2f"),((e,s)=>{const r=t[Jr("0x4f")][Jr("0x6a")]("ImageCaptionUtils");let i=o.getClosestSelectedImageElement(t.model[Jr("0x47")][Jr("0x37")]),x=r[Jr("0x24")](i);t[Jr("0x33")][Jr("0x3a")]((()=>{if(x)return void n[Jr("0x29")](t[Jr("0x33")][Jr("0x3")](x));const a=o[Jr("0x54")](i);e(s),i=o[Jr("0x2")](t[Jr("0x33")].document[Jr("0x37")]),x=r[Jr("0x24")](i),n[Jr("0x5e")](t[Jr("0x33")][Jr("0x3")](x),a?null:Jr("0x16"))}))})),n[Jr("0x31")].registerCustomCallback(Jr("0x14"),"imageCaption",Jr("0x1f"),c)),t[Jr("0x4f")].has(Jr("0x6d"))){n[Jr("0x27")](Jr("0x77"),((s,r)=>{const i=t[Jr("0x4f")][Jr("0x6a")](Jr("0x32")).me,x=t[Jr("0x18")][Jr("0x6a")](Jr("0x77"));let a=o[Jr("0x2")](t[Jr("0x33")][Jr("0x47")][Jr("0x37")]),c=t.model[Jr("0x3")](a),l=x.value;if(l==r[Jr("0x41")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x33")][Jr("0x3a")]((()=>{if(n.getSuggestions()[Jr("0xe")]((t=>t[Jr("0x63")]&&i==t.author&&(Jr("0xb")==t.type||Jr("0x61")==t[Jr("0x43")])&&(Jr("0x2d")==t[Jr("0x30")]||"imageStylePostApply"==t[Jr("0x30")])&&t[Jr("0x4a")]()[Jr("0x68")](c)))[Jr("0x4c")]((t=>n.discardSuggestion(t[Jr("0x8")]))),a=o[Jr("0x2")](t[Jr("0x33")][Jr("0x47")][Jr("0x37")]),c=t[Jr("0x33")][Jr("0x3")](a),x[Jr("0x19")](),t[Jr("0x18")][Jr("0x6a")](Jr("0x51"))[Jr("0x19")](),t.commands[Jr("0x6a")](Jr("0x5b"))[Jr("0x19")](),l=x.value,l!=r[Jr("0x41")])return o[Jr("0x65")](a)&&x[Jr("0x6b")](r[Jr("0x41")],a)?(s(r),a=o[Jr("0x2")](t[Jr("0x33")][Jr("0x47")][Jr("0x37")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x2d"))):void(o[Jr("0x54")](a)?n[Jr("0x70")](a,d,[],Jr("0x58")):n[Jr("0x22")](c,d,Jr("0x58")))}))}));for(const e of t[Jr("0x4f")][Jr("0x6a")]("ImageStyleEditing").normalizedStyles)s[e[Jr("0x40")]]=e[Jr("0x57")].toLowerCase();n[Jr("0x31")][Jr("0x3d")](Jr("0xb"),Jr("0x2d"),Jr("0x6c"),(()=>{})),n._suggestionFactory[Jr("0x3d")](Jr("0xb"),Jr("0x58"),Jr("0x6c"),(()=>{})),n[Jr("0x31")][Jr("0x3d")](Jr("0x61"),Jr("0x58"),Jr("0x6c"),(()=>{})),n._suggestionFactory[Jr("0x3d")](Jr("0xb"),"imageStylePreApply",Jr("0x64"),(()=>{})),n[Jr("0x31")][Jr("0x3d")](Jr("0xb"),Jr("0x2d"),Jr("0x1b"),((t,e)=>{n[Jr("0x31")].getSuggestionCallback(Jr("0xb"),"",Jr("0x64"))(t,{commandName:e.commandName,commandParams:e[Jr("0x5d")]})})),n[Jr("0x31")][Jr("0x3d")](Jr("0xb"),Jr("0x2d"),Jr("0x1f"),c)}const x=[{type:Jr("0xb"),subType:Jr("0x2d")},{type:Jr("0x14"),subType:Jr("0x16")},{type:Jr("0xb"),subType:"convertInlineImageToBlock"},{type:Jr("0x14"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x45")]((({type:e,subType:n})=>t[Jr("0x43")]==e&&t[Jr("0x30")]==n)),r=x[Jr("0x45")]((({type:t,subType:n})=>e[Jr("0x43")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x4a")]();if((0==s||1==s)&&2==r&&i[Jr("0x2a")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x74")](i,Jr("0x14"))[Jr("0xe")]((({suggestion:t,meta:e})=>e[Jr("0x12")]&&Jr("0x7")==t[Jr("0x30")]));if(t[Jr("0x6f")]>1&&a[Jr("0x13")].isEqual(i[Jr("0x6")]))return!0;if(1==t[Jr("0x6f")]&&(i[Jr("0x6")][Jr("0x68")](a[Jr("0x13")])||i[Jr("0x13")][Jr("0x68")](a[Jr("0x6")])))return!0}if(3==s&&3==r&&i[Jr("0x6")][Jr("0x39")](a[Jr("0x6")])){const t=i[Jr("0x13")][Jr("0x26")],e=a[Jr("0x6")][Jr("0x2c")];return o[Jr("0x54")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x33")][Jr("0x47")][Jr("0x1e")]((()=>{let e=!1;const s=Array[Jr("0xf")](t[Jr("0x33")][Jr("0x47")][Jr("0x1c")][Jr("0x69")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x78")](t);if("suggestion"==s&&n.hasSuggestion(a)){if(Jr("0xb")==i&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[Jr("0x1d")](a);if(r.newRange){const s=t[Jr("0x4a")]()[Jr("0x15")]();if(o[Jr("0x54")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x14")==i&&"imageCaption"==x&&!r[Jr("0x44")]){const t=n[Jr("0x1d")](a);t.next&&t[Jr("0x10")][Jr("0x63")]&&(n[Jr("0xc")](t[Jr("0x10")]),e=!0)}}}return e})),t[Jr("0x4f")][Jr("0x3e")](Jr("0x38"))&&n[Jr("0x27")](Jr("0x5c"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x33")].document[Jr("0x37")]);r[Jr("0x73")](Jr("0x49"))!=s[Jr("0x49")]&&t[Jr("0x33")][Jr("0x3a")]((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x4f")][Jr("0x3e")](Jr("0x71"))&&n[Jr("0x27")](Jr("0x50"),((e,s)=>{const r=o[Jr("0x2")](t.model[Jr("0x47")][Jr("0x37")]);(r[Jr("0x53")](Jr("0x3f"))?r[Jr("0x73")](Jr("0x3f")):"")!=s.newValue&&t[Jr("0x33")][Jr("0x3a")]((()=>{n[Jr("0x70")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Jr("0x6e")].registerDescriptionCallback((t=>{if(x[Jr("0x9")]((({type:e,subType:n})=>t[Jr("0x43")]==e&&t.subType==n)))return t[Jr("0x2b")]?{}:void 0})),n[Jr("0x6e")][Jr("0x28")]((t=>{if(Jr("0x14")==t.type||Jr("0x60")==t[Jr("0x43")]){const e=t.getContainedElement();if(e&&e.is("element","caption"))return{type:Jr("0x14")==t[Jr("0x43")]?"addObject":Jr("0x17"),element:e,quantity:1}}})),n[Jr("0x6e")].registerDescriptionCallback((t=>Jr("0xb")==t[Jr("0x43")]&&"convertInlineImageToBlock"==t[Jr("0x30")]?{type:Jr("0x0"),content:Jr("0x56")}:Jr("0xb")==t[Jr("0x43")]&&Jr("0x4d")==t[Jr("0x30")]?{type:Jr("0x0"),content:"Block image to inline image"}:void 0)),n[Jr("0x6e")][Jr("0x28")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x2e")]){const t=e[Jr("0x67")][0].value;return n="side"===t?Yo(r,Jr("0xd")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if(Jr("0x50")==e[Jr("0x2e")]){const t=e[Jr("0x67")][0][Jr("0x42")];return t?{type:"format",content:Yo(r,Jr("0x35"),'"'+t+'"')}:{type:Jr("0x0"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x5c")==e.commandName){const t=e[Jr("0x67")][0][Jr("0x49")];return t?{type:Jr("0x0"),content:Yo(r,"*Set image width:* %0",t)}:{type:"format",content:Yo(r,Jr("0x55"))}}}var n}))}}const Zr=["selection","model","discard","document","data","commandName","*Format:* replace image URL","editor","formatBlock","replaceImageSource","accept","enableCommand","handleSuggestionDescription","getAttribute","subType","getContainedElement","markBlockFormat","TrackChangesEditing","_suggestionFactory","change","format","_descriptionFactory","commandParams","registerCustomCallback","get","handleReplaceImageCommand","plugins","has","locale","getSuggestionCallback"];var Yr,ti;Yr=Zr,ti=147,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0xa")][ei("0x1d")][ei("0x0")]("ImageEditing"))return;const t=this[ei("0xa")][ei("0x1d")][ei("0x1b")](ei("0x14"));t[ei("0xe")]("replaceImageSource",((t,e)=>this[ei("0x1c")](t,e))),t[ei("0x15")][ei("0x1a")](ei("0xb"),"replaceImageSource","accept",t[ei("0x15")][ei("0x2")](ei("0xb"),null,ei("0x5"))),t._suggestionFactory[ei("0x1a")](ei("0xb"),ei("0xc"),"discard",t[ei("0x15")][ei("0x2")](ei("0xb"),null,ei("0xd"))),t[ei("0x18")].registerDescriptionCallback((t=>this[ei("0xf")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0xa")].plugins[ei("0x1b")]("TrackChangesEditing"),o=this[ei("0xa")].model[ei("0x6")][ei("0x3")].getSelectedElement();this[ei("0xa")][ei("0x4")][ei("0x16")]((()=>{let s=o[ei("0x10")]("src");const r=this[ei("0xa")].plugins.get("Users").me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0x12")]();if(ei("0xc")===t[ei("0x11")]&&e===o){t.author!==r&&t[ei("0x5")](),s=t[ei("0x7")][ei("0x19")][0].source;break}}t(e),n[ei("0x13")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0xf")](t){const{data:e}=t;if(e&&ei("0xc")===e[ei("0x8")]){const t=ei("0x9");return{type:ei("0x17"),content:Yo(this[ei("0xa")][ei("0x1")],t)}}}}const oi=["get","commands","execute","plugins","dataInsert","track_changes","TrackChangesEditing","importWord","_trackChangesExecuted","_setSuggestionData","_handleImportedData","lowest","high","listenTo","afterInit","_trackChangesValueDuringImport","editor","trackChanges","value"];var si,ri;si=oi,ri=307,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x5")]=!1}[ii("0xb")](){const t=this.editor,e=t[ii("0x11")][ii("0x10")]("importWord"),n=t[ii("0x11")][ii("0x10")](ii("0xe"));e&&(e.on("execute",((t,[,e])=>{this[ii("0xc")]=n[ii("0xf")],e.collaboration_features[ii("0x2")]=!this[ii("0xc")]}),{priority:ii("0x9")}),this[ii("0xa")](e,"dataInsert",this[ii("0x7")].bind(this)),this[ii("0xa")](e,ii("0x1"),(()=>{this[ii("0x5")]&&(n.execute(),this[ii("0x5")]=!1)}),{priority:ii("0x8")}),t[ii("0x0")][ii("0x10")](ii("0x3")).enableCommand(ii("0x4")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0xd")][ii("0x11")].get(ii("0xe")),s=o[ii("0xf")];this[ii("0xc")]!==s&&(o[ii("0x12")](),this[ii("0x5")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xd")][ii("0x0")][ii("0x10")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x4")}}};this[ii("0xd")][ii("0x0")].get(ii("0x3"))[ii("0x6")](s)}))}}const ai=["model","schema","outdent","IndentEditing","enableCommand","getItemLabel","indent","locale","change","TrackChangesEditing","selection","from","getItems","*Indent:* %0","blockIndent","editor","commandName","markBlockFormat","_descriptionFactory","IndentBlock","*Outdent:* %0","outdentBlock","document","get","filter","format","plugins","has","indentBlock"];var ci,li;ci=ai,li=428,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this[di("0x16")],e=t.plugins[di("0x1")](di("0x10"));t.plugins.has(di("0xa"))&&(e[di("0xb")](di("0xd")),e[di("0xb")](di("0x9")));const n=t[di("0xe")];if(t[di("0x4")][di("0x5")](di("0x1a"))){for(const n of[di("0x6"),di("0x1c")])e[di("0xb")](n,(()=>{const o=Array[di("0x12")](this[di("0x16")][di("0x7")][di("0x0")][di("0x11")].getSelectedBlocks())[di("0x2")]((t=>this[di("0x16")][di("0x7")][di("0x8")].checkAttribute(t,di("0x15"))));t[di("0x7")][di("0xf")]((()=>{for(const t of o)e[di("0x18")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x6")})}))}));e._descriptionFactory.registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x6")!=o.commandName&&"outdentBlock"!=o.commandName)return;const s=t[di("0x13")]()[0],r=e[di("0x19")][di("0xc")](s);return di("0x6")==o[di("0x17")]?{type:di("0x3"),content:Yo(n,di("0x14"),r)}:di("0x1c")==o[di("0x17")]?{type:di("0x3"),content:Yo(n,di("0x1b"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","init","plugins","get","editor","requires","input"];gi=fi,mi=474,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x0")](){return[Vs.Input]}[hi("0x3")](){this[hi("0x6")][hi("0x4")][hi("0x5")](hi("0x2")).enableCommand(hi("0x1"))}}const bi=["getRanges","selection","model","link","editor","linkHref","TrackChangesEditing","getAttribute","enableCommand","from","LinkEditing","*Set link:* %0","markInlineFormat","locale","document","getFirstRange","has","format","*Remove link*","get","afterInit","_descriptionFactory","registerDescriptionCallback","commandParams","plugins","unlink","hasAttribute"];var Ei,_i;Ei=bi,_i=311,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x6")](){const t=this[Ti("0x11")];if(!t[Ti("0xa")][Ti("0x2")](Ti("0x17")))return;const e=t[Ti("0xa")][Ti("0x5")](Ti("0x13"));e[Ti("0x15")](Ti("0x10"),((n,o)=>{const s=t[Ti("0xf")][Ti("0x0")][Ti("0xe")];let r=[];if(s.isCollapsed){if(!s[Ti("0xc")](Ti("0x12")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),"linkHref",s.getAttribute(Ti("0x12")),t.model);r=[e]}}else r=Array[Ti("0x16")](s[Ti("0xd")]());t.model.change((()=>{for(const t of r)e[Ti("0x19")](t,{commandName:Ti("0x10"),commandParams:[o]})}))})),e[Ti("0x15")]("unlink",(()=>{const n=this[Ti("0x11")][Ti("0xf")],o=n[Ti("0x0")][Ti("0xe")];n.change((()=>{let n=[];n=o.isCollapsed?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0x12"),o[Ti("0x14")]("linkHref"),t.model)]:ms(Ti("0x12"),o[Ti("0x1")](),t[Ti("0xf")]);for(const t of n)e[Ti("0x19")](t,{commandName:Ti("0xb"),commandParams:[]})}))})),e[Ti("0x7")][Ti("0x8")]((e=>{const{data:n}=e,o=t[Ti("0x1a")];if(n){if(Ti("0x10")==n.commandName){const t=n[Ti("0x9")][0];return{type:Ti("0x3"),content:Yo(o,Ti("0x18"),'"'+t+'"')}}return Ti("0xb")==n.commandName?{type:Ti("0x3"),content:Yo(o,Ti("0x4"))}:void 0}}))}}const yi=["todo","markBlockFormat","*Change to:* %0","slice","end","from","has","enableCommand","listIndent","locale","model","parent","*Outdent:* %0","document","checkChild","commandParams","findIndex","previousSibling","*Check item*","ELEMENT_TODO_LIST","isObject","value","commandName","registerElementLabel","indentList","push","_descriptionFactory","selection","ListEditing","outdentList","bulleted","before","replace","element","*Uncheck item*","name","plugins","change","get","getSelectedBlocks","registerDescriptionCallback","format","nextSibling","schema","ELEMENT_NUMBERED_LIST","ELEMENT_BULLETED_LIST","todoList","listItem","numberedList","todoListChecked","filter","bulletedList","commands","List","checkTodoList","_selectedElements","forceValue","ELEMENT_LIST_ITEM","*Indent:* %0","TodoListEditing","getAttribute"];var ki,Ai;ki=yi,Ai=362,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this.editor,e=t[vi("0xd")];if(!t[vi("0x28")][vi("0xa")](vi("0x20")))return;const n=t[vi("0x28")][vi("0x2a")]("TrackChangesEditing"),o=t[vi("0x28")][vi("0xa")](vi("0x2"));function s(e){return()=>{const o=t.model[vi("0x11")][vi("0x1f")],s=t[vi("0x38")][vi("0x2a")](e);if(s[vi("0x19")])return void t.execute("paragraph",{});const r=e[vi("0x7")](0,-4),i=function(t,e,n){let o=Array[vi("0x9")](t)[vi("0x36")]((t=>{return e=t,(o=n)[vi("0x12")](e[vi("0xf")],vi("0x33"))&&!o[vi("0x18")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x25"),vi("0x33"))||t.getAttribute("listType")!=e));const s=new Set;for(const t of o)t.is("element",vi("0x33"))?s.add(Ii(t)):s.add(t);return Array[vi("0x9")](s)}(o[vi("0x2b")](),r,t[vi("0xe")][vi("0x2f")]);t.model.change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x19")]}],formatGroupId:"blockName"},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x9")](t);const n=e[vi("0x14")]((t=>vi("0x33")!=t[vi("0x27")]));return n>-1&&(e=e[vi("0x7")](0,n)),e}(t[vi("0xe")][vi("0x11")][vi("0x1f")][vi("0x2b")]()),s=t[vi("0xe")].createRange(t[vi("0xe")].createPositionAt(o[0],vi("0x23")),t.model.createPositionAt(o[o.length-1],vi("0x8")));t[vi("0xe")][vi("0x29")]((()=>{n[vi("0x5")](s,{commandName:e,commandParams:[],formatGroupId:vi("0xc")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2e")];for(;t&&t[vi("0x3")](vi("0xc"))>n[vi("0x3")](vi("0xc"));)e.add(t),t=t[vi("0x2e")]}return Array.from(e)}(o))}))}}n.enableCommand(vi("0x34"),s("numberedList")),n[vi("0xb")](vi("0x37"),s("bulletedList")),o&&n[vi("0xb")]("todoList",s(vi("0x32"))),n[vi("0xb")](vi("0x1c"),r(vi("0x1c"))),n[vi("0xb")](vi("0x21"),r(vi("0x21"))),o&&n[vi("0xb")]("checkTodoList",(()=>{const e=t[vi("0x38")][vi("0x2a")](vi("0x3a")),o=Array[vi("0x9")](e[vi("0x3b")]);o[vi("0x36")]((t=>t.getAttribute(vi("0x35"))!=e[vi("0x19")])),t.model[vi("0x29")]((()=>{for(const t of o)n[vi("0x5")](t,{commandName:vi("0x3a"),commandParams:[{forceValue:!e[vi("0x19")]}]})}))})),n[vi("0x1e")][vi("0x1b")]("listItem",(t=>Yo(e,vi("0x0"),t))),n[vi("0x1e")][vi("0x2c")]((t=>{const{data:n}=t;if(n){if(vi("0x34")==n.commandName||vi("0x37")==n[vi("0x1a")]||vi("0x32")==n[vi("0x1a")])switch(n[vi("0x1a")][vi("0x24")](vi("0x39"),"")){case vi("0x22"):return o(Yo(e,vi("0x31")));case"numbered":return o(Yo(e,vi("0x30")));case vi("0x4"):return o(Yo(e,vi("0x17")))}if("indentList"==n.commandName)return{type:vi("0x2d"),content:Yo(e,vi("0x1"),Yo(e,vi("0x0")))};if(vi("0x21")==n[vi("0x1a")])return{type:vi("0x2d"),content:Yo(e,vi("0x10"),Yo(e,vi("0x0")))};if("checkTodoList"==n[vi("0x1a")])return n[vi("0x13")][0][vi("0x3c")]?{type:vi("0x2d"),content:Yo(e,vi("0x16"))}:{type:vi("0x2d"),content:Yo(e,vi("0x26"))}}function o(t){return{type:vi("0x2d"),content:Yo(e,vi("0x6"),t)}}}))}}function Ii(t){const e=t.getAttribute(vi("0xc"));if(0==e)return t;let n=t;for(;t[vi("0x15")]&&t[vi("0x15")].is("element","listItem");){const o=t[vi("0x15")][vi("0x3")]("listIndent");if(o==e)n=t[vi("0x15")];else if(o<e)break;t=t.previousSibling}return n}function Si(t){const e=[];if(t.is(vi("0x25"),vi("0x33"))&&t[vi("0x3")](vi("0xc"))>0){let n=t.nextSibling;for(;n&&vi("0x33")==n[vi("0x27")]&&n[vi("0x3")](vi("0xc"))==t.getAttribute(vi("0xc"));)e[vi("0x1d")](n),n=n.nextSibling}return e}const Li=["_getTranslationKeyForListStyle","backward","model","*Change to:* %0","registerDescriptionCallback","selection","getLastPosition","getAttribute","createPositionAt","plugins","styles","getFirstPosition","handleDescriptions","toUpperCase","element","numbered","getListTypeFromListStyleType","listReversed","parent","commandName","before","getSelectedBlocks","get","locale","map","has","list.properties","*Format:* set order to reversed","filter","listItem","change","format","document","markMultiRangeBlockFormat","forward","listStart","getSiblingNodes","*Format:* set start index to %0","unshift","listStyle","TrackChangesEditing","type","flat","startIndex","bind","config","reversed","handleListReversedCommand","listType","commandParams","createRange","length","_getSuggestionBlocksForListStyle","editor","enableCommand","_getSuggestionBlocks","handleListStartCommand","ListUtils","handleListStyleCommand"];var Ni,Mi;Ni=Li,Mi=415,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x33")][wi("0x7")][wi("0x17")]("ListPropertiesEditing"))return;const t=this[wi("0x33")][wi("0x2b")][wi("0x14")](wi("0x18")),e=this.editor.plugins[wi("0x14")](wi("0x26"));t[wi("0x8")]&&e[wi("0x34")]("listStyle",this[wi("0x38")][wi("0x2a")](this)),t[wi("0x2c")]&&e[wi("0x34")](wi("0xf"),this.handleListReversedCommand[wi("0x2a")](this)),t[wi("0x29")]&&e.enableCommand(wi("0x21"),this[wi("0x36")][wi("0x2a")](this)),e._descriptionFactory[wi("0x2")](this[wi("0xa")].bind(this))}[wi("0x38")](t,e={}){const n=this.editor[wi("0x7")].get(wi("0x26")),o=this[wi("0x32")]();this[wi("0x33")][wi("0x0")][wi("0x1c")]((()=>{n[wi("0x1f")](o,{commandName:wi("0x25"),commandParams:[{type:e[wi("0x27")]}],formatGroupId:"listStyle"})}))}[wi("0x2d")](t,e={}){const n=this[wi("0x33")][wi("0x7")].get(wi("0x26")),o=this[wi("0x35")]((t=>t.is(wi("0xc"),wi("0x1b"))&&wi("0xd")===t[wi("0x5")](wi("0x2e"))));if(o[wi("0x31")]<1)return;const s=o[wi("0x16")]((t=>this[wi("0x33")].model[wi("0x30")](this[wi("0x33")][wi("0x0")].createPositionAt(t,wi("0x12")),this[wi("0x33")][wi("0x0")][wi("0x6")](t,0))));this.editor[wi("0x0")][wi("0x1c")]((()=>{n[wi("0x1f")](s,{commandName:wi("0xf"),commandParams:[{reversed:e[wi("0x2c")]}],formatGroupId:"listReversed"})}))}[wi("0x36")](t,e={}){const n=this.editor[wi("0x7")].get(wi("0x26")),o=this[wi("0x35")]((t=>t.is(wi("0xc"),wi("0x1b"))&&wi("0xd")===t[wi("0x5")](wi("0x2e"))));if(o.length<1)return;const s=o[wi("0x16")]((t=>this.editor[wi("0x0")][wi("0x30")](this.editor.model[wi("0x6")](t,wi("0x12")),this.editor[wi("0x0")][wi("0x6")](t,0))));this.editor[wi("0x0")][wi("0x1c")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x21"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x21")})}))}[wi("0xa")](t){const e=this[wi("0x33")][wi("0x15")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x11")]){case"listStyle":o=wi("0x1"),s={type:wi("0x1d"),content:Yo(e,o,Yo(e,this[wi("0x39")](n.commandParams[0].type)))};break;case"listReversed":o=n[wi("0x2f")][0][wi("0x2c")]?wi("0x19"):"*Format:* set order to regular",s={type:wi("0x1d"),content:Yo(e,o)};break;case wi("0x21"):o=wi("0x23"),s={type:wi("0x1d"),content:Yo(e,o,n[wi("0x2f")][0][wi("0x29")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[wi("0x33")][wi("0x7")][wi("0x14")](wi("0x37"));let r=Array.from(this.editor[wi("0x0")][wi("0x1e")][wi("0x3")][wi("0x13")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0xc"),wi("0x1b")))&&r[wi("0x24")](...s[wi("0x22")](this.editor[wi("0x0")][wi("0x1e")][wi("0x3")][wi("0x9")](),wi("0x3a"))),(null===(e=r[r[wi("0x31")]-1])||void 0===e?void 0:e.is(wi("0xc"),wi("0x1b")))&&r.push(...s[wi("0x22")](this[wi("0x33")][wi("0x0")][wi("0x1e")][wi("0x3")][wi("0x4")](),wi("0x20"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x33")].model[wi("0x1e")][wi("0x3")][wi("0x9")]())||void 0===n?void 0:n[wi("0x10")])||void 0===o?void 0:o.is(wi("0xc"),wi("0x1b")))&&(r=r[wi("0x1a")]((t=>t.is(wi("0xc"),wi("0x1b"))))),r}[wi("0x35")](t){const e=this[wi("0x33")][wi("0x7")][wi("0x14")]("ListUtils");let n=Array.from(this[wi("0x33")][wi("0x0")].document.selection.getSelectedBlocks())[wi("0x1a")](t).map((t=>{const n=this.editor[wi("0x0")].createPositionAt(t,0);return[...e[wi("0x22")](n,wi("0x3a")),...e[wi("0x22")](n,wi("0x20"))]}))[wi("0x28")]();return n=[...new Set(n)],n}[wi("0x39")](t){return"ELEMENT_"+this[wi("0x33")][wi("0x7")].get(wi("0x37"))[wi("0xe")](t)[wi("0xb")]()+"_LIST_"+t[wi("0xb")]().replace(/-/g,"_")}}const Fi=["attribute:url:media","data","_descriptionFactory","locale","showSuggestionHighlights","high","plugins","registerElementLabel","options","get","mediaEmbed","MediaEmbedEditing","TrackChangesEditing","conversion","createEmptyElement","afterInit","media","dataDowncast","downcastDispatcher"];var Pi,Di;Pi=Fi,Di=192,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xd")](){const t=this.editor;if(!t[Bi("0x4")].has(Bi("0x9")))return;const e=t[Bi("0x4")][Bi("0x7")](Bi("0xa")),n=t[Bi("0x1")];e.enableCommand(Bi("0x8")),e[Bi("0x0")][Bi("0x5")](Bi("0xe"),(t=>Yo(n,"ELEMENT_MEDIA",t))),t[Bi("0xb")].for(Bi("0xf")).elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[Bi("0x2")])return e[Bi("0xc")]("div")},converterPriority:Bi("0x3")}),t[Bi("0x12")][Bi("0x10")].on(Bi("0x11"),((t,e,n)=>{n[Bi("0x6")][Bi("0x2")]&&t.stop()}),{priority:Bi("0x3")})}}const Ui=["get","has","enableCommand","MentionEditing","plugins","afterInit","TrackChangesEditing"];var Gi,Hi;Gi=Ui,Hi=192,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this.editor;t.plugins[zi("0x5")](zi("0x0"))&&t[zi("0x1")][zi("0x4")](zi("0x3"))[zi("0x6")]("mention")}}const Vi=["pageBreak","locale","_descriptionFactory","plugins","afterInit","ELEMENT_PAGE_BREAK","get","enableCommand","TrackChangesEditing","has"];var Ki,qi;Ki=Vi,qi=139,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x5")](){const t=this.editor;if(!t[Xi("0x4")][Xi("0x0")]("PageBreakEditing"))return;t.plugins[Xi("0x7")]("TrackChangesEditing")[Xi("0x8")](Xi("0x1"));const e=t.plugins[Xi("0x7")](Xi("0x9")),n=t[Xi("0x2")];e[Xi("0x3")].registerElementLabel("pageBreak",(t=>Yo(n,Xi("0x6"),t)))}}const Ji=["plugins","blockName","isObject","span","$text","start","editing","activeMarkers","paragraph","has","insertion","addMarker:suggestion:insertion","registerDescriptionCallback","markerName","format","showSuggestionHighlights","name","enableCommand","toViewPosition","get","filter","highest","schema","*Insert:* %0","end","getSelectedBlocks","commandName","ck-suggestion-marker--active","writer","_descriptionFactory","change","getItemLabel","type","model","isBlock","isLimit","afterInit","options","document","editor","nodeAfter","getFirstRange","checkChild","consume","addClass","downcastDispatcher","from","parent","ELEMENT_PARAGRAPH","selection","data","mapper","insert","includes","insertParagraph","markerRange","isTouching","markBlockFormat","TrackChangesEditing"];var Qi,Zi;Qi=Ji,Zi=216,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x38")](){const t=this[Yi("0x0")];if(!t[Yi("0x14")][Yi("0x1d")]("Paragraph"))return;const e=t.locale,n=t.plugins[Yi("0x27")](Yi("0x13"));n[Yi("0x31")].registerElementLabel(Yi("0x1c"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Yi("0x25")](Yi("0x1c"),((e,o={})=>{const s=t.model[Yi("0x3a")],r=o.selection||s[Yi("0xa")],i=Array[Yi("0x7")](r[Yi("0x2d")]())[Yi("0x28")]((t=>{return e=t,(n=this[Yi("0x0")][Yi("0x35")][Yi("0x2a")])[Yi("0x3")](e[Yi("0x8")],"paragraph")&&!n[Yi("0x16")](e)&&Yi("0x1c")!=e[Yi("0x24")];var e,n}));t[Yi("0x35")][Yi("0x32")]((()=>{for(const t of i)n[Yi("0x12")](t,{commandName:Yi("0x1c"),commandParams:[],formatGroupId:Yi("0x15")},fs(t))}))})),n[Yi("0x31")][Yi("0x20")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x2e")])return{type:Yi("0x22"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x9")))}})),n[Yi("0x25")](Yi("0xf")),t[Yi("0x1a")][Yi("0x6")].on(Yi("0x1f"),ex(t),{priority:Yi("0x29")}),t[Yi("0xb")][Yi("0x6")].on(Yi("0x1f"),((e,n,o)=>{o[Yi("0x39")][Yi("0x23")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x29")});const o=n[Yi("0x31")];o[Yi("0x20")]((n=>{if(Yi("0x1e")!==n[Yi("0x34")])return;const{start:s,end:r}=n[Yi("0x2")]();if(!s[Yi("0x11")](r)||!s[Yi("0x1")])return;const i=t[Yi("0x35")][Yi("0x2a")],x=s[Yi("0x1")];return i.isBlock(x)&&!i.isLimit(x)&&i[Yi("0x3")](x,Yi("0x18"))?{type:Yi("0x1e"),content:Yo(e,Yi("0x2b"),o[Yi("0x33")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x27")](Yi("0x13")),i=o.markerRange[Yi("0x19")],x=o.markerRange[Yi("0x2c")],a=t.model[Yi("0x2a")];if(!i[Yi("0x11")](x)||!i[Yi("0x1")])return;const c=i[Yi("0x1")];if(a[Yi("0x36")](c)&&!a[Yi("0x37")](c)&&a.checkChild(c,"$text")){if(!s.consumable[Yi("0x4")](o[Yi("0x10")],n[Yi("0x24")]))return;const t=s[Yi("0x30")].createUIElement(Yi("0x17"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0xc")][Yi("0x26")](x);e&&r[Yi("0x1b")][Yi("0xe")](o[Yi("0x21")])&&s[Yi("0x30")][Yi("0x5")](Yi("0x2f"),t),s[Yi("0x30")][Yi("0xd")](i,t),s.mapper.bindElementToMarker(t,o.markerName)}}}const nx=["document","RemoveFormatEditing","selection","TrackChangesEditing","registerDescriptionCallback","get","getRanges","getAttributes","plugins","_descriptionFactory","commandName","isCollapsed","change","schema","removeFormat","from","getAttributeProperties","getItems","has","model","afterInit","*Remove all formatting*","locale"];var ox,sx;ox=nx,sx=481,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x16")](){const t=this.editor;if(!t[rx("0xa")][rx("0x14")](rx("0x3")))return;const e=t[rx("0xa")][rx("0x7")](rx("0x5"));e.enableCommand(rx("0x10"),(n=>{const o=t[rx("0x15")][rx("0x2")][rx("0x4")];o[rx("0xd")]?n():t.model[rx("0xe")]((()=>{const n=Array[rx("0x11")](o[rx("0x8")]());for(const o of n)for(const n of o[rx("0x13")]())xx(n,t[rx("0x15")][rx("0xf")])&&e.markInlineFormat(t[rx("0x15")].createRangeOn(n),{commandName:rx("0x10"),commandParams:[]})}))})),e[rx("0xb")][rx("0x6")]((e=>{const{data:n}=e;if(n&&rx("0x10")==n[rx("0xc")])return{type:"format",content:Yo(t[rx("0x1")],rx("0x0"))}}))}}function xx(t,e){for(const[n]of t[rx("0x9")]()){const t=e[rx("0x12")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["goToPreviousRestrictedEditingException","RestrictedEditingModeEditing","acceptAllSuggestions","discardAllSuggestions","enableCommand","get","discardSelectedSuggestions","afterInit","plugins","acceptSuggestion","has","acceptSelectedSuggestions"];var cx,lx;cx=ax,lx=169,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x6")](){const t=this.editor;if(!t[dx("0x7")][dx("0x9")](dx("0x0")))return;const e=t[dx("0x7")][dx("0x4")]("TrackChangesEditing");e[dx("0x3")](dx("0xb")),e.enableCommand("goToNextRestrictedEditingException");const n=t[dx("0x7")][dx("0x4")]("RestrictedEditingModeEditing");n[dx("0x3")]("trackChanges"),n[dx("0x3")](dx("0x8")),n[dx("0x3")]("discardSuggestion"),n[dx("0x3")](dx("0x1")),n[dx("0x3")](dx("0x2")),n[dx("0x3")](dx("0xa")),n[dx("0x3")](dx("0x5"))}}const gx=["insert","addMarker:suggestion:insertion","mapper","consumable","name","requires","ck-suggestion-marker-","span","activeMarkers","softBreak","element","ck-suggestion-marker--active","TrackChangesEditing","split","test","includes","addMarker:suggestion","plugins","merge","bindElementToMarker","ELEMENT_LINE_BREAK","editor","createPositionBefore","options","_descriptionFactory","addClass","registerElementLabel","getItems","editing","markerName","model","writer","init","markerRange","high","toViewPosition","locale","get","showSuggestionHighlights","data","createUIElement","downcastDispatcher"];var mx,fx;mx=gx,fx=147,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1a")](){return[nr.ShiftEnter]}[hx("0xb")](){const t=this[hx("0x0")],e=t.plugins.get(hx("0x21"));e.enableCommand("shiftEnter"),t.editing.downcastDispatcher.on(hx("0x16"),bx(t),{priority:hx("0xd")}),t[hx("0x7")][hx("0x14")].on("addMarker:suggestion:deletion",bx(t),{priority:hx("0xd")}),t[hx("0x12")][hx("0x14")].on(hx("0x25"),((e,n,o)=>{o[hx("0x2")][hx("0x11")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x3")][hx("0x5")]("softBreak",(e=>Yo(t[hx("0xf")],hx("0x29"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x26")][hx("0x10")]("TrackChangesEditing");if(!s[hx("0x18")][hx("0x23")](o[hx("0xc")],n[hx("0x19")]))return;const i=t[hx("0x9")];for(const t of o[hx("0xc")][hx("0x6")]()){if(!t.is(hx("0x1f"),hx("0x1e")))continue;const n="deletion"==o.markerName[hx("0x22")](":")[1]?hx("0x27"):hx("0x22"),x=s[hx("0xa")][hx("0x13")](hx("0x1c"),{class:hx("0x1b")+n}),a=s[hx("0x17")][hx("0xe")](i[hx("0x1")](t));e&&r[hx("0x1d")][hx("0x24")](o.markerName)&&s[hx("0xa")][hx("0x4")](hx("0x20"),x),s[hx("0xa")][hx("0x15")](a,x),s.mapper[hx("0x28")](x,o[hx("0x8")])}}}const Ex=["value","forceValue","plugins","locale","getRanges","document","_descriptionFactory","from","FORMAT_RESTRICTED_DISABLED","isCollapsed","commandParams","enableCommand","has","commandName","registerDescriptionCallback","get","afterInit","model","commands","restrictedEditingException","change"];var _x,Tx;_x=Ex,Tx=499,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x0")](){const t=this.editor,e=t[Cx("0x1")],n=t[Cx("0x8")];if(!t[Cx("0x7")][Cx("0x11")]("StandardEditingModeEditing"))return;const o=t[Cx("0x7")].get("TrackChangesEditing"),s=Cx("0x3"),r=t[Cx("0x2")][Cx("0x14")](s);o[Cx("0x10")](s,((t,n={})=>{const i=e[Cx("0xa")].selection;if(i[Cx("0xe")])return void t(n);const x=void 0!==n[Cx("0x6")]?n.forceValue:!r[Cx("0x5")];e[Cx("0x4")]((()=>{const t=Array[Cx("0xc")](i[Cx("0x9")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xb")][Cx("0x13")]((t=>{const{data:e}=t;if(e&&e[Cx("0x12")]==s)return e[Cx("0xf")][0].forceValue?{type:"format",content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Yo(n,Cx("0xd"))}}))}}const kx=["find","getAttribute","getItems","change","enabledStyles","document","classes","markInlineFormat","value","normalizeConfig","markBlockFormat","*Format:* %0","name","Style","registerDescriptionCallback","commandParams","locale","DataSchema","styleName","has","every","getAncestors","*Remove format:* %0","model","from","TrackChangesEditing","forceValue","style","add","_getRangesWithClasses","enableCommand","isBlock","getDefinitionsForView","commands","afterInit","format","block","selection","toLowerCase","_descriptionFactory","StyleUtils","plugins","config","isCollapsed","commandName","get","style:","includes"];var Ax,vx;Ax=kx,vx=491,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x17")](){const t=this.editor;if(!t.plugins[Rx("0x8")](Rx("0x2")))return;const e=t[Rx("0x16")][Rx("0x22")](Rx("0x10")),n=t[Rx("0x1e")][Rx("0x22")](Rx("0xe")),o=t[Rx("0x5")],s=t.plugins[Rx("0x22")](Rx("0x6")),r=t[Rx("0x1e")][Rx("0x22")](Rx("0x1d"))[Rx("0x2e")](s,t[Rx("0x1f")][Rx("0x22")]("style.definitions"));n[Rx("0x13")](Rx("0x10"),((o,{styleName:i})=>{const x=t[Rx("0xc")][Rx("0x2a")][Rx("0x1a")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x29")][Rx("0x24")](i))return;if(x[Rx("0x20")]&&!a[Rx("0x14")])return void o({styleName:i});const c=!e[Rx("0x2d")][Rx("0x24")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0xa")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Rx("0x11")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[Rx("0xc")][Rx("0x28")]((()=>{for(const t of e)n[Rx("0x2f")](t,{commandName:Rx("0x10"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x23")+i})}))}else{let e=Array[Rx("0xd")](x.getRanges());if(!c){const n=Array.from(s[Rx("0x15")](a.element,!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x12")](t[Rx("0xc")],s,a[Rx("0x2b")],n);o.push(...e)}e=o}t[Rx("0xc")].change((()=>{for(const t of e)n[Rx("0x2c")](t,{commandName:Rx("0x10"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1c")][Rx("0x3")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x21")])return e[Rx("0x4")][0][Rx("0xf")]?{type:"format",content:Yo(o,Rx("0x0"),e[Rx("0x4")][0][Rx("0x7")][Rx("0x1b")]())}:{type:Rx("0x18"),content:Yo(o,Rx("0xb"),e[Rx("0x4")][0][Rx("0x7")][Rx("0x1b")]())}}))}_getStyleDefinition(t,e){let n=e[Rx("0x19")][Rx("0x25")]((e=>e[Rx("0x1")]===t));return n||(n=e.inline[Rx("0x25")]((e=>e[Rx("0x1")]===t))),n}[Rx("0x12")](t,e,n,o){const s=[];for(const r of e[Rx("0x27")]()){const e=r[Rx("0x26")](o);e&&n[Rx("0x9")]((t=>e.classes.includes(t)))&&s.push(t.createRangeOn(r))}return s}}const Sx=["editor","push","min","getFirstRange","*Insert:* %0","getCellLocation","registerDescriptionCallback","*Remove:* %0","type","insertTableColumnRight","_acceptFormatSuggestionCallbackFactory","insertTableColumnLeft","toLowerCase","addMarker:suggestion","fromRange","position","data","last","from","showSuggestionHighlights","order","insertTableRowAbove","downcastDispatcher","start","left","filter","addRange","deletion","MAX_SAFE_INTEGER","afterInit","setSelection","ELEMENT_TABLE_COLUMN","isArray","has","above","removeTableRow","getItems","subType","first","enqueueChange","nodeAfter","maxColumn","cell","getContainedElement","suggestion","ELEMENT_TABLE_COLUMN_WITH_TEXT","getAttribute","_splitMarkerName","selection","change:data","removeTableColumn","tableColumn","TableEditing","discard","rowspan","tableCell","length","isTouching","nodeBefore","insertTable","createRangeIn","registerCustomCallback","registerElementLabel","getColumnIndexes","getRanges","accept","ELEMENT_TABLE_ROW_WITH_TEXT","forceValue","get","tablePaste","batch","toViewElement","writer","markMultiRangeInsertion","max","plugins","join","getChangedMarkers","getSelectionAffectedTableCells","tableRow","minColumn","differ","map","execute","some","_getSuggestionCoords","createPositionAt","getChanges","low","startsWith","createTableWalker","model","highest","insert","enableCommand","end","values","_setupColumnsRowsFixing","isIntersectingWithRange","addClass","findAncestor","_tableSuggestions","table","every","document","substr","span","createRangeOn","$graveyard","name","_tablePostFixingSubtypes","hasAttribute","refresh","locale","commands","_suggestionFactory","TableUtils","colspan","insertion","change","getChildren","removeClass","markMultiRangeDeletion","MIN_SAFE_INTEGER","_descriptionFactory","insertTableRowBelow","$textProxy","isEqual","detach","rootName","getRowIndexes","ELEMENT_TABLE_WITH_TEXT","_getCoordsForCells","root","classes","selectTableRow"];var Lx,Nx;Lx=Sx,Nx=342,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x28")]=[Mx("0x9"),"tableColumn"],this[Mx("0x1f")]=new Set}[Mx("0x5f")](){const t=this[Mx("0x42")],e=t.model[Mx("0x22")][Mx("0x72")];if(!t[Mx("0x5")][Mx("0x63")](Mx("0x76")))return;const n=t[Mx("0x2b")],o=t[Mx("0x5")][Mx("0x86")]("TrackChangesEditing"),s=t[Mx("0x5")][Mx("0x86")](Mx("0x2e"));o[Mx("0x36")][Mx("0x80")](Mx("0x20"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o.enableCommand(Mx("0x7d")),o[Mx("0x18")](Mx("0x41")),o[Mx("0x18")]("selectTableColumn");for(const n of[Mx("0x57"),Mx("0x37")]){const r=t[Mx("0x2c")][Mx("0x86")](n);o.enableCommand(n,(n=>{t[Mx("0x15")].change((t=>{n();const i=Mx("0x64")===r[Mx("0x56")],x=s[Mx("0x8")](e),a=s[Mx("0x3c")](x),c=i?a[Mx("0x68")]-1:a[Mx("0x53")]+1,l=x[0][Mx("0x1e")](Mx("0x20")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x54")](d).map((e=>t[Mx("0x25")](e[Mx("0x6c")])));o[Mx("0x3")](u,"tableRow")}))}))}for(const n of[Mx("0x4d"),Mx("0x4b")]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[Mx("0x15")][Mx("0x31")]((t=>{n();const i=Mx("0x5a")===r[Mx("0x56")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x81")](x),c=i?a[Mx("0x68")]-1:a[Mx("0x53")]+1,l=x[0][Mx("0x1e")](Mx("0x20")),d=s[Mx("0x14")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x54")](d)[Mx("0xc")]((e=>t[Mx("0x25")](e[Mx("0x6c")])));o[Mx("0x3")](u,"tableColumn")}))}))}for(const n of[Mx("0x65"),Mx("0x74")]){const r=n[Mx("0x23")](11),i=r[Mx("0x4e")](),x=i[Mx("0x23")](0,3)+Mx("0x24"),a=Mx("0x20")+r,c=Mx("0x44")+r,l="max"+r;o[Mx("0x18")](n,(()=>{t[Mx("0x15")][Mx("0x31")]((t=>{const r=s[Mx("0x8")](e),d=r[0][Mx("0x1e")](Mx("0x20"));let u;if(Mx("0x65")==n){const t=s[Mx("0x3c")](r);u={startRow:t[Mx("0x68")],endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x81")](r);u={startColumn:t.first,endColumn:t[Mx("0x53")],includeAllSlots:!0}}const g=s[Mx("0x14")](d,u),m=Array[Mx("0x54")](g)[Mx("0xc")]((({cell:t})=>t)),f=Ox(m[Mx("0x5b")]((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t[Mx("0x29")](x))))[Mx("0xc")]((e=>t[Mx("0x25")](e))),p=o[Mx("0x34")](h,a);if(p&&("tableRow"==p.subType||Mx("0x75")==p.subType)){const e=this[Mx("0xf")](p);for(const n of f){const o=t[Mx("0x25")](n),r=s[Mx("0x47")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Mx("0x54")](e[Mx("0x82")]())[Mx("0xc")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x15")][Mx("0x31")]((e=>{const s=e[Mx("0x0")];n=n[Mx("0x5b")]((t=>"$graveyard"!=t[Mx("0x3f")][Mx("0x3b")])),e[Mx("0x60")](n),t.commands[Mx("0x86")]("removeTableRow")[Mx("0x2a")](),t[Mx("0xd")]("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x15")][Mx("0x69")]((()=>{t[Mx("0x15")][Mx("0x69")](s,(t=>{const e=o.filter((t=>"$graveyard"!=t.root[Mx("0x3b")]));e[Mx("0x7a")]>0&&t[Mx("0x60")](e);for(const t of o)t[Mx("0x3a")]()}))}))}))}function a(n){t.model[Mx("0x31")]((o=>{const s=Array[Mx("0x54")](e.getRanges())[Mx("0xc")]((t=>i.LiveRange[Mx("0x50")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r.push(e);for(const e of r)"$graveyard"!=e[Mx("0x3f")][Mx("0x3b")]&&(o[Mx("0x60")](o[Mx("0x10")](e,0)),t[Mx("0x2c")][Mx("0x86")](Mx("0x74"))[Mx("0x2a")](),t[Mx("0xd")](Mx("0x74"),{forceDefaultExecution:!0}));const x=s[Mx("0x5b")]((t=>Mx("0x26")!=t[Mx("0x3f")][Mx("0x3b")]));x[Mx("0x7a")]>0&&o[Mx("0x60")](x);for(const t of s)t[Mx("0x3a")]()}))}function c(t,e){return e[Mx("0x21")]((e=>t[Mx("0xe")]((t=>t[Mx("0x19")][Mx("0x39")](e.start)||e[Mx("0x19")][Mx("0x39")](t[Mx("0x59")])))))}function l(t,e){return t.some((t=>e[Mx("0xe")]((e=>t[Mx("0x19")][Mx("0x7b")](e[Mx("0x59")])))))}t.data[Mx("0x58")].on(Mx("0x4f"),((t,e,n)=>{if(!n.options[Mx("0x55")])return;const o=e.item;if(!o)return;const s=n.mapper[Mx("0x1")](o);function r(t){return Array[Mx("0x62")](t)?t:[t]}s&&Mx("0x79")===o[Mx("0x27")]&&(0,x.setHighlightHandling)(s,n[Mx("0x2")],((t,e,n)=>n[Mx("0x1d")](r(e[Mx("0x40")]),t)),((t,e,n)=>n[Mx("0x33")](r(e[Mx("0x40")]),t)))}),{priority:Mx("0x16")}),o[Mx("0x36")][Mx("0x48")]((t=>{if(Mx("0x30")!=t[Mx("0x4a")]&&Mx("0x5d")!=t[Mx("0x4a")])return;const e=t[Mx("0x6d")]();if(null!=e&&e.is("element",Mx("0x20"))){if(Mx("0x30")==t[Mx("0x4a")]){const e=t[Mx("0x66")]()[Mx("0x5b")]((t=>t.is(Mx("0x38"))))[Mx("0xc")]((t=>t[Mx("0x52")]));if(e.length)return{type:Mx("0x30"),content:Yo(n,Mx("0x46"),Yo(n,Mx("0x3d"),'"'+e[Mx("0x6")](" ")+'"'))}}if(Mx("0x5d")==t.type){const e=t[Mx("0x66")]().filter((t=>t.is(Mx("0x38"))))[Mx("0xc")]((t=>t[Mx("0x52")]));if(e[Mx("0x7a")])return{type:"deletion",content:Yo(n,Mx("0x49"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x6")](" ")+'"'))}}}})),o[Mx("0x36")][Mx("0x48")]((t=>{if(Mx("0x9")==t[Mx("0x67")]){const e=t[Mx("0x66")]()[Mx("0x5b")]((t=>t.is(Mx("0x38"))))[Mx("0xc")]((t=>t[Mx("0x52")])),o=this[Mx("0xf")](t),s=o.maxRow-o.minRow+1;if("insertion"==t[Mx("0x4a")])return e[Mx("0x7a")]?{type:Mx("0x30"),content:Yo(n,Mx("0x46"),Yo(n,Mx("0x84"),[s,'"'+e[Mx("0x6")](" ")+'"']))}:{type:Mx("0x30"),content:Yo(n,Mx("0x46"),Yo(n,"ELEMENT_TABLE_ROW",s))};if("deletion"==t[Mx("0x4a")])return e.length?{type:Mx("0x5d"),content:Yo(n,Mx("0x49"),Yo(n,Mx("0x84"),[s,'"'+e[Mx("0x6")](" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x75")==t[Mx("0x67")]){const e=t[Mx("0x66")]().filter((t=>t.is(Mx("0x38")))).map((t=>t[Mx("0x52")])),o=this._getSuggestionCoords(t),s=o[Mx("0x6b")]-o[Mx("0xa")]+1;if(Mx("0x30")==t.type)return e[Mx("0x7a")]?{type:Mx("0x30"),content:Yo(n,Mx("0x46"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x46"),Yo(n,Mx("0x61"),s))};if(Mx("0x5d")==t[Mx("0x4a")])return e[Mx("0x7a")]?{type:Mx("0x5d"),content:Yo(n,Mx("0x49"),Yo(n,Mx("0x6f"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x49"),Yo(n,Mx("0x61"),s))}}})),o[Mx("0x2d")][Mx("0x7f")]("insertion",Mx("0x9"),Mx("0x77"),r),o._suggestionFactory[Mx("0x7f")](Mx("0x5d"),Mx("0x9"),Mx("0x83"),r),o[Mx("0x2d")][Mx("0x7f")](Mx("0x30"),Mx("0x75"),Mx("0x77"),a),o[Mx("0x2d")][Mx("0x7f")](Mx("0x5d"),Mx("0x75"),Mx("0x83"),a),o[Mx("0x2d")][Mx("0x7f")](Mx("0x30"),Mx("0x75"),Mx("0x6"),c),o[Mx("0x2d")][Mx("0x7f")]("deletion","tableColumn",Mx("0x6"),c),o._suggestionFactory.registerCustomCallback(Mx("0x30"),Mx("0x9"),"join",l),o[Mx("0x2d")][Mx("0x7f")]("deletion",Mx("0x9"),"join",l)}[Mx("0x4c")](){const t=this[Mx("0x42")],e=t[Mx("0x15")][Mx("0x22")].selection;return(n,o)=>{t.model[Mx("0x31")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x19")][Mx("0x7c")];x&&x[0]&&!1===x[0][Mx("0x85")]&&(a=n[0].start[Mx("0x6a")]);const c=s[Mx("0x7e")](a);if(Mx("0x26")==c[Mx("0x3f")][Mx("0x3b")])return;const l=Array[Mx("0x54")](e[Mx("0x82")]())[Mx("0xc")]((t=>i.LiveRange[Mx("0x50")](t)));s[Mx("0x60")](c),t[Mx("0x2c")][Mx("0x86")](r)[Mx("0x2a")](),x[Mx("0x43")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l.filter((t=>Mx("0x26")!=t[Mx("0x3f")][Mx("0x3b")]));d[Mx("0x7a")]>0&&s.setSelection(d);for(const t of l)t[Mx("0x3a")]()}))}}[Mx("0x3e")](t){const e=this[Mx("0x42")][Mx("0x5")].get(Mx("0x2e"));let n=Number[Mx("0x5e")],o=Number[Mx("0x35")],s=Number[Mx("0x5e")],r=Number[Mx("0x35")];for(const i of t){if(Mx("0x26")==i[Mx("0x3f")][Mx("0x3b")])continue;const{row:t,column:x}=e[Mx("0x47")](i),a=i[Mx("0x29")](Mx("0x78"))?i.getAttribute(Mx("0x78"))-1:0,c=i[Mx("0x29")](Mx("0x2f"))?i[Mx("0x70")]("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x1b")](){const t=this[Mx("0x42")],e=t[Mx("0x5")].get("TrackChangesEditing"),n=t[Mx("0x5")][Mx("0x86")]("TableUtils");t.model.document.on(Mx("0x73"),(()=>{const n=Array[Mx("0x54")](t[Mx("0x15")][Mx("0x22")][Mx("0xb")][Mx("0x7")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x71")](t);if(Mx("0x6e")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x28")].includes(r)&&this[Mx("0x1f")].add(i)}}),{priority:Mx("0x12")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x1e")](Mx("0x20")),i=n[Mx("0x47")](t);for(const e of this[Mx("0x1f")]){const n=e[Mx("0x67")],x=n[Mx("0x13")](Mx("0x87")),a=n[Mx("0x23")](x?10:5),c=a.toLowerCase(),l=c[Mx("0x23")](0,3)+Mx("0x24"),d=Mx("0x44")+a,u=Mx("0x4")+a;if(!e.isInContent)continue;if(r!=e[Mx("0x45")]().start[Mx("0x1e")](Mx("0x20")))continue;if(e[Mx("0x1c")](s))continue;const g=t[Mx("0x29")](l)?t[Mx("0x70")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x5c")](s),o=!0)}return o};t.model[Mx("0x22")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x15")][Mx("0x22")][Mx("0xb")][Mx("0x11")]())if(Mx("0x17")==s[Mx("0x4a")])if(Mx("0x9")==s[Mx("0x27")])for(const t of s.position[Mx("0x6a")][Mx("0x32")]())n=n||o(t,e);else Mx("0x79")==s.name&&(n=n||o(s[Mx("0x51")].nodeAfter,e));return n}))}[Mx("0xf")](t){return this._getCoordsForCells(t[Mx("0x82")]()[Mx("0xc")]((t=>t.start[Mx("0x6a")])))}}function Ox(t){return Array[Mx("0x54")](new Set(t)[Mx("0x1a")]())}const Fx=["change","mergeTableCells","push","accept","trackChanges","splitTableCellHorizontally","containsRange","enableCommand","registerDescriptionCallback","low","afterInit","mergeTableCellUp","getSuggestions","editor","author","isEnabled","setSelection","getFirstPosition","TableUtils","getSelectionAffectedTableCells","from","TableEditing","*Split cell:* horizontally","TrackChangesEditing","map","filter","table","splitTableCellVertically","set:isEnabled","document","mergeTableCellRight","type","add","plugins","refresh","stop","has","_acceptFormatSuggestionCallbackFactory","markMultiRangeBlockFormat","commands","insertion","size","createTableWalker","value","$graveyard","cell","length","fromRange","element","requires","mergeTableCellDown","model","format","detach","find","direction","forceDefaultExecution","isInContent","selection","mergeTableCellLeft","formatBlock","highest","root","_descriptionFactory","commandName","getAncestors","getRanges","locale","createRangeOn","getCellLocation","_areMergableCells","horizontally","_tablePostFixingSubtypes","_suggestionFactory","_areSelectedCellsMergable","execute","get"];var Px,Dx;Px=Fx,Dx=185,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x12")](){return[wx]}[Bx("0x38")](){const t=this[Bx("0x3b")],e=t[Bx("0x14")][Bx("0x4b")][Bx("0x1b")],n=t[Bx("0x24")];if(!t[Bx("0x2")][Bx("0x5")](Bx("0x43")))return;const o=t.plugins[Bx("0x2d")](Bx("0x45")),s=t[Bx("0x2")][Bx("0x2d")]("TableUtils"),r=t[Bx("0x2")][Bx("0x2d")](wx);r[Bx("0x29")][Bx("0x30")]("mergeTableCells"),o[Bx("0x35")](Bx("0x2f"),(()=>{const e=s.getSelectionAffectedTableCells(t[Bx("0x14")][Bx("0x4b")][Bx("0x1b")]);t.model[Bx("0x2e")]((()=>{o[Bx("0x7")](e,{commandName:Bx("0x2f"),commandParams:[]},[],Bx("0x2f"))}))})),t[Bx("0x8")][Bx("0x2d")]("mergeTableCells").on(Bx("0x2c"),((e,n)=>{t[Bx("0x8")].get(Bx("0x32"))[Bx("0xc")]&&(n[Bx("0xf")]>0&&n[n[Bx("0xf")]-1]&&n[n[Bx("0xf")]-1][Bx("0x19")]||o._isForcedDefaultExecutionBlock||this[Bx("0x2b")]()||e[Bx("0x4")]())}),{priority:Bx("0x1e")});for(const e of[Bx("0x39"),"mergeTableCellRight",Bx("0x13"),Bx("0x1c")]){const n=t[Bx("0x8")][Bx("0x2d")](e);o[Bx("0x35")](e,(()=>{const e=t[Bx("0x14")][Bx("0x4b")][Bx("0x1b")][Bx("0x3f")]()[Bx("0x22")]()[Bx("0x17")]((t=>t.is(Bx("0x11"),"tableCell"))),s=n[Bx("0xc")];t[Bx("0x14")][Bx("0x2e")]((()=>{o[Bx("0x7")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x2f"))}))}))}for(const e of[Bx("0x49"),Bx("0x33")]){const n=t[Bx("0x8")][Bx("0x2d")](e);o[Bx("0x35")](e,(()=>{const r=s[Bx("0x41")](t[Bx("0x14")][Bx("0x4b")][Bx("0x1b")])[0],i=r.findAncestor(Bx("0x48")),{column:x,row:a}=s[Bx("0x26")](r);let c=[];if(Bx("0x28")==n[Bx("0x18")]){const t=s[Bx("0xb")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x46")]((t=>t[Bx("0xe")]))}else{const t=s[Bx("0xb")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x46")]((t=>t[Bx("0xe")]))}t.model[Bx("0x2e")]((t=>{o.markBlockFormat(t[Bx("0x25")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x20")][Bx("0x36")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x21")]?{type:"format",content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x20")][Bx("0x36")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e.commandName?{type:Bx("0x15"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x44"))}:void 0}));const x=r[Bx("0x6")]();for(const t of[Bx("0x39"),Bx("0x4c"),Bx("0x13"),Bx("0x1c")])o[Bx("0x2a")].registerCustomCallback(Bx("0x1d"),t,"accept",x);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])o[Bx("0x2a")].registerCustomCallback(Bx("0x1d"),t,"accept",x);o[Bx("0x2a")].registerCustomCallback("formatBlock",Bx("0x2f"),Bx("0x31"),(n=>{t[Bx("0x14")][Bx("0x2e")]((o=>{const s=Array[Bx("0x42")](e.getRanges()).map((t=>i.LiveRange[Bx("0x10")](t)));o[Bx("0x3e")](n),t[Bx("0x8")][Bx("0x2d")](Bx("0x2f"))[Bx("0x3")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=s[Bx("0x47")]((t=>Bx("0xd")!=t[Bx("0x1f")].rootName));r[Bx("0xf")]>0&&o[Bx("0x3e")](r);for(const t of s)t[Bx("0x16")]()}))}));for(const e of[Bx("0x39"),Bx("0x13"),Bx("0x1c"),Bx("0x4c")]){const n=t[Bx("0x8")][Bx("0x2d")](e);n.on(Bx("0x4a"),((e,o,s)=>{if(s){const o=t[Bx("0x14")].document[Bx("0x1b")][Bx("0x3f")]()[Bx("0x22")]()[Bx("0x17")]((t=>t.is(Bx("0x11"),"tableCell")));this._areMergableCells(n[Bx("0xc")],o)||(e.return=!1,e.stop())}}),{priority:Bx("0x37")})}}[Bx("0x2b")](){const t=this[Bx("0x3b")].commands[Bx("0x2d")]("mergeTableCells"),e=this[Bx("0x3b")][Bx("0x2")][Bx("0x2d")](Bx("0x40"));if(!t[Bx("0x3d")])return!1;const n=e[Bx("0x41")](this[Bx("0x3b")][Bx("0x14")][Bx("0x4b")][Bx("0x1b")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x27")](t,e))return!1;return!0}[Bx("0x27")](t,e){const n=this.editor[Bx("0x2")].get(Bx("0x45")),o=this.editor[Bx("0x14")][Bx("0x25")](t),s=this.editor[Bx("0x14")][Bx("0x25")](e),r=new Set,i=new Set;for(const t of n[Bx("0x3a")]())if((Bx("0x9")==t[Bx("0x0")]||"deletion"==t.type||Bx("0x2f")==t.subType)&&t[Bx("0x1a")])for(const e of t[Bx("0x23")]())e[Bx("0x34")](o,!0)&&r[Bx("0x1")](t[Bx("0x0")]+":"+t.author.id),e[Bx("0x34")](s,!0)&&i[Bx("0x1")](t[Bx("0x0")]+":"+t[Bx("0x3c")].id);if(r[Bx("0xa")]!=i[Bx("0xa")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["getChild","createTableWalker","formatBlock","markerName","value","downcastDispatcher","editing","writer","removeAttribute","FORMAT_HEADER_ROW","addMarker:suggestion","markBlockFormat","findAncestor","nodeAfter","table","removeClass","getCellLocation","setTableRowHeader","getSuggestion","unbindElementFromMarkerName","createPositionBefore","data","start","model","data-suggestion","index","format","name","plugins","cell","nodeBefore","removeMarker:suggestion","commandName","accept","getRowIndexes","get","getColumnIndexes","enableCommand","editor","parent","end","markerRange","getAttribute","bindElementToMarker","TrackChangesEditing","consumable","_acceptFormatSuggestionCallbackFactory","FORMAT_REGULAR_COLUMN","highest","TableEditing","*Format:* %0","mapper","item","options","ck-suggestion-marker--active","has","showSuggestionHighlights","setTableColumnHeader","_suggestionFactory","createRange","commandParams","TableUtils","setAttribute","stop","forceValue","headingRows","from","registerDescriptionCallback","change","_splitMarkerName","selection","includes","document","childCount","afterInit","requires","commands","createPositionAfter","first","getSelectionAffectedTableCells","_descriptionFactory","FORMAT_REGULAR_ROW"];var Gx,Hx;Gx=Ux,Hx=389,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0xe")](){return[wx]}[zx("0xd")](){const t=this[zx("0x3b")];if(!t.plugins[zx("0x4c")](zx("0x46")))return;const e=t.locale,n=t[zx("0x31")][zx("0x38")](zx("0x41")),o=t[zx("0x31")][zx("0x38")](zx("0x0")),s=t.plugins[zx("0x38")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x8")](r[zx("0x18")]),c=n[zx("0x27")](a);if(!c[zx("0x2a")]||zx("0x4e")!=c[zx("0x2a")].commandName)return;if(r[zx("0x49")])return void s[zx("0x2")]();if(!i[zx("0x42")].consume(r[zx("0x3e")],s[zx("0x30")]))return;const l=r.markerRange[zx("0x2b")][zx("0x22")],d=r[zx("0x3e")][zx("0x3d")][zx("0x33")],u=l[zx("0x3c")][zx("0x3c")],{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x25")](d);for(let s=g;s<=m;s++){const c=o[zx("0x16")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x32")],c=i[zx("0x48")].toViewElement(s);i.writer.addClass("ck-suggestion-marker-"+x,c),e&&i.writer[zx("0x1")](zx("0x2d"),a,c),i[zx("0x48")][zx("0x40")](c,r[zx("0x18")]),t&&(n.activeMarkers[zx("0xa")](r[zx("0x18")])?i.writer.addClass(zx("0x4b"),c):i.writer[zx("0x24")]("ck-suggestion-marker--active",c))}}}}n[zx("0x3a")](zx("0x26"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[zx("0x2c")][zx("0xb")].selection),i=o[zx("0x37")](r),x=r[0][zx("0x21")](zx("0x23")),a=x[zx("0x3f")](zx("0x4"))||0,c=s&&null!==s[zx("0x3")]?s[zx("0x3")]:!t[zx("0xf")][zx("0x38")](zx("0x26")).value,l=c?i.last:i.first,d=x[zx("0x15")](l);let u;if(c){const e=x[zx("0x15")](a);if(d[zx("0x2e")]<e[zx("0x2e")])return;u=t[zx("0x2c")][zx("0x50")](t[zx("0x2c")][zx("0x29")](e[zx("0x15")](0)),t[zx("0x2c")][zx("0x10")](d[zx("0x15")](d[zx("0xc")]-1)))}else{const e=x[zx("0x15")](a-1);if(!e)return;u=t.model.createRange(t.model[zx("0x29")](d[zx("0x15")](0)),t[zx("0x2c")][zx("0x10")](e[zx("0x15")](e[zx("0xc")]-1)))}t.model[zx("0x7")]((()=>{n[zx("0x20")](u,{commandName:zx("0x26"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x3a")](zx("0x4e"),((e,o)=>{const s=t[zx("0x31")].get("TableUtils"),r=s[zx("0x12")](t.model.document[zx("0x9")]),i=s[zx("0x39")](r),x=r[0].findAncestor(zx("0x23")),a=x[zx("0x3f")]("headingColumns")||0,c=o&&null!==o[zx("0x3")]?o[zx("0x3")]:!t[zx("0xf")].get(zx("0x4e"))[zx("0x19")];let l;const d=x[zx("0x15")](0),u=c?i.last:i[zx("0x11")],g=s[zx("0x16")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x5")](g)[0][zx("0x32")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t[zx("0x2c")][zx("0x50")](t[zx("0x2c")][zx("0x29")](e),t.model[zx("0x10")](m))}else{const e=d[zx("0x15")](a-1);if(!e)return;l=t[zx("0x2c")].createRange(t[zx("0x2c")][zx("0x29")](m),t[zx("0x2c")][zx("0x10")](e))}t[zx("0x2c")][zx("0x7")]((()=>{n[zx("0x20")](l,{commandName:zx("0x4e"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[zx("0x1b")][zx("0x1a")].on(zx("0x1f"),r(),{priority:zx("0x45")}),t.data.downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{n[zx("0x4a")][zx("0x4d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x45")}),t[zx("0x1b")][zx("0x1a")].on(zx("0x34"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x18")]),i=n[zx("0x27")](r);if(!i.data||zx("0x4e")!=i.data[zx("0x35")])return;const x=o[zx("0x48")].markerNameToElements(e[zx("0x18")]);if(x)for(const t of x)o[zx("0x1c")][zx("0x24")]("ck-suggestion-marker-"+s,t),o.writer[zx("0x24")](zx("0x4b"),t),o[zx("0x1c")][zx("0x1d")](zx("0x2d"),t),o[zx("0x48")][zx("0x28")](t,e[zx("0x18")])}),{priority:zx("0x45")}),n[zx("0x13")][zx("0x6")]((t=>{const{data:n}=t;if(n){if(zx("0x26")==n.commandName){const t=n[zx("0x51")][0].forceValue;return o(Yo(e,zx(t?"0x1e":"0x14")))}if(zx("0x4e")==n[zx("0x35")]){const t=n[zx("0x51")][0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x44")))}}function o(t){return{type:zx("0x2f"),content:Yo(e,zx("0x47"),t)}}}));const i=s[zx("0x43")]();n[zx("0x4f")].registerCustomCallback(zx("0x17"),zx("0x26"),"accept",i),n[zx("0x4f")].registerCustomCallback(zx("0x17"),zx("0x4e"),zx("0x36"),i)}}const Vx=["suggestion","push","getSuggestions","getRanges","name","getChangedMarkers","ck-suggestion-marker--active","hasSuggestion","dataDowncast","stop","markerToHighlight","filter","low","elementToElement","markerAttributes","markerName","tableCell","end","suggestionLoaded","insert","$graveyard","tableCellVerticalAlignment","fromEntries","rowInsertionRanges","markMultiRangeBlockFormat","ck-suggestion-marker","tableCellHorizontalAlignment","getTableIfOnlyTableInContent","model","differ","subType","last","map","tablePasteChainId","length","insertRows","tableCellBackgroundColor","element","schema","tableCellBorderColor","tablePasteCell","TrackChangesEditing","some","registerCustomCallback","content","startsWith","rows","markers","accept","editor","insertion","getSelectionAffectedTableCells","document","includes","rootName","removeMarkers","getChild","afterInit","findAncestor","next","columnInsertionIndexes","_getCoordsForCells","removeRows","removeMarker","getContainedElement","newRange","getShiftedBy","tableCellBorderWidth","first","markMultiRangeInsertion","options","getChildren","getAllAdjacentSuggestions","_splitMarkerName","requires","Users","table","position","remove","TableClipboard","suggestionUnloaded","registerPostFixer","fill","clipboardOutput","createTableWalker","cell","value","isEqual","getRows","_suggestionFactory","locale","getSuggestion","add","from","attributes","oldRange","type","getMarkers","cells","previous","endRow","nextSibling","set","deletion","tablePasteColumn","documentSelection","createRange","insertionRanges","tableCellSuggestion","change","column","redo","getChanges","formatBlock","markMultiRangeDeletion","createElement","_replaceTableSlotCell","rowInsertionIndexes","nodeAfter","_createdBatches","return","tablePasteRow","wrap","registerDescriptionCallback","updateMarker","discard","join","forceDefaultExecution","keys","deletionRanges","containsRange","editing","getRange","tableCellPadding","createRangeOn","TableUtils","get","high","suggestion:formatBlock:tablePasteCell","insertContent","start","isInContent","move","view","every","find","commands","conversion","paragraph","tablePaste","getSuggestionCallback","unwrap","plugins","getColumns","isEmpty","_descriptionFactory","listenTo","has","createRangeIn"];var Kx,qx;Kx=Vx,qx=114,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x70"),Xx("0x54"),"tableCellBorderStyle",Xx("0x47"),Xx("0x42"),Xx("0x51"),Xx("0x13")],Jx=Object.fromEntries($x[Xx("0x4d")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x77")](){return[wx]}[Xx("0x66")](){const t=this[Xx("0x5e")];if(!t[Xx("0x26")].has(Xx("0x7c")))return;const n=t[Xx("0x26")][Xx("0x16")](Xx("0x56")),o=t[Xx("0x26")][Xx("0x16")](Xx("0x15")),s=t[Xx("0x26")][Xx("0x16")](wx),r=t.plugins[Xx("0x16")](Xx("0x7c"));s._tablePostFixingSubtypes.push(Xx("0x7"),Xx("0x95")),t[Xx("0x49")][Xx("0x53")].register("tableCellSuggestion",{allowIn:Xx("0x3d"),allowContentOf:Xx("0x3d"),isLimit:!0}),t[Xx("0x21")][Xx("0x3a")]({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t.model.on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Xx("0x4f")]-1];l&&l[Xx("0xd")]||n._isForcedDefaultExecutionBlock||this.editor[Xx("0x20")][Xx("0x16")]("trackChanges")[Xx("0x83")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x96")))return!1;const r=s[Xx("0x48")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x60")](n[Xx("0x61")].selection);if(!i[Xx("0x4f")])return!1;const x=i[0][Xx("0x67")](Xx("0x79")),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x71")],endRow:a[Xx("0x4c")],startColumn:c[Xx("0x71")],endColumn:c[Xx("0x4c")]};return 1==i[Xx("0x4f")]&&(l[Xx("0x91")]+=o[Xx("0x85")](r)-1,l.endColumn+=o[Xx("0x27")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x49")],o,r)&&(s[Xx("0x36")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x49")][Xx("0x9a")]((()=>{t[Xx("0x49")][Xx("0x19")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x4f")]&&n[Xx("0x72")](s,Xx("0x7"),{tablePasteChainId:o}),r[Xx("0x4f")]&&n[Xx("0x72")](r,Xx("0x95"),{tablePasteChainId:o}),a.length&&n[Xx("0x72")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x4f")]&&n[Xx("0x0")](c,Xx("0x23"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x45")](l[Xx("0x4d")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x55"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x49")].createRangeOn(o),i=e[Xx("0x1f")]((t=>t[Xx("0x12")]()[Xx("0x84")](r)));i&&n[Xx("0x2e")]([i.name,s])}n.length&&d.setAttribute(Xx("0x3b"),Object[Xx("0x43")](n))}i=null})))}),{priority:e.priorities[Xx("0x17")]+10}),t.plugins.get(Xx("0x7c")).on(Xx("0x2"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x36")]();const r=n[Xx("0x82")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x6")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x7b")](r[Xx("0x65")](0));for(const t of Array[Xx("0x8a")](x[Xx("0x74")]()))s[Xx("0x40")](t,r,Xx("0x3e"));const t=i.rowInsertionIndexes[Xx("0x62")](n.row),e=i.columnInsertionIndexes.includes(n[Xx("0x9b")]);t||e||(l=s[Xx("0x2c")](r))}else c&&!a&&(d=s[Xx("0x2c")](r));else{const t=s[Xx("0x1")](Xx("0x99")),e=s[Xx("0x1")](Xx("0x99"));s[Xx("0x8")](s.createRangeIn(r),e),s[Xx("0x40")](t,r,0);for(const e of Array[Xx("0x8a")](x.getChildren()))s[Xx("0x40")](e,t,"end");l=s.createRangeOn(t),d=s[Xx("0x14")](e)}const u=Array[Xx("0x8a")](x.getAttributes()).filter((([t])=>$x.includes(t)));i.cells[Xx("0x2e")]({element:r,attributes:u[Xx("0x4f")]?Object[Xx("0x43")](u):null}),l&&i[Xx("0x98")][Xx("0x2e")](l),d&&i[Xx("0xf")][Xx("0x2e")](d)}),{priority:Xx("0x17")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i[Xx("0x69")]=new Array(a)[Xx("0x7f")](x)[Xx("0x4d")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[Xx("0x2e")](t.model[Xx("0x14")](e))}),{priority:Xx("0x39")}),o.on(Xx("0x50"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x5b")]||1;i[Xx("0x3")]=new Array(a)[Xx("0x7f")](x)[Xx("0x4d")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x44")][Xx("0x2e")](t.model[Xx("0x14")](e))}),{priority:Xx("0x39")}),n[Xx("0x29")][Xx("0x9")]((e=>{if(e.subType&&e[Xx("0x4b")][Xx("0x5a")](Xx("0x23")))return e[Xx("0x90")]?{}:{type:"insertion",content:Yo(t[Xx("0x87")],"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x23"),Xx("0x95"),Xx("0x7"),Xx("0x55")])n[Xx("0x86")][Xx("0x58")]("insertion",t,Xx("0xc"),x),n[Xx("0x86")][Xx("0x58")]("deletion",t,Xx("0xc"),x);n[Xx("0x86")][Xx("0x58")](Xx("0x9e"),Xx("0x55"),Xx("0xb"),x),n._suggestionFactory[Xx("0x58")](Xx("0x9e"),Xx("0x55"),Xx("0x5d"),((e,n,o)=>{const s=e[Xx("0x4d")]((t=>t[Xx("0x6d")]())).filter((t=>t)),r=new Map(s[Xx("0x4d")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x8f")])e&&r[Xx("0x93")](t,e);else if(o&&o[Xx("0x3b")])for(const[e,n]of Object.entries(o[Xx("0x3b")])){const o=t[Xx("0x49")][Xx("0x5c")][Xx("0x16")](e),s=o?o[Xx("0x12")]().getContainedElement():null;s&&r.set(s,n)}t[Xx("0x49")][Xx("0x9a")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x86")][Xx("0x58")](e,Xx("0x23"),o,((s,r,i)=>{t.model[Xx("0x9a")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x1a")][Xx("0x4")];e.is(Xx("0x52"),Xx("0x99"))&&x[Xx("0x2e")](e)}n[Xx("0x86")][Xx("0x24")](e,null,o)(s,r,i);for(const e of x)Xx("0x41")!=e.root[Xx("0x63")]&&t[Xx("0x25")](e)}))}))};a(Xx("0x5f"),Xx("0x5d")),a(Xx("0x5f"),Xx("0xb")),a("deletion",Xx("0x5d")),a(Xx("0x94"),Xx("0xb")),n[Xx("0x86")][Xx("0x58")](Xx("0x5f"),Xx("0x7"),Xx("0xb"),(t=>{const e=t[Xx("0x4d")]((t=>t[Xx("0x6d")]())),n=e[0][Xx("0x67")](Xx("0x79")),{minRow:r,maxRow:i}=s[Xx("0x6a")](e);o[Xx("0x6b")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x58")](Xx("0x5f"),Xx("0x95"),"discard",(t=>{const e=t[Xx("0x4d")]((t=>t.getContainedElement())),n=e[0][Xx("0x67")]("table"),{minColumn:r,maxColumn:i}=s[Xx("0x6a")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x4b")]||!e[Xx("0x4b")].startsWith("tablePaste"))return;const o=e.attributes.tablePasteChainId,s=n.getSuggestions().filter((t=>t[Xx("0x1b")]&&t[Xx("0x8b")]&&t[Xx("0x8b")][Xx("0x4e")]==o));s[Xx("0x4f")]&&e[Xx("0x75")]()[Xx("0x4f")]!=s[Xx("0x4f")]&&s.reduce(((t,e)=>(t[Xx("0x68")]=e,e[Xx("0x90")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x76")](t[Xx("0x3c")]),s=[Xx("0x46"),"ck-suggestion-marker-insertion"],r=n.activeMarkers[Xx("0x62")](t[Xx("0x3c")]);return r&&s[Xx("0x2e")](Xx("0x33")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x3f"),c,{priority:"high"}),n.on(Xx("0x7d"),c,{priority:Xx("0x17")}),t.model[Xx("0x61")][Xx("0x7e")]((()=>{let e=!1;const o=Array[Xx("0x8a")](t.model[Xx("0x61")][Xx("0x4a")][Xx("0x32")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(Xx("0x2d")!=o||Xx("0x94")!=i||r.oldRange)continue;if(!n[Xx("0x34")](x))continue;const a=n[Xx("0x88")](x)[Xx("0x30")](),c=t[Xx("0x26")][Xx("0x16")](Xx("0x78")).me;for(const t of n[Xx("0x2f")]())if(t[Xx("0x1b")]&&t.author==c&&"formatBlock"==t[Xx("0x8d")]&&"tablePasteCell"==t[Xx("0x4b")]&&t[Xx("0x30")]()[Xx("0x1e")]((t=>a[Xx("0x57")]((e=>e[Xx("0x10")](t,!0))))))for(const n of t[Xx("0x75")]())n[Xx("0x1b")]&&(n.discard(),e=!0)}return e})),t[Xx("0x49")].document[Xx("0x7e")]((e=>{const o=t[Xx("0x20")][Xx("0x16")](Xx("0x9c"));if(!o||!o[Xx("0x5")][Xx("0x2b")](e.batch))return!1;let s=!1;const r=t[Xx("0x26")][Xx("0x16")]("Users").me,i=t.model.document[Xx("0x4a")][Xx("0x9d")](),x=Array[Xx("0x8a")](t.model.document.differ[Xx("0x32")]())[Xx("0x38")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x76")](t);return"suggestion"==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0x8c")]}));for(const t of i){if(Xx("0x40")!=t[Xx("0x8d")]||Xx("0x99")!=t[Xx("0x31")]||1!=t.length)continue;const n=e[Xx("0x97")](t[Xx("0x7a")],t[Xx("0x7a")][Xx("0x6f")](1));if(!x.find((({data:t})=>t[Xx("0x6e")][Xx("0x84")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x10")](o[Xx("0x6e")])){e[Xx("0xa")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x49")][Xx("0x61")][Xx("0x7e")]((e=>{let o=!1;const s=t[Xx("0x26")][Xx("0x16")](Xx("0x78")).me,r=n[Xx("0x2f")]()[Xx("0x38")]((t=>t[Xx("0x1b")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x23")==t[Xx("0x4b")])for(const e of t[Xx("0x8e")]()){const n=e[Xx("0x12")]()[Xx("0x6d")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t[Xx("0x6c")](e[Xx("0x31")]),i[Xx("0x89")](n),o=!0;const s=n[Xx("0x92")],r=n.previousSibling,a=s&&s.is(Xx("0x52"),Xx("0x99")),c=r&&r.is(Xx("0x52"),Xx("0x99"));a&&!i.has(s)&&x[Xx("0x89")](s),c&&!i[Xx("0x2b")](r)&&x[Xx("0x89")](r)}else n.is(Xx("0x52"),"paragraph")&&n[Xx("0x28")]&&(t[Xx("0x6c")](e[Xx("0x31")]),o=!0)}else if("tablePasteCell"==t.subType){if(!t[Xx("0x8b")]||!t[Xx("0x8b")][Xx("0x4e")])continue;const e=t.attributes[Xx("0x3b")];if(e&&Object[Xx("0xe")](e)[Xx("0x4f")])continue;const n=t.attributes[Xx("0x4e")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x4b")][Xx("0x5a")](Xx("0x23"))){if(!e[Xx("0x8b")][Xx("0x4e")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x4e")]==n){s=!1;break}}i&&s&&(t[Xx("0x64")](),o=!0)}for(const t of i)e[Xx("0x7b")](t);for(const t of x)e[Xx("0x25")](t);return o})),t.conversion.for("editingDowncast")[Xx("0x37")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Xx("0x17")}),t[Xx("0x21")].for(Xx("0x35"))[Xx("0x37")]({model:Xx("0x18"),view:(t,e)=>e[Xx("0x73")].showSuggestionHighlights?l(t,!1):null,converterPriority:Xx("0x17")});const d=t[Xx("0x11")][Xx("0x1d")];this[Xx("0x2a")](d[Xx("0x61")],Xx("0x80"),((t,e)=>{const n=[];for(const t of d[Xx("0x2c")](e[Xx("0x59")]).getItems())t.is("element","suggestion-td")&&n[Xx("0x2e")](t);d.change((t=>{for(const e of n)t[Xx("0x1c")](t.createRangeIn(e),t.createPositionBefore(e)),t[Xx("0x7b")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x65")](0);return e.is(Xx("0x52"),Xx("0x22"))&&e[Xx("0x28")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x81")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["change","commandParams","selection","*Format:* resize table","handleResizeTableWidthCommand","discard","author","_suggestionFactory","getTableColumnsWidths","tableWidth","bind","enableCommand","registerCustomCallback","accept","afterInit","columnWidths","formatBlock","table","getColumnGroupElement","TableColumnResizeEditing","resizeTableWidth","getSuggestions","has","handleSuggestionDescription","resizeTable","formatGroupId","getContainedElement","model","TrackChangesEditing","subType","get","editor","getAttribute","registerDescriptionCallback","plugins","getSelectedElement"];var ea,na;ea=ta,na=429,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x11")](){if(!this[oa("0x22")][oa("0x1")][oa("0x19")](oa("0x16")))return;const t=this[oa("0x22")][oa("0x1")].get(oa("0x1f"));t[oa("0xe")](oa("0x17"),this[oa("0x7")][oa("0xd")](this)),t[oa("0xe")]("resizeColumnWidths",this.handleResizeTableWidthCommand.bind(this)),t._suggestionFactory[oa("0xf")](oa("0x13"),"resizeTable",oa("0x10"),t[oa("0xa")].getSuggestionCallback(oa("0x13"),null,oa("0x8"))),t[oa("0xa")][oa("0xf")]("formatBlock","resizeTable",oa("0x8"),t[oa("0xa")].getSuggestionCallback(oa("0x13"),null,oa("0x10"))),t._descriptionFactory[oa("0x0")](this[oa("0x1a")].bind(this))}[oa("0x7")](t,e){const n=this[oa("0x22")][oa("0x1")][oa("0x21")](oa("0x1f")),o=this[oa("0x22")][oa("0x1")][oa("0x21")](oa("0x16")),s=e[oa("0x14")]||this[oa("0x22")].model.document[oa("0x5")][oa("0x2")]();this[oa("0x22")][oa("0x1e")][oa("0x3")]((()=>{const r=o[oa("0x15")](s);let i=r?o[oa("0xb")](r):null,x=s[oa("0x23")](oa("0xc"))||null;const a=e[oa("0xc")]||x,c=e[oa("0x12")]||i,l=this[oa("0x22")].plugins[oa("0x21")]("Users").me;for(const t of n[oa("0x18")]()){const e=t[oa("0x1d")]();if("resizeTable"===t[oa("0x20")]&&e===s){t[oa("0x9")]!==l&&t[oa("0x8")]();const e=t.data[oa("0x4")];x=e[0][oa("0xc")],i=e[0][oa("0x12")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x1b"))}))}[oa("0x1a")](t){const{data:e}=t;if(e&&oa("0x1b")===e[oa("0x1c")]){const t=oa("0x6");return{type:"format",content:Yo(this.editor.locale,t)}}}}const ra=["afterInit","editor","TrackChangesEditing","plugins","get","Template"];var ia,xa;ia=ra,xa=151,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this[aa("0x0")];t[aa("0x2")].has(aa("0x4"))&&t.plugins[aa("0x3")](aa("0x1")).enableCommand("insertTemplate")}}const la=["TrackChangesEditing","locale","_descriptionFactory","plugins","get","ELEMENT_TABLE_OF_CONTENTS","enableCommand","afterInit","commands","editor","registerElementLabel","insertTableOfContents","tableOfContents"];var da,ua;da=la,ua=261,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x6")](){const t=this[ga("0x8")];if(!t[ga("0x7")][ga("0x3")]("insertTableOfContents"))return;t.plugins[ga("0x3")](ga("0xc"))[ga("0x5")](ga("0xa"));const e=t[ga("0x2")][ga("0x3")](ga("0xc")),n=t[ga("0x0")];e[ga("0x1")][ga("0x9")](ga("0xb"),(t=>Yo(n,ga("0x4"),t)))}}const fa=["title-content","isCollapsed","removeMarker","differ","isEqual","start","plugins","nodeBefore","from","locale","Title","getChangedMarkers","_descriptionFactory","TrackChangesEditing","has","getNearestSelectionRange","newRange","afterInit","model","document","end","ELEMENT_TITLE","updateMarker","element","get","editor","createRange","suggestion"];var ha,pa;ha=fa,pa=478,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xf")](){const t=this[ba("0x17")];if(!t.plugins[ba("0xc")](ba("0x8")))return;const e=t[ba("0x4")][ba("0x16")](ba("0xb"));e[ba("0xa")].registerElementLabel("title-content",(()=>Yo(t[ba("0x7")],ba("0x13")))),t[ba("0x10")][ba("0x11")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x6")](t[ba("0x10")][ba("0x11")][ba("0x1")][ba("0x9")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x19")!==s||!i.newRange)continue;const x=i[ba("0xe")],a=x[ba("0x12")][ba("0x5")];if(!a||!a.is(ba("0x15"),ba("0x1a")))continue;if(!x.start.isTouching(x[ba("0x12")]))continue;const c=t[ba("0x10")].schema[ba("0xd")](x[ba("0x12")],"forward");if(c&&c[ba("0x1b")]){const t=n[ba("0x18")](x[ba("0x3")],c[ba("0x3")]);t[ba("0x2")](x)||(n[ba("0x14")](r,{range:t}),o=!0)}o||(n[ba("0x0")](r),o=!0)}return o}))}}const _a=["undo","redo","get","plugins","editor","enableCommand"];var Ta,Ca;Ta=_a,Ca=326,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x2")],e=t[ya("0x1")][ya("0x0")]("TrackChangesEditing");t[ya("0x1")].has("UndoEditing")&&(e[ya("0x3")](ya("0x4")),e.enableCommand(ya("0x5")))}}const Aa=["enableCommand","afterInit","TrackChangesEditing","plugins","get","TableCaptionEditing","editor","toggleTableCaption","requires"];var va,Ra;va=Aa,Ra=101,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x6")](){return[wx]}[Ia("0x8")](){const t=this[Ia("0x4")];t[Ia("0x1")].has(Ia("0x3"))&&t[Ia("0x1")][Ia("0x2")](Ia("0x0"))[Ia("0x7")](Ia("0x5"))}}const La=["TrackChangesEditing","handleListStartCommand","getSelectedBlocks","locale","isListItemBlock","markMultiRangeBlockFormat","handleListReversedCommand","getListTypeFromListStyleType","listStart","_descriptionFactory","commandName","push","_getSuggestionBlocksForListStyle","listReversed","replace","bind","listType","model","DocumentListPropertiesUtils","format","DocumentListUtils","styles","ELEMENT_","toUpperCase","has","enableCommand","expandListBlocksToCompleteList","length","startIndex","*Format:* set order to regular","reversed","selection","_getSuggestionBlocks","*Change to:* %0","afterInit","change","handleDescriptions","_getTranslationKeyForListStyle","commandParams","type","numbered","*Format:* set start index to %0","document","from","editor","_LIST_","list.properties","get","plugins","listStyle","isFirstBlockOfListItem","handleListStyleCommand","getAttribute"];var Na,Ma;Na=La,Ma=290,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x9")](){if(!this.editor.plugins[wa("0x34")]("DocumentListPropertiesEditing"))return;const t=this[wa("0x13")].config[wa("0x16")](wa("0x15")),e=this.editor[wa("0x17")][wa("0x16")](wa("0x1c"));t[wa("0x31")]&&e[wa("0x0")](wa("0x18"),this[wa("0x1a")][wa("0x2b")](this)),t.reversed&&e[wa("0x0")](wa("0x29"),this[wa("0x22")][wa("0x2b")](this)),t[wa("0x3")]&&e[wa("0x0")](wa("0x24"),this[wa("0x1d")][wa("0x2b")](this)),e[wa("0x25")].registerDescriptionCallback(this[wa("0xb")][wa("0x2b")](this))}[wa("0x1a")](t,e={}){const n=this[wa("0x13")][wa("0x17")][wa("0x16")]("TrackChangesEditing"),o=this[wa("0x28")]();this[wa("0x13")][wa("0x2d")][wa("0xa")]((()=>{n[wa("0x21")](o,{commandName:wa("0x18"),commandParams:[{type:e.type}],formatGroupId:wa("0x18")})}))}[wa("0x22")](t,e={}){const n=this[wa("0x13")].plugins[wa("0x16")]("TrackChangesEditing"),o=this[wa("0x13")][wa("0x17")].get(wa("0x30")),s=this[wa("0x7")]((t=>o[wa("0x20")](t)&&wa("0xf")===t[wa("0x1b")](wa("0x2c"))));null!==s&&this.editor[wa("0x2d")][wa("0xa")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x29"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x29")})}))}[wa("0x1d")](t,e={}){const n=this[wa("0x13")][wa("0x17")].get("TrackChangesEditing"),o=this[wa("0x13")][wa("0x17")].get(wa("0x30")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&"numbered"===t.getAttribute(wa("0x2c"))));null!==s&&this.editor.model[wa("0xa")]((()=>{n[wa("0x21")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:wa("0x24")})}))}[wa("0xb")](t){const e=this[wa("0x13")][wa("0x1f")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x26")]){case wa("0x18"):o=wa("0x8"),s={type:wa("0x2f"),content:Yo(e,o,Yo(e,this[wa("0xc")](n[wa("0xd")][0][wa("0xe")])))};break;case wa("0x29"):o=n.commandParams[0][wa("0x5")]?"*Format:* set order to reversed":wa("0x4"),s={type:wa("0x2f"),content:Yo(e,o)};break;case wa("0x24"):o=wa("0x10"),s={type:wa("0x2f"),content:Yo(e,o,n.commandParams[0][wa("0x3")])}}return s}[wa("0x28")](){const t=this.editor.plugins.get(wa("0x30"));let e=Array[wa("0x12")](this[wa("0x13")][wa("0x2d")][wa("0x11")][wa("0x6")][wa("0x1e")]());return e[wa("0x27")](...t[wa("0x1")](e)),e=[...new Set(e)],e}[wa("0x7")](t){const e=this.editor[wa("0x17")][wa("0x16")](wa("0x30"));let n=Array[wa("0x12")](this[wa("0x13")].model[wa("0x11")].selection[wa("0x1e")]()).filter(t);if(!n[wa("0x2")])return null;n=e[wa("0x1")](n);const o=[];for(const t of n)e[wa("0x19")](t)&&o[wa("0x27")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x32")+this.editor.plugins[wa("0x16")](wa("0x2e"))[wa("0x23")](t).toUpperCase()+wa("0x14")+t[wa("0x33")]()[wa("0x2a")](/-/g,"_")}}const Fa=["registerCustomCallback","commandParams","TrackChangesEditing","tableCellHeight","_descriptionFactory","nodeAfter","getSuggestions","selection","discard","change","_suggestionFactory","getContainedElement","tableWidth","tableCellBorderStyle","handleDiscardAction","_getSuggestion","locale","tableCellVerticalAlignment","format","handleSuggestionDescription","tableCellBackgroundColor","TablePropertiesEditing","join","TrackChangesTableProperties","enqueueChange","has","tableProperties","removeAttribute","document","tableCellProperties","model","table","tableBorderColor","get","tableCellBorderWidth","tableBackgroundColor","plugins","registerDescriptionCallback","setAttribute","TableUtils","getAttribute","_handlePropertyChange","formatBlock","markBlockFormat","enableCommand","pluginName","afterInit","*Format:* change table properties","editor","tableCellWidth"];var Pa,Da;Pa=Fa,Da=169,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x7")]=[Ba("0xd"),"tableBorderStyle","tableBorderWidth","tableAlignment",Ba("0x2b"),"tableHeight",Ba("0x10")],this[Ba("0xa")]=["tableCellBorderColor",Ba("0x2c"),Ba("0xf"),"tableCellPadding",Ba("0x1e"),Ba("0x22"),Ba("0x1"),"tableCellHorizontalAlignment",Ba("0x30")]}static get[Ba("0x1a")](){return Ba("0x4")}[Ba("0x1b")](){const t=this.editor.plugins[Ba("0xe")](Ba("0x21"));if(this[Ba("0x1d")][Ba("0x11")][Ba("0x6")](Ba("0x2"))){for(const e of this[Ba("0x7")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x1d")][Ba("0xb")].document[Ba("0x26")].getFirstPosition().findAncestor(Ba("0xc"));this[Ba("0x16")](e,[o],this[Ba("0x7")],Ba("0x7"),t,n)}));t[Ba("0x29")].registerCustomCallback("formatBlock",Ba("0x7"),"accept",t[Ba("0x29")].getSuggestionCallback(Ba("0x17"),null,Ba("0x27"))),t._suggestionFactory.registerCustomCallback(Ba("0x17"),"tableProperties",Ba("0x27"),((t,e)=>this[Ba("0x2d")](this[Ba("0x7")],t,e))),t[Ba("0x29")][Ba("0x1f")](Ba("0x17"),Ba("0x7"),Ba("0x3"),(()=>!1))}if(this[Ba("0x1d")][Ba("0x11")][Ba("0x6")]("TableCellPropertiesEditing")){for(const e of this[Ba("0xa")])t[Ba("0x19")](e,((t,n)=>{const o=this[Ba("0x1d")][Ba("0x11")][Ba("0xe")](Ba("0x14")).getSelectionAffectedTableCells(this[Ba("0x1d")][Ba("0xb")][Ba("0x9")][Ba("0x26")]);this[Ba("0x16")](e,o,this[Ba("0xa")],"tableCellProperties",t,n)}));t[Ba("0x29")][Ba("0x1f")](Ba("0x17"),"tableCellProperties","accept",t[Ba("0x29")].getSuggestionCallback(Ba("0x17"),null,Ba("0x27"))),t[Ba("0x29")][Ba("0x1f")](Ba("0x17"),Ba("0xa"),Ba("0x27"),((t,e)=>this[Ba("0x2d")](this.tableCellProperties,t,e))),t[Ba("0x29")][Ba("0x1f")]("formatBlock",Ba("0xa"),"join",(()=>!1))}t[Ba("0x23")][Ba("0x12")]((t=>this[Ba("0x0")](t)))}[Ba("0x16")](t,e,n,o,s,r){const i=this.editor.plugins[Ba("0xe")]("TrackChangesEditing");this.editor[Ba("0xb")][Ba("0x5")](r.batch,(()=>{for(const t of e)if(this[Ba("0x2e")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x15")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x18")](t,{commandParams:[e]},[],o)}}))}[Ba("0x2d")](t,e,n){const o=e[0].start[Ba("0x24")],s=n[Ba("0x20")][0];this[Ba("0x1d")][Ba("0xb")][Ba("0x28")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x13")](n,s[n],o):e[Ba("0x8")](n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t.subType){case Ba("0x7"):return{type:Ba("0x31"),content:Yo(this[Ba("0x1d")][Ba("0x2f")],Ba("0x1c"))};case Ba("0xa"):return{type:Ba("0x31"),content:Yo(this[Ba("0x1d")][Ba("0x2f")],"*Format:* change table cell properties")}}}[Ba("0x2e")](t,e){const n=this[Ba("0x1d")][Ba("0x11")].get(Ba("0x21"));for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o[Ba("0x2a")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["applyOperation","upcast","_addThreadToSuggestion","listenTo","addUser","insertion","forceDefaultExecution","for","start","markInlineFormat","createRange","map","insertion:","getAncestors","commands","consume","update:suggestion","markers","backward","stopListening","activeMarkers","addComment","getDifference","track-changes-command-not-found","$marker","commandName","author","_removeSuggestion","subType","clone","hasComments","_refreshSuggestionsChain","then","adapter","_cutOutSuggestionMarker","_trackFormatChanges","ck-suggestion-marker-formatBlock","plugins","commentThread","authorName","getSuggestionCallback","isLocal","discardSelectedSuggestions","isObject","authoredAt","length","define","getRanges","unbind","always","nodeBefore","conversion","discardAllSuggestions","resolve","lowest","isBefore","_customCallbacks","acceptSelectedSuggestions","rootName","suggestion-type","_createSuggestion","getFirstMarker","multi","high","registerPostFixer","markDeletion","return","getAttribute","rethrowUnexpectedError","insertContent","_model","addMarkerName","removeMarker:suggestion:formatBlock","remove","isCollapsed","getCustomProperty","collaboration.channelId","markerName","external:","moveTargetPosition","addSuggestion","elementEnd","trackChanges.mergeNestedSuggestions","howMany","formatBlock:","isIntersectingWithRange","createPositionAt","getIntersection","selection","dataReady","updateMarker","from","deletion:discard","forward","CommentsRepository","containsPosition","add","isUndo","elementToElement","pluginName","insertion:accept","_getAuthorFromId","ck-suggestion-marker","head","change","data","trackChanges","removed","type","setTo","root","isBlock","_enabledCommands","change:_saved","reconvertMarker","oldRange","end","rejected","split","_mergeNestedSuggestions","_splitMarkerName","config","dataDowncast","deletion","toJSON","formatBlock","createdAt","isLimit","highest","writer","createPositionBefore","refresh","deletion:chain","deletion:join","isNextTo","_breakSuggestionMarker","getLastMatchingPosition","addClass","_onDiscard","splitPosition","_editor","registerCustomCallback","error-saving-suggestion-data-suggestion-discarded","model","trackChanges.trackFormatChanges","splice","_adapter","notReady","batch","newRange","_suggestionState","_handleNewSuggestionMarker","value","values","PENDING_ACTION_SUGGESTION","toViewElement","creator","_commentsRepository","markMultiRangeInsertion","TrackChangesEditing","removeClass","createElement","range","getMarkers","addMarker","parent","updateSuggestion","suggestion:","PendingActions","editingDowncast","createRangeIn","widget","_isForcedDefaultExecutionBlock","getUser","_suggestionFactory","isAtStart","before","getChangedMarkers","substr","has","formatBlock:chain","_rangeIsInLocalUserInsertion","hasCommentThread","enableCommand","@external","fire","Users","isInsideObject","element","isInContent","isMultiRange","getFirstRange","differ","documentSelection","detach","markerToData","$textProxy","track-changes-suggestion-not-found","after","item","document","track-changes-user-not-found","_suggestions","every","bindElementToMarker","getNearestSelectionRange","catch","formatBlock:discard","sort","suggestion","getAllAdjacentSuggestions","some","ck-suggestion-marker--active","unbindElementFromMarkerName","_saved","ck-suggestion-marker-","acceptAllSuggestions","previous","_addSuggestionMarker","containerElement","acceptSuggestion","low","suggestionChanged","deleteContent","formatInline:chain","addHighlight","get","formatInline","size","set","setAttribute","getCommentThread","fromRange","ready","getSuggestions","multipleBlocks","removeMarker","default","attributes","markInsertion","addMarker:suggestion","schema","_findSuggestions","marker-count","getSuggestion","elementStart","removeAttribute","_getExternalAuthor","removeMarkers","addSuggestionData","_updateSuggestionData","next","formatGroupId","showSuggestionHighlights","formatInline:join","never","buildSuggestion","isEqual","_checkSuggestionCorrectness","consumable","formatInline:","getShiftedBy","_defaultCallbacks","deletion:","trackChangesCommand","addMarker:suggestion:formatBlock","getWalker","locale","mapper","skipNestingCheck","group","_getSuggestionData","position","_setSuggestionData","_joinSuggestions","chain","isDocumentOperation","$graveyard","hasSuggestion","isSelectable","createPositionAfter","join","nodeAfter","insert","execute","accept","filter","isAtEnd","discardSuggestion","editor","markerToHighlight","move","addRange","markerReady","containsItem","getItems","_registerDefaultCallbacks","push","isOwn","discard","markMultiRangeBlockFormat","suggestionLoaded","deletion:accept","name","createSelection","accepted","clear","containsRangeInObject","delete","stop","formatInline:discard","normal","includes","track-changes-suggestion-data-mismatch","setSelection","markerNameToElements","_setSuggestionRange","containsRange","_descriptionFactory","targetPosition"];var Ga,Ha;Ga=Ua,Ha=432,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0x12e"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x133")](){return za("0x2f")}constructor(t){function e(t){return t[za("0xdb")]((t=>String.fromCharCode(t))).join("")}super(t),this.set(za("0xe4"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[za("0x116")].change((()=>{for(const e of[...s,...o])this[za("0x116")][za("0xe1")][za("0x43")](e)&&t.editing[za("0x2")](e)}))})),this[za("0xce")]=new ss(this[za("0xb1")][za("0x1f")][za("0x81")],this[za("0xb1")][za("0x9b")]),this._adapter=null,this[za("0x3e")]=new Va(this[za("0xb1")]),this[za("0x5a")]=new Map,this._commentsRepository=t[za("0xf5")].get(za("0x12e")),this._enabledCommands=new Set,this[za("0x116")]=this[za("0xb1")][za("0x1f")],this[za("0x26")]=new WeakMap,this[za("0x3c")]=!1,t.config[za("0xfe")]("trackChanges.trackFormatChanges",za("0x7d")),this._trackFormatChanges=t.config[za("0x72")](za("0x20")),t[za("0x9")][za("0xfe")]("trackChanges.mergeNestedSuggestions",!0),this[za("0x7")]=t[za("0x9")][za("0x72")](za("0x122")),this[za("0x98")]=new u(t,this[za("0x0")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,48,52])}init(){const t=this[za("0xb1")];t[za("0x103")][za("0xd7")](za("0x39"))[za("0xb2")]({model:za("0x61"),view:t=>{const{id:e,type:n}=this[za("0x8")](t[za("0x11d")]),o=[za("0x136"),za("0x67")+n];let s=3e3;return this[za("0xe4")][za("0xc8")](t[za("0x11d")])&&(o[za("0xb9")]("ck-suggestion-marker--active"),s=3010),za("0xb")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x103")][za("0xd7")](za("0xa"))[za("0x130")]((e=>{e.on(za("0x80"),((e,n,o)=>{if(!o.options[za("0x8d")])return;const s=n[za("0x57")];if(!s)return;const r=o.mapper[za("0x2b")](s);t[za("0x1f")][za("0x81")][za("0xfb")](s)&&r&&!r[za("0x11b")](za("0x3b"))&&r.is(za("0x6b"))&&(0,x.toWidget)(r,o[za("0x11")])}),{priority:"high"})})),t[za("0x103")].for("dataDowncast")[za("0xb2")]({model:za("0x61"),view:(t,e)=>{if(!e.options[za("0x8d")])return null;const{type:n}=this._splitMarkerName(t.markerName);return{classes:[za("0x136"),za("0x67")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x57")])return;if(o.item.is(za("0x128")))return void s[za("0x93")].consume(o[za("0x57")],n[za("0xbf")]);const r=s.mapper[za("0x2b")](o[za("0x57")]);if(!o[za("0x57")].is("element")||!t[za("0x1f")][za("0x81")][za("0x13f")](o.item)||r[za("0x11b")](za("0x71")))return;const{id:i}=this[za("0x8")](o[za("0x11d")]);s[za("0x11")][za("0x19")]([za("0x136"),za("0xf4")],r),s[za("0x11")][za("0x76")]("data-suggestion",i,r),s[za("0x9c")][za("0x5c")](r,o[za("0x11d")]),e&&(this[za("0xe4")][za("0xc8")](o.markerName)?s[za("0x11")][za("0x19")](za("0x64"),r):s.writer[za("0x30")](za("0x64"),r));for(const e of t[za("0x1f")][za("0x3a")](o[za("0x57")])[za("0xb7")]())s.consumable[za("0xdf")](e,n[za("0xbf")]);s[za("0x93")][za("0xdf")](o.item,n.name)};t[za("0x103")].for("dataDowncast")[za("0x130")]((t=>{t.on(za("0x99"),((t,e,o)=>{o.options[za("0x8d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x10")})})),t[za("0x103")][za("0xd7")](za("0xa"))[za("0x53")]({model:za("0x61"),view:(t,e)=>e.options[za("0x8d")]?null:{group:za("0x61"),name:t[za("0x42")](11)}}),t[za("0x103")][za("0xd7")]("upcast")[za("0x132")]({view:{name:za("0x61"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x37")+t.getAttribute(za("0x10b"))+":"+t.getAttribute("id");return t.getAttribute(za("0x83"))&&(n+=":"+t[za("0x113")](za("0x83"))),e[za("0x31")](za("0xe8"),{"data-name":n})}}),t[za("0x103")].for(za("0xd1")).dataToMarker({view:za("0x61")}),t.conversion[za("0xd7")](za("0x39")).add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0x10f")})})),t[za("0x103")][za("0xd7")](za("0x39"))[za("0x130")]((t=>{t.on(za("0x118"),((t,e,n)=>{const o=n[za("0x9c")][za("0xcb")](e.markerName);if(o)for(const t of o)t[za("0x11b")](za("0x71"))||(n.writer[za("0x30")](["ck-suggestion-marker",za("0xf4"),za("0x64")],t),n[za("0x11")][za("0x86")]("data-suggestion",t),n[za("0x9c")][za("0x65")](t,e[za("0x11d")]))}),{priority:za("0x10f")})})),t[za("0x1f")][za("0x58")][za("0x110")]((e=>{let n=!1;const o=Array[za("0x12b")](t[za("0x1f")][za("0x58")][za("0x50")][za("0x41")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x61")!==o)continue;const d=this._suggestions.get(l);if(null!=a[za("0x25")])if(za("0x73")==c&&(n=n||Xa(a[za("0x25")],x,e,t[za("0x1f")][za("0x81")])),a.newRange[za("0x11a")]||za("0xa5")==a[za("0x25")][za("0x13e")][za("0x10a")]||"formatBlock"==c&&!Ja(a[za("0x25")])||"deletion"==c&&(qa(i=a[za("0x25")])||(r=i)[za("0xd8")].parent==r[za("0x4")][za("0x102")]&&r[za("0xd8")][za("0xaf")]))e[za("0x7c")](x),n=!0;else{if(!d||!d[za("0x4d")])continue;s[za("0x130")](d)}}var r,i;return s.size>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0x1f")][za("0x58")][za("0x110")]((e=>{let n=!1;for(const o of t[za("0x1f")][za("0x58")][za("0x50")].getChanges()){if(za("0xab")!=o[za("0x13c")])continue;const s=o.position[za("0x95")](o.length);if(s.isAtEnd)for(const r of this._suggestions[za("0x29")]()){if(r[za("0x4e")]||!r[za("0x4d")])continue;if(za("0xd")!=r[za("0x13c")])continue;const i=r[za("0x4f")]();if(i[za("0xd8")][za("0x35")]!=i[za("0x4")][za("0x35")]&&i.end[za("0x91")](o[za("0xa0")])){const o=t[za("0x1f")].createRange(i[za("0xd8")],s);e[za("0x12a")](r[za("0x10d")](),{range:o}),n=!0}}}return n})),t[za("0x1f")].markers.on(za("0xe0"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x8")](e[za("0xbf")]),n=this[za("0x5a")][za("0x72")](t);n&&n[za("0x117")](e.name)}})),t[za("0x1f")][za("0x58")].on("change:data",(()=>{const e=Array[za("0x12b")](t[za("0x1f")][za("0x58")][za("0x50")].getChangedMarkers())[za("0xae")]((t=>"suggestion"===this[za("0x8")](t[za("0xbf")])[za("0x9e")]));if(0===e[za("0xfd")])return;e[za("0x60")](((t,e)=>{const n=t[za("0x139")][za("0x3")],o=e[za("0x139")][za("0x3")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xd8")][za("0x107")](o[za("0xd8")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[za("0x3")]){const e=this[za("0x27")](t);o[za("0x130")](e)}else{const t=this._suggestions[za("0x72")](e);null!==s[za("0x25")]||t[za("0x4d")]?(n[za("0x130")](t[za("0x137")]),o[za("0x130")](t)):this._removeSuggestion(t)}}o[za("0x74")]>0&&this[za("0xef")](o);for(const t of n)this[za("0x49")](za("0x6e"),t)})),t.model.on(za("0xd0"),((e,n)=>{const o=n[0];if(!this[za("0x5a")][za("0x74")])return;if(!o[za("0xa4")])return;if(o[za("0x24")][za("0x131")]||!o[za("0x24")][za("0xf9")])return;let s,r;switch(o[za("0x13c")]){case za("0xab"):s=t[za("0x1f")][za("0x126")](o.position),r=s[za("0x95")](o[za("0x123")]);break;case za("0x6"):s=t[za("0x1f")][za("0x126")](o[za("0x1b")]),r=t.model[za("0x126")](o[za("0x11f")]);break;case za("0xb3"):s=t.model.createPositionAt(o[za("0xcf")]),r=s[za("0x95")](o[za("0x123")]);break;default:return}const i=t[za("0x1f")].createRange(s,r);t.model.change((()=>{for(const{suggestion:t,meta:e}of this[za("0x82")](i)){if(t[za("0x4e")])continue;if(za("0x73")==t[za("0x13c")])continue;const n=t.data&&t.data[za("0x7b")];(za("0xd")!=t.type||"split"==o[za("0x13c")]&&!n)&&(e[za("0xc3")]||za("0xd5")==t.type&&e[za("0xba")]||t[za("0x4f")]()[za("0xcd")](i)&&this[za("0x17")](t,s,r))}}))}),{priority:za("0x106")}),t[za("0x1f")].on(za("0x6f"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xd6")])return;if(this[za("0x3c")])return;if(!this.trackChangesCommand[za("0x28")])return;if(o[za("0x11a")])return;const r=t[za("0x1f")][za("0x81")],{start:i,end:x}=o.getFirstRange(),a=i[za("0xaa")]&&r[za("0xf")](i.nodeAfter)?null:r.getNearestSelectionRange(i,za("0x12d")),c=x[za("0x102")]&&r[za("0xf")](x.nodeBefore)?null:r.getNearestSelectionRange(x,za("0xe2")),l=t[za("0x1f")][za("0xda")](a?a[za("0xd8")]:i,c?c[za("0x4")]:x);t[za("0x1f")][za("0x138")]((e=>{this[za("0x111")](l);const n=t[za("0x1f")][za("0x81")][za("0x5d")](l[za("0xd8")]);o.is(za("0x51"))?e[za("0xca")](n):o[za("0x13d")](n)})),e.stop()}),{priority:e.priorities[za("0xc7")]+10}),t[za("0x1f")].on(za("0x115"),((e,n)=>{const o=n[n[za("0xfd")]-1];o&&o[za("0xd6")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand.value&&(t[za("0x1f")][za("0x138")]((()=>{let o=t.model[za("0x115")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x112")]=o[za("0xed")]();const s=o[za("0x4")][za("0x102")],r=t[za("0x1f")][za("0x81")];s&&r[za("0x13f")](s)&&!r.isObject(s)&&(o=t[za("0x1f")].createRange(o[za("0xd8")],t[za("0x1f")][za("0x126")](s,za("0x4")))),this.markInsertion(o)})),e[za("0xc5")]())}),{priority:za("0x10f")}),this[za("0xb1")][za("0xde")][za("0x130")](za("0x13a"),this[za("0x98")]),this.enableCommand(za("0x13a"));const o=new p(t,this._suggestions);t[za("0xde")][za("0x130")](za("0x6c"),o),this[za("0x47")]("acceptSuggestion");const s=new C(t,this._suggestions);t[za("0xde")][za("0x130")](za("0xb0"),s),this[za("0x47")](za("0xb0")),t.commands[za("0x130")](za("0x68"),new F(t,o,this._suggestions)),this.enableCommand(za("0x68")),t[za("0xde")].add(za("0x104"),new F(t,s,this._suggestions)),this[za("0x47")](za("0x104")),t[za("0xde")].add(za("0x109"),new U(t,o,this._suggestions)),this[za("0x47")](za("0x109")),t[za("0xde")].add(za("0xfa"),new U(t,s,this[za("0x5a")])),this[za("0x47")](za("0xfa"));const r=t[za("0xf5")].get(za("0x12e"));this[za("0xd3")](r,za("0xe5"),((t,{threadId:e})=>{const n=this[za("0x5a")][za("0x72")](e);n&&n[za("0xf6")]&&1===n[za("0xf6")].length&&this[za("0x8a")](e,{hasComments:!0})}),{priority:za("0x6d")}),this[za("0xd3")](r,"removeComment",((t,{threadId:e})=>{const n=this[za("0x5a")].get(e);n&&n[za("0xf6")]&&!n[za("0xf6")].length&&this[za("0x8a")](e,{hasComments:!1})}),{priority:za("0x6d")})}set[za("0xf1")](t){if(this[za("0x22")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0x22")]=t}get[za("0xf1")](){return this[za("0x22")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x5a")][za("0x29")]())t&&!e.isInContent||n[za("0xb9")](e);return e?n[za("0xdb")]((t=>t[za("0xc")]())):n}getSuggestion(t){const n=this[za("0x5a")][za("0x72")](t);if(!n)throw new e.CKEditorError(za("0x55"),this);return n}[za("0xa6")](t){return this[za("0x5a")][za("0x43")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x13c")].split(":"),i=this[za("0x5a")][za("0x72")](n)||this[za("0x10c")](s,r,n,e,o);if(this[za("0xd2")](i),this[za("0x92")](i,s,r||null,e),i[za("0xe")]=t[za("0xe")],o&&o[za("0x48")]){const t=o[za("0x48")],e=this._getExternalAuthor(t[za("0xf7")]);i[za("0xfc")]=t[za("0xe")],i.author=e,i.isExternal=!0}else i[za("0xfc")]=t.createdAt;switch(t[za("0x139")]&&(i[za("0x139")]=t[za("0x139")]),t[za("0x7e")]&&(i[za("0x7e")]=t[za("0x7e")]),this[za("0x22")]&&this[za("0x22")][za("0x120")]||(i[za("0x66")]=!0),this._suggestionState[za("0x72")](i)){case za("0x23"):this[za("0x26")][za("0x75")](i,za("0x129"));break;case za("0xb5"):i[za("0x4d")]?(this[za("0x26")][za("0x75")](i,za("0x79")),this[za("0x49")](za("0xbd"),i)):this[za("0x26")][za("0x75")](i,za("0x13b"))}return i}[za("0x6c")](t){this[za("0xd6")]((()=>{this.editor[za("0x1f")][za("0x138")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}discardSuggestion(t){this[za("0xd6")]((()=>{this[za("0xb1")][za("0x1f")][za("0x138")]((()=>{for(const e of t[za("0x62")]())e[za("0xbb")]()}))}))}[za("0x47")](t,n){const o=this[za("0xb1")].commands.get(t);if(!o)throw new e.CKEditorError(za("0xe7"),this,{commandName:t});this[za("0x0")][za("0x130")](o),n&&o.on(za("0xac"),((t,e)=>{this.trackChangesCommand[za("0x28")]&&(this._isForcedDefaultExecutionBlock||e[za("0xfd")]>0&&e[e[za("0xfd")]-1]&&e[e.length-1][za("0xd6")]||(n(((...t)=>o[za("0xac")](...t,{forceDefaultExecution:!0})),...e),t[za("0xc5")]()))}),{priority:za("0x10f")})}[za("0xd6")](t){let n,o;const s=this[za("0x3c")];this[za("0x3c")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x114")](o,this),n}[za("0x7f")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0xb1")][za("0xf5")][za("0x72")]("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xd5")))if(o[za("0xba")]){if(!o[za("0x16")]){if(!this[za("0x7")]&&o[za("0xc3")])continue;return e}if(n==e[za("0xec")]){const n=e[za("0x4f")]();return n[za("0xd8")][za("0x91")](t[za("0x4")])?this[za("0xcc")](e,this[za("0x116")][za("0xda")](t[za("0xd8")],n.end)):this._setSuggestionRange(e,this[za("0x116")][za("0xda")](n[za("0xd8")],t[za("0x4")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xdc")+n:"insertion",a=this[za("0xa1")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x6a")](x,r,i,t),a}[za("0x2e")](t,n=za("0x10e"),o={}){const s=this[za("0xb1")][za("0xf5")][za("0x72")](za("0x4a")).me,r=this[za("0x3e")][za("0xf8")]("insertion",n,za("0xa9"));for(const e of this[za("0x7a")]())if(e[za("0xea")].id==s.id&&za("0xd5")==e[za("0x13c")]&&e[za("0xec")]==n&&(r(e[za("0xff")](),t)||r(t,e[za("0xff")]()))){for(const n of t)e.addRange(n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x82")](e,"insertion")){if(!o[za("0xba")])continue;let e=!0;for(const o of n[za("0xff")]())for(const n of t)if(!o[za("0xcd")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xdc")+n,c=this[za("0xa1")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x6a")](a,i,x,e,Zo.getMultiRangeId());return c}[za("0xd9")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x11a")])return null;if(za("0x8f")===this[za("0xf3")]){const e=this[za("0x3e")][za("0xf8")]("formatInline",o,za("0xad"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0xb1")].plugins[za("0x72")](za("0x4a")).me,i=[];if("always"!==this[za("0xf3")])for(const{suggestion:e,meta:n}of this[za("0x82")](t,"insertion"))n[za("0xba")]&&!n[za("0x4b")]&&i[za("0xb9")](...e[za("0xff")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x127")](o);e&&n[za("0xb9")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xfd")];){const o=n[e][za("0xe6")](t);n[za("0x21")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0xfd")]&&this[za("0x116")][za("0x138")]((()=>{for(const t of x){const e=this[za("0x3e")].getSuggestionCallback(za("0x73"),o,za("0xad"));this[za("0xd6")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xd8")],a=t[za("0x4")];for(const{suggestion:e,meta:n}of this[za("0x82")](t,"formatInline")){if(!n[za("0xba")])continue;if(e[za("0xec")]!=o)continue;const s=e[za("0x4f")]();if(s.containsRange(t,!0))return null;x=x[za("0x107")](s[za("0xd8")])?x:s[za("0xd8")],a=a.isAfter(s[za("0x4")])?a:s[za("0x4")],i?s.start[za("0x107")](i[za("0x4f")]()[za("0xd8")])?(i[za("0x88")](),i=e):e[za("0x88")]():i=e}const c=this._model[za("0xda")](x,a);if(i)this[za("0xcc")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xa1")]({id:t,type:za("0x94")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x6a")](za("0x94")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x8c")]=n[za("0xe9")]),n[za("0x7b")]=t.is(za("0x32")),s=s||$a(n);const i=o[za("0xdb")]((t=>Qa(t,this[za("0x116")]))),x=t.is("range")?t:Qa(t,this._model);if(za("0x8f")===this[za("0xf3")]){const t=this[za("0x3e")][za("0xf8")]("formatBlock",s,"accept");return this[za("0xd6")]((()=>t([x],n,r))),null}i[za("0xb9")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x101")!==this[za("0xf3")]){const t=this._suggestionFactory[za("0xf8")]("formatBlock",s,"accept");return this[za("0xd6")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x.end;for(const{suggestion:t,meta:e}of this[za("0x82")](x,za("0xd"))){if(!e[za("0xba")]||e.isNextTo||e.containsRangeInObject||e[za("0x4b")])continue;if(t[za("0x139")][za("0x8c")]!=n[za("0x8c")])continue;const o=t[za("0x4f")]();if(t[za("0xec")]==s){if(o[za("0xcd")](x,!0))return null;l=l[za("0x107")](o.start)?l:o[za("0xd8")],d=d.isAfter(o[za("0x4")])?d:o.end,c?o[za("0xd8")][za("0x107")](c.getFirstRange()[za("0xd8")])?(c[za("0x88")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x127")](o);this[za("0xf2")](t,e)}}const u=this[za("0xb1")][za("0xf5")][za("0x72")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xcc")](c,this._model[za("0xda")](l,d)),c;{const t=this[za("0xa1")]({id:g,type:za("0x124")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0x124")+s,g,m,this[za("0x116")][za("0xda")](l,d)),t}}[za("0xbc")](t,n,o=[],s=null,r={}){n[za("0x8c")]||(n[za("0x8c")]=n[za("0xe9")]);const i=t[0];n[za("0x7b")]=i.is("range"),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x116")]))),a=i.is(za("0x32"))?t:t[za("0xdb")]((t=>Qa(t,this[za("0x116")])));if(za("0x8f")===this[za("0xf3")]){const t=this[za("0x3e")][za("0xf8")](za("0xd"),s,za("0xad"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0xb9")](...a);let c=!0;for(const t of x)if(!this[za("0x45")](t)){c=!1;break}if(c&&za("0x101")!==this._trackFormatChanges){const t=this._suggestionFactory[za("0xf8")](za("0xd"),s,za("0xad"));return this[za("0xd6")]((()=>t(a,n,r))),null}const l=this[za("0xb1")].plugins[za("0x72")]("Users").me;for(const t of this[za("0x7a")]()){if(t[za("0xea")].id!=l.id)continue;if(za("0xd")!=t[za("0x13c")]||t[za("0x139")].formatGroupId!=n.formatGroupId)continue;const e=t[za("0xec")]==s;for(let n=0;n<a[za("0xfd")];n++){const o=a[n];for(const s of t[za("0x33")]()){const r=s.getRange();if(o.isEqual(r)){e?(a.splice(n,1),n--):t[za("0x7c")](s[za("0xbf")]);break}}}}if(0==a[za("0xfd")])return null;const d=this[za("0x3e")].getSuggestionCallback(za("0xd"),s,za("0xa9"));for(const t of this.getSuggestions())if(t.author.id==l.id&&"formatBlock"==t.type&&t[za("0x139")][za("0x8c")]==n[za("0x8c")]&&t[za("0xec")]==s&&(d(t[za("0xff")](),a)||d(a,t[za("0xff")]()))){for(const e of a)t[za("0xb4")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x124")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x6a")](m,u,g,t,Zo.getMultiRangeId());return f}[za("0x111")](t,n=null,o={}){if(t[za("0x11a")])return null;const s=this[za("0xb1")][za("0xf5")][za("0x72")](za("0x4a")).me,r=new i.LiveRange(t[za("0xd8")],t[za("0x4")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))if(e[za("0xba")]&&!e[za("0x16")])if(t[za("0x4e")]){const e=t[za("0xff")]()[za("0xae")]((t=>"$graveyard"!=t[za("0x13e")][za("0x10a")]));if(e.every((t=>r[za("0xcd")](t,!0)))&&t[za("0xbb")](),e.some((t=>t[za("0xcd")](r,!0)))){const t=this[za("0x3e")][za("0xf8")]("deletion",n,za("0xad"));return this[za("0xd6")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x4f")]());null!==e&&t[za("0x1a")]([e],null,o)}if(r[za("0x52")](),r.isCollapsed||za("0xa5")==r[za("0x13e")][za("0x10a")])return null;let x=null,a=r[za("0xd8")],c=r[za("0x4")];for(const{suggestion:t,meta:e}of this[za("0x82")](r,"deletion"))if(e[za("0xba")])if(t[za("0x4e")]&&this[za("0x7")]){let e=!0;for(const n of t[za("0xff")]()){if(n[za("0xcd")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t[za("0x4f")]();if(n.containsRange(r,!0)){if(!this[za("0x7")]&&e[za("0xc3")])continue;return t}a=a[za("0x107")](n.start)?a:n[za("0xd8")],c=c.isAfter(n.end)?c:n.end,x?n[za("0xd8")][za("0x107")](x[za("0x4f")]()[za("0xd8")])?(x[za("0x88")](),x=t):t[za("0x88")]():x=t}if(x)return this[za("0xcc")](x,this[za("0x116")][za("0xda")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x116")][za("0xda")](a,c),i=s.id,x=n?za("0x97")+n:za("0xb"),l=this[za("0xa1")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0x10e"),o={}){const s=this[za("0xb1")][za("0xf5")].get(za("0x4a")).me,r=t[za("0xdb")]((t=>new i.LiveRange(t.start,t[za("0x4")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x82")](t,za("0xd5")))n[za("0xba")]&&!n[za("0x16")]&&x[za("0x130")](e);for(const e of x)if(e[za("0x4e")]){const s=e[za("0xff")]();if((!e[za("0x7e")]||!e[za("0x7e")][za("0x9d")])&&s[za("0x5b")]((t=>r[za("0x63")]((e=>e[za("0xcd")](t,!0)))))&&e[za("0xbb")](),r[za("0x5b")]((t=>s[za("0x63")]((e=>e[za("0xcd")](t,!0)))))){const e=this[za("0x3e")][za("0xf8")]("deletion",n,za("0xad"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x4f")]();if(r.some((e=>e[za("0xcd")](t,!0)))&&e[za("0xbb")](),r[za("0x5b")]((e=>t[za("0xcd")](e,!0)))){const t=this._suggestionFactory[za("0xf8")](za("0xb"),n,za("0xad"));return this[za("0xd6")]((()=>t(r,null,o))),null}}const a=this[za("0x3e")][za("0xf8")](za("0xb"),n,za("0xa9"));let c=null;for(const t of this[za("0x7a")]())if(t[za("0xea")].id==s.id&&t.isInContent&&za("0xb")==t[za("0x13c")]&&t.subType==n&&(a(t[za("0xff")](),r)||a(r,t[za("0xff")]())))if(c){if(t[za("0xf6")]&&t[za("0xf6")][za("0xfd")])continue;for(const e of t[za("0xff")]())c[za("0x125")](e)||c.addRange(e);t[za("0x88")]()}else{c=t;for(const e of r)t[za("0x125")](e)||t[za("0xb4")](e)}if(c)return c;x[za("0xc2")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x82")](t,"deletion"))n.isOwn&&x[za("0x130")](e);for(const t of x){const e=t[za("0xff")]();if((!o||!o[za("0x9d")])&&r[za("0x5b")]((t=>e[za("0x63")]((e=>e[za("0xcd")](t,!0))))))return t;(!t.attributes||!t[za("0x7e")][za("0x9d")])&&e[za("0x5b")]((t=>r[za("0x63")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0x97")+n,g=this[za("0xa1")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x52")](),t.isCollapsed||za("0xa5")==t[za("0x13e")][za("0x10a")]||this._addSuggestionMarker(u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[za("0x116")].change((t=>{t[za("0x12a")](n,{range:e})}))}[za("0xd2")](t){const e=t.id,n=this[za("0xb1")][za("0x9")][za("0x72")](za("0x11c"));this[za("0x2d")][za("0x46")](e)||this[za("0x2d")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0x77")](e);o[za("0x100")]("isRemovable"),o.isRemovable=!1,t[za("0xf6")]=o}[za("0x92")](t,n,o,s){if(t[za("0x13c")]!=n||t[za("0xec")]!=o||t.creator.id!=s)throw this[za("0xb1")].enableReadOnlyMode(za("0xc9")),new e.CKEditorError(za("0xc9"),this)}[za("0xf2")](t,n){const o=t[za("0x4f")]();if(n[za("0x91")](o))t[za("0x88")]();else if(o[za("0xcd")](n)){const s=this[za("0x116")][za("0x126")](n[za("0xd8")][za("0x102")],za("0x4"));this[za("0xcc")](t,this[za("0x116")][za("0xda")](o[za("0xd8")],s));const r=(0,e.uid)(),i=t[za("0x2c")].id,x=t.type+":"+t[za("0xec")];this[za("0xa1")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x139")],attributes:t[za("0x7e")]});const a=this._model.createPositionAt(n[za("0x4")][za("0x35")],"after"),c=this[za("0x116")].createRange(a,o.end);this[za("0x6a")](x,r,i,c)}else if(o[za("0x12f")](n[za("0xd8")])){const e=this[za("0x116")][za("0x126")](n[za("0xd8")][za("0x102")],"end");this[za("0xcc")](t,this[za("0x116")][za("0xda")](o.start,e))}else{const e=this[za("0x116")].createPositionAt(n[za("0x4")][za("0x35")],za("0x56"));this._setSuggestionRange(t,this[za("0x116")][za("0xda")](e,o[za("0x4")]))}}[za("0x45")](t){for(const{suggestion:e,meta:n}of this[za("0x82")](t,za("0xd5"))){if(!n[za("0xba")])continue;const o=e[za("0xff")]();for(const e of o)if(!t[za("0xe6")](e)[za("0xfd")])return!0}return!1}[za("0x135")](t){const n=this.editor.plugins[za("0x72")](za("0x4a"))[za("0x3d")](t);if(!n)throw new e.CKEditorError(za("0x59"),this);return n}[za("0x87")](t){const e=this[za("0xb1")][za("0xf5")][za("0x72")](za("0x4a")),n=(0,r.hashObject)(za("0x11e")+t);return e.getUser(n)||e[za("0xd4")]({id:n,name:t})}[za("0x10c")](t,e,n,o,s){const r=this[za("0x135")](o),i=this[za("0x3e")][za("0x90")](t,e,n,r,s,(t=>this[za("0x8a")](n,{attributes:t})));return this[za("0xd3")](i,"accept",(()=>{this[za("0x8a")](n,{state:za("0xc1")})}),{priority:za("0x10f")}),this[za("0xd3")](i,"discard",(()=>{this._updateSuggestionData(n,{state:za("0x5")})}),{priority:za("0x10f")}),this._suggestions[za("0x75")](n,i),this[za("0x26")][za("0x75")](i,za("0x23")),i}[za("0x8")](t){const e=t[za("0x6")](":");return{group:e[0],type:e[1],subType:e[za("0xfd")]>=5?e[2]:null,id:e[za("0xfd")]<5?e[2]:e[3],authorId:e[za("0xfd")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0x17")](t,n,o){const s=t[za("0x4f")](),r=s[za("0xd8")],i=s[za("0x4")];this._setSuggestionRange(t,this[za("0x116")][za("0xda")](r,n));const x=(0,e.uid)(),a=t[za("0x2c")].id,c=t[za("0x13c")]+(t[za("0xec")]?":"+t[za("0xec")]:"");this[za("0xa1")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x7e")],data:t[za("0x139")]}),"formatBlock"==t[za("0x13c")]&&(o=this[za("0x116")][za("0x12")](o[za("0x35")])),this[za("0x6a")](c,x,a,this[za("0x116")][za("0xda")](o,i))}_findSuggestions(t,e=null){const n=[],o=this._model.schema,s=this[za("0xb1")].plugins[za("0x72")]("Users").me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[za("0x13c")]==e))for(const e of r.getRanges()){const i=t.start.isEqual(e[za("0x4")])||t[za("0x4")].isEqual(e[za("0xd8")]);if(i||t[za("0x127")](e)){const x=t.containsRange(e)&&Ka(o,e.start,t),a=e[za("0xcd")](t)&&Ka(o,t[za("0xd8")],e);n[za("0xb9")]({suggestion:r,meta:{isOwn:s==r[za("0xea")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0x116")][za("0x138")]((r=>{let i=za("0x37")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x34")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xeb")](t){const e=t.previous,n=t[za("0x8b")];t[za("0x69")]=null,null!=e&&(e[za("0x8b")]=null),t[za("0x8b")]=null,null!=n&&(n[za("0x69")]=null),za("0x79")==this._suggestionState.get(t)&&(this[za("0x26")][za("0x75")](t,"removed"),this[za("0x49")]("suggestionUnloaded",t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x89")](t);if(this[za("0x22")]&&this._adapter[za("0x120")]){const s=this[za("0xb1")].plugins[za("0x72")](za("0x38")),r=o[za("0xee")],i=o[za("0xec")]?o[za("0x13c")]+":"+o.subType:o[za("0x13c")],x=this[za("0xb1")][za("0x9b")],a=s[za("0x130")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0x7e")]};this._adapter[za("0x120")](c)[za("0xf0")]((t=>{o[za("0x66")]=!0,s[za("0x119")](a),t&&t[za("0xe")]&&(this[za("0x5a")][za("0x72")](n)[za("0xe")]=t[za("0xe")])}))[za("0x5e")]((t=>{throw(0,e.logWarning)(za("0x1e")),this[za("0xb1")][za("0x1f")].enqueueChange({isUndoable:!1},(()=>{o[za("0xbb")]()})),o[za("0xe3")](),this._suggestions[za("0xc4")](o.id),this[za("0x26")][za("0xc4")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[za("0xf5")][za("0x72")]("PendingActions"),o=this[za("0x84")](t);if(this[za("0x22")]&&this[za("0x22")][za("0x36")])if(o[za("0x66")]){const o=n.add(Yo(this[za("0xb1")][za("0x9b")],za("0x2a")));this[za("0x22")].updateSuggestion(t,e).then((()=>{n.remove(o)}))}else o.on(za("0x1"),(()=>{this._updateSuggestionData(t,e)}))}[za("0x9f")](t){if(!this._adapter||!this[za("0x22")][za("0x84")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0x22")][za("0x84")](t)}[za("0x27")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x8")](t),r=this[za("0x5a")].get(e)||this[za("0x10c")](n,o,e,s,{});switch(this[za("0x92")](r,n,o,s),this[za("0x26")][za("0x72")](r)){case za("0x23"):this[za("0x9f")](e).then((t=>{let n=Promise[za("0x105")]();t[za("0xee")]&&(n=this[za("0x2d")].fetchCommentThread({channelId:this[za("0xb1")][za("0x9")][za("0x72")](za("0x11c")),threadId:e})),n[za("0xf0")]((()=>{this[za("0x89")](t)._saved=!0}))})),this[za("0x26")][za("0x75")](r,za("0xb5"));break;case za("0x13b"):this[za("0x8a")](e,{state:"open"});case za("0x129"):this[za("0x26")].set(r,"ready"),this.fire(za("0xbd"),r);break;case"ready":this[za("0x49")](za("0x6e"),r)}return r[za("0x117")](t),r}[za("0xef")](t){const e=Array[za("0x12b")](t)[za("0xae")]((t=>!t[za("0x4e")])),n=this[za("0x7a")]({skipNotAttached:!0})[za("0xae")]((t=>!t[za("0x4e")])),o=n.filter((e=>!t[za("0x43")](e))),s=new Map(n[za("0xdb")]((t=>[t,this[za("0x3e")][za("0xf8")](t[za("0x13c")],t[za("0xec")],za("0xa3"))]))),r=new Map(n.map((t=>[t,t[za("0x4f")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xfd")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xfd")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xfd")];t++){const n=e[t];!x.has(n)&&n.previous&&(n.previous[za("0x8b")]===n&&(n[za("0x69")].next=null),n[za("0x69")]=null),!i[za("0x43")](n)&&n[za("0x8b")]&&(n.next[za("0x69")]===n&&(n.next[za("0x69")]=null),n[za("0x8b")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xfd")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][za("0x69")]=n[0],i[za("0x130")](n[0]),x[za("0x130")](n[1]))}}function c(t,e){if(t[za("0xea")].id!==e[za("0xea")].id)return null;const n=s[za("0x72")](t)(t,e,r[za("0x72")](t),r[za("0x72")](e));return n&&s[za("0x72")](e)(t,e,r.get(t),r[za("0x72")](e))?n[1][za("0xf6")]&&n[1][za("0xf6")][za("0xfd")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[za("0x7a")]({skipNotAttached:!0}),o=n[za("0xae")]((e=>!t[za("0x43")](e))),s=new Map(e.map((t=>[t,this[za("0x3e")][za("0xf8")](t[za("0x13c")],t[za("0xec")],za("0xa9"))]))),r=new Map(n[za("0xdb")]((t=>[t,t[za("0xff")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[za("0x13c")]!==e.type||o[za("0xea")].id!==e[za("0xea")].id||o[za("0xec")]!==e[za("0xec")])continue;const x=s[za("0x72")](e),a=r[za("0x72")](e),c=r[za("0x72")](o),l=e.commentThread&&e.commentThread[za("0xfd")],d=o[za("0xf6")]&&o.commentThread[za("0xfd")];if(!l&&x(c,a))return t[za("0xa2")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t[za("0xa2")](e,o),r[za("0xc4")](o),!0}return!1}}[za("0xa2")](t,e){if(t[za("0x4e")])for(const n of e[za("0xff")]())t[za("0xb4")](n);else{const n=e[za("0x4f")]().end;this[za("0xcc")](t,this[za("0x116")].createRange(t[za("0x4f")]().start,n))}e[za("0x88")]()}}class Va{constructor(t){this[za("0x1c")]=t,this[za("0x116")]=t.model,this[za("0x108")]=new Map,this[za("0x96")]=new Map,this[za("0xb8")]()}[za("0x90")](t,e,n,o,s,r){return new Zo(this[za("0x116")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xf8")](t,e,za("0xad"))(...n),onDiscard:(...n)=>this[za("0xf8")](t,e,za("0xbb"))(...n)})}[za("0x1d")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks.set(s,o)}[za("0xf8")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0x72")](o)||this[za("0x96")].get(t+":"+n)}[za("0xb8")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0xd8")][za("0x107")](e[za("0xd8")])?1:-1)),this[za("0x116")][za("0x138")]((e=>{for(const n of t){let t;t=n[za("0x4")][za("0xaf")]&&n[za("0x4")][za("0x35")]==n[za("0xd8")][za("0xaa")]?e[za("0xc0")](n.start[za("0xaa")],"on"):e[za("0xc0")](n),this[za("0x116")][za("0x6f")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x116")][za("0x138")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xdb")]((t=>(qa(t)&&(t=this[za("0x116")].createRange(t[za("0x4")])),t)))[za("0xae")]((t=>za("0xa5")!==t[za("0x13e")][za("0x10a")]));if(r[za("0xfd")]<1)return;const x=Array[za("0x12b")](this[za("0x116")][za("0x58")][za("0x128")][za("0xff")]())[za("0xdb")]((t=>i.LiveRange[za("0x78")](t)));n[za("0xca")](r);for(const t of this[za("0x1c")][za("0xde")].commands())t[za("0x13")]();s[za("0xb9")]({forceDefaultExecution:!0}),this[za("0x1c")][za("0xac")](o,...s);const a=x[za("0xae")]((t=>"$graveyard"!=t.root[za("0x10a")]));a[za("0xfd")]>0&&n[za("0xca")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t.length&&1==e[za("0xfd")]&&t[0].end[za("0x91")](e[0][za("0xd8")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x116")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x96")].set(za("0x134"),t),this[za("0x96")][za("0x75")]("insertion:discard",e),this._defaultCallbacks[za("0x75")]("insertion:join",o),this._defaultCallbacks[za("0x75")]("insertion:chain",s),this[za("0x96")][za("0x75")](za("0xbe"),e),this[za("0x96")][za("0x75")](za("0x12c"),t),this._defaultCallbacks[za("0x75")](za("0x15"),o),this[za("0x96")][za("0x75")](za("0x14"),s),this[za("0x96")][za("0x75")]("formatInline:accept",n),this[za("0x96")].set(za("0xc6"),t),this[za("0x96")][za("0x75")](za("0x8e"),o),this[za("0x96")][za("0x75")](za("0x70"),t),this[za("0x96")][za("0x75")]("formatBlock:accept",n),this._defaultCallbacks[za("0x75")](za("0x5f"),t),this[za("0x96")][za("0x75")]("formatBlock:join",o),this[za("0x96")][za("0x75")](za("0x44"),t)}}function Ka(t,e,n){for(const o of e[za("0x35")][za("0xdd")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x13e")]==o)return!1;if(!n[za("0xb6")](o))return!1;if(t.isObject(o)||t[za("0xf")](o))return!0}return!1}function qa(t){return t[za("0x4")][za("0x35")]==t[za("0xd8")][za("0xaa")]&&t.end[za("0x3f")]}function Xa(t,e,n,o){const s=t=>!t[za("0x57")].is(za("0x54"))&&!o[za("0xfb")](t[za("0x57")]),r=t.start[za("0x18")](s),i=t[za("0x4")][za("0x18")](s,{direction:za("0xe2")});return!(t[za("0xd8")].isEqual(r)&&t.end[za("0x91")](i)||(r[za("0x107")](i)?n[za("0x12a")](e,{range:n[za("0xda")](r,i)}):n[za("0x7c")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xd8")].nodeAfter;return e&&e.is(za("0x4c"))}function Qa(t,e){const n=e.schema.isObject(t)||e.schema[za("0xa7")](t);return e[za("0xda")](e[za("0x126")](t,za("0x40")),n?e[za("0xa8")](t):e[za("0x126")](t,"end"))}function Za(t,e,n,o,s){if(n.end[za("0x91")](o[za("0xd8")]))return!0;if(t[za("0x13c")]!=e[za("0x13c")])return!1;if(!n[za("0x4")].isTouching(o[za("0xd8")]))return!1;const r=s[za("0xda")](n[za("0x4")],o[za("0xd8")])[za("0x9a")]();for(const t of r)if([za("0x85"),za("0x121")][za("0xc8")](t[za("0x13c")])&&s.schema[za("0xf")](t[za("0x57")]))return!1;return!0}const Ya=["plugins","isDirty","stopListening","canAccept","_acceptCommand","bind","execute","_setPendingAction","model","commands","add","isEnabled","getRanges","discardSuggestion","view","_editor","canDiscard","_removePendingAction","_discardCommand","destroy","acceptSuggestion","get","_pendingAction","unbind","locale","remove","listenTo","PendingActions","commentThreadController"];var tc,ec;tc=Ya,ec=455,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x11")]=e,this[nc("0x17")]=n,this.commentThreadController=o,this._editor=t,this._acceptCommand=t[nc("0x12")].get(nc("0x0")),this[nc("0x1b")]=t.commands[nc("0x1")](nc("0x16")),this[nc("0x17")][nc("0xe")](nc("0x14")).to(this[nc("0xd")],this[nc("0x1b")],((t,e)=>t||e)),this[nc("0x17")][nc("0xe")](nc("0xc")).to(this[nc("0xd")],nc("0x14"),(t=>t&&this[nc("0x18")][nc("0x11")].canEditAt(e[nc("0x15")]()))),this[nc("0x17")][nc("0xe")](nc("0x19")).to(this[nc("0x1b")],nc("0x14"),(t=>t&&this[nc("0x18")][nc("0x11")].canEditAt(e[nc("0x15")]()))),this._pendingAction=null,n.isDirty&&this[nc("0x10")](),this.listenTo(n,nc("0x0"),(()=>this[nc("0x0")]())),this[nc("0x6")](n,nc("0x16"),(()=>this.discardSuggestion())),this.listenTo(n,"change:isDirty",(()=>{n[nc("0xa")]?this[nc("0x10")]():this[nc("0x1a")]()}))}[nc("0x0")](){this[nc("0xd")][nc("0xf")](this[nc("0x11")].id)}[nc("0x16")](){this[nc("0x1b")][nc("0xf")](this[nc("0x11")].id)}destroy(){this.view[nc("0x3")](nc("0x14")),this[nc("0x17")][nc("0x3")]("canAccept"),this[nc("0x17")][nc("0x3")](nc("0x19")),this[nc("0xb")](),this[nc("0x8")][nc("0x1c")](),this[nc("0x2")]&&this._removePendingAction()}[nc("0x10")](){const t=Yo(this[nc("0x18")][nc("0x4")],"PENDING_ACTION_SUGGESTION");this._pendingAction=this[nc("0x18")].plugins[nc("0x1")](nc("0x7"))[nc("0x13")](t)}[nc("0x1a")](){null!==this[nc("0x2")]&&this._editor[nc("0x9")][nc("0x1")](nc("0x7"))[nc("0x5")](this[nc("0x2")]),this._pendingAction=null}}const sc=["_config","setData","_localUser","length","delegate","editor","descriptionParts","canAccept","_model","disabledSubmit","commentInputView","bind","removeComment","focus","element","commentThread","_createCommentViews","_createCommentThreadInputView","addComment","cancel","set","updateComment","commentsListView","destroy","isDirty","CommentView","canDiscard","submit","disableComments","locale","isActive","showInput","fire","authoredAt","commentThreadInputView","isReadOnly","assign"];var rc,ic;rc=sc,ic=291,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x1b")]=null,this[xc("0x2")]=null,this[xc("0x19")]("isActive",!1),this[xc("0x19")](xc("0x1"),e[xc("0x1")]),this[xc("0x10")]("authoredAt").to(e),this[xc("0x19")](xc("0xb"),[]),this[xc("0x19")](xc("0x1d"),!1),this[xc("0x19")]("isEnabled",!1),this[xc("0x19")](xc("0xc"),!1),this.set(xc("0x1f"),!1),this[xc("0xd")]=e,this[xc("0x7")]=n,this._config=o,o[xc("0x21")]?this.set(xc("0x8"),1):this[xc("0x15")]()}[xc("0x12")](){this[xc("0x13")][xc("0x12")]()}[xc("0x1c")](){this[xc("0x1b")]&&this[xc("0x1b")].destroy(),this.commentThreadInputView&&this.commentThreadInputView[xc("0x1c")](),super.destroy()}[xc("0x15")](){const{CommentsListView:t}=this[xc("0x5")];this[xc("0x1b")]=new t(this[xc("0x22")],this[xc("0xd")][xc("0x14")],Object[xc("0x4")]({CommentView:this._config[xc("0x1e")]},this[xc("0x5")])),this[xc("0x1b")][xc("0x9")]("removeComment").to(this),this[xc("0x1b")][xc("0x9")](xc("0x1a")).to(this),this[xc("0x1b")].bind(xc("0x23")).to(this),this.set(xc("0x8"),this[xc("0x1b")][xc("0x8")]+1),this[xc("0x10")](xc("0x8")).to(this[xc("0x1b")],xc("0x8"),(t=>t+1)),this[xc("0x2")]=this[xc("0x16")](),this.on(xc("0x11"),(()=>this[xc("0x12")]())),this.bind(xc("0x1d")).to(this.commentsListView,"hasDirtyComment",this[xc("0x2")][xc("0xf")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x5")],e=new t(this.locale,this[xc("0x7")],this[xc("0x5")].editorConfig),n=e[xc("0xf")];return e[xc("0x10")](xc("0x24")).to(this,xc("0x23"),this._model.commentThread,xc("0x3"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(xc("0x20"),((t,e)=>{this[xc("0x0")](xc("0x17"),e),n[xc("0xa")][xc("0x6")]("")})),n.on(xc("0x18"),(()=>this[xc("0x12")]())),n[xc("0x10")](xc("0xe")).to(this[xc("0xd")].commentThread,"isReadOnly"),e}}const cc=["value","EXTERNAL_AVATAR","name","isActive","discardSuggestion","execute","map",'<span class="ck-suggestion-color" style="background-color: ',"innerText","disableComments","getExternalSuggestionNote","canDiscard","createElement","children","ck-annotation__main","content","ck-suggestion__main","isExternal","authoredAt","change:description","source","fire","locale","join","ck-suggestion__info","_createButton","bind","ck-suggestion__user","<p>","type","bindTemplate","Accept suggestion","ck-suggestion-wrapper--active","div","creator","ck-annotation__user","_config",".ck-annotation__content-wrapper","_descriptionElement","formatDateTime","EXTERNAL_IMPORT_WORD_AVATAR","getUserViewNotificationText","ck-suggestion--disabled-comments","editorReady","render","color","commentThread","delegate","EXTERNAL_SUGGESTION","querySelector","ck-suggestion-wrapper","author","commentThreadInputView","_model","@external","userView","setTemplate","split",'"></span>',"ck-comment__external","push","getTemplate","commentsListView","importWord","attributes","ck-annotation__info-time","discardButton","ck-suggestion__actions","isEnabled","</p>","set","ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_SUGGESTION","cancel","acceptButton","element","ck-annotation__actions","editorDestroyed",'" title="',"innerHTML","span",'<span class="ck-suggestion-type">',"descriptionParts","ck-suggestion__info-name","ck-suggestion","description"];var lc,dc;lc=cc,dc=188,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0xd"),""),this[uc("0xa")](uc("0xd")).to(this,uc("0x42"),(t=>t&&t[0]?t[0][uc("0xd")]:"")),this.bind("description").to(this,uc("0x42"),this,uc("0x49"),((t,e)=>{let n="";for(const e of t)n+=uc("0xc")+mc(e[uc("0x55")],e[uc("0x1d")])+uc("0x35");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[uc("0x3a")]=this._createButton(Yo(e,uc("0xf")),t.icons.check,"ck-suggestion--accept","acceptSuggestion","sw"),this[uc("0x3a")][uc("0xa")](uc("0x34")).to(this,"canAccept"),this[uc("0x32")]=this._createButton(Yo(e,"Discard suggestion"),t.icons[uc("0x39")],"ck-suggestion--discard",uc("0x4a"),"sw"),this[uc("0x32")][uc("0xa")](uc("0x34")).to(this,uc("0x51")),this[uc("0x27")]=new r.UserView(e,this[uc("0x25")].author,this[uc("0x19")]()),this[uc("0x27")].extendTemplate({attributes:{class:[uc("0xb"),uc("0x13")]}}),this[uc("0x28")](this[uc("0x2d")]())}[uc("0x2d")](){const t=this[uc("0xe")],e=[{tag:uc("0x11"),attributes:{class:[uc("0x8"),"ck-annotation__info"]},children:[{tag:uc("0x40"),children:[{text:this[uc("0x27")].name}],attributes:{class:[uc("0x43"),"ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:t.to("authoredAt"),class:["ck-comment__info-time",uc("0x31")]},children:[{text:t.to(uc("0x2"),(t=>this[uc("0x14")][uc("0x17")](t)))}]}]},{tag:uc("0x11"),attributes:{class:[uc("0x33"),uc("0x3c")]},children:[this[uc("0x3a")],this[uc("0x32")]]},{tag:uc("0x11"),attributes:{class:[uc("0x37")]}}];this[uc("0x25")].isExternal&&e[uc("0x2c")]({tag:uc("0x11"),attributes:{class:[uc("0x2b")]},children:[{text:this[uc("0x50")]()}]});const n={tag:uc("0x11"),attributes:{class:[uc("0x22"),t.if(uc("0x49"),uc("0x10")),t.to(uc("0xd"),(t=>"ck-suggestion-"+t)),this[uc("0x14")][uc("0x4f")]&&uc("0x1a")],"data-suggestion-id":this[uc("0x25")].id,"data-thread-id":this._model[uc("0x1e")].id,"data-author-id":this._model[uc("0x23")].id,tabindex:-1},children:[{tag:uc("0x11"),attributes:{class:[uc("0x44"),"ck-annotation"]},children:[this.userView,{tag:"div",attributes:{class:[uc("0x0"),uc("0x54")]},children:e}]}]};return this[uc("0x2e")]&&this[uc("0x24")]&&(n[uc("0x53")][uc("0x2c")](this[uc("0x2e")],this.commentThreadInputView),this[uc("0x2e")][uc("0x1f")](uc("0x1b")).to(this),this[uc("0x2e")][uc("0x1f")](uc("0x3d")).to(this),this[uc("0x24")][uc("0x1f")](uc("0x1b")).to(this),this[uc("0x24")][uc("0x1f")](uc("0x3d")).to(this)),n}[uc("0x1c")](){super.render(),this[uc("0x16")]=this[uc("0x3b")][uc("0x21")](uc("0x15")),this._descriptionElement.innerHTML=this[uc("0x45")],this.on(uc("0x3"),((t,e,n)=>{this._descriptionElement[uc("0x3f")]=n}))}[uc("0x9")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[uc("0x36")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(uc("0x4b"),(()=>{this[uc("0x5")](o,this._model.id)})),i}getExternalSuggestionNote(){return uc("0x2f")===this._model[uc("0x30")][uc("0x26")][uc("0x4")]?Yo(this.locale,uc("0x38")):Yo(this.locale,uc("0x20"))}[uc("0x19")](){return this._model[uc("0x1")]?uc("0x2f")===this[uc("0x25")][uc("0x30")]["@external"].source?Yo(this[uc("0x6")],uc("0x18"),this[uc("0x25")][uc("0x12")][uc("0x48")]):Yo(this.locale,uc("0x47"),this[uc("0x25")].creator[uc("0x48")]):null}}function mc(t,e){let n="";return n+=t[uc("0x29")]("*")[uc("0x4c")](((t,e)=>e%2!=0?uc("0x41")+fc(t)+"</span>":fc(t)))[uc("0x7")](""),e&&(n+=uc("0x4d")+e[uc("0x46")]+uc("0x3e")+e.title+uc("0x2a")),n}function fc(t){const e=document[uc("0x52")]("span");return e[uc("0x4e")]=t,e[uc("0x3f")]}const hc=["getSuggestion","CommentsUI","separator","createCommentThreadController","registerAnnotation","getAllAdjacentSuggestions","_bindAnnotationToEditors","clear","commentThread","_descriptionFactory","map","head","plugins","filter","add","comments.maxThreadTotalWeight","comments.editorConfig","value","mainView","suggestion-","activeMarkers","Accept all suggestions","focus","bind","trackChanges","_handleSuggestionControllerDelayed","change:activeAnnotations","addSourceCollector","isEnabled","from","CommentView","_destroyController","size","button","isMultiRange","commands","length","comments.maxCommentCharsWhenCollapsed","execute","_createUIButton","_handleControllerBuffer","previous","isOn","EditorAnnotations","Accept all selected suggestions","componentFactory","Discard all suggestions","discardSelectedSuggestions","_updateController","discardAllSuggestions","Track changes","_refreshActiveMarkers","suggestionChanged","actionView","arrowView","buttonView","_disableComments","getJoined","getDescriptions","isInContent","TrackChangesEditing","editing","Discard all selected suggestions","activeAnnotations","remove","createAnnotationView","push","getMarkerNames","unbind","_viewToController","acceptSelectedSuggestions","destroy","stopListening","lowest","trackChanges.SuggestionThreadView","pluginName","reduce","view","model","refreshSelectedViews","comments.maxCommentsWhenCollapsed","keys","listenTo","descriptionParts","source","createAnnotation","delete","commandName","CommentsRepository","toMany","get","Annotations","hasSuggestion","getRanges","innerView","config","isDirty","has","acceptButton","editor","locale","_suggestionToController","trackChanges.disableComments","_annotationViews","define","getMarkers","_initializeController","type","set","suggestionUnloaded"];var pc,bc;pc=hc,bc=376,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get requires(){return[Wa,r.Users,"CommentsRepository","Annotations","EditorAnnotations"]}static get[Ec("0x1d")](){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x37")]=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[Ec("0x68")]=new Map;const e=this.editor[Ec("0x31")];e[Ec("0x3a")](Ec("0x1c"),gc),e.define("trackChanges.disableComments",!1),this[Ec("0xa")]=e[Ec("0x2c")](Ec("0x38"))}[Ec("0x59")](t,e){0===this._handleControllerBuffer[Ec("0x60")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x68")]){const n=this[Ec("0x37")][Ec("0x33")](t);n||e?n&&e&&this[Ec("0x5f")](t):this[Ec("0x3c")](t)}this[Ec("0x35")].plugins.get(Ec("0x6b"))[Ec("0x21")](),this[Ec("0x5")](),this._handleControllerBuffer[Ec("0x47")]()}),10),this[Ec("0x68")][Ec("0x3e")](t,e)}init(){const t=this[Ec("0x35")],e=t.plugins[Ec("0x2c")](Ec("0xe")),n=t[Ec("0x4c")].get("Annotations"),o=t[Ec("0x4c")][Ec("0x2c")]("EditorAnnotations"),s=t[Ec("0x4c")][Ec("0x2c")](Ec("0x2a"));t.ui[Ec("0x6d")][Ec("0x4e")]("trackChanges",(t=>this._createUIButton(t))),o[Ec("0x5b")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x5d")](this._suggestionToController)){const o=e[Ec("0x45")](),s=[];for(const t of o){if(!t[Ec("0xd")])continue;if(t[Ec("0x62")]){s[Ec("0x14")](...t[Ec("0x2f")]());continue}const e=t.getFirstRange();if(s.length>0){const t=s[0][Ec("0xb")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x14")]([n[Ec("0x1f")],s])}return t})),this[Ec("0x24")](e,"suggestionLoaded",((t,e)=>{this[Ec("0x24")](e,"change:previous",((t,n,o,s)=>{e[Ec("0xd")]&&(null==o?(this[Ec("0x2")](s.head),this._handleSuggestionControllerDelayed(e,!1)):(this[Ec("0x2")](o.head),this[Ec("0x59")](e,!0)))})),null===e[Ec("0x69")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x2")](e[Ec("0x4b")])})),this.listenTo(e,Ec("0x3f"),((t,e,n)=>{this[Ec("0x1a")](e,"change:previous"),this._handleControllerBuffer[Ec("0x28")](e);const o=n?n[Ec("0x4b")]:e,s=this._suggestionToController[Ec("0x2c")](o);null!==n&&this[Ec("0x2")](o),null===n&&s&&this[Ec("0x5f")](e)})),this[Ec("0x24")](e,Ec("0x6"),((t,e)=>{this[Ec("0x2")](e)})),this[Ec("0x24")](n,Ec("0x5a"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x24")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x2e")](n))return;const s=e[Ec("0x40")](n);this[Ec("0x37")].get(s).view[Ec("0x56")]()}),{priority:Ec("0x1b")})}[Ec("0x5")](){const t=this[Ec("0x35")][Ec("0x4c")][Ec("0x2c")](Ec("0x2d")),e=this.editor.plugins[Ec("0x2c")]("TrackChangesEditing"),n=Array.from(t[Ec("0x11")],(t=>t[Ec("0x30")]))[Ec("0x4d")]((t=>this[Ec("0x17")][Ec("0x33")](t))),o=[];for(const t of n){const e=this[Ec("0x17")][Ec("0x2c")](t)[Ec("0x20")][Ec("0x45")]();o[Ec("0x14")](...e[Ec("0x1e")](((t,e)=>[...t,...e[Ec("0x15")]()]),[]))}e[Ec("0x54")]=o}[Ec("0x67")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor.commands[Ec("0x2c")]("trackChanges"),r=Yo(t,Ec("0x4"));n[Ec("0x9")][Ec("0x3e")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x9")][Ec("0x57")](Ec("0x6a")).to(o,Ec("0x51")),n[Ec("0x9")].on(Ec("0x66"),(()=>{o[Ec("0x66")](),this[Ec("0x35")][Ec("0xf")][Ec("0x1f")].focus()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x58")}},{type:Ec("0x42")},{type:Ec("0x61"),model:{withText:!0,label:Yo(t,Ec("0x55")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x6c")),commandName:Ec("0x18")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x0")),commandName:Ec("0x3")}},{type:Ec("0x61"),model:{withText:!0,label:Yo(t,Ec("0x10")),commandName:Ec("0x1")}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x20")]){const n=new s.Model(t.model),o=this[Ec("0x35")][Ec("0x63")][Ec("0x2c")](n[Ec("0x29")]);n[Ec("0x57")](Ec("0x6a"),"isEnabled").to(o,Ec("0x51"),Ec("0x5c")),e={type:t[Ec("0x3d")],model:n}}i[Ec("0x4e")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x4d")]((t=>null!=t[Ec("0x20")]))[Ec("0x4a")]((t=>this[Ec("0x35")][Ec("0x63")][Ec("0x2c")](t[Ec("0x20")].commandName))),c=n[Ec("0x9")];return c[Ec("0x7")].unbind("isEnabled"),c.arrowView[Ec("0x16")](Ec("0x5c")),c[Ec("0x7")][Ec("0x57")]("isEnabled").to(o,Ec("0x5c")),c[Ec("0x8")].bind(Ec("0x5c"))[Ec("0x2b")](a,Ec("0x5c"),((...t)=>t.some((t=>t)))),n.on(Ec("0x66"),(t=>{this[Ec("0x35")][Ec("0x66")](t[Ec("0x26")][Ec("0x29")]),this[Ec("0x35")].editing[Ec("0x1f")][Ec("0x56")]()})),n}[Ec("0x3c")](t){const e=this[Ec("0x35")],n=e[Ec("0x31")],o=e[Ec("0x4c")][Ec("0x2c")](Ec("0x2d")),s=e[Ec("0x4c")][Ec("0x2c")](Ec("0x2a")),i=e[Ec("0x4c")][Ec("0x2c")](Ec("0x6b")),x=e[Ec("0x4c")][Ec("0x2c")](r.Users).me,a=n.get(Ec("0x58")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x4c")][Ec("0x2c")](Ec("0x41"));let d,u;this._annotationViews[Ec("0x33")](t.id)?(u=this._annotationViews[Ec("0x2c")](t.id),d=u[Ec("0x52")]):(d=new a(e[Ec("0x36")],t,x,{disableComments:this[Ec("0xa")],editorConfig:n[Ec("0x2c")](Ec("0x50")),maxCommentsWhenCollapsed:n.get(Ec("0x22")),maxThreadTotalWeight:n[Ec("0x2c")](Ec("0x4f")),maxCommentCharsWhenCollapsed:n[Ec("0x2c")](Ec("0x65")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x2c")](Ec("0x36"))),CommentView:n[Ec("0x2c")]("comments")[Ec("0x5e")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x34")].on(Ec("0x66"),(()=>{e.editing[Ec("0x1f")][Ec("0x56")]()})),d.discardButton.on(Ec("0x66"),(()=>{e.editing[Ec("0x1f")][Ec("0x56")]()})),u=o[Ec("0x13")](this[Ec("0x35")][Ec("0x36")],d),u[Ec("0x57")](Ec("0x32")).to(d,Ec("0x32")),u[Ec("0x57")](Ec("0x64")).to(d),u[Ec("0x57")]("type").to(d,"type",(t=>Ec("0x53")+t)),this[Ec("0x39")][Ec("0x3e")](t.id,u));const g=s[Ec("0x43")](t[Ec("0x48")],d),m=new oc(e,t,d,g),f=t[Ec("0x45")]()[Ec("0x4d")]((t=>t[Ec("0xd")]));d[Ec("0x25")]=e[Ec("0x4c")].get(Ec("0xe"))[Ec("0x49")][Ec("0xc")](f),this._suggestionToController.set(t,m),this[Ec("0x17")][Ec("0x3e")](d,m);const h=o[Ec("0x27")]({view:u,target:()=>{const n=[],o=t[Ec("0x45")]()[Ec("0x4d")]((t=>t[Ec("0xd")]));for(const t of o)n[Ec("0x14")](...t[Ec("0x3b")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+m[Ec("0x1f")][Ec("0x3d")]});s[Ec("0x46")](d,h),o[Ec("0x4e")](h),i[Ec("0x44")](h)}[Ec("0x5f")](t){const e=this[Ec("0x35")].plugins[Ec("0x2c")](Ec("0x2d")),n=this[Ec("0x37")][Ec("0x2c")](t),o=n[Ec("0x1f")],s=e.getByInnerView(o);s&&e[Ec("0x12")](s),this[Ec("0x37")][Ec("0x28")](t),this[Ec("0x17")][Ec("0x28")](o),n[Ec("0x19")]()}[Ec("0x2")](t){if(!t[Ec("0xd")]||!this[Ec("0x37")][Ec("0x33")](t))return;const e=this.editor[Ec("0x4c")][Ec("0x2c")]("TrackChangesEditing"),n=this[Ec("0x37")].get(t),o=t[Ec("0x45")]();n[Ec("0x1f")][Ec("0x25")]=e._descriptionFactory[Ec("0xc")](o)}[Ec("0x19")](){for(const t of this[Ec("0x37")][Ec("0x23")]())this._destroyController(t);for(const t of this[Ec("0x39")].values())t[Ec("0x52")][Ec("0x19")]();super[Ec("0x19")]()}}var Tc,Cc,yc=["pluginName","get","TrackChanges","getSuggestions","getSuggestion","plugins","editor","Comments","requires","adapter","addSuggestionData","addSuggestion"];Tc=yc,Cc=426,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x2")](){return[Wa,_c,kc("0x1")]}static get[kc("0x6")](){return kc("0x8")}set[kc("0x3")](t){this[kc("0x0")].plugins.get(Wa)[kc("0x3")]=t}get adapter(){return this[kc("0x0")].plugins.get(Wa)[kc("0x3")]}[kc("0x5")](t){return this[kc("0x0")][kc("0xb")][kc("0x7")](Wa)[kc("0x4")](t)}[kc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x0")][kc("0xb")].get(Wa)[kc("0x9")]({skipNotAttached:t,toJSON:e})}[kc("0xa")](t){return this[kc("0x0")][kc("0xb")][kc("0x7")](Wa)[kc("0xa")](t)}}const vc=["init","config","constructor","getUser","document","acceptAllSuggestions","rootsAttributes","destroy","get","div","createDocumentFragment","set","getRootNames","data","pluginName","define","push","createElement","getFullData","reduce","Users","editorCreator","getSuggestions","plugins","appendChild","model","addSuggestionData","TrackChangesEditing","track-changes-data-invalid-editor-creator","TrackChangesDataGetter","function","editor","getDataWithAcceptedSuggestions","CommentsRepository","trackChangesData","requires","useAnonymousUser","getDataWithDiscardedSuggestions","TrackChangesData","trackChangesData.editorCreator","map","getRootsAttributes","discardAllSuggestions","addUser"];var Rc,Ic;Rc=vc,Ic=415,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Sc("0x10")](){return[Wa]}static get[Sc("0x27")](){return Sc("0x13")}init(){const t=this.editor;if(t[Sc("0x1a")][Sc("0x28")](Sc("0x14"),(e=>{const n=t[Sc("0x6")].document[Sc("0x25")]()[Sc("0x0")](((t,e)=>(t[e]="",t)),{});return t[Sc("0x1b")].create(n,e)})),Sc("0xb")!=typeof t[Sc("0x1a")][Sc("0x21")](Sc("0xf"))[Sc("0x2")])throw new e.CKEditorError(Sc("0x9"))}[Sc("0xd")](t){return Oc(this[Sc("0xc")],!0,t)}[Sc("0x12")](t){return Oc(this[Sc("0xc")],!1,t)}}class Mc extends t.Plugin{static get[Sc("0x27")](){return Sc("0xa")}constructor(t){super(t),this.result="end"}[Sc("0x19")](){this[Sc("0xc")].plugins.get(Sc("0xe"))._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[Sc("0xc")].plugins[Sc("0x21")](Sc("0x8"))._adapter=null}}function wc(t){return void 0!==t[Sc("0x16")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Sc("0x4")][Sc("0x29")](Wa,Mc),o[Sc("0x1f")]=wc(t)?t.getRootsAttributes():void 0;const s=document[Sc("0x23")](),i=t[Sc("0x1a")][Sc("0x21")](Sc("0xf"))[Sc("0x2")],x=await i(o,(()=>function(t){const e=document[Sc("0x2a")](Sc("0x22"));return t[Sc("0x5")](e),e}(s)));!function(t,e){const n=t[Sc("0x6")][Sc("0x1d")][Sc("0x25")]()[Sc("0x0")](((e,n)=>(e[n]=t[Sc("0x26")][Sc("0x21")]({rootName:n}),e)),{}),o=t[Sc("0x4")][Sc("0x21")](Sc("0x1")).users[Sc("0x15")]((t=>({id:t.id,name:t.name}))),s=t[Sc("0x4")].get("TrackChangesEditing")[Sc("0x3")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x4")][Sc("0x21")](Sc("0x1")),i=e[Sc("0x4")][Sc("0x21")](Sc("0x8"));for(const t of o)r[Sc("0x1c")](t.id)||r[Sc("0x18")](t);r.me||r[Sc("0x11")]();for(const t of s)i[Sc("0x7")](t);e[Sc("0x26")][Sc("0x24")](n)}(t,x),x.execute(Sc(e?"0x1e":"0x17"));const a=wc(x)?x[Sc("0x2b")](n):x[Sc("0x26")][Sc("0x21")](n);return await x[Sc("0x20")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();